pub fn resolve_linked_worktree(
command: GuardedCommand,
target: EffectiveTarget,
) -> Option<&'static str>Expand description
What: Decide from the measured worktree kind: the rejection text, or nothing to let the command through. Why: A linked worktree and an allowlisted tool cache are the two places where these commands may run.
In TS you’d write (pseudocode):
function resolveLinkedWorktree(command: GuardedCommand, target: EffectiveTarget): string | undefined;