Repository navigation
Releases
v0.4.0
Highlights: Make renderer integration optional, expose renderer-neutral streaming, and preserve terminal identity, cancellation, ordering, and flow control across adapters.
Fixed
-
Preserve explicitly null cancellation reasons in browser terminal startup and Node PTY creation.
-
Recheck whether the application still needs a terminal hub connection when a delayed reconnect fires.
-
Split large Worker output acknowledgements into decodable chunks so flow-control accounting stays valid above one MiB.
-
Complete fanout delivery and teardown before event callbacks, preserving output order during reentrant publication and closing all subscribers when callbacks throw.
-
Preserve leading U+FEFF characters in terminal session IDs instead of routing frames under a different identity.
-
Discard queued stdio input when an attachment ends or fails, while still restoring the terminal without waiting for an active write.
Changed
-
Make Ghostty a pinned optional peer: renderer users install
ghostty-web@0.4.0; stream/protocol-only installs no longer pull it in. Preserve embedded Worker assets. -
Export the existing renderer-neutral
attachTerminalStreamfrom/stream, preserving/browser, with an xterm example and package/type/bundle footprint checks. -
Run full CodeQL scans daily instead of on every main push, preserving PR and manual analysis and protecting active scheduled scans from cancellation.
-
Refresh Node.js types, tsdown, and WebSocket test tooling while preserving the dependency cooldown and supported Node.js versions. (#139, thanks @dependabot[bot])
v0.3.11
Highlights: Preserve cancellation and terminal bytes across browser, Worker, and hub teardown; reduce buffer and asset overhead; ship focused integration guides.
Fixed
- Reject browser terminal creation with the caller's abort reason when a startup callback cancels, disposing the terminal instead of returning a closed controller.
- Capture mutable Worker bridge message bytes before queuing either direction so transport buffer reuse cannot corrupt terminal input or output.
- Stop queued hub frame delivery immediately when the caller closes, including while the native WebSocket close handshake is pending.
Changed
-
Shorten the README, move integration details into a linked usage guide, and include the guides in the published package.
-
Compact overflowed replay and subscriber buffers once per append instead of repeatedly shifting retained chunks.
-
Reuse owned single-chunk batches without an extra byte copy and share byte concatenation with the testing helpers.
-
Count close-reason UTF-8 byte widths without allocating an encoded buffer for every character.
-
Resolve only the requested Node Ghostty asset, avoiding directory scans for module, WASM, and unknown asset paths.
-
Avoid intermediate asset byte copies when creating Worker Ghostty responses while preserving isolated response bodies and asset reads.
-
Run CodeQL when a draft pull request becomes ready for review so its draft-only skip cannot leave the ready pull request unscanned.
-
Refresh tsdown and the type-aware lint tooling, including compatible transitive build dependencies, while preserving the two-day cooldown and supported Node.js versions.
-
Update the paired CodeQL initialization and analysis actions to 4.39.1 and the default scanner bundle to 2.27.3. (#117, thanks @dependabot[bot])
-
Require patched Vite 8.3.5 for the test server so automatic peer resolution cannot select versions affected by the launch-editor and file-serving security advisories.
-
Refresh formatter, linter, and Playwright tooling, and align local, CI, and release setup on pnpm 11.28.4 while preserving the two-day cooldown and supported Node.js versions. (#116, thanks @dependabot[bot])
-
Use fixed Node.js patches for build, CI, and release tooling to reject the disclosed eMudhra incident keys.
-
Update Vitest and its V8 coverage provider to 5.0.5 and the paired CodeQL actions to 4.39.0, preserving supported runtimes and the dependency cooldown. (#112, #113, thanks @dependabot[bot])
-
Run macOS CI on the Apple Silicon Xcode 27 image while preserving the supported Node.js versions and package targets.
v0.3.10
Highlights: Fix a source-map denial-of-service vulnerability in the test toolchain and refresh development and release tooling.
Fixed
- Update the test toolchain's transitive source-map-js dependency to 1.2.2 to fix the indexed source-map denial-of-service advisory GHSA-68fv-2mgg-jv7q.
Changed
- Update oxfmt to 0.73, oxlint to 1.88, and pnpm to the stable 11.28.2 patch, align dependency ranges with the lockfile, and add a safe manual release check for validating tooling updates without publishing. (thanks @dependabot[bot])
- Update the GitHub App token action to 3.3.0 while preserving repository-scoped dispatch and comment permissions. (#106, thanks @dependabot[bot])
- Update the pinned CodeQL initialization and analysis actions to 4.38.3 and the default scanner bundle to 2.27.2. (#105, thanks @dependabot[bot])
- Update oxfmt to 0.72, oxlint to 1.87, and actions/setup-node to 7.1 while preserving the dependency cooldown and supported runtime floors. (thanks @dependabot[bot])
- Refresh Node.js types and transitive build tooling, and align Vitest dependency ranges with the locked patch release while preserving the two-day dependency cooldown and supported runtime floors. (#100, thanks @dependabot[bot])
v0.3.9
Highlights: Complete terminal teardown without losing close metadata, duplicating sink failures, or exposing delayed stream errors.
Fixed
- Finish a worker bridge when either socket is already closed, close the remaining peer, and preserve close metadata while a socket is still closing.
- Report a batch publisher sink failure once when another batch is already queued behind that same failure.
- Drop stdout listeners after a failed pending write only when the stream is fully closed; retain protection through delayed
_destroyerrors.
Verification
- Release commit:
15e44ec7fb753c1ce565d694c6fd6a11a18dc36funder verified signed protected tagv0.3.9. - Included fixes:
- Trusted npm publication: https://github.com/openclaw/libterminal/actions/runs/37099594367
- 140 unit tests passed.
- 9 Ghostty browser smoke tests passed.
@openclaw/libterminal@0.3.9is thelatestdist-tag and records git head15e44ec7fb753c1ce565d694c6fd6a11a18dc36f.- A fresh consumer installation imported all 10 public JavaScript and JSON entry points.
npm audit signaturesverified registry signatures and attestations. - Registry tarball: 465633 bytes; SHA-512
sha512-1bqkn/Bo11XwVcspzcLMAnRNpSHzTy650k1f+UggQKNFxX8YOR3hLpB8U0tzRHRHp3vI5eEAWa7G3X1EBT6dCQ==; SHA-145fdb6fec15b74de3e9ec9b4a42f6a5adb071c81. - npm exposes an SLSA provenance v1 attestation. Trusted publishing recorded Sigstore transparency log index
3069437738.
v0.3.8
Highlights: Keep failed stdio attachments protected from late stdout errors until pending output settles.
Fixed
- Keep the stdout error listener until a failed attach finishes a pending write, so a later broken pipe stays inside that attach.
Changed
- Refresh oxfmt, oxlint, Node.js and WebSocket types, WebSocket test tooling, and Vitest with its matching V8 coverage provider while preserving the two-day dependency cooldown and supported runtime floors. (#90, thanks @dependabot[bot])
- Refresh Node.js types, Vitest and its V8 coverage provider, type-aware lint tooling, WebSocket test tooling, CodeQL, and pnpm 11 while preserving the supported runtime floors. (#87, #88, thanks @dependabot[bot])
Verification
- Release commit:
c15ef395cdb6de9958ab103a0f230abeedc74f89(verified signed protected tagv0.3.8). - OpenClaw consumer adoption merged in openclaw/openclaw#162520 at
a40095fd244bafc2e8ff96c37b9240bad39dc362after exact-head CI and security review passed. - Trusted npm publication passed the full release check: 135 unit tests and 9 Ghostty browser tests.
- npm package 0.3.8 is the
latestdist-tag and records git headc15ef395cdb6de9958ab103a0f230abeedc74f89. - Fresh consumer installation imported all public JavaScript and JSON entry points successfully.
npm audit signaturesverified registry signatures and attestations. - Registry tarball: 465243 bytes; SHA-512
sha512-0OtQ9gAqOpz2015syG4O8ofXUbcFq8qJKUW4rx/JpDGk1e8D/L3WDmSYKAddcKaczfvi9DfBNkpT3PiKAZ/nUA==; SHA-1e1185f252d281253a710f41276f8253df9079616. - npm exposes an SLSA provenance v1 attestation, and the trusted-publishing workflow recorded Sigstore transparency log index
3032945353.
v0.3.7
0.3.7 - 2026-09-22
Highlights: Preserve terminal bytes across buffer reuse and keep browser stream cleanup cancellable without losing the original error.
Fixed
- Capture hub message and stdio input bytes before queuing delivery so immediate producer buffer reuse cannot drop frames or corrupt terminal input.
- Keep browser stream cleanup cancellable and preserve the original read/write error when iterator cleanup throws synchronously, matching asynchronous cleanup behavior.
- Own copied terminal bytes so Node.js
Bufferreuse, replay snapshot edits, and subscriber mutations cannot corrupt streaming output or testing-helper recordings; isolate normalized hub frames from transport-ownedBufferandArrayBufferstorage.
Changed
- Expand Ghostty browser validation across Node and Worker assets with input, resize, fitting, disposal, sustained-output checks, and reproducible runtime baselines ahead of the gated v1.4 upgrade. (#41, thanks @vincentkoc)
Verification
- Release commit: 08eafcf (signed tag v0.3.7).
- Exact-head CI and CodeQL passed before merge; the release commit has the identical source tree.
- Clean remote release validation passed 134 unit tests and 9 real Ghostty browser tests, including build, portable type checks, lint, and package validation.
- Trusted npm publication succeeded.
- npm package 0.3.7, dist-tag latest; published 2026-09-22T09:59:13.903Z.
- Registry tarball, 465063 bytes.
- SHA-512 integrity: sha512-zK/XiLc3nDFzRNCIAWKuEp1DoeAZr/U3qxV3ID03Wwlv/sq+yHhq4PRMYaaxcW+ZCr4J4jEwbsDuByFOObwBBQ==
- SHA-1 shasum: f90c8d93c197e02e733f70cbd2063b9fcd358129
- Downloaded tarball hashes match npm metadata; its changelog matches the release commit byte-for-byte and includes every finalized entry.
libterminal v0.3.6
0.3.6 - 2026-09-13
Fixed
- Stop buffered browser stream output as soon as attachment cancellation is observed, including already-aborted signals and ready-read races.
- Restore stdio promptly when aborting pending writes, resizes, or cleanup; suppress queued input after abort and handle late stdout write errors.
- Stop queued Worker bridge forwarding after teardown, including pending payload conversions and control checks, and avoid starting control timers after failed setup.
- Keep replacement fanout subscriptions alive when a stale handle or overflow callback closes an earlier subscription with the same ID.
- Keep dependency updates compatible with Dependabot by pinning pnpm 11.26.0 without the extra native-binary bootstrap download.
Changed
- Refresh Vite to 8.3, Lightning CSS to 1.33, and PostCSS to 8.5.28; deduplicate Rolldown while preserving the two-day dependency cooldown.
- Refresh transitive build tooling while preserving the two-day dependency cooldown.
- Validate Node.js 26 in CI alongside the existing Node.js 22 and 24 cross-platform checks.
- Refresh Node.js types, oxfmt, and oxlint while preserving the two-day dependency cooldown.
- Update pinned CodeQL analysis actions to 4.38.0. (#62, thanks @dependabot)
- Complete Vitest 5 validation with the matching V8 coverage provider, a documented coverage command, and coverage reporting in Node.js 24 CI; keep the existing Node.js 22/24/26 checks and development exclusion of Node.js 25.
Verification
- Release commit:
16cd0c3bb64ef1e6de2cc6798f660c6dd785fefa(signed tagv0.3.6). - CI and CodeQL passed on the release commit.
- Trusted npm publication succeeded.
- npm package 0.3.6, dist-tag
latest; published2026-09-14T02:11:07.094Z. - Registry tarball, 464402 bytes.
- SHA-512 integrity:
sha512-lTrj+6t6sVte2S7RAgJS+rjtbRzy9+c6ZE13vfT6VYZhAJ1p6OEHBbXNqKdgKPUCSFmpuMtlzrD4x8HtlfJ2IA==. - SHA-1 shasum:
f8eeba11cd82da90d7ba4521f59c72a052e3005f. - Downloaded tarball hashes match npm metadata; its changelog matches the release tag byte-for-byte and contains all finalized release entries verbatim.
- Fresh consumer install passed all eight entry-point imports, stale-handle and overflow replacement-subscription checks, and byte-exact verification of all three embedded Ghostty assets.
- Local and release-workflow validation passed 106 tests and the real Ghostty browser smoke; local coverage passed with 83.92% line coverage.
libterminal v0.3.5
0.3.5 - 2026-09-07
Highlights: Close terminal hub connections reliably when callers supply invalid WebSocket close codes or oversized reasons.
Fixed
- Prevent
TerminalHubClient.close()from leaking sockets when native WebSocket rejects a close code or reason; preserve valid reason text and report final teardown failures. (#60, thanks @SebTardif)
Changed
- Refresh browser validation to Playwright 1.63 and update pnpm to 12.3.4 with its pnpm 12-compatible setup action, preserving the two-day dependency cooldown.
- Refresh the transitive nanoid dependency to fix its custom-generator infinite-loop advisory in the development toolchain.
Verification
- Release commit:
944ca423f13d4a64f7319a9f21c86709bb5e2bf0(signed tagv0.3.5). - CI and CodeQL passed on the release commit.
- Trusted npm publication succeeded.
- npm package 0.3.5, dist-tag
latest; published2026-09-08T03:09:21.196Z. - Registry tarball, 462970 bytes.
- SHA-512 integrity:
sha512-s0A8wbLCj1+zXMU5qk0BK6coy9xWUAxPKP/BQ48Bgs5qzOmEpzGn/Wpm+cArTY9Z5GokwnjjrBdKP2mM2FB+NQ==. - SHA-1 shasum:
19a5e44947454632d682f786a54841398c99e956. - Downloaded tarball hashes match npm metadata; its changelog matches the release tag byte-for-byte.
- Fresh consumer install passed all eight entry-point imports and six real native WebSocket teardown cases: reserved, browser-disallowed and fractional codes; oversized ASCII and Unicode reasons; and valid-code/whitespace preservation.
- Local and release-workflow validation passed 87 tests and the real Ghostty browser smoke.
libterminal v0.3.4
Changed
- Refresh the build and test toolchain to tsdown 0.23, Vitest 5, and pnpm 12 while preserving the two-day dependency cooldown; development now requires Node.js 22.18+, 24.11+, or 26+.
- Refresh oxfmt, oxlint, Node.js types, and transitive development dependencies. (#56, #57, thanks @dependabot)
Package
- npm v0.3.4; dist-tag:
latest. - Registry tarball.
- Integrity:
sha512-KFtlEOcoQ+pC6tRD3Va8Vm13LsFQ4mfZHKVOHqECIAo0LAmOE/5zpdq2q3eDdqU6iQNGc9BIsh3mPvYhoygsEQ==(registry metadata); downloaded tarball SHA-512 verified. - Published:
2026-09-05T18:38:26.335Z(registry publish history).
Verification
libterminal v0.3.3
Changed
- Refresh development dependencies, pnpm, and the pinned CodeQL action while preserving the two-day dependency cooldown.
Fixed
- Handle stdout errors, including EPIPE, in
attachLocalStdioso closed pipes reject the attachment and restore stdio instead of crashing the process. (#54, thanks @SebTardif) - Stop
BatchPublisherfrom copying and buffering output after a sink failure, preventing unbounded memory growth after transport closure. (#55, thanks @SebTardif) - Route stdin stream errors through
attachLocalStdiofailure handling so pipe errors reject the attachment and restore stdio instead of crashing the process. (#50, thanks @SebTardif)
Package
- npm v0.3.3; dist-tag:
latest. - Registry tarball.
- Integrity:
sha512-LbjmH51H2tYYgaMzRnEeYJyihd/m3vCmIv2vIY6Q6xMgM3L0I7kTMkxWlqwk2afgD6AufDe4SCbCNUSGWlWK5g==(registry metadata); downloaded tarball SHA-512 verified. - Published:
2026-08-31T07:57:30.681Z(registry publish history).
Verification
- CI on the release commit: Node 22/24 on Linux, macOS, and Windows; workflow lint; Ghostty browser smoke.
- CodeQL on the release commit: passed.
- Trusted npm publishing and full release gate: passed.
pnpm run check:releasepassed locally and in the release workflow; 70 unit tests and the Ghostty browser smoke test passed locally.- Release commit and dated changelog. The published package contains the matching changelog.
Registry proof from npm view @openclaw/libterminal@0.3.3 version dist-tags dist.tarball dist.integrity time --json (publish time filtered to this version):
{
"version": "0.3.3",
"dist-tags": {
"latest": "0.3.3"
},
"dist.tarball": "https://registry.npmjs.org/@openclaw/libterminal/-/libterminal-0.3.3.tgz",
"dist.integrity": "sha512-LbjmH51H2tYYgaMzRnEeYJyihd/m3vCmIv2vIY6Q6xMgM3L0I7kTMkxWlqwk2afgD6AufDe4SCbCNUSGWlWK5g==",
"time.0.3.3": "2026-08-31T07:57:30.681Z"
}