From 28484baab35180133106017b5d2df8e6b3e09c61 Mon Sep 17 00:00:00 2001 From: abearxiong Date: Fri, 30 Jan 2026 21:23:40 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=20WebSocket=20Keep-A?= =?UTF-8?q?live=20=E5=AE=A2=E6=88=B7=E7=AB=AF=EF=BC=8C=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=20ws=20=E4=BD=9C=E4=B8=BA=E5=A4=96=E9=83=A8=E4=BE=9D=E8=B5=96?= =?UTF-8?q?=EF=BC=8C=E4=BF=AE=E6=AD=A3=E5=AF=BC=E5=85=A5=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bun.config.ts | 2 +- test/keep.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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";