feat(coding-agent): added advisor CLI flag for runtime advisor enabling

- Added a new `--advisor` flag to argument parsing and launch flag definitions.
- Applied the parsed `advisor` flag as a runtime-only override of `advisor.enabled` during startup.
- Updated advisor-related docs and added parseArgs tests for `--advisor` behavior and position handling.
This commit is contained in:
can1357
2026-06-17 02:14:11 +02:00
parent 8eeb707387
commit ce9db56066
6 changed files with 51 additions and 2 deletions
+3
View File
@@ -33,6 +33,7 @@ export interface Args {
appendSystemPrompt?: string;
thinking?: Effort;
hideThinking?: boolean;
advisor?: boolean;
continue?: boolean;
resume?: string | true;
help?: boolean;
@@ -194,6 +195,8 @@ export function parseArgs(inputArgs: string[], extensionFlags?: Map<string, { ty
result.noPty = true;
} else if (arg === "--hide-thinking") {
result.hideThinking = true;
} else if (arg === "--advisor") {
result.advisor = true;
} else if (arg === "--print" || arg === "-p") {
result.print = true;
} else if (arg === "--no-extensions") {
@@ -260,6 +260,7 @@ export const VALUELESS_FLAGS: ReadonlySet<string> = new Set([
"--no-lsp",
"--no-pty",
"--hide-thinking",
"--advisor",
"--print",
"--no-extensions",
"--no-skills",