@sakk-dev/sakk 0.0.0 → 0.4.0
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.
- package/.claude-plugin/marketplace.json +19 -0
- package/.claude-plugin/plugin.json +27 -0
- package/CHANGELOG.md +1421 -0
- package/LICENSE +202 -0
- package/NOTICE +82 -0
- package/README.md +617 -10
- package/README.zh-CN.md +555 -0
- package/bin/sakk.mjs +1460 -0
- package/integrations/litellm/LICENSE +202 -0
- package/integrations/litellm/NOTICE +82 -0
- package/integrations/litellm/README.md +366 -0
- package/integrations/litellm/config.example.yaml +52 -0
- package/integrations/litellm/sakk_gateway.py +823 -0
- package/package.json +79 -5
- package/policies/guard-default.json +161 -0
- package/policies/permissive-dev.json +22 -0
- package/prices/snapshot.json +1404 -0
- package/src/append.mjs +81 -0
- package/src/archive.mjs +489 -0
- package/src/classify.mjs +914 -0
- package/src/console-login.mjs +374 -0
- package/src/console.mjs +1628 -0
- package/src/gateway-status.mjs +203 -0
- package/src/guard-install.mjs +387 -0
- package/src/hook.mjs +730 -0
- package/src/ledger.mjs +1229 -0
- package/src/match.mjs +52 -0
- package/src/mcp.mjs +299 -0
- package/src/policy.mjs +423 -0
- package/src/prices.mjs +152 -0
- package/src/secret-rules.generated.mjs +225 -0
- package/src/secret-scan.mjs +489 -0
- package/src/spend.mjs +443 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "sakk",
|
|
3
|
+
"owner": { "name": "The Sakk authors", "url": "https://github.com/sakk-dev" },
|
|
4
|
+
"metadata": {
|
|
5
|
+
"description": "Sakk: a fail-closed guard for Claude Code — a daily spend cap, a secret guard and policy rules."
|
|
6
|
+
},
|
|
7
|
+
"plugins": [
|
|
8
|
+
{
|
|
9
|
+
"name": "sakk",
|
|
10
|
+
"source": "./",
|
|
11
|
+
"description": "A fail-closed guard for Claude Code: a daily spend cap, a secret guard, and policy rules — no proof, no pass.",
|
|
12
|
+
"homepage": "https://github.com/sakk-dev/sakk#readme",
|
|
13
|
+
"repository": "https://github.com/sakk-dev/sakk.git",
|
|
14
|
+
"license": "Apache-2.0",
|
|
15
|
+
"category": "security",
|
|
16
|
+
"keywords": ["security", "spend-cap", "secret-guard", "fail-closed", "ai-agents"]
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "sakk",
|
|
3
|
+
"version": "0.4.0",
|
|
4
|
+
"displayName": "Sakk",
|
|
5
|
+
"description": "A fail-closed guard for Claude Code: a daily spend cap, a secret guard, and policy rules — no proof, no pass.",
|
|
6
|
+
"author": { "name": "The Sakk authors", "url": "https://github.com/sakk-dev" },
|
|
7
|
+
"homepage": "https://github.com/sakk-dev/sakk#readme",
|
|
8
|
+
"repository": "https://github.com/sakk-dev/sakk.git",
|
|
9
|
+
"license": "Apache-2.0",
|
|
10
|
+
"keywords": ["security", "spend-cap", "secret-guard", "fail-closed", "ai-agents"],
|
|
11
|
+
"hooks": {
|
|
12
|
+
"PreToolUse": [
|
|
13
|
+
{
|
|
14
|
+
"matcher": "*",
|
|
15
|
+
"hooks": [
|
|
16
|
+
{
|
|
17
|
+
"type": "command",
|
|
18
|
+
"command": "node",
|
|
19
|
+
"args": ["${CLAUDE_PLUGIN_ROOT}/bin/sakk.mjs", "hook", "--agent", "claude-code"],
|
|
20
|
+
"timeout": 10,
|
|
21
|
+
"onFailure": "block"
|
|
22
|
+
}
|
|
23
|
+
]
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
}
|