(path: string, directory: string, init: RequestInit = {})
| 27 | } |
| 28 | |
| 29 | export function requestInDirectory(path: string, directory: string, init: RequestInit = {}) { |
| 30 | const headers = new Headers(init.headers) |
| 31 | headers.set("x-opencode-directory", directory) |
| 32 | return request(path, { ...init, headers }) |
| 33 | } |