refactor(integrations): shared agent plugin runtimes and native adapters (#7203)

This commit is contained in:
Kartik
2026-09-08 23:32:25 +05:30
committed by GitHub
parent dae67f74f5
commit 73e7b8763a
369 changed files with 31056 additions and 20464 deletions
@@ -31,7 +31,10 @@ interface RegisteredTool {
function applyAndCollect(config: Config): Map<string, RegisteredTool> {
const tools = new Map<string, RegisteredTool>();
apply({ tools: { register: (t: RegisteredTool) => tools.set(t.name, t) } } as never, config);
apply({
tools: { register: (t: RegisteredTool) => tools.set(t.name, t) },
on: vi.fn(),
} as never, config);
return tools;
}
@@ -190,7 +193,7 @@ describe("tool instrumentation", () => {
it("records a write with its size but not its text", async () => {
mockAdd.mockResolvedValue([{ id: "m1", memory: "Fact" }]);
const tools = applyAndCollect({ apiKey: "k", userId: "u" });
const tools = applyAndCollect({ apiKey: "k", userId: "u", allowUserOverride: true });
await tools.get("add_memory")!.execute({ text: "secret fact", userId: "alice" }, {});