zcf 2.12.4 → 2.12.6
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/README.md +30 -5
- package/dist/chunks/simple-config.mjs +690 -1684
- package/dist/cli.mjs +371 -406
- package/dist/i18n/locales/en/api.json +35 -0
- package/dist/i18n/locales/en/ccr.json +63 -0
- package/dist/i18n/locales/en/cli.json +42 -0
- package/dist/i18n/locales/en/cometix.json +29 -0
- package/dist/i18n/locales/en/common.json +14 -0
- package/dist/i18n/locales/en/configuration.json +60 -0
- package/dist/i18n/locales/en/errors.json +20 -0
- package/dist/i18n/locales/en/installation.json +12 -0
- package/dist/i18n/locales/en/language.json +13 -0
- package/dist/i18n/locales/en/mcp.json +17 -0
- package/dist/i18n/locales/en/menu.json +31 -0
- package/dist/i18n/locales/en/tools.json +15 -0
- package/dist/i18n/locales/en/updater.json +20 -0
- package/dist/i18n/locales/en/workflow.json +23 -0
- package/dist/i18n/locales/zh-CN/api.json +35 -0
- package/dist/i18n/locales/zh-CN/ccr.json +63 -0
- package/dist/i18n/locales/zh-CN/cli.json +42 -0
- package/dist/i18n/locales/zh-CN/cometix.json +29 -0
- package/dist/i18n/locales/zh-CN/common.json +14 -0
- package/dist/i18n/locales/zh-CN/configuration.json +60 -0
- package/dist/i18n/locales/zh-CN/errors.json +20 -0
- package/dist/i18n/locales/zh-CN/installation.json +12 -0
- package/dist/i18n/locales/zh-CN/language.json +13 -0
- package/dist/i18n/locales/zh-CN/mcp.json +17 -0
- package/dist/i18n/locales/zh-CN/menu.json +31 -0
- package/dist/i18n/locales/zh-CN/tools.json +15 -0
- package/dist/i18n/locales/zh-CN/updater.json +20 -0
- package/dist/i18n/locales/zh-CN/workflow.json +23 -0
- package/dist/index.d.mts +3 -26
- package/dist/index.d.ts +3 -26
- package/dist/index.mjs +5 -4
- package/package.json +6 -2
- package/templates/common/settings.json +2 -1
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
{
|
|
2
|
+
"aiLanguageConfigured": "AI 输出语言已配置",
|
|
3
|
+
"backupAndOverwrite": "备份并覆盖全部",
|
|
4
|
+
"backupSuccess": "已备份所有配置文件到",
|
|
5
|
+
"cacheCleared": "ZCF 缓存已清除",
|
|
6
|
+
"cleanupLegacyFiles": "是否清理旧版配置文件?",
|
|
7
|
+
"configSuccess": "配置文件已复制到",
|
|
8
|
+
"configureAiLanguage": "配置 AI 输出语言",
|
|
9
|
+
"configureOutputStyle": "配置全局 AI 输出风格",
|
|
10
|
+
"confirmClearCache": "确认清除所有 ZCF 偏好缓存?",
|
|
11
|
+
"currentLanguage": "当前语言",
|
|
12
|
+
"currentModel": "当前模型",
|
|
13
|
+
"defaultModelOption": "默认 - 让 Claude Code 自动选择",
|
|
14
|
+
"defaultStyle": "默认风格",
|
|
15
|
+
"envImportSuccess": "环境变量已导入",
|
|
16
|
+
"existingConfig": "检测到已有配置文件,如何处理?",
|
|
17
|
+
"existingLanguageConfig": "检测到已有 AI 输出语言配置",
|
|
18
|
+
"existingModelConfig": "检测到已有模型配置",
|
|
19
|
+
"fixWindowsMcp": "修复 Windows MCP 配置?",
|
|
20
|
+
"importRecommendedEnv": "导入 ZCF 推荐环境变量",
|
|
21
|
+
"importRecommendedEnvDesc": "隐私保护变量等",
|
|
22
|
+
"importRecommendedPermissions": "导入 ZCF 推荐权限配置",
|
|
23
|
+
"importRecommendedPermissionsDesc": "几乎全部权限,减少频繁请求权限,危险操作由规则限制",
|
|
24
|
+
"keepLanguage": "保持当前语言配置",
|
|
25
|
+
"keepModel": "保持当前模型配置",
|
|
26
|
+
"legacyFilesDetected": "检测到旧版个性配置文件",
|
|
27
|
+
"legacyFilesRemoved": "旧版配置文件已清理",
|
|
28
|
+
"mergeConfig": "合并配置",
|
|
29
|
+
"modelConfigured": "默认模型已配置",
|
|
30
|
+
"modifyLanguage": "是否修改 AI 输出语言?",
|
|
31
|
+
"modifyModel": "是否修改模型配置?",
|
|
32
|
+
"openSettingsJson": "打开 settings.json 手动配置",
|
|
33
|
+
"openSettingsJsonDesc": "高级用户自定义",
|
|
34
|
+
"openingSettingsJson": "正在打开 settings.json...",
|
|
35
|
+
"opusModelOption": "Opus - 只用opus,token消耗高,慎用",
|
|
36
|
+
"opusPlanModelOption": "OpusPlan - Opus做计划,sonnet编写代码,推荐",
|
|
37
|
+
"outputStyleInstalled": "输出风格安装成功",
|
|
38
|
+
"outputStyles.default.description": "完成编码任务时高效且提供简洁响应 (Claude Code自带)",
|
|
39
|
+
"outputStyles.default.name": "默认风格",
|
|
40
|
+
"outputStyles.engineer-professional.description": "专业的软件工程师,严格遵循SOLID、KISS、DRY、YAGNI原则",
|
|
41
|
+
"outputStyles.engineer-professional.name": "工程师专业版",
|
|
42
|
+
"outputStyles.explanatory.description": "解释其实现选择和代码库模式 (Claude Code自带)",
|
|
43
|
+
"outputStyles.explanatory.name": "解释风格",
|
|
44
|
+
"outputStyles.laowang-engineer.description": "老王暴躁技术流,绝不容忍代码报错和不规范的代码",
|
|
45
|
+
"outputStyles.laowang-engineer.name": "老王暴躁技术流",
|
|
46
|
+
"outputStyles.learning.description": "协作式的边做边学模式,暂停并要求您编写小段代码进行实践练习 (Claude Code自带)",
|
|
47
|
+
"outputStyles.learning.name": "学习风格",
|
|
48
|
+
"outputStyles.nekomata-engineer.description": "专业的猫娘工程师幽浮喵,结合严谨工程师素养与可爱猫娘特质",
|
|
49
|
+
"outputStyles.nekomata-engineer.name": "猫娘工程师",
|
|
50
|
+
"permissionsImportSuccess": "权限配置已导入",
|
|
51
|
+
"selectAtLeastOne": "请至少选择一个输出风格",
|
|
52
|
+
"selectDefaultModel": "选择默认模型",
|
|
53
|
+
"selectDefaultOutputStyle": "选择全局默认输出风格",
|
|
54
|
+
"selectEnvPermissionOption": "请选择配置选项",
|
|
55
|
+
"selectMemoryOption": "选择配置选项",
|
|
56
|
+
"selectOutputStyles": "选择要安装的输出风格",
|
|
57
|
+
"selectedStyles": "已选择风格",
|
|
58
|
+
"updateDocsOnly": "仅更新工作流相关md并备份旧配置",
|
|
59
|
+
"updatingPrompts": "正在更新 Claude Code 记忆文档..."
|
|
60
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"failedToRemoveFile": "删除文件失败:",
|
|
3
|
+
"failedToSetOnboarding": "设置入门完成标志失败:",
|
|
4
|
+
"failedToWriteMcpConfig": "写入 MCP 配置失败:",
|
|
5
|
+
"invalidConfigAction": "无效的配置操作值:{{value}}。必须是 'new', 'backup', 'merge', 'docs-only', 或 'skip'",
|
|
6
|
+
"invalidApiType": "无效的 API 类型值:{{value}}。必须是 'auth_token', 'api_key', 'ccr_proxy', 或 'skip'",
|
|
7
|
+
"apiKeyRequiredForApiKey": "当 apiType 为 \"api_key\" 时需要 API key",
|
|
8
|
+
"apiKeyRequiredForAuthToken": "当 apiType 为 \"auth_token\" 时需要 API key",
|
|
9
|
+
"invalidMcpService": "无效的 MCP 服务:{{service}}。可用的服务:{{validServices}}",
|
|
10
|
+
"invalidOutputStyle": "无效的输出样式:{{style}}。可用的样式:{{validStyles}}",
|
|
11
|
+
"invalidDefaultOutputStyle": "无效的默认输出样式:{{style}}。可用的样式:{{validStyles}}",
|
|
12
|
+
"invalidWorkflow": "无效的工作流:{{workflow}}。可用的工作流:{{validWorkflows}}",
|
|
13
|
+
"invalidModel": "无效的模型:{{model}}。期望的值:'opus', 'sonnet', 或 'opusplan'",
|
|
14
|
+
"invalidEnvConfig": "无效的环境配置:期望对象类型",
|
|
15
|
+
"invalidBaseUrl": "无效的 ANTHROPIC_BASE_URL:期望字符串类型",
|
|
16
|
+
"invalidApiKeyConfig": "无效的 ANTHROPIC_API_KEY:期望字符串类型",
|
|
17
|
+
"invalidAuthTokenConfig": "无效的 ANTHROPIC_AUTH_TOKEN:期望字符串类型",
|
|
18
|
+
"invalidPermissionsConfig": "无效的权限配置:期望对象类型",
|
|
19
|
+
"invalidPermissionsAllow": "无效的 permissions.allow:期望数组类型"
|
|
20
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"alreadyInstalled": "Claude Code 已安装",
|
|
3
|
+
"installFailed": "Claude Code 安装失败",
|
|
4
|
+
"installPrompt": "检测到 Claude Code 未安装,是否自动安装?",
|
|
5
|
+
"installSuccess": "Claude Code 安装成功",
|
|
6
|
+
"installing": "正在安装 Claude Code...",
|
|
7
|
+
"termuxDetected": "检测到 Termux 环境",
|
|
8
|
+
"termuxEnvironmentInfo": "Termux 环境通过 pkg 管理器提供 Node.js 和 npm",
|
|
9
|
+
"termuxInstallHint": "在 Termux 中,请先运行: pkg install nodejs 或 pkg install nodejs-lts",
|
|
10
|
+
"windowsDetected": "检测到 Windows 系统,将自动配置兼容格式",
|
|
11
|
+
"termuxPathInfo": "Termux 环境路径前缀:{path}"
|
|
12
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"selectScriptLang": "选择ZCF显示语言",
|
|
3
|
+
"selectConfigLang": "选择 Claude Code 配置语言",
|
|
4
|
+
"selectAiOutputLang": "选择 AI 输出语言",
|
|
5
|
+
"aiOutputLangHint": "AI 将使用此语言回复你的问题",
|
|
6
|
+
"enterCustomLanguage": "请输入自定义语言(例如:Japanese, French 等)",
|
|
7
|
+
"languageChanged": "语言已更改",
|
|
8
|
+
"configLangHint.zh-CN": "便于中文用户自定义",
|
|
9
|
+
"configLangHint.en": "token 消耗更低",
|
|
10
|
+
"updateConfigLangPrompt": "选择配置语言",
|
|
11
|
+
"languageRequired": "语言为必填项",
|
|
12
|
+
"labels.custom": "自定义"
|
|
13
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"configureMcp": "是否配置 MCP 服务?",
|
|
3
|
+
"mcpBackupSuccess": "已备份原有 MCP 配置",
|
|
4
|
+
"mcpConfigSuccess": "MCP 服务已配置",
|
|
5
|
+
"selectMcpServices": "选择要安装的 MCP 服务",
|
|
6
|
+
"services.Playwright.description": "直接控制浏览器进行自动化操作",
|
|
7
|
+
"services.Playwright.name": "Playwright 浏览器控制",
|
|
8
|
+
"services.context7.description": "查询最新的库文档和代码示例",
|
|
9
|
+
"services.context7.name": "Context7 文档查询",
|
|
10
|
+
"services.exa.apiKeyPrompt": "请输入 Exa API Key",
|
|
11
|
+
"services.exa.description": "使用 Exa AI 进行网页搜索",
|
|
12
|
+
"services.exa.name": "Exa AI 搜索",
|
|
13
|
+
"services.mcp-deepwiki.description": "查询 GitHub 仓库文档和示例",
|
|
14
|
+
"services.mcp-deepwiki.name": "DeepWiki",
|
|
15
|
+
"services.spec-workflow.description": "规范化特性开发工作流程,从需求到实现的系统化方法",
|
|
16
|
+
"services.spec-workflow.name": "Spec 工作流"
|
|
17
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"menuDescriptions.ccrManagement": "配置 Claude Code Router 以使用多个 AI 模型",
|
|
3
|
+
"menuDescriptions.ccusage": "Claude Code 用量分析",
|
|
4
|
+
"menuDescriptions.changeLanguage": "更改 ZCF 界面语言",
|
|
5
|
+
"menuDescriptions.checkUpdates": "检查并更新 Claude Code、CCR 和 CCometixLine 的版本",
|
|
6
|
+
"menuDescriptions.clearCache": "清除偏好语言等缓存",
|
|
7
|
+
"menuDescriptions.cometixLine": "基于 Rust 的高性能 Claude Code 状态栏工具,集成 Git 信息和实时使用量跟踪",
|
|
8
|
+
"menuDescriptions.configureAiMemory": "配置 AI 输出语言和输出风格",
|
|
9
|
+
"menuDescriptions.configureApiOrCcr": "配置 API URL、认证信息或 CCR 代理",
|
|
10
|
+
"menuDescriptions.configureEnvPermission": "导入隐私保护环境变量和系统权限配置",
|
|
11
|
+
"menuDescriptions.configureMcp": "配置 MCP 服务(含 Windows 修复)",
|
|
12
|
+
"menuDescriptions.configureModel": "设置默认模型(opus/sonnet)",
|
|
13
|
+
"menuDescriptions.fullInit": "安装 Claude Code + 导入工作流 + 配置 API 或 CCR 代理 + 配置 MCP 服务",
|
|
14
|
+
"menuDescriptions.importWorkflow": "仅导入/更新工作流相关文件",
|
|
15
|
+
"menuOptions.ccrManagement": "CCR",
|
|
16
|
+
"menuOptions.ccusage": "ccusage",
|
|
17
|
+
"menuOptions.changeLanguage": "更改显示语言 / Select display language",
|
|
18
|
+
"menuOptions.checkUpdates": "检查更新",
|
|
19
|
+
"menuOptions.clearCache": "清除偏好缓存",
|
|
20
|
+
"menuOptions.cometixLine": "CCometixLine",
|
|
21
|
+
"menuOptions.configureAiMemory": "配置 Claude 全局记忆",
|
|
22
|
+
"menuOptions.configureApiOrCcr": "配置 API 或 CCR 代理",
|
|
23
|
+
"menuOptions.configureEnvPermission": "导入推荐环境变量和权限配置",
|
|
24
|
+
"menuOptions.configureMcp": "配置 MCP",
|
|
25
|
+
"menuOptions.configureModel": "配置默认模型",
|
|
26
|
+
"menuOptions.exit": "退出",
|
|
27
|
+
"menuOptions.fullInit": "完整初始化",
|
|
28
|
+
"menuOptions.importWorkflow": "导入工作流",
|
|
29
|
+
"menuSections.otherTools": "其他工具",
|
|
30
|
+
"selectFunction": "请选择功能"
|
|
31
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"ccusageDescription": "CCUsage 是 Claude Code 使用情况分析工具",
|
|
3
|
+
"ccusageFailed": "CCUsage 运行失败",
|
|
4
|
+
"ccusageModes.blocks": "分析代码块",
|
|
5
|
+
"ccusageModes.custom": "自定义模式",
|
|
6
|
+
"ccusageModes.daily": "日统计",
|
|
7
|
+
"ccusageModes.monthly": "月统计",
|
|
8
|
+
"ccusageModes.session": "会话统计",
|
|
9
|
+
"checkNetworkConnection": "检查网络连接",
|
|
10
|
+
"enterCustomArgs": "输入自定义参数",
|
|
11
|
+
"errorDetails": "错误详情:",
|
|
12
|
+
"pressEnterToContinue": "按 Enter 继续...",
|
|
13
|
+
"runningCcusage": "正在运行 Claude Code 用量分析工具...",
|
|
14
|
+
"selectAnalysisMode": "选择分析模式:"
|
|
15
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"cannotCheckVersion": "无法检查最新版本",
|
|
3
|
+
"ccrNotInstalled": "CCR 未安装",
|
|
4
|
+
"ccrUpToDate": "CCR 已是最新版本 (v{{version}})",
|
|
5
|
+
"checkFailed": "版本检查失败",
|
|
6
|
+
"checkingTools": "检查工具版本",
|
|
7
|
+
"checkingVersion": "检查版本中...",
|
|
8
|
+
"claudeCodeNotInstalled": "Claude Code 未安装",
|
|
9
|
+
"claudeCodeUpToDate": "Claude Code 已是最新版本 (v{{version}})",
|
|
10
|
+
"cometixLineNotInstalled": "CCometixLine 未安装",
|
|
11
|
+
"cometixLineUpToDate": "CCometixLine 已是最新版本 (v{{version}})",
|
|
12
|
+
"confirmUpdate": "将 {{tool}} 更新到最新版本?",
|
|
13
|
+
"currentVersion": "当前版本: v{{version}}",
|
|
14
|
+
"errorCheckingUpdates": "检查更新时出错:",
|
|
15
|
+
"latestVersion": "最新版本: v{{version}}",
|
|
16
|
+
"updateFailed": "{{tool}} 更新失败",
|
|
17
|
+
"updateSkipped": "跳过更新",
|
|
18
|
+
"updateSuccess": "{{tool}} 更新成功!",
|
|
19
|
+
"updating": "正在更新 {{tool}}..."
|
|
20
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"bmadInitPrompt": "✨ 请在项目中运行 /bmad-init 命令来初始化或更新 BMAD-Method 扩展",
|
|
3
|
+
"cleaningOldFiles": "清理旧版本文件",
|
|
4
|
+
"failedToInstallAgent": "安装代理失败",
|
|
5
|
+
"failedToInstallCommand": "安装命令失败",
|
|
6
|
+
"installedAgent": "已安装代理",
|
|
7
|
+
"installedCommand": "已安装命令",
|
|
8
|
+
"installingWorkflow": "正在安装工作流",
|
|
9
|
+
"removedOldFile": "已删除旧文件",
|
|
10
|
+
"selectWorkflowType": "选择要安装的工作流类型",
|
|
11
|
+
"workflowDescription.bmadWorkflow": "BMAD-Method 企业级敏捷开发工作流扩展",
|
|
12
|
+
"workflowDescription.commonTools": "提供项目初始化和架构分析工具,包含层级目录初始化命令和智能架构分析代理",
|
|
13
|
+
"workflowDescription.featPlanUx": "功能规划和用户体验设计工作流,包含规划代理和 UX 设计代理",
|
|
14
|
+
"workflowDescription.gitWorkflow": "Git 版本控制相关命令集合",
|
|
15
|
+
"workflowDescription.sixStepsWorkflow": "专业开发助手的结构化六步工作流程",
|
|
16
|
+
"workflowInstallError": "工作流安装出错",
|
|
17
|
+
"workflowInstallSuccess": "工作流安装成功",
|
|
18
|
+
"workflowOption.bmadWorkflow": "BMAD-Method 扩展安装器 (支持敏捷开发工作流)",
|
|
19
|
+
"workflowOption.commonTools": "通用工具 (层级目录初始化 + 通用agents)",
|
|
20
|
+
"workflowOption.featPlanUx": "功能规划和 UX 设计 (feat + planner + ui-ux-designer)",
|
|
21
|
+
"workflowOption.gitWorkflow": "Git 指令 (commit + rollback + cleanBranches + worktree)",
|
|
22
|
+
"workflowOption.sixStepsWorkflow": "六步工作流 (workflow)"
|
|
23
|
+
}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,22 +1,3 @@
|
|
|
1
|
-
type SupportedLang$1 = 'zh-CN' | 'en';
|
|
2
|
-
interface TranslationStructure {
|
|
3
|
-
common: any;
|
|
4
|
-
language: any;
|
|
5
|
-
installation: any;
|
|
6
|
-
api: any;
|
|
7
|
-
bmad: any;
|
|
8
|
-
workflow: any;
|
|
9
|
-
configuration: any;
|
|
10
|
-
mcp: any;
|
|
11
|
-
menu: any;
|
|
12
|
-
cli: any;
|
|
13
|
-
errors: any;
|
|
14
|
-
tools: any;
|
|
15
|
-
ccr: any;
|
|
16
|
-
cometix: any;
|
|
17
|
-
updater: any;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
1
|
declare const CLAUDE_DIR: string;
|
|
21
2
|
declare const SETTINGS_FILE: string;
|
|
22
3
|
declare const CLAUDE_MD_FILE: string;
|
|
@@ -31,23 +12,19 @@ declare const LANG_LABELS: {
|
|
|
31
12
|
};
|
|
32
13
|
declare const AI_OUTPUT_LANGUAGES: {
|
|
33
14
|
readonly 'zh-CN': {
|
|
34
|
-
readonly label: "简体中文";
|
|
35
15
|
readonly directive: "Always respond in Chinese-simplified";
|
|
36
16
|
};
|
|
37
17
|
readonly en: {
|
|
38
|
-
readonly label: "English";
|
|
39
18
|
readonly directive: "Always respond in English";
|
|
40
19
|
};
|
|
41
20
|
readonly custom: {
|
|
42
|
-
readonly label: "Custom";
|
|
43
21
|
readonly directive: "";
|
|
44
22
|
};
|
|
45
23
|
};
|
|
46
24
|
type AiOutputLanguage = keyof typeof AI_OUTPUT_LANGUAGES;
|
|
47
|
-
declare
|
|
25
|
+
declare function getAiOutputLanguageLabel(lang: AiOutputLanguage): string;
|
|
48
26
|
|
|
49
27
|
interface InitOptions {
|
|
50
|
-
lang?: SupportedLang;
|
|
51
28
|
configLang?: SupportedLang;
|
|
52
29
|
aiOutputLang?: AiOutputLanguage | string;
|
|
53
30
|
force?: boolean;
|
|
@@ -119,7 +96,7 @@ declare function getExistingApiConfig(): ApiConfig | null;
|
|
|
119
96
|
declare function applyAiLanguageDirective(aiOutputLang: AiOutputLanguage | string): void;
|
|
120
97
|
|
|
121
98
|
declare function isClaudeCodeInstalled(): Promise<boolean>;
|
|
122
|
-
declare function installClaudeCode(
|
|
99
|
+
declare function installClaudeCode(): Promise<void>;
|
|
123
100
|
|
|
124
101
|
declare function getMcpConfigPath(): string;
|
|
125
102
|
declare function readMcpConfig(): ClaudeConfiguration | null;
|
|
@@ -157,5 +134,5 @@ declare function importRecommendedEnv(): Promise<void>;
|
|
|
157
134
|
declare function importRecommendedPermissions(): Promise<void>;
|
|
158
135
|
declare function openSettingsJson(): Promise<void>;
|
|
159
136
|
|
|
160
|
-
export { AI_OUTPUT_LANGUAGES, CLAUDE_DIR, CLAUDE_MD_FILE, ClAUDE_CONFIG_FILE,
|
|
137
|
+
export { AI_OUTPUT_LANGUAGES, CLAUDE_DIR, CLAUDE_MD_FILE, ClAUDE_CONFIG_FILE, LANG_LABELS, LEGACY_ZCF_CONFIG_FILE, SETTINGS_FILE, SUPPORTED_LANGS, ZCF_CONFIG_FILE, addCompletedOnboarding, applyAiLanguageDirective, backupExistingConfig, backupMcpConfig, buildMcpServerConfig, cleanupPermissions, commandExists, configureApi, copyConfigFiles, ensureClaudeDir, fixWindowsMcpConfig, getAiOutputLanguageLabel, getExistingApiConfig, getExistingModelConfig, getMcpConfigPath, getPlatform, importRecommendedEnv, importRecommendedPermissions, init, installClaudeCode, isClaudeCodeInstalled, mergeAndCleanPermissions, mergeConfigs, mergeMcpServers, mergeSettingsFile, openSettingsJson, readMcpConfig, updateDefaultModel, writeMcpConfig };
|
|
161
138
|
export type { AiOutputLanguage, ApiConfig, ClaudeConfiguration, McpServerConfig, McpService, SupportedLang };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,22 +1,3 @@
|
|
|
1
|
-
type SupportedLang$1 = 'zh-CN' | 'en';
|
|
2
|
-
interface TranslationStructure {
|
|
3
|
-
common: any;
|
|
4
|
-
language: any;
|
|
5
|
-
installation: any;
|
|
6
|
-
api: any;
|
|
7
|
-
bmad: any;
|
|
8
|
-
workflow: any;
|
|
9
|
-
configuration: any;
|
|
10
|
-
mcp: any;
|
|
11
|
-
menu: any;
|
|
12
|
-
cli: any;
|
|
13
|
-
errors: any;
|
|
14
|
-
tools: any;
|
|
15
|
-
ccr: any;
|
|
16
|
-
cometix: any;
|
|
17
|
-
updater: any;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
1
|
declare const CLAUDE_DIR: string;
|
|
21
2
|
declare const SETTINGS_FILE: string;
|
|
22
3
|
declare const CLAUDE_MD_FILE: string;
|
|
@@ -31,23 +12,19 @@ declare const LANG_LABELS: {
|
|
|
31
12
|
};
|
|
32
13
|
declare const AI_OUTPUT_LANGUAGES: {
|
|
33
14
|
readonly 'zh-CN': {
|
|
34
|
-
readonly label: "简体中文";
|
|
35
15
|
readonly directive: "Always respond in Chinese-simplified";
|
|
36
16
|
};
|
|
37
17
|
readonly en: {
|
|
38
|
-
readonly label: "English";
|
|
39
18
|
readonly directive: "Always respond in English";
|
|
40
19
|
};
|
|
41
20
|
readonly custom: {
|
|
42
|
-
readonly label: "Custom";
|
|
43
21
|
readonly directive: "";
|
|
44
22
|
};
|
|
45
23
|
};
|
|
46
24
|
type AiOutputLanguage = keyof typeof AI_OUTPUT_LANGUAGES;
|
|
47
|
-
declare
|
|
25
|
+
declare function getAiOutputLanguageLabel(lang: AiOutputLanguage): string;
|
|
48
26
|
|
|
49
27
|
interface InitOptions {
|
|
50
|
-
lang?: SupportedLang;
|
|
51
28
|
configLang?: SupportedLang;
|
|
52
29
|
aiOutputLang?: AiOutputLanguage | string;
|
|
53
30
|
force?: boolean;
|
|
@@ -119,7 +96,7 @@ declare function getExistingApiConfig(): ApiConfig | null;
|
|
|
119
96
|
declare function applyAiLanguageDirective(aiOutputLang: AiOutputLanguage | string): void;
|
|
120
97
|
|
|
121
98
|
declare function isClaudeCodeInstalled(): Promise<boolean>;
|
|
122
|
-
declare function installClaudeCode(
|
|
99
|
+
declare function installClaudeCode(): Promise<void>;
|
|
123
100
|
|
|
124
101
|
declare function getMcpConfigPath(): string;
|
|
125
102
|
declare function readMcpConfig(): ClaudeConfiguration | null;
|
|
@@ -157,5 +134,5 @@ declare function importRecommendedEnv(): Promise<void>;
|
|
|
157
134
|
declare function importRecommendedPermissions(): Promise<void>;
|
|
158
135
|
declare function openSettingsJson(): Promise<void>;
|
|
159
136
|
|
|
160
|
-
export { AI_OUTPUT_LANGUAGES, CLAUDE_DIR, CLAUDE_MD_FILE, ClAUDE_CONFIG_FILE,
|
|
137
|
+
export { AI_OUTPUT_LANGUAGES, CLAUDE_DIR, CLAUDE_MD_FILE, ClAUDE_CONFIG_FILE, LANG_LABELS, LEGACY_ZCF_CONFIG_FILE, SETTINGS_FILE, SUPPORTED_LANGS, ZCF_CONFIG_FILE, addCompletedOnboarding, applyAiLanguageDirective, backupExistingConfig, backupMcpConfig, buildMcpServerConfig, cleanupPermissions, commandExists, configureApi, copyConfigFiles, ensureClaudeDir, fixWindowsMcpConfig, getAiOutputLanguageLabel, getExistingApiConfig, getExistingModelConfig, getMcpConfigPath, getPlatform, importRecommendedEnv, importRecommendedPermissions, init, installClaudeCode, isClaudeCodeInstalled, mergeAndCleanPermissions, mergeConfigs, mergeMcpServers, mergeSettingsFile, openSettingsJson, readMcpConfig, updateDefaultModel, writeMcpConfig };
|
|
161
138
|
export type { AiOutputLanguage, ApiConfig, ClaudeConfiguration, McpServerConfig, McpService, SupportedLang };
|
package/dist/index.mjs
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
export { A as AI_OUTPUT_LANGUAGES, C as CLAUDE_DIR, e as CLAUDE_MD_FILE, f as ClAUDE_CONFIG_FILE,
|
|
1
|
+
export { A as AI_OUTPUT_LANGUAGES, C as CLAUDE_DIR, e as CLAUDE_MD_FILE, f as ClAUDE_CONFIG_FILE, j as LANG_LABELS, L as LEGACY_ZCF_CONFIG_FILE, S as SETTINGS_FILE, h as SUPPORTED_LANGS, Z as ZCF_CONFIG_FILE, I as addCompletedOnboarding, w as applyAiLanguageDirective, n as backupExistingConfig, E as backupMcpConfig, G as buildMcpServerConfig, c as cleanupPermissions, a as commandExists, q as configureApi, p as copyConfigFiles, l as ensureClaudeDir, H as fixWindowsMcpConfig, k as getAiOutputLanguageLabel, v as getExistingApiConfig, t as getExistingModelConfig, z as getMcpConfigPath, g as getPlatform, b as importRecommendedEnv, d as importRecommendedPermissions, i as init, y as installClaudeCode, x as isClaudeCodeInstalled, m as mergeAndCleanPermissions, r as mergeConfigs, F as mergeMcpServers, s as mergeSettingsFile, o as openSettingsJson, B as readMcpConfig, u as updateDefaultModel, D as writeMcpConfig } from './chunks/simple-config.mjs';
|
|
2
2
|
import 'node:fs';
|
|
3
3
|
import 'node:process';
|
|
4
4
|
import 'ansis';
|
|
5
5
|
import 'inquirer';
|
|
6
|
+
import 'node:url';
|
|
7
|
+
import 'i18next';
|
|
8
|
+
import 'i18next-fs-backend';
|
|
9
|
+
import 'pathe';
|
|
6
10
|
import 'node:child_process';
|
|
7
11
|
import 'node:os';
|
|
8
|
-
import 'node:path';
|
|
9
12
|
import 'node:util';
|
|
10
13
|
import 'dayjs';
|
|
11
|
-
import 'node:url';
|
|
12
|
-
import 'pathe';
|
|
13
14
|
import 'ora';
|
|
14
15
|
import 'semver';
|
|
15
16
|
import 'tinyexec';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zcf",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.12.
|
|
4
|
+
"version": "2.12.6",
|
|
5
5
|
"description": "Zero-Config Claude-Code Flow - One-click configuration tool for Claude Code",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://github.com/UfoMiao/zcf",
|
|
@@ -39,6 +39,8 @@
|
|
|
39
39
|
"cac": "^6.7.14",
|
|
40
40
|
"dayjs": "^1.11.13",
|
|
41
41
|
"find-up-simple": "^1.0.1",
|
|
42
|
+
"i18next": "^25.4.2",
|
|
43
|
+
"i18next-fs-backend": "^2.6.0",
|
|
42
44
|
"inquirer": "^12.9.0",
|
|
43
45
|
"ora": "^8.2.0",
|
|
44
46
|
"pathe": "^2.0.3",
|
|
@@ -54,6 +56,7 @@
|
|
|
54
56
|
"@vitest/ui": "^3.2.4",
|
|
55
57
|
"eslint": "^9.33.0",
|
|
56
58
|
"eslint-plugin-format": "^1.0.1",
|
|
59
|
+
"glob": "^11.0.3",
|
|
57
60
|
"tsx": "^4.20.3",
|
|
58
61
|
"typescript": "^5.9.2",
|
|
59
62
|
"unbuild": "^3.6.0",
|
|
@@ -62,7 +65,8 @@
|
|
|
62
65
|
"scripts": {
|
|
63
66
|
"dev": "tsx ./src/cli.ts",
|
|
64
67
|
"build": "unbuild",
|
|
65
|
-
"
|
|
68
|
+
"start": "node bin/zcf.mjs",
|
|
69
|
+
"typecheck": "tsc --noEmit",
|
|
66
70
|
"lint": "eslint",
|
|
67
71
|
"lint:fix": "eslint --fix",
|
|
68
72
|
"test": "vitest",
|