refactor(site): [SITE-CONSOLE-01] restore typed console and lifecycle ownership

This commit is contained in:
Harvey Zhao committed 2026-09-15 06:15:32 +08:00
1 parent 6cd2d0ffbe
commit 3dba82a453
29 files changed
+1884 -36

No files matched your search

@@ -25,6 +25,9 @@ export async function installEditor(host: EditorHost): Promise<void> {
host.consoleLog(output)
const controller = new AbortController()
const cleanups: (() => void)[] = []
cleanups.push(() => {
host.consoleLog.unmount?.(output)
})
const listen = (
target: EventTarget,
type: string,