@deathbeam/pi-plan 0.0.4 → 0.0.6
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/index.ts +2 -1
- package/package.json +1 -1
- package/skills/prepare-plan/SKILL.md +2 -2
- package/src/inspector.ts +1 -0
package/index.ts
CHANGED
|
@@ -286,8 +286,9 @@ export default function (pi: ExtensionAPI) {
|
|
|
286
286
|
promptSnippet: "Write the plan for multi-step work in this project: goal, detail, one task per verifiable step",
|
|
287
287
|
promptGuidelines: [
|
|
288
288
|
"Mark a task `doing` when work on it starts.",
|
|
289
|
-
"When another agent works a task,
|
|
289
|
+
"When another agent works a task, run `get` for it and open its brief with that output, unchanged; update the plan here from the agent's result, since a second writer would overwrite plan state.",
|
|
290
290
|
"Mark a task `done` only after its goal's check passed, and put the result in the note, for example `npm test -- packages/x: 42 passed`.",
|
|
291
|
+
"When the last task is `done`, run the plan `goal`'s check and record the result as a plan note.",
|
|
291
292
|
"Leave a task open when its outcome is unproven: `blocked` with a note of what remains, or `todo`.",
|
|
292
293
|
"Record a cross-task ruling as a note on the plan: `update` with a note and no task.",
|
|
293
294
|
'When the user refers to a plan by a loose name ("continue the npc draft"), run `list`, then `get` the matching id; that makes it active.',
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@ Write the plan with the `plan` tool, action `create`. The plan is the source of
|
|
|
11
11
|
|
|
12
12
|
1. **Orient.** Read the code the change touches, its callers, its tests and the repo instructions. Every fact, `path:line` and command in the plan comes from code you or a helper read, not from memory. Stop when you can name the behaviour to change, the seam it goes through, and the check that proves it.
|
|
13
13
|
|
|
14
|
-
2. **Gather facts before writing.** When
|
|
14
|
+
2. **Gather facts before writing.** When other agents explore for you, ask each for a report with `path:line` evidence: current behaviour, seams, callers, tests and checks. Write the plan from those reports and the user's decisions. A plan written from conversation memory cites nothing and leaves every task to guesswork.
|
|
15
15
|
|
|
16
16
|
3. **Resolve decisions.** Find facts in the code and docs rather than asking. Ask the user only for a decision that changes the plan. Settle a blocking choice before the plan exists and record it in the plan `detail`.
|
|
17
17
|
|
|
@@ -32,7 +32,7 @@ Write the plan with the `plan` tool, action `create`. The plan is the source of
|
|
|
32
32
|
- `goal`: the observable result and the command that proves it.
|
|
33
33
|
- `detail`: the approach, the interfaces it must match, the pitfalls, and a `Where:` line citing `path:line` for each file that changes.
|
|
34
34
|
|
|
35
|
-
Add `dependsOn` only for a real dependency; tasks without one run at the same time, so keep their files disjoint.
|
|
35
|
+
Add `dependsOn` only for a real dependency; tasks without one may run at the same time, in parallel agents, so keep their files disjoint.
|
|
36
36
|
|
|
37
37
|
6. **Self-check.** Trace every requirement in the request to a task, and every task to a goal with a check. Replace each "handle edge cases" or "write tests" with the behaviour and the check. Confirm that no task names a path or interface that a later task defines differently. Read each task as `get <task>` will show it and confirm it can be done and checked without this conversation.
|
|
38
38
|
|
package/src/inspector.ts
CHANGED
|
@@ -152,6 +152,7 @@ function taskRows(plan: Plan, theme: Theme, width: number, expanded: boolean): s
|
|
|
152
152
|
const current = plan.tasks.find((task) => task.status === "doing") ?? nextTask(plan);
|
|
153
153
|
const blocks = plan.tasks.flatMap((task) => taskBlock(plan, task, theme, width, task === current, expanded));
|
|
154
154
|
return [
|
|
155
|
+
section(theme, "Goal", width),
|
|
155
156
|
...markdown(theme, plan.goal, width),
|
|
156
157
|
"",
|
|
157
158
|
section(theme, "Tasks", width),
|