opencode-orchestrator 1.0.16 → 1.0.18
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/dist/index.js
CHANGED
|
@@ -908,22 +908,18 @@ var PHILOSOPHY_QUOTE = "Like an astronaut landing on unknown planets \u2014 neve
|
|
|
908
908
|
var PHILOSOPHY_LEARN_PRINCIPLE = "LEARN = DOCUMENT: What you discover, you record. Your learnings become the team's knowledge.";
|
|
909
909
|
|
|
910
910
|
// src/shared/prompt/constants/mandates.ts
|
|
911
|
-
var
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
/**
|
|
924
|
-
* Phase 1: THINK (Strategic Mandate)
|
|
925
|
-
*/
|
|
926
|
-
PHASE_1_THINK_ANALYSIS: `### 1.1 MISSION SCOPE
|
|
911
|
+
var PHASE_0_SCOUT_SWARM = `**Mandatory Parallel Initialization**: DO NOT run discovery tools (ls, grep, find) yourself. Your job is to ORCHESTRATE and synthesize results.
|
|
912
|
+
|
|
913
|
+
1. **LAUNCH Parallel Scouts**: In your VERY FIRST response, you must output ALL of the following \`${TOOL_NAMES.DELEGATE_TASK}\` calls simultaneously (background: true) for:
|
|
914
|
+
- **[Scout: Structure]**: Map the project tree and locate src/tests/docs.
|
|
915
|
+
- **[Scout: Stack]**: Identify language, frameworks, and build/test commands.
|
|
916
|
+
- **[Scout: Docs]**: Digest README.md and core system architecture.
|
|
917
|
+
- **[Scout: Infra]**: Detect CI/CD, Docker, and environment configuration.
|
|
918
|
+
2. **PARALLEL SYNC**: Use \`${TOOL_NAMES.LIST_TASKS}\` to monitor progress.
|
|
919
|
+
3. **ONE-PASS INGESTION**: Once all scouts show DONE, use \`${TOOL_NAMES.GET_TASK_RESULT}\` for ALL scouts in a single turn to consolidate findings into \`${PATHS.CONTEXT}\`.
|
|
920
|
+
|
|
921
|
+
[CRITICAL]: Sequential execution (running tools yourself) is a mission failure. Launch the swarm NOW.`;
|
|
922
|
+
var PHASE_1_THINK_ANALYSIS = `### 1.1 MISSION SCOPE
|
|
927
923
|
- What is the FULL scope? What are the success criteria?
|
|
928
924
|
- What does the user REALLY want?
|
|
929
925
|
|
|
@@ -937,23 +933,16 @@ var MANDATES = {
|
|
|
937
933
|
|
|
938
934
|
### 1.4 RISK ASSESSMENT
|
|
939
935
|
- Identify high-risk parts and fallback plans.
|
|
940
|
-
- If agent fails \u2192 See RECOVERY section
|
|
941
|
-
|
|
942
|
-
* Phase 5: MSVP (Multi-Stage Verification Pipeline)
|
|
943
|
-
*/
|
|
944
|
-
PHASE_5_MSVP: `1. **STAGE 1 (Unit)**: Workers MUST trigger ${AGENT_NAMES.REVIEWER} for unit verification immediately upon completion.
|
|
936
|
+
- If agent fails \u2192 See RECOVERY section.`;
|
|
937
|
+
var PHASE_5_MSVP = `1. **STAGE 1 (Unit)**: Workers MUST trigger ${AGENT_NAMES.REVIEWER} for unit verification immediately upon completion.
|
|
945
938
|
2. **STAGE 2 (Integration)**: ${AGENT_NAMES.REVIEWER} validates cross-module consistency.
|
|
946
939
|
3. **E2E VALIDATION**: Run full system tests and build pass check.
|
|
947
|
-
4. **SEAL GATE**: No SEALED output until ${PATHS.TODO} is all [x] and zero issues remain
|
|
948
|
-
|
|
949
|
-
* HPFA (Hyper-Parallel Fractal Architecture) Rules
|
|
950
|
-
*/
|
|
951
|
-
HPFA_RULES: `1. **Fractal Spawning**: Workers spawn sub-workers for complex files/modules.
|
|
940
|
+
4. **SEAL GATE**: No SEALED output until ${PATHS.TODO} is all [x] and zero issues remain.`;
|
|
941
|
+
var HPFA_RULES = `1. **Fractal Spawning**: Workers spawn sub-workers for complex files/modules.
|
|
952
942
|
2. **Speculative Racing**: Launch multiple strategies in parallel (mode: race) for uncertainty.
|
|
953
943
|
3. **Asynchronous Batching**: Group non-dependent tool calls to trigger host-side parallelism.
|
|
954
944
|
4. **Barrier-Sync Pipeline**: Reviewers start Unit Review (Stage 1) while other workers still run.
|
|
955
|
-
5. **Real-time Brain Sync**: Parallel sessions share public interfaces via shared task logs
|
|
956
|
-
};
|
|
945
|
+
5. **Real-time Brain Sync**: Parallel sessions share public interfaces via shared task logs.`;
|
|
957
946
|
|
|
958
947
|
// src/core/agents/consts/task-status.const.ts
|
|
959
948
|
var TASK_STATUS = {
|
|
@@ -13820,7 +13809,7 @@ var HYPER_PARALLEL_ENFORCEMENT = `${PROMPT_TAGS.QUALITY_CHECKLIST.open}
|
|
|
13820
13809
|
|
|
13821
13810
|
To achieve maximum velocity, you MUST leverage these advanced parallel execution patterns:
|
|
13822
13811
|
|
|
13823
|
-
${
|
|
13812
|
+
${HPFA_RULES}
|
|
13824
13813
|
|
|
13825
13814
|
[CRITICAL]: Sequential execution when parallel is possible is a mission failure.
|
|
13826
13815
|
${PROMPT_TAGS.QUALITY_CHECKLIST.close}`;
|
|
@@ -13929,12 +13918,12 @@ ${PROMPT_TAGS.TOOLS.close}`;
|
|
|
13929
13918
|
// src/agents/prompts/commander/execution.ts
|
|
13930
13919
|
var COMMANDER_EXECUTION = `${PROMPT_TAGS.EXECUTION_STRATEGY.open}
|
|
13931
13920
|
## ${PHASES.PHASE_0.ID}: ${PHASES.PHASE_0.NAME} (Cognitive Velocity Launch)
|
|
13932
|
-
${
|
|
13921
|
+
${PHASE_0_SCOUT_SWARM}
|
|
13933
13922
|
|
|
13934
13923
|
## ${PHASES.PHASE_1.ID}: ${PHASES.PHASE_1.NAME} (Mandatory - Never Skip!)
|
|
13935
13924
|
**THINK FIRST**: As ${AGENT_NAMES.COMMANDER}, think about ORCHESTRATION and synthesis before action.
|
|
13936
13925
|
|
|
13937
|
-
${
|
|
13926
|
+
${PHASE_1_THINK_ANALYSIS}
|
|
13938
13927
|
|
|
13939
13928
|
**ANTI-PATTERNS**: Sequential execution when parallel is possible. Doing work yourself instead of delegating. Starting without clear decomposition or intellectual synthesis.
|
|
13940
13929
|
|
|
@@ -13956,7 +13945,7 @@ ${AGENT_NAMES.PLANNER} creates ${PATHS.TODO} with parallel groups
|
|
|
13956
13945
|
5. REPEAT until all [ ] become [x]
|
|
13957
13946
|
|
|
13958
13947
|
## ${PHASES.PHASE_5.ID}: ${PHASES.PHASE_5.NAME}
|
|
13959
|
-
${
|
|
13948
|
+
${PHASE_5_MSVP}
|
|
13960
13949
|
|
|
13961
13950
|
## ${PHASES.PHASE_6.ID}: ${PHASES.PHASE_6.NAME}
|
|
13962
13951
|
When ALL conditions met, output ${MISSION_SEAL.PATTERN}
|
|
@@ -14656,7 +14645,7 @@ ADAPTIVE IMPLEMENTATION WORKFLOW
|
|
|
14656
14645
|
9. Add tests matching project's test style
|
|
14657
14646
|
|
|
14658
14647
|
## Phase 5: VERIFY & MSVP STAGE 1
|
|
14659
|
-
${
|
|
14648
|
+
${PHASE_5_MSVP}
|
|
14660
14649
|
|
|
14661
14650
|
[ACTION]: Use ${TOOL_NAMES.DELEGATE_TASK} to trigger ${AGENT_NAMES.REVIEWER} for Unit Verification before reporting DONE.
|
|
14662
14651
|
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
export { PROMPT_TAGS, wrapTag } from "./tags.js";
|
|
5
5
|
export { WORK_STATUS } from "./status.js";
|
|
6
6
|
export { PHILOSOPHY_PHASES, PHILOSOPHY_TAGLINE, PHILOSOPHY_QUOTE, PHILOSOPHY_LEARN_PRINCIPLE, EXECUTION_CYCLE, EXECUTION_CYCLE_STEPS, } from "./philosophy.js";
|
|
7
|
-
export {
|
|
7
|
+
export { PHASE_0_SCOUT_SWARM, PHASE_1_THINK_ANALYSIS, PHASE_5_MSVP, HPFA_RULES } from "./mandates.js";
|
|
@@ -4,21 +4,20 @@
|
|
|
4
4
|
* These constants define the non-negotiable architectural requirements
|
|
5
5
|
* that ensure the orchestrator operates according to the verified diagram.
|
|
6
6
|
*/
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
7
|
+
/**
|
|
8
|
+
* Phase 0: Discovery Swarm Mandate
|
|
9
|
+
* Force parallel execution of scouts to maximize velocity.
|
|
10
|
+
*/
|
|
11
|
+
export declare const PHASE_0_SCOUT_SWARM: string;
|
|
12
|
+
/**
|
|
13
|
+
* Phase 1: THINK (Strategic Mandate)
|
|
14
|
+
*/
|
|
15
|
+
export declare const PHASE_1_THINK_ANALYSIS: string;
|
|
16
|
+
/**
|
|
17
|
+
* Phase 5: MSVP (Multi-Stage Verification Pipeline)
|
|
18
|
+
*/
|
|
19
|
+
export declare const PHASE_5_MSVP: string;
|
|
20
|
+
/**
|
|
21
|
+
* HPFA (Hyper-Parallel Fractal Architecture) Rules
|
|
22
|
+
*/
|
|
23
|
+
export declare const HPFA_RULES = "1. **Fractal Spawning**: Workers spawn sub-workers for complex files/modules.\n2. **Speculative Racing**: Launch multiple strategies in parallel (mode: race) for uncertainty.\n3. **Asynchronous Batching**: Group non-dependent tool calls to trigger host-side parallelism.\n4. **Barrier-Sync Pipeline**: Reviewers start Unit Review (Stage 1) while other workers still run.\n5. **Real-time Brain Sync**: Parallel sessions share public interfaces via shared task logs.";
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "opencode-orchestrator",
|
|
3
3
|
"displayName": "OpenCode Orchestrator",
|
|
4
4
|
"description": "Distributed Cognitive Architecture for OpenCode. Turns simple prompts into specialized multi-agent workflows (Planner, Coder, Reviewer).",
|
|
5
|
-
"version": "1.0.
|
|
5
|
+
"version": "1.0.18",
|
|
6
6
|
"author": "agnusdei1207",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"repository": {
|