feat(opsserver): introduce OpsServer (TypedRequest API) and new lightweight web UI; replace legacy Angular UI and add typed interfaces
This commit is contained in:
@@ -286,8 +286,8 @@ async function handleServerCommand(onebox: Onebox, args: string[]) {
|
||||
|
||||
logger.info('Starting Onebox server...');
|
||||
|
||||
// Start HTTP server
|
||||
await onebox.httpServer.start(port);
|
||||
// Start OpsServer (serves new UI + TypedRequest API)
|
||||
await onebox.opsServer.start(port);
|
||||
|
||||
// Start monitoring if requested
|
||||
if (monitor) {
|
||||
@@ -308,7 +308,7 @@ async function handleServerCommand(onebox: Onebox, args: string[]) {
|
||||
if (monitor) {
|
||||
onebox.daemon.stopMonitoring();
|
||||
}
|
||||
await onebox.httpServer.stop();
|
||||
await onebox.opsServer.stop();
|
||||
await onebox.shutdown();
|
||||
Deno.exit(0);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user