Skip to content

Commit 21209a2

Browse files
committed
docs(cli): add TSDoc for mapThinkingLevel helper
1 parent 10a0c6b commit 21209a2

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎packages/cli/src/cli-harness.ts‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,12 @@ function providerBaseUrlOverride(provider: string): string | undefined {
487487
return value && value.length > 0 ? value : undefined;
488488
}
489489

490+
/**
491+
* Normalize CLI `--thinking` values to canonical harness thinking levels.
492+
*
493+
* Defaults to `"low"` when the flag is unset or empty, and throws when the
494+
* input does not match a supported level.
495+
*/
490496
export function mapThinkingLevel(raw: string | undefined): "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" {
491497
const v = (raw ?? "low").trim().toLowerCase();
492498
switch (v) {

0 commit comments

Comments
 (0)