@areev/areev 1.9.2 → 1.9.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.
Files changed (4) hide show
  1. package/README.md +24 -0
  2. package/index.d.ts +79 -2
  3. package/index.js +55 -54
  4. package/package.json +6 -6
package/README.md CHANGED
@@ -25,6 +25,30 @@ await mem.migrate('mem0', exportJson, historyJson) // import an existing corpus
25
25
  await mem.memoryTool('{"command": "view", "path": "/memories"}') // Anthropic memory-tool backend
26
26
  ```
27
27
 
28
+ ## Agent packs
29
+
30
+ Validate and install an agent pack (`docs/pack.md`) without shipping the
31
+ `areev` binary. Both resolve to the pack report as a JSON string; a refusal
32
+ rejects with an `Error` whose `code` is the typed cause (`PCK-E001`..`PCK-E005`,
33
+ or the `AUT-*`/`STO-*` code passed through).
34
+
35
+ ```js
36
+ const { Areev, packValidate } = require('@areev/areev')
37
+
38
+ const report = JSON.parse(await packValidate('packs/invoice-to-accounting')) // no memory needed
39
+ const tenant = new Areev('tenant.db', 'shared', undefined, undefined, undefined, 'svc:installer')
40
+ try {
41
+ const installed = JSON.parse(await tenant.packInstall('packs/invoice-to-accounting', {
42
+ expectedHash: planHash, // refuse unless the plan builds to this
43
+ executorPins: { screen: pinnedAddr }, // checked, never written (PCK-E005)
44
+ }))
45
+ } catch (e) {
46
+ console.log(e.code) // 'PCK-E002', 'PCK-E005', 'AUT-E001', …
47
+ } finally {
48
+ tenant.close()
49
+ }
50
+ ```
51
+
28
52
  ## Every method returns a promise
29
53
 
30
54
  Store calls run on libuv's thread pool, not on the thread running your
package/index.d.ts CHANGED
@@ -259,6 +259,20 @@ export declare class Areev {
259
259
  verifyAttestations(): Promise<string>
260
260
  /** Incremental backup to a bundle file. Returns last_op_seq cursor. */
261
261
  bundle(path: string, since?: number | undefined | null): Promise<number>
262
+ /**
263
+ * Install an agent pack directory into this memory (#341) — the library
264
+ * behind `areev pack install`, under THIS handle's bound principal.
265
+ * Resolves to the pack report as a JSON string (the fields
266
+ * `areev pack install --format json` prints, plus `executors`).
267
+ *
268
+ * All-or-nothing: every grain is built and addressed, `expectedHash` and
269
+ * `executorPins` are checked, and every write is authorized BEFORE the
270
+ * first one; the grains then go in as one batch. A principal without
271
+ * `write` on the pack's namespace rejects with `code: "AUT-E001"` and the
272
+ * memory untouched. Rejections carry `err.code` = `PCK-E001`..`PCK-E005`
273
+ * or the `AUT-*`/`STO-*` code passed through.
274
+ */
275
+ packInstall(dir: string, options?: PackInstallOptions | undefined | null): Promise<string>
262
276
  /** Apply a bundle (fast-forward, idempotent). Returns ops applied. */
263
277
  importBundle(path: string): Promise<number>
264
278
  /** Integrity + content-address verification. Throws on failure. */
@@ -410,9 +424,12 @@ export declare class Areev {
410
424
  * Run one analysis pass. Bare it never gates. `fullSweep` re-analyzes
411
425
  * the whole memory (`areev loop reflect` semantics); `policy` is a path
412
426
  * to a host `loop-policy.json` — the only way auto-apply is granted
413
- * from the bindings. Returns run-outcome JSON.
427
+ * from the bindings. `baseUrl` / `keyEnv` point the model leg
428
+ * (reflection and grounding) at a gateway with a key named by variable
429
+ * — the CLI's `--llm-base-url` / `--llm-api-key-env`, and `runStart`'s
430
+ * pair (#346). Returns run-outcome JSON.
414
431
  */
415
- loopRun(minNew?: number | undefined | null, minNewErrors?: number | undefined | null, ifStale?: string | undefined | null, model?: string | undefined | null, llmCmd?: string | undefined | null, groundModel?: string | undefined | null, groundCmd?: string | undefined | null, analyzerCmd?: string | undefined | null, fullSweep?: boolean | undefined | null, policy?: string | undefined | null): Promise<string>
432
+ loopRun(minNew?: number | undefined | null, minNewErrors?: number | undefined | null, ifStale?: string | undefined | null, model?: string | undefined | null, llmCmd?: string | undefined | null, groundModel?: string | undefined | null, groundCmd?: string | undefined | null, analyzerCmd?: string | undefined | null, fullSweep?: boolean | undefined | null, policy?: string | undefined | null, baseUrl?: string | undefined | null, keyEnv?: string | undefined | null): Promise<string>
416
433
  /**
417
434
  * Score a candidate loop configuration against the recorded past,
418
435
  * beside the incumbent (`areev loop replay`). `request` is the JSON
@@ -428,6 +445,15 @@ export declare class Areev {
428
445
  * "pending"}`; `{"status":"all"}` clears the filter. JSON list.
