browser-debugger-cli
Version:
DevTools telemetry in your terminal. For humans and agents. Direct WebSocket to Chrome's debugging port.
34 lines • 1.15 kB
TypeScript
/**
* Shell quote damage detection utilities.
*
* Detects when shell quote handling has corrupted selectors or scripts,
* providing actionable suggestions for recovery.
*/
export interface ShellDamageResult {
damaged: boolean;
type?: 'attribute-selector' | 'unquoted-argument';
details?: string;
suggestion?: string;
}
/**
* Checks if a selector contains attribute syntax.
*
* @param selector - CSS selector to check
* @returns True if selector contains attribute syntax
*/
export declare function hasAttributeSelector(selector: string): boolean;
/**
* Detects shell quote damage in CSS selectors.
*
* @param selector - The selector as received by the command
* @returns Detection result with details and suggestions
*/
export declare function detectSelectorQuoteDamage(selector: string): ShellDamageResult;
/**
* Detects shell quote damage in JavaScript expressions.
*
* @param script - The script as received by the command
* @returns Detection result with details and suggestions
*/
export declare function detectScriptQuoteDamage(script: string): ShellDamageResult;
//# sourceMappingURL=shellDetection.d.ts.map