rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:NebulaXIX/dsh-account-balance-badge
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
A persistent DeepSeek Harness (DSH) Web UI plugin that keeps the signed-in DeepSeek account balance visible in the left sidebar, with a one-click in-app recharge action that opens DeepSeek's official top-up page without leaving the app.
¥, USD $; two decimals with digit grouping; sub-cent
amounts shown as <¥0.01). Positive bonus credit is appended as a small Bonus ¥x.xx note.Top up (充值) button beside the amount opens the official
DeepSeek top-up page as an in-app native Platform view on the Desktop app, with a
"Back to DeepSeek Harness" bar; returning re-reads the balance. A plain Web UI opens the same page
in a new tab instead. The button is disabled while signed out.account.getBalance method, and the top-up page is a Desktop-owned native view
authenticated by the Desktop's own Platform session — no raw account tokens are exposed to the page.>=0.2.1-rc.2 <0.3.0-0 (verified on DSH 0.2.1-rc.2).dsh web launched with a profile), with
the shipped Web UI plugins enabled (the sidebar, locale, and account controller are part of the
standard Web app).dshPlatform bridge to host
the official page in a native view. A plain browser build opens the deployment's top-up URL in a
new tab instead.The plugin is distributed from GitHub — repository · latest release. It is not on npm yet, so install it from the Git address or from the release tarball. A step-by-step macOS walkthrough (both languages) lives in docs/INSTALL-macOS.en.md and docs/INSTALL-macOS.md.
github:NebulaXIX/dsh-account-balance-badge (tracks main), or
github:NebulaXIX/dsh-account-balance-badge#v0.2.0 to pin the releasedsh-account-balance-badge-0.2.0.tgzThe Desktop app manages the desktop profile itself, so the Plugins UI is the only supported
install route there.
dsh CLIRequires the dsh CLI and pnpm on your PATH; start DSH once first so the target profile exists.
--profile is required, and desktop is reserved for the Desktop app:
# Git, tracking main
dsh plugin --profile web add github:NebulaXIX/dsh-account-balance-badge
# Git, pinned to the v0.2.0 release
dsh plugin --profile web add "github:NebulaXIX/dsh-account-balance-badge#v0.2.0"
# the tarball attached to the GitHub release
dsh plugin --profile web add ./dsh-account-balance-badge-0.2.0.tgz
# a local checkout (absolute path in the UI; relative paths resolve from the invoking directory)
dsh plugin --profile web add ./path/to/dsh-account-balance-badge
This package is plain JavaScript with no dependencies and no build script, so a Git install needs no
pnpm build-script approval. dsh plugin ... add also appends the bundle to the profile's bundle
list, so no manual patch editing is needed.
Not on npm yet.
dsh plugin ... add dsh-account-balance-badge(the package name) only works after an npm release; until then use the Git address or the release tarball above.
Third-party plugins are upgraded by uninstalling and reinstalling the new version — in the Web UI from the bundle page (Uninstall, then install again), or with the CLI:
dsh plugin --profile web remove dsh-account-balance-badge
dsh plugin --profile web add "github:NebulaXIX/dsh-account-balance-badge#v<new-version>"
| Half | File | Role |
|---|---|---|
| Host | index.js |
Empty bundle half: carries the Loader row only, adds no Host capability, tool, or prompt surface. |
| Client | client.js |
Registers the row in sidebar.footer.action and one page host in shell.overlay; reads balances through ctx.remote.account.getBalance; asks the Desktop preload bridge (globalThis.dshPlatform) to host the top-up page and renders the row, the return bar, and the component-local stylesheet. |
| Loader patch | cordis.patch.yml |
Inserts the account-balance-badge row named after this package. |
| Display metadata | locale/en.json, locale/zh.json, icon.svg |
Plugin Manager title, description, and icon. |
The balance read is a Host-to-Platform query performed by the account service; the browser only
receives wallet amounts (currency and decimal strings). The recharge page is not rendered by this
plugin at all: the Desktop owns the native WebContentsView and its Platform credentials, while the
plugin only contributes the 48 px return bar and reports the measured viewport rectangle
(open / setBounds / close on the preload bridge).
The plugin is plain JavaScript with no build step and no dependencies:
index.js is an ES module exporting apply().client.js is a lazy browser module in the window.__ModuleLoader__.load({ id, factory }) format;
it is served as-is, so keep it valid plain JavaScript (no JSX/TypeScript/import). Its factory
resolves only react and react-dom from the page's frozen module table (no npm dependencies);
react-dom is used solely to portal the recharge overlay out of the shell.overlay layer, the
same approach the shipped account page uses.git clone https://github.com/NebulaXIX/dsh-account-balance-badge.git
cd dsh-account-balance-badge
npm test # zero-dependency manifest/structure checks
Install your checkout as a bundle with the local-path option in the Plugins dialog (or
dsh plugin --profile web add /absolute/path/to/checkout). The Web UI picks up client changes through
HMR while the bundle is link-installed; a full page refresh loads the latest bundle if HMR is
unavailable.
The background refresh cadence is the REFRESH_INTERVAL_MS constant at the top of
client.js (default 60000 ms). Change it in a local checkout if you prefer another cadence; the
row still refreshes on click and on window focus.
The public repository is https://github.com/NebulaXIX/dsh-account-balance-badge. Releases are
tagged vX.Y.Z and carry the npm pack tarball as a release asset, which is what users install.
version in package.json and add an entry to CHANGELOG.md.npm test (scripts/check.mjs, zero dependencies) and npm pack --dry-run; the tarball must
contain index.js, client.js, cordis.patch.yml, icon.svg, locale/en.json, and
locale/zh.json (plus README/LICENSE/CHANGELOG, which npm always includes; scripts/,
docs/, and .github/ are intentionally not shipped).dev/<task> branch, run npm test again, then merge into main.git tag v<version> && git push origin main --tags.npm pack --pack-destination dist then
gh release create v<version> dist/dsh-account-balance-badge-<version>.tgz --title "v<version>" --notes-file <notes>.npm publish --access public — the package name dsh-account-balance-badge is currently free on
the registry, but publishing needs a logged-in npm account.package.json name, the cordis.patch.yml row's name, and the id passed to
window.__ModuleLoader__.load(...) in client.js.CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。