This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

feat: add browser-safe /protocol subpath export (#11)

Adds a ./protocol entry to the package.json exports map, pointing at
the existing src/protocol.ts module (built to dist/protocol.js by the
existing tsc build). This module exports PacketReader, MessageType,
Packet, and all encode/decode helpers with zero Node built-in deps
beyond Buffer — making it safe for browser bundlers.

Motivation: consumers like forge maintain a copy of the wire protocol
for browser-side xterm.js packet parsing. With this subpath they can
import from @myobie/pty/protocol instead, keeping the protocol in one
place.

authored by

Johannes Schickling and committed by
GitHub
(Apr 10, 2026, 1:18 PM +0200) c06855c7 ab8757ce

+4
+4
package.json
··· 41 41 "./client": { 42 42 "types": "./dist/client-api.d.ts", 43 43 "default": "./dist/client-api.js" 44 + }, 45 + "./protocol": { 46 + "types": "./dist/protocol.d.ts", 47 + "default": "./dist/protocol.js" 44 48 } 45 49 }, 46 50 "scripts": {