spawn-ts API reference - v0.6.0
    Preparing search index...

    Interface LifecycleHooks

    Daemon-enforced lifecycle hooks, written to spawn:* tags at launch and run by spored ON THE INSTANCE — spawn-ts (a browser launcher) cannot execute these itself. Every field maps to the identically-named tag(s) the Go tool writes (pkg/aws/tags.go), so a real spored honors a spawn-ts launch. All optional.

    interface LifecycleHooks {
        activeProcesses?: string;
        notifyCommand?: string;
        notifyPlatform?: string;
        notifyUrl?: string;
        preStop?: string;
        preStopTimeoutMs?: number;
        spotWebhookUrl?: string;
        webhookCorrelation?: string;
        webhookTimeoutMs?: number;
    }
    Index
    activeProcesses?: string

    Comma-separated process names that keep the box non-idle while running. spawn:active-processes.

    notifyCommand?: string

    Slash command routing hint for the notify bot. spawn:notify-command.

    notifyPlatform?: string

    Notification platform, e.g. "slack" | "teams" | "discord". spawn:notify-platform.

    notifyUrl?: string

    Lifecycle-notification target URL (Slack/Teams/Discord bot). spawn:notify-url.

    preStop?: string

    Shell command run on-instance before any lifecycle-triggered stop/terminate. spawn:pre-stop.

    preStopTimeoutMs?: number

    Timeout for the pre-stop hook (Go duration, e.g. "5m"). spawn:pre-stop-timeout.

    spotWebhookUrl?: string

    URL spored POSTs to on a spot-interruption notice. spawn:spot-webhook-url.

    webhookCorrelation?: string

    Opaque blob echoed back in the webhook payload for correlation. spawn:webhook-correlation.

    webhookTimeoutMs?: number

    Webhook POST timeout (Go duration). spawn:webhook-timeout.