@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/cli.js CHANGED
@@ -11,7 +11,7 @@ import { mkdir as mkdir6 } from "node:fs/promises";
11
11
  // package.json
12
12
  var package_default = {
13
13
  name: "@moxt-ai/mobius",
14
- version: "0.0.69",
14
+ version: "0.0.71",
15
15
  description: "Mobius CLI for pairing and running local AI agent services.",
16
16
  type: "module",
17
17
  bin: {
@@ -53,12 +53,12 @@ var package_default = {
53
53
  "mdast-util-from-markdown": "2.0.3",
54
54
  undici: "8.10.2",
55
55
  "unist-util-visit": "5.1.0",
56
- zod: "^4.6.2"
56
+ zod: "^4.6.5"
57
57
  },
58
58
  devDependencies: {
59
59
  "@moxt-ai/mobius-protocol": "workspace:*",
60
60
  "@types/mdast": "4.0.4",
61
- "@types/node": "^24.13.4",
61
+ "@types/node": "^24.13.5",
62
62
  esbuild: "0.28.2"
63
63
  },
64
64
  main: "dist/index.js",
@@ -1821,6 +1821,47 @@ var HermesAgentSpecification = class extends DirectAcpAgentDefinition {
1821
1821
  };
1822
1822
  };
1823
1823
 
1824
+ // src/agent-catalog/agents/oh-my-pi-agent.ts
1825
+ import {
1826
+ methods as methods2
1827
+ } from "@agentclientprotocol/sdk";
1828
+ var ACP_PROBE_TIMEOUT_MILLISECONDS2 = 3e4;
1829
+ var OH_MY_PI_TESTED_VERSION = "18.2.7";
1830
+ var OhMyPiAgentSpecification = class extends DirectAcpAgentDefinition {
1831
+ acpProbeTimeoutMilliseconds = ACP_PROBE_TIMEOUT_MILLISECONDS2;
1832
+ adapterVersion = OH_MY_PI_TESTED_VERSION;
1833
+ authenticationCommand = () => "omp";
1834
+ agentExecutable = "omp";
1835
+ agentOverrideVariable = "MOBIUS_OH_MY_PI_PATH";
1836
+ id = "oh-my-pi";
1837
+ label = "Oh My Pi";
1838
+ constructor() {
1839
+ super("MOBIUS_OH_MY_PI_PATH", ["acp"], ["agents", "oh-my-pi", OH_MY_PI_TESTED_VERSION, "bin", "omp"]);
1840
+ }
1841
+ verifyAcp = async (connection, initialized, defaultWorkspace, signal) => {
1842
+ const capabilities = initialized.agentCapabilities ?? {};
1843
+ if (capabilities.loadSession !== true) {
1844
+ throw new AgentProbeError("acp_incompatible", "Oh My Pi does not support ACP session recovery");
1845
+ }
1846
+ const session = await connection.agent.request(
1847
+ methods2.agent.session.new,
1848
+ { additionalDirectories: [], cwd: defaultWorkspace, mcpServers: [] },
1849
+ { cancellationSignal: signal }
1850
+ );
1851
+ if (session.sessionId.length === 0) {
1852
+ throw new AgentProbeError("acp_incompatible", "Oh My Pi returned an invalid ACP session");
1853
+ }
1854
+ const prompt = await connection.agent.request(
1855
+ methods2.agent.session.prompt,
1856
+ { prompt: [{ text: "/session", type: "text" }], sessionId: session.sessionId },
1857
+ { cancellationSignal: signal }
1858
+ );
1859
+ if (prompt.stopReason !== "end_turn") {
1860
+ throw new AgentProbeError("acp_incompatible", "Oh My Pi did not complete its ACP conformance prompt");
1861
+ }
1862
+ };
1863
+ };
1864
+
1824
1865
  // src/agent-catalog/agents/opencode-agent.ts
1825
1866
  import { join as join9 } from "node:path";
1826
1867
 
@@ -2136,7 +2177,7 @@ var OpenCodeAgentSpecification = class extends DirectAcpAgentDefinition {
2136
2177
  // src/agent-catalog/agents/pi-agent.ts
2137
2178
  import { join as join10 } from "node:path";
2138
2179
  import {
2139
- methods as methods2
2180
+ methods as methods3
2140
2181
  } from "@agentclientprotocol/sdk";
2141
2182
 
2142
2183
  // src/agent-installation/pi-managed-packages.ts
@@ -2156,9 +2197,9 @@ var PI_AGENT_PACKAGE = new SriManagedNpmPackageDefinition(
2156
2197
  );
2157
2198
 
2158
2199
  // src/agent-catalog/agents/pi-agent.ts
2159
- var ACP_PROBE_TIMEOUT_MILLISECONDS2 = 3e4;
2200
+ var ACP_PROBE_TIMEOUT_MILLISECONDS3 = 3e4;
2160
2201
  var PiAgentSpecification = class extends BridgedAcpAgentDefinition {
2161
- acpProbeTimeoutMilliseconds = ACP_PROBE_TIMEOUT_MILLISECONDS2;
2202
+ acpProbeTimeoutMilliseconds = ACP_PROBE_TIMEOUT_MILLISECONDS3;
2162
2203
  adapterEnvironmentVariable = "PI_ACP_PI_COMMAND";
2163
2204
  adapterOverrideVariable = "MOBIUS_PI_ACP_PATH";
2164
2205
  adapterPackageDefinition = PI_ACP_PACKAGE;
@@ -2203,7 +2244,7 @@ var PiAgentSpecification = class extends BridgedAcpAgentDefinition {
2203
2244
  throw new AgentProbeError("acp_incompatible", "Pi ACP adapter does not support session recovery");
2204
2245
  }
2205
2246
  const session = await connection.agent.request(
2206
- methods2.agent.session.new,
2247
+ methods3.agent.session.new,
2207
2248
  {
2208
2249
  additionalDirectories: [],
2209
2250
  cwd: defaultWorkspace,
@@ -2215,7 +2256,7 @@ var PiAgentSpecification = class extends BridgedAcpAgentDefinition {
2215
2256
  throw new AgentProbeError("acp_incompatible", "Pi ACP adapter returned an invalid session");
2216
2257
  }
2217
2258
  const prompt = await connection.agent.request(
2218
- methods2.agent.session.prompt,
2259
+ methods3.agent.session.prompt,
2219
2260
  {
2220
2261
  prompt: [{ text: "/session", type: "text" }],
2221
2262
  sessionId: session.sessionId
@@ -2327,6 +2368,7 @@ function supportedLocalAgentSpecifications() {
2327
2368
  new DeepSeekHarnessAgentSpecification(),
2328
2369
  new HermesAgentSpecification(),
2329
2370
  new OpenCodeAgentSpecification(),
2371
+ new OhMyPiAgentSpecification(),
2330
2372
  new CursorCliAgentSpecification(),
2331
2373
  new GrokBuildAgentSpecification(),
2332
2374
  new WorkBuddyAgentSpecification(),
@@ -2337,7 +2379,7 @@ function supportedLocalAgentSpecifications() {
2337
2379
  // src/agent-catalog/acp-readiness-probe.ts
2338
2380
  import { spawn as spawn2 } from "node:child_process";
2339
2381
  import {
2340
- methods as methods4,
2382
+ methods as methods5,
2341
2383
  ndJsonStream,
2342
2384
  PROTOCOL_VERSION,
2343
2385
  RequestError as RequestError2
@@ -2346,20 +2388,20 @@ import {
2346
2388
  // src/acp/create-client.ts
2347
2389
  import {
2348
2390
  client,
2349
- methods as methods3
2391
+ methods as methods4
2350
2392
  } from "@agentclientprotocol/sdk";
2351
2393
  function discardExtensionParams(_params) {
2352
2394
  return Object.freeze({});
2353
2395
  }
2354
2396
  var createAcpClient = (handler) => client({ name: "mobius" }).onRequest(
2355
- methods3.client.session.requestPermission,
2397
+ methods4.client.session.requestPermission,
2356
2398
  async (context) => await handler.onPermission(context.params, context.signal)
2357
2399
  ).onRequest(
2358
- methods3.client.elicitation.create,
2400
+ methods4.client.elicitation.create,
2359
2401
  async (context) => await handler.onElicitation(context.params, context.signal)
2360
- ).onNotification(methods3.client.session.update, async (context) => {
2402
+ ).onNotification(methods4.client.session.update, async (context) => {
2361
2403
  await handler.onUpdate(context.params);
2362
- }).onNotification(methods3.client.elicitation.complete, async (context) => {
2404
+ }).onNotification(methods4.client.elicitation.complete, async (context) => {
2363
2405
  await handler.onElicitationComplete(context.params);
2364
2406
  }).onRequest("cursor/ask_question", discardExtensionParams, async () => ({
2365
2407
  outcome: {
@@ -2490,7 +2532,7 @@ async function probeAcpReadiness(specification, agent, environment, defaultWorks
2490
2532
  try {
2491
2533
  const initialized = await Promise.race([
2492
2534
  connection.agent.request(
2493
- methods4.agent.initialize,
2535
+ methods5.agent.initialize,
2494
2536
  {
2495
2537
  clientCapabilities: {},
2496
2538
  clientInfo: { name: "mobius", version: "0.0.3" },
@@ -2923,7 +2965,7 @@ async function discoverLocalAgentInventory(options) {
2923
2965
  // src/config.ts
2924
2966
  import { join as join14, resolve as resolve3 } from "node:path";
2925
2967
 
2926
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/classic/external.js
2968
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/external.js
2927
2969
  var external_exports = {};
2928
2970
  __export(external_exports, {
2929
2971
  $brand: () => $brand,
@@ -2993,7 +3035,6 @@ __export(external_exports, {
2993
3035
  ZodPrefault: () => ZodPrefault,
2994
3036
  ZodPreprocess: () => ZodPreprocess,
2995
3037
  ZodPromise: () => ZodPromise,
2996
- ZodProperties: () => ZodProperties,
2997
3038
  ZodReadonly: () => ZodReadonly,
2998
3039
  ZodRealError: () => ZodRealError,
2999
3040
  ZodRecord: () => ZodRecord,
@@ -3037,6 +3078,7 @@ __export(external_exports, {
3037
3078
  creditCard: () => creditCard2,
3038
3079
  cuid: () => cuid3,
3039
3080
  cuid2: () => cuid22,
3081
+ currencyCode: () => currencyCode2,
3040
3082
  custom: () => custom,
3041
3083
  date: () => date2,
3042
3084
  decode: () => decode2,
@@ -3130,7 +3172,7 @@ __export(external_exports, {
3130
3172
  preprocess: () => preprocess,
3131
3173
  prettifyError: () => prettifyError,
3132
3174
  promise: () => promise,
3133
- properties: () => properties,
3175
+ properties: () => _properties,
3134
3176
  property: () => _property,
3135
3177
  readonly: () => readonly,
3136
3178
  record: () => record,
@@ -3186,7 +3228,7 @@ __export(external_exports, {
3186
3228
  xor: () => xor
3187
3229
  });
3188
3230
 
3189
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/core/index.js
3231
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/index.js
3190
3232
  var core_exports2 = {};
3191
3233
  __export(core_exports2, {
3192
3234
  $ZodAny: () => $ZodAny,
@@ -3218,6 +3260,7 @@ __export(core_exports2, {
3218
3260
  $ZodCheckMultipleOf: () => $ZodCheckMultipleOf,
3219
3261
  $ZodCheckNumberFormat: () => $ZodCheckNumberFormat,
3220
3262
  $ZodCheckOverwrite: () => $ZodCheckOverwrite,
3263
+ $ZodCheckProperties: () => $ZodCheckProperties,
3221
3264
  $ZodCheckProperty: () => $ZodCheckProperty,
3222
3265
  $ZodCheckRegex: () => $ZodCheckRegex,
3223
3266
  $ZodCheckSizeEquals: () => $ZodCheckSizeEquals,
@@ -3271,7 +3314,6 @@ __export(core_exports2, {
3271
3314
  $ZodPrefault: () => $ZodPrefault,
3272
3315
  $ZodPreprocess: () => $ZodPreprocess,
3273
3316
  $ZodPromise: () => $ZodPromise,
3274
- $ZodProperties: () => $ZodProperties,
3275
3317
  $ZodReadonly: () => $ZodReadonly,
3276
3318
  $ZodRealError: () => $ZodRealError,
3277
3319
  $ZodRecord: () => $ZodRecord,
@@ -3439,6 +3481,7 @@ __export(core_exports2, {
3439
3481
  _xor: () => _xor,
3440
3482
  base64Charset: () => base64Charset,
3441
3483
  base64urlCharset: () => base64urlCharset,
3484
+ canParseURL: () => canParseURL,
3442
3485
  clone: () => clone,
3443
3486
  compile: () => compile,
3444
3487
  compileFn: () => compileFn,
@@ -3461,7 +3504,6 @@ __export(core_exports2, {
3461
3504
  initializeContext: () => initializeContext,
3462
3505
  isBackEdge: () => isBackEdge,
3463
3506
  isRecursiveSchema: () => isRecursiveSchema,
3464
- isTransforming: () => isTransforming,
3465
3507
  isValidBase64: () => isValidBase64,
3466
3508
  isValidBase64URL: () => isValidBase64URL,
3467
3509
  isValidCIDRv6: () => isValidCIDRv6,
@@ -3498,11 +3540,12 @@ __export(core_exports2, {
3498
3540
  util: () => util_exports,
3499
3541
  validate: () => validate,
3500
3542
  validateAsync: () => validateAsync,
3543
+ validateURL: () => validateURL,
3501
3544
  version: () => version,
3502
3545
  withParser: () => withParser
3503
3546
  });
3504
3547
 
3505
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/core/util.js
3548
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/util.js
3506
3549
  var util_exports = {};
3507
3550
  __export(util_exports, {
3508
3551
  BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES,
@@ -4239,9 +4282,6 @@ function members(proto, table) {
4239
4282
  else
4240
4283
  defineBound(proto, key, desc.value);
4241
4284
  }
4242
- for (const sym of Object.getOwnPropertySymbols(table)) {
4243
- defineBound(proto, sym, table[sym]);
4244
- }
4245
4285
  }
4246
4286
  function own(inst, key, value, enumerable = true) {
4247
4287
  Object.defineProperty(inst, key, { configurable: true, writable: true, enumerable, value });
@@ -4348,7 +4388,7 @@ function constantCatch(value) {
4348
4388
  return fn;
4349
4389
  }
4350
4390
 
4351
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/core/core.js
4391
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/core.js
4352
4392
  var _a;
4353
4393
  var NEVER = /* @__PURE__ */ Object.freeze({
4354
4394
  status: "aborted"
@@ -4394,8 +4434,7 @@ function $constructor(name, initializer3, proto, params) {
4394
4434
  } finally {
4395
4435
  _zodDesc.value = void 0;
4396
4436
  }
4397
- }
4398
- if (inst._zod.traits.has(name)) {
4437
+ } else if (inst._zod.traits.has(name)) {
4399
4438
  return;
4400
4439
  }
4401
4440
  inst._zod.traits.add(name);
@@ -4471,7 +4510,7 @@ function config(newConfig) {
4471
4510
  return globalConfig;
4472
4511
  }
4473
4512
 
4474
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/core/errors.js
4513
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/errors.js
4475
4514
  function _getMessage() {
4476
4515
  const internals = this._zod;
4477
4516
  internals.message ?? (internals.message = JSON.stringify(internals.def, jsonStringifyReplacer, 2));
@@ -4663,7 +4702,7 @@ function prettifyError(error62) {
4663
4702
  return lines.join("\n");
4664
4703
  }
4665
4704
 
4666
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/core/parse.js
4705
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/parse.js
4667
4706
  function finalizeParams(callee, params) {
4668
4707
  return { callee: params?.callee ?? callee, Err: params?.Err };
4669
4708
  }
@@ -4823,7 +4862,7 @@ var _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
4823
4862
  };
4824
4863
  var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync($ZodRealError);
4825
4864
 
4826
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/core/regexes.js
4865
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/regexes.js
4827
4866
  var regexes_exports = {};
4828
4867
  __export(regexes_exports, {
4829
4868
  anyString: () => anyString,
@@ -4837,6 +4876,7 @@ __export(regexes_exports, {
4837
4876
  creditCard: () => creditCard,
4838
4877
  cuid: () => cuid,
4839
4878
  cuid2: () => cuid2,
4879
+ currencyCode: () => currencyCode,
4840
4880
  date: () => date,
4841
4881
  datetime: () => datetime,
4842
4882
  domain: () => domain,
@@ -4935,6 +4975,7 @@ var domain = /^(?=.{1,253}$)([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a
4935
4975
  var httpProtocol = /^https?$/;
4936
4976
  var e164 = /^\+[1-9]\d{6,14}$/;
4937
4977
  var creditCard = /^\d(?:[ -]?\d){11,18}$/;
4978
+ 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)$/;
4938
4979
  var iban = /^[A-Z]{2}(?!00|01|99)\d{2}[A-Z0-9]{11,30}$/;
4939
4980
  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])))`;
4940
4981
  function anchor(source) {
@@ -4993,7 +5034,7 @@ var sha512_hex = /^[0-9a-fA-F]{128}$/;
4993
5034
  var sha512_base64 = /* @__PURE__ */ fixedBase64(86, "==");
4994
5035
  var sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
4995
5036
 
4996
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/core/checks.js
5037
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/checks.js
4997
5038
  var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
4998
5039
  var _a3;
4999
5040
  inst._zod ?? (inst._zod = {});
@@ -5419,6 +5460,34 @@ var $ZodCheckProperty = /* @__PURE__ */ $constructor("$ZodCheckProperty", (inst,
5419
5460
  return;
5420
5461
  };
5421
5462
  });
5463
+ var $ZodCheckProperties = /* @__PURE__ */ $constructor("$ZodCheckProperties", (inst, def) => {
5464
+ $ZodCheck.init(inst, def);
5465
+ hide(inst, Symbol.iterator, function* () {
5466
+ yield inst;
5467
+ });
5468
+ let entries;
5469
+ inst._zod.check = (payload) => {
5470
+ if (payload.value == null) {
5471
+ payload.issues.push({ expected: "object", code: "invalid_type", input: payload.value, inst });
5472
+ return void 0;
5473
+ }
5474
+ entries ?? (entries = Reflect.ownKeys(def.shape).map((key) => [key, def.shape[key]]));
5475
+ const input2 = payload.value;
5476
+ let proms;
5477
+ for (const [key, schema] of entries) {
5478
+ const result = schema._zod.run({ value: input2[key], issues: [] }, {});
5479
+ if (result instanceof Promise) {
5480
+ proms ?? (proms = []);
5481
+ proms.push(result.then((result2) => handleCheckPropertyResult(result2, payload, key)));
5482
+ } else {
5483
+ handleCheckPropertyResult(result, payload, key);
5484
+ }
5485
+ }
5486
+ if (proms)
5487
+ return Promise.all(proms).then(() => void 0);
5488
+ return void 0;
5489
+ };
5490
+ });
5422
5491
  var $ZodCheckMimeType = /* @__PURE__ */ $constructor("$ZodCheckMimeType", (inst, def) => {
5423
5492
  $ZodCheck.init(inst, def);
5424
5493
  const mimeSet = new Set(def.mime);
@@ -5441,7 +5510,7 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
5441
5510
  };
5442
5511
  });
5443
5512
 
5444
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/core/doc.js
5513
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/doc.js
5445
5514
  var Doc = class {
5446
5515
  constructor(args = [], closed = {}) {
5447
5516
  this.content = [];
@@ -5482,14 +5551,14 @@ ${content3.join("\n")}
5482
5551
  }
5483
5552
  };
5484
5553
 
5485
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/core/versions.js
5554
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/versions.js
5486
5555
  var version = {
5487
5556
  major: 4,
5488
5557
  minor: 6,
5489
- patch: 2
5558
+ patch: 5
5490
5559
  };
5491
5560
 
5492
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/core/schemas.js
5561
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/schemas.js
5493
5562
  var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
5494
5563
  var _a3;
5495
5564
  inst ?? (inst = {});
@@ -5674,11 +5743,32 @@ var $ZodEmail = /* @__PURE__ */ $constructor("$ZodEmail", (inst, def) => {
5674
5743
  });
5675
5744
  var URL_BAD_FORMAT = 1;
5676
5745
  var URL_UNPARSEABLE = 2;
5746
+ function canParseURL(input2) {
5747
+ try {
5748
+ if (typeof URL !== "undefined" && typeof URL.canParse === "function")
5749
+ return URL.canParse(input2);
5750
+ new URL(input2);
5751
+ return true;
5752
+ } catch {
5753
+ return false;
5754
+ }
5755
+ }
5756
+ function validateURL(trimmed, def) {
5757
+ if (!("normalize" in def) && !("hostname" in def) && !("protocol" in def)) {
5758
+ return canParseURL(trimmed) || URL_UNPARSEABLE;
5759
+ }
5760
+ return parseURLObject(trimmed, def);
5761
+ }
5677
5762
  function parseURLObject(trimmed, def) {
5678
5763
  if (!def.normalize && def.protocol?.source === httpProtocol.source && !/^https?:\/\//i.test(trimmed)) {
5679
5764
  return URL_BAD_FORMAT;
5680
5765
  }
5681
5766
  try {
5767
+ if (typeof URL !== "undefined") {
5768
+ const URLStatic = URL;
5769
+ if (typeof URLStatic.parse === "function")
5770
+ return URLStatic.parse(trimmed) ?? URL_UNPARSEABLE;
5771
+ }
5682
5772
  return new URL(trimmed);
5683
5773
  } catch {
5684
5774
  return URL_UNPARSEABLE;
@@ -5701,7 +5791,7 @@ var $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
5701
5791
  inst._zod.check = (payload) => {
5702
5792
  try {
5703
5793
  const trimmed = payload.value.trim();
5704
- const url2 = parseURLObject(trimmed, def);
5794
+ const url2 = validateURL(trimmed, def);
5705
5795
  if (url2 === URL_BAD_FORMAT) {
5706
5796
  payload.issues.push({
5707
5797
  code: "invalid_format",
@@ -5723,6 +5813,10 @@ var $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
5723
5813
  });
5724
5814
  return;
5725
5815
  }
5816
+ if (url2 === true) {
5817
+ payload.value = stripTabAndNewline(trimmed);
5818
+ return;
5819
+ }
5726
5820
  if (def.hostname && !urlHostnameOk(url2, def.hostname)) {
5727
5821
  payload.issues.push({
5728
5822
  code: "invalid_format",
@@ -5812,12 +5906,7 @@ var ipv6Alphabet = /^[0-9a-fA-F:.]+$/;
5812
5906
  function isValidIPv6(value) {
5813
5907
  if (!ipv6Alphabet.test(value))
5814
5908
  return false;
5815
- try {
5816
- new URL(`http://[${value}]`);
5817
- return true;
5818
- } catch {
5819
- return false;
5820
- }
5909
+ return canParseURL(`http://[${value}]`);
5821
5910
  }
5822
5911
  var $ZodIPv6 = /* @__PURE__ */ $constructor("$ZodIPv6", (inst, def) => {
5823
5912
  def.pattern ?? (def.pattern = ipv6);
@@ -7882,61 +7971,8 @@ function handleRefineResult(result, payload, input2, inst) {
7882
7971
  payload.issues.push(issue(_iss));
7883
7972
  }
7884
7973
  }
7885
- function handlePropertiesResult(result, payload, key) {
7886
- if (result.issues.length) {
7887
- payload.issues.push(...prefixIssues(key, result.issues));
7888
- }
7889
- }
7890
- var $ZodProperties = /* @__PURE__ */ $constructor("$ZodProperties", (inst, def) => {
7891
- $ZodType.init(inst, def);
7892
- $ZodCheck.init(inst, def);
7893
- const memo2 = globalConfig.memoizer;
7894
- memo2?.attach(inst);
7895
- let entries;
7896
- const runShape = (payload, ctx) => {
7897
- entries ?? (entries = Reflect.ownKeys(def.shape).map((key) => [key, def.shape[key]]));
7898
- const input2 = payload.value;
7899
- let proms;
7900
- for (const [key, schema] of entries) {
7901
- const result = schema._zod.run({ value: input2[key], issues: [] }, ctx);
7902
- if (result instanceof Promise) {
7903
- proms ?? (proms = []);
7904
- proms.push(result.then((result2) => handlePropertiesResult(result2, payload, key)));
7905
- } else {
7906
- handlePropertiesResult(result, payload, key);
7907
- }
7908
- }
7909
- if (proms)
7910
- return Promise.all(proms).then(() => void 0);
7911
- return void 0;
7912
- };
7913
- inst._zod.parse = (payload, ctx) => {
7914
- const input2 = payload.value;
7915
- if (input2 === null || typeof input2 !== "object" && typeof input2 !== "function") {
7916
- payload.issues.push({ expected: "object", code: "invalid_type", input: input2, inst });
7917
- return payload;
7918
- }
7919
- if (ctx.direction === "backward")
7920
- ctx = { ...ctx, direction: "forward" };
7921
- if (memo2)
7922
- memo2.alloc(inst, payload, input2, ctx);
7923
- const result = runShape(payload, ctx);
7924
- return result instanceof Promise ? result.then(() => payload) : payload;
7925
- };
7926
- inst._zod.check = (payload) => {
7927
- if (payload.value == null) {
7928
- payload.issues.push({ expected: "object", code: "invalid_type", input: payload.value, inst });
7929
- return void 0;
7930
- }
7931
- return runShape(payload, {});
7932
- };
7933
- }, {
7934
- *[Symbol.iterator]() {
7935
- yield this;
7936
- }
7937
- });
7938
7974
 
7939
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/core/memoizer.js
7975
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/memoizer.js
7940
7976
  var $ZodCyclicError = class extends Error {
7941
7977
  constructor() {
7942
7978
  super(`Cannot parse a reference cycle that closes through a transform`);
@@ -7946,7 +7982,7 @@ var $ZodCyclicError = class extends Error {
7946
7982
  var STATE = "~memo";
7947
7983
  var NO_ISSUES = [];
7948
7984
  function isRef(value) {
7949
- return value !== null && (typeof value === "object" || typeof value === "function");
7985
+ return value !== null && typeof value === "object";
7950
7986
  }
7951
7987
  function cloneIssues(issues) {
7952
7988
  return issues.map((iss) => iss.path ? { ...iss, path: iss.path.slice() } : { ...iss });
@@ -7995,9 +8031,6 @@ function isRecursive(inst, stack, resolve7) {
7995
8031
  check2(def.catchall);
7996
8032
  break;
7997
8033
  }
7998
- case "properties":
7999
- merge2(shape(def.shape, false));
8000
- break;
8001
8034
  case "array":
8002
8035
  check2(def.element);
8003
8036
  break;
@@ -8216,7 +8249,7 @@ function isBackEdge(ctx, value) {
8216
8249
  return backEdges !== void 0 && isRef(value) && backEdges.has(value);
8217
8250
  }
8218
8251
 
8219
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/index.js
8252
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/index.js
8220
8253
  var locales_exports = {};
8221
8254
  __export(locales_exports, {
8222
8255
  ar: () => ar_default,
@@ -8284,7 +8317,7 @@ __export(locales_exports, {
8284
8317
  zhTW: () => zh_TW_default
8285
8318
  });
8286
8319
 
8287
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/ar.js
8320
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ar.js
8288
8321
  var error = () => {
8289
8322
  const Sizable = {
8290
8323
  string: { unit: "\u062D\u0631\u0641", verb: "\u0623\u0646 \u064A\u062D\u0648\u064A" },
@@ -8325,6 +8358,7 @@ var error = () => {
8325
8358
  json_string: "\u0646\u064E\u0635 \u0639\u0644\u0649 \u0647\u064A\u0626\u0629 JSON",
8326
8359
  e164: "\u0631\u0642\u0645 \u0647\u0627\u062A\u0641 \u0628\u0645\u0639\u064A\u0627\u0631 E.164",
8327
8360
  credit_card: "\u0631\u0642\u0645 \u0628\u0637\u0627\u0642\u0629 \u0627\u0644\u0627\u0626\u062A\u0645\u0627\u0646",
8361
+ currency_code: "\u0631\u0645\u0632 \u0627\u0644\u0639\u0645\u0644\u0629",
8328
8362
  iban: "IBAN",
8329
8363
  jwt: "JWT",
8330
8364
  template_literal: "\u0645\u062F\u062E\u0644"
@@ -8395,7 +8429,7 @@ function ar_default() {
8395
8429
  };
8396
8430
  }
8397
8431
 
8398
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/az.js
8432
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/az.js
8399
8433
  var error2 = () => {
8400
8434
  const Sizable = {
8401
8435
  string: { unit: "simvol", verb: "olmal\u0131d\u0131r" },
@@ -8436,6 +8470,7 @@ var error2 = () => {
8436
8470
  json_string: "JSON string",
8437
8471
  e164: "E.164 number",
8438
8472
  credit_card: "kredit kart\u0131 n\xF6mr\u0259si",
8473
+ currency_code: "valyuta kodu",
8439
8474
  iban: "IBAN",
8440
8475
  jwt: "JWT",
8441
8476
  template_literal: "input"
@@ -8505,7 +8540,7 @@ function az_default() {
8505
8540
  };
8506
8541
  }
8507
8542
 
8508
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/be.js
8543
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/be.js
8509
8544
  function getBelarusianPlural(count, one2, few, many) {
8510
8545
  const absCount = Math.abs(count);
8511
8546
  const lastDigit = absCount % 10;
@@ -8596,6 +8631,7 @@ var error3 = () => {
8596
8631
  json_string: "JSON \u0440\u0430\u0434\u043E\u043A",
8597
8632
  e164: "\u043D\u0443\u043C\u0430\u0440 E.164",
8598
8633
  credit_card: "\u043D\u0443\u043C\u0430\u0440 \u043A\u0440\u044D\u0434\u044B\u0442\u043D\u0430\u0439 \u043A\u0430\u0440\u0442\u044B",
8634
+ currency_code: "\u043A\u043E\u0434 \u0432\u0430\u043B\u044E\u0442\u044B",
8599
8635
  iban: "IBAN",
8600
8636
  jwt: "JWT",
8601
8637
  template_literal: "\u0443\u0432\u043E\u0434"
@@ -8673,7 +8709,7 @@ function be_default() {
8673
8709
  };
8674
8710
  }
8675
8711
 
8676
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/bg.js
8712
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/bg.js
8677
8713
  var error4 = () => {
8678
8714
  const Sizable = {
8679
8715
  string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0430", verb: "\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430" },
@@ -8714,6 +8750,7 @@ var error4 = () => {
8714
8750
  json_string: "JSON \u043D\u0438\u0437",
8715
8751
  e164: "E.164 \u043D\u043E\u043C\u0435\u0440",
8716
8752
  credit_card: "\u043D\u043E\u043C\u0435\u0440 \u043D\u0430 \u043A\u0440\u0435\u0434\u0438\u0442\u043D\u0430 \u043A\u0430\u0440\u0442\u0430",
8753
+ currency_code: "\u043A\u043E\u0434 \u043D\u0430 \u0432\u0430\u043B\u0443\u0442\u0430",
8717
8754
  iban: "IBAN",
8718
8755
  jwt: "JWT",
8719
8756
  template_literal: "\u0432\u0445\u043E\u0434"
@@ -8798,7 +8835,7 @@ function bg_default() {
8798
8835
  };
8799
8836
  }
8800
8837
 
8801
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/bn.js
8838
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/bn.js
8802
8839
  var error5 = () => {
8803
8840
  const Sizable = {
8804
8841
  string: { unit: "\u0985\u0995\u09CD\u09B7\u09B0", verb: "\u09A5\u09BE\u0995\u09A4\u09C7 \u09B9\u09AC\u09C7" },
@@ -8839,6 +8876,7 @@ var error5 = () => {
8839
8876
  json_string: "JSON \u09B8\u09CD\u099F\u09CD\u09B0\u09BF\u0982",
8840
8877
  e164: "E.164 \u09A8\u09AE\u09CD\u09AC\u09B0",
8841
8878
  credit_card: "\u0995\u09CD\u09B0\u09C7\u09A1\u09BF\u099F \u0995\u09BE\u09B0\u09CD\u09A1 \u09A8\u09AE\u09CD\u09AC\u09B0",
8879
+ currency_code: "\u09AE\u09C1\u09A6\u09CD\u09B0\u09BE \u0995\u09CB\u09A1",
8842
8880
  iban: "IBAN",
8843
8881
  jwt: "JWT",
8844
8882
  template_literal: "\u0987\u09A8\u09AA\u09C1\u099F"
@@ -8911,7 +8949,7 @@ function bn_default() {
8911
8949
  };
8912
8950
  }
8913
8951
 
8914
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/ca.js
8952
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ca.js
8915
8953
  var error6 = () => {
8916
8954
  const Sizable = {
8917
8955
  string: { unit: "car\xE0cters", verb: "contenir" },
@@ -8952,6 +8990,7 @@ var error6 = () => {
8952
8990
  json_string: "cadena JSON",
8953
8991
  e164: "n\xFAmero E.164",
8954
8992
  credit_card: "n\xFAmero de targeta de cr\xE8dit",
8993
+ currency_code: "codi de moneda",
8955
8994
  iban: "IBAN",
8956
8995
  jwt: "JWT",
8957
8996
  template_literal: "entrada"
@@ -9024,7 +9063,7 @@ function ca_default() {
9024
9063
  };
9025
9064
  }
9026
9065
 
9027
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/ckb.js
9066
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ckb.js
9028
9067
  var error7 = () => {
9029
9068
  const Sizable = {
9030
9069
  string: { unit: "\u067E\u06CC\u062A", verb: "\u0628\u06CE\u062A" },
@@ -9065,6 +9104,7 @@ var error7 = () => {
9065
9104
  json_string: "\u062F\u06D5\u0642\u06CC JSON",
9066
9105
  e164: "\u0698\u0645\u0627\u0631\u06D5\u06CC E.164",
9067
9106
  credit_card: "\u0698\u0645\u0627\u0631\u06D5\u06CC \u06A9\u0627\u0631\u062A\u06CC \u06A9\u0631\u06CE\u062F\u06CC\u062A",
9107
+ currency_code: "\u06A9\u06C6\u062F\u06CC \u062F\u0631\u0627\u0648",
9068
9108
  iban: "IBAN",
9069
9109
  jwt: "JWT",
9070
9110
  template_literal: "\u062A\u06CE\u06A9\u0631\u062F\u06D5"
@@ -9156,7 +9196,7 @@ function ckb_default() {
9156
9196
  };
9157
9197
  }
9158
9198
 
9159
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/cs.js
9199
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/cs.js
9160
9200
  var error8 = () => {
9161
9201
  const Sizable = {
9162
9202
  string: { unit: "znak\u016F", verb: "m\xEDt" },
@@ -9197,6 +9237,7 @@ var error8 = () => {
9197
9237
  json_string: "\u0159et\u011Bzec ve form\xE1tu JSON",
9198
9238
  e164: "\u010D\xEDslo E.164",
9199
9239
  credit_card: "\u010D\xEDslo kreditn\xED karty",
9240
+ currency_code: "k\xF3d m\u011Bny",
9200
9241
  iban: "IBAN",
9201
9242
  jwt: "JWT",
9202
9243
  template_literal: "vstup"
@@ -9272,7 +9313,7 @@ function cs_default() {
9272
9313
  };
9273
9314
  }
9274
9315
 
9275
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/da.js
9316
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/da.js
9276
9317
  var error9 = () => {
9277
9318
  const Sizable = {
9278
9319
  string: { unit: "tegn", verb: "havde" },
@@ -9313,6 +9354,7 @@ var error9 = () => {
9313
9354
  json_string: "JSON-streng",
9314
9355
  e164: "E.164-nummer",
9315
9356
  credit_card: "kreditkortnummer",
9357
+ currency_code: "valutakode",
9316
9358
  iban: "IBAN",
9317
9359
  jwt: "JWT",
9318
9360
  template_literal: "input"
@@ -9392,7 +9434,7 @@ function da_default() {
9392
9434
  };
9393
9435
  }
9394
9436
 
9395
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/de.js
9437
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/de.js
9396
9438
  var error10 = () => {
9397
9439
  const Sizable = {
9398
9440
  string: { unit: "Zeichen", verb: "zu haben" },
@@ -9433,6 +9475,7 @@ var error10 = () => {
9433
9475
  json_string: "JSON-String",
9434
9476
  e164: "E.164-Nummer",
9435
9477
  credit_card: "Kreditkartennummer",
9478
+ currency_code: "W\xE4hrungscode",
9436
9479
  iban: "IBAN",
9437
9480
  jwt: "JWT",
9438
9481
  template_literal: "Eingabe"
@@ -9505,7 +9548,7 @@ function de_default() {
9505
9548
  };
9506
9549
  }
9507
9550
 
9508
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/el.js
9551
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/el.js
9509
9552
  var error11 = () => {
9510
9553
  const Sizable = {
9511
9554
  string: { unit: "\u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
@@ -9546,6 +9589,7 @@ var error11 = () => {
9546
9589
  json_string: "\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC JSON",
9547
9590
  e164: "\u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 E.164",
9548
9591
  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",
9592
+ currency_code: "\u03BA\u03C9\u03B4\u03B9\u03BA\u03CC\u03C2 \u03BD\u03BF\u03BC\u03AF\u03C3\u03BC\u03B1\u03C4\u03BF\u03C2",
9549
9593
  iban: "IBAN",
9550
9594
  jwt: "JWT",
9551
9595
  template_literal: "\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"
@@ -9617,7 +9661,7 @@ function el_default() {
9617
9661
  };
9618
9662
  }
9619
9663
 
9620
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/en.js
9664
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/en.js
9621
9665
  var error12 = () => {
9622
9666
  const Sizable = {
9623
9667
  string: { unit: "characters", verb: "to have" },
@@ -9657,6 +9701,7 @@ var error12 = () => {
9657
9701
  base64url: "base64url-encoded string",
9658
9702
  json_string: "JSON string",
9659
9703
  e164: "E.164 number",
9704
+ currency_code: "currency code",
9660
9705
  credit_card: "credit card number",
9661
9706
  iban: "IBAN",
9662
9707
  jwt: "JWT",
@@ -9741,7 +9786,7 @@ function en_default() {
9741
9786
  };
9742
9787
  }
9743
9788
 
9744
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/eo.js
9789
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/eo.js
9745
9790
  var error13 = () => {
9746
9791
  const Sizable = {
9747
9792
  string: { unit: "karaktrojn", verb: "havi" },
@@ -9782,6 +9827,7 @@ var error13 = () => {
9782
9827
  json_string: "JSON-karaktraro",
9783
9828
  e164: "E.164-nombro",
9784
9829
  credit_card: "kreditkarta numero",
9830
+ currency_code: "valuta kodo",
9785
9831
  iban: "IBAN",
9786
9832
  jwt: "JWT",
9787
9833
  template_literal: "enigo"
@@ -9855,7 +9901,7 @@ function eo_default() {
9855
9901
  };
9856
9902
  }
9857
9903
 
9858
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/es.js
9904
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/es.js
9859
9905
  var error14 = () => {
9860
9906
  const Sizable = {
9861
9907
  string: { unit: "caracteres", verb: "tener" },
@@ -9895,6 +9941,7 @@ var error14 = () => {
9895
9941
  json_string: "cadena JSON",
9896
9942
  e164: "n\xFAmero E.164",
9897
9943
  credit_card: "n\xFAmero de tarjeta de cr\xE9dito",
9944
+ currency_code: "c\xF3digo de moneda",
9898
9945
  iban: "IBAN",
9899
9946
  jwt: "JWT",
9900
9947
  template_literal: "entrada"
@@ -9991,7 +10038,7 @@ function es_default() {
9991
10038
  };
9992
10039
  }
9993
10040
 
9994
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/fa.js
10041
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/fa.js
9995
10042
  var error15 = () => {
9996
10043
  const Sizable = {
9997
10044
  string: { unit: "\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
@@ -10032,6 +10079,7 @@ var error15 = () => {
10032
10079
  json_string: "JSON \u0631\u0634\u062A\u0647",
10033
10080
  e164: "E.164 \u0639\u062F\u062F",
10034
10081
  credit_card: "\u0634\u0645\u0627\u0631\u0647 \u06A9\u0627\u0631\u062A \u0627\u0639\u062A\u0628\u0627\u0631\u06CC",
10082
+ currency_code: "\u06A9\u062F \u0627\u0631\u0632",
10035
10083
  iban: "IBAN",
10036
10084
  jwt: "JWT",
10037
10085
  template_literal: "\u0648\u0631\u0648\u062F\u06CC"
@@ -10110,7 +10158,7 @@ function fa_default() {
10110
10158
  };
10111
10159
  }
10112
10160
 
10113
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/fi.js
10161
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/fi.js
10114
10162
  var error16 = () => {
10115
10163
  const Sizable = {
10116
10164
  string: { unit: "merkki\xE4", subject: "merkkijonon" },
@@ -10155,6 +10203,7 @@ var error16 = () => {
10155
10203
  json_string: "JSON-merkkijono",
10156
10204
  e164: "E.164-luku",
10157
10205
  credit_card: "luottokortin numero",
10206
+ currency_code: "valuuttakoodi",
10158
10207
  iban: "IBAN",
10159
10208
  jwt: "JWT",
10160
10209
  template_literal: "templaattimerkkijono"
@@ -10227,7 +10276,7 @@ function fi_default() {
10227
10276
  };
10228
10277
  }
10229
10278
 
10230
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/fr.js
10279
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/fr.js
10231
10280
  var error17 = () => {
10232
10281
  const Sizable = {
10233
10282
  string: { unit: "caract\xE8res", verb: "avoir" },
@@ -10267,6 +10316,7 @@ var error17 = () => {
10267
10316
  json_string: "cha\xEEne de caract\xE8res JSON",
10268
10317
  e164: "num\xE9ro au format E.164",
10269
10318
  credit_card: "num\xE9ro de carte de cr\xE9dit",
10319
+ currency_code: "code de devise",
10270
10320
  iban: "IBAN",
10271
10321
  jwt: "JWT",
10272
10322
  template_literal: "entr\xE9e"
@@ -10356,7 +10406,7 @@ function fr_default() {
10356
10406
  };
10357
10407
  }
10358
10408
 
10359
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/fr-CA.js
10409
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/fr-CA.js
10360
10410
  var error18 = () => {
10361
10411
  const Sizable = {
10362
10412
  string: { unit: "caract\xE8res", verb: "avoir" },
@@ -10397,6 +10447,7 @@ var error18 = () => {
10397
10447
  json_string: "cha\xEEne JSON",
10398
10448
  e164: "num\xE9ro E.164",
10399
10449
  credit_card: "num\xE9ro de carte de cr\xE9dit",
10450
+ currency_code: "code de devise",
10400
10451
  iban: "IBAN",
10401
10452
  jwt: "JWT",
10402
10453
  template_literal: "entr\xE9e"
@@ -10468,7 +10519,7 @@ function fr_CA_default() {
10468
10519
  };
10469
10520
  }
10470
10521
 
10471
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/gu.js
10522
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/gu.js
10472
10523
  var error19 = () => {
10473
10524
  const Sizable = {
10474
10525
  string: { unit: "\u0A85\u0A95\u0ACD\u0AB7\u0AB0", verb: "\u0AB9\u0ACB\u0AB5\u0ABE \u0A9C\u0ACB\u0A88\u0A8F" },
@@ -10509,6 +10560,7 @@ var error19 = () => {
10509
10560
  json_string: "JSON \u0AB8\u0ACD\u0A9F\u0ACD\u0AB0\u0ABF\u0A82\u0A97",
10510
10561
  e164: "E.164 \u0AA8\u0A82\u0AAC\u0AB0",
10511
10562
  credit_card: "\u0A95\u0ACD\u0AB0\u0AC7\u0AA1\u0ABF\u0A9F \u0A95\u0ABE\u0AB0\u0ACD\u0AA1 \u0AA8\u0A82\u0AAC\u0AB0",
10563
+ currency_code: "\u0A9A\u0AB2\u0AA3 \u0A95\u0ACB\u0AA1",
10512
10564
  iban: "IBAN",
10513
10565
  jwt: "JWT",
10514
10566
  template_literal: "\u0A87\u0AA8\u0AAA\u0AC1\u0A9F"
@@ -10581,7 +10633,7 @@ function gu_default() {
10581
10633
  };
10582
10634
  }
10583
10635
 
10584
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/he.js
10636
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/he.js
10585
10637
  var error20 = () => {
10586
10638
  const TypeNames = {
10587
10639
  string: { label: "\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA", gender: "f" },
@@ -10658,6 +10710,7 @@ var error20 = () => {
10658
10710
  json_string: { label: "\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON", gender: "f" },
10659
10711
  e164: { label: "\u05DE\u05E1\u05E4\u05E8 E.164", gender: "m" },
10660
10712
  credit_card: { label: "\u05DE\u05E1\u05E4\u05E8 \u05DB\u05E8\u05D8\u05D9\u05E1 \u05D0\u05E9\u05E8\u05D0\u05D9", gender: "m" },
10713
+ currency_code: { label: "\u05E7\u05D5\u05D3 \u05DE\u05D8\u05D1\u05E2", gender: "m" },
10661
10714
  iban: { label: "IBAN", gender: "m" },
10662
10715
  jwt: { label: "JWT", gender: "m" },
10663
10716
  template_literal: { label: "\u05E7\u05DC\u05D8", gender: "m" },
@@ -10782,7 +10835,7 @@ function he_default() {
10782
10835
  };
10783
10836
  }
10784
10837
 
10785
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/hi.js
10838
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/hi.js
10786
10839
  var error21 = () => {
10787
10840
  const Sizable = {
10788
10841
  string: { unit: "\u0905\u0915\u094D\u0937\u0930", verb: "\u0930\u0916\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F" },
@@ -10823,6 +10876,7 @@ var error21 = () => {
10823
10876
  json_string: "JSON \u0938\u094D\u091F\u094D\u0930\u093F\u0902\u0917",
10824
10877
  e164: "E.164 \u0938\u0902\u0916\u094D\u092F\u093E",
10825
10878
  credit_card: "\u0915\u094D\u0930\u0947\u0921\u093F\u091F \u0915\u093E\u0930\u094D\u0921 \u0938\u0902\u0916\u094D\u092F\u093E",
10879
+ currency_code: "\u092E\u0941\u0926\u094D\u0930\u093E \u0915\u094B\u0921",
10826
10880
  iban: "IBAN",
10827
10881
  jwt: "JWT",
10828
10882
  template_literal: "\u0907\u0928\u092A\u0941\u091F"
@@ -10893,7 +10947,7 @@ function hi_default() {
10893
10947
  };
10894
10948
  }
10895
10949
 
10896
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/hr.js
10950
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/hr.js
10897
10951
  var error22 = () => {
10898
10952
  const Sizable = {
10899
10953
  string: { unit: "znakova", verb: "imati" },
@@ -10933,6 +10987,7 @@ var error22 = () => {
10933
10987
  json_string: "JSON tekst",
10934
10988
  e164: "E.164 broj",
10935
10989
  credit_card: "broj kreditne kartice",
10990
+ currency_code: "kod valute",
10936
10991
  iban: "IBAN",
10937
10992
  jwt: "JWT",
10938
10993
  template_literal: "unos"
@@ -11019,7 +11074,7 @@ function hr_default() {
11019
11074
  };
11020
11075
  }
11021
11076
 
11022
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/hu.js
11077
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/hu.js
11023
11078
  var error23 = () => {
11024
11079
  const Sizable = {
11025
11080
  string: { unit: "karakter", verb: "legyen" },
@@ -11060,6 +11115,7 @@ var error23 = () => {
11060
11115
  json_string: "JSON string",
11061
11116
  e164: "E.164 sz\xE1m",
11062
11117
  credit_card: "hitelk\xE1rtyasz\xE1m",
11118
+ currency_code: "p\xE9nznemk\xF3d",
11063
11119
  iban: "IBAN",
11064
11120
  jwt: "JWT",
11065
11121
  template_literal: "bemenet"
@@ -11132,7 +11188,7 @@ function hu_default() {
11132
11188
  };
11133
11189
  }
11134
11190
 
11135
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/hy.js
11191
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/hy.js
11136
11192
  function getArmenianPlural(count, one2, many) {
11137
11193
  return Math.abs(count) === 1 ? one2 : many;
11138
11194
  }
@@ -11213,6 +11269,7 @@ var error24 = () => {
11213
11269
  json_string: "JSON \u057F\u0578\u0572",
11214
11270
  e164: "E.164 \u0570\u0561\u0574\u0561\u0580",
11215
11271
  credit_card: "\u056F\u0580\u0565\u0564\u056B\u057F \u0584\u0561\u0580\u057F\u056B \u0570\u0561\u0574\u0561\u0580",
11272
+ currency_code: "\u0561\u0580\u056A\u0578\u0582\u0575\u0569\u056B \u056F\u0578\u0564",
11216
11273
  iban: "IBAN",
11217
11274
  jwt: "JWT",
11218
11275
  template_literal: "\u0574\u0578\u0582\u057F\u0584"
@@ -11290,7 +11347,7 @@ function hy_default() {
11290
11347
  };
11291
11348
  }
11292
11349
 
11293
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/id.js
11350
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/id.js
11294
11351
  var error25 = () => {
11295
11352
  const Sizable = {
11296
11353
  string: { unit: "karakter", verb: "memiliki" },
@@ -11331,6 +11388,7 @@ var error25 = () => {
11331
11388
  json_string: "string JSON",
11332
11389
  e164: "angka E.164",
11333
11390
  credit_card: "nomor kartu kredit",
11391
+ currency_code: "kode mata uang",
11334
11392
  iban: "IBAN",
11335
11393
  jwt: "JWT",
11336
11394
  template_literal: "input"
@@ -11401,7 +11459,7 @@ function id_default() {
11401
11459
  };
11402
11460
  }
11403
11461
 
11404
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/is.js
11462
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/is.js
11405
11463
  var error26 = () => {
11406
11464
  const Sizable = {
11407
11465
  string: { unit: "stafi", verb: "a\xF0 hafa" },
@@ -11442,6 +11500,7 @@ var error26 = () => {
11442
11500
  json_string: "JSON strengur",
11443
11501
  e164: "E.164 t\xF6lugildi",
11444
11502
  credit_card: "kreditkortan\xFAmer",
11503
+ currency_code: "gjaldmi\xF0ilsk\xF3\xF0i",
11445
11504
  iban: "IBAN",
11446
11505
  jwt: "JWT",
11447
11506
  template_literal: "gildi"
@@ -11515,7 +11574,7 @@ function is_default() {
11515
11574
  };
11516
11575
  }
11517
11576
 
11518
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/it.js
11577
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/it.js
11519
11578
  var error27 = () => {
11520
11579
  const Sizable = {
11521
11580
  string: { unit: "caratteri", verb: "avere" },
@@ -11556,6 +11615,7 @@ var error27 = () => {
11556
11615
  json_string: "stringa JSON",
11557
11616
  e164: "numero E.164",
11558
11617
  credit_card: "numero di carta di credito",
11618
+ currency_code: "codice valuta",
11559
11619
  iban: "IBAN",
11560
11620
  jwt: "JWT",
11561
11621
  template_literal: "input"
@@ -11628,7 +11688,7 @@ function it_default() {
11628
11688
  };
11629
11689
  }
11630
11690
 
11631
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/ja.js
11691
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ja.js
11632
11692
  var error28 = () => {
11633
11693
  const Sizable = {
11634
11694
  string: { unit: "\u6587\u5B57", verb: "\u3067\u3042\u308B" },
@@ -11669,6 +11729,7 @@ var error28 = () => {
11669
11729
  json_string: "JSON\u6587\u5B57\u5217",
11670
11730
  e164: "E.164\u756A\u53F7",
11671
11731
  credit_card: "\u30AF\u30EC\u30B8\u30C3\u30C8\u30AB\u30FC\u30C9\u756A\u53F7",
11732
+ currency_code: "\u901A\u8CA8\u30B3\u30FC\u30C9",
11672
11733
  iban: "IBAN",
11673
11734
  jwt: "JWT",
11674
11735
  template_literal: "\u5165\u529B\u5024"
@@ -11740,7 +11801,7 @@ function ja_default() {
11740
11801
  };
11741
11802
  }
11742
11803
 
11743
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/ka.js
11804
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ka.js
11744
11805
  var error29 = () => {
11745
11806
  const Sizable = {
11746
11807
  string: { unit: "\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" },
@@ -11781,6 +11842,7 @@ var error29 = () => {
11781
11842
  json_string: "JSON \u10D5\u10D4\u10DA\u10D8",
11782
11843
  e164: "E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",
11783
11844
  credit_card: "\u10E1\u10D0\u10D9\u10E0\u10D4\u10D3\u10D8\u10E2\u10DD \u10D1\u10D0\u10E0\u10D0\u10D7\u10D8\u10E1 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",
11845
+ currency_code: "\u10D5\u10D0\u10DA\u10E3\u10E2\u10D8\u10E1 \u10D9\u10DD\u10D3\u10D8",
11784
11846
  iban: "IBAN",
11785
11847
  jwt: "JWT",
11786
11848
  template_literal: "\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"
@@ -11857,7 +11919,7 @@ function ka_default() {
11857
11919
  };
11858
11920
  }
11859
11921
 
11860
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/km.js
11922
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/km.js
11861
11923
  var error30 = () => {
11862
11924
  const Sizable = {
11863
11925
  string: { unit: "\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
@@ -11898,6 +11960,7 @@ var error30 = () => {
11898
11960
  json_string: "\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A JSON",
11899
11961
  e164: "\u179B\u17C1\u1781 E.164",
11900
11962
  credit_card: "\u179B\u17C1\u1781\u1794\u17D0\u178E\u17D2\u178E\u17A5\u178E\u1791\u17B6\u1793",
11963
+ currency_code: "\u1780\u17BC\u178A\u179A\u17BC\u1794\u17B7\u1799\u1794\u17D0\u178E\u17D2\u178E",
11901
11964
  iban: "IBAN",
11902
11965
  jwt: "JWT",
11903
11966
  template_literal: "\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B"
@@ -11972,12 +12035,12 @@ function km_default() {
11972
12035
  };
11973
12036
  }
11974
12037
 
11975
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/kh.js
12038
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/kh.js
11976
12039
  function kh_default() {
11977
12040
  return km_default();
11978
12041
  }
11979
12042
 
11980
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/kn.js
12043
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/kn.js
11981
12044
  var error31 = () => {
11982
12045
  const Sizable = {
11983
12046
  string: { unit: "\u0C85\u0C95\u0CCD\u0CB7\u0CB0\u0C97\u0CB3\u0CC1", verb: "\u0CB9\u0CCA\u0C82\u0CA6\u0CB2\u0CC1" },
@@ -12018,6 +12081,7 @@ var error31 = () => {
12018
12081
  json_string: "JSON\u0CB8\u0CCD\u0C9F\u0CCD\u0CB0\u0CBF\u0C82\u0C97\u0CCD",
12019
12082
  e164: "E.164 \u0CB8\u0C82\u0C96\u0CCD\u0CAF\u0CC6",
12020
12083
  credit_card: "\u0C95\u0CCD\u0CB0\u0CC6\u0CA1\u0CBF\u0C9F\u0CCD \u0C95\u0CBE\u0CB0\u0CCD\u0CA1\u0CCD \u0CB8\u0C82\u0C96\u0CCD\u0CAF\u0CC6",
12084
+ currency_code: "\u0C95\u0CB0\u0CC6\u0CA8\u0CCD\u0CB8\u0CBF \u0C95\u0CCB\u0CA1\u0CCD",
12021
12085
  iban: "IBAN",
12022
12086
  jwt: "JWT",
12023
12087
  template_literal: "\u0C87\u0CA8\u0CCD\u0CAA\u0CC1\u0C9F\u0CCD"
@@ -12092,7 +12156,7 @@ function kn_default() {
12092
12156
  };
12093
12157
  }
12094
12158
 
12095
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/ko.js
12159
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ko.js
12096
12160
  var error32 = () => {
12097
12161
  const Sizable = {
12098
12162
  string: { unit: "\uBB38\uC790", verb: "to have" },
@@ -12133,6 +12197,7 @@ var error32 = () => {
12133
12197
  json_string: "JSON \uBB38\uC790\uC5F4",
12134
12198
  e164: "E.164 \uBC88\uD638",
12135
12199
  credit_card: "\uC2E0\uC6A9\uCE74\uB4DC \uBC88\uD638",
12200
+ currency_code: "\uD1B5\uD654 \uCF54\uB4DC",
12136
12201
  iban: "IBAN",
12137
12202
  jwt: "JWT",
12138
12203
  template_literal: "\uC785\uB825"
@@ -12208,7 +12273,7 @@ function ko_default() {
12208
12273
  };
12209
12274
  }
12210
12275
 
12211
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/lt.js
12276
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/lt.js
12212
12277
  var capitalizeFirstCharacter = (text3) => {
12213
12278
  return text3.charAt(0).toUpperCase() + text3.slice(1);
12214
12279
  };
@@ -12331,6 +12396,7 @@ var error33 = () => {
12331
12396
  json_string: "JSON eilut\u0117",
12332
12397
  e164: "E.164 numeris",
12333
12398
  credit_card: "kredito kortel\u0117s numeris",
12399
+ currency_code: "valiutos kodas",
12334
12400
  iban: "IBAN",
12335
12401
  jwt: "JWT",
12336
12402
  template_literal: "\u012Fvestis"
@@ -12415,7 +12481,7 @@ function lt_default() {
12415
12481
  };
12416
12482
  }
12417
12483
 
12418
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/mk.js
12484
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/mk.js
12419
12485
  var error34 = () => {
12420
12486
  const Sizable = {
12421
12487
  string: { unit: "\u0437\u043D\u0430\u0446\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
@@ -12456,6 +12522,7 @@ var error34 = () => {
12456
12522
  json_string: "JSON \u043D\u0438\u0437\u0430",
12457
12523
  e164: "E.164 \u0431\u0440\u043E\u0458",
12458
12524
  credit_card: "\u0431\u0440\u043E\u0458 \u043D\u0430 \u043A\u0440\u0435\u0434\u0438\u0442\u043D\u0430 \u043A\u0430\u0440\u0442\u0438\u0447\u043A\u0430",
12525
+ currency_code: "\u043A\u043E\u0434 \u043D\u0430 \u0432\u0430\u043B\u0443\u0442\u0430",
12459
12526
  iban: "IBAN",
12460
12527
  jwt: "JWT",
12461
12528
  template_literal: "\u0432\u043D\u0435\u0441"
@@ -12529,7 +12596,7 @@ function mk_default() {
12529
12596
  };
12530
12597
  }
12531
12598
 
12532
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/ms.js
12599
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ms.js
12533
12600
  var error35 = () => {
12534
12601
  const Sizable = {
12535
12602
  string: { unit: "aksara", verb: "mempunyai" },
@@ -12570,6 +12637,7 @@ var error35 = () => {
12570
12637
  json_string: "string JSON",
12571
12638
  e164: "nombor E.164",
12572
12639
  credit_card: "nombor kad kredit",
12640
+ currency_code: "kod mata wang",
12573
12641
  iban: "IBAN",
12574
12642
  jwt: "JWT",
12575
12643
  template_literal: "input"
@@ -12641,7 +12709,7 @@ function ms_default() {
12641
12709
  };
12642
12710
  }
12643
12711
 
12644
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/ne.js
12712
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ne.js
12645
12713
  var error36 = () => {
12646
12714
  const Sizable = {
12647
12715
  string: { unit: "\u0905\u0915\u094D\u0937\u0930", verb: "\u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B" },
@@ -12682,6 +12750,7 @@ var error36 = () => {
12682
12750
  json_string: "JSON \u0938\u094D\u091F\u094D\u0930\u093F\u0919",
12683
12751
  e164: "E.164 \u0928\u092E\u094D\u092C\u0930",
12684
12752
  credit_card: "\u0915\u094D\u0930\u0947\u0921\u093F\u091F \u0915\u093E\u0930\u094D\u0921 \u0928\u092E\u094D\u092C\u0930",
12753
+ currency_code: "\u092E\u0941\u0926\u094D\u0930\u093E \u0915\u094B\u0921",
12685
12754
  iban: "IBAN",
12686
12755
  jwt: "JWT",
12687
12756
  template_literal: "\u0907\u0928\u092A\u0941\u091F"
@@ -12752,7 +12821,7 @@ function ne_default() {
12752
12821
  };
12753
12822
  }
12754
12823
 
12755
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/nl.js
12824
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/nl.js
12756
12825
  var error37 = () => {
12757
12826
  const Sizable = {
12758
12827
  string: { unit: "tekens", verb: "heeft" },
@@ -12793,6 +12862,7 @@ var error37 = () => {
12793
12862
  json_string: "JSON string",
12794
12863
  e164: "E.164-nummer",
12795
12864
  credit_card: "creditcardnummer",
12865
+ currency_code: "valutacode",
12796
12866
  iban: "IBAN",
12797
12867
  jwt: "JWT",
12798
12868
  template_literal: "invoer"
@@ -12867,7 +12937,7 @@ function nl_default() {
12867
12937
  };
12868
12938
  }
12869
12939
 
12870
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/nn.js
12940
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/nn.js
12871
12941
  var error38 = () => {
12872
12942
  const Sizable = {
12873
12943
  string: { unit: "teikn", verb: "\xE5 ha" },
@@ -12908,6 +12978,7 @@ var error38 = () => {
12908
12978
  json_string: "JSON-streng",
12909
12979
  e164: "E.164-nummer",
12910
12980
  credit_card: "kredittkortnummer",
12981
+ currency_code: "valutakode",
12911
12982
  iban: "IBAN",
12912
12983
  jwt: "JWT",
12913
12984
  template_literal: "input"
@@ -12980,7 +13051,7 @@ function nn_default() {
12980
13051
  };
12981
13052
  }
12982
13053
 
12983
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/no.js
13054
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/no.js
12984
13055
  var error39 = () => {
12985
13056
  const Sizable = {
12986
13057
  string: { unit: "tegn", verb: "\xE5 ha" },
@@ -13021,6 +13092,7 @@ var error39 = () => {
13021
13092
  json_string: "JSON-streng",
13022
13093
  e164: "E.164-nummer",
13023
13094
  credit_card: "kredittkortnummer",
13095
+ currency_code: "valutakode",
13024
13096
  iban: "IBAN",
13025
13097
  jwt: "JWT",
13026
13098
  template_literal: "input"
@@ -13093,7 +13165,7 @@ function no_default() {
13093
13165
  };
13094
13166
  }
13095
13167
 
13096
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/ota.js
13168
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ota.js
13097
13169
  var error40 = () => {
13098
13170
  const Sizable = {
13099
13171
  string: { unit: "harf", verb: "olmal\u0131d\u0131r" },
@@ -13134,6 +13206,7 @@ var error40 = () => {
13134
13206
  json_string: "JSON metin",
13135
13207
  e164: "E.164 say\u0131s\u0131",
13136
13208
  credit_card: "i'tib\xE2r kart\u0131 numaras\u0131",
13209
+ currency_code: "para birimi kodu",
13137
13210
  iban: "IBAN",
13138
13211
  jwt: "JWT",
13139
13212
  template_literal: "giren"
@@ -13207,7 +13280,7 @@ function ota_default() {
13207
13280
  };
13208
13281
  }
13209
13282
 
13210
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/ps.js
13283
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ps.js
13211
13284
  var error41 = () => {
13212
13285
  const Sizable = {
13213
13286
  string: { unit: "\u062A\u0648\u06A9\u064A", verb: "\u0648\u0644\u0631\u064A" },
@@ -13248,6 +13321,7 @@ var error41 = () => {
13248
13321
  json_string: "JSON \u0645\u062A\u0646",
13249
13322
  e164: "\u062F E.164 \u0634\u0645\u06D0\u0631\u0647",
13250
13323
  credit_card: "\u062F \u06A9\u0631\u06CC\u0689\u06CC\u067C \u06A9\u0627\u0631\u062A \u0634\u0645\u06CC\u0631\u0647",
13324
+ currency_code: "\u062F \u0627\u0633\u0639\u0627\u0631\u0648 \u06A9\u0648\u0689",
13251
13325
  iban: "IBAN",
13252
13326
  jwt: "JWT",
13253
13327
  template_literal: "\u0648\u0631\u0648\u062F\u064A"
@@ -13326,7 +13400,7 @@ function ps_default() {
13326
13400
  };
13327
13401
  }
13328
13402
 
13329
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/pl.js
13403
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/pl.js
13330
13404
  var error42 = () => {
13331
13405
  const Sizable = {
13332
13406
  string: { unit: "znak\xF3w", verb: "mie\u0107" },
@@ -13367,6 +13441,7 @@ var error42 = () => {
13367
13441
  json_string: "ci\u0105g znak\xF3w w formacie JSON",
13368
13442
  e164: "liczba E.164",
13369
13443
  credit_card: "numer karty kredytowej",
13444
+ currency_code: "kod waluty",
13370
13445
  iban: "IBAN",
13371
13446
  jwt: "JWT",
13372
13447
  template_literal: "wej\u015Bcie"
@@ -13440,7 +13515,7 @@ function pl_default() {
13440
13515
  };
13441
13516
  }
13442
13517
 
13443
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/pt.js
13518
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/pt.js
13444
13519
  var error43 = () => {
13445
13520
  const Sizable = {
13446
13521
  string: { unit: "caracteres" },
@@ -13481,6 +13556,7 @@ var error43 = () => {
13481
13556
  json_string: "o texto JSON",
13482
13557
  e164: "o n\xFAmero E.164",
13483
13558
  credit_card: "o n\xFAmero de cart\xE3o de cr\xE9dito",
13559
+ currency_code: "o c\xF3digo de moeda",
13484
13560
  iban: "o IBAN",
13485
13561
  jwt: "o JWT",
13486
13562
  template_literal: "a entrada"
@@ -13583,7 +13659,7 @@ function pt_default() {
13583
13659
  };
13584
13660
  }
13585
13661
 
13586
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/pt-BR.js
13662
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/pt-BR.js
13587
13663
  var error44 = () => {
13588
13664
  const Sizable = {
13589
13665
  string: { unit: "caracteres" },
@@ -13624,6 +13700,7 @@ var error44 = () => {
13624
13700
  json_string: "o texto JSON",
13625
13701
  e164: "o n\xFAmero E.164",
13626
13702
  credit_card: "o n\xFAmero de cart\xE3o de cr\xE9dito",
13703
+ currency_code: "o c\xF3digo de moeda",
13627
13704
  iban: "o IBAN",
13628
13705
  jwt: "o JWT",
13629
13706
  template_literal: "a entrada"
@@ -13727,7 +13804,7 @@ function pt_BR_default() {
13727
13804
  };
13728
13805
  }
13729
13806
 
13730
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/ro.js
13807
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ro.js
13731
13808
  var error45 = () => {
13732
13809
  const Sizable = {
13733
13810
  string: { unit: "caractere", verb: "s\u0103 aib\u0103" },
@@ -13768,6 +13845,7 @@ var error45 = () => {
13768
13845
  json_string: "\u0219ir JSON",
13769
13846
  e164: "num\u0103r E.164",
13770
13847
  credit_card: "num\u0103r de card de credit",
13848
+ currency_code: "cod valutar",
13771
13849
  iban: "IBAN",
13772
13850
  jwt: "JWT",
13773
13851
  template_literal: "intrare"
@@ -13849,7 +13927,7 @@ function ro_default() {
13849
13927
  };
13850
13928
  }
13851
13929
 
13852
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/ru.js
13930
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ru.js
13853
13931
  function getRussianPlural(count, one2, few, many) {
13854
13932
  const absCount = Math.abs(count);
13855
13933
  const lastDigit = absCount % 10;
@@ -13940,6 +14018,7 @@ var error46 = () => {
13940
14018
  json_string: "JSON \u0441\u0442\u0440\u043E\u043A\u0430",
13941
14019
  e164: "\u043D\u043E\u043C\u0435\u0440 E.164",
13942
14020
  credit_card: "\u043D\u043E\u043C\u0435\u0440 \u043A\u0440\u0435\u0434\u0438\u0442\u043D\u043E\u0439 \u043A\u0430\u0440\u0442\u044B",
14021
+ currency_code: "\u043A\u043E\u0434 \u0432\u0430\u043B\u044E\u0442\u044B",
13943
14022
  iban: "IBAN",
13944
14023
  jwt: "JWT",
13945
14024
  template_literal: "\u0432\u0432\u043E\u0434"
@@ -14017,7 +14096,7 @@ function ru_default() {
14017
14096
  };
14018
14097
  }
14019
14098
 
14020
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/sk.js
14099
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/sk.js
14021
14100
  var error47 = () => {
14022
14101
  const Sizable = {
14023
14102
  string: { unit: "znakov", verb: "ma\u0165" },
@@ -14058,6 +14137,7 @@ var error47 = () => {
14058
14137
  json_string: "re\u0165azec vo form\xE1te JSON",
14059
14138
  e164: "\u010D\xEDslo E.164",
14060
14139
  credit_card: "\u010D\xEDslo kreditnej karty",
14140
+ currency_code: "k\xF3d meny",
14061
14141
  iban: "IBAN",
14062
14142
  jwt: "JWT",
14063
14143
  template_literal: "vstup"
@@ -14133,7 +14213,7 @@ function sk_default() {
14133
14213
  };
14134
14214
  }
14135
14215
 
14136
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/sl.js
14216
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/sl.js
14137
14217
  var error48 = () => {
14138
14218
  const Sizable = {
14139
14219
  string: { unit: "znakov", verb: "imeti" },
@@ -14174,6 +14254,7 @@ var error48 = () => {
14174
14254
  json_string: "JSON niz",
14175
14255
  e164: "E.164 \u0161tevilka",
14176
14256
  credit_card: "\u0161tevilka kreditne kartice",
14257
+ currency_code: "koda valute",
14177
14258
  iban: "IBAN",
14178
14259
  jwt: "JWT",
14179
14260
  template_literal: "vnos"
@@ -14247,7 +14328,7 @@ function sl_default() {
14247
14328
  };
14248
14329
  }
14249
14330
 
14250
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/sv.js
14331
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/sv.js
14251
14332
  var error49 = () => {
14252
14333
  const Sizable = {
14253
14334
  string: { unit: "tecken", verb: "att ha" },
@@ -14288,6 +14369,7 @@ var error49 = () => {
14288
14369
  json_string: "JSON-str\xE4ng",
14289
14370
  e164: "E.164-nummer",
14290
14371
  credit_card: "kreditkortsnummer",
14372
+ currency_code: "valutakod",
14291
14373
  iban: "IBAN",
14292
14374
  jwt: "JWT",
14293
14375
  template_literal: "mall-literal"
@@ -14362,7 +14444,7 @@ function sv_default() {
14362
14444
  };
14363
14445
  }
14364
14446
 
14365
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/ta.js
14447
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ta.js
14366
14448
  var error50 = () => {
14367
14449
  const Sizable = {
14368
14450
  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" },
@@ -14403,6 +14485,7 @@ var error50 = () => {
14403
14485
  json_string: "JSON \u0B9A\u0BB0\u0BAE\u0BCD",
14404
14486
  e164: "E.164 \u0B8E\u0BA3\u0BCD",
14405
14487
  credit_card: "\u0B95\u0B9F\u0BA9\u0BCD \u0B85\u0B9F\u0BCD\u0B9F\u0BC8 \u0B8E\u0BA3\u0BCD",
14488
+ currency_code: "\u0BA8\u0BBE\u0BA3\u0BAF\u0B95\u0BCD \u0B95\u0BC1\u0BB1\u0BBF\u0BAF\u0BC0\u0B9F\u0BC1",
14406
14489
  iban: "IBAN",
14407
14490
  jwt: "JWT",
14408
14491
  template_literal: "input"
@@ -14477,7 +14560,7 @@ function ta_default() {
14477
14560
  };
14478
14561
  }
14479
14562
 
14480
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/tg.js
14563
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/tg.js
14481
14564
  var error51 = () => {
14482
14565
  const Sizable = {
14483
14566
  string: { unit: "\u0430\u043B\u043E\u043C\u0430\u0442", verb: "\u0434\u043E\u0448\u0442\u0430 \u0431\u043E\u0448\u0430\u0434" },
@@ -14518,6 +14601,7 @@ var error51 = () => {
14518
14601
  json_string: "\u0441\u0430\u0442\u0440\u0438 JSON",
14519
14602
  e164: "\u0440\u0430\u049B\u0430\u043C\u0438 E.164",
14520
14603
  credit_card: "\u0440\u0430\u049B\u0430\u043C\u0438 \u043A\u043E\u0440\u0442\u0438 \u043A\u0440\u0435\u0434\u0438\u0442\u04E3",
14604
+ currency_code: "\u0440\u0430\u043C\u0437\u0438 \u0430\u0441\u044A\u043E\u0440",
14521
14605
  iban: "IBAN",
14522
14606
  jwt: "JWT",
14523
14607
  template_literal: "\u0432\u0443\u0440\u0443\u0434"
@@ -14593,7 +14677,7 @@ function tg_default() {
14593
14677
  };
14594
14678
  }
14595
14679
 
14596
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/th.js
14680
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/th.js
14597
14681
  var error52 = () => {
14598
14682
  const Sizable = {
14599
14683
  string: { unit: "\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
@@ -14634,6 +14718,7 @@ var error52 = () => {
14634
14718
  json_string: "\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A JSON",
14635
14719
  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)",
14636
14720
  credit_card: "\u0E2B\u0E21\u0E32\u0E22\u0E40\u0E25\u0E02\u0E1A\u0E31\u0E15\u0E23\u0E40\u0E04\u0E23\u0E14\u0E34\u0E15",
14721
+ currency_code: "\u0E23\u0E2B\u0E31\u0E2A\u0E2A\u0E01\u0E38\u0E25\u0E40\u0E07\u0E34\u0E19",
14637
14722
  iban: "IBAN",
14638
14723
  jwt: "\u0E42\u0E17\u0E40\u0E04\u0E19 JWT",
14639
14724
  template_literal: "\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19"
@@ -14708,7 +14793,7 @@ function th_default() {
14708
14793
  };
14709
14794
  }
14710
14795
 
14711
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/tk.js
14796
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/tk.js
14712
14797
  var error53 = () => {
14713
14798
  const Sizable = {
14714
14799
  string: { unit: "simwol", verb: "bolmaly" },
@@ -14749,6 +14834,7 @@ var error53 = () => {
14749
14834
  json_string: "JSON setiri",
14750
14835
  e164: "E.164 nomeri",
14751
14836
  credit_card: "kredit kartyny\u0148 nomeri",
14837
+ currency_code: "wal\xFDuta kody",
14752
14838
  iban: "IBAN",
14753
14839
  jwt: "JWT",
14754
14840
  template_literal: "\u015Fablon"
@@ -14815,7 +14901,7 @@ function tk_default() {
14815
14901
  };
14816
14902
  }
14817
14903
 
14818
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/tr.js
14904
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/tr.js
14819
14905
  var error54 = () => {
14820
14906
  const Sizable = {
14821
14907
  string: { unit: "karakter", verb: "olmal\u0131" },
@@ -14856,6 +14942,7 @@ var error54 = () => {
14856
14942
  json_string: "JSON dizesi",
14857
14943
  e164: "E.164 say\u0131s\u0131",
14858
14944
  credit_card: "kredi kart\u0131 numaras\u0131",
14945
+ currency_code: "para birimi kodu",
14859
14946
  iban: "IBAN",
14860
14947
  jwt: "JWT",
14861
14948
  template_literal: "\u015Eablon dizesi"
@@ -14925,7 +15012,7 @@ function tr_default() {
14925
15012
  };
14926
15013
  }
14927
15014
 
14928
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/uk.js
15015
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/uk.js
14929
15016
  var error55 = () => {
14930
15017
  const Sizable = {
14931
15018
  string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
@@ -14966,6 +15053,7 @@ var error55 = () => {
14966
15053
  json_string: "\u0440\u044F\u0434\u043E\u043A JSON",
14967
15054
  e164: "\u043D\u043E\u043C\u0435\u0440 E.164",
14968
15055
  credit_card: "\u043D\u043E\u043C\u0435\u0440 \u043A\u0440\u0435\u0434\u0438\u0442\u043D\u043E\u0457 \u043A\u0430\u0440\u0442\u043A\u0438",
15056
+ currency_code: "\u043A\u043E\u0434 \u0432\u0430\u043B\u044E\u0442\u0438",
14969
15057
  iban: "IBAN",
14970
15058
  jwt: "JWT",
14971
15059
  template_literal: "\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"
@@ -15038,12 +15126,12 @@ function uk_default() {
15038
15126
  };
15039
15127
  }
15040
15128
 
15041
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/ua.js
15129
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ua.js
15042
15130
  function ua_default() {
15043
15131
  return uk_default();
15044
15132
  }
15045
15133
 
15046
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/ur.js
15134
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ur.js
15047
15135
  var error56 = () => {
15048
15136
  const Sizable = {
15049
15137
  string: { unit: "\u062D\u0631\u0648\u0641", verb: "\u06C1\u0648\u0646\u0627" },
@@ -15084,6 +15172,7 @@ var error56 = () => {
15084
15172
  json_string: "\u062C\u06D2 \u0627\u06CC\u0633 \u0627\u0648 \u0627\u06CC\u0646 \u0633\u0679\u0631\u0646\u06AF",
15085
15173
  e164: "\u0627\u06CC 164 \u0646\u0645\u0628\u0631",
15086
15174
  credit_card: "\u06A9\u0631\u06CC\u0688\u0679 \u06A9\u0627\u0631\u0688 \u0646\u0645\u0628\u0631",
15175
+ currency_code: "\u06A9\u0631\u0646\u0633\u06CC \u06A9\u0648\u0688",
15087
15176
  iban: "IBAN",
15088
15177
  jwt: "\u062C\u06D2 \u0688\u0628\u0644\u06CC\u0648 \u0679\u06CC",
15089
15178
  template_literal: "\u0627\u0646 \u067E\u0679"
@@ -15158,7 +15247,7 @@ function ur_default() {
15158
15247
  };
15159
15248
  }
15160
15249
 
15161
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/uz.js
15250
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/uz.js
15162
15251
  var error57 = () => {
15163
15252
  const Sizable = {
15164
15253
  string: { unit: "belgi", verb: "bo\u2018lishi kerak" },
@@ -15199,6 +15288,7 @@ var error57 = () => {
15199
15288
  json_string: "JSON satr",
15200
15289
  e164: "E.164 raqam",
15201
15290
  credit_card: "kredit karta raqami",
15291
+ currency_code: "valyuta kodi",
15202
15292
  iban: "IBAN",
15203
15293
  jwt: "JWT",
15204
15294
  template_literal: "kirish"
@@ -15271,7 +15361,7 @@ function uz_default() {
15271
15361
  };
15272
15362
  }
15273
15363
 
15274
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/vi.js
15364
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/vi.js
15275
15365
  var error58 = () => {
15276
15366
  const Sizable = {
15277
15367
  string: { unit: "k\xFD t\u1EF1", verb: "c\xF3" },
@@ -15312,6 +15402,7 @@ var error58 = () => {
15312
15402
  json_string: "chu\u1ED7i JSON",
15313
15403
  e164: "s\u1ED1 E.164",
15314
15404
  credit_card: "s\u1ED1 th\u1EBB t\xEDn d\u1EE5ng",
15405
+ currency_code: "m\xE3 ti\u1EC1n t\u1EC7",
15315
15406
  iban: "IBAN",
15316
15407
  jwt: "JWT",
15317
15408
  template_literal: "\u0111\u1EA7u v\xE0o"
@@ -15384,7 +15475,7 @@ function vi_default() {
15384
15475
  };
15385
15476
  }
15386
15477
 
15387
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/zh-CN.js
15478
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/zh-CN.js
15388
15479
  var error59 = () => {
15389
15480
  const Sizable = {
15390
15481
  string: { unit: "\u5B57\u7B26", verb: "\u5305\u542B" },
@@ -15425,6 +15516,7 @@ var error59 = () => {
15425
15516
  json_string: "JSON\u5B57\u7B26\u4E32",
15426
15517
  e164: "E.164\u53F7\u7801",
15427
15518
  credit_card: "\u4FE1\u7528\u5361\u53F7",
15519
+ currency_code: "\u8D27\u5E01\u4EE3\u7801",
15428
15520
  iban: "IBAN",
15429
15521
  jwt: "JWT",
15430
15522
  template_literal: "\u8F93\u5165"
@@ -15498,7 +15590,7 @@ function zh_CN_default() {
15498
15590
  };
15499
15591
  }
15500
15592
 
15501
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/zh-TW.js
15593
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/zh-TW.js
15502
15594
  var error60 = () => {
15503
15595
  const Sizable = {
15504
15596
  string: { unit: "\u5B57\u5143", verb: "\u64C1\u6709" },
@@ -15539,6 +15631,7 @@ var error60 = () => {
15539
15631
  json_string: "JSON \u5B57\u4E32",
15540
15632
  e164: "E.164 \u6578\u503C",
15541
15633
  credit_card: "\u4FE1\u7528\u5361\u865F",
15634
+ currency_code: "\u8CA8\u5E63\u4EE3\u78BC",
15542
15635
  iban: "IBAN",
15543
15636
  jwt: "JWT",
15544
15637
  template_literal: "\u8F38\u5165"
@@ -15610,7 +15703,7 @@ function zh_TW_default() {
15610
15703
  };
15611
15704
  }
15612
15705
 
15613
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/locales/yo.js
15706
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/yo.js
15614
15707
  var error61 = () => {
15615
15708
  const Sizable = {
15616
15709
  string: { unit: "\xE0mi", verb: "n\xED" },
@@ -15651,6 +15744,7 @@ var error61 = () => {
15651
15744
  json_string: "\u1ECD\u0300r\u1ECD\u0300 JSON",
15652
15745
  e164: "n\u1ECD\u0301mb\xE0 E.164",
15653
15746
  credit_card: "n\u1ECDmba kaadi gbese",
15747
+ currency_code: "koodu ow\xF3",
15654
15748
  iban: "IBAN",
15655
15749
  jwt: "JWT",
15656
15750
  template_literal: "\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9"
@@ -15722,7 +15816,7 @@ function yo_default() {
15722
15816
  };
15723
15817
  }
15724
15818
 
15725
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/core/registries.js
15819
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/registries.js
15726
15820
  var _a2;
15727
15821
  var $output = /* @__PURE__ */ Symbol("ZodOutput");
15728
15822
  var $input = /* @__PURE__ */ Symbol("ZodInput");
@@ -15772,7 +15866,7 @@ function registry() {
15772
15866
  (_a2 = globalThis).__zod_globalRegistry ?? (_a2.__zod_globalRegistry = registry());
15773
15867
  var globalRegistry = globalThis.__zod_globalRegistry;
15774
15868
 
15775
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/core/compile.js
15869
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/compile.js
15776
15870
  var INVALID = /* @__PURE__ */ Symbol.for("zod.compile.invalid");
15777
15871
  var FALLBACK_FLAG = /* @__PURE__ */ Symbol.for("zod.compile.fallback");
15778
15872
  var ZodCompileAsyncError = class extends Error {
@@ -16029,7 +16123,7 @@ function generateChecks(doc, ctx, schema, accessor) {
16029
16123
  generatePropertyCheck(doc, ctx, def, currentAccessor);
16030
16124
  break;
16031
16125
  case "properties":
16032
- generatePropertiesChecks(doc, ctx, def, currentAccessor, false);
16126
+ generatePropertiesChecks(doc, ctx, def, currentAccessor);
16033
16127
  break;
16034
16128
  case "overwrite": {
16035
16129
  const newAccessor = newVar(ctx);
@@ -16139,11 +16233,11 @@ function generateMimeTypeCheck(doc, ctx, def, accessor) {
16139
16233
  doc.write(`if (!${mimeSet}.has(${accessor}.type)) return INVALID;`);
16140
16234
  }
16141
16235
  }
16142
- function generatePropertiesChecks(doc, ctx, def, accessor, schemaRole) {
16236
+ function generatePropertiesChecks(doc, ctx, def, accessor) {
16143
16237
  if (def.when) {
16144
16238
  throw new ZodCompileUnsupportedError(`check with a custom "when" condition`);
16145
16239
  }
16146
- doc.write(schemaRole ? `if (${accessor} === null || (typeof ${accessor} !== "object" && typeof ${accessor} !== "function")) return INVALID;` : `if (${accessor} == null) return INVALID;`);
16240
+ doc.write(`if (${accessor} == null) return INVALID;`);
16147
16241
  const shape = def.shape;
16148
16242
  for (const key of Reflect.ownKeys(shape)) {
16149
16243
  const keyExpr = typeof key === "symbol" ? addConstant(ctx, key) : esc(key);
@@ -16233,7 +16327,7 @@ var PATTERN_IS_COMPLETE = /* @__PURE__ */ new Set([
16233
16327
  "uuid",
16234
16328
  "xid"
16235
16329
  ]);
16236
- function generateStringFormatCheck(doc, ctx, def, accessor) {
16330
+ function generateStringFormatCheck(doc, ctx, def, accessor, needsValue = true) {
16237
16331
  const fmt = def.format;
16238
16332
  if (fmt === "base64") {
16239
16333
  const validator = addConstant(ctx, isValidBase64);
@@ -16273,7 +16367,7 @@ function generateStringFormatCheck(doc, ctx, def, accessor) {
16273
16367
  }
16274
16368
  const formatDef = def;
16275
16369
  if (fmt === "url" || fmt === "httpurl" || formatDef.normalize || formatDef.hostname !== void 0 || formatDef.protocol !== void 0) {
16276
- const parseConst = addConstant(ctx, parseURLObject);
16370
+ const parseConst = addConstant(ctx, validateURL);
16277
16371
  const defConst = addConstant(ctx, def);
16278
16372
  const trimVar = newVar(ctx);
16279
16373
  const urlVar = newVar(ctx);
@@ -16288,6 +16382,8 @@ function generateStringFormatCheck(doc, ctx, def, accessor) {
16288
16382
  const protocolConst = addConstant(ctx, urlProtocolOk);
16289
16383
  doc.write(`if (!${protocolConst}(${urlVar}, ${defConst}.protocol)) return INVALID;`);
16290
16384
  }
16385
+ if (!needsValue)
16386
+ return null;
16291
16387
  const outputVar = newVar(ctx);
16292
16388
  const outputExpr = formatDef.normalize ? `${urlVar}.href` : `${addConstant(ctx, stripTabAndNewline)}(${trimVar})`;
16293
16389
  doc.write(`const ${outputVar} = ${outputExpr};`);
@@ -16347,7 +16443,7 @@ function generateCheck(doc, ctx, schema, accessor, needsValue = true) {
16347
16443
  let typeAccessor;
16348
16444
  switch (type) {
16349
16445
  case "string":
16350
- typeAccessor = generateStringCheck(doc, ctx, schema, accessor);
16446
+ typeAccessor = generateStringCheck(doc, ctx, schema, accessor, buildsValue);
16351
16447
  break;
16352
16448
  case "number":
16353
16449
  typeAccessor = generateNumberCheck(doc, schema, accessor);
@@ -16453,10 +16549,6 @@ function generateCheck(doc, ctx, schema, accessor, needsValue = true) {
16453
16549
  case "custom":
16454
16550
  typeAccessor = generateCustomCheck(doc, ctx, schema, accessor);
16455
16551
  break;
16456
- case "properties":
16457
- generatePropertiesChecks(doc, ctx, schema._zod.def, accessor, true);
16458
- typeAccessor = accessor;
16459
- break;
16460
16552
  case "transform":
16461
16553
  typeAccessor = generateTransformCheck(doc, ctx, schema, accessor);
16462
16554
  break;
@@ -16472,12 +16564,12 @@ function generateCheck(doc, ctx, schema, accessor, needsValue = true) {
16472
16564
  return null;
16473
16565
  return generateChecks(doc, ctx, schema, typeAccessor);
16474
16566
  }
16475
- function generateStringCheck(doc, ctx, schema, accessor) {
16567
+ function generateStringCheck(doc, ctx, schema, accessor, needsValue = true) {
16476
16568
  doc.write(`if (typeof ${accessor} !== "string") return INVALID;`);
16477
16569
  const def = schema._zod.def;
16478
16570
  if (def.format === void 0)
16479
16571
  return accessor;
16480
- return generateStringFormatCheck(doc, ctx, def, accessor);
16572
+ return generateStringFormatCheck(doc, ctx, def, accessor, needsValue);
16481
16573
  }
16482
16574
  function generateNumberCheck(doc, schema, accessor) {
16483
16575
  doc.write(`if (typeof ${accessor} !== "number" || !Number.isFinite(${accessor})) return INVALID;`);
@@ -17376,21 +17468,19 @@ function generateTransformCheck(doc, ctx, schema, accessor) {
17376
17468
  return accessor;
17377
17469
  }
17378
17470
 
17379
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/core/api.js
17471
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/api.js
17472
+ function snapshotChecks(def) {
17473
+ if (def.checks)
17474
+ def.checks = [...def.checks];
17475
+ return def;
17476
+ }
17380
17477
  // @__NO_SIDE_EFFECTS__
17381
17478
  function _string(Class2, params) {
17382
- return new Class2({
17383
- type: "string",
17384
- ...normalizeParams(params)
17385
- });
17479
+ return new Class2(snapshotChecks({ type: "string", ...normalizeParams(params) }));
17386
17480
  }
17387
17481
  // @__NO_SIDE_EFFECTS__
17388
17482
  function _coercedString(Class2, params) {
17389
- return new Class2({
17390
- type: "string",
17391
- coerce: true,
17392
- ...normalizeParams(params)
17393
- });
17483
+ return new Class2(snapshotChecks({ type: "string", coerce: true, ...normalizeParams(params) }));
17394
17484
  }
17395
17485
  // @__NO_SIDE_EFFECTS__
17396
17486
  function _email(Class2, params) {
@@ -17694,20 +17784,11 @@ function _isoDuration(Class2, params) {
17694
17784
  }
17695
17785
  // @__NO_SIDE_EFFECTS__
17696
17786
  function _number(Class2, params) {
17697
- return new Class2({
17698
- type: "number",
17699
- checks: [],
17700
- ...normalizeParams(params)
17701
- });
17787
+ return new Class2(snapshotChecks({ type: "number", checks: [], ...normalizeParams(params) }));
17702
17788
  }
17703
17789
  // @__NO_SIDE_EFFECTS__
17704
17790
  function _coercedNumber(Class2, params) {
17705
- return new Class2({
17706
- type: "number",
17707
- coerce: true,
17708
- checks: [],
17709
- ...normalizeParams(params)
17710
- });
17791
+ return new Class2(snapshotChecks({ type: "number", coerce: true, checks: [], ...normalizeParams(params) }));
17711
17792
  }
17712
17793
  // @__NO_SIDE_EFFECTS__
17713
17794
  function _int(Class2, params) {
@@ -18049,9 +18130,8 @@ function _property(property, schema, params) {
18049
18130
  });
18050
18131
  }
18051
18132
  // @__NO_SIDE_EFFECTS__
18052
- function _properties(Class2, shape, params) {
18053
- return new Class2({
18054
- type: "properties",
18133
+ function _properties(shape, params) {
18134
+ return new $ZodCheckProperties({
18055
18135
  check: "properties",
18056
18136
  shape,
18057
18137
  ...normalizeParams(params)
@@ -18447,7 +18527,7 @@ function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
18447
18527
  return inst;
18448
18528
  }
18449
18529
 
18450
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/core/to-json-schema.js
18530
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/to-json-schema.js
18451
18531
  function assignProps(target, ...sources) {
18452
18532
  for (const source of sources) {
18453
18533
  for (const key of Reflect.ownKeys(source)) {
@@ -18686,11 +18766,11 @@ function foldObjects(members2) {
18686
18766
  }
18687
18767
  objects.push(member);
18688
18768
  }
18689
- const properties2 = {};
18769
+ const properties = {};
18690
18770
  const required2 = /* @__PURE__ */ new Set();
18691
18771
  for (const object2 of objects) {
18692
18772
  for (const key in object2.properties) {
18693
- if (Object.prototype.hasOwnProperty.call(properties2, key))
18773
+ if (Object.prototype.hasOwnProperty.call(properties, key))
18694
18774
  continue;
18695
18775
  const parts = [];
18696
18776
  for (const other of objects) {
@@ -18701,12 +18781,12 @@ function foldObjects(members2) {
18701
18781
  parts.push(part);
18702
18782
  }
18703
18783
  const merged = parts.length === 1 ? parts[0] : foldObjects(parts) ?? { allOf: parts };
18704
- assignProp(properties2, key, merged);
18784
+ assignProp(properties, key, merged);
18705
18785
  }
18706
18786
  for (const key of object2.required ?? [])
18707
18787
  required2.add(key);
18708
18788
  }
18709
- const folded = { type: "object", properties: properties2 };
18789
+ const folded = { type: "object", properties };
18710
18790
  if (required2.size)
18711
18791
  folded.required = [...required2];
18712
18792
  if (objects.every((object2) => object2.additionalProperties === false)) {
@@ -18977,7 +19057,7 @@ var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) =
18977
19057
  return finalize(ctx, schema);
18978
19058
  };
18979
19059
 
18980
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/core/json-schema-processors.js
19060
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/json-schema-processors.js
18981
19061
  var narrowMin = (agg, key, value) => {
18982
19062
  if (agg[key] === void 0 || value > agg[key])
18983
19063
  agg[key] = value;
@@ -19328,17 +19408,15 @@ var objectProcessor = (schema, ctx, _json, params) => {
19328
19408
  path: [...params.path, "properties", key]
19329
19409
  }));
19330
19410
  }
19331
- const allKeys = new Set(Object.keys(shape));
19332
- const requiredKeys = new Set([...allKeys].filter((key) => {
19411
+ const requiredKeys = [];
19412
+ for (const key of Object.keys(shape)) {
19333
19413
  const field = def.shape[key];
19334
- if (ctx.io === "input") {
19335
- return inputOptin(field) === void 0;
19336
- } else {
19337
- return field._zod.optout === void 0;
19414
+ if (ctx.io === "input" ? inputOptin(field) === void 0 : field._zod.optout === void 0) {
19415
+ requiredKeys.push(key);
19338
19416
  }
19339
- }));
19340
- if (requiredKeys.size > 0) {
19341
- json2.required = Array.from(requiredKeys);
19417
+ }
19418
+ if (requiredKeys.length > 0) {
19419
+ json2.required = requiredKeys;
19342
19420
  }
19343
19421
  if (def.catchall?._zod.def.type === "never") {
19344
19422
  json2.additionalProperties = false;
@@ -19352,31 +19430,6 @@ var objectProcessor = (schema, ctx, _json, params) => {
19352
19430
  });
19353
19431
  }
19354
19432
  };
19355
- var propertiesProcessor = (schema, ctx, _json, params) => {
19356
- const json2 = _json;
19357
- const def = schema._zod.def;
19358
- if (Object.getOwnPropertySymbols(def.shape).length && handleUnrepresentable(schema, ctx, json2, params, "Symbol keys cannot be represented in JSON Schema")) {
19359
- return;
19360
- }
19361
- if (ctx.io === "output") {
19362
- for (const key in def.shape) {
19363
- 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`)) {
19364
- return;
19365
- }
19366
- }
19367
- }
19368
- json2.type = "object";
19369
- json2.properties = {};
19370
- for (const key in def.shape) {
19371
- assignProp(json2.properties, key, processSchema(def.shape[key], ctx, {
19372
- ...params,
19373
- path: [...params.path, "properties", key]
19374
- }));
19375
- }
19376
- const required2 = Object.keys(def.shape).filter((key) => inputOptin(def.shape[key]) === void 0);
19377
- if (required2.length > 0)
19378
- json2.required = required2;
19379
- };
19380
19433
  var unionProcessor = (schema, ctx, json2, params) => {
19381
19434
  const def = schema._zod.def;
19382
19435
  const isExclusive = def.inclusive === false;
@@ -19696,7 +19749,6 @@ var allProcessors = {
19696
19749
  file: fileProcessor,
19697
19750
  success: successProcessor,
19698
19751
  custom: customProcessor,
19699
- properties: propertiesProcessor,
19700
19752
  function: functionProcessor,
19701
19753
  transform: transformProcessor,
19702
19754
  map: mapProcessor,
@@ -19753,7 +19805,7 @@ function toJSONSchema(input2, params) {
19753
19805
  return finalize(ctx, input2);
19754
19806
  }
19755
19807
 
19756
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/core/json-schema-generator.js
19808
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/json-schema-generator.js
19757
19809
  var JSONSchemaGenerator = class {
19758
19810
  /** @deprecated Access via ctx instead */
19759
19811
  get metadataRegistry() {
@@ -19831,10 +19883,10 @@ var JSONSchemaGenerator = class {
19831
19883
  }
19832
19884
  };
19833
19885
 
19834
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/core/json-schema.js
19886
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/json-schema.js
19835
19887
  var json_schema_exports = {};
19836
19888
 
19837
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/classic/schemas.js
19889
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/schemas.js
19838
19890
  var schemas_exports2 = {};
19839
19891
  __export(schemas_exports2, {
19840
19892
  ZodAny: () => ZodAny,
@@ -19893,7 +19945,6 @@ __export(schemas_exports2, {
19893
19945
  ZodPrefault: () => ZodPrefault,
19894
19946
  ZodPreprocess: () => ZodPreprocess,
19895
19947
  ZodPromise: () => ZodPromise,
19896
- ZodProperties: () => ZodProperties,
19897
19948
  ZodReadonly: () => ZodReadonly,
19898
19949
  ZodRecord: () => ZodRecord,
19899
19950
  ZodSet: () => ZodSet,
@@ -19931,6 +19982,7 @@ __export(schemas_exports2, {
19931
19982
  creditCard: () => creditCard2,
19932
19983
  cuid: () => cuid3,
19933
19984
  cuid2: () => cuid22,
19985
+ currencyCode: () => currencyCode2,
19934
19986
  custom: () => custom,
19935
19987
  date: () => date2,
19936
19988
  describe: () => describe2,
@@ -19985,7 +20037,6 @@ __export(schemas_exports2, {
19985
20037
  prefault: () => prefault,
19986
20038
  preprocess: () => preprocess,
19987
20039
  promise: () => promise,
19988
- properties: () => properties,
19989
20040
  readonly: () => readonly,
19990
20041
  record: () => record,
19991
20042
  refine: () => refine,
@@ -20016,7 +20067,7 @@ __export(schemas_exports2, {
20016
20067
  xor: () => xor
20017
20068
  });
20018
20069
 
20019
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/classic/checks.js
20070
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/checks.js
20020
20071
  var checks_exports2 = {};
20021
20072
  __export(checks_exports2, {
20022
20073
  endsWith: () => _endsWith,
@@ -20039,6 +20090,7 @@ __export(checks_exports2, {
20039
20090
  normalize: () => _normalize,
20040
20091
  overwrite: () => _overwrite,
20041
20092
  positive: () => _positive,
20093
+ properties: () => _properties,
20042
20094
  property: () => _property,
20043
20095
  regex: () => _regex,
20044
20096
  size: () => _size,
@@ -20050,7 +20102,7 @@ __export(checks_exports2, {
20050
20102
  uppercase: () => _uppercase
20051
20103
  });
20052
20104
 
20053
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/classic/errors.js
20105
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/errors.js
20054
20106
  var _installedErrorProtos = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]);
20055
20107
  function _lazyMethod(proto, key, make) {
20056
20108
  Object.defineProperty(proto, key, {
@@ -20096,7 +20148,7 @@ var ZodRealError = /* @__PURE__ */ $constructor("ZodError", initializer2, void 0
20096
20148
  Parent: Error
20097
20149
  });
20098
20150
 
20099
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/classic/parse.js
20151
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/parse.js
20100
20152
  var parse2 = /* @__PURE__ */ _parse(ZodRealError);
20101
20153
  var parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError);
20102
20154
  var safeParse2 = /* @__PURE__ */ _safeParse(ZodRealError);
@@ -20110,7 +20162,7 @@ var safeDecode2 = /* @__PURE__ */ _safeDecode(ZodRealError);
20110
20162
  var safeEncodeAsync2 = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
20111
20163
  var safeDecodeAsync2 = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
20112
20164
 
20113
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/classic/schemas.js
20165
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/schemas.js
20114
20166
  function _ensureDefaultLocale() {
20115
20167
  if (!globalConfig.localeError)
20116
20168
  config(en_default());
@@ -20498,8 +20550,8 @@ function url(params) {
20498
20550
  }
20499
20551
  function httpUrl(params) {
20500
20552
  return _url(ZodURL, {
20501
- protocol: regexes_exports.httpProtocol,
20502
- hostname: regexes_exports.domain,
20553
+ protocol: httpProtocol,
20554
+ hostname: domain,
20503
20555
  ...util_exports.normalizeParams(params)
20504
20556
  });
20505
20557
  }
@@ -20637,10 +20689,13 @@ function stringFormat(format, fnOrRegex, _params = {}) {
20637
20689
  return _stringFormat(ZodCustomStringFormat, format, fnOrRegex, _params);
20638
20690
  }
20639
20691
  function hostname2(_params) {
20640
- return _stringFormat(ZodCustomStringFormat, "hostname", regexes_exports.hostname, _params);
20692
+ return _stringFormat(ZodCustomStringFormat, "hostname", hostname, _params);
20641
20693
  }
20642
20694
  function hex2(_params) {
20643
- return _stringFormat(ZodCustomStringFormat, "hex", regexes_exports.hex, _params);
20695
+ return _stringFormat(ZodCustomStringFormat, "hex", hex, _params);
20696
+ }
20697
+ function currencyCode2(_params) {
20698
+ return _stringFormat(ZodCustomStringFormat, "currency_code", currencyCode, _params);
20644
20699
  }
20645
20700
  function hash(alg, params) {
20646
20701
  const enc = params?.enc ?? "hex";
@@ -21505,14 +21560,6 @@ var ZodCustom = /* @__PURE__ */ $constructor("ZodCustom", (inst, def) => {
21505
21560
  ZodType.init(inst, def);
21506
21561
  inst._zod.processJSONSchema = (ctx, json2, params) => customProcessor(inst, ctx, json2, params);
21507
21562
  });
21508
- var ZodProperties = /* @__PURE__ */ $constructor("ZodProperties", (inst, def) => {
21509
- _ensureDefaultMemoizer();
21510
- $ZodProperties.init(inst, def);
21511
- ZodType.init(inst, def);
21512
- });
21513
- function properties(shape, params) {
21514
- return _properties(ZodProperties, shape, params);
21515
- }
21516
21563
  function check(fn) {
21517
21564
  const ch = new $ZodCheck({
21518
21565
  check: "custom"
@@ -21536,7 +21583,7 @@ var ZodInstanceOf = /* @__PURE__ */ $constructor("ZodInstanceOf", (inst, def) =>
21536
21583
  ZodCustom.init(inst, def);
21537
21584
  }, {
21538
21585
  properties(shape, params) {
21539
- return this.check(properties(shape, params));
21586
+ return this.check(_properties(shape, params));
21540
21587
  }
21541
21588
  });
21542
21589
  function _instanceof(cls, params = {}) {
@@ -21580,7 +21627,7 @@ function preprocess(fn, schema) {
21580
21627
  });
21581
21628
  }
21582
21629
 
21583
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/classic/compat.js
21630
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/compat.js
21584
21631
  var ZodIssueCode = {
21585
21632
  invalid_type: "invalid_type",
21586
21633
  too_big: "too_big",
@@ -21606,7 +21653,7 @@ var ZodFirstPartyTypeKind;
21606
21653
  /* @__PURE__ */ (function(ZodFirstPartyTypeKind2) {
21607
21654
  })(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
21608
21655
 
21609
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/classic/iso.js
21656
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/iso.js
21610
21657
  var iso_exports = {};
21611
21658
  __export(iso_exports, {
21612
21659
  ZodISODate: () => ZodISODate,
@@ -21631,7 +21678,7 @@ function duration2(params) {
21631
21678
  return _isoDuration(ZodISODuration, params);
21632
21679
  }
21633
21680
 
21634
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/classic/from-json-schema.js
21681
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/from-json-schema.js
21635
21682
  var z = {
21636
21683
  ...schemas_exports2,
21637
21684
  ...checks_exports2,
@@ -22123,10 +22170,10 @@ function convertBaseSchema(schema, ctx) {
22123
22170
  }
22124
22171
  case "object": {
22125
22172
  const shape = {};
22126
- const properties2 = schema.properties || {};
22173
+ const properties = schema.properties || {};
22127
22174
  const requiredSet = new Set(schema.required || []);
22128
22175
  const additionalSchema = typeof schema.additionalProperties === "object" ? convertSchema(schema.additionalProperties, ctx) : void 0;
22129
- for (const [key, propSchema] of Object.entries(properties2)) {
22176
+ for (const [key, propSchema] of Object.entries(properties)) {
22130
22177
  const propZodSchema = convertSchema(propSchema, ctx);
22131
22178
  assignProp(shape, key, requiredSet.has(key) ? propZodSchema : propZodSchema.optional());
22132
22179
  }
@@ -22364,7 +22411,7 @@ function fromJSONSchema(schema, params) {
22364
22411
  return convertSchema(normalized, ctx);
22365
22412
  }
22366
22413
 
22367
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/core/visit.js
22414
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/visit.js
22368
22415
  var RESOLVING = /* @__PURE__ */ Symbol("z.visit/resolving");
22369
22416
  function visit(schema, fnOrHandlers) {
22370
22417
  const fn = typeof fnOrHandlers === "function" ? fnOrHandlers : (node3, rewritten) => {
@@ -22487,18 +22534,6 @@ function visit(schema, fnOrHandlers) {
22487
22534
  const { _cachedInner, ...rest } = def;
22488
22535
  return clone(s, { ...rest, getter: () => run(original()) });
22489
22536
  }
22490
- case "properties": {
22491
- const oldShape = def.shape;
22492
- let changed = false;
22493
- const newShape = {};
22494
- for (const k of Reflect.ownKeys(oldShape)) {
22495
- const mapped = run(oldShape[k]);
22496
- if (mapped !== oldShape[k])
22497
- changed = true;
22498
- newShape[k] = mapped;
22499
- }
22500
- return changed ? clone(s, { ...def, shape: newShape }) : s;
22501
- }
22502
22537
  // A leaf by choice: `parts` are regex fragments, not data positions.
22503
22538
  case "template_literal":
22504
22539
  // Leaves.
@@ -22531,7 +22566,7 @@ function visit(schema, fnOrHandlers) {
22531
22566
  return run(schema);
22532
22567
  }
22533
22568
 
22534
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/classic/deep-partial.js
22569
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/deep-partial.js
22535
22570
  function deepPartial(schema) {
22536
22571
  return visit(schema, {
22537
22572
  object: (s) => s.partial(),
@@ -22543,7 +22578,7 @@ function deepPartial(schema) {
22543
22578
  });
22544
22579
  }
22545
22580
 
22546
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/classic/in-out.js
22581
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/in-out.js
22547
22582
  function withChecks(side, checks) {
22548
22583
  if (!checks?.length)
22549
22584
  return side;
@@ -22573,7 +22608,7 @@ function output(schema) {
22573
22608
  });
22574
22609
  }
22575
22610
 
22576
- // ../../node_modules/.pnpm/zod@4.6.2/node_modules/zod/v4/classic/coerce.js
22611
+ // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/coerce.js
22577
22612
  var coerce_exports = {};
22578
22613
  __export(coerce_exports, {
22579
22614
  bigint: () => bigint3,
@@ -23781,11 +23816,32 @@ function parseNativeHistoryText(text3) {
23781
23816
  });
23782
23817
  return { text: plainText, images };
23783
23818
  }
23784
- var historyMessage = external_exports.strictObject({
23785
- role: external_exports.enum(["user", "assistant"]),
23819
+ var nativeMessageActivitySchema = external_exports.strictObject({
23820
+ activityId: external_exports.string().min(1).max(128),
23821
+ activityType: external_exports.string().min(1).max(128),
23822
+ content: external_exports.array(displayContentSchema).max(100).readonly(),
23823
+ input: external_exports.string().max(1e5),
23824
+ locations: external_exports.array(external_exports.string().min(1).max(2048)).max(100).readonly(),
23825
+ name: external_exports.string().max(128),
23826
+ output: external_exports.string().max(1e5),
23827
+ sequence: external_exports.number().int().nonnegative(),
23828
+ status: external_exports.string().min(1).max(64),
23829
+ title: external_exports.string().max(500),
23830
+ toolKind: external_exports.string().max(64)
23831
+ }).readonly();
23832
+ var userHistoryMessage = external_exports.strictObject({
23833
+ role: external_exports.literal("user"),
23834
+ text: external_exports.string().max(SESSION_HISTORY_CHARACTER_LIMIT),
23835
+ images: external_exports.array(historyImage).max(8).readonly().optional()
23836
+ }).readonly();
23837
+ var assistantHistoryMessage = external_exports.strictObject({
23838
+ activities: external_exports.array(nativeMessageActivitySchema).max(100).readonly().default([]),
23839
+ content: external_exports.array(displayContentSchema).max(100).readonly().default([]),
23840
+ role: external_exports.literal("assistant"),
23786
23841
  text: external_exports.string().max(SESSION_HISTORY_CHARACTER_LIMIT),
23787
23842
  images: external_exports.array(historyImage).max(8).readonly().optional()
23788
23843
  }).readonly();
23844
+ var historyMessage = external_exports.discriminatedUnion("role", [userHistoryMessage, assistantHistoryMessage]);
23789
23845
  var availableSessionHistoryObjectSchema = external_exports.strictObject({
23790
23846
  status: external_exports.literal("available"),
23791
23847
  messages: external_exports.array(historyMessage).max(SESSION_HISTORY_MESSAGE_LIMIT).readonly(),
@@ -23794,19 +23850,28 @@ var availableSessionHistoryObjectSchema = external_exports.strictObject({
23794
23850
  coveredMessageIds: external_exports.array(external_exports.string().regex(/^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,127}:(?:user|agent)$/)).max(2e4).readonly().default([])
23795
23851
  });
23796
23852
  var availableSessionHistorySchema = availableSessionHistoryObjectSchema.readonly();
23797
- var unavailableSessionHistoryObjectSchema = external_exports.strictObject({ status: external_exports.literal("unavailable") });
23853
+ var unavailableSessionHistoryObjectSchema = external_exports.strictObject({
23854
+ status: external_exports.literal("unavailable"),
23855
+ cause: external_exports.strictObject({
23856
+ code: external_exports.string().regex(/^[a-z][a-z0-9_]{0,127}$/),
23857
+ message: external_exports.string().min(1).max(1e3)
23858
+ }).readonly()
23859
+ });
23798
23860
  var unavailableSessionHistorySchema = unavailableSessionHistoryObjectSchema.readonly();
23799
23861
  function withinHistoryContentLimits(history) {
23800
23862
  if (history.status === "unavailable" || history.messages === void 0) {
23801
23863
  return true;
23802
23864
  }
23803
- return history.messages.reduce((total, message) => total + message.text.length, 0) <= SESSION_HISTORY_CHARACTER_LIMIT && history.messages.reduce(
23865
+ return history.messages.reduce(
23866
+ (total, message) => total + message.text.length + (message.role === "assistant" ? JSON.stringify(message.activities).length + JSON.stringify(message.content).length : 0),
23867
+ 0
23868
+ ) <= SESSION_HISTORY_CHARACTER_LIMIT && history.messages.reduce(
23804
23869
  (total, message) => total + (message.images ?? []).reduce((size, image) => size + image.data.length, 0),
23805
23870
  0
23806
23871
  ) <= SESSION_HISTORY_IMAGE_CHARACTER_LIMIT;
23807
23872
  }
23808
23873
  var sessionHistorySchema = external_exports.discriminatedUnion("status", [availableSessionHistorySchema, unavailableSessionHistorySchema]).refine(withinHistoryContentLimits);
23809
- var sessionHistoryPageSchema = external_exports.discriminatedUnion("status", [
23874
+ var nativeMessagePageSchema = external_exports.discriminatedUnion("status", [
23810
23875
  availableSessionHistoryObjectSchema.extend({ nextCursor: external_exports.string().max(512).nullable() }).readonly(),
23811
23876
  unavailableSessionHistoryObjectSchema.extend({ nextCursor: external_exports.null() }).readonly()
23812
23877
  ]).refine(withinHistoryContentLimits);
@@ -25335,7 +25400,7 @@ import { fetch as fetch5, WebSocket as WebSocket2 } from "undici";
25335
25400
  // src/acp/session-manager.ts
25336
25401
  import { spawn as spawn3 } from "node:child_process";
25337
25402
  import {
25338
- methods as methods6,
25403
+ methods as methods7,
25339
25404
  ndJsonStream as ndJsonStream2,
25340
25405
  PROTOCOL_VERSION as PROTOCOL_VERSION2,
25341
25406
  RequestError as RequestError3
@@ -25769,8 +25834,8 @@ function captureActivityDetail(content3, input2, output2) {
25769
25834
  originalBytes
25770
25835
  };
25771
25836
  }
25772
- function recordedDetail(activity) {
25773
- return activity?.detail.kind === "recorded" ? activity.detail : null;
25837
+ function recordedDetail(activity2) {
25838
+ return activity2?.detail.kind === "recorded" ? activity2.detail : null;
25774
25839
  }
25775
25840
  function emptyDisplayContent(type) {
25776
25841
  return {
@@ -25988,7 +26053,7 @@ var AcpActivityTracker = class {
25988
26053
  const previous2 = this.#activities.get(key);
25989
26054
  const identity2 = this.#identity(key);
25990
26055
  const fullOutput = `${recordedDetail(previous2)?.output ?? previous2?.output ?? ""}${text3}`;
25991
- const activity = new AcpActivity(
26056
+ const activity2 = new AcpActivity(
25992
26057
  identity2.id,
25993
26058
  activityType,
25994
26059
  "",
@@ -26002,7 +26067,7 @@ var AcpActivityTracker = class {
26002
26067
  [],
26003
26068
  captureActivityDetail([], "", fullOutput)
26004
26069
  );
26005
- await this.#record(key, activity);
26070
+ await this.#record(key, activity2);
26006
26071
  this.#activeNarrativeKey = key;
26007
26072
  };
26008
26073
  recordPlan = async (plan) => {
@@ -26124,21 +26189,21 @@ var AcpActivityTracker = class {
26124
26189
  return;
26125
26190
  }
26126
26191
  this.#activeNarrativeKey = "";
26127
- const activity = this.#activities.get(key);
26128
- if (activity === void 0) {
26192
+ const activity2 = this.#activities.get(key);
26193
+ if (activity2 === void 0) {
26129
26194
  return;
26130
26195
  }
26131
- const completed = activity.complete();
26132
- if (completed !== activity) {
26196
+ const completed = activity2.complete();
26197
+ if (completed !== activity2) {
26133
26198
  await this.#record(key, completed);
26134
26199
  }
26135
26200
  };
26136
26201
  finish = async () => {
26137
26202
  await this.finishNarrative();
26138
26203
  const entries = [...this.#activities.entries()].sort((left, right) => left[1].sequence - right[1].sequence);
26139
- for (const [key, activity] of entries) {
26140
- const completed = activity.complete();
26141
- if (completed !== activity) {
26204
+ for (const [key, activity2] of entries) {
26205
+ const completed = activity2.complete();
26206
+ if (completed !== activity2) {
26142
26207
  await this.#record(key, completed);
26143
26208
  }
26144
26209
  }
@@ -26153,9 +26218,9 @@ var AcpActivityTracker = class {
26153
26218
  this.#identities.set(key, identity2);
26154
26219
  return identity2;
26155
26220
  };
26156
- #record = async (key, activity) => {
26157
- this.#activities.set(key, activity);
26158
- await this.#onActivity(activity);
26221
+ #record = async (key, activity2) => {
26222
+ this.#activities.set(key, activity2);
26223
+ await this.#onActivity(activity2);
26159
26224
  };
26160
26225
  #recordPlanEntries = async (key, entries) => {
26161
26226
  const identity2 = this.#identity(key);
@@ -33379,7 +33444,7 @@ var nativeSessionPageSchema = external_exports.object({
33379
33444
  }).readonly();
33380
33445
 
33381
33446
  // src/acp/session-config/session-config-protocol.ts
33382
- import { methods as methods5 } from "@agentclientprotocol/sdk";
33447
+ import { methods as methods6 } from "@agentclientprotocol/sdk";
33383
33448
  var AGENT_DEFAULT_REASONING_EFFORT = "agent_default";
33384
33449
  var MAXIMUM_CONFIG_OPTIONS = 100;
33385
33450
  var SessionConfigProtocolError = class extends Error {
@@ -33545,7 +33610,7 @@ var StandardSessionConfigProtocol = class {
33545
33610
  }
33546
33611
  if (existing.type === "select" && existing.category === "mode") {
33547
33612
  await transport.request(
33548
- methods5.agent.session.setMode,
33613
+ methods6.agent.session.setMode,
33549
33614
  { modeId: change.value, sessionId: nativeSessionId },
33550
33615
  "ACP agent exited while setting the session mode",
33551
33616
  change.signal
@@ -33563,7 +33628,7 @@ var StandardSessionConfigProtocol = class {
33563
33628
  value: change.value
33564
33629
  };
33565
33630
  const response = await transport.request(
33566
- methods5.agent.session.setConfigOption,
33631
+ methods6.agent.session.setConfigOption,
33567
33632
  params,
33568
33633
  "ACP agent exited while changing session configuration",
33569
33634
  change.signal
@@ -33783,19 +33848,74 @@ function sessionConfigProtocolForAgent(agentId) {
33783
33848
 
33784
33849
  // src/acp/session-history.ts
33785
33850
  var AcpHistoryReplay = class {
33851
+ #activities = /* @__PURE__ */ new Map();
33786
33852
  #messages = [];
33853
+ #turnActivityIds = /* @__PURE__ */ new Set();
33854
+ #activityTracker = new AcpActivityTracker(async (activity2) => {
33855
+ this.#activities.set(activity2.activityId, activity2);
33856
+ this.#turnActivityIds.add(activity2.activityId);
33857
+ const latest = this.#messages.at(-1);
33858
+ if (latest?.role === "assistant") {
33859
+ this.#messages[this.#messages.length - 1] = {
33860
+ ...latest,
33861
+ activityIds: [...this.#turnActivityIds]
33862
+ };
33863
+ }
33864
+ });
33787
33865
  #lastMessageId = null;
33788
33866
  #characters = 0;
33789
33867
  #truncated = false;
33790
- record = (update) => {
33868
+ record = async (update) => {
33869
+ if (update.sessionUpdate === "agent_thought_chunk") {
33870
+ if (update.content.type === "text") {
33871
+ await this.#activityTracker.recordNarrative(
33872
+ "reasoning",
33873
+ update.messageId ?? "current",
33874
+ update.content.text
33875
+ );
33876
+ }
33877
+ return;
33878
+ }
33879
+ if (update.sessionUpdate === "tool_call") {
33880
+ await this.#activityTracker.recordToolCall(update);
33881
+ return;
33882
+ }
33883
+ if (update.sessionUpdate === "tool_call_update") {
33884
+ await this.#activityTracker.recordToolCallUpdate(update);
33885
+ return;
33886
+ }
33887
+ if (update.sessionUpdate === "plan") {
33888
+ await this.#activityTracker.recordPlan(update);
33889
+ return;
33890
+ }
33891
+ if (update.sessionUpdate === "plan_update") {
33892
+ await this.#activityTracker.recordPlanUpdate(update);
33893
+ return;
33894
+ }
33895
+ if (update.sessionUpdate === "plan_removed") {
33896
+ await this.#activityTracker.removePlan(update);
33897
+ return;
33898
+ }
33791
33899
  if (update.sessionUpdate !== "user_message_chunk" && update.sessionUpdate !== "agent_message_chunk") {
33792
33900
  return;
33793
33901
  }
33794
33902
  if (update.sessionUpdate === "agent_message_chunk" && isProgressMessage(update)) {
33903
+ if (update.content.type === "text") {
33904
+ await this.#activityTracker.recordNarrative(
33905
+ "progress",
33906
+ update.messageId ?? "current",
33907
+ update.content.text
33908
+ );
33909
+ }
33795
33910
  return;
33796
33911
  }
33797
33912
  const role = update.sessionUpdate === "user_message_chunk" ? "user" : "assistant";
33798
33913
  const content3 = update.content;
33914
+ if (role === "assistant" && content3.type !== "text") {
33915
+ await this.#activityTracker.finishNarrative();
33916
+ this.recordAssistantContent(update.messageId ?? null, normalizeContentBlock(content3));
33917
+ return;
33918
+ }
33799
33919
  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]`;
33800
33920
  if (text3.length === 0) {
33801
33921
  return;
@@ -33803,19 +33923,84 @@ var AcpHistoryReplay = class {
33803
33923
  const previous2 = this.#messages.at(-1);
33804
33924
  const id = update.messageId ?? null;
33805
33925
  const continuation = previous2?.role === role && id === this.#lastMessageId;
33926
+ if (role === "user" && !continuation) {
33927
+ await this.#activityTracker.finish();
33928
+ this.#turnActivityIds.clear();
33929
+ }
33806
33930
  const combined = continuation ? `${previous2.text}${text3}` : text3;
33807
33931
  if (continuation) {
33808
33932
  this.#messages.pop();
33809
33933
  this.#characters -= previous2.text.length;
33810
33934
  }
33811
- const bounded = combined.slice(-SESSION_HISTORY_CHARACTER_LIMIT);
33812
- this.#truncated ||= bounded.length < combined.length;
33813
- this.#messages.push({
33814
- role,
33815
- text: bounded
33816
- });
33817
- this.#characters += bounded.length;
33935
+ const bounded2 = combined.slice(-SESSION_HISTORY_CHARACTER_LIMIT);
33936
+ this.#truncated ||= bounded2.length < combined.length;
33937
+ this.#messages.push(
33938
+ role === "user" ? { role, text: bounded2 } : {
33939
+ activityIds: [...this.#turnActivityIds],
33940
+ content: previous2?.role === "assistant" ? previous2.content : [],
33941
+ role,
33942
+ text: bounded2
33943
+ }
33944
+ );
33945
+ this.#characters += bounded2.length;
33818
33946
  this.#lastMessageId = id;
33947
+ this.trimMessages();
33948
+ };
33949
+ snapshot = async () => {
33950
+ await this.#activityTracker.finish();
33951
+ return {
33952
+ status: "available",
33953
+ messages: this.#messages.map(
33954
+ (message) => message.role === "user" ? message : {
33955
+ role: "assistant",
33956
+ text: message.text,
33957
+ content: message.content,
33958
+ activities: message.activityIds.flatMap((id) => {
33959
+ const activity2 = this.#activities.get(id);
33960
+ return activity2 === void 0 ? [] : [
33961
+ {
33962
+ activityId: activity2.activityId,
33963
+ activityType: activity2.activityType,
33964
+ content: activity2.content,
33965
+ input: activity2.input,
33966
+ locations: activity2.locations,
33967
+ name: activity2.name,
33968
+ output: activity2.output,
33969
+ sequence: activity2.sequence,
33970
+ status: activity2.status,
33971
+ title: activity2.title,
33972
+ toolKind: activity2.toolKind
33973
+ }
33974
+ ];
33975
+ })
33976
+ }
33977
+ ),
33978
+ truncated: this.#truncated,
33979
+ coveredCommandIds: [],
33980
+ coveredMessageIds: []
33981
+ };
33982
+ };
33983
+ recordAssistantContent = (messageId, content3) => {
33984
+ const previous2 = this.#messages.at(-1);
33985
+ const continuation = previous2?.role === "assistant" && messageId === this.#lastMessageId;
33986
+ if (continuation) {
33987
+ this.#messages[this.#messages.length - 1] = {
33988
+ ...previous2,
33989
+ activityIds: [...this.#turnActivityIds],
33990
+ content: [...previous2.content, content3]
33991
+ };
33992
+ } else {
33993
+ this.#messages.push({
33994
+ activityIds: [...this.#turnActivityIds],
33995
+ content: [content3],
33996
+ role: "assistant",
33997
+ text: ""
33998
+ });
33999
+ }
34000
+ this.#lastMessageId = messageId;
34001
+ this.trimMessages();
34002
+ };
34003
+ trimMessages = () => {
33819
34004
  while (this.#messages.length > SESSION_HISTORY_PREVIEW_MESSAGE_LIMIT || this.#characters > SESSION_HISTORY_CHARACTER_LIMIT) {
33820
34005
  const removed = this.#messages.shift();
33821
34006
  if (removed !== void 0) {
@@ -33824,13 +34009,6 @@ var AcpHistoryReplay = class {
33824
34009
  this.#truncated = true;
33825
34010
  }
33826
34011
  };
33827
- snapshot = () => ({
33828
- status: "available",
33829
- messages: [...this.#messages],
33830
- truncated: this.#truncated,
33831
- coveredCommandIds: [],
33832
- coveredMessageIds: []
33833
- });
33834
34012
  };
33835
34013
 
33836
34014
  // src/acp/session-store.ts
@@ -34341,13 +34519,13 @@ function normalizeElicitationFields(requestedSchema) {
34341
34519
  if (!isRecord9(requestedSchema) || !isRecord9(requestedSchema["properties"])) {
34342
34520
  return [];
34343
34521
  }
34344
- const properties2 = requestedSchema["properties"];
34522
+ const properties = requestedSchema["properties"];
34345
34523
  const requiredValues = requestedSchema["required"];
34346
34524
  const required2 = new Set(
34347
34525
  Array.isArray(requiredValues) ? requiredValues.filter((entry) => typeof entry === "string") : []
34348
34526
  );
34349
34527
  const normalized = [];
34350
- for (const [name, property] of Object.entries(properties2)) {
34528
+ for (const [name, property] of Object.entries(properties)) {
34351
34529
  if (!isRecord9(property)) {
34352
34530
  continue;
34353
34531
  }
@@ -34446,7 +34624,7 @@ function validateElicitationContent(encoded, requestedSchema) {
34446
34624
  "invalid_elicitation_response"
34447
34625
  );
34448
34626
  }
34449
- const properties2 = requestedSchema["properties"];
34627
+ const properties = requestedSchema["properties"];
34450
34628
  const requiredValue = requestedSchema["required"];
34451
34629
  const required2 = new Set(
34452
34630
  Array.isArray(requiredValue) ? requiredValue.filter((entry) => typeof entry === "string") : []
@@ -34458,7 +34636,7 @@ function validateElicitationContent(encoded, requestedSchema) {
34458
34636
  }
34459
34637
  const validated = {};
34460
34638
  for (const [name, value] of Object.entries(decoded)) {
34461
- const property = properties2[name];
34639
+ const property = properties[name];
34462
34640
  if (!isRecord9(property)) {
34463
34641
  throw new AcpExecutionError(
34464
34642
  `Elicitation field ${name} was not requested`,
@@ -34756,14 +34934,20 @@ var AcpProcessSession = class _AcpProcessSession {
34756
34934
  );
34757
34935
  loadHistory = async (signal) => {
34758
34936
  if (!this.#capabilities.loadSession) {
34759
- return { status: "unavailable" };
34937
+ return {
34938
+ status: "unavailable",
34939
+ cause: {
34940
+ code: "native_history_unsupported",
34941
+ message: "This Agent restores context but does not provide message history."
34942
+ }
34943
+ };
34760
34944
  }
34761
34945
  const history = new AcpHistoryReplay();
34762
34946
  this.#replay = { kind: "capture", history };
34763
34947
  try {
34764
34948
  await this.race(
34765
34949
  this.#connection.agent.request(
34766
- methods6.agent.session.load,
34950
+ methods7.agent.session.load,
34767
34951
  {
34768
34952
  additionalDirectories: [...this.#additionalDirectories],
34769
34953
  cwd: this.#cwd,
@@ -34777,7 +34961,7 @@ var AcpProcessSession = class _AcpProcessSession {
34777
34961
  );
34778
34962
  await this.#updateTail;
34779
34963
  signal.throwIfAborted();
34780
- return await embedLocalHistoryImages(history.snapshot(), signal);
34964
+ return await embedLocalHistoryImages(await history.snapshot(), signal);
34781
34965
  } finally {
34782
34966
  this.#replay = { kind: "idle" };
34783
34967
  }
@@ -34907,7 +35091,7 @@ var AcpProcessSession = class _AcpProcessSession {
34907
35091
  async #initializeAgentOperation(signal) {
34908
35092
  const initialized = await this.race(
34909
35093
  this.#connection.agent.request(
34910
- methods6.agent.initialize,
35094
+ methods7.agent.initialize,
34911
35095
  {
34912
35096
  clientCapabilities: {
34913
35097
  elicitation: { form: {}, url: {} },
@@ -34985,7 +35169,7 @@ var AcpProcessSession = class _AcpProcessSession {
34985
35169
  "session-fork",
34986
35170
  async () => await this.race(
34987
35171
  this.#connection.agent.request(
34988
- methods6.agent.session.fork,
35172
+ methods7.agent.session.fork,
34989
35173
  {
34990
35174
  sessionId: nativeSessionIdSchema.parse(origin.nativeSessionId),
34991
35175
  cwd: this.#cwd,
@@ -35032,7 +35216,7 @@ var AcpProcessSession = class _AcpProcessSession {
35032
35216
  "session-resume",
35033
35217
  async () => await this.race(
35034
35218
  this.#connection.agent.request(
35035
- methods6.agent.session.resume,
35219
+ methods7.agent.session.resume,
35036
35220
  {
35037
35221
  additionalDirectories: [...this.#additionalDirectories],
35038
35222
  cwd: this.#cwd,
@@ -35052,7 +35236,7 @@ var AcpProcessSession = class _AcpProcessSession {
35052
35236
  "session-load",
35053
35237
  async () => await this.race(
35054
35238
  this.#connection.agent.request(
35055
- methods6.agent.session.load,
35239
+ methods7.agent.session.load,
35056
35240
  {
35057
35241
  additionalDirectories: [...this.#additionalDirectories],
35058
35242
  cwd: this.#cwd,
@@ -35091,7 +35275,7 @@ var AcpProcessSession = class _AcpProcessSession {
35091
35275
  "session-new",
35092
35276
  async () => await this.race(
35093
35277
  this.#connection.agent.request(
35094
- methods6.agent.session.new,
35278
+ methods7.agent.session.new,
35095
35279
  {
35096
35280
  additionalDirectories: [...this.#additionalDirectories],
35097
35281
  cwd: this.#cwd,
@@ -35131,7 +35315,7 @@ var AcpProcessSession = class _AcpProcessSession {
35131
35315
  );
35132
35316
  }
35133
35317
  const response = await this.race(
35134
- this.#connection.agent.request(methods6.agent.session.list, cursor === null ? {} : { cursor }, {
35318
+ this.#connection.agent.request(methods7.agent.session.list, cursor === null ? {} : { cursor }, {
35135
35319
  cancellationSignal: signal
35136
35320
  }),
35137
35321
  "ACP agent exited while listing sessions",
@@ -35157,7 +35341,7 @@ var AcpProcessSession = class _AcpProcessSession {
35157
35341
  }
35158
35342
  await this.race(
35159
35343
  this.#connection.agent.request(
35160
- methods6.agent.session.delete,
35344
+ methods7.agent.session.delete,
35161
35345
  { sessionId: nativeSessionIdSchema.parse(nativeSessionId) },
35162
35346
  { cancellationSignal: signal }
35163
35347
  ),
@@ -35304,7 +35488,7 @@ var AcpProcessSession = class _AcpProcessSession {
35304
35488
  try {
35305
35489
  const response = await this.race(
35306
35490
  this.#connection.agent.request(
35307
- methods6.agent.session.prompt,
35491
+ methods7.agent.session.prompt,
35308
35492
  { prompt, sessionId: this.#nativeSessionId },
35309
35493
  { cancellationSignal: options.signal }
35310
35494
  ),
@@ -35401,7 +35585,7 @@ var AcpProcessSession = class _AcpProcessSession {
35401
35585
  try {
35402
35586
  await this.cancelPendingInteractions();
35403
35587
  if (this.#turn.running) {
35404
- await this.#connection.agent.notify(methods6.agent.session.cancel, {
35588
+ await this.#connection.agent.notify(methods7.agent.session.cancel, {
35405
35589
  sessionId: this.#nativeSessionId
35406
35590
  });
35407
35591
  }
@@ -35621,7 +35805,7 @@ var AcpProcessSession = class _AcpProcessSession {
35621
35805
  this.assertNativeSession(notification.sessionId);
35622
35806
  const update = notification.update;
35623
35807
  if (this.#replay.kind === "capture") {
35624
- this.#replay.history.record(update);
35808
+ await this.#replay.history.record(update);
35625
35809
  }
35626
35810
  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")) {
35627
35811
  return;
@@ -35745,7 +35929,7 @@ var AcpProcessSession = class _AcpProcessSession {
35745
35929
  if (this.#capabilities.closeSession && this.#nativeSessionId.length > 0) {
35746
35930
  try {
35747
35931
  await this.#connection.agent.request(
35748
- methods6.agent.session.close,
35932
+ methods7.agent.session.close,
35749
35933
  { sessionId: this.#nativeSessionId },
35750
35934
  {
35751
35935
  cancellationSignal: AbortSignal.timeout(PROCESS_STOP_TIMEOUT_MILLISECONDS)
@@ -35912,10 +36096,12 @@ var AcpSessionManager = class {
35912
36096
  #startingProcessCount = 0;
35913
36097
  #transientProcessCount = 0;
35914
36098
  #store;
36099
+ #nativeHistoryReader;
35915
36100
  #observer;
35916
- constructor(observer = new NullAcpSessionObserver(), store = new MemoryAcpSessionStore()) {
36101
+ constructor(observer = new NullAcpSessionObserver(), store = new MemoryAcpSessionStore(), nativeHistoryReader = null) {
35917
36102
  this.#observer = observer;
35918
36103
  this.#store = store;
36104
+ this.#nativeHistoryReader = nativeHistoryReader;
35919
36105
  }
35920
36106
  setObserver = (observer) => {
35921
36107
  this.#observer = observer;
@@ -36677,7 +36863,15 @@ var AcpSessionManager = class {
36677
36863
  loadSessionHistory = async (options) => {
36678
36864
  this.#beginSessionUse(options.sessionId);
36679
36865
  try {
36680
- return await (await this.ensureSession(options)).loadHistory(options.signal);
36866
+ const runtime = await this.ensureSession(options);
36867
+ const stored = this.#store.read(options.sessionId);
36868
+ if (stored instanceof FoundAcpStoredSession && this.#nativeHistoryReader !== null) {
36869
+ const history = await this.#nativeHistoryReader.read(options, stored.session.nativeSessionId);
36870
+ if (history !== null) {
36871
+ return history;
36872
+ }
36873
+ }
36874
+ return await runtime.loadHistory(options.signal);
36681
36875
  } finally {
36682
36876
  this.#endSessionUse(options.sessionId);
36683
36877
  }
@@ -37893,10 +38087,6 @@ var WorkspaceDirectoryService = class {
37893
38087
  };
37894
38088
  };
37895
38089
 
37896
- // src/native-sessions/service.ts
37897
- import { randomUUID as randomUUID2 } from "node:crypto";
37898
- import { basename as basename6 } from "node:path";
37899
-
37900
38090
  // src/native-sessions/codex-history.ts
37901
38091
  import { spawn as spawn4 } from "node:child_process";
37902
38092
  var responseSchema = external_exports.union([
@@ -37914,7 +38104,12 @@ var threadSchema = external_exports.object({
37914
38104
  })
37915
38105
  });
37916
38106
  var turnsSchema = external_exports.object({
37917
- data: external_exports.array(external_exports.object({ items: external_exports.array(external_exports.unknown()).max(1e5) })).max(SESSION_HISTORY_PREVIEW_MESSAGE_LIMIT),
38107
+ data: external_exports.array(
38108
+ external_exports.object({
38109
+ error: external_exports.unknown().nullish(),
38110
+ items: external_exports.array(external_exports.unknown()).max(1e5)
38111
+ })
38112
+ ).max(SESSION_HISTORY_PREVIEW_MESSAGE_LIMIT),
37918
38113
  nextCursor: external_exports.string().nullish()
37919
38114
  });
37920
38115
  var itemTypeSchema = external_exports.object({ type: external_exports.string().min(1).max(80) });
@@ -37924,12 +38119,62 @@ var userMessageSchema = external_exports.object({
37924
38119
  var textSchema = external_exports.object({ text: external_exports.string() });
37925
38120
  var imageSchema = external_exports.object({ url: external_exports.string() });
37926
38121
  var agentMessageSchema = textSchema.extend({ phase: external_exports.string().nullish() });
37927
- function decodeHistory(thread, value) {
38122
+ var reasoningSchema = external_exports.object({
38123
+ id: external_exports.string(),
38124
+ summary: external_exports.array(external_exports.string()).max(1e4),
38125
+ content: external_exports.array(external_exports.string()).max(1e4)
38126
+ });
38127
+ var commandExecutionSchema = external_exports.object({
38128
+ id: external_exports.string(),
38129
+ command: external_exports.string(),
38130
+ cwd: external_exports.string(),
38131
+ status: external_exports.string(),
38132
+ commandActions: external_exports.array(external_exports.object({ type: external_exports.string() }).passthrough()).max(100),
38133
+ aggregatedOutput: external_exports.string().nullish(),
38134
+ exitCode: external_exports.number().int().nullish()
38135
+ });
38136
+ function bounded(value, maximum) {
38137
+ return value.slice(0, maximum);
38138
+ }
38139
+ function activity(activityId, activityType, sequence, fields) {
38140
+ return {
38141
+ activityId: bounded(activityId, 128) || `history-${sequence.toString()}`,
38142
+ activityType,
38143
+ content: [],
38144
+ input: bounded(fields.input, 1e5),
38145
+ locations: fields.locations.filter((location) => location.length > 0).map((location) => bounded(location, 2048)).slice(0, 100),
38146
+ name: bounded(fields.name, 128),
38147
+ output: bounded(fields.output, 1e5),
38148
+ sequence,
38149
+ status: bounded(fields.status, 64),
38150
+ title: bounded(fields.title, 500),
38151
+ toolKind: bounded(fields.toolKind, 64)
38152
+ };
38153
+ }
38154
+ function errorMessage(value) {
38155
+ if (typeof value === "string") {
38156
+ return value;
38157
+ }
38158
+ if (typeof value === "object" && value !== null) {
38159
+ const message = Reflect.get(value, "message");
38160
+ if (typeof message === "string") {
38161
+ return message;
38162
+ }
38163
+ }
38164
+ return JSON.stringify(value) ?? "Codex stopped before completing this turn.";
38165
+ }
38166
+ function messageSize(message) {
38167
+ return message.text.length + (message.role === "assistant" ? JSON.stringify(message.activities).length + JSON.stringify(message.content).length : 0);
38168
+ }
38169
+ function decodeHistory(thread, value, options) {
37928
38170
  const page = turnsSchema.parse(value);
37929
38171
  const messages = [];
37930
38172
  let characters = 0;
37931
38173
  let truncated = page.nextCursor != null;
37932
38174
  for (const turn of page.data.toReversed()) {
38175
+ const activities = [];
38176
+ let sequence = 0;
38177
+ let assistantMessageIndex = null;
37933
38178
  for (const item of turn.items) {
37934
38179
  const { type } = itemTypeSchema.parse(item);
37935
38180
  let message;
@@ -37952,9 +38197,60 @@ function decodeHistory(thread, value) {
37952
38197
  } else if (type === "agentMessage") {
37953
38198
  const agent = agentMessageSchema.parse(item);
37954
38199
  if (agent.phase === "commentary") {
38200
+ if (options.detail === "rich" && agent.text.length > 0) {
38201
+ activities.push(
38202
+ activity(`progress-${sequence.toString()}`, "progress", sequence, {
38203
+ input: "",
38204
+ locations: [],
38205
+ name: "",
38206
+ output: agent.text,
38207
+ status: "completed",
38208
+ title: "Progress",
38209
+ toolKind: ""
38210
+ })
38211
+ );
38212
+ sequence += 1;
38213
+ }
37955
38214
  continue;
37956
38215
  }
37957
- message = { role: "assistant", text: agent.text };
38216
+ message = { activities: activities.slice(-100), content: [], role: "assistant", text: agent.text };
38217
+ } else if (type === "reasoning" && options.detail === "rich") {
38218
+ const reasoning = reasoningSchema.parse(item);
38219
+ const output2 = (reasoning.summary.length > 0 ? reasoning.summary : reasoning.content).join("\n\n");
38220
+ if (output2.length > 0) {
38221
+ activities.push(
38222
+ activity(reasoning.id, "reasoning", sequence, {
38223
+ input: "",
38224
+ locations: [],
38225
+ name: "",
38226
+ output: output2,
38227
+ status: "completed",
38228
+ title: "Reasoning",
38229
+ toolKind: ""
38230
+ })
38231
+ );
38232
+ sequence += 1;
38233
+ }
38234
+ continue;
38235
+ } else if (type === "commandExecution" && options.detail === "rich") {
38236
+ const command = commandExecutionSchema.parse(item);
38237
+ const action = command.commandActions[0]?.type ?? "execute";
38238
+ activities.push(
38239
+ activity(command.id, "tool", sequence, {
38240
+ input: JSON.stringify({ command: command.command, cwd: command.cwd }),
38241
+ locations: [command.cwd],
38242
+ name: "",
38243
+ output: JSON.stringify({
38244
+ formatted_output: command.aggregatedOutput ?? "",
38245
+ ...command.exitCode == null ? {} : { exit_code: command.exitCode }
38246
+ }),
38247
+ status: command.status === "completed" ? "completed" : "failed",
38248
+ title: command.command,
38249
+ toolKind: action
38250
+ })
38251
+ );
38252
+ sequence += 1;
38253
+ continue;
37958
38254
  } else {
37959
38255
  continue;
37960
38256
  }
@@ -37964,14 +38260,48 @@ function decodeHistory(thread, value) {
37964
38260
  }
37965
38261
  truncated ||= text3.length < message.text.length;
37966
38262
  messages.push({ ...message, text: text3 });
37967
- characters += text3.length;
37968
- while (messages.length > SESSION_HISTORY_PREVIEW_MESSAGE_LIMIT || characters > SESSION_HISTORY_CHARACTER_LIMIT) {
37969
- const removed = messages.shift();
37970
- if (removed !== void 0) {
37971
- characters -= removed.text.length;
37972
- }
37973
- truncated = true;
38263
+ if (message.role === "assistant") {
38264
+ assistantMessageIndex = messages.length - 1;
38265
+ }
38266
+ characters += messageSize({ ...message, text: text3 });
38267
+ }
38268
+ if (options.detail === "rich" && turn.error != null) {
38269
+ activities.push(
38270
+ activity(`agent-error-${sequence.toString()}`, "tool", sequence, {
38271
+ input: "",
38272
+ locations: [],
38273
+ name: "",
38274
+ output: errorMessage(turn.error),
38275
+ status: "failed",
38276
+ title: "Agent error",
38277
+ toolKind: "other"
38278
+ })
38279
+ );
38280
+ }
38281
+ if (assistantMessageIndex !== null) {
38282
+ const assistant = messages[assistantMessageIndex];
38283
+ if (assistant?.role === "assistant") {
38284
+ characters -= messageSize(assistant);
38285
+ const updated = { ...assistant, activities: activities.slice(-100) };
38286
+ messages[assistantMessageIndex] = updated;
38287
+ characters += messageSize(updated);
38288
+ }
38289
+ } else if (activities.length > 0) {
38290
+ const message = {
38291
+ activities: activities.slice(-100),
38292
+ content: [],
38293
+ role: "assistant",
38294
+ text: ""
38295
+ };
38296
+ messages.push(message);
38297
+ characters += messageSize(message);
38298
+ }
38299
+ while (messages.length > SESSION_HISTORY_PREVIEW_MESSAGE_LIMIT || characters > SESSION_HISTORY_CHARACTER_LIMIT) {
38300
+ const removed = messages.shift();
38301
+ if (removed !== void 0) {
38302
+ characters -= messageSize(removed);
37974
38303
  }
38304
+ truncated = true;
37975
38305
  }
37976
38306
  }
37977
38307
  return {
@@ -37986,7 +38316,7 @@ function decodeHistory(thread, value) {
37986
38316
  }
37987
38317
  };
37988
38318
  }
37989
- async function readCodexHistory(agent, cwd, nativeSessionId, signal) {
38319
+ async function readCodexHistoryWithOptions(agent, cwd, nativeSessionId, signal, options) {
37990
38320
  signal.throwIfAborted();
37991
38321
  nativeSessionIdSchema.parse(nativeSessionId);
37992
38322
  if (agent.id !== "codex" || !await revalidateExecutable(agent.agentIdentity)) {
@@ -38080,13 +38410,13 @@ async function readCodexHistory(agent, cwd, nativeSessionId, signal) {
38080
38410
  threadId: nativeSessionId,
38081
38411
  limit: SESSION_HISTORY_PREVIEW_MESSAGE_LIMIT,
38082
38412
  sortDirection: "desc",
38083
- itemsView: "summary"
38413
+ itemsView: options.detail === "rich" ? "full" : "summary"
38084
38414
  }
38085
38415
  });
38086
38416
  break;
38087
38417
  }
38088
38418
  case "turns":
38089
- response.resolve(decodeHistory(state.thread, message.result));
38419
+ response.resolve(decodeHistory(state.thread, message.result, options));
38090
38420
  return;
38091
38421
  default: {
38092
38422
  const unhandled = state;
@@ -38143,8 +38473,12 @@ async function readCodexHistory(agent, cwd, nativeSessionId, signal) {
38143
38473
  child.removeListener("exit", onExit);
38144
38474
  }
38145
38475
  }
38476
+ var readCodexHistory = async (agent, cwd, nativeSessionId, signal) => await readCodexHistoryWithOptions(agent, cwd, nativeSessionId, signal, { detail: "messages" });
38477
+ var readCodexFullHistory = async (agent, cwd, nativeSessionId, signal) => await readCodexHistoryWithOptions(agent, cwd, nativeSessionId, signal, { detail: "rich" });
38146
38478
 
38147
38479
  // src/native-sessions/service.ts
38480
+ import { randomUUID as randomUUID2 } from "node:crypto";
38481
+ import { basename as basename6 } from "node:path";
38148
38482
  var NativeSessionService = class {
38149
38483
  #entries = /* @__PURE__ */ new Map();
38150
38484
  #cursors = /* @__PURE__ */ new Map();
@@ -40267,28 +40601,28 @@ var CoalescingDaemonActivityPublisher = class {
40267
40601
  }
40268
40602
  this.#pending.clear();
40269
40603
  this.#scheduled.clear();
40270
- for (const activity of activities) {
40271
- this.#publish(activity);
40604
+ for (const activity2 of activities) {
40605
+ this.#publish(activity2);
40272
40606
  }
40273
40607
  };
40274
- record = (activity) => {
40275
- if (activity.status !== "pending" && activity.status !== "running") {
40276
- this.#discardPending(activity.activityId);
40277
- this.#publishedActivityIds.add(activity.activityId);
40278
- this.#publish(activity);
40608
+ record = (activity2) => {
40609
+ if (activity2.status !== "pending" && activity2.status !== "running") {
40610
+ this.#discardPending(activity2.activityId);
40611
+ this.#publishedActivityIds.add(activity2.activityId);
40612
+ this.#publish(activity2);
40279
40613
  return Promise.resolve();
40280
40614
  }
40281
- if (!this.#publishedActivityIds.has(activity.activityId)) {
40282
- this.#publishedActivityIds.add(activity.activityId);
40283
- this.#publish(activity);
40615
+ if (!this.#publishedActivityIds.has(activity2.activityId)) {
40616
+ this.#publishedActivityIds.add(activity2.activityId);
40617
+ this.#publish(activity2);
40284
40618
  return Promise.resolve();
40285
40619
  }
40286
- this.#pending.set(activity.activityId, activity);
40287
- if (!this.#scheduled.has(activity.activityId)) {
40620
+ this.#pending.set(activity2.activityId, activity2);
40621
+ if (!this.#scheduled.has(activity2.activityId)) {
40288
40622
  this.#scheduled.set(
40289
- activity.activityId,
40623
+ activity2.activityId,
40290
40624
  this.#timer.schedule(
40291
- () => this.#flushActivity(activity.activityId),
40625
+ () => this.#flushActivity(activity2.activityId),
40292
40626
  AGENT_ACTIVITY_COALESCING_MILLISECONDS
40293
40627
  )
40294
40628
  );
@@ -40301,30 +40635,30 @@ var CoalescingDaemonActivityPublisher = class {
40301
40635
  this.#pending.delete(activityId);
40302
40636
  };
40303
40637
  #flushActivity = (activityId) => {
40304
- const activity = this.#pending.get(activityId);
40638
+ const activity2 = this.#pending.get(activityId);
40305
40639
  this.#discardPending(activityId);
40306
- if (activity !== void 0) {
40307
- this.#publish(activity);
40640
+ if (activity2 !== void 0) {
40641
+ this.#publish(activity2);
40308
40642
  }
40309
40643
  };
40310
40644
  };
40311
- function daemonActivity(command, activity) {
40645
+ function daemonActivity(command, activity2) {
40312
40646
  return {
40313
- activityId: activity.activityId,
40314
- activityType: activity.activityType,
40647
+ activityId: activity2.activityId,
40648
+ activityType: activity2.activityType,
40315
40649
  commandId: command.commandId,
40316
- content: activity.content,
40317
- detail: activity.detail,
40318
- input: activity.input,
40650
+ content: activity2.content,
40651
+ detail: activity2.detail,
40652
+ input: activity2.input,
40319
40653
  kind: AGENT_ACTIVITY_KIND,
40320
- locations: activity.locations,
40321
- name: activity.name,
40322
- output: activity.output,
40323
- sequence: activity.sequence,
40654
+ locations: activity2.locations,
40655
+ name: activity2.name,
40656
+ output: activity2.output,
40657
+ sequence: activity2.sequence,
40324
40658
  sessionId: command.sessionId,
40325
- status: activity.status,
40326
- title: activity.title,
40327
- toolKind: activity.toolKind
40659
+ status: activity2.status,
40660
+ title: activity2.title,
40661
+ toolKind: activity2.toolKind
40328
40662
  };
40329
40663
  }
40330
40664
  function reportFailure(publisher, command, code, message, attemptId) {
@@ -40823,7 +41157,10 @@ async function executeSessionLiveHistoryLoad(socket, command, config2, directori
40823
41157
  sessionId: command.sessionId
40824
41158
  });
40825
41159
  send(socket, {
40826
- history: { status: "unavailable" },
41160
+ history: {
41161
+ status: "unavailable",
41162
+ cause: { code: operationErrorCode(error62), message: operationErrorMessage(error62) }
41163
+ },
40827
41164
  kind: "session.live-history.loaded",
40828
41165
  requestId: command.requestId,
40829
41166
  sessionId: command.sessionId
@@ -40870,8 +41207,8 @@ async function executeSessionConfigure(publisher, socket, command, config2, dire
40870
41207
  }
40871
41208
  }
40872
41209
  async function executePrompt(outbox, publisher, command, config2, directories, audit, sessions, attemptId, activateAttempt, timer, signal) {
40873
- const activities = new CoalescingDaemonActivityPublisher(timer, (activity) => {
40874
- publisher.recordAttempt(command.sessionId, daemonActivity(command, activity), attemptId);
41210
+ const activities = new CoalescingDaemonActivityPublisher(timer, (activity2) => {
41211
+ publisher.recordAttempt(command.sessionId, daemonActivity(command, activity2), attemptId);
40875
41212
  });
40876
41213
  const text3 = new CoalescingTextPublisher(
40877
41214
  timer,
@@ -42268,7 +42605,9 @@ async function runDaemon(config2, audit, signal, timer = systemDaemonTimer, opti
42268
42605
  }
42269
42606
  publisher.recordAttempt(sessionId, event, attemptId);
42270
42607
  };
42271
- const sessions = new AcpSessionManager(new DaemonAcpObserver(recordSessionEvent), sessionStore);
42608
+ const sessions = new AcpSessionManager(new DaemonAcpObserver(recordSessionEvent), sessionStore, {
42609
+ read: async (options2, nativeSessionId) => options2.agent.id === "codex" ? (await readCodexFullHistory(options2.agent, options2.cwd, nativeSessionId, options2.signal)).history : null
42610
+ });
42272
42611
  const directories = new WorkspaceDirectoryService(config2.bindingId, config2.defaultWorkspace);
42273
42612
  const installationObserver = new DaemonInstallationObserver();
42274
42613
  const diagnostics = new RelayConnectionDiagnostics(audit, config2.channelId, config2.relayUrl);