dsh-web
zhu1090093659/dsh-webDeepSeek Harness(DSH)Web 插件聚合生态包 · 一切皆插件,创意工坊分发(dsh-market.com)
OpenAI Codex plan usage indicator for DeepSeek Harness
English | 简体中文
A polished OpenAI Codex plan-usage indicator for the DeepSeek Harness Web UI.
The plugin preserves the standard Settings gear and label while adding a context-meter-style ring at the far right. The ring contains the OpenAI mark and opens a detailed quota panel on hover or keyboard focus.
Build the package:
pnpm install
pnpm run check
Add it to a DSH profile from this directory:
dsh plugin --profile web add .
dsh --profile web --dump-config
dsh web
During development, Host changes hot-reload only while pnpm run dev is running and rebuilding the plugin output. Browser client changes require a rebuild and then a refresh of the existing Web page. The client bundle is loaded by DSH's client-module system; a separate Vite server is neither required nor useful.
Remove it with:
dsh plugin --profile web remove dsh-codex-usage
A tarball ships prebuilt Host and lazy-CJS client artifacts, avoiding install-time build approval:
pnpm pack
dsh plugin --profile web add ./dsh-codex-usage-0.1.8.tgz
For a Git-host install, pnpm 10 requires the profile to allow this package's prepare script. Pin a commit and follow the exact allowBuilds instruction printed by DSH/pnpm.
All four fields are available in Settings → Plugins → Codex usage. Changes are staged locally until Save, are persisted through DSH Settings, and the saved settings/profile patches apply live without a restart. The profile row remains the base configuration beneath saved user overrides.
The bundle inserts this row:
- id: codex-usage
name: dsh-codex-usage
config:
refreshIntervalMs: 300000
hoverRefreshMinAgeMs: 30000
requestTimeoutMs: 15000
codexCommand: codex
Override the whole row in the profile's cordis.patch.yml to change the composition-layer base. Later layers replace a row's complete config value; saved Settings UI values override that base.
| Field | Default | Meaning |
|---|---|---|
| refreshIntervalMs | 300000 | Background poll interval; minimum 60 seconds. |
| hoverRefreshMinAgeMs | 30000 | Minimum age before another hover refresh; minimum 5 seconds. |
| requestTimeoutMs | 15000 | Timeout for each Codex JSON-RPC request. |
| codexCommand | codex | Codex executable name or absolute path. |
The client artifact is not ordinary browser ESM. tsdown.config.ts emits DSH's required lazy-CJS registration. React and DSH UI packages remain external and resolve through DSH's client module table, preventing duplicate React runtimes.
pnpm run typecheck
pnpm run test
pnpm run build
pnpm run pack:check
The default suite skips the live provider test. Run it when Codex is installed and signed in:
$env:CODEX_LIVE = '1'
pnpm exec vitest run tests/codex-live.spec.ts
MIT