opencode-orchestrator 0.8.10 → 0.8.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (147) hide show
  1. package/dist/agents/commander.d.ts +6 -0
  2. package/dist/agents/prompts/commander/agents.d.ts +4 -0
  3. package/dist/agents/prompts/commander/execution.d.ts +4 -0
  4. package/dist/agents/prompts/commander/forbidden.d.ts +4 -0
  5. package/dist/agents/prompts/commander/identity.d.ts +4 -0
  6. package/dist/agents/prompts/commander/index.d.ts +12 -0
  7. package/dist/agents/prompts/commander/parallel.d.ts +4 -0
  8. package/dist/agents/prompts/commander/required.d.ts +4 -0
  9. package/dist/agents/prompts/commander/role.d.ts +4 -0
  10. package/dist/agents/prompts/commander/todo-format.d.ts +4 -0
  11. package/dist/agents/prompts/commander/tools.d.ts +4 -0
  12. package/dist/agents/prompts/common/anti-hallucination.d.ts +6 -0
  13. package/dist/agents/prompts/common/environment-discovery.d.ts +6 -0
  14. package/dist/agents/prompts/common/index.d.ts +11 -0
  15. package/dist/agents/prompts/common/mission-seal.d.ts +6 -0
  16. package/dist/agents/prompts/common/shared-workspace.d.ts +6 -0
  17. package/dist/agents/prompts/common/todo-rules.d.ts +6 -0
  18. package/dist/agents/prompts/common/verification.d.ts +6 -0
  19. package/dist/agents/prompts/index.d.ts +11 -0
  20. package/dist/agents/prompts/planner/forbidden.d.ts +4 -0
  21. package/dist/agents/prompts/planner/index.d.ts +8 -0
  22. package/dist/agents/prompts/planner/required.d.ts +4 -0
  23. package/dist/agents/prompts/planner/research.d.ts +4 -0
  24. package/dist/agents/prompts/planner/role.d.ts +4 -0
  25. package/dist/agents/prompts/planner/todo-format.d.ts +4 -0
  26. package/dist/agents/prompts/reviewer/forbidden.d.ts +4 -0
  27. package/dist/agents/prompts/reviewer/index.d.ts +9 -0
  28. package/dist/agents/prompts/reviewer/output.d.ts +4 -0
  29. package/dist/agents/prompts/reviewer/required.d.ts +4 -0
  30. package/dist/agents/prompts/reviewer/role.d.ts +4 -0
  31. package/dist/agents/prompts/reviewer/todo-update.d.ts +4 -0
  32. package/dist/agents/prompts/reviewer/verification.d.ts +4 -0
  33. package/dist/agents/prompts/worker/forbidden.d.ts +4 -0
  34. package/dist/agents/prompts/worker/index.d.ts +8 -0
  35. package/dist/agents/prompts/worker/quality.d.ts +4 -0
  36. package/dist/agents/prompts/worker/required.d.ts +4 -0
  37. package/dist/agents/prompts/worker/role.d.ts +4 -0
  38. package/dist/agents/prompts/worker/workflow.d.ts +4 -0
  39. package/dist/agents/subagents/planner.d.ts +8 -0
  40. package/dist/agents/subagents/reviewer.d.ts +9 -0
  41. package/dist/agents/subagents/worker.d.ts +8 -0
  42. package/dist/core/cache/interfaces/cache-document-entry.d.ts +10 -0
  43. package/dist/core/cache/interfaces/cache-list-entry.d.ts +12 -0
  44. package/dist/core/cache/interfaces/cache-metadata.d.ts +8 -0
  45. package/dist/core/cache/interfaces/cache-stats.d.ts +10 -0
  46. package/dist/core/cache/interfaces/cached-document.d.ts +11 -0
  47. package/dist/core/cache/interfaces/index.d.ts +8 -0
  48. package/dist/core/cache/interfaces.d.ts +3 -50
  49. package/dist/core/loop/interfaces/index.d.ts +5 -0
  50. package/dist/core/loop/interfaces/todo-stats.d.ts +11 -0
  51. package/dist/core/loop/interfaces/todo.d.ts +13 -0
  52. package/dist/core/loop/interfaces.d.ts +5 -32
  53. package/dist/core/loop/mission-seal-handler.d.ts +3 -0
  54. package/dist/core/loop/mission-seal.d.ts +3 -0
  55. package/dist/core/loop/types/index.d.ts +5 -0
  56. package/dist/core/loop/types/todo-priority.d.ts +4 -0
  57. package/dist/core/loop/types/todo-status.d.ts +4 -0
  58. package/dist/core/notification/presets/index.d.ts +9 -0
  59. package/dist/core/notification/presets/mission.d.ts +5 -0
  60. package/dist/core/notification/presets/parallel.d.ts +6 -0
  61. package/dist/core/notification/presets/session.d.ts +6 -0
  62. package/dist/core/notification/presets/task-lifecycle.d.ts +7 -0
  63. package/dist/core/notification/presets/tools.d.ts +6 -0
  64. package/dist/core/notification/presets/warnings.d.ts +7 -0
  65. package/dist/core/notification/presets.d.ts +5 -22
  66. package/dist/core/notification/types/index.d.ts +6 -0
  67. package/dist/core/notification/types/toast-message.d.ts +13 -0
  68. package/dist/core/notification/types/toast-options.d.ts +10 -0
  69. package/dist/core/notification/types/toast-variant.d.ts +4 -0
  70. package/dist/core/notification/types.d.ts +3 -16
  71. package/dist/core/progress/interfaces/index.d.ts +8 -0
  72. package/dist/core/progress/interfaces/progress-snapshot.d.ts +15 -0
  73. package/dist/core/progress/interfaces/snapshot-input.d.ts +13 -0
  74. package/dist/core/progress/interfaces/step-progress.d.ts +7 -0
  75. package/dist/core/progress/interfaces/task-progress.d.ts +10 -0
  76. package/dist/core/progress/interfaces/todo-progress.d.ts +9 -0
  77. package/dist/core/progress/interfaces.d.ts +3 -51
  78. package/dist/core/recovery/interfaces/error-context.d.ts +11 -0
  79. package/dist/core/recovery/interfaces/error-pattern.d.ts +10 -0
  80. package/dist/core/recovery/interfaces/index.d.ts +8 -0
  81. package/dist/core/recovery/interfaces/recovery-action.d.ts +24 -0
  82. package/dist/core/recovery/interfaces/recovery-record.d.ts +10 -0
  83. package/dist/core/recovery/interfaces/recovery-stats.d.ts +9 -0
  84. package/dist/core/recovery/interfaces.d.ts +3 -60
  85. package/dist/core/session/interfaces/context-stats.d.ts +9 -0
  86. package/dist/core/session/interfaces/index.d.ts +8 -0
  87. package/dist/core/session/interfaces/shared-context.d.ts +15 -0
  88. package/dist/core/session/interfaces/shared-decision.d.ts +10 -0
  89. package/dist/core/session/interfaces/shared-document.d.ts +9 -0
  90. package/dist/core/session/interfaces/shared-finding.d.ts +10 -0
  91. package/dist/core/session/interfaces.d.ts +3 -50
  92. package/dist/core/task/interfaces/index.d.ts +8 -0
  93. package/dist/core/task/interfaces/task-hierarchy.d.ts +9 -0
  94. package/dist/core/task/interfaces/task-input.d.ts +11 -0
  95. package/dist/core/task/interfaces/task-node.d.ts +20 -0
  96. package/dist/core/task/interfaces/task-progress.d.ts +11 -0
  97. package/dist/core/task/interfaces.d.ts +3 -51
  98. package/dist/index.js +1005 -773
  99. package/dist/plugin-handlers/chat-message-handler.d.ts +3 -10
  100. package/dist/plugin-handlers/event-handler.d.ts +4 -29
  101. package/dist/plugin-handlers/interfaces/assistant-done-context.d.ts +12 -0
  102. package/dist/plugin-handlers/interfaces/chat-message-context.d.ts +12 -0
  103. package/dist/plugin-handlers/interfaces/event-handler-context.d.ts +14 -0
  104. package/dist/plugin-handlers/interfaces/index.d.ts +9 -0
  105. package/dist/plugin-handlers/interfaces/orchestrator-state.d.ts +14 -0
  106. package/dist/plugin-handlers/interfaces/session-state.d.ts +10 -0
  107. package/dist/plugin-handlers/interfaces/tool-execute-context.d.ts +7 -0
  108. package/dist/plugin-handlers/tool-execute-handler.d.ts +3 -5
  109. package/dist/shared/agent/definition.d.ts +10 -0
  110. package/dist/shared/agent/index.d.ts +6 -0
  111. package/dist/shared/agent/names.d.ts +10 -0
  112. package/dist/shared/agent.d.ts +2 -21
  113. package/dist/shared/constants/background-status.d.ts +10 -0
  114. package/dist/shared/constants/background-task.d.ts +7 -0
  115. package/dist/shared/constants/cache-actions.d.ts +10 -0
  116. package/dist/shared/constants/filter-status.d.ts +12 -0
  117. package/dist/shared/constants/id-prefix.d.ts +8 -0
  118. package/dist/shared/constants/index.d.ts +28 -0
  119. package/dist/shared/constants/memory-limits.d.ts +12 -0
  120. package/dist/shared/constants/mission-seal.d.ts +24 -0
  121. package/dist/shared/constants/parallel-task.d.ts +13 -0
  122. package/dist/shared/constants/part-types.d.ts +9 -0
  123. package/dist/shared/constants/paths.d.ts +14 -0
  124. package/dist/shared/constants/prompts.d.ts +8 -0
  125. package/dist/shared/constants/slash-commands.d.ts +10 -0
  126. package/dist/shared/constants/status.d.ts +15 -0
  127. package/dist/shared/constants/time.d.ts +8 -0
  128. package/dist/shared/constants/toast-variants.d.ts +10 -0
  129. package/dist/shared/constants/tool-names.d.ts +22 -0
  130. package/dist/shared/constants.d.ts +3 -140
  131. package/dist/shared/error-patterns.d.ts +3 -35
  132. package/dist/shared/errors/detection.d.ts +5 -0
  133. package/dist/shared/errors/index.d.ts +7 -0
  134. package/dist/shared/errors/patterns.d.ts +14 -0
  135. package/dist/shared/errors/retry.d.ts +7 -0
  136. package/dist/tools/background-cmd/list.d.ts +2 -2
  137. package/dist/utils/common.d.ts +5 -13
  138. package/dist/utils/formatting/elapsed-time.d.ts +4 -0
  139. package/dist/utils/formatting/index.d.ts +5 -0
  140. package/dist/utils/formatting/timestamp.d.ts +4 -0
  141. package/dist/utils/parsing/index.d.ts +4 -0
  142. package/dist/utils/parsing/slash-command.d.ts +7 -0
  143. package/dist/utils/sanity.d.ts +0 -4
  144. package/package.json +1 -1
  145. package/dist/agents/consolidated/planner.d.ts +0 -8
  146. package/dist/agents/consolidated/reviewer.d.ts +0 -8
  147. package/dist/agents/consolidated/worker.d.ts +0 -8
