agentgov-cli 0.1.17__tar.gz → 0.1.18__tar.gz
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.
- {agentgov_cli-0.1.17 → agentgov_cli-0.1.18}/PKG-INFO +1 -1
- {agentgov_cli-0.1.17 → agentgov_cli-0.1.18}/agentgov_cli/main.py +39 -0
- {agentgov_cli-0.1.17 → agentgov_cli-0.1.18}/pyproject.toml +1 -1
- {agentgov_cli-0.1.17 → agentgov_cli-0.1.18}/.gitignore +0 -0
- {agentgov_cli-0.1.17 → agentgov_cli-0.1.18}/README.md +0 -0
- {agentgov_cli-0.1.17 → agentgov_cli-0.1.18}/agentgov_cli/__init__.py +0 -0
- {agentgov_cli-0.1.17 → agentgov_cli-0.1.18}/agentgov_cli/asset_manifest.py +0 -0
- {agentgov_cli-0.1.17 → agentgov_cli-0.1.18}/agentgov_cli/claude_env.py +0 -0
- {agentgov_cli-0.1.17 → agentgov_cli-0.1.18}/agentgov_cli/client_assets/commands/workitem.md +0 -0
- {agentgov_cli-0.1.17 → agentgov_cli-0.1.18}/agentgov_cli/client_assets/hooks/pretooluse_pathguard.py +0 -0
- {agentgov_cli-0.1.17 → agentgov_cli-0.1.18}/agentgov_cli/client_assets/hooks/sessionstart_register.py +0 -0
- {agentgov_cli-0.1.17 → agentgov_cli-0.1.18}/agentgov_cli/client_assets/hooks/userpromptsubmit_workitem.py +0 -0
- {agentgov_cli-0.1.17 → agentgov_cli-0.1.18}/agentgov_cli/client_assets/managed-settings.json.tmpl +0 -0
- {agentgov_cli-0.1.17 → agentgov_cli-0.1.18}/agentgov_cli/client_assets/statusline/agentgov_statusline.sh +0 -0
- {agentgov_cli-0.1.17 → agentgov_cli-0.1.18}/agentgov_cli/commands/__init__.py +0 -0
- {agentgov_cli-0.1.17 → agentgov_cli-0.1.18}/agentgov_cli/commands/doctor.py +0 -0
- {agentgov_cli-0.1.17 → agentgov_cli-0.1.18}/agentgov_cli/commands/gateway.py +0 -0
- {agentgov_cli-0.1.17 → agentgov_cli-0.1.18}/agentgov_cli/commands/install.py +0 -0
- {agentgov_cli-0.1.17 → agentgov_cli-0.1.18}/agentgov_cli/commands/login.py +0 -0
- {agentgov_cli-0.1.17 → agentgov_cli-0.1.18}/agentgov_cli/commands/register_device.py +0 -0
- {agentgov_cli-0.1.17 → agentgov_cli-0.1.18}/agentgov_cli/commands/status.py +0 -0
- {agentgov_cli-0.1.17 → agentgov_cli-0.1.18}/agentgov_cli/commands/uninstall.py +0 -0
- {agentgov_cli-0.1.17 → agentgov_cli-0.1.18}/agentgov_cli/commands/workitem.py +0 -0
- {agentgov_cli-0.1.17 → agentgov_cli-0.1.18}/agentgov_cli/commands/wrap.py +0 -0
- {agentgov_cli-0.1.17 → agentgov_cli-0.1.18}/agentgov_cli/gateway_process.py +0 -0
- {agentgov_cli-0.1.17 → agentgov_cli-0.1.18}/agentgov_cli/loopback.py +0 -0
- {agentgov_cli-0.1.17 → agentgov_cli-0.1.18}/agentgov_cli/port_resolver.py +0 -0
- {agentgov_cli-0.1.17 → agentgov_cli-0.1.18}/hatch_build.py +0 -0
|
@@ -21,6 +21,45 @@ app = typer.Typer(
|
|
|
21
21
|
help="AgentGov CLI. See CLAUDE.md §6.3 + §13/§14.",
|
|
22
22
|
no_args_is_help=True,
|
|
23
23
|
)
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
def _print_version(value: bool) -> None:
|
|
27
|
+
"""`agentgov --version`.
|
|
28
|
+
|
|
29
|
+
The Setup page has told every developer to run this since it was written, and
|
|
30
|
+
until now it errored with "No such option: --version" — so the FIRST command
|
|
31
|
+
in the documented install path failed, for every client, on every machine.
|
|
32
|
+
|
|
33
|
+
It matters beyond tidiness. Half the diagnoses in this product turn on which
|
|
34
|
+
version is installed: `doctor`'s hook-version check compares assets against
|
|
35
|
+
`cli_version()`, and a stale CLI is the usual reason hooks are out of date.
|
|
36
|
+
Asking someone to report their version and handing them a command that does
|
|
37
|
+
not exist is the worst possible first impression of a governance tool.
|
|
38
|
+
|
|
39
|
+
Reads the installed distribution metadata rather than a hardcoded string, so
|
|
40
|
+
it cannot drift from what pip actually installed — the same source `doctor`
|
|
41
|
+
already compares against, which is what makes the two agree.
|
|
42
|
+
"""
|
|
43
|
+
if not value:
|
|
44
|
+
return
|
|
45
|
+
from .asset_manifest import cli_version
|
|
46
|
+
|
|
47
|
+
typer.echo(f"agentgov {cli_version()}")
|
|
48
|
+
raise typer.Exit()
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
@app.callback()
|
|
52
|
+
def _root(
|
|
53
|
+
_version: bool = typer.Option(
|
|
54
|
+
False,
|
|
55
|
+
"--version",
|
|
56
|
+
"-V",
|
|
57
|
+
callback=_print_version,
|
|
58
|
+
is_eager=True,
|
|
59
|
+
help="Show the installed CLI version and exit.",
|
|
60
|
+
),
|
|
61
|
+
) -> None:
|
|
62
|
+
"""Root options. Commands are registered below."""
|
|
24
63
|
app.command("login", help="Attach this machine to a user in the control tower (§13.5).")(login.run)
|
|
25
64
|
app.command(
|
|
26
65
|
"register-device",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# PyPI: `agentgov` was rejected as too similar to existing `agent-gov`.
|
|
3
3
|
# Package name is agentgov-cli; the console command it installs is still `agentgov`.
|
|
4
4
|
name = "agentgov-cli"
|
|
5
|
-
version = "0.1.
|
|
5
|
+
version = "0.1.18"
|
|
6
6
|
description = "AgentGov CLI — wrap Claude Code, bind work items, check gateway health."
|
|
7
7
|
readme = "README.md"
|
|
8
8
|
license = { text = "Apache-2.0" }
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{agentgov_cli-0.1.17 → agentgov_cli-0.1.18}/agentgov_cli/client_assets/hooks/pretooluse_pathguard.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{agentgov_cli-0.1.17 → agentgov_cli-0.1.18}/agentgov_cli/client_assets/managed-settings.json.tmpl
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|