MCPcopy Create free account
hub / github.com/Roy3838/Observer / attachAgent

Function attachAgent

app/src/utils/tutorialFlow.ts:74–78  ·  view source on GitHub ↗

The demo agent is running.

(agentId: string)

Source from the content-addressed store, hash-verified

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,

Callers

nothing calls this directly

Calls 1

setFunction · 0.70

Tested by

no test coverage detected