Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
executable file
·73 lines (73 loc) · 2.06 KB
/
Copy pathpackage.json
File metadata and controls
executable file
·73 lines (73 loc) · 2.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
{
"name": "@gitdamnit/stranger-danger",
"version": "0.2.0",
"description": "Secret and PII redaction guard for AI coding agents — scans files, context windows, and outputs before secrets reach LLMs",
"keywords": [
"opencode",
"security",
"secrets",
"redaction",
"pii",
"gitleaks",
"plugin"
],
"author": "gitdamnit",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/gitdamnit/opencode-stranger-danger.git"
},
"bugs": {
"url": "https://github.com/gitdamnit/opencode-stranger-danger/issues"
},
"homepage": "https://github.com/gitdamnit/opencode-stranger-danger#readme",
"type": "module",
"main": "dist/plugin/index.js",
"exports": {
".": "./dist/plugin/index.js",
"./engine": "./dist/engine/scanner.js"
},
"bin": {
"sd": "./dist/cli/index.js"
},
"files": [
"index.js",
"dist/",
"rules/gitleaks-rules.toml",
".strangerdanger-allowlist.toml",
"strangerdanger2.jpeg",
"README.md",
"CHANGELOG.md"
],
"scripts": {
"build": "tsc",
"build:rules": "tsx scripts/compile-rules.ts",
"prebuild": "npm run build:rules",
"typecheck": "tsc --noEmit",
"lint": "eslint .",
"test": "tsx --test tests/*.test.ts tests/*/*.test.ts",
"test:unit": "tsx --test tests/engine/*.test.ts tests/cli/*.test.ts tests/plugin/*.test.ts",
"test:integration": "tsx --test tests/integration.test.ts",
"test:security": "tsx --test tests/hardening.test.ts tests/pentest.test.ts tests/security-coverage.test.ts",
"pretest": "npm run build:rules",
"verify:package": "node scripts/verify-package.mjs",
"prepublishOnly": "npm run typecheck && npm run lint && npm test && npm run build"
},
"peerDependencies": {
"@opencode/plugin": ">=2.0.0"
},
"devDependencies": {
"@opencode/plugin": "^2.0.29",
"@types/node": "^22.19.19",
"eslint": "^9.0.0",
"tsx": "^4.0.0",
"typescript": "^5.6.0",
"typescript-eslint": "^8.0.0"
},
"publishConfig": {
"access": "public"
},
"engines": {
"node": ">=20.0.0"
}
}