@deepseek-ai/dsh-tool-goal 0.1.7-alpha.2 → 0.1.7-rc.2

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
@@ -1,6 +1,79 @@
1
- # Bilingual-pair consistency record (docs/i18n/README.md): the git blob hash of each
2
- # side as of the last confirmed-consistent state. Both languages carry equal authority;
3
- # after editing either side, bring the other along and re-record with:
1
+ # Bilingual-pair consistency record for README.md (docs/i18n/README.md): per heading
2
+ # section, a hash of its English and Chinese blocks outside code blocks and generated regions.
3
+ # After editing either side, bring the other along and re-record with:
4
4
  # pnpm run verify-translation-pairing --write packages/goal/tool-goal/README.md
5
- README.md: c40b9eb302ace23c2448114433eda364083a5293
6
- README.zh.md: b29848f33bf3692648b4810786cf28bb68cb202a
5
+ /:
6
+ en: 1965bb8d690c2163
7
+ zh: ccbb80e24190cb70
8
+ /deepseek-ai-dsh-tool-goal:
9
+ en: 942b1a25c527fe81
10
+ zh: f688d651470c7c5a
11
+ /deepseek-ai-dsh-tool-goal/summary:
12
+ en: e949bc54b6e81b98
13
+ zh: 728896898f55353f
14
+ /deepseek-ai-dsh-tool-goal/table-of-contents:
15
+ en: d152484eb41ac6b4
16
+ zh: 09388d293f9be9cb
17
+ /deepseek-ai-dsh-tool-goal/use-this-package:
18
+ en: 0a5939086aa67be0
19
+ zh: c97e18432e623631
20
+ /deepseek-ai-dsh-tool-goal/use-this-package/tools:
21
+ en: 1f9ad059567a448a
22
+ zh: d3f70b470e9317c4
23
+ /deepseek-ai-dsh-tool-goal/use-this-package/configure-it:
24
+ en: e3f5e8d634a488b7
25
+ zh: 04dcf916aa2114d2
26
+ /deepseek-ai-dsh-tool-goal/use-this-package/authority-rules:
27
+ en: a00f0dac577c3e9e
28
+ zh: 5dedb3dfcce449bc
29
+ /deepseek-ai-dsh-tool-goal/understand-the-implementation:
30
+ en: 4e9fdb5a89f4baa3
31
+ zh: 50d182467ae1f3a7
32
+ /deepseek-ai-dsh-tool-goal/understand-the-implementation/design:
33
+ en: a30f36299c8107f7
34
+ zh: 65e6e1e19aeb5281
35
+ /deepseek-ai-dsh-tool-goal/understand-the-implementation/source-map:
36
+ en: 33e8469f99ffecb8
37
+ zh: f1b44e8dd51ffb48
38
+ /deepseek-ai-dsh-tool-goal/understand-the-implementation/tool-output:
39
+ en: 79e54f40e0bfbe2b
40
+ zh: 895f7ba22749bc07
41
+ /deepseek-ai-dsh-tool-goal/further-exploration:
42
+ en: 870f9cbbc201e7f1
43
+ zh: 6fa3e87efd10940b
44
+ /deepseek-ai-dsh-tool-goal/model-experience:
45
+ en: 215e7ba838619b7b
46
+ zh: a311da3843709f90
47
+ /deepseek-ai-dsh-tool-goal/model-experience/system-prompt:
48
+ en: cf78b9dd5596495f
49
+ zh: bd44560f8c2435e8
50
+ /deepseek-ai-dsh-tool-goal/model-experience/system-prompt/what-the-model-sees:
51
+ en: c4ddc481746664fc
52
+ zh: f86e0ba3bb0043be
53
+ /deepseek-ai-dsh-tool-goal/model-experience/system-prompt/what-the-model-sees/goal-policy:
54
+ en: 452e35a67b130e54
55
+ zh: ad6030b6cb0eaabc
56
+ /deepseek-ai-dsh-tool-goal/model-experience/system-prompt/token-effect:
57
+ en: 0ca47969efda70ab
58
+ zh: bfb6dd046182bcfe
59
+ /deepseek-ai-dsh-tool-goal/model-experience/system-prompt/kv-cache-effect:
60
+ en: 1228efe95b389486
61
+ zh: 0eb2e21c6ab3bc33
62
+ /deepseek-ai-dsh-tool-goal/model-experience/tool-schemas-and-results:
63
+ en: cadc497841430a21
64
+ zh: af4cc374d7d16917
65
+ /deepseek-ai-dsh-tool-goal/model-experience/tool-schemas-and-results/what-the-model-sees:
66
+ en: a935557ea8afce8e
67
+ zh: 3e2b8208d0a22672
68
+ /deepseek-ai-dsh-tool-goal/model-experience/tool-schemas-and-results/token-effect:
69
+ en: 636b06a2958786bd
70
+ zh: 4bb09f24ef382b3b
71
+ /deepseek-ai-dsh-tool-goal/model-experience/tool-schemas-and-results/kv-cache-effect:
72
+ en: c2d2e98ce08fb40e
73
+ zh: 54d278190a1a9ed5
74
+ /deepseek-ai-dsh-tool-goal/known-limitations-and-deferred-work:
75
+ en: c9b0f788467a5062
76
+ zh: 1a94e89fbb2e1e41
77
+ /deepseek-ai-dsh-tool-goal/known-limitations-and-deferred-work/dev-note:
78
+ en: 47101daa04549489
79
+ zh: 1a3babd48193c068
package/README.md CHANGED
@@ -109,12 +109,12 @@ The tools are the model-facing half of the goal surface; read these pages for th
109
109
 
