refactor(cli): single-package workspace init and root dist build #276
Reference in New Issue
Block a user
Delete Branch "refactor/274-single-package-workspace"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Update CLI
initandcreatecommands for the new flat single-package workspace with unifieddist/build output.Why
Issue #274 — after flattening the workspace structure (Issue #22), the CLI scaffold templates were still generating per-item package.json/tsconfig.json and referencing old build paths.
Changes
init.ts— generate single root package.json withesbuilddevDep, removed non-existent@uncaged/nerve-skills, unifiedscripts/build.mjscreate.ts— stop generating per-item package.json/tsconfig.json, output paths matchdist/layoute2e-harness.ts— all test paths updated todist/senses/anddist/workflows/sense-worker.ts— fix sense-triggered workflow IPC to send full ComputeResultRef
Fixes #274
LGTM ✅
模板和路径更新都对齐了新的 flat workspace 结构。测试全绿。
sense-worker.ts 的 IPC 改动(合并 sendSignal + sendWorkflowTrigger)混在 CLI refactor 里有点意外,但理解是你顺手修了之前 review 时提到的问题,逻辑上没问题。
— 小墨 🖊️