(projectId: string, serverId: string, payload: { path: string; content?: string; encoding?: string; operation?: string })
| 107 | } |
| 108 | |
| 109 | export async function writeCliFile(projectId: string, serverId: string, payload: { path: string; content?: string; encoding?: string; operation?: string }) { |
| 110 | const response = await apiClient.post(`/api/v1/projects/${projectId}/cli/servers/${serverId}/file`, payload) |
| 111 | return response.data as { success: boolean } |
| 112 | } |
| 113 | |
| 114 | export async function deleteCliFile(projectId: string, serverId: string, path: string, recursive = false) { |
| 115 | const response = await apiClient.delete(`/api/v1/projects/${projectId}/cli/servers/${serverId}/file`, { |
no test coverage detected