/** * 120-second TTL cache for workspace lookups. * * Avoids hitting Convex on every workspace command. * Invalidated automatically on TTL expiry. */ export type WorkspaceLookup = { found: false; reason?: string; message?: string; claimId?: string; claimStatus?: string; expiresAt?: number; } | { found: true; workspaceId: string; workerHost: string; status: string; expiresAt: number; errorMessage?: string; claimId?: string; }; /** * Get workspace info for an agent + bounty pair. * Returns cached result if fresh, otherwise fetches from Convex. */ export declare function getWorkspaceForAgent(agentId: string, bountyId: string): Promise; /** * Invalidate cache for an agent + bounty pair. */ export declare function invalidateWorkspaceCache(agentId: string, bountyId: string): void; /** * Invalidate all cached entries for an agent. */ export declare function invalidateAllForAgent(agentId: string): void; export declare function getWorkspaceCacheSize(): number; //# sourceMappingURL=cache.d.ts.map