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
This commit is contained in:
gsxdsm
2026-03-31 22:41:44 -07:00
parent 184b3b27a8
commit d4f6aa2cbe
25 changed files with 587 additions and 51 deletions

View File

@@ -1,14 +1,15 @@
{
"id": "KB-652",
"description": "Openai-codex in model selector should use the openai logo",
"column": "in-progress",
"column": "in-review",
"size": "S",
"reviewLevel": 0,
"currentStep": 2,
"currentStep": 4,
"worktree": "/Users/eclipxe/Projects/kb/.worktrees/eager-eagle",
"summary": "Successfully added `openai-codex` provider alias to display the OpenAI logo in the model selector. Added the mapping in `providerConfig` (ProviderIcon.tsx) with the same OpenAI icon and green color (#10a37f) as the `openai` entry. Added comprehensive test coverage including icon rendering and color verification tests. All 26 ProviderIcon tests pass, and the vite client build succeeds.",
"createdAt": "2026-04-01T02:36:05.138Z",
"updatedAt": "2026-04-01T05:38:10.485Z",
"columnMovedAt": "2026-04-01T05:37:52.867Z",
"updatedAt": "2026-04-01T05:40:50.420Z",
"columnMovedAt": "2026-04-01T05:40:50.420Z",
"dependencies": [],
"steps": [
{
@@ -21,11 +22,11 @@
},
{
"name": "Testing & Verification",
"status": "in-progress"
"status": "done"
},
{
"name": "Documentation & Delivery",
"status": "pending"
"status": "done"
}
],
"log": [
@@ -69,6 +70,27 @@
{
"timestamp": "2026-04-01T05:38:10.485Z",
"action": "Step 2 (Testing & Verification) → in-progress"
},
{
"timestamp": "2026-04-01T05:40:19.271Z",
"action": "Step 2 (Testing & Verification) → done"
},
{
"timestamp": "2026-04-01T05:40:19.272Z",
"action": "Step 3 (Documentation & Delivery) → in-progress"
},
{
"timestamp": "2026-04-01T05:40:44.410Z",
"action": "Step 3 verification complete",
"outcome": "ProviderIcon tests: 26/26 passing. Vite client build: successful. Pre-existing TypeScript errors in mission-routes.ts are outside file scope and unrelated to this change."
},
{
"timestamp": "2026-04-01T05:40:45.607Z",
"action": "Step 3 (Documentation & Delivery) → done"
},
{
"timestamp": "2026-04-01T05:40:47.339Z",
"action": "Task marked done by agent"
}
]
}