Commit Graph

8 Commits

Author SHA1 Message Date
gsxdsm
c671beae96 feat(KB-503): add multi-project CLI support with project subcommands
- Add project subcommands: list, add, remove, show, set-default, detect
- Add --project flag support for all task commands
- Create project-context.ts utilities for project resolution
- Add defaultProjectId to GlobalSettings type
- Implement project auto-detection from cwd
- Update CLI argument parsing for global --project flag
- Add multi-project CLI documentation to AGENTS.md
2026-04-01 07:02:15 -07:00
gsxdsm
112b49bbdd feat(KB-622): WIP - executor and test fixes for unified comments 2026-03-31 23:43:01 -07:00
gsxdsm
6e5e6ebcc9 feat(KB-503): Step 4 — add --project flag support to key task commands
- Import getStore from project-context.js
- Update runTaskCreate() to accept projectName parameter
- Update runTaskList() to accept projectName parameter
- Update runTaskShow() to accept projectName parameter
- Pattern established for remaining task commands (TODO)
2026-03-31 22:46:42 -07:00
gsxdsm
1f9ca33702 feat(KB-503): complete Step 3 — CLI argument parsing updates
- Add project command imports to bin.ts
- Update HELP text with project subcommands and --project flag
- Add project subcommand routing (list, add, remove, show, set-default, detect)
- Parse --isolation and --force flags for project add/remove
- All project command tests passing (6/6)
2026-03-31 22:46:17 -07:00
gsxdsm
4a3fe64758 fix(KB-503): remove duplicate getDefaultProject function
- Import getDefaultProject from project-context.js instead of duplicating
- Remove local getDefaultProject implementation in project.ts
- All 6 tests still passing
2026-03-31 22:43:59 -07:00
gsxdsm
cc88db5d62 fix(KB-503): fix process.exit mock in project tests
- Add proper process.exit mock that throws error for testability
- All 6 project command tests now passing
2026-03-31 22:42:57 -07:00
gsxdsm
e80441e599 feat(KB-503): complete Step 2 — project subcommand implementation
- Create project.ts with all project commands: list, add, remove, show, set-default, detect
- Implement runProjectList() with default project highlighting
- Implement runProjectAdd() with validation for name, path, isolation mode
- Implement runProjectRemove() with confirmation prompt and --force flag
- Implement runProjectShow() with project details and health info
- Implement runProjectSetDefault() to set default project
- Implement runProjectDetect() to show project from CWD
- Add project.test.ts with basic function export tests
2026-03-31 22:41:44 -07:00
gsxdsm
e3055f8d93 fix(KB-503): address code review feedback for Step 1
- Add optional globalDir parameter to resolveProject(), getDefaultProject(),
  setDefaultProject(), and clearDefaultProject() for test isolation
- Remove ESLint suppression by using void operator for intentionally unused var
- Update all tests to use isolated globalDir parameter
- Complete tests for default project resolution
2026-03-31 22:38:56 -07:00