gabriel / musehub public
elicitation-callback.ts typescript
21 lines 544 B
Raw
sha256:42bc547653458bb15e283222247af0237872d9cb5c2a72ad2ca1c111ed2c0ca4 feat(9A-4 F7): overseer-run provenance enrichment API for S… Human minor ⚠ breaking 15 days ago
1 /**
2 * elicitation-callback.ts — Auto-close countdown for MCP elicitation callback page.
3 *
4 * Registered as: window.MusePages['elicitation-callback']
5 * No config needed from #page-data — reads the DOM directly.
6 */
7
8 export function initElicitationCallback(_data?: Record<string, unknown>): void {
9 const el = document.getElementById('countdown');
10 if (!el) return;
11
12 let n = 5;
13 const t = setInterval(() => {
14 n--;
15 el.textContent = String(n);
16 if (n <= 0) {
17 clearInterval(t);
18 window.close();
19 }
20 }, 1000);
21 }
File History 1 commit
sha256:e5530c6b8996b96fc4030d6d30fe4f688926bdda2875fb01d303092b11513bd2 fix(9A-4 F7): env alias + staging secrets for overseer prov… Human minor 12 days ago