guardrail-core 1.0.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/dist/__tests__/autopilot.test.d.ts +7 -0
- package/dist/__tests__/autopilot.test.d.ts.map +1 -0
- package/dist/__tests__/autopilot.test.js +156 -0
- package/dist/__tests__/tier-config.test.d.ts +9 -0
- package/dist/__tests__/tier-config.test.d.ts.map +1 -0
- package/dist/__tests__/tier-config.test.js +230 -0
- package/dist/__tests__/utils/hash-inline.test.d.ts +2 -0
- package/dist/__tests__/utils/hash-inline.test.d.ts.map +1 -0
- package/dist/__tests__/utils/hash-inline.test.js +62 -0
- package/dist/__tests__/utils/hash.test.d.ts +3 -0
- package/dist/__tests__/utils/hash.test.d.ts.map +1 -0
- package/dist/__tests__/utils/hash.test.js +95 -0
- package/dist/__tests__/utils/simple.test.d.ts +1 -0
- package/dist/__tests__/utils/simple.test.d.ts.map +1 -0
- package/dist/__tests__/utils/simple.test.js +10 -0
- package/dist/__tests__/utils/utils-simple.test.d.ts +1 -0
- package/dist/__tests__/utils/utils-simple.test.d.ts.map +1 -0
- package/dist/__tests__/utils/utils-simple.test.js +6 -0
- package/dist/__tests__/utils/utils.test.d.ts +15 -0
- package/dist/__tests__/utils/utils.test.d.ts.map +1 -0
- package/dist/__tests__/utils/utils.test.js +172 -0
- package/dist/autopilot/autopilot-runner.d.ts +33 -0
- package/dist/autopilot/autopilot-runner.d.ts.map +1 -0
- package/dist/autopilot/autopilot-runner.js +479 -0
- package/dist/autopilot/index.d.ts +6 -0
- package/dist/autopilot/index.d.ts.map +1 -0
- package/dist/autopilot/index.js +25 -0
- package/dist/autopilot/types.d.ts +102 -0
- package/dist/autopilot/types.d.ts.map +1 -0
- package/dist/autopilot/types.js +18 -0
- package/dist/cache/index.d.ts +7 -0
- package/dist/cache/index.d.ts.map +1 -0
- package/dist/cache/index.js +22 -0
- package/dist/cache/redis-cache.d.ts +145 -0
- package/dist/cache/redis-cache.d.ts.map +1 -0
- package/dist/cache/redis-cache.js +459 -0
- package/dist/ci/github-actions.d.ts +77 -0
- package/dist/ci/github-actions.d.ts.map +1 -0
- package/dist/ci/github-actions.js +277 -0
- package/dist/ci/index.d.ts +12 -0
- package/dist/ci/index.d.ts.map +1 -0
- package/dist/ci/index.js +27 -0
- package/dist/ci/pre-commit.d.ts +65 -0
- package/dist/ci/pre-commit.d.ts.map +1 -0
- package/dist/ci/pre-commit.js +286 -0
- package/dist/entitlements.d.ts +149 -0
- package/dist/entitlements.d.ts.map +1 -0
- package/dist/entitlements.js +464 -0
- package/dist/env.d.ts +113 -0
- package/dist/env.d.ts.map +1 -0
- package/dist/env.js +204 -0
- package/dist/fix-packs/__tests__/generate-fix-packs.test.d.ts +7 -0
- package/dist/fix-packs/__tests__/generate-fix-packs.test.d.ts.map +1 -0
- package/dist/fix-packs/__tests__/generate-fix-packs.test.js +250 -0
- package/dist/fix-packs/generate-fix-packs.d.ts +15 -0
- package/dist/fix-packs/generate-fix-packs.d.ts.map +1 -0
- package/dist/fix-packs/generate-fix-packs.js +505 -0
- package/dist/fix-packs/index.d.ts +8 -0
- package/dist/fix-packs/index.d.ts.map +1 -0
- package/dist/fix-packs/index.js +23 -0
- package/dist/fix-packs/types.d.ts +113 -0
- package/dist/fix-packs/types.d.ts.map +1 -0
- package/dist/fix-packs/types.js +71 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +28 -0
- package/dist/metrics/prometheus.d.ts +99 -0
- package/dist/metrics/prometheus.d.ts.map +1 -0
- package/dist/metrics/prometheus.js +306 -0
- package/dist/quota-ledger.d.ts +119 -0
- package/dist/quota-ledger.d.ts.map +1 -0
- package/dist/quota-ledger.js +462 -0
- package/dist/rbac/__tests__/permissions.test.d.ts +8 -0
- package/dist/rbac/__tests__/permissions.test.d.ts.map +1 -0
- package/dist/rbac/__tests__/permissions.test.js +350 -0
- package/dist/rbac/index.d.ts +9 -0
- package/dist/rbac/index.d.ts.map +1 -0
- package/dist/rbac/index.js +32 -0
- package/dist/rbac/permissions.d.ts +71 -0
- package/dist/rbac/permissions.d.ts.map +1 -0
- package/dist/rbac/permissions.js +247 -0
- package/dist/rbac/types.d.ts +69 -0
- package/dist/rbac/types.d.ts.map +1 -0
- package/dist/rbac/types.js +213 -0
- package/dist/tier-config.d.ts +203 -0
- package/dist/tier-config.d.ts.map +1 -0
- package/dist/tier-config.js +675 -0
- package/dist/types.d.ts +365 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +5 -0
- package/dist/utils.d.ts +36 -0
- package/dist/utils.d.ts.map +1 -0
- package/dist/utils.js +127 -0
- package/dist/verified-autofix/__tests__/format-validator.test.d.ts +11 -0
- package/dist/verified-autofix/__tests__/format-validator.test.d.ts.map +1 -0
- package/dist/verified-autofix/__tests__/format-validator.test.js +285 -0
- package/dist/verified-autofix/__tests__/pipeline.test.d.ts +11 -0
- package/dist/verified-autofix/__tests__/pipeline.test.d.ts.map +1 -0
- package/dist/verified-autofix/__tests__/pipeline.test.js +389 -0
- package/dist/verified-autofix/__tests__/repo-fingerprint.test.d.ts +11 -0
- package/dist/verified-autofix/__tests__/repo-fingerprint.test.d.ts.map +1 -0
- package/dist/verified-autofix/__tests__/repo-fingerprint.test.js +236 -0
- package/dist/verified-autofix/__tests__/workspace.test.d.ts +11 -0
- package/dist/verified-autofix/__tests__/workspace.test.d.ts.map +1 -0
- package/dist/verified-autofix/__tests__/workspace.test.js +314 -0
- package/dist/verified-autofix/format-validator.d.ts +101 -0
- package/dist/verified-autofix/format-validator.d.ts.map +1 -0
- package/dist/verified-autofix/format-validator.js +446 -0
- package/dist/verified-autofix/index.d.ts +14 -0
- package/dist/verified-autofix/index.d.ts.map +1 -0
- package/dist/verified-autofix/index.js +39 -0
- package/dist/verified-autofix/pipeline.d.ts +68 -0
- package/dist/verified-autofix/pipeline.d.ts.map +1 -0
- package/dist/verified-autofix/pipeline.js +330 -0
- package/dist/verified-autofix/repo-fingerprint.d.ts +56 -0
- package/dist/verified-autofix/repo-fingerprint.d.ts.map +1 -0
- package/dist/verified-autofix/repo-fingerprint.js +396 -0
- package/dist/verified-autofix/workspace.d.ts +83 -0
- package/dist/verified-autofix/workspace.d.ts.map +1 -0
- package/dist/verified-autofix/workspace.js +454 -0
- package/dist/verified-autofix.d.ts +182 -0
- package/dist/verified-autofix.d.ts.map +1 -0
- package/dist/verified-autofix.js +1021 -0
- package/dist/visualization/dependency-graph.d.ts +79 -0
- package/dist/visualization/dependency-graph.d.ts.map +1 -0
- package/dist/visualization/dependency-graph.js +399 -0
- package/dist/visualization/index.d.ts +5 -0
- package/dist/visualization/index.d.ts.map +1 -0
- package/dist/visualization/index.js +20 -0
- package/package.json +29 -0
- package/src/__tests__/autopilot.test.ts +196 -0
- package/src/__tests__/tier-config.test.ts +289 -0
- package/src/__tests__/utils/hash-inline.test.ts +76 -0
- package/src/__tests__/utils/hash.test.ts +119 -0
- package/src/__tests__/utils/simple.test.ts +10 -0
- package/src/__tests__/utils/utils-simple.test.ts +5 -0
- package/src/__tests__/utils/utils.test.ts +203 -0
- package/src/autopilot/autopilot-runner.ts +503 -0
- package/src/autopilot/index.ts +6 -0
- package/src/autopilot/types.ts +119 -0
- package/src/cache/index.ts +7 -0
- package/src/cache/redis-cache.d.ts +155 -0
- package/src/cache/redis-cache.d.ts.map +1 -0
- package/src/cache/redis-cache.ts +517 -0
- package/src/ci/github-actions.ts +335 -0
- package/src/ci/index.ts +12 -0
- package/src/ci/pre-commit.ts +338 -0
- package/src/db/usage-schema.prisma +114 -0
- package/src/entitlements.ts +570 -0
- package/src/env.d.ts +68 -0
- package/src/env.d.ts.map +1 -0
- package/src/env.ts +247 -0
- package/src/fix-packs/__tests__/generate-fix-packs.test.ts +317 -0
- package/src/fix-packs/generate-fix-packs.ts +577 -0
- package/src/fix-packs/index.ts +8 -0
- package/src/fix-packs/types.ts +206 -0
- package/src/index.d.ts +7 -0
- package/src/index.d.ts.map +1 -0
- package/src/index.ts +12 -0
- package/src/metrics/prometheus.d.ts +104 -0
- package/src/metrics/prometheus.d.ts.map +1 -0
- package/src/metrics/prometheus.ts +446 -0
- package/src/quota-ledger.ts +548 -0
- package/src/rbac/__tests__/permissions.test.ts +446 -0
- package/src/rbac/index.ts +46 -0
- package/src/rbac/permissions.ts +301 -0
- package/src/rbac/types.ts +298 -0
- package/src/tier-config.json +157 -0
- package/src/tier-config.ts +815 -0
- package/src/types.d.ts +365 -0
- package/src/types.d.ts.map +1 -0
- package/src/types.ts +441 -0
- package/src/utils.d.ts +36 -0
- package/src/utils.d.ts.map +1 -0
- package/src/utils.ts +140 -0
- package/src/verified-autofix/__tests__/format-validator.test.ts +335 -0
- package/src/verified-autofix/__tests__/pipeline.test.ts +419 -0
- package/src/verified-autofix/__tests__/repo-fingerprint.test.ts +241 -0
- package/src/verified-autofix/__tests__/workspace.test.ts +373 -0
- package/src/verified-autofix/format-validator.ts +517 -0
- package/src/verified-autofix/index.ts +63 -0
- package/src/verified-autofix/pipeline.ts +403 -0
- package/src/verified-autofix/repo-fingerprint.ts +459 -0
- package/src/verified-autofix/workspace.ts +531 -0
- package/src/verified-autofix.ts +1187 -0
- package/src/visualization/dependency-graph.d.ts +85 -0
- package/src/visualization/dependency-graph.d.ts.map +1 -0
- package/src/visualization/dependency-graph.ts +495 -0
- package/src/visualization/index.ts +5 -0
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
{
|
|
2
|
+
"TIERS": ["free", "starter", "pro", "compliance", "enterprise", "unlimited"],
|
|
3
|
+
"PURCHASABLE_TIERS": ["starter", "pro", "compliance", "enterprise"],
|
|
4
|
+
"TIER_ORDER": ["free", "starter", "pro", "compliance", "enterprise", "unlimited"],
|
|
5
|
+
"TIER_CONFIG": {
|
|
6
|
+
"free": {
|
|
7
|
+
"id": "free",
|
|
8
|
+
"name": "Free",
|
|
9
|
+
"price": 0,
|
|
10
|
+
"annualPrice": 0,
|
|
11
|
+
"description": "Get started",
|
|
12
|
+
"features": ["scan", "gate", "ship", "context", "badge"],
|
|
13
|
+
"limits": {
|
|
14
|
+
"scansPerMonth": 10,
|
|
15
|
+
"realityRunsPerMonth": 0,
|
|
16
|
+
"aiAgentRunsPerMonth": 0,
|
|
17
|
+
"projects": 1,
|
|
18
|
+
"teamMembers": 1,
|
|
19
|
+
"complianceFrameworks": 0
|
|
20
|
+
},
|
|
21
|
+
"rateLimit": {
|
|
22
|
+
"requestsPerMinute": 100,
|
|
23
|
+
"burstLimit": 150,
|
|
24
|
+
"windowMs": 60000
|
|
25
|
+
},
|
|
26
|
+
"upsell": {
|
|
27
|
+
"message": "Upgrade to Starter for Reality Mode browser testing and 100 scans/month",
|
|
28
|
+
"nextTier": "starter"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"starter": {
|
|
32
|
+
"id": "starter",
|
|
33
|
+
"name": "Starter",
|
|
34
|
+
"price": 29,
|
|
35
|
+
"annualPrice": 290,
|
|
36
|
+
"description": "For solo devs",
|
|
37
|
+
"features": ["scan", "scan:full", "gate", "fix", "ship", "reality", "context", "badge", "reports:html"],
|
|
38
|
+
"limits": {
|
|
39
|
+
"scansPerMonth": 100,
|
|
40
|
+
"realityRunsPerMonth": 20,
|
|
41
|
+
"aiAgentRunsPerMonth": 0,
|
|
42
|
+
"projects": 3,
|
|
43
|
+
"teamMembers": 1,
|
|
44
|
+
"complianceFrameworks": 0
|
|
45
|
+
},
|
|
46
|
+
"rateLimit": {
|
|
47
|
+
"requestsPerMinute": 300,
|
|
48
|
+
"burstLimit": 450,
|
|
49
|
+
"windowMs": 60000
|
|
50
|
+
},
|
|
51
|
+
"upsell": {
|
|
52
|
+
"message": "Upgrade to Pro for AI Agent testing, auto-fix, and Autopilot protection",
|
|
53
|
+
"nextTier": "pro"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"pro": {
|
|
57
|
+
"id": "pro",
|
|
58
|
+
"name": "Pro",
|
|
59
|
+
"price": 99,
|
|
60
|
+
"annualPrice": 990,
|
|
61
|
+
"description": "Full automation",
|
|
62
|
+
"features": ["scan", "scan:full", "scan:security", "gate", "fix", "fix:auto", "ship", "reality", "reality:flows", "ai-agent", "ai-agent:goals", "autopilot", "context", "badge", "mcp", "reports:html", "reports:sarif", "api:access", "webhooks"],
|
|
63
|
+
"limits": {
|
|
64
|
+
"scansPerMonth": 500,
|
|
65
|
+
"realityRunsPerMonth": 100,
|
|
66
|
+
"aiAgentRunsPerMonth": 50,
|
|
67
|
+
"projects": 10,
|
|
68
|
+
"teamMembers": 5,
|
|
69
|
+
"complianceFrameworks": 0
|
|
70
|
+
},
|
|
71
|
+
"rateLimit": {
|
|
72
|
+
"requestsPerMinute": 1000,
|
|
73
|
+
"burstLimit": 1500,
|
|
74
|
+
"windowMs": 60000
|
|
75
|
+
},
|
|
76
|
+
"upsell": {
|
|
77
|
+
"message": "Upgrade to Compliance tier for SOC2, HIPAA, GDPR frameworks",
|
|
78
|
+
"nextTier": "compliance"
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"compliance": {
|
|
82
|
+
"id": "compliance",
|
|
83
|
+
"name": "Compliance",
|
|
84
|
+
"price": 199,
|
|
85
|
+
"annualPrice": 1990,
|
|
86
|
+
"description": "Enterprise ready",
|
|
87
|
+
"features": ["scan", "scan:full", "scan:security", "scan:compliance", "gate", "fix", "fix:auto", "ship", "reality", "reality:flows", "ai-agent", "ai-agent:goals", "autopilot", "context", "badge", "mcp", "compliance:soc2", "compliance:hipaa", "compliance:gdpr", "compliance:pci", "compliance:nist", "compliance:iso27001", "reports:html", "reports:pdf", "reports:sarif", "api:access", "webhooks", "deploy-hooks"],
|
|
88
|
+
"limits": {
|
|
89
|
+
"scansPerMonth": 1000,
|
|
90
|
+
"realityRunsPerMonth": 200,
|
|
91
|
+
"aiAgentRunsPerMonth": 100,
|
|
92
|
+
"projects": 25,
|
|
93
|
+
"teamMembers": 10,
|
|
94
|
+
"complianceFrameworks": 6
|
|
95
|
+
},
|
|
96
|
+
"rateLimit": {
|
|
97
|
+
"requestsPerMinute": 2000,
|
|
98
|
+
"burstLimit": 3000,
|
|
99
|
+
"windowMs": 60000
|
|
100
|
+
},
|
|
101
|
+
"upsell": {
|
|
102
|
+
"message": "Contact sales for Enterprise with unlimited usage and dedicated support",
|
|
103
|
+
"nextTier": "enterprise"
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
"enterprise": {
|
|
107
|
+
"id": "enterprise",
|
|
108
|
+
"name": "Enterprise",
|
|
109
|
+
"price": 499,
|
|
110
|
+
"annualPrice": 4990,
|
|
111
|
+
"description": "Custom solutions",
|
|
112
|
+
"features": ["scan", "scan:full", "scan:security", "scan:compliance", "gate", "fix", "fix:auto", "ship", "reality", "reality:flows", "ai-agent", "ai-agent:goals", "autopilot", "context", "badge", "mcp", "compliance:soc2", "compliance:hipaa", "compliance:gdpr", "compliance:pci", "compliance:nist", "compliance:iso27001", "reports:html", "reports:pdf", "reports:sarif", "api:access", "webhooks", "deploy-hooks", "team:members", "team:admin"],
|
|
113
|
+
"limits": {
|
|
114
|
+
"scansPerMonth": 5000,
|
|
115
|
+
"realityRunsPerMonth": 1000,
|
|
116
|
+
"aiAgentRunsPerMonth": 500,
|
|
117
|
+
"projects": 100,
|
|
118
|
+
"teamMembers": 50,
|
|
119
|
+
"complianceFrameworks": 6
|
|
120
|
+
},
|
|
121
|
+
"rateLimit": {
|
|
122
|
+
"requestsPerMinute": 10000,
|
|
123
|
+
"burstLimit": 15000,
|
|
124
|
+
"windowMs": 60000
|
|
125
|
+
},
|
|
126
|
+
"upsell": {
|
|
127
|
+
"message": "You have our top tier! Contact support for custom requirements.",
|
|
128
|
+
"nextTier": "unlimited"
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
"unlimited": {
|
|
132
|
+
"id": "unlimited",
|
|
133
|
+
"name": "Unlimited",
|
|
134
|
+
"price": 0,
|
|
135
|
+
"annualPrice": 0,
|
|
136
|
+
"description": "Internal/Special",
|
|
137
|
+
"features": ["*"],
|
|
138
|
+
"limits": {
|
|
139
|
+
"scansPerMonth": -1,
|
|
140
|
+
"realityRunsPerMonth": -1,
|
|
141
|
+
"aiAgentRunsPerMonth": -1,
|
|
142
|
+
"projects": -1,
|
|
143
|
+
"teamMembers": -1,
|
|
144
|
+
"complianceFrameworks": 6
|
|
145
|
+
},
|
|
146
|
+
"rateLimit": {
|
|
147
|
+
"requestsPerMinute": 100000,
|
|
148
|
+
"burstLimit": 150000,
|
|
149
|
+
"windowMs": 60000
|
|
150
|
+
},
|
|
151
|
+
"upsell": {
|
|
152
|
+
"message": "You have unlimited access!",
|
|
153
|
+
"nextTier": "unlimited"
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|