File tree Expand file tree Collapse file tree 2 files changed +43
-0
lines changed
Expand file tree Collapse file tree 2 files changed +43
-0
lines changed Original file line number Diff line number Diff line change @@ -1156,6 +1156,24 @@ export type KeybindsConfig = {
11561156 */
11571157export 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+
11591177export 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 */
Original file line number Diff line number Diff line change 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" : {
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" ,
You can’t perform that action at this time.
0 commit comments