titan-cli 0.4.6__tar.gz → 0.6.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.
- {titan_cli-0.4.6 → titan_cli-0.6.0}/PKG-INFO +1 -1
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-git/titan_plugin_git/clients/git_client.py +4 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-git/titan_plugin_git/clients/network/git_network.py +1 -1
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-git/titan_plugin_git/clients/services/remote_service.py +9 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/checklists/defaults.py +18 -1
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/clients/network/gh_network.py +18 -2
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/clients/services/pr_service.py +5 -3
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/clients/services/review_service.py +14 -1
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/exceptions.py +13 -1
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/managers/__init__.py +3 -1
- titan_cli-0.6.0/plugins/titan-plugin-github/titan_plugin_github/managers/checklist_manager.py +75 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/managers/diff_context_manager.py +111 -4
- titan_cli-0.6.0/plugins/titan-plugin-github/titan_plugin_github/managers/review_profile_manager.py +62 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/messages.py +3 -1
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/models/__init__.py +5 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/models/formatting.py +64 -5
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/models/mappers/pr_mapper.py +6 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/models/network/rest/pull_request.py +30 -5
- titan_cli-0.6.0/plugins/titan-plugin-github/titan_plugin_github/models/pr_enums.py +21 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/models/review_enums.py +41 -0
- titan_cli-0.6.0/plugins/titan-plugin-github/titan_plugin_github/models/review_models.py +356 -0
- titan_cli-0.6.0/plugins/titan-plugin-github/titan_plugin_github/models/review_profile_models.py +55 -0
- titan_cli-0.6.0/plugins/titan-plugin-github/titan_plugin_github/models/validators.py +109 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/models/view.py +6 -1
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/operations/__init__.py +9 -10
- titan_cli-0.6.0/plugins/titan-plugin-github/titan_plugin_github/operations/code_review_operations.py +263 -0
- titan_cli-0.6.0/plugins/titan-plugin-github/titan_plugin_github/operations/context_resolution_operations.py +340 -0
- titan_cli-0.6.0/plugins/titan-plugin-github/titan_plugin_github/operations/findings_operations.py +207 -0
- titan_cli-0.6.0/plugins/titan-plugin-github/titan_plugin_github/operations/manifest_operations.py +437 -0
- titan_cli-0.6.0/plugins/titan-plugin-github/titan_plugin_github/operations/plan_prompt_operations.py +197 -0
- titan_cli-0.6.0/plugins/titan-plugin-github/titan_plugin_github/operations/pr_selection_operations.py +59 -0
- titan_cli-0.6.0/plugins/titan-plugin-github/titan_plugin_github/operations/prompt_formatting_operations.py +24 -0
- titan_cli-0.6.0/plugins/titan-plugin-github/titan_plugin_github/operations/review_action_operations.py +279 -0
- titan_cli-0.6.0/plugins/titan-plugin-github/titan_plugin_github/operations/review_profile_operations.py +91 -0
- titan_cli-0.6.0/plugins/titan-plugin-github/titan_plugin_github/operations/review_strategy_operations.py +436 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/operations/worktree_operations.py +12 -8
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/plugin.py +10 -2
- titan_cli-0.6.0/plugins/titan-plugin-github/titan_plugin_github/review_profiles/__init__.py +5 -0
- titan_cli-0.6.0/plugins/titan-plugin-github/titan_plugin_github/review_profiles/defaults.py +223 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/steps/code_review_steps.py +1184 -172
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/steps/github_prompt_steps.py +83 -20
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/steps/pr_review_steps.py +4 -2
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/steps/worktree_steps.py +1 -2
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/widgets/comment_view.py +23 -2
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/workflows/__previews__/create_pr_ai_preview.py +9 -1
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/workflows/create-pr-ai.yaml +14 -1
- titan_cli-0.4.6/plugins/titan-plugin-github/titan_plugin_github/workflows/review-pr-new-findings.yaml.disabled → titan_cli-0.6.0/plugins/titan-plugin-github/titan_plugin_github/workflows/review-pr.yaml +20 -2
- {titan_cli-0.4.6 → titan_cli-0.6.0}/pyproject.toml +1 -1
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/engine/mock_context.py +6 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/ui/tui/screens/workflow_execution.py +2 -0
- titan_cli-0.4.6/plugins/titan-plugin-github/titan_plugin_github/managers/checklist_manager.py +0 -23
- titan_cli-0.4.6/plugins/titan-plugin-github/titan_plugin_github/models/review_models.py +0 -306
- titan_cli-0.4.6/plugins/titan-plugin-github/titan_plugin_github/models/validators.py +0 -172
- titan_cli-0.4.6/plugins/titan-plugin-github/titan_plugin_github/operations/code_review_operations.py +0 -607
- titan_cli-0.4.6/plugins/titan-plugin-github/titan_plugin_github/operations/context_resolution_operations.py +0 -300
- titan_cli-0.4.6/plugins/titan-plugin-github/titan_plugin_github/operations/findings_operations.py +0 -280
- titan_cli-0.4.6/plugins/titan-plugin-github/titan_plugin_github/operations/manifest_operations.py +0 -191
- titan_cli-0.4.6/plugins/titan-plugin-github/titan_plugin_github/operations/plan_prompt_operations.py +0 -234
- titan_cli-0.4.6/plugins/titan-plugin-github/titan_plugin_github/operations/review_action_operations.py +0 -145
- {titan_cli-0.4.6 → titan_cli-0.6.0}/LICENSE +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/README.md +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-git/titan_plugin_git/__init__.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-git/titan_plugin_git/clients/__init__.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-git/titan_plugin_git/clients/network/__init__.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-git/titan_plugin_git/clients/services/__init__.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-git/titan_plugin_git/clients/services/branch_service.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-git/titan_plugin_git/clients/services/commit_service.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-git/titan_plugin_git/clients/services/diff_service.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-git/titan_plugin_git/clients/services/stash_service.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-git/titan_plugin_git/clients/services/status_service.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-git/titan_plugin_git/clients/services/tag_service.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-git/titan_plugin_git/clients/services/worktree_service.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-git/titan_plugin_git/exceptions.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-git/titan_plugin_git/messages.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-git/titan_plugin_git/models/__init__.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-git/titan_plugin_git/models/mappers/__init__.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-git/titan_plugin_git/models/mappers/branch_mapper.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-git/titan_plugin_git/models/mappers/commit_mapper.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-git/titan_plugin_git/models/mappers/status_mapper.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-git/titan_plugin_git/models/mappers/tag_mapper.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-git/titan_plugin_git/models/mappers/worktree_mapper.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-git/titan_plugin_git/models/network/__init__.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-git/titan_plugin_git/models/network/branch.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-git/titan_plugin_git/models/network/commit.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-git/titan_plugin_git/models/network/status.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-git/titan_plugin_git/models/network/tag.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-git/titan_plugin_git/models/network/worktree.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-git/titan_plugin_git/models/view/__init__.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-git/titan_plugin_git/models/view/branch.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-git/titan_plugin_git/models/view/commit.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-git/titan_plugin_git/models/view/status.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-git/titan_plugin_git/models/view/tag.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-git/titan_plugin_git/models/view/worktree.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-git/titan_plugin_git/operations/__init__.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-git/titan_plugin_git/operations/branch_operations.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-git/titan_plugin_git/operations/commit_operations.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-git/titan_plugin_git/operations/diff_operations.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-git/titan_plugin_git/plugin.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-git/titan_plugin_git/steps/__init__.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-git/titan_plugin_git/steps/ai_commit_message_step.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-git/titan_plugin_git/steps/branch_steps.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-git/titan_plugin_git/steps/checkout_step.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-git/titan_plugin_git/steps/commit_step.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-git/titan_plugin_git/steps/create_branch_step.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-git/titan_plugin_git/steps/create_worktree_step.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-git/titan_plugin_git/steps/diff_summary_step.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-git/titan_plugin_git/steps/pull_step.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-git/titan_plugin_git/steps/push_step.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-git/titan_plugin_git/steps/remove_worktree_step.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-git/titan_plugin_git/steps/restore_original_branch_step.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-git/titan_plugin_git/steps/save_current_branch_step.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-git/titan_plugin_git/steps/status_step.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-git/titan_plugin_git/steps/worktree_command_step.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-git/titan_plugin_git/workflows/__previews__/__init__.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-git/titan_plugin_git/workflows/__previews__/commit_ai_preview.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-git/titan_plugin_git/workflows/commit-ai.yaml +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/__init__.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/agents/__init__.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/agents/code_review_agent.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/agents/config_loader.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/agents/issue_generator.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/agents/pr_agent.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/checklists/__init__.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/clients/__init__.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/clients/github_client.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/clients/network/__init__.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/clients/network/graphql_network.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/clients/network/graphql_queries.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/clients/protocols.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/clients/services/__init__.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/clients/services/issue_service.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/clients/services/release_service.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/clients/services/team_service.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/config/__init__.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/config/pr_agent.toml +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/models/diff_models.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/models/mappers/__init__.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/models/mappers/comment_mapper.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/models/mappers/issue_mapper.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/models/mappers/release_mapper.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/models/mappers/review_mapper.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/models/mappers/thread_mapper.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/models/network/__init__.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/models/network/graphql/__init__.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/models/network/graphql/issue_comment.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/models/network/graphql/review_comment.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/models/network/graphql/review_thread.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/models/network/graphql/user.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/models/network/rest/__init__.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/models/network/rest/issue.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/models/network/rest/release.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/models/network/rest/review.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/models/network/rest/user.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/operations/comment_operations.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/operations/issue_operations.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/operations/pr_creation_operations.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/operations/pr_operations.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/operations/thread_resolution_operations.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/steps/__init__.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/steps/ai_pr_step.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/steps/create_pr_step.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/steps/issue_steps.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/steps/preview_step.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/steps/pull_request_steps.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/steps/select_cli_step.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/utils.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/widgets/__init__.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/widgets/code_block.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/widgets/comment_thread.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/widgets/comment_utils.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/widgets/reply_comment.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/workflows/__previews__/__init__.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/workflows/create-issue-ai.yaml +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/workflows/respond-pr-comments.yaml +0 -0
- /titan_cli-0.4.6/plugins/titan-plugin-github/titan_plugin_github/workflows/review-pr-thread-resolution.yaml.disabled → /titan_cli-0.6.0/plugins/titan-plugin-github/titan_plugin_github/workflows/review-pr-thread-resolution.yaml +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/__init__.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/agents/__init__.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/agents/config_loader.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/agents/jira_agent.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/agents/prompts.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/agents/response_parser.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/agents/token_tracker.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/agents/validators.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/clients/__init__.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/clients/jira_client.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/clients/network/__init__.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/clients/network/jira_network.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/clients/services/__init__.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/clients/services/comment_service.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/clients/services/issue_service.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/clients/services/link_service.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/clients/services/metadata_service.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/clients/services/project_service.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/clients/services/transition_service.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/config/jira_agent.toml +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/config/templates/generic_issue.md.j2 +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/config/templates/issue_analysis.md.j2 +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/constants/__init__.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/constants/defaults.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/constants/messages.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/constants/templates.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/constants.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/exceptions.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/formatters/__init__.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/formatters/markdown_formatter.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/messages.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/models/__init__.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/models/enums.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/models/formatting.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/models/mappers/__init__.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/models/mappers/comment_mapper.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/models/mappers/issue_mapper.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/models/mappers/issue_type_mapper.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/models/mappers/priority_mapper.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/models/mappers/project_mapper.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/models/mappers/status_mapper.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/models/mappers/transition_mapper.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/models/mappers/user_mapper.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/models/mappers/version_mapper.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/models/network/rest/__init__.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/models/network/rest/comment.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/models/network/rest/issue.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/models/network/rest/issue_type.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/models/network/rest/priority.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/models/network/rest/project.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/models/network/rest/status.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/models/network/rest/transition.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/models/network/rest/user.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/models/network/rest/version.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/models/view.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/operations/__init__.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/operations/issue_formatting_operations.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/operations/issue_management_operations.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/operations/issue_operations.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/operations/jql_operations.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/plugin.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/steps/ai_analyze_issue_step.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/steps/ai_enhance_issue_description_step.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/steps/confirm_auto_assign_step.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/steps/create_generic_issue_step.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/steps/get_issue_step.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/steps/issue_management_steps.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/steps/list_versions_step.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/steps/prompt_issue_description_step.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/steps/prompt_select_issue_step.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/steps/review_issue_description_step.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/steps/search_jql_step.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/steps/search_saved_query_step.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/steps/select_issue_priority_step.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/steps/select_issue_type_step.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/utils/__init__.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/utils/input_validation.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/utils/issue_sorter.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/utils/saved_queries.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/utils.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/workflows/analyze-jira-issues.yaml +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-jira/titan_plugin_jira/workflows/create-generic-issue.yaml +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/__init__.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/__main__.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/ai/__init__.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/ai/agents/__init__.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/ai/agents/base.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/ai/client.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/ai/constants.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/ai/dependencies.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/ai/exceptions.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/ai/litellm_client.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/ai/llm_tools.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/ai/models.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/ai/oauth_helper.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/ai/providers/__init__.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/ai/providers/anthropic.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/ai/providers/base.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/ai/providers/gemini.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/ai/providers/litellm.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/ai/providers/openai.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/cli.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/clients/__init__.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/clients/gcloud_client.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/core/__init__.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/core/config.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/core/discovery.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/core/errors.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/core/logging/__init__.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/core/logging/config.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/core/logging/decorators.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/core/migrations/__init__.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/core/migrations/base.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/core/migrations/legacy_to_v1.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/core/migrations/manager.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/core/models/__init__.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/core/models/code_review.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/core/plugins/available.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/core/plugins/community_sources.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/core/plugins/local_sources.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/core/plugins/models.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/core/plugins/plugin_base.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/core/plugins/plugin_registry.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/core/plugins/runtime.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/core/result.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/core/secrets.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/core/utils.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/core/validators/__init__.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/core/workflows/__init__.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/core/workflows/models.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/core/workflows/project_step_source.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/core/workflows/workflow_exceptions.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/core/workflows/workflow_filter_service.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/core/workflows/workflow_registry.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/core/workflows/workflow_sources.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/engine/__init__.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/engine/builder.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/engine/context.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/engine/results.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/engine/steps/ai_assistant_step.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/engine/steps/command_step.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/engine/utils/__init__.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/engine/utils/venv.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/engine/workflow_executor.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/external_cli/__init__.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/external_cli/adapters/__init__.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/external_cli/adapters/base.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/external_cli/adapters/claude.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/external_cli/adapters/codex.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/external_cli/adapters/gemini.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/external_cli/adapters/registry.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/external_cli/configs.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/external_cli/launcher.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/messages.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/ui/tui/__init__.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/ui/tui/__previews__/statusbar_preview.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/ui/tui/app.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/ui/tui/colors.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/ui/tui/icons.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/ui/tui/screens/__init__.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/ui/tui/screens/ai_config.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/ui/tui/screens/ai_config_wizard.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/ui/tui/screens/base.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/ui/tui/screens/cli_launcher.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/ui/tui/screens/global_setup_wizard.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/ui/tui/screens/install_plugin_screen.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/ui/tui/screens/main_menu.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/ui/tui/screens/plugin_config_wizard.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/ui/tui/screens/plugin_management.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/ui/tui/screens/project_setup_wizard.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/ui/tui/screens/workflows.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/ui/tui/textual_components.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/ui/tui/textual_workflow_executor.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/ui/tui/theme.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/ui/tui/widgets/__init__.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/ui/tui/widgets/button.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/ui/tui/widgets/decision_badge.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/ui/tui/widgets/dev_source_path_modal.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/ui/tui/widgets/header.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/ui/tui/widgets/multiline_input.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/ui/tui/widgets/panel.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/ui/tui/widgets/panel_container.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/ui/tui/widgets/prompt_choice.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/ui/tui/widgets/prompt_input.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/ui/tui/widgets/prompt_option_list.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/ui/tui/widgets/prompt_selection_list.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/ui/tui/widgets/prompt_textarea.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/ui/tui/widgets/segmented_switch.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/ui/tui/widgets/status_bar.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/ui/tui/widgets/step_container.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/ui/tui/widgets/styled_option_list.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/ui/tui/widgets/table.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/ui/tui/widgets/text.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/ui/tui/widgets/wizard.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/utils/__init__.py +0 -0
- {titan_cli-0.4.6 → titan_cli-0.6.0}/titan_cli/utils/autoupdate.py +0 -0
{titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-git/titan_plugin_git/clients/git_client.py
RENAMED
|
@@ -378,6 +378,10 @@ class GitClient:
|
|
|
378
378
|
"""Fetch from remote."""
|
|
379
379
|
return self.remote_service.fetch(remote, branch, all)
|
|
380
380
|
|
|
381
|
+
def fetch_refspec(self, remote: str, refspec: str) -> ClientResult[None]:
|
|
382
|
+
"""Fetch an explicit refspec from remote."""
|
|
383
|
+
return self.remote_service.fetch_refspec(remote, refspec)
|
|
384
|
+
|
|
381
385
|
def get_github_repo_info(self) -> ClientResult[Tuple[Optional[str], Optional[str]]]:
|
|
382
386
|
"""Extract GitHub repository owner and name from origin."""
|
|
383
387
|
return self.remote_service.get_github_repo_info()
|
|
@@ -119,7 +119,7 @@ class GitNetwork:
|
|
|
119
119
|
subcommand=subcommand,
|
|
120
120
|
duration=round(time.time() - start, 3),
|
|
121
121
|
)
|
|
122
|
-
return result.stdout.
|
|
122
|
+
return result.stdout.rstrip()
|
|
123
123
|
except subprocess.CalledProcessError as e:
|
|
124
124
|
self._logger.debug(
|
|
125
125
|
"git_command_failed",
|
|
@@ -149,6 +149,15 @@ class RemoteService:
|
|
|
149
149
|
except GitCommandError as e:
|
|
150
150
|
return ClientError(error_message=str(e), error_code="FETCH_ERROR")
|
|
151
151
|
|
|
152
|
+
@log_client_operation()
|
|
153
|
+
def fetch_refspec(self, remote: str, refspec: str) -> ClientResult[None]:
|
|
154
|
+
"""Fetch an explicit refspec from a remote."""
|
|
155
|
+
try:
|
|
156
|
+
self.git.run_command(["git", "fetch", remote, refspec])
|
|
157
|
+
return ClientSuccess(data=None, message="Refspec fetch completed")
|
|
158
|
+
except GitCommandError as e:
|
|
159
|
+
return ClientError(error_message=str(e), error_code="FETCH_ERROR")
|
|
160
|
+
|
|
152
161
|
@log_client_operation()
|
|
153
162
|
def get_github_repo_info(self) -> ClientResult[Tuple[Optional[str], Optional[str]]]:
|
|
154
163
|
"""
|
|
@@ -24,6 +24,24 @@ DEFAULT_REVIEW_CHECKLIST: list[ReviewChecklistItem] = [
|
|
|
24
24
|
),
|
|
25
25
|
relevant_file_patterns=[],
|
|
26
26
|
),
|
|
27
|
+
ReviewChecklistItem(
|
|
28
|
+
id=ChecklistCategory.SEMANTIC_CORRECTNESS,
|
|
29
|
+
name="Semantic Correctness",
|
|
30
|
+
description=(
|
|
31
|
+
"Changes that preserve execution but alter the meaning, classification, "
|
|
32
|
+
"labeling, or interpretation of data, events, or outputs."
|
|
33
|
+
),
|
|
34
|
+
relevant_file_patterns=[],
|
|
35
|
+
),
|
|
36
|
+
ReviewChecklistItem(
|
|
37
|
+
id=ChecklistCategory.STATE_CONSISTENCY,
|
|
38
|
+
name="State Consistency",
|
|
39
|
+
description=(
|
|
40
|
+
"Changes that report success, failure, completion, or state inconsistently "
|
|
41
|
+
"with what actually happened."
|
|
42
|
+
),
|
|
43
|
+
relevant_file_patterns=[],
|
|
44
|
+
),
|
|
27
45
|
ReviewChecklistItem(
|
|
28
46
|
id=ChecklistCategory.TEST_COVERAGE,
|
|
29
47
|
name="Test Coverage",
|
|
@@ -97,4 +115,3 @@ DEFAULT_REVIEW_CHECKLIST: list[ReviewChecklistItem] = [
|
|
|
97
115
|
relevant_file_patterns=[],
|
|
98
116
|
),
|
|
99
117
|
]
|
|
100
|
-
|
|
@@ -99,15 +99,31 @@ class GHNetwork:
|
|
|
99
99
|
)
|
|
100
100
|
return result.stdout.strip()
|
|
101
101
|
except subprocess.CalledProcessError as e:
|
|
102
|
+
stderr = e.stderr.strip() if e.stderr else ""
|
|
103
|
+
stdout = e.stdout.strip() if e.stdout else ""
|
|
102
104
|
self._logger.error(
|
|
103
105
|
"gh_command_failed",
|
|
104
106
|
subcommand=subcommand,
|
|
105
107
|
action=action,
|
|
106
108
|
duration=round(time.time() - start, 3),
|
|
107
109
|
exit_code=e.returncode,
|
|
110
|
+
stderr_preview=stderr[:500],
|
|
111
|
+
stdout_preview=stdout[:500],
|
|
108
112
|
)
|
|
109
|
-
|
|
110
|
-
|
|
113
|
+
error_parts = []
|
|
114
|
+
if stderr:
|
|
115
|
+
error_parts.append(stderr)
|
|
116
|
+
if stdout:
|
|
117
|
+
error_parts.append(stdout)
|
|
118
|
+
if not error_parts:
|
|
119
|
+
error_parts.append(str(e))
|
|
120
|
+
error_msg = " | ".join(error_parts)
|
|
121
|
+
raise GitHubAPIError(
|
|
122
|
+
msg.GitHub.API_ERROR.format(error_msg=error_msg),
|
|
123
|
+
stderr=stderr or None,
|
|
124
|
+
stdout=stdout or None,
|
|
125
|
+
exit_code=e.returncode,
|
|
126
|
+
) from e
|
|
111
127
|
except FileNotFoundError:
|
|
112
128
|
raise GitHubError(msg.GitHub.CLI_NOT_FOUND)
|
|
113
129
|
except Exception as e:
|
|
@@ -55,6 +55,8 @@ class PRService:
|
|
|
55
55
|
"baseRefName", "headRefName", "additions", "deletions",
|
|
56
56
|
"changedFiles", "mergeable", "isDraft", "createdAt",
|
|
57
57
|
"updatedAt", "mergedAt", "reviews", "labels",
|
|
58
|
+
"statusCheckRollup", "reviewDecision",
|
|
59
|
+
"isCrossRepository", "headRepositoryOwner",
|
|
58
60
|
]
|
|
59
61
|
|
|
60
62
|
# Fetch from network
|
|
@@ -113,7 +115,7 @@ class PRService:
|
|
|
113
115
|
"--search", f"review-requested:{current_user}",
|
|
114
116
|
"--state", "open",
|
|
115
117
|
"--limit", str(max_results),
|
|
116
|
-
"--json", "number,title,author,updatedAt,labels,isDraft,reviewRequests",
|
|
118
|
+
"--json", "number,title,author,updatedAt,labels,isDraft,reviewRequests,statusCheckRollup,reviewDecision",
|
|
117
119
|
] + self.gh.get_repo_arg()
|
|
118
120
|
|
|
119
121
|
output = self.gh.run_command(args)
|
|
@@ -170,7 +172,7 @@ class PRService:
|
|
|
170
172
|
"pr", "list",
|
|
171
173
|
"--state", state,
|
|
172
174
|
"--limit", str(max_results),
|
|
173
|
-
"--json", "number,title,author,updatedAt,labels,isDraft,state,headRefName,baseRefName",
|
|
175
|
+
"--json", "number,title,author,updatedAt,labels,isDraft,state,headRefName,baseRefName,statusCheckRollup,reviewDecision",
|
|
174
176
|
] + self.gh.get_repo_arg()
|
|
175
177
|
|
|
176
178
|
output = self.gh.run_command(args)
|
|
@@ -219,7 +221,7 @@ class PRService:
|
|
|
219
221
|
"pr", "list",
|
|
220
222
|
"--state", state,
|
|
221
223
|
"--limit", str(max_results),
|
|
222
|
-
"--json", "number,title,author,updatedAt,labels,isDraft,state,reviewRequests,headRefName,baseRefName",
|
|
224
|
+
"--json", "number,title,author,updatedAt,labels,isDraft,state,reviewRequests,headRefName,baseRefName,statusCheckRollup,reviewDecision",
|
|
223
225
|
] + self.gh.get_repo_arg()
|
|
224
226
|
|
|
225
227
|
output = self.gh.run_command(args)
|
|
@@ -16,6 +16,7 @@ from ...models.network.graphql import GraphQLPullRequestReviewThread, GraphQLIss
|
|
|
16
16
|
from ...models.view import UICommentThread, UIReview
|
|
17
17
|
from ...models.mappers import from_graphql_review_thread, from_network_review
|
|
18
18
|
from ...exceptions import GitHubAPIError
|
|
19
|
+
from ...messages import msg
|
|
19
20
|
|
|
20
21
|
|
|
21
22
|
class ReviewService:
|
|
@@ -270,7 +271,13 @@ class ReviewService:
|
|
|
270
271
|
error_code="PARSE_ERROR"
|
|
271
272
|
)
|
|
272
273
|
except GitHubAPIError as e:
|
|
273
|
-
|
|
274
|
+
details = []
|
|
275
|
+
if getattr(e, "stderr", None):
|
|
276
|
+
details.append(f"stderr={e.stderr}")
|
|
277
|
+
if getattr(e, "stdout", None):
|
|
278
|
+
details.append(f"stdout={e.stdout}")
|
|
279
|
+
suffix = f" ({'; '.join(details)})" if details else ""
|
|
280
|
+
return ClientError(error_message=f"{e}{suffix}", error_code="API_ERROR")
|
|
274
281
|
|
|
275
282
|
@log_client_operation()
|
|
276
283
|
def submit_review(
|
|
@@ -325,6 +332,12 @@ class ReviewService:
|
|
|
325
332
|
return ClientSuccess(data=None, message=f"Review #{review_id} submitted")
|
|
326
333
|
|
|
327
334
|
except GitHubAPIError as e:
|
|
335
|
+
if "User can only have one pending review per pull request" in str(e):
|
|
336
|
+
return ClientError(
|
|
337
|
+
error_message=msg.GitHub.REVIEW_PENDING_EXISTS,
|
|
338
|
+
error_code="PENDING_REVIEW_EXISTS",
|
|
339
|
+
log_level="warning",
|
|
340
|
+
)
|
|
328
341
|
return ClientError(
|
|
329
342
|
error_message=f"Failed to submit review: {e}",
|
|
330
343
|
error_code="API_ERROR"
|
{titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/exceptions.py
RENAMED
|
@@ -9,7 +9,19 @@ class GitHubAuthenticationError(GitHubError):
|
|
|
9
9
|
|
|
10
10
|
class GitHubAPIError(GitHubError):
|
|
11
11
|
"""Raised when a GitHub API call or gh CLI command fails."""
|
|
12
|
-
|
|
12
|
+
|
|
13
|
+
def __init__(
|
|
14
|
+
self,
|
|
15
|
+
message: str,
|
|
16
|
+
*,
|
|
17
|
+
stderr: str | None = None,
|
|
18
|
+
stdout: str | None = None,
|
|
19
|
+
exit_code: int | None = None,
|
|
20
|
+
) -> None:
|
|
21
|
+
super().__init__(message)
|
|
22
|
+
self.stderr = stderr
|
|
23
|
+
self.stdout = stdout
|
|
24
|
+
self.exit_code = exit_code
|
|
13
25
|
|
|
14
26
|
class PRNotFoundError(GitHubAPIError):
|
|
15
27
|
"""Raised when a specified Pull Request is not found."""
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
from dataclasses import dataclass
|
|
4
4
|
|
|
5
5
|
from .checklist_manager import ChecklistManager
|
|
6
|
+
from .review_profile_manager import ReviewProfileManager
|
|
6
7
|
|
|
7
8
|
|
|
8
9
|
@dataclass
|
|
@@ -10,6 +11,7 @@ class GitHubManagers:
|
|
|
10
11
|
"""Container for GitHub plugin managers used during workflow execution."""
|
|
11
12
|
|
|
12
13
|
checklist: ChecklistManager
|
|
14
|
+
review_profile: ReviewProfileManager
|
|
13
15
|
|
|
14
16
|
|
|
15
|
-
__all__ = ["ChecklistManager", "GitHubManagers"]
|
|
17
|
+
__all__ = ["ChecklistManager", "GitHubManagers", "ReviewProfileManager"]
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"""Checklist manager for GitHub review workflows."""
|
|
2
|
+
|
|
3
|
+
from pathlib import Path
|
|
4
|
+
|
|
5
|
+
import yaml
|
|
6
|
+
from pydantic import ValidationError
|
|
7
|
+
from titan_cli.core.logging import get_logger
|
|
8
|
+
|
|
9
|
+
from ..checklists.defaults import DEFAULT_REVIEW_CHECKLIST
|
|
10
|
+
from ..models.review_models import ReviewChecklistItem
|
|
11
|
+
from ..models.review_profile_models import ReviewChecklistFile
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
logger = get_logger(__name__)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class ChecklistManager:
|
|
18
|
+
"""Resolve the effective review checklist for the current project."""
|
|
19
|
+
|
|
20
|
+
def __init__(self, project_root: Path | None = None):
|
|
21
|
+
self.project_root = project_root
|
|
22
|
+
|
|
23
|
+
def get_effective_checklist(self) -> list[ReviewChecklistItem]:
|
|
24
|
+
"""
|
|
25
|
+
Return the review checklist to use for the current project.
|
|
26
|
+
|
|
27
|
+
The manager currently serves the built-in default checklist. It owns
|
|
28
|
+
future project-specific resolution so the workflow step does not need
|
|
29
|
+
to know where the checklist comes from.
|
|
30
|
+
"""
|
|
31
|
+
config_path = self._checklist_path()
|
|
32
|
+
if not config_path or not config_path.exists():
|
|
33
|
+
checklist = [item.model_copy(deep=True) for item in DEFAULT_REVIEW_CHECKLIST]
|
|
34
|
+
logger.debug(
|
|
35
|
+
"review_checklist_resolved",
|
|
36
|
+
source="default",
|
|
37
|
+
path=str(config_path) if config_path else None,
|
|
38
|
+
items_count=len(checklist),
|
|
39
|
+
item_ids=[str(item.id) for item in checklist],
|
|
40
|
+
)
|
|
41
|
+
return checklist
|
|
42
|
+
|
|
43
|
+
try:
|
|
44
|
+
with config_path.open("r", encoding="utf-8") as handle:
|
|
45
|
+
data = yaml.safe_load(handle) or {}
|
|
46
|
+
except yaml.YAMLError as exc:
|
|
47
|
+
raise ValueError(f"Invalid review checklist YAML at {config_path}: {exc}") from exc
|
|
48
|
+
|
|
49
|
+
try:
|
|
50
|
+
checklist_file = ReviewChecklistFile.model_validate(data)
|
|
51
|
+
except ValidationError as exc:
|
|
52
|
+
raise ValueError(f"Invalid review checklist configuration at {config_path}: {exc}") from exc
|
|
53
|
+
|
|
54
|
+
checklist = [
|
|
55
|
+
ReviewChecklistItem(
|
|
56
|
+
id=item.id,
|
|
57
|
+
name=item.name,
|
|
58
|
+
description=item.description,
|
|
59
|
+
relevant_file_patterns=list(item.relevant_file_patterns),
|
|
60
|
+
)
|
|
61
|
+
for item in checklist_file.items
|
|
62
|
+
]
|
|
63
|
+
logger.debug(
|
|
64
|
+
"review_checklist_resolved",
|
|
65
|
+
source="project",
|
|
66
|
+
path=str(config_path),
|
|
67
|
+
items_count=len(checklist),
|
|
68
|
+
item_ids=[str(item.id) for item in checklist],
|
|
69
|
+
)
|
|
70
|
+
return checklist
|
|
71
|
+
|
|
72
|
+
def _checklist_path(self) -> Path | None:
|
|
73
|
+
if not self.project_root:
|
|
74
|
+
return None
|
|
75
|
+
return self.project_root / ".titan" / "review" / "checklist.yaml"
|
|
@@ -29,6 +29,7 @@ logger = get_logger(__name__)
|
|
|
29
29
|
|
|
30
30
|
_HUNK_HEADER_RE = re.compile(r"@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@(.*)")
|
|
31
31
|
_FILE_HEADER_RE = re.compile(r"^diff --git a/.+ b/(.+)$")
|
|
32
|
+
_COMMENT_PREFIXES = ("//", "#", "/*", "*/", "*")
|
|
32
33
|
|
|
33
34
|
|
|
34
35
|
class DiffContextManager:
|
|
@@ -101,11 +102,53 @@ class DiffContextManager:
|
|
|
101
102
|
logger.debug(f"get_hunks: path={path}, count={len(hunks)}")
|
|
102
103
|
return hunks
|
|
103
104
|
|
|
104
|
-
def
|
|
105
|
+
def get_hunk_texts(self, path: str) -> list[str]:
|
|
106
|
+
"""Return raw hunk text blocks for ``path``."""
|
|
107
|
+
return [hunk.content for hunk in self.get_hunks(path)]
|
|
108
|
+
|
|
109
|
+
def build_expanded_hunks(
|
|
110
|
+
self,
|
|
111
|
+
path: str,
|
|
112
|
+
file_content: str,
|
|
113
|
+
extra_lines: int = 10,
|
|
114
|
+
) -> list[str]:
|
|
115
|
+
"""
|
|
116
|
+
Return diff hunks enriched with surrounding file context.
|
|
117
|
+
|
|
118
|
+
Uses already-parsed hunk coordinates instead of reparsing @@ headers.
|
|
119
|
+
"""
|
|
120
|
+
hunks = self.get_hunks(path)
|
|
121
|
+
if not hunks:
|
|
122
|
+
return []
|
|
123
|
+
|
|
124
|
+
file_lines = file_content.split("\n")
|
|
125
|
+
expanded: list[str] = []
|
|
126
|
+
|
|
127
|
+
for hunk in hunks:
|
|
128
|
+
expand_start = max(0, hunk.new_line_start - extra_lines - 1)
|
|
129
|
+
expand_end = min(len(file_lines), hunk.new_line_end + extra_lines)
|
|
130
|
+
surrounding = "\n".join(file_lines[expand_start:expand_end])
|
|
131
|
+
expanded.append(
|
|
132
|
+
f"{hunk.header}\n"
|
|
133
|
+
f"# --- surrounding context (lines {expand_start + 1}-{expand_end}) ---\n"
|
|
134
|
+
f"{surrounding}\n"
|
|
135
|
+
f"# --- diff hunk ---\n"
|
|
136
|
+
+ "\n".join(hunk.content.split("\n")[1:])
|
|
137
|
+
)
|
|
138
|
+
|
|
139
|
+
logger.debug(
|
|
140
|
+
"build_expanded_hunks: path=%s, count=%s, extra_lines=%s",
|
|
141
|
+
path,
|
|
142
|
+
len(expanded),
|
|
143
|
+
extra_lines,
|
|
144
|
+
)
|
|
145
|
+
return expanded
|
|
146
|
+
|
|
147
|
+
def get_hunk_for_line(self, path: str, line: int, allow_fallback: bool = True) -> Optional[ParsedHunk]:
|
|
105
148
|
"""
|
|
106
149
|
Return the hunk containing new-file ``line`` for ``path``.
|
|
107
150
|
|
|
108
|
-
Falls back to the first hunk when
|
|
151
|
+
Falls back to the first hunk only when ``allow_fallback`` is True.
|
|
109
152
|
"""
|
|
110
153
|
hunks = self.get_hunks(path)
|
|
111
154
|
if not hunks:
|
|
@@ -115,8 +158,11 @@ class DiffContextManager:
|
|
|
115
158
|
if hunk.contains_new_line(line):
|
|
116
159
|
logger.debug(f"get_hunk_for_line: path={path}, line={line} → exact match ({hunk.new_line_start}-{hunk.new_line_end})")
|
|
117
160
|
return hunk
|
|
118
|
-
|
|
119
|
-
|
|
161
|
+
if allow_fallback:
|
|
162
|
+
logger.debug(f"get_hunk_for_line: path={path}, line={line} → fallback to first hunk ({hunks[0].new_line_start}-{hunks[0].new_line_end})")
|
|
163
|
+
return hunks[0]
|
|
164
|
+
logger.debug(f"get_hunk_for_line: path={path}, line={line} → no exact match")
|
|
165
|
+
return None
|
|
120
166
|
|
|
121
167
|
def get_hunk_for_old_line(self, path: str, line: int) -> Optional[ParsedHunk]:
|
|
122
168
|
"""
|
|
@@ -194,6 +240,32 @@ class DiffContextManager:
|
|
|
194
240
|
logger.debug(f"find_line_by_snippet: path={path} → not found")
|
|
195
241
|
return None
|
|
196
242
|
|
|
243
|
+
def resolve_line_anchor(
|
|
244
|
+
self,
|
|
245
|
+
path: str,
|
|
246
|
+
line: Optional[int] = None,
|
|
247
|
+
snippet: Optional[str] = None,
|
|
248
|
+
evidence: Optional[str] = None,
|
|
249
|
+
) -> Optional[int]:
|
|
250
|
+
"""Resolve the best inline comment line using snippet/evidence before trusting AI line."""
|
|
251
|
+
search_candidates = [snippet, _extract_best_anchor_from_text(evidence)]
|
|
252
|
+
for candidate in search_candidates:
|
|
253
|
+
resolved = self.find_line_by_snippet(path, candidate or "")
|
|
254
|
+
if resolved is not None:
|
|
255
|
+
logger.debug(
|
|
256
|
+
"resolve_line_anchor: path=%s resolved via snippet/evidence to line=%s",
|
|
257
|
+
path,
|
|
258
|
+
resolved,
|
|
259
|
+
)
|
|
260
|
+
return resolved
|
|
261
|
+
|
|
262
|
+
if line is not None and line in self.get_valid_review_lines(path):
|
|
263
|
+
logger.debug("resolve_line_anchor: path=%s using validated line=%s", path, line)
|
|
264
|
+
return line
|
|
265
|
+
|
|
266
|
+
logger.debug("resolve_line_anchor: path=%s could not resolve line", path)
|
|
267
|
+
return None
|
|
268
|
+
|
|
197
269
|
# ------------------------------------------------------------------
|
|
198
270
|
# Context extraction for UI
|
|
199
271
|
# ------------------------------------------------------------------
|
|
@@ -569,4 +641,39 @@ def build_focused_diff_from_hunk(
|
|
|
569
641
|
return _build_focused_diff_from_hunk(hunk_content, target_line, is_outdated, before, after)
|
|
570
642
|
|
|
571
643
|
|
|
644
|
+
def _extract_best_anchor_from_text(text: Optional[str]) -> Optional[str]:
|
|
645
|
+
"""Extract a short single-line anchor from evidence text."""
|
|
646
|
+
if not text:
|
|
647
|
+
return None
|
|
648
|
+
|
|
649
|
+
for raw_line in text.splitlines():
|
|
650
|
+
line = raw_line.strip()
|
|
651
|
+
if not line or line.startswith("```") or line.startswith(_COMMENT_PREFIXES):
|
|
652
|
+
continue
|
|
653
|
+
if line.startswith(("+", "-", "*")):
|
|
654
|
+
line = line[1:].strip()
|
|
655
|
+
if len(line) < 6:
|
|
656
|
+
continue
|
|
657
|
+
return line[:160]
|
|
658
|
+
return None
|
|
659
|
+
|
|
660
|
+
|
|
572
661
|
__all__ = ["DiffContextManager", "extract_lines_from_hunk", "build_focused_diff_from_hunk"]
|
|
662
|
+
|
|
663
|
+
|
|
664
|
+
def get_or_create_diff_manager(
|
|
665
|
+
diff: str,
|
|
666
|
+
cache: Optional[dict] = None,
|
|
667
|
+
cache_key: str = "review_diff_manager",
|
|
668
|
+
) -> DiffContextManager:
|
|
669
|
+
"""Return a cached diff manager when available, otherwise parse once and store it."""
|
|
670
|
+
if cache is not None:
|
|
671
|
+
existing = cache.get(cache_key)
|
|
672
|
+
if existing is not None:
|
|
673
|
+
logger.debug("get_or_create_diff_manager: reusing cached manager")
|
|
674
|
+
return existing
|
|
675
|
+
|
|
676
|
+
manager = DiffContextManager.from_diff(diff)
|
|
677
|
+
if cache is not None:
|
|
678
|
+
cache[cache_key] = manager
|
|
679
|
+
return manager
|
titan_cli-0.6.0/plugins/titan-plugin-github/titan_plugin_github/managers/review_profile_manager.py
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"""Review profile manager for GitHub review workflows."""
|
|
2
|
+
|
|
3
|
+
from pathlib import Path
|
|
4
|
+
|
|
5
|
+
import yaml
|
|
6
|
+
from pydantic import ValidationError
|
|
7
|
+
from titan_cli.core.logging import get_logger
|
|
8
|
+
|
|
9
|
+
from ..models.review_profile_models import ReviewProfile
|
|
10
|
+
from ..review_profiles import DEFAULT_REVIEW_PROFILE
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
logger = get_logger(__name__)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class ReviewProfileManager:
|
|
17
|
+
"""Resolve the effective review profile for the current project."""
|
|
18
|
+
|
|
19
|
+
def __init__(self, project_root: Path | None = None):
|
|
20
|
+
self.project_root = project_root
|
|
21
|
+
|
|
22
|
+
def get_effective_profile(self) -> ReviewProfile:
|
|
23
|
+
"""Return project review profile or built-in defaults when absent."""
|
|
24
|
+
config_path = self._profile_path()
|
|
25
|
+
if not config_path or not config_path.exists():
|
|
26
|
+
profile = DEFAULT_REVIEW_PROFILE.model_copy(deep=True)
|
|
27
|
+
logger.debug(
|
|
28
|
+
"review_profile_resolved",
|
|
29
|
+
source="default",
|
|
30
|
+
path=str(config_path) if config_path else None,
|
|
31
|
+
change_patterns=sorted(profile.change_patterns.keys()),
|
|
32
|
+
file_roles=sorted(profile.file_roles.keys()),
|
|
33
|
+
candidate_scoring_rules=[rule.name for rule in profile.candidate_scoring],
|
|
34
|
+
review_axes=sorted(str(axis) for axis in profile.review_axes.keys()),
|
|
35
|
+
)
|
|
36
|
+
return profile
|
|
37
|
+
|
|
38
|
+
try:
|
|
39
|
+
with config_path.open("r", encoding="utf-8") as handle:
|
|
40
|
+
data = yaml.safe_load(handle) or {}
|
|
41
|
+
except yaml.YAMLError as exc:
|
|
42
|
+
raise ValueError(f"Invalid review profile YAML at {config_path}: {exc}") from exc
|
|
43
|
+
|
|
44
|
+
try:
|
|
45
|
+
profile = ReviewProfile.model_validate(data)
|
|
46
|
+
except ValidationError as exc:
|
|
47
|
+
raise ValueError(f"Invalid review profile configuration at {config_path}: {exc}") from exc
|
|
48
|
+
logger.debug(
|
|
49
|
+
"review_profile_resolved",
|
|
50
|
+
source="project",
|
|
51
|
+
path=str(config_path),
|
|
52
|
+
change_patterns=sorted(profile.change_patterns.keys()),
|
|
53
|
+
file_roles=sorted(profile.file_roles.keys()),
|
|
54
|
+
candidate_scoring_rules=[rule.name for rule in profile.candidate_scoring],
|
|
55
|
+
review_axes=sorted(str(axis) for axis in profile.review_axes.keys()),
|
|
56
|
+
)
|
|
57
|
+
return profile
|
|
58
|
+
|
|
59
|
+
def _profile_path(self) -> Path | None:
|
|
60
|
+
if not self.project_root:
|
|
61
|
+
return None
|
|
62
|
+
return self.project_root / ".titan" / "review" / "profile.yaml"
|
{titan_cli-0.4.6 → titan_cli-0.6.0}/plugins/titan-plugin-github/titan_plugin_github/messages.py
RENAMED
|
@@ -5,8 +5,9 @@ class Messages:
|
|
|
5
5
|
ENTER_PR_TITLE: str = "Enter Pull Request title:"
|
|
6
6
|
ENTER_PR_BODY: str = "Enter PR body/description (press Meta+Enter or Esc then Enter to finish):"
|
|
7
7
|
ENTER_ISSUE_BODY: str = "Enter issue body/description (press Meta+Enter or Esc then Enter to finish):"
|
|
8
|
+
CREATE_PR_AS_DRAFT: str = "Create this pull request as draft?"
|
|
8
9
|
ASSIGN_TO_SELF: str = "Assign this issue to yourself?"
|
|
9
|
-
SELECT_LABELS: str = "Select labels
|
|
10
|
+
SELECT_LABELS: str = "Select labels:"
|
|
10
11
|
ENTER_PR_BODY_INFO: str = "Enter a description for your pull request. When you are finished, press Meta+Enter (or Esc followed by Enter)."
|
|
11
12
|
|
|
12
13
|
class GitHub:
|
|
@@ -38,6 +39,7 @@ class Messages:
|
|
|
38
39
|
REVIEW_CREATING: str = "Creating review..."
|
|
39
40
|
REVIEW_CREATED: str = "Review submitted"
|
|
40
41
|
REVIEW_FAILED: str = "Failed to submit review: {error}"
|
|
42
|
+
REVIEW_PENDING_EXISTS: str = "You already have a review in progress on this pull request. Submit or discard that pending review before creating a new one."
|
|
41
43
|
|
|
42
44
|
# Comments
|
|
43
45
|
COMMENT_CREATING: str = "Adding comment..."
|
|
@@ -37,6 +37,8 @@ from .view import (
|
|
|
37
37
|
UIReviewSuggestion,
|
|
38
38
|
)
|
|
39
39
|
|
|
40
|
+
from .pr_enums import PRMergeableState, PRReviewDecision, PRState
|
|
41
|
+
|
|
40
42
|
# Mappers
|
|
41
43
|
from .mappers import (
|
|
42
44
|
from_rest_pr,
|
|
@@ -70,6 +72,9 @@ __all__ = [
|
|
|
70
72
|
"UIIssue",
|
|
71
73
|
"UIRelease",
|
|
72
74
|
"UIReviewSuggestion",
|
|
75
|
+
"PRState",
|
|
76
|
+
"PRMergeableState",
|
|
77
|
+
"PRReviewDecision",
|
|
73
78
|
# Mappers
|
|
74
79
|
"from_rest_pr",
|
|
75
80
|
"from_rest_issue",
|
|
@@ -6,7 +6,9 @@ Shared formatting functions for converting network data to UI-friendly strings.
|
|
|
6
6
|
All presentation/display logic should use these utilities for consistency.
|
|
7
7
|
"""
|
|
8
8
|
from datetime import datetime
|
|
9
|
-
from typing import Optional
|
|
9
|
+
from typing import Any, Optional
|
|
10
|
+
|
|
11
|
+
from .pr_enums import PRReviewDecision, PRState
|
|
10
12
|
|
|
11
13
|
|
|
12
14
|
def format_date(iso_date: str) -> str:
|
|
@@ -34,7 +36,7 @@ def format_date(iso_date: str) -> str:
|
|
|
34
36
|
return iso_date
|
|
35
37
|
|
|
36
38
|
|
|
37
|
-
def get_pr_status_icon(state: str, is_draft: bool) -> str:
|
|
39
|
+
def get_pr_status_icon(state: PRState | str, is_draft: bool) -> str:
|
|
38
40
|
"""
|
|
39
41
|
Get emoji icon for PR state.
|
|
40
42
|
|
|
@@ -51,13 +53,15 @@ def get_pr_status_icon(state: str, is_draft: bool) -> str:
|
|
|
51
53
|
>>> get_pr_status_icon("OPEN", True)
|
|
52
54
|
'📝'
|
|
53
55
|
"""
|
|
54
|
-
|
|
56
|
+
state_value = str(state)
|
|
57
|
+
|
|
58
|
+
if state_value == PRState.MERGED:
|
|
55
59
|
return "🟣"
|
|
56
|
-
elif
|
|
60
|
+
elif state_value == PRState.CLOSED:
|
|
57
61
|
return "🔴"
|
|
58
62
|
elif is_draft:
|
|
59
63
|
return "📝"
|
|
60
|
-
elif
|
|
64
|
+
elif state_value == PRState.OPEN:
|
|
61
65
|
return "🟢"
|
|
62
66
|
return "⚪"
|
|
63
67
|
|
|
@@ -150,6 +154,59 @@ def calculate_review_summary(reviews: list) -> str:
|
|
|
150
154
|
return f"💬 {len(reviews)} comments"
|
|
151
155
|
|
|
152
156
|
|
|
157
|
+
def summarize_status_check_rollup(status_check_rollup: list[dict[str, Any]]) -> str:
|
|
158
|
+
"""Summarize PR checks into a compact human-readable string."""
|
|
159
|
+
check_runs = [check for check in status_check_rollup if check.get("__typename") == "CheckRun"]
|
|
160
|
+
|
|
161
|
+
if not check_runs:
|
|
162
|
+
return "No checks"
|
|
163
|
+
|
|
164
|
+
passing = 0
|
|
165
|
+
failing = 0
|
|
166
|
+
pending = 0
|
|
167
|
+
|
|
168
|
+
for check in check_runs:
|
|
169
|
+
status = str(check.get("status", "")).upper()
|
|
170
|
+
conclusion = check.get("conclusion")
|
|
171
|
+
conclusion = str(conclusion).upper() if conclusion is not None else None
|
|
172
|
+
|
|
173
|
+
if status != "COMPLETED" or conclusion is None:
|
|
174
|
+
pending += 1
|
|
175
|
+
elif conclusion in {"SUCCESS", "NEUTRAL", "SKIPPED"}:
|
|
176
|
+
passing += 1
|
|
177
|
+
elif conclusion in {"FAILURE", "TIMED_OUT", "ACTION_REQUIRED", "CANCELLED", "STARTUP_FAILURE", "STALE"}:
|
|
178
|
+
failing += 1
|
|
179
|
+
else:
|
|
180
|
+
pending += 1
|
|
181
|
+
|
|
182
|
+
parts = []
|
|
183
|
+
if failing:
|
|
184
|
+
parts.append(f"{failing} failing")
|
|
185
|
+
if pending:
|
|
186
|
+
parts.append(f"{pending} pending")
|
|
187
|
+
if passing:
|
|
188
|
+
parts.append(f"{passing} passing")
|
|
189
|
+
|
|
190
|
+
return ", ".join(parts) if parts else "No checks"
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
def summarize_review_status(review_decision: Optional[PRReviewDecision | str], is_draft: bool) -> str:
|
|
194
|
+
"""Summarize PR review state for list displays."""
|
|
195
|
+
if is_draft:
|
|
196
|
+
return "draft"
|
|
197
|
+
|
|
198
|
+
mapping = {
|
|
199
|
+
PRReviewDecision.APPROVED: "approved",
|
|
200
|
+
PRReviewDecision.CHANGES_REQUESTED: "changes requested",
|
|
201
|
+
PRReviewDecision.REVIEW_REQUIRED: "review required",
|
|
202
|
+
}
|
|
203
|
+
if review_decision:
|
|
204
|
+
normalized = str(review_decision)
|
|
205
|
+
return mapping.get(normalized, normalized.lower())
|
|
206
|
+
|
|
207
|
+
return "ready for review"
|
|
208
|
+
|
|
209
|
+
|
|
153
210
|
def get_review_state_icon(state: str) -> str:
|
|
154
211
|
"""
|
|
155
212
|
Get icon for review state.
|
|
@@ -204,6 +261,8 @@ __all__ = [
|
|
|
204
261
|
"format_pr_stats",
|
|
205
262
|
"format_branch_info",
|
|
206
263
|
"calculate_review_summary",
|
|
264
|
+
"summarize_status_check_rollup",
|
|
265
|
+
"summarize_review_status",
|
|
207
266
|
"get_review_state_icon",
|
|
208
267
|
"format_short_sha",
|
|
209
268
|
]
|