"feat: 升级本地应用管理依赖,新增应用删除功能及强制覆盖下载选项"
This commit is contained in:
@@ -6,6 +6,7 @@ import getPort, { portNumbers } from 'get-port';
|
||||
import { program } from 'commander';
|
||||
import { spawnSync } from 'child_process';
|
||||
import chalk from 'chalk';
|
||||
import { AssistantApp } from './lib.ts';
|
||||
export const runServer = async (port?: number) => {
|
||||
let _port: number | undefined;
|
||||
if (port) {
|
||||
@@ -29,6 +30,12 @@ export const runServer = async (port?: number) => {
|
||||
});
|
||||
app.server.on(proxyRoute);
|
||||
proxyWs();
|
||||
const manager = new AssistantApp(assistantConfig, app);
|
||||
setTimeout(() => {
|
||||
manager.load({ runtime: 'client' }).then(() => {
|
||||
console.log('Assistant App Loaded');
|
||||
});
|
||||
}, 1000);
|
||||
return {
|
||||
app,
|
||||
port: _port,
|
||||
|
||||
Reference in New Issue
Block a user