@wundr.io/cli 1.0.11 → 1.0.13
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/bin/wundr.js +8 -4
- package/dist/ai/ai-service.d.ts.map +1 -1
- package/dist/ai/ai-service.js.map +1 -1
- package/dist/ai/claude-client.js.map +1 -1
- package/dist/ai/conversation-manager.js.map +1 -1
- package/dist/commands/ai.d.ts.map +1 -1
- package/dist/commands/ai.js +179 -24
- package/dist/commands/ai.js.map +1 -1
- package/dist/commands/analyze-optimized.d.ts.map +1 -1
- package/dist/commands/analyze-optimized.js +15 -6
- package/dist/commands/analyze-optimized.js.map +1 -1
- package/dist/commands/batch.d.ts +22 -0
- package/dist/commands/batch.d.ts.map +1 -1
- package/dist/commands/batch.js +130 -14
- package/dist/commands/batch.js.map +1 -1
- package/dist/commands/chat.d.ts +1 -0
- package/dist/commands/chat.d.ts.map +1 -1
- package/dist/commands/chat.js +7 -3
- package/dist/commands/chat.js.map +1 -1
- package/dist/commands/claude-init.d.ts +1 -1
- package/dist/commands/claude-init.d.ts.map +1 -1
- package/dist/commands/claude-init.js +16 -16
- package/dist/commands/claude-init.js.map +1 -1
- package/dist/commands/claude-setup.d.ts +5 -5
- package/dist/commands/claude-setup.d.ts.map +1 -1
- package/dist/commands/claude-setup.js +65 -59
- package/dist/commands/claude-setup.js.map +1 -1
- package/dist/commands/computer-setup.d.ts +1 -0
- package/dist/commands/computer-setup.d.ts.map +1 -1
- package/dist/commands/computer-setup.js +35 -7
- package/dist/commands/computer-setup.js.map +1 -1
- package/dist/commands/dashboard.js.map +1 -1
- package/dist/commands/govern.js.map +1 -1
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +3 -3
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/orchestrator.d.ts.map +1 -1
- package/dist/commands/orchestrator.js +11 -4
- package/dist/commands/orchestrator.js.map +1 -1
- package/dist/commands/performance-optimizer.d.ts.map +1 -1
- package/dist/commands/performance-optimizer.js.map +1 -1
- package/dist/commands/rag.d.ts.map +1 -1
- package/dist/commands/rag.js +9 -6
- package/dist/commands/rag.js.map +1 -1
- package/dist/commands/setup.d.ts +5 -10
- package/dist/commands/setup.d.ts.map +1 -1
- package/dist/commands/setup.js +35 -260
- package/dist/commands/setup.js.map +1 -1
- package/dist/commands/watch.d.ts.map +1 -1
- package/dist/commands/watch.js.map +1 -1
- package/dist/context/session-manager.js.map +1 -1
- package/dist/framework/command-interface.d.ts +349 -0
- package/dist/framework/command-interface.d.ts.map +1 -0
- package/dist/framework/command-interface.js +101 -0
- package/dist/framework/command-interface.js.map +1 -0
- package/dist/framework/command-registry.d.ts +173 -0
- package/dist/framework/command-registry.d.ts.map +1 -0
- package/dist/framework/command-registry.js +734 -0
- package/dist/framework/command-registry.js.map +1 -0
- package/dist/framework/completion-exporter.d.ts +79 -0
- package/dist/framework/completion-exporter.d.ts.map +1 -0
- package/dist/framework/completion-exporter.js +259 -0
- package/dist/framework/completion-exporter.js.map +1 -0
- package/dist/framework/debug-logger.d.ts +163 -0
- package/dist/framework/debug-logger.d.ts.map +1 -0
- package/dist/framework/debug-logger.js +373 -0
- package/dist/framework/debug-logger.js.map +1 -0
- package/dist/framework/error-handler.d.ts +196 -0
- package/dist/framework/error-handler.d.ts.map +1 -0
- package/dist/framework/error-handler.js +613 -0
- package/dist/framework/error-handler.js.map +1 -0
- package/dist/framework/help-generator.d.ts +78 -0
- package/dist/framework/help-generator.d.ts.map +1 -0
- package/dist/framework/help-generator.js +414 -0
- package/dist/framework/help-generator.js.map +1 -0
- package/dist/framework/index.d.ts +62 -0
- package/dist/framework/index.d.ts.map +1 -0
- package/dist/framework/index.js +95 -0
- package/dist/framework/index.js.map +1 -0
- package/dist/framework/interactive-repl.d.ts +138 -0
- package/dist/framework/interactive-repl.d.ts.map +1 -0
- package/dist/framework/interactive-repl.js +567 -0
- package/dist/framework/interactive-repl.js.map +1 -0
- package/dist/framework/output-formatter.d.ts +274 -0
- package/dist/framework/output-formatter.d.ts.map +1 -0
- package/dist/framework/output-formatter.js +545 -0
- package/dist/framework/output-formatter.js.map +1 -0
- package/dist/framework/progress-manager.d.ts +192 -0
- package/dist/framework/progress-manager.d.ts.map +1 -0
- package/dist/framework/progress-manager.js +408 -0
- package/dist/framework/progress-manager.js.map +1 -0
- package/dist/interactive/interactive-mode.js.map +1 -1
- package/dist/nlp/command-mapper.js.map +1 -1
- package/dist/nlp/command-parser.js.map +1 -1
- package/dist/nlp/intent-parser.d.ts.map +1 -1
- package/dist/nlp/intent-parser.js +4 -2
- package/dist/nlp/intent-parser.js.map +1 -1
- package/dist/plugins/plugin-manager.d.ts +2 -1
- package/dist/plugins/plugin-manager.d.ts.map +1 -1
- package/dist/plugins/plugin-manager.js +30 -19
- package/dist/plugins/plugin-manager.js.map +1 -1
- package/dist/utils/backup-rollback-manager.d.ts.map +1 -1
- package/dist/utils/backup-rollback-manager.js +1 -2
- package/dist/utils/backup-rollback-manager.js.map +1 -1
- package/dist/utils/logger.js.map +1 -1
- package/package.json +6 -6
- package/src/ai/ai-service.ts +16 -17
- package/src/ai/claude-client.ts +16 -16
- package/src/ai/conversation-manager.ts +29 -29
- package/src/cli.ts +4 -4
- package/src/commands/ai.ts +246 -78
- package/src/commands/alignment.ts +74 -74
- package/src/commands/analyze-optimized.ts +111 -78
- package/src/commands/analyze.ts +14 -14
- package/src/commands/batch.ts +179 -42
- package/src/commands/chat.ts +37 -30
- package/src/commands/claude-init.ts +41 -45
- package/src/commands/claude-setup.ts +204 -119
- package/src/commands/computer-setup.ts +85 -43
- package/src/commands/create-command.ts +4 -4
- package/src/commands/create.ts +27 -27
- package/src/commands/dashboard.ts +24 -24
- package/src/commands/govern.ts +25 -25
- package/src/commands/governance.ts +34 -34
- package/src/commands/guardian.ts +56 -56
- package/src/commands/init.ts +25 -22
- package/src/commands/orchestrator.ts +68 -41
- package/src/commands/performance-optimizer.ts +34 -35
- package/src/commands/plugins.ts +27 -27
- package/src/commands/project-update.ts +175 -72
- package/src/commands/rag.ts +185 -78
- package/src/commands/session.ts +35 -35
- package/src/commands/setup.ts +40 -344
- package/src/commands/test-init.ts +3 -3
- package/src/commands/test.ts +4 -4
- package/src/commands/watch.ts +28 -29
- package/src/commands/worktree.ts +49 -49
- package/src/context/context-manager.ts +10 -10
- package/src/context/session-manager.ts +41 -41
- package/src/framework/command-interface.ts +520 -0
- package/src/framework/command-registry.ts +942 -0
- package/src/framework/completion-exporter.ts +383 -0
- package/src/framework/debug-logger.ts +519 -0
- package/src/framework/error-handler.ts +867 -0
- package/src/framework/help-generator.ts +540 -0
- package/src/framework/index.ts +169 -0
- package/src/framework/interactive-repl.ts +703 -0
- package/src/framework/output-formatter.ts +834 -0
- package/src/framework/progress-manager.ts +539 -0
- package/src/index.ts +4 -4
- package/src/interactive/interactive-mode.ts +16 -16
- package/src/lib/conflict-resolution.ts +799 -9
- package/src/lib/merge-strategy.ts +529 -7
- package/src/lib/safety-mechanisms.ts +422 -18
- package/src/lib/state-detection.ts +1015 -13
- package/src/nlp/command-mapper.ts +29 -29
- package/src/nlp/command-parser.ts +17 -17
- package/src/nlp/intent-classifier.ts +7 -7
- package/src/nlp/intent-parser.ts +54 -52
- package/src/plugins/plugin-manager.ts +61 -39
- package/src/tests/computer-setup-integration.test.ts +46 -15
- package/src/types/modules.d.ts +424 -1
- package/src/utils/backup-rollback-manager.ts +11 -8
- package/src/utils/config-manager.ts +3 -3
- package/src/utils/error-handler.ts +2 -2
- package/src/utils/logger.ts +22 -22
- package/templates/batch/ci-cd.yaml +7 -7
- package/test-suites/api/health.spec.ts +20 -23
- package/test-suites/helpers/test-config.ts +14 -13
- package/test-suites/ui/accessibility.spec.ts +27 -22
- package/test-suites/ui/smoke.spec.ts +26 -21
- package/dist/commands/computer-setup-commands.d.ts +0 -53
- package/dist/commands/computer-setup-commands.d.ts.map +0 -1
- package/dist/commands/computer-setup-commands.js +0 -705
- package/dist/commands/computer-setup-commands.js.map +0 -1
- package/dist/commands/vp.d.ts +0 -7
- package/dist/commands/vp.d.ts.map +0 -1
- package/dist/commands/vp.js +0 -571
- package/dist/commands/vp.js.map +0 -1
- package/src/commands/computer-setup-commands.ts +0 -872
package/src/commands/plugins.ts
CHANGED
|
@@ -17,7 +17,7 @@ export class PluginCommands {
|
|
|
17
17
|
constructor(
|
|
18
18
|
private program: Command,
|
|
19
19
|
private configManager: ConfigManager,
|
|
20
|
-
private pluginManager: PluginManager
|
|
20
|
+
private pluginManager: PluginManager
|
|
21
21
|
) {
|
|
22
22
|
this.registerCommands();
|
|
23
23
|
}
|
|
@@ -183,7 +183,7 @@ export class PluginCommands {
|
|
|
183
183
|
'WUNDR_PLUGIN_LIST_FAILED',
|
|
184
184
|
'Failed to list plugins',
|
|
185
185
|
{ options },
|
|
186
|
-
true
|
|
186
|
+
true
|
|
187
187
|
);
|
|
188
188
|
}
|
|
189
189
|
}
|
|
@@ -201,7 +201,7 @@ export class PluginCommands {
|
|
|
201
201
|
(await this.pluginManager.isPluginInstalled(plugin))
|
|
202
202
|
) {
|
|
203
203
|
logger.warn(
|
|
204
|
-
`Plugin ${plugin} is already installed. Use --force to reinstall
|
|
204
|
+
`Plugin ${plugin} is already installed. Use --force to reinstall.`
|
|
205
205
|
);
|
|
206
206
|
return;
|
|
207
207
|
}
|
|
@@ -218,7 +218,7 @@ export class PluginCommands {
|
|
|
218
218
|
'WUNDR_PLUGIN_INSTALL_FAILED',
|
|
219
219
|
'Failed to install plugin',
|
|
220
220
|
{ plugin, options },
|
|
221
|
-
true
|
|
221
|
+
true
|
|
222
222
|
);
|
|
223
223
|
}
|
|
224
224
|
}
|
|
@@ -257,7 +257,7 @@ export class PluginCommands {
|
|
|
257
257
|
'WUNDR_PLUGIN_UNINSTALL_FAILED',
|
|
258
258
|
'Failed to uninstall plugin',
|
|
259
259
|
{ plugin, options },
|
|
260
|
-
true
|
|
260
|
+
true
|
|
261
261
|
);
|
|
262
262
|
}
|
|
263
263
|
}
|
|
@@ -278,7 +278,7 @@ export class PluginCommands {
|
|
|
278
278
|
'WUNDR_PLUGIN_ENABLE_FAILED',
|
|
279
279
|
'Failed to enable plugin',
|
|
280
280
|
{ plugin },
|
|
281
|
-
true
|
|
281
|
+
true
|
|
282
282
|
);
|
|
283
283
|
}
|
|
284
284
|
}
|
|
@@ -299,7 +299,7 @@ export class PluginCommands {
|
|
|
299
299
|
'WUNDR_PLUGIN_DISABLE_FAILED',
|
|
300
300
|
'Failed to disable plugin',
|
|
301
301
|
{ plugin },
|
|
302
|
-
true
|
|
302
|
+
true
|
|
303
303
|
);
|
|
304
304
|
}
|
|
305
305
|
}
|
|
@@ -333,7 +333,7 @@ export class PluginCommands {
|
|
|
333
333
|
'WUNDR_PLUGIN_INFO_FAILED',
|
|
334
334
|
'Failed to show plugin info',
|
|
335
335
|
{ plugin },
|
|
336
|
-
true
|
|
336
|
+
true
|
|
337
337
|
);
|
|
338
338
|
}
|
|
339
339
|
}
|
|
@@ -359,7 +359,7 @@ export class PluginCommands {
|
|
|
359
359
|
'WUNDR_PLUGIN_UPDATE_FAILED',
|
|
360
360
|
'Failed to update plugin(s)',
|
|
361
361
|
{ plugin, options },
|
|
362
|
-
true
|
|
362
|
+
true
|
|
363
363
|
);
|
|
364
364
|
}
|
|
365
365
|
}
|
|
@@ -378,7 +378,7 @@ export class PluginCommands {
|
|
|
378
378
|
} else {
|
|
379
379
|
pluginConfig = await this.createPluginFromTemplate(
|
|
380
380
|
name,
|
|
381
|
-
options.template
|
|
381
|
+
options.template
|
|
382
382
|
);
|
|
383
383
|
}
|
|
384
384
|
|
|
@@ -395,7 +395,7 @@ export class PluginCommands {
|
|
|
395
395
|
'WUNDR_PLUGIN_CREATE_FAILED',
|
|
396
396
|
'Failed to create plugin',
|
|
397
397
|
{ name, options },
|
|
398
|
-
true
|
|
398
|
+
true
|
|
399
399
|
);
|
|
400
400
|
}
|
|
401
401
|
}
|
|
@@ -421,7 +421,7 @@ export class PluginCommands {
|
|
|
421
421
|
'WUNDR_PLUGIN_PUBLISH_FAILED',
|
|
422
422
|
'Failed to publish plugin',
|
|
423
423
|
{ options },
|
|
424
|
-
true
|
|
424
|
+
true
|
|
425
425
|
);
|
|
426
426
|
}
|
|
427
427
|
}
|
|
@@ -453,14 +453,14 @@ export class PluginCommands {
|
|
|
453
453
|
Updated: plugin.updated
|
|
454
454
|
? new Date(plugin.updated).toLocaleDateString()
|
|
455
455
|
: 'Unknown',
|
|
456
|
-
}))
|
|
456
|
+
}))
|
|
457
457
|
);
|
|
458
458
|
} catch (error) {
|
|
459
459
|
throw errorHandler.createError(
|
|
460
460
|
'WUNDR_PLUGIN_SEARCH_FAILED',
|
|
461
461
|
'Failed to search plugins',
|
|
462
462
|
{ query, options },
|
|
463
|
-
true
|
|
463
|
+
true
|
|
464
464
|
);
|
|
465
465
|
}
|
|
466
466
|
}
|
|
@@ -483,7 +483,7 @@ export class PluginCommands {
|
|
|
483
483
|
'WUNDR_PLUGIN_LINK_FAILED',
|
|
484
484
|
'Failed to link plugin',
|
|
485
485
|
{ pluginPath },
|
|
486
|
-
true
|
|
486
|
+
true
|
|
487
487
|
);
|
|
488
488
|
}
|
|
489
489
|
}
|
|
@@ -500,7 +500,7 @@ export class PluginCommands {
|
|
|
500
500
|
'WUNDR_PLUGIN_UNLINK_FAILED',
|
|
501
501
|
'Failed to unlink plugin',
|
|
502
502
|
{ plugin },
|
|
503
|
-
true
|
|
503
|
+
true
|
|
504
504
|
);
|
|
505
505
|
}
|
|
506
506
|
}
|
|
@@ -522,7 +522,7 @@ export class PluginCommands {
|
|
|
522
522
|
'WUNDR_PLUGIN_TEST_FAILED',
|
|
523
523
|
'Failed to test plugin',
|
|
524
524
|
{ plugin, options },
|
|
525
|
-
true
|
|
525
|
+
true
|
|
526
526
|
);
|
|
527
527
|
}
|
|
528
528
|
}
|
|
@@ -533,19 +533,19 @@ export class PluginCommands {
|
|
|
533
533
|
private async setPluginConfig(
|
|
534
534
|
plugin: string,
|
|
535
535
|
key: string,
|
|
536
|
-
value: string
|
|
536
|
+
value: string
|
|
537
537
|
): Promise<void> {
|
|
538
538
|
try {
|
|
539
539
|
await this.pluginManager.setPluginConfig(plugin, key, value);
|
|
540
540
|
logger.success(
|
|
541
|
-
`Plugin configuration updated: ${plugin}.${key} = ${value}
|
|
541
|
+
`Plugin configuration updated: ${plugin}.${key} = ${value}`
|
|
542
542
|
);
|
|
543
543
|
} catch (error) {
|
|
544
544
|
throw errorHandler.createError(
|
|
545
545
|
'WUNDR_PLUGIN_CONFIG_SET_FAILED',
|
|
546
546
|
'Failed to set plugin configuration',
|
|
547
547
|
{ plugin, key, value },
|
|
548
|
-
true
|
|
548
|
+
true
|
|
549
549
|
);
|
|
550
550
|
}
|
|
551
551
|
}
|
|
@@ -567,7 +567,7 @@ export class PluginCommands {
|
|
|
567
567
|
'WUNDR_PLUGIN_CONFIG_GET_FAILED',
|
|
568
568
|
'Failed to get plugin configuration',
|
|
569
569
|
{ plugin, key },
|
|
570
|
-
true
|
|
570
|
+
true
|
|
571
571
|
);
|
|
572
572
|
}
|
|
573
573
|
}
|
|
@@ -576,7 +576,7 @@ export class PluginCommands {
|
|
|
576
576
|
* Helper methods for plugin operations
|
|
577
577
|
*/
|
|
578
578
|
private async listInstalledPlugins(
|
|
579
|
-
enabledOnly: boolean = false
|
|
579
|
+
enabledOnly: boolean = false
|
|
580
580
|
): Promise<void> {
|
|
581
581
|
const plugins = await this.pluginManager.getInstalledPlugins();
|
|
582
582
|
const filteredPlugins = enabledOnly
|
|
@@ -585,13 +585,13 @@ export class PluginCommands {
|
|
|
585
585
|
|
|
586
586
|
if (filteredPlugins.length === 0) {
|
|
587
587
|
logger.info(
|
|
588
|
-
enabledOnly ? 'No enabled plugins found' : 'No plugins installed'
|
|
588
|
+
enabledOnly ? 'No enabled plugins found' : 'No plugins installed'
|
|
589
589
|
);
|
|
590
590
|
return;
|
|
591
591
|
}
|
|
592
592
|
|
|
593
593
|
logger.info(
|
|
594
|
-
`${enabledOnly ? 'Enabled plugins' : 'Installed plugins'} (${filteredPlugins.length})
|
|
594
|
+
`${enabledOnly ? 'Enabled plugins' : 'Installed plugins'} (${filteredPlugins.length}):`
|
|
595
595
|
);
|
|
596
596
|
|
|
597
597
|
const pluginData = filteredPlugins.map(plugin => ({
|
|
@@ -665,7 +665,7 @@ export class PluginCommands {
|
|
|
665
665
|
|
|
666
666
|
private async createPluginFromTemplate(
|
|
667
667
|
name: string,
|
|
668
|
-
template: string
|
|
668
|
+
template: string
|
|
669
669
|
): Promise<any> {
|
|
670
670
|
const templates: Record<string, any> = {
|
|
671
671
|
basic: {
|
|
@@ -687,7 +687,7 @@ export class PluginCommands {
|
|
|
687
687
|
|
|
688
688
|
private async generatePluginStructure(
|
|
689
689
|
pluginPath: string,
|
|
690
|
-
config: any
|
|
690
|
+
config: any
|
|
691
691
|
): Promise<void> {
|
|
692
692
|
await fs.ensureDir(pluginPath);
|
|
693
693
|
|
|
@@ -754,7 +754,7 @@ export class PluginCommands {
|
|
|
754
754
|
// Create main plugin file
|
|
755
755
|
const pluginCode = this.generatePluginCode(
|
|
756
756
|
path.basename(pluginPath),
|
|
757
|
-
config
|
|
757
|
+
config
|
|
758
758
|
);
|
|
759
759
|
await fs.writeFile(path.join(srcDir, 'index.ts'), pluginCode);
|
|
760
760
|
|