feat: 更新WebSocket Keep-Alive客户端库以支持Bun和Node.js环境,添加统一的消息处理方法,并创建keep.ts文件以初始化KeepAlive

This commit is contained in:
2026-02-15 20:48:45 +08:00
parent d231f3748a
commit 47229c6db9
5 changed files with 120 additions and 47 deletions

28
pnpm-lock.yaml generated
View File

@@ -43,8 +43,8 @@ importers:
specifier: ^0.0.6
version: 0.0.6
'@kevisual/context':
specifier: ^0.0.4
version: 0.0.4
specifier: ^0.0.6
version: 0.0.6
'@kevisual/dts':
specifier: ^0.0.3
version: 0.0.3(typescript@5.9.3)
@@ -52,8 +52,8 @@ importers:
specifier: ^0.0.12
version: 0.0.12
'@opencode-ai/plugin':
specifier: ^1.2.1
version: 1.2.1
specifier: ^1.2.4
version: 1.2.4
'@types/bun':
specifier: ^1.3.9
version: 1.3.9
@@ -90,8 +90,8 @@ packages:
resolution: {integrity: sha512-0aqATB31/yw4k4s5/xKnfr4DKbUnx8e3Z3BmKbiXTrc+CqWiWTdlGe9bKI9dZ2Df+xNp6g11W4xM2NICNyyCCw==}
hasBin: true
'@kevisual/context@0.0.4':
resolution: {integrity: sha512-HJeLeZQLU+7tCluSfOyvkgKLs0HjCZrdJlZgEgKRSa8XTwZfMAUt6J7qZTbrZAHBlPtX68EPu/PI8JMCeu3WAQ==}
'@kevisual/context@0.0.6':
resolution: {integrity: sha512-w7HBOuO3JH37n6xT6W3FD7ykqHTwtyxOQzTzfEcKDCbsvGB1wVreSxFm2bvoFnnFLuxT/5QMpKlnPrwvmcTGnw==}
'@kevisual/dts@0.0.3':
resolution: {integrity: sha512-4T/m2LqhtwWEW+lWmg7jLxKFW7VtIAftsWFDDZvh10bZunqFf8iXxChHcVSQWikghJb4cq1IkWzPkvc2l+Asdw==}
@@ -127,11 +127,11 @@ packages:
resolution: {integrity: sha512-jLsL80wBBKkrJZrfk3SQpJ9JA/zREdlUROj7eCkmzqduAWKSI0wVcXuCKf+mLFCHB0Q0Tkh2rgzjSlurt3JQgw==}
engines: {node: '>=10.0.0'}
'@opencode-ai/plugin@1.2.1':
resolution: {integrity: sha512-PVRz3Y0l7+xi4iNxvdC32zx5wrEMfCiVQQVh3wZ7r+g6kM+8pUguKhwxTcwcOx57XMPMhmuoxuRcLMn79gtQuA==}
'@opencode-ai/plugin@1.2.4':
resolution: {integrity: sha512-FfRybm1Ujzkt8EQDtxZKVEA88EI8XaAu3ikViC8DYSP3lJaF++8isN3vmlSqCi+A+O2/5xd2yQ0yq3tmJ2WVhw==}
'@opencode-ai/sdk@1.2.1':
resolution: {integrity: sha512-K5e15mIXTyAykBw0GX+8O28IJHlPMw1jI/m3SDu+hgUHjmg2refqLPqyuqv8hE2nRcuGi8HajhpDJjkO7H2S0A==}
'@opencode-ai/sdk@1.2.4':
resolution: {integrity: sha512-IPgtBpif46wTviC3HQxkjS4M/1tZSnRmD/6aEF3lL88MT+PAqKA30G+AhBlpvXBITq9EmjO4gjzM59ly2z7mYQ==}
'@rollup/plugin-commonjs@28.0.9':
resolution: {integrity: sha512-PIR4/OHZ79romx0BVVll/PkwWpJ7e5lsqFa3gFfcrFPWwLXLV39JVUzQV9RKjWerE7B845Hqjj9VYlQeieZ2dA==}
@@ -583,7 +583,7 @@ snapshots:
'@kevisual/code-builder@0.0.6': {}
'@kevisual/context@0.0.4': {}
'@kevisual/context@0.0.6': {}
'@kevisual/dts@0.0.3(typescript@5.9.3)':
dependencies:
@@ -625,12 +625,12 @@ snapshots:
'@kevisual/ws@8.19.0': {}
'@opencode-ai/plugin@1.2.1':
'@opencode-ai/plugin@1.2.4':
dependencies:
'@opencode-ai/sdk': 1.2.1
'@opencode-ai/sdk': 1.2.4
zod: 4.3.6
'@opencode-ai/sdk@1.2.1': {}
'@opencode-ai/sdk@1.2.4': {}
'@rollup/plugin-commonjs@28.0.9(rollup@4.57.1)':
dependencies: