鱼皮AI导航
鱼皮AI导航
  • 主页
  • 社区
  • AI工具
  • AI知识库
  • AI提示词
  • MCP
  • Skills
  • AI学习资源
  • AI资讯
  • GitHub开源
登录/注册

dsh-plugin-ascension

渡劫飞升:仙逆王林修炼伙伴。实时监控会话状态,用打坐、掐诀、御剑、雷龙等丰富交互动画演绎大模型的每一个动作,随使用修炼升境。

娱乐
访问 GitHub
文档README

🇬🇧 English | 🇨🇳 简体中文

dsh-plugin-ascension

A Wang Lin cultivation companion floating in the dsh web UI. It watches the LLM session state in real time and drives animations (thinking = hand seals, tool = casting, replying = calligraphy, done = breakthrough leap, failed = injured), and levels up as you work (Qi Refining → Foundation → Core → Nascent Soul → Spirit Severing → Infant Change → Ascension), with fancier skins at higher realms.

Capabilities ported and re-themed from @linxin666/dsh-pet (MIT): session event projection, state machine, and affinity/cultivation economy as pure logic modules.

Install

▼
bash
复制代码
# Option 1 (recommended): from npm dsh plugin --profile web add dsh-plugin-ascension # Option 2: from GitHub dsh plugin --profile web add github:d-ouyang/dsh-plugin-ascension # local dev: dsh plugin --profile web add ./dsh-plugin-ascension

Restart the web service (:3080) after installing.

Features

State monitoring (the pet acts out what the LLM is doing)

The host subscribes to the official session event stream (ctx.on('session/event')) and maps it to 7 phases driving 9 animation tracks:

PhaseTriggerBubble textTrackSheet rowFrames
idlestopped / no session停止修炼stand6spritesheet (standing placeholder)
waitingturn start / step start / awaiting input / blocked凝神入定 · 静待机缘meditation—meditation.webp (✅ real)
thinkingLLM reasoning掐诀推演 · 参悟神通结果running7spritesheet (✅ real)
tooltool call正在施展神通 · 还有 N 道神通未了running7spritesheet (placeholder)
reviewstreaming reply凝神书字 · 整理心得running8spritesheet (placeholder)
doneturn completed圆满出关!running-right—dragon.webp (✅ real, 雷龙庆祝)
failedtool error / interrupt / max-tokens神通反噬 · 心魔反噬 · 灵力枯竭stand6spritesheet (standing placeholder)
  • Animations loop ping-pong (0→1→…→n→…→1→0) while the phase lasts
  • done celebration window: 3 s for a normal turn, 6 s on a realm breakthrough (celebrateMs, passed via onStatus opts)

Cultivation & realms

  • +1 per completed turn (cultivate); click pet +1 (discuss, 3 min cooldown); feed pill +1 (30 s cooldown)
  • 7 realms (Qi Refining → Foundation → Core → Nascent Soul → Spirit Severing → Infant Change → Ascension), thresholds configurable in ascension-core.js (REALMS)
  • Realm-up triggers the breakthrough animation and auto-switches to the next realm's skin; missing skins fall back to the previous realm

Interaction & effects

InteractionEffect
Click petDiscuss (+cultivation, reaction bubble above or left)
Drag petMove it (persisted to config)
Hover petAncient-style panel: realm badge + cultivation progress bar + pill/hide buttons
Click hideWang Lin shrinks into the Tianni Pearl (bottom-right); the pearl loops a gold-wood-water-fire-earth rotating gradient
Click pearlWang Lin grows back out of the pearl (animation first, config synced async)
  • Bubble moves to the left of the pet while hovering, never overlapping the panel
  • All transitions render optimistically without waiting for the API

Settings section (Settings → Ascension)

Full-width form with Save / Cancel at the bottom (applied on save):

  • Enable: master switch, stops monitoring/animation when off
  • Hide pet: show/hide the pet body
  • Name, skin, size (60–400 px), right / bottom insets

Tool

Ask in chat: "王林现在什么境界?" → ascension_status returns realm / cultivation / distance to next realm / pet & feed counts / current animation.

Making skins (important)

One skin = one directory (pet.json + one spritesheet), with a fixed 9-row action order:

