devflow-cli 10.2.3__py3-none-any.whl → 10.2.4__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.
- devflow_cli/__init__.py +1 -1
- devflow_cli/commands/adaptive.py +32 -2
- devflow_cli/core/automatic_evidence.py +45 -12
- devflow_cli/resources/commands/devflow.md +7 -0
- {devflow_cli-10.2.3.dist-info → devflow_cli-10.2.4.dist-info}/METADATA +1 -1
- {devflow_cli-10.2.3.dist-info → devflow_cli-10.2.4.dist-info}/RECORD +9 -9
- {devflow_cli-10.2.3.dist-info → devflow_cli-10.2.4.dist-info}/WHEEL +0 -0
- {devflow_cli-10.2.3.dist-info → devflow_cli-10.2.4.dist-info}/entry_points.txt +0 -0
- {devflow_cli-10.2.3.dist-info → devflow_cli-10.2.4.dist-info}/licenses/LICENSE +0 -0
devflow_cli/__init__.py
CHANGED
devflow_cli/commands/adaptive.py
CHANGED
|
@@ -949,8 +949,9 @@ def _verify_recovery(
|
|
|
949
949
|
Approbation manquante : chaque approve-command puis verify. Executable introuvable
|
|
950
950
|
(code 127) : corriger l'environnement puis verify. Echec d'un controle : trois voies,
|
|
951
951
|
le code (reopen implement), la validation (reopen de l'activite qui l'a inscrite) ou
|
|
952
|
-
un echec passager (relancer verify).
|
|
953
|
-
|
|
952
|
+
un echec passager (relancer verify). Lot commite avant done : decommiter puis
|
|
953
|
+
verify --refresh, ou bilan si le commit est pousse (KKS-724). Apres un verify
|
|
954
|
+
--refresh refuse, toutes les commandes verify portent --refresh.
|
|
954
955
|
"""
|
|
955
956
|
issue = shlex.quote(issue_id)
|
|
956
957
|
verify_command = {
|
|
@@ -987,6 +988,35 @@ def _verify_recovery(
|
|
|
987
988
|
"command": f"devflow adaptive status {issue}",
|
|
988
989
|
"purpose": "consulter l'etat du parcours",
|
|
989
990
|
}
|
|
991
|
+
if outcome.reason == "diff-inspection-failed" and outcome.committedBase:
|
|
992
|
+
return {
|
|
993
|
+
"kind": "committed-lot",
|
|
994
|
+
"summary": (
|
|
995
|
+
"Lot commite avant done. Commit non pousse : revenir a un arbre non "
|
|
996
|
+
"commite puis relancer verify. Commit deja pousse : terminer hors "
|
|
997
|
+
"Devflow et cloturer par un bilan."
|
|
998
|
+
),
|
|
999
|
+
"validations": [],
|
|
1000
|
+
"commands": [
|
|
1001
|
+
{
|
|
1002
|
+
"command": f"git reset --soft {shlex.quote(outcome.committedBase)}",
|
|
1003
|
+
"purpose": (
|
|
1004
|
+
"commit non pousse : decommiter sans perdre le contenu ; tous les "
|
|
1005
|
+
"commits faits depuis la base le sont, les controler par git log avant"
|
|
1006
|
+
),
|
|
1007
|
+
},
|
|
1008
|
+
{
|
|
1009
|
+
"command": f"devflow adaptive verify {issue} --refresh",
|
|
1010
|
+
"purpose": "commit non pousse : relancer la verification",
|
|
1011
|
+
},
|
|
1012
|
+
{
|
|
1013
|
+
"command": (
|
|
1014
|
+
f"devflow feedback add --type bilan --issue {issue} --what MOTIF"
|
|
1015
|
+
),
|
|
1016
|
+
"purpose": "commit deja pousse : cloturer le parcours hors Devflow",
|
|
1017
|
+
},
|
|
1018
|
+
],
|
|
1019
|
+
}
|
|
990
1020
|
if outcome.reason not in CHECK_FAILURE_REASONS:
|
|
991
1021
|
return {
|
|
992
1022
|
"kind": "status",
|
|
@@ -87,6 +87,8 @@ class AutomaticVerificationOutcome:
|
|
|
87
87
|
nextActivity: str = "verify"
|
|
88
88
|
pendingApprovals: tuple[str, ...] = ()
|
|
89
89
|
failures: tuple[VerificationFailure, ...] = ()
|
|
90
|
+
# Commit de la base d'implement quand le lot a ete commite avant done (KKS-724).
|
|
91
|
+
committedBase: str = ""
|
|
90
92
|
|
|
91
93
|
|
|
92
94
|
def select_validation_commands(
|
|
@@ -712,10 +714,11 @@ def run_automatic_verification(
|
|
|
712
714
|
and all(result.succeeded for result in security_results)
|
|
713
715
|
and not security_findings
|
|
714
716
|
)
|
|
717
|
+
diff_files = document_batch if document_batch is not None else changed_files
|
|
718
|
+
base_head = (state.implementBase or {}).get("head") or ""
|
|
715
719
|
diff_payload = _inspect_diff(
|
|
716
|
-
project_root,
|
|
717
|
-
|
|
718
|
-
feature_dir,
|
|
720
|
+
project_root, diff_files, feature_dir,
|
|
721
|
+
base_head=base_head, issue_id=state.issueId,
|
|
719
722
|
)
|
|
720
723
|
final_snapshot = snapshot_worktree(project_root)
|
|
721
724
|
try:
|
|
@@ -830,8 +833,14 @@ def run_automatic_verification(
|
|
|
830
833
|
)
|
|
831
834
|
if diff_payload["outcome"] != "passed":
|
|
832
835
|
safe_refresh_worklog(feature_dir)
|
|
836
|
+
committed_base = (
|
|
837
|
+
_committed_lot_base(final_snapshot.head, base_head)
|
|
838
|
+
if _missing_from_diff(final_snapshot, diff_files, feature_dir, project_root)
|
|
839
|
+
else ""
|
|
840
|
+
)
|
|
833
841
|
return AutomaticVerificationOutcome(
|
|
834
|
-
False, "diff-inspection-failed", "; ".join(diff_payload["findings"])
|
|
842
|
+
False, "diff-inspection-failed", "; ".join(diff_payload["findings"]),
|
|
843
|
+
committedBase=committed_base,
|
|
835
844
|
)
|
|
836
845
|
if state.profile == "deep" and coverage_payload["outcome"] != "passed":
|
|
837
846
|
safe_refresh_worklog(feature_dir)
|
|
@@ -1009,20 +1018,44 @@ def _test_execution_finding(command: list[str], output: str) -> str | None:
|
|
|
1009
1018
|
return None
|
|
1010
1019
|
|
|
1011
1020
|
|
|
1012
|
-
def
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1021
|
+
def _missing_from_diff(
|
|
1022
|
+
snapshot: WorktreeSnapshot, changed_files: list[str], feature_dir: Path,
|
|
1023
|
+
project_root: Path,
|
|
1024
|
+
) -> list[str]:
|
|
1016
1025
|
# Les fichiers du dossier de la feature peuvent etre ignores par git : ils ne sont pas
|
|
1017
1026
|
# exiges dans le diff courant.
|
|
1018
1027
|
feature_prefix = _feature_subtree(feature_dir, project_root) + "/"
|
|
1019
|
-
|
|
1020
|
-
path for path in set(changed_files) -
|
|
1028
|
+
return sorted(
|
|
1029
|
+
path for path in set(changed_files) - set(snapshot.files)
|
|
1030
|
+
if not path.startswith(feature_prefix)
|
|
1021
1031
|
)
|
|
1022
|
-
|
|
1032
|
+
|
|
1033
|
+
|
|
1034
|
+
def _committed_lot_base(head: str, base_head: str) -> str:
|
|
1035
|
+
"""Commit de la base quand HEAD l'a quitte, chaine vide sinon (KKS-724)."""
|
|
1036
|
+
return base_head if base_head and head and head != base_head else ""
|
|
1037
|
+
|
|
1038
|
+
|
|
1039
|
+
def _inspect_diff(
|
|
1040
|
+
project_root: Path, changed_files: list[str], feature_dir: Path,
|
|
1041
|
+
*, base_head: str = "", issue_id: str = "ISSUE_ID",
|
|
1042
|
+
) -> dict:
|
|
1043
|
+
findings: list[str] = []
|
|
1044
|
+
snapshot = snapshot_worktree(project_root)
|
|
1045
|
+
missing = _missing_from_diff(snapshot, changed_files, feature_dir, project_root)
|
|
1046
|
+
committed_base = _committed_lot_base(snapshot.head, base_head)
|
|
1047
|
+
if missing and committed_base:
|
|
1048
|
+
findings.append(
|
|
1049
|
+
"fichiers implementes absents du diff courant : " + ", ".join(missing)
|
|
1050
|
+
+ " ; le lot a ete commite avant done. Commit non pousse : "
|
|
1051
|
+
f"git reset --soft {committed_base} (decommite tout ce qui suit la base : "
|
|
1052
|
+
f"controler git log {committed_base}..HEAD avant), puis "
|
|
1053
|
+
f"devflow adaptive verify {shlex.quote(issue_id)} --refresh. Commit deja pousse : "
|
|
1054
|
+
"terminer hors Devflow et cloturer par devflow feedback add --type bilan"
|
|
1055
|
+
)
|
|
1056
|
+
elif missing:
|
|
1023
1057
|
findings.append(
|
|
1024
1058
|
"fichiers implementes absents du diff courant : " + ", ".join(missing)
|
|
1025
|
-
+ " ; cause possible : lot commite entre implement et verify"
|
|
1026
1059
|
)
|
|
1027
1060
|
|
|
1028
1061
|
diff_result = run_verifications(
|
|
@@ -44,6 +44,13 @@ Devflow : le dire, avec la cause, et traiter la demande hors Devflow.
|
|
|
44
44
|
CLI plante (traceback, commande inconnue), sortir du parcours : terminer
|
|
45
45
|
la feature hors Devflow, clôturer par un `bilan` dont `--what` indique
|
|
46
46
|
l'abandon et sa cause, et indiquer cette cause dans le compte rendu.
|
|
47
|
+
|
|
48
|
+
Ne rien commiter avant la clôture de `done` : un commit rend toutes les
|
|
49
|
+
preuves périmées, et `verify --refresh` ne sait pas inspecter un lot
|
|
50
|
+
commité. Une retouche faite après `verify` (correctif de revue,
|
|
51
|
+
documentation) se valide par `devflow adaptive verify ISSUE_ID --refresh`
|
|
52
|
+
tant que rien n'est commité, puis par une réouverture de `review` si la
|
|
53
|
+
revue est périmée. Commit, push et PR viennent après `done`.
|
|
47
54
|
8. Afficher ensuite `devflow adaptive status ISSUE_ID`.
|
|
48
55
|
|
|
49
56
|
## Retours d'usage
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: devflow-cli
|
|
3
|
-
Version: 10.2.
|
|
3
|
+
Version: 10.2.4
|
|
4
4
|
Summary: Workflow adaptatif pour Claude Code : profils, preuves et contrats d'activité
|
|
5
5
|
Project-URL: Homepage, https://github.com/sopequenoteck/devflow
|
|
6
6
|
Project-URL: Repository, https://github.com/sopequenoteck/devflow
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
devflow_cli/__init__.py,sha256=
|
|
1
|
+
devflow_cli/__init__.py,sha256=_Fbfdy4HxavVa8uh0Wxlrd9xyRwsaxn-tNMxxw7Pv3s,871
|
|
2
2
|
devflow_cli/cli.py,sha256=QQktLkHK1cEAj0ZlEuGKYumm3xJUHM-aeC-E2RgfcEY,2136
|
|
3
3
|
devflow_cli/adapters/__init__.py,sha256=z1J7_YJHcgak2a6dTZpOUKKwf-K7UwRqGzS8XY9duC0,299
|
|
4
4
|
devflow_cli/adapters/agents.py,sha256=-9zmNlFmQfP2pOGxA3_SSKij8ScR76J4-sgv4GMBWEI,18530
|
|
5
5
|
devflow_cli/adapters/linear.py,sha256=xHKjMuL3fFJEDBF65pPJ-yWHpXom999UAU2A0C7_QeI,8362
|
|
6
6
|
devflow_cli/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
|
-
devflow_cli/commands/adaptive.py,sha256=
|
|
7
|
+
devflow_cli/commands/adaptive.py,sha256=J2QS249_0T-B1__ST3qTG3GW3lxDX9WQNZYjCEz_uTc,66416
|
|
8
8
|
devflow_cli/commands/assess.py,sha256=V-E3ft41ljCrqp2WLjR1Dqw-JtswcqsK2nD1-euNbNE,5655
|
|
9
9
|
devflow_cli/commands/check.py,sha256=nJOHVFvgT3Nq70g-4QGrSDZVwCSetu6g7snZcfLFf9I,4421
|
|
10
10
|
devflow_cli/commands/docs_sync.py,sha256=Xc0mulpNTjDyeUDumKL7VNG0eumAf3016wEM_dqXpSU,1021
|
|
@@ -22,7 +22,7 @@ devflow_cli/core/adaptive_workflow.py,sha256=DU8iciNOeEDco5uwQUeX9E9Kc2WwaVPoRfW
|
|
|
22
22
|
devflow_cli/core/agent_failure.py,sha256=iX4q249lAHeVdD_ZF1aObmU-FX6sjfYP9dfLSnWGAD0,3771
|
|
23
23
|
devflow_cli/core/agent_run_marker.py,sha256=QW3ScA2ZpqfQdUo5ANTbenDVyY2iHpB_wTaN6VUKlzc,3451
|
|
24
24
|
devflow_cli/core/assessment.py,sha256=ACtJbXq1qZjVfeERjy8Qg6-ioLfSMUBVQm2l-mtGwgI,11522
|
|
25
|
-
devflow_cli/core/automatic_evidence.py,sha256=
|
|
25
|
+
devflow_cli/core/automatic_evidence.py,sha256=SkqG-K5fh9PGJvYbyoxMsTSptHLCFlDmeiCD6HfANw0,44421
|
|
26
26
|
devflow_cli/core/contract_schemas.py,sha256=M0Twbt_SVVfuPa7udC-EJuR3pTl9pWrxQUCohIsg1h0,8477
|
|
27
27
|
devflow_cli/core/decisions.py,sha256=tFYKNDaztMvnhLfVGJKIux5zaSjEPx2nwXs5nb2qv4U,6308
|
|
28
28
|
devflow_cli/core/docgen.py,sha256=47JoVDWetkcctgHwJZC67AVebOKgl10VB9hZ3Xr63mo,3908
|
|
@@ -55,11 +55,11 @@ devflow_cli/utils/console.py,sha256=t7cpyeEluWj4v_O_KFSI59iqXK4GiSXPuxlsr8q5zoQ,
|
|
|
55
55
|
devflow_cli/utils/logging.py,sha256=ZL7DYB7rQn_94KKG7A6_IqONddR-XubJ4MhG3bGPKRI,1840
|
|
56
56
|
devflow_cli/utils/paths.py,sha256=CH81dZZTI2vjgl8mck6QcAChxoBpujmKZ0vVKhKmXEY,8176
|
|
57
57
|
devflow_cli/utils/strings.py,sha256=bfFXCwBDnFxshgZOYfy6mtysnjiaWO1wFnqBf7HLg4o,351
|
|
58
|
-
devflow_cli/resources/commands/devflow.md,sha256=
|
|
58
|
+
devflow_cli/resources/commands/devflow.md,sha256=XLSvVlp0qNicP-SwiDI89jOTmquXzYH5hz1lXF4DGqA,3905
|
|
59
59
|
devflow_cli/resources/commands/devflow.status.md,sha256=tqjQ1IboU99ztG6C4nunBHGJCvMn3qDqx3AoF4SPjCk,338
|
|
60
60
|
devflow_cli/resources/templates/constitution-template.md,sha256=uSzNuwF-xIRx8cHt9gloynRjNgDGmnN5z2Xck6fCOsI,2102
|
|
61
|
-
devflow_cli-10.2.
|
|
62
|
-
devflow_cli-10.2.
|
|
63
|
-
devflow_cli-10.2.
|
|
64
|
-
devflow_cli-10.2.
|
|
65
|
-
devflow_cli-10.2.
|
|
61
|
+
devflow_cli-10.2.4.dist-info/METADATA,sha256=fIAIsN_CykKKaChlhNwc4y2inDpE_fRZZUi9LyGokmk,6674
|
|
62
|
+
devflow_cli-10.2.4.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
|
|
63
|
+
devflow_cli-10.2.4.dist-info/entry_points.txt,sha256=GVJ6bMvFpqyO5589iC4nFKeGTpGIW8aKn_QPPpSZ6kU,48
|
|
64
|
+
devflow_cli-10.2.4.dist-info/licenses/LICENSE,sha256=v79PvnmqOdKhQiOa_QcWxng4q8GuGscLOwi7ygUpwpo,1070
|
|
65
|
+
devflow_cli-10.2.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|