GitHub Action 1 месяц назад
Родитель
Сommit
634559760a
2 измененных файлов с 14 добавлено и 4 удалено
  1. 6 4
      packages/sdk/js/src/v2/gen/types.gen.ts
  2. 8 0
      packages/sdk/openapi.json

+ 6 - 4
packages/sdk/js/src/v2/gen/types.gen.ts

@@ -1151,6 +1151,11 @@ export type KeybindsConfig = {
   tips_toggle?: string
 }
 
+/**
+ * Log level
+ */
+export type LogLevel = "DEBUG" | "INFO" | "WARN" | "ERROR"
+
 /**
  * Server configuration for opencode serve and web commands
  */
@@ -1406,10 +1411,7 @@ export type Config = {
    */
   theme?: string
   keybinds?: KeybindsConfig
-  /**
-   * Log level
-   */
-  logLevel?: "DEBUG" | "INFO" | "WARN" | "ERROR"
+  logLevel?: LogLevel
   /**
    * TUI specific settings
    */

+ 8 - 0
packages/sdk/openapi.json

@@ -7687,6 +7687,11 @@
         },
         "additionalProperties": false
       },
+      "LogLevel": {
+        "description": "Log level",
+        "type": "string",
+        "enum": ["DEBUG", "INFO", "WARN", "ERROR"]
+      },
       "ServerConfig": {
         "description": "Server configuration for opencode serve and web commands",
         "type": "object",
@@ -8164,6 +8169,9 @@
           "keybinds": {
             "$ref": "#/components/schemas/KeybindsConfig"
           },
+          "logLevel": {
+            "$ref": "#/components/schemas/LogLevel"
+          },
           "tui": {
             "description": "TUI specific settings",
             "type": "object",