( agentType: string, scope: AgentMemoryScope, snapshotTimestamp: string, )
| 147 | * Initialize local agent memory from a snapshot (first-time setup). |
| 148 | */ |
| 149 | export async function initializeFromSnapshot( |
| 150 | agentType: string, |
| 151 | scope: AgentMemoryScope, |
| 152 | snapshotTimestamp: string, |
| 153 | ): Promise<void> { |
| 154 | logForDebugging( |
| 155 | `Initializing agent memory for ${agentType} from project snapshot`, |
| 156 | ) |
| 157 | await copySnapshotToLocal(agentType, scope) |
| 158 | await saveSyncedMeta(agentType, scope, snapshotTimestamp) |
| 159 | } |
| 160 | |
| 161 | /** |
| 162 | * Replace local agent memory with the snapshot. |
no test coverage detected