(root: Root, props: {
agentType: string;
scope: AgentMemoryScope;
snapshotTimestamp: string;
})
| 27 | * Original callback wiring: onComplete={done}, onCancel={() => done('keep')}. |
| 28 | */ |
| 29 | export async function launchSnapshotUpdateDialog(root: Root, props: { |
| 30 | agentType: string; |
| 31 | scope: AgentMemoryScope; |
| 32 | snapshotTimestamp: string; |
| 33 | }): Promise<'merge' | 'keep' | 'replace'> { |
| 34 | const { |
| 35 | SnapshotUpdateDialog |
| 36 | } = await import('./components/agents/SnapshotUpdateDialog.js'); |
| 37 | return showSetupDialog<'merge' | 'keep' | 'replace'>(root, done => <SnapshotUpdateDialog agentType={props.agentType} scope={props.scope} snapshotTimestamp={props.snapshotTimestamp} onComplete={done} onCancel={() => done('keep')} />); |
| 38 | } |
| 39 | |
| 40 | /** |
| 41 | * Site ~3250: InvalidSettingsDialog (settings validation errors). |
no test coverage detected