elicitation-callback.ts
typescript
sha256:969ddc5e88776e70af33c016b8777bb721356508ae5f304b3fb46c451494ece7
test(mwp3): Phase 4 — fix adjacent suite regressions, lock …
Sonnet 4.6
22 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
2 commits
sha256:969ddc5e88776e70af33c016b8777bb721356508ae5f304b3fb46c451494ece7
test(mwp3): Phase 4 — fix adjacent suite regressions, lock …
Sonnet 4.6
22 days ago
sha256:1749b9cc5cd2583c56d3261c4c00a342c27435f3946d4bc3e70f76aa2795458a
docs(mwp-3): TDD implementation plan for job-enqueue idempo…
Opus 4.8
22 days ago