tycono 0.3.14-beta.16 → 0.3.14-beta.18

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.16",
3
+ "version": "0.3.14-beta.18",
4
4
  "description": "Build an AI company. Watch them work.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -162,14 +162,45 @@ const PanelModeInner: React.FC<PanelModeProps> = ({
162
162
  if (line) rightContentLines.push(line.slice(0, rightWidth));
163
163
  }
164
164
  if (rightContentLines.length === 0) {
165
- rightContentLines.push(waveId ? 'Waiting for events...' : 'No active stream. Type a directive to start.');
165
+ if (selectedRoleId && events.length > 0) {
166
+ rightContentLines.push(`No events for ${selectedRoleId} (${events.length} total)`);
167
+ rightContentLines.push('Press Enter to show all roles');
168
+ } else {
169
+ rightContentLines.push(waveId ? `Waiting for events... (${events.length} in buffer)` : 'No active stream. Type a directive to start.');
170
+ }
166
171
  }
167
172
  } else if (rightTab === 'info') {
168
173
  rightContentLines.push(`Wave: ${focusedWave?.waveId ?? 'none'}`);
169
174
  rightContentLines.push(`Directive: ${focusedWave?.directive?.slice(0, rightWidth - 12) || '(idle)'}`);
170
175
  rightContentLines.push(`Sessions: ${waveSessionCount} Events: ${events.length}`);
171
- } else {
172
- rightContentLines.push('Press h to switch to Stream tab');
176
+ rightContentLines.push(`Stream: ${streamStatus}`);
177
+ } else if (rightTab === 'docs') {
178
+ // Docs: scan .md files from COMPANY_ROOT
179
+ try {
180
+ const skip = new Set(['.git', 'node_modules', '.tycono', '.worktrees', 'dist', '.claude', '.obsidian']);
181
+ const mdFiles: string[] = [];
182
+ const walk = (dir: string, depth: number) => {
183
+ if (depth > 3 || mdFiles.length > 50) return;
184
+ try {
185
+ for (const e of fs.readdirSync(dir, { withFileTypes: true })) {
186
+ if (skip.has(e.name)) continue;
187
+ const full = path.join(dir, e.name);
188
+ if (e.isDirectory()) walk(full, depth + 1);
189
+ else if (e.name.endsWith('.md')) mdFiles.push(full.replace(companyRoot + '/', ''));
190
+ }
191
+ } catch {}
192
+ };
193
+ walk(companyRoot, 0);
194
+ mdFiles.sort();
195
+ const maxDocs = Math.max(5, termHeight - 12);
196
+ rightContentLines.push(`${mdFiles.length} documents`);
197
+ for (const f of mdFiles.slice(0, maxDocs)) {
198
+ rightContentLines.push(` ${f.slice(0, rightWidth - 4)}`);
199
+ }
200
+ if (mdFiles.length > maxDocs) rightContentLines.push(` ... +${mdFiles.length - maxDocs} more`);
201
+ } catch {
202
+ rightContentLines.push('Cannot scan documents');
203
+ }
173
204
  }
174
205
 
175
206
  // === Merge left + right, pad to fill terminal height ===