Cotal TypeScript packages
    Preparing search index...

    Interface ServiceAdapterContext

    interface ServiceAdapterContext {
        attempt?: ServiceAdapterAttempt;
        cliInvocation?: readonly string[];
        credentialRef?: { kind: "file"; path: string };
        definition: string;
        definitionRevision: string;
        envRefs?: Readonly<Record<string, string>>;
        instanceId: string;
        launchRequestId: string;
        managerIdleExit?: number;
        managerSeatCap?: SeatCap;
        options: Readonly<Record<string, unknown>>;
        space: string;
        stack?: ControllerStackView;
        stateDirectory: string;
    }
    Index

    Launch-only inputs bound to one maintenance attempt. Never part of a saved definition, an instance record or a receipt; only the controller's resume passes it, and each adapter accepts only its own closed fields (see serviceAdapterAttempt).

    cliInvocation?: readonly string[]
    credentialRef?: { kind: "file"; path: string }
    definition: string
    definitionRevision: string
    envRefs?: Readonly<Record<string, string>>

    The definition's environment references by name, child variable to controller variable. No value is passed; an adapter reads this to refuse a child environment it cannot check against.

    instanceId: string
    launchRequestId: string
    managerIdleExit?: number

    This start's --idle-exit, in seconds: the manager stops once it has held no agents that long. Launch-only: never part of a saved definition, so a later start without it runs until stopped.

    managerSeatCap?: SeatCap

    This start's explicit manager cap. The manager records it only once it starts serving.

    options: Readonly<Record<string, unknown>>
    space: string

    Launch-only facts of the root's controller stack journal, passed to a manager-service launch while that root holds a maintenance journal. The adapter compares them through admittedControllerRestore; they grant nothing by themselves and are never saved.

    stateDirectory: string