dhub-cli 0.1.0__tar.gz → 0.1.2__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.
Files changed (36) hide show
  1. {dhub_cli-0.1.0 → dhub_cli-0.1.2}/PKG-INFO +4 -4
  2. {dhub_cli-0.1.0 → dhub_cli-0.1.2}/README.md +2 -2
  3. {dhub_cli-0.1.0 → dhub_cli-0.1.2}/pyproject.toml +2 -2
  4. {dhub_cli-0.1.0 → dhub_cli-0.1.2}/src/dhub/cli/app.py +19 -1
  5. {dhub_cli-0.1.0 → dhub_cli-0.1.2}/src/dhub/cli/registry.py +5 -2
  6. {dhub_cli-0.1.0 → dhub_cli-0.1.2}/.gitignore +0 -0
  7. {dhub_cli-0.1.0 → dhub_cli-0.1.2}/src/dhub/__init__.py +0 -0
  8. {dhub_cli-0.1.0 → dhub_cli-0.1.2}/src/dhub/cli/__init__.py +0 -0
  9. {dhub_cli-0.1.0 → dhub_cli-0.1.2}/src/dhub/cli/auth.py +0 -0
  10. {dhub_cli-0.1.0 → dhub_cli-0.1.2}/src/dhub/cli/config.py +0 -0
  11. {dhub_cli-0.1.0 → dhub_cli-0.1.2}/src/dhub/cli/keys.py +0 -0
  12. {dhub_cli-0.1.0 → dhub_cli-0.1.2}/src/dhub/cli/org.py +0 -0
  13. {dhub_cli-0.1.0 → dhub_cli-0.1.2}/src/dhub/cli/runtime.py +0 -0
  14. {dhub_cli-0.1.0 → dhub_cli-0.1.2}/src/dhub/cli/search.py +0 -0
  15. {dhub_cli-0.1.0 → dhub_cli-0.1.2}/src/dhub/core/__init__.py +0 -0
  16. {dhub_cli-0.1.0 → dhub_cli-0.1.2}/src/dhub/core/install.py +0 -0
  17. {dhub_cli-0.1.0 → dhub_cli-0.1.2}/src/dhub/core/manifest.py +0 -0
  18. {dhub_cli-0.1.0 → dhub_cli-0.1.2}/src/dhub/core/runtime.py +0 -0
  19. {dhub_cli-0.1.0 → dhub_cli-0.1.2}/src/dhub/core/validation.py +0 -0
  20. {dhub_cli-0.1.0 → dhub_cli-0.1.2}/src/dhub/models.py +0 -0
  21. {dhub_cli-0.1.0 → dhub_cli-0.1.2}/tests/__init__.py +0 -0
  22. {dhub_cli-0.1.0 → dhub_cli-0.1.2}/tests/conftest.py +0 -0
  23. {dhub_cli-0.1.0 → dhub_cli-0.1.2}/tests/test_cli/__init__.py +0 -0
  24. {dhub_cli-0.1.0 → dhub_cli-0.1.2}/tests/test_cli/test_auth_cli.py +0 -0
  25. {dhub_cli-0.1.0 → dhub_cli-0.1.2}/tests/test_cli/test_keys_cli.py +0 -0
  26. {dhub_cli-0.1.0 → dhub_cli-0.1.2}/tests/test_cli/test_org_cli.py +0 -0
  27. {dhub_cli-0.1.0 → dhub_cli-0.1.2}/tests/test_cli/test_registry_cli.py +0 -0
  28. {dhub_cli-0.1.0 → dhub_cli-0.1.2}/tests/test_cli/test_runtime_cli.py +0 -0
  29. {dhub_cli-0.1.0 → dhub_cli-0.1.2}/tests/test_cli/test_search_cli.py +0 -0
  30. {dhub_cli-0.1.0 → dhub_cli-0.1.2}/tests/test_core/__init__.py +0 -0
  31. {dhub_cli-0.1.0 → dhub_cli-0.1.2}/tests/test_core/test_docx_integration.py +0 -0
  32. {dhub_cli-0.1.0 → dhub_cli-0.1.2}/tests/test_core/test_install.py +0 -0
  33. {dhub_cli-0.1.0 → dhub_cli-0.1.2}/tests/test_core/test_install_symlinks.py +0 -0
  34. {dhub_cli-0.1.0 → dhub_cli-0.1.2}/tests/test_core/test_manifest.py +0 -0
  35. {dhub_cli-0.1.0 → dhub_cli-0.1.2}/tests/test_core/test_runtime.py +0 -0
  36. {dhub_cli-0.1.0 → dhub_cli-0.1.2}/tests/test_core/test_validation.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dhub-cli
