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.

538 B
Raw Blame
/** Native walkers count directories, WSL find counts files; derive both and the delete guard from the SKILL.md depth. */
export const SKILL_FILE_MAX_DEPTH = 5
export const PLUGIN_SKILL_FILE_MAX_DEPTH = 10

export function skillFileMaxDepth(sourceKind: 'home' | 'repo' | 'bundled' | 'plugin'): number {
  return sourceKind === 'plugin' ? PLUGIN_SKILL_FILE_MAX_DEPTH : SKILL_FILE_MAX_DEPTH
}

export function skillDirectoryMaxDepth(sourceKind: 'home' | 'repo' | 'bundled' | 'plugin'): number {
  return skillFileMaxDepth(sourceKind) - 1
}