infragrid package provides a typed Runbook builder, Runbook lifecycle
methods, and Run polling helpers for Node.js 18 or newer.
The unscoped npm package is documented from the
codex/sdk-runbooks preview.
Do not replace an existing production dependency until its registry release is announced.Install
Create a client
Build a Runbook
primitive() for an exact action. Use agent() for a bounded semantic step
that may adapt using only its declared primitive allowlist. Every step declares
its surface, effect, risk, application scope, and completion condition.
Run a published Runbook
Methods
Pass an
AbortSignal to runs.wait() to interrupt polling.
Errors
All exported error classes derive fromInfragridError. Authentication,
permission, missing-resource, conflict, rate-limit, timeout, connection, and
server failures have specific subclasses.