@difflab/pi 0.6.0 → 0.7.0-rc.202609271854.6af8600

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.
Files changed (95) hide show
  1. package/README.md +11 -9
  2. package/agents/diffpi-orchestrator.md +6 -4
  3. package/agents/diffpi-plan-reviewer.md +27 -0
  4. package/agents/diffpi-planner.md +5 -5
  5. package/agents/diffpi-reviewer.md +4 -4
  6. package/agents/diffpi-worker.md +1 -1
  7. package/dist/assets.d.ts +0 -1
  8. package/dist/assets.d.ts.map +1 -1
  9. package/dist/cli.js +446 -160
  10. package/dist/commands/plan.d.ts +2 -2
  11. package/dist/commands/plan.d.ts.map +1 -1
  12. package/dist/commands/review.d.ts +2 -2
  13. package/dist/commands/review.d.ts.map +1 -1
  14. package/dist/environment.d.ts +2 -0
  15. package/dist/environment.d.ts.map +1 -1
  16. package/dist/extensions/index.js +1841 -3858
  17. package/dist/extensions/tuicrx.d.ts +8 -1
  18. package/dist/extensions/tuicrx.d.ts.map +1 -1
  19. package/dist/index.d.ts +8 -7
  20. package/dist/index.d.ts.map +1 -1
  21. package/dist/index.js +951 -349
  22. package/dist/plan/markdown.d.ts +4 -1
  23. package/dist/plan/markdown.d.ts.map +1 -1
  24. package/dist/{tools/plan-schema.d.ts → plan/schema.d.ts} +113 -75
  25. package/dist/plan/schema.d.ts.map +1 -0
  26. package/dist/plan/store.d.ts +39 -1
  27. package/dist/plan/store.d.ts.map +1 -1
  28. package/dist/plan/types.d.ts +27 -3
  29. package/dist/plan/types.d.ts.map +1 -1
  30. package/dist/review/github-review-backend.d.ts.map +1 -1
  31. package/dist/review/gitlab-review-backend.d.ts.map +1 -1
  32. package/dist/review/index.d.ts +6 -6
  33. package/dist/review/index.d.ts.map +1 -1
  34. package/dist/review/local-review-backend.d.ts +3 -0
  35. package/dist/review/local-review-backend.d.ts.map +1 -0
  36. package/dist/review/review-backend.d.ts +3 -2
  37. package/dist/review/review-backend.d.ts.map +1 -1
  38. package/dist/review/review-markdown.d.ts +4 -1
  39. package/dist/review/review-markdown.d.ts.map +1 -1
  40. package/dist/review/review-state.d.ts +20 -0
  41. package/dist/review/review-state.d.ts.map +1 -0
  42. package/dist/review/types.d.ts +28 -0
  43. package/dist/review/types.d.ts.map +1 -1
  44. package/dist/store.d.ts +2 -0
  45. package/dist/store.d.ts.map +1 -1
  46. package/dist/tools/index.js +1668 -607
  47. package/dist/tools/plan.d.ts.map +1 -1
  48. package/dist/tools/review.d.ts +38 -0
  49. package/dist/tools/review.d.ts.map +1 -1
  50. package/package.json +2 -4
  51. package/skills/plan/SKILL.md +8 -14
  52. package/skills/plan/references/design-quality.md +30 -0
  53. package/skills/plan/references/workflows/annotate.md +11 -0
  54. package/skills/plan/references/workflows/finalize.md +7 -0
  55. package/skills/plan/references/workflows/go.md +8 -0
  56. package/skills/plan/references/workflows/help.md +10 -0
  57. package/skills/plan/references/workflows/init.md +5 -0
  58. package/skills/plan/references/workflows/new.md +7 -0
  59. package/skills/plan/references/workflows/update.md +7 -0
  60. package/skills/review/SKILL.md +7 -7
  61. package/skills/review/references/review-standards.md +8 -1
  62. package/skills/review/references/workflows/address.md +11 -0
  63. package/skills/review/references/workflows/auto.md +18 -0
  64. package/skills/review/references/workflows/complete.md +7 -0
  65. package/skills/review/references/workflows/edit.md +7 -0
  66. package/skills/review/references/workflows/help.md +36 -0
  67. package/skills/review/references/workflows/merge.md +6 -0
  68. package/skills/review/references/workflows/new.md +19 -0
  69. package/skills/review/references/workflows/open.md +3 -0
  70. package/skills/review/references/workflows/publish.md +8 -0
  71. package/skills/review/references/workflows/status.md +3 -0
  72. package/templates/plan/PLAN.md +17 -11
  73. package/templates/plan/implementation.md +34 -12
  74. package/dist/commands.d.ts +0 -22
  75. package/dist/commands.d.ts.map +0 -1
  76. package/dist/extensions/cmdtsx.d.ts +0 -2
  77. package/dist/extensions/cmdtsx.d.ts.map +0 -1
  78. package/dist/tools/plan-schema.d.ts.map +0 -1
  79. package/dist/workflow.d.ts +0 -80
  80. package/dist/workflow.d.ts.map +0 -1
  81. package/workflows/plan/annotate.md +0 -13
  82. package/workflows/plan/finalize.md +0 -15
  83. package/workflows/plan/go.md +0 -20
  84. package/workflows/plan/help.md +0 -20
  85. package/workflows/plan/init.md +0 -13
  86. package/workflows/plan/new.md +0 -20
  87. package/workflows/plan/update.md +0 -18
  88. package/workflows/review/address.md +0 -8
  89. package/workflows/review/auto.md +0 -8
  90. package/workflows/review/complete.md +0 -7
  91. package/workflows/review/edit.md +0 -7
  92. package/workflows/review/help.md +0 -14
  93. package/workflows/review/merge.md +0 -6
  94. package/workflows/review/new.md +0 -7
  95. package/workflows/review/publish.md +0 -6
