Libra CodeHub

CedarCopilot/cedar-mail

Branch: staging

feat(chat): flag-gated Master-agent family tool surface

merged#2555CedarCopilot

CedarCopilot wants to merge 14 commits into staging from tool-surface/master-agent-families

48 files changed

Libra does not show diffs here. View the full diff on GitHub.

  • modifiedapps/mail/atoms/chatAtoms.ts+7-4
  • modifiedapps/mail/modules/cedar-os/src/cedar-os-components/chatInput/ReasoningEffortPicker.tsx+15-1
  • modifiedapps/mail/modules/cedar-os/src/store/agentConnection/agentConnectionSlice.ts+3-2
  • modifiedapps/server/src/lib/logging/perf-timer.ts+49-0
  • modifiedapps/server/src/mastra/agents/chat-agent.ts+201-5
  • modifiedapps/server/src/mastra/context/values.ts+7-0
  • modifiedapps/server/src/mastra/index.ts+16-2
  • modifiedapps/server/src/mastra/mcp/external/__tests__/scope-map.test.ts+19-2
  • modifiedapps/server/src/mastra/mcp/external/scope-map.ts+32-1
  • modifiedapps/server/src/mastra/operations/operation-registry.ts+19-3
  • modifiedapps/server/src/mastra/routeHandlers/imessage/imessage-bot-chat.ts+30-18
  • addedapps/server/src/mastra/routeHandlers/slack/__tests__/slack-turn-persistence.test.ts+93-0
  • modifiedapps/server/src/mastra/routeHandlers/slack/slack-bot-chat.ts+116-29
  • modifiedapps/server/src/mastra/routeHandlers/sms/sms-bot-chat.ts+30-17
  • modifiedapps/server/src/mastra/skills/account-config/contextual-instructions.ts+78-14
  • addedapps/server/src/mastra/tools/__tests__/family-tool-names.test.ts+96-0
  • addedapps/server/src/mastra/tools/__tests__/master-surface.test.ts+113-0
  • addedapps/server/src/mastra/tools/chat/chatContextTool.ts+77-0
  • modifiedapps/server/src/mastra/tools/chat/resolveAndAttachTool.ts+1-1
  • addedapps/server/src/mastra/tools/family-tool-names.ts+198-0
  • addedapps/server/src/mastra/tools/integrations/externalMcpTool.ts+92-0
  • modifiedapps/server/src/mastra/tools/integrations/runCodeExecutorTool.ts+1-1
  • addedapps/server/src/mastra/tools/master-surface.ts+68-0
  • modifiedapps/server/src/mastra/tools/research/researchTool.ts+81-1
  • addedapps/server/src/mastra/tools/skills/delegateTool.ts+84-0
  • modifiedapps/server/src/mastra/tools/skills/loadSkillTool.ts+11-2
  • modifiedapps/server/src/mastra/tools/skills/spawnSubagentTool.ts+59-51
  • modifiedapps/server/src/mastra/tools/ui-config/uiConfigTool.ts+54-30
  • addedapps/server/src/mastra/workflows/chat/__tests__/surface-context-parity.test.ts+197-0
  • modifiedapps/server/src/mastra/workflows/chat/chat-org-rules.ts+5-60
  • modifiedapps/server/src/mastra/workflows/chat/chat-workflow.ts+298-198
  • modifiedapps/server/src/mastra/workflows/chat/harness/__tests__/routing.test.ts+28-0
  • modifiedapps/server/src/mastra/workflows/chat/harness/legacy-tool-name-map.ts+3-66
  • modifiedapps/server/src/mastra/workflows/chat/harness/request-context.ts+4-0
  • modifiedapps/server/src/mastra/workflows/chat/harness/routing.ts+14-1
  • modifiedapps/server/src/mastra/workflows/chat/harness/subagents.ts+19-31
  • modifiedapps/server/src/mastra/workflows/chat/harness/types.ts+8-0
  • modifiedapps/server/src/mastra/workflows/chat/harness/user-mcp-servers.ts+93-72
  • addedapps/server/src/mastra/workflows/chat/headless-channel-rules.ts+36-0
  • addedapps/server/src/mastra/workflows/chat/preflight-task.ts+94-0
  • modifiedapps/server/src/mastra/workflows/chat/run-chat-agent-sdk.ts+60-27
  • addedapps/server/src/mastra/workflows/chat/shared-chat-context.ts+275-0
  • modifiedapps/server/src/services/playbook/subagents.ts+14-1
  • modifiedapps/server/src/services/posthog/posthog.ts+34-16
  • addeddocs/design/cedar-fast-chat-latency-investigation.md+118-0
  • addeddocs/design/master-agent-tool-families-migration.md+334-0
  • addeddocs/design/retiring-the-granular-tool-surface.md+169-0
  • addeddocs/design/unified-chat-surface-workflow.md+228-0