Jordan Ritter
af35569d7d
chore(showcase/packages): QA markdown parity + integration tooling
...
Rename hitl.md → hitl-in-chat.md across all 17 showcase packages,
add shared-state-read / shared-state-write / shared-state-streaming /
gen-ui-agent / subagents QA docs where missing, update demos/hitl
README cross-links. Refresh showcase/shell + shell-dojo registry +
demo-content JSON to match new QA shape. Update integration tooling
(audit, create-integration, bundle-demo-content, generate-registry,
validate-parity, capture-previews, manifest lib) + e2e tests to the
new parity contract.
2026-04-22 11:00:46 -07:00
Jordan Ritter
161707a61c
refactor(showcase/scripts): split audit.test.ts by scenario category
...
Replaces the monolithic audit.test.ts (3034 lines, 119 tests, ~71s single-file
on Node 22 CI) with three scenario-scoped files, each comfortably under the
60s birpc onTaskUpdate RPC window (vitest #6129 ):
- audit.unit.test.ts (59 tests, ~40ms local) — readManifest, countFiles,
EACCES-on-spec-dir, findExamplesSource (all three describes),
parseArgs, BORN_IN_SHOWCASE, SLUG_TO_EXAMPLES, isProgrammerBug,
UnreadableDirError, canonicalizeForIsMain, listShowcasePackageSlugs.
- audit.audit-package.test.ts (44 tests, ~510ms local) — auditPackage
(main + direct-caller invariants), buildReport (main + scalar summary
+ --strict exit code), parseArgs --strict/--columns, computeExitCode
--strict semantics.
- audit.cli.test.ts (16 tests, ~8.2s local) — main() CLI exit codes,
--columns filtering, module isMain guard. Isolated here so the
per-file fork window absorbs all the subprocess cost.
Tests moved, not copied — 119 + 0 + 0 = 119 total preserved. Helpers live in
audit.shared.ts (extracted in the previous commit).
Per-file caps hold with generous margin on CI: even the subprocess-heavy
CLI file (the worst case) is ~8s locally vs the 60s budget.
2026-04-18 19:17:01 -07:00