feat(KB-619): add CLI multi-project commands and --project flag support

- Add project-resolver module for centralized project resolution
- Add project subcommands: list, add, remove, info/show
- Add --project flag to task and settings commands
- Integrate project resolution into CLI entry point
- Update types for defaultProjectId setting
This commit is contained in:
gsxdsm
2026-04-01 07:16:10 -07:00
parent a8dbd95d8c
commit 51303c897a
8 changed files with 873 additions and 444 deletions

View File

@@ -521,9 +521,9 @@ export interface GlobalSettings {
/** ntfy.sh topic name for push notifications. When set along with ntfyEnabled,
* notifications are sent to https://ntfy.sh/{topic} when tasks complete or fail. */
ntfyTopic?: string;
/** The default project ID for CLI operations when --project flag is not provided.
* Used to determine which project to operate on when not in a project directory.
* Set via `kb project set-default <name>`. */
/** Default project ID to use when no explicit project is specified and
* no project can be auto-detected from the current directory.
* Used for multi-project CLI workflows. */
defaultProjectId?: string;
}