spacehub

surshar / claude-code

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

Built by Anthropic · github.com/anthropics

claude-code / mods / telemetry / tests / fixtures / session-options.ts
19 lines · 720 BRaw
1import type { HttpResponse, SessionAuthorization } from 'claude-code'
2
3import type { PolicyOption } from './policy-option.js'
4
5/**
6 * How a test's session differs from the plain one.
7 *
8 * What `authorize` and the ingest answer in turn (`refused`: the store will
9 * not open; the last repeats), the managed policy (`unreadable` when it
10 * cannot be read), and the machine's files, markers and probe output.
11 */
12export type SessionOptions = {
13 readonly authorizations?: readonly (SessionAuthorization | 'refused')[]
14 readonly answers?: readonly HttpResponse[]
15 readonly policy?: PolicyOption
16 readonly files?: Readonly<Record<string, string>>
17 readonly existing?: readonly string[]
18 readonly probeOutput?: string
19}