@atbash/sdk 0.9.0-dev.0 → 0.10.0-dev.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/dist/browser.d.mts +51 -143
- package/dist/browser.mjs +155 -462
- package/dist/browser.mjs.map +1 -1
- package/dist/index.d.mts +51 -143
- package/dist/index.d.ts +51 -143
- package/dist/index.js +3806 -6945
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +38267 -41406
- package/dist/index.mjs.map +1 -1
- package/index.d.ts +245 -10
- package/index.js +103 -52
- package/package.json +5 -5
package/index.d.ts
CHANGED
|
@@ -1,10 +1,75 @@
|
|
|
1
1
|
/* auto-generated by NAPI-RS */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
+
export interface AddAgentMemoryArgsJs {
|
|
4
|
+
agent_pubkey: Buffer
|
|
5
|
+
content_cipher: Buffer
|
|
6
|
+
nonce: Buffer
|
|
7
|
+
score: number
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface AgentAuthJs {
|
|
11
|
+
privkey: string
|
|
12
|
+
pubkey: string
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface AgentPubkeyOnlyQueryJs {
|
|
16
|
+
agent_pubkey_hex: string
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export const ARG_AGENT_PUBKEY: string
|
|
20
|
+
|
|
21
|
+
export const ARG_ID: string
|
|
22
|
+
|
|
23
|
+
export declare function buildAddAgentMemoryArgs(agentPubkeyHex: string, contentCipher: Buffer, nonce: Buffer, score: number): AddAgentMemoryArgsJs
|
|
24
|
+
|
|
25
|
+
export declare function buildEncryptedToolcallArgs(toolCallId: string, action: string, context: string, toolName: string, toolArgsJson: string, orgEncryptionPubKeyHex: string): EncryptedToolCallArgsJs
|
|
26
|
+
|
|
27
|
+
export declare function buildGetActiveMemoryIdQuery(agentPubkeyHex: string): AgentPubkeyOnlyQueryJs
|
|
28
|
+
|
|
29
|
+
export declare function buildGetAgentMemoryByIdQuery(agentPubkeyHex: string, id: number): MemoryByIdQueryJs
|
|
30
|
+
|
|
31
|
+
export declare function buildGetAgentMemoryHistoryQuery(agentPubkeyHex: string): AgentPubkeyOnlyQueryJs
|
|
32
|
+
|
|
33
|
+
export declare function buildGetAgentMemoryQuery(agentPubkeyHex: string): AgentPubkeyOnlyQueryJs
|
|
34
|
+
|
|
35
|
+
export declare function buildGetAgentMemoryRollbackHistoryQuery(agentPubkeyHex: string): AgentPubkeyOnlyQueryJs
|
|
36
|
+
|
|
37
|
+
export declare function buildGetAllAgentMemoryQuery(agentPubkeyHex: string): AgentPubkeyOnlyQueryJs
|
|
38
|
+
|
|
39
|
+
export declare function buildRollbackAgentMemoryArgs(agentPubkeyHex: string, toId: number, reason: string): RollbackAgentMemoryArgsJs
|
|
40
|
+
|
|
41
|
+
export declare function buildScanRequest(entry: MemoryEntryJs): ScanRequestJs
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Named `claimHashHex` on the JS side to match the pure-TS name the
|
|
45
|
+
* dashboard's ported implementation uses.
|
|
46
|
+
*/
|
|
47
|
+
export declare function claimHashHex(toolName: string, action: string, context: string, toolArgsJson: string): string
|
|
48
|
+
|
|
49
|
+
export declare function classifyMemoryRead(event: any, ctx: any, opts?: ClassifyReadOptionsJs | undefined | null): boolean
|
|
50
|
+
|
|
51
|
+
export declare function classifyMemoryWrite(event: any, ctx: any, opts?: ClassifyWriteOptionsJs | undefined | null): MemoryEntryJs | null
|
|
52
|
+
|
|
53
|
+
export interface ClassifyReadOptionsJs {
|
|
54
|
+
readToolNames?: Array<string>
|
|
55
|
+
patterns?: Array<string>
|
|
56
|
+
genericReadToolNames?: Array<string>
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export interface ClassifyWriteOptionsJs {
|
|
60
|
+
patterns?: Array<string>
|
|
61
|
+
toolNames?: Array<string>
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export declare function computeActionHash(action: string): string
|
|
65
|
+
|
|
3
66
|
export declare function containsEvasionCharacters(s: string): boolean
|
|
4
67
|
|
|
5
68
|
export declare function containsSecret(s: string): boolean
|
|
6
69
|
|
|
7
|
-
export declare function createMemorySnapshot(entries:
|
|
70
|
+
export declare function createMemorySnapshot(entries: Array<MemoryEntryJs>, takenAt: number): MemorySnapshotJs
|
|
71
|
+
|
|
72
|
+
export declare function decryptForOrg(payload: Buffer, orgPrivKeyHex: string, aad: string, domain?: string | undefined | null): string
|
|
8
73
|
|
|
9
74
|
export declare function decryptMemoryContent(ciphertext: Buffer, nonce: Buffer, key: Buffer): string
|
|
10
75
|
|
|
@@ -16,40 +81,210 @@ export const DEFAULT_PRIVATE_BLOCKCHAIN_RID: string
|
|
|
16
81
|
|
|
17
82
|
export declare function defaultChromiaNodeUrls(): Array<string>
|
|
18
83
|
|
|
84
|
+
export declare function defaultMemoryPathPatterns(): Array<string>
|
|
85
|
+
|
|
86
|
+
export declare function defaultMemoryReadToolNames(): Array<string>
|
|
87
|
+
|
|
88
|
+
export declare function defaultMemoryWriteToolNames(): Array<string>
|
|
89
|
+
|
|
19
90
|
export declare function defaultPrivateNodeUrls(): Array<string>
|
|
20
91
|
|
|
92
|
+
export declare function defaultScoreForVerdict(verdict: string): number
|
|
93
|
+
|
|
21
94
|
export declare function deriveMemoryKey(privkeyHex: string): Buffer
|
|
22
95
|
|
|
23
96
|
export declare function derivePublicKey(s: string): string
|
|
24
97
|
|
|
25
|
-
export declare function diffMemorySnapshots(before:
|
|
98
|
+
export declare function diffMemorySnapshots(before: MemorySnapshotJs, after: MemorySnapshotJs): MemoryDiffResultJs
|
|
99
|
+
|
|
100
|
+
export const ECIES_FORMAT_VERSION: number
|
|
101
|
+
|
|
102
|
+
export declare function encryptedLength(plaintextByteLength: number): number
|
|
26
103
|
|
|
27
|
-
/**
|
|
28
|
-
* Encrypt UTF-8 plaintext with a 32-byte AES key. Returns
|
|
29
|
-
* `{ ciphertext: Buffer, nonce: Buffer }` — ciphertext has the GCM
|
|
30
|
-
* auth tag appended as the trailing 16 bytes.
|
|
31
|
-
*/
|
|
32
104
|
export interface EncryptedMemoryJs {
|
|
33
105
|
ciphertext: Buffer
|
|
34
106
|
nonce: Buffer
|
|
35
107
|
}
|
|
36
108
|
|
|
109
|
+
export interface EncryptedToolCallArgsJs {
|
|
110
|
+
tool_call_id: string
|
|
111
|
+
tool_name: string
|
|
112
|
+
content_cipher: Buffer
|
|
113
|
+
action_hash: string
|
|
114
|
+
encryption_key_ref: Buffer
|
|
115
|
+
claim_hash: string
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export declare function encryptForOrg(plaintext: string, orgPubKeyHex: string, aad: string, domain?: string | undefined | null): Buffer
|
|
119
|
+
|
|
37
120
|
export declare function encryptMemoryContent(plaintext: string, key: Buffer): EncryptedMemoryJs
|
|
38
121
|
|
|
39
|
-
export declare function
|
|
122
|
+
export declare function formatEntryForScan(entry: MemoryEntryJs, hasEvasion: boolean): string
|
|
123
|
+
|
|
124
|
+
export declare function generateKeypair(): KeyPairJs
|
|
40
125
|
|
|
41
126
|
export const HONEYCOMB_KEY: string
|
|
42
127
|
|
|
43
128
|
export declare function isValidPrivateKey(s: string): boolean
|
|
44
129
|
|
|
45
|
-
export
|
|
130
|
+
export interface JudgeSignatureCheckJs {
|
|
131
|
+
ok: boolean
|
|
132
|
+
reason?: string
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export interface KeyPairJs {
|
|
136
|
+
priv_key: string
|
|
137
|
+
pub_key: string
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export declare function loadAgent(privkey: string): AgentAuthJs
|
|
141
|
+
|
|
142
|
+
export declare function mapVerdict(actionType: string, confidence: number, threshold: number): string
|
|
143
|
+
|
|
144
|
+
export interface MemoryAnomalyJs {
|
|
145
|
+
/**
|
|
146
|
+
* Anomaly kind — see `AnomalyType` in the core. Emitted as `type` in JS
|
|
147
|
+
* to match the serde `#[serde(rename = "type")]` on the core struct.
|
|
148
|
+
*/
|
|
149
|
+
type: string
|
|
150
|
+
severity: string
|
|
151
|
+
description: string
|
|
152
|
+
entries: Array<string>
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
export interface MemoryByIdQueryJs {
|
|
156
|
+
agent_pubkey_hex: string
|
|
157
|
+
id: number
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export interface MemoryDiffResultJs {
|
|
161
|
+
safe: boolean
|
|
162
|
+
added: Array<MemoryEntryJs>
|
|
163
|
+
removed: Array<MemoryEntryJs>
|
|
164
|
+
modified: Array<ModifiedEntryJs>
|
|
165
|
+
anomalies: Array<MemoryAnomalyJs>
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
export interface MemoryEntryJs {
|
|
169
|
+
key: string
|
|
170
|
+
value: string
|
|
171
|
+
source?: string
|
|
172
|
+
timestamp?: number
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
export declare function memoryScanContext(): string
|
|
176
|
+
|
|
177
|
+
export interface MemorySnapshotJs {
|
|
178
|
+
entries: Array<MemoryEntryJs>
|
|
179
|
+
takenAt: number
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
export interface ModifiedEntryJs {
|
|
183
|
+
key: string
|
|
184
|
+
before: string
|
|
185
|
+
after: string
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
export declare function normalizeActionForHash(action: string): string
|
|
46
189
|
|
|
47
190
|
export declare function normalizeForMatching(s: string): string
|
|
48
191
|
|
|
49
|
-
export
|
|
192
|
+
export const OP_ADD_AGENT_MEMORY: string
|
|
193
|
+
|
|
194
|
+
export const OP_LOG_ENCRYPTED_TOOL_CALL: string
|
|
195
|
+
|
|
196
|
+
export const OP_ROLLBACK_AGENT_MEMORY: string
|
|
197
|
+
|
|
198
|
+
export declare function parseActiveMemoryId(value: any): number | null
|
|
199
|
+
|
|
200
|
+
export declare function parseByteArrayField(value: any): Buffer
|
|
201
|
+
|
|
202
|
+
export interface ParsedScoreJs {
|
|
203
|
+
score?: number
|
|
204
|
+
clean_reason: string
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
export declare function parseMemoryRow(value: any): RawMemoryRowJs
|
|
208
|
+
|
|
209
|
+
export declare function parseMemoryRows(value: any): Array<RawMemoryRowJs>
|
|
210
|
+
|
|
211
|
+
export declare function parseRollbackRow(value: any): RawRollbackRowJs
|
|
212
|
+
|
|
213
|
+
export declare function parseRollbackRows(value: any): Array<RawRollbackRowJs>
|
|
214
|
+
|
|
215
|
+
export declare function parseScoreFromReason(reason: string): ParsedScoreJs
|
|
216
|
+
|
|
217
|
+
export const QUERY_GET_ACTIVE_MEMORY_ID: string
|
|
218
|
+
|
|
219
|
+
export const QUERY_GET_AGENT_MEMORY: string
|
|
220
|
+
|
|
221
|
+
export const QUERY_GET_AGENT_MEMORY_BY_ID: string
|
|
222
|
+
|
|
223
|
+
export const QUERY_GET_AGENT_MEMORY_HISTORY: string
|
|
224
|
+
|
|
225
|
+
export const QUERY_GET_AGENT_MEMORY_ROLLBACK_HISTORY: string
|
|
226
|
+
|
|
227
|
+
export const QUERY_GET_ALL_AGENT_MEMORY: string
|
|
228
|
+
|
|
229
|
+
export interface RawMemoryRowJs {
|
|
230
|
+
id: number
|
|
231
|
+
content_cipher: Buffer
|
|
232
|
+
nonce: Buffer
|
|
233
|
+
score: number
|
|
234
|
+
is_active: boolean
|
|
235
|
+
created_at: number
|
|
236
|
+
updated_at: number
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
export interface RawRollbackRowJs {
|
|
240
|
+
from_id: number
|
|
241
|
+
to_id: number
|
|
242
|
+
reason: string
|
|
243
|
+
signer: Buffer
|
|
244
|
+
created_at: number
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
export interface RedactResultJs {
|
|
248
|
+
redacted: string
|
|
249
|
+
found: Array<SecretMatchJs>
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
export declare function redactSecrets(s: string): RedactResultJs
|
|
253
|
+
|
|
254
|
+
export interface RollbackAgentMemoryArgsJs {
|
|
255
|
+
agent_pubkey: Buffer
|
|
256
|
+
to_id: number
|
|
257
|
+
reason: string
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
export interface ScanRequestJs {
|
|
261
|
+
prompt: string
|
|
262
|
+
context: string
|
|
263
|
+
redaction: RedactResultJs
|
|
264
|
+
has_evasion: boolean
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
export interface SecretMatchJs {
|
|
268
|
+
kind: string
|
|
269
|
+
length: number
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
export declare function signEncryptedToolCall(toolCallId: string, action: string, context: string, toolName: string, toolArgsJson: string, orgEncryptionPubKeyHex: string, privkeyHex: string, blockchainRidHex: string): string
|
|
50
273
|
|
|
51
274
|
export declare function signJudgeAction(judgmentId: string, action: string, context: string, extra: string, privkey: string, blockchainRid: string): string
|
|
52
275
|
|
|
53
276
|
export declare function signLogToolCall(toolCallId: string, action: string, context: string, toolName: string, toolArgsJson: string, privkey: string, blockchainRid: string): string
|
|
54
277
|
|
|
278
|
+
export declare function validateAgentPubkeyHex(pubkeyHex: string): Buffer
|
|
279
|
+
|
|
280
|
+
export declare function validateMemoryId(id: number): void
|
|
281
|
+
|
|
282
|
+
export declare function validateMemoryNonce(nonce: Buffer): void
|
|
283
|
+
|
|
284
|
+
export declare function validateRollbackReason(reason: string): void
|
|
285
|
+
|
|
286
|
+
export declare function validateScore(score: number): void
|
|
287
|
+
|
|
288
|
+
export declare function verifyJudgeResponseSignature(body: Buffer, signatureHex: string | undefined | null, pubkeyHex: string): JudgeSignatureCheckJs
|
|
289
|
+
|
|
55
290
|
export declare function verifySignature(body: Buffer, signatureHex: string, pubkeyHex: string): boolean
|
package/index.js
CHANGED
|
@@ -77,8 +77,8 @@ function requireNative() {
|
|
|
77
77
|
try {
|
|
78
78
|
const binding = require('@atbash/sdk-android-arm64')
|
|
79
79
|
const bindingPackageVersion = require('@atbash/sdk-android-arm64/package.json').version
|
|
80
|
-
if (bindingPackageVersion !== '0.
|
|
81
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
80
|
+
if (bindingPackageVersion !== '0.9.0-dev.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 0.9.0-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
82
82
|
}
|
|
83
83
|
return binding
|
|
84
84
|
} catch (e) {
|
|
@@ -93,8 +93,8 @@ function requireNative() {
|
|
|
93
93
|
try {
|
|
94
94
|
const binding = require('@atbash/sdk-android-arm-eabi')
|
|
95
95
|
const bindingPackageVersion = require('@atbash/sdk-android-arm-eabi/package.json').version
|
|
96
|
-
if (bindingPackageVersion !== '0.
|
|
97
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
96
|
+
if (bindingPackageVersion !== '0.9.0-dev.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 0.9.0-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
98
98
|
}
|
|
99
99
|
return binding
|
|
100
100
|
} catch (e) {
|
|
@@ -114,8 +114,8 @@ function requireNative() {
|
|
|
114
114
|
try {
|
|
115
115
|
const binding = require('@atbash/sdk-win32-x64-gnu')
|
|
116
116
|
const bindingPackageVersion = require('@atbash/sdk-win32-x64-gnu/package.json').version
|
|
117
|
-
if (bindingPackageVersion !== '0.
|
|
118
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
117
|
+
if (bindingPackageVersion !== '0.9.0-dev.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 0.9.0-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
119
119
|
}
|
|
120
120
|
return binding
|
|
121
121
|
} catch (e) {
|
|
@@ -130,8 +130,8 @@ function requireNative() {
|
|
|
130
130
|
try {
|
|
131
131
|
const binding = require('@atbash/sdk-win32-x64-msvc')
|
|
132
132
|
const bindingPackageVersion = require('@atbash/sdk-win32-x64-msvc/package.json').version
|
|
133
|
-
if (bindingPackageVersion !== '0.
|
|
134
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
133
|
+
if (bindingPackageVersion !== '0.9.0-dev.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 0.9.0-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
135
135
|
}
|
|
136
136
|
return binding
|
|
137
137
|
} catch (e) {
|
|
@@ -147,8 +147,8 @@ function requireNative() {
|
|
|
147
147
|
try {
|
|
148
148
|
const binding = require('@atbash/sdk-win32-ia32-msvc')
|
|
149
149
|
const bindingPackageVersion = require('@atbash/sdk-win32-ia32-msvc/package.json').version
|
|
150
|
-
if (bindingPackageVersion !== '0.
|
|
151
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
150
|
+
if (bindingPackageVersion !== '0.9.0-dev.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 0.9.0-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
152
152
|
}
|
|
153
153
|
return binding
|
|
154
154
|
} catch (e) {
|
|
@@ -163,8 +163,8 @@ function requireNative() {
|
|
|
163
163
|
try {
|
|
164
164
|
const binding = require('@atbash/sdk-win32-arm64-msvc')
|
|
165
165
|
const bindingPackageVersion = require('@atbash/sdk-win32-arm64-msvc/package.json').version
|
|
166
|
-
if (bindingPackageVersion !== '0.
|
|
167
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
166
|
+
if (bindingPackageVersion !== '0.9.0-dev.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 0.9.0-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
168
168
|
}
|
|
169
169
|
return binding
|
|
170
170
|
} catch (e) {
|
|
@@ -182,8 +182,8 @@ function requireNative() {
|
|
|
182
182
|
try {
|
|
183
183
|
const binding = require('@atbash/sdk-darwin-universal')
|
|
184
184
|
const bindingPackageVersion = require('@atbash/sdk-darwin-universal/package.json').version
|
|
185
|
-
if (bindingPackageVersion !== '0.
|
|
186
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
185
|
+
if (bindingPackageVersion !== '0.9.0-dev.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 0.9.0-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
187
187
|
}
|
|
188
188
|
return binding
|
|
189
189
|
} catch (e) {
|
|
@@ -198,8 +198,8 @@ function requireNative() {
|
|
|
198
198
|
try {
|
|
199
199
|
const binding = require('@atbash/sdk-darwin-x64')
|
|
200
200
|
const bindingPackageVersion = require('@atbash/sdk-darwin-x64/package.json').version
|
|
201
|
-
if (bindingPackageVersion !== '0.
|
|
202
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
201
|
+
if (bindingPackageVersion !== '0.9.0-dev.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 0.9.0-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
203
203
|
}
|
|
204
204
|
return binding
|
|
205
205
|
} catch (e) {
|
|
@@ -214,8 +214,8 @@ function requireNative() {
|
|
|
214
214
|
try {
|
|
215
215
|
const binding = require('@atbash/sdk-darwin-arm64')
|
|
216
216
|
const bindingPackageVersion = require('@atbash/sdk-darwin-arm64/package.json').version
|
|
217
|
-
if (bindingPackageVersion !== '0.
|
|
218
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
217
|
+
if (bindingPackageVersion !== '0.9.0-dev.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 0.9.0-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
219
219
|
}
|
|
220
220
|
return binding
|
|
221
221
|
} catch (e) {
|
|
@@ -234,8 +234,8 @@ function requireNative() {
|
|
|
234
234
|
try {
|
|
235
235
|
const binding = require('@atbash/sdk-freebsd-x64')
|
|
236
236
|
const bindingPackageVersion = require('@atbash/sdk-freebsd-x64/package.json').version
|
|
237
|
-
if (bindingPackageVersion !== '0.
|
|
238
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
237
|
+
if (bindingPackageVersion !== '0.9.0-dev.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 0.9.0-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
239
239
|
}
|
|
240
240
|
return binding
|
|
241
241
|
} catch (e) {
|
|
@@ -250,8 +250,8 @@ function requireNative() {
|
|
|
250
250
|
try {
|
|
251
251
|
const binding = require('@atbash/sdk-freebsd-arm64')
|
|
252
252
|
const bindingPackageVersion = require('@atbash/sdk-freebsd-arm64/package.json').version
|
|
253
|
-
if (bindingPackageVersion !== '0.
|
|
254
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
253
|
+
if (bindingPackageVersion !== '0.9.0-dev.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 0.9.0-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
255
255
|
}
|
|
256
256
|
return binding
|
|
257
257
|
} catch (e) {
|
|
@@ -271,8 +271,8 @@ function requireNative() {
|
|
|
271
271
|
try {
|
|
272
272
|
const binding = require('@atbash/sdk-linux-x64-musl')
|
|
273
273
|
const bindingPackageVersion = require('@atbash/sdk-linux-x64-musl/package.json').version
|
|
274
|
-
if (bindingPackageVersion !== '0.
|
|
275
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
274
|
+
if (bindingPackageVersion !== '0.9.0-dev.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 0.9.0-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
276
276
|
}
|
|
277
277
|
return binding
|
|
278
278
|
} catch (e) {
|
|
@@ -287,8 +287,8 @@ function requireNative() {
|
|
|
287
287
|
try {
|
|
288
288
|
const binding = require('@atbash/sdk-linux-x64-gnu')
|
|
289
289
|
const bindingPackageVersion = require('@atbash/sdk-linux-x64-gnu/package.json').version
|
|
290
|
-
if (bindingPackageVersion !== '0.
|
|
291
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
290
|
+
if (bindingPackageVersion !== '0.9.0-dev.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 0.9.0-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
292
292
|
}
|
|
293
293
|
return binding
|
|
294
294
|
} catch (e) {
|
|
@@ -305,8 +305,8 @@ function requireNative() {
|
|
|
305
305
|
try {
|
|
306
306
|
const binding = require('@atbash/sdk-linux-arm64-musl')
|
|
307
307
|
const bindingPackageVersion = require('@atbash/sdk-linux-arm64-musl/package.json').version
|
|
308
|
-
if (bindingPackageVersion !== '0.
|
|
309
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
308
|
+
if (bindingPackageVersion !== '0.9.0-dev.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 0.9.0-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
310
310
|
}
|
|
311
311
|
return binding
|
|
312
312
|
} catch (e) {
|
|
@@ -321,8 +321,8 @@ function requireNative() {
|
|
|
321
321
|
try {
|
|
322
322
|
const binding = require('@atbash/sdk-linux-arm64-gnu')
|
|
323
323
|
const bindingPackageVersion = require('@atbash/sdk-linux-arm64-gnu/package.json').version
|
|
324
|
-
if (bindingPackageVersion !== '0.
|
|
325
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
324
|
+
if (bindingPackageVersion !== '0.9.0-dev.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 0.9.0-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
326
326
|
}
|
|
327
327
|
return binding
|
|
328
328
|
} catch (e) {
|
|
@@ -339,8 +339,8 @@ function requireNative() {
|
|
|
339
339
|
try {
|
|
340
340
|
const binding = require('@atbash/sdk-linux-arm-musleabihf')
|
|
341
341
|
const bindingPackageVersion = require('@atbash/sdk-linux-arm-musleabihf/package.json').version
|
|
342
|
-
if (bindingPackageVersion !== '0.
|
|
343
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
342
|
+
if (bindingPackageVersion !== '0.9.0-dev.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 0.9.0-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
344
344
|
}
|
|
345
345
|
return binding
|
|
346
346
|
} catch (e) {
|
|
@@ -355,8 +355,8 @@ function requireNative() {
|
|
|
355
355
|
try {
|
|
356
356
|
const binding = require('@atbash/sdk-linux-arm-gnueabihf')
|
|
357
357
|
const bindingPackageVersion = require('@atbash/sdk-linux-arm-gnueabihf/package.json').version
|
|
358
|
-
if (bindingPackageVersion !== '0.
|
|
359
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
358
|
+
if (bindingPackageVersion !== '0.9.0-dev.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 0.9.0-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
360
360
|
}
|
|
361
361
|
return binding
|
|
362
362
|
} catch (e) {
|
|
@@ -373,8 +373,8 @@ function requireNative() {
|
|
|
373
373
|
try {
|
|
374
374
|
const binding = require('@atbash/sdk-linux-loong64-musl')
|
|
375
375
|
const bindingPackageVersion = require('@atbash/sdk-linux-loong64-musl/package.json').version
|
|
376
|
-
if (bindingPackageVersion !== '0.
|
|
377
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
376
|
+
if (bindingPackageVersion !== '0.9.0-dev.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 0.9.0-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
378
378
|
}
|
|
379
379
|
return binding
|
|
380
380
|
} catch (e) {
|
|
@@ -389,8 +389,8 @@ function requireNative() {
|
|
|
389
389
|
try {
|
|
390
390
|
const binding = require('@atbash/sdk-linux-loong64-gnu')
|
|
391
391
|
const bindingPackageVersion = require('@atbash/sdk-linux-loong64-gnu/package.json').version
|
|
392
|
-
if (bindingPackageVersion !== '0.
|
|
393
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
392
|
+
if (bindingPackageVersion !== '0.9.0-dev.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 0.9.0-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
394
394
|
}
|
|
395
395
|
return binding
|
|
396
396
|
} catch (e) {
|
|
@@ -407,8 +407,8 @@ function requireNative() {
|
|
|
407
407
|
try {
|
|
408
408
|
const binding = require('@atbash/sdk-linux-riscv64-musl')
|
|
409
409
|
const bindingPackageVersion = require('@atbash/sdk-linux-riscv64-musl/package.json').version
|
|
410
|
-
if (bindingPackageVersion !== '0.
|
|
411
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
410
|
+
if (bindingPackageVersion !== '0.9.0-dev.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 0.9.0-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
412
412
|
}
|
|
413
413
|
return binding
|
|
414
414
|
} catch (e) {
|
|
@@ -423,8 +423,8 @@ function requireNative() {
|
|
|
423
423
|
try {
|
|
424
424
|
const binding = require('@atbash/sdk-linux-riscv64-gnu')
|
|
425
425
|
const bindingPackageVersion = require('@atbash/sdk-linux-riscv64-gnu/package.json').version
|
|
426
|
-
if (bindingPackageVersion !== '0.
|
|
427
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
426
|
+
if (bindingPackageVersion !== '0.9.0-dev.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 0.9.0-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
428
428
|
}
|
|
429
429
|
return binding
|
|
430
430
|
} catch (e) {
|
|
@@ -440,8 +440,8 @@ function requireNative() {
|
|
|
440
440
|
try {
|
|
441
441
|
const binding = require('@atbash/sdk-linux-ppc64-gnu')
|
|
442
442
|
const bindingPackageVersion = require('@atbash/sdk-linux-ppc64-gnu/package.json').version
|
|
443
|
-
if (bindingPackageVersion !== '0.
|
|
444
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
443
|
+
if (bindingPackageVersion !== '0.9.0-dev.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 0.9.0-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
445
445
|
}
|
|
446
446
|
return binding
|
|
447
447
|
} catch (e) {
|
|
@@ -456,8 +456,8 @@ function requireNative() {
|
|
|
456
456
|
try {
|
|
457
457
|
const binding = require('@atbash/sdk-linux-s390x-gnu')
|
|
458
458
|
const bindingPackageVersion = require('@atbash/sdk-linux-s390x-gnu/package.json').version
|
|
459
|
-
if (bindingPackageVersion !== '0.
|
|
460
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
459
|
+
if (bindingPackageVersion !== '0.9.0-dev.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 0.9.0-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
461
461
|
}
|
|
462
462
|
return binding
|
|
463
463
|
} catch (e) {
|
|
@@ -476,8 +476,8 @@ function requireNative() {
|
|
|
476
476
|
try {
|
|
477
477
|
const binding = require('@atbash/sdk-openharmony-arm64')
|
|
478
478
|
const bindingPackageVersion = require('@atbash/sdk-openharmony-arm64/package.json').version
|
|
479
|
-
if (bindingPackageVersion !== '0.
|
|
480
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
479
|
+
if (bindingPackageVersion !== '0.9.0-dev.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 0.9.0-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
481
481
|
}
|
|
482
482
|
return binding
|
|
483
483
|
} catch (e) {
|
|
@@ -492,8 +492,8 @@ function requireNative() {
|
|
|
492
492
|
try {
|
|
493
493
|
const binding = require('@atbash/sdk-openharmony-x64')
|
|
494
494
|
const bindingPackageVersion = require('@atbash/sdk-openharmony-x64/package.json').version
|
|
495
|
-
if (bindingPackageVersion !== '0.
|
|
496
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
495
|
+
if (bindingPackageVersion !== '0.9.0-dev.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 0.9.0-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
497
497
|
}
|
|
498
498
|
return binding
|
|
499
499
|
} catch (e) {
|
|
@@ -508,8 +508,8 @@ function requireNative() {
|
|
|
508
508
|
try {
|
|
509
509
|
const binding = require('@atbash/sdk-openharmony-arm')
|
|
510
510
|
const bindingPackageVersion = require('@atbash/sdk-openharmony-arm/package.json').version
|
|
511
|
-
if (bindingPackageVersion !== '0.
|
|
512
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
511
|
+
if (bindingPackageVersion !== '0.9.0-dev.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 0.9.0-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
513
513
|
}
|
|
514
514
|
return binding
|
|
515
515
|
} catch (e) {
|
|
@@ -587,25 +587,76 @@ if (!nativeBinding) {
|
|
|
587
587
|
}
|
|
588
588
|
|
|
589
589
|
module.exports = nativeBinding
|
|
590
|
+
module.exports.ARG_AGENT_PUBKEY = nativeBinding.ARG_AGENT_PUBKEY
|
|
591
|
+
module.exports.ARG_ID = nativeBinding.ARG_ID
|
|
592
|
+
module.exports.buildAddAgentMemoryArgs = nativeBinding.buildAddAgentMemoryArgs
|
|
593
|
+
module.exports.buildEncryptedToolcallArgs = nativeBinding.buildEncryptedToolcallArgs
|
|
594
|
+
module.exports.buildGetActiveMemoryIdQuery = nativeBinding.buildGetActiveMemoryIdQuery
|
|
595
|
+
module.exports.buildGetAgentMemoryByIdQuery = nativeBinding.buildGetAgentMemoryByIdQuery
|
|
596
|
+
module.exports.buildGetAgentMemoryHistoryQuery = nativeBinding.buildGetAgentMemoryHistoryQuery
|
|
597
|
+
module.exports.buildGetAgentMemoryQuery = nativeBinding.buildGetAgentMemoryQuery
|
|
598
|
+
module.exports.buildGetAgentMemoryRollbackHistoryQuery = nativeBinding.buildGetAgentMemoryRollbackHistoryQuery
|
|
599
|
+
module.exports.buildGetAllAgentMemoryQuery = nativeBinding.buildGetAllAgentMemoryQuery
|
|
600
|
+
module.exports.buildRollbackAgentMemoryArgs = nativeBinding.buildRollbackAgentMemoryArgs
|
|
601
|
+
module.exports.buildScanRequest = nativeBinding.buildScanRequest
|
|
602
|
+
module.exports.claimHashHex = nativeBinding.claimHashHex
|
|
603
|
+
module.exports.classifyMemoryRead = nativeBinding.classifyMemoryRead
|
|
604
|
+
module.exports.classifyMemoryWrite = nativeBinding.classifyMemoryWrite
|
|
605
|
+
module.exports.computeActionHash = nativeBinding.computeActionHash
|
|
590
606
|
module.exports.containsEvasionCharacters = nativeBinding.containsEvasionCharacters
|
|
591
607
|
module.exports.containsSecret = nativeBinding.containsSecret
|
|
592
608
|
module.exports.createMemorySnapshot = nativeBinding.createMemorySnapshot
|
|
609
|
+
module.exports.decryptForOrg = nativeBinding.decryptForOrg
|
|
593
610
|
module.exports.decryptMemoryContent = nativeBinding.decryptMemoryContent
|
|
594
611
|
module.exports.DEFAULT_BLOCKCHAIN_RID = nativeBinding.DEFAULT_BLOCKCHAIN_RID
|
|
595
612
|
module.exports.DEFAULT_ENDPOINT = nativeBinding.DEFAULT_ENDPOINT
|
|
596
613
|
module.exports.DEFAULT_PRIVATE_BLOCKCHAIN_RID = nativeBinding.DEFAULT_PRIVATE_BLOCKCHAIN_RID
|
|
597
614
|
module.exports.defaultChromiaNodeUrls = nativeBinding.defaultChromiaNodeUrls
|
|
615
|
+
module.exports.defaultMemoryPathPatterns = nativeBinding.defaultMemoryPathPatterns
|
|
616
|
+
module.exports.defaultMemoryReadToolNames = nativeBinding.defaultMemoryReadToolNames
|
|
617
|
+
module.exports.defaultMemoryWriteToolNames = nativeBinding.defaultMemoryWriteToolNames
|
|
598
618
|
module.exports.defaultPrivateNodeUrls = nativeBinding.defaultPrivateNodeUrls
|
|
619
|
+
module.exports.defaultScoreForVerdict = nativeBinding.defaultScoreForVerdict
|
|
599
620
|
module.exports.deriveMemoryKey = nativeBinding.deriveMemoryKey
|
|
600
621
|
module.exports.derivePublicKey = nativeBinding.derivePublicKey
|
|
601
622
|
module.exports.diffMemorySnapshots = nativeBinding.diffMemorySnapshots
|
|
623
|
+
module.exports.ECIES_FORMAT_VERSION = nativeBinding.ECIES_FORMAT_VERSION
|
|
624
|
+
module.exports.encryptedLength = nativeBinding.encryptedLength
|
|
625
|
+
module.exports.encryptForOrg = nativeBinding.encryptForOrg
|
|
602
626
|
module.exports.encryptMemoryContent = nativeBinding.encryptMemoryContent
|
|
627
|
+
module.exports.formatEntryForScan = nativeBinding.formatEntryForScan
|
|
603
628
|
module.exports.generateKeypair = nativeBinding.generateKeypair
|
|
604
629
|
module.exports.HONEYCOMB_KEY = nativeBinding.HONEYCOMB_KEY
|
|
605
630
|
module.exports.isValidPrivateKey = nativeBinding.isValidPrivateKey
|
|
606
631
|
module.exports.loadAgent = nativeBinding.loadAgent
|
|
632
|
+
module.exports.mapVerdict = nativeBinding.mapVerdict
|
|
633
|
+
module.exports.memoryScanContext = nativeBinding.memoryScanContext
|
|
634
|
+
module.exports.normalizeActionForHash = nativeBinding.normalizeActionForHash
|
|
607
635
|
module.exports.normalizeForMatching = nativeBinding.normalizeForMatching
|
|
636
|
+
module.exports.OP_ADD_AGENT_MEMORY = nativeBinding.OP_ADD_AGENT_MEMORY
|
|
637
|
+
module.exports.OP_LOG_ENCRYPTED_TOOL_CALL = nativeBinding.OP_LOG_ENCRYPTED_TOOL_CALL
|
|
638
|
+
module.exports.OP_ROLLBACK_AGENT_MEMORY = nativeBinding.OP_ROLLBACK_AGENT_MEMORY
|
|
639
|
+
module.exports.parseActiveMemoryId = nativeBinding.parseActiveMemoryId
|
|
640
|
+
module.exports.parseByteArrayField = nativeBinding.parseByteArrayField
|
|
641
|
+
module.exports.parseMemoryRow = nativeBinding.parseMemoryRow
|
|
642
|
+
module.exports.parseMemoryRows = nativeBinding.parseMemoryRows
|
|
643
|
+
module.exports.parseRollbackRow = nativeBinding.parseRollbackRow
|
|
644
|
+
module.exports.parseRollbackRows = nativeBinding.parseRollbackRows
|
|
645
|
+
module.exports.parseScoreFromReason = nativeBinding.parseScoreFromReason
|
|
646
|
+
module.exports.QUERY_GET_ACTIVE_MEMORY_ID = nativeBinding.QUERY_GET_ACTIVE_MEMORY_ID
|
|
647
|
+
module.exports.QUERY_GET_AGENT_MEMORY = nativeBinding.QUERY_GET_AGENT_MEMORY
|
|
648
|
+
module.exports.QUERY_GET_AGENT_MEMORY_BY_ID = nativeBinding.QUERY_GET_AGENT_MEMORY_BY_ID
|
|
649
|
+
module.exports.QUERY_GET_AGENT_MEMORY_HISTORY = nativeBinding.QUERY_GET_AGENT_MEMORY_HISTORY
|
|
650
|
+
module.exports.QUERY_GET_AGENT_MEMORY_ROLLBACK_HISTORY = nativeBinding.QUERY_GET_AGENT_MEMORY_ROLLBACK_HISTORY
|
|
651
|
+
module.exports.QUERY_GET_ALL_AGENT_MEMORY = nativeBinding.QUERY_GET_ALL_AGENT_MEMORY
|
|
608
652
|
module.exports.redactSecrets = nativeBinding.redactSecrets
|
|
653
|
+
module.exports.signEncryptedToolCall = nativeBinding.signEncryptedToolCall
|
|
609
654
|
module.exports.signJudgeAction = nativeBinding.signJudgeAction
|
|
610
655
|
module.exports.signLogToolCall = nativeBinding.signLogToolCall
|
|
656
|
+
module.exports.validateAgentPubkeyHex = nativeBinding.validateAgentPubkeyHex
|
|
657
|
+
module.exports.validateMemoryId = nativeBinding.validateMemoryId
|
|
658
|
+
module.exports.validateMemoryNonce = nativeBinding.validateMemoryNonce
|
|
659
|
+
module.exports.validateRollbackReason = nativeBinding.validateRollbackReason
|
|
660
|
+
module.exports.validateScore = nativeBinding.validateScore
|
|
661
|
+
module.exports.verifyJudgeResponseSignature = nativeBinding.verifyJudgeResponseSignature
|
|
611
662
|
module.exports.verifySignature = nativeBinding.verifySignature
|