Scaffold: fork of Chambers architecture, renamed to Boardroom Map
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
import { sdk } from './sdk'
|
||||
|
||||
export const WEB_UI_PORT = 8080
|
||||
|
||||
/**
|
||||
* Expose the orchestrator web UI as a StartOS interface (Tor + LAN), so the
|
||||
* user can open the Boardroom Map control panel from the StartOS dashboard.
|
||||
*/
|
||||
export const setInterfaces = sdk.setupInterfaces(async ({ effects }) => {
|
||||
const multi = sdk.MultiHost.of(effects, 'web')
|
||||
const origin = await multi.bindPort(WEB_UI_PORT, { protocol: 'http' })
|
||||
const ui = sdk.createInterface(effects, {
|
||||
name: 'Web UI',
|
||||
id: 'webui',
|
||||
description:
|
||||
'The Boardroom Map control panel: drop documents in, convene the reviewer ' +
|
||||
'panel, watch the job run on your Sparks, and read the reports.',
|
||||
type: 'ui',
|
||||
username: null,
|
||||
path: '',
|
||||
query: {},
|
||||
schemeOverride: null,
|
||||
masked: false,
|
||||
})
|
||||
return [await origin.export([ui])]
|
||||
})
|
||||
Reference in New Issue
Block a user