@kodizm/acp 0.6.0 → 0.6.2

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 +1283 -1862
  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);
@@ -14263,455 +14265,455 @@ function convertBaseSchema(schema, ctx) {
14263
14265
  zodSchema = zodSchema.check(z.minLength(schema.minItems));
14264
14266
  }
14265
14267
  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,
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";
@@ -55643,6 +55645,41 @@ Please migrate to a newer model. Visit https://docs.anthropic.com/en/docs/resour
55643
55645
  iVe = new Set(["EBUSY", "EMFILE", "ENFILE", "ENOTEMPTY", "EPERM"]);
55644
55646
  });
55645
55647
 
55648
+ // src/util/logger.ts
55649
+ function createLogger(options) {
55650
+ const raw = options.env.KODIZM_LOG_LEVEL;
55651
+ const configured = raw && raw in LEVEL_ORDER ? raw : "info";
55652
+ const threshold = LEVEL_ORDER[configured];
55653
+ const emit = (level, message, meta3) => {
55654
+ if (LEVEL_ORDER[level] < threshold) {
55655
+ return;
55656
+ }
55657
+ const line = JSON.stringify({
55658
+ level,
55659
+ message,
55660
+ timestamp: new Date().toISOString(),
55661
+ ...meta3 ?? {}
55662
+ });
55663
+ process.stderr.write(`${line}
55664
+ `);
55665
+ };
55666
+ return {
55667
+ debug: (message, meta3) => emit("debug", message, meta3),
55668
+ info: (message, meta3) => emit("info", message, meta3),
55669
+ warn: (message, meta3) => emit("warn", message, meta3),
55670
+ error: (message, meta3) => emit("error", message, meta3)
55671
+ };
55672
+ }
55673
+ var LEVEL_ORDER;
55674
+ var init_logger = __esm(() => {
55675
+ LEVEL_ORDER = {
55676
+ debug: 10,
55677
+ info: 20,
55678
+ warn: 30,
55679
+ error: 40
55680
+ };
55681
+ });
55682
+
55646
55683
  // src/backends/opencode/ask-user-question.ts
