zcf 2.7.1 → 2.8.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/dist/index.d.mts CHANGED
@@ -1,241 +1,18 @@
1
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
- goodbye: string;
16
- returnToMenu: string;
17
- back: string;
18
- selectScriptLang: string;
19
- selectConfigLang: string;
20
- selectAiOutputLang: string;
21
- aiOutputLangHint: string;
22
- enterCustomLanguage: string;
23
- languageChanged: string;
24
- configLangHint: {
25
- 'zh-CN': string;
26
- en: string;
27
- };
28
- installPrompt: string;
29
- installing: string;
30
- installSuccess: string;
31
- installFailed: string;
32
- npmNotFound: string;
33
- termuxDetected: string;
34
- termuxInstallHint: string;
35
- termuxPathInfo: string;
36
- termuxEnvironmentInfo: string;
37
- configureApi: string;
38
- useAuthToken: string;
39
- authTokenDesc: string;
40
- useApiKey: string;
41
- apiKeyDesc: string;
42
- skipApi: string;
43
- enterApiUrl: string;
44
- enterAuthToken: string;
45
- enterApiKey: string;
46
- apiConfigSuccess: string;
47
- existingApiConfig: string;
48
- apiConfigUrl: string;
49
- apiConfigKey: string;
50
- apiConfigAuthType: string;
51
- selectApiAction: string;
52
- keepExistingConfig: string;
53
- modifyAllConfig: string;
54
- modifyPartialConfig: string;
55
- selectModifyItems: string;
56
- modifyApiUrl: string;
57
- modifyApiKey: string;
58
- modifyAuthType: string;
59
- continueModification: string;
60
- modificationSaved: string;
61
- enterNewApiUrl: string;
62
- enterNewApiKey: string;
63
- selectNewAuthType: string;
64
- apiKeyValidation: {
65
- empty: string;
66
- example: string;
67
- };
68
- urlRequired: string;
69
- invalidUrl: string;
70
- keyRequired: string;
71
- invalidKeyFormat: string;
72
- existingConfig: string;
73
- backupAndOverwrite: string;
74
- updateDocsOnly: string;
75
- mergeConfig: string;
76
- backupSuccess: string;
77
- copying: string;
78
- configSuccess: string;
79
- noExistingConfig: string;
80
- updatingPrompts: string;
81
- updateConfigLangPrompt: string;
82
- updateConfigLangChoice: {
83
- 'zh-CN': string;
84
- en: string;
85
- };
86
- configureMcp: string;
87
- selectMcpServices: string;
88
- allServices: string;
89
- mcpServiceInstalled: string;
90
- enterExaApiKey: string;
91
- skipMcp: string;
92
- mcpConfigSuccess: string;
93
- mcpBackupSuccess: string;
94
- fixWindowsMcp: string;
95
- fixWindowsMcpDesc: string;
96
- windowsMcpFixed: string;
97
- configureMcpServices: string;
98
- selectMcpOption: string;
99
- windowsDetected: string;
100
- selectFunction: string;
101
- menuSections: {
102
- otherTools: string;
103
- };
104
- menuOptions: {
105
- fullInit: string;
106
- importWorkflow: string;
107
- configureApi: string;
108
- configureMcp: string;
109
- configureModel: string;
110
- configureAiMemory: string;
111
- configureEnvPermission: string;
112
- ccusage: string;
113
- installBmad: string;
114
- clearCache: string;
115
- changeLanguage: string;
116
- exit: string;
117
- };
118
- menuDescriptions: {
119
- fullInit: string;
120
- importWorkflow: string;
121
- configureApi: string;
122
- configureMcp: string;
123
- configureModel: string;
124
- configureAiMemory: string;
125
- configureEnvPermission: string;
126
- ccusage: string;
127
- installBmad: string;
128
- clearCache: string;
129
- changeLanguage: string;
130
- };
131
- selectDefaultModel: string;
132
- modelConfigSuccess: string;
133
- selectMemoryOption: string;
134
- configureAiLanguage: string;
135
- configureAiPersonality: string;
136
- aiLanguageConfigured: string;
137
- selectAiPersonality: string;
138
- customPersonalityHint: string;
139
- enterCustomPersonality: string;
140
- personalityConfigured: string;
141
- existingPersonality: string;
142
- currentPersonality: string;
143
- modifyPersonality: string;
144
- keepPersonality: string;
145
- directiveCannotBeEmpty: string;
146
- languageRequired: string;
147
- confirmClearCache: string;
148
- cacheCleared: string;
149
- noCacheFound: string;
150
- runningCcusage: string;
151
- ccusageDescription: string;
152
- selectAnalysisMode: string;
153
- ccusageModes: {
154
- daily: string;
155
- monthly: string;
156
- session: string;
157
- blocks: string;
158
- custom: string;
159
- };
160
- enterCustomArgs: string;
161
- pressEnterToContinue: string;
162
- ccusageFailed: string;
163
- checkNetworkConnection: string;
164
- errorDetails: string;
165
- selectEnvPermissionOption: string;
166
- importRecommendedEnv: string;
167
- importRecommendedEnvDesc: string;
168
- importRecommendedPermissions: string;
169
- importRecommendedPermissionsDesc: string;
170
- openSettingsJson: string;
171
- openSettingsJsonDesc: string;
172
- envImportSuccess: string;
173
- permissionsImportSuccess: string;
174
- openingSettingsJson: string;
175
- runFullInit: string;
176
- forceOverwrite: string;
177
- initClaudeConfig: string;
178
- updatePromptsOnly: string;
179
- selectWorkflowType: string;
180
- workflowOption: {
181
- featPlanUx: string;
182
- sixStepsWorkflow: string;
183
- bmadWorkflow: string;
184
- };
185
- bmadInitPrompt: string;
186
- bmadInstallSuccess: string;
187
- installingWorkflow: string;
188
- installedCommand: string;
189
- installedAgent: string;
190
- failedToInstallCommand: string;
191
- failedToInstallAgent: string;
192
- workflowInstallSuccess: string;
193
- workflowInstallError: string;
194
- cleaningOldFiles: string;
195
- removedOldFile: string;
196
- installingBmadWorkflow: string;
197
- bmadWorkflowInstalled: string;
198
- bmadWorkflowFailed: string;
199
- installingAgent: string;
200
- agentInstalled: string;
201
- agentFailed: string;
202
- selectBmadOption: string;
203
- confirmInstallBmad: string;
204
- bmadInstallComplete: string;
205
- checkingBmadDependencies: string;
206
- bmadDependenciesMet: string;
207
- bmadDependenciesMissing: string;
208
- runningBmadCommand: string;
209
- bmadCommandSuccess: string;
210
- bmadCommandFailed: string;
211
- configuringBmad: string;
212
- bmadConfigured: string;
213
- bmadConfigFailed: string;
214
- failedToSetOnboarding: string;
215
- failedToWriteMcpConfig: string;
216
- templateDirNotFound: string;
217
- failedToReadTemplateSettings: string;
218
- failedToMergeSettings: string;
219
- preservingExistingSettings: string;
220
- failedToReadFile: string;
221
- failedToWriteFile: string;
222
- failedToCopyFile: string;
223
- failedToRemoveFile: string;
224
- failedToReadDirectory: string;
225
- failedToGetStats: string;
226
- sourceDirNotExist: string;
227
- memoryDirNotFound: string;
228
- invalidConfiguration: string;
229
- failedToParseJson: string;
230
- failedToBackupConfig: string;
231
- invalidEnvConfig: string;
232
- invalidApiUrl: string;
233
- invalidApiKey: string;
234
- invalidAuthToken: string;
235
- invalidPermissionsConfig: string;
236
- invalidPermissionsAllow: string;
237
- failedToAddOnboardingFlag: string;
238
- failedToApplyPersonality: string;
2
+ interface TranslationStructure {
3
+ common: any;
4
+ language: any;
5
+ installation: any;
6
+ api: any;
7
+ bmad: any;
8
+ workflow: any;
9
+ configuration: any;
10
+ mcp: any;
11
+ menu: any;
12
+ cli: any;
13
+ errors: any;
14
+ tools: any;
15
+ ccr: any;
239
16
  }
