devtorch-cli 3.0.1__py3-none-any.whl → 3.0.2__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.
devtorch_cli/main.py CHANGED
@@ -5,6 +5,7 @@ import json
5
5
  import os
6
6
  import sys
7
7
  import types
8
+ from importlib.metadata import PackageNotFoundError, version
8
9
  from pathlib import Path
9
10
  from typing import Any
10
11
 
@@ -2175,6 +2176,26 @@ def cmd_metrics(args: argparse.Namespace) -> int:
2175
2176
  return 0
2176
2177
 
2177
2178
 
2179
+ def _version_info() -> str:
2180
+ """Return version + summary string for both packages."""
2181
+ try:
2182
+ core_version = version("devtorch-core")
2183
+ except PackageNotFoundError:
2184
+ core_version = "unknown"
2185
+ try:
2186
+ cli_version = version("devtorch-cli")
2187
+ except PackageNotFoundError:
2188
+ cli_version = "unknown"
2189
+ return (
2190
+ f"devtorch-core {core_version}\n"
2191
+ f" Governance SDK / library: .GCC repository, reasoning capture, audit,\n"
2192
+ f" MCP server, cloud sync, metrics, learning, and IDE hooks.\n"
2193
+ f"\n"
2194
+ f"devtorch-cli {cli_version}\n"
2195
+ f" Command-line interface: the `devtorch` command and console entry points."
2196
+ )
2197
+
2198
+
2178
2199
  def build_parser() -> argparse.ArgumentParser:
2179
2200
  epilog = (
2180
2201
  "Common commands:\n"
@@ -2204,6 +2225,12 @@ def build_parser() -> argparse.ArgumentParser:
2204
2225
  default=".",
2205
2226
  help="Path to the repository root (default: current directory).",
2206
2227
  )
2228
+ parser.add_argument(
2229
+ "--version",
2230
+ action="version",
2231
+ version=_version_info(),
2232
+ help="Show devtorch-core and devtorch-cli versions and summaries.",
2233
+ )
2207
2234
 
2208
2235
  subparsers = parser.add_subparsers(dest="command", required=False)
2209
2236
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: devtorch-cli
3
- Version: 3.0.1
3
+ Version: 3.0.2
4
4
  Summary: DevTorch — command-line interface for the devtorch-core governance SDK
5
5
  Author-email: Hemant Joshi <hemant@flotorch.ai>
6
6
  License: Apache-2.0
@@ -19,7 +19,7 @@ Classifier: Topic :: Software Development :: Libraries :: Python Modules
19
19
  Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
20
20
  Requires-Python: >=3.10
21
21
  Description-Content-Type: text/markdown
22
- Requires-Dist: devtorch-core>=3.0.1
22
+ Requires-Dist: devtorch-core>=3.0.2
23
23
  Provides-Extra: cloud
24
24
  Requires-Dist: devtorch-core[cloud]; extra == "cloud"
25
25
  Provides-Extra: mcp
@@ -2,12 +2,12 @@ devtorch_cli/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
2
2
  devtorch_cli/__main__.py,sha256=yOQ0W0lH4pSVd-goEkwkH24SCS405zHwDrhsCxQqCaA,171
3
3
  devtorch_cli/audit_cmds.py,sha256=ZTVB7lmB7pYCCZpuZQscmeitfvs7-9VMe9K8wP5Fkwk,8605
4
4
  devtorch_cli/capability_role_cmds.py,sha256=_j9rpresbPs496hBNGUVDszg2hq_qAq9JLGS4Bnf6nw,2975
5
- devtorch_cli/main.py,sha256=dwb2Xr7OtBNJEYk8IyU8NGeEAPADlN3venV9e1ti_0o,174178
5
+ devtorch_cli/main.py,sha256=ZWNMptVAzSnm0Q_ygGW3_s5qFKqAMN6x5vrU7hzqMJo,175118
6
6
  devtorch_cli/pr_reporter_cmd.py,sha256=wb9IRAWzWWXo7-esJDaIPHJTJS9y8WoTVlE1qepHgCU,1408
7
7
  devtorch_cli/pre_commit_cmds.py,sha256=w3PeUr6z2NoP_7I98E6REuGCs_0bZjdrpsIMPNEEF-o,1113
8
8
  devtorch_cli/session_cmds.py,sha256=hA6YhFkMwE0-an5LK4SswvVIaKuO4h-9V98RnUlqPGs,10280
9
- devtorch_cli-3.0.1.dist-info/METADATA,sha256=tqHM3EQuI5YTAkkGm8ujbF4bA_5rmpcrvdwp3G-UD3A,2272
10
- devtorch_cli-3.0.1.dist-info/WHEEL,sha256=K260EYznzXsJYBQGqmI8VTxEdiZYNvDZwW9cBh9-_MA,91
11
- devtorch_cli-3.0.1.dist-info/entry_points.txt,sha256=iimCDbtjqjoEbpySI9sfLJAsZmPkz2_nHtWoHFgMvIk,52
12
- devtorch_cli-3.0.1.dist-info/top_level.txt,sha256=FBW8lXo3q5SicN7Y27MikpGiBsjgQ_cWXE6mOUUQBPg,13
13
- devtorch_cli-3.0.1.dist-info/RECORD,,
9
+ devtorch_cli-3.0.2.dist-info/METADATA,sha256=oXsvfZMBUDu0cFybt2ZaHcqMnEDjlXNXRXUaJ8b0hMQ,2272
10
+ devtorch_cli-3.0.2.dist-info/WHEEL,sha256=K260EYznzXsJYBQGqmI8VTxEdiZYNvDZwW9cBh9-_MA,91
11
+ devtorch_cli-3.0.2.dist-info/entry_points.txt,sha256=iimCDbtjqjoEbpySI9sfLJAsZmPkz2_nHtWoHFgMvIk,52
12
+ devtorch_cli-3.0.2.dist-info/top_level.txt,sha256=FBW8lXo3q5SicN7Y27MikpGiBsjgQ_cWXE6mOUUQBPg,13
13
+ devtorch_cli-3.0.2.dist-info/RECORD,,