@pyxmate/memory 0.33.1 → 0.35.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.
@@ -85,6 +85,16 @@ var MemoryClient = class {
85
85
  });
86
86
  }
87
87
  async search(params) {
88
+ if (params.enableRerank) {
89
+ throw new Error(
90
+ "enableRerank is embedded-only (the HTTP API does not forward it); use the embedded Memory class for cross-encoder reranking"
91
+ );
92
+ }
93
+ if (params.enableMultiHop) {
94
+ throw new Error(
95
+ "enableMultiHop is embedded-only (the HTTP API does not forward it); use the embedded Memory class for iterative multi-hop retrieval"
96
+ );
97
+ }
88
98
  const searchParams = new URLSearchParams({ query: params.query });
89
99
  if (params.limit) searchParams.set("limit", String(params.limit));
90
100
  if (params.type) searchParams.set("type", params.type);
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  MemoryClient
3
- } from "./chunk-6DZN7FYM.mjs";
3
+ } from "./chunk-C2KBUNUM.mjs";
4
4
 
5
5
  // ../dashboard/src/aggregations/consolidation-analytics.ts
6
6
  function analyzeConsolidationLog(entries) {
@@ -1330,7 +1330,7 @@ var ALL_TOOL_NAMES = ALL_TOOLS.map((t) => t.name);
1330
1330
  // src/mcp/server.ts
1331
1331
  async function runMcpServer(opts) {
1332
1332
  const fetchImpl = opts.fetchImpl ?? fetch;
1333
- const version = opts.version ?? (true ? "0.33.1" : "0.0.0-dev");
1333
+ const version = opts.version ?? (true ? "0.35.0" : "0.0.0-dev");
1334
1334
  const server = new McpServer(
1335
1335
  { name: "pyx-memory", version },
1336
1336
  { instructions: PYX_MEMORY_INSTRUCTIONS, capabilities: { tools: {} } }
@@ -11,8 +11,8 @@ import {
11
11
  toGraphologyFormat,
12
12
  transformGraphData,
13
13
  unreachableHealth
14
- } from "./chunk-W5FHHTBQ.mjs";
15
- import "./chunk-6DZN7FYM.mjs";
14
+ } from "./chunk-KQV3VYZO.mjs";
15
+ import "./chunk-C2KBUNUM.mjs";
16
16
  import "./chunk-KSTI4M52.mjs";
17
17
  export {
18
18
  DashboardClient,
package/dist/index.d.ts CHANGED
@@ -556,6 +556,42 @@ interface MemorySearchParams {
556
556
  asOf?: string;
557
557
  /** Confidence threshold below which the system recommends abstention (0.0–1.0). Default: 0.3. */
558
558
  abstentionThreshold?: number;
559
+ /**
560
+ * Rerank with the cross-encoder before final truncation (hybrid strategy
561
+ * only). The pipeline retrieves and dedups a deeper candidate pool (≥50),
562
+ * scores it through the cross-encoder, then truncates to `limit` —
563
+ * reranking after truncation cannot change top-`limit` set membership.
564
+ * EMBEDDED ONLY: `MemoryClient.search` rejects it (HTTP API does not
565
+ * forward it).
566
+ */
567
+ enableRerank?: boolean;
568
+ /**
569
+ * Iterative multi-hop candidate generation (hybrid strategy only). After the
570
+ * first retrieval pass, non-oracle bridge entities are mined from the top
571
+ * seed passages, a second dense+lexical pass is seeded by those bridges, and
572
+ * both passes' ranked lists are fused into a single RRF before scoring and
573
+ * (optional) rerank-then-truncate. Grows the candidate pool to surface
574
+ * later-hop passages the single-pass query misses. Deterministic: no
575
+ * query-time LLM, fixed bridge order. Default off keeps the pipeline
576
+ * byte-identical. EMBEDDED ONLY: `MemoryClient.search` rejects it (the HTTP
577
+ * API does not forward it).
578
+ */
579
+ enableMultiHop?: boolean;
580
+ /**
581
+ * Explicit bridge entities for the second multi-hop pass, bypassing mining.
582
+ * EVAL ONLY — used by the benchmark oracle-ceiling probe to isolate fusion
583
+ * capacity from mining quality; never set on a production path. Ignored
584
+ * unless `enableMultiHop` is also set.
585
+ */
586
+ multiHopBridges?: string[];
587
+ /**
588
+ * Set false for a read-only search that does NOT bump access counts /
589
+ * lastAccessed on returned entries. Access feeds ranking (WEIGHT_ACCESS and
590
+ * the no-eventTime recency fallback), so a measurement that searches the
591
+ * store mutates what it measures — repeated benchmark runs over a persisted
592
+ * index drift. Default true (access tracking is the product's usage signal).
593
+ */
594
+ trackAccess?: boolean;
559
595
  /** Maximum sensitivity level to include in results. Entries above this level are excluded or redacted. */
560
596
  maxSensitivity?: SensitivityLevel;
561
597
  /** Tenant ID for multi-tenant isolation. */
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  MemoryClient,
3
3
  MemoryServerError
4
- } from "./chunk-6DZN7FYM.mjs";
4
+ } from "./chunk-C2KBUNUM.mjs";
5
5
  import {
6
6
  DEFAULTS,
7
7
  DEPRECATED_RAG_STRATEGIES,
package/dist/react.mjs CHANGED
@@ -11,8 +11,8 @@ import {
11
11
  toGraphologyFormat,
12
12
  transformGraphData,
13
13
  unreachableHealth
14
- } from "./chunk-W5FHHTBQ.mjs";
15
- import "./chunk-6DZN7FYM.mjs";
14
+ } from "./chunk-KQV3VYZO.mjs";
15
+ import "./chunk-C2KBUNUM.mjs";
16
16
  import "./chunk-KSTI4M52.mjs";
17
17
 
18
18
  // ../dashboard/src/hooks/use-consolidation-log.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pyxmate/memory",
3
- "version": "0.33.1",
3
+ "version": "0.35.0",
4
4
  "type": "module",
5
5
  "description": "SDK for pyx-memory — Memory as a Service for AI agents",
6
6
  "license": "MIT",