Skip to main content

Documentation Index

Fetch the complete documentation index at: https://smithers.sh/llms.txt

Use this file to discover all available pages before exploring further.

import { renderFrame } from "smithers-orchestrator";

const snap = await renderFrame(workflow, {
  runId: "preview",
  iteration: 0,
  input: { task: "preview" },
  outputs: {},
});

snap.frameNo;       // 0
snap.tasks;         // TaskDescriptor[]
snap.xml;           // XmlNode tree (see Types)
TaskDescriptor and GraphSnapshot are defined in Types. Same shape the runtime extracts on every render frame; renderFrame doesn’t execute or persist. outputs lets you simulate completed upstream tasks:
const snap = await renderFrame(workflow, {
  runId: "sim", iteration: 0, input: { x: 1 },
  outputs: {
    analyze: [{ runId: "sim", nodeId: "analyze", iteration: 0, summary: "..." }],
  },
});
CLI equivalent:
bunx smithers-orchestrator graph workflow.tsx --input '{"task":"preview"}'