fix: add compat.minGatewayVersion and build metadata for ClawHub compliance #66
<!-- This is an auto-generated comment: summarize by coderabbit.ai -->
<!-- This is an auto-generated comment: failure by coderabbit.ai -->
[!CAUTION]
## Review failed
> Pull request was closed or merged during review
<!-- end of auto-generated comment: failure by coderabbit.ai -->
No actionable comments were generated in the recent review. 🎉
<details>
<summary>ℹ️ Recent review info</summary>
<details>
<summary>⚙️ Run configuration</summary>
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 296087f6-6528-438c-81a6-221ad98171c8
</details>
<details>
<summary>📥 Commits</summary>
Reviewing files that changed from the base of the PR and between 5eb1976d726c0f8a73b59c0e9e9e9def5d2d78c5 and 1aafa338904a0b04354e90ba4296e76e8f9405e5.
</details>
<details>
<summary>📒 Files selected for processing (1)</summary>
package.json</details>
</details>
---
<!-- walkthrough_start -->
<details>
<summary>📝 Walkthrough</summary>
Walkthrough
Expanded openclaw.compat in package.json by adding a build object that sets openclawVersion and pluginSdkVersion to "2026.4.11". Existing pluginApi and minGatewayVersion constraints remain unchanged.
Changes
Compatibility Metadata Update
|Layer / File(s)|Summary|
|---|---|
|Data Shape / Manifest <br> package.json|Added build object under openclaw.compat with openclawVersion: "2026.4.11" and pluginSdkVersion: "2026.4.11".|
|Compatibility Constraints <br> package.json|Left existing openclaw.compat.pluginApi and openclaw.compat.minGatewayVersion unchanged (>=2026.3.22).|
Estimated code review effort
🎯 1 (Trivial) | ⏱️ ~2 minutes
Possibly related PRs
package.json openclaw compatibility metadata (similar compat field adjustments).Poem
🐰 I hopped through package.json night and day,
Nudged a build version gently into play,
"2026.4.11" now sits in a row,
Quiet and tidy, ready to go,
A tiny change — a rabbit's small hooray! 🥕
</details>
<!-- walkthrough_end -->
<!-- pre_merge_checks_walkthrough_start -->
<details>
<summary>🚥 Pre-merge checks | ✅ 5</summary>
<details>
<summary>✅ Passed checks (5 passed)</summary>
| Check name | Status | Explanation |
| :------------------------: | :------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Description Check | ✅ Passed | Check skipped - CodeRabbit’s high-level summary is enabled. |
| Title check | ✅ Passed | The PR title accurately summarizes the main changes: adding compat.minGatewayVersion and build metadata to package.json for ClawHub compliance, which matches the primary objectives. |
| Docstring Coverage | ✅ Passed | No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. |
| Linked Issues check | ✅ Passed | Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check | ✅ Passed | Check skipped because no linked issues were found for this pull request. |
</details>
<sub>✏️ Tip: You can configure your own custom pre-merge checks in the settings.</sub>
</details>
<!-- pre_merge_checks_walkthrough_end -->
<!-- finishing_touch_checkbox_start -->
<details>
<summary>✨ Finishing Touches</summary>
<details>
<summary>🧪 Generate unit tests (beta)</summary>
fix/add-compat-build-metadata</details>
</details>
<!-- finishing_touch_checkbox_end -->
<!-- tips_start -->
---
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
<details>
<summary>❤️ Share</summary>
</details>
<!-- review_rate_limit_status_start -->
<sub>Review rate limit: 0/1 reviews remaining, refill in 60 minutes.</sub>
<!-- review_rate_limit_status_end -->
<sub>Comment @coderabbitai help to get the list of available commands and usage tips.</sub>
<!-- tips_end -->
<!-- internal state start -->
<!-- DwQgtGAEAqAWCWBnSTIEMB26CuAXA9mAOYCmGJATmriQCaQDG+Ats2bgFyQAOFk+AIwBWJBrngA3EsgEBPRvlqU0AgfFwA6NPEgQAfACgjoCEYDEZyAAUASpETZWaCrKPR1AGxJcAZvAAeXGi09EzM3NQazPAYAOLUJADuaLIAapSI8PhYmPQC2PAe9Gy4wdRokD74fADCHmiJABLYAgrhHvCYDCSQkAYAco4ClFwAbKO9BgCqNgAyXLC4uNyIHAD0a0TqsC0aYWv+ACLOANbw3f5r+NxkDPWJYGzM1bJgHQJUErQCa9zYHh41uNJlNECNIEdTucSP5JgBlfDYCjdSAfLqwXwBNbBWhgMIRXBgfKFXElMqlSCAJMIYM5SLhUVQMAwMZBmNosH04a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IKfJFbkEgewlFHlAwH1OgsDXAKwL3OgO0XAKDK1EPWgcNdQAqFCXAWNaUfQ3lR5Gw7wpwmgSFcw1WIAA== -->
<!-- internal state end -->
[!CAUTION]
Some comments are outside the diff and can’t be posted inline due to platform limitations.
>
> <details>
<summary>⚠️ Outside diff range comments (1)</summary><blockquote>
> <details>
<summary>package.json (1)</summary><blockquote>
> 32-46: _⚠️ Potential issue_ | _🟠 Major_> Change openclaw.build fields to exact versions instead of ranges.> Theopenclaw.build.openclawVersionandopenclaw.build.pluginSdkVersionfields specify the exact versions used during build and must be exact version strings (e.g.,"2026.3.22"), not ranges like">=2026.3.22". Update them to:
>> "build": { > "openclawVersion": "2026.3.22", > "pluginSdkVersion": "2026.3.22" > } >
> The range operators (>=) are correct foropenclaw.compat.minGatewayVersionandopenclaw.install.minHostVersion, which specify minimum required versions. These two fields serve different purposes (runtime gateway requirement vs. install/discovery requirement) and can coexist.
> <details>
<summary>🤖 Prompt for AI Agents</summary>
>> Verify each finding against the current code and only fix it if needed. > > In `@package.json` around lines 32 - 46, Update the openclaw build fields to exact > version strings: change openclaw.build.openclawVersion and > openclaw.build.pluginSdkVersion from range values (e.g., ">=2026.3.22") to the > exact version "2026.3.22" so the build metadata reflects the exact versions > used; leave the compat.pluginApi/minGatewayVersion and install.minHostVersion > ranges unchanged. >
> </details>
> </blockquote></details>
> </blockquote></details>
<details>
<summary>🤖 Prompt for all review comments with AI agents</summary>
Verify each finding against the current code and only fix it if needed.
Outside diff comments:
In `@package.json`:
- Around line 32-46: Update the openclaw build fields to exact version strings:
change openclaw.build.openclawVersion and openclaw.build.pluginSdkVersion from
range values (e.g., ">=2026.3.22") to the exact version "2026.3.22" so the build
metadata reflects the exact versions used; leave the
compat.pluginApi/minGatewayVersion and install.minHostVersion ranges unchanged.
</details>
---
<details>
<summary>ℹ️ Review info</summary>
<details>
<summary>⚙️ Run configuration</summary>
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 818ac204-0fea-4e9f-9048-49bcc00be352
</details>
<details>
<summary>📥 Commits</summary>
Reviewing files that changed from the base of the PR and between 19ff7eff6ff28470908447873fe641fb111c0979 and 5eb1976d726c0f8a73b59c0e9e9e9def5d2d78c5.
</details>
<details>
<summary>📒 Files selected for processing (1)</summary>
package.json</details>
</details>
<!-- This is an auto-generated comment by CodeRabbit for review status -->
Required: openclaw.build is build provenance, so these should be exact versions, not semver ranges. The OpenClaw plugin packaging docs show exact openclawVersion and pluginSdkVersion values, and this repo currently locks openclaw to 2026.4.11; using >=2026.3.22 loses the actual SDK/host version the package was built against. Please change both build fields to exact versions matching the build input.
Requested changes: the new build metadata needs exact build-provenance versions before this is safe to merge.
done
fuller-stack-dev
xDarkicex
Summary
compat.minGatewayVersionto theopenclawblock inpackage.jsonbuildblock withopenclawVersionandpluginSdkVersionversion pinsTest plan
package.jsonparses as valid JSONopenclawblock now contains:extensions,compat(pluginApi + minGatewayVersion),build(openclawVersion + pluginSdkVersion),installcompat.pluginApivalue preserved unchanged<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
Summary by CodeRabbit
Chores
Expanded plugin compatibility metadata to include build and SDK targets (updated to 2026.4.11) while retaining existing API and gateway minimum constraints (>=2026.3.22). This clarifies supported build/SDK combinations for plugins.
* No changes to public APIs or exported entities.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->