UNPKG

trellis

Version:

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

25 lines (23 loc) 521 B
import { createDialogCore } from "../../chunk-N4IEHPCJ.js"; import { toSvelteStore } from "../../chunk-TSOAW5E2.js"; import "../../chunk-2ESYSVXG.js"; // src/dialog/svelte/index.ts function asDialogCore(input) { return "actions" in input ? input : createDialogCore(input); } function createDialogStore(input = {}) { const core = asDialogCore(input); return { state: toSvelteStore(core), top: toSvelteStore(core, (s) => s.top), actions: core.actions, core }; } export { createDialogStore };