37 files changed
Libra does not show diffs here. View the full diff on GitHub.
- modifiedapps/server/src/db/aop-schema.ts+16-0
- addedapps/server/src/db/migrations/0056_agent_executions_llm_calls.sql+4-0
- modifiedapps/server/src/db/migrations/meta/_journal.json+7-0
- modifiedapps/server/src/mastra/agents/analyzer-agent.ts+27-1
- modifiedapps/server/src/mastra/agents/automation-agent.ts+61-0
- modifiedapps/server/src/mastra/agents/chat-agent.ts+69-6
- modifiedapps/server/src/mastra/agents/on-event-execution-agent.ts+22-3
- modifiedapps/server/src/mastra/agents/on-event-orchestrator-agent.ts+51-1
- modifiedapps/server/src/mastra/agents/sub-agents/orchestrator-agent.ts+50-1
- modifiedapps/server/src/mastra/index.ts+24-1
- modifiedapps/server/src/mastra/operations/operation-registry.ts+9-2
- modifiedapps/server/src/mastra/routeHandlers/imessage/imessage-bot-chat.ts+7-2
- modifiedapps/server/src/mastra/routeHandlers/slack/slack-bot-chat.ts+7-2
- modifiedapps/server/src/mastra/routeHandlers/sms/sms-bot-chat.ts+7-2
- modifiedapps/server/src/mastra/tools/event-execution/__tests__/drafter-executor-prompt.test.ts+4-0
- modifiedapps/server/src/mastra/tools/event-execution/orchestrator-dispatch-tools.ts+28-6
- modifiedapps/server/src/mastra/tools/task/updateNextStepsAndTasksTool.ts+26-5
- modifiedapps/server/src/mastra/utils/__tests__/prompt-cache-fetch.test.ts+96-2
- modifiedapps/server/src/mastra/utils/aop-selection.ts+10-4
- modifiedapps/server/src/mastra/utils/company-domain-assignment.ts+11-4
- modifiedapps/server/src/mastra/utils/conversation-field-updates.ts+42-11
- modifiedapps/server/src/mastra/utils/event-summarization.ts+11-6
- modifiedapps/server/src/mastra/utils/execution/execute-analyzer.ts+30-14
- modifiedapps/server/src/mastra/utils/execution/execute-orchestrator.ts+24-11
- modifiedapps/server/src/mastra/utils/prompt-cache-fetch.ts+79-11
- modifiedapps/server/src/mastra/utils/strategist-updates.ts+27-11
- modifiedapps/server/src/mastra/workflows/chat/chat-workflow.ts+9-3
- modifiedapps/server/src/mastra/workflows/event-execution/on-event-agent-execution-workflow.ts+33-17
- addedapps/server/src/services/agent-action-queue/llm-calls.ts+44-0
- modifiedapps/server/src/services/aop/__tests__/automations-service.test.ts+14-0
- modifiedapps/server/src/services/aop/automations.ts+41-17cron-task-queue.processAopAutomations
- modifiedapps/server/src/services/crm/stage-classification.ts+9-2
- addedapps/server/src/services/llm/__tests__/oss-tasks.test.ts+68-0
- modifiedapps/server/src/services/llm/models.ts+10-5
- addedapps/server/src/services/llm/oss-tasks.ts+118-0
- addedapps/server/src/services/posthog/__tests__/oss-flags.test.ts+47-0
- modifiedapps/server/src/services/posthog/posthog.ts+21-0