@opentag/local-runtime
v0.2.0
Published
Local OpenTag dispatcher, daemon, and diagnostics runtime helpers.
Readme
@opentag/local-runtime
Local OpenTag runtime helpers used by @opentag/cli.
Use this package when embedding the same local dispatcher, daemon, diagnostics, and GitHub PR helpers that the CLI uses.
Install
pnpm add @opentag/local-runtimeExports
startDispatcher: starts the local dispatcher with callback sinks.serveDaemon: starts the local daemon loop.createDaemonRuntimeInput: derives daemon runtime input from config.runDoctor: checks dispatcher, bindings, checkouts, and executors.parseDaemonConfig: parses daemon config with compatibility aliases.maybeCreatePullRequest: creates GitHub pull requests from prepared run branches.
Subpath exports are also available:
import { startDispatcher } from "@opentag/local-runtime/dispatcher";
import { serveDaemon } from "@opentag/local-runtime/daemon";
import { runDoctor } from "@opentag/local-runtime/doctor";Requirements
- Node.js 20 or newer.
- A writable SQLite database path for the dispatcher.
- A local checkout for any Project Target you bind.
Stability
This package is the local runtime boundary for the CLI. Keep app wrappers thin and put reusable local runtime behavior here.
