@veewo/claw-core 0.1.12
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 -0
- package/dist/src/completion-hooks.d.ts +6 -0
- package/dist/src/completion-hooks.js +64 -0
- package/dist/src/completion-hooks.js.map +1 -0
- package/dist/src/context.d.ts +7 -0
- package/dist/src/context.js +171 -0
- package/dist/src/context.js.map +1 -0
- package/dist/src/errors.d.ts +6 -0
- package/dist/src/errors.js +11 -0
- package/dist/src/errors.js.map +1 -0
- package/dist/src/index.d.ts +15 -0
- package/dist/src/index.js +16 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/init.d.ts +22 -0
- package/dist/src/init.js +91 -0
- package/dist/src/init.js.map +1 -0
- package/dist/src/io.d.ts +6 -0
- package/dist/src/io.js +47 -0
- package/dist/src/io.js.map +1 -0
- package/dist/src/memory.d.ts +4 -0
- package/dist/src/memory.js +240 -0
- package/dist/src/memory.js.map +1 -0
- package/dist/src/paths.d.ts +6 -0
- package/dist/src/paths.js +73 -0
- package/dist/src/paths.js.map +1 -0
- package/dist/src/plan-events.d.ts +12 -0
- package/dist/src/plan-events.js +8 -0
- package/dist/src/plan-events.js.map +1 -0
- package/dist/src/plan-view.d.ts +6 -0
- package/dist/src/plan-view.js +69 -0
- package/dist/src/plan-view.js.map +1 -0
- package/dist/src/plan.d.ts +10 -0
- package/dist/src/plan.js +510 -0
- package/dist/src/plan.js.map +1 -0
- package/dist/src/project-check.d.ts +3 -0
- package/dist/src/project-check.js +238 -0
- package/dist/src/project-check.js.map +1 -0
- package/dist/src/requirements-gate.d.ts +23 -0
- package/dist/src/requirements-gate.js +49 -0
- package/dist/src/requirements-gate.js.map +1 -0
- package/dist/src/switch-task.d.ts +2 -0
- package/dist/src/switch-task.js +60 -0
- package/dist/src/switch-task.js.map +1 -0
- package/dist/src/task-retention.d.ts +2 -0
- package/dist/src/task-retention.js +126 -0
- package/dist/src/task-retention.js.map +1 -0
- package/dist/src/truth.d.ts +2 -0
- package/dist/src/truth.js +33 -0
- package/dist/src/truth.js.map +1 -0
- package/dist/src/types.d.ts +476 -0
- package/dist/src/types.js +2 -0
- package/dist/src/types.js.map +1 -0
- package/dist/src/workflow-guidance.d.ts +10 -0
- package/dist/src/workflow-guidance.js +233 -0
- package/dist/src/workflow-guidance.js.map +1 -0
- package/package.json +32 -0
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
function truthWriterDelegate(projectConfig) {
|
|
2
|
+
return {
|
|
3
|
+
name: "truth-writer",
|
|
4
|
+
skill: normalizeWriterSkill(projectConfig?.externalTruthSkill, "claw-kit:truth-writer"),
|
|
5
|
+
model: "gpt-5.4-mini",
|
|
6
|
+
waitForCompletion: false,
|
|
7
|
+
preferReuseSameTypeInThread: true,
|
|
8
|
+
inputContract: "completed subtask report",
|
|
9
|
+
outputContract: "optional telemetry only",
|
|
10
|
+
closePolicy: "keep_open_for_reuse",
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
function adrWriterDelegate(projectConfig) {
|
|
14
|
+
return {
|
|
15
|
+
name: "adr-writer",
|
|
16
|
+
skill: normalizeWriterSkill(projectConfig?.externalAdrSkill, "claw-kit:adr-writer"),
|
|
17
|
+
model: "gpt-5.4-mini",
|
|
18
|
+
waitForCompletion: false,
|
|
19
|
+
preferReuseSameTypeInThread: true,
|
|
20
|
+
inputContract: "completed plan.json only",
|
|
21
|
+
outputContract: "optional telemetry only",
|
|
22
|
+
closePolicy: "keep_open_for_reuse",
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
function buildGoalModeObjective(planGoal) {
|
|
26
|
+
return `\u6309\u7167 claw kit \u6d41\u7a0b\uff0c\u5b8c\u6210 task\uff0c\u66f4\u65b0 plan \u6587\u4ef6\uff0c\u5e76\u6700\u7ec8\u5b8c\u6210\uff1a${planGoal}`;
|
|
27
|
+
}
|
|
28
|
+
function nextUnfinishedTask(plan) {
|
|
29
|
+
return plan.tasks.find((task) => task.status !== "done");
|
|
30
|
+
}
|
|
31
|
+
function formatNextTask(task) {
|
|
32
|
+
return `#${task.id} ${task.title}`;
|
|
33
|
+
}
|
|
34
|
+
export function buildPlanWorkflowGuidance(params) {
|
|
35
|
+
const { taskName, planFile, plan, projectConfig = null, previousStatus, completionHooks, changedTaskIds } = params;
|
|
36
|
+
const scopedPlan = planFile === "plan.json" ? "" : ` --plan ${planFile}`;
|
|
37
|
+
const editBase = `claw plan edit --task ${taskName}${scopedPlan}`;
|
|
38
|
+
const doneBase = `claw plan done --task ${taskName}${scopedPlan}`;
|
|
39
|
+
const hasTasks = plan.tasks.length > 0;
|
|
40
|
+
const allTasksDone = hasTasks && plan.tasks.every((task) => task.status === "done");
|
|
41
|
+
const justEnteredProcess = previousStatus?.startsWith("prepare.") && plan.status.startsWith("process.");
|
|
42
|
+
const justCompletedTasks = (changedTaskIds?.length ?? 0) > 0;
|
|
43
|
+
const nextTask = nextUnfinishedTask(plan);
|
|
44
|
+
switch (plan.status) {
|
|
45
|
+
case "prepare.requirements":
|
|
46
|
+
return {
|
|
47
|
+
stage: "requirements",
|
|
48
|
+
summary: "Task scope is bound. Confirm the route before execution.",
|
|
49
|
+
nextStep: "Refine the plan if needed, confirm the route with the user, then move to process.active before doing any implementation or task execution.",
|
|
50
|
+
notes: [
|
|
51
|
+
"Planning should already satisfy the old review quality bar.",
|
|
52
|
+
"Do not start implementation while the plan is still in `prepare.requirements`.",
|
|
53
|
+
"Move to `process.active` before updating task progress or executing the task.",
|
|
54
|
+
],
|
|
55
|
+
recommendedCommands: [
|
|
56
|
+
`${editBase} --patch <updated-plan.json>`,
|
|
57
|
+
`${editBase} --plan-status process.active`,
|
|
58
|
+
`${editBase} --plan-status process.discussing`,
|
|
59
|
+
],
|
|
60
|
+
goalMode: {
|
|
61
|
+
recommendedObjective: buildGoalModeObjective(plan.goal.text),
|
|
62
|
+
setWhen: "on_plan_write",
|
|
63
|
+
ifNoActiveGoal: true,
|
|
64
|
+
doNotOverwriteExisting: true,
|
|
65
|
+
supportedSurfaces: ["/goal", "create_goal"],
|
|
66
|
+
},
|
|
67
|
+
askUser: {
|
|
68
|
+
reason: "Requirements still need explicit confirmation before execution starts.",
|
|
69
|
+
useCodexOptions: true,
|
|
70
|
+
options: [
|
|
71
|
+
{
|
|
72
|
+
id: "approve-route",
|
|
73
|
+
label: "Approve route",
|
|
74
|
+
description: "The current plan is acceptable and can move toward execution.",
|
|
75
|
+
recommended: true,
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
id: "revise-plan",
|
|
79
|
+
label: "Revise plan",
|
|
80
|
+
description: "The current plan needs scope, task, or sequencing changes before execution.",
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
id: "pause-discussion",
|
|
84
|
+
label: "Discuss first",
|
|
85
|
+
description: "The route is still ambiguous and needs a user discussion turn before work starts.",
|
|
86
|
+
},
|
|
87
|
+
],
|
|
88
|
+
},
|
|
89
|
+
};
|
|
90
|
+
case "prepare.review":
|
|
91
|
+
return {
|
|
92
|
+
stage: "review",
|
|
93
|
+
summary: "This plan is in a legacy review stage.",
|
|
94
|
+
nextStep: "Fold any remaining review notes into the plan, confirm the route with the user, then move back into process.*.",
|
|
95
|
+
notes: ["Do not create a separate review pass. Merge review criteria into planning itself."],
|
|
96
|
+
recommendedCommands: [
|
|
97
|
+
`${editBase} --patch <reviewed-plan.json>`,
|
|
98
|
+
`${editBase} --plan-status prepare.requirements`,
|
|
99
|
+
`${editBase} --plan-status process.discussing`,
|
|
100
|
+
],
|
|
101
|
+
askUser: {
|
|
102
|
+
reason: "This legacy review stage should be resolved back into normal planning before execution.",
|
|
103
|
+
useCodexOptions: true,
|
|
104
|
+
options: [
|
|
105
|
+
{
|
|
106
|
+
id: "merge-revisions",
|
|
107
|
+
label: "Revise plan",
|
|
108
|
+
description: "Apply the remaining plan changes directly, then continue with normal planning.",
|
|
109
|
+
recommended: true,
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
id: "discuss-tradeoff",
|
|
113
|
+
label: "Discuss tradeoff",
|
|
114
|
+
description: "The review raised a route choice that should be clarified with the user.",
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
id: "hold-plan",
|
|
118
|
+
label: "Hold execution",
|
|
119
|
+
description: "Pause until missing requirements or constraints are clarified.",
|
|
120
|
+
},
|
|
121
|
+
],
|
|
122
|
+
},
|
|
123
|
+
};
|
|
124
|
+
case "process.active":
|
|
125
|
+
case "process.wait":
|
|
126
|
+
case "process.discussing":
|
|
127
|
+
if (allTasksDone) {
|
|
128
|
+
return {
|
|
129
|
+
stage: "done",
|
|
130
|
+
summary: "All plan tasks are done. Do truth deposition, then close the plan.",
|
|
131
|
+
nextStep: "Dispatch `truth-writer`, complete the retrospective, then close the plan with `claw plan done`.",
|
|
132
|
+
notes: [
|
|
133
|
+
"`all task done` is not ADR completion.",
|
|
134
|
+
"ADR happens after completed `plan.json` exists.",
|
|
135
|
+
"If the host shows thread progress, sync it to the current plan state now.",
|
|
136
|
+
],
|
|
137
|
+
recommendedCommands: [
|
|
138
|
+
`${doneBase} --summary \"<retrospective summary>\"`,
|
|
139
|
+
],
|
|
140
|
+
delegateSubagents: [truthWriterDelegate(projectConfig)],
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
return {
|
|
144
|
+
stage: plan.status === "process.discussing" ? "discussion" : "execution",
|
|
145
|
+
summary: justEnteredProcess
|
|
146
|
+
? "Execution is starting."
|
|
147
|
+
: "Execution is in progress.",
|
|
148
|
+
nextStep: justEnteredProcess
|
|
149
|
+
? `Confirm the route with the user if needed, then start with ${nextTask ? formatNextTask(nextTask) : "the next task"} and update task status as work progresses.`
|
|
150
|
+
: `Continue execution with ${nextTask ? formatNextTask(nextTask) : "the next task"}, update task status with \`claw plan edit\`, and close with \`claw plan done\` when work is complete.`,
|
|
151
|
+
...(nextTask
|
|
152
|
+
? {
|
|
153
|
+
nextTask: {
|
|
154
|
+
id: nextTask.id,
|
|
155
|
+
title: nextTask.title,
|
|
156
|
+
status: nextTask.status,
|
|
157
|
+
...(nextTask.detail ? { detail: nextTask.detail } : {}),
|
|
158
|
+
},
|
|
159
|
+
}
|
|
160
|
+
: {}),
|
|
161
|
+
notes: [
|
|
162
|
+
"Use delegated specialists for truth and ADR deposition.",
|
|
163
|
+
"In `process.active`, keep moving unless there is a real blocker or explicit user interruption.",
|
|
164
|
+
"If the host shows thread progress, sync it after this plan edit.",
|
|
165
|
+
...(justCompletedTasks
|
|
166
|
+
? [
|
|
167
|
+
"If the completed subtask produced reusable knowledge, dispatch truth-writer.",
|
|
168
|
+
`Continue with next task: ${nextTask ? `id ${nextTask.id} content ${nextTask.title}` : "id <next> content <next task>"}.`,
|
|
169
|
+
]
|
|
170
|
+
: []),
|
|
171
|
+
],
|
|
172
|
+
recommendedCommands: [
|
|
173
|
+
`${editBase} --task-id <id> --task-status done`,
|
|
174
|
+
`${doneBase} --summary \"<retrospective summary>\"`,
|
|
175
|
+
],
|
|
176
|
+
...(justEnteredProcess
|
|
177
|
+
? {
|
|
178
|
+
askUser: {
|
|
179
|
+
reason: "Execution is starting and any remaining route choice should be made explicit with the user.",
|
|
180
|
+
useCodexOptions: true,
|
|
181
|
+
options: [
|
|
182
|
+
{
|
|
183
|
+
id: "execute-current-route",
|
|
184
|
+
label: "Execute route",
|
|
185
|
+
description: "Proceed with the current plan as written.",
|
|
186
|
+
recommended: true,
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
id: "revise-before-execution",
|
|
190
|
+
label: "Revise first",
|
|
191
|
+
description: "Adjust the plan before deeper implementation begins.",
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
id: "pause-for-input",
|
|
195
|
+
label: "Pause for input",
|
|
196
|
+
description: "Wait for additional requirements or direction from the user.",
|
|
197
|
+
},
|
|
198
|
+
],
|
|
199
|
+
},
|
|
200
|
+
}
|
|
201
|
+
: {}),
|
|
202
|
+
};
|
|
203
|
+
case "end.completed":
|
|
204
|
+
return {
|
|
205
|
+
stage: "deposition",
|
|
206
|
+
summary: "The plan is completed. Deposit ADRs now.",
|
|
207
|
+
nextStep: "Dispatch `adr-writer` with the completed `plan.json`.",
|
|
208
|
+
notes: [
|
|
209
|
+
...(completionHooks?.truthCandidate.suggestedTruthPaths.length
|
|
210
|
+
? [`Suggested truth targets: ${completionHooks.truthCandidate.suggestedTruthPaths.join(", ")}`]
|
|
211
|
+
: []),
|
|
212
|
+
"Use completed `plan.json` as the ADR bundle.",
|
|
213
|
+
],
|
|
214
|
+
delegateSubagents: [adrWriterDelegate(projectConfig)],
|
|
215
|
+
};
|
|
216
|
+
case "end.closed":
|
|
217
|
+
case "end.leave":
|
|
218
|
+
return {
|
|
219
|
+
stage: "paused",
|
|
220
|
+
summary: "The plan is no longer active.",
|
|
221
|
+
nextStep: "Reopen through `prepare.requirements` before resuming, or leave it as historical context.",
|
|
222
|
+
recommendedCommands: [`${editBase} --plan-status prepare.requirements`],
|
|
223
|
+
};
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
function normalizeWriterSkill(value, fallback) {
|
|
227
|
+
if (typeof value !== "string") {
|
|
228
|
+
return fallback;
|
|
229
|
+
}
|
|
230
|
+
const trimmed = value.trim();
|
|
231
|
+
return trimmed || fallback;
|
|
232
|
+
}
|
|
233
|
+
//# sourceMappingURL=workflow-guidance.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow-guidance.js","sourceRoot":"","sources":["../../src/workflow-guidance.ts"],"names":[],"mappings":"AAWA,SAAS,mBAAmB,CAAC,aAAmC;IAC9D,OAAO;QACL,IAAI,EAAE,cAAc;QACpB,KAAK,EAAE,oBAAoB,CAAC,aAAa,EAAE,kBAAkB,EAAE,uBAAuB,CAAC;QACvF,KAAK,EAAE,cAAc;QACrB,iBAAiB,EAAE,KAAK;QACxB,2BAA2B,EAAE,IAAI;QACjC,aAAa,EAAE,0BAA0B;QACzC,cAAc,EAAE,yBAAyB;QACzC,WAAW,EAAE,qBAAqB;KACnC,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B,CAAC;IACD,MAAM,OAAO,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC;IAC7B,OAAO,OAAO,IAAI,QAAQ,CAAC;AAC7B,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@veewo/claw-core",
|
|
3
|
+
"version": "0.1.12",
|
|
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
|
+
"scripts": {
|
|
28
|
+
"build": "tsc -p tsconfig.json",
|
|
29
|
+
"check": "tsc -p tsconfig.json --noEmit",
|
|
30
|
+
"test": "node --test dist/test/**/*.test.js"
|
|
31
|
+
}
|
|
32
|
+
}
|