refactor: remove dead plugin loader exports (#105937)

* refactor(plugins): trim activation and contract exports

* test(plugins): restore fixture cleanup

* refactor(plugins): trim install and loader exports

* test(plugins): fully reset loader caches

* refactor(plugins): trim metadata and catalog exports

* test(plugins): preserve catalog trust coverage

* refactor(plugins): trim provider and plugin exports

* refactor(plugins): trim runtime and tool exports

* test(plugins): update dead-export consumers

* test(plugins): remove empty dead-export suites

* refactor(plugins): align exports with split registry

* refactor(plugins): trim drifted loader exports

* style(plugins): format test fixtures

* refactor(scripts): use supported plugin APIs

* refactor(plugins): finish dead export cleanup

* chore(deadcode): refresh export baseline

* test(cli): mock production memory state

* chore(deadcode): sync latest export baseline

* fix(tests): keep plugin fixtures inside core

* chore(deadcode): refresh rebased export baseline

* chore(deadcode): sync current ratchets

* fix(plugins): retain reserved slot invariant

* fix(plugins): preserve dead-export invariants

* test(plugins): use neutral catalog query fixture

* test(plugins): satisfy catalog lint

* test(plugins): preserve integrity drift coverage

* fix(ci): register skill experience live proof
This commit is contained in:
Peter Steinberger
2026-07-13 01:29:33 -07:00
committed by GitHub
parent 8c740891e1
commit 98e3f729bc
342 changed files with 1758 additions and 9707 deletions

View File

@@ -134,63 +134,6 @@ describe("getCachedPluginModuleLoader", () => {
};
});
it("resolves deterministic cache entries for equivalent alias maps", async () => {
const { resolvePluginModuleLoaderCacheEntry } = await importFreshModule<
typeof import("./plugin-module-loader-cache.js")
>(import.meta.url, "./plugin-module-loader-cache.js?scope=cache-entry-alias-order");
const first = resolvePluginModuleLoaderCacheEntry({
modulePath: "/repo/extensions/demo/index.ts",
importerUrl: "file:///repo/src/plugins/loader.ts",
loaderFilename: "/repo/src/plugins/loader.ts",
aliasMap: {
alpha: "/repo/alpha.js",
zeta: "/repo/zeta.js",
},
tryNative: false,
});
const second = resolvePluginModuleLoaderCacheEntry({
modulePath: "/repo/extensions/demo/index.ts",
importerUrl: "file:///repo/src/plugins/loader.ts",
loaderFilename: "/repo/src/plugins/loader.ts",
aliasMap: {
zeta: "/repo/zeta.js",
alpha: "/repo/alpha.js",
},
tryNative: false,
});
expect(second.cacheKey).toBe(first.cacheKey);
expect(second.scopedCacheKey).toBe(first.scopedCacheKey);
expect(first.loaderFilename).toBe("/repo/src/plugins/loader.ts");
});
it("keeps explicit shared cache scope keys independent of loader options", async () => {
const { resolvePluginModuleLoaderCacheEntry } = await importFreshModule<
typeof import("./plugin-module-loader-cache.js")
>(import.meta.url, "./plugin-module-loader-cache.js?scope=cache-entry-shared-scope");
const first = resolvePluginModuleLoaderCacheEntry({
modulePath: "/repo/dist/extensions/demo-a/api.js",
importerUrl: "file:///repo/src/plugins/public-surface-loader.ts",
loaderFilename: "/repo/src/plugins/public-surface-loader.ts",
aliasMap: { demo: "/repo/demo-a.js" },
tryNative: true,
sharedCacheScopeKey: "bundled:native",
});
const second = resolvePluginModuleLoaderCacheEntry({
modulePath: "/repo/dist/extensions/demo-b/api.js",
importerUrl: "file:///repo/src/plugins/public-surface-loader.ts",
loaderFilename: "/repo/src/plugins/public-surface-loader.ts",
aliasMap: { demo: "/repo/demo-b.js" },
tryNative: false,
sharedCacheScopeKey: "bundled:native",
});
expect(first.cacheKey).not.toBe(second.cacheKey);
expect(first.scopedCacheKey).toBe(second.scopedCacheKey);
});
it("reuses cached loaders for the same module config and filename", async () => {
const { createJiti, getCachedPluginModuleLoader } =
await loadCachedPluginModuleLoader("cached-loader");