packages/supabase/tests/e2e/avatar-flow.e2e.ts (pnpm e2e:avatar through scripts/avatar-e2e.sh: worker container on the Supabase network, 5 s sweep, no quarantine grace; a fresh account per run): clean upload and owner-only download (Bob, anon, quarantine key, direct final-key write refused), replacement purged after the grace (queue clock shifted through psql), late bytes through a still-valid signed upload URL swept, hostile and corrupted uploads rejected with closed codes, removal with the purge queue drained. Worker: the Storage API answers a missing object with HTTP 400 and statusCode 404; normalised to 404 so a purge of a never-written key is acked. docker-compose.yml: service worker under the worker profile (read-only, cap_drop ALL, no-new-privileges, 512m, 1 cpu, 64 pids, .env.worker, external Supabase network). docs/development/STORAGE.md: the implementation contract.
49 lines
2.3 KiB
JSON
49 lines
2.3 KiB
JSON
{
|
|
"name": "faunosteo",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"description": "Faunosteo monorepo: private app (apps/app), future public site, worker and shared packages",
|
|
"license": "MIT",
|
|
"packageManager": "pnpm@10.13.1",
|
|
"engines": {
|
|
"node": ">=22.12 <25",
|
|
"pnpm": ">=10.13 <11"
|
|
},
|
|
"scripts": {
|
|
"dev": "pnpm --filter @faunosteo/app dev",
|
|
"preview": "pnpm --filter @faunosteo/app preview",
|
|
"build": "pnpm -r build",
|
|
"typecheck": "pnpm -r typecheck",
|
|
"test": "pnpm --filter @faunosteo/app test",
|
|
"test:run": "pnpm -r test:run",
|
|
"lint": "pnpm -r lint",
|
|
"format": "prettier --write .",
|
|
"check": "pnpm typecheck && pnpm test:run && pnpm lint && pnpm build",
|
|
"check:all": "bash scripts/check-all.sh",
|
|
"report:compare": "pnpm --filter @faunosteo/app report:compare",
|
|
"import:equine": "pnpm --filter @faunosteo/anatomy import:equine",
|
|
"db:start": "supabase start",
|
|
"db:stop": "supabase stop",
|
|
"db:reset": "supabase db reset",
|
|
"db:test": "supabase test db",
|
|
"db:types": "supabase gen types typescript --local --schema public | prettier --parser typescript > packages/supabase/src/database.types.ts",
|
|
"db:types:check": "supabase gen types typescript --local --schema public | prettier --parser typescript | diff - packages/supabase/src/database.types.ts",
|
|
"assets:upload": "pnpm --filter @faunosteo/supabase assets:upload",
|
|
"build:preview": "SHEET_BUNDLE=draft pnpm --filter @faunosteo/app build",
|
|
"preview:draft": "SHEET_BUNDLE=draft pnpm --filter @faunosteo/app build && pnpm --filter @faunosteo/app preview",
|
|
"rust:builder": "docker build -f docker/rust-builder.Dockerfile -t faunosteo_rust_builder:1.99.0 docker",
|
|
"rust:check": "bash scripts/rust-check.sh",
|
|
"rust:check:docker": "bash docker/rust-run.sh bash scripts/rust-check.sh",
|
|
"wasm:build": "bash scripts/wasm-build.sh",
|
|
"wasm:build:docker": "bash docker/rust-run.sh bash scripts/wasm-build.sh",
|
|
"worker:test": "docker build -f crates/worker/Dockerfile --target test -t faunosteo_worker:test .",
|
|
"worker:image": "docker build -f crates/worker/Dockerfile -t faunosteo_worker:dev .",
|
|
"e2e:avatar": "bash scripts/avatar-e2e.sh"
|
|
},
|
|
"devDependencies": {
|
|
"pnpm": "10.13.1",
|
|
"prettier": "^3.4.2",
|
|
"supabase": "^2.100.0"
|
|
}
|
|
}
|