Skip to content

fix: discover SDK imports in packaged setup modules - #89

Merged
steipete merged 1 commit into
mainfrom
fix/mock-sdk-setup-discovery
Sep 22, 2026
Merged

steipete merged 1 commit into
mainfrom
fix/mock-sdk-setup-discovery

Conversation

@steipete

Copy link
Copy Markdown
Contributor

Published OpenClaw 2026.9.5 plugins load runtime modules from dist/.setup, but SDK discovery skips that hidden directory. Mock capture then misses SDK exports or CommonJS interception and reports false import failures. Permit .setup beside the existing .clawhub exception; keep other hidden directories excluded.

Regression tests cover ESM and CommonJS setup entrypoints, imports reached through retained handlers, and exclusion of unrelated hidden directories. Both setup tests failed before the fix and pass afterward. README and Unreleased changelog describe the behavior.

Validation on AWS Crabbox:

  • npm test: 548 passed, zero failures/skips; package contents check passed.
  • Actual @openclaw/brave-plugin@2026.9.5 mock capture succeeds and records registerWebSearchProvider.
  • Crabpot source-mode and freshly packed/installed candidate runtime smoke: 59 fixtures, zero breakages; computed tool value and rejected Gateway response checks remain intact.
  • Independent Codex review through P2: no actionable findings.

This unblocks the nine SDK-discovery lanes in openclaw/crabpot#295. Crabpot will adopt the reviewed source commit and retain its published package pin until the owner releases a package. No package publication or version change is included.

@steipete
steipete requested a review from a team as a code owner September 22, 2026 11:42
@clawsweeper

clawsweeper Bot commented Sep 22, 2026

Copy link
Copy Markdown

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@steipete
steipete requested a review from vincentkoc September 22, 2026 11:43
@steipete
steipete merged commit 8279b02 into main Sep 22, 2026
6 checks passed
@steipete
steipete deleted the fix/mock-sdk-setup-discovery branch September 22, 2026 11:45
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