@deepseek-ai/dsh-plan-mode 0.1.6-alpha.1 → 0.1.7-alpha.1

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.i18n.yaml CHANGED
@@ -2,5 +2,5 @@
2
2
  # side as of the last confirmed-consistent state. Both languages carry equal authority;
3
3
  # after editing either side, bring the other along and re-record with:
4
4
  # pnpm run verify-translation-pairing --write packages/plan/plan-mode/README.md
5
- README.md: 693273ab4bdfddebd6145046e8354a5a211c8b8b
6
- README.zh.md: 4782eed381ee3bdffab22ca162696f8711b33b47
5
+ README.md: 642caf0c6db6470e93c7b0583d2bfe145ed99f29
6
+ README.zh.md: 4165d5b925083d10c76312d00293fd0b0ac84ba0
package/README.md CHANGED
@@ -105,6 +105,8 @@ When `ctx.sessionProjections` is composed, the package registers the `plan` unit
105
105
  | [`src/client.ts`](src/client.ts) | Client-namespace re-export of the types outlet |
106
106
  | [`src/invariant.ts`](src/invariant.ts) | Invariant companion: validates the `plan/mode` payload shape |
107
107
 
108
+ The review intent carries the originating tool-call id, so the Web client can reopen the same submitted plan after the review closes. The complete Markdown remains in the existing native call or PTC dispatch log.
109
+
108
110
  </details>
109
111
 
110
112
  -----
package/README.zh.md CHANGED
@@ -105,6 +105,8 @@ agent 完成计划后,会以 markdown 形式、从标题开头书写计划并
105
105
  | [`src/client.ts`](src/client.ts) | types 出口的客户端命名空间再导出 |
106
106
  | [`src/invariant.ts`](src/invariant.ts) | 不变式伴生插件:校验 `plan/mode` 载荷结构 |
107
107
 
108
+ 审批意图携带发起工具调用的标识,让 Web 客户端在审批关闭后重新打开同一份计划。完整 Markdown 保留在已有的原生调用或 PTC dispatch 日志中。
109
+
108
110
  </details>
109
111
 
110
112
  -----
package/lib/index.js CHANGED
@@ -273,7 +273,8 @@ var PlanModeController = class extends Service {
273
273
  }],
274
274
  intent: {
275
275
  kind: "plan-review",
276
- approve: APPROVE_LABEL
276
+ approve: APPROVE_LABEL,
277
+ callId: exec.callId
277
278
  }
278
279
  }],
279
280
  agent,
@@ -402,8 +403,7 @@ var PlanModeController = class extends Service {
402
403
  text
403
404
  }],
404
405
  source: {
405
- kind: "plugin",
406
- plugin: "plan-mode",
406
+ kind: "plan-mode",
407
407
  form: "notice",
408
408
  summary: text
409
409
  }
@@ -24,7 +24,15 @@
24
24
  import { Context, Service } from '@deepseek-ai/cordis';
25
25
  import { z as zod } from 'zod';
26
26
  import type { Agent } from '@deepseek-ai/dsh-agent';
27
+ import type { ContextFormed } from '@deepseek-ai/dsh-llm';
27
28
  import type { PlanProjection, PlanUnitState } from './types.ts';
29
+ declare module '@deepseek-ai/dsh-llm' {
30
+ interface MessageSourceMap {
31
+ 'plan-mode': {
32
+ kind: 'plan-mode';
33
+ } & ContextFormed;
34
+ }
35
+ }
28
36
  export type * from './types.ts';
29
37
  declare module '@deepseek-ai/dsh-session/types' {
30
38
  interface SessionEventMap {
@@ -264,7 +264,7 @@ export class PlanModeController extends Service {
264
264
  // Presentation only: a capable UI renders the plan as a review
265
265
  // decision instead of a generic question, and answers with one of
266
266
  // the labels above either way.
267
- intent: { kind: 'plan-review', approve: APPROVE_LABEL },
267
+ intent: { kind: 'plan-review', approve: APPROVE_LABEL, callId: exec.callId },
268
268
  }],
269
269
  agent,
270
270
  signal: exec.signal,
@@ -408,7 +408,7 @@ export class PlanModeController extends Service {
408
408
  return createUserMessage({
409
409
  content: [{ type: 'text', text }],
410
410
  // The narration is already one sentence, so it is its own summary.
411
- source: { kind: 'plugin', plugin: 'plan-mode', form: 'notice', summary: text },
411
+ source: { kind: 'plan-mode', form: 'notice', summary: text },
412
412
  });
413
413
  }
414
414
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deepseek-ai/dsh-plan-mode",
3
3
  "description": "Logged per-agent plan mode with deployment guidance, a direct slash command, and a user-reviewed exit",
4
- "version": "0.1.6-alpha.1",
4
+ "version": "0.1.7-alpha.1",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -41,16 +41,16 @@
41
41
  ],
