MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / writeStaticDashboard

Function writeStaticDashboard

src/cli/dashboard.ts:478–486  ·  view source on GitHub ↗
(cwd: string)

Source from the content-addressed store, hash-verified

476 modelSet: !!defModel && defModel !== '(unset)', lastRunStatus: runs[0]?.status, webKeys,
477 });
478 const logs = await (async () => {
479 try { const { QODEX_LOG_FILE } = await import('../config/defaults.js'); return tailLines(await fs.readFile(QODEX_LOG_FILE, 'utf-8'), 40); }
480 catch { return []; }
481 })();
482 const userModel = await (async () => {
483 try {
484 const { buildUserModel } = await import('../context/user-model.js');
485 const userFacts = (() => { try { return store.getFactsByScope('user', cwd, 100); } catch { return []; } })();
486 const eps = await (async () => { try { const { readEpisodes } = await import('../context/episodic-memory.js'); return await readEpisodes(cwd); } catch { return []; } })();
487 return buildUserModel({ userFacts, episodes: eps.map(e => ({ prompt: e.prompt, files: e.filesChanged })) });
488 } catch { return { preferences: [], recentThemes: [], favoriteAreas: [], taskCount: 0, summary: '' }; }
489 })();

Callers 1

index.tsFile · 0.85

Calls 4

ensureQodexHomeFunction · 0.85
buildDashboardHtmlFunction · 0.85
gatherDashboardDataFunction · 0.85
openUrlFunction · 0.85

Tested by

no test coverage detected