@dsmm/dsmm 0.1.1 → 0.1.5
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 +26 -15
- package/agent-presets/dsmm-builder/agent.cordis.yml +14 -12
- package/agent-presets/dsmm-builder/preset.yml +1 -1
- package/agent-presets/dsmm-clarifier/agent.cordis.yml +4 -2
- package/agent-presets/dsmm-clarifier/preset.yml +1 -1
- package/agent-presets/dsmm-code-search/agent.cordis.yml +4 -2
- package/agent-presets/dsmm-code-search/preset.yml +1 -1
- package/agent-presets/dsmm-creative/agent.cordis.yml +3 -1
- package/agent-presets/dsmm-creative/preset.yml +1 -1
- package/agent-presets/dsmm-doc-search/agent.cordis.yml +4 -2
- package/agent-presets/dsmm-doc-search/preset.yml +1 -1
- package/agent-presets/dsmm-media-reader/agent.cordis.yml +4 -2
- package/agent-presets/dsmm-media-reader/preset.yml +1 -1
- package/agent-presets/dsmm-oracle/agent.cordis.yml +3 -1
- package/agent-presets/dsmm-oracle/preset.yml +1 -1
- package/agent-presets/dsmm-oracle-2nd/agent.cordis.yml +3 -1
- package/agent-presets/dsmm-oracle-2nd/preset.yml +1 -1
- package/agent-presets/dsmm-orchestrator/agent.cordis.yml +15 -13
- package/agent-presets/dsmm-orchestrator/preset.yml +2 -2
- package/agent-presets/dsmm-plan-critic/agent.cordis.yml +4 -2
- package/agent-presets/dsmm-plan-critic/preset.yml +1 -1
- package/agent-presets/dsmm-planner/agent.cordis.yml +4 -2
- package/agent-presets/dsmm-planner/preset.yml +1 -1
- package/agent-presets/dsmm-reviewer/agent.cordis.yml +4 -2
- package/agent-presets/dsmm-reviewer/preset.yml +1 -1
- package/docs/agent-presets.md +15 -5
- package/docs/compatibility.md +66 -11
- package/docs/migration-from-ocmm.md +8 -0
- package/docs/model-routing.md +25 -7
- package/docs/profiles.md +95 -0
- package/docs/releasing.md +66 -19
- package/docs/runtime-recovery.md +39 -14
- package/docs/settings-status.md +13 -5
- package/lib/client/ProfilesSection.d.ts +11 -0
- package/lib/client/ProfilesSection.js +66 -0
- package/lib/client/SessionProfiles.d.ts +19 -0
- package/lib/client/SessionProfiles.js +24 -0
- package/lib/client/StructuredEditor.d.ts +11 -0
- package/lib/client/StructuredEditor.js +74 -0
- package/lib/client/controller.d.ts +115 -0
- package/lib/client/controller.js +340 -0
- package/lib/client/index.d.ts +13 -0
- package/lib/client/index.js +54 -0
- package/lib/client/locales.d.ts +145 -0
- package/lib/client/locales.js +91 -0
- package/lib/client/session-labels.d.ts +8 -0
- package/lib/client/session-labels.js +13 -0
- package/lib/client/structured.d.ts +18 -0
- package/lib/client/structured.js +98 -0
- package/lib/client/styles.d.ts +3 -0
- package/lib/client/styles.js +36 -0
- package/lib/client.js +2825 -0
- package/lib/commands.d.ts +3 -3
- package/lib/commands.js +5 -4
- package/lib/dsh-types.d.ts +20 -0
- package/lib/guards.d.ts +2 -2
- package/lib/guards.js +3 -2
- package/lib/index.d.ts +12 -4
- package/lib/index.js +98 -20
- package/lib/mode.d.ts +2 -2
- package/lib/mode.js +1 -1
- package/lib/model-routing.d.ts +2 -2
- package/lib/model-routing.js +100 -15
- package/lib/preset-registry.js +5 -3
- package/lib/profile-remote.d.ts +37 -0
- package/lib/profile-remote.js +219 -0
- package/lib/profile-rpc.d.ts +35 -0
- package/lib/profile-rpc.js +187 -0
- package/lib/profile-runtime.d.ts +63 -0
- package/lib/profile-runtime.js +310 -0
- package/lib/profile-store.d.ts +60 -0
- package/lib/profile-store.js +588 -0
- package/lib/profile-types.d.ts +80 -0
- package/lib/profile-types.js +2 -0
- package/lib/profiles.d.ts +26 -0
- package/lib/profiles.js +269 -0
- package/lib/prompts.d.ts +2 -2
- package/lib/prompts.js +4 -4
- package/lib/role-providers.d.ts +2 -2
- package/lib/role-providers.js +49 -6
- package/lib/role-routing.d.ts +37 -3
- package/lib/role-routing.js +110 -35
- package/lib/role-subagents.d.ts +2 -2
- package/lib/role-subagents.js +6 -4
- package/lib/roles.d.ts +4 -0
- package/lib/roles.js +43 -27
- package/lib/routing-policy.d.ts +32 -0
- package/lib/routing-policy.js +92 -0
- package/lib/runtime-recovery.d.ts +2 -2
- package/lib/runtime-recovery.js +215 -54
- package/lib/session-metadata.d.ts +13 -0
- package/lib/session-metadata.js +34 -0
- package/lib/session-persistence.d.ts +35 -0
- package/lib/session-persistence.js +304 -0
- package/lib/settings.d.ts +34 -1
- package/lib/settings.js +33 -7
- package/lib/state.d.ts +1 -0
- package/lib/state.js +4 -0
- package/lib/status.d.ts +9 -1
- package/lib/status.js +34 -12
- package/locale/en.json +6 -0
- package/locale/zh.json +6 -0
- package/package.json +66 -15
- package/patches/agent-presets-root.example.cordis.patch.yml +6 -10
- package/prompts/deepseek-v4-pro.md +1 -1
- package/prompts/deepwork.md +3 -3
- package/scripts/repair-session-log.mjs +476 -0
- package/scripts/session-repair-native-verifier.mjs +367 -0
package/lib/status.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { classifyModelFamily } from "./model-family.js";
|
|
2
2
|
import { isDeepseekFlashRoute, isDeepseekV4ProRoute } from "./model-routing.js";
|
|
3
|
-
import { isDsmmRoleId } from "./roles.js";
|
|
4
|
-
import {
|
|
3
|
+
import { DSMM_ROLES, isDsmmRoleId } from "./roles.js";
|
|
4
|
+
import { persistedRoleRoute, liveRolePolicyIdentity, roleRouteRuntimeState } from "./role-routing.js";
|
|
5
5
|
import { resolveEffectiveDsmmRole, resolveSelectedAgentPreset } from "./session-scope.js";
|
|
6
|
+
import { resolveRoleRuntimePolicy } from "./routing-policy.js";
|
|
6
7
|
export const DSMM_STATUS_VERSION = 1;
|
|
7
8
|
export function createDsmmStatusSnapshot(input) {
|
|
8
9
|
const { agent, settings, modeActive } = input;
|
|
@@ -18,7 +19,10 @@ export function createDsmmStatusSnapshot(input) {
|
|
|
18
19
|
}
|
|
19
20
|
const inScope = modeActive || role !== undefined;
|
|
20
21
|
const policy = role === undefined ? undefined : settings.roleRouting[role];
|
|
21
|
-
const
|
|
22
|
+
const runtimePolicy = resolveRoleRuntimePolicy(settings, role);
|
|
23
|
+
const roleRuntimeState = input.roleRuntimeState ?? (input.admission === undefined || invalidDescriptor ? undefined
|
|
24
|
+
: roleRouteRuntimeState(agent, settings, role, input.admission.epoch));
|
|
25
|
+
const fallbacks = invalidDescriptor ? [] : runtimePolicy.fallbackRoutes;
|
|
22
26
|
const selectedRoute = resolveRoute(agent);
|
|
23
27
|
const family = classifyModelFamily({
|
|
24
28
|
providerID: selectedRoute.provider,
|
|
@@ -30,14 +34,19 @@ export function createDsmmStatusSnapshot(input) {
|
|
|
30
34
|
const deepseekFlash = selectedRoute.provider !== undefined && selectedRoute.model !== undefined
|
|
31
35
|
&& isDeepseekFlashRoute({ provider: selectedRoute.provider, model: selectedRoute.model });
|
|
32
36
|
let acceptedRoleRoute;
|
|
33
|
-
if (
|
|
34
|
-
acceptedRoleRoute = persistedRoleRoute({ agent }, policy
|
|
37
|
+
if (!invalidDescriptor && role !== undefined) {
|
|
38
|
+
acceptedRoleRoute = persistedRoleRoute({ agent }, policy?.primary, fallbacks, liveRolePolicyIdentity(agent, settings, role, input.admission?.epoch));
|
|
35
39
|
}
|
|
36
40
|
const exactRouting = policy?.primary !== undefined || acceptedRoleRoute !== undefined
|
|
37
41
|
|| fallbacks.some((route) => route.reasoningEffort !== undefined && route.provider === selectedRoute.provider
|
|
38
42
|
&& route.model === selectedRoute.model && route.reasoningEffort === selectedRoute.reasoningEffort);
|
|
39
43
|
return {
|
|
40
44
|
version: DSMM_STATUS_VERSION,
|
|
45
|
+
...(input.admission === undefined ? {} : { admission: {
|
|
46
|
+
profile: input.admission.profile === null ? null : { ...input.admission.profile },
|
|
47
|
+
epoch: input.admission.epoch,
|
|
48
|
+
scope: input.admission.scope
|
|
49
|
+
} }),
|
|
41
50
|
mode: {
|
|
42
51
|
name: settings.modeName,
|
|
43
52
|
active: modeActive,
|
|
@@ -65,10 +74,17 @@ export function createDsmmStatusSnapshot(input) {
|
|
|
65
74
|
}),
|
|
66
75
|
rolePolicy: {
|
|
67
76
|
...(role === undefined ? {} : { role }),
|
|
68
|
-
applies:
|
|
77
|
+
applies: inScope && !invalidDescriptor,
|
|
69
78
|
...(policy?.primary === undefined ? {} : { primary: { ...policy.primary } }),
|
|
70
79
|
fallbackRoutes: fallbacks.map((route) => ({ ...route })),
|
|
71
|
-
fallbackSource:
|
|
80
|
+
fallbackSource: invalidDescriptor ? "disabled" : runtimePolicy.fallbackSource,
|
|
81
|
+
strategy: runtimePolicy.strategy,
|
|
82
|
+
rateLimit: { ...runtimePolicy.rateLimit },
|
|
83
|
+
...(roleRuntimeState === undefined ? {} : { runtimeState: {
|
|
84
|
+
...roleRuntimeState,
|
|
85
|
+
rateLimit: { ...roleRuntimeState.rateLimit },
|
|
86
|
+
...(roleRuntimeState.route === undefined ? {} : { route: { ...roleRuntimeState.route } })
|
|
87
|
+
} }),
|
|
72
88
|
...(invalidDescriptor ? { diagnostic: "invalid-child-descriptor" } : {})
|
|
73
89
|
},
|
|
74
90
|
runtimeRecovery: {
|
|
@@ -85,11 +101,12 @@ export function createDsmmStatusSnapshot(input) {
|
|
|
85
101
|
};
|
|
86
102
|
}
|
|
87
103
|
export function formatDsmmStatus(snapshot) {
|
|
104
|
+
const displayRole = (id) => DSMM_ROLES.find((role) => role.id === id)?.name ?? id ?? "none";
|
|
88
105
|
const scope = snapshot.rolePolicy.role !== undefined && snapshot.rolePolicy.role !== "dsmm-orchestrator"
|
|
89
106
|
&& snapshot.rolePolicy.role !== snapshot.mode.selectedPreset
|
|
90
|
-
? `${snapshot.rolePolicy.role} role`
|
|
107
|
+
? `${displayRole(snapshot.rolePolicy.role)} role`
|
|
91
108
|
: snapshot.mode.inScope && snapshot.mode.dsmmPreset && snapshot.mode.selectedPreset
|
|
92
|
-
? `${snapshot.mode.selectedPreset} preset`
|
|
109
|
+
? `${displayRole(snapshot.mode.selectedPreset)} preset`
|
|
93
110
|
: snapshot.mode.inScope
|
|
94
111
|
? "active deepwork"
|
|
95
112
|
: "out of scope";
|
|
@@ -98,12 +115,14 @@ export function formatDsmmStatus(snapshot) {
|
|
|
98
115
|
const policyEffort = snapshot.calibration.policyEffort ?? "not applicable";
|
|
99
116
|
const currentReasoningEffort = snapshot.route.currentReasoningEffort ?? "provider default";
|
|
100
117
|
return [
|
|
101
|
-
"
|
|
118
|
+
"Deepwork status",
|
|
102
119
|
`Mode: ${snapshot.mode.active ? "active" : "inactive"} (${snapshot.mode.name})`,
|
|
103
120
|
`Scope: ${scope}`,
|
|
121
|
+
...(snapshot.admission === undefined ? [] : [`Profile admission: ${snapshot.admission.scope}; profile=${snapshot.admission.profile?.id ?? "deployment baseline"}; epoch=${snapshot.admission.epoch}`]),
|
|
104
122
|
`Workflow policy: ${snapshot.effectiveSettings.workflow.policy}`,
|
|
105
123
|
`Route: ${provider}/${model} [${snapshot.route.family}]`,
|
|
106
|
-
`Role policy: ${snapshot.rolePolicy.role
|
|
124
|
+
`Role policy: ${displayRole(snapshot.rolePolicy.role)}; strategy=${snapshot.rolePolicy.strategy}; primary=${snapshot.rolePolicy.primary === undefined ? "inherit" : `${snapshot.rolePolicy.primary.provider}/${snapshot.rolePolicy.primary.model}`}; fallbacks=${snapshot.rolePolicy.fallbackSource}; retries=${snapshot.rolePolicy.rateLimit.maxRetries}; threshold=${snapshot.rolePolicy.rateLimit.switchAfterRateLimits}; switches=${snapshot.rolePolicy.rateLimit.maxSwitches}`,
|
|
125
|
+
...(snapshot.rolePolicy.runtimeState === undefined ? [] : [`Retry state: retries=${snapshot.rolePolicy.runtimeState.retries}; rate limits=${snapshot.rolePolicy.runtimeState.rateLimitFailures}; switches=${snapshot.rolePolicy.runtimeState.switches}; delay ms=${snapshot.rolePolicy.runtimeState.totalDelayMs}`]),
|
|
107
126
|
`Reasoning: ${snapshot.calibration.mode}; policy=${policyEffort}; current=${currentReasoningEffort}; action=${snapshot.calibration.action}`,
|
|
108
127
|
`Runtime recovery: ${snapshot.runtimeRecovery.enabled ? "enabled" : "disabled"}; applies=${snapshot.runtimeRecovery.applies ? "yes" : "no"}; fallbacks=${snapshot.runtimeRecovery.fallbackRouteCount}; max attempts=${snapshot.runtimeRecovery.maxFallbackAttempts}`,
|
|
109
128
|
`Idle continuation: ${snapshot.runtimeRecovery.idleContinuation.enabled ? "enabled" : "disabled"}; max=${snapshot.runtimeRecovery.idleContinuation.maxContinuations}`,
|
|
@@ -167,8 +186,11 @@ function copySettings(settings) {
|
|
|
167
186
|
roles: { ...settings.roles },
|
|
168
187
|
roleRouting: Object.fromEntries(Object.entries(settings.roleRouting).map(([role, policy]) => [role, {
|
|
169
188
|
...(policy.primary === undefined ? {} : { primary: { ...policy.primary } }),
|
|
170
|
-
...(policy.fallbackRoutes === undefined ? {} : { fallbackRoutes: policy.fallbackRoutes.map((route) => ({ ...route })) })
|
|
189
|
+
...(policy.fallbackRoutes === undefined ? {} : { fallbackRoutes: policy.fallbackRoutes.map((route) => ({ ...route })) }),
|
|
190
|
+
...(policy.strategy === undefined ? {} : { strategy: policy.strategy }),
|
|
191
|
+
...(policy.rateLimit === undefined ? {} : { rateLimit: { ...policy.rateLimit } })
|
|
171
192
|
}])),
|
|
193
|
+
runtimePolicy: { strategy: settings.runtimePolicy.strategy, rateLimit: { ...settings.runtimePolicy.rateLimit } },
|
|
172
194
|
presets: { ...settings.presets },
|
|
173
195
|
workflow: { ...settings.workflow },
|
|
174
196
|
guards: {
|
package/locale/en.json
ADDED
package/locale/zh.json
ADDED
package/package.json
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dsmm/dsmm",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "DeepSeek Harness deepwork mode bundle for ocmm-style agentic workflows.",
|
|
5
5
|
"author": "Hugefiver",
|
|
6
6
|
"license": "LicenseRef-AAAPL",
|
|
7
|
-
"repository":
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/hugefiver/ocmm"
|
|
10
|
+
},
|
|
8
11
|
"homepage": "https://github.com/hugefiver/ocmm/tree/master/dsmm",
|
|
9
12
|
"bugs": "https://github.com/hugefiver/ocmm/issues",
|
|
10
13
|
"keywords": [
|
|
@@ -31,11 +34,24 @@
|
|
|
31
34
|
"types": "./lib/preset-skills.d.ts",
|
|
32
35
|
"default": "./lib/preset-skills.js"
|
|
33
36
|
},
|
|
34
|
-
"./
|
|
37
|
+
"./session-persistence": {
|
|
38
|
+
"types": "./lib/session-persistence.d.ts",
|
|
39
|
+
"default": "./lib/session-persistence.js"
|
|
40
|
+
},
|
|
41
|
+
"./client": {
|
|
42
|
+
"types": "./lib/client/index.d.ts",
|
|
43
|
+
"default": "./lib/client.js"
|
|
44
|
+
},
|
|
45
|
+
"./package.json": "./package.json",
|
|
46
|
+
"./locale/en.json": "./locale/en.json",
|
|
47
|
+
"./locale/zh.json": "./locale/zh.json"
|
|
35
48
|
},
|
|
36
49
|
"files": [
|
|
37
50
|
"lib/**/*.js",
|
|
38
51
|
"lib/**/*.d.ts",
|
|
52
|
+
"scripts/repair-session-log.mjs",
|
|
53
|
+
"scripts/session-repair-native-verifier.mjs",
|
|
54
|
+
"locale/*.json",
|
|
39
55
|
"agent-presets",
|
|
40
56
|
"docs/agent-presets.md",
|
|
41
57
|
"docs/compatibility.md",
|
|
@@ -43,6 +59,7 @@
|
|
|
43
59
|
"docs/lsp.md",
|
|
44
60
|
"docs/migration-from-ocmm.md",
|
|
45
61
|
"docs/model-routing.md",
|
|
62
|
+
"docs/profiles.md",
|
|
46
63
|
"docs/releasing.md",
|
|
47
64
|
"docs/research",
|
|
48
65
|
"docs/roadmap.md",
|
|
@@ -57,29 +74,25 @@
|
|
|
57
74
|
"LICENSE",
|
|
58
75
|
"README.md"
|
|
59
76
|
],
|
|
60
|
-
"scripts": {
|
|
61
|
-
"build": "tsc -p tsconfig.json",
|
|
62
|
-
"check:release": "node scripts/check-release-readiness.mjs",
|
|
63
|
-
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
64
|
-
"typecheck:test": "pnpm run build && tsc -p tsconfig.test.json --noEmit",
|
|
65
|
-
"test": "pnpm run build && node --test --experimental-strip-types test/*.test.ts",
|
|
66
|
-
"smoke:docker:build": "docker build --build-arg DSH_PACKAGE=@deepseek-ai/dsh@0.2.0-rc.2 -f docker/Dockerfile.smoke -t dsmm-dsh-smoke:0.2 ..",
|
|
67
|
-
"smoke:docker:run": "docker run --rm dsmm-dsh-smoke:0.2",
|
|
68
|
-
"smoke:docker": "node scripts/docker-smoke.mjs"
|
|
69
|
-
},
|
|
70
77
|
"engines": {
|
|
71
78
|
"node": ">=22"
|
|
72
79
|
},
|
|
73
80
|
"dependencies": {
|
|
74
|
-
"@deepseek-ai/schemastery": "~3.18.4"
|
|
81
|
+
"@deepseek-ai/schemastery": "~3.18.4",
|
|
82
|
+
"jsonc-parser": "^3.3.1"
|
|
75
83
|
},
|
|
76
84
|
"peerDependencies": {
|
|
77
85
|
"@deepseek-ai/cordis": "~4.0.4",
|
|
86
|
+
"@deepseek-ai/dsh-client-connection": "0.2.0-rc.2",
|
|
87
|
+
"@deepseek-ai/dsh-typert-protocol": "0.2.0-rc.2",
|
|
78
88
|
"@deepseek-ai/dsh-attachment": "0.2.0-rc.2",
|
|
79
89
|
"@deepseek-ai/dsh-brand": "0.2.0-rc.2",
|
|
80
90
|
"@deepseek-ai/dsh-invariants": "0.2.0-rc.2",
|
|
81
91
|
"@deepseek-ai/dsh-llm": "0.2.0-rc.2",
|
|
82
92
|
"@deepseek-ai/dsh-timeout": "0.2.0-rc.2",
|
|
93
|
+
"@deepseek-ai/dsh-session": "0.2.0-rc.2",
|
|
94
|
+
"@deepseek-ai/dsh-session-persistence": "0.2.0-rc.2",
|
|
95
|
+
"@deepseek-ai/dsh-session-persistence-jsonl": "0.2.0-rc.2",
|
|
83
96
|
"@deepseek-ai/dsh-agent-preset-registry": "0.2.0-rc.2",
|
|
84
97
|
"@deepseek-ai/dsh-tool-subagent": "0.2.0-rc.2",
|
|
85
98
|
"@deepseek-ai/dsh-subagent": "0.2.0-rc.2",
|
|
@@ -95,11 +108,29 @@
|
|
|
95
108
|
},
|
|
96
109
|
"devDependencies": {
|
|
97
110
|
"@deepseek-ai/cordis": "~4.0.4",
|
|
111
|
+
"@deepseek-ai/dsh-api-session-controller": "0.2.0-rc.2",
|
|
112
|
+
"@deepseek-ai/dsh-client-ui-session": "0.2.0-rc.2",
|
|
113
|
+
"@deepseek-ai/dsh-client-ui-conversation": "0.2.0-rc.2",
|
|
114
|
+
"@deepseek-ai/dsh-typert-protocol": "0.2.0-rc.2",
|
|
115
|
+
"@deepseek-ai/dsh-typert-registry": "0.2.0-rc.2",
|
|
116
|
+
"@deepseek-ai/dsh-api-gateway": "0.2.0-rc.2",
|
|
117
|
+
"@deepseek-ai/dsh-client-connection": "0.2.0-rc.2",
|
|
118
|
+
"@deepseek-ai/dsh-client-ui-slots": "0.2.0-rc.2",
|
|
119
|
+
"@deepseek-ai/dsh-client-ui-renderer": "0.2.0-rc.2",
|
|
120
|
+
"@deepseek-ai/dsh-client-store": "0.2.0-rc.2",
|
|
121
|
+
"@deepseek-ai/dsh-client-locale": "0.2.0-rc.2",
|
|
122
|
+
"@deepseek-ai/dsh-client-ui-primitives": "0.2.0-rc.2",
|
|
123
|
+
"@deepseek-ai/dsh-client-ui-settings": "0.2.0-rc.2",
|
|
124
|
+
"@types/react": "^18.3.27",
|
|
125
|
+
"esbuild": "^0.25.12",
|
|
126
|
+
"react": "^18.3.1",
|
|
98
127
|
"@deepseek-ai/dsh-attachment": "0.2.0-rc.2",
|
|
99
128
|
"@deepseek-ai/dsh-brand": "0.2.0-rc.2",
|
|
100
129
|
"@deepseek-ai/dsh-invariants": "0.2.0-rc.2",
|
|
101
130
|
"@deepseek-ai/dsh-llm": "0.2.0-rc.2",
|
|
102
131
|
"@deepseek-ai/dsh-timeout": "0.2.0-rc.2",
|
|
132
|
+
"@deepseek-ai/dsh-session-persistence": "0.2.0-rc.2",
|
|
133
|
+
"@deepseek-ai/dsh-session-persistence-jsonl": "0.2.0-rc.2",
|
|
103
134
|
"@deepseek-ai/dsh-system-prompt": "0.2.0-rc.2",
|
|
104
135
|
"@deepseek-ai/dsh-agent": "0.2.0-rc.2",
|
|
105
136
|
"@deepseek-ai/dsh-agent-loop": "0.2.0-rc.2",
|
|
@@ -124,8 +155,28 @@
|
|
|
124
155
|
"typescript": "^6.0.3"
|
|
125
156
|
},
|
|
126
157
|
"dsh": {
|
|
158
|
+
"client": {
|
|
159
|
+
"platform": "web",
|
|
160
|
+
"inject": [
|
|
161
|
+
"@deepseek-ai/dsh-api-gateway",
|
|
162
|
+
"@deepseek-ai/dsh-client-locale",
|
|
163
|
+
"@deepseek-ai/dsh-client-ui-renderer"
|
|
164
|
+
],
|
|
165
|
+
"external": []
|
|
166
|
+
},
|
|
127
167
|
"bundle": {
|
|
128
168
|
"patch": "./cordis.patch.yml"
|
|
129
169
|
}
|
|
170
|
+
},
|
|
171
|
+
"scripts": {
|
|
172
|
+
"build": "tsc -p tsconfig.json && node scripts/build-client.mjs",
|
|
173
|
+
"build:client": "node scripts/build-client.mjs",
|
|
174
|
+
"check:release": "node scripts/check-release-readiness.mjs",
|
|
175
|
+
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
176
|
+
"typecheck:test": "pnpm run build && tsc -p tsconfig.test.json --noEmit",
|
|
177
|
+
"test": "pnpm run build && node --test --experimental-strip-types test/*.test.ts",
|
|
178
|
+
"smoke:docker:build": "docker build --build-arg DSH_PACKAGE=@deepseek-ai/dsh@0.2.0-rc.2 -f docker/Dockerfile.smoke -t dsmm-dsh-smoke:0.2 ..",
|
|
179
|
+
"smoke:docker:run": "docker run --rm dsmm-dsh-smoke:0.2",
|
|
180
|
+
"smoke:docker": "node scripts/docker-smoke.mjs"
|
|
130
181
|
}
|
|
131
|
-
}
|
|
182
|
+
}
|
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
# Example only: dsmm does not auto-apply this patch.
|
|
2
2
|
#
|
|
3
|
-
#
|
|
4
|
-
#
|
|
5
|
-
#
|
|
6
|
-
#
|
|
3
|
+
# DSH 0.2 registers enabled root-capable DSMM roles through the native registry;
|
|
4
|
+
# exported preset directories are inspection templates, not discovery inputs.
|
|
5
|
+
# Use this optional explicit patch only to choose the default for new sessions.
|
|
6
|
+
# The chosen DSMM role must be enabled. Auxiliary roles are delegation-only.
|
|
7
|
+
# Installing DSMM does not apply this patch or change the deployment default.
|
|
7
8
|
- id: agent-presets
|
|
8
9
|
config:
|
|
9
|
-
default:
|
|
10
|
-
roots:
|
|
11
|
-
# Replace this with the same absolute path configured as dsmm.presets.root.
|
|
12
|
-
- path: /absolute/path/to/dsmm-managed-agent-presets
|
|
13
|
-
trust: user
|
|
14
|
-
includeUserRoot: true
|
|
10
|
+
default: dsmm-orchestrator
|
|
@@ -7,7 +7,7 @@ DeepSeek V4 Pro calibration is active.
|
|
|
7
7
|
- Use tools before making repository-specific or API-specific claims.
|
|
8
8
|
- Runtime reasoning effort is enforced by `agent/request`, not this prompt.
|
|
9
9
|
- In `auto` calibration, explicit upstream reasoning effort is preserved; `strict` overrides it with computed policy.
|
|
10
|
-
- Only adapter-advertised reasoning efforts are emitted; `max` is selected only for configured
|
|
10
|
+
- Only adapter-advertised reasoning efforts are emitted; `max` is selected only for configured DW presets.
|
|
11
11
|
- Keep final answers concise and do not expose private chain-of-thought.
|
|
12
12
|
- When tool calls are enabled through the provider, preserve the provider-required reasoning/tool-call continuity.
|
|
13
13
|
|
package/prompts/deepwork.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
DEEPWORK MODE ENABLED!
|
|
4
4
|
|
|
5
|
-
Use this workflow only while the `{{modeName}}` mode is active OR a
|
|
5
|
+
Use this workflow only while the `{{modeName}}` mode is active OR a DW-managed preset is selected. This is an opt-in boundary: outside both conditions, do not apply Deepwork-specific gates, intent routing, or tool-discipline requirements. The default mode name is `deepwork` unless configured.
|
|
6
6
|
|
|
7
7
|
## Intent routing
|
|
8
8
|
|
|
@@ -17,7 +17,7 @@ Determine whether the user requests an explanation, diagnosis, implementation, o
|
|
|
17
17
|
- For completed implementation, gather evidence from tests, diagnostics, and real surfaces before declaring done.
|
|
18
18
|
- Keep scope exact. Do not add unrelated refactors, speculative abstractions, or surprise features.
|
|
19
19
|
- The bundled workflow skill set is available in this mode: `brainstorming`, `writing-plans`, `subagent-driven-development`, `dispatching-parallel-agents`, `requesting-code-review`, `receiving-code-review`, and `remove-ai-slops`.
|
|
20
|
-
- `workflow.policy=risk-based` uses the rules above. Explicit `workflow.policy=legacy` retains the configured `strictGates`, `reviewCap`, and `finalReviewPolicy` gates. Do not apply any
|
|
20
|
+
- `workflow.policy=risk-based` uses the rules above. Explicit `workflow.policy=legacy` retains the configured `strictGates`, `reviewCap`, and `finalReviewPolicy` gates. Do not apply any Deepwork policy outside active `{{modeName}}` mode or DW-managed preset scope.
|
|
21
21
|
|
|
22
22
|
## Tool discipline
|
|
23
23
|
|
|
@@ -27,6 +27,6 @@ Use repository tools for repository-specific claims. Prefer narrow reads and sea
|
|
|
27
27
|
- No autonomous Git writes: implementing or fixing does not authorize a commit, and a commit does not authorize pushing, tagging, rebasing, or releasing.
|
|
28
28
|
- Child tasks inherit the host's authority and depth limits. Delegate only through actually available DSH tools; preset files alone do not prove that a role is callable.
|
|
29
29
|
|
|
30
|
-
-
|
|
30
|
+
- Deepwork safety guards may enforce shell dialect, git-write approval, output-size, plan-format, question-label, and todo-discipline policy inside this mode; treat `[dsmm safety]` messages as binding policy feedback.
|
|
31
31
|
|
|
32
32
|
</dsmm-deepwork-mode>
|