Skip to content

Commit d3ad3da

Browse files
authored
chore(core): use @opencode/pty 0.3.3 (#60276)
1 parent 3eb834b commit d3ad3da

9 files changed

Lines changed: 30 additions & 31 deletions

File tree

‎bun.lock‎

Lines changed: 21 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎bunfig.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
exact = true
33
# Only install newly resolved package versions published at least 3 days ago.
44
minimumReleaseAge = 259200
5-
minimumReleaseAgeExcludes = ["@ai-sdk/amazon-bedrock", "@ai-sdk/anthropic", "@brendonovich/vite-plugin-opencode", "@kitlangton/knobs", "@kitlangton/solid-motion", "@opencode/sdk", "@opencode-ai/pty", "@opencode-ai/pty-darwin-arm64", "@opencode-ai/pty-darwin-x64", "@opencode-ai/pty-linux-arm64-gnu", "@opencode-ai/pty-linux-arm64-musl", "@opencode-ai/pty-linux-x64-gnu", "@opencode-ai/pty-linux-x64-musl", "@opencode-ai/pty-win32-arm64", "@opencode-ai/pty-win32-x64", "@opentui/core", "@opentui/core-darwin-arm64", "@opentui/core-darwin-x64", "@opentui/core-linux-arm64", "@opentui/core-linux-arm64-musl", "@opentui/core-linux-x64", "@opentui/core-linux-x64-musl", "@opentui/core-win32-arm64", "@opentui/core-win32-x64", "@opentui/keymap", "@opentui/solid", "@opentunnel/client", "@opentunnel/protocol", "gitlab-ai-provider", "opencode-gitlab-auth", "@ff-labs/fff-node", "@ff-labs/fff-bun", "@ff-labs/fff-bin-darwin-arm64", "@ff-labs/fff-bin-darwin-x64", "@ff-labs/fff-bin-linux-arm64-gnu", "@ff-labs/fff-bin-linux-arm64-musl", "@ff-labs/fff-bin-linux-x64-gnu", "@ff-labs/fff-bin-linux-x64-musl", "@ff-labs/fff-bin-win32-arm64", "@ff-labs/fff-bin-win32-x64", "@pierre/diffs", "@pierre/highlights", "@pierre/theming", "app-builder-lib", "dmg-builder", "electron", "electron-builder", "electron-publish", "blume", "pele", "bun-types", "typescript@7.1.0-beta"]
5+
minimumReleaseAgeExcludes = ["@ai-sdk/amazon-bedrock", "@ai-sdk/anthropic", "@brendonovich/vite-plugin-opencode", "@kitlangton/knobs", "@kitlangton/solid-motion", "@opencode/sdk", "@opencode/pty", "@opencode/pty-darwin-arm64", "@opencode/pty-darwin-x64", "@opencode/pty-linux-arm64-gnu", "@opencode/pty-linux-arm64-musl", "@opencode/pty-linux-x64-gnu", "@opencode/pty-linux-x64-musl", "@opencode/pty-win32-arm64", "@opencode/pty-win32-x64", "@opentui/core", "@opentui/core-darwin-arm64", "@opentui/core-darwin-x64", "@opentui/core-linux-arm64", "@opentui/core-linux-arm64-musl", "@opentui/core-linux-x64", "@opentui/core-linux-x64-musl", "@opentui/core-win32-arm64", "@opentui/core-win32-x64", "@opentui/keymap", "@opentui/solid", "@opentunnel/client", "@opentunnel/protocol", "gitlab-ai-provider", "opencode-gitlab-auth", "@ff-labs/fff-node", "@ff-labs/fff-bun", "@ff-labs/fff-bin-darwin-arm64", "@ff-labs/fff-bin-darwin-x64", "@ff-labs/fff-bin-linux-arm64-gnu", "@ff-labs/fff-bin-linux-arm64-musl", "@ff-labs/fff-bin-linux-x64-gnu", "@ff-labs/fff-bin-linux-x64-musl", "@ff-labs/fff-bin-win32-arm64", "@ff-labs/fff-bin-win32-x64", "@pierre/diffs", "@pierre/highlights", "@pierre/theming", "app-builder-lib", "dmg-builder", "electron", "electron-builder", "electron-publish", "blume", "pele", "bun-types", "typescript@7.1.0-beta"]
66

77
[test]
88
root = "./do-not-run-tests-from-root"

‎packages/cli/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@
3131
"@clack/core": "1.0.0-alpha.1",
3232
"@clack/prompts": "1.0.0-alpha.1",
3333
"@effect/platform-node": "catalog:",
34-
"@opencode-ai/pty": "0.3.1",
3534
"@opencode/client": "workspace:*",
3635
"@opencode/plugin": "workspace:*",
36+
"@opencode/pty": "0.3.3",
3737
"@opencode/schema": "workspace:*",
3838
"@opencode/server": "workspace:*",
3939
"@opencode/tui": "workspace:*",

‎packages/cli/script/build.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ if (!targets.length) throw new Error(`Unknown build target: ${requestedTarget}`)
7171

7272
// Bun 1.4.4 skips native packages for the other libc by default, but the musl targets need them.
7373
if (!skipInstall)
74-
await $`bun install --os="*" --cpu="*" --libc="*" @opentui/core@${pkg.dependencies["@opentui/core"]} @opencode-ai/pty@${pkg.dependencies["@opencode-ai/pty"]}`
74+
await $`bun install --os="*" --cpu="*" --libc="*" @opentui/core@${pkg.dependencies["@opentui/core"]} @opencode/pty@${pkg.dependencies["@opencode/pty"]}`
7575
const appArchive = path.join(dir, ".cache", "bun-app-archive.bin")
7676
await Bun.write(appArchive, await buildAppArchive(Script.channel, { skipBuild: skipWebUi }))
7777
const appAssetsPlugin: BunPlugin = {

‎packages/cli/script/opencode-pty.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ type Target = {
1616
}
1717

1818
const core = createRequire(path.resolve(import.meta.dirname, "../../core/package.json"))
19-
const pty = createRequire(core.resolve("@opencode-ai/pty/package.json"))
19+
const pty = createRequire(core.resolve("@opencode/pty/package.json"))
2020

2121
export async function resolveOpencodePty(target: Target): Promise<OpencodePtyAsset | undefined> {
2222
if (target.platform !== "darwin" && target.platform !== "linux" && target.platform !== "win32") return undefined
@@ -26,7 +26,7 @@ export async function resolveOpencodePty(target: Target): Promise<OpencodePtyAss
2626
.filter(Boolean)
2727
.map((value) => (value === "glibc" ? "gnu" : value))
2828
.join("-")
29-
const name = `@opencode-ai/pty-${suffix}`
29+
const name = `@opencode/pty-${suffix}`
3030
const local = process.env.OPENCODE_PTY_BIN
3131
if (local && (target.platform !== process.platform || target.arch !== process.arch))
3232
throw new Error("OPENCODE_PTY_BIN can only be embedded in a build for the current platform and architecture")

‎packages/core/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
"@lydell/node-pty": "catalog:",
106106
"@modelcontextprotocol/client": "2.3.1",
107107
"@modelcontextprotocol/core": "2.3.1",
108-
"@opencode-ai/pty": "0.3.1",
108+
"@opencode/pty": "0.3.3",
109109
"@opencode/ai": "workspace:*",
110110
"@opencode/codemode": "workspace:*",
111111
"@opencode/plugin": "workspace:*",

‎packages/core/src/persistent-pty/pty-binding.ts‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
// Published from packages/process-daemon under its original npm scope.
2-
import { binaryPath } from "@opencode-ai/pty"
1+
import { binaryPath } from "@opencode/pty"
32

43
const binding: string | { readonly path: string; readonly version: string; readonly sha256: string } | undefined =
54
binaryPath

‎packages/server/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"effect": "catalog:"
3838
},
3939
"devDependencies": {
40-
"@opencode-ai/pty": "0.3.1",
40+
"@opencode/pty": "0.3.3",
4141
"@opencode/client": "workspace:*",
4242
"@opencode/plugin": "workspace:*",
4343
"@tsconfig/bun": "catalog:",

‎packages/server/test/persistent-pty.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import fs from "node:fs/promises"
33
import os from "node:os"
44
import path from "node:path"
55
import { expect } from "bun:test"
6-
import { binaryPath } from "@opencode-ai/pty"
6+
import { binaryPath } from "@opencode/pty"
77
import { PersistentPty } from "@opencode/schema/persistent-pty"
88
import { Session } from "@opencode/schema/session"
99
import { Effect, Exit, Schema, Scope } from "effect"

0 commit comments

Comments
 (0)