// 兼容层 - 重定向到新的 Agent 客户端
// 新代码请使用 @/utils/agentClient

import { executeAgentOperation } from './agentClient';

export {
  executeAgentOperation as executeAdminOperation,
  executeAgentOperation,
  productAgent as productOperations,
  serviceAgent,
  managerAgent,
  marketingAgent,
  callAgent,
  getAgentForOperation,
  getFunctionForOperation,
  AGENT_FUNCTIONS,
  orderOperations,
  userOperations,
  afterSalesOperations,
  categoryOperations,
  brandOperations,
  bannerOperations,
  analyticsOperations,
} from './agentClient';

export async function executeBatchOperations(
  operations: Array<{ operation: string; params: Record<string, any> }>
) {
  return Promise.all(operations.map(({ operation, params }) => 
    executeAgentOperation(operation, params)
  ));
}
