mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-13 15:47:28 +00:00
test(docker): align package harness image
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user