Summary
Add e2e tests to protect against runtime module resolution errors like the one reported in #6291.
Background
Reference issue: #6291
The error occurred when the minimax-portal-auth plugin failed to load because the clawdbot/plugin-sdk module could not be found at runtime:
Error: Cannot find module 'clawdbot/plugin-sdk'
Require stack:
- /root/.nvm/versions/node/v24.13.0/lib/node_modules/openclaw/extensions/minimax-portal-auth/index.ts
This type of error suggests that:
- The plugin's dependencies aren't being bundled correctly
- The module resolution is failing at runtime despite working during build
- There's no test that validates plugin loading works end-to-end
Task
Add e2e tests that:
- Load and verify all bundled plugins/extensions can be required without errors
- Test that plugin dependencies are resolved correctly after packaging/bundling
- Validate the packaged output works in a clean environment (simulating npm install behavior)
Acceptance Criteria
Summary
Add e2e tests to protect against runtime module resolution errors like the one reported in #6291.
Background
Reference issue: #6291
The error occurred when the
minimax-portal-authplugin failed to load because theclawdbot/plugin-sdkmodule could not be found at runtime:This type of error suggests that:
Task
Add e2e tests that:
Acceptance Criteria