@amemhq/core 2.0.0 → 2.1.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.
package/dist/index.d.cts CHANGED
@@ -70,6 +70,14 @@ declare function getEmbeddingDevice(): string | undefined;
70
70
  * Weight precision. Unset means Transformers.js picks, which on Node is `fp32` —
71
71
  * the largest download of every variant a model publishes.
72
72
  *
73
+ * 2.0.0 defaulted this to `fp16` for bge-m3, to halve a 2.27 GB download. That
74
+ * shipped broken: `onnxruntime-node` 1.24.3 aborts loading those weights in
75
+ * `SimplifiedLayerNormFusion`, on a node the fp16 conversion inserts, so the
76
+ * default install could not embed at all. Reproduced on bge-m3 and on
77
+ * gte-multilingual-base, on two machines — it is the runtime and fp16, not one
78
+ * model. Nothing here picks a dtype now; saving the download is not worth
79
+ * choosing a build we have not loaded.
80
+ *
73
81
  * Passed through rather than validated against a list: Transformers.js already
74
82
  * rejects an unknown value and names the valid ones, and a list here would go
75
83
  * stale the moment it gains a quantization.
@@ -568,6 +576,16 @@ declare function switchToMigrated(opts: {
568
576
  name: string;
569
577
  /** The collection built by `migrateCollection`. */
570
578
  to: string;
579
+ /**
580
+ * Snapshot the source before dropping it. Default true.
581
+ *
582
+ * Freeing the name means deleting the collection, but it does not have to mean
583
+ * losing the data, and those should not be the same decision. The snapshot is
584
+ * what makes "switch over" reversible and leaves "throw the old vectors away"
585
+ * as a separate thing to do later, by hand, once the new store has proven
586
+ * itself in use.
587
+ */
588
+ snapshot?: boolean;
571
589
  logger?: {
572
590
  info: (m: string) => void;
573
591
  warn: (m: string) => void;
@@ -576,6 +594,10 @@ declare function switchToMigrated(opts: {
576
594
  name: string;
577
595
  to: string;
578
596
  moved: number;
597
+ snapshot?: {
598
+ name: string;
599
+ size: number;
600
+ };
579
601
  }>;
580
602
 
581
603
  /**
package/dist/index.d.ts CHANGED
@@ -70,6 +70,14 @@ declare function getEmbeddingDevice(): string | undefined;
70
70
  * Weight precision. Unset means Transformers.js picks, which on Node is `fp32` —
71
71
  * the largest download of every variant a model publishes.
72
72
  *
73
+ * 2.0.0 defaulted this to `fp16` for bge-m3, to halve a 2.27 GB download. That
74
+ * shipped broken: `onnxruntime-node` 1.24.3 aborts loading those weights in
75
+ * `SimplifiedLayerNormFusion`, on a node the fp16 conversion inserts, so the
76
+ * default install could not embed at all. Reproduced on bge-m3 and on
77
+ * gte-multilingual-base, on two machines — it is the runtime and fp16, not one
78
+ * model. Nothing here picks a dtype now; saving the download is not worth
79
+ * choosing a build we have not loaded.
80
+ *
73
81
  * Passed through rather than validated against a list: Transformers.js already
74
82
  * rejects an unknown value and names the valid ones, and a list here would go
75
83
  * stale the moment it gains a quantization.
@@ -568,6 +576,16 @@ declare function switchToMigrated(opts: {
568
576
  name: string;
569
577
  /** The collection built by `migrateCollection`. */
570
578
  to: string;
579
+ /**
580
+ * Snapshot the source before dropping it. Default true.
581
+ *
582
+ * Freeing the name means deleting the collection, but it does not have to mean
583
+ * losing the data, and those should not be the same decision. The snapshot is
584
+ * what makes "switch over" reversible and leaves "throw the old vectors away"
585
+ * as a separate thing to do later, by hand, once the new store has proven
586
+ * itself in use.
587
+ */
588
+ snapshot?: boolean;
571
589
  logger?: {
572
590
  info: (m: string) => void;
573
591
  warn: (m: string) => void;
@@ -576,6 +594,10 @@ declare function switchToMigrated(opts: {
576
594
  name: string;
577
595
  to: string;
578
596
  moved: number;
597
+ snapshot?: {
598
+ name: string;
599
+ size: number;
600
+ };
579
601
  }>;
580
602
 
581
603
  /**
package/dist/index.js CHANGED
@@ -39,7 +39,7 @@ import {
39
39
  searchMemory,
40
40
  switchToMigrated,
41
41
  updateNote
42
- } from "./chunk-K6WZTDM7.js";
42
+ } from "./chunk-XEMQZNLD.js";
43
43
 
44
44
  // src/quality.ts
45
45
  import * as fs from "fs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amemhq/core",
3
- "version": "2.0.0",
3
+ "version": "2.1.0",
4
4
  "description": "The agentic memory engine — notes that construct, link, and evolve like a Zettelkasten, on Qdrant + Transformers.js. No Python. Framework-agnostic.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://amem.owo.lc",