diff options
| author | Adam Malczewski <[email protected]> | 2026-06-12 20:13:55 +0900 |
|---|---|---|
| committer | Adam Malczewski <[email protected]> | 2026-06-12 20:13:55 +0900 |
| commit | 020e051040001320955a70d6dcaab2d833013196 (patch) | |
| tree | 1a0921487ae3c89befdbccc1754cd399c07ce1b9 /packages/cli/src/message.ts | |
| parent | 35197ed933044d322d0a653c4e88a5f3e475fe76 (diff) | |
| download | dispatch-020e051040001320955a70d6dcaab2d833013196.tar.gz dispatch-020e051040001320955a70d6dcaab2d833013196.zip | |
feat(reasoning-effort): persisted per-conversation + per-turn override, threaded to providers
- conversation-store: get/setReasoningEffort (own key space, mirrors cwd)
- session-orchestrator: resolveReasoningEffort (override -> stored -> 'high'),
StartTurnInput.reasoningEffort, warm() parity (cache-safe)
- transport-http: /chat validation (400 on bad level) + GET/PUT
/conversations/:id/reasoning-effort
- transport-ws: chat.send threading + validation
- cli: --effort <low|medium|high|xhigh|max>
993 vitest + 189 bun tests green; typecheck + biome clean.
Diffstat (limited to 'packages/cli/src/message.ts')
| -rw-r--r-- | packages/cli/src/message.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/cli/src/message.ts b/packages/cli/src/message.ts index 0c3f538..80befec 100644 --- a/packages/cli/src/message.ts +++ b/packages/cli/src/message.ts @@ -5,7 +5,7 @@ * and builds a ChatRequest from a parsed command. */ -import type { ChatRequest } from "@dispatch/transport-contract"; +import type { ChatRequest, ReasoningEffort } from "@dispatch/transport-contract"; interface ComposeInput { readonly text?: string; @@ -37,6 +37,7 @@ interface ChatCmd { readonly file?: string | undefined; readonly cwd?: string | undefined; readonly conversationId?: string | undefined; + readonly reasoningEffort?: ReasoningEffort | undefined; readonly showReasoning: boolean; } @@ -51,5 +52,6 @@ export function buildChatRequest(cmd: ChatCmd, ctx: BuildCtx): ChatRequest { model: cmd.modelName, ...(cmd.conversationId !== undefined && { conversationId: cmd.conversationId }), ...(cmd.cwd !== undefined ? { cwd: cmd.cwd } : { cwd: ctx.cwd }), + ...(cmd.reasoningEffort !== undefined && { reasoningEffort: cmd.reasoningEffort }), }; } |
