Browse Source

chore: generate

GitHub Action 1 month ago
parent
commit
54588b4570
2 changed files with 43 additions and 0 deletions
  1. 19 0
      packages/sdk/js/src/v2/gen/types.gen.ts
  2. 24 0
      packages/sdk/openapi.json

+ 19 - 0
packages/sdk/js/src/v2/gen/types.gen.ts

@@ -1151,6 +1151,24 @@ export type KeybindsConfig = {
   tips_toggle?: string
   tips_toggle?: string
 }
 }
 
 
+/**
+ * Server configuration for opencode serve and web commands
+ */
+export type ServerConfig = {
+  /**
+   * Port to listen on
+   */
+  port?: number
+  /**
+   * Hostname to listen on
+   */
+  hostname?: string
+  /**
+   * Enable mDNS service discovery
+   */
+  mdns?: boolean
+}
+
 export type AgentConfig = {
 export type AgentConfig = {
   model?: string
   model?: string
   temperature?: number
   temperature?: number
@@ -1410,6 +1428,7 @@ export type Config = {
      */
      */
     diff_style?: "auto" | "stacked"
     diff_style?: "auto" | "stacked"
   }
   }
+  server?: ServerConfig
   /**
   /**
    * Command configuration, see https://opencode.ai/docs/commands
    * Command configuration, see https://opencode.ai/docs/commands
    */
    */

+ 24 - 0
packages/sdk/openapi.json

@@ -7687,6 +7687,27 @@
         },
         },
         "additionalProperties": false
         "additionalProperties": false
       },
       },
+      "ServerConfig": {
+        "description": "Server configuration for opencode serve and web commands",
+        "type": "object",
+        "properties": {
+          "port": {
+            "description": "Port to listen on",
+            "type": "integer",
+            "exclusiveMinimum": 0,
+            "maximum": 9007199254740991
+          },
+          "hostname": {
+            "description": "Hostname to listen on",
+            "type": "string"
+          },
+          "mdns": {
+            "description": "Enable mDNS service discovery",
+            "type": "boolean"
+          }
+        },
+        "additionalProperties": false
+      },
       "AgentConfig": {
       "AgentConfig": {
         "type": "object",
         "type": "object",
         "properties": {
         "properties": {
@@ -8170,6 +8191,9 @@
               }
               }
             }
             }
           },
           },
+          "server": {
+            "$ref": "#/components/schemas/ServerConfig"
+          },
           "command": {
           "command": {
             "description": "Command configuration, see https://opencode.ai/docs/commands",
             "description": "Command configuration, see https://opencode.ai/docs/commands",
             "type": "object",
             "type": "object",