@@ -1,80 +0,0 @@
1
- export type PlanWorkflowName = 'init' | 'new' | 'update' | 'annotate' | 'finalize' | 'go' | 'help';
2
- export type ReviewWorkflowName = 'auto' | 'new' | 'edit' | 'address' | 'publish' | 'complete' | 'merge' | 'help';
3
- export type PlanWorkflowArguments = {
4
- init: {
5
- plan: string;
6
- branch?: string;
7
- };
8
- new: {
9
- plan: string;
10
- branch?: string;
11
- background: boolean;
12
- prompt?: string;
13
- };
14
- update: {
15
- plan?: string;
16
- branch?: string;
17
- background: boolean;
18
- instructions?: string;
19
- };
20
- annotate: {
21
- plan?: string;
22
- };
23
- finalize: {
24
- plan?: string;
25
- };
26
- go: {
27
- plan: string;
28
- commitMode: 'no-commit' | 'commit' | 'push';
29
- background: boolean;
30
- };
31
- help: Record<string, never>;
32
- };
33
- export type ReviewWorkflowArguments = {
34
- auto: {
35
- target?: string;
36
- local: boolean;
37
- background: boolean;
38
- };
39
- new: {
40
- title?: string;
41
- intent?: string;
42
- base?: string;
43
- local: boolean;
44
- background: boolean;
45
- };
46
- edit: {
47
- target?: string;
48
- local: boolean;
49
- background: boolean;
50
- };
51
- address: {
52
- target?: string;
53
- local: boolean;
54
- background: boolean;
55
- };
56
- publish: {
57
- target?: string;
58
- comment: boolean;
59
- approve: boolean;
60
- requestChanges: boolean;
61
- close: boolean;
62
- background: boolean;
63
- };
64
- complete: {
65
- target?: string;
66
- local: boolean;
67
- approve: boolean;
68
- reject: boolean;
69
- abandon: boolean;
70
- background: boolean;
71
- };
72
- merge: {
73
- target?: string;
74
- background: boolean;
75
- };
76
- help: Record<string, never>;
77
- };
78
- export declare function loadPlanWorkflow<Name extends PlanWorkflowName>(name: Name, args: PlanWorkflowArguments[Name]): Promise<string>;
79
- export declare function loadReviewWorkflow<Name extends ReviewWorkflowName>(name: Name, args: ReviewWorkflowArguments[Name]): Promise<string>;
80
- //# sourceMappingURL=workflow.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"workflow.d.ts","sourceRoot":"","sources":["../src/workflow.ts"],"names":[],"mappings":"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"}
@@ -1,13 +0,0 @@
1
- # annotate
2
-
3
- ## Arguments
4
-
5
- - **Invocation:** `/plan annotate [short-slug]`
6
- - `[short-slug]` (optional): Plan to annotate. Omit it only when context resolves exactly one plan.
7
-
8
- ## Instructions
9
-
10
- 1. Call `plan_context` and infer planId from the provided short slug/conversation context. Fall back to looking at available active plan candidates, and ask user which to annotate listing available options.
11
- 2. Call `plan_annotate`; it uses `tuicr --file .diffpi/plan/{planId}`, never `-p` or `--path`.
12
- 3. Report the selected plan, launch result, and copyable fallback command. Closing tuicr saves one immutable plan review for the current plan revision.
13
- 4. Tell the user to run `/plan update <plan-id>` after closing tuicr.
@@ -1,15 +0,0 @@
1
- # finalize
2
-
3
- ## Arguments
4
-
5
- - **Invocation:** `/plan finalize [short-slug]`
6
- - `[short-slug]` (optional): Plan to validate and mark ready. Omit it only when context resolves exactly one plan.
7
-
8
- ## Instructions
9
-
10
- 1. Call `plan_context` and use the current persisted plan, including changes authored through chat.
11
- 2. Call `plan_review` once. If a review exists for the current plan revision, apply its feedback using the update workflow's mutation rules. If no review exists, continue directly.
12
- 3. Call `plan_validate` with `strict: true`. Address validation issues and stop on unresolved errors or Design above 800 words.
13
- 4. Mark the draft ready with `plan_update_status`.
14
- 5. Use one `ask_user_question` call to choose the next action. Choices are foreground execution, background execution, execute later, or continue planning. When execution is selected, also ask for `no-commit`, `commit`, or `push` mode.
15
- 6. Call `diffpi_modes_unset` before returning so finalization exits to the default inline mode. For execution, return the exact `/plan go <short-slug> --mode <mode>` command, adding `--bg` for background execution. Do not call `plan_start_execution`; `/plan go` routes execution to Orchestrator.
@@ -1,20 +0,0 @@
1
- # go
2
-
3
- ## Arguments
4
-
5
- - **Invocation:** `/plan go <short-slug> [--mode <no-commit|commit|push>] [--bg]`
6
- - `<short-slug>` (required): Plan to execute.
7
- - `--mode no-commit` (optional, default): Execute without creating commits.
8
- - `--mode commit` (optional): Create one local commit after each completed phase. Do not push or monitor remote CI.
9
- - `--mode push` (optional): Create and push one commit after each completed phase, then monitor remote CI before completion.
10
- - `--bg` (optional): Launch the execution Orchestrator in the background and preserve the current foreground mode.
11
-
12
- ## Instructions
13
-
14
- 1. Call `plan_context` with the supplied slug.
15
- 2. Read the requested commit mode from `--mode`. Use `no-commit` when the flag is omitted. Do not ask the user to select a commit mode.
16
- 3. Reject values other than `no-commit`, `commit`, or `push`. The command parser normally performs this validation before invoking the workflow.
17
- 4. The command has already selected the foreground Orchestrator or launched the background Orchestrator. Continue as the current Orchestrator and launch implementation Workers as needed.
18
- 5. Call `plan_start_execution` with the selected commit mode. This tool initializes durable execution state and returns the execution packet. It does not select a mode, send another turn, or launch an agent.
19
- 6. In `no-commit` mode, do not create or push commits. In `commit` mode, create one local commit after each phase passes its gates, but do not push or monitor remote CI. In `push` mode, commit and push each phase, record pending CI, and launch a bounded background Worker to call `watch_ci` for the exact commit and then `plan_record_ci` for the phase while the next phase executes. Collect that monitor before the next push and collect all monitors before completion; failed or timed-out CI blocks execution.
20
- 7. For foreground execution, call `diffpi_modes_unset` after the plan is completed. Background execution must not change the foreground mode. Report the execution ID and selected commit mode.
@@ -1,20 +0,0 @@
1
- # help
2
-
3
- ## Arguments
4
-
5
- - **Invocation:** `/plan help`
6
- - This workflow accepts no arguments.
7
-
8
- ## Instructions
9
-
10
- Show these commands:
11
-
12
- - `/plan init <short-slug> [--branch <name>]` creates a phase-less draft.
13
- - `/plan new <short-slug> [--branch <name>] [--bg] [prompt...]` creates and populates a plan.
14
- - `/plan update [short-slug] [--branch <name>] [--bg] [instructions...]` applies the current plan review before other instructions.
15
- - `/plan annotate [short-slug]` reviews the plan with tuicr and saves an immutable review dump when tuicr closes.
16
- - `/plan finalize [short-slug]` validates and marks a plan ready.
17
- - `/plan go <short-slug> [--mode <no-commit|commit|push>] [--bg]` starts execution.
18
- - `/plan help` shows this reference.
19
-
20
- `--branch` records or filters a branch. It does not create or switch branches. Background workflows do not ask questions.
@@ -1,13 +0,0 @@
1
- # init
2
-
3
- ## Arguments
4
-
5
- - **Invocation:** `/plan init <short-slug> [--branch <name>]`
6
- - `<short-slug>` (required): Short, stable name used to identify the plan.
7
- - `--branch <name>` (optional): Branch metadata to record on the plan. It does not create or switch branches.
8
-
9
- ## Instructions
10
-
11
- 1. Call `plan_init` with the supplied slug and branch metadata. Include explicit intent, title and issue tracker id/url when available. The tool creates only `PLAN.md`.
12
- 2. Open `PLAN.md` in supported IDEs/terminals/multiplexers in a new or available chat-adjacent tab. Skip to next step if IDE/terminal/mux is unsupported.
13
- 3. Report the plan ID and path (clickable link so users can click to open in their environment). Explain that `/plan annotate` records a plan review and `/plan update` applies that plan review or direct chat instructions until `/plan finalize` is called.
@@ -1,20 +0,0 @@
1
- # new
2
-
3
- ## Arguments
4
-
5
- - **Invocation:** `/plan new <short-slug> [--branch <name>] [--bg] [prompt...]`
6
- - `<short-slug>` (required): Short, stable name used to identify the plan.
7
- - `--branch <name>` (optional): Branch metadata to record on the plan. It does not create or switch branches.
8
- - `--bg` (optional): Whether this is a background agent, or running in chat thread
9
- - `[prompt...]` (optional): Natural-language scope, requirements, or constraints for the plan.
10
-
11
- ## Instructions
12
-
13
- 1. Call `plan_context`, then `plan_init` if the supplied plan does not exist.
14
- 2. In foreground mode, if `prompt` is not provided, ask the user "What would you like to plan?". If its clear from recent chat or branch name what is going to be worked on, provide options for the user to choose from along with a free text entry option. Use `ask_user_question` only for decisions that materially change scope.
15
- 3. In background mode, never ask; record safe assumptions and stop with a blocker if ambiguity cannot be resolved.
16
- 4. Once goal is understood, ground the plan in repository files and the supplied prompt if chat has not established this context..
17
- 5. Use `plan_update_overview`, `plan_add_phase`, and `plan_update_phase` to create the plan. Use the planning tools to enforce the declared requirements, references, phase dependencies, file scopes, steps, and acceptance criteria; do not write PLAN.md by hand when a tool can make the change.
18
- 6. Create one implementation file per phase at `.diffpi/plan/<plan-id>/implementation/phase-<phase-id>.md`. Fill in the implementation template with the phase summary, file tree, public APIs and data contracts, required libraries or algorithms, and implementation constraints. Keep each phase focused on one or two modules or libraries, preferably one. The only exception is when scaffolding structures for new projects/modules/libraries/etc.
19
- 7. Keep Design near 300 words and call `plan_validate` in the background.
20
- 8. After validation, if in foreground mode, notify the user that you will continue updating the plan with continued conversation. In background mode, finish planning and notify the user that they can explicitly call `/plan update` if they want to make updates and re-enter plan mode. Also notify them to use `/plan finalize` when ready for implementation.
@@ -1,18 +0,0 @@
1
- # update
2
-
3
- ## Arguments
4
-
5
- - **Invocation:** `/plan update [short-slug] [--branch <name>] [--bg] [instructions...]`
6
- - `[short-slug]` (optional): Plan to update. Omit it only when exactly one plan candidate is selected.
7
- - `--branch <name>` (optional): Branch metadata used to select or update the plan. It does not create or switch branches.
8
- - `--bg` (optional): Whether workflow is running in a bacground agent or main chat thread.
9
- - `[instructions...]` (optional): Natural-language changes to apply after the current plan review.
10
-
11
- ## Instructions
12
-
13
- 1. Call `plan_context` with the supplied slug and branch metadata. Infer slug based on recency/chat if not provided.
14
- 2. Call `plan_review` before interpreting the supplied instructions. It returns the latest immutable tuicr review dump for the current plan revision. If no review exists, continue with the supplied instructions alone.
15
- 3. Apply the review feedback and then the explicit instructions through `plan_update_overview`, `plan_add_phase`, `plan_remove_phase`, or `plan_update_phase`. Updating the plan advances its revision, so the review dump will not be applied again.
16
- 4. In foreground mode, use `ask_user_question` for requests which need further discussion. In background mode, do not ask; address with best effort.
17
- 5. Call `plan_validate` and address any issues.
18
- 6. Tell the user they can continue updating the plan through chat, run `/plan annotate` for another review, finalize with `/plan finalize`, or proceed to implementation.
@@ -1,8 +0,0 @@
1
- # address
2
-
3
- 1. Read `Arguments.target` and `Arguments.local`.
4
- 2. Call `review_context`.
5
- 3. In local mode, call `review_dump`. This saves one immutable review revision and removes the completed tuicr session. Apply its feedback to the working tree, run relevant checks, then call `review_launch_ui` with `local: true` to begin the next revision. Local reviews have no replies or resolution state.
6
- 4. In remote mode, call `review_comments`. Classify every thread and apply only justified changes. Run relevant checks and commit fixes through `/git commit --no-push` when code changes.
7
- 5. For remote threads, call `review_respond` with a concise outcome. Leave the thread open unless the user explicitly requested resolution.
8
- 6. Report changed, answered, skipped, and remaining items. Do not publish, complete, or merge.
@@ -1,8 +0,0 @@
1
- # auto
2
-
3
- 1. Read `Arguments.target` and `Arguments.local`.
4
- 2. Call `review_context` with the selected target and backend.
5
- 3. Create or open the review with `review_new` or `review_edit`.
6
- 4. Run `review_gates`, then call `review_diff` and review only that change.
7
- 5. Produce grounded findings and call `review_submit`. Local findings stay in tuicr. Remote findings stay pending until `/review publish`.
8
- 6. Report the backend, findings, gate results, artifact, and launch instruction. Do not publish, complete, or merge.
@@ -1,7 +0,0 @@
1
- # complete
2
-
3
- 1. Read the typed target, local mode, and lifecycle action from `Arguments`.
4
- 2. Call `review_context`.
5
- 3. In local mode, call `review_dump` to save the final immutable revision and remove the completed tuicr session.
6
- 4. In remote mode, ask for a missing action, then call `review_complete` with `approve`, `reject`, or `abandon`.
7
- 5. Report the dump path or remote result. Do not merge.
@@ -1,7 +0,0 @@
1
- # edit
2
-
3
- 1. Read `Arguments.target` and `Arguments.local`.
4
- 2. Call `review_context`, then `review_edit`.
5
- 3. Local mode opens the current working-tree review revision. Remote mode opens the existing PR/MR in tuicr.
6
- 4. If no review exists, direct the user to `/review new`.
7
- 5. Report the launch result. Do not create findings or change lifecycle state.
@@ -1,14 +0,0 @@
1
- # help
2
-
3
- Show these commands:
4
-
5
- - `/review auto [target] [--local] [--bg]` generates findings.
6
- - `/review new [title] [--intent text] [--base branch] [--local] [--bg]` starts a review.
7
- - `/review edit [target] [--local] [--bg]` opens an existing review.
8
- - `/review address [target] [--local] [--bg]` applies feedback. Local mode dumps one revision and starts the next.
9
- - `/review publish [target] [--comment|--approve|--request-changes|--close] [--bg]` publishes remote review work.
10
- - `/review complete [target] [--local|--approve|--reject|--abandon] [--bg]` finishes without merging.
11
- - `/review merge [target] [--bg]` merges a green remote review.
12
- - `/review help` shows this reference.
13
-
14
- `--local` selects the working-tree tuicr flow. Local reviews are immutable revision dumps with no replies, resolution state, or remote promotion. Remote reviews use GitHub or GitLab comments and lifecycle operations directly. `--bg` launches an Orchestrator without changing the foreground mode.
@@ -1,6 +0,0 @@
1
- # merge
2
-
3
- 1. Local mode is not accepted; only remote reviews can merge.
4
- 2. Call `review_context` and confirm the PR is open, non-draft, mergeable, and green.
5
- 3. Ask for a conventional squash subject only when it cannot be derived.
6
- 4. Call `review_merge` and report the resulting merge.
@@ -1,7 +0,0 @@
1
- # new
2
-
3
- 1. Read `Arguments.title`, `Arguments.intent`, `Arguments.base`, and `Arguments.local`.
4
- 2. Call `review_context` with the selected backend.
5
- 3. Call `review_new`. Local mode opens a working-tree review in tuicr. Remote mode creates a draft PR/MR from a clean pushed branch and opens it in tuicr.
6
- 4. If the target exists, direct the user to `/review edit` instead.
7
- 5. Report the created target and launch instruction. Do not generate findings or publish it.
@@ -1,6 +0,0 @@
1
- # publish
2
-
3
- 1. Read the typed target and status flags from `Arguments`. The default is comment.
4
- 2. Local mode is not accepted; local reviews use immutable revision dumps and have no publish step.
5
- 3. Call `review_context`, then `review_publish` with the selected status.
6
- 4. Report the public review status and final PR/MR state. Publishing never merges.