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

12
test/a-config.ts Normal file
View File

@@ -0,0 +1,12 @@
import { getConfig } from '../agent/modules/cnb-manager';
import { QueryLoginNode } from '@kevisual/api/login-node';
const queryLoginNode = new QueryLoginNode({});
await queryLoginNode.init()
const testConfig = async () => {
const token = await queryLoginNode.getToken();
console.log('Token:', token);
const res = await getConfig({ token });
console.log('Config:', res);
}
testConfig();