




















@@ -784,8 +784,8 @@ describe("bundled channel entry shape guards", () => {
784784it("keeps plugin-sdk channel-core free of chat metadata bootstrap imports", () => {
785785const source = fs.readFileSync(path.resolve("src/plugin-sdk/channel-core.ts"), "utf8");
786786787-expect(source.includes("../channels/chat-meta.js")).toBe(false);
788-expect(source.includes("getChatChannelMeta")).toBe(false);
787+expect(source).not.toContain("../channels/chat-meta.js");
788+expect(source).not.toContain("getChatChannelMeta");
789789});
790790791791it("keeps bundled hot runtime barrels off the broad core SDK surface", () => {
@@ -816,7 +816,7 @@ describe("bundled channel entry shape guards", () => {
816816it("keeps extension-shared off the broad runtime barrel", () => {
817817const source = fs.readFileSync(path.resolve("src/plugin-sdk/extension-shared.ts"), "utf8");
818818819-expect(source.includes('from "./runtime.js"')).toBe(false);
819+expect(source).not.toContain('from "./runtime.js"');
820820});
821821822822it("keeps bundled doctor surfaces off the broad runtime barrel", () => {
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。