Skip to content

Commit 4d33928

Browse files
authored
chore(process-daemon): release 0.3.2 under the @OpenCode scope (#59879)
1 parent 8c2e163 commit 4d33928

7 files changed

Lines changed: 22 additions & 21 deletions

File tree

‎.github/workflows/release-process-daemon.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Process daemon release
22

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.
44
# Only process-daemon-v<version> tags publish; pull requests that touch the release pipeline build and pack
55
# without publishing.
66

@@ -301,7 +301,7 @@ jobs:
301301
gh release view "$GITHUB_REF_NAME" --repo "$GITHUB_REPOSITORY" >/dev/null 2>&1 ||
302302
gh release create "$GITHUB_REF_NAME" --repo "$GITHUB_REPOSITORY" --draft --verify-tag --latest=false \
303303
--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."
305305
gh release upload "$GITHUB_REF_NAME" dist/*.tar.gz dist/SHA256SUMS dist/release-manifest.json --clobber --repo "$GITHUB_REPOSITORY"
306306
gh release edit "$GITHUB_REF_NAME" --draft=false --latest=false --repo "$GITHUB_REPOSITORY"
307307
- name: Publish npm packages
@@ -314,7 +314,7 @@ jobs:
314314
npm publish "$package" --access public --provenance
315315
fi
316316
done
317-
name="@opencode-ai/pty"
317+
name="@opencode/pty"
318318
if ! npm view "$name@$version" version >/dev/null 2>&1; then
319319
npm publish dist/npm/opencode-pty --access public --provenance
320320
fi

‎packages/process-daemon/Cargo.lock‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎packages/process-daemon/Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "opencode-pty"
3-
version = "0.3.1"
3+
version = "0.3.2"
44
edition = "2024"
55
rust-version = "1.90"
66
description = "Persistent PTY service for OpenCode"

‎packages/process-daemon/README.md‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -382,19 +382,20 @@ instruction-set extensions from CI runners (Windows builds set
382382
`OPENCODE_ZIG_CPU=baseline`, since the Unix Zig wrapper is a shell script).
383383
Linux GNU artifacts support glibc 2.30 and newer.
384384

385-
Tagged releases also publish `@opencode-ai/pty` to npm with optional,
385+
Tagged releases also publish `@opencode/pty` to npm with optional,
386386
platform-specific binary packages. Installing the npm package selects the native
387387
binary for the current platform (`opencode-pty.exe` on Windows) and exposes
388388
its path as `binaryPath`:
389389

390390
```js
391-
import { binaryPath } from "@opencode-ai/pty"
391+
import { binaryPath } from "@opencode/pty"
392392
```
393393

394394
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>`
396396
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).
398399

399400
Pull requests that change the release pipeline run the same build and npm
400401
packing without publishing anything.

‎packages/process-daemon/npm/index.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const suffix = [process.platform, arch, libc].filter(Boolean).join("-")
1010
export const binaryPath =
1111
supported && arch
1212
? path.join(
13-
path.dirname(require.resolve(`@opencode-ai/pty-${suffix}/package.json`)),
13+
path.dirname(require.resolve(`@opencode/pty-${suffix}/package.json`)),
1414
"bin",
1515
process.platform === "win32" ? "opencode-pty.exe" : "opencode-pty",
1616
)

‎packages/process-daemon/npm/package.json‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "@opencode-ai/pty",
3-
"version": "0.3.1",
2+
"name": "@opencode/pty",
3+
"version": "0.3.2",
44
"description": "Persistent PTY service for OpenCode",
55
"type": "module",
66
"license": "MIT",
@@ -25,14 +25,14 @@
2525
"index.js"
2626
],
2727
"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"
3636
},
3737
"publishConfig": {
3838
"access": "public"

‎packages/process-daemon/script/npm-packages.mjs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ await mkdir(output, { recursive: true })
2626

2727
for (const target of targets) {
2828
const suffix = [target.platform, target.arch, target.suffix].filter(Boolean).join("-")
29-
const name = `@opencode-ai/pty-${suffix}`
29+
const name = `@opencode/pty-${suffix}`
3030
const directory = path.join(output, `opencode-pty-${suffix}`)
3131
const archive = path.join(dist, `opencode-pty-${manifest.version}-${target.target}.tar.gz`)
3232
const binary = target.platform === "win32" ? "opencode-pty.exe" : "opencode-pty"

0 commit comments

Comments
 (0)