zcf 2.12.13 → 3.0.0
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 +90 -3
- package/dist/chunks/codex-config-switch.mjs +419 -0
- package/dist/chunks/codex-uninstaller.mjs +404 -0
- package/dist/chunks/simple-config.mjs +1861 -374
- package/dist/cli.mjs +672 -206
- package/dist/i18n/locales/en/cli.json +1 -0
- package/dist/i18n/locales/en/codex.json +102 -0
- package/dist/i18n/locales/en/common.json +4 -1
- package/dist/i18n/locales/en/configuration.json +10 -4
- package/dist/i18n/locales/en/language.json +8 -2
- package/dist/i18n/locales/en/mcp.json +4 -3
- package/dist/i18n/locales/en/menu.json +20 -0
- package/dist/i18n/locales/en/uninstall.json +0 -4
- package/dist/i18n/locales/zh-CN/cli.json +1 -0
- package/dist/i18n/locales/zh-CN/codex.json +102 -0
- package/dist/i18n/locales/zh-CN/common.json +4 -1
- package/dist/i18n/locales/zh-CN/configuration.json +10 -4
- package/dist/i18n/locales/zh-CN/language.json +8 -2
- package/dist/i18n/locales/zh-CN/mcp.json +4 -3
- package/dist/i18n/locales/zh-CN/menu.json +20 -0
- package/dist/i18n/locales/zh-CN/uninstall.json +0 -4
- package/dist/index.d.mts +11 -3
- package/dist/index.d.ts +11 -3
- package/dist/index.mjs +2 -1
- package/dist/shared/zcf.DGjQxTq_.mjs +34 -0
- package/package.json +11 -10
- package/templates/{common → claude-code/common}/settings.json +2 -1
- package/templates/codex/common/config.toml +0 -0
- package/templates/codex/en/system-prompt/engineer-professional.md +87 -0
- package/templates/codex/en/system-prompt/laowang-engineer.md +126 -0
- package/templates/codex/en/system-prompt/nekomata-engineer.md +119 -0
- package/templates/codex/en/workflow/sixStep/prompts/workflow.md +211 -0
- package/templates/codex/zh-CN/system-prompt/engineer-professional.md +88 -0
- package/templates/codex/zh-CN/system-prompt/laowang-engineer.md +126 -0
- package/templates/codex/zh-CN/system-prompt/nekomata-engineer.md +119 -0
- package/templates/codex/zh-CN/workflow/sixStep/prompts/workflow.md +211 -0
- /package/templates/{CLAUDE.md → claude-code/CLAUDE.md} +0 -0
- /package/templates/{en → claude-code/en}/output-styles/engineer-professional.md +0 -0
- /package/templates/{en → claude-code/en}/output-styles/laowang-engineer.md +0 -0
- /package/templates/{en → claude-code/en}/output-styles/nekomata-engineer.md +0 -0
- /package/templates/{en → claude-code/en}/workflow/bmad/commands/bmad-init.md +0 -0
- /package/templates/{en → claude-code/en}/workflow/common/agents/get-current-datetime.md +0 -0
- /package/templates/{en → claude-code/en}/workflow/common/agents/init-architect.md +0 -0
- /package/templates/{en → claude-code/en}/workflow/common/commands/init-project.md +0 -0
- /package/templates/{en → claude-code/en}/workflow/git/commands/git-cleanBranches.md +0 -0
- /package/templates/{en → claude-code/en}/workflow/git/commands/git-commit.md +0 -0
- /package/templates/{en → claude-code/en}/workflow/git/commands/git-rollback.md +0 -0
- /package/templates/{en → claude-code/en}/workflow/git/commands/git-worktree.md +0 -0
- /package/templates/{en → claude-code/en}/workflow/plan/agents/planner.md +0 -0
- /package/templates/{en → claude-code/en}/workflow/plan/agents/ui-ux-designer.md +0 -0
- /package/templates/{en → claude-code/en}/workflow/plan/commands/feat.md +0 -0
- /package/templates/{en → claude-code/en}/workflow/sixStep/commands/workflow.md +0 -0
- /package/templates/{zh-CN → claude-code/zh-CN}/output-styles/engineer-professional.md +0 -0
- /package/templates/{zh-CN → claude-code/zh-CN}/output-styles/laowang-engineer.md +0 -0
- /package/templates/{zh-CN → claude-code/zh-CN}/output-styles/nekomata-engineer.md +0 -0
- /package/templates/{zh-CN → claude-code/zh-CN}/workflow/bmad/commands/bmad-init.md +0 -0
- /package/templates/{zh-CN → claude-code/zh-CN}/workflow/common/agents/get-current-datetime.md +0 -0
- /package/templates/{zh-CN → claude-code/zh-CN}/workflow/common/agents/init-architect.md +0 -0
- /package/templates/{zh-CN → claude-code/zh-CN}/workflow/common/commands/init-project.md +0 -0
- /package/templates/{zh-CN → claude-code/zh-CN}/workflow/git/commands/git-cleanBranches.md +0 -0
- /package/templates/{zh-CN → claude-code/zh-CN}/workflow/git/commands/git-commit.md +0 -0
- /package/templates/{zh-CN → claude-code/zh-CN}/workflow/git/commands/git-rollback.md +0 -0
- /package/templates/{zh-CN → claude-code/zh-CN}/workflow/git/commands/git-worktree.md +0 -0
- /package/templates/{zh-CN → claude-code/zh-CN}/workflow/plan/agents/planner.md +0 -0
- /package/templates/{zh-CN → claude-code/zh-CN}/workflow/plan/agents/ui-ux-designer.md +0 -0
- /package/templates/{zh-CN → claude-code/zh-CN}/workflow/plan/commands/feat.md +0 -0
- /package/templates/{zh-CN → claude-code/zh-CN}/workflow/sixStep/commands/workflow.md +0 -0
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
"help.optionDescriptions.outputStyles": "Output styles",
|
|
32
32
|
"help.optionDescriptions.defaultOutputStyle": "Default output style",
|
|
33
33
|
"help.optionDescriptions.installStatuslineTool": "Install statusline tool",
|
|
34
|
+
"help.optionDescriptions.codeToolType": "Code tool type",
|
|
34
35
|
"help.exampleDescriptions.showInteractiveMenu": "Show interactive menu",
|
|
35
36
|
"help.exampleDescriptions.runFullInitialization": "Run full initialization",
|
|
36
37
|
"help.exampleDescriptions.updateWorkflowFilesOnly": "Update workflow-related md files only",
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
{
|
|
2
|
+
"installingCli": "🚀 Installing Codex CLI...",
|
|
3
|
+
"installSuccess": "✔ Codex CLI installed",
|
|
4
|
+
"alreadyInstalled": "⚠️ Codex CLI already installed, skipping installation",
|
|
5
|
+
"updatingCli": "🔄 Updating Codex CLI...",
|
|
6
|
+
"updateSuccess": "✔ Codex CLI updated",
|
|
7
|
+
"workflowInstall": "✔ Codex workflow templates installed",
|
|
8
|
+
"backupSuccess": "✔ Backup created at {{path}}",
|
|
9
|
+
"apiModePrompt": "Select API configuration mode",
|
|
10
|
+
"apiModeOfficial": "Use official login (no API configuration)",
|
|
11
|
+
"apiModeCustom": "Custom API configuration",
|
|
12
|
+
"officialConfigured": "✔ Codex API reset to official login mode",
|
|
13
|
+
"providerNamePrompt": "Provider name (letters, numbers, . _ -)",
|
|
14
|
+
"providerNameRequired": "Provider name is required",
|
|
15
|
+
"providerNameInvalid": "Provider name may only contain letters, numbers, dot, underscore or hyphen",
|
|
16
|
+
"providerBaseUrlPrompt": "Base URL",
|
|
17
|
+
"providerBaseUrlRequired": "Base URL is required",
|
|
18
|
+
"providerProtocolPrompt": "Select protocol to use",
|
|
19
|
+
"protocolResponses": "Responses (Recommended, new-generation response API with state management)",
|
|
20
|
+
"protocolChat": "Chat (Traditional chat completion API, requires message history)",
|
|
21
|
+
"providerApiKeyPrompt": "API key value",
|
|
22
|
+
"providerApiKeyRequired": "API key is required",
|
|
23
|
+
"addProviderPrompt": "Add another provider?",
|
|
24
|
+
"selectDefaultProviderPrompt": "Select default provider",
|
|
25
|
+
"noProvidersConfigured": "⚠️ No providers configured, skipping Codex API configuration",
|
|
26
|
+
"apiConfigured": "✔ Codex API configured",
|
|
27
|
+
"noMcpConfigured": "⚠️ No MCP services configured",
|
|
28
|
+
"mcpConfigured": "✔ Codex MCP services configured",
|
|
29
|
+
"uninstallModePrompt": "Select Codex uninstall mode",
|
|
30
|
+
"uninstallModeComplete": "Complete uninstall (remove all Codex related files)",
|
|
31
|
+
"uninstallModeCustom": "Custom uninstall (choose items to remove)",
|
|
32
|
+
"uninstallItemConfig": "Configuration file (config.toml)",
|
|
33
|
+
"uninstallItemAuth": "Authentication file (auth.json)",
|
|
34
|
+
"uninstallItemSystemPrompt": "System prompt file (AGENTS.md)",
|
|
35
|
+
"uninstallItemWorkflow": "Workflow directory (prompts/)",
|
|
36
|
+
"uninstallItemCliPackage": "CLI package (@openai/codex)",
|
|
37
|
+
"uninstallItemApiConfig": "API configuration (only remove API settings from config.toml)",
|
|
38
|
+
"uninstallItemMcpConfig": "MCP configuration (only remove MCP settings from config.toml)",
|
|
39
|
+
"uninstallItemBackups": "Backup directory (backup/)",
|
|
40
|
+
"customUninstallPrompt": "Select items to remove (use spacebar to select/deselect, enter to confirm)",
|
|
41
|
+
"uninstallPrompt": "This will remove Codex configuration created by ZCF. Continue?",
|
|
42
|
+
"uninstallCancelled": "⚠️ Codex uninstall cancelled",
|
|
43
|
+
"uninstallSuccess": "✔ Codex configuration removed",
|
|
44
|
+
"configNotFound": "Configuration file not found",
|
|
45
|
+
"authNotFound": "Authentication file not found",
|
|
46
|
+
"systemPromptNotFound": "System prompt file not found",
|
|
47
|
+
"workflowNotFound": "Workflow directory not found",
|
|
48
|
+
"packageNotFound": "Codex CLI package not installed",
|
|
49
|
+
"backupNotFound": "Backup directory not found",
|
|
50
|
+
"removedItem": "Moved to trash: {{item}}",
|
|
51
|
+
"removedConfig": "Removed configuration: {{config}}",
|
|
52
|
+
"apiConfigRemoved": "API configuration (model_provider and model_providers blocks)",
|
|
53
|
+
"mcpConfigRemoved": "MCP configuration (mcp_servers blocks)",
|
|
54
|
+
"setupComplete": "✔ Codex setup complete",
|
|
55
|
+
"systemPromptPrompt": "Please select system prompt style",
|
|
56
|
+
"workflowSelectionPrompt": "Select workflow types to install (multi-select)",
|
|
57
|
+
"providerDuplicatePrompt": "Provider name '{{name}}' already exists in {{source}}, overwrite it?",
|
|
58
|
+
"existingConfig": "existing configuration",
|
|
59
|
+
"currentSession": "current session",
|
|
60
|
+
"providerDuplicateSkipped": "Skipped duplicate provider configuration",
|
|
61
|
+
"providerSwitchSuccess": "✔ Switched to provider: {{provider}}",
|
|
62
|
+
"providerNotFound": "❌ Provider '{{provider}}' not found",
|
|
63
|
+
"listProvidersTitle": "Available providers:",
|
|
64
|
+
"currentProvider": "Current provider: {{provider}}",
|
|
65
|
+
"noProvidersAvailable": "⚠️ No providers available",
|
|
66
|
+
"configSwitchMode": "Switch API Config",
|
|
67
|
+
"incrementalManagementTitle": "📋 Incremental Configuration Management",
|
|
68
|
+
"currentProviderCount": "Current provider count: {{count}}",
|
|
69
|
+
"currentDefaultProvider": "Current default provider: {{provider}}",
|
|
70
|
+
"selectAction": "Select action",
|
|
71
|
+
"addProvider": "Add provider",
|
|
72
|
+
"editProvider": "Edit provider",
|
|
73
|
+
"deleteProvider": "Delete provider",
|
|
74
|
+
"selectProviderToEdit": "Select provider to edit",
|
|
75
|
+
"selectProvidersToDelete": "Select providers to delete (multiple)",
|
|
76
|
+
"selectAtLeastOne": "Please select at least one provider",
|
|
77
|
+
"cannotDeleteAll": "Cannot delete all providers, at least one must remain",
|
|
78
|
+
"confirmDeleteProviders": "Confirm deletion of the following providers: {{providers}}?",
|
|
79
|
+
"providerAdded": "✔ Successfully added provider: {{name}}",
|
|
80
|
+
"providerAddFailed": "❌ Failed to add provider: {{error}}",
|
|
81
|
+
"providerUpdated": "✔ Successfully updated provider: {{name}}",
|
|
82
|
+
"providerUpdateFailed": "❌ Failed to update provider: {{error}}",
|
|
83
|
+
"providersDeleted": "✔ Successfully deleted {{count}} providers",
|
|
84
|
+
"providersDeleteFailed": "❌ Failed to delete providers: {{error}}",
|
|
85
|
+
"newDefaultProvider": "ℹ️ New default provider: {{provider}}",
|
|
86
|
+
"noExistingProviders": "⚠️ No existing provider configurations",
|
|
87
|
+
"useOfficialLogin": "Use Official Login",
|
|
88
|
+
"apiConfigSwitchPrompt": "Select API configuration to switch to",
|
|
89
|
+
"agentsFileNotFound": "AGENTS.md file not found, please configure system prompt first",
|
|
90
|
+
"checkingVersion": "Checking version...",
|
|
91
|
+
"currentVersion": "Current version: v{version}",
|
|
92
|
+
"latestVersion": "Latest version: v{version}",
|
|
93
|
+
"confirmUpdate": "Update Codex to the latest version?",
|
|
94
|
+
"updateSkipped": "Update skipped",
|
|
95
|
+
"updating": "Updating Codex...",
|
|
96
|
+
"updateFailed": "Codex update failed",
|
|
97
|
+
"autoUpdating": "Auto-updating Codex...",
|
|
98
|
+
"upToDate": "Codex is up to date (v{version})",
|
|
99
|
+
"notInstalled": "Codex is not installed",
|
|
100
|
+
"cannotCheckVersion": "Cannot check latest version",
|
|
101
|
+
"checkFailed": "Version check failed"
|
|
102
|
+
}
|
|
@@ -11,5 +11,8 @@
|
|
|
11
11
|
"invalidChoice": "Invalid choice. Please enter a valid option.",
|
|
12
12
|
"goodbye": "👋 Thanks for using ZCF! Goodbye!",
|
|
13
13
|
"returnToMenu": "Return to main menu?",
|
|
14
|
-
"back": "Back"
|
|
14
|
+
"back": "Back",
|
|
15
|
+
"inputHidden": " (input will be hidden)",
|
|
16
|
+
"operationFailed": "Operation failed",
|
|
17
|
+
"backupCreated": "📁 Configuration backup created: {{path}}"
|
|
15
18
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
|
+
"addedLanguageDirective": "Added language directive",
|
|
2
3
|
"aiLanguageConfigured": "AI output language configured",
|
|
3
4
|
"backupAndOverwrite": "Backup and overwrite all",
|
|
4
5
|
"backupSuccess": "All config files backed up to",
|
|
5
|
-
"cacheCleared": "ZCF cache cleared",
|
|
6
6
|
"cleanupLegacyFiles": "Clean up legacy configuration files?",
|
|
7
7
|
"configSuccess": "Config files copied to",
|
|
8
8
|
"configureAiLanguage": "Configure AI output language",
|
|
9
9
|
"configureOutputStyle": "Configure global AI output style",
|
|
10
|
-
"
|
|
10
|
+
"configureSystemPromptStyle": "Configure global AI system prompt style",
|
|
11
11
|
"customModelConfigured": "Custom model configuration completed",
|
|
12
12
|
"customModelOption": "Custom - Specify custom model names",
|
|
13
13
|
"customModelSkipped": "Custom model configuration skipped",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"existingModelConfig": "Existing model configuration detected",
|
|
24
24
|
"fixWindowsMcp": "Fix Windows MCP configuration?",
|
|
25
25
|
"importRecommendedEnv": "Import ZCF recommended environment variables",
|
|
26
|
-
"importRecommendedEnvDesc": "Privacy protection variables, etc.",
|
|
26
|
+
"importRecommendedEnvDesc": "Privacy protection variables, MCP timeout settings, etc.",
|
|
27
27
|
"importRecommendedPermissions": "Import ZCF recommended permissions",
|
|
28
28
|
"importRecommendedPermissionsDesc": "Almost all permissions, reduce frequent permission requests, dangerous ops limited by rules",
|
|
29
29
|
"keepLanguage": "Keeping existing language configuration",
|
|
@@ -61,5 +61,11 @@
|
|
|
61
61
|
"selectOutputStyles": "Select output styles to install",
|
|
62
62
|
"selectedStyles": "Selected styles",
|
|
63
63
|
"updateDocsOnly": "Update workflow-related md files only with backup",
|
|
64
|
-
"updatingPrompts": "Updating Claude Code memory documents..."
|
|
64
|
+
"updatingPrompts": "Updating Claude Code memory documents...",
|
|
65
|
+
"enterCustomModel": "Enter custom model name",
|
|
66
|
+
"systemPromptConfigured": "System prompt style configured",
|
|
67
|
+
"codexModelOptions.gpt5": "GPT-5 - General powerful model, suitable for complex tasks",
|
|
68
|
+
"codexModelOptions.gpt5Codex": "GPT-5-Codex - Code-optimized model, recommended for programming tasks",
|
|
69
|
+
"codexModelOptions.custom": "Custom - Specify custom model names",
|
|
70
|
+
"windowsMcpConfigFixed": "Windows MCP configuration fixed"
|
|
65
71
|
}
|
|
@@ -7,7 +7,13 @@
|
|
|
7
7
|
"languageChanged": "Language changed",
|
|
8
8
|
"configLangHint.zh-CN": "easier for Chinese users to customize",
|
|
9
9
|
"configLangHint.en": "lower token consumption",
|
|
10
|
-
"updateConfigLangPrompt": "Select configuration language",
|
|
11
10
|
"languageRequired": "Language is required",
|
|
12
|
-
"labels.custom": "Custom"
|
|
11
|
+
"labels.custom": "Custom",
|
|
12
|
+
"currentConfigFound": "Current AI output language configuration",
|
|
13
|
+
"modifyConfigPrompt": "Would you like to modify the AI output language configuration?",
|
|
14
|
+
"currentTemplateLanguageFound": "Current template language configuration",
|
|
15
|
+
"modifyTemplateLanguagePrompt": "Would you like to modify the template language configuration?",
|
|
16
|
+
"usingFallbackTemplate": "Using interface language as template language?",
|
|
17
|
+
"currentSystemPromptFound": "Current system prompt style configuration",
|
|
18
|
+
"modifySystemPromptPrompt": "Would you like to modify the system prompt style configuration?"
|
|
13
19
|
}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
"mcpBackupSuccess": "Original MCP config backed up",
|
|
4
4
|
"mcpConfigSuccess": "MCP services configured",
|
|
5
5
|
"selectMcpServices": "Select MCP services to install",
|
|
6
|
-
"services.
|
|
7
|
-
"services.
|
|
6
|
+
"services.playwright.description": "Direct browser control for automation",
|
|
7
|
+
"services.playwright.name": "Playwright Browser Control",
|
|
8
8
|
"services.context7.description": "Query latest library documentation and code examples",
|
|
9
9
|
"services.context7.name": "Context7 Docs",
|
|
10
10
|
"services.open-websearch.description": "Web search using DuckDuckGo, Bing, and Brave search engines",
|
|
@@ -16,5 +16,6 @@
|
|
|
16
16
|
"services.mcp-deepwiki.name": "DeepWiki",
|
|
17
17
|
"services.spec-workflow.description": "Structured feature development workflow, systematic approach from requirements to implementation",
|
|
18
18
|
"services.spec-workflow.name": "Spec Workflow",
|
|
19
|
-
"apiKeyApprovalFailed": "Failed to manage API key approval status"
|
|
19
|
+
"apiKeyApprovalFailed": "Failed to manage API key approval status",
|
|
20
|
+
"apiKeyPrompt": "Enter API Key"
|
|
20
21
|
}
|
|
@@ -23,9 +23,29 @@
|
|
|
23
23
|
"menuOptions.configureEnvPermission": "Import recommended environment variables and permissions",
|
|
24
24
|
"menuOptions.configureMcp": "Configure MCP",
|
|
25
25
|
"menuOptions.configureModel": "Configure default model",
|
|
26
|
+
"menuOptions.switchCodeTool": "Switch code tool",
|
|
26
27
|
"menuOptions.exit": "Exit",
|
|
27
28
|
"menuOptions.fullInit": "Full initialization",
|
|
28
29
|
"menuOptions.importWorkflow": "Import workflow",
|
|
30
|
+
"menuOptions.codexFullInit": "Full initialization",
|
|
31
|
+
"menuOptions.codexImportWorkflow": "Import workflow",
|
|
32
|
+
"menuOptions.codexConfigureApi": "Configure API",
|
|
33
|
+
"menuOptions.codexConfigureMcp": "Configure MCP",
|
|
34
|
+
"menuOptions.codexConfigureModel": "Configure default model",
|
|
35
|
+
"menuOptions.codexConfigureAiMemory": "Configure Codex global memory",
|
|
36
|
+
"menuOptions.codexUninstall": "Uninstall Codex",
|
|
37
|
+
"menuOptions.codexCheckUpdates": "Check Codex updates",
|
|
29
38
|
"menuSections.otherTools": "Other Tools",
|
|
39
|
+
"menuDescriptions.switchCodeTool": "Switch between supported code tools (Claude Code, Codex)",
|
|
40
|
+
"menuDescriptions.codexFullInit": "Install Codex + Import workflow + Configure API + Configure MCP",
|
|
41
|
+
"menuDescriptions.codexImportWorkflow": "Import/update Codex workflow-related files",
|
|
42
|
+
"menuDescriptions.codexConfigureApi": "Configure Codex API providers",
|
|
43
|
+
"menuDescriptions.codexConfigureMcp": "Configure Codex MCP services",
|
|
44
|
+
"menuDescriptions.codexConfigureModel": "Set default model (gpt-5/gpt-5-codex/custom)",
|
|
45
|
+
"menuDescriptions.codexConfigureAiMemory": "Configure AI output language and system prompt style",
|
|
46
|
+
"menuDescriptions.codexUninstall": "Remove Codex configuration and files",
|
|
47
|
+
"menuDescriptions.codexCheckUpdates": "Check and update Codex",
|
|
48
|
+
"switchCodeToolPrompt": "Select code tool type",
|
|
49
|
+
"codeToolSwitched": "Code tool switched to {{tool}}",
|
|
30
50
|
"selectFunction": "Select function"
|
|
31
51
|
}
|
|
@@ -17,7 +17,6 @@
|
|
|
17
17
|
"processingComplete": "🔄 Processing complete uninstall...",
|
|
18
18
|
"processingCustom": "🔄 Processing custom uninstall...",
|
|
19
19
|
"selectedItems": "Selected items:",
|
|
20
|
-
"removed": "Moved to trash/recycle bin",
|
|
21
20
|
"movedToTrash": "Moved to trash/recycle bin",
|
|
22
21
|
"removedConfigs": "Configuration removed",
|
|
23
22
|
"errors": "Errors occurred",
|
|
@@ -43,13 +42,10 @@
|
|
|
43
42
|
"backups": "Backups - Remove backup files",
|
|
44
43
|
"zcfConfig": "ZCF Config - Remove ZCF preference configurations",
|
|
45
44
|
|
|
46
|
-
"outputStyleNotFound": "Output style field not found in settings.json",
|
|
47
45
|
"settingsJsonNotFound": "settings.json not found",
|
|
48
46
|
"commandsNotFound": "Commands directory not found",
|
|
49
47
|
"agentsNotFound": "Agents directory not found",
|
|
50
48
|
"claudeMdNotFound": "CLAUDE.md file not found",
|
|
51
|
-
"noPermissionsOrEnvFound": "No permissions or environment variables found",
|
|
52
|
-
"mcpServersNotFound": "MCP servers configuration not found",
|
|
53
49
|
"claudeJsonNotFound": ".claude.json file not found",
|
|
54
50
|
"ccrPackageNotFound": "Claude Code Router package not found",
|
|
55
51
|
"cclinePackageNotFound": "CCometixLine package not found",
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
"help.optionDescriptions.outputStyles": "输出样式",
|
|
32
32
|
"help.optionDescriptions.defaultOutputStyle": "默认输出样式",
|
|
33
33
|
"help.optionDescriptions.installStatuslineTool": "安装状态栏工具",
|
|
34
|
+
"help.optionDescriptions.codeToolType": "代码工具类型",
|
|
34
35
|
"help.exampleDescriptions.showInteractiveMenu": "显示交互式菜单",
|
|
35
36
|
"help.exampleDescriptions.runFullInitialization": "运行完整初始化",
|
|
36
37
|
"help.exampleDescriptions.updateWorkflowFilesOnly": "仅更新工作流相关md文件",
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
{
|
|
2
|
+
"installingCli": "🚀 正在安装 Codex CLI...",
|
|
3
|
+
"installSuccess": "✔ Codex CLI 安装完成",
|
|
4
|
+
"alreadyInstalled": "⚠️ Codex CLI 已安装,跳过安装步骤",
|
|
5
|
+
"updatingCli": "🔄 正在更新 Codex CLI...",
|
|
6
|
+
"updateSuccess": "✔ Codex CLI 更新完成",
|
|
7
|
+
"workflowInstall": "✔ 已安装 Codex 工作流模板",
|
|
8
|
+
"backupSuccess": "✔ 已创建备份 {{path}}",
|
|
9
|
+
"apiModePrompt": "请选择 API 配置模式",
|
|
10
|
+
"apiModeOfficial": "使用官方登录(不配置 API)",
|
|
11
|
+
"apiModeCustom": "自定义 API 配置",
|
|
12
|
+
"officialConfigured": "✔ 已切换为官方登录模式",
|
|
13
|
+
"providerNamePrompt": "提供商名称(仅限字母、数字、._-)",
|
|
14
|
+
"providerNameRequired": "必须填写提供商名称",
|
|
15
|
+
"providerNameInvalid": "名称只能包含字母、数字、点、下划线或短横线",
|
|
16
|
+
"providerBaseUrlPrompt": "基础 URL",
|
|
17
|
+
"providerBaseUrlRequired": "必须填写基础 URL",
|
|
18
|
+
"providerProtocolPrompt": "选择使用的协议",
|
|
19
|
+
"protocolResponses": "Responses(推荐,新一代响应 API,支持状态管理)",
|
|
20
|
+
"protocolChat": "Chat(传统聊天补全 API,需要消息历史记录)",
|
|
21
|
+
"providerApiKeyPrompt": "API Key 内容",
|
|
22
|
+
"providerApiKeyRequired": "必须填写 API Key",
|
|
23
|
+
"addProviderPrompt": "是否继续添加其他提供商?",
|
|
24
|
+
"selectDefaultProviderPrompt": "选择默认提供商",
|
|
25
|
+
"noProvidersConfigured": "⚠️ 未配置任何提供商,已跳过 Codex API 配置",
|
|
26
|
+
"apiConfigured": "✔ Codex API 配置完成",
|
|
27
|
+
"noMcpConfigured": "⚠️ 未配置任何 MCP 服务",
|
|
28
|
+
"mcpConfigured": "✔ Codex MCP 服务配置完成",
|
|
29
|
+
"uninstallModePrompt": "请选择 Codex 卸载模式",
|
|
30
|
+
"uninstallModeComplete": "完整卸载(删除所有 Codex 相关文件)",
|
|
31
|
+
"uninstallModeCustom": "自定义卸载(选择删除项目)",
|
|
32
|
+
"uninstallItemConfig": "配置文件 (config.toml)",
|
|
33
|
+
"uninstallItemAuth": "认证文件 (auth.json)",
|
|
34
|
+
"uninstallItemSystemPrompt": "系统提示文件 (AGENTS.md)",
|
|
35
|
+
"uninstallItemWorkflow": "工作流目录 (prompts/)",
|
|
36
|
+
"uninstallItemCliPackage": "CLI 包 (@openai/codex)",
|
|
37
|
+
"uninstallItemApiConfig": "API 配置 (仅删除 config.toml 中的 API 设置)",
|
|
38
|
+
"uninstallItemMcpConfig": "MCP 配置 (仅删除 config.toml 中的 MCP 设置)",
|
|
39
|
+
"uninstallItemBackups": "备份目录 (backup/)",
|
|
40
|
+
"customUninstallPrompt": "选择要删除的项目(使用空格选中/取消选中,回车确认)",
|
|
41
|
+
"uninstallPrompt": "即将移除 ZCF 创建的 Codex 配置,是否继续?",
|
|
42
|
+
"uninstallCancelled": "⚠️ 已取消 Codex 卸载",
|
|
43
|
+
"uninstallSuccess": "✔ 已删除 Codex 配置",
|
|
44
|
+
"configNotFound": "配置文件不存在",
|
|
45
|
+
"authNotFound": "认证文件不存在",
|
|
46
|
+
"systemPromptNotFound": "系统提示文件不存在",
|
|
47
|
+
"workflowNotFound": "工作流目录不存在",
|
|
48
|
+
"packageNotFound": "Codex CLI 包未安装",
|
|
49
|
+
"backupNotFound": "备份目录不存在",
|
|
50
|
+
"removedItem": "已移至废纸篓:{{item}}",
|
|
51
|
+
"removedConfig": "已删除配置:{{config}}",
|
|
52
|
+
"apiConfigRemoved": "API 配置(model_provider 和 model_providers 配置块)",
|
|
53
|
+
"mcpConfigRemoved": "MCP 配置(mcp_servers 配置块)",
|
|
54
|
+
"setupComplete": "✔ Codex 设置完成",
|
|
55
|
+
"systemPromptPrompt": "请选择系统提示词风格",
|
|
56
|
+
"workflowSelectionPrompt": "选择要安装的工作流类型(多选)",
|
|
57
|
+
"providerDuplicatePrompt": "提供商名称 '{{name}}' 已存在于{{source}}中,是否覆盖?",
|
|
58
|
+
"existingConfig": "现有配置",
|
|
59
|
+
"currentSession": "当前会话",
|
|
60
|
+
"providerDuplicateSkipped": "已跳过重复的提供商配置",
|
|
61
|
+
"providerSwitchSuccess": "✔ 已切换到提供商:{{provider}}",
|
|
62
|
+
"providerNotFound": "❌ 提供商 '{{provider}}' 不存在",
|
|
63
|
+
"listProvidersTitle": "可用的提供商列表:",
|
|
64
|
+
"currentProvider": "当前提供商:{{provider}}",
|
|
65
|
+
"noProvidersAvailable": "⚠️ 没有可用的提供商",
|
|
66
|
+
"configSwitchMode": "切换API配置",
|
|
67
|
+
"incrementalManagementTitle": "📋 增量配置管理",
|
|
68
|
+
"currentProviderCount": "当前配置供应商数量:{{count}}",
|
|
69
|
+
"currentDefaultProvider": "当前默认供应商:{{provider}}",
|
|
70
|
+
"selectAction": "请选择操作",
|
|
71
|
+
"addProvider": "添加供应商",
|
|
72
|
+
"editProvider": "编辑供应商",
|
|
73
|
+
"deleteProvider": "删除供应商",
|
|
74
|
+
"selectProviderToEdit": "选择要编辑的供应商",
|
|
75
|
+
"selectProvidersToDelete": "选择要删除的供应商(多选)",
|
|
76
|
+
"selectAtLeastOne": "请至少选择一个供应商",
|
|
77
|
+
"cannotDeleteAll": "不能删除所有供应商,至少需要保留一个",
|
|
78
|
+
"confirmDeleteProviders": "确认删除以下供应商:{{providers}}?",
|
|
79
|
+
"providerAdded": "✔ 已成功添加供应商:{{name}}",
|
|
80
|
+
"providerAddFailed": "❌ 添加供应商失败:{{error}}",
|
|
81
|
+
"providerUpdated": "✔ 已成功更新供应商:{{name}}",
|
|
82
|
+
"providerUpdateFailed": "❌ 更新供应商失败:{{error}}",
|
|
83
|
+
"providersDeleted": "✔ 已成功删除 {{count}} 个供应商",
|
|
84
|
+
"providersDeleteFailed": "❌ 删除供应商失败:{{error}}",
|
|
85
|
+
"newDefaultProvider": "ℹ️ 新的默认供应商:{{provider}}",
|
|
86
|
+
"noExistingProviders": "⚠️ 没有现有的供应商配置",
|
|
87
|
+
"useOfficialLogin": "使用官方登录",
|
|
88
|
+
"apiConfigSwitchPrompt": "选择要切换的API配置",
|
|
89
|
+
"agentsFileNotFound": "AGENTS.md 文件未找到,请先配置系统提示词",
|
|
90
|
+
"checkingVersion": "检查版本中...",
|
|
91
|
+
"currentVersion": "当前版本: v{version}",
|
|
92
|
+
"latestVersion": "最新版本: v{version}",
|
|
93
|
+
"confirmUpdate": "将 Codex 更新到最新版本?",
|
|
94
|
+
"updateSkipped": "跳过更新",
|
|
95
|
+
"updating": "正在更新 Codex...",
|
|
96
|
+
"updateFailed": "Codex 更新失败",
|
|
97
|
+
"autoUpdating": "正在自动更新 Codex...",
|
|
98
|
+
"upToDate": "Codex 已是最新版本 (v{version})",
|
|
99
|
+
"notInstalled": "Codex 未安装",
|
|
100
|
+
"cannotCheckVersion": "无法检查最新版本",
|
|
101
|
+
"checkFailed": "版本检查失败"
|
|
102
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
|
+
"addedLanguageDirective": "已添加语言指令",
|
|
2
3
|
"aiLanguageConfigured": "AI 输出语言已配置",
|
|
3
4
|
"backupAndOverwrite": "备份并覆盖全部",
|
|
4
5
|
"backupSuccess": "已备份所有配置文件到",
|
|
5
|
-
"cacheCleared": "ZCF 缓存已清除",
|
|
6
6
|
"cleanupLegacyFiles": "是否清理旧版配置文件?",
|
|
7
7
|
"configSuccess": "配置文件已复制到",
|
|
8
8
|
"configureAiLanguage": "配置 AI 输出语言",
|
|
9
9
|
"configureOutputStyle": "配置全局 AI 输出风格",
|
|
10
|
-
"
|
|
10
|
+
"configureSystemPromptStyle": "配置全局 AI 系统提示词风格",
|
|
11
11
|
"customModelConfigured": "自定义模型配置完成",
|
|
12
12
|
"customModelOption": "自定义 - 指定自定义模型名称",
|
|
13
13
|
"customModelSkipped": "已跳过自定义模型配置",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"existingModelConfig": "检测到已有模型配置",
|
|
24
24
|
"fixWindowsMcp": "修复 Windows MCP 配置?",
|
|
25
25
|
"importRecommendedEnv": "导入 ZCF 推荐环境变量",
|
|
26
|
-
"importRecommendedEnvDesc": "
|
|
26
|
+
"importRecommendedEnvDesc": "隐私保护变量、MCP 超时设置等",
|
|
27
27
|
"importRecommendedPermissions": "导入 ZCF 推荐权限配置",
|
|
28
28
|
"importRecommendedPermissionsDesc": "几乎全部权限,减少频繁请求权限,危险操作由规则限制",
|
|
29
29
|
"keepLanguage": "保持当前语言配置",
|
|
@@ -61,5 +61,11 @@
|
|
|
61
61
|
"selectOutputStyles": "选择要安装的输出风格",
|
|
62
62
|
"selectedStyles": "已选择风格",
|
|
63
63
|
"updateDocsOnly": "仅更新工作流相关md并备份旧配置",
|
|
64
|
-
"updatingPrompts": "正在更新 Claude Code 记忆文档..."
|
|
64
|
+
"updatingPrompts": "正在更新 Claude Code 记忆文档...",
|
|
65
|
+
"enterCustomModel": "请输入自定义模型名称",
|
|
66
|
+
"systemPromptConfigured": "系统提示词风格已配置",
|
|
67
|
+
"codexModelOptions.gpt5": "GPT-5 - 通用强力模型,适合复杂任务",
|
|
68
|
+
"codexModelOptions.gpt5Codex": "GPT-5-Codex - 专为代码优化的模型,推荐用于编程任务",
|
|
69
|
+
"codexModelOptions.custom": "自定义 - 指定自定义模型名称",
|
|
70
|
+
"windowsMcpConfigFixed": "Windows MCP 配置已修复"
|
|
65
71
|
}
|
|
@@ -7,7 +7,13 @@
|
|
|
7
7
|
"languageChanged": "语言已更改",
|
|
8
8
|
"configLangHint.zh-CN": "便于中文用户自定义",
|
|
9
9
|
"configLangHint.en": "token 消耗更低",
|
|
10
|
-
"updateConfigLangPrompt": "选择配置语言",
|
|
11
10
|
"languageRequired": "语言为必填项",
|
|
12
|
-
"labels.custom": "自定义"
|
|
11
|
+
"labels.custom": "自定义",
|
|
12
|
+
"currentConfigFound": "当前AI输出语言配置",
|
|
13
|
+
"modifyConfigPrompt": "是否修改AI输出语言配置?",
|
|
14
|
+
"currentTemplateLanguageFound": "当前模板语言配置",
|
|
15
|
+
"modifyTemplateLanguagePrompt": "是否修改模板语言配置?",
|
|
16
|
+
"usingFallbackTemplate": "使用界面语言作为模板语言?",
|
|
17
|
+
"currentSystemPromptFound": "当前系统提示样式配置",
|
|
18
|
+
"modifySystemPromptPrompt": "是否修改系统提示样式配置?"
|
|
13
19
|
}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
"mcpBackupSuccess": "已备份原有 MCP 配置",
|
|
4
4
|
"mcpConfigSuccess": "MCP 服务已配置",
|
|
5
5
|
"selectMcpServices": "选择要安装的 MCP 服务",
|
|
6
|
-
"services.
|
|
7
|
-
"services.
|
|
6
|
+
"services.playwright.description": "直接控制浏览器进行自动化操作",
|
|
7
|
+
"services.playwright.name": "Playwright 浏览器控制",
|
|
8
8
|
"services.context7.description": "查询最新的库文档和代码示例",
|
|
9
9
|
"services.context7.name": "Context7 文档查询",
|
|
10
10
|
"services.open-websearch.description": "使用 DuckDuckGo、Bing 和 Brave 搜索引擎进行网页搜索",
|
|
@@ -16,5 +16,6 @@
|
|
|
16
16
|
"services.mcp-deepwiki.name": "DeepWiki",
|
|
17
17
|
"services.spec-workflow.description": "规范化特性开发工作流程,从需求到实现的系统化方法",
|
|
18
18
|
"services.spec-workflow.name": "Spec 工作流",
|
|
19
|
-
"apiKeyApprovalFailed": "API密钥批准状态管理失败"
|
|
19
|
+
"apiKeyApprovalFailed": "API密钥批准状态管理失败",
|
|
20
|
+
"apiKeyPrompt": "请输入 API Key"
|
|
20
21
|
}
|
|
@@ -23,9 +23,29 @@
|
|
|
23
23
|
"menuOptions.configureEnvPermission": "导入推荐环境变量和权限配置",
|
|
24
24
|
"menuOptions.configureMcp": "配置 MCP",
|
|
25
25
|
"menuOptions.configureModel": "配置默认模型",
|
|
26
|
+
"menuOptions.switchCodeTool": "切换代码工具",
|
|
26
27
|
"menuOptions.exit": "退出",
|
|
27
28
|
"menuOptions.fullInit": "完整初始化",
|
|
28
29
|
"menuOptions.importWorkflow": "导入工作流",
|
|
30
|
+
"menuOptions.codexFullInit": "完整初始化",
|
|
31
|
+
"menuOptions.codexImportWorkflow": "导入工作流",
|
|
32
|
+
"menuOptions.codexConfigureApi": "配置 API",
|
|
33
|
+
"menuOptions.codexConfigureMcp": "配置 MCP",
|
|
34
|
+
"menuOptions.codexConfigureModel": "配置默认模型",
|
|
35
|
+
"menuOptions.codexConfigureAiMemory": "配置 Codex 全局记忆",
|
|
36
|
+
"menuOptions.codexUninstall": "卸载 Codex",
|
|
37
|
+
"menuOptions.codexCheckUpdates": "检查 Codex 更新",
|
|
29
38
|
"menuSections.otherTools": "其他工具",
|
|
39
|
+
"menuDescriptions.switchCodeTool": "在支持的代码工具之间切换 (Claude Code, Codex)",
|
|
40
|
+
"menuDescriptions.codexFullInit": "安装 Codex + 导入工作流 + 配置 API + 配置 MCP 服务",
|
|
41
|
+
"menuDescriptions.codexImportWorkflow": "仅导入/更新 Codex 工作流相关文件",
|
|
42
|
+
"menuDescriptions.codexConfigureApi": "配置 Codex 的 API 提供商",
|
|
43
|
+
"menuDescriptions.codexConfigureMcp": "配置 Codex 的 MCP 服务",
|
|
44
|
+
"menuDescriptions.codexConfigureModel": "设置默认模型(gpt-5/gpt-5-codex/自定义)",
|
|
45
|
+
"menuDescriptions.codexConfigureAiMemory": "配置 AI 输出语言和系统提示词风格",
|
|
46
|
+
"menuDescriptions.codexUninstall": "删除 Codex 配置和相关文件",
|
|
47
|
+
"menuDescriptions.codexCheckUpdates": "检查并更新 Codex",
|
|
48
|
+
"switchCodeToolPrompt": "请选择代码工具类型",
|
|
49
|
+
"codeToolSwitched": "已切换为 {{tool}}",
|
|
30
50
|
"selectFunction": "请选择功能"
|
|
31
51
|
}
|
|
@@ -17,7 +17,6 @@
|
|
|
17
17
|
"processingComplete": "🔄 正在处理完全卸载...",
|
|
18
18
|
"processingCustom": "🔄 正在处理自定义卸载...",
|
|
19
19
|
"selectedItems": "选定项目:",
|
|
20
|
-
"removed": "已移至废纸篓/回收站",
|
|
21
20
|
"movedToTrash": "已移至废纸篓/回收站",
|
|
22
21
|
"removedConfigs": "已删除配置项",
|
|
23
22
|
"errors": "发生错误",
|
|
@@ -43,13 +42,10 @@
|
|
|
43
42
|
"backups": "备份文件 - 删除备份文件",
|
|
44
43
|
"zcfConfig": "ZCF 配置 - 删除 ZCF 偏好设置配置",
|
|
45
44
|
|
|
46
|
-
"outputStyleNotFound": "在 settings.json 中未找到输出风格字段",
|
|
47
45
|
"settingsJsonNotFound": "未找到 settings.json 文件",
|
|
48
46
|
"commandsNotFound": "未找到指令目录",
|
|
49
47
|
"agentsNotFound": "未找到代理目录",
|
|
50
48
|
"claudeMdNotFound": "未找到 CLAUDE.md 文件",
|
|
51
|
-
"noPermissionsOrEnvFound": "未找到权限或环境变量配置",
|
|
52
|
-
"mcpServersNotFound": "未找到 MCP 服务器配置",
|
|
53
49
|
"claudeJsonNotFound": "未找到 .claude.json 文件",
|
|
54
50
|
"ccrPackageNotFound": "未找到 Claude Code Router 包",
|
|
55
51
|
"cclinePackageNotFound": "未找到 CCometixLine 包",
|
package/dist/index.d.mts
CHANGED
|
@@ -2,8 +2,13 @@ declare const CLAUDE_DIR: string;
|
|
|
2
2
|
declare const SETTINGS_FILE: string;
|
|
3
3
|
declare const CLAUDE_MD_FILE: string;
|
|
4
4
|
declare const ClAUDE_CONFIG_FILE: string;
|
|
5
|
-
declare const
|
|
5
|
+
declare const ZCF_CONFIG_DIR: string;
|
|
6
6
|
declare const ZCF_CONFIG_FILE: string;
|
|
7
|
+
declare const LEGACY_ZCF_CONFIG_FILES: string[];
|
|
8
|
+
declare const CODE_TOOL_TYPES: readonly ["claude-code", "codex"];
|
|
9
|
+
type CodeToolType = (typeof CODE_TOOL_TYPES)[number];
|
|
10
|
+
declare const DEFAULT_CODE_TOOL_TYPE: CodeToolType;
|
|
11
|
+
declare function isCodeToolType(value: any): value is CodeToolType;
|
|
7
12
|
declare const SUPPORTED_LANGS: readonly ["zh-CN", "en"];
|
|
8
13
|
type SupportedLang = (typeof SUPPORTED_LANGS)[number];
|
|
9
14
|
declare const LANG_LABELS: {
|
|
@@ -30,6 +35,7 @@ interface InitOptions {
|
|
|
30
35
|
force?: boolean;
|
|
31
36
|
skipBanner?: boolean;
|
|
32
37
|
skipPrompt?: boolean;
|
|
38
|
+
codeType?: CodeToolType;
|
|
33
39
|
configAction?: 'new' | 'backup' | 'merge' | 'docs-only' | 'skip';
|
|
34
40
|
apiType?: 'auth_token' | 'api_key' | 'ccr_proxy' | 'skip';
|
|
35
41
|
apiKey?: string;
|
|
@@ -59,6 +65,7 @@ interface McpServerConfig {
|
|
|
59
65
|
args?: string[];
|
|
60
66
|
url?: string;
|
|
61
67
|
env?: Record<string, string>;
|
|
68
|
+
startup_timeout_ms?: number;
|
|
62
69
|
}
|
|
63
70
|
interface ClaudeConfiguration {
|
|
64
71
|
mcpServers: Record<string, McpServerConfig>;
|
|
@@ -67,6 +74,7 @@ interface ClaudeConfiguration {
|
|
|
67
74
|
approved: string[];
|
|
68
75
|
rejected: string[];
|
|
69
76
|
};
|
|
77
|
+
env?: Record<string, string>;
|
|
70
78
|
}
|
|
71
79
|
|
|
72
80
|
declare function getMcpConfigPath(): string;
|
|
@@ -185,5 +193,5 @@ declare function importRecommendedEnv(): Promise<void>;
|
|
|
185
193
|
declare function importRecommendedPermissions(): Promise<void>;
|
|
186
194
|
declare function openSettingsJson(): Promise<void>;
|
|
187
195
|
|
|
188
|
-
export { AI_OUTPUT_LANGUAGES, CLAUDE_DIR, CLAUDE_MD_FILE, ClAUDE_CONFIG_FILE, LANG_LABELS,
|
|
189
|
-
export type { AiOutputLanguage, ApiConfig, ClaudeConfiguration, InstallationStatus, McpServerConfig, McpService, SupportedLang };
|
|
196
|
+
export { AI_OUTPUT_LANGUAGES, CLAUDE_DIR, CLAUDE_MD_FILE, 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, ensureApiKeyApproved, ensureClaudeDir, fixWindowsMcpConfig, getAiOutputLanguageLabel, getExistingApiConfig, getExistingModelConfig, getInstallationStatus, getMcpConfigPath, getPlatform, importRecommendedEnv, importRecommendedPermissions, init, installClaudeCode, isClaudeCodeInstalled, isCodeToolType, isLocalClaudeCodeInstalled, manageApiKeyApproval, mergeAndCleanPermissions, mergeConfigs, mergeMcpServers, mergeSettingsFile, openSettingsJson, readMcpConfig, removeApiKeyFromRejected, removeLocalClaudeCode, updateCustomModel, updateDefaultModel, writeMcpConfig };
|
|
197
|
+
export type { AiOutputLanguage, ApiConfig, ClaudeConfiguration, CodeToolType, InstallationStatus, McpServerConfig, McpService, SupportedLang };
|
package/dist/index.d.ts
CHANGED
|
@@ -2,8 +2,13 @@ declare const CLAUDE_DIR: string;
|
|
|
2
2
|
declare const SETTINGS_FILE: string;
|
|
3
3
|
declare const CLAUDE_MD_FILE: string;
|
|
4
4
|
declare const ClAUDE_CONFIG_FILE: string;
|
|
5
|
-
declare const
|
|
5
|
+
declare const ZCF_CONFIG_DIR: string;
|
|
6
6
|
declare const ZCF_CONFIG_FILE: string;
|
|
7
|
+
declare const LEGACY_ZCF_CONFIG_FILES: string[];
|
|
8
|
+
declare const CODE_TOOL_TYPES: readonly ["claude-code", "codex"];
|
|
9
|
+
type CodeToolType = (typeof CODE_TOOL_TYPES)[number];
|
|
10
|
+
declare const DEFAULT_CODE_TOOL_TYPE: CodeToolType;
|
|
11
|
+
declare function isCodeToolType(value: any): value is CodeToolType;
|
|
7
12
|
declare const SUPPORTED_LANGS: readonly ["zh-CN", "en"];
|
|
8
13
|
type SupportedLang = (typeof SUPPORTED_LANGS)[number];
|
|
9
14
|
declare const LANG_LABELS: {
|
|
@@ -30,6 +35,7 @@ interface InitOptions {
|
|
|
30
35
|
force?: boolean;
|
|
31
36
|
skipBanner?: boolean;
|
|
32
37
|
skipPrompt?: boolean;
|
|
38
|
+
codeType?: CodeToolType;
|
|
33
39
|
configAction?: 'new' | 'backup' | 'merge' | 'docs-only' | 'skip';
|
|
34
40
|
apiType?: 'auth_token' | 'api_key' | 'ccr_proxy' | 'skip';
|
|
35
41
|
apiKey?: string;
|
|
@@ -59,6 +65,7 @@ interface McpServerConfig {
|
|
|
59
65
|
args?: string[];
|
|
60
66
|
url?: string;
|
|
61
67
|
env?: Record<string, string>;
|
|
68
|
+
startup_timeout_ms?: number;
|
|
62
69
|
}
|
|
63
70
|
interface ClaudeConfiguration {
|
|
64
71
|
mcpServers: Record<string, McpServerConfig>;
|
|
@@ -67,6 +74,7 @@ interface ClaudeConfiguration {
|
|
|
67
74
|
approved: string[];
|
|
68
75
|
rejected: string[];
|
|
69
76
|
};
|
|
77
|
+
env?: Record<string, string>;
|
|
70
78
|
}
|
|
71
79
|
|
|
72
80
|
declare function getMcpConfigPath(): string;
|
|
@@ -185,5 +193,5 @@ declare function importRecommendedEnv(): Promise<void>;
|
|
|
185
193
|
declare function importRecommendedPermissions(): Promise<void>;
|
|
186
194
|
declare function openSettingsJson(): Promise<void>;
|
|
187
195
|
|
|
188
|
-
export { AI_OUTPUT_LANGUAGES, CLAUDE_DIR, CLAUDE_MD_FILE, ClAUDE_CONFIG_FILE, LANG_LABELS,
|
|
189
|
-
export type { AiOutputLanguage, ApiConfig, ClaudeConfiguration, InstallationStatus, McpServerConfig, McpService, SupportedLang };
|
|
196
|
+
export { AI_OUTPUT_LANGUAGES, CLAUDE_DIR, CLAUDE_MD_FILE, 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, ensureApiKeyApproved, ensureClaudeDir, fixWindowsMcpConfig, getAiOutputLanguageLabel, getExistingApiConfig, getExistingModelConfig, getInstallationStatus, getMcpConfigPath, getPlatform, importRecommendedEnv, importRecommendedPermissions, init, installClaudeCode, isClaudeCodeInstalled, isCodeToolType, isLocalClaudeCodeInstalled, manageApiKeyApproval, mergeAndCleanPermissions, mergeConfigs, mergeMcpServers, mergeSettingsFile, openSettingsJson, readMcpConfig, removeApiKeyFromRejected, removeLocalClaudeCode, updateCustomModel, updateDefaultModel, writeMcpConfig };
|
|
197
|
+
export type { AiOutputLanguage, ApiConfig, ClaudeConfiguration, CodeToolType, InstallationStatus, McpServerConfig, McpService, SupportedLang };
|
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,
|
|
1
|
+
export { A as AI_OUTPUT_LANGUAGES, C as CLAUDE_DIR, e as CLAUDE_MD_FILE, j as CODE_TOOL_TYPES, f as ClAUDE_CONFIG_FILE, D as DEFAULT_CODE_TOOL_TYPE, n as LANG_LABELS, L as LEGACY_ZCF_CONFIG_FILES, S as SETTINGS_FILE, l as SUPPORTED_LANGS, Z as ZCF_CONFIG_DIR, h as ZCF_CONFIG_FILE, x as addCompletedOnboarding, P as applyAiLanguageDirective, F as backupExistingConfig, s as backupMcpConfig, u as buildMcpServerConfig, c as cleanupPermissions, a as commandExists, H as configureApi, G as copyConfigFiles, y as ensureApiKeyApproved, E as ensureClaudeDir, v as fixWindowsMcpConfig, p as getAiOutputLanguageLabel, O as getExistingApiConfig, N as getExistingModelConfig, U as getInstallationStatus, q as getMcpConfigPath, g as getPlatform, b as importRecommendedEnv, d as importRecommendedPermissions, i as init, R as installClaudeCode, Q as isClaudeCodeInstalled, k as isCodeToolType, T as isLocalClaudeCodeInstalled, B as manageApiKeyApproval, m as mergeAndCleanPermissions, I as mergeConfigs, t as mergeMcpServers, M as mergeSettingsFile, o as openSettingsJson, r as readMcpConfig, z as removeApiKeyFromRejected, V as removeLocalClaudeCode, J as updateCustomModel, K as updateDefaultModel, w as writeMcpConfig } from './chunks/simple-config.mjs';
|
|
2
2
|
import 'node:fs';
|
|
3
3
|
import 'node:process';
|
|
4
4
|
import 'ansis';
|
|
@@ -11,6 +11,7 @@ import 'pathe';
|
|
|
11
11
|
import 'node:url';
|
|
12
12
|
import 'ora';
|
|
13
13
|
import 'semver';
|
|
14
|
+
import 'smol-toml';
|
|
14
15
|
import 'tinyexec';
|
|
15
16
|
import 'node:fs/promises';
|
|
16
17
|
import 'i18next';
|