feat: 重构CNB管理模块,添加清理记录功能,更新中间件为统一认证方式,优化工作空间相关路由

This commit is contained in:
xiongxiao
2026-03-09 18:54:33 +08:00
committed by cnb
parent 21ba07e55b
commit 382c4809ea
25 changed files with 296 additions and 73 deletions

18
agent/main.ts Normal file
View File

@@ -0,0 +1,18 @@
// import { RemoteApp } from '@kevisual/remote-app';
import { app } from './index.ts'
// import { QueryLoginNode } from '@kevisual/api/login-node';
// const queryLoginNode = new QueryLoginNode({});
// await queryLoginNode.init()
// const token = await queryLoginNode.getToken();
// app.createRouteList()
// const remoteApp = new RemoteApp({
// id: 'cnb-agent',
// token: token,
// url: 'https://kevisual.cn/ws/proxy',
// app: app as any,
// })
// const isConnected = await remoteApp.isConnect();
// if (isConnected) {
// console.log('Remote app connected successfully');
// remoteApp.listenProxy();
// }