pcu 0.5.6 → 0.6.3

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.
Files changed (219) hide show
  1. package/bin/pcu.js +1 -1
  2. package/dist/index.js +9559 -32
  3. package/dist/index.js.map +1 -1
  4. package/package.json +36 -84
  5. package/src/cli/commands/checkCommand.ts +227 -0
  6. package/src/cli/commands/initCommand.ts +394 -0
  7. package/src/cli/commands/securityCommand.ts +569 -0
  8. package/src/cli/commands/updateCommand.ts +245 -0
  9. package/src/cli/formatters/outputFormatter.ts +830 -0
  10. package/src/cli/formatters/progressBar.ts +700 -0
  11. package/src/cli/index.ts +565 -0
  12. package/src/cli/interactive/interactivePrompts.ts +517 -0
  13. package/src/cli/options/globalOptions.ts +380 -0
  14. package/src/cli/options/index.ts +5 -0
  15. package/src/cli/themes/colorTheme.ts +379 -0
  16. package/src/cli/validators/commandValidator.ts +395 -0
  17. package/src/cli/validators/index.ts +5 -0
  18. package/src/index.ts +4 -0
  19. package/README.ja.md +0 -582
  20. package/README.md +0 -690
  21. package/README.zh-CN.md +0 -630
  22. package/dist/application/services/CatalogUpdateService.d.ts +0 -209
  23. package/dist/application/services/CatalogUpdateService.d.ts.map +0 -1
  24. package/dist/application/services/CatalogUpdateService.js +0 -836
  25. package/dist/application/services/CatalogUpdateService.js.map +0 -1
  26. package/dist/application/services/WorkspaceService.d.ts +0 -139
  27. package/dist/application/services/WorkspaceService.d.ts.map +0 -1
  28. package/dist/application/services/WorkspaceService.js +0 -340
  29. package/dist/application/services/WorkspaceService.js.map +0 -1
  30. package/dist/cli/commands/CheckCommand.d.ts +0 -40
  31. package/dist/cli/commands/CheckCommand.d.ts.map +0 -1
  32. package/dist/cli/commands/CheckCommand.js +0 -177
  33. package/dist/cli/commands/CheckCommand.js.map +0 -1
  34. package/dist/cli/commands/InitCommand.d.ts +0 -53
  35. package/dist/cli/commands/InitCommand.d.ts.map +0 -1
  36. package/dist/cli/commands/InitCommand.js +0 -338
  37. package/dist/cli/commands/InitCommand.js.map +0 -1
  38. package/dist/cli/commands/SecurityCommand.d.ts +0 -113
  39. package/dist/cli/commands/SecurityCommand.d.ts.map +0 -1
  40. package/dist/cli/commands/SecurityCommand.js +0 -410
  41. package/dist/cli/commands/SecurityCommand.js.map +0 -1
  42. package/dist/cli/commands/UpdateCommand.d.ts +0 -44
  43. package/dist/cli/commands/UpdateCommand.d.ts.map +0 -1
  44. package/dist/cli/commands/UpdateCommand.js +0 -189
  45. package/dist/cli/commands/UpdateCommand.js.map +0 -1
  46. package/dist/cli/formatters/OutputFormatter.d.ts +0 -116
  47. package/dist/cli/formatters/OutputFormatter.d.ts.map +0 -1
  48. package/dist/cli/formatters/OutputFormatter.js +0 -664
  49. package/dist/cli/formatters/OutputFormatter.js.map +0 -1
  50. package/dist/cli/formatters/ProgressBar.d.ts +0 -195
  51. package/dist/cli/formatters/ProgressBar.d.ts.map +0 -1
  52. package/dist/cli/formatters/ProgressBar.js +0 -622
  53. package/dist/cli/formatters/ProgressBar.js.map +0 -1
  54. package/dist/cli/index.d.ts +0 -12
  55. package/dist/cli/index.d.ts.map +0 -1
  56. package/dist/cli/index.js +0 -492
  57. package/dist/cli/index.js.map +0 -1
  58. package/dist/cli/interactive/InteractivePrompts.d.ts +0 -85
  59. package/dist/cli/interactive/InteractivePrompts.d.ts.map +0 -1
  60. package/dist/cli/interactive/InteractivePrompts.js +0 -434
  61. package/dist/cli/interactive/InteractivePrompts.js.map +0 -1
  62. package/dist/cli/options/GlobalOptions.d.ts +0 -117
  63. package/dist/cli/options/GlobalOptions.d.ts.map +0 -1
  64. package/dist/cli/options/GlobalOptions.js +0 -278
  65. package/dist/cli/options/GlobalOptions.js.map +0 -1
  66. package/dist/cli/options/index.d.ts +0 -5
  67. package/dist/cli/options/index.d.ts.map +0 -1
  68. package/dist/cli/options/index.js +0 -5
  69. package/dist/cli/options/index.js.map +0 -1
  70. package/dist/cli/themes/ColorTheme.d.ts +0 -211
  71. package/dist/cli/themes/ColorTheme.d.ts.map +0 -1
  72. package/dist/cli/themes/ColorTheme.js +0 -267
  73. package/dist/cli/themes/ColorTheme.js.map +0 -1
  74. package/dist/cli/validators/CommandValidator.d.ts +0 -60
  75. package/dist/cli/validators/CommandValidator.d.ts.map +0 -1
  76. package/dist/cli/validators/CommandValidator.js +0 -319
  77. package/dist/cli/validators/CommandValidator.js.map +0 -1
  78. package/dist/cli/validators/index.d.ts +0 -5
  79. package/dist/cli/validators/index.d.ts.map +0 -1
  80. package/dist/cli/validators/index.js +0 -5
  81. package/dist/cli/validators/index.js.map +0 -1
  82. package/dist/common/config/Config.d.ts +0 -142
  83. package/dist/common/config/Config.d.ts.map +0 -1
  84. package/dist/common/config/Config.js +0 -382
  85. package/dist/common/config/Config.js.map +0 -1
  86. package/dist/common/config/ConfigLoader.d.ts +0 -49
  87. package/dist/common/config/ConfigLoader.d.ts.map +0 -1
  88. package/dist/common/config/ConfigLoader.js +0 -180
  89. package/dist/common/config/ConfigLoader.js.map +0 -1
  90. package/dist/common/config/PackageFilterConfig.d.ts +0 -56
  91. package/dist/common/config/PackageFilterConfig.d.ts.map +0 -1
  92. package/dist/common/config/PackageFilterConfig.js +0 -94
  93. package/dist/common/config/PackageFilterConfig.js.map +0 -1
  94. package/dist/common/config/index.d.ts +0 -8
  95. package/dist/common/config/index.d.ts.map +0 -1
  96. package/dist/common/config/index.js +0 -8
  97. package/dist/common/config/index.js.map +0 -1
  98. package/dist/common/error-handling/ErrorTracker.d.ts +0 -48
  99. package/dist/common/error-handling/ErrorTracker.d.ts.map +0 -1
  100. package/dist/common/error-handling/ErrorTracker.js +0 -93
  101. package/dist/common/error-handling/ErrorTracker.js.map +0 -1
  102. package/dist/common/error-handling/UserFriendlyErrorHandler.d.ts +0 -74
  103. package/dist/common/error-handling/UserFriendlyErrorHandler.d.ts.map +0 -1
  104. package/dist/common/error-handling/UserFriendlyErrorHandler.js +0 -703
  105. package/dist/common/error-handling/UserFriendlyErrorHandler.js.map +0 -1
  106. package/dist/common/error-handling/index.d.ts +0 -11
  107. package/dist/common/error-handling/index.d.ts.map +0 -1
  108. package/dist/common/error-handling/index.js +0 -9
  109. package/dist/common/error-handling/index.js.map +0 -1
  110. package/dist/common/logger/Logger.d.ts +0 -110
  111. package/dist/common/logger/Logger.d.ts.map +0 -1
  112. package/dist/common/logger/Logger.js +0 -289
  113. package/dist/common/logger/Logger.js.map +0 -1
  114. package/dist/common/logger/index.d.ts +0 -6
  115. package/dist/common/logger/index.d.ts.map +0 -1
  116. package/dist/common/logger/index.js +0 -6
  117. package/dist/common/logger/index.js.map +0 -1
  118. package/dist/common/types/cli.d.ts +0 -265
  119. package/dist/common/types/cli.d.ts.map +0 -1
  120. package/dist/common/types/cli.js +0 -5
  121. package/dist/common/types/cli.js.map +0 -1
  122. package/dist/common/types/core.d.ts +0 -270
  123. package/dist/common/types/core.d.ts.map +0 -1
  124. package/dist/common/types/core.js +0 -32
  125. package/dist/common/types/core.js.map +0 -1
  126. package/dist/common/types/index.d.ts +0 -8
  127. package/dist/common/types/index.d.ts.map +0 -1
  128. package/dist/common/types/index.js +0 -8
  129. package/dist/common/types/index.js.map +0 -1
  130. package/dist/common/utils/VersionChecker.d.ts +0 -54
  131. package/dist/common/utils/VersionChecker.d.ts.map +0 -1
  132. package/dist/common/utils/VersionChecker.js +0 -180
  133. package/dist/common/utils/VersionChecker.js.map +0 -1
  134. package/dist/common/utils/async.d.ts +0 -74
  135. package/dist/common/utils/async.d.ts.map +0 -1
  136. package/dist/common/utils/async.js +0 -228
  137. package/dist/common/utils/async.js.map +0 -1
  138. package/dist/common/utils/format.d.ts +0 -32
  139. package/dist/common/utils/format.d.ts.map +0 -1
  140. package/dist/common/utils/format.js +0 -121
  141. package/dist/common/utils/format.js.map +0 -1
  142. package/dist/common/utils/git.d.ts +0 -44
  143. package/dist/common/utils/git.d.ts.map +0 -1
  144. package/dist/common/utils/git.js +0 -147
  145. package/dist/common/utils/git.js.map +0 -1
  146. package/dist/common/utils/index.d.ts +0 -12
  147. package/dist/common/utils/index.d.ts.map +0 -1
  148. package/dist/common/utils/index.js +0 -12
  149. package/dist/common/utils/index.js.map +0 -1
  150. package/dist/common/utils/string.d.ts +0 -56
  151. package/dist/common/utils/string.d.ts.map +0 -1
  152. package/dist/common/utils/string.js +0 -134
  153. package/dist/common/utils/string.js.map +0 -1
  154. package/dist/common/utils/validation.d.ts +0 -88
  155. package/dist/common/utils/validation.d.ts.map +0 -1
  156. package/dist/common/utils/validation.js +0 -308
  157. package/dist/common/utils/validation.js.map +0 -1
  158. package/dist/domain/entities/Catalog.d.ts +0 -117
  159. package/dist/domain/entities/Catalog.d.ts.map +0 -1
  160. package/dist/domain/entities/Catalog.js +0 -240
  161. package/dist/domain/entities/Catalog.js.map +0 -1
  162. package/dist/domain/entities/Package.d.ts +0 -143
  163. package/dist/domain/entities/Package.d.ts.map +0 -1
  164. package/dist/domain/entities/Package.js +0 -272
  165. package/dist/domain/entities/Package.js.map +0 -1
  166. package/dist/domain/entities/Workspace.d.ts +0 -95
  167. package/dist/domain/entities/Workspace.d.ts.map +0 -1
  168. package/dist/domain/entities/Workspace.js +0 -173
  169. package/dist/domain/entities/Workspace.js.map +0 -1
  170. package/dist/domain/repositories/WorkspaceRepository.d.ts +0 -41
  171. package/dist/domain/repositories/WorkspaceRepository.d.ts.map +0 -1
  172. package/dist/domain/repositories/WorkspaceRepository.js +0 -8
  173. package/dist/domain/repositories/WorkspaceRepository.js.map +0 -1
  174. package/dist/domain/value-objects/CatalogCollection.d.ts +0 -106
  175. package/dist/domain/value-objects/CatalogCollection.d.ts.map +0 -1
  176. package/dist/domain/value-objects/CatalogCollection.js +0 -230
  177. package/dist/domain/value-objects/CatalogCollection.js.map +0 -1
  178. package/dist/domain/value-objects/PackageCollection.d.ts +0 -122
  179. package/dist/domain/value-objects/PackageCollection.d.ts.map +0 -1
  180. package/dist/domain/value-objects/PackageCollection.js +0 -263
  181. package/dist/domain/value-objects/PackageCollection.js.map +0 -1
  182. package/dist/domain/value-objects/Version.d.ts +0 -141
  183. package/dist/domain/value-objects/Version.d.ts.map +0 -1
  184. package/dist/domain/value-objects/Version.js +0 -268
  185. package/dist/domain/value-objects/Version.js.map +0 -1
  186. package/dist/domain/value-objects/WorkspaceConfig.d.ts +0 -144
  187. package/dist/domain/value-objects/WorkspaceConfig.d.ts.map +0 -1
  188. package/dist/domain/value-objects/WorkspaceConfig.js +0 -357
  189. package/dist/domain/value-objects/WorkspaceConfig.js.map +0 -1
  190. package/dist/domain/value-objects/WorkspaceId.d.ts +0 -51
  191. package/dist/domain/value-objects/WorkspaceId.d.ts.map +0 -1
  192. package/dist/domain/value-objects/WorkspaceId.js +0 -104
  193. package/dist/domain/value-objects/WorkspaceId.js.map +0 -1
  194. package/dist/domain/value-objects/WorkspacePath.d.ts +0 -75
  195. package/dist/domain/value-objects/WorkspacePath.d.ts.map +0 -1
  196. package/dist/domain/value-objects/WorkspacePath.js +0 -128
  197. package/dist/domain/value-objects/WorkspacePath.js.map +0 -1
  198. package/dist/index.d.ts +0 -25
  199. package/dist/index.d.ts.map +0 -1
  200. package/dist/infrastructure/cache/Cache.d.ts +0 -161
  201. package/dist/infrastructure/cache/Cache.d.ts.map +0 -1
  202. package/dist/infrastructure/cache/Cache.js +0 -398
  203. package/dist/infrastructure/cache/Cache.js.map +0 -1
  204. package/dist/infrastructure/cache/index.d.ts +0 -6
  205. package/dist/infrastructure/cache/index.d.ts.map +0 -1
  206. package/dist/infrastructure/cache/index.js +0 -6
  207. package/dist/infrastructure/cache/index.js.map +0 -1
  208. package/dist/infrastructure/external-services/NpmRegistryService.d.ts +0 -145
  209. package/dist/infrastructure/external-services/NpmRegistryService.d.ts.map +0 -1
  210. package/dist/infrastructure/external-services/NpmRegistryService.js +0 -466
  211. package/dist/infrastructure/external-services/NpmRegistryService.js.map +0 -1
  212. package/dist/infrastructure/file-system/FileSystemService.d.ts +0 -120
  213. package/dist/infrastructure/file-system/FileSystemService.d.ts.map +0 -1
  214. package/dist/infrastructure/file-system/FileSystemService.js +0 -663
  215. package/dist/infrastructure/file-system/FileSystemService.js.map +0 -1
  216. package/dist/infrastructure/repositories/FileWorkspaceRepository.d.ts +0 -57
  217. package/dist/infrastructure/repositories/FileWorkspaceRepository.d.ts.map +0 -1
  218. package/dist/infrastructure/repositories/FileWorkspaceRepository.js +0 -179
  219. package/dist/infrastructure/repositories/FileWorkspaceRepository.js.map +0 -1
