(params: WriteFilesParams)
| 102 | constructor(private client: AgentClient) {} |
| 103 | |
| 104 | async write(params: WriteFilesParams): Promise<void> { |
| 105 | return this.client._fetch<void>(`/v1/sandboxes/${params.sandboxId}/files`, { |
| 106 | method: "POST", |
| 107 | body: JSON.stringify({ files: params.files }), |
| 108 | }) |
| 109 | } |
| 110 | |
| 111 | async read(params: ReadFileParams): Promise<FileContent> { |
| 112 | const encodedPath = encodeURIComponent(params.path) |
no test coverage detected