research: delete Hono backend (do not merge) (#25667)

This commit is contained in:
Kit Langton 2026-05-09 09:10:42 -04:00 committed by GitHub
commit 28b03595bf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
81 changed files with 225 additions and 7567 deletions

View file

@ -9,16 +9,9 @@ import path from "path"
import { createClient } from "@hey-api/openapi-ts"
const openapiSource = process.env.OPENCODE_SDK_OPENAPI === "hono" ? "hono" : "httpapi"
const opencode = path.resolve(dir, "../../opencode")
// `bun dev generate` now derives the spec from the Effect HttpApi contract by
// default; pass `--hono` to fall back to the legacy Hono spec for parity diffs.
if (openapiSource === "httpapi") {
await $`bun dev generate > ${dir}/openapi.json`.cwd(opencode)
} else {
await $`bun dev generate --hono > ${dir}/openapi.json`.cwd(opencode)
}
await $`bun dev generate > ${dir}/openapi.json`.cwd(opencode)
await createClient({
input: "./openapi.json",