@veewo/claw-core 0.1.90 → 0.1.92
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 +16 -16
- package/dist/src/context.js +1 -0
- package/dist/src/context.js.map +1 -1
- package/dist/src/embedding-config.d.ts +9 -0
- package/dist/src/embedding-config.js +21 -0
- package/dist/src/embedding-config.js.map +1 -0
- package/dist/src/init.js +1 -0
- package/dist/src/init.js.map +1 -1
- package/dist/src/knowledge-governance.d.ts +1 -0
- package/dist/src/knowledge-governance.js +5 -0
- package/dist/src/knowledge-governance.js.map +1 -1
- package/dist/src/plan-templates.d.ts +5 -2
- package/dist/src/plan-templates.js +35 -32
- package/dist/src/plan-templates.js.map +1 -1
- package/dist/src/plan.js +2 -0
- package/dist/src/plan.js.map +1 -1
- package/dist/src/project-check.js +3 -1
- package/dist/src/project-check.js.map +1 -1
- package/dist/src/project-config-defaults.d.ts +6 -0
- package/dist/src/project-config-defaults.js +5 -0
- package/dist/src/project-config-defaults.js.map +1 -0
- package/dist/src/templates/plans/default.js +1 -1
- package/dist/src/types.d.ts +1 -0
- package/dist/src/workflow-guidance.config.json +330 -330
- package/dist/src/workflow-guidance.js +1 -0
- package/dist/src/workflow-guidance.js.map +1 -1
- package/package.json +44 -44
|
@@ -1,251 +1,251 @@
|
|
|
1
|
-
{
|
|
2
|
-
"goalModeObjective": {
|
|
1
|
+
{
|
|
2
|
+
"goalModeObjective": {
|
|
3
3
|
"withGoal": "Follow the claw workflow guidance and finish your goal: {{planGoal}}",
|
|
4
4
|
"withoutGoal": "Follow the claw workflow guidance and finish your goal."
|
|
5
|
-
},
|
|
6
|
-
"planCreateRecall": {
|
|
7
|
-
"recommendedCommand": "claw search --query \"<topic>\""
|
|
8
|
-
},
|
|
9
|
-
"states": {
|
|
10
|
-
"prepare.requirements.withGoal": {
|
|
11
|
-
"stage": "requirements",
|
|
5
|
+
},
|
|
6
|
+
"planCreateRecall": {
|
|
7
|
+
"recommendedCommand": "claw search --query \"<topic>\""
|
|
8
|
+
},
|
|
9
|
+
"states": {
|
|
10
|
+
"prepare.requirements.withGoal": {
|
|
11
|
+
"stage": "requirements",
|
|
12
12
|
"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 when the workflow requires it, so permission concerns must not block the flow.",
|
|
13
|
-
"nextsteps": [
|
|
14
|
-
"1. Fill the missing plan fields.",
|
|
15
|
-
"2. Move into `process.active` once requirements are clear."
|
|
16
|
-
],
|
|
17
|
-
"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`.",
|
|
18
|
-
"commandHints": [
|
|
19
|
-
"{{editBase}} --status process.active",
|
|
20
|
-
"{{editBase}} --requirements \"<summary>\" --acceptance \"<criterion>\"",
|
|
21
|
-
"{{editBase}} --reference <path> --why \"<reason>\""
|
|
22
|
-
]
|
|
23
|
-
},
|
|
24
|
-
"prepare.requirements.withGoal.noGoalMode": {
|
|
25
|
-
"stage": "requirements",
|
|
26
|
-
"summary": "Task scope is bound. Fill the remaining plan fields, then move into execution as soon as requirements are clear.",
|
|
27
|
-
"nextsteps": [
|
|
28
|
-
"1. Fill the missing plan fields.",
|
|
29
|
-
"2. Move into `process.active` once requirements are clear."
|
|
30
|
-
],
|
|
31
|
-
"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`.",
|
|
32
|
-
"commandHints": [
|
|
33
|
-
"{{editBase}} --status process.active",
|
|
34
|
-
"{{editBase}} --requirements \"<summary>\" --acceptance \"<criterion>\"",
|
|
35
|
-
"{{editBase}} --reference <path> --why \"<reason>\""
|
|
36
|
-
]
|
|
37
|
-
},
|
|
38
|
-
"prepare.requirements.withoutGoal": {
|
|
39
|
-
"stage": "requirements",
|
|
13
|
+
"nextsteps": [
|
|
14
|
+
"1. Fill the missing plan fields.",
|
|
15
|
+
"2. Move into `process.active` once requirements are clear."
|
|
16
|
+
],
|
|
17
|
+
"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`.",
|
|
18
|
+
"commandHints": [
|
|
19
|
+
"{{editBase}} --status process.active",
|
|
20
|
+
"{{editBase}} --requirements \"<summary>\" --acceptance \"<criterion>\"",
|
|
21
|
+
"{{editBase}} --reference <path> --why \"<reason>\""
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
"prepare.requirements.withGoal.noGoalMode": {
|
|
25
|
+
"stage": "requirements",
|
|
26
|
+
"summary": "Task scope is bound. Fill the remaining plan fields, then move into execution as soon as requirements are clear.",
|
|
27
|
+
"nextsteps": [
|
|
28
|
+
"1. Fill the missing plan fields.",
|
|
29
|
+
"2. Move into `process.active` once requirements are clear."
|
|
30
|
+
],
|
|
31
|
+
"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`.",
|
|
32
|
+
"commandHints": [
|
|
33
|
+
"{{editBase}} --status process.active",
|
|
34
|
+
"{{editBase}} --requirements \"<summary>\" --acceptance \"<criterion>\"",
|
|
35
|
+
"{{editBase}} --reference <path> --why \"<reason>\""
|
|
36
|
+
]
|
|
37
|
+
},
|
|
38
|
+
"prepare.requirements.withoutGoal": {
|
|
39
|
+
"stage": "requirements",
|
|
40
40
|
"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 when the workflow requires it, so permission concerns must not block the flow.",
|
|
41
|
-
"nextsteps": [
|
|
42
|
-
"1. Fill `goal.text`.",
|
|
43
|
-
"2. Fill the missing plan fields.",
|
|
44
|
-
"3. Move into `process.active` once requirements are clear."
|
|
45
|
-
],
|
|
46
|
-
"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`.",
|
|
47
|
-
"commandHints": [
|
|
48
|
-
"{{editBase}} --status process.active",
|
|
49
|
-
"{{editBase}} --goal \"<goal>\" --requirements \"<summary>\" --acceptance \"<criterion>\"",
|
|
50
|
-
"{{editBase}} --reference <path> --why \"<reason>\""
|
|
51
|
-
]
|
|
52
|
-
},
|
|
53
|
-
"prepare.requirements.withoutGoal.noGoalMode": {
|
|
54
|
-
"stage": "requirements",
|
|
55
|
-
"summary": "Task scope is bound. Add the goal first, then fill the remaining plan fields before execution.",
|
|
56
|
-
"nextsteps": [
|
|
57
|
-
"1. Fill `goal.text`.",
|
|
58
|
-
"2. Fill the missing plan fields.",
|
|
59
|
-
"3. Move into `process.active` once requirements are clear."
|
|
60
|
-
],
|
|
61
|
-
"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`.",
|
|
62
|
-
"commandHints": [
|
|
63
|
-
"{{editBase}} --status process.active",
|
|
64
|
-
"{{editBase}} --goal \"<goal>\" --requirements \"<summary>\" --acceptance \"<criterion>\"",
|
|
65
|
-
"{{editBase}} --reference <path> --why \"<reason>\""
|
|
66
|
-
]
|
|
67
|
-
},
|
|
68
|
-
"prepare.review": {
|
|
69
|
-
"stage": "review",
|
|
70
|
-
"summary": "This plan is in a legacy review stage.",
|
|
71
|
-
"nextsteps": [
|
|
72
|
-
"1. Fold the remaining review notes into the plan.",
|
|
73
|
-
"2. Confirm the route with the user.",
|
|
74
|
-
"3. Move the plan back into `prepare.requirements` or `process.discussing`."
|
|
75
|
-
],
|
|
76
|
-
"notes": "Do not create a separate review pass. Merge review criteria into planning itself.",
|
|
77
|
-
"commandHints": [
|
|
78
|
-
"{{editBase}} --requirements \"<revised summary>\" --key-decision \"<confirmed decision>\"",
|
|
79
|
-
"{{editBase}} --status prepare.requirements",
|
|
80
|
-
"{{editBase}} --status process.discussing"
|
|
81
|
-
],
|
|
82
|
-
"askUser": {
|
|
83
|
-
"reason": "This legacy review stage should be resolved back into normal planning before execution.",
|
|
84
|
-
"useCodexOptions": true,
|
|
85
|
-
"options": [
|
|
86
|
-
{
|
|
87
|
-
"id": "merge-revisions",
|
|
88
|
-
"label": "Revise plan",
|
|
89
|
-
"description": "Apply the remaining plan changes directly, then continue with normal planning.",
|
|
90
|
-
"recommended": true
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
"id": "discuss-tradeoff",
|
|
94
|
-
"label": "Discuss tradeoff",
|
|
95
|
-
"description": "The review raised a route choice that should be clarified with the user."
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
"id": "hold-plan",
|
|
99
|
-
"label": "Hold execution",
|
|
100
|
-
"description": "Pause until missing requirements or constraints are clarified."
|
|
101
|
-
}
|
|
102
|
-
]
|
|
103
|
-
}
|
|
104
|
-
},
|
|
105
|
-
"process.allTasksDone": {
|
|
106
|
-
"stage": "done",
|
|
107
|
-
"summary": "All plan tasks are done. Finish the plan record, then complete the canonical plan lifecycle.",
|
|
108
|
-
"nextsteps": [
|
|
109
|
-
"1. Clear thread progress with `update_plan`.",
|
|
110
|
-
"2. Run `claw plan done --retrospective` once. Add `--key-decision` only for real durable decisions not already recorded.",
|
|
41
|
+
"nextsteps": [
|
|
42
|
+
"1. Fill `goal.text`.",
|
|
43
|
+
"2. Fill the missing plan fields.",
|
|
44
|
+
"3. Move into `process.active` once requirements are clear."
|
|
45
|
+
],
|
|
46
|
+
"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`.",
|
|
47
|
+
"commandHints": [
|
|
48
|
+
"{{editBase}} --status process.active",
|
|
49
|
+
"{{editBase}} --goal \"<goal>\" --requirements \"<summary>\" --acceptance \"<criterion>\"",
|
|
50
|
+
"{{editBase}} --reference <path> --why \"<reason>\""
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
"prepare.requirements.withoutGoal.noGoalMode": {
|
|
54
|
+
"stage": "requirements",
|
|
55
|
+
"summary": "Task scope is bound. Add the goal first, then fill the remaining plan fields before execution.",
|
|
56
|
+
"nextsteps": [
|
|
57
|
+
"1. Fill `goal.text`.",
|
|
58
|
+
"2. Fill the missing plan fields.",
|
|
59
|
+
"3. Move into `process.active` once requirements are clear."
|
|
60
|
+
],
|
|
61
|
+
"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`.",
|
|
62
|
+
"commandHints": [
|
|
63
|
+
"{{editBase}} --status process.active",
|
|
64
|
+
"{{editBase}} --goal \"<goal>\" --requirements \"<summary>\" --acceptance \"<criterion>\"",
|
|
65
|
+
"{{editBase}} --reference <path> --why \"<reason>\""
|
|
66
|
+
]
|
|
67
|
+
},
|
|
68
|
+
"prepare.review": {
|
|
69
|
+
"stage": "review",
|
|
70
|
+
"summary": "This plan is in a legacy review stage.",
|
|
71
|
+
"nextsteps": [
|
|
72
|
+
"1. Fold the remaining review notes into the plan.",
|
|
73
|
+
"2. Confirm the route with the user.",
|
|
74
|
+
"3. Move the plan back into `prepare.requirements` or `process.discussing`."
|
|
75
|
+
],
|
|
76
|
+
"notes": "Do not create a separate review pass. Merge review criteria into planning itself.",
|
|
77
|
+
"commandHints": [
|
|
78
|
+
"{{editBase}} --requirements \"<revised summary>\" --key-decision \"<confirmed decision>\"",
|
|
79
|
+
"{{editBase}} --status prepare.requirements",
|
|
80
|
+
"{{editBase}} --status process.discussing"
|
|
81
|
+
],
|
|
82
|
+
"askUser": {
|
|
83
|
+
"reason": "This legacy review stage should be resolved back into normal planning before execution.",
|
|
84
|
+
"useCodexOptions": true,
|
|
85
|
+
"options": [
|
|
86
|
+
{
|
|
87
|
+
"id": "merge-revisions",
|
|
88
|
+
"label": "Revise plan",
|
|
89
|
+
"description": "Apply the remaining plan changes directly, then continue with normal planning.",
|
|
90
|
+
"recommended": true
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"id": "discuss-tradeoff",
|
|
94
|
+
"label": "Discuss tradeoff",
|
|
95
|
+
"description": "The review raised a route choice that should be clarified with the user."
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"id": "hold-plan",
|
|
99
|
+
"label": "Hold execution",
|
|
100
|
+
"description": "Pause until missing requirements or constraints are clarified."
|
|
101
|
+
}
|
|
102
|
+
]
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
"process.allTasksDone": {
|
|
106
|
+
"stage": "done",
|
|
107
|
+
"summary": "All plan tasks are done. Finish the plan record, then complete the canonical plan lifecycle.",
|
|
108
|
+
"nextsteps": [
|
|
109
|
+
"1. Clear thread progress with `update_plan`.",
|
|
110
|
+
"2. Run `claw plan done --retrospective` once. Add `--key-decision` only for real durable decisions not already recorded.",
|
|
111
111
|
"3. Stop after the canonical plan transition; no separate closeout action is required from the main agent."
|
|
112
112
|
],
|
|
113
113
|
"notes": "Background maintenance is fail-open and requires no main-agent action; it must not change plan completion or subplan resume.",
|
|
114
|
-
"commandHints": [
|
|
115
|
-
"{{doneBase}} --retrospective \"<summary>\" [--key-decision \"<durable decision>\"]"
|
|
116
|
-
]
|
|
117
|
-
},
|
|
118
|
-
"process.hasCompletedTasks": {
|
|
119
|
-
"stage": "{{processStage}}",
|
|
120
|
-
"summary": "Execution is in progress.",
|
|
121
|
-
"nextsteps": [
|
|
122
|
-
"1. Sync thread progress with `update_plan`.",
|
|
123
|
-
"2. Continue with {{nextTaskRef}}."
|
|
124
|
-
],
|
|
114
|
+
"commandHints": [
|
|
115
|
+
"{{doneBase}} --retrospective \"<summary>\" [--key-decision \"<durable decision>\"]"
|
|
116
|
+
]
|
|
117
|
+
},
|
|
118
|
+
"process.hasCompletedTasks": {
|
|
119
|
+
"stage": "{{processStage}}",
|
|
120
|
+
"summary": "Execution is in progress.",
|
|
121
|
+
"nextsteps": [
|
|
122
|
+
"1. Sync thread progress with `update_plan`.",
|
|
123
|
+
"2. Continue with {{nextTaskRef}}."
|
|
124
|
+
],
|
|
125
|
+
"notes": "In `process.active`, keep moving unless there is a real blocker or explicit user interruption.",
|
|
126
|
+
"commandHints": [
|
|
127
|
+
"{{taskDoneCommand}}",
|
|
128
|
+
"claw task edit --id <id> --status in_progress"
|
|
129
|
+
]
|
|
130
|
+
},
|
|
131
|
+
"process.justEntered": {
|
|
132
|
+
"stage": "{{processStage}}",
|
|
133
|
+
"summary": "Execution is starting.",
|
|
134
|
+
"nextsteps": [
|
|
135
|
+
"Sync thread progress with `update_plan`.",
|
|
136
|
+
"Start with {{nextTaskRef}}."
|
|
137
|
+
],
|
|
125
138
|
"notes": "In `process.active`, keep moving unless there is a real blocker or explicit user interruption.",
|
|
126
|
-
"commandHints": [
|
|
127
|
-
"{{taskDoneCommand}}",
|
|
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
|
-
"process.
|
|
154
|
-
"stage": "
|
|
155
|
-
"summary": "Execution is
|
|
156
|
-
"nextsteps": [
|
|
157
|
-
"Sync thread progress with `update_plan`.",
|
|
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
|
-
"process.
|
|
190
|
-
"stage": "
|
|
191
|
-
"summary": "Execution is
|
|
192
|
-
"nextsteps": [
|
|
193
|
-
"
|
|
194
|
-
"
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
"
|
|
198
|
-
|
|
199
|
-
"{{
|
|
200
|
-
]
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
"
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
"
|
|
215
|
-
"
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
"
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
"
|
|
225
|
-
],
|
|
226
|
-
"notes": "Use `process.
|
|
227
|
-
"commandHints": [
|
|
228
|
-
"{{resumeBase}}"
|
|
229
|
-
]
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
"2. When resuming the plan, restore the active thread goal after re-entering `process.active`.",
|
|
237
|
-
"3. Resolve the discussion, then resume through `process.active`."
|
|
238
|
-
],
|
|
239
|
-
"notes": "Use `process.discussing` for route discussion or decision-making. Resume execution only after the discussion is settled.",
|
|
240
|
-
"commandHints": [
|
|
241
|
-
"{{resumeBase}}"
|
|
242
|
-
],
|
|
243
|
-
"goalTool": {
|
|
244
|
-
"tool": "update_goal",
|
|
245
|
-
"status": "blocked",
|
|
246
|
-
"reason": "Execution is paused in `process.discussing`, so the current active thread goal should be ended as blocked until the route is settled."
|
|
247
|
-
}
|
|
248
|
-
},
|
|
139
|
+
"commandHints": [
|
|
140
|
+
"{{taskDoneCommand}}",
|
|
141
|
+
"{{doneBase}} --retrospective \"<summary>\""
|
|
142
|
+
],
|
|
143
|
+
"goalTool": {
|
|
144
|
+
"tool": "create_goal",
|
|
145
|
+
"allowOverwrite": true,
|
|
146
|
+
"reason": "Execution is entering an active process state, so the thread should have an active Codex goal tied to the plan goal."
|
|
147
|
+
},
|
|
148
|
+
"goalMode": {
|
|
149
|
+
"allowOverwrite": true,
|
|
150
|
+
"setWhen": "on_enter_process_active"
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
"process.justEntered.noGoalMode": {
|
|
154
|
+
"stage": "{{processStage}}",
|
|
155
|
+
"summary": "Execution is starting.",
|
|
156
|
+
"nextsteps": [
|
|
157
|
+
"Sync thread progress with `update_plan`.",
|
|
158
|
+
"Start with {{nextTaskRef}}."
|
|
159
|
+
],
|
|
160
|
+
"notes": "In `process.active`, keep moving unless there is a real blocker or explicit user interruption.",
|
|
161
|
+
"commandHints": [
|
|
162
|
+
"{{taskDoneCommand}}",
|
|
163
|
+
"{{doneBase}} --retrospective \"<summary>\""
|
|
164
|
+
]
|
|
165
|
+
},
|
|
166
|
+
"process.resumedActive": {
|
|
167
|
+
"stage": "execution",
|
|
168
|
+
"summary": "Execution is resuming.",
|
|
169
|
+
"nextsteps": [
|
|
170
|
+
"Sync thread progress with `update_plan`.",
|
|
171
|
+
"Restore Goal Mode to the active state.",
|
|
172
|
+
"Resume with {{nextTaskRef}}."
|
|
173
|
+
],
|
|
174
|
+
"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.",
|
|
175
|
+
"commandHints": [
|
|
176
|
+
"{{taskDoneCommand}}",
|
|
177
|
+
"{{doneBase}} --retrospective \"<summary>\""
|
|
178
|
+
],
|
|
179
|
+
"goalTool": {
|
|
180
|
+
"tool": "create_goal",
|
|
181
|
+
"allowOverwrite": true,
|
|
182
|
+
"reason": "Execution is resuming from a paused process state, so the thread should restore an active Codex goal for the plan goal."
|
|
183
|
+
},
|
|
184
|
+
"goalMode": {
|
|
185
|
+
"allowOverwrite": true,
|
|
186
|
+
"setWhen": "on_resume_process_active"
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
"process.resumedActive.noGoalMode": {
|
|
190
|
+
"stage": "execution",
|
|
191
|
+
"summary": "Execution is resuming.",
|
|
192
|
+
"nextsteps": [
|
|
193
|
+
"Sync the thread progress with our tasks.",
|
|
194
|
+
"Resume with {{nextTaskRef}}."
|
|
195
|
+
],
|
|
196
|
+
"notes": "The plan is moving back from a paused status into active execution.",
|
|
197
|
+
"commandHints": [
|
|
198
|
+
"{{taskDoneCommand}}",
|
|
199
|
+
"{{doneBase}} --retrospective \"<summary>\""
|
|
200
|
+
]
|
|
201
|
+
},
|
|
202
|
+
"process.wait": {
|
|
203
|
+
"stage": "paused",
|
|
204
|
+
"summary": "Execution is paused.",
|
|
205
|
+
"nextsteps": [
|
|
206
|
+
"1. Use `update_goal(status=\"blocked\")` to end the current active thread goal.",
|
|
207
|
+
"2. When resuming the plan, restore the active thread goal after re-entering `process.active`.",
|
|
208
|
+
"3. Resume through `process.active` when execution should continue."
|
|
209
|
+
],
|
|
210
|
+
"notes": "Use `process.wait` for a real blocker or a deliberate hold. Do not keep executing while the plan is paused.",
|
|
211
|
+
"commandHints": [
|
|
212
|
+
"{{resumeBase}}"
|
|
213
|
+
],
|
|
214
|
+
"goalTool": {
|
|
215
|
+
"tool": "update_goal",
|
|
216
|
+
"status": "blocked",
|
|
217
|
+
"reason": "Execution is paused in `process.wait`, so the current active thread goal should be ended as blocked until work resumes."
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
"process.wait.noGoalMode": {
|
|
221
|
+
"stage": "paused",
|
|
222
|
+
"summary": "Execution is paused.",
|
|
223
|
+
"nextsteps": [
|
|
224
|
+
"1. Resume through `process.active` when execution should continue."
|
|
225
|
+
],
|
|
226
|
+
"notes": "Use `process.wait` for a real blocker or a deliberate hold. Do not keep executing while the plan is paused.",
|
|
227
|
+
"commandHints": [
|
|
228
|
+
"{{resumeBase}}"
|
|
229
|
+
]
|
|
230
|
+
},
|
|
231
|
+
"process.discussing": {
|
|
232
|
+
"stage": "discussion",
|
|
233
|
+
"summary": "The plan is paused for discussion.",
|
|
234
|
+
"nextsteps": [
|
|
235
|
+
"1. Use `update_goal(status=\"blocked\")` to end the current active thread goal.",
|
|
236
|
+
"2. When resuming the plan, restore the active thread goal after re-entering `process.active`.",
|
|
237
|
+
"3. Resolve the discussion, then resume through `process.active`."
|
|
238
|
+
],
|
|
239
|
+
"notes": "Use `process.discussing` for route discussion or decision-making. Resume execution only after the discussion is settled.",
|
|
240
|
+
"commandHints": [
|
|
241
|
+
"{{resumeBase}}"
|
|
242
|
+
],
|
|
243
|
+
"goalTool": {
|
|
244
|
+
"tool": "update_goal",
|
|
245
|
+
"status": "blocked",
|
|
246
|
+
"reason": "Execution is paused in `process.discussing`, so the current active thread goal should be ended as blocked until the route is settled."
|
|
247
|
+
}
|
|
248
|
+
},
|
|
249
249
|
"process.discussing.initial": {
|
|
250
250
|
"stage": "discussion",
|
|
251
251
|
"summary": "The plan starts in discussion while the requirements and proposed solution are discussed and confirmed with the user.",
|
|
@@ -268,96 +268,96 @@
|
|
|
268
268
|
],
|
|
269
269
|
"notes": "claw plan start remains globally available as optional syntax sugar, but this template task has not selected it as the recommended delivery path."
|
|
270
270
|
},
|
|
271
|
-
"process.discussing.noGoalMode": {
|
|
272
|
-
"stage": "discussion",
|
|
273
|
-
"summary": "The plan is paused for discussion.",
|
|
274
|
-
"nextsteps": [
|
|
275
|
-
"1. Resolve the discussion, then resume through `process.active`."
|
|
276
|
-
],
|
|
277
|
-
"notes": "Use `process.discussing` for route discussion or decision-making. Resume execution only after the discussion is settled.",
|
|
278
|
-
"commandHints": [
|
|
279
|
-
"{{resumeBase}}"
|
|
280
|
-
]
|
|
281
|
-
},
|
|
282
|
-
"process.activeTask": {
|
|
283
|
-
"stage": "{{processStage}}",
|
|
284
|
-
"summary": "Execution is in progress.",
|
|
285
|
-
"nextsteps": [
|
|
286
|
-
"Continue the current task."
|
|
287
|
-
],
|
|
288
|
-
"commandHints": [
|
|
289
|
-
"{{taskDoneCommand}}"
|
|
290
|
-
]
|
|
291
|
-
},
|
|
292
|
-
"process.default": {
|
|
293
|
-
"stage": "{{processStage}}",
|
|
294
|
-
"summary": "Execution is in progress.",
|
|
295
|
-
"nextsteps": [
|
|
296
|
-
"Continue with {{nextTaskRef}}."
|
|
297
|
-
],
|
|
298
|
-
"commandHints": [
|
|
299
|
-
"{{taskDoneCommand}}"
|
|
300
|
-
]
|
|
301
|
-
},
|
|
302
|
-
"end.completed": {
|
|
303
|
-
"stage": "done",
|
|
304
|
-
"summary": "The plan is completed and ready for closeout.",
|
|
305
|
-
"nextsteps": [
|
|
306
|
-
"1. Use `update_goal(status=\"complete\")` to close the active thread goal for this plan.",
|
|
307
|
-
"2. Finish any remaining workflow-guided closeout work such as archive or parent-plan resumption.",
|
|
308
|
-
"3. Do not continue ad hoc in this thread. Start the next task only through `using-claw-kit`, then follow the returned `workflowGuidance`."
|
|
309
|
-
],
|
|
310
|
-
"goalTool": {
|
|
311
|
-
"tool": "update_goal",
|
|
312
|
-
"status": "complete",
|
|
313
|
-
"reason": "The plan has reached completion, so the active thread goal should be marked complete."
|
|
314
|
-
}
|
|
315
|
-
},
|
|
316
|
-
"end.closed": {
|
|
317
|
-
"stage": "paused",
|
|
318
|
-
"summary": "The plan is no longer active.",
|
|
319
|
-
"nextsteps": [
|
|
320
|
-
"Reopen through `prepare.requirements` before resuming, or leave it as historical context."
|
|
321
|
-
],
|
|
322
|
-
"commandHints": [
|
|
323
|
-
"{{editBase}} --status prepare.requirements"
|
|
324
|
-
]
|
|
325
|
-
}
|
|
326
|
-
},
|
|
327
|
-
"sessionStart": {
|
|
328
|
-
"default": {
|
|
329
|
-
"lines": [
|
|
330
|
-
"This session started inside a .claw project: {{projectName}} ({{projectId}}).",
|
|
331
|
-
".claw directory: {{clawDir}}",
|
|
271
|
+
"process.discussing.noGoalMode": {
|
|
272
|
+
"stage": "discussion",
|
|
273
|
+
"summary": "The plan is paused for discussion.",
|
|
274
|
+
"nextsteps": [
|
|
275
|
+
"1. Resolve the discussion, then resume through `process.active`."
|
|
276
|
+
],
|
|
277
|
+
"notes": "Use `process.discussing` for route discussion or decision-making. Resume execution only after the discussion is settled.",
|
|
278
|
+
"commandHints": [
|
|
279
|
+
"{{resumeBase}}"
|
|
280
|
+
]
|
|
281
|
+
},
|
|
282
|
+
"process.activeTask": {
|
|
283
|
+
"stage": "{{processStage}}",
|
|
284
|
+
"summary": "Execution is in progress.",
|
|
285
|
+
"nextsteps": [
|
|
286
|
+
"Continue the current task."
|
|
287
|
+
],
|
|
288
|
+
"commandHints": [
|
|
289
|
+
"{{taskDoneCommand}}"
|
|
290
|
+
]
|
|
291
|
+
},
|
|
292
|
+
"process.default": {
|
|
293
|
+
"stage": "{{processStage}}",
|
|
294
|
+
"summary": "Execution is in progress.",
|
|
295
|
+
"nextsteps": [
|
|
296
|
+
"Continue with {{nextTaskRef}}."
|
|
297
|
+
],
|
|
298
|
+
"commandHints": [
|
|
299
|
+
"{{taskDoneCommand}}"
|
|
300
|
+
]
|
|
301
|
+
},
|
|
302
|
+
"end.completed": {
|
|
303
|
+
"stage": "done",
|
|
304
|
+
"summary": "The plan is completed and ready for closeout.",
|
|
305
|
+
"nextsteps": [
|
|
306
|
+
"1. Use `update_goal(status=\"complete\")` to close the active thread goal for this plan.",
|
|
307
|
+
"2. Finish any remaining workflow-guided closeout work such as archive or parent-plan resumption.",
|
|
308
|
+
"3. Do not continue ad hoc in this thread. Start the next task only through `using-claw-kit`, then follow the returned `workflowGuidance`."
|
|
309
|
+
],
|
|
310
|
+
"goalTool": {
|
|
311
|
+
"tool": "update_goal",
|
|
312
|
+
"status": "complete",
|
|
313
|
+
"reason": "The plan has reached completion, so the active thread goal should be marked complete."
|
|
314
|
+
}
|
|
315
|
+
},
|
|
316
|
+
"end.closed": {
|
|
317
|
+
"stage": "paused",
|
|
318
|
+
"summary": "The plan is no longer active.",
|
|
319
|
+
"nextsteps": [
|
|
320
|
+
"Reopen through `prepare.requirements` before resuming, or leave it as historical context."
|
|
321
|
+
],
|
|
322
|
+
"commandHints": [
|
|
323
|
+
"{{editBase}} --status prepare.requirements"
|
|
324
|
+
]
|
|
325
|
+
}
|
|
326
|
+
},
|
|
327
|
+
"sessionStart": {
|
|
328
|
+
"default": {
|
|
329
|
+
"lines": [
|
|
330
|
+
"This session started inside a .claw project: {{projectName}} ({{projectId}}).",
|
|
331
|
+
".claw directory: {{clawDir}}",
|
|
332
332
|
"You can use goal mode in this thread when required by the claw workflow; don't ask me again.",
|
|
333
|
-
"Follow the claw workflowGuidance return fields as the required next-step contract.",
|
|
334
|
-
"Load claw-kit:using-claw-kit as the main workflow skill for this session."
|
|
335
|
-
]
|
|
336
|
-
},
|
|
337
|
-
"recovered": {
|
|
338
|
-
"header": [
|
|
339
|
-
"Use @claw-kit for this session.",
|
|
340
|
-
"Claw workflow snapshot is recovered.",
|
|
341
|
-
"Treat returned claw workflowGuidance as the only next-step contract.",
|
|
342
|
-
"There is already an unfinished plan in this thread.",
|
|
343
|
-
"Tell the user and ask whether to close the current plan or continue advancing it before starting unrelated work.",
|
|
333
|
+
"Follow the claw workflowGuidance return fields as the required next-step contract.",
|
|
334
|
+
"Load claw-kit:using-claw-kit as the main workflow skill for this session."
|
|
335
|
+
]
|
|
336
|
+
},
|
|
337
|
+
"recovered": {
|
|
338
|
+
"header": [
|
|
339
|
+
"Use @claw-kit for this session.",
|
|
340
|
+
"Claw workflow snapshot is recovered.",
|
|
341
|
+
"Treat returned claw workflowGuidance as the only next-step contract.",
|
|
342
|
+
"There is already an unfinished plan in this thread.",
|
|
343
|
+
"Tell the user and ask whether to close the current plan or continue advancing it before starting unrelated work.",
|
|
344
344
|
"You can use goal mode in this thread when required by the claw workflow; don't ask me again.",
|
|
345
|
-
"After this plan finishes, keep using claw-kit in this thread for the next task.",
|
|
346
|
-
""
|
|
347
|
-
],
|
|
348
|
-
"snapshotHeader": "Current claw workflow snapshot:",
|
|
349
|
-
"snapshotFields": {
|
|
350
|
-
"task": "- task: {{taskName}}",
|
|
351
|
-
"plan": "- plan: {{planFile}}",
|
|
352
|
-
"planStatus": "- plan status: {{planStatus}}",
|
|
353
|
-
"planSummary": "- plan summary: {{planSummary}}",
|
|
354
|
-
"nextSteps": "- next steps: {{nextSteps}}",
|
|
345
|
+
"After this plan finishes, keep using claw-kit in this thread for the next task.",
|
|
346
|
+
""
|
|
347
|
+
],
|
|
348
|
+
"snapshotHeader": "Current claw workflow snapshot:",
|
|
349
|
+
"snapshotFields": {
|
|
350
|
+
"task": "- task: {{taskName}}",
|
|
351
|
+
"plan": "- plan: {{planFile}}",
|
|
352
|
+
"planStatus": "- plan status: {{planStatus}}",
|
|
353
|
+
"planSummary": "- plan summary: {{planSummary}}",
|
|
354
|
+
"nextSteps": "- next steps: {{nextSteps}}",
|
|
355
355
|
"commandHints": "- command hints: {{commandHints}}",
|
|
356
|
-
"notes": "- notes: {{notes}}",
|
|
357
|
-
"askUser": "- ask user: {{askUser}}",
|
|
358
|
-
"goalMode": "- goal mode: {{goalMode}}"
|
|
359
|
-
},
|
|
360
|
-
"planContentHeader": "Current plan content:"
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
|
-
}
|
|
356
|
+
"notes": "- notes: {{notes}}",
|
|
357
|
+
"askUser": "- ask user: {{askUser}}",
|
|
358
|
+
"goalMode": "- goal mode: {{goalMode}}"
|
|
359
|
+
},
|
|
360
|
+
"planContentHeader": "Current plan content:"
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
}
|