Skip to content

Commit 81122d4

Browse files
committed
bulletproof for bulletproof
1 parent a4579b2 commit 81122d4

5 files changed

Lines changed: 86 additions & 1 deletion

File tree

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npm test

.husky/pre-push

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
npx bulletproof run --hook

bulletproof.config.json

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"model": "claude-opus-4-5-20251101",
3+
"maxTurns": 50,
4+
"coverageThresholds": {
5+
"lines": 90,
6+
"statements": 90,
7+
"functions": 78,
8+
"branches": 80
9+
},
10+
"coverageScope": {
11+
"include": [
12+
"src/**/*.ts",
13+
"src/**/*.tsx"
14+
],
15+
"exclude": [
16+
"src/test/**",
17+
"**/*.test.ts",
18+
"**/*.test.tsx",
19+
"**/*.spec.ts",
20+
"**/*.spec.tsx",
21+
"**/types/**",
22+
"**/*.d.ts"
23+
]
24+
},
25+
"checks": {
26+
"rules": true,
27+
"typecheck": true,
28+
"tests": true,
29+
"coverage": true
30+
},
31+
"commands": {
32+
"typecheck": "npm run typecheck",
33+
"test": "npm run test",
34+
"testCoverage": "npm run test -- --coverage",
35+
"testRelated": "npm run test -- --changed",
36+
"testCoverageRelated": "npm run test -- --coverage --changed"
37+
},
38+
"rulesFile": ".cursorrules"
39+
}

package-lock.json

Lines changed: 39 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"test": "vitest run",
4040
"test:watch": "vitest",
4141
"prepublishOnly": "npm run build",
42-
"prepare": "npm run build"
42+
"prepare": "husky"
4343
},
4444
"dependencies": {
4545
"@anthropic-ai/claude-agent-sdk": "^0.1.76",
@@ -58,7 +58,9 @@
5858
"@types/prompts": "^2.4.9",
5959
"@typescript-eslint/eslint-plugin": "^7.18.0",
6060
"@typescript-eslint/parser": "^7.18.0",
61+
"@vapi/bulletproof": "github:VapiAI/bulletproof",
6162
"eslint": "^8.57.1",
63+
"husky": "^9.1.7",
6264
"tsup": "^8.5.1",
6365
"typescript": "^5.9.3",
6466
"vitest": "^1.6.1"

0 commit comments

Comments
 (0)