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.

644 B
Raw Blame
import type { AiVaultListArgs } from './ai-vault-types'
import { requestedAiVaultSessionDepth } from './ai-vault-session-depth'

/** The local cache and coordinator entry for one scope and scan depth. */
export function aiVaultLocalScanKey(args?: AiVaultListArgs): string {
  return JSON.stringify({
    key: aiVaultLocalScanScopeKey(args),
    depth: requestedAiVaultSessionDepth(args)
  })
}

export function aiVaultLocalScanScopeKey(args?: AiVaultListArgs): string {
  return JSON.stringify({
    scopePaths: [...new Set(args?.scopePaths ?? [])].sort(),
    includeAntigravityIdeSessions: args?.includeAntigravityIdeSessions === true
  })
}