@moxt-ai/mobius 0.0.69 → 0.0.71

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 (33) hide show
  1. package/dist/acp/session-history.d.ts +4 -2
  2. package/dist/acp/session-history.d.ts.map +1 -1
  3. package/dist/acp/session-history.js +121 -13
  4. package/dist/acp/session-history.js.map +1 -1
  5. package/dist/acp/session-manager.d.ts +57 -4
  6. package/dist/acp/session-manager.d.ts.map +1 -1
  7. package/dist/acp/session-manager.js +21 -5
  8. package/dist/acp/session-manager.js.map +1 -1
  9. package/dist/agent-catalog/agents/oh-my-pi-agent.d.ts +14 -0
  10. package/dist/agent-catalog/agents/oh-my-pi-agent.d.ts.map +1 -0
  11. package/dist/agent-catalog/agents/oh-my-pi-agent.js +32 -0
  12. package/dist/agent-catalog/agents/oh-my-pi-agent.js.map +1 -0
  13. package/dist/agent-catalog/agents/supported-agent-specifications.d.ts.map +1 -1
  14. package/dist/agent-catalog/agents/supported-agent-specifications.js +2 -0
  15. package/dist/agent-catalog/agents/supported-agent-specifications.js.map +1 -1
  16. package/dist/agent-catalog/discover-local-agents.d.ts +1 -0
  17. package/dist/agent-catalog/discover-local-agents.d.ts.map +1 -1
  18. package/dist/agent-catalog/discover-local-agents.js +1 -0
  19. package/dist/agent-catalog/discover-local-agents.js.map +1 -1
  20. package/dist/cli.js +735 -396
  21. package/dist/cli.js.map +4 -4
  22. package/dist/index.js +712 -373
  23. package/dist/index.js.map +4 -4
  24. package/dist/native-sessions/codex-history.d.ts +4 -2
  25. package/dist/native-sessions/codex-history.d.ts.map +1 -1
  26. package/dist/native-sessions/codex-history.js +159 -14
  27. package/dist/native-sessions/codex-history.js.map +1 -1
  28. package/dist/run-daemon.d.ts.map +1 -1
  29. package/dist/run-daemon.js +10 -2
  30. package/dist/run-daemon.js.map +1 -1
  31. package/dist/runtime.js +732 -393
  32. package/dist/runtime.js.map +4 -4
  33. package/package.json +3 -3
package/dist/runtime.js CHANGED
@@ -1693,6 +1693,47 @@ var HermesAgentSpecification = class extends DirectAcpAgentDefinition {
1693
1693
  };
1694
1694
  };
1695
1695
 
1696
+ // src/agent-catalog/agents/oh-my-pi-agent.ts
1697
+ import {
1698
+ methods as methods2
1699
+ } from "@agentclientprotocol/sdk";
1700
+ var ACP_PROBE_TIMEOUT_MILLISECONDS2 = 3e4;
1701
+ var OH_MY_PI_TESTED_VERSION = "18.2.7";
1702
+ var OhMyPiAgentSpecification = class extends DirectAcpAgentDefinition {
1703
+ acpProbeTimeoutMilliseconds = ACP_PROBE_TIMEOUT_MILLISECONDS2;
1704
+ adapterVersion = OH_MY_PI_TESTED_VERSION;
1705
+ authenticationCommand = () => "omp";
1706
+ agentExecutable = "omp";
1707
+ agentOverrideVariable = "MOBIUS_OH_MY_PI_PATH";
1708
+ id = "oh-my-pi";
1709
+ label = "Oh My Pi";
1710
+ constructor() {
1711
+ super("MOBIUS_OH_MY_PI_PATH", ["acp"], ["agents", "oh-my-pi", OH_MY_PI_TESTED_VERSION, "bin", "omp"]);
1712
+ }
1713
+ verifyAcp = async (connection, initialized, defaultWorkspace, signal) => {
1714
+ const capabilities = initialized.agentCapabilities ?? {};
1715
+ if (capabilities.loadSession !== true) {
1716
+ throw new AgentProbeError("acp_incompatible", "Oh My Pi does not support ACP session recovery");
1717
+ }
1718
+ const session = await connection.agent.request(
1719
+ methods2.agent.session.new,
1720
+ { additionalDirectories: [], cwd: defaultWorkspace, mcpServers: [] },
1721
+ { cancellationSignal: signal }
1722
+ );
1723
+ if (session.sessionId.length === 0) {
1724
+ throw new AgentProbeError("acp_incompatible", "Oh My Pi returned an invalid ACP session");
1725
+ }
1726
+ const prompt = await connection.agent.request(
1727
+ methods2.agent.session.prompt,
1728
+ { prompt: [{ text: "/session", type: "text" }], sessionId: session.sessionId },
1729
+ { cancellationSignal: signal }
1730
+ );
1731
+ if (prompt.stopReason !== "end_turn") {
1732
+ throw new AgentProbeError("acp_incompatible", "Oh My Pi did not complete its ACP conformance prompt");
1733
+ }
1734
+ };
1735
+ };
1736
+
1696
1737
  // src/agent-catalog/agents/opencode-agent.ts
1697
1738
  import { join as join9 } from "node:path";
1698
1739
 
