Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
291 lines (291 loc) · 17.7 KB
/
Copy pathpackage.json
File metadata and controls
291 lines (291 loc) · 17.7 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
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
{
"name": "pubmaxxing",
"version": "0.1.0",
"private": true,
"engines": {
"node": "^22.22.3 || ^24.15.0 || >=26.0.0"
},
"scripts": {
"dev": "node scripts/check_node_modules_fresh.mjs && npm run prepare:maplibre-worker && npm run build:places-enrichment && next dev --webpack",
"build": "npm run prepare:maplibre-worker && npm run build:places-enrichment && npm run build:slim && npm run build:city-slim && npm run build:pubmaxxing-seed && npm run build:uk-base && npm run build:discover-board && next build",
"start": "node -e \"const d=process.env.NEXT_DIST_DIR||'.next'; require('fs').existsSync(d+'/BUILD_ID') || (console.error('\\n\\u2717 '+d+'/BUILD_ID is missing \\u2014 there is no completed production build to serve.\\n Run npm run build to completion first. In this shared worktree a concurrent next dev/next build can clobber .next mid-build and leave it partial; for isolated production QA use NEXT_DIST_DIR=.next-prod.\\n'), process.exit(1))\" && next start",
"deploy:preview": "node scripts/deploy-vercel.mjs",
"release:prod": "node scripts/release-production.mjs",
"deploy:preview:prod-env": "node scripts/deploy-preview-prod-env.mjs",
"lint": "eslint . && npm run lint:workflows",
"lint:workflows": "node --import tsx scripts/ci/lint-workflows.mjs",
"typecheck": "next typegen && node node_modules/@typescript/native/lib/tsc.js --noEmit",
"typecheck:e2e": "node node_modules/@typescript/native/lib/tsc.js --noEmit -p e2e/tsconfig.json",
"ci:shard-durations": "node scripts/ci/update-vitest-shard-durations.mjs",
"ci:layout-pin-durations": "node scripts/ci/update-layout-pin-durations.mjs",
"db:types": "node scripts/db/generate-database-types.mjs",
"db:types:check": "node scripts/db/generate-database-types.mjs --check",
"test": "node scripts/check_node_modules_fresh.mjs && vitest run",
"test:rls": "node scripts/rls/run-session-tests.mjs",
"test:e2e": "playwright test",
"test:e2e:plan-auth": "node scripts/e2e/run-disposable-plan-auth.mjs",
"review:dedup": "node scripts/review-finding-dedup.mjs",
"test:review-dedup": "node --test __tests__/reviewFindingDedup.test.mjs",
"test:landing-transport": "node --experimental-strip-types --test __tests__/fragmentedLandingProxy.test.mjs",
"e2e:cli": "playwright cli",
"test:prod-smoke": "playwright test -c playwright.prod-smoke.config.ts",
"perf:cwv-sweep": "PUBMAX_CWV_SWEEP=1 playwright test --project=chromium-cwv",
"perf:cwv-record": "PUBMAX_CWV_RECORD=1 playwright test --project=chromium-cwv",
"e2e:seed": "tsx scripts/e2e-seed-user.ts",
"e2e:teardown": "tsx scripts/e2e-seed-user.ts --teardown",
"poster:mint": "tsx scripts/mint-poster-code.ts",
"gate:playwright": "node scripts/assert-playwright-gate.mjs",
"gate:privacy": "node scripts/assert-privacy-response.mjs",
"gate:e2e-skips": "node scripts/assert-no-conditional-e2e-skips.mjs e2e",
"gate:e2e-waits": "node scripts/assert-e2e-waits.mjs e2e",
"gate:no-python-network": "node scripts/assert-no-python-network.mjs",
"shots": "PUBMAX_E2E_KEYLESS=1 PW_SCREENSHOTS=1 node scripts/run-with-restored-next-env.mjs sh -c 'npm run build && base=$((30000 + ($$ % 10000))); i=0; for p in shots-390-light shots-1440-light shots-390-dark shots-1440-dark; do PW_PORT=$((base + i)) playwright test --workers=1 --project=$p || exit; i=$((i + 1)); done'",
"shots:extended": "PUBMAX_E2E_KEYLESS=1 PW_SCREENSHOTS=1 node scripts/run-with-restored-next-env.mjs sh -c 'npm run build && base=$((30000 + ($$ % 10000))); i=0; for p in shots-390-light shots-430-light shots-1280-light shots-1440-light shots-390-dark shots-430-dark shots-1280-dark shots-1440-dark; do PW_PORT=$((base + i)) playwright test --workers=1 --project=$p || exit; i=$((i + 1)); done'",
"coverage": "node scripts/run-coverage.mjs",
"validate-data": "node scripts/prevalidate-data.mjs && node scripts/validate-data.mjs",
"backup:offplatform": "node scripts/backup-offplatform.mjs",
"backup:install-launchd": "node scripts/install-backup-launchd.mjs",
"check:freshness": "node scripts/check_freshness.mjs",
"check:migration-ledger": "node scripts/check-migration-ledger.mjs",
"launch:figures": "node --conditions=react-server --import tsx scripts/launch_figures.mjs",
"build:pint-index-snapshot": "node --conditions=react-server --import tsx scripts/build_pint_index_snapshot.mjs",
"diagnose:pint-index": "node --import tsx scripts/diagnose-pint-index.ts",
"build:map-opening-snapshot": "node --import tsx scripts/build_map_opening_snapshot.mjs",
"ingest:hyped-pubs": "node scripts/hyped-pubs-ingest.mjs",
"price-pulse:draft": "node scripts/price-pulse/draft-edition.mjs",
"publish:pint-index-month": "tsx scripts/publish_pint_index_month.mjs",
"export:data": "python3 scripts/export_app_dataset_json.py && npm run canonicalize:venues",
"canonicalize:venues": "node scripts/canonicalize_venue_dataset.mjs",
"build:slim": "npm run canonicalize:venues && node scripts/build_slim_index.mjs",
"build:venue-details": "node scripts/build_slim_index.mjs --details-only",
"refresh:slim": "npm run build:slim -- --refresh",
"fetch:city-pubs": "node scripts/fetch_city_osm_pubs.mjs",
"fetch:city-places": "node scripts/fetch_city_place_nodes.mjs",
"build:city-night-areas": "node scripts/build_city_night_areas.mjs",
"fetch:uk-pubs": "node scripts/fetch_uk_osm_pubs.mjs",
"build:osm-fhrs-links": "node scripts/build_osm_fhrs_links.mjs",
"build:fsa-hygiene": "node scripts/build_fsa_hygiene_pack.mjs",
"build:osm-wikidata-links": "node scripts/build_osm_wikidata_links.mjs",
"build:wikidata-history": "node scripts/build_wikidata_history_pack.mjs",
"fetch:uk-venues": "node scripts/fetch_uk_osm_venues.mjs",
"build:london-venues": "node scripts/build_london_venue_shards.mjs",
"harvest:london-restaurant-drinks": "node scripts/harvest_london_restaurant_drinks.mjs",
"build:london-desks": "node scripts/build_london_desk_index.mjs",
"build:london-restaurants": "node scripts/build_london_restaurant_pack.mjs",
"build:london-food": "node scripts/build_london_food_pack.mjs",
"build:price-estimates": "node scripts/build_price_estimate_baselines.mjs",
"harvest:chain-prices": "tsx scripts/harvest_chain_menu_prices.mjs",
"fetch:wetherspoons-pubs": "tsx scripts/fetch_wetherspoons_pubs.mjs",
"fetch:london-pubs": "node scripts/fetch_city_osm_pubs.mjs --london",
"merge:london-osm": "node scripts/merge_outer_london_osm.mjs",
"promote:london-osm": "node --import tsx scripts/promote_london_osm_pubs.mjs",
"build:city-slim": "node scripts/build_city_slim_index.mjs",
"build:pubmaxxing-seed": "node scripts/build_pubmaxxing_seed.mjs",
"build:uk-base": "node scripts/build_uk_base_shards.mjs && node scripts/build_uk_base_overview.mjs && node scripts/build_uk_place_index.mjs && node scripts/build_uk_pub_search_index.mjs",
"build:uk-pub-search": "node scripts/build_uk_pub_search_index.mjs",
"build:osm-pub-facts": "node scripts/build_osm_pub_facts.mjs",
"build:last-orders": "node scripts/build_last_orders_pack.mjs",
"fetch:wikidata-notable-pubs": "node scripts/fetch_wikidata_notable_pubs.mjs",
"prepare:maplibre-worker": "node scripts/copy_maplibre_worker.mjs && node scripts/copy_elevenlabs_worklets.mjs",
"build:heritage-listings": "node scripts/build_heritage_listings.mjs",
"build:guinndex-prices": "tsx scripts/build_guinndex_prices.mjs",
"pubpal:agent": "node scripts/pubpal/create-elevenlabs-agent.mjs",
"pubpal:design-voices": "node scripts/pubpal/design-pal-voices.mjs",
"pubpal:prove-text-tool": "node scripts/pubpal/prove-pal-text-tool.mjs",
"gen:brand-assets": "node scripts/gen-brand-assets.mjs",
"pubpal:mouth-composite": "node scripts/pubpal/mouth-composite.mjs",
"pubpal:stage": "node scripts/pubpal/render-pal-stage.mjs",
"generate:pub-copy": "node --conditions=react-server --import tsx scripts/generate_pub_record_copy.mjs",
"gen:store-screenshots": "node scripts/gen-store-screenshots.mjs",
"proof:design": "node scripts/design-proof.mjs",
"ios:build": "node scripts/ios-simulator.mjs",
"ios:run": "node scripts/ios-simulator.mjs --run",
"android:build": "node scripts/android/build.mjs",
"android:run": "node scripts/android/run.mjs",
"refresh:drink-prices": "node scripts/refresh_drink_prices.mjs",
"enrich:city": "tsx scripts/enrich_city_pubs_tavily.mjs",
"tavily:correct": "tsx scripts/correct_tavily_rows.mjs",
"tavily:reject": "tsx scripts/reject_tavily_rows.mjs",
"prices:drop-wrong-pub": "node scripts/drop_wrong_pub_menu_rows.mjs",
"evaluate:open-pubs": "node scripts/evaluate_open_pubs.mjs",
"evaluate:open-pubs:london": "node scripts/evaluate_open_pubs.mjs --london",
"whats-on-refresh": "node scripts/refresh_whats_on.mjs",
"refresh:area-news": "node scripts/refresh_area_news.mjs",
"ingest:night-signals": "node scripts/ingest_night_signal_candidates.mjs",
"refresh:night-signals": "node scripts/refresh_night_signal_claims.mjs",
"refresh:weather": "node scripts/refresh_weather_snapshots.mjs",
"push:daily": "node --conditions=react-server --import tsx scripts/push/sendDailyBrief.mjs",
"push:step-out": "node --conditions=react-server --import tsx scripts/push/sendStepOutNudge.mjs",
"refresh:events": "node --import tsx scripts/whatson/eventsRefresh.mjs",
"check:realtime": "node scripts/check-realtime.mjs",
"verify": "PUBMAX_VERIFY_COMMITTED_DATA=1 npm run validate-data && npm run lint && npm run db:types:check && npm run typecheck && npm run typecheck:e2e && npm run test:chatgpt-map && npm run deadcode && npm run test:landing-transport && npm run coverage -- --without-postgres && npm run test:rls && npm run gate:e2e-skips && npm run gate:e2e-waits && npm run gate:no-python-network && npm run check:freshness && node scripts/ci/install-script-allowlist.mjs --check && node scripts/resilient-audit.mjs",
"verify:no-mistakes": "DEPLOYMENT_VERSION=local PUBMAX_VERIFY_COMMITTED_DATA=1 node scripts/run-with-restored-bundled-data.mjs npm run verify",
"verify:no-mistakes:changed": "DEPLOYMENT_VERSION=local PUBMAX_VERIFY_COMMITTED_DATA=1 node scripts/run-with-restored-bundled-data.mjs node scripts/verify-changed.mjs",
"ci": "npm run verify && npm run build",
"ci:isolated": "node scripts/run-with-restored-next-env.mjs npm run ci",
"setup": "git config core.hooksPath .githooks && echo 'git hooks enabled (pre-push runs npm run verify:no-mistakes:changed)'",
"merge:london-chains": "node scripts/merge_london_chain_scrapes.mjs",
"deadcode": "node scripts/deadcode-gate.mjs",
"deadcode:all": "knip",
"harvest:run": "tsx scripts/harvest/run.mjs",
"harvest:uk-pubs": "node --max-old-space-size=2048 scripts/harvest/uk-pubs/run.mjs",
"harvest:uk-bars": "node --max-old-space-size=2048 scripts/harvest/uk-pubs/run.mjs --bars",
"harvest:fold": "node --conditions=react-server --import tsx scripts/harvest/uk-pubs/fold.mjs",
"editorial:poll": "node scripts/editorial/poll.mjs",
"harvest:pub-website-amenities": "node --conditions=react-server --import tsx scripts/harvest/pub-website-amenities/run.mjs",
"harvest:contextdev-whats-on": "node --conditions=react-server --import tsx scripts/whatson/contextDevHarvest.mjs",
"harvest:pub-website-hours-dogs": "node --conditions=react-server --import tsx scripts/harvest/pub-website-amenities/hours-and-dogs.mjs",
"harvest:uk-prices": "node --conditions=react-server --import tsx scripts/harvest/uk-prices/run.mjs",
"harvest:london-price-coverage": "node --conditions=react-server --import tsx scripts/harvest/uk-prices/london-coverage.ts",
"build:uk-price-bundle": "tsx scripts/build_uk_price_bundle.mjs",
"harvest:uk-menu-urls": "tsx scripts/harvest/uk-prices/menu-urls.mjs",
"harvest:uk-exa-sites": "tsx scripts/harvest/uk-prices/exa-sites.mjs",
"harvest:uk-record-publications": "tsx scripts/harvest/uk-prices/record-later-publications.mjs",
"harvest:uk-prices-rendered": "tsx scripts/harvest/uk-prices/render.mjs",
"harvest:uk-prices-ocr": "tsx scripts/harvest/uk-prices/ocr.mjs",
"harvest:uk-prices-tavily": "node --conditions=react-server --import tsx scripts/harvest/uk-prices/tavily.mjs",
"harvest:uk-food": "node --conditions=react-server --import tsx scripts/harvest/uk-food/run.mjs",
"build:food-price-updates": "node --conditions=react-server --import tsx scripts/build_food_price_updates.mjs",
"build:price-bands": "tsx scripts/build_price_bands.mjs",
"build:discover-board": "node --conditions=react-server --import tsx scripts/build_discover_board.mjs",
"build:map-icon-sprites": "node scripts/build-map-icon-sprites.mjs",
"arize:smoke": "tsx scripts/arizeSmoke.ts",
"backfill:site-harvest-drink-labels": "tsx scripts/backfill_site_harvest_drink_labels.mjs",
"harvest:soft-drinks-menus": "tsx scripts/harvest_soft_drinks_menus.mjs",
"discover:soft-drinks-menu-urls": "tsx scripts/discover_soft_drinks_menu_urls.mjs",
"eval:pal": "node --conditions=react-server --import tsx scripts/pal-eval.mjs",
"eval:pal:live": "node --conditions=react-server --import tsx scripts/pal-eval.mjs --live --write-scoreboard",
"eval:pal:memory": "node --conditions=react-server --import tsx scripts/pal-memory-eval.mjs",
"eval:pal:memory:live": "node --conditions=react-server --import tsx scripts/pal-memory-eval.mjs --live",
"report:calibration": "node scripts/calibration_report.mjs",
"regenerate:pal-answer-key": "node --conditions=react-server --import tsx scripts/regenerate-pal-answer-key.mjs",
"verify:famous-venues": "node --env-file-if-exists=.env.local --import tsx scripts/verify_famous_venues.mjs",
"verify:pub-hours": "node --import tsx scripts/verify_pub_hours.mjs",
"verify:london-places": "node --import tsx scripts/verify_london_places.mjs",
"build:places-enrichment": "node --import tsx scripts/build_places_enrichment.mjs",
"enrich:google-places": "node --import tsx scripts/enrich_google_places.mjs",
"test:chatgpt-map": "npm --prefix scripts/chatgpt-map ci --no-audit --no-fund && npm --prefix scripts/chatgpt-map test",
"deps:install-scripts": "node scripts/ci/install-script-allowlist.mjs",
"tavily:nightly": "tsx scripts/tavily-nightly-pass.mjs"
},
"allowScripts": {
"core-js": false,
"esbuild": true,
"fsevents": false,
"unrs-resolver": false
},
"dependencies": {
"@ai-sdk/otel": "^1.0.181",
"@alexanderolsen/libsamplerate-js": "2.1.2",
"@anthropic-ai/sdk": "1.13.0",
"@arizeai/openinference-instrumentation-openai": "^4.7.1",
"@arizeai/openinference-semantic-conventions": "^2.18.0",
"@arizeai/openinference-vercel": "^3.3.6",
"@capacitor-community/in-app-review": "^8.0.0",
"@capacitor/android": "^8.6.2",
"@capacitor/app": "^8.1.2",
"@capacitor/browser": "^8.0.5",
"@capacitor/camera": "^8.2.6",
"@capacitor/haptics": "^8.0.2",
"@capacitor/push-notifications": "^8.1.3",
"@capacitor/share": "^8.0.3",
"@capacitor/splash-screen": "^8.0.2",
"@capacitor/text-zoom": "^8.0.1",
"@clerk/nextjs": "^7.10.8",
"@elevenlabs/react": "^1.24.0",
"@modelcontextprotocol/ext-apps": "2.0.4",
"@modelcontextprotocol/sdk": "1.32.2",
"@opentelemetry/api": "^1.9.1",
"@opentelemetry/exporter-trace-otlp-proto": "^0.223.2",
"@opentelemetry/sdk-trace-base": "^2.12.0",
"@radix-ui/react-slot": "^1.5.0",
"@remotion/player": "4.0.546",
"@supabase/supabase-js": "^2.119.2",
"@typesafe-ai/sdk": "^0.7.0",
"@vercel/analytics": "^2.0.1",
"@vercel/oidc": "4.0.9",
"@vercel/otel": "^2.3.0",
"@vercel/speed-insights": "^2.1.0",
"ai": "^7.0.138",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"context.dev": "3.30.0",
"effect": "^4.1.5",
"framer-motion": "^14.14.0",
"lucide-react": "^1.79.0",
"maplibre-gl": "6.19.0",
"mediabunny": "1.66.5",
"next": "^16.4.6",
"openai": "^7.63.0",
"parse5": "^8.1.1",
"posthog-js": "^1.454.2",
"react": "^19.3.1",
"react-dom": "^19.3.1",
"remotion": "4.0.546",
"server-only": "0.0.1",
"sharp": "^0.35.5",
"tailwind-merge": "^3.7.1",
"three": "0.187.0",
"uqr": "0.1.3",
"web-push": "^4.0.0",
"zod": "4.6.7"
},
"devDependencies": {
"@axe-core/playwright": "^4.14.0",
"@capacitor/cli": "^8.6.2",
"@capacitor/core": "^8.6.2",
"@capacitor/ios": "^8.6.2",
"@copilotkit/aimock": "^1.48.0",
"@elevenlabs/client": "1.38.0",
"@maplibre/maplibre-gl-style-spec": "^26.8.0",
"@next/env": "^16.4.6",
"@playwright/test": "1.65.1",
"@tailwindcss/postcss": "^4.3.5",
"@types/geojson": "^7946.0.16",
"@types/jsdom": "^30.0.0",
"@types/node": "^26.6.6",
"@types/react": "^19.3.0",
"@types/react-dom": "^19.3.0",
"@types/three": "0.187.0",
"@types/web-push": "^3.6.4",
"@typescript-eslint/parser": "^8.72.2",
"@typescript/native": "npm:typescript@^7.0.2",
"@vitest/browser-playwright": "^5.1.0",
"@vitest/coverage-v8": "^5.0.5",
"eslint": "^10.15.0",
"eslint-config-next": "^16.4.6",
"jsdom": "^31.0.1",
"knip": "^6.45.1",
"pdfjs-dist": "6.5.438",
"tailwindcss": "^4.3.3",
"tsx": "^4.23.15",
"typescript": "6.0.3",
"vitest": "^5.0.5",
"yaml": "^2.9.1"
},
"overrides": {
"uuid": "14.0.2",
"rimraf": {
"glob": "14.0.6"
},
"minimatch@^10.0.0": "11.0.8",
"browserslist": "^4.29.3",
"playwright": "1.65.1",
"playwright-core": "1.65.1",
"postcss": "^8.5.30",
"sharp": "$sharp",
"@vercel/cli-config": {
"zod": "$zod"
},
"eslint-plugin-react": {
"eslint": "$eslint"
},
"eslint-plugin-jsx-a11y": {
"eslint": "$eslint"
},
"eslint-plugin-import": {
"eslint": "$eslint"
},
"tar": "^8.0.0"
}
}