Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/agent / progress

progress

Structured progress-artifact IO. Persists UTF-8 text artifacts under <artifactRoot>/<runId>/progress/<role>.<seqPadded>.txt via atomic-write .tmp + rename discipline.

Cross-session continuity flow:

  1. The current agent calls agent.progress.write(content) — runtime persists the file, emits the agent.progress.written event, writes an audit row.
  2. A sibling / future agent calls agent.progress.read({ runId: priorRunId }) — runtime discovers existing files (no implicit auto-discovery; the operator must supply the runId cursor).

Auto-discovery across runs is deferred to v0.2.

Interfaces

InterfaceDescription
ProgressIOPublic surface returned by createProgressIO. Used by the agent runtime to back agent.progress.write / read.
ProgressIOConfigOptional configuration accepted by createProgressIO.
ProgressReadOptionsPer-call options for ProgressIO.read.
ProgressWriteOptionsPer-call options for ProgressIO.write.

Functions

FunctionDescription
createProgressIOBuild a ProgressIO bound to a particular artifact root.