claude-code-driver / ClaudeSessionOptions
Interface: ClaudeSessionOptions
Defined in: api/options.ts:17
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
claude? | object | - | api/options.ts:32 |
claude.bin? | string | - | api/options.ts:32 |
claude.expectVersion? | string | - | api/options.ts:32 |
cwd | string | - | api/options.ts:18 |
debug? | object | - | api/options.ts:43 |
debug.raw? | "none" | "meta" | "full" | - | api/options.ts:43 |
debug.trace? | string | - | api/options.ts:43 |
effort? | string | - | api/options.ts:25 |
env? | object | - | api/options.ts:33 |
env.inherit? | "minimal" | "all" | - | api/options.ts:33 |
env.set? | Readonly<Record<string, string>> | - | api/options.ts:33 |
extraArgs? | readonly string[] | Allowlisted CLI flags (§3.3). | api/options.ts:30 |
idle? | object | Stop Claude after the session has been idle (quiescent, no open prompt of any kind) for suspendAfterMs (≥ 1000). The next send, command, usage or setMode resumes the same conversation first (ICR 0041). | api/options.ts:42 |
idle.suspendAfterMs? | number | - | api/options.ts:42 |
logger? | Logger | Operator logger; structured metadata only, never prompt or tool content. | api/options.ts:45 |
model? | string | - | api/options.ts:24 |
network? | boolean | Opt-in CONNECT channel (faults only via unstable_advanced). | api/options.ts:36 |
permissionMode? | PermissionMode | - | api/options.ts:26 |
permissions | | NamedPolicy | PermissionHandler | { onTimeout?: "deny" | "tui"; policy: NamedPolicy | PermissionHandler; timeoutMs?: number; } | REQUIRED (rev2 §10 E2): 'deny' | 'ask' | 'allowRead' | 'dangerouslyAllowAll' | handler function. | api/options.ts:20 |
resume? | string | - | api/options.ts:28 |
sessionId? | string | - | api/options.ts:27 |
signal? | AbortSignal | Aborting it = close({ mode: 'kill' }). | api/options.ts:47 |
trust? | "require" | "seed" | - | api/options.ts:34 |
unstable_advanced? | Readonly<Record<string, unknown>> | Validated against the internal spec at runtime; unstable, may change in any minor. | api/options.ts:49 |
usageLimit? | object | - | api/options.ts:37 |
usageLimit.autoResume? | boolean | - | api/options.ts:37 |
usageLimit.resumePrompt? | string | - | api/options.ts:37 |