invar-tools 1.17.9__py3-none-any.whl → 1.17.10__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.
- invar/shell/commands/guard.py +28 -1
- {invar_tools-1.17.9.dist-info → invar_tools-1.17.10.dist-info}/METADATA +1 -1
- {invar_tools-1.17.9.dist-info → invar_tools-1.17.10.dist-info}/RECORD +8 -8
- {invar_tools-1.17.9.dist-info → invar_tools-1.17.10.dist-info}/WHEEL +0 -0
- {invar_tools-1.17.9.dist-info → invar_tools-1.17.10.dist-info}/entry_points.txt +0 -0
- {invar_tools-1.17.9.dist-info → invar_tools-1.17.10.dist-info}/licenses/LICENSE +0 -0
- {invar_tools-1.17.9.dist-info → invar_tools-1.17.10.dist-info}/licenses/LICENSE-GPL +0 -0
- {invar_tools-1.17.9.dist-info → invar_tools-1.17.10.dist-info}/licenses/NOTICE +0 -0
invar/shell/commands/guard.py
CHANGED
|
@@ -261,7 +261,34 @@ def guard(
|
|
|
261
261
|
changed_result = handle_changed_mode(path)
|
|
262
262
|
if isinstance(changed_result, Failure):
|
|
263
263
|
if changed_result.failure() == "NO_CHANGES":
|
|
264
|
-
|
|
264
|
+
use_agent_output = _determine_output_mode(human, agent, json_output)
|
|
265
|
+
if use_agent_output:
|
|
266
|
+
import json
|
|
267
|
+
|
|
268
|
+
console.print(
|
|
269
|
+
json.dumps(
|
|
270
|
+
{
|
|
271
|
+
"status": "passed",
|
|
272
|
+
"static": {"passed": True, "errors": 0, "warnings": 0, "infos": 0},
|
|
273
|
+
"summary": {
|
|
274
|
+
"files_checked": 0,
|
|
275
|
+
"errors": 0,
|
|
276
|
+
"warnings": 0,
|
|
277
|
+
"infos": 0,
|
|
278
|
+
},
|
|
279
|
+
"fixes": [],
|
|
280
|
+
"verification_level": "STANDARD",
|
|
281
|
+
"doctest": {"passed": True, "output": ""},
|
|
282
|
+
"crosshair": {"status": "skipped", "reason": "no changed files"},
|
|
283
|
+
"property_tests": {
|
|
284
|
+
"status": "skipped",
|
|
285
|
+
"reason": "no changed files",
|
|
286
|
+
},
|
|
287
|
+
}
|
|
288
|
+
)
|
|
289
|
+
)
|
|
290
|
+
else:
|
|
291
|
+
console.print("[green]No changed files to verify.[/green]")
|
|
265
292
|
raise typer.Exit(0)
|
|
266
293
|
console.print(f"[red]Error:[/red] {changed_result.failure()}")
|
|
267
294
|
raise typer.Exit(1)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: invar-tools
|
|
3
|
-
Version: 1.17.
|
|
3
|
+
Version: 1.17.10
|
|
4
4
|
Summary: AI-native software engineering tools with design-by-contract verification
|
|
5
5
|
Project-URL: Homepage, https://github.com/tefx/invar
|
|
6
6
|
Project-URL: Documentation, https://github.com/tefx/invar#readme
|
|
@@ -2681,7 +2681,7 @@ invar/shell/ts_compiler.py,sha256=nA8brnOhThj9J_J3vAEGjDsM4NjbWQ_eX8Yf4pHPOgk,66
|
|
|
2681
2681
|
invar/shell/commands/__init__.py,sha256=MEkKwVyjI9DmkvBpJcuumXo2Pg_FFkfEr-Rr3nrAt7A,284
|
|
2682
2682
|
invar/shell/commands/doc.py,sha256=SOLDoCXXGxx_JU0PKXlAIGEF36PzconHmmAtL-rM6D4,13819
|
|
2683
2683
|
invar/shell/commands/feedback.py,sha256=lLxEeWW_71US_vlmorFrGXS8IARB9nbV6D0zruLs660,7640
|
|
2684
|
-
invar/shell/commands/guard.py,sha256=
|
|
2684
|
+
invar/shell/commands/guard.py,sha256=WXkeJ74N711p0uF042UWb7Ef9xm5sr0g7YSnqWcLY7w,24554
|
|
2685
2685
|
invar/shell/commands/hooks.py,sha256=W-SOnT4VQyUvXwipozkJwgEYfiOJGz7wksrbcdWegUg,2356
|
|
2686
2686
|
invar/shell/commands/init.py,sha256=rtoPFsfq7xRZ6lfTipWT1OejNK5wfzqu1ncXi1kizU0,23634
|
|
2687
2687
|
invar/shell/commands/merge.py,sha256=nuvKo8m32-OL-SCQlS4SLKmOZxQ3qj-1nGCx1Pgzifw,8183
|
|
@@ -2778,10 +2778,10 @@ invar/templates/skills/invar-reflect/template.md,sha256=Rr5hvbllvmd8jSLf_0ZjyKt6
|
|
|
2778
2778
|
invar/templates/skills/investigate/SKILL.md.jinja,sha256=cp6TBEixBYh1rLeeHOR1yqEnFqv1NZYePORMnavLkQI,3231
|
|
2779
2779
|
invar/templates/skills/propose/SKILL.md.jinja,sha256=6BuKiCqO1AEu3VtzMHy1QWGqr_xqG9eJlhbsKT4jev4,3463
|
|
2780
2780
|
invar/templates/skills/review/SKILL.md.jinja,sha256=ET5mbdSe_eKgJbi2LbgFC-z1aviKcHOBw7J5Q28fr4U,14105
|
|
2781
|
-
invar_tools-1.17.
|
|
2782
|
-
invar_tools-1.17.
|
|
2783
|
-
invar_tools-1.17.
|
|
2784
|
-
invar_tools-1.17.
|
|
2785
|
-
invar_tools-1.17.
|
|
2786
|
-
invar_tools-1.17.
|
|
2787
|
-
invar_tools-1.17.
|
|
2781
|
+
invar_tools-1.17.10.dist-info/METADATA,sha256=vrPyr-dwQzhiioYZ6zpfN6UV94cftLiuFD8c2V2AEmg,28596
|
|
2782
|
+
invar_tools-1.17.10.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
2783
|
+
invar_tools-1.17.10.dist-info/entry_points.txt,sha256=RwH_EhqgtFPsnO6RcrwrAb70Zyfb8Mh6uUtztWnUxGk,102
|
|
2784
|
+
invar_tools-1.17.10.dist-info/licenses/LICENSE,sha256=qeFksp4H4kfTgQxPCIu3OdagXyiZcgBlVfsQ6M5oFyk,10767
|
|
2785
|
+
invar_tools-1.17.10.dist-info/licenses/LICENSE-GPL,sha256=IvZfC6ZbP7CLjytoHVzvpDZpD-Z3R_qa1GdMdWlWQ6Q,35157
|
|
2786
|
+
invar_tools-1.17.10.dist-info/licenses/NOTICE,sha256=joEyMyFhFY8Vd8tTJ-a3SirI0m2Sd0WjzqYt3sdcglc,2561
|
|
2787
|
+
invar_tools-1.17.10.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|