aidp 0.10.0 → 0.12.0

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 (98) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +194 -25
  3. data/lib/aidp/analyze/kb_inspector.rb +2 -15
  4. data/lib/aidp/analyze/progress.rb +2 -1
  5. data/lib/aidp/analyze/ruby_maat_integration.rb +2 -15
  6. data/lib/aidp/analyze/runner.rb +64 -20
  7. data/lib/aidp/analyze/steps.rb +10 -8
  8. data/lib/aidp/analyze/tree_sitter_grammar_loader.rb +2 -13
  9. data/lib/aidp/analyze/tree_sitter_scan.rb +2 -13
  10. data/lib/aidp/cli/checkpoint_command.rb +98 -0
  11. data/lib/aidp/cli/first_run_wizard.rb +65 -94
  12. data/lib/aidp/cli/jobs_command.rb +249 -34
  13. data/lib/aidp/cli/mcp_dashboard.rb +205 -0
  14. data/lib/aidp/cli.rb +517 -43
  15. data/lib/aidp/config.rb +5 -8
  16. data/lib/aidp/debug_logger.rb +4 -4
  17. data/lib/aidp/debug_mixin.rb +11 -4
  18. data/lib/aidp/execute/checkpoint.rb +282 -0
  19. data/lib/aidp/execute/checkpoint_display.rb +221 -0
  20. data/lib/aidp/execute/progress.rb +2 -1
  21. data/lib/aidp/execute/prompt_manager.rb +62 -0
  22. data/lib/aidp/execute/runner.rb +53 -24
  23. data/lib/aidp/execute/steps.rb +36 -27
  24. data/lib/aidp/execute/work_loop_runner.rb +308 -0
  25. data/lib/aidp/execute/workflow_selector.rb +26 -17
  26. data/lib/aidp/harness/condition_detector.rb +4 -4
  27. data/lib/aidp/harness/config_schema.rb +40 -0
  28. data/lib/aidp/harness/config_validator.rb +3 -6
  29. data/lib/aidp/harness/configuration.rb +35 -1
  30. data/lib/aidp/harness/enhanced_runner.rb +22 -1
  31. data/lib/aidp/harness/error_handler.rb +103 -28
  32. data/lib/aidp/harness/provider_factory.rb +4 -1
  33. data/lib/aidp/harness/provider_info.rb +366 -0
  34. data/lib/aidp/harness/provider_manager.rb +250 -15
  35. data/lib/aidp/harness/runner.rb +3 -14
  36. data/lib/aidp/harness/simple_user_interface.rb +2 -15
  37. data/lib/aidp/harness/status_display.rb +12 -17
  38. data/lib/aidp/harness/test_runner.rb +83 -0
  39. data/lib/aidp/harness/ui/enhanced_tui.rb +2 -0
  40. data/lib/aidp/harness/ui/enhanced_workflow_selector.rb +44 -5
  41. data/lib/aidp/harness/ui/error_handler.rb +4 -0
  42. data/lib/aidp/harness/ui/frame_manager.rb +10 -8
  43. data/lib/aidp/harness/ui/job_monitor.rb +2 -0
  44. data/lib/aidp/harness/ui/navigation/main_menu.rb +4 -2
  45. data/lib/aidp/harness/ui/navigation/menu_item.rb +1 -0
  46. data/lib/aidp/harness/ui/navigation/menu_state.rb +1 -0
  47. data/lib/aidp/harness/ui/navigation/submenu.rb +1 -0
  48. data/lib/aidp/harness/ui/navigation/workflow_selector.rb +2 -0
  49. data/lib/aidp/harness/ui/progress_display.rb +8 -12
  50. data/lib/aidp/harness/ui/question_collector.rb +2 -0
  51. data/lib/aidp/harness/ui/spinner_group.rb +2 -0
  52. data/lib/aidp/harness/ui/spinner_helper.rb +1 -1
  53. data/lib/aidp/harness/ui/status_manager.rb +4 -2
  54. data/lib/aidp/harness/ui/status_widget.rb +3 -1
  55. data/lib/aidp/harness/ui/workflow_controller.rb +2 -0
  56. data/lib/aidp/harness/user_interface.rb +12 -17
  57. data/lib/aidp/jobs/background_runner.rb +278 -0
  58. data/lib/aidp/message_display.rb +48 -0
  59. data/lib/aidp/provider_manager.rb +3 -1
  60. data/lib/aidp/providers/anthropic.rb +100 -17
  61. data/lib/aidp/providers/base.rb +42 -11
  62. data/lib/aidp/providers/codex.rb +248 -0
  63. data/lib/aidp/providers/cursor.rb +35 -42
  64. data/lib/aidp/providers/gemini.rb +25 -15
  65. data/lib/aidp/providers/github_copilot.rb +41 -42
  66. data/lib/aidp/providers/opencode.rb +34 -41
  67. data/lib/aidp/version.rb +1 -1
  68. data/lib/aidp/workflows/definitions.rb +357 -0
  69. data/lib/aidp/workflows/guided_agent.rb +400 -0
  70. data/lib/aidp/workflows/selector.rb +171 -0
  71. data/lib/aidp.rb +12 -0
  72. data/templates/planning/generate_llm_style_guide.md +119 -0
  73. metadata +41 -26
  74. /data/templates/{ANALYZE/02_ARCHITECTURE_ANALYSIS.md → analysis/analyze_architecture.md} +0 -0
  75. /data/templates/{ANALYZE/05_DOCUMENTATION_ANALYSIS.md → analysis/analyze_documentation.md} +0 -0
  76. /data/templates/{ANALYZE/04_FUNCTIONALITY_ANALYSIS.md → analysis/analyze_functionality.md} +0 -0
  77. /data/templates/{ANALYZE/01_REPOSITORY_ANALYSIS.md → analysis/analyze_repository.md} +0 -0
  78. /data/templates/{ANALYZE/06_STATIC_ANALYSIS.md → analysis/analyze_static_code.md} +0 -0
  79. /data/templates/{ANALYZE/03_TEST_ANALYSIS.md → analysis/analyze_tests.md} +0 -0
  80. /data/templates/{ANALYZE/07_REFACTORING_RECOMMENDATIONS.md → analysis/recommend_refactoring.md} +0 -0
  81. /data/templates/{ANALYZE/06a_tree_sitter_scan.md → analysis/scan_with_tree_sitter.md} +0 -0
  82. /data/templates/{EXECUTE/11_STATIC_ANALYSIS.md → implementation/configure_static_analysis.md} +0 -0
  83. /data/templates/{EXECUTE/14_DOCS_PORTAL.md → implementation/create_documentation_portal.md} +0 -0
  84. /data/templates/{EXECUTE/10_IMPLEMENTATION_AGENT.md → implementation/implement_features.md} +0 -0
  85. /data/templates/{EXECUTE/13_DELIVERY_ROLLOUT.md → implementation/plan_delivery.md} +0 -0
  86. /data/templates/{EXECUTE/15_POST_RELEASE.md → implementation/review_post_release.md} +0 -0
  87. /data/templates/{EXECUTE/09_SCAFFOLDING_DEVEX.md → implementation/setup_scaffolding.md} +0 -0
  88. /data/templates/{EXECUTE/02A_ARCH_GATE_QUESTIONS.md → planning/ask_architecture_questions.md} +0 -0
  89. /data/templates/{EXECUTE/00_PRD.md → planning/create_prd.md} +0 -0
  90. /data/templates/{EXECUTE/08_TASKS.md → planning/create_tasks.md} +0 -0
  91. /data/templates/{EXECUTE/04_DOMAIN_DECOMPOSITION.md → planning/decompose_domain.md} +0 -0
  92. /data/templates/{EXECUTE/01_NFRS.md → planning/define_nfrs.md} +0 -0
  93. /data/templates/{EXECUTE/05_CONTRACTS.md → planning/design_apis.md} +0 -0
  94. /data/templates/{EXECUTE/02_ARCHITECTURE.md → planning/design_architecture.md} +0 -0
  95. /data/templates/{EXECUTE/06_THREAT_MODEL.md → planning/design_data_model.md} +0 -0
  96. /data/templates/{EXECUTE/03_ADR_FACTORY.md → planning/generate_adrs.md} +0 -0
  97. /data/templates/{EXECUTE/12_OBSERVABILITY_SLOS.md → planning/plan_observability.md} +0 -0
  98. /data/templates/{EXECUTE/07_TEST_PLAN.md → planning/plan_testing.md} +0 -0