110
110
  #### What the model sees
111
111
 
112
- A fixed goal policy says when semantic human intent warrants creation, requires exact read-before-update refs, explains rearming after resume/fork, and limits completion/blocking claims. Durable paused resume is rejected at execution with `GOAL_TOOL_RESUME_PAUSED`; the user-facing goal control owns that transition. The configured threshold is interpolated into that guidance.
112
+ A fixed goal policy allows inferring goal intent in any language, explains rearming after resume/fork, and limits completion/blocking claims; creation scope and read-before-update refs live in the tool definitions. Durable paused resume is rejected at execution with `GOAL_TOOL_RESUME_PAUSED`; the user-facing goal control owns that transition. The configured threshold is interpolated into that guidance.
113
113
 
114
114
  ##### Goal policy
115
115
 
116
116
  ```markdown
117
- Use goal tools for one long-running completion objective in the current session. create_goal may infer goal intent from a direct human request in any language; do not create a goal for routine single-turn work. Call get_goal before update_goal and copy its exact goal_id and revision. After session resume or fork, an active goal is disarmed: when a human asks to continue or resume in any wording or language, use update_goal action resume to rearm it. Mark complete only when the objective is actually achieved. Mark blocked only after the same blocking condition persists for at least 3 consecutive goal rounds, and report that concrete condition in blocked_reason; difficulty, uncertainty, or useful remaining work is not blocked.
117
+ create_goal may infer goal intent from a direct human request in any language. After session resume or fork, an active goal is disarmed: when a human asks to continue or resume in any wording or language, use update_goal action resume to rearm it. Mark complete only when the objective is actually achieved. Mark blocked only after the same blocking condition persists for at least 3 consecutive goal rounds, and report that concrete condition in blocked_reason; difficulty, uncertainty, or useful remaining work is not blocked.
118
118
  ```
119
119
 
120
120
  #### Token effect
package/README.zh.md CHANGED
@@ -109,12 +109,12 @@ kind: "package-reference"
109
109
 
110
110
  #### 模型看到的内容
111
111
 
112
- 固定 goal 策略说明何种用户语义意图值得创建 goal,要求更新前先精确读取 ref,解释会话 resume/fork 后如何重新启用续行,并限制完成/阻塞声明。持久 paused 的 resume 会在执行时以 `GOAL_TOOL_RESUME_PAUSED` 拒绝;面向用户的 goal 控件拥有该转换。配置的阈值会插入该指引。
112
+ 固定 goal 策略允许以任意语言推断 goal 意图,解释会话 resume/fork 后如何重新启用续行,并限制完成/阻塞声明;创建范围和更新前读取 ref 由工具定义说明。持久 paused 的 resume 会在执行时以 `GOAL_TOOL_RESUME_PAUSED` 拒绝;面向用户的 goal 控件拥有该转换。配置的阈值会插入该指引。
113
113
 
114
114
  ##### Goal 策略
115
115
 
