tycono 0.3.14-beta.16 → 0.3.14-beta.17
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
|
@@ -162,14 +162,40 @@ 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 ?
|
|
165
|
+
rightContentLines.push(waveId ? `Waiting... (total ${events.length} events)` : 'No active stream. Type a directive to start.');
|
|
166
166
|
}
|
|
167
167
|
} else if (rightTab === 'info') {
|
|
168
168
|
rightContentLines.push(`Wave: ${focusedWave?.waveId ?? 'none'}`);
|
|
169
169
|
rightContentLines.push(`Directive: ${focusedWave?.directive?.slice(0, rightWidth - 12) || '(idle)'}`);
|
|
170
170
|
rightContentLines.push(`Sessions: ${waveSessionCount} Events: ${events.length}`);
|
|
171
|
-
|
|
172
|
-
|
|
171
|
+
rightContentLines.push(`Stream: ${streamStatus}`);
|
|
172
|
+
} else if (rightTab === 'docs') {
|
|
173
|
+
// Docs: scan .md files from COMPANY_ROOT
|
|
174
|
+
try {
|
|
175
|
+
const skip = new Set(['.git', 'node_modules', '.tycono', '.worktrees', 'dist', '.claude', '.obsidian']);
|
|
176
|
+
const mdFiles: string[] = [];
|
|
177
|
+
const walk = (dir: string, depth: number) => {
|
|
178
|
+
if (depth > 3 || mdFiles.length > 50) return;
|
|
179
|
+
try {
|
|
180
|
+
for (const e of fs.readdirSync(dir, { withFileTypes: true })) {
|
|
181
|
+
if (skip.has(e.name)) continue;
|
|
182
|
+
const full = path.join(dir, e.name);
|
|
183
|
+
if (e.isDirectory()) walk(full, depth + 1);
|
|
184
|
+
else if (e.name.endsWith('.md')) mdFiles.push(full.replace(companyRoot + '/', ''));
|
|
185
|
+
}
|
|
186
|
+
} catch {}
|
|
187
|
+
};
|
|
188
|
+
walk(companyRoot, 0);
|
|
189
|
+
mdFiles.sort();
|
|
190
|
+
const maxDocs = Math.max(5, termHeight - 12);
|
|
191
|
+
rightContentLines.push(`${mdFiles.length} documents`);
|
|
192
|
+
for (const f of mdFiles.slice(0, maxDocs)) {
|
|
193
|
+
rightContentLines.push(` ${f.slice(0, rightWidth - 4)}`);
|
|
194
|
+
}
|
|
195
|
+
if (mdFiles.length > maxDocs) rightContentLines.push(` ... +${mdFiles.length - maxDocs} more`);
|
|
196
|
+
} catch {
|
|
197
|
+
rightContentLines.push('Cannot scan documents');
|
|
198
|
+
}
|
|
173
199
|
}
|
|
174
200
|
|
|
175
201
|
// === Merge left + right, pad to fill terminal height ===
|