secondkey 0.2.0__tar.gz → 0.2.1__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.
- {secondkey-0.2.0 → secondkey-0.2.1}/PKG-INFO +6 -6
- {secondkey-0.2.0 → secondkey-0.2.1}/README.md +5 -5
- {secondkey-0.2.0 → secondkey-0.2.1}/pyproject.toml +1 -1
- {secondkey-0.2.0 → secondkey-0.2.1}/src/secondkey/__init__.py +1 -1
- {secondkey-0.2.0 → secondkey-0.2.1}/src/secondkey.egg-info/PKG-INFO +6 -6
- {secondkey-0.2.0 → secondkey-0.2.1}/LICENSE +0 -0
- {secondkey-0.2.0 → secondkey-0.2.1}/setup.cfg +0 -0
- {secondkey-0.2.0 → secondkey-0.2.1}/src/secondkey/__main__.py +0 -0
- {secondkey-0.2.0 → secondkey-0.2.1}/src/secondkey/audit.py +0 -0
- {secondkey-0.2.0 → secondkey-0.2.1}/src/secondkey/classify.py +0 -0
- {secondkey-0.2.0 → secondkey-0.2.1}/src/secondkey/cli.py +0 -0
- {secondkey-0.2.0 → secondkey-0.2.1}/src/secondkey/default_policy.yaml +0 -0
- {secondkey-0.2.0 → secondkey-0.2.1}/src/secondkey/gate.py +0 -0
- {secondkey-0.2.0 → secondkey-0.2.1}/src/secondkey/hooks/__init__.py +0 -0
- {secondkey-0.2.0 → secondkey-0.2.1}/src/secondkey/hooks/claude_code.py +0 -0
- {secondkey-0.2.0 → secondkey-0.2.1}/src/secondkey/hooks/cursor.py +0 -0
- {secondkey-0.2.0 → secondkey-0.2.1}/src/secondkey/notify.py +0 -0
- {secondkey-0.2.0 → secondkey-0.2.1}/src/secondkey/policy.py +0 -0
- {secondkey-0.2.0 → secondkey-0.2.1}/src/secondkey/proxy.py +0 -0
- {secondkey-0.2.0 → secondkey-0.2.1}/src/secondkey/snapshots/__init__.py +0 -0
- {secondkey-0.2.0 → secondkey-0.2.1}/src/secondkey/snapshots/aws.py +0 -0
- {secondkey-0.2.0 → secondkey-0.2.1}/src/secondkey/snapshots/base.py +0 -0
- {secondkey-0.2.0 → secondkey-0.2.1}/src/secondkey/snapshots/docker.py +0 -0
- {secondkey-0.2.0 → secondkey-0.2.1}/src/secondkey/snapshots/files.py +0 -0
- {secondkey-0.2.0 → secondkey-0.2.1}/src/secondkey/snapshots/git.py +0 -0
- {secondkey-0.2.0 → secondkey-0.2.1}/src/secondkey/snapshots/k8s.py +0 -0
- {secondkey-0.2.0 → secondkey-0.2.1}/src/secondkey/snapshots/mysql.py +0 -0
- {secondkey-0.2.0 → secondkey-0.2.1}/src/secondkey/snapshots/postgres.py +0 -0
- {secondkey-0.2.0 → secondkey-0.2.1}/src/secondkey/snapshots/terraform.py +0 -0
- {secondkey-0.2.0 → secondkey-0.2.1}/src/secondkey/sql.py +0 -0
- {secondkey-0.2.0 → secondkey-0.2.1}/src/secondkey/store.py +0 -0
- {secondkey-0.2.0 → secondkey-0.2.1}/src/secondkey/util.py +0 -0
- {secondkey-0.2.0 → secondkey-0.2.1}/src/secondkey.egg-info/SOURCES.txt +0 -0
- {secondkey-0.2.0 → secondkey-0.2.1}/src/secondkey.egg-info/dependency_links.txt +0 -0
- {secondkey-0.2.0 → secondkey-0.2.1}/src/secondkey.egg-info/entry_points.txt +0 -0
- {secondkey-0.2.0 → secondkey-0.2.1}/src/secondkey.egg-info/requires.txt +0 -0
- {secondkey-0.2.0 → secondkey-0.2.1}/src/secondkey.egg-info/top_level.txt +0 -0
- {secondkey-0.2.0 → secondkey-0.2.1}/tests/test_classify.py +0 -0
- {secondkey-0.2.0 → secondkey-0.2.1}/tests/test_gate_flow.py +0 -0
- {secondkey-0.2.0 → secondkey-0.2.1}/tests/test_git_snapshots.py +0 -0
- {secondkey-0.2.0 → secondkey-0.2.1}/tests/test_k8s_terraform.py +0 -0
- {secondkey-0.2.0 → secondkey-0.2.1}/tests/test_policy_audit.py +0 -0
- {secondkey-0.2.0 → secondkey-0.2.1}/tests/test_postgres.py +0 -0
- {secondkey-0.2.0 → secondkey-0.2.1}/tests/test_v02_features.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: secondkey
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.1
|
|
4
4
|
Summary: The second key for every AI agent action: approve, snapshot and undo destructive commands.
|
|
5
5
|
Author: Abhishek
|
|
6
6
|
License: Apache-2.0
|
|
@@ -21,7 +21,7 @@ Requires-Dist: pg8000>=1.30; extra == "dev"
|
|
|
21
21
|
Dynamic: license-file
|
|
22
22
|
|
|
23
23
|
<p align="center">
|
|
24
|
-
<img src="assets/logo-wordmark.svg" alt="SecondKey" width="260">
|
|
24
|
+
<img src="https://raw.githubusercontent.com/Abhishek-dev18/SecondKey/main/assets/logo-wordmark.svg" alt="SecondKey" width="260">
|
|
25
25
|
</p>
|
|
26
26
|
|
|
27
27
|
<p align="center"><b>Agents hold the first key. You hold the second.</b></p>
|
|
@@ -39,13 +39,13 @@ SecondKey is a change-control gate for AI agents. It sits between Claude Code (o
|
|
|
39
39
|
## Install
|
|
40
40
|
|
|
41
41
|
```bash
|
|
42
|
-
pipx install
|
|
42
|
+
pipx install secondkey
|
|
43
43
|
cd your-project
|
|
44
44
|
secondkey init # writes .secondkey/policy.yaml and adds the Claude Code hook
|
|
45
45
|
secondkey doctor # checks hooks, tools and state
|
|
46
46
|
```
|
|
47
47
|
|
|
48
|
-
`init --agent cursor` adds the Cursor hooks (repeat `--agent` for both). `init --scope user` installs for every project instead. Try it end to end with [docs/try-it-with-claude-code.md](docs/try-it-with-claude-code.md). Requires Python 3.9+. For Postgres snapshots, `psql`, `pg_dump` and `pg_restore` must be on your PATH (same major version as your server or newer).
|
|
48
|
+
`init --agent cursor` adds the Cursor hooks (repeat `--agent` for both). `init --scope user` installs for every project instead. Try it end to end with [docs/try-it-with-claude-code.md](https://github.com/Abhishek-dev18/SecondKey/blob/main/docs/try-it-with-claude-code.md). Website: [abhishek-dev18.github.io/SecondKey](https://abhishek-dev18.github.io/SecondKey/). Requires Python 3.9+. For Postgres snapshots, `psql`, `pg_dump` and `pg_restore` must be on your PATH (same major version as your server or newer).
|
|
49
49
|
|
|
50
50
|
## What it looks like
|
|
51
51
|
|
|
@@ -182,9 +182,9 @@ State (approvals, snapshots, audit log) lives in `~/.secondkey/` (override with
|
|
|
182
182
|
- MCP tools are gated by name; their effects can't be snapshotted automatically.
|
|
183
183
|
- Approvals happen in the CLI, or Slack (notification only for now; buttons come with the hosted version).
|
|
184
184
|
- Snapshots are local. Dumps over `postgres_max_dump_mb` (2 GB) and file snapshots over 500 MB are refused and reported as unprotected; use the Neon strategy for big Postgres databases.
|
|
185
|
-
- Tested on Linux. macOS should work
|
|
185
|
+
- Tested on Linux, and on Windows with Claude Code (desktop app, Git Bash and PowerShell). macOS should work but is untested. On Windows, Claude Code often runs commands through PowerShell, and the classifier is still Bash-oriented.
|
|
186
186
|
|
|
187
|
-
More recipes: [docs/policy-cookbook.md](docs/policy-cookbook.md).
|
|
187
|
+
More recipes: [docs/policy-cookbook.md](https://github.com/Abhishek-dev18/SecondKey/blob/main/docs/policy-cookbook.md).
|
|
188
188
|
|
|
189
189
|
## Development
|
|
190
190
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<p align="center">
|
|
2
|
-
<img src="assets/logo-wordmark.svg" alt="SecondKey" width="260">
|
|
2
|
+
<img src="https://raw.githubusercontent.com/Abhishek-dev18/SecondKey/main/assets/logo-wordmark.svg" alt="SecondKey" width="260">
|
|
3
3
|
</p>
|
|
4
4
|
|
|
5
5
|
<p align="center"><b>Agents hold the first key. You hold the second.</b></p>
|
|
@@ -17,13 +17,13 @@ SecondKey is a change-control gate for AI agents. It sits between Claude Code (o
|
|
|
17
17
|
## Install
|
|
18
18
|
|
|
19
19
|
```bash
|
|
20
|
-
pipx install
|
|
20
|
+
pipx install secondkey
|
|
21
21
|
cd your-project
|
|
22
22
|
secondkey init # writes .secondkey/policy.yaml and adds the Claude Code hook
|
|
23
23
|
secondkey doctor # checks hooks, tools and state
|
|
24
24
|
```
|
|
25
25
|
|
|
26
|
-
`init --agent cursor` adds the Cursor hooks (repeat `--agent` for both). `init --scope user` installs for every project instead. Try it end to end with [docs/try-it-with-claude-code.md](docs/try-it-with-claude-code.md). Requires Python 3.9+. For Postgres snapshots, `psql`, `pg_dump` and `pg_restore` must be on your PATH (same major version as your server or newer).
|
|
26
|
+
`init --agent cursor` adds the Cursor hooks (repeat `--agent` for both). `init --scope user` installs for every project instead. Try it end to end with [docs/try-it-with-claude-code.md](https://github.com/Abhishek-dev18/SecondKey/blob/main/docs/try-it-with-claude-code.md). Website: [abhishek-dev18.github.io/SecondKey](https://abhishek-dev18.github.io/SecondKey/). Requires Python 3.9+. For Postgres snapshots, `psql`, `pg_dump` and `pg_restore` must be on your PATH (same major version as your server or newer).
|
|
27
27
|
|
|
28
28
|
## What it looks like
|
|
29
29
|
|
|
@@ -160,9 +160,9 @@ State (approvals, snapshots, audit log) lives in `~/.secondkey/` (override with
|
|
|
160
160
|
- MCP tools are gated by name; their effects can't be snapshotted automatically.
|
|
161
161
|
- Approvals happen in the CLI, or Slack (notification only for now; buttons come with the hosted version).
|
|
162
162
|
- Snapshots are local. Dumps over `postgres_max_dump_mb` (2 GB) and file snapshots over 500 MB are refused and reported as unprotected; use the Neon strategy for big Postgres databases.
|
|
163
|
-
- Tested on Linux. macOS should work
|
|
163
|
+
- Tested on Linux, and on Windows with Claude Code (desktop app, Git Bash and PowerShell). macOS should work but is untested. On Windows, Claude Code often runs commands through PowerShell, and the classifier is still Bash-oriented.
|
|
164
164
|
|
|
165
|
-
More recipes: [docs/policy-cookbook.md](docs/policy-cookbook.md).
|
|
165
|
+
More recipes: [docs/policy-cookbook.md](https://github.com/Abhishek-dev18/SecondKey/blob/main/docs/policy-cookbook.md).
|
|
166
166
|
|
|
167
167
|
## Development
|
|
168
168
|
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "secondkey"
|
|
7
|
-
version = "0.2.
|
|
7
|
+
version = "0.2.1"
|
|
8
8
|
description = "The second key for every AI agent action: approve, snapshot and undo destructive commands."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.9"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: secondkey
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.1
|
|
4
4
|
Summary: The second key for every AI agent action: approve, snapshot and undo destructive commands.
|
|
5
5
|
Author: Abhishek
|
|
6
6
|
License: Apache-2.0
|
|
@@ -21,7 +21,7 @@ Requires-Dist: pg8000>=1.30; extra == "dev"
|
|
|
21
21
|
Dynamic: license-file
|
|
22
22
|
|
|
23
23
|
<p align="center">
|
|
24
|
-
<img src="assets/logo-wordmark.svg" alt="SecondKey" width="260">
|
|
24
|
+
<img src="https://raw.githubusercontent.com/Abhishek-dev18/SecondKey/main/assets/logo-wordmark.svg" alt="SecondKey" width="260">
|
|
25
25
|
</p>
|
|
26
26
|
|
|
27
27
|
<p align="center"><b>Agents hold the first key. You hold the second.</b></p>
|
|
@@ -39,13 +39,13 @@ SecondKey is a change-control gate for AI agents. It sits between Claude Code (o
|
|
|
39
39
|
## Install
|
|
40
40
|
|
|
41
41
|
```bash
|
|
42
|
-
pipx install
|
|
42
|
+
pipx install secondkey
|
|
43
43
|
cd your-project
|
|
44
44
|
secondkey init # writes .secondkey/policy.yaml and adds the Claude Code hook
|
|
45
45
|
secondkey doctor # checks hooks, tools and state
|
|
46
46
|
```
|
|
47
47
|
|
|
48
|
-
`init --agent cursor` adds the Cursor hooks (repeat `--agent` for both). `init --scope user` installs for every project instead. Try it end to end with [docs/try-it-with-claude-code.md](docs/try-it-with-claude-code.md). Requires Python 3.9+. For Postgres snapshots, `psql`, `pg_dump` and `pg_restore` must be on your PATH (same major version as your server or newer).
|
|
48
|
+
`init --agent cursor` adds the Cursor hooks (repeat `--agent` for both). `init --scope user` installs for every project instead. Try it end to end with [docs/try-it-with-claude-code.md](https://github.com/Abhishek-dev18/SecondKey/blob/main/docs/try-it-with-claude-code.md). Website: [abhishek-dev18.github.io/SecondKey](https://abhishek-dev18.github.io/SecondKey/). Requires Python 3.9+. For Postgres snapshots, `psql`, `pg_dump` and `pg_restore` must be on your PATH (same major version as your server or newer).
|
|
49
49
|
|
|
50
50
|
## What it looks like
|
|
51
51
|
|
|
@@ -182,9 +182,9 @@ State (approvals, snapshots, audit log) lives in `~/.secondkey/` (override with
|
|
|
182
182
|
- MCP tools are gated by name; their effects can't be snapshotted automatically.
|
|
183
183
|
- Approvals happen in the CLI, or Slack (notification only for now; buttons come with the hosted version).
|
|
184
184
|
- Snapshots are local. Dumps over `postgres_max_dump_mb` (2 GB) and file snapshots over 500 MB are refused and reported as unprotected; use the Neon strategy for big Postgres databases.
|
|
185
|
-
- Tested on Linux. macOS should work
|
|
185
|
+
- Tested on Linux, and on Windows with Claude Code (desktop app, Git Bash and PowerShell). macOS should work but is untested. On Windows, Claude Code often runs commands through PowerShell, and the classifier is still Bash-oriented.
|
|
186
186
|
|
|
187
|
-
More recipes: [docs/policy-cookbook.md](docs/policy-cookbook.md).
|
|
187
|
+
More recipes: [docs/policy-cookbook.md](https://github.com/Abhishek-dev18/SecondKey/blob/main/docs/policy-cookbook.md).
|
|
188
188
|
|
|
189
189
|
## Development
|
|
190
190
|
|
|
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
|
|
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
|