opencode-orchestrator 1.2.69 → 1.2.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 (521) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +355 -355
  3. package/bin/orchestrator-linux-arm64 +0 -0
  4. package/bin/orchestrator-linux-x64 +0 -0
  5. package/dist/agents/commander.d.ts +0 -0
  6. package/dist/agents/definitions.d.ts +0 -0
  7. package/dist/agents/prompts/01_philosophy/anti_hallucination.d.ts +0 -0
  8. package/dist/agents/prompts/01_philosophy/core.d.ts +0 -0
  9. package/dist/agents/prompts/01_philosophy/execution_assurance.d.ts +0 -0
  10. package/dist/agents/prompts/01_philosophy/index.d.ts +0 -0
  11. package/dist/agents/prompts/01_philosophy/metadata.d.ts +0 -0
  12. package/dist/agents/prompts/01_philosophy/modularity.d.ts +0 -0
  13. package/dist/agents/prompts/02_discovery/agents/discovery_commander.d.ts +0 -0
  14. package/dist/agents/prompts/02_discovery/agents/discovery_planner.d.ts +0 -0
  15. package/dist/agents/prompts/02_discovery/agents/index.d.ts +0 -0
  16. package/dist/agents/prompts/02_discovery/discovery_core.d.ts +0 -0
  17. package/dist/agents/prompts/02_discovery/discovery_environment.d.ts +0 -0
  18. package/dist/agents/prompts/02_discovery/discovery_skills.d.ts +0 -0
  19. package/dist/agents/prompts/02_discovery/discovery_workspace.d.ts +0 -0
  20. package/dist/agents/prompts/02_discovery/index.d.ts +0 -0
  21. package/dist/agents/prompts/03_planning/agents/index.d.ts +0 -0
  22. package/dist/agents/prompts/03_planning/agents/planning_commander.d.ts +0 -0
  23. package/dist/agents/prompts/03_planning/agents/planning_planner.d.ts +0 -0
  24. package/dist/agents/prompts/03_planning/agents/planning_reviewer.d.ts +0 -0
  25. package/dist/agents/prompts/03_planning/index.d.ts +0 -0
  26. package/dist/agents/prompts/03_planning/planning_core.d.ts +0 -0
  27. package/dist/agents/prompts/03_planning/planning_decomposition.d.ts +0 -0
  28. package/dist/agents/prompts/03_planning/planning_file_planning.d.ts +0 -0
  29. package/dist/agents/prompts/03_planning/planning_parallel.d.ts +0 -0
  30. package/dist/agents/prompts/03_planning/planning_research.d.ts +0 -0
  31. package/dist/agents/prompts/03_planning/planning_todo_format.d.ts +0 -0
  32. package/dist/agents/prompts/03_planning/planning_todo_rules.d.ts +0 -0
  33. package/dist/agents/prompts/03_planning/planning_todo_sync.d.ts +0 -0
  34. package/dist/agents/prompts/04_execution/agents/execution_commander.d.ts +0 -0
  35. package/dist/agents/prompts/04_execution/agents/execution_worker.d.ts +0 -0
  36. package/dist/agents/prompts/04_execution/agents/index.d.ts +0 -0
  37. package/dist/agents/prompts/04_execution/execution_core.d.ts +0 -0
  38. package/dist/agents/prompts/04_execution/execution_delegation.d.ts +0 -0
  39. package/dist/agents/prompts/04_execution/execution_error_handling.d.ts +0 -0
  40. package/dist/agents/prompts/04_execution/execution_file_assignment.d.ts +0 -0
  41. package/dist/agents/prompts/04_execution/execution_hyper_parallel.d.ts +0 -0
  42. package/dist/agents/prompts/04_execution/execution_isolation.d.ts +0 -0
  43. package/dist/agents/prompts/04_execution/execution_quality.d.ts +0 -0
  44. package/dist/agents/prompts/04_execution/execution_strategy.d.ts +0 -0
  45. package/dist/agents/prompts/04_execution/execution_tdd.d.ts +0 -0
  46. package/dist/agents/prompts/04_execution/execution_workflow.d.ts +0 -0
  47. package/dist/agents/prompts/04_execution/index.d.ts +0 -0
  48. package/dist/agents/prompts/05_verification/agents/index.d.ts +0 -0
  49. package/dist/agents/prompts/05_verification/agents/verification_commander.d.ts +0 -0
  50. package/dist/agents/prompts/05_verification/agents/verification_reviewer.d.ts +0 -0
  51. package/dist/agents/prompts/05_verification/index.d.ts +0 -0
  52. package/dist/agents/prompts/05_verification/verification_async_monitoring.d.ts +0 -0
  53. package/dist/agents/prompts/05_verification/verification_build.d.ts +0 -0
  54. package/dist/agents/prompts/05_verification/verification_core.d.ts +0 -0
  55. package/dist/agents/prompts/05_verification/verification_evidence.d.ts +0 -0
  56. package/dist/agents/prompts/05_verification/verification_integration.d.ts +0 -0
  57. package/dist/agents/prompts/05_verification/verification_strategy.d.ts +0 -0
  58. package/dist/agents/prompts/05_verification/verification_sync_check.d.ts +0 -0
  59. package/dist/agents/prompts/05_verification/verification_sync_handling.d.ts +0 -0
  60. package/dist/agents/prompts/05_verification/verification_test.d.ts +0 -0
  61. package/dist/agents/prompts/06_mission/agents/index.d.ts +0 -0
  62. package/dist/agents/prompts/06_mission/agents/mission_commander.d.ts +0 -0
  63. package/dist/agents/prompts/06_mission/index.d.ts +0 -0
  64. package/dist/agents/prompts/06_mission/mission_completion_conditions.d.ts +0 -0
  65. package/dist/agents/prompts/06_mission/mission_core.d.ts +0 -0
  66. package/dist/agents/prompts/06_mission/mission_lifecycle.d.ts +0 -0
  67. package/dist/agents/prompts/06_mission/mission_loop_continuation.d.ts +0 -0
  68. package/dist/agents/prompts/06_mission/mission_recovery.d.ts +0 -0
  69. package/dist/agents/prompts/06_mission/mission_status_tracking.d.ts +0 -0
  70. package/dist/agents/prompts/07_agents/commander/commander_forbidden.d.ts +0 -0
  71. package/dist/agents/prompts/07_agents/commander/commander_identity.d.ts +0 -0
  72. package/dist/agents/prompts/07_agents/commander/commander_mandate.d.ts +0 -0
  73. package/dist/agents/prompts/07_agents/commander/commander_required.d.ts +0 -0
  74. package/dist/agents/prompts/07_agents/commander/commander_role.d.ts +0 -0
  75. package/dist/agents/prompts/07_agents/commander/index.d.ts +0 -0
  76. package/dist/agents/prompts/07_agents/planner/index.d.ts +0 -0
  77. package/dist/agents/prompts/07_agents/planner/planner_forbidden.d.ts +0 -0
  78. package/dist/agents/prompts/07_agents/planner/planner_identity.d.ts +0 -0
  79. package/dist/agents/prompts/07_agents/planner/planner_mandate.d.ts +0 -0
  80. package/dist/agents/prompts/07_agents/planner/planner_required.d.ts +0 -0
  81. package/dist/agents/prompts/07_agents/reviewer/index.d.ts +0 -0
  82. package/dist/agents/prompts/07_agents/reviewer/reviewer_forbidden.d.ts +0 -0
  83. package/dist/agents/prompts/07_agents/reviewer/reviewer_identity.d.ts +0 -0
  84. package/dist/agents/prompts/07_agents/reviewer/reviewer_mandate.d.ts +0 -0
  85. package/dist/agents/prompts/07_agents/reviewer/reviewer_required.d.ts +0 -0
  86. package/dist/agents/prompts/07_agents/worker/index.d.ts +0 -0
  87. package/dist/agents/prompts/07_agents/worker/worker_forbidden.d.ts +0 -0
  88. package/dist/agents/prompts/07_agents/worker/worker_identity.d.ts +0 -0
  89. package/dist/agents/prompts/07_agents/worker/worker_mandate.d.ts +0 -0
  90. package/dist/agents/prompts/07_agents/worker/worker_required.d.ts +0 -0
  91. package/dist/agents/prompts/08_tools/agents/index.d.ts +0 -0
  92. package/dist/agents/prompts/08_tools/agents/tools_reviewer.d.ts +0 -0
  93. package/dist/agents/prompts/08_tools/agents/tools_worker.d.ts +0 -0
  94. package/dist/agents/prompts/08_tools/index.d.ts +0 -0
  95. package/dist/agents/prompts/08_tools/tools_ast.d.ts +0 -0
  96. package/dist/agents/prompts/08_tools/tools_code_editing.d.ts +0 -0
  97. package/dist/agents/prompts/08_tools/tools_core.d.ts +0 -0
  98. package/dist/agents/prompts/08_tools/tools_lsp.d.ts +0 -0
  99. package/dist/agents/prompts/08_tools/tools_search.d.ts +0 -0
  100. package/dist/agents/prompts/08_tools/tools_testing.d.ts +0 -0
  101. package/dist/agents/prompts/index.d.ts +0 -0
  102. package/dist/agents/subagents/planner.d.ts +0 -0
  103. package/dist/agents/subagents/reviewer.d.ts +0 -0
  104. package/dist/agents/subagents/worker.d.ts +0 -0
  105. package/dist/core/agents/agent-registry.d.ts +0 -0
  106. package/dist/core/agents/concurrency-token.d.ts +0 -0
  107. package/dist/core/agents/concurrency.d.ts +0 -0
  108. package/dist/core/agents/config.d.ts +0 -0
  109. package/dist/core/agents/consts/index.d.ts +0 -0
  110. package/dist/core/agents/consts/task-status.const.d.ts +0 -0
  111. package/dist/core/agents/format.d.ts +0 -0
  112. package/dist/core/agents/index.d.ts +0 -0
  113. package/dist/core/agents/interfaces/index.d.ts +0 -0
  114. package/dist/core/agents/interfaces/launch-input.interface.d.ts +0 -0
  115. package/dist/core/agents/interfaces/resume-input.interface.d.ts +0 -0
  116. package/dist/core/agents/interfaces/session-pool.interface.d.ts +0 -0
  117. package/dist/core/agents/logger.d.ts +0 -0
  118. package/dist/core/agents/manager/event-handler.d.ts +0 -0
  119. package/dist/core/agents/manager/index.d.ts +0 -0
  120. package/dist/core/agents/manager/task-cleaner.d.ts +0 -0
  121. package/dist/core/agents/manager/task-launcher.d.ts +0 -0
  122. package/dist/core/agents/manager/task-poller.d.ts +0 -0
  123. package/dist/core/agents/manager/task-resumer.d.ts +0 -0
  124. package/dist/core/agents/manager.d.ts +0 -0
  125. package/dist/core/agents/persistence/task-wal.d.ts +0 -0
  126. package/dist/core/agents/session-pool.d.ts +0 -0
  127. package/dist/core/agents/task-store.d.ts +0 -0
  128. package/dist/core/agents/types/index.d.ts +0 -0
  129. package/dist/core/agents/types/parallel-task-status.type.d.ts +0 -0
  130. package/dist/core/cache/constants.d.ts +0 -0
  131. package/dist/core/cache/document-cache.d.ts +0 -0
  132. package/dist/core/cache/index.d.ts +0 -0
  133. package/dist/core/cache/interfaces/cache-document-entry.d.ts +0 -0
  134. package/dist/core/cache/interfaces/cache-list-entry.d.ts +0 -0
  135. package/dist/core/cache/interfaces/cache-metadata.d.ts +0 -0
  136. package/dist/core/cache/interfaces/cache-stats.d.ts +0 -0
  137. package/dist/core/cache/interfaces/cached-document.d.ts +0 -0
  138. package/dist/core/cache/interfaces/index.d.ts +0 -0
  139. package/dist/core/cache/interfaces.d.ts +0 -0
  140. package/dist/core/cache/operations.d.ts +0 -0
  141. package/dist/core/cache/utils.d.ts +0 -0
  142. package/dist/core/cleanup/cleanup-scheduler.d.ts +0 -0
  143. package/dist/core/commands/index.d.ts +0 -0
  144. package/dist/core/commands/interfaces/background-task.d.ts +0 -0
  145. package/dist/core/commands/interfaces/index.d.ts +0 -0
  146. package/dist/core/commands/interfaces/run-background-options.d.ts +0 -0
  147. package/dist/core/commands/manager.d.ts +0 -0
  148. package/dist/core/commands/types/background-task-status.d.ts +0 -0
  149. package/dist/core/commands/types/index.d.ts +0 -0
  150. package/dist/core/context/context-window-monitor.d.ts +0 -0
  151. package/dist/core/context/index.d.ts +0 -0
  152. package/dist/core/loop/circuit-breaker.d.ts +0 -0
  153. package/dist/core/loop/compaction-guard.d.ts +0 -0
  154. package/dist/core/loop/formatters.d.ts +0 -0
  155. package/dist/core/loop/interfaces/index.d.ts +0 -0
  156. package/dist/core/loop/interfaces/todo-stats.d.ts +0 -0
  157. package/dist/core/loop/interfaces/todo.d.ts +0 -0
  158. package/dist/core/loop/interfaces.d.ts +0 -0
  159. package/dist/core/loop/mission-loop-handler.d.ts +0 -0
  160. package/dist/core/loop/mission-loop.d.ts +0 -0
  161. package/dist/core/loop/parser.d.ts +0 -0
  162. package/dist/core/loop/progress-tracker.d.ts +0 -0
  163. package/dist/core/loop/session-state-store.d.ts +0 -0
  164. package/dist/core/loop/stats.d.ts +0 -0
  165. package/dist/core/loop/todo-continuation.d.ts +0 -0
  166. package/dist/core/loop/todo-enforcer.d.ts +0 -0
  167. package/dist/core/loop/todo-manager.d.ts +0 -0
  168. package/dist/core/loop/types/index.d.ts +0 -0
  169. package/dist/core/loop/types/todo-priority.d.ts +0 -0
  170. package/dist/core/loop/types/todo-status.d.ts +0 -0
  171. package/dist/core/loop/verification.d.ts +0 -0
  172. package/dist/core/memory/interfaces.d.ts +0 -0
  173. package/dist/core/memory/memory-manager.d.ts +0 -0
  174. package/dist/core/metrics/collector.d.ts +0 -0
  175. package/dist/core/notification/os-notify/index.d.ts +0 -0
  176. package/dist/core/notification/os-notify/notifier.d.ts +0 -0
  177. package/dist/core/notification/os-notify/platform-resolver.d.ts +0 -0
  178. package/dist/core/notification/os-notify/platform.d.ts +0 -0
  179. package/dist/core/notification/os-notify/sound-player.d.ts +0 -0
  180. package/dist/core/notification/os-notify/todo-checker.d.ts +0 -0
  181. package/dist/core/notification/task-toast-manager.d.ts +0 -0
  182. package/dist/core/notification/toast-core.d.ts +0 -0
  183. package/dist/core/notification/toast-sanitizer.d.ts +0 -0
  184. package/dist/core/notification/toast.d.ts +0 -0
  185. package/dist/core/orchestrator/index.d.ts +0 -0
  186. package/dist/core/orchestrator/interfaces/index.d.ts +0 -0
  187. package/dist/core/orchestrator/interfaces/session-state.d.ts +0 -0
  188. package/dist/core/orchestrator/session-manager.d.ts +0 -0
  189. package/dist/core/orchestrator/state.d.ts +0 -0
  190. package/dist/core/orchestrator/types/index.d.ts +0 -0
  191. package/dist/core/orchestrator/types/task-status.d.ts +0 -0
  192. package/dist/core/plugins/interfaces.d.ts +0 -0
  193. package/dist/core/plugins/plugin-manager.d.ts +0 -0
  194. package/dist/core/pool/buffer-pool.d.ts +0 -0
  195. package/dist/core/pool/object-pool.d.ts +0 -0
  196. package/dist/core/pool/string-pool.d.ts +0 -0
  197. package/dist/core/pool/task-pool.d.ts +0 -0
  198. package/dist/core/progress/calculator.d.ts +0 -0
  199. package/dist/core/progress/formatters.d.ts +0 -0
  200. package/dist/core/progress/interfaces/index.d.ts +0 -0
  201. package/dist/core/progress/interfaces/progress-snapshot.d.ts +0 -0
  202. package/dist/core/progress/interfaces/snapshot-input.d.ts +0 -0
  203. package/dist/core/progress/interfaces/step-progress.d.ts +0 -0
  204. package/dist/core/progress/interfaces/task-progress.d.ts +0 -0
  205. package/dist/core/progress/interfaces/todo-progress.d.ts +0 -0
  206. package/dist/core/progress/interfaces.d.ts +0 -0
  207. package/dist/core/progress/progress-notifier.d.ts +0 -0
  208. package/dist/core/progress/state-broadcaster.d.ts +0 -0
  209. package/dist/core/progress/store.d.ts +0 -0
  210. package/dist/core/progress/tracker.d.ts +0 -0
  211. package/dist/core/queue/async-queue.d.ts +0 -0
  212. package/dist/core/queue/async-utils.d.ts +0 -0
  213. package/dist/core/queue/index.d.ts +0 -0
  214. package/dist/core/queue/work-pool.d.ts +0 -0
  215. package/dist/core/queue/work-stealing-deque.d.ts +0 -0
  216. package/dist/core/queue/worker-pool.d.ts +0 -0
  217. package/dist/core/recovery/auto-recovery.d.ts +0 -0
  218. package/dist/core/recovery/constants.d.ts +0 -0
  219. package/dist/core/recovery/handler.d.ts +0 -0
  220. package/dist/core/recovery/interfaces/error-context.d.ts +0 -0
  221. package/dist/core/recovery/interfaces/error-pattern.d.ts +0 -0
  222. package/dist/core/recovery/interfaces/index.d.ts +0 -0
  223. package/dist/core/recovery/interfaces/recovery-action.d.ts +0 -0
  224. package/dist/core/recovery/interfaces/recovery-record.d.ts +0 -0
  225. package/dist/core/recovery/interfaces/recovery-stats.d.ts +0 -0
  226. package/dist/core/recovery/interfaces.d.ts +0 -0
  227. package/dist/core/recovery/patterns.d.ts +0 -0
  228. package/dist/core/recovery/retry.d.ts +0 -0
  229. package/dist/core/recovery/session-recovery.d.ts +0 -0
  230. package/dist/core/session/interfaces/context-stats.d.ts +0 -0
  231. package/dist/core/session/interfaces/index.d.ts +0 -0
  232. package/dist/core/session/interfaces/shared-context.d.ts +0 -0
  233. package/dist/core/session/interfaces/shared-decision.d.ts +0 -0
  234. package/dist/core/session/interfaces/shared-document.d.ts +0 -0
  235. package/dist/core/session/interfaces/shared-finding.d.ts +0 -0
  236. package/dist/core/session/interfaces.d.ts +0 -0
  237. package/dist/core/session/shared-context.d.ts +0 -0
  238. package/dist/core/session/store.d.ts +0 -0
  239. package/dist/core/session/summary.d.ts +0 -0
  240. package/dist/core/sync/todo-parser.d.ts +0 -0
  241. package/dist/core/sync/todo-sync-service.d.ts +0 -0
  242. package/dist/core/task/interfaces/index.d.ts +0 -0
  243. package/dist/core/task/interfaces/task-hierarchy.d.ts +0 -0
  244. package/dist/core/task/interfaces/task-input.d.ts +0 -0
  245. package/dist/core/task/interfaces/task-node.d.ts +0 -0
  246. package/dist/core/task/interfaces/task-progress.d.ts +0 -0
  247. package/dist/core/task/interfaces.d.ts +0 -0
  248. package/dist/core/task/parser.d.ts +0 -0
  249. package/dist/core/task/scheduler.d.ts +0 -0
  250. package/dist/core/task/store.d.ts +0 -0
  251. package/dist/core/task/summary.d.ts +0 -0
  252. package/dist/core/task/task-decomposer.d.ts +0 -0
  253. package/dist/core/todo/todo-manager.d.ts +0 -0
  254. package/dist/hooks/compatibility/external-plugin.d.ts +0 -0
  255. package/dist/hooks/constants.d.ts +0 -0
  256. package/dist/hooks/custom/agent-ui.d.ts +0 -0
  257. package/dist/hooks/custom/memory-gate.d.ts +0 -0
  258. package/dist/hooks/custom/metrics.d.ts +0 -0
  259. package/dist/hooks/custom/resource-control.d.ts +0 -0
  260. package/dist/hooks/custom/secret-scanner.d.ts +0 -0
  261. package/dist/hooks/custom/strict-role-guard.d.ts +0 -0
  262. package/dist/hooks/custom/user-activity.d.ts +0 -0
  263. package/dist/hooks/features/mission-loop.d.ts +0 -0
  264. package/dist/hooks/features/sanity-check.d.ts +0 -0
  265. package/dist/hooks/index.d.ts +0 -0
  266. package/dist/hooks/registry.d.ts +0 -0
  267. package/dist/hooks/types.d.ts +0 -0
  268. package/dist/index.d.ts +0 -0
  269. package/dist/index.js +1438 -671
  270. package/dist/plugin-handlers/assistant-done-handler.d.ts +0 -0
  271. package/dist/plugin-handlers/chat-message-handler.d.ts +0 -0
  272. package/dist/plugin-handlers/config-handler.d.ts +0 -0
  273. package/dist/plugin-handlers/event-handler.d.ts +0 -0
  274. package/dist/plugin-handlers/index.d.ts +0 -0
  275. package/dist/plugin-handlers/interfaces/assistant-done-context.d.ts +0 -0
  276. package/dist/plugin-handlers/interfaces/chat-message-context.d.ts +0 -0
  277. package/dist/plugin-handlers/interfaces/event-handler-context.d.ts +0 -0
  278. package/dist/plugin-handlers/interfaces/index.d.ts +0 -0
  279. package/dist/plugin-handlers/interfaces/orchestrator-state.d.ts +0 -0
  280. package/dist/plugin-handlers/interfaces/session-compacting.d.ts +0 -0
  281. package/dist/plugin-handlers/interfaces/session-state.d.ts +0 -0
  282. package/dist/plugin-handlers/interfaces/system-transform.d.ts +0 -0
  283. package/dist/plugin-handlers/interfaces/tool-execute-context.d.ts +0 -0
  284. package/dist/plugin-handlers/interfaces/tool-hook.d.ts +0 -0
  285. package/dist/plugin-handlers/session-compacting-handler.d.ts +0 -0
  286. package/dist/plugin-handlers/system-transform-handler.d.ts +0 -0
  287. package/dist/plugin-handlers/tool-execute-handler.d.ts +0 -0
  288. package/dist/plugin-handlers/tool-execute-pre-handler.d.ts +0 -0
  289. package/dist/shared/agent/constants/agent-tokens.d.ts +0 -0
  290. package/dist/shared/agent/constants/index.d.ts +0 -0
  291. package/dist/shared/agent/constants/names.d.ts +0 -0
  292. package/dist/shared/agent/index.d.ts +0 -0
  293. package/dist/shared/agent/interfaces/agent-definition.d.ts +0 -0
  294. package/dist/shared/agent/interfaces/concurrency-config.d.ts +0 -0
  295. package/dist/shared/agent/interfaces/index.d.ts +0 -0
  296. package/dist/shared/agent/types/agent-name.d.ts +0 -0
  297. package/dist/shared/agent/types/index.d.ts +0 -0
  298. package/dist/shared/agent/utils/index.d.ts +0 -0
  299. package/dist/shared/cache/constants/cache-actions.d.ts +0 -0
  300. package/dist/shared/cache/constants/cache.d.ts +0 -0
  301. package/dist/shared/cache/constants/filter-status.d.ts +0 -0
  302. package/dist/shared/cache/constants/index.d.ts +0 -0
  303. package/dist/shared/cache/index.d.ts +0 -0
  304. package/dist/shared/command/index.d.ts +0 -0
  305. package/dist/shared/command/interfaces/background-task.d.ts +0 -0
  306. package/dist/shared/command/interfaces/index.d.ts +0 -0
  307. package/dist/shared/command/interfaces/run-background-options.d.ts +0 -0
  308. package/dist/shared/command/types/background-task-status.d.ts +0 -0
  309. package/dist/shared/command/types/index.d.ts +0 -0
  310. package/dist/shared/constants/security-patterns.d.ts +0 -0
  311. package/dist/shared/constants/system-messages.d.ts +0 -0
  312. package/dist/shared/core/constants/cli.d.ts +0 -0
  313. package/dist/shared/core/constants/id-prefix.d.ts +0 -0
  314. package/dist/shared/core/constants/index.d.ts +0 -0
  315. package/dist/shared/core/constants/lifecycle.d.ts +0 -0
  316. package/dist/shared/core/constants/limits.d.ts +0 -0
  317. package/dist/shared/core/constants/logging.d.ts +0 -0
  318. package/dist/shared/core/constants/memory-hooks.d.ts +0 -0
  319. package/dist/shared/core/constants/memory-limits.d.ts +0 -0
  320. package/dist/shared/core/constants/paths.d.ts +0 -0
  321. package/dist/shared/core/constants/phases.d.ts +0 -0
  322. package/dist/shared/core/constants/status-labels.d.ts +0 -0
  323. package/dist/shared/core/constants/time.d.ts +0 -0
  324. package/dist/shared/core/constants/wal-actions.d.ts +0 -0
  325. package/dist/shared/core/index.d.ts +0 -0
  326. package/dist/shared/core/poolable.d.ts +0 -0
  327. package/dist/shared/errors/constants/error-patterns.d.ts +0 -0
  328. package/dist/shared/errors/constants/error-type.d.ts +0 -0
  329. package/dist/shared/errors/constants/index.d.ts +0 -0
  330. package/dist/shared/errors/detection.d.ts +0 -0
  331. package/dist/shared/errors/index.d.ts +0 -0
  332. package/dist/shared/errors/retry.d.ts +0 -0
  333. package/dist/shared/errors/types/error-pattern-type.d.ts +0 -0
  334. package/dist/shared/errors/types/index.d.ts +0 -0
  335. package/dist/shared/index.d.ts +0 -0
  336. package/dist/shared/lifecycle/index.d.ts +0 -0
  337. package/dist/shared/lifecycle/registration.d.ts +0 -0
  338. package/dist/shared/lifecycle/shutdown-manager.d.ts +0 -0
  339. package/dist/shared/loop/constants/index.d.ts +0 -0
  340. package/dist/shared/loop/constants/labels.d.ts +0 -0
  341. package/dist/shared/loop/constants/loop.d.ts +0 -0
  342. package/dist/shared/loop/constants/mission-control.d.ts +0 -0
  343. package/dist/shared/loop/constants/task-status.d.ts +0 -0
  344. package/dist/shared/loop/constants/todo-status.d.ts +0 -0
  345. package/dist/shared/loop/index.d.ts +0 -0
  346. package/dist/shared/loop/interfaces/index.d.ts +0 -0
  347. package/dist/shared/loop/interfaces/mission-loop.d.ts +0 -0
  348. package/dist/shared/loop/interfaces/todo-stats.d.ts +0 -0
  349. package/dist/shared/loop/interfaces/todo.d.ts +0 -0
  350. package/dist/shared/loop/types/index.d.ts +0 -0
  351. package/dist/shared/loop/types/todo-priority.d.ts +0 -0
  352. package/dist/shared/loop/types/todo-status.d.ts +0 -0
  353. package/dist/shared/message/constants/index.d.ts +0 -0
  354. package/dist/shared/message/constants/message-roles.d.ts +0 -0
  355. package/dist/shared/message/constants/part-types.d.ts +0 -0
  356. package/dist/shared/message/constants/plugin-hooks.d.ts +0 -0
  357. package/dist/shared/message/constants/prompts.d.ts +0 -0
  358. package/dist/shared/message/constants/slash-commands.d.ts +0 -0
  359. package/dist/shared/message/index.d.ts +0 -0
  360. package/dist/shared/notification/constants/index.d.ts +0 -0
  361. package/dist/shared/notification/constants/toast-duration.d.ts +0 -0
  362. package/dist/shared/notification/constants/toast-variants.d.ts +0 -0
  363. package/dist/shared/notification/constants/tui.const.d.ts +0 -0
  364. package/dist/shared/notification/index.d.ts +0 -0
  365. package/dist/shared/notification/interfaces/index.d.ts +0 -0
  366. package/dist/shared/notification/interfaces/task-toast.interface.d.ts +0 -0
  367. package/dist/shared/notification/interfaces/toast-message.d.ts +0 -0
  368. package/dist/shared/notification/interfaces/toast-options.d.ts +0 -0
  369. package/dist/shared/notification/os-notify/constants/index.d.ts +0 -0
  370. package/dist/shared/notification/os-notify/constants/notification-command-keys.d.ts +0 -0
  371. package/dist/shared/notification/os-notify/constants/notification-commands.d.ts +0 -0
  372. package/dist/shared/notification/os-notify/constants/notification-defaults.d.ts +0 -0
  373. package/dist/shared/notification/os-notify/index.d.ts +0 -0
  374. package/dist/shared/notification/os-notify/interfaces/index.d.ts +0 -0
  375. package/dist/shared/notification/os-notify/interfaces/notification-config.d.ts +0 -0
  376. package/dist/shared/notification/os-notify/interfaces/notification-state.d.ts +0 -0
  377. package/dist/shared/notification/os-notify/types/index.d.ts +0 -0
  378. package/dist/shared/notification/os-notify/types/notification-commands.d.ts +0 -0
  379. package/dist/shared/notification/presets/index.d.ts +0 -0
  380. package/dist/shared/notification/presets/mission.d.ts +0 -0
  381. package/dist/shared/notification/presets/parallel.d.ts +0 -0
  382. package/dist/shared/notification/presets/session.d.ts +0 -0
  383. package/dist/shared/notification/presets/task-lifecycle.d.ts +0 -0
  384. package/dist/shared/notification/presets/tools.d.ts +0 -0
  385. package/dist/shared/notification/presets/warnings.d.ts +0 -0
  386. package/dist/shared/notification/types/index.d.ts +0 -0
  387. package/dist/shared/notification/types/toast-variant.d.ts +0 -0
  388. package/dist/shared/os/constants/index.d.ts +0 -0
  389. package/dist/shared/os/constants/platform.d.ts +0 -0
  390. package/dist/shared/os/index.d.ts +0 -0
  391. package/dist/shared/os/types/index.d.ts +0 -0
  392. package/dist/shared/os/types/platform.d.ts +0 -0
  393. package/dist/shared/prompt/constants/architecture.d.ts +0 -0
  394. package/dist/shared/prompt/constants/index.d.ts +0 -0
  395. package/dist/shared/prompt/constants/mandates.d.ts +0 -0
  396. package/dist/shared/prompt/constants/philosophy.d.ts +0 -0
  397. package/dist/shared/prompt/constants/scouts.d.ts +0 -0
  398. package/dist/shared/prompt/constants/status.d.ts +0 -0
  399. package/dist/shared/prompt/constants/tags.d.ts +0 -0
  400. package/dist/shared/prompt/index.d.ts +0 -0
  401. package/dist/shared/recovery/constants/history.d.ts +0 -0
  402. package/dist/shared/recovery/constants/index.d.ts +0 -0
  403. package/dist/shared/recovery/constants/recovery-level.d.ts +0 -0
  404. package/dist/shared/recovery/constants/recovery.d.ts +0 -0
  405. package/dist/shared/recovery/index.d.ts +0 -0
  406. package/dist/shared/recovery/interfaces/error-context.d.ts +0 -0
  407. package/dist/shared/recovery/interfaces/index.d.ts +0 -0
  408. package/dist/shared/recovery/interfaces/recovery-record.d.ts +0 -0
  409. package/dist/shared/recovery/types/index.d.ts +0 -0
  410. package/dist/shared/recovery/types/recovery-action.d.ts +0 -0
  411. package/dist/shared/session/constants/events/document-events.d.ts +0 -0
  412. package/dist/shared/session/constants/events/index.d.ts +0 -0
  413. package/dist/shared/session/constants/events/message-events.d.ts +0 -0
  414. package/dist/shared/session/constants/events/mission-events.d.ts +0 -0
  415. package/dist/shared/session/constants/events/session-events.d.ts +0 -0
  416. package/dist/shared/session/constants/events/special-events.d.ts +0 -0
  417. package/dist/shared/session/constants/events/task-events.d.ts +0 -0
  418. package/dist/shared/session/constants/events/todo-events.d.ts +0 -0
  419. package/dist/shared/session/constants/index.d.ts +0 -0
  420. package/dist/shared/session/index.d.ts +0 -0
  421. package/dist/shared/task/base-task.d.ts +0 -0
  422. package/dist/shared/task/constants/background-status.d.ts +0 -0
  423. package/dist/shared/task/constants/background-task.d.ts +0 -0
  424. package/dist/shared/task/constants/index.d.ts +0 -0
  425. package/dist/shared/task/constants/metadata-keys.d.ts +0 -0
  426. package/dist/shared/task/constants/parallel-task.d.ts +0 -0
  427. package/dist/shared/task/index.d.ts +0 -0
  428. package/dist/shared/task/interfaces/index.d.ts +0 -0
  429. package/dist/shared/task/interfaces/launch-input.d.ts +0 -0
  430. package/dist/shared/task/interfaces/parallel-task.d.ts +0 -0
  431. package/dist/shared/task/interfaces/resume-input.d.ts +0 -0
  432. package/dist/shared/task/interfaces/task-progress.d.ts +0 -0
  433. package/dist/shared/task/types/index.d.ts +0 -0
  434. package/dist/shared/task/types/parallel-task-status.d.ts +0 -0
  435. package/dist/shared/tool/constants/common/index.d.ts +0 -0
  436. package/dist/shared/tool/constants/common/labels.d.ts +0 -0
  437. package/dist/shared/tool/constants/common/languages.d.ts +0 -0
  438. package/dist/shared/tool/constants/common/output-labels.d.ts +0 -0
  439. package/dist/shared/tool/constants/common/sources.d.ts +0 -0
  440. package/dist/shared/tool/constants/index.d.ts +0 -0
  441. package/dist/shared/tool/constants/lsp/index.d.ts +0 -0
  442. package/dist/shared/tool/constants/lsp/lsp-severity-labels.d.ts +0 -0
  443. package/dist/shared/tool/constants/lsp/lsp-severity.d.ts +0 -0
  444. package/dist/shared/tool/constants/parallel/index.d.ts +0 -0
  445. package/dist/shared/tool/constants/parallel/logging.d.ts +0 -0
  446. package/dist/shared/tool/constants/parallel/parameters.d.ts +0 -0
  447. package/dist/shared/tool/constants/tool-names.d.ts +0 -0
  448. package/dist/shared/tool/constants/tool-output.d.ts +0 -0
  449. package/dist/shared/tool/index.d.ts +0 -0
  450. package/dist/shared/tool/interfaces/ast/ast-replace-result.d.ts +0 -0
  451. package/dist/shared/tool/interfaces/ast/ast-search-result.d.ts +0 -0
  452. package/dist/shared/tool/interfaces/ast/index.d.ts +0 -0
  453. package/dist/shared/tool/interfaces/index.d.ts +0 -0
  454. package/dist/shared/tool/interfaces/lsp/index.d.ts +0 -0
  455. package/dist/shared/tool/interfaces/lsp/lsp-command-result.d.ts +0 -0
  456. package/dist/shared/tool/interfaces/lsp/lsp-diagnostic.d.ts +0 -0
  457. package/dist/shared/tool/interfaces/lsp/lsp-rename-location.d.ts +0 -0
  458. package/dist/shared/tool/interfaces/lsp/lsp-rename-result.d.ts +0 -0
  459. package/dist/shared/tool/interfaces/parallel/index.d.ts +0 -0
  460. package/dist/shared/tool/interfaces/parallel/poll-result.d.ts +0 -0
  461. package/dist/shared/tool/interfaces/parallel/session-client.d.ts +0 -0
  462. package/dist/shared/verification/constants/categories.d.ts +0 -0
  463. package/dist/shared/verification/constants/checklist.d.ts +0 -0
  464. package/dist/shared/verification/constants/index.d.ts +0 -0
  465. package/dist/shared/verification/constants/patterns.d.ts +0 -0
  466. package/dist/shared/verification/constants/signals.d.ts +0 -0
  467. package/dist/shared/verification/index.d.ts +0 -0
  468. package/dist/shared/verification/interfaces/checklist-item.d.ts +0 -0
  469. package/dist/shared/verification/interfaces/checklist-verification-result.d.ts +0 -0
  470. package/dist/shared/verification/interfaces/index.d.ts +0 -0
  471. package/dist/shared/verification/interfaces/verification-checklist.d.ts +0 -0
  472. package/dist/shared/verification/interfaces/verification-result.d.ts +0 -0
  473. package/dist/shared/verification/types/checklist-category.d.ts +0 -0
  474. package/dist/shared/verification/types/index.d.ts +0 -0
  475. package/dist/tools/ast/index.d.ts +0 -0
  476. package/dist/tools/background-cmd/check.d.ts +0 -0
  477. package/dist/tools/background-cmd/index.d.ts +0 -0
  478. package/dist/tools/background-cmd/kill.d.ts +0 -0
  479. package/dist/tools/background-cmd/list.d.ts +0 -0
  480. package/dist/tools/background-cmd/run.d.ts +0 -0
  481. package/dist/tools/callAgent.d.ts +0 -0
  482. package/dist/tools/lsp/diagnostics-cache.d.ts +0 -0
  483. package/dist/tools/lsp/index.d.ts +0 -0
  484. package/dist/tools/parallel/cancel-task.d.ts +0 -0
  485. package/dist/tools/parallel/delegate-task.d.ts +0 -0
  486. package/dist/tools/parallel/get-task-result.d.ts +0 -0
  487. package/dist/tools/parallel/index.d.ts +0 -0
  488. package/dist/tools/parallel/list-agents.d.ts +1 -1
  489. package/dist/tools/parallel/list-tasks.d.ts +0 -0
  490. package/dist/tools/parallel/show-metrics.d.ts +1 -1
  491. package/dist/tools/parallel/update-todo.d.ts +0 -0
  492. package/dist/tools/registry.d.ts +0 -0
  493. package/dist/tools/rust-pool.d.ts +0 -0
  494. package/dist/tools/rust.d.ts +0 -0
  495. package/dist/tools/search.d.ts +0 -0
  496. package/dist/tools/slashCommand.d.ts +0 -0
  497. package/dist/tools/web/cache-docs.d.ts +0 -0
  498. package/dist/tools/web/codesearch.d.ts +0 -0
  499. package/dist/tools/web/index.d.ts +0 -0
  500. package/dist/tools/web/webfetch.d.ts +0 -0
  501. package/dist/tools/web/websearch.d.ts +0 -0
  502. package/dist/utils/binary.d.ts +10 -0
  503. package/dist/utils/common.d.ts +0 -0
  504. package/dist/utils/compatibility/claude.d.ts +0 -0
  505. package/dist/utils/formatting/elapsed-time.d.ts +0 -0
  506. package/dist/utils/formatting/index.d.ts +0 -0
  507. package/dist/utils/formatting/timestamp.d.ts +0 -0
  508. package/dist/utils/parsing/index.d.ts +0 -0
  509. package/dist/utils/parsing/slash-command.d.ts +0 -0
  510. package/dist/utils/sanity/checker.d.ts +0 -0
  511. package/dist/utils/sanity/constants/escalation-prompt.d.ts +0 -0
  512. package/dist/utils/sanity/constants/index.d.ts +0 -0
  513. package/dist/utils/sanity/constants/recovery-prompt.d.ts +0 -0
  514. package/dist/utils/sanity/constants/severity.d.ts +0 -0
  515. package/dist/utils/sanity/index.d.ts +0 -0
  516. package/dist/utils/sanity/interfaces/index.d.ts +0 -0
  517. package/dist/utils/sanity/interfaces/sanity-result.d.ts +0 -0
  518. package/dist/utils/sanity/types/index.d.ts +0 -0
  519. package/dist/utils/sanity/types/severity.d.ts +0 -0
  520. package/package.json +88 -86
  521. package/scripts/run-install-hook.mjs +66 -66
