nepher-cli-test 0.2.5__tar.gz → 0.2.7__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 (28) hide show
  1. {nepher_cli_test-0.2.5 → nepher_cli_test-0.2.7}/PKG-INFO +6 -2
  2. {nepher_cli_test-0.2.5 → nepher_cli_test-0.2.7}/README.test.md +5 -1
  3. {nepher_cli_test-0.2.5 → nepher_cli_test-0.2.7}/pyproject.toml +1 -1
  4. {nepher_cli_test-0.2.5 → nepher_cli_test-0.2.7}/src/nepher_cli/__init__.py +1 -1
  5. {nepher_cli_test-0.2.5 → nepher_cli_test-0.2.7}/src/nepher_cli/commands/account.py +23 -5
  6. {nepher_cli_test-0.2.5 → nepher_cli_test-0.2.7}/.gitignore +0 -0
  7. {nepher_cli_test-0.2.5 → nepher_cli_test-0.2.7}/src/nepher_cli/__main__.py +0 -0
  8. {nepher_cli_test-0.2.5 → nepher_cli_test-0.2.7}/src/nepher_cli/cli.py +0 -0
  9. {nepher_cli_test-0.2.5 → nepher_cli_test-0.2.7}/src/nepher_cli/cli_test.py +0 -0
  10. {nepher_cli_test-0.2.5 → nepher_cli_test-0.2.7}/src/nepher_cli/commands/__init__.py +0 -0
  11. {nepher_cli_test-0.2.5 → nepher_cli_test-0.2.7}/src/nepher_cli/commands/envhub.py +0 -0
  12. {nepher_cli_test-0.2.5 → nepher_cli_test-0.2.7}/src/nepher_cli/commands/hackathon.py +0 -0
  13. {nepher_cli_test-0.2.5 → nepher_cli_test-0.2.7}/src/nepher_cli/commands/highlight.py +0 -0
  14. {nepher_cli_test-0.2.5 → nepher_cli_test-0.2.7}/src/nepher_cli/commands/simstore.py +0 -0
  15. {nepher_cli_test-0.2.5 → nepher_cli_test-0.2.7}/src/nepher_cli/commands/tournament.py +0 -0
  16. {nepher_cli_test-0.2.5 → nepher_cli_test-0.2.7}/src/nepher_cli/config.py +0 -0
  17. {nepher_cli_test-0.2.5 → nepher_cli_test-0.2.7}/src/nepher_cli/core/__init__.py +0 -0
  18. {nepher_cli_test-0.2.5 → nepher_cli_test-0.2.7}/src/nepher_cli/core/credentials.py +0 -0
  19. {nepher_cli_test-0.2.5 → nepher_cli_test-0.2.7}/src/nepher_cli/core/http.py +0 -0
  20. {nepher_cli_test-0.2.5 → nepher_cli_test-0.2.7}/src/nepher_cli/envhub/__init__.py +0 -0
  21. {nepher_cli_test-0.2.5 → nepher_cli_test-0.2.7}/src/nepher_cli/envhub/cache.py +0 -0
  22. {nepher_cli_test-0.2.5 → nepher_cli_test-0.2.7}/src/nepher_cli/envhub/config.py +0 -0
  23. {nepher_cli_test-0.2.5 → nepher_cli_test-0.2.7}/src/nepher_cli/py.typed +0 -0
  24. {nepher_cli_test-0.2.5 → nepher_cli_test-0.2.7}/src/nepher_cli/tournament/__init__.py +0 -0
  25. {nepher_cli_test-0.2.5 → nepher_cli_test-0.2.7}/src/nepher_cli/tournament/agent_check.py +0 -0
  26. {nepher_cli_test-0.2.5 → nepher_cli_test-0.2.7}/src/nepher_cli/tournament/api.py +0 -0
  27. {nepher_cli_test-0.2.5 → nepher_cli_test-0.2.7}/src/nepher_cli/tournament/packer.py +0 -0
  28. {nepher_cli_test-0.2.5 → nepher_cli_test-0.2.7}/src/nepher_cli/tournament/wallet.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nepher-cli-test
3
- Version: 0.2.5
3
+ Version: 0.2.7
4
4
  Summary: npcli-test — Nepher CLI for staging (api.staging.nepher.ai)
5
5
  Project-URL: Homepage, https://github.com/nepher-ai/nepher-cli
6
6
  Author: Nepher
@@ -160,9 +160,13 @@ Full options:
160
160
 
161
161
  ### API Keys
162
162
 