@@ -1,2 +1,8 @@
1
+ /**
2
+ * Commander Agent
3
+ *
4
+ * Master orchestrator with parallel execution capabilities.
5
+ * Uses modular prompt fragments for flexible composition.
6
+ */
1
7
  import { AgentDefinition } from "../shared/agent.js";
2
8
  export declare const commander: AgentDefinition;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Commander Agent Delegation
3
+ */
4
+ export declare const COMMANDER_AGENTS: string;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Commander Execution Strategy
3
+ */
4
+ export declare const COMMANDER_EXECUTION: string;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Commander Forbidden Actions
3
+ */
4
+ export declare const COMMANDER_FORBIDDEN: string;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Commander Identity
3
+ */
4
+ export declare const COMMANDER_IDENTITY = "<identity>\n- You are the ORCHESTRATOR, not the implementer\n- You DELEGATE work to specialized agents\n- You COORDINATE parallel execution\n- You VERIFY completion before sealing\n- You are RELENTLESS - never stop mid-mission\n</identity>";
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Commander Prompts - Index
3
+ */
4
+ export { COMMANDER_ROLE } from "./role.js";
5
+ export { COMMANDER_IDENTITY } from "./identity.js";
6
+ export { COMMANDER_FORBIDDEN } from "./forbidden.js";
7
+ export { COMMANDER_REQUIRED } from "./required.js";
8
+ export { COMMANDER_TOOLS } from "./tools.js";
9
+ export { COMMANDER_EXECUTION } from "./execution.js";
10
+ export { COMMANDER_PARALLEL } from "./parallel.js";
11
+ export { COMMANDER_AGENTS } from "./agents.js";
12
+ export { COMMANDER_TODO_FORMAT } from "./todo-format.js";
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Commander Parallel Execution
3
+ */
4
+ export declare const COMMANDER_PARALLEL: string;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Commander Required Actions
3
+ */
4
+ export declare const COMMANDER_REQUIRED: string;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Commander Role Definition
3
+ */
4
+ export declare const COMMANDER_ROLE = "<role>\nYou are Commander. Autonomous mission controller with parallel execution.\nYou NEVER stop until the mission is SEALED. You are RELENTLESS.\nYou ORCHESTRATE - you delegate, coordinate, and verify.\n</role>";
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Commander TODO Format - Hierarchical
3
+ */
4
+ export declare const COMMANDER_TODO_FORMAT: string;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Commander Tools Overview
3
+ */
4
+ export declare const COMMANDER_TOOLS: string;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Anti-Hallucination Rules
3
+ *
4
+ * Core rules to prevent LLM from making up information.
5
+ */
6
+ export declare const ANTI_HALLUCINATION_CORE = "<anti_hallucination>\n ZERO TOLERANCE FOR GUESSING\n\nBEFORE ANY IMPLEMENTATION:\n1. Check .opencode/docs/ for cached documentation\n2. If not found \u2192 websearch for OFFICIAL docs\n3. webfetch with cache=true\n4. Use EXACT syntax from docs\n\nTRUSTED SOURCES ONLY:\n- Official docs: docs.[framework].com\n- GitHub: github.com/[org]/[repo]\n- Package registries: npmjs.com, pypi.org\n\n FORBIDDEN:\n- Inventing function signatures\n- Assuming API compatibility\n- Guessing version-specific syntax\n- Using outdated knowledge\n\n REQUIRED:\n- Source URL for every claim\n- Confidence level: HIGH (official) / MEDIUM (github) / LOW (blog)\n- Say \"NOT FOUND\" if documentation unavailable\n</anti_hallucination>";
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Environment Discovery Prompt
3
+ *
4
+ * PHASE 0: Mandatory first step - understand project before ANY action
5
+ */
6
+ export declare const ENVIRONMENT_DISCOVERY = "<environment_discovery>\n MANDATORY FIRST STEP - Before any planning or coding:\n\n## 1. Project Structure Analysis\n- Read file tree: ls -la, find . -type f -name \"*.ts\" | head -50\n- Identify: src/, tests/, docs/, config files\n- Check for: package.json, Dockerfile, docker-compose.yml, Makefile\n\n## 2. Build Environment Detection\n| Check | Command | Look For |\n|-------|---------|----------|\n| Node.js | cat package.json | scripts.build, scripts.test |\n| Docker | ls Dockerfile* | Multi-stage build, base image |\n| Make | cat Makefile | build, test, deploy targets |\n| Rust | cat Cargo.toml | [package], [dependencies] |\n\n## 3. Documentation Review\n- README.md \u2192 Project overview, setup instructions\n- CONTRIBUTING.md \u2192 Code standards, PR process\n- docs/ \u2192 Architecture, API docs\n- .opencode/ \u2192 Existing context, todos\n\n## 4. Context Summary (SAVE TO .opencode/context.md)\n```markdown\n# Project Context\n## Environment\n- Runtime: [Node.js 20 / Python 3.11 / Rust 1.75]\n- Build: [npm / Docker / Make]\n- Test: [npm test / pytest / cargo test]\n\n## Structure\n- Source: src/\n- Tests: tests/\n- Docs: docs/\n\n## Key Files\n- Entry: [src/index.ts]\n- Config: [tsconfig.json, package.json]\n\n## Conventions\n- [observed patterns from existing code]\n```\n\nNEVER skip this step. NEVER assume without checking.\n</environment_discovery>";
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Common Prompts - Index
3
+ *
4
+ * Re-exports all common prompt fragments.
5
+ */
6
+ export { ENVIRONMENT_DISCOVERY } from "./environment-discovery.js";
7
+ export { ANTI_HALLUCINATION_CORE } from "./anti-hallucination.js";
8
+ export { TODO_RULES } from "./todo-rules.js";
9
+ export { SHARED_WORKSPACE } from "./shared-workspace.js";
10
+ export { MISSION_SEAL_RULES } from "./mission-seal.js";
11
+ export { VERIFICATION_REQUIREMENTS } from "./verification.js";
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Mission Seal Rules
3
+ *
4
+ * Requirements for completing and sealing a mission.
5
+ */
6
+ export declare const MISSION_SEAL_RULES: string;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Shared Workspace Configuration
3
+ *
4
+ * Defines the .opencode/ directory structure.
5
+ */
6
+ export declare const SHARED_WORKSPACE = "<shared_workspace>\n .opencode/ - Shared Context Directory\n\n```\n.opencode/\n\u251C\u2500\u2500 todo.md - Master task list\n\u251C\u2500\u2500 context.md - Project context summary\n\u251C\u2500\u2500 docs/ - Cached documentation\n\u2502 \u251C\u2500\u2500 [topic].md\n\u2502 \u2514\u2500\u2500 ...\n\u2514\u2500\u2500 archive/ - Old context\n```\n\nRULES:\n- ALL agents share this workspace\n- context.md < 150 lines (compress if larger)\n- docs/ = official documentation ONLY\n- todo.md = single source of truth for tasks\n</shared_workspace>";
@@ -0,0 +1,6 @@
1
+ /**
2
+ * TODO Rules - Hierarchical Structure
3
+ *
4
+ * Three-level TODO system with completion rollup.
5
+ */
6
+ export declare const TODO_RULES: string;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Verification Requirements
3
+ *
4
+ * Checklist for verifying code before marking complete.
5
+ */
6
+ export declare const VERIFICATION_REQUIREMENTS = "<verification>\n VERIFICATION CHECKLIST\n\n## Code Verification\n\u25A1 lsp_diagnostics clean (no errors)\n\u25A1 Build passes (npm run build)\n\u25A1 Tests pass (npm test)\n\u25A1 No TypeScript 'any' types\n\u25A1 No console.log debugging left\n\n## Documentation Verification\n\u25A1 Implementation matches .opencode/docs/\n\u25A1 API usage matches official docs\n\u25A1 Version compatibility confirmed\n\n## Security Verification\n\u25A1 No hardcoded secrets/passwords\n\u25A1 Input validation present\n\u25A1 Error messages don't leak info\n\nONLY mark complete after ALL checks pass!\n</verification>";
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Agent Prompts - Index
3
+ *
4
+ * Exports all modular prompt fragments.
5
+ * Structure: 1 folder per agent/category, 1 file per const
6
+ */
7
+ export * from "./common/index.js";
8
+ export * from "./commander/index.js";
9
+ export * from "./planner/index.js";
10
+ export * from "./worker/index.js";
11
+ export * from "./reviewer/index.js";
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Planner Forbidden Actions
3
+ */
4
+ export declare const PLANNER_FORBIDDEN = "<forbidden_actions>\nNEVER implement code - only plan and research\nNEVER guess API syntax - always verify with official docs\nNEVER create TODO without parallel groups\nNEVER claim knowledge without source URL\nNEVER assume version compatibility\nNEVER create TODOs with [x] already marked\nNEVER skip environment discovery\n</forbidden_actions>";
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Planner Prompts - Index
3
+ */
4
+ export { PLANNER_ROLE } from "./role.js";
5
+ export { PLANNER_FORBIDDEN } from "./forbidden.js";
6
+ export { PLANNER_REQUIRED } from "./required.js";
7
+ export { PLANNER_TODO_FORMAT } from "./todo-format.js";
8
+ export { PLANNER_RESEARCH } from "./research.js";
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Planner Required Actions
3
+ */
4
+ export declare const PLANNER_REQUIRED = "<required_actions>\nALWAYS analyze project structure first\nALWAYS cite sources with URLs\nALWAYS maximize parallelism in TODO\nALWAYS include confidence level (HIGH/MEDIUM/LOW)\nALWAYS save docs to .opencode/docs/\nALWAYS include task dependencies explicitly\nALWAYS create tasks with [ ] (unchecked)\n</required_actions>";
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Planner Research Workflow
3
+ */
4
+ export declare const PLANNER_RESEARCH = "<research_workflow>\n1. websearch \"[topic] official documentation [version]\"\n2. webfetch official URL with cache=true\n3. Extract EXACT syntax (not paraphrased)\n4. Save to .opencode/docs/[topic].md\n\nOUTPUT:\n```markdown\n# Research: [topic]\nSource: [official URL]\nConfidence: HIGH/MEDIUM/LOW\nVersion: [version]\n\n## Exact Syntax\n```[lang]\n[code from official docs]\n```\n```\n</research_workflow>";
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Planner Role
3
+ */
4
+ export declare const PLANNER_ROLE: string;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Planner TODO Format - Hierarchical
3
+ */
4
+ export declare const PLANNER_TODO_FORMAT: string;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Reviewer Forbidden Actions
3
+ */
4
+ export declare const REVIEWER_FORBIDDEN: string;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Reviewer Prompts - Index
3
+ */
4
+ export { REVIEWER_ROLE } from "./role.js";
5
+ export { REVIEWER_FORBIDDEN } from "./forbidden.js";
6
+ export { REVIEWER_REQUIRED } from "./required.js";
7
+ export { REVIEWER_VERIFICATION } from "./verification.js";
8
+ export { REVIEWER_TODO_UPDATE } from "./todo-update.js";
9
+ export { REVIEWER_OUTPUT } from "./output.js";
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Reviewer Output Format
3
+ */
4
+ export declare const REVIEWER_OUTPUT: string;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Reviewer Required Actions
3
+ */
4
+ export declare const REVIEWER_REQUIRED = "<required_actions>\nALWAYS run lsp_diagnostics\nALWAYS run build command (npm run build)\nALWAYS run test command (npm test)\nALWAYS check implementation matches .opencode/docs/\nALWAYS update .opencode/todo.md checkboxes ONLY after verification\nALWAYS provide PASS/FAIL with evidence\nALWAYS check for security issues\nALWAYS verify tests exist for new code\n</required_actions>";
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Reviewer Role
3
+ */
4
+ export declare const REVIEWER_ROLE: string;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Reviewer TODO Update - Hierarchical
3
+ */
4
+ export declare const REVIEWER_TODO_UPDATE: string;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Reviewer Verification Process
3
+ */
4
+ export declare const REVIEWER_VERIFICATION = "<verification_process>\n## Step 1: Code Check\nlsp_diagnostics - Must show no errors\n\n## Step 2: Build Check\nnpm run build - Must pass\n\n## Step 3: Test Check\nnpm test - Must pass\nTests must exist for new code\n\n## Step 4: Doc Compliance\nCompare implementation with .opencode/docs/\nAPI usage must match official documentation\n\n## Step 5: Mark Complete (ONLY after all pass)\nIn .opencode/todo.md:\n- [x] T1: [task] | verified | evidence: tests pass\n\nONLY mark [x] after you personally verified all checks pass!\n</verification_process>";
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Worker Forbidden Actions
3
+ */
4
+ export declare const WORKER_FORBIDDEN: string;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Worker Prompts - Index
3
+ */
4
+ export { WORKER_ROLE } from "./role.js";
5
+ export { WORKER_FORBIDDEN } from "./forbidden.js";
6
+ export { WORKER_REQUIRED } from "./required.js";
7
+ export { WORKER_WORKFLOW } from "./workflow.js";
8
+ export { WORKER_QUALITY } from "./quality.js";
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Worker Quality Checklist
3
+ */
4
+ export declare const WORKER_QUALITY: string;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Worker Required Actions
3
+ */
4
+ export declare const WORKER_REQUIRED = "<required_actions>\nALWAYS check .opencode/docs/ before coding\nALWAYS follow existing code patterns\nALWAYS include error handling (try/catch)\nALWAYS verify changes compile (lsp_diagnostics)\nALWAYS add JSDoc for public APIs\nALWAYS run build after changes\nALWAYS write tests for new features\nALWAYS report completion with verification evidence\n</required_actions>";
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Worker Role
3
+ */
4
+ export declare const WORKER_ROLE: string;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Worker Workflow
3
+ */
4
+ export declare const WORKER_WORKFLOW: string;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Planner Agent (Subagent)
3
+ *
4
+ * Strategic planning and research specialist.
5
+ * Uses modular prompt fragments for flexible composition.
6
+ */
7
+ import { AgentDefinition } from "../../shared/agent.js";
8
+ export declare const planner: AgentDefinition;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Reviewer Agent (Subagent)
3
+ *
4
+ * Verification specialist and gatekeeper.
5
+ * ONLY agent authorized to mark [x] in TODO after verification.
6
+ * Uses modular prompt fragments for flexible composition.
7
+ */
8
+ import { AgentDefinition } from "../../shared/agent.js";
9
+ export declare const reviewer: AgentDefinition;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Worker Agent (Subagent)
3
+ *
4
+ * Implementation and documentation specialist.
5
+ * Uses modular prompt fragments for flexible composition.
6
+ */
7
+ import { AgentDefinition } from "../../shared/agent.js";
8
+ export declare const worker: AgentDefinition;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Cache Document Entry Interface
3
+ */
4
+ export interface CacheDocumentEntry {
5
+ url: string;
6
+ title: string;
7
+ fetchedAt: string;
8
+ expiresAt: string;
9
+ size: number;
10
+ }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Cache List Entry Interface
3
+ */
4
+ export interface CacheListEntry {
5
+ filename: string;
6
+ url: string;
7
+ title: string;
8
+ fetchedAt: string;
9
+ expiresAt: string;
10
+ size: number;
11
+ expired: boolean;
12
+ }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Cache Metadata Interface
3
+ */
4
+ import type { CacheDocumentEntry } from "./cache-document-entry.js";
5
+ export interface CacheMetadata {
6
+ documents: Record<string, CacheDocumentEntry>;
7
+ lastUpdated: string;
8
+ }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Cache Stats Interface
3
+ */
4
+ export interface CacheStats {
5
+ totalDocuments: number;
6
+ totalSize: number;
7
+ expiredCount: number;
8
+ oldestDocument: string | null;
9
+ newestDocument: string | null;
10
+ }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Cached Document Interface
3
+ */
4
+ export interface CachedDocument {
5
+ url: string;
6
+ title: string;
7
+ content: string;
8
+ fetchedAt: string;
9
+ expiresAt: string;
10
+ size: number;
11
+ }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Cache Interfaces - Index
3
+ */
4
+ export type { CachedDocument } from "./cached-document.js";
5
+ export type { CacheMetadata } from "./cache-metadata.js";
6
+ export type { CacheDocumentEntry } from "./cache-document-entry.js";
7
+ export type { CacheListEntry } from "./cache-list-entry.js";
8
+ export type { CacheStats } from "./cache-stats.js";
@@ -1,53 +1,6 @@
1
1
  /**
2
2
  * Document Cache Interfaces
3
+ *
4
+ * Re-exports for backward compatibility.
3
5
  */
