Cotal TypeScript packages
    Preparing search index...

    Interface SpawnRequest

    interface SpawnRequest {
        cwd?: string;
        events?: boolean;
        inline?: InlineSpawnDefinition;
        join?: readonly ChannelHandleValue[];
        model?: string;
        onFork?: "respawn" | "adopt";
        permits?: Readonly<Record<string, unknown>>;
        persona: string;
        placement?: { endpoint: string; instanceId: string };
        role?: string;
        runtime?: string;
        supervise?: Readonly<Record<string, unknown>>;
        variant?: string;
        worktree?: string;
    }
    Index
    cwd?: string

    Existing absolute directory on the serving manager's host. Separate from logical worktree identity.

    events?: boolean

    false starts the agent without its event plane, for a connector that publishes none. Omitted, the host's default applies.

    Present for an inline spawn. model and variant are then the definition's own.

    join?: readonly ChannelHandleValue[]
    model?: string
    onFork?: "respawn" | "adopt"

    What a fork does with this agent: spawn a fresh one, or reuse the original. Default respawn.

    permits?: Readonly<Record<string, unknown>>
    persona: string

    The catalog persona, or an inline persona's name.

    placement?: { endpoint: string; instanceId: string }

    The manager INSTANCE this spawn is pinned to. A cwd is host-local, so it is only meaningful against a named host; a class-anycast request carrying a local path lands wherever the queue fell. This is the EXISTING endpoint target descriptor, not a new one: endpoint + instanceId is what describeEndpoint/resolveService already accept (packages/core/src/endpoint-invoke.ts :100-106), and :113 turns instanceId into the EpRoute { mode: "inst" } rail. Required whenever cwd is present; omitted cwd keeps the legacy class-anycast behaviour exactly.

    role?: string
    runtime?: string

    The terminal runtime this one seat launches on. Omitted, the serving manager uses its own.

    supervise?: Readonly<Record<string, unknown>>
    variant?: string
    worktree?: string