























@@ -81,6 +81,13 @@ function readGatewayRunLoopSource(): string {
8181return readFileSync(new URL("../cli/gateway-cli/run-loop.ts", import.meta.url), "utf8");
8282}
838384+function readPiModelDiscoveryCacheSource(): string {
85+return readFileSync(
86+new URL("../agents/pi-embedded-runner/model-discovery-cache.ts", import.meta.url),
87+"utf8",
88+);
89+}
90+8491describe("tsdown config", () => {
8592it("keeps core, plugin runtime, plugin-sdk, bundled root plugins, and bundled hooks in one dist graph", () => {
8693const distGraph = requireUnifiedDistGraph();
@@ -105,6 +112,7 @@ describe("tsdown config", () => {
105112"plugins/provider-discovery.runtime",
106113"plugins/provider-runtime.runtime",
107114"plugins/runtime/index",
115+"plugins/synthetic-auth.runtime",
108116"web-fetch/runtime",
109117"plugin-sdk/compat",
110118"plugin-sdk/index",
@@ -149,6 +157,20 @@ describe("tsdown config", () => {
149157);
150158});
151159160+it("keeps PI model discovery synthetic auth refs behind one stable runtime dist entry", () => {
161+const distGraph = requireUnifiedDistGraph();
162+const importSpecifiers = [
163+ ...readPiModelDiscoveryCacheSource().matchAll(
164+/from ["']([^"']*synthetic-auth\.runtime\.js)["']/gu,
165+),
166+].map((match) => match[1]);
167+168+expect(importSpecifiers).toEqual(["../../plugins/synthetic-auth.runtime.js"]);
169+expect(entrySources(distGraph)["plugins/synthetic-auth.runtime"]).toBe(
170+"src/plugins/synthetic-auth.runtime.ts",
171+);
172+});
173+152174it("keeps Telegram ingress worker behind one root stable dist entry", () => {
153175const distGraph = requireUnifiedDistGraph();
154176此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。