42
42
  "license": "MIT",
43
43
  "peerDependencies": {
44
- "@deepseek-ai/dsh-agent": "^0.1.6-alpha.1",
45
- "@deepseek-ai/dsh-commands": "^0.1.6-alpha.1",
46
- "@deepseek-ai/dsh-invariants": "^0.1.6-alpha.1",
47
- "@deepseek-ai/dsh-llm": "^0.1.6-alpha.1",
48
- "@deepseek-ai/dsh-session": "^0.1.6-alpha.1",
49
- "@deepseek-ai/dsh-session-projection": "^0.1.6-alpha.1",
50
- "@deepseek-ai/dsh-system-prompt": "^0.1.6-alpha.1",
51
- "@deepseek-ai/dsh-user-questions": "^0.1.6-alpha.1",
52
- "@deepseek-ai/cordis": "^4.0.2",
53
- "@deepseek-ai/dsh-tools": "^0.1.6-alpha.1"
44
+ "@deepseek-ai/dsh-agent": "^0.1.7-alpha.1",
45
+ "@deepseek-ai/dsh-commands": "^0.1.7-alpha.1",
46
+ "@deepseek-ai/dsh-llm": "^0.1.7-alpha.1",
47
+ "@deepseek-ai/dsh-session": "^0.1.7-alpha.1",
48
+ "@deepseek-ai/dsh-invariants": "^0.1.7-alpha.1",
49
+ "@deepseek-ai/dsh-session-projection": "^0.1.7-alpha.1",
50
+ "@deepseek-ai/dsh-system-prompt": "^0.1.7-alpha.1",
51
+ "@deepseek-ai/dsh-tools": "^0.1.7-alpha.1",
52
+ "@deepseek-ai/dsh-user-questions": "^0.1.7-alpha.1",
53
+ "@deepseek-ai/cordis": "^4.0.3"
54
54
  },
55
55
  "peerDependenciesMeta": {
56
56
  "@deepseek-ai/dsh-commands": {
@@ -59,20 +59,20 @@
59
59
  },
60
60
  "dependencies": {
61
61
  "zod": "^4.4.3",
62
- "@deepseek-ai/dsh-brand": "^0.1.6-alpha.1"
62
+ "@deepseek-ai/dsh-brand": "^0.1.7-alpha.1"
63
63
  },
64
64
  "devDependencies": {
65
- "@deepseek-ai/dsh-agent": "^0.1.6-alpha.1",
66
- "@deepseek-ai/dsh-agent-loop": "^0.1.6-alpha.1",
67
- "@deepseek-ai/dsh-ptc-runtime": "^0.1.6-alpha.1",
68
- "@deepseek-ai/dsh-commands": "^0.1.6-alpha.1",
69
- "@deepseek-ai/dsh-invariants": "^0.1.6-alpha.1",
70
- "@deepseek-ai/dsh-session": "^0.1.6-alpha.1",
71
- "@deepseek-ai/dsh-llm": "^0.1.6-alpha.1",
72
- "@deepseek-ai/dsh-session-projection": "^0.1.6-alpha.1",
73
- "@deepseek-ai/dsh-system-prompt": "^0.1.6-alpha.1",
74
- "@deepseek-ai/dsh-tools": "^0.1.6-alpha.1",
75
- "@deepseek-ai/dsh-user-questions": "^0.1.6-alpha.1",
76
- "@deepseek-ai/cordis": "^4.0.2"
65
+ "@deepseek-ai/dsh-agent": "^0.1.7-alpha.1",
66
+ "@deepseek-ai/dsh-agent-loop": "^0.1.7-alpha.1",
67
+ "@deepseek-ai/dsh-ptc-runtime": "^0.1.7-alpha.1",
68
+ "@deepseek-ai/dsh-commands": "^0.1.7-alpha.1",
69
+ "@deepseek-ai/dsh-invariants": "^0.1.7-alpha.1",
70
+ "@deepseek-ai/dsh-session-projection": "^0.1.7-alpha.1",
71
+ "@deepseek-ai/dsh-system-prompt": "^0.1.7-alpha.1",
72
+ "@deepseek-ai/dsh-tools": "^0.1.7-alpha.1",
73
+ "@deepseek-ai/dsh-user-questions": "^0.1.7-alpha.1",
74
+ "@deepseek-ai/cordis": "^4.0.3",
75
+ "@deepseek-ai/dsh-session": "^0.1.7-alpha.1",
76
+ "@deepseek-ai/dsh-llm": "^0.1.7-alpha.1"
77
77
  }
78
78
  }