moqi-jev-loop: moqi's /JevLoop Control Panel

When developing agents in DeepSeek Harness (DSH), managing the JevLoop service gateway state and API keys typically requires directly manipulating services or configuration files. moqi-jev-loop provides a TUI-based control panel that enables these operations within moqi’s graphical interface.

Plugin Positioning

This is a thin adapter layered on top of the dsh-jev-loop service. It leverages moqi’s tuiHost integration point to present the jevLoop service state as rows and actions, without modifying moqi’s core code.

Core Features

The plugin registers a tuiHost panel exposed in moqi’s command palette as /JevLoop. The panel displays:

  • API Key Status: Lists the source of the API key (config, credential:file, env:TYPESAFE_APIKEY), but does not display the actual key value.
  • Gateway Status: Shows the real-time state of the four gateways.
  • Interaction: Pressing the enter key toggles gateway state; changes take effect immediately.

Key resolution follows a specific order: explicit apiKey configuration > Harness credential store > environment variables (TYPESAFE_API_KEY or TYPESAFE_APIKEY).

Installation and Activation

Installation requires two plugins: the core service plugin and this adapter plugin.

dsh plugin --profile <profile> add dsh-jev-loop
dsh plugin --profile <profile> add moqi-jev-loop

After installation, ensure moqi is running; /JevLoop will appear in the command palette.

Typical Usage

  1. Launch Harness, set the environment variable via TYPESAFE_APIKEY=… dsh --profile <profile>, or configure it in a config file.
  2. Start moqi.
  3. Invoke /JevLoop in moqi.
  4. Use the enter key to toggle gateways.
  5. Changes are written immediately to the Harness credential store (ctx.credentials) and persisted to $DSH_HOME/jev-loop (exact format depends on the implementation, but the storage path is fixed).

Notes

  • Dependencies: The plugin applies no logic of its own and activates only when both services are present.
  • Security: When entering an API key, the draft text is never rendered and never touches editors, logs, or shell history.
  • License: MIT License.

Summary

moqi-jev-loop provides immediate visual management of JevLoop gateways and API keys through moqi TUI. It is a lightweight plugin suited for developers who want to directly control service traffic while maintaining DSH process context.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye