fix: update release repository metadata (#16186)

Co-authored-by: openhands <openhands@all-hands.dev>
This commit is contained in:
Rohit Malhotra
2026-07-29 22:47:31 -04:00
committed by GitHub
co-authored by openhands
parent e2ceffcae4
commit c86824bafd
9 changed files with 47 additions and 16 deletions
+1 -1
View File
@@ -449,7 +449,7 @@ jobs:
--arg automation_version "$AUTOMATION_VERSION" \
--arg git_sha "$GIT_SHA" \
--arg git_ref "$GIT_REF" \
--arg ghcr_url "https://github.com/OpenHands/agent-canvas/pkgs/container/agent-canvas" \
--arg ghcr_url "https://github.com/OpenHands/OpenHands/pkgs/container/agent-canvas" \
'{image: $image, short_sha: $short_sha, all_tags: $all_tags, architectures: $archs, agent_server_image: $agent_server_image, automation_version: $automation_version, git_sha: $git_sha, git_ref: $git_ref, ghcr_package_url: $ghcr_url}')
echo "Consolidated build summary:"
+3 -3
View File
@@ -12,7 +12,7 @@
</div>
<div align="center">
<a href="https://github.com/OpenHands/incubator-program"><img src="https://img.shields.io/badge/status-beta-blue?style=for-the-badge" alt="Project status beta"></a>
<a href="https://github.com/OpenHands/agent-canvas/actions/workflows/ci.yml"><img src="https://img.shields.io/github/actions/workflow/status/OpenHands/agent-canvas/ci.yml?branch=main&style=for-the-badge" alt="CI status"></a>
<a href="https://github.com/OpenHands/OpenHands/actions/workflows/ci.yml"><img src="https://img.shields.io/github/actions/workflow/status/OpenHands/OpenHands/ci.yml?branch=main&style=for-the-badge" alt="CI status"></a>
<a href="https://www.npmjs.com/package/@openhands/agent-canvas"><img src="https://img.shields.io/npm/v/%40openhands%2Fagent-canvas?style=for-the-badge&logo=npm" alt="npm version"></a>
<a href="https://docs.openhands.dev/openhands/usage/agent-canvas/backends"><img src="https://img.shields.io/badge/Documentation-000?logo=googledocs&logoColor=FFE165&style=for-the-badge" alt="Documentation"></a>
<a href="https://go.openhands.dev/slack"><img src="https://img.shields.io/badge/Slack-Join%20the%20community-611f69?logo=slack&logoColor=white&style=for-the-badge" alt="Join us on Slack"></a>
@@ -111,8 +111,8 @@ The agent will be able to access any project under `PROJECTS_PATH`.
**Prerequisites**: Node.js 22.12.x or later, `npm`, `uv` (for running the agent server via `uvx`)
```sh
git clone https://github.com/OpenHands/agent-canvas.git
cd agent-canvas
git clone https://github.com/OpenHands/OpenHands.git
cd OpenHands
npm install
npm run dev
```
+32 -1
View File
@@ -14,13 +14,44 @@ function read(rel: string): string {
}
describe("npm publish workflow", () => {
it("uses the canonical GitHub repository in release metadata", () => {
const packageJson = JSON.parse(read("package.json"));
const dockerfile = read("docker/Dockerfile");
const dockerWorkflow = read(".github/workflows/docker.yml");
expect(packageJson.repository.url).toBe(
"https://github.com/OpenHands/OpenHands",
);
expect(packageJson.homepage).toBe(
"https://github.com/OpenHands/OpenHands#readme",
);
expect(packageJson.bugs.url).toBe(
"https://github.com/OpenHands/OpenHands/issues",
);
expect(dockerfile).toContain(
'LABEL org.opencontainers.image.source="https://github.com/OpenHands/OpenHands"',
);
expect(dockerWorkflow).toContain(
"https://github.com/OpenHands/OpenHands/pkgs/container/agent-canvas",
);
});
it("does not let electron-builder auto-publish during desktop builds", () => {
const packageJson = JSON.parse(read("package.json"));
expect(packageJson.scripts["build:desktop"]).toContain("--publish never");
expect(packageJson.scripts["build:desktop:universal"]).toContain(
"--publish never",
);
});
it("builds both package surfaces with the production PostHog key", () => {
const workflow = read(".github/workflows/npm-publish.yml");
const buildAppStep = workflow.match(
/- name: Build app[\s\S]*?(?=\n\s*- name: Build library)/,
)?.[0];
const buildLibraryStep = workflow.match(
/- name: Build library[\s\S]*?(?=\n\s*- name: Verify package contents)/,
/- name: Build library[\s\S]*?(?=\n\s*- name: Bake package telemetry defaults)/,
)?.[0];
expect(buildAppStep).toBeTruthy();
+1 -1
View File
@@ -80,7 +80,7 @@ ARG VITE_POSTHOG_API_KEY=""
ARG AGENT_CANVAS_VERSION=dev
LABEL org.opencontainers.image.title="agent-canvas"
LABEL org.opencontainers.image.description="All-in-one agent-canvas: Agent Server + Automation + Frontend"
LABEL org.opencontainers.image.source="https://github.com/OpenHands/agent-canvas"
LABEL org.opencontainers.image.source="https://github.com/OpenHands/OpenHands"
LABEL org.opencontainers.image.version="${AGENT_CANVAS_VERSION}"
LABEL org.opencontainers.image.revision="${OPENHANDS_BUILD_GIT_SHA}"
+2 -2
View File
@@ -15,9 +15,9 @@ version: 0.1.0
# hand; the trailing annotation is what marks this line for replacement.
appVersion: "1.7.0" # x-release-please-version
kubeVersion: ">=1.24.0-0"
home: https://github.com/OpenHands/agent-canvas
home: https://github.com/OpenHands/OpenHands
sources:
- https://github.com/OpenHands/agent-canvas
- https://github.com/OpenHands/OpenHands
keywords:
- openhands
- agent
+1 -1
View File
@@ -1,6 +1,6 @@
# agent-canvas Helm chart
Helm chart for running the [OpenHands agent-canvas](https://github.com/OpenHands/agent-canvas)
Helm chart for running the [OpenHands agent-canvas](https://github.com/OpenHands/OpenHands)
all-in-one image (frontend + agent-server + automation) on Kubernetes as a
`StatefulSet` with persistent storage, an `Ingress`, and optional in-cluster
RBAC.
+5 -5
View File
@@ -7,11 +7,11 @@
"type": "module",
"repository": {
"type": "git",
"url": "https://github.com/OpenHands/agent-canvas"
"url": "https://github.com/OpenHands/OpenHands"
},
"homepage": "https://github.com/OpenHands/agent-canvas#readme",
"homepage": "https://github.com/OpenHands/OpenHands#readme",
"bugs": {
"url": "https://github.com/OpenHands/agent-canvas/issues"
"url": "https://github.com/OpenHands/OpenHands/issues"
},
"bin": {
"agent-canvas": "bin/agent-canvas.mjs"
@@ -102,8 +102,8 @@
"build:docker": "node scripts/docker-build.mjs",
"example:acp-docker:env": "node scripts/gen-acp-docker-env.mjs",
"desktop": "npm run build:app && electron electron/main.mjs",
"build:desktop": "npm run build:app && node scripts/download-uv.mjs && node scripts/download-node.mjs && electron-builder --config electron-builder.config.mjs",
"build:desktop:universal": "npm run build:app && node scripts/download-uv.mjs && node scripts/download-node.mjs && cross-env ELECTRON_ARCH=universal electron-builder --config electron-builder.config.mjs",
"build:desktop": "npm run build:app && node scripts/download-uv.mjs && node scripts/download-node.mjs && electron-builder --config electron-builder.config.mjs --publish never",
"build:desktop:universal": "npm run build:app && node scripts/download-uv.mjs && node scripts/download-node.mjs && cross-env ELECTRON_ARCH=universal electron-builder --config electron-builder.config.mjs --publish never",
"download-uv": "node scripts/download-uv.mjs",
"download-node": "node scripts/download-node.mjs"
},
+1 -1
View File
@@ -77,7 +77,7 @@ Triggering from other repos:
curl -X POST \\
-H "Authorization: token \$GITHUB_TOKEN" \\
-H "Accept: application/vnd.github.v3+json" \\
https://api.github.com/repos/OpenHands/agent-canvas/dispatches \\
https://api.github.com/repos/OpenHands/OpenHands/dispatches \\
-d '{"event_type": "sdk-version-check", "client_payload": {"version": "1.38.0"}}'
`);
process.exit(0);
+1 -1
View File
@@ -10,7 +10,7 @@ const NPM_LATEST_VERSION_URL =
"https://registry.npmjs.org/@openhands/agent-canvas/latest";
export const AGENT_CANVAS_RELEASE_NOTES_URL =
"https://github.com/OpenHands/agent-canvas/releases";
"https://github.com/OpenHands/OpenHands/releases";
/** Literal shell commands — intentionally not localized. */
export const AGENT_CANVAS_UPDATE_COMMANDS = {