Skip to content

Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.

fix: build TypeScript packages, add OIDC permission, sync SDK dep, scope GPR publish

JerrettDavisbc49e6da16a9
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 98f5db306..085468de1 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -209,6 +209,7 @@ jobs:
if: github.event.inputs.dry_run != 'true' && vars.PYPI_SKIP != 'true'
environment: pypi # NOTE: environment name must be a literal; update here if the GitHub environment name changes
runs-on: ubuntu-latest
+ permissions: id-token: write # Required for OIDC trusted publishing
steps:
- name: Download dist artifact
uses: actions/download-artifact@v4
@@ -246,6 +247,7 @@ jobs:
run: |
cd sdk/typescript
npm install
+ npm run build
npm version ${{ needs.detect-version.outputs.npm_version }} --no-git-tag-version
npm publish --access public
@@ -255,6 +257,7 @@ jobs:
run: |
cd plugins/openclaw
npm install
+ npm run build
npm version ${{ needs.detect-version.outputs.npm_version }} --no-git-tag-version
npm publish --access public
@@ -285,8 +288,9 @@ jobs:
run: |
cd plugins/openclaw
npm install
+ npm run build
npm version ${{ needs.detect-version.outputs.npm_version }} --no-git-tag-version
- npm publish --access public
+ npm publish --access public --registry ${{ env.GITHUB_PACKAGES_REGISTRY_URL }}
create-release:
needs: [detect-version, build]
diff --git a/scripts/version-sync.py b/scripts/version-sync.py
index ecf459dbc..49b8ab6a9 100644
--- a/scripts/version-sync.py
+++ b/scripts/version-sync.py
@@ -56,6 +56,18 @@ def update_package_json(file_path: Path, version: str) -> None:
f.write("\n")
+def update_openclaw_package_json(file_path: Path, version: str, sdk_version: str) -> None:
+ """Update openclaw package.json version and headroom-ai dependency range."""
+ with open(file_path, encoding="utf-8") as f:
+ data = json.load(f)
+ data["version"] = version
+ if "dependencies" in data and "headroom-ai" in data["dependencies"]:
+ data["dependencies"]["headroom-ai"] = f"^{sdk_version}"
+ with open(file_path, "w", encoding="utf-8") as f:
+ json.dump(data, f, indent=2)
+ f.write("\n")
+
+
def update_pyproject_version(root: Path, version: str) -> None:
"""Update pyproject.toml version."""
pyproject_path = root / "pyproject.toml"
@@ -113,7 +125,9 @@ def main() -> None:
# Update all versioned files
update_pyproject_version(args.root, version)
update_version_py(args.root, version)
- update_package_json(args.root / "plugins" / "openclaw" / "package.json", version)
+ update_openclaw_package_json(
+ args.root / "plugins" / "openclaw" / "package.json", version, version
+ )
update_package_json(args.root / "sdk" / "typescript" / "package.json", version)
write_release_metadata(args.root, version)