fix: 修复 AssistantConfig 中 id 的赋值逻辑并更新版本号至 0.1.29

This commit is contained in:
xiongxiao
2026-03-18 19:11:39 +08:00
committed by cnb
parent 57326c14d6
commit 0476b24c14
2 changed files with 3 additions and 2 deletions

View File

@@ -379,7 +379,7 @@ export class AssistantConfig {
return checkConfigDir;
}
protected getDefaultInitAssistantConfig() {
const id = randomId();
let id = randomId();
const isCNB = !!useKey('CNB');
let kevisualUrl = 'https://kevisual.cn';
if (isCNB) {
@@ -393,6 +393,7 @@ export class AssistantConfig {
const routes = ["@kevisual/cnb/routes"]
if (isCNB) {
routes.push("@kevisual/project-search/routes")
id = 'cnb-dev'
}
return {
app: {

View File

@@ -1,6 +1,6 @@
{
"name": "@kevisual/cli",
"version": "0.1.28",
"version": "0.1.29",
"description": "envision 命令行工具",
"type": "module",
"basename": "/root/cli",