@unson/brainbase-mcp 0.32.0 → 0.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/graph-maintenance-engine.d.ts +44 -0
- package/dist/graph-maintenance-engine.js +804 -0
- package/dist/memory-scope-policy.d.ts +43 -0
- package/dist/memory-scope-policy.js +159 -0
- package/dist/ontology-kernel.d.ts +102 -0
- package/dist/ontology-kernel.js +681 -0
- package/dist/ontology-publication.d.ts +6 -0
- package/dist/ontology-publication.js +44 -0
- package/dist/ontology-registry.d.ts +32 -0
- package/dist/ontology-registry.js +202 -0
- package/dist/ontology-release-trust.d.ts +4 -0
- package/dist/ontology-release-trust.js +121 -0
- package/package.json +26 -2
- package/ui/world/world-view.js +24 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export type GraphRecord = Record<string, any>;
|
|
2
|
+
export type GraphEntity = GraphRecord;
|
|
3
|
+
export type GraphEdge = GraphRecord;
|
|
4
|
+
export type GraphSnapshot = GraphRecord;
|
|
5
|
+
export type GraphOperation = GraphRecord;
|
|
6
|
+
export type GraphValidationIssue = {
|
|
7
|
+
category: string;
|
|
8
|
+
id?: unknown;
|
|
9
|
+
};
|
|
10
|
+
export type GraphValidation = {
|
|
11
|
+
valid: boolean;
|
|
12
|
+
counts: {
|
|
13
|
+
entities: number;
|
|
14
|
+
edges: number;
|
|
15
|
+
issues: number;
|
|
16
|
+
duplicates: number;
|
|
17
|
+
orphans: number;
|
|
18
|
+
};
|
|
19
|
+
issues: GraphValidationIssue[];
|
|
20
|
+
};
|
|
21
|
+
export type GraphPlanInput = GraphRecord;
|
|
22
|
+
export type GraphPlan = {
|
|
23
|
+
dry_run: true;
|
|
24
|
+
project_code: any;
|
|
25
|
+
idempotency_key: any;
|
|
26
|
+
reason: string;
|
|
27
|
+
operations: GraphOperation[];
|
|
28
|
+
operation_count: number;
|
|
29
|
+
before_hash: string;
|
|
30
|
+
after_hash: string;
|
|
31
|
+
validation: GraphValidation;
|
|
32
|
+
before: GraphSnapshot;
|
|
33
|
+
after: GraphSnapshot;
|
|
34
|
+
};
|
|
35
|
+
export declare const GRAPH_MAINTENANCE_OPERATIONS: readonly string[];
|
|
36
|
+
export declare const GRAPH_MAINTENANCE_MAX_OPERATIONS = 100;
|
|
37
|
+
export declare function hashGraphSnapshot(snapshot: GraphSnapshot): string;
|
|
38
|
+
export declare function findIntroducedGraphValidationIssues(beforeSnapshot: GraphSnapshot, afterSnapshot: GraphSnapshot): GraphValidationIssue[];
|
|
39
|
+
export declare function applyGraphOperations(snapshot: GraphSnapshot, operations: GraphOperation[], { projectCode, humanGateReceipt }?: {
|
|
40
|
+
projectCode?: unknown;
|
|
41
|
+
humanGateReceipt?: unknown;
|
|
42
|
+
}): GraphSnapshot;
|
|
43
|
+
export declare function buildGraphPlan(snapshot: GraphSnapshot, input?: GraphPlanInput): GraphPlan;
|
|
44
|
+
export declare function validateGraphSnapshot(snapshot: any): GraphValidation;
|