perstack 0.0.123 → 0.0.124
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/bin/cli.js +531 -1587
- package/dist/bin/cli.js.map +1 -1
- package/dist/{chunk-D_gEzPfs.js → chunk-DORXReHP.js} +12 -22
- package/dist/{devtools-Bhpwh697.js → devtools-Bu9H6b8U.js} +53 -82
- package/dist/{devtools-Bhpwh697.js.map → devtools-Bu9H6b8U.js.map} +1 -1
- package/dist/{dist-CtJ4Bmgn.js → dist-BaZPOblZ.js} +3 -13
- package/dist/{dist-CtJ4Bmgn.js.map → dist-BaZPOblZ.js.map} +1 -1
- package/dist/{dist-ByKamhCW.js → dist-RHs5gh6F.js} +404 -525
- package/dist/dist-RHs5gh6F.js.map +1 -0
- package/dist/{from-Bc9kdEMW.js → from-CDHHdxdc.js} +10 -55
- package/dist/{from-Bc9kdEMW.js.map → from-CDHHdxdc.js.map} +1 -1
- package/dist/{multipart-parser-BTFMhKVK.js → multipart-parser-DXNPpbYa.js} +7 -9
- package/dist/{multipart-parser-BTFMhKVK.js.map → multipart-parser-DXNPpbYa.js.map} +1 -1
- package/dist/{resolve-expert-NYqP4qog.js → resolve-expert-temTHQyu.js} +3 -4
- package/dist/{resolve-expert-NYqP4qog.js.map → resolve-expert-temTHQyu.js.map} +1 -1
- package/dist/{src-ziv0IPUn.js → src-Cl4mko2y.js} +8 -22
- package/dist/{src-ziv0IPUn.js.map → src-Cl4mko2y.js.map} +1 -1
- package/dist/{token-CG9AEZQ3.js → token-C9_l0CGs.js} +5 -7
- package/dist/{token-CG9AEZQ3.js.map → token-C9_l0CGs.js.map} +1 -1
- package/dist/{token-error-_b-fOBh2.js → token-error-Bru5BVnt.js} +3 -4
- package/dist/{token-error-_b-fOBh2.js.map → token-error-Bru5BVnt.js.map} +1 -1
- package/dist/token-util-DVMOukJX.js +4 -0
- package/dist/{token-util-BNFarwY-.js → token-util-D_6sOotR.js} +4 -8
- package/dist/{token-util-BNFarwY-.js.map → token-util-D_6sOotR.js.map} +1 -1
- package/package.json +3 -3
- package/dist/dist-ByKamhCW.js.map +0 -1
- package/dist/token-util-nX2KFqwd.js +0 -6
|
@@ -30,7 +30,6 @@ const rotlSH = (h, l, s) => h << s | l >>> 32 - s;
|
|
|
30
30
|
const rotlSL = (h, l, s) => l << s | h >>> 32 - s;
|
|
31
31
|
const rotlBH = (h, l, s) => l << s - 32 | h >>> 64 - s;
|
|
32
32
|
const rotlBL = (h, l, s) => h << s - 32 | l >>> 64 - s;
|
|
33
|
-
|
|
34
33
|
//#endregion
|
|
35
34
|
//#region ../../node_modules/.bun/@noble+hashes@2.0.1/node_modules/@noble/hashes/utils.js
|
|
36
35
|
/**
|
|
@@ -93,7 +92,7 @@ function byteSwap32(arr) {
|
|
|
93
92
|
return arr;
|
|
94
93
|
}
|
|
95
94
|
const swap32IfBE = isLE ? (u) => u : byteSwap32;
|
|
96
|
-
|
|
95
|
+
typeof Uint8Array.from([]).toHex === "function" && Uint8Array.fromHex;
|
|
97
96
|
/** Creates function with outputLen, blockLen, create properties from a class constructor. */
|
|
98
97
|
function createHasher(hashCons, info = {}) {
|
|
99
98
|
const hashC = (msg, opts) => hashCons(opts).update(msg).digest();
|
|
@@ -118,7 +117,6 @@ const oidNist = (suffix) => ({ oid: Uint8Array.from([
|
|
|
118
117
|
2,
|
|
119
118
|
suffix
|
|
120
119
|
]) });
|
|
121
|
-
|
|
122
120
|
//#endregion
|
|
123
121
|
//#region ../../node_modules/.bun/@noble+hashes@2.0.1/node_modules/@noble/hashes/sha3.js
|
|
124
122
|
/**
|
|
@@ -305,7 +303,6 @@ var Keccak = class Keccak {
|
|
|
305
303
|
const genKeccak = (suffix, blockLen, outputLen, info = {}) => createHasher(() => new Keccak(blockLen, suffix, outputLen), info);
|
|
306
304
|
/** SHA3-512 hash function. */
|
|
307
305
|
const sha3_512 = /* @__PURE__ */ genKeccak(6, 72, 64, /* @__PURE__ */ oidNist(10));
|
|
308
|
-
|
|
309
306
|
//#endregion
|
|
310
307
|
//#region ../../node_modules/.bun/bignumber.js@9.3.1/node_modules/bignumber.js/bignumber.mjs
|
|
311
308
|
var isNumeric = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, mathceil = Math.ceil, mathfloor = Math.floor, bignumberError = "[BigNumber Error] ", tooManyDigits = bignumberError + "Number primitive has more than 15 significant digits: ", BASE = 0x5af3107a4000, LOG_BASE = 14, MAX_SAFE_INTEGER = 9007199254740991, POWS_TEN = [
|
|
@@ -1509,7 +1506,6 @@ function toFixedPoint(str, e, z) {
|
|
|
1509
1506
|
return str;
|
|
1510
1507
|
}
|
|
1511
1508
|
var BigNumber = clone$1();
|
|
1512
|
-
|
|
1513
1509
|
//#endregion
|
|
1514
1510
|
//#region ../../node_modules/.bun/@paralleldrive+cuid2@3.3.0/node_modules/@paralleldrive/cuid2/src/index.js
|
|
1515
1511
|
const defaultLength = 24;
|
|
@@ -1568,7 +1564,6 @@ function lazy$1(fn) {
|
|
|
1568
1564
|
return initialized();
|
|
1569
1565
|
};
|
|
1570
1566
|
}
|
|
1571
|
-
|
|
1572
1567
|
//#endregion
|
|
1573
1568
|
//#region ../../packages/core/src/constants/constants.ts
|
|
1574
1569
|
const defaultPerstackApiBaseUrl = "https://api.perstack.ai";
|
|
@@ -1576,12 +1571,7 @@ const expertKeyRegex$1 = /^((?:@[a-z0-9][a-z0-9_.-]*\/)?[a-z0-9][a-z0-9_.-]*)(?:
|
|
|
1576
1571
|
const expertNameRegex$1 = /^(@[a-z0-9][a-z0-9_-]*\/)?[a-z0-9][a-z0-9_-]*$/;
|
|
1577
1572
|
const expertVersionRegex$1 = /^(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)(?:-[\w.-]+)?(?:\+[\w.-]+)?$/;
|
|
1578
1573
|
const tagNameRegex$1 = /^[a-z0-9][a-z0-9_-]*$/;
|
|
1579
|
-
const maxExpertNameLength$1 = 255;
|
|
1580
|
-
const defaultMaxRetries = 5;
|
|
1581
1574
|
const defaultTimeout = 5 * 1e3 * 60;
|
|
1582
|
-
const maxSkillNameLength$1 = 255;
|
|
1583
|
-
const maxSkillToolNameLength$1 = 255;
|
|
1584
|
-
|
|
1585
1575
|
//#endregion
|
|
1586
1576
|
//#region ../../packages/core/src/errors.ts
|
|
1587
1577
|
var PerstackError = class extends Error {
|
|
@@ -1590,7 +1580,6 @@ var PerstackError = class extends Error {
|
|
|
1590
1580
|
this.name = "PerstackError";
|
|
1591
1581
|
}
|
|
1592
1582
|
};
|
|
1593
|
-
|
|
1594
1583
|
//#endregion
|
|
1595
1584
|
//#region ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/core.js
|
|
1596
1585
|
/** A special constant with type `never` */
|
|
@@ -1650,7 +1639,6 @@ function config(newConfig) {
|
|
|
1650
1639
|
if (newConfig) Object.assign(globalConfig, newConfig);
|
|
1651
1640
|
return globalConfig;
|
|
1652
1641
|
}
|
|
1653
|
-
|
|
1654
1642
|
//#endregion
|
|
1655
1643
|
//#region ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/util.js
|
|
1656
1644
|
function getEnumValues(entries) {
|
|
@@ -1964,7 +1952,6 @@ function issue(...args) {
|
|
|
1964
1952
|
};
|
|
1965
1953
|
return { ...iss };
|
|
1966
1954
|
}
|
|
1967
|
-
|
|
1968
1955
|
//#endregion
|
|
1969
1956
|
//#region ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/errors.js
|
|
1970
1957
|
const initializer$1 = (inst, def) => {
|
|
@@ -2022,7 +2009,6 @@ function formatError(error, mapper = (issue) => issue.message) {
|
|
|
2022
2009
|
processError(error);
|
|
2023
2010
|
return fieldErrors;
|
|
2024
2011
|
}
|
|
2025
|
-
|
|
2026
2012
|
//#endregion
|
|
2027
2013
|
//#region ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/parse.js
|
|
2028
2014
|
const _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
@@ -2094,39 +2080,30 @@ const _encode = (_Err) => (schema, value, _ctx) => {
|
|
|
2094
2080
|
const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
|
|
2095
2081
|
return _parse(_Err)(schema, value, ctx);
|
|
2096
2082
|
};
|
|
2097
|
-
const encode$1 = /* @__PURE__ */ _encode($ZodRealError);
|
|
2098
2083
|
const _decode = (_Err) => (schema, value, _ctx) => {
|
|
2099
2084
|
return _parse(_Err)(schema, value, _ctx);
|
|
2100
2085
|
};
|
|
2101
|
-
const decode$1 = /* @__PURE__ */ _decode($ZodRealError);
|
|
2102
2086
|
const _encodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
2103
2087
|
const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
|
|
2104
2088
|
return _parseAsync(_Err)(schema, value, ctx);
|
|
2105
2089
|
};
|
|
2106
|
-
const encodeAsync$1 = /* @__PURE__ */ _encodeAsync($ZodRealError);
|
|
2107
2090
|
const _decodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
2108
2091
|
return _parseAsync(_Err)(schema, value, _ctx);
|
|
2109
2092
|
};
|
|
2110
|
-
const decodeAsync$1 = /* @__PURE__ */ _decodeAsync($ZodRealError);
|
|
2111
2093
|
const _safeEncode = (_Err) => (schema, value, _ctx) => {
|
|
2112
2094
|
const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
|
|
2113
2095
|
return _safeParse(_Err)(schema, value, ctx);
|
|
2114
2096
|
};
|
|
2115
|
-
const safeEncode$1 = /* @__PURE__ */ _safeEncode($ZodRealError);
|
|
2116
2097
|
const _safeDecode = (_Err) => (schema, value, _ctx) => {
|
|
2117
2098
|
return _safeParse(_Err)(schema, value, _ctx);
|
|
2118
2099
|
};
|
|
2119
|
-
const safeDecode$1 = /* @__PURE__ */ _safeDecode($ZodRealError);
|
|
2120
2100
|
const _safeEncodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
2121
2101
|
const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
|
|
2122
2102
|
return _safeParseAsync(_Err)(schema, value, ctx);
|
|
2123
2103
|
};
|
|
2124
|
-
const safeEncodeAsync$1 = /* @__PURE__ */ _safeEncodeAsync($ZodRealError);
|
|
2125
2104
|
const _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
2126
2105
|
return _safeParseAsync(_Err)(schema, value, _ctx);
|
|
2127
2106
|
};
|
|
2128
|
-
const safeDecodeAsync$1 = /* @__PURE__ */ _safeDecodeAsync($ZodRealError);
|
|
2129
|
-
|
|
2130
2107
|
//#endregion
|
|
2131
2108
|
//#region ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/regexes.js
|
|
2132
2109
|
const cuid = /^[cC][^\s-]{8,}$/;
|
|
@@ -2187,7 +2164,6 @@ const _null$2 = /^null$/i;
|
|
|
2187
2164
|
const _undefined$2 = /^undefined$/i;
|
|
2188
2165
|
const lowercase = /^[^A-Z]*$/;
|
|
2189
2166
|
const uppercase = /^[^a-z]*$/;
|
|
2190
|
-
|
|
2191
2167
|
//#endregion
|
|
2192
2168
|
//#region ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/checks.js
|
|
2193
2169
|
const $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
@@ -2546,7 +2522,6 @@ const $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (i
|
|
|
2546
2522
|
payload.value = def.tx(payload.value);
|
|
2547
2523
|
};
|
|
2548
2524
|
});
|
|
2549
|
-
|
|
2550
2525
|
//#endregion
|
|
2551
2526
|
//#region ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/doc.js
|
|
2552
2527
|
var Doc = class {
|
|
@@ -2578,7 +2553,6 @@ var Doc = class {
|
|
|
2578
2553
|
return new F(...args, lines.join("\n"));
|
|
2579
2554
|
}
|
|
2580
2555
|
};
|
|
2581
|
-
|
|
2582
2556
|
//#endregion
|
|
2583
2557
|
//#region ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/versions.js
|
|
2584
2558
|
const version = {
|
|
@@ -2586,7 +2560,6 @@ const version = {
|
|
|
2586
2560
|
minor: 3,
|
|
2587
2561
|
patch: 6
|
|
2588
2562
|
};
|
|
2589
|
-
|
|
2590
2563
|
//#endregion
|
|
2591
2564
|
//#region ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/schemas.js
|
|
2592
2565
|
const $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
@@ -3243,8 +3216,7 @@ const $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def)
|
|
|
3243
3216
|
let fastpass;
|
|
3244
3217
|
const isObject$1 = isObject;
|
|
3245
3218
|
const jit = !globalConfig.jitless;
|
|
3246
|
-
const
|
|
3247
|
-
const fastEnabled = jit && allowsEval$1.value;
|
|
3219
|
+
const fastEnabled = jit && allowsEval.value;
|
|
3248
3220
|
const catchall = def.catchall;
|
|
3249
3221
|
let value;
|
|
3250
3222
|
inst._zod.parse = (payload, ctx) => {
|
|
@@ -3908,7 +3880,6 @@ function handleRefineResult(result, payload, input, inst) {
|
|
|
3908
3880
|
payload.issues.push(issue(_iss));
|
|
3909
3881
|
}
|
|
3910
3882
|
}
|
|
3911
|
-
|
|
3912
3883
|
//#endregion
|
|
3913
3884
|
//#region ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/registries.js
|
|
3914
3885
|
var _a;
|
|
@@ -3956,7 +3927,6 @@ function registry() {
|
|
|
3956
3927
|
}
|
|
3957
3928
|
(_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());
|
|
3958
3929
|
const globalRegistry = globalThis.__zod_globalRegistry;
|
|
3959
|
-
|
|
3960
3930
|
//#endregion
|
|
3961
3931
|
//#region ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/api.js
|
|
3962
3932
|
/* @__NO_SIDE_EFFECTS__ */
|
|
@@ -4529,7 +4499,6 @@ function meta$1(metadata) {
|
|
|
4529
4499
|
ch._zod.check = () => {};
|
|
4530
4500
|
return ch;
|
|
4531
4501
|
}
|
|
4532
|
-
|
|
4533
4502
|
//#endregion
|
|
4534
4503
|
//#region ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/to-json-schema.js
|
|
4535
4504
|
function initializeContext(params) {
|
|
@@ -4815,7 +4784,6 @@ const createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params)
|
|
|
4815
4784
|
extractDefs(ctx, schema);
|
|
4816
4785
|
return finalize(ctx, schema);
|
|
4817
4786
|
};
|
|
4818
|
-
|
|
4819
4787
|
//#endregion
|
|
4820
4788
|
//#region ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/json-schema-processors.js
|
|
4821
4789
|
const formatMap = {
|
|
@@ -5272,7 +5240,6 @@ function toJSONSchema(input, params) {
|
|
|
5272
5240
|
extractDefs(ctx, input);
|
|
5273
5241
|
return finalize(ctx, input);
|
|
5274
5242
|
}
|
|
5275
|
-
|
|
5276
5243
|
//#endregion
|
|
5277
5244
|
//#region ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/iso.js
|
|
5278
5245
|
const ZodISODateTime = /* @__PURE__ */ $constructor("ZodISODateTime", (inst, def) => {
|
|
@@ -5280,30 +5247,29 @@ const ZodISODateTime = /* @__PURE__ */ $constructor("ZodISODateTime", (inst, def
|
|
|
5280
5247
|
ZodStringFormat.init(inst, def);
|
|
5281
5248
|
});
|
|
5282
5249
|
function datetime(params) {
|
|
5283
|
-
return _isoDateTime(ZodISODateTime, params);
|
|
5250
|
+
return /* @__PURE__ */ _isoDateTime(ZodISODateTime, params);
|
|
5284
5251
|
}
|
|
5285
5252
|
const ZodISODate = /* @__PURE__ */ $constructor("ZodISODate", (inst, def) => {
|
|
5286
5253
|
$ZodISODate.init(inst, def);
|
|
5287
5254
|
ZodStringFormat.init(inst, def);
|
|
5288
5255
|
});
|
|
5289
5256
|
function date(params) {
|
|
5290
|
-
return _isoDate(ZodISODate, params);
|
|
5257
|
+
return /* @__PURE__ */ _isoDate(ZodISODate, params);
|
|
5291
5258
|
}
|
|
5292
5259
|
const ZodISOTime = /* @__PURE__ */ $constructor("ZodISOTime", (inst, def) => {
|
|
5293
5260
|
$ZodISOTime.init(inst, def);
|
|
5294
5261
|
ZodStringFormat.init(inst, def);
|
|
5295
5262
|
});
|
|
5296
5263
|
function time(params) {
|
|
5297
|
-
return _isoTime(ZodISOTime, params);
|
|
5264
|
+
return /* @__PURE__ */ _isoTime(ZodISOTime, params);
|
|
5298
5265
|
}
|
|
5299
5266
|
const ZodISODuration = /* @__PURE__ */ $constructor("ZodISODuration", (inst, def) => {
|
|
5300
5267
|
$ZodISODuration.init(inst, def);
|
|
5301
5268
|
ZodStringFormat.init(inst, def);
|
|
5302
5269
|
});
|
|
5303
5270
|
function duration(params) {
|
|
5304
|
-
return _isoDuration(ZodISODuration, params);
|
|
5271
|
+
return /* @__PURE__ */ _isoDuration(ZodISODuration, params);
|
|
5305
5272
|
}
|
|
5306
|
-
|
|
5307
5273
|
//#endregion
|
|
5308
5274
|
//#region ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/errors.js
|
|
5309
5275
|
const initializer = (inst, issues) => {
|
|
@@ -5325,9 +5291,8 @@ const initializer = (inst, issues) => {
|
|
|
5325
5291
|
} }
|
|
5326
5292
|
});
|
|
5327
5293
|
};
|
|
5328
|
-
|
|
5294
|
+
$constructor("ZodError", initializer);
|
|
5329
5295
|
const ZodRealError = $constructor("ZodError", initializer, { Parent: Error });
|
|
5330
|
-
|
|
5331
5296
|
//#endregion
|
|
5332
5297
|
//#region ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/parse.js
|
|
5333
5298
|
const parse = /* @__PURE__ */ _parse(ZodRealError);
|
|
@@ -5342,7 +5307,6 @@ const safeEncode = /* @__PURE__ */ _safeEncode(ZodRealError);
|
|
|
5342
5307
|
const safeDecode = /* @__PURE__ */ _safeDecode(ZodRealError);
|
|
5343
5308
|
const safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
|
|
5344
5309
|
const safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
|
|
5345
|
-
|
|
5346
5310
|
//#endregion
|
|
5347
5311
|
//#region ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/schemas.js
|
|
5348
5312
|
const ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
@@ -5384,7 +5348,7 @@ const ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
|
5384
5348
|
inst.safeDecodeAsync = async (data, params) => safeDecodeAsync(inst, data, params);
|
|
5385
5349
|
inst.refine = (check, params) => inst.check(refine(check, params));
|
|
5386
5350
|
inst.superRefine = (refinement) => inst.check(superRefine(refinement));
|
|
5387
|
-
inst.overwrite = (fn) => inst.check(_overwrite(fn));
|
|
5351
|
+
inst.overwrite = (fn) => inst.check(/* @__PURE__ */ _overwrite(fn));
|
|
5388
5352
|
inst.optional = () => optional(inst);
|
|
5389
5353
|
inst.exactOptional = () => exactOptional(inst);
|
|
5390
5354
|
inst.nullable = () => nullable(inst);
|
|
@@ -5430,55 +5394,55 @@ const _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
|
|
|
5430
5394
|
inst.format = bag.format ?? null;
|
|
5431
5395
|
inst.minLength = bag.minimum ?? null;
|
|
5432
5396
|
inst.maxLength = bag.maximum ?? null;
|
|
5433
|
-
inst.regex = (...args) => inst.check(_regex(...args));
|
|
5434
|
-
inst.includes = (...args) => inst.check(_includes(...args));
|
|
5435
|
-
inst.startsWith = (...args) => inst.check(_startsWith(...args));
|
|
5436
|
-
inst.endsWith = (...args) => inst.check(_endsWith(...args));
|
|
5437
|
-
inst.min = (...args) => inst.check(_minLength(...args));
|
|
5438
|
-
inst.max = (...args) => inst.check(_maxLength(...args));
|
|
5439
|
-
inst.length = (...args) => inst.check(_length(...args));
|
|
5440
|
-
inst.nonempty = (...args) => inst.check(_minLength(1, ...args));
|
|
5441
|
-
inst.lowercase = (params) => inst.check(_lowercase(params));
|
|
5442
|
-
inst.uppercase = (params) => inst.check(_uppercase(params));
|
|
5443
|
-
inst.trim = () => inst.check(_trim());
|
|
5444
|
-
inst.normalize = (...args) => inst.check(_normalize(...args));
|
|
5445
|
-
inst.toLowerCase = () => inst.check(_toLowerCase());
|
|
5446
|
-
inst.toUpperCase = () => inst.check(_toUpperCase());
|
|
5447
|
-
inst.slugify = () => inst.check(_slugify());
|
|
5397
|
+
inst.regex = (...args) => inst.check(/* @__PURE__ */ _regex(...args));
|
|
5398
|
+
inst.includes = (...args) => inst.check(/* @__PURE__ */ _includes(...args));
|
|
5399
|
+
inst.startsWith = (...args) => inst.check(/* @__PURE__ */ _startsWith(...args));
|
|
5400
|
+
inst.endsWith = (...args) => inst.check(/* @__PURE__ */ _endsWith(...args));
|
|
5401
|
+
inst.min = (...args) => inst.check(/* @__PURE__ */ _minLength(...args));
|
|
5402
|
+
inst.max = (...args) => inst.check(/* @__PURE__ */ _maxLength(...args));
|
|
5403
|
+
inst.length = (...args) => inst.check(/* @__PURE__ */ _length(...args));
|
|
5404
|
+
inst.nonempty = (...args) => inst.check(/* @__PURE__ */ _minLength(1, ...args));
|
|
5405
|
+
inst.lowercase = (params) => inst.check(/* @__PURE__ */ _lowercase(params));
|
|
5406
|
+
inst.uppercase = (params) => inst.check(/* @__PURE__ */ _uppercase(params));
|
|
5407
|
+
inst.trim = () => inst.check(/* @__PURE__ */ _trim());
|
|
5408
|
+
inst.normalize = (...args) => inst.check(/* @__PURE__ */ _normalize(...args));
|
|
5409
|
+
inst.toLowerCase = () => inst.check(/* @__PURE__ */ _toLowerCase());
|
|
5410
|
+
inst.toUpperCase = () => inst.check(/* @__PURE__ */ _toUpperCase());
|
|
5411
|
+
inst.slugify = () => inst.check(/* @__PURE__ */ _slugify());
|
|
5448
5412
|
});
|
|
5449
5413
|
const ZodString = /* @__PURE__ */ $constructor("ZodString", (inst, def) => {
|
|
5450
5414
|
$ZodString.init(inst, def);
|
|
5451
5415
|
_ZodString.init(inst, def);
|
|
5452
|
-
inst.email = (params) => inst.check(_email(ZodEmail, params));
|
|
5453
|
-
inst.url = (params) => inst.check(_url(ZodURL, params));
|
|
5454
|
-
inst.jwt = (params) => inst.check(_jwt(ZodJWT, params));
|
|
5455
|
-
inst.emoji = (params) => inst.check(_emoji(ZodEmoji, params));
|
|
5456
|
-
inst.guid = (params) => inst.check(_guid(ZodGUID, params));
|
|
5457
|
-
inst.uuid = (params) => inst.check(_uuid(ZodUUID, params));
|
|
5458
|
-
inst.uuidv4 = (params) => inst.check(_uuidv4(ZodUUID, params));
|
|
5459
|
-
inst.uuidv6 = (params) => inst.check(_uuidv6(ZodUUID, params));
|
|
5460
|
-
inst.uuidv7 = (params) => inst.check(_uuidv7(ZodUUID, params));
|
|
5461
|
-
inst.nanoid = (params) => inst.check(_nanoid(ZodNanoID, params));
|
|
5462
|
-
inst.guid = (params) => inst.check(_guid(ZodGUID, params));
|
|
5463
|
-
inst.cuid = (params) => inst.check(_cuid(ZodCUID, params));
|
|
5464
|
-
inst.cuid2 = (params) => inst.check(_cuid2(ZodCUID2, params));
|
|
5465
|
-
inst.ulid = (params) => inst.check(_ulid(ZodULID, params));
|
|
5466
|
-
inst.base64 = (params) => inst.check(_base64(ZodBase64, params));
|
|
5467
|
-
inst.base64url = (params) => inst.check(_base64url(ZodBase64URL, params));
|
|
5468
|
-
inst.xid = (params) => inst.check(_xid(ZodXID, params));
|
|
5469
|
-
inst.ksuid = (params) => inst.check(_ksuid(ZodKSUID, params));
|
|
5470
|
-
inst.ipv4 = (params) => inst.check(_ipv4(ZodIPv4, params));
|
|
5471
|
-
inst.ipv6 = (params) => inst.check(_ipv6(ZodIPv6, params));
|
|
5472
|
-
inst.cidrv4 = (params) => inst.check(_cidrv4(ZodCIDRv4, params));
|
|
5473
|
-
inst.cidrv6 = (params) => inst.check(_cidrv6(ZodCIDRv6, params));
|
|
5474
|
-
inst.e164 = (params) => inst.check(_e164(ZodE164, params));
|
|
5416
|
+
inst.email = (params) => inst.check(/* @__PURE__ */ _email(ZodEmail, params));
|
|
5417
|
+
inst.url = (params) => inst.check(/* @__PURE__ */ _url(ZodURL, params));
|
|
5418
|
+
inst.jwt = (params) => inst.check(/* @__PURE__ */ _jwt(ZodJWT, params));
|
|
5419
|
+
inst.emoji = (params) => inst.check(/* @__PURE__ */ _emoji(ZodEmoji, params));
|
|
5420
|
+
inst.guid = (params) => inst.check(/* @__PURE__ */ _guid(ZodGUID, params));
|
|
5421
|
+
inst.uuid = (params) => inst.check(/* @__PURE__ */ _uuid(ZodUUID, params));
|
|
5422
|
+
inst.uuidv4 = (params) => inst.check(/* @__PURE__ */ _uuidv4(ZodUUID, params));
|
|
5423
|
+
inst.uuidv6 = (params) => inst.check(/* @__PURE__ */ _uuidv6(ZodUUID, params));
|
|
5424
|
+
inst.uuidv7 = (params) => inst.check(/* @__PURE__ */ _uuidv7(ZodUUID, params));
|
|
5425
|
+
inst.nanoid = (params) => inst.check(/* @__PURE__ */ _nanoid(ZodNanoID, params));
|
|
5426
|
+
inst.guid = (params) => inst.check(/* @__PURE__ */ _guid(ZodGUID, params));
|
|
5427
|
+
inst.cuid = (params) => inst.check(/* @__PURE__ */ _cuid(ZodCUID, params));
|
|
5428
|
+
inst.cuid2 = (params) => inst.check(/* @__PURE__ */ _cuid2(ZodCUID2, params));
|
|
5429
|
+
inst.ulid = (params) => inst.check(/* @__PURE__ */ _ulid(ZodULID, params));
|
|
5430
|
+
inst.base64 = (params) => inst.check(/* @__PURE__ */ _base64(ZodBase64, params));
|
|
5431
|
+
inst.base64url = (params) => inst.check(/* @__PURE__ */ _base64url(ZodBase64URL, params));
|
|
5432
|
+
inst.xid = (params) => inst.check(/* @__PURE__ */ _xid(ZodXID, params));
|
|
5433
|
+
inst.ksuid = (params) => inst.check(/* @__PURE__ */ _ksuid(ZodKSUID, params));
|
|
5434
|
+
inst.ipv4 = (params) => inst.check(/* @__PURE__ */ _ipv4(ZodIPv4, params));
|
|
5435
|
+
inst.ipv6 = (params) => inst.check(/* @__PURE__ */ _ipv6(ZodIPv6, params));
|
|
5436
|
+
inst.cidrv4 = (params) => inst.check(/* @__PURE__ */ _cidrv4(ZodCIDRv4, params));
|
|
5437
|
+
inst.cidrv6 = (params) => inst.check(/* @__PURE__ */ _cidrv6(ZodCIDRv6, params));
|
|
5438
|
+
inst.e164 = (params) => inst.check(/* @__PURE__ */ _e164(ZodE164, params));
|
|
5475
5439
|
inst.datetime = (params) => inst.check(datetime(params));
|
|
5476
5440
|
inst.date = (params) => inst.check(date(params));
|
|
5477
5441
|
inst.time = (params) => inst.check(time(params));
|
|
5478
5442
|
inst.duration = (params) => inst.check(duration(params));
|
|
5479
5443
|
});
|
|
5480
5444
|
function string(params) {
|
|
5481
|
-
return _string(ZodString, params);
|
|
5445
|
+
return /* @__PURE__ */ _string(ZodString, params);
|
|
5482
5446
|
}
|
|
5483
5447
|
const ZodStringFormat = /* @__PURE__ */ $constructor("ZodStringFormat", (inst, def) => {
|
|
5484
5448
|
$ZodStringFormat.init(inst, def);
|
|
@@ -5501,7 +5465,7 @@ const ZodURL = /* @__PURE__ */ $constructor("ZodURL", (inst, def) => {
|
|
|
5501
5465
|
ZodStringFormat.init(inst, def);
|
|
5502
5466
|
});
|
|
5503
5467
|
function url(params) {
|
|
5504
|
-
return _url(ZodURL, params);
|
|
5468
|
+
return /* @__PURE__ */ _url(ZodURL, params);
|
|
5505
5469
|
}
|
|
5506
5470
|
const ZodEmoji = /* @__PURE__ */ $constructor("ZodEmoji", (inst, def) => {
|
|
5507
5471
|
$ZodEmoji.init(inst, def);
|
|
@@ -5567,20 +5531,20 @@ const ZodNumber = /* @__PURE__ */ $constructor("ZodNumber", (inst, def) => {
|
|
|
5567
5531
|
$ZodNumber.init(inst, def);
|
|
5568
5532
|
ZodType.init(inst, def);
|
|
5569
5533
|
inst._zod.processJSONSchema = (ctx, json, params) => numberProcessor(inst, ctx, json, params);
|
|
5570
|
-
inst.gt = (value, params) => inst.check(_gt(value, params));
|
|
5571
|
-
inst.gte = (value, params) => inst.check(_gte(value, params));
|
|
5572
|
-
inst.min = (value, params) => inst.check(_gte(value, params));
|
|
5573
|
-
inst.lt = (value, params) => inst.check(_lt(value, params));
|
|
5574
|
-
inst.lte = (value, params) => inst.check(_lte(value, params));
|
|
5575
|
-
inst.max = (value, params) => inst.check(_lte(value, params));
|
|
5534
|
+
inst.gt = (value, params) => inst.check(/* @__PURE__ */ _gt(value, params));
|
|
5535
|
+
inst.gte = (value, params) => inst.check(/* @__PURE__ */ _gte(value, params));
|
|
5536
|
+
inst.min = (value, params) => inst.check(/* @__PURE__ */ _gte(value, params));
|
|
5537
|
+
inst.lt = (value, params) => inst.check(/* @__PURE__ */ _lt(value, params));
|
|
5538
|
+
inst.lte = (value, params) => inst.check(/* @__PURE__ */ _lte(value, params));
|
|
5539
|
+
inst.max = (value, params) => inst.check(/* @__PURE__ */ _lte(value, params));
|
|
5576
5540
|
inst.int = (params) => inst.check(int(params));
|
|
5577
5541
|
inst.safe = (params) => inst.check(int(params));
|
|
5578
|
-
inst.positive = (params) => inst.check(_gt(0, params));
|
|
5579
|
-
inst.nonnegative = (params) => inst.check(_gte(0, params));
|
|
5580
|
-
inst.negative = (params) => inst.check(_lt(0, params));
|
|
5581
|
-
inst.nonpositive = (params) => inst.check(_lte(0, params));
|
|
5582
|
-
inst.multipleOf = (value, params) => inst.check(_multipleOf(value, params));
|
|
5583
|
-
inst.step = (value, params) => inst.check(_multipleOf(value, params));
|
|
5542
|
+
inst.positive = (params) => inst.check(/* @__PURE__ */ _gt(0, params));
|
|
5543
|
+
inst.nonnegative = (params) => inst.check(/* @__PURE__ */ _gte(0, params));
|
|
5544
|
+
inst.negative = (params) => inst.check(/* @__PURE__ */ _lt(0, params));
|
|
5545
|
+
inst.nonpositive = (params) => inst.check(/* @__PURE__ */ _lte(0, params));
|
|
5546
|
+
inst.multipleOf = (value, params) => inst.check(/* @__PURE__ */ _multipleOf(value, params));
|
|
5547
|
+
inst.step = (value, params) => inst.check(/* @__PURE__ */ _multipleOf(value, params));
|
|
5584
5548
|
inst.finite = () => inst;
|
|
5585
5549
|
const bag = inst._zod.bag;
|
|
5586
5550
|
inst.minValue = Math.max(bag.minimum ?? Number.NEGATIVE_INFINITY, bag.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null;
|
|
@@ -5590,14 +5554,14 @@ const ZodNumber = /* @__PURE__ */ $constructor("ZodNumber", (inst, def) => {
|
|
|
5590
5554
|
inst.format = bag.format ?? null;
|
|
5591
5555
|
});
|
|
5592
5556
|
function number$1(params) {
|
|
5593
|
-
return _number(ZodNumber, params);
|
|
5557
|
+
return /* @__PURE__ */ _number(ZodNumber, params);
|
|
5594
5558
|
}
|
|
5595
5559
|
const ZodNumberFormat = /* @__PURE__ */ $constructor("ZodNumberFormat", (inst, def) => {
|
|
5596
5560
|
$ZodNumberFormat.init(inst, def);
|
|
5597
5561
|
ZodNumber.init(inst, def);
|
|
5598
5562
|
});
|
|
5599
5563
|
function int(params) {
|
|
5600
|
-
return _int(ZodNumberFormat, params);
|
|
5564
|
+
return /* @__PURE__ */ _int(ZodNumberFormat, params);
|
|
5601
5565
|
}
|
|
5602
5566
|
const ZodBoolean = /* @__PURE__ */ $constructor("ZodBoolean", (inst, def) => {
|
|
5603
5567
|
$ZodBoolean.init(inst, def);
|
|
@@ -5605,7 +5569,7 @@ const ZodBoolean = /* @__PURE__ */ $constructor("ZodBoolean", (inst, def) => {
|
|
|
5605
5569
|
inst._zod.processJSONSchema = (ctx, json, params) => booleanProcessor(inst, ctx, json, params);
|
|
5606
5570
|
});
|
|
5607
5571
|
function boolean$1(params) {
|
|
5608
|
-
return _boolean(ZodBoolean, params);
|
|
5572
|
+
return /* @__PURE__ */ _boolean(ZodBoolean, params);
|
|
5609
5573
|
}
|
|
5610
5574
|
const ZodUndefined = /* @__PURE__ */ $constructor("ZodUndefined", (inst, def) => {
|
|
5611
5575
|
$ZodUndefined.init(inst, def);
|
|
@@ -5613,7 +5577,7 @@ const ZodUndefined = /* @__PURE__ */ $constructor("ZodUndefined", (inst, def) =>
|
|
|
5613
5577
|
inst._zod.processJSONSchema = (ctx, json, params) => undefinedProcessor(inst, ctx, json, params);
|
|
5614
5578
|
});
|
|
5615
5579
|
function _undefined(params) {
|
|
5616
|
-
return _undefined$1(ZodUndefined, params);
|
|
5580
|
+
return /* @__PURE__ */ _undefined$1(ZodUndefined, params);
|
|
5617
5581
|
}
|
|
5618
5582
|
const ZodNull = /* @__PURE__ */ $constructor("ZodNull", (inst, def) => {
|
|
5619
5583
|
$ZodNull.init(inst, def);
|
|
@@ -5621,7 +5585,7 @@ const ZodNull = /* @__PURE__ */ $constructor("ZodNull", (inst, def) => {
|
|
|
5621
5585
|
inst._zod.processJSONSchema = (ctx, json, params) => nullProcessor(inst, ctx, json, params);
|
|
5622
5586
|
});
|
|
5623
5587
|
function _null(params) {
|
|
5624
|
-
return _null$1(ZodNull, params);
|
|
5588
|
+
return /* @__PURE__ */ _null$1(ZodNull, params);
|
|
5625
5589
|
}
|
|
5626
5590
|
const ZodAny = /* @__PURE__ */ $constructor("ZodAny", (inst, def) => {
|
|
5627
5591
|
$ZodAny.init(inst, def);
|
|
@@ -5629,7 +5593,7 @@ const ZodAny = /* @__PURE__ */ $constructor("ZodAny", (inst, def) => {
|
|
|
5629
5593
|
inst._zod.processJSONSchema = (ctx, json, params) => anyProcessor(inst, ctx, json, params);
|
|
5630
5594
|
});
|
|
5631
5595
|
function any() {
|
|
5632
|
-
return _any(ZodAny);
|
|
5596
|
+
return /* @__PURE__ */ _any(ZodAny);
|
|
5633
5597
|
}
|
|
5634
5598
|
const ZodUnknown = /* @__PURE__ */ $constructor("ZodUnknown", (inst, def) => {
|
|
5635
5599
|
$ZodUnknown.init(inst, def);
|
|
@@ -5637,7 +5601,7 @@ const ZodUnknown = /* @__PURE__ */ $constructor("ZodUnknown", (inst, def) => {
|
|
|
5637
5601
|
inst._zod.processJSONSchema = (ctx, json, params) => unknownProcessor(inst, ctx, json, params);
|
|
5638
5602
|
});
|
|
5639
5603
|
function unknown() {
|
|
5640
|
-
return _unknown(ZodUnknown);
|
|
5604
|
+
return /* @__PURE__ */ _unknown(ZodUnknown);
|
|
5641
5605
|
}
|
|
5642
5606
|
const ZodNever = /* @__PURE__ */ $constructor("ZodNever", (inst, def) => {
|
|
5643
5607
|
$ZodNever.init(inst, def);
|
|
@@ -5645,21 +5609,21 @@ const ZodNever = /* @__PURE__ */ $constructor("ZodNever", (inst, def) => {
|
|
|
5645
5609
|
inst._zod.processJSONSchema = (ctx, json, params) => neverProcessor(inst, ctx, json, params);
|
|
5646
5610
|
});
|
|
5647
5611
|
function never(params) {
|
|
5648
|
-
return _never(ZodNever, params);
|
|
5612
|
+
return /* @__PURE__ */ _never(ZodNever, params);
|
|
5649
5613
|
}
|
|
5650
5614
|
const ZodArray = /* @__PURE__ */ $constructor("ZodArray", (inst, def) => {
|
|
5651
5615
|
$ZodArray.init(inst, def);
|
|
5652
5616
|
ZodType.init(inst, def);
|
|
5653
5617
|
inst._zod.processJSONSchema = (ctx, json, params) => arrayProcessor(inst, ctx, json, params);
|
|
5654
5618
|
inst.element = def.element;
|
|
5655
|
-
inst.min = (minLength, params) => inst.check(_minLength(minLength, params));
|
|
5656
|
-
inst.nonempty = (params) => inst.check(_minLength(1, params));
|
|
5657
|
-
inst.max = (maxLength, params) => inst.check(_maxLength(maxLength, params));
|
|
5658
|
-
inst.length = (len, params) => inst.check(_length(len, params));
|
|
5619
|
+
inst.min = (minLength, params) => inst.check(/* @__PURE__ */ _minLength(minLength, params));
|
|
5620
|
+
inst.nonempty = (params) => inst.check(/* @__PURE__ */ _minLength(1, params));
|
|
5621
|
+
inst.max = (maxLength, params) => inst.check(/* @__PURE__ */ _maxLength(maxLength, params));
|
|
5622
|
+
inst.length = (len, params) => inst.check(/* @__PURE__ */ _length(len, params));
|
|
5659
5623
|
inst.unwrap = () => inst.element;
|
|
5660
5624
|
});
|
|
5661
5625
|
function array(element, params) {
|
|
5662
|
-
return _array(ZodArray, element, params);
|
|
5626
|
+
return /* @__PURE__ */ _array(ZodArray, element, params);
|
|
5663
5627
|
}
|
|
5664
5628
|
const ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => {
|
|
5665
5629
|
$ZodObjectJIT.init(inst, def);
|
|
@@ -5772,12 +5736,11 @@ const ZodTuple = /* @__PURE__ */ $constructor("ZodTuple", (inst, def) => {
|
|
|
5772
5736
|
});
|
|
5773
5737
|
function tuple(items, _paramsOrRest, _params) {
|
|
5774
5738
|
const hasRest = _paramsOrRest instanceof $ZodType;
|
|
5775
|
-
const params = hasRest ? _params : _paramsOrRest;
|
|
5776
5739
|
return new ZodTuple({
|
|
5777
5740
|
type: "tuple",
|
|
5778
5741
|
items,
|
|
5779
5742
|
rest: hasRest ? _paramsOrRest : null,
|
|
5780
|
-
...normalizeParams(
|
|
5743
|
+
...normalizeParams(hasRest ? _params : _paramsOrRest)
|
|
5781
5744
|
});
|
|
5782
5745
|
}
|
|
5783
5746
|
const ZodRecord = /* @__PURE__ */ $constructor("ZodRecord", (inst, def) => {
|
|
@@ -6019,16 +5982,14 @@ const ZodCustom = /* @__PURE__ */ $constructor("ZodCustom", (inst, def) => {
|
|
|
6019
5982
|
inst._zod.processJSONSchema = (ctx, json, params) => customProcessor(inst, ctx, json, params);
|
|
6020
5983
|
});
|
|
6021
5984
|
function custom(fn, _params) {
|
|
6022
|
-
return _custom(ZodCustom, fn ?? (() => true), _params);
|
|
5985
|
+
return /* @__PURE__ */ _custom(ZodCustom, fn ?? (() => true), _params);
|
|
6023
5986
|
}
|
|
6024
5987
|
function refine(fn, _params = {}) {
|
|
6025
|
-
return _refine(ZodCustom, fn, _params);
|
|
5988
|
+
return /* @__PURE__ */ _refine(ZodCustom, fn, _params);
|
|
6026
5989
|
}
|
|
6027
5990
|
function superRefine(fn) {
|
|
6028
|
-
return _superRefine(fn);
|
|
5991
|
+
return /* @__PURE__ */ _superRefine(fn);
|
|
6029
5992
|
}
|
|
6030
|
-
const describe = describe$1;
|
|
6031
|
-
const meta = meta$1;
|
|
6032
5993
|
function _instanceof(cls, params = {}) {
|
|
6033
5994
|
const inst = new ZodCustom({
|
|
6034
5995
|
type: "custom",
|
|
@@ -6052,7 +6013,6 @@ function _instanceof(cls, params = {}) {
|
|
|
6052
6013
|
function preprocess(fn, schema) {
|
|
6053
6014
|
return pipe(transform(fn), schema);
|
|
6054
6015
|
}
|
|
6055
|
-
|
|
6056
6016
|
//#endregion
|
|
6057
6017
|
//#region ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/compat.js
|
|
6058
6018
|
/** @deprecated Use the raw string literal codes instead, e.g. "invalid_type". */
|
|
@@ -6072,16 +6032,14 @@ const ZodIssueCode = {
|
|
|
6072
6032
|
/** @deprecated Do not use. Stub definition, only included for zod-to-json-schema compatibility. */
|
|
6073
6033
|
var ZodFirstPartyTypeKind;
|
|
6074
6034
|
(function(ZodFirstPartyTypeKind) {})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
|
|
6075
|
-
|
|
6076
6035
|
//#endregion
|
|
6077
6036
|
//#region ../../node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/coerce.js
|
|
6078
6037
|
function number(params) {
|
|
6079
|
-
return _coercedNumber(ZodNumber, params);
|
|
6038
|
+
return /* @__PURE__ */ _coercedNumber(ZodNumber, params);
|
|
6080
6039
|
}
|
|
6081
6040
|
function boolean(params) {
|
|
6082
|
-
return _coercedBoolean(ZodBoolean, params);
|
|
6041
|
+
return /* @__PURE__ */ _coercedBoolean(ZodBoolean, params);
|
|
6083
6042
|
}
|
|
6084
|
-
|
|
6085
6043
|
//#endregion
|
|
6086
6044
|
//#region ../../packages/core/src/known-models/model-tiers.ts
|
|
6087
6045
|
const modelTierSchema$1 = _enum([
|
|
@@ -6123,7 +6081,6 @@ function resolveModelTierWithFallback(providerName) {
|
|
|
6123
6081
|
if (model) return model;
|
|
6124
6082
|
}
|
|
6125
6083
|
}
|
|
6126
|
-
|
|
6127
6084
|
//#endregion
|
|
6128
6085
|
//#region ../../packages/core/src/known-models/index.ts
|
|
6129
6086
|
const knownModels = [
|
|
@@ -6371,7 +6328,6 @@ const knownModels = [
|
|
|
6371
6328
|
]
|
|
6372
6329
|
}
|
|
6373
6330
|
];
|
|
6374
|
-
|
|
6375
6331
|
//#endregion
|
|
6376
6332
|
//#region ../../packages/core/src/schemas/message-part.ts
|
|
6377
6333
|
const basePartSchema = object({ id: string() });
|
|
@@ -6443,7 +6399,6 @@ const messagePartSchema = discriminatedUnion("type", [
|
|
|
6443
6399
|
toolResultPartSchema,
|
|
6444
6400
|
thinkingPartSchema
|
|
6445
6401
|
]);
|
|
6446
|
-
|
|
6447
6402
|
//#endregion
|
|
6448
6403
|
//#region ../../packages/core/src/schemas/activity.ts
|
|
6449
6404
|
const baseActivitySchema = object({
|
|
@@ -6458,181 +6413,157 @@ const baseActivitySchema = object({
|
|
|
6458
6413
|
reasoning: string().optional(),
|
|
6459
6414
|
timestamp: number$1()
|
|
6460
6415
|
});
|
|
6461
|
-
const queryActivitySchema = baseActivitySchema.extend({
|
|
6462
|
-
type: literal("query"),
|
|
6463
|
-
text: string()
|
|
6464
|
-
});
|
|
6465
|
-
const retryActivitySchema = baseActivitySchema.extend({
|
|
6466
|
-
type: literal("retry"),
|
|
6467
|
-
error: string(),
|
|
6468
|
-
message: string()
|
|
6469
|
-
});
|
|
6470
|
-
const completeActivitySchema = baseActivitySchema.extend({
|
|
6471
|
-
type: literal("complete"),
|
|
6472
|
-
text: string()
|
|
6473
|
-
});
|
|
6474
|
-
const errorActivitySchema = baseActivitySchema.extend({
|
|
6475
|
-
type: literal("error"),
|
|
6476
|
-
error: string().optional(),
|
|
6477
|
-
errorName: string().optional(),
|
|
6478
|
-
isRetryable: boolean$1().optional()
|
|
6479
|
-
});
|
|
6480
|
-
const attemptCompletionActivitySchema = baseActivitySchema.extend({
|
|
6481
|
-
type: literal("attemptCompletion"),
|
|
6482
|
-
remainingTodos: array(object({
|
|
6483
|
-
id: number$1(),
|
|
6484
|
-
title: string(),
|
|
6485
|
-
completed: boolean$1()
|
|
6486
|
-
})).optional(),
|
|
6487
|
-
error: string().optional()
|
|
6488
|
-
});
|
|
6489
|
-
const todoActivitySchema = baseActivitySchema.extend({
|
|
6490
|
-
type: literal("todo"),
|
|
6491
|
-
newTodos: array(string()).optional(),
|
|
6492
|
-
completedTodos: array(number$1()).optional(),
|
|
6493
|
-
todos: array(object({
|
|
6494
|
-
id: number$1(),
|
|
6495
|
-
title: string(),
|
|
6496
|
-
completed: boolean$1()
|
|
6497
|
-
})),
|
|
6498
|
-
error: string().optional()
|
|
6499
|
-
});
|
|
6500
|
-
const clearTodoActivitySchema = baseActivitySchema.extend({
|
|
6501
|
-
type: literal("clearTodo"),
|
|
6502
|
-
error: string().optional()
|
|
6503
|
-
});
|
|
6504
|
-
const readImageFileActivitySchema = baseActivitySchema.extend({
|
|
6505
|
-
type: literal("readImageFile"),
|
|
6506
|
-
path: string(),
|
|
6507
|
-
mimeType: string().optional(),
|
|
6508
|
-
size: number$1().optional(),
|
|
6509
|
-
error: string().optional()
|
|
6510
|
-
});
|
|
6511
|
-
const readPdfFileActivitySchema = baseActivitySchema.extend({
|
|
6512
|
-
type: literal("readPdfFile"),
|
|
6513
|
-
path: string(),
|
|
6514
|
-
mimeType: string().optional(),
|
|
6515
|
-
size: number$1().optional(),
|
|
6516
|
-
error: string().optional()
|
|
6517
|
-
});
|
|
6518
|
-
const readTextFileActivitySchema = baseActivitySchema.extend({
|
|
6519
|
-
type: literal("readTextFile"),
|
|
6520
|
-
path: string(),
|
|
6521
|
-
content: string().optional(),
|
|
6522
|
-
from: number$1().optional(),
|
|
6523
|
-
to: number$1().optional(),
|
|
6524
|
-
error: string().optional()
|
|
6525
|
-
});
|
|
6526
|
-
const editTextFileActivitySchema = baseActivitySchema.extend({
|
|
6527
|
-
type: literal("editTextFile"),
|
|
6528
|
-
path: string(),
|
|
6529
|
-
newText: string(),
|
|
6530
|
-
oldText: string(),
|
|
6531
|
-
error: string().optional()
|
|
6532
|
-
});
|
|
6533
|
-
const writeTextFileActivitySchema = baseActivitySchema.extend({
|
|
6534
|
-
type: literal("writeTextFile"),
|
|
6535
|
-
path: string(),
|
|
6536
|
-
text: string(),
|
|
6537
|
-
error: string().optional()
|
|
6538
|
-
});
|
|
6539
|
-
const execActivitySchema = baseActivitySchema.extend({
|
|
6540
|
-
type: literal("exec"),
|
|
6541
|
-
command: string(),
|
|
6542
|
-
args: array(string()),
|
|
6543
|
-
cwd: string(),
|
|
6544
|
-
output: string().optional(),
|
|
6545
|
-
error: string().optional(),
|
|
6546
|
-
stdout: string().optional(),
|
|
6547
|
-
stderr: string().optional()
|
|
6548
|
-
});
|
|
6549
|
-
const delegateActivitySchema = baseActivitySchema.extend({
|
|
6550
|
-
type: literal("delegate"),
|
|
6551
|
-
delegateExpertKey: string(),
|
|
6552
|
-
query: string()
|
|
6553
|
-
});
|
|
6554
|
-
const delegationCompleteActivitySchema = baseActivitySchema.extend({
|
|
6555
|
-
type: literal("delegationComplete"),
|
|
6556
|
-
count: number$1()
|
|
6557
|
-
});
|
|
6558
|
-
const interactiveToolActivitySchema = baseActivitySchema.extend({
|
|
6559
|
-
type: literal("interactiveTool"),
|
|
6560
|
-
skillName: string(),
|
|
6561
|
-
toolName: string(),
|
|
6562
|
-
args: record(string(), unknown())
|
|
6563
|
-
});
|
|
6564
|
-
const generalToolActivitySchema = baseActivitySchema.extend({
|
|
6565
|
-
type: literal("generalTool"),
|
|
6566
|
-
skillName: string(),
|
|
6567
|
-
toolName: string(),
|
|
6568
|
-
args: record(string(), unknown()),
|
|
6569
|
-
result: array(messagePartSchema).optional(),
|
|
6570
|
-
error: string().optional()
|
|
6571
|
-
});
|
|
6572
|
-
const addSkillActivitySchema = baseActivitySchema.extend({
|
|
6573
|
-
type: literal("addSkill"),
|
|
6574
|
-
name: string(),
|
|
6575
|
-
skillType: string(),
|
|
6576
|
-
tools: array(string()).optional(),
|
|
6577
|
-
error: string().optional()
|
|
6578
|
-
});
|
|
6579
|
-
const removeSkillActivitySchema = baseActivitySchema.extend({
|
|
6580
|
-
type: literal("removeSkill"),
|
|
6581
|
-
skillName: string(),
|
|
6582
|
-
error: string().optional()
|
|
6583
|
-
});
|
|
6584
|
-
const addDelegateActivitySchema = baseActivitySchema.extend({
|
|
6585
|
-
type: literal("addDelegate"),
|
|
6586
|
-
targetExpertKey: string(),
|
|
6587
|
-
delegateToolName: string().optional(),
|
|
6588
|
-
error: string().optional()
|
|
6589
|
-
});
|
|
6590
|
-
const removeDelegateActivitySchema = baseActivitySchema.extend({
|
|
6591
|
-
type: literal("removeDelegate"),
|
|
6592
|
-
expertName: string(),
|
|
6593
|
-
error: string().optional()
|
|
6594
|
-
});
|
|
6595
|
-
const createExpertActivitySchema = baseActivitySchema.extend({
|
|
6596
|
-
type: literal("createExpert"),
|
|
6597
|
-
targetKey: string(),
|
|
6598
|
-
description: string().optional(),
|
|
6599
|
-
resultExpertKey: string().optional(),
|
|
6600
|
-
error: string().optional()
|
|
6601
|
-
});
|
|
6602
6416
|
const activitySchema = discriminatedUnion("type", [
|
|
6603
|
-
|
|
6604
|
-
|
|
6605
|
-
|
|
6606
|
-
|
|
6607
|
-
|
|
6608
|
-
|
|
6609
|
-
|
|
6610
|
-
|
|
6611
|
-
|
|
6612
|
-
|
|
6613
|
-
|
|
6614
|
-
|
|
6615
|
-
|
|
6616
|
-
|
|
6617
|
-
|
|
6618
|
-
|
|
6619
|
-
|
|
6620
|
-
|
|
6621
|
-
|
|
6622
|
-
|
|
6623
|
-
|
|
6624
|
-
|
|
6417
|
+
baseActivitySchema.extend({
|
|
6418
|
+
type: literal("query"),
|
|
6419
|
+
text: string()
|
|
6420
|
+
}),
|
|
6421
|
+
baseActivitySchema.extend({
|
|
6422
|
+
type: literal("retry"),
|
|
6423
|
+
error: string(),
|
|
6424
|
+
message: string()
|
|
6425
|
+
}),
|
|
6426
|
+
baseActivitySchema.extend({
|
|
6427
|
+
type: literal("complete"),
|
|
6428
|
+
text: string()
|
|
6429
|
+
}),
|
|
6430
|
+
baseActivitySchema.extend({
|
|
6431
|
+
type: literal("error"),
|
|
6432
|
+
error: string().optional(),
|
|
6433
|
+
errorName: string().optional(),
|
|
6434
|
+
isRetryable: boolean$1().optional()
|
|
6435
|
+
}),
|
|
6436
|
+
baseActivitySchema.extend({
|
|
6437
|
+
type: literal("attemptCompletion"),
|
|
6438
|
+
remainingTodos: array(object({
|
|
6439
|
+
id: number$1(),
|
|
6440
|
+
title: string(),
|
|
6441
|
+
completed: boolean$1()
|
|
6442
|
+
})).optional(),
|
|
6443
|
+
error: string().optional()
|
|
6444
|
+
}),
|
|
6445
|
+
baseActivitySchema.extend({
|
|
6446
|
+
type: literal("todo"),
|
|
6447
|
+
newTodos: array(string()).optional(),
|
|
6448
|
+
completedTodos: array(number$1()).optional(),
|
|
6449
|
+
todos: array(object({
|
|
6450
|
+
id: number$1(),
|
|
6451
|
+
title: string(),
|
|
6452
|
+
completed: boolean$1()
|
|
6453
|
+
})),
|
|
6454
|
+
error: string().optional()
|
|
6455
|
+
}),
|
|
6456
|
+
baseActivitySchema.extend({
|
|
6457
|
+
type: literal("clearTodo"),
|
|
6458
|
+
error: string().optional()
|
|
6459
|
+
}),
|
|
6460
|
+
baseActivitySchema.extend({
|
|
6461
|
+
type: literal("readImageFile"),
|
|
6462
|
+
path: string(),
|
|
6463
|
+
mimeType: string().optional(),
|
|
6464
|
+
size: number$1().optional(),
|
|
6465
|
+
error: string().optional()
|
|
6466
|
+
}),
|
|
6467
|
+
baseActivitySchema.extend({
|
|
6468
|
+
type: literal("readPdfFile"),
|
|
6469
|
+
path: string(),
|
|
6470
|
+
mimeType: string().optional(),
|
|
6471
|
+
size: number$1().optional(),
|
|
6472
|
+
error: string().optional()
|
|
6473
|
+
}),
|
|
6474
|
+
baseActivitySchema.extend({
|
|
6475
|
+
type: literal("readTextFile"),
|
|
6476
|
+
path: string(),
|
|
6477
|
+
content: string().optional(),
|
|
6478
|
+
from: number$1().optional(),
|
|
6479
|
+
to: number$1().optional(),
|
|
6480
|
+
error: string().optional()
|
|
6481
|
+
}),
|
|
6482
|
+
baseActivitySchema.extend({
|
|
6483
|
+
type: literal("editTextFile"),
|
|
6484
|
+
path: string(),
|
|
6485
|
+
newText: string(),
|
|
6486
|
+
oldText: string(),
|
|
6487
|
+
error: string().optional()
|
|
6488
|
+
}),
|
|
6489
|
+
baseActivitySchema.extend({
|
|
6490
|
+
type: literal("writeTextFile"),
|
|
6491
|
+
path: string(),
|
|
6492
|
+
text: string(),
|
|
6493
|
+
error: string().optional()
|
|
6494
|
+
}),
|
|
6495
|
+
baseActivitySchema.extend({
|
|
6496
|
+
type: literal("exec"),
|
|
6497
|
+
command: string(),
|
|
6498
|
+
args: array(string()),
|
|
6499
|
+
cwd: string(),
|
|
6500
|
+
output: string().optional(),
|
|
6501
|
+
error: string().optional(),
|
|
6502
|
+
stdout: string().optional(),
|
|
6503
|
+
stderr: string().optional()
|
|
6504
|
+
}),
|
|
6505
|
+
baseActivitySchema.extend({
|
|
6506
|
+
type: literal("delegate"),
|
|
6507
|
+
delegateExpertKey: string(),
|
|
6508
|
+
query: string()
|
|
6509
|
+
}),
|
|
6510
|
+
baseActivitySchema.extend({
|
|
6511
|
+
type: literal("delegationComplete"),
|
|
6512
|
+
count: number$1()
|
|
6513
|
+
}),
|
|
6514
|
+
baseActivitySchema.extend({
|
|
6515
|
+
type: literal("interactiveTool"),
|
|
6516
|
+
skillName: string(),
|
|
6517
|
+
toolName: string(),
|
|
6518
|
+
args: record(string(), unknown())
|
|
6519
|
+
}),
|
|
6520
|
+
baseActivitySchema.extend({
|
|
6521
|
+
type: literal("generalTool"),
|
|
6522
|
+
skillName: string(),
|
|
6523
|
+
toolName: string(),
|
|
6524
|
+
args: record(string(), unknown()),
|
|
6525
|
+
result: array(messagePartSchema).optional(),
|
|
6526
|
+
error: string().optional()
|
|
6527
|
+
}),
|
|
6528
|
+
baseActivitySchema.extend({
|
|
6529
|
+
type: literal("addSkill"),
|
|
6530
|
+
name: string(),
|
|
6531
|
+
skillType: string(),
|
|
6532
|
+
tools: array(string()).optional(),
|
|
6533
|
+
error: string().optional()
|
|
6534
|
+
}),
|
|
6535
|
+
baseActivitySchema.extend({
|
|
6536
|
+
type: literal("removeSkill"),
|
|
6537
|
+
skillName: string(),
|
|
6538
|
+
error: string().optional()
|
|
6539
|
+
}),
|
|
6540
|
+
baseActivitySchema.extend({
|
|
6541
|
+
type: literal("addDelegate"),
|
|
6542
|
+
targetExpertKey: string(),
|
|
6543
|
+
delegateToolName: string().optional(),
|
|
6544
|
+
error: string().optional()
|
|
6545
|
+
}),
|
|
6546
|
+
baseActivitySchema.extend({
|
|
6547
|
+
type: literal("removeDelegate"),
|
|
6548
|
+
expertName: string(),
|
|
6549
|
+
error: string().optional()
|
|
6550
|
+
}),
|
|
6551
|
+
baseActivitySchema.extend({
|
|
6552
|
+
type: literal("createExpert"),
|
|
6553
|
+
targetKey: string(),
|
|
6554
|
+
description: string().optional(),
|
|
6555
|
+
resultExpertKey: string().optional(),
|
|
6556
|
+
error: string().optional()
|
|
6557
|
+
})
|
|
6625
6558
|
]);
|
|
6626
|
-
const
|
|
6559
|
+
const activityOrGroupSchema = union([activitySchema, object({
|
|
6627
6560
|
type: literal("parallelGroup"),
|
|
6628
6561
|
id: string(),
|
|
6629
6562
|
expertKey: string(),
|
|
6630
6563
|
runId: string(),
|
|
6631
6564
|
reasoning: string().optional(),
|
|
6632
6565
|
activities: array(activitySchema)
|
|
6633
|
-
});
|
|
6634
|
-
const activityOrGroupSchema = union([activitySchema, parallelActivitiesGroupSchema]);
|
|
6635
|
-
|
|
6566
|
+
})]);
|
|
6636
6567
|
//#endregion
|
|
6637
6568
|
//#region ../../packages/core/src/schemas/message.ts
|
|
6638
6569
|
const baseMessageSchema = object({ id: string() });
|
|
@@ -6674,25 +6605,22 @@ const messageSchema = union([
|
|
|
6674
6605
|
expertMessageSchema,
|
|
6675
6606
|
toolMessageSchema
|
|
6676
6607
|
]);
|
|
6677
|
-
|
|
6678
6608
|
//#endregion
|
|
6679
6609
|
//#region ../../packages/core/src/schemas/tool-call.ts
|
|
6680
6610
|
const toolCallSchema = object({
|
|
6681
6611
|
id: string().min(1).max(255),
|
|
6682
|
-
skillName: string().min(1).max(
|
|
6683
|
-
toolName: string().min(1).max(
|
|
6612
|
+
skillName: string().min(1).max(255),
|
|
6613
|
+
toolName: string().min(1).max(255),
|
|
6684
6614
|
args: record(string().min(1), unknown())
|
|
6685
6615
|
});
|
|
6686
|
-
|
|
6687
6616
|
//#endregion
|
|
6688
6617
|
//#region ../../packages/core/src/schemas/tool-result.ts
|
|
6689
6618
|
const toolResultSchema = object({
|
|
6690
6619
|
id: string().min(1).max(255),
|
|
6691
|
-
skillName: string().min(1).max(
|
|
6692
|
-
toolName: string().min(1).max(
|
|
6620
|
+
skillName: string().min(1).max(255),
|
|
6621
|
+
toolName: string().min(1).max(255),
|
|
6693
6622
|
result: array(messagePartSchema)
|
|
6694
6623
|
});
|
|
6695
|
-
|
|
6696
6624
|
//#endregion
|
|
6697
6625
|
//#region ../../packages/core/src/schemas/usage.ts
|
|
6698
6626
|
const usageSchema = object({
|
|
@@ -6702,7 +6630,6 @@ const usageSchema = object({
|
|
|
6702
6630
|
totalTokens: number$1(),
|
|
6703
6631
|
cachedInputTokens: number$1()
|
|
6704
6632
|
});
|
|
6705
|
-
|
|
6706
6633
|
//#endregion
|
|
6707
6634
|
//#region ../../packages/core/src/schemas/checkpoint.ts
|
|
6708
6635
|
const checkpointStatusSchema = _enum([
|
|
@@ -6762,7 +6689,6 @@ const checkpointSchema = object({
|
|
|
6762
6689
|
}).optional(),
|
|
6763
6690
|
retryCount: number$1().optional()
|
|
6764
6691
|
});
|
|
6765
|
-
|
|
6766
6692
|
//#endregion
|
|
6767
6693
|
//#region ../../packages/core/src/utils/expert-type.ts
|
|
6768
6694
|
function getExpertType(expertName) {
|
|
@@ -6821,15 +6747,12 @@ function validateAllDelegations(expertName, delegates) {
|
|
|
6821
6747
|
}
|
|
6822
6748
|
return errors;
|
|
6823
6749
|
}
|
|
6824
|
-
|
|
6825
|
-
//#endregion
|
|
6826
|
-
//#region ../../packages/core/src/schemas/provider-tools.ts
|
|
6827
|
-
const anthropicProviderToolNameSchema = _enum([
|
|
6750
|
+
_enum([
|
|
6828
6751
|
"webSearch",
|
|
6829
6752
|
"webFetch",
|
|
6830
6753
|
"codeExecution"
|
|
6831
6754
|
]);
|
|
6832
|
-
const
|
|
6755
|
+
const anthropicProviderSkillSchema = discriminatedUnion("type", [object({
|
|
6833
6756
|
type: literal("builtin"),
|
|
6834
6757
|
skillId: _enum([
|
|
6835
6758
|
"pdf",
|
|
@@ -6837,33 +6760,31 @@ const builtinAnthropicSkillSchema = object({
|
|
|
6837
6760
|
"pptx",
|
|
6838
6761
|
"xlsx"
|
|
6839
6762
|
])
|
|
6840
|
-
})
|
|
6841
|
-
const customAnthropicSkillSchema = object({
|
|
6763
|
+
}), object({
|
|
6842
6764
|
type: literal("custom"),
|
|
6843
6765
|
name: string().min(1),
|
|
6844
6766
|
definition: string().min(1)
|
|
6845
|
-
});
|
|
6846
|
-
|
|
6847
|
-
const openaiProviderToolNameSchema = _enum([
|
|
6767
|
+
})]);
|
|
6768
|
+
_enum([
|
|
6848
6769
|
"webSearch",
|
|
6849
6770
|
"fileSearch",
|
|
6850
6771
|
"codeInterpreter",
|
|
6851
6772
|
"imageGeneration"
|
|
6852
6773
|
]);
|
|
6853
|
-
|
|
6774
|
+
_enum([
|
|
6854
6775
|
"googleSearch",
|
|
6855
6776
|
"codeExecution",
|
|
6856
6777
|
"urlContext",
|
|
6857
6778
|
"fileSearch",
|
|
6858
6779
|
"googleMaps"
|
|
6859
6780
|
]);
|
|
6860
|
-
|
|
6781
|
+
_enum([
|
|
6861
6782
|
"webSearchPreview",
|
|
6862
6783
|
"fileSearch",
|
|
6863
6784
|
"codeInterpreter",
|
|
6864
6785
|
"imageGeneration"
|
|
6865
6786
|
]);
|
|
6866
|
-
|
|
6787
|
+
_enum([
|
|
6867
6788
|
"codeExecution",
|
|
6868
6789
|
"urlContext",
|
|
6869
6790
|
"googleSearch",
|
|
@@ -6884,11 +6805,9 @@ const providerToolOptionsSchema = object({
|
|
|
6884
6805
|
webFetch: webFetchOptionsSchema.optional(),
|
|
6885
6806
|
fileSearch: fileSearchOptionsSchema.optional()
|
|
6886
6807
|
}).optional();
|
|
6887
|
-
|
|
6888
6808
|
//#endregion
|
|
6889
6809
|
//#region ../../packages/core/src/schemas/runtime-version.ts
|
|
6890
6810
|
const runtimeVersionSchema$1 = string().regex(/^v\d+\.\d+$/, "Runtime version must be in format \"vX.Y\" (e.g., \"v1.0\")").transform((v) => v);
|
|
6891
|
-
|
|
6892
6811
|
//#endregion
|
|
6893
6812
|
//#region ../../packages/core/src/schemas/skill.ts
|
|
6894
6813
|
function isPrivateOrLocalIP$1(hostname) {
|
|
@@ -6964,7 +6883,6 @@ const skillSchema$1 = discriminatedUnion("type", [
|
|
|
6964
6883
|
mcpSseSkillSchema$1,
|
|
6965
6884
|
interactiveSkillSchema$1
|
|
6966
6885
|
]);
|
|
6967
|
-
|
|
6968
6886
|
//#endregion
|
|
6969
6887
|
//#region ../../packages/core/src/schemas/expert.ts
|
|
6970
6888
|
/**
|
|
@@ -6973,7 +6891,7 @@ const skillSchema$1 = discriminatedUnion("type", [
|
|
|
6973
6891
|
*/
|
|
6974
6892
|
const expertBaseSchema = object({
|
|
6975
6893
|
key: string().regex(expertKeyRegex$1).min(1),
|
|
6976
|
-
name: string().regex(expertNameRegex$1).min(1).max(
|
|
6894
|
+
name: string().regex(expertNameRegex$1).min(1).max(255),
|
|
6977
6895
|
version: string().regex(expertVersionRegex$1),
|
|
6978
6896
|
description: string().max(1024 * 2).optional(),
|
|
6979
6897
|
instruction: string().min(1).max(1024 * 20),
|
|
@@ -7019,7 +6937,6 @@ const expertSchema$1 = expertBaseSchema.superRefine((data, ctx) => {
|
|
|
7019
6937
|
path: ["delegates"]
|
|
7020
6938
|
});
|
|
7021
6939
|
});
|
|
7022
|
-
|
|
7023
6940
|
//#endregion
|
|
7024
6941
|
//#region ../../packages/core/src/schemas/job.ts
|
|
7025
6942
|
const jobStatusSchema$1 = _enum([
|
|
@@ -7039,7 +6956,6 @@ const jobSchema$1 = object({
|
|
|
7039
6956
|
startedAt: number$1(),
|
|
7040
6957
|
finishedAt: number$1().optional()
|
|
7041
6958
|
});
|
|
7042
|
-
|
|
7043
6959
|
//#endregion
|
|
7044
6960
|
//#region ../../packages/core/src/schemas/lockfile.ts
|
|
7045
6961
|
const lockfileToolDefinitionSchema = object({
|
|
@@ -7065,7 +6981,6 @@ const lockfileSchema = object({
|
|
|
7065
6981
|
configPath: string(),
|
|
7066
6982
|
experts: record(string(), lockfileExpertSchema)
|
|
7067
6983
|
});
|
|
7068
|
-
|
|
7069
6984
|
//#endregion
|
|
7070
6985
|
//#region ../../packages/core/src/schemas/provider-config.ts
|
|
7071
6986
|
const headersSchema$1 = record(string(), string()).optional();
|
|
@@ -7080,83 +6995,71 @@ const providerNameSchema = _enum([
|
|
|
7080
6995
|
"deepseek",
|
|
7081
6996
|
"fireworks"
|
|
7082
6997
|
]);
|
|
7083
|
-
const anthropicProviderConfigSchema = object({
|
|
7084
|
-
providerName: literal(providerNameSchema.enum.anthropic),
|
|
7085
|
-
apiKey: string(),
|
|
7086
|
-
baseUrl: string().optional(),
|
|
7087
|
-
headers: headersSchema$1
|
|
7088
|
-
});
|
|
7089
|
-
const googleGenerativeAiProviderConfigSchema = object({
|
|
7090
|
-
providerName: literal(providerNameSchema.enum.google),
|
|
7091
|
-
apiKey: string(),
|
|
7092
|
-
baseUrl: string().optional(),
|
|
7093
|
-
headers: headersSchema$1
|
|
7094
|
-
});
|
|
7095
|
-
const openAiProviderConfigSchema = object({
|
|
7096
|
-
providerName: literal(providerNameSchema.enum.openai),
|
|
7097
|
-
apiKey: string(),
|
|
7098
|
-
baseUrl: string().optional(),
|
|
7099
|
-
organization: string().optional(),
|
|
7100
|
-
project: string().optional(),
|
|
7101
|
-
name: string().optional(),
|
|
7102
|
-
headers: headersSchema$1
|
|
7103
|
-
});
|
|
7104
|
-
const ollamaProviderConfigSchema = object({
|
|
7105
|
-
providerName: literal(providerNameSchema.enum.ollama),
|
|
7106
|
-
baseUrl: string().optional(),
|
|
7107
|
-
headers: headersSchema$1
|
|
7108
|
-
});
|
|
7109
|
-
const azureOpenAiProviderConfigSchema = object({
|
|
7110
|
-
providerName: literal(providerNameSchema.enum["azure-openai"]),
|
|
7111
|
-
apiKey: string(),
|
|
7112
|
-
resourceName: string().optional(),
|
|
7113
|
-
apiVersion: string().optional(),
|
|
7114
|
-
baseUrl: string().optional(),
|
|
7115
|
-
headers: headersSchema$1,
|
|
7116
|
-
useDeploymentBasedUrls: boolean$1().optional()
|
|
7117
|
-
});
|
|
7118
|
-
const amazonBedrockProviderConfigSchema = object({
|
|
7119
|
-
providerName: literal(providerNameSchema.enum["amazon-bedrock"]),
|
|
7120
|
-
accessKeyId: string(),
|
|
7121
|
-
secretAccessKey: string(),
|
|
7122
|
-
region: string(),
|
|
7123
|
-
sessionToken: string().optional()
|
|
7124
|
-
});
|
|
7125
|
-
const googleVertexProviderConfigSchema = object({
|
|
7126
|
-
providerName: literal(providerNameSchema.enum["google-vertex"]),
|
|
7127
|
-
project: string().optional(),
|
|
7128
|
-
location: string().optional(),
|
|
7129
|
-
baseUrl: string().optional(),
|
|
7130
|
-
headers: headersSchema$1
|
|
7131
|
-
});
|
|
7132
|
-
const deepseekProviderConfigSchema = object({
|
|
7133
|
-
providerName: literal(providerNameSchema.enum.deepseek),
|
|
7134
|
-
apiKey: string(),
|
|
7135
|
-
baseUrl: string().optional(),
|
|
7136
|
-
headers: headersSchema$1
|
|
7137
|
-
});
|
|
7138
|
-
const fireworksProviderConfigSchema = object({
|
|
7139
|
-
providerName: literal(providerNameSchema.enum.fireworks),
|
|
7140
|
-
apiKey: string(),
|
|
7141
|
-
baseUrl: string().optional(),
|
|
7142
|
-
headers: headersSchema$1
|
|
7143
|
-
});
|
|
7144
6998
|
const providerConfigSchema = discriminatedUnion("providerName", [
|
|
7145
|
-
|
|
7146
|
-
|
|
7147
|
-
|
|
7148
|
-
|
|
7149
|
-
|
|
7150
|
-
|
|
7151
|
-
|
|
7152
|
-
|
|
7153
|
-
|
|
6999
|
+
object({
|
|
7000
|
+
providerName: literal(providerNameSchema.enum.anthropic),
|
|
7001
|
+
apiKey: string(),
|
|
7002
|
+
baseUrl: string().optional(),
|
|
7003
|
+
headers: headersSchema$1
|
|
7004
|
+
}),
|
|
7005
|
+
object({
|
|
7006
|
+
providerName: literal(providerNameSchema.enum.google),
|
|
7007
|
+
apiKey: string(),
|
|
7008
|
+
baseUrl: string().optional(),
|
|
7009
|
+
headers: headersSchema$1
|
|
7010
|
+
}),
|
|
7011
|
+
object({
|
|
7012
|
+
providerName: literal(providerNameSchema.enum.openai),
|
|
7013
|
+
apiKey: string(),
|
|
7014
|
+
baseUrl: string().optional(),
|
|
7015
|
+
organization: string().optional(),
|
|
7016
|
+
project: string().optional(),
|
|
7017
|
+
name: string().optional(),
|
|
7018
|
+
headers: headersSchema$1
|
|
7019
|
+
}),
|
|
7020
|
+
object({
|
|
7021
|
+
providerName: literal(providerNameSchema.enum.ollama),
|
|
7022
|
+
baseUrl: string().optional(),
|
|
7023
|
+
headers: headersSchema$1
|
|
7024
|
+
}),
|
|
7025
|
+
object({
|
|
7026
|
+
providerName: literal(providerNameSchema.enum["azure-openai"]),
|
|
7027
|
+
apiKey: string(),
|
|
7028
|
+
resourceName: string().optional(),
|
|
7029
|
+
apiVersion: string().optional(),
|
|
7030
|
+
baseUrl: string().optional(),
|
|
7031
|
+
headers: headersSchema$1,
|
|
7032
|
+
useDeploymentBasedUrls: boolean$1().optional()
|
|
7033
|
+
}),
|
|
7034
|
+
object({
|
|
7035
|
+
providerName: literal(providerNameSchema.enum["amazon-bedrock"]),
|
|
7036
|
+
accessKeyId: string(),
|
|
7037
|
+
secretAccessKey: string(),
|
|
7038
|
+
region: string(),
|
|
7039
|
+
sessionToken: string().optional()
|
|
7040
|
+
}),
|
|
7041
|
+
object({
|
|
7042
|
+
providerName: literal(providerNameSchema.enum["google-vertex"]),
|
|
7043
|
+
project: string().optional(),
|
|
7044
|
+
location: string().optional(),
|
|
7045
|
+
baseUrl: string().optional(),
|
|
7046
|
+
headers: headersSchema$1
|
|
7047
|
+
}),
|
|
7048
|
+
object({
|
|
7049
|
+
providerName: literal(providerNameSchema.enum.deepseek),
|
|
7050
|
+
apiKey: string(),
|
|
7051
|
+
baseUrl: string().optional(),
|
|
7052
|
+
headers: headersSchema$1
|
|
7053
|
+
}),
|
|
7054
|
+
object({
|
|
7055
|
+
providerName: literal(providerNameSchema.enum.fireworks),
|
|
7056
|
+
apiKey: string(),
|
|
7057
|
+
baseUrl: string().optional(),
|
|
7058
|
+
headers: headersSchema$1
|
|
7059
|
+
})
|
|
7154
7060
|
]);
|
|
7155
|
-
|
|
7156
7061
|
//#endregion
|
|
7157
7062
|
//#region ../../packages/core/src/schemas/perstack-toml.ts
|
|
7158
|
-
/** Default reasoning budget - enables extended thinking by default */
|
|
7159
|
-
const defaultReasoningBudget = "low";
|
|
7160
7063
|
const reasoningBudgetSchema$1 = union([_enum([
|
|
7161
7064
|
"none",
|
|
7162
7065
|
"minimal",
|
|
@@ -7215,42 +7118,41 @@ const deepseekSettingSchema = object({
|
|
|
7215
7118
|
baseUrl: httpsUrlSchema.optional(),
|
|
7216
7119
|
headers: headersSchema$1
|
|
7217
7120
|
});
|
|
7218
|
-
const providerTableSchema = discriminatedUnion("providerName", [
|
|
7219
|
-
object({
|
|
7220
|
-
providerName: literal("anthropic"),
|
|
7221
|
-
setting: anthropicSettingSchema.optional()
|
|
7222
|
-
}),
|
|
7223
|
-
object({
|
|
7224
|
-
providerName: literal("google"),
|
|
7225
|
-
setting: googleSettingSchema.optional()
|
|
7226
|
-
}),
|
|
7227
|
-
object({
|
|
7228
|
-
providerName: literal("openai"),
|
|
7229
|
-
setting: openAiSettingSchema.optional()
|
|
7230
|
-
}),
|
|
7231
|
-
object({
|
|
7232
|
-
providerName: literal("ollama"),
|
|
7233
|
-
setting: ollamaSettingSchema.optional()
|
|
7234
|
-
}),
|
|
7235
|
-
object({
|
|
7236
|
-
providerName: literal("azure-openai"),
|
|
7237
|
-
setting: azureOpenAiSettingSchema.optional()
|
|
7238
|
-
}),
|
|
7239
|
-
object({
|
|
7240
|
-
providerName: literal("amazon-bedrock"),
|
|
7241
|
-
setting: amazonBedrockSettingSchema.optional()
|
|
7242
|
-
}),
|
|
7243
|
-
object({
|
|
7244
|
-
providerName: literal("google-vertex"),
|
|
7245
|
-
setting: googleVertexSettingSchema.optional()
|
|
7246
|
-
}),
|
|
7247
|
-
object({
|
|
7248
|
-
providerName: literal("deepseek"),
|
|
7249
|
-
setting: deepseekSettingSchema.optional()
|
|
7250
|
-
})
|
|
7251
|
-
]);
|
|
7252
7121
|
const perstackConfigSchema = object({
|
|
7253
|
-
provider:
|
|
7122
|
+
provider: discriminatedUnion("providerName", [
|
|
7123
|
+
object({
|
|
7124
|
+
providerName: literal("anthropic"),
|
|
7125
|
+
setting: anthropicSettingSchema.optional()
|
|
7126
|
+
}),
|
|
7127
|
+
object({
|
|
7128
|
+
providerName: literal("google"),
|
|
7129
|
+
setting: googleSettingSchema.optional()
|
|
7130
|
+
}),
|
|
7131
|
+
object({
|
|
7132
|
+
providerName: literal("openai"),
|
|
7133
|
+
setting: openAiSettingSchema.optional()
|
|
7134
|
+
}),
|
|
7135
|
+
object({
|
|
7136
|
+
providerName: literal("ollama"),
|
|
7137
|
+
setting: ollamaSettingSchema.optional()
|
|
7138
|
+
}),
|
|
7139
|
+
object({
|
|
7140
|
+
providerName: literal("azure-openai"),
|
|
7141
|
+
setting: azureOpenAiSettingSchema.optional()
|
|
7142
|
+
}),
|
|
7143
|
+
object({
|
|
7144
|
+
providerName: literal("amazon-bedrock"),
|
|
7145
|
+
setting: amazonBedrockSettingSchema.optional()
|
|
7146
|
+
}),
|
|
7147
|
+
object({
|
|
7148
|
+
providerName: literal("google-vertex"),
|
|
7149
|
+
setting: googleVertexSettingSchema.optional()
|
|
7150
|
+
}),
|
|
7151
|
+
object({
|
|
7152
|
+
providerName: literal("deepseek"),
|
|
7153
|
+
setting: deepseekSettingSchema.optional()
|
|
7154
|
+
})
|
|
7155
|
+
]).optional(),
|
|
7254
7156
|
model: string().optional(),
|
|
7255
7157
|
reasoningBudget: reasoningBudgetSchema$1.optional(),
|
|
7256
7158
|
maxRetries: number$1().optional(),
|
|
@@ -7303,7 +7205,6 @@ const perstackConfigSchema = object({
|
|
|
7303
7205
|
perstackBaseSkillCommand: array(string()).optional(),
|
|
7304
7206
|
envPath: array(string()).optional()
|
|
7305
7207
|
});
|
|
7306
|
-
|
|
7307
7208
|
//#endregion
|
|
7308
7209
|
//#region ../../packages/core/src/schemas/run-command.ts
|
|
7309
7210
|
const commandOptionsSchema = object({
|
|
@@ -7358,7 +7259,6 @@ const startCommandInputSchema = object({
|
|
|
7358
7259
|
query: string().optional(),
|
|
7359
7260
|
options: commandOptionsSchema
|
|
7360
7261
|
});
|
|
7361
|
-
|
|
7362
7262
|
//#endregion
|
|
7363
7263
|
//#region ../../packages/core/src/schemas/runtime.ts
|
|
7364
7264
|
/** Parse an expert key into its components */
|
|
@@ -7390,7 +7290,7 @@ const runSettingSchema = object({
|
|
|
7390
7290
|
}).optional()
|
|
7391
7291
|
}),
|
|
7392
7292
|
experts: record(string(), expertSchema$1),
|
|
7393
|
-
reasoningBudget: reasoningBudgetSchema$1.default(
|
|
7293
|
+
reasoningBudget: reasoningBudgetSchema$1.default("low"),
|
|
7394
7294
|
maxRetries: number$1().min(0),
|
|
7395
7295
|
timeout: number$1().min(0),
|
|
7396
7296
|
startedAt: number$1(),
|
|
@@ -7422,8 +7322,8 @@ const runParamsSchema = object({
|
|
|
7422
7322
|
...expertWithoutKey,
|
|
7423
7323
|
key
|
|
7424
7324
|
})]))),
|
|
7425
|
-
reasoningBudget: reasoningBudgetSchema$1.optional().default(
|
|
7426
|
-
maxRetries: number$1().min(0).optional().default(
|
|
7325
|
+
reasoningBudget: reasoningBudgetSchema$1.optional().default("low"),
|
|
7326
|
+
maxRetries: number$1().min(0).optional().default(5),
|
|
7427
7327
|
timeout: number$1().min(0).optional().default(defaultTimeout),
|
|
7428
7328
|
startedAt: number$1().optional().default(Date.now()),
|
|
7429
7329
|
updatedAt: number$1().optional().default(Date.now()),
|
|
@@ -7474,7 +7374,7 @@ const finishMcpTools = createEvent("finishMcpTools");
|
|
|
7474
7374
|
const skipDelegates = createEvent("skipDelegates");
|
|
7475
7375
|
const resolveToolResults = createEvent("resolveToolResults");
|
|
7476
7376
|
const finishToolCall = createEvent("finishToolCall");
|
|
7477
|
-
|
|
7377
|
+
createEvent("resumeToolCalls");
|
|
7478
7378
|
const completeRun = createEvent("completeRun");
|
|
7479
7379
|
const stopRunByInteractiveTool = createEvent("stopRunByInteractiveTool");
|
|
7480
7380
|
const stopRunByDelegate = createEvent("stopRunByDelegate");
|
|
@@ -7541,10 +7441,7 @@ function isValidEventType(type) {
|
|
|
7541
7441
|
function isValidRuntimeEventType(type) {
|
|
7542
7442
|
return RUNTIME_EVENT_TYPES.has(type);
|
|
7543
7443
|
}
|
|
7544
|
-
|
|
7545
|
-
//#endregion
|
|
7546
|
-
//#region ../../packages/core/src/schemas/step.ts
|
|
7547
|
-
const stepSchema = object({
|
|
7444
|
+
object({
|
|
7548
7445
|
stepNumber: number$1(),
|
|
7549
7446
|
inputMessages: array(union([
|
|
7550
7447
|
instructionMessageSchema,
|
|
@@ -7560,7 +7457,6 @@ const stepSchema = object({
|
|
|
7560
7457
|
startedAt: number$1(),
|
|
7561
7458
|
finishedAt: number$1().optional()
|
|
7562
7459
|
});
|
|
7563
|
-
|
|
7564
7460
|
//#endregion
|
|
7565
7461
|
//#region ../../packages/core/src/utils/activity.ts
|
|
7566
7462
|
const BASE_SKILL_PREFIX = "@perstack/base";
|
|
@@ -7770,7 +7666,6 @@ function parseTodosFromResult(result) {
|
|
|
7770
7666
|
} catch {}
|
|
7771
7667
|
return [];
|
|
7772
7668
|
}
|
|
7773
|
-
|
|
7774
7669
|
//#endregion
|
|
7775
7670
|
//#region ../../packages/core/src/utils/env-filter.ts
|
|
7776
7671
|
const SAFE_ENV_VARS = [
|
|
@@ -7811,7 +7706,6 @@ function getFilteredEnv(additional) {
|
|
|
7811
7706
|
}
|
|
7812
7707
|
return filtered;
|
|
7813
7708
|
}
|
|
7814
|
-
|
|
7815
7709
|
//#endregion
|
|
7816
7710
|
//#region ../../packages/core/src/utils/event-filter.ts
|
|
7817
7711
|
/**
|
|
@@ -7836,7 +7730,6 @@ function createFilteredEventListener(listener, allowedTypes) {
|
|
|
7836
7730
|
if (allowedTypes.has(event.type)) listener(event);
|
|
7837
7731
|
};
|
|
7838
7732
|
}
|
|
7839
|
-
|
|
7840
7733
|
//#endregion
|
|
7841
7734
|
//#region ../../packages/core/src/utils/truncate.ts
|
|
7842
7735
|
const MAX_TOOL_OUTPUT_CHARS = 3e4;
|
|
@@ -7849,7 +7742,6 @@ function truncateText(text, maxChars = MAX_TOOL_OUTPUT_CHARS) {
|
|
|
7849
7742
|
const tail = available - head;
|
|
7850
7743
|
return text.slice(0, head) + marker + text.slice(text.length - tail);
|
|
7851
7744
|
}
|
|
7852
|
-
|
|
7853
7745
|
//#endregion
|
|
7854
7746
|
//#region ../../packages/core/src/utils/zod-error.ts
|
|
7855
7747
|
function formatZodError(error) {
|
|
@@ -7862,7 +7754,6 @@ function parseWithFriendlyError(schema, data, context) {
|
|
|
7862
7754
|
if (result.success) return result.data;
|
|
7863
7755
|
throw new PerstackError(`${context ? `${context}: ` : ""}${formatZodError(result.error)}`);
|
|
7864
7756
|
}
|
|
7865
|
-
|
|
7866
7757
|
//#endregion
|
|
7867
7758
|
//#region ../../node_modules/.bun/@perstack+api-client@0.0.58+de2fe147d1f68d1d/node_modules/@perstack/api-client/dist/index.mjs
|
|
7868
7759
|
function createValidationError(error) {
|
|
@@ -8672,40 +8563,37 @@ const sseEndpointSchema = string().max(maxSkillEndpointLength).url().refine((url
|
|
|
8672
8563
|
}, { message: "Endpoint must be a public HTTPS URL" });
|
|
8673
8564
|
const skillNameSchema = string().min(1).max(maxSkillNameLength).regex(packageWithVersionRegex);
|
|
8674
8565
|
const mcpStdioSkillCommandSchema = _enum(["npx", "uvx"]);
|
|
8675
|
-
const mcpStdioSkillSchema = object({
|
|
8676
|
-
type: literal("mcpStdioSkill"),
|
|
8677
|
-
name: string().min(1),
|
|
8678
|
-
description: string().min(1).max(maxSkillDescriptionLength),
|
|
8679
|
-
rule: string().min(1).max(maxSkillRuleLength).optional(),
|
|
8680
|
-
pick: array(string().min(1).max(maxSkillToolNameLength)).max(maxSkillPickOmitItems).optional().default([]),
|
|
8681
|
-
omit: array(string().min(1).max(maxSkillToolNameLength)).max(maxSkillPickOmitItems).optional().default([]),
|
|
8682
|
-
command: mcpStdioSkillCommandSchema,
|
|
8683
|
-
packageName: string().min(1).max(maxSkillNameLength).regex(packageWithVersionRegex),
|
|
8684
|
-
requiredEnv: array(string().min(1).max(maxEnvNameLength).regex(envNameRegex)).max(maxSkillRequiredEnvItems).optional().default([])
|
|
8685
|
-
});
|
|
8686
|
-
const mcpSseSkillSchema = object({
|
|
8687
|
-
type: literal("mcpSseSkill"),
|
|
8688
|
-
name: string().min(1),
|
|
8689
|
-
description: string().min(1).max(maxSkillDescriptionLength),
|
|
8690
|
-
rule: string().min(1).max(maxSkillRuleLength).optional(),
|
|
8691
|
-
pick: array(string().min(1).max(maxSkillToolNameLength)).max(maxSkillPickOmitItems).optional().default([]),
|
|
8692
|
-
omit: array(string().min(1).max(maxSkillToolNameLength)).max(maxSkillPickOmitItems).optional().default([]),
|
|
8693
|
-
endpoint: sseEndpointSchema
|
|
8694
|
-
});
|
|
8695
|
-
const interactiveSkillSchema = object({
|
|
8696
|
-
type: literal("interactiveSkill"),
|
|
8697
|
-
name: string().min(1),
|
|
8698
|
-
description: string().min(1).max(maxSkillDescriptionLength),
|
|
8699
|
-
rule: string().min(1).max(maxSkillRuleLength).optional(),
|
|
8700
|
-
tools: record(string().min(1).max(maxSkillToolNameLength).regex(urlSafeRegex), object({
|
|
8701
|
-
description: string().min(1).max(maxSkillDescriptionLength),
|
|
8702
|
-
inputJsonSchema: string().min(1).max(maxSkillInputJsonSchemaLength)
|
|
8703
|
-
}))
|
|
8704
|
-
});
|
|
8705
8566
|
const skillSchema = discriminatedUnion("type", [
|
|
8706
|
-
|
|
8707
|
-
|
|
8708
|
-
|
|
8567
|
+
object({
|
|
8568
|
+
type: literal("mcpStdioSkill"),
|
|
8569
|
+
name: string().min(1),
|
|
8570
|
+
description: string().min(1).max(maxSkillDescriptionLength),
|
|
8571
|
+
rule: string().min(1).max(maxSkillRuleLength).optional(),
|
|
8572
|
+
pick: array(string().min(1).max(maxSkillToolNameLength)).max(maxSkillPickOmitItems).optional().default([]),
|
|
8573
|
+
omit: array(string().min(1).max(maxSkillToolNameLength)).max(maxSkillPickOmitItems).optional().default([]),
|
|
8574
|
+
command: mcpStdioSkillCommandSchema,
|
|
8575
|
+
packageName: string().min(1).max(maxSkillNameLength).regex(packageWithVersionRegex),
|
|
8576
|
+
requiredEnv: array(string().min(1).max(maxEnvNameLength).regex(envNameRegex)).max(maxSkillRequiredEnvItems).optional().default([])
|
|
8577
|
+
}),
|
|
8578
|
+
object({
|
|
8579
|
+
type: literal("mcpSseSkill"),
|
|
8580
|
+
name: string().min(1),
|
|
8581
|
+
description: string().min(1).max(maxSkillDescriptionLength),
|
|
8582
|
+
rule: string().min(1).max(maxSkillRuleLength).optional(),
|
|
8583
|
+
pick: array(string().min(1).max(maxSkillToolNameLength)).max(maxSkillPickOmitItems).optional().default([]),
|
|
8584
|
+
omit: array(string().min(1).max(maxSkillToolNameLength)).max(maxSkillPickOmitItems).optional().default([]),
|
|
8585
|
+
endpoint: sseEndpointSchema
|
|
8586
|
+
}),
|
|
8587
|
+
object({
|
|
8588
|
+
type: literal("interactiveSkill"),
|
|
8589
|
+
name: string().min(1),
|
|
8590
|
+
description: string().min(1).max(maxSkillDescriptionLength),
|
|
8591
|
+
rule: string().min(1).max(maxSkillRuleLength).optional(),
|
|
8592
|
+
tools: record(string().min(1).max(maxSkillToolNameLength).regex(urlSafeRegex), object({
|
|
8593
|
+
description: string().min(1).max(maxSkillDescriptionLength),
|
|
8594
|
+
inputJsonSchema: string().min(1).max(maxSkillInputJsonSchemaLength)
|
|
8595
|
+
}))
|
|
8596
|
+
})
|
|
8709
8597
|
]);
|
|
8710
8598
|
const modelTierSchema = _enum([
|
|
8711
8599
|
"low",
|
|
@@ -9057,15 +8945,13 @@ const jobBaseSchema = object({
|
|
|
9057
8945
|
usage: usageSchema,
|
|
9058
8946
|
lastActivity: activityOrGroupSchema.nullable().optional()
|
|
9059
8947
|
});
|
|
9060
|
-
const
|
|
8948
|
+
const jobSchema = union([jobBaseSchema.extend({
|
|
9061
8949
|
expertVersionId: cuidSchema,
|
|
9062
8950
|
expertDraftRefId: _undefined()
|
|
9063
|
-
})
|
|
9064
|
-
const draftJobSchema = jobBaseSchema.extend({
|
|
8951
|
+
}), jobBaseSchema.extend({
|
|
9065
8952
|
expertVersionId: _undefined(),
|
|
9066
8953
|
expertDraftRefId: cuidSchema
|
|
9067
|
-
});
|
|
9068
|
-
const jobSchema = union([publishedJobSchema, draftJobSchema]);
|
|
8954
|
+
})]);
|
|
9069
8955
|
const request$7 = {
|
|
9070
8956
|
params: object({ jobId: cuidSchema }),
|
|
9071
8957
|
body: object({
|
|
@@ -9216,47 +9102,40 @@ object({
|
|
|
9216
9102
|
});
|
|
9217
9103
|
const baseUrlSchema = string().url().max(maxProviderBaseUrlLength).optional();
|
|
9218
9104
|
const headersSchema = record(string().min(1).max(maxProviderHeaderKeyLength), string().max(maxProviderHeaderValueLength)).refine((headers) => Object.keys(headers).length <= maxProviderHeadersCount, { message: `Headers must have at most ${maxProviderHeadersCount} entries` }).optional();
|
|
9219
|
-
const anthropicProviderSettingsSchema = object({
|
|
9220
|
-
baseUrl: baseUrlSchema,
|
|
9221
|
-
headers: headersSchema
|
|
9222
|
-
});
|
|
9223
|
-
const googleProviderSettingsSchema = object({
|
|
9224
|
-
baseUrl: baseUrlSchema,
|
|
9225
|
-
headers: headersSchema
|
|
9226
|
-
});
|
|
9227
|
-
const openaiProviderSettingsSchema = object({
|
|
9228
|
-
baseUrl: baseUrlSchema,
|
|
9229
|
-
headers: headersSchema,
|
|
9230
|
-
organization: string().min(1).optional(),
|
|
9231
|
-
project: string().min(1).optional(),
|
|
9232
|
-
name: string().min(1).optional()
|
|
9233
|
-
});
|
|
9234
|
-
const deepseekProviderSettingsSchema = object({
|
|
9235
|
-
baseUrl: baseUrlSchema,
|
|
9236
|
-
headers: headersSchema
|
|
9237
|
-
});
|
|
9238
|
-
const azureOpenaiProviderSettingsSchema = object({
|
|
9239
|
-
baseUrl: baseUrlSchema,
|
|
9240
|
-
headers: headersSchema,
|
|
9241
|
-
resourceName: string().min(1).optional(),
|
|
9242
|
-
apiVersion: string().min(1).optional(),
|
|
9243
|
-
useDeploymentBasedUrls: boolean$1().optional()
|
|
9244
|
-
});
|
|
9245
|
-
const amazonBedrockProviderSettingsSchema = object({ region: string().min(1).optional() });
|
|
9246
|
-
const googleVertexProviderSettingsSchema = object({
|
|
9247
|
-
baseUrl: baseUrlSchema,
|
|
9248
|
-
headers: headersSchema,
|
|
9249
|
-
project: string().min(1).optional(),
|
|
9250
|
-
location: string().min(1).optional()
|
|
9251
|
-
});
|
|
9252
9105
|
const providerSettingsSchema = union([
|
|
9253
|
-
|
|
9254
|
-
|
|
9255
|
-
|
|
9256
|
-
|
|
9257
|
-
|
|
9258
|
-
|
|
9259
|
-
|
|
9106
|
+
object({
|
|
9107
|
+
baseUrl: baseUrlSchema,
|
|
9108
|
+
headers: headersSchema
|
|
9109
|
+
}),
|
|
9110
|
+
object({
|
|
9111
|
+
baseUrl: baseUrlSchema,
|
|
9112
|
+
headers: headersSchema
|
|
9113
|
+
}),
|
|
9114
|
+
object({
|
|
9115
|
+
baseUrl: baseUrlSchema,
|
|
9116
|
+
headers: headersSchema,
|
|
9117
|
+
organization: string().min(1).optional(),
|
|
9118
|
+
project: string().min(1).optional(),
|
|
9119
|
+
name: string().min(1).optional()
|
|
9120
|
+
}),
|
|
9121
|
+
object({
|
|
9122
|
+
baseUrl: baseUrlSchema,
|
|
9123
|
+
headers: headersSchema
|
|
9124
|
+
}),
|
|
9125
|
+
object({
|
|
9126
|
+
baseUrl: baseUrlSchema,
|
|
9127
|
+
headers: headersSchema,
|
|
9128
|
+
resourceName: string().min(1).optional(),
|
|
9129
|
+
apiVersion: string().min(1).optional(),
|
|
9130
|
+
useDeploymentBasedUrls: boolean$1().optional()
|
|
9131
|
+
}),
|
|
9132
|
+
object({ region: string().min(1).optional() }),
|
|
9133
|
+
object({
|
|
9134
|
+
baseUrl: baseUrlSchema,
|
|
9135
|
+
headers: headersSchema,
|
|
9136
|
+
project: string().min(1).optional(),
|
|
9137
|
+
location: string().min(1).optional()
|
|
9138
|
+
})
|
|
9260
9139
|
]);
|
|
9261
9140
|
object({
|
|
9262
9141
|
type: literal("providerSetting"),
|
|
@@ -9717,7 +9596,7 @@ function createApiClient(config) {
|
|
|
9717
9596
|
providerSettings: createProviderSettingsApi(fetcher)
|
|
9718
9597
|
};
|
|
9719
9598
|
}
|
|
9720
|
-
|
|
9721
9599
|
//#endregion
|
|
9722
|
-
export { intersection as $, runCommandInputSchema as A, NEVER as At, resolveModelTier as B, runSettingSchema as C, parseAsync$1 as Ct, stopRunByDelegate as D, defineLazy as Dt, startRun as E, clone as Et, expertSchema$1 as F,
|
|
9723
|
-
|
|
9600
|
+
export { intersection as $, runCommandInputSchema as A, NEVER as At, resolveModelTier as B, runSettingSchema as C, parseAsync$1 as Ct, stopRunByDelegate as D, defineLazy as Dt, startRun as E, clone as Et, expertSchema$1 as F, _enum as G, number as H, isCoordinatorExpert as I, any as J, _instanceof as K, validateDelegation as L, perstackConfigSchema as M, defaultPerstackApiBaseUrl as Mt, lockfileSchema as N, defaultTimeout as Nt, stopRunByError as O, normalizeParams as Ot, jobSchema$1 as P, createId as Pt, discriminatedUnion as Q, checkpointSchema as R, runParamsSchema as S, parse$1 as St, startGeneration as T, safeParseAsync$1 as Tt, ZodIssueCode as U, resolveModelTierWithFallback as V, ZodOptional as W, boolean$1 as X, array as Y, custom as Z, parseExpertKey as _, toJSONSchema as _t, validateEventFilter as a, object as at, resumeFromStop as b, $ZodObject as bt, createBaseToolActivity as c, record as ct, completeRun as d, tuple as dt, lazy as et, continueToNextStep as f, union as ft, finishToolCall as g, datetime as gt, finishMcpTools as h, safeParseAsync as ht, createFilteredEventListener as i, number$1 as it, startCommandInputSchema as j, PerstackError as jt, stopRunByInteractiveTool as k, $constructor as kt, createGeneralToolActivity as l, strictObject as lt, createStreamingEvent as m, url as mt, parseWithFriendlyError as n, looseObject as nt, getFilteredEnv as o, optional as ot, createRuntimeEvent as p, unknown as pt, _null as q, truncateText as r, never as rt, BASE_SKILL_PREFIX as s, preprocess as st, createApiClient as t, literal as tt, callTools as u, string as ut, proceedToInteractiveTools as v, describe$1 as vt, skipDelegates as w, safeParse$1 as wt, retry as x, $ZodType as xt, resolveToolResults as y, meta$1 as yt, knownModels as z };
|
|
9601
|
+
|
|
9602
|
+
//# sourceMappingURL=dist-RHs5gh6F.js.map
|