opencode-orchestrator 1.5.1 → 1.6.0
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 +21 -2
- package/dist/agents/commander.d.ts +1 -1
- package/dist/agents/definitions.d.ts +1 -1
- 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/prompts/registry.d.ts +39 -0
- package/dist/agents/subagents/planner.d.ts +1 -1
- package/dist/agents/subagents/reviewer.d.ts +1 -1
- package/dist/agents/subagents/worker.d.ts +1 -1
- package/dist/core/agents/agent-registry.d.ts +1 -1
- package/dist/core/agents/concurrency-config.d.ts +0 -0
- package/dist/core/agents/concurrency-token.d.ts +0 -0
- package/dist/core/agents/concurrency.d.ts +2 -2
- 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 +2 -2
- 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 +3 -3
- 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/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/config/options-schema.d.ts +37 -0
- package/dist/core/config/plugin-options.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/knowledge/context-provider.d.ts +1 -1
- package/dist/core/knowledge/graph-parser.d.ts +0 -0
- package/dist/core/knowledge/hybrid-search.d.ts +2 -1
- package/dist/core/knowledge/index.d.ts +0 -0
- package/dist/core/knowledge/memory-consolidation.d.ts +0 -0
- package/dist/core/knowledge/mission-memory.d.ts +1 -1
- package/dist/core/knowledge/retrieval-weights.d.ts +29 -0
- package/dist/core/knowledge/safety-guards.d.ts +0 -0
- package/dist/core/knowledge/scratchpad.d.ts +0 -0
- package/dist/core/knowledge/tag-indexer.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/evidence.d.ts +22 -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-ledger.d.ts +0 -0
- package/dist/core/loop/mission-loop-handler.d.ts +0 -0
- package/dist/core/loop/mission-loop.d.ts +3 -1
- package/dist/core/loop/mission-runtime-options.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 +0 -0
- package/dist/core/notification/toast-core.d.ts +0 -0
- package/dist/core/notification/toast-sanitizer.d.ts +0 -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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +966 -1423
- package/dist/index.js.map +7 -0
- 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/scripts/postinstall.js +1 -0
- package/dist/scripts/postinstall.js.map +7 -0
- package/dist/scripts/preuninstall.js +1 -0
- package/dist/scripts/preuninstall.js.map +7 -0
- package/dist/shared/agent/{constants/names.d.ts → constants.d.ts} +5 -2
- package/dist/shared/agent/index.d.ts +3 -4
- package/dist/shared/agent/types.d.ts +27 -0
- package/dist/shared/agent/{utils/index.d.ts → utils.d.ts} +1 -1
- package/dist/shared/cache/constants.d.ts +27 -0
- package/dist/shared/cache/index.d.ts +1 -1
- package/dist/shared/command/index.d.ts +1 -2
- package/dist/shared/command/{interfaces/background-task.d.ts → types.d.ts} +14 -2
- 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.d.ts +322 -0
- package/dist/shared/core/index.d.ts +1 -1
- package/dist/shared/core/poolable.d.ts +0 -0
- package/dist/shared/errors/constants.d.ts +24 -0
- package/dist/shared/errors/detection.d.ts +1 -1
- package/dist/shared/errors/index.d.ts +1 -2
- package/dist/shared/errors/retry.d.ts +1 -1
- 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.d.ts +88 -0
- package/dist/shared/loop/index.d.ts +2 -3
- package/dist/shared/loop/{interfaces/mission-loop.d.ts → types.d.ts} +34 -0
- package/dist/shared/message/constants.d.ts +75 -0
- package/dist/shared/message/index.d.ts +1 -1
- package/dist/shared/notification/{constants/tui.const.d.ts → constants.d.ts} +28 -0
- package/dist/shared/notification/index.d.ts +3 -4
- package/dist/shared/notification/os-notify/constants.d.ts +30 -0
- package/dist/shared/notification/os-notify/index.d.ts +2 -3
- package/dist/shared/notification/os-notify/types.d.ts +36 -0
- package/dist/shared/notification/presets.d.ts +37 -0
- package/dist/shared/notification/types.d.ts +46 -0
- package/dist/shared/os/{constants/platform.d.ts → constants.d.ts} +1 -1
- package/dist/shared/os/index.d.ts +2 -2
- package/dist/shared/os/types.d.ts +5 -0
- package/dist/shared/prompt/constants.d.ts +449 -0
- package/dist/shared/prompt/index.d.ts +1 -1
- package/dist/shared/recovery/constants.d.ts +39 -0
- package/dist/shared/recovery/index.d.ts +2 -3
- package/dist/shared/recovery/types.d.ts +26 -0
- package/dist/shared/session/constants.d.ts +80 -0
- package/dist/shared/session/index.d.ts +1 -1
- package/dist/shared/task/{constants/parallel-task.d.ts → constants.d.ts} +28 -1
- package/dist/shared/task/index.d.ts +2 -3
- package/dist/shared/task/types.d.ts +69 -0
- package/dist/shared/tool/constants.d.ts +105 -0
- package/dist/shared/tool/index.d.ts +3 -2
- package/dist/shared/tool/{constants/tool-names.d.ts → tool-names.d.ts} +0 -0
- package/dist/shared/tool/types.d.ts +117 -0
- package/dist/shared/verification/{constants/categories.d.ts → constants.d.ts} +45 -0
- package/dist/shared/verification/index.d.ts +2 -5
- package/dist/shared/verification/types.d.ts +112 -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 +0 -0
- package/dist/tools/parallel/list-tasks.d.ts +0 -0
- package/dist/tools/parallel/show-metrics.d.ts +0 -0
- 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 +0 -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/safe-json.d.ts +17 -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/opencode-orchestrator.schema.json +75 -0
- package/package.json +4 -2
- package/scripts/run-install-hook.mjs +66 -66
- package/dist/shared/agent/constants/index.d.ts +0 -4
- package/dist/shared/agent/interfaces/agent-definition.d.ts +0 -10
- package/dist/shared/agent/interfaces/concurrency-config.d.ts +0 -9
- package/dist/shared/agent/interfaces/index.d.ts +0 -5
- package/dist/shared/agent/types/agent-name.d.ts +0 -5
- package/dist/shared/agent/types/index.d.ts +0 -4
- package/dist/shared/cache/constants/cache-actions.d.ts +0 -10
- package/dist/shared/cache/constants/cache.d.ts +0 -11
- package/dist/shared/cache/constants/filter-status.d.ts +0 -12
- package/dist/shared/cache/constants/index.d.ts +0 -8
- package/dist/shared/command/interfaces/index.d.ts +0 -5
- package/dist/shared/command/interfaces/run-background-options.d.ts +0 -9
- package/dist/shared/command/types/background-task-status.d.ts +0 -4
- package/dist/shared/command/types/index.d.ts +0 -4
- package/dist/shared/core/constants/cli.d.ts +0 -26
- package/dist/shared/core/constants/id-prefix.d.ts +0 -14
- package/dist/shared/core/constants/index.d.ts +0 -15
- package/dist/shared/core/constants/lifecycle.d.ts +0 -22
- package/dist/shared/core/constants/limits.d.ts +0 -19
- package/dist/shared/core/constants/logging.d.ts +0 -39
- package/dist/shared/core/constants/memory-hooks.d.ts +0 -70
- package/dist/shared/core/constants/memory-limits.d.ts +0 -12
- package/dist/shared/core/constants/paths.d.ts +0 -21
- package/dist/shared/core/constants/phases.d.ts +0 -47
- package/dist/shared/core/constants/status-labels.d.ts +0 -34
- package/dist/shared/core/constants/time.d.ts +0 -8
- package/dist/shared/core/constants/wal-actions.d.ts +0 -10
- package/dist/shared/errors/constants/error-patterns.d.ts +0 -13
- package/dist/shared/errors/constants/error-type.d.ts +0 -13
- package/dist/shared/errors/constants/index.d.ts +0 -5
- package/dist/shared/errors/types/error-pattern-type.d.ts +0 -5
- package/dist/shared/errors/types/index.d.ts +0 -4
- package/dist/shared/loop/constants/index.d.ts +0 -8
- package/dist/shared/loop/constants/labels.d.ts +0 -33
- package/dist/shared/loop/constants/loop.d.ts +0 -17
- package/dist/shared/loop/constants/mission-control.d.ts +0 -20
- package/dist/shared/loop/constants/task-status.d.ts +0 -9
- package/dist/shared/loop/constants/todo-status.d.ts +0 -9
- package/dist/shared/loop/interfaces/index.d.ts +0 -6
- package/dist/shared/loop/interfaces/todo-stats.d.ts +0 -11
- package/dist/shared/loop/interfaces/todo.d.ts +0 -13
- package/dist/shared/loop/types/index.d.ts +0 -5
- package/dist/shared/loop/types/todo-priority.d.ts +0 -4
- package/dist/shared/loop/types/todo-status.d.ts +0 -4
- package/dist/shared/message/constants/index.d.ts +0 -8
- package/dist/shared/message/constants/message-roles.d.ts +0 -23
- package/dist/shared/message/constants/part-types.d.ts +0 -13
- package/dist/shared/message/constants/plugin-hooks.d.ts +0 -19
- package/dist/shared/message/constants/prompts.d.ts +0 -8
- package/dist/shared/message/constants/slash-commands.d.ts +0 -21
- package/dist/shared/notification/constants/index.d.ts +0 -3
- package/dist/shared/notification/constants/toast-duration.d.ts +0 -19
- package/dist/shared/notification/constants/toast-variants.d.ts +0 -10
- package/dist/shared/notification/interfaces/index.d.ts +0 -6
- package/dist/shared/notification/interfaces/task-toast.interface.d.ts +0 -18
- package/dist/shared/notification/interfaces/toast-message.d.ts +0 -13
- package/dist/shared/notification/interfaces/toast-options.d.ts +0 -10
- package/dist/shared/notification/os-notify/constants/index.d.ts +0 -6
- package/dist/shared/notification/os-notify/constants/notification-command-keys.d.ts +0 -11
- package/dist/shared/notification/os-notify/constants/notification-commands.d.ts +0 -11
- package/dist/shared/notification/os-notify/constants/notification-defaults.d.ts +0 -5
- package/dist/shared/notification/os-notify/interfaces/index.d.ts +0 -5
- package/dist/shared/notification/os-notify/interfaces/notification-config.d.ts +0 -15
- package/dist/shared/notification/os-notify/interfaces/notification-state.d.ts +0 -13
- package/dist/shared/notification/os-notify/types/index.d.ts +0 -4
- package/dist/shared/notification/os-notify/types/notification-commands.d.ts +0 -5
- package/dist/shared/notification/presets/index.d.ts +0 -9
- package/dist/shared/notification/presets/mission.d.ts +0 -5
- package/dist/shared/notification/presets/parallel.d.ts +0 -6
- package/dist/shared/notification/presets/session.d.ts +0 -6
- package/dist/shared/notification/presets/task-lifecycle.d.ts +0 -7
- package/dist/shared/notification/presets/tools.d.ts +0 -6
- package/dist/shared/notification/presets/warnings.d.ts +0 -7
- package/dist/shared/notification/types/index.d.ts +0 -4
- package/dist/shared/notification/types/toast-variant.d.ts +0 -4
- package/dist/shared/os/constants/index.d.ts +0 -4
- package/dist/shared/os/types/index.d.ts +0 -4
- package/dist/shared/os/types/platform.d.ts +0 -5
- package/dist/shared/prompt/constants/architecture.d.ts +0 -64
- package/dist/shared/prompt/constants/index.d.ts +0 -9
- package/dist/shared/prompt/constants/mandates.d.ts +0 -26
- package/dist/shared/prompt/constants/philosophy.d.ts +0 -29
- package/dist/shared/prompt/constants/scouts.d.ts +0 -32
- package/dist/shared/prompt/constants/status.d.ts +0 -83
- package/dist/shared/prompt/constants/tags.d.ts +0 -215
- package/dist/shared/recovery/constants/history.d.ts +0 -11
- package/dist/shared/recovery/constants/index.d.ts +0 -6
- package/dist/shared/recovery/constants/recovery-level.d.ts +0 -15
- package/dist/shared/recovery/constants/recovery.d.ts +0 -13
- package/dist/shared/recovery/interfaces/error-context.d.ts +0 -11
- package/dist/shared/recovery/interfaces/index.d.ts +0 -5
- package/dist/shared/recovery/interfaces/recovery-record.d.ts +0 -10
- package/dist/shared/recovery/types/index.d.ts +0 -4
- package/dist/shared/recovery/types/recovery-action.d.ts +0 -4
- package/dist/shared/session/constants/events/document-events.d.ts +0 -7
- package/dist/shared/session/constants/events/index.d.ts +0 -30
- package/dist/shared/session/constants/events/message-events.d.ts +0 -6
- package/dist/shared/session/constants/events/mission-events.d.ts +0 -8
- package/dist/shared/session/constants/events/session-events.d.ts +0 -13
- package/dist/shared/session/constants/events/special-events.d.ts +0 -6
- package/dist/shared/session/constants/events/task-events.d.ts +0 -9
- package/dist/shared/session/constants/events/todo-events.d.ts +0 -8
- package/dist/shared/session/constants/index.d.ts +0 -4
- package/dist/shared/task/base-task.d.ts +0 -31
- package/dist/shared/task/constants/background-status.d.ts +0 -10
- package/dist/shared/task/constants/background-task.d.ts +0 -10
- package/dist/shared/task/constants/index.d.ts +0 -8
- package/dist/shared/task/constants/metadata-keys.d.ts +0 -10
- package/dist/shared/task/interfaces/index.d.ts +0 -7
- package/dist/shared/task/interfaces/launch-input.d.ts +0 -11
- package/dist/shared/task/interfaces/parallel-task.d.ts +0 -28
- package/dist/shared/task/interfaces/resume-input.d.ts +0 -16
- package/dist/shared/task/interfaces/task-progress.d.ts +0 -9
- package/dist/shared/task/types/index.d.ts +0 -4
- package/dist/shared/task/types/parallel-task-status.d.ts +0 -4
- package/dist/shared/tool/constants/common/index.d.ts +0 -7
- package/dist/shared/tool/constants/common/labels.d.ts +0 -16
- package/dist/shared/tool/constants/common/languages.d.ts +0 -9
- package/dist/shared/tool/constants/common/output-labels.d.ts +0 -20
- package/dist/shared/tool/constants/common/sources.d.ts +0 -8
- package/dist/shared/tool/constants/index.d.ts +0 -8
- package/dist/shared/tool/constants/lsp/index.d.ts +0 -5
- package/dist/shared/tool/constants/lsp/lsp-severity-labels.d.ts +0 -9
- package/dist/shared/tool/constants/lsp/lsp-severity.d.ts +0 -9
- package/dist/shared/tool/constants/parallel/index.d.ts +0 -5
- package/dist/shared/tool/constants/parallel/logging.d.ts +0 -6
- package/dist/shared/tool/constants/parallel/parameters.d.ts +0 -19
- package/dist/shared/tool/constants/tool-output.d.ts +0 -9
- package/dist/shared/tool/interfaces/ast/ast-replace-result.d.ts +0 -8
- package/dist/shared/tool/interfaces/ast/ast-search-result.d.ts +0 -13
- package/dist/shared/tool/interfaces/ast/index.d.ts +0 -5
- package/dist/shared/tool/interfaces/index.d.ts +0 -6
- package/dist/shared/tool/interfaces/lsp/index.d.ts +0 -7
- package/dist/shared/tool/interfaces/lsp/lsp-command-result.d.ts +0 -8
- package/dist/shared/tool/interfaces/lsp/lsp-diagnostic.d.ts +0 -11
- package/dist/shared/tool/interfaces/lsp/lsp-rename-location.d.ts +0 -9
- package/dist/shared/tool/interfaces/lsp/lsp-rename-result.d.ts +0 -9
- package/dist/shared/tool/interfaces/parallel/index.d.ts +0 -5
- package/dist/shared/tool/interfaces/parallel/poll-result.d.ts +0 -10
- package/dist/shared/tool/interfaces/parallel/session-client.d.ts +0 -47
- package/dist/shared/verification/constants/checklist.d.ts +0 -16
- package/dist/shared/verification/constants/index.d.ts +0 -7
- package/dist/shared/verification/constants/patterns.d.ts +0 -19
- package/dist/shared/verification/constants/signals.d.ts +0 -10
- package/dist/shared/verification/interfaces/checklist-item.d.ts +0 -21
- package/dist/shared/verification/interfaces/checklist-verification-result.d.ts +0 -24
- package/dist/shared/verification/interfaces/index.d.ts +0 -7
- package/dist/shared/verification/interfaces/verification-checklist.d.ts +0 -19
- package/dist/shared/verification/interfaces/verification-result.d.ts +0 -29
- package/dist/shared/verification/types/checklist-category.d.ts +0 -18
- package/dist/shared/verification/types/index.d.ts +0 -4
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Recovery types (consolidated)
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Recovery action type
|
|
6
|
+
*/
|
|
7
|
+
export type RecoveryAction = "retry" | "abort" | "escalate" | "ignore";
|
|
8
|
+
/**
|
|
9
|
+
* Error context for recovery
|
|
10
|
+
*/
|
|
11
|
+
export interface ErrorContext {
|
|
12
|
+
sessionId: string;
|
|
13
|
+
taskId?: string;
|
|
14
|
+
agent?: string;
|
|
15
|
+
error: Error;
|
|
16
|
+
attempt: number;
|
|
17
|
+
timestamp: Date;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Recovery history record
|
|
21
|
+
*/
|
|
22
|
+
export interface RecoveryRecord {
|
|
23
|
+
context: ErrorContext;
|
|
24
|
+
action: RecoveryAction;
|
|
25
|
+
timestamp: Date;
|
|
26
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Session constants (consolidated)
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Task lifecycle events
|
|
6
|
+
*/
|
|
7
|
+
export declare const TASK_EVENTS: {
|
|
8
|
+
readonly STARTED: "task.started";
|
|
9
|
+
readonly COMPLETED: "task.completed";
|
|
10
|
+
readonly FAILED: "task.failed";
|
|
11
|
+
readonly CANCELLED: "task.cancelled";
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Todo lifecycle events
|
|
15
|
+
*/
|
|
16
|
+
export declare const TODO_EVENTS: {
|
|
17
|
+
readonly CREATED: "todo.created";
|
|
18
|
+
readonly UPDATED: "todo.updated";
|
|
19
|
+
readonly COMPLETED: "todo.completed";
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Session state events
|
|
23
|
+
*/
|
|
24
|
+
export declare const SESSION_EVENTS: {
|
|
25
|
+
readonly IDLE: "session.idle";
|
|
26
|
+
readonly STATUS: "session.status";
|
|
27
|
+
readonly UPDATED: "session.updated";
|
|
28
|
+
readonly COMPACTED: "session.compacted";
|
|
29
|
+
readonly BUSY: "session.busy";
|
|
30
|
+
readonly ERROR: "session.error";
|
|
31
|
+
readonly DELETED: "session.deleted";
|
|
32
|
+
readonly CREATED: "session.created";
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Document cache events
|
|
36
|
+
*/
|
|
37
|
+
export declare const DOCUMENT_EVENTS: {
|
|
38
|
+
readonly CACHED: "document.cached";
|
|
39
|
+
readonly EXPIRED: "document.expired";
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* Mission lifecycle events
|
|
43
|
+
*/
|
|
44
|
+
export declare const MISSION_EVENTS: {
|
|
45
|
+
readonly COMPLETE: "mission.complete";
|
|
46
|
+
readonly FAILED: "mission.failed";
|
|
47
|
+
readonly ALL_TASKS_COMPLETE: "all_tasks.complete";
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* Message Event Types
|
|
51
|
+
*/
|
|
52
|
+
export declare const MESSAGE_EVENTS: {
|
|
53
|
+
readonly UPDATED: "message.updated";
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* Special event types
|
|
57
|
+
*/
|
|
58
|
+
export declare const SPECIAL_EVENTS: {
|
|
59
|
+
readonly WILDCARD: "*";
|
|
60
|
+
};
|
|
61
|
+
export declare const EVENT_TYPES: {
|
|
62
|
+
readonly WILDCARD: "*";
|
|
63
|
+
readonly UPDATED: "message.updated";
|
|
64
|
+
readonly COMPLETE: "mission.complete";
|
|
65
|
+
readonly FAILED: "mission.failed";
|
|
66
|
+
readonly ALL_TASKS_COMPLETE: "all_tasks.complete";
|
|
67
|
+
readonly CACHED: "document.cached";
|
|
68
|
+
readonly EXPIRED: "document.expired";
|
|
69
|
+
readonly IDLE: "session.idle";
|
|
70
|
+
readonly STATUS: "session.status";
|
|
71
|
+
readonly COMPACTED: "session.compacted";
|
|
72
|
+
readonly BUSY: "session.busy";
|
|
73
|
+
readonly ERROR: "session.error";
|
|
74
|
+
readonly DELETED: "session.deleted";
|
|
75
|
+
readonly CREATED: "session.created";
|
|
76
|
+
readonly COMPLETED: "todo.completed";
|
|
77
|
+
readonly STARTED: "task.started";
|
|
78
|
+
readonly CANCELLED: "task.cancelled";
|
|
79
|
+
};
|
|
80
|
+
export type EventTypeValue = (typeof EVENT_TYPES)[keyof typeof EVENT_TYPES];
|
|
@@ -1,6 +1,33 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Background Task Status
|
|
3
3
|
*/
|
|
4
|
+
export declare const BACKGROUND_STATUS: {
|
|
5
|
+
readonly RUNNING: "running";
|
|
6
|
+
readonly DONE: "done";
|
|
7
|
+
readonly ERROR: "error";
|
|
8
|
+
readonly TIMEOUT: "timeout";
|
|
9
|
+
};
|
|
10
|
+
export type BackgroundStatus = (typeof BACKGROUND_STATUS)[keyof typeof BACKGROUND_STATUS];
|
|
11
|
+
/**
|
|
12
|
+
* Background Task Configuration
|
|
13
|
+
*/
|
|
14
|
+
export declare const BACKGROUND_TASK: {
|
|
15
|
+
readonly DEFAULT_TIMEOUT_MS: number;
|
|
16
|
+
readonly MAX_OUTPUT_LENGTH: 10000;
|
|
17
|
+
readonly MAX_CONCURRENT: 5;
|
|
18
|
+
readonly POLL_INTERVAL_MS: 500;
|
|
19
|
+
readonly RETRY_COOLDOWN_MS: number;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Task Metadata Keys
|
|
23
|
+
*/
|
|
24
|
+
export declare const TASK_METADATA: {
|
|
25
|
+
readonly PARALLEL: "parallel";
|
|
26
|
+
readonly PARALLEL_GROUP: "parallel_group";
|
|
27
|
+
readonly DEPENDS: "depends";
|
|
28
|
+
readonly AGENT: "agent";
|
|
29
|
+
readonly SIZE: "size";
|
|
30
|
+
};
|
|
4
31
|
export declare const TASK_MODE: {
|
|
5
32
|
readonly NORMAL: "normal";
|
|
6
33
|
readonly RACE: "race";
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Task types and interfaces (consolidated)
|
|
3
|
+
*/
|
|
4
|
+
import type { Poolable } from "../core/index.js";
|
|
5
|
+
/**
|
|
6
|
+
* Parallel task status values
|
|
7
|
+
*/
|
|
8
|
+
export type ParallelTaskStatus = "pending" | "running" | "completed" | "failed" | "error" | "timeout" | "cancelled";
|
|
9
|
+
/**
|
|
10
|
+
* Task progress tracking
|
|
11
|
+
*/
|
|
12
|
+
export interface TaskProgress {
|
|
13
|
+
toolCalls: number;
|
|
14
|
+
lastTool?: string;
|
|
15
|
+
lastMessage?: string;
|
|
16
|
+
lastUpdate: Date;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Input for launching a parallel task
|
|
20
|
+
*/
|
|
21
|
+
export interface LaunchInput {
|
|
22
|
+
description: string;
|
|
23
|
+
prompt: string;
|
|
24
|
+
agent: string;
|
|
25
|
+
parentSessionID: string;
|
|
26
|
+
/** Current nesting depth (default: 1) */
|
|
27
|
+
depth?: number;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Input for resuming an existing parallel task session
|
|
31
|
+
*
|
|
32
|
+
* Preserves context for:
|
|
33
|
+
* - Retry after failure
|
|
34
|
+
* - Follow-up questions
|
|
35
|
+
* - Token efficiency
|
|
36
|
+
*/
|
|
37
|
+
export interface ResumeInput {
|
|
38
|
+
/** Session ID to resume */
|
|
39
|
+
sessionId: string;
|
|
40
|
+
/** New prompt for resumed session */
|
|
41
|
+
prompt: string;
|
|
42
|
+
/** Parent session for notifications */
|
|
43
|
+
parentSessionID: string;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Parallel task running in child session
|
|
47
|
+
* MERGED: Contains both core and shared fields
|
|
48
|
+
*/
|
|
49
|
+
export interface ParallelTask extends Poolable {
|
|
50
|
+
id: string;
|
|
51
|
+
sessionID: string;
|
|
52
|
+
parentSessionID: string;
|
|
53
|
+
description: string;
|
|
54
|
+
prompt: string;
|
|
55
|
+
agent: string;
|
|
56
|
+
status: ParallelTaskStatus;
|
|
57
|
+
startedAt: Date;
|
|
58
|
+
completedAt?: Date;
|
|
59
|
+
error?: string;
|
|
60
|
+
result?: string;
|
|
61
|
+
concurrencyKey?: string;
|
|
62
|
+
depth: number;
|
|
63
|
+
mode?: "normal" | "race" | "fractal";
|
|
64
|
+
groupID?: string;
|
|
65
|
+
lastMsgCount?: number;
|
|
66
|
+
stablePolls?: number;
|
|
67
|
+
progress?: TaskProgress;
|
|
68
|
+
hasStartedOutputting?: boolean;
|
|
69
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tool Output Configuration
|
|
3
|
+
*/
|
|
4
|
+
export declare const TOOL_OUTPUT: {
|
|
5
|
+
/** Maximum length for healthy output capture */
|
|
6
|
+
readonly MAX_HEALTHY_OUTPUT_LENGTH: 1000;
|
|
7
|
+
/** Threshold for considering output small enough to capture */
|
|
8
|
+
readonly SMALL_OUTPUT_THRESHOLD: 5000;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Common Tool Languages
|
|
12
|
+
*/
|
|
13
|
+
export declare const TOOL_LANG: {
|
|
14
|
+
readonly TS: "ts";
|
|
15
|
+
readonly JS: "js";
|
|
16
|
+
readonly JSON: "json";
|
|
17
|
+
readonly ALL: "*";
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Formatted Tool Output Labels
|
|
21
|
+
*/
|
|
22
|
+
export declare const OUTPUT_LABEL: {
|
|
23
|
+
readonly ERROR: "[ERROR]";
|
|
24
|
+
readonly WARNING: "[WARNING]";
|
|
25
|
+
readonly INFO: "[INFO]";
|
|
26
|
+
readonly DONE: "[DONE]";
|
|
27
|
+
readonly OK: "[OK]";
|
|
28
|
+
readonly SPAWNED: "[SPAWNED]";
|
|
29
|
+
readonly RESUME: "[RESUME]";
|
|
30
|
+
readonly TIMEOUT: "[TIMEOUT]";
|
|
31
|
+
readonly RUNNING: "[RUNNING]";
|
|
32
|
+
readonly CANCELLED: "[CANCELLED]";
|
|
33
|
+
readonly RESUMED_DONE: "[RESUMED & DONE]";
|
|
34
|
+
readonly SYNC_START: "[SYNC START]";
|
|
35
|
+
readonly CACHED: "[CACHED]";
|
|
36
|
+
readonly JSON_FETCHED: "[JSON FETCHED]";
|
|
37
|
+
readonly TEXT_FETCHED: "[TEXT FETCHED]";
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Common Tool Sources
|
|
41
|
+
*/
|
|
42
|
+
export declare const TOOL_SOURCE: {
|
|
43
|
+
readonly TYPESCRIPT: "typescript";
|
|
44
|
+
readonly ESLINT: "eslint";
|
|
45
|
+
readonly AST_GREP: "ast-grep";
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* Common Tool Labels
|
|
49
|
+
*/
|
|
50
|
+
export declare const TOOL_LABEL: {
|
|
51
|
+
readonly ERROR: "error";
|
|
52
|
+
readonly WARNING: "warning";
|
|
53
|
+
readonly INFO: "info";
|
|
54
|
+
readonly HINT: "hint";
|
|
55
|
+
readonly SUCCESS: "success";
|
|
56
|
+
readonly FAILED: "failed";
|
|
57
|
+
readonly CLEAN: "clean";
|
|
58
|
+
readonly TIMEOUT: "timeout";
|
|
59
|
+
readonly DONE: "done";
|
|
60
|
+
readonly PENDING: "pending";
|
|
61
|
+
readonly RUNNING: "running";
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* LSP Severity Constant
|
|
65
|
+
*/
|
|
66
|
+
export declare const LSP_SEVERITY: {
|
|
67
|
+
readonly ERROR: 1;
|
|
68
|
+
readonly WARNING: 2;
|
|
69
|
+
readonly INFO: 3;
|
|
70
|
+
readonly HINT: 4;
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* LSP Severity Labels Constant
|
|
74
|
+
*/
|
|
75
|
+
export declare const LSP_SEVERITY_LABELS: {
|
|
76
|
+
readonly 1: "error";
|
|
77
|
+
readonly 2: "warning";
|
|
78
|
+
readonly 3: "info";
|
|
79
|
+
readonly 4: "hint";
|
|
80
|
+
};
|
|
81
|
+
/**
|
|
82
|
+
* Parallel Tool Logging Constants
|
|
83
|
+
*/
|
|
84
|
+
export declare const PARALLEL_LOG: {
|
|
85
|
+
readonly DELEGATE_TASK: "[delegate-task]";
|
|
86
|
+
};
|
|
87
|
+
/**
|
|
88
|
+
* Parallel Tool Parameter Names
|
|
89
|
+
*/
|
|
90
|
+
export declare const PARALLEL_PARAMS: {
|
|
91
|
+
readonly AGENT: "agent";
|
|
92
|
+
readonly TASK: "task";
|
|
93
|
+
readonly PROMPT: "prompt";
|
|
94
|
+
readonly CONTEXT: "context";
|
|
95
|
+
readonly BACKGROUND: "background";
|
|
96
|
+
readonly PARALLEL_GROUP: "parallel_group";
|
|
97
|
+
readonly RETRY: "retry";
|
|
98
|
+
readonly TIMEOUT: "timeout";
|
|
99
|
+
readonly DESCRIPTION: "description";
|
|
100
|
+
readonly RESUME: "resume";
|
|
101
|
+
readonly MODE: "mode";
|
|
102
|
+
readonly GROUP_ID: "groupID";
|
|
103
|
+
readonly TASK_ID: "taskId";
|
|
104
|
+
readonly STATUS: "status";
|
|
105
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tool types and interfaces (consolidated)
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* AST Search Result Interface
|
|
6
|
+
*/
|
|
7
|
+
export interface AstSearchResult {
|
|
8
|
+
file: string;
|
|
9
|
+
line: number;
|
|
10
|
+
column: number;
|
|
11
|
+
content: string;
|
|
12
|
+
context: {
|
|
13
|
+
before: string[];
|
|
14
|
+
after: string[];
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* AST Replace Result Interface
|
|
19
|
+
*/
|
|
20
|
+
export interface AstReplaceResult {
|
|
21
|
+
file: string;
|
|
22
|
+
success: boolean;
|
|
23
|
+
error?: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* LSP Diagnostic Interface
|
|
27
|
+
*/
|
|
28
|
+
export interface LspDiagnostic {
|
|
29
|
+
file: string;
|
|
30
|
+
line: number;
|
|
31
|
+
column: number;
|
|
32
|
+
severity: number;
|
|
33
|
+
message: string;
|
|
34
|
+
source?: string;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* LSP Rename Location Interface
|
|
38
|
+
*/
|
|
39
|
+
export interface LspRenameLocation {
|
|
40
|
+
file: string;
|
|
41
|
+
line: number;
|
|
42
|
+
column: number;
|
|
43
|
+
oldText: string;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* LSP Rename Result Interface
|
|
47
|
+
*/
|
|
48
|
+
export interface LspRenameResult {
|
|
49
|
+
success: boolean;
|
|
50
|
+
locations: LspRenameLocation[];
|
|
51
|
+
error?: string;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* LSP Command Result Interface
|
|
55
|
+
*/
|
|
56
|
+
export interface LspCommandResult {
|
|
57
|
+
stdout: string;
|
|
58
|
+
stderr: string;
|
|
59
|
+
exitCode: number;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Poll Result Interface
|
|
63
|
+
*/
|
|
64
|
+
export interface PollResult {
|
|
65
|
+
success: boolean;
|
|
66
|
+
timedOut: boolean;
|
|
67
|
+
error?: string;
|
|
68
|
+
pollCount: number;
|
|
69
|
+
elapsedMs: number;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Session Client Interface
|
|
73
|
+
*/
|
|
74
|
+
export interface SessionClient {
|
|
75
|
+
create: (opts: {
|
|
76
|
+
body: {
|
|
77
|
+
parentID: string;
|
|
78
|
+
title: string;
|
|
79
|
+
};
|
|
80
|
+
query: {
|
|
81
|
+
directory: string;
|
|
82
|
+
};
|
|
83
|
+
}) => Promise<{
|
|
84
|
+
data?: {
|
|
85
|
+
id: string;
|
|
86
|
+
};
|
|
87
|
+
error?: string;
|
|
88
|
+
}>;
|
|
89
|
+
prompt: (opts: {
|
|
90
|
+
path: {
|
|
91
|
+
id: string;
|
|
92
|
+
};
|
|
93
|
+
body: {
|
|
94
|
+
agent: string;
|
|
95
|
+
tools?: Record<string, boolean>;
|
|
96
|
+
parts: {
|
|
97
|
+
type: string;
|
|
98
|
+
text: string;
|
|
99
|
+
}[];
|
|
100
|
+
};
|
|
101
|
+
}) => Promise<{
|
|
102
|
+
error?: string;
|
|
103
|
+
}>;
|
|
104
|
+
messages: (opts: {
|
|
105
|
+
path: {
|
|
106
|
+
id: string;
|
|
107
|
+
};
|
|
108
|
+
}) => Promise<{
|
|
109
|
+
data?: unknown[];
|
|
110
|
+
error?: string;
|
|
111
|
+
}>;
|
|
112
|
+
status: () => Promise<{
|
|
113
|
+
data?: Record<string, {
|
|
114
|
+
type: string;
|
|
115
|
+
}>;
|
|
116
|
+
}>;
|
|
117
|
+
}
|
|
@@ -1,3 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Verification Signaling Constants
|
|
3
|
+
*
|
|
4
|
+
* Centralized strings used to trigger specific verification behaviors
|
|
5
|
+
* between the Commander and Reviewer agents.
|
|
6
|
+
*/
|
|
7
|
+
export declare const VERIFICATION_SIGNALS: {
|
|
8
|
+
/** Trigger for all-encompassing system check at the end of a mission */
|
|
9
|
+
readonly FINAL_PASS: "Full System Verification";
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Checklist Parsing Patterns
|
|
13
|
+
*
|
|
14
|
+
* Regular expressions for parsing verification checklist markdown.
|
|
15
|
+
*/
|
|
16
|
+
export declare const CHECKLIST_PATTERNS: {
|
|
17
|
+
/** Incomplete item: - [ ] */
|
|
18
|
+
readonly INCOMPLETE: RegExp;
|
|
19
|
+
/** Complete item: - [x] or - [X] */
|
|
20
|
+
readonly COMPLETE: RegExp;
|
|
21
|
+
/** Category header: ## Category */
|
|
22
|
+
readonly CATEGORY: RegExp;
|
|
23
|
+
/** Item with ID format: - [ ] **ID**: Description */
|
|
24
|
+
readonly ITEM_WITH_ID: RegExp;
|
|
25
|
+
/** Simple item format: - [ ] Description */
|
|
26
|
+
readonly SIMPLE_ITEM: RegExp;
|
|
27
|
+
/** Mark as complete indicator (x or X) */
|
|
28
|
+
readonly COMPLETE_MARK: RegExp;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Verification Checklist Constants
|
|
32
|
+
*
|
|
33
|
+
* File paths and configuration for the verification checklist system.
|
|
34
|
+
*/
|
|
35
|
+
/**
|
|
36
|
+
* Checklist file and configuration constants
|
|
37
|
+
*/
|
|
38
|
+
export declare const CHECKLIST: {
|
|
39
|
+
/** Path to the verification checklist file */
|
|
40
|
+
readonly FILE: ".opencode/verification-checklist.md";
|
|
41
|
+
/** Minimum required items for valid checklist */
|
|
42
|
+
readonly MIN_ITEMS: 1;
|
|
43
|
+
/** Maximum items to show in error messages */
|
|
44
|
+
readonly MAX_ERROR_ITEMS: 5;
|
|
45
|
+
};
|
|
1
46
|
/**
|
|
2
47
|
* Checklist Category Constants
|
|
3
48
|
*
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Verification Domain
|
|
3
|
-
*
|
|
4
|
-
* Constants, types, and interfaces for verification checklist system.
|
|
5
3
|
*/
|
|
6
|
-
export * from "./constants
|
|
7
|
-
export * from "./
|
|
8
|
-
export * from "./types/index.js";
|
|
4
|
+
export * from "./constants.js";
|
|
5
|
+
export * from "./types.js";
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Verification types and interfaces (consolidated)
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Checklist Category Type
|
|
6
|
+
*
|
|
7
|
+
* Type definition for verification checklist categories.
|
|
8
|
+
* Derived from CATEGORY_ID constant for single source of truth.
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Available checklist category identifiers
|
|
12
|
+
*
|
|
13
|
+
* - code-quality: Lint, type check, static analysis
|
|
14
|
+
* - unit-tests: Unit tests execution
|
|
15
|
+
* - integration-tests: E2E and integration tests
|
|
16
|
+
* - build: Build verification
|
|
17
|
+
* - runtime: Runtime verification (starts, runs)
|
|
18
|
+
* - infrastructure: Docker, compose, CI/CD, etc.
|
|
19
|
+
* - custom: Project-specific custom checks
|
|
20
|
+
*/
|
|
21
|
+
export type ChecklistCategory = "code-quality" | "unit-tests" | "integration-tests" | "build" | "runtime" | "infrastructure" | "custom";
|
|
22
|
+
/**
|
|
23
|
+
* Checklist Item Interface
|
|
24
|
+
*
|
|
25
|
+
* Represents a single verification checklist item.
|
|
26
|
+
*/
|
|
27
|
+
/**
|
|
28
|
+
* A single item in the verification checklist
|
|
29
|
+
*/
|
|
30
|
+
export interface ChecklistItem {
|
|
31
|
+
/** Unique ID for the item (e.g., "unit-tests", "build", "docker") */
|
|
32
|
+
id: string;
|
|
33
|
+
/** Category of the check */
|
|
34
|
+
category: ChecklistCategory;
|
|
35
|
+
/** Description of what to verify */
|
|
36
|
+
description: string;
|
|
37
|
+
/** Whether this item is completed */
|
|
38
|
+
completed: boolean;
|
|
39
|
+
/** Optional: Evidence or notes about verification */
|
|
40
|
+
evidence?: string;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Verification Checklist Interface
|
|
44
|
+
*
|
|
45
|
+
* Represents the complete verification checklist with metadata.
|
|
46
|
+
*/
|
|
47
|
+
/**
|
|
48
|
+
* Complete verification checklist with metadata
|
|
49
|
+
*/
|
|
50
|
+
export interface VerificationChecklist {
|
|
51
|
+
/** Unique mission ID or timestamp */
|
|
52
|
+
missionId: string;
|
|
53
|
+
/** When the checklist was created */
|
|
54
|
+
createdAt: string;
|
|
55
|
+
/** Last update time */
|
|
56
|
+
updatedAt: string;
|
|
57
|
+
/** All checklist items */
|
|
58
|
+
items: ChecklistItem[];
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Checklist Verification Result Interface
|
|
62
|
+
*
|
|
63
|
+
* Result of verifying a checklist's completion status.
|
|
64
|
+
*/
|
|
65
|
+
/**
|
|
66
|
+
* Result of verifying a checklist
|
|
67
|
+
*/
|
|
68
|
+
export interface ChecklistVerificationResult {
|
|
69
|
+
/** Whether all items are complete */
|
|
70
|
+
passed: boolean;
|
|
71
|
+
/** Total number of items */
|
|
72
|
+
totalItems: number;
|
|
73
|
+
/** Number of completed items */
|
|
74
|
+
completedItems: number;
|
|
75
|
+
/** Number of incomplete items */
|
|
76
|
+
incompleteItems: number;
|
|
77
|
+
/** Progress string e.g., "8/10" */
|
|
78
|
+
progress: string;
|
|
79
|
+
/** List of incomplete item descriptions */
|
|
80
|
+
incompleteList: string[];
|
|
81
|
+
/** List of verification failures */
|
|
82
|
+
errors: string[];
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Verification Result Interface
|
|
86
|
+
*
|
|
87
|
+
* Unified result for mission completion verification.
|
|
88
|
+
* Combines TODO, sync issues, and checklist verification.
|
|
89
|
+
*/
|
|
90
|
+
/**
|
|
91
|
+
* Unified verification result for mission completion
|
|
92
|
+
*/
|
|
93
|
+
export interface VerificationResult {
|
|
94
|
+
/** Whether all verification checks passed */
|
|
95
|
+
passed: boolean;
|
|
96
|
+
/** Whether all TODO items are complete */
|
|
97
|
+
todoComplete: boolean;
|
|
98
|
+
/** Progress string e.g., "8/10" */
|
|
99
|
+
todoProgress: string;
|
|
100
|
+
/** Number of incomplete tasks */
|
|
101
|
+
todoIncomplete: number;
|
|
102
|
+
/** Whether sync-issues.md is empty or has no issues */
|
|
103
|
+
syncIssuesEmpty: boolean;
|
|
104
|
+
/** Count of sync issues found */
|
|
105
|
+
syncIssuesCount: number;
|
|
106
|
+
/** Whether verification checklist is complete */
|
|
107
|
+
checklistComplete: boolean;
|
|
108
|
+
/** Checklist progress string */
|
|
109
|
+
checklistProgress: string;
|
|
110
|
+
/** List of verification failures */
|
|
111
|
+
errors: string[];
|
|
112
|
+
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/tools/registry.d.ts
CHANGED
|
File without changes
|