Skip to content

Interface: IReviewerProcessor

Makaio Framework


Makaio Framework / contracts / IReviewerProcessor

Defined in: ../../../packages/contracts/src/capabilities/review/types.ts:160

Reviewer processor capability provider.

Processors handle stateless transformation from raw source data to ReviewFinding arrays. They must be pure transformation logic with no I/O dependencies.

readonly botAuthors: readonly string[]

Defined in: ../../../packages/contracts/src/capabilities/review/types.ts:172

Bot usernames that produce content for this reviewer


readonly capabilityId: "reviewer-processor"

Defined in: ../../../packages/contracts/src/capabilities/review/types.ts:162

Must be ‘reviewer-processor’


readonly displayName: string

Defined in: ../../../packages/contracts/src/capability/types.ts:11

Human-readable name for display in UI

ICapabilityProvider.displayName


readonly id: string

Defined in: ../../../packages/contracts/src/capability/types.ts:9

Unique identifier for this provider instance

ICapabilityProvider.id


readonly optional priority?: number

Defined in: ../../../packages/contracts/src/capabilities/review/types.ts:168

Priority for processor resolution (higher wins, default 0)


readonly processorKey: string

Defined in: ../../../packages/contracts/src/capabilities/review/types.ts:166

Unique processor key (e.g., ‘makaio/coderabbit’)


readonly optional providerKey?: string

Defined in: ../../../packages/contracts/src/capability/types.ts:17

Stable provider identity used for joins across registries.

Unlike id, this should remain stable across runtime re-registration.

ICapabilityProvider.providerKey


readonly reviewer: string

Defined in: ../../../packages/contracts/src/capabilities/review/types.ts:164

Reviewer family this processor handles


readonly optional supersedes?: readonly string[]

Defined in: ../../../packages/contracts/src/capabilities/review/types.ts:170

Processor keys this one supersedes (diagnostic metadata)

optional extractAgentPrompt(body): string | undefined

Defined in: ../../../packages/contracts/src/capabilities/review/types.ts:208

Extract AI-optimized agent prompt from a comment body.

string

Raw comment body text

string | undefined

Agent-optimized prompt string or undefined if not extractable


optional parseRateLimit(body): { lastUpdatedAt: number; limit: number; remaining: number; resetsAt: number; sourceId: string; } | null

Defined in: ../../../packages/contracts/src/capabilities/review/types.ts:202

Parse rate limit information from a body string.

string

Raw text body potentially containing rate limit information

Parsed rate limit or null if none found

{ lastUpdatedAt: number; limit: number; remaining: number; resetsAt: number; sourceId: string; }

lastUpdatedAt: number

Epoch ms when this was last updated

limit: number

Total limit

remaining: number

Remaining review triggers

resetsAt: number

Epoch ms when limit resets

sourceId: string

Source that this rate limit applies to


null


optional processCliOutput(params): object[]

Defined in: ../../../packages/contracts/src/capabilities/review/types.ts:196

Process CLI output into findings.

ProcessCliOutputParams

Parameters containing source ID, target, and raw CLI output

Array of review findings extracted from the CLI output


processComments(params): object[]

Defined in: ../../../packages/contracts/src/capabilities/review/types.ts:178

Process inline review comments into findings.

ProcessCommentsParams

Parameters containing source ID, target, and raw comments

Array of review findings extracted from the comments


optional processIssueComments(params): object[]

Defined in: ../../../packages/contracts/src/capabilities/review/types.ts:190

Process issue-level comments into findings.

ProcessIssueCommentsParams

Parameters containing source ID, target, and raw issue comments

Array of review findings extracted from the issue comments


processReviewBody(params): object[]

Defined in: ../../../packages/contracts/src/capabilities/review/types.ts:184

Process review body content into findings.

ProcessReviewBodyParams

Parameters containing source ID, target, and raw reviews

Array of review findings extracted from the review bodies


optional validate(): Promise<{ error?: string; valid: boolean; }>

Defined in: ../../../packages/contracts/src/capability/types.ts:22

Optional validation method to check provider configuration/credentials.

Promise<{ error?: string; valid: boolean; }>

Validation result with optional error message

ICapabilityProvider.validate