banana-code 1.3.0 → 1.3.1

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/banana.js CHANGED
@@ -81,7 +81,7 @@ let pendingHumanQuestion = null; // { resolve, question }
81
81
  // CONFIGURATION
82
82
  // =============================================================================
83
83
 
84
- const VERSION = '1.2.0';
84
+ const VERSION = '1.3.1';
85
85
  const { PAD } = require('./lib/borderRenderer'); // Single source of truth for left padding
86
86
  const DEBUG_DISABLED_VALUES = new Set(['0', 'false', 'off', 'no']);
87
87
  const NEXT_TURN_RESERVE_TOKENS = 1200;
@@ -548,7 +548,7 @@ const READ_ONLY_TOOL_NAMES = new Set(['read_file', 'list_files', 'search_code',
548
548
  const READ_ONLY_TOOLS = TOOLS.filter(t => READ_ONLY_TOOL_NAMES.has(t.function.name));
549
549
 
550
550
  const IGNORE_PATTERNS = ['node_modules', '.git', '.next', 'dist', 'build', '.banana'];
551
- const MAX_ITERATIONS = 30;
551
+ const MAX_ITERATIONS = 50;
552
552
  const WRITE_TOOL_NAMES = new Set(['create_file', 'edit_file', 'run_command']);
553
553
  const CONTEXT_TRIM_THRESHOLD = 0.60; // 60% of context limit - start trimming early
554
554
  const CONTEXT_TRIM_KEEP_RECENT = 6; // Keep last N messages intact
@@ -1310,10 +1310,10 @@ class AgenticRunner {
1310
1310
  const modelId = (options.model || '').toLowerCase();
1311
1311
  const isFrontier = /claude|gpt-4|gpt-5|o[1-9]-|o[1-9]$|chatgpt/.test(modelId) || modelId.includes('silverback');
1312
1312
  const readOnlyThresholds = isFrontier
1313
- ? { nudge: 8, escalate: 10, hardStop: 12 }
1313
+ ? { nudge: 15, escalate: 20, hardStop: 25 }
1314
1314
  : (modelId.includes('tamarin'))
1315
- ? { nudge: 3, escalate: 5, hardStop: 6 }
1316
- : /* mandrill, local, openrouter, or unknown */ { nudge: 5, escalate: 7, hardStop: 10 };
1315
+ ? { nudge: 6, escalate: 10, hardStop: 14 }
1316
+ : /* mandrill, local, openrouter, or unknown */ { nudge: 10, escalate: 15, hardStop: 20 };
1317
1317
  const writtenFiles = [];
1318
1318
  this._lastWrittenFiles = null;
1319
1319
  this._pendingSteers = [];
@@ -8,7 +8,7 @@ const { AgenticRunner, TOOLS, READ_ONLY_TOOLS } = require('./agenticRunner');
8
8
  const crypto = require('crypto');
9
9
 
10
10
  const MAX_DEPTH = 2;
11
- const DEFAULT_MAX_ITERATIONS_SUBAGENT = 25;
11
+ const DEFAULT_MAX_ITERATIONS_SUBAGENT = 40;
12
12
  const DEFAULT_TIMEOUT_CLOUD_MS = 120_000;
13
13
  const DEFAULT_TIMEOUT_LOCAL_MS = 300_000;
14
14
  const DEFAULT_MAX_TOKENS_SUBAGENT = 16384;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "banana-code",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "AI coding agent CLI powered by Monkey Models and remote providers (Anthropic, OpenAI, OpenRouter)",
5
5
  "main": "banana.js",
6
6
  "bin": {