Kaynağa Gözat

chore: generate

opencode-agent[bot] 3 hafta önce
ebeveyn
işleme
21023337fa

+ 3 - 2
packages/opencode/test/cli/tui/theme-store.test.ts

@@ -1,7 +1,8 @@
 import { expect, test } from "bun:test"
 
-const { DEFAULT_THEMES, allThemes, addTheme, hasTheme, resolveTheme } =
-  await import("../../../src/cli/cmd/tui/context/theme")
+const { DEFAULT_THEMES, allThemes, addTheme, hasTheme, resolveTheme } = await import(
+  "../../../src/cli/cmd/tui/context/theme"
+)
 
 test("addTheme writes into module theme store", () => {
   const name = `plugin-theme-${Date.now()}`

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

@@ -1447,6 +1447,10 @@ export type Config = {
   watcher?: {
     ignore?: Array<string>
   }
+  /**
+   * Enable or disable snapshot tracking. When false, filesystem snapshots are not recorded and undoing or reverting will not undo/redo file changes. Defaults to true.
+   */
+  snapshot?: boolean
   plugin?: Array<
     | string
     | [
@@ -1456,10 +1460,6 @@ export type Config = {
         },
       ]
   >
-  /**
-   * Enable or disable snapshot tracking. When false, filesystem snapshots are not recorded and undoing or reverting will not undo/redo file changes. Defaults to true.
-   */
-  snapshot?: boolean
   /**
    * Control sharing behavior:'manual' allows manual sharing via commands, 'auto' enables automatic sharing, 'disabled' disables all sharing
    */

+ 24 - 5
packages/sdk/openapi.json

@@ -10961,16 +10961,35 @@
               }
             }
           },
+          "snapshot": {
+            "description": "Enable or disable snapshot tracking. When false, filesystem snapshots are not recorded and undoing or reverting will not undo/redo file changes. Defaults to true.",
+            "type": "boolean"
+          },
           "plugin": {
             "type": "array",
             "items": {
-              "type": "string"
+              "anyOf": [
+                {
+                  "type": "string"
+                },
+                {
+                  "type": "array",
+                  "prefixItems": [
+                    {
+                      "type": "string"
+                    },
+                    {
+                      "type": "object",
+                      "propertyNames": {
+                        "type": "string"
+                      },
+                      "additionalProperties": {}
+                    }
+                  ]
+                }
+              ]
             }
           },
-          "snapshot": {
-            "description": "Enable or disable snapshot tracking. When false, filesystem snapshots are not recorded and undoing or reverting will not undo/redo file changes. Defaults to true.",
-            "type": "boolean"
-          },
           "share": {
             "description": "Control sharing behavior:'manual' allows manual sharing via commands, 'auto' enables automatic sharing, 'disabled' disables all sharing",
             "type": "string",