fix: confine Agent and MCP data access

This commit is contained in:
2026-07-10 16:38:08 +08:00
parent 73fa28a178
commit f4968d6657
25 changed files with 1521 additions and 221 deletions
+7
View File
@@ -109,6 +109,13 @@ describe("Feishu approval cards", () => {
settings: {} as RuntimeSettings,
logger: silentLogger(),
authorizer: allowAllAuthorizer(),
projectWorkspaceRoot: "/tmp",
runAgent: async () => ({
status: "completed",
text: "",
usage: { inputTokens: 0, outputTokens: 0 },
numTurns: 0,
}),
});
const result = trigger.approvalManager.register("message-1", "chat-1");