agentic-devtools 0.2.640__py3-none-any.whl → 0.2.641__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.
- agentic_devtools/_version.py +2 -2
- agentic_devtools/cli/checks/pre_push_budget.py +21 -0
- {agentic_devtools-0.2.640.dist-info → agentic_devtools-0.2.641.dist-info}/METADATA +1 -1
- {agentic_devtools-0.2.640.dist-info → agentic_devtools-0.2.641.dist-info}/RECORD +7 -7
- {agentic_devtools-0.2.640.dist-info → agentic_devtools-0.2.641.dist-info}/WHEEL +0 -0
- {agentic_devtools-0.2.640.dist-info → agentic_devtools-0.2.641.dist-info}/entry_points.txt +0 -0
- {agentic_devtools-0.2.640.dist-info → agentic_devtools-0.2.641.dist-info}/licenses/LICENSE +0 -0
agentic_devtools/_version.py
CHANGED
|
@@ -18,7 +18,7 @@ version_tuple: tuple[int | str, ...]
|
|
|
18
18
|
commit_id: str | None
|
|
19
19
|
__commit_id__: str | None
|
|
20
20
|
|
|
21
|
-
__version__ = version = '0.2.
|
|
22
|
-
__version_tuple__ = version_tuple = (0, 2,
|
|
21
|
+
__version__ = version = '0.2.641'
|
|
22
|
+
__version_tuple__ = version_tuple = (0, 2, 641)
|
|
23
23
|
|
|
24
24
|
__commit_id__ = commit_id = None
|
|
@@ -6,6 +6,7 @@ import selectors
|
|
|
6
6
|
import signal
|
|
7
7
|
import subprocess
|
|
8
8
|
import sys
|
|
9
|
+
import threading
|
|
9
10
|
import time
|
|
10
11
|
from collections.abc import Callable, Mapping, Sequence
|
|
11
12
|
from contextlib import ExitStack, suppress
|
|
@@ -19,6 +20,26 @@ OUTPUT_DRAIN_SECONDS = 1
|
|
|
19
20
|
MAX_PENDING_STDOUT_BYTES = 65536
|
|
20
21
|
|
|
21
22
|
|
|
23
|
+
def _temporary_signal_handlers(
|
|
24
|
+
*,
|
|
25
|
+
is_posix: Callable[[], bool] = lambda: os.name == "posix",
|
|
26
|
+
is_main_thread: Callable[[], bool] = lambda: threading.current_thread() is threading.main_thread(),
|
|
27
|
+
get_handler: Callable[[int], object] = signal.getsignal,
|
|
28
|
+
) -> list[tuple[int, object]]:
|
|
29
|
+
"""Return available signals whose previous handlers can be restored."""
|
|
30
|
+
if not is_posix() or not is_main_thread():
|
|
31
|
+
return []
|
|
32
|
+
eligible = []
|
|
33
|
+
for name in ("SIGTERM", "SIGHUP"):
|
|
34
|
+
signum = getattr(signal, name, None)
|
|
35
|
+
if signum is None:
|
|
36
|
+
continue
|
|
37
|
+
previous_handler = get_handler(signum)
|
|
38
|
+
if previous_handler is not None:
|
|
39
|
+
eligible.append((signum, previous_handler))
|
|
40
|
+
return eligible
|
|
41
|
+
|
|
42
|
+
|
|
22
43
|
def resolve_budget_seconds(environ: Mapping[str, str]) -> int:
|
|
23
44
|
"""Resolve a positive override, warning once when falling back."""
|
|
24
45
|
raw = environ.get("AGDT_PRE_PUSH_BUDGET_SECONDS")
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
agentic_devtools/__init__.py,sha256=gvLzsZ6L3Abr4sPHr4OJ_rdZDD8cFzXacaV0LGs8dVc,539
|
|
2
|
-
agentic_devtools/_version.py,sha256=
|
|
2
|
+
agentic_devtools/_version.py,sha256=qB7gQxsKEWH5wQb0kHqMPB5QRXDbcgUCF2qmB5Xvy6M,524
|
|
3
3
|
agentic_devtools/agdt_gitignore.py,sha256=vVVqTjBZ_ijn6U3Lnh_JGrARLschYVN-fFal9jDk0Ak,2694
|
|
4
4
|
agentic_devtools/background_tasks.py,sha256=sFgmqOnCdCjclABJ8V__yDwBXDyi45b1Z-MVv3G2zB8,17664
|
|
5
5
|
agentic_devtools/config.py,sha256=DEVxTVZhsQbVQwO9qdB_1h19aBpjMzF6xJY_ePYLGLs,15629
|
|
@@ -217,7 +217,7 @@ agentic_devtools/cli/checks/coverage_pool.py,sha256=I8lvSDABhVGopukLGsrXIsL9SbQZ
|
|
|
217
217
|
agentic_devtools/cli/checks/customization_quality.py,sha256=VLZQW5WNUSTr40ngxI9gHUY7fK0P0Mm3PsMn3HYajj4,47864
|
|
218
218
|
agentic_devtools/cli/checks/file_length.py,sha256=K1v6Bkn6dbVoBppjdigcpuPqYcxwmWanE3FtDwq78FA,4139
|
|
219
219
|
agentic_devtools/cli/checks/lint.py,sha256=DLXWJpAJ8GfLYpBUF1sf2ArPnEdIkuQ2ksYv44wWJ5M,8568
|
|
220
|
-
agentic_devtools/cli/checks/pre_push_budget.py,sha256=
|
|
220
|
+
agentic_devtools/cli/checks/pre_push_budget.py,sha256=1P3GB8yuvnoaHXym03menCJ11BIVP8CMqBPlC8w4t9k,8258
|
|
221
221
|
agentic_devtools/cli/checks/quality_baseline.py,sha256=PbSYAiJdWwEDP8SGGUXNpJVxkswGi-whveLOav7J2y4,2967
|
|
222
222
|
agentic_devtools/cli/checks/setup_drift.py,sha256=bVR0F4wpwt8rOl829tGXKqI1PDUbg9JsXTShgYaJSSM,7666
|
|
223
223
|
agentic_devtools/cli/checks/setup_drift_changed_files.py,sha256=73IuzquyLDKhWderCvFE5TXnHuBxBcQTSbg2p15-wKE,3719
|
|
@@ -1335,8 +1335,8 @@ agentic_devtools/_bundled_skills/skills/speckit-plan/SKILL.md,sha256=qYLpzgLCIZ6
|
|
|
1335
1335
|
agentic_devtools/_bundled_skills/skills/speckit-specify/SKILL.md,sha256=HbHRbdphMqbtNw6fL6NcYCj6sSFmUyk2S4U0bZ9p_l4,13681
|
|
1336
1336
|
agentic_devtools/_bundled_skills/skills/write-github-commit-message/SKILL.md,sha256=Ep1lR8NDN117Iytj172VZgqazFiLpJ56Z7RXgaTnxR8,2626
|
|
1337
1337
|
agentic_devtools/_bundled_skills/skills/write-github-commit-message/commit-types.md,sha256=bTy_t68ZD6R87rFIzq9wybTu8Wudoahb7nB9IWC4bFo,1839
|
|
1338
|
-
agentic_devtools-0.2.
|
|
1339
|
-
agentic_devtools-0.2.
|
|
1340
|
-
agentic_devtools-0.2.
|
|
1341
|
-
agentic_devtools-0.2.
|
|
1342
|
-
agentic_devtools-0.2.
|
|
1338
|
+
agentic_devtools-0.2.641.dist-info/METADATA,sha256=t1ciUEPOijshlgXqDDEB9teJPyFa1Ecz11Yssdjn0ns,35594
|
|
1339
|
+
agentic_devtools-0.2.641.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
|
|
1340
|
+
agentic_devtools-0.2.641.dist-info/entry_points.txt,sha256=oHUiF-YvDtXSMTUh0E2bwYKGn4hZlIVbBRaQGSFXASc,13696
|
|
1341
|
+
agentic_devtools-0.2.641.dist-info/licenses/LICENSE,sha256=yBEDdICksxhBYLWoERKp9MTqwGnUF6Ryj9BTLwXTc6k,1082
|
|
1342
|
+
agentic_devtools-0.2.641.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|