chore: generate
This commit is contained in:
@@ -49,9 +49,7 @@ export const Remote = z
|
|||||||
oauth: z
|
oauth: z
|
||||||
.union([OAuth, z.literal(false)])
|
.union([OAuth, z.literal(false)])
|
||||||
.optional()
|
.optional()
|
||||||
.describe(
|
.describe("OAuth authentication configuration for the MCP server. Set to false to disable OAuth auto-detection."),
|
||||||
"OAuth authentication configuration for the MCP server. Set to false to disable OAuth auto-detection.",
|
|
||||||
),
|
|
||||||
timeout: z
|
timeout: z
|
||||||
.number()
|
.number()
|
||||||
.int()
|
.int()
|
||||||
|
|||||||
@@ -103,12 +103,7 @@ const app = (upgrade: UpgradeWebSocket) =>
|
|||||||
|
|
||||||
const log = Log.Default.clone().tag("service", "server-proxy")
|
const log = Log.Default.clone().tag("service", "server-proxy")
|
||||||
|
|
||||||
export async function http(
|
export async function http(url: string | URL, extra: HeadersInit | undefined, req: Request, workspaceID: WorkspaceID) {
|
||||||
url: string | URL,
|
|
||||||
extra: HeadersInit | undefined,
|
|
||||||
req: Request,
|
|
||||||
workspaceID: WorkspaceID,
|
|
||||||
) {
|
|
||||||
if (!Workspace.isSyncing(workspaceID)) {
|
if (!Workspace.isSyncing(workspaceID)) {
|
||||||
return new Response(`broken sync connection for workspace: ${workspaceID}`, {
|
return new Response(`broken sync connection for workspace: ${workspaceID}`, {
|
||||||
status: 503,
|
status: 503,
|
||||||
|
|||||||
Reference in New Issue
Block a user