trellis
Version:
Agentic State Engine — event-sourced causal graph with branching, decision traces, and realtime sync for AI-native applications
47 lines • 1.25 kB
TypeScript
/**
* Compact graph summary for room MCP — token-efficient agent orientation.
*
* Mirrors trellis-client GET /api/graph/summary shape for skill portability.
*
* @module trellis/mcp
*/
import type { TrellisKernel } from '../core/kernel/trellis-kernel.js';
export interface RoomGraphSummaryOptions {
limit?: number;
}
export interface RoomGraphSummary {
health: {
status: 'ok';
factCount: number;
linkCount: number;
entityCount: number;
ops: number;
tenantId: string | null;
};
entityTypes: Array<{
type: string;
count: number;
}>;
ontologies: {
total: number;
system: string[];
user: string[];
};
topAttributes: Array<{
attribute: string;
distinctCount: number;
cardinality: 'one' | 'many';
}>;
links: {
total: number;
relations: string[];
};
recentMutations: Array<{
kind: string;
agentId: string;
timestamp: string;
entityId?: string;
}>;
}
export declare function buildRoomGraphSummary(kernel: TrellisKernel, tenantId: string | null, opts?: RoomGraphSummaryOptions): RoomGraphSummary;
//# sourceMappingURL=graph-summary.d.ts.map