Skip to content

Commit 2983d26

Browse files
sirtimidclaude
andcommitted
feat(kernel-browser-runtime): add UI vat infrastructure with slot-based orchestration
Add UIOrchestrator for managing visible UI vat iframes in named slots, enabling multiple caplet UIs to coexist in a structured layout. - Add UIOrchestrator class with slot-based iframe management - Add makeUIVatWorker factory for VatWorker interface - Add <div id="root"> mounting point to vat/iframe.html - Export SlotName type (currently 'main', extensible) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent d486a0d commit 2983d26

8 files changed

Lines changed: 1165 additions & 1 deletion

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,3 +92,4 @@ test-results
9292

9393
# Claude
9494
.claude/settings.local.json
95+
.playwright-mcp/

packages/kernel-browser-runtime/src/index.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ describe('index', () => {
77
expect(Object.keys(indexModule).sort()).toStrictEqual([
88
'PlatformServicesClient',
99
'PlatformServicesServer',
10+
'UIOrchestrator',
1011
'connectToKernel',
1112
'createRelayQueryString',
1213
'getCapTPMessage',
@@ -17,6 +18,7 @@ describe('index', () => {
1718
'makeBackgroundCapTP',
1819
'makeCapTPNotification',
1920
'makeIframeVatWorker',
21+
'makeUIVatWorker',
2022
'parseRelayQueryString',
2123
'receiveInternalConnections',
2224
'rpcHandlers',

packages/kernel-browser-runtime/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,4 @@ export {
2121
type BackgroundCapTPOptions,
2222
type CapTPMessage,
2323
} from './background-captp.ts';
24+
export * from './ui/index.ts';

0 commit comments

Comments
 (0)