tycono 0.3.14-beta.22 → 0.3.14-beta.23

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": "tycono",
3
- "version": "0.3.14-beta.22",
3
+ "version": "0.3.14-beta.23",
4
4
  "description": "Build an AI company. Watch them work.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -35,7 +35,7 @@
35
35
  "cors": "^2.8.5",
36
36
  "dotenv": "^16.4.7",
37
37
  "express": "^5.0.1",
38
- "glob": "^11.0.1",
38
+ "glob": "^13.0.6",
39
39
  "gray-matter": "^4.0.3",
40
40
  "ink": "^5.2.1",
41
41
  "ink-select-input": "^6.2.0",
@@ -175,21 +175,24 @@ const PanelModeInner: React.FC<PanelModeProps> = ({
175
175
  })),
176
176
  ];
177
177
 
178
+ // Derive selectedRoleId from index (more reliable than prop — avoids sync issues)
179
+ const activeRoleId = flatRoles[selectedRoleIndex] ?? null;
180
+
178
181
  // === Build right column: Stream/Info/Docs ===
179
182
  const rightContentLines: string[] = [];
180
183
  let selectedDocPath: string | null = null;
181
184
  if (rightTab === 'stream') {
182
- if (selectedRoleId) rightContentLines.push(`\u25B8 ${selectedRoleId}`);
185
+ if (activeRoleId) rightContentLines.push(`\u25B8 ${activeRoleId}`);
183
186
  const maxEv = Math.max(5, contentHeight - 3);
184
- const filtered = selectedRoleId ? events.filter(e => e.roleId === selectedRoleId) : events;
187
+ const filtered = activeRoleId ? events.filter(e => e.roleId === activeRoleId) : events;
185
188
  const visible = filtered.slice(-maxEv);
186
189
  for (const ev of visible) {
187
190
  const line = eventLine(ev);
188
191
  if (line) rightContentLines.push(line.slice(0, rightWidth));
189
192
  }
190
193
  if (rightContentLines.length === 0) {
191
- if (selectedRoleId && events.length > 0) {
192
- rightContentLines.push(`No events for ${selectedRoleId} (${events.length} total)`);
194
+ if (activeRoleId && events.length > 0) {
195
+ rightContentLines.push(`No events for ${activeRoleId} (${events.length} total)`);
193
196
  rightContentLines.push('Press Enter to show all roles');
194
197
  } else {
195
198
  rightContentLines.push(waveId ? `Waiting for events... (${events.length} in buffer)` : 'No active stream. Type a directive to start.');