← Back to Pull requests

fix: add compat.minGatewayVersion and build metadata for ClawHub compliance #66

Merged
xDarkicex merged 1 files (7 lines) on May 04, 2026 08:05 UTC
View on GitHub
xDarkicex xDarkicex commented on May 03, 2026 08:18 UTC
Author

Summary


  • Adds compat.minGatewayVersion to the openclaw block in package.json

  • Adds build block with openclawVersion and pluginSdkVersion version pins

  • These fields are required for ClawHub publishing per the Building Plugins docs
  • Test plan


  • package.json parses as valid JSON

  • openclaw block now contains: extensions, compat (pluginApi + minGatewayVersion), build (openclawVersion + pluginSdkVersion), install

  • Existing compat.pluginApi value 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 -->

    Diff: 7 lines (+6 / -1) across 1 files Reviewer: fuller-stack-dev Review duration: 1427m
    All Vouch review confidence checks passed
    Residual risk 0.05 = Change Risk (0.20) × (1 − Review Confidence (0.76)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.20 · 7 lines diff across 1 files
    0.20
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.52 · 3 substantive comment(s)
    0.52
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 50%
    75%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.124
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    6 items
    coderabbitai[bot] coderabbitai[bot] commented on May 03, 2026 08:18 UTC
    Bot

    <!-- 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

  • xDarkicex/openclaw-memory-libravdb#65 — Also edits 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>

  • <!-- {"checkboxId": "f47ac10b-58cc-4372-a567-0e02b2c3d479", "radioGroupId": "utg-output-choice-group-unknown_comment_id"} --> Create PR with unit tests

  • <!-- {"checkboxId": "6ba7b810-9dad-11d1-80b4-00c04fd430c8", "radioGroupId": "utg-output-choice-group-unknown_comment_id"} --> Commit unit tests in branch 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>

  • X

  • Mastodon

  • Reddit

  • LinkedIn
  • </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+AIwBWJBrngA3EsgEBPRvlqU0AgfFwA6NPEgQAfACgjoCEYDEZyAAUASpETZWaCrKPR1AGxJcAZvAAeXGi09EzM3NQazPAYAO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NhVsLh4zFPukstoKMBgb4BgbFAQG6XFflNAEgEgSUbUG6UYRUFUEieAjUaUFUOgOAm6BVRUQVFUSUNAeVBgGVLlbFMlUQBVBgXFIVQglUVzA2eoD/GwJzYDYIOUTlaAhgSUDUbUaUEg2gG6EIUlboRA0UEIUA2gRUeVWgEAsAxULFUYXFbFWAlUXFXFDgxA3FeVaJOA3FAQThOtdWKAB1J1F1Wzc1W1MFCAXGfASFCIKfJFbkEgewlFHlAwH1OgsDXAKwL3OgO0XAKDK1EPWgcNdQAqFCXAWNaUfQ3lR5Gw7wpwmgSFcw1WIAA== -->

    <!-- internal state end -->

    coderabbitai[bot] coderabbitai[bot] commented on May 03, 2026 08:20 UTC
    Reviewer

    [!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.

    > The openclaw.build.openclawVersion and openclaw.build.pluginSdkVersion fields 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 for openclaw.compat.minGatewayVersion and openclaw.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 -->

    fuller-stack-dev fuller-stack-dev commented on code on May 04, 2026 03:27 UTC
    Code Review
    package.json:1
    @@ -34,7 +34,12 @@
           "./dist/index.js"
         ],
         "compat": {
    -      "pluginApi": ">=2026.3.22"
    +      "pluginApi": ">=2026.3.22",
    +      "minGatewayVersion": ">=2026.3.22"
    +    },
    +    "build": {
    +      "openclawVersion": ">=2026.3.22",

    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.

    fuller-stack-dev fuller-stack-dev requested changes on May 04, 2026 03:27 UTC
    Changes Requested Reviewer

    Requested changes: the new build metadata needs exact build-provenance versions before this is safe to merge.

    xDarkicex xDarkicex commented on code on May 04, 2026 08:05 UTC
    Code Review
    package.json:1
    @@ -34,7 +34,12 @@
           "./dist/index.js"
         ],
         "compat": {
    -      "pluginApi": ">=2026.3.22"
    +      "pluginApi": ">=2026.3.22",
    +      "minGatewayVersion": ">=2026.3.22"
    +    },
    +    "build": {
    +      "openclawVersion": ">=2026.3.22",

    done

    Assignees
    xDarkicex xDarkicex
    Labels
    risk: low confidence: 75.6% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 20.4% (LOW) · Higher = larger blast radius
    20.4%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 75.6% · Lower = rushed or shallow review
    75.6%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 5.0% · Safe to merge
    5.0%