zcf 2.5.2 → 2.6.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/README.md +47 -10
- package/dist/cli.mjs +13 -8
- package/dist/index.d.mts +222 -345
- package/dist/index.d.ts +222 -345
- package/dist/index.mjs +2 -1
- package/dist/shared/{zcf.CEsHvLRM.mjs → zcf.BjaE63-h.mjs} +833 -401
- package/package.json +1 -1
- package/templates/en/workflow/bmad/commands/bmad-init.md +103 -0
- package/templates/en/{commands → workflow/sixStep/commands}/workflow.md +1 -1
- package/templates/zh-CN/workflow/bmad/commands/bmad-init.md +109 -0
- package/templates/zh-CN/{commands → workflow/sixStep/commands}/workflow.md +1 -1
- /package/templates/en/{mcp.md → memory/mcp.md} +0 -0
- /package/templates/en/{personality.md → memory/personality.md} +0 -0
- /package/templates/en/{rules.md → memory/rules.md} +0 -0
- /package/templates/en/{technical-guides.md → memory/technical-guides.md} +0 -0
- /package/templates/en/{agents → workflow/plan/agents}/planner.md +0 -0
- /package/templates/en/{agents → workflow/plan/agents}/ui-ux-designer.md +0 -0
- /package/templates/en/{commands → workflow/plan/commands}/feat.md +0 -0
- /package/templates/zh-CN/{mcp.md → memory/mcp.md} +0 -0
- /package/templates/zh-CN/{personality.md → memory/personality.md} +0 -0
- /package/templates/zh-CN/{rules.md → memory/rules.md} +0 -0
- /package/templates/zh-CN/{technical-guides.md → memory/technical-guides.md} +0 -0
- /package/templates/zh-CN/{agents → workflow/plan/agents}/planner.md +0 -0
- /package/templates/zh-CN/{agents → workflow/plan/agents}/ui-ux-designer.md +0 -0
- /package/templates/zh-CN/{commands → workflow/plan/commands}/feat.md +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,222 @@
|
|
|
1
|
+
type SupportedLang$1 = 'zh-CN' | 'en';
|
|
2
|
+
interface TranslationKeys {
|
|
3
|
+
multiSelectHint: string;
|
|
4
|
+
yes: string;
|
|
5
|
+
no: string;
|
|
6
|
+
skip: string;
|
|
7
|
+
cancelled: string;
|
|
8
|
+
error: string;
|
|
9
|
+
complete: string;
|
|
10
|
+
none: string;
|
|
11
|
+
notConfigured: string;
|
|
12
|
+
spaceToSelectReturn: string;
|
|
13
|
+
enterChoice: string;
|
|
14
|
+
invalidChoice: string;
|
|
15
|
+
selectScriptLang: string;
|
|
16
|
+
selectConfigLang: string;
|
|
17
|
+
selectAiOutputLang: string;
|
|
18
|
+
aiOutputLangHint: string;
|
|
19
|
+
enterCustomLanguage: string;
|
|
20
|
+
languageChanged: string;
|
|
21
|
+
configLangHint: {
|
|
22
|
+
'zh-CN': string;
|
|
23
|
+
en: string;
|
|
24
|
+
};
|
|
25
|
+
installPrompt: string;
|
|
26
|
+
installing: string;
|
|
27
|
+
installSuccess: string;
|
|
28
|
+
installFailed: string;
|
|
29
|
+
npmNotFound: string;
|
|
30
|
+
termuxDetected: string;
|
|
31
|
+
termuxInstallHint: string;
|
|
32
|
+
termuxPathInfo: string;
|
|
33
|
+
termuxEnvironmentInfo: string;
|
|
34
|
+
configureApi: string;
|
|
35
|
+
useAuthToken: string;
|
|
36
|
+
authTokenDesc: string;
|
|
37
|
+
useApiKey: string;
|
|
38
|
+
apiKeyDesc: string;
|
|
39
|
+
skipApi: string;
|
|
40
|
+
enterApiUrl: string;
|
|
41
|
+
enterAuthToken: string;
|
|
42
|
+
enterApiKey: string;
|
|
43
|
+
apiConfigSuccess: string;
|
|
44
|
+
existingApiConfig: string;
|
|
45
|
+
apiConfigUrl: string;
|
|
46
|
+
apiConfigKey: string;
|
|
47
|
+
apiConfigAuthType: string;
|
|
48
|
+
selectApiAction: string;
|
|
49
|
+
keepExistingConfig: string;
|
|
50
|
+
modifyAllConfig: string;
|
|
51
|
+
modifyPartialConfig: string;
|
|
52
|
+
selectModifyItems: string;
|
|
53
|
+
modifyApiUrl: string;
|
|
54
|
+
modifyApiKey: string;
|
|
55
|
+
modifyAuthType: string;
|
|
56
|
+
continueModification: string;
|
|
57
|
+
modificationSaved: string;
|
|
58
|
+
enterNewApiUrl: string;
|
|
59
|
+
enterNewApiKey: string;
|
|
60
|
+
selectNewAuthType: string;
|
|
61
|
+
apiKeyValidation: {
|
|
62
|
+
empty: string;
|
|
63
|
+
example: string;
|
|
64
|
+
};
|
|
65
|
+
urlRequired: string;
|
|
66
|
+
invalidUrl: string;
|
|
67
|
+
keyRequired: string;
|
|
68
|
+
invalidKeyFormat: string;
|
|
69
|
+
existingConfig: string;
|
|
70
|
+
backupAndOverwrite: string;
|
|
71
|
+
updateDocsOnly: string;
|
|
72
|
+
mergeConfig: string;
|
|
73
|
+
backupSuccess: string;
|
|
74
|
+
copying: string;
|
|
75
|
+
configSuccess: string;
|
|
76
|
+
noExistingConfig: string;
|
|
77
|
+
updatingPrompts: string;
|
|
78
|
+
updateConfigLangPrompt: string;
|
|
79
|
+
updateConfigLangChoice: {
|
|
80
|
+
'zh-CN': string;
|
|
81
|
+
en: string;
|
|
82
|
+
};
|
|
83
|
+
configureMcp: string;
|
|
84
|
+
selectMcpServices: string;
|
|
85
|
+
allServices: string;
|
|
86
|
+
mcpServiceInstalled: string;
|
|
87
|
+
enterExaApiKey: string;
|
|
88
|
+
skipMcp: string;
|
|
89
|
+
mcpConfigSuccess: string;
|
|
90
|
+
mcpBackupSuccess: string;
|
|
91
|
+
fixWindowsMcp: string;
|
|
92
|
+
fixWindowsMcpDesc: string;
|
|
93
|
+
windowsMcpFixed: string;
|
|
94
|
+
configureMcpServices: string;
|
|
95
|
+
selectMcpOption: string;
|
|
96
|
+
windowsDetected: string;
|
|
97
|
+
selectFunction: string;
|
|
98
|
+
returnToMenu: string;
|
|
99
|
+
goodbye: string;
|
|
100
|
+
menuOptions: {
|
|
101
|
+
fullInit: string;
|
|
102
|
+
importWorkflow: string;
|
|
103
|
+
configureApi: string;
|
|
104
|
+
configureMcp: string;
|
|
105
|
+
configureModel: string;
|
|
106
|
+
configureAiMemory: string;
|
|
107
|
+
configureEnvPermission: string;
|
|
108
|
+
installBmad: string;
|
|
109
|
+
clearCache: string;
|
|
110
|
+
changeLanguage: string;
|
|
111
|
+
exit: string;
|
|
112
|
+
};
|
|
113
|
+
menuDescriptions: {
|
|
114
|
+
fullInit: string;
|
|
115
|
+
importWorkflow: string;
|
|
116
|
+
configureApi: string;
|
|
117
|
+
configureMcp: string;
|
|
118
|
+
configureModel: string;
|
|
119
|
+
configureAiMemory: string;
|
|
120
|
+
configureEnvPermission: string;
|
|
121
|
+
installBmad: string;
|
|
122
|
+
clearCache: string;
|
|
123
|
+
changeLanguage: string;
|
|
124
|
+
};
|
|
125
|
+
selectDefaultModel: string;
|
|
126
|
+
modelConfigSuccess: string;
|
|
127
|
+
selectMemoryOption: string;
|
|
128
|
+
configureAiLanguage: string;
|
|
129
|
+
configureAiPersonality: string;
|
|
130
|
+
aiLanguageConfigured: string;
|
|
131
|
+
selectAiPersonality: string;
|
|
132
|
+
customPersonalityHint: string;
|
|
133
|
+
enterCustomPersonality: string;
|
|
134
|
+
personalityConfigured: string;
|
|
135
|
+
existingPersonality: string;
|
|
136
|
+
currentPersonality: string;
|
|
137
|
+
modifyPersonality: string;
|
|
138
|
+
keepPersonality: string;
|
|
139
|
+
directiveCannotBeEmpty: string;
|
|
140
|
+
languageRequired: string;
|
|
141
|
+
confirmClearCache: string;
|
|
142
|
+
cacheCleared: string;
|
|
143
|
+
noCacheFound: string;
|
|
144
|
+
selectEnvPermissionOption: string;
|
|
145
|
+
importRecommendedEnv: string;
|
|
146
|
+
importRecommendedEnvDesc: string;
|
|
147
|
+
importRecommendedPermissions: string;
|
|
148
|
+
importRecommendedPermissionsDesc: string;
|
|
149
|
+
openSettingsJson: string;
|
|
150
|
+
openSettingsJsonDesc: string;
|
|
151
|
+
envImportSuccess: string;
|
|
152
|
+
permissionsImportSuccess: string;
|
|
153
|
+
openingSettingsJson: string;
|
|
154
|
+
runFullInit: string;
|
|
155
|
+
forceOverwrite: string;
|
|
156
|
+
initClaudeConfig: string;
|
|
157
|
+
updatePromptsOnly: string;
|
|
158
|
+
selectWorkflowType: string;
|
|
159
|
+
workflowOption: {
|
|
160
|
+
featPlanUx: string;
|
|
161
|
+
sixStepsWorkflow: string;
|
|
162
|
+
bmadWorkflow: string;
|
|
163
|
+
};
|
|
164
|
+
bmadInitPrompt: string;
|
|
165
|
+
bmadInstallSuccess: string;
|
|
166
|
+
installingWorkflow: string;
|
|
167
|
+
installedCommand: string;
|
|
168
|
+
installedAgent: string;
|
|
169
|
+
failedToInstallCommand: string;
|
|
170
|
+
failedToInstallAgent: string;
|
|
171
|
+
workflowInstallSuccess: string;
|
|
172
|
+
workflowInstallError: string;
|
|
173
|
+
cleaningOldFiles: string;
|
|
174
|
+
removedOldFile: string;
|
|
175
|
+
installingBmadWorkflow: string;
|
|
176
|
+
bmadWorkflowInstalled: string;
|
|
177
|
+
bmadWorkflowFailed: string;
|
|
178
|
+
installingAgent: string;
|
|
179
|
+
agentInstalled: string;
|
|
180
|
+
agentFailed: string;
|
|
181
|
+
selectBmadOption: string;
|
|
182
|
+
confirmInstallBmad: string;
|
|
183
|
+
bmadInstallComplete: string;
|
|
184
|
+
checkingBmadDependencies: string;
|
|
185
|
+
bmadDependenciesMet: string;
|
|
186
|
+
bmadDependenciesMissing: string;
|
|
187
|
+
runningBmadCommand: string;
|
|
188
|
+
bmadCommandSuccess: string;
|
|
189
|
+
bmadCommandFailed: string;
|
|
190
|
+
configuringBmad: string;
|
|
191
|
+
bmadConfigured: string;
|
|
192
|
+
bmadConfigFailed: string;
|
|
193
|
+
failedToSetOnboarding: string;
|
|
194
|
+
failedToWriteMcpConfig: string;
|
|
195
|
+
templateDirNotFound: string;
|
|
196
|
+
failedToReadTemplateSettings: string;
|
|
197
|
+
failedToMergeSettings: string;
|
|
198
|
+
preservingExistingSettings: string;
|
|
199
|
+
failedToReadFile: string;
|
|
200
|
+
failedToWriteFile: string;
|
|
201
|
+
failedToCopyFile: string;
|
|
202
|
+
failedToRemoveFile: string;
|
|
203
|
+
failedToReadDirectory: string;
|
|
204
|
+
failedToGetStats: string;
|
|
205
|
+
sourceDirNotExist: string;
|
|
206
|
+
memoryDirNotFound: string;
|
|
207
|
+
invalidConfiguration: string;
|
|
208
|
+
failedToParseJson: string;
|
|
209
|
+
failedToBackupConfig: string;
|
|
210
|
+
invalidEnvConfig: string;
|
|
211
|
+
invalidApiUrl: string;
|
|
212
|
+
invalidApiKey: string;
|
|
213
|
+
invalidAuthToken: string;
|
|
214
|
+
invalidPermissionsConfig: string;
|
|
215
|
+
invalidPermissionsAllow: string;
|
|
216
|
+
failedToAddOnboardingFlag: string;
|
|
217
|
+
failedToApplyPersonality: string;
|
|
218
|
+
}
|
|
219
|
+
|
|
1
220
|
interface McpService {
|
|
2
221
|
id: string;
|
|
3
222
|
name: {
|
|
@@ -33,6 +252,7 @@ declare const CLAUDE_DIR: string;
|
|
|
33
252
|
declare const SETTINGS_FILE: string;
|
|
34
253
|
declare const CLAUDE_MD_FILE: string;
|
|
35
254
|
declare const ClAUDE_CONFIG_FILE: string;
|
|
255
|
+
declare const LEGACY_ZCF_CONFIG_FILE: string;
|
|
36
256
|
declare const ZCF_CONFIG_FILE: string;
|
|
37
257
|
declare const SUPPORTED_LANGS: readonly ["zh-CN", "en"];
|
|
38
258
|
type SupportedLang = (typeof SUPPORTED_LANGS)[number];
|
|
@@ -55,350 +275,7 @@ declare const AI_OUTPUT_LANGUAGES: {
|
|
|
55
275
|
};
|
|
56
276
|
};
|
|
57
277
|
type AiOutputLanguage = keyof typeof AI_OUTPUT_LANGUAGES;
|
|
58
|
-
declare const I18N:
|
|
59
|
-
'zh-CN': {
|
|
60
|
-
selectScriptLang: string;
|
|
61
|
-
selectConfigLang: string;
|
|
62
|
-
selectAiOutputLang: string;
|
|
63
|
-
aiOutputLangHint: string;
|
|
64
|
-
enterCustomLanguage: string;
|
|
65
|
-
configLangHint: {
|
|
66
|
-
'zh-CN': string;
|
|
67
|
-
en: string;
|
|
68
|
-
};
|
|
69
|
-
installPrompt: string;
|
|
70
|
-
installing: string;
|
|
71
|
-
installSuccess: string;
|
|
72
|
-
installFailed: string;
|
|
73
|
-
npmNotFound: string;
|
|
74
|
-
termuxDetected: string;
|
|
75
|
-
termuxInstallHint: string;
|
|
76
|
-
termuxPathInfo: string;
|
|
77
|
-
termuxEnvironmentInfo: string;
|
|
78
|
-
configureApi: string;
|
|
79
|
-
useAuthToken: string;
|
|
80
|
-
authTokenDesc: string;
|
|
81
|
-
useApiKey: string;
|
|
82
|
-
apiKeyDesc: string;
|
|
83
|
-
skipApi: string;
|
|
84
|
-
enterApiUrl: string;
|
|
85
|
-
enterAuthToken: string;
|
|
86
|
-
enterApiKey: string;
|
|
87
|
-
existingApiConfig: string;
|
|
88
|
-
apiConfigUrl: string;
|
|
89
|
-
apiConfigKey: string;
|
|
90
|
-
apiConfigAuthType: string;
|
|
91
|
-
selectApiAction: string;
|
|
92
|
-
keepExistingConfig: string;
|
|
93
|
-
modifyAllConfig: string;
|
|
94
|
-
modifyPartialConfig: string;
|
|
95
|
-
selectModifyItems: string;
|
|
96
|
-
modifyApiUrl: string;
|
|
97
|
-
modifyApiKey: string;
|
|
98
|
-
modifyAuthType: string;
|
|
99
|
-
continueModification: string;
|
|
100
|
-
modificationSaved: string;
|
|
101
|
-
enterNewApiUrl: string;
|
|
102
|
-
enterNewApiKey: string;
|
|
103
|
-
selectNewAuthType: string;
|
|
104
|
-
existingConfig: string;
|
|
105
|
-
backupAndOverwrite: string;
|
|
106
|
-
updateDocsOnly: string;
|
|
107
|
-
mergeConfig: string;
|
|
108
|
-
skip: string;
|
|
109
|
-
backupSuccess: string;
|
|
110
|
-
copying: string;
|
|
111
|
-
configSuccess: string;
|
|
112
|
-
apiConfigSuccess: string;
|
|
113
|
-
mcpConfigSuccess: string;
|
|
114
|
-
selectMcpServices: string;
|
|
115
|
-
allServices: string;
|
|
116
|
-
mcpServiceInstalled: string;
|
|
117
|
-
enterExaApiKey: string;
|
|
118
|
-
skipMcp: string;
|
|
119
|
-
configureMcp: string;
|
|
120
|
-
mcpBackupSuccess: string;
|
|
121
|
-
complete: string;
|
|
122
|
-
error: string;
|
|
123
|
-
yes: string;
|
|
124
|
-
no: string;
|
|
125
|
-
cancelled: string;
|
|
126
|
-
apiKeyValidation: {
|
|
127
|
-
empty: string;
|
|
128
|
-
example: string;
|
|
129
|
-
};
|
|
130
|
-
noExistingConfig: string;
|
|
131
|
-
updatingPrompts: string;
|
|
132
|
-
updateConfigLangPrompt: string;
|
|
133
|
-
updateConfigLangChoice: {
|
|
134
|
-
'zh-CN': string;
|
|
135
|
-
en: string;
|
|
136
|
-
};
|
|
137
|
-
selectFunction: string;
|
|
138
|
-
enterChoice: string;
|
|
139
|
-
menuOptions: {
|
|
140
|
-
fullInit: string;
|
|
141
|
-
importWorkflow: string;
|
|
142
|
-
configureApi: string;
|
|
143
|
-
configureMcp: string;
|
|
144
|
-
configureModel: string;
|
|
145
|
-
configureAiMemory: string;
|
|
146
|
-
configureEnvPermission: string;
|
|
147
|
-
clearCache: string;
|
|
148
|
-
changeLanguage: string;
|
|
149
|
-
exit: string;
|
|
150
|
-
};
|
|
151
|
-
menuDescriptions: {
|
|
152
|
-
fullInit: string;
|
|
153
|
-
importWorkflow: string;
|
|
154
|
-
configureApi: string;
|
|
155
|
-
configureMcp: string;
|
|
156
|
-
configureModel: string;
|
|
157
|
-
configureAiMemory: string;
|
|
158
|
-
configureEnvPermission: string;
|
|
159
|
-
clearCache: string;
|
|
160
|
-
changeLanguage: string;
|
|
161
|
-
};
|
|
162
|
-
returnToMenu: string;
|
|
163
|
-
goodbye: string;
|
|
164
|
-
selectDefaultModel: string;
|
|
165
|
-
modelConfigSuccess: string;
|
|
166
|
-
selectMemoryOption: string;
|
|
167
|
-
configureAiLanguage: string;
|
|
168
|
-
configureAiPersonality: string;
|
|
169
|
-
aiLanguageConfigured: string;
|
|
170
|
-
selectAiPersonality: string;
|
|
171
|
-
customPersonalityHint: string;
|
|
172
|
-
enterCustomPersonality: string;
|
|
173
|
-
personalityConfigured: string;
|
|
174
|
-
existingPersonality: string;
|
|
175
|
-
currentPersonality: string;
|
|
176
|
-
modifyPersonality: string;
|
|
177
|
-
keepPersonality: string;
|
|
178
|
-
confirmClearCache: string;
|
|
179
|
-
cacheCleared: string;
|
|
180
|
-
noCacheFound: string;
|
|
181
|
-
languageChanged: string;
|
|
182
|
-
fixWindowsMcp: string;
|
|
183
|
-
fixWindowsMcpDesc: string;
|
|
184
|
-
windowsMcpFixed: string;
|
|
185
|
-
configureMcpServices: string;
|
|
186
|
-
selectMcpOption: string;
|
|
187
|
-
invalidChoice: string;
|
|
188
|
-
urlRequired: string;
|
|
189
|
-
invalidUrl: string;
|
|
190
|
-
keyRequired: string;
|
|
191
|
-
invalidKeyFormat: string;
|
|
192
|
-
directiveCannotBeEmpty: string;
|
|
193
|
-
languageRequired: string;
|
|
194
|
-
failedToSetOnboarding: string;
|
|
195
|
-
failedToWriteMcpConfig: string;
|
|
196
|
-
templateDirNotFound: string;
|
|
197
|
-
failedToReadTemplateSettings: string;
|
|
198
|
-
failedToMergeSettings: string;
|
|
199
|
-
preservingExistingSettings: string;
|
|
200
|
-
failedToReadFile: string;
|
|
201
|
-
failedToWriteFile: string;
|
|
202
|
-
failedToCopyFile: string;
|
|
203
|
-
failedToReadDirectory: string;
|
|
204
|
-
failedToGetStats: string;
|
|
205
|
-
sourceDirNotExist: string;
|
|
206
|
-
invalidConfiguration: string;
|
|
207
|
-
failedToParseJson: string;
|
|
208
|
-
failedToBackupConfig: string;
|
|
209
|
-
failedToAddOnboardingFlag: string;
|
|
210
|
-
failedToApplyPersonality: string;
|
|
211
|
-
notConfigured: string;
|
|
212
|
-
none: string;
|
|
213
|
-
runFullInit: string;
|
|
214
|
-
forceOverwrite: string;
|
|
215
|
-
initClaudeConfig: string;
|
|
216
|
-
updatePromptsOnly: string;
|
|
217
|
-
selectEnvPermissionOption: string;
|
|
218
|
-
importRecommendedEnv: string;
|
|
219
|
-
importRecommendedEnvDesc: string;
|
|
220
|
-
importRecommendedPermissions: string;
|
|
221
|
-
importRecommendedPermissionsDesc: string;
|
|
222
|
-
openSettingsJson: string;
|
|
223
|
-
openSettingsJsonDesc: string;
|
|
224
|
-
envImportSuccess: string;
|
|
225
|
-
permissionsImportSuccess: string;
|
|
226
|
-
openingSettingsJson: string;
|
|
227
|
-
spaceToSelectReturn: string;
|
|
228
|
-
windowsDetected: string;
|
|
229
|
-
};
|
|
230
|
-
en: {
|
|
231
|
-
selectScriptLang: string;
|
|
232
|
-
selectConfigLang: string;
|
|
233
|
-
selectAiOutputLang: string;
|
|
234
|
-
aiOutputLangHint: string;
|
|
235
|
-
enterCustomLanguage: string;
|
|
236
|
-
configLangHint: {
|
|
237
|
-
'zh-CN': string;
|
|
238
|
-
en: string;
|
|
239
|
-
};
|
|
240
|
-
installPrompt: string;
|
|
241
|
-
installing: string;
|
|
242
|
-
installSuccess: string;
|
|
243
|
-
installFailed: string;
|
|
244
|
-
npmNotFound: string;
|
|
245
|
-
termuxDetected: string;
|
|
246
|
-
termuxInstallHint: string;
|
|
247
|
-
termuxPathInfo: string;
|
|
248
|
-
termuxEnvironmentInfo: string;
|
|
249
|
-
configureApi: string;
|
|
250
|
-
useAuthToken: string;
|
|
251
|
-
authTokenDesc: string;
|
|
252
|
-
useApiKey: string;
|
|
253
|
-
apiKeyDesc: string;
|
|
254
|
-
skipApi: string;
|
|
255
|
-
enterApiUrl: string;
|
|
256
|
-
enterAuthToken: string;
|
|
257
|
-
enterApiKey: string;
|
|
258
|
-
existingApiConfig: string;
|
|
259
|
-
apiConfigUrl: string;
|
|
260
|
-
apiConfigKey: string;
|
|
261
|
-
apiConfigAuthType: string;
|
|
262
|
-
selectApiAction: string;
|
|
263
|
-
keepExistingConfig: string;
|
|
264
|
-
modifyAllConfig: string;
|
|
265
|
-
modifyPartialConfig: string;
|
|
266
|
-
selectModifyItems: string;
|
|
267
|
-
modifyApiUrl: string;
|
|
268
|
-
modifyApiKey: string;
|
|
269
|
-
modifyAuthType: string;
|
|
270
|
-
continueModification: string;
|
|
271
|
-
modificationSaved: string;
|
|
272
|
-
enterNewApiUrl: string;
|
|
273
|
-
enterNewApiKey: string;
|
|
274
|
-
selectNewAuthType: string;
|
|
275
|
-
existingConfig: string;
|
|
276
|
-
backupAndOverwrite: string;
|
|
277
|
-
updateDocsOnly: string;
|
|
278
|
-
mergeConfig: string;
|
|
279
|
-
skip: string;
|
|
280
|
-
backupSuccess: string;
|
|
281
|
-
copying: string;
|
|
282
|
-
configSuccess: string;
|
|
283
|
-
apiConfigSuccess: string;
|
|
284
|
-
mcpConfigSuccess: string;
|
|
285
|
-
selectMcpServices: string;
|
|
286
|
-
allServices: string;
|
|
287
|
-
mcpServiceInstalled: string;
|
|
288
|
-
enterExaApiKey: string;
|
|
289
|
-
skipMcp: string;
|
|
290
|
-
configureMcp: string;
|
|
291
|
-
mcpBackupSuccess: string;
|
|
292
|
-
complete: string;
|
|
293
|
-
error: string;
|
|
294
|
-
yes: string;
|
|
295
|
-
no: string;
|
|
296
|
-
cancelled: string;
|
|
297
|
-
apiKeyValidation: {
|
|
298
|
-
empty: string;
|
|
299
|
-
example: string;
|
|
300
|
-
};
|
|
301
|
-
noExistingConfig: string;
|
|
302
|
-
updatingPrompts: string;
|
|
303
|
-
updateConfigLangPrompt: string;
|
|
304
|
-
updateConfigLangChoice: {
|
|
305
|
-
'zh-CN': string;
|
|
306
|
-
en: string;
|
|
307
|
-
};
|
|
308
|
-
selectFunction: string;
|
|
309
|
-
enterChoice: string;
|
|
310
|
-
menuOptions: {
|
|
311
|
-
fullInit: string;
|
|
312
|
-
importWorkflow: string;
|
|
313
|
-
configureApi: string;
|
|
314
|
-
configureMcp: string;
|
|
315
|
-
configureModel: string;
|
|
316
|
-
configureAiMemory: string;
|
|
317
|
-
configureEnvPermission: string;
|
|
318
|
-
clearCache: string;
|
|
319
|
-
changeLanguage: string;
|
|
320
|
-
exit: string;
|
|
321
|
-
};
|
|
322
|
-
menuDescriptions: {
|
|
323
|
-
fullInit: string;
|
|
324
|
-
importWorkflow: string;
|
|
325
|
-
configureApi: string;
|
|
326
|
-
configureMcp: string;
|
|
327
|
-
configureModel: string;
|
|
328
|
-
configureAiMemory: string;
|
|
329
|
-
configureEnvPermission: string;
|
|
330
|
-
clearCache: string;
|
|
331
|
-
changeLanguage: string;
|
|
332
|
-
};
|
|
333
|
-
returnToMenu: string;
|
|
334
|
-
goodbye: string;
|
|
335
|
-
selectDefaultModel: string;
|
|
336
|
-
modelConfigSuccess: string;
|
|
337
|
-
selectMemoryOption: string;
|
|
338
|
-
configureAiLanguage: string;
|
|
339
|
-
configureAiPersonality: string;
|
|
340
|
-
aiLanguageConfigured: string;
|
|
341
|
-
selectAiPersonality: string;
|
|
342
|
-
customPersonalityHint: string;
|
|
343
|
-
enterCustomPersonality: string;
|
|
344
|
-
personalityConfigured: string;
|
|
345
|
-
existingPersonality: string;
|
|
346
|
-
currentPersonality: string;
|
|
347
|
-
modifyPersonality: string;
|
|
348
|
-
keepPersonality: string;
|
|
349
|
-
confirmClearCache: string;
|
|
350
|
-
cacheCleared: string;
|
|
351
|
-
noCacheFound: string;
|
|
352
|
-
languageChanged: string;
|
|
353
|
-
fixWindowsMcp: string;
|
|
354
|
-
fixWindowsMcpDesc: string;
|
|
355
|
-
windowsMcpFixed: string;
|
|
356
|
-
configureMcpServices: string;
|
|
357
|
-
selectMcpOption: string;
|
|
358
|
-
invalidChoice: string;
|
|
359
|
-
urlRequired: string;
|
|
360
|
-
invalidUrl: string;
|
|
361
|
-
keyRequired: string;
|
|
362
|
-
invalidKeyFormat: string;
|
|
363
|
-
directiveCannotBeEmpty: string;
|
|
364
|
-
languageRequired: string;
|
|
365
|
-
failedToSetOnboarding: string;
|
|
366
|
-
failedToWriteMcpConfig: string;
|
|
367
|
-
templateDirNotFound: string;
|
|
368
|
-
failedToReadTemplateSettings: string;
|
|
369
|
-
failedToMergeSettings: string;
|
|
370
|
-
preservingExistingSettings: string;
|
|
371
|
-
failedToReadFile: string;
|
|
372
|
-
failedToWriteFile: string;
|
|
373
|
-
failedToCopyFile: string;
|
|
374
|
-
failedToReadDirectory: string;
|
|
375
|
-
failedToGetStats: string;
|
|
376
|
-
sourceDirNotExist: string;
|
|
377
|
-
invalidConfiguration: string;
|
|
378
|
-
failedToParseJson: string;
|
|
379
|
-
failedToBackupConfig: string;
|
|
380
|
-
failedToAddOnboardingFlag: string;
|
|
381
|
-
failedToApplyPersonality: string;
|
|
382
|
-
notConfigured: string;
|
|
383
|
-
none: string;
|
|
384
|
-
runFullInit: string;
|
|
385
|
-
forceOverwrite: string;
|
|
386
|
-
initClaudeConfig: string;
|
|
387
|
-
updatePromptsOnly: string;
|
|
388
|
-
selectEnvPermissionOption: string;
|
|
389
|
-
importRecommendedEnv: string;
|
|
390
|
-
importRecommendedEnvDesc: string;
|
|
391
|
-
importRecommendedPermissions: string;
|
|
392
|
-
importRecommendedPermissionsDesc: string;
|
|
393
|
-
openSettingsJson: string;
|
|
394
|
-
openSettingsJsonDesc: string;
|
|
395
|
-
envImportSuccess: string;
|
|
396
|
-
permissionsImportSuccess: string;
|
|
397
|
-
openingSettingsJson: string;
|
|
398
|
-
spaceToSelectReturn: string;
|
|
399
|
-
windowsDetected: string;
|
|
400
|
-
};
|
|
401
|
-
};
|
|
278
|
+
declare const I18N: Record<SupportedLang$1, TranslationKeys>;
|
|
402
279
|
declare const MCP_SERVICES: McpService[];
|
|
403
280
|
|
|
404
281
|
interface InitOptions {
|
|
@@ -475,5 +352,5 @@ declare function cleanupPermissions(templatePermissions: string[], userPermissio
|
|
|
475
352
|
*/
|
|
476
353
|
declare function mergeAndCleanPermissions(templatePermissions: string[] | undefined, userPermissions: string[] | undefined): string[];
|
|
477
354
|
|
|
478
|
-
export { AI_OUTPUT_LANGUAGES, CLAUDE_DIR, CLAUDE_MD_FILE, ClAUDE_CONFIG_FILE, I18N, LANG_LABELS, MCP_SERVICES, SETTINGS_FILE, SUPPORTED_LANGS, ZCF_CONFIG_FILE, addCompletedOnboarding, applyAiLanguageDirective, backupExistingConfig, backupMcpConfig, buildMcpServerConfig, cleanupPermissions, commandExists, configureApi, copyConfigFiles, ensureClaudeDir, fixWindowsMcpConfig, getExistingApiConfig, getMcpConfigPath, getPlatform, importRecommendedEnv, importRecommendedPermissions, init, installClaudeCode, isClaudeCodeInstalled, mergeAndCleanPermissions, mergeConfigs, mergeMcpServers, mergeSettingsFile, openSettingsJson, readMcpConfig, updateDefaultModel, writeMcpConfig };
|
|
355
|
+
export { AI_OUTPUT_LANGUAGES, CLAUDE_DIR, CLAUDE_MD_FILE, ClAUDE_CONFIG_FILE, I18N, LANG_LABELS, LEGACY_ZCF_CONFIG_FILE, MCP_SERVICES, SETTINGS_FILE, SUPPORTED_LANGS, ZCF_CONFIG_FILE, addCompletedOnboarding, applyAiLanguageDirective, backupExistingConfig, backupMcpConfig, buildMcpServerConfig, cleanupPermissions, commandExists, configureApi, copyConfigFiles, ensureClaudeDir, fixWindowsMcpConfig, getExistingApiConfig, getMcpConfigPath, getPlatform, importRecommendedEnv, importRecommendedPermissions, init, installClaudeCode, isClaudeCodeInstalled, mergeAndCleanPermissions, mergeConfigs, mergeMcpServers, mergeSettingsFile, openSettingsJson, readMcpConfig, updateDefaultModel, writeMcpConfig };
|
|
479
356
|
export type { AiOutputLanguage, ApiConfig, ClaudeConfiguration, 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, I as I18N,
|
|
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.BjaE63-h.mjs';
|
|
2
2
|
import 'inquirer';
|
|
3
3
|
import 'ansis';
|
|
4
4
|
import 'node:fs';
|
|
@@ -6,4 +6,5 @@ import 'pathe';
|
|
|
6
6
|
import 'dayjs';
|
|
7
7
|
import 'node:url';
|
|
8
8
|
import 'tinyexec';
|
|
9
|
+
import 'node:fs/promises';
|
|
9
10
|
import 'node:os';
|