Skip to content

armgit / orca

Public Imported from GitHub
0

Orca is the place for working with a fleet of agents (e.g. Grok Bot, Claude Code). Run any coding agent with your own subscription. Available on desktop, mobile and remote runtime.

550 B
Raw Blame
let nextRevision = 1
const revisionByHostId = new Map<string, number>()

export function getHostCredentialWriteRevision(hostId: string): number {
  return revisionByHostId.get(hostId) ?? 0
}

export function markHostCredentialWrite(hostId: string): void {
  revisionByHostId.set(hostId, nextRevision)
  nextRevision += 1
}

export function clearHostCredentialWriteRevision(hostId: string): void {
  revisionByHostId.delete(hostId)
}

export function resetHostCredentialWriteRevisionsForTests(): void {
  nextRevision = 1
  revisionByHostId.clear()
}