pythonshiyi/dsh-plugin-whalefeed0

dsh-plugin-whalefeed

DeepSeek 鲸鱼娘 Token 喂养桌宠插件

AI 分析

在网页端提供一只随 Token 消耗而自动进食、成长的鲸鱼娘桌宠。适合想要以趣味化、可视化方式观测 Token 消耗的用户。

套件
dsh-plugin-whalefeed
版本
0.2.0
授權
MIT
最近更新
2026年8月15日

安裝

此插件尚未提供可驗證的 bundle,或相容性檢查未通過。請先閱讀倉庫說明。 閱讀完整 README ↗

行级配置

- insert:
    - id: plugin-whalefeed
      name: "dsh-plugin-whalefeed"
      config:
        position: bottom-right # bottom-right | bottom-left | top-right | top-left | {x: 20, y: 20}
        size: 96 # 桌宠尺寸 px(32-256,默认 96)
        opacity: 0.92 # 不透明度(0.2-1,默认 0.92)
        showTokenBadge: true # 头顶显示当前会话累计 token
        showStageName: true # 显示当前阶段名
        catchUpOnFirstSeen: true # 首次接入时是否把会话已有消耗一次性补记
        feedRatio: 1 # 1 token = 1 鲸粮;可调成长速度
        resetOnNewSession: false # 新建/首次见到的会话是否强制从 0 开始
        draggable: true # 是否允许拖动桌宠
        hostPersistence: true # 是否启用 Host 文件持久化(不可用时自动回退 localStorage)
        historyLimit: 50 # 喂食历史条数上限
        stages: [] # 自定义阶段,见下方说明

自定义阶段

stages 为空时使用内置默认阶段:

[
  { threshold: 0, belly: 0.75 },
  { threshold: 5000, belly: 1.0 },
  { threshold: 20000, belly: 1.35 },
  { threshold: 80000, belly: 1.75 },
  { threshold: 300000, belly: 2.2 },
];

可传 { threshold, belly, label? } 覆盖。插件会自动按 threshold 排序,并保证第一个阈值是 0。