@automagik/genie 0.260203.639 → 0.260203.711
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/claudio.js +1 -1
- package/dist/genie.js +1 -1
- package/dist/term.js +54 -54
- package/package.json +1 -1
- package/src/lib/log-reader.ts +11 -5
- package/src/lib/orchestrator/event-monitor.ts +5 -2
- package/src/lib/version.ts +1 -1
package/package.json
CHANGED
package/src/lib/log-reader.ts
CHANGED
|
@@ -67,18 +67,21 @@ export async function readSessionLogs(
|
|
|
67
67
|
throw new Error(`Session "${sessionName}" not found`);
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
// Get
|
|
70
|
+
// Get active window and pane (never assume index 0)
|
|
71
71
|
const windows = await tmux.listWindows(session.id);
|
|
72
72
|
if (!windows || windows.length === 0) {
|
|
73
73
|
throw new Error(`No windows found in session "${sessionName}"`);
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
const
|
|
76
|
+
const activeWindow = windows.find(w => w.active) || windows[0];
|
|
77
|
+
|
|
78
|
+
const panes = await tmux.listPanes(activeWindow.id);
|
|
77
79
|
if (!panes || panes.length === 0) {
|
|
78
80
|
throw new Error(`No panes found in session "${sessionName}"`);
|
|
79
81
|
}
|
|
80
82
|
|
|
81
|
-
const
|
|
83
|
+
const activePane = panes.find(p => p.active) || panes[0];
|
|
84
|
+
const paneId = activePane.id;
|
|
82
85
|
|
|
83
86
|
// Parse range if provided
|
|
84
87
|
if (options.range) {
|
|
@@ -162,12 +165,15 @@ export async function followSessionLogs(
|
|
|
162
165
|
throw new Error(`No windows found in session "${sessionName}"`);
|
|
163
166
|
}
|
|
164
167
|
|
|
165
|
-
const
|
|
168
|
+
const activeWindow = windows.find(w => w.active) || windows[0];
|
|
169
|
+
|
|
170
|
+
const panes = await tmux.listPanes(activeWindow.id);
|
|
166
171
|
if (!panes || panes.length === 0) {
|
|
167
172
|
throw new Error(`No panes found in session "${sessionName}"`);
|
|
168
173
|
}
|
|
169
174
|
|
|
170
|
-
const
|
|
175
|
+
const activePane = panes.find(p => p.active) || panes[0];
|
|
176
|
+
const paneId = activePane.id;
|
|
171
177
|
let lastContent = '';
|
|
172
178
|
let following = true;
|
|
173
179
|
|
|
@@ -81,12 +81,15 @@ export class EventMonitor extends EventEmitter {
|
|
|
81
81
|
throw new Error(`No windows found in session "${this.sessionName}"`);
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
const
|
|
84
|
+
const activeWindow = windows.find(w => w.active) || windows[0];
|
|
85
|
+
|
|
86
|
+
const panes = await tmux.listPanes(activeWindow.id);
|
|
85
87
|
if (!panes || panes.length === 0) {
|
|
86
88
|
throw new Error(`No panes found in session "${this.sessionName}"`);
|
|
87
89
|
}
|
|
88
90
|
|
|
89
|
-
|
|
91
|
+
const activePane = panes.find(p => p.active) || panes[0];
|
|
92
|
+
this.paneId = activePane.id;
|
|
90
93
|
}
|
|
91
94
|
|
|
92
95
|
this.running = true;
|
package/src/lib/version.ts
CHANGED