@cloudbase/cli 2.8.0-beta.0 → 2.8.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/tcb.js +0 -2
- package/lib/utils/ai/router.js +0 -2
- package/lib/utils/ai/setup.js +4 -3
- package/package.json +1 -1
package/bin/tcb.js
CHANGED
|
@@ -53,8 +53,6 @@ async function main() {
|
|
|
53
53
|
|
|
54
54
|
// 输出版本信息
|
|
55
55
|
console.log(chalk.gray(`CloudBase CLI ${pkg.version}`))
|
|
56
|
-
console.log(chalk.gray(`CloudBase Framework ${frameworkPkg.version}`))
|
|
57
|
-
console.log(chalk.gray(`Weda ${wedaPkg.version}`))
|
|
58
56
|
|
|
59
57
|
const yargsParsedResult = yargsParser(process.argv.slice(2))
|
|
60
58
|
const config = await getCloudBaseConfig(yargsParsedResult.configFile)
|
package/lib/utils/ai/router.js
CHANGED
|
@@ -267,7 +267,6 @@ class AICommandRouter {
|
|
|
267
267
|
};
|
|
268
268
|
let merged = deepMerge(localJson, templateJson);
|
|
269
269
|
yield fs.writeJson(destPath, merged, { spaces: 2 });
|
|
270
|
-
log.info('已深度合并 cloudbaserc.json (所有字段本地优先)');
|
|
271
270
|
}
|
|
272
271
|
catch (e) {
|
|
273
272
|
log.warn('cloudbaserc.json 合并失败,已跳过: ' + e.message);
|
|
@@ -296,7 +295,6 @@ class AICommandRouter {
|
|
|
296
295
|
finally { if (e_1) throw e_1.error; }
|
|
297
296
|
}
|
|
298
297
|
yield fs.unlink(zipPath);
|
|
299
|
-
yield this.validateTemplateIntegrity(templateType, extractDir, log);
|
|
300
298
|
});
|
|
301
299
|
}
|
|
302
300
|
validateTemplateIntegrity(templateType, extractDir, log) {
|
package/lib/utils/ai/setup.js
CHANGED
|
@@ -45,6 +45,7 @@ const constants_1 = require("../../commands/constants");
|
|
|
45
45
|
const const_1 = require("./const");
|
|
46
46
|
const config_1 = require("./config");
|
|
47
47
|
const auth_1 = require("../../auth");
|
|
48
|
+
const output_1 = require("../output");
|
|
48
49
|
class AISetupWizard {
|
|
49
50
|
constructor(envId) {
|
|
50
51
|
this.aiConfigManager = new config_1.AIConfigManager();
|
|
@@ -178,7 +179,7 @@ class AISetupWizard {
|
|
|
178
179
|
}
|
|
179
180
|
configureClaudeAgent(log) {
|
|
180
181
|
return __awaiter(this, void 0, void 0, function* () {
|
|
181
|
-
log.info('
|
|
182
|
+
log.info(`配置说明可参考 ${(0, output_1.genClickableLink)('https://docs.cloudbase.net/cli-v1/ai/claude')}`);
|
|
182
183
|
const { apikey, baseUrl } = yield inquirer_1.default.prompt([
|
|
183
184
|
{
|
|
184
185
|
type: 'input',
|
|
@@ -198,7 +199,7 @@ class AISetupWizard {
|
|
|
198
199
|
}
|
|
199
200
|
configureQwenAgent(log) {
|
|
200
201
|
return __awaiter(this, void 0, void 0, function* () {
|
|
201
|
-
log.info('
|
|
202
|
+
log.info(`配置说明可参考 ${(0, output_1.genClickableLink)('https://docs.cloudbase.net/cli-v1/ai/qwen')}`);
|
|
202
203
|
const { apiKey, baseUrl, model } = yield inquirer_1.default.prompt([
|
|
203
204
|
{
|
|
204
205
|
type: 'input',
|
|
@@ -224,7 +225,7 @@ class AISetupWizard {
|
|
|
224
225
|
}
|
|
225
226
|
configureClaudeCloudbaseAgent(log, _envId) {
|
|
226
227
|
return __awaiter(this, void 0, void 0, function* () {
|
|
227
|
-
log.info('
|
|
228
|
+
log.info(`配置说明可参考 ${(0, output_1.genClickableLink)('https://docs.cloudbase.net/cli-v1/ai/claudeCloudbase')}`);
|
|
228
229
|
yield this.configureEnvId(log, _envId);
|
|
229
230
|
const { provider, model, transformer } = yield inquirer_1.default.prompt([
|
|
230
231
|
{
|