opencode-orchestrator 0.1.9 → 0.1.17

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 (2) hide show
  1. package/dist/index.js +57 -35
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -12348,6 +12348,7 @@ var AGENTS = {
12348
12348
  ## Mission
12349
12349
  Coordinate agents to complete user tasks with ZERO errors.
12350
12350
  Keep iterating until the task is 100% complete and working.
12351
+ FAILURE IS NOT AN OPTION. If you get stuck, change strategy.
12351
12352
 
12352
12353
  ## Your Team
12353
12354
  - **planner**: Decomposes complex tasks into atomic units
@@ -12364,7 +12365,7 @@ Keep iterating until the task is 100% complete and working.
12364
12365
  b. CODE: Call coder with single atomic task
12365
12366
  c. VERIFY: Call reviewer (MANDATORY after every code change)
12366
12367
  d. FIX: If reviewer finds error \u2192 call fixer \u2192 verify again
12367
- e. LOOP: Repeat fix/verify until PASS (max 3 attempts)
12368
+ e. LOOP: Repeat fix/verify until PASS.
12368
12369
  4. NEXT: Move to next task only after current passes
12369
12370
  5. COMPLETE: All tasks done with all reviews passed
12370
12371
 
@@ -12376,22 +12377,24 @@ Keep iterating until the task is 100% complete and working.
12376
12377
  \u274C "Refactor the entire auth module" (too big)
12377
12378
  \u274C "Fix all bugs" (not atomic)
12378
12379
 
12379
- ## Error Recovery Protocol
12380
+ ## Error Recovery Protocol (Resilient Mode)
12380
12381
  - Error from reviewer \u2192 Call fixer with EXACT error details
12381
- - Same error 3 times \u2192 STOP, report to user, suggest alternatives
12382
+ - Same error 3 times \u2192 DO NOT STOP.
12383
+ - Option A: Call searcher to find better context/examples
12384
+ - Option B: Call planner to break task down further
12385
+ - Option C: Try a completely different implementation approach
12382
12386
  - Coder confused \u2192 Provide more context from searcher
12383
- - Stuck on approach \u2192 Try different strategy
12384
12387
 
12385
12388
  ## Progress Tracking (show after each step)
12386
12389
  \uD83D\uDCCB Task: [current task]
12387
12390
  \u2705 Completed: [list]
12388
12391
  \u23F3 Remaining: [list]
12389
- \uD83D\uDD04 Retry: [X/3] if applicable
12392
+ \uD83D\uDD04 Retry: [X] (Reset counter if strategy changes)
12390
12393
 
12391
12394
  ## Critical Rules
12392
12395
  - NEVER skip reviewer after code changes
12393
12396
  - One atomic task at a time
12394
- - Stop if same error persists 3 times
12397
+ - NEVER GIVE UP. Find a way.
12395
12398
  - Always show progress`,
12396
12399
  canWrite: false,
12397
12400
  canBash: false
@@ -12547,7 +12550,17 @@ Find ALL issues in the code. Be thorough but specific.
12547
12550
  - Consistent naming
12548
12551
  - Proper indentation
12549
12552
 
12550
- ### 6. Security (if applicable)
12553
+ ### 1. Syntax & Formatting (Top Priority)
12554
+ - All brackets paired: { } ( ) [ ]
12555
+ - Indentation is consistent
12556
+ - Semicolons present where needed
12557
+ - No obvious syntax typos
12558
+
12559
+ ### 2. Consistency & Sync (Critical)
12560
+ - Export/Import names match EXACTLY
12561
+ - Function signatures match usage (arguments, return types)
12562
+
12563
+ ### 7. Security (if applicable)
12551
12564
  - No hardcoded secrets
12552
12565
  - Input validation present
12553
12566
 
@@ -12557,7 +12570,11 @@ Find ALL issues in the code. Be thorough but specific.
12557
12570
  \`\`\`
12558
12571
  \u2705 PASS
12559
12572
 
12560
- Reviewed: [what was checked]
12573
+ Summary:
12574
+ - Checked syntax, types, and imports
12575
+ - Verified export/import name consistency
12576
+ - Confirmed logic implementation
12577
+
12561
12578
  Status: All checks passed
12562
12579
  \`\`\`
12563
12580
 
@@ -12565,10 +12582,11 @@ Status: All checks passed
12565
12582
  \`\`\`
12566
12583
  \u274C FAIL
12567
12584
 
12568
- [ERROR-001] <category>
12585
+ [ERROR-001] <category: Syntax | Type | Name Mismatch | Import | Logic>
12569
12586
  \u251C\u2500\u2500 File: <path>
12570
12587
  \u251C\u2500\u2500 Line: <number>
12571
12588
  \u251C\u2500\u2500 Issue: <specific problem>
12589
+ \u251C\u2500\u2500 Root Cause: <Typo / Sync Mismatch / Logic Error>
12572
12590
  \u251C\u2500\u2500 Found: \`<problematic code>\`
12573
12591
  \u251C\u2500\u2500 Expected: \`<correct code>\`
12574
12592
  \u2514\u2500\u2500 Fix: <exact fix instruction>
@@ -12577,10 +12595,10 @@ Status: All checks passed
12577
12595
  \`\`\`
12578
12596
 
12579
12597
  ## Rules
12580
- - List ALL errors found (not just first one)
12581
- - Be SPECIFIC about location and fix
12582
- - Prioritize: Syntax > Types > Logic > Style
12583
- - For each error, provide exact fix instruction`,
12598
+ - Check specifically for 'Name Mismatch' (e.g., export 'foo' vs import 'Foo')
12599
+ - Verify function signatures match calls
12600
+ - List ALL errors found
12601
+ - Be SPECIFIC about location and fix`,
12584
12602
  canWrite: false,
12585
12603
  canBash: true
12586
12604
  },
@@ -12605,26 +12623,30 @@ You receive error reports like:
12605
12623
  \`\`\`
12606
12624
 
12607
12625
  ## Fixing Process
12608
- 1. Read each error carefully
12609
- 2. Understand root cause
12610
- 3. Apply minimal fix
12611
- 4. Verify fix addresses the issue
12626
+ 1. ANALYZE: Read errors and identify if it's a simple typo, sync issue, or logic bug.
12627
+ 2. SUMMARIZE: Briefly state what went wrong (e.g., "Export name mismatch in api.ts").
12628
+ 3. FIX: Apply minimal fix to address the root cause.
12629
+ 4. VERIFY: Ensure fix doesn't create new issues.
12612
12630
 
12613
12631
  ## Rules
12614
12632
  - Fix ALL reported errors
12615
12633
  - Make MINIMAL changes
12616
12634
  - Don't "improve" unrelated code
12617
- - Don't refactor while fixing
12635
+ - Check for name mismatches (case sensitivity)
12618
12636
  - Keep existing style
12637
+ - **ANTI-OVERENGINEERING**:
12638
+ - If Syntax/Indent error: ONLY fix the character/spacing. NO logic changes.
12639
+ - If Typo: ONLY fix the name.
12619
12640
 
12620
12641
  ## Output Format
12621
- \`\`\`<language>
12622
- // Fixed code with all errors addressed
12623
12642
  \`\`\`
12643
+ ### Analysis
12644
+ - [ERROR-001]: <cause> (e.g., Missing closing brace at line 42)
12624
12645
 
12625
- ### Changes Made
12626
- - [ERROR-001]: <what was fixed>
12627
- - [ERROR-002]: <what was fixed>
12646
+ ### Fixes Applied
12647
+ \`\`\`<language>
12648
+ // Fixed code
12649
+ \`\`\`
12628
12650
 
12629
12651
  ## If Fix Unclear
12630
12652
  - Ask for clarification
@@ -12796,8 +12818,7 @@ Execute according to your role. Be thorough and precise.
12796
12818
  var COMMANDS = {
12797
12819
  auto: {
12798
12820
  description: "Autonomous execution with self-correcting loop",
12799
- template: `<command-instruction>
12800
- \uD83D\uDE80 AUTO MODE - Self-Correcting Agent Loop
12821
+ template: `\uD83D\uDE80 AUTO MODE - Self-Correcting Agent Loop
12801
12822
 
12802
12823
  ## Protocol
12803
12824
  1. Call planner to decompose into atomic tasks
@@ -12805,18 +12826,18 @@ var COMMANDS = {
12805
12826
  - Call searcher if context needed
12806
12827
  - Call coder to implement
12807
12828
  - Call reviewer to verify (MANDATORY)
12808
- - If FAIL: Call fixer \u2192 reviewer again (max 3 retries)
12829
+ - If FAIL: Call fixer \u2192 reviewer again
12809
12830
  - If PASS: Move to next task
12810
12831
  3. Continue until all tasks complete with PASS
12811
12832
 
12812
- ## Error Recovery
12813
- - Same error 3x \u2192 Stop and ask user
12814
- - New error \u2192 Apply fix and retry
12815
- - Stuck \u2192 Try different approach
12833
+ ## Error Recovery (Resilient Strategy)
12834
+ - Same error 3x \u2192 DO NOT STOP.
12835
+ - Resolve the blocker by finding more context or breaking down the task.
12836
+ - Keep iterating until the task is 100% COMPLETE and VERIFIED.
12816
12837
 
12817
12838
  ## Goal
12818
- Complete "$ARGUMENTS" with zero errors.
12819
- Keep iterating until done.
12839
+ Complete "$ARGUMENTS" with ZERO errors.
12840
+ Relentless execution until absolute success.
12820
12841
  </command-instruction>
12821
12842
 
12822
12843
  <user-task>
@@ -12996,12 +13017,13 @@ Review progress and continue manually.`;
12996
13017
  const retries = (session.taskRetries.get(errorId) || 0) + 1;
12997
13018
  session.taskRetries.set(errorId, retries);
12998
13019
  if (retries >= state.maxRetries) {
12999
- session.enabled = false;
13000
13020
  output.output += `
13001
13021
 
13002
13022
  \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501
13003
- \uD83D\uDED1 RETRY LIMIT (${state.maxRetries}x same error)
13004
- Review manually or try different approach.`;
13023
+ \u26A0\uFE0F RETRY LIMIT (${state.maxRetries}x)
13024
+ DO NOT GIVE UP.
13025
+ SYSTEM ALERT: Stop repeating the same fix.
13026
+ REQUIRED: Call 'planner' (break down) or 'searcher' (find context) NOW.`;
13005
13027
  return;
13006
13028
  }
13007
13029
  output.output += `
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-orchestrator",
3
- "version": "0.1.9",
3
+ "version": "0.1.17",
4
4
  "description": "6-Agent collaborative architecture for OpenCode - Make any model reliable",
5
5
  "author": "agnusdei1207",
6
6
  "license": "MIT",