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.
- package/README.md +18 -5
- package/dist/agents/prompts/discovery/index.d.ts +3 -0
- package/dist/agents/prompts/execution/delegation.d.ts +1 -0
- package/dist/agents/prompts/execution/index.d.ts +9 -0
- package/dist/agents/prompts/index.d.ts +12 -7
- package/dist/agents/prompts/mission/index.d.ts +4 -0
- package/dist/agents/prompts/mission/seal-conditions.d.ts +1 -0
- package/dist/agents/prompts/mission/status-tracking.d.ts +1 -0
- package/dist/agents/prompts/philosophy/execution-assurance.d.ts +1 -0
- package/dist/agents/prompts/philosophy/index.d.ts +4 -0
- package/dist/agents/prompts/planning/decomposition.d.ts +1 -0
- package/dist/agents/prompts/planning/index.d.ts +8 -0
- package/dist/agents/prompts/roles/commander/index.d.ts +4 -0
- package/dist/agents/prompts/roles/planner/index.d.ts +3 -0
- package/dist/agents/prompts/roles/reviewer/index.d.ts +3 -0
- package/dist/agents/prompts/roles/worker/index.d.ts +3 -0
- package/dist/agents/prompts/tools/index.d.ts +5 -0
- package/dist/agents/prompts/tools/search.d.ts +1 -0
- package/dist/agents/prompts/verification/evidence.d.ts +1 -0
- package/dist/agents/prompts/verification/index.d.ts +7 -0
- package/dist/core/loop/verification.d.ts +62 -0
- package/dist/index.js +2124 -1684
- package/dist/shared/constants/system-messages.d.ts +1 -1
- package/dist/shared/index.d.ts +1 -0
- package/dist/shared/verification/constants/categories.d.ts +95 -0
- package/dist/shared/verification/constants/checklist.d.ts +16 -0
- package/dist/shared/verification/constants/index.d.ts +6 -0
- package/dist/shared/verification/constants/patterns.d.ts +19 -0
- package/dist/shared/verification/index.d.ts +8 -0
- package/dist/shared/verification/interfaces/checklist-item.d.ts +21 -0
- package/dist/shared/verification/interfaces/checklist-verification-result.d.ts +24 -0
- package/dist/shared/verification/interfaces/index.d.ts +7 -0
- package/dist/shared/verification/interfaces/verification-checklist.d.ts +19 -0
- package/dist/shared/verification/interfaces/verification-result.d.ts +29 -0
- package/dist/shared/verification/types/checklist-category.d.ts +18 -0
- package/dist/shared/verification/types/index.d.ts +4 -0
- package/package.json +1 -1
- package/dist/agents/prompts/commander/agents.d.ts +0 -4
- package/dist/agents/prompts/commander/index.d.ts +0 -15
- package/dist/agents/prompts/commander/tools.d.ts +0 -4
- package/dist/agents/prompts/common/index.d.ts +0 -17
- package/dist/agents/prompts/common/mission-seal.d.ts +0 -6
- package/dist/agents/prompts/planner/index.d.ts +0 -10
- package/dist/agents/prompts/reviewer/index.d.ts +0 -13
- package/dist/agents/prompts/reviewer/output.d.ts +0 -4
- package/dist/agents/prompts/worker/index.d.ts +0 -12
- /package/dist/agents/prompts/{common/environment-discovery.d.ts → discovery/environment.d.ts} +0 -0
- /package/dist/agents/prompts/{common → discovery}/skills.d.ts +0 -0
- /package/dist/agents/prompts/{common/shared-workspace.d.ts → discovery/workspace.d.ts} +0 -0
- /package/dist/agents/prompts/{worker → execution}/file-assignment.d.ts +0 -0
- /package/dist/agents/prompts/{common → execution}/hyper-parallel.d.ts +0 -0
- /package/dist/agents/prompts/{worker/isolation-testing.d.ts → execution/isolation.d.ts} +0 -0
- /package/dist/agents/prompts/{commander → execution}/parallel.d.ts +0 -0
- /package/dist/agents/prompts/{worker → execution}/quality.d.ts +0 -0
- /package/dist/agents/prompts/{commander/execution.d.ts → execution/strategy.d.ts} +0 -0
- /package/dist/agents/prompts/{worker/tdd-workflow.d.ts → execution/tdd.d.ts} +0 -0
- /package/dist/agents/prompts/{worker → execution}/workflow.d.ts +0 -0
- /package/dist/agents/prompts/{commander → mission}/loop-continuation.d.ts +0 -0
- /package/dist/agents/prompts/{commander → mission}/recovery.d.ts +0 -0
- /package/dist/agents/prompts/{common → philosophy}/anti-hallucination.d.ts +0 -0
- /package/dist/agents/prompts/{common/core-philosophy.d.ts → philosophy/core.d.ts} +0 -0
- /package/dist/agents/prompts/{common → philosophy}/modularity.d.ts +0 -0
- /package/dist/agents/prompts/{planner → planning}/file-planning.d.ts +0 -0
- /package/dist/agents/prompts/{planner/todo-format.d.ts → planning/planner-todo.d.ts} +0 -0
- /package/dist/agents/prompts/{planner → planning}/research.d.ts +0 -0
- /package/dist/agents/prompts/{reviewer/todo-update.d.ts → planning/reviewer-todo-update.d.ts} +0 -0
- /package/dist/agents/prompts/{commander → planning}/todo-format.d.ts +0 -0
- /package/dist/agents/prompts/{common → planning}/todo-rules.d.ts +0 -0
- /package/dist/agents/prompts/{planner → planning}/todo-sync.d.ts +0 -0
- /package/dist/agents/prompts/{commander → roles/commander}/forbidden.d.ts +0 -0
- /package/dist/agents/prompts/{commander → roles/commander}/identity.d.ts +0 -0
- /package/dist/agents/prompts/{commander → roles/commander}/required.d.ts +0 -0
- /package/dist/agents/prompts/{commander → roles/commander}/role.d.ts +0 -0
- /package/dist/agents/prompts/{planner → roles/planner}/forbidden.d.ts +0 -0
- /package/dist/agents/prompts/{planner/role.d.ts → roles/planner/identity.d.ts} +0 -0
- /package/dist/agents/prompts/{planner → roles/planner}/required.d.ts +0 -0
- /package/dist/agents/prompts/{reviewer → roles/reviewer}/forbidden.d.ts +0 -0
- /package/dist/agents/prompts/{reviewer/role.d.ts → roles/reviewer/identity.d.ts} +0 -0
- /package/dist/agents/prompts/{reviewer → roles/reviewer}/required.d.ts +0 -0
- /package/dist/agents/prompts/{worker → roles/worker}/forbidden.d.ts +0 -0
- /package/dist/agents/prompts/{worker/role.d.ts → roles/worker/identity.d.ts} +0 -0
- /package/dist/agents/prompts/{worker → roles/worker}/required.d.ts +0 -0
- /package/dist/agents/prompts/{common → tools}/ast.d.ts +0 -0
- /package/dist/agents/prompts/{common → tools}/lsp.d.ts +0 -0
- /package/dist/agents/prompts/{reviewer/lsp-tools.d.ts → tools/reviewer-lsp.d.ts} +0 -0
- /package/dist/agents/prompts/{worker/lsp-tools.d.ts → tools/worker-lsp.d.ts} +0 -0
- /package/dist/agents/prompts/{reviewer → verification}/async-monitoring.d.ts +0 -0
- /package/dist/agents/prompts/{reviewer/integration-testing.d.ts → verification/integration.d.ts} +0 -0
- /package/dist/agents/prompts/{common/verification.d.ts → verification/process.d.ts} +0 -0
- /package/dist/agents/prompts/{reviewer/verification.d.ts → verification/reviewer-process.d.ts} +0 -0
- /package/dist/agents/prompts/{reviewer/sync-verification.d.ts → verification/sync-check.d.ts} +0 -0
- /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
|
-
│
|
|
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
|
-
╱ ✅
|
|
78
|
-
╲ 🛡️
|
|
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 @@
|
|
|
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 "./
|
|
8
|
-
export * from "./
|
|
9
|
-
export * from "./
|
|
10
|
-
export * from "./
|
|
11
|
-
export * from "./
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
1
|
+
export declare const SEARCH_TOOLS: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const EVIDENCE_FORMAT: string;
|
|
@@ -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;
|