更新 CLI 版本至 0.1.33,重构构建配置,添加新的路由和中间件,增强身份验证支持

This commit is contained in:
xiongxiao
2026-03-24 17:38:37 +08:00
committed by cnb
parent b05f059aea
commit 4e2ae49372
27 changed files with 125 additions and 97 deletions

View File

@@ -5,6 +5,7 @@ import path from 'node:path';
import os from 'node:os';
import fs from 'node:fs';
import { select } from '@inquirer/prompts';
import { useKey } from '@kevisual/context';
const MODELS = ['minimax', 'glm', 'volcengine', 'bailian'] as const;
@@ -119,6 +120,7 @@ app.route({
key: 'main',
description: '切换claude code模型',
metadata: {
middleware: ['auth'],
args: {
models: z.string().optional().describe(`选择模型: ${MODELS.join(' | ')}`),
}