guardrail-core 1.0.0 → 2.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.
Files changed (74) hide show
  1. package/dist/__tests__/autopilot-enterprise.test.d.ts +7 -0
  2. package/dist/__tests__/autopilot-enterprise.test.d.ts.map +1 -0
  3. package/dist/__tests__/autopilot-enterprise.test.js +334 -0
  4. package/dist/autopilot/autopilot-runner.d.ts +9 -0
  5. package/dist/autopilot/autopilot-runner.d.ts.map +1 -1
  6. package/dist/autopilot/autopilot-runner.js +182 -1
  7. package/dist/autopilot/types.d.ts +18 -2
  8. package/dist/autopilot/types.d.ts.map +1 -1
  9. package/dist/index.d.ts +1 -0
  10. package/dist/index.d.ts.map +1 -1
  11. package/dist/index.js +1 -0
  12. package/dist/smells/index.d.ts +59 -0
  13. package/dist/smells/index.d.ts.map +1 -0
  14. package/dist/smells/index.js +251 -0
  15. package/package.json +19 -2
  16. package/src/__tests__/autopilot.test.ts +0 -196
  17. package/src/__tests__/tier-config.test.ts +0 -289
  18. package/src/__tests__/utils/hash-inline.test.ts +0 -76
  19. package/src/__tests__/utils/hash.test.ts +0 -119
  20. package/src/__tests__/utils/simple.test.ts +0 -10
  21. package/src/__tests__/utils/utils-simple.test.ts +0 -5
  22. package/src/__tests__/utils/utils.test.ts +0 -203
  23. package/src/autopilot/autopilot-runner.ts +0 -503
  24. package/src/autopilot/index.ts +0 -6
  25. package/src/autopilot/types.ts +0 -119
  26. package/src/cache/index.ts +0 -7
  27. package/src/cache/redis-cache.d.ts +0 -155
  28. package/src/cache/redis-cache.d.ts.map +0 -1
  29. package/src/cache/redis-cache.ts +0 -517
  30. package/src/ci/github-actions.ts +0 -335
  31. package/src/ci/index.ts +0 -12
  32. package/src/ci/pre-commit.ts +0 -338
  33. package/src/db/usage-schema.prisma +0 -114
  34. package/src/entitlements.ts +0 -570
  35. package/src/env.d.ts +0 -68
  36. package/src/env.d.ts.map +0 -1
  37. package/src/env.ts +0 -247
  38. package/src/fix-packs/__tests__/generate-fix-packs.test.ts +0 -317
  39. package/src/fix-packs/generate-fix-packs.ts +0 -577
  40. package/src/fix-packs/index.ts +0 -8
  41. package/src/fix-packs/types.ts +0 -206
  42. package/src/index.d.ts +0 -7
  43. package/src/index.d.ts.map +0 -1
  44. package/src/index.ts +0 -12
  45. package/src/metrics/prometheus.d.ts +0 -104
  46. package/src/metrics/prometheus.d.ts.map +0 -1
  47. package/src/metrics/prometheus.ts +0 -446
  48. package/src/quota-ledger.ts +0 -548
  49. package/src/rbac/__tests__/permissions.test.ts +0 -446
  50. package/src/rbac/index.ts +0 -46
  51. package/src/rbac/permissions.ts +0 -301
  52. package/src/rbac/types.ts +0 -298
  53. package/src/tier-config.json +0 -157
  54. package/src/tier-config.ts +0 -815
  55. package/src/types.d.ts +0 -365
  56. package/src/types.d.ts.map +0 -1
  57. package/src/types.ts +0 -441
  58. package/src/utils.d.ts +0 -36
  59. package/src/utils.d.ts.map +0 -1
  60. package/src/utils.ts +0 -140
  61. package/src/verified-autofix/__tests__/format-validator.test.ts +0 -335
  62. package/src/verified-autofix/__tests__/pipeline.test.ts +0 -419
  63. package/src/verified-autofix/__tests__/repo-fingerprint.test.ts +0 -241
  64. package/src/verified-autofix/__tests__/workspace.test.ts +0 -373
  65. package/src/verified-autofix/format-validator.ts +0 -517
  66. package/src/verified-autofix/index.ts +0 -63
  67. package/src/verified-autofix/pipeline.ts +0 -403
  68. package/src/verified-autofix/repo-fingerprint.ts +0 -459
  69. package/src/verified-autofix/workspace.ts +0 -531
  70. package/src/verified-autofix.ts +0 -1187
  71. package/src/visualization/dependency-graph.d.ts +0 -85
  72. package/src/visualization/dependency-graph.d.ts.map +0 -1
  73. package/src/visualization/dependency-graph.ts +0 -495
  74. package/src/visualization/index.ts +0 -5
@@ -1,157 +0,0 @@
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
- }