package/dist/index.js CHANGED
@@ -1039,7 +1039,7 @@ function show(options) {
1039
1039
  for (const handler of handlers) {
1040
1040
  try {
1041
1041
  handler(toast);
1042
- } catch (error92) {
1042
+ } catch (error95) {
1043
1043
  }
1044
1044
  }
1045
1045
  if (tuiClient) {
@@ -1108,9 +1108,9 @@ var init_task_lifecycle = __esm({
1108
1108
  variant: TOAST_VARIANTS.SUCCESS,
1109
1109
  duration: 3e3
1110
1110
  });
1111
- taskFailed = (taskId, error92) => show({
1111
+ taskFailed = (taskId, error95) => show({
1112
1112
  title: "Task Failed",
1113
- message: `${taskId}: ${error92}`,
1113
+ message: `${taskId}: ${error95}`,
1114
1114
  variant: TOAST_VARIANTS.ERROR,
1115
1115
  duration: 0
1116
1116
  });
@@ -2192,8 +2192,8 @@ var init_shutdown_manager = __esm({
2192
2192
  )
2193
2193
  ]);
2194
2194
  log(`[${LOG_PREFIX.SHUTDOWN_MANAGER}] \u2713 ${handler.name} completed`);
2195
- } catch (error92) {
2196
- const errMsg = error92 instanceof Error ? error92.message : String(error92);
2195
+ } catch (error95) {
2196
+ const errMsg = error95 instanceof Error ? error95.message : String(error95);
2197
2197
  log(`[${LOG_PREFIX.SHUTDOWN_MANAGER}] \u2717 ${handler.name} failed: ${errMsg}`);
2198
2198
  }
2199
2199
  }
@@ -2278,8 +2278,8 @@ var init_types9 = __esm({
2278
2278
  });
2279
2279
 
2280
2280
  // src/shared/errors/detection.ts
2281
- function detectErrorType(error92) {
2282
- const errorStr = typeof error92 === "string" ? error92 : error92?.message || error92?.name || String(error92);
2281
+ function detectErrorType(error95) {
2282
+ const errorStr = typeof error95 === "string" ? error95 : error95?.message || error95?.name || String(error95);
2283
2283
  for (const [type, pattern] of Object.entries(ERROR_PATTERNS)) {
2284
2284
  if (pattern.test(errorStr)) {
2285
2285
  return type;
@@ -5715,8 +5715,8 @@ var WorkStealingWorkerPool = class {
5715
5715
  await this.executor(workItem);
5716
5716
  this.stats.totalExecuted++;
5717
5717
  this.stats.busyTime += Date.now() - startTime;
5718
- } catch (error92) {
5719
- log(`[WorkerPool] ${workerId} execution error: ${error92}`);
5718
+ } catch (error95) {
5719
+ log(`[WorkerPool] ${workerId} execution error: ${error95}`);
5720
5720
  }
5721
5721
  this.currentWaitMs = this.minWaitMs;
5722
5722
  continue;
@@ -5729,8 +5729,8 @@ var WorkStealingWorkerPool = class {
5729
5729
  this.stats.totalExecuted++;
5730
5730
  this.stats.totalStolen++;
5731
5731
  this.stats.busyTime += Date.now() - startTime;
5732
- } catch (error92) {
5733
- log(`[WorkerPool] ${workerId} execution error (stolen): ${error92}`);
5732
+ } catch (error95) {
5733
+ log(`[WorkerPool] ${workerId} execution error (stolen): ${error95}`);
5734
5734
  }
5735
5735
  this.currentWaitMs = this.minWaitMs;
5736
5736
  continue;
@@ -6497,7 +6497,7 @@ var TaskStore = class {
6497
6497
  }));
6498
6498
  await fs.appendFile(filepath, lines.join("\n") + "\n");
6499
6499
  this.archivedCount += tasks.length;
6500
- } catch (error92) {
6500
+ } catch (error95) {
6501
6501
  }
6502
6502
  }
6503
6503
  /**
@@ -7262,6 +7262,7 @@ __export(external_exports, {
7262
7262
  ZodOptional: () => ZodOptional,
7263
7263
  ZodPipe: () => ZodPipe,
7264
7264
  ZodPrefault: () => ZodPrefault,
7265
+ ZodPreprocess: () => ZodPreprocess,
7265
7266
  ZodPromise: () => ZodPromise,
7266
7267
  ZodReadonly: () => ZodReadonly,
7267
7268
  ZodRealError: () => ZodRealError,
@@ -7340,6 +7341,7 @@ __export(external_exports, {
7340
7341
  int32: () => int32,
7341
7342
  int64: () => int64,
7342
7343
  intersection: () => intersection,
7344
+ invertCodec: () => invertCodec,
7343
7345
  ipv4: () => ipv42,
7344
7346
  ipv6: () => ipv62,
7345
7347
  iso: () => iso_exports,
@@ -7521,6 +7523,7 @@ __export(core_exports2, {
7521
7523
  $ZodOptional: () => $ZodOptional,
7522
7524
  $ZodPipe: () => $ZodPipe,
7523
7525
  $ZodPrefault: () => $ZodPrefault,
7526
+ $ZodPreprocess: () => $ZodPreprocess,
7524
7527
  $ZodPromise: () => $ZodPromise,
7525
7528
  $ZodReadonly: () => $ZodReadonly,
7526
7529
  $ZodRealError: () => $ZodRealError,
@@ -7720,7 +7723,8 @@ __export(core_exports2, {
7720
7723
  });
7721
7724
 
7722
7725
  // node_modules/zod/v4/core/core.js
7723
- var NEVER = Object.freeze({
7726
+ var _a;
7727
+ var NEVER = /* @__PURE__ */ Object.freeze({
7724
7728
  status: "aborted"
7725
7729
  });
7726
7730
  // @__NO_SIDE_EFFECTS__
@@ -7755,10 +7759,10 @@ function $constructor(name, initializer5, params) {
7755
7759
  }
7756
7760
  Object.defineProperty(Definition, "name", { value: name });
7757
7761
  function _(def) {
7758
- var _a2;
7762
+ var _a3;
7759
7763
  const inst = params?.Parent ? new Definition() : this;
7760
7764
  init(inst, def);
7761
- (_a2 = inst._zod).deferred ?? (_a2.deferred = []);
7765
+ (_a3 = inst._zod).deferred ?? (_a3.deferred = []);
7762
7766
  for (const fn of inst._zod.deferred) {
7763
7767
  fn();
7764
7768
  }
@@ -7787,7 +7791,8 @@ var $ZodEncodeError = class extends Error {
7787
7791
  this.name = "ZodEncodeError";
7788
7792
  }
7789
7793
  };
7790
- var globalConfig = {};
7794
+ (_a = globalThis).__zod_globalConfig ?? (_a.__zod_globalConfig = {});
7795
+ var globalConfig = globalThis.__zod_globalConfig;
7791
7796
  function config(newConfig) {
7792
7797
  if (newConfig)
7793
7798
  Object.assign(globalConfig, newConfig);
@@ -7820,6 +7825,7 @@ __export(util_exports, {
7820
7825
  defineLazy: () => defineLazy,
7821
7826
  esc: () => esc,
7822
7827
  escapeRegex: () => escapeRegex,
7828
+ explicitlyAborted: () => explicitlyAborted,
7823
7829
  extend: () => extend,
7824
7830
  finalizeIssue: () => finalizeIssue,
7825
7831
  floatSafeRemainder: () => floatSafeRemainder,
@@ -7908,21 +7914,14 @@ function cleanRegex(source) {
7908
7914
  return source.slice(start, end);
7909
7915
  }
7910
7916
  function floatSafeRemainder(val, step) {
7911
- const valDecCount = (val.toString().split(".")[1] || "").length;
7912
- const stepString = step.toString();
7913
- let stepDecCount = (stepString.split(".")[1] || "").length;
7914
- if (stepDecCount === 0 && /\d?e-\d?/.test(stepString)) {
7915
- const match = stepString.match(/\d?e-(\d?)/);
7916
- if (match?.[1]) {
7917
- stepDecCount = Number.parseInt(match[1]);
7918
- }
7919
- }
7920
- const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;
7921
- const valInt = Number.parseInt(val.toFixed(decCount).replace(".", ""));
7922
- const stepInt = Number.parseInt(step.toFixed(decCount).replace(".", ""));
7923
- return valInt % stepInt / 10 ** decCount;
7924
- }
7925
- var EVALUATING = Symbol("evaluating");
7917
+ const ratio = val / step;
7918
+ const roundedRatio = Math.round(ratio);
7919
+ const tolerance = Number.EPSILON * Math.max(Math.abs(ratio), 1);
7920
+ if (Math.abs(ratio - roundedRatio) < tolerance)
7921
+ return 0;
7922
+ return ratio - roundedRatio;
7923
+ }
7924
+ var EVALUATING = /* @__PURE__ */ Symbol("evaluating");
7926
7925
  function defineLazy(object3, key, getter) {
7927
7926
  let value = void 0;
7928
7927
  Object.defineProperty(object3, key, {
@@ -8002,7 +8001,10 @@ var captureStackTrace = "captureStackTrace" in Error ? Error.captureStackTrace :
8002
8001
  function isObject(data) {
8003
8002
  return typeof data === "object" && data !== null && !Array.isArray(data);
8004
8003
  }
8005
- var allowsEval = cached(() => {
8004
+ var allowsEval = /* @__PURE__ */ cached(() => {
8005
+ if (globalConfig.jitless) {
8006
+ return false;
8007
+ }
8006
8008
  if (typeof navigator !== "undefined" && navigator?.userAgent?.includes("Cloudflare")) {
8007
8009
  return false;
8008
8010
  }
@@ -8035,6 +8037,10 @@ function shallowClone(o) {
8035
8037
  return { ...o };
8036
8038
  if (Array.isArray(o))
8037
8039
  return [...o];
8040
+ if (o instanceof Map)
8041
+ return new Map(o);
8042
+ if (o instanceof Set)
8043
+ return new Set(o);
8038
8044
  return o;
8039
8045
  }
8040
8046
  function numKeys(data) {
@@ -8091,7 +8097,14 @@ var getParsedType = (data) => {
8091
8097
  }
8092
8098
  };
8093
8099
  var propertyKeyTypes = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
8094
- var primitiveTypes = /* @__PURE__ */ new Set(["string", "number", "bigint", "boolean", "symbol", "undefined"]);
8100
+ var primitiveTypes = /* @__PURE__ */ new Set([
8101
+ "string",
8102
+ "number",
8103
+ "bigint",
8104
+ "boolean",
8105
+ "symbol",
8106
+ "undefined"
8107
+ ]);
8095
8108
  function escapeRegex(str) {
8096
8109
  return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
8097
8110
  }
@@ -8260,6 +8273,9 @@ function safeExtend(schema, shape) {
8260
8273
  return clone(schema, def);
8261
8274
  }
8262
8275
  function merge(a, b) {
8276
+ if (a._zod.def.checks?.length) {
8277
+ throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");
8278
+ }
8263
8279
  const def = mergeDefs(a._zod.def, {
8264
8280
  get shape() {
8265
8281
  const _shape = { ...a._zod.def.shape, ...b._zod.def.shape };
@@ -8269,8 +8285,7 @@ function merge(a, b) {
8269
8285
  get catchall() {
8270
8286
  return b._zod.def.catchall;
8271
8287
  },
8272
- checks: []
8273
- // delete existing checks
8288
+ checks: b._zod.def.checks ?? []
8274
8289
  });
8275
8290
  return clone(a, def);
8276
8291
  }
@@ -8353,10 +8368,20 @@ function aborted(x, startIndex = 0) {
8353
8368
  }
8354
8369
  return false;
8355
8370
  }
8371
+ function explicitlyAborted(x, startIndex = 0) {
8372
+ if (x.aborted === true)
8373
+ return true;
8374
+ for (let i = startIndex; i < x.issues.length; i++) {
8375
+ if (x.issues[i]?.continue === false) {
8376
+ return true;
8377
+ }
8378
+ }
8379
+ return false;
8380
+ }
8356
8381
  function prefixIssues(path10, issues) {
8357
8382
  return issues.map((iss) => {
8358
- var _a2;
8359
- (_a2 = iss).path ?? (_a2.path = []);
8383
+ var _a3;
8384
+ (_a3 = iss).path ?? (_a3.path = []);
8360
8385
  iss.path.unshift(path10);
8361
8386
  return iss;
8362
8387
  });
@@ -8365,17 +8390,14 @@ function unwrapMessage(message) {
8365
8390
  return typeof message === "string" ? message : message?.message;
8366
8391
  }
8367
8392
  function finalizeIssue(iss, ctx, config3) {
8368
- const full = { ...iss, path: iss.path ?? [] };
8369
- if (!iss.message) {
8370
- const message = unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(config3.customError?.(iss)) ?? unwrapMessage(config3.localeError?.(iss)) ?? "Invalid input";
8371
- full.message = message;
8393
+ const message = iss.message ? iss.message : unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(config3.customError?.(iss)) ?? unwrapMessage(config3.localeError?.(iss)) ?? "Invalid input";
8394
+ const { inst: _inst, continue: _continue, input: _input, ...rest } = iss;
8395
+ rest.path ?? (rest.path = []);
8396
+ rest.message = message;
8397
+ if (ctx?.reportInput) {
8398
+ rest.input = _input;
8372
8399
  }
8373
- delete full.inst;
8374
- delete full.continue;
8375
- if (!ctx?.reportInput) {
8376
- delete full.input;
8377
- }
8378
- return full;
8400
+ return rest;
8379
8401
  }
8380
8402
  function getSizableOrigin(input) {
8381
8403
  if (input instanceof Set)
@@ -8492,10 +8514,10 @@ var initializer = (inst, def) => {
8492
8514
  };
8493
8515
  var $ZodError = $constructor("$ZodError", initializer);
8494
8516
  var $ZodRealError = $constructor("$ZodError", initializer, { Parent: Error });
8495
- function flattenError(error92, mapper = (issue3) => issue3.message) {
8517
+ function flattenError(error95, mapper = (issue3) => issue3.message) {
8496
8518
  const fieldErrors = {};
8497
8519
  const formErrors = [];
8498
- for (const sub of error92.issues) {
8520
+ for (const sub of error95.issues) {
8499
8521
  if (sub.path.length > 0) {
8500
8522
  fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];
8501
8523
  fieldErrors[sub.path[0]].push(mapper(sub));
@@ -8505,50 +8527,53 @@ function flattenError(error92, mapper = (issue3) => issue3.message) {
8505
8527
  }
8506
8528
  return { formErrors, fieldErrors };
8507
8529
  }
8508
- function formatError(error92, mapper = (issue3) => issue3.message) {
8530
+ function formatError(error95, mapper = (issue3) => issue3.message) {
8509
8531
  const fieldErrors = { _errors: [] };
8510
- const processError = (error93) => {
8511
- for (const issue3 of error93.issues) {
8532
+ const processError = (error96, path10 = []) => {
8533
+ for (const issue3 of error96.issues) {
8512
8534
  if (issue3.code === "invalid_union" && issue3.errors.length) {
8513
- issue3.errors.map((issues) => processError({ issues }));
8535
+ issue3.errors.map((issues) => processError({ issues }, [...path10, ...issue3.path]));
8514
8536
  } else if (issue3.code === "invalid_key") {
8515
- processError({ issues: issue3.issues });
8537
+ processError({ issues: issue3.issues }, [...path10, ...issue3.path]);
8516
8538
  } else if (issue3.code === "invalid_element") {
8517
- processError({ issues: issue3.issues });
8518
- } else if (issue3.path.length === 0) {
8519
- fieldErrors._errors.push(mapper(issue3));
8539
+ processError({ issues: issue3.issues }, [...path10, ...issue3.path]);
8520
8540
  } else {
8521
- let curr = fieldErrors;
8522
- let i = 0;
8523
- while (i < issue3.path.length) {
8524
- const el = issue3.path[i];
8525
- const terminal = i === issue3.path.length - 1;
8526
- if (!terminal) {
8527
- curr[el] = curr[el] || { _errors: [] };
8528
- } else {
8529
- curr[el] = curr[el] || { _errors: [] };
8530
- curr[el]._errors.push(mapper(issue3));
8541
+ const fullpath = [...path10, ...issue3.path];
8542
+ if (fullpath.length === 0) {
8543
+ fieldErrors._errors.push(mapper(issue3));
8544
+ } else {
8545
+ let curr = fieldErrors;
8546
+ let i = 0;
8547
+ while (i < fullpath.length) {
8548
+ const el = fullpath[i];
8549
+ const terminal = i === fullpath.length - 1;
8550
+ if (!terminal) {
8551
+ curr[el] = curr[el] || { _errors: [] };
8552
+ } else {
8553
+ curr[el] = curr[el] || { _errors: [] };
8554
+ curr[el]._errors.push(mapper(issue3));
8555
+ }
8556
+ curr = curr[el];
8557
+ i++;
8531
8558
  }
8532
- curr = curr[el];
8533
- i++;
8534
8559
  }
8535
8560
  }
8536
8561
  }
8537
8562
  };
8538
- processError(error92);
8563
+ processError(error95);
8539
8564
  return fieldErrors;
8540
8565
  }
8541
- function treeifyError(error92, mapper = (issue3) => issue3.message) {
8566
+ function treeifyError(error95, mapper = (issue3) => issue3.message) {
8542
8567
  const result = { errors: [] };
8543
- const processError = (error93, path10 = []) => {
8544
- var _a2, _b;
8545
- for (const issue3 of error93.issues) {
8568
+ const processError = (error96, path10 = []) => {
8569
+ var _a3, _b;
8570
+ for (const issue3 of error96.issues) {
8546
8571
  if (issue3.code === "invalid_union" && issue3.errors.length) {
8547
- issue3.errors.map((issues) => processError({ issues }, issue3.path));
8572
+ issue3.errors.map((issues) => processError({ issues }, [...path10, ...issue3.path]));
8548
8573
  } else if (issue3.code === "invalid_key") {
8549
- processError({ issues: issue3.issues }, issue3.path);
8574
+ processError({ issues: issue3.issues }, [...path10, ...issue3.path]);
8550
8575
  } else if (issue3.code === "invalid_element") {
8551
- processError({ issues: issue3.issues }, issue3.path);
8576
+ processError({ issues: issue3.issues }, [...path10, ...issue3.path]);
8552
8577
  } else {
8553
8578
  const fullpath = [...path10, ...issue3.path];
8554
8579
  if (fullpath.length === 0) {
@@ -8562,7 +8587,7 @@ function treeifyError(error92, mapper = (issue3) => issue3.message) {
8562
8587
  const terminal = i === fullpath.length - 1;
8563
8588
  if (typeof el === "string") {
8564
8589
  curr.properties ?? (curr.properties = {});
8565
- (_a2 = curr.properties)[el] ?? (_a2[el] = { errors: [] });
8590
+ (_a3 = curr.properties)[el] ?? (_a3[el] = { errors: [] });
8566
8591
  curr = curr.properties[el];
8567
8592
  } else {
8568
8593
  curr.items ?? (curr.items = []);
@@ -8577,7 +8602,7 @@ function treeifyError(error92, mapper = (issue3) => issue3.message) {
8577
8602
  }
8578
8603
  }
8579
8604
  };
8580
- processError(error92);
8605
+ processError(error95);
8581
8606
  return result;
8582
8607
  }
8583
8608
  function toDotPath(_path) {
@@ -8598,9 +8623,9 @@ function toDotPath(_path) {
8598
8623
  }
8599
8624
  return segs.join("");
8600
8625
  }
8601
- function prettifyError(error92) {
8626
+ function prettifyError(error95) {
8602
8627
  const lines = [];
8603
- const issues = [...error92.issues].sort((a, b) => (a.path ?? []).length - (b.path ?? []).length);
8628
+ const issues = [...error95.issues].sort((a, b) => (a.path ?? []).length - (b.path ?? []).length);
8604
8629
  for (const issue3 of issues) {
8605
8630
  lines.push(`\u2716 ${issue3.message}`);
8606
8631
  if (issue3.path?.length)
@@ -8611,7 +8636,7 @@ function prettifyError(error92) {
8611
8636
 
8612
8637
  // node_modules/zod/v4/core/parse.js
8613
8638
  var _parse = (_Err) => (schema, value, _ctx, _params) => {
8614
- const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
8639
+ const ctx = _ctx ? { ..._ctx, async: false } : { async: false };
8615
8640
  const result = schema._zod.run({ value, issues: [] }, ctx);
8616
8641
  if (result instanceof Promise) {
8617
8642
  throw new $ZodAsyncError();
@@ -8625,7 +8650,7 @@ var _parse = (_Err) => (schema, value, _ctx, _params) => {
8625
8650
  };
8626
8651
  var parse = /* @__PURE__ */ _parse($ZodRealError);
8627
8652
  var _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
8628
- const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
8653
+ const ctx = _ctx ? { ..._ctx, async: true } : { async: true };
8629
8654
  let result = schema._zod.run({ value, issues: [] }, ctx);
8630
8655
  if (result instanceof Promise)
8631
8656
  result = await result;
@@ -8650,7 +8675,7 @@ var _safeParse = (_Err) => (schema, value, _ctx) => {
8650
8675
  };
8651
8676
  var safeParse = /* @__PURE__ */ _safeParse($ZodRealError);
8652
8677
  var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
8653
- const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
8678
+ const ctx = _ctx ? { ..._ctx, async: true } : { async: true };
8654
8679
  let result = schema._zod.run({ value, issues: [] }, ctx);
8655
8680
  if (result instanceof Promise)
8656
8681
  result = await result;
@@ -8661,7 +8686,7 @@ var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
8661
8686
  };
8662
8687
  var safeParseAsync = /* @__PURE__ */ _safeParseAsync($ZodRealError);
8663
8688
  var _encode = (_Err) => (schema, value, _ctx) => {
8664
- const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
8689
+ const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
8665
8690
  return _parse(_Err)(schema, value, ctx);
8666
8691
  };
8667
8692
  var encode = /* @__PURE__ */ _encode($ZodRealError);
@@ -8670,7 +8695,7 @@ var _decode = (_Err) => (schema, value, _ctx) => {
8670
8695
  };
8671
8696
  var decode = /* @__PURE__ */ _decode($ZodRealError);
8672
8697
  var _encodeAsync = (_Err) => async (schema, value, _ctx) => {
8673
- const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
8698
+ const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
8674
8699
  return _parseAsync(_Err)(schema, value, ctx);
8675
8700
  };
8676
8701
  var encodeAsync = /* @__PURE__ */ _encodeAsync($ZodRealError);
@@ -8679,7 +8704,7 @@ var _decodeAsync = (_Err) => async (schema, value, _ctx) => {
8679
8704
  };
8680
8705
  var decodeAsync = /* @__PURE__ */ _decodeAsync($ZodRealError);
8681
8706
  var _safeEncode = (_Err) => (schema, value, _ctx) => {
8682
- const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
8707
+ const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
8683
8708
  return _safeParse(_Err)(schema, value, ctx);
8684
8709
  };
8685
8710
  var safeEncode = /* @__PURE__ */ _safeEncode($ZodRealError);
@@ -8688,7 +8713,7 @@ var _safeDecode = (_Err) => (schema, value, _ctx) => {
8688
8713
  };
8689
8714
  var safeDecode = /* @__PURE__ */ _safeDecode($ZodRealError);
8690
8715
  var _safeEncodeAsync = (_Err) => async (schema, value, _ctx) => {
8691
- const ctx = _ctx ? Object.assign(_ctx, { direction: "backward" }) : { direction: "backward" };
8716
+ const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
8692
8717
  return _safeParseAsync(_Err)(schema, value, ctx);
8693
8718
  };
8694
8719
  var safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync($ZodRealError);
@@ -8721,6 +8746,7 @@ __export(regexes_exports, {
8721
8746
  hex: () => hex,
8722
8747
  hostname: () => hostname,
8723
8748
  html5Email: () => html5Email,
8749
+ httpProtocol: () => httpProtocol,
8724
8750
  idnEmail: () => idnEmail,
8725
8751
  integer: () => integer,
8726
8752
  ipv4: () => ipv4,
@@ -8759,7 +8785,7 @@ __export(regexes_exports, {
8759
8785
  uuid7: () => uuid7,
8760
8786
  xid: () => xid
8761
8787
  });
8762
- var cuid = /^[cC][^\s-]{8,}$/;
8788
+ var cuid = /^[cC][0-9a-z]{6,}$/;
8763
8789
  var cuid2 = /^[0-9a-z]+$/;
8764
8790
  var ulid = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/;
8765
8791
  var xid = /^[0-9a-vA-V]{20}$/;
@@ -8798,6 +8824,7 @@ var base64 = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/
8798
8824
  var base64url = /^[A-Za-z0-9_-]*$/;
8799
8825
  var hostname = /^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/;
8800
8826
  var domain = /^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/;
8827
+ var httpProtocol = /^https?$/;
8801
8828
  var e164 = /^\+[1-9]\d{6,14}$/;
8802
8829
  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])))`;
8803
8830
  var date = /* @__PURE__ */ new RegExp(`^${dateSource}$`);
@@ -8856,10 +8883,10 @@ var sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
8856
8883
 
8857
8884
  // node_modules/zod/v4/core/checks.js
8858
8885
  var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
8859
- var _a2;
8886
+ var _a3;
8860
8887
  inst._zod ?? (inst._zod = {});
8861
8888
  inst._zod.def = def;
8862
- (_a2 = inst._zod).onattach ?? (_a2.onattach = []);
8889
+ (_a3 = inst._zod).onattach ?? (_a3.onattach = []);
8863
8890
  });
8864
8891
  var numericOriginMap = {
8865
8892
  number: "number",
@@ -8925,8 +8952,8 @@ var $ZodCheckGreaterThan = /* @__PURE__ */ $constructor("$ZodCheckGreaterThan",
8925
8952
  var $ZodCheckMultipleOf = /* @__PURE__ */ $constructor("$ZodCheckMultipleOf", (inst, def) => {
8926
8953
  $ZodCheck.init(inst, def);
8927
8954
  inst._zod.onattach.push((inst2) => {
8928
- var _a2;
8929
- (_a2 = inst2._zod.bag).multipleOf ?? (_a2.multipleOf = def.value);
8955
+ var _a3;
8956
+ (_a3 = inst2._zod.bag).multipleOf ?? (_a3.multipleOf = def.value);
8930
8957
  });
8931
8958
  inst._zod.check = (payload) => {
8932
8959
  if (typeof payload.value !== typeof def.value)
@@ -9059,9 +9086,9 @@ var $ZodCheckBigIntFormat = /* @__PURE__ */ $constructor("$ZodCheckBigIntFormat"
9059
9086
  };
9060
9087
  });
9061
9088
  var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, def) => {
9062
- var _a2;
9089
+ var _a3;
9063
9090
  $ZodCheck.init(inst, def);
9064
- (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
9091
+ (_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
9065
9092
  const val = payload.value;
9066
9093
  return !nullish(val) && val.size !== void 0;
9067
9094
  });
@@ -9087,9 +9114,9 @@ var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, d
9087
9114
  };
9088
9115
  });
9089
9116
  var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, def) => {
9090
- var _a2;
9117
+ var _a3;
9091
9118
  $ZodCheck.init(inst, def);
9092
- (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
9119
+ (_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
9093
9120
  const val = payload.value;
9094
9121
  return !nullish(val) && val.size !== void 0;
9095
9122
  });
@@ -9115,9 +9142,9 @@ var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, d
9115
9142
  };
9116
9143
  });
9117
9144
  var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (inst, def) => {
9118
- var _a2;
9145
+ var _a3;
9119
9146
  $ZodCheck.init(inst, def);
9120
- (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
9147
+ (_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
9121
9148
  const val = payload.value;
9122
9149
  return !nullish(val) && val.size !== void 0;
9123
9150
  });
@@ -9145,9 +9172,9 @@ var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (i
9145
9172
  };
9146
9173
  });
9147
9174
  var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (inst, def) => {
9148
- var _a2;
9175
+ var _a3;
9149
9176
  $ZodCheck.init(inst, def);
9150
- (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
9177
+ (_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
9151
9178
  const val = payload.value;
9152
9179
  return !nullish(val) && val.length !== void 0;
9153
9180
  });
@@ -9174,9 +9201,9 @@ var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (ins
9174
9201
  };
9175
9202
  });
9176
9203
  var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (inst, def) => {
9177
- var _a2;
9204
+ var _a3;
9178
9205
  $ZodCheck.init(inst, def);
9179
- (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
9206
+ (_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
9180
9207
  const val = payload.value;
9181
9208
  return !nullish(val) && val.length !== void 0;
9182
9209
  });
@@ -9203,9 +9230,9 @@ var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (ins
9203
9230
  };
9204
9231
  });
9205
9232
  var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
9206
- var _a2;
9233
+ var _a3;
9207
9234
  $ZodCheck.init(inst, def);
9208
- (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
9235
+ (_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
9209
9236
  const val = payload.value;
9210
9237
  return !nullish(val) && val.length !== void 0;
9211
9238
  });
@@ -9234,7 +9261,7 @@ var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals"
9234
9261
  };
9235
9262
  });
9236
9263
  var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
9237
- var _a2, _b;
9264
+ var _a3, _b;
9238
9265
  $ZodCheck.init(inst, def);
9239
9266
  inst._zod.onattach.push((inst2) => {
9240
9267
  const bag = inst2._zod.bag;
@@ -9245,7 +9272,7 @@ var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat"
9245
9272
  }
9246
9273
  });
9247
9274
  if (def.pattern)
9248
- (_a2 = inst._zod).check ?? (_a2.check = (payload) => {
9275
+ (_a3 = inst._zod).check ?? (_a3.check = (payload) => {
9249
9276
  def.pattern.lastIndex = 0;
9250
9277
  if (def.pattern.test(payload.value))
9251
9278
  return;
@@ -9441,13 +9468,13 @@ var Doc = class {
9441
9468
  // node_modules/zod/v4/core/versions.js
9442
9469
  var version = {
9443
9470
  major: 4,
9444
- minor: 3,
9445
- patch: 6
9471
+ minor: 4,
9472
+ patch: 3
9446
9473
  };
9447
9474
 
9448
9475
  // node_modules/zod/v4/core/schemas.js
9449
9476
  var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
9450
- var _a2;
9477
+ var _a3;
9451
9478
  inst ?? (inst = {});
9452
9479
  inst._zod.def = def;
9453
9480
  inst._zod.bag = inst._zod.bag || {};
@@ -9462,7 +9489,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
9462
9489
  }
9463
9490
  }
9464
9491
  if (checks.length === 0) {
9465
- (_a2 = inst._zod).deferred ?? (_a2.deferred = []);
9492
+ (_a3 = inst._zod).deferred ?? (_a3.deferred = []);
9466
9493
  inst._zod.deferred?.push(() => {
9467
9494
  inst._zod.run = inst._zod.parse;
9468
9495
  });
@@ -9472,6 +9499,8 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
9472
9499
  let asyncResult;
9473
9500
  for (const ch of checks2) {
9474
9501
  if (ch._zod.def.when) {
9502
+ if (explicitlyAborted(payload))
9503
+ continue;
9475
9504
  const shouldRun = ch._zod.def.when(payload);
9476
9505
  if (!shouldRun)
9477
9506
  continue;
@@ -9612,6 +9641,19 @@ var $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
9612
9641
  inst._zod.check = (payload) => {
9613
9642
  try {
9614
9643
  const trimmed = payload.value.trim();
9644
+ if (!def.normalize && def.protocol?.source === httpProtocol.source) {
9645
+ if (!/^https?:\/\//i.test(trimmed)) {
9646
+ payload.issues.push({
9647
+ code: "invalid_format",
9648
+ format: "url",
9649
+ note: "Invalid URL format",
9650
+ input: payload.value,
9651
+ inst,
9652
+ continue: !def.abort
9653
+ });
9654
+ return;
9655
+ }
9656
+ }
9615
9657
  const url3 = new URL(trimmed);
9616
9658
  if (def.hostname) {
9617
9659
  def.hostname.lastIndex = 0;
@@ -9765,6 +9807,8 @@ var $ZodCIDRv6 = /* @__PURE__ */ $constructor("$ZodCIDRv6", (inst, def) => {
9765
9807
  function isValidBase64(data) {
9766
9808
  if (data === "")
9767
9809
  return true;
9810
+ if (/\s/.test(data))
9811
+ return false;
9768
9812
  if (data.length % 4 !== 0)
9769
9813
  return false;
9770
9814
  try {
@@ -9957,8 +10001,6 @@ var $ZodUndefined = /* @__PURE__ */ $constructor("$ZodUndefined", (inst, def) =>
9957
10001
  $ZodType.init(inst, def);
9958
10002
  inst._zod.pattern = _undefined;
9959
10003
  inst._zod.values = /* @__PURE__ */ new Set([void 0]);
9960
- inst._zod.optin = "optional";
9961
- inst._zod.optout = "optional";
9962
10004
  inst._zod.parse = (payload, _ctx) => {
9963
10005
  const input = payload.value;
9964
10006
  if (typeof input === "undefined")
@@ -10087,15 +10129,27 @@ var $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => {
10087
10129
  return payload;
10088
10130
  };
10089
10131
  });
10090
- function handlePropertyResult(result, final, key, input, isOptionalOut) {
10132
+ function handlePropertyResult(result, final, key, input, isOptionalIn, isOptionalOut) {
10133
+ const isPresent = key in input;
10091
10134
  if (result.issues.length) {
10092
- if (isOptionalOut && !(key in input)) {
10135
+ if (isOptionalIn && isOptionalOut && !isPresent) {
10093
10136
  return;
10094
10137
  }
10095
10138
  final.issues.push(...prefixIssues(key, result.issues));
10096
10139
  }
10140
+ if (!isPresent && !isOptionalIn) {
10141
+ if (!result.issues.length) {
10142
+ final.issues.push({
10143
+ code: "invalid_type",
10144
+ expected: "nonoptional",
10145
+ input: void 0,
10146
+ path: [key]
10147
+ });
10148
+ }
10149
+ return;
10150
+ }
10097
10151
  if (result.value === void 0) {
10098
- if (key in input) {
10152
+ if (isPresent) {
10099
10153
  final.value[key] = void 0;
10100
10154
  }
10101
10155
  } else {
@@ -10123,8 +10177,11 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
10123
10177
  const keySet = def.keySet;
10124
10178
  const _catchall = def.catchall._zod;
10125
10179
  const t = _catchall.def.type;
10180
+ const isOptionalIn = _catchall.optin === "optional";
10126
10181
  const isOptionalOut = _catchall.optout === "optional";
10127
10182
  for (const key in input) {
10183
+ if (key === "__proto__")
10184
+ continue;
10128
10185
  if (keySet.has(key))
10129
10186
  continue;
10130
10187
  if (t === "never") {
@@ -10133,9 +10190,9 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
10133
10190
  }
10134
10191
  const r = _catchall.run({ value: input[key], issues: [] }, ctx);
10135
10192
  if (r instanceof Promise) {
10136
- proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
10193
+ proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalIn, isOptionalOut)));
10137
10194
  } else {
10138
- handlePropertyResult(r, payload, key, input, isOptionalOut);
10195
+ handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
10139
10196
  }
10140
10197
  }
10141
10198
  if (unrecognized.length) {
@@ -10201,12 +10258,13 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
10201
10258
  const shape = value.shape;
10202
10259
  for (const key of value.keys) {
10203
10260
  const el = shape[key];
10261
+ const isOptionalIn = el._zod.optin === "optional";
10204
10262
  const isOptionalOut = el._zod.optout === "optional";
10205
10263
  const r = el._zod.run({ value: input[key], issues: [] }, ctx);
10206
10264
  if (r instanceof Promise) {
10207
- proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
10265
+ proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalIn, isOptionalOut)));
10208
10266
  } else {
10209
- handlePropertyResult(r, payload, key, input, isOptionalOut);
10267
+ handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
10210
10268
  }
10211
10269
  }
10212
10270
  if (!catchall) {
@@ -10237,9 +10295,10 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) =>
10237
10295
  const id = ids[key];
10238
10296
  const k = esc(key);
10239
10297
  const schema = shape[key];
10298
+ const isOptionalIn = schema?._zod?.optin === "optional";
10240
10299
  const isOptionalOut = schema?._zod?.optout === "optional";
10241
10300
  doc.write(`const ${id} = ${parseStr(key)};`);
10242
- if (isOptionalOut) {
10301
+ if (isOptionalIn && isOptionalOut) {
10243
10302
  doc.write(`
10244
10303
  if (${id}.issues.length) {
10245
10304
  if (${k} in input) {
@@ -10258,6 +10317,33 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) =>
10258
10317
  newResult[${k}] = ${id}.value;
10259
10318
  }
10260
10319
 
10320
+ `);
10321
+ } else if (!isOptionalIn) {
10322
+ doc.write(`
10323
+ const ${id}_present = ${k} in input;
10324
+ if (${id}.issues.length) {
10325
+ payload.issues = payload.issues.concat(${id}.issues.map(iss => ({
10326
+ ...iss,
10327
+ path: iss.path ? [${k}, ...iss.path] : [${k}]
10328
+ })));
10329
+ }
10330
+ if (!${id}_present && !${id}.issues.length) {
10331
+ payload.issues.push({
10332
+ code: "invalid_type",
10333
+ expected: "nonoptional",
10334
+ input: undefined,
10335
+ path: [${k}]
10336
+ });
10337
+ }
10338
+
10339
+ if (${id}_present) {
10340
+ if (${id}.value === undefined) {
10341
+ newResult[${k}] = undefined;
10342
+ } else {
10343
+ newResult[${k}] = ${id}.value;
10344
+ }
10345
+ }
10346
+
10261
10347
  `);
10262
10348
  } else {
10263
10349
  doc.write(`
@@ -10351,10 +10437,9 @@ var $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
10351
10437
  }
10352
10438
  return void 0;
10353
10439
  });
10354
- const single = def.options.length === 1;
10355
- const first = def.options[0]._zod.run;
10440
+ const first = def.options.length === 1 ? def.options[0]._zod.run : null;
10356
10441
  inst._zod.parse = (payload, ctx) => {
10357
- if (single) {
10442
+ if (first) {
10358
10443
  return first(payload, ctx);
10359
10444
  }
10360
10445
  let async = false;
@@ -10407,10 +10492,9 @@ function handleExclusiveUnionResults(results, final, inst, ctx) {
10407
10492
  var $ZodXor = /* @__PURE__ */ $constructor("$ZodXor", (inst, def) => {
10408
10493
  $ZodUnion.init(inst, def);
10409
10494
  def.inclusive = false;
10410
- const single = def.options.length === 1;
10411
- const first = def.options[0]._zod.run;
10495
+ const first = def.options.length === 1 ? def.options[0]._zod.run : null;
10412
10496
  inst._zod.parse = (payload, ctx) => {
10413
- if (single) {
10497
+ if (first) {
10414
10498
  return first(payload, ctx);
10415
10499
  }
10416
10500
  let async = false;
@@ -10485,7 +10569,7 @@ var $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnio
10485
10569
  if (opt) {
10486
10570
  return opt._zod.run(payload, ctx);
10487
10571
  }
10488
- if (def.unionFallback) {
10572
+ if (def.unionFallback || ctx.direction === "backward") {
10489
10573
  return _super(payload, ctx);
10490
10574
  }
10491
10575
  payload.issues.push({
@@ -10493,6 +10577,7 @@ var $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnio
10493
10577
  errors: [],
10494
10578
  note: "No matching discriminator",
10495
10579
  discriminator: def.discriminator,
10580
+ options: Array.from(disc.value.keys()),
10496
10581
  input,
10497
10582
  path: [def.discriminator],
10498
10583
  inst
@@ -10614,64 +10699,96 @@ var $ZodTuple = /* @__PURE__ */ $constructor("$ZodTuple", (inst, def) => {
10614
10699
  }
10615
10700
  payload.value = [];
10616
10701
  const proms = [];
10617
- const reversedIndex = [...items].reverse().findIndex((item) => item._zod.optin !== "optional");
10618
- const optStart = reversedIndex === -1 ? 0 : items.length - reversedIndex;
10702
+ const optinStart = getTupleOptStart(items, "optin");
10703
+ const optoutStart = getTupleOptStart(items, "optout");
10619
10704
  if (!def.rest) {
10620
- const tooBig = input.length > items.length;
10621
- const tooSmall = input.length < optStart - 1;
10622
- if (tooBig || tooSmall) {
10705
+ if (input.length < optinStart) {
10623
10706
  payload.issues.push({
10624
- ...tooBig ? { code: "too_big", maximum: items.length, inclusive: true } : { code: "too_small", minimum: items.length },
10707
+ code: "too_small",
10708
+ minimum: optinStart,
10709
+ inclusive: true,
10625
10710
  input,
10626
10711
  inst,
10627
10712
  origin: "array"
10628
10713
  });
10629
10714
  return payload;
10630
10715
  }
10631
- }
10632
- let i = -1;
10633
- for (const item of items) {
10634
- i++;
10635
- if (i >= input.length) {
10636
- if (i >= optStart)
10637
- continue;
10716
+ if (input.length > items.length) {
10717
+ payload.issues.push({
10718
+ code: "too_big",
10719
+ maximum: items.length,
10720
+ inclusive: true,
10721
+ input,
10722
+ inst,
10723
+ origin: "array"
10724
+ });
10638
10725
  }
10639
- const result = item._zod.run({
10640
- value: input[i],
10641
- issues: []
10642
- }, ctx);
10643
- if (result instanceof Promise) {
10644
- proms.push(result.then((result2) => handleTupleResult(result2, payload, i)));
10726
+ }
10727
+ const itemResults = new Array(items.length);
10728
+ for (let i = 0; i < items.length; i++) {
10729
+ const r = items[i]._zod.run({ value: input[i], issues: [] }, ctx);
10730
+ if (r instanceof Promise) {
10731
+ proms.push(r.then((rr) => {
10732
+ itemResults[i] = rr;
10733
+ }));
10645
10734
  } else {
10646
- handleTupleResult(result, payload, i);
10735
+ itemResults[i] = r;
10647
10736
  }
10648
10737
  }
10649
10738
  if (def.rest) {
10739
+ let i = items.length - 1;
10650
10740
  const rest = input.slice(items.length);
10651
10741
  for (const el of rest) {
10652
10742
  i++;
10653
- const result = def.rest._zod.run({
10654
- value: el,
10655
- issues: []
10656
- }, ctx);
10743
+ const result = def.rest._zod.run({ value: el, issues: [] }, ctx);
10657
10744
  if (result instanceof Promise) {
10658
- proms.push(result.then((result2) => handleTupleResult(result2, payload, i)));
10745
+ proms.push(result.then((r) => handleTupleResult(r, payload, i)));
10659
10746
  } else {
10660
10747
  handleTupleResult(result, payload, i);
10661
10748
  }
10662
10749
  }
10663
10750
  }
10664
- if (proms.length)
10665
- return Promise.all(proms).then(() => payload);
10666
- return payload;
10751
+ if (proms.length) {
10752
+ return Promise.all(proms).then(() => handleTupleResults(itemResults, payload, items, input, optoutStart));
10753
+ }
10754
+ return handleTupleResults(itemResults, payload, items, input, optoutStart);
10667
10755
  };
10668
10756
  });
10757
+ function getTupleOptStart(items, key) {
10758
+ for (let i = items.length - 1; i >= 0; i--) {
10759
+ if (items[i]._zod[key] !== "optional")
10760
+ return i + 1;
10761
+ }
10762
+ return 0;
10763
+ }
10669
10764
  function handleTupleResult(result, final, index) {
10670
10765
  if (result.issues.length) {
10671
10766
  final.issues.push(...prefixIssues(index, result.issues));
10672
10767
  }
10673
10768
  final.value[index] = result.value;
10674
10769
  }
10770
+ function handleTupleResults(itemResults, final, items, input, optoutStart) {
10771
+ for (let i = 0; i < items.length; i++) {
10772
+ const r = itemResults[i];
10773
+ const isPresent = i < input.length;
10774
+ if (r.issues.length) {
10775
+ if (!isPresent && i >= optoutStart) {
10776
+ final.value.length = i;
10777
+ break;
10778
+ }
10779
+ final.issues.push(...prefixIssues(i, r.issues));
10780
+ }
10781
+ final.value[i] = r.value;
10782
+ }
10783
+ for (let i = final.value.length - 1; i >= input.length; i--) {
10784
+ if (items[i]._zod.optout === "optional" && final.value[i] === void 0) {
10785
+ final.value.length = i;
10786
+ } else {
10787
+ break;
10788
+ }
10789
+ }
10790
+ return final;
10791
+ }
10675
10792
  var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
10676
10793
  $ZodType.init(inst, def);
10677
10794
  inst._zod.parse = (payload, ctx) => {
@@ -10693,19 +10810,35 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
10693
10810
  for (const key of values) {
10694
10811
  if (typeof key === "string" || typeof key === "number" || typeof key === "symbol") {
10695
10812
  recordKeys.add(typeof key === "number" ? key.toString() : key);
10813
+ const keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
10814
+ if (keyResult instanceof Promise) {
10815
+ throw new Error("Async schemas not supported in object keys currently");
10816
+ }
10817
+ if (keyResult.issues.length) {
10818
+ payload.issues.push({
10819
+ code: "invalid_key",
10820
+ origin: "record",
10821
+ issues: keyResult.issues.map((iss) => finalizeIssue(iss, ctx, config())),
10822
+ input: key,
10823
+ path: [key],
10824
+ inst
10825
+ });
10826
+ continue;
10827
+ }
10828
+ const outKey = keyResult.value;
10696
10829
  const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx);
10697
10830
  if (result instanceof Promise) {
10698
10831
  proms.push(result.then((result2) => {
10699
10832
  if (result2.issues.length) {
10700
10833
  payload.issues.push(...prefixIssues(key, result2.issues));
10701
10834
  }
10702
- payload.value[key] = result2.value;
10835
+ payload.value[outKey] = result2.value;
10703
10836
  }));
10704
10837
  } else {
10705
10838
  if (result.issues.length) {
10706
10839
  payload.issues.push(...prefixIssues(key, result.issues));
10707
10840
  }
10708
- payload.value[key] = result.value;
10841
+ payload.value[outKey] = result.value;
10709
10842
  }
10710
10843
  }
10711
10844
  }
@@ -10729,6 +10862,8 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
10729
10862
  for (const key of Reflect.ownKeys(input)) {
10730
10863
  if (key === "__proto__")
10731
10864
  continue;
10865
+ if (!Object.prototype.propertyIsEnumerable.call(input, key))
10866
+ continue;
10732
10867
  let keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
10733
10868
  if (keyResult instanceof Promise) {
10734
10869
  throw new Error("Async schemas not supported in object keys currently");
@@ -10933,6 +11068,7 @@ var $ZodFile = /* @__PURE__ */ $constructor("$ZodFile", (inst, def) => {
10933
11068
  });
10934
11069
  var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) => {
10935
11070
  $ZodType.init(inst, def);
11071
+ inst._zod.optin = "optional";
10936
11072
  inst._zod.parse = (payload, ctx) => {
10937
11073
  if (ctx.direction === "backward") {
10938
11074
  throw new $ZodEncodeError(inst.constructor.name);
@@ -10942,6 +11078,7 @@ var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) =>
10942
11078
  const output = _out instanceof Promise ? _out : Promise.resolve(_out);
10943
11079
  return output.then((output2) => {
10944
11080
  payload.value = output2;
11081
+ payload.fallback = true;
10945
11082
  return payload;
10946
11083
  });
10947
11084
  }
@@ -10949,11 +11086,12 @@ var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) =>
10949
11086
  throw new $ZodAsyncError();
10950
11087
  }
10951
11088
  payload.value = _out;
11089
+ payload.fallback = true;
10952
11090
  return payload;
10953
11091
  };
10954
11092
  });
10955
11093
  function handleOptionalResult(result, input) {
10956
- if (result.issues.length && input === void 0) {
11094
+ if (input === void 0 && (result.issues.length || result.fallback)) {
10957
11095
  return { issues: [], value: void 0 };
10958
11096
  }
10959
11097
  return result;
@@ -10971,10 +11109,11 @@ var $ZodOptional = /* @__PURE__ */ $constructor("$ZodOptional", (inst, def) => {
10971
11109
  });
10972
11110
  inst._zod.parse = (payload, ctx) => {
10973
11111
  if (def.innerType._zod.optin === "optional") {
11112
+ const input = payload.value;
10974
11113
  const result = def.innerType._zod.run(payload, ctx);
10975
11114
  if (result instanceof Promise)
10976
- return result.then((r) => handleOptionalResult(r, payload.value));
10977
- return handleOptionalResult(result, payload.value);
11115
+ return result.then((r) => handleOptionalResult(r, input));
11116
+ return handleOptionalResult(result, input);
10978
11117
  }
10979
11118
  if (payload.value === void 0) {
10980
11119
  return payload;
@@ -11090,7 +11229,7 @@ var $ZodSuccess = /* @__PURE__ */ $constructor("$ZodSuccess", (inst, def) => {
11090
11229
  });
11091
11230
  var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
11092
11231
  $ZodType.init(inst, def);
11093
- defineLazy(inst._zod, "optin", () => def.innerType._zod.optin);
11232
+ inst._zod.optin = "optional";
11094
11233
  defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
11095
11234
  defineLazy(inst._zod, "values", () => def.innerType._zod.values);
11096
11235
  inst._zod.parse = (payload, ctx) => {
@@ -11110,6 +11249,7 @@ var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
11110
11249
  input: payload.value
11111
11250
  });
11112
11251
  payload.issues = [];
11252
+ payload.fallback = true;
11113
11253
  }
11114
11254
  return payload;
11115
11255
  });
@@ -11124,6 +11264,7 @@ var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
11124
11264
  input: payload.value
11125
11265
  });
11126
11266
  payload.issues = [];
11267
+ payload.fallback = true;
11127
11268
  }
11128
11269
  return payload;
11129
11270
  };
@@ -11169,7 +11310,7 @@ function handlePipeResult(left, next, ctx) {
11169
11310
  left.aborted = true;
11170
11311
  return left;
11171
11312
  }
11172
- return next._zod.run({ value: left.value, issues: left.issues }, ctx);
11313
+ return next._zod.run({ value: left.value, issues: left.issues, fallback: left.fallback }, ctx);
11173
11314
  }
11174
11315
  var $ZodCodec = /* @__PURE__ */ $constructor("$ZodCodec", (inst, def) => {
11175
11316
  $ZodType.init(inst, def);
@@ -11221,6 +11362,9 @@ function handleCodecTxResult(left, value, nextSchema, ctx) {
11221
11362
  }
11222
11363
  return nextSchema._zod.run({ value, issues: left.issues }, ctx);
11223
11364
  }
11365
+ var $ZodPreprocess = /* @__PURE__ */ $constructor("$ZodPreprocess", (inst, def) => {
11366
+ $ZodPipe.init(inst, def);
11367
+ });
11224
11368
  var $ZodReadonly = /* @__PURE__ */ $constructor("$ZodReadonly", (inst, def) => {
11225
11369
  $ZodType.init(inst, def);
11226
11370
  defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
@@ -11372,7 +11516,12 @@ var $ZodPromise = /* @__PURE__ */ $constructor("$ZodPromise", (inst, def) => {
11372
11516
  });
11373
11517
  var $ZodLazy = /* @__PURE__ */ $constructor("$ZodLazy", (inst, def) => {
11374
11518
  $ZodType.init(inst, def);
11375
- defineLazy(inst._zod, "innerType", () => def.getter());
11519
+ defineLazy(inst._zod, "innerType", () => {
11520
+ const d = def;
11521
+ if (!d._cachedInner)
11522
+ d._cachedInner = def.getter();
11523
+ return d._cachedInner;
11524
+ });
11376
11525
  defineLazy(inst._zod, "pattern", () => inst._zod.innerType?._zod?.pattern);
11377
11526
  defineLazy(inst._zod, "propValues", () => inst._zod.innerType?._zod?.propValues);
11378
11527
  defineLazy(inst._zod, "optin", () => inst._zod.innerType?._zod?.optin ?? void 0);
@@ -11427,6 +11576,7 @@ __export(locales_exports, {
11427
11576
  cs: () => cs_default,
11428
11577
  da: () => da_default,
11429
11578
  de: () => de_default,
11579
+ el: () => el_default,
11430
11580
  en: () => en_default,
11431
11581
  eo: () => eo_default,
11432
11582
  es: () => es_default,
@@ -11435,6 +11585,7 @@ __export(locales_exports, {
11435
11585
  fr: () => fr_default,
11436
11586
  frCA: () => fr_CA_default,
11437
11587
  he: () => he_default,
11588
+ hr: () => hr_default,
11438
11589
  hu: () => hu_default,
11439
11590
  hy: () => hy_default,
11440
11591
  id: () => id_default,
@@ -11454,6 +11605,7 @@ __export(locales_exports, {
11454
11605
  pl: () => pl_default,
11455
11606
  ps: () => ps_default,
11456
11607
  pt: () => pt_default,
11608
+ ro: () => ro_default,
11457
11609
  ru: () => ru_default,
11458
11610
  sl: () => sl_default,
11459
11611
  sv: () => sv_default,
@@ -12407,8 +12559,118 @@ function de_default() {
12407
12559
  };
12408
12560
  }
12409
12561
 
12410
- // node_modules/zod/v4/locales/en.js
12562
+ // node_modules/zod/v4/locales/el.js
12411
12563
  var error9 = () => {
12564
+ const Sizable = {
12565
+ string: { unit: "\u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
12566
+ file: { unit: "bytes", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
12567
+ array: { unit: "\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
12568
+ set: { unit: "\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
12569
+ map: { unit: "\u03BA\u03B1\u03C4\u03B1\u03C7\u03C9\u03C1\u03AE\u03C3\u03B5\u03B9\u03C2", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" }
12570
+ };
12571
+ function getSizing(origin) {
12572
+ return Sizable[origin] ?? null;
12573
+ }
12574
+ const FormatDictionary = {
12575
+ regex: "\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2",
12576
+ email: "\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 email",
12577
+ url: "URL",
12578
+ emoji: "emoji",
12579
+ uuid: "UUID",
12580
+ uuidv4: "UUIDv4",
12581
+ uuidv6: "UUIDv6",
12582
+ nanoid: "nanoid",
12583
+ guid: "GUID",
12584
+ cuid: "cuid",
12585
+ cuid2: "cuid2",
12586
+ ulid: "ULID",
12587
+ xid: "XID",
12588
+ ksuid: "KSUID",
12589
+ datetime: "ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BA\u03B1\u03B9 \u03CE\u03C1\u03B1",
12590
+ date: "ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",
12591
+ time: "ISO \u03CE\u03C1\u03B1",
12592
+ duration: "ISO \u03B4\u03B9\u03AC\u03C1\u03BA\u03B5\u03B9\u03B1",
12593
+ ipv4: "\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv4",
12594
+ ipv6: "\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv6",
12595
+ mac: "\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 MAC",
12596
+ cidrv4: "\u03B5\u03CD\u03C1\u03BF\u03C2 IPv4",
12597
+ cidrv6: "\u03B5\u03CD\u03C1\u03BF\u03C2 IPv6",
12598
+ base64: "\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64",
12599
+ base64url: "\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64url",
12600
+ json_string: "\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC JSON",
12601
+ e164: "\u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 E.164",
12602
+ jwt: "JWT",
12603
+ template_literal: "\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"
12604
+ };
12605
+ const TypeDictionary = {
12606
+ nan: "NaN"
12607
+ };
12608
+ return (issue3) => {
12609
+ switch (issue3.code) {
12610
+ case "invalid_type": {
12611
+ const expected = TypeDictionary[issue3.expected] ?? issue3.expected;
12612
+ const receivedType = parsedType(issue3.input);
12613
+ const received = TypeDictionary[receivedType] ?? receivedType;
12614
+ if (typeof issue3.expected === "string" && /^[A-Z]/.test(issue3.expected)) {
12615
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD instanceof ${issue3.expected}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${received}`;
12616
+ }
12617
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${expected}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${received}`;
12618
+ }
12619
+ case "invalid_value":
12620
+ if (issue3.values.length === 1)
12621
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${stringifyPrimitive(issue3.values[0])}`;
12622
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD \u03AD\u03BD\u03B1 \u03B1\u03C0\u03CC ${joinValues(issue3.values, "|")}`;
12623
+ case "too_big": {
12624
+ const adj = issue3.inclusive ? "<=" : "<";
12625
+ const sizing = getSizing(issue3.origin);
12626
+ if (sizing)
12627
+ return `\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${issue3.origin ?? "\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${adj}${issue3.maximum.toString()} ${sizing.unit ?? "\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1"}`;
12628
+ return `\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${issue3.origin ?? "\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${adj}${issue3.maximum.toString()}`;
12629
+ }
12630
+ case "too_small": {
12631
+ const adj = issue3.inclusive ? ">=" : ">";
12632
+ const sizing = getSizing(issue3.origin);
12633
+ if (sizing) {
12634
+ return `\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${issue3.origin} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${adj}${issue3.minimum.toString()} ${sizing.unit}`;
12635
+ }
12636
+ return `\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${issue3.origin} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${adj}${issue3.minimum.toString()}`;
12637
+ }
12638
+ case "invalid_format": {
12639
+ const _issue = issue3;
12640
+ if (_issue.format === "starts_with") {
12641
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03BE\u03B5\u03BA\u03B9\u03BD\u03AC \u03BC\u03B5 "${_issue.prefix}"`;
12642
+ }
12643
+ if (_issue.format === "ends_with")
12644
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B5\u03BB\u03B5\u03B9\u03CE\u03BD\u03B5\u03B9 \u03BC\u03B5 "${_issue.suffix}"`;
12645
+ if (_issue.format === "includes")
12646
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C0\u03B5\u03C1\u03B9\u03AD\u03C7\u03B5\u03B9 "${_issue.includes}"`;
12647
+ if (_issue.format === "regex")
12648
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B1\u03B9\u03C1\u03B9\u03AC\u03B6\u03B5\u03B9 \u03BC\u03B5 \u03C4\u03BF \u03BC\u03BF\u03C4\u03AF\u03B2\u03BF ${_issue.pattern}`;
12649
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF: ${FormatDictionary[_issue.format] ?? issue3.format}`;
12650
+ }
12651
+ case "not_multiple_of":
12652
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF\u03C2 \u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03C0\u03BF\u03BB\u03BB\u03B1\u03C0\u03BB\u03AC\u03C3\u03B9\u03BF \u03C4\u03BF\u03C5 ${issue3.divisor}`;
12653
+ case "unrecognized_keys":
12654
+ return `\u0386\u03B3\u03BD\u03C9\u03C3\u03C4${issue3.keys.length > 1 ? "\u03B1" : "\u03BF"} \u03BA\u03BB\u03B5\u03B9\u03B4${issue3.keys.length > 1 ? "\u03B9\u03AC" : "\u03AF"}: ${joinValues(issue3.keys, ", ")}`;
12655
+ case "invalid_key":
12656
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF \u03BA\u03BB\u03B5\u03B9\u03B4\u03AF \u03C3\u03C4\u03BF ${issue3.origin}`;
12657
+ case "invalid_union":
12658
+ return "\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2";
12659
+ case "invalid_element":
12660
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C4\u03B9\u03BC\u03AE \u03C3\u03C4\u03BF ${issue3.origin}`;
12661
+ default:
12662
+ return `\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2`;
12663
+ }
12664
+ };
12665
+ };
12666
+ function el_default() {
12667
+ return {
12668
+ localeError: error9()
12669
+ };
12670
+ }
12671
+
12672
+ // node_modules/zod/v4/locales/en.js
12673
+ var error10 = () => {
12412
12674
  const Sizable = {
12413
12675
  string: { unit: "characters", verb: "to have" },
12414
12676
  file: { unit: "bytes", verb: "to have" },
@@ -12502,6 +12764,10 @@ var error9 = () => {
12502
12764
  case "invalid_key":
12503
12765
  return `Invalid key in ${issue3.origin}`;
12504
12766
  case "invalid_union":
12767
+ if (issue3.options && Array.isArray(issue3.options) && issue3.options.length > 0) {
12768
+ const opts = issue3.options.map((o) => `'${o}'`).join(" | ");
12769
+ return `Invalid discriminator value. Expected ${opts}`;
12770
+ }
12505
12771
  return "Invalid input";
12506
12772
  case "invalid_element":
12507
12773
  return `Invalid value in ${issue3.origin}`;
@@ -12512,12 +12778,12 @@ var error9 = () => {
12512
12778
  };
12513
12779
  function en_default() {
12514
12780
  return {
12515
- localeError: error9()
12781
+ localeError: error10()
12516
12782
  };
12517
12783
  }
12518
12784
 
12519
12785
  // node_modules/zod/v4/locales/eo.js
12520
- var error10 = () => {
12786
+ var error11 = () => {
12521
12787
  const Sizable = {
12522
12788
  string: { unit: "karaktrojn", verb: "havi" },
12523
12789
  file: { unit: "bajtojn", verb: "havi" },
@@ -12622,12 +12888,12 @@ var error10 = () => {
12622
12888
  };
12623
12889
  function eo_default() {
12624
12890
  return {
12625
- localeError: error10()
12891
+ localeError: error11()
12626
12892
  };
12627
12893
  }
12628
12894
 
12629
12895
  // node_modules/zod/v4/locales/es.js
12630
- var error11 = () => {
12896
+ var error12 = () => {
12631
12897
  const Sizable = {
12632
12898
  string: { unit: "caracteres", verb: "tener" },
12633
12899
  file: { unit: "bytes", verb: "tener" },
@@ -12755,12 +13021,12 @@ var error11 = () => {
12755
13021
  };
12756
13022
  function es_default() {
12757
13023
  return {
12758
- localeError: error11()
13024
+ localeError: error12()
12759
13025
  };
12760
13026
  }
12761
13027
 
12762
13028
  // node_modules/zod/v4/locales/fa.js
12763
- var error12 = () => {
13029
+ var error13 = () => {
12764
13030
  const Sizable = {
12765
13031
  string: { unit: "\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
12766
13032
  file: { unit: "\u0628\u0627\u06CC\u062A", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
@@ -12870,12 +13136,12 @@ var error12 = () => {
12870
13136
  };
12871
13137
  function fa_default() {
12872
13138
  return {
12873
- localeError: error12()
13139
+ localeError: error13()
12874
13140
  };
12875
13141
  }
12876
13142
 
12877
13143
  // node_modules/zod/v4/locales/fi.js
12878
- var error13 = () => {
13144
+ var error14 = () => {
12879
13145
  const Sizable = {
12880
13146
  string: { unit: "merkki\xE4", subject: "merkkijonon" },
12881
13147
  file: { unit: "tavua", subject: "tiedoston" },
@@ -12983,12 +13249,12 @@ var error13 = () => {
12983
13249
  };
12984
13250
  function fi_default() {
12985
13251
  return {
12986
- localeError: error13()
13252
+ localeError: error14()
12987
13253
  };
12988
13254
  }
12989
13255
 
12990
13256
  // node_modules/zod/v4/locales/fr.js
12991
- var error14 = () => {
13257
+ var error15 = () => {
12992
13258
  const Sizable = {
12993
13259
  string: { unit: "caract\xE8res", verb: "avoir" },
12994
13260
  file: { unit: "octets", verb: "avoir" },
@@ -13029,9 +13295,27 @@ var error14 = () => {
13029
13295
  template_literal: "entr\xE9e"
13030
13296
  };
13031
13297
  const TypeDictionary = {
13032
- nan: "NaN",
13298
+ string: "cha\xEEne",
13033
13299
  number: "nombre",
13034
- array: "tableau"
13300
+ int: "entier",
13301
+ boolean: "bool\xE9en",
13302
+ bigint: "grand entier",
13303
+ symbol: "symbole",
13304
+ undefined: "ind\xE9fini",
13305
+ null: "null",
13306
+ never: "jamais",
13307
+ void: "vide",
13308
+ date: "date",
13309
+ array: "tableau",
13310
+ object: "objet",
13311
+ tuple: "tuple",
13312
+ record: "enregistrement",
13313
+ map: "carte",
13314
+ set: "ensemble",
13315
+ file: "fichier",
13316
+ nonoptional: "non-optionnel",
13317
+ nan: "NaN",
13318
+ function: "fonction"
13035
13319
  };
13036
13320
  return (issue3) => {
13037
13321
  switch (issue3.code) {
@@ -13052,16 +13336,15 @@ var error14 = () => {
13052
13336
  const adj = issue3.inclusive ? "<=" : "<";
13053
13337
  const sizing = getSizing(issue3.origin);
13054
13338
  if (sizing)
13055
- return `Trop grand : ${issue3.origin ?? "valeur"} doit ${sizing.verb} ${adj}${issue3.maximum.toString()} ${sizing.unit ?? "\xE9l\xE9ment(s)"}`;
13056
- return `Trop grand : ${issue3.origin ?? "valeur"} doit \xEAtre ${adj}${issue3.maximum.toString()}`;
13339
+ return `Trop grand : ${TypeDictionary[issue3.origin] ?? "valeur"} doit ${sizing.verb} ${adj}${issue3.maximum.toString()} ${sizing.unit ?? "\xE9l\xE9ment(s)"}`;
13340
+ return `Trop grand : ${TypeDictionary[issue3.origin] ?? "valeur"} doit \xEAtre ${adj}${issue3.maximum.toString()}`;
13057
13341
  }
13058
13342
  case "too_small": {
13059
13343
  const adj = issue3.inclusive ? ">=" : ">";
13060
13344
  const sizing = getSizing(issue3.origin);
13061
- if (sizing) {
13062
- return `Trop petit : ${issue3.origin} doit ${sizing.verb} ${adj}${issue3.minimum.toString()} ${sizing.unit}`;
13063
- }
13064
- return `Trop petit : ${issue3.origin} doit \xEAtre ${adj}${issue3.minimum.toString()}`;
13345
+ if (sizing)
13346
+ return `Trop petit : ${TypeDictionary[issue3.origin] ?? "valeur"} doit ${sizing.verb} ${adj}${issue3.minimum.toString()} ${sizing.unit}`;
13347
+ return `Trop petit : ${TypeDictionary[issue3.origin] ?? "valeur"} doit \xEAtre ${adj}${issue3.minimum.toString()}`;
13065
13348
  }
13066
13349
  case "invalid_format": {
13067
13350
  const _issue = issue3;
@@ -13092,12 +13375,12 @@ var error14 = () => {
13092
13375
  };
13093
13376
  function fr_default() {
13094
13377
  return {
13095
- localeError: error14()
13378
+ localeError: error15()
13096
13379
  };
13097
13380
  }
13098
13381
 
13099
13382
  // node_modules/zod/v4/locales/fr-CA.js
13100
- var error15 = () => {
13383
+ var error16 = () => {
13101
13384
  const Sizable = {
13102
13385
  string: { unit: "caract\xE8res", verb: "avoir" },
13103
13386
  file: { unit: "octets", verb: "avoir" },
@@ -13200,12 +13483,12 @@ var error15 = () => {
13200
13483
  };
13201
13484
  function fr_CA_default() {
13202
13485
  return {
13203
- localeError: error15()
13486
+ localeError: error16()
13204
13487
  };
13205
13488
  }
13206
13489
 
13207
13490
  // node_modules/zod/v4/locales/he.js
13208
- var error16 = () => {
13491
+ var error17 = () => {
13209
13492
  const TypeNames = {
13210
13493
  string: { label: "\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA", gender: "f" },
13211
13494
  number: { label: "\u05DE\u05E1\u05E4\u05E8", gender: "m" },
@@ -13395,12 +13678,135 @@ var error16 = () => {
13395
13678
  };
13396
13679
  function he_default() {
13397
13680
  return {
13398
- localeError: error16()
13681
+ localeError: error17()
13682
+ };
13683
+ }
13684
+
13685
+ // node_modules/zod/v4/locales/hr.js
13686
+ var error18 = () => {
13687
+ const Sizable = {
13688
+ string: { unit: "znakova", verb: "imati" },
13689
+ file: { unit: "bajtova", verb: "imati" },
13690
+ array: { unit: "stavki", verb: "imati" },
13691
+ set: { unit: "stavki", verb: "imati" }
13692
+ };
13693
+ function getSizing(origin) {
13694
+ return Sizable[origin] ?? null;
13695
+ }
13696
+ const FormatDictionary = {
13697
+ regex: "unos",
13698
+ email: "email adresa",
13699
+ url: "URL",
13700
+ emoji: "emoji",
13701
+ uuid: "UUID",
13702
+ uuidv4: "UUIDv4",
13703
+ uuidv6: "UUIDv6",
13704
+ nanoid: "nanoid",
13705
+ guid: "GUID",
13706
+ cuid: "cuid",
13707
+ cuid2: "cuid2",
13708
+ ulid: "ULID",
13709
+ xid: "XID",
13710
+ ksuid: "KSUID",
13711
+ datetime: "ISO datum i vrijeme",
13712
+ date: "ISO datum",
13713
+ time: "ISO vrijeme",
13714
+ duration: "ISO trajanje",
13715
+ ipv4: "IPv4 adresa",
13716
+ ipv6: "IPv6 adresa",
13717
+ cidrv4: "IPv4 raspon",
13718
+ cidrv6: "IPv6 raspon",
13719
+ base64: "base64 kodirani tekst",
13720
+ base64url: "base64url kodirani tekst",
13721
+ json_string: "JSON tekst",
13722
+ e164: "E.164 broj",
13723
+ jwt: "JWT",
13724
+ template_literal: "unos"
13725
+ };
13726
+ const TypeDictionary = {
13727
+ nan: "NaN",
13728
+ string: "tekst",
13729
+ number: "broj",
13730
+ boolean: "boolean",
13731
+ array: "niz",
13732
+ object: "objekt",
13733
+ set: "skup",
13734
+ file: "datoteka",
13735
+ date: "datum",
13736
+ bigint: "bigint",
13737
+ symbol: "simbol",
13738
+ undefined: "undefined",
13739
+ null: "null",
13740
+ function: "funkcija",
13741
+ map: "mapa"
13742
+ };
13743
+ return (issue3) => {
13744
+ switch (issue3.code) {
13745
+ case "invalid_type": {
13746
+ const expected = TypeDictionary[issue3.expected] ?? issue3.expected;
13747
+ const receivedType = parsedType(issue3.input);
13748
+ const received = TypeDictionary[receivedType] ?? receivedType;
13749
+ if (/^[A-Z]/.test(issue3.expected)) {
13750
+ return `Neispravan unos: o\u010Dekuje se instanceof ${issue3.expected}, a primljeno je ${received}`;
13751
+ }
13752
+ return `Neispravan unos: o\u010Dekuje se ${expected}, a primljeno je ${received}`;
13753
+ }
13754
+ case "invalid_value":
13755
+ if (issue3.values.length === 1)
13756
+ return `Neispravna vrijednost: o\u010Dekivano ${stringifyPrimitive(issue3.values[0])}`;
13757
+ return `Neispravna opcija: o\u010Dekivano jedno od ${joinValues(issue3.values, "|")}`;
13758
+ case "too_big": {
13759
+ const adj = issue3.inclusive ? "<=" : "<";
13760
+ const sizing = getSizing(issue3.origin);
13761
+ const origin = TypeDictionary[issue3.origin] ?? issue3.origin;
13762
+ if (sizing)
13763
+ return `Preveliko: o\u010Dekivano da ${origin ?? "vrijednost"} ima ${adj}${issue3.maximum.toString()} ${sizing.unit ?? "elemenata"}`;
13764
+ return `Preveliko: o\u010Dekivano da ${origin ?? "vrijednost"} bude ${adj}${issue3.maximum.toString()}`;
13765
+ }
13766
+ case "too_small": {
13767
+ const adj = issue3.inclusive ? ">=" : ">";
13768
+ const sizing = getSizing(issue3.origin);
13769
+ const origin = TypeDictionary[issue3.origin] ?? issue3.origin;
13770
+ if (sizing) {
13771
+ return `Premalo: o\u010Dekivano da ${origin} ima ${adj}${issue3.minimum.toString()} ${sizing.unit}`;
13772
+ }
13773
+ return `Premalo: o\u010Dekivano da ${origin} bude ${adj}${issue3.minimum.toString()}`;
13774
+ }
13775
+ case "invalid_format": {
13776
+ const _issue = issue3;
13777
+ if (_issue.format === "starts_with")
13778
+ return `Neispravan tekst: mora zapo\u010Dinjati s "${_issue.prefix}"`;
13779
+ if (_issue.format === "ends_with")
13780
+ return `Neispravan tekst: mora zavr\u0161avati s "${_issue.suffix}"`;
13781
+ if (_issue.format === "includes")
13782
+ return `Neispravan tekst: mora sadr\u017Eavati "${_issue.includes}"`;
13783
+ if (_issue.format === "regex")
13784
+ return `Neispravan tekst: mora odgovarati uzorku ${_issue.pattern}`;
13785
+ return `Neispravna ${FormatDictionary[_issue.format] ?? issue3.format}`;
13786
+ }
13787
+ case "not_multiple_of":
13788
+ return `Neispravan broj: mora biti vi\u0161ekratnik od ${issue3.divisor}`;
13789
+ case "unrecognized_keys":
13790
+ return `Neprepoznat${issue3.keys.length > 1 ? "i klju\u010Devi" : " klju\u010D"}: ${joinValues(issue3.keys, ", ")}`;
13791
+ case "invalid_key":
13792
+ return `Neispravan klju\u010D u ${TypeDictionary[issue3.origin] ?? issue3.origin}`;
13793
+ case "invalid_union":
13794
+ return "Neispravan unos";
13795
+ case "invalid_element":
13796
+ return `Neispravna vrijednost u ${TypeDictionary[issue3.origin] ?? issue3.origin}`;
13797
+ default:
13798
+ return `Neispravan unos`;
13799
+ }
13800
+ };
13801
+ };
13802
+ function hr_default() {
13803
+ return {
13804
+ localeError: error18()
13399
13805
  };
13400
13806
  }
13401
13807
 
13402
13808
  // node_modules/zod/v4/locales/hu.js
13403
- var error17 = () => {
13809
+ var error19 = () => {
13404
13810
  const Sizable = {
13405
13811
  string: { unit: "karakter", verb: "legyen" },
13406
13812
  file: { unit: "byte", verb: "legyen" },
@@ -13504,7 +13910,7 @@ var error17 = () => {
13504
13910
  };
13505
13911
  function hu_default() {
13506
13912
  return {
13507
- localeError: error17()
13913
+ localeError: error19()
13508
13914
  };
13509
13915
  }
13510
13916
 
@@ -13519,7 +13925,7 @@ function withDefiniteArticle(word) {
13519
13925
  const lastChar = word[word.length - 1];
13520
13926
  return word + (vowels.includes(lastChar) ? "\u0576" : "\u0568");
13521
13927
  }
13522
- var error18 = () => {
13928
+ var error20 = () => {
13523
13929
  const Sizable = {
13524
13930
  string: {
13525
13931
  unit: {
@@ -13652,12 +14058,12 @@ var error18 = () => {
13652
14058
  };
13653
14059
  function hy_default() {
13654
14060
  return {
13655
- localeError: error18()
14061
+ localeError: error20()
13656
14062
  };
13657
14063
  }
13658
14064
 
13659
14065
  // node_modules/zod/v4/locales/id.js
13660
- var error19 = () => {
14066
+ var error21 = () => {
13661
14067
  const Sizable = {
13662
14068
  string: { unit: "karakter", verb: "memiliki" },
13663
14069
  file: { unit: "byte", verb: "memiliki" },
@@ -13759,12 +14165,12 @@ var error19 = () => {
13759
14165
  };
13760
14166
  function id_default() {
13761
14167
  return {
13762
- localeError: error19()
14168
+ localeError: error21()
13763
14169
  };
13764
14170
  }
13765
14171
 
13766
14172
  // node_modules/zod/v4/locales/is.js
13767
- var error20 = () => {
14173
+ var error22 = () => {
13768
14174
  const Sizable = {
13769
14175
  string: { unit: "stafi", verb: "a\xF0 hafa" },
13770
14176
  file: { unit: "b\xE6ti", verb: "a\xF0 hafa" },
@@ -13869,12 +14275,12 @@ var error20 = () => {
13869
14275
  };
13870
14276
  function is_default() {
13871
14277
  return {
13872
- localeError: error20()
14278
+ localeError: error22()
13873
14279
  };
13874
14280
  }
13875
14281
 
13876
14282
  // node_modules/zod/v4/locales/it.js
13877
- var error21 = () => {
14283
+ var error23 = () => {
13878
14284
  const Sizable = {
13879
14285
  string: { unit: "caratteri", verb: "avere" },
13880
14286
  file: { unit: "byte", verb: "avere" },
@@ -13959,7 +14365,7 @@ var error21 = () => {
13959
14365
  return `Stringa non valida: deve includere "${_issue.includes}"`;
13960
14366
  if (_issue.format === "regex")
13961
14367
  return `Stringa non valida: deve corrispondere al pattern ${_issue.pattern}`;
13962
- return `Invalid ${FormatDictionary[_issue.format] ?? issue3.format}`;
14368
+ return `Input non valido: ${FormatDictionary[_issue.format] ?? issue3.format}`;
13963
14369
  }
13964
14370
  case "not_multiple_of":
13965
14371
  return `Numero non valido: deve essere un multiplo di ${issue3.divisor}`;
@@ -13978,12 +14384,12 @@ var error21 = () => {
13978
14384
  };
13979
14385
  function it_default() {
13980
14386
  return {
13981
- localeError: error21()
14387
+ localeError: error23()
13982
14388
  };
13983
14389
  }
13984
14390
 
13985
14391
  // node_modules/zod/v4/locales/ja.js
13986
- var error22 = () => {
14392
+ var error24 = () => {
13987
14393
  const Sizable = {
13988
14394
  string: { unit: "\u6587\u5B57", verb: "\u3067\u3042\u308B" },
13989
14395
  file: { unit: "\u30D0\u30A4\u30C8", verb: "\u3067\u3042\u308B" },
@@ -14086,12 +14492,12 @@ var error22 = () => {
14086
14492
  };
14087
14493
  function ja_default() {
14088
14494
  return {
14089
- localeError: error22()
14495
+ localeError: error24()
14090
14496
  };
14091
14497
  }
14092
14498
 
14093
14499
  // node_modules/zod/v4/locales/ka.js
14094
- var error23 = () => {
14500
+ var error25 = () => {
14095
14501
  const Sizable = {
14096
14502
  string: { unit: "\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" },
14097
14503
  file: { unit: "\u10D1\u10D0\u10D8\u10E2\u10D8", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" },
@@ -14124,9 +14530,9 @@ var error23 = () => {
14124
14530
  ipv6: "IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",
14125
14531
  cidrv4: "IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",
14126
14532
  cidrv6: "IPv6 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",
14127
- base64: "base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",
14128
- base64url: "base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",
14129
- json_string: "JSON \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",
14533
+ base64: "base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",
14534
+ base64url: "base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",
14535
+ json_string: "JSON \u10D5\u10D4\u10DA\u10D8",
14130
14536
  e164: "E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",
14131
14537
  jwt: "JWT",
14132
14538
  template_literal: "\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"
@@ -14134,7 +14540,7 @@ var error23 = () => {
14134
14540
  const TypeDictionary = {
14135
14541
  nan: "NaN",
14136
14542
  number: "\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",
14137
- string: "\u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",
14543
+ string: "\u10D5\u10D4\u10DA\u10D8",
14138
14544
  boolean: "\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",
14139
14545
  function: "\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0",
14140
14546
  array: "\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8"
@@ -14172,14 +14578,14 @@ var error23 = () => {
14172
14578
  case "invalid_format": {
14173
14579
  const _issue = issue3;
14174
14580
  if (_issue.format === "starts_with") {
14175
- return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${_issue.prefix}"-\u10D8\u10D7`;
14581
+ return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${_issue.prefix}"-\u10D8\u10D7`;
14176
14582
  }
14177
14583
  if (_issue.format === "ends_with")
14178
- return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${_issue.suffix}"-\u10D8\u10D7`;
14584
+ return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${_issue.suffix}"-\u10D8\u10D7`;
14179
14585
  if (_issue.format === "includes")
14180
- return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${_issue.includes}"-\u10E1`;
14586
+ return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${_issue.includes}"-\u10E1`;
14181
14587
  if (_issue.format === "regex")
14182
- return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D4\u10E1\u10D0\u10D1\u10D0\u10DB\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 \u10E8\u10D0\u10D1\u10DA\u10DD\u10DC\u10E1 ${_issue.pattern}`;
14588
+ return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D4\u10E1\u10D0\u10D1\u10D0\u10DB\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 \u10E8\u10D0\u10D1\u10DA\u10DD\u10DC\u10E1 ${_issue.pattern}`;
14183
14589
  return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${FormatDictionary[_issue.format] ?? issue3.format}`;
14184
14590
  }
14185
14591
  case "not_multiple_of":
@@ -14199,12 +14605,12 @@ var error23 = () => {
14199
14605
  };
14200
14606
  function ka_default() {
14201
14607
  return {
14202
- localeError: error23()
14608
+ localeError: error25()
14203
14609
  };
14204
14610
  }
14205
14611
 
14206
14612
  // node_modules/zod/v4/locales/km.js
14207
- var error24 = () => {
14613
+ var error26 = () => {
14208
14614
  const Sizable = {
14209
14615
  string: { unit: "\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
14210
14616
  file: { unit: "\u1794\u17C3", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
@@ -14310,7 +14716,7 @@ var error24 = () => {
14310
14716
  };
14311
14717
  function km_default() {
14312
14718
  return {
14313
- localeError: error24()
14719
+ localeError: error26()
14314
14720
  };
14315
14721
  }
14316
14722
 
@@ -14320,7 +14726,7 @@ function kh_default() {
14320
14726
  }
14321
14727
 
14322
14728
  // node_modules/zod/v4/locales/ko.js
14323
- var error25 = () => {
14729
+ var error27 = () => {
14324
14730
  const Sizable = {
14325
14731
  string: { unit: "\uBB38\uC790", verb: "to have" },
14326
14732
  file: { unit: "\uBC14\uC774\uD2B8", verb: "to have" },
@@ -14427,7 +14833,7 @@ var error25 = () => {
14427
14833
  };
14428
14834
  function ko_default() {
14429
14835
  return {
14430
- localeError: error25()
14836
+ localeError: error27()
14431
14837
  };
14432
14838
  }
14433
14839
 
@@ -14445,7 +14851,7 @@ function getUnitTypeFromNumber(number7) {
14445
14851
  return "one";
14446
14852
  return "few";
14447
14853
  }
14448
- var error26 = () => {
14854
+ var error28 = () => {
14449
14855
  const Sizable = {
14450
14856
  string: {
14451
14857
  unit: {
@@ -14631,12 +15037,12 @@ var error26 = () => {
14631
15037
  };
14632
15038
  function lt_default() {
14633
15039
  return {
14634
- localeError: error26()
15040
+ localeError: error28()
14635
15041
  };
14636
15042
  }
14637
15043
 
14638
15044
  // node_modules/zod/v4/locales/mk.js
14639
- var error27 = () => {
15045
+ var error29 = () => {
14640
15046
  const Sizable = {
14641
15047
  string: { unit: "\u0437\u043D\u0430\u0446\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
14642
15048
  file: { unit: "\u0431\u0430\u0458\u0442\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
@@ -14741,12 +15147,12 @@ var error27 = () => {
14741
15147
  };
14742
15148
  function mk_default() {
14743
15149
  return {
14744
- localeError: error27()
15150
+ localeError: error29()
14745
15151
  };
14746
15152
  }
14747
15153
 
14748
15154
  // node_modules/zod/v4/locales/ms.js
14749
- var error28 = () => {
15155
+ var error30 = () => {
14750
15156
  const Sizable = {
14751
15157
  string: { unit: "aksara", verb: "mempunyai" },
14752
15158
  file: { unit: "bait", verb: "mempunyai" },
@@ -14849,12 +15255,12 @@ var error28 = () => {
14849
15255
  };
14850
15256
  function ms_default() {
14851
15257
  return {
14852
- localeError: error28()
15258
+ localeError: error30()
14853
15259
  };
14854
15260
  }
14855
15261
 
14856
15262
  // node_modules/zod/v4/locales/nl.js
14857
- var error29 = () => {
15263
+ var error31 = () => {
14858
15264
  const Sizable = {
14859
15265
  string: { unit: "tekens", verb: "heeft" },
14860
15266
  file: { unit: "bytes", verb: "heeft" },
@@ -14960,12 +15366,12 @@ var error29 = () => {
14960
15366
  };
14961
15367
  function nl_default() {
14962
15368
  return {
14963
- localeError: error29()
15369
+ localeError: error31()
14964
15370
  };
14965
15371
  }
14966
15372
 
14967
15373
  // node_modules/zod/v4/locales/no.js
14968
- var error30 = () => {
15374
+ var error32 = () => {
14969
15375
  const Sizable = {
14970
15376
  string: { unit: "tegn", verb: "\xE5 ha" },
14971
15377
  file: { unit: "bytes", verb: "\xE5 ha" },
@@ -15069,12 +15475,12 @@ var error30 = () => {
15069
15475
  };
15070
15476
  function no_default() {
15071
15477
  return {
15072
- localeError: error30()
15478
+ localeError: error32()
15073
15479
  };
15074
15480
  }
15075
15481
 
15076
15482
  // node_modules/zod/v4/locales/ota.js
15077
- var error31 = () => {
15483
+ var error33 = () => {
15078
15484
  const Sizable = {
15079
15485
  string: { unit: "harf", verb: "olmal\u0131d\u0131r" },
15080
15486
  file: { unit: "bayt", verb: "olmal\u0131d\u0131r" },
@@ -15179,12 +15585,12 @@ var error31 = () => {
15179
15585
  };
15180
15586
  function ota_default() {
15181
15587
  return {
15182
- localeError: error31()
15588
+ localeError: error33()
15183
15589
  };
15184
15590
  }
15185
15591
 
15186
15592
  // node_modules/zod/v4/locales/ps.js
15187
- var error32 = () => {
15593
+ var error34 = () => {
15188
15594
  const Sizable = {
15189
15595
  string: { unit: "\u062A\u0648\u06A9\u064A", verb: "\u0648\u0644\u0631\u064A" },
15190
15596
  file: { unit: "\u0628\u0627\u06CC\u067C\u0633", verb: "\u0648\u0644\u0631\u064A" },
@@ -15294,12 +15700,12 @@ var error32 = () => {
15294
15700
  };
15295
15701
  function ps_default() {
15296
15702
  return {
15297
- localeError: error32()
15703
+ localeError: error34()
15298
15704
  };
15299
15705
  }
15300
15706
 
15301
15707
  // node_modules/zod/v4/locales/pl.js
15302
- var error33 = () => {
15708
+ var error35 = () => {
15303
15709
  const Sizable = {
15304
15710
  string: { unit: "znak\xF3w", verb: "mie\u0107" },
15305
15711
  file: { unit: "bajt\xF3w", verb: "mie\u0107" },
@@ -15404,12 +15810,12 @@ var error33 = () => {
15404
15810
  };
15405
15811
  function pl_default() {
15406
15812
  return {
15407
- localeError: error33()
15813
+ localeError: error35()
15408
15814
  };
15409
15815
  }
15410
15816
 
15411
15817
  // node_modules/zod/v4/locales/pt.js
15412
- var error34 = () => {
15818
+ var error36 = () => {
15413
15819
  const Sizable = {
15414
15820
  string: { unit: "caracteres", verb: "ter" },
15415
15821
  file: { unit: "bytes", verb: "ter" },
@@ -15513,7 +15919,127 @@ var error34 = () => {
15513
15919
  };
15514
15920
  function pt_default() {
15515
15921
  return {
15516
- localeError: error34()
15922
+ localeError: error36()
15923
+ };
15924
+ }
15925
+
15926
+ // node_modules/zod/v4/locales/ro.js
15927
+ var error37 = () => {
15928
+ const Sizable = {
15929
+ string: { unit: "caractere", verb: "s\u0103 aib\u0103" },
15930
+ file: { unit: "octe\u021Bi", verb: "s\u0103 aib\u0103" },
15931
+ array: { unit: "elemente", verb: "s\u0103 aib\u0103" },
15932
+ set: { unit: "elemente", verb: "s\u0103 aib\u0103" },
15933
+ map: { unit: "intr\u0103ri", verb: "s\u0103 aib\u0103" }
15934
+ };
15935
+ function getSizing(origin) {
15936
+ return Sizable[origin] ?? null;
15937
+ }
15938
+ const FormatDictionary = {
15939
+ regex: "intrare",
15940
+ email: "adres\u0103 de email",
15941
+ url: "URL",
15942
+ emoji: "emoji",
15943
+ uuid: "UUID",
15944
+ uuidv4: "UUIDv4",
15945
+ uuidv6: "UUIDv6",
15946
+ nanoid: "nanoid",
15947
+ guid: "GUID",
15948
+ cuid: "cuid",
15949
+ cuid2: "cuid2",
15950
+ ulid: "ULID",
15951
+ xid: "XID",
15952
+ ksuid: "KSUID",
15953
+ datetime: "dat\u0103 \u0219i or\u0103 ISO",
15954
+ date: "dat\u0103 ISO",
15955
+ time: "or\u0103 ISO",
15956
+ duration: "durat\u0103 ISO",
15957
+ ipv4: "adres\u0103 IPv4",
15958
+ ipv6: "adres\u0103 IPv6",
15959
+ mac: "adres\u0103 MAC",
15960
+ cidrv4: "interval IPv4",
15961
+ cidrv6: "interval IPv6",
15962
+ base64: "\u0219ir codat base64",
15963
+ base64url: "\u0219ir codat base64url",
15964
+ json_string: "\u0219ir JSON",
15965
+ e164: "num\u0103r E.164",
15966
+ jwt: "JWT",
15967
+ template_literal: "intrare"
15968
+ };
15969
+ const TypeDictionary = {
15970
+ nan: "NaN",
15971
+ string: "\u0219ir",
15972
+ number: "num\u0103r",
15973
+ boolean: "boolean",
15974
+ function: "func\u021Bie",
15975
+ array: "matrice",
15976
+ object: "obiect",
15977
+ undefined: "nedefinit",
15978
+ symbol: "simbol",
15979
+ bigint: "num\u0103r mare",
15980
+ void: "void",
15981
+ never: "never",
15982
+ map: "hart\u0103",
15983
+ set: "set"
15984
+ };
15985
+ return (issue3) => {
15986
+ switch (issue3.code) {
15987
+ case "invalid_type": {
15988
+ const expected = TypeDictionary[issue3.expected] ?? issue3.expected;
15989
+ const receivedType = parsedType(issue3.input);
15990
+ const received = TypeDictionary[receivedType] ?? receivedType;
15991
+ return `Intrare invalid\u0103: a\u0219teptat ${expected}, primit ${received}`;
15992
+ }
15993
+ case "invalid_value":
15994
+ if (issue3.values.length === 1)
15995
+ return `Intrare invalid\u0103: a\u0219teptat ${stringifyPrimitive(issue3.values[0])}`;
15996
+ return `Op\u021Biune invalid\u0103: a\u0219teptat una dintre ${joinValues(issue3.values, "|")}`;
15997
+ case "too_big": {
15998
+ const adj = issue3.inclusive ? "<=" : "<";
15999
+ const sizing = getSizing(issue3.origin);
16000
+ if (sizing)
16001
+ return `Prea mare: a\u0219teptat ca ${issue3.origin ?? "valoarea"} ${sizing.verb} ${adj}${issue3.maximum.toString()} ${sizing.unit ?? "elemente"}`;
16002
+ return `Prea mare: a\u0219teptat ca ${issue3.origin ?? "valoarea"} s\u0103 fie ${adj}${issue3.maximum.toString()}`;
16003
+ }
16004
+ case "too_small": {
16005
+ const adj = issue3.inclusive ? ">=" : ">";
16006
+ const sizing = getSizing(issue3.origin);
16007
+ if (sizing) {
16008
+ return `Prea mic: a\u0219teptat ca ${issue3.origin} ${sizing.verb} ${adj}${issue3.minimum.toString()} ${sizing.unit}`;
16009
+ }
16010
+ return `Prea mic: a\u0219teptat ca ${issue3.origin} s\u0103 fie ${adj}${issue3.minimum.toString()}`;
16011
+ }
16012
+ case "invalid_format": {
16013
+ const _issue = issue3;
16014
+ if (_issue.format === "starts_with") {
16015
+ return `\u0218ir invalid: trebuie s\u0103 \xEEnceap\u0103 cu "${_issue.prefix}"`;
16016
+ }
16017
+ if (_issue.format === "ends_with")
16018
+ return `\u0218ir invalid: trebuie s\u0103 se termine cu "${_issue.suffix}"`;
16019
+ if (_issue.format === "includes")
16020
+ return `\u0218ir invalid: trebuie s\u0103 includ\u0103 "${_issue.includes}"`;
16021
+ if (_issue.format === "regex")
16022
+ return `\u0218ir invalid: trebuie s\u0103 se potriveasc\u0103 cu modelul ${_issue.pattern}`;
16023
+ return `Format invalid: ${FormatDictionary[_issue.format] ?? issue3.format}`;
16024
+ }
16025
+ case "not_multiple_of":
16026
+ return `Num\u0103r invalid: trebuie s\u0103 fie multiplu de ${issue3.divisor}`;
16027
+ case "unrecognized_keys":
16028
+ return `Chei nerecunoscute: ${joinValues(issue3.keys, ", ")}`;
16029
+ case "invalid_key":
16030
+ return `Cheie invalid\u0103 \xEEn ${issue3.origin}`;
16031
+ case "invalid_union":
16032
+ return "Intrare invalid\u0103";
16033
+ case "invalid_element":
16034
+ return `Valoare invalid\u0103 \xEEn ${issue3.origin}`;
16035
+ default:
16036
+ return `Intrare invalid\u0103`;
16037
+ }
16038
+ };
16039
+ };
16040
+ function ro_default() {
16041
+ return {
16042
+ localeError: error37()
15517
16043
  };
15518
16044
  }
15519
16045
 
@@ -15533,7 +16059,7 @@ function getRussianPlural(count, one, few, many) {
15533
16059
  }
15534
16060
  return many;
15535
16061
  }
15536
- var error35 = () => {
16062
+ var error38 = () => {
15537
16063
  const Sizable = {
15538
16064
  string: {
15539
16065
  unit: {
@@ -15670,12 +16196,12 @@ var error35 = () => {
15670
16196
  };
15671
16197
  function ru_default() {
15672
16198
  return {
15673
- localeError: error35()
16199
+ localeError: error38()
15674
16200
  };
15675
16201
  }
15676
16202
 
15677
16203
  // node_modules/zod/v4/locales/sl.js
15678
- var error36 = () => {
16204
+ var error39 = () => {
15679
16205
  const Sizable = {
15680
16206
  string: { unit: "znakov", verb: "imeti" },
15681
16207
  file: { unit: "bajtov", verb: "imeti" },
@@ -15780,12 +16306,12 @@ var error36 = () => {
15780
16306
  };
15781
16307
  function sl_default() {
15782
16308
  return {
15783
- localeError: error36()
16309
+ localeError: error39()
15784
16310
  };
15785
16311
  }
15786
16312
 
15787
16313
  // node_modules/zod/v4/locales/sv.js
15788
- var error37 = () => {
16314
+ var error40 = () => {
15789
16315
  const Sizable = {
15790
16316
  string: { unit: "tecken", verb: "att ha" },
15791
16317
  file: { unit: "bytes", verb: "att ha" },
@@ -15891,12 +16417,12 @@ var error37 = () => {
15891
16417
  };
15892
16418
  function sv_default() {
15893
16419
  return {
15894
- localeError: error37()
16420
+ localeError: error40()
15895
16421
  };
15896
16422
  }
15897
16423
 
15898
16424
  // node_modules/zod/v4/locales/ta.js
15899
- var error38 = () => {
16425
+ var error41 = () => {
15900
16426
  const Sizable = {
15901
16427
  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" },
15902
16428
  file: { unit: "\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD", verb: "\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD" },
@@ -16002,12 +16528,12 @@ var error38 = () => {
16002
16528
  };
16003
16529
  function ta_default() {
16004
16530
  return {
16005
- localeError: error38()
16531
+ localeError: error41()
16006
16532
  };
16007
16533
  }
16008
16534
 
16009
16535
  // node_modules/zod/v4/locales/th.js
16010
- var error39 = () => {
16536
+ var error42 = () => {
16011
16537
  const Sizable = {
16012
16538
  string: { unit: "\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
16013
16539
  file: { unit: "\u0E44\u0E1A\u0E15\u0E4C", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
@@ -16113,12 +16639,12 @@ var error39 = () => {
16113
16639
  };
16114
16640
  function th_default() {
16115
16641
  return {
16116
- localeError: error39()
16642
+ localeError: error42()
16117
16643
  };
16118
16644
  }
16119
16645
 
16120
16646
  // node_modules/zod/v4/locales/tr.js
16121
- var error40 = () => {
16647
+ var error43 = () => {
16122
16648
  const Sizable = {
16123
16649
  string: { unit: "karakter", verb: "olmal\u0131" },
16124
16650
  file: { unit: "bayt", verb: "olmal\u0131" },
@@ -16219,12 +16745,12 @@ var error40 = () => {
16219
16745
  };
16220
16746
  function tr_default() {
16221
16747
  return {
16222
- localeError: error40()
16748
+ localeError: error43()
16223
16749
  };
16224
16750
  }
16225
16751
 
16226
16752
  // node_modules/zod/v4/locales/uk.js
16227
- var error41 = () => {
16753
+ var error44 = () => {
16228
16754
  const Sizable = {
16229
16755
  string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
16230
16756
  file: { unit: "\u0431\u0430\u0439\u0442\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
@@ -16328,7 +16854,7 @@ var error41 = () => {
16328
16854
  };
16329
16855
  function uk_default() {
16330
16856
  return {
16331
- localeError: error41()
16857
+ localeError: error44()
16332
16858
  };
16333
16859
  }
16334
16860
 
@@ -16338,7 +16864,7 @@ function ua_default() {
16338
16864
  }
16339
16865
 
16340
16866
  // node_modules/zod/v4/locales/ur.js
16341
- var error42 = () => {
16867
+ var error45 = () => {
16342
16868
  const Sizable = {
16343
16869
  string: { unit: "\u062D\u0631\u0648\u0641", verb: "\u06C1\u0648\u0646\u0627" },
16344
16870
  file: { unit: "\u0628\u0627\u0626\u0679\u0633", verb: "\u06C1\u0648\u0646\u0627" },
@@ -16444,17 +16970,18 @@ var error42 = () => {
16444
16970
  };
16445
16971
  function ur_default() {
16446
16972
  return {
16447
- localeError: error42()
16973
+ localeError: error45()
16448
16974
  };
16449
16975
  }
16450
16976
 
16451
16977
  // node_modules/zod/v4/locales/uz.js
16452
- var error43 = () => {
16978
+ var error46 = () => {
16453
16979
  const Sizable = {
16454
16980
  string: { unit: "belgi", verb: "bo\u2018lishi kerak" },
16455
16981
  file: { unit: "bayt", verb: "bo\u2018lishi kerak" },
16456
16982
  array: { unit: "element", verb: "bo\u2018lishi kerak" },
16457
- set: { unit: "element", verb: "bo\u2018lishi kerak" }
16983
+ set: { unit: "element", verb: "bo\u2018lishi kerak" },
16984
+ map: { unit: "yozuv", verb: "bo\u2018lishi kerak" }
16458
16985
  };
16459
16986
  function getSizing(origin) {
16460
16987
  return Sizable[origin] ?? null;
@@ -16554,12 +17081,12 @@ var error43 = () => {
16554
17081
  };
16555
17082
  function uz_default() {
16556
17083
  return {
16557
- localeError: error43()
17084
+ localeError: error46()
16558
17085
  };
16559
17086
  }
16560
17087
 
16561
17088
  // node_modules/zod/v4/locales/vi.js
16562
- var error44 = () => {
17089
+ var error47 = () => {
16563
17090
  const Sizable = {
16564
17091
  string: { unit: "k\xFD t\u1EF1", verb: "c\xF3" },
16565
17092
  file: { unit: "byte", verb: "c\xF3" },
@@ -16663,12 +17190,12 @@ var error44 = () => {
16663
17190
  };
16664
17191
  function vi_default() {
16665
17192
  return {
16666
- localeError: error44()
17193
+ localeError: error47()
16667
17194
  };
16668
17195
  }
16669
17196
 
16670
17197
  // node_modules/zod/v4/locales/zh-CN.js
16671
- var error45 = () => {
17198
+ var error48 = () => {
16672
17199
  const Sizable = {
16673
17200
  string: { unit: "\u5B57\u7B26", verb: "\u5305\u542B" },
16674
17201
  file: { unit: "\u5B57\u8282", verb: "\u5305\u542B" },
@@ -16773,12 +17300,12 @@ var error45 = () => {
16773
17300
  };
16774
17301
  function zh_CN_default() {
16775
17302
  return {
16776
- localeError: error45()
17303
+ localeError: error48()
16777
17304
  };
16778
17305
  }
16779
17306
 
16780
17307
  // node_modules/zod/v4/locales/zh-TW.js
16781
- var error46 = () => {
17308
+ var error49 = () => {
16782
17309
  const Sizable = {
16783
17310
  string: { unit: "\u5B57\u5143", verb: "\u64C1\u6709" },
16784
17311
  file: { unit: "\u4F4D\u5143\u7D44", verb: "\u64C1\u6709" },
@@ -16881,12 +17408,12 @@ var error46 = () => {
16881
17408
  };
16882
17409
  function zh_TW_default() {
16883
17410
  return {
16884
- localeError: error46()
17411
+ localeError: error49()
16885
17412
  };
16886
17413
  }
16887
17414
 
16888
17415
  // node_modules/zod/v4/locales/yo.js
16889
- var error47 = () => {
17416
+ var error50 = () => {
16890
17417
  const Sizable = {
16891
17418
  string: { unit: "\xE0mi", verb: "n\xED" },
16892
17419
  file: { unit: "bytes", verb: "n\xED" },
@@ -16989,12 +17516,12 @@ var error47 = () => {
16989
17516
  };
16990
17517
  function yo_default() {
16991
17518
  return {
16992
- localeError: error47()
17519
+ localeError: error50()
16993
17520
  };
16994
17521
  }
16995
17522
 
16996
17523
  // node_modules/zod/v4/core/registries.js
16997
- var _a;
17524
+ var _a2;
16998
17525
  var $output = Symbol("ZodOutput");
16999
17526
  var $input = Symbol("ZodInput");
17000
17527
  var $ZodRegistry = class {
@@ -17040,7 +17567,7 @@ var $ZodRegistry = class {
17040
17567
  function registry() {
17041
17568
  return new $ZodRegistry();
17042
17569
  }
17043
- (_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());
17570
+ (_a2 = globalThis).__zod_globalRegistry ?? (_a2.__zod_globalRegistry = registry());
17044
17571
  var globalRegistry = globalThis.__zod_globalRegistry;
17045
17572
 
17046
17573
  // node_modules/zod/v4/core/api.js
@@ -17958,7 +18485,7 @@ function _refine(Class3, fn, _params) {
17958
18485
  return schema;
17959
18486
  }
17960
18487
  // @__NO_SIDE_EFFECTS__
17961
- function _superRefine(fn) {
18488
+ function _superRefine(fn, params) {
17962
18489
  const ch = /* @__PURE__ */ _check((payload) => {
17963
18490
  payload.addIssue = (issue3) => {
17964
18491
  if (typeof issue3 === "string") {
@@ -17975,7 +18502,7 @@ function _superRefine(fn) {
17975
18502
  }
17976
18503
  };
17977
18504
  return fn(payload.value, payload);
17978
- });
18505
+ }, params);
17979
18506
  return ch;
17980
18507
  }
17981
18508
  // @__NO_SIDE_EFFECTS__
@@ -18105,7 +18632,7 @@ function initializeContext(params) {
18105
18632
  };
18106
18633
  }
18107
18634
  function process2(schema, ctx, _params = { path: [], schemaPath: [] }) {
18108
- var _a2;
18635
+ var _a3;
18109
18636
  const def = schema._zod.def;
18110
18637
  const seen = ctx.seen.get(schema);
18111
18638
  if (seen) {
@@ -18152,8 +18679,8 @@ function process2(schema, ctx, _params = { path: [], schemaPath: [] }) {
18152
18679
  delete result.schema.examples;
18153
18680
  delete result.schema.default;
18154
18681
  }
18155
- if (ctx.io === "input" && result.schema._prefault)
18156
- (_a2 = result.schema).default ?? (_a2.default = result.schema._prefault);
18682
+ if (ctx.io === "input" && "_prefault" in result.schema)
18683
+ (_a3 = result.schema).default ?? (_a3.default = result.schema._prefault);
18157
18684
  delete result.schema._prefault;
18158
18685
  const _result = ctx.seen.get(schema);
18159
18686
  return _result.schema;
@@ -18334,10 +18861,15 @@ function finalize(ctx, schema) {
18334
18861
  result.$id = ctx.external.uri(id);
18335
18862
  }
18336
18863
  Object.assign(result, root.def ?? root.schema);
18864
+ const rootMetaId = ctx.metadataRegistry.get(schema)?.id;
18865
+ if (rootMetaId !== void 0 && result.id === rootMetaId)
18866
+ delete result.id;
18337
18867
  const defs = ctx.external?.defs ?? {};
18338
18868
  for (const entry of ctx.seen.entries()) {
18339
18869
  const seen = entry[1];
18340
18870
  if (seen.def && seen.defId) {
18871
+ if (seen.def.id === seen.defId)
18872
+ delete seen.def.id;
18341
18873
  defs[seen.defId] = seen.def;
18342
18874
  }
18343
18875
  }
@@ -18393,6 +18925,8 @@ function isTransforming(_schema, _ctx) {
18393
18925
  return isTransforming(def.keyType, ctx) || isTransforming(def.valueType, ctx);
18394
18926
  }
18395
18927
  if (def.type === "pipe") {
18928
+ if (_schema._zod.traits.has("$ZodCodec"))
18929
+ return true;
18396
18930
  return isTransforming(def.in, ctx) || isTransforming(def.out, ctx);
18397
18931
  }
18398
18932
  if (def.type === "object") {
@@ -18482,39 +19016,28 @@ var numberProcessor = (schema, ctx, _json, _params) => {
18482
19016
  json3.type = "integer";
18483
19017
  else
18484
19018
  json3.type = "number";
18485
- if (typeof exclusiveMinimum === "number") {
18486
- if (ctx.target === "draft-04" || ctx.target === "openapi-3.0") {
19019
+ const exMin = typeof exclusiveMinimum === "number" && exclusiveMinimum >= (minimum ?? Number.NEGATIVE_INFINITY);
19020
+ const exMax = typeof exclusiveMaximum === "number" && exclusiveMaximum <= (maximum ?? Number.POSITIVE_INFINITY);
19021
+ const legacy = ctx.target === "draft-04" || ctx.target === "openapi-3.0";
19022
+ if (exMin) {
19023
+ if (legacy) {
18487
19024
  json3.minimum = exclusiveMinimum;
18488
19025
  json3.exclusiveMinimum = true;
18489
19026
  } else {
18490
19027
  json3.exclusiveMinimum = exclusiveMinimum;
18491
19028
  }
18492
- }
18493
- if (typeof minimum === "number") {
19029
+ } else if (typeof minimum === "number") {
18494
19030
  json3.minimum = minimum;
18495
- if (typeof exclusiveMinimum === "number" && ctx.target !== "draft-04") {
18496
- if (exclusiveMinimum >= minimum)
18497
- delete json3.minimum;
18498
- else
18499
- delete json3.exclusiveMinimum;
18500
- }
18501
19031
  }
18502
- if (typeof exclusiveMaximum === "number") {
18503
- if (ctx.target === "draft-04" || ctx.target === "openapi-3.0") {
19032
+ if (exMax) {
19033
+ if (legacy) {
18504
19034
  json3.maximum = exclusiveMaximum;
18505
19035
  json3.exclusiveMaximum = true;
18506
19036
  } else {
18507
19037
  json3.exclusiveMaximum = exclusiveMaximum;
18508
19038
  }
18509
- }
18510
- if (typeof maximum === "number") {
19039
+ } else if (typeof maximum === "number") {
18511
19040
  json3.maximum = maximum;
18512
- if (typeof exclusiveMaximum === "number" && ctx.target !== "draft-04") {
18513
- if (exclusiveMaximum <= maximum)
18514
- delete json3.maximum;
18515
- else
18516
- delete json3.exclusiveMaximum;
18517
- }
18518
19041
  }
18519
19042
  if (typeof multipleOf === "number")
18520
19043
  json3.multipleOf = multipleOf;
@@ -18686,7 +19209,10 @@ var arrayProcessor = (schema, ctx, _json, params) => {
18686
19209
  if (typeof maximum === "number")
18687
19210
  json3.maxItems = maximum;
18688
19211
  json3.type = "array";
18689
- json3.items = process2(def.element, ctx, { ...params, path: [...params.path, "items"] });
19212
+ json3.items = process2(def.element, ctx, {
19213
+ ...params,
19214
+ path: [...params.path, "items"]
19215
+ });
18690
19216
  };
18691
19217
  var objectProcessor = (schema, ctx, _json, params) => {
18692
19218
  const json3 = _json;
@@ -18879,7 +19405,8 @@ var catchProcessor = (schema, ctx, json3, params) => {
18879
19405
  };
18880
19406
  var pipeProcessor = (schema, ctx, _json, params) => {
18881
19407
  const def = schema._zod.def;
18882
- const innerType = ctx.io === "input" ? def.in._zod.def.type === "transform" ? def.out : def.in : def.out;
19408
+ const inIsTransform = def.in._zod.traits.has("$ZodTransform");
19409
+ const innerType = ctx.io === "input" ? inIsTransform ? def.out : def.in : def.out;
18883
19410
  process2(innerType, ctx, params);
18884
19411
  const seen = ctx.seen.get(schema);
18885
19412
  seen.ref = innerType;
@@ -19113,6 +19640,7 @@ __export(schemas_exports2, {
19113
19640
  ZodOptional: () => ZodOptional,
19114
19641
  ZodPipe: () => ZodPipe,
19115
19642
  ZodPrefault: () => ZodPrefault,
19643
+ ZodPreprocess: () => ZodPreprocess,
19116
19644
  ZodPromise: () => ZodPromise,
19117
19645
  ZodReadonly: () => ZodReadonly,
19118
19646
  ZodRecord: () => ZodRecord,
@@ -19173,6 +19701,7 @@ __export(schemas_exports2, {
19173
19701
  int32: () => int32,
19174
19702
  int64: () => int64,
19175
19703
  intersection: () => intersection,
19704
+ invertCodec: () => invertCodec,
19176
19705
  ipv4: () => ipv42,
19177
19706
  ipv6: () => ipv62,
19178
19707
  json: () => json,
@@ -19342,8 +19871,8 @@ var initializer2 = (inst, issues) => {
19342
19871
  }
19343
19872
  });
19344
19873
  };
19345
- var ZodError = $constructor("ZodError", initializer2);
19346
- var ZodRealError = $constructor("ZodError", initializer2, {
19874
+ var ZodError = /* @__PURE__ */ $constructor("ZodError", initializer2);
19875
+ var ZodRealError = /* @__PURE__ */ $constructor("ZodError", initializer2, {
19347
19876
  Parent: Error
19348
19877
  });
19349
19878
 
@@ -19362,6 +19891,43 @@ var safeEncodeAsync2 = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
19362
19891
  var safeDecodeAsync2 = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
19363
19892
 
19364
19893
  // node_modules/zod/v4/classic/schemas.js
19894
+ var _installedGroups = /* @__PURE__ */ new WeakMap();
19895
+ function _installLazyMethods(inst, group, methods) {
19896
+ const proto = Object.getPrototypeOf(inst);
19897
+ let installed = _installedGroups.get(proto);
19898
+ if (!installed) {
19899
+ installed = /* @__PURE__ */ new Set();
19900
+ _installedGroups.set(proto, installed);
19901
+ }
19902
+ if (installed.has(group))
19903
+ return;
19904
+ installed.add(group);
19905
+ for (const key in methods) {
19906
+ const fn = methods[key];
19907
+ Object.defineProperty(proto, key, {
19908
+ configurable: true,
19909
+ enumerable: false,
19910
+ get() {
19911
+ const bound = fn.bind(this);
19912
+ Object.defineProperty(this, key, {
19913
+ configurable: true,
19914
+ writable: true,
19915
+ enumerable: true,
19916
+ value: bound
19917
+ });
19918
+ return bound;
19919
+ },
19920
+ set(v) {
19921
+ Object.defineProperty(this, key, {
19922
+ configurable: true,
19923
+ writable: true,
19924
+ enumerable: true,
19925
+ value: v
19926
+ });
19927
+ }
19928
+ });
19929
+ }
19930
+ }
19365
19931
  var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
19366
19932
  $ZodType.init(inst, def);
19367
19933
  Object.assign(inst["~standard"], {
@@ -19374,23 +19940,6 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
19374
19940
  inst.def = def;
19375
19941
  inst.type = def.type;
19376
19942
  Object.defineProperty(inst, "_def", { value: def });
19377
- inst.check = (...checks) => {
19378
- return inst.clone(util_exports.mergeDefs(def, {
19379
- checks: [
19380
- ...def.checks ?? [],
19381
- ...checks.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch)
19382
- ]
19383
- }), {
19384
- parent: true
19385
- });
19386
- };
19387
- inst.with = inst.check;
19388
- inst.clone = (def2, params) => clone(inst, def2, params);
19389
- inst.brand = () => inst;
19390
- inst.register = (reg, meta3) => {
19391
- reg.add(inst, meta3);
19392
- return inst;
19393
- };
19394
19943
  inst.parse = (data, params) => parse2(inst, data, params, { callee: inst.parse });
19395
19944
  inst.safeParse = (data, params) => safeParse2(inst, data, params);
19396
19945
  inst.parseAsync = async (data, params) => parseAsync2(inst, data, params, { callee: inst.parseAsync });
@@ -19404,45 +19953,108 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
19404
19953
  inst.safeDecode = (data, params) => safeDecode2(inst, data, params);
19405
19954
  inst.safeEncodeAsync = async (data, params) => safeEncodeAsync2(inst, data, params);
19406
19955
  inst.safeDecodeAsync = async (data, params) => safeDecodeAsync2(inst, data, params);
19407
- inst.refine = (check3, params) => inst.check(refine(check3, params));
19408
- inst.superRefine = (refinement) => inst.check(superRefine(refinement));
19409
- inst.overwrite = (fn) => inst.check(_overwrite(fn));
19410
- inst.optional = () => optional(inst);
19411
- inst.exactOptional = () => exactOptional(inst);
19412
- inst.nullable = () => nullable(inst);
19413
- inst.nullish = () => optional(nullable(inst));
19414
- inst.nonoptional = (params) => nonoptional(inst, params);
19415
- inst.array = () => array(inst);
19416
- inst.or = (arg) => union([inst, arg]);
19417
- inst.and = (arg) => intersection(inst, arg);
19418
- inst.transform = (tx) => pipe(inst, transform(tx));
19419
- inst.default = (def2) => _default2(inst, def2);
19420
- inst.prefault = (def2) => prefault(inst, def2);
19421
- inst.catch = (params) => _catch2(inst, params);
19422
- inst.pipe = (target) => pipe(inst, target);
19423
- inst.readonly = () => readonly(inst);
19424
- inst.describe = (description) => {
19425
- const cl = inst.clone();
19426
- globalRegistry.add(cl, { description });
19427
- return cl;
19428
- };
19956
+ _installLazyMethods(inst, "ZodType", {
19957
+ check(...chks) {
19958
+ const def2 = this.def;
19959
+ return this.clone(util_exports.mergeDefs(def2, {
19960
+ checks: [
19961
+ ...def2.checks ?? [],
19962
+ ...chks.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch)
19963
+ ]
19964
+ }), { parent: true });
19965
+ },
19966
+ with(...chks) {
19967
+ return this.check(...chks);
19968
+ },
19969
+ clone(def2, params) {
19970
+ return clone(this, def2, params);
19971
+ },
19972
+ brand() {
19973
+ return this;
19974
+ },
19975
+ register(reg, meta3) {
19976
+ reg.add(this, meta3);
19977
+ return this;
19978
+ },
19979
+ refine(check3, params) {
19980
+ return this.check(refine(check3, params));
19981
+ },
19982
+ superRefine(refinement, params) {
19983
+ return this.check(superRefine(refinement, params));
19984
+ },
19985
+ overwrite(fn) {
19986
+ return this.check(_overwrite(fn));
19987
+ },
19988
+ optional() {
19989
+ return optional(this);
19990
+ },
19991
+ exactOptional() {
19992
+ return exactOptional(this);
19993
+ },
19994
+ nullable() {
19995
+ return nullable(this);
19996
+ },
19997
+ nullish() {
19998
+ return optional(nullable(this));
19999
+ },
20000
+ nonoptional(params) {
20001
+ return nonoptional(this, params);
20002
+ },
20003
+ array() {
20004
+ return array(this);
20005
+ },
20006
+ or(arg) {
20007
+ return union([this, arg]);
20008
+ },
20009
+ and(arg) {
20010
+ return intersection(this, arg);
20011
+ },
20012
+ transform(tx) {
20013
+ return pipe(this, transform(tx));
20014
+ },
20015
+ default(d) {
20016
+ return _default2(this, d);
20017
+ },
20018
+ prefault(d) {
20019
+ return prefault(this, d);
20020
+ },
20021
+ catch(params) {
20022
+ return _catch2(this, params);
20023
+ },
20024
+ pipe(target) {
20025
+ return pipe(this, target);
20026
+ },
20027
+ readonly() {
20028
+ return readonly(this);
20029
+ },
20030
+ describe(description) {
20031
+ const cl = this.clone();
20032
+ globalRegistry.add(cl, { description });
20033
+ return cl;
20034
+ },
20035
+ meta(...args) {
20036
+ if (args.length === 0)
20037
+ return globalRegistry.get(this);
20038
+ const cl = this.clone();
20039
+ globalRegistry.add(cl, args[0]);
20040
+ return cl;
20041
+ },
20042
+ isOptional() {
20043
+ return this.safeParse(void 0).success;
20044
+ },
20045
+ isNullable() {
20046
+ return this.safeParse(null).success;
20047
+ },
20048
+ apply(fn) {
20049
+ return fn(this);
20050
+ }
20051
+ });
19429
20052
  Object.defineProperty(inst, "description", {
19430
20053
  get() {
19431
20054
  return globalRegistry.get(inst)?.description;
19432
20055
  },
19433
20056
  configurable: true
19434
20057
  });
19435
- inst.meta = (...args) => {
19436
- if (args.length === 0) {
19437
- return globalRegistry.get(inst);
19438
- }
19439
- const cl = inst.clone();
19440
- globalRegistry.add(cl, args[0]);
19441
- return cl;
19442
- };
19443
- inst.isOptional = () => inst.safeParse(void 0).success;
19444
- inst.isNullable = () => inst.safeParse(null).success;
19445
- inst.apply = (fn) => fn(inst);
19446
20058
  return inst;
19447
20059
  });
19448
20060
  var _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
@@ -19453,21 +20065,53 @@ var _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
19453
20065
  inst.format = bag.format ?? null;
19454
20066
  inst.minLength = bag.minimum ?? null;
19455
20067
  inst.maxLength = bag.maximum ?? null;
19456
- inst.regex = (...args) => inst.check(_regex(...args));
19457
- inst.includes = (...args) => inst.check(_includes(...args));
19458
- inst.startsWith = (...args) => inst.check(_startsWith(...args));
19459
- inst.endsWith = (...args) => inst.check(_endsWith(...args));
19460
- inst.min = (...args) => inst.check(_minLength(...args));
19461
- inst.max = (...args) => inst.check(_maxLength(...args));
19462
- inst.length = (...args) => inst.check(_length(...args));
19463
- inst.nonempty = (...args) => inst.check(_minLength(1, ...args));
19464
- inst.lowercase = (params) => inst.check(_lowercase(params));
19465
- inst.uppercase = (params) => inst.check(_uppercase(params));
19466
- inst.trim = () => inst.check(_trim());
19467
- inst.normalize = (...args) => inst.check(_normalize(...args));
19468
- inst.toLowerCase = () => inst.check(_toLowerCase());
19469
- inst.toUpperCase = () => inst.check(_toUpperCase());
19470
- inst.slugify = () => inst.check(_slugify());
20068
+ _installLazyMethods(inst, "_ZodString", {
20069
+ regex(...args) {
20070
+ return this.check(_regex(...args));
20071
+ },
20072
+ includes(...args) {
20073
+ return this.check(_includes(...args));
20074
+ },
20075
+ startsWith(...args) {
20076
+ return this.check(_startsWith(...args));
20077
+ },
20078
+ endsWith(...args) {
20079
+ return this.check(_endsWith(...args));
20080
+ },
20081
+ min(...args) {
20082
+ return this.check(_minLength(...args));
20083
+ },
20084
+ max(...args) {
20085
+ return this.check(_maxLength(...args));
20086
+ },
20087
+ length(...args) {
20088
+ return this.check(_length(...args));
20089
+ },
20090
+ nonempty(...args) {
20091
+ return this.check(_minLength(1, ...args));
20092
+ },
20093
+ lowercase(params) {
20094
+ return this.check(_lowercase(params));
20095
+ },
20096
+ uppercase(params) {
20097
+ return this.check(_uppercase(params));
20098
+ },
20099
+ trim() {
20100
+ return this.check(_trim());
20101
+ },
20102
+ normalize(...args) {
20103
+ return this.check(_normalize(...args));
20104
+ },
20105
+ toLowerCase() {
20106
+ return this.check(_toLowerCase());
20107
+ },
20108
+ toUpperCase() {
20109
+ return this.check(_toUpperCase());
20110
+ },
20111
+ slugify() {
20112
+ return this.check(_slugify());
20113
+ }
20114
+ });
19471
20115
  });
19472
20116
  var ZodString = /* @__PURE__ */ $constructor("ZodString", (inst, def) => {
19473
20117
  $ZodString.init(inst, def);
@@ -19546,7 +20190,7 @@ function url(params) {
19546
20190
  }
19547
20191
  function httpUrl(params) {
19548
20192
  return _url(ZodURL, {
19549
- protocol: /^https?$/,
20193
+ protocol: regexes_exports.httpProtocol,
19550
20194
  hostname: regexes_exports.domain,
19551
20195
  ...util_exports.normalizeParams(params)
19552
20196
  });
@@ -19688,21 +20332,53 @@ var ZodNumber = /* @__PURE__ */ $constructor("ZodNumber", (inst, def) => {
19688
20332
  $ZodNumber.init(inst, def);
19689
20333
  ZodType.init(inst, def);
19690
20334
  inst._zod.processJSONSchema = (ctx, json3, params) => numberProcessor(inst, ctx, json3, params);
19691
- inst.gt = (value, params) => inst.check(_gt(value, params));
19692
- inst.gte = (value, params) => inst.check(_gte(value, params));
19693
- inst.min = (value, params) => inst.check(_gte(value, params));
19694
- inst.lt = (value, params) => inst.check(_lt(value, params));
19695
- inst.lte = (value, params) => inst.check(_lte(value, params));
19696
- inst.max = (value, params) => inst.check(_lte(value, params));
19697
- inst.int = (params) => inst.check(int(params));
19698
- inst.safe = (params) => inst.check(int(params));
19699
- inst.positive = (params) => inst.check(_gt(0, params));
19700
- inst.nonnegative = (params) => inst.check(_gte(0, params));
19701
- inst.negative = (params) => inst.check(_lt(0, params));
19702
- inst.nonpositive = (params) => inst.check(_lte(0, params));
19703
- inst.multipleOf = (value, params) => inst.check(_multipleOf(value, params));
19704
- inst.step = (value, params) => inst.check(_multipleOf(value, params));
19705
- inst.finite = () => inst;
20335
+ _installLazyMethods(inst, "ZodNumber", {
20336
+ gt(value, params) {
20337
+ return this.check(_gt(value, params));
20338
+ },
20339
+ gte(value, params) {
20340
+ return this.check(_gte(value, params));
20341
+ },
20342
+ min(value, params) {
20343
+ return this.check(_gte(value, params));
20344
+ },
20345
+ lt(value, params) {
20346
+ return this.check(_lt(value, params));
20347
+ },
20348
+ lte(value, params) {
20349
+ return this.check(_lte(value, params));
20350
+ },
20351
+ max(value, params) {
20352
+ return this.check(_lte(value, params));
20353
+ },
20354
+ int(params) {
20355
+ return this.check(int(params));
20356
+ },
20357
+ safe(params) {
20358
+ return this.check(int(params));
20359
+ },
20360
+ positive(params) {
20361
+ return this.check(_gt(0, params));
20362
+ },
20363
+ nonnegative(params) {
20364
+ return this.check(_gte(0, params));
20365
+ },
20366
+ negative(params) {
20367
+ return this.check(_lt(0, params));
20368
+ },
20369
+ nonpositive(params) {
20370
+ return this.check(_lte(0, params));
20371
+ },
20372
+ multipleOf(value, params) {
20373
+ return this.check(_multipleOf(value, params));
20374
+ },
20375
+ step(value, params) {
20376
+ return this.check(_multipleOf(value, params));
20377
+ },
20378
+ finite() {
20379
+ return this;
20380
+ }
20381
+ });
19706
20382
  const bag = inst._zod.bag;
19707
20383
  inst.minValue = Math.max(bag.minimum ?? Number.NEGATIVE_INFINITY, bag.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null;
19708
20384
  inst.maxValue = Math.min(bag.maximum ?? Number.POSITIVE_INFINITY, bag.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null;
@@ -19849,11 +20525,23 @@ var ZodArray = /* @__PURE__ */ $constructor("ZodArray", (inst, def) => {
19849
20525
  ZodType.init(inst, def);
19850
20526
  inst._zod.processJSONSchema = (ctx, json3, params) => arrayProcessor(inst, ctx, json3, params);
19851
20527
  inst.element = def.element;
19852
- inst.min = (minLength, params) => inst.check(_minLength(minLength, params));
19853
- inst.nonempty = (params) => inst.check(_minLength(1, params));
19854
- inst.max = (maxLength, params) => inst.check(_maxLength(maxLength, params));
19855
- inst.length = (len, params) => inst.check(_length(len, params));
19856
- inst.unwrap = () => inst.element;
20528
+ _installLazyMethods(inst, "ZodArray", {
20529
+ min(n, params) {
20530
+ return this.check(_minLength(n, params));
20531
+ },
20532
+ nonempty(params) {
20533
+ return this.check(_minLength(1, params));
20534
+ },
20535
+ max(n, params) {
20536
+ return this.check(_maxLength(n, params));
20537
+ },
20538
+ length(n, params) {
20539
+ return this.check(_length(n, params));
20540
+ },
20541
+ unwrap() {
20542
+ return this.element;
20543
+ }
20544
+ });
19857
20545
  });
19858
20546
  function array(element, params) {
19859
20547
  return _array(ZodArray, element, params);
@@ -19869,23 +20557,47 @@ var ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => {
19869
20557
  util_exports.defineLazy(inst, "shape", () => {
19870
20558
  return def.shape;
19871
20559
  });
19872
- inst.keyof = () => _enum2(Object.keys(inst._zod.def.shape));
19873
- inst.catchall = (catchall) => inst.clone({ ...inst._zod.def, catchall });
19874
- inst.passthrough = () => inst.clone({ ...inst._zod.def, catchall: unknown() });
19875
- inst.loose = () => inst.clone({ ...inst._zod.def, catchall: unknown() });
19876
- inst.strict = () => inst.clone({ ...inst._zod.def, catchall: never() });
19877
- inst.strip = () => inst.clone({ ...inst._zod.def, catchall: void 0 });
19878
- inst.extend = (incoming) => {
19879
- return util_exports.extend(inst, incoming);
19880
- };
19881
- inst.safeExtend = (incoming) => {
19882
- return util_exports.safeExtend(inst, incoming);
19883
- };
19884
- inst.merge = (other) => util_exports.merge(inst, other);
19885
- inst.pick = (mask) => util_exports.pick(inst, mask);
19886
- inst.omit = (mask) => util_exports.omit(inst, mask);
19887
- inst.partial = (...args) => util_exports.partial(ZodOptional, inst, args[0]);
19888
- inst.required = (...args) => util_exports.required(ZodNonOptional, inst, args[0]);
20560
+ _installLazyMethods(inst, "ZodObject", {
20561
+ keyof() {
20562
+ return _enum2(Object.keys(this._zod.def.shape));
20563
+ },
20564
+ catchall(catchall) {
20565
+ return this.clone({ ...this._zod.def, catchall });
20566
+ },
20567
+ passthrough() {
20568
+ return this.clone({ ...this._zod.def, catchall: unknown() });
20569
+ },
20570
+ loose() {
20571
+ return this.clone({ ...this._zod.def, catchall: unknown() });
20572
+ },
20573
+ strict() {
20574
+ return this.clone({ ...this._zod.def, catchall: never() });
20575
+ },
20576
+ strip() {
20577
+ return this.clone({ ...this._zod.def, catchall: void 0 });
20578
+ },
20579
+ extend(incoming) {
20580
+ return util_exports.extend(this, incoming);
20581
+ },
20582
+ safeExtend(incoming) {
20583
+ return util_exports.safeExtend(this, incoming);
20584
+ },
20585
+ merge(other) {
20586
+ return util_exports.merge(this, other);
20587
+ },
20588
+ pick(mask) {
20589
+ return util_exports.pick(this, mask);
20590
+ },
20591
+ omit(mask) {
20592
+ return util_exports.omit(this, mask);
20593
+ },
20594
+ partial(...args) {
20595
+ return util_exports.partial(ZodOptional, this, args[0]);
20596
+ },
20597
+ required(...args) {
20598
+ return util_exports.required(ZodNonOptional, this, args[0]);
20599
+ }
20600
+ });
19889
20601
  });
19890
20602
  function object(shape, params) {
19891
20603
  const def = {
@@ -19990,6 +20702,14 @@ var ZodRecord = /* @__PURE__ */ $constructor("ZodRecord", (inst, def) => {
19990
20702
  inst.valueType = def.valueType;
19991
20703
  });
19992
20704
  function record(keyType, valueType, params) {
20705
+ if (!valueType || !valueType._zod) {
20706
+ return new ZodRecord({
20707
+ type: "record",
20708
+ keyType: string2(),
20709
+ valueType: keyType,
20710
+ ...util_exports.normalizeParams(valueType)
20711
+ });
20712
+ }
19993
20713
  return new ZodRecord({
19994
20714
  type: "record",
19995
20715
  keyType,
@@ -20161,10 +20881,12 @@ var ZodTransform = /* @__PURE__ */ $constructor("ZodTransform", (inst, def) => {
20161
20881
  if (output instanceof Promise) {
20162
20882
  return output.then((output2) => {
20163
20883
  payload.value = output2;
20884
+ payload.fallback = true;
20164
20885
  return payload;
20165
20886
  });
20166
20887
  }
20167
20888
  payload.value = output;
20889
+ payload.fallback = true;
20168
20890
  return payload;
20169
20891
  };
20170
20892
  });
@@ -20319,6 +21041,20 @@ function codec(in_, out, params) {
20319
21041
  reverseTransform: params.encode
20320
21042
  });
20321
21043
  }
21044
+ function invertCodec(codec3) {
21045
+ const def = codec3._zod.def;
21046
+ return new ZodCodec({
21047
+ type: "pipe",
21048
+ in: def.out,
21049
+ out: def.in,
21050
+ transform: def.reverseTransform,
21051
+ reverseTransform: def.transform
21052
+ });
21053
+ }
21054
+ var ZodPreprocess = /* @__PURE__ */ $constructor("ZodPreprocess", (inst, def) => {
21055
+ ZodPipe.init(inst, def);
21056
+ $ZodPreprocess.init(inst, def);
21057
+ });
20322
21058
  var ZodReadonly = /* @__PURE__ */ $constructor("ZodReadonly", (inst, def) => {
20323
21059
  $ZodReadonly.init(inst, def);
20324
21060
  ZodType.init(inst, def);
@@ -20398,8 +21134,8 @@ function custom(fn, _params) {
20398
21134
  function refine(fn, _params = {}) {
20399
21135
  return _refine(ZodCustom, fn, _params);
20400
21136
  }
20401
- function superRefine(fn) {
20402
- return _superRefine(fn);
21137
+ function superRefine(fn, params) {
21138
+ return _superRefine(fn, params);
20403
21139
  }
20404
21140
  var describe2 = describe;
20405
21141
  var meta2 = meta;
@@ -20437,7 +21173,11 @@ function json(params) {
20437
21173
  return jsonSchema;
20438
21174
  }
20439
21175
  function preprocess(fn, schema) {
20440
- return pipe(transform(fn), schema);
21176
+ return new ZodPreprocess({
21177
+ type: "pipe",
21178
+ in: transform(fn),
21179
+ out: schema
21180
+ });
20441
21181
  }
20442
21182
 
20443
21183
  // node_modules/zod/v4/classic/compat.js
@@ -20858,12 +21598,6 @@ function convertBaseSchema(schema, ctx) {
20858
21598
  default:
20859
21599
  throw new Error(`Unsupported type: ${type}`);
20860
21600
  }
20861
- if (schema.description) {
20862
- zodSchema = zodSchema.describe(schema.description);
20863
- }
20864
- if (schema.default !== void 0) {
20865
- zodSchema = zodSchema.default(schema.default);
20866
- }
20867
21601
  return zodSchema;
20868
21602
  }
20869
21603
  function convertSchema(schema, ctx) {
@@ -20900,6 +21634,9 @@ function convertSchema(schema, ctx) {
20900
21634
  if (schema.readOnly === true) {
20901
21635
  baseSchema = z.readonly(baseSchema);
20902
21636
  }
21637
+ if (schema.default !== void 0) {
21638
+ baseSchema = baseSchema.default(schema.default);
21639
+ }
20903
21640
  const extraMeta = {};
20904
21641
  const coreMetadataKeys = ["$id", "id", "$comment", "$anchor", "$vocabulary", "$dynamicRef", "$dynamicAnchor"];
20905
21642
  for (const key of coreMetadataKeys) {
@@ -20921,23 +21658,32 @@ function convertSchema(schema, ctx) {
20921
21658
  if (Object.keys(extraMeta).length > 0) {
20922
21659
  ctx.registry.add(baseSchema, extraMeta);
20923
21660
  }
21661
+ if (schema.description) {
21662
+ baseSchema = baseSchema.describe(schema.description);
21663
+ }
20924
21664
  return baseSchema;
20925
21665
  }
20926
21666
  function fromJSONSchema(schema, params) {
20927
21667
  if (typeof schema === "boolean") {
20928
21668
  return schema ? z.any() : z.never();
20929
21669
  }
20930
- const version3 = detectVersion(schema, params?.defaultTarget);
20931
- const defs = schema.$defs || schema.definitions || {};
21670
+ let normalized;
21671
+ try {
21672
+ normalized = JSON.parse(JSON.stringify(schema));
21673
+ } catch {
21674
+ throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas");
21675
+ }
21676
+ const version3 = detectVersion(normalized, params?.defaultTarget);
21677
+ const defs = normalized.$defs || normalized.definitions || {};
20932
21678
  const ctx = {
20933
21679
  version: version3,
20934
21680
  defs,
20935
21681
  refs: /* @__PURE__ */ new Map(),
20936
21682
  processing: /* @__PURE__ */ new Set(),
20937
- rootSchema: schema,
21683
+ rootSchema: normalized,
20938
21684
  registry: params?.registry ?? globalRegistry
20939
21685
  };
20940
- return convertSchema(schema, ctx);
21686
+ return convertSchema(normalized, ctx);
20941
21687
  }
20942
21688
 
20943
21689
  // node_modules/zod/v4/classic/coerce.js
@@ -21042,10 +21788,10 @@ var AgentRegistry = class _AgentRegistry {
21042
21788
  }
21043
21789
  }
21044
21790
  }
21045
- } catch (error92) {
21046
- const nodeError = error92;
21791
+ } catch (error95) {
21792
+ const nodeError = error95;
21047
21793
  if (nodeError.code !== "ENOENT") {
21048
- log(`[AgentRegistry] Error loading custom agents: ${error92}`);
21794
+ log(`[AgentRegistry] Error loading custom agents: ${error95}`);
21049
21795
  }
21050
21796
  }
21051
21797
  }
@@ -21078,8 +21824,8 @@ var TaskLauncher = class {
21078
21824
  );
21079
21825
  const successfulTasks = tasks.filter((t) => t !== null);
21080
21826
  successfulTasks.forEach((task) => {
21081
- this.executeBackground(task).catch((error92) => {
21082
- this.onTaskError(task.id, error92);
21827
+ this.executeBackground(task).catch((error95) => {
21828
+ this.onTaskError(task.id, error95);
21083
21829
  });
21084
21830
  });
21085
21831
  if (successfulTasks.length > 0) {
@@ -21188,12 +21934,12 @@ ${finalPrompt}` : finalPrompt;
21188
21934
  )
21189
21935
  ]);
21190
21936
  return;
21191
- } catch (error92) {
21937
+ } catch (error95) {
21192
21938
  const context = {
21193
21939
  sessionId: task.sessionID,
21194
21940
  taskId: task.id,
21195
21941
  agent: task.agent,
21196
- error: error92 instanceof Error ? error92 : new Error(String(error92)),
21942
+ error: error95 instanceof Error ? error95 : new Error(String(error95)),
21197
21943
  attempt,
21198
21944
  timestamp: /* @__PURE__ */ new Date()
21199
21945
  };
@@ -21211,7 +21957,7 @@ ${action.modifyPrompt}`;
21211
21957
  attempt++;
21212
21958
  continue;
21213
21959
  }
21214
- throw error92;
21960
+ throw error95;
21215
21961
  }
21216
21962
  }
21217
21963
  } finally {
@@ -21252,10 +21998,10 @@ var TaskResumer = class {
21252
21998
  agent: existingTask.agent,
21253
21999
  parts: [{ type: PART_TYPES.TEXT, text: input.prompt }]
21254
22000
  }
21255
- }).catch((error92) => {
21256
- log(`Resume prompt error for ${existingTask.id}:`, error92);
22001
+ }).catch((error95) => {
22002
+ log(`Resume prompt error for ${existingTask.id}:`, error95);
21257
22003
  existingTask.status = TASK_STATUS.ERROR;
21258
- existingTask.error = error92 instanceof Error ? error92.message : String(error92);
22004
+ existingTask.error = error95 instanceof Error ? error95.message : String(error95);
21259
22005
  existingTask.completedAt = /* @__PURE__ */ new Date();
21260
22006
  this.store.untrackPending(input.parentSessionID, existingTask.id);
21261
22007
  this.store.queueNotification(existingTask);
@@ -21305,7 +22051,7 @@ var StateBroadcaster = class _StateBroadcaster {
21305
22051
  this.listeners.forEach((listener) => {
21306
22052
  try {
21307
22053
  listener(state2);
21308
- } catch (error92) {
22054
+ } catch (error95) {
21309
22055
  }
21310
22056
  });
21311
22057
  }
@@ -21453,13 +22199,13 @@ var TaskPoller = class {
21453
22199
  await this.completeTask(task);
21454
22200
  }
21455
22201
  }
21456
- } catch (error92) {
21457
- log(`Poll error for task ${task.id}:`, error92);
22202
+ } catch (error95) {
22203
+ log(`Poll error for task ${task.id}:`, error95);
21458
22204
  }
21459
22205
  }
21460
22206
  progressNotifier.update();
21461
- } catch (error92) {
21462
- log("Polling error:", error92);
22207
+ } catch (error95) {
22208
+ log("Polling error:", error95);
21463
22209
  }
21464
22210
  }
21465
22211
  async validateSessionHasOutput(sessionID, task) {
@@ -21627,8 +22373,8 @@ var TaskCleaner = class {
21627
22373
  try {
21628
22374
  await this.sessionPool.release(sessionID);
21629
22375
  clear2(sessionID);
21630
- } catch (error92) {
21631
- log(`Session cleanup error for ${sessionID}:`, error92);
22376
+ } catch (error95) {
22377
+ log(`Session cleanup error for ${sessionID}:`, error95);
21632
22378
  }
21633
22379
  }
21634
22380
  this.store.delete(taskId);
@@ -21683,8 +22429,8 @@ You will be notified when ALL tasks complete. Continue productive work.`;
21683
22429
  }
21684
22430
  });
21685
22431
  log(`Notified parent ${parentSessionID} (allComplete=${allComplete}, noReply=${!allComplete})`);
21686
- } catch (error92) {
21687
- log("Notification error:", error92);
22432
+ } catch (error95) {
22433
+ log("Notification error:", error95);
21688
22434
  }
21689
22435
  this.store.clearNotifications(parentSessionID);
21690
22436
  }
@@ -21948,8 +22694,8 @@ var SessionPool = class _SessionPool {
21948
22694
  }
21949
22695
  session.lastResetAt = /* @__PURE__ */ new Date();
21950
22696
  session.health = "healthy";
21951
- } catch (error92) {
21952
- log(`[SessionPool] Failed to reset session ${sessionId.slice(0, 8)}: ${error92}`);
22697
+ } catch (error95) {
22698
+ log(`[SessionPool] Failed to reset session ${sessionId.slice(0, 8)}: ${error95}`);
21953
22699
  session.health = "degraded";
21954
22700
  }
21955
22701
  }
@@ -22077,8 +22823,8 @@ var TodoManager = class _TodoManager {
22077
22823
  }
22078
22824
  }
22079
22825
  return { content, version: versionInfo };
22080
- } catch (error92) {
22081
- log(`[TodoManager] Error reading TODO: ${error92}`);
22826
+ } catch (error95) {
22827
+ log(`[TodoManager] Error reading TODO: ${error95}`);
22082
22828
  return { content: "", version: { version: 0, timestamp: Date.now(), author: "system" } };
22083
22829
  }
22084
22830
  }
@@ -22131,8 +22877,8 @@ var TodoManager = class _TodoManager {
22131
22877
  });
22132
22878
  log(`[TodoManager] Updated TODO to v${newVersion} by ${author}`);
22133
22879
  return { success: true, currentVersion: newVersion };
22134
- } catch (error92) {
22135
- if (attempt === MAX_RETRIES2 - 1) throw error92;
22880
+ } catch (error95) {
22881
+ if (attempt === MAX_RETRIES2 - 1) throw error95;
22136
22882
  await new Promise((r) => setTimeout(r, RETRY_DELAY));
22137
22883
  }
22138
22884
  }
@@ -22246,7 +22992,7 @@ var ParallelAgentManager = class _ParallelAgentManager {
22246
22992
  this.store,
22247
22993
  this.concurrency,
22248
22994
  this.sessionPool,
22249
- (taskId, error92) => this.handleTaskError(taskId, error92),
22995
+ (taskId, error95) => this.handleTaskError(taskId, error95),
22250
22996
  () => this.poller.start()
22251
22997
  );
22252
22998
  this.resumer = new TaskResumer(
@@ -22338,8 +23084,8 @@ var ParallelAgentManager = class _ParallelAgentManager {
22338
23084
  const text = lastMsg.parts?.filter((p) => p.type === PART_TYPES.TEXT || p.type === PART_TYPES.REASONING).map((p) => p.text ?? "").filter(Boolean).join("\n") ?? "";
22339
23085
  task.result = text;
22340
23086
  return text;
22341
- } catch (error92) {
22342
- return `Error: ${error92 instanceof Error ? error92.message : String(error92)}`;
23087
+ } catch (error95) {
23088
+ return `Error: ${error95 instanceof Error ? error95.message : String(error95)}`;
22343
23089
  }
22344
23090
  }
22345
23091
  setConcurrencyLimit(agentType, limit) {
@@ -22379,11 +23125,11 @@ var ParallelAgentManager = class _ParallelAgentManager {
22379
23125
  findBySession(sessionID) {
22380
23126
  return this.store.getAll().find((t) => t.sessionID === sessionID);
22381
23127
  }
22382
- handleTaskError(taskId, error92) {
23128
+ handleTaskError(taskId, error95) {
22383
23129
  const task = this.store.get(taskId);
22384
23130
  if (!task) return;
22385
23131
  task.status = TASK_STATUS.ERROR;
22386
- task.error = error92 instanceof Error ? error92.message : String(error92);
23132
+ task.error = error95 instanceof Error ? error95.message : String(error95);
22387
23133
  task.completedAt = /* @__PURE__ */ new Date();
22388
23134
  if (task.concurrencyKey) {
22389
23135
  this.concurrency.release(task.concurrencyKey);
@@ -22413,8 +23159,8 @@ This task ensures the completeness of the unit before global integration.`,
22413
23159
  groupID: task.groupID || task.id
22414
23160
  // Group reviews with their origins
22415
23161
  });
22416
- } catch (error92) {
22417
- log(`[MSVP] Failed to trigger review for ${task.id}:`, error92);
23162
+ } catch (error95) {
23163
+ log(`[MSVP] Failed to trigger review for ${task.id}:`, error95);
22418
23164
  }
22419
23165
  }
22420
23166
  progressNotifier.update();
@@ -22933,12 +23679,12 @@ var NEVER2 = Object.freeze({
22933
23679
  // @__NO_SIDE_EFFECTS__
22934
23680
  function $constructor2(name, initializer5, params) {
22935
23681
  function init(inst, def) {
22936
- var _a2;
23682
+ var _a3;
22937
23683
  Object.defineProperty(inst, "_zod", {
22938
23684
  value: inst._zod ?? {},
22939
23685
  enumerable: false
22940
23686
  });
22941
- (_a2 = inst._zod).traits ?? (_a2.traits = /* @__PURE__ */ new Set());
23687
+ (_a3 = inst._zod).traits ?? (_a3.traits = /* @__PURE__ */ new Set());
22942
23688
  inst._zod.traits.add(name);
22943
23689
  initializer5(inst, def);
22944
23690
  for (const k in _.prototype) {
@@ -22953,10 +23699,10 @@ function $constructor2(name, initializer5, params) {
22953
23699
  }
22954
23700
  Object.defineProperty(Definition, "name", { value: name });
22955
23701
  function _(def) {
22956
- var _a2;
23702
+ var _a3;
22957
23703
  const inst = params?.Parent ? new Definition() : this;
22958
23704
  init(inst, def);
22959
- (_a2 = inst._zod).deferred ?? (_a2.deferred = []);
23705
+ (_a3 = inst._zod).deferred ?? (_a3.deferred = []);
22960
23706
  for (const fn of inst._zod.deferred) {
22961
23707
  fn();
22962
23708
  }
@@ -23529,8 +24275,8 @@ function aborted2(x, startIndex = 0) {
23529
24275
  }
23530
24276
  function prefixIssues2(path10, issues) {
23531
24277
  return issues.map((iss) => {
23532
- var _a2;
23533
- (_a2 = iss).path ?? (_a2.path = []);
24278
+ var _a3;
24279
+ (_a3 = iss).path ?? (_a3.path = []);
23534
24280
  iss.path.unshift(path10);
23535
24281
  return iss;
23536
24282
  });
@@ -23645,10 +24391,10 @@ var initializer3 = (inst, def) => {
23645
24391
  };
23646
24392
  var $ZodError2 = $constructor2("$ZodError", initializer3);
23647
24393
  var $ZodRealError2 = $constructor2("$ZodError", initializer3, { Parent: Error });
23648
- function flattenError2(error92, mapper = (issue3) => issue3.message) {
24394
+ function flattenError2(error95, mapper = (issue3) => issue3.message) {
23649
24395
  const fieldErrors = {};
23650
24396
  const formErrors = [];
23651
- for (const sub of error92.issues) {
24397
+ for (const sub of error95.issues) {
23652
24398
  if (sub.path.length > 0) {
23653
24399
  fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];
23654
24400
  fieldErrors[sub.path[0]].push(mapper(sub));
@@ -23658,13 +24404,13 @@ function flattenError2(error92, mapper = (issue3) => issue3.message) {
23658
24404
  }
23659
24405
  return { formErrors, fieldErrors };
23660
24406
  }
23661
- function formatError2(error92, _mapper) {
24407
+ function formatError2(error95, _mapper) {
23662
24408
  const mapper = _mapper || function(issue3) {
23663
24409
  return issue3.message;
23664
24410
  };
23665
24411
  const fieldErrors = { _errors: [] };
23666
- const processError = (error93) => {
23667
- for (const issue3 of error93.issues) {
24412
+ const processError = (error96) => {
24413
+ for (const issue3 of error96.issues) {
23668
24414
  if (issue3.code === "invalid_union" && issue3.errors.length) {
23669
24415
  issue3.errors.map((issues) => processError({ issues }));
23670
24416
  } else if (issue3.code === "invalid_key") {
@@ -23691,17 +24437,17 @@ function formatError2(error92, _mapper) {
23691
24437
  }
23692
24438
  }
23693
24439
  };
23694
- processError(error92);
24440
+ processError(error95);
23695
24441
  return fieldErrors;
23696
24442
  }
23697
- function treeifyError2(error92, _mapper) {
24443
+ function treeifyError2(error95, _mapper) {
23698
24444
  const mapper = _mapper || function(issue3) {
23699
24445
  return issue3.message;
23700
24446
  };
23701
24447
  const result = { errors: [] };
23702
- const processError = (error93, path10 = []) => {
23703
- var _a2, _b;
23704
- for (const issue3 of error93.issues) {
24448
+ const processError = (error96, path10 = []) => {
24449
+ var _a3, _b;
24450
+ for (const issue3 of error96.issues) {
23705
24451
  if (issue3.code === "invalid_union" && issue3.errors.length) {
23706
24452
  issue3.errors.map((issues) => processError({ issues }, issue3.path));
23707
24453
  } else if (issue3.code === "invalid_key") {
@@ -23721,7 +24467,7 @@ function treeifyError2(error92, _mapper) {
23721
24467
  const terminal = i === fullpath.length - 1;
23722
24468
  if (typeof el === "string") {
23723
24469
  curr.properties ?? (curr.properties = {});
23724
- (_a2 = curr.properties)[el] ?? (_a2[el] = { errors: [] });
24470
+ (_a3 = curr.properties)[el] ?? (_a3[el] = { errors: [] });
23725
24471
  curr = curr.properties[el];
23726
24472
  } else {
23727
24473
  curr.items ?? (curr.items = []);
@@ -23736,7 +24482,7 @@ function treeifyError2(error92, _mapper) {
23736
24482
  }
23737
24483
  }
23738
24484
  };
23739
- processError(error92);
24485
+ processError(error95);
23740
24486
  return result;
23741
24487
  }
23742
24488
  function toDotPath2(_path) {
@@ -23757,9 +24503,9 @@ function toDotPath2(_path) {
23757
24503
  }
23758
24504
  return segs.join("");
23759
24505
  }
23760
- function prettifyError2(error92) {
24506
+ function prettifyError2(error95) {
23761
24507
  const lines = [];
23762
- const issues = [...error92.issues].sort((a, b) => (a.path ?? []).length - (b.path ?? []).length);
24508
+ const issues = [...error95.issues].sort((a, b) => (a.path ?? []).length - (b.path ?? []).length);
23763
24509
  for (const issue3 of issues) {
23764
24510
  lines.push(`\u2716 ${issue3.message}`);
23765
24511
  if (issue3.path?.length)
@@ -24010,10 +24756,10 @@ var sha512_base64url2 = /* @__PURE__ */ fixedBase64url2(86);
24010
24756
 
24011
24757
  // node_modules/@opencode-ai/plugin/node_modules/zod/v4/core/checks.js
24012
24758
  var $ZodCheck2 = /* @__PURE__ */ $constructor2("$ZodCheck", (inst, def) => {
24013
- var _a2;
24759
+ var _a3;
24014
24760
  inst._zod ?? (inst._zod = {});
24015
24761
  inst._zod.def = def;
24016
- (_a2 = inst._zod).onattach ?? (_a2.onattach = []);
24762
+ (_a3 = inst._zod).onattach ?? (_a3.onattach = []);
24017
24763
  });
24018
24764
  var numericOriginMap2 = {
24019
24765
  number: "number",
@@ -24079,8 +24825,8 @@ var $ZodCheckGreaterThan2 = /* @__PURE__ */ $constructor2("$ZodCheckGreaterThan"
24079
24825
  var $ZodCheckMultipleOf2 = /* @__PURE__ */ $constructor2("$ZodCheckMultipleOf", (inst, def) => {
24080
24826
  $ZodCheck2.init(inst, def);
24081
24827
  inst._zod.onattach.push((inst2) => {
24082
- var _a2;
24083
- (_a2 = inst2._zod.bag).multipleOf ?? (_a2.multipleOf = def.value);
24828
+ var _a3;
24829
+ (_a3 = inst2._zod.bag).multipleOf ?? (_a3.multipleOf = def.value);
24084
24830
  });
24085
24831
  inst._zod.check = (payload) => {
24086
24832
  if (typeof payload.value !== typeof def.value)
@@ -24207,9 +24953,9 @@ var $ZodCheckBigIntFormat2 = /* @__PURE__ */ $constructor2("$ZodCheckBigIntForma
24207
24953
  };
24208
24954
  });
24209
24955
  var $ZodCheckMaxSize2 = /* @__PURE__ */ $constructor2("$ZodCheckMaxSize", (inst, def) => {
24210
- var _a2;
24956
+ var _a3;
24211
24957
  $ZodCheck2.init(inst, def);
24212
- (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
24958
+ (_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
24213
24959
  const val = payload.value;
24214
24960
  return !nullish3(val) && val.size !== void 0;
24215
24961
  });
@@ -24235,9 +24981,9 @@ var $ZodCheckMaxSize2 = /* @__PURE__ */ $constructor2("$ZodCheckMaxSize", (inst,
24235
24981
  };
24236
24982
  });
24237
24983
  var $ZodCheckMinSize2 = /* @__PURE__ */ $constructor2("$ZodCheckMinSize", (inst, def) => {
24238
- var _a2;
24984
+ var _a3;
24239
24985
  $ZodCheck2.init(inst, def);
24240
- (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
24986
+ (_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
24241
24987
  const val = payload.value;
24242
24988
  return !nullish3(val) && val.size !== void 0;
24243
24989
  });
@@ -24263,9 +25009,9 @@ var $ZodCheckMinSize2 = /* @__PURE__ */ $constructor2("$ZodCheckMinSize", (inst,
24263
25009
  };
24264
25010
  });
24265
25011
  var $ZodCheckSizeEquals2 = /* @__PURE__ */ $constructor2("$ZodCheckSizeEquals", (inst, def) => {
24266
- var _a2;
25012
+ var _a3;
24267
25013
  $ZodCheck2.init(inst, def);
24268
- (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
25014
+ (_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
24269
25015
  const val = payload.value;
24270
25016
  return !nullish3(val) && val.size !== void 0;
24271
25017
  });
@@ -24293,9 +25039,9 @@ var $ZodCheckSizeEquals2 = /* @__PURE__ */ $constructor2("$ZodCheckSizeEquals",
24293
25039
  };
24294
25040
  });
24295
25041
  var $ZodCheckMaxLength2 = /* @__PURE__ */ $constructor2("$ZodCheckMaxLength", (inst, def) => {
24296
- var _a2;
25042
+ var _a3;
24297
25043
  $ZodCheck2.init(inst, def);
24298
- (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
25044
+ (_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
24299
25045
  const val = payload.value;
24300
25046
  return !nullish3(val) && val.length !== void 0;
24301
25047
  });
@@ -24322,9 +25068,9 @@ var $ZodCheckMaxLength2 = /* @__PURE__ */ $constructor2("$ZodCheckMaxLength", (i
24322
25068
  };
24323
25069
  });
24324
25070
  var $ZodCheckMinLength2 = /* @__PURE__ */ $constructor2("$ZodCheckMinLength", (inst, def) => {
24325
- var _a2;
25071
+ var _a3;
24326
25072
  $ZodCheck2.init(inst, def);
24327
- (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
25073
+ (_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
24328
25074
  const val = payload.value;
24329
25075
  return !nullish3(val) && val.length !== void 0;
24330
25076
  });
@@ -24351,9 +25097,9 @@ var $ZodCheckMinLength2 = /* @__PURE__ */ $constructor2("$ZodCheckMinLength", (i
24351
25097
  };
24352
25098
  });
24353
25099
  var $ZodCheckLengthEquals2 = /* @__PURE__ */ $constructor2("$ZodCheckLengthEquals", (inst, def) => {
24354
- var _a2;
25100
+ var _a3;
24355
25101
  $ZodCheck2.init(inst, def);
24356
- (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
25102
+ (_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
24357
25103
  const val = payload.value;
24358
25104
  return !nullish3(val) && val.length !== void 0;
24359
25105
  });
@@ -24382,7 +25128,7 @@ var $ZodCheckLengthEquals2 = /* @__PURE__ */ $constructor2("$ZodCheckLengthEqual
24382
25128
  };
24383
25129
  });
24384
25130
  var $ZodCheckStringFormat2 = /* @__PURE__ */ $constructor2("$ZodCheckStringFormat", (inst, def) => {
24385
- var _a2, _b;
25131
+ var _a3, _b;
24386
25132
  $ZodCheck2.init(inst, def);
24387
25133
  inst._zod.onattach.push((inst2) => {
24388
25134
  const bag = inst2._zod.bag;
@@ -24393,7 +25139,7 @@ var $ZodCheckStringFormat2 = /* @__PURE__ */ $constructor2("$ZodCheckStringForma
24393
25139
  }
24394
25140
  });
24395
25141
  if (def.pattern)
24396
- (_a2 = inst._zod).check ?? (_a2.check = (payload) => {
25142
+ (_a3 = inst._zod).check ?? (_a3.check = (payload) => {
24397
25143
  def.pattern.lastIndex = 0;
24398
25144
  if (def.pattern.test(payload.value))
24399
25145
  return;
@@ -24595,7 +25341,7 @@ var version2 = {
24595
25341
 
24596
25342
  // node_modules/@opencode-ai/plugin/node_modules/zod/v4/core/schemas.js
24597
25343
  var $ZodType2 = /* @__PURE__ */ $constructor2("$ZodType", (inst, def) => {
24598
- var _a2;
25344
+ var _a3;
24599
25345
  inst ?? (inst = {});
24600
25346
  inst._zod.def = def;
24601
25347
  inst._zod.bag = inst._zod.bag || {};
@@ -24610,7 +25356,7 @@ var $ZodType2 = /* @__PURE__ */ $constructor2("$ZodType", (inst, def) => {
24610
25356
  }
24611
25357
  }
24612
25358
  if (checks.length === 0) {
24613
- (_a2 = inst._zod).deferred ?? (_a2.deferred = []);
25359
+ (_a3 = inst._zod).deferred ?? (_a3.deferred = []);
24614
25360
  inst._zod.deferred?.push(() => {
24615
25361
  inst._zod.run = inst._zod.parse;
24616
25362
  });
@@ -26477,7 +27223,7 @@ __export(locales_exports2, {
26477
27223
  });
26478
27224
 
26479
27225
  // node_modules/@opencode-ai/plugin/node_modules/zod/v4/locales/ar.js
26480
- var error48 = () => {
27226
+ var error51 = () => {
26481
27227
  const Sizable = {
26482
27228
  string: { unit: "\u062D\u0631\u0641", verb: "\u0623\u0646 \u064A\u062D\u0648\u064A" },
26483
27229
  file: { unit: "\u0628\u0627\u064A\u062A", verb: "\u0623\u0646 \u064A\u062D\u0648\u064A" },
@@ -26589,12 +27335,12 @@ var error48 = () => {
26589
27335
  };
26590
27336
  function ar_default2() {
26591
27337
  return {
26592
- localeError: error48()
27338
+ localeError: error51()
26593
27339
  };
26594
27340
  }
26595
27341
 
26596
27342
  // node_modules/@opencode-ai/plugin/node_modules/zod/v4/locales/az.js
26597
- var error49 = () => {
27343
+ var error52 = () => {
26598
27344
  const Sizable = {
26599
27345
  string: { unit: "simvol", verb: "olmal\u0131d\u0131r" },
26600
27346
  file: { unit: "bayt", verb: "olmal\u0131d\u0131r" },
@@ -26705,7 +27451,7 @@ var error49 = () => {
26705
27451
  };
26706
27452
  function az_default2() {
26707
27453
  return {
26708
- localeError: error49()
27454
+ localeError: error52()
26709
27455
  };
26710
27456
  }
26711
27457
 
@@ -26725,7 +27471,7 @@ function getBelarusianPlural2(count, one, few, many) {
26725
27471
  }
26726
27472
  return many;
26727
27473
  }
26728
- var error50 = () => {
27474
+ var error53 = () => {
26729
27475
  const Sizable = {
26730
27476
  string: {
26731
27477
  unit: {
@@ -26870,12 +27616,12 @@ var error50 = () => {
26870
27616
  };
26871
27617
  function be_default2() {
26872
27618
  return {
26873
- localeError: error50()
27619
+ localeError: error53()
26874
27620
  };
26875
27621
  }
26876
27622
 
26877
27623
  // node_modules/@opencode-ai/plugin/node_modules/zod/v4/locales/ca.js
26878
- var error51 = () => {
27624
+ var error54 = () => {
26879
27625
  const Sizable = {
26880
27626
  string: { unit: "car\xE0cters", verb: "contenir" },
26881
27627
  file: { unit: "bytes", verb: "contenir" },
@@ -26990,12 +27736,12 @@ var error51 = () => {
26990
27736
  };
26991
27737
  function ca_default2() {
26992
27738
  return {
26993
- localeError: error51()
27739
+ localeError: error54()
26994
27740
  };
26995
27741
  }
26996
27742
 
26997
27743
  // node_modules/@opencode-ai/plugin/node_modules/zod/v4/locales/cs.js
26998
- var error52 = () => {
27744
+ var error55 = () => {
26999
27745
  const Sizable = {
27000
27746
  string: { unit: "znak\u016F", verb: "m\xEDt" },
27001
27747
  file: { unit: "bajt\u016F", verb: "m\xEDt" },
@@ -27126,12 +27872,12 @@ var error52 = () => {
27126
27872
  };
27127
27873
  function cs_default2() {
27128
27874
  return {
27129
- localeError: error52()
27875
+ localeError: error55()
27130
27876
  };
27131
27877
  }
27132
27878
 
27133
27879
  // node_modules/@opencode-ai/plugin/node_modules/zod/v4/locales/da.js
27134
- var error53 = () => {
27880
+ var error56 = () => {
27135
27881
  const Sizable = {
27136
27882
  string: { unit: "tegn", verb: "havde" },
27137
27883
  file: { unit: "bytes", verb: "havde" },
@@ -27258,12 +28004,12 @@ var error53 = () => {
27258
28004
  };
27259
28005
  function da_default2() {
27260
28006
  return {
27261
- localeError: error53()
28007
+ localeError: error56()
27262
28008
  };
27263
28009
  }
27264
28010
 
27265
28011
  // node_modules/@opencode-ai/plugin/node_modules/zod/v4/locales/de.js
27266
- var error54 = () => {
28012
+ var error57 = () => {
27267
28013
  const Sizable = {
27268
28014
  string: { unit: "Zeichen", verb: "zu haben" },
27269
28015
  file: { unit: "Bytes", verb: "zu haben" },
@@ -27375,7 +28121,7 @@ var error54 = () => {
27375
28121
  };
27376
28122
  function de_default2() {
27377
28123
  return {
27378
- localeError: error54()
28124
+ localeError: error57()
27379
28125
  };
27380
28126
  }
27381
28127
 
@@ -27400,7 +28146,7 @@ var parsedType2 = (data) => {
27400
28146
  }
27401
28147
  return t;
27402
28148
  };
27403
- var error55 = () => {
28149
+ var error58 = () => {
27404
28150
  const Sizable = {
27405
28151
  string: { unit: "characters", verb: "to have" },
27406
28152
  file: { unit: "bytes", verb: "to have" },
@@ -27493,7 +28239,7 @@ var error55 = () => {
27493
28239
  };
27494
28240
  function en_default2() {
27495
28241
  return {
27496
- localeError: error55()
28242
+ localeError: error58()
27497
28243
  };
27498
28244
  }
27499
28245
 
@@ -27518,7 +28264,7 @@ var parsedType3 = (data) => {
27518
28264
  }
27519
28265
  return t;
27520
28266
  };
27521
- var error56 = () => {
28267
+ var error59 = () => {
27522
28268
  const Sizable = {
27523
28269
  string: { unit: "karaktrojn", verb: "havi" },
27524
28270
  file: { unit: "bajtojn", verb: "havi" },
@@ -27610,12 +28356,12 @@ var error56 = () => {
27610
28356
  };
27611
28357
  function eo_default2() {
27612
28358
  return {
27613
- localeError: error56()
28359
+ localeError: error59()
27614
28360
  };
27615
28361
  }
27616
28362
 
27617
28363
  // node_modules/@opencode-ai/plugin/node_modules/zod/v4/locales/es.js
27618
- var error57 = () => {
28364
+ var error60 = () => {
27619
28365
  const Sizable = {
27620
28366
  string: { unit: "caracteres", verb: "tener" },
27621
28367
  file: { unit: "bytes", verb: "tener" },
@@ -27760,12 +28506,12 @@ var error57 = () => {
27760
28506
  };
27761
28507
  function es_default2() {
27762
28508
  return {
27763
- localeError: error57()
28509
+ localeError: error60()
27764
28510
  };
27765
28511
  }
27766
28512
 
27767
28513
  // node_modules/@opencode-ai/plugin/node_modules/zod/v4/locales/fa.js
27768
- var error58 = () => {
28514
+ var error61 = () => {
27769
28515
  const Sizable = {
27770
28516
  string: { unit: "\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
27771
28517
  file: { unit: "\u0628\u0627\u06CC\u062A", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
@@ -27883,12 +28629,12 @@ var error58 = () => {
27883
28629
  };
27884
28630
  function fa_default2() {
27885
28631
  return {
27886
- localeError: error58()
28632
+ localeError: error61()
27887
28633
  };
27888
28634
  }
27889
28635
 
27890
28636
  // node_modules/@opencode-ai/plugin/node_modules/zod/v4/locales/fi.js
27891
- var error59 = () => {
28637
+ var error62 = () => {
27892
28638
  const Sizable = {
27893
28639
  string: { unit: "merkki\xE4", subject: "merkkijonon" },
27894
28640
  file: { unit: "tavua", subject: "tiedoston" },
@@ -28006,12 +28752,12 @@ var error59 = () => {
28006
28752
  };
28007
28753
  function fi_default2() {
28008
28754
  return {
28009
- localeError: error59()
28755
+ localeError: error62()
28010
28756
  };
28011
28757
  }
28012
28758
 
28013
28759
  // node_modules/@opencode-ai/plugin/node_modules/zod/v4/locales/fr.js
28014
- var error60 = () => {
28760
+ var error63 = () => {
28015
28761
  const Sizable = {
28016
28762
  string: { unit: "caract\xE8res", verb: "avoir" },
28017
28763
  file: { unit: "octets", verb: "avoir" },
@@ -28123,12 +28869,12 @@ var error60 = () => {
28123
28869
  };
28124
28870
  function fr_default2() {
28125
28871
  return {
28126
- localeError: error60()
28872
+ localeError: error63()
28127
28873
  };
28128
28874
  }
28129
28875
 
28130
28876
  // node_modules/@opencode-ai/plugin/node_modules/zod/v4/locales/fr-CA.js
28131
- var error61 = () => {
28877
+ var error64 = () => {
28132
28878
  const Sizable = {
28133
28879
  string: { unit: "caract\xE8res", verb: "avoir" },
28134
28880
  file: { unit: "octets", verb: "avoir" },
@@ -28241,12 +28987,12 @@ var error61 = () => {
28241
28987
  };
28242
28988
  function fr_CA_default2() {
28243
28989
  return {
28244
- localeError: error61()
28990
+ localeError: error64()
28245
28991
  };
28246
28992
  }
28247
28993
 
28248
28994
  // node_modules/@opencode-ai/plugin/node_modules/zod/v4/locales/he.js
28249
- var error62 = () => {
28995
+ var error65 = () => {
28250
28996
  const Sizable = {
28251
28997
  string: { unit: "\u05D0\u05D5\u05EA\u05D9\u05D5\u05EA", verb: "\u05DC\u05DB\u05DC\u05D5\u05DC" },
28252
28998
  file: { unit: "\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD", verb: "\u05DC\u05DB\u05DC\u05D5\u05DC" },
@@ -28359,12 +29105,12 @@ var error62 = () => {
28359
29105
  };
28360
29106
  function he_default2() {
28361
29107
  return {
28362
- localeError: error62()
29108
+ localeError: error65()
28363
29109
  };
28364
29110
  }
28365
29111
 
28366
29112
  // node_modules/@opencode-ai/plugin/node_modules/zod/v4/locales/hu.js
28367
- var error63 = () => {
29113
+ var error66 = () => {
28368
29114
  const Sizable = {
28369
29115
  string: { unit: "karakter", verb: "legyen" },
28370
29116
  file: { unit: "byte", verb: "legyen" },
@@ -28477,12 +29223,12 @@ var error63 = () => {
28477
29223
  };
28478
29224
  function hu_default2() {
28479
29225
  return {
28480
- localeError: error63()
29226
+ localeError: error66()
28481
29227
  };
28482
29228
  }
28483
29229
 
28484
29230
  // node_modules/@opencode-ai/plugin/node_modules/zod/v4/locales/id.js
28485
- var error64 = () => {
29231
+ var error67 = () => {
28486
29232
  const Sizable = {
28487
29233
  string: { unit: "karakter", verb: "memiliki" },
28488
29234
  file: { unit: "byte", verb: "memiliki" },
@@ -28594,7 +29340,7 @@ var error64 = () => {
28594
29340
  };
28595
29341
  function id_default2() {
28596
29342
  return {
28597
- localeError: error64()
29343
+ localeError: error67()
28598
29344
  };
28599
29345
  }
28600
29346
 
@@ -28619,7 +29365,7 @@ var parsedType4 = (data) => {
28619
29365
  }
28620
29366
  return t;
28621
29367
  };
28622
- var error65 = () => {
29368
+ var error68 = () => {
28623
29369
  const Sizable = {
28624
29370
  string: { unit: "stafi", verb: "a\xF0 hafa" },
28625
29371
  file: { unit: "b\xE6ti", verb: "a\xF0 hafa" },
@@ -28712,12 +29458,12 @@ var error65 = () => {
28712
29458
  };
28713
29459
  function is_default2() {
28714
29460
  return {
28715
- localeError: error65()
29461
+ localeError: error68()
28716
29462
  };
28717
29463
  }
28718
29464
 
28719
29465
  // node_modules/@opencode-ai/plugin/node_modules/zod/v4/locales/it.js
28720
- var error66 = () => {
29466
+ var error69 = () => {
28721
29467
  const Sizable = {
28722
29468
  string: { unit: "caratteri", verb: "avere" },
28723
29469
  file: { unit: "byte", verb: "avere" },
@@ -28830,12 +29576,12 @@ var error66 = () => {
28830
29576
  };
28831
29577
  function it_default2() {
28832
29578
  return {
28833
- localeError: error66()
29579
+ localeError: error69()
28834
29580
  };
28835
29581
  }
28836
29582
 
28837
29583
  // node_modules/@opencode-ai/plugin/node_modules/zod/v4/locales/ja.js
28838
- var error67 = () => {
29584
+ var error70 = () => {
28839
29585
  const Sizable = {
28840
29586
  string: { unit: "\u6587\u5B57", verb: "\u3067\u3042\u308B" },
28841
29587
  file: { unit: "\u30D0\u30A4\u30C8", verb: "\u3067\u3042\u308B" },
@@ -28946,7 +29692,7 @@ var error67 = () => {
28946
29692
  };
28947
29693
  function ja_default2() {
28948
29694
  return {
28949
- localeError: error67()
29695
+ localeError: error70()
28950
29696
  };
28951
29697
  }
28952
29698
 
@@ -28979,7 +29725,7 @@ var parsedType5 = (data) => {
28979
29725
  };
28980
29726
  return typeMap[t] ?? t;
28981
29727
  };
28982
- var error68 = () => {
29728
+ var error71 = () => {
28983
29729
  const Sizable = {
28984
29730
  string: { unit: "\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" },
28985
29731
  file: { unit: "\u10D1\u10D0\u10D8\u10E2\u10D8", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" },
@@ -29072,12 +29818,12 @@ var error68 = () => {
29072
29818
  };
29073
29819
  function ka_default2() {
29074
29820
  return {
29075
- localeError: error68()
29821
+ localeError: error71()
29076
29822
  };
29077
29823
  }
29078
29824
 
29079
29825
  // node_modules/@opencode-ai/plugin/node_modules/zod/v4/locales/km.js
29080
- var error69 = () => {
29826
+ var error72 = () => {
29081
29827
  const Sizable = {
29082
29828
  string: { unit: "\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
29083
29829
  file: { unit: "\u1794\u17C3", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
@@ -29190,7 +29936,7 @@ var error69 = () => {
29190
29936
  };
29191
29937
  function km_default2() {
29192
29938
  return {
29193
- localeError: error69()
29939
+ localeError: error72()
29194
29940
  };
29195
29941
  }
29196
29942
 
@@ -29200,7 +29946,7 @@ function kh_default2() {
29200
29946
  }
29201
29947
 
29202
29948
  // node_modules/@opencode-ai/plugin/node_modules/zod/v4/locales/ko.js
29203
- var error70 = () => {
29949
+ var error73 = () => {
29204
29950
  const Sizable = {
29205
29951
  string: { unit: "\uBB38\uC790", verb: "to have" },
29206
29952
  file: { unit: "\uBC14\uC774\uD2B8", verb: "to have" },
@@ -29317,7 +30063,7 @@ var error70 = () => {
29317
30063
  };
29318
30064
  function ko_default2() {
29319
30065
  return {
29320
- localeError: error70()
30066
+ localeError: error73()
29321
30067
  };
29322
30068
  }
29323
30069
 
@@ -29382,7 +30128,7 @@ function getUnitTypeFromNumber2(number7) {
29382
30128
  return "one";
29383
30129
  return "few";
29384
30130
  }
29385
- var error71 = () => {
30131
+ var error74 = () => {
29386
30132
  const Sizable = {
29387
30133
  string: {
29388
30134
  unit: {
@@ -29548,12 +30294,12 @@ var error71 = () => {
29548
30294
  };
29549
30295
  function lt_default2() {
29550
30296
  return {
29551
- localeError: error71()
30297
+ localeError: error74()
29552
30298
  };
29553
30299
  }
29554
30300
 
29555
30301
  // node_modules/@opencode-ai/plugin/node_modules/zod/v4/locales/mk.js
29556
- var error72 = () => {
30302
+ var error75 = () => {
29557
30303
  const Sizable = {
29558
30304
  string: { unit: "\u0437\u043D\u0430\u0446\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
29559
30305
  file: { unit: "\u0431\u0430\u0458\u0442\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
@@ -29667,12 +30413,12 @@ var error72 = () => {
29667
30413
  };
29668
30414
  function mk_default2() {
29669
30415
  return {
29670
- localeError: error72()
30416
+ localeError: error75()
29671
30417
  };
29672
30418
  }
29673
30419
 
29674
30420
  // node_modules/@opencode-ai/plugin/node_modules/zod/v4/locales/ms.js
29675
- var error73 = () => {
30421
+ var error76 = () => {
29676
30422
  const Sizable = {
29677
30423
  string: { unit: "aksara", verb: "mempunyai" },
29678
30424
  file: { unit: "bait", verb: "mempunyai" },
@@ -29784,12 +30530,12 @@ var error73 = () => {
29784
30530
  };
29785
30531
  function ms_default2() {
29786
30532
  return {
29787
- localeError: error73()
30533
+ localeError: error76()
29788
30534
  };
29789
30535
  }
29790
30536
 
29791
30537
  // node_modules/@opencode-ai/plugin/node_modules/zod/v4/locales/nl.js
29792
- var error74 = () => {
30538
+ var error77 = () => {
29793
30539
  const Sizable = {
29794
30540
  string: { unit: "tekens" },
29795
30541
  file: { unit: "bytes" },
@@ -29902,12 +30648,12 @@ var error74 = () => {
29902
30648
  };
29903
30649
  function nl_default2() {
29904
30650
  return {
29905
- localeError: error74()
30651
+ localeError: error77()
29906
30652
  };
29907
30653
  }
29908
30654
 
29909
30655
  // node_modules/@opencode-ai/plugin/node_modules/zod/v4/locales/no.js
29910
- var error75 = () => {
30656
+ var error78 = () => {
29911
30657
  const Sizable = {
29912
30658
  string: { unit: "tegn", verb: "\xE5 ha" },
29913
30659
  file: { unit: "bytes", verb: "\xE5 ha" },
@@ -30019,12 +30765,12 @@ var error75 = () => {
30019
30765
  };
30020
30766
  function no_default2() {
30021
30767
  return {
30022
- localeError: error75()
30768
+ localeError: error78()
30023
30769
  };
30024
30770
  }
30025
30771
 
30026
30772
  // node_modules/@opencode-ai/plugin/node_modules/zod/v4/locales/ota.js
30027
- var error76 = () => {
30773
+ var error79 = () => {
30028
30774
  const Sizable = {
30029
30775
  string: { unit: "harf", verb: "olmal\u0131d\u0131r" },
30030
30776
  file: { unit: "bayt", verb: "olmal\u0131d\u0131r" },
@@ -30137,12 +30883,12 @@ var error76 = () => {
30137
30883
  };
30138
30884
  function ota_default2() {
30139
30885
  return {
30140
- localeError: error76()
30886
+ localeError: error79()
30141
30887
  };
30142
30888
  }
30143
30889
 
30144
30890
  // node_modules/@opencode-ai/plugin/node_modules/zod/v4/locales/ps.js
30145
- var error77 = () => {
30891
+ var error80 = () => {
30146
30892
  const Sizable = {
30147
30893
  string: { unit: "\u062A\u0648\u06A9\u064A", verb: "\u0648\u0644\u0631\u064A" },
30148
30894
  file: { unit: "\u0628\u0627\u06CC\u067C\u0633", verb: "\u0648\u0644\u0631\u064A" },
@@ -30260,12 +31006,12 @@ var error77 = () => {
30260
31006
  };
30261
31007
  function ps_default2() {
30262
31008
  return {
30263
- localeError: error77()
31009
+ localeError: error80()
30264
31010
  };
30265
31011
  }
30266
31012
 
30267
31013
  // node_modules/@opencode-ai/plugin/node_modules/zod/v4/locales/pl.js
30268
- var error78 = () => {
31014
+ var error81 = () => {
30269
31015
  const Sizable = {
30270
31016
  string: { unit: "znak\xF3w", verb: "mie\u0107" },
30271
31017
  file: { unit: "bajt\xF3w", verb: "mie\u0107" },
@@ -30378,12 +31124,12 @@ var error78 = () => {
30378
31124
  };
30379
31125
  function pl_default2() {
30380
31126
  return {
30381
- localeError: error78()
31127
+ localeError: error81()
30382
31128
  };
30383
31129
  }
30384
31130
 
30385
31131
  // node_modules/@opencode-ai/plugin/node_modules/zod/v4/locales/pt.js
30386
- var error79 = () => {
31132
+ var error82 = () => {
30387
31133
  const Sizable = {
30388
31134
  string: { unit: "caracteres", verb: "ter" },
30389
31135
  file: { unit: "bytes", verb: "ter" },
@@ -30495,7 +31241,7 @@ var error79 = () => {
30495
31241
  };
30496
31242
  function pt_default2() {
30497
31243
  return {
30498
- localeError: error79()
31244
+ localeError: error82()
30499
31245
  };
30500
31246
  }
30501
31247
 
@@ -30515,7 +31261,7 @@ function getRussianPlural2(count, one, few, many) {
30515
31261
  }
30516
31262
  return many;
30517
31263
  }
30518
- var error80 = () => {
31264
+ var error83 = () => {
30519
31265
  const Sizable = {
30520
31266
  string: {
30521
31267
  unit: {
@@ -30660,12 +31406,12 @@ var error80 = () => {
30660
31406
  };
30661
31407
  function ru_default2() {
30662
31408
  return {
30663
- localeError: error80()
31409
+ localeError: error83()
30664
31410
  };
30665
31411
  }
30666
31412
 
30667
31413
  // node_modules/@opencode-ai/plugin/node_modules/zod/v4/locales/sl.js
30668
- var error81 = () => {
31414
+ var error84 = () => {
30669
31415
  const Sizable = {
30670
31416
  string: { unit: "znakov", verb: "imeti" },
30671
31417
  file: { unit: "bajtov", verb: "imeti" },
@@ -30778,12 +31524,12 @@ var error81 = () => {
30778
31524
  };
30779
31525
  function sl_default2() {
30780
31526
  return {
30781
- localeError: error81()
31527
+ localeError: error84()
30782
31528
  };
30783
31529
  }
30784
31530
 
30785
31531
  // node_modules/@opencode-ai/plugin/node_modules/zod/v4/locales/sv.js
30786
- var error82 = () => {
31532
+ var error85 = () => {
30787
31533
  const Sizable = {
30788
31534
  string: { unit: "tecken", verb: "att ha" },
30789
31535
  file: { unit: "bytes", verb: "att ha" },
@@ -30897,12 +31643,12 @@ var error82 = () => {
30897
31643
  };
30898
31644
  function sv_default2() {
30899
31645
  return {
30900
- localeError: error82()
31646
+ localeError: error85()
30901
31647
  };
30902
31648
  }
30903
31649
 
30904
31650
  // node_modules/@opencode-ai/plugin/node_modules/zod/v4/locales/ta.js
30905
- var error83 = () => {
31651
+ var error86 = () => {
30906
31652
  const Sizable = {
30907
31653
  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" },
30908
31654
  file: { unit: "\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD", verb: "\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD" },
@@ -31015,12 +31761,12 @@ var error83 = () => {
31015
31761
  };
31016
31762
  function ta_default2() {
31017
31763
  return {
31018
- localeError: error83()
31764
+ localeError: error86()
31019
31765
  };
31020
31766
  }
31021
31767
 
31022
31768
  // node_modules/@opencode-ai/plugin/node_modules/zod/v4/locales/th.js
31023
- var error84 = () => {
31769
+ var error87 = () => {
31024
31770
  const Sizable = {
31025
31771
  string: { unit: "\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
31026
31772
  file: { unit: "\u0E44\u0E1A\u0E15\u0E4C", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
@@ -31133,7 +31879,7 @@ var error84 = () => {
31133
31879
  };
31134
31880
  function th_default2() {
31135
31881
  return {
31136
- localeError: error84()
31882
+ localeError: error87()
31137
31883
  };
31138
31884
  }
31139
31885
 
@@ -31158,7 +31904,7 @@ var parsedType7 = (data) => {
31158
31904
  }
31159
31905
  return t;
31160
31906
  };
31161
- var error85 = () => {
31907
+ var error88 = () => {
31162
31908
  const Sizable = {
31163
31909
  string: { unit: "karakter", verb: "olmal\u0131" },
31164
31910
  file: { unit: "bayt", verb: "olmal\u0131" },
@@ -31249,12 +31995,12 @@ var error85 = () => {
31249
31995
  };
31250
31996
  function tr_default2() {
31251
31997
  return {
31252
- localeError: error85()
31998
+ localeError: error88()
31253
31999
  };
31254
32000
  }
31255
32001
 
31256
32002
  // node_modules/@opencode-ai/plugin/node_modules/zod/v4/locales/uk.js
31257
- var error86 = () => {
32003
+ var error89 = () => {
31258
32004
  const Sizable = {
31259
32005
  string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
31260
32006
  file: { unit: "\u0431\u0430\u0439\u0442\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
@@ -31367,7 +32113,7 @@ var error86 = () => {
31367
32113
  };
31368
32114
  function uk_default2() {
31369
32115
  return {
31370
- localeError: error86()
32116
+ localeError: error89()
31371
32117
  };
31372
32118
  }
31373
32119
 
@@ -31377,7 +32123,7 @@ function ua_default2() {
31377
32123
  }
31378
32124
 
31379
32125
  // node_modules/@opencode-ai/plugin/node_modules/zod/v4/locales/ur.js
31380
- var error87 = () => {
32126
+ var error90 = () => {
31381
32127
  const Sizable = {
31382
32128
  string: { unit: "\u062D\u0631\u0648\u0641", verb: "\u06C1\u0648\u0646\u0627" },
31383
32129
  file: { unit: "\u0628\u0627\u0626\u0679\u0633", verb: "\u06C1\u0648\u0646\u0627" },
@@ -31490,12 +32236,12 @@ var error87 = () => {
31490
32236
  };
31491
32237
  function ur_default2() {
31492
32238
  return {
31493
- localeError: error87()
32239
+ localeError: error90()
31494
32240
  };
31495
32241
  }
31496
32242
 
31497
32243
  // node_modules/@opencode-ai/plugin/node_modules/zod/v4/locales/vi.js
31498
- var error88 = () => {
32244
+ var error91 = () => {
31499
32245
  const Sizable = {
31500
32246
  string: { unit: "k\xFD t\u1EF1", verb: "c\xF3" },
31501
32247
  file: { unit: "byte", verb: "c\xF3" },
@@ -31607,12 +32353,12 @@ var error88 = () => {
31607
32353
  };
31608
32354
  function vi_default2() {
31609
32355
  return {
31610
- localeError: error88()
32356
+ localeError: error91()
31611
32357
  };
31612
32358
  }
31613
32359
 
31614
32360
  // node_modules/@opencode-ai/plugin/node_modules/zod/v4/locales/zh-CN.js
31615
- var error89 = () => {
32361
+ var error92 = () => {
31616
32362
  const Sizable = {
31617
32363
  string: { unit: "\u5B57\u7B26", verb: "\u5305\u542B" },
31618
32364
  file: { unit: "\u5B57\u8282", verb: "\u5305\u542B" },
@@ -31724,12 +32470,12 @@ var error89 = () => {
31724
32470
  };
31725
32471
  function zh_CN_default2() {
31726
32472
  return {
31727
- localeError: error89()
32473
+ localeError: error92()
31728
32474
  };
31729
32475
  }
31730
32476
 
31731
32477
  // node_modules/@opencode-ai/plugin/node_modules/zod/v4/locales/zh-TW.js
31732
- var error90 = () => {
32478
+ var error93 = () => {
31733
32479
  const Sizable = {
31734
32480
  string: { unit: "\u5B57\u5143", verb: "\u64C1\u6709" },
31735
32481
  file: { unit: "\u4F4D\u5143\u7D44", verb: "\u64C1\u6709" },
@@ -31842,12 +32588,12 @@ var error90 = () => {
31842
32588
  };
31843
32589
  function zh_TW_default2() {
31844
32590
  return {
31845
- localeError: error90()
32591
+ localeError: error93()
31846
32592
  };
31847
32593
  }
31848
32594
 
31849
32595
  // node_modules/@opencode-ai/plugin/node_modules/zod/v4/locales/yo.js
31850
- var error91 = () => {
32596
+ var error94 = () => {
31851
32597
  const Sizable = {
31852
32598
  string: { unit: "\xE0mi", verb: "n\xED" },
31853
32599
  file: { unit: "bytes", verb: "n\xED" },
@@ -31958,7 +32704,7 @@ var error91 = () => {
31958
32704
  };
31959
32705
  function yo_default2() {
31960
32706
  return {
31961
- localeError: error91()
32707
+ localeError: error94()
31962
32708
  };
31963
32709
  }
31964
32710
 
@@ -32908,7 +33654,7 @@ var JSONSchemaGenerator2 = class {
32908
33654
  this.seen = /* @__PURE__ */ new Map();
32909
33655
  }
32910
33656
  process(schema, _params = { path: [], schemaPath: [] }) {
32911
- var _a2;
33657
+ var _a3;
32912
33658
  const def = schema._zod.def;
32913
33659
  const formatMap2 = {
32914
33660
  guid: "uuid",
@@ -33417,7 +34163,7 @@ var JSONSchemaGenerator2 = class {
33417
34163
  delete result.schema.default;
33418
34164
  }
33419
34165
  if (this.io === "input" && result.schema._prefault)
33420
- (_a2 = result.schema).default ?? (_a2.default = result.schema._prefault);
34166
+ (_a3 = result.schema).default ?? (_a3.default = result.schema._prefault);
33421
34167
  delete result.schema._prefault;
33422
34168
  const _result = this.seen.get(schema);
33423
34169
  return _result.schema;
@@ -34886,8 +35632,8 @@ async function validateSessionHasOutput(session, sessionID) {
34886
35632
  );
34887
35633
  });
34888
35634
  return hasContent;
34889
- } catch (error92) {
34890
- log(`${PARALLEL_LOG.DELEGATE_TASK} Error validating session output:`, error92);
35635
+ } catch (error95) {
35636
+ log(`${PARALLEL_LOG.DELEGATE_TASK} Error validating session output:`, error95);
34891
35637
  return true;
34892
35638
  }
34893
35639
  }
@@ -34947,8 +35693,8 @@ async function pollWithSafetyLimits(session, sessionID, startTime) {
34947
35693
  stablePolls = 0;
34948
35694
  lastMsgCount = count;
34949
35695
  }
34950
- } catch (error92) {
34951
- log(`${PARALLEL_LOG.DELEGATE_TASK} Poll error (continuing):`, error92);
35696
+ } catch (error95) {
35697
+ log(`${PARALLEL_LOG.DELEGATE_TASK} Poll error (continuing):`, error95);
34952
35698
  }
34953
35699
  }
34954
35700
  log(`${PARALLEL_LOG.DELEGATE_TASK} Max poll count reached`, { pollCount, elapsed: Date.now() - startTime });
@@ -34967,8 +35713,8 @@ async function extractSessionResult(session, sessionID) {
34967
35713
  const lastMsg = messages.filter((m) => m.info?.role === MESSAGE_ROLES.ASSISTANT).reverse()[0];
34968
35714
  const text = lastMsg?.parts?.filter((p) => p.type === PART_TYPES.TEXT || p.type === PART_TYPES.REASONING).map((p) => p.text ?? "").join("\n") || "";
34969
35715
  return text;
34970
- } catch (error92) {
34971
- log(`${PARALLEL_LOG.DELEGATE_TASK} Error extracting result:`, error92);
35716
+ } catch (error95) {
35717
+ log(`${PARALLEL_LOG.DELEGATE_TASK} Error extracting result:`, error95);
34972
35718
  return "(Error extracting result)";
34973
35719
  }
34974
35720
  }
@@ -35067,8 +35813,8 @@ Session: \`${task.sessionID}\` - Use get_task_result or resume later.`;
35067
35813
  return `${OUTPUT_LABEL.RESUMED_DONE} (${Math.floor(pollResult.elapsedMs / 1e3)}s)
35068
35814
 
35069
35815
  ${text || "(No output)"}`;
35070
- } catch (error92) {
35071
- return `${OUTPUT_LABEL.ERROR} Resume failed: ${error92 instanceof Error ? error92.message : String(error92)}`;
35816
+ } catch (error95) {
35817
+ return `${OUTPUT_LABEL.ERROR} Resume failed: ${error95 instanceof Error ? error95.message : String(error95)}`;
35072
35818
  }
35073
35819
  }
35074
35820
  if (background === true) {
@@ -35086,8 +35832,8 @@ ${text || "(No output)"}`;
35086
35832
  presets_exports.taskStarted(task.id, agent);
35087
35833
  return `${OUTPUT_LABEL.SPAWNED} task: \`${task.id}\` (${agent})
35088
35834
  Session: \`${task.sessionID}\` (save for resume)`;
35089
- } catch (error92) {
35090
- return `${OUTPUT_LABEL.ERROR} Failed: ${error92 instanceof Error ? error92.message : String(error92)}`;
35835
+ } catch (error95) {
35836
+ return `${OUTPUT_LABEL.ERROR} Failed: ${error95 instanceof Error ? error95.message : String(error95)}`;
35091
35837
  }
35092
35838
  }
35093
35839
  try {
@@ -35127,9 +35873,9 @@ Session: \`${sessionID}\` - Use ${TOOL_NAMES.GET_TASK_RESULT} or resume later.`;
35127
35873
  Session: \`${sessionID}\` (save for resume)
35128
35874
 
35129
35875
  ${text || "(No output)"}`;
35130
- } catch (error92) {
35131
- log(`${PARALLEL_LOG.DELEGATE_TASK} Sync: error`, error92);
35132
- return `${OUTPUT_LABEL.ERROR} Failed: ${error92 instanceof Error ? error92.message : String(error92)}`;
35876
+ } catch (error95) {
35877
+ log(`${PARALLEL_LOG.DELEGATE_TASK} Sync: error`, error95);
35878
+ return `${OUTPUT_LABEL.ERROR} Failed: ${error95 instanceof Error ? error95.message : String(error95)}`;
35133
35879
  }
35134
35880
  }
35135
35881
  });
@@ -35786,8 +36532,8 @@ function readLoopState(directory) {
35786
36532
  try {
35787
36533
  const content = readFileSync(filePath, "utf-8");
35788
36534
  return JSON.parse(content);
35789
- } catch (error92) {
35790
- log(`[${MISSION_CONTROL.LOG_SOURCE}] Failed to read state: ${error92}`);
36535
+ } catch (error95) {
36536
+ log(`[${MISSION_CONTROL.LOG_SOURCE}] Failed to read state: ${error95}`);
35791
36537
  return null;
35792
36538
  }
35793
36539
  }
@@ -35800,8 +36546,8 @@ function writeLoopState(directory, state2) {
35800
36546
  }
35801
36547
  writeFileSync(filePath, JSON.stringify(state2, null, 2), "utf-8");
35802
36548
  return true;
35803
- } catch (error92) {
35804
- log(`[${MISSION_CONTROL.LOG_SOURCE}] Failed to write state: ${error92}`);
36549
+ } catch (error95) {
36550
+ log(`[${MISSION_CONTROL.LOG_SOURCE}] Failed to write state: ${error95}`);
35805
36551
  return false;
35806
36552
  }
35807
36553
  }
@@ -35813,8 +36559,8 @@ function clearLoopState(directory) {
35813
36559
  try {
35814
36560
  unlinkSync(filePath);
35815
36561
  return true;
35816
- } catch (error92) {
35817
- log(`[${MISSION_CONTROL.LOG_SOURCE}] Failed to clear state: ${error92}`);
36562
+ } catch (error95) {
36563
+ log(`[${MISSION_CONTROL.LOG_SOURCE}] Failed to clear state: ${error95}`);
35818
36564
  return false;
35819
36565
  }
35820
36566
  }
@@ -36276,8 +37022,8 @@ function readChecklist(directory) {
36276
37022
  try {
36277
37023
  const content = readFileSync2(filePath, "utf-8");
36278
37024
  return parseChecklist(content);
36279
- } catch (error92) {
36280
- log(`[checklist] Failed to read checklist: ${error92}`);
37025
+ } catch (error95) {
37026
+ log(`[checklist] Failed to read checklist: ${error95}`);
36281
37027
  return [];
36282
37028
  }
36283
37029
  }
@@ -36387,8 +37133,8 @@ function verifyMissionCompletion(directory) {
36387
37133
  );
36388
37134
  }
36389
37135
  }
36390
- } catch (error92) {
36391
- result.errors.push(`Failed to read TODO: ${error92}`);
37136
+ } catch (error95) {
37137
+ result.errors.push(`Failed to read TODO: ${error95}`);
36392
37138
  }
36393
37139
  } else if (!hasChecklist) {
36394
37140
  result.errors.push(`TODO file not found at ${PATHS.TODO}`);
@@ -36407,8 +37153,8 @@ function verifyMissionCompletion(directory) {
36407
37153
  `Sync issues not resolved: ${result.syncIssuesCount} issue(s) remain`
36408
37154
  );
36409
37155
  }
36410
- } catch (error92) {
36411
- log(`[verification] Failed to read sync issues file: ${error92}`);
37156
+ } catch (error95) {
37157
+ log(`[verification] Failed to read sync issues file: ${error95}`);
36412
37158
  result.syncIssuesEmpty = true;
36413
37159
  }
36414
37160
  }
@@ -37214,7 +37960,7 @@ There was a temporary processing issue. Please continue from where you left off.
37214
37960
  3. Continue execution
37215
37961
  </action>
37216
37962
  </recovery>`;
37217
- async function handleSessionError(client, sessionID, error92, properties) {
37963
+ async function handleSessionError(client, sessionID, error95, properties) {
37218
37964
  const state2 = getState2(sessionID);
37219
37965
  if (state2.isRecovering) {
37220
37966
  log("[session-recovery] Already recovering, skipping", { sessionID });
@@ -37227,9 +37973,9 @@ async function handleSessionError(client, sessionID, error92, properties) {
37227
37973
  }
37228
37974
  state2.lastErrorTime = now;
37229
37975
  state2.errorCount++;
37230
- const errorType = detectErrorType(error92);
37976
+ const errorType = detectErrorType(error95);
37231
37977
  if (!errorType) {
37232
- log("[session-recovery] Unknown error type, using default handler", { sessionID, error: error92 });
37978
+ log("[session-recovery] Unknown error type, using default handler", { sessionID, error: error95 });
37233
37979
  return false;
37234
37980
  }
37235
37981
  log("[session-recovery] Detected error type", { sessionID, errorType, errorCount: state2.errorCount });
@@ -37255,7 +38001,7 @@ async function handleSessionError(client, sessionID, error92, properties) {
37255
38001
  case ERROR_TYPE.RATE_LIMIT:
37256
38002
  const ctx = {
37257
38003
  sessionId: sessionID,
37258
- error: error92 instanceof Error ? error92 : new Error(String(error92)),
38004
+ error: error95 instanceof Error ? error95 : new Error(String(error95)),
37259
38005
  attempt: state2.errorCount,
37260
38006
  timestamp: /* @__PURE__ */ new Date()
37261
38007
  };
@@ -37395,8 +38141,8 @@ async function showCountdownToast(client, secondsRemaining, incompleteCount) {
37395
38141
  }
37396
38142
  });
37397
38143
  }
37398
- } catch (error92) {
37399
- log(`[todo-continuation] Toast failed:`, error92);
38144
+ } catch (error95) {
38145
+ log(`[todo-continuation] Toast failed:`, error95);
37400
38146
  }
37401
38147
  }
37402
38148
  async function injectContinuation(client, directory, sessionID, todos) {
@@ -37434,16 +38180,16 @@ async function injectContinuation(client, directory, sessionID, todos) {
37434
38180
  body: {
37435
38181
  parts: [{ type: PART_TYPES.TEXT, text: prompt }]
37436
38182
  }
37437
- }).catch((error92) => {
37438
- log("[todo-continuation] Failed to inject continuation", { sessionID, error: error92 });
38183
+ }).catch((error95) => {
38184
+ log("[todo-continuation] Failed to inject continuation", { sessionID, error: error95 });
37439
38185
  });
37440
38186
  log("[todo-continuation] Injected continuation prompt (async)", {
37441
38187
  sessionID,
37442
38188
  incompleteCount: getIncompleteCount(todos),
37443
38189
  progress: formatProgress(todos)
37444
38190
  });
37445
- } catch (error92) {
37446
- log("[todo-continuation] Failed to trigger async continuation", { sessionID, error: error92 });
38191
+ } catch (error95) {
38192
+ log("[todo-continuation] Failed to trigger async continuation", { sessionID, error: error95 });
37447
38193
  }
37448
38194
  }
37449
38195
  async function handleSessionIdle(client, directory, sessionID, mainSessionID) {
@@ -37480,8 +38226,8 @@ async function handleSessionIdle(client, directory, sessionID, mainSessionID) {
37480
38226
  try {
37481
38227
  const response = await client.session.todo({ path: { id: sessionID } });
37482
38228
  todos = parseTodos(response.data ?? response);
37483
- } catch (error92) {
37484
- log("[todo-continuation] Failed to fetch todos", { sessionID, error: error92 });
38229
+ } catch (error95) {
38230
+ log("[todo-continuation] Failed to fetch todos", { sessionID, error: error95 });
37485
38231
  return;
37486
38232
  }
37487
38233
  const hasBuiltinWork = hasRemainingWork(todos);
@@ -37544,9 +38290,9 @@ function handleUserMessage(sessionID) {
37544
38290
  state2.isAborting = false;
37545
38291
  state2.abortDetectedAt = void 0;
37546
38292
  }
37547
- function handleSessionError2(sessionID, error92) {
38293
+ function handleSessionError2(sessionID, error95) {
37548
38294
  const state2 = getState3(sessionID);
37549
- const errorObj = error92;
38295
+ const errorObj = error95;
37550
38296
  if (errorObj?.name === "MessageAbortedError" || errorObj?.name === "AbortError") {
37551
38297
  state2.abortDetectedAt = Date.now();
37552
38298
  log("[todo-continuation] Abort detected", { sessionID, errorName: errorObj.name });
@@ -37768,8 +38514,8 @@ var PluginManager = class _PluginManager {
37768
38514
  await this.loadPlugin(path4.join(pluginsDir, file3));
37769
38515
  }
37770
38516
  }
37771
- } catch (error92) {
37772
- log(`[${LOG_PREFIX.PLUGIN_MANAGER}] Error reading plugins directory: ${error92}`);
38517
+ } catch (error95) {
38518
+ log(`[${LOG_PREFIX.PLUGIN_MANAGER}] Error reading plugins directory: ${error95}`);
37773
38519
  }
37774
38520
  }
37775
38521
  async loadPlugin(pluginPath) {
@@ -37800,8 +38546,8 @@ var PluginManager = class _PluginManager {
37800
38546
  log(`[${LOG_PREFIX.PLUGIN_MANAGER}] Registered hooks from plugin ${plugin.name}`);
37801
38547
  }
37802
38548
  this.plugins.set(plugin.name, plugin);
37803
- } catch (error92) {
37804
- log(`[${LOG_PREFIX.PLUGIN_MANAGER}] Failed to load plugin ${pluginPath}: ${error92}`);
38549
+ } catch (error95) {
38550
+ log(`[${LOG_PREFIX.PLUGIN_MANAGER}] Failed to load plugin ${pluginPath}: ${error95}`);
37805
38551
  }
37806
38552
  }
37807
38553
  /**
@@ -37820,8 +38566,8 @@ var PluginManager = class _PluginManager {
37820
38566
  await plugin.cleanup();
37821
38567
  }
37822
38568
  log(`[${LOG_PREFIX.PLUGIN_MANAGER}] Cleaned up plugin: ${name}`);
37823
- } catch (error92) {
37824
- log(`[${LOG_PREFIX.PLUGIN_MANAGER}] Error cleaning up plugin ${name}: ${error92}`);
38569
+ } catch (error95) {
38570
+ log(`[${LOG_PREFIX.PLUGIN_MANAGER}] Error cleaning up plugin ${name}: ${error95}`);
37825
38571
  }
37826
38572
  }
37827
38573
  this.plugins.clear();
@@ -37936,8 +38682,8 @@ var TodoSyncService = class {
37936
38682
  fs5.mkdirSync(path5.dirname(this.todoPath), { recursive: true });
37937
38683
  fs5.writeFileSync(this.todoPath, header, "utf-8");
37938
38684
  log("[TodoSync] Created .opencode/todo.md");
37939
- } catch (error92) {
37940
- log(`[TodoSync] Failed to create todo.md: ${error92}`);
38685
+ } catch (error95) {
38686
+ log(`[TodoSync] Failed to create todo.md: ${error95}`);
37941
38687
  }
37942
38688
  }
37943
38689
  }
@@ -37957,8 +38703,8 @@ var TodoSyncService = class {
37957
38703
  this.fileTodos = parseTodoMd(content);
37958
38704
  this.broadcastUpdate();
37959
38705
  }
37960
- } catch (error92) {
37961
- log(`[TodoSync] Failed to read todo.md: ${error92}`);
38706
+ } catch (error95) {
38707
+ log(`[TodoSync] Failed to read todo.md: ${error95}`);
37962
38708
  } finally {
37963
38709
  if (fileHandle) {
37964
38710
  await fileHandle.close().catch(() => {
@@ -38229,7 +38975,7 @@ var CleanupScheduler = class {
38229
38975
  }
38230
38976
  log(`[Cleanup] Pruned ${toDelete.length} documents due to size limit`);
38231
38977
  }
38232
- } catch (error92) {
38978
+ } catch (error95) {
38233
38979
  }
38234
38980
  }
38235
38981
  async rotateHistory() {
@@ -38264,8 +39010,8 @@ var CleanupScheduler = class {
38264
39010
  }
38265
39011
  }
38266
39012
  log("[Cleanup] Rotated and compressed todo history");
38267
- } catch (error92) {
38268
- log(`[Cleanup] History rotation error: ${error92}`);
39013
+ } catch (error95) {
39014
+ log(`[Cleanup] History rotation error: ${error95}`);
38269
39015
  }
38270
39016
  }
38271
39017
  /**
@@ -38290,8 +39036,8 @@ var CleanupScheduler = class {
38290
39036
  if (cleanedCount > 0) {
38291
39037
  log(`[Cleanup] Removed ${cleanedCount} old session files (>7 days)`);
38292
39038
  }
38293
- } catch (error92) {
38294
- log(`[Cleanup] Session cleanup error: ${error92}`);
39039
+ } catch (error95) {
39040
+ log(`[Cleanup] Session cleanup error: ${error95}`);
38295
39041
  }
38296
39042
  }
38297
39043
  /**
@@ -38316,8 +39062,8 @@ var CleanupScheduler = class {
38316
39062
  if (fs8.existsSync(packageLock)) {
38317
39063
  await fs8.promises.unlink(packageLock);
38318
39064
  }
38319
- } catch (error92) {
38320
- log(`[Cleanup] node_modules cleanup error: ${error92}`);
39065
+ } catch (error95) {
39066
+ log(`[Cleanup] node_modules cleanup error: ${error95}`);
38321
39067
  }
38322
39068
  }
38323
39069
  /**
@@ -38351,8 +39097,8 @@ var CleanupScheduler = class {
38351
39097
  }
38352
39098
  }
38353
39099
  log(`[Cleanup] Pruned ${toDelete.length} files to enforce limit`);
38354
- } catch (error92) {
38355
- log(`[Cleanup] File limit enforcement error: ${error92}`);
39100
+ } catch (error95) {
39101
+ log(`[Cleanup] File limit enforcement error: ${error95}`);
38356
39102
  }
38357
39103
  }
38358
39104
  /**
@@ -38551,23 +39297,44 @@ import { fileURLToPath } from "url";
38551
39297
  import { platform, arch } from "os";
38552
39298
  import { existsSync as existsSync7 } from "fs";
38553
39299
  var __dirname = dirname4(fileURLToPath(import.meta.url));
38554
- function getBinaryPath() {
38555
- const binDir = join10(__dirname, "..", "..", "bin");
38556
- const os = platform();
38557
- const cpu = arch();
38558
- let binaryName;
39300
+ function getPlatformBinaryName(os = platform(), cpu = arch()) {
38559
39301
  if (os === PLATFORM.WIN32) {
38560
- binaryName = "orchestrator-windows-x64.exe";
38561
- } else if (os === PLATFORM.DARWIN) {
38562
- binaryName = cpu === "arm64" ? "orchestrator-macos-arm64" : "orchestrator-macos-x64";
38563
- } else {
38564
- binaryName = cpu === "arm64" ? "orchestrator-linux-arm64" : "orchestrator-linux-x64";
39302
+ return "orchestrator-windows-x64.exe";
39303
+ }
39304
+ if (os === PLATFORM.DARWIN) {
39305
+ return cpu === "arm64" ? "orchestrator-macos-arm64" : "orchestrator-macos-x64";
39306
+ }
39307
+ return cpu === "arm64" ? "orchestrator-linux-arm64" : "orchestrator-linux-x64";
39308
+ }
39309
+ function getCandidateBinDirs(moduleDir = __dirname) {
39310
+ return [
39311
+ join10(moduleDir, "..", "bin"),
39312
+ join10(moduleDir, "..", "..", "bin")
39313
+ ];
39314
+ }
39315
+ function resolveBinaryPath(options = {}) {
39316
+ const moduleDir = options.moduleDir ?? __dirname;
39317
+ const os = options.os ?? platform();
39318
+ const cpu = options.cpu ?? arch();
39319
+ const exists = options.exists ?? existsSync7;
39320
+ const binaryName = getPlatformBinaryName(os, cpu);
39321
+ for (const binDir of getCandidateBinDirs(moduleDir)) {
39322
+ const binaryPath = join10(binDir, binaryName);
39323
+ if (exists(binaryPath)) {
39324
+ return binaryPath;
39325
+ }
38565
39326
  }
38566
- let binaryPath = join10(binDir, binaryName);
38567
- if (!existsSync7(binaryPath)) {
38568
- binaryPath = join10(binDir, os === PLATFORM.WIN32 ? "orchestrator.exe" : "orchestrator");
39327
+ const fallbackName = os === PLATFORM.WIN32 ? "orchestrator.exe" : "orchestrator";
39328
+ for (const binDir of getCandidateBinDirs(moduleDir)) {
39329
+ const fallbackPath = join10(binDir, fallbackName);
39330
+ if (exists(fallbackPath)) {
39331
+ return fallbackPath;
39332
+ }
38569
39333
  }
38570
- return binaryPath;
39334
+ return join10(getCandidateBinDirs(moduleDir)[0], binaryName);
39335
+ }
39336
+ function getBinaryPath() {
39337
+ return resolveBinaryPath();
38571
39338
  }
38572
39339
 
38573
39340
  // src/tools/rust-pool.ts
@@ -39152,9 +39919,9 @@ var listBackgroundTool = tool({
39152
39919
  }).join("\n");
39153
39920
  const running = tasks.filter((t) => t.status === BACKGROUND_STATUS.RUNNING).length;
39154
39921
  const done = tasks.filter((t) => t.status === BACKGROUND_STATUS.DONE).length;
39155
- const error92 = tasks.filter((t) => t.status === BACKGROUND_STATUS.ERROR || t.status === BACKGROUND_STATUS.TIMEOUT).length;
39922
+ const error95 = tasks.filter((t) => t.status === BACKGROUND_STATUS.ERROR || t.status === BACKGROUND_STATUS.TIMEOUT).length;
39156
39923
  return `Background Tasks (${tasks.length})
39157
- Running: ${running} | Done: ${done} | Error: ${error92}
39924
+ Running: ${running} | Done: ${done} | Error: ${error95}
39158
39925
 
39159
39926
  | ID | Status | Command | Duration |
39160
39927
  |----|--------|---------|----------|
@@ -39343,12 +40110,12 @@ Source: ${url3}
39343
40110
  ---
39344
40111
 
39345
40112
  ${truncated}`;
39346
- } catch (error92) {
39347
- if (error92 instanceof Error) {
39348
- if (error92.name === "TimeoutError") {
40113
+ } catch (error95) {
40114
+ if (error95 instanceof Error) {
40115
+ if (error95.name === "TimeoutError") {
39349
40116
  return `${OUTPUT_LABEL.TIMEOUT} Request timed out after 30 seconds`;
39350
40117
  }
39351
- return `${OUTPUT_LABEL.ERROR} Fetch error: ${error92.message}`;
40118
+ return `${OUTPUT_LABEL.ERROR} Fetch error: ${error95.message}`;
39352
40119
  }
39353
40120
  return `${OUTPUT_LABEL.ERROR} Unknown error occurred`;
39354
40121
  }
@@ -39432,8 +40199,8 @@ async function searchBrave(query) {
39432
40199
  }
39433
40200
  }
39434
40201
  return results;
39435
- } catch (error92) {
39436
- log("Brave search error:", error92);
40202
+ } catch (error95) {
40203
+ log("Brave search error:", error95);
39437
40204
  return [];
39438
40205
  }
39439
40206
  }
@@ -39481,8 +40248,8 @@ async function searchDuckDuckGo(query) {
39481
40248
  }
39482
40249
  }
39483
40250
  return results;
39484
- } catch (error92) {
39485
- log("DuckDuckGo search error:", error92);
40251
+ } catch (error95) {
40252
+ log("DuckDuckGo search error:", error95);
39486
40253
  return [];
39487
40254
  }
39488
40255
  }
@@ -39512,8 +40279,8 @@ async function searchDuckDuckGoHtml(query) {
39512
40279
  });
39513
40280
  }
39514
40281
  return results;
39515
- } catch (error92) {
39516
- log("DuckDuckGo HTML search error:", error92);
40282
+ } catch (error95) {
40283
+ log("DuckDuckGo HTML search error:", error95);
39517
40284
  return [];
39518
40285
  }
39519
40286
  }
@@ -39742,8 +40509,8 @@ async function searchGrepApp(query, options) {
39742
40509
  }
39743
40510
  }
39744
40511
  return results;
39745
- } catch (error92) {
39746
- log("grep.app search error:", error92);
40512
+ } catch (error95) {
40513
+ log("grep.app search error:", error95);
39747
40514
  return [];
39748
40515
  }
39749
40516
  }
@@ -39783,8 +40550,8 @@ async function searchGitHub(query, options) {
39783
40550
  }
39784
40551
  }
39785
40552
  return results;
39786
- } catch (error92) {
39787
- log("GitHub search error:", error92);
40553
+ } catch (error95) {
40554
+ log("GitHub search error:", error95);
39788
40555
  return [];
39789
40556
  }
39790
40557
  }
@@ -39882,7 +40649,7 @@ var DiagnosticsCache = class {
39882
40649
  this.cache.delete(key);
39883
40650
  return null;
39884
40651
  }
39885
- } catch (error92) {
40652
+ } catch (error95) {
39886
40653
  this.cache.delete(key);
39887
40654
  return null;
39888
40655
  }
@@ -39898,7 +40665,7 @@ var DiagnosticsCache = class {
39898
40665
  timestamp: Date.now(),
39899
40666
  filesMtime
39900
40667
  });
39901
- } catch (error92) {
40668
+ } catch (error95) {
39902
40669
  }
39903
40670
  }
39904
40671
  getCacheKey(directory, file3) {
@@ -40107,8 +40874,8 @@ function findClaudeRules(startDir = process.cwd()) {
40107
40874
  return formatRules("Copilot Instructions", fs10.readFileSync(copilotPath, "utf-8"));
40108
40875
  }
40109
40876
  return null;
40110
- } catch (error92) {
40111
- log(`[compatibility] Error finding Claude rules: ${error92}`);
40877
+ } catch (error95) {
40878
+ log(`[compatibility] Error finding Claude rules: ${error95}`);
40112
40879
  return null;
40113
40880
  }
40114
40881
  }
@@ -40805,21 +41572,21 @@ function createEventHandler(ctx) {
40805
41572
  }
40806
41573
  if (event.type === SESSION_EVENTS.ERROR) {
40807
41574
  const sessionID = event.properties?.sessionId || event.properties?.sessionID || "";
40808
- const error92 = event.properties?.error;
41575
+ const error95 = event.properties?.error;
40809
41576
  if (sessionID) {
40810
- handleSessionError2(sessionID, error92);
41577
+ handleSessionError2(sessionID, error95);
40811
41578
  handleAbort(sessionID);
40812
41579
  }
40813
- if (sessionID && error92) {
41580
+ if (sessionID && error95) {
40814
41581
  const recovered = await handleSessionError(
40815
41582
  client,
40816
41583
  sessionID,
40817
- error92,
41584
+ error95,
40818
41585
  event.properties
40819
41586
  );
40820
41587
  if (recovered) return;
40821
41588
  }
40822
- presets_exports.taskFailed("session", String(error92).slice(0, 50));
41589
+ presets_exports.taskFailed("session", String(error95).slice(0, 50));
40823
41590
  }
40824
41591
  if (event.type === MESSAGE_EVENTS.UPDATED) {
40825
41592
  const messageProperties = event.properties;
@@ -40951,12 +41718,12 @@ function createAssistantDoneHandler(ctx) {
40951
41718
  client.session.prompt({
40952
41719
  path: { id: sessionID },
40953
41720
  body: { parts: parts2 }
40954
- }).catch((error92) => {
40955
- log("[assistant-done-handler] Failed to inject continuation prompts", { sessionID, error: error92 });
41721
+ }).catch((error95) => {
41722
+ log("[assistant-done-handler] Failed to inject continuation prompts", { sessionID, error: error95 });
40956
41723
  });
40957
41724
  }
40958
- } catch (error92) {
40959
- log("[assistant-done-handler] Failed to inject continuation prompts", { sessionID, error: error92 });
41725
+ } catch (error95) {
41726
+ log("[assistant-done-handler] Failed to inject continuation prompts", { sessionID, error: error95 });
40960
41727
  }
40961
41728
  }
40962
41729
  };