@openagents-org/agent-launcher 0.2.2 → 0.2.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openagents-org/agent-launcher",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "description": "OpenAgents Launcher — install, configure, and run AI coding agents from your terminal",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -356,6 +356,7 @@ class ClaudeAdapter extends BaseAdapter {
356
356
  let hasToolUseSinceLastText = false;
357
357
  let postedThinking = false;
358
358
  let stderrBuf = '';
359
+ let lineBuffer = '';
359
360
 
360
361
  // Capture stderr for diagnostics
361
362
  if (proc.stderr) {
@@ -450,7 +451,7 @@ class ClaudeAdapter extends BaseAdapter {
450
451
  if (timeoutTimer) clearInterval(timeoutTimer);
451
452
 
452
453
  // Process remaining buffer
453
- const lines = buffer.split('\n');
454
+ const lines = lineBuffer.split('\n');
454
455
  for (const line of lines) {
455
456
  try { await processLine(line); } catch {}
456
457
  }
@@ -481,7 +482,6 @@ class ClaudeAdapter extends BaseAdapter {
481
482
  });
482
483
 
483
484
  // Process lines as they arrive
484
- let lineBuffer = '';
485
485
  proc.stdout.on('data', (chunk) => {
486
486
  lineBuffer += chunk.toString('utf-8');
487
487
  resetTimeout();
@@ -491,8 +491,6 @@ class ClaudeAdapter extends BaseAdapter {
491
491
  processLine(line).catch(() => {});
492
492
  }
493
493
  });
494
- // Override buffer since we're processing in real time
495
- buffer = '';
496
494
  });
497
495
  } catch (e) {
498
496
  this._log(`Error handling message: ${e.message}`);
package/src/tui.js CHANGED
@@ -182,8 +182,14 @@ function createTUI() {
182
182
  title: 'OpenAgents',
183
183
  fullUnicode: true,
184
184
  tags: true,
185
- style: { bg: 'black', fg: 'white' },
186
185
  });
186
+
187
+ // Full-screen background to ensure dark bg on all terminal themes
188
+ const bgFill = blessed.box({
189
+ top: 0, left: 0, width: '100%', height: '100%',
190
+ style: { bg: 'black' },
191
+ });
192
+ screen.append(bgFill);
187
193
  const connector = getConnector();
188
194
  let pkg;
189
195
  try { pkg = require('../package.json'); } catch { pkg = { version: '?' }; }
@@ -239,7 +245,7 @@ function createTUI() {
239
245
 
240
246
  // ── Log Panel (bordered) ──
241
247
  const logPanel = blessed.box({
242
- top: '60%+1', left: 0, width: '100%', height: '40%-3',
248
+ top: '60%+1', left: 0, width: '100%', height: '40%-2',
243
249
  border: { type: 'line' },
244
250
  label: ' {bold}Activity Log{/bold} ',
245
251
  tags: true,