chore: generate

This commit is contained in:
opencode-agent[bot] 2026-07-23 08:01:01 +00:00
parent d03e0c5e54
commit 347510a73b

View file

@ -21,7 +21,7 @@ function setup(protocol: "v1" | "v2") {
}
if (request.method === "POST" && request.url.endsWith("/prompt_async"))
return new Response(undefined, { status: 204 })
if (request.method === "POST" && request.url.endsWith("/prompt")) {
if (request.method === "POST" && request.url.endsWith("/prompt")) {
return Response.json({
admittedSeq: 1,
id: "msg_1",
@ -30,10 +30,10 @@ function setup(protocol: "v1" | "v2") {
type: "user",
data: { text: "hello" },
delivery: "steer",
})
}
if (request.method === "GET") return Response.json([])
return new Response(undefined, { status: 204 })
})
}
if (request.method === "GET") return Response.json([])
return new Response(undefined, { status: 204 })
},
{ preconnect: globalThis.fetch.preconnect },
)