-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
228 lines (228 loc) · 12.4 KB
/
Copy pathpackage.json
File metadata and controls
228 lines (228 loc) · 12.4 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
{
"name": "formaos",
"version": "3.7.1",
"private": true,
"engines": {
"node": "20.x"
},
"scripts": {
"check-root": "node scripts/check-root.js",
"check-env": "node scripts/check-env.js",
"audit:marketing-copy": "node tests/marketing/marketing-enterprise-audit.mjs",
"check:app-links": "node scripts/app-link-integrity-audit.mjs",
"check:admin-nav": "node scripts/check-admin-nav-integrity.mjs",
"check:security-baseline": "node scripts/check-security-baseline.mjs",
"check:production-config": "CHECK_ENV_STRICT=1 CHECK_ENV_PROFILE=production node scripts/check-env.js",
"verify:security-monitoring": "node scripts/verify-security-monitoring.js",
"verify:pdf-render": "tsx scripts/verify-pdf-render.mjs",
"predev": "npm run check-root && npm run check-env",
"dev": "next dev",
"prebuild": "npm run check-root && CHECK_ENV_STRICT=1 npm run check-env",
"build": "__NEXT_PRIVATE_STANDALONE_CONFIG= NODE_OPTIONS='--max-old-space-size=4096' next build --turbopack",
"prestart": "npm run check-root && CHECK_ENV_STRICT=1 npm run check-env",
"start": "next start",
"lint": "eslint --ext .js,.jsx,.ts,.tsx .",
"lint:fix": "eslint --ext .js,.jsx,.ts,.tsx . --fix",
"lint:tenant-isolation": "eslint --config eslint.tenant-isolation.config.mjs --ext .ts,.tsx lib/ app/api/",
"check:tenant-isolation-ratchet": "node scripts/check-tenant-isolation-ratchet.mjs",
"audit:csp-violations": "node scripts/summarize-csp-violations.mjs",
"stylelint": "node scripts/stylelint-lite.mjs",
"design:check": "node scripts/design-check.mjs",
"type-check": "tsc -p tsconfig.typecheck.json",
"typecheck": "npm run type-check",
"test": "jest",
"test:watch": "jest --watch",
"test:coverage": "jest --coverage",
"test:e2e": "playwright test",
"test:e2e:bounded": "playwright test --max-failures=25",
"test:e2e:ui": "playwright test --ui",
"test:e2e:smoke": "PLAYWRIGHT_REUSE_SERVER=true playwright test e2e/smoke.spec.ts e2e/app-link-integrity.spec.ts --project=chromium --reporter=list --workers=1",
"test:e2e:app-actions": "PLAYWRIGHT_REUSE_SERVER=true playwright test e2e/app-action-integrity.spec.ts --project=chromium --reporter=list --workers=1",
"test:e2e:exports": "PLAYWRIGHT_REUSE_SERVER=true playwright test e2e/export-integrity.spec.ts --project=chromium --reporter=list --workers=1",
"test:e2e:deep": "PLAYWRIGHT_REUSE_SERVER=true playwright test e2e/deep-workflow-integrity.spec.ts e2e/system-integration.spec.ts --project=chromium --reporter=list --workers=1",
"test:e2e:onboarding": "PLAYWRIGHT_REUSE_SERVER=true playwright test e2e/onboarding-flow.spec.ts --project=chromium --reporter=list --workers=1",
"test:e2e:billing": "PLAYWRIGHT_REUSE_SERVER=true playwright test e2e/billing-handoff.spec.ts --project=chromium --reporter=list --workers=1",
"test:e2e:accessibility": "playwright test e2e/accessibility.spec.ts --project=chromium --reporter=list",
"test:visual": "playwright test --config playwright.capture.config.ts e2e/marketing-screenshots.capture.ts --project=chromium --reporter=list --workers=1",
"test:visual:approve": "npm run test:visual",
"test:visual:reference": "npm run test:visual",
"test:lighthouse": "npx -y @lhci/cli@0.15.1 autorun",
"test:lighthouse:public": "node scripts/run-lighthouse-public.mjs",
"test:a11y": "playwright test e2e/accessibility.spec.ts --reporter=list --workers=1",
"test:a11y:deep": "node scripts/run-a11y-quality-gate.mjs",
"test:api-contracts": "node scripts/check-api-contracts.mjs",
"test:db": "node scripts/test-db-integrity.js",
"test:db:rls": "node scripts/check-supabase-rls-contracts.mjs",
"test:db:rls-guc-guard": "node scripts/check-rls-current-setting.mjs",
"test:db:orgs-sync": "node scripts/check-orgs-sync.mjs",
"test:db:ledger-alignment": "node scripts/check-migration-ledger-alignment.mjs",
"test:db:migration-parity": "node scripts/check-migration-parity.mjs",
"test:db:secdef-grants": "node scripts/check-security-definer-grants.mjs",
"test:db:restore-recency": "node scripts/check-restore-test-recency.mjs",
"test:security:leaked-secrets": "node scripts/check-leaked-secrets.mjs",
"ops:verify-pagerduty": "node scripts/verify-pagerduty-routing.mjs",
"db:ledger:snapshot": "node scripts/snapshot-migration-ledger.mjs",
"db:backfill:evidence-file-hash": "node scripts/backfill-evidence-file-hash.mjs",
"framework-packs:rehash": "node scripts/build-framework-packs-manifest.mjs",
"check:framework-packs": "node scripts/check-framework-packs-integrity.mjs",
"db:test:reset": "supabase db reset && npm run db:test:verify",
"db:test:verify": "node scripts/check-db-test-verify.mjs",
"test:supabase-health": "node scripts/test-supabase-health.js",
"test:all": "npm run lint && npm run type-check && npm run test:coverage && npm run test:e2e && npm run test:visual && npm run test:lighthouse && npm run test:a11y && npm run test:db",
"setup:monitoring": "node scripts/monitoring-setup.js",
"setup:tests": "playwright install && npm run test:visual:reference",
"qa:smoke": "PLAYWRIGHT_REUSE_SERVER=true playwright test e2e/smoke.spec.ts e2e/app-link-integrity.spec.ts e2e/admin-founder-smoke.spec.ts --project=chromium --reporter=list --workers=1",
"qa:smoke:matrix": "PLAYWRIGHT_REUSE_SERVER=true playwright test e2e/smoke.spec.ts e2e/app-link-integrity.spec.ts e2e/admin-founder-smoke.spec.ts --reporter=list --workers=1",
"qa:a11y": "PLAYWRIGHT_REUSE_SERVER=true playwright test e2e/a11y-smoke.spec.ts --reporter=list --workers=1",
"qa:deep": "npm run test:api-contracts && npm run test:db:rls && npm run test:db:tenant-isolation && npm run test:db:rls-guc-guard && npm run test:db:orgs-sync && npm run check:framework-packs && npm run test:a11y:deep",
"qa:enterprise": "playwright test e2e/enterprise-invariants.spec.ts e2e/security-invariants.spec.ts e2e/qa-enterprise-smoke.spec.ts --reporter=list",
"qa:full": "npm run test:all && npm run test:supabase-health",
"qa:full:bounded": "npm run lint && npm run type-check && npm run test:coverage && npm run test:e2e:bounded && npm run test:visual && npm run test:lighthouse && npm run test:a11y && npm run test:db && npm run test:supabase-health",
"ab-test": "tsx tests/ab-testing/ab-test-cli.ts",
"ab-test:list": "npm run ab-test list",
"ab-test:validate": "npm run ab-test validate",
"test:ab-testing": "npm run ab-test list && npm run ab-test validate",
"test:qa:quick": "node tests/quick-qa.js",
"test:qa:full": "npm run test:qa:quick && npm run qa:smoke && npm run test:visual && npm run test:a11y",
"test:compliance:gdpr": "node tests/compliance/gdpr-compliance.js",
"test:compliance:soc2": "node tests/compliance/soc2-compliance.js",
"test:compliance:all": "npm run test:compliance:gdpr && npm run test:compliance:soc2",
"load:public": "k6 run load-tests/public.js",
"load:app": "k6 run load-tests/dashboard.js",
"load:exports": "k6 run load-tests/exports.js",
"load:evidence": "k6 run load-tests/evidence-upload.js",
"load:public:docker": "docker run --rm -i -e BASE_URL=${BASE_URL:-https://www.formaos.com.au} -e VUS=${VUS:-3} -e DURATION=${DURATION:-45s} -v \"$PWD:/work\" grafana/k6 run /work/load-tests/public.js",
"load:app:docker": "docker run --rm -i -e BASE_URL=${BASE_URL:-https://app.formaos.com.au} -e VUS=${VUS:-3} -e DURATION=${DURATION:-45s} -e FORMAOS_AUTH_COOKIE -e AUTH_COOKIE -v \"$PWD:/work\" grafana/k6 run /work/load-tests/dashboard.js",
"load:exports:docker": "docker run --rm -i -e BASE_URL=${BASE_URL:-https://app.formaos.com.au} -e VUS=${VUS:-2} -e DURATION=${DURATION:-45s} -e FORMAOS_AUTH_COOKIE -e AUTH_COOKIE -v \"$PWD:/work\" grafana/k6 run /work/load-tests/exports.js",
"load:evidence:docker": "docker run --rm -i -e BASE_URL=${BASE_URL:-https://app.formaos.com.au} -e VUS=${VUS:-1} -e DURATION=${DURATION:-30s} -e FORMAOS_AUTH_COOKIE -e AUTH_COOKIE -e ALLOW_MUTATING_LOAD_TESTS -e EVIDENCE_ENTITY_ID -e EVIDENCE_ENTITY_TYPE -v \"$PWD:/work\" grafana/k6 run /work/load-tests/evidence-upload.js",
"tracetest:local": "node scripts/run-tracetest-local.mjs",
"test:db:tenant-isolation": "node scripts/check-tenant-isolation-behaviour.mjs",
"lint:supabase-errors": "eslint --no-config-lookup --config eslint.supabase-errors.config.mjs lib/ app/",
"check:supabase-error-ratchet": "node scripts/check-unchecked-supabase-error-ratchet.mjs",
"claims:rehash": "node scripts/build-marketing-claims.mjs",
"check:claims": "node scripts/check-marketing-claims.mjs"
},
"dependencies": {
"@ai-sdk/openai": "^3.0.41",
"@casl/ability": "^6.8.0",
"@hello-pangea/dnd": "^18.0.1",
"@langfuse/otel": "^5.0.1",
"@langfuse/tracing": "^5.0.1",
"@node-saml/node-saml": "^5.1.0",
"@node-saml/passport-saml": "^5.1.0",
"@opentelemetry/api": "^1.9.0",
"@opentelemetry/exporter-trace-otlp-http": "^0.213.0",
"@opentelemetry/instrumentation": "^0.213.0",
"@opentelemetry/instrumentation-http": "^0.213.0",
"@opentelemetry/instrumentation-undici": "^0.28.0",
"@opentelemetry/sdk-trace-base": "^2.6.0",
"@opentelemetry/sdk-trace-node": "^2.6.0",
"@opentelemetry/winston-transport": "^0.26.0",
"@radix-ui/react-alert-dialog": "^1.1.15",
"@radix-ui/react-dialog": "^1.1.15",
"@radix-ui/react-select": "^2.2.6",
"@radix-ui/react-separator": "^1.1.8",
"@radix-ui/react-slot": "^1.2.4",
"@react-email/components": "^1.0.4",
"@react-pdf/renderer": "^4.5.1",
"@sentry/nextjs": "^10.40.0",
"@sentry/react": "^10.40.0",
"@supabase/ssr": "^0.10.3",
"@supabase/supabase-js": "^2.98.0",
"@tanstack/react-table": "^8.21.3",
"@tiptap/extension-link": "^3.15.1",
"@tiptap/extension-placeholder": "^3.15.1",
"@tiptap/react": "^3.15.1",
"@tiptap/starter-kit": "^3.15.1",
"@tsparticles/engine": "^3.9.1",
"@tsparticles/react": "^3.0.0",
"@tsparticles/slim": "^3.9.1",
"@upstash/redis": "^1.36.1",
"ai": "^6.0.116",
"archiver": "^7.0.1",
"cheerio": "^1.2.0",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"cmdk": "^1.1.1",
"date-fns": "^4.1.0",
"framer-motion": "^12.24.12",
"jspdf": "^4.0.0",
"jspdf-autotable": "^5.0.7",
"lucide-react": "^0.562.0",
"next": "^16.1.6",
"next-themes": "^0.4.6",
"nextjs-toploader": "^3.9.17",
"openai": "^6.33.0",
"otpauth": "^9.5.1",
"pdf-lib": "^1.17.1",
"pino": "^10.3.1",
"posthog-js": "^1.360.2",
"qrcode": "^1.5.4",
"react": "19.2.3",
"react-dom": "19.2.3",
"react-hook-form": "^7.70.0",
"recharts": "^3.6.0",
"resend": "^6.6.0",
"sanitize-html": "^2.17.2",
"server-only": "^0.0.1",
"sonner": "^2.0.7",
"stripe": "^22.1.1",
"tailwind-merge": "^3.4.0",
"three": "^0.182.0",
"web-push": "^3.6.7",
"yaml": "^2.8.2",
"zod": "^4.3.6",
"zustand": "^4.5.5"
},
"overrides": {
"@opentelemetry/host-metrics": "^0.38.3",
"@opentelemetry/exporter-prometheus": "^0.217.0",
"cookie": "^0.7.2",
"dompurify": "^3.3.3",
"engine.io": "^6.6.5",
"flatted": "^3.4.2",
"postcss": "^8.5.14",
"protobufjs": "^8.2.0",
"socket.io": "^4.8.3",
"socket.io-client": "^4.8.3",
"systeminformation": "^5.31.4",
"undici": "^7.24.1"
},
"devDependencies": {
"@apidevtools/swagger-parser": "^12.1.0",
"@axe-core/playwright": "^4.11.1",
"@playwright/test": "^1.58.2",
"@testing-library/dom": "^10.4.1",
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/react": "^16.3.1",
"@testing-library/user-event": "^14.6.1",
"@types/archiver": "^7.0.0",
"@types/dompurify": "^3.0.5",
"@types/jest": "^30.0.0",
"@types/node": "^20.19.41",
"@types/qrcode": "^1.5.6",
"@types/react": "^19.2.14",
"@types/react-dom": "^19",
"@types/sanitize-html": "^2.16.1",
"@types/three": "^0.183.1",
"@types/web-push": "^3.6.4",
"@typescript-eslint/eslint-plugin": "^8.53.0",
"@typescript-eslint/parser": "^8.53.0",
"autoprefixer": "^10.4.23",
"axe-core": "^4.11.1",
"eslint": "^9.39.4",
"eslint-config-next": "^16.1.6",
"eslint-plugin-jsx-a11y": "^6.10.2",
"eslint-plugin-testing-library": "^7.15.4",
"eslint-plugin-unused-imports": "^4.4.1",
"jest": "^30.2.0",
"jest-environment-jsdom": "^30.2.0",
"jest-watch-typeahead": "^3.0.1",
"pa11y": "^9.1.1",
"postcss": "^8.5.14",
"tailwindcss": "^3.4.17",
"ts-jest": "^29.4.6",
"tsx": "^4.21.0",
"typescript": "5.9.3"
}
}