@datasynx/agentic-ai-cartography 0.9.3 → 1.1.1

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/index.d.ts CHANGED
@@ -197,6 +197,14 @@ declare class CartographyDB {
197
197
  deleteConnection(sessionId: string, connectionId: string): void;
198
198
  setApproval(pattern: string, action: 'save' | 'ignore' | 'auto'): void;
199
199
  getApproval(pattern: string): string | undefined;
200
+ /**
201
+ * Delete a session and all its associated data (nodes, edges, events, tasks, workflows, connections).
202
+ */
203
+ deleteSession(sessionId: string): void;
204
+ /**
205
+ * Prune sessions older than the given ISO date string. Returns count of deleted sessions.
206
+ */
207
+ pruneSessions(olderThan: string): number;
200
208
  getStats(sessionId: string): {
201
209
  nodes: number;
202
210
  edges: number;
@@ -229,6 +237,9 @@ type DiscoveryEvent = {
229
237
  } | {
230
238
  kind: 'turn';
231
239
  turn: number;
240
+ } | {
241
+ kind: 'error';
242
+ text: string;
232
243
  } | {
233
244
  kind: 'done';
234
245
  };
@@ -340,4 +351,28 @@ declare function buildMapData(nodes: NodeRow[], edges: EdgeRow[], options?: {
340
351
 
341
352
  declare function checkPrerequisites(): void;
342
353
 
343
- export { type CartographyConfig, CartographyDB, type CartographyMapData, type Cluster, ClusterSchema, type Connection, ConnectionSchema, DOMAIN_COLORS, DOMAIN_PALETTE, type DataAsset, DataAssetSchema, type DiscoveryEdge, type DiscoveryEvent, type DiscoveryNode, EDGE_RELATIONSHIPS, type EdgeRelationship, type EdgeRow, EdgeSchema, NODE_TYPES, type NodeRow, NodeSchema, type NodeType, type SessionRow, assignColors, buildMapData, checkPrerequisites, computeCentroid, computeClusterBounds, createCartographyTools, CartographyDB as default, defaultConfig, edgesToConnections, exportAll, exportBackstageYAML, exportDiscoveryApp, exportJGF, exportJSON, generateDependencyMermaid, generateTopologyMermaid, groupByDomain, hexCorners, hexDistance, hexNeighbors, hexRing, hexSpiral, hexToPixel, layoutClusters, nodesToAssets, pixelToHex, runDiscovery, safetyHook, shadeVariant, stripSensitive };
354
+ /**
355
+ * Remove orphaned temp files from previous bookmark/history scans.
356
+ * Call at startup to prevent /tmp accumulation after crashes.
357
+ */
358
+ declare function cleanupTempFiles(): number;
359
+
360
+ /**
361
+ * Structured logging for enterprise observability.
362
+ * Outputs JSON to stderr for compatibility with ELK, Datadog, Splunk, CloudWatch.
363
+ */
364
+ type LogLevel = 'DEBUG' | 'INFO' | 'WARN' | 'ERROR';
365
+ interface LogEntry {
366
+ timestamp: string;
367
+ level: LogLevel;
368
+ message: string;
369
+ context?: Record<string, unknown>;
370
+ }
371
+ declare function setVerbose(v: boolean): void;
372
+ declare function log(level: LogLevel, message: string, context?: Record<string, unknown>): void;
373
+ declare function logDebug(message: string, context?: Record<string, unknown>): void;
374
+ declare function logInfo(message: string, context?: Record<string, unknown>): void;
375
+ declare function logWarn(message: string, context?: Record<string, unknown>): void;
376
+ declare function logError(message: string, context?: Record<string, unknown>): void;
377
+
378
+ export { type CartographyConfig, CartographyDB, type CartographyMapData, type Cluster, ClusterSchema, type Connection, ConnectionSchema, DOMAIN_COLORS, DOMAIN_PALETTE, type DataAsset, DataAssetSchema, type DiscoveryEdge, type DiscoveryEvent, type DiscoveryNode, EDGE_RELATIONSHIPS, type EdgeRelationship, type EdgeRow, EdgeSchema, type LogEntry, type LogLevel, NODE_TYPES, type NodeRow, NodeSchema, type NodeType, type SessionRow, assignColors, buildMapData, checkPrerequisites, cleanupTempFiles, computeCentroid, computeClusterBounds, createCartographyTools, CartographyDB as default, defaultConfig, edgesToConnections, exportAll, exportBackstageYAML, exportDiscoveryApp, exportJGF, exportJSON, generateDependencyMermaid, generateTopologyMermaid, groupByDomain, hexCorners, hexDistance, hexNeighbors, hexRing, hexSpiral, hexToPixel, layoutClusters, log, logDebug, logError, logInfo, logWarn, nodesToAssets, pixelToHex, runDiscovery, safetyHook, setVerbose, shadeVariant, stripSensitive };