更新 CLI 版本至 0.1.33,重构构建配置,添加新的路由和中间件,增强身份验证支持
This commit is contained in:
@@ -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(' | ')}`),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user