@@ -1,278 +0,0 @@
1
- /**
2
- * Global CLI Options
3
- *
4
- * Defines standardized option definitions for all CLI commands.
5
- * Provides consistent option parsing and validation.
6
- */
7
- import { Option } from 'commander';
8
- /**
9
- * Global options available to all commands
10
- */
11
- export const globalOptions = [
12
- new Option('-w, --workspace <path>', 'workspace directory path').env('PCU_WORKSPACE'),
13
- new Option('-v, --verbose', 'enable verbose logging').env('PCU_VERBOSE'),
14
- new Option('--no-color', 'disable colored output').env('PCU_NO_COLOR'),
15
- new Option('--registry <url>', 'NPM registry URL').env('PCU_REGISTRY'),
16
- new Option('--timeout <ms>', 'request timeout in milliseconds')
17
- .argParser(parseInt)
18
- .env('PCU_TIMEOUT'),
19
- new Option('--config <path>', 'path to configuration file').env('PCU_CONFIG'),
20
- ];
21
- /**
22
- * Check command specific options
23
- */
24
- export const checkOptions = [
25
- ...globalOptions,
26
- new Option('--catalog <name>', 'check specific catalog only').env('PCU_CATALOG'),
27
- new Option('-f, --format <type>', 'output format')
28
- .choices(['table', 'json', 'yaml', 'minimal'])
29
- .default('table')
30
- .env('PCU_OUTPUT_FORMAT'),
31
- new Option('-t, --target <type>', 'update target')
32
- .choices(['latest', 'greatest', 'minor', 'patch', 'newest'])
33
- .default('latest')
34
- .env('PCU_UPDATE_TARGET'),
35
- new Option('--prerelease', 'include prerelease versions').env('PCU_PRERELEASE'),
36
- new Option('--include <pattern...>', 'include packages matching pattern').env('PCU_INCLUDE'),
37
- new Option('--exclude <pattern...>', 'exclude packages matching pattern').env('PCU_EXCLUDE'),
38
- ];
39
- /**
40
- * Update command specific options
41
- */
42
- export const updateOptions = [
43
- ...checkOptions,
44
- new Option('-i, --interactive', 'interactive mode to choose updates').env('PCU_INTERACTIVE'),
45
- new Option('-d, --dry-run', 'preview changes without writing files').env('PCU_DRY_RUN'),
46
- new Option('--force', 'force updates even if risky').env('PCU_FORCE'),
47
- new Option('--create-backup', 'create backup files before updating').env('PCU_CREATE_BACKUP'),
48
- ];
49
- /**
50
- * Analyze command specific options
51
- */
52
- export const analyzeOptions = [
53
- ...globalOptions,
54
- new Option('-f, --format <type>', 'output format')
55
- .choices(['table', 'json', 'yaml', 'minimal'])
56
- .default('table')
57
- .env('PCU_OUTPUT_FORMAT'),
58
- ];
59
- /**
60
- * Workspace command specific options
61
- */
62
- export const workspaceOptions = [
63
- ...globalOptions,
64
- new Option('--validate', 'validate workspace configuration'),
65
- new Option('--stats', 'show workspace statistics'),
66
- new Option('--info', 'show workspace information'),
67
- new Option('-f, --format <type>', 'output format')
68
- .choices(['table', 'json', 'yaml', 'minimal'])
69
- .default('table')
70
- .env('PCU_OUTPUT_FORMAT'),
71
- ];
72
- /**
73
- * Option groups for better help organization
74
- */
75
- export const optionGroups = {
76
- global: {
77
- title: 'Global Options',
78
- options: globalOptions,
79
- },
80
- output: {
81
- title: 'Output Options',
82
- options: [
83
- new Option('-f, --format <type>', 'output format')
84
- .choices(['table', 'json', 'yaml', 'minimal'])
85
- .default('table'),
86
- new Option('--no-color', 'disable colored output'),
87
- new Option('-v, --verbose', 'enable verbose logging'),
88
- ],
89
- },
90
- filtering: {
91
- title: 'Filtering Options',
92
- options: [
93
- new Option('--catalog <name>', 'check specific catalog only'),
94
- new Option('--include <pattern...>', 'include packages matching pattern'),
95
- new Option('--exclude <pattern...>', 'exclude packages matching pattern'),
96
- ],
97
- },
98
- update: {
99
- title: 'Update Options',
100
- options: [
101
- new Option('-t, --target <type>', 'update target')
102
- .choices(['latest', 'greatest', 'minor', 'patch', 'newest'])
103
- .default('latest'),
104
- new Option('--prerelease', 'include prerelease versions'),
105
- new Option('-i, --interactive', 'interactive mode'),
106
- new Option('-d, --dry-run', 'preview changes only'),
107
- new Option('--force', 'force updates'),
108
- new Option('--create-backup', 'create backup files'),
109
- ],
110
- },
111
- registry: {
112
- title: 'Registry Options',
113
- options: [
114
- new Option('--registry <url>', 'NPM registry URL'),
115
- new Option('--timeout <ms>', 'request timeout').argParser(parseInt),
116
- ],
117
- },
118
- };
119
- /**
120
- * Utility functions for option handling
121
- */
122
- export class OptionUtils {
123
- /**
124
- * Parse and validate global options
125
- */
126
- static parseGlobalOptions(options) {
127
- const parsed = {};
128
- if (options.workspace) {
129
- parsed.workspace = String(options.workspace).trim();
130
- }
131
- if (options.verbose !== undefined) {
132
- parsed.verbose = Boolean(options.verbose);
133
- }
134
- if (options.color !== undefined) {
135
- parsed.color = Boolean(options.color);
136
- }
137
- if (options.registry) {
138
- parsed.registry = String(options.registry).trim();
139
- }
140
- if (options.timeout) {
141
- const timeout = parseInt(String(options.timeout), 10);
142
- if (!isNaN(timeout) && timeout > 0) {
143
- parsed.timeout = timeout;
144
- }
145
- }
146
- if (options.config) {
147
- parsed.config = String(options.config).trim();
148
- }
149
- return parsed;
150
- }
151
- /**
152
- * Parse check command options
153
- */
154
- static parseCheckOptions(options) {
155
- const global = this.parseGlobalOptions(options);
156
- const check = { ...global };
157
- if (options.catalog) {
158
- check.catalog = String(options.catalog).trim();
159
- }
160
- if (options.format && typeof options.format === 'string') {
161
- check.format = options.format;
162
- }
163
- if (options.target && typeof options.target === 'string') {
164
- check.target = options.target;
165
- }
166
- if (options.prerelease !== undefined) {
167
- check.prerelease = Boolean(options.prerelease);
168
- }
169
- if (options.include) {
170
- check.include = Array.isArray(options.include)
171
- ? options.include.map((p) => String(p).trim()).filter(Boolean)
172
- : [String(options.include).trim()].filter(Boolean);
173
- }
174
- if (options.exclude) {
175
- check.exclude = Array.isArray(options.exclude)
176
- ? options.exclude.map((p) => String(p).trim()).filter(Boolean)
177
- : [String(options.exclude).trim()].filter(Boolean);
178
- }
179
- return check;
180
- }
181
- /**
182
- * Parse update command options
183
- */
184
- static parseUpdateOptions(options) {
185
- const check = this.parseCheckOptions(options);
186
- const update = { ...check };
187
- if (options.interactive !== undefined) {
188
- update.interactive = Boolean(options.interactive);
189
- }
190
- if (options.dryRun !== undefined) {
191
- update.dryRun = Boolean(options.dryRun);
192
- }
193
- if (options.force !== undefined) {
194
- update.force = Boolean(options.force);
195
- }
196
- if (options.createBackup !== undefined) {
197
- update.createBackup = Boolean(options.createBackup);
198
- }
199
- return update;
200
- }
201
- /**
202
- * Parse analyze command options
203
- */
204
- static parseAnalyzeOptions(options) {
205
- const global = this.parseGlobalOptions(options);
206
- const analyze = { ...global };
207
- if (options.format && typeof options.format === 'string') {
208
- analyze.format = options.format;
209
- }
210
- return analyze;
211
- }
212
- /**
213
- * Parse workspace command options
214
- */
215
- static parseWorkspaceOptions(options) {
216
- const global = this.parseGlobalOptions(options);
217
- const workspace = { ...global };
218
- if (options.validate !== undefined) {
219
- workspace.validate = Boolean(options.validate);
220
- }
221
- if (options.stats !== undefined) {
222
- workspace.stats = Boolean(options.stats);
223
- }
224
- if (options.info !== undefined) {
225
- workspace.info = Boolean(options.info);
226
- }
227
- if (options.format && typeof options.format === 'string') {
228
- workspace.format = options.format;
229
- }
230
- return workspace;
231
- }
232
- /**
233
- * Generate help text for option group
234
- */
235
- static generateHelpText(groupName) {
236
- const group = optionGroups[groupName];
237
- if (!group)
238
- return '';
239
- const lines = [`${group.title}:`];
240
- for (const option of group.options) {
241
- const flags = option.flags;
242
- const description = option.description || '';
243
- const choices = option.argChoices ? ` (choices: ${option.argChoices.join(', ')})` : '';
244
- const defaultValue = option.defaultValue ? ` (default: ${option.defaultValue})` : '';
245
- lines.push(` ${flags.padEnd(30)} ${description}${choices}${defaultValue}`);
246
- }
247
- return lines.join('\n');
248
- }
249
- /**
250
- * Validate option combinations
251
- */
252
- static validateOptionCombinations(command, options) {
253
- const errors = [];
254
- switch (command) {
255
- case 'update':
256
- if (options.interactive && options.dryRun) {
257
- errors.push('Cannot use --interactive with --dry-run');
258
- }
259
- break;
260
- case 'workspace':
261
- const actionCount = [options.validate, options.stats, options.info].filter(Boolean).length;
262
- if (actionCount > 1) {
263
- errors.push('Cannot use multiple workspace actions simultaneously');
264
- }
265
- if (actionCount === 0) {
266
- // Default to info
267
- options.info = true;
268
- }
269
- break;
270
- }
271
- // Global validations
272
- if (options.verbose && options.silent) {
273
- errors.push('Cannot use both --verbose and --silent');
274
- }
275
- return errors;
276
- }
277
- }
278
- //# sourceMappingURL=GlobalOptions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GlobalOptions.js","sourceRoot":"","sources":["../../../src/cli/options/GlobalOptions.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAsCnC;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,IAAI,MAAM,CAAC,wBAAwB,EAAE,0BAA0B,CAAC,CAAC,GAAG,CAAC,eAAe,CAAC;IAErF,IAAI,MAAM,CAAC,eAAe,EAAE,wBAAwB,CAAC,CAAC,GAAG,CAAC,aAAa,CAAC;IAExE,IAAI,MAAM,CAAC,YAAY,EAAE,wBAAwB,CAAC,CAAC,GAAG,CAAC,cAAc,CAAC;IAEtE,IAAI,MAAM,CAAC,kBAAkB,EAAE,kBAAkB,CAAC,CAAC,GAAG,CAAC,cAAc,CAAC;IAEtE,IAAI,MAAM,CAAC,gBAAgB,EAAE,iCAAiC,CAAC;SAC5D,SAAS,CAAC,QAAQ,CAAC;SACnB,GAAG,CAAC,aAAa,CAAC;IAErB,IAAI,MAAM,CAAC,iBAAiB,EAAE,4BAA4B,CAAC,CAAC,GAAG,CAAC,YAAY,CAAC;CAC9E,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,GAAG,aAAa;IAEhB,IAAI,MAAM,CAAC,kBAAkB,EAAE,6BAA6B,CAAC,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,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,IAAI,WAAW,GAAG,OAAO,GAAG,YAAY,EAAE,CAAC,CAAC;QAC9E,CAAC;QAED,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,0BAA0B,CAAC,OAAe,EAAE,OAAY;QAC7D,MAAM,MAAM,GAAa,EAAE,CAAC;QAE5B,QAAQ,OAAO,EAAE,CAAC;YAChB,KAAK,QAAQ;gBACX,IAAI,OAAO,CAAC,WAAW,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;oBAC1C,MAAM,CAAC,IAAI,CAAC,yCAAyC,CAAC,CAAC;gBACzD,CAAC;gBACD,MAAM;YAER,KAAK,WAAW;gBACd,MAAM,WAAW,GAAG,CAAC,OAAO,CAAC,QAAQ,EAAE,OAAO,CAAC,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC;gBAC3F,IAAI,WAAW,GAAG,CAAC,EAAE,CAAC;oBACpB,MAAM,CAAC,IAAI,CAAC,sDAAsD,CAAC,CAAC;gBACtE,CAAC;gBACD,IAAI,WAAW,KAAK,CAAC,EAAE,CAAC;oBACtB,kBAAkB;oBAClB,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC;gBACtB,CAAC;gBACD,MAAM;QACV,CAAC;QAED,qBAAqB;QACrB,IAAI,OAAO,CAAC,OAAO,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;YACtC,MAAM,CAAC,IAAI,CAAC,wCAAwC,CAAC,CAAC;QACxD,CAAC;QAED,OAAO,MAAM,CAAC;IAChB,CAAC;CACF"}
@@ -1,5 +0,0 @@
1
- /**
2
- * CLI Options Entry Point
3
- */
4
- export * from './GlobalOptions.js';
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/cli/options/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,oBAAoB,CAAC"}
@@ -1,5 +0,0 @@
1
- /**
2
- * CLI Options Entry Point
3
- */
4
- export * from './GlobalOptions.js';
5
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/cli/options/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,oBAAoB,CAAC"}
@@ -1,211 +0,0 @@
1
- /**
2
- * Color Theme System
3
- *
4
- * Provides consistent color schemes and styling across the CLI
5
- */
6
- export interface ColorTheme {
7
- primary: (text: string) => string;
8
- secondary: (text: string) => string;
9
- accent: (text: string) => string;
10
- success: (text: string) => string;
11
- warning: (text: string) => string;
12
- error: (text: string) => string;
13
- info: (text: string) => string;
14
- text: (text: string) => string;
15
- muted: (text: string) => string;
16
- border: (text: string) => string;
17
- background: (text: string) => string;
18
- pending: (text: string) => string;
19
- processing: (text: string) => string;
20
- completed: (text: string) => string;
21
- major: (text: string) => string;
22
- minor: (text: string) => string;
23
- patch: (text: string) => string;
24
- prerelease: (text: string) => string;
25
- riskHigh: (text: string) => string;
26
- riskMedium: (text: string) => string;
27
- riskLow: (text: string) => string;
28
- }
29
- export declare class ThemeManager {
30
- private static currentTheme;
31
- static themes: {
32
- default: {
33
- primary: (text: string) => string;
34
- secondary: (text: string) => string;
35
- accent: (text: string) => string;
36
- success: (text: string) => string;
37
- warning: (text: string) => string;
38
- error: (text: string) => string;
39
- info: (text: string) => string;
40
- text: (text: string) => string;
41
- muted: (text: string) => string;
42
- border: (text: string) => string;
43
- background: (text: string) => string;
44
- pending: (text: string) => string;
45
- processing: (text: string) => string;
46
- completed: (text: string) => string;
47
- major: (text: string) => string;
48
- minor: (text: string) => string;
49
- patch: (text: string) => string;
50
- prerelease: (text: string) => string;
51
- riskHigh: (text: string) => string;
52
- riskMedium: (text: string) => string;
53
- riskLow: (text: string) => string;
54
- };
55
- modern: {
56
- primary: (text: string) => string;
57
- secondary: (text: string) => string;
58
- accent: (text: string) => string;
59
- success: (text: string) => string;
60
- warning: (text: string) => string;
61
- error: (text: string) => string;
62
- info: (text: string) => string;
63
- text: (text: string) => string;
64
- muted: (text: string) => string;
65
- border: (text: string) => string;
66
- background: (text: string) => string;
67
- pending: (text: string) => string;
68
- processing: (text: string) => string;
69
- completed: (text: string) => string;
70
- major: (text: string) => string;
71
- minor: (text: string) => string;
72
- patch: (text: string) => string;
73
- prerelease: (text: string) => string;
74
- riskHigh: (text: string) => string;
75
- riskMedium: (text: string) => string;
76
- riskLow: (text: string) => string;
77
- };
78
- minimal: {
79
- primary: (text: string) => string;
80
- secondary: (text: string) => string;
81
- accent: (text: string) => string;
82
- success: (text: string) => string;
83
- warning: (text: string) => string;
84
- error: (text: string) => string;
85
- info: (text: string) => string;
86
- text: (text: string) => string;
87
- muted: (text: string) => string;
88
- border: (text: string) => string;
89
- background: (text: string) => string;
90
- pending: (text: string) => string;
91
- processing: (text: string) => string;
92
- completed: (text: string) => string;
93
- major: (text: string) => string;
94
- minor: (text: string) => string;
95
- patch: (text: string) => string;
96
- prerelease: (text: string) => string;
97
- riskHigh: (text: string) => string;
98
- riskMedium: (text: string) => string;
99
- riskLow: (text: string) => string;
100
- };
101
- neon: {
102
- primary: (text: string) => string;
103
- secondary: (text: string) => string;
104
- accent: (text: string) => string;
105
- success: (text: string) => string;
106
- warning: (text: string) => string;
107
- error: (text: string) => string;
108
- info: (text: string) => string;
109
- text: (text: string) => string;
110
- muted: (text: string) => string;
111
- border: (text: string) => string;
112
- background: (text: string) => string;
113
- pending: (text: string) => string;
114
- processing: (text: string) => string;
115
- completed: (text: string) => string;
116
- major: (text: string) => string;
117
- minor: (text: string) => string;
118
- patch: (text: string) => string;
119
- prerelease: (text: string) => string;
120
- riskHigh: (text: string) => string;
121
- riskMedium: (text: string) => string;
122
- riskLow: (text: string) => string;
123
- };
124
- };
125
- static setTheme(themeName: keyof typeof ThemeManager.themes): void;
126
- static getTheme(): ColorTheme;
127
- static listThemes(): string[];
128
- }
129
- /**
130
- * Styled text utilities
131
- */
132
- export declare class StyledText {
133
- private static theme;
134
- static updateTheme(): void;
135
- static brand(text: string): string;
136
- static secondary(text: string): string;
137
- static accent(text: string): string;
138
- static success(text: string): string;
139
- static warning(text: string): string;
140
- static error(text: string): string;
141
- static info(text: string): string;
142
- static text(text: string): string;
143
- static muted(text: string): string;
144
- static border(text: string): string;
145
- static pending(text: string): string;
146
- static processing(text: string): string;
147
- static completed(text: string): string;
148
- static versionMajor(text: string): string;
149
- static versionMinor(text: string): string;
150
- static versionPatch(text: string): string;
151
- static versionPrerelease(text: string): string;
152
- static riskHigh(text: string): string;
153
- static riskMedium(text: string): string;
154
- static riskLow(text: string): string;
155
- static icon(icon: string, text?: string): string;
156
- static iconSuccess(text?: string): string;
157
- static iconWarning(text?: string): string;
158
- static iconError(text?: string): string;
159
- static iconInfo(text?: string): string;
160
- static iconPackage(text?: string): string;
161
- static iconCatalog(text?: string): string;
162
- static iconUpdate(text?: string): string;
163
- static iconSecurity(text?: string): string;
164
- static iconAnalysis(text?: string): string;
165
- static iconCheck(text?: string): string;
166
- static iconProgress(text?: string): string;
167
- static iconComplete(text?: string): string;
168
- }
169
- /**
170
- * Table styling utilities
171
- */
172
- export declare class TableStyles {
173
- static createHeaderStyle(color: any): (text: string) => any;
174
- static createBorderStyle(color: any): (text: string) => any;
175
- static createCellStyle(color: any): (text: string) => any;
176
- }
177
- /**
178
- * Theme configuration interface
179
- */
180
- export interface ThemeConfig {
181
- name: string;
182
- colors: Partial<ColorTheme>;
183
- icons: Record<string, string>;
184
- styles: Record<string, any>;
185
- }
186
- /**
187
- * Theme presets for different use cases
188
- */
189
- export declare const themePresets: {
190
- development: {
191
- name: string;
192
- description: string;
193
- theme: string;
194
- };
195
- production: {
196
- name: string;
197
- description: string;
198
- theme: string;
199
- };
200
- presentation: {
201
- name: string;
202
- description: string;
203
- theme: string;
204
- };
205
- default: {
206
- name: string;
207
- description: string;
208
- theme: string;
209
- };
210
- };
211
- //# sourceMappingURL=ColorTheme.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ColorTheme.d.ts","sourceRoot":"","sources":["../../../src/cli/themes/ColorTheme.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,MAAM,WAAW,UAAU;IAEzB,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;IAClC,SAAS,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;IACpC,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;IAGjC,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;IAClC,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;IAClC,KAAK,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;IAChC,IAAI,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;IAG/B,IAAI,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;IAC/B,KAAK,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;IAChC,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;IACjC,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;IAGrC,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;IAClC,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;IACrC,SAAS,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;IAGpC,KAAK,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;IAChC,KAAK,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;IAChC,KAAK,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAA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