//! Azure DevOps integration (Phase 2).
//!
//! Phase 2 wires a real `reqwest` HTTP session with PAT-based Basic auth
//! and implements two endpoints against `api-version=7.1`:
//!
//! * `GET _apis/connectionData` — auth probe + identity echo
//!   ([`AzureDevOpsClient::test_connection`])
//! * `GET _apis/projects` — list projects (single page, up to 100)
//!   ([`AzureDevOpsClient::get_projects`])
//!
//! Phase 6 will add work-item fetching on top of this session.

pub mod client;
pub mod pr_fetcher;

pub use client::{
    extract_work_item_refs, feed_azdo_users, fetch_referenced_work_items, AzdoComment,
    AzdoConnectionInfo, AzdoError, AzdoField, AzdoIteration, AzdoProject, AzdoUser, AzdoWorkItem,
    AzdoWorkItemExtended, AzdoWorkItemType, AzureDevOpsClient, WiqlResult, WorkItem, WorkItemRef,
};
pub use pr_fetcher::{
    extract_pr_ids, get_existing_pr_numbers, upsert_pr, upsert_pr_reviewer, AdoPrFetcher,
    AdoPrReviewer, AdoPullRequest,
};
