@kindgi/runtime
npm install @kindgi/runtime · source
Kindgi™ runtime wire-vocabulary + binding interfaces.
The public shape of everything that flows across the Kindgi runtime
boundary: what a run looks like, what a journal entry looks like,
what triggers a run, and how a deployment plugs its runtime
implementation into createApp.
Types and pure derivation functions — no runtime state, and no dependency on a runtime implementation.
What lives here
Section titled “What lives here”Wire vocabulary
Section titled “Wire vocabulary”RunStatus,RunResult,RunOptionsJournalEntry,JournalKind- All fanout / subgraph / iteration / step payload types
- Kernel error shapes (
KernelError,RunNotFoundError,HandlerMissingError,WaitpointError, …) - Versioning envelope +
wrap/unwrap+EnvelopeErrorvariants - Event-bus channel +
KernelEventBusBinding - Derivation helpers (
deriveRunState,normalizeHandlerResult,waitResolutionKey) — pure functions over journal shape
Run inputs and records
Section titled “Run inputs and records”RunFlowInput,ResumeRunInput,StartRunParams,DeleteRunParamsand their error shapesFlowResolver(sub-flow lookup),HandlerResolver(handlers for each child flow),ParentRunRef(the parent node of a child run)KernelRunRecord(withoutputand theparentRunId/parentNodeId/parentScopefields),ListRunsInput(content scope,parent,topLevelOnly),ListRunsPage
Trigger surface
Section titled “Trigger surface”CronTriggerRecord,EventTriggerRecord,WebhookTriggerRecord- All
Register*Input/Update*Inputvariants +Get/Listinputs TriggerRegistryBinding(the caller-plugged binding)RunFlowBinding(turns a trigger fire into a run),TriggerFireContext,TriggerSource, trigger config and error shapesTRIGGER_KINDS,TriggerKind
Binding interfaces (deployment-plug-in contract)
Section titled “Binding interfaces (deployment-plug-in contract)”RunBinding—runGraph,resumeRun,cancelRun,cancelToken,completeToken,readJournal,startRun,deleteRun,getRun,listRunsSchedulerBinding— scheduler lifecycleWaitpointBinding— waitpoint-timeout sleeperRunRetentionBinding— retention adapterKernelBinding— umbrella that groups all four plusTriggerRegistryBinding+KernelEventBusBinding. WhatCreateAppInput.kernelBindingaccepts.
What does NOT live here
Section titled “What does NOT live here”- Pack-author authoring surface (
NodeHandler,NodeContext,HandlerResult,HandlerRegistry,LoopContext,WaitpointCancelledError) — those are in@kindgi/handler. - Concrete runtime functions — the Kindgi runtime implements them,
reached through the
KernelBindinginterface plugged intocreateApp. - Storage schema and migrations — implementation details of the Kindgi runtime.
License
Section titled “License”Apache License 2.0 — see LICENSE.