Runtime + origin registry
An IdentityProxy ready to route identity.* envelopes
import { createIdentityProxy, originRegistry, createShellBridge } from '@kehto/shell';
const bridge = createShellBridge(hooks);
const identityProxy = createIdentityProxy({
runtime: bridge.runtime,
originRegistry,
});
// Optional composition: intercept napplet->shell identity requests
const originalDispatch = identityProxy.dispatch;
identityProxy.dispatch = (windowId, envelope) => {
console.log('identity dispatch', windowId, envelope.type);
originalDispatch(windowId, envelope);
};
Factory for the canonical identity-domain proxy.