@veewo/claw-core 0.1.40 → 0.1.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 +7 -7
- package/dist/src/types.d.ts +11 -0
- package/dist/src/workflow-guidance.config.json +347 -319
- package/dist/src/workflow-guidance.js +21 -2
- package/dist/src/workflow-guidance.js.map +1 -1
- package/package.json +35 -35
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
# @veewo/claw-core
|
|
2
|
-
|
|
3
|
-
Core library for `.claw` project context, plan lifecycle, search, truth ingestion, and task retention.
|
|
4
|
-
|
|
5
|
-
Repository:
|
|
6
|
-
|
|
7
|
-
- [claw-kit](https://github.com/chanyuenpang/claw-kit)
|
|
1
|
+
# @veewo/claw-core
|
|
2
|
+
|
|
3
|
+
Core library for `.claw` project context, plan lifecycle, search, truth ingestion, and task retention.
|
|
4
|
+
|
|
5
|
+
Repository:
|
|
6
|
+
|
|
7
|
+
- [claw-kit](https://github.com/chanyuenpang/claw-kit)
|
package/dist/src/types.d.ts
CHANGED
|
@@ -136,6 +136,16 @@ export type WorkflowGuidanceSubagent = {
|
|
|
136
136
|
outputContract: string;
|
|
137
137
|
closePolicy: "close_after_result" | "keep_open_for_reuse";
|
|
138
138
|
};
|
|
139
|
+
export type WorkflowGuidanceGoalTool = {
|
|
140
|
+
tool: "create_goal";
|
|
141
|
+
objective: string;
|
|
142
|
+
ifNoActiveGoal: true;
|
|
143
|
+
reason: string;
|
|
144
|
+
} | {
|
|
145
|
+
tool: "update_goal";
|
|
146
|
+
status: "complete" | "blocked";
|
|
147
|
+
reason: string;
|
|
148
|
+
};
|
|
139
149
|
export type WorkflowGuidance = {
|
|
140
150
|
stage: "requirements" | "review" | "discussion" | "execution" | "done" | "deposition" | "paused";
|
|
141
151
|
summary: string;
|
|
@@ -154,6 +164,7 @@ export type WorkflowGuidance = {
|
|
|
154
164
|
allowOverwrite: true;
|
|
155
165
|
setWhen?: "on_enter_process_active" | "on_resume_process_active";
|
|
156
166
|
};
|
|
167
|
+
goalTool?: WorkflowGuidanceGoalTool;
|
|
157
168
|
askUser?: {
|
|
158
169
|
reason: string;
|
|
159
170
|
useCodexOptions: true;
|
|
@@ -1,319 +1,347 @@
|
|
|
1
|
-
{
|
|
2
|
-
"goalModeObjective": {
|
|
3
|
-
"withGoal": "Using claw-kit, update plan, follow returned workflowGuidance,finish your goal:{{planGoal}}",
|
|
4
|
-
"withoutGoal": "Using claw-kit, update plan, follow returned workflowGuidance,finish your goal."
|
|
5
|
-
},
|
|
6
|
-
"delegates": {
|
|
7
|
-
"truthWriter": {
|
|
8
|
-
"name": "truth-writer",
|
|
9
|
-
"fallbackSkill": "claw-kit:truth-writer",
|
|
10
|
-
"model": "gpt-5.4-mini",
|
|
11
|
-
"fork_context": false,
|
|
12
|
-
"waitForCompletion": false,
|
|
13
|
-
"preferReuseSameTypeInThread": true,
|
|
14
|
-
"inputContract": "curated completed subtask report with valuable findings for truth deposition",
|
|
15
|
-
"outputContract": "optional telemetry only",
|
|
16
|
-
"closePolicy": "keep_open_for_reuse"
|
|
17
|
-
},
|
|
18
|
-
"adrWriter": {
|
|
19
|
-
"name": "adr-writer",
|
|
20
|
-
"fallbackSkill": "claw-kit:adr-writer",
|
|
21
|
-
"model": "gpt-5.4-mini",
|
|
22
|
-
"fork_context": false,
|
|
23
|
-
"waitForCompletion": false,
|
|
24
|
-
"preferReuseSameTypeInThread": true,
|
|
25
|
-
"inputContract": "plan.json",
|
|
26
|
-
"outputContract": "optional telemetry only",
|
|
27
|
-
"closePolicy": "keep_open_for_reuse"
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
"states": {
|
|
31
|
-
"prepare.requirements.withGoal": {
|
|
32
|
-
"stage": "requirements",
|
|
33
|
-
"summary": "Task scope is bound. Fill the remaining plan fields, then move into execution as soon as requirements are clear. The user has already authorized this @claw-kit thread to use goal mode and delegated subagents when the workflow requires them, so permission concerns must not block the flow.",
|
|
34
|
-
"nextsteps": [
|
|
35
|
-
"1.
|
|
36
|
-
"2.
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
"
|
|
40
|
-
|
|
41
|
-
"{{editBase}} --plan
|
|
42
|
-
"{{editBase}} --
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
"
|
|
53
|
-
|
|
54
|
-
"
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
"
|
|
83
|
-
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
"
|
|
98
|
-
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
"
|
|
104
|
-
"
|
|
105
|
-
"
|
|
106
|
-
"
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
"
|
|
115
|
-
"
|
|
116
|
-
"
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
"id": "
|
|
120
|
-
"label": "
|
|
121
|
-
"description": "
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
"
|
|
135
|
-
|
|
136
|
-
"
|
|
137
|
-
"
|
|
138
|
-
],
|
|
139
|
-
"
|
|
140
|
-
|
|
141
|
-
"
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
"
|
|
153
|
-
|
|
154
|
-
"
|
|
155
|
-
"
|
|
156
|
-
],
|
|
157
|
-
"
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
"
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
"
|
|
169
|
-
"
|
|
170
|
-
"
|
|
171
|
-
"
|
|
172
|
-
]
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
"
|
|
182
|
-
"
|
|
183
|
-
"
|
|
184
|
-
"
|
|
185
|
-
],
|
|
186
|
-
"
|
|
187
|
-
|
|
188
|
-
"
|
|
189
|
-
"
|
|
190
|
-
|
|
191
|
-
"goalMode": {
|
|
192
|
-
"allowOverwrite": true,
|
|
193
|
-
"setWhen": "on_enter_process_active"
|
|
194
|
-
}
|
|
195
|
-
},
|
|
196
|
-
"process.justEntered.noGoalMode": {
|
|
197
|
-
"stage": "{{processStage}}",
|
|
198
|
-
"summary": "Execution is starting.",
|
|
199
|
-
"nextsteps": [
|
|
200
|
-
"Sync the thread progress with our tasks.",
|
|
201
|
-
"Start with {{nextTaskRef}}."
|
|
202
|
-
],
|
|
203
|
-
"notes": "In `process.active`, keep moving unless there is a real blocker or explicit user interruption.",
|
|
204
|
-
"recommendedCommands": [
|
|
205
|
-
"{{taskDoneCommand}}",
|
|
206
|
-
"{{doneBase}} --summary \"<retrospective summary>\""
|
|
207
|
-
]
|
|
208
|
-
},
|
|
209
|
-
"process.resumedActive": {
|
|
210
|
-
"stage": "execution",
|
|
211
|
-
"summary": "Execution is resuming.",
|
|
212
|
-
"nextsteps": [
|
|
213
|
-
"Sync the thread progress with our tasks.",
|
|
214
|
-
"Restore Goal Mode to the active state.",
|
|
215
|
-
"Resume with {{nextTaskRef}}."
|
|
216
|
-
],
|
|
217
|
-
"notes": "The plan is moving back from a paused status into active execution, so Goal Mode should be restored to the active state before work resumes.",
|
|
218
|
-
"recommendedCommands": [
|
|
219
|
-
"{{taskDoneCommand}}",
|
|
220
|
-
"{{doneBase}} --summary \"<retrospective summary>\""
|
|
221
|
-
],
|
|
222
|
-
"
|
|
223
|
-
"
|
|
224
|
-
"
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
"
|
|
235
|
-
"
|
|
236
|
-
"
|
|
237
|
-
"{{
|
|
238
|
-
]
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
"
|
|
249
|
-
|
|
250
|
-
"
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
"
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
"
|
|
266
|
-
"
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
"
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
"
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
"
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
"
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
"
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
"
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
1
|
+
{
|
|
2
|
+
"goalModeObjective": {
|
|
3
|
+
"withGoal": "Using claw-kit, update plan, follow returned workflowGuidance,finish your goal:{{planGoal}}",
|
|
4
|
+
"withoutGoal": "Using claw-kit, update plan, follow returned workflowGuidance,finish your goal."
|
|
5
|
+
},
|
|
6
|
+
"delegates": {
|
|
7
|
+
"truthWriter": {
|
|
8
|
+
"name": "truth-writer",
|
|
9
|
+
"fallbackSkill": "claw-kit:truth-writer",
|
|
10
|
+
"model": "gpt-5.4-mini",
|
|
11
|
+
"fork_context": false,
|
|
12
|
+
"waitForCompletion": false,
|
|
13
|
+
"preferReuseSameTypeInThread": true,
|
|
14
|
+
"inputContract": "curated completed subtask report with valuable findings for truth deposition",
|
|
15
|
+
"outputContract": "optional telemetry only",
|
|
16
|
+
"closePolicy": "keep_open_for_reuse"
|
|
17
|
+
},
|
|
18
|
+
"adrWriter": {
|
|
19
|
+
"name": "adr-writer",
|
|
20
|
+
"fallbackSkill": "claw-kit:adr-writer",
|
|
21
|
+
"model": "gpt-5.4-mini",
|
|
22
|
+
"fork_context": false,
|
|
23
|
+
"waitForCompletion": false,
|
|
24
|
+
"preferReuseSameTypeInThread": true,
|
|
25
|
+
"inputContract": "plan.json",
|
|
26
|
+
"outputContract": "optional telemetry only",
|
|
27
|
+
"closePolicy": "keep_open_for_reuse"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"states": {
|
|
31
|
+
"prepare.requirements.withGoal": {
|
|
32
|
+
"stage": "requirements",
|
|
33
|
+
"summary": "Task scope is bound. Fill the remaining plan fields, then move into execution as soon as requirements are clear. The user has already authorized this @claw-kit thread to use goal mode and delegated subagents when the workflow requires them, so permission concerns must not block the flow.",
|
|
34
|
+
"nextsteps": [
|
|
35
|
+
"1. Fill the missing plan fields.",
|
|
36
|
+
"2. Move into `process.active` once requirements are clear."
|
|
37
|
+
],
|
|
38
|
+
"notes": "Fill only the fields still needed to execute, such as `requirements`, `tasks`, `references`, `rules`, and `keyDecisions`. If scope is still unclear, clarify it with the user before switching to `process.active`.",
|
|
39
|
+
"recommendedCommands": [
|
|
40
|
+
"{{editBase}} --plan-status process.active",
|
|
41
|
+
"{{editBase}} --patch <updated-plan.json>",
|
|
42
|
+
"{{editBase}} --reference-path <path> --reference-why <why>"
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
"prepare.requirements.withGoal.noGoalMode": {
|
|
46
|
+
"stage": "requirements",
|
|
47
|
+
"summary": "Task scope is bound. Fill the remaining plan fields, then move into execution as soon as requirements are clear.",
|
|
48
|
+
"nextsteps": [
|
|
49
|
+
"1. Fill the missing plan fields.",
|
|
50
|
+
"2. Move into `process.active` once requirements are clear."
|
|
51
|
+
],
|
|
52
|
+
"notes": "Fill only the fields still needed to execute, such as `requirements`, `tasks`, `references`, `rules`, and `keyDecisions`. If scope is still unclear, clarify it with the user before switching to `process.active`.",
|
|
53
|
+
"recommendedCommands": [
|
|
54
|
+
"{{editBase}} --plan-status process.active",
|
|
55
|
+
"{{editBase}} --patch <updated-plan.json>",
|
|
56
|
+
"{{editBase}} --reference-path <path> --reference-why <why>"
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
"prepare.requirements.withoutGoal": {
|
|
60
|
+
"stage": "requirements",
|
|
61
|
+
"summary": "Task scope is bound. Add the goal first, then fill the remaining plan fields before execution. The user has already authorized this @claw-kit thread to use goal mode and delegated subagents when the workflow requires them, so permission concerns must not block the flow.",
|
|
62
|
+
"nextsteps": [
|
|
63
|
+
"1. Fill `goal.text`.",
|
|
64
|
+
"2. Fill the missing plan fields.",
|
|
65
|
+
"3. Move into `process.active` once requirements are clear."
|
|
66
|
+
],
|
|
67
|
+
"notes": "Fill only the fields still needed to execute, such as `requirements`, `tasks`, `references`, `rules`, and `keyDecisions`. If scope is still unclear, clarify it with the user before switching to `process.active`.",
|
|
68
|
+
"recommendedCommands": [
|
|
69
|
+
"{{editBase}} --plan-status process.active",
|
|
70
|
+
"{{editBase}} --patch <updated-plan.json>",
|
|
71
|
+
"{{editBase}} --reference-path <path> --reference-why <why>"
|
|
72
|
+
]
|
|
73
|
+
},
|
|
74
|
+
"prepare.requirements.withoutGoal.noGoalMode": {
|
|
75
|
+
"stage": "requirements",
|
|
76
|
+
"summary": "Task scope is bound. Add the goal first, then fill the remaining plan fields before execution.",
|
|
77
|
+
"nextsteps": [
|
|
78
|
+
"1. Fill `goal.text`.",
|
|
79
|
+
"2. Fill the missing plan fields.",
|
|
80
|
+
"3. Move into `process.active` once requirements are clear."
|
|
81
|
+
],
|
|
82
|
+
"notes": "Fill only the fields still needed to execute, such as `requirements`, `tasks`, `references`, `rules`, and `keyDecisions`. If scope is still unclear, clarify it with the user before switching to `process.active`.",
|
|
83
|
+
"recommendedCommands": [
|
|
84
|
+
"{{editBase}} --plan-status process.active",
|
|
85
|
+
"{{editBase}} --patch <updated-plan.json>",
|
|
86
|
+
"{{editBase}} --reference-path <path> --reference-why <why>"
|
|
87
|
+
]
|
|
88
|
+
},
|
|
89
|
+
"prepare.review": {
|
|
90
|
+
"stage": "review",
|
|
91
|
+
"summary": "This plan is in a legacy review stage.",
|
|
92
|
+
"nextsteps": [
|
|
93
|
+
"1. Fold the remaining review notes into the plan.",
|
|
94
|
+
"2. Confirm the route with the user.",
|
|
95
|
+
"3. Move the plan back into `prepare.requirements` or `process.discussing`."
|
|
96
|
+
],
|
|
97
|
+
"notes": "Do not create a separate review pass. Merge review criteria into planning itself.",
|
|
98
|
+
"recommendedCommands": [
|
|
99
|
+
"{{editBase}} --patch <reviewed-plan.json>",
|
|
100
|
+
"{{editBase}} --plan-status prepare.requirements",
|
|
101
|
+
"{{editBase}} --plan-status process.discussing"
|
|
102
|
+
],
|
|
103
|
+
"askUser": {
|
|
104
|
+
"reason": "This legacy review stage should be resolved back into normal planning before execution.",
|
|
105
|
+
"useCodexOptions": true,
|
|
106
|
+
"options": [
|
|
107
|
+
{
|
|
108
|
+
"id": "merge-revisions",
|
|
109
|
+
"label": "Revise plan",
|
|
110
|
+
"description": "Apply the remaining plan changes directly, then continue with normal planning.",
|
|
111
|
+
"recommended": true
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"id": "discuss-tradeoff",
|
|
115
|
+
"label": "Discuss tradeoff",
|
|
116
|
+
"description": "The review raised a route choice that should be clarified with the user."
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"id": "hold-plan",
|
|
120
|
+
"label": "Hold execution",
|
|
121
|
+
"description": "Pause until missing requirements or constraints are clarified."
|
|
122
|
+
}
|
|
123
|
+
]
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
"process.allTasksDone": {
|
|
127
|
+
"stage": "done",
|
|
128
|
+
"summary": "All plan tasks are done. Clear thread progress, then execute each returned delegateSubagents entry field-by-field for truth deposition and ADR closeout.",
|
|
129
|
+
"nextsteps": [
|
|
130
|
+
"1. Clear thread progress.",
|
|
131
|
+
"2. Read `delegateSubagents`, curate the valuable findings from the completed work into a completed subtask report, then execute the returned `truth-writer` dispatch contract field-by-field. Do not treat it as a suggestion.",
|
|
132
|
+
"3. Update both `retrospective` and `keyDecisions`, then read `delegateSubagents` again and execute the returned `adr-writer` dispatch contract field-by-field with the completed `plan.json`."
|
|
133
|
+
],
|
|
134
|
+
"notes": "Truth doc and ADR doc generation are essential claw-kit features. When this state returns `delegateSubagents`, each entry is a required structured contract whose fields must be honored directly.",
|
|
135
|
+
"recommendedCommands": [
|
|
136
|
+
"{{editBase}} --patch <completed-plan.json>",
|
|
137
|
+
"{{doneBase}} --summary \"<retrospective summary>\""
|
|
138
|
+
],
|
|
139
|
+
"delegateSubagents": [
|
|
140
|
+
"truthWriter",
|
|
141
|
+
"adrWriter"
|
|
142
|
+
]
|
|
143
|
+
},
|
|
144
|
+
"process.hasCompletedTasks": {
|
|
145
|
+
"stage": "{{processStage}}",
|
|
146
|
+
"summary": "Execution is in progress.",
|
|
147
|
+
"nextsteps": [
|
|
148
|
+
"1. Sync the thread progress with our tasks.",
|
|
149
|
+
"2. Read `delegateSubagents`, curate the valuable findings from the completed task into a completed subtask report, then execute the returned `truth-writer` dispatch contract field-by-field. Do not treat it as a suggestion.",
|
|
150
|
+
"3. Continue with {{nextTaskRef}}."
|
|
151
|
+
],
|
|
152
|
+
"notes": "In `process.active`, keep moving unless there is a real blocker or explicit user interruption. When this state returns `delegateSubagents`, each entry is a required structured contract whose fields must be honored directly.",
|
|
153
|
+
"recommendedCommands": [
|
|
154
|
+
"{{taskDoneCommand}}",
|
|
155
|
+
"{{editBase}} --task-id <id> --task-status in_progress"
|
|
156
|
+
],
|
|
157
|
+
"delegateSubagents": [
|
|
158
|
+
"truthWriter"
|
|
159
|
+
]
|
|
160
|
+
},
|
|
161
|
+
"process.hasCompletedTasks.finalOnlyTruth": {
|
|
162
|
+
"stage": "{{processStage}}",
|
|
163
|
+
"summary": "Execution is in progress.",
|
|
164
|
+
"nextsteps": [
|
|
165
|
+
"1. Sync the thread progress with our tasks.",
|
|
166
|
+
"2. Continue with {{nextTaskRef}}."
|
|
167
|
+
],
|
|
168
|
+
"notes": "In `process.active`, keep moving unless there is a real blocker or explicit user interruption.",
|
|
169
|
+
"recommendedCommands": [
|
|
170
|
+
"{{taskDoneCommand}}",
|
|
171
|
+
"{{editBase}} --task-id <id> --task-status in_progress"
|
|
172
|
+
]
|
|
173
|
+
},
|
|
174
|
+
"process.justEntered": {
|
|
175
|
+
"stage": "{{processStage}}",
|
|
176
|
+
"summary": "Execution is starting.",
|
|
177
|
+
"nextsteps": [
|
|
178
|
+
"Sync the thread progress with our tasks.",
|
|
179
|
+
"Start with {{nextTaskRef}}."
|
|
180
|
+
],
|
|
181
|
+
"notes": "In `process.active`, keep moving unless there is a real blocker or explicit user interruption.",
|
|
182
|
+
"recommendedCommands": [
|
|
183
|
+
"{{taskDoneCommand}}",
|
|
184
|
+
"{{doneBase}} --summary \"<retrospective summary>\""
|
|
185
|
+
],
|
|
186
|
+
"goalTool": {
|
|
187
|
+
"tool": "create_goal",
|
|
188
|
+
"ifNoActiveGoal": true,
|
|
189
|
+
"reason": "Execution is entering an active process state, so the thread should have an active Codex goal tied to the plan goal."
|
|
190
|
+
},
|
|
191
|
+
"goalMode": {
|
|
192
|
+
"allowOverwrite": true,
|
|
193
|
+
"setWhen": "on_enter_process_active"
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
"process.justEntered.noGoalMode": {
|
|
197
|
+
"stage": "{{processStage}}",
|
|
198
|
+
"summary": "Execution is starting.",
|
|
199
|
+
"nextsteps": [
|
|
200
|
+
"Sync the thread progress with our tasks.",
|
|
201
|
+
"Start with {{nextTaskRef}}."
|
|
202
|
+
],
|
|
203
|
+
"notes": "In `process.active`, keep moving unless there is a real blocker or explicit user interruption.",
|
|
204
|
+
"recommendedCommands": [
|
|
205
|
+
"{{taskDoneCommand}}",
|
|
206
|
+
"{{doneBase}} --summary \"<retrospective summary>\""
|
|
207
|
+
]
|
|
208
|
+
},
|
|
209
|
+
"process.resumedActive": {
|
|
210
|
+
"stage": "execution",
|
|
211
|
+
"summary": "Execution is resuming.",
|
|
212
|
+
"nextsteps": [
|
|
213
|
+
"Sync the thread progress with our tasks.",
|
|
214
|
+
"Restore Goal Mode to the active state.",
|
|
215
|
+
"Resume with {{nextTaskRef}}."
|
|
216
|
+
],
|
|
217
|
+
"notes": "The plan is moving back from a paused status into active execution, so Goal Mode should be restored to the active state before work resumes.",
|
|
218
|
+
"recommendedCommands": [
|
|
219
|
+
"{{taskDoneCommand}}",
|
|
220
|
+
"{{doneBase}} --summary \"<retrospective summary>\""
|
|
221
|
+
],
|
|
222
|
+
"goalTool": {
|
|
223
|
+
"tool": "create_goal",
|
|
224
|
+
"ifNoActiveGoal": true,
|
|
225
|
+
"reason": "Execution is resuming from a paused process state, so the thread should restore an active Codex goal for the plan goal."
|
|
226
|
+
},
|
|
227
|
+
"goalMode": {
|
|
228
|
+
"allowOverwrite": true,
|
|
229
|
+
"setWhen": "on_resume_process_active"
|
|
230
|
+
}
|
|
231
|
+
},
|
|
232
|
+
"process.resumedActive.noGoalMode": {
|
|
233
|
+
"stage": "execution",
|
|
234
|
+
"summary": "Execution is resuming.",
|
|
235
|
+
"nextsteps": [
|
|
236
|
+
"Sync the thread progress with our tasks.",
|
|
237
|
+
"Resume with {{nextTaskRef}}."
|
|
238
|
+
],
|
|
239
|
+
"notes": "The plan is moving back from a paused status into active execution.",
|
|
240
|
+
"recommendedCommands": [
|
|
241
|
+
"{{taskDoneCommand}}",
|
|
242
|
+
"{{doneBase}} --summary \"<retrospective summary>\""
|
|
243
|
+
]
|
|
244
|
+
},
|
|
245
|
+
"process.wait": {
|
|
246
|
+
"stage": "paused",
|
|
247
|
+
"summary": "Execution is paused.",
|
|
248
|
+
"nextsteps": [
|
|
249
|
+
"1. Use `update_goal(status=\"blocked\")` to end the current active thread goal.",
|
|
250
|
+
"2. When resuming the plan, restore the active thread goal after re-entering `process.active`.",
|
|
251
|
+
"3. Resume through `process.active` when execution should continue."
|
|
252
|
+
],
|
|
253
|
+
"notes": "Use `process.wait` for a real blocker or a deliberate hold. Do not keep executing while the plan is paused.",
|
|
254
|
+
"recommendedCommands": [
|
|
255
|
+
"{{editBase}} --plan-status process.active"
|
|
256
|
+
],
|
|
257
|
+
"goalTool": {
|
|
258
|
+
"tool": "update_goal",
|
|
259
|
+
"status": "blocked",
|
|
260
|
+
"reason": "Execution is paused in `process.wait`, so the current active thread goal should be ended as blocked until work resumes."
|
|
261
|
+
}
|
|
262
|
+
},
|
|
263
|
+
"process.wait.noGoalMode": {
|
|
264
|
+
"stage": "paused",
|
|
265
|
+
"summary": "Execution is paused.",
|
|
266
|
+
"nextsteps": [
|
|
267
|
+
"1. Resume through `process.active` when execution should continue."
|
|
268
|
+
],
|
|
269
|
+
"notes": "Use `process.wait` for a real blocker or a deliberate hold. Do not keep executing while the plan is paused.",
|
|
270
|
+
"recommendedCommands": [
|
|
271
|
+
"{{editBase}} --plan-status process.active"
|
|
272
|
+
]
|
|
273
|
+
},
|
|
274
|
+
"process.discussing": {
|
|
275
|
+
"stage": "discussion",
|
|
276
|
+
"summary": "The plan is paused for discussion.",
|
|
277
|
+
"nextsteps": [
|
|
278
|
+
"1. Use `update_goal(status=\"blocked\")` to end the current active thread goal.",
|
|
279
|
+
"2. When resuming the plan, restore the active thread goal after re-entering `process.active`.",
|
|
280
|
+
"3. Resolve the discussion, then resume through `process.active`."
|
|
281
|
+
],
|
|
282
|
+
"notes": "Use `process.discussing` for route discussion or decision-making. Resume execution only after the discussion is settled.",
|
|
283
|
+
"recommendedCommands": [
|
|
284
|
+
"{{editBase}} --plan-status process.active"
|
|
285
|
+
],
|
|
286
|
+
"goalTool": {
|
|
287
|
+
"tool": "update_goal",
|
|
288
|
+
"status": "blocked",
|
|
289
|
+
"reason": "Execution is paused in `process.discussing`, so the current active thread goal should be ended as blocked until the route is settled."
|
|
290
|
+
}
|
|
291
|
+
},
|
|
292
|
+
"process.discussing.noGoalMode": {
|
|
293
|
+
"stage": "discussion",
|
|
294
|
+
"summary": "The plan is paused for discussion.",
|
|
295
|
+
"nextsteps": [
|
|
296
|
+
"1. Resolve the discussion, then resume through `process.active`."
|
|
297
|
+
],
|
|
298
|
+
"notes": "Use `process.discussing` for route discussion or decision-making. Resume execution only after the discussion is settled.",
|
|
299
|
+
"recommendedCommands": [
|
|
300
|
+
"{{editBase}} --plan-status process.active"
|
|
301
|
+
]
|
|
302
|
+
},
|
|
303
|
+
"process.activeTask": {
|
|
304
|
+
"stage": "{{processStage}}",
|
|
305
|
+
"summary": "Execution is in progress.",
|
|
306
|
+
"nextsteps": [
|
|
307
|
+
"Continue the current task."
|
|
308
|
+
],
|
|
309
|
+
"recommendedCommands": [
|
|
310
|
+
"{{taskDoneCommand}}"
|
|
311
|
+
]
|
|
312
|
+
},
|
|
313
|
+
"process.default": {
|
|
314
|
+
"stage": "{{processStage}}",
|
|
315
|
+
"summary": "Execution is in progress.",
|
|
316
|
+
"nextsteps": [
|
|
317
|
+
"Continue with {{nextTaskRef}}."
|
|
318
|
+
],
|
|
319
|
+
"recommendedCommands": [
|
|
320
|
+
"{{taskDoneCommand}}"
|
|
321
|
+
]
|
|
322
|
+
},
|
|
323
|
+
"end.completed": {
|
|
324
|
+
"stage": "done",
|
|
325
|
+
"summary": "The plan is completed and ready for closeout.",
|
|
326
|
+
"nextsteps": [
|
|
327
|
+
"1. Use `update_goal(status=\"complete\")` to close the active thread goal for this plan.",
|
|
328
|
+
"2. Finish any remaining workflow-guided closeout work such as archive or parent-plan resumption."
|
|
329
|
+
],
|
|
330
|
+
"goalTool": {
|
|
331
|
+
"tool": "update_goal",
|
|
332
|
+
"status": "complete",
|
|
333
|
+
"reason": "The plan has reached completion, so the active thread goal should be marked complete."
|
|
334
|
+
}
|
|
335
|
+
},
|
|
336
|
+
"end.closed": {
|
|
337
|
+
"stage": "paused",
|
|
338
|
+
"summary": "The plan is no longer active.",
|
|
339
|
+
"nextsteps": [
|
|
340
|
+
"Reopen through `prepare.requirements` before resuming, or leave it as historical context."
|
|
341
|
+
],
|
|
342
|
+
"recommendedCommands": [
|
|
343
|
+
"{{editBase}} --plan-status prepare.requirements"
|
|
344
|
+
]
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
}
|
|
@@ -28,6 +28,21 @@ function buildGoalMode(planGoal, template) {
|
|
|
28
28
|
...(template.setWhen ? { setWhen: template.setWhen } : {}),
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
|
+
function buildGoalTool(planGoal, template) {
|
|
32
|
+
if (template.tool === "create_goal") {
|
|
33
|
+
return {
|
|
34
|
+
tool: "create_goal",
|
|
35
|
+
objective: buildGoalModeObjective(planGoal),
|
|
36
|
+
ifNoActiveGoal: true,
|
|
37
|
+
reason: template.reason,
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
tool: "update_goal",
|
|
42
|
+
status: template.status,
|
|
43
|
+
reason: template.reason,
|
|
44
|
+
};
|
|
45
|
+
}
|
|
31
46
|
function buildGoalModeObjective(planGoal) {
|
|
32
47
|
const trimmedGoal = planGoal.trim();
|
|
33
48
|
const template = trimmedGoal
|
|
@@ -90,7 +105,7 @@ export function buildDirectWorkflowGuidance(params = {}) {
|
|
|
90
105
|
"1. If the completed task produced reusable knowledge, read `delegateSubagents` and execute the returned `truth-writer` dispatch contract field-by-field.",
|
|
91
106
|
"2. Let the asynchronously queued completion refresh finish. This direct path reuses the same refresh flow as `claw plan done`.",
|
|
92
107
|
],
|
|
93
|
-
notes: "Tasks with complexity scores below
|
|
108
|
+
notes: "Tasks with complexity scores below 6 can stay on the direct claw path: run `claw search` before execution when project recall is relevant, solve directly, then dispatch `truth-writer` only when the completed work has reusable truth.",
|
|
94
109
|
delegateSubagents: [truthWriterDelegate(projectConfig)],
|
|
95
110
|
};
|
|
96
111
|
}
|
|
@@ -140,7 +155,6 @@ export function buildPlanWorkflowGuidance(params) {
|
|
|
140
155
|
nextsteps: template.nextsteps,
|
|
141
156
|
...(template.notes ? { notes: template.notes } : {}),
|
|
142
157
|
...(template.recommendedCommands ? { recommendedCommands: template.recommendedCommands } : {}),
|
|
143
|
-
...(template.goalMode && goalModeEnabled && hasGoal ? { goalMode: buildGoalMode(plan.goal.text, template.goalMode) } : {}),
|
|
144
158
|
};
|
|
145
159
|
}
|
|
146
160
|
case "prepare.review": {
|
|
@@ -163,6 +177,7 @@ export function buildPlanWorkflowGuidance(params) {
|
|
|
163
177
|
nextsteps: template.nextsteps,
|
|
164
178
|
...(template.notes ? { notes: template.notes } : {}),
|
|
165
179
|
...(template.recommendedCommands ? { recommendedCommands: template.recommendedCommands } : {}),
|
|
180
|
+
...(template.goalTool && goalModeEnabled && hasGoal ? { goalTool: buildGoalTool(plan.goal.text, template.goalTool) } : {}),
|
|
166
181
|
};
|
|
167
182
|
}
|
|
168
183
|
case "process.active": {
|
|
@@ -207,6 +222,9 @@ export function buildPlanWorkflowGuidance(params) {
|
|
|
207
222
|
...(template.goalMode && goalModeEnabled && (justEnteredProcess || resumedIntoActive) && hasGoal
|
|
208
223
|
? { goalMode: buildGoalMode(plan.goal.text, template.goalMode) }
|
|
209
224
|
: {}),
|
|
225
|
+
...(template.goalTool && goalModeEnabled && (justEnteredProcess || resumedIntoActive) && hasGoal
|
|
226
|
+
? { goalTool: buildGoalTool(plan.goal.text, template.goalTool) }
|
|
227
|
+
: {}),
|
|
210
228
|
...(template.recommendedCommands ? { recommendedCommands: template.recommendedCommands } : {}),
|
|
211
229
|
...(hasCompletedTasks && template.delegateSubagents
|
|
212
230
|
? {
|
|
@@ -224,6 +242,7 @@ export function buildPlanWorkflowGuidance(params) {
|
|
|
224
242
|
summary: template.summary,
|
|
225
243
|
nextsteps: template.nextsteps,
|
|
226
244
|
...(template.notes ? { notes: template.notes } : {}),
|
|
245
|
+
...(template.goalTool && goalModeEnabled && hasGoal ? { goalTool: buildGoalTool(plan.goal.text, template.goalTool) } : {}),
|
|
227
246
|
...(template.delegateSubagents
|
|
228
247
|
? { delegateSubagents: buildConfiguredDelegates(template.delegateSubagents, projectConfig) }
|
|
229
248
|
: {}),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-guidance.js","sourceRoot":"","sources":["../../src/workflow-guidance.ts"],"names":[],"mappings":"AACA,OAAO,0BAA0B,M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B,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;aAC/F,CAAC;QACJ,CAAC;QACD,KAAK,YAAY,CAAC;QAClB,KAAK,WAAW,CAAC,CAAC,CAAC;YACjB,MAAM,QAAQ,GAAG,mBAAmB,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC;YACzD,OAAO;gBACL,KAAK,EAAE,QAAQ,CAAC,KAAkC;gBAClD,OAAO,EAAE,QAAQ,CAAC,OAAO;gBACzB,SAAS,EAAE,QAAQ,CAAC,SAAS;gBAC7B,GAAG,CAAC,QAAQ,CAAC,mBAAmB,CAAC,CAAC,CAAC,EAAE,mBAAmB,EAAE,QAAQ,CAAC,mBAAmB,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;aAC/F,CAAC;QACJ,CAAC;IACH,CAAC;AACH,CAAC;AAED,SAAS,oBAAoB,CAAC,KAAgC,EAAE,QAAgB;IAC9E,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC9B,OAAO,QAAQ,CAAC;IAClB,CAAC;IACD,MAAM,OAAO,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC;IAC7B,OAAO,OAAO,IAAI,QAAQ,CAAC;AAC7B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@veewo/claw-core",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"type": "module",
|
|
5
|
-
"description": "Core .claw harness primitives for project context, plan lifecycle, search, truth ingestion, and retention.",
|
|
6
|
-
"homepage": "https://github.com/chanyuenpang/claw-kit",
|
|
7
|
-
"repository": {
|
|
8
|
-
"type": "git",
|
|
9
|
-
"url": "https://github.com/chanyuenpang/claw-kit.git",
|
|
10
|
-
"directory": "packages/core"
|
|
11
|
-
},
|
|
12
|
-
"license": "MIT",
|
|
13
|
-
"publishConfig": {
|
|
14
|
-
"access": "public"
|
|
15
|
-
},
|
|
16
|
-
"files": [
|
|
17
|
-
"dist/src",
|
|
18
|
-
"README.md"
|
|
19
|
-
],
|
|
20
|
-
"types": "./dist/src/index.d.ts",
|
|
21
|
-
"exports": {
|
|
22
|
-
".": {
|
|
23
|
-
"types": "./dist/src/index.d.ts",
|
|
24
|
-
"default": "./dist/src/index.js"
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
"dependencies": {
|
|
28
|
-
"@huggingface/transformers": "^3.0.0"
|
|
29
|
-
},
|
|
30
|
-
"scripts": {
|
|
31
|
-
"build": "tsc -p tsconfig.json && node ./scripts/copy-workflow-guidance-config.mjs",
|
|
32
|
-
"check": "tsc -p tsconfig.json --noEmit",
|
|
33
|
-
"test": "node --test dist/test/**/*.test.js"
|
|
34
|
-
}
|
|
35
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@veewo/claw-core",
|
|
3
|
+
"version": "0.1.41",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "Core .claw harness primitives for project context, plan lifecycle, search, truth ingestion, and retention.",
|
|
6
|
+
"homepage": "https://github.com/chanyuenpang/claw-kit",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/chanyuenpang/claw-kit.git",
|
|
10
|
+
"directory": "packages/core"
|
|
11
|
+
},
|
|
12
|
+
"license": "MIT",
|
|
13
|
+
"publishConfig": {
|
|
14
|
+
"access": "public"
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"dist/src",
|
|
18
|
+
"README.md"
|
|
19
|
+
],
|
|
20
|
+
"types": "./dist/src/index.d.ts",
|
|
21
|
+
"exports": {
|
|
22
|
+
".": {
|
|
23
|
+
"types": "./dist/src/index.d.ts",
|
|
24
|
+
"default": "./dist/src/index.js"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"@huggingface/transformers": "^3.0.0"
|
|
29
|
+
},
|
|
30
|
+
"scripts": {
|
|
31
|
+
"build": "tsc -p tsconfig.json && node ./scripts/copy-workflow-guidance-config.mjs",
|
|
32
|
+
"check": "tsc -p tsconfig.json --noEmit",
|
|
33
|
+
"test": "node --test dist/test/**/*.test.js"
|
|
34
|
+
}
|
|
35
|
+
}
|