refactor: organize workflow/src into 6 module folders #104
Reference in New Issue
Block a user
Delete Branch "refactor/102-module-folders"
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
Organize 34 flat modules in
packages/workflow/src/into 6 cohesive folders.Why
Improve navigability and enforce dependency direction:
util ← cas ← extract ← engine,util ← registry ← bundle.Changes
cas/— cas.ts, merkle.ts, hash.ts, gc.tsregistry/— registry.ts, registry-types.ts, registry-normalize.tsbundle/— bundle-validator.ts, bundle-import-env.ts, ensure-uncaged-workflow-symlink.ts, extract-bundle-exports.ts, workflow-descriptor.ts, build-descriptor.ts, generate-descriptor.tsextract/— extract-fn.ts, llm-extract.ts, react-extract.tsengine/— engine.ts, worker.ts, worker-entry-path.ts, create-workflow.ts, thread-pause-gate.ts, fork-thread.tsutil/— base32.ts, ulid.ts, result.ts, logger.ts, storage-root.ts, refs-field.tsNo logic changes — only file locations and import paths. 54 files touched, 165 insertions/deletions (all import path updates).
Verification
bun run check✅bun run test— 93 pass, 0 fail ✅Ref
Refs #102
e2ea18f4b0to7e9ca4a6dc7e9ca4a6dctocf17dedac3