240
17
 
241
18
  interface McpService {
@@ -296,7 +73,7 @@ declare const AI_OUTPUT_LANGUAGES: {
296
73
  };
297
74
  };
298
75
  type AiOutputLanguage = keyof typeof AI_OUTPUT_LANGUAGES;
299
- declare const I18N: Record<SupportedLang$1, TranslationKeys>;
76
+ declare const I18N: Record<SupportedLang$1, TranslationStructure>;
300
77
  declare const MCP_SERVICES: McpService[];
301
78
 
302
79
  interface InitOptions {
package/dist/index.d.ts CHANGED
@@ -1,241 +1,18 @@
1
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
- goodbye: string;
16
- returnToMenu: string;
17
- back: string;
18
- selectScriptLang: string;
19
- selectConfigLang: string;
20
- selectAiOutputLang: string;
21
- aiOutputLangHint: string;
22
- enterCustomLanguage: string;
23
- languageChanged: string;
24
- configLangHint: {
25
- 'zh-CN': string;
26
- en: string;
27
- };
28
- installPrompt: string;
29
- installing: string;
30
- installSuccess: string;
31
- installFailed: string;
32
- npmNotFound: string;
33
- termuxDetected: string;
34
- termuxInstallHint: string;
35
- termuxPathInfo: string;
36
- termuxEnvironmentInfo: string;
37
- configureApi: string;
38
- useAuthToken: string;
39
- authTokenDesc: string;
40
- useApiKey: string;
41
- apiKeyDesc: string;
42
- skipApi: string;
43
- enterApiUrl: string;
44
- enterAuthToken: string;
45
- enterApiKey: string;
46
- apiConfigSuccess: string;
47
- existingApiConfig: string;
48
- apiConfigUrl: string;
49
- apiConfigKey: string;
50
- apiConfigAuthType: string;
51
- selectApiAction: string;
52
- keepExistingConfig: string;
53
- modifyAllConfig: string;
54
- modifyPartialConfig: string;
55
- selectModifyItems: string;
56
- modifyApiUrl: string;
57
- modifyApiKey: string;
58
- modifyAuthType: string;
59
- continueModification: string;
60
- modificationSaved: string;
61
- enterNewApiUrl: string;
62
- enterNewApiKey: string;
63
- selectNewAuthType: string;
64
- apiKeyValidation: {
65
- empty: string;
66
- example: string;
67
- };
68
- urlRequired: string;
69
- invalidUrl: string;
70
- keyRequired: string;
71
- invalidKeyFormat: string;
72
- existingConfig: string;
73
- backupAndOverwrite: string;
74
- updateDocsOnly: string;
75
- mergeConfig: string;
76
- backupSuccess: string;
77
- copying: string;
78
- configSuccess: string;
79
- noExistingConfig: string;
80
- updatingPrompts: string;
81
- updateConfigLangPrompt: string;
82
- updateConfigLangChoice: {
83
- 'zh-CN': string;
84
- en: string;
85
- };
86
- configureMcp: string;
87
- selectMcpServices: string;
88
- allServices: string;
89
- mcpServiceInstalled: string;
90
- enterExaApiKey: string;
91
- skipMcp: string;
92
- mcpConfigSuccess: string;
93
- mcpBackupSuccess: string;
94
- fixWindowsMcp: string;
95
- fixWindowsMcpDesc: string;
96
- windowsMcpFixed: string;
97
- configureMcpServices: string;
98
- selectMcpOption: string;
99
- windowsDetected: string;
100
- selectFunction: string;
101
- menuSections: {
102
- otherTools: string;
103
- };
104
- menuOptions: {
105
- fullInit: string;
106
- importWorkflow: string;
107
- configureApi: string;
108
- configureMcp: string;
109
- configureModel: string;
110
- configureAiMemory: string;
111
- configureEnvPermission: string;
112
- ccusage: string;
113
- installBmad: string;
114
- clearCache: string;
115
- changeLanguage: string;
116
- exit: string;
117
- };
118
- menuDescriptions: {
119
- fullInit: string;
120
- importWorkflow: string;
121
- configureApi: string;
122
- configureMcp: string;
123
- configureModel: string;
124
- configureAiMemory: string;
125
- configureEnvPermission: string;
126
- ccusage: string;
127
- installBmad: string;
128
- clearCache: string;
129
- changeLanguage: string;
130
- };
131
- selectDefaultModel: string;
132
- modelConfigSuccess: string;
133
- selectMemoryOption: string;
134
- configureAiLanguage: string;
135
- configureAiPersonality: string;
136
- aiLanguageConfigured: string;
137
- selectAiPersonality: string;
138
- customPersonalityHint: string;
139
- enterCustomPersonality: string;
140
- personalityConfigured: string;
141
- existingPersonality: string;
142
- currentPersonality: string;
143
- modifyPersonality: string;
144
- keepPersonality: string;
145
- directiveCannotBeEmpty: string;
146
- languageRequired: string;
147
- confirmClearCache: string;
148
- cacheCleared: string;
149
- noCacheFound: string;
150
- runningCcusage: string;
151
- ccusageDescription: string;
152
- selectAnalysisMode: string;
153
- ccusageModes: {
154
- daily: string;
155
- monthly: string;
156
- session: string;
157
- blocks: string;
158
- custom: string;
159
- };
160
- enterCustomArgs: string;
161
- pressEnterToContinue: string;
162
- ccusageFailed: string;
163
- checkNetworkConnection: string;
164
- errorDetails: string;
165
- selectEnvPermissionOption: string;
166
- importRecommendedEnv: string;
167
- importRecommendedEnvDesc: string;
168
- importRecommendedPermissions: string;
169
- importRecommendedPermissionsDesc: string;
170
- openSettingsJson: string;
171
- openSettingsJsonDesc: string;
172
- envImportSuccess: string;
173
- permissionsImportSuccess: string;
174
- openingSettingsJson: string;
175
- runFullInit: string;
176
- forceOverwrite: string;
177
- initClaudeConfig: string;
178
- updatePromptsOnly: string;
179
- selectWorkflowType: string;
180
- workflowOption: {
181
- featPlanUx: string;
182
- sixStepsWorkflow: string;
183
- bmadWorkflow: string;
184
- };
185
- bmadInitPrompt: string;
186
- bmadInstallSuccess: string;
187
- installingWorkflow: string;
188
- installedCommand: string;
189
- installedAgent: string;
190
- failedToInstallCommand: string;
191
- failedToInstallAgent: string;
192
- workflowInstallSuccess: string;
193
- workflowInstallError: string;
194
- cleaningOldFiles: string;
195
- removedOldFile: string;
196
- installingBmadWorkflow: string;
197
- bmadWorkflowInstalled: string;
198
- bmadWorkflowFailed: string;
199
- installingAgent: string;
200
- agentInstalled: string;
201
- agentFailed: string;
202
- selectBmadOption: string;
203
- confirmInstallBmad: string;
204
- bmadInstallComplete: string;
205
- checkingBmadDependencies: string;
206
- bmadDependenciesMet: string;
207
- bmadDependenciesMissing: string;
208
- runningBmadCommand: string;
209
- bmadCommandSuccess: string;
210
- bmadCommandFailed: string;
211
- configuringBmad: string;
212
- bmadConfigured: string;
213
- bmadConfigFailed: string;
214
- failedToSetOnboarding: string;
215
- failedToWriteMcpConfig: string;
216
- templateDirNotFound: string;
217
- failedToReadTemplateSettings: string;
218
- failedToMergeSettings: string;
219
- preservingExistingSettings: string;
220
- failedToReadFile: string;
221
- failedToWriteFile: string;
222
- failedToCopyFile: string;
223
- failedToRemoveFile: string;
224
- failedToReadDirectory: string;
225
- failedToGetStats: string;
226
- sourceDirNotExist: string;
227
- memoryDirNotFound: string;
228
- invalidConfiguration: string;
229
- failedToParseJson: string;
230
- failedToBackupConfig: string;
231
- invalidEnvConfig: string;
232
- invalidApiUrl: string;
233
- invalidApiKey: string;
234
- invalidAuthToken: string;
235
- invalidPermissionsConfig: string;
236
- invalidPermissionsAllow: string;
237
- failedToAddOnboardingFlag: string;
238
- failedToApplyPersonality: string;
2
+ interface TranslationStructure {
3
+ common: any;
4
+ language: any;
5
+ installation: any;
6
+ api: any;
7
+ bmad: any;
8
+ workflow: any;
9
+ configuration: any;
10
+ mcp: any;
11
+ menu: any;
12
+ cli: any;
13
+ errors: any;
14
+ tools: any;
15
+ ccr: any;
239
16
  }
240
17
 
241
18
  interface McpService {
@@ -296,7 +73,7 @@ declare const AI_OUTPUT_LANGUAGES: {
296
73
  };
297
74
  };
298
75
  type AiOutputLanguage = keyof typeof AI_OUTPUT_LANGUAGES;
299
- declare const I18N: Record<SupportedLang$1, TranslationKeys>;
76
+ declare const I18N: Record<SupportedLang$1, TranslationStructure>;
300
77
  declare const MCP_SERVICES: McpService[];
301
78
 
302
79
  interface InitOptions {
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- export { A as AI_OUTPUT_LANGUAGES, C as CLAUDE_DIR, e as CLAUDE_MD_FILE, f as ClAUDE_CONFIG_FILE, I as I18N, j as LANG_LABELS, L as LEGACY_ZCF_CONFIG_FILE, M as MCP_SERVICES, S as SETTINGS_FILE, h as SUPPORTED_LANGS, Z as ZCF_CONFIG_FILE, G as addCompletedOnboarding, w as applyAiLanguageDirective, p as backupExistingConfig, B as backupMcpConfig, E as buildMcpServerConfig, d as cleanupPermissions, c as commandExists, r as configureApi, q as copyConfigFiles, n as ensureClaudeDir, F as fixWindowsMcpConfig, v as getExistingApiConfig, x as getMcpConfigPath, g as getPlatform, a as importRecommendedEnv, b as importRecommendedPermissions, i as init, l as installClaudeCode, k as isClaudeCodeInstalled, m as mergeAndCleanPermissions, s as mergeConfigs, D as mergeMcpServers, t as mergeSettingsFile, o as openSettingsJson, y as readMcpConfig, u as updateDefaultModel, z as writeMcpConfig } from './shared/zcf.CZ3RjfyP.mjs';
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.CLtDS8Pu.mjs';
2
2
  import 'inquirer';
3
3
  import 'ansis';
4
4
  import 'node:fs';
@@ -7,4 +7,7 @@ import 'dayjs';
7
7
  import 'node:url';
8
8
  import 'tinyexec';
9
9
  import 'node:fs/promises';
10
+ import 'node:child_process';
11
+ import 'node:util';
10
12
  import 'node:os';
13
+ import 'node:path';