GeezerVison is showing github.com — chore(process-daemon): release 0.3.2 under the @opencode scope (#59879) · ogrman/opencode@4d33928
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: .github/workflows/release-process-daemon.yml +3-3Lines changed: 3 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | name: Process daemon release | 2 | 2 |
| 3 | | -# Publishes the opencode-pty binaries and the @opencode-ai/pty npm packages from packages/process-daemon. | | 3 | +# Publishes the opencode-pty binaries and the @opencode/pty npm packages from packages/process-daemon. | 4 | 4 | # Only process-daemon-v<version> tags publish; pull requests that touch the release pipeline build and pack | 5 | 5 | # without publishing. | 6 | 6 |
| @@ -301,7 +301,7 @@ jobs: | 301 | 301 | gh release view "$GITHUB_REF_NAME" --repo "$GITHUB_REPOSITORY" >/dev/null 2>&1 || | 302 | 302 | gh release create "$GITHUB_REF_NAME" --repo "$GITHUB_REPOSITORY" --draft --verify-tag --latest=false \ | 303 | 303 | --title "process-daemon v$version" \ | 304 | | - --notes "opencode-pty $version (protocol $PROTOCOL_VERSION) from packages/process-daemon, published to npm as @opencode-ai/pty@$version." | | 304 | + --notes "opencode-pty $version (protocol $PROTOCOL_VERSION) from packages/process-daemon, published to npm as @opencode/pty@$version." | 305 | 305 | gh release upload "$GITHUB_REF_NAME" dist/*.tar.gz dist/SHA256SUMS dist/release-manifest.json --clobber --repo "$GITHUB_REPOSITORY" | 306 | 306 | gh release edit "$GITHUB_REF_NAME" --draft=false --latest=false --repo "$GITHUB_REPOSITORY" | 307 | 307 | - name: Publish npm packages | @@ -314,7 +314,7 @@ jobs: | 314 | 314 | npm publish "$package" --access public --provenance | 315 | 315 | fi | 316 | 316 | done | 317 | | - name="@opencode-ai/pty" | | 317 | + name="@opencode/pty" | 318 | 318 | if ! npm view "$name@$version" version >/dev/null 2>&1; then | 319 | 319 | npm publish dist/npm/opencode-pty --access public --provenance | 320 | 320 | fi |
Collapse file Copy file name to clipboardExpand all lines: packages/process-daemon/Cargo.lock +1-1Lines changed: 1 addition & 1 deletion Collapse file Copy file name to clipboardExpand all lines: packages/process-daemon/Cargo.toml +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | [package] | 2 | 2 | name = "opencode-pty" | 3 | | -version = "0.3.1" | | 3 | +version = "0.3.2" | 4 | 4 | edition = "2024" | 5 | 5 | rust-version = "1.90" | 6 | 6 | description = "Persistent PTY service for OpenCode" | |
Collapse file Copy file name to clipboardExpand all lines: packages/process-daemon/README.md +5-4Lines changed: 5 additions & 4 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -382,19 +382,20 @@ instruction-set extensions from CI runners (Windows builds set | 382 | 382 | `OPENCODE_ZIG_CPU=baseline`, since the Unix Zig wrapper is a shell script). | 383 | 383 | Linux GNU artifacts support glibc 2.30 and newer. | 384 | 384 |
| 385 | | -Tagged releases also publish `@opencode-ai/pty` to npm with optional, | | 385 | +Tagged releases also publish `@opencode/pty` to npm with optional, | 386 | 386 | platform-specific binary packages. Installing the npm package selects the native | 387 | 387 | binary for the current platform (`opencode-pty.exe` on Windows) and exposes | 388 | 388 | its path as `binaryPath`: | 389 | 389 |
| 390 | 390 | ```js | 391 | | -import { binaryPath } from "@opencode-ai/pty" | | 391 | +import { binaryPath } from "@opencode/pty" | 392 | 392 | ``` | 393 | 393 |
| 394 | 394 | npm publishing uses trusted publishing with provenance. Each of the nine | 395 | | -packages (`@opencode-ai/pty` and the eight `@opencode-ai/pty-<platform>` | | 395 | +packages (`@opencode/pty` and the eight `@opencode/pty-<platform>` | 396 | 396 | packages) must list anomalyco/opencode with workflow | 397 | | -`release-process-daemon.yml` as its trusted publisher. | | 397 | +`release-process-daemon.yml` as its trusted publisher, with no environment | | 398 | +(the release job does not use one). | 398 | 399 |
| 399 | 400 | Pull requests that change the release pipeline run the same build and npm | 400 | 401 | packing without publishing anything. | |
Collapse file Copy file name to clipboardExpand all lines: packages/process-daemon/npm/index.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -10,7 +10,7 @@ const suffix = [process.platform, arch, libc].filter(Boolean).join("-") | 10 | 10 | export const binaryPath = | 11 | 11 | supported && arch | 12 | 12 | ? path.join( | 13 | | - path.dirname(require.resolve(`@opencode-ai/pty-${suffix}/package.json`)), | | 13 | + path.dirname(require.resolve(`@opencode/pty-${suffix}/package.json`)), | 14 | 14 | "bin", | 15 | 15 | process.platform === "win32" ? "opencode-pty.exe" : "opencode-pty", | 16 | 16 | ) | |
Collapse file Copy file name to clipboardExpand all lines: packages/process-daemon/npm/package.json +10-10Lines changed: 10 additions & 10 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | { | 2 | | - "name": "@opencode-ai/pty", | 3 | | - "version": "0.3.1", | | 2 | + "name": "@opencode/pty", | | 3 | + "version": "0.3.2", | 4 | 4 | "description": "Persistent PTY service for OpenCode", | 5 | 5 | "type": "module", | 6 | 6 | "license": "MIT", | | 25 | 25 | "index.js" | 26 | 26 | ], | 27 | 27 | "optionalDependencies": { | 28 | | - "@opencode-ai/pty-darwin-arm64": "0.3.1", | 29 | | - "@opencode-ai/pty-darwin-x64": "0.3.1", | 30 | | - "@opencode-ai/pty-linux-arm64-gnu": "0.3.1", | 31 | | - "@opencode-ai/pty-linux-arm64-musl": "0.3.1", | 32 | | - "@opencode-ai/pty-linux-x64-gnu": "0.3.1", | 33 | | - "@opencode-ai/pty-linux-x64-musl": "0.3.1", | 34 | | - "@opencode-ai/pty-win32-arm64": "0.3.1", | 35 | | - "@opencode-ai/pty-win32-x64": "0.3.1" | | 28 | + "@opencode/pty-darwin-arm64": "0.3.2", | | 29 | + "@opencode/pty-darwin-x64": "0.3.2", | | 30 | + "@opencode/pty-linux-arm64-gnu": "0.3.2", | | 31 | + "@opencode/pty-linux-arm64-musl": "0.3.2", | | 32 | + "@opencode/pty-linux-x64-gnu": "0.3.2", | | 33 | + "@opencode/pty-linux-x64-musl": "0.3.2", | | 34 | + "@opencode/pty-win32-arm64": "0.3.2", | | 35 | + "@opencode/pty-win32-x64": "0.3.2" | 36 | 36 | }, | 37 | 37 | "publishConfig": { | 38 | 38 | "access": "public" | |
Collapse file Copy file name to clipboardExpand all lines: packages/process-daemon/script/npm-packages.mjs +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -26,7 +26,7 @@ await mkdir(output, { recursive: true }) | 26 | 26 |
| 27 | 27 | for (const target of targets) { | 28 | 28 | const suffix = [target.platform, target.arch, target.suffix].filter(Boolean).join("-") | 29 | | - const name = `@opencode-ai/pty-${suffix}` | | 29 | + const name = `@opencode/pty-${suffix}` | 30 | 30 | const directory = path.join(output, `opencode-pty-${suffix}`) | 31 | 31 | const archive = path.join(dist, `opencode-pty-${manifest.version}-${target.target}.tar.gz`) | 32 | 32 | const binary = target.platform === "win32" ? "opencode-pty.exe" : "opencode-pty" | |
|