feat: add raw session args/opts for agent passthrough

This commit is contained in:
Nathan Flurry 2026-02-05 11:32:39 -08:00
parent 375d73e4cb
commit 2f26f76d9b
14 changed files with 365 additions and 37 deletions

View file

@ -64,6 +64,10 @@ export interface components {
permissions: boolean;
planMode: boolean;
questions: boolean;
/** @description Whether this agent supports raw CLI arguments passed at session creation */
rawSessionArgs: boolean;
/** @description Whether this agent supports raw options passed at session creation */
rawSessionOptions: boolean;
reasoning: boolean;
sessionLifecycle: boolean;
/** @description Whether this agent uses a shared long-running server process (vs per-turn subprocess) */
@ -156,6 +160,12 @@ export interface components {
model?: string | null;
permissionMode?: string | null;
variant?: string | null;
/** @description Raw CLI arguments to pass to the agent (for CLI-based agents like Claude, OpenCode, Amp) */
rawSessionArgs?: string[] | null;
/** @description Raw options to pass to the agent (for long-running server agents like Codex) */
rawSessionOptions?: {
[key: string]: unknown;
} | null;
};
CreateSessionResponse: {
error?: components["schemas"]["AgentError"] | null;