()
| 177 | } |
| 178 | |
| 179 | export async function runMaintainDemo(): Promise<string> { |
| 180 | const { QODEX_HOME } = await import('../config/defaults.js'); |
| 181 | const { ensureQodexHome } = await import('../config/loader.js'); |
| 182 | await ensureQodexHome().catch(() => {}); |
| 183 | const out = path.join(QODEX_HOME, 'maintain-demo.html'); |
| 184 | await fs.writeFile(out, buildMaintainDemoHtml()); |
| 185 | try { const { openUrl } = await import('../artifacts/open-browser.js'); await openUrl('file://' + out); } catch { /* best-effort */ } |
| 186 | return out; |
| 187 | } |
no test coverage detected