local web

This commit is contained in:
Dax Raad
2025-11-04 12:33:03 -05:00
parent 2af3f19397
commit bc6f4aed2b
5 changed files with 21 additions and 6 deletions

View File

@@ -26,12 +26,15 @@ export const WebCommand = cmd({
port,
hostname,
})
const url = `https://desktop.dev.opencode.ai?url=${server.url}`
UI.empty()
UI.println(UI.logo(" "))
UI.empty()
UI.println(UI.Style.TEXT_INFO_BOLD + " Web interface: ", UI.Style.TEXT_NORMAL, url)
open(url).catch(() => {})
UI.println(
UI.Style.TEXT_INFO_BOLD + " Web interface: ",
UI.Style.TEXT_NORMAL,
server.url.toString(),
)
open(server.url.toString()).catch(() => {})
await new Promise(() => {})
await server.stop()
},