3
- Version: 0.1.0
3
+ Version: 0.1.2
4
4
  Summary: The CLI package manager for AI agent skills
5
5
  Project-URL: Homepage, https://github.com/lfiaschi/decision-hub
6
6
  Project-URL: Repository, https://github.com/lfiaschi/decision-hub
@@ -19,7 +19,7 @@ Requires-Python: >=3.11
19
19
  Requires-Dist: httpx>=0.27.0
20
20
  Requires-Dist: pyyaml>=6.0.0
21
21
  Requires-Dist: rich>=13.0.0
22
- Requires-Dist: typer[all]>=0.12.0
22
+ Requires-Dist: typer>=0.12.0
23
23
  Provides-Extra: dev
24
24
  Requires-Dist: pytest>=8.0.0; extra == 'dev'
25
25
  Description-Content-Type: text/markdown
@@ -34,10 +34,10 @@ The CLI package manager for AI agent skills.
34
34
 
35
35
  ```bash
36
36
  # Via uv
37
- uv tool install dhub
37
+ uv tool install dhub-cli
38
38
 
39
39
  # Via pipx
40
- pipx install dhub
40
+ pipx install dhub-cli
41
41
  ```
42
42
 
43
43
  ## Quick Start
@@ -8,10 +8,10 @@ The CLI package manager for AI agent skills.
8
8
 
9
9
  ```bash
10
10
  # Via uv
11
- uv tool install dhub
11
+ uv tool install dhub-cli
12
12
 
13
13
  # Via pipx
14
- pipx install dhub
14
+ pipx install dhub-cli
15
15
  ```
16
16
 
17
17
  ## Quick Start
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "dhub-cli"
3
- version = "0.1.0"
3
+ version = "0.1.2"
4
4
  description = "The CLI package manager for AI agent skills"
5
5
  requires-python = ">=3.11"
6
6
  license = "MIT"
@@ -19,7 +19,7 @@ classifiers = [
19
19
  "Topic :: Software Development :: Libraries",
20
20
  ]
21
21
  dependencies = [
22
- "typer[all]>=0.12.0",
22
+ "typer>=0.12.0",
23
23
  "rich>=13.0.0",
24
24
  "httpx>=0.27.0",
25
25
  "pyyaml>=6.0.0",
@@ -1,13 +1,31 @@
1
1
  """Main Typer app with subcommand registration."""
2
2
 
3
+ from importlib.metadata import version as pkg_version
4
+
3
5
  import typer
4
6
 
7
+
8
+ def _version_callback(value: bool) -> None:
9
+ if value:
10
+ typer.echo(f"dhub {pkg_version('dhub-cli')}")
11
+ raise typer.Exit()
12
+
13
+
5
14
  app = typer.Typer(
6
15
  name="dhub",
7
- help="Decision Hub - The package manager for AI agent skills",
8
16
  no_args_is_help=True,
9
17
  )
10
18
 
19
+
20
+ @app.callback()
21
+ def main(
22
+ version: bool = typer.Option(
23
+ False, "--version", "-V", help="Show version and exit.",
24
+ callback=_version_callback, is_eager=True,
25
+ ),
26
+ ) -> None:
27
+ """Decision Hub - The package manager for AI agent skills."""
28
+
11
29
  # Register top-level commands
12
30
  from dhub.cli.auth import login_command # noqa: E402
13
31
  from dhub.cli.registry import delete_command, install_command, list_command, publish_command # noqa: E402
@@ -93,12 +93,15 @@ def _create_zip(path: Path) -> bytes:
93
93
 
94
94
  def list_command() -> None:
95
95
  """List all published skills on the registry."""
96
- from dhub.cli.config import get_api_url
96
+ from dhub.cli.config import get_api_url, get_token
97
97
 
98
98
  api_url = get_api_url()
99
99
 
100
100
  with httpx.Client(timeout=30) as client:
101
- resp = client.get(f"{api_url}/v1/skills")
101
+ resp = client.get(
102
+ f"{api_url}/v1/skills",
103
+ headers={"Authorization": f"Bearer {get_token()}"},
104
+ )
102
105
  resp.raise_for_status()
103
106
  skills = resp.json()
104
107
 
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes