(action: any)
| 149 | |
| 150 | // 创建 dispatch 适配器以兼容 ObjectAIService |
| 151 | const dispatchAdapter = (action: any) => { |
| 152 | switch (action.type) { |
| 153 | case 'ADD_AI_TASK': |
| 154 | stores.aiTasks.addTask(action.payload.task) |
| 155 | break |
| 156 | case 'UPDATE_AI_TASK': |
| 157 | stores.aiTasks.updateTask(action.payload.taskId, action.payload.updates) |
| 158 | break |
| 159 | default: |
| 160 | console.warn('Unknown action type:', action.type) |
| 161 | } |
| 162 | } |
| 163 | |
| 164 | const objectAIService = createObjectAIService( |
| 165 | llmConfig, |
nothing calls this directly
no outgoing calls
no test coverage detected