opencode-orchestrator 1.0.56 → 1.0.58

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 (92) hide show
  1. package/README.md +18 -5
  2. package/dist/agents/prompts/discovery/index.d.ts +3 -0
  3. package/dist/agents/prompts/execution/delegation.d.ts +1 -0
  4. package/dist/agents/prompts/execution/index.d.ts +9 -0
  5. package/dist/agents/prompts/index.d.ts +12 -7
  6. package/dist/agents/prompts/mission/index.d.ts +4 -0
  7. package/dist/agents/prompts/mission/seal-conditions.d.ts +1 -0
  8. package/dist/agents/prompts/mission/status-tracking.d.ts +1 -0
  9. package/dist/agents/prompts/philosophy/execution-assurance.d.ts +1 -0
  10. package/dist/agents/prompts/philosophy/index.d.ts +4 -0
  11. package/dist/agents/prompts/planning/decomposition.d.ts +1 -0
  12. package/dist/agents/prompts/planning/index.d.ts +8 -0
  13. package/dist/agents/prompts/roles/commander/index.d.ts +4 -0
  14. package/dist/agents/prompts/roles/planner/index.d.ts +3 -0
  15. package/dist/agents/prompts/roles/reviewer/index.d.ts +3 -0
  16. package/dist/agents/prompts/roles/worker/index.d.ts +3 -0
  17. package/dist/agents/prompts/tools/index.d.ts +5 -0
  18. package/dist/agents/prompts/tools/search.d.ts +1 -0
  19. package/dist/agents/prompts/verification/evidence.d.ts +1 -0
  20. package/dist/agents/prompts/verification/index.d.ts +7 -0
  21. package/dist/core/loop/verification.d.ts +62 -0
  22. package/dist/index.js +2124 -1684
  23. package/dist/shared/constants/system-messages.d.ts +1 -1
  24. package/dist/shared/index.d.ts +1 -0
  25. package/dist/shared/verification/constants/categories.d.ts +95 -0
  26. package/dist/shared/verification/constants/checklist.d.ts +16 -0
  27. package/dist/shared/verification/constants/index.d.ts +6 -0
  28. package/dist/shared/verification/constants/patterns.d.ts +19 -0
  29. package/dist/shared/verification/index.d.ts +8 -0
  30. package/dist/shared/verification/interfaces/checklist-item.d.ts +21 -0
  31. package/dist/shared/verification/interfaces/checklist-verification-result.d.ts +24 -0
  32. package/dist/shared/verification/interfaces/index.d.ts +7 -0
  33. package/dist/shared/verification/interfaces/verification-checklist.d.ts +19 -0
  34. package/dist/shared/verification/interfaces/verification-result.d.ts +29 -0
  35. package/dist/shared/verification/types/checklist-category.d.ts +18 -0
  36. package/dist/shared/verification/types/index.d.ts +4 -0
  37. package/package.json +1 -1
  38. package/dist/agents/prompts/commander/agents.d.ts +0 -4
  39. package/dist/agents/prompts/commander/index.d.ts +0 -15
  40. package/dist/agents/prompts/commander/tools.d.ts +0 -4
  41. package/dist/agents/prompts/common/index.d.ts +0 -17
  42. package/dist/agents/prompts/common/mission-seal.d.ts +0 -6
  43. package/dist/agents/prompts/planner/index.d.ts +0 -10
  44. package/dist/agents/prompts/reviewer/index.d.ts +0 -13
  45. package/dist/agents/prompts/reviewer/output.d.ts +0 -4
  46. package/dist/agents/prompts/worker/index.d.ts +0 -12
  47. /package/dist/agents/prompts/{common/environment-discovery.d.ts → discovery/environment.d.ts} +0 -0
  48. /package/dist/agents/prompts/{common → discovery}/skills.d.ts +0 -0
  49. /package/dist/agents/prompts/{common/shared-workspace.d.ts → discovery/workspace.d.ts} +0 -0
  50. /package/dist/agents/prompts/{worker → execution}/file-assignment.d.ts +0 -0
  51. /package/dist/agents/prompts/{common → execution}/hyper-parallel.d.ts +0 -0
  52. /package/dist/agents/prompts/{worker/isolation-testing.d.ts → execution/isolation.d.ts} +0 -0
  53. /package/dist/agents/prompts/{commander → execution}/parallel.d.ts +0 -0
  54. /package/dist/agents/prompts/{worker → execution}/quality.d.ts +0 -0
  55. /package/dist/agents/prompts/{commander/execution.d.ts → execution/strategy.d.ts} +0 -0
  56. /package/dist/agents/prompts/{worker/tdd-workflow.d.ts → execution/tdd.d.ts} +0 -0
  57. /package/dist/agents/prompts/{worker → execution}/workflow.d.ts +0 -0
  58. /package/dist/agents/prompts/{commander → mission}/loop-continuation.d.ts +0 -0
  59. /package/dist/agents/prompts/{commander → mission}/recovery.d.ts +0 -0
  60. /package/dist/agents/prompts/{common → philosophy}/anti-hallucination.d.ts +0 -0
  61. /package/dist/agents/prompts/{common/core-philosophy.d.ts → philosophy/core.d.ts} +0 -0
  62. /package/dist/agents/prompts/{common → philosophy}/modularity.d.ts +0 -0
  63. /package/dist/agents/prompts/{planner → planning}/file-planning.d.ts +0 -0
  64. /package/dist/agents/prompts/{planner/todo-format.d.ts → planning/planner-todo.d.ts} +0 -0
  65. /package/dist/agents/prompts/{planner → planning}/research.d.ts +0 -0
  66. /package/dist/agents/prompts/{reviewer/todo-update.d.ts → planning/reviewer-todo-update.d.ts} +0 -0
  67. /package/dist/agents/prompts/{commander → planning}/todo-format.d.ts +0 -0
  68. /package/dist/agents/prompts/{common → planning}/todo-rules.d.ts +0 -0
  69. /package/dist/agents/prompts/{planner → planning}/todo-sync.d.ts +0 -0
  70. /package/dist/agents/prompts/{commander → roles/commander}/forbidden.d.ts +0 -0
  71. /package/dist/agents/prompts/{commander → roles/commander}/identity.d.ts +0 -0
  72. /package/dist/agents/prompts/{commander → roles/commander}/required.d.ts +0 -0
  73. /package/dist/agents/prompts/{commander → roles/commander}/role.d.ts +0 -0
  74. /package/dist/agents/prompts/{planner → roles/planner}/forbidden.d.ts +0 -0
  75. /package/dist/agents/prompts/{planner/role.d.ts → roles/planner/identity.d.ts} +0 -0
  76. /package/dist/agents/prompts/{planner → roles/planner}/required.d.ts +0 -0
  77. /package/dist/agents/prompts/{reviewer → roles/reviewer}/forbidden.d.ts +0 -0
  78. /package/dist/agents/prompts/{reviewer/role.d.ts → roles/reviewer/identity.d.ts} +0 -0
  79. /package/dist/agents/prompts/{reviewer → roles/reviewer}/required.d.ts +0 -0
  80. /package/dist/agents/prompts/{worker → roles/worker}/forbidden.d.ts +0 -0
  81. /package/dist/agents/prompts/{worker/role.d.ts → roles/worker/identity.d.ts} +0 -0
  82. /package/dist/agents/prompts/{worker → roles/worker}/required.d.ts +0 -0
  83. /package/dist/agents/prompts/{common → tools}/ast.d.ts +0 -0
  84. /package/dist/agents/prompts/{common → tools}/lsp.d.ts +0 -0
  85. /package/dist/agents/prompts/{reviewer/lsp-tools.d.ts → tools/reviewer-lsp.d.ts} +0 -0
  86. /package/dist/agents/prompts/{worker/lsp-tools.d.ts → tools/worker-lsp.d.ts} +0 -0
  87. /package/dist/agents/prompts/{reviewer → verification}/async-monitoring.d.ts +0 -0
  88. /package/dist/agents/prompts/{reviewer/integration-testing.d.ts → verification/integration.d.ts} +0 -0
  89. /package/dist/agents/prompts/{common/verification.d.ts → verification/process.d.ts} +0 -0
  90. /package/dist/agents/prompts/{reviewer/verification.d.ts → verification/reviewer-process.d.ts} +0 -0
  91. /package/dist/agents/prompts/{reviewer/sync-verification.d.ts → verification/sync-check.d.ts} +0 -0
  92. /package/dist/agents/prompts/{commander → verification}/sync-handling.d.ts +0 -0
