Repository navigation
feat(release): publish fork @openclaw/msteams tarball on boon releases (ENG-14431) - #60
Conversation
…s (ENG-14431) The boon fork ships only the gateway tarball; @openclaw/msteams was consumed from the upstream public npm registry, so the fork's Teams fixes (ENG-14349 attachment Graph fallback + aadGroupId, ENG-14117 topLevel, filecard->SharePoint -link) never reached a running host — gandalf-manager shipped them as a fragile host-local SP-PATCH / dist-swap that a plugin reinstall or fresh standup wiped. Publish a fork-versioned @openclaw/msteams as a sibling GitHub Release asset on the same v*-boon.* tag as the gateway: - extensions/msteams/package.json: version 2026.6.11 -> 2026.6.11-boon.4 (tracks the gateway -boon.N in lockstep). compat.pluginApi >=2026.6.11 stays correct (a -boon.N host normalizes to 2026.6.11 per PR #41). publishToNpm stays true — it gates the official channel catalog / shrinkwrap / runtime build, NOT just the npm-publish path (which only fires on main and can't ship a -boon.N version anyway); the fork ships msteams via GitHub Release like the gateway. - boon-release.yml: pack the plugin with the fork's own release tooling (plugin-npm-runtime-build.mjs + plugin-npm-package-manifest.mjs --run npm pack) so the tarball is runnable (dist/*.js entries + bundled workspace deps), assert it on disk, compute sha256, and upload openclaw-msteams-<ver>.tgz + .sha256 alongside the gateway. Version guard mirrors the gateway "tag == version" step. gandalf-manager installs this via `openclaw plugins install npm-pack:<tgz>` — the only path that records source:npm (matching catalog npmSpec @openclaw/msteams) so 6.11's openKeyedStore trust-gate accepts it; a bare-tarball/--link install records source:archive/path and crash-loops the channel. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
|
Claude encountered an error —— View job I'll analyze this and get back to you. |
Dependency GuardThis PR changes dependency-related files. Maintainers should confirm these changes are intentional. Changed files:
Maintainer follow-up:
|
Dependency graph change authorizedThis PR includes dependency graph changes. A repository admin or member of
A later push changes the PR head SHA and requires a fresh security approval. |
…injection)
The version guard interpolated ${{ github.ref_name }} directly into the run:
shell body — zizmor flags this as a code-injection vector. Pass it via env TAG
instead, matching the gateway pack/assert steps above. No behavior change.
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
There was a problem hiding this comment.
cubic analysis
1 issue found and verified against the latest diff
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="extensions/msteams/package.json">
<violation number="1" location="extensions/msteams/package.json:3">
P2: The msteams package metadata is internally inconsistent, so the package-manager consistency test fails and the release tarball would contain a shrinkwrap advertising the old version. Updating the two root version fields in `extensions/msteams/npm-shrinkwrap.json` (or regenerating the plugin shrinkwrap) keeps the fork tarball and its lock metadata aligned.</violation>
</file>
Linked issue analysis
Linked issue: ENG-14431: [P2] Publish a boon-fork @openclaw/msteams package so the patches don't have to live as host-local edits
| Status | Acceptance criteria | Notes |
|---|---|---|
| ✅ | Add a workflow step that builds the plugin dist and packs a runnable openclaw-msteams-.tgz using the plugin runtime build + package-manifest overlay | boon-release.yml adds an explicit step that runs plugin-npm-runtime-build.mjs then plugin-npm-package-manifest.mjs --run followed by npm pack, producing the tarball via the documented overlay. |
| ✅ | Compute and include a .sha256 for the packed tarball | The pack step writes sha256sum > .sha256 after packing. |
| ✅ | Fail the release if the repository tag does not match extensions/msteams/package.json version (ensure lockstep -boon.N tagging) | The workflow checks the package.json version and exits nonzero if the git tag (github.ref_name) doesn't equal v. |
| ✅ | Upload the openclaw-msteams-.tgz and its .sha256 as sibling assets to the same GitHub Release alongside the gateway tarball | The Publish GitHub Release step uploads both the gateway tarball and the MSTEAMS_TARBALL plus their .sha256 files when creating or updating the release. |
| ✅ | Bump extensions/msteams/package.json version to a -boon.N variant that tracks the gateway (e.g. 2026.6.11-boon.4) | The package.json in extensions/msteams is updated to include the -boon.4 suffix in this PR. |
| ✅ | Document the change in CHANGELOG.md | CHANGELOG.md contains an Unreleased entry describing the fork-publish of @openclaw/msteams and the release asset contract. |
Reply with feedback, questions, or to request a fix.
Fix all with cubic | Re-trigger cubic
|
CI note — The guard fires because
|
…GELOG (PR #60 review) - extensions/msteams/npm-shrinkwrap.json: bump the two version fields (root + packages[""]) 2026.6.11 -> 2026.6.11-boon.4 to match package.json. This fixes the `checks-node-core-tooling` failure: test/package-manager-config.test.ts ("ships shrinkwrap for every publishable plugin package") asserts the shrinkwrap version equals package.json's, so the tarball's lock metadata isn't stale. - CHANGELOG.md: remove the `Unreleased` block. This repo adds a per-version `release: CHANGELOG section for <ver>` commit at tag-cut (e.g. #58 for boon.4) and package-changelog.mjs narrows to a versioned section; there's no Unreleased convention. The release-note context lives in the PR body + this commit instead. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
…(PR #60 CI) The msteams version bump to 2026.6.11-boon.4 failed checks-node-core-tooling (test/plugin-npm-release.test.ts): parseReleaseVersion in npm-publish-plan.mjs only recognized YYYY.M.PATCH[-N|-alpha.N|-beta.N], so a publishable plugin at -boon.N was rejected as an unrecognized prerelease. msteams must stay publishable (publishToNpm/publishToClawHub) or the release workflow's dist build no-ops. Add a BOON_VERSION_REGEX arm parsed identically to the numeric `-N` correction (stable channel + correctionNumber) — the same treatment src/infra/clawhub.ts already gives -boon.N for the plugin API compat gate (getboon/openclaw PR #41). So 2026.6.11-boon.4 parses as a stable correction: publishTag "latest", sorts after -boon.3 and after the plain 2026.6.11 base; -boon.0/-boon.x still rejected. Verified: plugin-npm-release, npm-publish-plan, official-channel-catalog, package-manager-config, openclaw-npm-release-check suites all pass (189 tests). Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
There was a problem hiding this comment.
All reported issues were addressed across 1 file (changes from recent commits).
Tip: Review your code locally with the cubic CLI to iterate faster.
Fix all with cubic | Re-trigger cubic
…uidance (PR #60 review) Addresses the two open cubic P3s on getboon/openclaw PR #60: - Validator guidance for an invalid publishable-plugin version now lists the supported `YYYY.M.PATCH-boon.N` form (3 message sites: resolvePublishablePluginVersion, collectPublishablePluginPackageErrors, collectReleaseTagErrors) so a rejected fork version is actionable. Existing assertions updated in lockstep. - Add a focused regression suite for the `-boon.N` acceptance path in npm-publish-plan.mjs: parse (stable correction w/ correctionNumber), reject boon.0, publish-plan (latest + beta mirror), compare ordering, and patch-floor validity. Guards the matcher added in 8ff610d against silent regression. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
|
Pushed 47572c1 addressing the two open cubic P3s (validator guidance now lists
|
|
/allow-dependencies-change |
There was a problem hiding this comment.
Approved. Clean release-plumbing PR (ENG-14431).
- Ships fork-versioned @openclaw/msteams as a sibling Release asset — the durable fix for the fragile host-local SP-PATCH/dist-swap. Asset contract frozen + documented.
-boon.Nvalidator arm parses identically to the numeric-Ncorrection and mirrors the clawhub compat normalization from PR #41 — consistent with the existing pattern, no new tech debt.- Version guard (tag == msteams package version) blocks a drifted/mismatched asset from shipping. Good.
- Zizmor template-injection addressed (tag passed via env, matching the gateway steps).
- Shrinkwrap aligned to package.json; check-shrinkwrap green.
- Tests cover the new regex arm: parse, reject boon.0, publish-plan, ordering, patch-floor.
- No secrets in diff or history, no migrations, no breaking callers.
CI all green (107 pass). Note (non-blocking): a -boon.N sorts at the same rank as a hypothetical numeric -N correction of the same number, but the fork never emits numeric -N, so no real collision. Ship it.
…-npm rationale (PR #61 review) Addresses the two cubic review comments on PR #61: - P1: root npm-shrinkwrap.json version fields were still at boon.3 (never bumped since #41), so the packed gateway tarball would ship shrinkwrap metadata not matching the boon.5 manifest — check-openclaw-package-tarball asserts they match. Bump both root version fields to 2026.6.11-boon.5. Version-string-only change; no dependency entries touched (pnpm-lock alignment unaffected; package-manager-config test passes 12/12). - P3: the CHANGELOG rationale claimed `-boon.N` "has no npm-publish validator arm" — stale as of #60, which added BOON_VERSION_REGEX to the publish validator. Drop that clause; the upstream-owned @openclaw/* scope is the real (and sufficient) reason the fork ships msteams via GitHub Release. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
What
Publish a fork-versioned
@openclaw/msteamsplugin as a GitHub Release asset on everyv*-boon.*tag, alongside the gateway tarball. gandalf-manager will install it instead of upstream-npm-@openclaw/msteams+ a host-local SP-PATCH.extensions/msteams/package.json:2026.6.11→2026.6.11-boon.4(tracks the gateway-boon.N1:1).compat.pluginApi: ">=2026.6.11"unchanged (a-boon.Nhost normalizes to2026.6.11per PR fix(clawhub): accept -boon.N in plugin API compat regex #41).publishToNpmkepttrue(it gates the official channel catalog / shrinkwrap / runtime build — not just npm publish)..github/workflows/boon-release.yml: new "Pack msteams plugin tarball" step using the fork's own release tooling (plugin-npm-runtime-build.mjs+plugin-npm-package-manifest.mjs --run … npm pack) so the tarball is runnable (./dist/*.jsentries + bundled workspace deps). Asserts the artifact on disk (doesn't parse pack stdout), version-guards against the tag, and uploadsopenclaw-msteams-<ver>.tgz+.sha256.Asset contract (frozen):
https://github.com/getboon/openclaw/releases/download/v<ver>/openclaw-msteams-<ver>.tgz+.sha256.Why
The fork's msteams source fixes — ENG-14349 (attachment Graph fallback + aadGroupId), ENG-14117 (
topLevel), filecard→SharePoint-link — never reached running hosts because msteams was consumed from the upstream public registry. gandalf-manager shipped them as a fragile textual SP-PATCH on the minified bundle / a host-localdist/swap that any plugin reinstall or fresh standup silently wiped. This is the durable fix (ENG-14431).Why a GitHub Release tarball (not npm)
Same reason the gateway isn't on npm: the npm-publish version validator (
npm-publish-plan.mjs) has no-boon.Narm, and@openclaw/*is an upstream-owned scope. gandalf-manager installs the asset viaopenclaw plugins install npm-pack:<tgz>— the only path that recordssource:npm(matching the official catalog npmSpec@openclaw/msteams), which 6.11'sopenKeyedStoretrust-gate requires. A bare-tarball /--linkinstall recordssource:archive/pathand crash-loops the channel (bit arguijo live 2026-07-06).Test
plugin-npm-runtime-build.mjs extensions/msteamsthen the overlaynpm pack→openclaw-msteams-2026.6.11-boon.4.tgz(7.6 MB, 136 bundled deps). Unpacked package.json shipsdist/**; all fork markers present (createMSTeamsTopLevelActionSchema,SharePoint file link/shareUrl,aadGroupId); built chunkchannel-Dg38EtYe.jsmatches the arguijo dist-swap.Consumer
gandalf-manager PR (repoints
03-install-openclaw.sh, addsfleet-msteams.sh+install-msteams-fork.sh, deletes the SP-PATCH): opened separately.🤖 Generated with Claude Code
Summary by cubic
Publish a fork-versioned
@openclaw/msteamstarball as a sibling asset on eachv*-boon.*release so Teams fixes ship reliably without host-local patches. Bumpsextensions/msteamsto2026.6.11-boon.4and updates the release workflow to build, pack, hash, and upload with a strict tag==version guard.New Features
@openclaw/msteamstarball using fork tooling and computes.sha256.openclaw-msteams-<version>.tgz+.sha256next to the gateway, with a stable asset URL.gandalf-managerinstalls viaopenclaw plugins install npm-pack:<tgz>to preservesource:npmtrust.Bug Fixes
extensions/msteams/npm-shrinkwrap.jsonversion withpackage.jsonto satisfy tooling checks.-boon.Nin the publishable-plugin version validator and updates guidance messages to include theYYYY.M.PATCH-boon.Nform; adds regression tests covering parse/plan/order/floor for-boon.N.Written for commit 47572c1. Summary will update on new commits.