Libra CodeHub

CedarCopilot/cedar-mail

Branch: staging

feat(chat): resolve delegate identity via per-turn token, not a dedicated MCP server

merged#2735CedarCopilot

CedarCopilot wants to merge 3 commits into staging from feat/delegate-token-attribution

12 files changed

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

  • modifiedapps/server/src/mastra/workflows/chat/__tests__/agent-bound-chat.test.ts+56-5
  • addedapps/server/src/mastra/workflows/chat/harness/__tests__/delegate-tokens.test.ts+84-0
  • modifiedapps/server/src/mastra/workflows/chat/harness/__tests__/delegate-tool-scoping.test.ts+17-196
  • modifiedapps/server/src/mastra/workflows/chat/harness/__tests__/legacy-tool-name-map.test.ts+0-15
  • addedapps/server/src/mastra/workflows/chat/harness/__tests__/resolve-call-agent-id.test.ts+77-0
  • addedapps/server/src/mastra/workflows/chat/harness/delegate-tokens.ts+101-0
  • modifiedapps/server/src/mastra/workflows/chat/harness/delegate-tool-scoping.ts+32-113
  • modifiedapps/server/src/mastra/workflows/chat/harness/legacy-tool-name-map.ts+8-9
  • modifiedapps/server/src/mastra/workflows/chat/harness/mcp-server.ts+77-33
  • modifiedapps/server/src/mastra/workflows/chat/harness/request-context.ts+5-5
  • modifiedapps/server/src/mastra/workflows/chat/harness/subagents.ts+33-12
  • modifiedapps/server/src/mastra/workflows/chat/run-chat-agent-sdk.ts+30-32