@hasna/switcher 0.2.19 → 0.2.20
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/claude-desktop.js +98 -96
- package/dist/claude-user-settings.d.ts +7 -2
- package/dist/cli/index.js +166 -53
- package/dist/harnesses.d.ts +8 -0
- package/dist/index.js +159 -106
- package/dist/launcher.d.ts +34 -0
- package/dist/mcp/index.js +166 -111
- package/dist/native-state.d.ts +11 -1
- package/dist/private-directory.d.ts +3 -0
- package/dist/runtime.d.ts +1 -1
- package/dist/sdk.js +159 -106
- package/dist/serve/index.js +2 -2
- package/hasna.contract.json +1 -1
- package/openapi.json +1 -1
- package/package.json +2 -2
package/dist/sdk.js
CHANGED
|
@@ -13,7 +13,7 @@ var __export = (target, all) => {
|
|
|
13
13
|
});
|
|
14
14
|
};
|
|
15
15
|
|
|
16
|
-
// node_modules/zod-v4/v4/classic/external.js
|
|
16
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/classic/external.js
|
|
17
17
|
var exports_external = {};
|
|
18
18
|
__export(exports_external, {
|
|
19
19
|
xor: () => xor,
|
|
@@ -276,7 +276,7 @@ __export(exports_external, {
|
|
|
276
276
|
$brand: () => $brand
|
|
277
277
|
});
|
|
278
278
|
|
|
279
|
-
// node_modules/zod-v4/v4/core/index.js
|
|
279
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/core/index.js
|
|
280
280
|
var exports_core2 = {};
|
|
281
281
|
__export(exports_core2, {
|
|
282
282
|
withParser: () => withParser,
|
|
@@ -593,7 +593,7 @@ __export(exports_core2, {
|
|
|
593
593
|
$ZodAny: () => $ZodAny
|
|
594
594
|
});
|
|
595
595
|
|
|
596
|
-
// node_modules/zod-v4/v4/core/util.js
|
|
596
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/core/util.js
|
|
597
597
|
var exports_util = {};
|
|
598
598
|
__export(exports_util, {
|
|
599
599
|
unwrapMessage: () => unwrapMessage,
|
|
@@ -1442,7 +1442,7 @@ function constantCatch(value) {
|
|
|
1442
1442
|
return fn;
|
|
1443
1443
|
}
|
|
1444
1444
|
|
|
1445
|
-
// node_modules/zod-v4/v4/core/core.js
|
|
1445
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/core/core.js
|
|
1446
1446
|
var _a;
|
|
1447
1447
|
var NEVER = /* @__PURE__ */ Object.freeze({
|
|
1448
1448
|
status: "aborted"
|
|
@@ -1565,7 +1565,7 @@ function config(newConfig) {
|
|
|
1565
1565
|
Object.assign(globalConfig, newConfig);
|
|
1566
1566
|
return globalConfig;
|
|
1567
1567
|
}
|
|
1568
|
-
// node_modules/zod-v4/v4/core/errors.js
|
|
1568
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/core/errors.js
|
|
1569
1569
|
function _getMessage() {
|
|
1570
1570
|
const internals = this._zod;
|
|
1571
1571
|
internals.message ?? (internals.message = JSON.stringify(internals.def, jsonStringifyReplacer, 2));
|
|
@@ -1758,7 +1758,7 @@ function prettifyError(error) {
|
|
|
1758
1758
|
`);
|
|
1759
1759
|
}
|
|
1760
1760
|
|
|
1761
|
-
// node_modules/zod-v4/v4/core/parse.js
|
|
1761
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/core/parse.js
|
|
1762
1762
|
function finalizeParams(callee, params) {
|
|
1763
1763
|
return { callee: params?.callee ?? callee, Err: params?.Err };
|
|
1764
1764
|
}
|
|
@@ -1917,7 +1917,7 @@ var _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
1917
1917
|
return _safeParseAsync(_Err)(schema, value, _ctx);
|
|
1918
1918
|
};
|
|
1919
1919
|
var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync($ZodRealError);
|
|
1920
|
-
// node_modules/zod-v4/v4/core/regexes.js
|
|
1920
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/core/regexes.js
|
|
1921
1921
|
var exports_regexes = {};
|
|
1922
1922
|
__export(exports_regexes, {
|
|
1923
1923
|
xid: () => xid,
|
|
@@ -2089,7 +2089,7 @@ var sha512_hex = /^[0-9a-fA-F]{128}$/;
|
|
|
2089
2089
|
var sha512_base64 = /* @__PURE__ */ fixedBase64(86, "==");
|
|
2090
2090
|
var sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
|
|
2091
2091
|
|
|
2092
|
-
// node_modules/zod-v4/v4/core/checks.js
|
|
2092
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/core/checks.js
|
|
2093
2093
|
var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
2094
2094
|
var _a2;
|
|
2095
2095
|
inst._zod ?? (inst._zod = {});
|
|
@@ -2563,7 +2563,7 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
|
|
|
2563
2563
|
};
|
|
2564
2564
|
});
|
|
2565
2565
|
|
|
2566
|
-
// node_modules/zod-v4/v4/core/doc.js
|
|
2566
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/core/doc.js
|
|
2567
2567
|
class Doc {
|
|
2568
2568
|
constructor(args = [], closed = {}) {
|
|
2569
2569
|
this.content = [];
|
|
@@ -2605,14 +2605,14 @@ ${content.join(`
|
|
|
2605
2605
|
}
|
|
2606
2606
|
}
|
|
2607
2607
|
|
|
2608
|
-
// node_modules/zod-v4/v4/core/versions.js
|
|
2608
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/core/versions.js
|
|
2609
2609
|
var version = {
|
|
2610
2610
|
major: 4,
|
|
2611
2611
|
minor: 6,
|
|
2612
2612
|
patch: 7
|
|
2613
2613
|
};
|
|
2614
2614
|
|
|
2615
|
-
// node_modules/zod-v4/v4/core/schemas.js
|
|
2615
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/core/schemas.js
|
|
2616
2616
|
var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
2617
2617
|
var _a2;
|
|
2618
2618
|
inst ?? (inst = {});
|
|
@@ -5041,7 +5041,7 @@ function handleRefineResult(result, payload, input, inst) {
|
|
|
5041
5041
|
payload.issues.push(issue(_iss));
|
|
5042
5042
|
}
|
|
5043
5043
|
}
|
|
5044
|
-
// node_modules/zod-v4/v4/core/memoizer.js
|
|
5044
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/core/memoizer.js
|
|
5045
5045
|
class $ZodCyclicError extends Error {
|
|
5046
5046
|
constructor() {
|
|
5047
5047
|
super(`Cannot parse a reference cycle that closes through a transform`);
|
|
@@ -5313,7 +5313,7 @@ function isBackEdge(ctx, value) {
|
|
|
5313
5313
|
const backEdges = ctx[STATE]?.backEdges;
|
|
5314
5314
|
return backEdges !== undefined && isRef(value) && backEdges.has(value);
|
|
5315
5315
|
}
|
|
5316
|
-
// node_modules/zod-v4/v4/locales/index.js
|
|
5316
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/locales/index.js
|
|
5317
5317
|
var exports_locales = {};
|
|
5318
5318
|
__export(exports_locales, {
|
|
5319
5319
|
zhTW: () => zh_TW_default,
|
|
@@ -5381,7 +5381,7 @@ __export(exports_locales, {
|
|
|
5381
5381
|
ar: () => ar_default
|
|
5382
5382
|
});
|
|
5383
5383
|
|
|
5384
|
-
// node_modules/zod-v4/v4/locales/ar.js
|
|
5384
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/locales/ar.js
|
|
5385
5385
|
var error = () => {
|
|
5386
5386
|
const Sizable = {
|
|
5387
5387
|
string: { unit: "حرف", verb: "أن يحوي" },
|
|
@@ -5492,7 +5492,7 @@ function ar_default() {
|
|
|
5492
5492
|
localeError: error()
|
|
5493
5493
|
};
|
|
5494
5494
|
}
|
|
5495
|
-
// node_modules/zod-v4/v4/locales/az.js
|
|
5495
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/locales/az.js
|
|
5496
5496
|
var error2 = () => {
|
|
5497
5497
|
const Sizable = {
|
|
5498
5498
|
string: { unit: "simvol", verb: "olmalıdır" },
|
|
@@ -5602,7 +5602,7 @@ function az_default() {
|
|
|
5602
5602
|
localeError: error2()
|
|
5603
5603
|
};
|
|
5604
5604
|
}
|
|
5605
|
-
// node_modules/zod-v4/v4/locales/be.js
|
|
5605
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/locales/be.js
|
|
5606
5606
|
function getBelarusianPlural(count, one, few, many) {
|
|
5607
5607
|
const absCount = Math.abs(count);
|
|
5608
5608
|
const lastDigit = absCount % 10;
|
|
@@ -5770,7 +5770,7 @@ function be_default() {
|
|
|
5770
5770
|
localeError: error3()
|
|
5771
5771
|
};
|
|
5772
5772
|
}
|
|
5773
|
-
// node_modules/zod-v4/v4/locales/bg.js
|
|
5773
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/locales/bg.js
|
|
5774
5774
|
var error4 = () => {
|
|
5775
5775
|
const Sizable = {
|
|
5776
5776
|
string: { unit: "символа", verb: "да съдържа" },
|
|
@@ -5895,7 +5895,7 @@ function bg_default() {
|
|
|
5895
5895
|
localeError: error4()
|
|
5896
5896
|
};
|
|
5897
5897
|
}
|
|
5898
|
-
// node_modules/zod-v4/v4/locales/bn.js
|
|
5898
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/locales/bn.js
|
|
5899
5899
|
var error5 = () => {
|
|
5900
5900
|
const Sizable = {
|
|
5901
5901
|
string: { unit: "অক্ষর", verb: "থাকতে হবে" },
|
|
@@ -6008,7 +6008,7 @@ function bn_default() {
|
|
|
6008
6008
|
localeError: error5()
|
|
6009
6009
|
};
|
|
6010
6010
|
}
|
|
6011
|
-
// node_modules/zod-v4/v4/locales/ca.js
|
|
6011
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/locales/ca.js
|
|
6012
6012
|
var error6 = () => {
|
|
6013
6013
|
const Sizable = {
|
|
6014
6014
|
string: { unit: "caràcters", verb: "contenir" },
|
|
@@ -6120,7 +6120,7 @@ function ca_default() {
|
|
|
6120
6120
|
localeError: error6()
|
|
6121
6121
|
};
|
|
6122
6122
|
}
|
|
6123
|
-
// node_modules/zod-v4/v4/locales/ckb.js
|
|
6123
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/locales/ckb.js
|
|
6124
6124
|
var error7 = () => {
|
|
6125
6125
|
const Sizable = {
|
|
6126
6126
|
string: { unit: "پیت", verb: "بێت" },
|
|
@@ -6252,7 +6252,7 @@ function ckb_default() {
|
|
|
6252
6252
|
localeError: error7()
|
|
6253
6253
|
};
|
|
6254
6254
|
}
|
|
6255
|
-
// node_modules/zod-v4/v4/locales/cs.js
|
|
6255
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/locales/cs.js
|
|
6256
6256
|
var error8 = () => {
|
|
6257
6257
|
const Sizable = {
|
|
6258
6258
|
string: { unit: "znaků", verb: "mít" },
|
|
@@ -6368,7 +6368,7 @@ function cs_default() {
|
|
|
6368
6368
|
localeError: error8()
|
|
6369
6369
|
};
|
|
6370
6370
|
}
|
|
6371
|
-
// node_modules/zod-v4/v4/locales/da.js
|
|
6371
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/locales/da.js
|
|
6372
6372
|
var error9 = () => {
|
|
6373
6373
|
const Sizable = {
|
|
6374
6374
|
string: { unit: "tegn", verb: "havde" },
|
|
@@ -6488,7 +6488,7 @@ function da_default() {
|
|
|
6488
6488
|
localeError: error9()
|
|
6489
6489
|
};
|
|
6490
6490
|
}
|
|
6491
|
-
// node_modules/zod-v4/v4/locales/de.js
|
|
6491
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/locales/de.js
|
|
6492
6492
|
var error10 = () => {
|
|
6493
6493
|
const Sizable = {
|
|
6494
6494
|
string: { unit: "Zeichen", verb: "zu haben" },
|
|
@@ -6601,7 +6601,7 @@ function de_default() {
|
|
|
6601
6601
|
localeError: error10()
|
|
6602
6602
|
};
|
|
6603
6603
|
}
|
|
6604
|
-
// node_modules/zod-v4/v4/locales/el.js
|
|
6604
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/locales/el.js
|
|
6605
6605
|
var error11 = () => {
|
|
6606
6606
|
const Sizable = {
|
|
6607
6607
|
string: { unit: "χαρακτήρες", verb: "να έχει" },
|
|
@@ -6713,7 +6713,7 @@ function el_default() {
|
|
|
6713
6713
|
localeError: error11()
|
|
6714
6714
|
};
|
|
6715
6715
|
}
|
|
6716
|
-
// node_modules/zod-v4/v4/locales/en.js
|
|
6716
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/locales/en.js
|
|
6717
6717
|
var error12 = () => {
|
|
6718
6718
|
const Sizable = {
|
|
6719
6719
|
string: { unit: "characters", verb: "to have" },
|
|
@@ -6835,7 +6835,7 @@ function en_default() {
|
|
|
6835
6835
|
localeError: error12()
|
|
6836
6836
|
};
|
|
6837
6837
|
}
|
|
6838
|
-
// node_modules/zod-v4/v4/locales/eo.js
|
|
6838
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/locales/eo.js
|
|
6839
6839
|
var error13 = () => {
|
|
6840
6840
|
const Sizable = {
|
|
6841
6841
|
string: { unit: "karaktrojn", verb: "havi" },
|
|
@@ -6949,7 +6949,7 @@ function eo_default() {
|
|
|
6949
6949
|
localeError: error13()
|
|
6950
6950
|
};
|
|
6951
6951
|
}
|
|
6952
|
-
// node_modules/zod-v4/v4/locales/es.js
|
|
6952
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/locales/es.js
|
|
6953
6953
|
var error14 = () => {
|
|
6954
6954
|
const Sizable = {
|
|
6955
6955
|
string: { unit: "caracteres", verb: "tener" },
|
|
@@ -7085,7 +7085,7 @@ function es_default() {
|
|
|
7085
7085
|
localeError: error14()
|
|
7086
7086
|
};
|
|
7087
7087
|
}
|
|
7088
|
-
// node_modules/zod-v4/v4/locales/fa.js
|
|
7088
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/locales/fa.js
|
|
7089
7089
|
var error15 = () => {
|
|
7090
7090
|
const Sizable = {
|
|
7091
7091
|
string: { unit: "کاراکتر", verb: "داشته باشد" },
|
|
@@ -7204,7 +7204,7 @@ function fa_default() {
|
|
|
7204
7204
|
localeError: error15()
|
|
7205
7205
|
};
|
|
7206
7206
|
}
|
|
7207
|
-
// node_modules/zod-v4/v4/locales/fi.js
|
|
7207
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/locales/fi.js
|
|
7208
7208
|
var error16 = () => {
|
|
7209
7209
|
const Sizable = {
|
|
7210
7210
|
string: { unit: "merkkiä", subject: "merkkijonon" },
|
|
@@ -7321,7 +7321,7 @@ function fi_default() {
|
|
|
7321
7321
|
localeError: error16()
|
|
7322
7322
|
};
|
|
7323
7323
|
}
|
|
7324
|
-
// node_modules/zod-v4/v4/locales/fr.js
|
|
7324
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/locales/fr.js
|
|
7325
7325
|
var error17 = () => {
|
|
7326
7326
|
const Sizable = {
|
|
7327
7327
|
string: { unit: "caractères", verb: "avoir" },
|
|
@@ -7450,7 +7450,7 @@ function fr_default() {
|
|
|
7450
7450
|
localeError: error17()
|
|
7451
7451
|
};
|
|
7452
7452
|
}
|
|
7453
|
-
// node_modules/zod-v4/v4/locales/fr-CA.js
|
|
7453
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/locales/fr-CA.js
|
|
7454
7454
|
var error18 = () => {
|
|
7455
7455
|
const Sizable = {
|
|
7456
7456
|
string: { unit: "caractères", verb: "avoir" },
|
|
@@ -7562,7 +7562,7 @@ function fr_CA_default() {
|
|
|
7562
7562
|
localeError: error18()
|
|
7563
7563
|
};
|
|
7564
7564
|
}
|
|
7565
|
-
// node_modules/zod-v4/v4/locales/gu.js
|
|
7565
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/locales/gu.js
|
|
7566
7566
|
var error19 = () => {
|
|
7567
7567
|
const Sizable = {
|
|
7568
7568
|
string: { unit: "અક્ષર", verb: "હોવા જોઈએ" },
|
|
@@ -7675,7 +7675,7 @@ function gu_default() {
|
|
|
7675
7675
|
localeError: error19()
|
|
7676
7676
|
};
|
|
7677
7677
|
}
|
|
7678
|
-
// node_modules/zod-v4/v4/locales/he.js
|
|
7678
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/locales/he.js
|
|
7679
7679
|
var error20 = () => {
|
|
7680
7680
|
const TypeNames = {
|
|
7681
7681
|
string: { label: "מחרוזת", gender: "f" },
|
|
@@ -7875,7 +7875,7 @@ function he_default() {
|
|
|
7875
7875
|
localeError: error20()
|
|
7876
7876
|
};
|
|
7877
7877
|
}
|
|
7878
|
-
// node_modules/zod-v4/v4/locales/hi.js
|
|
7878
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/locales/hi.js
|
|
7879
7879
|
var error21 = () => {
|
|
7880
7880
|
const Sizable = {
|
|
7881
7881
|
string: { unit: "अक्षर", verb: "रखने के लिए" },
|
|
@@ -7986,7 +7986,7 @@ function hi_default() {
|
|
|
7986
7986
|
localeError: error21()
|
|
7987
7987
|
};
|
|
7988
7988
|
}
|
|
7989
|
-
// node_modules/zod-v4/v4/locales/hr.js
|
|
7989
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/locales/hr.js
|
|
7990
7990
|
var error22 = () => {
|
|
7991
7991
|
const Sizable = {
|
|
7992
7992
|
string: { unit: "znakova", verb: "imati" },
|
|
@@ -8112,7 +8112,7 @@ function hr_default() {
|
|
|
8112
8112
|
localeError: error22()
|
|
8113
8113
|
};
|
|
8114
8114
|
}
|
|
8115
|
-
// node_modules/zod-v4/v4/locales/hu.js
|
|
8115
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/locales/hu.js
|
|
8116
8116
|
var error23 = () => {
|
|
8117
8117
|
const Sizable = {
|
|
8118
8118
|
string: { unit: "karakter", verb: "legyen" },
|
|
@@ -8225,7 +8225,7 @@ function hu_default() {
|
|
|
8225
8225
|
localeError: error23()
|
|
8226
8226
|
};
|
|
8227
8227
|
}
|
|
8228
|
-
// node_modules/zod-v4/v4/locales/hy.js
|
|
8228
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/locales/hy.js
|
|
8229
8229
|
function getArmenianPlural(count, one, many) {
|
|
8230
8230
|
return Math.abs(count) === 1 ? one : many;
|
|
8231
8231
|
}
|
|
@@ -8383,7 +8383,7 @@ function hy_default() {
|
|
|
8383
8383
|
localeError: error24()
|
|
8384
8384
|
};
|
|
8385
8385
|
}
|
|
8386
|
-
// node_modules/zod-v4/v4/locales/id.js
|
|
8386
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/locales/id.js
|
|
8387
8387
|
var error25 = () => {
|
|
8388
8388
|
const Sizable = {
|
|
8389
8389
|
string: { unit: "karakter", verb: "memiliki" },
|
|
@@ -8494,7 +8494,7 @@ function id_default() {
|
|
|
8494
8494
|
localeError: error25()
|
|
8495
8495
|
};
|
|
8496
8496
|
}
|
|
8497
|
-
// node_modules/zod-v4/v4/locales/is.js
|
|
8497
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/locales/is.js
|
|
8498
8498
|
var error26 = () => {
|
|
8499
8499
|
const Sizable = {
|
|
8500
8500
|
string: { unit: "stafi", verb: "að hafa" },
|
|
@@ -8608,7 +8608,7 @@ function is_default() {
|
|
|
8608
8608
|
localeError: error26()
|
|
8609
8609
|
};
|
|
8610
8610
|
}
|
|
8611
|
-
// node_modules/zod-v4/v4/locales/it.js
|
|
8611
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/locales/it.js
|
|
8612
8612
|
var error27 = () => {
|
|
8613
8613
|
const Sizable = {
|
|
8614
8614
|
string: { unit: "caratteri", verb: "avere" },
|
|
@@ -8721,7 +8721,7 @@ function it_default() {
|
|
|
8721
8721
|
localeError: error27()
|
|
8722
8722
|
};
|
|
8723
8723
|
}
|
|
8724
|
-
// node_modules/zod-v4/v4/locales/ja.js
|
|
8724
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/locales/ja.js
|
|
8725
8725
|
var error28 = () => {
|
|
8726
8726
|
const Sizable = {
|
|
8727
8727
|
string: { unit: "文字", verb: "である" },
|
|
@@ -8833,7 +8833,7 @@ function ja_default() {
|
|
|
8833
8833
|
localeError: error28()
|
|
8834
8834
|
};
|
|
8835
8835
|
}
|
|
8836
|
-
// node_modules/zod-v4/v4/locales/ka.js
|
|
8836
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/locales/ka.js
|
|
8837
8837
|
var error29 = () => {
|
|
8838
8838
|
const Sizable = {
|
|
8839
8839
|
string: { unit: "სიმბოლო", verb: "უნდა შეიცავდეს" },
|
|
@@ -8950,7 +8950,7 @@ function ka_default() {
|
|
|
8950
8950
|
localeError: error29()
|
|
8951
8951
|
};
|
|
8952
8952
|
}
|
|
8953
|
-
// node_modules/zod-v4/v4/locales/km.js
|
|
8953
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/locales/km.js
|
|
8954
8954
|
var error30 = () => {
|
|
8955
8955
|
const Sizable = {
|
|
8956
8956
|
string: { unit: "តួអក្សរ", verb: "គួរមាន" },
|
|
@@ -9066,11 +9066,11 @@ function km_default() {
|
|
|
9066
9066
|
};
|
|
9067
9067
|
}
|
|
9068
9068
|
|
|
9069
|
-
// node_modules/zod-v4/v4/locales/kh.js
|
|
9069
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/locales/kh.js
|
|
9070
9070
|
function kh_default() {
|
|
9071
9071
|
return km_default();
|
|
9072
9072
|
}
|
|
9073
|
-
// node_modules/zod-v4/v4/locales/kn.js
|
|
9073
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/locales/kn.js
|
|
9074
9074
|
var error31 = () => {
|
|
9075
9075
|
const Sizable = {
|
|
9076
9076
|
string: { unit: "ಅಕ್ಷರಗಳು", verb: "ಹೊಂದಲು" },
|
|
@@ -9183,7 +9183,7 @@ function kn_default() {
|
|
|
9183
9183
|
localeError: error31()
|
|
9184
9184
|
};
|
|
9185
9185
|
}
|
|
9186
|
-
// node_modules/zod-v4/v4/locales/ko.js
|
|
9186
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/locales/ko.js
|
|
9187
9187
|
var error32 = () => {
|
|
9188
9188
|
const Sizable = {
|
|
9189
9189
|
string: { unit: "문자", verb: "to have" },
|
|
@@ -9299,7 +9299,7 @@ function ko_default() {
|
|
|
9299
9299
|
localeError: error32()
|
|
9300
9300
|
};
|
|
9301
9301
|
}
|
|
9302
|
-
// node_modules/zod-v4/v4/locales/lt.js
|
|
9302
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/locales/lt.js
|
|
9303
9303
|
var capitalizeFirstCharacter = (text) => {
|
|
9304
9304
|
return text.charAt(0).toUpperCase() + text.slice(1);
|
|
9305
9305
|
};
|
|
@@ -9506,7 +9506,7 @@ function lt_default() {
|
|
|
9506
9506
|
localeError: error33()
|
|
9507
9507
|
};
|
|
9508
9508
|
}
|
|
9509
|
-
// node_modules/zod-v4/v4/locales/mk.js
|
|
9509
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/locales/mk.js
|
|
9510
9510
|
var error34 = () => {
|
|
9511
9511
|
const Sizable = {
|
|
9512
9512
|
string: { unit: "знаци", verb: "да имаат" },
|
|
@@ -9620,7 +9620,7 @@ function mk_default() {
|
|
|
9620
9620
|
localeError: error34()
|
|
9621
9621
|
};
|
|
9622
9622
|
}
|
|
9623
|
-
// node_modules/zod-v4/v4/locales/ms.js
|
|
9623
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/locales/ms.js
|
|
9624
9624
|
var error35 = () => {
|
|
9625
9625
|
const Sizable = {
|
|
9626
9626
|
string: { unit: "aksara", verb: "mempunyai" },
|
|
@@ -9732,7 +9732,7 @@ function ms_default() {
|
|
|
9732
9732
|
localeError: error35()
|
|
9733
9733
|
};
|
|
9734
9734
|
}
|
|
9735
|
-
// node_modules/zod-v4/v4/locales/ne.js
|
|
9735
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/locales/ne.js
|
|
9736
9736
|
var error36 = () => {
|
|
9737
9737
|
const Sizable = {
|
|
9738
9738
|
string: { unit: "अक्षर", verb: "हुनुपर्छ" },
|
|
@@ -9843,7 +9843,7 @@ function ne_default() {
|
|
|
9843
9843
|
localeError: error36()
|
|
9844
9844
|
};
|
|
9845
9845
|
}
|
|
9846
|
-
// node_modules/zod-v4/v4/locales/nl.js
|
|
9846
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/locales/nl.js
|
|
9847
9847
|
var error37 = () => {
|
|
9848
9848
|
const Sizable = {
|
|
9849
9849
|
string: { unit: "tekens", verb: "heeft" },
|
|
@@ -9958,7 +9958,7 @@ function nl_default() {
|
|
|
9958
9958
|
localeError: error37()
|
|
9959
9959
|
};
|
|
9960
9960
|
}
|
|
9961
|
-
// node_modules/zod-v4/v4/locales/nn.js
|
|
9961
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/locales/nn.js
|
|
9962
9962
|
var error38 = () => {
|
|
9963
9963
|
const Sizable = {
|
|
9964
9964
|
string: { unit: "teikn", verb: "å ha" },
|
|
@@ -10071,7 +10071,7 @@ function nn_default() {
|
|
|
10071
10071
|
localeError: error38()
|
|
10072
10072
|
};
|
|
10073
10073
|
}
|
|
10074
|
-
// node_modules/zod-v4/v4/locales/no.js
|
|
10074
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/locales/no.js
|
|
10075
10075
|
var error39 = () => {
|
|
10076
10076
|
const Sizable = {
|
|
10077
10077
|
string: { unit: "tegn", verb: "å ha" },
|
|
@@ -10184,7 +10184,7 @@ function no_default() {
|
|
|
10184
10184
|
localeError: error39()
|
|
10185
10185
|
};
|
|
10186
10186
|
}
|
|
10187
|
-
// node_modules/zod-v4/v4/locales/ota.js
|
|
10187
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/locales/ota.js
|
|
10188
10188
|
var error40 = () => {
|
|
10189
10189
|
const Sizable = {
|
|
10190
10190
|
string: { unit: "harf", verb: "olmalıdır" },
|
|
@@ -10298,7 +10298,7 @@ function ota_default() {
|
|
|
10298
10298
|
localeError: error40()
|
|
10299
10299
|
};
|
|
10300
10300
|
}
|
|
10301
|
-
// node_modules/zod-v4/v4/locales/ps.js
|
|
10301
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/locales/ps.js
|
|
10302
10302
|
var error41 = () => {
|
|
10303
10303
|
const Sizable = {
|
|
10304
10304
|
string: { unit: "توکي", verb: "ولري" },
|
|
@@ -10417,7 +10417,7 @@ function ps_default() {
|
|
|
10417
10417
|
localeError: error41()
|
|
10418
10418
|
};
|
|
10419
10419
|
}
|
|
10420
|
-
// node_modules/zod-v4/v4/locales/pl.js
|
|
10420
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/locales/pl.js
|
|
10421
10421
|
var error42 = () => {
|
|
10422
10422
|
const Sizable = {
|
|
10423
10423
|
string: { unit: "znaków", verb: "mieć" },
|
|
@@ -10531,7 +10531,7 @@ function pl_default() {
|
|
|
10531
10531
|
localeError: error42()
|
|
10532
10532
|
};
|
|
10533
10533
|
}
|
|
10534
|
-
// node_modules/zod-v4/v4/locales/pt.js
|
|
10534
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/locales/pt.js
|
|
10535
10535
|
var error43 = () => {
|
|
10536
10536
|
const Sizable = {
|
|
10537
10537
|
string: { unit: "caracteres" },
|
|
@@ -10673,7 +10673,7 @@ function pt_default() {
|
|
|
10673
10673
|
localeError: error43()
|
|
10674
10674
|
};
|
|
10675
10675
|
}
|
|
10676
|
-
// node_modules/zod-v4/v4/locales/pt-BR.js
|
|
10676
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/locales/pt-BR.js
|
|
10677
10677
|
var error44 = () => {
|
|
10678
10678
|
const Sizable = {
|
|
10679
10679
|
string: { unit: "caracteres" },
|
|
@@ -10816,7 +10816,7 @@ function pt_BR_default() {
|
|
|
10816
10816
|
localeError: error44()
|
|
10817
10817
|
};
|
|
10818
10818
|
}
|
|
10819
|
-
// node_modules/zod-v4/v4/locales/ro.js
|
|
10819
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/locales/ro.js
|
|
10820
10820
|
var error45 = () => {
|
|
10821
10821
|
const Sizable = {
|
|
10822
10822
|
string: { unit: "caractere", verb: "să aibă" },
|
|
@@ -10938,7 +10938,7 @@ function ro_default() {
|
|
|
10938
10938
|
localeError: error45()
|
|
10939
10939
|
};
|
|
10940
10940
|
}
|
|
10941
|
-
// node_modules/zod-v4/v4/locales/ru.js
|
|
10941
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/locales/ru.js
|
|
10942
10942
|
function getRussianPlural(count, one, few, many) {
|
|
10943
10943
|
const absCount = Math.abs(count);
|
|
10944
10944
|
const lastDigit = absCount % 10;
|
|
@@ -11106,7 +11106,7 @@ function ru_default() {
|
|
|
11106
11106
|
localeError: error46()
|
|
11107
11107
|
};
|
|
11108
11108
|
}
|
|
11109
|
-
// node_modules/zod-v4/v4/locales/sk.js
|
|
11109
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/locales/sk.js
|
|
11110
11110
|
var error47 = () => {
|
|
11111
11111
|
const Sizable = {
|
|
11112
11112
|
string: { unit: "znakov", verb: "mať" },
|
|
@@ -11222,7 +11222,7 @@ function sk_default() {
|
|
|
11222
11222
|
localeError: error47()
|
|
11223
11223
|
};
|
|
11224
11224
|
}
|
|
11225
|
-
// node_modules/zod-v4/v4/locales/sl.js
|
|
11225
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/locales/sl.js
|
|
11226
11226
|
var error48 = () => {
|
|
11227
11227
|
const Sizable = {
|
|
11228
11228
|
string: { unit: "znakov", verb: "imeti" },
|
|
@@ -11336,7 +11336,7 @@ function sl_default() {
|
|
|
11336
11336
|
localeError: error48()
|
|
11337
11337
|
};
|
|
11338
11338
|
}
|
|
11339
|
-
// node_modules/zod-v4/v4/locales/sv.js
|
|
11339
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/locales/sv.js
|
|
11340
11340
|
var error49 = () => {
|
|
11341
11341
|
const Sizable = {
|
|
11342
11342
|
string: { unit: "tecken", verb: "att ha" },
|
|
@@ -11451,7 +11451,7 @@ function sv_default() {
|
|
|
11451
11451
|
localeError: error49()
|
|
11452
11452
|
};
|
|
11453
11453
|
}
|
|
11454
|
-
// node_modules/zod-v4/v4/locales/ta.js
|
|
11454
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/locales/ta.js
|
|
11455
11455
|
var error50 = () => {
|
|
11456
11456
|
const Sizable = {
|
|
11457
11457
|
string: { unit: "எழுத்துக்கள்", verb: "கொண்டிருக்க வேண்டும்" },
|
|
@@ -11566,7 +11566,7 @@ function ta_default() {
|
|
|
11566
11566
|
localeError: error50()
|
|
11567
11567
|
};
|
|
11568
11568
|
}
|
|
11569
|
-
// node_modules/zod-v4/v4/locales/tg.js
|
|
11569
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/locales/tg.js
|
|
11570
11570
|
var error51 = () => {
|
|
11571
11571
|
const Sizable = {
|
|
11572
11572
|
string: { unit: "аломат", verb: "дошта бошад" },
|
|
@@ -11682,7 +11682,7 @@ function tg_default() {
|
|
|
11682
11682
|
localeError: error51()
|
|
11683
11683
|
};
|
|
11684
11684
|
}
|
|
11685
|
-
// node_modules/zod-v4/v4/locales/th.js
|
|
11685
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/locales/th.js
|
|
11686
11686
|
var error52 = () => {
|
|
11687
11687
|
const Sizable = {
|
|
11688
11688
|
string: { unit: "ตัวอักษร", verb: "ควรมี" },
|
|
@@ -11797,7 +11797,7 @@ function th_default() {
|
|
|
11797
11797
|
localeError: error52()
|
|
11798
11798
|
};
|
|
11799
11799
|
}
|
|
11800
|
-
// node_modules/zod-v4/v4/locales/tk.js
|
|
11800
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/locales/tk.js
|
|
11801
11801
|
var error53 = () => {
|
|
11802
11802
|
const Sizable = {
|
|
11803
11803
|
string: { unit: "simwol", verb: "bolmaly" },
|
|
@@ -11904,7 +11904,7 @@ function tk_default() {
|
|
|
11904
11904
|
localeError: error53()
|
|
11905
11905
|
};
|
|
11906
11906
|
}
|
|
11907
|
-
// node_modules/zod-v4/v4/locales/tr.js
|
|
11907
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/locales/tr.js
|
|
11908
11908
|
var error54 = () => {
|
|
11909
11909
|
const Sizable = {
|
|
11910
11910
|
string: { unit: "karakter", verb: "olmalı" },
|
|
@@ -12014,7 +12014,7 @@ function tr_default() {
|
|
|
12014
12014
|
localeError: error54()
|
|
12015
12015
|
};
|
|
12016
12016
|
}
|
|
12017
|
-
// node_modules/zod-v4/v4/locales/uk.js
|
|
12017
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/locales/uk.js
|
|
12018
12018
|
var error55 = () => {
|
|
12019
12019
|
const Sizable = {
|
|
12020
12020
|
string: { unit: "символів", verb: "матиме" },
|
|
@@ -12128,11 +12128,11 @@ function uk_default() {
|
|
|
12128
12128
|
};
|
|
12129
12129
|
}
|
|
12130
12130
|
|
|
12131
|
-
// node_modules/zod-v4/v4/locales/ua.js
|
|
12131
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/locales/ua.js
|
|
12132
12132
|
function ua_default() {
|
|
12133
12133
|
return uk_default();
|
|
12134
12134
|
}
|
|
12135
|
-
// node_modules/zod-v4/v4/locales/ur.js
|
|
12135
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/locales/ur.js
|
|
12136
12136
|
var error56 = () => {
|
|
12137
12137
|
const Sizable = {
|
|
12138
12138
|
string: { unit: "حروف", verb: "ہونا" },
|
|
@@ -12247,7 +12247,7 @@ function ur_default() {
|
|
|
12247
12247
|
localeError: error56()
|
|
12248
12248
|
};
|
|
12249
12249
|
}
|
|
12250
|
-
// node_modules/zod-v4/v4/locales/uz.js
|
|
12250
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/locales/uz.js
|
|
12251
12251
|
var error57 = () => {
|
|
12252
12252
|
const Sizable = {
|
|
12253
12253
|
string: { unit: "belgi", verb: "bo‘lishi kerak" },
|
|
@@ -12360,7 +12360,7 @@ function uz_default() {
|
|
|
12360
12360
|
localeError: error57()
|
|
12361
12361
|
};
|
|
12362
12362
|
}
|
|
12363
|
-
// node_modules/zod-v4/v4/locales/vi.js
|
|
12363
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/locales/vi.js
|
|
12364
12364
|
var error58 = () => {
|
|
12365
12365
|
const Sizable = {
|
|
12366
12366
|
string: { unit: "ký tự", verb: "có" },
|
|
@@ -12473,7 +12473,7 @@ function vi_default() {
|
|
|
12473
12473
|
localeError: error58()
|
|
12474
12474
|
};
|
|
12475
12475
|
}
|
|
12476
|
-
// node_modules/zod-v4/v4/locales/zh-CN.js
|
|
12476
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/locales/zh-CN.js
|
|
12477
12477
|
var error59 = () => {
|
|
12478
12478
|
const Sizable = {
|
|
12479
12479
|
string: { unit: "字符", verb: "包含" },
|
|
@@ -12587,7 +12587,7 @@ function zh_CN_default() {
|
|
|
12587
12587
|
localeError: error59()
|
|
12588
12588
|
};
|
|
12589
12589
|
}
|
|
12590
|
-
// node_modules/zod-v4/v4/locales/zh-TW.js
|
|
12590
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/locales/zh-TW.js
|
|
12591
12591
|
var error60 = () => {
|
|
12592
12592
|
const Sizable = {
|
|
12593
12593
|
string: { unit: "字元", verb: "擁有" },
|
|
@@ -12699,7 +12699,7 @@ function zh_TW_default() {
|
|
|
12699
12699
|
localeError: error60()
|
|
12700
12700
|
};
|
|
12701
12701
|
}
|
|
12702
|
-
// node_modules/zod-v4/v4/locales/yo.js
|
|
12702
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/locales/yo.js
|
|
12703
12703
|
var error61 = () => {
|
|
12704
12704
|
const Sizable = {
|
|
12705
12705
|
string: { unit: "àmi", verb: "ní" },
|
|
@@ -12811,7 +12811,7 @@ function yo_default() {
|
|
|
12811
12811
|
localeError: error61()
|
|
12812
12812
|
};
|
|
12813
12813
|
}
|
|
12814
|
-
// node_modules/zod-v4/v4/core/registries.js
|
|
12814
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/core/registries.js
|
|
12815
12815
|
var _a2;
|
|
12816
12816
|
var $output = /* @__PURE__ */ Symbol("ZodOutput");
|
|
12817
12817
|
var $input = /* @__PURE__ */ Symbol("ZodInput");
|
|
@@ -12861,7 +12861,7 @@ function registry() {
|
|
|
12861
12861
|
}
|
|
12862
12862
|
(_a2 = globalThis).__zod_globalRegistry ?? (_a2.__zod_globalRegistry = registry());
|
|
12863
12863
|
var globalRegistry = globalThis.__zod_globalRegistry;
|
|
12864
|
-
// node_modules/zod-v4/v4/core/compile.js
|
|
12864
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/core/compile.js
|
|
12865
12865
|
var INVALID = Symbol.for("zod.compile.invalid");
|
|
12866
12866
|
var FALLBACK_FLAG = Symbol.for("zod.compile.fallback");
|
|
12867
12867
|
|
|
@@ -14467,7 +14467,7 @@ function generateTransformCheck(doc, ctx, schema, accessor) {
|
|
|
14467
14467
|
}
|
|
14468
14468
|
return accessor;
|
|
14469
14469
|
}
|
|
14470
|
-
// node_modules/zod-v4/v4/core/api.js
|
|
14470
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/core/api.js
|
|
14471
14471
|
function snapshotChecks(def) {
|
|
14472
14472
|
if (def.checks)
|
|
14473
14473
|
def.checks = [...def.checks];
|
|
@@ -15404,7 +15404,7 @@ function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
|
|
|
15404
15404
|
const inst = new Class2(def);
|
|
15405
15405
|
return inst;
|
|
15406
15406
|
}
|
|
15407
|
-
// node_modules/zod-v4/v4/core/to-json-schema.js
|
|
15407
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/core/to-json-schema.js
|
|
15408
15408
|
function assignProps(target, ...sources) {
|
|
15409
15409
|
for (const source of sources) {
|
|
15410
15410
|
for (const key of Reflect.ownKeys(source)) {
|
|
@@ -15927,7 +15927,7 @@ var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) =
|
|
|
15927
15927
|
extractDefs(ctx, schema);
|
|
15928
15928
|
return finalize(ctx, schema);
|
|
15929
15929
|
};
|
|
15930
|
-
// node_modules/zod-v4/v4/core/json-schema-processors.js
|
|
15930
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/core/json-schema-processors.js
|
|
15931
15931
|
var narrowMin = (agg, key, value) => {
|
|
15932
15932
|
if (agg[key] === undefined || value > agg[key])
|
|
15933
15933
|
agg[key] = value;
|
|
@@ -16670,7 +16670,7 @@ function toJSONSchema(input, params) {
|
|
|
16670
16670
|
extractDefs(ctx, input);
|
|
16671
16671
|
return finalize(ctx, input);
|
|
16672
16672
|
}
|
|
16673
|
-
// node_modules/zod-v4/v4/core/json-schema-generator.js
|
|
16673
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/core/json-schema-generator.js
|
|
16674
16674
|
class JSONSchemaGenerator {
|
|
16675
16675
|
get metadataRegistry() {
|
|
16676
16676
|
return this.ctx.metadataRegistry;
|
|
@@ -16731,9 +16731,9 @@ class JSONSchemaGenerator {
|
|
|
16731
16731
|
return plainResult;
|
|
16732
16732
|
}
|
|
16733
16733
|
}
|
|
16734
|
-
// node_modules/zod-v4/v4/core/json-schema.js
|
|
16734
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/core/json-schema.js
|
|
16735
16735
|
var exports_json_schema = {};
|
|
16736
|
-
// node_modules/zod-v4/v4/classic/schemas.js
|
|
16736
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/classic/schemas.js
|
|
16737
16737
|
var exports_schemas2 = {};
|
|
16738
16738
|
__export(exports_schemas2, {
|
|
16739
16739
|
xor: () => xor,
|
|
@@ -16914,7 +16914,7 @@ __export(exports_schemas2, {
|
|
|
16914
16914
|
ZodAny: () => ZodAny
|
|
16915
16915
|
});
|
|
16916
16916
|
|
|
16917
|
-
// node_modules/zod-v4/v4/classic/checks.js
|
|
16917
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/classic/checks.js
|
|
16918
16918
|
var exports_checks2 = {};
|
|
16919
16919
|
__export(exports_checks2, {
|
|
16920
16920
|
uppercase: () => _uppercase,
|
|
@@ -16949,7 +16949,7 @@ __export(exports_checks2, {
|
|
|
16949
16949
|
endsWith: () => _endsWith
|
|
16950
16950
|
});
|
|
16951
16951
|
|
|
16952
|
-
// node_modules/zod-v4/v4/classic/errors.js
|
|
16952
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/classic/errors.js
|
|
16953
16953
|
var _installedErrorProtos = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]);
|
|
16954
16954
|
function _lazyMethod(proto, key, make) {
|
|
16955
16955
|
Object.defineProperty(proto, key, {
|
|
@@ -16995,7 +16995,7 @@ var ZodRealError = /* @__PURE__ */ $constructor("ZodError", initializer2, undefi
|
|
|
16995
16995
|
Parent: Error
|
|
16996
16996
|
});
|
|
16997
16997
|
|
|
16998
|
-
// node_modules/zod-v4/v4/classic/parse.js
|
|
16998
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/classic/parse.js
|
|
16999
16999
|
var parse3 = /* @__PURE__ */ _parse(ZodRealError);
|
|
17000
17000
|
var parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError);
|
|
17001
17001
|
var safeParse2 = /* @__PURE__ */ _safeParse(ZodRealError);
|
|
@@ -17009,7 +17009,7 @@ var safeDecode2 = /* @__PURE__ */ _safeDecode(ZodRealError);
|
|
|
17009
17009
|
var safeEncodeAsync2 = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
|
|
17010
17010
|
var safeDecodeAsync2 = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
|
|
17011
17011
|
|
|
17012
|
-
// node_modules/zod-v4/v4/classic/schemas.js
|
|
17012
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/classic/schemas.js
|
|
17013
17013
|
function _ensureDefaultLocale() {
|
|
17014
17014
|
if (!globalConfig.localeError)
|
|
17015
17015
|
config(en_default());
|
|
@@ -18451,7 +18451,7 @@ function preprocess(fn, schema) {
|
|
|
18451
18451
|
out: schema
|
|
18452
18452
|
});
|
|
18453
18453
|
}
|
|
18454
|
-
// node_modules/zod-v4/v4/classic/compat.js
|
|
18454
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/classic/compat.js
|
|
18455
18455
|
var ZodIssueCode = {
|
|
18456
18456
|
invalid_type: "invalid_type",
|
|
18457
18457
|
too_big: "too_big",
|
|
@@ -18475,7 +18475,7 @@ function getErrorMap() {
|
|
|
18475
18475
|
}
|
|
18476
18476
|
var ZodFirstPartyTypeKind;
|
|
18477
18477
|
(function(ZodFirstPartyTypeKind2) {})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
|
|
18478
|
-
// node_modules/zod-v4/v4/classic/iso.js
|
|
18478
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/classic/iso.js
|
|
18479
18479
|
var exports_iso = {};
|
|
18480
18480
|
__export(exports_iso, {
|
|
18481
18481
|
time: () => time2,
|
|
@@ -18500,7 +18500,7 @@ function duration2(params) {
|
|
|
18500
18500
|
return _isoDuration(ZodISODuration, params);
|
|
18501
18501
|
}
|
|
18502
18502
|
|
|
18503
|
-
// node_modules/zod-v4/v4/classic/from-json-schema.js
|
|
18503
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/classic/from-json-schema.js
|
|
18504
18504
|
var z = {
|
|
18505
18505
|
...exports_schemas2,
|
|
18506
18506
|
...exports_checks2,
|
|
@@ -19220,7 +19220,7 @@ function fromJSONSchema(schema, params) {
|
|
|
19220
19220
|
};
|
|
19221
19221
|
return convertSchema(normalized, ctx);
|
|
19222
19222
|
}
|
|
19223
|
-
// node_modules/zod-v4/v4/core/visit.js
|
|
19223
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/core/visit.js
|
|
19224
19224
|
var RESOLVING = Symbol("z.visit/resolving");
|
|
19225
19225
|
function visit(schema, fnOrHandlers) {
|
|
19226
19226
|
const fn = typeof fnOrHandlers === "function" ? fnOrHandlers : (node2, rewritten) => {
|
|
@@ -19372,7 +19372,7 @@ function visit(schema, fnOrHandlers) {
|
|
|
19372
19372
|
return run(schema);
|
|
19373
19373
|
}
|
|
19374
19374
|
|
|
19375
|
-
// node_modules/zod-v4/v4/classic/deep-partial.js
|
|
19375
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/classic/deep-partial.js
|
|
19376
19376
|
function deepPartial(schema) {
|
|
19377
19377
|
return visit(schema, {
|
|
19378
19378
|
object: (s) => s.partial(),
|
|
@@ -19382,7 +19382,7 @@ function deepPartial(schema) {
|
|
|
19382
19382
|
}
|
|
19383
19383
|
});
|
|
19384
19384
|
}
|
|
19385
|
-
// node_modules/zod-v4/v4/classic/in-out.js
|
|
19385
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/classic/in-out.js
|
|
19386
19386
|
function withChecks(side, checks2) {
|
|
19387
19387
|
if (!checks2?.length)
|
|
19388
19388
|
return side;
|
|
@@ -19408,7 +19408,7 @@ function output(schema) {
|
|
|
19408
19408
|
prefault: (s, rewritten) => rewritten ? s._zod.def.innerType : s
|
|
19409
19409
|
});
|
|
19410
19410
|
}
|
|
19411
|
-
// node_modules/zod-v4/v4/classic/coerce.js
|
|
19411
|
+
// ../../../../../sw-deps/node_modules/zod-v4/v4/classic/coerce.js
|
|
19412
19412
|
var exports_coerce = {};
|
|
19413
19413
|
__export(exports_coerce, {
|
|
19414
19414
|
string: () => string3,
|
|
@@ -19646,7 +19646,7 @@ async function boundedJson(response, maxBytes = MAX_BYTES) {
|
|
|
19646
19646
|
}
|
|
19647
19647
|
}
|
|
19648
19648
|
|
|
19649
|
-
// node_modules/@hasna/contracts/dist/client/transport.js
|
|
19649
|
+
// ../../../../../sw-deps2/node_modules/@hasna/contracts/dist/client/transport.js
|
|
19650
19650
|
import { isIP } from "net";
|
|
19651
19651
|
import { spawnSync } from "child_process";
|
|
19652
19652
|
import { closeSync as closeSync2, fstatSync as fstatSync2, openSync as openSync2, readFileSync as readFileSync2 } from "fs";
|
|
@@ -19788,13 +19788,25 @@ function resolveInstalledSecrets(parentUrl) {
|
|
|
19788
19788
|
class CredentialResolutionError extends Error {
|
|
19789
19789
|
appName;
|
|
19790
19790
|
attempted;
|
|
19791
|
-
|
|
19791
|
+
keychainStatus;
|
|
19792
|
+
constructor(appName, message, attempted, keychainStatus) {
|
|
19792
19793
|
super(message);
|
|
19793
19794
|
this.name = "CredentialResolutionError";
|
|
19794
19795
|
this.appName = appName;
|
|
19795
19796
|
this.attempted = attempted;
|
|
19797
|
+
if (keychainStatus !== undefined)
|
|
19798
|
+
this.keychainStatus = keychainStatus;
|
|
19796
19799
|
}
|
|
19797
19800
|
}
|
|
19801
|
+
var KEYCHAIN_INTERACTION_NOT_ALLOWED_STATUS = 36;
|
|
19802
|
+
function isKeychainInteractionNotAllowed(error62) {
|
|
19803
|
+
return error62 instanceof CredentialResolutionError && error62.keychainStatus === KEYCHAIN_INTERACTION_NOT_ALLOWED_STATUS;
|
|
19804
|
+
}
|
|
19805
|
+
function credentialOutranksKeychain(credential) {
|
|
19806
|
+
if (credential.tier === "argument" || credential.tier === "override" || credential.tier === "profile")
|
|
19807
|
+
return true;
|
|
19808
|
+
return credential.tier === "pointer" && credential.deliberate;
|
|
19809
|
+
}
|
|
19798
19810
|
|
|
19799
19811
|
class CredentialFileUnsafeError extends Error {
|
|
19800
19812
|
path;
|
|
@@ -20139,7 +20151,7 @@ function readKeychainItem(name, env, kind, options) {
|
|
|
20139
20151
|
if (result.status === KEYCHAIN_ITEM_NOT_FOUND_STATUS)
|
|
20140
20152
|
return null;
|
|
20141
20153
|
if (result.status !== 0) {
|
|
20142
|
-
throw new CredentialResolutionError(name, `The Keychain lookup for ${source} failed (security exited ` + `${result.status ?? "without a status"}${keychainFailureHint(result.stderr)}). A Keychain item that ` + `exists but cannot be read is never resolved around: unlock the keychain, run from a session that ` + `may use it, or delete the item to fall through to the credential on disk.`, [source]);
|
|
20154
|
+
throw new CredentialResolutionError(name, `The Keychain lookup for ${source} failed (security exited ` + `${result.status ?? "without a status"}${keychainFailureHint(result.stderr)}). A Keychain item that ` + `exists but cannot be read is never resolved around: unlock the keychain, run from a session that ` + `may use it, or delete the item to fall through to the credential on disk.`, [source], result.status ?? undefined);
|
|
20143
20155
|
}
|
|
20144
20156
|
const value = result.stdout.trim();
|
|
20145
20157
|
if (!value) {
|
|
@@ -20187,6 +20199,21 @@ function snapshotClientEnvironment(name, env) {
|
|
|
20187
20199
|
}
|
|
20188
20200
|
return Object.freeze(snapshot);
|
|
20189
20201
|
}
|
|
20202
|
+
function snapshotCredentialChainOptions(options) {
|
|
20203
|
+
if (!options)
|
|
20204
|
+
return;
|
|
20205
|
+
const apiKey = options.apiKey;
|
|
20206
|
+
const profile = options.profile;
|
|
20207
|
+
const keychain = options.keychain;
|
|
20208
|
+
const snapshot = {};
|
|
20209
|
+
if (apiKey !== undefined)
|
|
20210
|
+
snapshot.apiKey = apiKey;
|
|
20211
|
+
if (profile !== undefined)
|
|
20212
|
+
snapshot.profile = profile;
|
|
20213
|
+
if (keychain !== undefined)
|
|
20214
|
+
snapshot.keychain = keychain;
|
|
20215
|
+
return Object.freeze(snapshot);
|
|
20216
|
+
}
|
|
20190
20217
|
function resolveCredential(name, env, options = {}) {
|
|
20191
20218
|
env = snapshotClientEnvironment(name, env);
|
|
20192
20219
|
const { apiKeyKeys } = clientTransportEnvKeys(name);
|
|
@@ -20525,6 +20552,12 @@ class ClientCredentialMissingError extends ClientTransportConfigurationError {
|
|
|
20525
20552
|
this.name = "ClientCredentialMissingError";
|
|
20526
20553
|
}
|
|
20527
20554
|
}
|
|
20555
|
+
function hasDeliberateKeySource(name, env, credentials) {
|
|
20556
|
+
const named = (value) => typeof value === "string" && value.trim().length > 0;
|
|
20557
|
+
if (named(credentials?.apiKey) || named(credentials?.profile))
|
|
20558
|
+
return true;
|
|
20559
|
+
return [credentialOverrideEnvKey(name), credentialPointerEnvKey(name), CREDENTIAL_PROFILE_ENV_KEY].some((key) => Object.prototype.hasOwnProperty.call(env, key) && named(env[key]));
|
|
20560
|
+
}
|
|
20528
20561
|
function resolveClientAuthoritySnapshot(name, env = process.env, options = {}) {
|
|
20529
20562
|
env = snapshotClientEnvironment(name, env);
|
|
20530
20563
|
const keys = clientTransportEnvKeys(name);
|
|
@@ -20549,7 +20582,17 @@ function resolveClientAuthoritySnapshot(name, env = process.env, options = {}) {
|
|
|
20549
20582
|
throw new ClientTransportConfigurationError(name, `${usableUrlEntries.map((entry) => entry.key).join(" and ")} disagree; client authority aliases must select the same versioned API authority or only one may be set.`, usableUrlEntries.map((entry) => entry.key));
|
|
20550
20583
|
}
|
|
20551
20584
|
const envUrlHit = usableUrlEntries[0] ?? null;
|
|
20552
|
-
|
|
20585
|
+
let keychainUrlHit;
|
|
20586
|
+
let skippedKeychainUrlPin = null;
|
|
20587
|
+
try {
|
|
20588
|
+
keychainUrlHit = keychainConfigValue(name, env, options.credentials?.keychain);
|
|
20589
|
+
} catch (error62) {
|
|
20590
|
+
if (!envUrlHit || !isKeychainInteractionNotAllowed(error62) || !hasDeliberateKeySource(name, env, options.credentials)) {
|
|
20591
|
+
throw error62;
|
|
20592
|
+
}
|
|
20593
|
+
keychainUrlHit = null;
|
|
20594
|
+
skippedKeychainUrlPin = error62 instanceof Error ? error62 : new Error(String(error62));
|
|
20595
|
+
}
|
|
20553
20596
|
const profile = options.bindUnpairedCredentialsToFleet ? options.credentials?.profile?.trim() || env.HASNA_PROFILE?.trim() || null : null;
|
|
20554
20597
|
const diskConfigUrlHit = appConfigDiskValue(name, env, keys.apiUrlKeys, profile);
|
|
20555
20598
|
if (diskConfigUrlHit?.unusable) {
|
|
@@ -20573,11 +20616,22 @@ function resolveClientAuthoritySnapshot(name, env = process.env, options = {}) {
|
|
|
20573
20616
|
throw new ClientTransportConfigurationError(name, `Invalid API URL from ${configuredUrl.key}: ${error62 instanceof Error ? error62.message : String(error62)}`, [configuredUrl.key]);
|
|
20574
20617
|
}
|
|
20575
20618
|
}
|
|
20576
|
-
return { keys, configuredUrl, envUrlHit, keychainUrlHit, diskConfigUrlHit };
|
|
20619
|
+
return { keys, configuredUrl, envUrlHit, keychainUrlHit, diskConfigUrlHit, skippedKeychainUrlPin };
|
|
20620
|
+
}
|
|
20621
|
+
function snapshotResolveClientTransportOptions(options) {
|
|
20622
|
+
const bindUnpairedCredentialsToFleet = options.bindUnpairedCredentialsToFleet;
|
|
20623
|
+
const credentials = snapshotCredentialChainOptions(options.credentials);
|
|
20624
|
+
const snapshot = {};
|
|
20625
|
+
if (bindUnpairedCredentialsToFleet !== undefined)
|
|
20626
|
+
snapshot.bindUnpairedCredentialsToFleet = bindUnpairedCredentialsToFleet;
|
|
20627
|
+
if (credentials !== undefined)
|
|
20628
|
+
snapshot.credentials = credentials;
|
|
20629
|
+
return Object.freeze(snapshot);
|
|
20577
20630
|
}
|
|
20578
20631
|
function resolveClientTransportSnapshot(name, env = process.env, options = {}) {
|
|
20579
20632
|
env = snapshotClientEnvironment(name, env);
|
|
20580
|
-
|
|
20633
|
+
options = snapshotResolveClientTransportOptions(options);
|
|
20634
|
+
const { keys, configuredUrl, envUrlHit, keychainUrlHit, diskConfigUrlHit, skippedKeychainUrlPin } = resolveClientAuthoritySnapshot(name, env, options);
|
|
20581
20635
|
const warnings = [];
|
|
20582
20636
|
if (configuredUrl && !envUrlHit) {
|
|
20583
20637
|
warnings.push(`No ${keys.apiUrlKeys[0]} in the environment; the server URL in ${configuredUrl.key} was used, so this client connects to the server. ` + `Keep that entry aligned with the intended service authority.`);
|
|
@@ -20592,6 +20646,9 @@ function resolveClientTransportSnapshot(name, env = process.env, options = {}) {
|
|
|
20592
20646
|
throw new ClientCredentialMissingError(name, warnings.join(" "), sources, configuredUrl !== null);
|
|
20593
20647
|
throw new ClientTransportConfigurationError(name, warnings.join(" "), sources);
|
|
20594
20648
|
}
|
|
20649
|
+
if (skippedKeychainUrlPin && !credentialOutranksKeychain(credential)) {
|
|
20650
|
+
throw skippedKeychainUrlPin;
|
|
20651
|
+
}
|
|
20595
20652
|
if (credential.warning)
|
|
20596
20653
|
warnings.push(credential.warning);
|
|
20597
20654
|
let urlHit;
|
|
@@ -20890,11 +20947,7 @@ function createHasnaHttpTransportInternal(options, requestBindingProvider) {
|
|
|
20890
20947
|
};
|
|
20891
20948
|
}
|
|
20892
20949
|
function createClientTransport(name, env = process.env, overrides) {
|
|
20893
|
-
const
|
|
20894
|
-
const snapshotOptions = {
|
|
20895
|
-
...credentialOptions ? { credentials: credentialOptions } : {},
|
|
20896
|
-
...overrides?.bindUnpairedCredentialsToFleet === undefined ? {} : { bindUnpairedCredentialsToFleet: overrides.bindUnpairedCredentialsToFleet }
|
|
20897
|
-
};
|
|
20950
|
+
const snapshotOptions = snapshotResolveClientTransportOptions(overrides ?? {});
|
|
20898
20951
|
const resolution = resolveClientTransportSnapshot(name, env, snapshotOptions).resolution;
|
|
20899
20952
|
const sameBinding = (left, right) => left.resolution.baseUrl === right.resolution.baseUrl && left.credential.apiKey === right.credential.apiKey && left.credential.pointerVaultKey === right.credential.pointerVaultKey && left.credential.source === right.credential.source && left.credential.tier === right.credential.tier;
|
|
20900
20953
|
const unstableConfiguration = () => new ClientTransportConfigurationError(name, "The configured service authority or credential changed while a request was being prepared; no authenticated request was sent.");
|