dsh-better-display 0.3.9 → 0.3.10
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.en.md +1 -1
- package/README.md +1 -1
- package/compat/harness-rc2.json +17 -13
- package/docs/official-rendering-bridge.md +1 -1
- package/lib/client.js +406 -403
- package/lib/client.js.map +1 -1
- package/lib/dsh-better-display.js +9 -18
- package/lib/types/client/OfficialContent.js +6 -7
- package/lib/types/client/OfficialContent.js.map +1 -1
- package/lib/types/client/Reader.d.ts.map +1 -1
- package/lib/types/client/Reader.js +2 -6
- package/lib/types/client/Reader.js.map +1 -1
- package/lib/types/client/official-slots.d.ts +15 -3
- package/lib/types/client/official-slots.d.ts.map +1 -1
- package/lib/types/client/official-slots.js +37 -4
- package/lib/types/client/official-slots.js.map +1 -1
- package/lib/types/client/primitive-labels.d.ts.map +1 -1
- package/lib/types/client/primitive-labels.js +1 -0
- package/lib/types/client/primitive-labels.js.map +1 -1
- package/package.json +20 -19
- package/scripts/check-harness-compat.mjs +4 -2
- package/scripts/link-harness-dependencies.mjs +48 -11
- package/src/client/OfficialContent.tsx +7 -7
- package/src/client/Reader.tsx +2 -6
- package/src/client/official-slots.tsx +38 -5
- package/src/client/primitive-labels.ts +1 -0
- package/tests/browser-official-bridge.tsx +2 -1
- package/tests/fixtures/reader-user-bubble.tsx +37 -15
- package/tests/reader-user-bubble.test.ts +1 -0
- package/tests/stock-install.test.ts +10 -6
package/README.en.md
CHANGED
|
@@ -28,7 +28,7 @@ Another plugin can rewrite reasoning and answer text for display only, for examp
|
|
|
28
28
|
|
|
29
29
|
A ````mcp-app` fence in the final answer mounts as an interactive card in the reading view, inside `<iframe sandbox="allow-scripts allow-forms">` without `allow-same-origin`. The card can fill the next prompt via JSON-RPC. The skill pack is [`skills/generative-mcpapps/`](skills/generative-mcpapps/). Settings → **Better Display** can preview deliverables in the right Sidebar (system app remains the default), turn on translucent frosted glass (off by default), toggle process auto-folding (On is the default), and reports whether that skill is installed in a harness skill root.
|
|
30
30
|
|
|
31
|
-
Targets DeepSeek Harness **0.2.
|
|
31
|
+
Targets DeepSeek Harness **0.2.1-rc.5** (`dsh-v0.2.1-rc.5`, `b830ec950faba0a46dda564be3e2d854afed94f1`). Display only. It does not change Agent execution, the SDK, or credentials. Node.js `^22.19.0 || >=24`. New sessions default to reading. The `@deepseek-ai/dsh-*` peer range and `engines.dsh` are `>=0.2.1-rc.1 <0.2.2`: they accept `0.2.1-rc.5` and stable `0.2.1`, reject `0.2.1` alphas, and reject the `0.2.0` series.
|
|
32
32
|
|
|
33
33
|
**0.3.0** keeps the existing reading layout, folding, and motion while using official feedback, tool details, file cards, and file links. It also fixes process content staying expanded after auto-folding is re-enabled. See the [official integration notes](docs/official-rendering-bridge.md) for coverage and upgrade checks.
|
|
34
34
|
|
package/README.md
CHANGED
|
@@ -28,7 +28,7 @@ dsh plugin --profile web add github:aa2246740/dsh-better-display#v0.3.6
|
|
|
28
28
|
|
|
29
29
|
最终回答里的 ````mcp-app` 代码块会在阅读视图里挂成交互卡片,跑在 `<iframe sandbox="allow-scripts allow-forms">` 里,没有 `allow-same-origin`。卡片可以通过 JSON-RPC 把下一轮 prompt 填进输入框。技能包在 [`skills/generative-mcpapps/`](skills/generative-mcpapps/)。设置里的 **Better Display** 可把产物改为右侧栏预览(默认仍用系统应用),打开半透明毛玻璃(默认关),设置过程自动折叠开关(默认开),并检测该技能是否已装进宿主技能目录。
|
|
30
30
|
|
|
31
|
-
面向 DeepSeek Harness **0.2.
|
|
31
|
+
面向 DeepSeek Harness **0.2.1-rc.5**(`dsh-v0.2.1-rc.5`,`b830ec950faba0a46dda564be3e2d854afed94f1`)。只改展示,不改 Agent 执行、SDK 或模型凭据。Node.js `^22.19.0 || >=24`。新会话默认进阅读。`@deepseek-ai/dsh-*` peer 与 `engines.dsh` 是 `>=0.2.1-rc.1 <0.2.2`:接受 `0.2.1-rc.5` 和稳定版 `0.2.1`,拒绝 `0.2.1` alpha,也拒绝 `0.2.0` 系列。
|
|
32
32
|
|
|
33
33
|
**0.3.0** 保留现有阅读布局、折叠和动效,接入官方反馈、工具详情、文件卡片及文件链接;并修复重新开启自动折叠后仍保持展开的问题。接入范围和升级检查见 [官方能力接入说明](docs/official-rendering-bridge.md)。
|
|
34
34
|
|
package/compat/harness-rc2.json
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
{
|
|
2
|
-
"harnessVersion": "0.2.
|
|
2
|
+
"harnessVersion": "0.2.1-rc.5",
|
|
3
|
+
"harnessCommit": "b830ec950faba0a46dda564be3e2d854afed94f1",
|
|
3
4
|
"hashes": {
|
|
4
|
-
"packages/client/ui-slots/src/index.ts": "
|
|
5
|
-
"packages/client/ui-slots/src/renderer.ts": "
|
|
5
|
+
"packages/client/ui-slots/src/index.ts": "43989fb355e1e85316caa70b28de3294f9d6e7b179199a4e429dcd1ef73f2e24",
|
|
6
|
+
"packages/client/ui-slots/src/renderer.ts": "43ba3492fff724ffbe71d0b4bcfca410ab695d019aa2e163d2c8dd56cab1a849",
|
|
6
7
|
"packages/client/ui-renderer/src/client/registry.ts": "6b8b6b969d8bcf0314ea20438a223f3a90e1bd516571faecae5c3c01008ecf21",
|
|
7
|
-
"packages/client/ui-renderer/src/client/scoped-slots.tsx": "
|
|
8
|
-
"packages/client/ui-chat/src/client/contract/slots.ts": "
|
|
9
|
-
"packages/client/ui-tool/src/client/contract/slots.ts": "
|
|
8
|
+
"packages/client/ui-renderer/src/client/scoped-slots.tsx": "ff53b648f9a6fbd59bc13b89fbe33c67b32421c99ab7923689bfa1b47cea95c1",
|
|
9
|
+
"packages/client/ui-chat/src/client/contract/slots.ts": "cf29c7cea66ef3528fbed07387a06c986e6087289a52fe4a9946ea41e3c3275d",
|
|
10
|
+
"packages/client/ui-tool/src/client/contract/slots.ts": "ba3d869c09fead1a4de6eef0b23a276d795ab159a3f9d5df1c5e8fe1c40a7415",
|
|
10
11
|
"packages/client/ui-deliverables/src/client/Deliverables.tsx": "b8d0a19dc208af7f8f44459adba9afe648cd3c398d75917ccfaf2f8c730cfe74",
|
|
11
|
-
"packages/client/ui-chat/src/client/chat/AssistantMarkdown.tsx": "
|
|
12
|
-
"packages/client/ui-chat/src/client/chat/MessageItem.tsx": "
|
|
13
|
-
"packages/client/ui-chat/src/client/chat/AssistantNodeView.tsx": "
|
|
14
|
-
"packages/client/ui-chat/src/client/chat/TurnTailNodeView.tsx": "
|
|
15
|
-
"packages/client/ui-chat/src/client/chat/TurnProcessNodeView.tsx": "
|
|
16
|
-
"packages/client/ui-tool/src/client/tool/models/tool-call-model.ts": "
|
|
12
|
+
"packages/client/ui-chat/src/client/chat/AssistantMarkdown.tsx": "e0d3e450a160ef395e4f50063d83a83a749763f7876fa0a36c5c2de68f6be387",
|
|
13
|
+
"packages/client/ui-chat/src/client/chat/MessageItem.tsx": "118a4d1dcf9eb3b128708b3021acd6f2f7584004f6f904e2d61df23daa528e63",
|
|
14
|
+
"packages/client/ui-chat/src/client/chat/AssistantNodeView.tsx": "72bbc22bd8584c6f8c07656e33b7adb5858f2151eff6e21c6e9a9e87178c41c2",
|
|
15
|
+
"packages/client/ui-chat/src/client/chat/TurnTailNodeView.tsx": "835118e15bb4518d8865de9421425456e377bd623cd8bad2d88ac95ae038b94f",
|
|
16
|
+
"packages/client/ui-chat/src/client/chat/TurnProcessNodeView.tsx": "b7aa82eeb7c8e32bc7e67cca6f4695d23d0ee497c4fc537160a78716a3283dd6",
|
|
17
|
+
"packages/client/ui-tool/src/client/tool/models/tool-call-model.ts": "1c9d44c2a2da9953edd922e21a9987995356dfc7fb8f3f066938e779a7927384",
|
|
17
18
|
"packages/client/ui-primitives/src/markdown/MarkdownText.tsx": "ff500ab71ac6a55df416f84cc1f5900327b9908c5180c4e2b3888377bd417a97",
|
|
18
19
|
"packages/client/ui-primitives/src/markdown/render.tsx": "6e4af631d34ae8c8ea1dbeabd1b4593ee9ff23c3470d2855708b3cf8b84bbca2",
|
|
19
20
|
"packages/client/ui-primitives/src/markdown/parse.ts": "e281b4120306987cce9cf6d8bccfeddec2fe0c7b7b1cc190966f6dcbfd320b1b",
|
|
@@ -22,6 +23,8 @@
|
|
|
22
23
|
},
|
|
23
24
|
"registrations": [
|
|
24
25
|
"conversation.chat.assistant-actions | feedback | packages/client/ui-message-feedback/src/client/index.ts",
|
|
26
|
+
"conversation.chat.flow | (chain/single) | packages/client/ui-chat/src/client/apply.ts",
|
|
27
|
+
"conversation.chat.message.images | (chain/single) | packages/client/ui-attachment/src/client/index.ts",
|
|
25
28
|
"conversation.chat.node | assistant-step | packages/client/ui-chat/src/client/chat/register-node-renderers.ts",
|
|
26
29
|
"conversation.chat.node | command | packages/client/ui-chat/src/client/chat/register-node-renderers.ts",
|
|
27
30
|
"conversation.chat.node | command-input | packages/client/ui-goal/src/client/index.ts",
|
|
@@ -40,10 +43,11 @@
|
|
|
40
43
|
"conversation.chat.node | unknown | packages/client/ui-chat/src/client/chat/register-node-renderers.ts",
|
|
41
44
|
"conversation.chat.node | user | packages/client/ui-chat/src/client/chat/register-node-renderers.ts",
|
|
42
45
|
"conversation.chat.node | workflow-run | packages/client/ui-workflow-run/src/client/index.ts",
|
|
46
|
+
"conversation.chat.reasoning.body | (chain/single) | packages/client/ui-chat/src/client/chat/register-node-renderers.ts",
|
|
43
47
|
"conversation.chat.turnTail | (chain/single) | packages/client/ui-plan/src/client/index.ts",
|
|
44
48
|
"conversation.chat.turnTail | @deepseek-ai/dsh-client-ui-deliverables | packages/client/ui-deliverables/src/client/index.ts",
|
|
45
49
|
"conversation.chat.turnTail | schedule-created | packages/client/ui-schedule/src/client/index.ts",
|
|
46
|
-
"conversation.
|
|
50
|
+
"conversation.chat.user.images | (chain/single) | packages/client/ui-attachment/src/client/index.ts",
|
|
47
51
|
"tool.call.images | (chain/single) | packages/client/ui-attachment/src/client/index.ts",
|
|
48
52
|
"tool.call.toolview | ask_user_question | packages/client/ui-tool/src/client/tool/toolviews/ask-question-row.tsx",
|
|
49
53
|
"tool.call.toolview | bash | packages/client/ui-tool/src/client/tool/toolviews/bash-sample.tsx",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# 官方能力接入说明
|
|
2
2
|
|
|
3
|
-
`0.3.0`
|
|
3
|
+
`0.3.0` 在阅读布局上接入官方内容和控件。当前验收目标是 Harness `0.2.1-rc.5`(`dsh-v0.2.1-rc.5`,`b830ec950faba0a46dda564be3e2d854afed94f1`)。`conversation.chat.turnTail` 仍是 `list`。`conversation.message.images` 已拆成 `conversation.chat.message.images` 与 `conversation.chat.user.images`,Reader 分别镜像这两条 single/session 槽。`ChatNodeOwnerProps` 不再带 `openSkill` / `renderMessageImages`;`conversation.chat.node` 的 `hookContext` 需要 `useGroupAction`。`schedule-created` 和 `schedule_update` 继续走已有镜像座位,Reader 不另写这两张卡片。图标仍使用 `*Regular` 名称。开发者消息里的工具增减行用官方标题和计数,本地 Markdown 图片接受 Desktop 文件路由 `dsh-app://app/api/file`。阅读页自己呈现模型重试和进行中的过程行,所以这两处官方视图变化不改阅读布局。后续仍需维护的自有展示逻辑和升级边界见下文。
|
|
4
4
|
|
|
5
5
|
## 一个具体例子
|
|
6
6
|
|