163
+ `list` / `create` / `revoke` need a **JWT session** from `npcli-test account login`.
164
+ Do **not** pass `--api-key` on these commands (that flag sends `X-API-Key`, which the account API rejects for key management).
165
+
163
166
  ```bash
167
+ npcli-test account login --api-key nepher_...
164
168
  npcli-test account api-keys list
165
- npcli-test account api-keys create --name "CI key" --platform hackertone
169
+ npcli-test account api-keys create --name "CI key" --platform hackathon
166
170
  npcli-test account api-keys revoke <key_id>
167
171
  ```
168
172
 
@@ -132,9 +132,13 @@ Full options:
132
132
 
133
133
  ### API Keys
134
134
 
135
+ `list` / `create` / `revoke` need a **JWT session** from `npcli-test account login`.
136
+ Do **not** pass `--api-key` on these commands (that flag sends `X-API-Key`, which the account API rejects for key management).
137
+
135
138
  ```bash
139
+ npcli-test account login --api-key nepher_...
136
140
  npcli-test account api-keys list
137
- npcli-test account api-keys create --name "CI key" --platform hackertone
141
+ npcli-test account api-keys create --name "CI key" --platform hackathon
138
142
  npcli-test account api-keys revoke <key_id>
139
143
  ```
140
144
 
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "nepher-cli-test"
7
- version = "0.2.5"
7
+ version = "0.2.7"
8
8
  description = "npcli-test — Nepher CLI for staging (api.staging.nepher.ai)"
9
9
  readme = "README.test.md"
10
10
  requires-python = ">=3.10"
@@ -1,3 +1,3 @@
1
1
  """npcli — unified Nepher command-line interface."""
2
2
 
3
- __version__ = "0.2.5"
3
+ __version__ = "0.2.7"
@@ -512,7 +512,13 @@ def api_keys() -> None:
512
512
 
513
513
 
514
514
  @api_keys.command("list")
515
- @click.option("--api-key", "api_key", default=None, envvar="NEPHER_API_KEY")
515
+ @click.option(
516
+ "--api-key",
517
+ "api_key",
518
+ default=None,
519
+ envvar="NEPHER_API_KEY",
520
+ help="Do not use for this command. Run 'npcli account login' first (list needs a JWT session).",
521
+ )
516
522
  def api_keys_list(api_key: str | None) -> None:
517
523
  """List your API keys."""
518
524
  headers = _require_auth(api_key)
@@ -554,12 +560,18 @@ def api_keys_list(api_key: str | None) -> None:
554
560
  @click.option("--name", required=True, help="Human-readable label for the key.")
555
561
  @click.option(
556
562
  "--platform", "platforms", multiple=True,
557
- help="Platform access to grant (envhub, tournament, hackertone, simstore). Repeat for multiple. Omit for all.",
563
+ help="Platform access to grant (envhub, tournament, hackathon, simstore). Repeat for multiple. Omit for all.",
558
564
  )
559
565
  @click.option("--expires-at", default=None, help="Expiry in ISO 8601 (e.g. 2027-01-01T00:00:00Z).")
560
- @click.option("--api-key", "api_key", default=None, envvar="NEPHER_API_KEY")
566
+ @click.option(
567
+ "--api-key",
568
+ "api_key",
569
+ default=None,
570
+ envvar="NEPHER_API_KEY",
571
+ help="Do not use for this command. Run 'npcli account login' first (create needs a JWT session).",
572
+ )
561
573
  def api_keys_create(name: str, platforms: tuple[str, ...], expires_at: str | None, api_key: str | None) -> None:
562
- """Create a new API key."""
574
+ """Create a new API key (requires prior 'npcli account login'; JWT session)."""
563
575
  headers = _require_auth(api_key)
564
576
  payload: dict[str, Any] = {"name": name}
565
577
  if platforms:
@@ -588,7 +600,13 @@ def api_keys_create(name: str, platforms: tuple[str, ...], expires_at: str | Non
588
600
 
589
601
  @api_keys.command("revoke")
590
602
  @click.argument("key_id")
591
- @click.option("--api-key", "api_key", default=None, envvar="NEPHER_API_KEY")
603
+ @click.option(
604
+ "--api-key",
605
+ "api_key",
606
+ default=None,
607
+ envvar="NEPHER_API_KEY",
608
+ help="Do not use for this command. Run 'npcli account login' first (revoke needs a JWT session).",
609
+ )
592
610
  def api_keys_revoke(key_id: str, api_key: str | None) -> None:
593
611
  """Revoke (delete) an API key by its ID."""
594
612
  headers = _require_auth(api_key)