Multi-Agent Collaboration for Team and Friends
TypeScript agent-automationagent-orchestrationagent-workflowai-agentsai-collaborationai-memoryai-workforceautonomous-agentsclaude-codeclaude-code-skillscodexcoding-agentmulti-agentmultiple-agentone-person-businessone-person-companyone-person-teamopencodesolopreneur
feat(web): add email_handle to agentToResponse, add emailToResponse
Generf8638282d92b
diff --git a/src/web/src/lib/api/responses.ts b/src/web/src/lib/api/responses.tsindex 4fed98a03..efb70145e 100644--- a/src/web/src/lib/api/responses.ts+++ b/src/web/src/lib/api/responses.ts@@ -41,11 +41,26 @@ export function agentToResponse(a: any) {runtime_config: rc,status: a.status,max_concurrent_tasks: a.maxConcurrentTasks,+ email_handle: a.emailHandle || null,created_at: formatTimestamp(a.createdAt),updated_at: formatTimestamp(a.updatedAt),};}+export function emailToResponse(e: any) {+ return {+ id: e.id,+ agent_id: e.agentId,+ from_email: e.fromEmail,+ to_email: e.toEmail,+ subject: e.subject,+ r2_key: e.r2Key,+ is_whitelisted: !!e.isWhitelisted,+ forwarded: !!e.forwarded,+ created_at: formatTimestamp(e.createdAt),+ };+}+export function taskToResponse(t: {id: string;agentId: string;