Explorar el Código

chore: generate

opencode-agent[bot] hace 3 meses
padre
commit
cb587b677b

+ 3 - 3
packages/core/test/location-filesystem.test.ts

@@ -225,9 +225,9 @@ describe("FileSystem", () => {
   it.live("rejects aliases when project references are disabled", () =>
   it.live("rejects aliases when project references are disabled", () =>
     withTmp((directory) =>
     withTmp((directory) =>
       Effect.gen(function* () {
       Effect.gen(function* () {
-        expect(
-          Exit.isFailure(yield* (yield* FileSystem.Service).list({ reference: "docs" }).pipe(Effect.exit)),
-        ).toBe(true)
+        expect(Exit.isFailure(yield* (yield* FileSystem.Service).list({ reference: "docs" }).pipe(Effect.exit))).toBe(
+          true,
+        )
       }).pipe(provide(directory)),
       }).pipe(provide(directory)),
     ),
     ),
   )
   )

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

@@ -46,15 +46,16 @@ export type Event =
   | EventSessionError
   | EventSessionError
   | EventInstallationUpdated
   | EventInstallationUpdated
   | EventInstallationUpdateAvailable
   | EventInstallationUpdateAvailable
-  | EventFileEdited
-  | EventLspUpdated
-  | EventPermissionAsked
-  | EventPermissionReplied
   | EventPermissionV2Asked
   | EventPermissionV2Asked
   | EventPermissionV2Replied
   | EventPermissionV2Replied
+  | EventFileEdited
   | EventAccountAdded
   | EventAccountAdded
   | EventAccountRemoved
   | EventAccountRemoved
   | EventAccountSwitched
   | EventAccountSwitched
+  | EventFileWatcherUpdated
+  | EventLspUpdated
+  | EventPermissionAsked
+  | EventPermissionReplied
   | EventTuiPromptAppend2
   | EventTuiPromptAppend2
   | EventTuiCommandExecute2
   | EventTuiCommandExecute2
   | EventTuiToastShow2
   | EventTuiToastShow2
@@ -62,7 +63,6 @@ export type Event =
   | EventMcpToolsChanged
   | EventMcpToolsChanged
   | EventMcpBrowserOpenFailed
   | EventMcpBrowserOpenFailed
   | EventCommandExecuted
   | EventCommandExecuted
-  | EventFileWatcherUpdated
   | EventProjectUpdated
   | EventProjectUpdated
   | EventPtyCreated
   | EventPtyCreated
   | EventPtyUpdated
   | EventPtyUpdated
@@ -1128,47 +1128,6 @@ export type GlobalEvent = {
           version: string
           version: string
         }
         }
       }
       }
-    | {
-        id: string
-        type: "file.edited"
-        properties: {
-          file: string
-        }
-      }
-    | {
-        id: string
-        type: "lsp.updated"
-        properties: {
-          [key: string]: unknown
-        }
-      }
-    | {
-        id: string
-        type: "permission.asked"
-        properties: {
-          id: string
-          sessionID: string
-          permission: string
-          patterns: Array<string>
-          metadata: {
-            [key: string]: unknown
-          }
-          always: Array<string>
-          tool?: {
-            messageID: string
-            callID: string
-          }
-        }
-      }
-    | {
-        id: string
-        type: "permission.replied"
-        properties: {
-          sessionID: string
-          requestID: string
-          reply: "once" | "always" | "reject"
-        }
-      }
     | {
     | {
         id: string
         id: string
         type: "permission.v2.asked"
         type: "permission.v2.asked"
@@ -1193,6 +1152,13 @@ export type GlobalEvent = {
           reply: PermissionV2Reply
           reply: PermissionV2Reply
         }
         }
       }
       }
+    | {
+        id: string
+        type: "file.edited"
+        properties: {
+          file: string
+        }
+      }
     | {
     | {
         id: string
         id: string
         type: "account.added"
         type: "account.added"
@@ -1216,6 +1182,48 @@ export type GlobalEvent = {
           to?: string
           to?: string
         }
         }
       }
       }
