test(docker): align package harness image

This commit is contained in:
Peter Steinberger
2026-04-27 01:22:50 +01:00
parent 732a5842ee
commit 7ca2f9fed5
7 changed files with 41 additions and 92 deletions

View File

@@ -234,7 +234,32 @@ function buildCoreDistEntries(): Record<string, string> {
};
}
function buildDockerE2eHarnessEntries(): Record<string, string> {
return {
// Mounted Docker harnesses run against the npm tarball image, so any
// internal module they assert must have a stable package dist entry.
"agents/pi-bundle-mcp-materialize": "src/agents/pi-bundle-mcp-materialize.ts",
"agents/pi-bundle-mcp-runtime": "src/agents/pi-bundle-mcp-runtime.ts",
"agents/pi-embedded-runner/effective-tool-policy":
"src/agents/pi-embedded-runner/effective-tool-policy.ts",
"agents/pi-embedded-runner/run/runtime-context-prompt":
"src/agents/pi-embedded-runner/run/runtime-context-prompt.ts",
"auto-reply/reply/commands-crestodian": "src/auto-reply/reply/commands-crestodian.ts",
"cli/run-main": "src/cli/run-main.ts",
"config/config": "src/config/config.ts",
"crestodian/crestodian": "src/crestodian/crestodian.ts",
"crestodian/rescue-message": "src/crestodian/rescue-message.ts",
"gateway/protocol/index": "src/gateway/protocol/index.ts",
"infra/errors": "src/infra/errors.ts",
"infra/ws": "src/infra/ws.ts",
"plugin-sdk/provider-onboard": "src/plugin-sdk/provider-onboard.ts",
"plugins/tools": "src/plugins/tools.ts",
"shared/string-coerce": "src/shared/string-coerce.ts",
};
}
const coreDistEntries = buildCoreDistEntries();
const dockerE2eHarnessEntries = buildDockerE2eHarnessEntries();
const stagedBundledPluginBuildEntries = bundledPluginBuildEntries.filter(({ packageJson }) =>
shouldStageBundledPluginRuntimeDependencies(packageJson),
);
@@ -247,6 +272,7 @@ const rootBundledPluginBuildEntries = bundledPluginBuildEntries.filter(
function buildUnifiedDistEntries(): Record<string, string> {
return {
...coreDistEntries,
...dockerE2eHarnessEntries,
// Internal compat artifact for the root-alias.cjs lazy loader.
"plugin-sdk/compat": "src/plugin-sdk/compat.ts",
...Object.fromEntries(