Aiden Cline 2 месяцев назад
Родитель
Сommit
7396d495ee

+ 2 - 2
packages/opencode/src/session/message-v2.ts

@@ -32,7 +32,7 @@ export namespace MessageV2 {
       isRetryable: z.boolean(),
       responseHeaders: z.record(z.string(), z.string()).optional(),
       responseBody: z.string().optional(),
-      details: z.record(z.string(), z.string()).optional(),
+      metadata: z.record(z.string(), z.string()).optional(),
     }),
   )
   export type APIError = z.infer<typeof APIError.Schema>
@@ -617,7 +617,7 @@ export namespace MessageV2 {
           {
             message: "Connection reset by server",
             isRetryable: true,
-            details: {
+            metadata: {
               code: (e as SystemError).code ?? "",
               syscall: (e as SystemError).syscall ?? "",
               message: (e as SystemError).message ?? "",

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

@@ -131,7 +131,7 @@ export type ApiError = {
       [key: string]: string
     }
     responseBody?: string
-    details?: {
+    metadata?: {
       [key: string]: string
     }
   }

+ 1 - 1
packages/sdk/openapi.json

@@ -5337,7 +5337,7 @@
               "responseBody": {
                 "type": "string"
               },
-              "details": {
+              "metadata": {
                 "type": "object",
                 "propertyNames": {
                   "type": "string"