/** * Evidence extraction from tool arguments. Walks the JSON tree once, picks out * path/command/URL keys, records scalar argument parameters, and normalizes * paths for glob matching. Values are never logged. * @module dsh-sensitive-guard/policy/evidence */ import type { PolicyInput } from '../contracts.js'; import { type ParsedArgv } from './argv.js'; export interface PolicyEvidence { tool: string; agentId?: string; cwd: string; platform: NodeJS.Platform; /** Argument keys (dot paths for nested scalars) to stringified values. */ params: Map; /** Normalized absolute/relative/realpath candidates. */ paths: string[]; /** Raw command strings found in command-like arguments. */ commands: string[]; /** Parsed commands, including recursively parsed shell payloads. */ argvs: ParsedArgv[]; /** Absolute URLs found in URL-like arguments and shell tokens. */ urls: string[]; } /** * Collect all policy evidence for one tool call. The walk is bounded by node * count and depth so pathological argument trees stay cheap. */ export declare function collectEvidence(input: PolicyInput, platform: NodeJS.Platform): PolicyEvidence; //# sourceMappingURL=evidence.d.ts.map