@tramo/spec
v0.2.0
Published
The tramo workflow spec — pure-data types, document utilities, and the canonical node-definition registry. Shared between the editor (tramo) and every runtime (@tramo/runtime, future tramo-runtime-py).
Maintainers
Readme
@tramo/spec
Pure-data contract for the tramo workflow ecosystem.
This package defines what a tramo workflow is on the wire. It contains:
- The
WorkflowDoc/WorkflowNode/WorkflowEdgedocument types. - The
Patchunion — the only legal way to mutate a doc. - Pure document utilities:
applyPatch,topoSort,getIncomingEdges, etc. - The canonical
BUILTIN_NODESregistry — the IDs and config-field shapes every runtime keys on. SPEC_VERSION— bumped only on breaking changes.
It has zero React, zero fetch, zero Node-only deps. The editor (tramo) consumes it for typing and rendering; every runtime (@tramo/runtime, future tramo-runtime-py) consumes it for execution. Keeping the contract in one place is how the editor and the runtimes stay honest with each other.
