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.
- {agentrules-3.6.0/src/agentrules.egg-info → agentrules-3.8.0}/PKG-INFO +10 -10
- {agentrules-3.6.0 → agentrules-3.8.0}/README.md +9 -9
- {agentrules-3.6.0 → agentrules-3.8.0}/pyproject.toml +1 -1
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/cli/commands/execplan.py +94 -13
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/cli/services/pipeline_runner.py +14 -1
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/config/agents.py +42 -7
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/codex/process.py +14 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/openai/config.py +1 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/openai/request_builder.py +2 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/analysis/final_analysis.py +4 -1
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/analysis/phase_5.py +4 -4
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/execplan/creator.py +47 -27
- agentrules-3.8.0/src/agentrules/core/execplan/locks.py +103 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/execplan/milestones.py +26 -10
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/execplan/paths.py +46 -28
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/execplan/registry.py +14 -11
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/types/models.py +31 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/file_creation/snapshot_artifact.py +4 -2
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/file_creation/templates/MILESTONE_TEMPLATE.md +5 -5
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/file_creation/templates/PLANS.md +4 -4
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/file_system/tree_generator.py +1 -1
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/formatters/clean_agentrules.py +2 -2
- {agentrules-3.6.0 → agentrules-3.8.0/src/agentrules.egg-info}/PKG-INFO +10 -10
- {agentrules-3.6.0 → agentrules-3.8.0}/tests/test_cli_services.py +98 -1
- {agentrules-3.6.0 → agentrules-3.8.0}/tests/test_openai_responses.py +14 -0
- agentrules-3.6.0/src/agentrules/core/execplan/locks.py +0 -44
- {agentrules-3.6.0 → agentrules-3.8.0}/LICENSE +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/setup.cfg +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/__init__.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/__main__.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/cli/__init__.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/cli/app.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/cli/bootstrap.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/cli/commands/__init__.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/cli/commands/analyze.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/cli/commands/configure.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/cli/commands/execplan_registry.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/cli/commands/keys.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/cli/commands/scaffold.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/cli/commands/snapshot.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/cli/commands/tree.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/cli/context.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/cli/services/__init__.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/cli/services/codex_runtime.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/cli/services/configuration.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/cli/services/output_validation.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/cli/services/tree_preview.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/cli/ui/__init__.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/cli/ui/analysis_view.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/cli/ui/event_sink.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/cli/ui/main_menu.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/cli/ui/settings/__init__.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/cli/ui/settings/codex.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/cli/ui/settings/exclusions/__init__.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/cli/ui/settings/exclusions/editor.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/cli/ui/settings/exclusions/preview.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/cli/ui/settings/exclusions/summary.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/cli/ui/settings/logging.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/cli/ui/settings/menu.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/cli/ui/settings/models/__init__.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/cli/ui/settings/models/researcher.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/cli/ui/settings/models/utils.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/cli/ui/settings/outputs.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/cli/ui/settings/providers.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/cli/ui/styles.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/config/__init__.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/config/exclusions.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/config/prompts/__init__.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/config/prompts/final_analysis_prompt.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/config/prompts/phase_1_prompts.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/config/prompts/phase_2_prompts.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/config/prompts/phase_3_prompts.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/config/prompts/phase_4_prompts.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/config/prompts/phase_5_prompts.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/config/tools.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/__init__.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agent_tools/tool_manager.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agent_tools/web_search/__init__.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agent_tools/web_search/tavily.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/__init__.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/anthropic/__init__.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/anthropic/architect.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/anthropic/capabilities.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/anthropic/client.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/anthropic/prompting.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/anthropic/request_builder.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/anthropic/response_parser.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/anthropic/tooling.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/base.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/codex/__init__.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/codex/architect.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/codex/client.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/codex/errors.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/codex/models.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/codex/protocol.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/codex/request_builder.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/codex/response_parser.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/deepseek/__init__.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/deepseek/architect.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/deepseek/client.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/deepseek/compat.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/deepseek/config.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/deepseek/prompting.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/deepseek/request_builder.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/deepseek/response_parser.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/deepseek/tooling.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/factory/__init__.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/factory/factory.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/gemini/__init__.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/gemini/architect.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/gemini/capabilities.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/gemini/client.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/gemini/errors.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/gemini/legacy.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/gemini/prompting.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/gemini/response_parser.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/gemini/tooling.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/openai/__init__.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/openai/architect.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/openai/client.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/openai/compat.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/openai/response_parser.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/xai/__init__.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/xai/architect.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/xai/client.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/xai/config.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/xai/prompting.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/xai/request_builder.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/xai/response_parser.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/agents/xai/tooling.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/analysis/__init__.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/analysis/events.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/analysis/phase_1.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/analysis/phase_2.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/analysis/phase_3.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/analysis/phase_4.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/configuration/__init__.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/configuration/constants.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/configuration/environment.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/configuration/manager.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/configuration/model_presets.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/configuration/models.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/configuration/repository.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/configuration/serde.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/configuration/services/__init__.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/configuration/services/codex.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/configuration/services/exclusions.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/configuration/services/features.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/configuration/services/logging.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/configuration/services/outputs.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/configuration/services/phase_models.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/configuration/services/providers.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/configuration/utils.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/execplan/__init__.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/execplan/identity.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/execplan/templates/EXECPLAN_TEMPLATE.md +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/execplan/templates/MILESTONE_FILE_TEMPLATE.md +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/logging/__init__.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/logging/config.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/pipeline/__init__.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/pipeline/config.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/pipeline/factory.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/pipeline/orchestrator.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/pipeline/output.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/pipeline/project_profile.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/pipeline/snapshot.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/streaming/__init__.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/streaming/types.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/types/__init__.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/types/agent_config.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/types/tool_config.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/async_stream.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/constants.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/dependency_scanner/__init__.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/dependency_scanner/constants.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/dependency_scanner/discovery.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/dependency_scanner/metadata.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/dependency_scanner/models.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/dependency_scanner/parsers/__init__.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/dependency_scanner/parsers/clojure.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/dependency_scanner/parsers/dart.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/dependency_scanner/parsers/dotnet.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/dependency_scanner/parsers/elixir.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/dependency_scanner/parsers/generic.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/dependency_scanner/parsers/go.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/dependency_scanner/parsers/helpers.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/dependency_scanner/parsers/java.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/dependency_scanner/parsers/javascript.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/dependency_scanner/parsers/php.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/dependency_scanner/parsers/python.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/dependency_scanner/parsers/ruby.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/dependency_scanner/parsers/swift.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/dependency_scanner/parsers/toml_based.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/dependency_scanner/registry.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/dependency_scanner/scan.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/file_creation/agent_scaffold.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/file_creation/atomic_write.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/file_creation/cursorignore.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/file_creation/phases_output.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/file_creation/snapshot_policy.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/file_system/__init__.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/file_system/file_retriever.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/file_system/gitignore.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/formatters/__init__.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/model_config_helper.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/offline.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/parsers/__init__.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/parsers/agent_parser.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/provider_capabilities.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/release_metadata.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/structured_outputs.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/system_prompt.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/token_estimator.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules/core/utils/token_packer.py +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules.egg-info/SOURCES.txt +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules.egg-info/dependency_links.txt +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules.egg-info/entry_points.txt +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules.egg-info/requires.txt +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/src/agentrules.egg-info/top_level.txt +0 -0
- {agentrules-3.6.0 → agentrules-3.8.0}/tests/test_env.py +0 -0
- {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.
|
|
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
|
|
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
|
|
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
|
-
-
|
|
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
|
-
-
|
|
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
|
|
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
|
|
277
|
+
agentrules execplan milestone complete EP-20260207-001 --ms 1
|
|
278
278
|
|
|
279
|
-
# 5)
|
|
280
|
-
agentrules execplan
|
|
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
|
|
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
|
|
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
|
|
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
|
-
-
|
|
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
|
-
-
|
|
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
|
|
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
|
|
239
|
+
agentrules execplan milestone complete EP-20260207-001 --ms 1
|
|
240
240
|
|
|
241
|
-
# 5)
|
|
242
|
-
agentrules execplan
|
|
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
|
|
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
|
|
|
@@ -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
|
|
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
|
|
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
|
|
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
|
-
|
|
244
|
-
|
|
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
|
|
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]
|
|
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]
|
|
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
|
-
|
|
464
|
-
|
|
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
|
|
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]
|
|
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": "
|
|
587
|
-
"phase2": "
|
|
588
|
-
"phase3": "
|
|
589
|
-
"phase4": "
|
|
590
|
-
"phase5": "
|
|
591
|
-
"final": "
|
|
592
|
-
"researcher": "
|
|
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
|
-
|
|
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
|
-
|
|
100
|
-
"phase": "Consolidation",
|
|
101
|
-
"error": str(e)
|
|
102
|
-
}
|
|
102
|
+
raise
|