Skip to main content
The 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

Use 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 from InfragridError. Authentication, permission, missing-resource, conflict, rate-limit, timeout, connection, and server failures have specific subclasses.
Last modified on August 28, 2026