@kodizm/acp 0.6.1 → 0.6.3

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.
Files changed (2) hide show
  1. package/dist/index.js +1240 -1874
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -20,12 +20,14 @@ var __toESM = (mod, isNodeMode, target) => {
20
20
  }
21
21
  target = mod != null ? __create(__getProtoOf(mod)) : {};
22
22
  const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
23
- for (let key of __getOwnPropNames(mod))
24
- if (!__hasOwnProp.call(to, key))
25
- __defProp(to, key, {
26
- get: __accessProp.bind(mod, key),
27
- enumerable: true
28
- });
23
+ if (mod && typeof mod === "object" || typeof mod === "function") {
24
+ for (let key of __getOwnPropNames(mod))
25
+ if (!__hasOwnProp.call(to, key))
26
+ __defProp(to, key, {
27
+ get: __accessProp.bind(mod, key),
28
+ enumerable: true
29
+ });
30
+ }
29
31
  if (canCache)
30
32
  cache.set(mod, to);
31
33
  return to;
@@ -195,69 +197,69 @@ var init_core = __esm(() => {
195
197
  // node_modules/zod/v4/core/util.js
196
198
  var exports_util = {};
197
199
  __export(exports_util, {
198
- unwrapMessage: () => unwrapMessage,
199
- uint8ArrayToHex: () => uint8ArrayToHex,
200
- uint8ArrayToBase64url: () => uint8ArrayToBase64url,
201
- uint8ArrayToBase64: () => uint8ArrayToBase64,
202
- stringifyPrimitive: () => stringifyPrimitive,
203
- slugify: () => slugify,
204
- shallowClone: () => shallowClone,
205
- safeExtend: () => safeExtend,
206
- required: () => required,
207
- randomString: () => randomString,
208
- propertyKeyTypes: () => propertyKeyTypes,
209
- promiseAllObject: () => promiseAllObject,
210
- primitiveTypes: () => primitiveTypes,
211
- prefixIssues: () => prefixIssues,
212
- pick: () => pick,
213
- partial: () => partial,
214
- parsedType: () => parsedType,
215
- optionalKeys: () => optionalKeys,
216
- omit: () => omit,
217
- objectClone: () => objectClone,
218
- numKeys: () => numKeys,
219
- nullish: () => nullish,
220
- normalizeParams: () => normalizeParams,
221
- mergeDefs: () => mergeDefs,
222
- merge: () => merge,
223
- jsonStringifyReplacer: () => jsonStringifyReplacer,
224
- joinValues: () => joinValues,
225
- issue: () => issue,
226
- isPlainObject: () => isPlainObject,
227
- isObject: () => isObject,
228
- hexToUint8Array: () => hexToUint8Array,
229
- getSizableOrigin: () => getSizableOrigin,
230
- getParsedType: () => getParsedType,
231
- getLengthableOrigin: () => getLengthableOrigin,
232
- getEnumValues: () => getEnumValues,
233
- getElementAtPath: () => getElementAtPath,
234
- floatSafeRemainder: () => floatSafeRemainder,
235
- finalizeIssue: () => finalizeIssue,
236
- extend: () => extend,
237
- explicitlyAborted: () => explicitlyAborted,
238
- escapeRegex: () => escapeRegex,
239
- esc: () => esc,
240
- defineLazy: () => defineLazy,
241
- createTransparentProxy: () => createTransparentProxy,
242
- cloneDef: () => cloneDef,
243
- clone: () => clone,
244
- cleanRegex: () => cleanRegex,
245
- cleanEnum: () => cleanEnum,
246
- captureStackTrace: () => captureStackTrace,
247
- cached: () => cached,
248
- base64urlToUint8Array: () => base64urlToUint8Array,
249
- base64ToUint8Array: () => base64ToUint8Array,
250
- assignProp: () => assignProp,
251
- assertNotEqual: () => assertNotEqual,
252
- assertNever: () => assertNever,
253
- assertIs: () => assertIs,
254
- assertEqual: () => assertEqual,
255
- assert: () => assert,
256
- allowsEval: () => allowsEval,
257
- aborted: () => aborted,
258
- NUMBER_FORMAT_RANGES: () => NUMBER_FORMAT_RANGES,
200
+ BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES,
259
201
  Class: () => Class,
260
- BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES
202
+ NUMBER_FORMAT_RANGES: () => NUMBER_FORMAT_RANGES,
203
+ aborted: () => aborted,
204
+ allowsEval: () => allowsEval,
205
+ assert: () => assert,
206
+ assertEqual: () => assertEqual,
207
+ assertIs: () => assertIs,
208
+ assertNever: () => assertNever,
209
+ assertNotEqual: () => assertNotEqual,
210
+ assignProp: () => assignProp,
211
+ base64ToUint8Array: () => base64ToUint8Array,
212
+ base64urlToUint8Array: () => base64urlToUint8Array,
213
+ cached: () => cached,
214
+ captureStackTrace: () => captureStackTrace,
215
+ cleanEnum: () => cleanEnum,
216
+ cleanRegex: () => cleanRegex,
217
+ clone: () => clone,
218
+ cloneDef: () => cloneDef,
219
+ createTransparentProxy: () => createTransparentProxy,
220
+ defineLazy: () => defineLazy,
221
+ esc: () => esc,
222
+ escapeRegex: () => escapeRegex,
223
+ explicitlyAborted: () => explicitlyAborted,
224
+ extend: () => extend,
225
+ finalizeIssue: () => finalizeIssue,
226
+ floatSafeRemainder: () => floatSafeRemainder,
227
+ getElementAtPath: () => getElementAtPath,
228
+ getEnumValues: () => getEnumValues,
229
+ getLengthableOrigin: () => getLengthableOrigin,
230
+ getParsedType: () => getParsedType,
231
+ getSizableOrigin: () => getSizableOrigin,
232
+ hexToUint8Array: () => hexToUint8Array,
233
+ isObject: () => isObject,
234
+ isPlainObject: () => isPlainObject,
235
+ issue: () => issue,
236
+ joinValues: () => joinValues,
237
+ jsonStringifyReplacer: () => jsonStringifyReplacer,
238
+ merge: () => merge,
239
+ mergeDefs: () => mergeDefs,
240
+ normalizeParams: () => normalizeParams,
241
+ nullish: () => nullish,
242
+ numKeys: () => numKeys,
243
+ objectClone: () => objectClone,
244
+ omit: () => omit,
245
+ optionalKeys: () => optionalKeys,
246
+ parsedType: () => parsedType,
247
+ partial: () => partial,
248
+ pick: () => pick,
249
+ prefixIssues: () => prefixIssues,
250
+ primitiveTypes: () => primitiveTypes,
251
+ promiseAllObject: () => promiseAllObject,
252
+ propertyKeyTypes: () => propertyKeyTypes,
253
+ randomString: () => randomString,
254
+ required: () => required,
255
+ safeExtend: () => safeExtend,
256
+ shallowClone: () => shallowClone,
257
+ slugify: () => slugify,
258
+ stringifyPrimitive: () => stringifyPrimitive,
259
+ uint8ArrayToBase64: () => uint8ArrayToBase64,
260
+ uint8ArrayToBase64url: () => uint8ArrayToBase64url,
261
+ uint8ArrayToHex: () => uint8ArrayToHex,
262
+ unwrapMessage: () => unwrapMessage
261
263
  });
262
264
  function assertEqual(val) {
263
265
  return val;
@@ -1116,65 +1118,65 @@ var init_parse = __esm(() => {
1116
1118
  // node_modules/zod/v4/core/regexes.js
1117
1119
  var exports_regexes = {};
1118
1120
  __export(exports_regexes, {
1119
- xid: () => xid,
1120
- uuid7: () => uuid7,
1121
- uuid6: () => uuid6,
1122
- uuid4: () => uuid4,
1123
- uuid: () => uuid,
1124
- uppercase: () => uppercase,
1125
- unicodeEmail: () => unicodeEmail,
1126
- undefined: () => _undefined,
1127
- ulid: () => ulid,
1128
- time: () => time,
1129
- string: () => string,
1130
- sha512_hex: () => sha512_hex,
1131
- sha512_base64url: () => sha512_base64url,
1132
- sha512_base64: () => sha512_base64,
1133
- sha384_hex: () => sha384_hex,
1134
- sha384_base64url: () => sha384_base64url,
1135
- sha384_base64: () => sha384_base64,
1136
- sha256_hex: () => sha256_hex,
1137
- sha256_base64url: () => sha256_base64url,
1138
- sha256_base64: () => sha256_base64,
1139
- sha1_hex: () => sha1_hex,
1140
- sha1_base64url: () => sha1_base64url,
1141
- sha1_base64: () => sha1_base64,
1142
- rfc5322Email: () => rfc5322Email,
1143
- number: () => number,
1144
- null: () => _null,
1145
- nanoid: () => nanoid,
1146
- md5_hex: () => md5_hex,
1147
- md5_base64url: () => md5_base64url,
1148
- md5_base64: () => md5_base64,
1149
- mac: () => mac,
1150
- lowercase: () => lowercase,
1151
- ksuid: () => ksuid,
1152
- ipv6: () => ipv6,
1153
- ipv4: () => ipv4,
1154
- integer: () => integer,
1155
- idnEmail: () => idnEmail,
1156
- httpProtocol: () => httpProtocol,
1157
- html5Email: () => html5Email,
1158
- hostname: () => hostname,
1159
- hex: () => hex,
1160
- guid: () => guid,
1161
- extendedDuration: () => extendedDuration,
1162
- emoji: () => emoji,
1163
- email: () => email,
1164
- e164: () => e164,
1165
- duration: () => duration,
1166
- domain: () => domain,
1167
- datetime: () => datetime,
1168
- date: () => date,
1169
- cuid2: () => cuid2,
1170
- cuid: () => cuid,
1171
- cidrv6: () => cidrv6,
1172
- cidrv4: () => cidrv4,
1173
- browserEmail: () => browserEmail,
1174
- boolean: () => boolean,
1175
- bigint: () => bigint,
1121
+ base64: () => base64,
1176
1122
  base64url: () => base64url,
1177
- base64: () => base64
1123
+ bigint: () => bigint,
1124
+ boolean: () => boolean,
1125
+ browserEmail: () => browserEmail,
1126
+ cidrv4: () => cidrv4,
1127
+ cidrv6: () => cidrv6,
1128
+ cuid: () => cuid,
1129
+ cuid2: () => cuid2,
1130
+ date: () => date,
1131
+ datetime: () => datetime,
1132
+ domain: () => domain,
1133
+ duration: () => duration,
1134
+ e164: () => e164,
1135
+ email: () => email,
1136
+ emoji: () => emoji,
1137
+ extendedDuration: () => extendedDuration,
1138
+ guid: () => guid,
1139
+ hex: () => hex,
1140
+ hostname: () => hostname,
1141
+ html5Email: () => html5Email,
1142
+ httpProtocol: () => httpProtocol,
1143
+ idnEmail: () => idnEmail,
1144
+ integer: () => integer,
1145
+ ipv4: () => ipv4,
1146
+ ipv6: () => ipv6,
1147
+ ksuid: () => ksuid,
1148
+ lowercase: () => lowercase,
1149
+ mac: () => mac,
1150
+ md5_base64: () => md5_base64,
1151
+ md5_base64url: () => md5_base64url,
1152
+ md5_hex: () => md5_hex,
1153
+ nanoid: () => nanoid,
1154
+ null: () => _null,
1155
+ number: () => number,
1156
+ rfc5322Email: () => rfc5322Email,
1157
+ sha1_base64: () => sha1_base64,
1158
+ sha1_base64url: () => sha1_base64url,
1159
+ sha1_hex: () => sha1_hex,
1160
+ sha256_base64: () => sha256_base64,
1161
+ sha256_base64url: () => sha256_base64url,
1162
+ sha256_hex: () => sha256_hex,
1163
+ sha384_base64: () => sha384_base64,
1164
+ sha384_base64url: () => sha384_base64url,
1165
+ sha384_hex: () => sha384_hex,
1166
+ sha512_base64: () => sha512_base64,
1167
+ sha512_base64url: () => sha512_base64url,
1168
+ sha512_hex: () => sha512_hex,
1169
+ string: () => string,
1170
+ time: () => time,
1171
+ ulid: () => ulid,
1172
+ undefined: () => _undefined,
1173
+ unicodeEmail: () => unicodeEmail,
1174
+ uppercase: () => uppercase,
1175
+ uuid: () => uuid,
1176
+ uuid4: () => uuid4,
1177
+ uuid6: () => uuid6,
1178
+ uuid7: () => uuid7,
1179
+ xid: () => xid
1178
1180
  });
1179
1181
  function emoji() {
1180
1182
  return new RegExp(_emoji, "u");
@@ -10019,58 +10021,58 @@ var init_yo = __esm(() => {
10019
10021
  // node_modules/zod/v4/locales/index.js
10020
10022
  var exports_locales = {};
10021
10023
  __export(exports_locales, {
10022
- zhTW: () => zh_TW_default,
10023
- zhCN: () => zh_CN_default,
10024
- yo: () => yo_default,
10025
- vi: () => vi_default,
10026
- uz: () => uz_default,
10027
- ur: () => ur_default,
10028
- uk: () => uk_default,
10029
- ua: () => ua_default,
10030
- tr: () => tr_default,
10031
- th: () => th_default,
10032
- ta: () => ta_default,
10033
- sv: () => sv_default,
10034
- sl: () => sl_default,
10035
- ru: () => ru_default,
10036
- ro: () => ro_default,
10037
- pt: () => pt_default,
10038
- ps: () => ps_default,
10039
- pl: () => pl_default,
10040
- ota: () => ota_default,
10041
- no: () => no_default,
10042
- nl: () => nl_default,
10043
- ms: () => ms_default,
10044
- mk: () => mk_default,
10045
- lt: () => lt_default,
10046
- ko: () => ko_default,
10047
- km: () => km_default,
10048
- kh: () => kh_default,
10049
- ka: () => ka_default,
10050
- ja: () => ja_default,
10051
- it: () => it_default,
10052
- is: () => is_default,
10053
- id: () => id_default,
10054
- hy: () => hy_default,
10055
- hu: () => hu_default,
10056
- hr: () => hr_default,
10057
- he: () => he_default,
10058
- frCA: () => fr_CA_default,
10059
- fr: () => fr_default,
10060
- fi: () => fi_default,
10061
- fa: () => fa_default,
10062
- es: () => es_default,
10063
- eo: () => eo_default,
10064
- en: () => en_default,
10065
- el: () => el_default,
10066
- de: () => de_default,
10067
- da: () => da_default,
10068
- cs: () => cs_default,
10069
- ca: () => ca_default,
10070
- bg: () => bg_default,
10071
- be: () => be_default,
10024
+ ar: () => ar_default,
10072
10025
  az: () => az_default,
10073
- ar: () => ar_default
10026
+ be: () => be_default,
10027
+ bg: () => bg_default,
10028
+ ca: () => ca_default,
10029
+ cs: () => cs_default,
10030
+ da: () => da_default,
10031
+ de: () => de_default,
10032
+ el: () => el_default,
10033
+ en: () => en_default,
10034
+ eo: () => eo_default,
10035
+ es: () => es_default,
10036
+ fa: () => fa_default,
10037
+ fi: () => fi_default,
10038
+ fr: () => fr_default,
10039
+ frCA: () => fr_CA_default,
10040
+ he: () => he_default,
10041
+ hr: () => hr_default,
10042
+ hu: () => hu_default,
10043
+ hy: () => hy_default,
10044
+ id: () => id_default,
10045
+ is: () => is_default,
10046
+ it: () => it_default,
10047
+ ja: () => ja_default,
10048
+ ka: () => ka_default,
10049
+ kh: () => kh_default,
10050
+ km: () => km_default,
10051
+ ko: () => ko_default,
10052
+ lt: () => lt_default,
10053
+ mk: () => mk_default,
10054
+ ms: () => ms_default,
10055
+ nl: () => nl_default,
10056
+ no: () => no_default,
10057
+ ota: () => ota_default,
10058
+ pl: () => pl_default,
10059
+ ps: () => ps_default,
10060
+ pt: () => pt_default,
10061
+ ro: () => ro_default,
10062
+ ru: () => ru_default,
10063
+ sl: () => sl_default,
10064
+ sv: () => sv_default,
10065
+ ta: () => ta_default,
10066
+ th: () => th_default,
10067
+ tr: () => tr_default,
10068
+ ua: () => ua_default,
10069
+ uk: () => uk_default,
10070
+ ur: () => ur_default,
10071
+ uz: () => uz_default,
10072
+ vi: () => vi_default,
10073
+ yo: () => yo_default,
10074
+ zhCN: () => zh_CN_default,
10075
+ zhTW: () => zh_TW_default
10074
10076
  });
10075
10077
  var init_locales = __esm(() => {
10076
10078
  init_ar();
@@ -12038,280 +12040,280 @@ var init_json_schema = () => {};
12038
12040
  // node_modules/zod/v4/core/index.js
12039
12041
  var exports_core2 = {};
12040
12042
  __export(exports_core2, {
12041
- version: () => version,
12042
- util: () => exports_util,
12043
- treeifyError: () => treeifyError,
12044
- toJSONSchema: () => toJSONSchema,
12045
- toDotPath: () => toDotPath,
12046
- safeParseAsync: () => safeParseAsync,
12047
- safeParse: () => safeParse,
12048
- safeEncodeAsync: () => safeEncodeAsync,
12049
- safeEncode: () => safeEncode,
12050
- safeDecodeAsync: () => safeDecodeAsync,
12051
- safeDecode: () => safeDecode,
12052
- registry: () => registry,
12053
- regexes: () => exports_regexes,
12054
- process: () => process2,
12055
- prettifyError: () => prettifyError,
12056
- parseAsync: () => parseAsync,
12057
- parse: () => parse,
12058
- meta: () => meta,
12059
- locales: () => exports_locales,
12060
- isValidJWT: () => isValidJWT,
12061
- isValidBase64URL: () => isValidBase64URL,
12062
- isValidBase64: () => isValidBase64,
12063
- initializeContext: () => initializeContext,
12064
- globalRegistry: () => globalRegistry,
12065
- globalConfig: () => globalConfig,
12066
- formatError: () => formatError,
12067
- flattenError: () => flattenError,
12068
- finalize: () => finalize,
12069
- extractDefs: () => extractDefs,
12070
- encodeAsync: () => encodeAsync,
12071
- encode: () => encode,
12072
- describe: () => describe,
12073
- decodeAsync: () => decodeAsync,
12074
- decode: () => decode,
12075
- createToJSONSchemaMethod: () => createToJSONSchemaMethod,
12076
- createStandardJSONSchemaMethod: () => createStandardJSONSchemaMethod,
12077
- config: () => config,
12078
- clone: () => clone,
12079
- _xor: () => _xor,
12080
- _xid: () => _xid,
12081
- _void: () => _void,
12082
- _uuidv7: () => _uuidv7,
12083
- _uuidv6: () => _uuidv6,
12084
- _uuidv4: () => _uuidv4,
12085
- _uuid: () => _uuid,
12086
- _url: () => _url,
12087
- _uppercase: () => _uppercase,
12088
- _unknown: () => _unknown,
12089
- _union: () => _union,
12090
- _undefined: () => _undefined2,
12091
- _ulid: () => _ulid,
12092
- _uint64: () => _uint64,
12093
- _uint32: () => _uint32,
12094
- _tuple: () => _tuple,
12095
- _trim: () => _trim,
12096
- _transform: () => _transform,
12097
- _toUpperCase: () => _toUpperCase,
12098
- _toLowerCase: () => _toLowerCase,
12099
- _templateLiteral: () => _templateLiteral,
12100
- _symbol: () => _symbol,
12101
- _superRefine: () => _superRefine,
12102
- _success: () => _success,
12103
- _stringbool: () => _stringbool,
12104
- _stringFormat: () => _stringFormat,
12105
- _string: () => _string,
12106
- _startsWith: () => _startsWith,
12107
- _slugify: () => _slugify,
12108
- _size: () => _size,
12109
- _set: () => _set,
12110
- _safeParseAsync: () => _safeParseAsync,
12111
- _safeParse: () => _safeParse,
12112
- _safeEncodeAsync: () => _safeEncodeAsync,
12113
- _safeEncode: () => _safeEncode,
12114
- _safeDecodeAsync: () => _safeDecodeAsync,
12115
- _safeDecode: () => _safeDecode,
12116
- _regex: () => _regex,
12117
- _refine: () => _refine,
12118
- _record: () => _record,
12119
- _readonly: () => _readonly,
12120
- _property: () => _property,
12121
- _promise: () => _promise,
12122
- _positive: () => _positive,
12123
- _pipe: () => _pipe,
12124
- _parseAsync: () => _parseAsync,
12125
- _parse: () => _parse,
12126
- _overwrite: () => _overwrite,
12127
- _optional: () => _optional,
12128
- _number: () => _number,
12129
- _nullable: () => _nullable,
12130
- _null: () => _null2,
12131
- _normalize: () => _normalize,
12132
- _nonpositive: () => _nonpositive,
12133
- _nonoptional: () => _nonoptional,
12134
- _nonnegative: () => _nonnegative,
12135
- _never: () => _never,
12136
- _negative: () => _negative,
12137
- _nativeEnum: () => _nativeEnum,
12138
- _nanoid: () => _nanoid,
12139
- _nan: () => _nan,
12140
- _multipleOf: () => _multipleOf,
12141
- _minSize: () => _minSize,
12142
- _minLength: () => _minLength,
12143
- _min: () => _gte,
12144
- _mime: () => _mime,
12145
- _maxSize: () => _maxSize,
12146
- _maxLength: () => _maxLength,
12147
- _max: () => _lte,
12148
- _map: () => _map,
12149
- _mac: () => _mac,
12150
- _lte: () => _lte,
12151
- _lt: () => _lt,
12152
- _lowercase: () => _lowercase,
12153
- _literal: () => _literal,
12154
- _length: () => _length,
12155
- _lazy: () => _lazy,
12156
- _ksuid: () => _ksuid,
12157
- _jwt: () => _jwt,
12158
- _isoTime: () => _isoTime,
12159
- _isoDuration: () => _isoDuration,
12160
- _isoDateTime: () => _isoDateTime,
12161
- _isoDate: () => _isoDate,
12162
- _ipv6: () => _ipv6,
12163
- _ipv4: () => _ipv4,
12164
- _intersection: () => _intersection,
12165
- _int64: () => _int64,
12166
- _int32: () => _int32,
12167
- _int: () => _int,
12168
- _includes: () => _includes,
12169
- _guid: () => _guid,
12170
- _gte: () => _gte,
12171
- _gt: () => _gt,
12172
- _float64: () => _float64,
12173
- _float32: () => _float32,
12174
- _file: () => _file,
12175
- _enum: () => _enum,
12176
- _endsWith: () => _endsWith,
12177
- _encodeAsync: () => _encodeAsync,
12178
- _encode: () => _encode,
12179
- _emoji: () => _emoji2,
12180
- _email: () => _email,
12181
- _e164: () => _e164,
12182
- _discriminatedUnion: () => _discriminatedUnion,
12183
- _default: () => _default,
12184
- _decodeAsync: () => _decodeAsync,
12185
- _decode: () => _decode,
12186
- _date: () => _date,
12187
- _custom: () => _custom,
12188
- _cuid2: () => _cuid2,
12189
- _cuid: () => _cuid,
12190
- _coercedString: () => _coercedString,
12191
- _coercedNumber: () => _coercedNumber,
12192
- _coercedDate: () => _coercedDate,
12193
- _coercedBoolean: () => _coercedBoolean,
12194
- _coercedBigint: () => _coercedBigint,
12195
- _cidrv6: () => _cidrv6,
12196
- _cidrv4: () => _cidrv4,
12197
- _check: () => _check,
12198
- _catch: () => _catch,
12199
- _boolean: () => _boolean,
12200
- _bigint: () => _bigint,
12201
- _base64url: () => _base64url,
12202
- _base64: () => _base64,
12203
- _array: () => _array,
12204
- _any: () => _any,
12205
- TimePrecision: () => TimePrecision,
12206
- NEVER: () => NEVER,
12207
- JSONSchemaGenerator: () => JSONSchemaGenerator,
12208
- JSONSchema: () => exports_json_schema,
12209
- Doc: () => Doc,
12210
- $output: () => $output,
12211
- $input: () => $input,
12212
- $constructor: () => $constructor,
12213
- $brand: () => $brand,
12214
- $ZodXor: () => $ZodXor,
12215
- $ZodXID: () => $ZodXID,
12216
- $ZodVoid: () => $ZodVoid,
12217
- $ZodUnknown: () => $ZodUnknown,
12218
- $ZodUnion: () => $ZodUnion,
12219
- $ZodUndefined: () => $ZodUndefined,
12220
- $ZodUUID: () => $ZodUUID,
12221
- $ZodURL: () => $ZodURL,
12222
- $ZodULID: () => $ZodULID,
12223
- $ZodType: () => $ZodType,
12224
- $ZodTuple: () => $ZodTuple,
12225
- $ZodTransform: () => $ZodTransform,
12226
- $ZodTemplateLiteral: () => $ZodTemplateLiteral,
12227
- $ZodSymbol: () => $ZodSymbol,
12228
- $ZodSuccess: () => $ZodSuccess,
12229
- $ZodStringFormat: () => $ZodStringFormat,
12230
- $ZodString: () => $ZodString,
12231
- $ZodSet: () => $ZodSet,
12232
- $ZodRegistry: () => $ZodRegistry,
12233
- $ZodRecord: () => $ZodRecord,
12234
- $ZodRealError: () => $ZodRealError,
12235
- $ZodReadonly: () => $ZodReadonly,
12236
- $ZodPromise: () => $ZodPromise,
12237
- $ZodPreprocess: () => $ZodPreprocess,
12238
- $ZodPrefault: () => $ZodPrefault,
12239
- $ZodPipe: () => $ZodPipe,
12240
- $ZodOptional: () => $ZodOptional,
12241
- $ZodObjectJIT: () => $ZodObjectJIT,
12242
- $ZodObject: () => $ZodObject,
12243
- $ZodNumberFormat: () => $ZodNumberFormat,
12244
- $ZodNumber: () => $ZodNumber,
12245
- $ZodNullable: () => $ZodNullable,
12246
- $ZodNull: () => $ZodNull,
12247
- $ZodNonOptional: () => $ZodNonOptional,
12248
- $ZodNever: () => $ZodNever,
12249
- $ZodNanoID: () => $ZodNanoID,
12250
- $ZodNaN: () => $ZodNaN,
12251
- $ZodMap: () => $ZodMap,
12252
- $ZodMAC: () => $ZodMAC,
12253
- $ZodLiteral: () => $ZodLiteral,
12254
- $ZodLazy: () => $ZodLazy,
12255
- $ZodKSUID: () => $ZodKSUID,
12256
- $ZodJWT: () => $ZodJWT,
12257
- $ZodIntersection: () => $ZodIntersection,
12258
- $ZodISOTime: () => $ZodISOTime,
12259
- $ZodISODuration: () => $ZodISODuration,
12260
- $ZodISODateTime: () => $ZodISODateTime,
12261
- $ZodISODate: () => $ZodISODate,
12262
- $ZodIPv6: () => $ZodIPv6,
12263
- $ZodIPv4: () => $ZodIPv4,
12264
- $ZodGUID: () => $ZodGUID,
12265
- $ZodFunction: () => $ZodFunction,
12266
- $ZodFile: () => $ZodFile,
12267
- $ZodExactOptional: () => $ZodExactOptional,
12268
- $ZodError: () => $ZodError,
12269
- $ZodEnum: () => $ZodEnum,
12270
- $ZodEncodeError: () => $ZodEncodeError,
12271
- $ZodEmoji: () => $ZodEmoji,
12272
- $ZodEmail: () => $ZodEmail,
12273
- $ZodE164: () => $ZodE164,
12274
- $ZodDiscriminatedUnion: () => $ZodDiscriminatedUnion,
12275
- $ZodDefault: () => $ZodDefault,
12276
- $ZodDate: () => $ZodDate,
12277
- $ZodCustomStringFormat: () => $ZodCustomStringFormat,
12278
- $ZodCustom: () => $ZodCustom,
12279
- $ZodCodec: () => $ZodCodec,
12280
- $ZodCheckUpperCase: () => $ZodCheckUpperCase,
12281
- $ZodCheckStringFormat: () => $ZodCheckStringFormat,
12282
- $ZodCheckStartsWith: () => $ZodCheckStartsWith,
12283
- $ZodCheckSizeEquals: () => $ZodCheckSizeEquals,
12284
- $ZodCheckRegex: () => $ZodCheckRegex,
12285
- $ZodCheckProperty: () => $ZodCheckProperty,
12286
- $ZodCheckOverwrite: () => $ZodCheckOverwrite,
12287
- $ZodCheckNumberFormat: () => $ZodCheckNumberFormat,
12288
- $ZodCheckMultipleOf: () => $ZodCheckMultipleOf,
12289
- $ZodCheckMinSize: () => $ZodCheckMinSize,
12290
- $ZodCheckMinLength: () => $ZodCheckMinLength,
12291
- $ZodCheckMimeType: () => $ZodCheckMimeType,
12292
- $ZodCheckMaxSize: () => $ZodCheckMaxSize,
12293
- $ZodCheckMaxLength: () => $ZodCheckMaxLength,
12294
- $ZodCheckLowerCase: () => $ZodCheckLowerCase,
12295
- $ZodCheckLessThan: () => $ZodCheckLessThan,
12296
- $ZodCheckLengthEquals: () => $ZodCheckLengthEquals,
12297
- $ZodCheckIncludes: () => $ZodCheckIncludes,
12298
- $ZodCheckGreaterThan: () => $ZodCheckGreaterThan,
12299
- $ZodCheckEndsWith: () => $ZodCheckEndsWith,
12300
- $ZodCheckBigIntFormat: () => $ZodCheckBigIntFormat,
12301
- $ZodCheck: () => $ZodCheck,
12302
- $ZodCatch: () => $ZodCatch,
12303
- $ZodCUID2: () => $ZodCUID2,
12304
- $ZodCUID: () => $ZodCUID,
12305
- $ZodCIDRv6: () => $ZodCIDRv6,
12306
- $ZodCIDRv4: () => $ZodCIDRv4,
12307
- $ZodBoolean: () => $ZodBoolean,
12308
- $ZodBigIntFormat: () => $ZodBigIntFormat,
12309
- $ZodBigInt: () => $ZodBigInt,
12310
- $ZodBase64URL: () => $ZodBase64URL,
12311
- $ZodBase64: () => $ZodBase64,
12312
- $ZodAsyncError: () => $ZodAsyncError,
12043
+ $ZodAny: () => $ZodAny,
12313
12044
  $ZodArray: () => $ZodArray,
12314
- $ZodAny: () => $ZodAny
12045
+ $ZodAsyncError: () => $ZodAsyncError,
12046
+ $ZodBase64: () => $ZodBase64,
12047
+ $ZodBase64URL: () => $ZodBase64URL,
12048
+ $ZodBigInt: () => $ZodBigInt,
12049
+ $ZodBigIntFormat: () => $ZodBigIntFormat,
12050
+ $ZodBoolean: () => $ZodBoolean,
12051
+ $ZodCIDRv4: () => $ZodCIDRv4,
12052
+ $ZodCIDRv6: () => $ZodCIDRv6,
12053
+ $ZodCUID: () => $ZodCUID,
12054
+ $ZodCUID2: () => $ZodCUID2,
12055
+ $ZodCatch: () => $ZodCatch,
12056
+ $ZodCheck: () => $ZodCheck,
12057
+ $ZodCheckBigIntFormat: () => $ZodCheckBigIntFormat,
12058
+ $ZodCheckEndsWith: () => $ZodCheckEndsWith,
12059
+ $ZodCheckGreaterThan: () => $ZodCheckGreaterThan,
12060
+ $ZodCheckIncludes: () => $ZodCheckIncludes,
12061
+ $ZodCheckLengthEquals: () => $ZodCheckLengthEquals,
12062
+ $ZodCheckLessThan: () => $ZodCheckLessThan,
12063
+ $ZodCheckLowerCase: () => $ZodCheckLowerCase,
12064
+ $ZodCheckMaxLength: () => $ZodCheckMaxLength,
12065
+ $ZodCheckMaxSize: () => $ZodCheckMaxSize,
12066
+ $ZodCheckMimeType: () => $ZodCheckMimeType,
12067
+ $ZodCheckMinLength: () => $ZodCheckMinLength,
12068
+ $ZodCheckMinSize: () => $ZodCheckMinSize,
12069
+ $ZodCheckMultipleOf: () => $ZodCheckMultipleOf,
12070
+ $ZodCheckNumberFormat: () => $ZodCheckNumberFormat,
12071
+ $ZodCheckOverwrite: () => $ZodCheckOverwrite,
12072
+ $ZodCheckProperty: () => $ZodCheckProperty,
12073
+ $ZodCheckRegex: () => $ZodCheckRegex,
12074
+ $ZodCheckSizeEquals: () => $ZodCheckSizeEquals,
12075
+ $ZodCheckStartsWith: () => $ZodCheckStartsWith,
12076
+ $ZodCheckStringFormat: () => $ZodCheckStringFormat,
12077
+ $ZodCheckUpperCase: () => $ZodCheckUpperCase,
12078
+ $ZodCodec: () => $ZodCodec,
12079
+ $ZodCustom: () => $ZodCustom,
12080
+ $ZodCustomStringFormat: () => $ZodCustomStringFormat,
12081
+ $ZodDate: () => $ZodDate,
12082
+ $ZodDefault: () => $ZodDefault,
12083
+ $ZodDiscriminatedUnion: () => $ZodDiscriminatedUnion,
12084
+ $ZodE164: () => $ZodE164,
12085
+ $ZodEmail: () => $ZodEmail,
12086
+ $ZodEmoji: () => $ZodEmoji,
12087
+ $ZodEncodeError: () => $ZodEncodeError,
12088
+ $ZodEnum: () => $ZodEnum,
12089
+ $ZodError: () => $ZodError,
12090
+ $ZodExactOptional: () => $ZodExactOptional,
12091
+ $ZodFile: () => $ZodFile,
12092
+ $ZodFunction: () => $ZodFunction,
12093
+ $ZodGUID: () => $ZodGUID,
12094
+ $ZodIPv4: () => $ZodIPv4,
12095
+ $ZodIPv6: () => $ZodIPv6,
12096
+ $ZodISODate: () => $ZodISODate,
12097
+ $ZodISODateTime: () => $ZodISODateTime,
12098
+ $ZodISODuration: () => $ZodISODuration,
12099
+ $ZodISOTime: () => $ZodISOTime,
12100
+ $ZodIntersection: () => $ZodIntersection,
12101
+ $ZodJWT: () => $ZodJWT,
12102
+ $ZodKSUID: () => $ZodKSUID,
12103
+ $ZodLazy: () => $ZodLazy,
12104
+ $ZodLiteral: () => $ZodLiteral,
12105
+ $ZodMAC: () => $ZodMAC,
12106
+ $ZodMap: () => $ZodMap,
12107
+ $ZodNaN: () => $ZodNaN,
12108
+ $ZodNanoID: () => $ZodNanoID,
12109
+ $ZodNever: () => $ZodNever,
12110
+ $ZodNonOptional: () => $ZodNonOptional,
12111
+ $ZodNull: () => $ZodNull,
12112
+ $ZodNullable: () => $ZodNullable,
12113
+ $ZodNumber: () => $ZodNumber,
12114
+ $ZodNumberFormat: () => $ZodNumberFormat,
12115
+ $ZodObject: () => $ZodObject,
12116
+ $ZodObjectJIT: () => $ZodObjectJIT,
12117
+ $ZodOptional: () => $ZodOptional,
12118
+ $ZodPipe: () => $ZodPipe,
12119
+ $ZodPrefault: () => $ZodPrefault,
12120
+ $ZodPreprocess: () => $ZodPreprocess,
12121
+ $ZodPromise: () => $ZodPromise,
12122
+ $ZodReadonly: () => $ZodReadonly,
12123
+ $ZodRealError: () => $ZodRealError,
12124
+ $ZodRecord: () => $ZodRecord,
12125
+ $ZodRegistry: () => $ZodRegistry,
12126
+ $ZodSet: () => $ZodSet,
12127
+ $ZodString: () => $ZodString,
12128
+ $ZodStringFormat: () => $ZodStringFormat,
12129
+ $ZodSuccess: () => $ZodSuccess,
12130
+ $ZodSymbol: () => $ZodSymbol,
12131
+ $ZodTemplateLiteral: () => $ZodTemplateLiteral,
12132
+ $ZodTransform: () => $ZodTransform,
12133
+ $ZodTuple: () => $ZodTuple,
12134
+ $ZodType: () => $ZodType,
12135
+ $ZodULID: () => $ZodULID,
12136
+ $ZodURL: () => $ZodURL,
12137
+ $ZodUUID: () => $ZodUUID,
12138
+ $ZodUndefined: () => $ZodUndefined,
12139
+ $ZodUnion: () => $ZodUnion,
12140
+ $ZodUnknown: () => $ZodUnknown,
12141
+ $ZodVoid: () => $ZodVoid,
12142
+ $ZodXID: () => $ZodXID,
12143
+ $ZodXor: () => $ZodXor,
12144
+ $brand: () => $brand,
12145
+ $constructor: () => $constructor,
12146
+ $input: () => $input,
12147
+ $output: () => $output,
12148
+ Doc: () => Doc,
12149
+ JSONSchema: () => exports_json_schema,
12150
+ JSONSchemaGenerator: () => JSONSchemaGenerator,
12151
+ NEVER: () => NEVER,
12152
+ TimePrecision: () => TimePrecision,
12153
+ _any: () => _any,
12154
+ _array: () => _array,
12155
+ _base64: () => _base64,
12156
+ _base64url: () => _base64url,
12157
+ _bigint: () => _bigint,
12158
+ _boolean: () => _boolean,
12159
+ _catch: () => _catch,
12160
+ _check: () => _check,
12161
+ _cidrv4: () => _cidrv4,
12162
+ _cidrv6: () => _cidrv6,
12163
+ _coercedBigint: () => _coercedBigint,
12164
+ _coercedBoolean: () => _coercedBoolean,
12165
+ _coercedDate: () => _coercedDate,
12166
+ _coercedNumber: () => _coercedNumber,
12167
+ _coercedString: () => _coercedString,
12168
+ _cuid: () => _cuid,
12169
+ _cuid2: () => _cuid2,
12170
+ _custom: () => _custom,
12171
+ _date: () => _date,
12172
+ _decode: () => _decode,
12173
+ _decodeAsync: () => _decodeAsync,
12174
+ _default: () => _default,
12175
+ _discriminatedUnion: () => _discriminatedUnion,
12176
+ _e164: () => _e164,
12177
+ _email: () => _email,
12178
+ _emoji: () => _emoji2,
12179
+ _encode: () => _encode,
12180
+ _encodeAsync: () => _encodeAsync,
12181
+ _endsWith: () => _endsWith,
12182
+ _enum: () => _enum,
12183
+ _file: () => _file,
12184
+ _float32: () => _float32,
12185
+ _float64: () => _float64,
12186
+ _gt: () => _gt,
12187
+ _gte: () => _gte,
12188
+ _guid: () => _guid,
12189
+ _includes: () => _includes,
12190
+ _int: () => _int,
12191
+ _int32: () => _int32,
12192
+ _int64: () => _int64,
12193
+ _intersection: () => _intersection,
12194
+ _ipv4: () => _ipv4,
12195
+ _ipv6: () => _ipv6,
12196
+ _isoDate: () => _isoDate,
12197
+ _isoDateTime: () => _isoDateTime,
12198
+ _isoDuration: () => _isoDuration,
12199
+ _isoTime: () => _isoTime,
12200
+ _jwt: () => _jwt,
12201
+ _ksuid: () => _ksuid,
12202
+ _lazy: () => _lazy,
12203
+ _length: () => _length,
12204
+ _literal: () => _literal,
12205
+ _lowercase: () => _lowercase,
12206
+ _lt: () => _lt,
12207
+ _lte: () => _lte,
12208
+ _mac: () => _mac,
12209
+ _map: () => _map,
12210
+ _max: () => _lte,
12211
+ _maxLength: () => _maxLength,
12212
+ _maxSize: () => _maxSize,
12213
+ _mime: () => _mime,
12214
+ _min: () => _gte,
12215
+ _minLength: () => _minLength,
12216
+ _minSize: () => _minSize,
12217
+ _multipleOf: () => _multipleOf,
12218
+ _nan: () => _nan,
12219
+ _nanoid: () => _nanoid,
12220
+ _nativeEnum: () => _nativeEnum,
12221
+ _negative: () => _negative,
12222
+ _never: () => _never,
12223
+ _nonnegative: () => _nonnegative,
12224
+ _nonoptional: () => _nonoptional,
12225
+ _nonpositive: () => _nonpositive,
12226
+ _normalize: () => _normalize,
12227
+ _null: () => _null2,
12228
+ _nullable: () => _nullable,
12229
+ _number: () => _number,
12230
+ _optional: () => _optional,
12231
+ _overwrite: () => _overwrite,
12232
+ _parse: () => _parse,
12233
+ _parseAsync: () => _parseAsync,
12234
+ _pipe: () => _pipe,
12235
+ _positive: () => _positive,
12236
+ _promise: () => _promise,
12237
+ _property: () => _property,
12238
+ _readonly: () => _readonly,
12239
+ _record: () => _record,
12240
+ _refine: () => _refine,
12241
+ _regex: () => _regex,
12242
+ _safeDecode: () => _safeDecode,
12243
+ _safeDecodeAsync: () => _safeDecodeAsync,
12244
+ _safeEncode: () => _safeEncode,
12245
+ _safeEncodeAsync: () => _safeEncodeAsync,
12246
+ _safeParse: () => _safeParse,
12247
+ _safeParseAsync: () => _safeParseAsync,
12248
+ _set: () => _set,
12249
+ _size: () => _size,
12250
+ _slugify: () => _slugify,
12251
+ _startsWith: () => _startsWith,
12252
+ _string: () => _string,
12253
+ _stringFormat: () => _stringFormat,
12254
+ _stringbool: () => _stringbool,
12255
+ _success: () => _success,
12256
+ _superRefine: () => _superRefine,
12257
+ _symbol: () => _symbol,
12258
+ _templateLiteral: () => _templateLiteral,
12259
+ _toLowerCase: () => _toLowerCase,
12260
+ _toUpperCase: () => _toUpperCase,
12261
+ _transform: () => _transform,
12262
+ _trim: () => _trim,
12263
+ _tuple: () => _tuple,
12264
+ _uint32: () => _uint32,
12265
+ _uint64: () => _uint64,
12266
+ _ulid: () => _ulid,
12267
+ _undefined: () => _undefined2,
12268
+ _union: () => _union,
12269
+ _unknown: () => _unknown,
12270
+ _uppercase: () => _uppercase,
12271
+ _url: () => _url,
12272
+ _uuid: () => _uuid,
12273
+ _uuidv4: () => _uuidv4,
12274
+ _uuidv6: () => _uuidv6,
12275
+ _uuidv7: () => _uuidv7,
12276
+ _void: () => _void,
12277
+ _xid: () => _xid,
12278
+ _xor: () => _xor,
12279
+ clone: () => clone,
12280
+ config: () => config,
12281
+ createStandardJSONSchemaMethod: () => createStandardJSONSchemaMethod,
12282
+ createToJSONSchemaMethod: () => createToJSONSchemaMethod,
12283
+ decode: () => decode,
12284
+ decodeAsync: () => decodeAsync,
12285
+ describe: () => describe,
12286
+ encode: () => encode,
12287
+ encodeAsync: () => encodeAsync,
12288
+ extractDefs: () => extractDefs,
12289
+ finalize: () => finalize,
12290
+ flattenError: () => flattenError,
12291
+ formatError: () => formatError,
12292
+ globalConfig: () => globalConfig,
12293
+ globalRegistry: () => globalRegistry,
12294
+ initializeContext: () => initializeContext,
12295
+ isValidBase64: () => isValidBase64,
12296
+ isValidBase64URL: () => isValidBase64URL,
12297
+ isValidJWT: () => isValidJWT,
12298
+ locales: () => exports_locales,
12299
+ meta: () => meta,
12300
+ parse: () => parse,
12301
+ parseAsync: () => parseAsync,
12302
+ prettifyError: () => prettifyError,
12303
+ process: () => process2,
12304
+ regexes: () => exports_regexes,
12305
+ registry: () => registry,
12306
+ safeDecode: () => safeDecode,
12307
+ safeDecodeAsync: () => safeDecodeAsync,
12308
+ safeEncode: () => safeEncode,
12309
+ safeEncodeAsync: () => safeEncodeAsync,
12310
+ safeParse: () => safeParse,
12311
+ safeParseAsync: () => safeParseAsync,
12312
+ toDotPath: () => toDotPath,
12313
+ toJSONSchema: () => toJSONSchema,
12314
+ treeifyError: () => treeifyError,
12315
+ util: () => exports_util,
12316
+ version: () => version
12315
12317
  });
12316
12318
  var init_core2 = __esm(() => {
12317
12319
  init_util();
@@ -12334,35 +12336,35 @@ var init_core2 = __esm(() => {
12334
12336
  // node_modules/zod/v4/classic/checks.js
12335
12337
  var exports_checks2 = {};
12336
12338
  __export(exports_checks2, {
12337
- uppercase: () => _uppercase,
12338
- trim: () => _trim,
12339
- toUpperCase: () => _toUpperCase,
12340
- toLowerCase: () => _toLowerCase,
12341
- startsWith: () => _startsWith,
12342
- slugify: () => _slugify,
12343
- size: () => _size,
12344
- regex: () => _regex,
12345
- property: () => _property,
12346
- positive: () => _positive,
12347
- overwrite: () => _overwrite,
12348
- normalize: () => _normalize,
12349
- nonpositive: () => _nonpositive,
12350
- nonnegative: () => _nonnegative,
12351
- negative: () => _negative,
12352
- multipleOf: () => _multipleOf,
12353
- minSize: () => _minSize,
12354
- minLength: () => _minLength,
12355
- mime: () => _mime,
12356
- maxSize: () => _maxSize,
12357
- maxLength: () => _maxLength,
12358
- lte: () => _lte,
12359
- lt: () => _lt,
12360
- lowercase: () => _lowercase,
12361
- length: () => _length,
12362
- includes: () => _includes,
12363
- gte: () => _gte,
12339
+ endsWith: () => _endsWith,
12364
12340
  gt: () => _gt,
12365
- endsWith: () => _endsWith
12341
+ gte: () => _gte,
12342
+ includes: () => _includes,
12343
+ length: () => _length,
12344
+ lowercase: () => _lowercase,
12345
+ lt: () => _lt,
12346
+ lte: () => _lte,
12347
+ maxLength: () => _maxLength,
12348
+ maxSize: () => _maxSize,
12349
+ mime: () => _mime,
12350
+ minLength: () => _minLength,
12351
+ minSize: () => _minSize,
12352
+ multipleOf: () => _multipleOf,
12353
+ negative: () => _negative,
12354
+ nonnegative: () => _nonnegative,
12355
+ nonpositive: () => _nonpositive,
12356
+ normalize: () => _normalize,
12357
+ overwrite: () => _overwrite,
12358
+ positive: () => _positive,
12359
+ property: () => _property,
12360
+ regex: () => _regex,
12361
+ size: () => _size,
12362
+ slugify: () => _slugify,
12363
+ startsWith: () => _startsWith,
12364
+ toLowerCase: () => _toLowerCase,
12365
+ toUpperCase: () => _toUpperCase,
12366
+ trim: () => _trim,
12367
+ uppercase: () => _uppercase
12366
12368
  });
12367
12369
  var init_checks2 = __esm(() => {
12368
12370
  init_core2();
@@ -12371,14 +12373,14 @@ var init_checks2 = __esm(() => {
12371
12373
  // node_modules/zod/v4/classic/iso.js
12372
12374
  var exports_iso = {};
12373
12375
  __export(exports_iso, {
12374
- time: () => time2,
12375
- duration: () => duration2,
12376
- datetime: () => datetime2,
12377
- date: () => date2,
12378
- ZodISOTime: () => ZodISOTime,
12379
- ZodISODuration: () => ZodISODuration,
12376
+ ZodISODate: () => ZodISODate,
12380
12377
  ZodISODateTime: () => ZodISODateTime,
12381
- ZodISODate: () => ZodISODate
12378
+ ZodISODuration: () => ZodISODuration,
12379
+ ZodISOTime: () => ZodISOTime,
12380
+ date: () => date2,
12381
+ datetime: () => datetime2,
12382
+ duration: () => duration2,
12383
+ time: () => time2
12382
12384
  });
12383
12385
  function datetime2(params) {
12384
12386
  return _isoDateTime(ZodISODateTime, params);
@@ -12476,172 +12478,172 @@ var init_parse2 = __esm(() => {
12476
12478
  // node_modules/zod/v4/classic/schemas.js
12477
12479
  var exports_schemas2 = {};
12478
12480
  __export(exports_schemas2, {
12479
- xor: () => xor,
12480
- xid: () => xid2,
12481
- void: () => _void2,
12482
- uuidv7: () => uuidv7,
12483
- uuidv6: () => uuidv6,
12484
- uuidv4: () => uuidv4,
12485
- uuid: () => uuid2,
12486
- url: () => url,
12487
- unknown: () => unknown,
12488
- union: () => union,
12489
- undefined: () => _undefined3,
12490
- ulid: () => ulid2,
12491
- uint64: () => uint64,
12492
- uint32: () => uint32,
12493
- tuple: () => tuple,
12494
- transform: () => transform,
12495
- templateLiteral: () => templateLiteral,
12496
- symbol: () => symbol,
12497
- superRefine: () => superRefine,
12498
- success: () => success,
12499
- stringbool: () => stringbool,
12500
- stringFormat: () => stringFormat,
12501
- string: () => string2,
12502
- strictObject: () => strictObject,
12503
- set: () => set,
12504
- refine: () => refine,
12505
- record: () => record,
12506
- readonly: () => readonly,
12507
- promise: () => promise,
12508
- preprocess: () => preprocess,
12509
- prefault: () => prefault,
12510
- pipe: () => pipe,
12511
- partialRecord: () => partialRecord,
12512
- optional: () => optional,
12513
- object: () => object,
12514
- number: () => number2,
12515
- nullish: () => nullish2,
12516
- nullable: () => nullable,
12517
- null: () => _null3,
12518
- nonoptional: () => nonoptional,
12519
- never: () => never,
12520
- nativeEnum: () => nativeEnum,
12521
- nanoid: () => nanoid2,
12522
- nan: () => nan,
12523
- meta: () => meta2,
12524
- map: () => map,
12525
- mac: () => mac2,
12526
- looseRecord: () => looseRecord,
12527
- looseObject: () => looseObject,
12528
- literal: () => literal,
12529
- lazy: () => lazy,
12530
- ksuid: () => ksuid2,
12531
- keyof: () => keyof,
12532
- jwt: () => jwt,
12533
- json: () => json,
12534
- ipv6: () => ipv62,
12535
- ipv4: () => ipv42,
12536
- invertCodec: () => invertCodec,
12537
- intersection: () => intersection,
12538
- int64: () => int64,
12539
- int32: () => int32,
12540
- int: () => int,
12541
- instanceof: () => _instanceof,
12542
- httpUrl: () => httpUrl,
12543
- hostname: () => hostname2,
12544
- hex: () => hex2,
12545
- hash: () => hash,
12546
- guid: () => guid2,
12547
- function: () => _function,
12548
- float64: () => float64,
12549
- float32: () => float32,
12550
- file: () => file,
12551
- exactOptional: () => exactOptional,
12552
- enum: () => _enum2,
12553
- emoji: () => emoji2,
12554
- email: () => email2,
12555
- e164: () => e1642,
12556
- discriminatedUnion: () => discriminatedUnion,
12557
- describe: () => describe2,
12558
- date: () => date3,
12559
- custom: () => custom,
12560
- cuid2: () => cuid22,
12561
- cuid: () => cuid3,
12562
- codec: () => codec,
12563
- cidrv6: () => cidrv62,
12564
- cidrv4: () => cidrv42,
12565
- check: () => check,
12566
- catch: () => _catch2,
12567
- boolean: () => boolean2,
12568
- bigint: () => bigint2,
12569
- base64url: () => base64url2,
12570
- base64: () => base642,
12571
- array: () => array,
12572
- any: () => any,
12573
- _function: () => _function,
12574
- _default: () => _default2,
12575
- _ZodString: () => _ZodString,
12576
- ZodXor: () => ZodXor,
12577
- ZodXID: () => ZodXID,
12578
- ZodVoid: () => ZodVoid,
12579
- ZodUnknown: () => ZodUnknown,
12580
- ZodUnion: () => ZodUnion,
12581
- ZodUndefined: () => ZodUndefined,
12582
- ZodUUID: () => ZodUUID,
12583
- ZodURL: () => ZodURL,
12584
- ZodULID: () => ZodULID,
12585
- ZodType: () => ZodType,
12586
- ZodTuple: () => ZodTuple,
12587
- ZodTransform: () => ZodTransform,
12588
- ZodTemplateLiteral: () => ZodTemplateLiteral,
12589
- ZodSymbol: () => ZodSymbol,
12590
- ZodSuccess: () => ZodSuccess,
12591
- ZodStringFormat: () => ZodStringFormat,
12592
- ZodString: () => ZodString,
12593
- ZodSet: () => ZodSet,
12594
- ZodRecord: () => ZodRecord,
12595
- ZodReadonly: () => ZodReadonly,
12596
- ZodPromise: () => ZodPromise,
12597
- ZodPreprocess: () => ZodPreprocess,
12598
- ZodPrefault: () => ZodPrefault,
12599
- ZodPipe: () => ZodPipe,
12600
- ZodOptional: () => ZodOptional,
12601
- ZodObject: () => ZodObject,
12602
- ZodNumberFormat: () => ZodNumberFormat,
12603
- ZodNumber: () => ZodNumber,
12604
- ZodNullable: () => ZodNullable,
12605
- ZodNull: () => ZodNull,
12606
- ZodNonOptional: () => ZodNonOptional,
12607
- ZodNever: () => ZodNever,
12608
- ZodNanoID: () => ZodNanoID,
12609
- ZodNaN: () => ZodNaN,
12610
- ZodMap: () => ZodMap,
12611
- ZodMAC: () => ZodMAC,
12612
- ZodLiteral: () => ZodLiteral,
12613
- ZodLazy: () => ZodLazy,
12614
- ZodKSUID: () => ZodKSUID,
12615
- ZodJWT: () => ZodJWT,
12616
- ZodIntersection: () => ZodIntersection,
12617
- ZodIPv6: () => ZodIPv6,
12618
- ZodIPv4: () => ZodIPv4,
12619
- ZodGUID: () => ZodGUID,
12620
- ZodFunction: () => ZodFunction,
12621
- ZodFile: () => ZodFile,
12622
- ZodExactOptional: () => ZodExactOptional,
12623
- ZodEnum: () => ZodEnum,
12624
- ZodEmoji: () => ZodEmoji,
12625
- ZodEmail: () => ZodEmail,
12626
- ZodE164: () => ZodE164,
12627
- ZodDiscriminatedUnion: () => ZodDiscriminatedUnion,
12628
- ZodDefault: () => ZodDefault,
12629
- ZodDate: () => ZodDate,
12630
- ZodCustomStringFormat: () => ZodCustomStringFormat,
12631
- ZodCustom: () => ZodCustom,
12632
- ZodCodec: () => ZodCodec,
12633
- ZodCatch: () => ZodCatch,
12634
- ZodCUID2: () => ZodCUID2,
12635
- ZodCUID: () => ZodCUID,
12636
- ZodCIDRv6: () => ZodCIDRv6,
12637
- ZodCIDRv4: () => ZodCIDRv4,
12638
- ZodBoolean: () => ZodBoolean,
12639
- ZodBigIntFormat: () => ZodBigIntFormat,
12640
- ZodBigInt: () => ZodBigInt,
12641
- ZodBase64URL: () => ZodBase64URL,
12642
- ZodBase64: () => ZodBase64,
12481
+ ZodAny: () => ZodAny,
12643
12482
  ZodArray: () => ZodArray,
12644
- ZodAny: () => ZodAny
12483
+ ZodBase64: () => ZodBase64,
12484
+ ZodBase64URL: () => ZodBase64URL,
12485
+ ZodBigInt: () => ZodBigInt,
12486
+ ZodBigIntFormat: () => ZodBigIntFormat,
12487
+ ZodBoolean: () => ZodBoolean,
12488
+ ZodCIDRv4: () => ZodCIDRv4,
12489
+ ZodCIDRv6: () => ZodCIDRv6,
12490
+ ZodCUID: () => ZodCUID,
12491
+ ZodCUID2: () => ZodCUID2,
12492
+ ZodCatch: () => ZodCatch,
12493
+ ZodCodec: () => ZodCodec,
12494
+ ZodCustom: () => ZodCustom,
12495
+ ZodCustomStringFormat: () => ZodCustomStringFormat,
12496
+ ZodDate: () => ZodDate,
12497
+ ZodDefault: () => ZodDefault,
12498
+ ZodDiscriminatedUnion: () => ZodDiscriminatedUnion,
12499
+ ZodE164: () => ZodE164,
12500
+ ZodEmail: () => ZodEmail,
12501
+ ZodEmoji: () => ZodEmoji,
12502
+ ZodEnum: () => ZodEnum,
12503
+ ZodExactOptional: () => ZodExactOptional,
12504
+ ZodFile: () => ZodFile,
12505
+ ZodFunction: () => ZodFunction,
12506
+ ZodGUID: () => ZodGUID,
12507
+ ZodIPv4: () => ZodIPv4,
12508
+ ZodIPv6: () => ZodIPv6,
12509
+ ZodIntersection: () => ZodIntersection,
12510
+ ZodJWT: () => ZodJWT,
12511
+ ZodKSUID: () => ZodKSUID,
12512
+ ZodLazy: () => ZodLazy,
12513
+ ZodLiteral: () => ZodLiteral,
12514
+ ZodMAC: () => ZodMAC,
12515
+ ZodMap: () => ZodMap,
12516
+ ZodNaN: () => ZodNaN,
12517
+ ZodNanoID: () => ZodNanoID,
12518
+ ZodNever: () => ZodNever,
12519
+ ZodNonOptional: () => ZodNonOptional,
12520
+ ZodNull: () => ZodNull,
12521
+ ZodNullable: () => ZodNullable,
12522
+ ZodNumber: () => ZodNumber,
12523
+ ZodNumberFormat: () => ZodNumberFormat,
12524
+ ZodObject: () => ZodObject,
12525
+ ZodOptional: () => ZodOptional,
12526
+ ZodPipe: () => ZodPipe,
12527
+ ZodPrefault: () => ZodPrefault,
12528
+ ZodPreprocess: () => ZodPreprocess,
12529
+ ZodPromise: () => ZodPromise,
12530
+ ZodReadonly: () => ZodReadonly,
12531
+ ZodRecord: () => ZodRecord,
12532
+ ZodSet: () => ZodSet,
12533
+ ZodString: () => ZodString,
12534
+ ZodStringFormat: () => ZodStringFormat,
12535
+ ZodSuccess: () => ZodSuccess,
12536
+ ZodSymbol: () => ZodSymbol,
12537
+ ZodTemplateLiteral: () => ZodTemplateLiteral,
12538
+ ZodTransform: () => ZodTransform,
12539
+ ZodTuple: () => ZodTuple,
12540
+ ZodType: () => ZodType,
12541
+ ZodULID: () => ZodULID,
12542
+ ZodURL: () => ZodURL,
12543
+ ZodUUID: () => ZodUUID,
12544
+ ZodUndefined: () => ZodUndefined,
12545
+ ZodUnion: () => ZodUnion,
12546
+ ZodUnknown: () => ZodUnknown,
12547
+ ZodVoid: () => ZodVoid,
12548
+ ZodXID: () => ZodXID,
12549
+ ZodXor: () => ZodXor,
12550
+ _ZodString: () => _ZodString,
12551
+ _default: () => _default2,
12552
+ _function: () => _function,
12553
+ any: () => any,
12554
+ array: () => array,
12555
+ base64: () => base642,
12556
+ base64url: () => base64url2,
12557
+ bigint: () => bigint2,
12558
+ boolean: () => boolean2,
12559
+ catch: () => _catch2,
12560
+ check: () => check,
12561
+ cidrv4: () => cidrv42,
12562
+ cidrv6: () => cidrv62,
12563
+ codec: () => codec,
12564
+ cuid: () => cuid3,
12565
+ cuid2: () => cuid22,
12566
+ custom: () => custom,
12567
+ date: () => date3,
12568
+ describe: () => describe2,
12569
+ discriminatedUnion: () => discriminatedUnion,
12570
+ e164: () => e1642,
12571
+ email: () => email2,
12572
+ emoji: () => emoji2,
12573
+ enum: () => _enum2,
12574
+ exactOptional: () => exactOptional,
12575
+ file: () => file,
12576
+ float32: () => float32,
12577
+ float64: () => float64,
12578
+ function: () => _function,
12579
+ guid: () => guid2,
12580
+ hash: () => hash,
12581
+ hex: () => hex2,
12582
+ hostname: () => hostname2,
12583
+ httpUrl: () => httpUrl,
12584
+ instanceof: () => _instanceof,
12585
+ int: () => int,
12586
+ int32: () => int32,
12587
+ int64: () => int64,
12588
+ intersection: () => intersection,
12589
+ invertCodec: () => invertCodec,
12590
+ ipv4: () => ipv42,
12591
+ ipv6: () => ipv62,
12592
+ json: () => json,
12593
+ jwt: () => jwt,
12594
+ keyof: () => keyof,
12595
+ ksuid: () => ksuid2,
12596
+ lazy: () => lazy,
12597
+ literal: () => literal,
12598
+ looseObject: () => looseObject,
12599
+ looseRecord: () => looseRecord,
12600
+ mac: () => mac2,
12601
+ map: () => map,
12602
+ meta: () => meta2,
12603
+ nan: () => nan,
12604
+ nanoid: () => nanoid2,
12605
+ nativeEnum: () => nativeEnum,
12606
+ never: () => never,
12607
+ nonoptional: () => nonoptional,
12608
+ null: () => _null3,
12609
+ nullable: () => nullable,
12610
+ nullish: () => nullish2,
12611
+ number: () => number2,
12612
+ object: () => object,
12613
+ optional: () => optional,
12614
+ partialRecord: () => partialRecord,
12615
+ pipe: () => pipe,
12616
+ prefault: () => prefault,
12617
+ preprocess: () => preprocess,
12618
+ promise: () => promise,
12619
+ readonly: () => readonly,
12620
+ record: () => record,
12621
+ refine: () => refine,
12622
+ set: () => set,
12623
+ strictObject: () => strictObject,
12624
+ string: () => string2,
12625
+ stringFormat: () => stringFormat,
12626
+ stringbool: () => stringbool,
12627
+ success: () => success,
12628
+ superRefine: () => superRefine,
12629
+ symbol: () => symbol,
12630
+ templateLiteral: () => templateLiteral,
12631
+ transform: () => transform,
12632
+ tuple: () => tuple,
12633
+ uint32: () => uint32,
12634
+ uint64: () => uint64,
12635
+ ulid: () => ulid2,
12636
+ undefined: () => _undefined3,
12637
+ union: () => union,
12638
+ unknown: () => unknown,
12639
+ url: () => url,
12640
+ uuid: () => uuid2,
12641
+ uuidv4: () => uuidv4,
12642
+ uuidv6: () => uuidv6,
12643
+ uuidv7: () => uuidv7,
12644
+ void: () => _void2,
12645
+ xid: () => xid2,
12646
+ xor: () => xor
12645
12647
  });
12646
12648
  function _installLazyMethods(inst, group, methods) {
12647
12649
  const proto = Object.getPrototypeOf(inst);
@@ -14252,466 +14254,466 @@ function convertBaseSchema(schema, ctx) {
14252
14254
  zodSchema = zodSchema.check(z.maxLength(schema.maxItems));
14253
14255
  }
14254
14256
  } else if (Array.isArray(items)) {
14255
- const tupleItems = items.map((item) => convertSchema(item, ctx));
14256
- const rest = schema.additionalItems && typeof schema.additionalItems === "object" ? convertSchema(schema.additionalItems, ctx) : undefined;
14257
- if (rest) {
14258
- zodSchema = z.tuple(tupleItems).rest(rest);
14259
- } else {
14260
- zodSchema = z.tuple(tupleItems);
14261
- }
14262
- if (typeof schema.minItems === "number") {
14263
- zodSchema = zodSchema.check(z.minLength(schema.minItems));
14264
- }
14265
- if (typeof schema.maxItems === "number") {
14266
- zodSchema = zodSchema.check(z.maxLength(schema.maxItems));
14267
- }
14268
- } else if (items !== undefined) {
14269
- const element = convertSchema(items, ctx);
14270
- let arraySchema = z.array(element);
14271
- if (typeof schema.minItems === "number") {
14272
- arraySchema = arraySchema.min(schema.minItems);
14273
- }
14274
- if (typeof schema.maxItems === "number") {
14275
- arraySchema = arraySchema.max(schema.maxItems);
14276
- }
14277
- zodSchema = arraySchema;
14278
- } else {
14279
- zodSchema = z.array(z.any());
14280
- }
14281
- break;
14282
- }
14283
- default:
14284
- throw new Error(`Unsupported type: ${type}`);
14285
- }
14286
- return zodSchema;
14287
- }
14288
- function convertSchema(schema, ctx) {
14289
- if (typeof schema === "boolean") {
14290
- return schema ? z.any() : z.never();
14291
- }
14292
- let baseSchema = convertBaseSchema(schema, ctx);
14293
- const hasExplicitType = schema.type || schema.enum !== undefined || schema.const !== undefined;
14294
- if (schema.anyOf && Array.isArray(schema.anyOf)) {
14295
- const options = schema.anyOf.map((s) => convertSchema(s, ctx));
14296
- const anyOfUnion = z.union(options);
14297
- baseSchema = hasExplicitType ? z.intersection(baseSchema, anyOfUnion) : anyOfUnion;
14298
- }
14299
- if (schema.oneOf && Array.isArray(schema.oneOf)) {
14300
- const options = schema.oneOf.map((s) => convertSchema(s, ctx));
14301
- const oneOfUnion = z.xor(options);
14302
- baseSchema = hasExplicitType ? z.intersection(baseSchema, oneOfUnion) : oneOfUnion;
14303
- }
14304
- if (schema.allOf && Array.isArray(schema.allOf)) {
14305
- if (schema.allOf.length === 0) {
14306
- baseSchema = hasExplicitType ? baseSchema : z.any();
14307
- } else {
14308
- let result = hasExplicitType ? baseSchema : convertSchema(schema.allOf[0], ctx);
14309
- const startIdx = hasExplicitType ? 0 : 1;
14310
- for (let i = startIdx;i < schema.allOf.length; i++) {
14311
- result = z.intersection(result, convertSchema(schema.allOf[i], ctx));
14312
- }
14313
- baseSchema = result;
14314
- }
14315
- }
14316
- if (schema.nullable === true && ctx.version === "openapi-3.0") {
14317
- baseSchema = z.nullable(baseSchema);
14318
- }
14319
- if (schema.readOnly === true) {
14320
- baseSchema = z.readonly(baseSchema);
14321
- }
14322
- if (schema.default !== undefined) {
14323
- baseSchema = baseSchema.default(schema.default);
14324
- }
14325
- const extraMeta = {};
14326
- const coreMetadataKeys = ["$id", "id", "$comment", "$anchor", "$vocabulary", "$dynamicRef", "$dynamicAnchor"];
14327
- for (const key of coreMetadataKeys) {
14328
- if (key in schema) {
14329
- extraMeta[key] = schema[key];
14330
- }
14331
- }
14332
- const contentMetadataKeys = ["contentEncoding", "contentMediaType", "contentSchema"];
14333
- for (const key of contentMetadataKeys) {
14334
- if (key in schema) {
14335
- extraMeta[key] = schema[key];
14336
- }
14337
- }
14338
- for (const key of Object.keys(schema)) {
14339
- if (!RECOGNIZED_KEYS.has(key)) {
14340
- extraMeta[key] = schema[key];
14341
- }
14342
- }
14343
- if (Object.keys(extraMeta).length > 0) {
14344
- ctx.registry.add(baseSchema, extraMeta);
14345
- }
14346
- if (schema.description) {
14347
- baseSchema = baseSchema.describe(schema.description);
14348
- }
14349
- return baseSchema;
14350
- }
14351
- function fromJSONSchema(schema, params) {
14352
- if (typeof schema === "boolean") {
14353
- return schema ? z.any() : z.never();
14354
- }
14355
- let normalized;
14356
- try {
14357
- normalized = JSON.parse(JSON.stringify(schema));
14358
- } catch {
14359
- throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas");
14360
- }
14361
- const version2 = detectVersion(normalized, params?.defaultTarget);
14362
- const defs = normalized.$defs || normalized.definitions || {};
14363
- const ctx = {
14364
- version: version2,
14365
- defs,
14366
- refs: new Map,
14367
- processing: new Set,
14368
- rootSchema: normalized,
14369
- registry: params?.registry ?? globalRegistry
14370
- };
14371
- return convertSchema(normalized, ctx);
14372
- }
14373
- var z, RECOGNIZED_KEYS;
14374
- var init_from_json_schema = __esm(() => {
14375
- init_registries();
14376
- init_checks2();
14377
- init_iso();
14378
- init_schemas2();
14379
- z = {
14380
- ...exports_schemas2,
14381
- ...exports_checks2,
14382
- iso: exports_iso
14383
- };
14384
- RECOGNIZED_KEYS = /* @__PURE__ */ new Set([
14385
- "$schema",
14386
- "$ref",
14387
- "$defs",
14388
- "definitions",
14389
- "$id",
14390
- "id",
14391
- "$comment",
14392
- "$anchor",
14393
- "$vocabulary",
14394
- "$dynamicRef",
14395
- "$dynamicAnchor",
14396
- "type",
14397
- "enum",
14398
- "const",
14399
- "anyOf",
14400
- "oneOf",
14401
- "allOf",
14402
- "not",
14403
- "properties",
14404
- "required",
14405
- "additionalProperties",
14406
- "patternProperties",
14407
- "propertyNames",
14408
- "minProperties",
14409
- "maxProperties",
14410
- "items",
14411
- "prefixItems",
14412
- "additionalItems",
14413
- "minItems",
14414
- "maxItems",
14415
- "uniqueItems",
14416
- "contains",
14417
- "minContains",
14418
- "maxContains",
14419
- "minLength",
14420
- "maxLength",
14421
- "pattern",
14422
- "format",
14423
- "minimum",
14424
- "maximum",
14425
- "exclusiveMinimum",
14426
- "exclusiveMaximum",
14427
- "multipleOf",
14428
- "description",
14429
- "default",
14430
- "contentEncoding",
14431
- "contentMediaType",
14432
- "contentSchema",
14433
- "unevaluatedItems",
14434
- "unevaluatedProperties",
14435
- "if",
14436
- "then",
14437
- "else",
14438
- "dependentSchemas",
14439
- "dependentRequired",
14440
- "nullable",
14441
- "readOnly"
14442
- ]);
14443
- });
14444
-
14445
- // node_modules/zod/v4/classic/coerce.js
14446
- var exports_coerce = {};
14447
- __export(exports_coerce, {
14448
- string: () => string3,
14449
- number: () => number3,
14450
- date: () => date4,
14451
- boolean: () => boolean3,
14452
- bigint: () => bigint3
14453
- });
14454
- function string3(params) {
14455
- return _coercedString(ZodString, params);
14456
- }
14457
- function number3(params) {
14458
- return _coercedNumber(ZodNumber, params);
14459
- }
14460
- function boolean3(params) {
14461
- return _coercedBoolean(ZodBoolean, params);
14462
- }
14463
- function bigint3(params) {
14464
- return _coercedBigint(ZodBigInt, params);
14465
- }
14466
- function date4(params) {
14467
- return _coercedDate(ZodDate, params);
14468
- }
14469
- var init_coerce = __esm(() => {
14470
- init_core2();
14471
- init_schemas2();
14472
- });
14473
-
14474
- // node_modules/zod/v4/classic/external.js
14475
- var exports_external = {};
14476
- __export(exports_external, {
14477
- xor: () => xor,
14478
- xid: () => xid2,
14479
- void: () => _void2,
14480
- uuidv7: () => uuidv7,
14481
- uuidv6: () => uuidv6,
14482
- uuidv4: () => uuidv4,
14483
- uuid: () => uuid2,
14484
- util: () => exports_util,
14485
- url: () => url,
14486
- uppercase: () => _uppercase,
14487
- unknown: () => unknown,
14488
- union: () => union,
14489
- undefined: () => _undefined3,
14490
- ulid: () => ulid2,
14491
- uint64: () => uint64,
14492
- uint32: () => uint32,
14493
- tuple: () => tuple,
14494
- trim: () => _trim,
14495
- treeifyError: () => treeifyError,
14496
- transform: () => transform,
14497
- toUpperCase: () => _toUpperCase,
14498
- toLowerCase: () => _toLowerCase,
14499
- toJSONSchema: () => toJSONSchema,
14500
- templateLiteral: () => templateLiteral,
14501
- symbol: () => symbol,
14502
- superRefine: () => superRefine,
14503
- success: () => success,
14504
- stringbool: () => stringbool,
14505
- stringFormat: () => stringFormat,
14506
- string: () => string2,
14507
- strictObject: () => strictObject,
14508
- startsWith: () => _startsWith,
14509
- slugify: () => _slugify,
14510
- size: () => _size,
14511
- setErrorMap: () => setErrorMap,
14512
- set: () => set,
14513
- safeParseAsync: () => safeParseAsync2,
14514
- safeParse: () => safeParse2,
14515
- safeEncodeAsync: () => safeEncodeAsync2,
14516
- safeEncode: () => safeEncode2,
14517
- safeDecodeAsync: () => safeDecodeAsync2,
14518
- safeDecode: () => safeDecode2,
14519
- registry: () => registry,
14520
- regexes: () => exports_regexes,
14521
- regex: () => _regex,
14522
- refine: () => refine,
14523
- record: () => record,
14524
- readonly: () => readonly,
14525
- property: () => _property,
14526
- promise: () => promise,
14527
- prettifyError: () => prettifyError,
14528
- preprocess: () => preprocess,
14529
- prefault: () => prefault,
14530
- positive: () => _positive,
14531
- pipe: () => pipe,
14532
- partialRecord: () => partialRecord,
14533
- parseAsync: () => parseAsync2,
14534
- parse: () => parse3,
14535
- overwrite: () => _overwrite,
14536
- optional: () => optional,
14537
- object: () => object,
14538
- number: () => number2,
14539
- nullish: () => nullish2,
14540
- nullable: () => nullable,
14541
- null: () => _null3,
14542
- normalize: () => _normalize,
14543
- nonpositive: () => _nonpositive,
14544
- nonoptional: () => nonoptional,
14545
- nonnegative: () => _nonnegative,
14546
- never: () => never,
14547
- negative: () => _negative,
14548
- nativeEnum: () => nativeEnum,
14549
- nanoid: () => nanoid2,
14550
- nan: () => nan,
14551
- multipleOf: () => _multipleOf,
14552
- minSize: () => _minSize,
14553
- minLength: () => _minLength,
14554
- mime: () => _mime,
14555
- meta: () => meta2,
14556
- maxSize: () => _maxSize,
14557
- maxLength: () => _maxLength,
14558
- map: () => map,
14559
- mac: () => mac2,
14560
- lte: () => _lte,
14561
- lt: () => _lt,
14562
- lowercase: () => _lowercase,
14563
- looseRecord: () => looseRecord,
14564
- looseObject: () => looseObject,
14565
- locales: () => exports_locales,
14566
- literal: () => literal,
14567
- length: () => _length,
14568
- lazy: () => lazy,
14569
- ksuid: () => ksuid2,
14570
- keyof: () => keyof,
14571
- jwt: () => jwt,
14572
- json: () => json,
14573
- iso: () => exports_iso,
14574
- ipv6: () => ipv62,
14575
- ipv4: () => ipv42,
14576
- invertCodec: () => invertCodec,
14577
- intersection: () => intersection,
14578
- int64: () => int64,
14579
- int32: () => int32,
14580
- int: () => int,
14581
- instanceof: () => _instanceof,
14582
- includes: () => _includes,
14583
- httpUrl: () => httpUrl,
14584
- hostname: () => hostname2,
14585
- hex: () => hex2,
14586
- hash: () => hash,
14587
- guid: () => guid2,
14588
- gte: () => _gte,
14589
- gt: () => _gt,
14590
- globalRegistry: () => globalRegistry,
14591
- getErrorMap: () => getErrorMap,
14592
- function: () => _function,
14593
- fromJSONSchema: () => fromJSONSchema,
14594
- formatError: () => formatError,
14595
- float64: () => float64,
14596
- float32: () => float32,
14597
- flattenError: () => flattenError,
14598
- file: () => file,
14599
- exactOptional: () => exactOptional,
14600
- enum: () => _enum2,
14601
- endsWith: () => _endsWith,
14602
- encodeAsync: () => encodeAsync2,
14603
- encode: () => encode2,
14604
- emoji: () => emoji2,
14605
- email: () => email2,
14606
- e164: () => e1642,
14607
- discriminatedUnion: () => discriminatedUnion,
14608
- describe: () => describe2,
14609
- decodeAsync: () => decodeAsync2,
14610
- decode: () => decode2,
14611
- date: () => date3,
14612
- custom: () => custom,
14613
- cuid2: () => cuid22,
14614
- cuid: () => cuid3,
14615
- core: () => exports_core2,
14616
- config: () => config,
14617
- coerce: () => exports_coerce,
14618
- codec: () => codec,
14619
- clone: () => clone,
14620
- cidrv6: () => cidrv62,
14621
- cidrv4: () => cidrv42,
14622
- check: () => check,
14623
- catch: () => _catch2,
14624
- boolean: () => boolean2,
14625
- bigint: () => bigint2,
14626
- base64url: () => base64url2,
14627
- base64: () => base642,
14628
- array: () => array,
14629
- any: () => any,
14630
- _function: () => _function,
14631
- _default: () => _default2,
14632
- _ZodString: () => _ZodString,
14633
- ZodXor: () => ZodXor,
14634
- ZodXID: () => ZodXID,
14635
- ZodVoid: () => ZodVoid,
14636
- ZodUnknown: () => ZodUnknown,
14637
- ZodUnion: () => ZodUnion,
14638
- ZodUndefined: () => ZodUndefined,
14639
- ZodUUID: () => ZodUUID,
14640
- ZodURL: () => ZodURL,
14641
- ZodULID: () => ZodULID,
14642
- ZodType: () => ZodType,
14643
- ZodTuple: () => ZodTuple,
14644
- ZodTransform: () => ZodTransform,
14645
- ZodTemplateLiteral: () => ZodTemplateLiteral,
14646
- ZodSymbol: () => ZodSymbol,
14647
- ZodSuccess: () => ZodSuccess,
14648
- ZodStringFormat: () => ZodStringFormat,
14649
- ZodString: () => ZodString,
14650
- ZodSet: () => ZodSet,
14651
- ZodRecord: () => ZodRecord,
14652
- ZodRealError: () => ZodRealError,
14653
- ZodReadonly: () => ZodReadonly,
14654
- ZodPromise: () => ZodPromise,
14655
- ZodPreprocess: () => ZodPreprocess,
14656
- ZodPrefault: () => ZodPrefault,
14657
- ZodPipe: () => ZodPipe,
14658
- ZodOptional: () => ZodOptional,
14659
- ZodObject: () => ZodObject,
14660
- ZodNumberFormat: () => ZodNumberFormat,
14661
- ZodNumber: () => ZodNumber,
14662
- ZodNullable: () => ZodNullable,
14663
- ZodNull: () => ZodNull,
14664
- ZodNonOptional: () => ZodNonOptional,
14665
- ZodNever: () => ZodNever,
14666
- ZodNanoID: () => ZodNanoID,
14667
- ZodNaN: () => ZodNaN,
14668
- ZodMap: () => ZodMap,
14669
- ZodMAC: () => ZodMAC,
14670
- ZodLiteral: () => ZodLiteral,
14671
- ZodLazy: () => ZodLazy,
14672
- ZodKSUID: () => ZodKSUID,
14673
- ZodJWT: () => ZodJWT,
14674
- ZodIssueCode: () => ZodIssueCode,
14675
- ZodIntersection: () => ZodIntersection,
14676
- ZodISOTime: () => ZodISOTime,
14677
- ZodISODuration: () => ZodISODuration,
14678
- ZodISODateTime: () => ZodISODateTime,
14679
- ZodISODate: () => ZodISODate,
14680
- ZodIPv6: () => ZodIPv6,
14681
- ZodIPv4: () => ZodIPv4,
14682
- ZodGUID: () => ZodGUID,
14683
- ZodFunction: () => ZodFunction,
14684
- ZodFirstPartyTypeKind: () => ZodFirstPartyTypeKind,
14685
- ZodFile: () => ZodFile,
14686
- ZodExactOptional: () => ZodExactOptional,
14687
- ZodError: () => ZodError,
14688
- ZodEnum: () => ZodEnum,
14689
- ZodEmoji: () => ZodEmoji,
14690
- ZodEmail: () => ZodEmail,
14691
- ZodE164: () => ZodE164,
14692
- ZodDiscriminatedUnion: () => ZodDiscriminatedUnion,
14693
- ZodDefault: () => ZodDefault,
14694
- ZodDate: () => ZodDate,
14695
- ZodCustomStringFormat: () => ZodCustomStringFormat,
14696
- ZodCustom: () => ZodCustom,
14697
- ZodCodec: () => ZodCodec,
14698
- ZodCatch: () => ZodCatch,
14699
- ZodCUID2: () => ZodCUID2,
14700
- ZodCUID: () => ZodCUID,
14701
- ZodCIDRv6: () => ZodCIDRv6,
14702
- ZodCIDRv4: () => ZodCIDRv4,
14703
- ZodBoolean: () => ZodBoolean,
14704
- ZodBigIntFormat: () => ZodBigIntFormat,
14705
- ZodBigInt: () => ZodBigInt,
14706
- ZodBase64URL: () => ZodBase64URL,
14707
- ZodBase64: () => ZodBase64,
14708
- ZodArray: () => ZodArray,
14709
- ZodAny: () => ZodAny,
14710
- TimePrecision: () => TimePrecision,
14711
- NEVER: () => NEVER,
14712
- $output: () => $output,
14257
+ const tupleItems = items.map((item) => convertSchema(item, ctx));
14258
+ const rest = schema.additionalItems && typeof schema.additionalItems === "object" ? convertSchema(schema.additionalItems, ctx) : undefined;
14259
+ if (rest) {
14260
+ zodSchema = z.tuple(tupleItems).rest(rest);
14261
+ } else {
14262
+ zodSchema = z.tuple(tupleItems);
14263
+ }
14264
+ if (typeof schema.minItems === "number") {
14265
+ zodSchema = zodSchema.check(z.minLength(schema.minItems));
14266
+ }
14267
+ if (typeof schema.maxItems === "number") {
14268
+ zodSchema = zodSchema.check(z.maxLength(schema.maxItems));
14269
+ }
14270
+ } else if (items !== undefined) {
14271
+ const element = convertSchema(items, ctx);
14272
+ let arraySchema = z.array(element);
14273
+ if (typeof schema.minItems === "number") {
14274
+ arraySchema = arraySchema.min(schema.minItems);
14275
+ }
14276
+ if (typeof schema.maxItems === "number") {
14277
+ arraySchema = arraySchema.max(schema.maxItems);
14278
+ }
14279
+ zodSchema = arraySchema;
14280
+ } else {
14281
+ zodSchema = z.array(z.any());
14282
+ }
14283
+ break;
14284
+ }
14285
+ default:
14286
+ throw new Error(`Unsupported type: ${type}`);
14287
+ }
14288
+ return zodSchema;
14289
+ }
14290
+ function convertSchema(schema, ctx) {
14291
+ if (typeof schema === "boolean") {
14292
+ return schema ? z.any() : z.never();
14293
+ }
14294
+ let baseSchema = convertBaseSchema(schema, ctx);
14295
+ const hasExplicitType = schema.type || schema.enum !== undefined || schema.const !== undefined;
14296
+ if (schema.anyOf && Array.isArray(schema.anyOf)) {
14297
+ const options = schema.anyOf.map((s) => convertSchema(s, ctx));
14298
+ const anyOfUnion = z.union(options);
14299
+ baseSchema = hasExplicitType ? z.intersection(baseSchema, anyOfUnion) : anyOfUnion;
14300
+ }
14301
+ if (schema.oneOf && Array.isArray(schema.oneOf)) {
14302
+ const options = schema.oneOf.map((s) => convertSchema(s, ctx));
14303
+ const oneOfUnion = z.xor(options);
14304
+ baseSchema = hasExplicitType ? z.intersection(baseSchema, oneOfUnion) : oneOfUnion;
14305
+ }
14306
+ if (schema.allOf && Array.isArray(schema.allOf)) {
14307
+ if (schema.allOf.length === 0) {
14308
+ baseSchema = hasExplicitType ? baseSchema : z.any();
14309
+ } else {
14310
+ let result = hasExplicitType ? baseSchema : convertSchema(schema.allOf[0], ctx);
14311
+ const startIdx = hasExplicitType ? 0 : 1;
14312
+ for (let i = startIdx;i < schema.allOf.length; i++) {
14313
+ result = z.intersection(result, convertSchema(schema.allOf[i], ctx));
14314
+ }
14315
+ baseSchema = result;
14316
+ }
14317
+ }
14318
+ if (schema.nullable === true && ctx.version === "openapi-3.0") {
14319
+ baseSchema = z.nullable(baseSchema);
14320
+ }
14321
+ if (schema.readOnly === true) {
14322
+ baseSchema = z.readonly(baseSchema);
14323
+ }
14324
+ if (schema.default !== undefined) {
14325
+ baseSchema = baseSchema.default(schema.default);
14326
+ }
14327
+ const extraMeta = {};
14328
+ const coreMetadataKeys = ["$id", "id", "$comment", "$anchor", "$vocabulary", "$dynamicRef", "$dynamicAnchor"];
14329
+ for (const key of coreMetadataKeys) {
14330
+ if (key in schema) {
14331
+ extraMeta[key] = schema[key];
14332
+ }
14333
+ }
14334
+ const contentMetadataKeys = ["contentEncoding", "contentMediaType", "contentSchema"];
14335
+ for (const key of contentMetadataKeys) {
14336
+ if (key in schema) {
14337
+ extraMeta[key] = schema[key];
14338
+ }
14339
+ }
14340
+ for (const key of Object.keys(schema)) {
14341
+ if (!RECOGNIZED_KEYS.has(key)) {
14342
+ extraMeta[key] = schema[key];
14343
+ }
14344
+ }
14345
+ if (Object.keys(extraMeta).length > 0) {
14346
+ ctx.registry.add(baseSchema, extraMeta);
14347
+ }
14348
+ if (schema.description) {
14349
+ baseSchema = baseSchema.describe(schema.description);
14350
+ }
14351
+ return baseSchema;
14352
+ }
14353
+ function fromJSONSchema(schema, params) {
14354
+ if (typeof schema === "boolean") {
14355
+ return schema ? z.any() : z.never();
14356
+ }
14357
+ let normalized;
14358
+ try {
14359
+ normalized = JSON.parse(JSON.stringify(schema));
14360
+ } catch {
14361
+ throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas");
14362
+ }
14363
+ const version2 = detectVersion(normalized, params?.defaultTarget);
14364
+ const defs = normalized.$defs || normalized.definitions || {};
14365
+ const ctx = {
14366
+ version: version2,
14367
+ defs,
14368
+ refs: new Map,
14369
+ processing: new Set,
14370
+ rootSchema: normalized,
14371
+ registry: params?.registry ?? globalRegistry
14372
+ };
14373
+ return convertSchema(normalized, ctx);
14374
+ }
14375
+ var z, RECOGNIZED_KEYS;
14376
+ var init_from_json_schema = __esm(() => {
14377
+ init_registries();
14378
+ init_checks2();
14379
+ init_iso();
14380
+ init_schemas2();
14381
+ z = {
14382
+ ...exports_schemas2,
14383
+ ...exports_checks2,
14384
+ iso: exports_iso
14385
+ };
14386
+ RECOGNIZED_KEYS = /* @__PURE__ */ new Set([
14387
+ "$schema",
14388
+ "$ref",
14389
+ "$defs",
14390
+ "definitions",
14391
+ "$id",
14392
+ "id",
14393
+ "$comment",
14394
+ "$anchor",
14395
+ "$vocabulary",
14396
+ "$dynamicRef",
14397
+ "$dynamicAnchor",
14398
+ "type",
14399
+ "enum",
14400
+ "const",
14401
+ "anyOf",
14402
+ "oneOf",
14403
+ "allOf",
14404
+ "not",
14405
+ "properties",
14406
+ "required",
14407
+ "additionalProperties",
14408
+ "patternProperties",
14409
+ "propertyNames",
14410
+ "minProperties",
14411
+ "maxProperties",
14412
+ "items",
14413
+ "prefixItems",
14414
+ "additionalItems",
14415
+ "minItems",
14416
+ "maxItems",
14417
+ "uniqueItems",
14418
+ "contains",
14419
+ "minContains",
14420
+ "maxContains",
14421
+ "minLength",
14422
+ "maxLength",
14423
+ "pattern",
14424
+ "format",
14425
+ "minimum",
14426
+ "maximum",
14427
+ "exclusiveMinimum",
14428
+ "exclusiveMaximum",
14429
+ "multipleOf",
14430
+ "description",
14431
+ "default",
14432
+ "contentEncoding",
14433
+ "contentMediaType",
14434
+ "contentSchema",
14435
+ "unevaluatedItems",
14436
+ "unevaluatedProperties",
14437
+ "if",
14438
+ "then",
14439
+ "else",
14440
+ "dependentSchemas",
14441
+ "dependentRequired",
14442
+ "nullable",
14443
+ "readOnly"
14444
+ ]);
14445
+ });
14446
+
14447
+ // node_modules/zod/v4/classic/coerce.js
14448
+ var exports_coerce = {};
14449
+ __export(exports_coerce, {
14450
+ bigint: () => bigint3,
14451
+ boolean: () => boolean3,
14452
+ date: () => date4,
14453
+ number: () => number3,
14454
+ string: () => string3
14455
+ });
14456
+ function string3(params) {
14457
+ return _coercedString(ZodString, params);
14458
+ }
14459
+ function number3(params) {
14460
+ return _coercedNumber(ZodNumber, params);
14461
+ }
14462
+ function boolean3(params) {
14463
+ return _coercedBoolean(ZodBoolean, params);
14464
+ }
14465
+ function bigint3(params) {
14466
+ return _coercedBigint(ZodBigInt, params);
14467
+ }
14468
+ function date4(params) {
14469
+ return _coercedDate(ZodDate, params);
14470
+ }
14471
+ var init_coerce = __esm(() => {
14472
+ init_core2();
14473
+ init_schemas2();
14474
+ });
14475
+
14476
+ // node_modules/zod/v4/classic/external.js
14477
+ var exports_external = {};
14478
+ __export(exports_external, {
14479
+ $brand: () => $brand,
14713
14480
  $input: () => $input,
14714
- $brand: () => $brand
14481
+ $output: () => $output,
14482
+ NEVER: () => NEVER,
14483
+ TimePrecision: () => TimePrecision,
14484
+ ZodAny: () => ZodAny,
14485
+ ZodArray: () => ZodArray,
14486
+ ZodBase64: () => ZodBase64,
14487
+ ZodBase64URL: () => ZodBase64URL,
14488
+ ZodBigInt: () => ZodBigInt,
14489
+ ZodBigIntFormat: () => ZodBigIntFormat,
14490
+ ZodBoolean: () => ZodBoolean,
14491
+ ZodCIDRv4: () => ZodCIDRv4,
14492
+ ZodCIDRv6: () => ZodCIDRv6,
14493
+ ZodCUID: () => ZodCUID,
14494
+ ZodCUID2: () => ZodCUID2,
14495
+ ZodCatch: () => ZodCatch,
14496
+ ZodCodec: () => ZodCodec,
14497
+ ZodCustom: () => ZodCustom,
14498
+ ZodCustomStringFormat: () => ZodCustomStringFormat,
14499
+ ZodDate: () => ZodDate,
14500
+ ZodDefault: () => ZodDefault,
14501
+ ZodDiscriminatedUnion: () => ZodDiscriminatedUnion,
14502
+ ZodE164: () => ZodE164,
14503
+ ZodEmail: () => ZodEmail,
14504
+ ZodEmoji: () => ZodEmoji,
14505
+ ZodEnum: () => ZodEnum,
14506
+ ZodError: () => ZodError,
14507
+ ZodExactOptional: () => ZodExactOptional,
14508
+ ZodFile: () => ZodFile,
14509
+ ZodFirstPartyTypeKind: () => ZodFirstPartyTypeKind,
14510
+ ZodFunction: () => ZodFunction,
14511
+ ZodGUID: () => ZodGUID,
14512
+ ZodIPv4: () => ZodIPv4,
14513
+ ZodIPv6: () => ZodIPv6,
14514
+ ZodISODate: () => ZodISODate,
14515
+ ZodISODateTime: () => ZodISODateTime,
14516
+ ZodISODuration: () => ZodISODuration,
14517
+ ZodISOTime: () => ZodISOTime,
14518
+ ZodIntersection: () => ZodIntersection,
14519
+ ZodIssueCode: () => ZodIssueCode,
14520
+ ZodJWT: () => ZodJWT,
14521
+ ZodKSUID: () => ZodKSUID,
14522
+ ZodLazy: () => ZodLazy,
14523
+ ZodLiteral: () => ZodLiteral,
14524
+ ZodMAC: () => ZodMAC,
14525
+ ZodMap: () => ZodMap,
14526
+ ZodNaN: () => ZodNaN,
14527
+ ZodNanoID: () => ZodNanoID,
14528
+ ZodNever: () => ZodNever,
14529
+ ZodNonOptional: () => ZodNonOptional,
14530
+ ZodNull: () => ZodNull,
14531
+ ZodNullable: () => ZodNullable,
14532
+ ZodNumber: () => ZodNumber,
14533
+ ZodNumberFormat: () => ZodNumberFormat,
14534
+ ZodObject: () => ZodObject,
14535
+ ZodOptional: () => ZodOptional,
14536
+ ZodPipe: () => ZodPipe,
14537
+ ZodPrefault: () => ZodPrefault,
14538
+ ZodPreprocess: () => ZodPreprocess,
14539
+ ZodPromise: () => ZodPromise,
14540
+ ZodReadonly: () => ZodReadonly,
14541
+ ZodRealError: () => ZodRealError,
14542
+ ZodRecord: () => ZodRecord,
14543
+ ZodSet: () => ZodSet,
14544
+ ZodString: () => ZodString,
14545
+ ZodStringFormat: () => ZodStringFormat,
14546
+ ZodSuccess: () => ZodSuccess,
14547
+ ZodSymbol: () => ZodSymbol,
14548
+ ZodTemplateLiteral: () => ZodTemplateLiteral,
14549
+ ZodTransform: () => ZodTransform,
14550
+ ZodTuple: () => ZodTuple,
14551
+ ZodType: () => ZodType,
14552
+ ZodULID: () => ZodULID,
14553
+ ZodURL: () => ZodURL,
14554
+ ZodUUID: () => ZodUUID,
14555
+ ZodUndefined: () => ZodUndefined,
14556
+ ZodUnion: () => ZodUnion,
14557
+ ZodUnknown: () => ZodUnknown,
14558
+ ZodVoid: () => ZodVoid,
14559
+ ZodXID: () => ZodXID,
14560
+ ZodXor: () => ZodXor,
14561
+ _ZodString: () => _ZodString,
14562
+ _default: () => _default2,
14563
+ _function: () => _function,
14564
+ any: () => any,
14565
+ array: () => array,
14566
+ base64: () => base642,
14567
+ base64url: () => base64url2,
14568
+ bigint: () => bigint2,
14569
+ boolean: () => boolean2,
14570
+ catch: () => _catch2,
14571
+ check: () => check,
14572
+ cidrv4: () => cidrv42,
14573
+ cidrv6: () => cidrv62,
14574
+ clone: () => clone,
14575
+ codec: () => codec,
14576
+ coerce: () => exports_coerce,
14577
+ config: () => config,
14578
+ core: () => exports_core2,
14579
+ cuid: () => cuid3,
14580
+ cuid2: () => cuid22,
14581
+ custom: () => custom,
14582
+ date: () => date3,
14583
+ decode: () => decode2,
14584
+ decodeAsync: () => decodeAsync2,
14585
+ describe: () => describe2,
14586
+ discriminatedUnion: () => discriminatedUnion,
14587
+ e164: () => e1642,
14588
+ email: () => email2,
14589
+ emoji: () => emoji2,
14590
+ encode: () => encode2,
14591
+ encodeAsync: () => encodeAsync2,
14592
+ endsWith: () => _endsWith,
14593
+ enum: () => _enum2,
14594
+ exactOptional: () => exactOptional,
14595
+ file: () => file,
14596
+ flattenError: () => flattenError,
14597
+ float32: () => float32,
14598
+ float64: () => float64,
14599
+ formatError: () => formatError,
14600
+ fromJSONSchema: () => fromJSONSchema,
14601
+ function: () => _function,
14602
+ getErrorMap: () => getErrorMap,
14603
+ globalRegistry: () => globalRegistry,
14604
+ gt: () => _gt,
14605
+ gte: () => _gte,
14606
+ guid: () => guid2,
14607
+ hash: () => hash,
14608
+ hex: () => hex2,
14609
+ hostname: () => hostname2,
14610
+ httpUrl: () => httpUrl,
14611
+ includes: () => _includes,
14612
+ instanceof: () => _instanceof,
14613
+ int: () => int,
14614
+ int32: () => int32,
14615
+ int64: () => int64,
14616
+ intersection: () => intersection,
14617
+ invertCodec: () => invertCodec,
14618
+ ipv4: () => ipv42,
14619
+ ipv6: () => ipv62,
14620
+ iso: () => exports_iso,
14621
+ json: () => json,
14622
+ jwt: () => jwt,
14623
+ keyof: () => keyof,
14624
+ ksuid: () => ksuid2,
14625
+ lazy: () => lazy,
14626
+ length: () => _length,
14627
+ literal: () => literal,
14628
+ locales: () => exports_locales,
14629
+ looseObject: () => looseObject,
14630
+ looseRecord: () => looseRecord,
14631
+ lowercase: () => _lowercase,
14632
+ lt: () => _lt,
14633
+ lte: () => _lte,
14634
+ mac: () => mac2,
14635
+ map: () => map,
14636
+ maxLength: () => _maxLength,
14637
+ maxSize: () => _maxSize,
14638
+ meta: () => meta2,
14639
+ mime: () => _mime,
14640
+ minLength: () => _minLength,
14641
+ minSize: () => _minSize,
14642
+ multipleOf: () => _multipleOf,
14643
+ nan: () => nan,
14644
+ nanoid: () => nanoid2,
14645
+ nativeEnum: () => nativeEnum,
14646
+ negative: () => _negative,
14647
+ never: () => never,
14648
+ nonnegative: () => _nonnegative,
14649
+ nonoptional: () => nonoptional,
14650
+ nonpositive: () => _nonpositive,
14651
+ normalize: () => _normalize,
14652
+ null: () => _null3,
14653
+ nullable: () => nullable,
14654
+ nullish: () => nullish2,
14655
+ number: () => number2,
14656
+ object: () => object,
14657
+ optional: () => optional,
14658
+ overwrite: () => _overwrite,
14659
+ parse: () => parse3,
14660
+ parseAsync: () => parseAsync2,
14661
+ partialRecord: () => partialRecord,
14662
+ pipe: () => pipe,
14663
+ positive: () => _positive,
14664
+ prefault: () => prefault,
14665
+ preprocess: () => preprocess,
14666
+ prettifyError: () => prettifyError,
14667
+ promise: () => promise,
14668
+ property: () => _property,
14669
+ readonly: () => readonly,
14670
+ record: () => record,
14671
+ refine: () => refine,
14672
+ regex: () => _regex,
14673
+ regexes: () => exports_regexes,
14674
+ registry: () => registry,
14675
+ safeDecode: () => safeDecode2,
14676
+ safeDecodeAsync: () => safeDecodeAsync2,
14677
+ safeEncode: () => safeEncode2,
14678
+ safeEncodeAsync: () => safeEncodeAsync2,
14679
+ safeParse: () => safeParse2,
14680
+ safeParseAsync: () => safeParseAsync2,
14681
+ set: () => set,
14682
+ setErrorMap: () => setErrorMap,
14683
+ size: () => _size,
14684
+ slugify: () => _slugify,
14685
+ startsWith: () => _startsWith,
14686
+ strictObject: () => strictObject,
14687
+ string: () => string2,
14688
+ stringFormat: () => stringFormat,
14689
+ stringbool: () => stringbool,
14690
+ success: () => success,
14691
+ superRefine: () => superRefine,
14692
+ symbol: () => symbol,
14693
+ templateLiteral: () => templateLiteral,
14694
+ toJSONSchema: () => toJSONSchema,
14695
+ toLowerCase: () => _toLowerCase,
14696
+ toUpperCase: () => _toUpperCase,
14697
+ transform: () => transform,
14698
+ treeifyError: () => treeifyError,
14699
+ trim: () => _trim,
14700
+ tuple: () => tuple,
14701
+ uint32: () => uint32,
14702
+ uint64: () => uint64,
14703
+ ulid: () => ulid2,
14704
+ undefined: () => _undefined3,
14705
+ union: () => union,
14706
+ unknown: () => unknown,
14707
+ uppercase: () => _uppercase,
14708
+ url: () => url,
14709
+ util: () => exports_util,
14710
+ uuid: () => uuid2,
14711
+ uuidv4: () => uuidv4,
14712
+ uuidv6: () => uuidv6,
14713
+ uuidv7: () => uuidv7,
14714
+ void: () => _void2,
14715
+ xid: () => xid2,
14716
+ xor: () => xor
14715
14717
  });
14716
14718
  var init_external = __esm(() => {
14717
14719
  init_core2();
@@ -16211,37 +16213,37 @@ var init_driver = __esm(() => {
16211
16213
  // node_modules/@anthropic-ai/claude-agent-sdk/sdk.mjs
16212
16214
  var exports_sdk = {};
16213
16215
  __export(exports_sdk, {
16214
- tool: () => WBe,
16215
- tagSession: () => sLt,
16216
- startup: () => eLt,
16217
- resolveSettings: () => X0t,
16218
- renameSession: () => oLt,
16219
- query: () => Q0t,
16220
- parseDirectConnectUrl: () => YBe,
16221
- listSubagents: () => lLt,
16222
- listSessions: () => nLt,
16223
- importSessionToStore: () => cLt,
16224
- getSubagentMessages: () => uLt,
16225
- getSessionMessages: () => tLt,
16226
- getSessionInfo: () => rLt,
16227
- forkSession: () => aLt,
16228
- foldSessionSummary: () => hm,
16229
- filterEscalatingDefaultMode: () => Wqe,
16230
- deleteSession: () => iLt,
16231
- createSdkMcpServer: () => qBe,
16232
- USAGE_WARNING_PREFIXES: () => nI,
16233
- USAGE_TRANSITION_PREFIXES: () => rI,
16234
- USAGE_LIMIT_ERROR_PREFIXES: () => eI,
16235
- SYSTEM_PROMPT_DYNAMIC_BOUNDARY: () => LJ,
16236
- ORG_POLICY_LIMIT_PREFIXES: () => tI,
16237
- InMemorySessionStore: () => Ub,
16238
- HOOK_EVENTS: () => Ha,
16239
- FileIndex: () => Zb,
16240
- EXIT_REASONS: () => DJ,
16241
- DirectConnectTransport: () => p9,
16242
- DirectConnectError: () => fo,
16216
+ AbortError: () => tr,
16243
16217
  CommandMatcher: () => Vb,
16244
- AbortError: () => tr
16218
+ DirectConnectError: () => fo,
16219
+ DirectConnectTransport: () => p9,
16220
+ EXIT_REASONS: () => DJ,
16221
+ FileIndex: () => Zb,
16222
+ HOOK_EVENTS: () => Ha,
16223
+ InMemorySessionStore: () => Ub,
16224
+ ORG_POLICY_LIMIT_PREFIXES: () => tI,
16225
+ SYSTEM_PROMPT_DYNAMIC_BOUNDARY: () => LJ,
16226
+ USAGE_LIMIT_ERROR_PREFIXES: () => eI,
16227
+ USAGE_TRANSITION_PREFIXES: () => rI,
16228
+ USAGE_WARNING_PREFIXES: () => nI,
16229
+ createSdkMcpServer: () => qBe,
16230
+ deleteSession: () => iLt,
16231
+ filterEscalatingDefaultMode: () => Wqe,
16232
+ foldSessionSummary: () => hm,
16233
+ forkSession: () => aLt,
16234
+ getSessionInfo: () => rLt,
16235
+ getSessionMessages: () => tLt,
16236
+ getSubagentMessages: () => uLt,
16237
+ importSessionToStore: () => cLt,
16238
+ listSessions: () => nLt,
16239
+ listSubagents: () => lLt,
16240
+ parseDirectConnectUrl: () => YBe,
16241
+ query: () => Q0t,
16242
+ renameSession: () => oLt,
16243
+ resolveSettings: () => X0t,
16244
+ startup: () => eLt,
16245
+ tagSession: () => sLt,
16246
+ tool: () => WBe
16245
16247
  });
16246
16248
  import { createRequire as yJ } from "module";
16247
16249
  import * as ar from "fs/promises";
@@ -56747,654 +56749,8 @@ var init_client_gen2 = __esm(() => {
56747
56749
  });
56748
56750
 
56749
56751
  // node_modules/@opencode-ai/sdk/dist/gen/sdk.gen.js
56750
- class _HeyApiClient {
56751
- _client = client;
56752
- constructor(args) {
56753
- if (args?.client) {
56754
- this._client = args.client;
56755
- }
56756
- }
56757
- }
56758
- var Global, Project, Pty, Config, Tool, Instance, Path, Vcs, Session, Command, Oauth, Provider, Find, File2, App, Auth, Mcp, Lsp, Formatter, Control, Tui, Event, OpencodeClient;
56759
56752
  var init_sdk_gen = __esm(() => {
56760
56753
  init_client_gen2();
56761
- Global = class Global extends _HeyApiClient {
56762
- event(options) {
56763
- return (options?.client ?? this._client).get.sse({
56764
- url: "/global/event",
56765
- ...options
56766
- });
56767
- }
56768
- };
56769
- Project = class Project extends _HeyApiClient {
56770
- list(options) {
56771
- return (options?.client ?? this._client).get({
56772
- url: "/project",
56773
- ...options
56774
- });
56775
- }
56776
- current(options) {
56777
- return (options?.client ?? this._client).get({
56778
- url: "/project/current",
56779
- ...options
56780
- });
56781
- }
56782
- };
56783
- Pty = class Pty extends _HeyApiClient {
56784
- list(options) {
56785
- return (options?.client ?? this._client).get({
56786
- url: "/pty",
56787
- ...options
56788
- });
56789
- }
56790
- create(options) {
56791
- return (options?.client ?? this._client).post({
56792
- url: "/pty",
56793
- ...options,
56794
- headers: {
56795
- "Content-Type": "application/json",
56796
- ...options?.headers
56797
- }
56798
- });
56799
- }
56800
- remove(options) {
56801
- return (options.client ?? this._client).delete({
56802
- url: "/pty/{id}",
56803
- ...options
56804
- });
56805
- }
56806
- get(options) {
56807
- return (options.client ?? this._client).get({
56808
- url: "/pty/{id}",
56809
- ...options
56810
- });
56811
- }
56812
- update(options) {
56813
- return (options.client ?? this._client).put({
56814
- url: "/pty/{id}",
56815
- ...options,
56816
- headers: {
56817
- "Content-Type": "application/json",
56818
- ...options.headers
56819
- }
56820
- });
56821
- }
56822
- connect(options) {
56823
- return (options.client ?? this._client).get({
56824
- url: "/pty/{id}/connect",
56825
- ...options
56826
- });
56827
- }
56828
- };
56829
- Config = class Config extends _HeyApiClient {
56830
- get(options) {
56831
- return (options?.client ?? this._client).get({
56832
- url: "/config",
56833
- ...options
56834
- });
56835
- }
56836
- update(options) {
56837
- return (options?.client ?? this._client).patch({
56838
- url: "/config",
56839
- ...options,
56840
- headers: {
56841
- "Content-Type": "application/json",
56842
- ...options?.headers
56843
- }
56844
- });
56845
- }
56846
- providers(options) {
56847
- return (options?.client ?? this._client).get({
56848
- url: "/config/providers",
56849
- ...options
56850
- });
56851
- }
56852
- };
56853
- Tool = class Tool extends _HeyApiClient {
56854
- ids(options) {
56855
- return (options?.client ?? this._client).get({
56856
- url: "/experimental/tool/ids",
56857
- ...options
56858
- });
56859
- }
56860
- list(options) {
56861
- return (options.client ?? this._client).get({
56862
- url: "/experimental/tool",
56863
- ...options
56864
- });
56865
- }
56866
- };
56867
- Instance = class Instance extends _HeyApiClient {
56868
- dispose(options) {
56869
- return (options?.client ?? this._client).post({
56870
- url: "/instance/dispose",
56871
- ...options
56872
- });
56873
- }
56874
- };
56875
- Path = class Path extends _HeyApiClient {
56876
- get(options) {
56877
- return (options?.client ?? this._client).get({
56878
- url: "/path",
56879
- ...options
56880
- });
56881
- }
56882
- };
56883
- Vcs = class Vcs extends _HeyApiClient {
56884
- get(options) {
56885
- return (options?.client ?? this._client).get({
56886
- url: "/vcs",
56887
- ...options
56888
- });
56889
- }
56890
- };
56891
- Session = class Session extends _HeyApiClient {
56892
- list(options) {
56893
- return (options?.client ?? this._client).get({
56894
- url: "/session",
56895
- ...options
56896
- });
56897
- }
56898
- create(options) {
56899
- return (options?.client ?? this._client).post({
56900
- url: "/session",
56901
- ...options,
56902
- headers: {
56903
- "Content-Type": "application/json",
56904
- ...options?.headers
56905
- }
56906
- });
56907
- }
56908
- status(options) {
56909
- return (options?.client ?? this._client).get({
56910
- url: "/session/status",
56911
- ...options
56912
- });
56913
- }
56914
- delete(options) {
56915
- return (options.client ?? this._client).delete({
56916
- url: "/session/{id}",
56917
- ...options
56918
- });
56919
- }
56920
- get(options) {
56921
- return (options.client ?? this._client).get({
56922
- url: "/session/{id}",
56923
- ...options
56924
- });
56925
- }
56926
- update(options) {
56927
- return (options.client ?? this._client).patch({
56928
- url: "/session/{id}",
56929
- ...options,
56930
- headers: {
56931
- "Content-Type": "application/json",
56932
- ...options.headers
56933
- }
56934
- });
56935
- }
56936
- children(options) {
56937
- return (options.client ?? this._client).get({
56938
- url: "/session/{id}/children",
56939
- ...options
56940
- });
56941
- }
56942
- todo(options) {
56943
- return (options.client ?? this._client).get({
56944
- url: "/session/{id}/todo",
56945
- ...options
56946
- });
56947
- }
56948
- init(options) {
56949
- return (options.client ?? this._client).post({
56950
- url: "/session/{id}/init",
56951
- ...options,
56952
- headers: {
56953
- "Content-Type": "application/json",
56954
- ...options.headers
56955
- }
56956
- });
56957
- }
56958
- fork(options) {
56959
- return (options.client ?? this._client).post({
56960
- url: "/session/{id}/fork",
56961
- ...options,
56962
- headers: {
56963
- "Content-Type": "application/json",
56964
- ...options.headers
56965
- }
56966
- });
56967
- }
56968
- abort(options) {
56969
- return (options.client ?? this._client).post({
56970
- url: "/session/{id}/abort",
56971
- ...options
56972
- });
56973
- }
56974
- unshare(options) {
56975
- return (options.client ?? this._client).delete({
56976
- url: "/session/{id}/share",
56977
- ...options
56978
- });
56979
- }
56980
- share(options) {
56981
- return (options.client ?? this._client).post({
56982
- url: "/session/{id}/share",
56983
- ...options
56984
- });
56985
- }
56986
- diff(options) {
56987
- return (options.client ?? this._client).get({
56988
- url: "/session/{id}/diff",
56989
- ...options
56990
- });
56991
- }
56992
- summarize(options) {
56993
- return (options.client ?? this._client).post({
56994
- url: "/session/{id}/summarize",
56995
- ...options,
56996
- headers: {
56997
- "Content-Type": "application/json",
56998
- ...options.headers
56999
- }
57000
- });
57001
- }
57002
- messages(options) {
57003
- return (options.client ?? this._client).get({
57004
- url: "/session/{id}/message",
57005
- ...options
57006
- });
57007
- }
57008
- prompt(options) {
57009
- return (options.client ?? this._client).post({
57010
- url: "/session/{id}/message",
57011
- ...options,
57012
- headers: {
57013
- "Content-Type": "application/json",
57014
- ...options.headers
57015
- }
57016
- });
57017
- }
57018
- message(options) {
57019
- return (options.client ?? this._client).get({
57020
- url: "/session/{id}/message/{messageID}",
57021
- ...options
57022
- });
57023
- }
57024
- promptAsync(options) {
57025
- return (options.client ?? this._client).post({
57026
- url: "/session/{id}/prompt_async",
57027
- ...options,
57028
- headers: {
57029
- "Content-Type": "application/json",
57030
- ...options.headers
57031
- }
57032
- });
57033
- }
57034
- command(options) {
57035
- return (options.client ?? this._client).post({
57036
- url: "/session/{id}/command",
57037
- ...options,
57038
- headers: {
57039
- "Content-Type": "application/json",
57040
- ...options.headers
57041
- }
57042
- });
57043
- }
57044
- shell(options) {
57045
- return (options.client ?? this._client).post({
57046
- url: "/session/{id}/shell",
57047
- ...options,
57048
- headers: {
57049
- "Content-Type": "application/json",
57050
- ...options.headers
57051
- }
57052
- });
57053
- }
57054
- revert(options) {
57055
- return (options.client ?? this._client).post({
57056
- url: "/session/{id}/revert",
57057
- ...options,
57058
- headers: {
57059
- "Content-Type": "application/json",
57060
- ...options.headers
57061
- }
57062
- });
57063
- }
57064
- unrevert(options) {
57065
- return (options.client ?? this._client).post({
57066
- url: "/session/{id}/unrevert",
57067
- ...options
57068
- });
57069
- }
57070
- };
57071
- Command = class Command extends _HeyApiClient {
57072
- list(options) {
57073
- return (options?.client ?? this._client).get({
57074
- url: "/command",
57075
- ...options
57076
- });
57077
- }
57078
- };
57079
- Oauth = class Oauth extends _HeyApiClient {
57080
- authorize(options) {
57081
- return (options.client ?? this._client).post({
57082
- url: "/provider/{id}/oauth/authorize",
57083
- ...options,
57084
- headers: {
57085
- "Content-Type": "application/json",
57086
- ...options.headers
57087
- }
57088
- });
57089
- }
57090
- callback(options) {
57091
- return (options.client ?? this._client).post({
57092
- url: "/provider/{id}/oauth/callback",
57093
- ...options,
57094
- headers: {
57095
- "Content-Type": "application/json",
57096
- ...options.headers
57097
- }
57098
- });
57099
- }
57100
- };
57101
- Provider = class Provider extends _HeyApiClient {
57102
- list(options) {
57103
- return (options?.client ?? this._client).get({
57104
- url: "/provider",
57105
- ...options
57106
- });
57107
- }
57108
- auth(options) {
57109
- return (options?.client ?? this._client).get({
57110
- url: "/provider/auth",
57111
- ...options
57112
- });
57113
- }
57114
- oauth = new Oauth({ client: this._client });
57115
- };
57116
- Find = class Find extends _HeyApiClient {
57117
- text(options) {
57118
- return (options.client ?? this._client).get({
57119
- url: "/find",
57120
- ...options
57121
- });
57122
- }
57123
- files(options) {
57124
- return (options.client ?? this._client).get({
57125
- url: "/find/file",
57126
- ...options
57127
- });
57128
- }
57129
- symbols(options) {
57130
- return (options.client ?? this._client).get({
57131
- url: "/find/symbol",
57132
- ...options
57133
- });
57134
- }
57135
- };
57136
- File2 = class File2 extends _HeyApiClient {
57137
- list(options) {
57138
- return (options.client ?? this._client).get({
57139
- url: "/file",
57140
- ...options
57141
- });
57142
- }
57143
- read(options) {
57144
- return (options.client ?? this._client).get({
57145
- url: "/file/content",
57146
- ...options
57147
- });
57148
- }
57149
- status(options) {
57150
- return (options?.client ?? this._client).get({
57151
- url: "/file/status",
57152
- ...options
57153
- });
57154
- }
57155
- };
57156
- App = class App extends _HeyApiClient {
57157
- log(options) {
57158
- return (options?.client ?? this._client).post({
57159
- url: "/log",
57160
- ...options,
57161
- headers: {
57162
- "Content-Type": "application/json",
57163
- ...options?.headers
57164
- }
57165
- });
57166
- }
57167
- agents(options) {
57168
- return (options?.client ?? this._client).get({
57169
- url: "/agent",
57170
- ...options
57171
- });
57172
- }
57173
- };
57174
- Auth = class Auth extends _HeyApiClient {
57175
- remove(options) {
57176
- return (options.client ?? this._client).delete({
57177
- url: "/mcp/{name}/auth",
57178
- ...options
57179
- });
57180
- }
57181
- start(options) {
57182
- return (options.client ?? this._client).post({
57183
- url: "/mcp/{name}/auth",
57184
- ...options
57185
- });
57186
- }
57187
- callback(options) {
57188
- return (options.client ?? this._client).post({
57189
- url: "/mcp/{name}/auth/callback",
57190
- ...options,
57191
- headers: {
57192
- "Content-Type": "application/json",
57193
- ...options.headers
57194
- }
57195
- });
57196
- }
57197
- authenticate(options) {
57198
- return (options.client ?? this._client).post({
57199
- url: "/mcp/{name}/auth/authenticate",
57200
- ...options
57201
- });
57202
- }
57203
- set(options) {
57204
- return (options.client ?? this._client).put({
57205
- url: "/auth/{id}",
57206
- ...options,
57207
- headers: {
57208
- "Content-Type": "application/json",
57209
- ...options.headers
57210
- }
57211
- });
57212
- }
57213
- };
57214
- Mcp = class Mcp extends _HeyApiClient {
57215
- status(options) {
57216
- return (options?.client ?? this._client).get({
57217
- url: "/mcp",
57218
- ...options
57219
- });
57220
- }
57221
- add(options) {
57222
- return (options?.client ?? this._client).post({
57223
- url: "/mcp",
57224
- ...options,
57225
- headers: {
57226
- "Content-Type": "application/json",
57227
- ...options?.headers
57228
- }
57229
- });
57230
- }
57231
- connect(options) {
57232
- return (options.client ?? this._client).post({
57233
- url: "/mcp/{name}/connect",
57234
- ...options
57235
- });
57236
- }
57237
- disconnect(options) {
57238
- return (options.client ?? this._client).post({
57239
- url: "/mcp/{name}/disconnect",
57240
- ...options
57241
- });
57242
- }
57243
- auth = new Auth({ client: this._client });
57244
- };
57245
- Lsp = class Lsp extends _HeyApiClient {
57246
- status(options) {
57247
- return (options?.client ?? this._client).get({
57248
- url: "/lsp",
57249
- ...options
57250
- });
57251
- }
57252
- };
57253
- Formatter = class Formatter extends _HeyApiClient {
57254
- status(options) {
57255
- return (options?.client ?? this._client).get({
57256
- url: "/formatter",
57257
- ...options
57258
- });
57259
- }
57260
- };
57261
- Control = class Control extends _HeyApiClient {
57262
- next(options) {
57263
- return (options?.client ?? this._client).get({
57264
- url: "/tui/control/next",
57265
- ...options
57266
- });
57267
- }
57268
- response(options) {
57269
- return (options?.client ?? this._client).post({
57270
- url: "/tui/control/response",
57271
- ...options,
57272
- headers: {
57273
- "Content-Type": "application/json",
57274
- ...options?.headers
57275
- }
57276
- });
57277
- }
57278
- };
57279
- Tui = class Tui extends _HeyApiClient {
57280
- appendPrompt(options) {
57281
- return (options?.client ?? this._client).post({
57282
- url: "/tui/append-prompt",
57283
- ...options,
57284
- headers: {
57285
- "Content-Type": "application/json",
57286
- ...options?.headers
57287
- }
57288
- });
57289
- }
57290
- openHelp(options) {
57291
- return (options?.client ?? this._client).post({
57292
- url: "/tui/open-help",
57293
- ...options
57294
- });
57295
- }
57296
- openSessions(options) {
57297
- return (options?.client ?? this._client).post({
57298
- url: "/tui/open-sessions",
57299
- ...options
57300
- });
57301
- }
57302
- openThemes(options) {
57303
- return (options?.client ?? this._client).post({
57304
- url: "/tui/open-themes",
57305
- ...options
57306
- });
57307
- }
57308
- openModels(options) {
57309
- return (options?.client ?? this._client).post({
57310
- url: "/tui/open-models",
57311
- ...options
57312
- });
57313
- }
57314
- submitPrompt(options) {
57315
- return (options?.client ?? this._client).post({
57316
- url: "/tui/submit-prompt",
57317
- ...options
57318
- });
57319
- }
57320
- clearPrompt(options) {
57321
- return (options?.client ?? this._client).post({
57322
- url: "/tui/clear-prompt",
57323
- ...options
57324
- });
57325
- }
57326
- executeCommand(options) {
57327
- return (options?.client ?? this._client).post({
57328
- url: "/tui/execute-command",
57329
- ...options,
57330
- headers: {
57331
- "Content-Type": "application/json",
57332
- ...options?.headers
57333
- }
57334
- });
57335
- }
57336
- showToast(options) {
57337
- return (options?.client ?? this._client).post({
57338
- url: "/tui/show-toast",
57339
- ...options,
57340
- headers: {
57341
- "Content-Type": "application/json",
57342
- ...options?.headers
57343
- }
57344
- });
57345
- }
57346
- publish(options) {
57347
- return (options?.client ?? this._client).post({
57348
- url: "/tui/publish",
57349
- ...options,
57350
- headers: {
57351
- "Content-Type": "application/json",
57352
- ...options?.headers
57353
- }
57354
- });
57355
- }
57356
- control = new Control({ client: this._client });
57357
- };
57358
- Event = class Event extends _HeyApiClient {
57359
- subscribe(options) {
57360
- return (options?.client ?? this._client).get.sse({
57361
- url: "/event",
57362
- ...options
57363
- });
57364
- }
57365
- };
57366
- OpencodeClient = class OpencodeClient extends _HeyApiClient {
57367
- postSessionIdPermissionsPermissionId(options) {
57368
- return (options.client ?? this._client).post({
57369
- url: "/session/{id}/permissions/{permissionID}",
57370
- ...options,
57371
- headers: {
57372
- "Content-Type": "application/json",
57373
- ...options.headers
57374
- }
57375
- });
57376
- }
57377
- global = new Global({ client: this._client });
57378
- project = new Project({ client: this._client });
57379
- pty = new Pty({ client: this._client });
57380
- config = new Config({ client: this._client });
57381
- tool = new Tool({ client: this._client });
57382
- instance = new Instance({ client: this._client });
57383
- path = new Path({ client: this._client });
57384
- vcs = new Vcs({ client: this._client });
57385
- session = new Session({ client: this._client });
57386
- command = new Command({ client: this._client });
57387
- provider = new Provider({ client: this._client });
57388
- find = new Find({ client: this._client });
57389
- file = new File2({ client: this._client });
57390
- app = new App({ client: this._client });
57391
- mcp = new Mcp({ client: this._client });
57392
- lsp = new Lsp({ client: this._client });
57393
- formatter = new Formatter({ client: this._client });
57394
- tui = new Tui({ client: this._client });
57395
- auth = new Auth({ client: this._client });
57396
- event = new Event({ client: this._client });
57397
- };
57398
56754
  });
57399
56755
 
57400
56756
  // node_modules/@opencode-ai/sdk/dist/error-interceptor.js
@@ -57432,7 +56788,7 @@ var init_client2 = __esm(() => {
57432
56788
  });
57433
56789
 
57434
56790
  // node_modules/isexe/windows.js
57435
- var require_windows = __commonJS((exports, module) => {
56791
+ var require_windows = __commonJS(function(exports, module) {
57436
56792
  module.exports = isexe;
57437
56793
  isexe.sync = sync;
57438
56794
  var fs2 = __require("fs");
@@ -57470,7 +56826,7 @@ var require_windows = __commonJS((exports, module) => {
57470
56826
  });
57471
56827
 
57472
56828
  // node_modules/isexe/mode.js
57473
- var require_mode = __commonJS((exports, module) => {
56829
+ var require_mode = __commonJS(function(exports, module) {
57474
56830
  module.exports = isexe;
57475
56831
  isexe.sync = sync;
57476
56832
  var fs2 = __require("fs");
@@ -57501,7 +56857,7 @@ var require_mode = __commonJS((exports, module) => {
57501
56857
  });
57502
56858
 
57503
56859
  // node_modules/isexe/index.js
57504
- var require_isexe = __commonJS((exports, module) => {
56860
+ var require_isexe = __commonJS(function(exports, module) {
57505
56861
  var fs2 = __require("fs");
57506
56862
  var core2;
57507
56863
  if (process.platform === "win32" || global.TESTING_WINDOWS) {
@@ -57554,7 +56910,7 @@ var require_isexe = __commonJS((exports, module) => {
57554
56910
  });
57555
56911
 
57556
56912
  // node_modules/which/which.js
57557
- var require_which = __commonJS((exports, module) => {
56913
+ var require_which = __commonJS(function(exports, module) {
57558
56914
  var isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
57559
56915
  var path = __require("path");
57560
56916
  var COLON = isWindows ? ";" : ":";
@@ -57645,7 +57001,7 @@ var require_which = __commonJS((exports, module) => {
57645
57001
  });
57646
57002
 
57647
57003
  // node_modules/path-key/index.js
57648
- var require_path_key = __commonJS((exports, module) => {
57004
+ var require_path_key = __commonJS(function(exports, module) {
57649
57005
  var pathKey = (options = {}) => {
57650
57006
  const environment = options.env || process.env;
57651
57007
  const platform = options.platform || process.platform;
@@ -57659,7 +57015,7 @@ var require_path_key = __commonJS((exports, module) => {
57659
57015
  });
57660
57016
 
57661
57017
  // node_modules/cross-spawn/lib/util/resolveCommand.js
57662
- var require_resolveCommand = __commonJS((exports, module) => {
57018
+ var require_resolveCommand = __commonJS(function(exports, module) {
57663
57019
  var path = __require("path");
57664
57020
  var which = require_which();
57665
57021
  var getPathKey = require_path_key();
@@ -57696,7 +57052,7 @@ var require_resolveCommand = __commonJS((exports, module) => {
57696
57052
  });
57697
57053
 
57698
57054
  // node_modules/cross-spawn/lib/util/escape.js
57699
- var require_escape = __commonJS((exports, module) => {
57055
+ var require_escape = __commonJS(function(exports, module) {
57700
57056
  var metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
57701
57057
  function escapeCommand(arg) {
57702
57058
  arg = arg.replace(metaCharsRegExp, "^$1");
@@ -57718,12 +57074,12 @@ var require_escape = __commonJS((exports, module) => {
57718
57074
  });
57719
57075
 
57720
57076
  // node_modules/shebang-regex/index.js
57721
- var require_shebang_regex = __commonJS((exports, module) => {
57077
+ var require_shebang_regex = __commonJS(function(exports, module) {
57722
57078
  module.exports = /^#!(.*)/;
57723
57079
  });
57724
57080
 
57725
57081
  // node_modules/shebang-command/index.js
57726
- var require_shebang_command = __commonJS((exports, module) => {
57082
+ var require_shebang_command = __commonJS(function(exports, module) {
57727
57083
  var shebangRegex = require_shebang_regex();
57728
57084
  module.exports = (string4 = "") => {
57729
57085
  const match = string4.match(shebangRegex);
@@ -57740,7 +57096,7 @@ var require_shebang_command = __commonJS((exports, module) => {
57740
57096
  });
57741
57097
 
57742
57098
  // node_modules/cross-spawn/lib/util/readShebang.js
57743
- var require_readShebang = __commonJS((exports, module) => {
57099
+ var require_readShebang = __commonJS(function(exports, module) {
57744
57100
  var fs2 = __require("fs");
57745
57101
  var shebangCommand = require_shebang_command();
57746
57102
  function readShebang(command) {
@@ -57758,7 +57114,7 @@ var require_readShebang = __commonJS((exports, module) => {
57758
57114
  });
57759
57115
 
57760
57116
  // node_modules/cross-spawn/lib/parse.js
57761
- var require_parse = __commonJS((exports, module) => {
57117
+ var require_parse = __commonJS(function(exports, module) {
57762
57118
  var path = __require("path");
57763
57119
  var resolveCommand = require_resolveCommand();
57764
57120
  var escape2 = require_escape();
@@ -57817,7 +57173,7 @@ var require_parse = __commonJS((exports, module) => {
57817
57173
  });
57818
57174
 
57819
57175
  // node_modules/cross-spawn/lib/enoent.js
57820
- var require_enoent = __commonJS((exports, module) => {
57176
+ var require_enoent = __commonJS(function(exports, module) {
57821
57177
  var isWin = process.platform === "win32";
57822
57178
  function notFoundError(original, syscall) {
57823
57179
  return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), {
@@ -57864,7 +57220,7 @@ var require_enoent = __commonJS((exports, module) => {
57864
57220
  });
57865
57221
 
57866
57222
  // node_modules/cross-spawn/index.js
57867
- var require_cross_spawn = __commonJS((exports, module) => {
57223
+ var require_cross_spawn = __commonJS(function(exports, module) {
57868
57224
  var cp2 = __require("child_process");
57869
57225
  var parse7 = require_parse();
57870
57226
  var enoent = require_enoent();
@@ -58890,11 +58246,11 @@ class HeyApiRegistry {
58890
58246
  this.instances.set(key ?? this.defaultKey, value);
58891
58247
  }
58892
58248
  }
58893
- var Auth2, App2, ControlPlane, Capabilities, Console, Session2, Resource, ProjectCopy, Adapter, Workspace, Experimental, Config2, Global2, Event2, Config22, Tool2, Worktree, Find2, File3, Instance2, Path2, Diff, Vcs2, Command2, Lsp2, Formatter2, Auth22, Mcp2, Project2, Pty2, Question, Permission, Oauth2, Provider2, Session22, Part, History, Sync, Control2, Tui2, Health, Location, Agent, Revert, Permission2, Question2, Session3, Model, Provider22, Connect, Attempt, Integration, Credential, Request2, Saved, Permission3, Fs2, Command22, Skill, Event22, Pty22, Request22, Question3, Reference, ProjectCopy2, V2, OpencodeClient2;
58249
+ var Auth, App, ControlPlane, Capabilities, Console, Session, Resource, ProjectCopy, Adapter, Workspace, Experimental, Config, Global, Event, Config2, Tool, Worktree, Find, File2, Instance, Path, Diff, Vcs, Command, Lsp, Formatter, Auth2, Mcp, Project, Pty, Question, Permission, Oauth, Provider, Session2, Part, History, Sync, Control, Tui, Health, Location, Agent, Revert, Permission2, Question2, Session3, Model, Provider2, Connect, Attempt, Integration, Credential, Request2, Saved, Permission3, Fs2, Command2, Skill, Event2, Pty2, Request22, Question3, Reference, ProjectCopy2, V2, OpencodeClient2;
58894
58250
  var init_sdk_gen2 = __esm(() => {
58895
58251
  init_client_gen4();
58896
58252
  init_client3();
58897
- Auth2 = class Auth2 extends HeyApiClient {
58253
+ Auth = class Auth extends HeyApiClient {
58898
58254
  remove(parameters, options) {
58899
58255
  const params = buildClientParams2([parameters], [{ args: [{ in: "path", key: "providerID" }] }]);
58900
58256
  return (options?.client ?? this.client).delete({
@@ -58924,7 +58280,7 @@ var init_sdk_gen2 = __esm(() => {
58924
58280
  });
58925
58281
  }
58926
58282
  };
58927
- App2 = class App2 extends HeyApiClient {
58283
+ App = class App extends HeyApiClient {
58928
58284
  log(parameters, options) {
58929
58285
  const params = buildClientParams2([parameters], [
58930
58286
  {
@@ -59074,7 +58430,7 @@ var init_sdk_gen2 = __esm(() => {
59074
58430
  });
59075
58431
  }
59076
58432
  };
59077
- Session2 = class Session2 extends HeyApiClient {
58433
+ Session = class Session extends HeyApiClient {
59078
58434
  list(parameters, options) {
59079
58435
  const params = buildClientParams2([parameters], [
59080
58436
  {
@@ -59300,7 +58656,7 @@ var init_sdk_gen2 = __esm(() => {
59300
58656
  }
59301
58657
  _session;
59302
58658
  get session() {
59303
- return this._session ??= new Session2({ client: this.client });
58659
+ return this._session ??= new Session({ client: this.client });
59304
58660
  }
59305
58661
  _resource;
59306
58662
  get resource() {
@@ -59315,7 +58671,7 @@ var init_sdk_gen2 = __esm(() => {
59315
58671
  return this._workspace ??= new Workspace({ client: this.client });
59316
58672
  }
59317
58673
  };
59318
- Config2 = class Config2 extends HeyApiClient {
58674
+ Config = class Config extends HeyApiClient {
59319
58675
  get(options) {
59320
58676
  return (options?.client ?? this.client).get({
59321
58677
  url: "/global/config",
@@ -59336,7 +58692,7 @@ var init_sdk_gen2 = __esm(() => {
59336
58692
  });
59337
58693
  }
59338
58694
  };
59339
- Global2 = class Global2 extends HeyApiClient {
58695
+ Global = class Global extends HeyApiClient {
59340
58696
  health(options) {
59341
58697
  return (options?.client ?? this.client).get({
59342
58698
  url: "/global/health",
@@ -59370,10 +58726,10 @@ var init_sdk_gen2 = __esm(() => {
59370
58726
  }
59371
58727
  _config;
59372
58728
  get config() {
59373
- return this._config ??= new Config2({ client: this.client });
58729
+ return this._config ??= new Config({ client: this.client });
59374
58730
  }
59375
58731
  };
59376
- Event2 = class Event2 extends HeyApiClient {
58732
+ Event = class Event extends HeyApiClient {
59377
58733
  subscribe(parameters, options) {
59378
58734
  const params = buildClientParams2([parameters], [
59379
58735
  {
@@ -59390,7 +58746,7 @@ var init_sdk_gen2 = __esm(() => {
59390
58746
  });
59391
58747
  }
59392
58748
  };
59393
- Config22 = class Config22 extends HeyApiClient {
58749
+ Config2 = class Config2 extends HeyApiClient {
59394
58750
  get(parameters, options) {
59395
58751
  const params = buildClientParams2([parameters], [
59396
58752
  {
@@ -59443,7 +58799,7 @@ var init_sdk_gen2 = __esm(() => {
59443
58799
  });
59444
58800
  }
59445
58801
  };
59446
- Tool2 = class Tool2 extends HeyApiClient {
58802
+ Tool = class Tool extends HeyApiClient {
59447
58803
  list(parameters, options) {
59448
58804
  const params = buildClientParams2([parameters], [
59449
58805
  {
@@ -59557,7 +58913,7 @@ var init_sdk_gen2 = __esm(() => {
59557
58913
  });
59558
58914
  }
59559
58915
  };
59560
- Find2 = class Find2 extends HeyApiClient {
58916
+ Find = class Find extends HeyApiClient {
59561
58917
  text(parameters, options) {
59562
58918
  const params = buildClientParams2([parameters], [
59563
58919
  {
@@ -59610,7 +58966,7 @@ var init_sdk_gen2 = __esm(() => {
59610
58966
  });
59611
58967
  }
59612
58968
  };
59613
- File3 = class File3 extends HeyApiClient {
58969
+ File2 = class File2 extends HeyApiClient {
59614
58970
  list(parameters, options) {
59615
58971
  const params = buildClientParams2([parameters], [
59616
58972
  {
@@ -59659,7 +59015,7 @@ var init_sdk_gen2 = __esm(() => {
59659
59015
  });
59660
59016
  }
59661
59017
  };
59662
- Instance2 = class Instance2 extends HeyApiClient {
59018
+ Instance = class Instance extends HeyApiClient {
59663
59019
  dispose(parameters, options) {
59664
59020
  const params = buildClientParams2([parameters], [
59665
59021
  {
@@ -59676,7 +59032,7 @@ var init_sdk_gen2 = __esm(() => {
59676
59032
  });
59677
59033
  }
59678
59034
  };
59679
- Path2 = class Path2 extends HeyApiClient {
59035
+ Path = class Path extends HeyApiClient {
59680
59036
  get(parameters, options) {
59681
59037
  const params = buildClientParams2([parameters], [
59682
59038
  {
@@ -59710,7 +59066,7 @@ var init_sdk_gen2 = __esm(() => {
59710
59066
  });
59711
59067
  }
59712
59068
  };
59713
- Vcs2 = class Vcs2 extends HeyApiClient {
59069
+ Vcs = class Vcs extends HeyApiClient {
59714
59070
  get(parameters, options) {
59715
59071
  const params = buildClientParams2([parameters], [
59716
59072
  {
@@ -59784,7 +59140,7 @@ var init_sdk_gen2 = __esm(() => {
59784
59140
  return this._diff ??= new Diff({ client: this.client });
59785
59141
  }
59786
59142
  };
59787
- Command2 = class Command2 extends HeyApiClient {
59143
+ Command = class Command extends HeyApiClient {
59788
59144
  list(parameters, options) {
59789
59145
  const params = buildClientParams2([parameters], [
59790
59146
  {
@@ -59801,7 +59157,7 @@ var init_sdk_gen2 = __esm(() => {
59801
59157
  });
59802
59158
  }
59803
59159
  };
59804
- Lsp2 = class Lsp2 extends HeyApiClient {
59160
+ Lsp = class Lsp extends HeyApiClient {
59805
59161
  status(parameters, options) {
59806
59162
  const params = buildClientParams2([parameters], [
59807
59163
  {
@@ -59818,7 +59174,7 @@ var init_sdk_gen2 = __esm(() => {
59818
59174
  });
59819
59175
  }
59820
59176
  };
59821
- Formatter2 = class Formatter2 extends HeyApiClient {
59177
+ Formatter = class Formatter extends HeyApiClient {
59822
59178
  status(parameters, options) {
59823
59179
  const params = buildClientParams2([parameters], [
59824
59180
  {
@@ -59835,7 +59191,7 @@ var init_sdk_gen2 = __esm(() => {
59835
59191
  });
59836
59192
  }
59837
59193
  };
59838
- Auth22 = class Auth22 extends HeyApiClient {
59194
+ Auth2 = class Auth2 extends HeyApiClient {
59839
59195
  remove(parameters, options) {
59840
59196
  const params = buildClientParams2([parameters], [
59841
59197
  {
@@ -59907,7 +59263,7 @@ var init_sdk_gen2 = __esm(() => {
59907
59263
  });
59908
59264
  }
59909
59265
  };
59910
- Mcp2 = class Mcp2 extends HeyApiClient {
59266
+ Mcp = class Mcp extends HeyApiClient {
59911
59267
  status(parameters, options) {
59912
59268
  const params = buildClientParams2([parameters], [
59913
59269
  {
@@ -59979,10 +59335,10 @@ var init_sdk_gen2 = __esm(() => {
59979
59335
  }
59980
59336
  _auth;
59981
59337
  get auth() {
59982
- return this._auth ??= new Auth22({ client: this.client });
59338
+ return this._auth ??= new Auth2({ client: this.client });
59983
59339
  }
59984
59340
  };
59985
- Project2 = class Project2 extends HeyApiClient {
59341
+ Project = class Project extends HeyApiClient {
59986
59342
  list(parameters, options) {
59987
59343
  const params = buildClientParams2([parameters], [
59988
59344
  {
@@ -60069,7 +59425,7 @@ var init_sdk_gen2 = __esm(() => {
60069
59425
  });
60070
59426
  }
60071
59427
  };
60072
- Pty2 = class Pty2 extends HeyApiClient {
59428
+ Pty = class Pty extends HeyApiClient {
60073
59429
  shells(parameters, options) {
60074
59430
  const params = buildClientParams2([parameters], [
60075
59431
  {
@@ -60333,7 +59689,7 @@ var init_sdk_gen2 = __esm(() => {
60333
59689
  });
60334
59690
  }
60335
59691
  };
60336
- Oauth2 = class Oauth2 extends HeyApiClient {
59692
+ Oauth = class Oauth extends HeyApiClient {
60337
59693
  authorize(parameters, options) {
60338
59694
  const params = buildClientParams2([parameters], [
60339
59695
  {
@@ -60381,7 +59737,7 @@ var init_sdk_gen2 = __esm(() => {
60381
59737
  });
60382
59738
  }
60383
59739
  };
60384
- Provider2 = class Provider2 extends HeyApiClient {
59740
+ Provider = class Provider extends HeyApiClient {
60385
59741
  list(parameters, options) {
60386
59742
  const params = buildClientParams2([parameters], [
60387
59743
  {
@@ -60414,10 +59770,10 @@ var init_sdk_gen2 = __esm(() => {
60414
59770
  }
60415
59771
  _oauth;
60416
59772
  get oauth() {
60417
- return this._oauth ??= new Oauth2({ client: this.client });
59773
+ return this._oauth ??= new Oauth({ client: this.client });
60418
59774
  }
60419
59775
  };
60420
- Session22 = class Session22 extends HeyApiClient {
59776
+ Session2 = class Session2 extends HeyApiClient {
60421
59777
  list(parameters, options) {
60422
59778
  const params = buildClientParams2([parameters], [
60423
59779
  {
@@ -61049,7 +60405,7 @@ var init_sdk_gen2 = __esm(() => {
61049
60405
  return this._history ??= new History({ client: this.client });
61050
60406
  }
61051
60407
  };
61052
- Control2 = class Control2 extends HeyApiClient {
60408
+ Control = class Control extends HeyApiClient {
61053
60409
  next(parameters, options) {
61054
60410
  const params = buildClientParams2([parameters], [
61055
60411
  {
@@ -61087,7 +60443,7 @@ var init_sdk_gen2 = __esm(() => {
61087
60443
  });
61088
60444
  }
61089
60445
  };
61090
- Tui2 = class Tui2 extends HeyApiClient {
60446
+ Tui = class Tui extends HeyApiClient {
61091
60447
  appendPrompt(parameters, options) {
61092
60448
  const params = buildClientParams2([parameters], [
61093
60449
  {
@@ -61288,7 +60644,7 @@ var init_sdk_gen2 = __esm(() => {
61288
60644
  }
61289
60645
  _control;
61290
60646
  get control() {
61291
- return this._control ??= new Control2({ client: this.client });
60647
+ return this._control ??= new Control({ client: this.client });
61292
60648
  }
61293
60649
  };
61294
60650
  Health = class Health extends HeyApiClient {
@@ -61716,7 +61072,7 @@ var init_sdk_gen2 = __esm(() => {
61716
61072
  });
61717
61073
  }
61718
61074
  };
61719
- Provider22 = class Provider22 extends HeyApiClient {
61075
+ Provider2 = class Provider2 extends HeyApiClient {
61720
61076
  list(parameters, options) {
61721
61077
  const params = buildClientParams2([parameters], [{ args: [{ in: "query", key: "location" }] }]);
61722
61078
  return (options?.client ?? this.client).get({
@@ -61992,7 +61348,7 @@ var init_sdk_gen2 = __esm(() => {
61992
61348
  });
61993
61349
  }
61994
61350
  };
61995
- Command22 = class Command22 extends HeyApiClient {
61351
+ Command2 = class Command2 extends HeyApiClient {
61996
61352
  list(parameters, options) {
61997
61353
  const params = buildClientParams2([parameters], [{ args: [{ in: "query", key: "location" }] }]);
61998
61354
  return (options?.client ?? this.client).get({
@@ -62012,7 +61368,7 @@ var init_sdk_gen2 = __esm(() => {
62012
61368
  });
62013
61369
  }
62014
61370
  };
62015
- Event22 = class Event22 extends HeyApiClient {
61371
+ Event2 = class Event2 extends HeyApiClient {
62016
61372
  subscribe(options) {
62017
61373
  return (options?.client ?? this.client).sse.get({
62018
61374
  url: "/api/event",
@@ -62020,7 +61376,7 @@ var init_sdk_gen2 = __esm(() => {
62020
61376
  });
62021
61377
  }
62022
61378
  };
62023
- Pty22 = class Pty22 extends HeyApiClient {
61379
+ Pty2 = class Pty2 extends HeyApiClient {
62024
61380
  list(parameters, options) {
62025
61381
  const params = buildClientParams2([parameters], [{ args: [{ in: "query", key: "location" }] }]);
62026
61382
  return (options?.client ?? this.client).get({
@@ -62250,7 +61606,7 @@ var init_sdk_gen2 = __esm(() => {
62250
61606
  }
62251
61607
  _provider;
62252
61608
  get provider() {
62253
- return this._provider ??= new Provider22({ client: this.client });
61609
+ return this._provider ??= new Provider2({ client: this.client });
62254
61610
  }
62255
61611
  _integration;
62256
61612
  get integration() {
@@ -62270,7 +61626,7 @@ var init_sdk_gen2 = __esm(() => {
62270
61626
  }
62271
61627
  _command;
62272
61628
  get command() {
62273
- return this._command ??= new Command22({ client: this.client });
61629
+ return this._command ??= new Command2({ client: this.client });
62274
61630
  }
62275
61631
  _skill;
62276
61632
  get skill() {
@@ -62278,11 +61634,11 @@ var init_sdk_gen2 = __esm(() => {
62278
61634
  }
62279
61635
  _event;
62280
61636
  get event() {
62281
- return this._event ??= new Event22({ client: this.client });
61637
+ return this._event ??= new Event2({ client: this.client });
62282
61638
  }
62283
61639
  _pty;
62284
61640
  get pty() {
62285
- return this._pty ??= new Pty22({ client: this.client });
61641
+ return this._pty ??= new Pty2({ client: this.client });
62286
61642
  }
62287
61643
  _question;
62288
61644
  get question() {
@@ -62305,11 +61661,11 @@ var init_sdk_gen2 = __esm(() => {
62305
61661
  }
62306
61662
  _auth;
62307
61663
  get auth() {
62308
- return this._auth ??= new Auth2({ client: this.client });
61664
+ return this._auth ??= new Auth({ client: this.client });
62309
61665
  }
62310
61666
  _app;
62311
61667
  get app() {
62312
- return this._app ??= new App2({ client: this.client });
61668
+ return this._app ??= new App({ client: this.client });
62313
61669
  }
62314
61670
  _experimental;
62315
61671
  get experimental() {
@@ -62317,19 +61673,19 @@ var init_sdk_gen2 = __esm(() => {
62317
61673
  }
62318
61674
  _global;
62319
61675
  get global() {
62320
- return this._global ??= new Global2({ client: this.client });
61676
+ return this._global ??= new Global({ client: this.client });
62321
61677
  }
62322
61678
  _event;
62323
61679
  get event() {
62324
- return this._event ??= new Event2({ client: this.client });
61680
+ return this._event ??= new Event({ client: this.client });
62325
61681
  }
62326
61682
  _config;
62327
61683
  get config() {
62328
- return this._config ??= new Config22({ client: this.client });
61684
+ return this._config ??= new Config2({ client: this.client });
62329
61685
  }
62330
61686
  _tool;
62331
61687
  get tool() {
62332
- return this._tool ??= new Tool2({ client: this.client });
61688
+ return this._tool ??= new Tool({ client: this.client });
62333
61689
  }
62334
61690
  _worktree;
62335
61691
  get worktree() {
@@ -62337,47 +61693,47 @@ var init_sdk_gen2 = __esm(() => {
62337
61693
  }
62338
61694
  _find;
62339
61695
  get find() {
62340
- return this._find ??= new Find2({ client: this.client });
61696
+ return this._find ??= new Find({ client: this.client });
62341
61697
  }
62342
61698
  _file;
62343
61699
  get file() {
62344
- return this._file ??= new File3({ client: this.client });
61700
+ return this._file ??= new File2({ client: this.client });
62345
61701
  }
62346
61702
  _instance;
62347
61703
  get instance() {
62348
- return this._instance ??= new Instance2({ client: this.client });
61704
+ return this._instance ??= new Instance({ client: this.client });
62349
61705
  }
62350
61706
  _path;
62351
61707
  get path() {
62352
- return this._path ??= new Path2({ client: this.client });
61708
+ return this._path ??= new Path({ client: this.client });
62353
61709
  }
62354
61710
  _vcs;
62355
61711
  get vcs() {
62356
- return this._vcs ??= new Vcs2({ client: this.client });
61712
+ return this._vcs ??= new Vcs({ client: this.client });
62357
61713
  }
62358
61714
  _command;
62359
61715
  get command() {
62360
- return this._command ??= new Command2({ client: this.client });
61716
+ return this._command ??= new Command({ client: this.client });
62361
61717
  }
62362
61718
  _lsp;
62363
61719
  get lsp() {
62364
- return this._lsp ??= new Lsp2({ client: this.client });
61720
+ return this._lsp ??= new Lsp({ client: this.client });
62365
61721
  }
62366
61722
  _formatter;
62367
61723
  get formatter() {
62368
- return this._formatter ??= new Formatter2({ client: this.client });
61724
+ return this._formatter ??= new Formatter({ client: this.client });
62369
61725
  }
62370
61726
  _mcp;
62371
61727
  get mcp() {
62372
- return this._mcp ??= new Mcp2({ client: this.client });
61728
+ return this._mcp ??= new Mcp({ client: this.client });
62373
61729
  }
62374
61730
  _project;
62375
61731
  get project() {
62376
- return this._project ??= new Project2({ client: this.client });
61732
+ return this._project ??= new Project({ client: this.client });
62377
61733
  }
62378
61734
  _pty;
62379
61735
  get pty() {
62380
- return this._pty ??= new Pty2({ client: this.client });
61736
+ return this._pty ??= new Pty({ client: this.client });
62381
61737
  }
62382
61738
  _question;
62383
61739
  get question() {
@@ -62389,11 +61745,11 @@ var init_sdk_gen2 = __esm(() => {
62389
61745
  }
62390
61746
  _provider;
62391
61747
  get provider() {
62392
- return this._provider ??= new Provider2({ client: this.client });
61748
+ return this._provider ??= new Provider({ client: this.client });
62393
61749
  }
62394
61750
  _session;
62395
61751
  get session() {
62396
- return this._session ??= new Session22({ client: this.client });
61752
+ return this._session ??= new Session2({ client: this.client });
62397
61753
  }
62398
61754
  _part;
62399
61755
  get part() {
@@ -62405,7 +61761,7 @@ var init_sdk_gen2 = __esm(() => {
62405
61761
  }
62406
61762
  _tui;
62407
61763
  get tui() {
62408
- return this._tui ??= new Tui2({ client: this.client });
61764
+ return this._tui ??= new Tui({ client: this.client });
62409
61765
  }
62410
61766
  _v2;
62411
61767
  get v2() {
@@ -62830,14 +62186,7 @@ function dispatchOpencodeEvent(event, handlers) {
62830
62186
  }
62831
62187
  }
62832
62188
  function isTurnComplete(event) {
62833
- if (event.type !== "message.updated")
62834
- return false;
62835
- const info = event.properties.info;
62836
- if (info === undefined)
62837
- return false;
62838
- if (info.role !== "assistant")
62839
- return false;
62840
- return typeof info.time?.completed === "number";
62189
+ return event.type === "session.idle";
62841
62190
  }
62842
62191
  var MESSAGE_BUS_TYPES;
62843
62192
  var init_prompt_stream = __esm(() => {
@@ -63285,7 +62634,7 @@ var init_driver2 = __esm(() => {
63285
62634
  // package.json
63286
62635
  var package_default = {
63287
62636
  name: "@kodizm/acp",
63288
- version: "0.6.1",
62637
+ version: "0.6.3",
63289
62638
  description: "Custom ACP server bridging Claude Code, codex, and opencode CLIs through a single Kodizm-flavored protocol surface.",
63290
62639
  type: "module",
63291
62640
  bin: {
@@ -63711,6 +63060,13 @@ async function runShutdown(options) {
63711
63060
  } catch (err) {
63712
63061
  errors3.push(toError(err));
63713
63062
  }
63063
+ if (options.disposeDriver !== undefined) {
63064
+ try {
63065
+ await options.disposeDriver();
63066
+ } catch (err) {
63067
+ errors3.push(toError(err));
63068
+ }
63069
+ }
63714
63070
  })();
63715
63071
  let timedOut = false;
63716
63072
  await Promise.race([
@@ -63807,6 +63163,7 @@ var KNOWN_BACKENDS = ["claude", "opencode"];
63807
63163
  var SHUTDOWN_GRACE_MS = 3000;
63808
63164
  var activeRecorders = new Set;
63809
63165
  var transportFlusher;
63166
+ var activeDriver;
63810
63167
  function registerActiveRecorder(recorder) {
63811
63168
  activeRecorders.add(recorder);
63812
63169
  return () => activeRecorders.delete(recorder);
@@ -63828,6 +63185,11 @@ async function performShutdown(graceMs = SHUTDOWN_GRACE_MS) {
63828
63185
  if (transportFlusher !== undefined) {
63829
63186
  await transportFlusher();
63830
63187
  }
63188
+ },
63189
+ disposeDriver: async () => {
63190
+ if (activeDriver?.disposeAll !== undefined) {
63191
+ await activeDriver.disposeAll();
63192
+ }
63831
63193
  }
63832
63194
  });
63833
63195
  }
@@ -63947,6 +63309,7 @@ async function main() {
63947
63309
  let driver;
63948
63310
  try {
63949
63311
  driver = await bootBackend(backend);
63312
+ activeDriver = driver;
63950
63313
  } catch (err) {
63951
63314
  const message = err instanceof Error ? err.message : String(err);
63952
63315
  process.stderr.write(`${JSON.stringify({
@@ -63967,18 +63330,21 @@ async function main() {
63967
63330
  await transport.close();
63968
63331
  });
63969
63332
  await server3.serve();
63333
+ if (activeDriver?.disposeAll !== undefined) {
63334
+ await activeDriver.disposeAll();
63335
+ }
63970
63336
  }
63971
63337
  if (import.meta.main) {
63972
63338
  await main();
63973
63339
  }
63974
63340
  export {
63975
- resolveBackendFromEnv,
63976
- registerShutdownFlusher,
63977
- registerActiveRecorder,
63978
- performShutdown,
63979
- main,
63980
- installShutdownHook,
63981
- UnknownBackendError,
63341
+ BackendNotConfiguredError,
63982
63342
  SHUTDOWN_GRACE_MS,
63983
- BackendNotConfiguredError
63343
+ UnknownBackendError,
63344
+ installShutdownHook,
63345
+ main,
63346
+ performShutdown,
63347
+ registerActiveRecorder,
63348
+ registerShutdownFlusher,
63349
+ resolveBackendFromEnv
63984
63350
  };