@amemhq/core 2.0.0 → 2.1.1
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/{chunk-K6WZTDM7.js → chunk-3HJV3LLV.js} +41 -7
- package/dist/chunk-3HJV3LLV.js.map +1 -0
- package/dist/cli-migrate.cjs +61 -8
- package/dist/cli-migrate.cjs.map +1 -1
- package/dist/cli-migrate.js +28 -4
- package/dist/cli-migrate.js.map +1 -1
- package/dist/index.cjs +40 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +22 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.js +1 -1
- package/package.json +1 -2
- package/dist/chunk-K6WZTDM7.js.map +0 -1
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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@amemhq/core",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.1",
|
|
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",
|
|
@@ -42,7 +42,6 @@
|
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@eslint/js": "^10.0.1",
|
|
44
44
|
"@types/node": "^26.1.1",
|
|
45
|
-
"@types/uuid": "^11.0.0",
|
|
46
45
|
"eslint": "^10.7.0",
|
|
47
46
|
"tsup": "^8.4.0",
|
|
48
47
|
"typescript": "^6.0.3",
|