116
116
  ```markdown
117
- Use goal tools for one long-running completion objective in the current session. create_goal may infer goal intent from a direct human request in any language; do not create a goal for routine single-turn work. Call get_goal before update_goal and copy its exact goal_id and revision. After session resume or fork, an active goal is disarmed: when a human asks to continue or resume in any wording or language, use update_goal action resume to rearm it. Mark complete only when the objective is actually achieved. Mark blocked only after the same blocking condition persists for at least 3 consecutive goal rounds, and report that concrete condition in blocked_reason; difficulty, uncertainty, or useful remaining work is not blocked.
117
+ create_goal may infer goal intent from a direct human request in any language. After session resume or fork, an active goal is disarmed: when a human asks to continue or resume in any wording or language, use update_goal action resume to rearm it. Mark complete only when the objective is actually achieved. Mark blocked only after the same blocking condition persists for at least 3 consecutive goal rounds, and report that concrete condition in blocked_reason; difficulty, uncertainty, or useful remaining work is not blocked.
118
118
  ```
119
119
 
120
120
  #### Token 影响
package/lib/index.js CHANGED
@@ -120,8 +120,8 @@ const UPDATE_ACTIONS = [
120
120
  "complete",
121
121
  "blocked"
122
122
  ];
123
- const CREATE_DESCRIPTION = "Create one persisted same-session completion goal when the current direct human request is a long-running objective that should continue across autonomous goal rounds. You may infer that intent without requiring the user to say \"create a goal\". Do not use this for trivial single-turn work. Execution rejects non-human and subagent authority.";
124
- const GET_DESCRIPTION = "Read the current same-session goal, including its exact id/revision, objective, phase, completed continuation rounds, round limit, blocker reason when present, and whether another continuation is armed. Call this before updating a goal.";
123
+ const CREATE_DESCRIPTION = "Create a persisted goal that keeps this session working across automatic continuation rounds. Use it when the direct human request is a long-running objective, even if the user did not say \"goal\"; not for single-turn work.";
124
+ const GET_DESCRIPTION = "Read the current session goal, including the id and revision that update_goal requires.";
125
125
  const GOAL_VALUE_SCHEMA = { oneOf: [{
126
126
  type: "object",
127
127
  additionalProperties: false,
@@ -193,7 +193,7 @@ const GOAL_VALUE_SCHEMA = { oneOf: [{
193
193
  }] };
194
194
  /** Render policy guidance with its deployment-selected blocked threshold. */
195
195
  function guidance(blockedAfter) {
196
- return `Use goal tools for one long-running completion objective in the current session. create_goal may infer goal intent from a direct human request in any language; do not create a goal for routine single-turn work. Call get_goal before update_goal and copy its exact goal_id and revision. After session resume or fork, an active goal is disarmed: when a human asks to continue or resume in any wording or language, use update_goal action resume to rearm it. Mark complete only when the objective is actually achieved. Mark blocked only after the same blocking condition persists for at least ${blockedAfter} consecutive goal rounds, and report that concrete condition in blocked_reason; difficulty, uncertainty, or useful remaining work is not blocked.`;
196
+ return `create_goal may infer goal intent from a direct human request in any language. After session resume or fork, an active goal is disarmed: when a human asks to continue or resume in any wording or language, use update_goal action resume to rearm it. Mark complete only when the objective is actually achieved. Mark blocked only after the same blocking condition persists for at least ${blockedAfter} consecutive goal rounds, and report that concrete condition in blocked_reason; difficulty, uncertainty, or useful remaining work is not blocked.`;
197
197
  }
198
198
  /** Validate config even when apply is called directly outside Loader normalization. */
199
199
  function resolveConfig(config) {
@@ -300,7 +300,7 @@ function apply(ctx, config) {
300
300
  }));
301
301
  ctx.tools.register(defineTool({
302
302
  name: "update_goal",
303
- description: "Update the exact current goal revision. edit, pause, and resume require a direct top-level human request. During an automatic continuation of the current goal, complete and blocked are also allowed. blocked is rejected before the configured minimum round count; the model remains responsible for judging that the same condition persisted across those rounds and must explain it in blocked_reason.",
303
+ description: "Update the current goal.",
304
304
  parameters: {
305
305
  goal_id: {
306
306
  type: "string",
@@ -316,7 +316,7 @@ function apply(ctx, config) {
316
316
  type: "string",
317
317
  required: true,
318
318
  enum: UPDATE_ACTIONS,
319
- description: "edit | pause | resume | complete | blocked"
319
+ description: "edit, pause, and resume require a direct top-level human request. complete and blocked are also allowed during an automatic continuation of this goal; blocked is rejected before the configured minimum round count."
320
320
  },
321
321
  objective: {
322
322
  type: "string",
@@ -328,7 +328,7 @@ function apply(ctx, config) {
328
328
  },
329
329
  blocked_reason: {
330
330
  type: "string",
331
- description: "Concrete blocking condition; required only with action blocked."
331
+ description: "Required only with action blocked: the concrete condition that persisted across rounds and blocks progress."
332
332
  }
333
333
  },
334
334
  output: GOAL_OUTPUT,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deepseek-ai/dsh-tool-goal",
3
3
  "description": "Model-facing same-session goal tools with execution-time authority checks",
4
- "version": "0.1.7-alpha.2",
4
+ "version": "0.1.7-rc.2",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -27,29 +27,29 @@
27
27
  ],
28
28
  "license": "MIT",
29
29
  "peerDependencies": {
30
- "@deepseek-ai/dsh-agent": "0.1.7-alpha.2",
31
- "@deepseek-ai/dsh-goal": "0.1.7-alpha.2",
32
- "@deepseek-ai/dsh-llm": "0.1.7-alpha.2",
33
- "@deepseek-ai/dsh-system-prompt": "0.1.7-alpha.2",
34
- "@deepseek-ai/dsh-session": "0.1.7-alpha.2",
35
- "@deepseek-ai/dsh-tools": "0.1.7-alpha.2",
36
- "@deepseek-ai/dsh-session-projection": "0.1.7-alpha.2",
37
- "@deepseek-ai/cordis": "~4.0.4"
30
+ "@deepseek-ai/dsh-agent": "0.1.7-rc.2",
31
+ "@deepseek-ai/dsh-goal": "0.1.7-rc.2",
32
+ "@deepseek-ai/dsh-session": "0.1.7-rc.2",
33
+ "@deepseek-ai/dsh-llm": "0.1.7-rc.2",
34
+ "@deepseek-ai/dsh-system-prompt": "0.1.7-rc.2",
35
+ "@deepseek-ai/dsh-tools": "0.1.7-rc.2",
36
+ "@deepseek-ai/cordis": "~4.0.4",
37
+ "@deepseek-ai/dsh-session-projection": "0.1.7-rc.2"
38
38
  },
39
39
  "dependencies": {
40
40
  "@deepseek-ai/schemastery": "~3.18.4"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@deepseek-ai/cordis-plugin-loader": "~1.0.5",
44
- "@deepseek-ai/dsh-agent": "0.1.7-alpha.2",
45
- "@deepseek-ai/dsh-agent-loop": "0.1.7-alpha.2",
46
- "@deepseek-ai/dsh-agent-loop-testkit": "0.1.7-alpha.2",
47
- "@deepseek-ai/dsh-goal": "0.1.7-alpha.2",
48
- "@deepseek-ai/dsh-system-prompt": "0.1.7-alpha.2",
49
- "@deepseek-ai/dsh-tools": "0.1.7-alpha.2",
50
- "@deepseek-ai/cordis": "~4.0.4",
51
- "@deepseek-ai/dsh-session-projection": "0.1.7-alpha.2",
52
- "@deepseek-ai/dsh-llm": "0.1.7-alpha.2",
53
- "@deepseek-ai/dsh-session": "0.1.7-alpha.2"
44
+ "@deepseek-ai/dsh-agent-loop-testkit": "0.1.7-rc.2",
45
+ "@deepseek-ai/dsh-agent": "0.1.7-rc.2",
46
+ "@deepseek-ai/dsh-llm": "0.1.7-rc.2",
47
+ "@deepseek-ai/dsh-agent-loop": "0.1.7-rc.2",
48
+ "@deepseek-ai/dsh-session": "0.1.7-rc.2",
49
+ "@deepseek-ai/dsh-system-prompt": "0.1.7-rc.2",
50
+ "@deepseek-ai/dsh-goal": "0.1.7-rc.2",
51
+ "@deepseek-ai/dsh-session-projection": "0.1.7-rc.2",
52
+ "@deepseek-ai/dsh-tools": "0.1.7-rc.2",
53
+ "@deepseek-ai/cordis": "~4.0.4"
54
54
  }
55
55
  }