@eldrforge/kodrdriv 1.2.131 → 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.
Files changed (48) hide show
  1. package/AI-GUIDE.md +834 -0
  2. package/README.md +35 -6
  3. package/agentic-reflection-commit-2025-12-27T22-56-06-143Z.md +50 -0
  4. package/agentic-reflection-commit-2025-12-27T23-01-57-294Z.md +50 -0
  5. package/agentic-reflection-commit-2025-12-27T23-11-57-811Z.md +50 -0
  6. package/agentic-reflection-commit-2025-12-27T23-12-50-645Z.md +50 -0
  7. package/agentic-reflection-commit-2025-12-27T23-13-59-347Z.md +52 -0
  8. package/agentic-reflection-commit-2025-12-27T23-14-36-001Z.md +50 -0
  9. package/agentic-reflection-commit-2025-12-27T23-18-59-832Z.md +50 -0
  10. package/agentic-reflection-commit-2025-12-27T23-25-20-667Z.md +62 -0
  11. package/dist/application.js +3 -0
  12. package/dist/application.js.map +1 -1
  13. package/dist/arguments.js +54 -21
  14. package/dist/arguments.js.map +1 -1
  15. package/dist/commands/audio-commit.js +2 -1
  16. package/dist/commands/audio-commit.js.map +1 -1
  17. package/dist/commands/audio-review.js +4 -2
  18. package/dist/commands/audio-review.js.map +1 -1
  19. package/dist/commands/commit.js +109 -288
  20. package/dist/commands/commit.js.map +1 -1
  21. package/dist/commands/publish.js +48 -6
  22. package/dist/commands/publish.js.map +1 -1
  23. package/dist/commands/release.js +79 -292
  24. package/dist/commands/release.js.map +1 -1
  25. package/dist/commands/review.js +1 -1
  26. package/dist/commands/review.js.map +1 -1
  27. package/dist/commands/tree.js +29 -33
  28. package/dist/commands/tree.js.map +1 -1
  29. package/dist/constants.js +3 -1
  30. package/dist/constants.js.map +1 -1
  31. package/dist/util/loggerAdapter.js +17 -0
  32. package/dist/util/loggerAdapter.js.map +1 -1
  33. package/dist/util/storageAdapter.js +9 -2
  34. package/dist/util/storageAdapter.js.map +1 -1
  35. package/guide/ai-system.md +519 -0
  36. package/guide/architecture.md +346 -0
  37. package/guide/commands.md +380 -0
  38. package/guide/configuration.md +513 -0
  39. package/guide/debugging.md +584 -0
  40. package/guide/development.md +629 -0
  41. package/guide/index.md +212 -0
  42. package/guide/integration.md +507 -0
  43. package/guide/monorepo.md +530 -0
  44. package/guide/quickstart.md +223 -0
  45. package/guide/testing.md +460 -0
  46. package/guide/tree-operations.md +618 -0
  47. package/guide/usage.md +575 -0
  48. package/package.json +9 -9
