@areev/areev 1.9.5 → 1.10.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.
Files changed (3) hide show
  1. package/index.d.ts +72 -3
  2. package/index.js +54 -54
  3. package/package.json +6 -6
package/index.d.ts CHANGED
@@ -40,6 +40,68 @@ export declare class Areev {
40
40
  * embedder remains the zero-dependency path.)
41
41
  */
42
42
  setEmbedderCommand(cmd: string, model?: string | undefined | null): Promise<void>
43
+ /**
44
+ * Install a decision (System One) backend chain
45
+ * (docs/decision-model-proposal.md) — the JS mirror of Python's
46
+ * `set_decider`. `spec` is the ordered, comma-separated provider list
47
+ * (`typesafe:jev-latest,llm:ollama:…`); `cmd` a command backend appended
48
+ * last (stdin: wire request JSON, stdout: wire response JSON; no shell);
49
+ * `timeoutMs` the per-call deadline (default 2000). With neither `spec`
50
+ * nor `cmd`, the chain comes from `AREEV_DECIDE` / `AREEV_DECIDE_CMD` /
51
+ * `AREEV_DECIDE_TIMEOUT_MS`; when nothing is configured anywhere (or
52
+ * `spec` is `''`), the decider is cleared. A bad spec or a missing
53
+ * provider key throws (`DEC-E001`). Synchronous: resolving a chain does
54
+ * no I/O. Needs `admin` on `"*"` — a command backend is a subprocess.
55
+ * Host config — never persisted in the file.
56
+ *
57
+ * Installing a chain also installs it as the recall reranker
58
+ * (`DecisionRerank`: `search()` reorders by it and each row's `score` is
59
+ * its answer) — unless `setRerankerCommand` installed a command
60
+ * reranker, which always wins. Clearing the chain uninstalls the
61
+ * decision reranker (recall falls back to fusion order). Under egress
62
+ * anonymization the backend sees pseudonymized state, both here and in
63
+ * `decide`.
64
+ */
65
+ setDecider(spec?: string | undefined | null, cmd?: string | undefined | null, timeoutMs?: number | undefined | null): void
66
+ /**
67
+ * Ask the installed decision backend typed questions about `state` —
68
+ * the JS mirror of Python's `decide`. `state` is text, or a JSON
69
+ * string/object/array document; `questions` is the wire `questions`
70
+ * object as JSON. Resolves to the wire response plus provenance as JSON:
71
+ * `{model, answers, usage?, provider, calibrated, latency_ms}`. No
72
+ * decider → rejects with `DEC-E001`; every failure names its `DEC-Ennn`
73
+ * code. A promise: a remote backend is a network round trip.
74
+ */
75
+ decide(state: string, questions: string): Promise<string>
76
+ /**
77
+ * Bound every hybrid recall this handle makes — `search()` and CAL's
78
+ * free-text `RECALL` — to `ms` milliseconds (the JS mirror of Python's
79
+ * `set_recall_deadline_ms`); past it a leg fails open (partial results,
80
+ * never an error) and a reranker that has not started is skipped.
81
+ * `null` or `0` restores the unbounded default. Host config, never
82
+ * persisted. Set it while no call is in flight on this handle (a
83
+ * running call shares the facade), else it throws.
84
+ */
85
+ setRecallDeadlineMs(ms?: number | undefined | null): void
86
+ /**
87
+ * The recall deadline `setRecallDeadlineMs` installed, in ms (`null` =
88
+ * unbounded).
89
+ */
90
+ recallDeadlineMs(): number | null
91
+ /**
92
+ * Install a command reranker — the JS mirror of Python's
93
+ * `set_reranker_command` (same contract as the CLI's `--rerank-cmd` and
94
+ * MCP's `AREEV_RERANK_CMD`): the command gets `{"query": "...", "docs":
95
+ * ["...", ...]}` on stdin and prints a JSON array of `docs.length`
96
+ * numbers, higher = more relevant. No shell; not probed (synchronous) —
97
+ * a broken command fails open to fusion order at recall time.
98
+ * `search()` then reorders by it, each row's `score` being its
99
+ * min-max-normalized answer (top = 1.0); CAL uses it under `WITH
100
+ * rerank`. `model` is the observability label. An explicit command
101
+ * reranker wins over the decision reranker `setDecider` installs. Needs
102
+ * `admin` on `"*"`.
103
+ */
104
+ setRerankerCommand(cmd: string, model?: string | undefined | null): void
43
105
  /**
44
106
  * Install an embedding callback: `embed(text: string): number[]` —
45
107
  * the JS mirror of Python's `set_embedder`. Probed once here (on the
@@ -61,7 +123,11 @@ export declare class Areev {
61
123
  * Free-text recall over the BM25 (and vector, when an embedder is
62
124
  * installed) legs — the JS mirror of Python's `search`, the same path
63
125
  * as `areev search` and CAL's `RECALL … ABOUT`. Returns a JSON list
64
- * string shaped like `recall()`. Errors loudly when the file has
126
+ * string shaped like `recall()` plus each hit's `score` in `[0, 1]`
127
+ * (the MCP `areev_search` row): rank-normalized fusion (top = 1.0), or
128
+ * the installed reranker's normalized answer (`setRerankerCommand` /
129
+ * `setDecider`), which search always uses when present.
130
+ * `setRecallDeadlineMs` bounds it. Errors loudly when the file has
65
131
  * neither leg, instead of a silent empty list.
66
132
  */
