From 58d5d2d8f166376f73ba833d57beb32d80851c8e Mon Sep 17 00:00:00 2001 From: xz-dev Date: Thu, 6 Aug 2026 23:51:11 -0300 Subject: [PATCH] fix(antigravity): add missing antigravityProjectPersistence.ts module The quota-strategy engine (quotaStrategies.ts) imports from antigravityProjectPersistence.ts, but only antigravityProjectPersist.ts existed in the tree. Add the missing module with the expected preferAntigravityConnectionsWithStoredProject() helper and re-export the existing persistDiscoveredAntigravityProjectId(). Co-authored-by: diegosouzapw --- .../services/antigravityProjectPersistence.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/open-sse/services/antigravityProjectPersistence.ts b/open-sse/services/antigravityProjectPersistence.ts index f34445fe00..1421a8f480 100644 --- a/open-sse/services/antigravityProjectPersistence.ts +++ b/open-sse/services/antigravityProjectPersistence.ts @@ -1,9 +1,24 @@ /** * Re-export from `antigravityProjectPersist.ts` plus a connection-preference helper. + * + * The persistence layer for a runtime-discovered Antigravity projectId lives in + * the sibling file `antigravityProjectPersist.ts` (named by its core function). + * This module adds `preferAntigravityConnectionsWithStoredProject()`, used by the + * quota-strategy engine to give priority to connections whose projectId has + * already been discovered and persisted. */ + import { persistDiscoveredAntigravityProjectId } from "./antigravityProjectPersist.ts"; + export { persistDiscoveredAntigravityProjectId }; +/** + * Return only the Antigravity connections that already have a stored projectId. + * + * A connection whose projectId has been discovered and persisted can be used + * immediately; a connection without one would need to go through the Code Assist + * bootstrap first, which is handled by the calling strategy's fallback path. + */ export function preferAntigravityConnectionsWithStoredProject( connections: Array> ): Array> {