From 3414a19ce6f40b072cb0f1981cbdb9c609adf514 Mon Sep 17 00:00:00 2001 From: Justin Parker Date: Thu, 8 Oct 2026 07:22:26 -0700 Subject: [PATCH] Add the changelog skill and dashboard card to v2.6.0 AI Assisted --- .agents-docs/AGENTS-architecture.md | 4 +- CHANGELOG.md | 1 + QUICK-REFERENCE.md | 1 + README.md | 2 + install.js | 11 + package.json | 2 +- scripts/test-script-changelog.mjs | 186 ++++++++ scripts/test-web-console.mjs | 15 +- .../changelog-state.mjs | 396 ++++++++++++++++++ src/plan2code-changelog.md | 59 +++ src/plan2code.md | 3 +- src/web-console/console.md | 26 +- src/web-console/console.mjs | 2 +- src/web-console/public/answers.js | 17 + src/web-console/public/app.css | 3 + src/web-console/public/index.html | 27 ++ src/web-console/public/meter.js | 8 +- src/web-console/public/subagents.js | 2 +- 18 files changed, 754 insertions(+), 11 deletions(-) create mode 100644 scripts/test-script-changelog.mjs create mode 100644 src/plan2code-changelog-scripts/changelog-state.mjs create mode 100644 src/plan2code-changelog.md diff --git a/.agents-docs/AGENTS-architecture.md b/.agents-docs/AGENTS-architecture.md index 1090196..dc7ad52 100644 --- a/.agents-docs/AGENTS-architecture.md +++ b/.agents-docs/AGENTS-architecture.md @@ -104,6 +104,7 @@ plan2code/ | `plan2code-review.md` | review | Post-implementation comprehensive review | | `plan2code-4-finalize.md` | 4 | Validate, summarize, feedback, archive (steps 1–7, +optional 6.5) | | `plan2code-handoff.md` | handoff | Compact the conversation into a self-contained handoff document for a fresh session | +| `plan2code-changelog.md` | changelog | Check the CHANGELOG version against the default branch, suggest editable entries for new work, keep `package.json` aligned, offer Git commit | | `plan2code-git-commit.md` | git-commit | Commit with a clear message, suggested splits, a branch offer on the default branch, and an optional push | ## Naming Convention @@ -149,6 +150,7 @@ Anything a workflow step decides with one correct answer (parsing a spec's check | `pathfinder.mjs` (own) | 0-pathfinder | `reconcile`, `frontier`, `claim`, `resolve`, `rule-out`, `trail`, `gate`, `lint`, `brief-data` | | `feedback-payload.mjs` (own) | 4-finalize | STEP 6.5's payload (real sha256 prompt hashes) and the gh / browser / print submission tiers | | `handoff-path.mjs` (own) | handoff | Timestamped path, OS temp dir, git ignore check | +| `changelog-state.mjs` (own) | changelog | `state`, `bump`, `set-package-version`: the default branch's version, whether the branch's entry can be extended (not released, not on another branch), the file's heading style, the gap since the entry was last touched; only `set-package-version` writes, and only the version field | | `git-state.mjs` (own) | git-commit | `state`, `branch-check`, `init-check`: the repo snapshot, branch-name check and git init safety check, read-only | **Conventions** (`common.mjs`): Node 18+ built-ins only; one JSON object on stdout (`ok: false` plus `error`, `message`, `next` on a handled failure, the same line on stderr); exit 0 ok, 1 crash, 2 bad arguments, 3 not found, 4 invalid or check failed, 5 refused; `--help` documents commands and exit codes; writes take `--dry-run`; `PLAN2CODE_NOW` pins the clock for tests. A SKILL.md names a script as `node "/.mjs"`, where `` is `scripts/` beside it. @@ -245,7 +247,7 @@ Key design points: - **Help is in the page, built on first open.** The **?** button (`#btn-about`) opens ``, which replaced the old "What this page is" About dialog. Its 17 panels and their icon sheet are hand-written HTML and SVG in `