From 4d33928e25c0a7f4cd11ab8f0fd2daca0d41bdb1 Mon Sep 17 00:00:00 2001 From: James Long Date: Wed, 28 Oct 2026 11:16:58 -0400 Subject: [PATCH] chore(process-daemon): release 0.3.2 under the @opencode scope (#59879) --- .github/workflows/release-process-daemon.yml | 6 +++--- packages/process-daemon/Cargo.lock | 2 +- packages/process-daemon/Cargo.toml | 2 +- packages/process-daemon/README.md | 9 +++++---- packages/process-daemon/npm/index.js | 2 +- packages/process-daemon/npm/package.json | 20 +++++++++---------- .../process-daemon/script/npm-packages.mjs | 2 +- 7 files changed, 22 insertions(+), 21 deletions(-) diff --git a/.github/workflows/release-process-daemon.yml b/.github/workflows/release-process-daemon.yml index 56dec39fa4a..147f3ddf58b 100644 --- a/.github/workflows/release-process-daemon.yml +++ b/.github/workflows/release-process-daemon.yml @@ -1,6 +1,6 @@ name: Process daemon release -# Publishes the opencode-pty binaries and the @opencode-ai/pty npm packages from packages/process-daemon. +# Publishes the opencode-pty binaries and the @opencode/pty npm packages from packages/process-daemon. # Only process-daemon-v tags publish; pull requests that touch the release pipeline build and pack # without publishing. @@ -301,7 +301,7 @@ jobs: gh release view "$GITHUB_REF_NAME" --repo "$GITHUB_REPOSITORY" >/dev/null 2>&1 || gh release create "$GITHUB_REF_NAME" --repo "$GITHUB_REPOSITORY" --draft --verify-tag --latest=false \ --title "process-daemon v$version" \ - --notes "opencode-pty $version (protocol $PROTOCOL_VERSION) from packages/process-daemon, published to npm as @opencode-ai/pty@$version." + --notes "opencode-pty $version (protocol $PROTOCOL_VERSION) from packages/process-daemon, published to npm as @opencode/pty@$version." gh release upload "$GITHUB_REF_NAME" dist/*.tar.gz dist/SHA256SUMS dist/release-manifest.json --clobber --repo "$GITHUB_REPOSITORY" gh release edit "$GITHUB_REF_NAME" --draft=false --latest=false --repo "$GITHUB_REPOSITORY" - name: Publish npm packages @@ -314,7 +314,7 @@ jobs: npm publish "$package" --access public --provenance fi done - name="@opencode-ai/pty" + name="@opencode/pty" if ! npm view "$name@$version" version >/dev/null 2>&1; then npm publish dist/npm/opencode-pty --access public --provenance fi diff --git a/packages/process-daemon/Cargo.lock b/packages/process-daemon/Cargo.lock index 0ee211427ff..de46af9b169 100644 --- a/packages/process-daemon/Cargo.lock +++ b/packages/process-daemon/Cargo.lock @@ -184,7 +184,7 @@ dependencies = [ [[package]] name = "opencode-pty" -version = "0.3.1" +version = "0.3.2" dependencies = [ "anyhow", "base64", diff --git a/packages/process-daemon/Cargo.toml b/packages/process-daemon/Cargo.toml index b354e97a21e..a7aa948fd34 100644 --- a/packages/process-daemon/Cargo.toml +++ b/packages/process-daemon/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "opencode-pty" -version = "0.3.1" +version = "0.3.2" edition = "2024" rust-version = "1.90" description = "Persistent PTY service for OpenCode" diff --git a/packages/process-daemon/README.md b/packages/process-daemon/README.md index b26a1fca9e4..9804633177d 100644 --- a/packages/process-daemon/README.md +++ b/packages/process-daemon/README.md @@ -382,19 +382,20 @@ instruction-set extensions from CI runners (Windows builds set `OPENCODE_ZIG_CPU=baseline`, since the Unix Zig wrapper is a shell script). Linux GNU artifacts support glibc 2.30 and newer. -Tagged releases also publish `@opencode-ai/pty` to npm with optional, +Tagged releases also publish `@opencode/pty` to npm with optional, platform-specific binary packages. Installing the npm package selects the native binary for the current platform (`opencode-pty.exe` on Windows) and exposes its path as `binaryPath`: ```js -import { binaryPath } from "@opencode-ai/pty" +import { binaryPath } from "@opencode/pty" ``` npm publishing uses trusted publishing with provenance. Each of the nine -packages (`@opencode-ai/pty` and the eight `@opencode-ai/pty-` +packages (`@opencode/pty` and the eight `@opencode/pty-` packages) must list anomalyco/opencode with workflow -`release-process-daemon.yml` as its trusted publisher. +`release-process-daemon.yml` as its trusted publisher, with no environment +(the release job does not use one). Pull requests that change the release pipeline run the same build and npm packing without publishing anything. diff --git a/packages/process-daemon/npm/index.js b/packages/process-daemon/npm/index.js index 5e018fd3c90..d645177f75e 100644 --- a/packages/process-daemon/npm/index.js +++ b/packages/process-daemon/npm/index.js @@ -10,7 +10,7 @@ const suffix = [process.platform, arch, libc].filter(Boolean).join("-") export const binaryPath = supported && arch ? path.join( - path.dirname(require.resolve(`@opencode-ai/pty-${suffix}/package.json`)), + path.dirname(require.resolve(`@opencode/pty-${suffix}/package.json`)), "bin", process.platform === "win32" ? "opencode-pty.exe" : "opencode-pty", ) diff --git a/packages/process-daemon/npm/package.json b/packages/process-daemon/npm/package.json index eb528dd1cbc..5d8fbf95150 100644 --- a/packages/process-daemon/npm/package.json +++ b/packages/process-daemon/npm/package.json @@ -1,6 +1,6 @@ { - "name": "@opencode-ai/pty", - "version": "0.3.1", + "name": "@opencode/pty", + "version": "0.3.2", "description": "Persistent PTY service for OpenCode", "type": "module", "license": "MIT", @@ -25,14 +25,14 @@ "index.js" ], "optionalDependencies": { - "@opencode-ai/pty-darwin-arm64": "0.3.1", - "@opencode-ai/pty-darwin-x64": "0.3.1", - "@opencode-ai/pty-linux-arm64-gnu": "0.3.1", - "@opencode-ai/pty-linux-arm64-musl": "0.3.1", - "@opencode-ai/pty-linux-x64-gnu": "0.3.1", - "@opencode-ai/pty-linux-x64-musl": "0.3.1", - "@opencode-ai/pty-win32-arm64": "0.3.1", - "@opencode-ai/pty-win32-x64": "0.3.1" + "@opencode/pty-darwin-arm64": "0.3.2", + "@opencode/pty-darwin-x64": "0.3.2", + "@opencode/pty-linux-arm64-gnu": "0.3.2", + "@opencode/pty-linux-arm64-musl": "0.3.2", + "@opencode/pty-linux-x64-gnu": "0.3.2", + "@opencode/pty-linux-x64-musl": "0.3.2", + "@opencode/pty-win32-arm64": "0.3.2", + "@opencode/pty-win32-x64": "0.3.2" }, "publishConfig": { "access": "public" diff --git a/packages/process-daemon/script/npm-packages.mjs b/packages/process-daemon/script/npm-packages.mjs index 12147177ef6..5f37f4a4366 100644 --- a/packages/process-daemon/script/npm-packages.mjs +++ b/packages/process-daemon/script/npm-packages.mjs @@ -26,7 +26,7 @@ await mkdir(output, { recursive: true }) for (const target of targets) { const suffix = [target.platform, target.arch, target.suffix].filter(Boolean).join("-") - const name = `@opencode-ai/pty-${suffix}` + const name = `@opencode/pty-${suffix}` const directory = path.join(output, `opencode-pty-${suffix}`) const archive = path.join(dist, `opencode-pty-${manifest.version}-${target.target}.tar.gz`) const binary = target.platform === "win32" ? "opencode-pty.exe" : "opencode-pty"