@uoyo/mvtt 2.0.0 → 2.2.0
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/dist/cli.js +2 -2
- package/dist/cli.js.map +1 -1
- package/dist/commands/update.d.ts +1 -1
- package/dist/commands/update.d.ts.map +1 -1
- package/dist/commands/update.js +18 -1
- package/dist/commands/update.js.map +1 -1
- package/dist/fs/core-manifest.d.ts +4 -3
- package/dist/fs/core-manifest.d.ts.map +1 -1
- package/dist/fs/core-manifest.js +5 -4
- package/dist/fs/core-manifest.js.map +1 -1
- package/dist/fs/materialize.d.ts +2 -0
- package/dist/fs/materialize.d.ts.map +1 -1
- package/dist/fs/materialize.js +6 -5
- package/dist/fs/materialize.js.map +1 -1
- package/dist/fs/registry-merge.d.ts +4 -3
- package/dist/fs/registry-merge.d.ts.map +1 -1
- package/dist/fs/registry-merge.js +5 -4
- package/dist/fs/registry-merge.js.map +1 -1
- package/dist/scripts/epic-update.cjs +235 -207
- package/dist/scripts/epic-update.md +57 -0
- package/dist/scripts/plan-update.cjs +224 -222
- package/dist/scripts/plan-update.md +68 -0
- package/dist/scripts/session-update.cjs +229 -210
- package/install-manifest.yaml +4 -0
- package/package.json +1 -1
- package/sources/defaults/config.yaml +5 -0
- package/sources/scripts/epic-update.js +73 -22
- package/sources/scripts/epic-update.md +57 -0
- package/sources/scripts/plan-update.js +56 -28
- package/sources/scripts/plan-update.md +68 -0
- package/sources/scripts/session-update.js +68 -24
- package/sources/sections/activation-protocol.md +46 -0
- package/sources/sections/footer-next-steps.md +1 -1
- package/sources/sections/language-constraint.md +3 -18
- package/sources/sections/output-format-constraint.md +6 -9
- package/sources/sections/role-header.md +1 -1
- package/sources/sections/script-usage-rule.md +32 -0
- package/sources/sections/session-update.md +30 -110
- package/sources/skills/mvt-analyze/business.md +1 -1
- package/sources/skills/mvt-analyze/manifest.yaml +13 -16
- package/sources/skills/mvt-analyze-code/business.md +3 -0
- package/sources/skills/mvt-analyze-code/manifest.yaml +11 -15
- package/sources/skills/mvt-bug-detect/manifest.yaml +3 -4
- package/sources/skills/mvt-check-context/business.md +2 -2
- package/sources/skills/mvt-check-context/manifest.yaml +3 -6
- package/sources/skills/mvt-cleanup/business.md +47 -11
- package/sources/skills/mvt-cleanup/manifest.yaml +12 -13
- package/sources/skills/mvt-config/business.md +45 -49
- package/sources/skills/mvt-config/manifest.yaml +21 -25
- package/sources/skills/mvt-create-skill/business.md +15 -11
- package/sources/skills/mvt-create-skill/manifest.yaml +6 -9
- package/sources/skills/mvt-decompose/business.md +21 -9
- package/sources/skills/mvt-decompose/manifest.yaml +15 -17
- package/sources/skills/mvt-design/business.md +35 -44
- package/sources/skills/mvt-design/manifest.yaml +13 -15
- package/sources/skills/mvt-fix/business.md +7 -1
- package/sources/skills/mvt-fix/manifest.yaml +9 -13
- package/sources/skills/mvt-help/business.md +20 -9
- package/sources/skills/mvt-help/manifest.yaml +7 -18
- package/sources/skills/mvt-implement/business.md +27 -34
- package/sources/skills/mvt-implement/manifest.yaml +12 -21
- package/sources/skills/mvt-init/manifest.yaml +10 -13
- package/sources/skills/mvt-manage-context/business.md +4 -2
- package/sources/skills/mvt-manage-context/manifest.yaml +3 -6
- package/sources/skills/mvt-plan-dev/business.md +20 -8
- package/sources/skills/mvt-plan-dev/manifest.yaml +13 -17
- package/sources/skills/mvt-quick-dev/business.md +1 -1
- package/sources/skills/mvt-quick-dev/manifest.yaml +3 -4
- package/sources/skills/mvt-refactor/business.md +1 -1
- package/sources/skills/mvt-refactor/manifest.yaml +3 -4
- package/sources/skills/mvt-resume/business.md +3 -3
- package/sources/skills/mvt-resume/manifest.yaml +10 -13
- package/sources/skills/mvt-review/business.md +12 -11
- package/sources/skills/mvt-review/manifest.yaml +17 -18
- package/sources/skills/mvt-status/business.md +12 -21
- package/sources/skills/mvt-status/manifest.yaml +7 -10
- package/sources/skills/mvt-sync-context/business.md +20 -18
- package/sources/skills/mvt-sync-context/manifest.yaml +11 -15
- package/sources/skills/mvt-template/business.md +5 -5
- package/sources/skills/mvt-template/manifest.yaml +3 -6
- package/sources/skills/mvt-test/business.md +11 -11
- package/sources/skills/mvt-test/manifest.yaml +15 -18
- package/sources/skills/mvt-update-plan/business.md +18 -29
- package/sources/skills/mvt-update-plan/manifest.yaml +18 -16
- package/sources/templates/analyze-output/body.md +41 -0
- package/sources/templates/decompose-output/body.md +36 -0
- package/sources/templates/design-output/body.md +48 -0
- package/sources/templates/implement-output/body.md +48 -3
- package/sources/templates/project-context/body.md +45 -0
- package/sources/templates/review-output/body.md +59 -0
- package/sources/templates/test-output/body.md +72 -0
- package/sources/sections/activation-load-config.md +0 -11
- package/sources/sections/activation-load-context.md +0 -59
- package/sources/sections/activation-preflight.md +0 -14
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# Plan Update Script — Full Reference
|
|
2
|
+
|
|
3
|
+
> **This file is the authoritative usage reference for `plan-update.cjs`.**
|
|
4
|
+
> Read this file before calling the script. Do NOT read the `.cjs` or `.js` source to learn flag names or semantics.
|
|
5
|
+
|
|
6
|
+
## Command
|
|
7
|
+
|
|
8
|
+
```bash
|
|
9
|
+
node .ai-agents/scripts/plan-update.cjs \
|
|
10
|
+
--plan "<active_change.plan_path>" \
|
|
11
|
+
--task <task_id> \
|
|
12
|
+
--projects "<comma,separated,project,names>" \
|
|
13
|
+
[--status <pending|in_progress|done|blocked|skipped>] \
|
|
14
|
+
[--artifacts "<comma,separated,paths>"] \
|
|
15
|
+
[--notes "<free-form text>"] \
|
|
16
|
+
[--deliverables-pointer current] \
|
|
17
|
+
[--mark-deliverable-stale <task_id>[,task_id2,...]]
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Read-only validation mode:
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
node .ai-agents/scripts/plan-update.cjs --validate "<draft-plan-path>" [--projects "<comma,separated,project,names>"]
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
Include `--artifacts`, `--notes`, `--deliverables-pointer`, and `--mark-deliverable-stale` only when the skill's logic determines they apply; omit each flag otherwise.
|
|
27
|
+
|
|
28
|
+
## Argument values
|
|
29
|
+
|
|
30
|
+
| Argument | Value source | Example |
|
|
31
|
+
|----------|-------------|---------|
|
|
32
|
+
| `--plan` | `active_change.plan_path` resolved from session.yaml | `".ai-agents/workspace/artifacts/chg-001/plan.yaml"` |
|
|
33
|
+
| `--task` | the `task_id` being updated (resolved by the skill's Step 1) | `t1` |
|
|
34
|
+
| `--status` | optional; the new status: `pending` / `in_progress` / `done` / `blocked` / `skipped` | `done` |
|
|
35
|
+
| `--projects` | comma-separated project names from `project-context.yaml > projects[].name` (single-project: the sole project name) | `"web,api"` |
|
|
36
|
+
| `--artifacts` | optional; comma-separated paths to append (the script de-duplicates) | `"src/auth.ts,src/auth.test.ts"` |
|
|
37
|
+
| `--notes` | optional; overwrites the task's `notes` | `"blocked on API spec"` |
|
|
38
|
+
| `--deliverables-pointer` | optional; set to `current` to record that this task's deliverables section is written | `current` |
|
|
39
|
+
| `--mark-deliverable-stale` | optional; comma-separated downstream task ids whose deliverables are now stale | `"t3,t4"` |
|
|
40
|
+
| `--validate` | optional read-only validation target; accepts the plan path as its value | `".ai-agents/workspace/artifacts/chg-001/plan.yaml"` |
|
|
41
|
+
|
|
42
|
+
## Parameter semantics
|
|
43
|
+
|
|
44
|
+
| Argument | When to use | Effect on `plan.yaml` |
|
|
45
|
+
|----------|-------------|------------------------|
|
|
46
|
+
| `--task` + optional `--status` | Use `--status` for status transitions; omit it for metadata-only updates such as deliverables freshness | When present, sets the task status; sets `completed_at` to now when `done`, else `null`; refreshes `plan.updated_at`. When omitted, status, `completed_at`, DAG advancement, and `current_tasks` are left unchanged. |
|
|
47
|
+
| `--projects` | Always (per-project validation) | Drives per-project DAG advancement of `current_tasks` and per-project validation. Required for correct multi-project plans. |
|
|
48
|
+
| `--artifacts` | Task produced or touched files | Appends + de-duplicates paths into the task's `artifacts.files`; handles `artifacts: null`. |
|
|
49
|
+
| `--notes` | Task needs a free-form note | Overwrites the task's existing `notes`. |
|
|
50
|
+
| `--deliverables-pointer` + `--mark-deliverable-stale` | Task wrote its deliverables section (e.g. `/mvt-implement` Step 8) | Records the deliverables pointer on the task; marks the listed downstream tasks' deliverables as stale so `/mvt-resume` and `/mvt-status` surface a warning. Use both flags together in a single invocation. |
|
|
51
|
+
| `--validate` | `/mvt-plan-dev` has assembled a draft plan before final write | Parses and validates the plan, prints JSON on success, and never writes the file. |
|
|
52
|
+
|
|
53
|
+
## What the script does (deterministically)
|
|
54
|
+
|
|
55
|
+
1. **Apply**: when `--status` is present, sets the task status and `completed_at`; appends + de-duplicates `--artifacts`; overwrites `--notes`; refreshes `plan.updated_at`.
|
|
56
|
+
2. **Recompute `current_tasks`** only when `--status` is present (per-project independent advancement): for each project, finds the `in_progress` task or advances the first `pending` task whose `depends_on` are all in `resolvedIds` (done + skipped; blocked does NOT satisfy). Detects `project_switch` when advancement crosses a project boundary. Plan done -> `current_tasks = {}`.
|
|
57
|
+
3. **Validate** the mutated plan (unique ids, valid `depends_on` references, DAG/no-cycle per project, one `in_progress` per project, every task has acceptance, `completed_at` consistency, `current_tasks` validity, project naming constraint, task project membership).
|
|
58
|
+
4. **Write atomically** (temp + rename) only if validation passes.
|
|
59
|
+
|
|
60
|
+
## Output interpretation
|
|
61
|
+
|
|
62
|
+
- **Exit 0**: success. stdout is a single-line JSON object, e.g.:
|
|
63
|
+
```json
|
|
64
|
+
{"ok":true,"task":{"id":"t1","title":"...","old_status":"in_progress","new_status":"done"},"current_tasks":{"default":"t2"},"plan_status":"in_progress","progress":{"done":1,"total":4},"warning":null,"project_switch":null}
|
|
65
|
+
```
|
|
66
|
+
Use these fields directly to render output. The file is already written — do NOT read it back to verify. If `warning` is non-null, surface it. If `project_switch` is non-null, note the project boundary crossing.
|
|
67
|
+
- **Exit 1**: failure. stderr carries the error (invalid status, task not found, validation failure, parse/write error). The file was **not** modified. Report the error to the user and do not fabricate a success summary.
|
|
68
|
+
- **Read-only validation**: exit 0 stdout is `{"ok":true,"plan_status":"...","tasks":N}`. Exit 1 stderr carries parse or validation errors; no file is modified.
|