/** * Shared command classification utilities for scoring. * * Used by both live scorers (outcome.ts) and offline scorers (outcome-match.ts) * to consistently identify build, test, and other command types. */ /** * Check if a command string is a build/typecheck command. * Handles compound commands (e.g. `pnpm build && pnpm test`) by checking each segment. */ export declare function isBuildCommand(command: string): boolean; /** * Check if a command string is a test command. */ export declare function isTestCommand(command: string): boolean; /** * Extract exit code from an `execute_command` result. * Only trusts explicit exitCode/code fields — no heuristic fallbacks. */ export declare function getExitCode(result: unknown): number | null; /** * Determine if a tool call result indicates success (exit code 0, no explicit error). * Works with both structured result objects and string results. */ export declare function isSuccessResult(result: unknown, error?: unknown): boolean; /** * Match a file path from tool output against an expected path. * Supports exact match and suffix match (e.g. "src/foo.ts" matches "/abs/path/src/foo.ts"). */ export declare function matchFilePath(actual: string, expected: string): boolean; //# sourceMappingURL=classify-command.d.ts.map