core: generate type definitions for node import

This commit is contained in:
Brendan Allan 2026-04-09 15:29:28 +08:00
commit 407825bdad
No known key found for this signature in database
GPG key ID: 41E835AEA046A32E
17 changed files with 129 additions and 61496 deletions

View file

@ -33,12 +33,10 @@ export function setWslConfig(config: WslConfig) {
export async function spawnLocalServer(hostname: string, port: number, password: string) {
prepareServerEnv(password)
const { Log, Server } = await import("virtual:opencode-server")
await Log.init({ level: "WARN" })
await Log.init({ level: "WARN", print: true })
const listener = await Server.listen({
port,
hostname,
username: "opencode",
password,
})
const wait = (async () => {