From df9e1714b26d3079da0e84fe945bedfe6defd0c2 Mon Sep 17 00:00:00 2001 From: jackshim415 Date: Thu, 12 Nov 2026 07:23:02 -0800 Subject: [PATCH 1/5] test(contracts): retain cross-app upload and analysis fixtures Serialize fictional current and legacy reports in Collection, persist and analyze them through real Server handlers with two private source teams, and decode the actual response in Dashboard. Keep independent expected scores and malformed-payload outcomes. Refs: LVT-272 --- .../test/jest/crossAppContract.test.ts | 46 +++ .../test/cross_app_contract_test.dart | 60 ++++ .../test/helpers/contract_fixtures.dart | 6 + .../test/crossAppContract.integration.test.ts | 265 ++++++++++++++++ apps/server/test/helpers/contractFixtures.ts | 13 + docs/testing/fixtures/README.md | 53 ++++ docs/testing/fixtures/contract-v1.json | 294 ++++++++++++++++++ 7 files changed, 737 insertions(+) create mode 100644 apps/collection/test/jest/crossAppContract.test.ts create mode 100644 apps/dashboard/test/cross_app_contract_test.dart create mode 100644 apps/dashboard/test/helpers/contract_fixtures.dart create mode 100644 apps/server/test/crossAppContract.integration.test.ts create mode 100644 apps/server/test/helpers/contractFixtures.ts create mode 100644 docs/testing/fixtures/README.md create mode 100644 docs/testing/fixtures/contract-v1.json diff --git a/apps/collection/test/jest/crossAppContract.test.ts b/apps/collection/test/jest/crossAppContract.test.ts new file mode 100644 index 000000000..795c87916 --- /dev/null +++ b/apps/collection/test/jest/crossAppContract.test.ts @@ -0,0 +1,46 @@ +import { expect, jest, test } from "@jest/globals"; +import { readFileSync, mkdirSync, writeFileSync } from "node:fs"; +import { resolve } from "node:path"; +import { sendReport } from "../../lib/lovatAPI/collectionRequests"; +import { + scoutReportSchema, + type ScoutReport, +} from "../../lib/collection/ScoutReport"; +import { migrateScoutReport } from "../../lib/storage/scoutReportMigrations"; + +const fixture = JSON.parse( + readFileSync( + resolve(__dirname, "../../../../docs/testing/fixtures/contract-v1.json"), + "utf8", + ), +); + +test("retained current payload is serialized unchanged for Server consumption", async () => { + const bodies: Record = {}; + for (const key of ["current", "secondRobot", "otherSource", "legacy"]) { + const report = scoutReportSchema.parse(fixture.reports[key]); + const post = jest.fn(async (path: string, body: unknown) => { + expect(path).toBe("/collection/scoutreports"); + bodies[key] = JSON.parse(JSON.stringify(body)); + return new Response("{}", { status: 200 }); + }); + await sendReport(post, report); + expect(bodies[key]).toEqual(fixture.reports[key]); + } + if (process.env.LOVAT_CONTRACT_OUTPUT_DIR) { + mkdirSync(process.env.LOVAT_CONTRACT_OUTPUT_DIR, { recursive: true }); + writeFileSync( + resolve( + process.env.LOVAT_CONTRACT_OUTPUT_DIR, + "collection-payloads.json", + ), + JSON.stringify(bodies, null, 2), + ); + } +}); + +test("the retained broken-undo fixture migrates idempotently without changing private notes", () => { + const migrated = migrateScoutReport(fixture.reports.legacy as ScoutReport); + expect(migrated).toEqual(fixture.expected.migratedLegacy); + expect(migrateScoutReport(migrated)).toEqual(migrated); +}); diff --git a/apps/dashboard/test/cross_app_contract_test.dart b/apps/dashboard/test/cross_app_contract_test.dart new file mode 100644 index 000000000..eaa4165a3 --- /dev/null +++ b/apps/dashboard/test/cross_app_contract_test.dart @@ -0,0 +1,60 @@ +import 'dart:convert'; +import 'dart:io'; +import 'package:flutter_test/flutter_test.dart'; +import 'package:http/http.dart' as http; +import 'package:http/testing.dart'; +import 'package:package_info_plus/package_info_plus.dart'; +import 'package:shared_preferences/shared_preferences.dart'; +import 'package:scouting_dashboard_app/pages/picklist/picklist_models.dart'; +import 'package:scouting_dashboard_app/reusable/lovat_api/lovat_api.dart'; +import 'package:scouting_dashboard_app/reusable/lovat_api/picklists/get_picklist_analysis.dart'; +import 'helpers/contract_fixtures.dart'; + +void main() { + TestWidgetsFlutterBinding.ensureInitialized(); + setUp(() { + SharedPreferences.setMockInitialValues({}); + PackageInfo.setMockInitialValues( + appName: 'Synthetic', + packageName: 'test.example', + version: '1.0.0', + buildNumber: '1', + buildSignature: ''); + }); + test( + 'decodes the retained Server analysis response and independently expected rankings', + () async { + final fixtures = contractFixtures(); + final actualPath = Platform.environment['LOVAT_CONTRACT_SERVER_RESPONSE']; + final body = actualPath == null + ? jsonEncode(fixtures['expected']['analysis']) + : File(actualPath).readAsStringSync(); + expect(jsonDecode(body), fixtures['expected']['analysis']); + final api = LovatAPI('https://fixture.invalid', + tokenProvider: () async => 'synthetic', + client: MockClient((request) async { + expect(request.url.path, '/v1/analysis/picklist'); + return http.Response(body, 200); + })); + addTearDown(api.dispose); + final teams = await api.picklistAnalysisQuery([], + [PicklistWeight('totalPoints', 'Total Points', value: 1)]).queryFn(); + expect(teams.map((t) => t.teamNumber), + fixtures['expected']['analysis']['teams'].map((t) => t['team'])); + expect(teams.map((t) => t.result), [1.0, -1.0]); + }); + test( + 'retained configured and mutable picklists preserve authors, weights and ordering', + () { + final fixtures = contractFixtures(); + final configured = ConfiguredPicklist.fromJSON( + jsonEncode(fixtures['expected']['configuredPicklist'])); + expect(configured.weights.single.value, 1); + expect(configured.author, 'Fictional Alpha Analyst'); + final mutable = MutablePicklist.fromJSON( + jsonEncode(fixtures['expected']['mutablePicklist'])); + expect(mutable.teams, [1900000002, 1900000001]); + expect(jsonDecode(configured.toJSON()), + fixtures['expected']['configuredPicklist']); + }); +} diff --git a/apps/dashboard/test/helpers/contract_fixtures.dart b/apps/dashboard/test/helpers/contract_fixtures.dart new file mode 100644 index 000000000..5529596c2 --- /dev/null +++ b/apps/dashboard/test/helpers/contract_fixtures.dart @@ -0,0 +1,6 @@ +import 'dart:convert'; +import 'dart:io'; + +Map contractFixtures() => jsonDecode( + File('../../docs/testing/fixtures/contract-v1.json').readAsStringSync()) + as Map; diff --git a/apps/server/test/crossAppContract.integration.test.ts b/apps/server/test/crossAppContract.integration.test.ts new file mode 100644 index 000000000..627af5637 --- /dev/null +++ b/apps/server/test/crossAppContract.integration.test.ts @@ -0,0 +1,265 @@ +import { mkdirSync, readFileSync, writeFileSync } from "node:fs"; +import { resolve } from "node:path"; +import { contractFixtures } from "./helpers/contractFixtures.js"; +import request from "supertest"; +import { afterAll, beforeAll, describe, expect, it, vi } from "vitest"; + +const authFixture = vi.hoisted(() => ({ + signToken: null as + | null + | (( + subject: string, + overrides?: { issuer?: string; audience?: string; expires?: string }, + ) => Promise), + jwksRequests: 0, +})); + +vi.mock("axios", () => ({ + default: { + get: vi + .fn() + .mockRejectedValue( + new Error("Outbound Auth0 user-info is disabled in tests"), + ), + }, +})); + +vi.mock("jose", async (importOriginal) => { + const actual = await importOriginal(); + const { publicKey, privateKey } = await actual.generateKeyPair("RS256"); + const jwk = { + ...(await actual.exportJWK(publicKey)), + alg: "RS256", + use: "sig", + kid: "test-key", + }; + authFixture.signToken = (subject, overrides = {}) => + new actual.SignJWT({ sub: subject }) + .setProtectedHeader({ alg: "RS256", kid: "test-key" }) + .setIssuedAt() + .setIssuer(overrides.issuer ?? "https://auth.test.invalid/") + .setAudience(overrides.audience ?? "https://api.lovat.app") + .setExpirationTime(overrides.expires ?? "1h") + .sign(privateKey); + return { + ...actual, + createRemoteJWKSet: (url: URL) => + actual.createRemoteJWKSet(url, { + [actual.customFetch]: async () => { + authFixture.jwksRequests++; + return new Response(JSON.stringify({ keys: [jwk] }), { + status: 200, + headers: { "content-type": "application/json" }, + }); + }, + }), + }; +}); + +const databaseUrl = new URL( + process.env.DATABASE_URL ?? "postgresql://localhost/missing", +); +const redisUrl = new URL(process.env.REDIS_URL ?? "redis://localhost/missing"); +if ( + process.env.LOVAT_DB_TEST !== "1" || + !["localhost", "127.0.0.1"].includes(databaseUrl.hostname) || + databaseUrl.pathname !== "/lovat_test" || + !["localhost", "127.0.0.1"].includes(redisUrl.hostname) || + redisUrl.pathname !== "/15" +) { + throw new Error( + "Cross-app contracts require local lovat_test PostgreSQL and Redis database 15", + ); +} +process.env.AUTH0_DOMAIN = "auth.test.invalid"; +process.env.DOTENV_CONFIG_PATH = "/dev/null"; +const { db } = await import("@lovat/db"); +const { app } = await import("../src/app.js"); +const { closeRedis, kv } = await import("../src/redisClient.js"); +const { calculateReportTotalPoints } = + await import("../src/handler/analysis/reportPoints.js"); +const fixture = contractFixtures(); +const reports = process.env.LOVAT_CONTRACT_COLLECTION_DIR + ? JSON.parse( + readFileSync( + resolve( + process.env.LOVAT_CONTRACT_COLLECTION_DIR, + "collection-payloads.json", + ), + "utf8", + ), + ) + : fixture.reports; +const robots = [ + fixture.reports.current.teamNumber, + fixture.reports.secondRobot.teamNumber, +] as number[]; +const tournamentKey = fixture.reports.current.tournamentKey as string; +const sources = fixture.sourceTeams as { + number: number; + name: string; + code: string; + scouterUuid: string; + scouterName: string; + userId: string; + role: "ANALYST" | "SCOUTING_LEAD"; +}[]; + +beforeAll(async () => { + for (const source of sources) { + await db.team.create({ + data: { number: source.number, name: source.name }, + }); + await db.registeredTeam.create({ + data: { + number: source.number, + code: source.code, + email: `${source.userId}@example.invalid`, + emailVerified: true, + }, + }); + await db.scouter.create({ + data: { + uuid: source.scouterUuid, + name: source.scouterName, + sourceTeamNumber: source.number, + }, + }); + await db.user.create({ + data: { + id: source.userId, + email: `${source.userId}@example.invalid`, + teamNumber: source.number, + role: source.role, + teamSourceRule: { mode: "INCLUDE", items: [source.number] }, + tournamentSourceRule: { mode: "INCLUDE", items: [tournamentKey] }, + }, + }); + } + await db.tournament.create({ + data: { key: tournamentKey, name: "Synthetic contract tournament" }, + }); + for (const robot of robots) { + await db.team.create({ + data: { number: robot, name: "Fictional contract robot" }, + }); + await db.teamMatchData.create({ + data: { + key: `${tournamentKey}_qm1_${robot}`, + teamNumber: robot, + tournamentKey, + matchNumber: 1, + matchType: "QUALIFICATION", + }, + }); + } +}); +afterAll(async () => { + const where = { + OR: [ + { teamDependencies: { hasSome: robots } }, + { tournamentDependencies: { has: tournamentKey } }, + ], + }; + const rows = await db.cachedAnalysis.findMany({ + where, + select: { key: true }, + }); + if (rows.length) { + await kv.del(rows.map((row) => row.key)); + } + await db.cachedAnalysis.deleteMany({ where }); + await db.user.deleteMany({ + where: { id: { in: sources.map((source) => source.userId) } }, + }); + await db.team.deleteMany({ + where: { number: { in: sources.map((source) => source.number) } }, + }); + await db.tournament.deleteMany({ where: { key: tournamentKey } }); + await db.team.deleteMany({ where: { number: { in: robots } } }); + await closeRedis(); + await db.$disconnect(); +}); +const upload = (report: object) => + request(app) + .post("/collection/scoutreports") + .set("X-Lovat-Error-Format", "json-v1") + .send(report); +async function viewerGet(path: string, sourceIndex: number) { + const token = await authFixture.signToken!(sources[sourceIndex].userId); + return request(app) + .get(path) + .set("Authorization", `Bearer ${token}`) + .set("X-Lovat-Error-Format", "json-v1"); +} + +describe.sequential( + "retained Collection → Server → Dashboard contracts", + () => { + it("persists Collection output and returns independently calculated analysis without cross-team private notes", async () => { + for (const key of ["current", "secondRobot", "otherSource"]) { + expect(reports[key]).toEqual(fixture.reports[key]); + expect((await upload(reports[key])).status).toBe(200); + const stored = await db.scoutReport.findUniqueOrThrow({ + where: { uuid: reports[key].uuid }, + include: { events: true }, + }); + expect(calculateReportTotalPoints(stored)).toBe( + fixture.expected.points[key], + ); + } + const analysis = await viewerGet( + `/v1/analysis/picklist?tournamentKey=${tournamentKey}&flags=[]&totalPoints=1`, + 0, + ); + expect(analysis.status).toBe(200); + expect(analysis.body).toEqual(fixture.expected.analysis); + for (const index of [0, 1, 0]) { + const notes = await viewerGet( + `/v1/analysis/notes/team/${robots[0]}`, + index, + ); + expect(notes.status).toBe(200); + const marker = index === 0 ? "alpha" : "bravo"; + expect(notes.body.map((row: { notes: string }) => row.notes)).toEqual( + fixture.expected.visibleNotes[marker], + ); + expect(JSON.stringify(notes.body)).not.toContain( + fixture.expected.visibleNotes[index === 0 ? "bravo" : "alpha"][0], + ); + } + if (process.env.LOVAT_CONTRACT_OUTPUT_DIR) { + mkdirSync(process.env.LOVAT_CONTRACT_OUTPUT_DIR, { recursive: true }); + writeFileSync( + resolve( + process.env.LOVAT_CONTRACT_OUTPUT_DIR, + "analysis.actual.json", + ), + JSON.stringify(analysis.body, null, 2), + ); + } + }); + it("accepts the retained old payload and removes its known orphaned start", async () => { + expect((await upload(reports.legacy)).status).toBe(200); + const stored = await db.scoutReport.findUniqueOrThrow({ + where: { uuid: reports.legacy.uuid }, + include: { events: { orderBy: { time: "asc" } } }, + }); + expect( + stored.events.map((event) => [ + event.time, + event.action, + event.quantity, + ]), + ).toEqual(fixture.expected.legacyStoredEvents); + }); + it("rejects malformed current timelines without a partial database write", async () => { + expect((await upload(fixture.reports.malformed)).status).toBe(400); + expect( + await db.scoutReport.findUnique({ + where: { uuid: fixture.reports.malformed.uuid }, + }), + ).toBeNull(); + }); + }, +); diff --git a/apps/server/test/helpers/contractFixtures.ts b/apps/server/test/helpers/contractFixtures.ts new file mode 100644 index 000000000..96e933934 --- /dev/null +++ b/apps/server/test/helpers/contractFixtures.ts @@ -0,0 +1,13 @@ +import { readFileSync } from "node:fs"; + +export function contractFixtures(): ReturnType { + return JSON.parse( + readFileSync( + new URL( + "../../../../docs/testing/fixtures/contract-v1.json", + import.meta.url, + ), + "utf8", + ), + ); +} diff --git a/docs/testing/fixtures/README.md b/docs/testing/fixtures/README.md new file mode 100644 index 000000000..b3bad7434 --- /dev/null +++ b/docs/testing/fixtures/README.md @@ -0,0 +1,53 @@ +# Retained cross-app contracts + +`contract-v1.json` is a hand-authored 2026 compatibility corpus. It contains no +captured scouting data, identities or credentials. Both source teams, robots, +roles and private-note markers are fictional. Do not replace these examples with +production exports. Review changes to expected values independently of production +implementations and record the reasoning in the PR. + +The Collection loader validates and serializes reports with production +`sendReport` and checks idempotent legacy migration. Server tests submit those +serialized payloads to the real HTTP app with disposable PostgreSQL and Redis, +check persisted points and source-team/private-note isolation through real JWT +middleware, and write the actual picklist response. Dashboard decodes that +response with its production API extension and tests picklist round trips. +No application imports another application's code. + +The `Cross-app contracts` CI job runs these stages in order. Ordinary app suites +also consume the corpus independently. Expectations are fixed JSON, not values +generated by the system being tested. + +Arithmetic is included in the JSON: Alpha's robots score 45 and 16 points, giving +mean 30.5 and population standard deviation 14.5, hence z scores +1 and −1. +Bravo's private observation scores 15 and must not alter Alpha's first-robot score +or reveal Bravo's note. Viewers also exercise cache hits across identities. +Old broken-undo payloads retain their compatibility behavior; a malformed current +payload is rejected without leaving a partial report. + +Fixture and Server/database changes select the contract job and affected +consumers. Artifacts retain logs and actual synthetic JSON on failure, and failures +fail the aggregate. Database tests refuse non-loopback services or names other +than `lovat_test` and Redis database 15. + +## Local execution + +Install the app dependencies with their pinned toolchains. Start disposable +PostgreSQL 16 and Redis (loopback only), create an empty `lovat_test` database, +and apply `npm --prefix packages/db run db:deploy` with that explicit URL. Then: + +```sh +DATABASE_URL=postgresql://lovat_test:lovat_test@127.0.0.1:5432/lovat_test \ +REDIS_URL=redis://127.0.0.1:6379/15 LOVAT_DB_TEST=1 \ +./scripts/check-contracts.sh +``` + +The script locates the pinned Node binaries under the usual nvm installation +(or `LOVAT_NODE_ROOT`); Flutter 3.35.4 must be on PATH. It refuses other service +hosts/database names and never loads a private `.env`. It retains stage logs, +serialized payloads, the actual Server response and HTML under `contract-report/`. +The root `check-all.sh` includes this check, so it now needs these disposable +services as well as the app toolchains. CI provisions its own isolated services. + +Successful main runs publish `/lovat/contracts/`. Failure artifacts stay on their +run and do not replace the last successful public report. diff --git a/docs/testing/fixtures/contract-v1.json b/docs/testing/fixtures/contract-v1.json new file mode 100644 index 000000000..6e34340f9 --- /dev/null +++ b/docs/testing/fixtures/contract-v1.json @@ -0,0 +1,294 @@ +{ + "schemaVersion": 1, + "provenance": { + "source": "Hand-authored fictional examples; no captured scouting data, notes, identities or tokens.", + "season": 2026, + "review": "Review the arithmetic and both source-team visibility expectations in the linked PR; expected values are not generated by production code." + }, + "sourceTeams": [ + { + "number": -1900000101, + "name": "Synthetic Alpha", + "code": "SYNTHETIC-CONTRACT-ALPHA", + "scouterUuid": "92720002-0000-4000-8000-000000000001", + "scouterName": "Fictional Alpha Scout", + "userId": "lvt272-alpha", + "role": "ANALYST" + }, + { + "number": -1900000102, + "name": "Synthetic Bravo", + "code": "SYNTHETIC-CONTRACT-BRAVO", + "scouterUuid": "92720002-0000-4000-8000-000000000002", + "scouterName": "Fictional Bravo Scout", + "userId": "lvt272-bravo", + "role": "SCOUTING_LEAD" + } + ], + "reports": { + "current": { + "appVersion": "26.1.0", + "uuid": "92720001-0000-4000-8000-000000000001", + "tournamentKey": "2026-lvt272-contract", + "matchType": "QUALIFICATION", + "matchNumber": 1, + "startTime": 1767225600000, + "teamNumber": 1900000001, + "notes": "SYNTHETIC_PRIVATE_ALPHA", + "robotBrokeDescription": null, + "robotRoles": ["SCORING"], + "mobility": "NONE", + "disrupts": false, + "accuracy": null, + "autoClimb": "SUCCEEDED", + "intakeType": "NEITHER", + "feederTypes": [], + "beached": "NEITHER", + "defenseEffectiveness": 0, + "scoresWhileMoving": false, + "endgameClimb": "L2", + "driverAbility": 3, + "scouterUuid": "92720002-0000-4000-8000-000000000001", + "events": [ + [0, 2, 8], + [1, 0, 2], + [4, 1, 2, 3], + [30, 0, 2], + [40, 1, 2, 7] + ] + }, + "secondRobot": { + "appVersion": "26.1.0", + "uuid": "92720001-0000-4000-8000-000000000002", + "tournamentKey": "2026-lvt272-contract", + "matchType": "QUALIFICATION", + "matchNumber": 1, + "startTime": 1767225600000, + "teamNumber": 1900000002, + "notes": "SYNTHETIC_ALPHA_SECOND_ROBOT", + "robotBrokeDescription": null, + "robotRoles": ["SCORING"], + "mobility": "NONE", + "disrupts": false, + "accuracy": null, + "autoClimb": "NOT_ATTEMPTED", + "intakeType": "NEITHER", + "feederTypes": [], + "beached": "NEITHER", + "defenseEffectiveness": 0, + "scoresWhileMoving": false, + "endgameClimb": "L1", + "driverAbility": 3, + "scouterUuid": "92720002-0000-4000-8000-000000000001", + "events": [ + [0, 2, 8], + [1, 0, 2], + [4, 1, 2, 2], + [30, 0, 2], + [40, 1, 2, 4] + ] + }, + "otherSource": { + "appVersion": "26.1.0", + "uuid": "92720001-0000-4000-8000-000000000003", + "tournamentKey": "2026-lvt272-contract", + "matchType": "QUALIFICATION", + "matchNumber": 1, + "startTime": 1767225600000, + "teamNumber": 1900000001, + "notes": "SYNTHETIC_PRIVATE_BRAVO", + "robotBrokeDescription": null, + "robotRoles": ["SCORING"], + "mobility": "NONE", + "disrupts": false, + "accuracy": null, + "autoClimb": "NOT_ATTEMPTED", + "intakeType": "NEITHER", + "feederTypes": [], + "beached": "NEITHER", + "defenseEffectiveness": 0, + "scoresWhileMoving": false, + "endgameClimb": "L1", + "driverAbility": 3, + "scouterUuid": "92720002-0000-4000-8000-000000000002", + "events": [ + [0, 2, 8], + [1, 0, 2], + [4, 1, 2, 2], + [30, 0, 2], + [40, 1, 2, 3] + ] + }, + "legacy": { + "appVersion": "26.0.4", + "uuid": "92720001-0000-4000-8000-000000000004", + "tournamentKey": "2026-lvt272-contract", + "matchType": "QUALIFICATION", + "matchNumber": 1, + "startTime": 1767225600000, + "teamNumber": 1900000001, + "notes": "SYNTHETIC_PRIVATE_ALPHA", + "robotBrokeDescription": null, + "robotRoles": ["SCORING"], + "mobility": "NONE", + "disrupts": false, + "accuracy": null, + "autoClimb": "SUCCEEDED", + "intakeType": "NEITHER", + "feederTypes": [], + "beached": "NEITHER", + "defenseEffectiveness": 0, + "scoresWhileMoving": false, + "endgameClimb": "L2", + "driverAbility": 3, + "scouterUuid": "92720002-0000-4000-8000-000000000001", + "events": [ + [0, 2, 8], + [1, 0, 2], + [4, 1, 2, 3], + [30, 0, 2] + ] + }, + "malformed": { + "appVersion": "26.1.0", + "uuid": "92720001-0000-4000-8000-000000000005", + "tournamentKey": "2026-lvt272-contract", + "matchType": "QUALIFICATION", + "matchNumber": 1, + "startTime": 1767225600000, + "teamNumber": 1900000001, + "notes": "SYNTHETIC_PRIVATE_ALPHA", + "robotBrokeDescription": null, + "robotRoles": ["SCORING"], + "mobility": "NONE", + "disrupts": false, + "accuracy": null, + "autoClimb": "SUCCEEDED", + "intakeType": "NEITHER", + "feederTypes": [], + "beached": "NEITHER", + "defenseEffectiveness": 0, + "scoresWhileMoving": false, + "endgameClimb": "L2", + "driverAbility": 3, + "scouterUuid": "92720002-0000-4000-8000-000000000001", + "events": [ + [0, 2, 8], + [1, 0, 2] + ] + } + }, + "expected": { + "migratedLegacy": { + "appVersion": "26.1.0", + "uuid": "92720001-0000-4000-8000-000000000004", + "tournamentKey": "2026-lvt272-contract", + "matchType": "QUALIFICATION", + "matchNumber": 1, + "startTime": 1767225600000, + "teamNumber": 1900000001, + "notes": "SYNTHETIC_PRIVATE_ALPHA", + "robotBrokeDescription": null, + "robotRoles": ["SCORING"], + "mobility": "NONE", + "disrupts": false, + "accuracy": null, + "autoClimb": "SUCCEEDED", + "intakeType": "NEITHER", + "feederTypes": [], + "beached": "NEITHER", + "defenseEffectiveness": 0, + "scoresWhileMoving": false, + "endgameClimb": "L2", + "driverAbility": 3, + "scouterUuid": "92720002-0000-4000-8000-000000000001", + "events": [ + [0, 2, 8], + [1, 0, 2], + [4, 1, 2, 3] + ] + }, + "legacyServerEvents": [ + [0, 2, 8], + [1, 0, 2], + [4, 1, 2, 3] + ], + "points": { + "current": 45, + "secondRobot": 16, + "otherSource": 15 + }, + "arithmetic": [ + "current = 3 + 7 fuel + 15 auto climb + 20 L2 climb = 45", + "secondRobot = 2 + 4 fuel + 0 auto climb + 10 L1 climb = 16", + "otherSource = 2 + 3 fuel + 0 auto climb + 10 L1 climb = 15", + "Alpha-only mean = 30.5; population standard deviation = 14.5; z scores = +1 and -1", + "Including Bravo would change Alpha first-robot average to 30, which must not happen." + ], + "analysis": { + "teams": [ + { + "team": 1900000001, + "result": 1, + "breakdown": [ + { + "type": "totalPoints", + "result": 1 + } + ], + "unweighted": [ + { + "type": "totalPoints", + "result": 1 + } + ], + "flags": [] + }, + { + "team": 1900000002, + "result": -1, + "breakdown": [ + { + "type": "totalPoints", + "result": -1 + } + ], + "unweighted": [ + { + "type": "totalPoints", + "result": -1 + } + ], + "flags": [] + } + ] + }, + "configuredPicklist": { + "title": "Synthetic strategy", + "uuid": "92720003-0000-4000-8000-000000000001", + "weights": [ + { + "path": "totalPoints", + "localizedName": "Total Points", + "value": 1.0 + } + ], + "userName": "Fictional Alpha Analyst" + }, + "mutablePicklist": { + "uuid": "92720003-0000-4000-8000-000000000002", + "name": "Synthetic manual strategy", + "teams": [1900000002, 1900000001], + "userName": "Fictional Alpha Analyst" + }, + "visibleNotes": { + "alpha": ["SYNTHETIC_PRIVATE_ALPHA"], + "bravo": ["SYNTHETIC_PRIVATE_BRAVO"] + }, + "legacyStoredEvents": [ + [0, "START_MATCH", 0], + [1, "START_SCORING", 0], + [4, "STOP_SCORING", 3] + ] + } +} From 1c79535567f265ac06ae470769419eab69e09689 Mon Sep 17 00:00:00 2001 From: jackshim415 Date: Thu, 12 Nov 2026 07:25:49 -0800 Subject: [PATCH 2/5] test(ci): require selected suites and retain contract reports Run the retained upload-to-analysis journey with disposable services and fail the aggregate when any applicable job is skipped, missing, cancelled or unsuccessful. Refs: LVT-272, LVT-273 --- .github/ci-filters.json | 84 ++++++++++++ .github/workflows/ci.yml | 163 ++++++++++++++--------- .gitignore | 3 + scripts/check-all.sh | 1 + scripts/check-contracts.sh | 45 +++++++ scripts/ci-results.mjs | 53 ++++++++ scripts/ci-results.test.mjs | 49 +++++++ scripts/ci-selection.mjs | 37 +++++ scripts/ci-selection.test.mjs | 61 +++++++++ scripts/prepare-contract-report.mjs | 49 +++++++ scripts/prepare-contract-report.test.mjs | 38 ++++++ scripts/report-sections/contracts.json | 1 + 12 files changed, 521 insertions(+), 63 deletions(-) create mode 100644 .github/ci-filters.json create mode 100755 scripts/check-contracts.sh create mode 100644 scripts/ci-results.mjs create mode 100644 scripts/ci-results.test.mjs create mode 100644 scripts/ci-selection.mjs create mode 100644 scripts/ci-selection.test.mjs create mode 100644 scripts/prepare-contract-report.mjs create mode 100644 scripts/prepare-contract-report.test.mjs create mode 100644 scripts/report-sections/contracts.json diff --git a/.github/ci-filters.json b/.github/ci-filters.json new file mode 100644 index 000000000..98a44f501 --- /dev/null +++ b/.github/ci-filters.json @@ -0,0 +1,84 @@ +{ + "worker": [ + "apps/worker/**", + "packages/db/**", + ".github/workflows/ci.yml", + ".github/ci-filters.json", + "docs/testing/fixtures/**", + "scripts/ci-results.*", + "scripts/ci-selection.*" + ], + "server": [ + "apps/server/**", + "packages/db/**", + ".github/workflows/ci.yml", + ".github/ci-filters.json", + "docs/testing/fixtures/**", + "scripts/ci-results.*", + "scripts/ci-selection.*" + ], + "dashboard": [ + "apps/dashboard/**", + ".github/workflows/dashboard-native-tests.yml", + ".github/workflows/dashboard-deploy.yml", + ".github/workflows/ci.yml", + ".github/ci-filters.json", + "docs/testing/fixtures/**", + "scripts/ci-results.*", + "scripts/ci-selection.*" + ], + "collection": [ + "apps/collection/**", + ".github/workflows/collection-native-tests.yml", + ".github/workflows/ci.yml", + ".github/ci-filters.json", + "docs/testing/fixtures/**", + "scripts/ci-results.*", + "scripts/ci-selection.*" + ], + "learn": [ + "apps/learn/**", + ".github/workflows/ci.yml", + ".github/ci-filters.json", + "docs/testing/fixtures/**", + "scripts/ci-results.*", + "scripts/ci-selection.*" + ], + "website": [ + "apps/website/**", + "CHANGELOG.md", + ".github/workflows/ci.yml", + ".github/ci-filters.json", + "docs/testing/fixtures/**", + "scripts/ci-results.*", + "scripts/ci-selection.*" + ], + "reviewer": [ + "tools/pr-reviewer/**", + ".github/workflows/ai-review.yml", + ".github/workflows/ci.yml", + ".github/ci-filters.json", + "docs/testing/fixtures/**", + "scripts/ci-results.*", + "scripts/ci-selection.*" + ], + "contracts": [ + "docs/testing/fixtures/**", + "apps/server/**", + "packages/db/**", + "apps/collection/lib/collection/**", + "apps/collection/lib/lovatAPI/collectionRequests.ts", + "apps/collection/lib/storage/scoutReportMigrations.ts", + "apps/collection/test/jest/crossAppContract.test.ts", + "apps/dashboard/lib/reusable/lovat_api/**", + "apps/dashboard/lib/pages/picklist/picklist_models.dart", + "apps/dashboard/test/cross_app_contract_test.dart", + "apps/dashboard/test/helpers/contract_fixtures.dart", + ".github/workflows/ci.yml", + ".github/ci-filters.json", + "scripts/check-contracts.sh", + "scripts/prepare-contract-report.mjs", + "scripts/ci-results.*", + "scripts/ci-selection.*" + ] +} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 423b37f9d..9e8ac33ba 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,40 +21,13 @@ jobs: website: ${{ steps.filter.outputs.website }} learn: ${{ steps.filter.outputs.learn }} reviewer: ${{ steps.filter.outputs.reviewer }} + contracts: ${{ steps.filter.outputs.contracts }} steps: - uses: actions/checkout@v4 - uses: dorny/paths-filter@v3 id: filter with: - filters: | - worker: - - 'apps/worker/**' - - 'packages/db/**' - - '.github/workflows/ci.yml' - server: - - 'apps/server/**' - - 'packages/db/**' - - '.github/workflows/ci.yml' - dashboard: - - 'apps/dashboard/**' - - '.github/workflows/dashboard-native-tests.yml' - - '.github/workflows/dashboard-deploy.yml' - - '.github/workflows/ci.yml' - collection: - - 'apps/collection/**' - - '.github/workflows/collection-native-tests.yml' - - '.github/workflows/ci.yml' - learn: - - 'apps/learn/**' - - '.github/workflows/ci.yml' - website: - - 'apps/website/**' - - 'CHANGELOG.md' - - '.github/workflows/ci.yml' - reviewer: - - 'tools/pr-reviewer/**' - - '.github/workflows/ai-review.yml' - - '.github/workflows/ci.yml' + filters: .github/ci-filters.json structure: name: Structure @@ -62,6 +35,7 @@ jobs: steps: - uses: actions/checkout@v4 - run: ./scripts/check-structure.sh + - run: node --test scripts/ci-selection.test.mjs scripts/ci-results.test.mjs scripts/prepare-contract-report.test.mjs - run: node --test scripts/prepare-pages-reports.test.mjs - run: python3 -m unittest discover -s scripts -p railway_preview_qr_test.py @@ -241,9 +215,94 @@ jobs: working-directory: . run: docker build -f apps/worker/Dockerfile -t lovat-worker:ci . + contracts: + name: Cross-app contracts + needs: changes + if: ${{ needs.changes.outputs.contracts == 'true' || (github.event_name == 'push' && github.ref == 'refs/heads/main' && vars.TEST_REPORT_PAGES_ENABLED == 'true') }} + runs-on: ubuntu-24.04 + timeout-minutes: 25 + services: + postgres: + image: postgres:16 + env: + POSTGRES_USER: lovat_test + POSTGRES_PASSWORD: lovat_test + POSTGRES_DB: lovat_test + ports: ["5432:5432"] + options: >- + --health-cmd "pg_isready -U lovat_test" + --health-interval 5s --health-timeout 5s --health-retries 10 + redis: + image: redis:7.4 + ports: ["6379:6379"] + options: >- + --health-cmd "redis-cli ping" + --health-interval 5s --health-timeout 5s --health-retries 10 + env: + DATABASE_URL: postgresql://lovat_test:lovat_test@127.0.0.1:5432/lovat_test + REDIS_URL: redis://127.0.0.1:6379/15 + LOVAT_DB_TEST: "1" + DOTENV_CONFIG_PATH: /dev/null + LOVAT_CONTRACT_OUTPUT_DIR: ${{ github.workspace }}/contract-report + LOVAT_CONTRACT_COLLECTION_DIR: ${{ github.workspace }}/contract-report + LOVAT_CONTRACT_SERVER_RESPONSE: ${{ github.workspace }}/contract-report/analysis.actual.json + steps: + - uses: actions/checkout@v4 + - run: mkdir -p "$LOVAT_CONTRACT_OUTPUT_DIR" + - uses: actions/setup-node@v4 + with: + node-version: 24.6.0 + - name: Serialize Collection's retained reports + id: collection + working-directory: apps/collection + run: | + npm ci + npm run test:unit -- --testPathPatterns crossAppContract 2>&1 | tee "$LOVAT_CONTRACT_OUTPUT_DIR/collection.log" + - uses: actions/setup-node@v4 + with: + node-version: 22.20.0 + - name: Upload and analyze through the real Server + id: server + working-directory: apps/server + run: | + npm ci + npm --prefix ../../packages/db run db:deploy + npm run test:integration -- test/crossAppContract.integration.test.ts 2>&1 | tee "$LOVAT_CONTRACT_OUTPUT_DIR/server.log" + - uses: subosito/flutter-action@v2 + with: + flutter-version: 3.35.4 + channel: stable + - name: Decode the actual Server response in Dashboard + id: dashboard + working-directory: apps/dashboard + run: | + flutter pub get + flutter test test/cross_app_contract_test.dart 2>&1 | tee "$LOVAT_CONTRACT_OUTPUT_DIR/dashboard.log" + - name: Retain stage outcomes and diagnostics + if: always() + env: + CONTRACT_STEPS: ${{ toJSON(steps) }} + run: node scripts/prepare-contract-report.mjs "$LOVAT_CONTRACT_OUTPUT_DIR" + - uses: actions/upload-artifact@v4 + if: always() + with: + name: contracts-test-report + path: ${{ github.workspace }}/contract-report/ + if-no-files-found: error + retention-days: 14 + test-report: name: Publish test reports - needs: [server, website, website-browser, learn, dashboard, dashboard-browser, gate] + needs: + [ + server, + website, + website-browser, + learn, + dashboard, + dashboard-browser, + gate, + ] if: github.event_name == 'push' && github.ref == 'refs/heads/main' && vars.TEST_REPORT_PAGES_ENABLED == 'true' runs-on: ubuntu-latest permissions: @@ -384,7 +443,7 @@ jobs: - uses: browser-actions/setup-chrome@v2 id: chrome with: - chrome-version: '141.0.7390.37' + chrome-version: "141.0.7390.37" install-chromedriver: true install-dependencies: true - run: flutter pub get @@ -523,6 +582,8 @@ jobs: [ changes, structure, + railway-config, + contracts, reviewer, server, worker, @@ -536,36 +597,12 @@ jobs: ] runs-on: ubuntu-latest env: - CHANGES_RESULT: ${{ needs.changes.result }} - STRUCTURE_RESULT: ${{ needs.structure.result }} - REVIEWER_RESULT: ${{ needs.reviewer.result }} - SERVER_RESULT: ${{ needs.server.result }} - WORKER_RESULT: ${{ needs.worker.result }} - COLLECTION_RESULT: ${{ needs.collection.result }} - WEBSITE_BROWSER_RESULT: ${{ needs.website-browser.result }} - WEBSITE_RESULT: ${{ needs.website.result }} - LEARN_RESULT: ${{ needs.learn.result }} - DASHBOARD_FORMAT_RESULT: ${{ needs.dashboard-format.result }} - DASHBOARD_BROWSER_RESULT: ${{ needs.dashboard-browser.result }} - DASHBOARD_RESULT: ${{ needs.dashboard.result }} + NEEDS_JSON: ${{ toJSON(needs) }} + PUBLISH_REPORTS: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && vars.TEST_REPORT_PAGES_ENABLED == 'true' }} steps: - - name: Require applicable jobs - run: | - for result in \ - "$CHANGES_RESULT" \ - "$STRUCTURE_RESULT" \ - "$REVIEWER_RESULT" \ - "$SERVER_RESULT" \ - "$WORKER_RESULT" \ - "$COLLECTION_RESULT" \ - "$DASHBOARD_FORMAT_RESULT" \ - "$DASHBOARD_RESULT" \ - "$DASHBOARD_BROWSER_RESULT" \ - "$WEBSITE_RESULT" \ - "$WEBSITE_BROWSER_RESULT" \ - "$LEARN_RESULT"; do - case "$result" in - success|skipped) ;; - *) echo "Required job result: $result" >&2; exit 1 ;; - esac - done + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 22.20.0 + - name: Require every applicable job + run: node scripts/ci-results.mjs diff --git a/.gitignore b/.gitignore index ed55950d0..53815a6a7 100644 --- a/.gitignore +++ b/.gitignore @@ -32,3 +32,6 @@ dist/ # Automated test reports coverage/ + +# Cross-app contract evidence +/contract-report/ diff --git a/scripts/check-all.sh b/scripts/check-all.sh index 90eebe3ad..e086b31a1 100755 --- a/scripts/check-all.sh +++ b/scripts/check-all.sh @@ -52,6 +52,7 @@ run_group "Collection" check_collection run_group "Dashboard" check_dashboard run_group "Website" check_website run_group "Learn" check_learn +run_group "Cross-app contracts" "$repo_root/scripts/check-contracts.sh" run_group "PR reviewer" check_reviewer if (( failures > 0 )); then diff --git a/scripts/check-contracts.sh b/scripts/check-contracts.sh new file mode 100755 index 000000000..cc3a5c06b --- /dev/null +++ b/scripts/check-contracts.sh @@ -0,0 +1,45 @@ +#!/usr/bin/env bash +set -euo pipefail +repo_root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" +cd "$repo_root" +node - <<'JS' +for (const [name,protocol,path] of [['DATABASE_URL','postgresql:','/lovat_test'],['REDIS_URL','redis:','/15']]) { + const url=new URL(process.env[name]??'invalid'); + if(process.env.LOVAT_DB_TEST!=='1'||url.protocol!==protocol||!['localhost','127.0.0.1'].includes(url.hostname)||url.pathname!==path)throw new Error('Use disposable loopback lovat_test/Redis 15 with LOVAT_DB_TEST=1'); +} +JS +node_path() { + local required_version + required_version="$(tr -d 'v[:space:]' < "$repo_root/apps/$1/.nvmrc")" + local installed_bin="${LOVAT_NODE_ROOT:-$HOME/.nvm/versions/node}/v$required_version/bin" + if [[ -x "$installed_bin/node" ]]; then printf '%s' "$installed_bin"; return; fi + if [[ "$(node --version)" == "v$required_version" ]]; then dirname "$(command -v node)"; return; fi + echo "Install Node $required_version for $1 (or set LOVAT_NODE_ROOT)." >&2 + return 1 +} +collection_bin="$(node_path collection)" +server_bin="$(node_path server)" +export LOVAT_CONTRACT_OUTPUT_DIR="$repo_root/contract-report" +export LOVAT_CONTRACT_COLLECTION_DIR="$LOVAT_CONTRACT_OUTPUT_DIR" +export LOVAT_CONTRACT_SERVER_RESPONSE="$LOVAT_CONTRACT_OUTPUT_DIR/analysis.actual.json" +export DOTENV_CONFIG_PATH=/dev/null +mkdir -p "$LOVAT_CONTRACT_OUTPUT_DIR" +collection=not-run +server=not-run +dashboard=not-run +finish() { + local result="$1" + CONTRACT_STEPS="{\"collection\":{\"outcome\":\"$collection\"},\"server\":{\"outcome\":\"$server\"},\"dashboard\":{\"outcome\":\"$dashboard\"}}" \ + "$server_bin/node" scripts/prepare-contract-report.mjs "$LOVAT_CONTRACT_OUTPUT_DIR" || result=1 + exit "$result" +} +trap 'finish "$?"' EXIT +collection=failure +(cd apps/collection && PATH="$collection_bin:$PATH" npm run test:unit -- --testPathPatterns crossAppContract) 2>&1 | tee "$LOVAT_CONTRACT_OUTPUT_DIR/collection.log" +collection=success +server=failure +(cd apps/server && PATH="$server_bin:$PATH" npm run test:integration -- test/crossAppContract.integration.test.ts) 2>&1 | tee "$LOVAT_CONTRACT_OUTPUT_DIR/server.log" +server=success +dashboard=failure +(cd apps/dashboard && flutter test test/cross_app_contract_test.dart) 2>&1 | tee "$LOVAT_CONTRACT_OUTPUT_DIR/dashboard.log" +dashboard=success diff --git a/scripts/ci-results.mjs b/scripts/ci-results.mjs new file mode 100644 index 000000000..0c7370d6d --- /dev/null +++ b/scripts/ci-results.mjs @@ -0,0 +1,53 @@ +import { pathToFileURL } from "node:url"; +import { resolve } from "node:path"; +export const jobSelectors = { + reviewer: "reviewer", + server: "server", + worker: "worker", + collection: "collection", + "dashboard-format": "dashboard", + dashboard: "dashboard", + "dashboard-browser": "dashboard", + website: "website", + "website-browser": "website", + learn: "learn", + contracts: "contracts", +}; +const reportJobs = new Set([ + "server", + "collection", + "dashboard", + "dashboard-browser", + "website", + "website-browser", + "learn", + "contracts", +]); +export function requireCiResults(needs, publishReports = false) { + const errors = []; + for (const job of ["changes", "structure", "railway-config"]) + if (needs[job]?.result !== "success") errors.push(`${job} must succeed`); + const selected = needs.changes?.outputs ?? {}; + for (const [job, selector] of Object.entries(jobSelectors)) { + if (!["true", "false"].includes(selected[selector])) + errors.push(`Missing selection for ${selector}`); + const required = + selected[selector] === "true" || (publishReports && reportJobs.has(job)); + const result = needs[job]?.result; + if ( + required ? result !== "success" : !["success", "skipped"].includes(result) + ) + errors.push( + `${job}: ${result ?? "missing"}${required ? " (required)" : ""}`, + ); + } + if (errors.length) throw new Error(errors.join("\n")); +} +if ( + process.argv[1] && + pathToFileURL(resolve(process.argv[1])).href === import.meta.url +) + requireCiResults( + JSON.parse(process.env.NEEDS_JSON ?? "{}"), + process.env.PUBLISH_REPORTS === "true", + ); diff --git a/scripts/ci-results.test.mjs b/scripts/ci-results.test.mjs new file mode 100644 index 000000000..42a938d99 --- /dev/null +++ b/scripts/ci-results.test.mjs @@ -0,0 +1,49 @@ +import assert from "node:assert/strict"; +import test from "node:test"; +import { requireCiResults, jobSelectors } from "./ci-results.mjs"; +function fixture(selected = []) { + const needs = { + changes: { result: "success", outputs: {} }, + structure: { result: "success" }, + "railway-config": { result: "success" }, + }; + for (const [job, selector] of Object.entries(jobSelectors)) { + needs.changes.outputs[selector] = String(selected.includes(selector)); + needs[job] = { + result: selected.includes(selector) ? "success" : "skipped", + }; + } + return needs; +} +test("selected jobs must succeed; unrelated jobs may skip", () => { + requireCiResults(fixture(["website", "contracts"])); +}); +test("an applicable suite cannot silently skip, fail, cancel, or disappear", () => { + for (const result of ["skipped", "failure", "cancelled", undefined]) { + const needs = fixture(["contracts"]); + needs.contracts.result = result; + assert.throws(() => requireCiResults(needs), /contracts/); + } +}); +test("main publication requires all report producers even without changed files", () => { + assert.throws(() => requireCiResults(fixture(), true), /required/); + const needs = fixture([ + "server", + "collection", + "dashboard", + "website", + "learn", + "contracts", + ]); + requireCiResults(needs, true); +}); +test("selector failures, missing outputs and infrastructure failures fail closed", () => { + for (const job of ["changes", "structure", "railway-config"]) { + const needs = fixture(); + needs[job].result = "failure"; + assert.throws(() => requireCiResults(needs)); + } + const needs = fixture(); + delete needs.changes.outputs.contracts; + assert.throws(() => requireCiResults(needs), /Missing selection/); +}); diff --git a/scripts/ci-selection.mjs b/scripts/ci-selection.mjs new file mode 100644 index 000000000..1430b34a3 --- /dev/null +++ b/scripts/ci-selection.mjs @@ -0,0 +1,37 @@ +import { readFileSync } from "node:fs"; +export const filters = JSON.parse( + readFileSync(new URL("../.github/ci-filters.json", import.meta.url), "utf8"), +); +// These repository rules deliberately use only literals, * and **. Fail if the +// config starts relying on another glob dialect instead of silently mis-testing it. +export function matches(pattern, path) { + if ([...pattern].some((character) => "{}[]?!".includes(character))) { + throw new Error("Unsupported CI test glob: " + pattern); + } + let regex = ""; + for (let i = 0; i < pattern.length; i++) { + if (pattern.slice(i, i + 3) === "**/") { + regex += "(?:.*/)?"; + i += 2; + } else if (pattern.slice(i, i + 2) === "**") { + regex += ".*"; + i++; + } else if (pattern[i] === "*") { + regex += "[^/]*"; + } else { + const character = pattern[i]; + regex += "\\^$.*+?()[]{}|".includes(character) + ? "\\" + character + : character; + } + } + return new RegExp("^" + regex + "$").test(path); +} +export function selectJobs(paths) { + return Object.fromEntries( + Object.entries(filters).map(([job, patterns]) => [ + job, + paths.some((path) => patterns.some((pattern) => matches(pattern, path))), + ]), + ); +} diff --git a/scripts/ci-selection.test.mjs b/scripts/ci-selection.test.mjs new file mode 100644 index 000000000..1cc804a6a --- /dev/null +++ b/scripts/ci-selection.test.mjs @@ -0,0 +1,61 @@ +import assert from "node:assert/strict"; +import test from "node:test"; +import { selectJobs, matches } from "./ci-selection.mjs"; +test("shared fixtures select every consumer and the real contract journey", () => { + const jobs = selectJobs(["docs/testing/fixtures/contract-v1.json"]); + for (const job of [ + "server", + "collection", + "dashboard", + "website", + "learn", + "contracts", + ]) + assert.equal(jobs[job], true, job); +}); +test("Server and database changes run consumer contracts while isolated web edits stay isolated", () => { + for (const path of [ + "apps/server/src/handler/collection/reportSchema.ts", + "packages/db/prisma/schema.prisma", + ]) { + const jobs = selectJobs([path]); + assert.equal(jobs.server, true); + assert.equal(jobs.contracts, true); + } + const jobs = selectJobs(["apps/website/src/routes/+page.svelte"]); + assert.equal(jobs.website, true); + assert.equal(jobs.contracts, false); + assert.equal(jobs.collection, false); +}); +test("workflow and selector changes choose all affected jobs", () => { + for (const path of [".github/workflows/ci.yml", ".github/ci-filters.json"]) + for (const selected of Object.values(selectJobs([path]))) + assert.equal(selected, true); + const native = selectJobs([".github/workflows/dashboard-native-tests.yml"]); + assert.equal(native.dashboard, true); +}); +test("double-star rules include direct and nested files without selecting neighboring apps", () => { + assert.equal(matches("apps/server/**", "apps/server/package.json"), true); + assert.equal( + matches( + "docs/testing/fixtures/**", + "docs/testing/fixtures/old/payload.json", + ), + true, + ); + assert.equal( + matches("scripts/ci-results.*", "scripts/ci-results.test.mjs"), + true, + ); + assert.equal(matches("apps/server/**", "apps/server-other/src/a.ts"), false); +}); + +test("literal dots stay literal and unsupported glob syntax fails", () => { + assert.equal( + matches("scripts/ci-results.*", "scripts/ci-resultsXtest.mjs"), + false, + ); + for (const pattern of ["a/{b,c}", "a/[b]", "a/?", "!a/*"]) { + assert.throws(() => matches(pattern, "a/b"), /Unsupported/); + } +}); diff --git a/scripts/prepare-contract-report.mjs b/scripts/prepare-contract-report.mjs new file mode 100644 index 000000000..71e1ae89a --- /dev/null +++ b/scripts/prepare-contract-report.mjs @@ -0,0 +1,49 @@ +import { mkdir, writeFile, readdir } from "node:fs/promises"; +import { join, resolve } from "node:path"; +import { pathToFileURL } from "node:url"; +const escape = (value) => + String(value).replace( + /[&<>"']/g, + (char) => + ({ "&": "&", "<": "<", ">": ">", '"': """, "'": "'" })[ + char + ], + ); +export async function prepareContractReport(root, steps, revision = "unknown") { + await mkdir(root, { recursive: true }); + const stages = ["collection", "server", "dashboard"]; + const passed = stages.every((stage) => steps[stage]?.outcome === "success"); + const files = (await readdir(root)).filter( + (name) => /^[a-zA-Z0-9_.-]+$/.test(name) && name !== "index.html", + ); + await writeFile( + join(root, "outcomes.json"), + JSON.stringify( + { + revision, + passed, + stages: Object.fromEntries( + stages.map((stage) => [stage, steps[stage]?.outcome ?? "not-run"]), + ), + }, + null, + 2, + ), + ); + await writeFile( + join(root, "index.html"), + `Cross-app contracts

