test(plugins): guard legacy bundled hook regressions

This commit is contained in:
Vincent Koc
2026-04-22 12:17:59 -07:00
parent 67e5cca7a4
commit e1341941d5

View File

@@ -138,4 +138,10 @@ describe("plugin contract boundary invariants", () => {
});
expect(offenders).toEqual([]);
});
it("keeps bundled plugin production code off legacy before_agent_start hooks", () => {
const files = listTsFiles("extensions", { excludeTests: true });
const offenders = files.filter((file) => readRepoSource(file).includes("before_agent_start"));
expect(offenders).toEqual([]);
});
});