Cotal TypeScript packages
    Preparing search index...

    Class StartupConfirmGate

    Honors LaunchSpec.confirm for a runtime that owns the child's output. Both pty runtimes use it, so a gate that fails ends the seat the same way whichever one owns the child.

    Index
    • Throws for a prompt that can never match, so a runtime refuses it before it starts a child. Choices, ready texts and a notice are read from the screen; a bare prompt is matched in the output.

      Parameters

      • prompt: string
      • before: readonly StartupReply[] = []
      • ready: readonly string[] = []
      • blockers: readonly StartupBlocker[] = []
      • Optionalnotice: string

      Returns StartupConfirmGate

    • The failure becomes the exit's diagnostic, because a TUI may never show it where an operator looks.

      Parameters

      • diagnostic: ConnectorDiagnosticReader
      • failure: StartupConfirmFailure
      • Optionalpane: { key(key: "Down" | "Enter"): void; read(): string | undefined }

      Returns void

    • End confirmation authority before stopping the child or processing further output. A watch disarmed before it ended records failed: no positive outcome without the read that ended it.

      Returns void

    • True once, for the chunk that completes the prompt; the runtime answers it with Enter.

      Parameters

      • chunk: string

      Returns boolean