mi6_core/context/
mod.rs

1//! Runtime context enrichment.
2//!
3//! This module provides utilities for enriching events with contextual data:
4//! - [`git`]: Git branch information
5//! - [`github`]: GitHub issue/PR context extraction
6//! - [`process`]: Process state utilities (checking if processes are alive)
7
8pub mod git;
9pub mod github;
10pub mod process;
11
12pub use git::{
13    GitBranchInfo, get_branch_info, get_current_branch, get_github_repo, get_local_git_dir,
14    get_worktree_root, is_branch_changing_command, parse_branch_info,
15    parse_github_repo_from_remote_url,
16};
17#[expect(
18    deprecated,
19    reason = "re-exporting deprecated type alias for backwards compatibility"
20)]
21pub use github::SessionContextUpdate;
22pub use github::{GitContextUpdate, extract_context, split_chained_commands};
23pub use process::{ClaudeProcessInfo, find_claude_process, get_parent_pid, is_process_alive};