tycono 0.3.14-beta.22 → 0.3.14-beta.24

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.24",
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",
@@ -71,9 +71,16 @@ function eventLine(ev: SSEEvent): string | null {
71
71
  const r = (ev.roleId ?? '').padEnd(12);
72
72
  switch (ev.type) {
73
73
  case 'text': { const x = ((ev.data.text as string) ?? '').replace(/\n/g, ' ').trim(); return x ? `${t} ${r} ${x.slice(0, 120)}` : null; }
74
- case 'thinking': { const x = ((ev.data.text as string) ?? '').replace(/\n/g, ' ').trim(); return x ? `${t} ${r} \uD83D\uDCAD ${x.slice(0, 80)}` : null; }
75
- case 'tool:start': { const n = (ev.data.name as string) ?? ''; const d = ev.data.input ? (((ev.data.input as any).file_path || (ev.data.input as any).command || (ev.data.input as any).pattern || '') as string).slice(0, 50) : ''; return `${t} ${r} \u2192 ${n} ${d}`; }
76
- case 'tool:result': return `${t} ${r} \u2190 ${(ev.data.name as string) ?? ''} done`;
74
+ case 'thinking': return null; // Hide thinking noise
75
+ case 'tool:start': {
76
+ const n = (ev.data.name as string) ?? '';
77
+ // Only show Write/Edit/Bash — hide Read/Grep/Glob (noise)
78
+ if (!['Write', 'Edit', 'NotebookEdit', 'Bash'].includes(n)) return null;
79
+ const inp = ev.data.input as Record<string, unknown> | undefined;
80
+ const d = inp ? ((inp.file_path as string)?.split('/').slice(-2).join('/') || (inp.command as string)?.slice(0, 50) || '').slice(0, 50) : '';
81
+ return `${t} ${r} ${n === 'Bash' ? '\u2192' : '\u{1F4C4}'} ${n} ${d}`;
82
+ }
83
+ case 'tool:result': return null; // Hide — start is enough
77
84
  case 'msg:start': return `${t} ${r} \u25B6 Started`;
78
85
  case 'msg:done': { const turns = ev.data.turns as number | undefined; return `${t} ${r} \u2713 Done${turns ? ` (${turns} turns)` : ''}`; }
79
86
  case 'msg:error': return `${t} ${r} \u2717 ${((ev.data.error ?? ev.data.message) as string ?? '').slice(0, 60)}`;
@@ -175,21 +182,24 @@ const PanelModeInner: React.FC<PanelModeProps> = ({
175
182
  })),
176
183
  ];
177
184
 
185
+ // Derive selectedRoleId from index (more reliable than prop — avoids sync issues)
186
+ const activeRoleId = flatRoles[selectedRoleIndex] ?? null;
187
+
178
188
  // === Build right column: Stream/Info/Docs ===
179
189
  const rightContentLines: string[] = [];
180
190
  let selectedDocPath: string | null = null;
181
191
  if (rightTab === 'stream') {
182
- if (selectedRoleId) rightContentLines.push(`\u25B8 ${selectedRoleId}`);
192
+ if (activeRoleId) rightContentLines.push(`\u25B8 ${activeRoleId}`);
183
193
  const maxEv = Math.max(5, contentHeight - 3);
184
- const filtered = selectedRoleId ? events.filter(e => e.roleId === selectedRoleId) : events;
194
+ const filtered = activeRoleId ? events.filter(e => e.roleId === activeRoleId) : events;
185
195
  const visible = filtered.slice(-maxEv);
186
196
  for (const ev of visible) {
187
197
  const line = eventLine(ev);
188
198
  if (line) rightContentLines.push(line.slice(0, rightWidth));
189
199
  }
190
200
  if (rightContentLines.length === 0) {
191
- if (selectedRoleId && events.length > 0) {
192
- rightContentLines.push(`No events for ${selectedRoleId} (${events.length} total)`);
201
+ if (activeRoleId && events.length > 0) {
202
+ rightContentLines.push(`No events for ${activeRoleId} (${events.length} total)`);
193
203
  rightContentLines.push('Press Enter to show all roles');
194
204
  } else {
195
205
  rightContentLines.push(waveId ? `Waiting for events... (${events.length} in buffer)` : 'No active stream. Type a directive to start.');