opencode-orchestrator 1.0.17 → 1.0.20

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 CHANGED
@@ -96,8 +96,8 @@ MSVP ensures continuous integration integrity by decoupling verification from th
96
96
  ╚═══════════════════╤═══════════════════╝
97
97
 
98
98
  ══════════════════════════▼══════════════════════════
99
- ║ 🚀 PHASE 0: DISCOVERY SWARM (Parallel)
100
- ══════════════════════════════════════════════════════
99
+ ║ 🚀 PHASE 0: DISCOVERY SWARM (Parallel)
100
+ ═════════════════════════════════════════════════════
101
101
  │ │ │ │
102
102
  ▼ Scout ▼ Scout ▼ Scout ▼ Scout
103
103
  [Structure] [Stack] [Docs] [Infra]
package/dist/index.js CHANGED
@@ -910,13 +910,13 @@ var PHILOSOPHY_LEARN_PRINCIPLE = "LEARN = DOCUMENT: What you discover, you recor
910
910
  // src/shared/prompt/constants/mandates.ts
911
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
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):
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}\`.
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.NAME}]**: ${SCOUT_STRUCTURE.PROMPT} (To ${AGENT_NAMES.PLANNER})
915
+ - **[${SCOUT_STACK.NAME}]**: ${SCOUT_STACK.PROMPT} (To ${AGENT_NAMES.PLANNER})
916
+ - **[${SCOUT_DOCS.NAME}]**: ${SCOUT_DOCS.PROMPT} (To ${AGENT_NAMES.PLANNER})
917
+ - **[${SCOUT_INFRA.NAME}]**: ${SCOUT_INFRA.PROMPT} (To ${AGENT_NAMES.PLANNER})
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
920
 
921
921
  [CRITICAL]: Sequential execution (running tools yourself) is a mission failure. Launch the swarm NOW.`;
922
922
  var PHASE_1_THINK_ANALYSIS = `### 1.1 MISSION SCOPE
@@ -928,22 +928,45 @@ var PHASE_1_THINK_ANALYSIS = `### 1.1 MISSION SCOPE
928
928
  - Identify sequential dependencies vs parallel opportunities.
929
929
 
930
930
  ### 1.3 DELEGATION
931
- - Choose best agent for each task (\${AGENT_NAMES.PLANNER}/\${AGENT_NAMES.WORKER}/\${AGENT_NAMES.REVIEWER}).
931
+ - Choose best agent for each task (${AGENT_NAMES.PLANNER}/${AGENT_NAMES.WORKER}/${AGENT_NAMES.REVIEWER}).
932
932
  - Provide focused context for each.
933
933
 
934
934
  ### 1.4 RISK ASSESSMENT
935
935
  - Identify high-risk parts and fallback plans.
936
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.
938
- 2. **STAGE 2 (Integration)**: \${AGENT_NAMES.REVIEWER} validates cross-module consistency.
937
+ var PHASE_5_MSVP = `1. **STAGE 1 (Unit)**: Workers MUST trigger ${AGENT_NAMES.REVIEWER} for unit verification immediately upon completion.
938
+ 2. **STAGE 2 (Integration)**: ${AGENT_NAMES.REVIEWER} validates cross-module consistency.
939
939
  3. **E2E VALIDATION**: Run full system tests and build pass check.
940
- 4. **SEAL GATE**: No SEALED output until \${PATHS.TODO} is all [x] and zero issues remain.`;
940
+ 4. **SEAL GATE**: No SEALED output until ${PATHS.TODO} is all [x] and zero issues remain.`;
941
941
  var HPFA_RULES = `1. **Fractal Spawning**: Workers spawn sub-workers for complex files/modules.
942
942
  2. **Speculative Racing**: Launch multiple strategies in parallel (mode: race) for uncertainty.
943
943
  3. **Asynchronous Batching**: Group non-dependent tool calls to trigger host-side parallelism.
944
944
  4. **Barrier-Sync Pipeline**: Reviewers start Unit Review (Stage 1) while other workers still run.
