the universal sandbox runtime for agents and humans. pocketenv.io
sandbox openclaw agent claude-code vercel-sandbox deno-sandbox cloudflare-sandbox atproto sprites daytona
7
fork

Configure Feed

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

Use namespace import for jsonlines

Work around CommonJS/ESM interop so parse and Parser are available at
runtime

+4 -2
+4 -2
apps/api/src/pty/pty-tunnel/websocket.ts
··· 1 - import { parse, Parser } from "jsonlines"; 1 + import * as jsonlines from "jsonlines"; 2 2 import * as Messages from "./messages"; 3 3 import type { Writable } from "node:stream"; 4 4 import { WebSocket } from "ws"; 5 + 6 + const { parse } = jsonlines; 5 7 6 8 export interface Connection { 7 9 port: number; ··· 11 13 createClient(origin: `${"ws" | "wss"}://${string}`): ListenerSocket; 12 14 } 13 15 14 - async function readConnectionInfo(stream: Parser): Promise<{ 16 + async function readConnectionInfo(stream: jsonlines.Parser): Promise<{ 15 17 port: number; 16 18 processId: number; 17 19 token: string;