Cross-app contracts: ${passed ? "PASSED" : "FAILED"}

Collection serialization → Server persistence and source-team privacy → Dashboard decoding. Synthetic data only.

Revision: ${escape(revision)}

    ${stages.map((stage) => `
  • ${stage}: ${escape(steps[stage]?.outcome ?? "not-run")}
  • `).join("")}

Evidence

`, + ); + return passed; +} +if ( + process.argv[1] && + pathToFileURL(resolve(process.argv[1])).href === import.meta.url +) { + const passed = await prepareContractReport( + process.argv[2], + JSON.parse(process.env.CONTRACT_STEPS ?? "{}"), + process.env.GITHUB_SHA, + ); + if (!passed) process.exitCode = 1; +} diff --git a/scripts/prepare-contract-report.test.mjs b/scripts/prepare-contract-report.test.mjs new file mode 100644 index 000000000..3f693fe94 --- /dev/null +++ b/scripts/prepare-contract-report.test.mjs @@ -0,0 +1,38 @@ +import assert from "node:assert/strict"; +import test from "node:test"; +import { mkdtemp, readFile, rm } from "node:fs/promises"; +import { join } from "node:path"; +import { tmpdir } from "node:os"; +import { prepareContractReport } from "./prepare-contract-report.mjs"; +test("missing or failed stages still produce diagnostic HTML without reporting success", async (t) => { + const root = await mkdtemp(join(tmpdir(), "lovat-contracts-")); + t.after(() => rm(root, { recursive: true, force: true })); + assert.equal( + await prepareContractReport( + root, + { collection: { outcome: "success" }, server: { outcome: "failure" } }, + "synthetic", + ), + false, + ); + assert.match(await readFile(join(root, "index.html"), "utf8"), /FAILED/); + assert.equal( + JSON.parse(await readFile(join(root, "outcomes.json"), "utf8")).stages + .dashboard, + "not-run", + ); + assert.equal( + await prepareContractReport( + root, + Object.fromEntries( + ["collection", "server", "dashboard"].map((stage) => [ + stage, + { outcome: "success" }, + ]), + ), + "synthetic", + ), + true, + ); + assert.match(await readFile(join(root, "index.html"), "utf8"), /PASSED/); +}); diff --git a/scripts/report-sections/contracts.json b/scripts/report-sections/contracts.json new file mode 100644 index 000000000..7f453100e --- /dev/null +++ b/scripts/report-sections/contracts.json @@ -0,0 +1 @@ +{"slug":"contracts","label":"Cross-app contracts","required":["index.html","outcomes.json","collection-payloads.json","analysis.actual.json"],"browser":false} From d229502e149f86d5d7c0dce9619b9fe630c3c208 Mon Sep 17 00:00:00 2001 From: jackshim415 Date: Thu, 12 Nov 2026 07:37:53 -0800 Subject: [PATCH 3/5] fix(ci): align Expo patches and omit missing contract coverage Keep the online SDK compatibility gate passing and render only coverage reports that are declared by their producer. Verify the contract chain reruns against the same disposable databases; Prisma cascades remove seeded descendants. Refs: LVT-272, LVT-273 --- apps/collection/app.json | 3 +- apps/collection/package-lock.json | 575 ++++++++++++------------- apps/collection/package.json | 16 +- scripts/prepare-pages-reports.mjs | 2 +- scripts/prepare-pages-reports.test.mjs | 4 + 5 files changed, 297 insertions(+), 303 deletions(-) diff --git a/apps/collection/app.json b/apps/collection/app.json index 3c9f184ea..4633b4534 100644 --- a/apps/collection/app.json +++ b/apps/collection/app.json @@ -62,7 +62,8 @@ "enableFullScreenImage_legacy": true } } - ] + ], + "expo-status-bar" ], "scheme": "lovat-collection" } diff --git a/apps/collection/package-lock.json b/apps/collection/package-lock.json index 7af56dbb8..8313d820e 100644 --- a/apps/collection/package-lock.json +++ b/apps/collection/package-lock.json @@ -15,19 +15,19 @@ "@react-native-menu/menu": "^2.0.0", "@react-native-picker/picker": "2.11.4", "@types/react": "~19.3.0", - "expo": "~58.0.23", + "expo": "~58.0.24", "expo-build-properties": "~58.0.12", "expo-constants": "~58.0.14", - "expo-dev-client": "~58.0.18", + "expo-dev-client": "~58.0.19", "expo-font": "~58.0.11", - "expo-haptics": "~58.0.7", - "expo-linear-gradient": "~58.0.3", - "expo-linking": "~58.0.16", + "expo-haptics": "~58.0.8", + "expo-linear-gradient": "~58.0.4", + "expo-linking": "~58.0.17", "expo-navigation-bar": "~58.0.4", - "expo-router": "~58.0.30", + "expo-router": "~58.0.31", "expo-screen-orientation": "~58.0.4", - "expo-splash-screen": "~58.0.13", - "expo-status-bar": "~58.0.4", + "expo-splash-screen": "~58.0.14", + "expo-status-bar": "~58.0.5", "javascript-time-ago": "^2.6.4", "jotai": "^3.0.1", "qrcode": "^1.5.4", @@ -145,13 +145,13 @@ } }, "node_modules/@babel/generator": { - "version": "7.29.13", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.13.tgz", - "integrity": "sha512-T5FRo+RzVHvGjWOuF1Ljc44b+NXAOazodHkGUHp4I3zCkQ4/sNVJm56h1S278LMR0bY5xBhztGziSbli8zObIw==", + "version": "7.29.14", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.14.tgz", + "integrity": "sha512-qSY56jgW5JnSXzuekLVil6zaOQxOCtOHidr65KkaMBw772IuAY28Qx4ZykAcDn8+FRF15qk80XzKwgSc/RYW6g==", "license": "MIT", "dependencies": { - "@babel/parser": "^7.29.13", - "@babel/types": "^7.29.11", + "@babel/parser": "^7.29.14", + "@babel/types": "^7.29.14", "@jridgewell/gen-mapping": "^0.3.12", "@jridgewell/trace-mapping": "^0.3.28", "jsesc": "^3.0.2" @@ -189,17 +189,17 @@ } }, "node_modules/@babel/helper-create-class-features-plugin": { - "version": "7.29.12", - "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.29.12.tgz", - "integrity": "sha512-ACxGoWMV866q/QlZHeCOaQZAR5QclKsIvkAmlDemqjm6+6Bynijs1mH068BzH2N2e+wSuDmBWY87fqKfvhi1Lw==", + "version": "7.29.13", + "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.29.13.tgz", + "integrity": "sha512-fo8/Fr44/DMV71FQjk/HA0Npmu3bo5DFoWTCW1dhUR8Vx3NFfAVeEy0TbcBpt4e+hd2QhdmWgmspHo/9iWj8RA==", "license": "MIT", "dependencies": { "@babel/helper-annotate-as-pure": "^7.29.7", "@babel/helper-member-expression-to-functions": "^7.29.7", "@babel/helper-optimise-call-expression": "^7.29.7", "@babel/helper-replace-supers": "^7.29.7", - "@babel/helper-skip-transparent-expression-wrappers": "^7.29.7", - "@babel/traverse": "^7.29.12", + "@babel/helper-skip-transparent-expression-wrappers": "^7.29.13", + "@babel/traverse": "^7.29.13", "semver": "^6.3.1" }, "engines": { @@ -384,9 +384,9 @@ } }, "node_modules/@babel/helper-string-parser": { - "version": "7.29.11", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.29.11.tgz", - "integrity": "sha512-snZbO7MEDOof+hvNa97EjEY7qD7h2kwvQr5AJC3ZhQudKW5dnej6k3kP9NQV88hJwaS8vDqRLFo9rivLEhle2g==", + "version": "7.29.14", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.29.14.tgz", + "integrity": "sha512-CXvKMFvM80ihI7Vox9jb+kQjnyjESQNPM+vB7U0Zz6TWuZA+Z/FL0QPMH300h33qJtIx+REeBhXqWOPW48TcAQ==", "license": "MIT", "engines": { "node": ">=6.9.0" @@ -411,14 +411,14 @@ } }, "node_modules/@babel/helper-wrap-function": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.29.7.tgz", - "integrity": "sha512-iES0Skag9ERIF68aXadpO6dbXa03mNWK3sEqJaMnLNs/eC3l0lkImdfoy6Y09/SfkpawdAB4RjQ7PVA7TcVGdw==", + "version": "7.29.14", + "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.29.14.tgz", + "integrity": "sha512-sBCQEL5D9MYOI5RvWpYtXJBeFLuGGI40hU7wW4WtDvuSZGi0zDV+cn8y9sJWD5rKpjZdsde0+oJniLbU2vdfIg==", "license": "MIT", "dependencies": { "@babel/template": "^7.29.7", - "@babel/traverse": "^7.29.7", - "@babel/types": "^7.29.7" + "@babel/traverse": "^7.29.14", + "@babel/types": "^7.29.14" }, "engines": { "node": ">=6.9.0" @@ -438,12 +438,12 @@ } }, "node_modules/@babel/parser": { - "version": "7.29.13", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.13.tgz", - "integrity": "sha512-fJM50YYjlTiBhgdkGmC1tBpv+FMAyo4annf2X6Aks+0yRlaiVkYW/3f07xAfVVkYIoZ9fFZp+mEThUFnuybhkQ==", + "version": "7.29.14", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.14.tgz", + "integrity": "sha512-VL220vXuyO2z3rNIQwY7ftj9UwpqOt+33sH+sBWkOekbsSR2g7EEMnOx24ZlCH0xOA3DM/33SifVFGbnJD8r/w==", "license": "MIT", "dependencies": { - "@babel/types": "^7.29.11" + "@babel/types": "^7.29.14" }, "bin": { "parser": "bin/babel-parser.js" @@ -857,12 +857,12 @@ } }, "node_modules/@babel/plugin-transform-class-static-block": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-static-block/-/plugin-transform-class-static-block-7.29.7.tgz", - "integrity": "sha512-kibJgmEdX2iMwsHY2tSZNDgj8PwIlCQz7FK9KuGKO8zsuoUwSEhoNnNVp/emKWrbY4HeO6kkXfdMqRKKKXBm2A==", + "version": "7.29.14", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-static-block/-/plugin-transform-class-static-block-7.29.14.tgz", + "integrity": "sha512-4rr6WKSu9DzMYpcTlbjHw6hFRk0Gkys3D54mqNE4tOyYQFOTrf3RBhntYH62ec/fbvgGEVATh5cqGZjM2Yc3gw==", "license": "MIT", "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.29.7", + "@babel/helper-create-class-features-plugin": "^7.29.13", "@babel/helper-plugin-utils": "^7.29.7" }, "engines": { @@ -1308,17 +1308,17 @@ } }, "node_modules/@babel/traverse": { - "version": "7.29.13", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.13.tgz", - "integrity": "sha512-0ve0xMlFA73dgY1oyJRY6RoW+/bncdcOQqg6jjYcVfXBK90OdLXjm9R6lmRetdZVrPjXkKIoMVBqYFPjcAlZ4Q==", + "version": "7.29.14", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.14.tgz", + "integrity": "sha512-RAdQJrBgmIH1FWvN0X+1hoDxzMzlP4cv/1Zi4dn4tG1H0cTb+rw7CzUxQJhp1f4ANd8j5vH3fy8BAWFGkBDEsA==", "license": "MIT", "dependencies": { "@babel/code-frame": "^7.29.7", - "@babel/generator": "^7.29.13", + "@babel/generator": "^7.29.14", "@babel/helper-globals": "^7.29.7", - "@babel/parser": "^7.29.13", + "@babel/parser": "^7.29.14", "@babel/template": "^7.29.7", - "@babel/types": "^7.29.11", + "@babel/types": "^7.29.14", "debug": "^4.3.1" }, "engines": { @@ -1326,12 +1326,12 @@ } }, "node_modules/@babel/types": { - "version": "7.29.11", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.11.tgz", - "integrity": "sha512-WCsemW40Cpc6gouC1SrY6PBaZ+oLRlEVY9XBvZBI7il/HyUrb2nJ505wE1MHEFyDZNnrWDEuy4jL50WVHfTTSQ==", + "version": "7.29.14", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.14.tgz", + "integrity": "sha512-UjI/dKmwJwT9pOszJitq2G6EObZPnsZUfdCr92z2TlF3EZK9J3EdfOKUrCzHl6wFthbzwhzl1Soc/UIwxRiq6w==", "license": "MIT", "dependencies": { - "@babel/helper-string-parser": "^7.29.11", + "@babel/helper-string-parser": "^7.29.14", "@babel/helper-validator-identifier": "^7.29.7" }, "engines": { @@ -1605,31 +1605,31 @@ } }, "node_modules/@expo/cli": { - "version": "58.1.19", - "resolved": "https://registry.npmjs.org/@expo/cli/-/cli-58.1.19.tgz", - "integrity": "sha512-zoLhSlFnln0xn1fiW0+kb1J0lNv06HAy+FQ27HHwEEWoAClCE13FnTQBOW5bOVYc3c7hsGM8ypKcZGS7RGqjQA==", + "version": "58.1.20", + "resolved": "https://registry.npmjs.org/@expo/cli/-/cli-58.1.20.tgz", + "integrity": "sha512-VXXcqGuXBngzItcP97ERWON3aHJOeAwDxuRlkxgbYfW9m9DpGHM6umGgjOPWWy14xSArUvwGZpg+D5Ms+hnnkg==", "license": "MIT", "dependencies": { "@expo/code-signing-certificates": "^0.0.7", - "@expo/config": "~58.0.11", - "@expo/config-plugins": "~58.0.12", + "@expo/config": "~58.0.12", + "@expo/config-plugins": "~58.0.13", "@expo/devcert": "^1.2.2", - "@expo/env": "~2.5.4", - "@expo/image-utils": "^0.12.6", - "@expo/inline-modules": "^0.2.9", + "@expo/env": "~2.6.0", + "@expo/image-utils": "^0.12.7", + "@expo/inline-modules": "^0.2.10", "@expo/json-file": "^11.2.1", "@expo/log-box": "^58.0.15", "@expo/log-box-utils": "^58.0.2", "@expo/metro": "~58.0.0", - "@expo/metro-config": "58.0.21", - "@expo/metro-file-map": "^58.0.5", + "@expo/metro-config": "58.0.22", + "@expo/metro-file-map": "^58.0.6", "@expo/osascript": "^2.8.1", "@expo/package-manager": "^1.14.2", "@expo/platforms": "^58.0.1", - "@expo/plist": "^0.10.1", - "@expo/prebuild-config": "^58.0.19", - "@expo/require-utils": "^58.0.5", - "@expo/router-server": "^58.0.21", + "@expo/plist": "^0.10.2", + "@expo/prebuild-config": "^58.0.20", + "@expo/require-utils": "^58.0.6", + "@expo/router-server": "^58.0.22", "@expo/schema-utils": "^58.0.3", "@expo/spawn-async": "^1.8.0", "@expo/ws-tunnel": "^2.0.1", @@ -1648,10 +1648,8 @@ "compression": "^1.7.4", "connect": "^3.7.0", "dnssd-advertise": "^1.1.6", - "expo-server": "^58.0.6", + "expo-server": "^58.1.0", "fetch-nodeshim": "^0.4.10", - "getenv": "^2.0.0", - "glob": "^13.0.0", "lan-network": "^0.2.1", "multitars": "^1.0.2", "node-forge": "^1.4.0", @@ -1669,6 +1667,7 @@ "stacktrace-parser": "^0.1.10", "structured-headers": "^0.4.1", "terminal-link": "^2.1.1", + "tinyglobby": "^0.2.15", "toqr": "^0.1.1", "wrap-ansi": "^7.0.0", "ws": "^8.12.1" @@ -1719,36 +1718,34 @@ } }, "node_modules/@expo/config": { - "version": "58.0.11", - "resolved": "https://registry.npmjs.org/@expo/config/-/config-58.0.11.tgz", - "integrity": "sha512-qfJdK5GrT5LcwgkOx5OevR7rxrOwxcSsIFbgIK+IqaRqwCwnrjZCgG9awh0+tcpwOu+B90oDp0QorHzIb8YdUA==", + "version": "58.0.12", + "resolved": "https://registry.npmjs.org/@expo/config/-/config-58.0.12.tgz", + "integrity": "sha512-Ch/4Cb8womWYpY1zI4BEEYT1rGuKti8O8aSzyAM79xNTVRx6nPw2h9j91Knq95OSH3wtjrcthZwVYZ3po4igNg==", "license": "MIT", "dependencies": { - "@expo/config-plugins": "~58.0.12", + "@expo/config-plugins": "~58.0.13", "@expo/config-types": "^58.0.3", "@expo/json-file": "^11.2.1", "@expo/platforms": "^58.0.1", - "@expo/require-utils": "^58.0.5", - "getenv": "^2.0.0", + "@expo/require-utils": "^58.0.6", "resolve-workspace-root": "^2.0.0", "semver": "^7.7.4", "slugify": "^1.3.4" } }, "node_modules/@expo/config-plugins": { - "version": "58.0.12", - "resolved": "https://registry.npmjs.org/@expo/config-plugins/-/config-plugins-58.0.12.tgz", - "integrity": "sha512-nqnoPBARpKdKLY8+c+N2mizJgiWjlQGWeDhEOqMOZnQcpMmU79H1Svc9QOzcE1yX7obzw0Hf2YVlfW67g58Ucg==", + "version": "58.0.13", + "resolved": "https://registry.npmjs.org/@expo/config-plugins/-/config-plugins-58.0.13.tgz", + "integrity": "sha512-Vbkt0vpIJ9z+oCFr2simtfuiPxdpIovDgYnzenC9z7jX0rlo8nTLGQky+q+SJdovIbyymGAO45UR0YqwLgbvKw==", "license": "MIT", "dependencies": { "@expo/config-types": "^58.0.3", "@expo/json-file": "~11.2.1", - "@expo/plist": "^0.10.1", - "@expo/require-utils": "^58.0.5", + "@expo/plist": "^0.10.2", + "@expo/require-utils": "^58.0.6", "@expo/sdk-runtime-versions": "^1.0.1", "chalk": "^4.1.2", "debug": "^4.3.5", - "getenv": "^2.0.0", "semver": "^7.7.4", "slugify": "^1.6.6", "tinyglobby": "^0.2.15", @@ -1842,34 +1839,31 @@ } }, "node_modules/@expo/env": { - "version": "2.5.4", - "resolved": "https://registry.npmjs.org/@expo/env/-/env-2.5.4.tgz", - "integrity": "sha512-CjzuExX8GegcNLpOw8BDO19RpzJBD1xCCMSfRL1eMfIGiwIJ9EBu0cE3jn3elk7rKvU5QqH15x72YLWTyxGL2g==", + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/@expo/env/-/env-2.6.0.tgz", + "integrity": "sha512-pSNESQU0IGhLs/A3QlNPoh/acb1vWU7N721OjaIm3JT8yzgZymIM/m4x2y73YwpEtqgwWsCl6+japtq2PtXIPw==", "license": "MIT", "dependencies": { "chalk": "^4.0.0", - "debug": "^4.3.4", - "getenv": "^2.0.0" + "debug": "^4.3.4" }, "engines": { "node": ">=20.12.0" } }, "node_modules/@expo/fingerprint": { - "version": "0.21.9", - "resolved": "https://registry.npmjs.org/@expo/fingerprint/-/fingerprint-0.21.9.tgz", - "integrity": "sha512-Z2xIFc/lvZZnDamAyd9uWUUctoT6uzAYOLAUqiZ2pT6mkDFistVsLd/5XCrD5/W3pUY65GLxmOal6+vyyzo0Dg==", + "version": "0.21.10", + "resolved": "https://registry.npmjs.org/@expo/fingerprint/-/fingerprint-0.21.10.tgz", + "integrity": "sha512-u73rWDHOYijO1wT60uKjtuoGBKsU9/MFSh7WEE63K2jJ0ML8eycUCXF9FmLf3EVzzIjYIPu6Ns04LR7FVGh6mA==", "license": "MIT", "dependencies": { - "@expo/env": "^2.5.4", + "@expo/env": "^2.6.0", "@expo/spawn-async": "^1.8.0", "arg": "^5.0.2", "chalk": "^4.1.2", "debug": "^4.3.4", - "getenv": "^2.0.0", - "glob": "^13.0.0", "ignore": "^5.3.1", - "minimatch": "^10.2.2", + "minimatch": "^10.2.6", "resolve-from": "^5.0.0", "semver": "^7.7.4" }, @@ -1887,9 +1881,9 @@ } }, "node_modules/@expo/fingerprint/node_modules/brace-expansion": { - "version": "5.0.12", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.12.tgz", - "integrity": "sha512-YovQ3rzhaLMIrDjNDMkNS01tea93qhEhG5xy8f6+R0l+dw3Ki+5sCoIoI942iuLZTHWogWktgwVDhU09iNEimQ==", + "version": "5.0.13", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.13.tgz", + "integrity": "sha512-Vh3dmFbc4wZeox7M9I/0L9GfFd83Su4+yCck/OF9Gi/P/dAHn0RT7X4K9R7gMNMhDck3DvhR6QXsnQdjjgwNvQ==", "license": "MIT", "dependencies": { "balanced-match": "^4.0.2" @@ -1926,15 +1920,14 @@ } }, "node_modules/@expo/image-utils": { - "version": "0.12.6", - "resolved": "https://registry.npmjs.org/@expo/image-utils/-/image-utils-0.12.6.tgz", - "integrity": "sha512-AWzD/c3mM/a+sDbRgOSNzBpkUW8sUVUFcwnZ7xqkkhc5Hi9Fms0pDGw24JLxccgA6cC6bbJ8sZiQbnXBf75onA==", + "version": "0.12.7", + "resolved": "https://registry.npmjs.org/@expo/image-utils/-/image-utils-0.12.7.tgz", + "integrity": "sha512-fuiRQxvvkbj932BamtYh1UKuyRJ5tXBJ3XxpGm5pT4zzynPmygd3RtOQrzIhcsIZGcG6i1n+KvrszYRnk3evqQ==", "license": "MIT", "dependencies": { - "@expo/require-utils": "^58.0.5", + "@expo/require-utils": "^58.0.6", "@expo/spawn-async": "^1.8.0", "chalk": "^4.0.0", - "getenv": "^2.0.0", "jimp-compact": "0.16.1", "parse-png": "^2.1.0", "semver": "^7.7.4" @@ -1953,12 +1946,12 @@ } }, "node_modules/@expo/inline-modules": { - "version": "0.2.9", - "resolved": "https://registry.npmjs.org/@expo/inline-modules/-/inline-modules-0.2.9.tgz", - "integrity": "sha512-Ksrw66Urvj9YptFWmGYRP7w8PtDBEebhb11tkLgF5kUqDbJT1A07Sr2e8jvRVPLksn+Pkfb0eN2dnvnPh1CNnQ==", + "version": "0.2.10", + "resolved": "https://registry.npmjs.org/@expo/inline-modules/-/inline-modules-0.2.10.tgz", + "integrity": "sha512-WFqhlOrUUc0VZxrUPq5X328aP2e/cQKvJJXhwNxNj9fqWS9iFWC1E9VRHHhJIqdu+qy2YU3s2OBDlyIz9X/5aA==", "license": "MIT", "dependencies": { - "@expo/config-plugins": "~58.0.12" + "@expo/config-plugins": "~58.0.13" } }, "node_modules/@expo/json-file": { @@ -1972,12 +1965,12 @@ } }, "node_modules/@expo/local-build-cache-provider": { - "version": "58.0.11", - "resolved": "https://registry.npmjs.org/@expo/local-build-cache-provider/-/local-build-cache-provider-58.0.11.tgz", - "integrity": "sha512-mAMo/8WMU6tro+sLyDhNaUk0fq7TUOyiHyjLXtk2uo79p4lVmk+jPQMYL1DElAo0tXLkOyyv8DS+f6Ig0o96sg==", + "version": "58.0.12", + "resolved": "https://registry.npmjs.org/@expo/local-build-cache-provider/-/local-build-cache-provider-58.0.12.tgz", + "integrity": "sha512-2fpz4A+cf7YybeVx6lc/kulUpMLOv0OrlhdcvOpMCQG/9Wp5IBOZUgykSN86wmU5ZGJe4JeDJ4Soq5H3hfvzIw==", "license": "MIT", "dependencies": { - "@expo/config": "~58.0.11", + "@expo/config": "~58.0.12", "chalk": "^4.1.2" } }, @@ -2033,20 +2026,20 @@ } }, "node_modules/@expo/metro-config": { - "version": "58.0.21", - "resolved": "https://registry.npmjs.org/@expo/metro-config/-/metro-config-58.0.21.tgz", - "integrity": "sha512-5GT5B1a1THgCa9ICyDDerP81WDNMKhtpt/W1aK98DGTlOIZAXEP85fzVTY/lJZtPJqSSZ0e//XbfYbGsjoJSjQ==", + "version": "58.0.22", + "resolved": "https://registry.npmjs.org/@expo/metro-config/-/metro-config-58.0.22.tgz", + "integrity": "sha512-4sOL3FScET69+EBn8TvdnepcSI6B/mihzYIlLkDf5KfCcnBOpUwH6AhITp+WxE+BowtnCVlQd1vt5lF/nhBSAg==", "license": "MIT", "dependencies": { "@babel/code-frame": "^7.20.0", "@babel/core": "^7.20.0", "@babel/generator": "^7.20.5", - "@expo/config": "~58.0.11", - "@expo/env": "~2.5.4", + "@expo/config": "~58.0.12", + "@expo/env": "~2.6.0", "@expo/json-file": "~11.2.1", "@expo/metro": "~58.0.0", "@expo/platforms": "^58.0.1", - "@expo/require-utils": "^58.0.5", + "@expo/require-utils": "^58.0.6", "@expo/spawn-async": "^1.8.0", "@jridgewell/gen-mapping": "^0.3.13", "@jridgewell/remapping": "^2.3.5", @@ -2057,7 +2050,6 @@ "browserslist": "^4.25.0", "chalk": "^4.1.0", "debug": "^4.3.2", - "getenv": "^2.0.0", "hermes-parser": "^0.36.0", "jsc-safe-url": "^0.2.4", "lightningcss": "^1.30.1", @@ -2077,9 +2069,9 @@ } }, "node_modules/@expo/metro-file-map": { - "version": "58.0.5", - "resolved": "https://registry.npmjs.org/@expo/metro-file-map/-/metro-file-map-58.0.5.tgz", - "integrity": "sha512-Y2w8qKklLffZie28In4WF6f6e8nIJOhU0mZ5UaQdCiITVQm2a5teNdIDudEPkBsh8ItlvyHZt9n42PN2onRbkQ==", + "version": "58.0.6", + "resolved": "https://registry.npmjs.org/@expo/metro-file-map/-/metro-file-map-58.0.6.tgz", + "integrity": "sha512-+kPFI328BSUxpK7OO0kM31NQlYG/z7WOTISbPEuY4fMZxmN/nLnmJIDNG8NTtM5ZHXlNPqgjRvdukxtsBEkvuw==", "license": "MIT", "dependencies": { "2g": "^1.0.1", @@ -2458,9 +2450,9 @@ } }, "node_modules/@expo/modules-macros-linux-arm64": { - "version": "0.29.0", - "resolved": "https://registry.npmjs.org/@expo/modules-macros-linux-arm64/-/modules-macros-linux-arm64-0.29.0.tgz", - "integrity": "sha512-wWT0DO/S7UluMJDPi+sPSKX516N//waiKg+qh2To1MYpDEAC6bm7tU6nzWskcXOAe8XYC5Dm/crVY5i8/2k/5A==", + "version": "0.33.0", + "resolved": "https://registry.npmjs.org/@expo/modules-macros-linux-arm64/-/modules-macros-linux-arm64-0.33.0.tgz", + "integrity": "sha512-5F4L/IJThOBq3oRo9NB5BI4+Od8K2YDTbU+2IHgsnXsrTc5icQtOlLwHOEfExghjo0PHCXGap4zprfOKvtANxw==", "cpu": [ "arm64" ], @@ -2471,9 +2463,9 @@ ] }, "node_modules/@expo/modules-macros-linux-x64": { - "version": "0.29.0", - "resolved": "https://registry.npmjs.org/@expo/modules-macros-linux-x64/-/modules-macros-linux-x64-0.29.0.tgz", - "integrity": "sha512-ESYAz3/NZVdEiNyt1pRQ63Px05bZcgn5xHinX90kYTbuRXFxBXYIrjLH27wl8DfasYHP7hnbwUMLo3YLBe/2ag==", + "version": "0.33.0", + "resolved": "https://registry.npmjs.org/@expo/modules-macros-linux-x64/-/modules-macros-linux-x64-0.33.0.tgz", + "integrity": "sha512-G3kxfmMpH7BDtoeBVeJA4vh5O3kQ3wmjmSfDremRBWENHKwHJXTOsyerLQqkJC39oPKCuXgXhzvp+/5qy+DyvA==", "cpu": [ "x64" ], @@ -2484,9 +2476,9 @@ ] }, "node_modules/@expo/modules-macros-win32-arm64": { - "version": "0.29.0", - "resolved": "https://registry.npmjs.org/@expo/modules-macros-win32-arm64/-/modules-macros-win32-arm64-0.29.0.tgz", - "integrity": "sha512-IUZ8s2xg0iz7feY3apUyh6oX8CyPzCuZT3vvGXRfhziTyTDuwoWZx6G2bf9etbJkTQm/rUvX4h9rgtfk+TDptQ==", + "version": "0.33.0", + "resolved": "https://registry.npmjs.org/@expo/modules-macros-win32-arm64/-/modules-macros-win32-arm64-0.33.0.tgz", + "integrity": "sha512-sAYEhKqywo+38UcWt1KLNzJkSkpba4HYybSSZfpFsoA28/MCBupFZggkbU/E9z81fZeuiWVA2Ote1fp8ogqRAA==", "cpu": [ "arm64" ], @@ -2497,9 +2489,9 @@ ] }, "node_modules/@expo/modules-macros-win32-x64": { - "version": "0.29.0", - "resolved": "https://registry.npmjs.org/@expo/modules-macros-win32-x64/-/modules-macros-win32-x64-0.29.0.tgz", - "integrity": "sha512-qdJzIIB0oitXD3tErciv5zTxk4zkCNHuG5nnubJ3pFa9Y3VPd2/70lFwWmAjMWZUGwvBiePZhNVAuehdHaOcyQ==", + "version": "0.33.0", + "resolved": "https://registry.npmjs.org/@expo/modules-macros-win32-x64/-/modules-macros-win32-x64-0.33.0.tgz", + "integrity": "sha512-O7tmET8ehVpmocxpVUlXkV9yfKCNo3uKvpN7wNyWcJlEIM6xo+WZuN4RDtndExI6CE5wn8Io608US+BYtrE9+w==", "cpu": [ "x64" ], @@ -2734,30 +2726,29 @@ "license": "MIT" }, "node_modules/@expo/plist": { - "version": "0.10.1", - "resolved": "https://registry.npmjs.org/@expo/plist/-/plist-0.10.1.tgz", - "integrity": "sha512-nuNOqj+r/hGJbZ1Ax3jUpZaOB8UAMHUrISALJEUKaCieTflYj7224EqFWmMpriCGk9wXS1gH+9GGVnSj0tWzuQ==", + "version": "0.10.2", + "resolved": "https://registry.npmjs.org/@expo/plist/-/plist-0.10.2.tgz", + "integrity": "sha512-kaCDdGLtezkt5s1w7iCaISNJ+RkNac/1yBYYE8XyXLSJu3czGHZKzJGQ8fFOrpEGm6GdlIHFpzVeiF01ZVyHyg==", "license": "MIT", "dependencies": { "@xmldom/xmldom": "^0.8.8", - "base64-js": "^1.5.1", "xmlbuilder": "^15.1.1" } }, "node_modules/@expo/prebuild-config": { - "version": "58.0.19", - "resolved": "https://registry.npmjs.org/@expo/prebuild-config/-/prebuild-config-58.0.19.tgz", - "integrity": "sha512-hnXk/CsXOnKk4eRfA7Qh1JO793wRFzUfCJlu+5NpRwbpuMw6J+0LRRTRY2fIXOL+UefeTi6TD5EGXFKuJU9c4Q==", + "version": "58.0.20", + "resolved": "https://registry.npmjs.org/@expo/prebuild-config/-/prebuild-config-58.0.20.tgz", + "integrity": "sha512-lqXK5d6ni2MCNO/MbuXhojKC+Iy/gaYm0a3vVebwf/njoe1Fp3iw8mXDwoofmvlzZ3HO+beL7XCX6e6ZEYmVyg==", "license": "MIT", "dependencies": { - "@expo/config": "~58.0.11", - "@expo/config-plugins": "~58.0.12", + "@expo/config": "~58.0.12", + "@expo/config-plugins": "~58.0.13", "@expo/config-types": "^58.0.3", - "@expo/image-utils": "^0.12.6", + "@expo/image-utils": "^0.12.7", "@expo/json-file": "^11.2.1", "@react-native/normalize-colors": "0.88.1", "debug": "^4.3.1", - "expo-modules-autolinking": "~58.0.17", + "expo-modules-autolinking": "~58.1.0", "resolve-from": "^5.0.0", "semver": "^7.7.4" } @@ -2775,9 +2766,9 @@ } }, "node_modules/@expo/require-utils": { - "version": "58.0.5", - "resolved": "https://registry.npmjs.org/@expo/require-utils/-/require-utils-58.0.5.tgz", - "integrity": "sha512-14dGubYUBmJjK9aqVSGnwSDs9uaxfzvtqJugtMCEWyuTa/eIvToUbzUwpKCSek6S/hYSEYcgds23vDJhXSBpbQ==", + "version": "58.0.6", + "resolved": "https://registry.npmjs.org/@expo/require-utils/-/require-utils-58.0.6.tgz", + "integrity": "sha512-k9Ce7indjY3+nRBNT6wKw7NghN7pP6WhFnYNjuDiAypwjtVgaZHpD9fo0/g3/emDUpM6ebl8Ekz/teyUGfD9og==", "license": "MIT", "dependencies": { "@babel/code-frame": "^7.20.0", @@ -2794,9 +2785,9 @@ } }, "node_modules/@expo/router-server": { - "version": "58.0.21", - "resolved": "https://registry.npmjs.org/@expo/router-server/-/router-server-58.0.21.tgz", - "integrity": "sha512-ll24bNIUllohdQ/dLz9ANvx3ZwFd+BN6RSWJ2Da1gxMQ6QHop2TNz6ShlMBy+j6o1H573kYHXWRB2PrFDH1LGQ==", + "version": "58.0.22", + "resolved": "https://registry.npmjs.org/@expo/router-server/-/router-server-58.0.22.tgz", + "integrity": "sha512-e2x3gZRLaGsoU4M6PNkPuHH6/XQolMb6gVlT6dtm1HAO0GYipvX0pVt6nBsf2xuRJU/0hEvRjpI+vLueZDvxoA==", "license": "MIT", "dependencies": { "debug": "^4.3.4" @@ -2804,10 +2795,10 @@ "peerDependencies": { "@expo/metro-runtime": "^58.0.17", "expo": "*", - "expo-constants": "^58.0.15", - "expo-font": "^58.0.11", + "expo-constants": "^58.0.16", + "expo-font": "^58.0.12", "expo-router": "*", - "expo-server": "^58.0.6", + "expo-server": "^58.1.0", "react": "*", "react-dom": "*", "react-server-dom-webpack": "~19.0.1 || ~19.1.2 || ~19.2.1 || ~19.3.0" @@ -4999,9 +4990,9 @@ } }, "node_modules/@noxcturnal/noxcturnal-darwin-arm64": { - "version": "0.1.11", - "resolved": "https://registry.npmjs.org/@noxcturnal/noxcturnal-darwin-arm64/-/noxcturnal-darwin-arm64-0.1.11.tgz", - "integrity": "sha512-tqvZOVmSoiJzm7QjQ+whPxCP45J2C1zCAZnzc1HhwmJrFIWw/qyA8o9Cup0aVqnjNVAN+as9GHX+DbAmkCbGlQ==", + "version": "0.1.12", + "resolved": "https://registry.npmjs.org/@noxcturnal/noxcturnal-darwin-arm64/-/noxcturnal-darwin-arm64-0.1.12.tgz", + "integrity": "sha512-46MqSBhSPSL/LbY0ZhH2Zh+MJUOLWuwEuk6FQLFeJYFepENuNoWinZO/P7xX3dZQ3g2OrJiPE6iWKMBgoeF+gA==", "cpu": [ "arm64" ], @@ -5015,9 +5006,9 @@ } }, "node_modules/@noxcturnal/noxcturnal-darwin-x64": { - "version": "0.1.11", - "resolved": "https://registry.npmjs.org/@noxcturnal/noxcturnal-darwin-x64/-/noxcturnal-darwin-x64-0.1.11.tgz", - "integrity": "sha512-V2HXkK5iKFBSc2GmeZE2I2wGxBc0kMQUHxxIUBSjuO8enKIby6cEQj8WW5EAuIli622Sqw1V7f0IIz8mXB4M9g==", + "version": "0.1.12", + "resolved": "https://registry.npmjs.org/@noxcturnal/noxcturnal-darwin-x64/-/noxcturnal-darwin-x64-0.1.12.tgz", + "integrity": "sha512-Neaz3ytiqwdWkgX8aSxnPVGO1ZmzalUEhWOCo2gWQC6DJAps6BjfjZwhdFtiWCOQ9iuukDkWnaKYZG4N1Ab6Bw==", "cpu": [ "x64" ], @@ -5031,9 +5022,9 @@ } }, "node_modules/@noxcturnal/noxcturnal-linux-arm64-gnu": { - "version": "0.1.11", - "resolved": "https://registry.npmjs.org/@noxcturnal/noxcturnal-linux-arm64-gnu/-/noxcturnal-linux-arm64-gnu-0.1.11.tgz", - "integrity": "sha512-Vf9Qbke9Hq5ToFt88XicQN0FJJuepOnPKspcKDICeYYXS2b5wQnU7uhf33QWzr1KPQhn0L0IWUCwBNhMVn6E6w==", + "version": "0.1.12", + "resolved": "https://registry.npmjs.org/@noxcturnal/noxcturnal-linux-arm64-gnu/-/noxcturnal-linux-arm64-gnu-0.1.12.tgz", + "integrity": "sha512-amvAnI2qoxJ/LQjFL1pMQHgym/C+SKPATPDcX6W4wcttBRIDh54PbEWKSaWeFoZ1EsqIF2O4SsDXxjImWGVQzw==", "cpu": [ "arm64" ], @@ -5047,9 +5038,9 @@ } }, "node_modules/@noxcturnal/noxcturnal-linux-arm64-musl": { - "version": "0.1.11", - "resolved": "https://registry.npmjs.org/@noxcturnal/noxcturnal-linux-arm64-musl/-/noxcturnal-linux-arm64-musl-0.1.11.tgz", - "integrity": "sha512-HlwlrcfBE7JBiwWaq32R8eN4APJHQCDoQlapeK+t0wxY9s9YDMDtAnG+v7RrEz05nu7Aci21x/s8qIAA5jE+NA==", + "version": "0.1.12", + "resolved": "https://registry.npmjs.org/@noxcturnal/noxcturnal-linux-arm64-musl/-/noxcturnal-linux-arm64-musl-0.1.12.tgz", + "integrity": "sha512-dTY6LRtSfhZRYRW7Kc4DwAoU8vM0NqopXWWV3RJ8aux8nJ19uhCtRbpEzjIjAT8jG6/Ds5FLEXFqJgVLf4fr2A==", "cpu": [ "arm64" ], @@ -5063,9 +5054,9 @@ } }, "node_modules/@noxcturnal/noxcturnal-linux-x64-gnu": { - "version": "0.1.11", - "resolved": "https://registry.npmjs.org/@noxcturnal/noxcturnal-linux-x64-gnu/-/noxcturnal-linux-x64-gnu-0.1.11.tgz", - "integrity": "sha512-kIzTkH4rEIn8vFl42lzfK8qmKaXMwHM7txbI+XkhYKjS+2WV08yslBpwHaPGtGLXPEfx+xUTUgY5K3KVET7HKw==", + "version": "0.1.12", + "resolved": "https://registry.npmjs.org/@noxcturnal/noxcturnal-linux-x64-gnu/-/noxcturnal-linux-x64-gnu-0.1.12.tgz", + "integrity": "sha512-v7PyVf9PgGRaFGq8DTilouKHIh/huXqfQOa9hIC7siseaxMzNX/HdweL9ZvXV7ZjkzUbbEZrg3YuIZ874PPYZA==", "cpu": [ "x64" ], @@ -5079,9 +5070,9 @@ } }, "node_modules/@noxcturnal/noxcturnal-linux-x64-musl": { - "version": "0.1.11", - "resolved": "https://registry.npmjs.org/@noxcturnal/noxcturnal-linux-x64-musl/-/noxcturnal-linux-x64-musl-0.1.11.tgz", - "integrity": "sha512-KpC0H+v+y/v0j4EmGiopzZ2OKo01JIBrHTjTi+veYAhZbpUfwZfShdTTHEj5OjdQ5VgaJU8yaBXmX48jgAACOg==", + "version": "0.1.12", + "resolved": "https://registry.npmjs.org/@noxcturnal/noxcturnal-linux-x64-musl/-/noxcturnal-linux-x64-musl-0.1.12.tgz", + "integrity": "sha512-7oWCdgQ2T1qjC05bz8IHzVRdg/yC+3SRZnDxc1xdY/vPKvrMUHJUB7oiKLHbLPtuMx8m5+lagm7RBQabUTBvxw==", "cpu": [ "x64" ], @@ -5095,9 +5086,9 @@ } }, "node_modules/@noxcturnal/noxcturnal-win32-arm64-msvc": { - "version": "0.1.11", - "resolved": "https://registry.npmjs.org/@noxcturnal/noxcturnal-win32-arm64-msvc/-/noxcturnal-win32-arm64-msvc-0.1.11.tgz", - "integrity": "sha512-Q0Q0ll/qPzakp/GBmVDB/XthqyCkfM2CE5gZ78t9Ix/bkZDe5O0G7OyNkXRsGu49VcorxoGbBgSyF6CK+OaYlQ==", + "version": "0.1.12", + "resolved": "https://registry.npmjs.org/@noxcturnal/noxcturnal-win32-arm64-msvc/-/noxcturnal-win32-arm64-msvc-0.1.12.tgz", + "integrity": "sha512-Ma+0PV4nVdRXCYhgNontvuoAczRC11mbZ18LCaWY2aVTc76HjsQQEFPgXqRNlj2/Rjaax5EXUQqyLYYwI+ZB5A==", "cpu": [ "arm64" ], @@ -5111,9 +5102,9 @@ } }, "node_modules/@noxcturnal/noxcturnal-win32-x64-msvc": { - "version": "0.1.11", - "resolved": "https://registry.npmjs.org/@noxcturnal/noxcturnal-win32-x64-msvc/-/noxcturnal-win32-x64-msvc-0.1.11.tgz", - "integrity": "sha512-as4HUwZkQegCcGoFzaLzlZbBqdx8BGgFhAoQsTsdJCUbNTxVH0f3R/AcRLOUJ6odfko0E2SSuJc70FI0zQ/IDg==", + "version": "0.1.12", + "resolved": "https://registry.npmjs.org/@noxcturnal/noxcturnal-win32-x64-msvc/-/noxcturnal-win32-x64-msvc-0.1.12.tgz", + "integrity": "sha512-6QcmxWocHLMfQKT5cy0+KbIYbCpaTd50MC/k6t7pQrfnKMKav5tdQi0lsx3WRrIE/5qUNepNx5iv9DjSJTXrGg==", "cpu": [ "x64" ], @@ -7652,9 +7643,9 @@ } }, "node_modules/babel-preset-expo": { - "version": "58.0.24", - "resolved": "https://registry.npmjs.org/babel-preset-expo/-/babel-preset-expo-58.0.24.tgz", - "integrity": "sha512-weiIlSNOAs9q54nA2JLvXbFQW/8oUVUHiwHsfZaaZzZCBw8zoKz8hCjIYSCcixxQm+4vLzGKbsD1aF9pDwY3lQ==", + "version": "58.0.25", + "resolved": "https://registry.npmjs.org/babel-preset-expo/-/babel-preset-expo-58.0.25.tgz", + "integrity": "sha512-uNRXWw2D6FU1hqye42XgbeUx110IxocpfwvV6QUdH7uuYMpqZPtP9Juzl7/HJdzrvrSGSRBBBPua7WlbtE1U7Q==", "license": "MIT", "dependencies": { "@babel/generator": "^7.20.5", @@ -7703,7 +7694,7 @@ "peerDependencies": { "@babel/runtime": "^7.20.0", "expo": "*", - "expo-widgets": "^58.0.27", + "expo-widgets": "^58.0.28", "react-refresh": ">=0.14.0 <1.0.0" }, "peerDependenciesMeta": { @@ -9493,33 +9484,33 @@ } }, "node_modules/expo": { - "version": "58.0.23", - "resolved": "https://registry.npmjs.org/expo/-/expo-58.0.23.tgz", - "integrity": "sha512-FRpmfd1mdjWS9bRSMoZkwpF8ugbN+w6BDtNs+DYEio7rdSguTJ6fs/gaeWSeN60AJAbz80Uj36AMWtpHkShG0g==", + "version": "58.0.24", + "resolved": "https://registry.npmjs.org/expo/-/expo-58.0.24.tgz", + "integrity": "sha512-EPgijeqjnK+eaoA9VzJvvodmKBxEcfNlRBxyZr5s1dmvjgF13p3HfEr6eRjsTtnXdz/GlKn2uffTM1uHZeaSVQ==", "license": "MIT", "dependencies": { "@babel/runtime": "^7.20.0", - "@expo/cli": "^58.1.19", - "@expo/config": "~58.0.11", - "@expo/config-plugins": "~58.0.12", + "@expo/cli": "^58.1.20", + "@expo/config": "~58.0.12", + "@expo/config-plugins": "~58.0.13", "@expo/devtools": "~58.0.2", "@expo/dom-webview": "~58.0.2", - "@expo/fingerprint": "^0.21.9", - "@expo/local-build-cache-provider": "^58.0.11", + "@expo/fingerprint": "^0.21.10", + "@expo/local-build-cache-provider": "^58.0.12", "@expo/log-box": "^58.0.15", "@expo/log-box-utils": "^58.0.2", "@expo/metro": "~58.0.0", - "@expo/metro-config": "~58.0.21", + "@expo/metro-config": "~58.0.22", "@ungap/structured-clone": "^1.3.0", - "babel-preset-expo": "~58.0.24", - "expo-asset": "~58.0.20", - "expo-constants": "~58.0.15", + "babel-preset-expo": "~58.0.25", + "expo-asset": "~58.0.21", + "expo-constants": "~58.0.16", "expo-file-system": "~58.0.13", - "expo-font": "~58.0.11", - "expo-keep-awake": "~58.0.3", - "expo-modules-autolinking": "~58.0.17", - "expo-modules-cli": "~0.4.0", - "expo-modules-core": "~58.0.30", + "expo-font": "~58.0.12", + "expo-keep-awake": "~58.0.4", + "expo-modules-autolinking": "~58.1.0", + "expo-modules-cli": "~0.5.0", + "expo-modules-core": "~58.1.0", "pretty-format": "^29.7.0", "react-refresh": "^0.14.2", "whatwg-url-minimum": "^0.2.0" @@ -9561,13 +9552,13 @@ } }, "node_modules/expo-asset": { - "version": "58.0.20", - "resolved": "https://registry.npmjs.org/expo-asset/-/expo-asset-58.0.20.tgz", - "integrity": "sha512-atirOtDsH0l+4zxnByf4WKc7Iw2k5e2bSNAkuu79d4SLOAjAROoDizeP0qNQSMyZNoHPArw7EwTpoc8LuWvg4Q==", + "version": "58.0.21", + "resolved": "https://registry.npmjs.org/expo-asset/-/expo-asset-58.0.21.tgz", + "integrity": "sha512-qaJmuTtswggXdBQfiUdpxrVGM7l+tH8iEDHwVDMuxyCF/kAau8sUGVuWrDKYNW4yAx7Z8ncgsT8s27pXjRH5GA==", "license": "MIT", "dependencies": { - "@expo/image-utils": "^0.12.6", - "expo-constants": "~58.0.15" + "@expo/image-utils": "^0.12.7", + "expo-constants": "~58.0.16" }, "peerDependencies": { "expo": "*", @@ -9602,13 +9593,13 @@ } }, "node_modules/expo-constants": { - "version": "58.0.15", - "resolved": "https://registry.npmjs.org/expo-constants/-/expo-constants-58.0.15.tgz", - "integrity": "sha512-uokwzsYdjM/ZTEvQJCANhP4eJ4XGGR6keJy/Ac9HntLsQART8o+Y8nTVAXdMaRv6T5wuzJOliJmKUYJlDlamdg==", + "version": "58.0.16", + "resolved": "https://registry.npmjs.org/expo-constants/-/expo-constants-58.0.16.tgz", + "integrity": "sha512-sVETnE1ktBMclc2Ve3qNrHhOCCio75a9JdghnJYGbqblmKfrrfE+lO9K4g9kNtmslIBLTK9Dyty6PbubkXs3Yw==", "license": "MIT", "dependencies": { - "@expo/env": "~2.5.4", - "@expo/require-utils": "^58.0.5" + "@expo/env": "~2.6.0", + "@expo/require-utils": "^58.0.6" }, "peerDependencies": { "expo": "*", @@ -9616,14 +9607,14 @@ } }, "node_modules/expo-dev-client": { - "version": "58.0.18", - "resolved": "https://registry.npmjs.org/expo-dev-client/-/expo-dev-client-58.0.18.tgz", - "integrity": "sha512-1oTxhWiZAdFK1zXDWE047cjSw0S3xOATMso8fxXnjK9YvpaG1mGQpCMUVanXvXmiwmqDCHlVXW0myAKBSRzATQ==", + "version": "58.0.19", + "resolved": "https://registry.npmjs.org/expo-dev-client/-/expo-dev-client-58.0.19.tgz", + "integrity": "sha512-mtUFj8xq16uxbUUlUNb8FGCHYIcjCjCRXb1J2NTQKKUdLbRIdLIMEvX49pg4a/Tnwcy+qQTn4qI8ZLRe0AZBuQ==", "license": "MIT", "dependencies": { - "expo-dev-launcher": "~58.0.18", - "expo-dev-menu": "~58.0.12", - "expo-dev-menu-interface": "~58.0.1", + "expo-dev-launcher": "~58.0.19", + "expo-dev-menu": "~58.0.13", + "expo-dev-menu-interface": "~58.0.2", "expo-manifests": "~58.0.1", "expo-updates-interface": "~58.0.1" }, @@ -9632,13 +9623,13 @@ } }, "node_modules/expo-dev-launcher": { - "version": "58.0.18", - "resolved": "https://registry.npmjs.org/expo-dev-launcher/-/expo-dev-launcher-58.0.18.tgz", - "integrity": "sha512-WjcuYTGn86bwz0qCpPgi/EXHfo9Pj/Z3ynHTaX5h9yaOhe+3p20bm50XVrDIOC+GAbuke8LK8bglVkpkQrIOrg==", + "version": "58.0.19", + "resolved": "https://registry.npmjs.org/expo-dev-launcher/-/expo-dev-launcher-58.0.19.tgz", + "integrity": "sha512-TCjhLzRvOK3LPXAHwuyMV6zm03D53k2V4pqJxGG/tpo5CJglJOAX3NHwgge/RRahMCFij5C1kuCdAbf/eW7Rbw==", "license": "MIT", "dependencies": { "@expo/schema-utils": "^58.0.3", - "expo-dev-menu": "~58.0.12", + "expo-dev-menu": "~58.0.13", "expo-manifests": "~58.0.1" }, "peerDependencies": { @@ -9647,12 +9638,12 @@ } }, "node_modules/expo-dev-menu": { - "version": "58.0.12", - "resolved": "https://registry.npmjs.org/expo-dev-menu/-/expo-dev-menu-58.0.12.tgz", - "integrity": "sha512-TahJsEFlYEGXLXt3SY10VkhImSHtT2Xa14eAujtmM3NefCMGqgEYj0xTqcg8O2RB4ZrGameYslnR4GkkSxPASQ==", + "version": "58.0.13", + "resolved": "https://registry.npmjs.org/expo-dev-menu/-/expo-dev-menu-58.0.13.tgz", + "integrity": "sha512-7p1wBpNV8g7hV7GGj8/sllwQi07jJDneZDKZuGpjNL8MIYn7FfjnZbiJIVtP8vZZfb7WHKJFykCbAQCHIM36DQ==", "license": "MIT", "dependencies": { - "expo-dev-menu-interface": "~58.0.1" + "expo-dev-menu-interface": "~58.0.2" }, "peerDependencies": { "expo": "*", @@ -9660,9 +9651,9 @@ } }, "node_modules/expo-dev-menu-interface": { - "version": "58.0.1", - "resolved": "https://registry.npmjs.org/expo-dev-menu-interface/-/expo-dev-menu-interface-58.0.1.tgz", - "integrity": "sha512-XdjO3ZZhEq1dXm15GVtzQ0SXxSTPguJIDZib3Z8tAf2jLxfPUlQObgO/0hdnw7ssEBhTT2jQo2HAfnOSGUfj8w==", + "version": "58.0.2", + "resolved": "https://registry.npmjs.org/expo-dev-menu-interface/-/expo-dev-menu-interface-58.0.2.tgz", + "integrity": "sha512-9InDNbxNWz4cQN7dsvD2+GBd4IFfsnfkWJHMHxwpoa8U3crHxc6oeV5VV4Zgg8uC2IdNjWmhNqtgC2Vdnq/JVg==", "license": "MIT", "peerDependencies": { "expo": "*" @@ -9679,9 +9670,9 @@ } }, "node_modules/expo-font": { - "version": "58.0.11", - "resolved": "https://registry.npmjs.org/expo-font/-/expo-font-58.0.11.tgz", - "integrity": "sha512-6r7s6xk2L2orvum+x+TY1fzEcMtuCBRQTLgC/Su2uLzNPpT4L+E+S4IAGy8ZIjeVvwk2j2pj+HiZ23O7eh1PGQ==", + "version": "58.0.12", + "resolved": "https://registry.npmjs.org/expo-font/-/expo-font-58.0.12.tgz", + "integrity": "sha512-5m8TJrQ27DT1815P066HBtcHINgD8yuIqH4ca2ZyYwCsPa4QZ8UzOBDtrHnAMWMAlAgol+PGVj9aKeoYov70JA==", "license": "MIT", "peerDependencies": { "expo": "*", @@ -9701,9 +9692,9 @@ } }, "node_modules/expo-haptics": { - "version": "58.0.7", - "resolved": "https://registry.npmjs.org/expo-haptics/-/expo-haptics-58.0.7.tgz", - "integrity": "sha512-mAY3rbng6EuYysq9wnJKhKwYYlDjqnPYcS5OXe3zj4TlAaOFMl/EfiSOuAMawc2nsXCAnwJ5U0E11nq5zQO0mg==", + "version": "58.0.8", + "resolved": "https://registry.npmjs.org/expo-haptics/-/expo-haptics-58.0.8.tgz", + "integrity": "sha512-hxW9LoJQhAJ4hRlGx0DZ10ncs2NFqC/0nfKSnGy1PcpH6e8dJ4/oJO9eOcAG/vFg8k5oonbZkWL7RK9G3729Tg==", "license": "MIT", "peerDependencies": { "expo": "*" @@ -9716,9 +9707,9 @@ "license": "MIT" }, "node_modules/expo-keep-awake": { - "version": "58.0.3", - "resolved": "https://registry.npmjs.org/expo-keep-awake/-/expo-keep-awake-58.0.3.tgz", - "integrity": "sha512-wLRF+XeVsD/Rt/ZyX+A0mk1brdf8vefWizNAPzqV5eOCgkj23LCRZdN8gUi5X8UwyR8UJ7Y7Dzdz4YDGB/4c9Q==", + "version": "58.0.4", + "resolved": "https://registry.npmjs.org/expo-keep-awake/-/expo-keep-awake-58.0.4.tgz", + "integrity": "sha512-zXJJRBwMpWl2Q2Aj9rksMe1ncz6aphOPqYnG3rTkCFALZiM22xQCqpQqBloDcQ6g4RdGTy++lRnsDX7MWpK1qw==", "license": "MIT", "peerDependencies": { "expo": "*", @@ -9726,9 +9717,9 @@ } }, "node_modules/expo-linear-gradient": { - "version": "58.0.3", - "resolved": "https://registry.npmjs.org/expo-linear-gradient/-/expo-linear-gradient-58.0.3.tgz", - "integrity": "sha512-sh6LXrlaCtlDlZ1CPPFRJWd3bl9lAr8e0hT61PvzMmkxd5sd3POe9QuWtct58wpp7PgOH2okB3iw4tq3ICA4Sg==", + "version": "58.0.4", + "resolved": "https://registry.npmjs.org/expo-linear-gradient/-/expo-linear-gradient-58.0.4.tgz", + "integrity": "sha512-Zn6SilYGJPZ7jPZTksTS5i6Se7/rGjSurCEVFXLBAY+smdcLmbeiy8YV+svZDpAW0N2pFBi8LlgFzHTVshuRfg==", "license": "MIT", "peerDependencies": { "expo": "*", @@ -9737,12 +9728,12 @@ } }, "node_modules/expo-linking": { - "version": "58.0.16", - "resolved": "https://registry.npmjs.org/expo-linking/-/expo-linking-58.0.16.tgz", - "integrity": "sha512-yGz7w4nySktoOba7fS08DzzQXfEgLd60248Sz3u4m/Vzi8SKhC5xBXWmP4scGh0Ele89I350k/uvo2moVmmZJw==", + "version": "58.0.17", + "resolved": "https://registry.npmjs.org/expo-linking/-/expo-linking-58.0.17.tgz", + "integrity": "sha512-NFOt1L+FdW1uwjnwvvW+1oZ8j0W1IpYydKKuqny7tCiDVmHLxDYiYgXbyuHNAMLdQYjCBknq4910DmTM1x/XGw==", "license": "MIT", "dependencies": { - "expo-constants": "~58.0.15", + "expo-constants": "~58.0.16", "invariant": "^2.2.4" }, "peerDependencies": { @@ -9764,13 +9755,13 @@ } }, "node_modules/expo-modules-autolinking": { - "version": "58.0.17", - "resolved": "https://registry.npmjs.org/expo-modules-autolinking/-/expo-modules-autolinking-58.0.17.tgz", - "integrity": "sha512-mZRVuUCOsYK4+n9U8972bQBqXn21ncMd9BBx0/iepKH49tdMB8ADj3O9bb+huA80XckyorFLVfi6nJcImYtUyg==", + "version": "58.1.0", + "resolved": "https://registry.npmjs.org/expo-modules-autolinking/-/expo-modules-autolinking-58.1.0.tgz", + "integrity": "sha512-JAegkS+nC4LVEgKMHAnpWhUxs1BYHHaTJnncVW2EQION1bVz0y8/wEglAeGV+oq4BNS1V7s8zCMTZU0hMi28bA==", "license": "MIT", "dependencies": { "@expo/platforms": "^58.0.1", - "@expo/require-utils": "^58.0.5", + "@expo/require-utils": "^58.0.6", "@expo/spawn-async": "^1.8.0", "chalk": "^4.1.0", "commander": "^7.2.0" @@ -9780,9 +9771,9 @@ } }, "node_modules/expo-modules-cli": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/expo-modules-cli/-/expo-modules-cli-0.4.0.tgz", - "integrity": "sha512-NuvnnEFL+UMuQSjykg5ZhV0oxkOww8exJbZh+75pFF7DJhE3kQtfnOd4Yq4G6PrkVnqbeuKsqf6zX8V9p65ZYw==", + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/expo-modules-cli/-/expo-modules-cli-0.5.0.tgz", + "integrity": "sha512-uBNKkp5NIMo2bmJiQL36EBLNMeX+2GEIxpz10BioT0EGQTsPcgrV0ypfGy31GtPoFOObyc9ibHhklsOtpzhblw==", "license": "MIT", "dependencies": { "@babel/parser": "^7.20.0", @@ -9796,13 +9787,13 @@ } }, "node_modules/expo-modules-core": { - "version": "58.0.30", - "resolved": "https://registry.npmjs.org/expo-modules-core/-/expo-modules-core-58.0.30.tgz", - "integrity": "sha512-uIyFJHouaiHwIoDjWSjb1Zg5LMGmkUs7CEp0rzpXvC+SStP/sr+dcjclUYD1ImmngMYuxRcs9soHEuWbcZWr/w==", + "version": "58.1.0", + "resolved": "https://registry.npmjs.org/expo-modules-core/-/expo-modules-core-58.1.0.tgz", + "integrity": "sha512-eXHOPyxHkDyTxUWnKEatC+Hx4tLoPWCPd5pCynAU4WkaBvAG/l5t/wu5jXiE5eh2CRr2NU4iAQePX2zUfNEVhA==", "license": "MIT", "dependencies": { - "expo-modules-jsi": "~58.0.22", - "expo-modules-macros": "0.29.0", + "expo-modules-jsi": "~58.0.23", + "expo-modules-macros": "0.33.0", "invariant": "^2.2.4" }, "peerDependencies": { @@ -9817,24 +9808,24 @@ } }, "node_modules/expo-modules-jsi": { - "version": "58.0.22", - "resolved": "https://registry.npmjs.org/expo-modules-jsi/-/expo-modules-jsi-58.0.22.tgz", - "integrity": "sha512-sWyOUEsRHZdobItrerWxVR32uiABSijoVJGoIW1dubfZuNNaRG+Hgis4u+92Gle1gEdH2Z4qKqm0JxSZCzk9AA==", + "version": "58.0.23", + "resolved": "https://registry.npmjs.org/expo-modules-jsi/-/expo-modules-jsi-58.0.23.tgz", + "integrity": "sha512-ex3CnT8KLubsPjUG0RpEL5VgmpnWxf7Ouc+WXEr8jEbIwqcULEWtA2tfhGZwjg6jS3zeNwjygF1w8QSstP7JfQ==", "license": "MIT", "peerDependencies": { "react-native": "*" } }, "node_modules/expo-modules-macros": { - "version": "0.29.0", - "resolved": "https://registry.npmjs.org/expo-modules-macros/-/expo-modules-macros-0.29.0.tgz", - "integrity": "sha512-kpkJHrFnHMXfUfvFkDuKRXXqi+CUIIhJ6G8v/4rC09VjmXcdQ30imoY1oNDVEho6tPbJFV0Ux21sZ9wK0XYajQ==", + "version": "0.33.0", + "resolved": "https://registry.npmjs.org/expo-modules-macros/-/expo-modules-macros-0.33.0.tgz", + "integrity": "sha512-ddrT2jbYPYmiHmzcYOixRemFUUK9qQEb5pOBWgoFoW0gj3sGld1CZX0GwblUXeZMyEX65S9vc1bEhIAGVDRA9w==", "license": "MIT", "optionalDependencies": { - "@expo/modules-macros-linux-arm64": "0.29.0", - "@expo/modules-macros-linux-x64": "0.29.0", - "@expo/modules-macros-win32-arm64": "0.29.0", - "@expo/modules-macros-win32-x64": "0.29.0" + "@expo/modules-macros-linux-arm64": "0.33.0", + "@expo/modules-macros-linux-x64": "0.33.0", + "@expo/modules-macros-win32-arm64": "0.33.0", + "@expo/modules-macros-win32-x64": "0.33.0" } }, "node_modules/expo-navigation-bar": { @@ -9852,9 +9843,9 @@ } }, "node_modules/expo-router": { - "version": "58.0.30", - "resolved": "https://registry.npmjs.org/expo-router/-/expo-router-58.0.30.tgz", - "integrity": "sha512-GzwSjiDCJeSHDiH71jeCsncMCEksRyDhGweNcVjGfW5C7JMYtROUroMBudPGtrOpKkHUQ0lampFsb8jidT4lbg==", + "version": "58.0.31", + "resolved": "https://registry.npmjs.org/expo-router/-/expo-router-58.0.31.tgz", + "integrity": "sha512-ERucCp882Yo3wDUZ/MKwW22UF5MtQxDFIQzWWnFXlqe9gfOnWN/smBcNNhQiVW5je3nX5OOd4o5RlTCojvCIrA==", "license": "MIT", "dependencies": { "@expo/log-box": "^58.0.15", @@ -9866,8 +9857,8 @@ "@react-native/normalize-colors": "0.88.1", "client-only": "^0.0.1", "expo-glass-effect": "^58.0.5", - "expo-server": "^58.0.6", - "expo-status-bar": "^58.0.4", + "expo-server": "^58.1.0", + "expo-status-bar": "^58.0.5", "nanoid": "^3.3.18", "react-fast-compare": "^3.2.2", "react-is": "^19.1.0", @@ -9880,12 +9871,12 @@ "peerDependencies": { "@expo/log-box": "^58.0.15", "@expo/metro-runtime": "^58.0.17", - "@expo/ui": "^58.0.27", + "@expo/ui": "^58.0.28", "@testing-library/react-native": ">= 14.0.0", "expo": "*", - "expo-constants": "^58.0.15", - "expo-linking": "^58.0.16", - "expo-symbols": "^58.0.4", + "expo-constants": "^58.0.16", + "expo-linking": "^58.0.17", + "expo-symbols": "^58.0.5", "react": "*", "react-dom": "*", "react-native": "*", @@ -9938,22 +9929,22 @@ } }, "node_modules/expo-server": { - "version": "58.0.6", - "resolved": "https://registry.npmjs.org/expo-server/-/expo-server-58.0.6.tgz", - "integrity": "sha512-6DBlSZwxk3J0y1j2s4XebAWNiwGaMp32NcWX7b2kJC2+EFf1g+pCcVmx8ylawt2tyLmbDHswm4MHOfrd4bqfvA==", + "version": "58.1.0", + "resolved": "https://registry.npmjs.org/expo-server/-/expo-server-58.1.0.tgz", + "integrity": "sha512-jo7I6uHnP5OQYKx3+7lbpdVVnOEwFj2ryDkQdauUQSwgh2HuMUkiFXWUIVe01ts6DLRoff5U0Tv+uNb3CMq/kw==", "license": "MIT", "engines": { "node": "^22.13.0 || ^24.3.0 || ^26.0.0 || >=27.0.0" } }, "node_modules/expo-splash-screen": { - "version": "58.0.13", - "resolved": "https://registry.npmjs.org/expo-splash-screen/-/expo-splash-screen-58.0.13.tgz", - "integrity": "sha512-RsvDF13tU1wQIy2blzmdbZoWpPWNTYks2A0CUq2AENR7i7u8elSSEfQOdh5TeC0lrrFVbiWfPj2JiM7y/m08Ig==", + "version": "58.0.14", + "resolved": "https://registry.npmjs.org/expo-splash-screen/-/expo-splash-screen-58.0.14.tgz", + "integrity": "sha512-Z05ihk8LoBX3GeUd1EiV8yG9hd1Pw9wa5AaiAFQx4c81laMVo0LX6x+0o5fXFKnBA9VjlMe5CYWQqUtZf3BCIw==", "license": "MIT", "dependencies": { - "@expo/config-plugins": "~58.0.12", - "@expo/image-utils": "^0.12.6", + "@expo/config-plugins": "~58.0.13", + "@expo/image-utils": "^0.12.7", "xml2js": "0.6.0" }, "peerDependencies": { @@ -9961,9 +9952,9 @@ } }, "node_modules/expo-status-bar": { - "version": "58.0.4", - "resolved": "https://registry.npmjs.org/expo-status-bar/-/expo-status-bar-58.0.4.tgz", - "integrity": "sha512-e6JJHziSSNb1v1VSzmDrAPf6GFoPRdVOIDrTCcK3bHfbJEAZGZ3YZXfqlorZtUFDT0z6NcjaZf0mPWifJZcqew==", + "version": "58.0.5", + "resolved": "https://registry.npmjs.org/expo-status-bar/-/expo-status-bar-58.0.5.tgz", + "integrity": "sha512-Lq1h7QpNY2FY7+Dyrn15atrFZs1Yd4IfMfhwyyWb3TqWc+vwtYZH54W9VhhjqXtgitXe+RVAX7YZoCekjbLmug==", "license": "MIT", "peerDependencies": { "expo": "*", @@ -10433,19 +10424,11 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/getenv": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/getenv/-/getenv-2.0.0.tgz", - "integrity": "sha512-VilgtJj/ALgGY77fiLam5iD336eSWi96Q15JSAG1zi8NRBysm3LXKdGnHb4m5cuyxvOLQQKWpBZAT6ni4FI2iQ==", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, "node_modules/glob": { "version": "13.0.6", "resolved": "https://registry.npmjs.org/glob/-/glob-13.0.6.tgz", "integrity": "sha512-Wjlyrolmm8uDpm/ogGyXZXb1Z+Ca2B8NbJwqBVg0axK9GbBeoS7yGV6vjXnYdGm6X53iehEuxxbyiKp8QmN4Vw==", + "dev": true, "license": "BlueOak-1.0.0", "dependencies": { "minimatch": "^10.2.2", @@ -10476,6 +10459,7 @@ "version": "4.0.4", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz", "integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==", + "dev": true, "license": "MIT", "engines": { "node": "18 || 20 || >=22" @@ -10485,6 +10469,7 @@ "version": "5.0.12", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.12.tgz", "integrity": "sha512-YovQ3rzhaLMIrDjNDMkNS01tea93qhEhG5xy8f6+R0l+dw3Ki+5sCoIoI942iuLZTHWogWktgwVDhU09iNEimQ==", + "dev": true, "license": "MIT", "dependencies": { "balanced-match": "^4.0.2" @@ -10497,6 +10482,7 @@ "version": "10.2.6", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.6.tgz", "integrity": "sha512-vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A==", + "dev": true, "license": "BlueOak-1.0.0", "dependencies": { "brace-expansion": "^5.0.8" @@ -17053,6 +17039,7 @@ "version": "7.1.3", "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.3.tgz", "integrity": "sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==", + "dev": true, "license": "BlueOak-1.0.0", "engines": { "node": ">=16 || 14 >=14.17" @@ -17217,9 +17204,9 @@ } }, "node_modules/noxcturnal": { - "version": "0.1.11", - "resolved": "https://registry.npmjs.org/noxcturnal/-/noxcturnal-0.1.11.tgz", - "integrity": "sha512-nKgZ4mQpWz5Nry5KRqRcyCv37Uc24VH9UkNsIJJ58sC7ubyXtaiP4zfjOAsGiTVZIJ6rcfkmbYS0P4plVhdHEQ==", + "version": "0.1.12", + "resolved": "https://registry.npmjs.org/noxcturnal/-/noxcturnal-0.1.12.tgz", + "integrity": "sha512-trkrCAq5t1ynqEbGdHGbGo1ItUye1uelApLhmU0/asW5NrfBRsMQDXBOpUTIfpcX7SdAvVjii7cEPIrfIrEVgg==", "license": "MIT", "dependencies": { "@babel/code-frame": "^7.20.0", @@ -17229,14 +17216,14 @@ "node": ">=18" }, "optionalDependencies": { - "@noxcturnal/noxcturnal-darwin-arm64": "0.1.11", - "@noxcturnal/noxcturnal-darwin-x64": "0.1.11", - "@noxcturnal/noxcturnal-linux-arm64-gnu": "0.1.11", - "@noxcturnal/noxcturnal-linux-arm64-musl": "0.1.11", - "@noxcturnal/noxcturnal-linux-x64-gnu": "0.1.11", - "@noxcturnal/noxcturnal-linux-x64-musl": "0.1.11", - "@noxcturnal/noxcturnal-win32-arm64-msvc": "0.1.11", - "@noxcturnal/noxcturnal-win32-x64-msvc": "0.1.11" + "@noxcturnal/noxcturnal-darwin-arm64": "0.1.12", + "@noxcturnal/noxcturnal-darwin-x64": "0.1.12", + "@noxcturnal/noxcturnal-linux-arm64-gnu": "0.1.12", + "@noxcturnal/noxcturnal-linux-arm64-musl": "0.1.12", + "@noxcturnal/noxcturnal-linux-x64-gnu": "0.1.12", + "@noxcturnal/noxcturnal-linux-x64-musl": "0.1.12", + "@noxcturnal/noxcturnal-win32-arm64-msvc": "0.1.12", + "@noxcturnal/noxcturnal-win32-x64-msvc": "0.1.12" } }, "node_modules/npm-package-arg": { @@ -17865,6 +17852,7 @@ "version": "2.0.2", "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-2.0.2.tgz", "integrity": "sha512-3O/iVVsJAPsOnpwWIeD+d6z/7PmqApyQePUtCndjatj/9I5LylHvt5qluFaBT3I5h3r1ejfR056c+FCv+NnNXg==", + "dev": true, "license": "BlueOak-1.0.0", "dependencies": { "lru-cache": "^11.0.0", @@ -17881,6 +17869,7 @@ "version": "11.2.6", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.2.6.tgz", "integrity": "sha512-ESL2CrkS/2wTPfuend7Zhkzo2u0daGJ/A2VucJOgQ/C48S/zB8MMeMHSGKYpXhIjbPxfuezITkaBH1wqv00DDQ==", + "dev": true, "license": "BlueOak-1.0.0", "engines": { "node": "20 || >=22" diff --git a/apps/collection/package.json b/apps/collection/package.json index 2c7cd8ea7..ef05307aa 100644 --- a/apps/collection/package.json +++ b/apps/collection/package.json @@ -38,19 +38,19 @@ "@react-native-menu/menu": "^2.0.0", "@react-native-picker/picker": "2.11.4", "@types/react": "~19.3.0", - "expo": "~58.0.23", + "expo": "~58.0.24", "expo-build-properties": "~58.0.12", "expo-constants": "~58.0.14", - "expo-dev-client": "~58.0.18", + "expo-dev-client": "~58.0.19", "expo-font": "~58.0.11", - "expo-haptics": "~58.0.7", - "expo-linear-gradient": "~58.0.3", - "expo-linking": "~58.0.16", + "expo-haptics": "~58.0.8", + "expo-linear-gradient": "~58.0.4", + "expo-linking": "~58.0.17", "expo-navigation-bar": "~58.0.4", - "expo-router": "~58.0.30", + "expo-router": "~58.0.31", "expo-screen-orientation": "~58.0.4", - "expo-splash-screen": "~58.0.13", - "expo-status-bar": "~58.0.4", + "expo-splash-screen": "~58.0.14", + "expo-status-bar": "~58.0.5", "javascript-time-ago": "^2.6.4", "jotai": "^3.0.1", "qrcode": "^1.5.4", diff --git a/scripts/prepare-pages-reports.mjs b/scripts/prepare-pages-reports.mjs index df1173ff0..166fb0419 100644 --- a/scripts/prepare-pages-reports.mjs +++ b/scripts/prepare-pages-reports.mjs @@ -53,7 +53,7 @@ export async function preparePagesReports(directory, revision = "") { ServerVitest resultsCoverage— LearnNode resultsLink-plugin coveragePlaywright results WebsiteVitest resultsCoveragePlaywright results -${extensions.map((section) => `${escape(section.label)}Test resultsCoverage${section.browser ? `Integration results` : "Release checks run separately"}`).join("\n")} +${extensions.map((section) => `${escape(section.label)}Test results${section.required.includes("coverage/index.html") ? `Coverage` : "—"}${section.browser ? `Integration results` : "Release checks run separately"}`).join("\n")}

Build revision

`, ); } diff --git a/scripts/prepare-pages-reports.test.mjs b/scripts/prepare-pages-reports.test.mjs index 82ab48fb6..e7a119916 100644 --- a/scripts/prepare-pages-reports.test.mjs +++ b/scripts/prepare-pages-reports.test.mjs @@ -43,6 +43,10 @@ test("indexes all three apps with relative links and preserves their nested repo `/lovat/${path}`, ); } + assert.ok(html.includes('href="contracts/"')); + assert.ok(!html.includes('href="contracts/coverage/"')); + assert.ok(html.includes('href="collection/coverage/"')); + assert.ok(html.includes('href="dashboard/coverage/"')); assert.equal( await readFile(join(root, "server/index.html"), "utf8"), "synthetic server/index.html", From f2b572d2e8827e0f8a9182b37c4bd290c4c09954 Mon Sep 17 00:00:00 2001 From: jackshim415 Date: Thu, 12 Nov 2026 08:06:26 -0800 Subject: [PATCH 4/5] fix(contracts): preserve pipeline failures and use the approved Dashboard SDK Refs: LVT-272, LVT-273 --- .github/workflows/ci.yml | 5 ++++- docs/testing/fixtures/README.md | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9e8ac33ba..bdcc2008b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,6 +8,9 @@ on: permissions: contents: read pull-requests: read +defaults: + run: + shell: bash jobs: changes: @@ -270,7 +273,7 @@ jobs: npm run test:integration -- test/crossAppContract.integration.test.ts 2>&1 | tee "$LOVAT_CONTRACT_OUTPUT_DIR/server.log" - uses: subosito/flutter-action@v2 with: - flutter-version: 3.35.4 + flutter-version: 3.41.0 channel: stable - name: Decode the actual Server response in Dashboard id: dashboard diff --git a/docs/testing/fixtures/README.md b/docs/testing/fixtures/README.md index b3bad7434..98c8311fa 100644 --- a/docs/testing/fixtures/README.md +++ b/docs/testing/fixtures/README.md @@ -43,7 +43,7 @@ REDIS_URL=redis://127.0.0.1:6379/15 LOVAT_DB_TEST=1 \ ``` The script locates the pinned Node binaries under the usual nvm installation -(or `LOVAT_NODE_ROOT`); Flutter 3.35.4 must be on PATH. It refuses other service +(or `LOVAT_NODE_ROOT`); Flutter 3.41.0 must be on PATH. It refuses other service hosts/database names and never loads a private `.env`. It retains stage logs, serialized payloads, the actual Server response and HTML under `contract-report/`. The root `check-all.sh` includes this check, so it now needs these disposable From 538b863addd7d9d1bdba52ef2f7fd96d2b7dd7d5 Mon Sep 17 00:00:00 2001 From: jackshim415 Date: Thu, 12 Nov 2026 16:25:36 -0800 Subject: [PATCH 5/5] build(ci): align current Collection SDK patch compatibility Refs: LVT-273 --- apps/collection/package-lock.json | 24 ++++++++++++------------ apps/collection/package.json | 4 ++-- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/apps/collection/package-lock.json b/apps/collection/package-lock.json index 8313d820e..d0a76d744 100644 --- a/apps/collection/package-lock.json +++ b/apps/collection/package-lock.json @@ -15,10 +15,10 @@ "@react-native-menu/menu": "^2.0.0", "@react-native-picker/picker": "2.11.4", "@types/react": "~19.3.0", - "expo": "~58.0.24", + "expo": "~58.0.25", "expo-build-properties": "~58.0.12", "expo-constants": "~58.0.14", - "expo-dev-client": "~58.0.19", + "expo-dev-client": "~58.0.20", "expo-font": "~58.0.11", "expo-haptics": "~58.0.8", "expo-linear-gradient": "~58.0.4", @@ -9484,9 +9484,9 @@ } }, "node_modules/expo": { - "version": "58.0.24", - "resolved": "https://registry.npmjs.org/expo/-/expo-58.0.24.tgz", - "integrity": "sha512-EPgijeqjnK+eaoA9VzJvvodmKBxEcfNlRBxyZr5s1dmvjgF13p3HfEr6eRjsTtnXdz/GlKn2uffTM1uHZeaSVQ==", + "version": "58.0.25", + "resolved": "https://registry.npmjs.org/expo/-/expo-58.0.25.tgz", + "integrity": "sha512-Ih7pQYPS+2ZFS5APNtgOUp2AK/M+zfILK9Z5/wh6PoLn6XF3dh+nlcvugotytVzf8jX5/NBMcB7xJT+97oaNvw==", "license": "MIT", "dependencies": { "@babel/runtime": "^7.20.0", @@ -9607,12 +9607,12 @@ } }, "node_modules/expo-dev-client": { - "version": "58.0.19", - "resolved": "https://registry.npmjs.org/expo-dev-client/-/expo-dev-client-58.0.19.tgz", - "integrity": "sha512-mtUFj8xq16uxbUUlUNb8FGCHYIcjCjCRXb1J2NTQKKUdLbRIdLIMEvX49pg4a/Tnwcy+qQTn4qI8ZLRe0AZBuQ==", + "version": "58.0.20", + "resolved": "https://registry.npmjs.org/expo-dev-client/-/expo-dev-client-58.0.20.tgz", + "integrity": "sha512-Wp1q6KfvfwQN72M4lGW5KNnnZtRO3XdgcHstX33NlUE5cV3tw3LGHX6hgHu0xN19zKBK9Wb6yiN7JU7mGApMwQ==", "license": "MIT", "dependencies": { - "expo-dev-launcher": "~58.0.19", + "expo-dev-launcher": "~58.0.20", "expo-dev-menu": "~58.0.13", "expo-dev-menu-interface": "~58.0.2", "expo-manifests": "~58.0.1", @@ -9623,9 +9623,9 @@ } }, "node_modules/expo-dev-launcher": { - "version": "58.0.19", - "resolved": "https://registry.npmjs.org/expo-dev-launcher/-/expo-dev-launcher-58.0.19.tgz", - "integrity": "sha512-TCjhLzRvOK3LPXAHwuyMV6zm03D53k2V4pqJxGG/tpo5CJglJOAX3NHwgge/RRahMCFij5C1kuCdAbf/eW7Rbw==", + "version": "58.0.20", + "resolved": "https://registry.npmjs.org/expo-dev-launcher/-/expo-dev-launcher-58.0.20.tgz", + "integrity": "sha512-tm0K5l40cxYXIxYzcEuAKYnVx6T9o7aAb0gQdfooz4WYPgqf5dHfu5obdWwAvCU6j40hWSHEWaPGfPkoO9O7hQ==", "license": "MIT", "dependencies": { "@expo/schema-utils": "^58.0.3", diff --git a/apps/collection/package.json b/apps/collection/package.json index ef05307aa..844490d8d 100644 --- a/apps/collection/package.json +++ b/apps/collection/package.json @@ -38,10 +38,10 @@ "@react-native-menu/menu": "^2.0.0", "@react-native-picker/picker": "2.11.4", "@types/react": "~19.3.0", - "expo": "~58.0.24", + "expo": "~58.0.25", "expo-build-properties": "~58.0.12", "expo-constants": "~58.0.14", - "expo-dev-client": "~58.0.19", + "expo-dev-client": "~58.0.20", "expo-font": "~58.0.11", "expo-haptics": "~58.0.8", "expo-linear-gradient": "~58.0.4",