@atbash/sdk 0.19.0-dev.0 → 0.19.1-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.mjs +23 -11
- package/dist/index.js +23 -11
- package/dist/index.mjs +23 -11
- package/index.js +54 -54
- package/package.json +6 -6
package/dist/browser.mjs
CHANGED
|
@@ -44625,9 +44625,19 @@ init_define_ATBASH_PRIVATE_NODE_URLS();
|
|
|
44625
44625
|
// src-ts/normalize.ts
|
|
44626
44626
|
init_define_ATBASH_CHROMIA_NODE_URLS();
|
|
44627
44627
|
init_define_ATBASH_PRIVATE_NODE_URLS();
|
|
44628
|
+
function wireText(raw2, fallback = "") {
|
|
44629
|
+
if (raw2 === null || raw2 === void 0) return fallback;
|
|
44630
|
+
if (typeof raw2 === "object" || typeof raw2 === "function") return fallback;
|
|
44631
|
+
return String(raw2);
|
|
44632
|
+
}
|
|
44633
|
+
function wireNumber(raw2, fallback = 0) {
|
|
44634
|
+
if (raw2 === null || raw2 === void 0) return fallback;
|
|
44635
|
+
if (typeof raw2 === "object" || typeof raw2 === "function") return fallback;
|
|
44636
|
+
return Number(raw2);
|
|
44637
|
+
}
|
|
44628
44638
|
function normalizeVerdict(raw2) {
|
|
44629
44639
|
if (raw2 === null || raw2 === void 0) return "No verdict";
|
|
44630
|
-
const v =
|
|
44640
|
+
const v = wireText(raw2).trim().toUpperCase();
|
|
44631
44641
|
if (v === "ALLOW" || v === "GREEN") return "ALLOW";
|
|
44632
44642
|
if (v === "HOLD" || v === "YELLOW") return "HOLD";
|
|
44633
44643
|
if (v === "BLOCK" || v === "RED") return "BLOCK";
|
|
@@ -44637,7 +44647,7 @@ function normalizeActionType(raw2) {
|
|
|
44637
44647
|
return typeof raw2 === "string" ? raw2.trim().toLowerCase() : "";
|
|
44638
44648
|
}
|
|
44639
44649
|
function normalizeStatus(raw2) {
|
|
44640
|
-
const s2 =
|
|
44650
|
+
const s2 = wireText(raw2).toLowerCase();
|
|
44641
44651
|
if (s2 === "pending" || s2 === "answered" || s2 === "error") return s2;
|
|
44642
44652
|
return "error";
|
|
44643
44653
|
}
|
|
@@ -45314,15 +45324,15 @@ config.json still holds an "agentKey" (${identity}), but a settings file no long
|
|
|
45314
45324
|
verdict: normalizeVerdict(data.verdict),
|
|
45315
45325
|
allow: this.executable(data),
|
|
45316
45326
|
actionType: normalizeActionType(data.action_type),
|
|
45317
|
-
reason:
|
|
45318
|
-
confidence:
|
|
45319
|
-
provider:
|
|
45320
|
-
latencyMs:
|
|
45321
|
-
toolCallId:
|
|
45327
|
+
reason: wireText(data.reason),
|
|
45328
|
+
confidence: wireNumber(data.confidence),
|
|
45329
|
+
provider: wireText(data.provider),
|
|
45330
|
+
latencyMs: wireNumber(data.latency_ms),
|
|
45331
|
+
toolCallId: wireText(data.tool_call_id, logResult.toolCallId),
|
|
45322
45332
|
onChain: Boolean(data.on_chain),
|
|
45323
45333
|
enforced: Boolean(data.enforced),
|
|
45324
|
-
enforcementMode:
|
|
45325
|
-
status:
|
|
45334
|
+
enforcementMode: wireText(data.enforcement_mode),
|
|
45335
|
+
status: wireText(data.status),
|
|
45326
45336
|
score,
|
|
45327
45337
|
refusal: explicitRefusal(data)
|
|
45328
45338
|
};
|
|
@@ -45546,8 +45556,8 @@ config.json still holds an "agentKey" (${identity}), but a settings file no long
|
|
|
45546
45556
|
status: normalizeStatus(data.status),
|
|
45547
45557
|
verdict: normalizeVerdict(data.verdict),
|
|
45548
45558
|
allow: this.executable(data),
|
|
45549
|
-
reason:
|
|
45550
|
-
judgmentId:
|
|
45559
|
+
reason: wireText(data.reason),
|
|
45560
|
+
judgmentId: wireText(data.judgmentId, judgmentId),
|
|
45551
45561
|
onChain: optBool(data.onChain),
|
|
45552
45562
|
cached: optBool(data.cached),
|
|
45553
45563
|
responseTimeMs: optNumber(data.responseTimeMs)
|
|
@@ -46154,10 +46164,12 @@ function isRecord2(v) {
|
|
|
46154
46164
|
}
|
|
46155
46165
|
function optString(v) {
|
|
46156
46166
|
if (v === null || v === void 0) return void 0;
|
|
46167
|
+
if (typeof v === "object" || typeof v === "function") return void 0;
|
|
46157
46168
|
return typeof v === "string" ? v : String(v);
|
|
46158
46169
|
}
|
|
46159
46170
|
function optNumber(v) {
|
|
46160
46171
|
if (v === null || v === void 0) return void 0;
|
|
46172
|
+
if (typeof v === "object" || typeof v === "function") return void 0;
|
|
46161
46173
|
const n = Number(v);
|
|
46162
46174
|
return Number.isFinite(n) ? n : void 0;
|
|
46163
46175
|
}
|
package/dist/index.js
CHANGED
|
@@ -501,9 +501,19 @@ function loadAgentFromFile(keyPath) {
|
|
|
501
501
|
}
|
|
502
502
|
|
|
503
503
|
// src-ts/normalize.ts
|
|
504
|
+
function wireText(raw, fallback = "") {
|
|
505
|
+
if (raw === null || raw === void 0) return fallback;
|
|
506
|
+
if (typeof raw === "object" || typeof raw === "function") return fallback;
|
|
507
|
+
return String(raw);
|
|
508
|
+
}
|
|
509
|
+
function wireNumber(raw, fallback = 0) {
|
|
510
|
+
if (raw === null || raw === void 0) return fallback;
|
|
511
|
+
if (typeof raw === "object" || typeof raw === "function") return fallback;
|
|
512
|
+
return Number(raw);
|
|
513
|
+
}
|
|
504
514
|
function normalizeVerdict(raw) {
|
|
505
515
|
if (raw === null || raw === void 0) return "No verdict";
|
|
506
|
-
const v =
|
|
516
|
+
const v = wireText(raw).trim().toUpperCase();
|
|
507
517
|
if (v === "ALLOW" || v === "GREEN") return "ALLOW";
|
|
508
518
|
if (v === "HOLD" || v === "YELLOW") return "HOLD";
|
|
509
519
|
if (v === "BLOCK" || v === "RED") return "BLOCK";
|
|
@@ -513,7 +523,7 @@ function normalizeActionType(raw) {
|
|
|
513
523
|
return typeof raw === "string" ? raw.trim().toLowerCase() : "";
|
|
514
524
|
}
|
|
515
525
|
function normalizeStatus(raw) {
|
|
516
|
-
const s =
|
|
526
|
+
const s = wireText(raw).toLowerCase();
|
|
517
527
|
if (s === "pending" || s === "answered" || s === "error") return s;
|
|
518
528
|
return "error";
|
|
519
529
|
}
|
|
@@ -1398,15 +1408,15 @@ config.json still holds an "agentKey" (${identity}), but a settings file no long
|
|
|
1398
1408
|
verdict: normalizeVerdict(data.verdict),
|
|
1399
1409
|
allow: this.executable(data),
|
|
1400
1410
|
actionType: normalizeActionType(data.action_type),
|
|
1401
|
-
reason:
|
|
1402
|
-
confidence:
|
|
1403
|
-
provider:
|
|
1404
|
-
latencyMs:
|
|
1405
|
-
toolCallId:
|
|
1411
|
+
reason: wireText(data.reason),
|
|
1412
|
+
confidence: wireNumber(data.confidence),
|
|
1413
|
+
provider: wireText(data.provider),
|
|
1414
|
+
latencyMs: wireNumber(data.latency_ms),
|
|
1415
|
+
toolCallId: wireText(data.tool_call_id, logResult.toolCallId),
|
|
1406
1416
|
onChain: Boolean(data.on_chain),
|
|
1407
1417
|
enforced: Boolean(data.enforced),
|
|
1408
|
-
enforcementMode:
|
|
1409
|
-
status:
|
|
1418
|
+
enforcementMode: wireText(data.enforcement_mode),
|
|
1419
|
+
status: wireText(data.status),
|
|
1410
1420
|
score,
|
|
1411
1421
|
refusal: explicitRefusal(data)
|
|
1412
1422
|
};
|
|
@@ -1630,8 +1640,8 @@ config.json still holds an "agentKey" (${identity}), but a settings file no long
|
|
|
1630
1640
|
status: normalizeStatus(data.status),
|
|
1631
1641
|
verdict: normalizeVerdict(data.verdict),
|
|
1632
1642
|
allow: this.executable(data),
|
|
1633
|
-
reason:
|
|
1634
|
-
judgmentId:
|
|
1643
|
+
reason: wireText(data.reason),
|
|
1644
|
+
judgmentId: wireText(data.judgmentId, judgmentId),
|
|
1635
1645
|
onChain: optBool(data.onChain),
|
|
1636
1646
|
cached: optBool(data.cached),
|
|
1637
1647
|
responseTimeMs: optNumber(data.responseTimeMs)
|
|
@@ -2238,10 +2248,12 @@ function isRecord2(v) {
|
|
|
2238
2248
|
}
|
|
2239
2249
|
function optString(v) {
|
|
2240
2250
|
if (v === null || v === void 0) return void 0;
|
|
2251
|
+
if (typeof v === "object" || typeof v === "function") return void 0;
|
|
2241
2252
|
return typeof v === "string" ? v : String(v);
|
|
2242
2253
|
}
|
|
2243
2254
|
function optNumber(v) {
|
|
2244
2255
|
if (v === null || v === void 0) return void 0;
|
|
2256
|
+
if (typeof v === "object" || typeof v === "function") return void 0;
|
|
2245
2257
|
const n = Number(v);
|
|
2246
2258
|
return Number.isFinite(n) ? n : void 0;
|
|
2247
2259
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -374,9 +374,19 @@ function loadAgentFromFile(keyPath) {
|
|
|
374
374
|
}
|
|
375
375
|
|
|
376
376
|
// src-ts/normalize.ts
|
|
377
|
+
function wireText(raw, fallback = "") {
|
|
378
|
+
if (raw === null || raw === void 0) return fallback;
|
|
379
|
+
if (typeof raw === "object" || typeof raw === "function") return fallback;
|
|
380
|
+
return String(raw);
|
|
381
|
+
}
|
|
382
|
+
function wireNumber(raw, fallback = 0) {
|
|
383
|
+
if (raw === null || raw === void 0) return fallback;
|
|
384
|
+
if (typeof raw === "object" || typeof raw === "function") return fallback;
|
|
385
|
+
return Number(raw);
|
|
386
|
+
}
|
|
377
387
|
function normalizeVerdict(raw) {
|
|
378
388
|
if (raw === null || raw === void 0) return "No verdict";
|
|
379
|
-
const v =
|
|
389
|
+
const v = wireText(raw).trim().toUpperCase();
|
|
380
390
|
if (v === "ALLOW" || v === "GREEN") return "ALLOW";
|
|
381
391
|
if (v === "HOLD" || v === "YELLOW") return "HOLD";
|
|
382
392
|
if (v === "BLOCK" || v === "RED") return "BLOCK";
|
|
@@ -386,7 +396,7 @@ function normalizeActionType(raw) {
|
|
|
386
396
|
return typeof raw === "string" ? raw.trim().toLowerCase() : "";
|
|
387
397
|
}
|
|
388
398
|
function normalizeStatus(raw) {
|
|
389
|
-
const s =
|
|
399
|
+
const s = wireText(raw).toLowerCase();
|
|
390
400
|
if (s === "pending" || s === "answered" || s === "error") return s;
|
|
391
401
|
return "error";
|
|
392
402
|
}
|
|
@@ -1283,15 +1293,15 @@ config.json still holds an "agentKey" (${identity}), but a settings file no long
|
|
|
1283
1293
|
verdict: normalizeVerdict(data.verdict),
|
|
1284
1294
|
allow: this.executable(data),
|
|
1285
1295
|
actionType: normalizeActionType(data.action_type),
|
|
1286
|
-
reason:
|
|
1287
|
-
confidence:
|
|
1288
|
-
provider:
|
|
1289
|
-
latencyMs:
|
|
1290
|
-
toolCallId:
|
|
1296
|
+
reason: wireText(data.reason),
|
|
1297
|
+
confidence: wireNumber(data.confidence),
|
|
1298
|
+
provider: wireText(data.provider),
|
|
1299
|
+
latencyMs: wireNumber(data.latency_ms),
|
|
1300
|
+
toolCallId: wireText(data.tool_call_id, logResult.toolCallId),
|
|
1291
1301
|
onChain: Boolean(data.on_chain),
|
|
1292
1302
|
enforced: Boolean(data.enforced),
|
|
1293
|
-
enforcementMode:
|
|
1294
|
-
status:
|
|
1303
|
+
enforcementMode: wireText(data.enforcement_mode),
|
|
1304
|
+
status: wireText(data.status),
|
|
1295
1305
|
score,
|
|
1296
1306
|
refusal: explicitRefusal(data)
|
|
1297
1307
|
};
|
|
@@ -1515,8 +1525,8 @@ config.json still holds an "agentKey" (${identity}), but a settings file no long
|
|
|
1515
1525
|
status: normalizeStatus(data.status),
|
|
1516
1526
|
verdict: normalizeVerdict(data.verdict),
|
|
1517
1527
|
allow: this.executable(data),
|
|
1518
|
-
reason:
|
|
1519
|
-
judgmentId:
|
|
1528
|
+
reason: wireText(data.reason),
|
|
1529
|
+
judgmentId: wireText(data.judgmentId, judgmentId),
|
|
1520
1530
|
onChain: optBool(data.onChain),
|
|
1521
1531
|
cached: optBool(data.cached),
|
|
1522
1532
|
responseTimeMs: optNumber(data.responseTimeMs)
|
|
@@ -2123,10 +2133,12 @@ function isRecord2(v) {
|
|
|
2123
2133
|
}
|
|
2124
2134
|
function optString(v) {
|
|
2125
2135
|
if (v === null || v === void 0) return void 0;
|
|
2136
|
+
if (typeof v === "object" || typeof v === "function") return void 0;
|
|
2126
2137
|
return typeof v === "string" ? v : String(v);
|
|
2127
2138
|
}
|
|
2128
2139
|
function optNumber(v) {
|
|
2129
2140
|
if (v === null || v === void 0) return void 0;
|
|
2141
|
+
if (typeof v === "object" || typeof v === "function") return void 0;
|
|
2130
2142
|
const n = Number(v);
|
|
2131
2143
|
return Number.isFinite(n) ? n : void 0;
|
|
2132
2144
|
}
|
package/index.js
CHANGED
|
@@ -89,8 +89,8 @@ function requireNative() {
|
|
|
89
89
|
try {
|
|
90
90
|
const binding = require('@atbash/sdk-android-arm64')
|
|
91
91
|
const bindingPackageVersion = require('@atbash/sdk-android-arm64/package.json').version
|
|
92
|
-
if (bindingPackageVersion !== '0.
|
|
93
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
92
|
+
if (bindingPackageVersion !== '0.19.1-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
93
|
+
throw new Error(`Native binding package version mismatch, expected 0.19.1-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
94
94
|
}
|
|
95
95
|
return binding
|
|
96
96
|
} catch (e) {
|
|
@@ -105,8 +105,8 @@ function requireNative() {
|
|
|
105
105
|
try {
|
|
106
106
|
const binding = require('@atbash/sdk-android-arm-eabi')
|
|
107
107
|
const bindingPackageVersion = require('@atbash/sdk-android-arm-eabi/package.json').version
|
|
108
|
-
if (bindingPackageVersion !== '0.
|
|
109
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
108
|
+
if (bindingPackageVersion !== '0.19.1-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
109
|
+
throw new Error(`Native binding package version mismatch, expected 0.19.1-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
110
110
|
}
|
|
111
111
|
return binding
|
|
112
112
|
} catch (e) {
|
|
@@ -126,8 +126,8 @@ function requireNative() {
|
|
|
126
126
|
try {
|
|
127
127
|
const binding = require('@atbash/sdk-win32-x64-gnu')
|
|
128
128
|
const bindingPackageVersion = require('@atbash/sdk-win32-x64-gnu/package.json').version
|
|
129
|
-
if (bindingPackageVersion !== '0.
|
|
130
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
129
|
+
if (bindingPackageVersion !== '0.19.1-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
130
|
+
throw new Error(`Native binding package version mismatch, expected 0.19.1-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
131
131
|
}
|
|
132
132
|
return binding
|
|
133
133
|
} catch (e) {
|
|
@@ -142,8 +142,8 @@ function requireNative() {
|
|
|
142
142
|
try {
|
|
143
143
|
const binding = require('@atbash/sdk-win32-x64-msvc')
|
|
144
144
|
const bindingPackageVersion = require('@atbash/sdk-win32-x64-msvc/package.json').version
|
|
145
|
-
if (bindingPackageVersion !== '0.
|
|
146
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
145
|
+
if (bindingPackageVersion !== '0.19.1-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
146
|
+
throw new Error(`Native binding package version mismatch, expected 0.19.1-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
147
147
|
}
|
|
148
148
|
return binding
|
|
149
149
|
} catch (e) {
|
|
@@ -159,8 +159,8 @@ function requireNative() {
|
|
|
159
159
|
try {
|
|
160
160
|
const binding = require('@atbash/sdk-win32-ia32-msvc')
|
|
161
161
|
const bindingPackageVersion = require('@atbash/sdk-win32-ia32-msvc/package.json').version
|
|
162
|
-
if (bindingPackageVersion !== '0.
|
|
163
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
162
|
+
if (bindingPackageVersion !== '0.19.1-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
163
|
+
throw new Error(`Native binding package version mismatch, expected 0.19.1-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
164
164
|
}
|
|
165
165
|
return binding
|
|
166
166
|
} catch (e) {
|
|
@@ -175,8 +175,8 @@ function requireNative() {
|
|
|
175
175
|
try {
|
|
176
176
|
const binding = require('@atbash/sdk-win32-arm64-msvc')
|
|
177
177
|
const bindingPackageVersion = require('@atbash/sdk-win32-arm64-msvc/package.json').version
|
|
178
|
-
if (bindingPackageVersion !== '0.
|
|
179
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
178
|
+
if (bindingPackageVersion !== '0.19.1-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
179
|
+
throw new Error(`Native binding package version mismatch, expected 0.19.1-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
180
180
|
}
|
|
181
181
|
return binding
|
|
182
182
|
} catch (e) {
|
|
@@ -194,8 +194,8 @@ function requireNative() {
|
|
|
194
194
|
try {
|
|
195
195
|
const binding = require('@atbash/sdk-darwin-universal')
|
|
196
196
|
const bindingPackageVersion = require('@atbash/sdk-darwin-universal/package.json').version
|
|
197
|
-
if (bindingPackageVersion !== '0.
|
|
198
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
197
|
+
if (bindingPackageVersion !== '0.19.1-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
198
|
+
throw new Error(`Native binding package version mismatch, expected 0.19.1-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
199
199
|
}
|
|
200
200
|
return binding
|
|
201
201
|
} catch (e) {
|
|
@@ -210,8 +210,8 @@ function requireNative() {
|
|
|
210
210
|
try {
|
|
211
211
|
const binding = require('@atbash/sdk-darwin-x64')
|
|
212
212
|
const bindingPackageVersion = require('@atbash/sdk-darwin-x64/package.json').version
|
|
213
|
-
if (bindingPackageVersion !== '0.
|
|
214
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
213
|
+
if (bindingPackageVersion !== '0.19.1-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
214
|
+
throw new Error(`Native binding package version mismatch, expected 0.19.1-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
215
215
|
}
|
|
216
216
|
return binding
|
|
217
217
|
} catch (e) {
|
|
@@ -226,8 +226,8 @@ function requireNative() {
|
|
|
226
226
|
try {
|
|
227
227
|
const binding = require('@atbash/sdk-darwin-arm64')
|
|
228
228
|
const bindingPackageVersion = require('@atbash/sdk-darwin-arm64/package.json').version
|
|
229
|
-
if (bindingPackageVersion !== '0.
|
|
230
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
229
|
+
if (bindingPackageVersion !== '0.19.1-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
230
|
+
throw new Error(`Native binding package version mismatch, expected 0.19.1-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
231
231
|
}
|
|
232
232
|
return binding
|
|
233
233
|
} catch (e) {
|
|
@@ -246,8 +246,8 @@ function requireNative() {
|
|
|
246
246
|
try {
|
|
247
247
|
const binding = require('@atbash/sdk-freebsd-x64')
|
|
248
248
|
const bindingPackageVersion = require('@atbash/sdk-freebsd-x64/package.json').version
|
|
249
|
-
if (bindingPackageVersion !== '0.
|
|
250
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
249
|
+
if (bindingPackageVersion !== '0.19.1-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
250
|
+
throw new Error(`Native binding package version mismatch, expected 0.19.1-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
251
251
|
}
|
|
252
252
|
return binding
|
|
253
253
|
} catch (e) {
|
|
@@ -262,8 +262,8 @@ function requireNative() {
|
|
|
262
262
|
try {
|
|
263
263
|
const binding = require('@atbash/sdk-freebsd-arm64')
|
|
264
264
|
const bindingPackageVersion = require('@atbash/sdk-freebsd-arm64/package.json').version
|
|
265
|
-
if (bindingPackageVersion !== '0.
|
|
266
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
265
|
+
if (bindingPackageVersion !== '0.19.1-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
266
|
+
throw new Error(`Native binding package version mismatch, expected 0.19.1-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
267
267
|
}
|
|
268
268
|
return binding
|
|
269
269
|
} catch (e) {
|
|
@@ -283,8 +283,8 @@ function requireNative() {
|
|
|
283
283
|
try {
|
|
284
284
|
const binding = require('@atbash/sdk-linux-x64-musl')
|
|
285
285
|
const bindingPackageVersion = require('@atbash/sdk-linux-x64-musl/package.json').version
|
|
286
|
-
if (bindingPackageVersion !== '0.
|
|
287
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
286
|
+
if (bindingPackageVersion !== '0.19.1-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
287
|
+
throw new Error(`Native binding package version mismatch, expected 0.19.1-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
288
288
|
}
|
|
289
289
|
return binding
|
|
290
290
|
} catch (e) {
|
|
@@ -299,8 +299,8 @@ function requireNative() {
|
|
|
299
299
|
try {
|
|
300
300
|
const binding = require('@atbash/sdk-linux-x64-gnu')
|
|
301
301
|
const bindingPackageVersion = require('@atbash/sdk-linux-x64-gnu/package.json').version
|
|
302
|
-
if (bindingPackageVersion !== '0.
|
|
303
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
302
|
+
if (bindingPackageVersion !== '0.19.1-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
303
|
+
throw new Error(`Native binding package version mismatch, expected 0.19.1-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
304
304
|
}
|
|
305
305
|
return binding
|
|
306
306
|
} catch (e) {
|
|
@@ -317,8 +317,8 @@ function requireNative() {
|
|
|
317
317
|
try {
|
|
318
318
|
const binding = require('@atbash/sdk-linux-arm64-musl')
|
|
319
319
|
const bindingPackageVersion = require('@atbash/sdk-linux-arm64-musl/package.json').version
|
|
320
|
-
if (bindingPackageVersion !== '0.
|
|
321
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
320
|
+
if (bindingPackageVersion !== '0.19.1-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
321
|
+
throw new Error(`Native binding package version mismatch, expected 0.19.1-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
322
322
|
}
|
|
323
323
|
return binding
|
|
324
324
|
} catch (e) {
|
|
@@ -333,8 +333,8 @@ function requireNative() {
|
|
|
333
333
|
try {
|
|
334
334
|
const binding = require('@atbash/sdk-linux-arm64-gnu')
|
|
335
335
|
const bindingPackageVersion = require('@atbash/sdk-linux-arm64-gnu/package.json').version
|
|
336
|
-
if (bindingPackageVersion !== '0.
|
|
337
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
336
|
+
if (bindingPackageVersion !== '0.19.1-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
337
|
+
throw new Error(`Native binding package version mismatch, expected 0.19.1-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
338
338
|
}
|
|
339
339
|
return binding
|
|
340
340
|
} catch (e) {
|
|
@@ -351,8 +351,8 @@ function requireNative() {
|
|
|
351
351
|
try {
|
|
352
352
|
const binding = require('@atbash/sdk-linux-arm-musleabihf')
|
|
353
353
|
const bindingPackageVersion = require('@atbash/sdk-linux-arm-musleabihf/package.json').version
|
|
354
|
-
if (bindingPackageVersion !== '0.
|
|
355
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
354
|
+
if (bindingPackageVersion !== '0.19.1-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
355
|
+
throw new Error(`Native binding package version mismatch, expected 0.19.1-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
356
356
|
}
|
|
357
357
|
return binding
|
|
358
358
|
} catch (e) {
|
|
@@ -367,8 +367,8 @@ function requireNative() {
|
|
|
367
367
|
try {
|
|
368
368
|
const binding = require('@atbash/sdk-linux-arm-gnueabihf')
|
|
369
369
|
const bindingPackageVersion = require('@atbash/sdk-linux-arm-gnueabihf/package.json').version
|
|
370
|
-
if (bindingPackageVersion !== '0.
|
|
371
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
370
|
+
if (bindingPackageVersion !== '0.19.1-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
371
|
+
throw new Error(`Native binding package version mismatch, expected 0.19.1-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
372
372
|
}
|
|
373
373
|
return binding
|
|
374
374
|
} catch (e) {
|
|
@@ -385,8 +385,8 @@ function requireNative() {
|
|
|
385
385
|
try {
|
|
386
386
|
const binding = require('@atbash/sdk-linux-loong64-musl')
|
|
387
387
|
const bindingPackageVersion = require('@atbash/sdk-linux-loong64-musl/package.json').version
|
|
388
|
-
if (bindingPackageVersion !== '0.
|
|
389
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
388
|
+
if (bindingPackageVersion !== '0.19.1-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
389
|
+
throw new Error(`Native binding package version mismatch, expected 0.19.1-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
390
390
|
}
|
|
391
391
|
return binding
|
|
392
392
|
} catch (e) {
|
|
@@ -401,8 +401,8 @@ function requireNative() {
|
|
|
401
401
|
try {
|
|
402
402
|
const binding = require('@atbash/sdk-linux-loong64-gnu')
|
|
403
403
|
const bindingPackageVersion = require('@atbash/sdk-linux-loong64-gnu/package.json').version
|
|
404
|
-
if (bindingPackageVersion !== '0.
|
|
405
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
404
|
+
if (bindingPackageVersion !== '0.19.1-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
405
|
+
throw new Error(`Native binding package version mismatch, expected 0.19.1-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
406
406
|
}
|
|
407
407
|
return binding
|
|
408
408
|
} catch (e) {
|
|
@@ -419,8 +419,8 @@ function requireNative() {
|
|
|
419
419
|
try {
|
|
420
420
|
const binding = require('@atbash/sdk-linux-riscv64-musl')
|
|
421
421
|
const bindingPackageVersion = require('@atbash/sdk-linux-riscv64-musl/package.json').version
|
|
422
|
-
if (bindingPackageVersion !== '0.
|
|
423
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
422
|
+
if (bindingPackageVersion !== '0.19.1-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
423
|
+
throw new Error(`Native binding package version mismatch, expected 0.19.1-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
424
424
|
}
|
|
425
425
|
return binding
|
|
426
426
|
} catch (e) {
|
|
@@ -435,8 +435,8 @@ function requireNative() {
|
|
|
435
435
|
try {
|
|
436
436
|
const binding = require('@atbash/sdk-linux-riscv64-gnu')
|
|
437
437
|
const bindingPackageVersion = require('@atbash/sdk-linux-riscv64-gnu/package.json').version
|
|
438
|
-
if (bindingPackageVersion !== '0.
|
|
439
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
438
|
+
if (bindingPackageVersion !== '0.19.1-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
439
|
+
throw new Error(`Native binding package version mismatch, expected 0.19.1-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
440
440
|
}
|
|
441
441
|
return binding
|
|
442
442
|
} catch (e) {
|
|
@@ -452,8 +452,8 @@ function requireNative() {
|
|
|
452
452
|
try {
|
|
453
453
|
const binding = require('@atbash/sdk-linux-ppc64-gnu')
|
|
454
454
|
const bindingPackageVersion = require('@atbash/sdk-linux-ppc64-gnu/package.json').version
|
|
455
|
-
if (bindingPackageVersion !== '0.
|
|
456
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
455
|
+
if (bindingPackageVersion !== '0.19.1-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
456
|
+
throw new Error(`Native binding package version mismatch, expected 0.19.1-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
457
457
|
}
|
|
458
458
|
return binding
|
|
459
459
|
} catch (e) {
|
|
@@ -468,8 +468,8 @@ function requireNative() {
|
|
|
468
468
|
try {
|
|
469
469
|
const binding = require('@atbash/sdk-linux-s390x-gnu')
|
|
470
470
|
const bindingPackageVersion = require('@atbash/sdk-linux-s390x-gnu/package.json').version
|
|
471
|
-
if (bindingPackageVersion !== '0.
|
|
472
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
471
|
+
if (bindingPackageVersion !== '0.19.1-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
472
|
+
throw new Error(`Native binding package version mismatch, expected 0.19.1-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
473
473
|
}
|
|
474
474
|
return binding
|
|
475
475
|
} catch (e) {
|
|
@@ -488,8 +488,8 @@ function requireNative() {
|
|
|
488
488
|
try {
|
|
489
489
|
const binding = require('@atbash/sdk-openharmony-arm64')
|
|
490
490
|
const bindingPackageVersion = require('@atbash/sdk-openharmony-arm64/package.json').version
|
|
491
|
-
if (bindingPackageVersion !== '0.
|
|
492
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
491
|
+
if (bindingPackageVersion !== '0.19.1-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
492
|
+
throw new Error(`Native binding package version mismatch, expected 0.19.1-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
493
493
|
}
|
|
494
494
|
return binding
|
|
495
495
|
} catch (e) {
|
|
@@ -504,8 +504,8 @@ function requireNative() {
|
|
|
504
504
|
try {
|
|
505
505
|
const binding = require('@atbash/sdk-openharmony-x64')
|
|
506
506
|
const bindingPackageVersion = require('@atbash/sdk-openharmony-x64/package.json').version
|
|
507
|
-
if (bindingPackageVersion !== '0.
|
|
508
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
507
|
+
if (bindingPackageVersion !== '0.19.1-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
508
|
+
throw new Error(`Native binding package version mismatch, expected 0.19.1-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
509
509
|
}
|
|
510
510
|
return binding
|
|
511
511
|
} catch (e) {
|
|
@@ -520,8 +520,8 @@ function requireNative() {
|
|
|
520
520
|
try {
|
|
521
521
|
const binding = require('@atbash/sdk-openharmony-arm')
|
|
522
522
|
const bindingPackageVersion = require('@atbash/sdk-openharmony-arm/package.json').version
|
|
523
|
-
if (bindingPackageVersion !== '0.
|
|
524
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
523
|
+
if (bindingPackageVersion !== '0.19.1-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
524
|
+
throw new Error(`Native binding package version mismatch, expected 0.19.1-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
525
525
|
}
|
|
526
526
|
return binding
|
|
527
527
|
} catch (e) {
|
|
@@ -661,8 +661,8 @@ if (!nativeBinding || forceWasi) {
|
|
|
661
661
|
if (!candidateFailed) {
|
|
662
662
|
if (process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
663
663
|
const bindingPackageVersion = require('@atbash/sdk-wasm32-wasi/package.json').version
|
|
664
|
-
if (bindingPackageVersion !== '0.
|
|
665
|
-
throw new Error(`WASI binding package version mismatch, expected 0.
|
|
664
|
+
if (bindingPackageVersion !== '0.19.1-dev.0') {
|
|
665
|
+
throw new Error(`WASI binding package version mismatch, expected 0.19.1-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
666
666
|
}
|
|
667
667
|
}
|
|
668
668
|
wasiBinding = require('@atbash/sdk-wasm32-wasi')
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atbash/sdk",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.1-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",
|
|
@@ -95,10 +95,10 @@
|
|
|
95
95
|
"typescript-eslint": "^8.62.1"
|
|
96
96
|
},
|
|
97
97
|
"optionalDependencies": {
|
|
98
|
-
"@atbash/sdk-linux-x64-gnu": "0.19.
|
|
99
|
-
"@atbash/sdk-linux-arm64-gnu": "0.19.
|
|
100
|
-
"@atbash/sdk-linux-x64-musl": "0.19.
|
|
101
|
-
"@atbash/sdk-darwin-arm64": "0.19.
|
|
102
|
-
"@atbash/sdk-win32-x64-msvc": "0.19.
|
|
98
|
+
"@atbash/sdk-linux-x64-gnu": "0.19.1-dev.0",
|
|
99
|
+
"@atbash/sdk-linux-arm64-gnu": "0.19.1-dev.0",
|
|
100
|
+
"@atbash/sdk-linux-x64-musl": "0.19.1-dev.0",
|
|
101
|
+
"@atbash/sdk-darwin-arm64": "0.19.1-dev.0",
|
|
102
|
+
"@atbash/sdk-win32-x64-msvc": "0.19.1-dev.0"
|
|
103
103
|
}
|
|
104
104
|
}
|