Parcourir la source

chore: generate

opencode-agent[bot] il y a 1 semaine
Parent
commit
f9aa3d77cd
2 fichiers modifiés avec 2 ajouts et 9 suppressions
  1. 1 3
      packages/opencode/src/config/mcp.ts
  2. 1 6
      packages/opencode/src/server/proxy.ts

+ 1 - 3
packages/opencode/src/config/mcp.ts

@@ -49,9 +49,7 @@ export const Remote = z
     oauth: z
       .union([OAuth, z.literal(false)])
       .optional()
-      .describe(
-        "OAuth authentication configuration for the MCP server. Set to false to disable OAuth auto-detection.",
-      ),
+      .describe("OAuth authentication configuration for the MCP server. Set to false to disable OAuth auto-detection."),
     timeout: z
       .number()
       .int()

+ 1 - 6
packages/opencode/src/server/proxy.ts

@@ -103,12 +103,7 @@ const app = (upgrade: UpgradeWebSocket) =>
 
 const log = Log.Default.clone().tag("service", "server-proxy")
 
-export async function http(
-  url: string | URL,
-  extra: HeadersInit | undefined,
-  req: Request,
-  workspaceID: WorkspaceID,
-) {
+export async function http(url: string | URL, extra: HeadersInit | undefined, req: Request, workspaceID: WorkspaceID) {
   if (!Workspace.isSyncing(workspaceID)) {
     return new Response(`broken sync connection for workspace: ${workspaceID}`, {
       status: 503,