trellis
Version:
Agentic State Engine — event-sourced causal graph with branching, decision traces, and realtime sync for AI-native applications
43 lines • 1.37 kB
TypeScript
/**
* Trellis UI Server
*
* Lightweight HTTP server that exposes the TrellisVCS engine
* as a JSON API and serves the System Visualizer client.
*
* Endpoints:
* GET / → client.html (System Visualizer)
* GET /theme/runtime-theme.css → shared runtime theme contract
* GET /api/graph → full graph (nodes + edges)
* GET /api/timeline → causal op stream with branch lanes & markers
* GET /api/store → EAV store overview (stats, catalog, entities)
* GET /api/store/entity/:id → full detail for one entity
* GET /api/system → system architecture metadata
* GET /api/search → semantic search (?q=...&limit=10&type=...)
* GET /api/node/:id → node detail
*/
export interface GraphNode {
id: string;
label: string;
type: 'file' | 'milestone' | 'issue' | 'branch';
meta: Record<string, unknown>;
}
export interface GraphEdge {
source: string;
target: string;
type: 'milestone_file' | 'issue_branch' | 'wikilink' | 'causal';
label?: string;
}
export interface GraphData {
nodes: GraphNode[];
edges: GraphEdge[];
}
export interface UIServerOptions {
rootPath: string;
port?: number;
open?: boolean;
}
export declare function startUIServer(opts: UIServerOptions): Promise<{
port: number;
stop: () => void;
}>;
//# sourceMappingURL=server.d.ts.map