Skip to content

Linger is An Open-Source Personal Agent That Runs Fully on Your PC. We aim to break Big Tech’s grip on AI by bringing powerful local AI to everyday computers through efficient model–harness co-design, so everyone can run their own.

525 B
Raw Blame
import { queryOptions } from "@tanstack/react-query";

import type { TeamHubClient } from "@/features/teamhub/teamhub-client";

export function localComputersQueryKey(tenantId: string) {
  return ["teamhub", tenantId, "local-computers"] as const;
}

export function localComputersQueryOptions(
  client: TeamHubClient,
  tenantId: string,
) {
  return queryOptions({
    queryFn: () => client.listTenantLocalComputers(tenantId),
    queryKey: localComputersQueryKey(tenantId),
    retry: false,
    staleTime: 2_000,
  });
}