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 board decks into each company\'s ' + 'inbox, run the grading panel on your Sparks, and watch per-company ' + 'scorecard trends.', type: 'ui', username: null, path: '', query: {}, schemeOverride: null, masked: false, }) return [await origin.export([ui])] })