@wundr.io/cli 1.0.0 → 1.0.2-dev.20260530174250.ef0ec927
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 +696 -280
- package/bin/wundr.js +13 -5
- package/package.json +30 -9
- package/src/ai/ai-service.ts +6 -4
- package/src/ai/claude-client.ts +6 -2
- package/src/ai/conversation-manager.ts +12 -5
- package/src/cli.ts +42 -13
- package/src/commands/ai.ts +340 -64
- package/src/commands/alignment.ts +1212 -0
- package/src/commands/analyze-optimized.ts +371 -33
- package/src/commands/analyze.ts +8 -6
- package/src/commands/batch.ts +166 -26
- package/src/commands/chat.ts +20 -10
- package/src/commands/claude-init.ts +31 -27
- package/src/commands/claude-setup.ts +761 -81
- package/src/commands/computer-setup.ts +524 -12
- package/src/commands/create-command.ts +3 -3
- package/src/commands/create.ts +9 -6
- package/src/commands/dashboard.ts +11 -6
- package/src/commands/govern.ts +11 -6
- package/src/commands/governance.ts +1005 -0
- package/src/commands/guardian.ts +887 -0
- package/src/commands/init.ts +104 -11
- package/src/commands/orchestrator.ts +789 -0
- package/src/commands/performance-optimizer.ts +15 -10
- package/src/commands/plugins.ts +8 -5
- package/src/commands/project-update.ts +1156 -0
- package/src/commands/rag.ts +1011 -0
- package/src/commands/session.ts +631 -0
- package/src/commands/setup.ts +42 -344
- package/src/commands/test-init.ts +3 -2
- package/src/commands/test.ts +3 -2
- package/src/commands/watch.ts +21 -11
- package/src/commands/worktree.ts +1057 -0
- package/src/context/context-manager.ts +5 -2
- package/src/context/session-manager.ts +18 -7
- 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 +3 -2
- package/src/interactive/interactive-mode.ts +14 -7
- package/src/lib/conflict-resolution.ts +818 -0
- package/src/lib/merge-strategy.ts +550 -0
- package/src/lib/safety-mechanisms.ts +451 -0
- package/src/lib/state-detection.ts +1030 -0
- package/src/nlp/command-mapper.ts +8 -3
- package/src/nlp/command-parser.ts +5 -2
- package/src/nlp/intent-parser.ts +23 -9
- package/src/plugins/plugin-manager.ts +50 -24
- package/src/tests/computer-setup-integration.test.ts +470 -0
- package/src/types/index.ts +1 -1
- package/src/types/modules.d.ts +425 -1
- package/src/utils/backup-rollback-manager.ts +366 -0
- package/src/utils/claude-config-installer.ts +823 -0
- package/src/utils/config-manager.ts +9 -6
- package/src/utils/error-handler.ts +3 -1
- package/src/utils/logger.ts +35 -12
- 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/ai/ai-service.d.ts +0 -152
- package/dist/ai/ai-service.d.ts.map +0 -1
- package/dist/ai/ai-service.js +0 -430
- package/dist/ai/ai-service.js.map +0 -1
- package/dist/ai/claude-client.d.ts +0 -130
- package/dist/ai/claude-client.d.ts.map +0 -1
- package/dist/ai/claude-client.js +0 -339
- package/dist/ai/claude-client.js.map +0 -1
- package/dist/ai/conversation-manager.d.ts +0 -164
- package/dist/ai/conversation-manager.d.ts.map +0 -1
- package/dist/ai/conversation-manager.js +0 -612
- package/dist/ai/conversation-manager.js.map +0 -1
- package/dist/ai/index.d.ts +0 -5
- package/dist/ai/index.d.ts.map +0 -1
- package/dist/ai/index.js +0 -8
- package/dist/ai/index.js.map +0 -1
- package/dist/cli.d.ts +0 -36
- package/dist/cli.d.ts.map +0 -1
- package/dist/cli.js +0 -173
- package/dist/cli.js.map +0 -1
- package/dist/commands/ai.d.ts +0 -89
- package/dist/commands/ai.d.ts.map +0 -1
- package/dist/commands/ai.js +0 -735
- package/dist/commands/ai.js.map +0 -1
- package/dist/commands/analyze-optimized.d.ts +0 -14
- package/dist/commands/analyze-optimized.d.ts.map +0 -1
- package/dist/commands/analyze-optimized.js +0 -437
- package/dist/commands/analyze-optimized.js.map +0 -1
- package/dist/commands/analyze.d.ts +0 -65
- package/dist/commands/analyze.d.ts.map +0 -1
- package/dist/commands/analyze.js +0 -435
- package/dist/commands/analyze.js.map +0 -1
- package/dist/commands/batch.d.ts +0 -71
- package/dist/commands/batch.d.ts.map +0 -1
- package/dist/commands/batch.js +0 -738
- package/dist/commands/batch.js.map +0 -1
- package/dist/commands/chat.d.ts +0 -71
- package/dist/commands/chat.d.ts.map +0 -1
- package/dist/commands/chat.js +0 -674
- package/dist/commands/chat.js.map +0 -1
- package/dist/commands/claude-init.d.ts +0 -28
- package/dist/commands/claude-init.d.ts.map +0 -1
- package/dist/commands/claude-init.js +0 -587
- package/dist/commands/claude-init.js.map +0 -1
- package/dist/commands/claude-setup.d.ts +0 -32
- package/dist/commands/claude-setup.d.ts.map +0 -1
- package/dist/commands/claude-setup.js +0 -570
- package/dist/commands/claude-setup.js.map +0 -1
- package/dist/commands/computer-setup-commands.d.ts +0 -39
- package/dist/commands/computer-setup-commands.d.ts.map +0 -1
- package/dist/commands/computer-setup-commands.js +0 -563
- package/dist/commands/computer-setup-commands.js.map +0 -1
- package/dist/commands/computer-setup.d.ts +0 -7
- package/dist/commands/computer-setup.d.ts.map +0 -1
- package/dist/commands/computer-setup.js +0 -481
- package/dist/commands/computer-setup.js.map +0 -1
- package/dist/commands/create-command.d.ts +0 -7
- package/dist/commands/create-command.d.ts.map +0 -1
- package/dist/commands/create-command.js +0 -158
- package/dist/commands/create-command.js.map +0 -1
- package/dist/commands/create.d.ts +0 -74
- package/dist/commands/create.d.ts.map +0 -1
- package/dist/commands/create.js +0 -556
- package/dist/commands/create.js.map +0 -1
- package/dist/commands/dashboard.d.ts +0 -91
- package/dist/commands/dashboard.d.ts.map +0 -1
- package/dist/commands/dashboard.js +0 -537
- package/dist/commands/dashboard.js.map +0 -1
- package/dist/commands/govern.d.ts +0 -70
- package/dist/commands/govern.d.ts.map +0 -1
- package/dist/commands/govern.js +0 -480
- package/dist/commands/govern.js.map +0 -1
- package/dist/commands/init.d.ts +0 -55
- package/dist/commands/init.d.ts.map +0 -1
- package/dist/commands/init.js +0 -584
- package/dist/commands/init.js.map +0 -1
- package/dist/commands/performance-optimizer.d.ts +0 -30
- package/dist/commands/performance-optimizer.d.ts.map +0 -1
- package/dist/commands/performance-optimizer.js +0 -649
- package/dist/commands/performance-optimizer.js.map +0 -1
- package/dist/commands/plugins.d.ts +0 -87
- package/dist/commands/plugins.d.ts.map +0 -1
- package/dist/commands/plugins.js +0 -685
- package/dist/commands/plugins.js.map +0 -1
- package/dist/commands/setup.d.ts +0 -29
- package/dist/commands/setup.d.ts.map +0 -1
- package/dist/commands/setup.js +0 -399
- package/dist/commands/setup.js.map +0 -1
- package/dist/commands/test-init.d.ts +0 -9
- package/dist/commands/test-init.d.ts.map +0 -1
- package/dist/commands/test-init.js +0 -222
- package/dist/commands/test-init.js.map +0 -1
- package/dist/commands/test.d.ts +0 -25
- package/dist/commands/test.d.ts.map +0 -1
- package/dist/commands/test.js +0 -217
- package/dist/commands/test.js.map +0 -1
- package/dist/commands/watch.d.ts +0 -76
- package/dist/commands/watch.d.ts.map +0 -1
- package/dist/commands/watch.js +0 -610
- package/dist/commands/watch.js.map +0 -1
- package/dist/context/context-manager.d.ts +0 -155
- package/dist/context/context-manager.d.ts.map +0 -1
- package/dist/context/context-manager.js +0 -383
- package/dist/context/context-manager.js.map +0 -1
- package/dist/context/index.d.ts +0 -3
- package/dist/context/index.d.ts.map +0 -1
- package/dist/context/index.js +0 -6
- package/dist/context/index.js.map +0 -1
- package/dist/context/session-manager.d.ts +0 -207
- package/dist/context/session-manager.d.ts.map +0 -1
- package/dist/context/session-manager.js +0 -682
- package/dist/context/session-manager.js.map +0 -1
- package/dist/index.d.ts +0 -8
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -51
- package/dist/index.js.map +0 -1
- package/dist/interactive/interactive-mode.d.ts +0 -76
- package/dist/interactive/interactive-mode.d.ts.map +0 -1
- package/dist/interactive/interactive-mode.js +0 -730
- package/dist/interactive/interactive-mode.js.map +0 -1
- package/dist/nlp/command-mapper.d.ts +0 -174
- package/dist/nlp/command-mapper.d.ts.map +0 -1
- package/dist/nlp/command-mapper.js +0 -623
- package/dist/nlp/command-mapper.js.map +0 -1
- package/dist/nlp/command-parser.d.ts +0 -106
- package/dist/nlp/command-parser.d.ts.map +0 -1
- package/dist/nlp/command-parser.js +0 -416
- package/dist/nlp/command-parser.js.map +0 -1
- package/dist/nlp/index.d.ts +0 -5
- package/dist/nlp/index.d.ts.map +0 -1
- package/dist/nlp/index.js +0 -8
- package/dist/nlp/index.js.map +0 -1
- package/dist/nlp/intent-classifier.d.ts +0 -59
- package/dist/nlp/intent-classifier.d.ts.map +0 -1
- package/dist/nlp/intent-classifier.js +0 -384
- package/dist/nlp/intent-classifier.js.map +0 -1
- package/dist/nlp/intent-parser.d.ts +0 -152
- package/dist/nlp/intent-parser.d.ts.map +0 -1
- package/dist/nlp/intent-parser.js +0 -739
- package/dist/nlp/intent-parser.js.map +0 -1
- package/dist/plugins/plugin-manager.d.ts +0 -120
- package/dist/plugins/plugin-manager.d.ts.map +0 -1
- package/dist/plugins/plugin-manager.js +0 -595
- package/dist/plugins/plugin-manager.js.map +0 -1
- package/dist/types/index.d.ts +0 -224
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/index.js +0 -3
- package/dist/types/index.js.map +0 -1
- package/dist/utils/config-manager.d.ts +0 -73
- package/dist/utils/config-manager.d.ts.map +0 -1
- package/dist/utils/config-manager.js +0 -339
- package/dist/utils/config-manager.js.map +0 -1
- package/dist/utils/error-handler.d.ts +0 -46
- package/dist/utils/error-handler.d.ts.map +0 -1
- package/dist/utils/error-handler.js +0 -169
- package/dist/utils/error-handler.js.map +0 -1
- package/dist/utils/logger.d.ts +0 -25
- package/dist/utils/logger.d.ts.map +0 -1
- package/dist/utils/logger.js +0 -94
- package/dist/utils/logger.js.map +0 -1
- package/src/commands/computer-setup-commands.ts +0 -709
package/README.md
CHANGED
|
@@ -1,221 +1,581 @@
|
|
|
1
|
-
# @wundr/cli
|
|
1
|
+
# @wundr.io/cli
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
[](https://www.npmjs.com/package/@wundr.io/cli)
|
|
4
|
+
[](https://opensource.org/licenses/MIT)
|
|
5
|
+
[](https://nodejs.org)
|
|
5
6
|
|
|
6
|
-
|
|
7
|
+
**From chaos to excellence, systematically.**
|
|
7
8
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
- **Batch Processing** - YAML-based automation and scripting
|
|
12
|
-
- **AI Integration** - Natural language development assistance
|
|
13
|
-
- **Cross-Platform** - Works on macOS, Linux, and Windows
|
|
14
|
-
- **Real-time Monitoring** - File watching and live updates
|
|
15
|
-
- **Web Dashboard** - Rich visualization and reporting
|
|
9
|
+
The Wundr CLI is the unified command-line interface for the Wundr platform - your all-in-one toolkit
|
|
10
|
+
for developer machine provisioning, project scaffolding, and automated code governance. Built for
|
|
11
|
+
engineering teams who demand consistency, quality, and velocity.
|
|
16
12
|
|
|
17
|
-
##
|
|
13
|
+
## What is Wundr CLI?
|
|
14
|
+
|
|
15
|
+
Wundr CLI is the **crown jewel** of the Wundr platform - a powerful, AI-native developer toolkit
|
|
16
|
+
that transforms how teams:
|
|
17
|
+
|
|
18
|
+
- **Provision Machines**: Set up new developer workstations in minutes with role-based profiles
|
|
19
|
+
- **Create Projects**: Scaffold production-ready, governance-compliant projects instantly
|
|
20
|
+
- **Enforce Quality**: Automate code analysis, dependency management, and quality gates
|
|
21
|
+
- **Scale Teams**: Ensure consistency across developers, projects, and repositories
|
|
22
|
+
|
|
23
|
+
Whether you're onboarding new engineers, starting a new project, or maintaining code quality across
|
|
24
|
+
a monorepo, Wundr CLI provides the automation and intelligence you need.
|
|
25
|
+
|
|
26
|
+
## Core Features
|
|
27
|
+
|
|
28
|
+
### 1. Computer Setup & Provisioning
|
|
29
|
+
|
|
30
|
+
Automate the setup of developer workstations with comprehensive tool installations and
|
|
31
|
+
configurations.
|
|
32
|
+
|
|
33
|
+
**Key Capabilities:**
|
|
34
|
+
|
|
35
|
+
- 6 pre-configured developer profiles (Frontend, Backend, Full Stack, DevOps, ML, Mobile)
|
|
36
|
+
- Cross-platform support (macOS, Linux, Windows WSL2)
|
|
37
|
+
- Team configuration management
|
|
38
|
+
- Parallel installation with rollback support
|
|
39
|
+
- Validation and health checks
|
|
40
|
+
|
|
41
|
+
**Example:**
|
|
18
42
|
|
|
19
43
|
```bash
|
|
20
|
-
|
|
44
|
+
# Interactive setup wizard
|
|
45
|
+
wundr computer-setup
|
|
46
|
+
|
|
47
|
+
# Setup with specific profile
|
|
48
|
+
wundr computer-setup --profile fullstack
|
|
49
|
+
|
|
50
|
+
# Apply team configuration
|
|
51
|
+
wundr computer-setup --team platform-engineering
|
|
52
|
+
|
|
53
|
+
# Validate current setup
|
|
54
|
+
wundr computer-setup validate
|
|
21
55
|
```
|
|
22
56
|
|
|
23
|
-
|
|
57
|
+
### 2. Project Creation & Scaffolding
|
|
58
|
+
|
|
59
|
+
Create production-ready, Wundr-compliant projects with best practices built-in.
|
|
60
|
+
|
|
61
|
+
**Key Capabilities:**
|
|
62
|
+
|
|
63
|
+
- Multiple project templates (Next.js, Node.js, React, TypeScript libraries)
|
|
64
|
+
- Component and service generators
|
|
65
|
+
- Automatic governance configuration
|
|
66
|
+
- Monorepo support
|
|
67
|
+
- Custom template system
|
|
68
|
+
|
|
69
|
+
**Example:**
|
|
24
70
|
|
|
25
71
|
```bash
|
|
26
|
-
|
|
72
|
+
# Interactive project creation
|
|
73
|
+
wundr create project
|
|
74
|
+
|
|
75
|
+
# Create with specific template
|
|
76
|
+
wundr create project nextjs my-app --typescript
|
|
77
|
+
|
|
78
|
+
# Create component
|
|
79
|
+
wundr create component Button --type react
|
|
80
|
+
|
|
81
|
+
# Create service
|
|
82
|
+
wundr create service auth --template microservice
|
|
27
83
|
```
|
|
28
84
|
|
|
29
|
-
|
|
85
|
+
### 3. Code Governance & Quality
|
|
86
|
+
|
|
87
|
+
Automated code analysis, dependency management, and quality enforcement.
|
|
88
|
+
|
|
89
|
+
**Key Capabilities:**
|
|
30
90
|
|
|
31
|
-
|
|
91
|
+
- Dependency analysis (circular, unused, outdated, security)
|
|
92
|
+
- Code quality metrics and drift detection
|
|
93
|
+
- Automated pattern standardization
|
|
94
|
+
- Compliance reporting
|
|
95
|
+
- Real-time monitoring
|
|
96
|
+
|
|
97
|
+
**Example:**
|
|
32
98
|
|
|
33
99
|
```bash
|
|
34
|
-
|
|
35
|
-
wundr
|
|
100
|
+
# Analyze dependencies
|
|
101
|
+
wundr analyze deps --circular --security
|
|
102
|
+
|
|
103
|
+
# Check code quality
|
|
104
|
+
wundr analyze quality --path ./src
|
|
105
|
+
|
|
106
|
+
# Detect code drift
|
|
107
|
+
wundr analyze drift
|
|
108
|
+
|
|
109
|
+
# Generate compliance report
|
|
110
|
+
wundr govern report --weekly
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
## Quick Start
|
|
114
|
+
|
|
115
|
+
### Installation
|
|
116
|
+
|
|
117
|
+
Install globally via npm:
|
|
118
|
+
|
|
119
|
+
```bash
|
|
120
|
+
npm install -g @wundr.io/cli
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
Or use with npx (no installation required):
|
|
124
|
+
|
|
125
|
+
```bash
|
|
126
|
+
npx @wundr.io/cli --help
|
|
36
127
|
```
|
|
37
128
|
|
|
38
|
-
###
|
|
129
|
+
### First Command
|
|
130
|
+
|
|
131
|
+
Run the interactive wizard to get started:
|
|
39
132
|
|
|
40
133
|
```bash
|
|
41
134
|
wundr wizard
|
|
42
|
-
# or
|
|
43
|
-
wundr w
|
|
44
135
|
```
|
|
45
136
|
|
|
46
|
-
|
|
137
|
+
Or set up your development machine:
|
|
138
|
+
|
|
139
|
+
```bash
|
|
140
|
+
wundr computer-setup
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
### Verify Installation
|
|
144
|
+
|
|
145
|
+
```bash
|
|
146
|
+
wundr --version
|
|
147
|
+
wundr --help
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
## Core Commands
|
|
151
|
+
|
|
152
|
+
### Setup Commands
|
|
153
|
+
|
|
154
|
+
Configure development environments and workstations.
|
|
155
|
+
|
|
156
|
+
```bash
|
|
157
|
+
# Computer provisioning
|
|
158
|
+
wundr computer-setup [options] # Interactive setup wizard
|
|
159
|
+
wundr computer-setup --profile <role> # Setup with specific profile
|
|
160
|
+
wundr computer-setup --team <name> # Apply team configuration
|
|
161
|
+
wundr computer-setup validate # Validate current setup
|
|
162
|
+
wundr computer-setup doctor # Diagnose issues
|
|
163
|
+
|
|
164
|
+
# Profile management
|
|
165
|
+
wundr computer-setup profile list # List available profiles
|
|
166
|
+
wundr computer-setup profile show # Show profile details
|
|
167
|
+
wundr computer-setup profile export # Export current setup
|
|
168
|
+
wundr computer-setup profile import # Import custom profile
|
|
169
|
+
|
|
170
|
+
# Claude Code integration
|
|
171
|
+
wundr claude-setup # Setup Claude Code optimization
|
|
172
|
+
wundr claude-init # Initialize Claude configuration
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
### Create Commands
|
|
176
|
+
|
|
177
|
+
Generate projects, components, and services.
|
|
47
178
|
|
|
48
179
|
```bash
|
|
49
|
-
|
|
50
|
-
wundr
|
|
51
|
-
wundr
|
|
180
|
+
# Project creation
|
|
181
|
+
wundr create project <type> [name] # Create new project
|
|
182
|
+
wundr create project nextjs my-app # Create Next.js project
|
|
183
|
+
wundr create project node-api server # Create Node.js API
|
|
184
|
+
|
|
185
|
+
# Component generation
|
|
186
|
+
wundr create component <name> # Create component
|
|
187
|
+
wundr create component Button --react # Create React component
|
|
188
|
+
wundr create component --type vue # Create Vue component
|
|
189
|
+
|
|
190
|
+
# Service generation
|
|
191
|
+
wundr create service <name> # Create service
|
|
192
|
+
wundr create service auth # Create auth service
|
|
193
|
+
wundr create service --template api # Create from template
|
|
194
|
+
|
|
195
|
+
# Template management
|
|
196
|
+
wundr create template <name> # Create custom template
|
|
197
|
+
wundr create from-template <template> # Create from template
|
|
52
198
|
```
|
|
53
199
|
|
|
54
|
-
###
|
|
200
|
+
### Analyze Commands
|
|
201
|
+
|
|
202
|
+
Code analysis and dependency management.
|
|
55
203
|
|
|
56
204
|
```bash
|
|
57
|
-
|
|
58
|
-
wundr
|
|
205
|
+
# Dependency analysis
|
|
206
|
+
wundr analyze deps # Analyze all dependencies
|
|
207
|
+
wundr analyze deps --circular # Find circular dependencies
|
|
208
|
+
wundr analyze deps --unused # Find unused dependencies
|
|
209
|
+
wundr analyze deps --outdated # Check for outdated packages
|
|
210
|
+
wundr analyze deps --security # Run security audit
|
|
211
|
+
|
|
212
|
+
# Code quality analysis
|
|
213
|
+
wundr analyze quality # Analyze code quality
|
|
214
|
+
wundr analyze quality --path ./src # Analyze specific path
|
|
215
|
+
wundr analyze quality --threshold 80 # Set quality threshold
|
|
216
|
+
|
|
217
|
+
# Performance analysis
|
|
218
|
+
wundr analyze performance # Analyze performance
|
|
219
|
+
wundr analyze bundle # Analyze bundle size
|
|
220
|
+
wundr analyze metrics # Show code metrics
|
|
221
|
+
|
|
222
|
+
# Drift detection
|
|
223
|
+
wundr analyze drift # Detect code drift
|
|
224
|
+
wundr analyze drift --baseline # Create drift baseline
|
|
225
|
+
wundr analyze drift --trends # Show drift trends
|
|
59
226
|
```
|
|
60
227
|
|
|
61
|
-
###
|
|
228
|
+
### Govern Commands
|
|
229
|
+
|
|
230
|
+
Governance, compliance, and quality enforcement.
|
|
62
231
|
|
|
63
232
|
```bash
|
|
64
|
-
|
|
65
|
-
wundr
|
|
66
|
-
wundr
|
|
233
|
+
# Policy management
|
|
234
|
+
wundr govern policy list # List policies
|
|
235
|
+
wundr govern policy apply <policy> # Apply policy
|
|
236
|
+
wundr govern policy validate # Validate against policies
|
|
237
|
+
|
|
238
|
+
# Compliance reporting
|
|
239
|
+
wundr govern report # Generate compliance report
|
|
240
|
+
wundr govern report --weekly # Generate weekly report
|
|
241
|
+
wundr govern report --format json # Export as JSON
|
|
242
|
+
|
|
243
|
+
# Pattern standardization
|
|
244
|
+
wundr govern standardize # Auto-fix code patterns
|
|
245
|
+
wundr govern standardize --pattern # Fix specific pattern
|
|
246
|
+
wundr govern standardize --review # Review changes
|
|
247
|
+
|
|
248
|
+
# Quality gates
|
|
249
|
+
wundr govern gate check # Check quality gates
|
|
250
|
+
wundr govern gate enforce # Enforce quality gates
|
|
251
|
+
wundr govern gate status # Show gate status
|
|
67
252
|
```
|
|
68
253
|
|
|
69
|
-
###
|
|
254
|
+
### Init Commands
|
|
255
|
+
|
|
256
|
+
Project initialization and configuration.
|
|
70
257
|
|
|
71
258
|
```bash
|
|
72
|
-
|
|
259
|
+
# Project initialization
|
|
260
|
+
wundr init project [name] # Initialize new project
|
|
261
|
+
wundr init project --template <type> # Use specific template
|
|
262
|
+
wundr init project --monorepo # Initialize as monorepo
|
|
263
|
+
|
|
264
|
+
# Configuration
|
|
265
|
+
wundr init config # Initialize configuration
|
|
266
|
+
wundr init config --interactive # Interactive setup
|
|
267
|
+
wundr init config --global # Global configuration
|
|
268
|
+
|
|
269
|
+
# Workspace setup
|
|
270
|
+
wundr init workspace # Create workspace
|
|
271
|
+
wundr init plugins # Setup plugin system
|
|
73
272
|
```
|
|
74
273
|
|
|
75
|
-
|
|
274
|
+
### AI Commands
|
|
76
275
|
|
|
77
|
-
|
|
276
|
+
AI-powered development features.
|
|
78
277
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
278
|
+
```bash
|
|
279
|
+
# Setup & configuration
|
|
280
|
+
wundr ai setup # Interactive AI setup
|
|
281
|
+
wundr ai status # Check AI status
|
|
282
|
+
wundr ai validate # Validate AI connection
|
|
83
283
|
|
|
84
|
-
|
|
284
|
+
# Code generation
|
|
285
|
+
wundr ai generate <type> # Generate code
|
|
286
|
+
wundr ai generate component # Generate component
|
|
287
|
+
wundr ai generate function --prompt # Generate from prompt
|
|
288
|
+
|
|
289
|
+
# Code assistance
|
|
290
|
+
wundr ai review <file> # AI code review
|
|
291
|
+
wundr ai refactor <target> # Refactor code
|
|
292
|
+
wundr ai optimize <target> # Optimize performance
|
|
293
|
+
|
|
294
|
+
# Documentation & tests
|
|
295
|
+
wundr ai docs <target> # Generate docs
|
|
296
|
+
wundr ai test <target> # Generate tests
|
|
297
|
+
wundr ai analyze <target> # AI analysis
|
|
298
|
+
|
|
299
|
+
# Interactive chat
|
|
300
|
+
wundr ai chat # Start AI chat
|
|
301
|
+
```
|
|
85
302
|
|
|
86
|
-
|
|
87
|
-
- `create service <name>` - Generate services
|
|
88
|
-
- `create package <name>` - Create monorepo packages
|
|
89
|
-
- `create template <name>` - Create code templates
|
|
90
|
-
- `create workflow <name>` - Generate CI/CD workflows
|
|
303
|
+
### Dashboard Commands
|
|
91
304
|
|
|
92
|
-
|
|
305
|
+
Monitoring and visualization.
|
|
93
306
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
307
|
+
```bash
|
|
308
|
+
# Dashboard control
|
|
309
|
+
wundr dashboard start # Launch web dashboard
|
|
310
|
+
wundr dashboard start --port 3000 # Specify port
|
|
311
|
+
wundr dashboard stop # Stop dashboard
|
|
99
312
|
|
|
100
|
-
|
|
313
|
+
# Configuration
|
|
314
|
+
wundr dashboard config # Configure dashboard
|
|
315
|
+
wundr dashboard config set theme dark # Set theme
|
|
101
316
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
- `govern gate` - Quality gates
|
|
106
|
-
- `govern audit` - Governance auditing
|
|
317
|
+
# Reports
|
|
318
|
+
wundr dashboard report <type> # Generate report
|
|
319
|
+
```
|
|
107
320
|
|
|
108
|
-
###
|
|
321
|
+
### Watch Commands
|
|
109
322
|
|
|
110
|
-
-
|
|
111
|
-
- `ai status` - Check AI configuration status
|
|
112
|
-
- `ai validate` - Validate AI connection
|
|
113
|
-
- `ai generate <type>` - Code generation
|
|
114
|
-
- `ai review [files...]` - Code review
|
|
115
|
-
- `ai refactor <target>` - Code refactoring
|
|
116
|
-
- `ai docs <target>` - Documentation generation
|
|
117
|
-
- `ai chat` - Interactive AI chat
|
|
118
|
-
- `ai analyze <target>` - AI-powered analysis
|
|
119
|
-
- `ai test <target>` - Generate tests
|
|
120
|
-
- `ai optimize <target>` - Performance optimization
|
|
323
|
+
Real-time monitoring and automation.
|
|
121
324
|
|
|
122
|
-
|
|
325
|
+
```bash
|
|
326
|
+
# File watching
|
|
327
|
+
wundr watch start [patterns] # Watch files
|
|
328
|
+
wundr watch test # Watch and run tests
|
|
329
|
+
wundr watch build # Watch and build
|
|
330
|
+
wundr watch lint # Watch and lint
|
|
331
|
+
|
|
332
|
+
# Analysis watching
|
|
333
|
+
wundr watch analyze --type quality # Watch quality
|
|
334
|
+
```
|
|
123
335
|
|
|
124
|
-
|
|
125
|
-
- `dashboard stop` - Stop dashboard
|
|
126
|
-
- `dashboard config` - Configure dashboard
|
|
127
|
-
- `dashboard report <type>` - Generate reports
|
|
336
|
+
### Batch Commands
|
|
128
337
|
|
|
129
|
-
|
|
338
|
+
Batch operations and automation.
|
|
130
339
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
340
|
+
```bash
|
|
341
|
+
# Batch processing
|
|
342
|
+
wundr batch run <file> # Execute batch job
|
|
343
|
+
wundr batch create <name> # Create batch job
|
|
344
|
+
wundr batch validate <file> # Validate batch YAML
|
|
345
|
+
wundr batch schedule <file> # Schedule execution
|
|
346
|
+
```
|
|
135
347
|
|
|
136
|
-
###
|
|
348
|
+
### Chat Commands
|
|
137
349
|
|
|
138
|
-
|
|
139
|
-
- `batch create <name>` - Create batch job
|
|
140
|
-
- `batch validate <file>` - Validate batch YAML
|
|
141
|
-
- `batch schedule <file>` - Schedule execution
|
|
350
|
+
Natural language interface.
|
|
142
351
|
|
|
143
|
-
|
|
352
|
+
```bash
|
|
353
|
+
# Chat interaction
|
|
354
|
+
wundr chat start # Start chat session
|
|
355
|
+
wundr chat ask <message> # Single question
|
|
356
|
+
wundr chat file <file> # Chat about file
|
|
357
|
+
wundr chat resume <sessionId> # Resume session
|
|
358
|
+
```
|
|
144
359
|
|
|
145
|
-
|
|
146
|
-
- `chat ask <message>` - Single question
|
|
147
|
-
- `chat file <file>` - Chat about file
|
|
148
|
-
- `chat resume <sessionId>` - Resume session
|
|
360
|
+
### Plugin Commands
|
|
149
361
|
|
|
150
|
-
|
|
362
|
+
Plugin management and development.
|
|
151
363
|
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
364
|
+
```bash
|
|
365
|
+
# Plugin management
|
|
366
|
+
wundr plugin list # List installed plugins
|
|
367
|
+
wundr plugin install <plugin> # Install plugin
|
|
368
|
+
wundr plugin create <name> # Create new plugin
|
|
369
|
+
wundr plugin dev link <path> # Link for development
|
|
370
|
+
```
|
|
156
371
|
|
|
157
|
-
##
|
|
372
|
+
## Interactive Modes
|
|
158
373
|
|
|
159
374
|
### Wizard Mode
|
|
160
375
|
|
|
161
|
-
|
|
376
|
+
Guided interactive setup for common tasks.
|
|
377
|
+
|
|
378
|
+
```bash
|
|
379
|
+
# Launch wizard
|
|
380
|
+
wundr wizard
|
|
381
|
+
|
|
382
|
+
# Specific wizard mode
|
|
383
|
+
wundr wizard --mode setup # Setup wizard
|
|
384
|
+
wundr wizard --mode analyze # Analysis wizard
|
|
385
|
+
wundr wizard --mode create # Creation wizard
|
|
386
|
+
```
|
|
387
|
+
|
|
388
|
+
### Chat Interface
|
|
389
|
+
|
|
390
|
+
Natural language command interface (AI-powered).
|
|
391
|
+
|
|
392
|
+
```bash
|
|
393
|
+
# Launch chat
|
|
394
|
+
wundr chat
|
|
395
|
+
|
|
396
|
+
# Chat with specific context
|
|
397
|
+
wundr chat --context ./src
|
|
398
|
+
|
|
399
|
+
# Chat with specific model
|
|
400
|
+
wundr chat --model claude-3
|
|
401
|
+
```
|
|
402
|
+
|
|
403
|
+
### Terminal UI (TUI)
|
|
404
|
+
|
|
405
|
+
Full-featured terminal dashboard.
|
|
406
|
+
|
|
407
|
+
```bash
|
|
408
|
+
# Launch TUI
|
|
409
|
+
wundr tui
|
|
410
|
+
|
|
411
|
+
# Specific layout
|
|
412
|
+
wundr tui --layout dashboard # Dashboard view
|
|
413
|
+
wundr tui --layout monitor # Monitoring view
|
|
414
|
+
wundr tui --layout debug # Debug view
|
|
415
|
+
```
|
|
416
|
+
|
|
417
|
+
## AI Integration
|
|
418
|
+
|
|
419
|
+
Wundr CLI is **AI-native** with deep integration for intelligent automation:
|
|
420
|
+
|
|
421
|
+
### Claude Code Optimization
|
|
422
|
+
|
|
423
|
+
Optimize your development environment for Claude Code AI assistant.
|
|
162
424
|
|
|
163
425
|
```bash
|
|
164
|
-
|
|
165
|
-
wundr
|
|
166
|
-
|
|
167
|
-
|
|
426
|
+
# Setup Claude Code
|
|
427
|
+
wundr claude-setup
|
|
428
|
+
|
|
429
|
+
# Initialize Claude configuration
|
|
430
|
+
wundr claude-init
|
|
431
|
+
|
|
432
|
+
# Generate CLAUDE.md configuration
|
|
433
|
+
wundr claude-init --generate
|
|
168
434
|
```
|
|
169
435
|
|
|
170
|
-
###
|
|
436
|
+
### AI Provider Setup
|
|
437
|
+
|
|
438
|
+
Wundr supports multiple AI providers for enhanced development assistance:
|
|
439
|
+
|
|
440
|
+
```bash
|
|
441
|
+
# Interactive setup (recommended)
|
|
442
|
+
wundr ai setup
|
|
443
|
+
|
|
444
|
+
# Manual setup with Claude
|
|
445
|
+
wundr ai setup --provider claude --api-key your-key
|
|
446
|
+
|
|
447
|
+
# Validate configuration
|
|
448
|
+
wundr ai validate
|
|
449
|
+
|
|
450
|
+
# Check status
|
|
451
|
+
wundr ai status
|
|
452
|
+
```
|
|
171
453
|
|
|
172
|
-
|
|
454
|
+
### Environment Variables
|
|
173
455
|
|
|
174
456
|
```bash
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
457
|
+
# Claude (Anthropic)
|
|
458
|
+
export CLAUDE_API_KEY=your_api_key_here
|
|
459
|
+
|
|
460
|
+
# OpenAI (coming soon)
|
|
461
|
+
export OPENAI_API_KEY=your_api_key_here
|
|
462
|
+
|
|
463
|
+
# Provider selection
|
|
464
|
+
export WUNDR_AI_PROVIDER=claude
|
|
465
|
+
export WUNDR_AI_MODEL=claude-3-opus-20240229
|
|
178
466
|
```
|
|
179
467
|
|
|
180
|
-
###
|
|
468
|
+
### AI-Powered Features
|
|
469
|
+
|
|
470
|
+
- **Smart Code Analysis**: AI-driven code quality insights
|
|
471
|
+
- **Intelligent Refactoring**: Context-aware code improvements
|
|
472
|
+
- **Auto-Documentation**: Generate documentation from code
|
|
473
|
+
- **Test Generation**: AI-generated test suites
|
|
474
|
+
- **Code Review**: Automated AI code reviews
|
|
475
|
+
- **Performance Optimization**: AI-powered performance suggestions
|
|
476
|
+
|
|
477
|
+
## Example Workflows
|
|
478
|
+
|
|
479
|
+
### Onboarding a New Developer
|
|
480
|
+
|
|
481
|
+
```bash
|
|
482
|
+
# 1. Setup development machine
|
|
483
|
+
wundr computer-setup --profile fullstack
|
|
484
|
+
|
|
485
|
+
# 2. Validate installation
|
|
486
|
+
wundr computer-setup validate
|
|
487
|
+
|
|
488
|
+
# 3. Clone and initialize project
|
|
489
|
+
git clone <repo>
|
|
490
|
+
cd <project>
|
|
491
|
+
wundr init config
|
|
492
|
+
|
|
493
|
+
# 4. Verify everything works
|
|
494
|
+
wundr govern gate check
|
|
495
|
+
```
|
|
181
496
|
|
|
182
|
-
|
|
497
|
+
### Starting a New Project
|
|
183
498
|
|
|
184
499
|
```bash
|
|
185
|
-
|
|
186
|
-
wundr
|
|
187
|
-
|
|
500
|
+
# 1. Create project
|
|
501
|
+
wundr create project nextjs my-startup-app
|
|
502
|
+
|
|
503
|
+
# 2. Navigate to project
|
|
504
|
+
cd my-startup-app
|
|
505
|
+
|
|
506
|
+
# 3. Initialize governance
|
|
507
|
+
wundr init config --interactive
|
|
508
|
+
|
|
509
|
+
# 4. Create initial components
|
|
510
|
+
wundr create component Hero
|
|
511
|
+
wundr create component Layout
|
|
512
|
+
|
|
513
|
+
# 5. Run quality check
|
|
514
|
+
wundr analyze quality
|
|
188
515
|
```
|
|
189
516
|
|
|
190
|
-
###
|
|
517
|
+
### Maintaining Code Quality
|
|
518
|
+
|
|
519
|
+
```bash
|
|
520
|
+
# 1. Check for drift
|
|
521
|
+
wundr analyze drift
|
|
522
|
+
|
|
523
|
+
# 2. Analyze dependencies
|
|
524
|
+
wundr analyze deps --circular --unused --security
|
|
525
|
+
|
|
526
|
+
# 3. Run quality analysis
|
|
527
|
+
wundr analyze quality --threshold 80
|
|
528
|
+
|
|
529
|
+
# 4. Auto-standardize patterns
|
|
530
|
+
wundr govern standardize
|
|
191
531
|
|
|
192
|
-
|
|
532
|
+
# 5. Generate compliance report
|
|
533
|
+
wundr govern report --weekly
|
|
534
|
+
```
|
|
535
|
+
|
|
536
|
+
### Team Configuration
|
|
193
537
|
|
|
194
538
|
```bash
|
|
195
|
-
|
|
196
|
-
wundr
|
|
197
|
-
|
|
539
|
+
# 1. Export your setup
|
|
540
|
+
wundr computer-setup profile export > team-setup.json
|
|
541
|
+
|
|
542
|
+
# 2. Share with team
|
|
543
|
+
|
|
544
|
+
# 3. Team members import
|
|
545
|
+
wundr computer-setup profile import team-setup.json
|
|
546
|
+
|
|
547
|
+
# 4. Apply team configuration
|
|
548
|
+
wundr computer-setup --team engineering
|
|
198
549
|
```
|
|
199
550
|
|
|
200
|
-
##
|
|
551
|
+
## Configuration
|
|
201
552
|
|
|
202
553
|
### Global Configuration
|
|
203
554
|
|
|
204
|
-
|
|
555
|
+
Create a global configuration file at `~/.wundr/config.json`:
|
|
205
556
|
|
|
206
557
|
```json
|
|
207
558
|
{
|
|
208
|
-
"
|
|
559
|
+
"defaultProfile": "fullstack",
|
|
560
|
+
"teamConfig": "platform-engineering",
|
|
209
561
|
"ai": {
|
|
210
562
|
"provider": "claude",
|
|
211
|
-
"model": "claude-3"
|
|
563
|
+
"model": "claude-3-opus-20240229",
|
|
564
|
+
"enabled": true
|
|
565
|
+
},
|
|
566
|
+
"governance": {
|
|
567
|
+
"enforceGates": true,
|
|
568
|
+
"autoStandardize": true
|
|
569
|
+
},
|
|
570
|
+
"dashboard": {
|
|
571
|
+
"port": 3000,
|
|
572
|
+
"theme": "dark"
|
|
212
573
|
},
|
|
213
574
|
"plugins": ["@wundr/plugin-git"],
|
|
214
575
|
"integrations": {
|
|
215
576
|
"github": {
|
|
216
577
|
"token": "your-token",
|
|
217
|
-
"owner": "your-org"
|
|
218
|
-
"repo": "your-repo"
|
|
578
|
+
"owner": "your-org"
|
|
219
579
|
}
|
|
220
580
|
}
|
|
221
581
|
}
|
|
@@ -223,34 +583,87 @@ Stored in `~/.wundr/config.json`:
|
|
|
223
583
|
|
|
224
584
|
### Project Configuration
|
|
225
585
|
|
|
226
|
-
|
|
586
|
+
Create a project configuration file at `.wundr/config.json` or `wundr.config.json`:
|
|
227
587
|
|
|
228
588
|
```json
|
|
229
589
|
{
|
|
590
|
+
"version": "1.0",
|
|
591
|
+
"project": {
|
|
592
|
+
"name": "my-project",
|
|
593
|
+
"type": "nextjs",
|
|
594
|
+
"framework": "react"
|
|
595
|
+
},
|
|
230
596
|
"analysis": {
|
|
231
597
|
"patterns": ["**/*.ts", "**/*.tsx"],
|
|
232
598
|
"excludes": ["**/node_modules/**"],
|
|
233
|
-
"
|
|
599
|
+
"thresholds": {
|
|
600
|
+
"quality": 80,
|
|
601
|
+
"coverage": 75,
|
|
602
|
+
"complexity": 10
|
|
603
|
+
}
|
|
234
604
|
},
|
|
235
605
|
"governance": {
|
|
606
|
+
"policies": ["security", "quality", "performance"],
|
|
236
607
|
"rules": ["no-console", "require-tests"],
|
|
237
|
-
"severity": "warning"
|
|
608
|
+
"severity": "warning",
|
|
609
|
+
"gates": {
|
|
610
|
+
"preCommit": ["quality", "lint", "test"],
|
|
611
|
+
"preMerge": ["coverage", "security", "review"]
|
|
612
|
+
}
|
|
238
613
|
}
|
|
239
614
|
}
|
|
240
615
|
```
|
|
241
616
|
|
|
242
|
-
|
|
617
|
+
### Environment Variables
|
|
618
|
+
|
|
619
|
+
```bash
|
|
620
|
+
# Configuration
|
|
621
|
+
WUNDR_CONFIG_PATH=~/.wundr/config.json
|
|
622
|
+
WUNDR_PROFILE=fullstack
|
|
623
|
+
WUNDR_TEAM=platform-engineering
|
|
624
|
+
|
|
625
|
+
# AI Configuration
|
|
626
|
+
WUNDR_AI_ENABLED=true
|
|
627
|
+
WUNDR_AI_PROVIDER=claude
|
|
628
|
+
WUNDR_AI_MODEL=claude-3-opus-20240229
|
|
629
|
+
CLAUDE_API_KEY=your_api_key_here
|
|
630
|
+
|
|
631
|
+
# Dashboard
|
|
632
|
+
WUNDR_DASHBOARD_PORT=3000
|
|
633
|
+
WUNDR_DASHBOARD_HOST=localhost
|
|
634
|
+
|
|
635
|
+
# Logging
|
|
636
|
+
WUNDR_LOG_LEVEL=info
|
|
637
|
+
WUNDR_LOG_FILE=~/.wundr/logs/wundr.log
|
|
638
|
+
```
|
|
639
|
+
|
|
640
|
+
## Plugin System
|
|
641
|
+
|
|
642
|
+
Extend Wundr CLI with custom plugins.
|
|
243
643
|
|
|
244
644
|
### Installing Plugins
|
|
245
645
|
|
|
246
646
|
```bash
|
|
647
|
+
# Install plugin
|
|
247
648
|
wundr plugin install @wundr/plugin-docker
|
|
649
|
+
|
|
650
|
+
# Install from npm
|
|
248
651
|
wundr plugin install my-custom-plugin
|
|
652
|
+
|
|
653
|
+
# Install from git
|
|
249
654
|
wundr plugin install git+https://github.com/user/plugin.git
|
|
655
|
+
|
|
656
|
+
# List plugins
|
|
657
|
+
wundr plugin list
|
|
658
|
+
|
|
659
|
+
# Remove plugin
|
|
660
|
+
wundr plugin uninstall @wundr/plugin-docker
|
|
250
661
|
```
|
|
251
662
|
|
|
252
663
|
### Creating Plugins
|
|
253
664
|
|
|
665
|
+
Create a new plugin:
|
|
666
|
+
|
|
254
667
|
```bash
|
|
255
668
|
wundr plugin create my-awesome-plugin --interactive
|
|
256
669
|
cd my-awesome-plugin
|
|
@@ -258,10 +671,10 @@ npm install
|
|
|
258
671
|
wundr plugin dev link .
|
|
259
672
|
```
|
|
260
673
|
|
|
261
|
-
|
|
674
|
+
Plugin structure:
|
|
262
675
|
|
|
263
676
|
```typescript
|
|
264
|
-
import { Plugin, PluginContext } from '@wundr/cli';
|
|
677
|
+
import { Plugin, PluginContext } from '@wundr.io/cli';
|
|
265
678
|
|
|
266
679
|
export default class MyPlugin implements Plugin {
|
|
267
680
|
name = 'my-plugin';
|
|
@@ -284,7 +697,7 @@ export default class MyPlugin implements Plugin {
|
|
|
284
697
|
}
|
|
285
698
|
```
|
|
286
699
|
|
|
287
|
-
##
|
|
700
|
+
## Batch Processing
|
|
288
701
|
|
|
289
702
|
### YAML Batch Jobs
|
|
290
703
|
|
|
@@ -320,232 +733,235 @@ wundr batch run build-pipeline.yaml --dry-run
|
|
|
320
733
|
wundr batch run build-pipeline.yaml --vars '{"NODE_ENV": "production"}'
|
|
321
734
|
```
|
|
322
735
|
|
|
323
|
-
##
|
|
736
|
+
## Related Packages
|
|
324
737
|
|
|
325
|
-
|
|
738
|
+
Wundr CLI integrates with the entire Wundr ecosystem:
|
|
326
739
|
|
|
327
|
-
|
|
740
|
+
- **[@wundr.io/computer-setup](../computer-setup)** - Developer machine provisioning (integrated)
|
|
741
|
+
- **[@wundr.io/core](../core)** - Core utilities and shared functionality
|
|
742
|
+
- **[@wundr.io/config](../config)** - Configuration management system
|
|
743
|
+
- **[@wundr.io/analysis-engine](../analysis-engine)** - Code analysis and metrics
|
|
744
|
+
- **[@wundr.io/project-templates](../project-templates)** - Project scaffolding templates
|
|
745
|
+
- **[@wundr.io/dashboard](../dashboard)** - Web dashboard and visualization
|
|
746
|
+
- **[@wundr.io/security](../security)** - Security scanning and compliance
|
|
747
|
+
- **[@wundr.io/environment](../environment)** - Environment management utilities
|
|
328
748
|
|
|
329
|
-
|
|
749
|
+
## Documentation
|
|
330
750
|
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
751
|
+
- **[Full Documentation](../docs)** - Comprehensive guides and API reference
|
|
752
|
+
- **[Computer Setup Guide](../computer-setup/README.md)** - Developer provisioning details
|
|
753
|
+
- **[Configuration Guide](../docs/configuration.md)** - Configuration options
|
|
754
|
+
- **[Plugin Development](../docs/plugins.md)** - Creating custom plugins
|
|
755
|
+
- **[API Reference](../docs/api.md)** - CLI API documentation
|
|
756
|
+
- **[Examples](../docs/examples)** - Real-world usage examples
|
|
334
757
|
|
|
335
|
-
|
|
336
|
-
wundr ai setup --provider claude --api-key your-key-here
|
|
758
|
+
## Global Options
|
|
337
759
|
|
|
338
|
-
|
|
339
|
-
|
|
760
|
+
Available for all commands:
|
|
761
|
+
|
|
762
|
+
```bash
|
|
763
|
+
--config <path> # Specify config file path
|
|
764
|
+
--verbose # Enable verbose logging
|
|
765
|
+
--quiet # Suppress output
|
|
766
|
+
--no-color # Disable colored output
|
|
767
|
+
--dry-run # Show what would be done without executing
|
|
768
|
+
--interactive # Force interactive mode
|
|
769
|
+
-v, --version # Display version number
|
|
770
|
+
-h, --help # Display help for command
|
|
340
771
|
```
|
|
341
772
|
|
|
342
|
-
|
|
773
|
+
## Advanced Usage
|
|
774
|
+
|
|
775
|
+
### Monorepo Support
|
|
343
776
|
|
|
344
|
-
|
|
777
|
+
Full support for monorepo architectures:
|
|
345
778
|
|
|
346
779
|
```bash
|
|
347
|
-
#
|
|
348
|
-
|
|
780
|
+
# Initialize monorepo
|
|
781
|
+
wundr init project --monorepo
|
|
349
782
|
|
|
350
|
-
#
|
|
351
|
-
|
|
783
|
+
# Analyze monorepo
|
|
784
|
+
wundr analyze deps --monorepo
|
|
352
785
|
|
|
353
|
-
#
|
|
354
|
-
|
|
355
|
-
export WUNDR_AI_MODEL=claude-3-opus-20240229
|
|
786
|
+
# Create package
|
|
787
|
+
wundr create package <name>
|
|
356
788
|
```
|
|
357
789
|
|
|
358
|
-
|
|
790
|
+
### CI/CD Integration
|
|
359
791
|
|
|
360
|
-
|
|
792
|
+
Use Wundr CLI in your CI/CD pipelines:
|
|
361
793
|
|
|
362
|
-
```
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
}
|
|
794
|
+
```yaml
|
|
795
|
+
# .github/workflows/quality.yml
|
|
796
|
+
- name: Quality Check
|
|
797
|
+
run: |
|
|
798
|
+
npx @wundr.io/cli analyze quality --threshold 80
|
|
799
|
+
npx @wundr.io/cli govern gate check
|
|
800
|
+
npx @wundr.io/cli analyze deps --security
|
|
370
801
|
```
|
|
371
802
|
|
|
372
|
-
|
|
803
|
+
### Custom Profiles
|
|
373
804
|
|
|
374
|
-
|
|
375
|
-
1. Visit [Anthropic Console](https://console.anthropic.com)
|
|
376
|
-
2. Create an account or sign in
|
|
377
|
-
3. Generate an API key in your dashboard
|
|
378
|
-
4. Copy the key and use in setup
|
|
379
|
-
|
|
380
|
-
### AI Commands
|
|
805
|
+
Create custom developer profiles:
|
|
381
806
|
|
|
382
807
|
```bash
|
|
383
|
-
#
|
|
384
|
-
wundr
|
|
385
|
-
wundr ai status # Check configuration status
|
|
386
|
-
wundr ai validate # Test API connection
|
|
808
|
+
# Create custom profile
|
|
809
|
+
wundr computer-setup profile create
|
|
387
810
|
|
|
388
|
-
#
|
|
389
|
-
wundr
|
|
390
|
-
|
|
811
|
+
# Edit profile
|
|
812
|
+
wundr computer-setup profile edit my-profile
|
|
813
|
+
|
|
814
|
+
# Share profile
|
|
815
|
+
wundr computer-setup profile export my-profile > my-profile.json
|
|
816
|
+
```
|
|
391
817
|
|
|
392
|
-
|
|
393
|
-
wundr ai review src/ --focus security --suggest-fixes
|
|
394
|
-
wundr ai analyze src/component.tsx --suggestions
|
|
818
|
+
## Troubleshooting
|
|
395
819
|
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
820
|
+
### Common Issues
|
|
821
|
+
|
|
822
|
+
**Command not found:**
|
|
399
823
|
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
824
|
+
```bash
|
|
825
|
+
# Ensure installation
|
|
826
|
+
npm list -g @wundr.io/cli
|
|
403
827
|
|
|
404
|
-
#
|
|
405
|
-
|
|
406
|
-
wundr ai refactor src/legacy.js --type modernize
|
|
828
|
+
# Reinstall if needed
|
|
829
|
+
npm install -g @wundr.io/cli
|
|
407
830
|
```
|
|
408
831
|
|
|
409
|
-
|
|
832
|
+
**Permission errors:**
|
|
833
|
+
|
|
834
|
+
```bash
|
|
835
|
+
# Use npx instead
|
|
836
|
+
npx @wundr.io/cli <command>
|
|
837
|
+
|
|
838
|
+
# Or configure npm global
|
|
839
|
+
npm config set prefix ~/.npm-global
|
|
840
|
+
export PATH=~/.npm-global/bin:$PATH
|
|
841
|
+
```
|
|
410
842
|
|
|
411
|
-
|
|
843
|
+
**AI features not working:**
|
|
412
844
|
|
|
413
845
|
```bash
|
|
414
|
-
# Check status
|
|
846
|
+
# Check AI status
|
|
415
847
|
wundr ai status
|
|
416
848
|
|
|
417
849
|
# Validate connection
|
|
418
850
|
wundr ai validate
|
|
419
851
|
|
|
420
|
-
# Re-run setup
|
|
852
|
+
# Re-run setup
|
|
421
853
|
wundr ai setup --validate
|
|
422
854
|
```
|
|
423
855
|
|
|
424
|
-
|
|
425
|
-
- **API key not configured**: Run `wundr ai setup`
|
|
426
|
-
- **Invalid API key**: Check your key at the provider console
|
|
427
|
-
- **Network issues**: Verify internet connection
|
|
428
|
-
- **Rate limits**: Wait and try again, or check your usage
|
|
429
|
-
|
|
430
|
-
## 📊 Dashboard & Monitoring
|
|
431
|
-
|
|
432
|
-
### Web Dashboard
|
|
856
|
+
**Configuration issues:**
|
|
433
857
|
|
|
434
858
|
```bash
|
|
435
|
-
|
|
436
|
-
wundr
|
|
437
|
-
wundr dashboard widget add metrics --position '{"x": 0, "y": 0}'
|
|
438
|
-
```
|
|
859
|
+
# Reset configuration
|
|
860
|
+
wundr init config --reset
|
|
439
861
|
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
```bash
|
|
443
|
-
wundr watch analyze --type quality --threshold 80
|
|
444
|
-
wundr watch start "src/**" --command "wundr analyze quality"
|
|
862
|
+
# Validate configuration
|
|
863
|
+
wundr init config --validate
|
|
445
864
|
```
|
|
446
865
|
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
The Wundr CLI works seamlessly across platforms:
|
|
450
|
-
|
|
451
|
-
- **macOS**: Full feature support
|
|
452
|
-
- **Linux**: Full feature support
|
|
453
|
-
- **Windows**: Full feature support with PowerShell/CMD
|
|
454
|
-
- **Docker**: Container-ready
|
|
866
|
+
### Debug Mode
|
|
455
867
|
|
|
456
|
-
|
|
868
|
+
```bash
|
|
869
|
+
# Verbose logging
|
|
870
|
+
wundr --verbose <command>
|
|
457
871
|
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
wundr init project my-app
|
|
461
|
-
wundr wizard
|
|
872
|
+
# Debug TUI
|
|
873
|
+
wundr tui --layout debug
|
|
462
874
|
|
|
463
|
-
#
|
|
464
|
-
wundr
|
|
465
|
-
wundr.cmd dashboard start
|
|
875
|
+
# Environment debug
|
|
876
|
+
DEBUG=wundr:* wundr <command>
|
|
466
877
|
```
|
|
467
878
|
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
### Common Issues
|
|
471
|
-
|
|
472
|
-
1. **Command not found**
|
|
879
|
+
### Getting Help
|
|
473
880
|
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
npx @wundr/cli --version
|
|
478
|
-
```
|
|
881
|
+
```bash
|
|
882
|
+
# General help
|
|
883
|
+
wundr --help
|
|
479
884
|
|
|
480
|
-
|
|
885
|
+
# Command-specific help
|
|
886
|
+
wundr computer-setup --help
|
|
887
|
+
wundr create --help
|
|
888
|
+
wundr analyze --help
|
|
481
889
|
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
npm config set prefix ~/.npm-global
|
|
486
|
-
```
|
|
890
|
+
# Diagnostic mode
|
|
891
|
+
wundr computer-setup doctor
|
|
892
|
+
```
|
|
487
893
|
|
|
488
|
-
|
|
894
|
+
## Performance
|
|
489
895
|
|
|
490
|
-
|
|
491
|
-
wundr plugin list
|
|
492
|
-
wundr plugin install <plugin> --force
|
|
493
|
-
```
|
|
896
|
+
Wundr CLI is optimized for speed and efficiency:
|
|
494
897
|
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
898
|
+
- **Parallel Execution**: Multiple operations run concurrently
|
|
899
|
+
- **Smart Caching**: Intelligent caching reduces redundant work
|
|
900
|
+
- **Incremental Analysis**: Only analyze changed files
|
|
901
|
+
- **Lazy Loading**: Plugins loaded on-demand
|
|
902
|
+
- **Minimal Dependencies**: Lean core with optional extensions
|
|
500
903
|
|
|
501
|
-
|
|
904
|
+
## Requirements
|
|
502
905
|
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
906
|
+
- **Node.js**: >= 18.0.0
|
|
907
|
+
- **npm**: >= 8.0.0 (or pnpm/yarn)
|
|
908
|
+
- **Git**: >= 2.0.0 (for project creation)
|
|
909
|
+
- **Disk Space**: 500MB minimum (for full setup)
|
|
910
|
+
- **Network**: Required for package installation and AI features
|
|
508
911
|
|
|
509
|
-
##
|
|
912
|
+
## Contributing
|
|
510
913
|
|
|
511
|
-
|
|
512
|
-
2. Create a feature branch: `git checkout -b feature/amazing-feature`
|
|
513
|
-
3. Commit changes: `git commit -m 'Add amazing feature'`
|
|
514
|
-
4. Push to branch: `git push origin feature/amazing-feature`
|
|
515
|
-
5. Open a Pull Request
|
|
914
|
+
We welcome contributions! Please see our [Contributing Guide](../../CONTRIBUTING.md).
|
|
516
915
|
|
|
517
916
|
### Development Setup
|
|
518
917
|
|
|
519
918
|
```bash
|
|
919
|
+
# Clone repository
|
|
520
920
|
git clone https://github.com/adapticai/wundr.git
|
|
521
921
|
cd wundr/packages/@wundr/cli
|
|
922
|
+
|
|
923
|
+
# Install dependencies
|
|
522
924
|
npm install
|
|
925
|
+
|
|
926
|
+
# Build
|
|
523
927
|
npm run build
|
|
928
|
+
|
|
929
|
+
# Run tests
|
|
930
|
+
npm test
|
|
931
|
+
|
|
932
|
+
# Link for local development
|
|
524
933
|
npm link
|
|
525
934
|
```
|
|
526
935
|
|
|
527
|
-
|
|
936
|
+
### Testing
|
|
937
|
+
|
|
938
|
+
```bash
|
|
939
|
+
# Run tests
|
|
940
|
+
npm test
|
|
528
941
|
|
|
529
|
-
|
|
942
|
+
# Watch mode
|
|
943
|
+
npm run test:watch
|
|
944
|
+
|
|
945
|
+
# Type checking
|
|
946
|
+
npm run typecheck
|
|
947
|
+
|
|
948
|
+
# Linting
|
|
949
|
+
npm run lint
|
|
950
|
+
```
|
|
530
951
|
|
|
531
|
-
##
|
|
952
|
+
## License
|
|
532
953
|
|
|
533
|
-
-
|
|
534
|
-
- 💬 [Discord Community](https://discord.gg/wundr)
|
|
535
|
-
- 🐛 [Issue Tracker](https://github.com/adapticai/wundr/issues)
|
|
536
|
-
- 📧 [Email Support](mailto:support@wundr.io)
|
|
954
|
+
MIT - See [LICENSE](../../../LICENSE) for details.
|
|
537
955
|
|
|
538
|
-
##
|
|
956
|
+
## Support
|
|
539
957
|
|
|
540
|
-
-
|
|
541
|
-
-
|
|
542
|
-
-
|
|
543
|
-
-
|
|
544
|
-
- Performance analytics
|
|
545
|
-
- Custom rule engine
|
|
958
|
+
- **Issues**: [GitHub Issues](https://github.com/adapticai/wundr/issues)
|
|
959
|
+
- **Documentation**: [https://wundr.io/docs](https://wundr.io)
|
|
960
|
+
- **Community**: [Discord](https://discord.gg/wundr)
|
|
961
|
+
- **Email**: support@wundr.io
|
|
546
962
|
|
|
547
963
|
---
|
|
548
964
|
|
|
549
|
-
**
|
|
965
|
+
**Built by [Adaptic.ai](https://adaptic.ai)** - Transforming how teams build software.
|
|
550
966
|
|
|
551
|
-
|
|
967
|
+
_From chaos to excellence, systematically._
|