Skip to content

feat(mock-sdk): cover public SDK subpaths#6

Merged
vincentkoc merged 1 commit intomainfrom
feature/mock-sdk-surface
Apr 27, 2026
Merged

feat(mock-sdk): cover public SDK subpaths#6
vincentkoc merged 1 commit intomainfrom
feature/mock-sdk-surface

Conversation

@vincentkoc
Copy link
Copy Markdown
Member

What

  • expand the mocked openclaw/plugin-sdk package used by isolated capture
  • add named-export files for common public SDK subpaths like plugin-entry, channel-core, webhook-ingress, provider helpers, secret input, and SSRF/security helpers
  • classify missing mocked SDK exports/modules in runtime capture JSON and Markdown

Why

Plugins increasingly import from SDK subpaths instead of only openclaw/plugin-sdk. The old mock mapped every SDK subpath to the root file, which made coverage brittle and hid which alias/export was actually unsupported.

Impact

  • valid common SDK aliases import successfully in offline capture
  • unsupported SDK aliases/exports now fail with failureClass metadata instead of a generic subprocess import error
  • no runtime dependencies added

Checks

  • node --test test/inspector.test.js test/runtime-capture-report.test.js
  • npm run release:local

@vincentkoc vincentkoc marked this pull request as ready for review April 27, 2026 09:35
@vincentkoc vincentkoc merged commit beac231 into main Apr 27, 2026
2 checks passed
@vincentkoc vincentkoc deleted the feature/mock-sdk-surface branch April 27, 2026 09:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant