feat: 将 Agent 接入运行时镜像挂载式部署

This commit is contained in:
2026-09-20 17:34:25 +08:00
parent 5393ad3423
commit 67c2d58c32
20 changed files with 499 additions and 40 deletions
+4 -2
View File
@@ -27,7 +27,7 @@ import { printBanner, printBox, printError, printInfo, printSuccess } from './ui
import { ENV_LABELS, SERVICE_LABELS } from './types.js';
import type { DeployConfig, Environment, Service } from './types.js';
const ALL_SERVICES: Service[] = ['frontend', 'backend', 'license'];
const ALL_SERVICES: Service[] = ['frontend', 'backend', 'license', 'agent'];
async function pause() {
await input({ message: '按 Enter 返回主菜单' });
@@ -59,6 +59,7 @@ async function selectService(): Promise<Service | Nav> {
{ name: '前端', value: 'frontend' as Service },
{ name: '后端', value: 'backend' as Service },
{ name: '许可证', value: 'license' as Service },
{ name: '智能体', value: 'agent' as Service },
],
});
}
@@ -68,7 +69,7 @@ async function selectServicesMulti(): Promise<Service[] | Nav> {
const scope = await selectNav({
message: '部署范围',
choices: [
{ name: '全部服务', value: 'all' as const, description: '前端 + 后端 + 许可证' },
{ name: '全部服务', value: 'all' as const, description: '前端 + 后端 + 许可证 + 智能体' },
{ name: '指定服务…', value: 'pick' as const, description: '空格多选' },
],
});
@@ -81,6 +82,7 @@ async function selectServicesMulti(): Promise<Service[] | Nav> {
{ name: '前端', value: 'frontend' as Service },
{ name: '后端', value: 'backend' as Service },
{ name: '许可证', value: 'license' as Service },
{ name: '智能体', value: 'agent' as Service },
],
required: true,
});