@@ -0,0 +1,119 @@
1
+ # Generate LLM Style Guide
2
+
3
+ Your task is to create a project-specific **LLM_STYLE_GUIDE.md** that will be used by AI agents working on this project. This guide should be concise, actionable, and tailored to this specific codebase.
4
+
5
+ ## Context
6
+
7
+ You have access to the project directory. Examine the codebase to understand:
8
+
9
+ - Programming language(s) used
10
+ - Existing code style and patterns
11
+ - Testing framework and patterns
12
+ - Build tools and configuration
13
+ - Project structure
14
+ - Dependencies and frameworks
15
+
16
+ ## Requirements
17
+
18
+ Create a file at `docs/LLM_STYLE_GUIDE.md` with the following sections:
19
+
20
+ ### 1. Core Engineering Rules
21
+
22
+ - Single Responsibility Principle applications
23
+ - Code organization patterns specific to this project
24
+ - When to extract methods/classes/modules
25
+ - Dead code and TODO policies
26
+
27
+ ### 2. Naming & Structure
28
+
29
+ - Language-specific naming conventions (if not standard)
30
+ - File organization patterns
31
+ - Module/package structure guidelines
32
+ - Public API design principles
33
+
34
+ ### 3. Parameters & Data
35
+
36
+ - Parameter passing conventions
37
+ - Data structure preferences
38
+ - Configuration management patterns
39
+
40
+ ### 4. Error Handling
41
+
42
+ - Error handling strategy for this project
43
+ - Logging patterns
44
+ - Exception types and when to use them
45
+ - Recovery strategies
46
+
47
+ ### 5. Testing Contracts
48
+
49
+ - Testing philosophy for this project
50
+ - What to test vs what not to test
51
+ - Mocking/stubbing guidelines
52
+ - Test organization and naming
53
+ - Code coverage expectations
54
+
55
+ ### 6. Framework-Specific Guidelines
56
+
57
+ - Key patterns from the frameworks used
58
+ - Anti-patterns to avoid
59
+ - Performance considerations
60
+ - Security guidelines
61
+
62
+ ### 7. Dependencies & External Services
63
+
64
+ - Dependency injection patterns
65
+ - External service interaction patterns
66
+ - API client patterns
67
+ - Database interaction patterns (if applicable)
68
+
69
+ ### 8. Build & Development
70
+
71
+ - Build commands and what they do
72
+ - Linting and formatting tools
73
+ - Pre-commit hooks (if any)
74
+ - Development workflow
75
+
76
+ ### 9. Performance
77
+
78
+ - Performance considerations for this codebase
79
+ - Optimization strategies
80
+ - Caching patterns
81
+ - Resource management
82
+
83
+ ### 10. Project-Specific Anti-Patterns
84
+
85
+ - Known anti-patterns in this codebase to avoid
86
+ - Previous mistakes to learn from
87
+ - Deprecated patterns to avoid
88
+
89
+ ## Output Format
90
+
91
+ The LLM_STYLE_GUIDE.md should be:
92
+
93
+ - **Concise**: Use bullet points and tables where possible
94
+ - **Specific**: Reference actual code patterns from this project
95
+ - **Actionable**: Provide clear do's and don'ts
96
+ - **Scannable**: Use headers, lists, and formatting for easy reference
97
+
98
+ ## Example Structure
99
+
100
+ ```markdown
101
+ # Project LLM Style Guide
102
+
103
+ > Concise rules for AI agents working on [Project Name]. Based on [Language/Framework].
104
+
105
+ ## 1. Core Engineering Rules
106
+ - [Specific rule based on this project]
107
+ - [Another specific rule]
108
+
109
+ ## 2. Naming & Structure
110
+ - Classes: [convention]
111
+ - Files: [convention]
112
+ - [etc.]
113
+
114
+ [Continue with all sections...]
115
+ ```
116
+
117
+ ## Deliverable
118
+
119
+ Create `docs/LLM_STYLE_GUIDE.md` with all the sections above, tailored specifically to this project's codebase, languages, and frameworks.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aidp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bart Agapinan
@@ -247,16 +247,22 @@ files:
247
247
  - lib/aidp/analyze/tree_sitter_grammar_loader.rb
