mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-24 05:09:21 +08:00
feat: 将 Agent 接入运行时镜像挂载式部署
This commit is contained in:
+4
-2
@@ -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,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user