The demo agent is running.
(agentId: string)
| 72 | start(demo: TutorialDemo) { wire(); clearFallback(); set({ phase: 'building', agentId: null, demo }); }, |
| 73 | /** The demo agent is running. */ |
| 74 | attachAgent(agentId: string) { |
| 75 | if (snapshot.phase !== 'building') return; |
| 76 | set({ phase: 'monitoring', agentId }); |
| 77 | fallbackTimer = setTimeout(() => { if (snapshot.phase === 'monitoring') set({ phase: 'notified' }); }, NOTIFY_FALLBACK_MS); |
| 78 | }, |
| 79 | /** Stopped/dismissed. */ |
| 80 | reset() { clearFallback(); set({ phase: 'idle', agentId: null, demo: null }); }, |
| 81 | get: () => snapshot, |