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.
- {nepher_cli_test-0.2.5 → nepher_cli_test-0.2.7}/PKG-INFO +6 -2
- {nepher_cli_test-0.2.5 → nepher_cli_test-0.2.7}/README.test.md +5 -1
- {nepher_cli_test-0.2.5 → nepher_cli_test-0.2.7}/pyproject.toml +1 -1
- {nepher_cli_test-0.2.5 → nepher_cli_test-0.2.7}/src/nepher_cli/__init__.py +1 -1
- {nepher_cli_test-0.2.5 → nepher_cli_test-0.2.7}/src/nepher_cli/commands/account.py +23 -5
- {nepher_cli_test-0.2.5 → nepher_cli_test-0.2.7}/.gitignore +0 -0
- {nepher_cli_test-0.2.5 → nepher_cli_test-0.2.7}/src/nepher_cli/__main__.py +0 -0
- {nepher_cli_test-0.2.5 → nepher_cli_test-0.2.7}/src/nepher_cli/cli.py +0 -0
- {nepher_cli_test-0.2.5 → nepher_cli_test-0.2.7}/src/nepher_cli/cli_test.py +0 -0
- {nepher_cli_test-0.2.5 → nepher_cli_test-0.2.7}/src/nepher_cli/commands/__init__.py +0 -0
- {nepher_cli_test-0.2.5 → nepher_cli_test-0.2.7}/src/nepher_cli/commands/envhub.py +0 -0
- {nepher_cli_test-0.2.5 → nepher_cli_test-0.2.7}/src/nepher_cli/commands/hackathon.py +0 -0
- {nepher_cli_test-0.2.5 → nepher_cli_test-0.2.7}/src/nepher_cli/commands/highlight.py +0 -0
- {nepher_cli_test-0.2.5 → nepher_cli_test-0.2.7}/src/nepher_cli/commands/simstore.py +0 -0
- {nepher_cli_test-0.2.5 → nepher_cli_test-0.2.7}/src/nepher_cli/commands/tournament.py +0 -0
- {nepher_cli_test-0.2.5 → nepher_cli_test-0.2.7}/src/nepher_cli/config.py +0 -0
- {nepher_cli_test-0.2.5 → nepher_cli_test-0.2.7}/src/nepher_cli/core/__init__.py +0 -0
- {nepher_cli_test-0.2.5 → nepher_cli_test-0.2.7}/src/nepher_cli/core/credentials.py +0 -0
- {nepher_cli_test-0.2.5 → nepher_cli_test-0.2.7}/src/nepher_cli/core/http.py +0 -0
- {nepher_cli_test-0.2.5 → nepher_cli_test-0.2.7}/src/nepher_cli/envhub/__init__.py +0 -0
- {nepher_cli_test-0.2.5 → nepher_cli_test-0.2.7}/src/nepher_cli/envhub/cache.py +0 -0
- {nepher_cli_test-0.2.5 → nepher_cli_test-0.2.7}/src/nepher_cli/envhub/config.py +0 -0
- {nepher_cli_test-0.2.5 → nepher_cli_test-0.2.7}/src/nepher_cli/py.typed +0 -0
- {nepher_cli_test-0.2.5 → nepher_cli_test-0.2.7}/src/nepher_cli/tournament/__init__.py +0 -0
- {nepher_cli_test-0.2.5 → nepher_cli_test-0.2.7}/src/nepher_cli/tournament/agent_check.py +0 -0
- {nepher_cli_test-0.2.5 → nepher_cli_test-0.2.7}/src/nepher_cli/tournament/api.py +0 -0
- {nepher_cli_test-0.2.5 → nepher_cli_test-0.2.7}/src/nepher_cli/tournament/packer.py +0 -0
- {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.
|
|
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
|
|
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
|
|
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
|
|
|
@@ -512,7 +512,13 @@ def api_keys() -> None:
|
|
|
512
512
|
|
|
513
513
|
|
|
514
514
|
@api_keys.command("list")
|
|
515
|
-
@click.option(
|
|
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,
|
|
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(
|
|
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(
|
|
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)
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|