zcf 3.4.1 → 3.4.2
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/chunks/claude-code-config-manager.mjs +7 -7
- package/dist/chunks/claude-code-incremental-manager.mjs +1 -1
- package/dist/chunks/codex-config-switch.mjs +7 -7
- package/dist/chunks/codex-provider-manager.mjs +3 -3
- package/dist/chunks/codex-uninstaller.mjs +2 -2
- package/dist/chunks/commands.mjs +1 -1
- package/dist/chunks/features.mjs +10 -10
- package/dist/chunks/simple-config.mjs +804 -39
- package/dist/cli.mjs +6 -6
- package/dist/i18n/locales/en/codex.json +2 -1
- package/dist/i18n/locales/en/common.json +2 -1
- package/dist/i18n/locales/en/installation.json +34 -1
- package/dist/i18n/locales/zh-CN/codex.json +2 -1
- package/dist/i18n/locales/zh-CN/common.json +2 -1
- package/dist/i18n/locales/zh-CN/installation.json +34 -1
- package/dist/index.d.mts +36 -2
- package/dist/index.d.ts +36 -2
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
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 {
|
|
4
|
+
import { ak as ensureI18nInitialized, al as i18n, aN as readCcrConfig, aI as isCcrInstalled, aJ as installCcr, aO as configureCcrFeature, ao as promptBoolean, aP as handleExitPromptError, aQ as handleGeneralError, aR as COMETIX_COMMAND_NAME, aS as COMETIX_COMMANDS, aT as installCometixLine, am as addNumbersToChoices, aU as checkAndUpdateTools, aV as runCodexUpdate, aW as resolveCodeType$1, at as readJsonConfig, aX as writeJsonConfig, q as ZCF_CONFIG_FILE, aD as readZcfConfig, D as DEFAULT_CODE_TOOL_TYPE, u as isCodeToolType, aY as displayBanner, aB as updateZcfConfig, aZ as version, a_ as resolveAiOutputLanguage, a$ as updatePromptOnly, b0 as selectAndInstallWorkflows, b1 as checkClaudeCodeVersionAndPrompt, w as resolveCodeToolType$1, b2 as displayBannerWithInfo, s as CODE_TOOL_BANNERS, b3 as runCodexUninstall, b4 as configureCodexMcp, b5 as configureCodexApi, b6 as runCodexWorkflowImportWithLanguageSelection, b7 as runCodexFullInit, i as init, b8 as switchCodexProvider, b9 as listCodexProviders, ax as readCodexConfig, ba as switchToOfficialLogin, bb as switchToProvider, bc as readZcfConfigAsync, bd as initI18n, be as selectScriptLanguage, aC as changeLanguage } from './chunks/simple-config.mjs';
|
|
5
5
|
import { existsSync } from 'node:fs';
|
|
6
6
|
import { homedir } from 'node:os';
|
|
7
7
|
import inquirer from 'inquirer';
|
|
@@ -687,7 +687,7 @@ class ZcfUninstaller {
|
|
|
687
687
|
result.removed.push(".claude.json (includes MCP configuration)");
|
|
688
688
|
}
|
|
689
689
|
try {
|
|
690
|
-
const { uninstallCodeTool } = await import('./chunks/simple-config.mjs').then(function (n) { return n.
|
|
690
|
+
const { uninstallCodeTool } = await import('./chunks/simple-config.mjs').then(function (n) { return n.bn; });
|
|
691
691
|
const success = await uninstallCodeTool("claude-code");
|
|
692
692
|
if (success) {
|
|
693
693
|
result.removed.push("@anthropic-ai/claude-code");
|
|
@@ -923,7 +923,7 @@ async function uninstall(options = {}) {
|
|
|
923
923
|
}
|
|
924
924
|
const uninstaller = new ZcfUninstaller(options.lang || "en");
|
|
925
925
|
if (codeType === "codex") {
|
|
926
|
-
const { runCodexUninstall } = await import('./chunks/simple-config.mjs').then(function (n) { return n.
|
|
926
|
+
const { runCodexUninstall } = await import('./chunks/simple-config.mjs').then(function (n) { return n.bm; });
|
|
927
927
|
await runCodexUninstall();
|
|
928
928
|
return;
|
|
929
929
|
}
|
|
@@ -1193,7 +1193,7 @@ async function update(options = {}) {
|
|
|
1193
1193
|
}
|
|
1194
1194
|
return;
|
|
1195
1195
|
}
|
|
1196
|
-
const { resolveTemplateLanguage } = await import('./chunks/simple-config.mjs').then(function (n) { return n.
|
|
1196
|
+
const { resolveTemplateLanguage } = await import('./chunks/simple-config.mjs').then(function (n) { return n.bl; });
|
|
1197
1197
|
const configLang = await resolveTemplateLanguage(
|
|
1198
1198
|
options.configLang,
|
|
1199
1199
|
// Command line option
|
|
@@ -1627,8 +1627,8 @@ async function listCodexProvidersWithDisplay() {
|
|
|
1627
1627
|
const current = isCurrent ? ansis.yellow(` (${i18n.t("common:current")})`) : "";
|
|
1628
1628
|
console.log(`${status}${ansis.white(provider.name)}${current}`);
|
|
1629
1629
|
console.log(` ${ansis.cyan(`ID: ${provider.id}`)} ${ansis.gray(`(${provider.baseUrl})`)}`);
|
|
1630
|
-
if (provider.
|
|
1631
|
-
console.log(` ${ansis.gray(`Env: ${provider.
|
|
1630
|
+
if (provider.tempEnvKey) {
|
|
1631
|
+
console.log(` ${ansis.gray(`Env: ${provider.tempEnvKey}`)}`);
|
|
1632
1632
|
}
|
|
1633
1633
|
console.log();
|
|
1634
1634
|
});
|
|
@@ -119,5 +119,6 @@
|
|
|
119
119
|
"providerManager.providerNameRequired": "Provider name is required",
|
|
120
120
|
"providerManager.baseUrlRequired": "Base URL is required",
|
|
121
121
|
"providerManager.wireApiInvalid": "Wire API must be either \"responses\" or \"chat\"",
|
|
122
|
-
"providerManager.unknownError": "Unknown error"
|
|
122
|
+
"providerManager.unknownError": "Unknown error",
|
|
123
|
+
"envKeyMigrationComplete": "✔ env_key to temp_env_key migration completed"
|
|
123
124
|
}
|
|
@@ -32,6 +32,12 @@
|
|
|
32
32
|
"wslInstallSuccess": "Claude Code successfully installed in WSL environment",
|
|
33
33
|
"selectInstallMethod": "Please select installation method for {{codeType}}:",
|
|
34
34
|
"recommendedMethod": "Recommended",
|
|
35
|
+
"notRecommended": "Not Recommended",
|
|
36
|
+
"installMethodNpm": "npm",
|
|
37
|
+
"installMethodHomebrew": "homebrew",
|
|
38
|
+
"installMethodCurl": "curl",
|
|
39
|
+
"installMethodPowershell": "powershell",
|
|
40
|
+
"installMethodCmd": "cmd",
|
|
35
41
|
"installingWith": "Installing {{codeType}} using {{method}}...",
|
|
36
42
|
"installMethodSuccess": "Successfully installed using {{method}}",
|
|
37
43
|
"installMethodFailed": "Failed to install using {{method}}",
|
|
@@ -43,5 +49,32 @@
|
|
|
43
49
|
"uninstallFailed": "Failed to uninstall using {{method}}",
|
|
44
50
|
"manualUninstallRequired": "{{codeType}} requires manual uninstallation",
|
|
45
51
|
"binaryLocation": "Binary location: {{path}}",
|
|
46
|
-
"failedToLocateBinary": "Failed to locate {{command}} binary"
|
|
52
|
+
"failedToLocateBinary": "Failed to locate {{command}} binary",
|
|
53
|
+
"verificationSuccess": "installation verified successfully",
|
|
54
|
+
"verificationFailed": "installation verification failed",
|
|
55
|
+
"symlinkCreated": "Symlink created at {{path}}",
|
|
56
|
+
"foundAtPath": "Found at: {{path}}",
|
|
57
|
+
"manualSymlinkHint": "You may need to manually add the tool to your PATH or create a symlink",
|
|
58
|
+
"duplicateInstallationsDetected": "⚠️ Multiple Claude Code installations detected",
|
|
59
|
+
"duplicateInstallationsWarning": "Having multiple installations may cause version confusion and update issues",
|
|
60
|
+
"currentActiveInstallation": "Current active installation",
|
|
61
|
+
"inactiveInstallations": "Inactive installations",
|
|
62
|
+
"installationSource": "Installation source",
|
|
63
|
+
"installationPath": "Path",
|
|
64
|
+
"installationVersion": "Version",
|
|
65
|
+
"sourceHomebrewCask": "Homebrew Cask",
|
|
66
|
+
"sourceNpm": "npm global",
|
|
67
|
+
"sourceNpmHomebrewNode": "npm (via Homebrew Node)",
|
|
68
|
+
"sourceCurl": "curl installation",
|
|
69
|
+
"sourceOther": "Other",
|
|
70
|
+
"recommendRemoveNpm": "Recommend removing npm installation to maintain single installation source",
|
|
71
|
+
"confirmRemoveDuplicate": "Remove redundant {source}?",
|
|
72
|
+
"removingDuplicateInstallation": "Removing redundant installation...",
|
|
73
|
+
"duplicateRemoved": "Redundant installation removed",
|
|
74
|
+
"duplicateRemovalFailed": "Failed to remove redundant installation",
|
|
75
|
+
"keepBothInstallations": "Keep both installations (not recommended)",
|
|
76
|
+
"duplicateWarningContinue": "Acknowledged duplicate installation risk, continue",
|
|
77
|
+
"versionMismatchWarning": "⚠️ Version mismatch: npm is {npmVersion}, Homebrew is {homebrewVersion}",
|
|
78
|
+
"activatingHomebrew": "Activating Homebrew installation...",
|
|
79
|
+
"autoRemovingNpm": "Silent mode: Auto-removing npm installation and keeping Homebrew..."
|
|
47
80
|
}
|
|
@@ -119,5 +119,6 @@
|
|
|
119
119
|
"providerManager.providerNameRequired": "提供商名称是必需的",
|
|
120
120
|
"providerManager.baseUrlRequired": "基础 URL 是必需的",
|
|
121
121
|
"providerManager.wireApiInvalid": "Wire API 必须是 \"responses\" 或 \"chat\"",
|
|
122
|
-
"providerManager.unknownError": "未知错误"
|
|
122
|
+
"providerManager.unknownError": "未知错误",
|
|
123
|
+
"envKeyMigrationComplete": "✔ 已完成 env_key 到 temp_env_key 的迁移"
|
|
123
124
|
}
|
|
@@ -32,6 +32,12 @@
|
|
|
32
32
|
"wslInstallSuccess": "Claude Code 已成功安装在 WSL 环境中",
|
|
33
33
|
"selectInstallMethod": "请选择 {{codeType}} 的安装方式:",
|
|
34
34
|
"recommendedMethod": "推荐",
|
|
35
|
+
"notRecommended": "不推荐",
|
|
36
|
+
"installMethodNpm": "npm",
|
|
37
|
+
"installMethodHomebrew": "homebrew",
|
|
38
|
+
"installMethodCurl": "curl",
|
|
39
|
+
"installMethodPowershell": "powershell",
|
|
40
|
+
"installMethodCmd": "cmd",
|
|
35
41
|
"installingWith": "正在使用 {{method}} 安装 {{codeType}}...",
|
|
36
42
|
"installMethodSuccess": "使用 {{method}} 安装成功",
|
|
37
43
|
"installMethodFailed": "使用 {{method}} 安装失败",
|
|
@@ -43,5 +49,32 @@
|
|
|
43
49
|
"uninstallFailed": "使用 {{method}} 卸载失败",
|
|
44
50
|
"manualUninstallRequired": "{{codeType}} 需要手动卸载",
|
|
45
51
|
"binaryLocation": "可执行文件位置:{{path}}",
|
|
46
|
-
"failedToLocateBinary": "无法定位 {{command}} 可执行文件"
|
|
52
|
+
"failedToLocateBinary": "无法定位 {{command}} 可执行文件",
|
|
53
|
+
"verificationSuccess": "安装验证成功",
|
|
54
|
+
"verificationFailed": "安装验证失败",
|
|
55
|
+
"symlinkCreated": "已在 {{path}} 创建符号链接",
|
|
56
|
+
"foundAtPath": "在此路径找到: {{path}}",
|
|
57
|
+
"manualSymlinkHint": "您可能需要手动将工具添加到 PATH 或创建符号链接",
|
|
58
|
+
"duplicateInstallationsDetected": "⚠️ 检测到多个 Claude Code 安装",
|
|
59
|
+
"duplicateInstallationsWarning": "同时存在多个安装可能导致版本混乱和更新异常",
|
|
60
|
+
"currentActiveInstallation": "当前活动安装",
|
|
61
|
+
"inactiveInstallations": "未激活的安装",
|
|
62
|
+
"installationSource": "安装来源",
|
|
63
|
+
"installationPath": "路径",
|
|
64
|
+
"installationVersion": "版本",
|
|
65
|
+
"sourceHomebrewCask": "Homebrew Cask",
|
|
66
|
+
"sourceNpm": "npm 全局安装",
|
|
67
|
+
"sourceNpmHomebrewNode": "npm (通过 Homebrew Node)",
|
|
68
|
+
"sourceCurl": "curl 安装",
|
|
69
|
+
"sourceOther": "其他",
|
|
70
|
+
"recommendRemoveNpm": "建议删除 npm 安装以保持单一安装源",
|
|
71
|
+
"confirmRemoveDuplicate": "是否删除冗余的 {source}?",
|
|
72
|
+
"removingDuplicateInstallation": "正在删除冗余安装...",
|
|
73
|
+
"duplicateRemoved": "冗余安装已删除",
|
|
74
|
+
"duplicateRemovalFailed": "删除冗余安装失败",
|
|
75
|
+
"keepBothInstallations": "保留两个安装(不推荐)",
|
|
76
|
+
"duplicateWarningContinue": "已知晓多重安装风险,继续使用",
|
|
77
|
+
"versionMismatchWarning": "⚠️ 版本不一致:npm 版本为 {npmVersion},Homebrew 版本为 {homebrewVersion}",
|
|
78
|
+
"activatingHomebrew": "正在激活 Homebrew 安装...",
|
|
79
|
+
"autoRemovingNpm": "静默模式:自动删除 npm 安装并保留 Homebrew..."
|
|
47
80
|
}
|
package/dist/index.d.mts
CHANGED
|
@@ -254,6 +254,40 @@ declare function executeInstallMethod(method: InstallMethod, codeType: CodeType)
|
|
|
254
254
|
* Handle installation failure with retry options
|
|
255
255
|
*/
|
|
256
256
|
declare function handleInstallFailure(codeType: CodeType, failedMethods: InstallMethod[]): Promise<boolean>;
|
|
257
|
+
/**
|
|
258
|
+
* Installation verification result
|
|
259
|
+
*/
|
|
260
|
+
interface VerificationResult {
|
|
261
|
+
success: boolean;
|
|
262
|
+
commandPath: string | null;
|
|
263
|
+
version: string | null;
|
|
264
|
+
needsSymlink: boolean;
|
|
265
|
+
symlinkCreated: boolean;
|
|
266
|
+
error?: string;
|
|
267
|
+
}
|
|
268
|
+
/**
|
|
269
|
+
* Verify installation by checking command availability and version
|
|
270
|
+
* If command is not in PATH but found in Homebrew paths, attempt to create symlink
|
|
271
|
+
*/
|
|
272
|
+
declare function verifyInstallation(codeType: CodeType): Promise<VerificationResult>;
|
|
273
|
+
/**
|
|
274
|
+
* Symlink creation result
|
|
275
|
+
*/
|
|
276
|
+
interface SymlinkResult {
|
|
277
|
+
success: boolean;
|
|
278
|
+
symlinkPath: string | null;
|
|
279
|
+
error?: string;
|
|
280
|
+
}
|
|
281
|
+
/**
|
|
282
|
+
* Create symlink in Homebrew bin directory for commands installed via npm
|
|
283
|
+
* This handles the case where npm global packages are installed to
|
|
284
|
+
* /opt/homebrew/Cellar/node/{version}/bin/ but that path is not in the user's PATH
|
|
285
|
+
*/
|
|
286
|
+
declare function createHomebrewSymlink(command: string, sourcePath: string): Promise<SymlinkResult>;
|
|
287
|
+
/**
|
|
288
|
+
* Display verification result to user with appropriate messages
|
|
289
|
+
*/
|
|
290
|
+
declare function displayVerificationResult(result: VerificationResult, codeType: CodeType): void;
|
|
257
291
|
|
|
258
292
|
/**
|
|
259
293
|
* Clean up and deduplicate permissions array
|
|
@@ -279,5 +313,5 @@ declare function importRecommendedEnv(): Promise<void>;
|
|
|
279
313
|
declare function importRecommendedPermissions(): Promise<void>;
|
|
280
314
|
declare function openSettingsJson(): Promise<void>;
|
|
281
315
|
|
|
282
|
-
export { AI_OUTPUT_LANGUAGES, API_DEFAULT_URL, API_ENV_KEY, CLAUDE_DIR, CLAUDE_MD_FILE, CLAUDE_VSC_CONFIG_FILE, CODEX_AGENTS_FILE, CODEX_AUTH_FILE, CODEX_CONFIG_FILE, CODEX_DIR, CODEX_PROMPTS_DIR, CODE_TOOL_ALIASES, CODE_TOOL_BANNERS, CODE_TOOL_TYPES, ClAUDE_CONFIG_FILE, DEFAULT_CODE_TOOL_TYPE, LANG_LABELS, LEGACY_ZCF_CONFIG_FILES, SETTINGS_FILE, SUPPORTED_LANGS, ZCF_CONFIG_DIR, ZCF_CONFIG_FILE, addCompletedOnboarding, applyAiLanguageDirective, backupExistingConfig, backupMcpConfig, buildMcpServerConfig, cleanupPermissions, commandExists, configureApi, copyConfigFiles, detectInstalledVersion, ensureApiKeyApproved, ensureClaudeDir, executeInstallMethod, fixWindowsMcpConfig, getAiOutputLanguageLabel, getExistingApiConfig, getExistingModelConfig, getInstallationStatus, getMcpConfigPath, getPlatform, handleInstallFailure, importRecommendedEnv, importRecommendedPermissions, init, installClaudeCode, installCodex, isClaudeCodeInstalled, isCodeToolType, isCodexInstalled, isLocalClaudeCodeInstalled, manageApiKeyApproval, mergeAndCleanPermissions, mergeConfigs, mergeMcpServers, mergeSettingsFile, openSettingsJson, promptApiConfigurationAction, readMcpConfig, removeApiKeyFromRejected, removeLocalClaudeCode, resolveCodeToolType, selectInstallMethod, setInstallMethod, setPrimaryApiKey, switchToOfficialLogin, uninstallCodeTool, updateCustomModel, updateDefaultModel, writeMcpConfig };
|
|
283
|
-
export type { AiOutputLanguage, ApiConfig, ClaudeConfiguration, CodeToolType, InstallationStatus, McpServerConfig, McpService, SupportedLang };
|
|
316
|
+
export { AI_OUTPUT_LANGUAGES, API_DEFAULT_URL, API_ENV_KEY, CLAUDE_DIR, CLAUDE_MD_FILE, CLAUDE_VSC_CONFIG_FILE, CODEX_AGENTS_FILE, CODEX_AUTH_FILE, CODEX_CONFIG_FILE, CODEX_DIR, CODEX_PROMPTS_DIR, CODE_TOOL_ALIASES, CODE_TOOL_BANNERS, CODE_TOOL_TYPES, ClAUDE_CONFIG_FILE, DEFAULT_CODE_TOOL_TYPE, LANG_LABELS, LEGACY_ZCF_CONFIG_FILES, SETTINGS_FILE, SUPPORTED_LANGS, ZCF_CONFIG_DIR, ZCF_CONFIG_FILE, addCompletedOnboarding, applyAiLanguageDirective, backupExistingConfig, backupMcpConfig, buildMcpServerConfig, cleanupPermissions, commandExists, configureApi, copyConfigFiles, createHomebrewSymlink, detectInstalledVersion, displayVerificationResult, ensureApiKeyApproved, ensureClaudeDir, executeInstallMethod, fixWindowsMcpConfig, getAiOutputLanguageLabel, getExistingApiConfig, getExistingModelConfig, getInstallationStatus, getMcpConfigPath, getPlatform, handleInstallFailure, importRecommendedEnv, importRecommendedPermissions, init, installClaudeCode, installCodex, isClaudeCodeInstalled, isCodeToolType, isCodexInstalled, isLocalClaudeCodeInstalled, manageApiKeyApproval, mergeAndCleanPermissions, mergeConfigs, mergeMcpServers, mergeSettingsFile, openSettingsJson, promptApiConfigurationAction, readMcpConfig, removeApiKeyFromRejected, removeLocalClaudeCode, resolveCodeToolType, selectInstallMethod, setInstallMethod, setPrimaryApiKey, switchToOfficialLogin, uninstallCodeTool, updateCustomModel, updateDefaultModel, verifyInstallation, writeMcpConfig };
|
|
317
|
+
export type { AiOutputLanguage, ApiConfig, ClaudeConfiguration, CodeToolType, InstallationStatus, McpServerConfig, McpService, SupportedLang, VerificationResult };
|
package/dist/index.d.ts
CHANGED
|
@@ -254,6 +254,40 @@ declare function executeInstallMethod(method: InstallMethod, codeType: CodeType)
|
|
|
254
254
|
* Handle installation failure with retry options
|
|
255
255
|
*/
|
|
256
256
|
declare function handleInstallFailure(codeType: CodeType, failedMethods: InstallMethod[]): Promise<boolean>;
|
|
257
|
+
/**
|
|
258
|
+
* Installation verification result
|
|
259
|
+
*/
|
|
260
|
+
interface VerificationResult {
|
|
261
|
+
success: boolean;
|
|
262
|
+
commandPath: string | null;
|
|
263
|
+
version: string | null;
|
|
264
|
+
needsSymlink: boolean;
|
|
265
|
+
symlinkCreated: boolean;
|
|
266
|
+
error?: string;
|
|
267
|
+
}
|
|
268
|
+
/**
|
|
269
|
+
* Verify installation by checking command availability and version
|
|
270
|
+
* If command is not in PATH but found in Homebrew paths, attempt to create symlink
|
|
271
|
+
*/
|
|
272
|
+
declare function verifyInstallation(codeType: CodeType): Promise<VerificationResult>;
|
|
273
|
+
/**
|
|
274
|
+
* Symlink creation result
|
|
275
|
+
*/
|
|
276
|
+
interface SymlinkResult {
|
|
277
|
+
success: boolean;
|
|
278
|
+
symlinkPath: string | null;
|
|
279
|
+
error?: string;
|
|
280
|
+
}
|
|
281
|
+
/**
|
|
282
|
+
* Create symlink in Homebrew bin directory for commands installed via npm
|
|
283
|
+
* This handles the case where npm global packages are installed to
|
|
284
|
+
* /opt/homebrew/Cellar/node/{version}/bin/ but that path is not in the user's PATH
|
|
285
|
+
*/
|
|
286
|
+
declare function createHomebrewSymlink(command: string, sourcePath: string): Promise<SymlinkResult>;
|
|
287
|
+
/**
|
|
288
|
+
* Display verification result to user with appropriate messages
|
|
289
|
+
*/
|
|
290
|
+
declare function displayVerificationResult(result: VerificationResult, codeType: CodeType): void;
|
|
257
291
|
|
|
258
292
|
/**
|
|
259
293
|
* Clean up and deduplicate permissions array
|
|
@@ -279,5 +313,5 @@ declare function importRecommendedEnv(): Promise<void>;
|
|
|
279
313
|
declare function importRecommendedPermissions(): Promise<void>;
|
|
280
314
|
declare function openSettingsJson(): Promise<void>;
|
|
281
315
|
|
|
282
|
-
export { AI_OUTPUT_LANGUAGES, API_DEFAULT_URL, API_ENV_KEY, CLAUDE_DIR, CLAUDE_MD_FILE, CLAUDE_VSC_CONFIG_FILE, CODEX_AGENTS_FILE, CODEX_AUTH_FILE, CODEX_CONFIG_FILE, CODEX_DIR, CODEX_PROMPTS_DIR, CODE_TOOL_ALIASES, CODE_TOOL_BANNERS, CODE_TOOL_TYPES, ClAUDE_CONFIG_FILE, DEFAULT_CODE_TOOL_TYPE, LANG_LABELS, LEGACY_ZCF_CONFIG_FILES, SETTINGS_FILE, SUPPORTED_LANGS, ZCF_CONFIG_DIR, ZCF_CONFIG_FILE, addCompletedOnboarding, applyAiLanguageDirective, backupExistingConfig, backupMcpConfig, buildMcpServerConfig, cleanupPermissions, commandExists, configureApi, copyConfigFiles, detectInstalledVersion, ensureApiKeyApproved, ensureClaudeDir, executeInstallMethod, fixWindowsMcpConfig, getAiOutputLanguageLabel, getExistingApiConfig, getExistingModelConfig, getInstallationStatus, getMcpConfigPath, getPlatform, handleInstallFailure, importRecommendedEnv, importRecommendedPermissions, init, installClaudeCode, installCodex, isClaudeCodeInstalled, isCodeToolType, isCodexInstalled, isLocalClaudeCodeInstalled, manageApiKeyApproval, mergeAndCleanPermissions, mergeConfigs, mergeMcpServers, mergeSettingsFile, openSettingsJson, promptApiConfigurationAction, readMcpConfig, removeApiKeyFromRejected, removeLocalClaudeCode, resolveCodeToolType, selectInstallMethod, setInstallMethod, setPrimaryApiKey, switchToOfficialLogin, uninstallCodeTool, updateCustomModel, updateDefaultModel, writeMcpConfig };
|
|
283
|
-
export type { AiOutputLanguage, ApiConfig, ClaudeConfiguration, CodeToolType, InstallationStatus, McpServerConfig, McpService, SupportedLang };
|
|
316
|
+
export { AI_OUTPUT_LANGUAGES, API_DEFAULT_URL, API_ENV_KEY, CLAUDE_DIR, CLAUDE_MD_FILE, CLAUDE_VSC_CONFIG_FILE, CODEX_AGENTS_FILE, CODEX_AUTH_FILE, CODEX_CONFIG_FILE, CODEX_DIR, CODEX_PROMPTS_DIR, CODE_TOOL_ALIASES, CODE_TOOL_BANNERS, CODE_TOOL_TYPES, ClAUDE_CONFIG_FILE, DEFAULT_CODE_TOOL_TYPE, LANG_LABELS, LEGACY_ZCF_CONFIG_FILES, SETTINGS_FILE, SUPPORTED_LANGS, ZCF_CONFIG_DIR, ZCF_CONFIG_FILE, addCompletedOnboarding, applyAiLanguageDirective, backupExistingConfig, backupMcpConfig, buildMcpServerConfig, cleanupPermissions, commandExists, configureApi, copyConfigFiles, createHomebrewSymlink, detectInstalledVersion, displayVerificationResult, ensureApiKeyApproved, ensureClaudeDir, executeInstallMethod, fixWindowsMcpConfig, getAiOutputLanguageLabel, getExistingApiConfig, getExistingModelConfig, getInstallationStatus, getMcpConfigPath, getPlatform, handleInstallFailure, importRecommendedEnv, importRecommendedPermissions, init, installClaudeCode, installCodex, isClaudeCodeInstalled, isCodeToolType, isCodexInstalled, isLocalClaudeCodeInstalled, manageApiKeyApproval, mergeAndCleanPermissions, mergeConfigs, mergeMcpServers, mergeSettingsFile, openSettingsJson, promptApiConfigurationAction, readMcpConfig, removeApiKeyFromRejected, removeLocalClaudeCode, resolveCodeToolType, selectInstallMethod, setInstallMethod, setPrimaryApiKey, switchToOfficialLogin, uninstallCodeTool, updateCustomModel, updateDefaultModel, verifyInstallation, writeMcpConfig };
|
|
317
|
+
export type { AiOutputLanguage, ApiConfig, ClaudeConfiguration, CodeToolType, InstallationStatus, McpServerConfig, McpService, SupportedLang, VerificationResult };
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { z as AI_OUTPUT_LANGUAGES, A as API_DEFAULT_URL, v as API_ENV_KEY, C as CLAUDE_DIR, e as CLAUDE_MD_FILE, h as CLAUDE_VSC_CONFIG_FILE, n as CODEX_AGENTS_FILE, l as CODEX_AUTH_FILE, k as CODEX_CONFIG_FILE, j as CODEX_DIR, p as CODEX_PROMPTS_DIR, t as CODE_TOOL_ALIASES, s as CODE_TOOL_BANNERS, r as CODE_TOOL_TYPES, f as ClAUDE_CONFIG_FILE, D as DEFAULT_CODE_TOOL_TYPE, y as LANG_LABELS, L as LEGACY_ZCF_CONFIG_FILES, S as SETTINGS_FILE, x as SUPPORTED_LANGS, Z as ZCF_CONFIG_DIR, q as ZCF_CONFIG_FILE, M as addCompletedOnboarding, a1 as applyAiLanguageDirective, T as backupExistingConfig, H as backupMcpConfig, J as buildMcpServerConfig, c as cleanupPermissions, a as commandExists, V as configureApi, U as copyConfigFiles, ad as detectInstalledVersion, N as ensureApiKeyApproved, R as ensureClaudeDir, af as executeInstallMethod, K as fixWindowsMcpConfig, B as getAiOutputLanguageLabel, a0 as getExistingApiConfig, $ as getExistingModelConfig, a9 as getInstallationStatus, E as getMcpConfigPath, g as getPlatform, ag as handleInstallFailure, b as importRecommendedEnv, d as importRecommendedPermissions, i as init, a5 as installClaudeCode, a7 as installCodex, a4 as isClaudeCodeInstalled, u as isCodeToolType, a6 as isCodexInstalled, a8 as isLocalClaudeCodeInstalled, P as manageApiKeyApproval, m as mergeAndCleanPermissions, W as mergeConfigs, I as mergeMcpServers, _ as mergeSettingsFile, o as openSettingsJson, a3 as promptApiConfigurationAction, F as readMcpConfig, O as removeApiKeyFromRejected, aa as removeLocalClaudeCode, w as resolveCodeToolType, ae as selectInstallMethod, ac as setInstallMethod, Q as setPrimaryApiKey, a2 as switchToOfficialLogin, ab as uninstallCodeTool, X as updateCustomModel, Y as updateDefaultModel, G as writeMcpConfig } from './chunks/simple-config.mjs';
|
|
1
|
+
export { z as AI_OUTPUT_LANGUAGES, A as API_DEFAULT_URL, v as API_ENV_KEY, C as CLAUDE_DIR, e as CLAUDE_MD_FILE, h as CLAUDE_VSC_CONFIG_FILE, n as CODEX_AGENTS_FILE, l as CODEX_AUTH_FILE, k as CODEX_CONFIG_FILE, j as CODEX_DIR, p as CODEX_PROMPTS_DIR, t as CODE_TOOL_ALIASES, s as CODE_TOOL_BANNERS, r as CODE_TOOL_TYPES, f as ClAUDE_CONFIG_FILE, D as DEFAULT_CODE_TOOL_TYPE, y as LANG_LABELS, L as LEGACY_ZCF_CONFIG_FILES, S as SETTINGS_FILE, x as SUPPORTED_LANGS, Z as ZCF_CONFIG_DIR, q as ZCF_CONFIG_FILE, M as addCompletedOnboarding, a1 as applyAiLanguageDirective, T as backupExistingConfig, H as backupMcpConfig, J as buildMcpServerConfig, c as cleanupPermissions, a as commandExists, V as configureApi, U as copyConfigFiles, ai as createHomebrewSymlink, ad as detectInstalledVersion, aj as displayVerificationResult, N as ensureApiKeyApproved, R as ensureClaudeDir, af as executeInstallMethod, K as fixWindowsMcpConfig, B as getAiOutputLanguageLabel, a0 as getExistingApiConfig, $ as getExistingModelConfig, a9 as getInstallationStatus, E as getMcpConfigPath, g as getPlatform, ag as handleInstallFailure, b as importRecommendedEnv, d as importRecommendedPermissions, i as init, a5 as installClaudeCode, a7 as installCodex, a4 as isClaudeCodeInstalled, u as isCodeToolType, a6 as isCodexInstalled, a8 as isLocalClaudeCodeInstalled, P as manageApiKeyApproval, m as mergeAndCleanPermissions, W as mergeConfigs, I as mergeMcpServers, _ as mergeSettingsFile, o as openSettingsJson, a3 as promptApiConfigurationAction, F as readMcpConfig, O as removeApiKeyFromRejected, aa as removeLocalClaudeCode, w as resolveCodeToolType, ae as selectInstallMethod, ac as setInstallMethod, Q as setPrimaryApiKey, a2 as switchToOfficialLogin, ab as uninstallCodeTool, X as updateCustomModel, Y as updateDefaultModel, ah as verifyInstallation, G as writeMcpConfig } from './chunks/simple-config.mjs';
|
|
2
2
|
import 'node:fs';
|
|
3
3
|
import 'node:process';
|
|
4
4
|
import 'ansis';
|