arbiter-ai 1.1.1 → 1.1.2

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/router.js CHANGED
@@ -656,7 +656,7 @@ Your task now is to achieve COMPLETE UNDERSTANDING before any work begins. This
656
656
 
657
657
  1. **STUDY THE SCROLL** - Read every word. Understand the intent, not just the surface requirements.
658
658
 
659
- 2. **INVESTIGATE THE CODEBASE** - Use your read tools extensively. Understand the current state, architecture, patterns, and constraints. See what exists. See what's missing.
659
+ 2. **INVESTIGATE THE CODEBASE** - Use Explore agents (Task tool with subagent_type="Explore") to investigate the codebase. They can search, read files, and return summaries without consuming your context. Understand the current state, architecture, patterns, and constraints. See what exists. See what's missing.
660
660
 
661
661
  3. **IDENTIFY GAPS AND AMBIGUITIES** - What's unclear? What assumptions are being made? What edge cases aren't addressed? What could go wrong?
662
662
 
@@ -915,11 +915,10 @@ Take your time. This phase determines everything that follows.`
915
915
  while (true) {
916
916
  try {
917
917
  for await (const message of currentGenerator) {
918
- // Reset retries on each successful message
919
- retries = 0;
920
918
  await this.handleArbiterMessage(message);
921
919
  }
922
- // Successfully finished processing
920
+ // Successfully finished processing - reset retries only after full completion
921
+ retries = 0;
923
922
  break;
924
923
  }
925
924
  catch (error) {
@@ -1035,8 +1034,6 @@ Take your time. This phase determines everything that follows.`
1035
1034
  while (true) {
1036
1035
  try {
1037
1036
  for await (const message of currentGenerator) {
1038
- // Reset retries on each successful message
1039
- retries = 0;
1040
1037
  // Update activity time on ANY SDK message (including subagent results)
1041
1038
  // This prevents false timeouts when orchestrator delegates to Task subagents
1042
1039
  if (this.currentOrchestratorSession) {
@@ -1044,7 +1041,8 @@ Take your time. This phase determines everything that follows.`
1044
1041
  }
1045
1042
  await this.handleOrchestratorMessage(message);
1046
1043
  }
1047
- // Successfully finished processing
1044
+ // Successfully finished processing - reset retries only after full completion
1045
+ retries = 0;
1048
1046
  break;
1049
1047
  }
1050
1048
  catch (error) {
package/dist/sound.js CHANGED
@@ -83,7 +83,9 @@ function playLoop() {
83
83
  return;
84
84
  musicProcess = null;
85
85
  if (musicMode !== 'off') {
86
- playLoop();
86
+ // Use setImmediate to ensure async recursion - prevents stack overflow
87
+ // if play-sound calls callback synchronously on error (no audio player found)
88
+ setImmediate(playLoop);
87
89
  }
88
90
  });
89
91
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "arbiter-ai",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "Hierarchical AI orchestration system for extending Claude's effective context window while staying on task",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",