@dsmm/dsmm 0.3.39 → 0.3.41
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 +6 -6
- package/docs/compatibility.md +2 -2
- package/docs/maintenance.md +5 -5
- package/docs/model-routing.md +3 -3
- package/docs/profiles.md +1 -1
- package/docs/runtime-recovery.md +1 -1
- package/docs/settings-status.md +1 -1
- package/docs/tui.md +4 -2
- package/dsh-plugin.json +1 -1
- package/lib/client/deployment-locales.js +1 -1
- package/lib/client.js +1 -1
- package/lib/index.js +2 -2
- package/lib/model-routing.d.ts +3 -15
- package/lib/model-routing.js +64 -96
- package/lib/native-admission.d.ts +2 -7
- package/lib/native-admission.js +6 -101
- package/lib/profile-runtime.js +2 -2
- package/lib/request-routing.d.ts +2 -1
- package/lib/request-routing.js +3 -4
- package/lib/role-routing.d.ts +8 -10
- package/lib/role-routing.js +41 -21
- package/lib/role-subagents.js +1 -1
- package/lib/runtime-recovery.js +3 -3
- package/lib/status.js +5 -5
- package/lib/tui-actions.js +65 -2
- package/lib/tui-adapter.js +19 -7
- package/lib/tui-types.d.ts +1 -0
- package/package.json +1 -1
- package/prompts/deepwork.md +1 -1
- package/prompts/source/deepwork/gpt.md +5 -1
- package/prompts/source/shared/working-principles.md +1 -1
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.
|
|
7
|
+
当前发布版本为 `@dsmm/dsmm@0.3.41`,支持 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.
|
|
14
|
+
- 安装来源:[npm (@dsmm/dsmm)](https://www.npmjs.com/package/@dsmm/dsmm);发布资产:[GitHub Releases (v0.3.41)](https://github.com/hugefiver/dsmm/releases/tag/v0.3.41)
|
|
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.
|
|
25
|
+
2. 点击 **添加插件(Add plugin)**,输入 `@dsmm/dsmm@0.3.41` 并确认。
|
|
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.
|
|
37
|
+
& "$env:LOCALAPPDATA\Programs\DeepSeek Harness\resources\runtime\cli\bin\dsh.cmd" plugin --profile desktop add @dsmm/dsmm@0.3.41 --save-exact --ignore-scripts --registry=https://registry.npmjs.org
|
|
38
38
|
```
|
|
39
39
|
*若安装在自定义路径,请替换为对应的实际位置;非 Windows 系统请参考 Desktop 自身菜单或官方指引,不要混用非 Desktop 的独立 CLI 命令。*
|
|
40
40
|
3. 重新打开 DSH Desktop 即可加载新版本。
|
|
@@ -86,7 +86,7 @@ DSMM 包含两处相互独立的配置区域:
|
|
|
86
86
|
- 会话必须处于真正空闲状态:无正在生成的回复、无排队输入、无待处理审批且无运行中的子任务。界面单独显示 `idle` 状态并不代表没有后台活动,需等待所有操作完全结束。
|
|
87
87
|
- 切换成功后,已存在的旧子任务继续保留启动时的原配置与限制,后续新委派的子任务才会使用新方案。
|
|
88
88
|
- 已停止并完成收尾、或自然完成的会话可以直接切换。切换以当前会话及已加载子会话的实际状态为准;若仍有任务或其他操作进行中,结束后重试。保存方案和原生模型选择保持独立。
|
|
89
|
-
- **使用方案模型(Use profile model)**:对于有对应 DSMM
|
|
89
|
+
- **使用方案模型(Use profile model)**:对于有对应 DSMM 角色主模型的会话,把原生模型选择切换为方案中配置的主模型。保存或应用方案默认保留当前主模型。需要切换时,明确选择使用方案模型;之后仍可手动改选。操作期间如果又手动选择了模型,以较新的选择为准。
|
|
90
90
|
|
|
91
91
|
### 配置角色模型与参数
|
|
92
92
|
|
|
@@ -100,7 +100,7 @@ DSMM 包含两处相互独立的配置区域:
|
|
|
100
100
|
|
|
101
101
|
终端适配提供 `/dsmm` 操作菜单、简单设置和已保存方案的选择,不另做复杂配置编辑器。DSMM 必须加载在 TUI 实际使用的 profile 中,Desktop 中已安装的插件不会自动共用。
|
|
102
102
|
|
|
103
|
-
|
|
103
|
+
在 `/dsmm profiles` 中应用方案默认保留当前主模型。要一起切换,请选择使用方案模型;之后仍可用 `/model` 改选。若希望新根会话从角色配置的主模型启动,可将部署的 `rootModelPolicy` 设为 `configured`。具体版本要求、配置范围和联调限制见 [TUI 使用说明](docs/tui.md)。
|
|
104
104
|
|
|
105
105
|
---
|
|
106
106
|
|
package/docs/compatibility.md
CHANGED
|
@@ -24,7 +24,7 @@ Core configuration and native permissions work without a session or active Deepw
|
|
|
24
24
|
|
|
25
25
|
Global and exact native-profile saves are independent. Native form identity/revision and base/user provenance are required; no fallback Global write or cross-layer transaction is implied. Named documents, future-default pointers and actual admission remain separate. Desired saves don't change mounted capability or a running Agent's policy. Without a session, actual admission is unknown.
|
|
26
26
|
|
|
27
|
-
Save and future-default selection remain available under their own authority. Native **Use profile model** and **Deepwork mode** have independent capabilities. Use profile model consumes the admitted configuration and respects newer native manual model/effort intent, including same-value reselection. With the default `rootModelPolicy: "native"`, root requests retain native assembled selection/defaults; refreshing an admission does not implicitly apply its profile primary or authorize a root fallback channel. Explicit deployment policy `configured`
|
|
27
|
+
Save and future-default selection remain available under their own authority. Native **Use profile model** and **Deepwork mode** have independent capabilities. Use profile model consumes the admitted configuration and respects newer native manual model/effort intent, including same-value reselection. With the default `rootModelPolicy: "native"`, root requests retain native assembled selection/defaults; refreshing an admission does not implicitly apply its profile primary or authorize a root fallback channel. Explicit deployment policy `configured` gives eligible roots an initial primary/fallback route until the user selects a model. It applies equally to Web and TUI roots in that deployment, not by detecting a client; named profiles cannot override the policy. See [model routing](model-routing.md), [Profiles](profiles.md) and [settings/status](settings-status.md).
|
|
28
28
|
|
|
29
29
|
Stores use separate CAS and atomic-write boundaries. Committed saves aren't rolled back in the response because observation/notification failed: report refresh-required or unsynchronized status. An unconfirmed native mutation requires authoritative reread before retry. Operator, connection and owner lifetime remain valid through precommit; client claims or loopback-looking URLs don't authorize writes.
|
|
30
30
|
|
|
@@ -34,7 +34,7 @@ Stores use separate CAS and atomic-write boundaries. Committed saves aren't roll
|
|
|
34
34
|
|
|
35
35
|
DSMM runs identically on 0.2.1 and 0.2.2 Hosts except where 0.2.2 changed public contracts. Runtime capability detection (`agent.model.select` presence, provider-constructor shape) routes each surface; version strings are never consulted.
|
|
36
36
|
|
|
37
|
-
- **Model selection is fixed before step preparation.**
|
|
37
|
+
- **Model selection is fixed before step preparation.** A configured root can start on its profile primary. Applying another profile keeps the effective model, and a later native picker choice takes effect on the next step under either policy. 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.
|
|
38
38
|
- **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.
|
|
39
39
|
- **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.
|
|
40
40
|
- **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.
|
package/docs/maintenance.md
CHANGED
|
@@ -82,11 +82,11 @@ Root reassignment produces `in_progress` work, task mutations do not wake member
|
|
|
82
82
|
and persistence-uncertain mutations require rereading rather than automatic replay.
|
|
83
83
|
Task ownership and advisory write scopes never enlarge permissions.
|
|
84
84
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
85
|
+
Direct expression applies to all authored natural language, including documentation,
|
|
86
|
+
comments, and interface copy. Use contrast when it changes meaning. Interface text
|
|
87
|
+
should help people decide, act, or recover; preserve necessary warnings, disclosures,
|
|
88
|
+
and accessible names. Quotations, translations, and creative work retain their source
|
|
89
|
+
meaning and requested voice.
|
|
90
90
|
|
|
91
91
|
Effective Deepwork activation includes a short brainstorming orientation. Full
|
|
92
92
|
brainstorming remains a native skill loaded only when material uncertainty calls
|
package/docs/model-routing.md
CHANGED
|
@@ -9,13 +9,13 @@ DSMM supports the Host range declared in [compatibility](compatibility.md), incl
|
|
|
9
9
|
`rootModelPolicy` is a deployment setting with two values:
|
|
10
10
|
|
|
11
11
|
- **`native` (default):** roots retain native assembled provider/model/effort, including implicit defaults before the first `model/selection` event. Activating Deepwork, choosing a preset, saving/selecting a profile or refreshing a cold admission does not implicitly apply a root primary. **Use profile model** is the explicit native selection action against admitted configuration; later manual choices remain authoritative. Root retry preserves the native downstream configuration and does not automatically select a profile fallback channel.
|
|
12
|
-
- **`configured`:**
|
|
12
|
+
- **`configured`:** eligible roots with Deepwork enabled and an effective DSMM role can start on that role's configured primary and ordered fallback routes. Without an explicit primary, the initial route inherits the native baseline. Ordinary sessions with Deepwork mode off and no effective DSMM role retain native routing. Configuration does not grant a role, enable a disabled module or bypass native capability checks.
|
|
13
13
|
|
|
14
14
|
Global and native-profile configuration may set this policy; named profiles cannot override it. Clearing a native-profile override restores inheritance from Global. The policy applies to the deployment, not to a detected client: a Web session in the same configured deployment follows it too. A separate Desktop deployment retains the default `native` behavior. Saving desired configuration does not replace an existing Agent's immutable admission; use the existing admission lifecycle to adopt changes.
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
Both policies respect subsequent native model and effort choices. Applying a profile to the current session or clearing its override preserves the effective model. To switch to the profile's primary, explicitly choose **Use profile model**. This selects it once; later turns follow the native picker. Selecting a future default leaves the current session unchanged.
|
|
17
17
|
|
|
18
|
-
On 0.2.
|
|
18
|
+
On DSH 0.2.1, a configured initial route can differ from the native picker. On DSH 0.2.2 the initial route is visible through `agent.model.current()`. A step already in progress keeps its captured selection. On resume, a new selection supplied by the Host takes precedence over the saved session model. Status distinguishes a fresh native selection or the most recent request route from the profile's declared model.
|
|
19
19
|
|
|
20
20
|
Selection/proposal effort is distinct from the effective adapter default. With passthrough OFF, a configured effort does not override defaults: the proposal can omit effort while `prepareCall` resolves the adapter's default for HTTP. Explicit native effort remains explicit. DSMM's plugin metadata associates only its own newly appended selection events with their exact routes; it is not admission or delegation authority.
|
|
21
21
|
|
package/docs/profiles.md
CHANGED
|
@@ -21,7 +21,7 @@ The root and its resident descendants must have no running work, open turn, queu
|
|
|
21
21
|
|
|
22
22
|
The compact Conversation header menu shows the current admission separately from the future default. **Use profile model** asks native model selection to use the admitted immutable configuration's declared main model, not a later saved draft. It doesn't write an overlay pointer or increment the admission epoch. Native model-default persistence follows the Models tab; newer manual model or effort intent, including same-value reselection, wins. `canSelectModel`, `canToggleMode` and `canApplyOverlay` have independent reasons: unavailable live Apply doesn't disable ordinary model selection or mode switching.
|
|
23
23
|
|
|
24
|
-
`rootModelPolicy` is a separate deployment setting, not a named-profile field. The default `native` keeps the native model choice authoritative. With `configured`,
|
|
24
|
+
`rootModelPolicy` is a separate deployment setting, not a named-profile field. The default `native` keeps the native model choice authoritative. With `configured`, eligible roots can start on the role's configured primary or a permitted fallback. Applying a profile keeps the current model unless the user explicitly selects the profile model. A later native model selection takes precedence under either policy. Named profiles cannot turn this deployment policy on or off. A Web session and a TUI session in the same deployment follow the same policy. See [root routing policy](model-routing.md#root-policy-and-child-defaults).
|
|
25
25
|
|
|
26
26
|
Without a current session, choose a workspace and a saved profile or deployment defaults in the header menu or Settings session scope. Choosing a profile first keeps that choice pending until a workspace is explicitly selected. Browsing, refreshing and editing profiles do not create sessions, and the first workspace is never selected automatically. On explicit selection, the native workspace service creates or reuses a blank session; DSMM retains it, blocks sending while configuration is unconfirmed, completes the existing selection transaction and only then opens the confirmed session. This does not change the future default or native model.
|
|
27
27
|
|
package/docs/runtime-recovery.md
CHANGED
|
@@ -35,7 +35,7 @@ Fallback decisions stay in the native request loop. DSMM doesn't create another
|
|
|
35
35
|
|
|
36
36
|
An abortable middleware delay can honor valid `providerRetryAfterMs` only within per-delay and total budgets. Cancellation, owner/provider retirement, closed turn/step boundaries or superseded intent invalidate pending work before another dispatch. Duplicate errors can't reserve a second fallback.
|
|
37
37
|
|
|
38
|
-
|
|
38
|
+
A new native model-selection event supersedes a pending retry on the old selection, including for roots with a configured startup route. The next step uses the new choice; a step already in flight keeps its captured model. Child initial routes remain defaults. Existing Agents consume admitted policy, not later saved desired configuration. The same request decision captures admission, role, mode revision and policy before recovery preparation, and remains checked through provider awaits and retries. See [model routing](model-routing.md).
|
|
39
39
|
|
|
40
40
|
## Live continuation and activation
|
|
41
41
|
|
package/docs/settings-status.md
CHANGED
|
@@ -36,7 +36,7 @@ On a mounted Host, desired-off affects new root admissions and cold role continu
|
|
|
36
36
|
|
|
37
37
|
The inspector separates merged desired, startup-mounted/captured, next-root preview, and current-session admission. Without an actual session, current admission is unknown. Host bundle enablement also remains unknown when the public interface can't observe it. Sources, capture origins, global file version, native descriptor version and named snapshot reference aren't one acknowledgment.
|
|
38
38
|
|
|
39
|
-
`rootModelPolicy` is deployment-only: Global and native-profile accept `native` (default) or `configured`; named overlays reject it. An explicit native-profile value overrides Global, and Unset restores inheritance. The policy is captured with admission rather than startup-pinned: saving changes desired configuration, not an existing Agent's captured policy. `configured`
|
|
39
|
+
`rootModelPolicy` is deployment-only: Global and native-profile accept `native` (default) or `configured`; named overlays reject it. An explicit native-profile value overrides Global, and Unset restores inheritance. The policy is captured with admission rather than startup-pinned: saving changes desired configuration, not an existing Agent's captured policy. `configured` supplies the initial role route for eligible roots on both Web and TUI. Applying a profile keeps the current model by default; both policies respect native model changes. It does not enable a module or grant a role. Status reports the captured value and its source only when admission is known; see [root routing policy](model-routing.md#root-policy-and-child-defaults).
|
|
40
40
|
|
|
41
41
|
`presets` only carries materialization settings (`materialize`, optional `root`). The dispatcher is the only standing root; there is no per-role root switch, and named overlays cannot configure presets. See [roles and composition](agent-presets.md#roles-and-composition) for the selection roster, forced creation/resume and read-only boundaries.
|
|
42
42
|
|
package/docs/tui.md
CHANGED
|
@@ -38,11 +38,13 @@ TUI 使用单一 `/dsmm` 入口,命令权限整体启用或撤销,不分别
|
|
|
38
38
|
在 **TUI 的原生 profile** 中把 `rootModelPolicy` 设为 `configured`,并为有效角色配置 `primary` 和 `fallbackRoutes`。普通会话还需开启 Deepwork;配置本身不会打开已关闭的模块或赋予角色权限。
|
|
39
39
|
|
|
40
40
|
- `native` 是默认值,保留 DSH 原生模型选择。
|
|
41
|
-
- `configured`
|
|
41
|
+
- `configured` 让符合条件的新根会话从角色的 `primary` 启动;未设置时沿用原生模型。两种策略都允许用 `/model` 改选,后续请求使用新选择。
|
|
42
42
|
- 这是**部署策略**。同一部署中的 Web 会话也遵循它;独立 Desktop 部署保持默认值时不受影响。具名方案可以提供角色路由,但不能改变该策略。
|
|
43
43
|
- 备用模型不是遇到任何错误都切换。仅允许既有规则认可的模型/服务商缺失或无输出限流等情况,并受重试预算限制。取消、凭据/权限/配额错误和已经产生部分输出的请求不会借此换模型重试。
|
|
44
44
|
|
|
45
|
-
|
|
45
|
+
在 `/dsmm profiles` 中选择 **Apply to current session** 时,默认只应用方案并保留当前主模型。若要同时切换,请选择使用方案模型。切换只针对本次会话;后续仍可用 `/model` 改选。若 Host 未提供会话级选模接口,可先应用方案,再通过 `/model` 选模型。恢复部署基线及设置未来默认方案都不会切换当前模型。
|
|
46
|
+
|
|
47
|
+
DSH 在请求路由前进行的历史图片能力检查等限制仍然存在;详见[模型路由](model-routing.md)和[兼容性说明](compatibility.md)。
|
|
46
48
|
|
|
47
49
|
## 权限与验证边界
|
|
48
50
|
|
package/dsh-plugin.json
CHANGED
|
@@ -91,7 +91,7 @@ export const deploymentZh = {
|
|
|
91
91
|
};
|
|
92
92
|
/** Stable public field names stay visible alongside localized context. */
|
|
93
93
|
export const deploymentFieldLabels = {
|
|
94
|
-
rootModelPolicy: ["
|
|
94
|
+
rootModelPolicy: ["Initial root model (native: Host default; configured: role default)", "初始主模型(native:Host 默认;configured:角色默认)"],
|
|
95
95
|
modelParameters: ["Model parameters", "模型参数"], passthrough: ["Model parameter passthrough", "模型参数透传"], locale: ["Agent business language", "Agent 业务语言"],
|
|
96
96
|
permissionControl: ["Permission-control module", "权限控制子模块"],
|
|
97
97
|
modules: ["Modules", "子模块"], skills: ["Skills", "技能"], roles: ["Agent roles", "Agent 角色"],
|
package/lib/client.js
CHANGED
|
@@ -7016,7 +7016,7 @@ var deploymentZh = {
|
|
|
7016
7016
|
namedIndependent: "设置中的 Deepwork Profiles 是独立的具名 JSONC 运行时资源编辑器。在此保存不会应用具名配置或选择其模型。"
|
|
7017
7017
|
};
|
|
7018
7018
|
var deploymentFieldLabels = {
|
|
7019
|
-
rootModelPolicy: ["
|
|
7019
|
+
rootModelPolicy: ["Initial root model (native: Host default; configured: role default)", "初始主模型(native:Host 默认;configured:角色默认)"],
|
|
7020
7020
|
modelParameters: ["Model parameters", "模型参数"],
|
|
7021
7021
|
passthrough: ["Model parameter passthrough", "模型参数透传"],
|
|
7022
7022
|
locale: ["Agent business language", "Agent 业务语言"],
|
package/lib/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { registerDsmmTuiAdapter } from "./tui-adapter.js";
|
|
|
3
3
|
import { hasShellGuardConstraint, registerSafetyGuards } from "./guards.js";
|
|
4
4
|
import { registerDeepworkPrompt } from "./mode.js";
|
|
5
5
|
import { registerAgentSkills } from "./preset-skills.js";
|
|
6
|
-
import {
|
|
6
|
+
import { installAdmissionModelRoute, registerModelRouting } from "./model-routing.js";
|
|
7
7
|
import { bindCoreLlmAdmission } from "./role-llm-runtime.js";
|
|
8
8
|
import { registerHeadlessRoleTools, registerNativeSubagentControls } from "./role-subagents.js";
|
|
9
9
|
import { registerRolePresets } from "./preset-registry.js";
|
|
@@ -83,7 +83,7 @@ export async function apply(input, config = {}, startupOptions = {}) {
|
|
|
83
83
|
lifetime.signal.throwIfAborted();
|
|
84
84
|
admission = new NativeAdmission(ctx, profiles, policy, agents => { for (const agent of agents)
|
|
85
85
|
commandApprovals.clearAgent(agent); });
|
|
86
|
-
admission.bindAdmissionModelSelection((agent, info) =>
|
|
86
|
+
admission.bindAdmissionModelSelection((agent, info) => installAdmissionModelRoute(ctx, controller, agent, info));
|
|
87
87
|
ctx.provide("dsmmNativeAdmission", admission);
|
|
88
88
|
ctx.provide("dsmmProfileRuntime", profiles);
|
|
89
89
|
ctx.provide("dsmmDeploymentConfig", deployment);
|
package/lib/model-routing.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import type { AgentRequestFrame, DshLlmCallConfig, DshAgent, DshContext
|
|
1
|
+
import type { AgentRequestFrame, DshLlmCallConfig, DshAgent, DshContext } from "./dsh-types.js";
|
|
2
2
|
import type { DsmmSettingsGetter, DsmmSettings, DsmmProfileAdmission } from "./settings.js";
|
|
3
3
|
import type { DeepworkModeController } from "./state.js";
|
|
4
|
-
import type { DsmmRoleId } from "./roles.js";
|
|
5
4
|
export declare function prepareDsmmRequest(frame: AgentRequestFrame, proposal: DshLlmCallConfig, assertCurrent: () => void): Promise<DshLlmCallConfig>;
|
|
6
5
|
export declare function registerModelRouting(ctx: DshContext, controller: DeepworkModeController, getSettings: DsmmSettingsGetter, agent?: DshAgent): void;
|
|
7
6
|
export interface DsmmAdmissionRouteInfo {
|
|
@@ -11,17 +10,6 @@ export interface DsmmAdmissionRouteInfo {
|
|
|
11
10
|
readonly signal: AbortSignal;
|
|
12
11
|
assertCurrent(): void;
|
|
13
12
|
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
rollback(): void;
|
|
17
|
-
}
|
|
18
|
-
export interface DsmmPreparedAdmissionRoute {
|
|
19
|
-
readonly admission?: DsmmProfileAdmission;
|
|
20
|
-
readonly role: DsmmRoleId;
|
|
21
|
-
readonly restoresConfiguredPrimary: boolean;
|
|
22
|
-
readonly preflightFailure?: unknown;
|
|
23
|
-
install(currentAdmission?: DsmmProfileAdmission): DsmmAdmissionRouteInstallation | undefined;
|
|
24
|
-
}
|
|
25
|
-
/** Preflight immutable route metadata without materializing adapter defaults as Agent selection. */
|
|
26
|
-
export declare function prepareAdmissionModelRoute(ctx: DshContext, controller: DeepworkModeController, agent: DshAgent, info: DsmmAdmissionRouteInfo): Promise<DsmmPreparedAdmissionRoute | undefined>;
|
|
13
|
+
/** Fixed-step Hosts need the admitted initial selection before their first assembly. */
|
|
14
|
+
export declare function installAdmissionModelRoute(ctx: DshContext, controller: DeepworkModeController, agent: DshAgent, info: DsmmAdmissionRouteInfo): Promise<void>;
|
|
27
15
|
//# sourceMappingURL=model-routing.d.ts.map
|
package/lib/model-routing.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { LlmError } from "@deepseek-ai/dsh-llm";
|
|
2
2
|
import { isDsmmAwareLlmRuntime } from "./host-llm.js";
|
|
3
|
-
import { applyModelRoute, clearRoleRouteLock,
|
|
3
|
+
import { applyModelRoute, clearRoleRouteLock, currentRoleRouteLock, effectiveRoleFallbackRoutes, establishRolePolicy, hasRecordedRolePolicy, hostModelSelection, latestNativeModelSelection, liveRolePolicyIdentity, nativeModelSelectionWasAccepted, orderedModelRoutes, persistedRoleRoute, pinRoleRoute, usesConfiguredRootRoute, roleRouteLock, selectInitialModelRoute, selectInitialModelRouteChoice, selectModelRouteForNextStep, sameExactModelRoute, sameModelRoute, takeAdmittedRecoveryRoute } from "./role-routing.js";
|
|
4
4
|
import { childOwnedSessionEvents, sessionEvents } from "./session-scope.js";
|
|
5
5
|
import { isCurrentRecoveryStep } from "./recovery-policy.js";
|
|
6
6
|
import { capturedRoleInvocation } from "./role-invocation.js";
|
|
7
7
|
import { resolveAdmittedDsmmRole } from "./role-policy.js";
|
|
8
|
-
import { modelRouteFromCall, modelRouteToCall, projectModelRouteParameters } from "./role-llm.js";
|
|
8
|
+
import { modelRouteFromCall, modelRouteFromHeader, modelRouteToCall, projectModelRouteParameters } from "./role-llm.js";
|
|
9
9
|
import { configuredModelParameterPolicy, resolvedModelParameterPolicy } from "./model-parameter-policy.js";
|
|
10
10
|
import { registerRuntimeRecovery } from "./runtime-recovery.js";
|
|
11
11
|
import { captureRequestRouting, captureRequestRoute } from "./request-routing.js";
|
|
@@ -35,15 +35,20 @@ export function registerModelRouting(ctx, controller, getSettings, agent) {
|
|
|
35
35
|
assembledSelections.set(context.agent, { signal: context.signal, intent: latestNativeModelSelection(context.agent) });
|
|
36
36
|
return next();
|
|
37
37
|
}, { prepend: true });
|
|
38
|
+
const stepSelection = (frame) => {
|
|
39
|
+
const captured = assembledSelections.get(frame.agent);
|
|
40
|
+
return captured?.signal === frame.signal ? captured.intent : frame.agent.session.header?.origin === "subagent" ? undefined : latestNativeModelSelection(frame.agent);
|
|
41
|
+
};
|
|
38
42
|
const prepare = async (frame, proposal, assertCurrent = () => frame.signal.throwIfAborted()) => {
|
|
39
43
|
if (frame.signal.aborted)
|
|
40
44
|
return proposal;
|
|
41
|
-
const
|
|
45
|
+
const manual = stepSelection(frame);
|
|
46
|
+
const decision = captureRequestRouting(frame, readyCtx, controller, getSettings, manual, () => {
|
|
42
47
|
if (!active)
|
|
43
48
|
throw new Error("DSMM routing owner retired");
|
|
44
49
|
assertCurrent();
|
|
45
50
|
});
|
|
46
|
-
|
|
51
|
+
let downstream = recovery === undefined ? proposal : await recovery(frame, proposal);
|
|
47
52
|
if (frame.signal.aborted)
|
|
48
53
|
return downstream;
|
|
49
54
|
decision.assertCurrent();
|
|
@@ -70,16 +75,32 @@ export function registerModelRouting(ctx, controller, getSettings, agent) {
|
|
|
70
75
|
assertFixedRoute(config, projected);
|
|
71
76
|
return applyModelRoute(config, projected);
|
|
72
77
|
};
|
|
78
|
+
const ordinaryRoot = frame.agent.session.header?.origin !== "subagent";
|
|
79
|
+
const requestTimeRoot = ordinaryRoot && hostModelSelection(frame.agent) === undefined;
|
|
80
|
+
let nativeBaseline;
|
|
81
|
+
// A request-time configured route leaves the Host baseline unchanged. Retain the
|
|
82
|
+
// actual header only while that baseline still owns assembly after Apply.
|
|
83
|
+
if (requestTimeRoot && admission !== undefined && admission.scope !== "global-default" && manual === undefined) {
|
|
84
|
+
const previous = currentRoleRouteLock(frame.agent), baseline = previous?.nativeBaseline;
|
|
85
|
+
const retainedPolicy = previous === undefined ? hasRecordedRolePolicy(frame.agent)
|
|
86
|
+
: baseline !== undefined && sameModelRoute(downstream, baseline) && downstream.reasoningEffort === baseline.reasoningEffort;
|
|
87
|
+
const header = retainedPolicy ? frame.agent.session.requestHeader?.() : undefined;
|
|
88
|
+
if (header !== undefined) {
|
|
89
|
+
nativeBaseline = { provider: downstream.provider, model: downstream.model, reasoningEffort: downstream.reasoningEffort };
|
|
90
|
+
const { provider, model, reasoningEffort } = modelRouteFromHeader(header);
|
|
91
|
+
const retained = { provider, model, ...(reasoningEffort === undefined ? {} : { reasoningEffort }) };
|
|
92
|
+
downstream = matchingRouteResult(downstream, retained, "native");
|
|
93
|
+
}
|
|
94
|
+
}
|
|
73
95
|
if (!settings.modules.deepwork.enabled) {
|
|
74
96
|
captureRequestRoute(frame, decision);
|
|
75
97
|
return downstream;
|
|
76
98
|
}
|
|
77
|
-
const ordinaryRoot = frame.agent.session.header?.origin !== "subagent";
|
|
78
99
|
const admitted = takeAdmittedRecoveryRoute(frame);
|
|
79
100
|
const policy = role === undefined ? undefined : settings.roleRouting[role];
|
|
80
101
|
const invocation = capturedRoleInvocation(frame.agent);
|
|
81
102
|
const primary = invocation?.initialRoute ?? policy?.primary;
|
|
82
|
-
const identity = await establishRolePolicy(frame, settings, role, readyCtx, admission?.epoch);
|
|
103
|
+
const identity = await establishRolePolicy(frame, settings, role, readyCtx, admission?.epoch, requestTimeRoot ? configuredRoot || nativeBaseline !== undefined : undefined);
|
|
83
104
|
decision.assertCurrent();
|
|
84
105
|
frame.signal.throwIfAborted();
|
|
85
106
|
const fallbacks = effectiveRoleFallbackRoutes(settings, role);
|
|
@@ -93,8 +114,6 @@ export function registerModelRouting(ctx, controller, getSettings, agent) {
|
|
|
93
114
|
let lock = roleRouteLock(frame.agent, identity);
|
|
94
115
|
const exactPolicy = invocation === undefined ? primary !== undefined || policy?.fallbackRoutes !== undefined || fallbacks.length > 0
|
|
95
116
|
: invocation.routeSource !== "inherited" || invocation.exactEffort || fallbacks.length > 0;
|
|
96
|
-
const captured = assembledSelections.get(frame.agent);
|
|
97
|
-
const manual = captured?.signal === frame.signal ? captured.intent : undefined;
|
|
98
117
|
if (ordinaryRoot && !configuredRoot) {
|
|
99
118
|
const selected = modelRouteFromCall(downstream);
|
|
100
119
|
if (lock === undefined || !sameExactModelRoute(lock.route, selected) || lock.manualSelectionSeq !== manual?.seq) {
|
|
@@ -104,6 +123,7 @@ export function registerModelRouting(ctx, controller, getSettings, agent) {
|
|
|
104
123
|
lock.generation = generation;
|
|
105
124
|
lockedAgents.add(frame.agent);
|
|
106
125
|
}
|
|
126
|
+
lock.nativeBaseline = nativeBaseline;
|
|
107
127
|
captureRequestRoute(frame, decision, "native");
|
|
108
128
|
return downstream;
|
|
109
129
|
}
|
|
@@ -151,6 +171,8 @@ export function registerModelRouting(ctx, controller, getSettings, agent) {
|
|
|
151
171
|
lock.startupSettled = true;
|
|
152
172
|
lockedAgents.add(frame.agent);
|
|
153
173
|
}
|
|
174
|
+
if (requestTimeRoot && configuredRoot)
|
|
175
|
+
lock.nativeBaseline = { provider: downstream.provider, model: downstream.model, reasoningEffort: downstream.reasoningEffort };
|
|
154
176
|
captureRequestRoute(frame, decision, configuredRoot ? lock.effortSource : undefined);
|
|
155
177
|
return lock.candidateIndex > 0
|
|
156
178
|
? replacementRouteResult(downstream, lock.route, lock.effortSource)
|
|
@@ -162,10 +184,9 @@ export function registerModelRouting(ctx, controller, getSettings, agent) {
|
|
|
162
184
|
preparations.delete(agent); };
|
|
163
185
|
disposeFence = readyCtx.on("agent/request", async (frame, next) => {
|
|
164
186
|
const settings = getSettings(frame.agent), admission = getSettings.admission?.(frame.agent);
|
|
165
|
-
const
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
const expected = configuredRoot && hostModelSelection(frame.agent) !== undefined ? currentRoleRouteLock(frame.agent) : undefined;
|
|
187
|
+
const role = resolveAdmittedDsmmRole(frame.agent, settings, controller.active(frame.agent, settings.defaultActive));
|
|
188
|
+
const expected = hostModelSelection(frame.agent) !== undefined && usesConfiguredRootRoute(frame.agent, settings, admission, role, stepSelection(frame))
|
|
189
|
+
? currentRoleRouteLock(frame.agent) : undefined;
|
|
169
190
|
const proposal = await next();
|
|
170
191
|
if (expected !== undefined && (currentRoleRouteLock(frame.agent) !== expected || !sameModelRoute(proposal, expected.route)
|
|
171
192
|
|| proposal.reasoningEffort !== expected.route.reasoningEffort)) {
|
|
@@ -211,100 +232,47 @@ export function registerModelRouting(ctx, controller, getSettings, agent) {
|
|
|
211
232
|
else if (Object.prototype.hasOwnProperty.call(ctx, "llm") && Object.prototype.hasOwnProperty.call(ctx, "on"))
|
|
212
233
|
install(ctx);
|
|
213
234
|
}
|
|
214
|
-
/**
|
|
215
|
-
export async function
|
|
216
|
-
const
|
|
217
|
-
if (
|
|
218
|
-
return
|
|
235
|
+
/** Fixed-step Hosts need the admitted initial selection before their first assembly. */
|
|
236
|
+
export async function installAdmissionModelRoute(ctx, controller, agent, info) {
|
|
237
|
+
const { settings, admission } = info;
|
|
238
|
+
if (hostModelSelection(agent) === undefined || !settings.modules.deepwork.enabled)
|
|
239
|
+
return;
|
|
219
240
|
const subagent = agent.session.header?.origin === "subagent";
|
|
220
|
-
const
|
|
221
|
-
if (!subagent && !
|
|
222
|
-
return
|
|
223
|
-
const activeRole = resolveAdmittedDsmmRole(agent, settings, controller.active(agent, settings.defaultActive));
|
|
224
|
-
const role = activeRole ?? (configuredRoot ? resolveAdmittedDsmmRole(agent, settings, true) : undefined);
|
|
225
|
-
if (role === undefined)
|
|
226
|
-
return undefined;
|
|
241
|
+
const role = resolveAdmittedDsmmRole(agent, settings, controller.active(agent, settings.defaultActive));
|
|
242
|
+
if (role === undefined || !subagent && !usesConfiguredRootRoute(agent, settings, admission, role, latestNativeModelSelection(agent)))
|
|
243
|
+
return;
|
|
227
244
|
const parameterPolicy = info.admission === undefined ? configuredModelParameterPolicy(settings) : resolvedModelParameterPolicy(info.admission);
|
|
228
245
|
const invocation = capturedRoleInvocation(agent);
|
|
229
246
|
const fallbacks = effectiveRoleFallbackRoutes(settings, role);
|
|
230
247
|
const primary = invocation?.initialRoute ?? settings.roleRouting[role]?.primary;
|
|
231
|
-
if (
|
|
232
|
-
return
|
|
248
|
+
if (primary === undefined || subagent && invocation === undefined)
|
|
249
|
+
return;
|
|
233
250
|
const candidates = invocation?.candidates ?? orderedModelRoutes([primary, ...fallbacks]);
|
|
234
|
-
let
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
const
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
: undefined, info.assertCurrent);
|
|
251
|
+
let proposal = primary, requested = invocation?.selectedCandidate;
|
|
252
|
+
if (!subagent) {
|
|
253
|
+
const llm = agent.ctx?.get?.("llm") ?? ctx.get?.("llm") ?? ctx.llm;
|
|
254
|
+
const resolver = parameterPolicy.mode === "passthrough" ? ctx.get?.("dsmmLlmRoutes") : undefined;
|
|
255
|
+
try {
|
|
256
|
+
const choice = await selectInitialModelRouteChoice(llm ?? {}, candidates, info.signal, resolver, parameterPolicy.mode === "native-defaults" ? route => modelRouteFromCall(projectModelRouteParameters(route, "dsmm-config", false)) : undefined, info.assertCurrent);
|
|
257
|
+
proposal = choice.proposal;
|
|
258
|
+
requested = choice.requestedRoute;
|
|
243
259
|
}
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
260
|
+
catch (error) {
|
|
261
|
+
info.assertCurrent();
|
|
262
|
+
info.signal.throwIfAborted();
|
|
263
|
+
if (latestNativeModelSelection(agent) !== undefined)
|
|
264
|
+
return;
|
|
247
265
|
throw error;
|
|
248
|
-
|
|
266
|
+
}
|
|
267
|
+
if (latestNativeModelSelection(agent) !== undefined)
|
|
268
|
+
return;
|
|
249
269
|
}
|
|
250
270
|
info.assertCurrent();
|
|
251
271
|
info.signal.throwIfAborted();
|
|
252
|
-
const
|
|
253
|
-
const
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
...(unavailable === undefined ? {} : { preflightFailure: unavailable }),
|
|
258
|
-
install(currentAdmission) {
|
|
259
|
-
if (currentAdmission !== info.admission)
|
|
260
|
-
return undefined;
|
|
261
|
-
const currentRole = resolveAdmittedDsmmRole(agent, settings, controller.active(agent, settings.defaultActive));
|
|
262
|
-
if (currentRole !== role)
|
|
263
|
-
return undefined;
|
|
264
|
-
if (unavailable !== undefined)
|
|
265
|
-
throw unavailable;
|
|
266
|
-
if (proposal === undefined)
|
|
267
|
-
return undefined;
|
|
268
|
-
const previousPolicy = currentRolePolicyState(agent), previousLock = currentRoleRouteLock(agent), previousSelection = model.current();
|
|
269
|
-
const identity = liveRolePolicyIdentity(agent, settings, role, info.epoch);
|
|
270
|
-
if (identity === undefined)
|
|
271
|
-
return undefined;
|
|
272
|
-
const installedPolicy = currentRolePolicyState(agent);
|
|
273
|
-
let lock = roleRouteLock(agent, identity);
|
|
274
|
-
if (lock === undefined || !sameExactModelRoute(lock.route, proposal)) {
|
|
275
|
-
lock = pinRoleRoute(agent, identity, proposal, candidates, { preserveCandidates: parameterPolicy.mode === "native-defaults",
|
|
276
|
-
initialCandidate: requested });
|
|
277
|
-
}
|
|
278
|
-
lock.effortSource = effortSource;
|
|
279
|
-
const selection = { provider: proposal.provider, model: proposal.model,
|
|
280
|
-
...(proposal.reasoningEffort === undefined ? {} : { reasoningEffort: proposal.reasoningEffort }) };
|
|
281
|
-
selectModelRouteForNextStep(agent, selection);
|
|
282
|
-
const installedSelectionSeq = latestModelSelectionSeq(agent);
|
|
283
|
-
let rolledBack = false;
|
|
284
|
-
return Object.freeze({ selection, rollback() {
|
|
285
|
-
if (rolledBack)
|
|
286
|
-
return;
|
|
287
|
-
rolledBack = true;
|
|
288
|
-
const current = model.current();
|
|
289
|
-
let selectionFailure;
|
|
290
|
-
try {
|
|
291
|
-
if (current !== undefined && latestModelSelectionSeq(agent) === installedSelectionSeq && sameExactModelRoute(current, selection)) {
|
|
292
|
-
if (previousSelection === undefined)
|
|
293
|
-
throw new LlmError("The prior model selection cannot be restored", "INVALID_PREPARED_CALL");
|
|
294
|
-
selectModelRouteForNextStep(agent, previousSelection);
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
catch (error) {
|
|
298
|
-
selectionFailure = error;
|
|
299
|
-
}
|
|
300
|
-
finally {
|
|
301
|
-
restoreRolePolicyAndLock(agent, installedPolicy, lock, previousPolicy, previousLock);
|
|
302
|
-
}
|
|
303
|
-
if (selectionFailure !== undefined)
|
|
304
|
-
throw selectionFailure;
|
|
305
|
-
} });
|
|
306
|
-
},
|
|
307
|
-
});
|
|
308
|
-
return prepared;
|
|
272
|
+
const identity = liveRolePolicyIdentity(agent, settings, role, info.epoch);
|
|
273
|
+
const lock = pinRoleRoute(agent, identity, proposal, candidates, { preserveCandidates: parameterPolicy.mode === "native-defaults", initialCandidate: requested });
|
|
274
|
+
lock.effortSource = invocation?.effortSource ?? "dsmm-config";
|
|
275
|
+
selectModelRouteForNextStep(agent, { provider: proposal.provider, model: proposal.model,
|
|
276
|
+
...(proposal.reasoningEffort === undefined ? {} : { reasoningEffort: proposal.reasoningEffort }) });
|
|
309
277
|
}
|
|
310
278
|
//# sourceMappingURL=model-routing.js.map
|
|
@@ -3,7 +3,7 @@ import type { Agent } from "@deepseek-ai/dsh-agent";
|
|
|
3
3
|
import { SessionId } from "@deepseek-ai/dsh-session";
|
|
4
4
|
import type { SubagentProvider, SubagentActivation, ContinuableCreateRequest } from "@deepseek-ai/dsh-subagent";
|
|
5
5
|
import type { ToolExecution } from "@deepseek-ai/dsh-tools";
|
|
6
|
-
import type { DsmmAdmissionRouteInfo
|
|
6
|
+
import type { DsmmAdmissionRouteInfo } from "./model-routing.js";
|
|
7
7
|
import type { DsmmProfileRuntime } from "./profile-runtime.js";
|
|
8
8
|
import type { DsmmProfileAdmission } from "./settings.js";
|
|
9
9
|
import type { ResolvedRoleInvocation } from "./role-invocation.js";
|
|
@@ -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 admissionRoutes;
|
|
56
|
-
private readonly admissionRouteFailures;
|
|
57
55
|
private readonly setupSelectionCursors;
|
|
58
56
|
private ready;
|
|
59
57
|
private readonly scopes;
|
|
@@ -62,8 +60,7 @@ export declare class NativeAdmission {
|
|
|
62
60
|
constructor(ctx: Context, profiles: DsmmProfileRuntime, policy: DsmmRolePolicy, configurationCommitted?: (agents: readonly Agent[]) => void);
|
|
63
61
|
activate(install: NonNullable<NativeAdmission["install"]>): void;
|
|
64
62
|
restoreResidentRoots(): Promise<void>;
|
|
65
|
-
|
|
66
|
-
bindAdmissionModelSelection(hook: (agent: Agent, info: DsmmAdmissionRouteInfo) => Promise<DsmmPreparedAdmissionRoute | undefined>): void;
|
|
63
|
+
bindAdmissionModelSelection(hook: (agent: Agent, info: DsmmAdmissionRouteInfo) => Promise<void>): void;
|
|
67
64
|
private callsFor;
|
|
68
65
|
private recordsFor;
|
|
69
66
|
private observationRoute;
|
|
@@ -85,8 +82,6 @@ export declare class NativeAdmission {
|
|
|
85
82
|
private retireObservedParent;
|
|
86
83
|
observeRoleCalls(parent: Agent, admission: DsmmProfileAdmission, signal: AbortSignal, check: () => void): AsyncIterable<RoleCallObservationFrame>;
|
|
87
84
|
private notifyObservedParent;
|
|
88
|
-
private installCachedAdmissionRoute;
|
|
89
|
-
private installCachedAdmissionRouteSafely;
|
|
90
85
|
get isReady(): boolean;
|
|
91
86
|
/** Exact process-local capture, retained after retirement so stale objects never become native. */
|
|
92
87
|
owns(agent: Agent): boolean;
|