feat: 更新 @kevisual/router 版本至 0.0.89;添加 download 命令模块以支持文件下载

This commit is contained in:
2026-03-09 01:24:45 +08:00
parent 94e4db8d44
commit 6aeff117dc
9 changed files with 147 additions and 6 deletions

View File

@@ -49,7 +49,7 @@
"@kevisual/local-app-manager": "^0.1.32",
"@kevisual/logger": "^0.0.4",
"@kevisual/query": "0.0.53",
"@kevisual/router": "^0.0.88",
"@kevisual/router": "^0.0.89",
"@kevisual/types": "^0.0.12",
"@kevisual/use-config": "^1.0.30",
"@opencode-ai/plugin": "^1.2.21",

View File

@@ -5,5 +5,6 @@ import './routes/index.ts';
import './routes-simple/index.ts';
export const AgentPlugin: Plugin = createRouterAgentPluginFn({
router: app,
})
router: app as any,
})
export { app }

3
assistant/src/router.ts Normal file
View File

@@ -0,0 +1,3 @@
import { parse } from '@kevisual/router/commander';
import { app, program } from './server.ts';
parse({ app: app as any, program: program as any })

View File

@@ -164,3 +164,5 @@ export const runParser = async (argv: string[]) => {
console.error('执行错误:', error.message);
}
};
export { app, program };