429
446
  */
430
447
  recommendations(filter?: string | undefined | null): Promise<string>
448
+ /**
449
+ * One recommendation as `areev loop show` prints it — the review
450
+ * surface, including the proposal body (`cal` / `edit` / `data`) and
451
+ * `action_kind`, so a host can measure a proposal before it approves or
452
+ * applies it (#348). A hash prefix is accepted. Coverage-filtered like
453
+ * `recommendations()`: a recommendation the principal cannot see is
454
+ * "not found", never a denial that discloses it exists.
455
+ */
456
+ recommendation(hash: string): Promise<string>
431
457
  /**
432
458
  * Approve and apply a recommendation in one audited step (§6.6). The
433
459
  * `because` reason is mandatory. A refused apply leaves the recommendation
@@ -507,8 +533,11 @@ export declare class Areev {
507
533
  /**
508
534
  * Host cap (never persisted): force egress anonymization on for every
509
535
  * namespace without a declared policy. Can never weaken a declared one.
536
+ * Raising it needs no grant; lowering it needs `admin` on `"*"` (#345).
510
537
  */
511
538
  setAnonymizeEgressFloor(on: boolean): Promise<void>
539
+ /** Whether the egress anonymization floor is on for this handle. */
540
+ anonymizeEgressFloor(): Promise<boolean>
512
541
  /**
513
542
  * Install a Tier-1 NER detector over the command seam (probed at
514
543
  * install; a broken command errors here, not at the first read).
@@ -574,6 +603,22 @@ export declare class Areev {
574
603
  runInput(runId: string, message: string): Promise<string>
575
604
  /** Write the kill-switch marker (the lowest-privilege run verb). */
576
605
  runCancel(runId: string, because?: string | undefined | null): Promise<string>
606
+ /**
607
+ * Ask a live run to PAUSE at its next superstep boundary (#344): the
608
+ * open superstep finishes and checkpoints, nothing past it dispatches,
609
+ * and the driving `runStart`/`runResume` returns `{"parked": …}` with
610
+ * `kind`/`reason` `"paused"` (its `onEvent` stream ends at `RunPaused`).
611
+ * `runResume` continues it under the same run id, manifest and pins.
612
+ *
613
+ * Safe to call from an `onEvent` callback — that is the shape a host
614
+ * metering work in its own units uses. Needs `run.execute`, the grant
615
+ * `runResume` takes. Idempotent (`already: true` answers the standing
616
+ * request); rejects with `RUN-E029` on a finished run or a pending
617
+ * cancel. Returns the receipt JSON: `run_id`, `status`
618
+ * (`requested` | `paused`), `already`, `request`, `paused_by`,
619
+ * `because`, `requested_at`.
620
+ */
621
+ runPause(runId: string, because?: string | undefined | null): Promise<string>
577
622
  /** Journal-consistent replay; writes nothing. JSON report. */
578
623
  runVerify(runId: string): Promise<string>
