@usestoke/sdk
v0.1.7
Published
Project-local stoke authoring API and runtime daemon package.
Readme
@usestoke/sdk
Project-local stoke authoring API and runtime daemon package.
Configs should import authoring helpers from this package:
import { env, workflow } from "@usestoke/sdk";Inside a task handler, console.log, console.info, console.debug, console.warn, and console.error are intercepted and streamed to the runtime as structured log.output events with a level. The CLI renders each level distinctly (debug dim, log default, warn yellow, error red). Set STOKE_NO_CONSOLE_INTERCEPT=1 to disable the intercept and write to the host's terminal instead.
Provider VM commands can also report incremental stdout/stderr through
ExecOptions.onOutput; the runtime forwards those chunks over the same run
session and falls back to buffered command output when a provider cannot stream.
Local hosts start the project daemon through the stoke-project-runtime binary
installed by this package.
