MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / runMaintainDemo

Function runMaintainDemo

src/cli/maintain-demo.ts:179–187  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

177}
178
179export 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}

Callers 1

index.tsFile · 0.85

Calls 3

ensureQodexHomeFunction · 0.85
buildMaintainDemoHtmlFunction · 0.85
openUrlFunction · 0.85

Tested by

no test coverage detected