248
248
  - lib/aidp/analyze/tree_sitter_scan.rb
249
249
  - lib/aidp/cli.rb
250
+ - lib/aidp/cli/checkpoint_command.rb
250
251
  - lib/aidp/cli/first_run_wizard.rb
251
252
  - lib/aidp/cli/jobs_command.rb
253
+ - lib/aidp/cli/mcp_dashboard.rb
252
254
  - lib/aidp/cli/terminal_io.rb
253
255
  - lib/aidp/config.rb
254
256
  - lib/aidp/core_ext/class_attribute.rb
255
257
  - lib/aidp/debug_logger.rb
256
258
  - lib/aidp/debug_mixin.rb
259
+ - lib/aidp/execute/checkpoint.rb
260
+ - lib/aidp/execute/checkpoint_display.rb
257
261
  - lib/aidp/execute/progress.rb
262
+ - lib/aidp/execute/prompt_manager.rb
258
263
  - lib/aidp/execute/runner.rb
259
264
  - lib/aidp/execute/steps.rb
265
+ - lib/aidp/execute/work_loop_runner.rb
260
266
  - lib/aidp/execute/workflow_selector.rb
261
267
  - lib/aidp/harness/completion_checker.rb
262
268
  - lib/aidp/harness/condition_detector.rb
