agentsecrets-cli 1.1.2__tar.gz → 3.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.
@@ -44,7 +44,7 @@ config.json
44
44
  # Build artifacts
45
45
  dist/
46
46
  build/
47
- bin/
47
+ /bin/
48
48
  *.egg-info/
49
49
  node_modules/
50
50
  .npm/
@@ -1,8 +1,8 @@
1
- Metadata-Version: 2.4
1
+ Metadata-Version: 2.5
2
2
  Name: agentsecrets-cli
3
- Version: 1.1.2
3
+ Version: 3.1.2
4
4
  Summary: AI-native zero-knowledge secrets manager
5
- Author-email: The Seventeen <hello@theseventeen.co>
5
+ Author-email: The Seventeen <engineering@theseventeen.co>
6
6
  License-Expression: MIT
7
7
  Keywords: agents,ai,cli,credentials,secrets,security
8
8
  Classifier: Development Status :: 4 - Beta
@@ -474,10 +474,10 @@ agentsecrets mcp install # Auto-configure AI tools
474
474
 
475
475
  ### Logging & Audit
476
476
  ```bash
477
- agentsecrets log list [--tail] # View or stream global backend logs
478
- agentsecrets log export --format csv # Export global logs to CSV/JSON
479
- agentsecrets log summary # View global statistics and usage metrics
480
- agentsecrets log detail <id> # Inspect a specific request deeply
477
+ agentsecrets logs list [--tail] # View or stream global backend logs
478
+ agentsecrets logs export --format csv # Export global logs to CSV/JSON
479
+ agentsecrets logs summary # View global statistics and usage metrics
480
+ agentsecrets logs detail <id> # Inspect a specific request deeply
481
481
  ```
482
482
 
483
483
  ### Agent Identity
@@ -618,7 +618,7 @@ See [ARCHITECTURE.md](docs/ARCHITECTURE.md) and [PROXY.md](docs/PROXY.md) for de
618
618
  ## Security
619
619
 
620
620
  Reporting vulnerabilities: do NOT open public issues.
621
- Email: hello@theseventeen.co — response within 24 hours.
621
+ Email: engineering@theseventeen.co — response within 24 hours.
622
622
 
623
623
  ---
624
624
 
@@ -459,10 +459,10 @@ agentsecrets mcp install # Auto-configure AI tools
459
459
 
460
460
  ### Logging & Audit
461
461
  ```bash
462
- agentsecrets log list [--tail] # View or stream global backend logs
463
- agentsecrets log export --format csv # Export global logs to CSV/JSON
464
- agentsecrets log summary # View global statistics and usage metrics
465
- agentsecrets log detail <id> # Inspect a specific request deeply
462
+ agentsecrets logs list [--tail] # View or stream global backend logs
463
+ agentsecrets logs export --format csv # Export global logs to CSV/JSON
464
+ agentsecrets logs summary # View global statistics and usage metrics
465
+ agentsecrets logs detail <id> # Inspect a specific request deeply
466
466
  ```
467
467
 
468
468
  ### Agent Identity
@@ -603,7 +603,7 @@ See [ARCHITECTURE.md](docs/ARCHITECTURE.md) and [PROXY.md](docs/PROXY.md) for de
603
603
  ## Security
604
604
 
605
605
  Reporting vulnerabilities: do NOT open public issues.
606
- Email: hello@theseventeen.co — response within 24 hours.
606
+ Email: engineering@theseventeen.co — response within 24 hours.
607
607
 
608
608
  ---
609
609
 