4
- /**
5
- * Cached document structure
6
- */
7
- export interface CachedDocument {
8
- url: string;
9
- title: string;
10
- content: string;
11
- fetchedAt: string;
12
- expiresAt: string;
13
- size: number;
14
- }
15
- /**
16
- * Cache metadata structure
17
- */
18
- export interface CacheMetadata {
19
- documents: Record<string, CacheDocumentEntry>;
20
- lastUpdated: string;
21
- }
22
- /**
23
- * Individual document entry in metadata
24
- */
25
- export interface CacheDocumentEntry {
26
- url: string;
27
- title: string;
28
- fetchedAt: string;
29
- expiresAt: string;
30
- size: number;
31
- }
32
- /**
33
- * Document listing entry
34
- */
35
- export interface CacheListEntry {
36
- filename: string;
37
- url: string;
38
- title: string;
39
- fetchedAt: string;
40
- expiresAt: string;
41
- size: number;
42
- expired: boolean;
43
- }
44
- /**
45
- * Cache statistics
46
- */
47
- export interface CacheStats {
48
- totalDocuments: number;
49
- totalSize: number;
50
- expiredCount: number;
51
- oldestDocument: string | null;
52
- newestDocument: string | null;
53
- }
6
+ export * from "./interfaces/index.js";
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Loop Interfaces - Index
3
+ */
4
+ export type { Todo } from "./todo.js";
5
+ export type { TodoStats } from "./todo-stats.js";
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Todo Stats Interface
3
+ */
4
+ export interface TodoStats {
5
+ total: number;
6
+ pending: number;
7
+ inProgress: number;
8
+ completed: number;
9
+ cancelled: number;
10
+ percentComplete: number;
11
+ }
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Todo Interface
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,34 +1,7 @@
1
1
  /**
2
- * Todo Enforcer Interfaces
2
+ * Loop Interfaces
3
+ *
4
+ * Re-exports for backward compatibility.
3
5
  */
