D
dsh-plugin-ascension
v0.1.2 · 0 天前发布
渡劫飞升:仙逆·王林修炼伙伴。监控会话状态驱动动画,随使用修炼升境,境界越高皮肤越华丽。
README
🇨🇳 简体中文 | 🇬🇧 English
dsh-plugin-ascension
一个悬浮在 dsh web 界面里的《仙逆》王林修炼伙伴。它实时监控 LLM 会话状态并驱动动画(思考 = 掐诀推演,工具调用 = 施展神通,回复 = 凝神书字,完成 = 突破飞跃,失败 = 反噬受伤),并且随你的使用一路修炼升境(凝气 → 筑基 → 结丹 → 元婴 → 化神 → 婴变 → 问鼎),境界越高皮肤越华丽。
状态监控、状态机、亲和力/修为经济三个纯逻辑模块,移植并重新主题化自 @linxin666/dsh-pet(MIT)。
安装
bash
方式一(推荐):从 npm 安装
dsh plugin --profile web add dsh-plugin-ascension
方式二:从 GitHub 安装
dsh plugin --profile web add github:d-ouyang/dsh-plugin-ascension
本地开发:dsh plugin --profile web add ./dsh-plugin-ascension
安装后重启 web 服务(:3080)。
功能
状态监控(宠物把 LLM 正在做什么"演"出来)
宿主订阅官方会话事件流(ctx.on('session/event')),映射为 7 个相位、驱动 9 条动画轨道:
| 相位 | 触发 | 气泡文案 | 动画轨道 | 雪碧图行号 | 帧 |
|---|---|---|---|---|---|
| idle | 停止 / 无会话 | 停止修炼
版本兼容矩阵
| DSH 版本 | 状态 | 说明 |
|---|---|---|
dsh@0.1.0-rc.6 | ✅ 兼容 | cordis patch ✅ |
dsh@0.1.0 | ✅ 兼容 | 标准 patch ✅ |
dsh@0.2.0 | ⚠️ 待验证 | 待实测(API 可能在变) |
dsh@0.3.0+ | ❓ 未知 | 尚未发布 |
💡 兼容矩阵每周末自动跑实测,欢迎 PR 修正
元数据
- License
- MIT
- npm
- dsh-plugin-ascension
- Repo
- git+https://github.com/d-ouyang/dsh-plugin-ascension.git
- Engines
{"node":">=20"}- Weekly DL
- 0
- Monthly DL
- 0
- dsh.bundle
{"bundle":{"patch":"./cordis.patch.yml"},"client":{"platform":"web","inject":["@deepseek-ai/dsh-client-runtime","@deepseek-ai/dsh-client-ui-slots","@deepseek-ai/dsh-client-locale"]}}