@zaofan/dsh-qqbot 1.11.20 → 1.11.21

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.
@@ -7675,12 +7675,12 @@ var QQS_THEME_CSS = [
7675
7675
  ? h('span', { className: 'qqs-mk-tag' }, canUpdate ? ('已装 v' + localVer) : '已安装')
7676
7676
  : null,
7677
7677
  canUpdate
7678
- ? h('button', { className: 'qqs-mk-btn', disabled: busy, onClick: function () { onInstall({ id: id }) } },
7678
+ ? h('button', { type: 'button', className: 'qqs-mk-btn', disabled: busy, onClick: function () { onInstall({ id: id }) } },
7679
7679
  busy ? '更新中…' : ('更新到 v' + remoteVer))
7680
7680
  : null,
7681
7681
  isIn
7682
- ? h('button', { className: 'qqs-mk-ghost', disabled: busy, onClick: function () { onRemove({ id: id }) } }, busy ? '处理中…' : '卸载')
7683
- : (canUpdate ? null : h('button', { className: 'qqs-mk-btn', disabled: busy, onClick: function () { onInstall({ id: id }) } }, busy ? '安装中…' : '安装')))),
7682
+ ? h('button', { type: 'button', className: 'qqs-mk-ghost', disabled: busy, onClick: function () { onRemove({ id: id }) } }, busy ? '处理中…' : '卸载')
7683
+ : (canUpdate ? null : h('button', { type: 'button', className: 'qqs-mk-btn', disabled: busy, onClick: function () { onInstall({ id: id }) } }, busy ? '安装中…' : '安装')))),
7684
7684
  p.description ? h('div', { className: 'qqs-mk-desc', style: S2.cardDesc }, String(p.description)) : null,
7685
7685
  (p.tags && p.tags.length)
7686
7686
  ? h('div', { style: { display: 'flex', gap: 6, flexWrap: 'wrap' } },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zaofan/dsh-qqbot",
3
- "version": "1.11.20",
3
+ "version": "1.11.21",
4
4
  "description": "QQ Bot IM channel plugin for deepseek-harness (dsh)",
5
5
  "type": "module",
6
6
  "main": "./entry.js",
package/settings-host.js CHANGED
@@ -6650,7 +6650,9 @@ const WHY_MAP = { busy: '目标会话回合活跃,已等待至回合结束仍超
6650
6650
  } catch (e) {
6651
6651
  uiSeeded = { error: e instanceof Error ? e.message : String(e) };
6652
6652
  }
6653
- writeJson(res, 200, { ok: written > 0, written, total: files.length, failed, dest, uiSeeded });
6653
+ // 2026-10-30 修 issue #32:这里原本写 files.length,但作用域里只有 list(files 根本不存在)
6654
+ // ⇒ ReferenceError 被外层 catch 成 500 ⇒「文件已写入却提示安装失败、卡片也不变已安装」。
6655
+ writeJson(res, 200, { ok: written > 0, written, total: list.length, failed, dest, uiSeeded });
6654
6656
  } catch (e) {
6655
6657
  writeJson(res, 500, { ok: false, error: String((e && e.message) || e) });
6656
6658
  }