All plugins

DSH / BUNDLE / CLIENT-UI

dsh-deepseek-balance-badge

v0.2.0chenjingchun / dsh-deepseek-balance-badgec7821b5043

InstallableBundlesUI & client pluginsCommunity · Topic auto-analysisWeb UI

Overview

dsh-deepseek-balance-badge

DeepSeek account balance badge in the DSH sidebar footer, with a settings card for the refresh period. The API key stays in the host process.

README / EN

Package documentation

Registry summary

DeepSeek account balance badge in the DSH sidebar footer, with a settings card for the refresh period. The API key stays in the host process.

dsh.pub verifies the pinned bundle contract, runtime facts, and distribution semantics. The complete README remains in the source repository.

Read the full README on GitHub

LIMITATIONS

Known limitations

- **客户端 bundle 手写、无打包器**:浏览器 seed 表只有 `react`、`react/jsx-runtime`、`react-dom`、`@deepseek-ai/cordis`、`dsh-client-store`、`dsh-client-ui-slots`、`dsh-client-ui-primitives`、`dsh-client-ui-dockkit`。因此源码只用 `React.createElement`(不用 JSX),也不 import `dsh-client-ui-settings` 等非 seed 包——设置卡片是通过 `ctx.get('settingsScope')` 这个运行时服务拿到的,不产生模块依赖。测试中的 `require` 白名单会挡住违规。 - **UI 测试不自建 DOM**:`react-dom` 不是本包依赖,渲染用例用真实 `react` 加手写 dispatcher 展开组件树,覆盖组件逻辑但不覆盖真实布局与样式。 - **新增宿主插件必须重启应用**:DSH 不热加载宿主半。 - **客户端 seed 包不作为 peerDependency 声明**:`@deepseek-ai/dsh-client-ui-primitives` 与 `dsh-client-ui-settings` 由浏览器 seed 表提供(`dsh.client.inject` 里已声明),不是 Node 解析的依赖。声明成 peer 反而会在 harness 换预发布版本时给用户制造 ERESOLVE,而那些版本本来就是 seed 提供的。宿主半边真正 import 的 `@deepseek-ai/schemastery` 是唯一的 peerDependency。