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. 9. 16.

설치

검증된 bundle이 없거나 호환성 검사에 실패했습니다. 먼저 저장소 설명을 읽어 주세요. 전체 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.