From f9121b3c23367789f4bc3569c56b2c3c48f7d0fb Mon Sep 17 00:00:00 2001 From: tegwick Date: Wed, 8 Jul 2026 15:07:19 +0200 Subject: [PATCH] Complete State Hub bootstrap (JSUI-WP-0001); add JSUI-WP-0002 --- .claude/rules/stack-and-commands.md | 22 ++++++++-------- SCOPE.md | 3 +-- workplans/JSUI-WP-0001-statehub-bootstrap.md | 14 +++++++--- .../JSUI-WP-0002-npm-publication-readiness.md | 26 +++++++++++++++++++ 4 files changed, 48 insertions(+), 17 deletions(-) create mode 100644 workplans/JSUI-WP-0002-npm-publication-readiness.md diff --git a/.claude/rules/stack-and-commands.md b/.claude/rules/stack-and-commands.md index dc53ac6..733d328 100644 --- a/.claude/rules/stack-and-commands.md +++ b/.claude/rules/stack-and-commands.md @@ -1,19 +1,19 @@ ## Stack - -- **Language:** -- **Key deps:** +- **Language:** JavaScript (ESM) + optional Python adapter +- **Key deps:** Rollup, Jest, marked (peer); see `package.json`, `pyproject.toml` ## Dev Commands ```bash -# TODO: Fill in the standard commands for this repo +npm install +npm run build +npm test +npm run test:coverage +npm run lint +make test # JS + Python bridge tests +make build -# Install dependencies - -# Run tests - -# Lint / type check - -# Build / package (if applicable) +# After workplan edits +statehub fix-consistency ``` diff --git a/SCOPE.md b/SCOPE.md index e0cee4e..123dae5 100644 --- a/SCOPE.md +++ b/SCOPE.md @@ -1,7 +1,6 @@ # SCOPE -> This file was generated by `statehub register`. Refine it as the repository -> boundaries become clearer. +> Lightweight boundary for agents and contributors. ## One-liner diff --git a/workplans/JSUI-WP-0001-statehub-bootstrap.md b/workplans/JSUI-WP-0001-statehub-bootstrap.md index b6e928c..8c4afe8 100644 --- a/workplans/JSUI-WP-0001-statehub-bootstrap.md +++ b/workplans/JSUI-WP-0001-statehub-bootstrap.md @@ -4,7 +4,7 @@ type: workplan title: "Bootstrap State Hub integration" domain: infotech repo: testdrive-jsui -status: ready +status: finished owner: codex topic_slug: custodian created: "2026-07-08" @@ -20,11 +20,13 @@ TestDrive-JSUI is a standalone, JavaScript-first markdown editor and UI library ```task id: JSUI-WP-0001-T01 -status: todo +status: done priority: high state_hub_task_id: "38e4aa05-9029-44cc-aba0-143c73b30a22" ``` +Result 2026-07-08: INTENT.md and SCOPE.md reviewed; AGENTS.md and brief confirmed accurate. + Review `INTENT.md`, `SCOPE.md`, `AGENTS.md`, and `.custodian-brief.md`. Replace generated placeholders with repo-specific facts where needed. @@ -32,11 +34,13 @@ Replace generated placeholders with repo-specific facts where needed. ```task id: JSUI-WP-0001-T02 -status: todo +status: done priority: high state_hub_task_id: "c88f1cf4-54da-4874-8b1e-690becea0ede" ``` +Result 2026-07-08: Documented npm/jest/rollup workflow in stack-and-commands.md. + Identify the repo's install, test, lint, build, and run commands. Add or refine those commands in the agent instructions so future coding sessions can verify changes confidently. @@ -45,11 +49,13 @@ changes confidently. ```task id: JSUI-WP-0001-T03 -status: todo +status: done priority: medium state_hub_task_id: "cea89446-78af-415e-b0b5-cab8d75f66b6" ``` +Result 2026-07-08: Created JSUI-WP-0002. + Create the first implementation workplan for the repository's most important next change. After workplan file updates, run the sync locally from this repo checkout: diff --git a/workplans/JSUI-WP-0002-npm-publication-readiness.md b/workplans/JSUI-WP-0002-npm-publication-readiness.md new file mode 100644 index 0000000..35d0975 --- /dev/null +++ b/workplans/JSUI-WP-0002-npm-publication-readiness.md @@ -0,0 +1,26 @@ +--- +id: JSUI-WP-0002 +type: workplan +title: "NPM publication readiness" +domain: infotech +repo: testdrive-jsui +status: ready +owner: codex +topic_slug: custodian +created: "2026-07-08" +updated: "2026-07-08" +--- + +# NPM publication readiness + +Finish bundling and publication prep for standalone npm distribution (Rollup CJS/ESM/UMD, browser smoke tests, prepublish checks). + +## Publication readiness checklist + +```task +id: JSUI-WP-0002-T01 +status: todo +priority: high +``` + +Execute NPM_PUBLICATION_PLAN.md phases: verify dist formats, browser test HTML files, prepublishOnly hook, and README install examples.