@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.
- package/package.json +1 -1
- package/src/tui.js +18 -10
package/package.json
CHANGED
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:
|
|
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('
|
|
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
|
-
//
|
|
418
|
-
agentList.
|
|
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
|
-
|
|
422
|
-
|
|
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.
|
|
437
|
+
agentList.key('enter', () => {
|
|
430
438
|
if (currentView !== 'main') return;
|
|
431
|
-
const agent =
|
|
439
|
+
const agent = selectedAgent();
|
|
432
440
|
if (!agent || !agent.configured) return;
|
|
433
441
|
showAgentActionMenu(agent);
|
|
434
442
|
});
|