feat: 更新 WebSocket Keep-Alive 客户端,添加 ws 作为外部依赖,修正导入路径

This commit is contained in:
2026-01-30 21:23:40 +08:00
parent d7a4bcf58f
commit 28484baab3
2 changed files with 3 additions and 2 deletions

View File

@@ -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',