RowActionFramesWang Lin pose
0idle6standing with hands down (placeholder)
1sword4sword flight (御剑)
2running-left8sword flight left
3waving4fist-and-palm salute
4jumping5breakthrough leap
5failed8wounded pose (placeholder)
6stand6still, focused (idle/failed 站姿)
7running6hand seals (掐诀)
8review6writing with qi
  • Cell size: current skin is 768×832 (4× HD), declared by the cell field in pet.json — any size works
  • Recommended pipeline: generate a looping action video with Jimeng, split into frames (frames from one video keep the character position stable), export per-frame PNGs
  • Background removal: color-key for solid backgrounds + hole filling + edge feathering (keeps aura effects, removes gray edges); silver-white hair is auto-brightened to remove gray flicker
  • Pack (requires sharp):
    ▼
    bash
    复制代码
    cd /Users/ouyangding/dsh-plugin-ascension pnpm install node skin-pack.js <skin-id> --name "Wang Lin · Qi Refining"
    → outputs assets/<id>/ (spritesheet.webp + pet.json + previews/)
  • Drop-in without code changes: copy a packed skin directory to ~/.dsh/ascension/skins/<id>/ (user skins win)
  • Realm ↔ skin id: wang-lin-1..wang-lin-7 map to the 7 realms

Data & API

  • Persistence: ~/.dsh/ascension/ (state.json / settings.json)
  • RPC: /api/ascension/{state, interact, set-enabled, set-visible, set-config, set-skin}, /api/ascension/skins/<id>/* (skin assets), /api/ascension/tiannizhu/* (pearl animation)

Development

▼
text
复制代码
dsh-plugin-ascension/ ├── index.js # host: session/event subscription + cultivation service + RPC + skin registry ├── ascension-core.js # pure logic: realms / cultivation / event projection / state machine ├── client/client.js # client: settings section + floating pet + Tianni Pearl (hand-written bundle) ├── skin-pack.js # skin packer: frames → spritesheet + pet.json + previews ├── assets/ # built-in skin (wang-lin-1) + pearl animation └── cordis.patch.yml / package.json

Credits

State monitoring / state machine / cultivation economy ported from @linxin666/dsh-pet (MIT License).

娱乐

快捷安装

复制到终端去安装插件

dshplugin--profilewebaddgithub:d-ouyang/dsh-plugin-ascension

温馨提示

装插件等于在本机跑第三方代码,权限与你相同,能读文件、用凭据、访问网络,工具审批管不到。请只装可信来源,并尽量锁定 commit。

站长:程序员鱼皮 老鱼简历 商务合作 增值电信业务经营许可证
2026 鱼皮AI导航 | 沪ICP备19026706号-6
站长:程序员鱼皮 老鱼简历 商务合作 增值电信业务经营许可证
2026 鱼皮AI导航 | 沪ICP备19026706号-6
🔥热门工具
朱雀AI检测朱雀AI检测
朱雀AI检测助手朱雀AI检测助手
LovartLovart
老鱼简历老鱼简历
WritePass官网WritePass官网
面多多面多多
CursorCursor
星月写作星月写作
零感AI零感AI
墨得问题墨得问题
dsh 插件推荐
dsh-pet
常驻界面的鲸鱼娘:随智能体状态切换动画,可摸头互动、喂小鱼干养亲密度,从幼鲸一路养成。
dsh-codex-pet
DSH Web 页内宠物,提供多会话任务提醒,可打开任务、停止当前轮次,并处理受支持的审批和问答请求。
dsh-tavern-v2
酒馆管理面板:多角色卡、多世界书、多预设与会话级隔离,记忆总结、角色关系网、剧情选项一键发送,另有 NSFW 模式。完整效果需同时安装伴生插件 dsh-muv-engine 与 dsh-muv-table,用于渲染状态栏、剧情选项与变量表格。
dsh-web-ui#packages/dsh-pet
常驻界面的鲸鱼娘:随智能体状态切换动画,可摸头互动、喂小鱼干养亲密度,从幼鲸一路养成。
dsh-petdex-pet
DSH Web 界面里的桌面宠物:右下角悬浮、可拖拽,随智能体活动切换精灵动画;设置页可管理大小、启停切换、图库搜索与一键安装宠物。内置 4 个全职猎人主角宠物包。