@voodocs/cli 1.0.0 → 1.0.2
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/CHANGELOG.md +205 -0
- package/README.md +305 -137
- package/lib/cli/__init__.py +6 -2
- package/lib/cli/init.py +228 -0
- package/lib/darkarts/annotations/parser.py +9 -9
- package/lib/darkarts/annotations/translator.py +32 -5
- package/lib/darkarts/annotations/types.py +1 -1
- package/lib/darkarts/cli_darkarts.py +142 -14
- package/lib/darkarts/core/interface.py +1 -1
- package/lib/darkarts/core/loader.py +1 -1
- package/lib/darkarts/core/plugin.py +1 -1
- package/lib/darkarts/core/registry.py +1 -1
- package/lib/darkarts/exceptions.py +1 -1
- package/lib/darkarts/plugins/voodocs/ai_native_plugin.py +1 -1
- package/lib/darkarts/plugins/voodocs/annotation_validator.py +1 -1
- package/lib/darkarts/plugins/voodocs/api_spec_generator.py +1 -1
- package/lib/darkarts/plugins/voodocs/documentation_generator.py +1 -1
- package/lib/darkarts/plugins/voodocs/html_exporter.py +1 -1
- package/lib/darkarts/plugins/voodocs/pdf_exporter.py +1 -1
- package/lib/darkarts/plugins/voodocs/test_generator.py +1 -1
- package/lib/darkarts/telemetry.py +1 -1
- package/package.json +1 -1
- package/voodocs_cli.py +3 -2
package/README.md
CHANGED
|
@@ -1,28 +1,27 @@
|
|
|
1
|
-
#
|
|
1
|
+
# VooDocs - AI-Native Documentation with Validation
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/@voodocs/cli)
|
|
4
4
|
[](https://voodocs.com/terms)
|
|
5
5
|
[](https://voodocs.com/support)
|
|
6
6
|
|
|
7
|
-
**
|
|
7
|
+
**VooDocs** is the only documentation tool that validates your annotations and guarantees accuracy. It combines AI-native symbolic documentation with semantic validation, performance verification, and automatic error correction.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
## What Makes VooDocs Unique?
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
✅ **Semantic Validation** - Verifies that your documentation matches your code
|
|
12
|
+
✅ **Performance Validation** - Checks that complexity claims are accurate
|
|
13
|
+
✅ **Auto-Fix** - Automatically corrects common documentation errors
|
|
14
|
+
✅ **Benchmarking** - Validates performance claims with real execution data
|
|
15
|
+
✅ **Two Formats** - Natural language (`@voodocs`) or symbolic (`@darkarts`)
|
|
16
|
+
✅ **CI/CD Ready** - Strict mode with exit codes for continuous integration
|
|
12
17
|
|
|
13
|
-
|
|
14
|
-
2. **Instruct**: Run `voodocs instruct` to generate AI instructions for your coding assistant
|
|
15
|
-
3. **Code**: Your AI assistant (Cursor, Claude Code, etc.) automatically adds `@voodocs` annotations as it writes code
|
|
16
|
-
4. **Generate**: Run `voodocs generate` to produce:
|
|
17
|
-
- **Markdown Documentation**: Beautiful, human-readable docs
|
|
18
|
-
- **Automated Tests**: Comprehensive test suites (pytest, unittest, Jest)
|
|
19
|
-
- **API Specifications**: OpenAPI 3.0 and GraphQL schemas
|
|
18
|
+
---
|
|
20
19
|
|
|
21
20
|
## Quick Start
|
|
22
21
|
|
|
23
22
|
### 1. Installation
|
|
24
23
|
|
|
25
|
-
Install the CLI globally using `npm
|
|
24
|
+
Install the CLI globally using `npm`:
|
|
26
25
|
|
|
27
26
|
```bash
|
|
28
27
|
npm install -g @voodocs/cli
|
|
@@ -30,179 +29,348 @@ npm install -g @voodocs/cli
|
|
|
30
29
|
|
|
31
30
|
### 2. Initialize Your Project
|
|
32
31
|
|
|
33
|
-
Navigate to your project directory and initialize
|
|
32
|
+
Navigate to your project directory and initialize VooDocs:
|
|
34
33
|
|
|
35
34
|
```bash
|
|
36
35
|
voodocs init
|
|
37
36
|
```
|
|
38
37
|
|
|
39
|
-
This
|
|
40
|
-
|
|
41
|
-
### 3. Generate AI Instructions
|
|
42
|
-
|
|
43
|
-
Create instructions for your AI coding assistant:
|
|
44
|
-
|
|
45
|
-
```bash
|
|
46
|
-
voodocs instruct
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
This creates a `VOODOCS_INSTRUCTIONS.md` file. Provide this to your AI assistant (add to `.cursorrules`, Claude project instructions, etc.).
|
|
38
|
+
This creates a `.voodocs.json` configuration file and example annotated files.
|
|
50
39
|
|
|
51
|
-
###
|
|
40
|
+
### 3. Add Annotations to Your Code
|
|
52
41
|
|
|
53
|
-
|
|
42
|
+
#### Natural Language Format (`@voodocs`)
|
|
54
43
|
|
|
55
44
|
```typescript
|
|
56
45
|
/**@voodocs
|
|
57
46
|
module_purpose: "User authentication service with JWT token generation"
|
|
58
47
|
dependencies: [
|
|
59
|
-
|
|
60
|
-
|
|
48
|
+
"bcrypt: Password hashing",
|
|
49
|
+
"jsonwebtoken: JWT token generation"
|
|
61
50
|
]
|
|
62
51
|
assumptions: [
|
|
63
|
-
|
|
64
|
-
|
|
52
|
+
"Database connection is established",
|
|
53
|
+
"User model exists with email and password fields"
|
|
54
|
+
]
|
|
55
|
+
*/
|
|
56
|
+
|
|
57
|
+
/**@voodocs
|
|
58
|
+
preconditions: [
|
|
59
|
+
"email must be a valid email format",
|
|
60
|
+
"password must be at least 8 characters"
|
|
61
|
+
]
|
|
62
|
+
postconditions: [
|
|
63
|
+
"Returns a JWT token",
|
|
64
|
+
"User is authenticated in the database"
|
|
65
65
|
]
|
|
66
|
-
|
|
66
|
+
invariants: [
|
|
67
|
+
"Does not modify existing user records"
|
|
68
|
+
]
|
|
69
|
+
side_effects: [
|
|
70
|
+
"Creates a new session in the database"
|
|
71
|
+
]
|
|
72
|
+
complexity: "O(1)"
|
|
73
|
+
*/
|
|
74
|
+
export async function login(email: string, password: string): Promise<string> {
|
|
75
|
+
// ...
|
|
76
|
+
}
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
#### Symbolic Format (`@darkarts`)
|
|
80
|
+
|
|
81
|
+
```typescript
|
|
82
|
+
/**@darkarts
|
|
83
|
+
⊢{User authentication service with JWT token generation}
|
|
84
|
+
∂{
|
|
85
|
+
bcrypt: Password hashing
|
|
86
|
+
jsonwebtoken: JWT token generation
|
|
87
|
+
}
|
|
88
|
+
⚠{
|
|
89
|
+
Database connection is established
|
|
90
|
+
User model ∃ with email ∧ password fields
|
|
91
|
+
}
|
|
92
|
+
*/
|
|
93
|
+
|
|
94
|
+
/**@darkarts
|
|
95
|
+
⊳{
|
|
96
|
+
email must be a valid email format
|
|
97
|
+
password.length ≥ 8
|
|
98
|
+
}
|
|
99
|
+
⊲{
|
|
100
|
+
Returns a JWT token
|
|
101
|
+
User is authenticated ∈ database
|
|
102
|
+
}
|
|
103
|
+
⊨{
|
|
104
|
+
Does ¬ modify existing user records
|
|
105
|
+
}
|
|
106
|
+
⚡{
|
|
107
|
+
Creates a new session ∈ database
|
|
108
|
+
}
|
|
67
109
|
*/
|
|
110
|
+
export async function login(email: string, password: string): Promise<string> {
|
|
111
|
+
// ...
|
|
112
|
+
}
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
### 4. Validate Your Annotations
|
|
116
|
+
|
|
117
|
+
Run validation to ensure your documentation is accurate:
|
|
118
|
+
|
|
119
|
+
```bash
|
|
120
|
+
voodocs validate ./src --recursive
|
|
68
121
|
```
|
|
69
122
|
|
|
70
|
-
|
|
123
|
+
This checks:
|
|
124
|
+
- **Semantic validation**: Dependencies match imports
|
|
125
|
+
- **Performance validation**: Complexity claims are accurate
|
|
126
|
+
- **Consistency**: All required fields are present
|
|
71
127
|
|
|
72
|
-
|
|
128
|
+
### 5. Auto-Fix Issues
|
|
129
|
+
|
|
130
|
+
Automatically fix common errors:
|
|
73
131
|
|
|
74
132
|
```bash
|
|
75
|
-
|
|
76
|
-
|
|
133
|
+
voodocs fix ./src --recursive
|
|
134
|
+
```
|
|
77
135
|
|
|
78
|
-
|
|
79
|
-
voodocs generate ./src --docs-only
|
|
136
|
+
### 6. Generate Documentation
|
|
80
137
|
|
|
81
|
-
|
|
82
|
-
|
|
138
|
+
Create beautiful documentation from your annotations:
|
|
139
|
+
|
|
140
|
+
```bash
|
|
141
|
+
voodocs generate ./src ./docs --recursive
|
|
83
142
|
```
|
|
84
143
|
|
|
144
|
+
---
|
|
145
|
+
|
|
85
146
|
## Core Commands
|
|
86
147
|
|
|
87
|
-
###
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
- `voodocs status`: Check project status and statistics
|
|
92
|
-
|
|
93
|
-
### Context System (Enhanced in v0.3.0)
|
|
94
|
-
- `voodocs context init`: Initialize project context file
|
|
95
|
-
- `voodocs context generate`: Auto-generate context from code annotations
|
|
96
|
-
- `voodocs context check`: Validate code against documented invariants
|
|
97
|
-
- `voodocs context diagram`: Generate architecture diagrams
|
|
98
|
-
- `voodocs context validate`: Validate context file with smart suggestions
|
|
99
|
-
- `voodocs context query`: Query context like a database
|
|
100
|
-
- `voodocs context view`: View context as Markdown
|
|
101
|
-
|
|
102
|
-
### AI Integration (NEW in v0.3.0)
|
|
103
|
-
|
|
104
|
-
VooDocs now **natively integrates** with 5+ AI assistants! When you run `voodocs context init`, it automatically:
|
|
105
|
-
- Detects existing AI configurations (Claude, Cursor, Copilot, etc.)
|
|
106
|
-
- Prompts you to select your AI assistant(s)
|
|
107
|
-
- Generates native configuration files for each AI
|
|
108
|
-
|
|
109
|
-
**Supported AI Assistants:**
|
|
110
|
-
- **Claude Code** - `.claude/skills/voodocs-context/SKILL.md`
|
|
111
|
-
- **Cursor** - `.cursor/rules/voodocs-context.mdc`
|
|
112
|
-
- **GitHub Copilot** - `.github/copilot-instructions.md`
|
|
113
|
-
- **Windsurf** - `.windsurfrules`
|
|
114
|
-
- **Cline** - `.clinerules`
|
|
115
|
-
|
|
116
|
-
Your AI will automatically understand the VooDocs context system and:
|
|
117
|
-
- Check context before making changes
|
|
118
|
-
- Respect documented invariants
|
|
119
|
-
- Update context when adding features
|
|
120
|
-
- Generate architecture diagrams
|
|
121
|
-
- Follow best practices
|
|
122
|
-
|
|
123
|
-
## The DarkArts Language
|
|
124
|
-
|
|
125
|
-
Voodocs uses the **DarkArts language** - a mathematical and logical notation system that represents how AI naturally thinks about code. Instead of forcing AI to write verbose human documentation, Voodocs lets AI express concepts precisely using:
|
|
126
|
-
|
|
127
|
-
- **Mathematical notation**: ∀, ∃, ∈, ⇒, ⇔
|
|
128
|
-
- **Formal logic**: Preconditions, postconditions, invariants
|
|
129
|
-
- **Declarative relationships**: What IS, not what to DO
|
|
130
|
-
- **Conditional reasoning**: Case-based specifications
|
|
131
|
-
|
|
132
|
-
Voodocs then translates this precise, machine-readable format into natural language documentation that humans can easily understand.
|
|
133
|
-
|
|
134
|
-
## What's New in v0.2.0
|
|
135
|
-
|
|
136
|
-
### 🔍 Invariant Checking
|
|
137
|
-
Automatically validate that your code respects documented invariants:
|
|
148
|
+
### `voodocs init`
|
|
149
|
+
|
|
150
|
+
Initialize a new project with VooDocs configuration and example files.
|
|
151
|
+
|
|
138
152
|
```bash
|
|
139
|
-
voodocs
|
|
153
|
+
voodocs init # Initialize with @voodocs format
|
|
154
|
+
voodocs init --format darkarts # Initialize with symbolic @darkarts format
|
|
155
|
+
voodocs init --config-only # Only create config file
|
|
140
156
|
```
|
|
141
|
-
Detects security issues like SQL injection, unhashed passwords, and logged secrets.
|
|
142
157
|
|
|
143
|
-
###
|
|
144
|
-
|
|
158
|
+
### `voodocs validate`
|
|
159
|
+
|
|
160
|
+
Validate annotations against your code.
|
|
161
|
+
|
|
145
162
|
```bash
|
|
146
|
-
voodocs
|
|
163
|
+
voodocs validate <path> [options]
|
|
164
|
+
|
|
165
|
+
Options:
|
|
166
|
+
-r, --recursive Process directories recursively
|
|
167
|
+
-s, --strict Exit with error code if validation fails
|
|
168
|
+
-f, --format <format> Output format: text, json, html (default: text)
|
|
169
|
+
--semantic-only Only run semantic validation
|
|
170
|
+
--performance-only Only run performance validation
|
|
147
171
|
```
|
|
148
|
-
Supports module diagrams, dependency diagrams, and flow diagrams.
|
|
149
172
|
|
|
150
|
-
|
|
151
|
-
Smart validation with actionable suggestions:
|
|
173
|
+
**Example:**
|
|
152
174
|
```bash
|
|
153
|
-
voodocs
|
|
175
|
+
voodocs validate ./src --recursive --strict
|
|
154
176
|
```
|
|
155
|
-
Provides completeness checks, quality suggestions, and consistency validation.
|
|
156
177
|
|
|
157
|
-
|
|
178
|
+
### `voodocs fix`
|
|
158
179
|
|
|
159
|
-
|
|
160
|
-
- **Single Source of Truth**: Code annotations drive docs, tests, and specs - always in sync.
|
|
161
|
-
- **Massive Time Savings**: Eliminate manual documentation work entirely.
|
|
162
|
-
- **Higher Code Quality**: Formal specifications lead to more robust and reliable code.
|
|
163
|
-
- **Precision**: Mathematical notation is unambiguous - no more vague documentation.
|
|
164
|
-
- **Verification**: Automatically check that code respects documented invariants (v0.2.0)
|
|
165
|
-
- **Visualization**: Generate architecture diagrams from context (v0.2.0)
|
|
180
|
+
Automatically fix validation errors.
|
|
166
181
|
|
|
167
|
-
|
|
182
|
+
```bash
|
|
183
|
+
voodocs fix <path> [options]
|
|
168
184
|
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
185
|
+
Options:
|
|
186
|
+
-r, --recursive Process directories recursively
|
|
187
|
+
-d, --dry-run Show what would be fixed without making changes
|
|
188
|
+
-b, --backup Create backup files before fixing
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
**Example:**
|
|
192
|
+
```bash
|
|
193
|
+
voodocs fix ./src --recursive --backup
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
### `voodocs generate`
|
|
197
|
+
|
|
198
|
+
Generate documentation from annotations.
|
|
199
|
+
|
|
200
|
+
```bash
|
|
201
|
+
voodocs generate <input> <output> [options]
|
|
202
|
+
|
|
203
|
+
Options:
|
|
204
|
+
-r, --recursive Process directories recursively
|
|
205
|
+
-f, --format <format> Output format: markdown, html (default: markdown)
|
|
206
|
+
-v, --validate Validate annotations before generating
|
|
207
|
+
--include-toc Include table of contents
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
**Example:**
|
|
211
|
+
```bash
|
|
212
|
+
voodocs generate ./src ./docs --recursive --validate
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
### `voodocs benchmark`
|
|
216
|
+
|
|
217
|
+
Run performance benchmarks to validate complexity claims.
|
|
218
|
+
|
|
219
|
+
```bash
|
|
220
|
+
voodocs benchmark <path> [options]
|
|
221
|
+
|
|
222
|
+
Options:
|
|
223
|
+
-r, --recursive Process directories recursively
|
|
224
|
+
-f, --format <format> Output format: text, json, html (default: text)
|
|
225
|
+
--iterations <n> Number of benchmark iterations (default: 100)
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
**Example:**
|
|
229
|
+
```bash
|
|
230
|
+
voodocs benchmark ./src --recursive --format json
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
---
|
|
234
|
+
|
|
235
|
+
## Annotation Fields
|
|
236
|
+
|
|
237
|
+
### Module-Level Annotations
|
|
238
|
+
|
|
239
|
+
| Field | Symbol | Description |
|
|
240
|
+
|-------|--------|-------------|
|
|
241
|
+
| `module_purpose` | `⊢` | Concise statement of the module's responsibility |
|
|
242
|
+
| `dependencies` | `∂` | List of critical internal or external dependencies |
|
|
243
|
+
| `assumptions` | `⚠` | Key assumptions about environment or inputs |
|
|
244
|
+
| `invariants` | `⊨` | Properties that remain unchanged |
|
|
245
|
+
| `security_model` | `🔒` | Security considerations |
|
|
246
|
+
| `performance_model` | `⚡` | Performance characteristics |
|
|
247
|
+
|
|
248
|
+
### Function/Interface-Level Annotations
|
|
249
|
+
|
|
250
|
+
| Field | Symbol | Description |
|
|
251
|
+
|-------|--------|-------------|
|
|
252
|
+
| `preconditions` | `⊳` | Conditions that must be true before execution |
|
|
253
|
+
| `postconditions` | `⊲` | Conditions that will be true after execution |
|
|
254
|
+
| `invariants` | `⊨` | Properties that remain unchanged |
|
|
255
|
+
| `side_effects` | `⚡` | Observable effects outside the return value |
|
|
256
|
+
| `security_implications` | `🔒` | Security-related considerations |
|
|
257
|
+
| `complexity` | `⚡` | Computational complexity (e.g., O(n)) |
|
|
258
|
+
|
|
259
|
+
---
|
|
260
|
+
|
|
261
|
+
## Symbolic Format Reference
|
|
262
|
+
|
|
263
|
+
### Logic Symbols
|
|
264
|
+
|
|
265
|
+
| Symbol | Meaning | Example |
|
|
266
|
+
|--------|---------|---------|
|
|
267
|
+
| `∧` | and | `authenticated ∧ hasPermission` |
|
|
268
|
+
| `∨` | or | `isAdmin ∨ isOwner` |
|
|
269
|
+
| `¬` | not | `¬isGuest` |
|
|
270
|
+
| `∈` | in | `userId ∈ validIds` |
|
|
271
|
+
| `∃` | exists | `∃ user: user.id = userId` |
|
|
272
|
+
| `∀` | for all | `∀ item: item.price > 0` |
|
|
273
|
+
| `⇒` | implies | `isLoggedIn ⇒ hasSession` |
|
|
274
|
+
| `⇔` | if and only if | `isActive ⇔ lastLogin < 24h` |
|
|
275
|
+
|
|
276
|
+
---
|
|
277
|
+
|
|
278
|
+
## CI/CD Integration
|
|
279
|
+
|
|
280
|
+
Use VooDocs in your continuous integration pipeline:
|
|
281
|
+
|
|
282
|
+
```yaml
|
|
283
|
+
# .github/workflows/validate-docs.yml
|
|
284
|
+
name: Validate Documentation
|
|
285
|
+
|
|
286
|
+
on: [push, pull_request]
|
|
287
|
+
|
|
288
|
+
jobs:
|
|
289
|
+
validate:
|
|
290
|
+
runs-on: ubuntu-latest
|
|
291
|
+
steps:
|
|
292
|
+
- uses: actions/checkout@v2
|
|
293
|
+
|
|
294
|
+
- name: Setup Node.js
|
|
295
|
+
uses: actions/setup-node@v2
|
|
296
|
+
with:
|
|
297
|
+
node-version: '18'
|
|
298
|
+
|
|
299
|
+
- name: Install VooDocs
|
|
300
|
+
run: npm install -g @voodocs/cli
|
|
301
|
+
|
|
302
|
+
- name: Validate Annotations
|
|
303
|
+
run: voodocs validate ./src --recursive --strict
|
|
304
|
+
```
|
|
305
|
+
|
|
306
|
+
---
|
|
307
|
+
|
|
308
|
+
## Configuration
|
|
309
|
+
|
|
310
|
+
Create a `.voodocs.json` file in your project root:
|
|
311
|
+
|
|
312
|
+
```json
|
|
313
|
+
{
|
|
314
|
+
"version": "1.0",
|
|
315
|
+
"format": "voodocs",
|
|
316
|
+
"validation": {
|
|
317
|
+
"semantic": true,
|
|
318
|
+
"performance": true,
|
|
319
|
+
"strict": false
|
|
320
|
+
},
|
|
321
|
+
"generation": {
|
|
322
|
+
"output_format": "markdown",
|
|
323
|
+
"include_toc": true,
|
|
324
|
+
"include_examples": true
|
|
325
|
+
},
|
|
326
|
+
"exclude": [
|
|
327
|
+
"node_modules",
|
|
328
|
+
"dist",
|
|
329
|
+
"build",
|
|
330
|
+
"__pycache__",
|
|
331
|
+
".git"
|
|
332
|
+
]
|
|
189
333
|
}
|
|
190
334
|
```
|
|
191
335
|
|
|
192
|
-
|
|
336
|
+
---
|
|
193
337
|
|
|
194
|
-
|
|
338
|
+
## Documentation
|
|
195
339
|
|
|
196
|
-
- **
|
|
197
|
-
- **
|
|
198
|
-
- **
|
|
340
|
+
- **User Guide**: [docs/darkarts/USER_GUIDE.md](docs/darkarts/USER_GUIDE.md)
|
|
341
|
+
- **API Reference**: [docs/darkarts/API_REFERENCE.md](docs/darkarts/API_REFERENCE.md)
|
|
342
|
+
- **Tutorials**: [docs/darkarts/TUTORIALS.md](docs/darkarts/TUTORIALS.md)
|
|
343
|
+
- **Symbolic Format Guide**: [docs/darkarts/DARKARTS_SYMBOLIC_GUIDE.md](docs/darkarts/DARKARTS_SYMBOLIC_GUIDE.md)
|
|
199
344
|
|
|
200
|
-
|
|
345
|
+
---
|
|
201
346
|
|
|
202
347
|
## Support
|
|
203
348
|
|
|
204
|
-
|
|
349
|
+
- **Issues**: [GitHub Issues](https://github.com/3vilEnterprises/vooodooo-magic/issues)
|
|
350
|
+
- **Email**: contact@3vil.enterprises
|
|
351
|
+
- **Website**: [voodocs.com](https://voodocs.com)
|
|
352
|
+
|
|
353
|
+
---
|
|
354
|
+
|
|
355
|
+
## License
|
|
356
|
+
|
|
357
|
+
Commercial - See [LICENSE](LICENSE) for details.
|
|
358
|
+
|
|
359
|
+
---
|
|
360
|
+
|
|
361
|
+
## What's New in v1.0.1
|
|
362
|
+
|
|
363
|
+
### Bug Fixes
|
|
364
|
+
- ✅ Fixed CLI entry point (ModuleNotFoundError)
|
|
365
|
+
- ✅ Added missing `init` command
|
|
366
|
+
- ✅ Fixed annotation parsing for TypeScript files
|
|
367
|
+
- ✅ Standardized terminology (@voodocs and @darkarts both supported)
|
|
368
|
+
|
|
369
|
+
### Improvements
|
|
370
|
+
- ✅ Better error messages
|
|
371
|
+
- ✅ Improved documentation
|
|
372
|
+
- ✅ Enhanced validation accuracy
|
|
205
373
|
|
|
206
374
|
---
|
|
207
375
|
|
|
208
|
-
**
|
|
376
|
+
**VooDocs - The only documentation tool that validates your annotations and guarantees accuracy.**
|
package/lib/cli/__init__.py
CHANGED
|
@@ -16,7 +16,7 @@ This module provides the command-line interface for VooDocs.
|
|
|
16
16
|
import click
|
|
17
17
|
from typing import Optional
|
|
18
18
|
|
|
19
|
-
__version__ = "1.0.
|
|
19
|
+
__version__ = "1.0.2"
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
@click.group()
|
|
@@ -26,18 +26,22 @@ def cli(ctx):
|
|
|
26
26
|
"""
|
|
27
27
|
VooDocs - AI-Native Documentation Generator with Validation
|
|
28
28
|
|
|
29
|
-
Generate and validate @darkarts annotations in your codebase.
|
|
29
|
+
Generate and validate @voodocs and @darkarts annotations in your codebase.
|
|
30
|
+
|
|
31
|
+
Supports both natural language (@voodocs) and symbolic (@darkarts) formats.
|
|
30
32
|
"""
|
|
31
33
|
ctx.ensure_object(dict)
|
|
32
34
|
|
|
33
35
|
|
|
34
36
|
# Import subcommands
|
|
37
|
+
from .init import init
|
|
35
38
|
from .validate import validate
|
|
36
39
|
from .generate import generate
|
|
37
40
|
from .benchmark import benchmark
|
|
38
41
|
from .fix import fix
|
|
39
42
|
|
|
40
43
|
# Register commands
|
|
44
|
+
cli.add_command(init)
|
|
41
45
|
cli.add_command(validate)
|
|
42
46
|
cli.add_command(generate)
|
|
43
47
|
cli.add_command(benchmark)
|