@dsmm/dsmm 0.3.27 → 0.3.28

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.27`,支持 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.28`,支持 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.27)](https://github.com/hugefiver/dsmm/releases/tag/v0.3.27)
14
+ - 安装来源:[npm (@dsmm/dsmm)](https://www.npmjs.com/package/@dsmm/dsmm);发布资产:[GitHub Releases (v0.3.28)](https://github.com/hugefiver/dsmm/releases/tag/v0.3.28)
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.27` 并确认。
25
+ 2. 点击 **添加插件(Add plugin)**,输入 `@dsmm/dsmm@0.3.28` 并确认。
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.27 --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.28 --save-exact --ignore-scripts --registry=https://registry.npmjs.org
38
38
  ```
39
39
  *若安装在自定义路径,请替换为对应的实际位置;非 Windows 系统请参考 Desktop 自身菜单或官方指引,不要混用非 Desktop 的独立 CLI 命令。*
40
40
  3. 重新打开 DSH Desktop 即可加载新版本。
@@ -83,7 +83,7 @@ DSMM 包含两处相互独立的配置区域:
83
83
  - **在当前会话中应用方案(Apply profile to current session)**:在已有对话历史的原生会话中直接更换预设方案。
84
84
  - 会话必须处于真正空闲状态:无正在生成的回复、无排队输入、无待处理审批且无运行中的子任务。界面单独显示 `idle` 状态并不代表没有后台活动,需等待所有操作完全结束。
85
85
  - 切换成功后,已存在的旧子任务继续保留启动时的原配置与限制,后续新委派的子任务才会使用新方案。
86
- - 部分新版 Host 无法确认全部后台工作是否空闲,此操作会显示不可用;保存方案和原生模型选择保持独立。
86
+ - 已停止并完成收尾、或自然完成的会话可以直接切换。切换以当前会话及已加载子会话的实际状态为准;若仍有任务或其他操作进行中,结束后重试。保存方案和原生模型选择保持独立。
87
87
  - **使用方案模型(Use profile model)**:对于有对应 DSMM 角色主模型的会话,把原生模型选择切换为方案中配置的主模型。默认的 `rootModelPolicy: native` 下,保存或切换方案不会自动改模型;要一起换模型,需要明确点击这个操作。操作期间如果又手动选择了模型,以较新的选择为准。
88
88
 
89
89
  ### 配置角色模型与参数
@@ -1,6 +1,6 @@
1
1
  # DSMM compatibility and upgrade boundaries
2
2
 
3
- **DSMM 0.3.27 supports DSH `>=0.2.1-rc.2 <0.2.2-0 || >=0.2.2-rc.1 <0.3.0`** and Node.js 22 or later. The dual branch admits the 0.2.2 RC series (from `0.2.2-rc.1` on) while keeping every supported 0.2.1 release in range; `0.2.2-alpha.*` is deliberately excluded. Official DSH rc.3+ gives `engines.dsh` precedence over peer ranges (peers are ignored when `engines.dsh` is present) and evaluates ranges with prereleases included; strict npm semantics additionally need the explicit second branch, so the declaration is accurate under both readings. The `<0.3.0` upper bound lets future `0.3.0-rc.x` pass the Host gate under its includePrerelease reading; strict consumers exclude it. DSH dependencies, peerDependencies and devDependencies use the same non-exact range as `engines.dsh`, so a Host profile resolves them to its in-range version instead of being shadowed by a pinned `0.2.1-rc.2` copy; the lockfile keeps `0.2.1-rc.2` as the development baseline; versions outside the declared Host range aren't supported.
3
+ **DSMM 0.3.28 supports DSH `>=0.2.1-rc.2 <0.2.2-0 || >=0.2.2-rc.1 <0.3.0`** and Node.js 22 or later. The dual branch admits the 0.2.2 RC series (from `0.2.2-rc.1` on) while keeping every supported 0.2.1 release in range; `0.2.2-alpha.*` is deliberately excluded. Official DSH rc.3+ gives `engines.dsh` precedence over peer ranges (peers are ignored when `engines.dsh` is present) and evaluates ranges with prereleases included; strict npm semantics additionally need the explicit second branch, so the declaration is accurate under both readings. The `<0.3.0` upper bound lets future `0.3.0-rc.x` pass the Host gate under its includePrerelease reading; strict consumers exclude it. DSH dependencies, peerDependencies and devDependencies use the same non-exact range as `engines.dsh`, so a Host profile resolves them to its in-range version instead of being shadowed by a pinned `0.2.1-rc.2` copy; the lockfile keeps `0.2.1-rc.2` as the development baseline; versions outside the declared Host range aren't supported.
4
4
 
5
5
  ## Supported integration
6
6
 
@@ -34,7 +34,7 @@ DSMM runs identically on 0.2.1 and 0.2.2 Hosts except where 0.2.2 changed public
34
34
 
35
35
  - **Model selection is fixed before step preparation.** DSMM prepares the selection and request proposal together during admission and maintenance, keeping adapter defaults separate from explicit effort. Configured roots with an explicit primary reassert their admitted selection at public running/inbox boundaries; native roots retain native selection authority. A request that conflicts with its step's fixed provider/model/effort is rejected before dispatch, without scheduling another selection or dropping parameters. A picker change racing a running step can therefore produce a refusal; change models while idle for the next-turn boundary. Plugin metadata associates DSMM-written selections and child setup selections observed between native Session and Agent announcements with their exact events. These remain distinguishable on cold activation without treating setup as new manual intent. The records convey no authority, and same-value selections create no synthetic intent.
36
36
  - **Cross-route model fallback is unavailable on 0.2.2** (blocked): the request-error contract only allows same-selection retries, so `rate-limit-fallback` route switching degrades to a bounded same-route retry with a one-time diagnostic, and unavailable-route switching refuses outright. 0.2.1 behavior is unchanged. The native `dsh-llm-retry` extension coexists with DSMM's retry ownership.
37
- - **Session configuration switching requires provider enumeration.** Hosts without `subagents.list()` still load DSMM and execute normal sessions and role delegations. Applying a profile or deployment baseline to a resident session is unavailable because DSMM cannot establish that external subagent work is absent. Independent Deepwork mode controls remain available. Saving configuration and selecting defaults for new sessions remain available.
37
+ - **Idle session configuration switching uses current activity.** Completed or stopped roots can select a saved profile or the deployment baseline through native maintenance, including on Hosts without `subagents.list()`. Running resident descendants, observed pending work, queued input and conflicting maintenance still prevent switching. Provider registration alone does not disable the action. Existing children retain their captured configuration; the root's next request and new delegations use the selected configuration.
38
38
  - **Native tree publication precedes child admission on newer Hosts.** Child requests and tools wait for verified native publication. New delegation requires its exact live creator. Existing members keep the durable creator distinct from the live root that owns admission lifetime. A supported cold member with a complete own restriction ceiling can resume while its creator is absent; native catalog/provider identity, current configuration and captured limits remain required. Legacy records without this evidence retain exact-live-creator recovery.
39
39
  - **Pending selection is visible at admission.** A DSMM-configured route becomes the client-visible pending model selection as soon as admission completes, and cross-step route changes surface the Host's `[model changed: ...]` notice. This is native 0.2.2 behavior and is not suppressed.
40
40
  - **fs overwrite observation is restored by the DSMM bundle patch.** 0.2.2 compositions disable `@deepseek-ai/dsh-fs-observation-policy` by default; DSMM's bundle patch re-enables it by id, restoring read-before-write and external-modification rejection (`FS_STALE_VERSION`). The user's profile layer still wins and can explicitly disable it.
package/docs/roadmap.md CHANGED
@@ -28,7 +28,7 @@ On DSH `0.2.2-rc.1`, native multi-file patches are available through explicit `t
28
28
  | --- | --- | --- |
29
29
  | Cross-route model fallback on 0.2.2 | 0.2.2 fixes the model selection per step; DSMM keeps same-route bounded retries and degrades `rate-limit-fallback` switching to a same-route retry with a one-time diagnostic. 0.2.1 switching is unchanged. | A public re-selection boundary within the failing step (or per-attempt selection); see [compatibility](compatibility.md#dsh-022-host-differences). |
30
30
  | Profile selection before execution | Existing blank roots can select saved profiles or deployment defaults. Without a session, explicit workspace/Profile selection obtains a native blank, blocks sending until selection is confirmed, then opens it. | Validate native new-session navigation, unsent text/references/attachments and first-send behavior in the target Host. No-session selection is implemented; browser acceptance is separate. |
31
- | Session overlay Apply | Hosts exposing complete provider enumeration can switch eligible quiescent roots under native subtree maintenance and admission CAS. Active work, queued input and pending approval/delegation prevent switching. Hosts without `subagents.list()`, including rc.3, refuse this action while ordinary execution and separate model/mode actions remain available. | A public way to prove all provider work is idle is required on tree-only runtimes. Active-work switching remains unsupported. See [approval boundaries](deferred-native-approval-risk.md). |
31
+ | Session overlay Apply | Completed or stopped roots can switch using current resident-tree activity, native maintenance and admission CAS, including on rc.3 without provider enumeration. Observed active work, queued input and pending approval/delegation prevent switching. | Switching during active work remains unsupported. Unknown external-provider activity is not a global switching gate. See [approval boundaries](deferred-native-approval-risk.md). |
32
32
  | Running-call background handoff | Deferred. Select waiting or native parent delivery before starting; existing background dispatch stays unchanged. | A supported same-activation native delivery handoff; see the deferred foreground delegation requirements below. |
33
33
  | Granular sandbox access switches | Deferred for later investigation, including system-certificate access for Windows Schannel. No new switch or backend is supplied for this capability. | A supported per-process enforcement mechanism, identified necessary resources, and isolated on/off verification; see [granular sandbox extensions](#deferred-granular-sandbox-access-switches). |
34
34
  | Restricted-role continuation after restoration | Supported roots and continuable children receive fresh admission through awaited `agent/created`, with current role, parent, readonly, tool and depth checks. Historical approvals do not grant current authority. | Broader historical-format support needs public control of persisted persona/composition and pre-activation restoration boundaries. Cold-child image preflight can still inspect historical `agent.options` before current routing takes effect. Unresolvable presets and missing or unsafe identity remain refused; see [recovery boundaries](compatibility.md#native-history-composition). |
package/docs/testing.md CHANGED
@@ -58,6 +58,7 @@ serially.
58
58
  | `host-boundaries` | Isolated installed-Host CLI routing, cold resume, native/DSMM LLM owners, default effort, tools, child admission and retry boundaries, plus the resolver-free Fake-IP adapter guard. Requires `DSMM_TEST_DSH_ENTRY`; uses a loopback model service and no real API credentials. |
59
59
  | `adaptation-remaining` | Targeted dual-Host feature compatibility. Requires `DSMM_TEST_DSH_ENTRY`. Native patch tests run the built package through an isolated CLI, native tool-fs and filesystem sandbox, covering explicit configuration, observation, multi-path effects and permission/cancellation boundaries. Live-delegation tests load the built package in the selected Host and exercise its actual Gateway/Connection stream while loopback child HTTP is held, including observer disposal and repeated provider call IDs; this is not browser DOM acceptance. Dynamic-header tests resolve the selected SDK and run built DSMM owners/adapters through a real Cordis Loader/Pi-AI adapter with loopback HTTP and configuration/retirement checks; their dedicated resolver does not redirect `lib` back to source. Unsupported native capabilities explicitly skip; rc.2 retains its existing filesystem tool set. |
60
60
  | `native-teams` | Real native tree messages, ancestor interruption, creator-absent role/generic continuation and Agent Teams task permissions. Set `DSMM_TEST_DSH_ENTRY` to a Host exposing the relevant native capabilities; these files use the Host-source resolver. |
61
+ | `profile-switching` | Completed and stopped roots switch profiles on the tree-capable Host; subsequent requests use the new configuration while native model choices remain intact. Requires `DSMM_TEST_DSH_ENTRY` and uses the Host-source resolver. |
61
62
  | `frontend` | Real browser deployment/profile/editable-choice flows and native role/native delegation cards, including the actual Gateway-to-DOM observation path. Browser cases require both `DSMM_TEST_DSH_ENTRY` and `DSMM_TEST_PLAYWRIGHT_ENTRY`; `DSMM_TEST_BROWSER_EXECUTABLE` selects an existing browser. |
62
63
  | `delivery` | Actual package/frontend materialization and full native/ordinary module delivery. Native cases require an explicit DSH anchor. |
63
64
 
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.27",
6
+ "version": "0.3.28",
7
7
  "facets": {
8
8
  "host": {
9
9
  "entry": "lib/index.js",
@@ -14,7 +14,7 @@ function capabilityReason(reason, t) {
14
14
  case "busy": return t("headerBusy");
15
15
  case "maintenance": return t("headerMaintenanceRefused");
16
16
  case "module-off": return t("sessionModuleOff");
17
- case "runtime-unavailable": return t("headerUnavailableRefused");
17
+ case "runtime-unavailable": return t("headerRuntimeUnavailable");
18
18
  case "model-unconfigured": return t("headerNoProfileModel");
19
19
  case "model-service-unavailable": return t("headerModelUnconfirmed");
20
20
  case "new-session-required": return t("sessionNewRequired");
@@ -264,9 +264,9 @@ export declare const childrenLocaleZh: {
264
264
  queue: string;
265
265
  steer: string;
266
266
  liveRoute: string;
267
- runtime: string;
268
267
  parentId: string;
269
268
  activity: string;
269
+ runtime: string;
270
270
  refresh: string;
271
271
  images: string;
272
272
  restart: string;
@@ -194,6 +194,7 @@ export declare const en: {
194
194
  headerAppliedWithModel: string;
195
195
  headerModelChoiceChanged: string;
196
196
  headerActionUnavailable: string;
197
+ headerRuntimeUnavailable: string;
197
198
  headerActivationRefused: string;
198
199
  headerSelectionRefused: string;
199
200
  headerIssueCode: string;
@@ -69,6 +69,7 @@ export const en = {
69
69
  headerNoProfileModel: "This profile sets no model.", headerModelUnconfirmed: "The model change is unconfirmed. Check model settings.", headerAppliedWithModel: "Configuration and model applied.",
70
70
  headerModelChoiceChanged: "Your newer model choice was kept.",
71
71
  headerActionUnavailable: "Unavailable right now. Refresh to check again.",
72
+ headerRuntimeUnavailable: "This action is currently unavailable for this session.",
72
73
  headerActivationRefused: "The profile could not be applied. Check its configuration and the model catalog.", headerSelectionRefused: "The profile change could not be confirmed.", headerIssueCode: "Reason: {code}.", headerIssueField: "Field: {field}.", headerRetryHint: "Refresh, fix the issue in Settings or Models, then retry while the session is idle.",
73
74
  headerMaintenanceRefused: "Another session operation is in progress. Try again shortly.", headerBusyRefused: "The session is running. Try again when it finishes.", headerCancelledRefused: "Cancelled. Refresh to confirm the current configuration.", headerUnavailableRefused: "Cannot read the session configuration. Reconnect and refresh.", headerWaitRetryHint: "Refresh and retry when the session is ready.",
74
75
  noSession: "Select a session to change its configuration.",
@@ -188,6 +189,7 @@ export const zh = {
188
189
  headerNoProfileModel: "此配置未设置模型。", headerModelUnconfirmed: "模型更改未确认,请检查模型设置。", headerAppliedWithModel: "配置和模型已应用。",
189
190
  headerModelChoiceChanged: "已保留你最新选择的模型。",
190
191
  headerActionUnavailable: "此操作暂不可用,请刷新确认。",
192
+ headerRuntimeUnavailable: "当前会话暂时无法执行此操作。",
191
193
  headerActivationRefused: "配置无法应用,请检查其配置和模型目录。", headerSelectionRefused: "无法确认配置更改。", headerIssueCode: "原因:{code}。", headerIssueField: "字段:{field}。", headerRetryHint: "请刷新,在设置或模型页解决问题,然后在会话空闲时重试。",
192
194
  headerMaintenanceRefused: "会话正在处理其他操作,请稍后重试。", headerBusyRefused: "会话正在运行,请结束后重试。", headerCancelledRefused: "已取消,请刷新确认当前配置。", headerUnavailableRefused: "无法读取会话配置,请重新连接后刷新。", headerWaitRetryHint: "请稍后刷新并重试。",
193
195
  noSession: "选择会话后可更改配置。",
package/lib/client.js CHANGED
@@ -4709,6 +4709,7 @@ var en = {
4709
4709
  headerAppliedWithModel: "Configuration and model applied.",
4710
4710
  headerModelChoiceChanged: "Your newer model choice was kept.",
4711
4711
  headerActionUnavailable: "Unavailable right now. Refresh to check again.",
4712
+ headerRuntimeUnavailable: "This action is currently unavailable for this session.",
4712
4713
  headerActivationRefused: "The profile could not be applied. Check its configuration and the model catalog.",
4713
4714
  headerSelectionRefused: "The profile change could not be confirmed.",
4714
4715
  headerIssueCode: "Reason: {code}.",
@@ -5017,6 +5018,7 @@ var zh = {
5017
5018
  headerAppliedWithModel: "配置和模型已应用。",
5018
5019
  headerModelChoiceChanged: "已保留你最新选择的模型。",
5019
5020
  headerActionUnavailable: "此操作暂不可用,请刷新确认。",
5021
+ headerRuntimeUnavailable: "当前会话暂时无法执行此操作。",
5020
5022
  headerActivationRefused: "配置无法应用,请检查其配置和模型目录。",
5021
5023
  headerSelectionRefused: "无法确认配置更改。",
5022
5024
  headerIssueCode: "原因:{code}。",
@@ -6195,7 +6197,7 @@ function capabilityReason(reason, t) {
6195
6197
  case "module-off":
6196
6198
  return t("sessionModuleOff");
6197
6199
  case "runtime-unavailable":
6198
- return t("headerUnavailableRefused");
6200
+ return t("headerRuntimeUnavailable");
6199
6201
  case "model-unconfigured":
6200
6202
  return t("headerNoProfileModel");
6201
6203
  case "model-service-unavailable":
@@ -52,8 +52,6 @@ export declare class NativeAdmission {
52
52
  private readonly nativeToolExecution;
53
53
  private readonly observedCallRuns;
54
54
  private readonly callSubscribers;
55
- private readonly providerScopes;
56
- private readonly opaqueAgents;
57
55
  private readonly admissionRoutes;
58
56
  private readonly admissionRouteFailures;
59
57
  private readonly setupSelectionCursors;
@@ -101,7 +99,6 @@ export declare class NativeAdmission {
101
99
  assert(agent: Agent): DsmmProfileAdmission;
102
100
  private assertBinding;
103
101
  private residentTree;
104
- private observeProviders;
105
102
  blankReason(agent: Agent, allowQueued?: boolean): SessionActionUnavailableReason | undefined;
106
103
  /** Reserved by runMaintenance; newly queued input belongs to the accepted choice. */
107
104
  beginBlank(agent: Agent, signal: AbortSignal, assertAuthority: () => void): Promise<{
@@ -94,8 +94,6 @@ export class NativeAdmission {
94
94
  nativeToolExecution = new AsyncLocalStorage();
95
95
  observedCallRuns = new Map();
96
96
  callSubscribers = new Set();
97
- providerScopes = new Map();
98
- opaqueAgents = new WeakSet();
99
97
  admissionRoutes = new WeakMap();
100
98
  admissionRouteFailures = new WeakMap();
101
99
  setupSelectionCursors = new WeakMap();
@@ -126,21 +124,6 @@ export class NativeAdmission {
126
124
  if (errors.length)
127
125
  throw new AggregateError(errors, "Native activation teardown failed");
128
126
  });
129
- const observeProviders = () => { if (!this.lifetime.signal.aborted)
130
- this.observeProviders(); };
131
- ctx.on("subagent/provider-added", observeProviders, { global: true });
132
- ctx.on("subagent/provider-removed", observeProviders, { global: true });
133
- ctx.on("internal/plugin", observeProviders, { global: true });
134
- ctx.on("internal/status", observeProviders, { global: true });
135
- ctx.on("internal/service", name => {
136
- // A Service registers in super(), before subclass fields are initialized.
137
- if (name === "subagents" || name === "agents")
138
- queueMicrotask(observeProviders);
139
- }, { global: true });
140
- // Existing Agents may have unpublished starts from before this observer.
141
- for (const agent of ctx.agents.list())
142
- this.opaqueAgents.add(agent);
143
- observeProviders();
144
127
  ctx.on("subagent/start", info => { this.admitPublishedChild(info); this.startObservedActivation(info); }, { global: true });
145
128
  ctx.on("subagent/end", info => { this.endObservedActivation(info); }, { global: true });
146
129
  ctx.on("session/created", session => {
@@ -683,31 +666,6 @@ export class NativeAdmission {
683
666
  }
684
667
  return tree;
685
668
  }
686
- observeProviders() {
687
- const scopes = new Set([this.ctx, this.ctx.root]);
688
- for (const plugin of this.ctx.registry.values())
689
- for (const fiber of plugin.fibers)
690
- scopes.add(fiber.ctx);
691
- const registry = original(this.ctx.agents), current = new Map();
692
- for (const scope of scopes) {
693
- const agents = scope.get("agents", false), runtime = scope.get("subagents", false);
694
- if (agents === undefined || original(agents) !== registry || runtime === undefined || current.has(original(runtime)))
695
- continue;
696
- // Hosts without provider enumeration cannot prove that external starts are absent.
697
- current.set(original(runtime), typeof runtime.list !== "function"
698
- || runtime.list().some(name => runtime.getProvider(name)?.prepareContinuable === undefined));
699
- }
700
- // Any native service sharing this registry may accept these exact parents,
701
- // including isolated services the Agent's own context does not resolve.
702
- // Removal and late start/end cannot prove unpublished external starts ended.
703
- if ([...this.providerScopes.values(), ...current.values()].some(Boolean)) {
704
- for (const agent of this.ctx.agents.list())
705
- this.opaqueAgents.add(agent);
706
- }
707
- this.providerScopes.clear();
708
- for (const [runtime, opaque] of current)
709
- this.providerScopes.set(runtime, opaque);
710
- }
711
669
  blankReason(agent, allowQueued = false) {
712
670
  if (!this.isReady || this.failedInstallations.has(agent) || this.ctx.agents.get(agent.id) !== agent || !nativeRoots(this.ctx.agents).includes(agent) || this.dependencies(agent).some(value => value === undefined))
713
671
  return "runtime-unavailable";
@@ -717,12 +675,8 @@ export class NativeAdmission {
717
675
  if (this.selecting.has(agent) && !allowQueued)
718
676
  return "busy";
719
677
  try {
720
- this.observeProviders();
721
678
  for (const member of this.residentTree(agent)) {
722
679
  this.assertBinding(member, allowQueued ? agent : undefined);
723
- const runtime = member.ctx.get("subagents");
724
- if (runtime === undefined || !this.providerScopes.has(original(runtime)) || this.opaqueAgents.has(member))
725
- return "runtime-unavailable";
726
680
  if (this.dependencies(member).some(value => value === undefined))
727
681
  return "runtime-unavailable";
728
682
  if (member.status !== "idle" || hasOpenTurn(sessionEvents(member.session)) || (this.calls.get(member) ?? 0) !== 0
@@ -1057,7 +1011,6 @@ export class NativeAdmission {
1057
1011
  throw new SubagentError("Role creation requires its first pending call", "UNAUTHORIZED");
1058
1012
  if (!this.isReady || !this.install)
1059
1013
  throw new SubagentError("DSMM admission is initializing", "UNAUTHORIZED");
1060
- this.observeProviders();
1061
1014
  let signal = AbortSignal.any([...creationSignal ? [creationSignal] : [], this.lifetime.signal]);
1062
1015
  signal.throwIfAborted();
1063
1016
  const parents = this.ctx.agents.list().filter(parent => parent !== agent && nativeIsOwnedBy(this.ctx.agents, agent.id, parent));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dsmm/dsmm",
3
- "version": "0.3.27",
3
+ "version": "0.3.28",
4
4
  "description": "Native Deepwork roles, routing, profiles, and permission controls for DeepSeek Harness.",
5
5
  "author": "Hugefiver",
6
6
  "license": "LicenseRef-AAAPL",