cc-safety-net 2.4.4 → 2.4.6
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/dist/amp/cc-safety-net/index.ts +39 -39
- package/dist/api.js +1 -1
- package/dist/bin/hook.js +38 -38
- package/dist/chunks/{index-sxtcjq8b.js → index-4jcxaxr5.js} +2 -2
- package/dist/chunks/index-c989ehp9.js +45 -0
- package/dist/cli.js +102 -102
- package/dist/index.js +1 -1
- package/dist/openclaw/cc-safety-net/index.js +39 -39
- package/dist/openclaw/cc-safety-net/openclaw.plugin.json +1 -1
- package/dist/openclaw/cc-safety-net/package.json +1 -1
- package/dist/pi/index.js +1 -1
- package/package.json +52 -47
- package/dist/chunks/index-vas3sm16.js +0 -45
package/dist/pi/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{ye,P,be,Xe,c,o,xe,L,V,et,d,p}from"../chunks/index-
|
|
1
|
+
import{ye,P,be,Xe,c,o,xe,L,V,et,d,p}from"../chunks/index-c989ehp9.js";import{Q}from"../chunks/index-q7q195qc.js";import{he,D}from"../chunks/index-4jcxaxr5.js";var E="cc-safety-net",x="Operate CC Safety Net: explain blocks, rules, integrations, diagnostics",w="Help me with CC Safety Net.";function f(e){e.registerCommand(E,{description:x,handler:async(n,l)=>{e.sendUserMessage(N(n),l.isIdle()?void 0:{deliverAs:"followUp"})}})}function N(e){return`${Q.slice(Q.indexOf("# CC Safety Net")).trimEnd()}
|
|
2
2
|
|
|
3
3
|
## User request
|
|
4
4
|
|
package/package.json
CHANGED
|
@@ -1,10 +1,42 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cc-safety-net",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.6",
|
|
4
4
|
"description": "A coding agent CLI hook - block destructive commands and secret file access",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"amp",
|
|
7
|
+
"claude-code",
|
|
8
|
+
"cursor",
|
|
9
|
+
"grok",
|
|
10
|
+
"grok-build",
|
|
11
|
+
"opencode",
|
|
12
|
+
"pi-package",
|
|
13
|
+
"plugin",
|
|
14
|
+
"safety",
|
|
15
|
+
"security"
|
|
16
|
+
],
|
|
17
|
+
"homepage": "https://ccsafetynet.com",
|
|
18
|
+
"bugs": {
|
|
19
|
+
"url": "https://github.com/kenryu42/cc-safety-net/issues"
|
|
20
|
+
},
|
|
21
|
+
"license": "MIT",
|
|
22
|
+
"author": {
|
|
23
|
+
"name": "J Liew",
|
|
24
|
+
"email": "jliew@420024lab.com"
|
|
25
|
+
},
|
|
26
|
+
"repository": {
|
|
27
|
+
"type": "git",
|
|
28
|
+
"url": "git+https://github.com/kenryu42/cc-safety-net.git"
|
|
29
|
+
},
|
|
30
|
+
"bin": {
|
|
31
|
+
"cc-safety-net": "dist/bin/cc-safety-net.js",
|
|
32
|
+
"ccsn": "dist/bin/cc-safety-net.js"
|
|
33
|
+
},
|
|
34
|
+
"files": [
|
|
35
|
+
"dist"
|
|
36
|
+
],
|
|
37
|
+
"type": "module",
|
|
5
38
|
"main": "dist/index.js",
|
|
6
39
|
"types": "dist/index.d.ts",
|
|
7
|
-
"type": "module",
|
|
8
40
|
"exports": {
|
|
9
41
|
".": {
|
|
10
42
|
"types": "./dist/index.d.ts",
|
|
@@ -20,13 +52,6 @@
|
|
|
20
52
|
},
|
|
21
53
|
"./package.json": "./package.json"
|
|
22
54
|
},
|
|
23
|
-
"bin": {
|
|
24
|
-
"cc-safety-net": "dist/bin/cc-safety-net.js",
|
|
25
|
-
"ccsn": "dist/bin/cc-safety-net.js"
|
|
26
|
-
},
|
|
27
|
-
"files": [
|
|
28
|
-
"dist"
|
|
29
|
-
],
|
|
30
55
|
"scripts": {
|
|
31
56
|
"audit:dependencies": "bun audit",
|
|
32
57
|
"build": "bun run clean && bun scripts/project-bun.ts scripts/build.ts",
|
|
@@ -35,36 +60,25 @@
|
|
|
35
60
|
"verify:repository-plugin": "bun run scripts/verify-repository-plugin.ts",
|
|
36
61
|
"verify:coverage": "bun run scripts/verify-coverage.ts",
|
|
37
62
|
"clean": "rm -rf dist",
|
|
38
|
-
"check": "bun run lint && bun run typecheck && bun run knip && bun run check-duplicates && bun run test:coverage && bun run verify:coverage",
|
|
39
|
-
"check:ci": "bun run
|
|
40
|
-
"lint": "
|
|
41
|
-
"lint:ci": "
|
|
63
|
+
"check": "bun run lint && bun run format:check && bun run typecheck && bun run knip && bun run check-duplicates && bun run test:coverage && bun run verify:coverage",
|
|
64
|
+
"check:ci": "bun run check",
|
|
65
|
+
"lint": "oxlint src tests scripts knip.ts",
|
|
66
|
+
"lint:ci": "bun run lint && bun run format:check",
|
|
42
67
|
"typecheck": "tsc --noEmit && tsc -p tsconfig.gui.json --noEmit",
|
|
43
68
|
"knip": "knip-bun --production",
|
|
44
|
-
"check-duplicates": "
|
|
69
|
+
"check-duplicates": "jscpd src tests --threshold 0 --exit-code 1 --no-tips --reporters ai --ignore '**/*.svg' --ignore-pattern 'import\\s[\\s\\S]*?from\\s[^;]*;'",
|
|
45
70
|
"test": "bun test",
|
|
46
71
|
"test:e2e:stability": "bun test tests/e2e --randomize --rerun-each 3",
|
|
47
72
|
"test:e2e:live": "CC_SAFETY_NET_E2E_LIVE=1 bun test tests/e2e-live",
|
|
48
73
|
"test:coverage": "AGENT=1 bun test tests --path-ignore-patterns 'tests/e2e-live/**' --coverage --coverage-reporter=text --coverage-reporter=lcov",
|
|
49
74
|
"cc-safety-net": "bun run src/entries/bin.ts",
|
|
50
|
-
"eval": "claude plugin eval . --ablation with-without --judge-model sonnet --allow-tools \"Bash(npx -y cc-safety-net:*)\" \"Bash(npx cc-safety-net:*)\""
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
"
|
|
54
|
-
"email": "jliew@420024lab.com"
|
|
55
|
-
},
|
|
56
|
-
"license": "MIT",
|
|
57
|
-
"repository": {
|
|
58
|
-
"type": "git",
|
|
59
|
-
"url": "git+https://github.com/kenryu42/cc-safety-net.git"
|
|
75
|
+
"eval": "claude plugin eval . --ablation with-without --judge-model sonnet --allow-tools \"Bash(npx -y cc-safety-net:*)\" \"Bash(npx cc-safety-net:*)\"",
|
|
76
|
+
"lint:fix": "oxlint --fix src tests scripts knip.ts",
|
|
77
|
+
"format": "oxfmt src tests scripts knip.ts .oxfmtrc.json .oxlintrc.json package.json kimi.plugin.json tsconfig.json tsconfig.build.json tsconfig.gui.json .claude-plugin .codex-plugin assets/cc-safety-net.schema.json docs/residual-risk-registry.json hooks",
|
|
78
|
+
"format:check": "oxfmt --check src tests scripts knip.ts .oxfmtrc.json .oxlintrc.json package.json kimi.plugin.json tsconfig.json tsconfig.build.json tsconfig.gui.json .claude-plugin .codex-plugin assets/cc-safety-net.schema.json docs/residual-risk-registry.json hooks"
|
|
60
79
|
},
|
|
61
|
-
"bugs": {
|
|
62
|
-
"url": "https://github.com/kenryu42/cc-safety-net/issues"
|
|
63
|
-
},
|
|
64
|
-
"homepage": "https://ccsafetynet.com",
|
|
65
80
|
"devDependencies": {
|
|
66
81
|
"@ampcode/plugin": "0.0.0-20260724002649-ga3413e7",
|
|
67
|
-
"@biomejs/biome": "2.3.10",
|
|
68
82
|
"@opencode-ai/plugin": "^1.18.29",
|
|
69
83
|
"@opencode/plugin": "2.0.6",
|
|
70
84
|
"@opencode/schema": "2.0.6",
|
|
@@ -73,6 +87,9 @@
|
|
|
73
87
|
"jscpd": "^5.0.14",
|
|
74
88
|
"knip": "^6.32.0",
|
|
75
89
|
"lefthook": "^2.1.10",
|
|
90
|
+
"oxfmt": "0.70.0",
|
|
91
|
+
"oxlint": "1.85.0",
|
|
92
|
+
"oxlint-tsgolint": "7.0.2002",
|
|
76
93
|
"typescript": "7.0.2"
|
|
77
94
|
},
|
|
78
95
|
"peerDependencies": {
|
|
@@ -87,11 +104,6 @@
|
|
|
87
104
|
"optional": true
|
|
88
105
|
}
|
|
89
106
|
},
|
|
90
|
-
"pi": {
|
|
91
|
-
"extensions": [
|
|
92
|
-
"./dist/pi/index.js"
|
|
93
|
-
]
|
|
94
|
-
},
|
|
95
107
|
"overrides": {
|
|
96
108
|
"@opentelemetry/core": "2.8.0",
|
|
97
109
|
"js-yaml": "^4.3.1",
|
|
@@ -104,17 +116,10 @@
|
|
|
104
116
|
"node": ">=18"
|
|
105
117
|
},
|
|
106
118
|
"packageManager": "bun@1.4.2",
|
|
107
|
-
"
|
|
108
|
-
"
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
"pi-package",
|
|
114
|
-
"cursor",
|
|
115
|
-
"amp",
|
|
116
|
-
"grok",
|
|
117
|
-
"grok-build"
|
|
118
|
-
],
|
|
119
|
-
"gitHead": "27cd85b2c799b3f4d232d954a64582179b0dd445"
|
|
119
|
+
"pi": {
|
|
120
|
+
"extensions": [
|
|
121
|
+
"./dist/pi/index.js"
|
|
122
|
+
]
|
|
123
|
+
},
|
|
124
|
+
"gitHead": "3a3d2414610195c00f4807b05ecc63ed2c3b497b"
|
|
120
125
|
}
|