@emptyvessel_003/dsh-prompt-shelf 0.1.0 → 0.1.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # 更新日志
2
2
 
3
+ ## 0.1.1 - 2026-11-09
4
+
5
+ - 「存为指令」按钮外观与宿主图标按钮完全对齐:补齐按钮样式重置,图标尺寸跟随字号变量。
6
+ - 已对接管用户消息渲染的插件(如 dsh-tree-view)共存时的位置冲突说明。
7
+
3
8
  ## 0.1.0 - 2026-11-09
4
9
 
5
10
  首个版本。
package/README.md CHANGED
@@ -58,6 +58,7 @@ DSH `>=0.1.7-rc.2 <0.3.0`,仅 Web 平台。
58
58
 
59
59
  - DSH 没有为用户消息提供独立的动作行插槽(只有 `conversation.chat.assistant-actions` 是给助手消息的),因此本插件通过 `conversation.chat.node` 以更低优先级接管 user/steering 节点,再原样渲染宿主组件,只把按钮插进它自己渲染出的图标行。宿主改这部分实现时需要同步调整。
60
60
  - 「存为指令」按钮点击后的隐藏状态只在当前页面内存里,刷新后会重新出现。
61
+ - 与同样接管 `conversation.chat.node` 的插件(例如 dsh-tree-view 会自己重画用户消息和动作行)同时启用时,本插件的按钮可能挤进对方的按钮排里。两个插件都想往同一处放东西,DSH 没有为这里提供共享插槽,安装时需自行取舍。
61
62
 
62
63
  ## 许可证
63
64
 
package/cordis.patch.yml CHANGED
@@ -1,4 +1,4 @@
1
- # dsh-prompt-shelf:一条 insert 同时挂上宿主行与客户端半。
1
+ # 一条 insert 同时挂上宿主行与客户端半。
2
2
  - insert:
3
3
  - id: prompt-shelf
4
4
  name: '@emptyvessel_003/dsh-prompt-shelf'
package/lib/client.js CHANGED
@@ -321,7 +321,8 @@ window.__ModuleLoader__.load({
321
321
  '.ps-chip--more{padding:0 10px;border-color:var(--dsw-alias-border-l4);background:transparent;color:var(--dsw-alias-label-tertiary);font-size:12px;cursor:default;}',
322
322
  '.ps-umsg{display:block;min-width:0;}',
323
323
  '.ps-umsg-slot{display:contents;}',
324
- '.ps-umsg-act{width:calc(28px + var(--dsh-content-font-delta,0px));height:calc(28px + var(--dsh-content-font-delta,0px));padding:6px;border:none;border-radius:var(--dsw-radius-sm);background:transparent;color:var(--dsw-alias-label-tertiary);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;}',
324
+ // 与宿主图标按钮逐条对齐(dsh-client-ui-chat 的 .xzv4MW_action),自己 draw 的框来自缺少这些重置。
325
+ '.ps-umsg-act{width:calc(28px + var(--dsh-content-font-delta,0px));height:calc(28px + var(--dsh-content-font-delta,0px));border-radius:var(--dsw-radius-sm);color:var(--dsw-alias-label-tertiary);cursor:pointer;background:0 0;border:none;justify-content:center;align-items:center;padding:6px;display:inline-flex;appearance:none;-webkit-appearance:none;font:inherit;line-height:1;}',
325
326
  '.ps-umsg-act svg{width:calc(15px + var(--dsh-content-font-delta,0px));height:calc(15px + var(--dsh-content-font-delta,0px));}',
326
327
  '.ps-umsg-act:hover{background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-secondary);}',
327
328
  '.ps-umsg-act:focus-visible{outline:2px solid var(--dsw-alias-brand-primary);outline-offset:1px;}',
@@ -610,7 +611,7 @@ window.__ModuleLoader__.load({
610
611
  createCard({ title: turn > 0 ? '第 ' + turn + ' 轮' : '', tags: [], content: text })
611
612
  setDone(true)
612
613
  }
613
- }, h(IconPlus, { size: 15 })) }),
614
+ }, h(IconPlus)) }),
614
615
  row
615
616
  )
616
617
  return h('div', { className: 'ps-umsg', ref: rootRef },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emptyvessel_003/dsh-prompt-shelf",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "DSH Web 插件:在右侧栏管理常用指令卡片,点一下带进下一条消息,按会话每轮自动注入,已发消息可一键存回。",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",