package/README.md CHANGED
@@ -12,10 +12,13 @@
12
12
 
13
13
  ## ⚡ Quick Start
14
14
 
15
+ > 💡 **Tip**: Updated daily. Run this command everyday to stay up to date.
16
+
15
17
  ```bash
16
18
  npm install -g opencode-orchestrator
17
19
  ```
18
20
 
21
+
19
22
  In an OpenCode environment:
20
23
  ```bash
21
24
  /task "Implement"
@@ -40,7 +43,7 @@ This philosophy extends to efficiency. We achieved **Zero-Configuration** usabil
40
43
  ```text
41
44
  [ User Task Input ]
42
45
 
43
- ┌───────────▼───────────┐ <────────────────────────────────────────┐
46
+ ┌───────────▼───────────┐ ◄────────────────────────────────────────┐
44
47
  │ 🫡 COMMANDER (Hub) │ (Orchestration) │
45
48
  └───────────┬───────────┘ │
46
49
  │ │
@@ -65,21 +68,31 @@ This philosophy extends to efficiency. We achieved **Zero-Configuration** usabil
65
68
  └──────┬───┘ └─────┬────┘ └────┬─────┘ │
66
69
  │ │ │ │
67
70
  ═▼═══════════▼═══════════▼═ │
68
- │ 🚦 SYNC BARRIER │
71
+ │ 🚦 SYNC BARRIER │
69
72
  ═════════════╤═════════════ │
