Skip to content

Commit da39443

Browse files
committed
chore: generate
1 parent 390b0a7 commit da39443

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed

packages/sdk/js/src/v2/gen/types.gen.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1156,6 +1156,24 @@ export type KeybindsConfig = {
11561156
*/
11571157
export type LogLevel = "DEBUG" | "INFO" | "WARN" | "ERROR"
11581158

1159+
/**
1160+
* Server configuration for opencode serve and web commands
1161+
*/
1162+
export type ServerConfig = {
1163+
/**
1164+
* Port to listen on
1165+
*/
1166+
port?: number
1167+
/**
1168+
* Hostname to listen on
1169+
*/
1170+
hostname?: string
1171+
/**
1172+
* Enable mDNS service discovery
1173+
*/
1174+
mdns?: boolean
1175+
}
1176+
11591177
export type AgentConfig = {
11601178
model?: string
11611179
temperature?: number
@@ -1416,6 +1434,7 @@ export type Config = {
14161434
*/
14171435
diff_style?: "auto" | "stacked"
14181436
}
1437+
server?: ServerConfig
14191438
/**
14201439
* Command configuration, see https://opencode.ai/docs/commands
14211440
*/

packages/sdk/openapi.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7692,6 +7692,27 @@
76927692
"type": "string",
76937693
"enum": ["DEBUG", "INFO", "WARN", "ERROR"]
76947694
},
7695+
"ServerConfig": {
7696+
"description": "Server configuration for opencode serve and web commands",
7697+
"type": "object",
7698+
"properties": {
7699+
"port": {
7700+
"description": "Port to listen on",
7701+
"type": "integer",
7702+
"exclusiveMinimum": 0,
7703+
"maximum": 9007199254740991
7704+
},
7705+
"hostname": {
7706+
"description": "Hostname to listen on",
7707+
"type": "string"
7708+
},
7709+
"mdns": {
7710+
"description": "Enable mDNS service discovery",
7711+
"type": "boolean"
7712+
}
7713+
},
7714+
"additionalProperties": false
7715+
},
76957716
"AgentConfig": {
76967717
"type": "object",
76977718
"properties": {
@@ -8178,6 +8199,9 @@
81788199
}
81798200
}
81808201
},
8202+
"server": {
8203+
"$ref": "#/components/schemas/ServerConfig"
8204+
},
81818205
"command": {
81828206
"description": "Command configuration, see https://opencode.ai/docs/commands",
81838207
"type": "object",

0 commit comments

Comments
 (0)