pub fn resolve_linked_worktree(
command: GuardedCommand,
target: EffectiveTarget,
) -> Option<String>Expand description
What: Decide from the measured worktree kind: the rejection text, or nothing to let the command through for now. Why: The main worktree and a place without a worktree reject at once; a linked worktree and an allowlisted tool cache pass this step, and a linked worktree is then judged by its dirtiness.
In TS you’d write (pseudocode):
function resolveLinkedWorktree(command: GuardedCommand, target: EffectiveTarget): string | undefined;