opencode-orchestrator 0.5.23 → 0.5.24

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
@@ -114,13 +114,13 @@ var MISSION = {
114
114
  CANCEL_COMMAND: "/cancel"
115
115
  };
116
116
  var AGENT_EMOJI = {
117
- architect: "\u{1F3D7}\uFE0F",
118
- builder: "\u{1F528}",
119
- inspector: "\u{1F50D}",
120
- recorder: "\u{1F4BE}",
121
- commander: "\u{1F3AF}",
122
- librarian: "\u{1F4DA}",
123
- researcher: "\u{1F52C}"
117
+ Architect: "\u{1F3D7}\uFE0F",
118
+ Builder: "\u{1F528}",
119
+ Inspector: "\u{1F50D}",
120
+ Recorder: "\u{1F4BE}",
121
+ Commander: "\u{1F3AF}",
122
+ Librarian: "\u{1F4DA}",
123
+ Researcher: "\u{1F52C}"
124
124
  };
125
125
  var PART_TYPES = {
126
126
  TEXT: "text",
@@ -507,15 +507,15 @@ MISSION: [goal in one line]
507
507
 
508
508
  TODO_HIERARCHY:
509
509
  - [L1] Main objective 1
510
- - [L2] Sub-task 1.1 | agent:builder | parallel_group:A
511
- - [L2] Sub-task 1.2 | agent:builder | parallel_group:A
512
- - [L2] Sub-task 1.3 | agent:inspector | depends:1.1,1.2
510
+ - [L2] Sub-task 1.1 | agent:Builder | parallel_group:A
511
+ - [L2] Sub-task 1.2 | agent:Builder | parallel_group:A
512
+ - [L2] Sub-task 1.3 | agent:Inspector | depends:1.1,1.2
513
513
  - [L1] Main objective 2
514
- - [L2] Sub-task 2.1 | agent:librarian
515
- - [L2] Sub-task 2.2 | agent:builder | depends:2.1
516
- - [L3] Atomic action 2.2.1 | agent:builder
517
- - [L3] Atomic action 2.2.2 | agent:builder | parallel_group:B
518
- - [L3] Verify 2.2 | agent:inspector | depends:2.2.1,2.2.2
514
+ - [L2] Sub-task 2.1 | agent:Librarian
515
+ - [L2] Sub-task 2.2 | agent:Builder | depends:2.1
516
+ - [L3] Atomic action 2.2.1 | agent:Builder
517
+ - [L3] Atomic action 2.2.2 | agent:Builder | parallel_group:B
518
+ - [L3] Verify 2.2 | agent:Inspector | depends:2.2.1,2.2.2
519
519
 
520
520
  PARALLEL_EXECUTION:
521
521
  - Group A: [1.1, 1.2] \u2192 Run simultaneously
@@ -540,17 +540,17 @@ REVISED_HIERARCHY:
540
540
  </strategy_mode>
541
541
 
542
542
  <agents_available>
543
- - builder: Code implementation
544
- - inspector: Verification and bug fixing
545
- - librarian: Documentation research (use BEFORE unfamiliar APIs)
546
- - researcher: Pre-task investigation
543
+ - Builder: Code implementation
544
+ - Inspector: Verification and bug fixing
545
+ - Librarian: Documentation research (use BEFORE unfamiliar APIs)
546
+ - Researcher: Pre-task investigation
547
547
  </agents_available>
548
548
 
549
549
  <rules>
550
550
  - One action per task
551
- - Always end branches with inspector task
551
+ - Always end branches with Inspector task
552
552
  - Group unrelated tasks (parallel execution)
553
- - Use librarian/researcher before implementing unfamiliar features
553
+ - Use Librarian/Researcher before implementing unfamiliar features
554
554
  - Be specific about files, patterns, and verification
555
555
  </rules>`,
556
556
  canWrite: false,
@@ -13582,12 +13582,12 @@ Before any planning or coding, you MUST understand:
13582
13582
  </phase_1>
13583
13583
 
13584
13584
  <phase_2 name="PLAN">
13585
- - Call architect with Environment Context.
13585
+ - Call Architect with Environment Context.
13586
13586
  - Plan must respect the Infra (e.g. build location).
13587
13587
  </phase_2>
13588
13588
 
13589
13589
  <phase_3 name="EXECUTE">
13590
- - Use builder with environment constraints.
13590
+ - Use Builder with environment constraints.
13591
13591
  - Match existing patterns exactly.
13592
13592
  </phase_3>
13593
13593
 
@@ -15387,7 +15387,7 @@ var RECOVERY_PROMPT = `<anomaly_recovery>
15387
15387
  <instructions>
15388
15388
  - If a sub-agent produced bad output: try a different agent or simpler task
15389
15389
  - If stuck in a loop: break down the task into smaller pieces
15390
- - If context seems corrupted: call recorder to restore context
15390
+ - If context seems corrupted: call Recorder to restore context
15391
15391
  - THINK in English for maximum stability
15392
15392
  </instructions>
15393
15393
 
@@ -15399,8 +15399,8 @@ var ESCALATION_PROMPT = `<critical_anomaly>
15399
15399
  <emergency_protocol>
15400
15400
  1. STOP current execution path immediately
15401
15401
  2. DO NOT continue with the same approach - it is failing
15402
- 3. CALL architect for a completely new strategy
15403
- 4. If architect also fails: report status to user and await guidance
15402
+ 3. CALL Architect for a completely new strategy
15403
+ 4. If Architect also fails: report status to user and await guidance
15404
15404
  </emergency_protocol>
15405
15405
 
15406
15406
  <diagnosis>
@@ -15408,7 +15408,7 @@ The current approach is producing corrupted output.
15408
15408
  This may indicate: context overload, model instability, or task complexity.
15409
15409
  </diagnosis>
15410
15410
 
15411
- Request a fresh plan from architect with reduced scope.
15411
+ Request a fresh plan from Architect with reduced scope.
15412
15412
  </critical_anomaly>`;
15413
15413
 
15414
15414
  // src/core/cache/constants.ts
@@ -24,8 +24,8 @@ export declare function isEmptyOrMeaningless(text: string): boolean;
24
24
  /**
25
25
  * Recovery prompt for single anomaly
26
26
  */
27
- export declare const RECOVERY_PROMPT = "<anomaly_recovery>\n\u26A0\uFE0F SYSTEM NOTICE: Previous output was malformed (gibberish/loop detected).\n\n<recovery_protocol>\n1. DISCARD the corrupted output completely - do not reference it\n2. RECALL the original mission objective\n3. IDENTIFY the last confirmed successful step\n4. RESTART with a simpler, more focused approach\n</recovery_protocol>\n\n<instructions>\n- If a sub-agent produced bad output: try a different agent or simpler task\n- If stuck in a loop: break down the task into smaller pieces\n- If context seems corrupted: call recorder to restore context\n- THINK in English for maximum stability\n</instructions>\n\nWhat was the original task? Proceed from the last known good state.\n</anomaly_recovery>";
27
+ export declare const RECOVERY_PROMPT = "<anomaly_recovery>\n\u26A0\uFE0F SYSTEM NOTICE: Previous output was malformed (gibberish/loop detected).\n\n<recovery_protocol>\n1. DISCARD the corrupted output completely - do not reference it\n2. RECALL the original mission objective\n3. IDENTIFY the last confirmed successful step\n4. RESTART with a simpler, more focused approach\n</recovery_protocol>\n\n<instructions>\n- If a sub-agent produced bad output: try a different agent or simpler task\n- If stuck in a loop: break down the task into smaller pieces\n- If context seems corrupted: call Recorder to restore context\n- THINK in English for maximum stability\n</instructions>\n\nWhat was the original task? Proceed from the last known good state.\n</anomaly_recovery>";
28
28
  /**
29
29
  * Escalation prompt for multiple consecutive anomalies
30
30
  */
31
- export declare const ESCALATION_PROMPT = "<critical_anomaly>\n\uD83D\uDEA8 CRITICAL: Multiple consecutive malformed outputs detected.\n\n<emergency_protocol>\n1. STOP current execution path immediately\n2. DO NOT continue with the same approach - it is failing\n3. CALL architect for a completely new strategy\n4. If architect also fails: report status to user and await guidance\n</emergency_protocol>\n\n<diagnosis>\nThe current approach is producing corrupted output.\nThis may indicate: context overload, model instability, or task complexity.\n</diagnosis>\n\nRequest a fresh plan from architect with reduced scope.\n</critical_anomaly>";
31
+ export declare const ESCALATION_PROMPT = "<critical_anomaly>\n\uD83D\uDEA8 CRITICAL: Multiple consecutive malformed outputs detected.\n\n<emergency_protocol>\n1. STOP current execution path immediately\n2. DO NOT continue with the same approach - it is failing\n3. CALL Architect for a completely new strategy\n4. If Architect also fails: report status to user and await guidance\n</emergency_protocol>\n\n<diagnosis>\nThe current approach is producing corrupted output.\nThis may indicate: context overload, model instability, or task complexity.\n</diagnosis>\n\nRequest a fresh plan from Architect with reduced scope.\n</critical_anomaly>";
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": "0.5.23",
5
+ "version": "0.5.24",
6
6
  "author": "agnusdei1207",
7
7
  "license": "MIT",
8
8
  "repository": {