メインコンテンツへスキップ
L

dsh-plugins (dsh-balance-plugin)

luokai-demo/dsh-plugins/plugins/dsh-balance-plugin

サイドバー下部に DeepSeek ウォレットの残高:クレジットカードのアイコンと、残高に応じて色付けされた金額(¥2 超は緑、¥0〜2 は琥珀、それ未満は赤)。マウント時、各ターン終了時、クリック時に更新されます。残高が変わるたびに符号付きの差分が浮かび上がって消えます。

インストール

dsh plugin --profile web add github:luokai-demo/dsh-plugins

このプラグインはリポジトリの plugins/dsh-balance-plugin サブディレクトリにあります。

README

dsh-plugins

English | 中文

A DeepSeek-only plugin series for DeepSeek Harness — every plugin targets the DeepSeek platform exclusively: official DeepSeek API endpoints, DEEPSEEK_API_KEY credentials, and the DeepSeek wallet. No other platforms or providers are supported, and no cross-provider compatibility is planned. Each plugin is a standalone bundle with one-command install and its own version.

Plugins

PluginLooks likeWhat it doesInstall
dsh-balance-pluginbalance readoutDeepSeek wallet balance at the sidebar foot: card icon + status-tinted amount (green ≥ 2, amber 0–2, red ≤ 0), refreshes on turn end and on click, with a floating delta (+¥3.14 / -¥1.97) animating up and fading on every balance changedsh plugin add dsh-balance-plugin

Install

Option 1 — npm (recommended, one command). web is the profile dsh web uses; replace it with your own profile name if yours differs (see ls ~/.dsh/profiles/):

dsh plugin --profile web add dsh-balance-plugin

If a registry mirror or pnpm 11's minimum-release-age guard has not picked up a just-released version yet, install or update that exact version from the official npm registry instead:

dsh plugin --profile web add dsh-balance-plugin@<version> --registry=https://registry.npmjs.org/

Option 2 — GitHub Release. Download the dsh-balance-plugin-<version>.tgz asset for the release you want from the Releases page, then:

dsh plugin --profile web add ./dsh-balance-plugin-<version>.tgz

Restart dsh web and refresh the browser — the balance appears at the sidebar foot (beside Settings).

Desktop app. The Desktop app serves the same Web surface, so install into its own desktop profile instead of web — from the app's Plugins page, or dsh plugin --profile desktop add dsh-balance-plugin while the app is quit. Tested on Desktop 0.2.0-rc.2 (sidebar action registered, both /dsh-balance routes mounted).

Update

The plugin requires DeepSeek Harness 0.1.7 or 0.2.0 (release candidates included). On the 0.2.0 series install 0.2.3 or newer: 0.2.2 and earlier declare only the 0.1.7 series, so the Harness refuses to load them. For an existing npm install:

dsh plugin --profile web update dsh-balance-plugin
dsh --profile web --dump-config  # expect a "# == dsh-balance-plugin" layer

Restart dsh web and hard-refresh the browser after the update. To update a Release-tarball install, run dsh plugin --profile web add ./dsh-balance-plugin-<version>.tgz with the newer archive, then run the same verification.

Install with an AI assistant

Paste this prompt to any AI that can operate a terminal:

Install the dsh-balance-plugin plugin for DeepSeek Harness: first run dsh plugin --profile web add dsh-balance-plugin; if npm does not have it (E404 error), download the latest dsh-balance-plugin-*.tgz from https://github.com/luokai-demo/dsh-plugins/releases and run dsh plugin --profile web add ./dsh-balance-plugin-*.tgz; after installing, confirm the dsh-balance-plugin layer appears with dsh --profile web --dump-config, then restart dsh web, hard-refresh the browser (Cmd+Shift+R), and finally verify a card icon with the balance amount at the sidebar foot. (Replace web with your profile name if you do not use the default one.)

Development and publishing

Full workflows for adding plugins, building, testing, and releasing through both channels live in DEVELOPING.md. Each plugin directory carries its own README and publishing manual.

License

MIT

関連プラグイン