@atbash/sdk 0.24.1-dev.0 → 0.24.2-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/README.md CHANGED
@@ -256,6 +256,7 @@ API error 404: {"error":"Agent not registered..."}
256
256
  | `Agent is jailed` | BLOCK verdict triggered auto-jail | [atbash.ai/risk-engine/agents](https://atbash.ai/risk-engine/agents) |
257
257
  | `Verdicts are disabled` | Org has no active subscription | [atbash.ai/risk-engine/settings](https://atbash.ai/risk-engine/settings) |
258
258
  | `API error 400: action is required` | Empty action string | Fix caller |
259
+ | `Refused before signing: … contain a secret` | A private key or token in the action, context or tool arguments. `judgeAction` throws `JudgeRefusalError` and `logToolCall` returns `success: false`, before anything is signed or sent | Remove it, or call `auditToolCall`, which redacts it |
259
260
 
260
261
  ```ts
261
262
  try {
package/dist/browser.mjs CHANGED
@@ -44964,6 +44964,15 @@ function strandedAgentKey() {
44964
44964
 
44965
44965
  // src-ts/client.ts
44966
44966
  var AGENT_NOT_REGISTERED = "Agent not registered. Onboard the agent at the dashboard before submitting actions.";
44967
+ function secretRefusal(...parts) {
44968
+ const kinds = new Set(
44969
+ parts.flatMap(
44970
+ (part) => part ? native.redactSecrets(part).found.map((f2) => f2.kind) : []
44971
+ )
44972
+ );
44973
+ if (kinds.size === 0) return null;
44974
+ return `Refused before signing: the action, context or tool arguments contain a secret (${[...kinds].join(", ")}). Nothing was sent. Remove it, or use auditToolCall, which redacts it.`;
44975
+ }
44967
44976
  var TOOL_CALL_IDS_FOR_TESTS = /* @__PURE__ */ Symbol.for("@atbash/sdk.toolCallIdsForTests");
44968
44977
  function generateToolCallId() {
44969
44978
  const fixed = globalThis[TOOL_CALL_IDS_FOR_TESTS];
@@ -45335,6 +45344,12 @@ config.json still holds an "agentKey" (${identity}), but a settings file no long
45335
45344
  async _logToolCall(action, context, options, raisePreflightErrors) {
45336
45345
  const start = performance.now();
45337
45346
  recordCall("logToolCall", void 0, this.auth.pubkey);
45347
+ const refusal = secretRefusal(action, context, options.toolArgsJson ?? "");
45348
+ if (refusal) {
45349
+ recordDuration("logToolCall", performance.now() - start, "error");
45350
+ if (raisePreflightErrors) throw new JudgeRefusalError(refusal);
45351
+ return { success: false, toolCallId: null, error: refusal };
45352
+ }
45338
45353
  let exists;
45339
45354
  try {
45340
45355
  exists = await this.checkAgentExists(this.auth.pubkey, {
package/dist/index.js CHANGED
@@ -755,7 +755,7 @@ var import_sdk_metrics = require("@opentelemetry/sdk-metrics");
755
755
  var import_exporter_logs_otlp_http = require("@opentelemetry/exporter-logs-otlp-http");
756
756
  var import_sdk_logs = require("@opentelemetry/sdk-logs");
757
757
  var import_node_crypto = require("crypto");
758
- var SDK_VERSION = true ? "0.24.1-dev.0" : "";
758
+ var SDK_VERSION = true ? "0.24.2-dev.0" : "";
759
759
  var SDK_LANGUAGE = "node";
760
760
  function sdkResourceAttributes() {
761
761
  const attrs = {
@@ -1020,6 +1020,15 @@ function forcedChainNetwork(flagValue) {
1020
1020
 
1021
1021
  // src-ts/client.ts
1022
1022
  var AGENT_NOT_REGISTERED = "Agent not registered. Onboard the agent at the dashboard before submitting actions.";
1023
+ function secretRefusal(...parts) {
1024
+ const kinds = new Set(
1025
+ parts.flatMap(
1026
+ (part) => part ? native.redactSecrets(part).found.map((f) => f.kind) : []
1027
+ )
1028
+ );
1029
+ if (kinds.size === 0) return null;
1030
+ return `Refused before signing: the action, context or tool arguments contain a secret (${[...kinds].join(", ")}). Nothing was sent. Remove it, or use auditToolCall, which redacts it.`;
1031
+ }
1023
1032
  var TOOL_CALL_IDS_FOR_TESTS = /* @__PURE__ */ Symbol.for("@atbash/sdk.toolCallIdsForTests");
1024
1033
  function generateToolCallId() {
1025
1034
  const fixed = globalThis[TOOL_CALL_IDS_FOR_TESTS];
@@ -1391,6 +1400,12 @@ config.json still holds an "agentKey" (${identity}), but a settings file no long
1391
1400
  async _logToolCall(action, context, options, raisePreflightErrors) {
1392
1401
  const start = performance.now();
1393
1402
  recordCall("logToolCall", void 0, this.auth.pubkey);
1403
+ const refusal = secretRefusal(action, context, options.toolArgsJson ?? "");
1404
+ if (refusal) {
1405
+ recordDuration("logToolCall", performance.now() - start, "error");
1406
+ if (raisePreflightErrors) throw new JudgeRefusalError(refusal);
1407
+ return { success: false, toolCallId: null, error: refusal };
1408
+ }
1394
1409
  let exists;
1395
1410
  try {
1396
1411
  exists = await this.checkAgentExists(this.auth.pubkey, {
package/dist/index.mjs CHANGED
@@ -630,7 +630,7 @@ import {
630
630
  import { OTLPLogExporter } from "@opentelemetry/exporter-logs-otlp-http";
631
631
  import { BatchLogRecordProcessor, LoggerProvider } from "@opentelemetry/sdk-logs";
632
632
  import { createHash } from "crypto";
633
- var SDK_VERSION = true ? "0.24.1-dev.0" : "";
633
+ var SDK_VERSION = true ? "0.24.2-dev.0" : "";
634
634
  var SDK_LANGUAGE = "node";
635
635
  function sdkResourceAttributes() {
636
636
  const attrs = {
@@ -901,6 +901,15 @@ function forcedChainNetwork(flagValue) {
901
901
 
902
902
  // src-ts/client.ts
903
903
  var AGENT_NOT_REGISTERED = "Agent not registered. Onboard the agent at the dashboard before submitting actions.";
904
+ function secretRefusal(...parts) {
905
+ const kinds = new Set(
906
+ parts.flatMap(
907
+ (part) => part ? native.redactSecrets(part).found.map((f) => f.kind) : []
908
+ )
909
+ );
910
+ if (kinds.size === 0) return null;
911
+ return `Refused before signing: the action, context or tool arguments contain a secret (${[...kinds].join(", ")}). Nothing was sent. Remove it, or use auditToolCall, which redacts it.`;
912
+ }
904
913
  var TOOL_CALL_IDS_FOR_TESTS = /* @__PURE__ */ Symbol.for("@atbash/sdk.toolCallIdsForTests");
905
914
  function generateToolCallId() {
906
915
  const fixed = globalThis[TOOL_CALL_IDS_FOR_TESTS];
@@ -1272,6 +1281,12 @@ config.json still holds an "agentKey" (${identity}), but a settings file no long
1272
1281
  async _logToolCall(action, context, options, raisePreflightErrors) {
1273
1282
  const start = performance.now();
1274
1283
  recordCall("logToolCall", void 0, this.auth.pubkey);
1284
+ const refusal = secretRefusal(action, context, options.toolArgsJson ?? "");
1285
+ if (refusal) {
1286
+ recordDuration("logToolCall", performance.now() - start, "error");
1287
+ if (raisePreflightErrors) throw new JudgeRefusalError(refusal);
1288
+ return { success: false, toolCallId: null, error: refusal };
1289
+ }
1275
1290
  let exists;
1276
1291
  try {
1277
1292
  exists = await this.checkAgentExists(this.auth.pubkey, {
package/index.js CHANGED
@@ -92,8 +92,8 @@ function requireNative() {
92
92
  try {
93
93
  const binding = require('@atbash/sdk-android-arm64')
94
94
  const bindingPackageVersion = require('@atbash/sdk-android-arm64/package.json').version
95
- if (bindingPackageVersion !== '0.24.1-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
96
- throw new Error(`Native binding package version mismatch, expected 0.24.1-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
95
+ if (bindingPackageVersion !== '0.24.2-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
96
+ throw new Error(`Native binding package version mismatch, expected 0.24.2-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
97
97
  }
98
98
  return binding
99
99
  } catch (e) {
@@ -108,8 +108,8 @@ function requireNative() {
108
108
  try {
109
109
  const binding = require('@atbash/sdk-android-arm-eabi')
110
110
  const bindingPackageVersion = require('@atbash/sdk-android-arm-eabi/package.json').version
111
- if (bindingPackageVersion !== '0.24.1-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
112
- throw new Error(`Native binding package version mismatch, expected 0.24.1-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
111
+ if (bindingPackageVersion !== '0.24.2-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
112
+ throw new Error(`Native binding package version mismatch, expected 0.24.2-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
113
113
  }
114
114
  return binding
115
115
  } catch (e) {
@@ -129,8 +129,8 @@ function requireNative() {
129
129
  try {
130
130
  const binding = require('@atbash/sdk-win32-x64-gnu')
131
131
  const bindingPackageVersion = require('@atbash/sdk-win32-x64-gnu/package.json').version
132
- if (bindingPackageVersion !== '0.24.1-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
133
- throw new Error(`Native binding package version mismatch, expected 0.24.1-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
132
+ if (bindingPackageVersion !== '0.24.2-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
133
+ throw new Error(`Native binding package version mismatch, expected 0.24.2-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
134
134
  }
135
135
  return binding
136
136
  } catch (e) {
@@ -145,8 +145,8 @@ function requireNative() {
145
145
  try {
146
146
  const binding = require('@atbash/sdk-win32-x64-msvc')
147
147
  const bindingPackageVersion = require('@atbash/sdk-win32-x64-msvc/package.json').version
148
- if (bindingPackageVersion !== '0.24.1-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
149
- throw new Error(`Native binding package version mismatch, expected 0.24.1-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
148
+ if (bindingPackageVersion !== '0.24.2-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
149
+ throw new Error(`Native binding package version mismatch, expected 0.24.2-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
150
150
  }
151
151
  return binding
152
152
  } catch (e) {
@@ -162,8 +162,8 @@ function requireNative() {
162
162
  try {
163
163
  const binding = require('@atbash/sdk-win32-ia32-msvc')
164
164
  const bindingPackageVersion = require('@atbash/sdk-win32-ia32-msvc/package.json').version
165
- if (bindingPackageVersion !== '0.24.1-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
166
- throw new Error(`Native binding package version mismatch, expected 0.24.1-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
165
+ if (bindingPackageVersion !== '0.24.2-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
166
+ throw new Error(`Native binding package version mismatch, expected 0.24.2-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
167
167
  }
168
168
  return binding
169
169
  } catch (e) {
@@ -178,8 +178,8 @@ function requireNative() {
178
178
  try {
179
179
  const binding = require('@atbash/sdk-win32-arm64-msvc')
180
180
  const bindingPackageVersion = require('@atbash/sdk-win32-arm64-msvc/package.json').version
181
- if (bindingPackageVersion !== '0.24.1-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
182
- throw new Error(`Native binding package version mismatch, expected 0.24.1-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
181
+ if (bindingPackageVersion !== '0.24.2-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
182
+ throw new Error(`Native binding package version mismatch, expected 0.24.2-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
183
183
  }
184
184
  return binding
185
185
  } catch (e) {
@@ -197,8 +197,8 @@ function requireNative() {
197
197
  try {
198
198
  const binding = require('@atbash/sdk-darwin-universal')
199
199
  const bindingPackageVersion = require('@atbash/sdk-darwin-universal/package.json').version
200
- if (bindingPackageVersion !== '0.24.1-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
201
- throw new Error(`Native binding package version mismatch, expected 0.24.1-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
200
+ if (bindingPackageVersion !== '0.24.2-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
201
+ throw new Error(`Native binding package version mismatch, expected 0.24.2-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
202
202
  }
203
203
  return binding
204
204
  } catch (e) {
@@ -213,8 +213,8 @@ function requireNative() {
213
213
  try {
214
214
  const binding = require('@atbash/sdk-darwin-x64')
215
215
  const bindingPackageVersion = require('@atbash/sdk-darwin-x64/package.json').version
216
- if (bindingPackageVersion !== '0.24.1-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
217
- throw new Error(`Native binding package version mismatch, expected 0.24.1-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
216
+ if (bindingPackageVersion !== '0.24.2-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
217
+ throw new Error(`Native binding package version mismatch, expected 0.24.2-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
218
218
  }
219
219
  return binding
220
220
  } catch (e) {
@@ -229,8 +229,8 @@ function requireNative() {
229
229
  try {
230
230
  const binding = require('@atbash/sdk-darwin-arm64')
231
231
  const bindingPackageVersion = require('@atbash/sdk-darwin-arm64/package.json').version
232
- if (bindingPackageVersion !== '0.24.1-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
233
- throw new Error(`Native binding package version mismatch, expected 0.24.1-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
232
+ if (bindingPackageVersion !== '0.24.2-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
233
+ throw new Error(`Native binding package version mismatch, expected 0.24.2-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
234
234
  }
235
235
  return binding
236
236
  } catch (e) {
@@ -249,8 +249,8 @@ function requireNative() {
249
249
  try {
250
250
  const binding = require('@atbash/sdk-freebsd-x64')
251
251
  const bindingPackageVersion = require('@atbash/sdk-freebsd-x64/package.json').version
252
- if (bindingPackageVersion !== '0.24.1-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
253
- throw new Error(`Native binding package version mismatch, expected 0.24.1-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
252
+ if (bindingPackageVersion !== '0.24.2-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
253
+ throw new Error(`Native binding package version mismatch, expected 0.24.2-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
254
254
  }
255
255
  return binding
256
256
  } catch (e) {
@@ -265,8 +265,8 @@ function requireNative() {
265
265
  try {
266
266
  const binding = require('@atbash/sdk-freebsd-arm64')
267
267
  const bindingPackageVersion = require('@atbash/sdk-freebsd-arm64/package.json').version
268
- if (bindingPackageVersion !== '0.24.1-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
269
- throw new Error(`Native binding package version mismatch, expected 0.24.1-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
268
+ if (bindingPackageVersion !== '0.24.2-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
269
+ throw new Error(`Native binding package version mismatch, expected 0.24.2-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
270
270
  }
271
271
  return binding
272
272
  } catch (e) {
@@ -286,8 +286,8 @@ function requireNative() {
286
286
  try {
287
287
  const binding = require('@atbash/sdk-linux-x64-musl')
288
288
  const bindingPackageVersion = require('@atbash/sdk-linux-x64-musl/package.json').version
289
- if (bindingPackageVersion !== '0.24.1-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
290
- throw new Error(`Native binding package version mismatch, expected 0.24.1-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
289
+ if (bindingPackageVersion !== '0.24.2-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
290
+ throw new Error(`Native binding package version mismatch, expected 0.24.2-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
291
291
  }
292
292
  return binding
293
293
  } catch (e) {
@@ -302,8 +302,8 @@ function requireNative() {
302
302
  try {
303
303
  const binding = require('@atbash/sdk-linux-x64-gnu')
304
304
  const bindingPackageVersion = require('@atbash/sdk-linux-x64-gnu/package.json').version
305
- if (bindingPackageVersion !== '0.24.1-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
306
- throw new Error(`Native binding package version mismatch, expected 0.24.1-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
305
+ if (bindingPackageVersion !== '0.24.2-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
306
+ throw new Error(`Native binding package version mismatch, expected 0.24.2-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
307
307
  }
308
308
  return binding
309
309
  } catch (e) {
@@ -320,8 +320,8 @@ function requireNative() {
320
320
  try {
321
321
  const binding = require('@atbash/sdk-linux-arm64-musl')
322
322
  const bindingPackageVersion = require('@atbash/sdk-linux-arm64-musl/package.json').version
323
- if (bindingPackageVersion !== '0.24.1-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
324
- throw new Error(`Native binding package version mismatch, expected 0.24.1-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
323
+ if (bindingPackageVersion !== '0.24.2-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
324
+ throw new Error(`Native binding package version mismatch, expected 0.24.2-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
325
325
  }
326
326
  return binding
327
327
  } catch (e) {
@@ -336,8 +336,8 @@ function requireNative() {
336
336
  try {
337
337
  const binding = require('@atbash/sdk-linux-arm64-gnu')
338
338
  const bindingPackageVersion = require('@atbash/sdk-linux-arm64-gnu/package.json').version
339
- if (bindingPackageVersion !== '0.24.1-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
340
- throw new Error(`Native binding package version mismatch, expected 0.24.1-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
339
+ if (bindingPackageVersion !== '0.24.2-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
340
+ throw new Error(`Native binding package version mismatch, expected 0.24.2-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
341
341
  }
342
342
  return binding
343
343
  } catch (e) {
@@ -354,8 +354,8 @@ function requireNative() {
354
354
  try {
355
355
  const binding = require('@atbash/sdk-linux-arm-musleabihf')
356
356
  const bindingPackageVersion = require('@atbash/sdk-linux-arm-musleabihf/package.json').version
357
- if (bindingPackageVersion !== '0.24.1-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
358
- throw new Error(`Native binding package version mismatch, expected 0.24.1-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
357
+ if (bindingPackageVersion !== '0.24.2-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
358
+ throw new Error(`Native binding package version mismatch, expected 0.24.2-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
359
359
  }
360
360
  return binding
361
361
  } catch (e) {
@@ -370,8 +370,8 @@ function requireNative() {
370
370
  try {
371
371
  const binding = require('@atbash/sdk-linux-arm-gnueabihf')
372
372
  const bindingPackageVersion = require('@atbash/sdk-linux-arm-gnueabihf/package.json').version
373
- if (bindingPackageVersion !== '0.24.1-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
374
- throw new Error(`Native binding package version mismatch, expected 0.24.1-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
373
+ if (bindingPackageVersion !== '0.24.2-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
374
+ throw new Error(`Native binding package version mismatch, expected 0.24.2-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
375
375
  }
376
376
  return binding
377
377
  } catch (e) {
@@ -388,8 +388,8 @@ function requireNative() {
388
388
  try {
389
389
  const binding = require('@atbash/sdk-linux-loong64-musl')
390
390
  const bindingPackageVersion = require('@atbash/sdk-linux-loong64-musl/package.json').version
391
- if (bindingPackageVersion !== '0.24.1-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
392
- throw new Error(`Native binding package version mismatch, expected 0.24.1-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
391
+ if (bindingPackageVersion !== '0.24.2-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
392
+ throw new Error(`Native binding package version mismatch, expected 0.24.2-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
393
393
  }
394
394
  return binding
395
395
  } catch (e) {
@@ -404,8 +404,8 @@ function requireNative() {
404
404
  try {
405
405
  const binding = require('@atbash/sdk-linux-loong64-gnu')
406
406
  const bindingPackageVersion = require('@atbash/sdk-linux-loong64-gnu/package.json').version
407
- if (bindingPackageVersion !== '0.24.1-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
408
- throw new Error(`Native binding package version mismatch, expected 0.24.1-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
407
+ if (bindingPackageVersion !== '0.24.2-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
408
+ throw new Error(`Native binding package version mismatch, expected 0.24.2-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
409
409
  }
410
410
  return binding
411
411
  } catch (e) {
@@ -422,8 +422,8 @@ function requireNative() {
422
422
  try {
423
423
  const binding = require('@atbash/sdk-linux-riscv64-musl')
424
424
  const bindingPackageVersion = require('@atbash/sdk-linux-riscv64-musl/package.json').version
425
- if (bindingPackageVersion !== '0.24.1-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
426
- throw new Error(`Native binding package version mismatch, expected 0.24.1-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
425
+ if (bindingPackageVersion !== '0.24.2-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
426
+ throw new Error(`Native binding package version mismatch, expected 0.24.2-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
427
427
  }
428
428
  return binding
429
429
  } catch (e) {
@@ -438,8 +438,8 @@ function requireNative() {
438
438
  try {
439
439
  const binding = require('@atbash/sdk-linux-riscv64-gnu')
440
440
  const bindingPackageVersion = require('@atbash/sdk-linux-riscv64-gnu/package.json').version
441
- if (bindingPackageVersion !== '0.24.1-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
442
- throw new Error(`Native binding package version mismatch, expected 0.24.1-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
441
+ if (bindingPackageVersion !== '0.24.2-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
442
+ throw new Error(`Native binding package version mismatch, expected 0.24.2-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
443
443
  }
444
444
  return binding
445
445
  } catch (e) {
@@ -455,8 +455,8 @@ function requireNative() {
455
455
  try {
456
456
  const binding = require('@atbash/sdk-linux-ppc64-gnu')
457
457
  const bindingPackageVersion = require('@atbash/sdk-linux-ppc64-gnu/package.json').version
458
- if (bindingPackageVersion !== '0.24.1-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
459
- throw new Error(`Native binding package version mismatch, expected 0.24.1-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
458
+ if (bindingPackageVersion !== '0.24.2-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
459
+ throw new Error(`Native binding package version mismatch, expected 0.24.2-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
460
460
  }
461
461
  return binding
462
462
  } catch (e) {
@@ -471,8 +471,8 @@ function requireNative() {
471
471
  try {
472
472
  const binding = require('@atbash/sdk-linux-s390x-gnu')
473
473
  const bindingPackageVersion = require('@atbash/sdk-linux-s390x-gnu/package.json').version
474
- if (bindingPackageVersion !== '0.24.1-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
475
- throw new Error(`Native binding package version mismatch, expected 0.24.1-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
474
+ if (bindingPackageVersion !== '0.24.2-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
475
+ throw new Error(`Native binding package version mismatch, expected 0.24.2-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
476
476
  }
477
477
  return binding
478
478
  } catch (e) {
@@ -491,8 +491,8 @@ function requireNative() {
491
491
  try {
492
492
  const binding = require('@atbash/sdk-openharmony-arm64')
493
493
  const bindingPackageVersion = require('@atbash/sdk-openharmony-arm64/package.json').version
494
- if (bindingPackageVersion !== '0.24.1-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
495
- throw new Error(`Native binding package version mismatch, expected 0.24.1-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
494
+ if (bindingPackageVersion !== '0.24.2-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
495
+ throw new Error(`Native binding package version mismatch, expected 0.24.2-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
496
496
  }
497
497
  return binding
498
498
  } catch (e) {
@@ -507,8 +507,8 @@ function requireNative() {
507
507
  try {
508
508
  const binding = require('@atbash/sdk-openharmony-x64')
509
509
  const bindingPackageVersion = require('@atbash/sdk-openharmony-x64/package.json').version
510
- if (bindingPackageVersion !== '0.24.1-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
511
- throw new Error(`Native binding package version mismatch, expected 0.24.1-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
510
+ if (bindingPackageVersion !== '0.24.2-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
511
+ throw new Error(`Native binding package version mismatch, expected 0.24.2-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
512
512
  }
513
513
  return binding
514
514
  } catch (e) {
@@ -523,8 +523,8 @@ function requireNative() {
523
523
  try {
524
524
  const binding = require('@atbash/sdk-openharmony-arm')
525
525
  const bindingPackageVersion = require('@atbash/sdk-openharmony-arm/package.json').version
526
- if (bindingPackageVersion !== '0.24.1-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
527
- throw new Error(`Native binding package version mismatch, expected 0.24.1-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
526
+ if (bindingPackageVersion !== '0.24.2-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
527
+ throw new Error(`Native binding package version mismatch, expected 0.24.2-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
528
528
  }
529
529
  return binding
530
530
  } catch (e) {
@@ -664,8 +664,8 @@ if (!nativeBinding || forceWasi) {
664
664
  if (!candidateFailed) {
665
665
  if (process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
666
666
  const bindingPackageVersion = require('@atbash/sdk-wasm32-wasi/package.json').version
667
- if (bindingPackageVersion !== '0.24.1-dev.0') {
668
- throw new Error(`WASI binding package version mismatch, expected 0.24.1-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
667
+ if (bindingPackageVersion !== '0.24.2-dev.0') {
668
+ throw new Error(`WASI binding package version mismatch, expected 0.24.2-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
669
669
  }
670
670
  }
671
671
  wasiBinding = require('@atbash/sdk-wasm32-wasi')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atbash/sdk",
3
- "version": "0.24.1-dev.0",
3
+ "version": "0.24.2-dev.0",
4
4
  "description": "TypeScript SDK for Atbash — the safety layer that evaluates AI agent actions against operator-defined policies before execution.",
5
5
  "keywords": [
6
6
  "atbash",
@@ -105,10 +105,10 @@
105
105
  "@napi-rs/cross-toolchain": "1.0.3"
106
106
  },
107
107
  "optionalDependencies": {
108
- "@atbash/sdk-linux-x64-gnu": "0.24.1-dev.0",
109
- "@atbash/sdk-linux-arm64-gnu": "0.24.1-dev.0",
110
- "@atbash/sdk-linux-x64-musl": "0.24.1-dev.0",
111
- "@atbash/sdk-darwin-arm64": "0.24.1-dev.0",
112
- "@atbash/sdk-win32-x64-msvc": "0.24.1-dev.0"
108
+ "@atbash/sdk-linux-x64-gnu": "0.24.2-dev.0",
109
+ "@atbash/sdk-linux-arm64-gnu": "0.24.2-dev.0",
110
+ "@atbash/sdk-linux-x64-musl": "0.24.2-dev.0",
111
+ "@atbash/sdk-darwin-arm64": "0.24.2-dev.0",
112
+ "@atbash/sdk-win32-x64-msvc": "0.24.2-dev.0"
113
113
  }
114
114
  }