opencode-orchestrator 1.5.0 → 1.5.4
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 +3 -1
- 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/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 -1
- 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/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 +0 -0
- package/dist/core/knowledge/graph-parser.d.ts +0 -0
- package/dist/core/knowledge/hybrid-search.d.ts +0 -0
- 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/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/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 +1 -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 +631 -1461
- 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/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 +2 -2
- package/scripts/run-install-hook.mjs +66 -66
- package/dist/core/agents/persistence/task-wal.d.ts +0 -24
- 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
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Mission Phase Constants
|
|
3
|
-
*/
|
|
4
|
-
export declare const PHASES: {
|
|
5
|
-
readonly PHASE_0: {
|
|
6
|
-
readonly ID: "PHASE_0";
|
|
7
|
-
readonly NAME: "DISCOVERY";
|
|
8
|
-
readonly DESCRIPTION: "Parallel intelligence gathering and project mapping";
|
|
9
|
-
readonly MANDATORY: true;
|
|
10
|
-
};
|
|
11
|
-
readonly PHASE_1: {
|
|
12
|
-
readonly ID: "PHASE_1";
|
|
13
|
-
readonly NAME: "THINK";
|
|
14
|
-
readonly DESCRIPTION: "Analyze scope, decomposition, and delegation";
|
|
15
|
-
readonly MANDATORY: true;
|
|
16
|
-
};
|
|
17
|
-
readonly PHASE_2: {
|
|
18
|
-
readonly ID: "PHASE_2";
|
|
19
|
-
readonly NAME: "TRIAGE";
|
|
20
|
-
readonly DESCRIPTION: "Complexity assessment and execution path selection";
|
|
21
|
-
readonly MANDATORY: true;
|
|
22
|
-
};
|
|
23
|
-
readonly PHASE_3: {
|
|
24
|
-
readonly ID: "PHASE_3";
|
|
25
|
-
readonly NAME: "PLAN";
|
|
26
|
-
readonly DESCRIPTION: "Architectural roadmap and task grid creation";
|
|
27
|
-
readonly MANDATORY: true;
|
|
28
|
-
};
|
|
29
|
-
readonly PHASE_4: {
|
|
30
|
-
readonly ID: "PHASE_4";
|
|
31
|
-
readonly NAME: "EXECUTE";
|
|
32
|
-
readonly DESCRIPTION: "HPFA grid execution and worker coordination";
|
|
33
|
-
readonly MANDATORY: true;
|
|
34
|
-
};
|
|
35
|
-
readonly PHASE_5: {
|
|
36
|
-
readonly ID: "PHASE_5";
|
|
37
|
-
readonly NAME: "VERIFY";
|
|
38
|
-
readonly DESCRIPTION: "MSVP final gate and E2E system validation";
|
|
39
|
-
readonly MANDATORY: true;
|
|
40
|
-
};
|
|
41
|
-
readonly PHASE_6: {
|
|
42
|
-
readonly ID: "PHASE_6";
|
|
43
|
-
readonly NAME: "CONCLUDE";
|
|
44
|
-
readonly DESCRIPTION: "Mission completion and deterministic output";
|
|
45
|
-
readonly MANDATORY: true;
|
|
46
|
-
};
|
|
47
|
-
};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Unified Status Labels
|
|
3
|
-
*
|
|
4
|
-
* Primitive string values for all status indicators across the system.
|
|
5
|
-
* Casing is standardized to lowercase for consistent internal communication.
|
|
6
|
-
*/
|
|
7
|
-
export declare const STATUS_LABEL: {
|
|
8
|
-
readonly PENDING: "pending";
|
|
9
|
-
readonly QUEUED: "queued";
|
|
10
|
-
readonly RUNNING: "running";
|
|
11
|
-
readonly IN_PROGRESS: "in_progress";
|
|
12
|
-
readonly COMPLETED: "completed";
|
|
13
|
-
readonly DONE: "done";
|
|
14
|
-
readonly SUCCESS: "success";
|
|
15
|
-
readonly FAILED: "failed";
|
|
16
|
-
readonly ERROR: "error";
|
|
17
|
-
readonly TIMEOUT: "timeout";
|
|
18
|
-
readonly CANCELLED: "cancelled";
|
|
19
|
-
readonly BLOCKED: "blocked";
|
|
20
|
-
readonly PASS: "pass";
|
|
21
|
-
readonly FAIL: "fail";
|
|
22
|
-
readonly SKIP: "skip";
|
|
23
|
-
readonly CLEAN: "clean";
|
|
24
|
-
readonly OK: "ok";
|
|
25
|
-
readonly VERIFIED: "verified";
|
|
26
|
-
readonly WARNING: "warning";
|
|
27
|
-
readonly INFO: "info";
|
|
28
|
-
readonly HINT: "hint";
|
|
29
|
-
readonly ALL: "all";
|
|
30
|
-
readonly HIGH: "high";
|
|
31
|
-
readonly MEDIUM: "medium";
|
|
32
|
-
readonly LOW: "low";
|
|
33
|
-
};
|
|
34
|
-
export type TaskStatus = typeof STATUS_LABEL[keyof typeof STATUS_LABEL];
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* WAL (Write-Ahead Log) Action constants
|
|
3
|
-
*/
|
|
4
|
-
export declare const WAL_ACTIONS: {
|
|
5
|
-
readonly LAUNCH: "LAUNCH";
|
|
6
|
-
readonly UPDATE: "UPDATE";
|
|
7
|
-
readonly COMPLETE: "COMPLETE";
|
|
8
|
-
readonly DELETE: "DELETE";
|
|
9
|
-
};
|
|
10
|
-
export type WALAction = typeof WAL_ACTIONS[keyof typeof WAL_ACTIONS];
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Error Pattern RegExps
|
|
3
|
-
*/
|
|
4
|
-
export declare const ERROR_PATTERNS: {
|
|
5
|
-
readonly TOOL_RESULT_MISSING: RegExp;
|
|
6
|
-
readonly THINKING_BLOCK_ORDER: RegExp;
|
|
7
|
-
readonly THINKING_DISABLED: RegExp;
|
|
8
|
-
readonly RATE_LIMIT: RegExp;
|
|
9
|
-
readonly CONTEXT_OVERFLOW: RegExp;
|
|
10
|
-
readonly MESSAGE_ABORTED: RegExp;
|
|
11
|
-
readonly NETWORK_ERROR: RegExp;
|
|
12
|
-
readonly AUTH_ERROR: RegExp;
|
|
13
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Error Type Constants
|
|
3
|
-
*/
|
|
4
|
-
export declare const ERROR_TYPE: {
|
|
5
|
-
readonly TOOL_RESULT_MISSING: "TOOL_RESULT_MISSING";
|
|
6
|
-
readonly THINKING_BLOCK_ORDER: "THINKING_BLOCK_ORDER";
|
|
7
|
-
readonly THINKING_DISABLED: "THINKING_DISABLED";
|
|
8
|
-
readonly RATE_LIMIT: "RATE_LIMIT";
|
|
9
|
-
readonly CONTEXT_OVERFLOW: "CONTEXT_OVERFLOW";
|
|
10
|
-
readonly MESSAGE_ABORTED: "MESSAGE_ABORTED";
|
|
11
|
-
readonly NETWORK_ERROR: "NETWORK_ERROR";
|
|
12
|
-
readonly AUTH_ERROR: "AUTH_ERROR";
|
|
13
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Loop constants
|
|
3
|
-
*/
|
|
4
|
-
export { LOOP } from "./loop.js";
|
|
5
|
-
export { MISSION_CONTROL, MISSION } from "./mission-control.js";
|
|
6
|
-
export { TASK_STATUS } from "./task-status.js";
|
|
7
|
-
export { TODO_STATUS } from "./todo-status.js";
|
|
8
|
-
export { LOOP_LABELS } from "./labels.js";
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Status and Progress Labels for UI and Logging
|
|
3
|
-
*/
|
|
4
|
-
export declare const LOOP_LABELS: {
|
|
5
|
-
readonly PROGRESS_PREFIX: "[TODO Progress]:";
|
|
6
|
-
readonly INCOMPLETE_TASKS: "Incomplete Tasks";
|
|
7
|
-
readonly NEXT_TASK: "Next Task";
|
|
8
|
-
readonly STATUS_TITLE: "Status";
|
|
9
|
-
readonly STATUS: {
|
|
10
|
-
readonly RUNNING: "[RUN]";
|
|
11
|
-
readonly WAITING: "[WAIT]";
|
|
12
|
-
};
|
|
13
|
-
readonly PRIORITY: {
|
|
14
|
-
readonly HIGH: "[H]";
|
|
15
|
-
readonly MEDIUM: "[M]";
|
|
16
|
-
readonly LOW: "[L]";
|
|
17
|
-
};
|
|
18
|
-
readonly PARALLEL_REQUIRED: "[PARALLEL DISPATCH REQUIRED]";
|
|
19
|
-
readonly EXECUTE_NOW: "// EXECUTE NOW - Launch all $COUNT tasks simultaneously:";
|
|
20
|
-
readonly PARALLEL_NOTICE: "NOTICE: Do NOT run these sequentially. Use background=true for ALL.";
|
|
21
|
-
readonly MONITOR_PROGRESS: "After launching, use list_tasks to monitor progress.";
|
|
22
|
-
readonly ACTION_REQUIRED: "**Action Required**:";
|
|
23
|
-
readonly ACTION_CONTINUE: "1. Continue working on incomplete todos";
|
|
24
|
-
readonly ACTION_MARK_COMPLETE: "2. Mark each task complete when finished";
|
|
25
|
-
readonly ACTION_DONT_STOP: "3. Do NOT stop until all todos are completed or cancelled";
|
|
26
|
-
readonly VERIFIED_COMPLETE: "[Verified Complete]";
|
|
27
|
-
readonly FINAL_STATUS: "**Final Status**:";
|
|
28
|
-
readonly TOTAL_TASKS: "Total Tasks";
|
|
29
|
-
readonly COMPLETED: "Completed";
|
|
30
|
-
readonly CANCELLED: "Cancelled";
|
|
31
|
-
readonly SUCCESS_RATE: "Success Rate";
|
|
32
|
-
readonly MISSION_ACCOMPLISHED: "All tasks have been processed and verified. Mission accomplished!";
|
|
33
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Loop Continuation Configuration
|
|
3
|
-
*/
|
|
4
|
-
export declare const LOOP: {
|
|
5
|
-
/** Countdown seconds before auto-continuation */
|
|
6
|
-
readonly COUNTDOWN_SECONDS: 3;
|
|
7
|
-
/** Minimum time between continuation checks */
|
|
8
|
-
readonly MIN_TIME_BETWEEN_CHECKS_MS: number;
|
|
9
|
-
/** Grace period after countdown starts (ignore messages) */
|
|
10
|
-
readonly COUNTDOWN_GRACE_PERIOD_MS: 500;
|
|
11
|
-
/** Window to consider abort as recent */
|
|
12
|
-
readonly ABORT_WINDOW_MS: number;
|
|
13
|
-
/** Maximum iterations for mission loop */
|
|
14
|
-
readonly DEFAULT_MAX_ITERATIONS: 1000000000;
|
|
15
|
-
/** Rust tool timeout */
|
|
16
|
-
readonly RUST_TOOL_TIMEOUT_MS: number;
|
|
17
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Mission Control Configuration
|
|
3
|
-
*/
|
|
4
|
-
export declare const MISSION_CONTROL: {
|
|
5
|
-
readonly DEFAULT_MAX_ITERATIONS: 1000000000;
|
|
6
|
-
readonly DEFAULT_COUNTDOWN_SECONDS: 3;
|
|
7
|
-
readonly STATE_FILE: "loop-state.json";
|
|
8
|
-
readonly STOP_COMMAND: "/stop";
|
|
9
|
-
readonly CANCEL_COMMAND: "/cancel";
|
|
10
|
-
readonly LOG_SOURCE: "mission-loop";
|
|
11
|
-
};
|
|
12
|
-
/** @deprecated Use MISSION_CONTROL instead */
|
|
13
|
-
export declare const MISSION: {
|
|
14
|
-
readonly DEFAULT_MAX_ITERATIONS: 1000000000;
|
|
15
|
-
readonly DEFAULT_COUNTDOWN_SECONDS: 3;
|
|
16
|
-
readonly STATE_FILE: "loop-state.json";
|
|
17
|
-
readonly STOP_COMMAND: "/stop";
|
|
18
|
-
readonly CANCEL_COMMAND: "/cancel";
|
|
19
|
-
readonly LOG_SOURCE: "mission-loop";
|
|
20
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Todo item
|
|
3
|
-
*/
|
|
4
|
-
import type { TodoStatus, TodoPriority } from "../types/index.js";
|
|
5
|
-
export interface Todo {
|
|
6
|
-
id: string;
|
|
7
|
-
content: string;
|
|
8
|
-
status: TodoStatus;
|
|
9
|
-
priority: TodoPriority;
|
|
10
|
-
parentId?: string;
|
|
11
|
-
createdAt: Date;
|
|
12
|
-
completedAt?: Date;
|
|
13
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Message constants
|
|
3
|
-
*/
|
|
4
|
-
export { PART_TYPES } from "./part-types.js";
|
|
5
|
-
export { PROMPTS } from "./prompts.js";
|
|
6
|
-
export { SLASH_COMMANDS, COMMAND_NAMES, type CommandName } from "./slash-commands.js";
|
|
7
|
-
export { PLUGIN_HOOKS, type PluginHookName } from "./plugin-hooks.js";
|
|
8
|
-
export { MESSAGE_ROLES, SESSION_STATUS, type MessageRole, type SessionStatus } from "./message-roles.js";
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Message Role Constants
|
|
3
|
-
*
|
|
4
|
-
* OpenCode message roles
|
|
5
|
-
* Use these instead of hardcoded strings
|
|
6
|
-
*/
|
|
7
|
-
export declare const MESSAGE_ROLES: {
|
|
8
|
-
/** AI assistant message */
|
|
9
|
-
readonly ASSISTANT: "assistant";
|
|
10
|
-
/** User message */
|
|
11
|
-
readonly USER: "user";
|
|
12
|
-
/** System message */
|
|
13
|
-
readonly SYSTEM: "system";
|
|
14
|
-
};
|
|
15
|
-
export type MessageRole = typeof MESSAGE_ROLES[keyof typeof MESSAGE_ROLES];
|
|
16
|
-
/**
|
|
17
|
-
* Session Status Types
|
|
18
|
-
*/
|
|
19
|
-
export declare const SESSION_STATUS: {
|
|
20
|
-
readonly IDLE: "idle";
|
|
21
|
-
readonly BUSY: "busy";
|
|
22
|
-
};
|
|
23
|
-
export type SessionStatus = typeof SESSION_STATUS[keyof typeof SESSION_STATUS];
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Message Part Types
|
|
3
|
-
*/
|
|
4
|
-
export declare const PART_TYPES: {
|
|
5
|
-
readonly TEXT: "text";
|
|
6
|
-
readonly REASONING: "reasoning";
|
|
7
|
-
readonly TOOL_CALL: "tool_call";
|
|
8
|
-
readonly TOOL_RESULT: "tool_result";
|
|
9
|
-
/** Anthropic-style tool reference */
|
|
10
|
-
readonly TOOL: "tool";
|
|
11
|
-
/** Anthropic-style tool invocation */
|
|
12
|
-
readonly TOOL_USE: "tool_use";
|
|
13
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Plugin Hook Constants
|
|
3
|
-
*
|
|
4
|
-
* OpenCode plugin hook names (from @opencode-ai/plugin)
|
|
5
|
-
* Use these instead of hardcoded strings
|
|
6
|
-
*/
|
|
7
|
-
export declare const PLUGIN_HOOKS: {
|
|
8
|
-
/** Intercepts user messages before sending to LLM */
|
|
9
|
-
readonly CHAT_MESSAGE: "chat.message";
|
|
10
|
-
/** Runs before any tool call */
|
|
11
|
-
readonly TOOL_EXECUTE_BEFORE: "tool.execute.before";
|
|
12
|
-
/** Runs after any tool call completes */
|
|
13
|
-
readonly TOOL_EXECUTE_AFTER: "tool.execute.after";
|
|
14
|
-
/** Preserves custom compaction context */
|
|
15
|
-
readonly EXPERIMENTAL_SESSION_COMPACTING: "experimental.session.compacting";
|
|
16
|
-
/** Injects dynamic system prompt additions */
|
|
17
|
-
readonly EXPERIMENTAL_CHAT_SYSTEM_TRANSFORM: "experimental.chat.system.transform";
|
|
18
|
-
};
|
|
19
|
-
export type PluginHookName = typeof PLUGIN_HOOKS[keyof typeof PLUGIN_HOOKS];
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Slash Commands (with slash prefix)
|
|
3
|
-
*/
|
|
4
|
-
export declare const SLASH_COMMANDS: {
|
|
5
|
-
readonly TASK: "/task";
|
|
6
|
-
readonly PLAN: "/plan";
|
|
7
|
-
readonly STATUS: "/status";
|
|
8
|
-
readonly STOP: "/stop";
|
|
9
|
-
readonly CANCEL: "/cancel";
|
|
10
|
-
};
|
|
11
|
-
/**
|
|
12
|
-
* Command Names (without slash prefix, for comparison after parsing)
|
|
13
|
-
*/
|
|
14
|
-
export declare const COMMAND_NAMES: {
|
|
15
|
-
readonly TASK: "task";
|
|
16
|
-
readonly PLAN: "plan";
|
|
17
|
-
readonly STATUS: "status";
|
|
18
|
-
readonly STOP: "stop";
|
|
19
|
-
readonly CANCEL: "cancel";
|
|
20
|
-
};
|
|
21
|
-
export type CommandName = typeof COMMAND_NAMES[keyof typeof COMMAND_NAMES];
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Toast Duration Constants
|
|
3
|
-
*/
|
|
4
|
-
export declare const TOAST_DURATION: {
|
|
5
|
-
/** Extra short: 1.5 seconds */
|
|
6
|
-
readonly EXTRA_SHORT: 1500;
|
|
7
|
-
/** Short: 2 seconds */
|
|
8
|
-
readonly SHORT: number;
|
|
9
|
-
/** Medium: 3 seconds */
|
|
10
|
-
readonly MEDIUM: number;
|
|
11
|
-
/** Default: 4 seconds */
|
|
12
|
-
readonly DEFAULT: number;
|
|
13
|
-
/** Long: 5 seconds */
|
|
14
|
-
readonly LONG: number;
|
|
15
|
-
/** Extended: 7 seconds */
|
|
16
|
-
readonly EXTENDED: number;
|
|
17
|
-
/** Persistent: 0 (stays until dismissed) */
|
|
18
|
-
readonly PERSISTENT: 0;
|
|
19
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Toast Variants
|
|
3
|
-
*/
|
|
4
|
-
export declare const TOAST_VARIANTS: {
|
|
5
|
-
readonly INFO: "info";
|
|
6
|
-
readonly SUCCESS: "success";
|
|
7
|
-
readonly WARNING: "warning";
|
|
8
|
-
readonly ERROR: "error";
|
|
9
|
-
};
|
|
10
|
-
export type ToastVariant = (typeof TOAST_VARIANTS)[keyof typeof TOAST_VARIANTS];
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { TaskStatus } from "../../core/index.js";
|
|
2
|
-
export interface TrackedTask {
|
|
3
|
-
id: string;
|
|
4
|
-
description: string;
|
|
5
|
-
agent: string;
|
|
6
|
-
status: TaskStatus;
|
|
7
|
-
startedAt: Date;
|
|
8
|
-
isBackground: boolean;
|
|
9
|
-
parentSessionID?: string;
|
|
10
|
-
sessionID?: string;
|
|
11
|
-
}
|
|
12
|
-
export interface TaskCompletionInfo {
|
|
13
|
-
id: string;
|
|
14
|
-
description: string;
|
|
15
|
-
duration: string;
|
|
16
|
-
status: TaskStatus;
|
|
17
|
-
error?: string;
|
|
18
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Toast message with metadata
|
|
3
|
-
*/
|
|
4
|
-
import type { ToastVariant } from "../types/index.js";
|
|
5
|
-
export interface ToastMessage {
|
|
6
|
-
id: string;
|
|
7
|
-
title: string;
|
|
8
|
-
message: string;
|
|
9
|
-
variant: ToastVariant;
|
|
10
|
-
timestamp: Date;
|
|
11
|
-
duration: number;
|
|
12
|
-
dismissed: boolean;
|
|
13
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* OS Notification Command Keys
|
|
3
|
-
*/
|
|
4
|
-
export declare const NOTIFICATION_COMMAND_KEYS: {
|
|
5
|
-
readonly OSASCRIPT: "osascript";
|
|
6
|
-
readonly NOTIFY_SEND: "notifySend";
|
|
7
|
-
readonly POWERSHELL: "powershell";
|
|
8
|
-
readonly AFPLAY: "afplay";
|
|
9
|
-
readonly PAPLAY: "paplay";
|
|
10
|
-
readonly APLAY: "aplay";
|
|
11
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* OS Notification Commands
|
|
3
|
-
*/
|
|
4
|
-
export declare const NOTIFICATION_COMMANDS: {
|
|
5
|
-
readonly OSASCRIPT: "osascript";
|
|
6
|
-
readonly NOTIFY_SEND: "notify-send";
|
|
7
|
-
readonly POWERSHELL: "powershell";
|
|
8
|
-
readonly AFPLAY: "afplay";
|
|
9
|
-
readonly PAPLAY: "paplay";
|
|
10
|
-
readonly APLAY: "aplay";
|
|
11
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Notification Config Interface
|
|
3
|
-
*/
|
|
4
|
-
export interface NotificationConfig {
|
|
5
|
-
/** Notification title (default: "OpenCode Orchestrator") */
|
|
6
|
-
title?: string;
|
|
7
|
-
/** Notification message (default: "Task completed") */
|
|
8
|
-
message?: string;
|
|
9
|
-
/** Play sound with notification (default: true) */
|
|
10
|
-
playSound?: boolean;
|
|
11
|
-
/** Custom sound file path */
|
|
12
|
-
soundPath?: string;
|
|
13
|
-
/** Maximum number of sessions to track before cleanup (default: 100) */
|
|
14
|
-
maxTrackedSessions?: number;
|
|
15
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Notification State Interface
|
|
3
|
-
*/
|
|
4
|
-
export interface NotificationState {
|
|
5
|
-
/** Sessions that have already been notified */
|
|
6
|
-
notifiedSessions: Set<string>;
|
|
7
|
-
/** Pending notification timers */
|
|
8
|
-
pendingTimers: Map<string, ReturnType<typeof setTimeout>>;
|
|
9
|
-
/** Version tracking for race condition handling */
|
|
10
|
-
notificationVersions: Map<string, number>;
|
|
11
|
-
/** Sessions currently executing notification */
|
|
12
|
-
executingNotifications: Set<string>;
|
|
13
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Notification Presets - Index
|
|
3
|
-
*/
|
|
4
|
-
export { taskStarted, taskCompleted, taskFailed, allTasksComplete, } from "./task-lifecycle.js";
|
|
5
|
-
export { sessionCreated, sessionResumed, sessionCompleted, } from "./session.js";
|
|
6
|
-
export { parallelTasksLaunched, concurrencyAcquired, concurrencyReleased, } from "./parallel.js";
|
|
7
|
-
export { missionComplete, missionStarted, } from "./mission.js";
|
|
8
|
-
export { toolExecuted, documentCached, researchStarted, } from "./tools.js";
|
|
9
|
-
export { warningRateLimited, errorRecovery, warningMaxDepth, warningMaxRetries, } from "./warnings.js";
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Parallel Processing Presets
|
|
3
|
-
*/
|
|
4
|
-
export declare const parallelTasksLaunched: (count: number, agents: string[]) => import("../index.js").ToastMessage;
|
|
5
|
-
export declare const concurrencyAcquired: (agent: string, slot: string) => import("../index.js").ToastMessage;
|
|
6
|
-
export declare const concurrencyReleased: (agent: string) => import("../index.js").ToastMessage;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Session Management Presets
|
|
3
|
-
*/
|
|
4
|
-
export declare const sessionCreated: (sessionId: string, agent: string) => import("../index.js").ToastMessage;
|
|
5
|
-
export declare const sessionResumed: (sessionId: string, agent: string) => import("../index.js").ToastMessage;
|
|
6
|
-
export declare const sessionCompleted: (sessionId: string, duration: string) => import("../index.js").ToastMessage;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Task Lifecycle Presets
|
|
3
|
-
*/
|
|
4
|
-
export declare const taskStarted: (taskId: string, agent: string) => import("../index.js").ToastMessage;
|
|
5
|
-
export declare const taskCompleted: (taskId: string, agent: string) => import("../index.js").ToastMessage;
|
|
6
|
-
export declare const taskFailed: (taskId: string, error: string) => import("../index.js").ToastMessage;
|
|
7
|
-
export declare const allTasksComplete: (count: number) => import("../index.js").ToastMessage;
|