Skip to main content

Crate ag_forge

Crate ag_forge 

Source
Expand description

Forge review-request adapters, normalized types, and remote detection.

Structs§

CreateReviewRequestInput
Input required to create a review request on one forge.
ForgeRemote
Normalized repository remote metadata for one supported forge.
RealReviewRequestClient
Production ReviewRequestClient that routes to forge-specific adapters.
ReviewCheckFailure
One failed check or commit status reported for a review-request head.
ReviewComment
One inline review comment emitted by a reviewer on a forge review thread.
ReviewCommentSnapshot
Full review-comments payload captured for one review request.
ReviewCommentThread
One review thread anchored to a line of the review request diff.
ReviewRequestAttention
Conditions on one open review request that may need follow-up work.
ReviewRequestMetadata
Current remote review-request title and description.
ReviewRequestMetadataFieldUpdate
One review-request field update guarded by the remote value used during semantic reconciliation.
ReviewRequestSummary
Normalized remote summary for one linked review request.
UpdateReviewRequestInput
Input required to conditionally update reconciled review-request metadata.

Enums§

ForgeKind
Shared forge family enum reused by persistence and forge adapters.
ReviewCommentAnchorSide
Diff side used to anchor one inline review-thread comment.
ReviewRequestError
Review-request failures normalized for actionable UI messaging.
ReviewRequestState
Normalized remote lifecycle state for one linked review request.

Constants§

AGENTTY_REVIEW_REPLY_MARKER_PREFIX
Prefix for the per-operation identity marker Agentty appends to review thread replies.

Traits§

ReviewRequestClient
Async boundary used by app orchestration for forge review requests.

Functions§

detect_remote
Detects one supported forge remote from repo_url.
is_gitlab_host
Returns whether host looks like one GitLab instance hostname.
remote_repository_path
Returns the host/path that names the repository behind the git remote repo_url, on any host: without scheme, username[:password]@ userinfo, SSH port, trailing slashes, or trailing .git, and with the host in lowercase. The port of another scheme stays, since it names another server.

Type Aliases§

ForgeFuture
Boxed async result used by review-request trait methods.