67
133
  search(query: string, subject?: string | undefined | null, relation?: string | undefined | null, k?: number | undefined | null, ns?: string | undefined | null): Promise<string>
@@ -397,9 +463,12 @@ export declare class Areev {
397
463
  * Wave-0 extension mirrored from Python: `runId` correlates to a run,
398
464
  * `workflowHash` + `nodeId` (both or neither) write the `mg:step_action`
399
465
  * link, and `status`/`failureCause`/`executorKind`/`correlationId` carry
400
- * the async lifecycle with strict enum validation.
466
+ * the async lifecycle with strict enum validation. `failureDetail` is the
467
+ * free-text half of the failure pair, which the loop's tool-cause
468
+ * classifier reads when `failureCause` is absent — last, so existing
469
+ * positional callers keep their meaning (lockstep with Python).
401
470
  */
402
- recordToolCall(name: string, result: string, isError?: boolean | undefined | null, thread?: string | undefined | null, callId?: string | undefined | null, input?: string | undefined | null, runId?: string | undefined | null, workflowHash?: string | undefined | null, nodeId?: string | undefined | null, status?: string | undefined | null, failureCause?: string | undefined | null, executorKind?: string | undefined | null, correlationId?: string | undefined | null, ns?: string | undefined | null): Promise<string>
471
+ recordToolCall(name: string, result: string, isError?: boolean | undefined | null, thread?: string | undefined | null, callId?: string | undefined | null, input?: string | undefined | null, runId?: string | undefined | null, workflowHash?: string | undefined | null, nodeId?: string | undefined | null, status?: string | undefined | null, failureCause?: string | undefined | null, executorKind?: string | undefined | null, correlationId?: string | undefined | null, ns?: string | undefined | null, failureDetail?: string | undefined | null): Promise<string>
403
472
  /** Persist a content-addressed harness config and the run -> config link. */
404
473
  recordRunManifest(runId: string, config: string): Promise<string>
405
474
  /**
package/index.js CHANGED
@@ -89,8 +89,8 @@ function requireNative() {
89
89
  try {
90
90
  const binding = require('@areev/areev-android-arm64')
91
91
  const bindingPackageVersion = require('@areev/areev-android-arm64/package.json').version
92
- if (bindingPackageVersion !== '1.9.5' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
93
- throw new Error(`Native binding package version mismatch, expected 1.9.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
92
+ if (bindingPackageVersion !== '1.10.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
93
+ throw new Error(`Native binding package version mismatch, expected 1.10.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
94
94
  }
95
95
  return binding
96
96
  } catch (e) {
@@ -105,8 +105,8 @@ function requireNative() {
105
105
  try {
106
106
  const binding = require('@areev/areev-android-arm-eabi')
107
107
  const bindingPackageVersion = require('@areev/areev-android-arm-eabi/package.json').version
108
- if (bindingPackageVersion !== '1.9.5' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
109
- throw new Error(`Native binding package version mismatch, expected 1.9.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
108
+ if (bindingPackageVersion !== '1.10.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
109
+ throw new Error(`Native binding package version mismatch, expected 1.10.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
110
110
  }
111
111
  return binding
112
112
  } catch (e) {
@@ -126,8 +126,8 @@ function requireNative() {
126
126
  try {
127
127
  const binding = require('@areev/areev-win32-x64-gnu')
128
128
  const bindingPackageVersion = require('@areev/areev-win32-x64-gnu/package.json').version
129
- if (bindingPackageVersion !== '1.9.5' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
130
- throw new Error(`Native binding package version mismatch, expected 1.9.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
129
+ if (bindingPackageVersion !== '1.10.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
130
+ throw new Error(`Native binding package version mismatch, expected 1.10.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
131
131
  }
132
132
  return binding
133
133
  } catch (e) {
@@ -142,8 +142,8 @@ function requireNative() {
142
142
  try {
143
143
  const binding = require('@areev/areev-win32-x64-msvc')
144
144
  const bindingPackageVersion = require('@areev/areev-win32-x64-msvc/package.json').version
145
- if (bindingPackageVersion !== '1.9.5' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
146
- throw new Error(`Native binding package version mismatch, expected 1.9.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
145
+ if (bindingPackageVersion !== '1.10.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
146
+ throw new Error(`Native binding package version mismatch, expected 1.10.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
147
147
  }
148
148
  return binding
149
149
  } catch (e) {
@@ -159,8 +159,8 @@ function requireNative() {
159
159
  try {
160
160
  const binding = require('@areev/areev-win32-ia32-msvc')
161
161
  const bindingPackageVersion = require('@areev/areev-win32-ia32-msvc/package.json').version
162
- if (bindingPackageVersion !== '1.9.5' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
163
- throw new Error(`Native binding package version mismatch, expected 1.9.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
162
+ if (bindingPackageVersion !== '1.10.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
163
+ throw new Error(`Native binding package version mismatch, expected 1.10.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
164
164
  }
165
165
  return binding
166
166
  } catch (e) {
@@ -175,8 +175,8 @@ function requireNative() {
175
175
  try {
176
176
  const binding = require('@areev/areev-win32-arm64-msvc')
177
177
  const bindingPackageVersion = require('@areev/areev-win32-arm64-msvc/package.json').version
178
- if (bindingPackageVersion !== '1.9.5' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
179
- throw new Error(`Native binding package version mismatch, expected 1.9.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
178
+ if (bindingPackageVersion !== '1.10.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
179
+ throw new Error(`Native binding package version mismatch, expected 1.10.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
180
180
  }
181
181
  return binding
182
182
  } catch (e) {
@@ -194,8 +194,8 @@ function requireNative() {
194
194
  try {
195
195
  const binding = require('@areev/areev-darwin-universal')
196
196
  const bindingPackageVersion = require('@areev/areev-darwin-universal/package.json').version
197
- if (bindingPackageVersion !== '1.9.5' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
198
- throw new Error(`Native binding package version mismatch, expected 1.9.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
197
+ if (bindingPackageVersion !== '1.10.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
198
+ throw new Error(`Native binding package version mismatch, expected 1.10.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
199
199
  }
200
200
  return binding
201
201
  } catch (e) {
@@ -210,8 +210,8 @@ function requireNative() {
210
210
  try {
211
211
  const binding = require('@areev/areev-darwin-x64')
212
212
  const bindingPackageVersion = require('@areev/areev-darwin-x64/package.json').version
213
- if (bindingPackageVersion !== '1.9.5' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
214
- throw new Error(`Native binding package version mismatch, expected 1.9.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
213
+ if (bindingPackageVersion !== '1.10.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
214
+ throw new Error(`Native binding package version mismatch, expected 1.10.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
215
215
  }
216
216
  return binding
217
217
  } catch (e) {
@@ -226,8 +226,8 @@ function requireNative() {
226
226
  try {
227
227
  const binding = require('@areev/areev-darwin-arm64')
228
228
  const bindingPackageVersion = require('@areev/areev-darwin-arm64/package.json').version
229
- if (bindingPackageVersion !== '1.9.5' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
230
- throw new Error(`Native binding package version mismatch, expected 1.9.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
229
+ if (bindingPackageVersion !== '1.10.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
230
+ throw new Error(`Native binding package version mismatch, expected 1.10.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
231
231
  }
232
232
  return binding
233
233
  } catch (e) {
@@ -246,8 +246,8 @@ function requireNative() {
246
246
  try {
247
247
  const binding = require('@areev/areev-freebsd-x64')
248
248
  const bindingPackageVersion = require('@areev/areev-freebsd-x64/package.json').version
249
- if (bindingPackageVersion !== '1.9.5' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
250
- throw new Error(`Native binding package version mismatch, expected 1.9.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
249
+ if (bindingPackageVersion !== '1.10.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
250
+ throw new Error(`Native binding package version mismatch, expected 1.10.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
251
251
  }
252
252
  return binding
253
253
  } catch (e) {
@@ -262,8 +262,8 @@ function requireNative() {
262
262
  try {
263
263
  const binding = require('@areev/areev-freebsd-arm64')
264
264
  const bindingPackageVersion = require('@areev/areev-freebsd-arm64/package.json').version
265
- if (bindingPackageVersion !== '1.9.5' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
266
- throw new Error(`Native binding package version mismatch, expected 1.9.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
265
+ if (bindingPackageVersion !== '1.10.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
266
+ throw new Error(`Native binding package version mismatch, expected 1.10.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
267
267
  }
268
268
  return binding
269
269
  } catch (e) {
@@ -283,8 +283,8 @@ function requireNative() {
283
283
  try {
284
284
  const binding = require('@areev/areev-linux-x64-musl')
285
285
  const bindingPackageVersion = require('@areev/areev-linux-x64-musl/package.json').version
286
- if (bindingPackageVersion !== '1.9.5' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
287
- throw new Error(`Native binding package version mismatch, expected 1.9.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
286
+ if (bindingPackageVersion !== '1.10.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
287
+ throw new Error(`Native binding package version mismatch, expected 1.10.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
288
288
  }
289
289
  return binding
290
290
  } catch (e) {
@@ -299,8 +299,8 @@ function requireNative() {
299
299
  try {
300
300
  const binding = require('@areev/areev-linux-x64-gnu')
301
301
  const bindingPackageVersion = require('@areev/areev-linux-x64-gnu/package.json').version
302
- if (bindingPackageVersion !== '1.9.5' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
303
- throw new Error(`Native binding package version mismatch, expected 1.9.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
302
+ if (bindingPackageVersion !== '1.10.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
303
+ throw new Error(`Native binding package version mismatch, expected 1.10.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
304
304
  }
305
305
  return binding
306
306
  } catch (e) {
@@ -317,8 +317,8 @@ function requireNative() {
317
317
  try {
318
318
  const binding = require('@areev/areev-linux-arm64-musl')
319
319
  const bindingPackageVersion = require('@areev/areev-linux-arm64-musl/package.json').version
320
- if (bindingPackageVersion !== '1.9.5' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
321
- throw new Error(`Native binding package version mismatch, expected 1.9.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
320
+ if (bindingPackageVersion !== '1.10.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
321
+ throw new Error(`Native binding package version mismatch, expected 1.10.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
322
322
  }
323
323
  return binding
324
324
  } catch (e) {
@@ -333,8 +333,8 @@ function requireNative() {
333
333
  try {
334
334
  const binding = require('@areev/areev-linux-arm64-gnu')
335
335
  const bindingPackageVersion = require('@areev/areev-linux-arm64-gnu/package.json').version
336
- if (bindingPackageVersion !== '1.9.5' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
337
- throw new Error(`Native binding package version mismatch, expected 1.9.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
336
+ if (bindingPackageVersion !== '1.10.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
337
+ throw new Error(`Native binding package version mismatch, expected 1.10.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
338
338
  }
339
339
  return binding
340
340
  } catch (e) {
@@ -351,8 +351,8 @@ function requireNative() {
351
351
  try {
352
352
  const binding = require('@areev/areev-linux-arm-musleabihf')
353
353
  const bindingPackageVersion = require('@areev/areev-linux-arm-musleabihf/package.json').version
354
- if (bindingPackageVersion !== '1.9.5' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
355
- throw new Error(`Native binding package version mismatch, expected 1.9.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
354
+ if (bindingPackageVersion !== '1.10.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
355
+ throw new Error(`Native binding package version mismatch, expected 1.10.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
356
356
  }
357
357
  return binding
358
358
  } catch (e) {
@@ -367,8 +367,8 @@ function requireNative() {
367
367
  try {
368
368
  const binding = require('@areev/areev-linux-arm-gnueabihf')
369
369
  const bindingPackageVersion = require('@areev/areev-linux-arm-gnueabihf/package.json').version
370
- if (bindingPackageVersion !== '1.9.5' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
371
- throw new Error(`Native binding package version mismatch, expected 1.9.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
370
+ if (bindingPackageVersion !== '1.10.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
371
+ throw new Error(`Native binding package version mismatch, expected 1.10.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
372
372
  }
373
373
  return binding
374
374
  } catch (e) {
@@ -385,8 +385,8 @@ function requireNative() {
385
385
  try {
386
386
  const binding = require('@areev/areev-linux-loong64-musl')
387
387
  const bindingPackageVersion = require('@areev/areev-linux-loong64-musl/package.json').version
388
- if (bindingPackageVersion !== '1.9.5' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
389
- throw new Error(`Native binding package version mismatch, expected 1.9.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
388
+ if (bindingPackageVersion !== '1.10.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
389
+ throw new Error(`Native binding package version mismatch, expected 1.10.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
390
390
  }
391
391
  return binding
392
392
  } catch (e) {
@@ -401,8 +401,8 @@ function requireNative() {
401
401
  try {
402
402
  const binding = require('@areev/areev-linux-loong64-gnu')
403
403
  const bindingPackageVersion = require('@areev/areev-linux-loong64-gnu/package.json').version
404
- if (bindingPackageVersion !== '1.9.5' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
405
- throw new Error(`Native binding package version mismatch, expected 1.9.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
404
+ if (bindingPackageVersion !== '1.10.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
405
+ throw new Error(`Native binding package version mismatch, expected 1.10.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
406
406
  }
407
407
  return binding
408
408
  } catch (e) {
@@ -419,8 +419,8 @@ function requireNative() {
419
419
  try {
420
420
  const binding = require('@areev/areev-linux-riscv64-musl')
421
421
  const bindingPackageVersion = require('@areev/areev-linux-riscv64-musl/package.json').version
422
- if (bindingPackageVersion !== '1.9.5' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
423
- throw new Error(`Native binding package version mismatch, expected 1.9.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
422
+ if (bindingPackageVersion !== '1.10.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
423
+ throw new Error(`Native binding package version mismatch, expected 1.10.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
424
424
  }
425
425
  return binding
426
426
  } catch (e) {
@@ -435,8 +435,8 @@ function requireNative() {
435
435
  try {
436
436
  const binding = require('@areev/areev-linux-riscv64-gnu')
437
437
  const bindingPackageVersion = require('@areev/areev-linux-riscv64-gnu/package.json').version
438
- if (bindingPackageVersion !== '1.9.5' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
439
- throw new Error(`Native binding package version mismatch, expected 1.9.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
438
+ if (bindingPackageVersion !== '1.10.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
439
+ throw new Error(`Native binding package version mismatch, expected 1.10.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
440
440
  }
441
441
  return binding
442
442
  } catch (e) {
@@ -452,8 +452,8 @@ function requireNative() {
452
452
  try {
453
453
  const binding = require('@areev/areev-linux-ppc64-gnu')
454
454
  const bindingPackageVersion = require('@areev/areev-linux-ppc64-gnu/package.json').version
455
- if (bindingPackageVersion !== '1.9.5' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
456
- throw new Error(`Native binding package version mismatch, expected 1.9.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
455
+ if (bindingPackageVersion !== '1.10.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
456
+ throw new Error(`Native binding package version mismatch, expected 1.10.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
457
457
  }
458
458
  return binding
459
459
  } catch (e) {
@@ -468,8 +468,8 @@ function requireNative() {
468
468
  try {
469
469
  const binding = require('@areev/areev-linux-s390x-gnu')
470
470
  const bindingPackageVersion = require('@areev/areev-linux-s390x-gnu/package.json').version
471
- if (bindingPackageVersion !== '1.9.5' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
472
- throw new Error(`Native binding package version mismatch, expected 1.9.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
471
+ if (bindingPackageVersion !== '1.10.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
472
+ throw new Error(`Native binding package version mismatch, expected 1.10.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
473
473
  }
474
474
  return binding
475
475
  } catch (e) {
@@ -488,8 +488,8 @@ function requireNative() {
488
488
  try {
489
489
  const binding = require('@areev/areev-openharmony-arm64')
490
490
  const bindingPackageVersion = require('@areev/areev-openharmony-arm64/package.json').version
491
- if (bindingPackageVersion !== '1.9.5' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
492
- throw new Error(`Native binding package version mismatch, expected 1.9.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
491
+ if (bindingPackageVersion !== '1.10.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
492
+ throw new Error(`Native binding package version mismatch, expected 1.10.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
493
493
  }
494
494
  return binding
495
495
  } catch (e) {
@@ -504,8 +504,8 @@ function requireNative() {
504
504
  try {
505
505
  const binding = require('@areev/areev-openharmony-x64')
506
506
  const bindingPackageVersion = require('@areev/areev-openharmony-x64/package.json').version
507
- if (bindingPackageVersion !== '1.9.5' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
508
- throw new Error(`Native binding package version mismatch, expected 1.9.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
507
+ if (bindingPackageVersion !== '1.10.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
508
+ throw new Error(`Native binding package version mismatch, expected 1.10.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
509
509
  }
510
510
  return binding
511
511
  } catch (e) {
@@ -520,8 +520,8 @@ function requireNative() {
520
520
  try {
521
521
  const binding = require('@areev/areev-openharmony-arm')
522
522
  const bindingPackageVersion = require('@areev/areev-openharmony-arm/package.json').version
523
- if (bindingPackageVersion !== '1.9.5' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
524
- throw new Error(`Native binding package version mismatch, expected 1.9.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
523
+ if (bindingPackageVersion !== '1.10.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
524
+ throw new Error(`Native binding package version mismatch, expected 1.10.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
525
525
  }
526
526
  return binding
527
527
  } catch (e) {
@@ -661,8 +661,8 @@ if (!nativeBinding || forceWasi) {
661
661
  if (!candidateFailed) {
662
662
  if (process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
663
663
  const bindingPackageVersion = require('@areev/areev-wasm32-wasi/package.json').version
664
- if (bindingPackageVersion !== '1.9.5') {
665
- throw new Error(`WASI binding package version mismatch, expected 1.9.5 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
664
+ if (bindingPackageVersion !== '1.10.1') {
665
+ throw new Error(`WASI binding package version mismatch, expected 1.10.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
666
666
  }
667
667
  }
668
668
  wasiBinding = require('@areev/areev-wasm32-wasi')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@areev/areev",
3
- "version": "1.9.5",
3
+ "version": "1.10.1",
4
4
  "description": "Node.js bindings for Areev, the embedded memory engine for AI agents.",
5
5
  "license": "MIT OR Apache-2.0",
6
6
  "author": "MindGryd Software Private Limited",
@@ -46,10 +46,10 @@
46
46
  "@napi-rs/cli": "^3"
47
47
  },
48
48
  "optionalDependencies": {
49
- "@areev/areev-darwin-arm64": "1.9.5",
50
- "@areev/areev-darwin-x64": "1.9.5",
51
- "@areev/areev-linux-arm64-gnu": "1.9.5",
52
- "@areev/areev-linux-x64-gnu": "1.9.5",
53
- "@areev/areev-win32-x64-msvc": "1.9.5"
49
+ "@areev/areev-darwin-arm64": "1.10.1",
50
+ "@areev/areev-darwin-x64": "1.10.1",
51
+ "@areev/areev-linux-arm64-gnu": "1.10.1",
52
+ "@areev/areev-linux-x64-gnu": "1.10.1",
53
+ "@areev/areev-win32-x64-msvc": "1.10.1"
54
54
  }
55
55
  }