Skip to main content

Module quote_context

Module quote_context 

Source
Expand description

Quote context extraction for bash commands.

Provides three views of a command string, matching the semantics of telos-agent’s QuoteContext in utils/bash/treeSitterAnalysis.ts:

  • fully_unquoted: all quoted content removed
  • with_double_quotes: single-quoted / ANSI-C / heredoc content removed, double-quoted content preserved but delimiters stripped
  • unquoted_keep_quote_chars: quoted content removed, but quote delimiters kept

These views are used to decide whether $()/${} / dangerous patterns are inside a context where they would actually expand at runtime.

Structs§

QuoteContext