UNPKG

trellis

Version:

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

23 lines 995 B
/** * Palette Vue — `usePaletteVue` composable (ADR 0034). * * Import from `trellis/palette/vue`: * * const { state, actions } = usePaletteVue({ items, onSelect }); * <input :value="state.query" @input="actions.setQuery(($event.target as HTMLInputElement).value)" /> * * State is a Vue `reactive` object mirrored from the core via the shared * `syncFromCore` bridge (same pattern as `trellis/forms/vue`). * * @module trellis/palette/vue */ import type { PaletteConfig, UsePaletteReturn } from '../core/index.js'; /** Accept either a config (fresh core) or an existing core (shared mount). */ export type PaletteInput = PaletteConfig | UsePaletteReturn; /** * Create a reactive Vue palette. The core's state is mirrored into a * `reactive()` object on every mutation. Pass a config for a fresh core, or * an existing core to share one mount across adapters. */ export declare function usePaletteVue(input: PaletteInput): UsePaletteReturn; //# sourceMappingURL=index.d.ts.map