fix: 更新 @kevisual/api 依赖至 0.0.59,并优化本地用户检查逻辑

This commit is contained in:
xiongxiao
2026-02-22 00:07:01 +08:00
parent c00062d704
commit e377557587
9 changed files with 172 additions and 129 deletions

View File

@@ -48,14 +48,7 @@ export const runServer = async (port: number = 51515, listenPath = '127.0.0.1')
]);
const manager = useContextKey('manager', new AssistantApp(assistantConfig, app));
setTimeout(async () => {
await manager.load({ runtime: 'client' });
console.log('Assistant App Loaded');
await manager.checkLocalUser()
await manager.initRemoteApp();
await manager.initRouterApp();
if (runtime.isServer) {
await manager.initRoutes();
}
manager.init({ isServer: runtime.isServer });
}, 1000);
return {