tycono 0.3.14-beta.23 → 0.3.14-beta.25

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.23",
3
+ "version": "0.3.14-beta.25",
4
4
  "description": "Build an AI company. Watch them work.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -70,10 +70,17 @@ function eventLine(ev: SSEEvent): string | null {
70
70
  catch { t = '--:--:--'; }
71
71
  const r = (ev.roleId ?? '').padEnd(12);
72
72
  switch (ev.type) {
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`;
73
+ case 'text': { const x = ((ev.data.text as string) ?? '').trim(); return x ? `${t} ${r} ${x}` : null; } // keep \n — split later
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)}`;
@@ -188,7 +195,13 @@ const PanelModeInner: React.FC<PanelModeProps> = ({
188
195
  const visible = filtered.slice(-maxEv);
189
196
  for (const ev of visible) {
190
197
  const line = eventLine(ev);
191
- if (line) rightContentLines.push(line.slice(0, rightWidth));
198
+ if (!line) continue;
199
+ // Split multi-line text events into separate lines (preserves markdown)
200
+ const sublines = line.split('\n');
201
+ for (const sl of sublines) {
202
+ if (rightContentLines.length >= maxEv) break;
203
+ rightContentLines.push(sl.slice(0, rightWidth));
204
+ }
192
205
  }
193
206
  if (rightContentLines.length === 0) {
194
207
  if (activeRoleId && events.length > 0) {