Convert ShellAdapter (browser-facing) into RuntimeAdapter (environment-agnostic).
The adapter is the single translation layer between browser APIs and the runtime's abstract interfaces. It:
The browser-oriented ShellAdapter provided by the host app
Browser-specific singletons (originRegistry, aclStore, etc.)
RuntimeAdapter suitable for createRuntime()
const runtimeHooks = adaptHooks(shellHooks, { originRegistry, manifestCache, aclStore, audioManager, nappKeyRegistry,});const runtime = createRuntime(runtimeHooks); Copy
const runtimeHooks = adaptHooks(shellHooks, { originRegistry, manifestCache, aclStore, audioManager, nappKeyRegistry,});const runtime = createRuntime(runtimeHooks);
Convert ShellAdapter (browser-facing) into RuntimeAdapter (environment-agnostic).
The adapter is the single translation layer between browser APIs and the runtime's abstract interfaces. It: