Skip to content

armgit / rea

Public Imported from GitHub
0

Reverse engineer anything with agents, from app behavior down to native binaries.

338 B
Raw Blame
export interface GitHubApiBudget {
  requests: number;
  startedAt: number;
  limitMs: number;
}

export type GitHubApiRequest = (
  method: string,
  endpoint: string,
  budget: GitHubApiBudget,
) => Promise<unknown>;

export function createGhApiRequest(options?: {
  env?: NodeJS.ProcessEnv;
  now?: () => number;
}): GitHubApiRequest;