@@ -2008,7 +2049,7 @@ var OpenCodeAgentSpecification = class extends DirectAcpAgentDefinition {
2008
2049
  // src/agent-catalog/agents/pi-agent.ts
2009
2050
  import { join as join10 } from "node:path";
2010
2051
  import {
2011
- methods as methods2
2052
+ methods as methods3
2012
2053
  } from "@agentclientprotocol/sdk";
2013
2054
 
2014
2055
  // src/agent-installation/pi-managed-packages.ts
@@ -2028,9 +2069,9 @@ var PI_AGENT_PACKAGE = new SriManagedNpmPackageDefinition(
2028
2069
  );
2029
2070
 
2030
2071
  // src/agent-catalog/agents/pi-agent.ts
2031
- var ACP_PROBE_TIMEOUT_MILLISECONDS2 = 3e4;
2072
+ var ACP_PROBE_TIMEOUT_MILLISECONDS3 = 3e4;
2032
2073
  var PiAgentSpecification = class extends BridgedAcpAgentDefinition {
2033
- acpProbeTimeoutMilliseconds = ACP_PROBE_TIMEOUT_MILLISECONDS2;
2074
+ acpProbeTimeoutMilliseconds = ACP_PROBE_TIMEOUT_MILLISECONDS3;
2034
2075
  adapterEnvironmentVariable = "PI_ACP_PI_COMMAND";
2035
2076
  adapterOverrideVariable = "MOBIUS_PI_ACP_PATH";
2036
2077
  adapterPackageDefinition = PI_ACP_PACKAGE;
@@ -2075,7 +2116,7 @@ var PiAgentSpecification = class extends BridgedAcpAgentDefinition {
2075
2116
  throw new AgentProbeError("acp_incompatible", "Pi ACP adapter does not support session recovery");
2076
2117
  }
2077
2118
  const session = await connection.agent.request(
2078
- methods2.agent.session.new,
2119
+ methods3.agent.session.new,
2079
2120
  {
2080
2121
  additionalDirectories: [],
2081
2122
  cwd: defaultWorkspace,
@@ -2087,7 +2128,7 @@ var PiAgentSpecification = class extends BridgedAcpAgentDefinition {
2087
2128
  throw new AgentProbeError("acp_incompatible", "Pi ACP adapter returned an invalid session");
2088
2129
  }
2089
2130
  const prompt = await connection.agent.request(
2090
- methods2.agent.session.prompt,
2131
+ methods3.agent.session.prompt,
2091
2132
  {
2092
2133
  prompt: [{ text: "/session", type: "text" }],
2093
2134
  sessionId: session.sessionId
@@ -2199,6 +2240,7 @@ function supportedLocalAgentSpecifications() {
2199
2240
  new DeepSeekHarnessAgentSpecification(),
2200
2241
  new HermesAgentSpecification(),
2201
2242
  new OpenCodeAgentSpecification(),
2243
+ new OhMyPiAgentSpecification(),
2202
2244
  new CursorCliAgentSpecification(),
2203
2245
  new GrokBuildAgentSpecification(),
2204
2246
  new WorkBuddyAgentSpecification(),
@@ -2209,7 +2251,7 @@ function supportedLocalAgentSpecifications() {
2209
2251
  // src/agent-catalog/acp-readiness-probe.ts
2210
2252
  import { spawn as spawn2 } from "node:child_process";
2211
2253
  import {
2212
- methods as methods4,
2254
+ methods as methods5,
2213
2255
  ndJsonStream,
2214
2256
  PROTOCOL_VERSION,
2215
2257
  RequestError as RequestError2
@@ -2218,20 +2260,20 @@ import {
2218
2260
  // src/acp/create-client.ts
2219
2261
  import {
2220
2262
  client,
2221
- methods as methods3
2263
+ methods as methods4
2222
2264
  } from "@agentclientprotocol/sdk";
2223
2265
  function discardExtensionParams(_params) {
2224
2266
  return Object.freeze({});
2225
2267
  }
2226
2268
  var createAcpClient = (handler) => client({ name: "mobius" }).onRequest(
2227
- methods3.client.session.requestPermission,
2269
+ methods4.client.session.requestPermission,
2228
2270
  async (context) => await handler.onPermission(context.params, context.signal)
2229
2271
  ).onRequest(
2230
- methods3.client.elicitation.create,
2272
+ methods4.client.elicitation.create,
2231
2273
  async (context) => await handler.onElicitation(context.params, context.signal)
2232
- ).onNotification(methods3.client.session.update, async (context) => {
2274
+ ).onNotification(methods4.client.session.update, async (context) => {
2233
2275
  await handler.onUpdate(context.params);
2234
- }).onNotification(methods3.client.elicitation.complete, async (context) => {
2276
+ }).onNotification(methods4.client.elicitation.complete, async (context) => {
2235
2277
  await handler.onElicitationComplete(context.params);
2236
2278
  }).onRequest("cursor/ask_question", discardExtensionParams, async () => ({
2237
2279
  outcome: {
@@ -2362,7 +2404,7 @@ async function probeAcpReadiness(specification, agent, environment, defaultWorks
2362
2404
  try {
2363
2405
  const initialized = await Promise.race([
2364
2406
  connection.agent.request(
2365
- methods4.agent.initialize,
2407
+ methods5.agent.initialize,
2366
2408
  {
2367
2409
  clientCapabilities: {},
2368
2410
  clientInfo: { name: "mobius", version: "0.0.3" },
@@ -2843,7 +2885,7 @@ var AuditStore = class {
2843
2885
  // src/config.ts
2844
2886
  import { join as join14, resolve as resolve3 } from "node:path";
2845
2887
 
2846
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/classic/external.js
2888
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/external.js
2847
2889
  var external_exports = {};
2848
2890
  __export(external_exports, {
2849
2891
  $brand: () => $brand,
@@ -2913,7 +2955,6 @@ __export(external_exports, {
2913
2955
  ZodPrefault: () => ZodPrefault,
2914
2956
  ZodPreprocess: () => ZodPreprocess,
2915
2957
  ZodPromise: () => ZodPromise,
2916
- ZodProperties: () => ZodProperties,
2917
2958
  ZodReadonly: () => ZodReadonly,
2918
2959
  ZodRealError: () => ZodRealError,
2919
2960
  ZodRecord: () => ZodRecord,
@@ -2957,6 +2998,7 @@ __export(external_exports, {
2957
2998
  creditCard: () => creditCard2,
2958
2999
  cuid: () => cuid3,
2959
3000
  cuid2: () => cuid22,
3001
+ currencyCode: () => currencyCode2,
2960
3002
  custom: () => custom,
2961
3003
  date: () => date2,
2962
3004
  decode: () => decode2,
@@ -3050,7 +3092,7 @@ __export(external_exports, {
3050
3092
  preprocess: () => preprocess,
3051
3093
  prettifyError: () => prettifyError,
3052
3094
  promise: () => promise,
3053
- properties: () => properties,
3095
+ properties: () => _properties,
3054
3096
  property: () => _property,
3055
3097
  readonly: () => readonly,
3056
3098
  record: () => record,
@@ -3106,7 +3148,7 @@ __export(external_exports, {
3106
3148
  xor: () => xor
3107
3149
  });
3108
3150
 
3109
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/core/index.js
3151
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/index.js
3110
3152
  var core_exports2 = {};
3111
3153
  __export(core_exports2, {
3112
3154
  $ZodAny: () => $ZodAny,
@@ -3138,6 +3180,7 @@ __export(core_exports2, {
3138
3180
  $ZodCheckMultipleOf: () => $ZodCheckMultipleOf,
3139
3181
  $ZodCheckNumberFormat: () => $ZodCheckNumberFormat,
3140
3182
  $ZodCheckOverwrite: () => $ZodCheckOverwrite,
3183
+ $ZodCheckProperties: () => $ZodCheckProperties,
3141
3184
  $ZodCheckProperty: () => $ZodCheckProperty,
3142
3185
  $ZodCheckRegex: () => $ZodCheckRegex,
3143
3186
  $ZodCheckSizeEquals: () => $ZodCheckSizeEquals,
@@ -3191,7 +3234,6 @@ __export(core_exports2, {
3191
3234
  $ZodPrefault: () => $ZodPrefault,
3192
3235
  $ZodPreprocess: () => $ZodPreprocess,
3193
3236
  $ZodPromise: () => $ZodPromise,
3194
- $ZodProperties: () => $ZodProperties,
3195
3237
  $ZodReadonly: () => $ZodReadonly,
3196
3238
  $ZodRealError: () => $ZodRealError,
3197
3239
  $ZodRecord: () => $ZodRecord,
@@ -3359,6 +3401,7 @@ __export(core_exports2, {
3359
3401
  _xor: () => _xor,
3360
3402
  base64Charset: () => base64Charset,
3361
3403
  base64urlCharset: () => base64urlCharset,
3404
+ canParseURL: () => canParseURL,
3362
3405
  clone: () => clone,
3363
3406
  compile: () => compile,
3364
3407
  compileFn: () => compileFn,
@@ -3381,7 +3424,6 @@ __export(core_exports2, {
3381
3424
  initializeContext: () => initializeContext,
3382
3425
  isBackEdge: () => isBackEdge,
3383
3426
  isRecursiveSchema: () => isRecursiveSchema,
3384
- isTransforming: () => isTransforming,
3385
3427
  isValidBase64: () => isValidBase64,
3386
3428
  isValidBase64URL: () => isValidBase64URL,
3387
3429
  isValidCIDRv6: () => isValidCIDRv6,
@@ -3418,11 +3460,12 @@ __export(core_exports2, {
3418
3460
  util: () => util_exports,
3419
3461
  validate: () => validate,
3420
3462
  validateAsync: () => validateAsync,
3463
+ validateURL: () => validateURL,
3421
3464
  version: () => version,
3422
3465
  withParser: () => withParser
3423
3466
  });
3424
3467
 
3425
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/core/util.js
3468
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/util.js
3426
3469
  var util_exports = {};
3427
3470
  __export(util_exports, {
3428
3471
  BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES,
@@ -4159,9 +4202,6 @@ function members(proto, table) {
4159
4202
  else
4160
4203
  defineBound(proto, key, desc.value);
4161
4204
  }
4162
- for (const sym of Object.getOwnPropertySymbols(table)) {
4163
- defineBound(proto, sym, table[sym]);
4164
- }
4165
4205
  }
4166
4206
  function own(inst, key, value, enumerable = true) {
4167
4207
  Object.defineProperty(inst, key, { configurable: true, writable: true, enumerable, value });
@@ -4268,7 +4308,7 @@ function constantCatch(value) {
4268
4308
  return fn;
4269
4309
  }
4270
4310
 
4271
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/core/core.js
4311
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/core.js
4272
4312
  var _a;
4273
4313
  var NEVER = /* @__PURE__ */ Object.freeze({
4274
4314
  status: "aborted"
@@ -4314,8 +4354,7 @@ function $constructor(name, initializer3, proto, params) {
4314
4354
  } finally {
4315
4355
  _zodDesc.value = void 0;
4316
4356
  }
4317
- }
4318
- if (inst._zod.traits.has(name)) {
4357
+ } else if (inst._zod.traits.has(name)) {
4319
4358
  return;
4320
4359
  }
4321
4360
  inst._zod.traits.add(name);
@@ -4391,7 +4430,7 @@ function config(newConfig) {
4391
4430
  return globalConfig;
4392
4431
  }
4393
4432
 
4394
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/core/errors.js
4433
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/errors.js
4395
4434
  function _getMessage() {
4396
4435
  const internals = this._zod;
4397
4436
  internals.message ?? (internals.message = JSON.stringify(internals.def, jsonStringifyReplacer, 2));
@@ -4583,7 +4622,7 @@ function prettifyError(error62) {
4583
4622
  return lines.join("\n");
4584
4623
  }
4585
4624
 
4586
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/core/parse.js
4625
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/parse.js
4587
4626
  function finalizeParams(callee, params) {
4588
4627
  return { callee: params?.callee ?? callee, Err: params?.Err };
4589
4628
  }
@@ -4743,7 +4782,7 @@ var _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
4743
4782
  };
4744
4783
  var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync($ZodRealError);
4745
4784
 
4746
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/core/regexes.js
4785
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/regexes.js
4747
4786
  var regexes_exports = {};
4748
4787
  __export(regexes_exports, {
4749
4788
  anyString: () => anyString,
@@ -4757,6 +4796,7 @@ __export(regexes_exports, {
4757
4796
  creditCard: () => creditCard,
4758
4797
  cuid: () => cuid,
4759
4798
  cuid2: () => cuid2,
4799
+ currencyCode: () => currencyCode,
4760
4800
  date: () => date,
4761
4801
  datetime: () => datetime,
4762
4802
  domain: () => domain,
@@ -4855,6 +4895,7 @@ var domain = /^(?=.{1,253}$)([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a
4855
4895
  var httpProtocol = /^https?$/;
4856
4896
  var e164 = /^\+[1-9]\d{6,14}$/;
4857
4897
  var creditCard = /^\d(?:[ -]?\d){11,18}$/;
4898
+ var currencyCode = /^(?:AED|AFN|ALL|AMD|AOA|ARS|AUD|AWG|AZN|BAM|BBD|BDT|BHD|BIF|BMD|BND|BOB|BOV|BRL|BSD|BTN|BWP|BYN|BZD|CAD|CDF|CHE|CHF|CHW|CLF|CLP|CNY|COP|COU|CRC|CUP|CVE|CZK|DJF|DKK|DOP|DZD|EGP|ERN|ETB|EUR|FJD|FKP|GBP|GEL|GHS|GIP|GMD|GNF|GTQ|GYD|HKD|HNL|HTG|HUF|IDR|ILS|INR|IQD|IRR|ISK|JMD|JOD|JPY|KES|KGS|KHR|KMF|KPW|KRW|KWD|KYD|KZT|LAK|LBP|LKR|LRD|LSL|LYD|MAD|MDL|MGA|MKD|MMK|MNT|MOP|MRU|MUR|MVR|MWK|MXN|MXV|MYR|MZN|NAD|NGN|NIO|NOK|NPR|NZD|OMR|PAB|PEN|PGK|PHP|PKR|PLN|PYG|QAR|RON|RSD|RUB|RWF|SAR|SBD|SCR|SDG|SEK|SGD|SHP|SLE|SOS|SRD|SSP|STN|SVC|SYP|SZL|THB|TJS|TMT|TND|TOP|TRY|TTD|TWD|TZS|UAH|UGX|USD|USN|UYI|UYU|UYW|UZS|VED|VES|VND|VUV|WST|XAD|XAF|XAG|XAU|XBA|XBB|XBC|XBD|XCD|XCG|XDR|XOF|XPD|XPF|XPT|XSU|XTS|XUA|XXX|YER|ZAR|ZMW|ZWG)$/;
4858
4899
  var iban = /^[A-Z]{2}(?!00|01|99)\d{2}[A-Z0-9]{11,30}$/;
4859
4900
  var dateSource = `(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`;
4860
4901
  function anchor(source) {
@@ -4913,7 +4954,7 @@ var sha512_hex = /^[0-9a-fA-F]{128}$/;
4913
4954
  var sha512_base64 = /* @__PURE__ */ fixedBase64(86, "==");
4914
4955
  var sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
4915
4956
 
4916
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/core/checks.js
4957
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/checks.js
4917
4958
  var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
4918
4959
  var _a3;
4919
4960
  inst._zod ?? (inst._zod = {});
@@ -5339,6 +5380,34 @@ var $ZodCheckProperty = /* @__PURE__ */ $constructor("$ZodCheckProperty", (inst,
5339
5380
  return;
5340
5381
  };
5341
5382
  });
5383
+ var $ZodCheckProperties = /* @__PURE__ */ $constructor("$ZodCheckProperties", (inst, def) => {
5384
+ $ZodCheck.init(inst, def);
5385
+ hide(inst, Symbol.iterator, function* () {
5386
+ yield inst;
5387
+ });
5388
+ let entries;
5389
+ inst._zod.check = (payload) => {
5390
+ if (payload.value == null) {
5391
+ payload.issues.push({ expected: "object", code: "invalid_type", input: payload.value, inst });
5392
+ return void 0;
5393
+ }
5394
+ entries ?? (entries = Reflect.ownKeys(def.shape).map((key) => [key, def.shape[key]]));
5395
+ const input2 = payload.value;
5396
+ let proms;
5397
+ for (const [key, schema] of entries) {
5398
+ const result = schema._zod.run({ value: input2[key], issues: [] }, {});
5399
+ if (result instanceof Promise) {
5400
+ proms ?? (proms = []);
5401
+ proms.push(result.then((result2) => handleCheckPropertyResult(result2, payload, key)));
5402
+ } else {
5403
+ handleCheckPropertyResult(result, payload, key);
5404
+ }
5405
+ }
5406
+ if (proms)
5407
+ return Promise.all(proms).then(() => void 0);
5408
+ return void 0;
5409
+ };
5410
+ });
5342
5411
  var $ZodCheckMimeType = /* @__PURE__ */ $constructor("$ZodCheckMimeType", (inst, def) => {
5343
5412
  $ZodCheck.init(inst, def);
5344
5413
  const mimeSet = new Set(def.mime);
@@ -5361,7 +5430,7 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
5361
5430
  };
5362
5431
  });
5363
5432
 
5364
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/core/doc.js
5433
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/doc.js
5365
5434
  var Doc = class {
5366
5435
  constructor(args = [], closed = {}) {
5367
5436
  this.content = [];
@@ -5402,14 +5471,14 @@ ${content3.join("\n")}
5402
5471
  }
5403
5472
  };
5404
5473
 
5405
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/core/versions.js
5474
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/versions.js
5406
5475
  var version = {
5407
5476
  major: 4,
5408
5477
  minor: 6,
5409
- patch: 2
5478
+ patch: 5
5410
5479
  };
5411
5480
 
5412
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/core/schemas.js
5481
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/schemas.js
5413
5482
  var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
5414
5483
  var _a3;
5415
5484
  inst ?? (inst = {});
@@ -5594,11 +5663,32 @@ var $ZodEmail = /* @__PURE__ */ $constructor("$ZodEmail", (inst, def) => {
5594
5663
  });
5595
5664
  var URL_BAD_FORMAT = 1;
5596
5665
  var URL_UNPARSEABLE = 2;
5666
+ function canParseURL(input2) {
5667
+ try {
5668
+ if (typeof URL !== "undefined" && typeof URL.canParse === "function")
5669
+ return URL.canParse(input2);
5670
+ new URL(input2);
5671
+ return true;
5672
+ } catch {
5673
+ return false;
5674
+ }
5675
+ }
5676
+ function validateURL(trimmed, def) {
5677
+ if (!("normalize" in def) && !("hostname" in def) && !("protocol" in def)) {
5678
+ return canParseURL(trimmed) || URL_UNPARSEABLE;
5679
+ }
5680
+ return parseURLObject(trimmed, def);
5681
+ }
5597
5682
  function parseURLObject(trimmed, def) {
5598
5683
  if (!def.normalize && def.protocol?.source === httpProtocol.source && !/^https?:\/\//i.test(trimmed)) {
5599
5684
  return URL_BAD_FORMAT;
5600
5685
  }
5601
5686
  try {
5687
+ if (typeof URL !== "undefined") {
5688
+ const URLStatic = URL;
5689
+ if (typeof URLStatic.parse === "function")
5690
+ return URLStatic.parse(trimmed) ?? URL_UNPARSEABLE;
5691
+ }
5602
5692
  return new URL(trimmed);
5603
5693
  } catch {
5604
5694
  return URL_UNPARSEABLE;
@@ -5621,7 +5711,7 @@ var $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
5621
5711
  inst._zod.check = (payload) => {
5622
5712
  try {
5623
5713
  const trimmed = payload.value.trim();
5624
- const url2 = parseURLObject(trimmed, def);
5714
+ const url2 = validateURL(trimmed, def);
5625
5715
  if (url2 === URL_BAD_FORMAT) {
5626
5716
  payload.issues.push({
5627
5717
  code: "invalid_format",
@@ -5643,6 +5733,10 @@ var $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
5643
5733
  });
5644
5734
  return;
5645
5735
  }
5736
+ if (url2 === true) {
5737
+ payload.value = stripTabAndNewline(trimmed);
5738
+ return;
5739
+ }
5646
5740
  if (def.hostname && !urlHostnameOk(url2, def.hostname)) {
5647
5741
  payload.issues.push({
5648
5742
  code: "invalid_format",
@@ -5732,12 +5826,7 @@ var ipv6Alphabet = /^[0-9a-fA-F:.]+$/;
5732
5826
  function isValidIPv6(value) {
5733
5827
  if (!ipv6Alphabet.test(value))
5734
5828
  return false;
5735
- try {
5736
- new URL(`http://[${value}]`);
5737
- return true;
5738
- } catch {
5739
- return false;
5740
- }
5829
+ return canParseURL(`http://[${value}]`);
5741
5830
  }
5742
5831
  var $ZodIPv6 = /* @__PURE__ */ $constructor("$ZodIPv6", (inst, def) => {
5743
5832
  def.pattern ?? (def.pattern = ipv6);
@@ -7802,61 +7891,8 @@ function handleRefineResult(result, payload, input2, inst) {
7802
7891
  payload.issues.push(issue(_iss));
7803
7892
  }
7804
7893
  }
7805
- function handlePropertiesResult(result, payload, key) {
7806
- if (result.issues.length) {
7807
- payload.issues.push(...prefixIssues(key, result.issues));
7808
- }
7809
- }
7810
- var $ZodProperties = /* @__PURE__ */ $constructor("$ZodProperties", (inst, def) => {
7811
- $ZodType.init(inst, def);
7812
- $ZodCheck.init(inst, def);
7813
- const memo2 = globalConfig.memoizer;
7814
- memo2?.attach(inst);
7815
- let entries;
7816
- const runShape = (payload, ctx) => {
7817
- entries ?? (entries = Reflect.ownKeys(def.shape).map((key) => [key, def.shape[key]]));
7818
- const input2 = payload.value;
7819
- let proms;
7820
- for (const [key, schema] of entries) {
7821
- const result = schema._zod.run({ value: input2[key], issues: [] }, ctx);
7822
- if (result instanceof Promise) {
7823
- proms ?? (proms = []);
7824
- proms.push(result.then((result2) => handlePropertiesResult(result2, payload, key)));
7825
- } else {
7826
- handlePropertiesResult(result, payload, key);
7827
- }
7828
- }
7829
- if (proms)
7830
- return Promise.all(proms).then(() => void 0);
7831
- return void 0;
7832
- };
7833
- inst._zod.parse = (payload, ctx) => {
7834
- const input2 = payload.value;
7835
- if (input2 === null || typeof input2 !== "object" && typeof input2 !== "function") {
7836
- payload.issues.push({ expected: "object", code: "invalid_type", input: input2, inst });
7837
- return payload;
7838
- }
7839
- if (ctx.direction === "backward")
7840
- ctx = { ...ctx, direction: "forward" };
7841
- if (memo2)
7842
- memo2.alloc(inst, payload, input2, ctx);
7843
- const result = runShape(payload, ctx);
7844
- return result instanceof Promise ? result.then(() => payload) : payload;
7845
- };
7846
- inst._zod.check = (payload) => {
7847
- if (payload.value == null) {
7848
- payload.issues.push({ expected: "object", code: "invalid_type", input: payload.value, inst });
7849
- return void 0;
7850
- }
7851
- return runShape(payload, {});
7852
- };
7853
- }, {
7854
- *[Symbol.iterator]() {
7855
- yield this;
7856
- }
7857
- });
7858
7894
 
7859
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/core/memoizer.js
7895
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/memoizer.js
7860
7896
  var $ZodCyclicError = class extends Error {
7861
7897
  constructor() {
7862
7898
  super(`Cannot parse a reference cycle that closes through a transform`);
@@ -7866,7 +7902,7 @@ var $ZodCyclicError = class extends Error {
7866
7902
  var STATE = "~memo";
7867
7903
  var NO_ISSUES = [];
7868
7904
  function isRef(value) {
7869
- return value !== null && (typeof value === "object" || typeof value === "function");
7905
+ return value !== null && typeof value === "object";
7870
7906
  }
7871
7907
  function cloneIssues(issues) {
7872
7908
  return issues.map((iss) => iss.path ? { ...iss, path: iss.path.slice() } : { ...iss });
@@ -7915,9 +7951,6 @@ function isRecursive(inst, stack, resolve8) {
7915
7951
  check2(def.catchall);
7916
7952
  break;
7917
7953
  }
7918
- case "properties":
7919
- merge2(shape(def.shape, false));
7920
- break;
7921
7954
  case "array":
7922
7955
  check2(def.element);
7923
7956
  break;
@@ -8136,7 +8169,7 @@ function isBackEdge(ctx, value) {
8136
8169
  return backEdges !== void 0 && isRef(value) && backEdges.has(value);
8137
8170
  }
8138
8171
 
8139
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/index.js
8172
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/index.js
8140
8173
  var locales_exports = {};
8141
8174
  __export(locales_exports, {
8142
8175
  ar: () => ar_default,
@@ -8204,7 +8237,7 @@ __export(locales_exports, {
8204
8237
  zhTW: () => zh_TW_default
8205
8238
  });
8206
8239
 
8207
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/ar.js
8240
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ar.js
8208
8241
  var error = () => {
8209
8242
  const Sizable = {
8210
8243
  string: { unit: "\u062D\u0631\u0641", verb: "\u0623\u0646 \u064A\u062D\u0648\u064A" },
@@ -8245,6 +8278,7 @@ var error = () => {
8245
8278
  json_string: "\u0646\u064E\u0635 \u0639\u0644\u0649 \u0647\u064A\u0626\u0629 JSON",
8246
8279
  e164: "\u0631\u0642\u0645 \u0647\u0627\u062A\u0641 \u0628\u0645\u0639\u064A\u0627\u0631 E.164",
8247
8280
  credit_card: "\u0631\u0642\u0645 \u0628\u0637\u0627\u0642\u0629 \u0627\u0644\u0627\u0626\u062A\u0645\u0627\u0646",
8281
+ currency_code: "\u0631\u0645\u0632 \u0627\u0644\u0639\u0645\u0644\u0629",
8248
8282
  iban: "IBAN",
8249
8283
  jwt: "JWT",
8250
8284
  template_literal: "\u0645\u062F\u062E\u0644"
@@ -8315,7 +8349,7 @@ function ar_default() {
8315
8349
  };
8316
8350
  }
8317
8351
 
8318
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/az.js
8352
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/az.js
8319
8353
  var error2 = () => {
8320
8354
  const Sizable = {
8321
8355
  string: { unit: "simvol", verb: "olmal\u0131d\u0131r" },
@@ -8356,6 +8390,7 @@ var error2 = () => {
8356
8390
  json_string: "JSON string",
8357
8391
  e164: "E.164 number",
8358
8392
  credit_card: "kredit kart\u0131 n\xF6mr\u0259si",
8393
+ currency_code: "valyuta kodu",
8359
8394
  iban: "IBAN",
8360
8395
  jwt: "JWT",
8361
8396
  template_literal: "input"
@@ -8425,7 +8460,7 @@ function az_default() {
8425
8460
  };
8426
8461
  }
8427
8462
 
8428
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/be.js
8463
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/be.js
8429
8464
  function getBelarusianPlural(count, one2, few, many) {
8430
8465
  const absCount = Math.abs(count);
8431
8466
  const lastDigit = absCount % 10;
@@ -8516,6 +8551,7 @@ var error3 = () => {
8516
8551
  json_string: "JSON \u0440\u0430\u0434\u043E\u043A",
8517
8552
  e164: "\u043D\u0443\u043C\u0430\u0440 E.164",
8518
8553
  credit_card: "\u043D\u0443\u043C\u0430\u0440 \u043A\u0440\u044D\u0434\u044B\u0442\u043D\u0430\u0439 \u043A\u0430\u0440\u0442\u044B",
8554
+ currency_code: "\u043A\u043E\u0434 \u0432\u0430\u043B\u044E\u0442\u044B",
8519
8555
  iban: "IBAN",
8520
8556
  jwt: "JWT",
8521
8557
  template_literal: "\u0443\u0432\u043E\u0434"
@@ -8593,7 +8629,7 @@ function be_default() {
8593
8629
  };
8594
8630
  }
8595
8631
 
8596
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/bg.js
8632
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/bg.js
8597
8633
  var error4 = () => {
8598
8634
  const Sizable = {
8599
8635
  string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0430", verb: "\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430" },
@@ -8634,6 +8670,7 @@ var error4 = () => {
8634
8670
  json_string: "JSON \u043D\u0438\u0437",
8635
8671
  e164: "E.164 \u043D\u043E\u043C\u0435\u0440",
8636
8672
  credit_card: "\u043D\u043E\u043C\u0435\u0440 \u043D\u0430 \u043A\u0440\u0435\u0434\u0438\u0442\u043D\u0430 \u043A\u0430\u0440\u0442\u0430",
8673
+ currency_code: "\u043A\u043E\u0434 \u043D\u0430 \u0432\u0430\u043B\u0443\u0442\u0430",
8637
8674
  iban: "IBAN",
8638
8675
  jwt: "JWT",
8639
8676
  template_literal: "\u0432\u0445\u043E\u0434"
@@ -8718,7 +8755,7 @@ function bg_default() {
8718
8755
  };
8719
8756
  }
8720
8757
 
8721
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/bn.js
8758
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/bn.js
8722
8759
  var error5 = () => {
8723
8760
  const Sizable = {
8724
8761
  string: { unit: "\u0985\u0995\u09CD\u09B7\u09B0", verb: "\u09A5\u09BE\u0995\u09A4\u09C7 \u09B9\u09AC\u09C7" },
@@ -8759,6 +8796,7 @@ var error5 = () => {
8759
8796
  json_string: "JSON \u09B8\u09CD\u099F\u09CD\u09B0\u09BF\u0982",
8760
8797
  e164: "E.164 \u09A8\u09AE\u09CD\u09AC\u09B0",
8761
8798
  credit_card: "\u0995\u09CD\u09B0\u09C7\u09A1\u09BF\u099F \u0995\u09BE\u09B0\u09CD\u09A1 \u09A8\u09AE\u09CD\u09AC\u09B0",
8799
+ currency_code: "\u09AE\u09C1\u09A6\u09CD\u09B0\u09BE \u0995\u09CB\u09A1",
8762
8800
  iban: "IBAN",
8763
8801
  jwt: "JWT",
8764
8802
  template_literal: "\u0987\u09A8\u09AA\u09C1\u099F"
@@ -8831,7 +8869,7 @@ function bn_default() {
8831
8869
  };
8832
8870
  }
8833
8871
 
8834
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/ca.js
8872
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ca.js
8835
8873
  var error6 = () => {
8836
8874
  const Sizable = {
8837
8875
  string: { unit: "car\xE0cters", verb: "contenir" },
@@ -8872,6 +8910,7 @@ var error6 = () => {
8872
8910
  json_string: "cadena JSON",
8873
8911
  e164: "n\xFAmero E.164",
8874
8912
  credit_card: "n\xFAmero de targeta de cr\xE8dit",
8913
+ currency_code: "codi de moneda",
8875
8914
  iban: "IBAN",
8876
8915
  jwt: "JWT",
8877
8916
  template_literal: "entrada"
@@ -8944,7 +8983,7 @@ function ca_default() {
8944
8983
  };
8945
8984
  }
8946
8985
 
8947
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/ckb.js
8986
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ckb.js
8948
8987
  var error7 = () => {
8949
8988
  const Sizable = {
8950
8989
  string: { unit: "\u067E\u06CC\u062A", verb: "\u0628\u06CE\u062A" },
@@ -8985,6 +9024,7 @@ var error7 = () => {
8985
9024
  json_string: "\u062F\u06D5\u0642\u06CC JSON",
8986
9025
  e164: "\u0698\u0645\u0627\u0631\u06D5\u06CC E.164",
8987
9026
  credit_card: "\u0698\u0645\u0627\u0631\u06D5\u06CC \u06A9\u0627\u0631\u062A\u06CC \u06A9\u0631\u06CE\u062F\u06CC\u062A",
9027
+ currency_code: "\u06A9\u06C6\u062F\u06CC \u062F\u0631\u0627\u0648",
8988
9028
  iban: "IBAN",
8989
9029
  jwt: "JWT",
8990
9030
  template_literal: "\u062A\u06CE\u06A9\u0631\u062F\u06D5"
@@ -9076,7 +9116,7 @@ function ckb_default() {
9076
9116
  };
9077
9117
  }
9078
9118
 
9079
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/cs.js
9119
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/cs.js
9080
9120
  var error8 = () => {
9081
9121
  const Sizable = {
9082
9122
  string: { unit: "znak\u016F", verb: "m\xEDt" },
@@ -9117,6 +9157,7 @@ var error8 = () => {
9117
9157
  json_string: "\u0159et\u011Bzec ve form\xE1tu JSON",
9118
9158
  e164: "\u010D\xEDslo E.164",
9119
9159
  credit_card: "\u010D\xEDslo kreditn\xED karty",
9160
+ currency_code: "k\xF3d m\u011Bny",
9120
9161
  iban: "IBAN",
9121
9162
  jwt: "JWT",
9122
9163
  template_literal: "vstup"
@@ -9192,7 +9233,7 @@ function cs_default() {
9192
9233
  };
9193
9234
  }
9194
9235
 
9195
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/da.js
9236
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/da.js
9196
9237
  var error9 = () => {
9197
9238
  const Sizable = {
9198
9239
  string: { unit: "tegn", verb: "havde" },
@@ -9233,6 +9274,7 @@ var error9 = () => {
9233
9274
  json_string: "JSON-streng",
9234
9275
  e164: "E.164-nummer",
9235
9276
  credit_card: "kreditkortnummer",
9277
+ currency_code: "valutakode",
9236
9278
  iban: "IBAN",
9237
9279
  jwt: "JWT",
9238
9280
  template_literal: "input"
@@ -9312,7 +9354,7 @@ function da_default() {
9312
9354
  };
9313
9355
  }
9314
9356
 
9315
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/de.js
9357
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/de.js
9316
9358
  var error10 = () => {
9317
9359
  const Sizable = {
9318
9360
  string: { unit: "Zeichen", verb: "zu haben" },
@@ -9353,6 +9395,7 @@ var error10 = () => {
9353
9395
  json_string: "JSON-String",
9354
9396
  e164: "E.164-Nummer",
9355
9397
  credit_card: "Kreditkartennummer",
9398
+ currency_code: "W\xE4hrungscode",
9356
9399
  iban: "IBAN",
9357
9400
  jwt: "JWT",
9358
9401
  template_literal: "Eingabe"
@@ -9425,7 +9468,7 @@ function de_default() {
9425
9468
  };
9426
9469
  }
9427
9470
 
9428
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/el.js
9471
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/el.js
9429
9472
  var error11 = () => {
9430
9473
  const Sizable = {
9431
9474
  string: { unit: "\u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
@@ -9466,6 +9509,7 @@ var error11 = () => {
9466
9509
  json_string: "\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC JSON",
9467
9510
  e164: "\u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 E.164",
9468
9511
  credit_card: "\u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 \u03C0\u03B9\u03C3\u03C4\u03C9\u03C4\u03B9\u03BA\u03AE\u03C2 \u03BA\u03AC\u03C1\u03C4\u03B1\u03C2",
9512
+ currency_code: "\u03BA\u03C9\u03B4\u03B9\u03BA\u03CC\u03C2 \u03BD\u03BF\u03BC\u03AF\u03C3\u03BC\u03B1\u03C4\u03BF\u03C2",
9469
9513
  iban: "IBAN",
9470
9514
  jwt: "JWT",
9471
9515
  template_literal: "\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"
@@ -9537,7 +9581,7 @@ function el_default() {
9537
9581
  };
9538
9582
  }
9539
9583
 
9540
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/en.js
9584
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/en.js
9541
9585
  var error12 = () => {
9542
9586
  const Sizable = {
9543
9587
  string: { unit: "characters", verb: "to have" },
@@ -9577,6 +9621,7 @@ var error12 = () => {
9577
9621
  base64url: "base64url-encoded string",
9578
9622
  json_string: "JSON string",
9579
9623
  e164: "E.164 number",
9624
+ currency_code: "currency code",
9580
9625
  credit_card: "credit card number",
9581
9626
  iban: "IBAN",
9582
9627
  jwt: "JWT",
@@ -9661,7 +9706,7 @@ function en_default() {
9661
9706
  };
9662
9707
  }
9663
9708
 
9664
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/eo.js
9709
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/eo.js
9665
9710
  var error13 = () => {
9666
9711
  const Sizable = {
9667
9712
  string: { unit: "karaktrojn", verb: "havi" },
@@ -9702,6 +9747,7 @@ var error13 = () => {
9702
9747
  json_string: "JSON-karaktraro",
9703
9748
  e164: "E.164-nombro",
9704
9749
  credit_card: "kreditkarta numero",
9750
+ currency_code: "valuta kodo",
9705
9751
  iban: "IBAN",
9706
9752
  jwt: "JWT",
9707
9753
  template_literal: "enigo"
@@ -9775,7 +9821,7 @@ function eo_default() {
9775
9821
  };
9776
9822
  }
9777
9823
 
9778
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/es.js
9824
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/es.js
9779
9825
  var error14 = () => {
9780
9826
  const Sizable = {
9781
9827
  string: { unit: "caracteres", verb: "tener" },
@@ -9815,6 +9861,7 @@ var error14 = () => {
9815
9861
  json_string: "cadena JSON",
9816
9862
  e164: "n\xFAmero E.164",
9817
9863
  credit_card: "n\xFAmero de tarjeta de cr\xE9dito",
9864
+ currency_code: "c\xF3digo de moneda",
9818
9865
  iban: "IBAN",
9819
9866
  jwt: "JWT",
9820
9867
  template_literal: "entrada"
@@ -9911,7 +9958,7 @@ function es_default() {
9911
9958
  };
9912
9959
  }
9913
9960
 
9914
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/fa.js
9961
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/fa.js
9915
9962
  var error15 = () => {
9916
9963
  const Sizable = {
9917
9964
  string: { unit: "\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
@@ -9952,6 +9999,7 @@ var error15 = () => {
9952
9999
  json_string: "JSON \u0631\u0634\u062A\u0647",
9953
10000
  e164: "E.164 \u0639\u062F\u062F",
9954
10001
  credit_card: "\u0634\u0645\u0627\u0631\u0647 \u06A9\u0627\u0631\u062A \u0627\u0639\u062A\u0628\u0627\u0631\u06CC",
10002
+ currency_code: "\u06A9\u062F \u0627\u0631\u0632",
9955
10003
  iban: "IBAN",
9956
10004
  jwt: "JWT",
9957
10005
  template_literal: "\u0648\u0631\u0648\u062F\u06CC"
@@ -10030,7 +10078,7 @@ function fa_default() {
10030
10078
  };
10031
10079
  }
10032
10080
 
10033
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/fi.js
10081
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/fi.js
10034
10082
  var error16 = () => {
10035
10083
  const Sizable = {
10036
10084
  string: { unit: "merkki\xE4", subject: "merkkijonon" },
@@ -10075,6 +10123,7 @@ var error16 = () => {
10075
10123
  json_string: "JSON-merkkijono",
10076
10124
  e164: "E.164-luku",
10077
10125
  credit_card: "luottokortin numero",
10126
+ currency_code: "valuuttakoodi",
10078
10127
  iban: "IBAN",
10079
10128
  jwt: "JWT",
10080
10129
  template_literal: "templaattimerkkijono"
@@ -10147,7 +10196,7 @@ function fi_default() {
10147
10196
  };
10148
10197
  }
10149
10198
 
10150
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/fr.js
10199
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/fr.js
10151
10200
  var error17 = () => {
10152
10201
  const Sizable = {
10153
10202
  string: { unit: "caract\xE8res", verb: "avoir" },
@@ -10187,6 +10236,7 @@ var error17 = () => {
10187
10236
  json_string: "cha\xEEne de caract\xE8res JSON",
10188
10237
  e164: "num\xE9ro au format E.164",
10189
10238
  credit_card: "num\xE9ro de carte de cr\xE9dit",
10239
+ currency_code: "code de devise",
10190
10240
  iban: "IBAN",
10191
10241
  jwt: "JWT",
10192
10242
  template_literal: "entr\xE9e"
@@ -10276,7 +10326,7 @@ function fr_default() {
10276
10326
  };
10277
10327
  }
10278
10328
 
10279
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/fr-CA.js
10329
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/fr-CA.js
10280
10330
  var error18 = () => {
10281
10331
  const Sizable = {
10282
10332
  string: { unit: "caract\xE8res", verb: "avoir" },
@@ -10317,6 +10367,7 @@ var error18 = () => {
10317
10367
  json_string: "cha\xEEne JSON",
10318
10368
  e164: "num\xE9ro E.164",
10319
10369
  credit_card: "num\xE9ro de carte de cr\xE9dit",
10370
+ currency_code: "code de devise",
10320
10371
  iban: "IBAN",
10321
10372
  jwt: "JWT",
10322
10373
  template_literal: "entr\xE9e"
@@ -10388,7 +10439,7 @@ function fr_CA_default() {
10388
10439
  };
10389
10440
  }
10390
10441
 
10391
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/gu.js
10442
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/gu.js
10392
10443
  var error19 = () => {
10393
10444
  const Sizable = {
10394
10445
  string: { unit: "\u0A85\u0A95\u0ACD\u0AB7\u0AB0", verb: "\u0AB9\u0ACB\u0AB5\u0ABE \u0A9C\u0ACB\u0A88\u0A8F" },
@@ -10429,6 +10480,7 @@ var error19 = () => {
10429
10480
  json_string: "JSON \u0AB8\u0ACD\u0A9F\u0ACD\u0AB0\u0ABF\u0A82\u0A97",
10430
10481
  e164: "E.164 \u0AA8\u0A82\u0AAC\u0AB0",
10431
10482
  credit_card: "\u0A95\u0ACD\u0AB0\u0AC7\u0AA1\u0ABF\u0A9F \u0A95\u0ABE\u0AB0\u0ACD\u0AA1 \u0AA8\u0A82\u0AAC\u0AB0",
10483
+ currency_code: "\u0A9A\u0AB2\u0AA3 \u0A95\u0ACB\u0AA1",
10432
10484
  iban: "IBAN",
10433
10485
  jwt: "JWT",
10434
10486
  template_literal: "\u0A87\u0AA8\u0AAA\u0AC1\u0A9F"
@@ -10501,7 +10553,7 @@ function gu_default() {
10501
10553
  };
10502
10554
  }
10503
10555
 
10504
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/he.js
10556
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/he.js
10505
10557
  var error20 = () => {
10506
10558
  const TypeNames = {
10507
10559
  string: { label: "\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA", gender: "f" },
@@ -10578,6 +10630,7 @@ var error20 = () => {
10578
10630
  json_string: { label: "\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON", gender: "f" },
10579
10631
  e164: { label: "\u05DE\u05E1\u05E4\u05E8 E.164", gender: "m" },
10580
10632
  credit_card: { label: "\u05DE\u05E1\u05E4\u05E8 \u05DB\u05E8\u05D8\u05D9\u05E1 \u05D0\u05E9\u05E8\u05D0\u05D9", gender: "m" },
10633
+ currency_code: { label: "\u05E7\u05D5\u05D3 \u05DE\u05D8\u05D1\u05E2", gender: "m" },
10581
10634
  iban: { label: "IBAN", gender: "m" },
10582
10635
  jwt: { label: "JWT", gender: "m" },
10583
10636
  template_literal: { label: "\u05E7\u05DC\u05D8", gender: "m" },
@@ -10702,7 +10755,7 @@ function he_default() {
10702
10755
  };
10703
10756
  }
10704
10757
 
10705
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/hi.js
10758
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/hi.js
10706
10759
  var error21 = () => {
10707
10760
  const Sizable = {
10708
10761
  string: { unit: "\u0905\u0915\u094D\u0937\u0930", verb: "\u0930\u0916\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F" },
@@ -10743,6 +10796,7 @@ var error21 = () => {
10743
10796
  json_string: "JSON \u0938\u094D\u091F\u094D\u0930\u093F\u0902\u0917",
10744
10797
  e164: "E.164 \u0938\u0902\u0916\u094D\u092F\u093E",
10745
10798
  credit_card: "\u0915\u094D\u0930\u0947\u0921\u093F\u091F \u0915\u093E\u0930\u094D\u0921 \u0938\u0902\u0916\u094D\u092F\u093E",
10799
+ currency_code: "\u092E\u0941\u0926\u094D\u0930\u093E \u0915\u094B\u0921",
10746
10800
  iban: "IBAN",
10747
10801
  jwt: "JWT",
10748
10802
  template_literal: "\u0907\u0928\u092A\u0941\u091F"
@@ -10813,7 +10867,7 @@ function hi_default() {
10813
10867
  };
10814
10868
  }
10815
10869
 
10816
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/hr.js
10870
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/hr.js
10817
10871
  var error22 = () => {
10818
10872
  const Sizable = {
10819
10873
  string: { unit: "znakova", verb: "imati" },
@@ -10853,6 +10907,7 @@ var error22 = () => {
10853
10907
  json_string: "JSON tekst",
10854
10908
  e164: "E.164 broj",
10855
10909
  credit_card: "broj kreditne kartice",
10910
+ currency_code: "kod valute",
10856
10911
  iban: "IBAN",
10857
10912
  jwt: "JWT",
10858
10913
  template_literal: "unos"
@@ -10939,7 +10994,7 @@ function hr_default() {
10939
10994
  };
10940
10995
  }
10941
10996
 
10942
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/hu.js
10997
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/hu.js
10943
10998
  var error23 = () => {
10944
10999
  const Sizable = {
10945
11000
  string: { unit: "karakter", verb: "legyen" },
@@ -10980,6 +11035,7 @@ var error23 = () => {
10980
11035
  json_string: "JSON string",
10981
11036
  e164: "E.164 sz\xE1m",
10982
11037
  credit_card: "hitelk\xE1rtyasz\xE1m",
11038
+ currency_code: "p\xE9nznemk\xF3d",
10983
11039
  iban: "IBAN",
10984
11040
  jwt: "JWT",
10985
11041
  template_literal: "bemenet"
@@ -11052,7 +11108,7 @@ function hu_default() {
11052
11108
  };
11053
11109
  }
11054
11110
 
11055
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/hy.js
11111
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/hy.js
11056
11112
  function getArmenianPlural(count, one2, many) {
11057
11113
  return Math.abs(count) === 1 ? one2 : many;
11058
11114
  }
@@ -11133,6 +11189,7 @@ var error24 = () => {
11133
11189
  json_string: "JSON \u057F\u0578\u0572",
11134
11190
  e164: "E.164 \u0570\u0561\u0574\u0561\u0580",
11135
11191
  credit_card: "\u056F\u0580\u0565\u0564\u056B\u057F \u0584\u0561\u0580\u057F\u056B \u0570\u0561\u0574\u0561\u0580",
11192
+ currency_code: "\u0561\u0580\u056A\u0578\u0582\u0575\u0569\u056B \u056F\u0578\u0564",
11136
11193
  iban: "IBAN",
11137
11194
  jwt: "JWT",
11138
11195
  template_literal: "\u0574\u0578\u0582\u057F\u0584"
@@ -11210,7 +11267,7 @@ function hy_default() {
11210
11267
  };
11211
11268
  }
11212
11269
 
11213
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/id.js
11270
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/id.js
11214
11271
  var error25 = () => {
11215
11272
  const Sizable = {
11216
11273
  string: { unit: "karakter", verb: "memiliki" },
@@ -11251,6 +11308,7 @@ var error25 = () => {
11251
11308
  json_string: "string JSON",
11252
11309
  e164: "angka E.164",
11253
11310
  credit_card: "nomor kartu kredit",
11311
+ currency_code: "kode mata uang",
11254
11312
  iban: "IBAN",
11255
11313
  jwt: "JWT",
11256
11314
  template_literal: "input"
@@ -11321,7 +11379,7 @@ function id_default() {
11321
11379
  };
11322
11380
  }
11323
11381
 
11324
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/is.js
11382
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/is.js
11325
11383
  var error26 = () => {
11326
11384
  const Sizable = {
11327
11385
  string: { unit: "stafi", verb: "a\xF0 hafa" },
@@ -11362,6 +11420,7 @@ var error26 = () => {
11362
11420
  json_string: "JSON strengur",
11363
11421
  e164: "E.164 t\xF6lugildi",
11364
11422
  credit_card: "kreditkortan\xFAmer",
11423
+ currency_code: "gjaldmi\xF0ilsk\xF3\xF0i",
11365
11424
  iban: "IBAN",
11366
11425
  jwt: "JWT",
11367
11426
  template_literal: "gildi"
@@ -11435,7 +11494,7 @@ function is_default() {
11435
11494
  };
11436
11495
  }
11437
11496
 
11438
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/it.js
11497
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/it.js
11439
11498
  var error27 = () => {
11440
11499
  const Sizable = {
11441
11500
  string: { unit: "caratteri", verb: "avere" },
@@ -11476,6 +11535,7 @@ var error27 = () => {
11476
11535
  json_string: "stringa JSON",
11477
11536
  e164: "numero E.164",
11478
11537
  credit_card: "numero di carta di credito",
11538
+ currency_code: "codice valuta",
11479
11539
  iban: "IBAN",
11480
11540
  jwt: "JWT",
11481
11541
  template_literal: "input"
@@ -11548,7 +11608,7 @@ function it_default() {
11548
11608
  };
11549
11609
  }
11550
11610
 
11551
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/ja.js
11611
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ja.js
11552
11612
  var error28 = () => {
11553
11613
  const Sizable = {
11554
11614
  string: { unit: "\u6587\u5B57", verb: "\u3067\u3042\u308B" },
@@ -11589,6 +11649,7 @@ var error28 = () => {
11589
11649
  json_string: "JSON\u6587\u5B57\u5217",
11590
11650
  e164: "E.164\u756A\u53F7",
11591
11651
  credit_card: "\u30AF\u30EC\u30B8\u30C3\u30C8\u30AB\u30FC\u30C9\u756A\u53F7",
11652
+ currency_code: "\u901A\u8CA8\u30B3\u30FC\u30C9",
11592
11653
  iban: "IBAN",
11593
11654
  jwt: "JWT",
11594
11655
  template_literal: "\u5165\u529B\u5024"
@@ -11660,7 +11721,7 @@ function ja_default() {
11660
11721
  };
11661
11722
  }
11662
11723
 
11663
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/ka.js
11724
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ka.js
11664
11725
  var error29 = () => {
11665
11726
  const Sizable = {
11666
11727
  string: { unit: "\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" },
@@ -11701,6 +11762,7 @@ var error29 = () => {
11701
11762
  json_string: "JSON \u10D5\u10D4\u10DA\u10D8",
11702
11763
  e164: "E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",
11703
11764
  credit_card: "\u10E1\u10D0\u10D9\u10E0\u10D4\u10D3\u10D8\u10E2\u10DD \u10D1\u10D0\u10E0\u10D0\u10D7\u10D8\u10E1 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",
11765
+ currency_code: "\u10D5\u10D0\u10DA\u10E3\u10E2\u10D8\u10E1 \u10D9\u10DD\u10D3\u10D8",
11704
11766
  iban: "IBAN",
11705
11767
  jwt: "JWT",
11706
11768
  template_literal: "\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"
@@ -11777,7 +11839,7 @@ function ka_default() {
11777
11839
  };
11778
11840
  }
11779
11841
 
11780
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/km.js
11842
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/km.js
11781
11843
  var error30 = () => {
11782
11844
  const Sizable = {
11783
11845
  string: { unit: "\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
@@ -11818,6 +11880,7 @@ var error30 = () => {
11818
11880
  json_string: "\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A JSON",
11819
11881
  e164: "\u179B\u17C1\u1781 E.164",
11820
11882
  credit_card: "\u179B\u17C1\u1781\u1794\u17D0\u178E\u17D2\u178E\u17A5\u178E\u1791\u17B6\u1793",
11883
+ currency_code: "\u1780\u17BC\u178A\u179A\u17BC\u1794\u17B7\u1799\u1794\u17D0\u178E\u17D2\u178E",
11821
11884
  iban: "IBAN",
11822
11885
  jwt: "JWT",
11823
11886
  template_literal: "\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B"
@@ -11892,12 +11955,12 @@ function km_default() {
11892
11955
  };
11893
11956
  }
11894
11957
 
11895
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/kh.js
11958
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/kh.js
11896
11959
  function kh_default() {
11897
11960
  return km_default();
11898
11961
  }
11899
11962
 
11900
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/kn.js
11963
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/kn.js
11901
11964
  var error31 = () => {
11902
11965
  const Sizable = {
11903
11966
  string: { unit: "\u0C85\u0C95\u0CCD\u0CB7\u0CB0\u0C97\u0CB3\u0CC1", verb: "\u0CB9\u0CCA\u0C82\u0CA6\u0CB2\u0CC1" },
@@ -11938,6 +12001,7 @@ var error31 = () => {
11938
12001
  json_string: "JSON\u0CB8\u0CCD\u0C9F\u0CCD\u0CB0\u0CBF\u0C82\u0C97\u0CCD",
11939
12002
  e164: "E.164 \u0CB8\u0C82\u0C96\u0CCD\u0CAF\u0CC6",
11940
12003
  credit_card: "\u0C95\u0CCD\u0CB0\u0CC6\u0CA1\u0CBF\u0C9F\u0CCD \u0C95\u0CBE\u0CB0\u0CCD\u0CA1\u0CCD \u0CB8\u0C82\u0C96\u0CCD\u0CAF\u0CC6",
12004
+ currency_code: "\u0C95\u0CB0\u0CC6\u0CA8\u0CCD\u0CB8\u0CBF \u0C95\u0CCB\u0CA1\u0CCD",
11941
12005
  iban: "IBAN",
11942
12006
  jwt: "JWT",
11943
12007
  template_literal: "\u0C87\u0CA8\u0CCD\u0CAA\u0CC1\u0C9F\u0CCD"
@@ -12012,7 +12076,7 @@ function kn_default() {
12012
12076
  };
12013
12077
  }
12014
12078
 
12015
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/ko.js
12079
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ko.js
12016
12080
  var error32 = () => {
12017
12081
  const Sizable = {
12018
12082
  string: { unit: "\uBB38\uC790", verb: "to have" },
@@ -12053,6 +12117,7 @@ var error32 = () => {
12053
12117
  json_string: "JSON \uBB38\uC790\uC5F4",
12054
12118
  e164: "E.164 \uBC88\uD638",
12055
12119
  credit_card: "\uC2E0\uC6A9\uCE74\uB4DC \uBC88\uD638",
12120
+ currency_code: "\uD1B5\uD654 \uCF54\uB4DC",
12056
12121
  iban: "IBAN",
12057
12122
  jwt: "JWT",
12058
12123
  template_literal: "\uC785\uB825"
@@ -12128,7 +12193,7 @@ function ko_default() {
12128
12193
  };
12129
12194
  }
12130
12195
 
12131
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/lt.js
12196
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/lt.js
12132
12197
  var capitalizeFirstCharacter = (text3) => {
12133
12198
  return text3.charAt(0).toUpperCase() + text3.slice(1);
12134
12199
  };
@@ -12251,6 +12316,7 @@ var error33 = () => {
12251
12316
  json_string: "JSON eilut\u0117",
12252
12317
  e164: "E.164 numeris",
12253
12318
  credit_card: "kredito kortel\u0117s numeris",
12319
+ currency_code: "valiutos kodas",
12254
12320
  iban: "IBAN",
12255
12321
  jwt: "JWT",
12256
12322
  template_literal: "\u012Fvestis"
@@ -12335,7 +12401,7 @@ function lt_default() {
12335
12401
  };
12336
12402
  }
12337
12403
 
12338
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/mk.js
12404
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/mk.js
12339
12405
  var error34 = () => {
12340
12406
  const Sizable = {
12341
12407
  string: { unit: "\u0437\u043D\u0430\u0446\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
@@ -12376,6 +12442,7 @@ var error34 = () => {
12376
12442
  json_string: "JSON \u043D\u0438\u0437\u0430",
12377
12443
  e164: "E.164 \u0431\u0440\u043E\u0458",
12378
12444
  credit_card: "\u0431\u0440\u043E\u0458 \u043D\u0430 \u043A\u0440\u0435\u0434\u0438\u0442\u043D\u0430 \u043A\u0430\u0440\u0442\u0438\u0447\u043A\u0430",
12445
+ currency_code: "\u043A\u043E\u0434 \u043D\u0430 \u0432\u0430\u043B\u0443\u0442\u0430",
12379
12446
  iban: "IBAN",
12380
12447
  jwt: "JWT",
12381
12448
  template_literal: "\u0432\u043D\u0435\u0441"
@@ -12449,7 +12516,7 @@ function mk_default() {
12449
12516
  };
12450
12517
  }
12451
12518
 
12452
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/ms.js
12519
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ms.js
12453
12520
  var error35 = () => {
12454
12521
  const Sizable = {
12455
12522
  string: { unit: "aksara", verb: "mempunyai" },
@@ -12490,6 +12557,7 @@ var error35 = () => {
12490
12557
  json_string: "string JSON",
12491
12558
  e164: "nombor E.164",
12492
12559
  credit_card: "nombor kad kredit",
12560
+ currency_code: "kod mata wang",
12493
12561
  iban: "IBAN",
12494
12562
  jwt: "JWT",
12495
12563
  template_literal: "input"
@@ -12561,7 +12629,7 @@ function ms_default() {
12561
12629
  };
12562
12630
  }
12563
12631
 
12564
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/ne.js
12632
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ne.js
12565
12633
  var error36 = () => {
12566
12634
  const Sizable = {
12567
12635
  string: { unit: "\u0905\u0915\u094D\u0937\u0930", verb: "\u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B" },
@@ -12602,6 +12670,7 @@ var error36 = () => {
12602
12670
  json_string: "JSON \u0938\u094D\u091F\u094D\u0930\u093F\u0919",
12603
12671
  e164: "E.164 \u0928\u092E\u094D\u092C\u0930",
12604
12672
  credit_card: "\u0915\u094D\u0930\u0947\u0921\u093F\u091F \u0915\u093E\u0930\u094D\u0921 \u0928\u092E\u094D\u092C\u0930",
12673
+ currency_code: "\u092E\u0941\u0926\u094D\u0930\u093E \u0915\u094B\u0921",
12605
12674
  iban: "IBAN",
12606
12675
  jwt: "JWT",
12607
12676
  template_literal: "\u0907\u0928\u092A\u0941\u091F"
@@ -12672,7 +12741,7 @@ function ne_default() {
12672
12741
  };
12673
12742
  }
12674
12743
 
12675
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/nl.js
12744
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/nl.js
12676
12745
  var error37 = () => {
12677
12746
  const Sizable = {
12678
12747
  string: { unit: "tekens", verb: "heeft" },
@@ -12713,6 +12782,7 @@ var error37 = () => {
12713
12782
  json_string: "JSON string",
12714
12783
  e164: "E.164-nummer",
12715
12784
  credit_card: "creditcardnummer",
12785
+ currency_code: "valutacode",
12716
12786
  iban: "IBAN",
12717
12787
  jwt: "JWT",
12718
12788
  template_literal: "invoer"
@@ -12787,7 +12857,7 @@ function nl_default() {
12787
12857
  };
12788
12858
  }
12789
12859
 
12790
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/nn.js
12860
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/nn.js
12791
12861
  var error38 = () => {
12792
12862
  const Sizable = {
12793
12863
  string: { unit: "teikn", verb: "\xE5 ha" },
@@ -12828,6 +12898,7 @@ var error38 = () => {
12828
12898
  json_string: "JSON-streng",
12829
12899
  e164: "E.164-nummer",
12830
12900
  credit_card: "kredittkortnummer",
12901
+ currency_code: "valutakode",
12831
12902
  iban: "IBAN",
12832
12903
  jwt: "JWT",
12833
12904
  template_literal: "input"
@@ -12900,7 +12971,7 @@ function nn_default() {
12900
12971
  };
12901
12972
  }
12902
12973
 
12903
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/no.js
12974
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/no.js
12904
12975
  var error39 = () => {
12905
12976
  const Sizable = {
12906
12977
  string: { unit: "tegn", verb: "\xE5 ha" },
@@ -12941,6 +13012,7 @@ var error39 = () => {
12941
13012
  json_string: "JSON-streng",
12942
13013
  e164: "E.164-nummer",
12943
13014
  credit_card: "kredittkortnummer",
13015
+ currency_code: "valutakode",
12944
13016
  iban: "IBAN",
12945
13017
  jwt: "JWT",
12946
13018
  template_literal: "input"
@@ -13013,7 +13085,7 @@ function no_default() {
13013
13085
  };
13014
13086
  }
13015
13087
 
13016
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/ota.js
13088
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ota.js
13017
13089
  var error40 = () => {
13018
13090
  const Sizable = {
13019
13091
  string: { unit: "harf", verb: "olmal\u0131d\u0131r" },
@@ -13054,6 +13126,7 @@ var error40 = () => {
13054
13126
  json_string: "JSON metin",
13055
13127
  e164: "E.164 say\u0131s\u0131",
13056
13128
  credit_card: "i'tib\xE2r kart\u0131 numaras\u0131",
13129
+ currency_code: "para birimi kodu",
13057
13130
  iban: "IBAN",
13058
13131
  jwt: "JWT",
13059
13132
  template_literal: "giren"
@@ -13127,7 +13200,7 @@ function ota_default() {
13127
13200
  };
13128
13201
  }
13129
13202
 
13130
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/ps.js
13203
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ps.js
13131
13204
  var error41 = () => {
13132
13205
  const Sizable = {
13133
13206
  string: { unit: "\u062A\u0648\u06A9\u064A", verb: "\u0648\u0644\u0631\u064A" },
@@ -13168,6 +13241,7 @@ var error41 = () => {
13168
13241
  json_string: "JSON \u0645\u062A\u0646",
13169
13242
  e164: "\u062F E.164 \u0634\u0645\u06D0\u0631\u0647",
13170
13243
  credit_card: "\u062F \u06A9\u0631\u06CC\u0689\u06CC\u067C \u06A9\u0627\u0631\u062A \u0634\u0645\u06CC\u0631\u0647",
13244
+ currency_code: "\u062F \u0627\u0633\u0639\u0627\u0631\u0648 \u06A9\u0648\u0689",
13171
13245
  iban: "IBAN",
13172
13246
  jwt: "JWT",
13173
13247
  template_literal: "\u0648\u0631\u0648\u062F\u064A"
@@ -13246,7 +13320,7 @@ function ps_default() {
13246
13320
  };
13247
13321
  }
13248
13322
 
13249
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/pl.js
13323
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/pl.js
13250
13324
  var error42 = () => {
13251
13325
  const Sizable = {
13252
13326
  string: { unit: "znak\xF3w", verb: "mie\u0107" },
@@ -13287,6 +13361,7 @@ var error42 = () => {
13287
13361
  json_string: "ci\u0105g znak\xF3w w formacie JSON",
13288
13362
  e164: "liczba E.164",
13289
13363
  credit_card: "numer karty kredytowej",
13364
+ currency_code: "kod waluty",
13290
13365
  iban: "IBAN",
13291
13366
  jwt: "JWT",
13292
13367
  template_literal: "wej\u015Bcie"
@@ -13360,7 +13435,7 @@ function pl_default() {
13360
13435
  };
13361
13436
  }
13362
13437
 
13363
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/pt.js
13438
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/pt.js
13364
13439
  var error43 = () => {
13365
13440
  const Sizable = {
13366
13441
  string: { unit: "caracteres" },
@@ -13401,6 +13476,7 @@ var error43 = () => {
13401
13476
  json_string: "o texto JSON",
13402
13477
  e164: "o n\xFAmero E.164",
13403
13478
  credit_card: "o n\xFAmero de cart\xE3o de cr\xE9dito",
13479
+ currency_code: "o c\xF3digo de moeda",
13404
13480
  iban: "o IBAN",
13405
13481
  jwt: "o JWT",
13406
13482
  template_literal: "a entrada"
@@ -13503,7 +13579,7 @@ function pt_default() {
13503
13579
  };
13504
13580
  }
13505
13581
 
13506
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/pt-BR.js
13582
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/pt-BR.js
13507
13583
  var error44 = () => {
13508
13584
  const Sizable = {
13509
13585
  string: { unit: "caracteres" },
@@ -13544,6 +13620,7 @@ var error44 = () => {
13544
13620
  json_string: "o texto JSON",
13545
13621
  e164: "o n\xFAmero E.164",
13546
13622
  credit_card: "o n\xFAmero de cart\xE3o de cr\xE9dito",
13623
+ currency_code: "o c\xF3digo de moeda",
13547
13624
  iban: "o IBAN",
13548
13625
  jwt: "o JWT",
13549
13626
  template_literal: "a entrada"
@@ -13647,7 +13724,7 @@ function pt_BR_default() {
13647
13724
  };
13648
13725
  }
13649
13726
 
13650
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/ro.js
13727
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ro.js
13651
13728
  var error45 = () => {
13652
13729
  const Sizable = {
13653
13730
  string: { unit: "caractere", verb: "s\u0103 aib\u0103" },
@@ -13688,6 +13765,7 @@ var error45 = () => {
13688
13765
  json_string: "\u0219ir JSON",
13689
13766
  e164: "num\u0103r E.164",
13690
13767
  credit_card: "num\u0103r de card de credit",
13768
+ currency_code: "cod valutar",
13691
13769
  iban: "IBAN",
13692
13770
  jwt: "JWT",
13693
13771
  template_literal: "intrare"
@@ -13769,7 +13847,7 @@ function ro_default() {
13769
13847
  };
13770
13848
  }
13771
13849
 
13772
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/ru.js
13850
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ru.js
13773
13851
  function getRussianPlural(count, one2, few, many) {
13774
13852
  const absCount = Math.abs(count);
13775
13853
  const lastDigit = absCount % 10;
@@ -13860,6 +13938,7 @@ var error46 = () => {
13860
13938
  json_string: "JSON \u0441\u0442\u0440\u043E\u043A\u0430",
13861
13939
  e164: "\u043D\u043E\u043C\u0435\u0440 E.164",
13862
13940
  credit_card: "\u043D\u043E\u043C\u0435\u0440 \u043A\u0440\u0435\u0434\u0438\u0442\u043D\u043E\u0439 \u043A\u0430\u0440\u0442\u044B",
13941
+ currency_code: "\u043A\u043E\u0434 \u0432\u0430\u043B\u044E\u0442\u044B",
13863
13942
  iban: "IBAN",
13864
13943
  jwt: "JWT",
13865
13944
  template_literal: "\u0432\u0432\u043E\u0434"
@@ -13937,7 +14016,7 @@ function ru_default() {
13937
14016
  };
13938
14017
  }
13939
14018
 
13940
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/sk.js
14019
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/sk.js
13941
14020
  var error47 = () => {
13942
14021
  const Sizable = {
13943
14022
  string: { unit: "znakov", verb: "ma\u0165" },
@@ -13978,6 +14057,7 @@ var error47 = () => {
13978
14057
  json_string: "re\u0165azec vo form\xE1te JSON",
13979
14058
  e164: "\u010D\xEDslo E.164",
13980
14059
  credit_card: "\u010D\xEDslo kreditnej karty",
14060
+ currency_code: "k\xF3d meny",
13981
14061
  iban: "IBAN",
13982
14062
  jwt: "JWT",
13983
14063
  template_literal: "vstup"
@@ -14053,7 +14133,7 @@ function sk_default() {
14053
14133
  };
14054
14134
  }
14055
14135
 
14056
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/sl.js
14136
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/sl.js
14057
14137
  var error48 = () => {
14058
14138
  const Sizable = {
14059
14139
  string: { unit: "znakov", verb: "imeti" },
@@ -14094,6 +14174,7 @@ var error48 = () => {
14094
14174
  json_string: "JSON niz",
14095
14175
  e164: "E.164 \u0161tevilka",
14096
14176
  credit_card: "\u0161tevilka kreditne kartice",
14177
+ currency_code: "koda valute",
14097
14178
  iban: "IBAN",
14098
14179
  jwt: "JWT",
14099
14180
  template_literal: "vnos"
@@ -14167,7 +14248,7 @@ function sl_default() {
14167
14248
  };
14168
14249
  }
14169
14250
 
14170
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/sv.js
14251
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/sv.js
14171
14252
  var error49 = () => {
14172
14253
  const Sizable = {
14173
14254
  string: { unit: "tecken", verb: "att ha" },
@@ -14208,6 +14289,7 @@ var error49 = () => {
14208
14289
  json_string: "JSON-str\xE4ng",
14209
14290
  e164: "E.164-nummer",
14210
14291
  credit_card: "kreditkortsnummer",
14292
+ currency_code: "valutakod",
14211
14293
  iban: "IBAN",
14212
14294
  jwt: "JWT",
14213
14295
  template_literal: "mall-literal"
@@ -14282,7 +14364,7 @@ function sv_default() {
14282
14364
  };
14283
14365
  }
14284
14366
 
14285
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/ta.js
14367
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ta.js
14286
14368
  var error50 = () => {
14287
14369
  const Sizable = {
14288
14370
  string: { unit: "\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD", verb: "\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD" },
@@ -14323,6 +14405,7 @@ var error50 = () => {
14323
14405
  json_string: "JSON \u0B9A\u0BB0\u0BAE\u0BCD",
14324
14406
  e164: "E.164 \u0B8E\u0BA3\u0BCD",
14325
14407
  credit_card: "\u0B95\u0B9F\u0BA9\u0BCD \u0B85\u0B9F\u0BCD\u0B9F\u0BC8 \u0B8E\u0BA3\u0BCD",
14408
+ currency_code: "\u0BA8\u0BBE\u0BA3\u0BAF\u0B95\u0BCD \u0B95\u0BC1\u0BB1\u0BBF\u0BAF\u0BC0\u0B9F\u0BC1",
14326
14409
  iban: "IBAN",
14327
14410
  jwt: "JWT",
14328
14411
  template_literal: "input"
@@ -14397,7 +14480,7 @@ function ta_default() {
14397
14480
  };
14398
14481
  }
14399
14482
 
14400
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/tg.js
14483
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/tg.js
14401
14484
  var error51 = () => {
14402
14485
  const Sizable = {
14403
14486
  string: { unit: "\u0430\u043B\u043E\u043C\u0430\u0442", verb: "\u0434\u043E\u0448\u0442\u0430 \u0431\u043E\u0448\u0430\u0434" },
@@ -14438,6 +14521,7 @@ var error51 = () => {
14438
14521
  json_string: "\u0441\u0430\u0442\u0440\u0438 JSON",
14439
14522
  e164: "\u0440\u0430\u049B\u0430\u043C\u0438 E.164",
14440
14523
  credit_card: "\u0440\u0430\u049B\u0430\u043C\u0438 \u043A\u043E\u0440\u0442\u0438 \u043A\u0440\u0435\u0434\u0438\u0442\u04E3",
14524
+ currency_code: "\u0440\u0430\u043C\u0437\u0438 \u0430\u0441\u044A\u043E\u0440",
14441
14525
  iban: "IBAN",
14442
14526
  jwt: "JWT",
14443
14527
  template_literal: "\u0432\u0443\u0440\u0443\u0434"
@@ -14513,7 +14597,7 @@ function tg_default() {
14513
14597
  };
14514
14598
  }
14515
14599
 
14516
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/th.js
14600
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/th.js
14517
14601
  var error52 = () => {
14518
14602
  const Sizable = {
14519
14603
  string: { unit: "\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
@@ -14554,6 +14638,7 @@ var error52 = () => {
14554
14638
  json_string: "\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A JSON",
14555
14639
  e164: "\u0E40\u0E1A\u0E2D\u0E23\u0E4C\u0E42\u0E17\u0E23\u0E28\u0E31\u0E1E\u0E17\u0E4C\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28 (E.164)",
14556
14640
  credit_card: "\u0E2B\u0E21\u0E32\u0E22\u0E40\u0E25\u0E02\u0E1A\u0E31\u0E15\u0E23\u0E40\u0E04\u0E23\u0E14\u0E34\u0E15",
14641
+ currency_code: "\u0E23\u0E2B\u0E31\u0E2A\u0E2A\u0E01\u0E38\u0E25\u0E40\u0E07\u0E34\u0E19",
14557
14642
  iban: "IBAN",
14558
14643
  jwt: "\u0E42\u0E17\u0E40\u0E04\u0E19 JWT",
14559
14644
  template_literal: "\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19"
@@ -14628,7 +14713,7 @@ function th_default() {
14628
14713
  };
14629
14714
  }
14630
14715
 
14631
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/tk.js
14716
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/tk.js
14632
14717
  var error53 = () => {
14633
14718
  const Sizable = {
14634
14719
  string: { unit: "simwol", verb: "bolmaly" },
@@ -14669,6 +14754,7 @@ var error53 = () => {
14669
14754
  json_string: "JSON setiri",
14670
14755
  e164: "E.164 nomeri",
14671
14756
  credit_card: "kredit kartyny\u0148 nomeri",
14757
+ currency_code: "wal\xFDuta kody",
14672
14758
  iban: "IBAN",
14673
14759
  jwt: "JWT",
14674
14760
  template_literal: "\u015Fablon"
@@ -14735,7 +14821,7 @@ function tk_default() {
14735
14821
  };
14736
14822
  }
14737
14823
 
14738
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/tr.js
14824
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/tr.js
14739
14825
  var error54 = () => {
14740
14826
  const Sizable = {
14741
14827
  string: { unit: "karakter", verb: "olmal\u0131" },
@@ -14776,6 +14862,7 @@ var error54 = () => {
14776
14862
  json_string: "JSON dizesi",
14777
14863
  e164: "E.164 say\u0131s\u0131",
14778
14864
  credit_card: "kredi kart\u0131 numaras\u0131",
14865
+ currency_code: "para birimi kodu",
14779
14866
  iban: "IBAN",
14780
14867
  jwt: "JWT",
14781
14868
  template_literal: "\u015Eablon dizesi"
@@ -14845,7 +14932,7 @@ function tr_default() {
14845
14932
  };
14846
14933
  }
14847
14934
 
14848
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/uk.js
14935
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/uk.js
14849
14936
  var error55 = () => {
14850
14937
  const Sizable = {
14851
14938
  string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
@@ -14886,6 +14973,7 @@ var error55 = () => {
14886
14973
  json_string: "\u0440\u044F\u0434\u043E\u043A JSON",
14887
14974
  e164: "\u043D\u043E\u043C\u0435\u0440 E.164",
14888
14975
  credit_card: "\u043D\u043E\u043C\u0435\u0440 \u043A\u0440\u0435\u0434\u0438\u0442\u043D\u043E\u0457 \u043A\u0430\u0440\u0442\u043A\u0438",
14976
+ currency_code: "\u043A\u043E\u0434 \u0432\u0430\u043B\u044E\u0442\u0438",
14889
14977
  iban: "IBAN",
14890
14978
  jwt: "JWT",
14891
14979
  template_literal: "\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"
@@ -14958,12 +15046,12 @@ function uk_default() {
14958
15046
  };
14959
15047
  }
14960
15048
 
14961
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/ua.js
15049
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ua.js
14962
15050
  function ua_default() {
14963
15051
  return uk_default();
14964
15052
  }
14965
15053
 
14966
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/ur.js
15054
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ur.js
14967
15055
  var error56 = () => {
14968
15056
  const Sizable = {
14969
15057
  string: { unit: "\u062D\u0631\u0648\u0641", verb: "\u06C1\u0648\u0646\u0627" },
@@ -15004,6 +15092,7 @@ var error56 = () => {
15004
15092
  json_string: "\u062C\u06D2 \u0627\u06CC\u0633 \u0627\u0648 \u0627\u06CC\u0646 \u0633\u0679\u0631\u0646\u06AF",
15005
15093
  e164: "\u0627\u06CC 164 \u0646\u0645\u0628\u0631",
15006
15094
  credit_card: "\u06A9\u0631\u06CC\u0688\u0679 \u06A9\u0627\u0631\u0688 \u0646\u0645\u0628\u0631",
15095
+ currency_code: "\u06A9\u0631\u0646\u0633\u06CC \u06A9\u0648\u0688",
15007
15096
  iban: "IBAN",
15008
15097
  jwt: "\u062C\u06D2 \u0688\u0628\u0644\u06CC\u0648 \u0679\u06CC",
15009
15098
  template_literal: "\u0627\u0646 \u067E\u0679"
@@ -15078,7 +15167,7 @@ function ur_default() {
15078
15167
  };
15079
15168
  }
15080
15169
 
15081
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/uz.js
15170
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/uz.js
15082
15171
  var error57 = () => {
15083
15172
  const Sizable = {
15084
15173
  string: { unit: "belgi", verb: "bo\u2018lishi kerak" },
@@ -15119,6 +15208,7 @@ var error57 = () => {
15119
15208
  json_string: "JSON satr",
15120
15209
  e164: "E.164 raqam",
15121
15210
  credit_card: "kredit karta raqami",
15211
+ currency_code: "valyuta kodi",
15122
15212
  iban: "IBAN",
15123
15213
  jwt: "JWT",
15124
15214
  template_literal: "kirish"
@@ -15191,7 +15281,7 @@ function uz_default() {
15191
15281
  };
15192
15282
  }
15193
15283
 
15194
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/vi.js
15284
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/vi.js
15195
15285
  var error58 = () => {
15196
15286
  const Sizable = {
15197
15287
  string: { unit: "k\xFD t\u1EF1", verb: "c\xF3" },
@@ -15232,6 +15322,7 @@ var error58 = () => {
15232
15322
  json_string: "chu\u1ED7i JSON",
15233
15323
  e164: "s\u1ED1 E.164",
15234
15324
  credit_card: "s\u1ED1 th\u1EBB t\xEDn d\u1EE5ng",
15325
+ currency_code: "m\xE3 ti\u1EC1n t\u1EC7",
15235
15326
  iban: "IBAN",
15236
15327
  jwt: "JWT",
15237
15328
  template_literal: "\u0111\u1EA7u v\xE0o"
@@ -15304,7 +15395,7 @@ function vi_default() {
15304
15395
  };
15305
15396
  }
15306
15397
 
15307
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/zh-CN.js
15398
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/zh-CN.js
15308
15399
  var error59 = () => {
15309
15400
  const Sizable = {
15310
15401
  string: { unit: "\u5B57\u7B26", verb: "\u5305\u542B" },
@@ -15345,6 +15436,7 @@ var error59 = () => {
15345
15436
  json_string: "JSON\u5B57\u7B26\u4E32",
15346
15437
  e164: "E.164\u53F7\u7801",
15347
15438
  credit_card: "\u4FE1\u7528\u5361\u53F7",
15439
+ currency_code: "\u8D27\u5E01\u4EE3\u7801",
15348
15440
  iban: "IBAN",
15349
15441
  jwt: "JWT",
15350
15442
  template_literal: "\u8F93\u5165"
@@ -15418,7 +15510,7 @@ function zh_CN_default() {
15418
15510
  };
15419
15511
  }
15420
15512
 
15421
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/zh-TW.js
15513
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/zh-TW.js
15422
15514
  var error60 = () => {
15423
15515
  const Sizable = {
15424
15516
  string: { unit: "\u5B57\u5143", verb: "\u64C1\u6709" },
@@ -15459,6 +15551,7 @@ var error60 = () => {
15459
15551
  json_string: "JSON \u5B57\u4E32",
15460
15552
  e164: "E.164 \u6578\u503C",
15461
15553
  credit_card: "\u4FE1\u7528\u5361\u865F",
15554
+ currency_code: "\u8CA8\u5E63\u4EE3\u78BC",
15462
15555
  iban: "IBAN",
15463
15556
  jwt: "JWT",
15464
15557
  template_literal: "\u8F38\u5165"
@@ -15530,7 +15623,7 @@ function zh_TW_default() {
15530
15623
  };
15531
15624
  }
15532
15625
 
15533
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/yo.js
15626
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/yo.js
15534
15627
  var error61 = () => {
15535
15628
  const Sizable = {
15536
15629
  string: { unit: "\xE0mi", verb: "n\xED" },
@@ -15571,6 +15664,7 @@ var error61 = () => {
15571
15664
  json_string: "\u1ECD\u0300r\u1ECD\u0300 JSON",
15572
15665
  e164: "n\u1ECD\u0301mb\xE0 E.164",
15573
15666
  credit_card: "n\u1ECDmba kaadi gbese",
15667
+ currency_code: "koodu ow\xF3",
15574
15668
  iban: "IBAN",
15575
15669
  jwt: "JWT",
15576
15670
  template_literal: "\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9"
@@ -15642,7 +15736,7 @@ function yo_default() {
15642
15736
  };
15643
15737
  }
15644
15738
 
15645
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/core/registries.js
15739
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/registries.js
15646
15740
  var _a2;
15647
15741
  var $output = /* @__PURE__ */ Symbol("ZodOutput");
15648
15742
  var $input = /* @__PURE__ */ Symbol("ZodInput");
@@ -15692,7 +15786,7 @@ function registry() {
15692
15786
  (_a2 = globalThis).__zod_globalRegistry ?? (_a2.__zod_globalRegistry = registry());
15693
15787
  var globalRegistry = globalThis.__zod_globalRegistry;
15694
15788
 
15695
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/core/compile.js
15789
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/compile.js
15696
15790
  var INVALID = /* @__PURE__ */ Symbol.for("zod.compile.invalid");
15697
15791
  var FALLBACK_FLAG = /* @__PURE__ */ Symbol.for("zod.compile.fallback");
15698
15792
  var ZodCompileAsyncError = class extends Error {
@@ -15949,7 +16043,7 @@ function generateChecks(doc, ctx, schema, accessor) {
15949
16043
  generatePropertyCheck(doc, ctx, def, currentAccessor);
15950
16044
  break;
15951
16045
  case "properties":
15952
- generatePropertiesChecks(doc, ctx, def, currentAccessor, false);
16046
+ generatePropertiesChecks(doc, ctx, def, currentAccessor);
15953
16047
  break;
15954
16048
  case "overwrite": {
15955
16049
  const newAccessor = newVar(ctx);
@@ -16059,11 +16153,11 @@ function generateMimeTypeCheck(doc, ctx, def, accessor) {
16059
16153
  doc.write(`if (!${mimeSet}.has(${accessor}.type)) return INVALID;`);
16060
16154
  }
16061
16155
  }
16062
- function generatePropertiesChecks(doc, ctx, def, accessor, schemaRole) {
16156
+ function generatePropertiesChecks(doc, ctx, def, accessor) {
16063
16157
  if (def.when) {
16064
16158
  throw new ZodCompileUnsupportedError(`check with a custom "when" condition`);
16065
16159
  }
16066
- doc.write(schemaRole ? `if (${accessor} === null || (typeof ${accessor} !== "object" && typeof ${accessor} !== "function")) return INVALID;` : `if (${accessor} == null) return INVALID;`);
16160
+ doc.write(`if (${accessor} == null) return INVALID;`);
16067
16161
  const shape = def.shape;
16068
16162
  for (const key of Reflect.ownKeys(shape)) {
16069
16163
  const keyExpr = typeof key === "symbol" ? addConstant(ctx, key) : esc(key);
@@ -16153,7 +16247,7 @@ var PATTERN_IS_COMPLETE = /* @__PURE__ */ new Set([
16153
16247
  "uuid",
16154
16248
  "xid"
16155
16249
  ]);
16156
- function generateStringFormatCheck(doc, ctx, def, accessor) {
16250
+ function generateStringFormatCheck(doc, ctx, def, accessor, needsValue = true) {
16157
16251
  const fmt = def.format;
16158
16252
  if (fmt === "base64") {
16159
16253
  const validator = addConstant(ctx, isValidBase64);
@@ -16193,7 +16287,7 @@ function generateStringFormatCheck(doc, ctx, def, accessor) {
16193
16287
  }
16194
16288
  const formatDef = def;
16195
16289
  if (fmt === "url" || fmt === "httpurl" || formatDef.normalize || formatDef.hostname !== void 0 || formatDef.protocol !== void 0) {
16196
- const parseConst = addConstant(ctx, parseURLObject);
16290
+ const parseConst = addConstant(ctx, validateURL);
16197
16291
  const defConst = addConstant(ctx, def);
16198
16292
  const trimVar = newVar(ctx);
16199
16293
  const urlVar = newVar(ctx);
@@ -16208,6 +16302,8 @@ function generateStringFormatCheck(doc, ctx, def, accessor) {
16208
16302
  const protocolConst = addConstant(ctx, urlProtocolOk);
16209
16303
  doc.write(`if (!${protocolConst}(${urlVar}, ${defConst}.protocol)) return INVALID;`);
16210
16304
  }
16305
+ if (!needsValue)
16306
+ return null;
16211
16307
  const outputVar = newVar(ctx);
16212
16308
  const outputExpr = formatDef.normalize ? `${urlVar}.href` : `${addConstant(ctx, stripTabAndNewline)}(${trimVar})`;
16213
16309
  doc.write(`const ${outputVar} = ${outputExpr};`);
@@ -16267,7 +16363,7 @@ function generateCheck(doc, ctx, schema, accessor, needsValue = true) {
16267
16363
  let typeAccessor;
16268
16364
  switch (type) {
16269
16365
  case "string":
16270
- typeAccessor = generateStringCheck(doc, ctx, schema, accessor);
16366
+ typeAccessor = generateStringCheck(doc, ctx, schema, accessor, buildsValue);
16271
16367
  break;
16272
16368
  case "number":
16273
16369
  typeAccessor = generateNumberCheck(doc, schema, accessor);
@@ -16373,10 +16469,6 @@ function generateCheck(doc, ctx, schema, accessor, needsValue = true) {
16373
16469
  case "custom":
16374
16470
  typeAccessor = generateCustomCheck(doc, ctx, schema, accessor);
16375
16471
  break;
16376
- case "properties":
16377
- generatePropertiesChecks(doc, ctx, schema._zod.def, accessor, true);
16378
- typeAccessor = accessor;
16379
- break;
16380
16472
  case "transform":
16381
16473
  typeAccessor = generateTransformCheck(doc, ctx, schema, accessor);
16382
16474
  break;
@@ -16392,12 +16484,12 @@ function generateCheck(doc, ctx, schema, accessor, needsValue = true) {
16392
16484
  return null;
16393
16485
  return generateChecks(doc, ctx, schema, typeAccessor);
16394
16486
  }
16395
- function generateStringCheck(doc, ctx, schema, accessor) {
16487
+ function generateStringCheck(doc, ctx, schema, accessor, needsValue = true) {
16396
16488
  doc.write(`if (typeof ${accessor} !== "string") return INVALID;`);
16397
16489
  const def = schema._zod.def;
16398
16490
  if (def.format === void 0)
16399
16491
  return accessor;
16400
- return generateStringFormatCheck(doc, ctx, def, accessor);
16492
+ return generateStringFormatCheck(doc, ctx, def, accessor, needsValue);
16401
16493
  }
16402
16494
  function generateNumberCheck(doc, schema, accessor) {
16403
16495
  doc.write(`if (typeof ${accessor} !== "number" || !Number.isFinite(${accessor})) return INVALID;`);
@@ -17296,21 +17388,19 @@ function generateTransformCheck(doc, ctx, schema, accessor) {
17296
17388
  return accessor;
17297
17389
  }
17298
17390
 
17299
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/core/api.js
17391
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/api.js
17392
+ function snapshotChecks(def) {
17393
+ if (def.checks)
17394
+ def.checks = [...def.checks];
17395
+ return def;
17396
+ }
17300
17397
  // @__NO_SIDE_EFFECTS__
17301
17398
  function _string(Class2, params) {
17302
- return new Class2({
17303
- type: "string",
17304
- ...normalizeParams(params)
17305
- });
17399
+ return new Class2(snapshotChecks({ type: "string", ...normalizeParams(params) }));
17306
17400
  }
17307
17401
  // @__NO_SIDE_EFFECTS__
17308
17402
  function _coercedString(Class2, params) {
17309
- return new Class2({
17310
- type: "string",
17311
- coerce: true,
17312
- ...normalizeParams(params)
17313
- });
17403
+ return new Class2(snapshotChecks({ type: "string", coerce: true, ...normalizeParams(params) }));
17314
17404
  }
17315
17405
  // @__NO_SIDE_EFFECTS__
17316
17406
  function _email(Class2, params) {
@@ -17614,20 +17704,11 @@ function _isoDuration(Class2, params) {
17614
17704
  }
17615
17705
  // @__NO_SIDE_EFFECTS__
17616
17706
  function _number(Class2, params) {
17617
- return new Class2({
17618
- type: "number",
17619
- checks: [],
17620
- ...normalizeParams(params)
17621
- });
17707
+ return new Class2(snapshotChecks({ type: "number", checks: [], ...normalizeParams(params) }));
17622
17708
  }
17623
17709
  // @__NO_SIDE_EFFECTS__
17624
17710
  function _coercedNumber(Class2, params) {
17625
- return new Class2({
17626
- type: "number",
17627
- coerce: true,
17628
- checks: [],
17629
- ...normalizeParams(params)
17630
- });
17711
+ return new Class2(snapshotChecks({ type: "number", coerce: true, checks: [], ...normalizeParams(params) }));
17631
17712
  }
17632
17713
  // @__NO_SIDE_EFFECTS__
17633
17714
  function _int(Class2, params) {
@@ -17969,9 +18050,8 @@ function _property(property, schema, params) {
17969
18050
  });
17970
18051
  }
17971
18052
  // @__NO_SIDE_EFFECTS__
17972
- function _properties(Class2, shape, params) {
17973
- return new Class2({
17974
- type: "properties",
18053
+ function _properties(shape, params) {
18054
+ return new $ZodCheckProperties({
17975
18055
  check: "properties",
17976
18056
  shape,
17977
18057
  ...normalizeParams(params)
@@ -18367,7 +18447,7 @@ function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
18367
18447
  return inst;
18368
18448
  }
18369
18449
 
18370
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/core/to-json-schema.js
18450
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/to-json-schema.js
18371
18451
  function assignProps(target, ...sources) {
18372
18452
  for (const source of sources) {
18373
18453
  for (const key of Reflect.ownKeys(source)) {
@@ -18606,11 +18686,11 @@ function foldObjects(members2) {
18606
18686
  }
18607
18687
  objects.push(member);
18608
18688
  }
18609
- const properties2 = {};
18689
+ const properties = {};
18610
18690
  const required2 = /* @__PURE__ */ new Set();
18611
18691
  for (const object2 of objects) {
18612
18692
  for (const key in object2.properties) {
18613
- if (Object.prototype.hasOwnProperty.call(properties2, key))
18693
+ if (Object.prototype.hasOwnProperty.call(properties, key))
18614
18694
  continue;
18615
18695
  const parts = [];
18616
18696
  for (const other of objects) {
@@ -18621,12 +18701,12 @@ function foldObjects(members2) {
18621
18701
  parts.push(part);
18622
18702
  }
18623
18703
  const merged = parts.length === 1 ? parts[0] : foldObjects(parts) ?? { allOf: parts };
18624
- assignProp(properties2, key, merged);
18704
+ assignProp(properties, key, merged);
18625
18705
  }
18626
18706
  for (const key of object2.required ?? [])
18627
18707
  required2.add(key);
18628
18708
  }
18629
- const folded = { type: "object", properties: properties2 };
18709
+ const folded = { type: "object", properties };
18630
18710
  if (required2.size)
18631
18711
  folded.required = [...required2];
18632
18712
  if (objects.every((object2) => object2.additionalProperties === false)) {
@@ -18897,7 +18977,7 @@ var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) =
18897
18977
  return finalize(ctx, schema);
18898
18978
  };
18899
18979
 
18900
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/core/json-schema-processors.js
18980
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/json-schema-processors.js
18901
18981
  var narrowMin = (agg, key, value) => {
18902
18982
  if (agg[key] === void 0 || value > agg[key])
18903
18983
  agg[key] = value;
@@ -19248,17 +19328,15 @@ var objectProcessor = (schema, ctx, _json, params) => {
19248
19328
  path: [...params.path, "properties", key]
19249
19329
  }));
19250
19330
  }
19251
- const allKeys = new Set(Object.keys(shape));
19252
- const requiredKeys = new Set([...allKeys].filter((key) => {
19331
+ const requiredKeys = [];
19332
+ for (const key of Object.keys(shape)) {
19253
19333
  const field = def.shape[key];
19254
- if (ctx.io === "input") {
19255
- return inputOptin(field) === void 0;
19256
- } else {
19257
- return field._zod.optout === void 0;
19334
+ if (ctx.io === "input" ? inputOptin(field) === void 0 : field._zod.optout === void 0) {
19335
+ requiredKeys.push(key);
19258
19336
  }
19259
- }));
19260
- if (requiredKeys.size > 0) {
19261
- json2.required = Array.from(requiredKeys);
19337
+ }
19338
+ if (requiredKeys.length > 0) {
19339
+ json2.required = requiredKeys;
19262
19340
  }
19263
19341
  if (def.catchall?._zod.def.type === "never") {
19264
19342
  json2.additionalProperties = false;
@@ -19272,31 +19350,6 @@ var objectProcessor = (schema, ctx, _json, params) => {
19272
19350
  });
19273
19351
  }
19274
19352
  };
19275
- var propertiesProcessor = (schema, ctx, _json, params) => {
19276
- const json2 = _json;
19277
- const def = schema._zod.def;
19278
- if (Object.getOwnPropertySymbols(def.shape).length && handleUnrepresentable(schema, ctx, json2, params, "Symbol keys cannot be represented in JSON Schema")) {
19279
- return;
19280
- }
19281
- if (ctx.io === "output") {
19282
- for (const key in def.shape) {
19283
- if (isTransforming(def.shape[key]) && handleUnrepresentable(schema, ctx, json2, params, `z.properties() returns its input, so the output of a transforming schema at key "${key}" cannot be represented in JSON Schema`)) {
19284
- return;
19285
- }
19286
- }
19287
- }
19288
- json2.type = "object";
19289
- json2.properties = {};
19290
- for (const key in def.shape) {
19291
- assignProp(json2.properties, key, processSchema(def.shape[key], ctx, {
19292
- ...params,
19293
- path: [...params.path, "properties", key]
19294
- }));
19295
- }
19296
- const required2 = Object.keys(def.shape).filter((key) => inputOptin(def.shape[key]) === void 0);
19297
- if (required2.length > 0)
19298
- json2.required = required2;
19299
- };
19300
19353
  var unionProcessor = (schema, ctx, json2, params) => {
19301
19354
  const def = schema._zod.def;
19302
19355
  const isExclusive = def.inclusive === false;
@@ -19616,7 +19669,6 @@ var allProcessors = {
19616
19669
  file: fileProcessor,
19617
19670
  success: successProcessor,
19618
19671
  custom: customProcessor,
19619
- properties: propertiesProcessor,
19620
19672
  function: functionProcessor,
19621
19673
  transform: transformProcessor,
19622
19674
  map: mapProcessor,
@@ -19673,7 +19725,7 @@ function toJSONSchema(input2, params) {
19673
19725
  return finalize(ctx, input2);
19674
19726
  }
19675
19727
 
19676
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/core/json-schema-generator.js
19728
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/json-schema-generator.js
19677
19729
  var JSONSchemaGenerator = class {
19678
19730
  /** @deprecated Access via ctx instead */
19679
19731
  get metadataRegistry() {
@@ -19751,10 +19803,10 @@ var JSONSchemaGenerator = class {
19751
19803
  }
19752
19804
  };
19753
19805
 
19754
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/core/json-schema.js
19806
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/json-schema.js
19755
19807
  var json_schema_exports = {};
19756
19808
 
19757
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/classic/schemas.js
19809
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/schemas.js
19758
19810
  var schemas_exports2 = {};
19759
19811
  __export(schemas_exports2, {
19760
19812
  ZodAny: () => ZodAny,
@@ -19813,7 +19865,6 @@ __export(schemas_exports2, {
19813
19865
  ZodPrefault: () => ZodPrefault,
19814
19866
  ZodPreprocess: () => ZodPreprocess,
19815
19867
  ZodPromise: () => ZodPromise,
19816
- ZodProperties: () => ZodProperties,
19817
19868
  ZodReadonly: () => ZodReadonly,
19818
19869
  ZodRecord: () => ZodRecord,
19819
19870
  ZodSet: () => ZodSet,
@@ -19851,6 +19902,7 @@ __export(schemas_exports2, {
19851
19902
  creditCard: () => creditCard2,
19852
19903
  cuid: () => cuid3,
19853
19904
  cuid2: () => cuid22,
19905
+ currencyCode: () => currencyCode2,
19854
19906
  custom: () => custom,
19855
19907
  date: () => date2,
19856
19908
  describe: () => describe2,
@@ -19905,7 +19957,6 @@ __export(schemas_exports2, {
19905
19957
  prefault: () => prefault,
19906
19958
  preprocess: () => preprocess,
19907
19959
  promise: () => promise,
19908
- properties: () => properties,
19909
19960
  readonly: () => readonly,
19910
19961
  record: () => record,
19911
19962
  refine: () => refine,
@@ -19936,7 +19987,7 @@ __export(schemas_exports2, {
19936
19987
  xor: () => xor
19937
19988
  });
19938
19989
 
19939
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/classic/checks.js
19990
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/checks.js
19940
19991
  var checks_exports2 = {};
19941
19992
  __export(checks_exports2, {
19942
19993
  endsWith: () => _endsWith,
@@ -19959,6 +20010,7 @@ __export(checks_exports2, {
19959
20010
  normalize: () => _normalize,
19960
20011
  overwrite: () => _overwrite,
19961
20012
  positive: () => _positive,
20013
+ properties: () => _properties,
19962
20014
  property: () => _property,
19963
20015
  regex: () => _regex,
19964
20016
  size: () => _size,
@@ -19970,7 +20022,7 @@ __export(checks_exports2, {
19970
20022
  uppercase: () => _uppercase
19971
20023
  });
19972
20024
 
19973
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/classic/errors.js
20025
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/errors.js
19974
20026
  var _installedErrorProtos = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]);
19975
20027
  function _lazyMethod(proto, key, make) {
19976
20028
  Object.defineProperty(proto, key, {
@@ -20016,7 +20068,7 @@ var ZodRealError = /* @__PURE__ */ $constructor("ZodError", initializer2, void 0
20016
20068
  Parent: Error
20017
20069
  });
20018
20070
 
20019
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/classic/parse.js
20071
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/parse.js
20020
20072
  var parse2 = /* @__PURE__ */ _parse(ZodRealError);
20021
20073
  var parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError);
20022
20074
  var safeParse2 = /* @__PURE__ */ _safeParse(ZodRealError);
@@ -20030,7 +20082,7 @@ var safeDecode2 = /* @__PURE__ */ _safeDecode(ZodRealError);
20030
20082
  var safeEncodeAsync2 = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
20031
20083
  var safeDecodeAsync2 = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
20032
20084
 
20033
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/classic/schemas.js
20085
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/schemas.js
20034
20086
  function _ensureDefaultLocale() {
20035
20087
  if (!globalConfig.localeError)
20036
20088
  config(en_default());
@@ -20418,8 +20470,8 @@ function url(params) {
20418
20470
  }
20419
20471
  function httpUrl(params) {
20420
20472
  return _url(ZodURL, {
20421
- protocol: regexes_exports.httpProtocol,
20422
- hostname: regexes_exports.domain,
20473
+ protocol: httpProtocol,
20474
+ hostname: domain,
20423
20475
  ...util_exports.normalizeParams(params)
20424
20476
  });
20425
20477
  }
@@ -20557,10 +20609,13 @@ function stringFormat(format, fnOrRegex, _params = {}) {
20557
20609
  return _stringFormat(ZodCustomStringFormat, format, fnOrRegex, _params);
20558
20610
  }
20559
20611
  function hostname2(_params) {
20560
- return _stringFormat(ZodCustomStringFormat, "hostname", regexes_exports.hostname, _params);
20612
+ return _stringFormat(ZodCustomStringFormat, "hostname", hostname, _params);
20561
20613
  }
20562
20614
  function hex2(_params) {
20563
- return _stringFormat(ZodCustomStringFormat, "hex", regexes_exports.hex, _params);
20615
+ return _stringFormat(ZodCustomStringFormat, "hex", hex, _params);
20616
+ }
20617
+ function currencyCode2(_params) {
20618
+ return _stringFormat(ZodCustomStringFormat, "currency_code", currencyCode, _params);
20564
20619
  }
20565
20620
  function hash(alg, params) {
20566
20621
  const enc = params?.enc ?? "hex";
@@ -21425,14 +21480,6 @@ var ZodCustom = /* @__PURE__ */ $constructor("ZodCustom", (inst, def) => {
21425
21480
  ZodType.init(inst, def);
21426
21481
  inst._zod.processJSONSchema = (ctx, json2, params) => customProcessor(inst, ctx, json2, params);
21427
21482
  });
21428
- var ZodProperties = /* @__PURE__ */ $constructor("ZodProperties", (inst, def) => {
21429
- _ensureDefaultMemoizer();
21430
- $ZodProperties.init(inst, def);
21431
- ZodType.init(inst, def);
21432
- });
21433
- function properties(shape, params) {
21434
- return _properties(ZodProperties, shape, params);
21435
- }
21436
21483
  function check(fn) {
21437
21484
  const ch = new $ZodCheck({
21438
21485
  check: "custom"
@@ -21456,7 +21503,7 @@ var ZodInstanceOf = /* @__PURE__ */ $constructor("ZodInstanceOf", (inst, def) =>
21456
21503
  ZodCustom.init(inst, def);
21457
21504
  }, {
21458
21505
  properties(shape, params) {
21459
- return this.check(properties(shape, params));
21506
+ return this.check(_properties(shape, params));
21460
21507
  }
21461
21508
  });
21462
21509
  function _instanceof(cls, params = {}) {
@@ -21500,7 +21547,7 @@ function preprocess(fn, schema) {
21500
21547
  });
21501
21548
  }
21502
21549
 
21503
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/classic/compat.js
21550
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/compat.js
21504
21551
  var ZodIssueCode = {
21505
21552
  invalid_type: "invalid_type",
21506
21553
  too_big: "too_big",
@@ -21526,7 +21573,7 @@ var ZodFirstPartyTypeKind;
21526
21573
  /* @__PURE__ */ (function(ZodFirstPartyTypeKind2) {
21527
21574
  })(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
21528
21575
 
21529
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/classic/iso.js
21576
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/iso.js
21530
21577
  var iso_exports = {};
21531
21578
  __export(iso_exports, {
21532
21579
  ZodISODate: () => ZodISODate,
@@ -21551,7 +21598,7 @@ function duration2(params) {
21551
21598
  return _isoDuration(ZodISODuration, params);
21552
21599
  }
21553
21600
 
21554
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/classic/from-json-schema.js
21601
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/from-json-schema.js
21555
21602
  var z = {
21556
21603
  ...schemas_exports2,
21557
21604
  ...checks_exports2,
@@ -22043,10 +22090,10 @@ function convertBaseSchema(schema, ctx) {
22043
22090
  }
22044
22091
  case "object": {
22045
22092
  const shape = {};
22046
- const properties2 = schema.properties || {};
22093
+ const properties = schema.properties || {};
22047
22094
  const requiredSet = new Set(schema.required || []);
22048
22095
  const additionalSchema = typeof schema.additionalProperties === "object" ? convertSchema(schema.additionalProperties, ctx) : void 0;
22049
- for (const [key, propSchema] of Object.entries(properties2)) {
22096
+ for (const [key, propSchema] of Object.entries(properties)) {
22050
22097
  const propZodSchema = convertSchema(propSchema, ctx);
22051
22098
  assignProp(shape, key, requiredSet.has(key) ? propZodSchema : propZodSchema.optional());
22052
22099
  }
@@ -22284,7 +22331,7 @@ function fromJSONSchema(schema, params) {
22284
22331
  return convertSchema(normalized, ctx);
22285
22332
  }
22286
22333
 
22287
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/core/visit.js
22334
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/visit.js
22288
22335
  var RESOLVING = /* @__PURE__ */ Symbol("z.visit/resolving");
22289
22336
  function visit(schema, fnOrHandlers) {
22290
22337
  const fn = typeof fnOrHandlers === "function" ? fnOrHandlers : (node3, rewritten) => {
@@ -22407,18 +22454,6 @@ function visit(schema, fnOrHandlers) {
22407
22454
  const { _cachedInner, ...rest } = def;
22408
22455
  return clone(s, { ...rest, getter: () => run(original()) });
22409
22456
  }
22410
- case "properties": {
22411
- const oldShape = def.shape;
22412
- let changed = false;
22413
- const newShape = {};
22414
- for (const k of Reflect.ownKeys(oldShape)) {
22415
- const mapped = run(oldShape[k]);
22416
- if (mapped !== oldShape[k])
22417
- changed = true;
22418
- newShape[k] = mapped;
22419
- }
22420
- return changed ? clone(s, { ...def, shape: newShape }) : s;
22421
- }
22422
22457
  // A leaf by choice: `parts` are regex fragments, not data positions.
22423
22458
  case "template_literal":
22424
22459
  // Leaves.
@@ -22451,7 +22486,7 @@ function visit(schema, fnOrHandlers) {
22451
22486
  return run(schema);
22452
22487
  }
22453
22488
 
22454
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/classic/deep-partial.js
22489
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/deep-partial.js
22455
22490
  function deepPartial(schema) {
22456
22491
  return visit(schema, {
22457
22492
  object: (s) => s.partial(),
@@ -22463,7 +22498,7 @@ function deepPartial(schema) {
22463
22498
  });
22464
22499
  }
22465
22500
 
22466
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/classic/in-out.js
22501
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/in-out.js
22467
22502
  function withChecks(side, checks) {
22468
22503
  if (!checks?.length)
22469
22504
  return side;
@@ -22493,7 +22528,7 @@ function output(schema) {
22493
22528
  });
22494
22529
  }
22495
22530
 
22496
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/classic/coerce.js
22531
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/coerce.js
22497
22532
  var coerce_exports = {};
22498
22533
  __export(coerce_exports, {
22499
22534
  bigint: () => bigint3,
@@ -23701,11 +23736,32 @@ function parseNativeHistoryText(text3) {
23701
23736
  });
23702
23737
  return { text: plainText, images };
23703
23738
  }
23704
- var historyMessage = external_exports.strictObject({
23705
- role: external_exports.enum(["user", "assistant"]),
23739
+ var nativeMessageActivitySchema = external_exports.strictObject({
23740
+ activityId: external_exports.string().min(1).max(128),
23741
+ activityType: external_exports.string().min(1).max(128),
23742
+ content: external_exports.array(displayContentSchema).max(100).readonly(),
23743
+ input: external_exports.string().max(1e5),
23744
+ locations: external_exports.array(external_exports.string().min(1).max(2048)).max(100).readonly(),
23745
+ name: external_exports.string().max(128),
23746
+ output: external_exports.string().max(1e5),
23747
+ sequence: external_exports.number().int().nonnegative(),
23748
+ status: external_exports.string().min(1).max(64),
23749
+ title: external_exports.string().max(500),
23750
+ toolKind: external_exports.string().max(64)
23751
+ }).readonly();
23752
+ var userHistoryMessage = external_exports.strictObject({
23753
+ role: external_exports.literal("user"),
23754
+ text: external_exports.string().max(SESSION_HISTORY_CHARACTER_LIMIT),
23755
+ images: external_exports.array(historyImage).max(8).readonly().optional()
23756
+ }).readonly();
23757
+ var assistantHistoryMessage = external_exports.strictObject({
23758
+ activities: external_exports.array(nativeMessageActivitySchema).max(100).readonly().default([]),
23759
+ content: external_exports.array(displayContentSchema).max(100).readonly().default([]),
23760
+ role: external_exports.literal("assistant"),
23706
23761
  text: external_exports.string().max(SESSION_HISTORY_CHARACTER_LIMIT),
23707
23762
  images: external_exports.array(historyImage).max(8).readonly().optional()
23708
23763
  }).readonly();
23764
+ var historyMessage = external_exports.discriminatedUnion("role", [userHistoryMessage, assistantHistoryMessage]);
23709
23765
  var availableSessionHistoryObjectSchema = external_exports.strictObject({
23710
23766
  status: external_exports.literal("available"),
23711
23767
  messages: external_exports.array(historyMessage).max(SESSION_HISTORY_MESSAGE_LIMIT).readonly(),
@@ -23714,19 +23770,28 @@ var availableSessionHistoryObjectSchema = external_exports.strictObject({
23714
23770
  coveredMessageIds: external_exports.array(external_exports.string().regex(/^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}:(?:user|agent)$/)).max(2e4).readonly().default([])
23715
23771
  });
23716
23772
  var availableSessionHistorySchema = availableSessionHistoryObjectSchema.readonly();
23717
- var unavailableSessionHistoryObjectSchema = external_exports.strictObject({ status: external_exports.literal("unavailable") });
23773
+ var unavailableSessionHistoryObjectSchema = external_exports.strictObject({
23774
+ status: external_exports.literal("unavailable"),
23775
+ cause: external_exports.strictObject({
23776
+ code: external_exports.string().regex(/^[a-z][a-z0-9_]{0,127}$/),
23777
+ message: external_exports.string().min(1).max(1e3)
23778
+ }).readonly()
23779
+ });
23718
23780
  var unavailableSessionHistorySchema = unavailableSessionHistoryObjectSchema.readonly();
23719
23781
  function withinHistoryContentLimits(history) {
23720
23782
  if (history.status === "unavailable" || history.messages === void 0) {
23721
23783
  return true;
23722
23784
  }
23723
- return history.messages.reduce((total, message) => total + message.text.length, 0) <= SESSION_HISTORY_CHARACTER_LIMIT && history.messages.reduce(
23785
+ return history.messages.reduce(
23786
+ (total, message) => total + message.text.length + (message.role === "assistant" ? JSON.stringify(message.activities).length + JSON.stringify(message.content).length : 0),
23787
+ 0
23788
+ ) <= SESSION_HISTORY_CHARACTER_LIMIT && history.messages.reduce(
23724
23789
  (total, message) => total + (message.images ?? []).reduce((size, image) => size + image.data.length, 0),
23725
23790
  0
23726
23791
  ) <= SESSION_HISTORY_IMAGE_CHARACTER_LIMIT;
23727
23792
  }
23728
23793
  var sessionHistorySchema = external_exports.discriminatedUnion("status", [availableSessionHistorySchema, unavailableSessionHistorySchema]).refine(withinHistoryContentLimits);
23729
- var sessionHistoryPageSchema = external_exports.discriminatedUnion("status", [
23794
+ var nativeMessagePageSchema = external_exports.discriminatedUnion("status", [
23730
23795
  availableSessionHistoryObjectSchema.extend({ nextCursor: external_exports.string().max(512).nullable() }).readonly(),
23731
23796
  unavailableSessionHistoryObjectSchema.extend({ nextCursor: external_exports.null() }).readonly()
23732
23797
  ]).refine(withinHistoryContentLimits);
@@ -24340,7 +24405,7 @@ import { fetch as fetch4, WebSocket as WebSocket2 } from "undici";
24340
24405
  // src/acp/session-manager.ts
24341
24406
  import { spawn as spawn3 } from "node:child_process";
24342
24407
  import {
24343
- methods as methods6,
24408
+ methods as methods7,
24344
24409
  ndJsonStream as ndJsonStream2,
24345
24410
  PROTOCOL_VERSION as PROTOCOL_VERSION2,
24346
24411
  RequestError as RequestError3
@@ -24774,8 +24839,8 @@ function captureActivityDetail(content3, input2, output2) {
24774
24839
  originalBytes
24775
24840
  };
24776
24841
  }
24777
- function recordedDetail(activity) {
24778
- return activity?.detail.kind === "recorded" ? activity.detail : null;
24842
+ function recordedDetail(activity2) {
24843
+ return activity2?.detail.kind === "recorded" ? activity2.detail : null;
24779
24844
  }
24780
24845
  function emptyDisplayContent(type) {
24781
24846
  return {
@@ -24993,7 +25058,7 @@ var AcpActivityTracker = class {
24993
25058
  const previous2 = this.#activities.get(key);
24994
25059
  const identity2 = this.#identity(key);
24995
25060
  const fullOutput = `${recordedDetail(previous2)?.output ?? previous2?.output ?? ""}${text3}`;
24996
- const activity = new AcpActivity(
25061
+ const activity2 = new AcpActivity(
24997
25062
  identity2.id,
24998
25063
  activityType,
24999
25064
  "",
@@ -25007,7 +25072,7 @@ var AcpActivityTracker = class {
25007
25072
  [],
25008
25073
  captureActivityDetail([], "", fullOutput)
25009
25074
  );
25010
- await this.#record(key, activity);
25075
+ await this.#record(key, activity2);
25011
25076
  this.#activeNarrativeKey = key;
25012
25077
  };
25013
25078
  recordPlan = async (plan) => {
@@ -25129,21 +25194,21 @@ var AcpActivityTracker = class {
25129
25194
  return;
25130
25195
  }
25131
25196
  this.#activeNarrativeKey = "";
25132
- const activity = this.#activities.get(key);
25133
- if (activity === void 0) {
25197
+ const activity2 = this.#activities.get(key);
25198
+ if (activity2 === void 0) {
25134
25199
  return;
25135
25200
  }
25136
- const completed = activity.complete();
25137
- if (completed !== activity) {
25201
+ const completed = activity2.complete();
25202
+ if (completed !== activity2) {
25138
25203
  await this.#record(key, completed);
25139
25204
  }
25140
25205
  };
25141
25206
  finish = async () => {
25142
25207
  await this.finishNarrative();
25143
25208
  const entries = [...this.#activities.entries()].sort((left, right) => left[1].sequence - right[1].sequence);
25144
- for (const [key, activity] of entries) {
25145
- const completed = activity.complete();
25146
- if (completed !== activity) {
25209
+ for (const [key, activity2] of entries) {
25210
+ const completed = activity2.complete();
25211
+ if (completed !== activity2) {
25147
25212
  await this.#record(key, completed);
25148
25213
  }
25149
25214
  }
@@ -25158,9 +25223,9 @@ var AcpActivityTracker = class {
25158
25223
  this.#identities.set(key, identity2);
25159
25224
  return identity2;
25160
25225
  };
25161
- #record = async (key, activity) => {
25162
- this.#activities.set(key, activity);
25163
- await this.#onActivity(activity);
25226
+ #record = async (key, activity2) => {
25227
+ this.#activities.set(key, activity2);
25228
+ await this.#onActivity(activity2);
25164
25229
  };
25165
25230
  #recordPlanEntries = async (key, entries) => {
25166
25231
  const identity2 = this.#identity(key);
@@ -32384,7 +32449,7 @@ var nativeSessionPageSchema = external_exports.object({
32384
32449
  }).readonly();
32385
32450
 
32386
32451
  // src/acp/session-config/session-config-protocol.ts
32387
- import { methods as methods5 } from "@agentclientprotocol/sdk";
32452
+ import { methods as methods6 } from "@agentclientprotocol/sdk";
32388
32453
  var AGENT_DEFAULT_REASONING_EFFORT = "agent_default";
32389
32454
  var MAXIMUM_CONFIG_OPTIONS = 100;
32390
32455
  var SessionConfigProtocolError = class extends Error {
@@ -32550,7 +32615,7 @@ var StandardSessionConfigProtocol = class {
32550
32615
  }
32551
32616
  if (existing.type === "select" && existing.category === "mode") {
32552
32617
  await transport.request(
32553
- methods5.agent.session.setMode,
32618
+ methods6.agent.session.setMode,
32554
32619
  { modeId: change.value, sessionId: nativeSessionId },
32555
32620
  "ACP agent exited while setting the session mode",
32556
32621
  change.signal
@@ -32568,7 +32633,7 @@ var StandardSessionConfigProtocol = class {
32568
32633
  value: change.value
32569
32634
  };
32570
32635
  const response = await transport.request(
32571
- methods5.agent.session.setConfigOption,
32636
+ methods6.agent.session.setConfigOption,
32572
32637
  params,
32573
32638
  "ACP agent exited while changing session configuration",
32574
32639
  change.signal
@@ -32788,19 +32853,74 @@ function sessionConfigProtocolForAgent(agentId) {
32788
32853
 
32789
32854
  // src/acp/session-history.ts
32790
32855
  var AcpHistoryReplay = class {
32856
+ #activities = /* @__PURE__ */ new Map();
32791
32857
  #messages = [];
32858
+ #turnActivityIds = /* @__PURE__ */ new Set();
32859
+ #activityTracker = new AcpActivityTracker(async (activity2) => {
32860
+ this.#activities.set(activity2.activityId, activity2);
32861
+ this.#turnActivityIds.add(activity2.activityId);
32862
+ const latest = this.#messages.at(-1);
32863
+ if (latest?.role === "assistant") {
32864
+ this.#messages[this.#messages.length - 1] = {
32865
+ ...latest,
32866
+ activityIds: [...this.#turnActivityIds]
32867
+ };
32868
+ }
32869
+ });
32792
32870
  #lastMessageId = null;
32793
32871
  #characters = 0;
32794
32872
  #truncated = false;
32795
- record = (update) => {
32873
+ record = async (update) => {
32874
+ if (update.sessionUpdate === "agent_thought_chunk") {
32875
+ if (update.content.type === "text") {
32876
+ await this.#activityTracker.recordNarrative(
32877
+ "reasoning",
32878
+ update.messageId ?? "current",
32879
+ update.content.text
32880
+ );
32881
+ }
32882
+ return;
32883
+ }
32884
+ if (update.sessionUpdate === "tool_call") {
32885
+ await this.#activityTracker.recordToolCall(update);
32886
+ return;
32887
+ }
32888
+ if (update.sessionUpdate === "tool_call_update") {
32889
+ await this.#activityTracker.recordToolCallUpdate(update);
32890
+ return;
32891
+ }
32892
+ if (update.sessionUpdate === "plan") {
32893
+ await this.#activityTracker.recordPlan(update);
32894
+ return;
32895
+ }
32896
+ if (update.sessionUpdate === "plan_update") {
32897
+ await this.#activityTracker.recordPlanUpdate(update);
32898
+ return;
32899
+ }
32900
+ if (update.sessionUpdate === "plan_removed") {
32901
+ await this.#activityTracker.removePlan(update);
32902
+ return;
32903
+ }
32796
32904
  if (update.sessionUpdate !== "user_message_chunk" && update.sessionUpdate !== "agent_message_chunk") {
32797
32905
  return;
32798
32906
  }
32799
32907
  if (update.sessionUpdate === "agent_message_chunk" && isProgressMessage(update)) {
32908
+ if (update.content.type === "text") {
32909
+ await this.#activityTracker.recordNarrative(
32910
+ "progress",
32911
+ update.messageId ?? "current",
32912
+ update.content.text
32913
+ );
32914
+ }
32800
32915
  return;
32801
32916
  }
32802
32917
  const role = update.sessionUpdate === "user_message_chunk" ? "user" : "assistant";
32803
32918
  const content3 = update.content;
32919
+ if (role === "assistant" && content3.type !== "text") {
32920
+ await this.#activityTracker.finishNarrative();
32921
+ this.recordAssistantContent(update.messageId ?? null, normalizeContentBlock(content3));
32922
+ return;
32923
+ }
32804
32924
  const text3 = content3.type === "text" ? content3.text : content3.type === "image" ? content3.data.length > 0 ? `[@image](data:${content3.mimeType};base64,${content3.data})` : content3.uri != null && content3.uri.length > 0 ? `[@image](${content3.uri})` : "[image attachment]" : `[${content3.type} attachment]`;
32805
32925
  if (text3.length === 0) {
32806
32926
  return;
@@ -32808,19 +32928,84 @@ var AcpHistoryReplay = class {
32808
32928
  const previous2 = this.#messages.at(-1);
32809
32929
  const id = update.messageId ?? null;
32810
32930
  const continuation = previous2?.role === role && id === this.#lastMessageId;
32931
+ if (role === "user" && !continuation) {
32932
+ await this.#activityTracker.finish();
32933
+ this.#turnActivityIds.clear();
32934
+ }
32811
32935
  const combined = continuation ? `${previous2.text}${text3}` : text3;
32812
32936
  if (continuation) {
32813
32937
  this.#messages.pop();
32814
32938
  this.#characters -= previous2.text.length;
32815
32939
  }
32816
- const bounded = combined.slice(-SESSION_HISTORY_CHARACTER_LIMIT);
32817
- this.#truncated ||= bounded.length < combined.length;
32818
- this.#messages.push({
32819
- role,
32820
- text: bounded
32821
- });
32822
- this.#characters += bounded.length;
32940
+ const bounded2 = combined.slice(-SESSION_HISTORY_CHARACTER_LIMIT);
32941
+ this.#truncated ||= bounded2.length < combined.length;
32942
+ this.#messages.push(
32943
+ role === "user" ? { role, text: bounded2 } : {
32944
+ activityIds: [...this.#turnActivityIds],
32945
+ content: previous2?.role === "assistant" ? previous2.content : [],
32946
+ role,
32947
+ text: bounded2
32948
+ }
32949
+ );
32950
+ this.#characters += bounded2.length;
32823
32951
  this.#lastMessageId = id;
32952
+ this.trimMessages();
32953
+ };
32954
+ snapshot = async () => {
32955
+ await this.#activityTracker.finish();
32956
+ return {
32957
+ status: "available",
32958
+ messages: this.#messages.map(
32959
+ (message) => message.role === "user" ? message : {
32960
+ role: "assistant",
32961
+ text: message.text,
32962
+ content: message.content,
32963
+ activities: message.activityIds.flatMap((id) => {
32964
+ const activity2 = this.#activities.get(id);
32965
+ return activity2 === void 0 ? [] : [
32966
+ {
32967
+ activityId: activity2.activityId,
32968
+ activityType: activity2.activityType,
32969
+ content: activity2.content,
32970
+ input: activity2.input,
32971
+ locations: activity2.locations,
32972
+ name: activity2.name,
32973
+ output: activity2.output,
32974
+ sequence: activity2.sequence,
32975
+ status: activity2.status,
32976
+ title: activity2.title,
32977
+ toolKind: activity2.toolKind
32978
+ }
32979
+ ];
32980
+ })
32981
+ }
32982
+ ),
32983
+ truncated: this.#truncated,
32984
+ coveredCommandIds: [],
32985
+ coveredMessageIds: []
32986
+ };
32987
+ };
32988
+ recordAssistantContent = (messageId, content3) => {
32989
+ const previous2 = this.#messages.at(-1);
32990
+ const continuation = previous2?.role === "assistant" && messageId === this.#lastMessageId;
32991
+ if (continuation) {
32992
+ this.#messages[this.#messages.length - 1] = {
32993
+ ...previous2,
32994
+ activityIds: [...this.#turnActivityIds],
32995
+ content: [...previous2.content, content3]
32996
+ };
32997
+ } else {
32998
+ this.#messages.push({
32999
+ activityIds: [...this.#turnActivityIds],
33000
+ content: [content3],
33001
+ role: "assistant",
33002
+ text: ""
33003
+ });
33004
+ }
33005
+ this.#lastMessageId = messageId;
33006
+ this.trimMessages();
33007
+ };
33008
+ trimMessages = () => {
32824
33009
  while (this.#messages.length > SESSION_HISTORY_PREVIEW_MESSAGE_LIMIT || this.#characters > SESSION_HISTORY_CHARACTER_LIMIT) {
32825
33010
  const removed = this.#messages.shift();
32826
33011
  if (removed !== void 0) {
@@ -32829,13 +33014,6 @@ var AcpHistoryReplay = class {
32829
33014
  this.#truncated = true;
32830
33015
  }
32831
33016
  };
32832
- snapshot = () => ({
32833
- status: "available",
32834
- messages: [...this.#messages],
32835
- truncated: this.#truncated,
32836
- coveredCommandIds: [],
32837
- coveredMessageIds: []
32838
- });
32839
33017
  };
32840
33018
 
32841
33019
  // src/acp/session-store.ts
@@ -33346,13 +33524,13 @@ function normalizeElicitationFields(requestedSchema) {
33346
33524
  if (!isRecord7(requestedSchema) || !isRecord7(requestedSchema["properties"])) {
33347
33525
  return [];
33348
33526
  }
33349
- const properties2 = requestedSchema["properties"];
33527
+ const properties = requestedSchema["properties"];
33350
33528
  const requiredValues = requestedSchema["required"];
33351
33529
  const required2 = new Set(
33352
33530
  Array.isArray(requiredValues) ? requiredValues.filter((entry) => typeof entry === "string") : []
33353
33531
  );
33354
33532
  const normalized = [];
33355
- for (const [name, property] of Object.entries(properties2)) {
33533
+ for (const [name, property] of Object.entries(properties)) {
33356
33534
  if (!isRecord7(property)) {
33357
33535
  continue;
33358
33536
  }
@@ -33451,7 +33629,7 @@ function validateElicitationContent(encoded, requestedSchema) {
33451
33629
  "invalid_elicitation_response"
33452
33630
  );
33453
33631
  }
33454
- const properties2 = requestedSchema["properties"];
33632
+ const properties = requestedSchema["properties"];
33455
33633
  const requiredValue = requestedSchema["required"];
33456
33634
  const required2 = new Set(
33457
33635
  Array.isArray(requiredValue) ? requiredValue.filter((entry) => typeof entry === "string") : []
@@ -33463,7 +33641,7 @@ function validateElicitationContent(encoded, requestedSchema) {
33463
33641
  }
33464
33642
  const validated = {};
33465
33643
  for (const [name, value] of Object.entries(decoded)) {
33466
- const property = properties2[name];
33644
+ const property = properties[name];
33467
33645
  if (!isRecord7(property)) {
33468
33646
  throw new AcpExecutionError(
33469
33647
  `Elicitation field ${name} was not requested`,
@@ -33761,14 +33939,20 @@ var AcpProcessSession = class _AcpProcessSession {
33761
33939
  );
33762
33940
  loadHistory = async (signal) => {
33763
33941
  if (!this.#capabilities.loadSession) {
33764
- return { status: "unavailable" };
33942
+ return {
33943
+ status: "unavailable",
33944
+ cause: {
33945
+ code: "native_history_unsupported",
33946
+ message: "This Agent restores context but does not provide message history."
33947
+ }
33948
+ };
33765
33949
  }
33766
33950
  const history = new AcpHistoryReplay();
33767
33951
  this.#replay = { kind: "capture", history };
33768
33952
  try {
33769
33953
  await this.race(
33770
33954
  this.#connection.agent.request(
33771
- methods6.agent.session.load,
33955
+ methods7.agent.session.load,
33772
33956
  {
33773
33957
  additionalDirectories: [...this.#additionalDirectories],
33774
33958
  cwd: this.#cwd,
@@ -33782,7 +33966,7 @@ var AcpProcessSession = class _AcpProcessSession {
33782
33966
  );
33783
33967
  await this.#updateTail;
33784
33968
  signal.throwIfAborted();
33785
- return await embedLocalHistoryImages(history.snapshot(), signal);
33969
+ return await embedLocalHistoryImages(await history.snapshot(), signal);
33786
33970
  } finally {
33787
33971
  this.#replay = { kind: "idle" };
33788
33972
  }
@@ -33912,7 +34096,7 @@ var AcpProcessSession = class _AcpProcessSession {
33912
34096
  async #initializeAgentOperation(signal) {
33913
34097
  const initialized = await this.race(
33914
34098
  this.#connection.agent.request(
33915
- methods6.agent.initialize,
34099
+ methods7.agent.initialize,
33916
34100
  {
33917
34101
  clientCapabilities: {
33918
34102
  elicitation: { form: {}, url: {} },
@@ -33990,7 +34174,7 @@ var AcpProcessSession = class _AcpProcessSession {
33990
34174
  "session-fork",
33991
34175
  async () => await this.race(
33992
34176
  this.#connection.agent.request(
33993
- methods6.agent.session.fork,
34177
+ methods7.agent.session.fork,
33994
34178
  {
33995
34179
  sessionId: nativeSessionIdSchema.parse(origin.nativeSessionId),
33996
34180
  cwd: this.#cwd,
@@ -34037,7 +34221,7 @@ var AcpProcessSession = class _AcpProcessSession {
34037
34221
  "session-resume",
34038
34222
  async () => await this.race(
34039
34223
  this.#connection.agent.request(
34040
- methods6.agent.session.resume,
34224
+ methods7.agent.session.resume,
34041
34225
  {
34042
34226
  additionalDirectories: [...this.#additionalDirectories],
34043
34227
  cwd: this.#cwd,
@@ -34057,7 +34241,7 @@ var AcpProcessSession = class _AcpProcessSession {
34057
34241
  "session-load",
34058
34242
  async () => await this.race(
34059
34243
  this.#connection.agent.request(
34060
- methods6.agent.session.load,
34244
+ methods7.agent.session.load,
34061
34245
  {
34062
34246
  additionalDirectories: [...this.#additionalDirectories],
34063
34247
  cwd: this.#cwd,
@@ -34096,7 +34280,7 @@ var AcpProcessSession = class _AcpProcessSession {
34096
34280
  "session-new",
34097
34281
  async () => await this.race(
34098
34282
  this.#connection.agent.request(
34099
- methods6.agent.session.new,
34283
+ methods7.agent.session.new,
34100
34284
  {
34101
34285
  additionalDirectories: [...this.#additionalDirectories],
34102
34286
  cwd: this.#cwd,
@@ -34136,7 +34320,7 @@ var AcpProcessSession = class _AcpProcessSession {
34136
34320
  );
34137
34321
  }
34138
34322
  const response = await this.race(
34139
- this.#connection.agent.request(methods6.agent.session.list, cursor === null ? {} : { cursor }, {
34323
+ this.#connection.agent.request(methods7.agent.session.list, cursor === null ? {} : { cursor }, {
34140
34324
  cancellationSignal: signal
34141
34325
  }),
34142
34326
  "ACP agent exited while listing sessions",
@@ -34162,7 +34346,7 @@ var AcpProcessSession = class _AcpProcessSession {
34162
34346
  }
34163
34347
  await this.race(
34164
34348
  this.#connection.agent.request(
34165
- methods6.agent.session.delete,
34349
+ methods7.agent.session.delete,
34166
34350
  { sessionId: nativeSessionIdSchema.parse(nativeSessionId) },
34167
34351
  { cancellationSignal: signal }
34168
34352
  ),
@@ -34309,7 +34493,7 @@ var AcpProcessSession = class _AcpProcessSession {
34309
34493
  try {
34310
34494
  const response = await this.race(
34311
34495
  this.#connection.agent.request(
34312
- methods6.agent.session.prompt,
34496
+ methods7.agent.session.prompt,
34313
34497
  { prompt, sessionId: this.#nativeSessionId },
34314
34498
  { cancellationSignal: options.signal }
34315
34499
  ),
@@ -34406,7 +34590,7 @@ var AcpProcessSession = class _AcpProcessSession {
34406
34590
  try {
34407
34591
  await this.cancelPendingInteractions();
34408
34592
  if (this.#turn.running) {
34409
- await this.#connection.agent.notify(methods6.agent.session.cancel, {
34593
+ await this.#connection.agent.notify(methods7.agent.session.cancel, {
34410
34594
  sessionId: this.#nativeSessionId
34411
34595
  });
34412
34596
  }
@@ -34626,7 +34810,7 @@ var AcpProcessSession = class _AcpProcessSession {
34626
34810
  this.assertNativeSession(notification.sessionId);
34627
34811
  const update = notification.update;
34628
34812
  if (this.#replay.kind === "capture") {
34629
- this.#replay.history.record(update);
34813
+ await this.#replay.history.record(update);
34630
34814
  }
34631
34815
  if (this.#replay.kind !== "idle" && (update.sessionUpdate === "user_message_chunk" || update.sessionUpdate === "agent_message_chunk" || update.sessionUpdate === "agent_thought_chunk" || update.sessionUpdate === "tool_call" || update.sessionUpdate === "tool_call_update" || update.sessionUpdate === "plan" || update.sessionUpdate === "plan_update" || update.sessionUpdate === "plan_removed")) {
34632
34816
  return;
@@ -34750,7 +34934,7 @@ var AcpProcessSession = class _AcpProcessSession {
34750
34934
  if (this.#capabilities.closeSession && this.#nativeSessionId.length > 0) {
34751
34935
  try {
34752
34936
  await this.#connection.agent.request(
34753
- methods6.agent.session.close,
34937
+ methods7.agent.session.close,
34754
34938
  { sessionId: this.#nativeSessionId },
34755
34939
  {
34756
34940
  cancellationSignal: AbortSignal.timeout(PROCESS_STOP_TIMEOUT_MILLISECONDS)
@@ -34917,10 +35101,12 @@ var AcpSessionManager = class {
34917
35101
  #startingProcessCount = 0;
34918
35102
  #transientProcessCount = 0;
34919
35103
  #store;
35104
+ #nativeHistoryReader;
34920
35105
  #observer;
34921
- constructor(observer = new NullAcpSessionObserver(), store = new MemoryAcpSessionStore()) {
35106
+ constructor(observer = new NullAcpSessionObserver(), store = new MemoryAcpSessionStore(), nativeHistoryReader = null) {
34922
35107
  this.#observer = observer;
34923
35108
  this.#store = store;
35109
+ this.#nativeHistoryReader = nativeHistoryReader;
34924
35110
  }
34925
35111
  setObserver = (observer) => {
34926
35112
  this.#observer = observer;
@@ -35682,7 +35868,15 @@ var AcpSessionManager = class {
35682
35868
  loadSessionHistory = async (options) => {
35683
35869
  this.#beginSessionUse(options.sessionId);
35684
35870
  try {
35685
- return await (await this.ensureSession(options)).loadHistory(options.signal);
35871
+ const runtime = await this.ensureSession(options);
35872
+ const stored = this.#store.read(options.sessionId);
35873
+ if (stored instanceof FoundAcpStoredSession && this.#nativeHistoryReader !== null) {
35874
+ const history = await this.#nativeHistoryReader.read(options, stored.session.nativeSessionId);
35875
+ if (history !== null) {
35876
+ return history;
35877
+ }
35878
+ }
35879
+ return await runtime.loadHistory(options.signal);
35686
35880
  } finally {
35687
35881
  this.#endSessionUse(options.sessionId);
35688
35882
  }
@@ -36898,10 +37092,6 @@ var WorkspaceDirectoryService = class {
36898
37092
  };
36899
37093
  };
36900
37094
 
36901
- // src/native-sessions/service.ts
36902
- import { randomUUID } from "node:crypto";
36903
- import { basename as basename5 } from "node:path";
36904
-
36905
37095
  // src/native-sessions/codex-history.ts
36906
37096
  import { spawn as spawn4 } from "node:child_process";
36907
37097
  var responseSchema = external_exports.union([
@@ -36919,7 +37109,12 @@ var threadSchema = external_exports.object({
36919
37109
  })
36920
37110
  });
36921
37111
  var turnsSchema = external_exports.object({
36922
- data: external_exports.array(external_exports.object({ items: external_exports.array(external_exports.unknown()).max(1e5) })).max(SESSION_HISTORY_PREVIEW_MESSAGE_LIMIT),
37112
+ data: external_exports.array(
37113
+ external_exports.object({
37114
+ error: external_exports.unknown().nullish(),
37115
+ items: external_exports.array(external_exports.unknown()).max(1e5)
37116
+ })
37117
+ ).max(SESSION_HISTORY_PREVIEW_MESSAGE_LIMIT),
36923
37118
  nextCursor: external_exports.string().nullish()
36924
37119
  });
36925
37120
  var itemTypeSchema = external_exports.object({ type: external_exports.string().min(1).max(80) });
@@ -36929,12 +37124,62 @@ var userMessageSchema = external_exports.object({
36929
37124
  var textSchema = external_exports.object({ text: external_exports.string() });
36930
37125
  var imageSchema = external_exports.object({ url: external_exports.string() });
36931
37126
  var agentMessageSchema = textSchema.extend({ phase: external_exports.string().nullish() });
36932
- function decodeHistory(thread, value) {
37127
+ var reasoningSchema = external_exports.object({
37128
+ id: external_exports.string(),
37129
+ summary: external_exports.array(external_exports.string()).max(1e4),
37130
+ content: external_exports.array(external_exports.string()).max(1e4)
37131
+ });
37132
+ var commandExecutionSchema = external_exports.object({
37133
+ id: external_exports.string(),
37134
+ command: external_exports.string(),
37135
+ cwd: external_exports.string(),
37136
+ status: external_exports.string(),
37137
+ commandActions: external_exports.array(external_exports.object({ type: external_exports.string() }).passthrough()).max(100),
37138
+ aggregatedOutput: external_exports.string().nullish(),
37139
+ exitCode: external_exports.number().int().nullish()
37140
+ });
37141
+ function bounded(value, maximum) {
37142
+ return value.slice(0, maximum);
37143
+ }
37144
+ function activity(activityId, activityType, sequence, fields) {
37145
+ return {
37146
+ activityId: bounded(activityId, 128) || `history-${sequence.toString()}`,
37147
+ activityType,
37148
+ content: [],
37149
+ input: bounded(fields.input, 1e5),
37150
+ locations: fields.locations.filter((location) => location.length > 0).map((location) => bounded(location, 2048)).slice(0, 100),
37151
+ name: bounded(fields.name, 128),
37152
+ output: bounded(fields.output, 1e5),
37153
+ sequence,
37154
+ status: bounded(fields.status, 64),
37155
+ title: bounded(fields.title, 500),
37156
+ toolKind: bounded(fields.toolKind, 64)
37157
+ };
37158
+ }
37159
+ function errorMessage(value) {
37160
+ if (typeof value === "string") {
37161
+ return value;
37162
+ }
37163
+ if (typeof value === "object" && value !== null) {
37164
+ const message = Reflect.get(value, "message");
37165
+ if (typeof message === "string") {
37166
+ return message;
37167
+ }
37168
+ }
37169
+ return JSON.stringify(value) ?? "Codex stopped before completing this turn.";
37170
+ }
37171
+ function messageSize(message) {
37172
+ return message.text.length + (message.role === "assistant" ? JSON.stringify(message.activities).length + JSON.stringify(message.content).length : 0);
37173
+ }
37174
+ function decodeHistory(thread, value, options) {
36933
37175
  const page = turnsSchema.parse(value);
36934
37176
  const messages = [];
36935
37177
  let characters = 0;
36936
37178
  let truncated = page.nextCursor != null;
36937
37179
  for (const turn of page.data.toReversed()) {
37180
+ const activities = [];
37181
+ let sequence = 0;
37182
+ let assistantMessageIndex = null;
36938
37183
  for (const item of turn.items) {
36939
37184
  const { type } = itemTypeSchema.parse(item);
36940
37185
  let message;
@@ -36957,9 +37202,60 @@ function decodeHistory(thread, value) {
36957
37202
  } else if (type === "agentMessage") {
36958
37203
  const agent = agentMessageSchema.parse(item);
36959
37204
  if (agent.phase === "commentary") {
37205
+ if (options.detail === "rich" && agent.text.length > 0) {
37206
+ activities.push(
37207
+ activity(`progress-${sequence.toString()}`, "progress", sequence, {
37208
+ input: "",
37209
+ locations: [],
37210
+ name: "",
37211
+ output: agent.text,
37212
+ status: "completed",
37213
+ title: "Progress",
37214
+ toolKind: ""
37215
+ })
37216
+ );
37217
+ sequence += 1;
37218
+ }
36960
37219
  continue;
36961
37220
  }
36962
- message = { role: "assistant", text: agent.text };
37221
+ message = { activities: activities.slice(-100), content: [], role: "assistant", text: agent.text };
37222
+ } else if (type === "reasoning" && options.detail === "rich") {
37223
+ const reasoning = reasoningSchema.parse(item);
37224
+ const output2 = (reasoning.summary.length > 0 ? reasoning.summary : reasoning.content).join("\n\n");
37225
+ if (output2.length > 0) {
37226
+ activities.push(
37227
+ activity(reasoning.id, "reasoning", sequence, {
37228
+ input: "",
37229
+ locations: [],
37230
+ name: "",
37231
+ output: output2,
37232
+ status: "completed",
37233
+ title: "Reasoning",
37234
+ toolKind: ""
37235
+ })
37236
+ );
37237
+ sequence += 1;
37238
+ }
37239
+ continue;
37240
+ } else if (type === "commandExecution" && options.detail === "rich") {
37241
+ const command = commandExecutionSchema.parse(item);
37242
+ const action = command.commandActions[0]?.type ?? "execute";
37243
+ activities.push(
37244
+ activity(command.id, "tool", sequence, {
37245
+ input: JSON.stringify({ command: command.command, cwd: command.cwd }),
37246
+ locations: [command.cwd],
37247
+ name: "",
37248
+ output: JSON.stringify({
37249
+ formatted_output: command.aggregatedOutput ?? "",
37250
+ ...command.exitCode == null ? {} : { exit_code: command.exitCode }
37251
+ }),
37252
+ status: command.status === "completed" ? "completed" : "failed",
37253
+ title: command.command,
37254
+ toolKind: action
37255
+ })
37256
+ );
37257
+ sequence += 1;
37258
+ continue;
36963
37259
  } else {
36964
37260
  continue;
36965
37261
  }
@@ -36969,14 +37265,48 @@ function decodeHistory(thread, value) {
36969
37265
  }
36970
37266
  truncated ||= text3.length < message.text.length;
36971
37267
  messages.push({ ...message, text: text3 });
36972
- characters += text3.length;
36973
- while (messages.length > SESSION_HISTORY_PREVIEW_MESSAGE_LIMIT || characters > SESSION_HISTORY_CHARACTER_LIMIT) {
36974
- const removed = messages.shift();
36975
- if (removed !== void 0) {
36976
- characters -= removed.text.length;
36977
- }
36978
- truncated = true;
37268
+ if (message.role === "assistant") {
37269
+ assistantMessageIndex = messages.length - 1;
37270
+ }
37271
+ characters += messageSize({ ...message, text: text3 });
37272
+ }
37273
+ if (options.detail === "rich" && turn.error != null) {
37274
+ activities.push(
37275
+ activity(`agent-error-${sequence.toString()}`, "tool", sequence, {
37276
+ input: "",
37277
+ locations: [],
37278
+ name: "",
37279
+ output: errorMessage(turn.error),
37280
+ status: "failed",
37281
+ title: "Agent error",
37282
+ toolKind: "other"
37283
+ })
37284
+ );
37285
+ }
37286
+ if (assistantMessageIndex !== null) {
37287
+ const assistant = messages[assistantMessageIndex];
37288
+ if (assistant?.role === "assistant") {
37289
+ characters -= messageSize(assistant);
37290
+ const updated = { ...assistant, activities: activities.slice(-100) };
37291
+ messages[assistantMessageIndex] = updated;
37292
+ characters += messageSize(updated);
37293
+ }
37294
+ } else if (activities.length > 0) {
37295
+ const message = {
37296
+ activities: activities.slice(-100),
37297
+ content: [],
37298
+ role: "assistant",
37299
+ text: ""
37300
+ };
37301
+ messages.push(message);
37302
+ characters += messageSize(message);
37303
+ }
37304
+ while (messages.length > SESSION_HISTORY_PREVIEW_MESSAGE_LIMIT || characters > SESSION_HISTORY_CHARACTER_LIMIT) {
37305
+ const removed = messages.shift();
37306
+ if (removed !== void 0) {
37307
+ characters -= messageSize(removed);
36979
37308
  }
37309
+ truncated = true;
36980
37310
  }
36981
37311
  }
36982
37312
  return {
@@ -36991,7 +37321,7 @@ function decodeHistory(thread, value) {
36991
37321
  }
36992
37322
  };
36993
37323
  }
36994
- async function readCodexHistory(agent, cwd, nativeSessionId, signal) {
37324
+ async function readCodexHistoryWithOptions(agent, cwd, nativeSessionId, signal, options) {
36995
37325
  signal.throwIfAborted();
36996
37326
  nativeSessionIdSchema.parse(nativeSessionId);
36997
37327
  if (agent.id !== "codex" || !await revalidateExecutable(agent.agentIdentity)) {
@@ -37085,13 +37415,13 @@ async function readCodexHistory(agent, cwd, nativeSessionId, signal) {
37085
37415
  threadId: nativeSessionId,
37086
37416
  limit: SESSION_HISTORY_PREVIEW_MESSAGE_LIMIT,
37087
37417
  sortDirection: "desc",
37088
- itemsView: "summary"
37418
+ itemsView: options.detail === "rich" ? "full" : "summary"
37089
37419
  }
37090
37420
  });
37091
37421
  break;
37092
37422
  }
37093
37423
  case "turns":
37094
- response.resolve(decodeHistory(state.thread, message.result));
37424
+ response.resolve(decodeHistory(state.thread, message.result, options));
37095
37425
  return;
37096
37426
  default: {
37097
37427
  const unhandled = state;
@@ -37148,8 +37478,12 @@ async function readCodexHistory(agent, cwd, nativeSessionId, signal) {
37148
37478
  child.removeListener("exit", onExit);
37149
37479
  }
37150
37480
  }
37481
+ var readCodexHistory = async (agent, cwd, nativeSessionId, signal) => await readCodexHistoryWithOptions(agent, cwd, nativeSessionId, signal, { detail: "messages" });
37482
+ var readCodexFullHistory = async (agent, cwd, nativeSessionId, signal) => await readCodexHistoryWithOptions(agent, cwd, nativeSessionId, signal, { detail: "rich" });
37151
37483
 
37152
37484
  // src/native-sessions/service.ts
37485
+ import { randomUUID } from "node:crypto";
37486
+ import { basename as basename5 } from "node:path";
37153
37487
  var NativeSessionService = class {
37154
37488
  #entries = /* @__PURE__ */ new Map();
37155
37489
  #cursors = /* @__PURE__ */ new Map();
@@ -39272,28 +39606,28 @@ var CoalescingDaemonActivityPublisher = class {
39272
39606
  }
39273
39607
  this.#pending.clear();
39274
39608
  this.#scheduled.clear();
39275
- for (const activity of activities) {
39276
- this.#publish(activity);
39609
+ for (const activity2 of activities) {
39610
+ this.#publish(activity2);
39277
39611
  }
39278
39612
  };
39279
- record = (activity) => {
39280
- if (activity.status !== "pending" && activity.status !== "running") {
39281
- this.#discardPending(activity.activityId);
39282
- this.#publishedActivityIds.add(activity.activityId);
39283
- this.#publish(activity);
39613
+ record = (activity2) => {
39614
+ if (activity2.status !== "pending" && activity2.status !== "running") {
39615
+ this.#discardPending(activity2.activityId);
39616
+ this.#publishedActivityIds.add(activity2.activityId);
39617
+ this.#publish(activity2);
39284
39618
  return Promise.resolve();
39285
39619
  }
39286
- if (!this.#publishedActivityIds.has(activity.activityId)) {
39287
- this.#publishedActivityIds.add(activity.activityId);
39288
- this.#publish(activity);
39620
+ if (!this.#publishedActivityIds.has(activity2.activityId)) {
39621
+ this.#publishedActivityIds.add(activity2.activityId);
39622
+ this.#publish(activity2);
39289
39623
  return Promise.resolve();
39290
39624
  }
39291
- this.#pending.set(activity.activityId, activity);
39292
- if (!this.#scheduled.has(activity.activityId)) {
39625
+ this.#pending.set(activity2.activityId, activity2);
39626
+ if (!this.#scheduled.has(activity2.activityId)) {
39293
39627
  this.#scheduled.set(
39294
- activity.activityId,
39628
+ activity2.activityId,
39295
39629
  this.#timer.schedule(
39296
- () => this.#flushActivity(activity.activityId),
39630
+ () => this.#flushActivity(activity2.activityId),
39297
39631
  AGENT_ACTIVITY_COALESCING_MILLISECONDS
39298
39632
  )
39299
39633
  );
@@ -39306,30 +39640,30 @@ var CoalescingDaemonActivityPublisher = class {
39306
39640
  this.#pending.delete(activityId);
39307
39641
  };
39308
39642
  #flushActivity = (activityId) => {
39309
- const activity = this.#pending.get(activityId);
39643
+ const activity2 = this.#pending.get(activityId);
39310
39644
  this.#discardPending(activityId);
39311
- if (activity !== void 0) {
39312
- this.#publish(activity);
39645
+ if (activity2 !== void 0) {
39646
+ this.#publish(activity2);
39313
39647
  }
39314
39648
  };
39315
39649
  };
39316
- function daemonActivity(command, activity) {
39650
+ function daemonActivity(command, activity2) {
39317
39651
  return {
39318
- activityId: activity.activityId,
39319
- activityType: activity.activityType,
39652
+ activityId: activity2.activityId,
39653
+ activityType: activity2.activityType,
39320
39654
  commandId: command.commandId,
39321
- content: activity.content,
39322
- detail: activity.detail,
39323
- input: activity.input,
39655
+ content: activity2.content,
39656
+ detail: activity2.detail,
39657
+ input: activity2.input,
39324
39658
  kind: AGENT_ACTIVITY_KIND,
39325
- locations: activity.locations,
39326
- name: activity.name,
39327
- output: activity.output,
39328
- sequence: activity.sequence,
39659
+ locations: activity2.locations,
39660
+ name: activity2.name,
39661
+ output: activity2.output,
39662
+ sequence: activity2.sequence,
39329
39663
  sessionId: command.sessionId,
39330
- status: activity.status,
39331
- title: activity.title,
39332
- toolKind: activity.toolKind
39664
+ status: activity2.status,
39665
+ title: activity2.title,
39666
+ toolKind: activity2.toolKind
39333
39667
  };
39334
39668
  }
39335
39669
  function reportFailure(publisher, command, code, message, attemptId) {
@@ -39828,7 +40162,10 @@ async function executeSessionLiveHistoryLoad(socket, command, config2, directori
39828
40162
  sessionId: command.sessionId
39829
40163
  });
39830
40164
  send(socket, {
39831
- history: { status: "unavailable" },
40165
+ history: {
40166
+ status: "unavailable",
40167
+ cause: { code: operationErrorCode(error62), message: operationErrorMessage(error62) }
40168
+ },
39832
40169
  kind: "session.live-history.loaded",
39833
40170
  requestId: command.requestId,
39834
40171
  sessionId: command.sessionId
@@ -39875,8 +40212,8 @@ async function executeSessionConfigure(publisher, socket, command, config2, dire
39875
40212
  }
39876
40213
  }
39877
40214
  async function executePrompt(outbox, publisher, command, config2, directories, audit, sessions, attemptId, activateAttempt, timer, signal) {
39878
- const activities = new CoalescingDaemonActivityPublisher(timer, (activity) => {
39879
- publisher.recordAttempt(command.sessionId, daemonActivity(command, activity), attemptId);
40215
+ const activities = new CoalescingDaemonActivityPublisher(timer, (activity2) => {
40216
+ publisher.recordAttempt(command.sessionId, daemonActivity(command, activity2), attemptId);
39880
40217
  });
39881
40218
  const text3 = new CoalescingTextPublisher(
39882
40219
  timer,
@@ -41273,7 +41610,9 @@ async function runDaemon(config2, audit, signal, timer = systemDaemonTimer, opti
41273
41610
  }
41274
41611
  publisher.recordAttempt(sessionId, event, attemptId);
41275
41612
  };
41276
- const sessions = new AcpSessionManager(new DaemonAcpObserver(recordSessionEvent), sessionStore);
41613
+ const sessions = new AcpSessionManager(new DaemonAcpObserver(recordSessionEvent), sessionStore, {
41614
+ read: async (options2, nativeSessionId) => options2.agent.id === "codex" ? (await readCodexFullHistory(options2.agent, options2.cwd, nativeSessionId, options2.signal)).history : null
41615
+ });
41277
41616
  const directories = new WorkspaceDirectoryService(config2.bindingId, config2.defaultWorkspace);
41278
41617
  const installationObserver = new DaemonInstallationObserver();
41279
41618
  const diagnostics = new RelayConnectionDiagnostics(audit, config2.channelId, config2.relayUrl);