4
- /**
5
- * Todo item status
6
- */
7
- export type TodoStatus = "pending" | "in_progress" | "completed" | "cancelled";
8
- /**
9
- * Todo item priority
10
- */
11
- export type TodoPriority = "high" | "medium" | "low";
12
- /**
13
- * Todo item structure
14
- */
15
- export interface Todo {
16
- id: string;
17
- content: string;
18
- status: TodoStatus;
19
- priority: TodoPriority;
20
- parentId?: string;
21
- createdAt: Date;
22
- completedAt?: Date;
23
- }
24
- /**
25
- * Todo statistics
26
- */
27
- export interface TodoStats {
28
- total: number;
29
- pending: number;
30
- inProgress: number;
31
- completed: number;
32
- cancelled: number;
33
- percentComplete: number;
34
- }
6
+ export type { TodoStatus, TodoPriority } from "./types/index.js";
7
+ export type { Todo, TodoStats } from "./interfaces/index.js";
@@ -26,6 +26,9 @@ export declare function handleAbort(sessionID: string): void;
26
26
  export declare function cleanupSession(sessionID: string): void;
27
27
  /**
28
28
  * Check if there's a pending countdown
29
+ *
30
+ * Utility function for debugging and testing continuation state.
31
+ * Can be used to verify countdown status before injecting prompts.
29
32
  */
