Graphorin API reference v0.1.0
Graphorin API reference / @graphorin/server / registry
registry
Registry plumbing that lets the server route handlers locate user- defined agents, workflows, sessions, memory, skills, and MCP server bindings without taking a hard peer dependency on every sibling package.
Every entry is keyed by string id; lookups never throw — callers receive undefined and the route handler decides how to surface the miss (typically a 404 with a typed error body).
Classes
| Class | Description |
|---|---|
| AgentRegistry | Read/write registry for agents the server should expose. Every mutation is synchronous and the lookup is O(1). |
| WorkflowRegistry | - |
Interfaces
| Interface | Description |
|---|---|
| AgentRegistration | Registration descriptor accepted by AgentRegistry.register. |
| AgentSummary | Snapshot record returned by AgentRegistry.list. |
| ServerAgentLike | Minimal shape the server needs from an Agent. Compatible with the Agent interface from @graphorin/agent but kept structurally so we avoid the peer dependency. |
| ServerWorkflowLike | Minimal shape the server needs from a Workflow. Mirrors the Workflow surface from @graphorin/workflow. |
| WorkflowRegistration | Registration descriptor accepted by WorkflowRegistry.register. |
| WorkflowSummary | Snapshot record returned by WorkflowRegistry.list. |