Skip to main content

Module facade

Module facade 

Source
Expand description

Platform-agnostic facade functions for FFI and CLI integration.

This module provides high-level functions that abstract away the complexity of credential resolution, API client creation, and data transformation. Each platform (CLI, iOS, MCP) implements TokenProvider and calls these functions with their own credential source.

Functions§

add_custom_repo
Adds a custom repository.
analyze_issue
Analyzes a GitHub issue and generates triage suggestions.
analyze_pr
Analyzes PR details with AI to generate a review.
apply_triage_labels
Applies AI-suggested labels and milestone to an issue.
discover_repos
Discovers repositories matching a filter via GitHub Search API.
fetch_issue_for_triage
Fetches an issue for triage analysis.
fetch_issues
Fetches “good first issue” issues from curated repositories.
fetch_pr_for_review
Reviews a pull request and generates AI feedback.
format_issue
Formats a GitHub issue with AI assistance.
generate_release_notes
Generate AI-curated release notes from PRs between git tags.
label_pr
Auto-label a pull request based on conventional commit prefix and file paths.
list_curated_repos
Fetches curated repositories with platform-agnostic API.
list_models
Lists available models from a provider API with caching.
list_repos
Lists repositories with optional filtering.
post_issue
Posts a formatted issue to GitHub.
post_pr_review
Posts a PR review to GitHub.
post_release_notes
Post release notes to GitHub.
post_triage_comment
Posts a triage comment to GitHub.
remove_custom_repo
Removes a custom repository.
validate_model
Validates if a model exists for a provider.