Download packages/server/src/api.ts from SaylorTwift/opencode: direct link, hf CLI and curl.
- Browser
- Download file 319 Bytes
-
https://huggingface.co/SaylorTwift/opencode/resolve/eb1202c08d0fcc3e89b18b16bcc802e692e97016/packages/server/src/api.ts
- Command line
-
hf download hf://SaylorTwift/opencode@eb1202c08d0fcc3e89b18b16bcc802e692e97016/packages/server/src/api.ts
-
curl -L -o api.ts https://huggingface.co/SaylorTwift/opencode/resolve/eb1202c08d0fcc3e89b18b16bcc802e692e97016/packages/server/src/api.ts
319 Bytes
| import { makeDefaultApi } from "@opencode-ai/protocol/api" | |
| import { LocationMiddleware } from "./location" | |
| import { SessionLocationMiddleware } from "./middleware/session-location" | |
| export const Api = makeDefaultApi({ | |
| locationMiddleware: LocationMiddleware, | |
| sessionLocationMiddleware: SessionLocationMiddleware, | |
| }) | |