agentrules 4.2.1__tar.gz → 4.4.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-4.2.1/src/agentrules.egg-info → agentrules-4.4.0}/PKG-INFO +20 -17
- {agentrules-4.2.1 → agentrules-4.4.0}/README.md +15 -12
- {agentrules-4.2.1 → agentrules-4.4.0}/pyproject.toml +5 -5
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/cli/services/claude_code_runtime.py +3 -9
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/cli/ui/settings/models/utils.py +9 -15
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/config/agents.py +562 -87
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/config/prompts/final_analysis_prompt.py +1 -1
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/config/prompts/phase_3_prompts.py +21 -7
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/agents/anthropic/architect.py +9 -9
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/agents/anthropic/capabilities.py +173 -1
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/agents/anthropic/request_builder.py +35 -31
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/agents/claude_code/architect.py +3 -1
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/agents/claude_code/request_builder.py +25 -66
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/agents/deepseek/architect.py +24 -7
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/agents/deepseek/config.py +15 -11
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/agents/deepseek/request_builder.py +23 -16
- agentrules-4.4.0/src/agentrules/core/agents/deepseek/response_parser.py +115 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/agents/deepseek/tooling.py +2 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/agents/gemini/architect.py +30 -8
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/agents/gemini/capabilities.py +171 -4
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/agents/gemini/client.py +11 -2
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/agents/gemini/response_parser.py +10 -2
- agentrules-4.4.0/src/agentrules/core/agents/gemini/tooling.py +114 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/agents/openai/architect.py +4 -3
- agentrules-4.4.0/src/agentrules/core/agents/openai/capabilities.py +139 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/agents/openai/client.py +6 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/agents/openai/compat.py +1 -1
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/agents/openai/config.py +10 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/agents/openai/request_builder.py +37 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/agents/xai/architect.py +2 -2
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/agents/xai/config.py +13 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/agents/xai/request_builder.py +0 -2
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/analysis/phase_1.py +109 -29
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/analysis/phase_3.py +8 -5
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/configuration/manager.py +9 -10
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/configuration/model_presets.py +214 -69
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/configuration/repository.py +5 -4
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/configuration/services/claude_code.py +64 -18
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/types/__init__.py +46 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/types/models.py +160 -19
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/utils/file_creation/agent_scaffold.py +2 -4
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/utils/file_system/file_retriever.py +1 -1
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/utils/token_estimator.py +28 -11
- agentrules-4.4.0/src/agentrules/core/utils/token_packer.py +202 -0
- {agentrules-4.2.1 → agentrules-4.4.0/src/agentrules.egg-info}/PKG-INFO +20 -17
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules.egg-info/SOURCES.txt +1 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules.egg-info/requires.txt +4 -4
- agentrules-4.2.1/src/agentrules/core/agents/deepseek/response_parser.py +0 -68
- agentrules-4.2.1/src/agentrules/core/agents/gemini/tooling.py +0 -28
- agentrules-4.2.1/src/agentrules/core/utils/token_packer.py +0 -216
- {agentrules-4.2.1 → agentrules-4.4.0}/LICENSE +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/setup.cfg +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/__init__.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/__main__.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/cli/__init__.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/cli/app.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/cli/bootstrap.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/cli/commands/__init__.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/cli/commands/analyze.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/cli/commands/configure.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/cli/commands/execplan.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/cli/commands/execplan_registry.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/cli/commands/keys.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/cli/commands/scaffold.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/cli/commands/snapshot.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/cli/commands/tree.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/cli/context.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/cli/services/__init__.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/cli/services/codex_runtime.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/cli/services/configuration.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/cli/services/output_validation.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/cli/services/pipeline_runner.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/cli/services/tree_preview.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/cli/ui/__init__.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/cli/ui/analysis_view.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/cli/ui/event_sink.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/cli/ui/main_menu.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/cli/ui/settings/__init__.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/cli/ui/settings/claude_code.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/cli/ui/settings/codex.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/cli/ui/settings/exclusions/__init__.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/cli/ui/settings/exclusions/editor.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/cli/ui/settings/exclusions/preview.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/cli/ui/settings/exclusions/summary.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/cli/ui/settings/logging.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/cli/ui/settings/menu.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/cli/ui/settings/models/__init__.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/cli/ui/settings/models/researcher.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/cli/ui/settings/outputs.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/cli/ui/settings/providers.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/cli/ui/styles.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/config/__init__.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/config/exclusions.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/config/prompts/__init__.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/config/prompts/phase_1_prompts.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/config/prompts/phase_2_prompts.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/config/prompts/phase_4_prompts.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/config/prompts/phase_5_prompts.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/config/tools.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/__init__.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/agent_tools/tool_manager.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/agent_tools/web_search/__init__.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/agent_tools/web_search/tavily.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/agents/__init__.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/agents/anthropic/__init__.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/agents/anthropic/client.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/agents/anthropic/prompting.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/agents/anthropic/response_parser.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/agents/anthropic/tooling.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/agents/base.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/agents/claude_code/__init__.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/agents/claude_code/client.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/agents/claude_code/errors.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/agents/claude_code/response_parser.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/agents/codex/__init__.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/agents/codex/architect.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/agents/codex/client.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/agents/codex/errors.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/agents/codex/model_selection.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/agents/codex/models.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/agents/codex/process.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/agents/codex/protocol.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/agents/codex/reasoning.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/agents/codex/request_builder.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/agents/codex/response_parser.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/agents/deepseek/__init__.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/agents/deepseek/client.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/agents/deepseek/compat.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/agents/deepseek/prompting.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/agents/factory/__init__.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/agents/factory/factory.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/agents/gemini/__init__.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/agents/gemini/errors.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/agents/gemini/legacy.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/agents/gemini/prompting.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/agents/openai/__init__.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/agents/openai/response_parser.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/agents/xai/__init__.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/agents/xai/client.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/agents/xai/prompting.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/agents/xai/response_parser.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/agents/xai/tooling.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/analysis/__init__.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/analysis/events.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/analysis/final_analysis.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/analysis/phase_2.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/analysis/phase_4.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/analysis/phase_5.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/configuration/__init__.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/configuration/constants.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/configuration/environment.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/configuration/models.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/configuration/serde.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/configuration/services/__init__.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/configuration/services/codex.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/configuration/services/exclusions.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/configuration/services/features.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/configuration/services/logging.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/configuration/services/outputs.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/configuration/services/phase_models.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/configuration/services/providers.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/configuration/utils.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/execplan/__init__.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/execplan/creator.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/execplan/identity.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/execplan/locks.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/execplan/milestones.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/execplan/paths.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/execplan/registry.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/execplan/templates/EXECPLAN_TEMPLATE.md +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/execplan/templates/MILESTONE_FILE_TEMPLATE.md +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/logging/__init__.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/logging/config.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/pipeline/__init__.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/pipeline/config.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/pipeline/factory.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/pipeline/orchestrator.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/pipeline/output.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/pipeline/project_profile.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/pipeline/snapshot.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/streaming/__init__.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/streaming/types.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/types/agent_config.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/types/tool_config.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/utils/async_stream.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/utils/constants.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/utils/dependency_scanner/__init__.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/utils/dependency_scanner/constants.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/utils/dependency_scanner/discovery.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/utils/dependency_scanner/metadata.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/utils/dependency_scanner/models.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/utils/dependency_scanner/parsers/__init__.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/utils/dependency_scanner/parsers/clojure.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/utils/dependency_scanner/parsers/dart.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/utils/dependency_scanner/parsers/dotnet.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/utils/dependency_scanner/parsers/elixir.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/utils/dependency_scanner/parsers/generic.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/utils/dependency_scanner/parsers/go.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/utils/dependency_scanner/parsers/helpers.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/utils/dependency_scanner/parsers/java.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/utils/dependency_scanner/parsers/javascript.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/utils/dependency_scanner/parsers/php.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/utils/dependency_scanner/parsers/python.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/utils/dependency_scanner/parsers/ruby.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/utils/dependency_scanner/parsers/swift.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/utils/dependency_scanner/parsers/toml_based.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/utils/dependency_scanner/registry.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/utils/dependency_scanner/scan.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/utils/file_creation/atomic_write.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/utils/file_creation/cursorignore.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/utils/file_creation/phases_output.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/utils/file_creation/snapshot_artifact.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/utils/file_creation/snapshot_policy.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/utils/file_creation/templates/MILESTONE_TEMPLATE.md +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/utils/file_creation/templates/PLANS.md +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/utils/file_system/__init__.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/utils/file_system/gitignore.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/utils/file_system/tree_generator.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/utils/formatters/__init__.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/utils/formatters/clean_agentrules.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/utils/model_config_helper.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/utils/offline.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/utils/parsers/__init__.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/utils/parsers/agent_parser.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/utils/provider_capabilities.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/utils/provider_utils.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/utils/release_metadata.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/utils/structured_outputs.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules/core/utils/system_prompt.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules.egg-info/dependency_links.txt +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules.egg-info/entry_points.txt +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/src/agentrules.egg-info/top_level.txt +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/tests/test_cli_services.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/tests/test_env.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/tests/test_openai_responses.py +0 -0
- {agentrules-4.2.1 → agentrules-4.4.0}/tests/test_smoke_discovery.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: agentrules
|
|
3
|
-
Version: 4.
|
|
3
|
+
Version: 4.4.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
|
|
@@ -12,10 +12,10 @@ Classifier: Operating System :: OS Independent
|
|
|
12
12
|
Requires-Python: >=3.11.9
|
|
13
13
|
Description-Content-Type: text/markdown
|
|
14
14
|
License-File: LICENSE
|
|
15
|
-
Requires-Dist: anthropic
|
|
15
|
+
Requires-Dist: anthropic<2.0.0,>=0.78.0
|
|
16
16
|
Requires-Dist: rich
|
|
17
17
|
Requires-Dist: openai>=2.45.0
|
|
18
|
-
Requires-Dist: google-genai>=
|
|
18
|
+
Requires-Dist: google-genai>=3.3.0
|
|
19
19
|
Requires-Dist: protobuf>=4.25
|
|
20
20
|
Requires-Dist: python-dotenv
|
|
21
21
|
Requires-Dist: tavily-python>=0.7.14
|
|
@@ -26,8 +26,8 @@ Requires-Dist: pathspec>=0.12
|
|
|
26
26
|
Requires-Dist: PyYAML>=6.0
|
|
27
27
|
Requires-Dist: tomli; python_version < "3.11"
|
|
28
28
|
Requires-Dist: tomli-w
|
|
29
|
-
Requires-Dist: tiktoken>=0.
|
|
30
|
-
Requires-Dist: claude-agent-sdk>=0.2.
|
|
29
|
+
Requires-Dist: tiktoken>=0.14.0
|
|
30
|
+
Requires-Dist: claude-agent-sdk>=0.2.180
|
|
31
31
|
Provides-Extra: dev
|
|
32
32
|
Requires-Dist: pytest; extra == "dev"
|
|
33
33
|
Requires-Dist: pytest-asyncio; extra == "dev"
|
|
@@ -345,19 +345,19 @@ Choose any available preset per phase through the CLI (`agentrules configure --m
|
|
|
345
345
|
|
|
346
346
|
| Provider | Current or recommended selection | Compatibility and fallback |
|
|
347
347
|
| --- | --- | --- |
|
|
348
|
-
| OpenAI | GPT-5.6 Sol
|
|
349
|
-
| DeepSeek | V4 Flash or V4 Pro | Saved `deepseek-chat
|
|
350
|
-
| Anthropic | Claude Sonnet 5 or Fable 5
|
|
351
|
-
| xAI | Grok 4.5
|
|
352
|
-
| Google | Gemini
|
|
353
|
-
| Codex | Runtime default or a model/effort discovered from app-server |
|
|
354
|
-
| Claude Code | Runtime default
|
|
348
|
+
| OpenAI | GPT-5.6 Sol remains the phase default. GPT-6.2 Astra, GPT-6.2 Sol, and GPT-6.1 Terra are available through Responses. | Retired o4-mini presets use GPT-5.6 Terra. On December 11, 2026, saved GPT-5 and o3 presets switch to GPT-6.1 Sol, and GPT-5 Mini presets switch to GPT-6.1 Terra. |
|
|
349
|
+
| DeepSeek | V4.1 Flash (`deepseek-flash`) or V4 Pro | Saved V4 Flash, `deepseek-chat`, and `deepseek-reasoner` keys resolve directly to matching V4.1 Flash modes. |
|
|
350
|
+
| Anthropic | Claude Opus/Sonnet/Haiku 5.5 or Fable 5.2 | Fable 5.2 defaults to high effort and carries a 30-day retention requirement. Saved Sonnet 4.5 presets route to Sonnet 5.5 on November 30, 2026. Saved Opus 4.5 presets route to Opus 5.5 with adaptive thinking on January 22, 2027. |
|
|
351
|
+
| xAI | Grok 4.7 is recommended. Grok 4.6, 4.5, 4.3, and pinned Grok 4.20 reasoning and non-reasoning variants remain selectable. | Saved Grok Build 0.1 and Grok Code Fast presets route to Grok 4.7 at high effort. Direct `XaiArchitect` construction still defaults to 4.6 pending evaluation. |
|
|
352
|
+
| Google | Gemini 4 Carbon, Hydrogen, Neon, and Argon. Hydrogen is available on the free Gemini API tier. | Starting December 1, 2026, saved Gemini 2.5 Pro and Flash presets route to 3.8 Flash and 3.5 Flash-Lite respectively. `GeminiArchitect()` defaults to 3.5 Flash-Lite with minimal thinking. |
|
|
353
|
+
| Codex | Runtime default or a model/effort discovered from app-server | GPT-6.2 Astra and Sol require Codex CLI 0.166.0 or later and appear when the runtime catalog offers them. |
|
|
354
|
+
| Claude Code | Runtime default, moving aliases, or pinned Fable 5.2 and Opus/Sonnet/Haiku 5.5 | The Fable 5.2 pin uses medium effort and requires Claude Code 2.1.321 or later. The lockfile bundles CLI 2.1.332 through Claude Agent SDK 0.2.189. |
|
|
355
355
|
|
|
356
356
|
See [`docs/provider-model-lifecycle.md`](docs/provider-model-lifecycle.md) for reasoning contracts, retirements, data-retention caveats, safe live-smoke commands, and rollback choices.
|
|
357
357
|
|
|
358
358
|
## 🧠 Reasoning & Advanced Configuration
|
|
359
359
|
|
|
360
|
-
- **Reasoning modes:** Anthropic presets use fixed-budget or adaptive thinking depending on the Claude family, Gemini presets use provider-native thinking controls, OpenAI presets map to reasoning effort or temperature based on model family, DeepSeek
|
|
360
|
+
- **Reasoning modes:** Anthropic presets use fixed-budget or adaptive thinking depending on the Claude family, Gemini presets use provider-native thinking controls, OpenAI presets map to reasoning effort or temperature based on model family, DeepSeek Flash presets explicitly select thinking/non-thinking plus low/high/max effort, and xAI presets keep their model-specific reasoning behavior (`src/agentrules/core/types/models.py`). Saved DeepSeek V4 Flash and Chat/Reasoner keys resolve to equivalent V4.1 Flash modes.
|
|
361
361
|
- **Runtime modes:** Codex presets route phases through `codex app-server`, with runtime-discovered model/effort variants available from the live model catalog. Claude Code presets route phases through the Claude Agent SDK while preserving Claude Code's runtime behavior.
|
|
362
362
|
- **Provider lifecycle:** [`docs/provider-model-lifecycle.md`](docs/provider-model-lifecycle.md) records model-specific retirement, thinking, refusal, and data-retention constraints that require operator attention.
|
|
363
363
|
- **Agent planning:** Phase 2 generates agent manifests that Phase 3 converts into live architects; when parsing fails the fallback extractor and default agents keep the pipeline running (`core/analysis/phase_2.py`, `core/analysis/phase_3.py`).
|
|
@@ -403,6 +403,7 @@ Toggle outputs with `agentrules configure --outputs` or via the config TOML.
|
|
|
403
403
|
- Deterministic smoke runs (CI/local without API calls): `agentrules analyze --offline tests/tests_input`
|
|
404
404
|
- Full suite: `pytest`
|
|
405
405
|
- Releases are Release Please-driven: merges to `main` update/open a release PR, and merging that PR creates the `vX.Y.Z` tag + GitHub release automatically.
|
|
406
|
+
- Release Please PRs regenerate and commit `uv.lock` automatically; pull requests that change project or lock metadata must pass `uv lock --check`.
|
|
406
407
|
- GitHub Actions publishes package artifacts with Trusted Publishing (OIDC) via `.github/workflows/publish-pypi.yml` (no long-lived PyPI API token).
|
|
407
408
|
- Run a safe preflight publish first from Actions with `workflow_dispatch` and `repository = testpypi`; publish to production PyPI on release-tag push or manual `repository = pypi`.
|
|
408
409
|
- Keep docs and presets in sync when adding providers (`config/agents.py`, `config/tools.py`, `core/agents/*`).
|
|
@@ -412,10 +413,12 @@ Toggle outputs with `agentrules configure --outputs` or via the config TOML.
|
|
|
412
413
|
1. Merge feature PRs into `main` using Conventional Commit-style titles/messages (for example `feat: ...`, `fix: ...`).
|
|
413
414
|
For an intentional one-release version override, include a `Release-As: X.Y.Z` footer in a commit merged to `main`; do not manually edit `pyproject.toml` or `.release-please-manifest.json`.
|
|
414
415
|
2. `.github/workflows/release-please.yml` updates or opens a release PR with the version bump and changelog.
|
|
415
|
-
3.
|
|
416
|
-
4.
|
|
417
|
-
5.
|
|
418
|
-
6.
|
|
416
|
+
3. The release workflow regenerates `uv.lock` on the release PR branch and commits it when project metadata changed.
|
|
417
|
+
4. Confirm the release PR passes the `Verify pyproject and uv.lock agree` check.
|
|
418
|
+
5. (Optional, recommended) run `.github/workflows/publish-pypi.yml` manually with `repository = testpypi` from the release PR head commit.
|
|
419
|
+
6. Merge the release PR. Release Please creates/pushes the matching `vX.Y.Z` tag and publishes a GitHub release.
|
|
420
|
+
7. The tag push triggers `.github/workflows/publish-pypi.yml` to publish to production PyPI.
|
|
421
|
+
8. One-time setup for new projects:
|
|
419
422
|
- Configure a repo secret `RELEASE_PLEASE_TOKEN` (PAT or GitHub App token) with permission to create/update PRs, tags, and releases. This ensures tag pushes from Release Please trigger downstream workflows.
|
|
420
423
|
- Configure Trusted Publishers on TestPyPI and PyPI for repository `trevor-nichols/agentrules-architect`, workflow `.github/workflows/publish-pypi.yml`, and environments `testpypi`/`pypi`.
|
|
421
424
|
|
|
@@ -306,19 +306,19 @@ Choose any available preset per phase through the CLI (`agentrules configure --m
|
|
|
306
306
|
|
|
307
307
|
| Provider | Current or recommended selection | Compatibility and fallback |
|
|
308
308
|
| --- | --- | --- |
|
|
309
|
-
| OpenAI | GPT-5.6 Sol
|
|
310
|
-
| DeepSeek | V4 Flash or V4 Pro | Saved `deepseek-chat
|
|
311
|
-
| Anthropic | Claude Sonnet 5 or Fable 5
|
|
312
|
-
| xAI | Grok 4.5
|
|
313
|
-
| Google | Gemini
|
|
314
|
-
| Codex | Runtime default or a model/effort discovered from app-server |
|
|
315
|
-
| Claude Code | Runtime default
|
|
309
|
+
| OpenAI | GPT-5.6 Sol remains the phase default. GPT-6.2 Astra, GPT-6.2 Sol, and GPT-6.1 Terra are available through Responses. | Retired o4-mini presets use GPT-5.6 Terra. On December 11, 2026, saved GPT-5 and o3 presets switch to GPT-6.1 Sol, and GPT-5 Mini presets switch to GPT-6.1 Terra. |
|
|
310
|
+
| DeepSeek | V4.1 Flash (`deepseek-flash`) or V4 Pro | Saved V4 Flash, `deepseek-chat`, and `deepseek-reasoner` keys resolve directly to matching V4.1 Flash modes. |
|
|
311
|
+
| Anthropic | Claude Opus/Sonnet/Haiku 5.5 or Fable 5.2 | Fable 5.2 defaults to high effort and carries a 30-day retention requirement. Saved Sonnet 4.5 presets route to Sonnet 5.5 on November 30, 2026. Saved Opus 4.5 presets route to Opus 5.5 with adaptive thinking on January 22, 2027. |
|
|
312
|
+
| xAI | Grok 4.7 is recommended. Grok 4.6, 4.5, 4.3, and pinned Grok 4.20 reasoning and non-reasoning variants remain selectable. | Saved Grok Build 0.1 and Grok Code Fast presets route to Grok 4.7 at high effort. Direct `XaiArchitect` construction still defaults to 4.6 pending evaluation. |
|
|
313
|
+
| Google | Gemini 4 Carbon, Hydrogen, Neon, and Argon. Hydrogen is available on the free Gemini API tier. | Starting December 1, 2026, saved Gemini 2.5 Pro and Flash presets route to 3.8 Flash and 3.5 Flash-Lite respectively. `GeminiArchitect()` defaults to 3.5 Flash-Lite with minimal thinking. |
|
|
314
|
+
| Codex | Runtime default or a model/effort discovered from app-server | GPT-6.2 Astra and Sol require Codex CLI 0.166.0 or later and appear when the runtime catalog offers them. |
|
|
315
|
+
| Claude Code | Runtime default, moving aliases, or pinned Fable 5.2 and Opus/Sonnet/Haiku 5.5 | The Fable 5.2 pin uses medium effort and requires Claude Code 2.1.321 or later. The lockfile bundles CLI 2.1.332 through Claude Agent SDK 0.2.189. |
|
|
316
316
|
|
|
317
317
|
See [`docs/provider-model-lifecycle.md`](docs/provider-model-lifecycle.md) for reasoning contracts, retirements, data-retention caveats, safe live-smoke commands, and rollback choices.
|
|
318
318
|
|
|
319
319
|
## 🧠 Reasoning & Advanced Configuration
|
|
320
320
|
|
|
321
|
-
- **Reasoning modes:** Anthropic presets use fixed-budget or adaptive thinking depending on the Claude family, Gemini presets use provider-native thinking controls, OpenAI presets map to reasoning effort or temperature based on model family, DeepSeek
|
|
321
|
+
- **Reasoning modes:** Anthropic presets use fixed-budget or adaptive thinking depending on the Claude family, Gemini presets use provider-native thinking controls, OpenAI presets map to reasoning effort or temperature based on model family, DeepSeek Flash presets explicitly select thinking/non-thinking plus low/high/max effort, and xAI presets keep their model-specific reasoning behavior (`src/agentrules/core/types/models.py`). Saved DeepSeek V4 Flash and Chat/Reasoner keys resolve to equivalent V4.1 Flash modes.
|
|
322
322
|
- **Runtime modes:** Codex presets route phases through `codex app-server`, with runtime-discovered model/effort variants available from the live model catalog. Claude Code presets route phases through the Claude Agent SDK while preserving Claude Code's runtime behavior.
|
|
323
323
|
- **Provider lifecycle:** [`docs/provider-model-lifecycle.md`](docs/provider-model-lifecycle.md) records model-specific retirement, thinking, refusal, and data-retention constraints that require operator attention.
|
|
324
324
|
- **Agent planning:** Phase 2 generates agent manifests that Phase 3 converts into live architects; when parsing fails the fallback extractor and default agents keep the pipeline running (`core/analysis/phase_2.py`, `core/analysis/phase_3.py`).
|
|
@@ -364,6 +364,7 @@ Toggle outputs with `agentrules configure --outputs` or via the config TOML.
|
|
|
364
364
|
- Deterministic smoke runs (CI/local without API calls): `agentrules analyze --offline tests/tests_input`
|
|
365
365
|
- Full suite: `pytest`
|
|
366
366
|
- Releases are Release Please-driven: merges to `main` update/open a release PR, and merging that PR creates the `vX.Y.Z` tag + GitHub release automatically.
|
|
367
|
+
- Release Please PRs regenerate and commit `uv.lock` automatically; pull requests that change project or lock metadata must pass `uv lock --check`.
|
|
367
368
|
- GitHub Actions publishes package artifacts with Trusted Publishing (OIDC) via `.github/workflows/publish-pypi.yml` (no long-lived PyPI API token).
|
|
368
369
|
- Run a safe preflight publish first from Actions with `workflow_dispatch` and `repository = testpypi`; publish to production PyPI on release-tag push or manual `repository = pypi`.
|
|
369
370
|
- Keep docs and presets in sync when adding providers (`config/agents.py`, `config/tools.py`, `core/agents/*`).
|
|
@@ -373,10 +374,12 @@ Toggle outputs with `agentrules configure --outputs` or via the config TOML.
|
|
|
373
374
|
1. Merge feature PRs into `main` using Conventional Commit-style titles/messages (for example `feat: ...`, `fix: ...`).
|
|
374
375
|
For an intentional one-release version override, include a `Release-As: X.Y.Z` footer in a commit merged to `main`; do not manually edit `pyproject.toml` or `.release-please-manifest.json`.
|
|
375
376
|
2. `.github/workflows/release-please.yml` updates or opens a release PR with the version bump and changelog.
|
|
376
|
-
3.
|
|
377
|
-
4.
|
|
378
|
-
5.
|
|
379
|
-
6.
|
|
377
|
+
3. The release workflow regenerates `uv.lock` on the release PR branch and commits it when project metadata changed.
|
|
378
|
+
4. Confirm the release PR passes the `Verify pyproject and uv.lock agree` check.
|
|
379
|
+
5. (Optional, recommended) run `.github/workflows/publish-pypi.yml` manually with `repository = testpypi` from the release PR head commit.
|
|
380
|
+
6. Merge the release PR. Release Please creates/pushes the matching `vX.Y.Z` tag and publishes a GitHub release.
|
|
381
|
+
7. The tag push triggers `.github/workflows/publish-pypi.yml` to publish to production PyPI.
|
|
382
|
+
8. One-time setup for new projects:
|
|
380
383
|
- Configure a repo secret `RELEASE_PLEASE_TOKEN` (PAT or GitHub App token) with permission to create/update PRs, tags, and releases. This ensures tag pushes from Release Please trigger downstream workflows.
|
|
381
384
|
- Configure Trusted Publishers on TestPyPI and PyPI for repository `trevor-nichols/agentrules-architect`, workflow `.github/workflows/publish-pypi.yml`, and environments `testpypi`/`pypi`.
|
|
382
385
|
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "agentrules"
|
|
7
|
-
version = "4.
|
|
7
|
+
version = "4.4.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"}]
|
|
@@ -18,10 +18,10 @@ classifiers = [
|
|
|
18
18
|
"Operating System :: OS Independent"
|
|
19
19
|
]
|
|
20
20
|
dependencies = [
|
|
21
|
-
"anthropic>=0.78.0",
|
|
21
|
+
"anthropic>=0.78.0,<2.0.0",
|
|
22
22
|
"rich",
|
|
23
23
|
"openai>=2.45.0",
|
|
24
|
-
"google-genai>=
|
|
24
|
+
"google-genai>=3.3.0",
|
|
25
25
|
"protobuf>=4.25",
|
|
26
26
|
"python-dotenv",
|
|
27
27
|
"tavily-python>=0.7.14",
|
|
@@ -32,8 +32,8 @@ dependencies = [
|
|
|
32
32
|
"PyYAML>=6.0",
|
|
33
33
|
"tomli; python_version < '3.11'",
|
|
34
34
|
"tomli-w",
|
|
35
|
-
"tiktoken>=0.
|
|
36
|
-
"claude-agent-sdk>=0.2.
|
|
35
|
+
"tiktoken>=0.14.0",
|
|
36
|
+
"claude-agent-sdk>=0.2.180",
|
|
37
37
|
]
|
|
38
38
|
|
|
39
39
|
[project.optional-dependencies]
|
|
@@ -12,8 +12,6 @@ from agentrules.core.configuration import (
|
|
|
12
12
|
)
|
|
13
13
|
from agentrules.core.configuration.services import claude_code as claude_code_service
|
|
14
14
|
|
|
15
|
-
_DIAGNOSTIC_GATED_MODELS = ("claude-fable-5", "claude-sonnet-5")
|
|
16
|
-
|
|
17
15
|
|
|
18
16
|
@dataclass(frozen=True)
|
|
19
17
|
class ClaudeCodeRuntimeDiagnostics:
|
|
@@ -69,7 +67,7 @@ def get_claude_code_runtime_diagnostics(
|
|
|
69
67
|
if runtime_config.cli_path is None:
|
|
70
68
|
runtime_error = "Claude Code executable could not be resolved from the SDK default runtime settings."
|
|
71
69
|
else:
|
|
72
|
-
runtime_error =
|
|
70
|
+
runtime_error = claude_code_service.configured_executable_resolution_error(runtime_config.cli_path)
|
|
73
71
|
else:
|
|
74
72
|
probe = manager.get_claude_code_runtime_version_probe(timeout_seconds=timeout_seconds)
|
|
75
73
|
if probe is None:
|
|
@@ -78,7 +76,7 @@ def get_claude_code_runtime_diagnostics(
|
|
|
78
76
|
version = str(probe.version) if probe.version is not None else None
|
|
79
77
|
version_error_code = probe.error_code
|
|
80
78
|
version_error = probe.error_message
|
|
81
|
-
unavailable_model_reasons = _unavailable_model_reasons(
|
|
79
|
+
unavailable_model_reasons = _unavailable_model_reasons(probe.version)
|
|
82
80
|
|
|
83
81
|
return ClaudeCodeRuntimeDiagnostics(
|
|
84
82
|
cli_path=runtime_config.cli_path,
|
|
@@ -104,14 +102,10 @@ def clear_claude_code_runtime_version_probe_cache() -> None:
|
|
|
104
102
|
|
|
105
103
|
|
|
106
104
|
def _unavailable_model_reasons(
|
|
107
|
-
manager: ConfigManager,
|
|
108
105
|
runtime_version: claude_code_service.ClaudeCodeVersion | None,
|
|
109
106
|
) -> tuple[str, ...]:
|
|
110
107
|
reasons: list[str] = []
|
|
111
|
-
for model_name in
|
|
112
|
-
minimum = manager.minimum_claude_code_version_for_model(model_name)
|
|
113
|
-
if minimum is None:
|
|
114
|
-
continue
|
|
108
|
+
for model_name, minimum in claude_code_service.CLAUDE_CODE_MINIMUM_MODEL_VERSIONS:
|
|
115
109
|
if runtime_version is None:
|
|
116
110
|
reasons.append(f"{model_name}: needs {minimum}+; runtime version is unverified")
|
|
117
111
|
elif runtime_version < minimum:
|
|
@@ -121,27 +121,21 @@ def render_preset_deprecation_warning(
|
|
|
121
121
|
if deprecation is None:
|
|
122
122
|
return
|
|
123
123
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
replacement_label = replacement.label
|
|
130
|
-
replacement_provider = replacement.provider_display
|
|
124
|
+
replacement_applied = effective_key is not None and effective_key != preset_key
|
|
125
|
+
replacement_key = (
|
|
126
|
+
effective_key if replacement_applied else deprecation.replacement_key or deprecation.retirement_replacement_key
|
|
127
|
+
)
|
|
128
|
+
replacement = model_presets.get_preset_info(replacement_key) if replacement_key else None
|
|
131
129
|
|
|
132
130
|
message = "[yellow]Selected preset is deprecated.[/]"
|
|
133
131
|
if deprecation.reason:
|
|
134
132
|
message = f"{message} {deprecation.reason}"
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
message = f"{message} Saved replacement {replacement_label} [{replacement_provider}]."
|
|
138
|
-
elif replacement_label and replacement_provider:
|
|
139
|
-
message = f"{message} Prefer {replacement_label} [{replacement_provider}] for new configurations."
|
|
140
|
-
elif replacement_label:
|
|
133
|
+
if replacement is not None:
|
|
134
|
+
label = f"{replacement.label} [{replacement.provider_display}]"
|
|
141
135
|
if replacement_applied:
|
|
142
|
-
message = f"{message} Saved replacement {
|
|
136
|
+
message = f"{message} Saved replacement {label}."
|
|
143
137
|
else:
|
|
144
|
-
message = f"{message} Prefer {
|
|
138
|
+
message = f"{message} Prefer {label} for new configurations."
|
|
145
139
|
|
|
146
140
|
printer(message)
|
|
147
141
|
|