@dsmm/dsmm 0.3.28 → 0.3.30
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/agent-presets/dsmm-orchestrator/agent.cordis.yml +1 -1
- package/agent-presets/dsmm-planner/agent.cordis.yml +1 -1
- package/docs/agent-presets.md +2 -2
- package/docs/agent-teams.md +2 -0
- package/docs/compatibility.md +3 -1
- package/docs/maintenance.md +14 -8
- package/docs/model-routing.md +9 -3
- package/docs/testing.md +2 -0
- package/docs/web-fetch-fakeip.md +2 -2
- package/dsh-plugin.json +1 -1
- package/lib/client/children-locales.d.ts +4 -4
- package/lib/client/role-call-observations.js +2 -2
- package/lib/client.js +414 -1288
- package/lib/mode.js +27 -18
- package/lib/model-family.d.ts +5 -3
- package/lib/model-family.js +30 -15
- package/lib/native-subagents.d.ts +8 -1
- package/lib/native-subagents.js +25 -2
- package/lib/permission-schema.d.ts +40 -0
- package/lib/permission-schema.js +13 -0
- package/lib/permission-settings.d.ts +0 -38
- package/lib/permission-settings.js +23 -18
- package/lib/profile-diagnostics.js +1 -11
- package/lib/prompts.js +38 -8
- package/lib/role-subagents.js +10 -7
- package/lib/settings.js +2 -1
- package/lib/skills.js +6 -6
- package/package.json +6 -51
- package/prompts/deepwork.md +4 -4
- package/prompts/source/agents/orchestrator.md +1 -1
- package/prompts/source/agents/planner.md +1 -1
- package/prompts/source/deepwork/claude-fable-5-2.md +3 -0
- package/prompts/source/deepwork/default.md +3 -3
- package/prompts/source/deepwork/gemini.md +1 -1
- package/prompts/source/deepwork/general.md +2 -2
- package/prompts/source/deepwork/glm.md +2 -2
- package/prompts/source/deepwork/gpt.md +1 -1
- package/prompts/source/deepwork/planner.md +1 -1
- package/skills/ast-grep/README.md +3 -3
- package/skills/ast-grep/SKILL.md +9 -6
- package/skills/brainstorming/SKILL.md +1 -1
- package/skills/coding-agent-sessions/SKILL.md +2 -1
- package/skills/dispatching-parallel-agents/SKILL.md +1 -1
- package/skills/frontend/references/perfection/react-perf-tooling.md +24 -26
- package/skills/receiving-code-review/SKILL.md +1 -1
- package/skills/requesting-code-review/SKILL.md +1 -1
- package/skills/subagent-driven-development/SKILL.md +1 -1
- package/skills/writing-plans/SKILL.md +1 -1
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
- Explanation or research requests end in an answer, not edits. Before asking about ambiguity, inspect supplied or named context and directly related project evidence; ask only a material unresolved question and state what its answer changes, or use `clarifier`.
|
|
22
22
|
- For complex implementation of product business logic or behavior, default to the complete `planner` → `plan-critic` → implementation sequence. Skip planning or criticism only for a limited, simple, low-risk change with clear boundaries, or when the user explicitly requests the skip; state the applicable exception in conversation. Clear requirements, a capable model, ample evidence, or a direct implementation path do not exempt that product work.
|
|
23
23
|
- Non-product routine operations, docs, maintenance, and release preparation use direct execution when resolvable, otherwise a material question or useful `complex`/specialist delegation. Do not attach automatic or repeated planner/critic/review cycles; explicit process requirements and verification for concrete major safety risks remain binding.
|
|
24
|
-
- `brainstorming` resolves
|
|
24
|
+
- `brainstorming` resolves uncertainty that materially affects a software design without adding a second approval gate to an already authorized task. It does not ask again for facts or choices already settled by the request, supplied artifacts, related project evidence, or prior conversation. Explanation or research requests still end in an answer, not implementation. A user-requested planning skip never authorizes crossing security, data, public API/protocol, permission, or irreversible-action boundaries.
|
|
25
25
|
- Architecture/security/performance tradeoffs: gather evidence and decide directly unless genuinely difficult; strict or high-risk conditions alone do not qualify for `hard-reasoning`.
|
|
26
26
|
|
|
27
27
|
## Smallest-fit routing
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
- Reserve `docs/superpowers/specs/` and `docs/superpowers/plans/` for final product requirements to be delivered. Each artifact describes one final deliverable, not development decisions, rejected alternatives, assumption rationale/cost, or change history. Changed requirements use separate plans. Non-product tasks, regardless of complexity, use conversation coordination or a task-owned temporary plan outside those directories.
|
|
21
21
|
- Plan around the ideal end state, dependencies, interfaces, material risks, wave goals, and useful outcome evidence. Record decisions an implementer cannot safely infer: necessary paths and names, interface signatures and types, requirement-fixed values, and decisive test assertions or observable results. Do not transcribe implementation bodies already determined by those decisions. Treat steps and ordering as informed guidance that execution may adjust as evidence changes, not as a hard script.
|
|
22
22
|
- Plan verification around valid requirements, functionality, and external interfaces, including material input classes and failure conditions implied by the approved behavior and local contracts. Attach plausible regression coverage to the owning task; when an important behavior remains unjudged, state why and what evidence is missing without imposing a fixed review-focus heading, list, or quota. Do not expand scope from speculation or add descriptive-text locks. Requirement changes update tests; removed components lose their dedicated tests rather than gaining absence tests. Git commits bound compatibility: interim uncommitted behavior need not be preserved, but existing committed contracts and API/security/data/permission/irreversible-action authorization remain binding.
|
|
23
|
-
- Return
|
|
23
|
+
- Return unresolved software design choices that affect implementation to the orchestrator for `brainstorming`; use `writing-plans` techniques proportionally rather than imposing ceremony.
|
|
24
24
|
- Use direct tools first. A leaf read-only `code-search`, `doc-search`, or equivalent lookup is allowed only to resolve a named fact. If evidence leaves a genuinely difficult decision, report the blocker to the orchestrator for optional `hard-reasoning`; strict or high-risk conditions alone do not qualify.
|
|
25
25
|
- Never compose workflow roles: Do not dispatch `plan-critic`, any Reviewer profile, or any Oracle profile; do not use Reviewer profiles or Oracle profiles. Planner, clarifier, coordinator, implementation agents, and decision/review surrogates are also prohibited.
|
|
26
26
|
|
package/docs/agent-presets.md
CHANGED
|
@@ -12,9 +12,9 @@ Native `agentPresets.register({id, plugins})` publishes only the selectable disp
|
|
|
12
12
|
|
|
13
13
|
Optional preset materialization writes only the DSMM-owned dispatcher preset directory under its configured root. Ownership requires the exact role-bound marker and expected regular files; foreign directories, extra entries, links and containment escapes refuse update/removal. New directories publish by same-parent rename. A legacy marker is accepted only with the complete expected regular-file shape, never as permission to claim unrelated content. Reconciling removes verified owned directories of every non-dispatcher role, including ones published by earlier versions. Materialized files remain export resources, not an alternative native registration mechanism.
|
|
14
14
|
|
|
15
|
-
Managed Agent scopes supply the single role opening (`You are <display name>.`) through `harness:identity`, without a parenthesized role ID. Persona prefixes carry role guidance, not another identity opening; admitted children shadow both inherited sections. Internal role IDs remain the admission, routing and preset keys. The
|
|
15
|
+
Managed Agent scopes supply the single role opening (`You are <display name>.`) through `harness:identity`, without a parenthesized role ID. Persona prefixes carry role guidance, not another identity opening; admitted children shadow both inherited sections. Internal role IDs remain the admission, routing and preset keys. The displayed identity grants no role, tool or permission.
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
An active non-DW preset opens with a neutral assistant identity and omits the stock model announcement. It keeps custom persona instructions, native model selection, effort and delegation. It receives general working guidance, matching model behavior guidance, locale policy and lazy skills. Turning Deepwork off restores the native opening. Mode activation does not create an orchestrator identity, apply DSMM role routes or require specialist tools. When a skill describes an unavailable specialist, the Agent follows its native persona's authority and performs the permitted work directly.
|
|
18
18
|
|
|
19
19
|
Root admission is not configurable per role: the dispatcher is the only standing root. A blank preset switch to any other DSMM role is refused because no such preset is registered, and the admitted composition stays in place. Forced creation and empty-root preset changes still require valid root admission before execution. DSMM role admission requires an enabled module, enabled role and usable composition. Ordinary presets can use the general Deepwork mode without acquiring a role; mode activation grants no writes. Harness's native `/plan` remains collaboration state, not a permission upgrade.
|
|
20
20
|
|
package/docs/agent-teams.md
CHANGED
|
@@ -22,6 +22,8 @@ Use the task's current revision as `expectedRevision` when updating through the
|
|
|
22
22
|
|
|
23
23
|
## Member lifetime
|
|
24
24
|
|
|
25
|
+
On Hosts with native named members, DSMM role and category calls accept `name` (for example `review-api`). A name is unique among siblings, starts with a lowercase letter, and contains at most 32 lowercase letters, digits or hyphens; `lead` is reserved. When omitted, calls use the role and a sibling number, such as `planner-1`. Use the returned `name` (including the parent path for nested members) for native messages. `subagentId` remains the durable session ID. Hosts without named members retain ID-based addressing.
|
|
26
|
+
|
|
25
27
|
On tree-capable Hosts, messages preserve their sender and stay within the native tree. Native names and `list_agents` identify members; `wait_agent` is available when the Host exposes it. Ancestors can interrupt descendants; siblings cannot use interruption as a coordination shortcut.
|
|
26
28
|
|
|
27
29
|
Supported members can continue under the verified live root after their durable creator exits. Cold continuation uses current selected-profile content and retains captured DSMM restrictions. Generic native members retain their native model authority and do not acquire a DSMM role. Details and legacy-record limits are in [Agent presets](agent-presets.md) and [compatibility](compatibility.md).
|
package/docs/compatibility.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# DSMM compatibility and upgrade boundaries
|
|
2
2
|
|
|
3
|
-
**DSMM
|
|
3
|
+
**DSMM 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.** Install DSMM into a DSH profile. The CLI's profile resolver supplies DSH, Cordis, Schemastery and Pi SDK modules from the running DSH installation. The release tarball declares no host SDK dependencies or peers, so package managers neither install them for DSMM nor keep the previous version's SDKs to satisfy DSMM peer references. A linked development checkout retains its host peer declarations.
|
|
4
|
+
|
|
5
|
+
After upgrading a profile, let its package manager update the lockfile and restart DSH. An explicitly installed or independently required profile-local DSH package can still shadow the host; review its owner before removing it. Do not force-enable an incompatible provider or change the native HTTP selection to work around a version mismatch.
|
|
4
6
|
|
|
5
7
|
## Supported integration
|
|
6
8
|
|
package/docs/maintenance.md
CHANGED
|
@@ -42,17 +42,21 @@ base Deepwork prompt, run `pnpm run generate:roles`. CI uses
|
|
|
42
42
|
stale. Generated assets are package resources, not an alternate source of truth.
|
|
43
43
|
|
|
44
44
|
Ordinary native presets use `prompts/source/deepwork/general.md` while Deepwork is
|
|
45
|
-
active.
|
|
46
|
-
in place. DSMM identity comes from an explicit DSMM preset or trusted invocation,
|
|
45
|
+
active. A neutral opening replaces the harness identity and the stock model announcement
|
|
46
|
+
is omitted. Custom persona instructions, model selection, effort and delegation stay in place. DSMM identity comes from an explicit DSMM preset or trusted invocation,
|
|
47
47
|
not mode activation or `defaultActive`. The full `deepwork/default.md` workflow and
|
|
48
48
|
role/model workflow calibrations apply only to admitted DSMM roles. Ordinary
|
|
49
|
-
Agents
|
|
50
|
-
tuning; they acquire no planner/critic
|
|
49
|
+
Agents receive general guidance, a behavior-only calibration for the current model,
|
|
50
|
+
lazy skills and applicable model-parameter tuning; they acquire no planner/critic
|
|
51
|
+
dispatch requirement or DSMM role tools. Both preset types select calibration using
|
|
52
|
+
the current prompt assembly rather than the preceding request header.
|
|
51
53
|
|
|
52
54
|
Model guidance is subordinate to the selected role and the current runtime's tools
|
|
53
55
|
and permissions. Role and workflow prompts contain usage guidance rather than a
|
|
54
56
|
static Host contract or duplicate skill/MCP inventories; availability comes from
|
|
55
|
-
the current runtime catalog.
|
|
57
|
+
the current runtime catalog. The six development workflow skills describe their software
|
|
58
|
+
engineering stage in both discovery metadata and their frontmatter. Other tasks can
|
|
59
|
+
use domain skills and native delegation without loading a development workflow.
|
|
56
60
|
Model identifiers and families select resources in code; calibration text, headings
|
|
57
61
|
and tags are model-neutral. Source filenames retain selector identities. Kimi
|
|
58
62
|
K3 and earlier, and names without a determinate version, use `deepwork/kimi.md`.
|
|
@@ -60,10 +64,12 @@ K3.1 and later numeric generations, including K3.2 and K4+, exclusively use
|
|
|
60
64
|
`deepwork/kimi-k3-1.md`. Prompt-only K aliases such as `k3p1` leave reasoning-family
|
|
61
65
|
classification unchanged. Existing `kimi-k27` names retain their K2.7 meaning
|
|
62
66
|
and the old calibration. Selection preserves the first model identity and keeps
|
|
63
|
-
structured provider metadata outside model matching. Gemini 4
|
|
64
|
-
|
|
67
|
+
structured provider metadata outside model matching. Gemini 4 and later, including Argon,
|
|
68
|
+
receive the `gemini-4` additive layer. No injected self-identification
|
|
65
69
|
or textual model guard is needed. Prompt selection does not change provider,
|
|
66
|
-
effort, fallback chains or DSH model capabilities.
|
|
70
|
+
effort, fallback chains or DSH model capabilities. Fable and Mythos from 5.2 onward select
|
|
71
|
+
`deepwork/claude-fable-5-2.md` for admitted roles and categories. It directs the
|
|
72
|
+
agent to finish actionable work in its assignment and diagnose a failure before retrying.
|
|
67
73
|
|
|
68
74
|
The K3.1+ scope-and-delivery calibration selectively adapts Senpi `2026.11.3-3`'s
|
|
69
75
|
`kimi-k3-1.ts` at published source `29eedcbe7c0cdf1c89eac7c94d4093b485925303`.
|
package/docs/model-routing.md
CHANGED
|
@@ -122,11 +122,17 @@ Foreground tool cards subscribe through the native read-only Gateway stream befo
|
|
|
122
122
|
|
|
123
123
|
Provider call IDs can repeat across requests. Reuse never blocks delegation: ambiguous live card correlation is removed, while each final result retains its own child/run-bound comparison. Watching a child session requires verified live lineage and grants no additional prompt or interrupt authority. Closing observation leaves native execution and delivery ownership unchanged.
|
|
124
124
|
|
|
125
|
-
##
|
|
125
|
+
## Model-family prompt calibration
|
|
126
126
|
|
|
127
|
-
|
|
127
|
+
With Deepwork enabled, prompt assembly uses the first recognized identity in the effective model name. A provider name or a later model in the same string cannot supply a missing family or version. Ordinary presets receive neutral behavior guidance; DW roles retain their existing base, planner or category layers.
|
|
128
128
|
|
|
129
|
-
|
|
129
|
+
- GPT and Codex use their family calibration regardless of generation, including GPT-6.2 and later. Codex keeps its DW base wherever that base applies.
|
|
130
|
+
- Gemini major 4 and later inherit the `gemini-4` additive. Both numeric names (`gemini4.1`, `gemini-5-pro`) and explicit major wildcards (`gemini-4.x-pro`, `gemini5.x:latest`) qualify. A wildcard supplies only its major; bare `4.x` does not identify Gemini.
|
|
131
|
+
- SWE major 2 and later share the `swe-2` additive and its ordinary behavior guidance. For example, `swe-3` and `swe-20` qualify; `swe-1` and `swe-latest` do not.
|
|
132
|
+
- Opus 5 and later select the `claude-opus-5` base for the orchestrator and the corresponding neutral guidance for ordinary presets. Other DW roles keep their existing layers.
|
|
133
|
+
- Fable and Mythos 5.2 and later share the `claude-fable-5-2` additive. Kimi K3.1 and later use `kimi-k3-1`; older and unversioned Kimi identities keep `kimi`.
|
|
134
|
+
|
|
135
|
+
Version thresholds compare numeric components, so 5.10 follows 5.2. A malformed version does not select a version-specific layer. These thresholds select prompts only; native capabilities and request parameters are unchanged.
|
|
130
136
|
|
|
131
137
|
## Generic model parameters
|
|
132
138
|
|
package/docs/testing.md
CHANGED
|
@@ -70,6 +70,8 @@ when `agent.model.select` is unavailable. The resolver-free Fake-IP case skips o
|
|
|
70
70
|
a resolver-capable Host; the existing address-policy/transport tests cover that
|
|
71
71
|
implementation.
|
|
72
72
|
|
|
73
|
+
To test an installed tarball, use a disposable DSH home whose profile contains the base, headless and DSMM bundles. Install the tarball into that profile with normal peer resolution, separately from the Host installation. With `DSMM_TEST_DSH_ENTRY` set to the Host CLI entry, run `node test/installed-profile-web-probe.mjs <isolated-home> <profile-name>`. This checks native `http` through `web_fetch`, the selected Fake-IP provider's loopback refusal, and the modules resolved by the installed plugin. It uses a local model fixture and fetches public npm metadata without credentials.
|
|
74
|
+
|
|
73
75
|
Missing anchors produce explicit skips. A skipped integration case is unavailable
|
|
74
76
|
coverage, not a pass, and must be reported as such. The wrapper files remain the
|
|
75
77
|
entry points for their `.mjs` fixtures so the underlying Host, CLI, approval and
|
package/docs/web-fetch-fakeip.md
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
|
|
7
7
|
DSMM 包必须具备以下依赖和发布入口,才能使用此插件:
|
|
8
8
|
|
|
9
|
-
-
|
|
10
|
-
-
|
|
9
|
+
- `@deepseek-ai/dsh-web-fetch-http`、`@deepseek-ai/dsh-web`、`@deepseek-ai/dsh-http-proxy` 和 Cordis 均由运行中的 DSH 提供。DSMM 发布包不将这些宿主库声明为依赖或 peer;只有显式加载此入口才需要宿主的 HTTP provider 实现。
|
|
10
|
+
- `ipaddr.js` 是 DSMM 自有的地址处理依赖。DSMM 和原生 HTTP provider 使用宿主的同一份 `dsh-http-proxy`,从而读取相同的进程路由。
|
|
11
11
|
- 包 export `./web-fetch-fakeip`,types 指向 `./lib/web-fetch-fakeip.d.ts`,default 指向 `./lib/web-fetch-fakeip.js`。构建也需包含其内部 `web-fetch-address-policy.js`。包的 `files` 应包含本说明和来源许可证。
|
|
12
12
|
|
|
13
13
|
在用户所选原生 profile 的 patch 中显式挂载该入口,并修改原有 web service 的 `fetchProvider`(保留其真实 entry ID 和其他配置):
|
package/dsh-plugin.json
CHANGED
|
@@ -110,9 +110,9 @@ export declare const childDisabledCopy: Record<RoleControlDisabledReason, readon
|
|
|
110
110
|
export type ChildrenLocaleKey = keyof typeof childrenEn | `reason:${RoleControlDisabledReason}`;
|
|
111
111
|
export declare const childrenLocaleEn: {
|
|
112
112
|
"reason:unavailable": string;
|
|
113
|
-
"reason:read-only": string;
|
|
114
113
|
"reason:one-shot": string;
|
|
115
114
|
"reason:module-off": string;
|
|
115
|
+
"reason:read-only": string;
|
|
116
116
|
"reason:role-disabled": string;
|
|
117
117
|
"reason:unknown-mode": string;
|
|
118
118
|
"reason:not-direct-child": string;
|
|
@@ -223,9 +223,9 @@ export declare const childrenLocaleEn: {
|
|
|
223
223
|
};
|
|
224
224
|
export declare const childrenLocaleZh: {
|
|
225
225
|
"reason:unavailable": string;
|
|
226
|
-
"reason:read-only": string;
|
|
227
226
|
"reason:one-shot": string;
|
|
228
227
|
"reason:module-off": string;
|
|
228
|
+
"reason:read-only": string;
|
|
229
229
|
"reason:role-disabled": string;
|
|
230
230
|
"reason:unknown-mode": string;
|
|
231
231
|
"reason:not-direct-child": string;
|
|
@@ -240,12 +240,12 @@ export declare const childrenLocaleZh: {
|
|
|
240
240
|
session: string;
|
|
241
241
|
field: string;
|
|
242
242
|
unknown: string;
|
|
243
|
-
stale: string;
|
|
244
|
-
mode: string;
|
|
245
243
|
prompt: string;
|
|
244
|
+
mode: string;
|
|
246
245
|
captured: string;
|
|
247
246
|
level: string;
|
|
248
247
|
legacy: string;
|
|
248
|
+
stale: string;
|
|
249
249
|
unverified: string;
|
|
250
250
|
limitations: string;
|
|
251
251
|
depth: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { isRemoteFailure } from "@deepseek-ai/dsh-api-gateway/client";
|
|
2
2
|
import { parseRoleControlErrorInfo } from "../role-control-remote.js";
|
|
3
3
|
class ObservationProtocolError extends Error {
|
|
4
4
|
code;
|
|
@@ -10,7 +10,7 @@ class ObservationProtocolError extends Error {
|
|
|
10
10
|
function observationIssue(error) {
|
|
11
11
|
if (error instanceof ObservationProtocolError)
|
|
12
12
|
return { kind: "protocol", code: error.code };
|
|
13
|
-
const remote =
|
|
13
|
+
const remote = isRemoteFailure(error) ? error : undefined;
|
|
14
14
|
if (remote?.code === "dsmm-children/refused") {
|
|
15
15
|
try {
|
|
16
16
|
return { kind: "domain", ...parseRoleControlErrorInfo(remote.details) };
|