@openagents-org/agent-launcher 0.2.84 → 0.2.86

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/package.json +1 -1
  2. package/src/tui.js +18 -10
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openagents-org/agent-launcher",
3
- "version": "0.2.84",
3
+ "version": "0.2.86",
4
4
  "description": "OpenAgents Launcher — install, configure, and run AI coding agents from your terminal",
5
5
  "main": "src/index.js",
6
6
  "bin": {
package/src/tui.js CHANGED
@@ -251,7 +251,7 @@ function createTUI() {
251
251
  const agentList = blessed.list({
252
252
  parent: agentPanel,
253
253
  top: 1, left: 0, width: '100%-2', height: '100%-3',
254
- keys: true, vi: true, mouse: true,
254
+ keys: false, vi: false, mouse: true,
255
255
  tags: true,
256
256
  style: {
257
257
  bg: 'black',
@@ -373,7 +373,7 @@ function createTUI() {
373
373
  const details = [];
374
374
  details.push(r.path || process.env.HOME || '~');
375
375
  if (r.notReadyMsg) details.push(`{yellow-fg}⚠ ${r.notReadyMsg}{/yellow-fg}`);
376
- items.push(` {gray-fg} ${details.join(' · ')}{/gray-fg}`);
376
+ items.push(` {gray-fg} ${details.join(' | ')}{/gray-fg}`);
377
377
  }
378
378
  agentList.setItems(items);
379
379
  }
@@ -414,21 +414,29 @@ function createTUI() {
414
414
  return agentRows[Math.floor((agentList.selected || 0) / 2)];
415
415
  }
416
416
 
417
- // Navigate by 2 to skip detail rows
418
- agentList.on('select item', () => {
419
- // Snap to even rows (main rows)
417
+ // Override up/down to skip detail rows (move by 2)
418
+ agentList.key(['down', 'j'], () => {
420
419
  const idx = agentList.selected || 0;
421
- if (idx % 2 !== 0 && agentRows.length > 0) {
422
- agentList.select(idx - 1);
420
+ const next = idx + 2;
421
+ if (next < agentList.items.length) {
422
+ agentList.select(next);
423
+ screen.render();
424
+ }
425
+ });
426
+ agentList.key(['up', 'k'], () => {
427
+ const idx = agentList.selected || 0;
428
+ const prev = idx - 2;
429
+ if (prev >= 0) {
430
+ agentList.select(prev);
423
431
  screen.render();
424
432
  }
425
- updateFooter();
426
433
  });
434
+ agentList.on('select item', () => updateFooter());
427
435
 
428
436
  // ── Enter key → Context menu ──
429
- agentList.on('select', (_item, idx) => {
437
+ agentList.key('enter', () => {
430
438
  if (currentView !== 'main') return;
431
- const agent = agentRows[Math.floor(idx / 2)];
439
+ const agent = selectedAgent();
432
440
  if (!agent || !agent.configured) return;
433
441
  showAgentActionMenu(agent);
434
442
  });