70
73
  │ │
71
74
  ┌───────────▼───────────┐ │
72
- ✔️ MASTER REVIEWER │ (E2E Verification)
75
+ 📋 VERIFICATION │ (Checklist Gate)
76
+ │ ┌─────────────────┐ │ │
77
+ │ │ [x] Build Pass │ │ │
78
+ │ │ [x] Tests Pass │ │ │
79
+ │ │ [x] No Errors │ │ │
80
+ │ └─────────────────┘ │ │
73
81
  └───────────┬───────────┘ │
74
82
  │ │
75
83
  __________▼_________ │
76
84
  ╱ ╲ NO (Loop / Auto-Correction) │
77
- ╱ ✅ All TODOs? ╲ ──────────────────────────────────────────┘
78
- ╲ 🛡️ Error Rate 0%?
85
+ ╱ ✅ Checklist 100%? ╲ ──────────────────────────────────────────┘
86
+ ╲ 🛡️ Sync Issues 0?
79
87
  ╲____________________╱
80
88
  │ YES
81
89
 
82
90
  [ 🎖️ MISSION SEALED ]
91
+
92
+ ┌───────────▼───────────┐
93
+ │ 🔔 OS Notification │
94
+ │ 🎵 Success Sound │
95
+ └───────────────────────┘
83
96
  ```
84
97
 
85
98
 
@@ -0,0 +1,3 @@
1
+ export * from "./environment.js";
2
+ export * from "./workspace.js";
3
+ export * from "./skills.js";
@@ -0,0 +1 @@
1
+ export declare const DELEGATION_RULES: string;
@@ -0,0 +1,9 @@
1
+ export * from "./parallel.js";
2
+ export * from "./delegation.js";
3
+ export * from "./file-assignment.js";
4
+ export * from "./workflow.js";
5
+ export * from "./hyper-parallel.js";
6
+ export * from "./tdd.js";
7
+ export * from "./isolation.js";
8
+ export * from "./strategy.js";
9
+ export * from "./quality.js";
@@ -1,11 +1,16 @@
1
1
  /**
2
2
  * Agent Prompts - Index
3
3
  *
4
- * Exports all modular prompt fragments.
5
- * Structure: 1 folder per agent/category, 1 file per const
4
+ * Exports all modular prompt fragments from the new structure.
6
5
  */
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";
6
+ export * from "./philosophy/index.js";
7
+ export * from "./mission/index.js";
8
+ export * from "./verification/index.js";
9
+ export * from "./planning/index.js";
10
+ export * from "./execution/index.js";
11
+ export * from "./discovery/index.js";
12
+ export * from "./tools/index.js";
13
+ export * from "./roles/commander/index.js";
14
+ export * from "./roles/planner/index.js";
15
+ export * from "./roles/worker/index.js";
16
+ export * from "./roles/reviewer/index.js";
@@ -0,0 +1,4 @@
1
+ export * from "./seal-conditions.js";
2
+ export * from "./loop-continuation.js";
3
+ export * from "./status-tracking.js";
4
+ export * from "./recovery.js";
@@ -0,0 +1 @@
1
+ export declare const SEAL_CONDITIONS: string;
@@ -0,0 +1 @@
1
+ export declare const MISSION_STATUS_FORMAT: string;
@@ -0,0 +1 @@
1
+ export declare const EXECUTION_ASSURANCE = "<execution_assurance>\n## L0-L7 Execution Assurance Levels\n\n| Level | Scope | Requirement |\n|-------|-------|-------------|\n| **L0** | Syntax | Valid code, no parse errors |\n| **L1** | Static | Linting passes, Types check |\n| **L2** | Unit | Individual functions/classes tested |\n| **L3** | Module | Component integration works |\n| **L4** | Build | Project compiles/bundles successfully |\n| **L5** | Integration | Cross-module/System APIs work |\n| **L6** | E2E | Full flow works from user perspective |\n| **L7** | Verification | Mission requirements met (SEALED) |\n\n**Rule:** You must achieve the highest possible Level for the current task.\n- Never settle for L0/L1 if L2+ is possible.\n- L4 (Build) is a GATEKEEPER. If build fails, nothing else matters.\n</execution_assurance>";
@@ -0,0 +1,4 @@
1
+ export * from "./core.js";
2
+ export * from "./execution-assurance.js";
3
+ export * from "./anti-hallucination.js";
4
+ export * from "./modularity.js";
@@ -0,0 +1 @@
1
+ export declare const TASK_DECOMPOSITION = "<decomposition_rules>\n## Task Decomposition Rules\n\nWhen a task is too large or complex:\n1. **Break it down** into atomic steps (max 1 file or 1 logical unit per step).\n2. **Update TODO**: Replace the large task with subtasks T[N.1], T[N.2], etc.\n3. **Verify Atomic Success**: Each subtask must be verifiable independently (L2+).\n\nIf stuck:\n- Do not retry the same failing action more than twice.\n- Decompose the problem into smaller investigation steps.\n- Create a specific \"Research\" task to find the root cause.\n</decomposition_rules>";
@@ -0,0 +1,8 @@
1
+ export * from "./todo-format.js";
2
+ export * from "./todo-rules.js";
3
+ export * from "./file-planning.js";
4
+ export * from "./decomposition.js";
5
+ export * from "./todo-sync.js";
6
+ export * from "./reviewer-todo-update.js";
7
+ export * from "./research.js";
8
+ export * from "./planner-todo.js";
@@ -0,0 +1,4 @@
1
+ export * from "./identity.js";
2
+ export * from "./forbidden.js";
3
+ export * from "./required.js";
4
+ export * from "./role.js";
@@ -0,0 +1,3 @@
1
+ export * from "./identity.js";
2
+ export * from "./forbidden.js";
3
+ export * from "./required.js";
@@ -0,0 +1,3 @@
1
+ export * from "./identity.js";
2
+ export * from "./forbidden.js";
3
+ export * from "./required.js";
@@ -0,0 +1,3 @@
1
+ export * from "./identity.js";
2
+ export * from "./forbidden.js";
3
+ export * from "./required.js";
@@ -0,0 +1,5 @@
1
+ export * from "./lsp.js";
2
+ export * from "./ast.js";
3
+ export * from "./search.js";
4
+ export * from "./reviewer-lsp.js";
5
+ export * from "./worker-lsp.js";
@@ -0,0 +1 @@
1
+ export declare const SEARCH_TOOLS: string;
@@ -0,0 +1 @@
1
+ export declare const EVIDENCE_FORMAT: string;
@@ -0,0 +1,7 @@
1
+ export * from "./process.js";
2
+ export * from "./integration.js";
3
+ export * from "./sync-check.js";
4
+ export * from "./sync-handling.js";
5
+ export * from "./evidence.js";
6
+ export * from "./async-monitoring.js";
7
+ export * from "./reviewer-process.js";
@@ -0,0 +1,62 @@
1
+ /**
2
+ * Verification Checklist Module
3
+ *
4
+ * Provides a structured checklist system for mission completion verification.
5
+ *
6
+ * The LLM creates and checks items in .opencode/verification-checklist.md
7
+ * The hook system verifies all items are checked before allowing SEAL.
8
+ *
9
+ * This approach:
10
+ * 1. LLM discovers environment and creates appropriate checklist items
11
+ * 2. LLM executes and marks items as complete
12
+ * 3. Hook verifies all items are checked (hard gate)
13
+ */
14
+ import { type ChecklistCategory, type ChecklistItem, type ChecklistVerificationResult, type VerificationResult } from "../../shared/index.js";
15
+ export type { ChecklistItem, ChecklistCategory, ChecklistVerificationResult, VerificationResult };
16
+ /** Path to the verification checklist file (re-export for convenience) */
17
+ export declare const CHECKLIST_FILE: ".opencode/verification-checklist.md";
18
+ /**
19
+ * Parse checklist from markdown content
20
+ */
21
+ export declare function parseChecklist(content: string): ChecklistItem[];
22
+ /**
23
+ * Read checklist from file
24
+ */
25
+ export declare function readChecklist(directory: string): ChecklistItem[];
26
+ /**
27
+ * Verify that all checklist items are complete
28
+ */
29
+ export declare function verifyChecklist(directory: string): ChecklistVerificationResult;
30
+ /**
31
+ * Quick check if checklist exists and has items
32
+ */
33
+ export declare function hasValidChecklist(directory: string): boolean;
34
+ /**
35
+ * Get checklist summary for display
36
+ */
37
+ export declare function getChecklistSummary(directory: string): string;
38
+ /**
39
+ * Build prompt for when checklist verification fails
40
+ */
41
+ export declare function buildChecklistFailurePrompt(result: ChecklistVerificationResult): string;
42
+ /**
43
+ * Build checklist creation prompt (for inclusion in agent prompts)
44
+ */
45
+ export declare function getChecklistCreationInstructions(): string;
46
+ /**
47
+ * Verify mission completion conditions
48
+ *
49
+ * Checks (in order):
50
+ * 1. Verification checklist (primary - if exists)
51
+ * 2. TODO completion rate (fallback)
52
+ * 3. Sync issues (always checked)
53
+ */
54
+ export declare function verifyMissionCompletion(directory: string): VerificationResult;
55
+ /**
56
+ * Build prompt for when SEAL is rejected due to verification failure
57
+ */
58
+ export declare function buildVerificationFailurePrompt(result: VerificationResult): string;
59
+ /**
60
+ * Build a concise status summary for logs
61
+ */
62
+ export declare function buildVerificationSummary(result: VerificationResult): string;