opencode-agent[bot] 3 місяців тому
батько
коміт
480aa8b23b
2 змінених файлів з 2 додано та 3 видалено
  1. 1 2
      packages/opencode/src/cli/cmd/export.ts
  2. 1 1
      packages/sdk/openapi.json

+ 1 - 2
packages/opencode/src/cli/cmd/export.ts

@@ -27,8 +27,7 @@ function diff(kind: string, diffs: { file: string; patch?: string }[] | undefine
   return diffs?.map((item, i) => ({
     ...item,
     file: redact(`${kind}-file`, String(i), item.file),
-    patch:
-      item.patch === undefined ? undefined : redact(`${kind}-patch`, String(i), item.patch),
+    patch: item.patch === undefined ? undefined : redact(`${kind}-patch`, String(i), item.patch),
   }))
 }
 

+ 1 - 1
packages/sdk/openapi.json

@@ -9120,7 +9120,7 @@
             "enum": ["added", "deleted", "modified"]
           }
         },
-        "required": ["file", "patch", "additions", "deletions"],
+        "required": ["file", "additions", "deletions"],
         "additionalProperties": false
       },
       "ProviderAuthError": {