import api from './client' import type { Deliverable } from '../types' export interface CommandResult { success: boolean operation?: 'create' | 'update' | 'batch_update' | 'question' count?: number question?: string data?: Deliverable[] error?: string } export const sendCommand = (sheetId: string, command: string, yoloMode: boolean, history: string): Promise => api.post(`/sheets/${sheetId}/command`, { command, yolo_mode: yoloMode, history }).then(r => r.data) export const updateSheetClient = (sheetId: string, clientId: string) => api.patch(`/sheets/${sheetId}/client`, { client_id: clientId })