(facts: Fact[])
| 118 | * Lean format — no scope, no tags, no metadata. Just facts. |
| 119 | */ |
| 120 | export function formatContext(facts: Fact[]): string { |
| 121 | if (facts.length === 0) return ""; |
| 122 | |
| 123 | const lines = facts.map( |
| 124 | (f) => `- ${simplifyKey(f.key, f.scope)}: ${f.value}` |
| 125 | ); |
| 126 | |
| 127 | return `[MEMORY]\n${lines.join("\n")}\n[/MEMORY]`; |
| 128 | } |
no test coverage detected