basedagents 0.1.1__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.
- {basedagents-0.1.1 → basedagents-0.1.2}/PKG-INFO +1 -1
- {basedagents-0.1.1 → basedagents-0.1.2}/basedagents/__init__.py +1 -1
- {basedagents-0.1.1 → basedagents-0.1.2}/basedagents/cli.py +3 -3
- {basedagents-0.1.1 → basedagents-0.1.2}/basedagents/client.py +5 -1
- {basedagents-0.1.1 → basedagents-0.1.2}/basedagents.egg-info/PKG-INFO +1 -1
- {basedagents-0.1.1 → basedagents-0.1.2}/pyproject.toml +1 -1
- {basedagents-0.1.1 → basedagents-0.1.2}/README.md +0 -0
- {basedagents-0.1.1 → basedagents-0.1.2}/basedagents/auth.py +0 -0
- {basedagents-0.1.1 → basedagents-0.1.2}/basedagents/keypair.py +0 -0
- {basedagents-0.1.1 → basedagents-0.1.2}/basedagents/pow.py +0 -0
- {basedagents-0.1.1 → basedagents-0.1.2}/basedagents.egg-info/SOURCES.txt +0 -0
- {basedagents-0.1.1 → basedagents-0.1.2}/basedagents.egg-info/dependency_links.txt +0 -0
- {basedagents-0.1.1 → basedagents-0.1.2}/basedagents.egg-info/entry_points.txt +0 -0
- {basedagents-0.1.1 → basedagents-0.1.2}/basedagents.egg-info/requires.txt +0 -0
- {basedagents-0.1.1 → basedagents-0.1.2}/basedagents.egg-info/top_level.txt +0 -0
- {basedagents-0.1.1 → basedagents-0.1.2}/setup.cfg +0 -0
|
@@ -20,7 +20,7 @@ from .keypair import AgentKeypair, generate as generate_keypair, from_private_ke
|
|
|
20
20
|
from .client import RegistryClient, BasedAgentsError
|
|
21
21
|
from .auth import build_headers as build_auth_headers
|
|
22
22
|
|
|
23
|
-
__version__ = "0.1.
|
|
23
|
+
__version__ = "0.1.2"
|
|
24
24
|
__all__ = [
|
|
25
25
|
"AgentKeypair",
|
|
26
26
|
"RegistryClient",
|
|
@@ -14,7 +14,7 @@ import sys
|
|
|
14
14
|
from pathlib import Path
|
|
15
15
|
|
|
16
16
|
API_URL = "https://api.basedagents.ai"
|
|
17
|
-
VERSION = "0.1.
|
|
17
|
+
VERSION = "0.1.2"
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
def _print_err(msg: str) -> None:
|
|
@@ -72,8 +72,8 @@ def cmd_register(args: list[str]) -> None:
|
|
|
72
72
|
if "--api" in args:
|
|
73
73
|
idx = args.index("--api")
|
|
74
74
|
api_url = args[idx + 1]
|
|
75
|
-
if not api_url.startswith("https://"):
|
|
76
|
-
_print_err(f"--api must use https:// (got {api_url!r}). AgentSig credentials must not be sent over plaintext.")
|
|
75
|
+
if not api_url.startswith("https://") and not api_url.startswith("http://localhost") and not api_url.startswith("http://127.0.0.1"):
|
|
76
|
+
_print_err(f"--api must use https:// (got {api_url!r}). AgentSig credentials must not be sent over plaintext.\nLocal development exception: http://localhost and http://127.0.0.1 are allowed.")
|
|
77
77
|
sys.exit(1)
|
|
78
78
|
|
|
79
79
|
dry_run = "--dry-run" in args
|
|
@@ -5,6 +5,7 @@ from __future__ import annotations
|
|
|
5
5
|
|
|
6
6
|
import base64
|
|
7
7
|
import json
|
|
8
|
+
import os
|
|
8
9
|
import uuid
|
|
9
10
|
from typing import Any, Callable
|
|
10
11
|
|
|
@@ -14,7 +15,10 @@ from .auth import build_headers
|
|
|
14
15
|
from .keypair import AgentKeypair
|
|
15
16
|
from .pow import solve
|
|
16
17
|
|
|
17
|
-
|
|
18
|
+
_DEFAULT_BASE = "https://api.basedagents.ai"
|
|
19
|
+
# Allow override via env var — use staging URL during tests/development,
|
|
20
|
+
# never point tests at production.
|
|
21
|
+
DEFAULT_API_URL = os.environ.get("BASEDAGENTS_API", _DEFAULT_BASE)
|
|
18
22
|
|
|
19
23
|
|
|
20
24
|
class BasedAgentsError(Exception):
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "basedagents"
|
|
7
|
-
version = "0.1.
|
|
7
|
+
version = "0.1.2"
|
|
8
8
|
description = "Python SDK for basedagents.ai — cryptographic identity and reputation registry for AI agents"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = { text = "MIT" }
|
|
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
|