UNPKG

trellis

Version:

Agentic State Engine — event-sourced causal graph with branching, decision traces, and realtime sync for AI-native applications

45 lines 1.32 kB
/** * Kernel adapter — read `trellis:Form` override entities out of the graph. * * The resolve path is pure; this module bridges it to a live kernel. The * reader is structural, so a `TrellisKernel` (or any layer exposing * `listEntities` / `getEntity`) satisfies it. * * @module trellis/forms */ import type { Atom } from '../core/store/eav-store.js'; import type { FormEntityLike } from './types.js'; /** Minimal structural view of a kernel for reading override entities. */ export interface FormKernelReader { listEntities(type?: string): Array<{ id: string; type: string; facts: Array<{ a: string; v: Atom; }>; links: Array<{ a: string; e2: string; }>; }>; getEntity(id: string): { id: string; type: string; facts: Array<{ a: string; v: Atom; }>; links: Array<{ a: string; e2: string; }>; } | null; } /** * Read all `Form` override entities from a kernel, resolving their * `fields` relation in one pass. Returns entities ready for * {@link resolveFormDescriptor}. */ export declare function readFormOverrides(reader: FormKernelReader): FormEntityLike[]; //# sourceMappingURL=kernel.d.ts.map