(path: string, directory: string, init: RequestInit = {})
| 40 | } |
| 41 | |
| 42 | function requestServer(path: string, directory: string, init: RequestInit = {}) { |
| 43 | const headers = new Headers(init.headers) |
| 44 | headers.set("x-opencode-directory", directory) |
| 45 | return Effect.promise(() => Promise.resolve(Server.Default().app.request(path, { ...init, headers }))) |
| 46 | } |
| 47 | |
| 48 | function localAdapter(directory: string): WorkspaceAdapter { |
| 49 | return { |
no test coverage detected