ZYAONS/dsh-plugin-mascot ↗★ 0

dsh-plugin-mascot

DeepSeek Harness mascot plugin — a clickable character sprite (Arknights' Closure / BanG Dream!'s Sengoku Yuno) that opens a panel with token cache hits, context pressure and account balance. 用于直观监控账户状态。适合需要随时查看Token消耗、余额和上下文压力的用户。

パッケージ
dsh-plugin-mascot
互換性
未検証
バージョン
0.1.0
ライセンス
NOASSERTION
最終更新
2026/09/16

インストール

検証済み bundle がないか、互換性チェックに失敗しています。先にリポジトリの説明を読んでください。 README 全文を読む ↗

ドキュメント

README 全文を読む ↗

Configuration

Add a config block to either form (see Configuration):

- insert:
    - id: mascot
      name: dsh-plugin-mascot
      config:
        baseUrl: 'https://api.deepseek.com'
        cacheTtlMs: 30000

Usage

InteractionResult
Click the spriteToggle the panel
Click either mini portrait in the panelSwitch mascot (choice is stored in localStorage)
Click the backdrop or press EscClose the panel
Click "刷新"Re-read the balance immediately (it also refreshes every 2 minutes while open)

While open, the pill under the sprite shows the balance. If the lookup fails it reads "点我 Token / 余额" instead of pretending to know.


Configuration

Every field has a default, so the config block is optional.

FieldDefaultMeaning
routePrefix/dsh-mascotPath prefix this plugin claims on the host webserver
baseUrlhttps://api.deepseek.comProvider origin hosting the balance endpoint
apiKeyRefDEEPSEEK_API_KEYCredentials reference name (~/.dsh/.credentials.yaml)
cacheTtlMs60000Freshness of one balance answer; failures are never cached
timeoutMs10000Upstream request budget

Behind a proxy or self-hosted gateway, point baseUrl at it — the only requirement is that it implements GET /user/balance.