Skip to main content

Module auth_patterns

Module auth_patterns 

Source
Expand description

Per-provider stdout/stderr pattern matchers for the pre-launch OAuth flow. The auth login subprocess of each CLI provider emits an OAuth URL (or device code) to stdout/stderr in a slightly different shape. This module knows how to extract them.

See docs/specs/SPEC_PRE_LAUNCH_OAUTH_FLOW_2026_05_14.md §4.

Enums§

AuthPatternMatch
What a pattern matcher extracted from a single line of provider output.

Functions§

match_line
Try every pattern for the given provider against a single line of captured output. Returns the FIRST match found — patterns are listed by descending specificity in patterns_for(provider_id).