NPM Package
Use the npm package when you are writing and versioning flows in a project.
Install the package and, when you want editor feedback, TypeScript:
npm i @twelvehart/orcatsnpm i -D typescriptbunx -p @twelvehart/orcats orcats --versionBun >=1.3.0 must be on PATH. The npm package’s POSIX orcats launcher
clears ambient BUN_OPTIONS before entering Bun.
Flow files import from the public package surface:
import { flow, flowArgs, llm, selectBackend } from "@twelvehart/orcats";Run a flow with:
bunx -p @twelvehart/orcats orcats --backend codex .orca/workflows/my-flow.ts -- "task input"Check a workflow or import-safe loop without running it:
bunx -p @twelvehart/orcats orcats check .orca/workflows/my-flow.tsThe checker is self-contained and offline; target-repository TypeScript setup is not required.
Read task input through flowArgs():
import { flowArgs } from "@twelvehart/orcats";
const args = flowArgs();Do not read task input from process.argv; the CLI also uses argv for the flow path and flags.
Use the standalone binary only when you need an orcats executable that can run without a local node_modules install.