@dsmm/dsmm 0.3.34 → 0.3.36

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 CHANGED
@@ -4,14 +4,14 @@ DSMM 是 DeepSeek Harness(DSH)的插件。它让不同 Agent 分工处理任
4
4
 
5
5
  比如,让 Planner 拆解任务、Coding 写代码、Reviewer 检查结果,再由 Orchestrator 协调。各个角色可以用不同的模型,不必共用一套配置。
6
6
 
7
- 当前发布版本为 `@dsmm/dsmm@0.3.34`,支持 DSH `>=0.2.1-rc.2 <0.2.2-0 || >=0.2.2-rc.1 <0.3.0`。安装前请确认客户端版本;范围外的 DSH 版本不受支持。Desktop 使用自带运行时,独立命令行环境需要 Node.js 22 或更高版本。
7
+ 当前发布版本为 `@dsmm/dsmm@0.3.36`,支持 DSH `>=0.2.1-rc.2 <0.2.2-0 || >=0.2.2-rc.1 <0.3.0`。安装前请确认客户端版本;范围外的 DSH 版本不受支持。Desktop 使用自带运行时,独立命令行环境需要 Node.js 22 或更高版本。
8
8
 
9
9
  官方 DSH rc.3 以 `engines.dsh` 优先于 peer ranges 判定兼容性;锁文件保留 `0.2.1-rc.2` 作为开发基线。
10
10
 
11
11
  历史会话仅保守支持已有的原生读取和已验证的受限恢复路径,不承诺补齐旧版本行为或自动迁移。继续执行须满足当前身份与权限检查,历史批准不会恢复为当前授权。
12
12
 
