zcf 2.7.0 → 2.7.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/dist/cli.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import cac from 'cac';
|
|
3
3
|
import ansis from 'ansis';
|
|
4
|
-
import { I as I18N, Z as ZCF_CONFIG_FILE, h as SUPPORTED_LANGS, j as LANG_LABELS, H as updateZcfConfig, o as openSettingsJson, b as importRecommendedPermissions, a as importRecommendedEnv, J as readZcfConfig, K as resolveAiOutputLanguage, w as applyAiLanguageDirective, N as configureAiPersonality, u as updateDefaultModel, O as isWindows, y as readMcpConfig, F as fixWindowsMcpConfig, z as writeMcpConfig, P as selectMcpServices, B as backupMcpConfig, M as MCP_SERVICES, E as buildMcpServerConfig, D as mergeMcpServers, v as getExistingApiConfig, Q as formatApiKeyDisplay, R as modifyApiConfigPartially, T as validateApiKey, r as configureApi, U as readZcfConfigAsync, V as displayBanner, W as selectScriptLanguage, X as updatePromptOnly, Y as selectAndInstallWorkflows, _ as version, $ as handleExitPromptError, a0 as handleGeneralError, a1 as displayBannerWithInfo, i as init } from './shared/zcf.
|
|
4
|
+
import { I as I18N, Z as ZCF_CONFIG_FILE, h as SUPPORTED_LANGS, j as LANG_LABELS, H as updateZcfConfig, o as openSettingsJson, b as importRecommendedPermissions, a as importRecommendedEnv, J as readZcfConfig, K as resolveAiOutputLanguage, w as applyAiLanguageDirective, N as configureAiPersonality, u as updateDefaultModel, O as isWindows, y as readMcpConfig, F as fixWindowsMcpConfig, z as writeMcpConfig, P as selectMcpServices, B as backupMcpConfig, M as MCP_SERVICES, E as buildMcpServerConfig, D as mergeMcpServers, v as getExistingApiConfig, Q as formatApiKeyDisplay, R as modifyApiConfigPartially, T as validateApiKey, r as configureApi, U as readZcfConfigAsync, V as displayBanner, W as selectScriptLanguage, X as updatePromptOnly, Y as selectAndInstallWorkflows, _ as version, $ as handleExitPromptError, a0 as handleGeneralError, a1 as displayBannerWithInfo, i as init } from './shared/zcf.CZ3RjfyP.mjs';
|
|
5
5
|
import inquirer from 'inquirer';
|
|
6
6
|
import { existsSync, unlinkSync } from 'node:fs';
|
|
7
7
|
import { x } from 'tinyexec';
|
|
@@ -482,11 +482,9 @@ async function showMainMenu() {
|
|
|
482
482
|
)}`
|
|
483
483
|
);
|
|
484
484
|
console.log("");
|
|
485
|
-
console.log(`
|
|
485
|
+
console.log(` --------- ${i18n.menuSections.otherTools} ----------`);
|
|
486
486
|
console.log(
|
|
487
|
-
` ${ansis.cyan("
|
|
488
|
-
"- " + i18n.menuDescriptions.ccusage
|
|
489
|
-
)}`
|
|
487
|
+
` ${ansis.cyan("U.")} ${i18n.menuOptions.ccusage} ${ansis.gray("- " + i18n.menuDescriptions.ccusage)}`
|
|
490
488
|
);
|
|
491
489
|
console.log("");
|
|
492
490
|
console.log(" ------------ ZCF ------------");
|
|
@@ -498,7 +496,7 @@ async function showMainMenu() {
|
|
|
498
496
|
console.log(
|
|
499
497
|
` ${ansis.cyan("-.")} ${i18n.menuOptions.clearCache} ${ansis.gray("- " + i18n.menuDescriptions.clearCache)}`
|
|
500
498
|
);
|
|
501
|
-
console.log(` ${ansis.red("
|
|
499
|
+
console.log(` ${ansis.red("Q.")} ${ansis.red(i18n.menuOptions.exit)}`);
|
|
502
500
|
console.log("");
|
|
503
501
|
const { choice } = await inquirer.prompt({
|
|
504
502
|
type: "input",
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as AI_OUTPUT_LANGUAGES, C as CLAUDE_DIR, e as CLAUDE_MD_FILE, f as ClAUDE_CONFIG_FILE, I as I18N, j as LANG_LABELS, L as LEGACY_ZCF_CONFIG_FILE, M as MCP_SERVICES, S as SETTINGS_FILE, h as SUPPORTED_LANGS, Z as ZCF_CONFIG_FILE, G as addCompletedOnboarding, w as applyAiLanguageDirective, p as backupExistingConfig, B as backupMcpConfig, E as buildMcpServerConfig, d as cleanupPermissions, c as commandExists, r as configureApi, q as copyConfigFiles, n as ensureClaudeDir, F as fixWindowsMcpConfig, v as getExistingApiConfig, x as getMcpConfigPath, g as getPlatform, a as importRecommendedEnv, b as importRecommendedPermissions, i as init, l as installClaudeCode, k as isClaudeCodeInstalled, m as mergeAndCleanPermissions, s as mergeConfigs, D as mergeMcpServers, t as mergeSettingsFile, o as openSettingsJson, y as readMcpConfig, u as updateDefaultModel, z as writeMcpConfig } from './shared/zcf.
|
|
1
|
+
export { A as AI_OUTPUT_LANGUAGES, C as CLAUDE_DIR, e as CLAUDE_MD_FILE, f as ClAUDE_CONFIG_FILE, I as I18N, j as LANG_LABELS, L as LEGACY_ZCF_CONFIG_FILE, M as MCP_SERVICES, S as SETTINGS_FILE, h as SUPPORTED_LANGS, Z as ZCF_CONFIG_FILE, G as addCompletedOnboarding, w as applyAiLanguageDirective, p as backupExistingConfig, B as backupMcpConfig, E as buildMcpServerConfig, d as cleanupPermissions, c as commandExists, r as configureApi, q as copyConfigFiles, n as ensureClaudeDir, F as fixWindowsMcpConfig, v as getExistingApiConfig, x as getMcpConfigPath, g as getPlatform, a as importRecommendedEnv, b as importRecommendedPermissions, i as init, l as installClaudeCode, k as isClaudeCodeInstalled, m as mergeAndCleanPermissions, s as mergeConfigs, D as mergeMcpServers, t as mergeSettingsFile, o as openSettingsJson, y as readMcpConfig, u as updateDefaultModel, z as writeMcpConfig } from './shared/zcf.CZ3RjfyP.mjs';
|
|
2
2
|
import 'inquirer';
|
|
3
3
|
import 'ansis';
|
|
4
4
|
import 'node:fs';
|
|
@@ -8,7 +8,7 @@ import { exec } from 'tinyexec';
|
|
|
8
8
|
import { rm, mkdir, copyFile as copyFile$1 } from 'node:fs/promises';
|
|
9
9
|
import { homedir, platform } from 'node:os';
|
|
10
10
|
|
|
11
|
-
const version = "2.7.
|
|
11
|
+
const version = "2.7.1";
|
|
12
12
|
const homepage = "https://github.com/UfoMiao/zcf";
|
|
13
13
|
|
|
14
14
|
const common$1 = {
|
|
@@ -23,7 +23,7 @@ const common$1 = {
|
|
|
23
23
|
none: "\u65E0",
|
|
24
24
|
notConfigured: "\u672A\u914D\u7F6E",
|
|
25
25
|
spaceToSelectReturn: "- \u7A7A\u683C\u9009\u62E9\uFF0C\u56DE\u8F66\u63D0\u4EA4",
|
|
26
|
-
enterChoice: "\u8BF7\u8F93\u5165\u9009\u9879\uFF0C\u56DE\u8F66\u786E\u8BA4",
|
|
26
|
+
enterChoice: "\u8BF7\u8F93\u5165\u9009\u9879\uFF0C\u56DE\u8F66\u786E\u8BA4\uFF08\u4E0D\u533A\u5206\u5927\u5C0F\u5199\uFF09",
|
|
27
27
|
invalidChoice: "\u65E0\u6548\u9009\u62E9\u3002\u8BF7\u8F93\u5165\u6709\u6548\u9009\u9879\u3002",
|
|
28
28
|
goodbye: "\u{1F44B} \u611F\u8C22\u4F7F\u7528 ZCF\uFF01\u518D\u89C1\uFF01",
|
|
29
29
|
returnToMenu: "\u8FD4\u56DE\u4E3B\u83DC\u5355\uFF1F",
|
|
@@ -353,7 +353,7 @@ const common = {
|
|
|
353
353
|
none: "None",
|
|
354
354
|
notConfigured: "Not configured",
|
|
355
355
|
spaceToSelectReturn: "- Space to select. Return to submit",
|
|
356
|
-
enterChoice: "Enter your choice
|
|
356
|
+
enterChoice: "Enter your choice and press enter (case-insensitive)",
|
|
357
357
|
invalidChoice: "Invalid choice. Please enter a valid option.",
|
|
358
358
|
goodbye: "\u{1F44B} Thanks for using ZCF! Goodbye!",
|
|
359
359
|
returnToMenu: "Return to main menu?",
|
|
@@ -748,8 +748,8 @@ const MCP_SERVICES = [
|
|
|
748
748
|
},
|
|
749
749
|
requiresApiKey: true,
|
|
750
750
|
apiKeyPrompt: {
|
|
751
|
-
"zh-CN": "\u8BF7\u8F93\u5165 Exa API Key",
|
|
752
|
-
en: "Enter Exa API Key"
|
|
751
|
+
"zh-CN": "\u8BF7\u8F93\u5165 Exa API Key\uFF08\u53EF\u4ECE https://dashboard.exa.ai/api-keys \u83B7\u53D6\uFF09",
|
|
752
|
+
en: "Enter Exa API Key (get from https://dashboard.exa.ai/api-keys)"
|
|
753
753
|
},
|
|
754
754
|
apiKeyEnvVar: "EXA_API_KEY",
|
|
755
755
|
config: {
|
package/package.json
CHANGED