Skip to content

Support new openclaw plugin request#1191

Merged
malatewang merged 2 commits into
mainfrom
upgrade_openclaw
Mar 10, 2026
Merged

Support new openclaw plugin request#1191
malatewang merged 2 commits into
mainfrom
upgrade_openclaw

Conversation

@malatewang

Copy link
Copy Markdown
Contributor

Purpose of the change

[Describe the high-level purpose of this pull request. What problem does it solve? What feature does it add? Link to any related issues or discussions.]
Support new openclaw versions

Description

openclaw upgraded the plugin security. It requires the plugin to be compiled to mjs, instead of js. So the current plugin can not support new openclaw version. This PR updated the openclaw plugin to support the new requirement.

Fixes/Closes

Fixes #(issue number)

Type of change

[Please delete options that are not relevant.]

  • [.] Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Refactor (does not change functionality, e.g., code style improvements, linting)
  • Documentation update
  • Project Maintenance (updates to build scripts, CI, etc., that do not affect the main project)
  • Security (improves security without changing functionality)

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration.

[Please delete options that are not relevant.]
manually tested. The package will have additional files undere the dist directory:
index.d.cts index.d.ts index.js index.js.map index.mjs index.mjs.map

  • Unit Test
  • Integration Test
  • End-to-end Test
  • Test Script (please provide)
  • [.] Manual verification (list step-by-step instructions)

Test Results: [Attach logs, screenshots, or relevant output]

Checklist

[Please delete options that are not relevant.]

  • ['] I have signed the commit(s) within this pull request
  • My code follows the style guidelines of this project (See STYLE_GUIDE.md)
  • I have performed a self-review of my own code
  • I have commented my code
  • I have made corresponding changes to the documentation
  • [.] My changes generate no new warnings
  • I have added unit tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules
  • I have checked my code and corrected any misspellings

Maintainer Checklist

  • Confirmed all checks passed
  • Contributor has signed the commit(s)
  • Reviewed the code
  • Run, Tested, and Verified the change(s) work as expected

Screenshots/Gifs

[If applicable, add screenshots or GIFs that show the changes in action. This is especially helpful for API responses. Otherwise, delete this section or type "N/A".]

Further comments

[Add any other relevant information here, such as potential side effects, future considerations, or any specific questions for the reviewer. Otherwise, type "None".]

@sscargal sscargal left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

This has a dependency on PR #1195, which will version control the Typescript client with MemMachine. This plugin requires @memmachine/client version 0.3.0 or newer. Currently, the Typescript is v0.2.5 (hard-coded). The Typescript client PR will create a v0.3.x that satisfies this plugin requirement.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the OpenClaw integration package to meet newer OpenClaw plugin requirements (notably distributing an .mjs entrypoint) and adjusts build/publish tooling to produce and publish the expected artifacts.

Changes:

  • Switch build output to include an explicit .mjs bundle (via tsup.config.ts) and move source entry to index.mts.
  • Add local TS type shims and TS config path mappings for dependencies used by the plugin build.
  • Update the OpenClaw plugin publish workflow to support workflow_dispatch versioned builds and to rewrite package.json versions during publish.

Reviewed changes

Copilot reviewed 5 out of 9 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
integrations/openclaw/types/shims/typebox.d.ts Adds a local shim for @sinclair/typebox types.
integrations/openclaw/types/shims/openclaw-plugin-sdk.d.ts Adds a local shim for openclaw/plugin-sdk types.
integrations/openclaw/types/shims/memmachine-client.d.ts Adds a local shim for @memmachine/client types.
integrations/openclaw/tsup.config.ts New tsup config to emit .mjs for ESM builds.
integrations/openclaw/tsconfig.json Adjust TS compiler settings and wire in shim path mappings.
integrations/openclaw/package.json Switch to a development placeholder versioning approach; adjust scripts for tsup config.
integrations/openclaw/package-lock.json Removes rimraf; otherwise retains prior resolved versions.
integrations/openclaw/index.mts Updates env API key lookup to avoid direct process reference.
.github/workflows/openclaw_plugin_publish.yml Adds manual version input and rewrites package version/dependency before publishing.
Files not reviewed (1)
  • integrations/openclaw/package-lock.json: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/openclaw_plugin_publish.yml
Comment thread integrations/openclaw/package.json
Comment thread integrations/openclaw/package-lock.json
Comment thread integrations/openclaw/tsup.config.ts
@malatewang malatewang merged commit a8603ec into main Mar 10, 2026
52 checks passed
@malatewang malatewang deleted the upgrade_openclaw branch March 10, 2026 00:59
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.

4 participants