(m: UserModel)
| 70 | |
| 71 | /** A readable block for `qodex whoami` / the dashboard. PURE. */ |
| 72 | export function renderUserModel(m: UserModel): string { |
| 73 | const lines = ['# What QodeX knows about you', '']; |
| 74 | lines.push(`Tasks recorded: ${m.taskCount}`); |
| 75 | if (m.preferences.length) { lines.push('', 'Preferences (you told me):'); for (const p of m.preferences) lines.push(` • ${p}`); } |
| 76 | else lines.push('', 'No stated preferences yet — tell me with `remember` / `/memory`.'); |
| 77 | if (m.recentThemes.length) lines.push('', `Recent focus: ${m.recentThemes.join(', ')}`); |
| 78 | if (m.favoriteAreas.length) lines.push(`Works mostly in: ${m.favoriteAreas.join(', ')}`); |
| 79 | return lines.join('\n'); |
| 80 | } |
no test coverage detected