vmware-debug 2.3.0__py3-none-any.whl → 2.3.1__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.
- vmware_debug/__init__.py +1 -1
- vmware_debug/cli.py +17 -1
- {vmware_debug-2.3.0.dist-info → vmware_debug-2.3.1.dist-info}/METADATA +8 -3
- {vmware_debug-2.3.0.dist-info → vmware_debug-2.3.1.dist-info}/RECORD +6 -6
- {vmware_debug-2.3.0.dist-info → vmware_debug-2.3.1.dist-info}/WHEEL +1 -1
- {vmware_debug-2.3.0.dist-info → vmware_debug-2.3.1.dist-info}/entry_points.txt +0 -0
vmware_debug/__init__.py
CHANGED
vmware_debug/cli.py
CHANGED
|
@@ -11,6 +11,7 @@ from __future__ import annotations
|
|
|
11
11
|
|
|
12
12
|
import json
|
|
13
13
|
import sys
|
|
14
|
+
from functools import wraps
|
|
14
15
|
from pathlib import Path
|
|
15
16
|
from typing import Optional
|
|
16
17
|
|
|
@@ -20,7 +21,7 @@ from rich.table import Table
|
|
|
20
21
|
|
|
21
22
|
from vmware_debug import __version__
|
|
22
23
|
from vmware_debug.mcp.tools import build_incident_timeline, list_symptom_categories
|
|
23
|
-
from vmware_policy import audited, cli_local
|
|
24
|
+
from vmware_policy import PolicyDenied, audited, cli_local, sanitize
|
|
24
25
|
|
|
25
26
|
|
|
26
27
|
def _harden_console_encoding() -> None:
|
|
@@ -53,6 +54,19 @@ app = typer.Typer(
|
|
|
53
54
|
console = Console()
|
|
54
55
|
|
|
55
56
|
|
|
57
|
+
def handle_cli_errors(func):
|
|
58
|
+
"""Render policy refusals after the audited wrapper has recorded the denial."""
|
|
59
|
+
@wraps(func)
|
|
60
|
+
def wrapper(*args, **kwargs):
|
|
61
|
+
try:
|
|
62
|
+
return func(*args, **kwargs)
|
|
63
|
+
except PolicyDenied as exc:
|
|
64
|
+
rule = f" (rule: {sanitize(exc.result.rule, 100)})" if exc.result.rule else ""
|
|
65
|
+
typer.echo(f"Denied by policy: {sanitize(exc.result.reason, 500)}{rule}", err=True)
|
|
66
|
+
raise typer.Exit(1) from None
|
|
67
|
+
return wrapper
|
|
68
|
+
|
|
69
|
+
|
|
56
70
|
@app.command()
|
|
57
71
|
@cli_local("prints the installed version")
|
|
58
72
|
def version() -> None:
|
|
@@ -61,6 +75,7 @@ def version() -> None:
|
|
|
61
75
|
|
|
62
76
|
|
|
63
77
|
@app.command()
|
|
78
|
+
@handle_cli_errors
|
|
64
79
|
@audited(tool="list_symptom_categories")
|
|
65
80
|
def categories() -> None:
|
|
66
81
|
"""List the symptom categories debug recognises and what to check for each."""
|
|
@@ -74,6 +89,7 @@ def categories() -> None:
|
|
|
74
89
|
|
|
75
90
|
|
|
76
91
|
@app.command()
|
|
92
|
+
@handle_cli_errors
|
|
77
93
|
@audited(tool="build_incident_timeline")
|
|
78
94
|
def triage(
|
|
79
95
|
events_file: Optional[Path] = typer.Option(
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: vmware-debug
|
|
3
|
-
Version: 2.3.
|
|
3
|
+
Version: 2.3.1
|
|
4
4
|
Summary: VMware diagnostic brain — offline incident triage, log/event correlation, and root-cause routing across the VMware skill family
|
|
5
5
|
Project-URL: Homepage, https://github.com/vmware-skills/VMware-Debug
|
|
6
6
|
Project-URL: Repository, https://github.com/vmware-skills/VMware-Debug
|
|
7
7
|
Project-URL: Issues, https://github.com/vmware-skills/VMware-Debug/issues
|
|
8
8
|
Project-URL: Changelog, https://github.com/vmware-skills/VMware-Debug/blob/main/RELEASE_NOTES.md
|
|
9
|
-
Author-email: Wei Zhou <
|
|
9
|
+
Author-email: Wei Zhou <zhouwei008@gmail.com>
|
|
10
10
|
License-Expression: MIT
|
|
11
11
|
Keywords: ai-ops,debug,diagnostics,mcp,rca,troubleshooting,vmware,vsphere
|
|
12
12
|
Classifier: Development Status :: 4 - Beta
|
|
@@ -14,7 +14,8 @@ Classifier: License :: OSI Approved :: MIT License
|
|
|
14
14
|
Classifier: Programming Language :: Python :: 3
|
|
15
15
|
Classifier: Topic :: System :: Monitoring
|
|
16
16
|
Requires-Python: >=3.10
|
|
17
|
-
Requires-Dist:
|
|
17
|
+
Requires-Dist: certifi>=2026.10.19
|
|
18
|
+
Requires-Dist: mcp[cli]<2.0,>=1.30
|
|
18
19
|
Requires-Dist: pyyaml<7.0,>=6.0
|
|
19
20
|
Requires-Dist: rich<15.0,>=13.0
|
|
20
21
|
Requires-Dist: typer<1.0,>=0.12
|
|
@@ -25,6 +26,8 @@ Description-Content-Type: text/markdown
|
|
|
25
26
|
|
|
26
27
|
# VMware Debug
|
|
27
28
|
|
|
29
|
+
For a read-only check of this skill with your model and agent host, use the shared [model-fit self-test](https://github.com/vmware-skills/marketplace/blob/main/MODEL_FIT_SELF_TEST.md) in the marketplace root.
|
|
30
|
+
|
|
28
31
|
> **Disclaimer**: Community-maintained open-source project, **not affiliated with,
|
|
29
32
|
> endorsed by, or sponsored by VMware, Inc. or Broadcom Inc.** "VMware" and
|
|
30
33
|
> "vSphere" are trademarks of Broadcom. Source is publicly auditable under the MIT
|
|
@@ -105,6 +108,8 @@ event actually is.
|
|
|
105
108
|
|
|
106
109
|
## Security
|
|
107
110
|
|
|
111
|
+
CLI policy refusals print the reason and rule, exit with code 1, and retain one `denied` audit row.
|
|
112
|
+
|
|
108
113
|
Offline and credential-free by construction: it connects to no vCenter/NSX/Aria, has no destructive surface on
|
|
109
114
|
VMware, and holds no secret to leak. The only writes are the local case ledger: evidence, gaps, hypotheses and
|
|
110
115
|
grade history are append-only; `timeline.md` is regenerated from the evidence, and `case.json` holds the current
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
vmware_debug/__init__.py,sha256=
|
|
2
|
-
vmware_debug/cli.py,sha256=
|
|
1
|
+
vmware_debug/__init__.py,sha256=j8ECx8s2eEC3ROlRNhSlH5UljOsOSNKlai9D6NbjHe0,376
|
|
2
|
+
vmware_debug/cli.py,sha256=AShbZTiMu_WuhfSbIB74ZhvLPRgOJHhrzzUEV_xYtZs,6284
|
|
3
3
|
vmware_debug/envelope.py,sha256=66AQzI_h4JoopUcFxHvqaFe48rYRZz0uX9Wdm5lDcuI,11235
|
|
4
4
|
vmware_debug/policy_roles.py,sha256=iaKA3rT5qg0tfjO59cZHjsJTF4xirIzmsxfkVytrgH0,844
|
|
5
5
|
vmware_debug/mcp/__init__.py,sha256=isuSzMWp1iXgJWGz2Q0JyUXlDTfcFfHNPSTHALuNHaA,220
|
|
@@ -26,7 +26,7 @@ vmware_debug/ops/cases/store.py,sha256=dIgdAR111_gDoZ4rYbTtccuiaQVdksMCDoZOHKmbW
|
|
|
26
26
|
vmware_debug/ops/cases/timeline.py,sha256=WbJg2xUrqyHxMERBFYA-tgU9Mmy67whH9GGh96R8ifk,7843
|
|
27
27
|
vmware_debug/rules/evidence_sources.yaml,sha256=w8YOdUtKw-oi-t9c5ePJaktx7CwZlfFinH8aQAQfhzo,11387
|
|
28
28
|
vmware_debug/rules/grading_rules.yaml,sha256=USCp7D2geU_CZgscvo8GMHEHZPgqbzbjqE-qwWG3QtA,3261
|
|
29
|
-
vmware_debug-2.3.
|
|
30
|
-
vmware_debug-2.3.
|
|
31
|
-
vmware_debug-2.3.
|
|
32
|
-
vmware_debug-2.3.
|
|
29
|
+
vmware_debug-2.3.1.dist-info/METADATA,sha256=2XYQYn0ppAvQEPW4Kh0V9xDKGWUp8stG0VzX5hOofHE,11883
|
|
30
|
+
vmware_debug-2.3.1.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
|
|
31
|
+
vmware_debug-2.3.1.dist-info/entry_points.txt,sha256=4d14JRHy0ouSOfCJyczaxUFH6p8AsHZNS19AKom0v4c,109
|
|
32
|
+
vmware_debug-2.3.1.dist-info/RECORD,,
|
|
File without changes
|