945
945
  5. **Real-time Brain Sync**: Parallel sessions share public interfaces via shared task logs.`;
946
946
 
947
+ // src/shared/prompt/constants/scouts.ts
948
+ var SCOUT_LABEL = "Scout";
949
+ var SCOUT_STRUCTURE = {
950
+ ID: "STRUCTURE",
951
+ NAME: `${SCOUT_LABEL}: Structure`,
952
+ PROMPT: "Analyze the project folder structure. Locate source code (src, lib), tests, and documentation directories. Map out the tree at depth 2-3."
953
+ };
954
+ var SCOUT_STACK = {
955
+ ID: "STACK",
956
+ NAME: `${SCOUT_LABEL}: Stack`,
957
+ PROMPT: "Identify the technology stack. Parse package.json, Cargo.toml, go.mod, or pyproject.toml. Determine build and test commands."
958
+ };
959
+ var SCOUT_DOCS = {
960
+ ID: "DOCS",
961
+ NAME: `${SCOUT_LABEL}: Docs`,
962
+ PROMPT: "Digest the project documentation. Read README.md, CONTRIBUTING.md, and any files in docs/ to understand the core architecture and mission."
963
+ };
964
+ var SCOUT_INFRA = {
965
+ ID: "INFRA",
966
+ NAME: `${SCOUT_LABEL}: Infra`,
967
+ PROMPT: "Detect infrastructure and environment configs. Search for Dockerfiles, CI/CD workflows (.github, .gitlab), and environment variable templates."
968
+ };
969
+
947
970
  // src/core/agents/consts/task-status.const.ts
948
971
  var TASK_STATUS = {
949
972
  PENDING: STATUS_LABEL.PENDING,
@@ -5,3 +5,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
7
  export { PHASE_0_SCOUT_SWARM, PHASE_1_THINK_ANALYSIS, PHASE_5_MSVP, HPFA_RULES } from "./mandates.js";
8
+ export { SCOUT_LABEL, SCOUT_STRUCTURE, SCOUT_STACK, SCOUT_DOCS, SCOUT_INFRA } from "./scouts.js";
@@ -8,15 +8,15 @@
8
8
  * Phase 0: Discovery Swarm Mandate
9
9
  * Force parallel execution of scouts to maximize velocity.
10
10
  */
11
- export declare const PHASE_0_SCOUT_SWARM = "**Mandatory Parallel Initialization**: DO NOT run discovery tools (ls, grep, find) yourself. Your job is to ORCHESTRATE and synthesize results. \n\n1. **LAUNCH Parallel Scouts**: In your VERY FIRST response, you must output ALL of the following `${TOOL_NAMES.DELEGATE_TASK}` calls simultaneously (background: true):\n - **[Scout: Structure]**: Map the project tree and locate src/tests/docs.\n - **[Scout: Stack]**: Identify language, frameworks, and build/test commands.\n - **[Scout: Docs]**: Digest README.md and core system architecture.\n - **[Scout: Infra]**: Detect CI/CD, Docker, and environment configuration.\n2. **PARALLEL SYNC**: Use `${TOOL_NAMES.LIST_TASKS}` to monitor progress. \n3. **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}`.\n\n[CRITICAL]: Sequential execution (running tools yourself) is a mission failure. Launch the swarm NOW.";
11
+ export declare const PHASE_0_SCOUT_SWARM: string;
12
12
  /**
13
13
  * Phase 1: THINK (Strategic Mandate)
14
14
  */
15
- export declare const PHASE_1_THINK_ANALYSIS = "### 1.1 MISSION SCOPE\n- What is the FULL scope? What are the success criteria?\n- What does the user REALLY want?\n\n### 1.2 DECOMPOSITION\n- Break into INDEPENDENT sub-tasks.\n- Identify sequential dependencies vs parallel opportunities.\n\n### 1.3 DELEGATION\n- Choose best agent for each task (${AGENT_NAMES.PLANNER}/${AGENT_NAMES.WORKER}/${AGENT_NAMES.REVIEWER}).\n- Provide focused context for each.\n\n### 1.4 RISK ASSESSMENT\n- Identify high-risk parts and fallback plans.\n- If agent fails \u2192 See RECOVERY section.";
15
+ export declare const PHASE_1_THINK_ANALYSIS: string;
16
16
  /**
17
17
  * Phase 5: MSVP (Multi-Stage Verification Pipeline)
18
18
  */
19
- export declare const PHASE_5_MSVP = "1. **STAGE 1 (Unit)**: Workers MUST trigger ${AGENT_NAMES.REVIEWER} for unit verification immediately upon completion.\n2. **STAGE 2 (Integration)**: ${AGENT_NAMES.REVIEWER} validates cross-module consistency.\n3. **E2E VALIDATION**: Run full system tests and build pass check.\n4. **SEAL GATE**: No SEALED output until ${PATHS.TODO} is all [x] and zero issues remain.";
19
+ export declare const PHASE_5_MSVP: string;
20
20
  /**
21
21
  * HPFA (Hyper-Parallel Fractal Architecture) Rules
22
22
  */
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Discovery Scouters - Phase 0 Specialized Roles
3
+ */
4
+ /**
5
+ * Basic identifier for discovery agents
6
+ */
7
+ export declare const SCOUT_LABEL = "Scout";
8
+ export declare const SCOUT_STRUCTURE: {
9
+ readonly ID: "STRUCTURE";
10
+ readonly NAME: "Scout: Structure";
11
+ readonly PROMPT: "Analyze the project folder structure. Locate source code (src, lib), tests, and documentation directories. Map out the tree at depth 2-3.";
12
+ };
13
+ export declare const SCOUT_STACK: {
14
+ readonly ID: "STACK";
15
+ readonly NAME: "Scout: Stack";
16
+ readonly PROMPT: "Identify the technology stack. Parse package.json, Cargo.toml, go.mod, or pyproject.toml. Determine build and test commands.";
17
+ };
18
+ export declare const SCOUT_DOCS: {
19
+ readonly ID: "DOCS";
20
+ readonly NAME: "Scout: Docs";
21
+ readonly PROMPT: "Digest the project documentation. Read README.md, CONTRIBUTING.md, and any files in docs/ to understand the core architecture and mission.";
22
+ };
23
+ export declare const SCOUT_INFRA: {
24
+ readonly ID: "INFRA";
25
+ readonly NAME: "Scout: Infra";
26
+ readonly PROMPT: "Detect infrastructure and environment configs. Search for Dockerfiles, CI/CD workflows (.github, .gitlab), and environment variable templates.";
27
+ };
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.17",
5
+ "version": "1.0.20",
6
6
  "author": "agnusdei1207",
7
7
  "license": "MIT",
8
8
  "repository": {