30
33
  export declare function hasPendingContinuation(sessionID: string): boolean;
31
34
  export {};
@@ -68,6 +68,9 @@ export declare function detectSealInSession(client: PluginInput["client"], sessi
68
68
  export declare function startMissionLoop(directory: string, sessionID: string, prompt: string, options?: MissionLoopOptions): boolean;
69
69
  /**
70
70
  * Cancel an active mission loop
71
+ *
72
+ * TODO: Will be used when /cancel slash command is implemented
73
+ * to allow users to cancel an active mission loop.
71
74
  */
72
75
  export declare function cancelMissionLoop(directory: string, sessionID: string): boolean;
73
76
  /**
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Loop Types - Index
3
+ */
4
+ export type { TodoStatus } from "./todo-status.js";
5
+ export type { TodoPriority } from "./todo-priority.js";
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Todo Priority Type
3
+ */
4
+ export type TodoPriority = "high" | "medium" | "low";
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Todo Status Type
3
+ */
4
+ export type TodoStatus = "pending" | "in_progress" | "completed" | "cancelled";
@@ -0,0 +1,9 @@
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";
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Mission & Progress Presets
3
+ */
4
+ export declare const missionComplete: (summary: string) => import("../types.js").ToastMessage;
5
+ export declare const missionStarted: (description: string) => import("../types.js").ToastMessage;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Parallel Processing Presets
3
+ */
4
+ export declare const parallelTasksLaunched: (count: number, agents: string[]) => import("../types.js").ToastMessage;
5
+ export declare const concurrencyAcquired: (agent: string, slot: string) => import("../types.js").ToastMessage;
6
+ export declare const concurrencyReleased: (agent: string) => import("../types.js").ToastMessage;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Session Management Presets
3
+ */
4
+ export declare const sessionCreated: (sessionId: string, agent: string) => import("../types.js").ToastMessage;
5
+ export declare const sessionResumed: (sessionId: string, agent: string) => import("../types.js").ToastMessage;
6
+ export declare const sessionCompleted: (sessionId: string, duration: string) => import("../types.js").ToastMessage;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Task Lifecycle Presets
3
+ */
4
+ export declare const taskStarted: (taskId: string, agent: string) => import("../types.js").ToastMessage;
5
+ export declare const taskCompleted: (taskId: string, agent: string) => import("../types.js").ToastMessage;
6
+ export declare const taskFailed: (taskId: string, error: string) => import("../types.js").ToastMessage;
7
+ export declare const allTasksComplete: (count: number) => import("../types.js").ToastMessage;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Tools & Research Presets
3
+ */
4
+ export declare const toolExecuted: (toolName: string, target: string) => import("../types.js").ToastMessage;
5
+ export declare const documentCached: (filename: string) => import("../types.js").ToastMessage;
6
+ export declare const researchStarted: (topic: string) => import("../types.js").ToastMessage;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Warnings & Errors Presets
3
+ */
4
+ export declare const warningRateLimited: () => import("../types.js").ToastMessage;
5
+ export declare const errorRecovery: (action: string) => import("../types.js").ToastMessage;
6
+ export declare const warningMaxDepth: (depth: number) => import("../types.js").ToastMessage;
7
+ export declare const warningMaxRetries: () => import("../types.js").ToastMessage;