dsh-task-mascot 2.1.2 → 2.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -9,7 +9,7 @@
9
9
 
10
10
  ## 安装
11
11
 
12
- > 已验证:**DSH 0.2.2-rc.2**(npm `next`,2026-11-12,Linux · `dsh web`;此前 2.1.1 已在 0.2.2-rc.1 验证安装路径)。要求 dsh ≥ 0.2.0-rc.2、Node ≥ 22.19。
12
+ > 已验证:**DSH 0.2.2-rc.5**(npm `next`,2026-11-18,Linux · `dsh web`);此前 **0.2.2-rc.2**(2026-11-12,Linux · `dsh web`);**DSH Desktop (macOS)** 已在 0.2.2-rc.1 上验证安装与启动加载(插件 2.1.2,2026-11-16)。要求 dsh ≥ 0.2.0-rc.2、Node ≥ 22.19。
13
13
 
14
14
  **`dsh web`(命令行)**
15
15
 
@@ -21,7 +21,7 @@ dsh plugin --profile web add github:sherconan/dsh-task-mascot # 或 npm 包:
21
21
 
22
22
  **`dsh web`(界面里装)**:左侧栏 **Plugins(插件)** → **Add plugin(添加插件)** → 输入 `dsh-task-mascot` → **Install(安装)** → 打开插件卡片右侧的开关(启用),刷新页面即可。
23
23
 