@@ -269,6 +275,7 @@ files:
269
275
  - lib/aidp/harness/error_handler.rb
270
276
  - lib/aidp/harness/provider_config.rb
271
277
  - lib/aidp/harness/provider_factory.rb
278
+ - lib/aidp/harness/provider_info.rb
272
279
  - lib/aidp/harness/provider_manager.rb
273
280
  - lib/aidp/harness/provider_type_checker.rb
274
281
  - lib/aidp/harness/runner.rb
@@ -281,6 +288,7 @@ files:
281
288
  - lib/aidp/harness/state/workflow_state.rb
282
289
  - lib/aidp/harness/state_manager.rb
283
290
  - lib/aidp/harness/status_display.rb
291
+ - lib/aidp/harness/test_runner.rb
284
292
  - lib/aidp/harness/ui/base.rb
285
293
  - lib/aidp/harness/ui/enhanced_tui.rb
286
294
  - lib/aidp/harness/ui/enhanced_workflow_selector.rb
@@ -301,9 +309,12 @@ files:
301
309
  - lib/aidp/harness/ui/status_widget.rb
302
310
  - lib/aidp/harness/ui/workflow_controller.rb
303
311
  - lib/aidp/harness/user_interface.rb
312
+ - lib/aidp/jobs/background_runner.rb
313
+ - lib/aidp/message_display.rb
304
314
  - lib/aidp/provider_manager.rb
305
315
  - lib/aidp/providers/anthropic.rb
306
316
  - lib/aidp/providers/base.rb
317
+ - lib/aidp/providers/codex.rb
307
318
  - lib/aidp/providers/cursor.rb
308
319
  - lib/aidp/providers/gemini.rb
309
320
  - lib/aidp/providers/github_copilot.rb
@@ -314,14 +325,9 @@ files:
314
325
  - lib/aidp/storage/json_storage.rb
315
326
  - lib/aidp/util.rb
316
327
  - lib/aidp/version.rb
