Skip to main content

travelagent_forge_github/
lib.rs

1//! GitHub forge backend for travelagent.
2//!
3//! Implements [`travelagent_core::forge::ForgeBackend`] against the
4//! GitHub REST + GraphQL APIs. Handles both github.com and GitHub
5//! Enterprise; authentication resolves from `GITHUB_TOKEN` / `GH_TOKEN`
6//! / `gh auth token` in that order.
7//!
8//! The public entry point is [`GitHubForge`], constructed via
9//! `GitHubForge::new()` (which resolves the token up-front) and
10//! passed to the TUI or MCP crates via the
11//! [`travelagent_core::forge::ForgeBackend`] trait.
12
13#![cfg_attr(not(test), forbid(unsafe_code))]
14
15mod auth;
16mod client;
17#[allow(dead_code)] // Fields exist for serde deserialization, not direct access
18mod types;
19
20pub use client::GitHubForge;