( memory: AgentMemoryScope | undefined, )
| 164 | } |
| 165 | |
| 166 | export function getMemoryScopeDisplay( |
| 167 | memory: AgentMemoryScope | undefined, |
| 168 | ): string { |
| 169 | switch (memory) { |
| 170 | case 'user': |
| 171 | return `User (${join(getCanonicalNcodeConfigHomeDir(), 'agent-memory')}/)` |
| 172 | case 'project': |
| 173 | return 'Project (shared project memory)' |
| 174 | case 'local': |
| 175 | return 'Local (machine-local project memory)' |
| 176 | default: |
| 177 | return 'None' |
| 178 | } |
| 179 | } |
| 180 | |
| 181 | /** |
| 182 | * Load persistent memory for an agent with memory enabled. |
no outgoing calls
no test coverage detected