Skip to main content

Interface: Dialect

Properties

defaultCmd

readonly defaultCmd: string


finishMissionOnExit

readonly finishMissionOnExit: boolean


hostedConnectors

readonly hostedConnectors: boolean


id

readonly id: string


maxPromptBytes?

readonly optional maxPromptBytes?: number


permissionModel

readonly permissionModel: "none" | "mcp-bridge" | "sandbox"


persistentProcess

readonly persistentProcess: boolean


rateLimitReporting

readonly rateLimitReporting: "none" | "structured" | "textual"


sessionResumable

readonly sessionResumable: boolean


sessionStore

readonly sessionStore: "global" | "per-mission"

Methods

accountUsage()?

optional accountUsage(profile): Promise<AccountUsage | null>

Parameters

profile

ProfileRuntime

Returns

Promise<AccountUsage | null>


buildSpawn()

buildSpawn(opts, profile): Promise<SpawnResult>

Parameters

opts

BuildSpawnOpts

profile

ProfileRuntime

Returns

Promise<SpawnResult>


dispose()?

optional dispose(missionId): void

Parameters

missionId

string

Returns

void


extractSessionId()

extractSessionId(ev): string | null

Parameters

ev

NormalizedEvent

Returns

string | null


isSessionNotFoundError()?

optional isSessionNotFoundError(stderr): boolean

Parameters

stderr

string

Returns

boolean


parseLine()

parseLine(line): NormalizedEvent[]

Parameters

line

string

Returns

NormalizedEvent[]


setModel()?

optional setModel(proc, model): Promise<boolean>

Parameters

proc

ChildProcessWithoutNullStreams

model

string

Returns

Promise<boolean>


spans()?

optional spans(ev, state, eventId): SpanOp[]

Parameters

ev

NormalizedEvent

state

SpanState

eventId

number

Returns

SpanOp[]


writeUserInput()

writeUserInput(proc, text, images?): void

Parameters

proc

ChildProcessWithoutNullStreams

text

string

images?

ImageAttachment[]

Returns

void