@@ -0,0 +1,513 @@
1
+ # Configuration Guide
2
+
3
+ Complete configuration reference for kodrdriv.
4
+
5
+ For detailed documentation, see: [`docs/public/configuration.md`](../docs/public/configuration.md)
6
+
7
+ ## Configuration Hierarchy
8
+
9
+ Settings merge in order (highest priority first):
10
+
11
+ 1. **CLI Arguments** - `--model gpt-4o`
12
+ 2. **Config Files** - `.kodrdriv/config.yaml`
13
+ 3. **Defaults** - Built-in defaults
14
+
15
+ ## Configuration Files
16
+
17
+ ### Location Priority
18
+
19
+ 1. `.kodrdriv/` in current directory (project config)
20
+ 2. `~/.kodrdriv/` in home directory (user config)
21
+ 3. Built-in defaults
22
+
23
+ ### Supported Formats
24
+
25
+ - **YAML**: `.kodrdriv/config.yaml` (recommended)
26
+ - **JSON**: `.kodrdriv/config.json`
27
+ - **JavaScript**: `.kodrdriv/config.js`
28
+
29
+ ## Configuration Schema
30
+
31
+ ### Global Options
32
+
33
+ ```yaml
34
+ # AI Model Configuration
35
+ model: gpt-4o # or gpt-4o-mini
36
+ openaiReasoning: medium # low | medium | high
37
+ openaiMaxOutputTokens: 4096
38
+
39
+ # Output Settings
40
+ outputDirectory: output
41
+ preferencesDirectory: ~/.kodrdriv
42
+
43
+ # Context Settings
44
+ contextDirectories:
45
+ - src
46
+ - docs
47
+
48
+ # Logging
49
+ verbose: false
50
+ debug: false
51
+ dryRun: false
52
+
53
+ # Advanced
54
+ overrides: true
55
+ excludedPatterns:
56
+ - "**/node_modules/**"
57
+ - "**/dist/**"
58
+ ```
59
+
60
+ ### Commit Configuration
61
+
62
+ ```yaml
63
+ commit:
64
+ # Behavior
65
+ add: false # Auto-stage changes
66
+ cached: true # Use staged changes
67
+ sendit: false # Auto-commit
68
+ interactive: false # Interactive review
69
+ amend: false # Amend last commit
70
+ push: false # Push after commit
71
+
72
+ # AI Settings
73
+ maxAgenticIterations: 10 # Analysis depth
74
+ allowCommitSplitting: false # Suggest splits
75
+ toolTimeout: 10000 # Tool timeout (ms)
76
+ selfReflection: false # Generate reports
77
+
78
+ # Context
79
+ context: "" # Additional context
80
+ contextFiles: [] # Context file paths
81
+ direction: "" # User guidance
82
+
83
+ # Limits
84
+ messageLimit: 10 # Recent commits to include
85
+ maxDiffBytes: 20480 # Max diff size per file
86
+ skipFileCheck: false # Skip file: dep check
87
+
88
+ # Model Overrides
89
+ model: "" # Override global model
90
+ openaiReasoning: "" # Override reasoning level
91
+ openaiMaxOutputTokens: 0 # Override max tokens
92
+ ```
93
+
94
+ ### Release Configuration
95
+
96
+ ```yaml
97
+ release:
98
+ # References
99
+ from: "" # Start ref (default: last tag)
100
+ to: "HEAD" # End ref
101
+
102
+ # AI Settings
103
+ maxAgenticIterations: 30 # Analysis depth
104
+ selfReflection: false # Generate reports
105
+
106
+ # Behavior
107
+ interactive: false # Interactive review
108
+ noMilestones: false # Disable milestones
109
+ fromMain: false # Compare against main
110
+
111
+ # Context
112
+ context: "" # Additional context
113
+ contextFiles: [] # Context file paths
114
+ focus: "" # Release focus/emphasis
115
+
116
+ # Limits
117
+ messageLimit: 20 # Commits to include
118
+ maxDiffBytes: 20480 # Max diff size
119
+
120
+ # Model Overrides
121
+ model: ""
122
+ openaiReasoning: ""
123
+ openaiMaxOutputTokens: 0
124
+ ```
125
+
126
+ ### Publish Configuration
127
+
128
+ ```yaml
129
+ publish:
130
+ # GitHub Settings
131
+ targetBranch: main # Target branch
132
+ mergeMethod: squash # merge | squash | rebase
133
+
134
+ # Behavior
135
+ sendit: false # Skip confirmations
136
+ interactive: false # Review notes
137
+ syncTarget: false # Auto-sync target
138
+
139
+ # Checks
140
+ checksTimeout: 3600000 # PR checks timeout (ms)
141
+ skipUserConfirmation: false # Skip timeout prompt
142
+ waitForReleaseWorkflows: true # Wait for release workflows
143
+ releaseWorkflowsTimeout: 1800000 # Workflow timeout (ms)
144
+ releaseWorkflowNames: [] # Specific workflows to wait for
145
+
146
+ # Version Management
147
+ targetVersion: patch # patch | minor | major | X.Y.Z
148
+ skipAlreadyPublished: false # Skip if already published
149
+ forceRepublish: false # Delete tag and republish
150
+
151
+ # Dependencies
152
+ linkWorkspacePackages: true # Link before publish
153
+ unlinkWorkspacePackages: true # Unlink after publish
154
+ updateDeps: "" # Update scope (e.g., @myorg)
155
+
156
+ # Advanced
157
+ noMilestones: false # Disable milestones
158
+ requiredEnvVars: # Required env vars
159
+ - GITHUB_TOKEN
160
+ - OPENAI_API_KEY
161
+ ```
162
+
163
+ ### Tree Configuration
164
+
165
+ ```yaml
166
+ tree:
167
+ # Directories
168
+ directories:
169
+ - packages/core
170
+ - packages/ui
171
+
172
+ # Execution
173
+ parallel: false # Enable parallel execution
174
+ maxConcurrency: 4 # Max parallel packages
175
+
176
+ # Filtering
177
+ exclude: # Exclude patterns
178
+ - "**/test-*"
179
+ startFrom: "" # Start from package
180
+ stopAt: "" # Stop at package
181
+
182
+ # Recovery
183
+ continue: false # Continue from checkpoint
184
+ retryFailed: false # Retry failed packages
185
+ skipFailed: false # Skip failed packages
186
+ markCompleted: [] # Mark as completed
187
+ skipPackages: [] # Skip packages
188
+
189
+ # Monitoring
190
+ monitoring:
191
+ showProgress: true
192
+ showMetrics: true
193
+ logLevel: normal # minimal | normal | verbose
194
+
195
+ # Retry Configuration
196
+ retry:
197
+ maxAttempts: 3
198
+ initialDelayMs: 5000
199
+ maxDelayMs: 60000
200
+ backoffMultiplier: 2
201
+ ```
202
+
203
+ ## Configuration Examples
204
+
205
+ ### Minimal (Defaults)
206
+
207
+ ```yaml
208
+ model: gpt-4o-mini
209
+ ```
210
+
211
+ ### Standard Development
212
+
213
+ ```yaml
214
+ model: gpt-4o
215
+ outputDirectory: output
216
+
217
+ commit:
218
+ sendit: false
219
+ selfReflection: true
220
+
221
+ release:
222
+ selfReflection: true
223
+ focus: "user-facing changes and breaking changes"
224
+ ```
225
+
226
+ ### Automated CI/CD
227
+
228
+ ```yaml
229
+ model: gpt-4o
230
+ outputDirectory: output
231
+
232
+ commit:
233
+ sendit: true
234
+ add: true
235
+ selfReflection: false
236
+
237
+ release:
238
+ interactive: false
239
+ noMilestones: false
240
+
241
+ publish:
242
+ sendit: true
243
+ skipUserConfirmation: true
244
+ targetBranch: main
245
+ ```
246
+
247
+ ### Monorepo
248
+
249
+ ```yaml
250
+ model: gpt-4o
251
+ outputDirectory: output
252
+
253
+ tree:
254
+ directories:
255
+ - packages/core
256
+ - packages/ui
257
+ - packages/utils
258
+ parallel: true
259
+ maxConcurrency: 3
260
+ retry:
261
+ maxAttempts: 3
262
+ monitoring:
263
+ showProgress: true
264
+ showMetrics: true
265
+
266
+ commit:
267
+ selfReflection: true
268
+
269
+ release:
270
+ selfReflection: true
271
+ maxAgenticIterations: 35
272
+ ```
273
+
274
+ ### High Quality, Cost-Effective
275
+
276
+ ```yaml
277
+ # Use best model for releases, cheaper for commits
278
+ model: gpt-4o-mini # Global default
279
+
280
+ commit:
281
+ maxAgenticIterations: 8 # Efficient
282
+ selfReflection: false # Save tokens
283
+
284
+ release:
285
+ model: gpt-4o # Override for quality
286
+ maxAgenticIterations: 40
287
+ selfReflection: true
288
+ contextFiles:
289
+ - CHANGELOG.md
290
+ ```
291
+
292
+ ## Environment Variables
293
+
294
+ ```bash
295
+ # Required
296
+ export OPENAI_API_KEY="sk-..."
297
+
298
+ # For publish command
299
+ export GITHUB_TOKEN="ghp-..."
300
+
301
+ # Optional: Custom config path
302
+ export KODRDRIV_CONFIG=".kodrdriv/config.prod.yaml"
303
+ ```
304
+
305
+ ## Configuration Validation
306
+
307
+ ### Check Configuration
308
+
309
+ ```bash
310
+ # Show merged configuration
311
+ kodrdriv --check-config
312
+
313
+ # Show with source priority
314
+ kodrdriv --check-config --verbose
315
+
316
+ # Check specific command
317
+ kodrdriv commit --dry-run --verbose
318
+ ```
319
+
320
+ ### Initialize Configuration
321
+
322
+ ```bash
323
+ # Create default config
324
+ kodrdriv --init-config
325
+
326
+ # Creates:
327
+ # - .kodrdriv/config.yaml
328
+ # - .kodrdriv/personas/ (empty)
329
+ # - .kodrdriv/instructions/ (empty)
330
+ ```
331
+
332
+ ## Per-Command Overrides
333
+
334
+ Override global settings per command:
335
+
336
+ ```yaml
337
+ # Global: cheap and fast
338
+ model: gpt-4o-mini
339
+ openaiReasoning: low
340
+
341
+ # But for releases: quality matters
342
+ release:
343
+ model: gpt-4o
344
+ openaiReasoning: high
345
+ maxAgenticIterations: 50
346
+
347
+ # And for reviews: balanced
348
+ review:
349
+ model: gpt-4o
350
+ openaiReasoning: medium
351
+ ```
352
+
353
+ ## Advanced Configuration
354
+
355
+ ### Stop-Context Filtering
356
+
357
+ Automatically remove sensitive information:
358
+
359
+ ```yaml
360
+ stopContext:
361
+ enabled: true
362
+ caseSensitive: false
363
+ warnOnFilter: true
364
+ replacement: "[REDACTED]"
365
+
366
+ # Simple strings
367
+ strings:
368
+ - "internal-api-key"
369
+ - "secret-token"
370
+
371
+ # Regex patterns
372
+ patterns:
373
+ - regex: "sk-[a-zA-Z0-9]{48}"
374
+ description: "OpenAI API keys"
375
+ - regex: "ghp_[a-zA-Z0-9]{36}"
376
+ description: "GitHub tokens"
377
+ ```
378
+
379
+ ### Branch-Specific Versioning
380
+
381
+ ```yaml
382
+ branches:
383
+ develop:
384
+ targetBranch: main
385
+ developmentBranch: true
386
+ version:
387
+ type: prerelease
388
+ tag: dev
389
+
390
+ staging:
391
+ targetBranch: main
392
+ version:
393
+ type: prerelease
394
+ tag: rc
395
+ ```
396
+
397
+ ### Custom Scope Roots
398
+
399
+ For link/unlink with multiple scopes:
400
+
401
+ ```yaml
402
+ link:
403
+ scopeRoots:
404
+ "@myorg": "../packages"
405
+ "@external": "../../external-deps"
406
+ ```
407
+
408
+ ## Configuration Patterns
409
+
410
+ ### Pattern 1: Safety First
411
+
412
+ ```yaml
413
+ commit:
414
+ sendit: false # Manual review
415
+ skipFileCheck: false # Check for file: deps
416
+
417
+ publish:
418
+ sendit: false # Manual approval
419
+ interactive: true # Review notes
420
+ skipUserConfirmation: false # Confirm timeouts
421
+ ```
422
+
423
+ ### Pattern 2: Speed Optimized
424
+
425
+ ```yaml
426
+ model: gpt-4o-mini
427
+
428
+ commit:
429
+ maxAgenticIterations: 6
430
+ messageLimit: 5
431
+
432
+ release:
433
+ maxAgenticIterations: 20
434
+ messageLimit: 10
435
+ ```
436
+
437
+ ### Pattern 3: Quality Optimized
438
+
439
+ ```yaml
440
+ model: gpt-4o
441
+ openaiReasoning: high
442
+
443
+ commit:
444
+ selfReflection: true
445
+ maxAgenticIterations: 15
446
+
447
+ release:
448
+ selfReflection: true
449
+ maxAgenticIterations: 50
450
+ contextFiles:
451
+ - CHANGELOG.md
452
+ - ARCHITECTURE.md
453
+ ```
454
+
455
+ ## Troubleshooting Configuration
456
+
457
+ ### Config Not Loading
458
+
459
+ ```bash
460
+ # Check file exists
461
+ ls -la .kodrdriv/
462
+
463
+ # Validate YAML syntax
464
+ cat .kodrdriv/config.yaml
465
+
466
+ # Check merged config
467
+ kodrdriv --check-config
468
+ ```
469
+
470
+ ### Settings Being Ignored
471
+
472
+ ```bash
473
+ # Check priority (CLI > file > defaults)
474
+ kodrdriv commit --model gpt-4o --check-config
475
+
476
+ # Verify field names match exactly
477
+ # (configuration file keys match CLI names)
478
+ ```
479
+
480
+ ### Validation Errors
481
+
482
+ ```bash
483
+ # Use --check-config to validate
484
+ kodrdriv --check-config
485
+
486
+ # Common issues:
487
+ # - Typos in field names
488
+ # - Wrong data types (string vs number)
489
+ # - Invalid enum values (model names)
490
+ ```
491
+
492
+ ## Next Steps
493
+
494
+ - **[Usage Guide](./usage.md)** - Apply configuration in workflows
495
+ - **[Commands Reference](./commands.md)** - Command-specific options
496
+ - **[Debugging Guide](./debugging.md)** - Troubleshoot config issues
497
+ - **[Full Configuration Docs](../docs/public/configuration.md)** - Complete reference
498
+
499
+ ## Configuration Checklist
500
+
501
+ When setting up kodrdriv:
502
+
503
+ - [ ] Set OPENAI_API_KEY
504
+ - [ ] Set GITHUB_TOKEN (if using publish)
505
+ - [ ] Run `kodrdriv --init-config`
506
+ - [ ] Edit `.kodrdriv/config.yaml`
507
+ - [ ] Test with `kodrdriv commit --dry-run`
508
+ - [ ] Verify with `kodrdriv --check-config`
509
+ - [ ] Customize for your workflow
510
+ - [ ] Document team conventions
511
+
512
+ Your configuration is the foundation of a great kodrdriv experience!
513
+