gac 2.5.1__py3-none-any.whl → 2.5.2__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.
Potentially problematic release.
This version of gac might be problematic. Click here for more details.
- gac/__version__.py +1 -1
- gac/main.py +2 -2
- gac/workflow_utils.py +5 -2
- {gac-2.5.1.dist-info → gac-2.5.2.dist-info}/METADATA +2 -4
- {gac-2.5.1.dist-info → gac-2.5.2.dist-info}/RECORD +8 -8
- {gac-2.5.1.dist-info → gac-2.5.2.dist-info}/WHEEL +0 -0
- {gac-2.5.1.dist-info → gac-2.5.2.dist-info}/entry_points.txt +0 -0
- {gac-2.5.1.dist-info → gac-2.5.2.dist-info}/licenses/LICENSE +0 -0
gac/__version__.py
CHANGED
gac/main.py
CHANGED
|
@@ -340,7 +340,7 @@ def execute_grouped_commits_workflow(
|
|
|
340
340
|
try:
|
|
341
341
|
for file_path in commit["files"]:
|
|
342
342
|
run_git_command(["add", "-A", file_path])
|
|
343
|
-
execute_commit(commit["message"], no_verify)
|
|
343
|
+
execute_commit(commit["message"], no_verify, hook_timeout)
|
|
344
344
|
console.print(f"[green]✓ Commit {idx}/{num_commits} created[/green]")
|
|
345
345
|
except Exception as e:
|
|
346
346
|
console.print(f"[red]✗ Failed at commit {idx}/{num_commits}: {e}[/red]")
|
|
@@ -448,7 +448,7 @@ def execute_single_commit_workflow(
|
|
|
448
448
|
console.print(f"Would commit {len(staged_files)} files")
|
|
449
449
|
logger.info(f"Would commit {len(staged_files)} files")
|
|
450
450
|
else:
|
|
451
|
-
execute_commit(commit_message, no_verify)
|
|
451
|
+
execute_commit(commit_message, no_verify, hook_timeout)
|
|
452
452
|
|
|
453
453
|
if push:
|
|
454
454
|
try:
|
gac/workflow_utils.py
CHANGED
|
@@ -5,6 +5,8 @@ from pathlib import Path
|
|
|
5
5
|
import click
|
|
6
6
|
from rich.console import Console
|
|
7
7
|
|
|
8
|
+
from gac.constants import EnvDefaults
|
|
9
|
+
|
|
8
10
|
logger = logging.getLogger(__name__)
|
|
9
11
|
console = Console()
|
|
10
12
|
|
|
@@ -57,13 +59,14 @@ def handle_confirmation_loop(
|
|
|
57
59
|
return ("regenerate", commit_message, conversation_messages)
|
|
58
60
|
|
|
59
61
|
|
|
60
|
-
def execute_commit(commit_message: str, no_verify: bool) -> None:
|
|
62
|
+
def execute_commit(commit_message: str, no_verify: bool, hook_timeout: int | None = None) -> None:
|
|
61
63
|
from gac.git import run_git_command
|
|
62
64
|
|
|
63
65
|
commit_args = ["commit", "-m", commit_message]
|
|
64
66
|
if no_verify:
|
|
65
67
|
commit_args.append("--no-verify")
|
|
66
|
-
|
|
68
|
+
effective_timeout = hook_timeout if hook_timeout and hook_timeout > 0 else EnvDefaults.HOOK_TIMEOUT
|
|
69
|
+
run_git_command(commit_args, timeout=effective_timeout)
|
|
67
70
|
logger.info("Commit created successfully")
|
|
68
71
|
console.print("[green]Commit created successfully[/green]")
|
|
69
72
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: gac
|
|
3
|
-
Version: 2.5.
|
|
3
|
+
Version: 2.5.2
|
|
4
4
|
Summary: LLM-powered Git commit message generator with multi-provider support
|
|
5
5
|
Project-URL: Homepage, https://github.com/cellwebb/gac
|
|
6
6
|
Project-URL: Documentation, https://github.com/cellwebb/gac#readme
|
|
@@ -56,7 +56,7 @@ Description-Content-Type: text/markdown
|
|
|
56
56
|
[](docs/en/CONTRIBUTING.md)
|
|
57
57
|
[](LICENSE)
|
|
58
58
|
|
|
59
|
-
**English** | [简体中文](docs/zh-CN/README.md) | [繁體中文](docs/zh-TW/README.md) | [日本語](docs/ja/README.md) | [한국어](docs/ko/README.md) | [हिन्दी](docs/hi/README.md) | [Français](docs/fr/README.md) | [Русский](docs/ru/README.md) | [Español](docs/es/README.md) | [Português](docs/pt/README.md) | [Deutsch](docs/de/README.md) | [Nederlands](docs/nl/README.md)
|
|
59
|
+
**English** | [简体中文](docs/zh-CN/README.md) | [繁體中文](docs/zh-TW/README.md) | [日本語](docs/ja/README.md) | [한국어](docs/ko/README.md) | [हिन्दी](docs/hi/README.md) | [Tiếng Việt](docs/vi/README.md) | [Français](docs/fr/README.md) | [Русский](docs/ru/README.md) | [Español](docs/es/README.md) | [Português](docs/pt/README.md) | [Norsk](docs/no/README.md) | [Svenska](docs/sv/README.md) | [Deutsch](docs/de/README.md) | [Nederlands](docs/nl/README.md) | [Italiano](docs/it/README.md)
|
|
60
60
|
|
|
61
61
|
**LLM-powered commit messages that understand your code!**
|
|
62
62
|
|
|
@@ -76,8 +76,6 @@ Intelligent, contextual messages that explain the **why** behind your changes:
|
|
|
76
76
|
|
|
77
77
|
<!-- markdownlint-enable MD033 MD036 -->
|
|
78
78
|
|
|
79
|
-
<!-- markdownlint-enable MD033 MD036 -->
|
|
80
|
-
|
|
81
79
|
## Quick Start
|
|
82
80
|
|
|
83
81
|
### Use gac without installing
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
gac/__init__.py,sha256=z9yGInqtycFIT3g1ca24r-A3699hKVaRqGUI79wsmMc,415
|
|
2
|
-
gac/__version__.py,sha256=
|
|
2
|
+
gac/__version__.py,sha256=kUTPuBUiWjt2vbUT4X1x849eC-5y4wTey0xkuSyfwJw,66
|
|
3
3
|
gac/ai.py,sha256=6SQK4axBE0uEbF3eKVTvQtGL9X1TbxoBOrY7NuYIfiM,5009
|
|
4
4
|
gac/ai_utils.py,sha256=reJINfsKlX0HAg5HPlH4ImO6FvibzgRZ0ruG9u1cxa8,8312
|
|
5
5
|
gac/cli.py,sha256=JcPZli727o4BeotO2oND98Hjt8rDStl8pAcDiRpzaxg,6396
|
|
@@ -11,12 +11,12 @@ gac/errors.py,sha256=ysDIVRCd0YQVTOW3Q6YzdolxCdtkoQCAFf3_jrqbjUY,7916
|
|
|
11
11
|
gac/git.py,sha256=HJANfY8RFyrtXJUDo8wxrU0e5tx0agakdM8jCru1b3Q,11285
|
|
12
12
|
gac/init_cli.py,sha256=ZfC6oci9xiRVKHuOipH7RQvVI-79O_OymG7_ZZ6CyLM,19606
|
|
13
13
|
gac/language_cli.py,sha256=FEQf-k5KrhIpvx4XJvjqxTeE4qumNO00d-tgOAf83W4,8488
|
|
14
|
-
gac/main.py,sha256=
|
|
14
|
+
gac/main.py,sha256=SBKajcYAj4FGCZWOOnNlkAvMRKvICtrYOVVB2MbAlfo,29009
|
|
15
15
|
gac/preprocess.py,sha256=hk2p2X4-xVDvuy-T1VMzMa9k5fTUbhlWDyw89DCf81Q,15379
|
|
16
16
|
gac/prompt.py,sha256=ofumb6DmxJceqZLUlUyLE9b7Mwx9BpIEHweKEV9eicw,31841
|
|
17
17
|
gac/security.py,sha256=QT91mBEo2Y7la-aXvKuF2zhWuoOSXb6PWKLJ93kSy2k,9926
|
|
18
18
|
gac/utils.py,sha256=gTpc9zLzy3-3L5k-V5uSeFI-NnSPabA1GGVwSgpeMSk,11709
|
|
19
|
-
gac/workflow_utils.py,sha256=
|
|
19
|
+
gac/workflow_utils.py,sha256=rnKrPc8yiBKdGz6Set2wu8q-bX6lEUVD1YEj5wg6C2Q,5226
|
|
20
20
|
gac/providers/__init__.py,sha256=pT1xcKoZkPm6BWaxcAQ299-Ca5zZ31kf4DeQYAim9Tw,1367
|
|
21
21
|
gac/providers/anthropic.py,sha256=VK5d1s1PmBNDwh_x7illQ2CIZIHNIYU28btVfizwQPs,2036
|
|
22
22
|
gac/providers/cerebras.py,sha256=Ik8lhlsliGJVkgDgqlThfpra9tqbdYQZkaC4eNxRd9w,1648
|
|
@@ -37,8 +37,8 @@ gac/providers/streamlake.py,sha256=KAA2ZnpuEI5imzvdWVWUhEBHSP0BMnprKXte6CbwBWY,2
|
|
|
37
37
|
gac/providers/synthetic.py,sha256=sRMIJTS9LpcXd9A7qp_ZjZxdqtTKRn9fl1W4YwJZP4c,1855
|
|
38
38
|
gac/providers/together.py,sha256=1bUIVHfYzcEDw4hQPE8qV6hjc2JNHPv_khVgpk2IJxI,1667
|
|
39
39
|
gac/providers/zai.py,sha256=kywhhrCfPBu0rElZyb-iENxQxxpVGykvePuL4xrXlaU,2739
|
|
40
|
-
gac-2.5.
|
|
41
|
-
gac-2.5.
|
|
42
|
-
gac-2.5.
|
|
43
|
-
gac-2.5.
|
|
44
|
-
gac-2.5.
|
|
40
|
+
gac-2.5.2.dist-info/METADATA,sha256=it-_GVkwuhw3AqyyrM07eLwtiudPq01b6feoOQ7VVbg,10927
|
|
41
|
+
gac-2.5.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
42
|
+
gac-2.5.2.dist-info/entry_points.txt,sha256=tdjN-XMmcWfL92swuRAjT62bFLOAwk9bTMRLGP5Z4aI,36
|
|
43
|
+
gac-2.5.2.dist-info/licenses/LICENSE,sha256=vOab37NouL1PNs5BswnPayrMCqaN2sqLfMQfqPDrpZg,1103
|
|
44
|
+
gac-2.5.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|