feat(httpapi): bridge instance dispose endpoint (#24368)

This commit is contained in:
Kit Langton
2026-04-25 15:24:07 -04:00
committed by GitHub
parent cd64b67038
commit b4f4134e81
6 changed files with 68 additions and 1 deletions
@@ -19,6 +19,7 @@ import { ProjectApi, projectHandlers } from "./project"
import { ProviderApi, providerHandlers } from "./provider"
import { QuestionApi, questionHandlers } from "./question"
import { WorkspaceApi, workspaceHandlers } from "./workspace"
import { disposeMiddleware } from "./lifecycle"
import { memoMap } from "@opencode-ai/core/effect/memo-map"
const Query = Schema.Struct({
@@ -83,6 +84,7 @@ export const routes = Layer.mergeAll(
export const webHandler = lazy(() =>
HttpRouter.toWebHandler(routes, {
memoMap,
middleware: disposeMiddleware,
}),
)