@pyxmate/memory 1.7.0 → 1.8.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.
@@ -798,7 +798,7 @@ function createProxyServer(client, version, uploadLocalFile) {
798
798
  return server;
799
799
  }
800
800
  async function runMcpProxyServer(opts) {
801
- const version = opts.version ?? (true ? "1.7.0" : "0.0.0-dev");
801
+ const version = opts.version ?? (true ? "1.8.0" : "0.0.0-dev");
802
802
  const read = await opts.readCredentials();
803
803
  if (!read.ok) {
804
804
  const text = read.result.content.map((c) => c.type === "text" ? c.text : "").join(" ").trim();
package/dist/index.d.ts CHANGED
@@ -1009,6 +1009,21 @@ interface CorrectionRecord {
1009
1009
  /** Overlap-coefficient score between the query `taskShape` and this row's `appliesWhen`. */
1010
1010
  score: number;
1011
1011
  }
1012
+ /**
1013
+ * Rolling graph-traversal telemetry (in-process, since boot). Watches the
1014
+ * engine re-review triggers: depth-2 getNeighbors p95 latency / result size
1015
+ * (hub explosion) and getAllEdges job duration.
1016
+ */
1017
+ interface GraphTelemetrySnapshot {
1018
+ /** p95 latency (ms) of getNeighbors calls with depth >= 2; null until sampled. */
1019
+ neighborsDepth2P95Ms: number | null;
1020
+ /** p95 result node count of getNeighbors calls with depth >= 2; null until sampled. */
1021
+ neighborsDepth2ResultP95: number | null;
1022
+ /** Depth >= 2 samples in the rolling window (confidence for the p95s). */
1023
+ neighborsDepth2SampleCount: number;
1024
+ /** Duration (ms) of the most recent getAllEdges call; null until one ran. */
1025
+ allEdgesLastMs: number | null;
1026
+ }
1012
1027
  interface MemoryStats {
1013
1028
  totalEntries: number;
1014
1029
  storageUsedBytes: number;
@@ -1022,6 +1037,8 @@ interface MemoryStats {
1022
1037
  graphRawEdgeCount?: number;
1023
1038
  /** Name of the active graph store ('neo4j', 'sqlite', or undefined if none). */
1024
1039
  graphStore?: string;
1040
+ /** Graph traversal telemetry; undefined when no graph store is active. */
1041
+ graphTelemetry?: GraphTelemetrySnapshot;
1025
1042
  /** Whether the memory service is connected. False when using DisabledMemory. */
1026
1043
  connected?: boolean;
1027
1044
  }
@@ -1465,4 +1482,4 @@ interface CreatePyxMemoryOptions {
1465
1482
  }
1466
1483
  declare function createPyxMemory(opts?: CreatePyxMemoryOptions): MemoryClient;
1467
1484
 
1468
- export { type AgentId, type ApiResponse, type ConsolidationRunResult, type CorrectionInput, type CorrectionRecord, type CreatePyxMemoryOptions, DEFAULTS, DEPRECATED_RAG_STRATEGIES, DisabledMemory, type DroppedGraphRelationship, EmbeddingProviderName, type EnrichmentCallbacks, type EntityExtractionResult, type ExtendedMemoryInterface, type FetchCorrectionsInput, type GraphEnrichment, type GraphEnrichmentStatus, type GraphFailureMode, type GraphNode, type GraphRelationship, type GraphRepairResult, type GraphTraversalResult, type IngestEntity, type IngestErrorEvent, type IngestEvent, type IngestFileOptions, type IngestHeartbeatEvent, type IngestProgressEvent, type IngestRelationship, type IngestResultEvent, type IngestStage, type IngestionResult, type LineageParams, type LineageResult, type LineageVersion, MemoryClient, type MemoryClientOptions, type MemoryEntry, type MemoryIngestRequest, type MemoryInterface, type MemoryListParams, type MemoryListResult, type MemoryLogFilters, type MemorySearchParams, type MemorySearchResult, MemoryServerError, type MemoryStats, MemoryType, type MoveEntriesFilter, MoveFailureReason, type MoveResult, type MoveTarget, NamespaceIsolation, type PrincipalContext, RAGStrategy, type ReinforceParams, type ReinforceResult, type ReinforceSignal, SINGLE_TENANT_ID, SensitivityLevel, type SourceEvidence, type StoreInput, StoreTarget, type TemporalQueryFilters, type TenantScopeOptions, type Timestamp, type Topology, type TopologyExtractionProvider, type TopologyServiceVariant, VectorProvider, type VectorStatus, type WikiLintReport, createPyxMemory, mergeExtractedEntities, normalizeGraphLabel, normalizeNameKey };
1485
+ export { type AgentId, type ApiResponse, type ConsolidationRunResult, type CorrectionInput, type CorrectionRecord, type CreatePyxMemoryOptions, DEFAULTS, DEPRECATED_RAG_STRATEGIES, DisabledMemory, type DroppedGraphRelationship, EmbeddingProviderName, type EnrichmentCallbacks, type EntityExtractionResult, type ExtendedMemoryInterface, type FetchCorrectionsInput, type GraphEnrichment, type GraphEnrichmentStatus, type GraphFailureMode, type GraphNode, type GraphRelationship, type GraphRepairResult, type GraphTelemetrySnapshot, type GraphTraversalResult, type IngestEntity, type IngestErrorEvent, type IngestEvent, type IngestFileOptions, type IngestHeartbeatEvent, type IngestProgressEvent, type IngestRelationship, type IngestResultEvent, type IngestStage, type IngestionResult, type LineageParams, type LineageResult, type LineageVersion, MemoryClient, type MemoryClientOptions, type MemoryEntry, type MemoryIngestRequest, type MemoryInterface, type MemoryListParams, type MemoryListResult, type MemoryLogFilters, type MemorySearchParams, type MemorySearchResult, MemoryServerError, type MemoryStats, MemoryType, type MoveEntriesFilter, MoveFailureReason, type MoveResult, type MoveTarget, NamespaceIsolation, type PrincipalContext, RAGStrategy, type ReinforceParams, type ReinforceResult, type ReinforceSignal, SINGLE_TENANT_ID, SensitivityLevel, type SourceEvidence, type StoreInput, StoreTarget, type TemporalQueryFilters, type TenantScopeOptions, type Timestamp, type Topology, type TopologyExtractionProvider, type TopologyServiceVariant, VectorProvider, type VectorStatus, type WikiLintReport, createPyxMemory, mergeExtractedEntities, normalizeGraphLabel, normalizeNameKey };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pyxmate/memory",
3
- "version": "1.7.0",
3
+ "version": "1.8.0",
4
4
  "type": "module",
5
5
  "description": "SDK for pyx-memory — Memory as a Service for AI agents",
6
6
  "license": "MIT",