@pyxmate/memory 1.17.18 → 1.18.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.
@@ -11,8 +11,9 @@ import {
11
11
  toGraphologyFormat,
12
12
  transformGraphData,
13
13
  unreachableHealth
14
- } from "./chunk-T35ZOOES.mjs";
15
- import "./chunk-H6ZLMPZH.mjs";
14
+ } from "./chunk-ACFPMLNO.mjs";
15
+ import "./chunk-SLYCVO4C.mjs";
16
+ import "./chunk-KVYCISUI.mjs";
16
17
  import "./chunk-3OLH3HYR.mjs";
17
18
  export {
18
19
  DashboardClient,
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { StoreInput as StoreInput$1, MemoryEntry as MemoryEntry$1, MemorySearchParams as MemorySearchParams$1, MemorySearchResult as MemorySearchResult$1, MemoryType as MemoryType$1, PrincipalContext as PrincipalContext$1, SensitivityLevel as SensitivityLevel$1, MemoryStats as MemoryStats$1, LineageParams as LineageParams$1, LineageResult as LineageResult$1, ReinforceParams as ReinforceParams$1, ReinforceResult as ReinforceResult$1, WikiLintReport as WikiLintReport$1, GraphRepairResult as GraphRepairResult$1, ExtractedImageMeta as ExtractedImageMeta$1, IngestEntity as IngestEntity$1, IngestRelationship as IngestRelationship$1, EntityExtractionResult as EntityExtractionResult$1, Topology as Topology$1, IngestEvent as IngestEvent$1, GraphEnrichEvent as GraphEnrichEvent$1, GraphNode as GraphNode$1, GraphTraversalResult as GraphTraversalResult$1, CorrectionRecord as CorrectionRecord$1 } from '@pyx-memory/shared';
1
+ import { StoreInput as StoreInput$1, MemoryEntry as MemoryEntry$1, MemorySearchParams as MemorySearchParams$1, MemorySearchResult as MemorySearchResult$1, MemoryType as MemoryType$1, PrincipalContext as PrincipalContext$1, SensitivityLevel as SensitivityLevel$1, MemoryStats as MemoryStats$1, MemoryInsights as MemoryInsights$1, LineageParams as LineageParams$1, LineageResult as LineageResult$1, ReinforceParams as ReinforceParams$1, ReinforceResult as ReinforceResult$1, WikiLintReport as WikiLintReport$1, GraphRepairResult as GraphRepairResult$1, ExtractedImageMeta as ExtractedImageMeta$1, IngestEntity as IngestEntity$1, IngestRelationship as IngestRelationship$1, EntityExtractionResult as EntityExtractionResult$1, Topology as Topology$1, IngestEvent as IngestEvent$1, GraphEnrichEvent as GraphEnrichEvent$1, GraphNode as GraphNode$1, GraphTraversalResult as GraphTraversalResult$1, CorrectionRecord as CorrectionRecord$1 } from '@pyx-memory/shared';
2
2
  export { documentContentSource, documentGraphSource, documentImageSource } from '@pyx-memory/shared';
3
3
  export { e as encodeListCursorToken, p as parseListCursorToken } from './data-plane-contract-fDvTm9bF.js';
4
4
 
@@ -123,6 +123,7 @@ interface MemoryInterface {
123
123
  delete(id: string, options?: TenantScopeOptions): Promise<boolean>;
124
124
  clearSession(sessionId: string, options?: TenantScopeOptions): Promise<number>;
125
125
  stats(options?: TenantScopeOptions): Promise<MemoryStats$1>;
126
+ insights(options?: TenantScopeOptions): Promise<MemoryInsights$1>;
126
127
  /** Query entries as they existed at a point in time (by ingest time). */
127
128
  queryAsOf(asOfDate: string, filters?: TemporalQueryFilters, options?: TenantScopeOptions): Promise<MemoryEntry$1[]>;
128
129
  /** Read the time-ordered lineage of a graph fact or superseded entry chain. */
@@ -207,6 +208,7 @@ declare class DisabledMemory implements MemoryInterface {
207
208
  delete(): Promise<boolean>;
208
209
  clearSession(): Promise<number>;
209
210
  stats(): Promise<MemoryStats$1>;
211
+ insights(): Promise<MemoryInsights$1>;
210
212
  queryAsOf(): Promise<MemoryEntry$1[]>;
211
213
  lineage(): Promise<LineageResult$1>;
212
214
  reinforce(): Promise<ReinforceResult$1>;
@@ -395,6 +397,7 @@ declare class MemoryClient implements ExtendedMemoryInterface {
395
397
  delete(id: string, authority?: TenantScopeOptions & RequestAuthorityOptions): Promise<boolean>;
396
398
  clearSession(sessionId: string): Promise<number>;
397
399
  stats(options?: TenantScopeOptions): Promise<MemoryStats$1>;
400
+ insights(options?: TenantScopeOptions & RequestAuthorityOptions): Promise<MemoryInsights$1>;
398
401
  /**
399
402
  * Fetch the running server's topology snapshot (build variant, declared
400
403
  * role, embedding location, active model profile). Round-trips the
@@ -627,6 +630,10 @@ declare const DEFAULTS: {
627
630
  readonly MEMORY_SERVER_PORT: 7822;
628
631
  };
629
632
  declare const TAXONOMY_MAX_CATEGORIES = 10;
633
+ declare const TAXONOMY_MAX_TOP_ENTITIES = 15;
634
+ declare const TAXONOMY_MAX_SAMPLE_TOPICS = 8;
635
+ declare const TAXONOMY_MAX_PROJECTS = 8;
636
+ declare const MEMORY_PROJECT_LABEL_MAX_CHARS = 80;
630
637
 
631
638
  /** ISO 8601 timestamp string */
632
639
  type Timestamp = string;
@@ -1306,6 +1313,60 @@ interface MemoryStats {
1306
1313
  */
1307
1314
  pendingEmbeddings?: number;
1308
1315
  }
1316
+ interface MemoryInsightMetrics {
1317
+ activeEntries: number;
1318
+ retainedAdditions7d: number;
1319
+ appliedRecalls: number;
1320
+ reinforcedEntries: number;
1321
+ retrievedEntries: number;
1322
+ retrievals: number;
1323
+ lastAppliedAt: string | null;
1324
+ lastRetrievedAt: string | null;
1325
+ }
1326
+ interface MemoryProjectInsight extends MemoryInsightMetrics {
1327
+ label: string;
1328
+ }
1329
+ /** Body-free, caller-visible aggregate for product status surfaces. */
1330
+ interface MemoryInsights {
1331
+ generatedAt: string;
1332
+ scope: 'connected_memory';
1333
+ coverage: {
1334
+ retainedAdditions: {
1335
+ state: 'measured' | 'partial';
1336
+ trackingSince: string | null;
1337
+ trackedEntries: number;
1338
+ totalEntries: number;
1339
+ reason: string | null;
1340
+ };
1341
+ projectLabels: {
1342
+ state: 'measured';
1343
+ };
1344
+ retrievalUsage: {
1345
+ state: 'partial';
1346
+ reason: string;
1347
+ };
1348
+ tokenEfficiency: {
1349
+ state: 'not_instrumented';
1350
+ reason: string;
1351
+ };
1352
+ contextAccuracy: {
1353
+ state: 'not_instrumented';
1354
+ reason: string;
1355
+ };
1356
+ };
1357
+ summary: {
1358
+ activeEntries: number;
1359
+ observedProjectLabels: number;
1360
+ retainedAdditions7d: number | null;
1361
+ trackedEntries: number;
1362
+ appliedRecalls: number;
1363
+ reinforcedEntries: number;
1364
+ retrievedEntries: number;
1365
+ retrievals: number;
1366
+ };
1367
+ projects: MemoryProjectInsight[];
1368
+ other: MemoryInsightMetrics | null;
1369
+ }
1309
1370
  interface GraphRepairResult {
1310
1371
  staleEdgesDeleted: number;
1311
1372
  staleNodeRefsRemoved: number;
@@ -1826,4 +1887,4 @@ interface CreatePyxMemoryOptions {
1826
1887
  }
1827
1888
  declare function createPyxMemory(opts?: CreatePyxMemoryOptions): MemoryClient;
1828
1889
 
1829
- export { type AgentId, type ApiResponse, type ConsolidationRunResult, type CorrectionInput, type CorrectionRecord, type CreatePyxMemoryOptions, DEFAULTS, DEPRECATED_RAG_STRATEGIES, DisabledMemory, type DroppedGraphRelationship, type DueScanInput, EmbeddingProviderName, type EnrichmentCallbacks, type EnrichmentPurpose, type EntityExtractionResult, type ExtendedMemoryInterface, type FetchCorrectionsInput, type FileDownloadOptions, type GraphEnrichEvent, type GraphEnrichFileOptions, type GraphEnrichPreparedEvent, type GraphEnrichResult, type GraphEnrichResultEvent, type GraphEnrichment, type GraphEnrichmentStatus, type GraphExtractionPayload, 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, type SecretElevationAggregate, type SecretElevationNotice, SensitivityLevel, type SourceEvidence, type StoreInput, StoreTarget, TAXONOMY_MAX_CATEGORIES, type TemporalQueryFilters, type TenantScopeOptions, type Timestamp, type Topology, type TopologyExtractionProvider, type TopologyServiceVariant, type UsageHygieneSnapshot, VectorProvider, type VectorStatus, type WikiLintReport, assertGraphExtractionPayload, createPyxMemory, mergeExtractedEntities, normalizeGraphLabel, normalizeNameKey, projectSearchResponseForMcp, secretElevationAggregate, secretElevationNoticeFor, withSecretElevationNotice };
1890
+ export { type AgentId, type ApiResponse, type ConsolidationRunResult, type CorrectionInput, type CorrectionRecord, type CreatePyxMemoryOptions, DEFAULTS, DEPRECATED_RAG_STRATEGIES, DisabledMemory, type DroppedGraphRelationship, type DueScanInput, EmbeddingProviderName, type EnrichmentCallbacks, type EnrichmentPurpose, type EntityExtractionResult, type ExtendedMemoryInterface, type FetchCorrectionsInput, type FileDownloadOptions, type GraphEnrichEvent, type GraphEnrichFileOptions, type GraphEnrichPreparedEvent, type GraphEnrichResult, type GraphEnrichResultEvent, type GraphEnrichment, type GraphEnrichmentStatus, type GraphExtractionPayload, 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, MEMORY_PROJECT_LABEL_MAX_CHARS, MemoryClient, type MemoryClientOptions, type MemoryEntry, type MemoryIngestRequest, type MemoryInsightMetrics, type MemoryInsights, type MemoryInterface, type MemoryListParams, type MemoryListResult, type MemoryLogFilters, type MemoryProjectInsight, 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, type SecretElevationAggregate, type SecretElevationNotice, SensitivityLevel, type SourceEvidence, type StoreInput, StoreTarget, TAXONOMY_MAX_CATEGORIES, TAXONOMY_MAX_PROJECTS, TAXONOMY_MAX_SAMPLE_TOPICS, TAXONOMY_MAX_TOP_ENTITIES, type TemporalQueryFilters, type TenantScopeOptions, type Timestamp, type Topology, type TopologyExtractionProvider, type TopologyServiceVariant, type UsageHygieneSnapshot, VectorProvider, type VectorStatus, type WikiLintReport, assertGraphExtractionPayload, createPyxMemory, mergeExtractedEntities, normalizeGraphLabel, normalizeNameKey, projectSearchResponseForMcp, secretElevationAggregate, secretElevationNoticeFor, withSecretElevationNotice };
package/dist/index.mjs CHANGED
@@ -1,10 +1,13 @@
1
+ import {
2
+ DisabledMemory,
3
+ MemoryClient,
4
+ MemoryServerError
5
+ } from "./chunk-SLYCVO4C.mjs";
1
6
  import {
2
7
  DEFAULTS,
3
8
  DEPRECATED_RAG_STRATEGIES,
4
- DisabledMemory,
5
9
  EmbeddingProviderName,
6
- MemoryClient,
7
- MemoryServerError,
10
+ MEMORY_PROJECT_LABEL_MAX_CHARS,
8
11
  MemoryType,
9
12
  MoveFailureReason,
10
13
  NamespaceIsolation,
@@ -13,6 +16,9 @@ import {
13
16
  SensitivityLevel,
14
17
  StoreTarget,
15
18
  TAXONOMY_MAX_CATEGORIES,
19
+ TAXONOMY_MAX_PROJECTS,
20
+ TAXONOMY_MAX_SAMPLE_TOPICS,
21
+ TAXONOMY_MAX_TOP_ENTITIES,
16
22
  VectorProvider,
17
23
  documentContentSource,
18
24
  documentGraphSource,
@@ -21,7 +27,7 @@ import {
21
27
  secretElevationAggregate,
22
28
  secretElevationNoticeFor,
23
29
  withSecretElevationNotice
24
- } from "./chunk-H6ZLMPZH.mjs";
30
+ } from "./chunk-KVYCISUI.mjs";
25
31
  import {
26
32
  assertGraphExtractionPayload,
27
33
  encodeListCursorToken,
@@ -49,6 +55,7 @@ export {
49
55
  DEPRECATED_RAG_STRATEGIES,
50
56
  DisabledMemory,
51
57
  EmbeddingProviderName,
58
+ MEMORY_PROJECT_LABEL_MAX_CHARS,
52
59
  MemoryClient,
53
60
  MemoryServerError,
54
61
  MemoryType,
@@ -59,6 +66,9 @@ export {
59
66
  SensitivityLevel,
60
67
  StoreTarget,
61
68
  TAXONOMY_MAX_CATEGORIES,
69
+ TAXONOMY_MAX_PROJECTS,
70
+ TAXONOMY_MAX_SAMPLE_TOPICS,
71
+ TAXONOMY_MAX_TOP_ENTITIES,
62
72
  VectorProvider,
63
73
  assertGraphExtractionPayload,
64
74
  createPyxMemory,
package/dist/react.mjs CHANGED
@@ -11,8 +11,9 @@ import {
11
11
  toGraphologyFormat,
12
12
  transformGraphData,
13
13
  unreachableHealth
14
- } from "./chunk-T35ZOOES.mjs";
15
- import "./chunk-H6ZLMPZH.mjs";
14
+ } from "./chunk-ACFPMLNO.mjs";
15
+ import "./chunk-SLYCVO4C.mjs";
16
+ import "./chunk-KVYCISUI.mjs";
16
17
  import "./chunk-3OLH3HYR.mjs";
17
18
 
18
19
  // ../dashboard/src/hooks/use-consolidation-log.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pyxmate/memory",
3
- "version": "1.17.18",
3
+ "version": "1.18.0",
4
4
  "type": "module",
5
5
  "description": "SDK for pyx-memory — Memory as a Service for AI agents",
6
6
  "license": "MIT",