(agentId: string)
| 487 | export const agentLogsKey = (agentId: string) => ["agents", agentId, "logs"]; |
| 488 | |
| 489 | export const agentLogs = (agentId: string) => { |
| 490 | return { |
| 491 | queryKey: agentLogsKey(agentId), |
| 492 | queryFn: () => API.getWorkspaceAgentLogs(agentId), |
| 493 | ...disabledRefetchOptions, |
| 494 | } satisfies UseQueryOptions<WorkspaceAgentLog[]>; |
| 495 | }; |
| 496 | |
| 497 | // workspace usage options |
| 498 | interface WorkspaceUsageOptions { |
no test coverage detected