579
624
  /**
@@ -726,6 +771,38 @@ export declare class Areev {
726
771
 
727
772
  export declare function dropPostgresSchema(url: string, schema: string): void
728
773
 
774
+ /** Options for `packInstall` (#341). Every field is optional. */
775
+ export interface PackInstallOptions {
776
+ /**
777
+ * The plan hash the deployment expects: some Workflow grain in the pack
778
+ * must build to it, else `PCK-E002` with nothing written.
779
+ */
780
+ expectedHash?: string
781
+ /**
782
+ * The namespace for grains when neither the grain nor the manifest names
783
+ * one. Part of those grains' content when it applies.
784
+ */
785
+ ns?: string
786
+ /**
787
+ * Host executor pins, `{ tool: address }` (tool = `tool_name`, pack-local
788
+ * grain id, or symbolic blob name; address = `<hex>`, `sha256:<hex>` or
789
+ * `cas://sha256:<hex>`). Checked against the pack's code, never written;
790
+ * a mismatch or a pin naming no code-carrying tool is `PCK-E005`.
791
+ */
792
+ executorPins?: Record<string, string>
793
+ /** Check everything, write nothing. */
794
+ dryRun?: boolean
795
+ }
796
+
797
+ /**
798
+ * Validate an agent pack directory with no memory at all (#341) — the
799
+ * library behind `areev pack validate`. Resolves to the pack report as a
800
+ * JSON string: grains with their content addresses, blobs, the registry
801
+ * keys, `allow_executor`, `executors` (every code-carrying tool with its
802
+ * address) and warnings. Rejects with `err.code` = `PCK-E001`..`PCK-E005`.
803
+ */
804
+ export declare function packValidate(dir: string): Promise<string>
805
+
729
806
  /**
730
807
  * Drop a memory schema entirely — the postgres backend's memory-level
731
808
  * erasure primitive (`DROP SCHEMA … CASCADE`), the analogue of deleting a
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.2' && 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.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
92
+ if (bindingPackageVersion !== '1.9.4' && 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.4 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.2' && 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.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
108
+ if (bindingPackageVersion !== '1.9.4' && 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.4 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.2' && 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.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
129
+ if (bindingPackageVersion !== '1.9.4' && 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.4 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.2' && 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.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
145
+ if (bindingPackageVersion !== '1.9.4' && 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.4 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.2' && 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.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
162
+ if (bindingPackageVersion !== '1.9.4' && 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.4 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.2' && 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.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
178
+ if (bindingPackageVersion !== '1.9.4' && 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.4 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.2' && 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.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
197
+ if (bindingPackageVersion !== '1.9.4' && 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.4 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.2' && 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.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
213
+ if (bindingPackageVersion !== '1.9.4' && 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.4 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.2' && 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.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
229
+ if (bindingPackageVersion !== '1.9.4' && 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.4 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.2' && 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.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
249
+ if (bindingPackageVersion !== '1.9.4' && 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.4 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.2' && 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.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
265
+ if (bindingPackageVersion !== '1.9.4' && 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.4 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.2' && 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.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
286
+ if (bindingPackageVersion !== '1.9.4' && 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.4 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.2' && 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.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
302
+ if (bindingPackageVersion !== '1.9.4' && 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.4 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.2' && 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.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
320
+ if (bindingPackageVersion !== '1.9.4' && 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.4 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.2' && 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.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
336
+ if (bindingPackageVersion !== '1.9.4' && 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.4 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.2' && 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.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
354
+ if (bindingPackageVersion !== '1.9.4' && 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.4 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.2' && 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.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
370
+ if (bindingPackageVersion !== '1.9.4' && 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.4 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.2' && 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.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
388
+ if (bindingPackageVersion !== '1.9.4' && 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.4 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.2' && 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.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
404
+ if (bindingPackageVersion !== '1.9.4' && 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.4 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.2' && 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.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
422
+ if (bindingPackageVersion !== '1.9.4' && 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.4 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.2' && 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.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
438
+ if (bindingPackageVersion !== '1.9.4' && 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.4 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.2' && 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.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
455
+ if (bindingPackageVersion !== '1.9.4' && 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.4 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.2' && 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.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
471
+ if (bindingPackageVersion !== '1.9.4' && 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.4 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.2' && 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.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
491
+ if (bindingPackageVersion !== '1.9.4' && 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.4 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.2' && 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.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
507
+ if (bindingPackageVersion !== '1.9.4' && 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.4 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.2' && 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.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
523
+ if (bindingPackageVersion !== '1.9.4' && 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.4 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.2') {
665
- throw new Error(`WASI binding package version mismatch, expected 1.9.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
664
+ if (bindingPackageVersion !== '1.9.4') {
665
+ throw new Error(`WASI binding package version mismatch, expected 1.9.4 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
666
666
  }
667
667
  }
668
668
  wasiBinding = require('@areev/areev-wasm32-wasi')
@@ -780,4 +780,5 @@ module.exports.__napiBindingTarget = __napiStampBindingTarget(nativeBinding, __n
780
780
  module.exports = nativeBinding
781
781
  module.exports.Areev = nativeBinding.Areev
782
782
  module.exports.dropPostgresSchema = nativeBinding.dropPostgresSchema
783
+ module.exports.packValidate = nativeBinding.packValidate
783
784
  module.exports.readBlobOffline = nativeBinding.readBlobOffline
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@areev/areev",
3
- "version": "1.9.2",
3
+ "version": "1.9.4",
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.2",
50
- "@areev/areev-darwin-x64": "1.9.2",
51
- "@areev/areev-linux-arm64-gnu": "1.9.2",
52
- "@areev/areev-linux-x64-gnu": "1.9.2",
53
- "@areev/areev-win32-x64-msvc": "1.9.2"
49
+ "@areev/areev-darwin-arm64": "1.9.4",
50
+ "@areev/areev-darwin-x64": "1.9.4",
51
+ "@areev/areev-linux-arm64-gnu": "1.9.4",
52
+ "@areev/areev-linux-x64-gnu": "1.9.4",
53
+ "@areev/areev-win32-x64-msvc": "1.9.4"
54
54
  }
55
55
  }