-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
101 lines (101 loc) · 3.34 KB
/
Copy pathpackage.json
File metadata and controls
101 lines (101 loc) · 3.34 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
{
"name": "@hasna/shield",
"version": "0.1.27",
"description": "AI-powered security scanner for git repos — CLI, MCP, API, Web Dashboard, SDK with Cerebras LLM",
"type": "module",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"bin": {
"shield": "bin/shield.sh",
"shield-mcp": "bin/shield-mcp.sh",
"shield-serve": "bin/shield-serve.sh"
},
"exports": {
".": {
"import": "./dist/index.js",
"types": "./dist/index.d.ts"
},
"./sdk": {
"import": "./sdk/dist/index.js",
"types": "./sdk/dist/index.d.ts"
}
},
"scripts": {
"contracts:manifest": "contracts validate hasna.contract.json",
"contracts:check": "contracts repo-conformance .",
"build": "bun run build:lib && bun run build:types && bun run build:cli && bun run build:mcp && bun run build:server && bun run build:sdk && bun run build:dashboard",
"build:lib": "bun build src/index.ts --outdir dist --target node",
"artifact-scan": "bun scripts/no-cloud-artifact-scan.mjs",
"build:types": "tsc -p tsconfig.build.json",
"build:cli": "bun build src/cli/index.tsx --outfile dist/cli/index.js --target node",
"build:mcp": "bun build src/mcp/index.ts --outfile dist/mcp/index.js --target node",
"build:server": "bun build src/server/index.ts --outfile dist/server/index.js --target node",
"build:sdk": "cd sdk && bun run build",
"build:dashboard": "cd dashboard && bun install --frozen-lockfile && bun run build",
"dev:cli": "bun run src/cli/index.tsx",
"dev:mcp": "bun run src/mcp/index.ts",
"dev:serve": "bun run src/server/index.ts",
"test": "bun test --parallel=1",
"check:secrets": "bun run src/cli/index.tsx oss-secrets-policy . --strict",
"check:oss-policy": "bun run src/cli/index.tsx oss-secrets-policy . --strict",
"no-cloud:source": "bun test src/no-cloud-boundary.test.ts",
"no-cloud:pack": "bun run build && bun scripts/no-cloud-artifact-scan.mjs",
"prepack": "bun run build && bun run artifact-scan",
"prepublishOnly": "bun run check:secrets && bun run test && bun run build && bun scripts/no-cloud-artifact-scan.mjs",
"test:coverage": "bun test --coverage",
"typecheck": "tsc --noEmit",
"lint": "biome check src/",
"clean": "rm -rf dist dashboard/dist sdk/dist",
"postinstall": "mkdir -p $HOME/.hasna/security 2>/dev/null || true"
},
"dependencies": {
"@hasna/events": "^0.1.6",
"@modelcontextprotocol/sdk": "^1.29.0",
"better-sqlite3": "^11.8.1",
"chalk": "^5.4.1",
"commander": "^13.1.0",
"express": "^5.1.0",
"ink": "^5.2.0",
"openai": "^4.86.2",
"react": "^19.1.0",
"zod": "^3.24.4"
},
"devDependencies": {
"@hasna/contracts": "0.8.5",
"@types/better-sqlite3": "^7.6.13",
"@types/bun": "^1.2.12",
"@types/express": "^5.0.2",
"@types/react": "^19.1.2",
"typescript": "^5.8.3"
},
"files": [
"bin",
"dist",
"sdk/dist",
"dashboard/dist",
"README.md",
"hasna.contract.json",
"LICENSE"
],
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org/"
},
"license": "Apache-2.0",
"repository": {
"type": "git",
"url": "git+https://github.com/hasna/shield.git"
},
"keywords": [
"security",
"scanner",
"vulnerability",
"ai",
"mcp",
"cerebras",
"llm",
"owasp",
"secrets",
"cve"
]
}