@theokit/sdk-pty
v0.3.3
Published
Local interactive-shell backend for @theokit/sdk — a node-pty implementation of InteractiveBackend. Opt-in, terminal-surface only; node-pty is optional so install never fails on a native build.
Readme
@theokit/sdk-pty
Local, node-pty-backed implementation of @theokit/sdk's InteractiveBackend.
Opt-in and terminal-surface only — this is the ONLY package in the theokit
ecosystem that depends on node-pty (optionally, so install never fails on a
native build). Core / @theokit/sdk-tools / cluster / desktop backends never
touch it.
import { PtyInteractiveBackend } from "@theokit/sdk-pty";
// inject into an interactive shell tool that depends on InteractiveBackend
const interactive = new PtyInteractiveBackend();When node-pty is unavailable (or a spawn fails), every method throws the SDK's
typed InteractiveUnavailableError so the caller falls back to non-interactive exec.
