@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 +5 -0
- package/README.md +1 -0
- package/cordis.patch.yml +1 -1
- package/lib/client.js +3 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
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
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
|
-
|
|
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
|
|
614
|
+
}, h(IconPlus)) }),
|
|
614
615
|
row
|
|
615
616
|
)
|
|
616
617
|
return h('div', { className: 'ps-umsg', ref: rootRef },
|