refactor: flatten role folders into single .ts files (develop-sense & develop-workflow) #13
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
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
Each role under
develop-sense/roles/anddevelop-workflow/roles/currently has a folder withindex.ts+prompt.ts. Theindex.tsfiles are trivially short (6 lines, just schema + type). Merge them into single.tsfiles and remove the folders.Current Structure
Same structure for
develop-workflow/roles/.Target Structure
Same for
develop-workflow/roles/.Rules
index.tsandprompt.tsinto a single<role>.tsfile, then delete the folder.committer/: it only hasindex.ts(re-export from_shared), just move it tocommitter.tsand delete the folder.build.ts(and anywhere else that imports from these roles) — change./roles/planner/index.js→./roles/planner.jsetc.pnpm buildat repo root to verify.Scope
workflows/develop-sense/roles/— 5 rolesworkflows/develop-workflow/roles/— 5 rolesworkflows/develop-sense/build.ts— update importsworkflows/develop-workflow/build.ts— update imports