@areev/areev 1.2.2 → 1.3.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/README.md +2 -2
- package/index.d.ts +49 -1
- package/index.js +110 -109
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -11,14 +11,14 @@ memory is one file, opened with a namespace, giving JavaScript agents durable
|
|
|
11
11
|
add / recall / supersede / forget over content-addressed memory.
|
|
12
12
|
|
|
13
13
|
```js
|
|
14
|
-
const { Areev } = require('areev')
|
|
14
|
+
const { Areev } = require('@areev/areev')
|
|
15
15
|
|
|
16
16
|
const mem = new Areev('caller.db', 'caller') // 3rd arg: passphrase for AES-256 at rest
|
|
17
17
|
const h = await mem.addFact('john', 'prefers', 'tea', 0.95)
|
|
18
18
|
console.log(await mem.recall('john')) // JSON string, newest-first
|
|
19
19
|
|
|
20
20
|
await mem.setEmbedderCommand('python3 embed.py') // vector recall via a host command
|
|
21
|
-
await mem.migrate('mem0', exportJson, historyJson) // import
|
|
21
|
+
await mem.migrate('mem0', exportJson, historyJson) // import an existing corpus (docs/migrate.md)
|
|
22
22
|
await mem.memoryTool('{"command": "view", "path": "/memories"}') // Anthropic memory-tool backend
|
|
23
23
|
```
|
|
24
24
|
|
package/index.d.ts
CHANGED
|
@@ -169,6 +169,21 @@ export declare class Areev {
|
|
|
169
169
|
* (absent when the query raised none).
|
|
170
170
|
*/
|
|
171
171
|
cal(query: string): Promise<string>
|
|
172
|
+
/**
|
|
173
|
+
* Parse and validate a statement now, and keep the plan, so the first
|
|
174
|
+
* real turn does not pay for it.
|
|
175
|
+
*
|
|
176
|
+
* The handle is the statement TEXT — there is no opaque handle object to
|
|
177
|
+
* leak or invalidate, because the executor already keys its plan cache on
|
|
178
|
+
* exactly that. Call this at startup for each statement your agent runs
|
|
179
|
+
* on the hot path: it turns a bad statement into a startup error instead
|
|
180
|
+
* of a first-turn error, and guarantees the plan is warm rather than
|
|
181
|
+
* hoping it is.
|
|
182
|
+
*
|
|
183
|
+
* Returns `{statement, cached}` where `cached` is the number of plans
|
|
184
|
+
* held.
|
|
185
|
+
*/
|
|
186
|
+
calPrepare(query: string): Promise<string>
|
|
172
187
|
/** Supersession-chain history for (subject, relation), newest first. */
|
|
173
188
|
history(subject: string, relation: string, ns?: string | undefined | null): Promise<string>
|
|
174
189
|
/**
|
|
@@ -273,6 +288,18 @@ export declare class Areev {
|
|
|
273
288
|
* mutating it — retries show up as several records for one node.
|
|
274
289
|
*/
|
|
275
290
|
stepActions(workflow: string, node?: string | undefined | null, limit?: number | undefined | null, ns?: string | undefined | null): Promise<string>
|
|
291
|
+
/**
|
|
292
|
+
* Last `n` grains of one conversation, oldest→newest (transcript order).
|
|
293
|
+
*
|
|
294
|
+
* The read a chat or voice agent makes on every single turn. Backed by
|
|
295
|
+
* `idx_thread(ns, session, seq)`, so the bound is n turns of THIS session
|
|
296
|
+
* rather than n rows of the namespace — unlike a namespace scan filtered
|
|
297
|
+
* afterwards, which can miss the conversation entirely on a busy
|
|
298
|
+
* namespace. Exact namespace only: a session lives in one by construction.
|
|
299
|
+
*
|
|
300
|
+
* Returns `{ns, session, grains: [{hash, type, fields}]}`.
|
|
301
|
+
*/
|
|
302
|
+
threadTail(session: string, n?: number | undefined | null, ns?: string | undefined | null): Promise<string>
|
|
276
303
|
/**
|
|
277
304
|
* Record a tool call as a Tool grain — the flagship analyzer's food.
|
|
278
305
|
*
|
|
@@ -436,12 +463,33 @@ export declare class Areev {
|
|
|
436
463
|
changesSince(afterOpSeq?: number | undefined | null, limit?: number | undefined | null): Promise<string>
|
|
437
464
|
/** Recent run ids, newest first. JSON list string. */
|
|
438
465
|
runList(limit?: number | undefined | null): Promise<string>
|
|
466
|
+
/**
|
|
467
|
+
* One run's full picture — manifest, budgets, phase, spend, pending
|
|
468
|
+
* asks, fork lineage. JSON report; same shape as `areev run inspect`.
|
|
469
|
+
*/
|
|
470
|
+
runInspect(runId: string): Promise<string>
|
|
471
|
+
/**
|
|
472
|
+
* The EU AI Act Article 14 report — measured from the journal, not
|
|
473
|
+
* asserted. `runId` takes precedence; `plan` (a hex hash) resolves to
|
|
474
|
+
* that plan's newest run; neither given reports on the newest run
|
|
475
|
+
* overall. JSON report; same shape as `areev run oversight-report`.
|
|
476
|
+
*/
|
|
477
|
+
runOversightReport(runId?: string | undefined | null, plan?: string | undefined | null): Promise<string>
|
|
439
478
|
}
|
|
440
479
|
|
|
480
|
+
export declare function dropPostgresSchema(url: string, schema: string): void
|
|
481
|
+
|
|
441
482
|
/**
|
|
442
483
|
* Drop a memory schema entirely — the postgres backend's memory-level
|
|
443
484
|
* erasure primitive (`DROP SCHEMA … CASCADE`), the analogue of deleting a
|
|
444
485
|
* memory file. Destroys the memory AND its telemetry/blobs. Admin surface:
|
|
445
486
|
* gate it like any destructive operation in your host.
|
|
487
|
+
* Read one CAS blob from a memory's `.blobs` sidecar without opening the
|
|
488
|
+
* database.
|
|
489
|
+
*
|
|
490
|
+
* The embedded backend's lock is exclusive, so a `--tool-cmd` subprocess
|
|
491
|
+
* cannot open the memory its own run is holding. No lock is needed: a blob is
|
|
492
|
+
* immutable and its address is its checksum, re-verified here. `null` means
|
|
493
|
+
* the blob is sealed — open the memory with its passphrase for that.
|
|
446
494
|
*/
|
|
447
|
-
export declare function
|
|
495
|
+
export declare function readBlobOffline(dbPath: string, uri: string): Buffer | null
|
package/index.js
CHANGED
|
@@ -75,10 +75,10 @@ function requireNative() {
|
|
|
75
75
|
loadErrors.push(e)
|
|
76
76
|
}
|
|
77
77
|
try {
|
|
78
|
-
const binding = require('areev-android-arm64')
|
|
79
|
-
const bindingPackageVersion = require('areev-android-arm64/package.json').version
|
|
80
|
-
if (bindingPackageVersion !== '1.
|
|
81
|
-
throw new Error(`Native binding package version mismatch, expected 1.
|
|
78
|
+
const binding = require('@areev/areev-android-arm64')
|
|
79
|
+
const bindingPackageVersion = require('@areev/areev-android-arm64/package.json').version
|
|
80
|
+
if (bindingPackageVersion !== '1.3.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
81
|
+
throw new Error(`Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
82
82
|
}
|
|
83
83
|
return binding
|
|
84
84
|
} catch (e) {
|
|
@@ -91,10 +91,10 @@ function requireNative() {
|
|
|
91
91
|
loadErrors.push(e)
|
|
92
92
|
}
|
|
93
93
|
try {
|
|
94
|
-
const binding = require('areev-android-arm-eabi')
|
|
95
|
-
const bindingPackageVersion = require('areev-android-arm-eabi/package.json').version
|
|
96
|
-
if (bindingPackageVersion !== '1.
|
|
97
|
-
throw new Error(`Native binding package version mismatch, expected 1.
|
|
94
|
+
const binding = require('@areev/areev-android-arm-eabi')
|
|
95
|
+
const bindingPackageVersion = require('@areev/areev-android-arm-eabi/package.json').version
|
|
96
|
+
if (bindingPackageVersion !== '1.3.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
97
|
+
throw new Error(`Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
98
98
|
}
|
|
99
99
|
return binding
|
|
100
100
|
} catch (e) {
|
|
@@ -112,10 +112,10 @@ function requireNative() {
|
|
|
112
112
|
loadErrors.push(e)
|
|
113
113
|
}
|
|
114
114
|
try {
|
|
115
|
-
const binding = require('areev-win32-x64-gnu')
|
|
116
|
-
const bindingPackageVersion = require('areev-win32-x64-gnu/package.json').version
|
|
117
|
-
if (bindingPackageVersion !== '1.
|
|
118
|
-
throw new Error(`Native binding package version mismatch, expected 1.
|
|
115
|
+
const binding = require('@areev/areev-win32-x64-gnu')
|
|
116
|
+
const bindingPackageVersion = require('@areev/areev-win32-x64-gnu/package.json').version
|
|
117
|
+
if (bindingPackageVersion !== '1.3.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
118
|
+
throw new Error(`Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
119
119
|
}
|
|
120
120
|
return binding
|
|
121
121
|
} catch (e) {
|
|
@@ -128,10 +128,10 @@ function requireNative() {
|
|
|
128
128
|
loadErrors.push(e)
|
|
129
129
|
}
|
|
130
130
|
try {
|
|
131
|
-
const binding = require('areev-win32-x64-msvc')
|
|
132
|
-
const bindingPackageVersion = require('areev-win32-x64-msvc/package.json').version
|
|
133
|
-
if (bindingPackageVersion !== '1.
|
|
134
|
-
throw new Error(`Native binding package version mismatch, expected 1.
|
|
131
|
+
const binding = require('@areev/areev-win32-x64-msvc')
|
|
132
|
+
const bindingPackageVersion = require('@areev/areev-win32-x64-msvc/package.json').version
|
|
133
|
+
if (bindingPackageVersion !== '1.3.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
134
|
+
throw new Error(`Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
135
135
|
}
|
|
136
136
|
return binding
|
|
137
137
|
} catch (e) {
|
|
@@ -145,10 +145,10 @@ function requireNative() {
|
|
|
145
145
|
loadErrors.push(e)
|
|
146
146
|
}
|
|
147
147
|
try {
|
|
148
|
-
const binding = require('areev-win32-ia32-msvc')
|
|
149
|
-
const bindingPackageVersion = require('areev-win32-ia32-msvc/package.json').version
|
|
150
|
-
if (bindingPackageVersion !== '1.
|
|
151
|
-
throw new Error(`Native binding package version mismatch, expected 1.
|
|
148
|
+
const binding = require('@areev/areev-win32-ia32-msvc')
|
|
149
|
+
const bindingPackageVersion = require('@areev/areev-win32-ia32-msvc/package.json').version
|
|
150
|
+
if (bindingPackageVersion !== '1.3.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
151
|
+
throw new Error(`Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
152
152
|
}
|
|
153
153
|
return binding
|
|
154
154
|
} catch (e) {
|
|
@@ -161,10 +161,10 @@ function requireNative() {
|
|
|
161
161
|
loadErrors.push(e)
|
|
162
162
|
}
|
|
163
163
|
try {
|
|
164
|
-
const binding = require('areev-win32-arm64-msvc')
|
|
165
|
-
const bindingPackageVersion = require('areev-win32-arm64-msvc/package.json').version
|
|
166
|
-
if (bindingPackageVersion !== '1.
|
|
167
|
-
throw new Error(`Native binding package version mismatch, expected 1.
|
|
164
|
+
const binding = require('@areev/areev-win32-arm64-msvc')
|
|
165
|
+
const bindingPackageVersion = require('@areev/areev-win32-arm64-msvc/package.json').version
|
|
166
|
+
if (bindingPackageVersion !== '1.3.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
167
|
+
throw new Error(`Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
168
168
|
}
|
|
169
169
|
return binding
|
|
170
170
|
} catch (e) {
|
|
@@ -180,10 +180,10 @@ function requireNative() {
|
|
|
180
180
|
loadErrors.push(e)
|
|
181
181
|
}
|
|
182
182
|
try {
|
|
183
|
-
const binding = require('areev-darwin-universal')
|
|
184
|
-
const bindingPackageVersion = require('areev-darwin-universal/package.json').version
|
|
185
|
-
if (bindingPackageVersion !== '1.
|
|
186
|
-
throw new Error(`Native binding package version mismatch, expected 1.
|
|
183
|
+
const binding = require('@areev/areev-darwin-universal')
|
|
184
|
+
const bindingPackageVersion = require('@areev/areev-darwin-universal/package.json').version
|
|
185
|
+
if (bindingPackageVersion !== '1.3.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
186
|
+
throw new Error(`Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
187
187
|
}
|
|
188
188
|
return binding
|
|
189
189
|
} catch (e) {
|
|
@@ -196,10 +196,10 @@ function requireNative() {
|
|
|
196
196
|
loadErrors.push(e)
|
|
197
197
|
}
|
|
198
198
|
try {
|
|
199
|
-
const binding = require('areev-darwin-x64')
|
|
200
|
-
const bindingPackageVersion = require('areev-darwin-x64/package.json').version
|
|
201
|
-
if (bindingPackageVersion !== '1.
|
|
202
|
-
throw new Error(`Native binding package version mismatch, expected 1.
|
|
199
|
+
const binding = require('@areev/areev-darwin-x64')
|
|
200
|
+
const bindingPackageVersion = require('@areev/areev-darwin-x64/package.json').version
|
|
201
|
+
if (bindingPackageVersion !== '1.3.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
202
|
+
throw new Error(`Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
203
203
|
}
|
|
204
204
|
return binding
|
|
205
205
|
} catch (e) {
|
|
@@ -212,10 +212,10 @@ function requireNative() {
|
|
|
212
212
|
loadErrors.push(e)
|
|
213
213
|
}
|
|
214
214
|
try {
|
|
215
|
-
const binding = require('areev-darwin-arm64')
|
|
216
|
-
const bindingPackageVersion = require('areev-darwin-arm64/package.json').version
|
|
217
|
-
if (bindingPackageVersion !== '1.
|
|
218
|
-
throw new Error(`Native binding package version mismatch, expected 1.
|
|
215
|
+
const binding = require('@areev/areev-darwin-arm64')
|
|
216
|
+
const bindingPackageVersion = require('@areev/areev-darwin-arm64/package.json').version
|
|
217
|
+
if (bindingPackageVersion !== '1.3.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
218
|
+
throw new Error(`Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
219
219
|
}
|
|
220
220
|
return binding
|
|
221
221
|
} catch (e) {
|
|
@@ -232,10 +232,10 @@ function requireNative() {
|
|
|
232
232
|
loadErrors.push(e)
|
|
233
233
|
}
|
|
234
234
|
try {
|
|
235
|
-
const binding = require('areev-freebsd-x64')
|
|
236
|
-
const bindingPackageVersion = require('areev-freebsd-x64/package.json').version
|
|
237
|
-
if (bindingPackageVersion !== '1.
|
|
238
|
-
throw new Error(`Native binding package version mismatch, expected 1.
|
|
235
|
+
const binding = require('@areev/areev-freebsd-x64')
|
|
236
|
+
const bindingPackageVersion = require('@areev/areev-freebsd-x64/package.json').version
|
|
237
|
+
if (bindingPackageVersion !== '1.3.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
238
|
+
throw new Error(`Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
239
239
|
}
|
|
240
240
|
return binding
|
|
241
241
|
} catch (e) {
|
|
@@ -248,10 +248,10 @@ function requireNative() {
|
|
|
248
248
|
loadErrors.push(e)
|
|
249
249
|
}
|
|
250
250
|
try {
|
|
251
|
-
const binding = require('areev-freebsd-arm64')
|
|
252
|
-
const bindingPackageVersion = require('areev-freebsd-arm64/package.json').version
|
|
253
|
-
if (bindingPackageVersion !== '1.
|
|
254
|
-
throw new Error(`Native binding package version mismatch, expected 1.
|
|
251
|
+
const binding = require('@areev/areev-freebsd-arm64')
|
|
252
|
+
const bindingPackageVersion = require('@areev/areev-freebsd-arm64/package.json').version
|
|
253
|
+
if (bindingPackageVersion !== '1.3.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
254
|
+
throw new Error(`Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
255
255
|
}
|
|
256
256
|
return binding
|
|
257
257
|
} catch (e) {
|
|
@@ -269,10 +269,10 @@ function requireNative() {
|
|
|
269
269
|
loadErrors.push(e)
|
|
270
270
|
}
|
|
271
271
|
try {
|
|
272
|
-
const binding = require('areev-linux-x64-musl')
|
|
273
|
-
const bindingPackageVersion = require('areev-linux-x64-musl/package.json').version
|
|
274
|
-
if (bindingPackageVersion !== '1.
|
|
275
|
-
throw new Error(`Native binding package version mismatch, expected 1.
|
|
272
|
+
const binding = require('@areev/areev-linux-x64-musl')
|
|
273
|
+
const bindingPackageVersion = require('@areev/areev-linux-x64-musl/package.json').version
|
|
274
|
+
if (bindingPackageVersion !== '1.3.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
275
|
+
throw new Error(`Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
276
276
|
}
|
|
277
277
|
return binding
|
|
278
278
|
} catch (e) {
|
|
@@ -285,10 +285,10 @@ function requireNative() {
|
|
|
285
285
|
loadErrors.push(e)
|
|
286
286
|
}
|
|
287
287
|
try {
|
|
288
|
-
const binding = require('areev-linux-x64-gnu')
|
|
289
|
-
const bindingPackageVersion = require('areev-linux-x64-gnu/package.json').version
|
|
290
|
-
if (bindingPackageVersion !== '1.
|
|
291
|
-
throw new Error(`Native binding package version mismatch, expected 1.
|
|
288
|
+
const binding = require('@areev/areev-linux-x64-gnu')
|
|
289
|
+
const bindingPackageVersion = require('@areev/areev-linux-x64-gnu/package.json').version
|
|
290
|
+
if (bindingPackageVersion !== '1.3.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
291
|
+
throw new Error(`Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
292
292
|
}
|
|
293
293
|
return binding
|
|
294
294
|
} catch (e) {
|
|
@@ -303,10 +303,10 @@ function requireNative() {
|
|
|
303
303
|
loadErrors.push(e)
|
|
304
304
|
}
|
|
305
305
|
try {
|
|
306
|
-
const binding = require('areev-linux-arm64-musl')
|
|
307
|
-
const bindingPackageVersion = require('areev-linux-arm64-musl/package.json').version
|
|
308
|
-
if (bindingPackageVersion !== '1.
|
|
309
|
-
throw new Error(`Native binding package version mismatch, expected 1.
|
|
306
|
+
const binding = require('@areev/areev-linux-arm64-musl')
|
|
307
|
+
const bindingPackageVersion = require('@areev/areev-linux-arm64-musl/package.json').version
|
|
308
|
+
if (bindingPackageVersion !== '1.3.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
309
|
+
throw new Error(`Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
310
310
|
}
|
|
311
311
|
return binding
|
|
312
312
|
} catch (e) {
|
|
@@ -319,10 +319,10 @@ function requireNative() {
|
|
|
319
319
|
loadErrors.push(e)
|
|
320
320
|
}
|
|
321
321
|
try {
|
|
322
|
-
const binding = require('areev-linux-arm64-gnu')
|
|
323
|
-
const bindingPackageVersion = require('areev-linux-arm64-gnu/package.json').version
|
|
324
|
-
if (bindingPackageVersion !== '1.
|
|
325
|
-
throw new Error(`Native binding package version mismatch, expected 1.
|
|
322
|
+
const binding = require('@areev/areev-linux-arm64-gnu')
|
|
323
|
+
const bindingPackageVersion = require('@areev/areev-linux-arm64-gnu/package.json').version
|
|
324
|
+
if (bindingPackageVersion !== '1.3.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
325
|
+
throw new Error(`Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
326
326
|
}
|
|
327
327
|
return binding
|
|
328
328
|
} catch (e) {
|
|
@@ -337,10 +337,10 @@ function requireNative() {
|
|
|
337
337
|
loadErrors.push(e)
|
|
338
338
|
}
|
|
339
339
|
try {
|
|
340
|
-
const binding = require('areev-linux-arm-musleabihf')
|
|
341
|
-
const bindingPackageVersion = require('areev-linux-arm-musleabihf/package.json').version
|
|
342
|
-
if (bindingPackageVersion !== '1.
|
|
343
|
-
throw new Error(`Native binding package version mismatch, expected 1.
|
|
340
|
+
const binding = require('@areev/areev-linux-arm-musleabihf')
|
|
341
|
+
const bindingPackageVersion = require('@areev/areev-linux-arm-musleabihf/package.json').version
|
|
342
|
+
if (bindingPackageVersion !== '1.3.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
343
|
+
throw new Error(`Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
344
344
|
}
|
|
345
345
|
return binding
|
|
346
346
|
} catch (e) {
|
|
@@ -353,10 +353,10 @@ function requireNative() {
|
|
|
353
353
|
loadErrors.push(e)
|
|
354
354
|
}
|
|
355
355
|
try {
|
|
356
|
-
const binding = require('areev-linux-arm-gnueabihf')
|
|
357
|
-
const bindingPackageVersion = require('areev-linux-arm-gnueabihf/package.json').version
|
|
358
|
-
if (bindingPackageVersion !== '1.
|
|
359
|
-
throw new Error(`Native binding package version mismatch, expected 1.
|
|
356
|
+
const binding = require('@areev/areev-linux-arm-gnueabihf')
|
|
357
|
+
const bindingPackageVersion = require('@areev/areev-linux-arm-gnueabihf/package.json').version
|
|
358
|
+
if (bindingPackageVersion !== '1.3.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
359
|
+
throw new Error(`Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
360
360
|
}
|
|
361
361
|
return binding
|
|
362
362
|
} catch (e) {
|
|
@@ -371,10 +371,10 @@ function requireNative() {
|
|
|
371
371
|
loadErrors.push(e)
|
|
372
372
|
}
|
|
373
373
|
try {
|
|
374
|
-
const binding = require('areev-linux-loong64-musl')
|
|
375
|
-
const bindingPackageVersion = require('areev-linux-loong64-musl/package.json').version
|
|
376
|
-
if (bindingPackageVersion !== '1.
|
|
377
|
-
throw new Error(`Native binding package version mismatch, expected 1.
|
|
374
|
+
const binding = require('@areev/areev-linux-loong64-musl')
|
|
375
|
+
const bindingPackageVersion = require('@areev/areev-linux-loong64-musl/package.json').version
|
|
376
|
+
if (bindingPackageVersion !== '1.3.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
377
|
+
throw new Error(`Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
378
378
|
}
|
|
379
379
|
return binding
|
|
380
380
|
} catch (e) {
|
|
@@ -387,10 +387,10 @@ function requireNative() {
|
|
|
387
387
|
loadErrors.push(e)
|
|
388
388
|
}
|
|
389
389
|
try {
|
|
390
|
-
const binding = require('areev-linux-loong64-gnu')
|
|
391
|
-
const bindingPackageVersion = require('areev-linux-loong64-gnu/package.json').version
|
|
392
|
-
if (bindingPackageVersion !== '1.
|
|
393
|
-
throw new Error(`Native binding package version mismatch, expected 1.
|
|
390
|
+
const binding = require('@areev/areev-linux-loong64-gnu')
|
|
391
|
+
const bindingPackageVersion = require('@areev/areev-linux-loong64-gnu/package.json').version
|
|
392
|
+
if (bindingPackageVersion !== '1.3.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
393
|
+
throw new Error(`Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
394
394
|
}
|
|
395
395
|
return binding
|
|
396
396
|
} catch (e) {
|
|
@@ -405,10 +405,10 @@ function requireNative() {
|
|
|
405
405
|
loadErrors.push(e)
|
|
406
406
|
}
|
|
407
407
|
try {
|
|
408
|
-
const binding = require('areev-linux-riscv64-musl')
|
|
409
|
-
const bindingPackageVersion = require('areev-linux-riscv64-musl/package.json').version
|
|
410
|
-
if (bindingPackageVersion !== '1.
|
|
411
|
-
throw new Error(`Native binding package version mismatch, expected 1.
|
|
408
|
+
const binding = require('@areev/areev-linux-riscv64-musl')
|
|
409
|
+
const bindingPackageVersion = require('@areev/areev-linux-riscv64-musl/package.json').version
|
|
410
|
+
if (bindingPackageVersion !== '1.3.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
411
|
+
throw new Error(`Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
412
412
|
}
|
|
413
413
|
return binding
|
|
414
414
|
} catch (e) {
|
|
@@ -421,10 +421,10 @@ function requireNative() {
|
|
|
421
421
|
loadErrors.push(e)
|
|
422
422
|
}
|
|
423
423
|
try {
|
|
424
|
-
const binding = require('areev-linux-riscv64-gnu')
|
|
425
|
-
const bindingPackageVersion = require('areev-linux-riscv64-gnu/package.json').version
|
|
426
|
-
if (bindingPackageVersion !== '1.
|
|
427
|
-
throw new Error(`Native binding package version mismatch, expected 1.
|
|
424
|
+
const binding = require('@areev/areev-linux-riscv64-gnu')
|
|
425
|
+
const bindingPackageVersion = require('@areev/areev-linux-riscv64-gnu/package.json').version
|
|
426
|
+
if (bindingPackageVersion !== '1.3.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
427
|
+
throw new Error(`Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
428
428
|
}
|
|
429
429
|
return binding
|
|
430
430
|
} catch (e) {
|
|
@@ -438,10 +438,10 @@ function requireNative() {
|
|
|
438
438
|
loadErrors.push(e)
|
|
439
439
|
}
|
|
440
440
|
try {
|
|
441
|
-
const binding = require('areev-linux-ppc64-gnu')
|
|
442
|
-
const bindingPackageVersion = require('areev-linux-ppc64-gnu/package.json').version
|
|
443
|
-
if (bindingPackageVersion !== '1.
|
|
444
|
-
throw new Error(`Native binding package version mismatch, expected 1.
|
|
441
|
+
const binding = require('@areev/areev-linux-ppc64-gnu')
|
|
442
|
+
const bindingPackageVersion = require('@areev/areev-linux-ppc64-gnu/package.json').version
|
|
443
|
+
if (bindingPackageVersion !== '1.3.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
444
|
+
throw new Error(`Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
445
445
|
}
|
|
446
446
|
return binding
|
|
447
447
|
} catch (e) {
|
|
@@ -454,10 +454,10 @@ function requireNative() {
|
|
|
454
454
|
loadErrors.push(e)
|
|
455
455
|
}
|
|
456
456
|
try {
|
|
457
|
-
const binding = require('areev-linux-s390x-gnu')
|
|
458
|
-
const bindingPackageVersion = require('areev-linux-s390x-gnu/package.json').version
|
|
459
|
-
if (bindingPackageVersion !== '1.
|
|
460
|
-
throw new Error(`Native binding package version mismatch, expected 1.
|
|
457
|
+
const binding = require('@areev/areev-linux-s390x-gnu')
|
|
458
|
+
const bindingPackageVersion = require('@areev/areev-linux-s390x-gnu/package.json').version
|
|
459
|
+
if (bindingPackageVersion !== '1.3.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
460
|
+
throw new Error(`Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
461
461
|
}
|
|
462
462
|
return binding
|
|
463
463
|
} catch (e) {
|
|
@@ -474,10 +474,10 @@ function requireNative() {
|
|
|
474
474
|
loadErrors.push(e)
|
|
475
475
|
}
|
|
476
476
|
try {
|
|
477
|
-
const binding = require('areev-openharmony-arm64')
|
|
478
|
-
const bindingPackageVersion = require('areev-openharmony-arm64/package.json').version
|
|
479
|
-
if (bindingPackageVersion !== '1.
|
|
480
|
-
throw new Error(`Native binding package version mismatch, expected 1.
|
|
477
|
+
const binding = require('@areev/areev-openharmony-arm64')
|
|
478
|
+
const bindingPackageVersion = require('@areev/areev-openharmony-arm64/package.json').version
|
|
479
|
+
if (bindingPackageVersion !== '1.3.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
480
|
+
throw new Error(`Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
481
481
|
}
|
|
482
482
|
return binding
|
|
483
483
|
} catch (e) {
|
|
@@ -490,10 +490,10 @@ function requireNative() {
|
|
|
490
490
|
loadErrors.push(e)
|
|
491
491
|
}
|
|
492
492
|
try {
|
|
493
|
-
const binding = require('areev-openharmony-x64')
|
|
494
|
-
const bindingPackageVersion = require('areev-openharmony-x64/package.json').version
|
|
495
|
-
if (bindingPackageVersion !== '1.
|
|
496
|
-
throw new Error(`Native binding package version mismatch, expected 1.
|
|
493
|
+
const binding = require('@areev/areev-openharmony-x64')
|
|
494
|
+
const bindingPackageVersion = require('@areev/areev-openharmony-x64/package.json').version
|
|
495
|
+
if (bindingPackageVersion !== '1.3.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
496
|
+
throw new Error(`Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
497
497
|
}
|
|
498
498
|
return binding
|
|
499
499
|
} catch (e) {
|
|
@@ -506,10 +506,10 @@ function requireNative() {
|
|
|
506
506
|
loadErrors.push(e)
|
|
507
507
|
}
|
|
508
508
|
try {
|
|
509
|
-
const binding = require('areev-openharmony-arm')
|
|
510
|
-
const bindingPackageVersion = require('areev-openharmony-arm/package.json').version
|
|
511
|
-
if (bindingPackageVersion !== '1.
|
|
512
|
-
throw new Error(`Native binding package version mismatch, expected 1.
|
|
509
|
+
const binding = require('@areev/areev-openharmony-arm')
|
|
510
|
+
const bindingPackageVersion = require('@areev/areev-openharmony-arm/package.json').version
|
|
511
|
+
if (bindingPackageVersion !== '1.3.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
512
|
+
throw new Error(`Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
513
513
|
}
|
|
514
514
|
return binding
|
|
515
515
|
} catch (e) {
|
|
@@ -643,16 +643,16 @@ if (!nativeBinding || forceWasi) {
|
|
|
643
643
|
let candidateError = null
|
|
644
644
|
let candidateFailed = false
|
|
645
645
|
try {
|
|
646
|
-
candidateError = __napiWasiResolveCandidate('areev-wasm32-wasi', true, undefined)
|
|
646
|
+
candidateError = __napiWasiResolveCandidate('@areev/areev-wasm32-wasi', true, undefined)
|
|
647
647
|
candidateFailed = candidateError !== null
|
|
648
648
|
if (!candidateFailed) {
|
|
649
649
|
if (process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
650
|
-
const bindingPackageVersion = require('areev-wasm32-wasi/package.json').version
|
|
651
|
-
if (bindingPackageVersion !== '1.
|
|
652
|
-
throw new Error(`WASI binding package version mismatch, expected 1.
|
|
650
|
+
const bindingPackageVersion = require('@areev/areev-wasm32-wasi/package.json').version
|
|
651
|
+
if (bindingPackageVersion !== '1.3.0') {
|
|
652
|
+
throw new Error(`WASI binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
653
653
|
}
|
|
654
654
|
}
|
|
655
|
-
wasiBinding = require('areev-wasm32-wasi')
|
|
655
|
+
wasiBinding = require('@areev/areev-wasm32-wasi')
|
|
656
656
|
nativeBinding = wasiBinding
|
|
657
657
|
wasiBindingLoaded = true
|
|
658
658
|
}
|
|
@@ -702,3 +702,4 @@ if (!nativeBinding) {
|
|
|
702
702
|
module.exports = nativeBinding
|
|
703
703
|
module.exports.Areev = nativeBinding.Areev
|
|
704
704
|
module.exports.dropPostgresSchema = nativeBinding.dropPostgresSchema
|
|
705
|
+
module.exports.readBlobOffline = nativeBinding.readBlobOffline
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@areev/areev",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
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-darwin-arm64": "1.
|
|
50
|
-
"areev-darwin-x64": "1.
|
|
51
|
-
"areev-linux-arm64-gnu": "1.
|
|
52
|
-
"areev-linux-x64-gnu": "1.
|
|
53
|
-
"areev-win32-x64-msvc": "1.
|
|
49
|
+
"@areev/areev-darwin-arm64": "1.3.0",
|
|
50
|
+
"@areev/areev-darwin-x64": "1.3.0",
|
|
51
|
+
"@areev/areev-linux-arm64-gnu": "1.3.0",
|
|
52
|
+
"@areev/areev-linux-x64-gnu": "1.3.0",
|
|
53
|
+
"@areev/areev-win32-x64-msvc": "1.3.0"
|
|
54
54
|
}
|
|
55
55
|
}
|