ai-cr 3.0.0__tar.gz → 3.1.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.
- {ai_cr-3.0.0 → ai_cr-3.1.0}/PKG-INFO +1 -1
- {ai_cr-3.0.0 → ai_cr-3.1.0}/gito/bootstrap.py +4 -1
- {ai_cr-3.0.0 → ai_cr-3.1.0}/gito/cli.py +1 -1
- ai_cr-3.1.0/gito/commands/version.py +8 -0
- {ai_cr-3.0.0 → ai_cr-3.1.0}/gito/constants.py +2 -1
- {ai_cr-3.0.0 → ai_cr-3.1.0}/gito/core.py +1 -0
- ai_cr-3.1.0/gito/env.py +7 -0
- {ai_cr-3.0.0 → ai_cr-3.1.0}/pyproject.toml +1 -1
- ai_cr-3.0.0/gito/env.py +0 -3
- {ai_cr-3.0.0 → ai_cr-3.1.0}/LICENSE +0 -0
- {ai_cr-3.0.0 → ai_cr-3.1.0}/README.md +0 -0
- {ai_cr-3.0.0 → ai_cr-3.1.0}/gito/__init__.py +0 -0
- {ai_cr-3.0.0 → ai_cr-3.1.0}/gito/__main__.py +0 -0
- {ai_cr-3.0.0 → ai_cr-3.1.0}/gito/cli_base.py +0 -0
- {ai_cr-3.0.0 → ai_cr-3.1.0}/gito/commands/__init__.py +0 -0
- {ai_cr-3.0.0 → ai_cr-3.1.0}/gito/commands/deploy.py +0 -0
- {ai_cr-3.0.0 → ai_cr-3.1.0}/gito/commands/fix.py +0 -0
- {ai_cr-3.0.0 → ai_cr-3.1.0}/gito/commands/gh_post_review_comment.py +0 -0
- {ai_cr-3.0.0 → ai_cr-3.1.0}/gito/commands/gh_react_to_comment.py +0 -0
- {ai_cr-3.0.0 → ai_cr-3.1.0}/gito/commands/linear_comment.py +0 -0
- {ai_cr-3.0.0 → ai_cr-3.1.0}/gito/commands/repl.py +0 -0
- {ai_cr-3.0.0 → ai_cr-3.1.0}/gito/config.toml +0 -0
- {ai_cr-3.0.0 → ai_cr-3.1.0}/gito/context.py +0 -0
- {ai_cr-3.0.0 → ai_cr-3.1.0}/gito/gh_api.py +0 -0
- {ai_cr-3.0.0 → ai_cr-3.1.0}/gito/issue_trackers.py +0 -0
- {ai_cr-3.0.0 → ai_cr-3.1.0}/gito/pipeline.py +0 -0
- {ai_cr-3.0.0 → ai_cr-3.1.0}/gito/pipeline_steps/__init__.py +0 -0
- {ai_cr-3.0.0 → ai_cr-3.1.0}/gito/pipeline_steps/jira.py +0 -0
- {ai_cr-3.0.0 → ai_cr-3.1.0}/gito/pipeline_steps/linear.py +0 -0
- {ai_cr-3.0.0 → ai_cr-3.1.0}/gito/project_config.py +0 -0
- {ai_cr-3.0.0 → ai_cr-3.1.0}/gito/report_struct.py +0 -0
- {ai_cr-3.0.0 → ai_cr-3.1.0}/gito/tpl/github_workflows/components/env-vars.j2 +0 -0
- {ai_cr-3.0.0 → ai_cr-3.1.0}/gito/tpl/github_workflows/components/installs.j2 +0 -0
- {ai_cr-3.0.0 → ai_cr-3.1.0}/gito/tpl/github_workflows/gito-code-review.yml.j2 +0 -0
- {ai_cr-3.0.0 → ai_cr-3.1.0}/gito/tpl/github_workflows/gito-react-to-comments.yml.j2 +0 -0
- {ai_cr-3.0.0 → ai_cr-3.1.0}/gito/tpl/release_notes.j2 +0 -0
- {ai_cr-3.0.0 → ai_cr-3.1.0}/gito/utils.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: ai-cr
|
3
|
-
Version: 3.
|
3
|
+
Version: 3.1.0
|
4
4
|
Summary: AI code review tool that works with any language model provider. It detects issues in GitHub pull requests or local changes—instantly, reliably, and without vendor lock-in.
|
5
5
|
License: MIT
|
6
6
|
Keywords: static code analysis,code review,code quality,ai,coding,assistant,llm,github,automation,devops,developer tools,github actions,workflows,git
|
@@ -41,7 +41,10 @@ def bootstrap(verbosity: int = 1):
|
|
41
41
|
Env.verbosity = verbosity
|
42
42
|
Env.logging_level = log_levels_by_verbosity.get(verbosity, logging.INFO)
|
43
43
|
setup_logging(Env.logging_level)
|
44
|
-
logging.info(
|
44
|
+
logging.info(
|
45
|
+
f"Bootstrapping Gito v{Env.gito_version}... "
|
46
|
+
+ mc.ui.gray(f"[verbosity={verbosity}]")
|
47
|
+
)
|
45
48
|
|
46
49
|
# cp1251 is used on Windows when redirecting output
|
47
50
|
if sys.stdout.encoding and sys.stdout.encoding.lower() != "utf-8":
|
@@ -26,7 +26,7 @@ from .utils import no_subcommand, extract_gh_owner_repo, remove_html_comments
|
|
26
26
|
from .gh_api import resolve_gh_token
|
27
27
|
|
28
28
|
# Import fix command to register it
|
29
|
-
from .commands import fix, gh_react_to_comment, repl, deploy # noqa
|
29
|
+
from .commands import fix, gh_react_to_comment, repl, deploy, version # noqa
|
30
30
|
from .commands.gh_post_review_comment import post_github_cr_comment
|
31
31
|
from .commands.linear_comment import linear_comment
|
32
32
|
|
@@ -1,4 +1,5 @@
|
|
1
1
|
from pathlib import Path
|
2
|
+
from .env import Env
|
2
3
|
|
3
4
|
PROJECT_GITO_FOLDER = ".gito"
|
4
5
|
PROJECT_CONFIG_FILE_NAME = "config.toml"
|
@@ -9,5 +10,5 @@ JSON_REPORT_FILE_NAME = "code-review-report.json"
|
|
9
10
|
GITHUB_MD_REPORT_FILE_NAME = "code-review-report.md"
|
10
11
|
EXECUTABLE = "gito"
|
11
12
|
TEXT_ICON_URL = 'https://raw.githubusercontent.com/Nayjest/Gito/main/press-kit/logo/gito-bot-1_64top.png' # noqa: E501
|
12
|
-
HTML_TEXT_ICON = f'<a href="https://github.com/Nayjest/Gito"><img src="{TEXT_ICON_URL}" align="left" width=64 height=50 /></a>' # noqa: E501
|
13
|
+
HTML_TEXT_ICON = f'<a href="https://github.com/Nayjest/Gito"><img src="{TEXT_ICON_URL}" align="left" width=64 height=50 title="Gito v{Env.gito_version}"/></a>' # noqa: E501
|
13
14
|
HTML_CR_COMMENT_MARKER = '<!-- GITO_COMMENT:CODE_REVIEW_REPORT -->'
|
@@ -230,6 +230,7 @@ def make_cr_summary(ctx: Context, **kwargs) -> str:
|
|
230
230
|
diff=mc.tokenizing.fit_to_token_size(ctx.diff, ctx.config.max_code_tokens)[0],
|
231
231
|
issues=ctx.report.issues,
|
232
232
|
pipeline_out=ctx.pipeline_out,
|
233
|
+
env=Env,
|
233
234
|
**ctx.config.prompt_vars,
|
234
235
|
**kwargs,
|
235
236
|
).to_llm()
|
ai_cr-3.1.0/gito/env.py
ADDED
@@ -1,6 +1,6 @@
|
|
1
1
|
[tool.poetry]
|
2
2
|
name = "ai-cr"
|
3
|
-
version = "3.
|
3
|
+
version = "3.1.0"
|
4
4
|
description = "AI code review tool that works with any language model provider. It detects issues in GitHub pull requests or local changes—instantly, reliably, and without vendor lock-in."
|
5
5
|
authors = ["Nayjest <mail@vitaliy.in>"]
|
6
6
|
readme = "README.md"
|
ai_cr-3.0.0/gito/env.py
DELETED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|