trellis
Version:
Agentic State Engine — event-sourced causal graph with branching, decision traces, and realtime sync for AI-native applications
22 lines • 1.01 kB
TypeScript
/**
* Palette core — headless command palette state machine (ADR 0034 pilot).
*
* Framework-free and DOM-free: query filtering, selection, grouping, and
* empty/loading states live here and are verified in Node. Adapters
* (`trellis/palette/react|vue|svelte|vanilla`) bind it per framework.
*
* const palette = createPaletteCore({
* items: [{ id: 'tr-1', label: 'Open Task', keywords: ['task', 'open'], group: 'Graph' }],
* onSelect: (item) => navigate(item.id),
* });
* palette.subscribe(() => render(palette.state));
* palette.actions.open();
* palette.actions.setQuery('open ta');
* palette.actions.select();
*
* @module trellis/palette
*/
import type { PaletteConfig, UsePaletteReturn } from './types.js';
export type { PaletteActions, PaletteConfig, PaletteFilter, PaletteGroup, PaletteItem, PaletteState, UsePaletteReturn, } from './types.js';
export declare function createPaletteCore(config: PaletteConfig): UsePaletteReturn;
//# sourceMappingURL=index.d.ts.map