opencode-orchestrator 1.2.68 → 1.2.70
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.
- package/LICENSE +21 -21
- package/README.md +355 -355
- package/bin/orchestrator-linux-arm64 +0 -0
- package/bin/orchestrator-linux-x64 +0 -0
- package/dist/agents/commander.d.ts +0 -0
- package/dist/agents/definitions.d.ts +0 -0
- package/dist/agents/prompts/01_philosophy/anti_hallucination.d.ts +0 -0
- package/dist/agents/prompts/01_philosophy/core.d.ts +0 -0
- package/dist/agents/prompts/01_philosophy/execution_assurance.d.ts +0 -0
- package/dist/agents/prompts/01_philosophy/index.d.ts +0 -0
- package/dist/agents/prompts/01_philosophy/metadata.d.ts +0 -0
- package/dist/agents/prompts/01_philosophy/modularity.d.ts +0 -0
- package/dist/agents/prompts/02_discovery/agents/discovery_commander.d.ts +0 -0
- package/dist/agents/prompts/02_discovery/agents/discovery_planner.d.ts +0 -0
- package/dist/agents/prompts/02_discovery/agents/index.d.ts +0 -0
- package/dist/agents/prompts/02_discovery/discovery_core.d.ts +0 -0
- package/dist/agents/prompts/02_discovery/discovery_environment.d.ts +0 -0
- package/dist/agents/prompts/02_discovery/discovery_skills.d.ts +0 -0
- package/dist/agents/prompts/02_discovery/discovery_workspace.d.ts +0 -0
- package/dist/agents/prompts/02_discovery/index.d.ts +0 -0
- package/dist/agents/prompts/03_planning/agents/index.d.ts +0 -0
- package/dist/agents/prompts/03_planning/agents/planning_commander.d.ts +0 -0
- package/dist/agents/prompts/03_planning/agents/planning_planner.d.ts +0 -0
- package/dist/agents/prompts/03_planning/agents/planning_reviewer.d.ts +0 -0
- package/dist/agents/prompts/03_planning/index.d.ts +0 -0
- package/dist/agents/prompts/03_planning/planning_core.d.ts +0 -0
- package/dist/agents/prompts/03_planning/planning_decomposition.d.ts +0 -0
- package/dist/agents/prompts/03_planning/planning_file_planning.d.ts +0 -0
- package/dist/agents/prompts/03_planning/planning_parallel.d.ts +0 -0
- package/dist/agents/prompts/03_planning/planning_research.d.ts +0 -0
- package/dist/agents/prompts/03_planning/planning_todo_format.d.ts +0 -0
- package/dist/agents/prompts/03_planning/planning_todo_rules.d.ts +0 -0
- package/dist/agents/prompts/03_planning/planning_todo_sync.d.ts +0 -0
- package/dist/agents/prompts/04_execution/agents/execution_commander.d.ts +0 -0
- package/dist/agents/prompts/04_execution/agents/execution_worker.d.ts +0 -0
- package/dist/agents/prompts/04_execution/agents/index.d.ts +0 -0
- package/dist/agents/prompts/04_execution/execution_core.d.ts +0 -0
- package/dist/agents/prompts/04_execution/execution_delegation.d.ts +0 -0
- package/dist/agents/prompts/04_execution/execution_error_handling.d.ts +0 -0
- package/dist/agents/prompts/04_execution/execution_file_assignment.d.ts +0 -0
- package/dist/agents/prompts/04_execution/execution_hyper_parallel.d.ts +0 -0
- package/dist/agents/prompts/04_execution/execution_isolation.d.ts +0 -0
- package/dist/agents/prompts/04_execution/execution_quality.d.ts +0 -0
- package/dist/agents/prompts/04_execution/execution_strategy.d.ts +0 -0
- package/dist/agents/prompts/04_execution/execution_tdd.d.ts +0 -0
- package/dist/agents/prompts/04_execution/execution_workflow.d.ts +0 -0
- package/dist/agents/prompts/04_execution/index.d.ts +0 -0
- package/dist/agents/prompts/05_verification/agents/index.d.ts +0 -0
- package/dist/agents/prompts/05_verification/agents/verification_commander.d.ts +0 -0
- package/dist/agents/prompts/05_verification/agents/verification_reviewer.d.ts +0 -0
- package/dist/agents/prompts/05_verification/index.d.ts +0 -0
- package/dist/agents/prompts/05_verification/verification_async_monitoring.d.ts +0 -0
- package/dist/agents/prompts/05_verification/verification_build.d.ts +0 -0
- package/dist/agents/prompts/05_verification/verification_core.d.ts +0 -0
- package/dist/agents/prompts/05_verification/verification_evidence.d.ts +0 -0
- package/dist/agents/prompts/05_verification/verification_integration.d.ts +0 -0
- package/dist/agents/prompts/05_verification/verification_strategy.d.ts +0 -0
- package/dist/agents/prompts/05_verification/verification_sync_check.d.ts +0 -0
- package/dist/agents/prompts/05_verification/verification_sync_handling.d.ts +0 -0
- package/dist/agents/prompts/05_verification/verification_test.d.ts +0 -0
- package/dist/agents/prompts/06_mission/agents/index.d.ts +0 -0
- package/dist/agents/prompts/06_mission/agents/mission_commander.d.ts +0 -0
- package/dist/agents/prompts/06_mission/index.d.ts +0 -0
- package/dist/agents/prompts/06_mission/mission_completion_conditions.d.ts +0 -0
- package/dist/agents/prompts/06_mission/mission_core.d.ts +0 -0
- package/dist/agents/prompts/06_mission/mission_lifecycle.d.ts +0 -0
- package/dist/agents/prompts/06_mission/mission_loop_continuation.d.ts +0 -0
- package/dist/agents/prompts/06_mission/mission_recovery.d.ts +0 -0
- package/dist/agents/prompts/06_mission/mission_status_tracking.d.ts +0 -0
- package/dist/agents/prompts/07_agents/commander/commander_forbidden.d.ts +0 -0
- package/dist/agents/prompts/07_agents/commander/commander_identity.d.ts +0 -0
- package/dist/agents/prompts/07_agents/commander/commander_mandate.d.ts +0 -0
- package/dist/agents/prompts/07_agents/commander/commander_required.d.ts +0 -0
- package/dist/agents/prompts/07_agents/commander/commander_role.d.ts +0 -0
- package/dist/agents/prompts/07_agents/commander/index.d.ts +0 -0
- package/dist/agents/prompts/07_agents/planner/index.d.ts +0 -0
- package/dist/agents/prompts/07_agents/planner/planner_forbidden.d.ts +0 -0
- package/dist/agents/prompts/07_agents/planner/planner_identity.d.ts +0 -0
- package/dist/agents/prompts/07_agents/planner/planner_mandate.d.ts +0 -0
- package/dist/agents/prompts/07_agents/planner/planner_required.d.ts +0 -0
- package/dist/agents/prompts/07_agents/reviewer/index.d.ts +0 -0
- package/dist/agents/prompts/07_agents/reviewer/reviewer_forbidden.d.ts +0 -0
- package/dist/agents/prompts/07_agents/reviewer/reviewer_identity.d.ts +0 -0
- package/dist/agents/prompts/07_agents/reviewer/reviewer_mandate.d.ts +0 -0
- package/dist/agents/prompts/07_agents/reviewer/reviewer_required.d.ts +0 -0
- package/dist/agents/prompts/07_agents/worker/index.d.ts +0 -0
- package/dist/agents/prompts/07_agents/worker/worker_forbidden.d.ts +0 -0
- package/dist/agents/prompts/07_agents/worker/worker_identity.d.ts +0 -0
- package/dist/agents/prompts/07_agents/worker/worker_mandate.d.ts +0 -0
- package/dist/agents/prompts/07_agents/worker/worker_required.d.ts +0 -0
- package/dist/agents/prompts/08_tools/agents/index.d.ts +0 -0
- package/dist/agents/prompts/08_tools/agents/tools_reviewer.d.ts +0 -0
- package/dist/agents/prompts/08_tools/agents/tools_worker.d.ts +0 -0
- package/dist/agents/prompts/08_tools/index.d.ts +0 -0
- package/dist/agents/prompts/08_tools/tools_ast.d.ts +0 -0
- package/dist/agents/prompts/08_tools/tools_code_editing.d.ts +0 -0
- package/dist/agents/prompts/08_tools/tools_core.d.ts +0 -0
- package/dist/agents/prompts/08_tools/tools_lsp.d.ts +0 -0
- package/dist/agents/prompts/08_tools/tools_search.d.ts +0 -0
- package/dist/agents/prompts/08_tools/tools_testing.d.ts +0 -0
- package/dist/agents/prompts/index.d.ts +0 -0
- package/dist/agents/subagents/planner.d.ts +0 -0
- package/dist/agents/subagents/reviewer.d.ts +0 -0
- package/dist/agents/subagents/worker.d.ts +0 -0
- package/dist/core/agents/agent-registry.d.ts +0 -0
- package/dist/core/agents/concurrency-token.d.ts +0 -0
- package/dist/core/agents/concurrency.d.ts +0 -0
- package/dist/core/agents/config.d.ts +0 -0
- package/dist/core/agents/consts/index.d.ts +0 -0
- package/dist/core/agents/consts/task-status.const.d.ts +0 -0
- package/dist/core/agents/format.d.ts +0 -0
- package/dist/core/agents/index.d.ts +0 -0
- package/dist/core/agents/interfaces/index.d.ts +0 -0
- package/dist/core/agents/interfaces/launch-input.interface.d.ts +0 -0
- package/dist/core/agents/interfaces/resume-input.interface.d.ts +0 -0
- package/dist/core/agents/interfaces/session-pool.interface.d.ts +0 -0
- package/dist/core/agents/logger.d.ts +0 -0
- package/dist/core/agents/manager/event-handler.d.ts +0 -0
- package/dist/core/agents/manager/index.d.ts +0 -0
- package/dist/core/agents/manager/task-cleaner.d.ts +0 -0
- package/dist/core/agents/manager/task-launcher.d.ts +0 -0
- package/dist/core/agents/manager/task-poller.d.ts +0 -0
- package/dist/core/agents/manager/task-resumer.d.ts +0 -0
- package/dist/core/agents/manager.d.ts +0 -0
- package/dist/core/agents/persistence/task-wal.d.ts +0 -0
- package/dist/core/agents/session-pool.d.ts +0 -0
- package/dist/core/agents/task-store.d.ts +0 -0
- package/dist/core/agents/types/index.d.ts +0 -0
- package/dist/core/agents/types/parallel-task-status.type.d.ts +0 -0
- package/dist/core/cache/constants.d.ts +0 -0
- package/dist/core/cache/document-cache.d.ts +0 -0
- package/dist/core/cache/index.d.ts +0 -0
- package/dist/core/cache/interfaces/cache-document-entry.d.ts +0 -0
- package/dist/core/cache/interfaces/cache-list-entry.d.ts +0 -0
- package/dist/core/cache/interfaces/cache-metadata.d.ts +0 -0
- package/dist/core/cache/interfaces/cache-stats.d.ts +0 -0
- package/dist/core/cache/interfaces/cached-document.d.ts +0 -0
- package/dist/core/cache/interfaces/index.d.ts +0 -0
- package/dist/core/cache/interfaces.d.ts +0 -0
- package/dist/core/cache/operations.d.ts +0 -0
- package/dist/core/cache/utils.d.ts +0 -0
- package/dist/core/cleanup/cleanup-scheduler.d.ts +0 -0
- package/dist/core/commands/index.d.ts +0 -0
- package/dist/core/commands/interfaces/background-task.d.ts +0 -0
- package/dist/core/commands/interfaces/index.d.ts +0 -0
- package/dist/core/commands/interfaces/run-background-options.d.ts +0 -0
- package/dist/core/commands/manager.d.ts +0 -0
- package/dist/core/commands/types/background-task-status.d.ts +0 -0
- package/dist/core/commands/types/index.d.ts +0 -0
- package/dist/core/context/context-window-monitor.d.ts +0 -0
- package/dist/core/context/index.d.ts +0 -0
- package/dist/core/loop/circuit-breaker.d.ts +0 -0
- package/dist/core/loop/compaction-guard.d.ts +0 -0
- package/dist/core/loop/formatters.d.ts +0 -0
- package/dist/core/loop/interfaces/index.d.ts +0 -0
- package/dist/core/loop/interfaces/todo-stats.d.ts +0 -0
- package/dist/core/loop/interfaces/todo.d.ts +0 -0
- package/dist/core/loop/interfaces.d.ts +0 -0
- package/dist/core/loop/mission-loop-handler.d.ts +0 -0
- package/dist/core/loop/mission-loop.d.ts +0 -0
- package/dist/core/loop/parser.d.ts +0 -0
- package/dist/core/loop/progress-tracker.d.ts +0 -0
- package/dist/core/loop/session-state-store.d.ts +0 -0
- package/dist/core/loop/stats.d.ts +0 -0
- package/dist/core/loop/todo-continuation.d.ts +0 -0
- package/dist/core/loop/todo-enforcer.d.ts +0 -0
- package/dist/core/loop/todo-manager.d.ts +0 -0
- package/dist/core/loop/types/index.d.ts +0 -0
- package/dist/core/loop/types/todo-priority.d.ts +0 -0
- package/dist/core/loop/types/todo-status.d.ts +0 -0
- package/dist/core/loop/verification.d.ts +0 -0
- package/dist/core/memory/interfaces.d.ts +0 -0
- package/dist/core/memory/memory-manager.d.ts +0 -0
- package/dist/core/metrics/collector.d.ts +0 -0
- package/dist/core/notification/os-notify/index.d.ts +0 -0
- package/dist/core/notification/os-notify/notifier.d.ts +0 -0
- package/dist/core/notification/os-notify/platform-resolver.d.ts +0 -0
- package/dist/core/notification/os-notify/platform.d.ts +0 -0
- package/dist/core/notification/os-notify/sound-player.d.ts +0 -0
- package/dist/core/notification/os-notify/todo-checker.d.ts +0 -0
- package/dist/core/notification/task-toast-manager.d.ts +3 -0
- package/dist/core/notification/toast-core.d.ts +0 -0
- package/dist/core/notification/toast-sanitizer.d.ts +3 -0
- package/dist/core/notification/toast.d.ts +0 -0
- package/dist/core/orchestrator/index.d.ts +0 -0
- package/dist/core/orchestrator/interfaces/index.d.ts +0 -0
- package/dist/core/orchestrator/interfaces/session-state.d.ts +0 -0
- package/dist/core/orchestrator/session-manager.d.ts +0 -0
- package/dist/core/orchestrator/state.d.ts +0 -0
- package/dist/core/orchestrator/types/index.d.ts +0 -0
- package/dist/core/orchestrator/types/task-status.d.ts +0 -0
- package/dist/core/plugins/interfaces.d.ts +0 -0
- package/dist/core/plugins/plugin-manager.d.ts +0 -0
- package/dist/core/pool/buffer-pool.d.ts +0 -0
- package/dist/core/pool/object-pool.d.ts +0 -0
- package/dist/core/pool/string-pool.d.ts +0 -0
- package/dist/core/pool/task-pool.d.ts +0 -0
- package/dist/core/progress/calculator.d.ts +0 -0
- package/dist/core/progress/formatters.d.ts +0 -0
- package/dist/core/progress/interfaces/index.d.ts +0 -0
- package/dist/core/progress/interfaces/progress-snapshot.d.ts +0 -0
- package/dist/core/progress/interfaces/snapshot-input.d.ts +0 -0
- package/dist/core/progress/interfaces/step-progress.d.ts +0 -0
- package/dist/core/progress/interfaces/task-progress.d.ts +0 -0
- package/dist/core/progress/interfaces/todo-progress.d.ts +0 -0
- package/dist/core/progress/interfaces.d.ts +0 -0
- package/dist/core/progress/progress-notifier.d.ts +0 -0
- package/dist/core/progress/state-broadcaster.d.ts +0 -0
- package/dist/core/progress/store.d.ts +0 -0
- package/dist/core/progress/tracker.d.ts +0 -0
- package/dist/core/queue/async-queue.d.ts +0 -0
- package/dist/core/queue/async-utils.d.ts +0 -0
- package/dist/core/queue/index.d.ts +0 -0
- package/dist/core/queue/work-pool.d.ts +0 -0
- package/dist/core/queue/work-stealing-deque.d.ts +0 -0
- package/dist/core/queue/worker-pool.d.ts +0 -0
- package/dist/core/recovery/auto-recovery.d.ts +0 -0
- package/dist/core/recovery/constants.d.ts +0 -0
- package/dist/core/recovery/handler.d.ts +0 -0
- package/dist/core/recovery/interfaces/error-context.d.ts +0 -0
- package/dist/core/recovery/interfaces/error-pattern.d.ts +0 -0
- package/dist/core/recovery/interfaces/index.d.ts +0 -0
- package/dist/core/recovery/interfaces/recovery-action.d.ts +0 -0
- package/dist/core/recovery/interfaces/recovery-record.d.ts +0 -0
- package/dist/core/recovery/interfaces/recovery-stats.d.ts +0 -0
- package/dist/core/recovery/interfaces.d.ts +0 -0
- package/dist/core/recovery/patterns.d.ts +0 -0
- package/dist/core/recovery/retry.d.ts +0 -0
- package/dist/core/recovery/session-recovery.d.ts +0 -0
- package/dist/core/session/interfaces/context-stats.d.ts +0 -0
- package/dist/core/session/interfaces/index.d.ts +0 -0
- package/dist/core/session/interfaces/shared-context.d.ts +0 -0
- package/dist/core/session/interfaces/shared-decision.d.ts +0 -0
- package/dist/core/session/interfaces/shared-document.d.ts +0 -0
- package/dist/core/session/interfaces/shared-finding.d.ts +0 -0
- package/dist/core/session/interfaces.d.ts +0 -0
- package/dist/core/session/shared-context.d.ts +0 -0
- package/dist/core/session/store.d.ts +0 -0
- package/dist/core/session/summary.d.ts +0 -0
- package/dist/core/sync/todo-parser.d.ts +0 -0
- package/dist/core/sync/todo-sync-service.d.ts +0 -0
- package/dist/core/task/interfaces/index.d.ts +0 -0
- package/dist/core/task/interfaces/task-hierarchy.d.ts +0 -0
- package/dist/core/task/interfaces/task-input.d.ts +0 -0
- package/dist/core/task/interfaces/task-node.d.ts +0 -0
- package/dist/core/task/interfaces/task-progress.d.ts +0 -0
- package/dist/core/task/interfaces.d.ts +0 -0
- package/dist/core/task/parser.d.ts +0 -0
- package/dist/core/task/scheduler.d.ts +0 -0
- package/dist/core/task/store.d.ts +0 -0
- package/dist/core/task/summary.d.ts +0 -0
- package/dist/core/task/task-decomposer.d.ts +0 -0
- package/dist/core/todo/todo-manager.d.ts +0 -0
- package/dist/hooks/compatibility/external-plugin.d.ts +0 -0
- package/dist/hooks/constants.d.ts +0 -0
- package/dist/hooks/custom/agent-ui.d.ts +0 -0
- package/dist/hooks/custom/memory-gate.d.ts +0 -0
- package/dist/hooks/custom/metrics.d.ts +0 -0
- package/dist/hooks/custom/resource-control.d.ts +0 -0
- package/dist/hooks/custom/secret-scanner.d.ts +0 -0
- package/dist/hooks/custom/strict-role-guard.d.ts +0 -0
- package/dist/hooks/custom/user-activity.d.ts +0 -0
- package/dist/hooks/features/mission-loop.d.ts +0 -0
- package/dist/hooks/features/sanity-check.d.ts +0 -0
- package/dist/hooks/index.d.ts +0 -0
- package/dist/hooks/registry.d.ts +0 -0
- package/dist/hooks/types.d.ts +0 -0
- package/dist/index.d.ts +0 -0
- package/dist/index.js +1561 -730
- package/dist/plugin-handlers/assistant-done-handler.d.ts +0 -0
- package/dist/plugin-handlers/chat-message-handler.d.ts +0 -0
- package/dist/plugin-handlers/config-handler.d.ts +0 -0
- package/dist/plugin-handlers/event-handler.d.ts +0 -0
- package/dist/plugin-handlers/index.d.ts +0 -0
- package/dist/plugin-handlers/interfaces/assistant-done-context.d.ts +0 -0
- package/dist/plugin-handlers/interfaces/chat-message-context.d.ts +0 -0
- package/dist/plugin-handlers/interfaces/event-handler-context.d.ts +0 -0
- package/dist/plugin-handlers/interfaces/index.d.ts +0 -0
- package/dist/plugin-handlers/interfaces/orchestrator-state.d.ts +0 -0
- package/dist/plugin-handlers/interfaces/session-compacting.d.ts +0 -0
- package/dist/plugin-handlers/interfaces/session-state.d.ts +0 -0
- package/dist/plugin-handlers/interfaces/system-transform.d.ts +0 -0
- package/dist/plugin-handlers/interfaces/tool-execute-context.d.ts +0 -0
- package/dist/plugin-handlers/interfaces/tool-hook.d.ts +0 -0
- package/dist/plugin-handlers/session-compacting-handler.d.ts +0 -0
- package/dist/plugin-handlers/system-transform-handler.d.ts +0 -0
- package/dist/plugin-handlers/tool-execute-handler.d.ts +0 -0
- package/dist/plugin-handlers/tool-execute-pre-handler.d.ts +0 -0
- package/dist/shared/agent/constants/agent-tokens.d.ts +0 -0
- package/dist/shared/agent/constants/index.d.ts +0 -0
- package/dist/shared/agent/constants/names.d.ts +0 -0
- package/dist/shared/agent/index.d.ts +0 -0
- package/dist/shared/agent/interfaces/agent-definition.d.ts +0 -0
- package/dist/shared/agent/interfaces/concurrency-config.d.ts +0 -0
- package/dist/shared/agent/interfaces/index.d.ts +0 -0
- package/dist/shared/agent/types/agent-name.d.ts +0 -0
- package/dist/shared/agent/types/index.d.ts +0 -0
- package/dist/shared/agent/utils/index.d.ts +0 -0
- package/dist/shared/cache/constants/cache-actions.d.ts +0 -0
- package/dist/shared/cache/constants/cache.d.ts +0 -0
- package/dist/shared/cache/constants/filter-status.d.ts +0 -0
- package/dist/shared/cache/constants/index.d.ts +0 -0
- package/dist/shared/cache/index.d.ts +0 -0
- package/dist/shared/command/index.d.ts +0 -0
- package/dist/shared/command/interfaces/background-task.d.ts +0 -0
- package/dist/shared/command/interfaces/index.d.ts +0 -0
- package/dist/shared/command/interfaces/run-background-options.d.ts +0 -0
- package/dist/shared/command/types/background-task-status.d.ts +0 -0
- package/dist/shared/command/types/index.d.ts +0 -0
- package/dist/shared/constants/security-patterns.d.ts +0 -0
- package/dist/shared/constants/system-messages.d.ts +0 -0
- package/dist/shared/core/constants/cli.d.ts +0 -0
- package/dist/shared/core/constants/id-prefix.d.ts +0 -0
- package/dist/shared/core/constants/index.d.ts +0 -0
- package/dist/shared/core/constants/lifecycle.d.ts +0 -0
- package/dist/shared/core/constants/limits.d.ts +0 -0
- package/dist/shared/core/constants/logging.d.ts +0 -0
- package/dist/shared/core/constants/memory-hooks.d.ts +0 -0
- package/dist/shared/core/constants/memory-limits.d.ts +0 -0
- package/dist/shared/core/constants/paths.d.ts +0 -0
- package/dist/shared/core/constants/phases.d.ts +0 -0
- package/dist/shared/core/constants/status-labels.d.ts +0 -0
- package/dist/shared/core/constants/time.d.ts +0 -0
- package/dist/shared/core/constants/wal-actions.d.ts +0 -0
- package/dist/shared/core/index.d.ts +0 -0
- package/dist/shared/core/poolable.d.ts +0 -0
- package/dist/shared/errors/constants/error-patterns.d.ts +0 -0
- package/dist/shared/errors/constants/error-type.d.ts +0 -0
- package/dist/shared/errors/constants/index.d.ts +0 -0
- package/dist/shared/errors/detection.d.ts +0 -0
- package/dist/shared/errors/index.d.ts +0 -0
- package/dist/shared/errors/retry.d.ts +0 -0
- package/dist/shared/errors/types/error-pattern-type.d.ts +0 -0
- package/dist/shared/errors/types/index.d.ts +0 -0
- package/dist/shared/index.d.ts +0 -0
- package/dist/shared/lifecycle/index.d.ts +0 -0
- package/dist/shared/lifecycle/registration.d.ts +0 -0
- package/dist/shared/lifecycle/shutdown-manager.d.ts +0 -0
- package/dist/shared/loop/constants/index.d.ts +0 -0
- package/dist/shared/loop/constants/labels.d.ts +0 -0
- package/dist/shared/loop/constants/loop.d.ts +0 -0
- package/dist/shared/loop/constants/mission-control.d.ts +0 -0
- package/dist/shared/loop/constants/task-status.d.ts +0 -0
- package/dist/shared/loop/constants/todo-status.d.ts +0 -0
- package/dist/shared/loop/index.d.ts +0 -0
- package/dist/shared/loop/interfaces/index.d.ts +0 -0
- package/dist/shared/loop/interfaces/mission-loop.d.ts +0 -0
- package/dist/shared/loop/interfaces/todo-stats.d.ts +0 -0
- package/dist/shared/loop/interfaces/todo.d.ts +0 -0
- package/dist/shared/loop/types/index.d.ts +0 -0
- package/dist/shared/loop/types/todo-priority.d.ts +0 -0
- package/dist/shared/loop/types/todo-status.d.ts +0 -0
- package/dist/shared/message/constants/index.d.ts +0 -0
- package/dist/shared/message/constants/message-roles.d.ts +0 -0
- package/dist/shared/message/constants/part-types.d.ts +0 -0
- package/dist/shared/message/constants/plugin-hooks.d.ts +0 -0
- package/dist/shared/message/constants/prompts.d.ts +0 -0
- package/dist/shared/message/constants/slash-commands.d.ts +0 -0
- package/dist/shared/message/index.d.ts +0 -0
- package/dist/shared/notification/constants/index.d.ts +0 -0
- package/dist/shared/notification/constants/toast-duration.d.ts +0 -0
- package/dist/shared/notification/constants/toast-variants.d.ts +0 -0
- package/dist/shared/notification/constants/tui.const.d.ts +0 -0
- package/dist/shared/notification/index.d.ts +0 -0
- package/dist/shared/notification/interfaces/index.d.ts +0 -0
- package/dist/shared/notification/interfaces/task-toast.interface.d.ts +0 -0
- package/dist/shared/notification/interfaces/toast-message.d.ts +0 -0
- package/dist/shared/notification/interfaces/toast-options.d.ts +0 -0
- package/dist/shared/notification/os-notify/constants/index.d.ts +0 -0
- package/dist/shared/notification/os-notify/constants/notification-command-keys.d.ts +0 -0
- package/dist/shared/notification/os-notify/constants/notification-commands.d.ts +0 -0
- package/dist/shared/notification/os-notify/constants/notification-defaults.d.ts +0 -0
- package/dist/shared/notification/os-notify/index.d.ts +0 -0
- package/dist/shared/notification/os-notify/interfaces/index.d.ts +0 -0
- package/dist/shared/notification/os-notify/interfaces/notification-config.d.ts +0 -0
- package/dist/shared/notification/os-notify/interfaces/notification-state.d.ts +0 -0
- package/dist/shared/notification/os-notify/types/index.d.ts +0 -0
- package/dist/shared/notification/os-notify/types/notification-commands.d.ts +0 -0
- package/dist/shared/notification/presets/index.d.ts +0 -0
- package/dist/shared/notification/presets/mission.d.ts +0 -0
- package/dist/shared/notification/presets/parallel.d.ts +0 -0
- package/dist/shared/notification/presets/session.d.ts +0 -0
- package/dist/shared/notification/presets/task-lifecycle.d.ts +0 -0
- package/dist/shared/notification/presets/tools.d.ts +0 -0
- package/dist/shared/notification/presets/warnings.d.ts +0 -0
- package/dist/shared/notification/types/index.d.ts +0 -0
- package/dist/shared/notification/types/toast-variant.d.ts +0 -0
- package/dist/shared/os/constants/index.d.ts +0 -0
- package/dist/shared/os/constants/platform.d.ts +0 -0
- package/dist/shared/os/index.d.ts +0 -0
- package/dist/shared/os/types/index.d.ts +0 -0
- package/dist/shared/os/types/platform.d.ts +0 -0
- package/dist/shared/prompt/constants/architecture.d.ts +0 -0
- package/dist/shared/prompt/constants/index.d.ts +0 -0
- package/dist/shared/prompt/constants/mandates.d.ts +0 -0
- package/dist/shared/prompt/constants/philosophy.d.ts +0 -0
- package/dist/shared/prompt/constants/scouts.d.ts +0 -0
- package/dist/shared/prompt/constants/status.d.ts +0 -0
- package/dist/shared/prompt/constants/tags.d.ts +0 -0
- package/dist/shared/prompt/index.d.ts +0 -0
- package/dist/shared/recovery/constants/history.d.ts +0 -0
- package/dist/shared/recovery/constants/index.d.ts +0 -0
- package/dist/shared/recovery/constants/recovery-level.d.ts +0 -0
- package/dist/shared/recovery/constants/recovery.d.ts +0 -0
- package/dist/shared/recovery/index.d.ts +0 -0
- package/dist/shared/recovery/interfaces/error-context.d.ts +0 -0
- package/dist/shared/recovery/interfaces/index.d.ts +0 -0
- package/dist/shared/recovery/interfaces/recovery-record.d.ts +0 -0
- package/dist/shared/recovery/types/index.d.ts +0 -0
- package/dist/shared/recovery/types/recovery-action.d.ts +0 -0
- package/dist/shared/session/constants/events/document-events.d.ts +0 -0
- package/dist/shared/session/constants/events/index.d.ts +0 -0
- package/dist/shared/session/constants/events/message-events.d.ts +0 -0
- package/dist/shared/session/constants/events/mission-events.d.ts +0 -0
- package/dist/shared/session/constants/events/session-events.d.ts +0 -0
- package/dist/shared/session/constants/events/special-events.d.ts +0 -0
- package/dist/shared/session/constants/events/task-events.d.ts +0 -0
- package/dist/shared/session/constants/events/todo-events.d.ts +0 -0
- package/dist/shared/session/constants/index.d.ts +0 -0
- package/dist/shared/session/index.d.ts +0 -0
- package/dist/shared/task/base-task.d.ts +0 -0
- package/dist/shared/task/constants/background-status.d.ts +0 -0
- package/dist/shared/task/constants/background-task.d.ts +0 -0
- package/dist/shared/task/constants/index.d.ts +0 -0
- package/dist/shared/task/constants/metadata-keys.d.ts +0 -0
- package/dist/shared/task/constants/parallel-task.d.ts +0 -0
- package/dist/shared/task/index.d.ts +0 -0
- package/dist/shared/task/interfaces/index.d.ts +0 -0
- package/dist/shared/task/interfaces/launch-input.d.ts +0 -0
- package/dist/shared/task/interfaces/parallel-task.d.ts +0 -0
- package/dist/shared/task/interfaces/resume-input.d.ts +0 -0
- package/dist/shared/task/interfaces/task-progress.d.ts +0 -0
- package/dist/shared/task/types/index.d.ts +0 -0
- package/dist/shared/task/types/parallel-task-status.d.ts +0 -0
- package/dist/shared/tool/constants/common/index.d.ts +0 -0
- package/dist/shared/tool/constants/common/labels.d.ts +0 -0
- package/dist/shared/tool/constants/common/languages.d.ts +0 -0
- package/dist/shared/tool/constants/common/output-labels.d.ts +0 -0
- package/dist/shared/tool/constants/common/sources.d.ts +0 -0
- package/dist/shared/tool/constants/index.d.ts +0 -0
- package/dist/shared/tool/constants/lsp/index.d.ts +0 -0
- package/dist/shared/tool/constants/lsp/lsp-severity-labels.d.ts +0 -0
- package/dist/shared/tool/constants/lsp/lsp-severity.d.ts +0 -0
- package/dist/shared/tool/constants/parallel/index.d.ts +0 -0
- package/dist/shared/tool/constants/parallel/logging.d.ts +0 -0
- package/dist/shared/tool/constants/parallel/parameters.d.ts +0 -0
- package/dist/shared/tool/constants/tool-names.d.ts +0 -0
- package/dist/shared/tool/constants/tool-output.d.ts +0 -0
- package/dist/shared/tool/index.d.ts +0 -0
- package/dist/shared/tool/interfaces/ast/ast-replace-result.d.ts +0 -0
- package/dist/shared/tool/interfaces/ast/ast-search-result.d.ts +0 -0
- package/dist/shared/tool/interfaces/ast/index.d.ts +0 -0
- package/dist/shared/tool/interfaces/index.d.ts +0 -0
- package/dist/shared/tool/interfaces/lsp/index.d.ts +0 -0
- package/dist/shared/tool/interfaces/lsp/lsp-command-result.d.ts +0 -0
- package/dist/shared/tool/interfaces/lsp/lsp-diagnostic.d.ts +0 -0
- package/dist/shared/tool/interfaces/lsp/lsp-rename-location.d.ts +0 -0
- package/dist/shared/tool/interfaces/lsp/lsp-rename-result.d.ts +0 -0
- package/dist/shared/tool/interfaces/parallel/index.d.ts +0 -0
- package/dist/shared/tool/interfaces/parallel/poll-result.d.ts +0 -0
- package/dist/shared/tool/interfaces/parallel/session-client.d.ts +0 -0
- package/dist/shared/verification/constants/categories.d.ts +0 -0
- package/dist/shared/verification/constants/checklist.d.ts +0 -0
- package/dist/shared/verification/constants/index.d.ts +0 -0
- package/dist/shared/verification/constants/patterns.d.ts +0 -0
- package/dist/shared/verification/constants/signals.d.ts +0 -0
- package/dist/shared/verification/index.d.ts +0 -0
- package/dist/shared/verification/interfaces/checklist-item.d.ts +0 -0
- package/dist/shared/verification/interfaces/checklist-verification-result.d.ts +0 -0
- package/dist/shared/verification/interfaces/index.d.ts +0 -0
- package/dist/shared/verification/interfaces/verification-checklist.d.ts +0 -0
- package/dist/shared/verification/interfaces/verification-result.d.ts +0 -0
- package/dist/shared/verification/types/checklist-category.d.ts +0 -0
- package/dist/shared/verification/types/index.d.ts +0 -0
- package/dist/tools/ast/index.d.ts +0 -0
- package/dist/tools/background-cmd/check.d.ts +0 -0
- package/dist/tools/background-cmd/index.d.ts +0 -0
- package/dist/tools/background-cmd/kill.d.ts +0 -0
- package/dist/tools/background-cmd/list.d.ts +0 -0
- package/dist/tools/background-cmd/run.d.ts +0 -0
- package/dist/tools/callAgent.d.ts +0 -0
- package/dist/tools/lsp/diagnostics-cache.d.ts +0 -0
- package/dist/tools/lsp/index.d.ts +0 -0
- package/dist/tools/parallel/cancel-task.d.ts +0 -0
- package/dist/tools/parallel/delegate-task.d.ts +0 -0
- package/dist/tools/parallel/get-task-result.d.ts +0 -0
- package/dist/tools/parallel/index.d.ts +0 -0
- package/dist/tools/parallel/list-agents.d.ts +1 -1
- package/dist/tools/parallel/list-tasks.d.ts +0 -0
- package/dist/tools/parallel/show-metrics.d.ts +1 -1
- package/dist/tools/parallel/update-todo.d.ts +0 -0
- package/dist/tools/registry.d.ts +0 -0
- package/dist/tools/rust-pool.d.ts +0 -0
- package/dist/tools/rust.d.ts +0 -0
- package/dist/tools/search.d.ts +0 -0
- package/dist/tools/slashCommand.d.ts +0 -0
- package/dist/tools/web/cache-docs.d.ts +0 -0
- package/dist/tools/web/codesearch.d.ts +0 -0
- package/dist/tools/web/index.d.ts +0 -0
- package/dist/tools/web/webfetch.d.ts +0 -0
- package/dist/tools/web/websearch.d.ts +0 -0
- package/dist/utils/binary.d.ts +10 -0
- package/dist/utils/common.d.ts +0 -0
- package/dist/utils/compatibility/claude.d.ts +0 -0
- package/dist/utils/formatting/elapsed-time.d.ts +0 -0
- package/dist/utils/formatting/index.d.ts +0 -0
- package/dist/utils/formatting/timestamp.d.ts +0 -0
- package/dist/utils/parsing/index.d.ts +0 -0
- package/dist/utils/parsing/slash-command.d.ts +0 -0
- package/dist/utils/sanity/checker.d.ts +0 -0
- package/dist/utils/sanity/constants/escalation-prompt.d.ts +0 -0
- package/dist/utils/sanity/constants/index.d.ts +0 -0
- package/dist/utils/sanity/constants/recovery-prompt.d.ts +0 -0
- package/dist/utils/sanity/constants/severity.d.ts +0 -0
- package/dist/utils/sanity/index.d.ts +0 -0
- package/dist/utils/sanity/interfaces/index.d.ts +0 -0
- package/dist/utils/sanity/interfaces/sanity-result.d.ts +0 -0
- package/dist/utils/sanity/types/index.d.ts +0 -0
- package/dist/utils/sanity/types/severity.d.ts +0 -0
- package/package.json +88 -86
- package/scripts/run-install-hook.mjs +66 -66
package/dist/index.js
CHANGED
|
@@ -939,6 +939,77 @@ var init_types4 = __esm({
|
|
|
939
939
|
}
|
|
940
940
|
});
|
|
941
941
|
|
|
942
|
+
// src/core/notification/toast-sanitizer.ts
|
|
943
|
+
function stripTerminalSequences(value) {
|
|
944
|
+
return value.replace(/\r\n?/g, "\n").replace(ANSI_PATTERN, "").replace(C0_CONTROL_PATTERN, "");
|
|
945
|
+
}
|
|
946
|
+
function truncate(value, maxLength) {
|
|
947
|
+
if (value.length <= maxLength) {
|
|
948
|
+
return value;
|
|
949
|
+
}
|
|
950
|
+
return `${value.slice(0, Math.max(0, maxLength - 1)).trimEnd()}\u2026`;
|
|
951
|
+
}
|
|
952
|
+
function sanitizeInternal(value, options) {
|
|
953
|
+
const stripped = stripTerminalSequences(value);
|
|
954
|
+
if (options.singleLine) {
|
|
955
|
+
const singleLine = stripped.replace(/\s+/g, " ").trim();
|
|
956
|
+
return singleLine ? truncate(singleLine, options.maxLength) : "";
|
|
957
|
+
}
|
|
958
|
+
const rawLines = stripped.split("\n");
|
|
959
|
+
const lines = [];
|
|
960
|
+
for (const rawLine of rawLines) {
|
|
961
|
+
const normalizedLine = rawLine.replace(/\t/g, " ").replace(/[^\S\n]+/g, " ").trim();
|
|
962
|
+
if (normalizedLine.length === 0) {
|
|
963
|
+
if (!options.singleLine && lines.length > 0 && lines[lines.length - 1] !== "") {
|
|
964
|
+
lines.push("");
|
|
965
|
+
}
|
|
966
|
+
continue;
|
|
967
|
+
}
|
|
968
|
+
lines.push(normalizedLine);
|
|
969
|
+
if (lines.length >= options.maxLines) {
|
|
970
|
+
break;
|
|
971
|
+
}
|
|
972
|
+
}
|
|
973
|
+
const collapsed = lines.join("\n").trim();
|
|
974
|
+
if (!collapsed) {
|
|
975
|
+
return "";
|
|
976
|
+
}
|
|
977
|
+
const truncated = truncate(collapsed, options.maxLength);
|
|
978
|
+
if (rawLines.length > options.maxLines && !truncated.endsWith("\u2026")) {
|
|
979
|
+
return truncate(`${truncated}
|
|
980
|
+
\u2026`, options.maxLength);
|
|
981
|
+
}
|
|
982
|
+
return truncated;
|
|
983
|
+
}
|
|
984
|
+
function sanitizeToastTitle(value) {
|
|
985
|
+
return sanitizeInternal(value, {
|
|
986
|
+
maxLength: 80,
|
|
987
|
+
maxLines: 1,
|
|
988
|
+
singleLine: true
|
|
989
|
+
});
|
|
990
|
+
}
|
|
991
|
+
function sanitizeToastInline(value, maxLength = 120) {
|
|
992
|
+
return sanitizeInternal(value, {
|
|
993
|
+
maxLength,
|
|
994
|
+
maxLines: 1,
|
|
995
|
+
singleLine: true
|
|
996
|
+
});
|
|
997
|
+
}
|
|
998
|
+
function sanitizeToastMessage(value, maxLength = 600, maxLines = 10) {
|
|
999
|
+
return sanitizeInternal(value, {
|
|
1000
|
+
maxLength,
|
|
1001
|
+
maxLines
|
|
1002
|
+
});
|
|
1003
|
+
}
|
|
1004
|
+
var ANSI_PATTERN, C0_CONTROL_PATTERN;
|
|
1005
|
+
var init_toast_sanitizer = __esm({
|
|
1006
|
+
"src/core/notification/toast-sanitizer.ts"() {
|
|
1007
|
+
"use strict";
|
|
1008
|
+
ANSI_PATTERN = /\u001B(?:\][^\u0007\u001B]*(?:\u0007|\u001B\\)|[@-Z\\-_]|\[[0-?]*[ -/]*[@-~])/g;
|
|
1009
|
+
C0_CONTROL_PATTERN = /[\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F]/g;
|
|
1010
|
+
}
|
|
1011
|
+
});
|
|
1012
|
+
|
|
942
1013
|
// src/core/notification/toast-core.ts
|
|
943
1014
|
function initToastClient(client) {
|
|
944
1015
|
tuiClient = client;
|
|
@@ -950,10 +1021,12 @@ function initToastClient(client) {
|
|
|
950
1021
|
return cleanup;
|
|
951
1022
|
}
|
|
952
1023
|
function show(options) {
|
|
1024
|
+
const title = sanitizeToastTitle(options.title);
|
|
1025
|
+
const message = sanitizeToastMessage(options.message);
|
|
953
1026
|
const toast = {
|
|
954
1027
|
id: `toast_${Date.now()}_${Math.random().toString(36).slice(2, 6)}`,
|
|
955
|
-
title
|
|
956
|
-
message
|
|
1028
|
+
title,
|
|
1029
|
+
message,
|
|
957
1030
|
variant: options.variant || "info",
|
|
958
1031
|
timestamp: /* @__PURE__ */ new Date(),
|
|
959
1032
|
duration: options.duration ?? 5e3,
|
|
@@ -966,7 +1039,7 @@ function show(options) {
|
|
|
966
1039
|
for (const handler of handlers) {
|
|
967
1040
|
try {
|
|
968
1041
|
handler(toast);
|
|
969
|
-
} catch (
|
|
1042
|
+
} catch (error95) {
|
|
970
1043
|
}
|
|
971
1044
|
}
|
|
972
1045
|
if (tuiClient) {
|
|
@@ -1009,6 +1082,7 @@ var init_toast_core = __esm({
|
|
|
1009
1082
|
"src/core/notification/toast-core.ts"() {
|
|
1010
1083
|
"use strict";
|
|
1011
1084
|
init_shared();
|
|
1085
|
+
init_toast_sanitizer();
|
|
1012
1086
|
tuiClient = null;
|
|
1013
1087
|
toasts = [];
|
|
1014
1088
|
handlers = [];
|
|
@@ -1034,9 +1108,9 @@ var init_task_lifecycle = __esm({
|
|
|
1034
1108
|
variant: TOAST_VARIANTS.SUCCESS,
|
|
1035
1109
|
duration: 3e3
|
|
1036
1110
|
});
|
|
1037
|
-
taskFailed = (taskId,
|
|
1111
|
+
taskFailed = (taskId, error95) => show({
|
|
1038
1112
|
title: "Task Failed",
|
|
1039
|
-
message: `${taskId}: ${
|
|
1113
|
+
message: `${taskId}: ${error95}`,
|
|
1040
1114
|
variant: TOAST_VARIANTS.ERROR,
|
|
1041
1115
|
duration: 0
|
|
1042
1116
|
});
|
|
@@ -2118,8 +2192,8 @@ var init_shutdown_manager = __esm({
|
|
|
2118
2192
|
)
|
|
2119
2193
|
]);
|
|
2120
2194
|
log(`[${LOG_PREFIX.SHUTDOWN_MANAGER}] \u2713 ${handler.name} completed`);
|
|
2121
|
-
} catch (
|
|
2122
|
-
const errMsg =
|
|
2195
|
+
} catch (error95) {
|
|
2196
|
+
const errMsg = error95 instanceof Error ? error95.message : String(error95);
|
|
2123
2197
|
log(`[${LOG_PREFIX.SHUTDOWN_MANAGER}] \u2717 ${handler.name} failed: ${errMsg}`);
|
|
2124
2198
|
}
|
|
2125
2199
|
}
|
|
@@ -2204,8 +2278,8 @@ var init_types9 = __esm({
|
|
|
2204
2278
|
});
|
|
2205
2279
|
|
|
2206
2280
|
// src/shared/errors/detection.ts
|
|
2207
|
-
function detectErrorType(
|
|
2208
|
-
const errorStr = typeof
|
|
2281
|
+
function detectErrorType(error95) {
|
|
2282
|
+
const errorStr = typeof error95 === "string" ? error95 : error95?.message || error95?.name || String(error95);
|
|
2209
2283
|
for (const [type, pattern] of Object.entries(ERROR_PATTERNS)) {
|
|
2210
2284
|
if (pattern.test(errorStr)) {
|
|
2211
2285
|
return type;
|
|
@@ -5641,8 +5715,8 @@ var WorkStealingWorkerPool = class {
|
|
|
5641
5715
|
await this.executor(workItem);
|
|
5642
5716
|
this.stats.totalExecuted++;
|
|
5643
5717
|
this.stats.busyTime += Date.now() - startTime;
|
|
5644
|
-
} catch (
|
|
5645
|
-
log(`[WorkerPool] ${workerId} execution error: ${
|
|
5718
|
+
} catch (error95) {
|
|
5719
|
+
log(`[WorkerPool] ${workerId} execution error: ${error95}`);
|
|
5646
5720
|
}
|
|
5647
5721
|
this.currentWaitMs = this.minWaitMs;
|
|
5648
5722
|
continue;
|
|
@@ -5655,8 +5729,8 @@ var WorkStealingWorkerPool = class {
|
|
|
5655
5729
|
this.stats.totalExecuted++;
|
|
5656
5730
|
this.stats.totalStolen++;
|
|
5657
5731
|
this.stats.busyTime += Date.now() - startTime;
|
|
5658
|
-
} catch (
|
|
5659
|
-
log(`[WorkerPool] ${workerId} execution error (stolen): ${
|
|
5732
|
+
} catch (error95) {
|
|
5733
|
+
log(`[WorkerPool] ${workerId} execution error (stolen): ${error95}`);
|
|
5660
5734
|
}
|
|
5661
5735
|
this.currentWaitMs = this.minWaitMs;
|
|
5662
5736
|
continue;
|
|
@@ -6423,7 +6497,7 @@ var TaskStore = class {
|
|
|
6423
6497
|
}));
|
|
6424
6498
|
await fs.appendFile(filepath, lines.join("\n") + "\n");
|
|
6425
6499
|
this.archivedCount += tasks.length;
|
|
6426
|
-
} catch (
|
|
6500
|
+
} catch (error95) {
|
|
6427
6501
|
}
|
|
6428
6502
|
}
|
|
6429
6503
|
/**
|
|
@@ -6488,11 +6562,30 @@ init_shared();
|
|
|
6488
6562
|
|
|
6489
6563
|
// src/core/notification/task-toast-manager.ts
|
|
6490
6564
|
init_shared();
|
|
6565
|
+
init_toast_sanitizer();
|
|
6491
6566
|
var TaskToastManager = class {
|
|
6492
6567
|
tasks = /* @__PURE__ */ new Map();
|
|
6493
6568
|
client = null;
|
|
6494
6569
|
concurrency = null;
|
|
6495
6570
|
todoSync = null;
|
|
6571
|
+
getSafeTaskDescription(task) {
|
|
6572
|
+
return sanitizeToastInline(task.description, 100) || "Untitled task";
|
|
6573
|
+
}
|
|
6574
|
+
getSafeAgent(agent) {
|
|
6575
|
+
return sanitizeToastInline(agent, 32) || "unknown";
|
|
6576
|
+
}
|
|
6577
|
+
showToast(title, message, variant, duration5) {
|
|
6578
|
+
if (!this.client || !this.client.tui) return;
|
|
6579
|
+
this.client.tui.showToast({
|
|
6580
|
+
body: {
|
|
6581
|
+
title: sanitizeToastTitle(title) || "Notification",
|
|
6582
|
+
message: sanitizeToastMessage(message),
|
|
6583
|
+
variant,
|
|
6584
|
+
duration: duration5
|
|
6585
|
+
}
|
|
6586
|
+
}).catch(() => {
|
|
6587
|
+
});
|
|
6588
|
+
}
|
|
6496
6589
|
/**
|
|
6497
6590
|
* Initialize the manager with OpenCode client
|
|
6498
6591
|
*/
|
|
@@ -6607,7 +6700,7 @@ var TaskToastManager = class {
|
|
|
6607
6700
|
const duration5 = this.formatDuration(task.startedAt);
|
|
6608
6701
|
const bgTag = task.isBackground ? TUI_TAGS.BACKGROUND : TUI_TAGS.FOREGROUND;
|
|
6609
6702
|
const isNew = newTask && task.id === newTask.id ? TUI_ICONS.NEW : "";
|
|
6610
|
-
lines.push(`${bgTag} ${task
|
|
6703
|
+
lines.push(`${bgTag} ${this.getSafeTaskDescription(task)} (${this.getSafeAgent(task.agent)}) - ${duration5}${isNew}`);
|
|
6611
6704
|
}
|
|
6612
6705
|
}
|
|
6613
6706
|
if (queued.length > 0) {
|
|
@@ -6615,7 +6708,7 @@ var TaskToastManager = class {
|
|
|
6615
6708
|
lines.push(`${TUI_ICONS.QUEUED} Queued (${queued.length}):`);
|
|
6616
6709
|
for (const task of queued) {
|
|
6617
6710
|
const bgTag = task.isBackground ? TUI_TAGS.WAITING : TUI_TAGS.PENDING;
|
|
6618
|
-
lines.push(`${bgTag} ${task
|
|
6711
|
+
lines.push(`${bgTag} ${this.getSafeTaskDescription(task)} (${this.getSafeAgent(task.agent)})`);
|
|
6619
6712
|
}
|
|
6620
6713
|
}
|
|
6621
6714
|
return lines.join("\n");
|
|
@@ -6624,40 +6717,37 @@ var TaskToastManager = class {
|
|
|
6624
6717
|
* Show consolidated toast with all running/queued tasks
|
|
6625
6718
|
*/
|
|
6626
6719
|
showTaskListToast(newTask) {
|
|
6627
|
-
if (!this.client || !this.client.tui) return;
|
|
6628
6720
|
const message = this.buildTaskListMessage(newTask);
|
|
6629
6721
|
const running = this.getRunningTasks();
|
|
6630
6722
|
const queued = this.getQueuedTasks();
|
|
6631
6723
|
const title = newTask.isBackground ? `Background Task Started` : `Task Started`;
|
|
6632
|
-
this.
|
|
6633
|
-
|
|
6634
|
-
|
|
6635
|
-
|
|
6636
|
-
|
|
6637
|
-
|
|
6638
|
-
}
|
|
6639
|
-
}).catch(() => {
|
|
6640
|
-
});
|
|
6724
|
+
this.showToast(
|
|
6725
|
+
title,
|
|
6726
|
+
message || `${this.getSafeTaskDescription(newTask)} (${this.getSafeAgent(newTask.agent)})`,
|
|
6727
|
+
STATUS_LABEL.INFO,
|
|
6728
|
+
running.length + queued.length > 2 ? 5e3 : 3e3
|
|
6729
|
+
);
|
|
6641
6730
|
}
|
|
6642
6731
|
/**
|
|
6643
6732
|
* Show task completion toast
|
|
6644
6733
|
*/
|
|
6645
6734
|
showCompletionToast(info) {
|
|
6646
|
-
if (!this.client || !this.client.tui) return;
|
|
6647
6735
|
this.removeTask(info.id);
|
|
6648
6736
|
const remaining = this.getRunningTasks();
|
|
6649
6737
|
const queued = this.getQueuedTasks();
|
|
6650
6738
|
let message;
|
|
6651
6739
|
let title;
|
|
6652
6740
|
let variant;
|
|
6741
|
+
const safeDescription = sanitizeToastInline(info.description, 100) || "Untitled task";
|
|
6742
|
+
const safeError = info.error ? sanitizeToastMessage(info.error, 240, 4) : "";
|
|
6653
6743
|
if (info.status === STATUS_LABEL.ERROR || info.status === STATUS_LABEL.CANCELLED || info.status === STATUS_LABEL.FAILED) {
|
|
6654
6744
|
title = info.status === STATUS_LABEL.ERROR ? "Task Failed" : "Task Cancelled";
|
|
6655
|
-
message = `[FAIL] "${
|
|
6656
|
-
${
|
|
6745
|
+
message = `[FAIL] "${safeDescription}" ${info.status}
|
|
6746
|
+
${safeError}`;
|
|
6657
6747
|
variant = STATUS_LABEL.ERROR;
|
|
6658
6748
|
} else {
|
|
6659
6749
|
title = "Task Completed";
|
|
6660
|
-
message = `[DONE] "${
|
|
6750
|
+
message = `[DONE] "${safeDescription}" finished in ${info.duration}`;
|
|
6661
6751
|
variant = STATUS_LABEL.SUCCESS;
|
|
6662
6752
|
}
|
|
6663
6753
|
if (remaining.length > 0 || queued.length > 0) {
|
|
@@ -6665,41 +6755,28 @@ ${info.error || ""}`;
|
|
|
6665
6755
|
|
|
6666
6756
|
Still running: ${remaining.length} | Queued: ${queued.length}`;
|
|
6667
6757
|
}
|
|
6668
|
-
this.
|
|
6669
|
-
body: {
|
|
6670
|
-
title,
|
|
6671
|
-
message,
|
|
6672
|
-
variant,
|
|
6673
|
-
duration: 5e3
|
|
6674
|
-
}
|
|
6675
|
-
}).catch(() => {
|
|
6676
|
-
});
|
|
6758
|
+
this.showToast(title, message, variant, 5e3);
|
|
6677
6759
|
}
|
|
6678
6760
|
/**
|
|
6679
6761
|
* Show all-tasks-complete summary toast
|
|
6680
6762
|
*/
|
|
6681
6763
|
showAllCompleteToast(parentSessionID, completedTasks) {
|
|
6682
|
-
if (!this.client || !this.client.tui) return;
|
|
6683
6764
|
const successCount = completedTasks.filter((t) => t.status === STATUS_LABEL.COMPLETED).length;
|
|
6684
6765
|
const failCount = completedTasks.filter((t) => t.status === STATUS_LABEL.ERROR || t.status === STATUS_LABEL.CANCELLED || t.status === STATUS_LABEL.FAILED).length;
|
|
6685
|
-
const taskList = completedTasks.map((t) => `- [${t.status === STATUS_LABEL.COMPLETED ? "OK" : "FAIL"}] ${t.description} (${t.duration})`).join("\n");
|
|
6686
|
-
this.
|
|
6687
|
-
|
|
6688
|
-
|
|
6689
|
-
message: `${successCount} succeeded, ${failCount} failed
|
|
6766
|
+
const taskList = completedTasks.map((t) => `- [${t.status === STATUS_LABEL.COMPLETED ? "OK" : "FAIL"}] ${sanitizeToastInline(t.description, 80) || "Untitled task"} (${t.duration})`).join("\n");
|
|
6767
|
+
this.showToast(
|
|
6768
|
+
"All Tasks Completed",
|
|
6769
|
+
`${successCount} succeeded, ${failCount} failed
|
|
6690
6770
|
|
|
6691
6771
|
${taskList}`,
|
|
6692
|
-
|
|
6693
|
-
|
|
6694
|
-
|
|
6695
|
-
}).catch(() => {
|
|
6696
|
-
});
|
|
6772
|
+
failCount > 0 ? STATUS_LABEL.WARNING : STATUS_LABEL.SUCCESS,
|
|
6773
|
+
7e3
|
|
6774
|
+
);
|
|
6697
6775
|
}
|
|
6698
6776
|
/**
|
|
6699
6777
|
* Show Mission Complete toast (Grand Finale)
|
|
6700
6778
|
*/
|
|
6701
6779
|
showMissionCompleteToast(title = "Mission Complete", message = "All tasks completed successfully.") {
|
|
6702
|
-
if (!this.client || !this.client.tui) return;
|
|
6703
6780
|
const decoratedMessage = `
|
|
6704
6781
|
${TUI_ICONS.MISSION_COMPLETE} ${TUI_MESSAGES.MISSION_COMPLETE_TITLE} ${TUI_ICONS.MISSION_COMPLETE}
|
|
6705
6782
|
\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
|
|
@@ -6707,36 +6784,23 @@ ${message}
|
|
|
6707
6784
|
\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
|
|
6708
6785
|
${TUI_MESSAGES.MISSION_COMPLETE_SUBTITLE}
|
|
6709
6786
|
`.trim();
|
|
6710
|
-
this.
|
|
6711
|
-
body: {
|
|
6712
|
-
title: `${TUI_ICONS.SHIELD} ${title}`,
|
|
6713
|
-
message: decoratedMessage,
|
|
6714
|
-
variant: STATUS_LABEL.SUCCESS,
|
|
6715
|
-
duration: 1e4
|
|
6716
|
-
// Longer duration for the finale
|
|
6717
|
-
}
|
|
6718
|
-
}).catch(() => {
|
|
6719
|
-
});
|
|
6787
|
+
this.showToast(`${TUI_ICONS.SHIELD} ${title}`, decoratedMessage, STATUS_LABEL.SUCCESS, 1e4);
|
|
6720
6788
|
}
|
|
6721
6789
|
/**
|
|
6722
6790
|
* Show progress toast (for long-running tasks)
|
|
6723
6791
|
*/
|
|
6724
6792
|
showProgressToast(taskId, progress) {
|
|
6725
|
-
if (!this.client || !this.client.tui) return;
|
|
6726
6793
|
const task = this.tasks.get(taskId);
|
|
6727
6794
|
if (!task) return;
|
|
6728
6795
|
const percentage = Math.round(progress.current / progress.total * 100);
|
|
6729
6796
|
const progressBar = `[${"#".repeat(Math.floor(percentage / 10))}${"-".repeat(10 - Math.floor(percentage / 10))}]`;
|
|
6730
|
-
this.
|
|
6731
|
-
|
|
6732
|
-
|
|
6733
|
-
message: `${progressBar} ${percentage}%
|
|
6797
|
+
this.showToast(
|
|
6798
|
+
`Task Progress: ${this.getSafeTaskDescription(task)}`,
|
|
6799
|
+
`${progressBar} ${percentage}%
|
|
6734
6800
|
${progress.message || ""}`,
|
|
6735
|
-
|
|
6736
|
-
|
|
6737
|
-
|
|
6738
|
-
}).catch(() => {
|
|
6739
|
-
});
|
|
6801
|
+
STATUS_LABEL.INFO,
|
|
6802
|
+
2e3
|
|
6803
|
+
);
|
|
6740
6804
|
}
|
|
6741
6805
|
/**
|
|
6742
6806
|
* Clear all tracked tasks
|
|
@@ -7198,6 +7262,7 @@ __export(external_exports, {
|
|
|
7198
7262
|
ZodOptional: () => ZodOptional,
|
|
7199
7263
|
ZodPipe: () => ZodPipe,
|
|
7200
7264
|
ZodPrefault: () => ZodPrefault,
|
|
7265
|
+
ZodPreprocess: () => ZodPreprocess,
|
|
7201
7266
|
ZodPromise: () => ZodPromise,
|
|
7202
7267
|
ZodReadonly: () => ZodReadonly,
|
|
7203
7268
|
ZodRealError: () => ZodRealError,
|
|
@@ -7276,6 +7341,7 @@ __export(external_exports, {
|
|
|
7276
7341
|
int32: () => int32,
|
|
7277
7342
|
int64: () => int64,
|
|
7278
7343
|
intersection: () => intersection,
|
|
7344
|
+
invertCodec: () => invertCodec,
|
|
7279
7345
|
ipv4: () => ipv42,
|
|
7280
7346
|
ipv6: () => ipv62,
|
|
7281
7347
|
iso: () => iso_exports,
|
|
@@ -7457,6 +7523,7 @@ __export(core_exports2, {
|
|
|
7457
7523
|
$ZodOptional: () => $ZodOptional,
|
|
7458
7524
|
$ZodPipe: () => $ZodPipe,
|
|
7459
7525
|
$ZodPrefault: () => $ZodPrefault,
|
|
7526
|
+
$ZodPreprocess: () => $ZodPreprocess,
|
|
7460
7527
|
$ZodPromise: () => $ZodPromise,
|
|
7461
7528
|
$ZodReadonly: () => $ZodReadonly,
|
|
7462
7529
|
$ZodRealError: () => $ZodRealError,
|
|
@@ -7656,7 +7723,8 @@ __export(core_exports2, {
|
|
|
7656
7723
|
});
|
|
7657
7724
|
|
|
7658
7725
|
// node_modules/zod/v4/core/core.js
|
|
7659
|
-
var
|
|
7726
|
+
var _a;
|
|
7727
|
+
var NEVER = /* @__PURE__ */ Object.freeze({
|
|
7660
7728
|
status: "aborted"
|
|
7661
7729
|
});
|
|
7662
7730
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -7691,10 +7759,10 @@ function $constructor(name, initializer5, params) {
|
|
|
7691
7759
|
}
|
|
7692
7760
|
Object.defineProperty(Definition, "name", { value: name });
|
|
7693
7761
|
function _(def) {
|
|
7694
|
-
var
|
|
7762
|
+
var _a3;
|
|
7695
7763
|
const inst = params?.Parent ? new Definition() : this;
|
|
7696
7764
|
init(inst, def);
|
|
7697
|
-
(
|
|
7765
|
+
(_a3 = inst._zod).deferred ?? (_a3.deferred = []);
|
|
7698
7766
|
for (const fn of inst._zod.deferred) {
|
|
7699
7767
|
fn();
|
|
7700
7768
|
}
|
|
@@ -7723,7 +7791,8 @@ var $ZodEncodeError = class extends Error {
|
|
|
7723
7791
|
this.name = "ZodEncodeError";
|
|
7724
7792
|
}
|
|
7725
7793
|
};
|
|
7726
|
-
|
|
7794
|
+
(_a = globalThis).__zod_globalConfig ?? (_a.__zod_globalConfig = {});
|
|
7795
|
+
var globalConfig = globalThis.__zod_globalConfig;
|
|
7727
7796
|
function config(newConfig) {
|
|
7728
7797
|
if (newConfig)
|
|
7729
7798
|
Object.assign(globalConfig, newConfig);
|
|
@@ -7756,6 +7825,7 @@ __export(util_exports, {
|
|
|
7756
7825
|
defineLazy: () => defineLazy,
|
|
7757
7826
|
esc: () => esc,
|
|
7758
7827
|
escapeRegex: () => escapeRegex,
|
|
7828
|
+
explicitlyAborted: () => explicitlyAborted,
|
|
7759
7829
|
extend: () => extend,
|
|
7760
7830
|
finalizeIssue: () => finalizeIssue,
|
|
7761
7831
|
floatSafeRemainder: () => floatSafeRemainder,
|
|
@@ -7844,21 +7914,14 @@ function cleanRegex(source) {
|
|
|
7844
7914
|
return source.slice(start, end);
|
|
7845
7915
|
}
|
|
7846
7916
|
function floatSafeRemainder(val, step) {
|
|
7847
|
-
const
|
|
7848
|
-
const
|
|
7849
|
-
|
|
7850
|
-
if (
|
|
7851
|
-
|
|
7852
|
-
|
|
7853
|
-
|
|
7854
|
-
|
|
7855
|
-
}
|
|
7856
|
-
const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;
|
|
7857
|
-
const valInt = Number.parseInt(val.toFixed(decCount).replace(".", ""));
|
|
7858
|
-
const stepInt = Number.parseInt(step.toFixed(decCount).replace(".", ""));
|
|
7859
|
-
return valInt % stepInt / 10 ** decCount;
|
|
7860
|
-
}
|
|
7861
|
-
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");
|
|
7862
7925
|
function defineLazy(object3, key, getter) {
|
|
7863
7926
|
let value = void 0;
|
|
7864
7927
|
Object.defineProperty(object3, key, {
|
|
@@ -7938,7 +8001,10 @@ var captureStackTrace = "captureStackTrace" in Error ? Error.captureStackTrace :
|
|
|
7938
8001
|
function isObject(data) {
|
|
7939
8002
|
return typeof data === "object" && data !== null && !Array.isArray(data);
|
|
7940
8003
|
}
|
|
7941
|
-
var allowsEval = cached(() => {
|
|
8004
|
+
var allowsEval = /* @__PURE__ */ cached(() => {
|
|
8005
|
+
if (globalConfig.jitless) {
|
|
8006
|
+
return false;
|
|
8007
|
+
}
|
|
7942
8008
|
if (typeof navigator !== "undefined" && navigator?.userAgent?.includes("Cloudflare")) {
|
|
7943
8009
|
return false;
|
|
7944
8010
|
}
|
|
@@ -7971,6 +8037,10 @@ function shallowClone(o) {
|
|
|
7971
8037
|
return { ...o };
|
|
7972
8038
|
if (Array.isArray(o))
|
|
7973
8039
|
return [...o];
|
|
8040
|
+
if (o instanceof Map)
|
|
8041
|
+
return new Map(o);
|
|
8042
|
+
if (o instanceof Set)
|
|
8043
|
+
return new Set(o);
|
|
7974
8044
|
return o;
|
|
7975
8045
|
}
|
|
7976
8046
|
function numKeys(data) {
|
|
@@ -8027,7 +8097,14 @@ var getParsedType = (data) => {
|
|
|
8027
8097
|
}
|
|
8028
8098
|
};
|
|
8029
8099
|
var propertyKeyTypes = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
|
|
8030
|
-
var primitiveTypes = /* @__PURE__ */ new Set([
|
|
8100
|
+
var primitiveTypes = /* @__PURE__ */ new Set([
|
|
8101
|
+
"string",
|
|
8102
|
+
"number",
|
|
8103
|
+
"bigint",
|
|
8104
|
+
"boolean",
|
|
8105
|
+
"symbol",
|
|
8106
|
+
"undefined"
|
|
8107
|
+
]);
|
|
8031
8108
|
function escapeRegex(str) {
|
|
8032
8109
|
return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
8033
8110
|
}
|
|
@@ -8196,6 +8273,9 @@ function safeExtend(schema, shape) {
|
|
|
8196
8273
|
return clone(schema, def);
|
|
8197
8274
|
}
|
|
8198
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
|
+
}
|
|
8199
8279
|
const def = mergeDefs(a._zod.def, {
|
|
8200
8280
|
get shape() {
|
|
8201
8281
|
const _shape = { ...a._zod.def.shape, ...b._zod.def.shape };
|
|
@@ -8205,8 +8285,7 @@ function merge(a, b) {
|
|
|
8205
8285
|
get catchall() {
|
|
8206
8286
|
return b._zod.def.catchall;
|
|
8207
8287
|
},
|
|
8208
|
-
checks: []
|
|
8209
|
-
// delete existing checks
|
|
8288
|
+
checks: b._zod.def.checks ?? []
|
|
8210
8289
|
});
|
|
8211
8290
|
return clone(a, def);
|
|
8212
8291
|
}
|
|
@@ -8289,10 +8368,20 @@ function aborted(x, startIndex = 0) {
|
|
|
8289
8368
|
}
|
|
8290
8369
|
return false;
|
|
8291
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
|
+
}
|
|
8292
8381
|
function prefixIssues(path10, issues) {
|
|
8293
8382
|
return issues.map((iss) => {
|
|
8294
|
-
var
|
|
8295
|
-
(
|
|
8383
|
+
var _a3;
|
|
8384
|
+
(_a3 = iss).path ?? (_a3.path = []);
|
|
8296
8385
|
iss.path.unshift(path10);
|
|
8297
8386
|
return iss;
|
|
8298
8387
|
});
|
|
@@ -8301,17 +8390,14 @@ function unwrapMessage(message) {
|
|
|
8301
8390
|
return typeof message === "string" ? message : message?.message;
|
|
8302
8391
|
}
|
|
8303
8392
|
function finalizeIssue(iss, ctx, config3) {
|
|
8304
|
-
const
|
|
8305
|
-
|
|
8306
|
-
|
|
8307
|
-
|
|
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;
|
|
8308
8399
|
}
|
|
8309
|
-
|
|
8310
|
-
delete full.continue;
|
|
8311
|
-
if (!ctx?.reportInput) {
|
|
8312
|
-
delete full.input;
|
|
8313
|
-
}
|
|
8314
|
-
return full;
|
|
8400
|
+
return rest;
|
|
8315
8401
|
}
|
|
8316
8402
|
function getSizableOrigin(input) {
|
|
8317
8403
|
if (input instanceof Set)
|
|
@@ -8428,10 +8514,10 @@ var initializer = (inst, def) => {
|
|
|
8428
8514
|
};
|
|
8429
8515
|
var $ZodError = $constructor("$ZodError", initializer);
|
|
8430
8516
|
var $ZodRealError = $constructor("$ZodError", initializer, { Parent: Error });
|
|
8431
|
-
function flattenError(
|
|
8517
|
+
function flattenError(error95, mapper = (issue3) => issue3.message) {
|
|
8432
8518
|
const fieldErrors = {};
|
|
8433
8519
|
const formErrors = [];
|
|
8434
|
-
for (const sub of
|
|
8520
|
+
for (const sub of error95.issues) {
|
|
8435
8521
|
if (sub.path.length > 0) {
|
|
8436
8522
|
fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];
|
|
8437
8523
|
fieldErrors[sub.path[0]].push(mapper(sub));
|
|
@@ -8441,50 +8527,53 @@ function flattenError(error92, mapper = (issue3) => issue3.message) {
|
|
|
8441
8527
|
}
|
|
8442
8528
|
return { formErrors, fieldErrors };
|
|
8443
8529
|
}
|
|
8444
|
-
function formatError(
|
|
8530
|
+
function formatError(error95, mapper = (issue3) => issue3.message) {
|
|
8445
8531
|
const fieldErrors = { _errors: [] };
|
|
8446
|
-
const processError = (
|
|
8447
|
-
for (const issue3 of
|
|
8532
|
+
const processError = (error96, path10 = []) => {
|
|
8533
|
+
for (const issue3 of error96.issues) {
|
|
8448
8534
|
if (issue3.code === "invalid_union" && issue3.errors.length) {
|
|
8449
|
-
issue3.errors.map((issues) => processError({ issues }));
|
|
8535
|
+
issue3.errors.map((issues) => processError({ issues }, [...path10, ...issue3.path]));
|
|
8450
8536
|
} else if (issue3.code === "invalid_key") {
|
|
8451
|
-
processError({ issues: issue3.issues });
|
|
8537
|
+
processError({ issues: issue3.issues }, [...path10, ...issue3.path]);
|
|
8452
8538
|
} else if (issue3.code === "invalid_element") {
|
|
8453
|
-
processError({ issues: issue3.issues });
|
|
8454
|
-
} else if (issue3.path.length === 0) {
|
|
8455
|
-
fieldErrors._errors.push(mapper(issue3));
|
|
8539
|
+
processError({ issues: issue3.issues }, [...path10, ...issue3.path]);
|
|
8456
8540
|
} else {
|
|
8457
|
-
|
|
8458
|
-
|
|
8459
|
-
|
|
8460
|
-
|
|
8461
|
-
|
|
8462
|
-
|
|
8463
|
-
|
|
8464
|
-
|
|
8465
|
-
|
|
8466
|
-
|
|
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++;
|
|
8467
8558
|
}
|
|
8468
|
-
curr = curr[el];
|
|
8469
|
-
i++;
|
|
8470
8559
|
}
|
|
8471
8560
|
}
|
|
8472
8561
|
}
|
|
8473
8562
|
};
|
|
8474
|
-
processError(
|
|
8563
|
+
processError(error95);
|
|
8475
8564
|
return fieldErrors;
|
|
8476
8565
|
}
|
|
8477
|
-
function treeifyError(
|
|
8566
|
+
function treeifyError(error95, mapper = (issue3) => issue3.message) {
|
|
8478
8567
|
const result = { errors: [] };
|
|
8479
|
-
const processError = (
|
|
8480
|
-
var
|
|
8481
|
-
for (const issue3 of
|
|
8568
|
+
const processError = (error96, path10 = []) => {
|
|
8569
|
+
var _a3, _b;
|
|
8570
|
+
for (const issue3 of error96.issues) {
|
|
8482
8571
|
if (issue3.code === "invalid_union" && issue3.errors.length) {
|
|
8483
|
-
issue3.errors.map((issues) => processError({ issues }, issue3.path));
|
|
8572
|
+
issue3.errors.map((issues) => processError({ issues }, [...path10, ...issue3.path]));
|
|
8484
8573
|
} else if (issue3.code === "invalid_key") {
|
|
8485
|
-
processError({ issues: issue3.issues }, issue3.path);
|
|
8574
|
+
processError({ issues: issue3.issues }, [...path10, ...issue3.path]);
|
|
8486
8575
|
} else if (issue3.code === "invalid_element") {
|
|
8487
|
-
processError({ issues: issue3.issues }, issue3.path);
|
|
8576
|
+
processError({ issues: issue3.issues }, [...path10, ...issue3.path]);
|
|
8488
8577
|
} else {
|
|
8489
8578
|
const fullpath = [...path10, ...issue3.path];
|
|
8490
8579
|
if (fullpath.length === 0) {
|
|
@@ -8498,7 +8587,7 @@ function treeifyError(error92, mapper = (issue3) => issue3.message) {
|
|
|
8498
8587
|
const terminal = i === fullpath.length - 1;
|
|
8499
8588
|
if (typeof el === "string") {
|
|
8500
8589
|
curr.properties ?? (curr.properties = {});
|
|
8501
|
-
(
|
|
8590
|
+
(_a3 = curr.properties)[el] ?? (_a3[el] = { errors: [] });
|
|
8502
8591
|
curr = curr.properties[el];
|
|
8503
8592
|
} else {
|
|
8504
8593
|
curr.items ?? (curr.items = []);
|
|
@@ -8513,7 +8602,7 @@ function treeifyError(error92, mapper = (issue3) => issue3.message) {
|
|
|
8513
8602
|
}
|
|
8514
8603
|
}
|
|
8515
8604
|
};
|
|
8516
|
-
processError(
|
|
8605
|
+
processError(error95);
|
|
8517
8606
|
return result;
|
|
8518
8607
|
}
|
|
8519
8608
|
function toDotPath(_path) {
|
|
@@ -8534,9 +8623,9 @@ function toDotPath(_path) {
|
|
|
8534
8623
|
}
|
|
8535
8624
|
return segs.join("");
|
|
8536
8625
|
}
|
|
8537
|
-
function prettifyError(
|
|
8626
|
+
function prettifyError(error95) {
|
|
8538
8627
|
const lines = [];
|
|
8539
|
-
const issues = [...
|
|
8628
|
+
const issues = [...error95.issues].sort((a, b) => (a.path ?? []).length - (b.path ?? []).length);
|
|
8540
8629
|
for (const issue3 of issues) {
|
|
8541
8630
|
lines.push(`\u2716 ${issue3.message}`);
|
|
8542
8631
|
if (issue3.path?.length)
|
|
@@ -8547,7 +8636,7 @@ function prettifyError(error92) {
|
|
|
8547
8636
|
|
|
8548
8637
|
// node_modules/zod/v4/core/parse.js
|
|
8549
8638
|
var _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
8550
|
-
const ctx = _ctx ?
|
|
8639
|
+
const ctx = _ctx ? { ..._ctx, async: false } : { async: false };
|
|
8551
8640
|
const result = schema._zod.run({ value, issues: [] }, ctx);
|
|
8552
8641
|
if (result instanceof Promise) {
|
|
8553
8642
|
throw new $ZodAsyncError();
|
|
@@ -8561,7 +8650,7 @@ var _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
|
8561
8650
|
};
|
|
8562
8651
|
var parse = /* @__PURE__ */ _parse($ZodRealError);
|
|
8563
8652
|
var _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
|
|
8564
|
-
const ctx = _ctx ?
|
|
8653
|
+
const ctx = _ctx ? { ..._ctx, async: true } : { async: true };
|
|
8565
8654
|
let result = schema._zod.run({ value, issues: [] }, ctx);
|
|
8566
8655
|
if (result instanceof Promise)
|
|
8567
8656
|
result = await result;
|
|
@@ -8586,7 +8675,7 @@ var _safeParse = (_Err) => (schema, value, _ctx) => {
|
|
|
8586
8675
|
};
|
|
8587
8676
|
var safeParse = /* @__PURE__ */ _safeParse($ZodRealError);
|
|
8588
8677
|
var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
|
|
8589
|
-
const ctx = _ctx ?
|
|
8678
|
+
const ctx = _ctx ? { ..._ctx, async: true } : { async: true };
|
|
8590
8679
|
let result = schema._zod.run({ value, issues: [] }, ctx);
|
|
8591
8680
|
if (result instanceof Promise)
|
|
8592
8681
|
result = await result;
|
|
@@ -8597,7 +8686,7 @@ var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
8597
8686
|
};
|
|
8598
8687
|
var safeParseAsync = /* @__PURE__ */ _safeParseAsync($ZodRealError);
|
|
8599
8688
|
var _encode = (_Err) => (schema, value, _ctx) => {
|
|
8600
|
-
const ctx = _ctx ?
|
|
8689
|
+
const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
|
|
8601
8690
|
return _parse(_Err)(schema, value, ctx);
|
|
8602
8691
|
};
|
|
8603
8692
|
var encode = /* @__PURE__ */ _encode($ZodRealError);
|
|
@@ -8606,7 +8695,7 @@ var _decode = (_Err) => (schema, value, _ctx) => {
|
|
|
8606
8695
|
};
|
|
8607
8696
|
var decode = /* @__PURE__ */ _decode($ZodRealError);
|
|
8608
8697
|
var _encodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
8609
|
-
const ctx = _ctx ?
|
|
8698
|
+
const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
|
|
8610
8699
|
return _parseAsync(_Err)(schema, value, ctx);
|
|
8611
8700
|
};
|
|
8612
8701
|
var encodeAsync = /* @__PURE__ */ _encodeAsync($ZodRealError);
|
|
@@ -8615,7 +8704,7 @@ var _decodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
8615
8704
|
};
|
|
8616
8705
|
var decodeAsync = /* @__PURE__ */ _decodeAsync($ZodRealError);
|
|
8617
8706
|
var _safeEncode = (_Err) => (schema, value, _ctx) => {
|
|
8618
|
-
const ctx = _ctx ?
|
|
8707
|
+
const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
|
|
8619
8708
|
return _safeParse(_Err)(schema, value, ctx);
|
|
8620
8709
|
};
|
|
8621
8710
|
var safeEncode = /* @__PURE__ */ _safeEncode($ZodRealError);
|
|
@@ -8624,7 +8713,7 @@ var _safeDecode = (_Err) => (schema, value, _ctx) => {
|
|
|
8624
8713
|
};
|
|
8625
8714
|
var safeDecode = /* @__PURE__ */ _safeDecode($ZodRealError);
|
|
8626
8715
|
var _safeEncodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
8627
|
-
const ctx = _ctx ?
|
|
8716
|
+
const ctx = _ctx ? { ..._ctx, direction: "backward" } : { direction: "backward" };
|
|
8628
8717
|
return _safeParseAsync(_Err)(schema, value, ctx);
|
|
8629
8718
|
};
|
|
8630
8719
|
var safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync($ZodRealError);
|
|
@@ -8657,6 +8746,7 @@ __export(regexes_exports, {
|
|
|
8657
8746
|
hex: () => hex,
|
|
8658
8747
|
hostname: () => hostname,
|
|
8659
8748
|
html5Email: () => html5Email,
|
|
8749
|
+
httpProtocol: () => httpProtocol,
|
|
8660
8750
|
idnEmail: () => idnEmail,
|
|
8661
8751
|
integer: () => integer,
|
|
8662
8752
|
ipv4: () => ipv4,
|
|
@@ -8695,7 +8785,7 @@ __export(regexes_exports, {
|
|
|
8695
8785
|
uuid7: () => uuid7,
|
|
8696
8786
|
xid: () => xid
|
|
8697
8787
|
});
|
|
8698
|
-
var cuid = /^[cC][
|
|
8788
|
+
var cuid = /^[cC][0-9a-z]{6,}$/;
|
|
8699
8789
|
var cuid2 = /^[0-9a-z]+$/;
|
|
8700
8790
|
var ulid = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/;
|
|
8701
8791
|
var xid = /^[0-9a-vA-V]{20}$/;
|
|
@@ -8734,6 +8824,7 @@ var base64 = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/
|
|
|
8734
8824
|
var base64url = /^[A-Za-z0-9_-]*$/;
|
|
8735
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])?)*\.?$/;
|
|
8736
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?$/;
|
|
8737
8828
|
var e164 = /^\+[1-9]\d{6,14}$/;
|
|
8738
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])))`;
|
|
8739
8830
|
var date = /* @__PURE__ */ new RegExp(`^${dateSource}$`);
|
|
@@ -8792,10 +8883,10 @@ var sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
|
|
|
8792
8883
|
|
|
8793
8884
|
// node_modules/zod/v4/core/checks.js
|
|
8794
8885
|
var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
8795
|
-
var
|
|
8886
|
+
var _a3;
|
|
8796
8887
|
inst._zod ?? (inst._zod = {});
|
|
8797
8888
|
inst._zod.def = def;
|
|
8798
|
-
(
|
|
8889
|
+
(_a3 = inst._zod).onattach ?? (_a3.onattach = []);
|
|
8799
8890
|
});
|
|
8800
8891
|
var numericOriginMap = {
|
|
8801
8892
|
number: "number",
|
|
@@ -8861,8 +8952,8 @@ var $ZodCheckGreaterThan = /* @__PURE__ */ $constructor("$ZodCheckGreaterThan",
|
|
|
8861
8952
|
var $ZodCheckMultipleOf = /* @__PURE__ */ $constructor("$ZodCheckMultipleOf", (inst, def) => {
|
|
8862
8953
|
$ZodCheck.init(inst, def);
|
|
8863
8954
|
inst._zod.onattach.push((inst2) => {
|
|
8864
|
-
var
|
|
8865
|
-
(
|
|
8955
|
+
var _a3;
|
|
8956
|
+
(_a3 = inst2._zod.bag).multipleOf ?? (_a3.multipleOf = def.value);
|
|
8866
8957
|
});
|
|
8867
8958
|
inst._zod.check = (payload) => {
|
|
8868
8959
|
if (typeof payload.value !== typeof def.value)
|
|
@@ -8995,9 +9086,9 @@ var $ZodCheckBigIntFormat = /* @__PURE__ */ $constructor("$ZodCheckBigIntFormat"
|
|
|
8995
9086
|
};
|
|
8996
9087
|
});
|
|
8997
9088
|
var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, def) => {
|
|
8998
|
-
var
|
|
9089
|
+
var _a3;
|
|
8999
9090
|
$ZodCheck.init(inst, def);
|
|
9000
|
-
(
|
|
9091
|
+
(_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
|
|
9001
9092
|
const val = payload.value;
|
|
9002
9093
|
return !nullish(val) && val.size !== void 0;
|
|
9003
9094
|
});
|
|
@@ -9023,9 +9114,9 @@ var $ZodCheckMaxSize = /* @__PURE__ */ $constructor("$ZodCheckMaxSize", (inst, d
|
|
|
9023
9114
|
};
|
|
9024
9115
|
});
|
|
9025
9116
|
var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, def) => {
|
|
9026
|
-
var
|
|
9117
|
+
var _a3;
|
|
9027
9118
|
$ZodCheck.init(inst, def);
|
|
9028
|
-
(
|
|
9119
|
+
(_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
|
|
9029
9120
|
const val = payload.value;
|
|
9030
9121
|
return !nullish(val) && val.size !== void 0;
|
|
9031
9122
|
});
|
|
@@ -9051,9 +9142,9 @@ var $ZodCheckMinSize = /* @__PURE__ */ $constructor("$ZodCheckMinSize", (inst, d
|
|
|
9051
9142
|
};
|
|
9052
9143
|
});
|
|
9053
9144
|
var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (inst, def) => {
|
|
9054
|
-
var
|
|
9145
|
+
var _a3;
|
|
9055
9146
|
$ZodCheck.init(inst, def);
|
|
9056
|
-
(
|
|
9147
|
+
(_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
|
|
9057
9148
|
const val = payload.value;
|
|
9058
9149
|
return !nullish(val) && val.size !== void 0;
|
|
9059
9150
|
});
|
|
@@ -9081,9 +9172,9 @@ var $ZodCheckSizeEquals = /* @__PURE__ */ $constructor("$ZodCheckSizeEquals", (i
|
|
|
9081
9172
|
};
|
|
9082
9173
|
});
|
|
9083
9174
|
var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (inst, def) => {
|
|
9084
|
-
var
|
|
9175
|
+
var _a3;
|
|
9085
9176
|
$ZodCheck.init(inst, def);
|
|
9086
|
-
(
|
|
9177
|
+
(_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
|
|
9087
9178
|
const val = payload.value;
|
|
9088
9179
|
return !nullish(val) && val.length !== void 0;
|
|
9089
9180
|
});
|
|
@@ -9110,9 +9201,9 @@ var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (ins
|
|
|
9110
9201
|
};
|
|
9111
9202
|
});
|
|
9112
9203
|
var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (inst, def) => {
|
|
9113
|
-
var
|
|
9204
|
+
var _a3;
|
|
9114
9205
|
$ZodCheck.init(inst, def);
|
|
9115
|
-
(
|
|
9206
|
+
(_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
|
|
9116
9207
|
const val = payload.value;
|
|
9117
9208
|
return !nullish(val) && val.length !== void 0;
|
|
9118
9209
|
});
|
|
@@ -9139,9 +9230,9 @@ var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (ins
|
|
|
9139
9230
|
};
|
|
9140
9231
|
});
|
|
9141
9232
|
var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
|
|
9142
|
-
var
|
|
9233
|
+
var _a3;
|
|
9143
9234
|
$ZodCheck.init(inst, def);
|
|
9144
|
-
(
|
|
9235
|
+
(_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
|
|
9145
9236
|
const val = payload.value;
|
|
9146
9237
|
return !nullish(val) && val.length !== void 0;
|
|
9147
9238
|
});
|
|
@@ -9170,7 +9261,7 @@ var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals"
|
|
|
9170
9261
|
};
|
|
9171
9262
|
});
|
|
9172
9263
|
var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
|
|
9173
|
-
var
|
|
9264
|
+
var _a3, _b;
|
|
9174
9265
|
$ZodCheck.init(inst, def);
|
|
9175
9266
|
inst._zod.onattach.push((inst2) => {
|
|
9176
9267
|
const bag = inst2._zod.bag;
|
|
@@ -9181,7 +9272,7 @@ var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat"
|
|
|
9181
9272
|
}
|
|
9182
9273
|
});
|
|
9183
9274
|
if (def.pattern)
|
|
9184
|
-
(
|
|
9275
|
+
(_a3 = inst._zod).check ?? (_a3.check = (payload) => {
|
|
9185
9276
|
def.pattern.lastIndex = 0;
|
|
9186
9277
|
if (def.pattern.test(payload.value))
|
|
9187
9278
|
return;
|
|
@@ -9377,13 +9468,13 @@ var Doc = class {
|
|
|
9377
9468
|
// node_modules/zod/v4/core/versions.js
|
|
9378
9469
|
var version = {
|
|
9379
9470
|
major: 4,
|
|
9380
|
-
minor:
|
|
9381
|
-
patch:
|
|
9471
|
+
minor: 4,
|
|
9472
|
+
patch: 3
|
|
9382
9473
|
};
|
|
9383
9474
|
|
|
9384
9475
|
// node_modules/zod/v4/core/schemas.js
|
|
9385
9476
|
var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
9386
|
-
var
|
|
9477
|
+
var _a3;
|
|
9387
9478
|
inst ?? (inst = {});
|
|
9388
9479
|
inst._zod.def = def;
|
|
9389
9480
|
inst._zod.bag = inst._zod.bag || {};
|
|
@@ -9398,7 +9489,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
9398
9489
|
}
|
|
9399
9490
|
}
|
|
9400
9491
|
if (checks.length === 0) {
|
|
9401
|
-
(
|
|
9492
|
+
(_a3 = inst._zod).deferred ?? (_a3.deferred = []);
|
|
9402
9493
|
inst._zod.deferred?.push(() => {
|
|
9403
9494
|
inst._zod.run = inst._zod.parse;
|
|
9404
9495
|
});
|
|
@@ -9408,6 +9499,8 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
9408
9499
|
let asyncResult;
|
|
9409
9500
|
for (const ch of checks2) {
|
|
9410
9501
|
if (ch._zod.def.when) {
|
|
9502
|
+
if (explicitlyAborted(payload))
|
|
9503
|
+
continue;
|
|
9411
9504
|
const shouldRun = ch._zod.def.when(payload);
|
|
9412
9505
|
if (!shouldRun)
|
|
9413
9506
|
continue;
|
|
@@ -9548,6 +9641,19 @@ var $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
|
|
|
9548
9641
|
inst._zod.check = (payload) => {
|
|
9549
9642
|
try {
|
|
9550
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
|
+
}
|
|
9551
9657
|
const url3 = new URL(trimmed);
|
|
9552
9658
|
if (def.hostname) {
|
|
9553
9659
|
def.hostname.lastIndex = 0;
|
|
@@ -9701,6 +9807,8 @@ var $ZodCIDRv6 = /* @__PURE__ */ $constructor("$ZodCIDRv6", (inst, def) => {
|
|
|
9701
9807
|
function isValidBase64(data) {
|
|
9702
9808
|
if (data === "")
|
|
9703
9809
|
return true;
|
|
9810
|
+
if (/\s/.test(data))
|
|
9811
|
+
return false;
|
|
9704
9812
|
if (data.length % 4 !== 0)
|
|
9705
9813
|
return false;
|
|
9706
9814
|
try {
|
|
@@ -9893,8 +10001,6 @@ var $ZodUndefined = /* @__PURE__ */ $constructor("$ZodUndefined", (inst, def) =>
|
|
|
9893
10001
|
$ZodType.init(inst, def);
|
|
9894
10002
|
inst._zod.pattern = _undefined;
|
|
9895
10003
|
inst._zod.values = /* @__PURE__ */ new Set([void 0]);
|
|
9896
|
-
inst._zod.optin = "optional";
|
|
9897
|
-
inst._zod.optout = "optional";
|
|
9898
10004
|
inst._zod.parse = (payload, _ctx) => {
|
|
9899
10005
|
const input = payload.value;
|
|
9900
10006
|
if (typeof input === "undefined")
|
|
@@ -10023,15 +10129,27 @@ var $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => {
|
|
|
10023
10129
|
return payload;
|
|
10024
10130
|
};
|
|
10025
10131
|
});
|
|
10026
|
-
function handlePropertyResult(result, final, key, input, isOptionalOut) {
|
|
10132
|
+
function handlePropertyResult(result, final, key, input, isOptionalIn, isOptionalOut) {
|
|
10133
|
+
const isPresent = key in input;
|
|
10027
10134
|
if (result.issues.length) {
|
|
10028
|
-
if (isOptionalOut && !
|
|
10135
|
+
if (isOptionalIn && isOptionalOut && !isPresent) {
|
|
10029
10136
|
return;
|
|
10030
10137
|
}
|
|
10031
10138
|
final.issues.push(...prefixIssues(key, result.issues));
|
|
10032
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
|
+
}
|
|
10033
10151
|
if (result.value === void 0) {
|
|
10034
|
-
if (
|
|
10152
|
+
if (isPresent) {
|
|
10035
10153
|
final.value[key] = void 0;
|
|
10036
10154
|
}
|
|
10037
10155
|
} else {
|
|
@@ -10059,8 +10177,11 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
|
|
|
10059
10177
|
const keySet = def.keySet;
|
|
10060
10178
|
const _catchall = def.catchall._zod;
|
|
10061
10179
|
const t = _catchall.def.type;
|
|
10180
|
+
const isOptionalIn = _catchall.optin === "optional";
|
|
10062
10181
|
const isOptionalOut = _catchall.optout === "optional";
|
|
10063
10182
|
for (const key in input) {
|
|
10183
|
+
if (key === "__proto__")
|
|
10184
|
+
continue;
|
|
10064
10185
|
if (keySet.has(key))
|
|
10065
10186
|
continue;
|
|
10066
10187
|
if (t === "never") {
|
|
@@ -10069,9 +10190,9 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
|
|
|
10069
10190
|
}
|
|
10070
10191
|
const r = _catchall.run({ value: input[key], issues: [] }, ctx);
|
|
10071
10192
|
if (r instanceof Promise) {
|
|
10072
|
-
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
|
|
10193
|
+
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalIn, isOptionalOut)));
|
|
10073
10194
|
} else {
|
|
10074
|
-
handlePropertyResult(r, payload, key, input, isOptionalOut);
|
|
10195
|
+
handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
|
|
10075
10196
|
}
|
|
10076
10197
|
}
|
|
10077
10198
|
if (unrecognized.length) {
|
|
@@ -10137,12 +10258,13 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
10137
10258
|
const shape = value.shape;
|
|
10138
10259
|
for (const key of value.keys) {
|
|
10139
10260
|
const el = shape[key];
|
|
10261
|
+
const isOptionalIn = el._zod.optin === "optional";
|
|
10140
10262
|
const isOptionalOut = el._zod.optout === "optional";
|
|
10141
10263
|
const r = el._zod.run({ value: input[key], issues: [] }, ctx);
|
|
10142
10264
|
if (r instanceof Promise) {
|
|
10143
|
-
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
|
|
10265
|
+
proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalIn, isOptionalOut)));
|
|
10144
10266
|
} else {
|
|
10145
|
-
handlePropertyResult(r, payload, key, input, isOptionalOut);
|
|
10267
|
+
handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
|
|
10146
10268
|
}
|
|
10147
10269
|
}
|
|
10148
10270
|
if (!catchall) {
|
|
@@ -10173,9 +10295,10 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) =>
|
|
|
10173
10295
|
const id = ids[key];
|
|
10174
10296
|
const k = esc(key);
|
|
10175
10297
|
const schema = shape[key];
|
|
10298
|
+
const isOptionalIn = schema?._zod?.optin === "optional";
|
|
10176
10299
|
const isOptionalOut = schema?._zod?.optout === "optional";
|
|
10177
10300
|
doc.write(`const ${id} = ${parseStr(key)};`);
|
|
10178
|
-
if (isOptionalOut) {
|
|
10301
|
+
if (isOptionalIn && isOptionalOut) {
|
|
10179
10302
|
doc.write(`
|
|
10180
10303
|
if (${id}.issues.length) {
|
|
10181
10304
|
if (${k} in input) {
|
|
@@ -10194,6 +10317,33 @@ var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) =>
|
|
|
10194
10317
|
newResult[${k}] = ${id}.value;
|
|
10195
10318
|
}
|
|
10196
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
|
+
|
|
10197
10347
|
`);
|
|
10198
10348
|
} else {
|
|
10199
10349
|
doc.write(`
|
|
@@ -10287,10 +10437,9 @@ var $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
|
|
|
10287
10437
|
}
|
|
10288
10438
|
return void 0;
|
|
10289
10439
|
});
|
|
10290
|
-
const
|
|
10291
|
-
const first = def.options[0]._zod.run;
|
|
10440
|
+
const first = def.options.length === 1 ? def.options[0]._zod.run : null;
|
|
10292
10441
|
inst._zod.parse = (payload, ctx) => {
|
|
10293
|
-
if (
|
|
10442
|
+
if (first) {
|
|
10294
10443
|
return first(payload, ctx);
|
|
10295
10444
|
}
|
|
10296
10445
|
let async = false;
|
|
@@ -10343,10 +10492,9 @@ function handleExclusiveUnionResults(results, final, inst, ctx) {
|
|
|
10343
10492
|
var $ZodXor = /* @__PURE__ */ $constructor("$ZodXor", (inst, def) => {
|
|
10344
10493
|
$ZodUnion.init(inst, def);
|
|
10345
10494
|
def.inclusive = false;
|
|
10346
|
-
const
|
|
10347
|
-
const first = def.options[0]._zod.run;
|
|
10495
|
+
const first = def.options.length === 1 ? def.options[0]._zod.run : null;
|
|
10348
10496
|
inst._zod.parse = (payload, ctx) => {
|
|
10349
|
-
if (
|
|
10497
|
+
if (first) {
|
|
10350
10498
|
return first(payload, ctx);
|
|
10351
10499
|
}
|
|
10352
10500
|
let async = false;
|
|
@@ -10421,7 +10569,7 @@ var $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnio
|
|
|
10421
10569
|
if (opt) {
|
|
10422
10570
|
return opt._zod.run(payload, ctx);
|
|
10423
10571
|
}
|
|
10424
|
-
if (def.unionFallback) {
|
|
10572
|
+
if (def.unionFallback || ctx.direction === "backward") {
|
|
10425
10573
|
return _super(payload, ctx);
|
|
10426
10574
|
}
|
|
10427
10575
|
payload.issues.push({
|
|
@@ -10429,6 +10577,7 @@ var $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnio
|
|
|
10429
10577
|
errors: [],
|
|
10430
10578
|
note: "No matching discriminator",
|
|
10431
10579
|
discriminator: def.discriminator,
|
|
10580
|
+
options: Array.from(disc.value.keys()),
|
|
10432
10581
|
input,
|
|
10433
10582
|
path: [def.discriminator],
|
|
10434
10583
|
inst
|
|
@@ -10550,64 +10699,96 @@ var $ZodTuple = /* @__PURE__ */ $constructor("$ZodTuple", (inst, def) => {
|
|
|
10550
10699
|
}
|
|
10551
10700
|
payload.value = [];
|
|
10552
10701
|
const proms = [];
|
|
10553
|
-
const
|
|
10554
|
-
const
|
|
10702
|
+
const optinStart = getTupleOptStart(items, "optin");
|
|
10703
|
+
const optoutStart = getTupleOptStart(items, "optout");
|
|
10555
10704
|
if (!def.rest) {
|
|
10556
|
-
|
|
10557
|
-
const tooSmall = input.length < optStart - 1;
|
|
10558
|
-
if (tooBig || tooSmall) {
|
|
10705
|
+
if (input.length < optinStart) {
|
|
10559
10706
|
payload.issues.push({
|
|
10560
|
-
|
|
10707
|
+
code: "too_small",
|
|
10708
|
+
minimum: optinStart,
|
|
10709
|
+
inclusive: true,
|
|
10561
10710
|
input,
|
|
10562
10711
|
inst,
|
|
10563
10712
|
origin: "array"
|
|
10564
10713
|
});
|
|
10565
10714
|
return payload;
|
|
10566
10715
|
}
|
|
10567
|
-
|
|
10568
|
-
|
|
10569
|
-
|
|
10570
|
-
|
|
10571
|
-
|
|
10572
|
-
|
|
10573
|
-
|
|
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
|
+
});
|
|
10574
10725
|
}
|
|
10575
|
-
|
|
10576
|
-
|
|
10577
|
-
|
|
10578
|
-
}, ctx);
|
|
10579
|
-
if (
|
|
10580
|
-
proms.push(
|
|
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
|
+
}));
|
|
10581
10734
|
} else {
|
|
10582
|
-
|
|
10735
|
+
itemResults[i] = r;
|
|
10583
10736
|
}
|
|
10584
10737
|
}
|
|
10585
10738
|
if (def.rest) {
|
|
10739
|
+
let i = items.length - 1;
|
|
10586
10740
|
const rest = input.slice(items.length);
|
|
10587
10741
|
for (const el of rest) {
|
|
10588
10742
|
i++;
|
|
10589
|
-
const result = def.rest._zod.run({
|
|
10590
|
-
value: el,
|
|
10591
|
-
issues: []
|
|
10592
|
-
}, ctx);
|
|
10743
|
+
const result = def.rest._zod.run({ value: el, issues: [] }, ctx);
|
|
10593
10744
|
if (result instanceof Promise) {
|
|
10594
|
-
proms.push(result.then((
|
|
10745
|
+
proms.push(result.then((r) => handleTupleResult(r, payload, i)));
|
|
10595
10746
|
} else {
|
|
10596
10747
|
handleTupleResult(result, payload, i);
|
|
10597
10748
|
}
|
|
10598
10749
|
}
|
|
10599
10750
|
}
|
|
10600
|
-
if (proms.length)
|
|
10601
|
-
return Promise.all(proms).then(() => payload);
|
|
10602
|
-
|
|
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);
|
|
10603
10755
|
};
|
|
10604
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
|
+
}
|
|
10605
10764
|
function handleTupleResult(result, final, index) {
|
|
10606
10765
|
if (result.issues.length) {
|
|
10607
10766
|
final.issues.push(...prefixIssues(index, result.issues));
|
|
10608
10767
|
}
|
|
10609
10768
|
final.value[index] = result.value;
|
|
10610
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
|
+
}
|
|
10611
10792
|
var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
|
|
10612
10793
|
$ZodType.init(inst, def);
|
|
10613
10794
|
inst._zod.parse = (payload, ctx) => {
|
|
@@ -10629,19 +10810,35 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
|
|
|
10629
10810
|
for (const key of values) {
|
|
10630
10811
|
if (typeof key === "string" || typeof key === "number" || typeof key === "symbol") {
|
|
10631
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;
|
|
10632
10829
|
const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx);
|
|
10633
10830
|
if (result instanceof Promise) {
|
|
10634
10831
|
proms.push(result.then((result2) => {
|
|
10635
10832
|
if (result2.issues.length) {
|
|
10636
10833
|
payload.issues.push(...prefixIssues(key, result2.issues));
|
|
10637
10834
|
}
|
|
10638
|
-
payload.value[
|
|
10835
|
+
payload.value[outKey] = result2.value;
|
|
10639
10836
|
}));
|
|
10640
10837
|
} else {
|
|
10641
10838
|
if (result.issues.length) {
|
|
10642
10839
|
payload.issues.push(...prefixIssues(key, result.issues));
|
|
10643
10840
|
}
|
|
10644
|
-
payload.value[
|
|
10841
|
+
payload.value[outKey] = result.value;
|
|
10645
10842
|
}
|
|
10646
10843
|
}
|
|
10647
10844
|
}
|
|
@@ -10665,6 +10862,8 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
|
|
|
10665
10862
|
for (const key of Reflect.ownKeys(input)) {
|
|
10666
10863
|
if (key === "__proto__")
|
|
10667
10864
|
continue;
|
|
10865
|
+
if (!Object.prototype.propertyIsEnumerable.call(input, key))
|
|
10866
|
+
continue;
|
|
10668
10867
|
let keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
|
|
10669
10868
|
if (keyResult instanceof Promise) {
|
|
10670
10869
|
throw new Error("Async schemas not supported in object keys currently");
|
|
@@ -10869,6 +11068,7 @@ var $ZodFile = /* @__PURE__ */ $constructor("$ZodFile", (inst, def) => {
|
|
|
10869
11068
|
});
|
|
10870
11069
|
var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) => {
|
|
10871
11070
|
$ZodType.init(inst, def);
|
|
11071
|
+
inst._zod.optin = "optional";
|
|
10872
11072
|
inst._zod.parse = (payload, ctx) => {
|
|
10873
11073
|
if (ctx.direction === "backward") {
|
|
10874
11074
|
throw new $ZodEncodeError(inst.constructor.name);
|
|
@@ -10878,6 +11078,7 @@ var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) =>
|
|
|
10878
11078
|
const output = _out instanceof Promise ? _out : Promise.resolve(_out);
|
|
10879
11079
|
return output.then((output2) => {
|
|
10880
11080
|
payload.value = output2;
|
|
11081
|
+
payload.fallback = true;
|
|
10881
11082
|
return payload;
|
|
10882
11083
|
});
|
|
10883
11084
|
}
|
|
@@ -10885,11 +11086,12 @@ var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) =>
|
|
|
10885
11086
|
throw new $ZodAsyncError();
|
|
10886
11087
|
}
|
|
10887
11088
|
payload.value = _out;
|
|
11089
|
+
payload.fallback = true;
|
|
10888
11090
|
return payload;
|
|
10889
11091
|
};
|
|
10890
11092
|
});
|
|
10891
11093
|
function handleOptionalResult(result, input) {
|
|
10892
|
-
if (result.issues.length
|
|
11094
|
+
if (input === void 0 && (result.issues.length || result.fallback)) {
|
|
10893
11095
|
return { issues: [], value: void 0 };
|
|
10894
11096
|
}
|
|
10895
11097
|
return result;
|
|
@@ -10907,10 +11109,11 @@ var $ZodOptional = /* @__PURE__ */ $constructor("$ZodOptional", (inst, def) => {
|
|
|
10907
11109
|
});
|
|
10908
11110
|
inst._zod.parse = (payload, ctx) => {
|
|
10909
11111
|
if (def.innerType._zod.optin === "optional") {
|
|
11112
|
+
const input = payload.value;
|
|
10910
11113
|
const result = def.innerType._zod.run(payload, ctx);
|
|
10911
11114
|
if (result instanceof Promise)
|
|
10912
|
-
return result.then((r) => handleOptionalResult(r,
|
|
10913
|
-
return handleOptionalResult(result,
|
|
11115
|
+
return result.then((r) => handleOptionalResult(r, input));
|
|
11116
|
+
return handleOptionalResult(result, input);
|
|
10914
11117
|
}
|
|
10915
11118
|
if (payload.value === void 0) {
|
|
10916
11119
|
return payload;
|
|
@@ -11026,7 +11229,7 @@ var $ZodSuccess = /* @__PURE__ */ $constructor("$ZodSuccess", (inst, def) => {
|
|
|
11026
11229
|
});
|
|
11027
11230
|
var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
|
|
11028
11231
|
$ZodType.init(inst, def);
|
|
11029
|
-
|
|
11232
|
+
inst._zod.optin = "optional";
|
|
11030
11233
|
defineLazy(inst._zod, "optout", () => def.innerType._zod.optout);
|
|
11031
11234
|
defineLazy(inst._zod, "values", () => def.innerType._zod.values);
|
|
11032
11235
|
inst._zod.parse = (payload, ctx) => {
|
|
@@ -11046,6 +11249,7 @@ var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
|
|
|
11046
11249
|
input: payload.value
|
|
11047
11250
|
});
|
|
11048
11251
|
payload.issues = [];
|
|
11252
|
+
payload.fallback = true;
|
|
11049
11253
|
}
|
|
11050
11254
|
return payload;
|
|
11051
11255
|
});
|
|
@@ -11060,6 +11264,7 @@ var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
|
|
|
11060
11264
|
input: payload.value
|
|
11061
11265
|
});
|
|
11062
11266
|
payload.issues = [];
|
|
11267
|
+
payload.fallback = true;
|
|
11063
11268
|
}
|
|
11064
11269
|
return payload;
|
|
11065
11270
|
};
|
|
@@ -11105,7 +11310,7 @@ function handlePipeResult(left, next, ctx) {
|
|
|
11105
11310
|
left.aborted = true;
|
|
11106
11311
|
return left;
|
|
11107
11312
|
}
|
|
11108
|
-
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);
|
|
11109
11314
|
}
|
|
11110
11315
|
var $ZodCodec = /* @__PURE__ */ $constructor("$ZodCodec", (inst, def) => {
|
|
11111
11316
|
$ZodType.init(inst, def);
|
|
@@ -11157,6 +11362,9 @@ function handleCodecTxResult(left, value, nextSchema, ctx) {
|
|
|
11157
11362
|
}
|
|
11158
11363
|
return nextSchema._zod.run({ value, issues: left.issues }, ctx);
|
|
11159
11364
|
}
|
|
11365
|
+
var $ZodPreprocess = /* @__PURE__ */ $constructor("$ZodPreprocess", (inst, def) => {
|
|
11366
|
+
$ZodPipe.init(inst, def);
|
|
11367
|
+
});
|
|
11160
11368
|
var $ZodReadonly = /* @__PURE__ */ $constructor("$ZodReadonly", (inst, def) => {
|
|
11161
11369
|
$ZodType.init(inst, def);
|
|
11162
11370
|
defineLazy(inst._zod, "propValues", () => def.innerType._zod.propValues);
|
|
@@ -11308,7 +11516,12 @@ var $ZodPromise = /* @__PURE__ */ $constructor("$ZodPromise", (inst, def) => {
|
|
|
11308
11516
|
});
|
|
11309
11517
|
var $ZodLazy = /* @__PURE__ */ $constructor("$ZodLazy", (inst, def) => {
|
|
11310
11518
|
$ZodType.init(inst, def);
|
|
11311
|
-
defineLazy(inst._zod, "innerType", () =>
|
|
11519
|
+
defineLazy(inst._zod, "innerType", () => {
|
|
11520
|
+
const d = def;
|
|
11521
|
+
if (!d._cachedInner)
|
|
11522
|
+
d._cachedInner = def.getter();
|
|
11523
|
+
return d._cachedInner;
|
|
11524
|
+
});
|
|
11312
11525
|
defineLazy(inst._zod, "pattern", () => inst._zod.innerType?._zod?.pattern);
|
|
11313
11526
|
defineLazy(inst._zod, "propValues", () => inst._zod.innerType?._zod?.propValues);
|
|
11314
11527
|
defineLazy(inst._zod, "optin", () => inst._zod.innerType?._zod?.optin ?? void 0);
|
|
@@ -11363,6 +11576,7 @@ __export(locales_exports, {
|
|
|
11363
11576
|
cs: () => cs_default,
|
|
11364
11577
|
da: () => da_default,
|
|
11365
11578
|
de: () => de_default,
|
|
11579
|
+
el: () => el_default,
|
|
11366
11580
|
en: () => en_default,
|
|
11367
11581
|
eo: () => eo_default,
|
|
11368
11582
|
es: () => es_default,
|
|
@@ -11371,6 +11585,7 @@ __export(locales_exports, {
|
|
|
11371
11585
|
fr: () => fr_default,
|
|
11372
11586
|
frCA: () => fr_CA_default,
|
|
11373
11587
|
he: () => he_default,
|
|
11588
|
+
hr: () => hr_default,
|
|
11374
11589
|
hu: () => hu_default,
|
|
11375
11590
|
hy: () => hy_default,
|
|
11376
11591
|
id: () => id_default,
|
|
@@ -11390,6 +11605,7 @@ __export(locales_exports, {
|
|
|
11390
11605
|
pl: () => pl_default,
|
|
11391
11606
|
ps: () => ps_default,
|
|
11392
11607
|
pt: () => pt_default,
|
|
11608
|
+
ro: () => ro_default,
|
|
11393
11609
|
ru: () => ru_default,
|
|
11394
11610
|
sl: () => sl_default,
|
|
11395
11611
|
sv: () => sv_default,
|
|
@@ -12343,8 +12559,118 @@ function de_default() {
|
|
|
12343
12559
|
};
|
|
12344
12560
|
}
|
|
12345
12561
|
|
|
12346
|
-
// node_modules/zod/v4/locales/
|
|
12562
|
+
// node_modules/zod/v4/locales/el.js
|
|
12347
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 = () => {
|
|
12348
12674
|
const Sizable = {
|
|
12349
12675
|
string: { unit: "characters", verb: "to have" },
|
|
12350
12676
|
file: { unit: "bytes", verb: "to have" },
|
|
@@ -12438,6 +12764,10 @@ var error9 = () => {
|
|
|
12438
12764
|
case "invalid_key":
|
|
12439
12765
|
return `Invalid key in ${issue3.origin}`;
|
|
12440
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
|
+
}
|
|
12441
12771
|
return "Invalid input";
|
|
12442
12772
|
case "invalid_element":
|
|
12443
12773
|
return `Invalid value in ${issue3.origin}`;
|
|
@@ -12448,12 +12778,12 @@ var error9 = () => {
|
|
|
12448
12778
|
};
|
|
12449
12779
|
function en_default() {
|
|
12450
12780
|
return {
|
|
12451
|
-
localeError:
|
|
12781
|
+
localeError: error10()
|
|
12452
12782
|
};
|
|
12453
12783
|
}
|
|
12454
12784
|
|
|
12455
12785
|
// node_modules/zod/v4/locales/eo.js
|
|
12456
|
-
var
|
|
12786
|
+
var error11 = () => {
|
|
12457
12787
|
const Sizable = {
|
|
12458
12788
|
string: { unit: "karaktrojn", verb: "havi" },
|
|
12459
12789
|
file: { unit: "bajtojn", verb: "havi" },
|
|
@@ -12558,12 +12888,12 @@ var error10 = () => {
|
|
|
12558
12888
|
};
|
|
12559
12889
|
function eo_default() {
|
|
12560
12890
|
return {
|
|
12561
|
-
localeError:
|
|
12891
|
+
localeError: error11()
|
|
12562
12892
|
};
|
|
12563
12893
|
}
|
|
12564
12894
|
|
|
12565
12895
|
// node_modules/zod/v4/locales/es.js
|
|
12566
|
-
var
|
|
12896
|
+
var error12 = () => {
|
|
12567
12897
|
const Sizable = {
|
|
12568
12898
|
string: { unit: "caracteres", verb: "tener" },
|
|
12569
12899
|
file: { unit: "bytes", verb: "tener" },
|
|
@@ -12691,12 +13021,12 @@ var error11 = () => {
|
|
|
12691
13021
|
};
|
|
12692
13022
|
function es_default() {
|
|
12693
13023
|
return {
|
|
12694
|
-
localeError:
|
|
13024
|
+
localeError: error12()
|
|
12695
13025
|
};
|
|
12696
13026
|
}
|
|
12697
13027
|
|
|
12698
13028
|
// node_modules/zod/v4/locales/fa.js
|
|
12699
|
-
var
|
|
13029
|
+
var error13 = () => {
|
|
12700
13030
|
const Sizable = {
|
|
12701
13031
|
string: { unit: "\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
|
|
12702
13032
|
file: { unit: "\u0628\u0627\u06CC\u062A", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
|
|
@@ -12806,12 +13136,12 @@ var error12 = () => {
|
|
|
12806
13136
|
};
|
|
12807
13137
|
function fa_default() {
|
|
12808
13138
|
return {
|
|
12809
|
-
localeError:
|
|
13139
|
+
localeError: error13()
|
|
12810
13140
|
};
|
|
12811
13141
|
}
|
|
12812
13142
|
|
|
12813
13143
|
// node_modules/zod/v4/locales/fi.js
|
|
12814
|
-
var
|
|
13144
|
+
var error14 = () => {
|
|
12815
13145
|
const Sizable = {
|
|
12816
13146
|
string: { unit: "merkki\xE4", subject: "merkkijonon" },
|
|
12817
13147
|
file: { unit: "tavua", subject: "tiedoston" },
|
|
@@ -12919,12 +13249,12 @@ var error13 = () => {
|
|
|
12919
13249
|
};
|
|
12920
13250
|
function fi_default() {
|
|
12921
13251
|
return {
|
|
12922
|
-
localeError:
|
|
13252
|
+
localeError: error14()
|
|
12923
13253
|
};
|
|
12924
13254
|
}
|
|
12925
13255
|
|
|
12926
13256
|
// node_modules/zod/v4/locales/fr.js
|
|
12927
|
-
var
|
|
13257
|
+
var error15 = () => {
|
|
12928
13258
|
const Sizable = {
|
|
12929
13259
|
string: { unit: "caract\xE8res", verb: "avoir" },
|
|
12930
13260
|
file: { unit: "octets", verb: "avoir" },
|
|
@@ -12965,9 +13295,27 @@ var error14 = () => {
|
|
|
12965
13295
|
template_literal: "entr\xE9e"
|
|
12966
13296
|
};
|
|
12967
13297
|
const TypeDictionary = {
|
|
12968
|
-
|
|
13298
|
+
string: "cha\xEEne",
|
|
12969
13299
|
number: "nombre",
|
|
12970
|
-
|
|
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"
|
|
12971
13319
|
};
|
|
12972
13320
|
return (issue3) => {
|
|
12973
13321
|
switch (issue3.code) {
|
|
@@ -12988,16 +13336,15 @@ var error14 = () => {
|
|
|
12988
13336
|
const adj = issue3.inclusive ? "<=" : "<";
|
|
12989
13337
|
const sizing = getSizing(issue3.origin);
|
|
12990
13338
|
if (sizing)
|
|
12991
|
-
return `Trop grand : ${issue3.origin ?? "valeur"} doit ${sizing.verb} ${adj}${issue3.maximum.toString()} ${sizing.unit ?? "\xE9l\xE9ment(s)"}`;
|
|
12992
|
-
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()}`;
|
|
12993
13341
|
}
|
|
12994
13342
|
case "too_small": {
|
|
12995
13343
|
const adj = issue3.inclusive ? ">=" : ">";
|
|
12996
13344
|
const sizing = getSizing(issue3.origin);
|
|
12997
|
-
if (sizing)
|
|
12998
|
-
return `Trop petit : ${issue3.origin} doit ${sizing.verb} ${adj}${issue3.minimum.toString()} ${sizing.unit}`;
|
|
12999
|
-
}
|
|
13000
|
-
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()}`;
|
|
13001
13348
|
}
|
|
13002
13349
|
case "invalid_format": {
|
|
13003
13350
|
const _issue = issue3;
|
|
@@ -13028,12 +13375,12 @@ var error14 = () => {
|
|
|
13028
13375
|
};
|
|
13029
13376
|
function fr_default() {
|
|
13030
13377
|
return {
|
|
13031
|
-
localeError:
|
|
13378
|
+
localeError: error15()
|
|
13032
13379
|
};
|
|
13033
13380
|
}
|
|
13034
13381
|
|
|
13035
13382
|
// node_modules/zod/v4/locales/fr-CA.js
|
|
13036
|
-
var
|
|
13383
|
+
var error16 = () => {
|
|
13037
13384
|
const Sizable = {
|
|
13038
13385
|
string: { unit: "caract\xE8res", verb: "avoir" },
|
|
13039
13386
|
file: { unit: "octets", verb: "avoir" },
|
|
@@ -13136,12 +13483,12 @@ var error15 = () => {
|
|
|
13136
13483
|
};
|
|
13137
13484
|
function fr_CA_default() {
|
|
13138
13485
|
return {
|
|
13139
|
-
localeError:
|
|
13486
|
+
localeError: error16()
|
|
13140
13487
|
};
|
|
13141
13488
|
}
|
|
13142
13489
|
|
|
13143
13490
|
// node_modules/zod/v4/locales/he.js
|
|
13144
|
-
var
|
|
13491
|
+
var error17 = () => {
|
|
13145
13492
|
const TypeNames = {
|
|
13146
13493
|
string: { label: "\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA", gender: "f" },
|
|
13147
13494
|
number: { label: "\u05DE\u05E1\u05E4\u05E8", gender: "m" },
|
|
@@ -13331,12 +13678,135 @@ var error16 = () => {
|
|
|
13331
13678
|
};
|
|
13332
13679
|
function he_default() {
|
|
13333
13680
|
return {
|
|
13334
|
-
localeError:
|
|
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()
|
|
13335
13805
|
};
|
|
13336
13806
|
}
|
|
13337
13807
|
|
|
13338
13808
|
// node_modules/zod/v4/locales/hu.js
|
|
13339
|
-
var
|
|
13809
|
+
var error19 = () => {
|
|
13340
13810
|
const Sizable = {
|
|
13341
13811
|
string: { unit: "karakter", verb: "legyen" },
|
|
13342
13812
|
file: { unit: "byte", verb: "legyen" },
|
|
@@ -13440,7 +13910,7 @@ var error17 = () => {
|
|
|
13440
13910
|
};
|
|
13441
13911
|
function hu_default() {
|
|
13442
13912
|
return {
|
|
13443
|
-
localeError:
|
|
13913
|
+
localeError: error19()
|
|
13444
13914
|
};
|
|
13445
13915
|
}
|
|
13446
13916
|
|
|
@@ -13455,7 +13925,7 @@ function withDefiniteArticle(word) {
|
|
|
13455
13925
|
const lastChar = word[word.length - 1];
|
|
13456
13926
|
return word + (vowels.includes(lastChar) ? "\u0576" : "\u0568");
|
|
13457
13927
|
}
|
|
13458
|
-
var
|
|
13928
|
+
var error20 = () => {
|
|
13459
13929
|
const Sizable = {
|
|
13460
13930
|
string: {
|
|
13461
13931
|
unit: {
|
|
@@ -13588,12 +14058,12 @@ var error18 = () => {
|
|
|
13588
14058
|
};
|
|
13589
14059
|
function hy_default() {
|
|
13590
14060
|
return {
|
|
13591
|
-
localeError:
|
|
14061
|
+
localeError: error20()
|
|
13592
14062
|
};
|
|
13593
14063
|
}
|
|
13594
14064
|
|
|
13595
14065
|
// node_modules/zod/v4/locales/id.js
|
|
13596
|
-
var
|
|
14066
|
+
var error21 = () => {
|
|
13597
14067
|
const Sizable = {
|
|
13598
14068
|
string: { unit: "karakter", verb: "memiliki" },
|
|
13599
14069
|
file: { unit: "byte", verb: "memiliki" },
|
|
@@ -13695,12 +14165,12 @@ var error19 = () => {
|
|
|
13695
14165
|
};
|
|
13696
14166
|
function id_default() {
|
|
13697
14167
|
return {
|
|
13698
|
-
localeError:
|
|
14168
|
+
localeError: error21()
|
|
13699
14169
|
};
|
|
13700
14170
|
}
|
|
13701
14171
|
|
|
13702
14172
|
// node_modules/zod/v4/locales/is.js
|
|
13703
|
-
var
|
|
14173
|
+
var error22 = () => {
|
|
13704
14174
|
const Sizable = {
|
|
13705
14175
|
string: { unit: "stafi", verb: "a\xF0 hafa" },
|
|
13706
14176
|
file: { unit: "b\xE6ti", verb: "a\xF0 hafa" },
|
|
@@ -13805,12 +14275,12 @@ var error20 = () => {
|
|
|
13805
14275
|
};
|
|
13806
14276
|
function is_default() {
|
|
13807
14277
|
return {
|
|
13808
|
-
localeError:
|
|
14278
|
+
localeError: error22()
|
|
13809
14279
|
};
|
|
13810
14280
|
}
|
|
13811
14281
|
|
|
13812
14282
|
// node_modules/zod/v4/locales/it.js
|
|
13813
|
-
var
|
|
14283
|
+
var error23 = () => {
|
|
13814
14284
|
const Sizable = {
|
|
13815
14285
|
string: { unit: "caratteri", verb: "avere" },
|
|
13816
14286
|
file: { unit: "byte", verb: "avere" },
|
|
@@ -13895,7 +14365,7 @@ var error21 = () => {
|
|
|
13895
14365
|
return `Stringa non valida: deve includere "${_issue.includes}"`;
|
|
13896
14366
|
if (_issue.format === "regex")
|
|
13897
14367
|
return `Stringa non valida: deve corrispondere al pattern ${_issue.pattern}`;
|
|
13898
|
-
return `
|
|
14368
|
+
return `Input non valido: ${FormatDictionary[_issue.format] ?? issue3.format}`;
|
|
13899
14369
|
}
|
|
13900
14370
|
case "not_multiple_of":
|
|
13901
14371
|
return `Numero non valido: deve essere un multiplo di ${issue3.divisor}`;
|
|
@@ -13914,12 +14384,12 @@ var error21 = () => {
|
|
|
13914
14384
|
};
|
|
13915
14385
|
function it_default() {
|
|
13916
14386
|
return {
|
|
13917
|
-
localeError:
|
|
14387
|
+
localeError: error23()
|
|
13918
14388
|
};
|
|
13919
14389
|
}
|
|
13920
14390
|
|
|
13921
14391
|
// node_modules/zod/v4/locales/ja.js
|
|
13922
|
-
var
|
|
14392
|
+
var error24 = () => {
|
|
13923
14393
|
const Sizable = {
|
|
13924
14394
|
string: { unit: "\u6587\u5B57", verb: "\u3067\u3042\u308B" },
|
|
13925
14395
|
file: { unit: "\u30D0\u30A4\u30C8", verb: "\u3067\u3042\u308B" },
|
|
@@ -14022,12 +14492,12 @@ var error22 = () => {
|
|
|
14022
14492
|
};
|
|
14023
14493
|
function ja_default() {
|
|
14024
14494
|
return {
|
|
14025
|
-
localeError:
|
|
14495
|
+
localeError: error24()
|
|
14026
14496
|
};
|
|
14027
14497
|
}
|
|
14028
14498
|
|
|
14029
14499
|
// node_modules/zod/v4/locales/ka.js
|
|
14030
|
-
var
|
|
14500
|
+
var error25 = () => {
|
|
14031
14501
|
const Sizable = {
|
|
14032
14502
|
string: { unit: "\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" },
|
|
14033
14503
|
file: { unit: "\u10D1\u10D0\u10D8\u10E2\u10D8", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" },
|
|
@@ -14060,9 +14530,9 @@ var error23 = () => {
|
|
|
14060
14530
|
ipv6: "IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",
|
|
14061
14531
|
cidrv4: "IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",
|
|
14062
14532
|
cidrv6: "IPv6 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",
|
|
14063
|
-
base64: "base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \
|
|
14064
|
-
base64url: "base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \
|
|
14065
|
-
json_string: "JSON \
|
|
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",
|
|
14066
14536
|
e164: "E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",
|
|
14067
14537
|
jwt: "JWT",
|
|
14068
14538
|
template_literal: "\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"
|
|
@@ -14070,7 +14540,7 @@ var error23 = () => {
|
|
|
14070
14540
|
const TypeDictionary = {
|
|
14071
14541
|
nan: "NaN",
|
|
14072
14542
|
number: "\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",
|
|
14073
|
-
string: "\
|
|
14543
|
+
string: "\u10D5\u10D4\u10DA\u10D8",
|
|
14074
14544
|
boolean: "\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",
|
|
14075
14545
|
function: "\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0",
|
|
14076
14546
|
array: "\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8"
|
|
@@ -14108,14 +14578,14 @@ var error23 = () => {
|
|
|
14108
14578
|
case "invalid_format": {
|
|
14109
14579
|
const _issue = issue3;
|
|
14110
14580
|
if (_issue.format === "starts_with") {
|
|
14111
|
-
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \
|
|
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`;
|
|
14112
14582
|
}
|
|
14113
14583
|
if (_issue.format === "ends_with")
|
|
14114
|
-
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \
|
|
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`;
|
|
14115
14585
|
if (_issue.format === "includes")
|
|
14116
|
-
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \
|
|
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`;
|
|
14117
14587
|
if (_issue.format === "regex")
|
|
14118
|
-
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \
|
|
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}`;
|
|
14119
14589
|
return `\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${FormatDictionary[_issue.format] ?? issue3.format}`;
|
|
14120
14590
|
}
|
|
14121
14591
|
case "not_multiple_of":
|
|
@@ -14135,12 +14605,12 @@ var error23 = () => {
|
|
|
14135
14605
|
};
|
|
14136
14606
|
function ka_default() {
|
|
14137
14607
|
return {
|
|
14138
|
-
localeError:
|
|
14608
|
+
localeError: error25()
|
|
14139
14609
|
};
|
|
14140
14610
|
}
|
|
14141
14611
|
|
|
14142
14612
|
// node_modules/zod/v4/locales/km.js
|
|
14143
|
-
var
|
|
14613
|
+
var error26 = () => {
|
|
14144
14614
|
const Sizable = {
|
|
14145
14615
|
string: { unit: "\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
|
|
14146
14616
|
file: { unit: "\u1794\u17C3", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
|
|
@@ -14246,7 +14716,7 @@ var error24 = () => {
|
|
|
14246
14716
|
};
|
|
14247
14717
|
function km_default() {
|
|
14248
14718
|
return {
|
|
14249
|
-
localeError:
|
|
14719
|
+
localeError: error26()
|
|
14250
14720
|
};
|
|
14251
14721
|
}
|
|
14252
14722
|
|
|
@@ -14256,7 +14726,7 @@ function kh_default() {
|
|
|
14256
14726
|
}
|
|
14257
14727
|
|
|
14258
14728
|
// node_modules/zod/v4/locales/ko.js
|
|
14259
|
-
var
|
|
14729
|
+
var error27 = () => {
|
|
14260
14730
|
const Sizable = {
|
|
14261
14731
|
string: { unit: "\uBB38\uC790", verb: "to have" },
|
|
14262
14732
|
file: { unit: "\uBC14\uC774\uD2B8", verb: "to have" },
|
|
@@ -14363,7 +14833,7 @@ var error25 = () => {
|
|
|
14363
14833
|
};
|
|
14364
14834
|
function ko_default() {
|
|
14365
14835
|
return {
|
|
14366
|
-
localeError:
|
|
14836
|
+
localeError: error27()
|
|
14367
14837
|
};
|
|
14368
14838
|
}
|
|
14369
14839
|
|
|
@@ -14381,7 +14851,7 @@ function getUnitTypeFromNumber(number7) {
|
|
|
14381
14851
|
return "one";
|
|
14382
14852
|
return "few";
|
|
14383
14853
|
}
|
|
14384
|
-
var
|
|
14854
|
+
var error28 = () => {
|
|
14385
14855
|
const Sizable = {
|
|
14386
14856
|
string: {
|
|
14387
14857
|
unit: {
|
|
@@ -14567,12 +15037,12 @@ var error26 = () => {
|
|
|
14567
15037
|
};
|
|
14568
15038
|
function lt_default() {
|
|
14569
15039
|
return {
|
|
14570
|
-
localeError:
|
|
15040
|
+
localeError: error28()
|
|
14571
15041
|
};
|
|
14572
15042
|
}
|
|
14573
15043
|
|
|
14574
15044
|
// node_modules/zod/v4/locales/mk.js
|
|
14575
|
-
var
|
|
15045
|
+
var error29 = () => {
|
|
14576
15046
|
const Sizable = {
|
|
14577
15047
|
string: { unit: "\u0437\u043D\u0430\u0446\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
|
|
14578
15048
|
file: { unit: "\u0431\u0430\u0458\u0442\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
|
|
@@ -14677,12 +15147,12 @@ var error27 = () => {
|
|
|
14677
15147
|
};
|
|
14678
15148
|
function mk_default() {
|
|
14679
15149
|
return {
|
|
14680
|
-
localeError:
|
|
15150
|
+
localeError: error29()
|
|
14681
15151
|
};
|
|
14682
15152
|
}
|
|
14683
15153
|
|
|
14684
15154
|
// node_modules/zod/v4/locales/ms.js
|
|
14685
|
-
var
|
|
15155
|
+
var error30 = () => {
|
|
14686
15156
|
const Sizable = {
|
|
14687
15157
|
string: { unit: "aksara", verb: "mempunyai" },
|
|
14688
15158
|
file: { unit: "bait", verb: "mempunyai" },
|
|
@@ -14785,12 +15255,12 @@ var error28 = () => {
|
|
|
14785
15255
|
};
|
|
14786
15256
|
function ms_default() {
|
|
14787
15257
|
return {
|
|
14788
|
-
localeError:
|
|
15258
|
+
localeError: error30()
|
|
14789
15259
|
};
|
|
14790
15260
|
}
|
|
14791
15261
|
|
|
14792
15262
|
// node_modules/zod/v4/locales/nl.js
|
|
14793
|
-
var
|
|
15263
|
+
var error31 = () => {
|
|
14794
15264
|
const Sizable = {
|
|
14795
15265
|
string: { unit: "tekens", verb: "heeft" },
|
|
14796
15266
|
file: { unit: "bytes", verb: "heeft" },
|
|
@@ -14896,12 +15366,12 @@ var error29 = () => {
|
|
|
14896
15366
|
};
|
|
14897
15367
|
function nl_default() {
|
|
14898
15368
|
return {
|
|
14899
|
-
localeError:
|
|
15369
|
+
localeError: error31()
|
|
14900
15370
|
};
|
|
14901
15371
|
}
|
|
14902
15372
|
|
|
14903
15373
|
// node_modules/zod/v4/locales/no.js
|
|
14904
|
-
var
|
|
15374
|
+
var error32 = () => {
|
|
14905
15375
|
const Sizable = {
|
|
14906
15376
|
string: { unit: "tegn", verb: "\xE5 ha" },
|
|
14907
15377
|
file: { unit: "bytes", verb: "\xE5 ha" },
|
|
@@ -15005,12 +15475,12 @@ var error30 = () => {
|
|
|
15005
15475
|
};
|
|
15006
15476
|
function no_default() {
|
|
15007
15477
|
return {
|
|
15008
|
-
localeError:
|
|
15478
|
+
localeError: error32()
|
|
15009
15479
|
};
|
|
15010
15480
|
}
|
|
15011
15481
|
|
|
15012
15482
|
// node_modules/zod/v4/locales/ota.js
|
|
15013
|
-
var
|
|
15483
|
+
var error33 = () => {
|
|
15014
15484
|
const Sizable = {
|
|
15015
15485
|
string: { unit: "harf", verb: "olmal\u0131d\u0131r" },
|
|
15016
15486
|
file: { unit: "bayt", verb: "olmal\u0131d\u0131r" },
|
|
@@ -15115,12 +15585,12 @@ var error31 = () => {
|
|
|
15115
15585
|
};
|
|
15116
15586
|
function ota_default() {
|
|
15117
15587
|
return {
|
|
15118
|
-
localeError:
|
|
15588
|
+
localeError: error33()
|
|
15119
15589
|
};
|
|
15120
15590
|
}
|
|
15121
15591
|
|
|
15122
15592
|
// node_modules/zod/v4/locales/ps.js
|
|
15123
|
-
var
|
|
15593
|
+
var error34 = () => {
|
|
15124
15594
|
const Sizable = {
|
|
15125
15595
|
string: { unit: "\u062A\u0648\u06A9\u064A", verb: "\u0648\u0644\u0631\u064A" },
|
|
15126
15596
|
file: { unit: "\u0628\u0627\u06CC\u067C\u0633", verb: "\u0648\u0644\u0631\u064A" },
|
|
@@ -15230,12 +15700,12 @@ var error32 = () => {
|
|
|
15230
15700
|
};
|
|
15231
15701
|
function ps_default() {
|
|
15232
15702
|
return {
|
|
15233
|
-
localeError:
|
|
15703
|
+
localeError: error34()
|
|
15234
15704
|
};
|
|
15235
15705
|
}
|
|
15236
15706
|
|
|
15237
15707
|
// node_modules/zod/v4/locales/pl.js
|
|
15238
|
-
var
|
|
15708
|
+
var error35 = () => {
|
|
15239
15709
|
const Sizable = {
|
|
15240
15710
|
string: { unit: "znak\xF3w", verb: "mie\u0107" },
|
|
15241
15711
|
file: { unit: "bajt\xF3w", verb: "mie\u0107" },
|
|
@@ -15340,12 +15810,12 @@ var error33 = () => {
|
|
|
15340
15810
|
};
|
|
15341
15811
|
function pl_default() {
|
|
15342
15812
|
return {
|
|
15343
|
-
localeError:
|
|
15813
|
+
localeError: error35()
|
|
15344
15814
|
};
|
|
15345
15815
|
}
|
|
15346
15816
|
|
|
15347
15817
|
// node_modules/zod/v4/locales/pt.js
|
|
15348
|
-
var
|
|
15818
|
+
var error36 = () => {
|
|
15349
15819
|
const Sizable = {
|
|
15350
15820
|
string: { unit: "caracteres", verb: "ter" },
|
|
15351
15821
|
file: { unit: "bytes", verb: "ter" },
|
|
@@ -15449,7 +15919,127 @@ var error34 = () => {
|
|
|
15449
15919
|
};
|
|
15450
15920
|
function pt_default() {
|
|
15451
15921
|
return {
|
|
15452
|
-
localeError:
|
|
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()
|
|
15453
16043
|
};
|
|
15454
16044
|
}
|
|
15455
16045
|
|
|
@@ -15469,7 +16059,7 @@ function getRussianPlural(count, one, few, many) {
|
|
|
15469
16059
|
}
|
|
15470
16060
|
return many;
|
|
15471
16061
|
}
|
|
15472
|
-
var
|
|
16062
|
+
var error38 = () => {
|
|
15473
16063
|
const Sizable = {
|
|
15474
16064
|
string: {
|
|
15475
16065
|
unit: {
|
|
@@ -15606,12 +16196,12 @@ var error35 = () => {
|
|
|
15606
16196
|
};
|
|
15607
16197
|
function ru_default() {
|
|
15608
16198
|
return {
|
|
15609
|
-
localeError:
|
|
16199
|
+
localeError: error38()
|
|
15610
16200
|
};
|
|
15611
16201
|
}
|
|
15612
16202
|
|
|
15613
16203
|
// node_modules/zod/v4/locales/sl.js
|
|
15614
|
-
var
|
|
16204
|
+
var error39 = () => {
|
|
15615
16205
|
const Sizable = {
|
|
15616
16206
|
string: { unit: "znakov", verb: "imeti" },
|
|
15617
16207
|
file: { unit: "bajtov", verb: "imeti" },
|
|
@@ -15716,12 +16306,12 @@ var error36 = () => {
|
|
|
15716
16306
|
};
|
|
15717
16307
|
function sl_default() {
|
|
15718
16308
|
return {
|
|
15719
|
-
localeError:
|
|
16309
|
+
localeError: error39()
|
|
15720
16310
|
};
|
|
15721
16311
|
}
|
|
15722
16312
|
|
|
15723
16313
|
// node_modules/zod/v4/locales/sv.js
|
|
15724
|
-
var
|
|
16314
|
+
var error40 = () => {
|
|
15725
16315
|
const Sizable = {
|
|
15726
16316
|
string: { unit: "tecken", verb: "att ha" },
|
|
15727
16317
|
file: { unit: "bytes", verb: "att ha" },
|
|
@@ -15827,12 +16417,12 @@ var error37 = () => {
|
|
|
15827
16417
|
};
|
|
15828
16418
|
function sv_default() {
|
|
15829
16419
|
return {
|
|
15830
|
-
localeError:
|
|
16420
|
+
localeError: error40()
|
|
15831
16421
|
};
|
|
15832
16422
|
}
|
|
15833
16423
|
|
|
15834
16424
|
// node_modules/zod/v4/locales/ta.js
|
|
15835
|
-
var
|
|
16425
|
+
var error41 = () => {
|
|
15836
16426
|
const Sizable = {
|
|
15837
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" },
|
|
15838
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" },
|
|
@@ -15938,12 +16528,12 @@ var error38 = () => {
|
|
|
15938
16528
|
};
|
|
15939
16529
|
function ta_default() {
|
|
15940
16530
|
return {
|
|
15941
|
-
localeError:
|
|
16531
|
+
localeError: error41()
|
|
15942
16532
|
};
|
|
15943
16533
|
}
|
|
15944
16534
|
|
|
15945
16535
|
// node_modules/zod/v4/locales/th.js
|
|
15946
|
-
var
|
|
16536
|
+
var error42 = () => {
|
|
15947
16537
|
const Sizable = {
|
|
15948
16538
|
string: { unit: "\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
|
|
15949
16539
|
file: { unit: "\u0E44\u0E1A\u0E15\u0E4C", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
|
|
@@ -16049,12 +16639,12 @@ var error39 = () => {
|
|
|
16049
16639
|
};
|
|
16050
16640
|
function th_default() {
|
|
16051
16641
|
return {
|
|
16052
|
-
localeError:
|
|
16642
|
+
localeError: error42()
|
|
16053
16643
|
};
|
|
16054
16644
|
}
|
|
16055
16645
|
|
|
16056
16646
|
// node_modules/zod/v4/locales/tr.js
|
|
16057
|
-
var
|
|
16647
|
+
var error43 = () => {
|
|
16058
16648
|
const Sizable = {
|
|
16059
16649
|
string: { unit: "karakter", verb: "olmal\u0131" },
|
|
16060
16650
|
file: { unit: "bayt", verb: "olmal\u0131" },
|
|
@@ -16155,12 +16745,12 @@ var error40 = () => {
|
|
|
16155
16745
|
};
|
|
16156
16746
|
function tr_default() {
|
|
16157
16747
|
return {
|
|
16158
|
-
localeError:
|
|
16748
|
+
localeError: error43()
|
|
16159
16749
|
};
|
|
16160
16750
|
}
|
|
16161
16751
|
|
|
16162
16752
|
// node_modules/zod/v4/locales/uk.js
|
|
16163
|
-
var
|
|
16753
|
+
var error44 = () => {
|
|
16164
16754
|
const Sizable = {
|
|
16165
16755
|
string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
|
|
16166
16756
|
file: { unit: "\u0431\u0430\u0439\u0442\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
|
|
@@ -16264,7 +16854,7 @@ var error41 = () => {
|
|
|
16264
16854
|
};
|
|
16265
16855
|
function uk_default() {
|
|
16266
16856
|
return {
|
|
16267
|
-
localeError:
|
|
16857
|
+
localeError: error44()
|
|
16268
16858
|
};
|
|
16269
16859
|
}
|
|
16270
16860
|
|
|
@@ -16274,7 +16864,7 @@ function ua_default() {
|
|
|
16274
16864
|
}
|
|
16275
16865
|
|
|
16276
16866
|
// node_modules/zod/v4/locales/ur.js
|
|
16277
|
-
var
|
|
16867
|
+
var error45 = () => {
|
|
16278
16868
|
const Sizable = {
|
|
16279
16869
|
string: { unit: "\u062D\u0631\u0648\u0641", verb: "\u06C1\u0648\u0646\u0627" },
|
|
16280
16870
|
file: { unit: "\u0628\u0627\u0626\u0679\u0633", verb: "\u06C1\u0648\u0646\u0627" },
|
|
@@ -16380,17 +16970,18 @@ var error42 = () => {
|
|
|
16380
16970
|
};
|
|
16381
16971
|
function ur_default() {
|
|
16382
16972
|
return {
|
|
16383
|
-
localeError:
|
|
16973
|
+
localeError: error45()
|
|
16384
16974
|
};
|
|
16385
16975
|
}
|
|
16386
16976
|
|
|
16387
16977
|
// node_modules/zod/v4/locales/uz.js
|
|
16388
|
-
var
|
|
16978
|
+
var error46 = () => {
|
|
16389
16979
|
const Sizable = {
|
|
16390
16980
|
string: { unit: "belgi", verb: "bo\u2018lishi kerak" },
|
|
16391
16981
|
file: { unit: "bayt", verb: "bo\u2018lishi kerak" },
|
|
16392
16982
|
array: { unit: "element", verb: "bo\u2018lishi kerak" },
|
|
16393
|
-
set: { unit: "element", verb: "bo\u2018lishi kerak" }
|
|
16983
|
+
set: { unit: "element", verb: "bo\u2018lishi kerak" },
|
|
16984
|
+
map: { unit: "yozuv", verb: "bo\u2018lishi kerak" }
|
|
16394
16985
|
};
|
|
16395
16986
|
function getSizing(origin) {
|
|
16396
16987
|
return Sizable[origin] ?? null;
|
|
@@ -16490,12 +17081,12 @@ var error43 = () => {
|
|
|
16490
17081
|
};
|
|
16491
17082
|
function uz_default() {
|
|
16492
17083
|
return {
|
|
16493
|
-
localeError:
|
|
17084
|
+
localeError: error46()
|
|
16494
17085
|
};
|
|
16495
17086
|
}
|
|
16496
17087
|
|
|
16497
17088
|
// node_modules/zod/v4/locales/vi.js
|
|
16498
|
-
var
|
|
17089
|
+
var error47 = () => {
|
|
16499
17090
|
const Sizable = {
|
|
16500
17091
|
string: { unit: "k\xFD t\u1EF1", verb: "c\xF3" },
|
|
16501
17092
|
file: { unit: "byte", verb: "c\xF3" },
|
|
@@ -16599,12 +17190,12 @@ var error44 = () => {
|
|
|
16599
17190
|
};
|
|
16600
17191
|
function vi_default() {
|
|
16601
17192
|
return {
|
|
16602
|
-
localeError:
|
|
17193
|
+
localeError: error47()
|
|
16603
17194
|
};
|
|
16604
17195
|
}
|
|
16605
17196
|
|
|
16606
17197
|
// node_modules/zod/v4/locales/zh-CN.js
|
|
16607
|
-
var
|
|
17198
|
+
var error48 = () => {
|
|
16608
17199
|
const Sizable = {
|
|
16609
17200
|
string: { unit: "\u5B57\u7B26", verb: "\u5305\u542B" },
|
|
16610
17201
|
file: { unit: "\u5B57\u8282", verb: "\u5305\u542B" },
|
|
@@ -16709,12 +17300,12 @@ var error45 = () => {
|
|
|
16709
17300
|
};
|
|
16710
17301
|
function zh_CN_default() {
|
|
16711
17302
|
return {
|
|
16712
|
-
localeError:
|
|
17303
|
+
localeError: error48()
|
|
16713
17304
|
};
|
|
16714
17305
|
}
|
|
16715
17306
|
|
|
16716
17307
|
// node_modules/zod/v4/locales/zh-TW.js
|
|
16717
|
-
var
|
|
17308
|
+
var error49 = () => {
|
|
16718
17309
|
const Sizable = {
|
|
16719
17310
|
string: { unit: "\u5B57\u5143", verb: "\u64C1\u6709" },
|
|
16720
17311
|
file: { unit: "\u4F4D\u5143\u7D44", verb: "\u64C1\u6709" },
|
|
@@ -16817,12 +17408,12 @@ var error46 = () => {
|
|
|
16817
17408
|
};
|
|
16818
17409
|
function zh_TW_default() {
|
|
16819
17410
|
return {
|
|
16820
|
-
localeError:
|
|
17411
|
+
localeError: error49()
|
|
16821
17412
|
};
|
|
16822
17413
|
}
|
|
16823
17414
|
|
|
16824
17415
|
// node_modules/zod/v4/locales/yo.js
|
|
16825
|
-
var
|
|
17416
|
+
var error50 = () => {
|
|
16826
17417
|
const Sizable = {
|
|
16827
17418
|
string: { unit: "\xE0mi", verb: "n\xED" },
|
|
16828
17419
|
file: { unit: "bytes", verb: "n\xED" },
|
|
@@ -16925,12 +17516,12 @@ var error47 = () => {
|
|
|
16925
17516
|
};
|
|
16926
17517
|
function yo_default() {
|
|
16927
17518
|
return {
|
|
16928
|
-
localeError:
|
|
17519
|
+
localeError: error50()
|
|
16929
17520
|
};
|
|
16930
17521
|
}
|
|
16931
17522
|
|
|
16932
17523
|
// node_modules/zod/v4/core/registries.js
|
|
16933
|
-
var
|
|
17524
|
+
var _a2;
|
|
16934
17525
|
var $output = Symbol("ZodOutput");
|
|
16935
17526
|
var $input = Symbol("ZodInput");
|
|
16936
17527
|
var $ZodRegistry = class {
|
|
@@ -16976,7 +17567,7 @@ var $ZodRegistry = class {
|
|
|
16976
17567
|
function registry() {
|
|
16977
17568
|
return new $ZodRegistry();
|
|
16978
17569
|
}
|
|
16979
|
-
(
|
|
17570
|
+
(_a2 = globalThis).__zod_globalRegistry ?? (_a2.__zod_globalRegistry = registry());
|
|
16980
17571
|
var globalRegistry = globalThis.__zod_globalRegistry;
|
|
16981
17572
|
|
|
16982
17573
|
// node_modules/zod/v4/core/api.js
|
|
@@ -17894,7 +18485,7 @@ function _refine(Class3, fn, _params) {
|
|
|
17894
18485
|
return schema;
|
|
17895
18486
|
}
|
|
17896
18487
|
// @__NO_SIDE_EFFECTS__
|
|
17897
|
-
function _superRefine(fn) {
|
|
18488
|
+
function _superRefine(fn, params) {
|
|
17898
18489
|
const ch = /* @__PURE__ */ _check((payload) => {
|
|
17899
18490
|
payload.addIssue = (issue3) => {
|
|
17900
18491
|
if (typeof issue3 === "string") {
|
|
@@ -17911,7 +18502,7 @@ function _superRefine(fn) {
|
|
|
17911
18502
|
}
|
|
17912
18503
|
};
|
|
17913
18504
|
return fn(payload.value, payload);
|
|
17914
|
-
});
|
|
18505
|
+
}, params);
|
|
17915
18506
|
return ch;
|
|
17916
18507
|
}
|
|
17917
18508
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -18041,7 +18632,7 @@ function initializeContext(params) {
|
|
|
18041
18632
|
};
|
|
18042
18633
|
}
|
|
18043
18634
|
function process2(schema, ctx, _params = { path: [], schemaPath: [] }) {
|
|
18044
|
-
var
|
|
18635
|
+
var _a3;
|
|
18045
18636
|
const def = schema._zod.def;
|
|
18046
18637
|
const seen = ctx.seen.get(schema);
|
|
18047
18638
|
if (seen) {
|
|
@@ -18088,8 +18679,8 @@ function process2(schema, ctx, _params = { path: [], schemaPath: [] }) {
|
|
|
18088
18679
|
delete result.schema.examples;
|
|
18089
18680
|
delete result.schema.default;
|
|
18090
18681
|
}
|
|
18091
|
-
if (ctx.io === "input" && result.schema
|
|
18092
|
-
(
|
|
18682
|
+
if (ctx.io === "input" && "_prefault" in result.schema)
|
|
18683
|
+
(_a3 = result.schema).default ?? (_a3.default = result.schema._prefault);
|
|
18093
18684
|
delete result.schema._prefault;
|
|
18094
18685
|
const _result = ctx.seen.get(schema);
|
|
18095
18686
|
return _result.schema;
|
|
@@ -18270,10 +18861,15 @@ function finalize(ctx, schema) {
|
|
|
18270
18861
|
result.$id = ctx.external.uri(id);
|
|
18271
18862
|
}
|
|
18272
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;
|
|
18273
18867
|
const defs = ctx.external?.defs ?? {};
|
|
18274
18868
|
for (const entry of ctx.seen.entries()) {
|
|
18275
18869
|
const seen = entry[1];
|
|
18276
18870
|
if (seen.def && seen.defId) {
|
|
18871
|
+
if (seen.def.id === seen.defId)
|
|
18872
|
+
delete seen.def.id;
|
|
18277
18873
|
defs[seen.defId] = seen.def;
|
|
18278
18874
|
}
|
|
18279
18875
|
}
|
|
@@ -18329,6 +18925,8 @@ function isTransforming(_schema, _ctx) {
|
|
|
18329
18925
|
return isTransforming(def.keyType, ctx) || isTransforming(def.valueType, ctx);
|
|
18330
18926
|
}
|
|
18331
18927
|
if (def.type === "pipe") {
|
|
18928
|
+
if (_schema._zod.traits.has("$ZodCodec"))
|
|
18929
|
+
return true;
|
|
18332
18930
|
return isTransforming(def.in, ctx) || isTransforming(def.out, ctx);
|
|
18333
18931
|
}
|
|
18334
18932
|
if (def.type === "object") {
|
|
@@ -18418,39 +19016,28 @@ var numberProcessor = (schema, ctx, _json, _params) => {
|
|
|
18418
19016
|
json3.type = "integer";
|
|
18419
19017
|
else
|
|
18420
19018
|
json3.type = "number";
|
|
18421
|
-
|
|
18422
|
-
|
|
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) {
|
|
18423
19024
|
json3.minimum = exclusiveMinimum;
|
|
18424
19025
|
json3.exclusiveMinimum = true;
|
|
18425
19026
|
} else {
|
|
18426
19027
|
json3.exclusiveMinimum = exclusiveMinimum;
|
|
18427
19028
|
}
|
|
18428
|
-
}
|
|
18429
|
-
if (typeof minimum === "number") {
|
|
19029
|
+
} else if (typeof minimum === "number") {
|
|
18430
19030
|
json3.minimum = minimum;
|
|
18431
|
-
if (typeof exclusiveMinimum === "number" && ctx.target !== "draft-04") {
|
|
18432
|
-
if (exclusiveMinimum >= minimum)
|
|
18433
|
-
delete json3.minimum;
|
|
18434
|
-
else
|
|
18435
|
-
delete json3.exclusiveMinimum;
|
|
18436
|
-
}
|
|
18437
19031
|
}
|
|
18438
|
-
if (
|
|
18439
|
-
if (
|
|
19032
|
+
if (exMax) {
|
|
19033
|
+
if (legacy) {
|
|
18440
19034
|
json3.maximum = exclusiveMaximum;
|
|
18441
19035
|
json3.exclusiveMaximum = true;
|
|
18442
19036
|
} else {
|
|
18443
19037
|
json3.exclusiveMaximum = exclusiveMaximum;
|
|
18444
19038
|
}
|
|
18445
|
-
}
|
|
18446
|
-
if (typeof maximum === "number") {
|
|
19039
|
+
} else if (typeof maximum === "number") {
|
|
18447
19040
|
json3.maximum = maximum;
|
|
18448
|
-
if (typeof exclusiveMaximum === "number" && ctx.target !== "draft-04") {
|
|
18449
|
-
if (exclusiveMaximum <= maximum)
|
|
18450
|
-
delete json3.maximum;
|
|
18451
|
-
else
|
|
18452
|
-
delete json3.exclusiveMaximum;
|
|
18453
|
-
}
|
|
18454
19041
|
}
|
|
18455
19042
|
if (typeof multipleOf === "number")
|
|
18456
19043
|
json3.multipleOf = multipleOf;
|
|
@@ -18622,7 +19209,10 @@ var arrayProcessor = (schema, ctx, _json, params) => {
|
|
|
18622
19209
|
if (typeof maximum === "number")
|
|
18623
19210
|
json3.maxItems = maximum;
|
|
18624
19211
|
json3.type = "array";
|
|
18625
|
-
json3.items = process2(def.element, ctx, {
|
|
19212
|
+
json3.items = process2(def.element, ctx, {
|
|
19213
|
+
...params,
|
|
19214
|
+
path: [...params.path, "items"]
|
|
19215
|
+
});
|
|
18626
19216
|
};
|
|
18627
19217
|
var objectProcessor = (schema, ctx, _json, params) => {
|
|
18628
19218
|
const json3 = _json;
|
|
@@ -18815,7 +19405,8 @@ var catchProcessor = (schema, ctx, json3, params) => {
|
|
|
18815
19405
|
};
|
|
18816
19406
|
var pipeProcessor = (schema, ctx, _json, params) => {
|
|
18817
19407
|
const def = schema._zod.def;
|
|
18818
|
-
const
|
|
19408
|
+
const inIsTransform = def.in._zod.traits.has("$ZodTransform");
|
|
19409
|
+
const innerType = ctx.io === "input" ? inIsTransform ? def.out : def.in : def.out;
|
|
18819
19410
|
process2(innerType, ctx, params);
|
|
18820
19411
|
const seen = ctx.seen.get(schema);
|
|
18821
19412
|
seen.ref = innerType;
|
|
@@ -19049,6 +19640,7 @@ __export(schemas_exports2, {
|
|
|
19049
19640
|
ZodOptional: () => ZodOptional,
|
|
19050
19641
|
ZodPipe: () => ZodPipe,
|
|
19051
19642
|
ZodPrefault: () => ZodPrefault,
|
|
19643
|
+
ZodPreprocess: () => ZodPreprocess,
|
|
19052
19644
|
ZodPromise: () => ZodPromise,
|
|
19053
19645
|
ZodReadonly: () => ZodReadonly,
|
|
19054
19646
|
ZodRecord: () => ZodRecord,
|
|
@@ -19109,6 +19701,7 @@ __export(schemas_exports2, {
|
|
|
19109
19701
|
int32: () => int32,
|
|
19110
19702
|
int64: () => int64,
|
|
19111
19703
|
intersection: () => intersection,
|
|
19704
|
+
invertCodec: () => invertCodec,
|
|
19112
19705
|
ipv4: () => ipv42,
|
|
19113
19706
|
ipv6: () => ipv62,
|
|
19114
19707
|
json: () => json,
|
|
@@ -19278,8 +19871,8 @@ var initializer2 = (inst, issues) => {
|
|
|
19278
19871
|
}
|
|
19279
19872
|
});
|
|
19280
19873
|
};
|
|
19281
|
-
var ZodError = $constructor("ZodError", initializer2);
|
|
19282
|
-
var ZodRealError = $constructor("ZodError", initializer2, {
|
|
19874
|
+
var ZodError = /* @__PURE__ */ $constructor("ZodError", initializer2);
|
|
19875
|
+
var ZodRealError = /* @__PURE__ */ $constructor("ZodError", initializer2, {
|
|
19283
19876
|
Parent: Error
|
|
19284
19877
|
});
|
|
19285
19878
|
|
|
@@ -19298,6 +19891,43 @@ var safeEncodeAsync2 = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
|
|
|
19298
19891
|
var safeDecodeAsync2 = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
|
|
19299
19892
|
|
|
19300
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
|
+
}
|
|
19301
19931
|
var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
19302
19932
|
$ZodType.init(inst, def);
|
|
19303
19933
|
Object.assign(inst["~standard"], {
|
|
@@ -19310,23 +19940,6 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
|
19310
19940
|
inst.def = def;
|
|
19311
19941
|
inst.type = def.type;
|
|
19312
19942
|
Object.defineProperty(inst, "_def", { value: def });
|
|
19313
|
-
inst.check = (...checks) => {
|
|
19314
|
-
return inst.clone(util_exports.mergeDefs(def, {
|
|
19315
|
-
checks: [
|
|
19316
|
-
...def.checks ?? [],
|
|
19317
|
-
...checks.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch)
|
|
19318
|
-
]
|
|
19319
|
-
}), {
|
|
19320
|
-
parent: true
|
|
19321
|
-
});
|
|
19322
|
-
};
|
|
19323
|
-
inst.with = inst.check;
|
|
19324
|
-
inst.clone = (def2, params) => clone(inst, def2, params);
|
|
19325
|
-
inst.brand = () => inst;
|
|
19326
|
-
inst.register = (reg, meta3) => {
|
|
19327
|
-
reg.add(inst, meta3);
|
|
19328
|
-
return inst;
|
|
19329
|
-
};
|
|
19330
19943
|
inst.parse = (data, params) => parse2(inst, data, params, { callee: inst.parse });
|
|
19331
19944
|
inst.safeParse = (data, params) => safeParse2(inst, data, params);
|
|
19332
19945
|
inst.parseAsync = async (data, params) => parseAsync2(inst, data, params, { callee: inst.parseAsync });
|
|
@@ -19340,45 +19953,108 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
|
19340
19953
|
inst.safeDecode = (data, params) => safeDecode2(inst, data, params);
|
|
19341
19954
|
inst.safeEncodeAsync = async (data, params) => safeEncodeAsync2(inst, data, params);
|
|
19342
19955
|
inst.safeDecodeAsync = async (data, params) => safeDecodeAsync2(inst, data, params);
|
|
19343
|
-
inst
|
|
19344
|
-
|
|
19345
|
-
|
|
19346
|
-
|
|
19347
|
-
|
|
19348
|
-
|
|
19349
|
-
|
|
19350
|
-
|
|
19351
|
-
|
|
19352
|
-
|
|
19353
|
-
|
|
19354
|
-
|
|
19355
|
-
|
|
19356
|
-
|
|
19357
|
-
|
|
19358
|
-
|
|
19359
|
-
|
|
19360
|
-
|
|
19361
|
-
|
|
19362
|
-
|
|
19363
|
-
|
|
19364
|
-
|
|
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
|
+
});
|
|
19365
20052
|
Object.defineProperty(inst, "description", {
|
|
19366
20053
|
get() {
|
|
19367
20054
|
return globalRegistry.get(inst)?.description;
|
|
19368
20055
|
},
|
|
19369
20056
|
configurable: true
|
|
19370
20057
|
});
|
|
19371
|
-
inst.meta = (...args) => {
|
|
19372
|
-
if (args.length === 0) {
|
|
19373
|
-
return globalRegistry.get(inst);
|
|
19374
|
-
}
|
|
19375
|
-
const cl = inst.clone();
|
|
19376
|
-
globalRegistry.add(cl, args[0]);
|
|
19377
|
-
return cl;
|
|
19378
|
-
};
|
|
19379
|
-
inst.isOptional = () => inst.safeParse(void 0).success;
|
|
19380
|
-
inst.isNullable = () => inst.safeParse(null).success;
|
|
19381
|
-
inst.apply = (fn) => fn(inst);
|
|
19382
20058
|
return inst;
|
|
19383
20059
|
});
|
|
19384
20060
|
var _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
|
|
@@ -19389,21 +20065,53 @@ var _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
|
|
|
19389
20065
|
inst.format = bag.format ?? null;
|
|
19390
20066
|
inst.minLength = bag.minimum ?? null;
|
|
19391
20067
|
inst.maxLength = bag.maximum ?? null;
|
|
19392
|
-
inst
|
|
19393
|
-
|
|
19394
|
-
|
|
19395
|
-
|
|
19396
|
-
|
|
19397
|
-
|
|
19398
|
-
|
|
19399
|
-
|
|
19400
|
-
|
|
19401
|
-
|
|
19402
|
-
|
|
19403
|
-
|
|
19404
|
-
|
|
19405
|
-
|
|
19406
|
-
|
|
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
|
+
});
|
|
19407
20115
|
});
|
|
19408
20116
|
var ZodString = /* @__PURE__ */ $constructor("ZodString", (inst, def) => {
|
|
19409
20117
|
$ZodString.init(inst, def);
|
|
@@ -19482,7 +20190,7 @@ function url(params) {
|
|
|
19482
20190
|
}
|
|
19483
20191
|
function httpUrl(params) {
|
|
19484
20192
|
return _url(ZodURL, {
|
|
19485
|
-
protocol:
|
|
20193
|
+
protocol: regexes_exports.httpProtocol,
|
|
19486
20194
|
hostname: regexes_exports.domain,
|
|
19487
20195
|
...util_exports.normalizeParams(params)
|
|
19488
20196
|
});
|
|
@@ -19624,21 +20332,53 @@ var ZodNumber = /* @__PURE__ */ $constructor("ZodNumber", (inst, def) => {
|
|
|
19624
20332
|
$ZodNumber.init(inst, def);
|
|
19625
20333
|
ZodType.init(inst, def);
|
|
19626
20334
|
inst._zod.processJSONSchema = (ctx, json3, params) => numberProcessor(inst, ctx, json3, params);
|
|
19627
|
-
inst
|
|
19628
|
-
|
|
19629
|
-
|
|
19630
|
-
|
|
19631
|
-
|
|
19632
|
-
|
|
19633
|
-
|
|
19634
|
-
|
|
19635
|
-
|
|
19636
|
-
|
|
19637
|
-
|
|
19638
|
-
|
|
19639
|
-
|
|
19640
|
-
|
|
19641
|
-
|
|
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
|
+
});
|
|
19642
20382
|
const bag = inst._zod.bag;
|
|
19643
20383
|
inst.minValue = Math.max(bag.minimum ?? Number.NEGATIVE_INFINITY, bag.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null;
|
|
19644
20384
|
inst.maxValue = Math.min(bag.maximum ?? Number.POSITIVE_INFINITY, bag.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null;
|
|
@@ -19785,11 +20525,23 @@ var ZodArray = /* @__PURE__ */ $constructor("ZodArray", (inst, def) => {
|
|
|
19785
20525
|
ZodType.init(inst, def);
|
|
19786
20526
|
inst._zod.processJSONSchema = (ctx, json3, params) => arrayProcessor(inst, ctx, json3, params);
|
|
19787
20527
|
inst.element = def.element;
|
|
19788
|
-
inst
|
|
19789
|
-
|
|
19790
|
-
|
|
19791
|
-
|
|
19792
|
-
|
|
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
|
+
});
|
|
19793
20545
|
});
|
|
19794
20546
|
function array(element, params) {
|
|
19795
20547
|
return _array(ZodArray, element, params);
|
|
@@ -19805,23 +20557,47 @@ var ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => {
|
|
|
19805
20557
|
util_exports.defineLazy(inst, "shape", () => {
|
|
19806
20558
|
return def.shape;
|
|
19807
20559
|
});
|
|
19808
|
-
inst
|
|
19809
|
-
|
|
19810
|
-
|
|
19811
|
-
|
|
19812
|
-
|
|
19813
|
-
|
|
19814
|
-
|
|
19815
|
-
|
|
19816
|
-
|
|
19817
|
-
|
|
19818
|
-
|
|
19819
|
-
|
|
19820
|
-
|
|
19821
|
-
|
|
19822
|
-
|
|
19823
|
-
|
|
19824
|
-
|
|
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
|
+
});
|
|
19825
20601
|
});
|
|
19826
20602
|
function object(shape, params) {
|
|
19827
20603
|
const def = {
|
|
@@ -19926,6 +20702,14 @@ var ZodRecord = /* @__PURE__ */ $constructor("ZodRecord", (inst, def) => {
|
|
|
19926
20702
|
inst.valueType = def.valueType;
|
|
19927
20703
|
});
|
|
19928
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
|
+
}
|
|
19929
20713
|
return new ZodRecord({
|
|
19930
20714
|
type: "record",
|
|
19931
20715
|
keyType,
|
|
@@ -20097,10 +20881,12 @@ var ZodTransform = /* @__PURE__ */ $constructor("ZodTransform", (inst, def) => {
|
|
|
20097
20881
|
if (output instanceof Promise) {
|
|
20098
20882
|
return output.then((output2) => {
|
|
20099
20883
|
payload.value = output2;
|
|
20884
|
+
payload.fallback = true;
|
|
20100
20885
|
return payload;
|
|
20101
20886
|
});
|
|
20102
20887
|
}
|
|
20103
20888
|
payload.value = output;
|
|
20889
|
+
payload.fallback = true;
|
|
20104
20890
|
return payload;
|
|
20105
20891
|
};
|
|
20106
20892
|
});
|
|
@@ -20255,6 +21041,20 @@ function codec(in_, out, params) {
|
|
|
20255
21041
|
reverseTransform: params.encode
|
|
20256
21042
|
});
|
|
20257
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
|
+
});
|
|
20258
21058
|
var ZodReadonly = /* @__PURE__ */ $constructor("ZodReadonly", (inst, def) => {
|
|
20259
21059
|
$ZodReadonly.init(inst, def);
|
|
20260
21060
|
ZodType.init(inst, def);
|
|
@@ -20334,8 +21134,8 @@ function custom(fn, _params) {
|
|
|
20334
21134
|
function refine(fn, _params = {}) {
|
|
20335
21135
|
return _refine(ZodCustom, fn, _params);
|
|
20336
21136
|
}
|
|
20337
|
-
function superRefine(fn) {
|
|
20338
|
-
return _superRefine(fn);
|
|
21137
|
+
function superRefine(fn, params) {
|
|
21138
|
+
return _superRefine(fn, params);
|
|
20339
21139
|
}
|
|
20340
21140
|
var describe2 = describe;
|
|
20341
21141
|
var meta2 = meta;
|
|
@@ -20373,7 +21173,11 @@ function json(params) {
|
|
|
20373
21173
|
return jsonSchema;
|
|
20374
21174
|
}
|
|
20375
21175
|
function preprocess(fn, schema) {
|
|
20376
|
-
return
|
|
21176
|
+
return new ZodPreprocess({
|
|
21177
|
+
type: "pipe",
|
|
21178
|
+
in: transform(fn),
|
|
21179
|
+
out: schema
|
|
21180
|
+
});
|
|
20377
21181
|
}
|
|
20378
21182
|
|
|
20379
21183
|
// node_modules/zod/v4/classic/compat.js
|
|
@@ -20794,12 +21598,6 @@ function convertBaseSchema(schema, ctx) {
|
|
|
20794
21598
|
default:
|
|
20795
21599
|
throw new Error(`Unsupported type: ${type}`);
|
|
20796
21600
|
}
|
|
20797
|
-
if (schema.description) {
|
|
20798
|
-
zodSchema = zodSchema.describe(schema.description);
|
|
20799
|
-
}
|
|
20800
|
-
if (schema.default !== void 0) {
|
|
20801
|
-
zodSchema = zodSchema.default(schema.default);
|
|
20802
|
-
}
|
|
20803
21601
|
return zodSchema;
|
|
20804
21602
|
}
|
|
20805
21603
|
function convertSchema(schema, ctx) {
|
|
@@ -20836,6 +21634,9 @@ function convertSchema(schema, ctx) {
|
|
|
20836
21634
|
if (schema.readOnly === true) {
|
|
20837
21635
|
baseSchema = z.readonly(baseSchema);
|
|
20838
21636
|
}
|
|
21637
|
+
if (schema.default !== void 0) {
|
|
21638
|
+
baseSchema = baseSchema.default(schema.default);
|
|
21639
|
+
}
|
|
20839
21640
|
const extraMeta = {};
|
|
20840
21641
|
const coreMetadataKeys = ["$id", "id", "$comment", "$anchor", "$vocabulary", "$dynamicRef", "$dynamicAnchor"];
|
|
20841
21642
|
for (const key of coreMetadataKeys) {
|
|
@@ -20857,23 +21658,32 @@ function convertSchema(schema, ctx) {
|
|
|
20857
21658
|
if (Object.keys(extraMeta).length > 0) {
|
|
20858
21659
|
ctx.registry.add(baseSchema, extraMeta);
|
|
20859
21660
|
}
|
|
21661
|
+
if (schema.description) {
|
|
21662
|
+
baseSchema = baseSchema.describe(schema.description);
|
|
21663
|
+
}
|
|
20860
21664
|
return baseSchema;
|
|
20861
21665
|
}
|
|
20862
21666
|
function fromJSONSchema(schema, params) {
|
|
20863
21667
|
if (typeof schema === "boolean") {
|
|
20864
21668
|
return schema ? z.any() : z.never();
|
|
20865
21669
|
}
|
|
20866
|
-
|
|
20867
|
-
|
|
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 || {};
|
|
20868
21678
|
const ctx = {
|
|
20869
21679
|
version: version3,
|
|
20870
21680
|
defs,
|
|
20871
21681
|
refs: /* @__PURE__ */ new Map(),
|
|
20872
21682
|
processing: /* @__PURE__ */ new Set(),
|
|
20873
|
-
rootSchema:
|
|
21683
|
+
rootSchema: normalized,
|
|
20874
21684
|
registry: params?.registry ?? globalRegistry
|
|
20875
21685
|
};
|
|
20876
|
-
return convertSchema(
|
|
21686
|
+
return convertSchema(normalized, ctx);
|
|
20877
21687
|
}
|
|
20878
21688
|
|
|
20879
21689
|
// node_modules/zod/v4/classic/coerce.js
|
|
@@ -20978,10 +21788,10 @@ var AgentRegistry = class _AgentRegistry {
|
|
|
20978
21788
|
}
|
|
20979
21789
|
}
|
|
20980
21790
|
}
|
|
20981
|
-
} catch (
|
|
20982
|
-
const nodeError =
|
|
21791
|
+
} catch (error95) {
|
|
21792
|
+
const nodeError = error95;
|
|
20983
21793
|
if (nodeError.code !== "ENOENT") {
|
|
20984
|
-
log(`[AgentRegistry] Error loading custom agents: ${
|
|
21794
|
+
log(`[AgentRegistry] Error loading custom agents: ${error95}`);
|
|
20985
21795
|
}
|
|
20986
21796
|
}
|
|
20987
21797
|
}
|
|
@@ -21014,8 +21824,8 @@ var TaskLauncher = class {
|
|
|
21014
21824
|
);
|
|
21015
21825
|
const successfulTasks = tasks.filter((t) => t !== null);
|
|
21016
21826
|
successfulTasks.forEach((task) => {
|
|
21017
|
-
this.executeBackground(task).catch((
|
|
21018
|
-
this.onTaskError(task.id,
|
|
21827
|
+
this.executeBackground(task).catch((error95) => {
|
|
21828
|
+
this.onTaskError(task.id, error95);
|
|
21019
21829
|
});
|
|
21020
21830
|
});
|
|
21021
21831
|
if (successfulTasks.length > 0) {
|
|
@@ -21124,12 +21934,12 @@ ${finalPrompt}` : finalPrompt;
|
|
|
21124
21934
|
)
|
|
21125
21935
|
]);
|
|
21126
21936
|
return;
|
|
21127
|
-
} catch (
|
|
21937
|
+
} catch (error95) {
|
|
21128
21938
|
const context = {
|
|
21129
21939
|
sessionId: task.sessionID,
|
|
21130
21940
|
taskId: task.id,
|
|
21131
21941
|
agent: task.agent,
|
|
21132
|
-
error:
|
|
21942
|
+
error: error95 instanceof Error ? error95 : new Error(String(error95)),
|
|
21133
21943
|
attempt,
|
|
21134
21944
|
timestamp: /* @__PURE__ */ new Date()
|
|
21135
21945
|
};
|
|
@@ -21147,7 +21957,7 @@ ${action.modifyPrompt}`;
|
|
|
21147
21957
|
attempt++;
|
|
21148
21958
|
continue;
|
|
21149
21959
|
}
|
|
21150
|
-
throw
|
|
21960
|
+
throw error95;
|
|
21151
21961
|
}
|
|
21152
21962
|
}
|
|
21153
21963
|
} finally {
|
|
@@ -21188,10 +21998,10 @@ var TaskResumer = class {
|
|
|
21188
21998
|
agent: existingTask.agent,
|
|
21189
21999
|
parts: [{ type: PART_TYPES.TEXT, text: input.prompt }]
|
|
21190
22000
|
}
|
|
21191
|
-
}).catch((
|
|
21192
|
-
log(`Resume prompt error for ${existingTask.id}:`,
|
|
22001
|
+
}).catch((error95) => {
|
|
22002
|
+
log(`Resume prompt error for ${existingTask.id}:`, error95);
|
|
21193
22003
|
existingTask.status = TASK_STATUS.ERROR;
|
|
21194
|
-
existingTask.error =
|
|
22004
|
+
existingTask.error = error95 instanceof Error ? error95.message : String(error95);
|
|
21195
22005
|
existingTask.completedAt = /* @__PURE__ */ new Date();
|
|
21196
22006
|
this.store.untrackPending(input.parentSessionID, existingTask.id);
|
|
21197
22007
|
this.store.queueNotification(existingTask);
|
|
@@ -21241,7 +22051,7 @@ var StateBroadcaster = class _StateBroadcaster {
|
|
|
21241
22051
|
this.listeners.forEach((listener) => {
|
|
21242
22052
|
try {
|
|
21243
22053
|
listener(state2);
|
|
21244
|
-
} catch (
|
|
22054
|
+
} catch (error95) {
|
|
21245
22055
|
}
|
|
21246
22056
|
});
|
|
21247
22057
|
}
|
|
@@ -21389,13 +22199,13 @@ var TaskPoller = class {
|
|
|
21389
22199
|
await this.completeTask(task);
|
|
21390
22200
|
}
|
|
21391
22201
|
}
|
|
21392
|
-
} catch (
|
|
21393
|
-
log(`Poll error for task ${task.id}:`,
|
|
22202
|
+
} catch (error95) {
|
|
22203
|
+
log(`Poll error for task ${task.id}:`, error95);
|
|
21394
22204
|
}
|
|
21395
22205
|
}
|
|
21396
22206
|
progressNotifier.update();
|
|
21397
|
-
} catch (
|
|
21398
|
-
log("Polling error:",
|
|
22207
|
+
} catch (error95) {
|
|
22208
|
+
log("Polling error:", error95);
|
|
21399
22209
|
}
|
|
21400
22210
|
}
|
|
21401
22211
|
async validateSessionHasOutput(sessionID, task) {
|
|
@@ -21563,8 +22373,8 @@ var TaskCleaner = class {
|
|
|
21563
22373
|
try {
|
|
21564
22374
|
await this.sessionPool.release(sessionID);
|
|
21565
22375
|
clear2(sessionID);
|
|
21566
|
-
} catch (
|
|
21567
|
-
log(`Session cleanup error for ${sessionID}:`,
|
|
22376
|
+
} catch (error95) {
|
|
22377
|
+
log(`Session cleanup error for ${sessionID}:`, error95);
|
|
21568
22378
|
}
|
|
21569
22379
|
}
|
|
21570
22380
|
this.store.delete(taskId);
|
|
@@ -21619,8 +22429,8 @@ You will be notified when ALL tasks complete. Continue productive work.`;
|
|
|
21619
22429
|
}
|
|
21620
22430
|
});
|
|
21621
22431
|
log(`Notified parent ${parentSessionID} (allComplete=${allComplete}, noReply=${!allComplete})`);
|
|
21622
|
-
} catch (
|
|
21623
|
-
log("Notification error:",
|
|
22432
|
+
} catch (error95) {
|
|
22433
|
+
log("Notification error:", error95);
|
|
21624
22434
|
}
|
|
21625
22435
|
this.store.clearNotifications(parentSessionID);
|
|
21626
22436
|
}
|
|
@@ -21884,8 +22694,8 @@ var SessionPool = class _SessionPool {
|
|
|
21884
22694
|
}
|
|
21885
22695
|
session.lastResetAt = /* @__PURE__ */ new Date();
|
|
21886
22696
|
session.health = "healthy";
|
|
21887
|
-
} catch (
|
|
21888
|
-
log(`[SessionPool] Failed to reset session ${sessionId.slice(0, 8)}: ${
|
|
22697
|
+
} catch (error95) {
|
|
22698
|
+
log(`[SessionPool] Failed to reset session ${sessionId.slice(0, 8)}: ${error95}`);
|
|
21889
22699
|
session.health = "degraded";
|
|
21890
22700
|
}
|
|
21891
22701
|
}
|
|
@@ -22013,8 +22823,8 @@ var TodoManager = class _TodoManager {
|
|
|
22013
22823
|
}
|
|
22014
22824
|
}
|
|
22015
22825
|
return { content, version: versionInfo };
|
|
22016
|
-
} catch (
|
|
22017
|
-
log(`[TodoManager] Error reading TODO: ${
|
|
22826
|
+
} catch (error95) {
|
|
22827
|
+
log(`[TodoManager] Error reading TODO: ${error95}`);
|
|
22018
22828
|
return { content: "", version: { version: 0, timestamp: Date.now(), author: "system" } };
|
|
22019
22829
|
}
|
|
22020
22830
|
}
|
|
@@ -22067,8 +22877,8 @@ var TodoManager = class _TodoManager {
|
|
|
22067
22877
|
});
|
|
22068
22878
|
log(`[TodoManager] Updated TODO to v${newVersion} by ${author}`);
|
|
22069
22879
|
return { success: true, currentVersion: newVersion };
|
|
22070
|
-
} catch (
|
|
22071
|
-
if (attempt === MAX_RETRIES2 - 1) throw
|
|
22880
|
+
} catch (error95) {
|
|
22881
|
+
if (attempt === MAX_RETRIES2 - 1) throw error95;
|
|
22072
22882
|
await new Promise((r) => setTimeout(r, RETRY_DELAY));
|
|
22073
22883
|
}
|
|
22074
22884
|
}
|
|
@@ -22182,7 +22992,7 @@ var ParallelAgentManager = class _ParallelAgentManager {
|
|
|
22182
22992
|
this.store,
|
|
22183
22993
|
this.concurrency,
|
|
22184
22994
|
this.sessionPool,
|
|
22185
|
-
(taskId,
|
|
22995
|
+
(taskId, error95) => this.handleTaskError(taskId, error95),
|
|
22186
22996
|
() => this.poller.start()
|
|
22187
22997
|
);
|
|
22188
22998
|
this.resumer = new TaskResumer(
|
|
@@ -22274,8 +23084,8 @@ var ParallelAgentManager = class _ParallelAgentManager {
|
|
|
22274
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") ?? "";
|
|
22275
23085
|
task.result = text;
|
|
22276
23086
|
return text;
|
|
22277
|
-
} catch (
|
|
22278
|
-
return `Error: ${
|
|
23087
|
+
} catch (error95) {
|
|
23088
|
+
return `Error: ${error95 instanceof Error ? error95.message : String(error95)}`;
|
|
22279
23089
|
}
|
|
22280
23090
|
}
|
|
22281
23091
|
setConcurrencyLimit(agentType, limit) {
|
|
@@ -22315,11 +23125,11 @@ var ParallelAgentManager = class _ParallelAgentManager {
|
|
|
22315
23125
|
findBySession(sessionID) {
|
|
22316
23126
|
return this.store.getAll().find((t) => t.sessionID === sessionID);
|
|
22317
23127
|
}
|
|
22318
|
-
handleTaskError(taskId,
|
|
23128
|
+
handleTaskError(taskId, error95) {
|
|
22319
23129
|
const task = this.store.get(taskId);
|
|
22320
23130
|
if (!task) return;
|
|
22321
23131
|
task.status = TASK_STATUS.ERROR;
|
|
22322
|
-
task.error =
|
|
23132
|
+
task.error = error95 instanceof Error ? error95.message : String(error95);
|
|
22323
23133
|
task.completedAt = /* @__PURE__ */ new Date();
|
|
22324
23134
|
if (task.concurrencyKey) {
|
|
22325
23135
|
this.concurrency.release(task.concurrencyKey);
|
|
@@ -22349,8 +23159,8 @@ This task ensures the completeness of the unit before global integration.`,
|
|
|
22349
23159
|
groupID: task.groupID || task.id
|
|
22350
23160
|
// Group reviews with their origins
|
|
22351
23161
|
});
|
|
22352
|
-
} catch (
|
|
22353
|
-
log(`[MSVP] Failed to trigger review for ${task.id}:`,
|
|
23162
|
+
} catch (error95) {
|
|
23163
|
+
log(`[MSVP] Failed to trigger review for ${task.id}:`, error95);
|
|
22354
23164
|
}
|
|
22355
23165
|
}
|
|
22356
23166
|
progressNotifier.update();
|
|
@@ -22869,12 +23679,12 @@ var NEVER2 = Object.freeze({
|
|
|
22869
23679
|
// @__NO_SIDE_EFFECTS__
|
|
22870
23680
|
function $constructor2(name, initializer5, params) {
|
|
22871
23681
|
function init(inst, def) {
|
|
22872
|
-
var
|
|
23682
|
+
var _a3;
|
|
22873
23683
|
Object.defineProperty(inst, "_zod", {
|
|
22874
23684
|
value: inst._zod ?? {},
|
|
22875
23685
|
enumerable: false
|
|
22876
23686
|
});
|
|
22877
|
-
(
|
|
23687
|
+
(_a3 = inst._zod).traits ?? (_a3.traits = /* @__PURE__ */ new Set());
|
|
22878
23688
|
inst._zod.traits.add(name);
|
|
22879
23689
|
initializer5(inst, def);
|
|
22880
23690
|
for (const k in _.prototype) {
|
|
@@ -22889,10 +23699,10 @@ function $constructor2(name, initializer5, params) {
|
|
|
22889
23699
|
}
|
|
22890
23700
|
Object.defineProperty(Definition, "name", { value: name });
|
|
22891
23701
|
function _(def) {
|
|
22892
|
-
var
|
|
23702
|
+
var _a3;
|
|
22893
23703
|
const inst = params?.Parent ? new Definition() : this;
|
|
22894
23704
|
init(inst, def);
|
|
22895
|
-
(
|
|
23705
|
+
(_a3 = inst._zod).deferred ?? (_a3.deferred = []);
|
|
22896
23706
|
for (const fn of inst._zod.deferred) {
|
|
22897
23707
|
fn();
|
|
22898
23708
|
}
|
|
@@ -23465,8 +24275,8 @@ function aborted2(x, startIndex = 0) {
|
|
|
23465
24275
|
}
|
|
23466
24276
|
function prefixIssues2(path10, issues) {
|
|
23467
24277
|
return issues.map((iss) => {
|
|
23468
|
-
var
|
|
23469
|
-
(
|
|
24278
|
+
var _a3;
|
|
24279
|
+
(_a3 = iss).path ?? (_a3.path = []);
|
|
23470
24280
|
iss.path.unshift(path10);
|
|
23471
24281
|
return iss;
|
|
23472
24282
|
});
|
|
@@ -23581,10 +24391,10 @@ var initializer3 = (inst, def) => {
|
|
|
23581
24391
|
};
|
|
23582
24392
|
var $ZodError2 = $constructor2("$ZodError", initializer3);
|
|
23583
24393
|
var $ZodRealError2 = $constructor2("$ZodError", initializer3, { Parent: Error });
|
|
23584
|
-
function flattenError2(
|
|
24394
|
+
function flattenError2(error95, mapper = (issue3) => issue3.message) {
|
|
23585
24395
|
const fieldErrors = {};
|
|
23586
24396
|
const formErrors = [];
|
|
23587
|
-
for (const sub of
|
|
24397
|
+
for (const sub of error95.issues) {
|
|
23588
24398
|
if (sub.path.length > 0) {
|
|
23589
24399
|
fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];
|
|
23590
24400
|
fieldErrors[sub.path[0]].push(mapper(sub));
|
|
@@ -23594,13 +24404,13 @@ function flattenError2(error92, mapper = (issue3) => issue3.message) {
|
|
|
23594
24404
|
}
|
|
23595
24405
|
return { formErrors, fieldErrors };
|
|
23596
24406
|
}
|
|
23597
|
-
function formatError2(
|
|
24407
|
+
function formatError2(error95, _mapper) {
|
|
23598
24408
|
const mapper = _mapper || function(issue3) {
|
|
23599
24409
|
return issue3.message;
|
|
23600
24410
|
};
|
|
23601
24411
|
const fieldErrors = { _errors: [] };
|
|
23602
|
-
const processError = (
|
|
23603
|
-
for (const issue3 of
|
|
24412
|
+
const processError = (error96) => {
|
|
24413
|
+
for (const issue3 of error96.issues) {
|
|
23604
24414
|
if (issue3.code === "invalid_union" && issue3.errors.length) {
|
|
23605
24415
|
issue3.errors.map((issues) => processError({ issues }));
|
|
23606
24416
|
} else if (issue3.code === "invalid_key") {
|
|
@@ -23627,17 +24437,17 @@ function formatError2(error92, _mapper) {
|
|
|
23627
24437
|
}
|
|
23628
24438
|
}
|
|
23629
24439
|
};
|
|
23630
|
-
processError(
|
|
24440
|
+
processError(error95);
|
|
23631
24441
|
return fieldErrors;
|
|
23632
24442
|
}
|
|
23633
|
-
function treeifyError2(
|
|
24443
|
+
function treeifyError2(error95, _mapper) {
|
|
23634
24444
|
const mapper = _mapper || function(issue3) {
|
|
23635
24445
|
return issue3.message;
|
|
23636
24446
|
};
|
|
23637
24447
|
const result = { errors: [] };
|
|
23638
|
-
const processError = (
|
|
23639
|
-
var
|
|
23640
|
-
for (const issue3 of
|
|
24448
|
+
const processError = (error96, path10 = []) => {
|
|
24449
|
+
var _a3, _b;
|
|
24450
|
+
for (const issue3 of error96.issues) {
|
|
23641
24451
|
if (issue3.code === "invalid_union" && issue3.errors.length) {
|
|
23642
24452
|
issue3.errors.map((issues) => processError({ issues }, issue3.path));
|
|
23643
24453
|
} else if (issue3.code === "invalid_key") {
|
|
@@ -23657,7 +24467,7 @@ function treeifyError2(error92, _mapper) {
|
|
|
23657
24467
|
const terminal = i === fullpath.length - 1;
|
|
23658
24468
|
if (typeof el === "string") {
|
|
23659
24469
|
curr.properties ?? (curr.properties = {});
|
|
23660
|
-
(
|
|
24470
|
+
(_a3 = curr.properties)[el] ?? (_a3[el] = { errors: [] });
|
|
23661
24471
|
curr = curr.properties[el];
|
|
23662
24472
|
} else {
|
|
23663
24473
|
curr.items ?? (curr.items = []);
|
|
@@ -23672,7 +24482,7 @@ function treeifyError2(error92, _mapper) {
|
|
|
23672
24482
|
}
|
|
23673
24483
|
}
|
|
23674
24484
|
};
|
|
23675
|
-
processError(
|
|
24485
|
+
processError(error95);
|
|
23676
24486
|
return result;
|
|
23677
24487
|
}
|
|
23678
24488
|
function toDotPath2(_path) {
|
|
@@ -23693,9 +24503,9 @@ function toDotPath2(_path) {
|
|
|
23693
24503
|
}
|
|
23694
24504
|
return segs.join("");
|
|
23695
24505
|
}
|
|
23696
|
-
function prettifyError2(
|
|
24506
|
+
function prettifyError2(error95) {
|
|
23697
24507
|
const lines = [];
|
|
23698
|
-
const issues = [...
|
|
24508
|
+
const issues = [...error95.issues].sort((a, b) => (a.path ?? []).length - (b.path ?? []).length);
|
|
23699
24509
|
for (const issue3 of issues) {
|
|
23700
24510
|
lines.push(`\u2716 ${issue3.message}`);
|
|
23701
24511
|
if (issue3.path?.length)
|
|
@@ -23946,10 +24756,10 @@ var sha512_base64url2 = /* @__PURE__ */ fixedBase64url2(86);
|
|
|
23946
24756
|
|
|
23947
24757
|
// node_modules/@opencode-ai/plugin/node_modules/zod/v4/core/checks.js
|
|
23948
24758
|
var $ZodCheck2 = /* @__PURE__ */ $constructor2("$ZodCheck", (inst, def) => {
|
|
23949
|
-
var
|
|
24759
|
+
var _a3;
|
|
23950
24760
|
inst._zod ?? (inst._zod = {});
|
|
23951
24761
|
inst._zod.def = def;
|
|
23952
|
-
(
|
|
24762
|
+
(_a3 = inst._zod).onattach ?? (_a3.onattach = []);
|
|
23953
24763
|
});
|
|
23954
24764
|
var numericOriginMap2 = {
|
|
23955
24765
|
number: "number",
|
|
@@ -24015,8 +24825,8 @@ var $ZodCheckGreaterThan2 = /* @__PURE__ */ $constructor2("$ZodCheckGreaterThan"
|
|
|
24015
24825
|
var $ZodCheckMultipleOf2 = /* @__PURE__ */ $constructor2("$ZodCheckMultipleOf", (inst, def) => {
|
|
24016
24826
|
$ZodCheck2.init(inst, def);
|
|
24017
24827
|
inst._zod.onattach.push((inst2) => {
|
|
24018
|
-
var
|
|
24019
|
-
(
|
|
24828
|
+
var _a3;
|
|
24829
|
+
(_a3 = inst2._zod.bag).multipleOf ?? (_a3.multipleOf = def.value);
|
|
24020
24830
|
});
|
|
24021
24831
|
inst._zod.check = (payload) => {
|
|
24022
24832
|
if (typeof payload.value !== typeof def.value)
|
|
@@ -24143,9 +24953,9 @@ var $ZodCheckBigIntFormat2 = /* @__PURE__ */ $constructor2("$ZodCheckBigIntForma
|
|
|
24143
24953
|
};
|
|
24144
24954
|
});
|
|
24145
24955
|
var $ZodCheckMaxSize2 = /* @__PURE__ */ $constructor2("$ZodCheckMaxSize", (inst, def) => {
|
|
24146
|
-
var
|
|
24956
|
+
var _a3;
|
|
24147
24957
|
$ZodCheck2.init(inst, def);
|
|
24148
|
-
(
|
|
24958
|
+
(_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
|
|
24149
24959
|
const val = payload.value;
|
|
24150
24960
|
return !nullish3(val) && val.size !== void 0;
|
|
24151
24961
|
});
|
|
@@ -24171,9 +24981,9 @@ var $ZodCheckMaxSize2 = /* @__PURE__ */ $constructor2("$ZodCheckMaxSize", (inst,
|
|
|
24171
24981
|
};
|
|
24172
24982
|
});
|
|
24173
24983
|
var $ZodCheckMinSize2 = /* @__PURE__ */ $constructor2("$ZodCheckMinSize", (inst, def) => {
|
|
24174
|
-
var
|
|
24984
|
+
var _a3;
|
|
24175
24985
|
$ZodCheck2.init(inst, def);
|
|
24176
|
-
(
|
|
24986
|
+
(_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
|
|
24177
24987
|
const val = payload.value;
|
|
24178
24988
|
return !nullish3(val) && val.size !== void 0;
|
|
24179
24989
|
});
|
|
@@ -24199,9 +25009,9 @@ var $ZodCheckMinSize2 = /* @__PURE__ */ $constructor2("$ZodCheckMinSize", (inst,
|
|
|
24199
25009
|
};
|
|
24200
25010
|
});
|
|
24201
25011
|
var $ZodCheckSizeEquals2 = /* @__PURE__ */ $constructor2("$ZodCheckSizeEquals", (inst, def) => {
|
|
24202
|
-
var
|
|
25012
|
+
var _a3;
|
|
24203
25013
|
$ZodCheck2.init(inst, def);
|
|
24204
|
-
(
|
|
25014
|
+
(_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
|
|
24205
25015
|
const val = payload.value;
|
|
24206
25016
|
return !nullish3(val) && val.size !== void 0;
|
|
24207
25017
|
});
|
|
@@ -24229,9 +25039,9 @@ var $ZodCheckSizeEquals2 = /* @__PURE__ */ $constructor2("$ZodCheckSizeEquals",
|
|
|
24229
25039
|
};
|
|
24230
25040
|
});
|
|
24231
25041
|
var $ZodCheckMaxLength2 = /* @__PURE__ */ $constructor2("$ZodCheckMaxLength", (inst, def) => {
|
|
24232
|
-
var
|
|
25042
|
+
var _a3;
|
|
24233
25043
|
$ZodCheck2.init(inst, def);
|
|
24234
|
-
(
|
|
25044
|
+
(_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
|
|
24235
25045
|
const val = payload.value;
|
|
24236
25046
|
return !nullish3(val) && val.length !== void 0;
|
|
24237
25047
|
});
|
|
@@ -24258,9 +25068,9 @@ var $ZodCheckMaxLength2 = /* @__PURE__ */ $constructor2("$ZodCheckMaxLength", (i
|
|
|
24258
25068
|
};
|
|
24259
25069
|
});
|
|
24260
25070
|
var $ZodCheckMinLength2 = /* @__PURE__ */ $constructor2("$ZodCheckMinLength", (inst, def) => {
|
|
24261
|
-
var
|
|
25071
|
+
var _a3;
|
|
24262
25072
|
$ZodCheck2.init(inst, def);
|
|
24263
|
-
(
|
|
25073
|
+
(_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
|
|
24264
25074
|
const val = payload.value;
|
|
24265
25075
|
return !nullish3(val) && val.length !== void 0;
|
|
24266
25076
|
});
|
|
@@ -24287,9 +25097,9 @@ var $ZodCheckMinLength2 = /* @__PURE__ */ $constructor2("$ZodCheckMinLength", (i
|
|
|
24287
25097
|
};
|
|
24288
25098
|
});
|
|
24289
25099
|
var $ZodCheckLengthEquals2 = /* @__PURE__ */ $constructor2("$ZodCheckLengthEquals", (inst, def) => {
|
|
24290
|
-
var
|
|
25100
|
+
var _a3;
|
|
24291
25101
|
$ZodCheck2.init(inst, def);
|
|
24292
|
-
(
|
|
25102
|
+
(_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
|
|
24293
25103
|
const val = payload.value;
|
|
24294
25104
|
return !nullish3(val) && val.length !== void 0;
|
|
24295
25105
|
});
|
|
@@ -24318,7 +25128,7 @@ var $ZodCheckLengthEquals2 = /* @__PURE__ */ $constructor2("$ZodCheckLengthEqual
|
|
|
24318
25128
|
};
|
|
24319
25129
|
});
|
|
24320
25130
|
var $ZodCheckStringFormat2 = /* @__PURE__ */ $constructor2("$ZodCheckStringFormat", (inst, def) => {
|
|
24321
|
-
var
|
|
25131
|
+
var _a3, _b;
|
|
24322
25132
|
$ZodCheck2.init(inst, def);
|
|
24323
25133
|
inst._zod.onattach.push((inst2) => {
|
|
24324
25134
|
const bag = inst2._zod.bag;
|
|
@@ -24329,7 +25139,7 @@ var $ZodCheckStringFormat2 = /* @__PURE__ */ $constructor2("$ZodCheckStringForma
|
|
|
24329
25139
|
}
|
|
24330
25140
|
});
|
|
24331
25141
|
if (def.pattern)
|
|
24332
|
-
(
|
|
25142
|
+
(_a3 = inst._zod).check ?? (_a3.check = (payload) => {
|
|
24333
25143
|
def.pattern.lastIndex = 0;
|
|
24334
25144
|
if (def.pattern.test(payload.value))
|
|
24335
25145
|
return;
|
|
@@ -24531,7 +25341,7 @@ var version2 = {
|
|
|
24531
25341
|
|
|
24532
25342
|
// node_modules/@opencode-ai/plugin/node_modules/zod/v4/core/schemas.js
|
|
24533
25343
|
var $ZodType2 = /* @__PURE__ */ $constructor2("$ZodType", (inst, def) => {
|
|
24534
|
-
var
|
|
25344
|
+
var _a3;
|
|
24535
25345
|
inst ?? (inst = {});
|
|
24536
25346
|
inst._zod.def = def;
|
|
24537
25347
|
inst._zod.bag = inst._zod.bag || {};
|
|
@@ -24546,7 +25356,7 @@ var $ZodType2 = /* @__PURE__ */ $constructor2("$ZodType", (inst, def) => {
|
|
|
24546
25356
|
}
|
|
24547
25357
|
}
|
|
24548
25358
|
if (checks.length === 0) {
|
|
24549
|
-
(
|
|
25359
|
+
(_a3 = inst._zod).deferred ?? (_a3.deferred = []);
|
|
24550
25360
|
inst._zod.deferred?.push(() => {
|
|
24551
25361
|
inst._zod.run = inst._zod.parse;
|
|
24552
25362
|
});
|
|
@@ -26413,7 +27223,7 @@ __export(locales_exports2, {
|
|
|
26413
27223
|
});
|
|
26414
27224
|
|
|
26415
27225
|
// node_modules/@opencode-ai/plugin/node_modules/zod/v4/locales/ar.js
|
|
26416
|
-
var
|
|
27226
|
+
var error51 = () => {
|
|
26417
27227
|
const Sizable = {
|
|
26418
27228
|
string: { unit: "\u062D\u0631\u0641", verb: "\u0623\u0646 \u064A\u062D\u0648\u064A" },
|
|
26419
27229
|
file: { unit: "\u0628\u0627\u064A\u062A", verb: "\u0623\u0646 \u064A\u062D\u0648\u064A" },
|
|
@@ -26525,12 +27335,12 @@ var error48 = () => {
|
|
|
26525
27335
|
};
|
|
26526
27336
|
function ar_default2() {
|
|
26527
27337
|
return {
|
|
26528
|
-
localeError:
|
|
27338
|
+
localeError: error51()
|
|
26529
27339
|
};
|
|
26530
27340
|
}
|
|
26531
27341
|
|
|
26532
27342
|
// node_modules/@opencode-ai/plugin/node_modules/zod/v4/locales/az.js
|
|
26533
|
-
var
|
|
27343
|
+
var error52 = () => {
|
|
26534
27344
|
const Sizable = {
|
|
26535
27345
|
string: { unit: "simvol", verb: "olmal\u0131d\u0131r" },
|
|
26536
27346
|
file: { unit: "bayt", verb: "olmal\u0131d\u0131r" },
|
|
@@ -26641,7 +27451,7 @@ var error49 = () => {
|
|
|
26641
27451
|
};
|
|
26642
27452
|
function az_default2() {
|
|
26643
27453
|
return {
|
|
26644
|
-
localeError:
|
|
27454
|
+
localeError: error52()
|
|
26645
27455
|
};
|
|
26646
27456
|
}
|
|
26647
27457
|
|
|
@@ -26661,7 +27471,7 @@ function getBelarusianPlural2(count, one, few, many) {
|
|
|
26661
27471
|
}
|
|
26662
27472
|
return many;
|
|
26663
27473
|
}
|
|
26664
|
-
var
|
|
27474
|
+
var error53 = () => {
|
|
26665
27475
|
const Sizable = {
|
|
26666
27476
|
string: {
|
|
26667
27477
|
unit: {
|
|
@@ -26806,12 +27616,12 @@ var error50 = () => {
|
|
|
26806
27616
|
};
|
|
26807
27617
|
function be_default2() {
|
|
26808
27618
|
return {
|
|
26809
|
-
localeError:
|
|
27619
|
+
localeError: error53()
|
|
26810
27620
|
};
|
|
26811
27621
|
}
|
|
26812
27622
|
|
|
26813
27623
|
// node_modules/@opencode-ai/plugin/node_modules/zod/v4/locales/ca.js
|
|
26814
|
-
var
|
|
27624
|
+
var error54 = () => {
|
|
26815
27625
|
const Sizable = {
|
|
26816
27626
|
string: { unit: "car\xE0cters", verb: "contenir" },
|
|
26817
27627
|
file: { unit: "bytes", verb: "contenir" },
|
|
@@ -26926,12 +27736,12 @@ var error51 = () => {
|
|
|
26926
27736
|
};
|
|
26927
27737
|
function ca_default2() {
|
|
26928
27738
|
return {
|
|
26929
|
-
localeError:
|
|
27739
|
+
localeError: error54()
|
|
26930
27740
|
};
|
|
26931
27741
|
}
|
|
26932
27742
|
|
|
26933
27743
|
// node_modules/@opencode-ai/plugin/node_modules/zod/v4/locales/cs.js
|
|
26934
|
-
var
|
|
27744
|
+
var error55 = () => {
|
|
26935
27745
|
const Sizable = {
|
|
26936
27746
|
string: { unit: "znak\u016F", verb: "m\xEDt" },
|
|
26937
27747
|
file: { unit: "bajt\u016F", verb: "m\xEDt" },
|
|
@@ -27062,12 +27872,12 @@ var error52 = () => {
|
|
|
27062
27872
|
};
|
|
27063
27873
|
function cs_default2() {
|
|
27064
27874
|
return {
|
|
27065
|
-
localeError:
|
|
27875
|
+
localeError: error55()
|
|
27066
27876
|
};
|
|
27067
27877
|
}
|
|
27068
27878
|
|
|
27069
27879
|
// node_modules/@opencode-ai/plugin/node_modules/zod/v4/locales/da.js
|
|
27070
|
-
var
|
|
27880
|
+
var error56 = () => {
|
|
27071
27881
|
const Sizable = {
|
|
27072
27882
|
string: { unit: "tegn", verb: "havde" },
|
|
27073
27883
|
file: { unit: "bytes", verb: "havde" },
|
|
@@ -27194,12 +28004,12 @@ var error53 = () => {
|
|
|
27194
28004
|
};
|
|
27195
28005
|
function da_default2() {
|
|
27196
28006
|
return {
|
|
27197
|
-
localeError:
|
|
28007
|
+
localeError: error56()
|
|
27198
28008
|
};
|
|
27199
28009
|
}
|
|
27200
28010
|
|
|
27201
28011
|
// node_modules/@opencode-ai/plugin/node_modules/zod/v4/locales/de.js
|
|
27202
|
-
var
|
|
28012
|
+
var error57 = () => {
|
|
27203
28013
|
const Sizable = {
|
|
27204
28014
|
string: { unit: "Zeichen", verb: "zu haben" },
|
|
27205
28015
|
file: { unit: "Bytes", verb: "zu haben" },
|
|
@@ -27311,7 +28121,7 @@ var error54 = () => {
|
|
|
27311
28121
|
};
|
|
27312
28122
|
function de_default2() {
|
|
27313
28123
|
return {
|
|
27314
|
-
localeError:
|
|
28124
|
+
localeError: error57()
|
|
27315
28125
|
};
|
|
27316
28126
|
}
|
|
27317
28127
|
|
|
@@ -27336,7 +28146,7 @@ var parsedType2 = (data) => {
|
|
|
27336
28146
|
}
|
|
27337
28147
|
return t;
|
|
27338
28148
|
};
|
|
27339
|
-
var
|
|
28149
|
+
var error58 = () => {
|
|
27340
28150
|
const Sizable = {
|
|
27341
28151
|
string: { unit: "characters", verb: "to have" },
|
|
27342
28152
|
file: { unit: "bytes", verb: "to have" },
|
|
@@ -27429,7 +28239,7 @@ var error55 = () => {
|
|
|
27429
28239
|
};
|
|
27430
28240
|
function en_default2() {
|
|
27431
28241
|
return {
|
|
27432
|
-
localeError:
|
|
28242
|
+
localeError: error58()
|
|
27433
28243
|
};
|
|
27434
28244
|
}
|
|
27435
28245
|
|
|
@@ -27454,7 +28264,7 @@ var parsedType3 = (data) => {
|
|
|
27454
28264
|
}
|
|
27455
28265
|
return t;
|
|
27456
28266
|
};
|
|
27457
|
-
var
|
|
28267
|
+
var error59 = () => {
|
|
27458
28268
|
const Sizable = {
|
|
27459
28269
|
string: { unit: "karaktrojn", verb: "havi" },
|
|
27460
28270
|
file: { unit: "bajtojn", verb: "havi" },
|
|
@@ -27546,12 +28356,12 @@ var error56 = () => {
|
|
|
27546
28356
|
};
|
|
27547
28357
|
function eo_default2() {
|
|
27548
28358
|
return {
|
|
27549
|
-
localeError:
|
|
28359
|
+
localeError: error59()
|
|
27550
28360
|
};
|
|
27551
28361
|
}
|
|
27552
28362
|
|
|
27553
28363
|
// node_modules/@opencode-ai/plugin/node_modules/zod/v4/locales/es.js
|
|
27554
|
-
var
|
|
28364
|
+
var error60 = () => {
|
|
27555
28365
|
const Sizable = {
|
|
27556
28366
|
string: { unit: "caracteres", verb: "tener" },
|
|
27557
28367
|
file: { unit: "bytes", verb: "tener" },
|
|
@@ -27696,12 +28506,12 @@ var error57 = () => {
|
|
|
27696
28506
|
};
|
|
27697
28507
|
function es_default2() {
|
|
27698
28508
|
return {
|
|
27699
|
-
localeError:
|
|
28509
|
+
localeError: error60()
|
|
27700
28510
|
};
|
|
27701
28511
|
}
|
|
27702
28512
|
|
|
27703
28513
|
// node_modules/@opencode-ai/plugin/node_modules/zod/v4/locales/fa.js
|
|
27704
|
-
var
|
|
28514
|
+
var error61 = () => {
|
|
27705
28515
|
const Sizable = {
|
|
27706
28516
|
string: { unit: "\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
|
|
27707
28517
|
file: { unit: "\u0628\u0627\u06CC\u062A", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
|
|
@@ -27819,12 +28629,12 @@ var error58 = () => {
|
|
|
27819
28629
|
};
|
|
27820
28630
|
function fa_default2() {
|
|
27821
28631
|
return {
|
|
27822
|
-
localeError:
|
|
28632
|
+
localeError: error61()
|
|
27823
28633
|
};
|
|
27824
28634
|
}
|
|
27825
28635
|
|
|
27826
28636
|
// node_modules/@opencode-ai/plugin/node_modules/zod/v4/locales/fi.js
|
|
27827
|
-
var
|
|
28637
|
+
var error62 = () => {
|
|
27828
28638
|
const Sizable = {
|
|
27829
28639
|
string: { unit: "merkki\xE4", subject: "merkkijonon" },
|
|
27830
28640
|
file: { unit: "tavua", subject: "tiedoston" },
|
|
@@ -27942,12 +28752,12 @@ var error59 = () => {
|
|
|
27942
28752
|
};
|
|
27943
28753
|
function fi_default2() {
|
|
27944
28754
|
return {
|
|
27945
|
-
localeError:
|
|
28755
|
+
localeError: error62()
|
|
27946
28756
|
};
|
|
27947
28757
|
}
|
|
27948
28758
|
|
|
27949
28759
|
// node_modules/@opencode-ai/plugin/node_modules/zod/v4/locales/fr.js
|
|
27950
|
-
var
|
|
28760
|
+
var error63 = () => {
|
|
27951
28761
|
const Sizable = {
|
|
27952
28762
|
string: { unit: "caract\xE8res", verb: "avoir" },
|
|
27953
28763
|
file: { unit: "octets", verb: "avoir" },
|
|
@@ -28059,12 +28869,12 @@ var error60 = () => {
|
|
|
28059
28869
|
};
|
|
28060
28870
|
function fr_default2() {
|
|
28061
28871
|
return {
|
|
28062
|
-
localeError:
|
|
28872
|
+
localeError: error63()
|
|
28063
28873
|
};
|
|
28064
28874
|
}
|
|
28065
28875
|
|
|
28066
28876
|
// node_modules/@opencode-ai/plugin/node_modules/zod/v4/locales/fr-CA.js
|
|
28067
|
-
var
|
|
28877
|
+
var error64 = () => {
|
|
28068
28878
|
const Sizable = {
|
|
28069
28879
|
string: { unit: "caract\xE8res", verb: "avoir" },
|
|
28070
28880
|
file: { unit: "octets", verb: "avoir" },
|
|
@@ -28177,12 +28987,12 @@ var error61 = () => {
|
|
|
28177
28987
|
};
|
|
28178
28988
|
function fr_CA_default2() {
|
|
28179
28989
|
return {
|
|
28180
|
-
localeError:
|
|
28990
|
+
localeError: error64()
|
|
28181
28991
|
};
|
|
28182
28992
|
}
|
|
28183
28993
|
|
|
28184
28994
|
// node_modules/@opencode-ai/plugin/node_modules/zod/v4/locales/he.js
|
|
28185
|
-
var
|
|
28995
|
+
var error65 = () => {
|
|
28186
28996
|
const Sizable = {
|
|
28187
28997
|
string: { unit: "\u05D0\u05D5\u05EA\u05D9\u05D5\u05EA", verb: "\u05DC\u05DB\u05DC\u05D5\u05DC" },
|
|
28188
28998
|
file: { unit: "\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD", verb: "\u05DC\u05DB\u05DC\u05D5\u05DC" },
|
|
@@ -28295,12 +29105,12 @@ var error62 = () => {
|
|
|
28295
29105
|
};
|
|
28296
29106
|
function he_default2() {
|
|
28297
29107
|
return {
|
|
28298
|
-
localeError:
|
|
29108
|
+
localeError: error65()
|
|
28299
29109
|
};
|
|
28300
29110
|
}
|
|
28301
29111
|
|
|
28302
29112
|
// node_modules/@opencode-ai/plugin/node_modules/zod/v4/locales/hu.js
|
|
28303
|
-
var
|
|
29113
|
+
var error66 = () => {
|
|
28304
29114
|
const Sizable = {
|
|
28305
29115
|
string: { unit: "karakter", verb: "legyen" },
|
|
28306
29116
|
file: { unit: "byte", verb: "legyen" },
|
|
@@ -28413,12 +29223,12 @@ var error63 = () => {
|
|
|
28413
29223
|
};
|
|
28414
29224
|
function hu_default2() {
|
|
28415
29225
|
return {
|
|
28416
|
-
localeError:
|
|
29226
|
+
localeError: error66()
|
|
28417
29227
|
};
|
|
28418
29228
|
}
|
|
28419
29229
|
|
|
28420
29230
|
// node_modules/@opencode-ai/plugin/node_modules/zod/v4/locales/id.js
|
|
28421
|
-
var
|
|
29231
|
+
var error67 = () => {
|
|
28422
29232
|
const Sizable = {
|
|
28423
29233
|
string: { unit: "karakter", verb: "memiliki" },
|
|
28424
29234
|
file: { unit: "byte", verb: "memiliki" },
|
|
@@ -28530,7 +29340,7 @@ var error64 = () => {
|
|
|
28530
29340
|
};
|
|
28531
29341
|
function id_default2() {
|
|
28532
29342
|
return {
|
|
28533
|
-
localeError:
|
|
29343
|
+
localeError: error67()
|
|
28534
29344
|
};
|
|
28535
29345
|
}
|
|
28536
29346
|
|
|
@@ -28555,7 +29365,7 @@ var parsedType4 = (data) => {
|
|
|
28555
29365
|
}
|
|
28556
29366
|
return t;
|
|
28557
29367
|
};
|
|
28558
|
-
var
|
|
29368
|
+
var error68 = () => {
|
|
28559
29369
|
const Sizable = {
|
|
28560
29370
|
string: { unit: "stafi", verb: "a\xF0 hafa" },
|
|
28561
29371
|
file: { unit: "b\xE6ti", verb: "a\xF0 hafa" },
|
|
@@ -28648,12 +29458,12 @@ var error65 = () => {
|
|
|
28648
29458
|
};
|
|
28649
29459
|
function is_default2() {
|
|
28650
29460
|
return {
|
|
28651
|
-
localeError:
|
|
29461
|
+
localeError: error68()
|
|
28652
29462
|
};
|
|
28653
29463
|
}
|
|
28654
29464
|
|
|
28655
29465
|
// node_modules/@opencode-ai/plugin/node_modules/zod/v4/locales/it.js
|
|
28656
|
-
var
|
|
29466
|
+
var error69 = () => {
|
|
28657
29467
|
const Sizable = {
|
|
28658
29468
|
string: { unit: "caratteri", verb: "avere" },
|
|
28659
29469
|
file: { unit: "byte", verb: "avere" },
|
|
@@ -28766,12 +29576,12 @@ var error66 = () => {
|
|
|
28766
29576
|
};
|
|
28767
29577
|
function it_default2() {
|
|
28768
29578
|
return {
|
|
28769
|
-
localeError:
|
|
29579
|
+
localeError: error69()
|
|
28770
29580
|
};
|
|
28771
29581
|
}
|
|
28772
29582
|
|
|
28773
29583
|
// node_modules/@opencode-ai/plugin/node_modules/zod/v4/locales/ja.js
|
|
28774
|
-
var
|
|
29584
|
+
var error70 = () => {
|
|
28775
29585
|
const Sizable = {
|
|
28776
29586
|
string: { unit: "\u6587\u5B57", verb: "\u3067\u3042\u308B" },
|
|
28777
29587
|
file: { unit: "\u30D0\u30A4\u30C8", verb: "\u3067\u3042\u308B" },
|
|
@@ -28882,7 +29692,7 @@ var error67 = () => {
|
|
|
28882
29692
|
};
|
|
28883
29693
|
function ja_default2() {
|
|
28884
29694
|
return {
|
|
28885
|
-
localeError:
|
|
29695
|
+
localeError: error70()
|
|
28886
29696
|
};
|
|
28887
29697
|
}
|
|
28888
29698
|
|
|
@@ -28915,7 +29725,7 @@ var parsedType5 = (data) => {
|
|
|
28915
29725
|
};
|
|
28916
29726
|
return typeMap[t] ?? t;
|
|
28917
29727
|
};
|
|
28918
|
-
var
|
|
29728
|
+
var error71 = () => {
|
|
28919
29729
|
const Sizable = {
|
|
28920
29730
|
string: { unit: "\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" },
|
|
28921
29731
|
file: { unit: "\u10D1\u10D0\u10D8\u10E2\u10D8", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" },
|
|
@@ -29008,12 +29818,12 @@ var error68 = () => {
|
|
|
29008
29818
|
};
|
|
29009
29819
|
function ka_default2() {
|
|
29010
29820
|
return {
|
|
29011
|
-
localeError:
|
|
29821
|
+
localeError: error71()
|
|
29012
29822
|
};
|
|
29013
29823
|
}
|
|
29014
29824
|
|
|
29015
29825
|
// node_modules/@opencode-ai/plugin/node_modules/zod/v4/locales/km.js
|
|
29016
|
-
var
|
|
29826
|
+
var error72 = () => {
|
|
29017
29827
|
const Sizable = {
|
|
29018
29828
|
string: { unit: "\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
|
|
29019
29829
|
file: { unit: "\u1794\u17C3", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
|
|
@@ -29126,7 +29936,7 @@ var error69 = () => {
|
|
|
29126
29936
|
};
|
|
29127
29937
|
function km_default2() {
|
|
29128
29938
|
return {
|
|
29129
|
-
localeError:
|
|
29939
|
+
localeError: error72()
|
|
29130
29940
|
};
|
|
29131
29941
|
}
|
|
29132
29942
|
|
|
@@ -29136,7 +29946,7 @@ function kh_default2() {
|
|
|
29136
29946
|
}
|
|
29137
29947
|
|
|
29138
29948
|
// node_modules/@opencode-ai/plugin/node_modules/zod/v4/locales/ko.js
|
|
29139
|
-
var
|
|
29949
|
+
var error73 = () => {
|
|
29140
29950
|
const Sizable = {
|
|
29141
29951
|
string: { unit: "\uBB38\uC790", verb: "to have" },
|
|
29142
29952
|
file: { unit: "\uBC14\uC774\uD2B8", verb: "to have" },
|
|
@@ -29253,7 +30063,7 @@ var error70 = () => {
|
|
|
29253
30063
|
};
|
|
29254
30064
|
function ko_default2() {
|
|
29255
30065
|
return {
|
|
29256
|
-
localeError:
|
|
30066
|
+
localeError: error73()
|
|
29257
30067
|
};
|
|
29258
30068
|
}
|
|
29259
30069
|
|
|
@@ -29318,7 +30128,7 @@ function getUnitTypeFromNumber2(number7) {
|
|
|
29318
30128
|
return "one";
|
|
29319
30129
|
return "few";
|
|
29320
30130
|
}
|
|
29321
|
-
var
|
|
30131
|
+
var error74 = () => {
|
|
29322
30132
|
const Sizable = {
|
|
29323
30133
|
string: {
|
|
29324
30134
|
unit: {
|
|
@@ -29484,12 +30294,12 @@ var error71 = () => {
|
|
|
29484
30294
|
};
|
|
29485
30295
|
function lt_default2() {
|
|
29486
30296
|
return {
|
|
29487
|
-
localeError:
|
|
30297
|
+
localeError: error74()
|
|
29488
30298
|
};
|
|
29489
30299
|
}
|
|
29490
30300
|
|
|
29491
30301
|
// node_modules/@opencode-ai/plugin/node_modules/zod/v4/locales/mk.js
|
|
29492
|
-
var
|
|
30302
|
+
var error75 = () => {
|
|
29493
30303
|
const Sizable = {
|
|
29494
30304
|
string: { unit: "\u0437\u043D\u0430\u0446\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
|
|
29495
30305
|
file: { unit: "\u0431\u0430\u0458\u0442\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
|
|
@@ -29603,12 +30413,12 @@ var error72 = () => {
|
|
|
29603
30413
|
};
|
|
29604
30414
|
function mk_default2() {
|
|
29605
30415
|
return {
|
|
29606
|
-
localeError:
|
|
30416
|
+
localeError: error75()
|
|
29607
30417
|
};
|
|
29608
30418
|
}
|
|
29609
30419
|
|
|
29610
30420
|
// node_modules/@opencode-ai/plugin/node_modules/zod/v4/locales/ms.js
|
|
29611
|
-
var
|
|
30421
|
+
var error76 = () => {
|
|
29612
30422
|
const Sizable = {
|
|
29613
30423
|
string: { unit: "aksara", verb: "mempunyai" },
|
|
29614
30424
|
file: { unit: "bait", verb: "mempunyai" },
|
|
@@ -29720,12 +30530,12 @@ var error73 = () => {
|
|
|
29720
30530
|
};
|
|
29721
30531
|
function ms_default2() {
|
|
29722
30532
|
return {
|
|
29723
|
-
localeError:
|
|
30533
|
+
localeError: error76()
|
|
29724
30534
|
};
|
|
29725
30535
|
}
|
|
29726
30536
|
|
|
29727
30537
|
// node_modules/@opencode-ai/plugin/node_modules/zod/v4/locales/nl.js
|
|
29728
|
-
var
|
|
30538
|
+
var error77 = () => {
|
|
29729
30539
|
const Sizable = {
|
|
29730
30540
|
string: { unit: "tekens" },
|
|
29731
30541
|
file: { unit: "bytes" },
|
|
@@ -29838,12 +30648,12 @@ var error74 = () => {
|
|
|
29838
30648
|
};
|
|
29839
30649
|
function nl_default2() {
|
|
29840
30650
|
return {
|
|
29841
|
-
localeError:
|
|
30651
|
+
localeError: error77()
|
|
29842
30652
|
};
|
|
29843
30653
|
}
|
|
29844
30654
|
|
|
29845
30655
|
// node_modules/@opencode-ai/plugin/node_modules/zod/v4/locales/no.js
|
|
29846
|
-
var
|
|
30656
|
+
var error78 = () => {
|
|
29847
30657
|
const Sizable = {
|
|
29848
30658
|
string: { unit: "tegn", verb: "\xE5 ha" },
|
|
29849
30659
|
file: { unit: "bytes", verb: "\xE5 ha" },
|
|
@@ -29955,12 +30765,12 @@ var error75 = () => {
|
|
|
29955
30765
|
};
|
|
29956
30766
|
function no_default2() {
|
|
29957
30767
|
return {
|
|
29958
|
-
localeError:
|
|
30768
|
+
localeError: error78()
|
|
29959
30769
|
};
|
|
29960
30770
|
}
|
|
29961
30771
|
|
|
29962
30772
|
// node_modules/@opencode-ai/plugin/node_modules/zod/v4/locales/ota.js
|
|
29963
|
-
var
|
|
30773
|
+
var error79 = () => {
|
|
29964
30774
|
const Sizable = {
|
|
29965
30775
|
string: { unit: "harf", verb: "olmal\u0131d\u0131r" },
|
|
29966
30776
|
file: { unit: "bayt", verb: "olmal\u0131d\u0131r" },
|
|
@@ -30073,12 +30883,12 @@ var error76 = () => {
|
|
|
30073
30883
|
};
|
|
30074
30884
|
function ota_default2() {
|
|
30075
30885
|
return {
|
|
30076
|
-
localeError:
|
|
30886
|
+
localeError: error79()
|
|
30077
30887
|
};
|
|
30078
30888
|
}
|
|
30079
30889
|
|
|
30080
30890
|
// node_modules/@opencode-ai/plugin/node_modules/zod/v4/locales/ps.js
|
|
30081
|
-
var
|
|
30891
|
+
var error80 = () => {
|
|
30082
30892
|
const Sizable = {
|
|
30083
30893
|
string: { unit: "\u062A\u0648\u06A9\u064A", verb: "\u0648\u0644\u0631\u064A" },
|
|
30084
30894
|
file: { unit: "\u0628\u0627\u06CC\u067C\u0633", verb: "\u0648\u0644\u0631\u064A" },
|
|
@@ -30196,12 +31006,12 @@ var error77 = () => {
|
|
|
30196
31006
|
};
|
|
30197
31007
|
function ps_default2() {
|
|
30198
31008
|
return {
|
|
30199
|
-
localeError:
|
|
31009
|
+
localeError: error80()
|
|
30200
31010
|
};
|
|
30201
31011
|
}
|
|
30202
31012
|
|
|
30203
31013
|
// node_modules/@opencode-ai/plugin/node_modules/zod/v4/locales/pl.js
|
|
30204
|
-
var
|
|
31014
|
+
var error81 = () => {
|
|
30205
31015
|
const Sizable = {
|
|
30206
31016
|
string: { unit: "znak\xF3w", verb: "mie\u0107" },
|
|
30207
31017
|
file: { unit: "bajt\xF3w", verb: "mie\u0107" },
|
|
@@ -30314,12 +31124,12 @@ var error78 = () => {
|
|
|
30314
31124
|
};
|
|
30315
31125
|
function pl_default2() {
|
|
30316
31126
|
return {
|
|
30317
|
-
localeError:
|
|
31127
|
+
localeError: error81()
|
|
30318
31128
|
};
|
|
30319
31129
|
}
|
|
30320
31130
|
|
|
30321
31131
|
// node_modules/@opencode-ai/plugin/node_modules/zod/v4/locales/pt.js
|
|
30322
|
-
var
|
|
31132
|
+
var error82 = () => {
|
|
30323
31133
|
const Sizable = {
|
|
30324
31134
|
string: { unit: "caracteres", verb: "ter" },
|
|
30325
31135
|
file: { unit: "bytes", verb: "ter" },
|
|
@@ -30431,7 +31241,7 @@ var error79 = () => {
|
|
|
30431
31241
|
};
|
|
30432
31242
|
function pt_default2() {
|
|
30433
31243
|
return {
|
|
30434
|
-
localeError:
|
|
31244
|
+
localeError: error82()
|
|
30435
31245
|
};
|
|
30436
31246
|
}
|
|
30437
31247
|
|
|
@@ -30451,7 +31261,7 @@ function getRussianPlural2(count, one, few, many) {
|
|
|
30451
31261
|
}
|
|
30452
31262
|
return many;
|
|
30453
31263
|
}
|
|
30454
|
-
var
|
|
31264
|
+
var error83 = () => {
|
|
30455
31265
|
const Sizable = {
|
|
30456
31266
|
string: {
|
|
30457
31267
|
unit: {
|
|
@@ -30596,12 +31406,12 @@ var error80 = () => {
|
|
|
30596
31406
|
};
|
|
30597
31407
|
function ru_default2() {
|
|
30598
31408
|
return {
|
|
30599
|
-
localeError:
|
|
31409
|
+
localeError: error83()
|
|
30600
31410
|
};
|
|
30601
31411
|
}
|
|
30602
31412
|
|
|
30603
31413
|
// node_modules/@opencode-ai/plugin/node_modules/zod/v4/locales/sl.js
|
|
30604
|
-
var
|
|
31414
|
+
var error84 = () => {
|
|
30605
31415
|
const Sizable = {
|
|
30606
31416
|
string: { unit: "znakov", verb: "imeti" },
|
|
30607
31417
|
file: { unit: "bajtov", verb: "imeti" },
|
|
@@ -30714,12 +31524,12 @@ var error81 = () => {
|
|
|
30714
31524
|
};
|
|
30715
31525
|
function sl_default2() {
|
|
30716
31526
|
return {
|
|
30717
|
-
localeError:
|
|
31527
|
+
localeError: error84()
|
|
30718
31528
|
};
|
|
30719
31529
|
}
|
|
30720
31530
|
|
|
30721
31531
|
// node_modules/@opencode-ai/plugin/node_modules/zod/v4/locales/sv.js
|
|
30722
|
-
var
|
|
31532
|
+
var error85 = () => {
|
|
30723
31533
|
const Sizable = {
|
|
30724
31534
|
string: { unit: "tecken", verb: "att ha" },
|
|
30725
31535
|
file: { unit: "bytes", verb: "att ha" },
|
|
@@ -30833,12 +31643,12 @@ var error82 = () => {
|
|
|
30833
31643
|
};
|
|
30834
31644
|
function sv_default2() {
|
|
30835
31645
|
return {
|
|
30836
|
-
localeError:
|
|
31646
|
+
localeError: error85()
|
|
30837
31647
|
};
|
|
30838
31648
|
}
|
|
30839
31649
|
|
|
30840
31650
|
// node_modules/@opencode-ai/plugin/node_modules/zod/v4/locales/ta.js
|
|
30841
|
-
var
|
|
31651
|
+
var error86 = () => {
|
|
30842
31652
|
const Sizable = {
|
|
30843
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" },
|
|
30844
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" },
|
|
@@ -30951,12 +31761,12 @@ var error83 = () => {
|
|
|
30951
31761
|
};
|
|
30952
31762
|
function ta_default2() {
|
|
30953
31763
|
return {
|
|
30954
|
-
localeError:
|
|
31764
|
+
localeError: error86()
|
|
30955
31765
|
};
|
|
30956
31766
|
}
|
|
30957
31767
|
|
|
30958
31768
|
// node_modules/@opencode-ai/plugin/node_modules/zod/v4/locales/th.js
|
|
30959
|
-
var
|
|
31769
|
+
var error87 = () => {
|
|
30960
31770
|
const Sizable = {
|
|
30961
31771
|
string: { unit: "\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
|
|
30962
31772
|
file: { unit: "\u0E44\u0E1A\u0E15\u0E4C", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
|
|
@@ -31069,7 +31879,7 @@ var error84 = () => {
|
|
|
31069
31879
|
};
|
|
31070
31880
|
function th_default2() {
|
|
31071
31881
|
return {
|
|
31072
|
-
localeError:
|
|
31882
|
+
localeError: error87()
|
|
31073
31883
|
};
|
|
31074
31884
|
}
|
|
31075
31885
|
|
|
@@ -31094,7 +31904,7 @@ var parsedType7 = (data) => {
|
|
|
31094
31904
|
}
|
|
31095
31905
|
return t;
|
|
31096
31906
|
};
|
|
31097
|
-
var
|
|
31907
|
+
var error88 = () => {
|
|
31098
31908
|
const Sizable = {
|
|
31099
31909
|
string: { unit: "karakter", verb: "olmal\u0131" },
|
|
31100
31910
|
file: { unit: "bayt", verb: "olmal\u0131" },
|
|
@@ -31185,12 +31995,12 @@ var error85 = () => {
|
|
|
31185
31995
|
};
|
|
31186
31996
|
function tr_default2() {
|
|
31187
31997
|
return {
|
|
31188
|
-
localeError:
|
|
31998
|
+
localeError: error88()
|
|
31189
31999
|
};
|
|
31190
32000
|
}
|
|
31191
32001
|
|
|
31192
32002
|
// node_modules/@opencode-ai/plugin/node_modules/zod/v4/locales/uk.js
|
|
31193
|
-
var
|
|
32003
|
+
var error89 = () => {
|
|
31194
32004
|
const Sizable = {
|
|
31195
32005
|
string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
|
|
31196
32006
|
file: { unit: "\u0431\u0430\u0439\u0442\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
|
|
@@ -31303,7 +32113,7 @@ var error86 = () => {
|
|
|
31303
32113
|
};
|
|
31304
32114
|
function uk_default2() {
|
|
31305
32115
|
return {
|
|
31306
|
-
localeError:
|
|
32116
|
+
localeError: error89()
|
|
31307
32117
|
};
|
|
31308
32118
|
}
|
|
31309
32119
|
|
|
@@ -31313,7 +32123,7 @@ function ua_default2() {
|
|
|
31313
32123
|
}
|
|
31314
32124
|
|
|
31315
32125
|
// node_modules/@opencode-ai/plugin/node_modules/zod/v4/locales/ur.js
|
|
31316
|
-
var
|
|
32126
|
+
var error90 = () => {
|
|
31317
32127
|
const Sizable = {
|
|
31318
32128
|
string: { unit: "\u062D\u0631\u0648\u0641", verb: "\u06C1\u0648\u0646\u0627" },
|
|
31319
32129
|
file: { unit: "\u0628\u0627\u0626\u0679\u0633", verb: "\u06C1\u0648\u0646\u0627" },
|
|
@@ -31426,12 +32236,12 @@ var error87 = () => {
|
|
|
31426
32236
|
};
|
|
31427
32237
|
function ur_default2() {
|
|
31428
32238
|
return {
|
|
31429
|
-
localeError:
|
|
32239
|
+
localeError: error90()
|
|
31430
32240
|
};
|
|
31431
32241
|
}
|
|
31432
32242
|
|
|
31433
32243
|
// node_modules/@opencode-ai/plugin/node_modules/zod/v4/locales/vi.js
|
|
31434
|
-
var
|
|
32244
|
+
var error91 = () => {
|
|
31435
32245
|
const Sizable = {
|
|
31436
32246
|
string: { unit: "k\xFD t\u1EF1", verb: "c\xF3" },
|
|
31437
32247
|
file: { unit: "byte", verb: "c\xF3" },
|
|
@@ -31543,12 +32353,12 @@ var error88 = () => {
|
|
|
31543
32353
|
};
|
|
31544
32354
|
function vi_default2() {
|
|
31545
32355
|
return {
|
|
31546
|
-
localeError:
|
|
32356
|
+
localeError: error91()
|
|
31547
32357
|
};
|
|
31548
32358
|
}
|
|
31549
32359
|
|
|
31550
32360
|
// node_modules/@opencode-ai/plugin/node_modules/zod/v4/locales/zh-CN.js
|
|
31551
|
-
var
|
|
32361
|
+
var error92 = () => {
|
|
31552
32362
|
const Sizable = {
|
|
31553
32363
|
string: { unit: "\u5B57\u7B26", verb: "\u5305\u542B" },
|
|
31554
32364
|
file: { unit: "\u5B57\u8282", verb: "\u5305\u542B" },
|
|
@@ -31660,12 +32470,12 @@ var error89 = () => {
|
|
|
31660
32470
|
};
|
|
31661
32471
|
function zh_CN_default2() {
|
|
31662
32472
|
return {
|
|
31663
|
-
localeError:
|
|
32473
|
+
localeError: error92()
|
|
31664
32474
|
};
|
|
31665
32475
|
}
|
|
31666
32476
|
|
|
31667
32477
|
// node_modules/@opencode-ai/plugin/node_modules/zod/v4/locales/zh-TW.js
|
|
31668
|
-
var
|
|
32478
|
+
var error93 = () => {
|
|
31669
32479
|
const Sizable = {
|
|
31670
32480
|
string: { unit: "\u5B57\u5143", verb: "\u64C1\u6709" },
|
|
31671
32481
|
file: { unit: "\u4F4D\u5143\u7D44", verb: "\u64C1\u6709" },
|
|
@@ -31778,12 +32588,12 @@ var error90 = () => {
|
|
|
31778
32588
|
};
|
|
31779
32589
|
function zh_TW_default2() {
|
|
31780
32590
|
return {
|
|
31781
|
-
localeError:
|
|
32591
|
+
localeError: error93()
|
|
31782
32592
|
};
|
|
31783
32593
|
}
|
|
31784
32594
|
|
|
31785
32595
|
// node_modules/@opencode-ai/plugin/node_modules/zod/v4/locales/yo.js
|
|
31786
|
-
var
|
|
32596
|
+
var error94 = () => {
|
|
31787
32597
|
const Sizable = {
|
|
31788
32598
|
string: { unit: "\xE0mi", verb: "n\xED" },
|
|
31789
32599
|
file: { unit: "bytes", verb: "n\xED" },
|
|
@@ -31894,7 +32704,7 @@ var error91 = () => {
|
|
|
31894
32704
|
};
|
|
31895
32705
|
function yo_default2() {
|
|
31896
32706
|
return {
|
|
31897
|
-
localeError:
|
|
32707
|
+
localeError: error94()
|
|
31898
32708
|
};
|
|
31899
32709
|
}
|
|
31900
32710
|
|
|
@@ -32844,7 +33654,7 @@ var JSONSchemaGenerator2 = class {
|
|
|
32844
33654
|
this.seen = /* @__PURE__ */ new Map();
|
|
32845
33655
|
}
|
|
32846
33656
|
process(schema, _params = { path: [], schemaPath: [] }) {
|
|
32847
|
-
var
|
|
33657
|
+
var _a3;
|
|
32848
33658
|
const def = schema._zod.def;
|
|
32849
33659
|
const formatMap2 = {
|
|
32850
33660
|
guid: "uuid",
|
|
@@ -33353,7 +34163,7 @@ var JSONSchemaGenerator2 = class {
|
|
|
33353
34163
|
delete result.schema.default;
|
|
33354
34164
|
}
|
|
33355
34165
|
if (this.io === "input" && result.schema._prefault)
|
|
33356
|
-
(
|
|
34166
|
+
(_a3 = result.schema).default ?? (_a3.default = result.schema._prefault);
|
|
33357
34167
|
delete result.schema._prefault;
|
|
33358
34168
|
const _result = this.seen.get(schema);
|
|
33359
34169
|
return _result.schema;
|
|
@@ -34822,8 +35632,8 @@ async function validateSessionHasOutput(session, sessionID) {
|
|
|
34822
35632
|
);
|
|
34823
35633
|
});
|
|
34824
35634
|
return hasContent;
|
|
34825
|
-
} catch (
|
|
34826
|
-
log(`${PARALLEL_LOG.DELEGATE_TASK} Error validating session output:`,
|
|
35635
|
+
} catch (error95) {
|
|
35636
|
+
log(`${PARALLEL_LOG.DELEGATE_TASK} Error validating session output:`, error95);
|
|
34827
35637
|
return true;
|
|
34828
35638
|
}
|
|
34829
35639
|
}
|
|
@@ -34883,8 +35693,8 @@ async function pollWithSafetyLimits(session, sessionID, startTime) {
|
|
|
34883
35693
|
stablePolls = 0;
|
|
34884
35694
|
lastMsgCount = count;
|
|
34885
35695
|
}
|
|
34886
|
-
} catch (
|
|
34887
|
-
log(`${PARALLEL_LOG.DELEGATE_TASK} Poll error (continuing):`,
|
|
35696
|
+
} catch (error95) {
|
|
35697
|
+
log(`${PARALLEL_LOG.DELEGATE_TASK} Poll error (continuing):`, error95);
|
|
34888
35698
|
}
|
|
34889
35699
|
}
|
|
34890
35700
|
log(`${PARALLEL_LOG.DELEGATE_TASK} Max poll count reached`, { pollCount, elapsed: Date.now() - startTime });
|
|
@@ -34903,8 +35713,8 @@ async function extractSessionResult(session, sessionID) {
|
|
|
34903
35713
|
const lastMsg = messages.filter((m) => m.info?.role === MESSAGE_ROLES.ASSISTANT).reverse()[0];
|
|
34904
35714
|
const text = lastMsg?.parts?.filter((p) => p.type === PART_TYPES.TEXT || p.type === PART_TYPES.REASONING).map((p) => p.text ?? "").join("\n") || "";
|
|
34905
35715
|
return text;
|
|
34906
|
-
} catch (
|
|
34907
|
-
log(`${PARALLEL_LOG.DELEGATE_TASK} Error extracting result:`,
|
|
35716
|
+
} catch (error95) {
|
|
35717
|
+
log(`${PARALLEL_LOG.DELEGATE_TASK} Error extracting result:`, error95);
|
|
34908
35718
|
return "(Error extracting result)";
|
|
34909
35719
|
}
|
|
34910
35720
|
}
|
|
@@ -35003,8 +35813,8 @@ Session: \`${task.sessionID}\` - Use get_task_result or resume later.`;
|
|
|
35003
35813
|
return `${OUTPUT_LABEL.RESUMED_DONE} (${Math.floor(pollResult.elapsedMs / 1e3)}s)
|
|
35004
35814
|
|
|
35005
35815
|
${text || "(No output)"}`;
|
|
35006
|
-
} catch (
|
|
35007
|
-
return `${OUTPUT_LABEL.ERROR} Resume failed: ${
|
|
35816
|
+
} catch (error95) {
|
|
35817
|
+
return `${OUTPUT_LABEL.ERROR} Resume failed: ${error95 instanceof Error ? error95.message : String(error95)}`;
|
|
35008
35818
|
}
|
|
35009
35819
|
}
|
|
35010
35820
|
if (background === true) {
|
|
@@ -35022,8 +35832,8 @@ ${text || "(No output)"}`;
|
|
|
35022
35832
|
presets_exports.taskStarted(task.id, agent);
|
|
35023
35833
|
return `${OUTPUT_LABEL.SPAWNED} task: \`${task.id}\` (${agent})
|
|
35024
35834
|
Session: \`${task.sessionID}\` (save for resume)`;
|
|
35025
|
-
} catch (
|
|
35026
|
-
return `${OUTPUT_LABEL.ERROR} Failed: ${
|
|
35835
|
+
} catch (error95) {
|
|
35836
|
+
return `${OUTPUT_LABEL.ERROR} Failed: ${error95 instanceof Error ? error95.message : String(error95)}`;
|
|
35027
35837
|
}
|
|
35028
35838
|
}
|
|
35029
35839
|
try {
|
|
@@ -35063,9 +35873,9 @@ Session: \`${sessionID}\` - Use ${TOOL_NAMES.GET_TASK_RESULT} or resume later.`;
|
|
|
35063
35873
|
Session: \`${sessionID}\` (save for resume)
|
|
35064
35874
|
|
|
35065
35875
|
${text || "(No output)"}`;
|
|
35066
|
-
} catch (
|
|
35067
|
-
log(`${PARALLEL_LOG.DELEGATE_TASK} Sync: error`,
|
|
35068
|
-
return `${OUTPUT_LABEL.ERROR} Failed: ${
|
|
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)}`;
|
|
35069
35879
|
}
|
|
35070
35880
|
}
|
|
35071
35881
|
});
|
|
@@ -35722,8 +36532,8 @@ function readLoopState(directory) {
|
|
|
35722
36532
|
try {
|
|
35723
36533
|
const content = readFileSync(filePath, "utf-8");
|
|
35724
36534
|
return JSON.parse(content);
|
|
35725
|
-
} catch (
|
|
35726
|
-
log(`[${MISSION_CONTROL.LOG_SOURCE}] Failed to read state: ${
|
|
36535
|
+
} catch (error95) {
|
|
36536
|
+
log(`[${MISSION_CONTROL.LOG_SOURCE}] Failed to read state: ${error95}`);
|
|
35727
36537
|
return null;
|
|
35728
36538
|
}
|
|
35729
36539
|
}
|
|
@@ -35736,8 +36546,8 @@ function writeLoopState(directory, state2) {
|
|
|
35736
36546
|
}
|
|
35737
36547
|
writeFileSync(filePath, JSON.stringify(state2, null, 2), "utf-8");
|
|
35738
36548
|
return true;
|
|
35739
|
-
} catch (
|
|
35740
|
-
log(`[${MISSION_CONTROL.LOG_SOURCE}] Failed to write state: ${
|
|
36549
|
+
} catch (error95) {
|
|
36550
|
+
log(`[${MISSION_CONTROL.LOG_SOURCE}] Failed to write state: ${error95}`);
|
|
35741
36551
|
return false;
|
|
35742
36552
|
}
|
|
35743
36553
|
}
|
|
@@ -35749,8 +36559,8 @@ function clearLoopState(directory) {
|
|
|
35749
36559
|
try {
|
|
35750
36560
|
unlinkSync(filePath);
|
|
35751
36561
|
return true;
|
|
35752
|
-
} catch (
|
|
35753
|
-
log(`[${MISSION_CONTROL.LOG_SOURCE}] Failed to clear state: ${
|
|
36562
|
+
} catch (error95) {
|
|
36563
|
+
log(`[${MISSION_CONTROL.LOG_SOURCE}] Failed to clear state: ${error95}`);
|
|
35754
36564
|
return false;
|
|
35755
36565
|
}
|
|
35756
36566
|
}
|
|
@@ -36212,8 +37022,8 @@ function readChecklist(directory) {
|
|
|
36212
37022
|
try {
|
|
36213
37023
|
const content = readFileSync2(filePath, "utf-8");
|
|
36214
37024
|
return parseChecklist(content);
|
|
36215
|
-
} catch (
|
|
36216
|
-
log(`[checklist] Failed to read checklist: ${
|
|
37025
|
+
} catch (error95) {
|
|
37026
|
+
log(`[checklist] Failed to read checklist: ${error95}`);
|
|
36217
37027
|
return [];
|
|
36218
37028
|
}
|
|
36219
37029
|
}
|
|
@@ -36323,8 +37133,8 @@ function verifyMissionCompletion(directory) {
|
|
|
36323
37133
|
);
|
|
36324
37134
|
}
|
|
36325
37135
|
}
|
|
36326
|
-
} catch (
|
|
36327
|
-
result.errors.push(`Failed to read TODO: ${
|
|
37136
|
+
} catch (error95) {
|
|
37137
|
+
result.errors.push(`Failed to read TODO: ${error95}`);
|
|
36328
37138
|
}
|
|
36329
37139
|
} else if (!hasChecklist) {
|
|
36330
37140
|
result.errors.push(`TODO file not found at ${PATHS.TODO}`);
|
|
@@ -36343,8 +37153,8 @@ function verifyMissionCompletion(directory) {
|
|
|
36343
37153
|
`Sync issues not resolved: ${result.syncIssuesCount} issue(s) remain`
|
|
36344
37154
|
);
|
|
36345
37155
|
}
|
|
36346
|
-
} catch (
|
|
36347
|
-
log(`[verification] Failed to read sync issues file: ${
|
|
37156
|
+
} catch (error95) {
|
|
37157
|
+
log(`[verification] Failed to read sync issues file: ${error95}`);
|
|
36348
37158
|
result.syncIssuesEmpty = true;
|
|
36349
37159
|
}
|
|
36350
37160
|
}
|
|
@@ -37150,7 +37960,7 @@ There was a temporary processing issue. Please continue from where you left off.
|
|
|
37150
37960
|
3. Continue execution
|
|
37151
37961
|
</action>
|
|
37152
37962
|
</recovery>`;
|
|
37153
|
-
async function handleSessionError(client, sessionID,
|
|
37963
|
+
async function handleSessionError(client, sessionID, error95, properties) {
|
|
37154
37964
|
const state2 = getState2(sessionID);
|
|
37155
37965
|
if (state2.isRecovering) {
|
|
37156
37966
|
log("[session-recovery] Already recovering, skipping", { sessionID });
|
|
@@ -37163,9 +37973,9 @@ async function handleSessionError(client, sessionID, error92, properties) {
|
|
|
37163
37973
|
}
|
|
37164
37974
|
state2.lastErrorTime = now;
|
|
37165
37975
|
state2.errorCount++;
|
|
37166
|
-
const errorType = detectErrorType(
|
|
37976
|
+
const errorType = detectErrorType(error95);
|
|
37167
37977
|
if (!errorType) {
|
|
37168
|
-
log("[session-recovery] Unknown error type, using default handler", { sessionID, error:
|
|
37978
|
+
log("[session-recovery] Unknown error type, using default handler", { sessionID, error: error95 });
|
|
37169
37979
|
return false;
|
|
37170
37980
|
}
|
|
37171
37981
|
log("[session-recovery] Detected error type", { sessionID, errorType, errorCount: state2.errorCount });
|
|
@@ -37191,7 +38001,7 @@ async function handleSessionError(client, sessionID, error92, properties) {
|
|
|
37191
38001
|
case ERROR_TYPE.RATE_LIMIT:
|
|
37192
38002
|
const ctx = {
|
|
37193
38003
|
sessionId: sessionID,
|
|
37194
|
-
error:
|
|
38004
|
+
error: error95 instanceof Error ? error95 : new Error(String(error95)),
|
|
37195
38005
|
attempt: state2.errorCount,
|
|
37196
38006
|
timestamp: /* @__PURE__ */ new Date()
|
|
37197
38007
|
};
|
|
@@ -37331,8 +38141,8 @@ async function showCountdownToast(client, secondsRemaining, incompleteCount) {
|
|
|
37331
38141
|
}
|
|
37332
38142
|
});
|
|
37333
38143
|
}
|
|
37334
|
-
} catch (
|
|
37335
|
-
log(`[todo-continuation] Toast failed:`,
|
|
38144
|
+
} catch (error95) {
|
|
38145
|
+
log(`[todo-continuation] Toast failed:`, error95);
|
|
37336
38146
|
}
|
|
37337
38147
|
}
|
|
37338
38148
|
async function injectContinuation(client, directory, sessionID, todos) {
|
|
@@ -37370,16 +38180,16 @@ async function injectContinuation(client, directory, sessionID, todos) {
|
|
|
37370
38180
|
body: {
|
|
37371
38181
|
parts: [{ type: PART_TYPES.TEXT, text: prompt }]
|
|
37372
38182
|
}
|
|
37373
|
-
}).catch((
|
|
37374
|
-
log("[todo-continuation] Failed to inject continuation", { sessionID, error:
|
|
38183
|
+
}).catch((error95) => {
|
|
38184
|
+
log("[todo-continuation] Failed to inject continuation", { sessionID, error: error95 });
|
|
37375
38185
|
});
|
|
37376
38186
|
log("[todo-continuation] Injected continuation prompt (async)", {
|
|
37377
38187
|
sessionID,
|
|
37378
38188
|
incompleteCount: getIncompleteCount(todos),
|
|
37379
38189
|
progress: formatProgress(todos)
|
|
37380
38190
|
});
|
|
37381
|
-
} catch (
|
|
37382
|
-
log("[todo-continuation] Failed to trigger async continuation", { sessionID, error:
|
|
38191
|
+
} catch (error95) {
|
|
38192
|
+
log("[todo-continuation] Failed to trigger async continuation", { sessionID, error: error95 });
|
|
37383
38193
|
}
|
|
37384
38194
|
}
|
|
37385
38195
|
async function handleSessionIdle(client, directory, sessionID, mainSessionID) {
|
|
@@ -37416,8 +38226,8 @@ async function handleSessionIdle(client, directory, sessionID, mainSessionID) {
|
|
|
37416
38226
|
try {
|
|
37417
38227
|
const response = await client.session.todo({ path: { id: sessionID } });
|
|
37418
38228
|
todos = parseTodos(response.data ?? response);
|
|
37419
|
-
} catch (
|
|
37420
|
-
log("[todo-continuation] Failed to fetch todos", { sessionID, error:
|
|
38229
|
+
} catch (error95) {
|
|
38230
|
+
log("[todo-continuation] Failed to fetch todos", { sessionID, error: error95 });
|
|
37421
38231
|
return;
|
|
37422
38232
|
}
|
|
37423
38233
|
const hasBuiltinWork = hasRemainingWork(todos);
|
|
@@ -37480,9 +38290,9 @@ function handleUserMessage(sessionID) {
|
|
|
37480
38290
|
state2.isAborting = false;
|
|
37481
38291
|
state2.abortDetectedAt = void 0;
|
|
37482
38292
|
}
|
|
37483
|
-
function handleSessionError2(sessionID,
|
|
38293
|
+
function handleSessionError2(sessionID, error95) {
|
|
37484
38294
|
const state2 = getState3(sessionID);
|
|
37485
|
-
const errorObj =
|
|
38295
|
+
const errorObj = error95;
|
|
37486
38296
|
if (errorObj?.name === "MessageAbortedError" || errorObj?.name === "AbortError") {
|
|
37487
38297
|
state2.abortDetectedAt = Date.now();
|
|
37488
38298
|
log("[todo-continuation] Abort detected", { sessionID, errorName: errorObj.name });
|
|
@@ -37704,8 +38514,8 @@ var PluginManager = class _PluginManager {
|
|
|
37704
38514
|
await this.loadPlugin(path4.join(pluginsDir, file3));
|
|
37705
38515
|
}
|
|
37706
38516
|
}
|
|
37707
|
-
} catch (
|
|
37708
|
-
log(`[${LOG_PREFIX.PLUGIN_MANAGER}] Error reading plugins directory: ${
|
|
38517
|
+
} catch (error95) {
|
|
38518
|
+
log(`[${LOG_PREFIX.PLUGIN_MANAGER}] Error reading plugins directory: ${error95}`);
|
|
37709
38519
|
}
|
|
37710
38520
|
}
|
|
37711
38521
|
async loadPlugin(pluginPath) {
|
|
@@ -37736,8 +38546,8 @@ var PluginManager = class _PluginManager {
|
|
|
37736
38546
|
log(`[${LOG_PREFIX.PLUGIN_MANAGER}] Registered hooks from plugin ${plugin.name}`);
|
|
37737
38547
|
}
|
|
37738
38548
|
this.plugins.set(plugin.name, plugin);
|
|
37739
|
-
} catch (
|
|
37740
|
-
log(`[${LOG_PREFIX.PLUGIN_MANAGER}] Failed to load plugin ${pluginPath}: ${
|
|
38549
|
+
} catch (error95) {
|
|
38550
|
+
log(`[${LOG_PREFIX.PLUGIN_MANAGER}] Failed to load plugin ${pluginPath}: ${error95}`);
|
|
37741
38551
|
}
|
|
37742
38552
|
}
|
|
37743
38553
|
/**
|
|
@@ -37756,8 +38566,8 @@ var PluginManager = class _PluginManager {
|
|
|
37756
38566
|
await plugin.cleanup();
|
|
37757
38567
|
}
|
|
37758
38568
|
log(`[${LOG_PREFIX.PLUGIN_MANAGER}] Cleaned up plugin: ${name}`);
|
|
37759
|
-
} catch (
|
|
37760
|
-
log(`[${LOG_PREFIX.PLUGIN_MANAGER}] Error cleaning up plugin ${name}: ${
|
|
38569
|
+
} catch (error95) {
|
|
38570
|
+
log(`[${LOG_PREFIX.PLUGIN_MANAGER}] Error cleaning up plugin ${name}: ${error95}`);
|
|
37761
38571
|
}
|
|
37762
38572
|
}
|
|
37763
38573
|
this.plugins.clear();
|
|
@@ -37872,8 +38682,8 @@ var TodoSyncService = class {
|
|
|
37872
38682
|
fs5.mkdirSync(path5.dirname(this.todoPath), { recursive: true });
|
|
37873
38683
|
fs5.writeFileSync(this.todoPath, header, "utf-8");
|
|
37874
38684
|
log("[TodoSync] Created .opencode/todo.md");
|
|
37875
|
-
} catch (
|
|
37876
|
-
log(`[TodoSync] Failed to create todo.md: ${
|
|
38685
|
+
} catch (error95) {
|
|
38686
|
+
log(`[TodoSync] Failed to create todo.md: ${error95}`);
|
|
37877
38687
|
}
|
|
37878
38688
|
}
|
|
37879
38689
|
}
|
|
@@ -37893,8 +38703,8 @@ var TodoSyncService = class {
|
|
|
37893
38703
|
this.fileTodos = parseTodoMd(content);
|
|
37894
38704
|
this.broadcastUpdate();
|
|
37895
38705
|
}
|
|
37896
|
-
} catch (
|
|
37897
|
-
log(`[TodoSync] Failed to read todo.md: ${
|
|
38706
|
+
} catch (error95) {
|
|
38707
|
+
log(`[TodoSync] Failed to read todo.md: ${error95}`);
|
|
37898
38708
|
} finally {
|
|
37899
38709
|
if (fileHandle) {
|
|
37900
38710
|
await fileHandle.close().catch(() => {
|
|
@@ -38165,7 +38975,7 @@ var CleanupScheduler = class {
|
|
|
38165
38975
|
}
|
|
38166
38976
|
log(`[Cleanup] Pruned ${toDelete.length} documents due to size limit`);
|
|
38167
38977
|
}
|
|
38168
|
-
} catch (
|
|
38978
|
+
} catch (error95) {
|
|
38169
38979
|
}
|
|
38170
38980
|
}
|
|
38171
38981
|
async rotateHistory() {
|
|
@@ -38200,8 +39010,8 @@ var CleanupScheduler = class {
|
|
|
38200
39010
|
}
|
|
38201
39011
|
}
|
|
38202
39012
|
log("[Cleanup] Rotated and compressed todo history");
|
|
38203
|
-
} catch (
|
|
38204
|
-
log(`[Cleanup] History rotation error: ${
|
|
39013
|
+
} catch (error95) {
|
|
39014
|
+
log(`[Cleanup] History rotation error: ${error95}`);
|
|
38205
39015
|
}
|
|
38206
39016
|
}
|
|
38207
39017
|
/**
|
|
@@ -38226,8 +39036,8 @@ var CleanupScheduler = class {
|
|
|
38226
39036
|
if (cleanedCount > 0) {
|
|
38227
39037
|
log(`[Cleanup] Removed ${cleanedCount} old session files (>7 days)`);
|
|
38228
39038
|
}
|
|
38229
|
-
} catch (
|
|
38230
|
-
log(`[Cleanup] Session cleanup error: ${
|
|
39039
|
+
} catch (error95) {
|
|
39040
|
+
log(`[Cleanup] Session cleanup error: ${error95}`);
|
|
38231
39041
|
}
|
|
38232
39042
|
}
|
|
38233
39043
|
/**
|
|
@@ -38252,8 +39062,8 @@ var CleanupScheduler = class {
|
|
|
38252
39062
|
if (fs8.existsSync(packageLock)) {
|
|
38253
39063
|
await fs8.promises.unlink(packageLock);
|
|
38254
39064
|
}
|
|
38255
|
-
} catch (
|
|
38256
|
-
log(`[Cleanup] node_modules cleanup error: ${
|
|
39065
|
+
} catch (error95) {
|
|
39066
|
+
log(`[Cleanup] node_modules cleanup error: ${error95}`);
|
|
38257
39067
|
}
|
|
38258
39068
|
}
|
|
38259
39069
|
/**
|
|
@@ -38287,8 +39097,8 @@ var CleanupScheduler = class {
|
|
|
38287
39097
|
}
|
|
38288
39098
|
}
|
|
38289
39099
|
log(`[Cleanup] Pruned ${toDelete.length} files to enforce limit`);
|
|
38290
|
-
} catch (
|
|
38291
|
-
log(`[Cleanup] File limit enforcement error: ${
|
|
39100
|
+
} catch (error95) {
|
|
39101
|
+
log(`[Cleanup] File limit enforcement error: ${error95}`);
|
|
38292
39102
|
}
|
|
38293
39103
|
}
|
|
38294
39104
|
/**
|
|
@@ -38487,23 +39297,44 @@ import { fileURLToPath } from "url";
|
|
|
38487
39297
|
import { platform, arch } from "os";
|
|
38488
39298
|
import { existsSync as existsSync7 } from "fs";
|
|
38489
39299
|
var __dirname = dirname4(fileURLToPath(import.meta.url));
|
|
38490
|
-
function
|
|
38491
|
-
const binDir = join10(__dirname, "..", "..", "bin");
|
|
38492
|
-
const os = platform();
|
|
38493
|
-
const cpu = arch();
|
|
38494
|
-
let binaryName;
|
|
39300
|
+
function getPlatformBinaryName(os = platform(), cpu = arch()) {
|
|
38495
39301
|
if (os === PLATFORM.WIN32) {
|
|
38496
|
-
|
|
38497
|
-
}
|
|
38498
|
-
|
|
38499
|
-
|
|
38500
|
-
|
|
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
|
+
}
|
|
38501
39326
|
}
|
|
38502
|
-
|
|
38503
|
-
|
|
38504
|
-
|
|
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
|
+
}
|
|
38505
39333
|
}
|
|
38506
|
-
return
|
|
39334
|
+
return join10(getCandidateBinDirs(moduleDir)[0], binaryName);
|
|
39335
|
+
}
|
|
39336
|
+
function getBinaryPath() {
|
|
39337
|
+
return resolveBinaryPath();
|
|
38507
39338
|
}
|
|
38508
39339
|
|
|
38509
39340
|
// src/tools/rust-pool.ts
|
|
@@ -39088,9 +39919,9 @@ var listBackgroundTool = tool({
|
|
|
39088
39919
|
}).join("\n");
|
|
39089
39920
|
const running = tasks.filter((t) => t.status === BACKGROUND_STATUS.RUNNING).length;
|
|
39090
39921
|
const done = tasks.filter((t) => t.status === BACKGROUND_STATUS.DONE).length;
|
|
39091
|
-
const
|
|
39922
|
+
const error95 = tasks.filter((t) => t.status === BACKGROUND_STATUS.ERROR || t.status === BACKGROUND_STATUS.TIMEOUT).length;
|
|
39092
39923
|
return `Background Tasks (${tasks.length})
|
|
39093
|
-
Running: ${running} | Done: ${done} | Error: ${
|
|
39924
|
+
Running: ${running} | Done: ${done} | Error: ${error95}
|
|
39094
39925
|
|
|
39095
39926
|
| ID | Status | Command | Duration |
|
|
39096
39927
|
|----|--------|---------|----------|
|
|
@@ -39279,12 +40110,12 @@ Source: ${url3}
|
|
|
39279
40110
|
---
|
|
39280
40111
|
|
|
39281
40112
|
${truncated}`;
|
|
39282
|
-
} catch (
|
|
39283
|
-
if (
|
|
39284
|
-
if (
|
|
40113
|
+
} catch (error95) {
|
|
40114
|
+
if (error95 instanceof Error) {
|
|
40115
|
+
if (error95.name === "TimeoutError") {
|
|
39285
40116
|
return `${OUTPUT_LABEL.TIMEOUT} Request timed out after 30 seconds`;
|
|
39286
40117
|
}
|
|
39287
|
-
return `${OUTPUT_LABEL.ERROR} Fetch error: ${
|
|
40118
|
+
return `${OUTPUT_LABEL.ERROR} Fetch error: ${error95.message}`;
|
|
39288
40119
|
}
|
|
39289
40120
|
return `${OUTPUT_LABEL.ERROR} Unknown error occurred`;
|
|
39290
40121
|
}
|
|
@@ -39368,8 +40199,8 @@ async function searchBrave(query) {
|
|
|
39368
40199
|
}
|
|
39369
40200
|
}
|
|
39370
40201
|
return results;
|
|
39371
|
-
} catch (
|
|
39372
|
-
log("Brave search error:",
|
|
40202
|
+
} catch (error95) {
|
|
40203
|
+
log("Brave search error:", error95);
|
|
39373
40204
|
return [];
|
|
39374
40205
|
}
|
|
39375
40206
|
}
|
|
@@ -39417,8 +40248,8 @@ async function searchDuckDuckGo(query) {
|
|
|
39417
40248
|
}
|
|
39418
40249
|
}
|
|
39419
40250
|
return results;
|
|
39420
|
-
} catch (
|
|
39421
|
-
log("DuckDuckGo search error:",
|
|
40251
|
+
} catch (error95) {
|
|
40252
|
+
log("DuckDuckGo search error:", error95);
|
|
39422
40253
|
return [];
|
|
39423
40254
|
}
|
|
39424
40255
|
}
|
|
@@ -39448,8 +40279,8 @@ async function searchDuckDuckGoHtml(query) {
|
|
|
39448
40279
|
});
|
|
39449
40280
|
}
|
|
39450
40281
|
return results;
|
|
39451
|
-
} catch (
|
|
39452
|
-
log("DuckDuckGo HTML search error:",
|
|
40282
|
+
} catch (error95) {
|
|
40283
|
+
log("DuckDuckGo HTML search error:", error95);
|
|
39453
40284
|
return [];
|
|
39454
40285
|
}
|
|
39455
40286
|
}
|
|
@@ -39678,8 +40509,8 @@ async function searchGrepApp(query, options) {
|
|
|
39678
40509
|
}
|
|
39679
40510
|
}
|
|
39680
40511
|
return results;
|
|
39681
|
-
} catch (
|
|
39682
|
-
log("grep.app search error:",
|
|
40512
|
+
} catch (error95) {
|
|
40513
|
+
log("grep.app search error:", error95);
|
|
39683
40514
|
return [];
|
|
39684
40515
|
}
|
|
39685
40516
|
}
|
|
@@ -39719,8 +40550,8 @@ async function searchGitHub(query, options) {
|
|
|
39719
40550
|
}
|
|
39720
40551
|
}
|
|
39721
40552
|
return results;
|
|
39722
|
-
} catch (
|
|
39723
|
-
log("GitHub search error:",
|
|
40553
|
+
} catch (error95) {
|
|
40554
|
+
log("GitHub search error:", error95);
|
|
39724
40555
|
return [];
|
|
39725
40556
|
}
|
|
39726
40557
|
}
|
|
@@ -39818,7 +40649,7 @@ var DiagnosticsCache = class {
|
|
|
39818
40649
|
this.cache.delete(key);
|
|
39819
40650
|
return null;
|
|
39820
40651
|
}
|
|
39821
|
-
} catch (
|
|
40652
|
+
} catch (error95) {
|
|
39822
40653
|
this.cache.delete(key);
|
|
39823
40654
|
return null;
|
|
39824
40655
|
}
|
|
@@ -39834,7 +40665,7 @@ var DiagnosticsCache = class {
|
|
|
39834
40665
|
timestamp: Date.now(),
|
|
39835
40666
|
filesMtime
|
|
39836
40667
|
});
|
|
39837
|
-
} catch (
|
|
40668
|
+
} catch (error95) {
|
|
39838
40669
|
}
|
|
39839
40670
|
}
|
|
39840
40671
|
getCacheKey(directory, file3) {
|
|
@@ -40043,8 +40874,8 @@ function findClaudeRules(startDir = process.cwd()) {
|
|
|
40043
40874
|
return formatRules("Copilot Instructions", fs10.readFileSync(copilotPath, "utf-8"));
|
|
40044
40875
|
}
|
|
40045
40876
|
return null;
|
|
40046
|
-
} catch (
|
|
40047
|
-
log(`[compatibility] Error finding Claude rules: ${
|
|
40877
|
+
} catch (error95) {
|
|
40878
|
+
log(`[compatibility] Error finding Claude rules: ${error95}`);
|
|
40048
40879
|
return null;
|
|
40049
40880
|
}
|
|
40050
40881
|
}
|
|
@@ -40741,21 +41572,21 @@ function createEventHandler(ctx) {
|
|
|
40741
41572
|
}
|
|
40742
41573
|
if (event.type === SESSION_EVENTS.ERROR) {
|
|
40743
41574
|
const sessionID = event.properties?.sessionId || event.properties?.sessionID || "";
|
|
40744
|
-
const
|
|
41575
|
+
const error95 = event.properties?.error;
|
|
40745
41576
|
if (sessionID) {
|
|
40746
|
-
handleSessionError2(sessionID,
|
|
41577
|
+
handleSessionError2(sessionID, error95);
|
|
40747
41578
|
handleAbort(sessionID);
|
|
40748
41579
|
}
|
|
40749
|
-
if (sessionID &&
|
|
41580
|
+
if (sessionID && error95) {
|
|
40750
41581
|
const recovered = await handleSessionError(
|
|
40751
41582
|
client,
|
|
40752
41583
|
sessionID,
|
|
40753
|
-
|
|
41584
|
+
error95,
|
|
40754
41585
|
event.properties
|
|
40755
41586
|
);
|
|
40756
41587
|
if (recovered) return;
|
|
40757
41588
|
}
|
|
40758
|
-
presets_exports.taskFailed("session", String(
|
|
41589
|
+
presets_exports.taskFailed("session", String(error95).slice(0, 50));
|
|
40759
41590
|
}
|
|
40760
41591
|
if (event.type === MESSAGE_EVENTS.UPDATED) {
|
|
40761
41592
|
const messageProperties = event.properties;
|
|
@@ -40887,12 +41718,12 @@ function createAssistantDoneHandler(ctx) {
|
|
|
40887
41718
|
client.session.prompt({
|
|
40888
41719
|
path: { id: sessionID },
|
|
40889
41720
|
body: { parts: parts2 }
|
|
40890
|
-
}).catch((
|
|
40891
|
-
log("[assistant-done-handler] Failed to inject continuation prompts", { sessionID, error:
|
|
41721
|
+
}).catch((error95) => {
|
|
41722
|
+
log("[assistant-done-handler] Failed to inject continuation prompts", { sessionID, error: error95 });
|
|
40892
41723
|
});
|
|
40893
41724
|
}
|
|
40894
|
-
} catch (
|
|
40895
|
-
log("[assistant-done-handler] Failed to inject continuation prompts", { sessionID, error:
|
|
41725
|
+
} catch (error95) {
|
|
41726
|
+
log("[assistant-done-handler] Failed to inject continuation prompts", { sessionID, error: error95 });
|
|
40896
41727
|
}
|
|
40897
41728
|
}
|
|
40898
41729
|
};
|