T3 Code Atlas

contracts/terminal

26 schemas in 1 file.

Nightlyv0.1.15-nightly.20261205.5786be521199aace· 2026-12-05

Blast radius

3 direct · 5 transitive workspaces · 6 apps affected

What a change to these 26 schemas can reach, from workspace dependencies, imports, call sites, and protocol edges.

Affected apps (browser, edge, electron-main, electron-preload, node, react-native, worker)
Contracts in its surface8 RPC
Framework
effect-schema
Shape
›{10 fields }
worktreePath?: TrimmedNonEmptyString | null
cols?: number
rows?: number
env?: Record<string, string>
providerInstanceId?: TrimmedNonEmptyString
stopOnSettle?: boolean
restartIfNotRunning?: boolean
resume?: boolean
maxHistoryBytes?: number
Framework
effect-schema
Shape
›union8 members · discriminated by type
›| "snapshot"{2 fields }
type: "snapshot"
›| "output"{2 fields }
type: "output"
data: string
›| "exited"{3 fields }
type: "exited"
exitCode: number | null
exitSignal: number | null
›| "closed"{1 field }
type: "closed"
›| "error"{2 fields }
type: "error"
message: string
›| "cleared"{2 fields }
type: "cleared"
pendingControlSequence?: string
›| "restarted"{2 fields }
type: "restarted"
›| "activity"{5 fields }
type: "activity"
hasRunningSubprocess: boolean
label: string
cols?: number
rows?: number
Framework
effect-schema
Shape
›{2 fields }
deleteHistory?: boolean
Framework
effect-schema
Shape
›{2 fields }
_tag: "TerminalCwdNotDirectoryError"
cwd: string
Framework
effect-schema
Shape
›{2 fields }
_tag: "TerminalCwdNotFoundError"
cwd: string
Framework
effect-schema
Shape
›{3 fields }
_tag: "TerminalCwdStatError"
cwd: string
cause: unknown
Framework
effect-schema
Shape
›union8 members · discriminated by type
›| "started"{2 fields }
type: "started"
›| "output"{2 fields }
type: "output"
data: string
›| "exited"{3 fields }
type: "exited"
exitCode: number | null
exitSignal: number | null
›| "closed"{1 field }
type: "closed"
›| "error"{2 fields }
type: "error"
message: string
›| "cleared"{2 fields }
type: "cleared"
pendingControlSequence?: string
›| "restarted"{2 fields }
type: "restarted"
›| "activity"{5 fields }
type: "activity"
hasRunningSubprocess: boolean
label: string
cols?: number
rows?: number
Framework
effect-schema
Shape
›{5 fields }
_tag: "TerminalHistoryError"
operation: "read" | "truncate" | "migrate"
threadId: string
terminalId: string
cause?: unknown
Framework
effect-schema
Shape
›union3 members · discriminated by type
›| "snapshot"{3 fields }
type: "snapshot"
terminals: TerminalSummary[]
managerId?: string
›| "upsert"{2 fields }
type: "upsert"
terminal: TerminalSummary
›| "remove"{3 fields }
type: "remove"
threadId: string
terminalId: string
Framework
effect-schema
Shape
›{3 fields }
_tag: "TerminalNotRunningError"
threadId: string
terminalId: string
Framework
effect-schema
Shape
›{1 field }
supportsSnapshotSequenceState?: boolean
Framework
effect-schema
Shape
›{7 fields }
worktreePath?: TrimmedNonEmptyString | null
cols?: number
rows?: number
env?: Record<string, string>
providerInstanceId?: TrimmedNonEmptyString
stopOnSettle?: boolean
Framework
effect-schema
Shape
›{1 field }
_tag: "TerminalProcessChangedError"
Framework
effect-schema
Shape
›{3 fields }
_tag: "TerminalProviderEnvironmentError"
providerInstanceId: TrimmedNonEmptyString
cause: unknown
Framework
effect-schema
Shape
›{2 fields }
_tag: "TerminalProviderInstanceNotFoundError"
providerInstanceId: TrimmedNonEmptyString
Framework
effect-schema
Shape
›{7 fields }
_tag: "TerminalResizeError"
threadId: string
terminalId: string
terminalPid: number
cols: number
rows: number
cause: unknown
Framework
effect-schema
Shape
›{2 fields }
cols: number
rows: number
Framework
effect-schema
Shape
›{3 fields }
_tag: "TerminalSessionLookupError"
threadId: string
terminalId: string
Framework
effect-schema
Shape
›{17 fields }
threadId: string
terminalId: string
cwd: string
worktreePath: TrimmedNonEmptyString | null
pid: number | null
supportsConditionalWrites?: boolean
history: string
historySequenceState?: number
exitCode: number | null
exitSignal: number | null
label: string
updatedAt: string
sequence?: number
cols?: number
rows?: number
error?: string
Framework
effect-schema
Shape
"starting" | "running" | "exited" | "error"
Framework
effect-schema
Shape
›{11 fields }
threadId: string
terminalId: string
cwd: string
worktreePath: TrimmedNonEmptyString | null
pid: number | null
exitCode: number | null
exitSignal: number | null
hasRunningSubprocess: boolean
label: string
updatedAt: string
Framework
effect-schema
Shape
›{5 fields }
_tag: "TerminalWriteError"
threadId: string
terminalId: string
terminalPid: number
cause: unknown
Framework
effect-schema
Shape
›{6 fields }
data: string
bracketedPaste?: "start" | "continue" | "end" | "abort"
plainWrite?: "start" | "continue" | "end" | "abort"
binary?: boolean
reply?: boolean
expectedPid?: number
Powered by Everdoc. Compiled from source by static analysis; no LLM in the loop.Nightly v0.1.15-nightly.20261205.5786be521199aace2026-12-05