fix(build): stabilize lazy runtime entrypoints

This commit is contained in:
Peter Steinberger
2026-04-04 14:46:32 +01:00
parent e5b9e32979
commit 0a69b3558a
2 changed files with 6 additions and 0 deletions

View File

@@ -43,9 +43,12 @@ describe("tsdown config", () => {
expect(entryKeys(distGraphs[0])).toEqual(
expect.arrayContaining([
"agents/auth-profiles.runtime",
"agents/model-catalog.runtime",
"agents/models-config.runtime",
"agents/pi-model-discovery-runtime",
"index",
"commands/status.summary.runtime",
"plugins/provider-discovery.runtime",
"plugins/provider-runtime.runtime",
"plugins/runtime/index",
"plugin-sdk/compat",

View File

@@ -125,8 +125,11 @@ function buildCoreDistEntries(): Record<string, string> {
// Keep long-lived lazy runtime boundaries on stable filenames so rebuilt
// dist/ trees do not strand already-running gateways on stale hashed chunks.
"agents/auth-profiles.runtime": "src/agents/auth-profiles.runtime.ts",
"agents/model-catalog.runtime": "src/agents/model-catalog.runtime.ts",
"agents/models-config.runtime": "src/agents/models-config.runtime.ts",
"agents/pi-model-discovery-runtime": "src/agents/pi-model-discovery-runtime.ts",
"commands/status.summary.runtime": "src/commands/status.summary.runtime.ts",
"plugins/provider-discovery.runtime": "src/plugins/provider-discovery.runtime.ts",
"plugins/provider-runtime.runtime": "src/plugins/provider-runtime.runtime.ts",
extensionAPI: "src/extensionAPI.ts",
"infra/warning-filter": "src/infra/warning-filter.ts",