UNPKG

trellis

Version:

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

29 lines (27 loc) 603 B
import { createDialogCore } from "../../chunk-N4IEHPCJ.js"; import { syncFromCore } from "../../chunk-TSOAW5E2.js"; import "../../chunk-2ESYSVXG.js"; // src/dialog/vue/index.ts import { reactive } from "vue"; function asDialogCore(input) { return "actions" in input ? input : createDialogCore(input); } function useDialogVue(input = {}) { const core = asDialogCore(input); const state = reactive({ ...core.state }); syncFromCore(state, core); return { get state() { return state; }, actions: core.actions, subscribe: core.subscribe }; } export { useDialogVue };