317
- - templates/ANALYZE/01_REPOSITORY_ANALYSIS.md
318
- - templates/ANALYZE/02_ARCHITECTURE_ANALYSIS.md
319
- - templates/ANALYZE/03_TEST_ANALYSIS.md
320
- - templates/ANALYZE/04_FUNCTIONALITY_ANALYSIS.md
321
- - templates/ANALYZE/05_DOCUMENTATION_ANALYSIS.md
322
- - templates/ANALYZE/06_STATIC_ANALYSIS.md
323
- - templates/ANALYZE/06a_tree_sitter_scan.md
324
- - templates/ANALYZE/07_REFACTORING_RECOMMENDATIONS.md
328
+ - lib/aidp/workflows/definitions.rb
329
+ - lib/aidp/workflows/guided_agent.rb
330
+ - lib/aidp/workflows/selector.rb
325
331
  - templates/COMMON/AGENT_BASE.md
326
332
  - templates/COMMON/CONVENTIONS.md
327
333
  - templates/COMMON/TEMPLATES/ADR_TEMPLATE.md
@@ -329,28 +335,37 @@ files:
329
335
  - templates/COMMON/TEMPLATES/EVENT_EXAMPLE.yaml
330
336
  - templates/COMMON/TEMPLATES/MERMAID_C4.md
331
337
  - templates/COMMON/TEMPLATES/OPENAPI_STUB.yaml
332
- - templates/EXECUTE/00_PRD.md
333
- - templates/EXECUTE/01_NFRS.md
334
- - templates/EXECUTE/02A_ARCH_GATE_QUESTIONS.md
335
- - templates/EXECUTE/02_ARCHITECTURE.md
336
- - templates/EXECUTE/03_ADR_FACTORY.md
337
- - templates/EXECUTE/04_DOMAIN_DECOMPOSITION.md
338
- - templates/EXECUTE/05_CONTRACTS.md
339
- - templates/EXECUTE/06_THREAT_MODEL.md
340
- - templates/EXECUTE/07_TEST_PLAN.md
341
- - templates/EXECUTE/08_TASKS.md
342
- - templates/EXECUTE/09_SCAFFOLDING_DEVEX.md
343
- - templates/EXECUTE/10_IMPLEMENTATION_AGENT.md
344
- - templates/EXECUTE/11_STATIC_ANALYSIS.md
345
- - templates/EXECUTE/12_OBSERVABILITY_SLOS.md
346
- - templates/EXECUTE/13_DELIVERY_ROLLOUT.md
347
- - templates/EXECUTE/14_DOCS_PORTAL.md
348
- - templates/EXECUTE/15_POST_RELEASE.md
349
338
  - templates/README.md
350
339
  - templates/aidp-development.yml.example
351
340
  - templates/aidp-minimal.yml.example
352
341
  - templates/aidp-production.yml.example
353
342
  - templates/aidp.yml.example
343
+ - templates/analysis/analyze_architecture.md
344
+ - templates/analysis/analyze_documentation.md
345
+ - templates/analysis/analyze_functionality.md
346
+ - templates/analysis/analyze_repository.md
347
+ - templates/analysis/analyze_static_code.md
348
+ - templates/analysis/analyze_tests.md
349
+ - templates/analysis/recommend_refactoring.md
350
+ - templates/analysis/scan_with_tree_sitter.md
351
+ - templates/implementation/configure_static_analysis.md
352
+ - templates/implementation/create_documentation_portal.md
353
+ - templates/implementation/implement_features.md
354
+ - templates/implementation/plan_delivery.md
355
+ - templates/implementation/review_post_release.md
356
+ - templates/implementation/setup_scaffolding.md
357
+ - templates/planning/ask_architecture_questions.md
358
+ - templates/planning/create_prd.md
359
+ - templates/planning/create_tasks.md
360
+ - templates/planning/decompose_domain.md
361
+ - templates/planning/define_nfrs.md
362
+ - templates/planning/design_apis.md
363
+ - templates/planning/design_architecture.md
364
+ - templates/planning/design_data_model.md
365
+ - templates/planning/generate_adrs.md
366
+ - templates/planning/generate_llm_style_guide.md
367
+ - templates/planning/plan_observability.md
368
+ - templates/planning/plan_testing.md
354
369
  homepage: https://github.com/viamin/aidp
355
370
  licenses:
356
371
  - MIT