Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
27 lines
829 B
TypeScript
27 lines
829 B
TypeScript
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])]
|
|
})
|