13
13
  - 源码仓库:[hugefiver/dsmm](https://github.com/hugefiver/dsmm)
14
- - 安装来源:[npm (@dsmm/dsmm)](https://www.npmjs.com/package/@dsmm/dsmm);发布资产:[GitHub Releases (v0.3.34)](https://github.com/hugefiver/dsmm/releases/tag/v0.3.34)
14
+ - 安装来源:[npm (@dsmm/dsmm)](https://www.npmjs.com/package/@dsmm/dsmm);发布资产:[GitHub Releases (v0.3.36)](https://github.com/hugefiver/dsmm/releases/tag/v0.3.36)
15
15
 
16
16
  ---
17
17
 
@@ -22,7 +22,7 @@ DSMM 是 DeepSeek Harness(DSH)的插件。它让不同 Agent 分工处理任
22
22
  ### 初次安装
23
23
 
24
24
  1. 打开 DeepSeek Harness Desktop,进入 **插件(Plugins)** 页面。
25
- 2. 点击 **添加插件(Add plugin)**,输入 `@dsmm/dsmm@0.3.34` 并确认。
25
+ 2. 点击 **添加插件(Add plugin)**,输入 `@dsmm/dsmm@0.3.36` 并确认。
26
26
  3. 安装完成后,检查插件是否处于启用状态。如果界面提示需要重启,请按提示重启客户端。
27
27
 
28
28
  Desktop 的插件由客户端自己管理。全局 npm 安装和独立 npm 版 `dsh` 命令不能替代这一步。
@@ -34,7 +34,7 @@ DSH Desktop 当前不支持在界面中用同名版本原位覆盖更新插件
34
34
  1. 保存好正在进行的任务,**正常退出并完全关闭 DSH Desktop**。
35
35
  2. 使用 Desktop 安装自带的命令行工具更新配置。以下示例适用于 Windows 默认安装路径(`%LOCALAPPDATA%\Programs\DeepSeek Harness\`):
36
36
  ```powershell
37
- & "$env:LOCALAPPDATA\Programs\DeepSeek Harness\resources\runtime\cli\bin\dsh.cmd" plugin --profile desktop add @dsmm/dsmm@0.3.34 --save-exact --ignore-scripts --registry=https://registry.npmjs.org
37
+ & "$env:LOCALAPPDATA\Programs\DeepSeek Harness\resources\runtime\cli\bin\dsh.cmd" plugin --profile desktop add @dsmm/dsmm@0.3.36 --save-exact --ignore-scripts --registry=https://registry.npmjs.org
38
38
  ```
39
39
  *若安装在自定义路径,请替换为对应的实际位置;非 Windows 系统请参考 Desktop 自身菜单或官方指引,不要混用非 Desktop 的独立 CLI 命令。*
40
40
  3. 重新打开 DSH Desktop 即可加载新版本。
package/docs/roadmap.md CHANGED
@@ -45,7 +45,7 @@ Search/Fetch retain the explicitly configured native provider. DSMM doesn't auto
45
45
 
46
46
  A read-only native Gateway stream connects admitted role/level and initial versus observed provider/model/effort to the exact parent session and tool call. Actual route evidence comes from the current child's own request header; missing or invalidated active evidence is unknown, and missing effort is not filled from the initial route. Settled observations remain frozen. Descendant-session observation uses verified live lineage without widening root/direct-child mutation controls.
47
47
 
48
- Role, category and native subagent cards offer **Open child conversation** when the local child can be identified. The button opens the child under the card's parent session; unresolved or external executions have no conversation action.
48
+ Role, category and native subagent cards offer **Open child conversation** when the local child can be identified. The button opens the child under the card's parent session. Native subagent cards use their expanded-row action for this destination; unresolved or external executions retain native tool-call inspection instead.
49
49
 
50
50
  Repeated provider call IDs continue to execute normally. When the client cannot disambiguate a reused call ID, live observation for that key is removed; each final tool result retains its own child-bound metadata. Disconnects and observer disposal never transfer execution, cancel the child or create another completion owner.
51
51
 
package/dsh-plugin.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "manifestVersion": "0.15",
4
4
  "id": "com.hugefiver.dsmm",
5
5
  "name": "DSMM",
6
- "version": "0.3.34",
6
+ "version": "0.3.36",
7
7
  "facets": {
8
8
  "host": {
9
9
  "entry": "lib/index.js",
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- import { Button, DisclosureRow, IconAgentPresetOutlineRegular, StateDot } from "@deepseek-ai/dsh-client-ui-primitives";
2
+ import { DisclosureRow, IconAgentPresetOutlineRegular, StateDot } from "@deepseek-ai/dsh-client-ui-primitives";
3
3
  import { nativeActivationIdentity, observedNativeTool } from "./NativeToolView-data.js";
4
4
  import { childConversationAction, useCardObservation } from "./child-conversation.js";
5
5
  import { ROLE_TOOL_NS } from "./RoleToolView-locales.js";
@@ -22,8 +22,9 @@ export function NativeToolView(props) {
22
22
  const receiptChildId = receipt?.kind === "id" ? receipt.value : undefined;
23
23
  const observedChildId = (receiptChildId === undefined ? actual : nativeCall)?.childId;
24
24
  const openChild = childConversationAction(useChildWorkspace(workspace => workspace), props.sessionId, props.useProjection("subagentCatalog"), receiptChildId, observedChildId);
25
- return _jsxs(_Fragment, { children: [_jsx(NativeView, { ...nativeProps, t: nativeT }), identity !== undefined && _jsxs("div", { className: "dsmm-role-tool", "data-dsmm-native-tool": props.toolName, "data-state": state, "data-identity": "native", children: [_jsx(DisclosureRow, { title: `${t("nativeAgent")} · ${identity.value}`, titleClassName: "dsmm-role-summary", rowClassName: "dsmm-role-heading", icon: _jsx(IconAgentPresetOutlineRegular, { size: 14, className: "dsmm-role-icon" }), open: expanded, expandable: true, onToggle: toggle, expandOnRowClick: true, running: state === "running", children: _jsxs("div", { className: "dsmm-role-body", children: [_jsxs("p", { className: "dsmm-role-identity", children: [t(identity.kind === "name" ? "nativeName" : "nativeId"), ": ", identity.value] }), actual !== undefined && _jsxs("p", { className: "dsmm-role-identity", children: [t("nativeId"), ": ", actual.childId, actual.provider === undefined ? "" : ` · ${t("nativeProvider")}: ${actual.provider}`] }), _jsxs("p", { className: "dsmm-role-identity", children: [t("actualRoute"), ": ", route?.status === "known"
26
- ? `${route.route.provider}/${route.route.model} · ${route.route.reasoningEffort ?? t("effortUnreported")}` : t("routeUnknown")] }), _jsx("p", { className: "dsmm-role-identity", "data-observation-status": actual === undefined ? "unavailable" : status, children: actual === undefined ? t("nativeCorrelationUnavailable") : t({ unavailable: "observationUnavailable", connecting: "observationConnecting", live: "observationLive", stale: "observationStale" }[status]) })] }) }), _jsxs("div", { className: "dsmm-role-actions", children: [_jsx(StateDot, { state: state === "error" ? "error" : state === "stopped" ? "warning" : state === "completed" ? "done" : state === "running" ? "ongoing" : "idle" }), _jsx("p", { className: "dsmm-role-status", role: "status", children: t(state) }), openChild !== undefined && _jsx(Button, { variant: "ghost", size: "sm", onClick: openChild, children: t("openConversation") })] })] })] });
25
+ const nativeTranslate = openChild === undefined ? nativeT : (key, params) => key === "row.inspect" ? t("openConversation") : nativeT(key, params);
26
+ return _jsxs(_Fragment, { children: [_jsx(NativeView, { ...nativeProps, inspect: openChild ?? nativeProps.inspect, t: nativeTranslate }), identity !== undefined && _jsxs("div", { className: "dsmm-role-tool", "data-dsmm-native-tool": props.toolName, "data-state": state, "data-identity": "native", children: [_jsx(DisclosureRow, { title: `${t("nativeAgent")} · ${identity.value}`, titleClassName: "dsmm-role-summary", rowClassName: "dsmm-role-heading", icon: _jsx(IconAgentPresetOutlineRegular, { size: 14, className: "dsmm-role-icon" }), open: expanded, expandable: true, onToggle: toggle, expandOnRowClick: true, running: state === "running", children: _jsxs("div", { className: "dsmm-role-body", children: [_jsxs("p", { className: "dsmm-role-identity", children: [t(identity.kind === "name" ? "nativeName" : "nativeId"), ": ", identity.value] }), actual !== undefined && _jsxs("p", { className: "dsmm-role-identity", children: [t("nativeId"), ": ", actual.childId, actual.provider === undefined ? "" : ` · ${t("nativeProvider")}: ${actual.provider}`] }), _jsxs("p", { className: "dsmm-role-identity", children: [t("actualRoute"), ": ", route?.status === "known"
27
+ ? `${route.route.provider}/${route.route.model} · ${route.route.reasoningEffort ?? t("effortUnreported")}` : t("routeUnknown")] }), _jsx("p", { className: "dsmm-role-identity", "data-observation-status": actual === undefined ? "unavailable" : status, children: actual === undefined ? t("nativeCorrelationUnavailable") : t({ unavailable: "observationUnavailable", connecting: "observationConnecting", live: "observationLive", stale: "observationStale" }[status]) })] }) }), _jsxs("div", { className: "dsmm-role-actions", children: [_jsx(StateDot, { state: state === "error" ? "error" : state === "stopped" ? "warning" : state === "completed" ? "done" : state === "running" ? "ongoing" : "idle" }), _jsx("p", { className: "dsmm-role-status", role: "status", children: t(state) })] })] })] });
27
28
  }
28
29
  export function registerNativeToolViews(ctx, inject) {
29
30
  const mounted = new Map();
package/lib/client.js CHANGED
@@ -9583,8 +9583,9 @@ function NativeToolView(props) {
9583
9583
  receiptChildId,
9584
9584
  observedChildId
9585
9585
  );
9586
+ const nativeTranslate = openChild === void 0 ? nativeT : (key, params) => key === "row.inspect" ? t("openConversation") : nativeT(key, params);
9586
9587
  return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(import_jsx_runtime13.Fragment, { children: [
9587
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(NativeView, { ...nativeProps, t: nativeT }),
9588
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(NativeView, { ...nativeProps, inspect: openChild ?? nativeProps.inspect, t: nativeTranslate }),
9588
9589
  identity2 !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "dsmm-role-tool", "data-dsmm-native-tool": props.toolName, "data-state": state, "data-identity": "native", children: [
9589
9590
  /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
9590
9591
  import_dsh_client_ui_primitives11.DisclosureRow,
@@ -9621,8 +9622,7 @@ function NativeToolView(props) {
9621
9622
  ),
9622
9623
  /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "dsmm-role-actions", children: [
9623
9624
  /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_dsh_client_ui_primitives11.StateDot, { state: state === "error" ? "error" : state === "stopped" ? "warning" : state === "completed" ? "done" : state === "running" ? "ongoing" : "idle" }),
9624
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("p", { className: "dsmm-role-status", role: "status", children: t(state) }),
9625
- openChild !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_dsh_client_ui_primitives11.Button, { variant: "ghost", size: "sm", onClick: openChild, children: t("openConversation") })
9625
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("p", { className: "dsmm-role-status", role: "status", children: t(state) })
9626
9626
  ] })
9627
9627
  ] })
9628
9628
  ] });
@@ -154,11 +154,8 @@ function registerRoleTool(agent, ctx, tools, entry, getSettings, policy, admissi
154
154
  ...(background ? { run_in_background: { type: "boolean" } } : {}) },
155
155
  output: { schema: { type: "json" }, render(_args, value) {
156
156
  const result = value;
157
- const invocation = result.invocation;
158
- const route = invocation?.route;
159
- const metadata = invocation === undefined ? "" : `${invocation.role} level=${invocation.level}${route === undefined ? "" : ` route=${route.provider}/${route.model}${route.reasoningEffort === undefined ? "" : ` effort=${route.reasoningEffort}`}`}`;
160
- return result.kind === "foreground" ? [{ type: "text", text: result.name ? `${metadata}\nsubagent ${result.name}` : metadata }, ...result.output ?? []]
161
- : [{ type: "text", text: `${metadata}\naccepted subagent ${result.name ?? result.subagentId}` }];
157
+ return result.kind === "foreground" ? result.output ?? []
158
+ : [{ type: "text", text: `accepted subagent ${result.name ?? result.subagentId}` }];
162
159
  }, presentationMeta(_args, value) { return typeof value === "object" && value !== null && !Array.isArray(value) ? value.invocation ?? null : null; } },
163
160
  finalizeContent(exec, result) {
164
161
  const partial = incomplete.get(exec.token);
@@ -290,7 +287,8 @@ export function registerHeadlessRoleTools(ctx, controller, getSettings, policy,
290
287
  const captured = capturedRoleInvocation(agent);
291
288
  const delegationGuidance = buildDsmmDelegationGuidance(settings, { scope: identity.child ? "child" : "root", tools: tools?.schemas(agent) ?? [],
292
289
  delegation: tools === undefined ? [] : admittedCallableRoleInventory(agent, settings, policy, tools),
293
- ...(captured === undefined ? {} : { invocation: roleInvocationObservation(captured, DSMM_ROLES.find(role => role.id === captured.target).name, "continuable", getSettings, agent, { childId: agent.id }) }),
290
+ // Pin prompt-facing invocation metadata to the captured initial observation so later turns do not flip routeKind or effort and invalidate prompt cache.
291
+ ...(captured === undefined ? {} : { invocation: { view: invocationView(captured, DSMM_ROLES.find(role => role.id === captured.target).name, "continuable", { childId: agent.id }), routeKind: "initial" } }),
294
292
  runtimeAdmission: getSettings.subagentRuntime?.(), capabilities: { continuable: true, nativeChildDelivery: true,
295
293
  nativeTree: typeof ctx.get("subagents")?.rootOf === "function",
296
294
  ...(ctx.get("dsmmChildren") === undefined ? {} : { nativeBrowserPrompt: { surface: "conversation.dsmm-children" } }) } });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dsmm/dsmm",
3
- "version": "0.3.34",
3
+ "version": "0.3.36",
4
4
  "description": "Native Deepwork roles, routing, profiles, and permission controls for DeepSeek Harness.",
5
5
  "author": "Hugefiver",
6
6
  "license": "LicenseRef-AAAPL",