auto-sync: 2026-05-17 11:27:28

This commit is contained in:
cfdaily
2026-05-17 11:27:28 +08:00
parent 9e7bb90eda
commit 0fdc8cad52
+4 -4
View File
@@ -93,7 +93,7 @@ export const api = {
try {
const data = await fetchJ<{ tasks: any[] }>(`${API_BASE}/api/projects/${p}/tasks`);
for (const t of (data.tasks || []).map(adaptTask)) {
t.sourceMeta = { ...t.sourceMeta, project_id: p, project_name: projectsMap[p]?.name || p };
t.sourceMeta = { ...t.sourceMeta, project_id: p, project_name: (projectsMap.projects as Record<string, any>)[p]?.name || p };
allTasks.push(t);
}
} catch { /* skip */ }
@@ -179,9 +179,9 @@ export const api = {
// ── 操作类 ──
setModel: async (agentId: string, model: string): Promise<ActionResult> => ({ ok: false, error: 'Not implemented' }),
setDispatchChannel: async (channel: string): Promise<ActionResult> => ({ ok: false, error: 'Not implemented' }),
agentWake: async (agentId: string): Promise<ActionResult> => ({ ok: false, error: 'Not implemented' }),
setModel: async (_agentId: string, _model: string): Promise<ActionResult> => ({ ok: false, error: 'Not implemented' }),
setDispatchChannel: async (_channel: string): Promise<ActionResult> => ({ ok: false, error: 'Not implemented' }),
agentWake: async (_agentId: string): Promise<ActionResult> => ({ ok: false, error: 'Not implemented' }),
taskAction: async (taskId: string, action: string, reason: string): Promise<ActionResult> => {
try {