@wrongstack/vector-memory 1.0.3 → 1.0.4

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/README.md CHANGED
@@ -77,16 +77,16 @@ the second line of defense).
77
77
 
78
78
  ## Installation
79
79
 
80
- `@huggingface/transformers` is listed as an **optional** dependency so
81
- the package installs and typechecks even without it. In this monorepo
82
- it's installed by default; in downstream packages, ensure it's present:
80
+ `@huggingface/transformers` is an **opt-in** backend. It is not installed
81
+ automatically because its Node runtime currently pulls in an unpatched ZIP
82
+ extraction advisory. The hashing provider remains available without it. To
83
+ explicitly enable local ONNX embeddings while skipping ONNX's CUDA installer:
83
84
 
84
85
  ```sh
85
- pnpm add @huggingface/transformers
86
+ $env:ONNXRUNTIME_NODE_INSTALL='skip'; pnpm add @huggingface/transformers
86
87
  ```
87
88
 
88
- The package itself is a workspace member; no extra install step is
89
- needed inside the monorepo.
89
+ On POSIX shells, prefix the command with `ONNXRUNTIME_NODE_INSTALL=skip`.
90
90
 
91
91
  ## Quick start
92
92
 
package/dist/index.js CHANGED
@@ -1624,7 +1624,8 @@ var TransformersEmbeddingProvider = class {
1624
1624
  }
1625
1625
  async loadModule() {
1626
1626
  try {
1627
- return await import("@huggingface/transformers");
1627
+ const packageName = "@huggingface/transformers";
1628
+ return await import(packageName);
1628
1629
  } catch (err) {
1629
1630
  throw new VectorMemoryProviderUnavailableError(
1630
1631
  "@huggingface/transformers is not installed. Install it (pnpm add @huggingface/transformers) or wire a fallback EmbeddingProvider.",
@@ -3,8 +3,8 @@
3
3
  * feature-extraction pipeline as a sage `EmbeddingProvider`.
4
4
  *
5
5
  * The provider is lazy: nothing is imported until `embed()` is first called.
6
- * If `@huggingface/transformers` is not installed (it's listed as an
7
- * optionalDependency), `isAvailable()` returns false and `embed()` throws
6
+ * If the opt-in `@huggingface/transformers` package is not installed,
7
+ * `isAvailable()` returns false and `embed()` throws
8
8
  * a descriptive `VectorMemoryProviderUnavailableError` so callers can
9
9
  * fall back to `HashingEmbeddingProvider`.
10
10
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wrongstack/vector-memory",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "license": "MIT",
5
5
  "description": "WrongStack Vector Memory — an additional vector-search memory store powered by @huggingface/transformers (local ONNX embeddings), alongside the SAGE lexical memory system.",
6
6
  "repository": {
@@ -27,12 +27,9 @@
27
27
  "README.md"
28
28
  ],
29
29
  "dependencies": {
30
- "@wrongstack/core": "1.0.3",
31
- "@wrongstack/persistence": "1.0.3",
32
- "@wrongstack/sage": "1.0.3"
33
- },
34
- "optionalDependencies": {
35
- "@huggingface/transformers": "^4.2.0"
30
+ "@wrongstack/core": "1.0.4",
31
+ "@wrongstack/persistence": "1.0.4",
32
+ "@wrongstack/sage": "1.0.4"
36
33
  },
37
34
  "devDependencies": {
38
35
  "@types/node": "^26.2.0",