55647
55684
  async function handleOpencodeQuestion(args) {
55648
55685
  const kodizmQuestions = [];
@@ -56712,654 +56749,8 @@ var init_client_gen2 = __esm(() => {
56712
56749
  });
56713
56750
 
56714
56751
  // node_modules/@opencode-ai/sdk/dist/gen/sdk.gen.js
56715
- class _HeyApiClient {
56716
- _client = client;
56717
- constructor(args) {
56718
- if (args?.client) {
56719
- this._client = args.client;
56720
- }
56721
- }
56722
- }
56723
- var Global, Project, Pty, Config, Tool, Instance, Path, Vcs, Session, Command, Oauth, Provider, Find, File2, App, Auth, Mcp, Lsp, Formatter, Control, Tui, Event, OpencodeClient;
56724
56752
  var init_sdk_gen = __esm(() => {
56725
56753
  init_client_gen2();
56726
- Global = class Global extends _HeyApiClient {
56727
- event(options) {
56728
- return (options?.client ?? this._client).get.sse({
56729
- url: "/global/event",
56730
- ...options
56731
- });
56732
- }
56733
- };
56734
- Project = class Project extends _HeyApiClient {
56735
- list(options) {
56736
- return (options?.client ?? this._client).get({
56737
- url: "/project",
56738
- ...options
56739
- });
56740
- }
56741
- current(options) {
56742
- return (options?.client ?? this._client).get({
56743
- url: "/project/current",
56744
- ...options
56745
- });
56746
- }
56747
- };
56748
- Pty = class Pty extends _HeyApiClient {
56749
- list(options) {
56750
- return (options?.client ?? this._client).get({
56751
- url: "/pty",
56752
- ...options
56753
- });
56754
- }
56755
- create(options) {
56756
- return (options?.client ?? this._client).post({
56757
- url: "/pty",
56758
- ...options,
56759
- headers: {
56760
- "Content-Type": "application/json",
56761
- ...options?.headers
56762
- }
56763
- });
56764
- }
56765
- remove(options) {
56766
- return (options.client ?? this._client).delete({
56767
- url: "/pty/{id}",
56768
- ...options
56769
- });
56770
- }
56771
- get(options) {
56772
- return (options.client ?? this._client).get({
56773
- url: "/pty/{id}",
56774
- ...options
56775
- });
56776
- }
56777
- update(options) {
56778
- return (options.client ?? this._client).put({
56779
- url: "/pty/{id}",
56780
- ...options,
56781
- headers: {
56782
- "Content-Type": "application/json",
56783
- ...options.headers
56784
- }
56785
- });
56786
- }
56787
- connect(options) {
56788
- return (options.client ?? this._client).get({
56789
- url: "/pty/{id}/connect",
56790
- ...options
56791
- });
56792
- }
56793
- };
56794
- Config = class Config extends _HeyApiClient {
56795
- get(options) {
56796
- return (options?.client ?? this._client).get({
56797
- url: "/config",
56798
- ...options
56799
- });
56800
- }
56801
- update(options) {
56802
- return (options?.client ?? this._client).patch({
56803
- url: "/config",
56804
- ...options,
56805
- headers: {
56806
- "Content-Type": "application/json",
56807
- ...options?.headers
56808
- }
56809
- });
56810
- }
56811
- providers(options) {
56812
- return (options?.client ?? this._client).get({
56813
- url: "/config/providers",
56814
- ...options
56815
- });
56816
- }
56817
- };
56818
- Tool = class Tool extends _HeyApiClient {
56819
- ids(options) {
56820
- return (options?.client ?? this._client).get({
56821
- url: "/experimental/tool/ids",
56822
- ...options
56823
- });
56824
- }
56825
- list(options) {
56826
- return (options.client ?? this._client).get({
56827
- url: "/experimental/tool",
56828
- ...options
56829
- });
56830
- }
56831
- };
56832
- Instance = class Instance extends _HeyApiClient {
56833
- dispose(options) {
56834
- return (options?.client ?? this._client).post({
56835
- url: "/instance/dispose",
56836
- ...options
56837
- });
56838
- }
56839
- };
56840
- Path = class Path extends _HeyApiClient {
56841
- get(options) {
56842
- return (options?.client ?? this._client).get({
56843
- url: "/path",
56844
- ...options
56845
- });
56846
- }
56847
- };
56848
- Vcs = class Vcs extends _HeyApiClient {
56849
- get(options) {
56850
- return (options?.client ?? this._client).get({
56851
- url: "/vcs",
56852
- ...options
56853
- });
56854
- }
56855
- };
56856
- Session = class Session extends _HeyApiClient {
56857
- list(options) {
56858
- return (options?.client ?? this._client).get({
56859
- url: "/session",
56860
- ...options
56861
- });
56862
- }
56863
- create(options) {
56864
- return (options?.client ?? this._client).post({
56865
- url: "/session",
56866
- ...options,
56867
- headers: {
56868
- "Content-Type": "application/json",
56869
- ...options?.headers
56870
- }
56871
- });
56872
- }
56873
- status(options) {
56874
- return (options?.client ?? this._client).get({
56875
- url: "/session/status",
56876
- ...options
56877
- });
56878
- }
56879
- delete(options) {
56880
- return (options.client ?? this._client).delete({
56881
- url: "/session/{id}",
56882
- ...options
56883
- });
56884
- }
56885
- get(options) {
56886
- return (options.client ?? this._client).get({
56887
- url: "/session/{id}",
56888
- ...options
56889
- });
56890
- }
56891
- update(options) {
56892
- return (options.client ?? this._client).patch({
56893
- url: "/session/{id}",
56894
- ...options,
56895
- headers: {
56896
- "Content-Type": "application/json",
56897
- ...options.headers
56898
- }
56899
- });
56900
- }
56901
- children(options) {
56902
- return (options.client ?? this._client).get({
56903
- url: "/session/{id}/children",
56904
- ...options
56905
- });
56906
- }
56907
- todo(options) {
56908
- return (options.client ?? this._client).get({
56909
- url: "/session/{id}/todo",
56910
- ...options
56911
- });
56912
- }
56913
- init(options) {
56914
- return (options.client ?? this._client).post({
56915
- url: "/session/{id}/init",
56916
- ...options,
56917
- headers: {
56918
- "Content-Type": "application/json",
56919
- ...options.headers
56920
- }
56921
- });
56922
- }
56923
- fork(options) {
56924
- return (options.client ?? this._client).post({
56925
- url: "/session/{id}/fork",
56926
- ...options,
56927
- headers: {
56928
- "Content-Type": "application/json",
56929
- ...options.headers
56930
- }
56931
- });
56932
- }
56933
- abort(options) {
56934
- return (options.client ?? this._client).post({
56935
- url: "/session/{id}/abort",
56936
- ...options
56937
- });
56938
- }
56939
- unshare(options) {
56940
- return (options.client ?? this._client).delete({
56941
- url: "/session/{id}/share",
56942
- ...options
56943
- });
56944
- }
56945
- share(options) {
56946
- return (options.client ?? this._client).post({
56947
- url: "/session/{id}/share",
56948
- ...options
56949
- });
56950
- }
56951
- diff(options) {
56952
- return (options.client ?? this._client).get({
56953
- url: "/session/{id}/diff",
56954
- ...options
56955
- });
56956
- }
56957
- summarize(options) {
56958
- return (options.client ?? this._client).post({
56959
- url: "/session/{id}/summarize",
56960
- ...options,
56961
- headers: {
56962
- "Content-Type": "application/json",
56963
- ...options.headers
56964
- }
56965
- });
56966
- }
56967
- messages(options) {
56968
- return (options.client ?? this._client).get({
56969
- url: "/session/{id}/message",
56970
- ...options
56971
- });
56972
- }
56973
- prompt(options) {
56974
- return (options.client ?? this._client).post({
56975
- url: "/session/{id}/message",
56976
- ...options,
56977
- headers: {
56978
- "Content-Type": "application/json",
56979
- ...options.headers
56980
- }
56981
- });
56982
- }
56983
- message(options) {
56984
- return (options.client ?? this._client).get({
56985
- url: "/session/{id}/message/{messageID}",
56986
- ...options
56987
- });
56988
- }
56989
- promptAsync(options) {
56990
- return (options.client ?? this._client).post({
56991
- url: "/session/{id}/prompt_async",
56992
- ...options,
56993
- headers: {
56994
- "Content-Type": "application/json",
56995
- ...options.headers
56996
- }
56997
- });
56998
- }
56999
- command(options) {
57000
- return (options.client ?? this._client).post({
57001
- url: "/session/{id}/command",
57002
- ...options,
57003
- headers: {
57004
- "Content-Type": "application/json",
57005
- ...options.headers
57006
- }
57007
- });
57008
- }
57009
- shell(options) {
57010
- return (options.client ?? this._client).post({
57011
- url: "/session/{id}/shell",
57012
- ...options,
57013
- headers: {
57014
- "Content-Type": "application/json",
57015
- ...options.headers
57016
- }
57017
- });
57018
- }
57019
- revert(options) {
57020
- return (options.client ?? this._client).post({
57021
- url: "/session/{id}/revert",
57022
- ...options,
57023
- headers: {
57024
- "Content-Type": "application/json",
57025
- ...options.headers
57026
- }
57027
- });
57028
- }
57029
- unrevert(options) {
57030
- return (options.client ?? this._client).post({
57031
- url: "/session/{id}/unrevert",
57032
- ...options
57033
- });
57034
- }
57035
- };
57036
- Command = class Command extends _HeyApiClient {
57037
- list(options) {
57038
- return (options?.client ?? this._client).get({
57039
- url: "/command",
57040
- ...options
57041
- });
57042
- }
57043
- };
57044
- Oauth = class Oauth extends _HeyApiClient {
57045
- authorize(options) {
57046
- return (options.client ?? this._client).post({
57047
- url: "/provider/{id}/oauth/authorize",
57048
- ...options,
57049
- headers: {
57050
- "Content-Type": "application/json",
57051
- ...options.headers
57052
- }
57053
- });
57054
- }
57055
- callback(options) {
57056
- return (options.client ?? this._client).post({
57057
- url: "/provider/{id}/oauth/callback",
57058
- ...options,
57059
- headers: {
57060
- "Content-Type": "application/json",
57061
- ...options.headers
57062
- }
57063
- });
57064
- }
57065
- };
57066
- Provider = class Provider extends _HeyApiClient {
57067
- list(options) {
57068
- return (options?.client ?? this._client).get({
57069
- url: "/provider",
57070
- ...options
57071
- });
57072
- }
57073
- auth(options) {
57074
- return (options?.client ?? this._client).get({
57075
- url: "/provider/auth",
57076
- ...options
57077
- });
57078
- }
57079
- oauth = new Oauth({ client: this._client });
57080
- };
57081
- Find = class Find extends _HeyApiClient {
57082
- text(options) {
57083
- return (options.client ?? this._client).get({
57084
- url: "/find",
57085
- ...options
57086
- });
57087
- }
57088
- files(options) {
57089
- return (options.client ?? this._client).get({
57090
- url: "/find/file",
57091
- ...options
57092
- });
57093
- }
57094
- symbols(options) {
57095
- return (options.client ?? this._client).get({
57096
- url: "/find/symbol",
57097
- ...options
57098
- });
57099
- }
57100
- };
57101
- File2 = class File2 extends _HeyApiClient {
57102
- list(options) {
57103
- return (options.client ?? this._client).get({
57104
- url: "/file",
57105
- ...options
57106
- });
57107
- }
57108
- read(options) {
57109
- return (options.client ?? this._client).get({
57110
- url: "/file/content",
57111
- ...options
57112
- });
57113
- }
57114
- status(options) {
57115
- return (options?.client ?? this._client).get({
57116
- url: "/file/status",
57117
- ...options
57118
- });
57119
- }
57120
- };
57121
- App = class App extends _HeyApiClient {
57122
- log(options) {
57123
- return (options?.client ?? this._client).post({
57124
- url: "/log",
57125
- ...options,
57126
- headers: {
57127
- "Content-Type": "application/json",
57128
- ...options?.headers
57129
- }
57130
- });
57131
- }
57132
- agents(options) {
57133
- return (options?.client ?? this._client).get({
57134
- url: "/agent",
57135
- ...options
57136
- });
57137
- }
57138
- };
57139
- Auth = class Auth extends _HeyApiClient {
57140
- remove(options) {
57141
- return (options.client ?? this._client).delete({
57142
- url: "/mcp/{name}/auth",
57143
- ...options
57144
- });
57145
- }
57146
- start(options) {
57147
- return (options.client ?? this._client).post({
57148
- url: "/mcp/{name}/auth",
57149
- ...options
57150
- });
57151
- }
57152
- callback(options) {
57153
- return (options.client ?? this._client).post({
57154
- url: "/mcp/{name}/auth/callback",
57155
- ...options,
57156
- headers: {
57157
- "Content-Type": "application/json",
57158
- ...options.headers
57159
- }
57160
- });
57161
- }
57162
- authenticate(options) {
57163
- return (options.client ?? this._client).post({
57164
- url: "/mcp/{name}/auth/authenticate",
57165
- ...options
57166
- });
57167
- }
57168
- set(options) {
57169
- return (options.client ?? this._client).put({
57170
- url: "/auth/{id}",
57171
- ...options,
57172
- headers: {
57173
- "Content-Type": "application/json",
57174
- ...options.headers
57175
- }
57176
- });
57177
- }
57178
- };
57179
- Mcp = class Mcp extends _HeyApiClient {
57180
- status(options) {
57181
- return (options?.client ?? this._client).get({
57182
- url: "/mcp",
57183
- ...options
57184
- });
57185
- }
57186
- add(options) {
57187
- return (options?.client ?? this._client).post({
57188
- url: "/mcp",
57189
- ...options,
57190
- headers: {
57191
- "Content-Type": "application/json",
57192
- ...options?.headers
57193
- }
57194
- });
57195
- }
57196
- connect(options) {
57197
- return (options.client ?? this._client).post({
57198
- url: "/mcp/{name}/connect",
57199
- ...options
57200
- });
57201
- }
57202
- disconnect(options) {
57203
- return (options.client ?? this._client).post({
57204
- url: "/mcp/{name}/disconnect",
57205
- ...options
57206
- });
57207
- }
57208
- auth = new Auth({ client: this._client });
57209
- };
57210
- Lsp = class Lsp extends _HeyApiClient {
57211
- status(options) {
57212
- return (options?.client ?? this._client).get({
57213
- url: "/lsp",
57214
- ...options
57215
- });
57216
- }
57217
- };
57218
- Formatter = class Formatter extends _HeyApiClient {
57219
- status(options) {
57220
- return (options?.client ?? this._client).get({
57221
- url: "/formatter",
57222
- ...options
57223
- });
57224
- }
57225
- };
57226
- Control = class Control extends _HeyApiClient {
57227
- next(options) {
57228
- return (options?.client ?? this._client).get({
57229
- url: "/tui/control/next",
57230
- ...options
57231
- });
57232
- }
57233
- response(options) {
57234
- return (options?.client ?? this._client).post({
57235
- url: "/tui/control/response",
57236
- ...options,
57237
- headers: {
57238
- "Content-Type": "application/json",
57239
- ...options?.headers
57240
- }
57241
- });
57242
- }
57243
- };
57244
- Tui = class Tui extends _HeyApiClient {
57245
- appendPrompt(options) {
57246
- return (options?.client ?? this._client).post({
57247
- url: "/tui/append-prompt",
57248
- ...options,
57249
- headers: {
57250
- "Content-Type": "application/json",
57251
- ...options?.headers
57252
- }
57253
- });
57254
- }
57255
- openHelp(options) {
57256
- return (options?.client ?? this._client).post({
57257
- url: "/tui/open-help",
57258
- ...options
57259
- });
57260
- }
57261
- openSessions(options) {
57262
- return (options?.client ?? this._client).post({
57263
- url: "/tui/open-sessions",
57264
- ...options
57265
- });
57266
- }
57267
- openThemes(options) {
57268
- return (options?.client ?? this._client).post({
57269
- url: "/tui/open-themes",
57270
- ...options
57271
- });
57272
- }
57273
- openModels(options) {
57274
- return (options?.client ?? this._client).post({
57275
- url: "/tui/open-models",
57276
- ...options
57277
- });
57278
- }
57279
- submitPrompt(options) {
57280
- return (options?.client ?? this._client).post({
57281
- url: "/tui/submit-prompt",
57282
- ...options
57283
- });
57284
- }
57285
- clearPrompt(options) {
57286
- return (options?.client ?? this._client).post({
57287
- url: "/tui/clear-prompt",
57288
- ...options
57289
- });
57290
- }
57291
- executeCommand(options) {
57292
- return (options?.client ?? this._client).post({
57293
- url: "/tui/execute-command",
57294
- ...options,
57295
- headers: {
57296
- "Content-Type": "application/json",
57297
- ...options?.headers
57298
- }
57299
- });
57300
- }
57301
- showToast(options) {
57302
- return (options?.client ?? this._client).post({
57303
- url: "/tui/show-toast",
57304
- ...options,
57305
- headers: {
57306
- "Content-Type": "application/json",
57307
- ...options?.headers
57308
- }
57309
- });
57310
- }
57311
- publish(options) {
57312
- return (options?.client ?? this._client).post({
57313
- url: "/tui/publish",
57314
- ...options,
57315
- headers: {
57316
- "Content-Type": "application/json",
57317
- ...options?.headers
57318
- }
57319
- });
57320
- }
57321
- control = new Control({ client: this._client });
57322
- };
57323
- Event = class Event extends _HeyApiClient {
57324
- subscribe(options) {
57325
- return (options?.client ?? this._client).get.sse({
57326
- url: "/event",
57327
- ...options
57328
- });
57329
- }
57330
- };
57331
- OpencodeClient = class OpencodeClient extends _HeyApiClient {
57332
- postSessionIdPermissionsPermissionId(options) {
57333
- return (options.client ?? this._client).post({
57334
- url: "/session/{id}/permissions/{permissionID}",
57335
- ...options,
57336
- headers: {
57337
- "Content-Type": "application/json",
57338
- ...options.headers
57339
- }
57340
- });
57341
- }
57342
- global = new Global({ client: this._client });
57343
- project = new Project({ client: this._client });
57344
- pty = new Pty({ client: this._client });
57345
- config = new Config({ client: this._client });
57346
- tool = new Tool({ client: this._client });
57347
- instance = new Instance({ client: this._client });
57348
- path = new Path({ client: this._client });
57349
- vcs = new Vcs({ client: this._client });
57350
- session = new Session({ client: this._client });
57351
- command = new Command({ client: this._client });
57352
- provider = new Provider({ client: this._client });
57353
- find = new Find({ client: this._client });
57354
- file = new File2({ client: this._client });
57355
- app = new App({ client: this._client });
57356
- mcp = new Mcp({ client: this._client });
57357
- lsp = new Lsp({ client: this._client });
57358
- formatter = new Formatter({ client: this._client });
57359
- tui = new Tui({ client: this._client });
57360
- auth = new Auth({ client: this._client });
57361
- event = new Event({ client: this._client });
57362
- };
57363
56754
  });
57364
56755
 
57365
56756
  // node_modules/@opencode-ai/sdk/dist/error-interceptor.js
@@ -57397,7 +56788,7 @@ var init_client2 = __esm(() => {
57397
56788
  });
57398
56789
 
57399
56790
  // node_modules/isexe/windows.js
57400
- var require_windows = __commonJS((exports, module) => {
56791
+ var require_windows = __commonJS(function(exports, module) {
57401
56792
  module.exports = isexe;
57402
56793
  isexe.sync = sync;
57403
56794
  var fs2 = __require("fs");
@@ -57435,7 +56826,7 @@ var require_windows = __commonJS((exports, module) => {
57435
56826
  });
57436
56827
 
57437
56828
  // node_modules/isexe/mode.js
57438
- var require_mode = __commonJS((exports, module) => {
56829
+ var require_mode = __commonJS(function(exports, module) {
57439
56830
  module.exports = isexe;
57440
56831
  isexe.sync = sync;
57441
56832
  var fs2 = __require("fs");
@@ -57466,7 +56857,7 @@ var require_mode = __commonJS((exports, module) => {
57466
56857
  });
57467
56858
 
57468
56859
  // node_modules/isexe/index.js
57469
- var require_isexe = __commonJS((exports, module) => {
56860
+ var require_isexe = __commonJS(function(exports, module) {
57470
56861
  var fs2 = __require("fs");
57471
56862
  var core2;
57472
56863
  if (process.platform === "win32" || global.TESTING_WINDOWS) {
@@ -57519,7 +56910,7 @@ var require_isexe = __commonJS((exports, module) => {
57519
56910
  });
57520
56911
 
57521
56912
  // node_modules/which/which.js
57522
- var require_which = __commonJS((exports, module) => {
56913
+ var require_which = __commonJS(function(exports, module) {
57523
56914
  var isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
57524
56915
  var path = __require("path");
57525
56916
  var COLON = isWindows ? ";" : ":";
@@ -57610,7 +57001,7 @@ var require_which = __commonJS((exports, module) => {
57610
57001
  });
57611
57002
 
57612
57003
  // node_modules/path-key/index.js
57613
- var require_path_key = __commonJS((exports, module) => {
57004
+ var require_path_key = __commonJS(function(exports, module) {
57614
57005
  var pathKey = (options = {}) => {
57615
57006
  const environment = options.env || process.env;
57616
57007
  const platform = options.platform || process.platform;
@@ -57624,7 +57015,7 @@ var require_path_key = __commonJS((exports, module) => {
57624
57015
  });
57625
57016
 
57626
57017
  // node_modules/cross-spawn/lib/util/resolveCommand.js
57627
- var require_resolveCommand = __commonJS((exports, module) => {
57018
+ var require_resolveCommand = __commonJS(function(exports, module) {
57628
57019
  var path = __require("path");
57629
57020
  var which = require_which();
57630
57021
  var getPathKey = require_path_key();
@@ -57661,7 +57052,7 @@ var require_resolveCommand = __commonJS((exports, module) => {
57661
57052
  });
57662
57053
 
57663
57054
  // node_modules/cross-spawn/lib/util/escape.js
57664
- var require_escape = __commonJS((exports, module) => {
57055
+ var require_escape = __commonJS(function(exports, module) {
57665
57056
  var metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
57666
57057
  function escapeCommand(arg) {
57667
57058
  arg = arg.replace(metaCharsRegExp, "^$1");
@@ -57683,12 +57074,12 @@ var require_escape = __commonJS((exports, module) => {
57683
57074
  });
57684
57075
 
57685
57076
  // node_modules/shebang-regex/index.js
57686
- var require_shebang_regex = __commonJS((exports, module) => {
57077
+ var require_shebang_regex = __commonJS(function(exports, module) {
57687
57078
  module.exports = /^#!(.*)/;
57688
57079
  });
57689
57080
 
57690
57081
  // node_modules/shebang-command/index.js
57691
- var require_shebang_command = __commonJS((exports, module) => {
57082
+ var require_shebang_command = __commonJS(function(exports, module) {
57692
57083
  var shebangRegex = require_shebang_regex();
57693
57084
  module.exports = (string4 = "") => {
57694
57085
  const match = string4.match(shebangRegex);
@@ -57705,7 +57096,7 @@ var require_shebang_command = __commonJS((exports, module) => {
57705
57096
  });
57706
57097
 
57707
57098
  // node_modules/cross-spawn/lib/util/readShebang.js
57708
- var require_readShebang = __commonJS((exports, module) => {
57099
+ var require_readShebang = __commonJS(function(exports, module) {
57709
57100
  var fs2 = __require("fs");
57710
57101
  var shebangCommand = require_shebang_command();
57711
57102
  function readShebang(command) {
@@ -57723,7 +57114,7 @@ var require_readShebang = __commonJS((exports, module) => {
57723
57114
  });
57724
57115
 
57725
57116
  // node_modules/cross-spawn/lib/parse.js
57726
- var require_parse = __commonJS((exports, module) => {
57117
+ var require_parse = __commonJS(function(exports, module) {
57727
57118
  var path = __require("path");
57728
57119
  var resolveCommand = require_resolveCommand();
57729
57120
  var escape2 = require_escape();
@@ -57782,7 +57173,7 @@ var require_parse = __commonJS((exports, module) => {
57782
57173
  });
57783
57174
 
57784
57175
  // node_modules/cross-spawn/lib/enoent.js
57785
- var require_enoent = __commonJS((exports, module) => {
57176
+ var require_enoent = __commonJS(function(exports, module) {
57786
57177
  var isWin = process.platform === "win32";
57787
57178
  function notFoundError(original, syscall) {
57788
57179
  return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), {
@@ -57829,7 +57220,7 @@ var require_enoent = __commonJS((exports, module) => {
57829
57220
  });
57830
57221
 
57831
57222
  // node_modules/cross-spawn/index.js
57832
- var require_cross_spawn = __commonJS((exports, module) => {
57223
+ var require_cross_spawn = __commonJS(function(exports, module) {
57833
57224
  var cp2 = __require("child_process");
57834
57225
  var parse7 = require_parse();
57835
57226
  var enoent = require_enoent();
@@ -58855,11 +58246,11 @@ class HeyApiRegistry {
58855
58246
  this.instances.set(key ?? this.defaultKey, value);
58856
58247
  }
58857
58248
  }
58858
- 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;
58859
58250
  var init_sdk_gen2 = __esm(() => {
58860
58251
  init_client_gen4();
58861
58252
  init_client3();
58862
- Auth2 = class Auth2 extends HeyApiClient {
58253
+ Auth = class Auth extends HeyApiClient {
58863
58254
  remove(parameters, options) {
58864
58255
  const params = buildClientParams2([parameters], [{ args: [{ in: "path", key: "providerID" }] }]);
58865
58256
  return (options?.client ?? this.client).delete({
@@ -58889,7 +58280,7 @@ var init_sdk_gen2 = __esm(() => {
58889
58280
  });
58890
58281
  }
58891
58282
  };
58892
- App2 = class App2 extends HeyApiClient {
58283
+ App = class App extends HeyApiClient {
58893
58284
  log(parameters, options) {
58894
58285
  const params = buildClientParams2([parameters], [
58895
58286
  {
@@ -59039,7 +58430,7 @@ var init_sdk_gen2 = __esm(() => {
59039
58430
  });
59040
58431
  }
59041
58432
  };
59042
- Session2 = class Session2 extends HeyApiClient {
58433
+ Session = class Session extends HeyApiClient {
59043
58434
  list(parameters, options) {
59044
58435
  const params = buildClientParams2([parameters], [
59045
58436
  {
@@ -59265,7 +58656,7 @@ var init_sdk_gen2 = __esm(() => {
59265
58656
  }
59266
58657
  _session;
59267
58658
  get session() {
59268
- return this._session ??= new Session2({ client: this.client });
58659
+ return this._session ??= new Session({ client: this.client });
59269
58660
  }
59270
58661
  _resource;
59271
58662
  get resource() {
@@ -59280,7 +58671,7 @@ var init_sdk_gen2 = __esm(() => {
59280
58671
  return this._workspace ??= new Workspace({ client: this.client });
59281
58672
  }
59282
58673
  };
59283
- Config2 = class Config2 extends HeyApiClient {
58674
+ Config = class Config extends HeyApiClient {
59284
58675
  get(options) {
59285
58676
  return (options?.client ?? this.client).get({
59286
58677
  url: "/global/config",
@@ -59301,7 +58692,7 @@ var init_sdk_gen2 = __esm(() => {
59301
58692
  });
59302
58693
  }
59303
58694
  };
59304
- Global2 = class Global2 extends HeyApiClient {
58695
+ Global = class Global extends HeyApiClient {
59305
58696
  health(options) {
59306
58697
  return (options?.client ?? this.client).get({
59307
58698
  url: "/global/health",
@@ -59335,10 +58726,10 @@ var init_sdk_gen2 = __esm(() => {
59335
58726
  }
59336
58727
  _config;
59337
58728
  get config() {
59338
- return this._config ??= new Config2({ client: this.client });
58729
+ return this._config ??= new Config({ client: this.client });
59339
58730
  }
59340
58731
  };
59341
- Event2 = class Event2 extends HeyApiClient {
58732
+ Event = class Event extends HeyApiClient {
59342
58733
  subscribe(parameters, options) {
59343
58734
  const params = buildClientParams2([parameters], [
59344
58735
  {
@@ -59355,7 +58746,7 @@ var init_sdk_gen2 = __esm(() => {
59355
58746
  });
59356
58747
  }
59357
58748
  };
59358
- Config22 = class Config22 extends HeyApiClient {
58749
+ Config2 = class Config2 extends HeyApiClient {
59359
58750
  get(parameters, options) {
59360
58751
  const params = buildClientParams2([parameters], [
59361
58752
  {
@@ -59408,7 +58799,7 @@ var init_sdk_gen2 = __esm(() => {
59408
58799
  });
59409
58800
  }
59410
58801
  };
59411
- Tool2 = class Tool2 extends HeyApiClient {
58802
+ Tool = class Tool extends HeyApiClient {
59412
58803
  list(parameters, options) {
59413
58804
  const params = buildClientParams2([parameters], [
59414
58805
  {
@@ -59522,7 +58913,7 @@ var init_sdk_gen2 = __esm(() => {
59522
58913
  });
59523
58914
  }
59524
58915
  };
59525
- Find2 = class Find2 extends HeyApiClient {
58916
+ Find = class Find extends HeyApiClient {
59526
58917
  text(parameters, options) {
59527
58918
  const params = buildClientParams2([parameters], [
59528
58919
  {
@@ -59575,7 +58966,7 @@ var init_sdk_gen2 = __esm(() => {
59575
58966
  });
59576
58967
  }
59577
58968
  };
59578
- File3 = class File3 extends HeyApiClient {
58969
+ File2 = class File2 extends HeyApiClient {
59579
58970
  list(parameters, options) {
59580
58971
  const params = buildClientParams2([parameters], [
59581
58972
  {
@@ -59624,7 +59015,7 @@ var init_sdk_gen2 = __esm(() => {
59624
59015
  });
59625
59016
  }
59626
59017
  };
59627
- Instance2 = class Instance2 extends HeyApiClient {
59018
+ Instance = class Instance extends HeyApiClient {
59628
59019
  dispose(parameters, options) {
59629
59020
  const params = buildClientParams2([parameters], [
59630
59021
  {
@@ -59641,7 +59032,7 @@ var init_sdk_gen2 = __esm(() => {
59641
59032
  });
59642
59033
  }
59643
59034
  };
59644
- Path2 = class Path2 extends HeyApiClient {
59035
+ Path = class Path extends HeyApiClient {
59645
59036
  get(parameters, options) {
59646
59037
  const params = buildClientParams2([parameters], [
59647
59038
  {
@@ -59675,7 +59066,7 @@ var init_sdk_gen2 = __esm(() => {
59675
59066
  });
59676
59067
  }
59677
59068
  };
59678
- Vcs2 = class Vcs2 extends HeyApiClient {
59069
+ Vcs = class Vcs extends HeyApiClient {
59679
59070
  get(parameters, options) {
59680
59071
  const params = buildClientParams2([parameters], [
59681
59072
  {
@@ -59749,7 +59140,7 @@ var init_sdk_gen2 = __esm(() => {
59749
59140
  return this._diff ??= new Diff({ client: this.client });
59750
59141
  }
59751
59142
  };
59752
- Command2 = class Command2 extends HeyApiClient {
59143
+ Command = class Command extends HeyApiClient {
59753
59144
  list(parameters, options) {
59754
59145
  const params = buildClientParams2([parameters], [
59755
59146
  {
@@ -59766,7 +59157,7 @@ var init_sdk_gen2 = __esm(() => {
59766
59157
  });
59767
59158
  }
59768
59159
  };
59769
- Lsp2 = class Lsp2 extends HeyApiClient {
59160
+ Lsp = class Lsp extends HeyApiClient {
59770
59161
  status(parameters, options) {
59771
59162
  const params = buildClientParams2([parameters], [
59772
59163
  {
@@ -59783,7 +59174,7 @@ var init_sdk_gen2 = __esm(() => {
59783
59174
  });
59784
59175
  }
59785
59176
  };
59786
- Formatter2 = class Formatter2 extends HeyApiClient {
59177
+ Formatter = class Formatter extends HeyApiClient {
59787
59178
  status(parameters, options) {
59788
59179
  const params = buildClientParams2([parameters], [
59789
59180
  {
@@ -59800,7 +59191,7 @@ var init_sdk_gen2 = __esm(() => {
59800
59191
  });
59801
59192
  }
59802
59193
  };
59803
- Auth22 = class Auth22 extends HeyApiClient {
59194
+ Auth2 = class Auth2 extends HeyApiClient {
59804
59195
  remove(parameters, options) {
59805
59196
  const params = buildClientParams2([parameters], [
59806
59197
  {
@@ -59872,7 +59263,7 @@ var init_sdk_gen2 = __esm(() => {
59872
59263
  });
59873
59264
  }
59874
59265
  };
59875
- Mcp2 = class Mcp2 extends HeyApiClient {
59266
+ Mcp = class Mcp extends HeyApiClient {
59876
59267
  status(parameters, options) {
59877
59268
  const params = buildClientParams2([parameters], [
59878
59269
  {
@@ -59944,10 +59335,10 @@ var init_sdk_gen2 = __esm(() => {
59944
59335
  }
59945
59336
  _auth;
59946
59337
  get auth() {
59947
- return this._auth ??= new Auth22({ client: this.client });
59338
+ return this._auth ??= new Auth2({ client: this.client });
59948
59339
  }
59949
59340
  };
59950
- Project2 = class Project2 extends HeyApiClient {
59341
+ Project = class Project extends HeyApiClient {
59951
59342
  list(parameters, options) {
59952
59343
  const params = buildClientParams2([parameters], [
59953
59344
  {
@@ -60034,7 +59425,7 @@ var init_sdk_gen2 = __esm(() => {
60034
59425
  });
60035
59426
  }
60036
59427
  };
60037
- Pty2 = class Pty2 extends HeyApiClient {
59428
+ Pty = class Pty extends HeyApiClient {
60038
59429
  shells(parameters, options) {
60039
59430
  const params = buildClientParams2([parameters], [
60040
59431
  {
@@ -60298,7 +59689,7 @@ var init_sdk_gen2 = __esm(() => {
60298
59689
  });
60299
59690
  }
60300
59691
  };
60301
- Oauth2 = class Oauth2 extends HeyApiClient {
59692
+ Oauth = class Oauth extends HeyApiClient {
60302
59693
  authorize(parameters, options) {
60303
59694
  const params = buildClientParams2([parameters], [
60304
59695
  {
@@ -60346,7 +59737,7 @@ var init_sdk_gen2 = __esm(() => {
60346
59737
  });
60347
59738
  }
60348
59739
  };
60349
- Provider2 = class Provider2 extends HeyApiClient {
59740
+ Provider = class Provider extends HeyApiClient {
60350
59741
  list(parameters, options) {
60351
59742
  const params = buildClientParams2([parameters], [
60352
59743
  {
@@ -60379,10 +59770,10 @@ var init_sdk_gen2 = __esm(() => {
60379
59770
  }
60380
59771
  _oauth;
60381
59772
  get oauth() {
60382
- return this._oauth ??= new Oauth2({ client: this.client });
59773
+ return this._oauth ??= new Oauth({ client: this.client });
60383
59774
  }
60384
59775
  };
60385
- Session22 = class Session22 extends HeyApiClient {
59776
+ Session2 = class Session2 extends HeyApiClient {
60386
59777
  list(parameters, options) {
60387
59778
  const params = buildClientParams2([parameters], [
60388
59779
  {
@@ -61014,7 +60405,7 @@ var init_sdk_gen2 = __esm(() => {
61014
60405
  return this._history ??= new History({ client: this.client });
61015
60406
  }
61016
60407
  };
61017
- Control2 = class Control2 extends HeyApiClient {
60408
+ Control = class Control extends HeyApiClient {
61018
60409
  next(parameters, options) {
61019
60410
  const params = buildClientParams2([parameters], [
61020
60411
  {
@@ -61052,7 +60443,7 @@ var init_sdk_gen2 = __esm(() => {
61052
60443
  });
61053
60444
  }
61054
60445
  };
61055
- Tui2 = class Tui2 extends HeyApiClient {
60446
+ Tui = class Tui extends HeyApiClient {
61056
60447
  appendPrompt(parameters, options) {
61057
60448
  const params = buildClientParams2([parameters], [
61058
60449
  {
@@ -61253,7 +60644,7 @@ var init_sdk_gen2 = __esm(() => {
61253
60644
  }
61254
60645
  _control;
61255
60646
  get control() {
61256
- return this._control ??= new Control2({ client: this.client });
60647
+ return this._control ??= new Control({ client: this.client });
61257
60648
  }
61258
60649
  };
61259
60650
  Health = class Health extends HeyApiClient {
@@ -61681,7 +61072,7 @@ var init_sdk_gen2 = __esm(() => {
61681
61072
  });
61682
61073
  }
61683
61074
  };
61684
- Provider22 = class Provider22 extends HeyApiClient {
61075
+ Provider2 = class Provider2 extends HeyApiClient {
61685
61076
  list(parameters, options) {
61686
61077
  const params = buildClientParams2([parameters], [{ args: [{ in: "query", key: "location" }] }]);
61687
61078
  return (options?.client ?? this.client).get({
@@ -61957,7 +61348,7 @@ var init_sdk_gen2 = __esm(() => {
61957
61348
  });
61958
61349
  }
61959
61350
  };
61960
- Command22 = class Command22 extends HeyApiClient {
61351
+ Command2 = class Command2 extends HeyApiClient {
61961
61352
  list(parameters, options) {
61962
61353
  const params = buildClientParams2([parameters], [{ args: [{ in: "query", key: "location" }] }]);
61963
61354
  return (options?.client ?? this.client).get({
@@ -61977,7 +61368,7 @@ var init_sdk_gen2 = __esm(() => {
61977
61368
  });
61978
61369
  }
61979
61370
  };
61980
- Event22 = class Event22 extends HeyApiClient {
61371
+ Event2 = class Event2 extends HeyApiClient {
61981
61372
  subscribe(options) {
61982
61373
  return (options?.client ?? this.client).sse.get({
61983
61374
  url: "/api/event",
@@ -61985,7 +61376,7 @@ var init_sdk_gen2 = __esm(() => {
61985
61376
  });
61986
61377
  }
61987
61378
  };
61988
- Pty22 = class Pty22 extends HeyApiClient {
61379
+ Pty2 = class Pty2 extends HeyApiClient {
61989
61380
  list(parameters, options) {
61990
61381
  const params = buildClientParams2([parameters], [{ args: [{ in: "query", key: "location" }] }]);
61991
61382
  return (options?.client ?? this.client).get({
@@ -62215,7 +61606,7 @@ var init_sdk_gen2 = __esm(() => {
62215
61606
  }
62216
61607
  _provider;
62217
61608
  get provider() {
62218
- return this._provider ??= new Provider22({ client: this.client });
61609
+ return this._provider ??= new Provider2({ client: this.client });
62219
61610
  }
62220
61611
  _integration;
62221
61612
  get integration() {
@@ -62235,7 +61626,7 @@ var init_sdk_gen2 = __esm(() => {
62235
61626
  }
62236
61627
  _command;
62237
61628
  get command() {
62238
- return this._command ??= new Command22({ client: this.client });
61629
+ return this._command ??= new Command2({ client: this.client });
62239
61630
  }
62240
61631
  _skill;
62241
61632
  get skill() {
@@ -62243,11 +61634,11 @@ var init_sdk_gen2 = __esm(() => {
62243
61634
  }
62244
61635
  _event;
62245
61636
  get event() {
62246
- return this._event ??= new Event22({ client: this.client });
61637
+ return this._event ??= new Event2({ client: this.client });
62247
61638
  }
62248
61639
  _pty;
62249
61640
  get pty() {
62250
- return this._pty ??= new Pty22({ client: this.client });
61641
+ return this._pty ??= new Pty2({ client: this.client });
62251
61642
  }
62252
61643
  _question;
62253
61644
  get question() {
@@ -62270,11 +61661,11 @@ var init_sdk_gen2 = __esm(() => {
62270
61661
  }
62271
61662
  _auth;
62272
61663
  get auth() {
62273
- return this._auth ??= new Auth2({ client: this.client });
61664
+ return this._auth ??= new Auth({ client: this.client });
62274
61665
  }
62275
61666
  _app;
62276
61667
  get app() {
62277
- return this._app ??= new App2({ client: this.client });
61668
+ return this._app ??= new App({ client: this.client });
62278
61669
  }
62279
61670
  _experimental;
62280
61671
  get experimental() {
@@ -62282,19 +61673,19 @@ var init_sdk_gen2 = __esm(() => {
62282
61673
  }
62283
61674
  _global;
62284
61675
  get global() {
62285
- return this._global ??= new Global2({ client: this.client });
61676
+ return this._global ??= new Global({ client: this.client });
62286
61677
  }
62287
61678
  _event;
62288
61679
  get event() {
62289
- return this._event ??= new Event2({ client: this.client });
61680
+ return this._event ??= new Event({ client: this.client });
62290
61681
  }
62291
61682
  _config;
62292
61683
  get config() {
62293
- return this._config ??= new Config22({ client: this.client });
61684
+ return this._config ??= new Config2({ client: this.client });
62294
61685
  }
62295
61686
  _tool;
62296
61687
  get tool() {
62297
- return this._tool ??= new Tool2({ client: this.client });
61688
+ return this._tool ??= new Tool({ client: this.client });
62298
61689
  }
62299
61690
  _worktree;
62300
61691
  get worktree() {
@@ -62302,47 +61693,47 @@ var init_sdk_gen2 = __esm(() => {
62302
61693
  }
62303
61694
  _find;
62304
61695
  get find() {
62305
- return this._find ??= new Find2({ client: this.client });
61696
+ return this._find ??= new Find({ client: this.client });
62306
61697
  }
62307
61698
  _file;
62308
61699
  get file() {
62309
- return this._file ??= new File3({ client: this.client });
61700
+ return this._file ??= new File2({ client: this.client });
62310
61701
  }
62311
61702
  _instance;
62312
61703
  get instance() {
62313
- return this._instance ??= new Instance2({ client: this.client });
61704
+ return this._instance ??= new Instance({ client: this.client });
62314
61705
  }
62315
61706
  _path;
62316
61707
  get path() {
62317
- return this._path ??= new Path2({ client: this.client });
61708
+ return this._path ??= new Path({ client: this.client });
62318
61709
  }
62319
61710
  _vcs;
62320
61711
  get vcs() {
62321
- return this._vcs ??= new Vcs2({ client: this.client });
61712
+ return this._vcs ??= new Vcs({ client: this.client });
62322
61713
  }
62323
61714
  _command;
62324
61715
  get command() {
62325
- return this._command ??= new Command2({ client: this.client });
61716
+ return this._command ??= new Command({ client: this.client });
62326
61717
  }
62327
61718
  _lsp;
62328
61719
  get lsp() {
62329
- return this._lsp ??= new Lsp2({ client: this.client });
61720
+ return this._lsp ??= new Lsp({ client: this.client });
62330
61721
  }
62331
61722
  _formatter;
62332
61723
  get formatter() {
62333
- return this._formatter ??= new Formatter2({ client: this.client });
61724
+ return this._formatter ??= new Formatter({ client: this.client });
62334
61725
  }
62335
61726
  _mcp;
62336
61727
  get mcp() {
62337
- return this._mcp ??= new Mcp2({ client: this.client });
61728
+ return this._mcp ??= new Mcp({ client: this.client });
62338
61729
  }
62339
61730
  _project;
62340
61731
  get project() {
62341
- return this._project ??= new Project2({ client: this.client });
61732
+ return this._project ??= new Project({ client: this.client });
62342
61733
  }
62343
61734
  _pty;
62344
61735
  get pty() {
62345
- return this._pty ??= new Pty2({ client: this.client });
61736
+ return this._pty ??= new Pty({ client: this.client });
62346
61737
  }
62347
61738
  _question;
62348
61739
  get question() {
@@ -62354,11 +61745,11 @@ var init_sdk_gen2 = __esm(() => {
62354
61745
  }
62355
61746
  _provider;
62356
61747
  get provider() {
62357
- return this._provider ??= new Provider2({ client: this.client });
61748
+ return this._provider ??= new Provider({ client: this.client });
62358
61749
  }
62359
61750
  _session;
62360
61751
  get session() {
62361
- return this._session ??= new Session22({ client: this.client });
61752
+ return this._session ??= new Session2({ client: this.client });
62362
61753
  }
62363
61754
  _part;
62364
61755
  get part() {
@@ -62370,7 +61761,7 @@ var init_sdk_gen2 = __esm(() => {
62370
61761
  }
62371
61762
  _tui;
62372
61763
  get tui() {
62373
- return this._tui ??= new Tui2({ client: this.client });
61764
+ return this._tui ??= new Tui({ client: this.client });
62374
61765
  }
62375
61766
  _v2;
62376
61767
  get v2() {
@@ -62901,6 +62292,7 @@ class OpencodeDriver {
62901
62292
  const subscriptionPromise = this.runEventLoop({
62902
62293
  handle: state.handle,
62903
62294
  controller,
62295
+ directory: state.configSnapshot.cwd,
62904
62296
  handlers: {
62905
62297
  onMessageBus: (method, properties) => eventMapper.handle(method, properties),
62906
62298
  onPermissionAsked: (properties) => {
@@ -62928,8 +62320,11 @@ class OpencodeDriver {
62928
62320
  signal: controller.signal
62929
62321
  });
62930
62322
  },
62931
- onSessionError: () => {
62932
- return;
62323
+ onSessionError: (properties) => {
62324
+ logger.error("opencode session.error on the event bus", {
62325
+ sessionId,
62326
+ properties: JSON.stringify(properties).slice(0, 400)
62327
+ });
62933
62328
  }
62934
62329
  }
62935
62330
  });
@@ -62984,17 +62379,27 @@ class OpencodeDriver {
62984
62379
  }
62985
62380
  async runEventLoop(args) {
62986
62381
  const eventApi = args.handle.sdk.event;
62987
- if (typeof eventApi.subscribe !== "function")
62382
+ if (typeof eventApi.subscribe !== "function") {
62383
+ logger.error("opencode sdk exposes no event.subscribe; no session events will be mapped");
62988
62384
  return;
62385
+ }
62989
62386
  let result;
62990
62387
  try {
62991
- result = await eventApi.subscribe({}, { signal: args.controller.signal });
62992
- } catch {
62388
+ result = await eventApi.subscribe({ directory: args.directory }, { signal: args.controller.signal });
62389
+ } catch (e) {
62390
+ logger.error("opencode event.subscribe rejected; the turn will emit no content", {
62391
+ error: e instanceof Error ? e.message : String(e),
62392
+ directory: args.directory
62393
+ });
62993
62394
  return;
62994
62395
  }
62995
62396
  const stream = result?.stream;
62996
- if (stream === undefined)
62397
+ if (stream === undefined) {
62398
+ logger.error("opencode event.subscribe returned no stream", {
62399
+ keys: Object.keys(result ?? {}).join(",")
62400
+ });
62997
62401
  return;
62402
+ }
62998
62403
  for await (const frame of stream) {
62999
62404
  if (args.controller.signal.aborted)
63000
62405
  break;
@@ -63211,9 +62616,10 @@ class OpencodeDriver {
63211
62616
  return event;
63212
62617
  }
63213
62618
  }
63214
- var FULL_CAPABILITIES2, DEFAULT_BRIDGE_FACTORY = () => new OpencodeHttpBridge;
62619
+ var FULL_CAPABILITIES2, DEFAULT_BRIDGE_FACTORY = () => new OpencodeHttpBridge, logger;
63215
62620
  var init_driver2 = __esm(() => {
63216
62621
  init_errors();
62622
+ init_logger();
63217
62623
  init_event_mapper();
63218
62624
  init_http_bridge();
63219
62625
  init_permission_bridge2();
@@ -63230,11 +62636,12 @@ var init_driver2 = __esm(() => {
63230
62636
  debug: true,
63231
62637
  askQuestion: true
63232
62638
  };
62639
+ logger = createLogger({ env: process.env });
63233
62640
  });
63234
62641
  // package.json
63235
62642
  var package_default = {
63236
62643
  name: "@kodizm/acp",
63237
- version: "0.6.0",
62644
+ version: "0.6.2",
63238
62645
  description: "Custom ACP server bridging Claude Code, codex, and opencode CLIs through a single Kodizm-flavored protocol surface.",
63239
62646
  type: "module",
63240
62647
  bin: {
@@ -63660,6 +63067,13 @@ async function runShutdown(options) {
63660
63067
  } catch (err) {
63661
63068
  errors3.push(toError(err));
63662
63069
  }
63070
+ if (options.disposeDriver !== undefined) {
63071
+ try {
63072
+ await options.disposeDriver();
63073
+ } catch (err) {
63074
+ errors3.push(toError(err));
63075
+ }
63076
+ }
63663
63077
  })();
63664
63078
  let timedOut = false;
63665
63079
  await Promise.race([
@@ -63756,6 +63170,7 @@ var KNOWN_BACKENDS = ["claude", "opencode"];
63756
63170
  var SHUTDOWN_GRACE_MS = 3000;
63757
63171
  var activeRecorders = new Set;
63758
63172
  var transportFlusher;
63173
+ var activeDriver;
63759
63174
  function registerActiveRecorder(recorder) {
63760
63175
  activeRecorders.add(recorder);
63761
63176
  return () => activeRecorders.delete(recorder);
@@ -63777,6 +63192,11 @@ async function performShutdown(graceMs = SHUTDOWN_GRACE_MS) {
63777
63192
  if (transportFlusher !== undefined) {
63778
63193
  await transportFlusher();
63779
63194
  }
63195
+ },
63196
+ disposeDriver: async () => {
63197
+ if (activeDriver?.disposeAll !== undefined) {
63198
+ await activeDriver.disposeAll();
63199
+ }
63780
63200
  }
63781
63201
  });
63782
63202
  }
@@ -63896,6 +63316,7 @@ async function main() {
63896
63316
  let driver;
63897
63317
  try {
63898
63318
  driver = await bootBackend(backend);
63319
+ activeDriver = driver;
63899
63320
  } catch (err) {
63900
63321
  const message = err instanceof Error ? err.message : String(err);
63901
63322
  process.stderr.write(`${JSON.stringify({
@@ -63921,13 +63342,13 @@ if (import.meta.main) {
63921
63342
  await main();
63922
63343
  }
63923
63344
  export {
63924
- resolveBackendFromEnv,
63925
- registerShutdownFlusher,
63926
- registerActiveRecorder,
63927
- performShutdown,
63928
- main,
63929
- installShutdownHook,
63930
- UnknownBackendError,
63345
+ BackendNotConfiguredError,
63931
63346
  SHUTDOWN_GRACE_MS,
63932
- BackendNotConfiguredError
63347
+ UnknownBackendError,
63348
+ installShutdownHook,
63349
+ main,
63350
+ performShutdown,
63351
+ registerActiveRecorder,
63352
+ registerShutdownFlusher,
63353
+ resolveBackendFromEnv
63933
63354
  };