relay-dsh-plugin-claude 0.1.1-rc.4 → 0.1.2
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 +15 -1
- package/README.zh.md +10 -1
- package/lib/host-plugin.js +558 -41
- package/lib/host-plugin.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -156,6 +156,9 @@ activates the bundle and registers the managed **Claude Code** mode automaticall
|
|
|
156
156
|
- One persistent Claude Agent SDK session per DSH Session
|
|
157
157
|
- Model and reasoning selection
|
|
158
158
|
- Streaming answers and tool activity in the native DSH conversation
|
|
159
|
+
- Image-and-text prompts through the default Claude Agent SDK backend
|
|
160
|
+
- Durable in-conversation previews for workspace images referenced by Claude's
|
|
161
|
+
final answer
|
|
159
162
|
- DSH approval and user-question flows
|
|
160
163
|
- Interruption and session continuation
|
|
161
164
|
- Generic DSH tools exposed through an in-process Claude SDK MCP server
|
|
@@ -163,7 +166,18 @@ activates the bundle and registers the managed **Claude Code** mode automaticall
|
|
|
163
166
|
Tools execute through the owning Agent's DSH tool runtime and remain subject to
|
|
164
167
|
DSH permissions and Claude approval behavior. The tool bridge requires the
|
|
165
168
|
default SDK backend. If a developer explicitly selects the CLI fallback, the
|
|
166
|
-
plugin refuses contributed DSH tools instead of silently
|
|
169
|
+
plugin refuses contributed DSH tools and image input instead of silently
|
|
170
|
+
dropping them.
|
|
171
|
+
|
|
172
|
+
When Claude's successful final answer references a PNG, JPG, WebP, GIF, or SVG
|
|
173
|
+
in the Session workspace, the plugin snapshots that completed file into DSH's
|
|
174
|
+
attachment store and emits a standard assistant image block. SVG input is
|
|
175
|
+
rendered once, in memory, to a constrained PNG before it enters DSH; no sibling
|
|
176
|
+
PNG is created in the workspace, and external resources or scripts are not
|
|
177
|
+
loaded. Conversation
|
|
178
|
+
history uses the immutable attachment, so later edits or deletion of the source
|
|
179
|
+
file do not change the image already shown in the message. Remote URLs and paths
|
|
180
|
+
outside the Session workspace are never imported.
|
|
167
181
|
|
|
168
182
|
## Plugin Boundary and Relay
|
|
169
183
|
|
package/README.zh.md
CHANGED
|
@@ -148,13 +148,22 @@ npx @deepseek-ai/dsh@0.1.1-rc.2 web
|
|
|
148
148
|
- 每个 DSH Session 持续绑定一个 Claude Agent SDK Session
|
|
149
149
|
- 模型和 reasoning 选择
|
|
150
150
|
- 在 DSH 原生对话中流式显示回答和工具活动
|
|
151
|
+
- 通过默认 Claude Agent SDK 后端发送图片与文字组合输入
|
|
152
|
+
- 在对话中持久展示 Claude 最终回答所引用的工作区图片
|
|
151
153
|
- DSH 原生审批和用户提问流程
|
|
152
154
|
- 中断和会话延续
|
|
153
155
|
- 通过进程内 Claude SDK MCP Server 提供通用 DSH 工具
|
|
154
156
|
|
|
155
157
|
工具通过当前 Agent 的 DSH 工具运行时执行,并继续受到 DSH 权限和 Claude
|
|
156
158
|
审批机制约束。工具桥接依赖默认 SDK 后端。如果开发者明确选择 CLI fallback,
|
|
157
|
-
插件会拒绝 DSH
|
|
159
|
+
插件会拒绝 DSH 贡献工具和图片输入,而不是静默丢弃它们。
|
|
160
|
+
|
|
161
|
+
Claude 成功完成回答后,如果最终回答引用了当前 Session 工作区内的 PNG、
|
|
162
|
+
JPG、WebP、GIF 或 SVG,插件会立即把完成后的文件快照保存到 DSH 附件库,
|
|
163
|
+
并输出标准 assistant 图片块。SVG 会在内存中经过安全限制后一次性转换为
|
|
164
|
+
PNG;工作区中不会产生同名 PNG,也不会加载外部资源或执行脚本。历史消息只
|
|
165
|
+
读取不可变附件,因此源文件之后被修改或删除,也不会改变消息中已经展示的
|
|
166
|
+
图片。远程 URL 和工作区外路径不会被导入。
|
|
158
167
|
|
|
159
168
|
## 插件边界及与 Relay 的关系
|
|
160
169
|
|