

























@@ -58,12 +58,14 @@ describe("buildQaGatewayConfig", () => {
5858expect(cfg.models?.providers?.openai?.request).toEqual({ allowPrivateNetwork: true });
5959expect(cfg.models?.providers?.anthropic?.baseUrl).toBe("http://127.0.0.1:44080");
6060expect(cfg.models?.providers?.anthropic?.request).toEqual({ allowPrivateNetwork: true });
61-expect(cfg.plugins?.allow).toEqual(["memory-core", "qa-channel"]);
61+expect(cfg.plugins?.allow).toEqual(["acpx", "memory-core", "qa-channel"]);
62+expect(cfg.plugins?.entries?.acpx).toEqual({ enabled: false });
6263expect(cfg.plugins?.entries?.["memory-core"]).toEqual({ enabled: true });
6364expect(cfg.plugins?.entries?.["qa-channel"]).toEqual({ enabled: true });
6465expect(cfg.plugins?.entries?.openai).toBeUndefined();
6566expect(cfg.gateway?.reload?.deferralTimeoutMs).toBe(1_000);
6667expect(cfg.tools?.profile).toBe("coding");
68+expect(cfg.agents?.list?.[0]?.tools?.profile).toBe("coding");
6769expect(cfg.channels?.["qa-channel"]).toMatchObject({
6870enabled: true,
6971baseUrl: "http://127.0.0.1:43124",
@@ -94,7 +96,7 @@ describe("buildQaGatewayConfig", () => {
9496expect(cfg.models?.providers?.anthropic?.models.map((model) => model.id)).toContain(
9597"claude-opus-4-6",
9698);
97-expect(cfg.plugins?.allow).toEqual(["memory-core"]);
99+expect(cfg.plugins?.allow).toEqual(["acpx", "memory-core"]);
98100});
99101100102it("can wire AIMock as a separate mock provider lane", () => {
@@ -131,7 +133,7 @@ describe("buildQaGatewayConfig", () => {
131133transportConfig: {},
132134});
133135134-expect(cfg.plugins?.allow).toEqual(["memory-core"]);
136+expect(cfg.plugins?.allow).toEqual(["acpx", "memory-core"]);
135137expect(cfg.plugins?.entries?.["qa-channel"]).toBeUndefined();
136138expect(cfg.channels?.["qa-channel"]).toBeUndefined();
137139});
@@ -147,7 +149,7 @@ describe("buildQaGatewayConfig", () => {
147149 ...createQaChannelTransportParams(),
148150});
149151150-expect(cfg.plugins?.allow).toEqual(["memory-core", "active-memory", "qa-channel"]);
152+expect(cfg.plugins?.allow).toEqual(["acpx", "memory-core", "active-memory", "qa-channel"]);
151153expect(cfg.plugins?.entries?.["active-memory"]).toEqual({ enabled: true });
152154});
153155@@ -167,7 +169,7 @@ describe("buildQaGatewayConfig", () => {
167169expect(getPrimaryModel(cfg.agents?.defaults?.model)).toBe("openai/gpt-5.4");
168170expect(getPrimaryModel(cfg.agents?.list?.[0]?.model)).toBe("openai/gpt-5.4");
169171expect(cfg.models).toBeUndefined();
170-expect(cfg.plugins?.allow).toEqual(["memory-core", "openai", "qa-channel"]);
172+expect(cfg.plugins?.allow).toEqual(["acpx", "memory-core", "openai", "qa-channel"]);
171173expect(cfg.plugins?.entries?.openai).toEqual({ enabled: true });
172174expect(cfg.agents?.defaults?.models?.["openai/gpt-5.4"]).toEqual({
173175params: { transport: "sse", openaiWsWarmup: false, fastMode: true },
@@ -187,7 +189,13 @@ describe("buildQaGatewayConfig", () => {
187189 ...createQaChannelTransportParams(),
188190});
189191190-expect(cfg.plugins?.allow).toEqual(["memory-core", "anthropic", "google", "qa-channel"]);
192+expect(cfg.plugins?.allow).toEqual([
193+"acpx",
194+"memory-core",
195+"anthropic",
196+"google",
197+"qa-channel",
198+]);
191199expect(cfg.plugins?.entries?.anthropic).toEqual({ enabled: true });
192200expect(cfg.plugins?.entries?.google).toEqual({ enabled: true });
193201expect(cfg.plugins?.entries?.openai).toBeUndefined();
@@ -209,7 +217,7 @@ describe("buildQaGatewayConfig", () => {
209217});
210218211219expect(getPrimaryModel(cfg.agents?.defaults?.model)).toBe("codex-cli/test-model");
212-expect(cfg.plugins?.allow).toEqual(["memory-core", "openai", "qa-channel"]);
220+expect(cfg.plugins?.allow).toEqual(["acpx", "memory-core", "openai", "qa-channel"]);
213221expect(cfg.plugins?.entries?.openai).toEqual({ enabled: true });
214222expect(cfg.plugins?.entries?.["codex-cli"]).toBeUndefined();
215223});
@@ -249,7 +257,7 @@ describe("buildQaGatewayConfig", () => {
249257250258expect(cfg.models?.mode).toBe("merge");
251259expect(cfg.models?.providers?.["custom-openai"]?.api).toBe("openai-responses");
252-expect(cfg.plugins?.allow).toEqual(["memory-core", "openai", "qa-channel"]);
260+expect(cfg.plugins?.allow).toEqual(["acpx", "memory-core", "openai", "qa-channel"]);
253261});
254262255263it("can set a QA default thinking level for judge turns", () => {
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。