/**
 * Identifies where a query originated from within the application.
 * Used for analytics, retry logic, and prompt customization.
 */
export type QuerySource =
  | 'repl_main_thread'
  | `repl_main_thread:outputStyle:${string}`
  | 'agent:default'
  | 'agent:builtin'
  | 'agent:custom'
  | `agent:builtin:${string}`
  | 'auto_mode_critique'
  | 'auto_mode'
  | 'auto_dream'
  | 'away_summary'
  | 'bash_extract_prefix'
  | 'chrome_mcp'
  | 'compact'
  | 'extract_memories'
  | 'feedback'
  | 'generate_session_title'
  | 'hook_agent'
  | 'hook_prompt'
  | 'insights'
  | 'magic_docs'
  | 'mcp_datetime_parse'
  | 'memdir_relevance'
  | 'model_validation'
  | 'permission_explainer'
  | 'prompt_suggestion'
  | 'rename_generate_name'
  | 'sdk'
  | 'session_memory'
  | 'session_search'
  | 'side_question'
  | 'skill_improvement_apply'
  | 'speculation'
  | 'agent_creation'
  | 'agent_summary'
  | 'teleport_generate_title'
  | 'tool_use_summary_generation'
  | 'web_fetch_apply'
  | 'web_search_tool'
