(cwd: string)
| 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 | })(); |
no test coverage detected