@@ -1,36 +1,36 @@
1
- [build-system]
2
- requires = ["hatchling"]
3
- build-backend = "hatchling.build"
4
-
5
- [project]
6
- name = "agentsecrets-cli"
7
- version = "1.1.2"
8
- description = "AI-native zero-knowledge secrets manager"
9
- readme = "README.md"
10
- requires-python = ">=3.8"
11
- license = "MIT"
12
- authors = [
13
- { name = "The Seventeen", email = "hello@theseventeen.co" },
14
- ]
15
- keywords = [
16
- "ai",
17
- "agents",
18
- "secrets",
19
- "security",
20
- "credentials",
21
- "cli",
22
- ]
23
- classifiers = [
24
- "Development Status :: 4 - Beta",
25
- "Intended Audience :: Developers",
26
- "License :: OSI Approved :: MIT License",
27
- "Programming Language :: Python :: 3",
28
- "Topic :: Security",
29
- ]
30
- dependencies = []
31
-
32
- [project.scripts]
33
- agentsecrets = "agentsecrets.main:main"
34
-
35
- [tool.hatch.build.targets.wheel]
36
- packages = ["src/agentsecrets"]
1
+ [build-system]
2
+ requires = ["hatchling"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "agentsecrets-cli"
7
+ version = "3.1.2"
8
+ description = "AI-native zero-knowledge secrets manager"
9
+ readme = "README.md"
10
+ requires-python = ">=3.8"
11
+ license = "MIT"
12
+ authors = [
13
+ { name = "The Seventeen", email = "engineering@theseventeen.co" },
14
+ ]
15
+ keywords = [
16
+ "ai",
17
+ "agents",
18
+ "secrets",
19
+ "security",
20
+ "credentials",
21
+ "cli",
22
+ ]
23
+ classifiers = [
24
+ "Development Status :: 4 - Beta",
25
+ "Intended Audience :: Developers",
26
+ "License :: OSI Approved :: MIT License",
27
+ "Programming Language :: Python :: 3",
28
+ "Topic :: Security",
29
+ ]
30
+ dependencies = []
31
+
32
+ [project.scripts]
33
+ agentsecrets = "agentsecrets.main:main"
34
+
35
+ [tool.hatch.build.targets.wheel]
36
+ packages = ["src/agentsecrets"]
@@ -8,28 +8,26 @@ import tempfile
8
8
  import shutil
9
9
  import stat
10
10
 
11
- # Try to get the version from package metadata, fallback to a hardcoded version
12
- def _get_version():
13
- try:
14
- from importlib.metadata import version, PackageNotFoundError
15
- except ImportError: # Python < 3.8
16
- try:
17
- from pkg_resources import get_distribution, DistributionNotFound
18
- except ImportError:
19
- # Fallback if pkg_resources is also not available
20
- return "1.1.0"
11
+ import json
21
12
 
22
- try:
23
- return get_distribution("agentsecrets-cli").version
24
- except DistributionNotFound:
25
- # Fallback if package not found
26
- return "1.1.0"
13
+ def get_latest_github_version():
14
+ """Fetches the latest version tag from GitHub API."""
15
+ try:
16
+ url = "https://api.github.com/repos/The-17/agentsecrets/releases/latest"
17
+ req = urllib.request.Request(url, headers={'User-Agent': 'agentsecrets-pypi'})
18
+ with urllib.request.urlopen(req) as response:
19
+ data = json.loads(response.read().decode())
20
+ return data['tag_name'].lstrip('v')
21
+ except Exception:
22
+ return None
27
23
 
24
+ def _get_version():
28
25
  try:
26
+ from importlib.metadata import version, PackageNotFoundError
29
27
  return version("agentsecrets-cli")
30
- except PackageNotFoundError:
31
- # Fallback if package not found
32
- return "1.1.0"
28
+ except (ImportError, PackageNotFoundError):
29
+ latest = get_latest_github_version()
30
+ return latest if latest else "1.3.1"
33
31
 
34
32
  VERSION = _get_version()
35
33
  GITHUB_REPO = "The-17/agentsecrets"
@@ -126,6 +124,19 @@ def ensure_binary():
126
124
  # Ensure executable
127
125
  st = os.stat(binary_path)
128
126
  os.chmod(binary_path, st.st_mode | stat.S_IEXEC | stat.S_IXGRP | stat.S_IXOTH)
127
+
128
+ # Pre-register with keychain-auth if available. This eliminates
129
+ # the one-time setup spinner on the user's first command.
130
+ import subprocess
131
+ kc = shutil.which("keychain-auth")
132
+ if kc:
133
+ try:
134
+ subprocess.run(
135
+ [kc, "register", binary_path],
136
+ timeout=5, capture_output=True,
137
+ )
138
+ except Exception:
139
+ pass # AutoSetup handles registration at runtime if needed
129
140
 
130
141
  return binary_path
131
142