24
- **DSH Desktop(桌面版)**:Desktop 用自己独占的 `desktop` profile,上面 `--profile web` 的命令装进的是 web profile,**Desktop 里看不到**;npm 装的 `dsh` 也不能改 Desktop 的 profile。请在 Desktop 里按同样步骤 **Plugins → Add plugin → `dsh-task-mascot`** 安装并启用;或者用 Desktop 自带的 dsh 命令(应用菜单「管理 dsh 命令…」安装),先完全退出 Desktop,再运行 `dsh plugin --profile desktop add dsh-task-mascot`,重新打开即可。(以上 Desktop 步骤依据 [官方 Desktop 文档](https://github.com/deepseek-ai/deepseek-harness/blob/master/apps/desktop/README.zh.md#bundled-command-runtime),尚未在 Desktop 实机验证,遇到问题欢迎提 issue。)
24
+ **DSH Desktop(桌面版)**:Desktop 用自己独占的 `desktop` profile,上面 `--profile web` 的命令装进的是 web profile,**Desktop 里看不到**;npm 装的 `dsh` 也不能改 Desktop 的 profile。请在 Desktop 里按同样步骤 **Plugins → Add plugin → `dsh-task-mascot`** 安装并启用;或者用 Desktop 自带的 dsh 命令(应用菜单「管理 dsh 命令…」安装),先完全退出 Desktop,再运行 `dsh plugin --profile desktop add dsh-task-mascot`,重新打开即可。已在 **macOS DSH Desktop 0.2.2-rc.1** 实机验证安装与启动加载(依据 [官方 Desktop 文档](https://github.com/deepseek-ai/deepseek-harness/blob/master/apps/desktop/README.zh.md#bundled-command-runtime))。
25
25
 
26
26
  **设置入口**(0.2.1 起没有独立的 Settings 页面):左下角 **More(更多)→ Settings(设置)→ 任务角色 Mascot**。插件页里 dsh-task-mascot 的卡片只有启用开关和说明页,配置项不在卡片上。
27
27
 
@@ -50,7 +50,7 @@ dsh plugin --profile web add github:sherconan/dsh-task-mascot # 或 npm 包:
50
50
  ![search](docs/screenshot-search.png)
51
51
  ![approval](docs/screenshot-approval.png)
52
52
 
53
- - **大肥鱼图鉴(2.1.0)**:31 格收集卡,Agent 第一次触发某种动作(写代码、搜索、跑测试、出错……)时点亮一格,右上角弹出一张不挡对话的「新解锁」小提示(短时间内连续解锁会合并成一张,点它打开图鉴)。设置页「打开图鉴」或右键悬浮角色查看;进度只存在本地 localStorage。
53
+ - **大肥鱼图鉴(2.1.0)**:32 格收集卡,Agent 第一次触发某种动作(写代码、搜索、跑测试、出错……)时点亮一格,右上角弹出一张不挡对话的「新解锁」小提示(短时间内连续解锁会合并成一张,点它打开图鉴)。设置页「打开图鉴」或右键悬浮角色查看;进度只存在本地 localStorage。
54
54
 
55
55
  ## 工具 → 动画映射 / Tool → state mapping
56
56
 
@@ -167,10 +167,10 @@ E2E 脚本在 `test/e2e/`(Playwright),截图输出到 `qa/`(已 gitignor
167
167
  - Swappable character packs (ships Whale Girl 大肥鱼 and Claude娘) and an editable tool→animation mapping. ~13 MB.
168
168
  - Runs fully locally; makes no external network calls.
169
169
 
170
- Install (verified on **DSH 0.2.2-rc.2**, Linux, `dsh web`; 2.1.1 was verified on 0.2.2-rc.1; requires dsh ≥ 0.2.0-rc.2, Node ≥ 22.19):
170
+ Install (verified on **DSH 0.2.2-rc.5**, Linux, `dsh web`, 2026-11-18; previously **0.2.2-rc.2**; **DSH Desktop (macOS)** install and startup load verified on 0.2.2-rc.1 with plugin 2.1.2, 2026-11-16; requires dsh ≥ 0.2.0-rc.2, Node ≥ 22.19):
171
171
 
172
172
  - `dsh web`: `dsh plugin --profile web add github:sherconan/dsh-task-mascot` (or the npm package `dsh-task-mascot`), then restart `dsh web`. Or in the UI: **Plugins → Add plugin → `dsh-task-mascot` → Install**, turn on the switch on its card, and refresh.
173
- - DSH Desktop: Desktop owns its own `desktop` profile, so a `--profile web` install does **not** show up there. Install from Desktop's **Plugins → Add plugin**, or quit Desktop and run its bundled `dsh plugin --profile desktop add dsh-task-mascot`. (Per the [official Desktop docs](https://github.com/deepseek-ai/deepseek-harness/blob/master/apps/desktop/README.md#bundled-command-runtime); not yet tested on Desktop.)
173
+ - DSH Desktop: Desktop owns its own `desktop` profile, so a `--profile web` install does **not** show up there. Install from Desktop's **Plugins → Add plugin**, or quit Desktop and run its bundled `dsh plugin --profile desktop add dsh-task-mascot`. Verified on **macOS DSH Desktop 0.2.2-rc.1** (install and startup load). (Per the [official Desktop docs](https://github.com/deepseek-ai/deepseek-harness/blob/master/apps/desktop/README.md#bundled-command-runtime).)
174
174
  - Settings: from 0.2.1 there is no standalone Settings page. Open **More (bottom-left) → Settings → 任务角色 Mascot**. The plugin's card on the Plugins page only has the enable switch and the readme. On 0.2.0 and older, look for the same section in Settings.
175
175
 
176
176
  Code MIT © metsh. Artwork: 大肥鱼 CC BY-NC-SA 4.0 (「溟月」 by 上善无形 → ZipZipPipe → community 大肥鱼; via TreapGoGo/deepseek-whale-girl), Claude娘 CC BY-SA 4.0 — see ART_LICENSE.md. Unofficial; not affiliated with DeepSeek or Anthropic.
@@ -482,6 +482,20 @@
482
482
  "lit@2x": "cards/done.lit@2x.png",
483
483
  "locked": "cards/done.locked.png",
484
484
  "locked@2x": "cards/done.locked@2x.png"
485
+ },
486
+ {
487
+ "id": "refused",
488
+ "index": 32,
489
+ "label": "模型拒答",
490
+ "trigger": "模型以 refusal 结束(CONTENT_REFUSED)",
491
+ "group": "fail",
492
+ "art": "art/refused.png",
493
+ "anim": "anim/worried.webm",
494
+ "artSourceState": "worried",
495
+ "lit": "cards/refused.lit.png",
496
+ "lit@2x": "cards/refused.lit@2x.png",
497
+ "locked": "cards/refused.locked.png",
498
+ "locked@2x": "cards/refused.locked@2x.png"
485
499
  }
486
500
  ]
487
- }
501
+ }
package/lib/client.js CHANGED
@@ -42,7 +42,7 @@ window.__ModuleLoader__.load({
42
42
  const ALL_STATES = ['idle', 'thinking', 'reading', 'search', 'coding', 'editing', 'writingdoc', 'cmd', 'data', 'planning', 'subagents', 'tools', 'summary', 'waiting', 'done', 'error',
43
43
  // v2
44
44
  'web', 'download', 'git', 'test', 'install', 'create', 'delete', 'mcp', 'memory', 'media', 'diff',
45
- 'retry', 'worried', 'busy', 'subtask', 'denied', 'interrupted', 'sweat', 'tired', 'cheer'];
45
+ 'retry', 'worried', 'busy', 'subtask', 'denied', 'interrupted', 'sweat', 'tired', 'cheer', 'refused'];
46
46
 
47
47
  function compileRules(rules) {
48
48
  const out = [];
@@ -66,7 +66,7 @@ window.__ModuleLoader__.load({
66
66
  const GLOBAL_FALLBACK = { writingdoc: ['editing', 'coding'], data: ['cmd', 'thinking'], tools: ['cmd', 'thinking'], subagents: ['planning', 'tools'], summary: ['done', 'thinking'], idle: ['waiting', 'thinking'], generating: ['thinking'],
67
67
  // v2 states degrade gracefully on packs that only ship the v1 set (e.g. claude)
68
68
  web: ['search'], download: ['web', 'cmd'], git: ['cmd'], test: ['cmd'], install: ['download', 'cmd'], create: ['coding'], delete: ['cmd'], mcp: ['tools', 'cmd'], memory: ['search', 'reading'], media: ['reading'], diff: ['editing', 'reading'],
69
- retry: ['error', 'thinking'], worried: ['error'], busy: ['cmd', 'thinking'], subtask: ['done'], denied: ['error'], interrupted: ['waiting', 'idle'], sweat: ['thinking'], tired: ['waiting', 'thinking'], cheer: ['done'] };
69
+ retry: ['error', 'thinking'], worried: ['error'], busy: ['cmd', 'thinking'], subtask: ['done'], denied: ['error'], interrupted: ['waiting', 'idle'], refused: ['worried', 'error'], sweat: ['thinking'], tired: ['waiting', 'thinking'], cheer: ['done'] };
70
70
  /**
71
71
  * A/B variants: manifest.variants = { coding: ['coding','coding_b'], ... }. `mode` 'alternate' picks by
72
72
  * seed parity (step number), 'random' hashes the seed, 'off' keeps the base state. Deterministic per seed so
@@ -241,6 +241,13 @@ function resultBrief(message) {
241
241
  * ({type:'event'|'transient', event}). Live entries enqueue display frames that are each shown
242
242
  * for at least `dwellMs`; history entries rebuild state silently.
243
243
  */
244
+ /** Error code on a turn/end payload. Official DSH 0.2.2-rc.3+ shape is `reason.error.code` (LlmFailure). */
245
+ function turnErrorCode(d) {
246
+ const r = d && d.reason;
247
+ if (r && r.error && typeof r.error.code === 'string') return r.error.code;
248
+ if (d && d.error && typeof d.error.code === 'string') return d.error.code;
249
+ return '';
250
+ }
244
251
  function createTracker(opts) {
245
252
  // v2 knobs: stepSlowMs = one step/think this long -> sweat (x3 -> tired); loopLongMs = whole turn this long ->
246
253
  // tired while thinking, cheer on success; busyN = this many tool calls without thinking in between -> busy;
@@ -367,12 +374,15 @@ function resultBrief(message) {
367
374
  case 'turn/end': {
368
375
  const k = (d.reason && d.reason.kind) || 'completed'; const ok = /^(completed|complete|stop|end_turn|done|ok)$/i.test(k);
369
376
  const cancelled = /cancel|interrupt|abort/i.test(k);
370
- S.active = false; S.turnEnd = ctx.time; S.outcome = ok ? 'ok' : cancelled ? 'cancelled' : 'error';
377
+ // Official DSH shape (0.2.2-rc.3+): data.reason.error.code. Do not treat MALFORMED_RESPONSE as refusal.
378
+ const errCode = turnErrorCode(d);
379
+ const refused = !ok && !cancelled && errCode === 'CONTENT_REFUSED';
380
+ S.active = false; S.turnEnd = ctx.time; S.outcome = ok ? 'ok' : cancelled ? 'cancelled' : refused ? 'refused' : 'error';
371
381
  const rec = S.turns.get(S.turn); if (rec) { rec.endAt = ctx.time; rec.outcome = S.outcome; }
372
- for (const st of S.steps) if (st.status === 'running' || st.status === 'streaming' || st.status === 'waiting') st.status = cancelled ? 'cancelled' : 'error';
382
+ for (const st of S.steps) if (st.status === 'running' || st.status === 'streaming' || st.status === 'waiting') st.status = cancelled || refused ? 'cancelled' : 'error';
373
383
  const long = S.turnStart && ctx.time - S.turnStart >= o.loopLongMs;
374
- push({ kind: ok ? 'done' : cancelled ? 'interrupted' : 'error', state: ok ? (long ? 'cheer' : 'done') : cancelled ? 'interrupted' : 'error',
375
- text: ok ? (long ? '终于搞定!' : '完成') + ' · 共 ' + S.steps.length + ' 步' + (S.round > 1 ? ' · ' + S.round + ' 轮' : '') + (long ? ' · 用时 ' + fmtDur(ctx.time - S.turnStart) : '') : cancelled ? '已中断' : '本轮出错(' + k + ')' }, ctx);
384
+ push({ kind: ok ? 'done' : cancelled ? 'interrupted' : refused ? 'refused' : 'error', state: ok ? (long ? 'cheer' : 'done') : cancelled ? 'interrupted' : refused ? 'refused' : 'error',
385
+ text: ok ? (long ? '终于搞定!' : '完成') + ' · 共 ' + S.steps.length + ' 步' + (S.round > 1 ? ' · ' + S.round + ' 轮' : '') + (long ? ' · 用时 ' + fmtDur(ctx.time - S.turnStart) : '') : cancelled ? '已中断' : refused ? '模型拒绝回答这个请求' : '本轮出错(' + k + ')' }, ctx);
376
386
  break;
377
387
  }
378
388
  default: return;
@@ -493,10 +503,10 @@ function resultBrief(message) {
493
503
  // ---------------------------------------------------------------- v2 surfaces: tracker registry, inline card, dock bar, turn summary, pet
494
504
  const STATE_ZH = { idle: '待机', thinking: '思考中', reading: '读文件', search: '搜索', coding: '写代码', editing: '改代码', writingdoc: '写文档', cmd: '跑命令', data: '跑数据', planning: '做计划', subagents: '派子代理', tools: '用工具', summary: '总结', waiting: '等你确认', done: '完成', error: '出错了',
495
505
  web: '上网', download: '下载', git: 'Git', test: '跑测试', install: '装依赖', create: '新建文件', delete: '删除', mcp: '调 MCP', memory: '翻记忆', media: '看图', diff: '对比改动',
496
- retry: '重试', worried: '有点慌', busy: '忙不过来', subtask: '子任务完成', denied: '被拒绝了', interrupted: '被打断', sweat: '有点久', tired: '好累', cheer: '终于搞定' };
506
+ retry: '重试', worried: '有点慌', busy: '忙不过来', subtask: '子任务完成', denied: '被拒绝了', interrupted: '被打断', sweat: '有点久', tired: '好累', cheer: '终于搞定', refused: '模型拒答' };
497
507
  const STATE_ICON = { thinking: '💭', reading: '📖', search: '🔍', coding: '⌨️', editing: '✏️', writingdoc: '📝', cmd: '💻', data: '📊', planning: '🗂️', subagents: '🤝', tools: '🧰', summary: '📋', waiting: '✋', done: '✅', error: '❌', idle: '😴',
498
508
  web: '🌐', download: '⬇️', git: '🌿', test: '🧪', install: '📦', create: '🆕', delete: '🗑️', mcp: '🔌', memory: '🧠', media: '🖼️', diff: '🔀',
499
- retry: '🔁', worried: '😰', busy: '🌀', subtask: '☑️', denied: '🚫', interrupted: '⏸️', sweat: '💦', tired: '🥱', cheer: '🎉' };
509
+ retry: '🔁', worried: '😰', busy: '🌀', subtask: '☑️', denied: '🚫', interrupted: '⏸️', sweat: '💦', tired: '🥱', cheer: '🎉', refused: '😰' };
500
510
  /** Pack state to actually play: logical -> resolved (fallbacks) -> A/B variant. */
501
511
  function displayState(v, manifest, mode) { return pickVariant(resolveState(v.state, manifest), manifest, v.seed, mode || 'alternate'); }
502
512
  const STATUS_MARK = { ok: { c: '#30a46c', m: '✓' }, error: { c: '#e5484d', m: '✗' }, waiting: { c: '#f5a524', m: '⏳' }, running: { c: '#3e63dd', m: '•' }, streaming: { c: '#8e4ec6', m: '…' }, cancelled: { c: '#888', m: '–' } };
@@ -598,7 +608,7 @@ function resultBrief(message) {
598
608
  const stepElapsed = st ? (st.endAt || (v.active ? now : v.turnEnd || now)) - st.startAt : 0;
599
609
  const turnElapsed = v.turnStart ? (v.active ? now : v.turnEnd || now) - v.turnStart : 0;
600
610
  const lastDone = v.steps.slice().reverse().find((x) => x.status === 'ok' || x.status === 'error');
601
- const tone = /^(error|worried|denied)$/.test(v.state) ? '#e5484d' : /^(waiting|interrupted|sweat|tired|retry)$/.test(v.state) ? '#f5a524' : /^(done|cheer|subtask)$/.test(v.state) ? '#30a46c' : '#3e63dd';
611
+ const tone = /^(error|worried|denied|refused)$/.test(v.state) ? '#e5484d' : /^(waiting|interrupted|sweat|tired|retry)$/.test(v.state) ? '#f5a524' : /^(done|cheer|subtask)$/.test(v.state) ? '#30a46c' : '#3e63dd';
602
612
  return h('div', { onClick: compact ? undefined : () => setOpen((x) => !x), title: compact ? undefined : '点击展开/收起本轮全部步骤', style: { cursor: compact ? 'default' : 'pointer' } }, h('div', { ref, 'data-mascot-card': surface, 'data-state': v.state, 'data-resolved': resolved || '', 'data-step': stepNo, 'data-queued': v.queued, 'data-round': v.round || 0, 'data-mood': v.mood || '',
603
613
  style: { display: 'flex', gap: compact ? 10 : 14, alignItems: 'center', padding: compact ? '6px 10px' : '10px 14px', borderRadius: 12, border: '1px solid ' + tone + '55', background: 'var(--dsw-alias-bg-l1, rgba(127,127,127,.06))', boxShadow: '0 1px 6px rgba(0,0,0,.06)', font: '13px/1.45 system-ui, sans-serif', color: 'inherit', maxWidth: '100%' } },
604
614
  h('div', { style: { flex: 'none', width: size, height: size } }, manifest ? h(Player, { pack, manifest, state: resolved, size }) : null),
@@ -700,7 +710,7 @@ function resultBrief(message) {
700
710
  const rec = tr.S.turns.get(turnNo); if (!rec || !rec.endAt || !rec.steps.length) return null;
701
711
  const ok = rec.steps.filter((x) => x.status === 'ok').length; const bad = rec.steps.filter((x) => x.status === 'error').length;
702
712
  return h('div', { 'data-mascot-turn-summary': turnNo, onClick: () => setOpen((x) => !x), title: '点击查看本轮每一步', style: { cursor: 'pointer', font: '12px system-ui, sans-serif', opacity: 0.85, padding: '4px 0' } }, h('div', { style: { display: 'flex', gap: 10, alignItems: 'center', flexWrap: 'wrap' } },
703
- h('span', null, (rec.outcome === 'ok' ? '✅' : '❌') + ' 本轮 ' + rec.steps.length + ' 步 · 用时 ' + fmtDur(rec.endAt - rec.startAt) + ' · 成功 ' + ok + (bad ? ' · 失败 ' + bad : '')),
713
+ h('span', null, (rec.outcome === 'ok' ? '✅' : rec.outcome === 'refused' ? '😰' : '❌') + ' 本轮 ' + rec.steps.length + ' 步 · 用时 ' + fmtDur(rec.endAt - rec.startAt) + ' · 成功 ' + ok + (bad ? ' · 失败 ' + bad : '')),
704
714
  h(StepIcons, { steps: rec.steps, max: 24 }), h('span', { style: { opacity: 0.6 } }, open ? '收起 ▲' : '回放 ▼')),
705
715
  open ? h(StepList, { steps: rec.steps }) : null);
706
716
  }
@@ -767,7 +777,7 @@ function resultBrief(message) {
767
777
  style: Object.assign({ position: 'fixed', zIndex: 2147483000, width: size, height: size, cursor: 'grab', userSelect: 'none', touchAction: 'none', opacity: settings.opacity, transform: dodge ? 'translateY(' + dodge + 'px)' : 'none' }, anchor), 'data-dodge': dodge,
768
778
  },
769
779
  h(Player, { pack: settings.pack, manifest, state: resolved, size }),
770
- settings.showChip ? h('div', { 'data-mascot-chip': '', style: { position: 'absolute', left: '50%', bottom: -6, transform: 'translateX(-50%)', maxWidth: size, boxSizing: 'border-box', overflow: 'hidden', textOverflow: 'ellipsis', font: '12px/18px system-ui, sans-serif', padding: '0 8px', borderRadius: 9, background: act.state === 'error' ? '#e5484d' : act.state === 'waiting' ? '#f5a524' : 'rgba(30,30,40,.72)', color: '#fff', whiteSpace: 'nowrap', pointerEvents: 'none' } },
780
+ settings.showChip ? h('div', { 'data-mascot-chip': '', style: { position: 'absolute', left: '50%', bottom: -6, transform: 'translateX(-50%)', maxWidth: size, boxSizing: 'border-box', overflow: 'hidden', textOverflow: 'ellipsis', font: '12px/18px system-ui, sans-serif', padding: '0 8px', borderRadius: 9, background: /^(error|worried|denied|refused)$/.test(act.state) ? '#e5484d' : act.state === 'waiting' ? '#f5a524' : 'rgba(30,30,40,.72)', color: '#fff', whiteSpace: 'nowrap', pointerEvents: 'none' } },
771
781
  v && v.text ? v.text : (STATE_ZH[act.state] || act.state)) : null);
772
782
  }
773
783
 
@@ -788,7 +798,7 @@ function resultBrief(message) {
788
798
  ov.style.setProperty('--c1', c1); ov.style.setProperty('--c2', c1 + '88'); let sp = '';
789
799
  for (let i = 0; i < 26; i++) { const a = i / 26 * 6.283 + Math.random() * 0.3; const r = 150 + Math.random() * 120; sp += '<i class="mdx-spark" style="--c:' + (i % 3 ? c1 : '#FFD43B') + ';--x:' + (Math.cos(a) * r).toFixed(0) + 'px;--y:' + (Math.sin(a) * r).toFixed(0) + 'px;--r:' + (Math.random() * 540).toFixed(0) + 'deg;--d:' + (0.55 + Math.random() * 0.15).toFixed(2) + 's"></i>'; }
790
800
  ov.innerHTML = '<div class="mdx-stage"><div class="mdx-rays"></div><div class="mdx-ring"></div>' + sp + '<div class="mdx-ribbon">' + (replay ? '图鉴' : '新解锁!') + '</div>' +
791
- '<div class="mdx-flip"><div class="mdx-in"><img src="' + dexImg(e['locked@2x']) + '"><div class="mdx-front"><img src="' + dexImg(e['lit@2x']) + '"><video src="' + assetUrl(DEX_PACK, e.id + '.webm') + '" autoplay loop muted playsinline onerror="this.remove()"></video><div class="mdx-shine"></div></div></div></div>' +
801
+ '<div class="mdx-flip"><div class="mdx-in"><img src="' + dexImg(e['locked@2x']) + '"><div class="mdx-front"><img src="' + dexImg(e['lit@2x']) + '"><video src="' + assetUrl(DEX_PACK, (e.artSourceState || e.id) + '.webm') + '" autoplay loop muted playsinline onerror="this.remove()"></video><div class="mdx-shine"></div></div></div></div>' +
792
802
  '<div class="mdx-cap"><b>#' + String(e.index).padStart(2, '0') + ' ' + esc(e.label) + '</b><small>' + esc(e.trigger) + '</small></div></div>';
793
803
  document.body.appendChild(ov);
794
804
  return new Promise((res) => { let done = false; const close = () => { if (done) return; done = true; ov.classList.add('mdx-out'); setTimeout(() => { ov.remove(); res(); }, 350); }; const st = ov.querySelector('.mdx-stage'); if (st) st.onclick = close; setTimeout(close, 3400); });
@@ -893,7 +903,7 @@ function resultBrief(message) {
893
903
  }
894
904
  exports.apply = apply;
895
905
  exports.inject = inject;
896
- exports.__internals = { DEFAULT_RULES, ALL_STATES, compileRules, stateForTool, resolveState, pickVariant, displayState, createMachine, createTracker, actionText, partialArgs, resultBrief, toolPath, shellFailed, GLOBAL_FALLBACK, STATE_ZH, STATE_ICON, dexUnlock, dexLit, dexLoad, dex, dockShouldShow, dexToastText, DEFAULT_SETTINGS };
906
+ exports.__internals = { DEFAULT_RULES, ALL_STATES, compileRules, stateForTool, resolveState, pickVariant, displayState, createMachine, createTracker, actionText, partialArgs, resultBrief, toolPath, shellFailed, turnErrorCode, GLOBAL_FALLBACK, STATE_ZH, STATE_ICON, dexUnlock, dexLit, dexLoad, dex, dockShouldShow, dexToastText, DEFAULT_SETTINGS };
897
907
  return module.exports;
898
908
  },
899
909
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-task-mascot",
3
- "version": "2.1.2",
3
+ "version": "2.1.3",
4
4
  "description": "metsh · Task Mascot — 真跟着 Agent 每一步工具调用在动。A DeepSeek Harness Web plugin whose mascot acts out every live tool call (read / write / edit / search / run / plan / sub-agent / wait / error) with step cards in chat. Swappable character packs (大肥鱼, Claude娘).",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",