mirror of
https://github.com/aiclientproxy/proxycast.git
synced 2026-09-24 23:10:56 +08:00
🎉 重大功能 - Chrome Bridge: 完整的浏览器自动化控制系统 - 零配置自动连接:扩展自动加载和配置 - AI 原生集成:作为 MCP 工具支持自然语言控制 - 支持导航、页面读取、元素交互、表单操作等 🐛 Bug 修复 - WebSocket 路由修复 (Axum 路径参数语法) - Chrome 扩展存储清理 - 扩展重复注入防护 - 剪贴板权限添加 🔧 代码质量 - 修复 33+ Clippy 警告 - 所有 259 个测试通过 - ESLint 无警告 📝 文档 - Chrome Bridge 使用指南 - API 技术文档 - 快速参考卡片
40 lines
936 B
JavaScript
40 lines
936 B
JavaScript
#!/usr/bin/env node
|
|
|
|
/**
|
|
* 检查 Chrome Bridge 状态
|
|
*/
|
|
|
|
import WebSocket from 'ws';
|
|
|
|
const SERVER_URL = 'ws://127.0.0.1:8999';
|
|
const BRIDGE_KEY = 'Proxycast-key11';
|
|
|
|
// 连接 Observer 通道查看状态
|
|
const observerUrl = `${SERVER_URL}/proxycast-chrome-observer/${BRIDGE_KEY}?profileKey=test`;
|
|
console.log(`[检查] 连接 Observer 通道: ${observerUrl}`);
|
|
|
|
const ws = new WebSocket(observerUrl);
|
|
|
|
ws.on('open', () => {
|
|
console.log('[检查] ✅ Observer 通道连接成功');
|
|
console.log('[检查] 这说明服务器正常运行\n');
|
|
|
|
setTimeout(() => {
|
|
ws.close();
|
|
}, 2000);
|
|
});
|
|
|
|
ws.on('message', (data) => {
|
|
const message = JSON.parse(data.toString());
|
|
console.log('[检查] 收到消息:', JSON.stringify(message, null, 2));
|
|
});
|
|
|
|
ws.on('error', (error) => {
|
|
console.error('[检查] ❌ 错误:', error.message);
|
|
});
|
|
|
|
ws.on('close', () => {
|
|
console.log('\n[检查] 连接关闭');
|
|
process.exit(0);
|
|
});
|