@eldrforge/kodrdriv 1.2.132 → 1.2.133

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/guide/usage.md ADDED
@@ -0,0 +1,575 @@
1
+ # Usage Guide
2
+
3
+ Common workflows and command patterns for kodrdriv.
4
+
5
+ ## Daily Workflows
6
+
7
+ ### Basic Commit Workflow
8
+
9
+ ```bash
10
+ # Make changes
11
+ # ... edit files ...
12
+
13
+ # Stage changes
14
+ git add .
15
+
16
+ # Generate and commit
17
+ kodrdriv commit --sendit
18
+ ```
19
+
20
+ **With review**:
21
+ ```bash
22
+ kodrdriv commit --interactive
23
+ # → Review message
24
+ # → Edit if needed
25
+ # → Confirm to commit
26
+ ```
27
+
28
+ ### Release Workflow
29
+
30
+ ```bash
31
+ # Generate release notes
32
+ kodrdriv release
33
+
34
+ # Review output
35
+ cat output/RELEASE_NOTES.md
36
+
37
+ # If satisfied, create release
38
+ gh release create v1.0.0 --notes-file output/RELEASE_NOTES.md
39
+ ```
40
+
41
+ **Automated**:
42
+ ```bash
43
+ # Does everything: notes, PR, merge, tag, release
44
+ kodrdriv publish
45
+ ```
46
+
47
+ ### Review Workflow
48
+
49
+ ```bash
50
+ # Analyze review notes
51
+ kodrdriv review "Need to refactor auth module for better testability"
52
+
53
+ # Creates GitHub issues automatically
54
+ kodrdriv review --sendit < review-notes.txt
55
+ ```
56
+
57
+ ## Advanced Workflows
58
+
59
+ ### Using Context Files
60
+
61
+ Pass documentation for better context:
62
+
63
+ ```bash
64
+ # For commits
65
+ kodrdriv commit \
66
+ --context-files docs/ARCHITECTURE.md \
67
+ --sendit
68
+
69
+ # For releases
70
+ kodrdriv release \
71
+ --context-files IMPLEMENTATION.md BREAKING-CHANGES.md \
72
+ --interactive
73
+
74
+ # Multiple files combined
75
+ kodrdriv release \
76
+ --context-files $(find docs -name "*.md") \
77
+ --self-reflection
78
+ ```
79
+
80
+ ### Self-Reflection Analysis
81
+
82
+ Generate detailed reports about AI analysis:
83
+
84
+ ```bash
85
+ # Enable self-reflection
86
+ kodrdriv commit --self-reflection
87
+
88
+ # Check the report
89
+ cat output/agentic-reflection-commit-*.md
90
+ ```
91
+
92
+ **Report includes**:
93
+ - Tools used and their effectiveness
94
+ - Execution timeline
95
+ - Performance metrics
96
+ - Conversation history
97
+ - Recommendations for improvement
98
+
99
+ ### Split Commit Suggestions
100
+
101
+ Let AI suggest splitting complex changes:
102
+
103
+ ```bash
104
+ kodrdriv commit \
105
+ --allow-commit-splitting \
106
+ --self-reflection
107
+
108
+ # AI may suggest:
109
+ # Split 1: Authentication changes
110
+ # Split 2: Database migration
111
+ # Split 3: Documentation updates
112
+ ```
113
+
114
+ ### Interactive Refinement
115
+
116
+ Review and improve AI output:
117
+
118
+ ```bash
119
+ # Interactive mode
120
+ kodrdriv commit --interactive
121
+ # → Review message
122
+ # → Edit manually or
123
+ # → Improve with AI feedback
124
+ # → Confirm
125
+
126
+ kodrdriv release --interactive
127
+ # → Review notes
128
+ # → Edit or improve
129
+ # → Accept or cancel
130
+ ```
131
+
132
+ ## Monorepo Workflows
133
+
134
+ ### Link Packages for Development
135
+
136
+ ```bash
137
+ # Link all packages
138
+ kodrdriv tree link
139
+
140
+ # Work on code...
141
+
142
+ # Unlink when done
143
+ kodrdriv tree unlink
144
+ ```
145
+
146
+ ### Multi-Package Operations
147
+
148
+ ```bash
149
+ # Run precommit checks across all packages
150
+ kodrdriv tree precommit
151
+
152
+ # Commit all packages
153
+ kodrdriv tree commit
154
+
155
+ # Publish in dependency order
156
+ kodrdriv tree publish --parallel
157
+ ```
158
+
159
+ ### Selective Operations
160
+
161
+ ```bash
162
+ # Start from specific package
163
+ kodrdriv tree publish --start-from @myorg/core
164
+
165
+ # Stop before specific package
166
+ kodrdriv tree publish --stop-at @myorg/ui
167
+
168
+ # Skip packages
169
+ kodrdriv tree publish --skip @myorg/experimental
170
+
171
+ # Resume after failure
172
+ kodrdriv tree publish --continue
173
+ ```
174
+
175
+ ## Audio-Driven Workflows
176
+
177
+ ### Setup (One-Time)
178
+
179
+ ```bash
180
+ # Configure microphone
181
+ kodrdriv select-audio
182
+ ```
183
+
184
+ ### Voice Commits
185
+
186
+ ```bash
187
+ # Record audio describing changes
188
+ kodrdriv audio-commit
189
+ # → Records audio
190
+ # → Transcribes with Whisper
191
+ # → Generates commit message
192
+ # → Optionally commits
193
+ ```
194
+
195
+ ### Voice Reviews
196
+
197
+ ```bash
198
+ # Record review notes
199
+ kodrdriv audio-review --sendit
200
+ # → Records audio
201
+ # → Transcribes
202
+ # → Analyzes for issues
203
+ # → Creates GitHub issues
204
+ ```
205
+
206
+ ### Audio from File
207
+
208
+ ```bash
209
+ # Use pre-recorded audio
210
+ kodrdriv audio-commit --file recording.m4a
211
+
212
+ # Process directory of recordings
213
+ kodrdriv audio-review --directory recordings/
214
+ ```
215
+
216
+ ## Configuration Workflows
217
+
218
+ ### Project-Specific Prompts
219
+
220
+ Create custom prompts in `.kodrdriv/`:
221
+
222
+ ```bash
223
+ # Create directory
224
+ mkdir -p .kodrdriv/personas
225
+
226
+ # Add custom persona
227
+ cat > .kodrdriv/personas/committer.md << 'EOF'
228
+ You are a senior engineer who writes concise, technical commit messages.
229
+ Focus on the "why" behind changes, not just the "what".
230
+ EOF
231
+
232
+ # Use with overrides
233
+ kodrdriv commit --overrides
234
+ ```
235
+
236
+ ### Per-Command Configuration
237
+
238
+ ```yaml
239
+ # .kodrdriv/config.yaml
240
+ commit:
241
+ model: gpt-4o-mini # Fast, cheap for commits
242
+ maxAgenticIterations: 8
243
+
244
+ release:
245
+ model: gpt-4o # Better quality for releases
246
+ maxAgenticIterations: 35
247
+ selfReflection: true
248
+
249
+ review:
250
+ model: gpt-4o
251
+ includeCommitHistory: true
252
+ ```
253
+
254
+ ### Environment-Based Configuration
255
+
256
+ ```bash
257
+ # Development
258
+ export KODRDRIV_CONFIG=.kodrdriv/config.dev.yaml
259
+ kodrdriv commit
260
+
261
+ # Production
262
+ export KODRDRIV_CONFIG=.kodrdriv/config.prod.yaml
263
+ kodrdriv publish
264
+ ```
265
+
266
+ ## Integration Examples
267
+
268
+ ### Example 1: Feature Branch Workflow
269
+
270
+ ```bash
271
+ # Create feature branch
272
+ git checkout -b feature/user-auth
273
+
274
+ # Work and commit frequently
275
+ # ... make changes ...
276
+ kodrdriv commit --sendit
277
+
278
+ # ... more changes ...
279
+ kodrdriv commit --sendit
280
+
281
+ # Ready for PR
282
+ git push origin feature/user-auth
283
+
284
+ # Generate comprehensive release notes for PR description
285
+ kodrdriv release --from main --to feature/user-auth
286
+ ```
287
+
288
+ ### Example 2: Release Workflow
289
+
290
+ ```bash
291
+ # On main branch, ready to release
292
+ git checkout main
293
+ git pull
294
+
295
+ # Generate release notes
296
+ kodrdriv release --context-files CHANGELOG.md
297
+
298
+ # Review
299
+ cat output/RELEASE_NOTES.md
300
+
301
+ # If good, publish
302
+ kodrdriv publish
303
+ # → Creates PR
304
+ # → Waits for checks
305
+ # → Merges
306
+ # → Tags
307
+ # → Creates GitHub release
308
+ # → Bumps version
309
+ ```
310
+
311
+ ### Example 3: Hotfix Workflow
312
+
313
+ ```bash
314
+ # Create hotfix branch
315
+ git checkout -b hotfix/security-patch main
316
+
317
+ # Make fix
318
+ # ... edit files ...
319
+
320
+ # Quick commit
321
+ kodrdriv commit --sendit --max-agentic-iterations 5
322
+
323
+ # Fast release
324
+ kodrdriv publish --sendit
325
+ ```
326
+
327
+ ### Example 4: Monorepo Release
328
+
329
+ ```bash
330
+ # Link packages for development
331
+ kodrdriv tree link
332
+
333
+ # Make changes across packages
334
+ # ... edit multiple packages ...
335
+
336
+ # Run checks
337
+ kodrdriv tree precommit
338
+
339
+ # Publish all updated packages
340
+ kodrdriv tree publish \
341
+ --parallel \
342
+ --max-concurrency 3 \
343
+ --context-files MIGRATION-GUIDE.md
344
+ ```
345
+
346
+ ## Debugging Workflows
347
+
348
+ ### Verbose Logging
349
+
350
+ ```bash
351
+ # See what's happening
352
+ kodrdriv commit --verbose
353
+
354
+ # Even more detail
355
+ kodrdriv commit --debug
356
+
357
+ # Save debug output
358
+ kodrdriv commit --debug 2>&1 | tee debug.log
359
+ ```
360
+
361
+ ### Debug AI Interactions
362
+
363
+ ```bash
364
+ # Enable debug files
365
+ kodrdriv commit --debug
366
+
367
+ # Check generated files
368
+ ls output/
369
+ # request-*.json - What was sent to OpenAI
370
+ # response-*.json - What came back
371
+ ```
372
+
373
+ ### Test Configuration
374
+
375
+ ```bash
376
+ # Verify config merging
377
+ kodrdriv --check-config --verbose
378
+
379
+ # Test specific command config
380
+ kodrdriv commit --dry-run --verbose
381
+
382
+ # Check all merged options
383
+ kodrdriv --check-config | grep -A 50 commit
384
+ ```
385
+
386
+ ## Optimization Workflows
387
+
388
+ ### Cost Optimization
389
+
390
+ ```bash
391
+ # Use cheaper model for simple tasks
392
+ kodrdriv commit --model gpt-4o-mini
393
+
394
+ # Reduce iterations for speed
395
+ kodrdriv commit --max-agentic-iterations 5
396
+
397
+ # Configure in yaml for permanent change
398
+ ```
399
+
400
+ **Cost comparison**:
401
+ - gpt-4o-mini: $0.15 / 1M input tokens
402
+ - gpt-4o: $2.50 / 1M input tokens
403
+ - ~17x cheaper for simple commits
404
+
405
+ ### Speed Optimization
406
+
407
+ ```bash
408
+ # Reduce context
409
+ kodrdriv commit --message-limit 5
410
+
411
+ # Smaller diffs
412
+ kodrdriv commit --max-diff-bytes 10240
413
+
414
+ # Fewer iterations
415
+ kodrdriv commit --max-agentic-iterations 6
416
+ ```
417
+
418
+ ### Quality Optimization
419
+
420
+ ```bash
421
+ # More iterations for complex changes
422
+ kodrdriv release --max-agentic-iterations 50
423
+
424
+ # Better model
425
+ kodrdriv release --model gpt-4o
426
+
427
+ # Rich context
428
+ kodrdriv release \
429
+ --context-files docs/*.md \
430
+ --self-reflection
431
+ ```
432
+
433
+ ## Common Patterns
434
+
435
+ ### Pattern: Commit Often, Release Weekly
436
+
437
+ ```bash
438
+ # Daily: Quick commits
439
+ kodrdriv commit --sendit
440
+
441
+ # Friday: Weekly release
442
+ kodrdriv release --context-files WEEKLY-SUMMARY.md
443
+ kodrdriv publish
444
+ ```
445
+
446
+ ### Pattern: Feature Branches with Context
447
+
448
+ ```bash
449
+ # Document your feature
450
+ echo "## Implementation Notes" > FEATURE-NOTES.md
451
+ # ... document as you work ...
452
+
453
+ # Commit with context
454
+ kodrdriv commit --context-files FEATURE-NOTES.md --sendit
455
+
456
+ # Release with context
457
+ kodrdriv release --context-files FEATURE-NOTES.md
458
+ ```
459
+
460
+ ### Pattern: Automated CI/CD
461
+
462
+ ```yaml
463
+ # .github/workflows/release.yml
464
+ - name: Auto-Release
465
+ run: |
466
+ kodrdriv publish --sendit --self-reflection
467
+ env:
468
+ OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
469
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
470
+ ```
471
+
472
+ ### Pattern: Manual Approval Gates
473
+
474
+ ```bash
475
+ # Generate but don't commit
476
+ kodrdriv commit > commit-msg.txt
477
+
478
+ # Review
479
+ cat commit-msg.txt
480
+
481
+ # Commit manually if approved
482
+ git commit -F commit-msg.txt
483
+ ```
484
+
485
+ ## Tips & Best Practices
486
+
487
+ ### 1. Use Dry Run First
488
+
489
+ Always preview before making changes:
490
+ ```bash
491
+ kodrdriv commit --dry-run
492
+ kodrdriv publish --dry-run
493
+ ```
494
+
495
+ ### 2. Enable Self-Reflection
496
+
497
+ Improve AI quality over time:
498
+ ```bash
499
+ kodrdriv commit --self-reflection
500
+ # Review reports to understand AI decision-making
501
+ ```
502
+
503
+ ### 3. Pass Context Files
504
+
505
+ For complex changes, provide context:
506
+ ```bash
507
+ kodrdriv release --context-files \
508
+ IMPLEMENTATION.md \
509
+ ARCHITECTURE.md \
510
+ BREAKING-CHANGES.md
511
+ ```
512
+
513
+ ### 4. Use Interactive Mode
514
+
515
+ Review and refine before committing:
516
+ ```bash
517
+ kodrdriv commit --interactive
518
+ kodrdriv release --interactive
519
+ ```
520
+
521
+ ### 5. Configure Per-Project
522
+
523
+ Different projects have different needs:
524
+ ```yaml
525
+ # API project - focus on breaking changes
526
+ release:
527
+ focus: "API changes and breaking changes"
528
+
529
+ # Library project - focus on features
530
+ release:
531
+ focus: "new features and performance improvements"
532
+
533
+ # Internal tool - be concise
534
+ commit:
535
+ maxAgenticIterations: 6
536
+ ```
537
+
538
+ ## Next Steps
539
+
540
+ - **[Commands Reference](./commands.md)** - Detailed command documentation
541
+ - **[Configuration Guide](./configuration.md)** - All configuration options
542
+ - **[AI System Guide](./ai-system.md)** - How AI analysis works
543
+ - **[Debugging Guide](./debugging.md)** - Troubleshooting help
544
+
545
+ ## Quick Reference Card
546
+
547
+ ```
548
+ ┌─ Commit ─────────────────────────────┐
549
+ │ kodrdriv commit [--sendit] │
550
+ │ + --interactive Review before commit│
551
+ │ + --self-reflection Analysis report│
552
+ │ + --context-files FILES Add context│
553
+ └──────────────────────────────────────┘
554
+
555
+ ┌─ Release ────────────────────────────┐
556
+ │ kodrdriv release │
557
+ │ + --interactive Review notes │
558
+ │ + --context-files FILES Add context│
559
+ │ + --self-reflection Analysis report│
560
+ └──────────────────────────────────────┘
561
+
562
+ ┌─ Publish ────────────────────────────┐
563
+ │ kodrdriv publish [--sendit] │
564
+ │ + --target-version VERSION Override│
565
+ │ + --context-files FILES Add context│
566
+ └──────────────────────────────────────┘
567
+
568
+ ┌─ Tree ───────────────────────────────┐
569
+ │ kodrdriv tree COMMAND │
570
+ │ + --parallel Parallel execution │
571
+ │ + --directories DIRS Target dirs │
572
+ │ + --continue Resume after failure │
573
+ └──────────────────────────────────────┘
574
+ ```
575
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eldrforge/kodrdriv",
3
- "version": "1.2.132",
3
+ "version": "1.2.133",
4
4
  "description": "Create Intelligent Release Notes or Change Logs from Git",
5
5
  "main": "dist/main.js",
6
6
  "type": "module",
@@ -38,13 +38,13 @@
38
38
  "author": "Calen Varek <calenvarek@gmail.com>",
39
39
  "license": "Apache-2.0",
40
40
  "dependencies": {
41
- "@eldrforge/ai-service": "^0.1.15",
42
- "@eldrforge/audio-tools": "^0.1.9",
41
+ "@eldrforge/ai-service": "^0.1.16",
42
+ "@eldrforge/audio-tools": "^0.1.10",
43
43
  "@eldrforge/git-tools": "^0.1.15",
44
44
  "@eldrforge/github-tools": "^0.1.17",
45
- "@eldrforge/shared": "^0.1.4",
46
- "@eldrforge/tree-core": "^0.1.3",
47
- "@eldrforge/tree-execution": "^0.1.3",
45
+ "@eldrforge/shared": "^0.1.5",
46
+ "@eldrforge/tree-core": "^0.1.4",
47
+ "@eldrforge/tree-execution": "^0.1.4",
48
48
  "@octokit/rest": "^22.0.0",
49
49
  "@riotprompt/riotprompt": "^0.0.10",
50
50
  "@theunwalked/cardigantime": "^0.0.16",