@difflab/pi 0.3.0 → 0.4.0-rc.202609231122.7b4400b
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 +22 -2
- package/agents/diffpi-orchestrator.md +12 -1
- package/agents/diffpi-planner.md +30 -0
- package/agents/diffpi-reviewer.md +4 -3
- package/agents/diffpi-worker.md +9 -1
- package/dist/assets.d.ts +1 -0
- package/dist/assets.d.ts.map +1 -1
- package/dist/cli/plan.d.ts +16 -0
- package/dist/cli/plan.d.ts.map +1 -0
- package/dist/cli.d.ts +4 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +7994 -0
- package/dist/commands/index.d.ts +1 -0
- package/dist/commands/index.d.ts.map +1 -1
- package/dist/commands/plan.d.ts +4 -0
- package/dist/commands/plan.d.ts.map +1 -0
- package/dist/commands/review.d.ts.map +1 -1
- package/dist/commands.d.ts +22 -0
- package/dist/commands.d.ts.map +1 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/environment.d.ts +3 -1
- package/dist/environment.d.ts.map +1 -1
- package/dist/extensions/fsx.d.ts +8 -0
- package/dist/extensions/fsx.d.ts.map +1 -0
- package/dist/extensions/index.js +13520 -2438
- package/dist/extensions/processx.d.ts +2 -0
- package/dist/extensions/processx.d.ts.map +1 -1
- package/dist/extensions/subagentx.d.ts +31 -0
- package/dist/extensions/subagentx.d.ts.map +1 -0
- package/dist/extensions/tuicrx.d.ts +7 -0
- package/dist/extensions/tuicrx.d.ts.map +1 -1
- package/dist/extensions/zedx.d.ts +2 -0
- package/dist/extensions/zedx.d.ts.map +1 -1
- package/dist/extensions/zodx.d.ts +8 -0
- package/dist/extensions/zodx.d.ts.map +1 -0
- package/dist/gates.d.ts +0 -1
- package/dist/gates.d.ts.map +1 -1
- package/dist/index.d.ts +9 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6037 -315
- package/dist/log.d.ts +15 -0
- package/dist/log.d.ts.map +1 -0
- package/dist/plan/index.d.ts +4 -0
- package/dist/plan/index.d.ts.map +1 -0
- package/dist/plan/markdown.d.ts +6 -0
- package/dist/plan/markdown.d.ts.map +1 -0
- package/dist/plan/operations.d.ts +43 -0
- package/dist/plan/operations.d.ts.map +1 -0
- package/dist/plan/reviews.d.ts +28 -0
- package/dist/plan/reviews.d.ts.map +1 -0
- package/dist/plan/store.d.ts +37 -0
- package/dist/plan/store.d.ts.map +1 -0
- package/dist/plan/types.d.ts +127 -0
- package/dist/plan/types.d.ts.map +1 -0
- package/dist/review/github-review-backend.d.ts.map +1 -1
- package/dist/review/gitlab-review-backend.d.ts.map +1 -1
- package/dist/review/index.d.ts +2 -2
- package/dist/review/index.d.ts.map +1 -1
- package/dist/review/review-markdown.d.ts.map +1 -1
- package/dist/review/review-state.d.ts +1 -0
- package/dist/review/review-state.d.ts.map +1 -1
- package/dist/review/types.d.ts +12 -1
- package/dist/review/types.d.ts.map +1 -1
- package/dist/setup.d.ts.map +1 -1
- package/dist/store.d.ts +2 -0
- package/dist/store.d.ts.map +1 -1
- package/dist/tools/ci.d.ts +6 -0
- package/dist/tools/ci.d.ts.map +1 -0
- package/dist/tools/index.d.ts +4 -1
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +7808 -814
- package/dist/tools/log.d.ts +3 -0
- package/dist/tools/log.d.ts.map +1 -0
- package/dist/tools/modes.d.ts.map +1 -1
- package/dist/tools/plan-schema.d.ts +211 -0
- package/dist/tools/plan-schema.d.ts.map +1 -0
- package/dist/tools/plan.d.ts +6 -0
- package/dist/tools/plan.d.ts.map +1 -0
- package/dist/tools/review.d.ts +27 -0
- package/dist/tools/review.d.ts.map +1 -1
- package/dist/vcs/github.d.ts.map +1 -1
- package/dist/vcs/gitlab.d.ts.map +1 -1
- package/dist/vcs/types.d.ts +10 -1
- package/dist/vcs/types.d.ts.map +1 -1
- package/dist/workflow.d.ts +33 -0
- package/dist/workflow.d.ts.map +1 -0
- package/package.json +11 -2
- package/skills/plan/SKILL.md +23 -0
- package/skills/review/SKILL.md +1 -1
- package/skills/review/references/review-standards.md +23 -0
- package/skills/review/references/workflows/address.md +3 -3
- package/skills/review/references/workflows/complete.md +1 -1
- package/skills/review/references/workflows/merge.md +1 -1
- package/skills/review/references/workflows/publish.md +4 -4
- package/templates/plan/PLAN.md +40 -0
- package/templates/plan/implementation.md +24 -0
- package/workflows/plan/annotate.md +13 -0
- package/workflows/plan/finalize.md +15 -0
- package/workflows/plan/go.md +20 -0
- package/workflows/plan/help.md +20 -0
- package/workflows/plan/init.md +13 -0
- package/workflows/plan/new.md +20 -0
- package/workflows/plan/update.md +18 -0
|
@@ -0,0 +1,20 @@
|
|
|
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.
|
|
@@ -0,0 +1,13 @@
|
|
|
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.
|
|
@@ -0,0 +1,20 @@
|
|
|
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.
|
|
@@ -0,0 +1,18 @@
|
|
|
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.
|