+    | {
+        id: string
+        type: "file.watcher.updated"
+        properties: {
+          file: string
+          event: "add" | "change" | "unlink"
+        }
+      }
+    | {
+        id: string
+        type: "lsp.updated"
+        properties: {
+          [key: string]: unknown
+        }
+      }
+    | {
+        id: string
+        type: "permission.asked"
+        properties: {
+          id: string
+          sessionID: string
+          permission: string
+          patterns: Array<string>
+          metadata: {
+            [key: string]: unknown
+          }
+          always: Array<string>
+          tool?: {
+            messageID: string
+            callID: string
+          }
+        }
+      }
+    | {
+        id: string
+        type: "permission.replied"
+        properties: {
+          sessionID: string
+          requestID: string
+          reply: "once" | "always" | "reject"
+        }
+      }
     | {
     | {
         id: string
         id: string
         type: "tui.prompt.append"
         type: "tui.prompt.append"
@@ -1292,14 +1300,6 @@ export type GlobalEvent = {
           messageID: string
           messageID: string
         }
         }
       }
       }
-    | {
-        id: string
-        type: "file.watcher.updated"
-        properties: {
-          file: string
-          event: "add" | "change" | "unlink"
-        }
-      }
     | {
     | {
         id: string
         id: string
         type: "project.updated"
         type: "project.updated"
@@ -4272,51 +4272,6 @@ export type EventInstallationUpdateAvailable = {
   }
   }
 }
 }
 
 
-export type EventFileEdited = {
-  id: string
-  type: "file.edited"
-  properties: {
-    file: string
-  }
-}
-
-export type EventLspUpdated = {
-  id: string
-  type: "lsp.updated"
-  properties: {
-    [key: string]: unknown
-  }
-}
-
-export type EventPermissionAsked = {
-  id: string
-  type: "permission.asked"
-  properties: {
-    id: string
-    sessionID: string
-    permission: string
-    patterns: Array<string>
-    metadata: {
-      [key: string]: unknown
-    }
-    always: Array<string>
-    tool?: {
-      messageID: string
-      callID: string
-    }
-  }
-}
-
-export type EventPermissionReplied = {
-  id: string
-  type: "permission.replied"
-  properties: {
-    sessionID: string
-    requestID: string
-    reply: "once" | "always" | "reject"
-  }
-}
-
 export type EventPermissionV2Asked = {
 export type EventPermissionV2Asked = {
   id: string
   id: string
   type: "permission.v2.asked"
   type: "permission.v2.asked"
@@ -4343,6 +4298,14 @@ export type EventPermissionV2Replied = {
   }
   }
 }
 }
 
 
+export type EventFileEdited = {
+  id: string
+  type: "file.edited"
+  properties: {
+    file: string
+  }
+}
+
 export type EventAccountAdded = {
 export type EventAccountAdded = {
   id: string
   id: string
   type: "account.added"
   type: "account.added"
@@ -4369,6 +4332,52 @@ export type EventAccountSwitched = {
   }
   }
 }
 }
 
 
+export type EventFileWatcherUpdated = {
+  id: string
+  type: "file.watcher.updated"
+  properties: {
+    file: string
+    event: "add" | "change" | "unlink"
+  }
+}
+
+export type EventLspUpdated = {
+  id: string
+  type: "lsp.updated"
+  properties: {
+    [key: string]: unknown
+  }
+}
+
+export type EventPermissionAsked = {
+  id: string
+  type: "permission.asked"
+  properties: {
+    id: string
+    sessionID: string
+    permission: string
+    patterns: Array<string>
+    metadata: {
+      [key: string]: unknown
+    }
+    always: Array<string>
+    tool?: {
+      messageID: string
+      callID: string
+    }
+  }
+}
+
+export type EventPermissionReplied = {
+  id: string
+  type: "permission.replied"
+  properties: {
+    sessionID: string
+    requestID: string
+    reply: "once" | "always" | "reject"
+  }
+}
+
 export type EventMcpToolsChanged = {
 export type EventMcpToolsChanged = {
   id: string
   id: string
   type: "mcp.tools.changed"
   type: "mcp.tools.changed"
@@ -4397,15 +4406,6 @@ export type EventCommandExecuted = {
   }
   }
 }
 }
 
 
-export type EventFileWatcherUpdated = {
-  id: string
-  type: "file.watcher.updated"
-  properties: {
-    file: string
-    event: "add" | "change" | "unlink"
-  }
-}
-
 export type EventProjectUpdated = {
 export type EventProjectUpdated = {
   id: string
   id: string
   type: "project.updated"
   type: "project.updated"

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 346 - 318
packages/sdk/openapi.json


Algunos archivos no se mostraron porque demasiados archivos cambiaron en este cambio