diff --git a/bun.config.ts b/bun.config.ts index 65458b7..adb31a2 100644 --- a/bun.config.ts +++ b/bun.config.ts @@ -4,7 +4,7 @@ import { execSync } from 'node:child_process'; const buildFn = async (opts: { entry?: string, naming?: string }) => { const entry = opts.entry || 'agent/opencode.ts'; const naming = opts.naming || 'opencode'; - const external: string[] = ["bun"]; + const external: string[] = ["bun", "ws"]; await Bun.build({ target: 'node', format: 'esm', diff --git a/test/keep.ts b/test/keep.ts index d658549..aa16eee 100644 --- a/test/keep.ts +++ b/test/keep.ts @@ -1,5 +1,6 @@ // WebSocket Keep-Alive Client with node+ws -import { createKeepAlive } from "../src/workspace/keep-live.ts"; +// import { createKeepAlive } from "../src/keep.ts"; +import { createKeepAlive } from "../dist/keep.js"; const WS_URL = "wss://cnb-l6o-1jg7aoevl-001.cnb.space/stable-3c0b449c6e6e37b44a8a7938c0d8a3049926a64c?reconnectionToken=a6517530-9911-406b-a65f-0d9d4b3f0d6f&reconnection=false&skipWebSocketFrames=false"; const COOKIE = "orange:workspace:cookie-session:cnb-l6o-1jg7aoevl-001=1ba3d696-1805-4c6b-b109-222738be570f";