Skip to content

fix(plugin-sdk): narrow cli discord and matrix contract seams - #59565

Merged
vincentkoc merged 2 commits into
openclaw:mainfrom
vincentkoc:fix/plugin-sdk-seam-followup
Apr 2, 2026
Merged

vincentkoc merged 2 commits into
openclaw:mainfrom
vincentkoc:fix/plugin-sdk-seam-followup

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

Summary

  • switch the CLI Discord send runtime to the narrower guarded Discord runtime surface
  • switch the bundled Matrix runtime contract from the broad Matrix barrel to matrix helper and thread-binding seams
  • keep the diff scoped to import-surface hardening only

Testing

  • pnpm check
  • pnpm build
  • pnpm test -- src/cli/deps.test.ts
  • pnpm test -- src/infra/matrix-account-selection.test.ts

Notes

  • AI-assisted
  • no changelog: internal boundary hardening only

@vincentkoc vincentkoc self-assigned this Apr 2, 2026
@openclaw-barnacle openclaw-barnacle Bot added cli CLI command changes size: XS maintainer Maintainer-authored PR labels Apr 2, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review April 2, 2026 10:18
@greptile-apps

greptile-apps Bot commented Apr 2, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR narrows two plugin-SDK import surfaces: the CLI Discord send runtime is switched from the broad discord.js barrel to the guarded discord-runtime-surface.js facade (which uses loadActivatedBundledPluginPublicSurfaceModuleSync, adding an activation check), and the Matrix runtime contract is split from the monolithic matrix.js barrel to the focused matrix-thread-bindings.js and matrix-helper.js facades.

  • All three new import targets (discord-runtime-surface.ts, matrix-thread-bindings.ts, matrix-helper.ts) are generated facades and export the exact symbols being imported — no missing or mismatched names.
  • matrix-thread-bindings.js and matrix-helper.js both delegate to the same underlying api.js artifact, so runtime behaviour is unchanged; only the surface is narrowed.
  • The Discord change adds an activation guard (loadActivatedBundledPluginPublicSurfaceModuleSync vs loadBundledPluginPublicSurfaceModuleSync), which is the intended hardening.
  • The diff is minimal and correctly scoped to import-surface changes only, with no logic or behaviour altered.

Confidence Score: 5/5

  • Safe to merge — purely mechanical import redirections to narrower, already-existing facades with no logic changes.
  • All imported symbols are confirmed present in the new module targets. Both matrix facades load the same underlying artifact, preserving runtime behaviour. The Discord surface change correctly introduces an activation guard as described. No new logic, no removed exports, and the PR's own test suite covers the changed boundary files.
  • No files require special attention.

Reviews (1): Last reviewed commit: "Merge branch 'main' into fix/plugin-sdk-..." | Re-trigger Greptile

@vincentkoc
vincentkoc merged commit f65da87 into openclaw:main Apr 2, 2026
35 of 42 checks passed
steipete pushed a commit to duncanita/openclaw that referenced this pull request Apr 4, 2026
lovewanwan pushed a commit to lovewanwan/openclaw that referenced this pull request Apr 28, 2026
ogt-redknie pushed a commit to ogt-redknie/OPENX that referenced this pull request May 2, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request May 24, 2026
Nachx639 pushed a commit to Nachx639/clawdbot that referenced this pull request Jun 17, 2026
vixco pushed a commit to vixco/openclaw that referenced this pull request Aug 16, 2026
globalcaos pushed a commit to globalcaos/tinkerclaw that referenced this pull request Sep 29, 2026
lhfer pushed a commit to lhfer/openclaw that referenced this pull request Oct 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli CLI command changes maintainer Maintainer-authored PR size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant