code-review-ai-cli 1.0.0__py3-none-any.whl
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.
- code_review_ai_cli-1.0.0.dist-info/METADATA +441 -0
- code_review_ai_cli-1.0.0.dist-info/RECORD +13 -0
- code_review_ai_cli-1.0.0.dist-info/WHEEL +5 -0
- code_review_ai_cli-1.0.0.dist-info/entry_points.txt +2 -0
- code_review_ai_cli-1.0.0.dist-info/top_level.txt +1 -0
- src/__init__.py +7 -0
- src/ai_review.py +946 -0
- src/config.py +361 -0
- src/formatter.py +474 -0
- src/git_utils.py +487 -0
- src/llm_client.py +1008 -0
- src/prompts/config.yaml.template +124 -0
- src/tfs_client.py +751 -0
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
# =============================================================================
|
|
2
|
+
# AI Code Review - Configuration File
|
|
3
|
+
# Generated by: ai-review init
|
|
4
|
+
#
|
|
5
|
+
# Fill in your credentials and preferences below.
|
|
6
|
+
# Keep this file private — do NOT commit it to source control.
|
|
7
|
+
# =============================================================================
|
|
8
|
+
|
|
9
|
+
# ---------------------------------------------------------------------------
|
|
10
|
+
# LLM Configuration
|
|
11
|
+
# ---------------------------------------------------------------------------
|
|
12
|
+
# Available providers: "openai", "gemini", "claude", "ollama", "azure_openai", "copilot", "bedrock"
|
|
13
|
+
llm:
|
|
14
|
+
provider: openai
|
|
15
|
+
|
|
16
|
+
# Model to use (empty = provider default)
|
|
17
|
+
# Examples:
|
|
18
|
+
# openai: gpt-4o, gpt-4-turbo, gpt-4
|
|
19
|
+
# gemini: gemini-1.5-pro, gemini-2.0-flash
|
|
20
|
+
# claude: claude-3-5-sonnet-latest, claude-3-opus-latest
|
|
21
|
+
# ollama: llama3, codellama, mistral
|
|
22
|
+
# copilot: gpt-4o, gpt-4o-mini, o1, claude-3.5-sonnet
|
|
23
|
+
# bedrock: anthropic.claude-3-5-sonnet-20240620-v1:0
|
|
24
|
+
model: ""
|
|
25
|
+
|
|
26
|
+
# Maximum tokens in response
|
|
27
|
+
max_tokens: 4096
|
|
28
|
+
|
|
29
|
+
# Temperature (0.0 = deterministic, 1.0 = creative)
|
|
30
|
+
temperature: 0.3
|
|
31
|
+
|
|
32
|
+
# ---------------------------------------------------------------------------
|
|
33
|
+
# Provider credentials — fill in the block for your chosen provider
|
|
34
|
+
# ---------------------------------------------------------------------------
|
|
35
|
+
|
|
36
|
+
# openai:
|
|
37
|
+
# api_key: sk-xxxxxxxxxxxxxxxxxxxxxxxx
|
|
38
|
+
|
|
39
|
+
# gemini:
|
|
40
|
+
# api_key: AIzaxxxxxxxxxxxxxxxxxxxxxxxx
|
|
41
|
+
|
|
42
|
+
# claude:
|
|
43
|
+
# api_key: sk-ant-xxxxxxxxxxxxxxxxxxxxxxxx
|
|
44
|
+
|
|
45
|
+
# ollama:
|
|
46
|
+
# base_url: http://localhost:11434
|
|
47
|
+
|
|
48
|
+
# copilot:
|
|
49
|
+
# github_token: ghp_xxxxxxxxxxxxxxxxxxxxxxxx
|
|
50
|
+
|
|
51
|
+
# bedrock:
|
|
52
|
+
# region: us-east-1
|
|
53
|
+
# profile: default
|
|
54
|
+
# # access_key_id and secret_access_key are optional if using IAM roles or AWS CLI profile
|
|
55
|
+
# access_key_id:
|
|
56
|
+
# secret_access_key:
|
|
57
|
+
# session_token:
|
|
58
|
+
|
|
59
|
+
# ---------------------------------------------------------------------------
|
|
60
|
+
# TFS / Azure DevOps Configuration
|
|
61
|
+
# ---------------------------------------------------------------------------
|
|
62
|
+
tfs:
|
|
63
|
+
base_url: https://dev.azure.com/your-org # or https://tfs.company.com/tfs
|
|
64
|
+
collection: DefaultCollection
|
|
65
|
+
project: your-project
|
|
66
|
+
pat: your-personal-access-token
|
|
67
|
+
verify_ssl: true
|
|
68
|
+
# ca_bundle: C:/certs/corporate-root-ca.pem # optional corporate CA
|
|
69
|
+
# repository: # optional default repo filter
|
|
70
|
+
|
|
71
|
+
# ---------------------------------------------------------------------------
|
|
72
|
+
# Review Preferences
|
|
73
|
+
# ---------------------------------------------------------------------------
|
|
74
|
+
review:
|
|
75
|
+
# Language: "pt" or "en"
|
|
76
|
+
language: en
|
|
77
|
+
|
|
78
|
+
# Default verbosity: "quick", "detailed" or "security"
|
|
79
|
+
verbosity: detailed
|
|
80
|
+
|
|
81
|
+
# Review scope:
|
|
82
|
+
# diff_only (default): focuses only on differences introduced in the PR
|
|
83
|
+
# full_code: allows full code review of changed files
|
|
84
|
+
scope: diff_only
|
|
85
|
+
|
|
86
|
+
# Markdown file with custom rules/context for the prompt
|
|
87
|
+
# The content of this file is injected into LLM instructions on each review
|
|
88
|
+
# custom_prompt_file: review_prompt.md
|
|
89
|
+
|
|
90
|
+
# Limit of diff files sent to the LLM (remaining files are omitted)
|
|
91
|
+
max_diff_files: 50
|
|
92
|
+
|
|
93
|
+
# Limit of diff lines per file (larger sections are truncated)
|
|
94
|
+
max_diff_lines: 4500
|
|
95
|
+
|
|
96
|
+
# Filter by file extensions (empty list = all files)
|
|
97
|
+
# Example: [".py", ".js", ".cs", ".ts"]
|
|
98
|
+
file_extensions_filter: []
|
|
99
|
+
|
|
100
|
+
# ---------------------------------------------------------------------------
|
|
101
|
+
# Pull Request Review Configuration
|
|
102
|
+
# ---------------------------------------------------------------------------
|
|
103
|
+
pr:
|
|
104
|
+
# Post comments automatically without confirmation
|
|
105
|
+
auto_post_comments: false
|
|
106
|
+
|
|
107
|
+
# Run review without posting comments
|
|
108
|
+
dry_run: false
|
|
109
|
+
|
|
110
|
+
# Comment mode: "structured" (inline per file) or "general" (single comment)
|
|
111
|
+
comment_mode: structured
|
|
112
|
+
|
|
113
|
+
# ---------------------------------------------------------------------------
|
|
114
|
+
# Output Configuration
|
|
115
|
+
# ---------------------------------------------------------------------------
|
|
116
|
+
output:
|
|
117
|
+
# Format: "terminal", "markdown" or "json"
|
|
118
|
+
format: terminal
|
|
119
|
+
|
|
120
|
+
# Output file (empty = terminal only)
|
|
121
|
+
file: ""
|
|
122
|
+
|
|
123
|
+
# Terminal colors
|
|
124
|
+
color: true
|