agentic-devtools 0.2.652__py3-none-any.whl → 0.2.654__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/ci/pipeline/session_evidence_summary.py +12 -0
- agentic_devtools/cli/ci/pipeline/writer_outcome.py +38 -0
- {agentic_devtools-0.2.652.dist-info → agentic_devtools-0.2.654.dist-info}/METADATA +1 -1
- {agentic_devtools-0.2.652.dist-info → agentic_devtools-0.2.654.dist-info}/RECORD +8 -7
- {agentic_devtools-0.2.652.dist-info → agentic_devtools-0.2.654.dist-info}/WHEEL +0 -0
- {agentic_devtools-0.2.652.dist-info → agentic_devtools-0.2.654.dist-info}/entry_points.txt +0 -0
- {agentic_devtools-0.2.652.dist-info → agentic_devtools-0.2.654.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.654'
|
|
22
|
+
__version_tuple__ = version_tuple = (0, 2, 654)
|
|
23
23
|
|
|
24
24
|
__commit_id__ = commit_id = None
|
|
@@ -94,3 +94,15 @@ def _render_state_snapshot(
|
|
|
94
94
|
f"- Labels: {labels}",
|
|
95
95
|
]
|
|
96
96
|
return "\n".join(lines)
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
def combine_current_run_session_evidence(
|
|
100
|
+
session_state: SessionState | None,
|
|
101
|
+
lifecycle_state: SessionState | None,
|
|
102
|
+
) -> SessionState | tuple[SessionState, SessionState] | None:
|
|
103
|
+
"""Return current-run evidence, preserving source identity and order."""
|
|
104
|
+
if session_state is None:
|
|
105
|
+
return lifecycle_state
|
|
106
|
+
if lifecycle_state is None:
|
|
107
|
+
return session_state
|
|
108
|
+
return session_state, lifecycle_state
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"""Classify writer delivery from commit identities and caller-supplied evidence."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import re
|
|
6
|
+
from collections.abc import Iterable
|
|
7
|
+
from enum import StrEnum
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class WriterOutcome(StrEnum):
|
|
11
|
+
"""Outcome of a completed writer session."""
|
|
12
|
+
|
|
13
|
+
PUSHED_WITH_EVIDENCE = "PUSHED_WITH_EVIDENCE"
|
|
14
|
+
PUSHED_WITHOUT_EVIDENCE = "PUSHED_WITHOUT_EVIDENCE"
|
|
15
|
+
NO_PUSH = "NO_PUSH"
|
|
16
|
+
UNKNOWN = "UNKNOWN"
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
def classify_writer_outcome(
|
|
20
|
+
*,
|
|
21
|
+
dispatch_head_sha: str,
|
|
22
|
+
current_head_sha: str,
|
|
23
|
+
session_finished: bool,
|
|
24
|
+
evidence_head_shas: Iterable[str],
|
|
25
|
+
) -> WriterOutcome:
|
|
26
|
+
"""Classify a finished writer without authenticating evidence provenance."""
|
|
27
|
+
evidence = list(evidence_head_shas)
|
|
28
|
+
supplied_shas = [dispatch_head_sha, current_head_sha, *evidence]
|
|
29
|
+
valid_shas = [re.fullmatch(r"[0-9A-Fa-f]{40}", sha) is not None for sha in supplied_shas]
|
|
30
|
+
normalized_shas = [sha.lower() for sha in supplied_shas]
|
|
31
|
+
if not session_finished or not all(valid_shas):
|
|
32
|
+
return WriterOutcome.UNKNOWN
|
|
33
|
+
dispatch_head, current_head, *normalized_evidence = normalized_shas
|
|
34
|
+
if dispatch_head == current_head:
|
|
35
|
+
return WriterOutcome.NO_PUSH
|
|
36
|
+
if current_head in normalized_evidence:
|
|
37
|
+
return WriterOutcome.PUSHED_WITH_EVIDENCE
|
|
38
|
+
return WriterOutcome.PUSHED_WITHOUT_EVIDENCE
|
|
@@ -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=c1oOvw3eGj1r-26s-W1qmLVS9FThIXr4YPh4SCA139s,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
|
|
@@ -348,7 +348,7 @@ agentic_devtools/cli/ci/pipeline/runner.py,sha256=0lXe0sr8GB9VWejOIHZimWy9GF_obR
|
|
|
348
348
|
agentic_devtools/cli/ci/pipeline/runner_diff_fingerprint.py,sha256=EpasXQX_wUpK3m3jRPTNJCbDU0yDAQQlsg1CynvuKXg,2055
|
|
349
349
|
agentic_devtools/cli/ci/pipeline/runner_diff_parser.py,sha256=T3ofZoUxKGZaGSyx5dF9yc3ddwRh7tKXWRA7lDaT59Y,17369
|
|
350
350
|
agentic_devtools/cli/ci/pipeline/session_detector.py,sha256=5M-vxpxu12BVFz-OQEFxyCs_6IoEBzcw8IqeOiXofJU,66633
|
|
351
|
-
agentic_devtools/cli/ci/pipeline/session_evidence_summary.py,sha256=
|
|
351
|
+
agentic_devtools/cli/ci/pipeline/session_evidence_summary.py,sha256=BK2-eSZg0vOfRNDnuJZjANeZlHZ6Je6ryO2xa0jrfhk,4557
|
|
352
352
|
agentic_devtools/cli/ci/pipeline/snapshot_builder.py,sha256=WxMSAsfK1h1StwkWAOVHgaorvBpKyjeCAcD1ekGHt8g,20116
|
|
353
353
|
agentic_devtools/cli/ci/pipeline/snapshot_ci.py,sha256=nvtqRVSEnjWUSCXLEUVa9-JBmMXV08cOLEczogorNTc,4531
|
|
354
354
|
agentic_devtools/cli/ci/pipeline/snapshot_models.py,sha256=htimdF2kUdcnNzIlhbZ_6bT-dzo72bVeMqgxnr0dX0c,12610
|
|
@@ -361,6 +361,7 @@ agentic_devtools/cli/ci/pipeline/suggestions.py,sha256=s2FB-y1gd73R3P_5X2CSQJfZP
|
|
|
361
361
|
agentic_devtools/cli/ci/pipeline/summary.py,sha256=bsfmYci7xiMrQC8UkCUm_weWqOHLg3Lri7NAcCZmLpg,20676
|
|
362
362
|
agentic_devtools/cli/ci/pipeline/title_utils.py,sha256=eDkE79WMJdiQ157VEs4NmG0M5FUKtazfDyHXNhMWNfo,708
|
|
363
363
|
agentic_devtools/cli/ci/pipeline/validation_evidence.py,sha256=6fInkdE_0AaQICUgHsb89ISebb35yb0SOaiJNKL7Ywk,6842
|
|
364
|
+
agentic_devtools/cli/ci/pipeline/writer_outcome.py,sha256=Dzp_NqOB5q8IL8CHO8xnZlLxHTbtJfNIeau7kj2bTmM,1333
|
|
364
365
|
agentic_devtools/cli/ci/pipeline/actions/__init__.py,sha256=sqt2dc9zoLEz5U3GVEBMwbPlFtKnayWmx_E5by_oyrM,1844
|
|
365
366
|
agentic_devtools/cli/ci/pipeline/actions/apply_suggestions.py,sha256=CIPMgfFSEEQfUnE9bv3tK7mKpVtgVbmcasuqcp4n8xY,24147
|
|
366
367
|
agentic_devtools/cli/ci/pipeline/actions/approval_entry.py,sha256=G6nR120RmuOL2lf8Hi8EczER-r94lGWyzXnbCeA-YJY,1911
|
|
@@ -1342,8 +1343,8 @@ agentic_devtools/_bundled_skills/skills/speckit-plan/SKILL.md,sha256=qYLpzgLCIZ6
|
|
|
1342
1343
|
agentic_devtools/_bundled_skills/skills/speckit-specify/SKILL.md,sha256=HbHRbdphMqbtNw6fL6NcYCj6sSFmUyk2S4U0bZ9p_l4,13681
|
|
1343
1344
|
agentic_devtools/_bundled_skills/skills/write-github-commit-message/SKILL.md,sha256=Ep1lR8NDN117Iytj172VZgqazFiLpJ56Z7RXgaTnxR8,2626
|
|
1344
1345
|
agentic_devtools/_bundled_skills/skills/write-github-commit-message/commit-types.md,sha256=bTy_t68ZD6R87rFIzq9wybTu8Wudoahb7nB9IWC4bFo,1839
|
|
1345
|
-
agentic_devtools-0.2.
|
|
1346
|
-
agentic_devtools-0.2.
|
|
1347
|
-
agentic_devtools-0.2.
|
|
1348
|
-
agentic_devtools-0.2.
|
|
1349
|
-
agentic_devtools-0.2.
|
|
1346
|
+
agentic_devtools-0.2.654.dist-info/METADATA,sha256=7KNZQscNwT6AHo06v5n17aZFrGmpyp6yRN7qooZQVug,35594
|
|
1347
|
+
agentic_devtools-0.2.654.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
|
|
1348
|
+
agentic_devtools-0.2.654.dist-info/entry_points.txt,sha256=oHUiF-YvDtXSMTUh0E2bwYKGn4hZlIVbBRaQGSFXASc,13696
|
|
1349
|
+
agentic_devtools-0.2.654.dist-info/licenses/LICENSE,sha256=yBEDdICksxhBYLWoERKp9MTqwGnUF6Ryj9BTLwXTc6k,1082
|
|
1350
|
+
agentic_devtools-0.2.654.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|