add createOpencodeServer to js sdk and wait for readiness. always use random port for opencode serve. add /client and /server imports for js sdk

This commit is contained in:
Dax Raad
2025-08-21 17:12:31 -04:00
parent aa4dba1541
commit d9233872b9
3 changed files with 57 additions and 6 deletions

View File

@@ -11,7 +11,7 @@ export const ServeCommand = cmd({
alias: ["p"],
type: "number",
describe: "port to listen on",
default: 4096,
default: 0,
})
.option("hostname", {
alias: ["h"],