agentrules 3.6.0__tar.gz → 3.8.0__tar.gz

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 (221) hide show
  1. {agentrules-3.6.0/src/agentrules.egg-info → agentrules-3.8.0}/PKG-INFO +10 -10
  2. {agentrules-3.6.0 → agentrules-3.8.0}/README.md +9 -9
  3. {agentrules-3.6.0 → agentrules-3.8.0}/pyproject.toml +1 -1
  4. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/cli/commands/execplan.py +94 -13
  5. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/cli/services/pipeline_runner.py +14 -1
  6. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/config/agents.py +42 -7
  7. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/codex/process.py +14 -0
  8. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/openai/config.py +1 -0
  9. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/openai/request_builder.py +2 -0
  10. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/analysis/final_analysis.py +4 -1
  11. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/analysis/phase_5.py +4 -4
  12. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/execplan/creator.py +47 -27
  13. agentrules-3.8.0/src/agentrules/core/execplan/locks.py +103 -0
  14. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/execplan/milestones.py +26 -10
  15. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/execplan/paths.py +46 -28
  16. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/execplan/registry.py +14 -11
  17. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/types/models.py +31 -0
  18. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/file_creation/snapshot_artifact.py +4 -2
  19. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/file_creation/templates/MILESTONE_TEMPLATE.md +5 -5
  20. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/file_creation/templates/PLANS.md +4 -4
  21. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/file_system/tree_generator.py +1 -1
  22. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/formatters/clean_agentrules.py +2 -2
  23. {agentrules-3.6.0 → agentrules-3.8.0/src/agentrules.egg-info}/PKG-INFO +10 -10
  24. {agentrules-3.6.0 → agentrules-3.8.0}/tests/test_cli_services.py +98 -1
  25. {agentrules-3.6.0 → agentrules-3.8.0}/tests/test_openai_responses.py +14 -0
  26. agentrules-3.6.0/src/agentrules/core/execplan/locks.py +0 -44
  27. {agentrules-3.6.0 → agentrules-3.8.0}/LICENSE +0 -0
  28. {agentrules-3.6.0 → agentrules-3.8.0}/setup.cfg +0 -0
  29. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/__init__.py +0 -0
  30. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/__main__.py +0 -0
  31. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/cli/__init__.py +0 -0
  32. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/cli/app.py +0 -0
  33. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/cli/bootstrap.py +0 -0
  34. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/cli/commands/__init__.py +0 -0
  35. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/cli/commands/analyze.py +0 -0
  36. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/cli/commands/configure.py +0 -0
  37. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/cli/commands/execplan_registry.py +0 -0
  38. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/cli/commands/keys.py +0 -0
  39. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/cli/commands/scaffold.py +0 -0
  40. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/cli/commands/snapshot.py +0 -0
  41. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/cli/commands/tree.py +0 -0
  42. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/cli/context.py +0 -0
  43. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/cli/services/__init__.py +0 -0
  44. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/cli/services/codex_runtime.py +0 -0
  45. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/cli/services/configuration.py +0 -0
  46. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/cli/services/output_validation.py +0 -0
  47. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/cli/services/tree_preview.py +0 -0
  48. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/cli/ui/__init__.py +0 -0
  49. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/cli/ui/analysis_view.py +0 -0
  50. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/cli/ui/event_sink.py +0 -0
  51. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/cli/ui/main_menu.py +0 -0
  52. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/cli/ui/settings/__init__.py +0 -0
  53. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/cli/ui/settings/codex.py +0 -0
  54. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/cli/ui/settings/exclusions/__init__.py +0 -0
  55. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/cli/ui/settings/exclusions/editor.py +0 -0
  56. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/cli/ui/settings/exclusions/preview.py +0 -0
  57. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/cli/ui/settings/exclusions/summary.py +0 -0
  58. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/cli/ui/settings/logging.py +0 -0
  59. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/cli/ui/settings/menu.py +0 -0
  60. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/cli/ui/settings/models/__init__.py +0 -0
  61. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/cli/ui/settings/models/researcher.py +0 -0
  62. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/cli/ui/settings/models/utils.py +0 -0
  63. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/cli/ui/settings/outputs.py +0 -0
  64. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/cli/ui/settings/providers.py +0 -0
  65. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/cli/ui/styles.py +0 -0
  66. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/config/__init__.py +0 -0
  67. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/config/exclusions.py +0 -0
  68. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/config/prompts/__init__.py +0 -0
  69. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/config/prompts/final_analysis_prompt.py +0 -0
  70. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/config/prompts/phase_1_prompts.py +0 -0
  71. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/config/prompts/phase_2_prompts.py +0 -0
  72. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/config/prompts/phase_3_prompts.py +0 -0
  73. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/config/prompts/phase_4_prompts.py +0 -0
  74. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/config/prompts/phase_5_prompts.py +0 -0
  75. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/config/tools.py +0 -0
  76. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/__init__.py +0 -0
  77. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agent_tools/tool_manager.py +0 -0
  78. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agent_tools/web_search/__init__.py +0 -0
  79. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agent_tools/web_search/tavily.py +0 -0
  80. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/__init__.py +0 -0
  81. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/anthropic/__init__.py +0 -0
  82. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/anthropic/architect.py +0 -0
  83. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/anthropic/capabilities.py +0 -0
  84. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/anthropic/client.py +0 -0
  85. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/anthropic/prompting.py +0 -0
  86. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/anthropic/request_builder.py +0 -0
  87. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/anthropic/response_parser.py +0 -0
  88. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/anthropic/tooling.py +0 -0
  89. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/base.py +0 -0
  90. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/codex/__init__.py +0 -0
  91. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/codex/architect.py +0 -0
  92. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/codex/client.py +0 -0
  93. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/codex/errors.py +0 -0
  94. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/codex/models.py +0 -0
  95. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/codex/protocol.py +0 -0
  96. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/codex/request_builder.py +0 -0
  97. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/codex/response_parser.py +0 -0
  98. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/deepseek/__init__.py +0 -0
  99. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/deepseek/architect.py +0 -0
  100. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/deepseek/client.py +0 -0
  101. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/deepseek/compat.py +0 -0
  102. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/deepseek/config.py +0 -0
  103. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/deepseek/prompting.py +0 -0
  104. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/deepseek/request_builder.py +0 -0
  105. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/deepseek/response_parser.py +0 -0
  106. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/deepseek/tooling.py +0 -0
  107. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/factory/__init__.py +0 -0
  108. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/factory/factory.py +0 -0
  109. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/gemini/__init__.py +0 -0
  110. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/gemini/architect.py +0 -0
  111. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/gemini/capabilities.py +0 -0
  112. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/gemini/client.py +0 -0
  113. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/gemini/errors.py +0 -0
  114. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/gemini/legacy.py +0 -0
  115. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/gemini/prompting.py +0 -0
  116. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/gemini/response_parser.py +0 -0
  117. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/gemini/tooling.py +0 -0
  118. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/openai/__init__.py +0 -0
  119. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/openai/architect.py +0 -0
  120. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/openai/client.py +0 -0
  121. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/openai/compat.py +0 -0
  122. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/openai/response_parser.py +0 -0
  123. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/xai/__init__.py +0 -0
  124. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/xai/architect.py +0 -0
  125. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/xai/client.py +0 -0
  126. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/xai/config.py +0 -0
  127. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/xai/prompting.py +0 -0
  128. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/xai/request_builder.py +0 -0
  129. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/xai/response_parser.py +0 -0
  130. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/xai/tooling.py +0 -0
  131. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/analysis/__init__.py +0 -0
  132. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/analysis/events.py +0 -0
  133. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/analysis/phase_1.py +0 -0
  134. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/analysis/phase_2.py +0 -0
  135. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/analysis/phase_3.py +0 -0
  136. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/analysis/phase_4.py +0 -0
  137. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/configuration/__init__.py +0 -0
  138. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/configuration/constants.py +0 -0
  139. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/configuration/environment.py +0 -0
  140. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/configuration/manager.py +0 -0
  141. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/configuration/model_presets.py +0 -0
  142. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/configuration/models.py +0 -0
  143. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/configuration/repository.py +0 -0
  144. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/configuration/serde.py +0 -0
  145. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/configuration/services/__init__.py +0 -0
  146. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/configuration/services/codex.py +0 -0
  147. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/configuration/services/exclusions.py +0 -0
  148. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/configuration/services/features.py +0 -0
  149. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/configuration/services/logging.py +0 -0
  150. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/configuration/services/outputs.py +0 -0
  151. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/configuration/services/phase_models.py +0 -0
  152. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/configuration/services/providers.py +0 -0
  153. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/configuration/utils.py +0 -0
  154. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/execplan/__init__.py +0 -0
  155. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/execplan/identity.py +0 -0
  156. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/execplan/templates/EXECPLAN_TEMPLATE.md +0 -0
  157. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/execplan/templates/MILESTONE_FILE_TEMPLATE.md +0 -0
  158. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/logging/__init__.py +0 -0
  159. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/logging/config.py +0 -0
  160. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/pipeline/__init__.py +0 -0
  161. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/pipeline/config.py +0 -0
  162. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/pipeline/factory.py +0 -0
  163. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/pipeline/orchestrator.py +0 -0
  164. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/pipeline/output.py +0 -0
  165. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/pipeline/project_profile.py +0 -0
  166. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/pipeline/snapshot.py +0 -0
  167. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/streaming/__init__.py +0 -0
  168. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/streaming/types.py +0 -0
  169. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/types/__init__.py +0 -0
  170. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/types/agent_config.py +0 -0
  171. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/types/tool_config.py +0 -0
  172. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/async_stream.py +0 -0
  173. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/constants.py +0 -0
  174. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/dependency_scanner/__init__.py +0 -0
  175. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/dependency_scanner/constants.py +0 -0
  176. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/dependency_scanner/discovery.py +0 -0
  177. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/dependency_scanner/metadata.py +0 -0
  178. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/dependency_scanner/models.py +0 -0
  179. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/dependency_scanner/parsers/__init__.py +0 -0
  180. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/dependency_scanner/parsers/clojure.py +0 -0
  181. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/dependency_scanner/parsers/dart.py +0 -0
  182. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/dependency_scanner/parsers/dotnet.py +0 -0
  183. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/dependency_scanner/parsers/elixir.py +0 -0
  184. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/dependency_scanner/parsers/generic.py +0 -0
  185. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/dependency_scanner/parsers/go.py +0 -0
  186. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/dependency_scanner/parsers/helpers.py +0 -0
  187. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/dependency_scanner/parsers/java.py +0 -0
  188. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/dependency_scanner/parsers/javascript.py +0 -0
  189. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/dependency_scanner/parsers/php.py +0 -0
  190. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/dependency_scanner/parsers/python.py +0 -0
  191. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/dependency_scanner/parsers/ruby.py +0 -0
  192. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/dependency_scanner/parsers/swift.py +0 -0
  193. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/dependency_scanner/parsers/toml_based.py +0 -0
  194. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/dependency_scanner/registry.py +0 -0
  195. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/dependency_scanner/scan.py +0 -0
  196. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/file_creation/agent_scaffold.py +0 -0
  197. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/file_creation/atomic_write.py +0 -0
  198. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/file_creation/cursorignore.py +0 -0
  199. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/file_creation/phases_output.py +0 -0
  200. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/file_creation/snapshot_policy.py +0 -0
  201. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/file_system/__init__.py +0 -0
  202. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/file_system/file_retriever.py +0 -0
  203. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/file_system/gitignore.py +0 -0
  204. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/formatters/__init__.py +0 -0
  205. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/model_config_helper.py +0 -0
  206. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/offline.py +0 -0
  207. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/parsers/__init__.py +0 -0
  208. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/parsers/agent_parser.py +0 -0
  209. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/provider_capabilities.py +0 -0
  210. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/release_metadata.py +0 -0
  211. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/structured_outputs.py +0 -0
  212. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/system_prompt.py +0 -0
  213. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/token_estimator.py +0 -0
  214. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/token_packer.py +0 -0
  215. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules.egg-info/SOURCES.txt +0 -0
  216. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules.egg-info/dependency_links.txt +0 -0
  217. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules.egg-info/entry_points.txt +0 -0
  218. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules.egg-info/requires.txt +0 -0
  219. {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules.egg-info/top_level.txt +0 -0
  220. {agentrules-3.6.0 → agentrules-3.8.0}/tests/test_env.py +0 -0
  221. {agentrules-3.6.0 → agentrules-3.8.0}/tests/test_smoke_discovery.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: agentrules
3
- Version: 3.6.0
3
+ Version: 3.8.0
4
4
  Summary: AGENTS.md/CLAUDE.md generator and ExecPlan harness for coding agents
5
5
  Author: trevor-nichols
6
6
  License-Expression: MIT
@@ -204,11 +204,11 @@ See [docs/codex-runtime.md](docs/codex-runtime.md) for complete setup, auth flow
204
204
  - `agentrules snapshot generate [path]` – create (or refresh) `SNAPSHOT.md` in the current directory by default.
205
205
  - `agentrules snapshot sync [path]` – sync an existing snapshot as project files evolve (also creates if missing).
206
206
  - `agentrules execplan new \"Title\"` – create a new ExecPlan markdown file under `.agent/exec_plans/active/<slug>/`.
207
- - `agentrules execplan archive EP-YYYYMMDD-NNN [--date YYYYMMDD]` – archive a full ExecPlan directory under `.agent/exec_plans/archive/YYYY/MM/DD/EP-YYYYMMDD-NNN_<slug>/`.
207
+ - `agentrules execplan complete EP-YYYYMMDD-NNN [--date YYYYMMDD]` – move a full ExecPlan directory under `.agent/exec_plans/complete/YYYY/MM/DD/EP-YYYYMMDD-NNN_<slug>/`.
208
208
  - `agentrules execplan list [--path]` – list active ExecPlans with compact milestone progress (`completed/total`).
209
209
  - `agentrules execplan milestone new EP-YYYYMMDD-NNN \"Title\" [--ms N]` – create a milestone under a specific ExecPlan (auto sequence by default, or explicit `MS###` when provided).
210
210
  - `agentrules execplan milestone list EP-YYYYMMDD-NNN [--active-only]` – list milestones for one ExecPlan.
211
- - `agentrules execplan milestone archive EP-YYYYMMDD-NNN --ms <N>` – archive an active milestone sequence.
211
+ - `agentrules execplan milestone complete EP-YYYYMMDD-NNN --ms <N>` – move an active milestone sequence into the `milestones/complete/` directory.
212
212
  - `agentrules execplan milestone remaining EP-YYYYMMDD-NNN [--path]` – show active milestones left for one ExecPlan.
213
213
  - `agentrules execplan-registry [build|check|update]` – manage `.agent/exec_plans/registry.json` from ExecPlan front matter.
214
214
  - `agentrules scaffold sync [--check|--force]` – sync `.agent/PLANS.md` and `.agent/templates/MILESTONE_TEMPLATE.md` with packaged defaults.
@@ -241,15 +241,15 @@ ExecPlans and milestones use canonical IDs and deterministic file locations:
241
241
  - ExecPlan ID: `EP-YYYYMMDD-NNN`
242
242
  - Milestone ID: `EP-YYYYMMDD-NNN/MS###`
243
243
  - Active ExecPlan path: `.agent/exec_plans/active/<plan-slug>/EP-YYYYMMDD-NNN_<plan-slug>.md`
244
- - Archived ExecPlan path: `.agent/exec_plans/archive/YYYY/MM/DD/EP-YYYYMMDD-NNN_<plan-slug>/EP-YYYYMMDD-NNN_<plan-slug>.md`
244
+ - Complete ExecPlan path: `.agent/exec_plans/complete/YYYY/MM/DD/EP-YYYYMMDD-NNN_<plan-slug>/EP-YYYYMMDD-NNN_<plan-slug>.md`
245
245
  - Active milestone path: `.agent/exec_plans/active/<plan-slug>/milestones/active/MS###_<milestone-slug>.md`
246
- - Archive milestone path: `.agent/exec_plans/active/<plan-slug>/milestones/archive/MS###_<milestone-slug>.md`
246
+ - Complete milestone path: `.agent/exec_plans/active/<plan-slug>/milestones/complete/MS###_<milestone-slug>.md`
247
247
 
248
248
  Milestone creation is parent-first and sequence-safe:
249
249
 
250
250
  - Users provide parent ExecPlan ID + milestone title.
251
251
  - CLI/API assign `MS###` automatically, or accept `--ms N` to request a specific sequence.
252
- - Sequence is monotonic per plan across active and archived milestones (`MS001`, `MS002`, ...).
252
+ - Sequence is monotonic per plan across active and completed milestones (`MS001`, `MS002`, ...).
253
253
  - `.agent/templates/MILESTONE_TEMPLATE.md` is a guidance scaffold for authors.
254
254
  Generated milestone files come from an internal file template used by `execplan milestone new`.
255
255
 
@@ -274,10 +274,10 @@ agentrules execplan milestone list EP-20260207-001 --active-only
274
274
  agentrules execplan milestone remaining EP-20260207-001
275
275
 
276
276
  # 4) Archive a completed milestone
277
- agentrules execplan milestone archive EP-20260207-001 --ms 1
277
+ agentrules execplan milestone complete EP-20260207-001 --ms 1
278
278
 
279
- # 5) Archive the completed ExecPlan directory
280
- agentrules execplan archive EP-20260207-001 --date 20260212
279
+ # 5) Complete the ExecPlan directory
280
+ agentrules execplan complete EP-20260207-001 --date 20260212
281
281
 
282
282
  # Optional: list all active plans with compact milestone progress
283
283
  agentrules execplan list
@@ -326,7 +326,7 @@ The app currently exposes presets across these providers:
326
326
 
327
327
  Choose any available preset per phase through the CLI (`agentrules configure --models`) or by editing `config.toml` / `config/agents.py`. At runtime the values populate `MODEL_CONFIG`, which the pipeline consumes while resolving phase architects (`src/agentrules/core/agents/factory/factory.py`).
328
328
 
329
- > **Preset tip:** Legacy-friendly presets stay under the `gpt5-*` keys (backed by the `gpt-5` model name) so existing `config.toml` files continue to work, while the newer GPT‑5.1 presets live under the `gpt51-*` keys, GPT‑5.2 presets under `gpt52-*`, and GPT‑5.4 Mini/Nano variants under the `gpt54-mini-*` and `gpt54-nano-*` keys. Mixing them per phase or per-agent is fully supported.
329
+ > **Preset tip:** Legacy-friendly presets stay under the `gpt5-*` keys (backed by the `gpt-5` model name) so existing `config.toml` files continue to work. Newer GPT‑5.5 presets live under `gpt55-*`, GPT‑5.1 presets under `gpt51-*`, GPT‑5.2 presets under `gpt52-*`, and GPT‑5.4 Mini/Nano variants under the `gpt54-mini-*` and `gpt54-nano-*` keys. Codex selections in the settings UI come from the live app-server catalog rather than this static shorthand list.
330
330
 
331
331
  ## 🧠 Reasoning & Advanced Configuration
332
332
 
@@ -166,11 +166,11 @@ See [docs/codex-runtime.md](docs/codex-runtime.md) for complete setup, auth flow
166
166
  - `agentrules snapshot generate [path]` – create (or refresh) `SNAPSHOT.md` in the current directory by default.
167
167
  - `agentrules snapshot sync [path]` – sync an existing snapshot as project files evolve (also creates if missing).
168
168
  - `agentrules execplan new \"Title\"` – create a new ExecPlan markdown file under `.agent/exec_plans/active/<slug>/`.
169
- - `agentrules execplan archive EP-YYYYMMDD-NNN [--date YYYYMMDD]` – archive a full ExecPlan directory under `.agent/exec_plans/archive/YYYY/MM/DD/EP-YYYYMMDD-NNN_<slug>/`.
169
+ - `agentrules execplan complete EP-YYYYMMDD-NNN [--date YYYYMMDD]` – move a full ExecPlan directory under `.agent/exec_plans/complete/YYYY/MM/DD/EP-YYYYMMDD-NNN_<slug>/`.
170
170
  - `agentrules execplan list [--path]` – list active ExecPlans with compact milestone progress (`completed/total`).
171
171
  - `agentrules execplan milestone new EP-YYYYMMDD-NNN \"Title\" [--ms N]` – create a milestone under a specific ExecPlan (auto sequence by default, or explicit `MS###` when provided).
172
172
  - `agentrules execplan milestone list EP-YYYYMMDD-NNN [--active-only]` – list milestones for one ExecPlan.
173
- - `agentrules execplan milestone archive EP-YYYYMMDD-NNN --ms <N>` – archive an active milestone sequence.
173
+ - `agentrules execplan milestone complete EP-YYYYMMDD-NNN --ms <N>` – move an active milestone sequence into the `milestones/complete/` directory.
174
174
  - `agentrules execplan milestone remaining EP-YYYYMMDD-NNN [--path]` – show active milestones left for one ExecPlan.
175
175
  - `agentrules execplan-registry [build|check|update]` – manage `.agent/exec_plans/registry.json` from ExecPlan front matter.
176
176
  - `agentrules scaffold sync [--check|--force]` – sync `.agent/PLANS.md` and `.agent/templates/MILESTONE_TEMPLATE.md` with packaged defaults.
@@ -203,15 +203,15 @@ ExecPlans and milestones use canonical IDs and deterministic file locations:
203
203
  - ExecPlan ID: `EP-YYYYMMDD-NNN`
204
204
  - Milestone ID: `EP-YYYYMMDD-NNN/MS###`
205
205
  - Active ExecPlan path: `.agent/exec_plans/active/<plan-slug>/EP-YYYYMMDD-NNN_<plan-slug>.md`
206
- - Archived ExecPlan path: `.agent/exec_plans/archive/YYYY/MM/DD/EP-YYYYMMDD-NNN_<plan-slug>/EP-YYYYMMDD-NNN_<plan-slug>.md`
206
+ - Complete ExecPlan path: `.agent/exec_plans/complete/YYYY/MM/DD/EP-YYYYMMDD-NNN_<plan-slug>/EP-YYYYMMDD-NNN_<plan-slug>.md`
207
207
  - Active milestone path: `.agent/exec_plans/active/<plan-slug>/milestones/active/MS###_<milestone-slug>.md`
208
- - Archive milestone path: `.agent/exec_plans/active/<plan-slug>/milestones/archive/MS###_<milestone-slug>.md`
208
+ - Complete milestone path: `.agent/exec_plans/active/<plan-slug>/milestones/complete/MS###_<milestone-slug>.md`
209
209
 
210
210
  Milestone creation is parent-first and sequence-safe:
211
211
 
212
212
  - Users provide parent ExecPlan ID + milestone title.
213
213
  - CLI/API assign `MS###` automatically, or accept `--ms N` to request a specific sequence.
214
- - Sequence is monotonic per plan across active and archived milestones (`MS001`, `MS002`, ...).
214
+ - Sequence is monotonic per plan across active and completed milestones (`MS001`, `MS002`, ...).
215
215
  - `.agent/templates/MILESTONE_TEMPLATE.md` is a guidance scaffold for authors.
216
216
  Generated milestone files come from an internal file template used by `execplan milestone new`.
217
217
 
@@ -236,10 +236,10 @@ agentrules execplan milestone list EP-20260207-001 --active-only
236
236
  agentrules execplan milestone remaining EP-20260207-001
237
237
 
238
238
  # 4) Archive a completed milestone
239
- agentrules execplan milestone archive EP-20260207-001 --ms 1
239
+ agentrules execplan milestone complete EP-20260207-001 --ms 1
240
240
 
241
- # 5) Archive the completed ExecPlan directory
242
- agentrules execplan archive EP-20260207-001 --date 20260212
241
+ # 5) Complete the ExecPlan directory
242
+ agentrules execplan complete EP-20260207-001 --date 20260212
243
243
 
244
244
  # Optional: list all active plans with compact milestone progress
245
245
  agentrules execplan list
@@ -288,7 +288,7 @@ The app currently exposes presets across these providers:
288
288
 
289
289
  Choose any available preset per phase through the CLI (`agentrules configure --models`) or by editing `config.toml` / `config/agents.py`. At runtime the values populate `MODEL_CONFIG`, which the pipeline consumes while resolving phase architects (`src/agentrules/core/agents/factory/factory.py`).
290
290
 
291
- > **Preset tip:** Legacy-friendly presets stay under the `gpt5-*` keys (backed by the `gpt-5` model name) so existing `config.toml` files continue to work, while the newer GPT‑5.1 presets live under the `gpt51-*` keys, GPT‑5.2 presets under `gpt52-*`, and GPT‑5.4 Mini/Nano variants under the `gpt54-mini-*` and `gpt54-nano-*` keys. Mixing them per phase or per-agent is fully supported.
291
+ > **Preset tip:** Legacy-friendly presets stay under the `gpt5-*` keys (backed by the `gpt-5` model name) so existing `config.toml` files continue to work. Newer GPT‑5.5 presets live under `gpt55-*`, GPT‑5.1 presets under `gpt51-*`, GPT‑5.2 presets under `gpt52-*`, and GPT‑5.4 Mini/Nano variants under the `gpt54-mini-*` and `gpt54-nano-*` keys. Codex selections in the settings UI come from the live app-server catalog rather than this static shorthand list.
292
292
 
293
293
  ## 🧠 Reasoning & Advanced Configuration
294
294
 
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "agentrules"
7
- version = "3.6.0"
7
+ version = "3.8.0"
8
8
  description = "AGENTS.md/CLAUDE.md generator and ExecPlan harness for coding agents"
9
9
  readme = "README.md"
10
10
  authors = [{name = "trevor-nichols"}]
@@ -3,7 +3,7 @@
3
3
  from __future__ import annotations
4
4
 
5
5
  from pathlib import Path
6
- from typing import Any
6
+ from typing import Any, Literal
7
7
 
8
8
  import typer
9
9
 
@@ -13,6 +13,7 @@ from agentrules.core.execplan.milestones import (
13
13
  create_execplan_milestone,
14
14
  list_execplan_milestones,
15
15
  )
16
+ from agentrules.core.execplan.paths import ARCHIVE_DIR, COMPLETE_DIR, EXECPLAN_ARCHIVE_DIR, EXECPLAN_COMPLETE_DIR
16
17
  from agentrules.core.execplan.registry import (
17
18
  DEFAULT_EXECPLANS_DIR,
18
19
  DEFAULT_REGISTRY_PATH,
@@ -49,7 +50,7 @@ ARCHIVE_DATE_OPTION = typer.Option(
49
50
  None,
50
51
  "--date",
51
52
  metavar="YYYYMMDD",
52
- help="Override archive date token used in destination path and metadata update.",
53
+ help="Override completion date token used in destination path and metadata update.",
53
54
  )
54
55
  EXECPLANS_DIR_OPTION = typer.Option(
55
56
  DEFAULT_EXECPLANS_DIR,
@@ -103,12 +104,12 @@ MILESTONE_MS_OPTION = typer.Option(
103
104
  "--ms",
104
105
  min=1,
105
106
  max=999,
106
- help="Milestone sequence number (MS###) to archive.",
107
+ help="Milestone sequence number (MS###) to complete.",
107
108
  )
108
109
  MILESTONE_INCLUDE_ARCHIVED_OPTION = typer.Option(
109
110
  True,
110
111
  "--archived/--active-only",
111
- help="Include archived milestones in list output.",
112
+ help="Include completed milestones in list output. Legacy option name retained for compatibility.",
112
113
  )
113
114
  PLAN_LIST_INCLUDE_PATH_OPTION = typer.Option(
114
115
  False,
@@ -240,8 +241,9 @@ def register(app: typer.Typer) -> None:
240
241
  console.print("[yellow]Registry was not updated.[/]")
241
242
  raise typer.Exit(1)
242
243
 
243
- @execplan_app.command("archive")
244
- def archive_existing_execplan( # type: ignore[func-returns-value]
244
+ def _complete_or_archive_execplan( # type: ignore[func-returns-value]
245
+ *,
246
+ destination_dir: Literal["complete", "archive"],
245
247
  execplan_id: str = EXECPLAN_ID_ARGUMENT,
246
248
  root: Path | None = ROOT_OPTION,
247
249
  execplans_dir: Path = EXECPLANS_DIR_OPTION,
@@ -264,6 +266,7 @@ def register(app: typer.Typer) -> None:
264
266
  execplan_id=execplan_id.strip(),
265
267
  execplans_dir=resolved_execplans_dir,
266
268
  archive_date_yyyymmdd=date,
269
+ destination_dir=destination_dir,
267
270
  update_registry=update_registry,
268
271
  registry_path=resolved_registry,
269
272
  include_registry_timestamp=registry_timestamp,
@@ -275,10 +278,10 @@ def register(app: typer.Typer) -> None:
275
278
  console.print(f"[red]{error}[/]")
276
279
  raise typer.Exit(2) from error
277
280
  except OSError as error:
278
- console.print(f"[red]ExecPlan archive failed due to filesystem error: {error}[/]")
281
+ console.print(f"[red]ExecPlan completion failed due to filesystem error: {error}[/]")
279
282
  raise typer.Exit(2) from error
280
283
 
281
- console.print(f"[green]Archived ExecPlan:[/] {result.plan_id}")
284
+ console.print(f"[green]Completed ExecPlan:[/] {result.plan_id}")
282
285
  console.print(f"[green]From:[/] {result.source_plan_root.as_posix()}")
283
286
  console.print(f"[green]To:[/] {result.archived_plan_root.as_posix()}")
284
287
  active_count = _count_active_execplans(
@@ -323,6 +326,52 @@ def register(app: typer.Typer) -> None:
323
326
  console.print("[yellow]Registry was not updated.[/]")
324
327
  raise typer.Exit(1)
325
328
 
329
+ @execplan_app.command("complete")
330
+ def complete_existing_execplan( # type: ignore[func-returns-value]
331
+ execplan_id: str = EXECPLAN_ID_ARGUMENT,
332
+ root: Path | None = ROOT_OPTION,
333
+ execplans_dir: Path = EXECPLANS_DIR_OPTION,
334
+ date: str | None = ARCHIVE_DATE_OPTION,
335
+ out: Path = OUT_OPTION,
336
+ update_registry: bool = UPDATE_REGISTRY_OPTION,
337
+ fail_on_registry_warn: bool = FAIL_ON_REGISTRY_WARN_OPTION,
338
+ registry_timestamp: bool = REGISTRY_TIMESTAMP_OPTION,
339
+ ) -> None:
340
+ _complete_or_archive_execplan(
341
+ destination_dir=EXECPLAN_COMPLETE_DIR,
342
+ execplan_id=execplan_id,
343
+ root=root,
344
+ execplans_dir=execplans_dir,
345
+ date=date,
346
+ out=out,
347
+ update_registry=update_registry,
348
+ fail_on_registry_warn=fail_on_registry_warn,
349
+ registry_timestamp=registry_timestamp,
350
+ )
351
+
352
+ @execplan_app.command("archive")
353
+ def archive_existing_execplan( # type: ignore[func-returns-value]
354
+ execplan_id: str = EXECPLAN_ID_ARGUMENT,
355
+ root: Path | None = ROOT_OPTION,
356
+ execplans_dir: Path = EXECPLANS_DIR_OPTION,
357
+ date: str | None = ARCHIVE_DATE_OPTION,
358
+ out: Path = OUT_OPTION,
359
+ update_registry: bool = UPDATE_REGISTRY_OPTION,
360
+ fail_on_registry_warn: bool = FAIL_ON_REGISTRY_WARN_OPTION,
361
+ registry_timestamp: bool = REGISTRY_TIMESTAMP_OPTION,
362
+ ) -> None:
363
+ _complete_or_archive_execplan(
364
+ destination_dir=EXECPLAN_ARCHIVE_DIR,
365
+ execplan_id=execplan_id,
366
+ root=root,
367
+ execplans_dir=execplans_dir,
368
+ date=date,
369
+ out=out,
370
+ update_registry=update_registry,
371
+ fail_on_registry_warn=fail_on_registry_warn,
372
+ registry_timestamp=registry_timestamp,
373
+ )
374
+
326
375
  @execplan_app.command("list")
327
376
  def list_execplans( # type: ignore[func-returns-value]
328
377
  root: Path | None = ROOT_OPTION,
@@ -456,12 +505,13 @@ def register(app: typer.Typer) -> None:
456
505
  raise typer.Exit(0)
457
506
 
458
507
  for milestone in milestones:
459
- status = "[green]active[/]" if milestone.location == "active" else "[yellow]archived[/]"
508
+ status = "[green]active[/]" if milestone.location == "active" else "[yellow]completed[/]"
460
509
  console.print(f"{status} {milestone.milestone_id} -> {milestone.path.as_posix()}")
461
510
  raise typer.Exit(0)
462
511
 
463
- @milestone_app.command("archive")
464
- def archive_milestone( # type: ignore[func-returns-value]
512
+ def _complete_or_archive_milestone( # type: ignore[func-returns-value]
513
+ *,
514
+ destination_dir: Literal["complete", "archive"],
465
515
  execplan_id: str = EXECPLAN_ID_ARGUMENT,
466
516
  root: Path | None = ROOT_OPTION,
467
517
  execplans_dir: Path = EXECPLANS_DIR_OPTION,
@@ -479,6 +529,7 @@ def register(app: typer.Typer) -> None:
479
529
  execplan_id=execplan_id.strip(),
480
530
  sequence=ms,
481
531
  execplans_dir=resolved_execplans_dir,
532
+ destination_dir=destination_dir,
482
533
  )
483
534
  except (ValueError, FileNotFoundError) as error:
484
535
  raise typer.BadParameter(str(error)) from error
@@ -486,14 +537,44 @@ def register(app: typer.Typer) -> None:
486
537
  console.print(f"[red]{error}[/]")
487
538
  raise typer.Exit(2) from error
488
539
  except OSError as error:
489
- console.print(f"[red]Milestone archive failed due to filesystem error: {error}[/]")
540
+ console.print(f"[red]Milestone completion failed due to filesystem error: {error}[/]")
490
541
  raise typer.Exit(2) from error
491
542
 
492
- console.print(f"[green]Archived milestone:[/] {result.milestone_id}")
543
+ console.print(f"[green]Completed milestone:[/] {result.milestone_id}")
493
544
  console.print(f"[green]From:[/] {result.source_path.as_posix()}")
494
545
  console.print(f"[green]To:[/] {result.archived_path.as_posix()}")
495
546
  raise typer.Exit(0)
496
547
 
548
+ @milestone_app.command("complete")
549
+ def complete_milestone( # type: ignore[func-returns-value]
550
+ execplan_id: str = EXECPLAN_ID_ARGUMENT,
551
+ root: Path | None = ROOT_OPTION,
552
+ execplans_dir: Path = EXECPLANS_DIR_OPTION,
553
+ ms: int = MILESTONE_MS_OPTION,
554
+ ) -> None:
555
+ _complete_or_archive_milestone(
556
+ destination_dir=COMPLETE_DIR,
557
+ execplan_id=execplan_id,
558
+ root=root,
559
+ execplans_dir=execplans_dir,
560
+ ms=ms,
561
+ )
562
+
563
+ @milestone_app.command("archive")
564
+ def archive_milestone( # type: ignore[func-returns-value]
565
+ execplan_id: str = EXECPLAN_ID_ARGUMENT,
566
+ root: Path | None = ROOT_OPTION,
567
+ execplans_dir: Path = EXECPLANS_DIR_OPTION,
568
+ ms: int = MILESTONE_MS_OPTION,
569
+ ) -> None:
570
+ _complete_or_archive_milestone(
571
+ destination_dir=ARCHIVE_DIR,
572
+ execplan_id=execplan_id,
573
+ root=root,
574
+ execplans_dir=execplans_dir,
575
+ ms=ms,
576
+ )
577
+
497
578
  @milestone_app.command("remaining")
498
579
  def list_remaining_milestones( # type: ignore[func-returns-value]
499
580
  execplan_id: str = EXECPLAN_ID_ARGUMENT,
@@ -26,6 +26,10 @@ from ..context import CliContext
26
26
  from .output_validation import validate_pipeline_output_filenames
27
27
 
28
28
 
29
+ def _is_running_loop_runtime_error(error: RuntimeError) -> bool:
30
+ return "asyncio.run() cannot be called from a running event loop" in str(error)
31
+
32
+
29
33
  def _activate_offline_mode(context: CliContext) -> None:
30
34
  if os.getenv("OFFLINE", "0") != "1":
31
35
  return
@@ -214,12 +218,21 @@ def run_pipeline(
214
218
 
215
219
  try:
216
220
  result = asyncio.run(_execute())
217
- except RuntimeError:
221
+ except RuntimeError as error:
222
+ if not _is_running_loop_runtime_error(error):
223
+ context.console.print(f"[red]Pipeline failed:[/] {error}")
224
+ return False
218
225
  loop = asyncio.new_event_loop()
219
226
  try:
220
227
  result = loop.run_until_complete(_execute())
228
+ except Exception as nested_error:
229
+ context.console.print(f"[red]Pipeline failed:[/] {nested_error}")
230
+ return False
221
231
  finally:
222
232
  loop.close()
233
+ except Exception as error:
234
+ context.console.print(f"[red]Pipeline failed:[/] {error}")
235
+ return False
223
236
 
224
237
  output_writer = PipelineOutputWriter()
225
238
  output_options = PipelineOutputOptions(
@@ -55,6 +55,11 @@ from agentrules.core.types.models import (
55
55
  GPT5_4_NANO_MEDIUM,
56
56
  GPT5_4_NANO_NONE,
57
57
  GPT5_4_NANO_XHIGH,
58
+ GPT5_5_DEFAULT,
59
+ GPT5_5_HIGH,
60
+ GPT5_5_LOW,
61
+ GPT5_5_NONE,
62
+ GPT5_5_XHIGH,
58
63
  GPT5_DEFAULT,
59
64
  GPT5_HIGH,
60
65
  GPT5_MINI,
@@ -379,6 +384,36 @@ BASE_MODEL_PRESETS: dict[str, PresetDefinition] = {
379
384
  description="Cost-efficient GPT-5 Mini with 400k context and high reasoning.",
380
385
  provider=ModelProvider.OPENAI,
381
386
  ),
387
+ "gpt55-none": _preset(
388
+ config=GPT5_5_NONE,
389
+ label="GPT-5.5 (no reasoning)",
390
+ description="GPT-5.5 via Responses API with reasoning disabled and low verbosity for fast runs.",
391
+ provider=ModelProvider.OPENAI,
392
+ ),
393
+ "gpt55-low": _preset(
394
+ config=GPT5_5_LOW,
395
+ label="GPT-5.5 (low reasoning)",
396
+ description="GPT-5.5 via Responses API with low reasoning effort and low verbosity.",
397
+ provider=ModelProvider.OPENAI,
398
+ ),
399
+ "gpt55-default": _preset(
400
+ config=GPT5_5_DEFAULT,
401
+ label="GPT-5.5 (medium reasoning)",
402
+ description="GPT-5.5 via Responses API with medium reasoning and verbosity.",
403
+ provider=ModelProvider.OPENAI,
404
+ ),
405
+ "gpt55-high": _preset(
406
+ config=GPT5_5_HIGH,
407
+ label="GPT-5.5 (high reasoning)",
408
+ description="GPT-5.5 via Responses API with high reasoning depth and high verbosity.",
409
+ provider=ModelProvider.OPENAI,
410
+ ),
411
+ "gpt55-xhigh": _preset(
412
+ config=GPT5_5_XHIGH,
413
+ label="GPT-5.5 (xhigh reasoning)",
414
+ description="GPT-5.5 via Responses API with maximum supported reasoning depth and high verbosity.",
415
+ provider=ModelProvider.OPENAI,
416
+ ),
382
417
  "gpt5-minimal": _preset(
383
418
  config=GPT5_MINIMAL,
384
419
  label="GPT-5 (minimal reasoning)",
@@ -583,13 +618,13 @@ MODEL_PRESETS: dict[str, PresetDefinition] = {
583
618
  }
584
619
 
585
620
  MODEL_PRESET_DEFAULTS: dict[str, str] = {
586
- "phase1": "gpt5-mini",
587
- "phase2": "gpt5-mini",
588
- "phase3": "gpt5-mini",
589
- "phase4": "gpt5-mini",
590
- "phase5": "gpt5-mini",
591
- "final": "gpt5-mini",
592
- "researcher": "gpt5-mini",
621
+ "phase1": "gpt55-default",
622
+ "phase2": "gpt55-default",
623
+ "phase3": "gpt55-default",
624
+ "phase4": "gpt55-default",
625
+ "phase5": "gpt55-default",
626
+ "final": "gpt55-default",
627
+ "researcher": "gpt55-default",
593
628
  }
594
629
 
595
630
 
@@ -13,6 +13,8 @@ from typing import Any
13
13
 
14
14
  from .errors import CodexExecutableNotFoundError, CodexProcessError
15
15
 
16
+ DEFAULT_CODEX_SUBPROCESS_STREAM_LIMIT = 1024 * 1024
17
+
16
18
 
17
19
  def _format_config_override(value: Any) -> str:
18
20
  if isinstance(value, str):
@@ -47,10 +49,14 @@ class CodexAppServerProcess:
47
49
  *,
48
50
  command: Sequence[str] | None = None,
49
51
  env: Mapping[str, str] | None = None,
52
+ stream_limit_bytes: int = DEFAULT_CODEX_SUBPROCESS_STREAM_LIMIT,
50
53
  ) -> None:
54
+ if stream_limit_bytes <= 0:
55
+ raise ValueError("stream_limit_bytes must be a positive integer.")
51
56
  self.launch_config = launch_config
52
57
  self._command = tuple(command) if command is not None else tuple(launch_config.build_command())
53
58
  self._env_overrides = dict(env or {})
59
+ self._stream_limit_bytes = stream_limit_bytes
54
60
  self._process: asyncio.subprocess.Process | None = None
55
61
  self._stderr_lines: deque[str] = deque(maxlen=50)
56
62
 
@@ -105,6 +111,7 @@ class CodexAppServerProcess:
105
111
  stdin=asyncio.subprocess.PIPE,
106
112
  stdout=asyncio.subprocess.PIPE,
107
113
  stderr=asyncio.subprocess.PIPE,
114
+ limit=self._stream_limit_bytes,
108
115
  )
109
116
  except FileNotFoundError as exc:
110
117
  executable = self._command[0] if self._command else self.launch_config.executable_path
@@ -157,3 +164,10 @@ class CodexAppServerProcess:
157
164
  "codex_home": self.launch_config.codex_home,
158
165
  "cwd": self.launch_config.cwd,
159
166
  }
167
+
168
+
169
+ __all__ = [
170
+ "CodexAppServerProcess",
171
+ "CodexProcessLaunchConfig",
172
+ "DEFAULT_CODEX_SUBPROCESS_STREAM_LIMIT",
173
+ ]
@@ -46,6 +46,7 @@ _GPT5_NONE_DEFAULTS = ModelDefaults(
46
46
  )
47
47
 
48
48
  _PREFIX_DEFAULTS: tuple[tuple[str, ModelDefaults], ...] = (
49
+ ("gpt-5.5", _GPT5_RESPONSES_DEFAULTS),
49
50
  ("gpt-5.4-pro", _GPT5_PRO_DEFAULTS),
50
51
  ("gpt-5.4", _GPT5_NONE_DEFAULTS),
51
52
  ("gpt-5.3-codex", _GPT5_RESPONSES_DEFAULTS),
@@ -9,6 +9,8 @@ from agentrules.core.agents.base import ReasoningMode
9
9
  ApiType = Literal["responses", "chat"]
10
10
 
11
11
  _GPT5_RESPONSES_REASONING_SUPPORT: tuple[tuple[str, frozenset[str]], ...] = (
12
+ ("gpt-5.5-pro", frozenset()),
13
+ ("gpt-5.5", frozenset({"none", "low", "medium", "high", "xhigh"})),
12
14
  ("gpt-5.4-pro", frozenset({"medium", "high", "xhigh"})),
13
15
  ("gpt-5.4", frozenset({"none", "low", "medium", "high", "xhigh"})),
14
16
  ("gpt-5.3-codex", frozenset({"low", "medium", "high", "xhigh"})),
@@ -99,6 +99,9 @@ class FinalAnalysis:
99
99
 
100
100
  # Use the architect to perform the final analysis with the formatted prompt.
101
101
  result = await self.architect.final_analysis(consolidated_report, prompt)
102
+ error_message = result.get("error") if isinstance(result, dict) else None
103
+ if isinstance(error_message, str) and error_message.strip():
104
+ raise RuntimeError(f"Final analysis failed: {error_message}")
102
105
 
103
106
  logger.info("[bold green]Final Analysis:[/bold green] Rules creation completed successfully")
104
107
 
@@ -106,4 +109,4 @@ class FinalAnalysis:
106
109
  except Exception as e:
107
110
  # Log any errors that occur during the analysis.
108
111
  logger.error(f"[bold red]Error in Final Analysis:[/bold red] {str(e)}")
109
- return {"error": str(e)} # Return the error message.
112
+ raise
@@ -79,6 +79,9 @@ class Phase5Analysis:
79
79
 
80
80
  # Use the architect to consolidate results
81
81
  result = await self.architect.consolidate_results(all_results, prompt)
82
+ error_message = result.get("error") if isinstance(result, dict) else None
83
+ if isinstance(error_message, str) and error_message.strip():
84
+ raise RuntimeError(f"Phase 5 consolidation failed: {error_message}")
82
85
 
83
86
  logger.info("[bold green]Phase 5:[/bold green] Consolidation completed successfully")
84
87
 
@@ -96,7 +99,4 @@ class Phase5Analysis:
96
99
  return result
97
100
  except Exception as e:
98
101
  logger.error(f"[bold red]Error in Phase 5:[/bold red] {str(e)}")
99
- return {
100
- "phase": "Consolidation",
101
- "error": str(e)
102
- }
102
+ raise