@pyxmate/memory 1.9.0 → 1.10.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.9.0" : "0.0.0-dev");
801
+ const version = opts.version ?? (true ? "1.10.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
@@ -643,6 +643,8 @@ interface MemorySearchParams {
643
643
  query: string;
644
644
  type?: MemoryType;
645
645
  agentId?: AgentId;
646
+ /** Optional caller session identifier used for in-process hygiene telemetry. */
647
+ sessionId?: string;
646
648
  limit?: number;
647
649
  strategy?: RAGStrategy;
648
650
  /** Filter results to entries whose eventTime falls within [start, end] (ISO 8601). */
@@ -1024,6 +1026,33 @@ interface GraphTelemetrySnapshot {
1024
1026
  /** Duration (ms) of the most recent getAllEdges call; null until one ran. */
1025
1027
  allEdgesLastMs: number | null;
1026
1028
  }
1029
+ /**
1030
+ * Since-boot usage-hygiene telemetry (in-process, serializable). Tracks whether
1031
+ * callers provide event-time/graph context on store, whether searches miss, how
1032
+ * reinforce is used, and whether sessions search before their first store.
1033
+ */
1034
+ interface UsageHygieneSnapshot {
1035
+ /** Total Memory.store calls observed since boot. */
1036
+ storesTotal: number;
1037
+ /** Store calls whose input carried eventTime. */
1038
+ storesWithEventTime: number;
1039
+ /** Store calls whose input carried caller-supplied entities or relationships. */
1040
+ storesWithGraph: number;
1041
+ /** Store calls by input type; missing type is counted as "long-term". */
1042
+ storesByType: Record<string, number>;
1043
+ /** Total Memory.search calls observed since boot. */
1044
+ searchesTotal: number;
1045
+ /** Completed searches that returned zero entries. */
1046
+ searchesZeroResults: number;
1047
+ /** Total Memory.reinforce calls observed since boot. */
1048
+ reinforceTotal: number;
1049
+ /** Reinforce calls by signal value. */
1050
+ reinforceBySignal: Record<string, number>;
1051
+ /** Sessions where at least one search happened before the first store. */
1052
+ searchBeforeFirstStoreSessions: number;
1053
+ /** Sessions whose first observed hygiene event was a store. */
1054
+ storeFirstSessions: number;
1055
+ }
1027
1056
  interface MemoryStats {
1028
1057
  totalEntries: number;
1029
1058
  storageUsedBytes: number;
@@ -1039,6 +1068,8 @@ interface MemoryStats {
1039
1068
  graphStore?: string;
1040
1069
  /** Graph traversal telemetry; undefined when no graph store is active. */
1041
1070
  graphTelemetry?: GraphTelemetrySnapshot;
1071
+ /** Usage-hygiene telemetry since process boot. */
1072
+ usageHygiene?: UsageHygieneSnapshot;
1042
1073
  /** Whether the memory service is connected. False when using DisabledMemory. */
1043
1074
  connected?: boolean;
1044
1075
  }
@@ -1482,4 +1513,4 @@ interface CreatePyxMemoryOptions {
1482
1513
  }
1483
1514
  declare function createPyxMemory(opts?: CreatePyxMemoryOptions): MemoryClient;
1484
1515
 
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 };
1516
+ 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, type UsageHygieneSnapshot, 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.9.0",
3
+ "version": "1.10.0",
4
4
  "type": "module",
5
5
  "description": "SDK for pyx-memory — Memory as a Service for AI agents",
6
6
  "license": "MIT",