@effect-agent/pr-review 0.1.0-beta.20 → 0.1.0-beta.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +82 -26
- package/dist/action.d.mts +12 -6
- package/dist/action.mjs +17 -27
- package/dist/action.mjs.map +1 -1
- package/dist/cli.mjs +2 -2
- package/dist/{fan-out-CQFA-o0v.d.mts → fan-out-n-00ppWr.d.mts} +308 -223
- package/dist/{github-DnenG3be.mjs → github-BgtP7Rdv.mjs} +652 -196
- package/dist/github-BgtP7Rdv.mjs.map +1 -0
- package/dist/index.d.mts +27 -54
- package/dist/index.mjs +15 -3
- package/dist/index.mjs.map +1 -1
- package/dist/{providers-BE83_Tfo.mjs → providers-BguZK4B_.mjs} +408 -134
- package/dist/providers-BguZK4B_.mjs.map +1 -0
- package/dist/testing.d.mts +10 -47
- package/dist/testing.mjs +29 -55
- package/dist/testing.mjs.map +1 -1
- package/package.json +2 -2
- package/src/action.ts +40 -39
- package/src/index.ts +1 -0
- package/src/internal/anchors.ts +20 -0
- package/src/internal/coverage.ts +628 -134
- package/src/internal/factory.ts +12 -9
- package/src/internal/fan-out-scripted.ts +61 -94
- package/src/internal/fan-out.ts +560 -255
- package/src/internal/profiles.ts +12 -0
- package/src/internal/progress.ts +1 -1
- package/src/internal/render.ts +51 -25
- package/src/internal/review-agent.ts +74 -25
- package/src/internal/review-state.ts +7 -5
- package/src/internal/review-units.ts +326 -32
- package/src/internal/run.ts +48 -41
- package/dist/github-DnenG3be.mjs.map +0 -1
- package/dist/providers-BE83_Tfo.mjs.map +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as MAX_REPORTED_UNASSIGNED_EVIDENCE_SHARDS, $n as ReviewFinding, $t as ReviewMode, A as MAX_REVIEW_CHILDREN, An as anchorViolation, Ar as commentableLines, At as parseGitHubSubmittedAt, B as fanOutHandlersLayer, Bn as FindingSeverity, Bt as retireStaleReviews, C as FileReviewer, Cn as ReviewCoverage, Cr as normalizeRepoRelativePath, Ct as PublishedReview, D as MAX_CHILD_CONCERNS, Dn as assessReviewCoverage, Dr as MAX_REVIEW_CONTENT_CHARS, Dt as gitHubPullRequestSourceLayer, E as ListReviewUnitsQuery, En as ReviewShape, Er as ChangedPath, Et as gitHubPriorReviewsLayer, F as ReviewWorkPhase, Fn as FileDiffView, Ft as ReviewRetirementHost, G as fileReviewerInstructions, Gn as MAX_PATCH_CHARS, Gt as estimateReviewEffort, H as fanOutReviewInstructions, Hn as ListChangedFilesQuery, Ht as ReviewCommentDraft, I as assessmentSettlesSuggestionExactly, In as FileReviewEvidenceChunk, It as ReviewRetirementInput, J as makeFileReviewerInstructions, Jn as PullRequestReviewer, Jt as renderAgentPrompt, K as makeFanOutReviewInstructions, Kn as MAX_WALKTHROUGH_ENTRIES, Kt as planPublication, L as confirmedFindingForPublication, Ln as FileSlice, Lt as ReviewRetirementReport, M as ReviewCandidate, Mn as ChangedFilesView, Mr as isReviewableFile, Mt as RetirableReviewComment, N as ReviewCandidateId, Nn as CodeReview, Nr as parsePatch, Nt as ReviewRetirementDecision, O as MAX_CHILD_FINDINGS, On as assessReviewPipeline, Or as PatchLine, Ot as gitHubReviewPublisherLayer, P as ReviewWorkPerspective, Pn as FileDiffQuery, Pr as renderReviewContent, Pt as ReviewRetirementFailure, Q as MAX_MERGED_FINDINGS, Qn as ReviewConcern, Qt as ReviewHeadComparison, R as defaultFanOutPolicy, Rn as FileSliceQuery, Rt as decideReviewRetirement, S as FileReviewWorkRejected, Sn as ReviewAssurance, Sr as ReviewInputViolation, St as PriorReviews, T as ListReviewUnits, Tn as ReviewPipelineAssessment, Tr as ChangedFileStatus, Tt as fingerprintUnchanged, U as fileReviewDelegation, Un as MAX_CONCERNS, Ut as ReviewEvent, V as fanOutHandlersLayerFor, Vn as ListChangedFiles, Vt as AGENT_PROMPT_PREAMBLE, W as fileReviewPolicy, Wn as MAX_FINDINGS, Wt as ReviewPublicationPlan, X as reviewCandidateSubjectKey, Xn as ReadFile, Xt as MAX_REVIEW_STATE_MARKER_CHARS, Y as mapFileReviewChildFailure, Yn as REVIEW_TOOL_RESULT_MAX_BYTES, Yt as GitCommitSha, Z as MAX_FILE_EVIDENCE_CHARS, Zn as ReadFileDiff, Zt as ReviewExecutionContext, _ as FileReviewRequest, _n as unavailableReviewStateAuthenticatorLayer, _r as MAX_CHANGED_FILES, _t as rankAndDedupeFindings, a as FanOutCoordinatorToolkit, an as ReviewStateMarker, ar as ReviewVerdict, at as ReviewEvidenceShard, b as FileReviewUnitFailed, bn as FailedReviewPass, br as PullRequestSource, bt as GitHubReviewTarget, c as FanOutReviewSuite, cn as StoredReviewFinding, cr as defaultReviewPolicy, ct as ReviewRiskCategory, d as FanOutSuiteOptions, dn as fromStoredConcern, dr as listChangedFilesHandler, dt as ReviewUnitPlan, en as ReviewScopeMode, er as ReviewGuidance, et as MAX_REVIEW_UNITS, f as FileReviewBrief, fn as fromStoredFinding, fr as makeReviewInstructions, ft as UNIT_CHANGED_LINE_BUDGET, g as FileReviewReport, gn as toStoredFinding, gr as reviewInstructions, gt as planReviewUnits, h as FileReviewFailure, hn as toStoredConcern, hr as resolveGuidance, ht as findingAnchorInUnitEvidence, i as DiscoveredConcern, in as ReviewStateAuthenticator, ir as ReviewToolkitLayer, it as ReviewDiscoveryPerspective, j as MAX_UNIT_CANDIDATES, jn as ChangedFileSummary, jr as hasReviewableContent, jt as RetirableReview, k as MAX_FILE_REVIEW_TOOL_CALLS, kn as collectUnitFileSummaries, kr as annotatePatch, kt as gitHubReviewRetirementHostLayer, l as FanOutReviewToolkit, ln as buildProfileMission, lr as fileDiffView, lt as ReviewUnit, m as FileReviewEvidence, mn as selectedPullRequestSourceLayer, mr as readFileHandler, mt as classifyReviewRisks, n as ConcernCandidate, nn as ReviewState, nr as ReviewMission, nt as MAX_UNIT_FILES, o as FanOutCoordinatorToolkitLayer, on as ReviewStateMarkerTooLarge, or as WalkthroughEntry, ot as ReviewEvidenceShardId, p as FileReviewDelegationFailure, pn as selectReviewRange, pr as readFileDiffHandler, pt as UNIT_EVIDENCE_CHAR_BUDGET, q as makeFanOutReviewSuite, qn as MAX_WALKTHROUGH_SUMMARY_CHARS, qt as planWalkthrough, r as DelegateFileReview, rn as ReviewStateAuthenticationFailure, rr as ReviewToolkit, rt as ReviewDiscoveryPass, s as FanOutInstructionOptions, sn as StoredReviewConcern, sr as clampMaxFindings, st as ReviewPassId, t as CandidateAssessment, tn as ReviewSelection, tr as ReviewInstructionOptions, tt as MAX_UNIT_EVIDENCE_SHARDS, u as FanOutReviewer, un as computeProfileFingerprint, ur as fileReviewEvidenceChunks, ut as ReviewUnitId, v as FileReviewToolkit, vn as validateReviewState, vr as MAX_FILE_CHARS, vt as DEFAULT_GITHUB_REVIEW_AUTHOR_LOGIN, w as FindingCandidate, wn as ReviewInputCoverage, wr as ChangedFile, wt as ReviewPublisher, x as FileReviewUnitResult, xn as FailedReviewUnit, xr as PullRequestSourceFailure, xt as PriorReviewLookupFailure, y as FileReviewToolkitLayer, yn as webCryptoReviewStateAuthenticatorLayer, yr as PullRequestMetadata, yt as GitHubApiFailure, z as defaultFileReviewerPolicy, zn as FindingCategory, zt as hasReviewMetadataMarker } from "./fan-out-n-00ppWr.mjs";
|
|
2
2
|
import { Config, Context, Effect, FileSystem, Layer, LogLevel, Logger, Option, Schema } from "effect";
|
|
3
3
|
import { Agent, AgentPolicyInput, IdGenerator, RuntimeBinding, UsageBudgetLimits, UsageTotals } from "effect-agent";
|
|
4
4
|
import { LanguageModel, Model, Tool, Toolkit } from "effect/unstable/ai";
|
|
@@ -72,6 +72,10 @@ declare const ReviewRunOutcome_base: Schema.Class<ReviewRunOutcome, Schema.Struc
|
|
|
72
72
|
readonly activeConcerns: Schema.$Array<typeof ReviewConcern>;
|
|
73
73
|
/** Host-owned structural coverage used by the Actions check conclusion. */
|
|
74
74
|
readonly coverage: typeof ReviewCoverage;
|
|
75
|
+
/** Exact path/evidence assignment, distinct from semantic review work. */
|
|
76
|
+
readonly inputCoverage: typeof ReviewInputCoverage;
|
|
77
|
+
/** Settlement of configured discovery, specialist, and verification work. */
|
|
78
|
+
readonly assurance: typeof ReviewAssurance;
|
|
75
79
|
readonly plan: typeof ReviewPublicationPlan;
|
|
76
80
|
readonly published: Schema.optionalKey<typeof PublishedReview>;
|
|
77
81
|
readonly turns: Schema.Int;
|
|
@@ -138,7 +142,7 @@ declare const enforceFindingsBound: (review: CodeReview, maxFindings: number) =>
|
|
|
138
142
|
* pass scripted models, hosts pass live provider bindings, and the model
|
|
139
143
|
* Layer's requirements stay visible in this Effect's `R`.
|
|
140
144
|
*/
|
|
141
|
-
declare const executeReview: <Instructions, Tools extends Record<string, Tool.Any>, Provider, ModelProvides, ModelRequires>(binding: RuntimeBinding<typeof ReviewMission, typeof CodeReview, Instructions, Tools, Provider, ModelProvides, ModelRequires>, options: ExecuteReviewOptions) => Effect.Effect<ReviewRunOutcome, import("effect-agent").AgentApprovalDenied | import("effect-agent").AgentApprovalPending | import("effect-agent").AgentChildPending | import("effect-agent").AgentInputError | import("effect-agent").AgentOutputError | import("effect-agent").AgentPolicyError | import("effect/unstable/ai/AiError").AiError | import("effect-agent").BudgetAdapterError | import("effect-agent").BudgetExceeded | import("effect-agent").ContextOverflowError | GitHubApiFailure | import("effect-agent").ModelProtocolError | PullRequestSourceFailure | Schema.SchemaError | ((Instructions & string extends (infer T) ? T extends Instructions & string ? T extends ((input: ReviewMission) => infer Result) ? Result : T : never : never) extends (infer T_1) ? T_1 extends (Instructions & string extends (infer T) ? T extends Instructions & string ? T extends ((input: ReviewMission) => infer Result) ? Result : T : never : never) ? T_1 extends Effect.Effect<infer _Success, infer Error, infer _Services> ? Error : never : never : never) | ((Instructions & Iterable<import("effect/unstable/ai/Prompt").MessageEncoded> extends (infer T_2) ? T_2 extends Instructions & Iterable<import("effect/unstable/ai/Prompt").MessageEncoded> ? T_2 extends ((input: ReviewMission) => infer Result) ? Result : T_2 : never : never) extends (infer T_3) ? T_3 extends (Instructions & Iterable<import("effect/unstable/ai/Prompt").MessageEncoded> extends (infer T_2) ? T_2 extends Instructions & Iterable<import("effect/unstable/ai/Prompt").MessageEncoded> ? T_2 extends ((input: ReviewMission) => infer Result) ? Result : T_2 : never : never) ? T_3 extends Effect.Effect<infer _Success, infer Error, infer _Services> ? Error : never : never : never) | ((Instructions & import("effect/unstable/ai/Prompt").Prompt extends (infer T_4) ? T_4 extends Instructions & import("effect/unstable/ai/Prompt").Prompt ? T_4 extends ((input: ReviewMission) => infer Result) ? Result : T_4 : never : never) extends (infer T_5) ? T_5 extends (Instructions & import("effect/unstable/ai/Prompt").Prompt extends (infer T_4) ? T_4 extends Instructions & import("effect/unstable/ai/Prompt").Prompt ? T_4 extends ((input: ReviewMission) => infer Result) ? Result : T_4 : never : never) ? T_5 extends Effect.Effect<infer _Success, infer Error, infer _Services> ? Error : never : never : never) | ((Instructions & ((input: ReviewMission) => import("effect-agent").InstructionResult<NoInfer<(Instructions extends ((input: ReviewMission) => infer Result_1) ? Result_1 : Instructions) extends Effect.Effect<infer _Success_1, infer Error_1, infer _Requirements> ? Error_1 : never>, NoInfer<(Instructions extends ((input: ReviewMission) => infer Result_1) ? Result_1 : Instructions) extends Effect.Effect<infer _Success_2, infer _Error, infer Requirements> ? Requirements : never>>) extends (infer T_6) ? T_6 extends Instructions & ((input: ReviewMission) => import("effect-agent").InstructionResult<NoInfer<(Instructions extends ((input: ReviewMission) => infer Result_1) ? Result_1 : Instructions) extends Effect.Effect<infer _Success_1, infer Error_1, infer _Requirements> ? Error_1 : never>, NoInfer<(Instructions extends ((input: ReviewMission) => infer Result_1) ? Result_1 : Instructions) extends Effect.Effect<infer _Success_2, infer _Error, infer Requirements> ? Requirements : never>>) ? T_6 extends ((input: ReviewMission) => infer Result) ? Result : T_6 : never : never) extends (infer T_7) ? T_7 extends (Instructions & ((input: ReviewMission) => import("effect-agent").InstructionResult<NoInfer<(Instructions extends ((input: ReviewMission) => infer Result_1) ? Result_1 : Instructions) extends Effect.Effect<infer _Success_1, infer Error_1, infer _Requirements> ? Error_1 : never>, NoInfer<(Instructions extends ((input: ReviewMission) => infer Result_1) ? Result_1 : Instructions) extends Effect.Effect<infer _Success_2, infer _Error, infer Requirements> ? Requirements : never>>) extends (infer T_6) ? T_6 extends Instructions & ((input: ReviewMission) => import("effect-agent").InstructionResult<NoInfer<(Instructions extends ((input: ReviewMission) => infer Result_1) ? Result_1 : Instructions) extends Effect.Effect<infer _Success_1, infer Error_1, infer _Requirements> ? Error_1 : never>, NoInfer<(Instructions extends ((input: ReviewMission) => infer Result_1) ? Result_1 : Instructions) extends Effect.Effect<infer _Success_2, infer _Error, infer Requirements> ? Requirements : never>>) ? T_6 extends ((input: ReviewMission) => infer Result) ? Result : T_6 : never : never) ? T_7 extends Effect.Effect<infer _Success, infer Error, infer _Services> ? Error : never : never : never) | import("effect-agent").Agent.RunDispositionFailure<RuntimeBinding<typeof ReviewMission, typeof CodeReview, Instructions, Tools, Provider, ModelProvides, ModelRequires, (Instructions extends ((input: ReviewMission) => infer Result_1) ? Result_1 : Instructions) extends Effect.Effect<infer _Success_1, infer Error_1, infer _Requirements> ? Error_1 : never, (Instructions extends ((input: ReviewMission) => infer Result_1) ? Result_1 : Instructions) extends Effect.Effect<infer _Success_2, infer _Error, infer Requirements> ? Requirements : never, undefined>>, import("effect-agent").IdGenerator | PullRequestSource | ReviewPublisher | import("effect/Scope").Scope | Exclude<ModelRequires, import("effect-agent").EngineProvidedToolServices> | Exclude<Tool.HandlersFor<Tools>, import("effect-agent").EngineProvidedToolServices> | Exclude<Tool.HandlerServices<Tools[keyof Tools]>, import("effect-agent").EngineProvidedToolServices> | ((Instructions extends ((input: ReviewMission) => infer Result_1) ? Result_1 : Instructions) extends Effect.Effect<infer _Success_2, infer _Error, infer Requirements> ? Requirements : never)>;
|
|
145
|
+
declare const executeReview: <Instructions, Tools extends Record<string, Tool.Any>, Provider, ModelProvides, ModelRequires>(binding: RuntimeBinding<typeof ReviewMission, typeof CodeReview, Instructions, Tools, Provider, ModelProvides, ModelRequires>, options: ExecuteReviewOptions) => Effect.Effect<ReviewRunOutcome, import("effect-agent").AgentApprovalDenied | import("effect-agent").AgentApprovalPending | import("effect-agent").AgentChildPending | import("effect-agent").AgentInputError | import("effect-agent").AgentOutputError | import("effect-agent").AgentPolicyError | import("effect-agent").AgentToolAuthorizationDenied | import("effect/unstable/ai/AiError").AiError | import("effect-agent").BudgetAdapterError | import("effect-agent").BudgetExceeded | import("effect-agent").ContextOverflowError | GitHubApiFailure | import("effect-agent").ModelProtocolError | PullRequestSourceFailure | Schema.SchemaError | ((Instructions & string extends (infer T) ? T extends Instructions & string ? T extends ((input: ReviewMission) => infer Result) ? Result : T : never : never) extends (infer T_1) ? T_1 extends (Instructions & string extends (infer T) ? T extends Instructions & string ? T extends ((input: ReviewMission) => infer Result) ? Result : T : never : never) ? T_1 extends Effect.Effect<infer _Success, infer Error, infer _Services> ? Error : never : never : never) | ((Instructions & Iterable<import("effect/unstable/ai/Prompt").MessageEncoded> extends (infer T_2) ? T_2 extends Instructions & Iterable<import("effect/unstable/ai/Prompt").MessageEncoded> ? T_2 extends ((input: ReviewMission) => infer Result) ? Result : T_2 : never : never) extends (infer T_3) ? T_3 extends (Instructions & Iterable<import("effect/unstable/ai/Prompt").MessageEncoded> extends (infer T_2) ? T_2 extends Instructions & Iterable<import("effect/unstable/ai/Prompt").MessageEncoded> ? T_2 extends ((input: ReviewMission) => infer Result) ? Result : T_2 : never : never) ? T_3 extends Effect.Effect<infer _Success, infer Error, infer _Services> ? Error : never : never : never) | ((Instructions & import("effect/unstable/ai/Prompt").Prompt extends (infer T_4) ? T_4 extends Instructions & import("effect/unstable/ai/Prompt").Prompt ? T_4 extends ((input: ReviewMission) => infer Result) ? Result : T_4 : never : never) extends (infer T_5) ? T_5 extends (Instructions & import("effect/unstable/ai/Prompt").Prompt extends (infer T_4) ? T_4 extends Instructions & import("effect/unstable/ai/Prompt").Prompt ? T_4 extends ((input: ReviewMission) => infer Result) ? Result : T_4 : never : never) ? T_5 extends Effect.Effect<infer _Success, infer Error, infer _Services> ? Error : never : never : never) | ((Instructions & ((input: ReviewMission) => import("effect-agent").InstructionResult<NoInfer<(Instructions extends ((input: ReviewMission) => infer Result_1) ? Result_1 : Instructions) extends Effect.Effect<infer _Success_1, infer Error_1, infer _Requirements> ? Error_1 : never>, NoInfer<(Instructions extends ((input: ReviewMission) => infer Result_1) ? Result_1 : Instructions) extends Effect.Effect<infer _Success_2, infer _Error, infer Requirements> ? Requirements : never>>) extends (infer T_6) ? T_6 extends Instructions & ((input: ReviewMission) => import("effect-agent").InstructionResult<NoInfer<(Instructions extends ((input: ReviewMission) => infer Result_1) ? Result_1 : Instructions) extends Effect.Effect<infer _Success_1, infer Error_1, infer _Requirements> ? Error_1 : never>, NoInfer<(Instructions extends ((input: ReviewMission) => infer Result_1) ? Result_1 : Instructions) extends Effect.Effect<infer _Success_2, infer _Error, infer Requirements> ? Requirements : never>>) ? T_6 extends ((input: ReviewMission) => infer Result) ? Result : T_6 : never : never) extends (infer T_7) ? T_7 extends (Instructions & ((input: ReviewMission) => import("effect-agent").InstructionResult<NoInfer<(Instructions extends ((input: ReviewMission) => infer Result_1) ? Result_1 : Instructions) extends Effect.Effect<infer _Success_1, infer Error_1, infer _Requirements> ? Error_1 : never>, NoInfer<(Instructions extends ((input: ReviewMission) => infer Result_1) ? Result_1 : Instructions) extends Effect.Effect<infer _Success_2, infer _Error, infer Requirements> ? Requirements : never>>) extends (infer T_6) ? T_6 extends Instructions & ((input: ReviewMission) => import("effect-agent").InstructionResult<NoInfer<(Instructions extends ((input: ReviewMission) => infer Result_1) ? Result_1 : Instructions) extends Effect.Effect<infer _Success_1, infer Error_1, infer _Requirements> ? Error_1 : never>, NoInfer<(Instructions extends ((input: ReviewMission) => infer Result_1) ? Result_1 : Instructions) extends Effect.Effect<infer _Success_2, infer _Error, infer Requirements> ? Requirements : never>>) ? T_6 extends ((input: ReviewMission) => infer Result) ? Result : T_6 : never : never) ? T_7 extends Effect.Effect<infer _Success, infer Error, infer _Services> ? Error : never : never : never) | import("effect-agent").Agent.RunDispositionFailure<RuntimeBinding<typeof ReviewMission, typeof CodeReview, Instructions, Tools, Provider, ModelProvides, ModelRequires, (Instructions extends ((input: ReviewMission) => infer Result_1) ? Result_1 : Instructions) extends Effect.Effect<infer _Success_1, infer Error_1, infer _Requirements> ? Error_1 : never, (Instructions extends ((input: ReviewMission) => infer Result_1) ? Result_1 : Instructions) extends Effect.Effect<infer _Success_2, infer _Error, infer Requirements> ? Requirements : never, undefined>>, import("effect-agent").IdGenerator | PullRequestSource | ReviewPublisher | import("effect/Scope").Scope | Exclude<ModelRequires, import("effect-agent").EngineProvidedToolServices> | Exclude<Tool.HandlersFor<Tools>, import("effect-agent").EngineProvidedToolServices> | Exclude<Tool.HandlerServices<Tools[keyof Tools]>, import("effect-agent").EngineProvidedToolServices> | ((Instructions extends ((input: ReviewMission) => infer Result_1) ? Result_1 : Instructions) extends Effect.Effect<infer _Success_2, infer _Error, infer Requirements> ? Requirements : never)>;
|
|
142
146
|
//#endregion
|
|
143
147
|
//#region src/internal/factory.d.ts
|
|
144
148
|
/** Options shared by both reviewer shapes. */
|
|
@@ -230,7 +234,7 @@ declare const make: <Provider, ModelProvides, ModelRequires, const Extra extends
|
|
|
230
234
|
}, PullRequestSource>, ...Extra]>>, undefined>;
|
|
231
235
|
model: Model.Model<Provider, ModelProvides | LanguageModel.LanguageModel, ModelRequires>;
|
|
232
236
|
}>;
|
|
233
|
-
readonly run: (runOptions?: RunReviewOptions) => Effect.Effect<ReviewRunOutcome, import("effect-agent").AgentApprovalDenied | import("effect-agent").AgentApprovalPending | import("effect-agent").AgentChildPending | import("effect-agent").AgentInputError | import("effect-agent").AgentOutputError | import("effect-agent").AgentPolicyError | import("effect/unstable/ai/AiError").AiError | import("effect-agent").BudgetAdapterError | import("effect-agent").BudgetExceeded | import("effect-agent").ContextOverflowError | GitHubApiFailure | import("effect-agent").ModelProtocolError | PullRequestSourceFailure | import("effect/Schema").SchemaError | Agent.RunDispositionFailure<import("effect-agent").RuntimeBinding<typeof ReviewMission, typeof CodeReview, (mission: ReviewMission) => string, Toolkit.ToolsByName<[Tool.Tool<"list_changed_files", {
|
|
237
|
+
readonly run: (runOptions?: RunReviewOptions) => Effect.Effect<ReviewRunOutcome, import("effect-agent").AgentApprovalDenied | import("effect-agent").AgentApprovalPending | import("effect-agent").AgentChildPending | import("effect-agent").AgentInputError | import("effect-agent").AgentOutputError | import("effect-agent").AgentPolicyError | import("effect-agent").AgentToolAuthorizationDenied | import("effect/unstable/ai/AiError").AiError | import("effect-agent").BudgetAdapterError | import("effect-agent").BudgetExceeded | import("effect-agent").ContextOverflowError | GitHubApiFailure | import("effect-agent").ModelProtocolError | PullRequestSourceFailure | import("effect/Schema").SchemaError | Agent.RunDispositionFailure<import("effect-agent").RuntimeBinding<typeof ReviewMission, typeof CodeReview, (mission: ReviewMission) => string, Toolkit.ToolsByName<[Tool.Tool<"list_changed_files", {
|
|
234
238
|
readonly parameters: typeof ListChangedFilesQuery;
|
|
235
239
|
readonly success: typeof ChangedFilesView;
|
|
236
240
|
readonly failure: typeof PullRequestSourceFailure;
|
|
@@ -347,7 +351,7 @@ declare const make: <Provider, ModelProvides, ModelRequires, const Extra extends
|
|
|
347
351
|
readonly failure: import("effect/Schema").Union<readonly [typeof PullRequestSourceFailure, typeof ReviewInputViolation]>;
|
|
348
352
|
readonly failureMode: "return";
|
|
349
353
|
}, PullRequestSource>;
|
|
350
|
-
}>>, import("effect/Scope").Scope>> | Effect.Effect<ReviewRunOutcome, import("effect-agent").AgentApprovalDenied | import("effect-agent").AgentApprovalPending | import("effect-agent").AgentChildPending | import("effect-agent").AgentInputError | import("effect-agent").AgentOutputError | import("effect-agent").AgentPolicyError | import("effect/unstable/ai/AiError").AiError | import("effect-agent").BudgetAdapterError | import("effect-agent").BudgetExceeded | import("effect-agent").ContextOverflowError | GitHubApiFailure | import("effect-agent").ModelProtocolError | PullRequestSourceFailure | import("effect/Schema").SchemaError | Agent.RunDispositionFailure<import("effect-agent").RuntimeBinding<typeof ReviewMission, typeof CodeReview, (mission: ReviewMission) => string, Toolkit.ToolsByName<[Tool.Tool<"list_changed_files", {
|
|
354
|
+
}>>, import("effect/Scope").Scope>> | Effect.Effect<ReviewRunOutcome, import("effect-agent").AgentApprovalDenied | import("effect-agent").AgentApprovalPending | import("effect-agent").AgentChildPending | import("effect-agent").AgentInputError | import("effect-agent").AgentOutputError | import("effect-agent").AgentPolicyError | import("effect-agent").AgentToolAuthorizationDenied | import("effect/unstable/ai/AiError").AiError | import("effect-agent").BudgetAdapterError | import("effect-agent").BudgetExceeded | import("effect-agent").ContextOverflowError | GitHubApiFailure | import("effect-agent").ModelProtocolError | PullRequestSourceFailure | import("effect/Schema").SchemaError | Agent.RunDispositionFailure<import("effect-agent").RuntimeBinding<typeof ReviewMission, typeof CodeReview, (mission: ReviewMission) => string, Toolkit.ToolsByName<[Tool.Tool<"list_changed_files", {
|
|
351
355
|
readonly parameters: typeof ListChangedFilesQuery;
|
|
352
356
|
readonly success: typeof ChangedFilesView;
|
|
353
357
|
readonly failure: typeof PullRequestSourceFailure;
|
|
@@ -485,18 +489,18 @@ interface PrReviewFanOutOptions<Provider, ModelProvides, ModelRequires> extends
|
|
|
485
489
|
readonly guidance?: string | ReadonlyArray<string> | undefined;
|
|
486
490
|
}
|
|
487
491
|
/**
|
|
488
|
-
* Build the fan-out reviewer: a coordinator
|
|
489
|
-
*
|
|
490
|
-
*
|
|
491
|
-
*
|
|
492
|
-
* configurable here — the delegation reservation mirrors
|
|
493
|
-
* and letting the two drift apart is a published-API hazard.
|
|
492
|
+
* Build the fan-out reviewer: a coordinator schedules host-planned general
|
|
493
|
+
* and specialist discovery plus independent candidate verification through
|
|
494
|
+
* attached ephemeral children. Host code reconstructs publication only from
|
|
495
|
+
* exactly confirmed candidates. Child and coordinator execution bounds are
|
|
496
|
+
* packaged and not configurable here — the delegation reservation mirrors
|
|
497
|
+
* the child policy, and letting the two drift apart is a published-API hazard.
|
|
494
498
|
*/
|
|
495
499
|
declare const makeFanOut: <Provider, ModelProvides, ModelRequires>(options: PrReviewFanOutOptions<Provider, ModelProvides, ModelRequires>) => {
|
|
496
500
|
readonly definition: import("effect-agent").Definition<typeof ReviewMission, typeof CodeReview, (mission: ReviewMission) => string, Toolkit.Toolkit<{
|
|
497
501
|
readonly delegate_file_review: Tool.Tool<"delegate_file_review", {
|
|
498
502
|
readonly parameters: typeof FileReviewRequest;
|
|
499
|
-
readonly success: import("effect/Schema").Union<readonly [typeof FileReviewUnitResult, import("effect-agent").SubagentContainedFailure<typeof FileReviewUnitFailed
|
|
503
|
+
readonly success: import("effect/Schema").Union<readonly [typeof FileReviewUnitResult, import("effect-agent").SubagentContainedFailure<import("effect/Schema").Union<readonly [typeof FileReviewUnitFailed, typeof FileReviewWorkRejected]>>]>;
|
|
500
504
|
readonly failure: import("effect-agent").SubagentReturnModeFailure;
|
|
501
505
|
readonly failureMode: "error";
|
|
502
506
|
}, import("effect-agent").AgentSpawner | IdGenerator | import("effect-agent").RunEventSink | import("effect-agent").SubagentDurability>;
|
|
@@ -511,7 +515,7 @@ declare const makeFanOut: <Provider, ModelProvides, ModelRequires>(options: PrRe
|
|
|
511
515
|
definition: import("effect-agent").Definition<typeof ReviewMission, typeof CodeReview, (mission: ReviewMission) => string, Toolkit.Toolkit<{
|
|
512
516
|
readonly delegate_file_review: Tool.Tool<"delegate_file_review", {
|
|
513
517
|
readonly parameters: typeof FileReviewRequest;
|
|
514
|
-
readonly success: import("effect/Schema").Union<readonly [typeof FileReviewUnitResult, import("effect-agent").SubagentContainedFailure<typeof FileReviewUnitFailed
|
|
518
|
+
readonly success: import("effect/Schema").Union<readonly [typeof FileReviewUnitResult, import("effect-agent").SubagentContainedFailure<import("effect/Schema").Union<readonly [typeof FileReviewUnitFailed, typeof FileReviewWorkRejected]>>]>;
|
|
515
519
|
readonly failure: import("effect-agent").SubagentReturnModeFailure;
|
|
516
520
|
readonly failureMode: "error";
|
|
517
521
|
}, import("effect-agent").AgentSpawner | IdGenerator | import("effect-agent").RunEventSink | import("effect-agent").SubagentDurability>;
|
|
@@ -525,49 +529,10 @@ declare const makeFanOut: <Provider, ModelProvides, ModelRequires>(options: PrRe
|
|
|
525
529
|
model: Model.Model<Provider, ModelProvides | LanguageModel.LanguageModel, ModelRequires>;
|
|
526
530
|
}>;
|
|
527
531
|
readonly childBinding: Readonly<{
|
|
528
|
-
definition: import("effect-agent").Definition<typeof FileReviewBrief, typeof FileReviewReport, (brief: FileReviewBrief) => string, Toolkit.Toolkit<{
|
|
529
|
-
readonly read_file: Tool.Tool<"read_file", {
|
|
530
|
-
readonly parameters: typeof FileSliceQuery;
|
|
531
|
-
readonly success: typeof FileSlice;
|
|
532
|
-
readonly failure: import("effect/Schema").Union<readonly [typeof PullRequestSourceFailure, typeof ReviewInputViolation]>;
|
|
533
|
-
readonly failureMode: "return";
|
|
534
|
-
}, PullRequestSource>;
|
|
535
|
-
readonly read_file_diff: Tool.Tool<"read_file_diff", {
|
|
536
|
-
readonly parameters: typeof FileDiffQuery;
|
|
537
|
-
readonly success: typeof FileDiffView;
|
|
538
|
-
readonly failure: import("effect/Schema").Union<readonly [typeof PullRequestSourceFailure, typeof ReviewInputViolation]>;
|
|
539
|
-
readonly failureMode: "return";
|
|
540
|
-
}, PullRequestSource>;
|
|
541
|
-
}>, undefined>;
|
|
532
|
+
definition: import("effect-agent").Definition<typeof FileReviewBrief, typeof FileReviewReport, (brief: FileReviewBrief) => string, Toolkit.Toolkit<{}>, undefined>;
|
|
542
533
|
model: Model.Model<Provider, ModelProvides | LanguageModel.LanguageModel, ModelRequires>;
|
|
543
534
|
}>;
|
|
544
|
-
readonly run: (runOptions?: RunReviewOptions) => Effect.Effect<ReviewRunOutcome, import("effect-agent").AgentApprovalDenied | import("effect-agent").AgentApprovalPending | import("effect-agent").AgentChildPending | import("effect-agent").AgentInputError | import("effect-agent").AgentOutputError | import("effect-agent").AgentPolicyError | import("effect/unstable/ai/AiError").AiError | import("effect-agent").BudgetAdapterError | import("effect-agent").BudgetExceeded | import("effect-agent").ContextOverflowError | GitHubApiFailure | import("effect-agent").ModelProtocolError | PullRequestSourceFailure | import("effect/Schema").SchemaError, PullRequestSource | ReviewPublisher | Exclude<Exclude<Exclude<ModelRequires, import("effect-agent").EngineProvidedToolServices>, IdGenerator | import("effect-agent").SubagentReservations | Tool.
|
|
545
|
-
readonly read_file: Tool.Tool<"read_file", {
|
|
546
|
-
readonly parameters: typeof FileSliceQuery;
|
|
547
|
-
readonly success: typeof FileSlice;
|
|
548
|
-
readonly failure: import("effect/Schema").Union<readonly [typeof PullRequestSourceFailure, typeof ReviewInputViolation]>;
|
|
549
|
-
readonly failureMode: "return";
|
|
550
|
-
}, PullRequestSource>;
|
|
551
|
-
readonly read_file_diff: Tool.Tool<"read_file_diff", {
|
|
552
|
-
readonly parameters: typeof FileDiffQuery;
|
|
553
|
-
readonly success: typeof FileDiffView;
|
|
554
|
-
readonly failure: import("effect/Schema").Union<readonly [typeof PullRequestSourceFailure, typeof ReviewInputViolation]>;
|
|
555
|
-
readonly failureMode: "return";
|
|
556
|
-
}, PullRequestSource>;
|
|
557
|
-
}>>, import("effect/Scope").Scope> | Exclude<Exclude<Exclude<ModelRequires, import("effect-agent").EngineProvidedToolServices>, Tool.Handler<"delegate_file_review"> | Tool.Handler<"list_review_units"> | IdGenerator>, import("effect/Scope").Scope>> | Effect.Effect<ReviewRunOutcome, import("effect-agent").AgentApprovalDenied | import("effect-agent").AgentApprovalPending | import("effect-agent").AgentChildPending | import("effect-agent").AgentInputError | import("effect-agent").AgentOutputError | import("effect-agent").AgentPolicyError | import("effect/unstable/ai/AiError").AiError | import("effect-agent").BudgetAdapterError | import("effect-agent").BudgetExceeded | import("effect-agent").ContextOverflowError | GitHubApiFailure | import("effect-agent").ModelProtocolError | PullRequestSourceFailure | import("effect/Schema").SchemaError, PullRequestSource | ReviewPublisher | Exclude<Exclude<Exclude<Exclude<ModelRequires, import("effect-agent").EngineProvidedToolServices>, IdGenerator | import("effect-agent").SubagentReservations | Tool.HandlersFor<{
|
|
558
|
-
readonly read_file: Tool.Tool<"read_file", {
|
|
559
|
-
readonly parameters: typeof FileSliceQuery;
|
|
560
|
-
readonly success: typeof FileSlice;
|
|
561
|
-
readonly failure: import("effect/Schema").Union<readonly [typeof PullRequestSourceFailure, typeof ReviewInputViolation]>;
|
|
562
|
-
readonly failureMode: "return";
|
|
563
|
-
}, PullRequestSource>;
|
|
564
|
-
readonly read_file_diff: Tool.Tool<"read_file_diff", {
|
|
565
|
-
readonly parameters: typeof FileDiffQuery;
|
|
566
|
-
readonly success: typeof FileDiffView;
|
|
567
|
-
readonly failure: import("effect/Schema").Union<readonly [typeof PullRequestSourceFailure, typeof ReviewInputViolation]>;
|
|
568
|
-
readonly failureMode: "return";
|
|
569
|
-
}, PullRequestSource>;
|
|
570
|
-
}>>, import("effect/Scope").Scope>, PullRequestSource> | Exclude<Exclude<Exclude<Exclude<ModelRequires, import("effect-agent").EngineProvidedToolServices>, Tool.Handler<"delegate_file_review"> | Tool.Handler<"list_review_units"> | IdGenerator>, import("effect/Scope").Scope>, PullRequestSource>>;
|
|
535
|
+
readonly run: (runOptions?: RunReviewOptions) => Effect.Effect<ReviewRunOutcome, import("effect-agent").AgentApprovalDenied | import("effect-agent").AgentApprovalPending | import("effect-agent").AgentChildPending | import("effect-agent").AgentInputError | import("effect-agent").AgentOutputError | import("effect-agent").AgentPolicyError | import("effect-agent").AgentToolAuthorizationDenied | import("effect/unstable/ai/AiError").AiError | import("effect-agent").BudgetAdapterError | import("effect-agent").BudgetExceeded | import("effect-agent").ContextOverflowError | GitHubApiFailure | import("effect-agent").ModelProtocolError | PullRequestSourceFailure | import("effect/Schema").SchemaError, PullRequestSource | ReviewPublisher | Exclude<Exclude<Exclude<ModelRequires, import("effect-agent").EngineProvidedToolServices>, IdGenerator | import("effect-agent").SubagentReservations>, import("effect/Scope").Scope> | Exclude<Exclude<Exclude<ModelRequires, import("effect-agent").EngineProvidedToolServices>, Tool.Handler<"delegate_file_review"> | Tool.Handler<"list_review_units"> | IdGenerator>, import("effect/Scope").Scope>> | Effect.Effect<ReviewRunOutcome, import("effect-agent").AgentApprovalDenied | import("effect-agent").AgentApprovalPending | import("effect-agent").AgentChildPending | import("effect-agent").AgentInputError | import("effect-agent").AgentOutputError | import("effect-agent").AgentPolicyError | import("effect-agent").AgentToolAuthorizationDenied | import("effect/unstable/ai/AiError").AiError | import("effect-agent").BudgetAdapterError | import("effect-agent").BudgetExceeded | import("effect-agent").ContextOverflowError | GitHubApiFailure | import("effect-agent").ModelProtocolError | PullRequestSourceFailure | import("effect/Schema").SchemaError, PullRequestSource | ReviewPublisher | Exclude<Exclude<Exclude<Exclude<ModelRequires, import("effect-agent").EngineProvidedToolServices>, IdGenerator | import("effect-agent").SubagentReservations>, import("effect/Scope").Scope>, PullRequestSource> | Exclude<Exclude<Exclude<Exclude<ModelRequires, import("effect-agent").EngineProvidedToolServices>, Tool.Handler<"delegate_file_review"> | Tool.Handler<"list_review_units"> | IdGenerator>, import("effect/Scope").Scope>, PullRequestSource>>;
|
|
571
536
|
readonly fingerprint: Effect.Effect<string, PullRequestSourceFailure, PullRequestSource>;
|
|
572
537
|
readonly profileFingerprint: Effect.Effect<string, PullRequestSourceFailure, PullRequestSource>;
|
|
573
538
|
readonly snapshot: Effect.Effect<{
|
|
@@ -783,6 +748,14 @@ declare const FanOutReviewerProfile_base: Schema.Class<FanOutReviewerProfile, Sc
|
|
|
783
748
|
readonly attachedEphemeralDelegation: Schema.Literal<true>;
|
|
784
749
|
/** A failed unit surfaces to the coordinator as a typed failed result, never retried. */
|
|
785
750
|
readonly failedUnitsReportedNotRetried: Schema.Literal<true>;
|
|
751
|
+
/** Risk categories and required specialist passes are pure host policy. */
|
|
752
|
+
readonly hostOwnedRiskClassification: Schema.Literal<true>;
|
|
753
|
+
/** Every host-classified high-risk unit receives a fresh specialist pass. */
|
|
754
|
+
readonly redundantHighRiskDiscovery: Schema.Literal<true>;
|
|
755
|
+
/** Only exact candidates confirmed by a fresh verifier child may publish. */
|
|
756
|
+
readonly independentCandidateVerification: Schema.Literal<true>;
|
|
757
|
+
/** No bounded model pipeline proves that a pull request is defect-free. */
|
|
758
|
+
readonly defectAbsenceProven: Schema.Literal<false>;
|
|
786
759
|
/** The live profile is env-gated out of every ordinary test gate. */
|
|
787
760
|
readonly liveProfileOptIn: Schema.Literal<true>;
|
|
788
761
|
/** Never claimed at any phase (DUR-003). */
|
|
@@ -830,5 +803,5 @@ declare const openAiClientLayer: Layer.Layer<OpenAiClient.OpenAiClient, Config.C
|
|
|
830
803
|
/** The Anthropic client Layer, credential from `ANTHROPIC_API_KEY`. */
|
|
831
804
|
declare const anthropicClientLayer: Layer.Layer<AnthropicClient.AnthropicClient, Config.ConfigError, never>;
|
|
832
805
|
//#endregion
|
|
833
|
-
export { AGENT_PROMPT_PREAMBLE, ChangedFile, ChangedFileStatus, ChangedFileSummary, ChangedFilesView, ChangedPath, CodeReview, CompactLogRecord, DEFAULT_GITHUB_REVIEW_AUTHOR_LOGIN, DEFAULT_MODEL, DEFAULT_PROVIDER, DelegateFileReview, EFFORT_ALIASES, EffortAliasName, EffortPosition, ExecuteReviewOptions, FINGERPRINT_MARKER_LENGTH, FailedReviewUnit, FanOutCoordinatorToolkit, FanOutCoordinatorToolkitLayer, FanOutInstructionOptions, FanOutReviewSuite, FanOutReviewToolkit, FanOutReviewer, FanOutReviewerProfile, FanOutSuiteOptions, FileDiffQuery, FileDiffView, FileReviewBrief, FileReviewDelegationFailure, FileReviewReport, FileReviewRequest, FileReviewToolkit, FileReviewToolkitLayer, FileReviewUnitFailed, FileReviewUnitResult, FileReviewer, FileSlice, FileSliceQuery, FindingCategory, FindingSeverity, GitCommitSha, GitHubApiFailure, GitHubEventWire, GitHubReviewTarget, InvalidEffortInput, LIVE_GATE_ENV, ListChangedFiles, ListChangedFilesQuery, ListReviewUnits, ListReviewUnitsQuery, MAX_CHANGED_FILES, MAX_CHILD_CONCERNS, MAX_CHILD_FINDINGS, MAX_CONCERNS, MAX_FILE_CHARS, MAX_FILE_REVIEW_TOOL_CALLS, MAX_FINDINGS, MAX_MERGED_FINDINGS, MAX_REVIEW_CONTENT_CHARS, MAX_REVIEW_STATE_MARKER_CHARS, MAX_REVIEW_UNITS, MAX_UNIT_FILES, MAX_WALKTHROUGH_ENTRIES, MAX_WALKTHROUGH_SUMMARY_CHARS, PROGRESS_COMMENT_MARKER_PREFIX, PROVIDER_CREDENTIAL_ENV, PROVIDER_EFFORT_RUNGS, PatchLine, PrReview, PrReviewFanOutOptions, PrReviewOptions, PrReviewSharedOptions, PriorReviewLookupFailure, PriorReviews, ProgressClaim, PublishedReview, PullRequestMetadata, PullRequestReviewer, PullRequestReviewerProfile, PullRequestSource, PullRequestSourceFailure, REVIEW_TOOL_RESULT_MAX_BYTES, ReadFile, ReadFileDiff, ResolvedReviewTarget, RetirableReview, RetirableReviewComment, ReviewCommentDraft, ReviewConcern, ReviewCoverage, ReviewEvent, ReviewExecutionContext, ReviewFinding, ReviewGuidance, ReviewHeadComparison, ReviewInputViolation, ReviewInstructionOptions, ReviewMission, ReviewMode, ReviewProgressBegin, ReviewProgressReporter, ReviewProgressSettle, ReviewProvider, ReviewPublicationPlan, ReviewPublisher, ReviewRetirementDecision, ReviewRetirementFailure, ReviewRetirementHost, ReviewRetirementInput, ReviewRetirementReport, ReviewRunOutcome, ReviewScopeMode, ReviewSelection, ReviewShape, ReviewState, ReviewStateAuthenticationFailure, ReviewStateAuthenticator, ReviewStateMarker, ReviewStateMarkerTooLarge, ReviewTargetUnresolved, ReviewToolkit, ReviewToolkitLayer, ReviewUnit, ReviewUnitId, ReviewUnitPlan, ReviewVerdict, RunReviewOptions, StoredReviewConcern, StoredReviewFinding, UNIT_CHANGED_LINE_BUDGET, WalkthroughEntry, anchorViolation, annotatePatch, anthropicClientLayer, assessReviewCoverage, buildProfileMission, buildReviewMission, clampMaxFindings, collectUnitFileSummaries, commentableLines, compactReviewLogger, compactReviewLoggingLayer, compileIgnoreGlobs, computeChangesetFingerprint, computeProfileFingerprint, decideReviewRetirement, defaultFanOutPolicy, defaultFileReviewerPolicy, defaultReviewPolicy, describeReviewModel, enforceFindingsBound, estimateReviewEffort, executeReview, extractFingerprint, fanOutHandlersLayer, fanOutHandlersLayerFor, fanOutReviewBudgetLimits, fanOutReviewInstructions, fanOutReviewerProfile, fileReviewDelegation, fileReviewPolicy, fileReviewerInstructions, fingerprintUnchanged, formatCompactLogLine, fromStoredConcern, fromStoredFinding, gitHubPriorReviewsLayer, gitHubPullRequestSourceLayer, gitHubReviewLayers, gitHubReviewProgressLayer, gitHubReviewPublisherLayer, gitHubReviewRetirementHostLayer, hasReviewMetadataMarker, hasReviewableContent, ignoringPullRequestSourceLayer, isEffortPosition, isReviewableFile, listChangedFilesHandler, liveProfileEnabled, makeAnthropicReviewModel, makeFanOutReviewInstructions, makeFanOutReviewSuite, makeFileReviewerInstructions, makeOpenAiReviewModel, makeReviewInstructions, mapFileReviewChildFailure, noopReviewProgressReporterLayer, normalizeRepoRelativePath, openAiClientLayer, parseEffortPosition, parseGitHubSubmittedAt, parsePatch, parseProgressClaim, planPublication, planReviewUnits, planWalkthrough, pullRequestReviewerProfile, rankAndDedupeFindings, readFileDiffHandler, readFileHandler, readGitHubEvent, renderAgentPrompt, renderFingerprintMarker, renderProgressBeginBody, renderProgressClaimMarker, renderProgressSettleBody, renderReviewContent, resolveEffortRung, resolveGuidance, resolveReviewTarget, retireStaleReviews, reviewBudgetLimits, reviewInstructions, selectReviewRange, selectedPullRequestSourceLayer, toStoredConcern, toStoredFinding, unavailableReviewStateAuthenticatorLayer, validateReviewState, webCryptoReviewStateAuthenticatorLayer };
|
|
806
|
+
export { AGENT_PROMPT_PREAMBLE, CandidateAssessment, ChangedFile, ChangedFileStatus, ChangedFileSummary, ChangedFilesView, ChangedPath, CodeReview, CompactLogRecord, ConcernCandidate, DEFAULT_GITHUB_REVIEW_AUTHOR_LOGIN, DEFAULT_MODEL, DEFAULT_PROVIDER, DelegateFileReview, DiscoveredConcern, EFFORT_ALIASES, EffortAliasName, EffortPosition, ExecuteReviewOptions, FINGERPRINT_MARKER_LENGTH, FailedReviewPass, FailedReviewUnit, FanOutCoordinatorToolkit, FanOutCoordinatorToolkitLayer, FanOutInstructionOptions, FanOutReviewSuite, FanOutReviewToolkit, FanOutReviewer, FanOutReviewerProfile, FanOutSuiteOptions, FileDiffQuery, FileDiffView, FileReviewBrief, FileReviewDelegationFailure, FileReviewEvidence, FileReviewEvidenceChunk, FileReviewFailure, FileReviewReport, FileReviewRequest, FileReviewToolkit, FileReviewToolkitLayer, FileReviewUnitFailed, FileReviewUnitResult, FileReviewWorkRejected, FileReviewer, FileSlice, FileSliceQuery, FindingCandidate, FindingCategory, FindingSeverity, GitCommitSha, GitHubApiFailure, GitHubEventWire, GitHubReviewTarget, InvalidEffortInput, LIVE_GATE_ENV, ListChangedFiles, ListChangedFilesQuery, ListReviewUnits, ListReviewUnitsQuery, MAX_CHANGED_FILES, MAX_CHILD_CONCERNS, MAX_CHILD_FINDINGS, MAX_CONCERNS, MAX_FILE_CHARS, MAX_FILE_EVIDENCE_CHARS, MAX_FILE_REVIEW_TOOL_CALLS, MAX_FINDINGS, MAX_MERGED_FINDINGS, MAX_PATCH_CHARS, MAX_REPORTED_UNASSIGNED_EVIDENCE_SHARDS, MAX_REVIEW_CHILDREN, MAX_REVIEW_CONTENT_CHARS, MAX_REVIEW_STATE_MARKER_CHARS, MAX_REVIEW_UNITS, MAX_UNIT_CANDIDATES, MAX_UNIT_EVIDENCE_SHARDS, MAX_UNIT_FILES, MAX_WALKTHROUGH_ENTRIES, MAX_WALKTHROUGH_SUMMARY_CHARS, PROGRESS_COMMENT_MARKER_PREFIX, PROVIDER_CREDENTIAL_ENV, PROVIDER_EFFORT_RUNGS, PatchLine, PrReview, PrReviewFanOutOptions, PrReviewOptions, PrReviewSharedOptions, PriorReviewLookupFailure, PriorReviews, ProgressClaim, PublishedReview, PullRequestMetadata, PullRequestReviewer, PullRequestReviewerProfile, PullRequestSource, PullRequestSourceFailure, REVIEW_TOOL_RESULT_MAX_BYTES, ReadFile, ReadFileDiff, ResolvedReviewTarget, RetirableReview, RetirableReviewComment, ReviewAssurance, ReviewCandidate, ReviewCandidateId, ReviewCommentDraft, ReviewConcern, ReviewCoverage, ReviewDiscoveryPass, ReviewDiscoveryPerspective, ReviewEvent, ReviewEvidenceShard, ReviewEvidenceShardId, ReviewExecutionContext, ReviewFinding, ReviewGuidance, ReviewHeadComparison, ReviewInputCoverage, ReviewInputViolation, ReviewInstructionOptions, ReviewMission, ReviewMode, ReviewPassId, ReviewPipelineAssessment, ReviewProgressBegin, ReviewProgressReporter, ReviewProgressSettle, ReviewProvider, ReviewPublicationPlan, ReviewPublisher, ReviewRetirementDecision, ReviewRetirementFailure, ReviewRetirementHost, ReviewRetirementInput, ReviewRetirementReport, ReviewRiskCategory, ReviewRunOutcome, ReviewScopeMode, ReviewSelection, ReviewShape, ReviewState, ReviewStateAuthenticationFailure, ReviewStateAuthenticator, ReviewStateMarker, ReviewStateMarkerTooLarge, ReviewTargetUnresolved, ReviewToolkit, ReviewToolkitLayer, ReviewUnit, ReviewUnitId, ReviewUnitPlan, ReviewVerdict, ReviewWorkPerspective, ReviewWorkPhase, RunReviewOptions, StoredReviewConcern, StoredReviewFinding, UNIT_CHANGED_LINE_BUDGET, UNIT_EVIDENCE_CHAR_BUDGET, WalkthroughEntry, anchorViolation, annotatePatch, anthropicClientLayer, assessReviewCoverage, assessReviewPipeline, assessmentSettlesSuggestionExactly, buildProfileMission, buildReviewMission, clampMaxFindings, classifyReviewRisks, collectUnitFileSummaries, commentableLines, compactReviewLogger, compactReviewLoggingLayer, compileIgnoreGlobs, computeChangesetFingerprint, computeProfileFingerprint, confirmedFindingForPublication, decideReviewRetirement, defaultFanOutPolicy, defaultFileReviewerPolicy, defaultReviewPolicy, describeReviewModel, enforceFindingsBound, estimateReviewEffort, executeReview, extractFingerprint, fanOutHandlersLayer, fanOutHandlersLayerFor, fanOutReviewBudgetLimits, fanOutReviewInstructions, fanOutReviewerProfile, fileDiffView, fileReviewDelegation, fileReviewEvidenceChunks, fileReviewPolicy, fileReviewerInstructions, findingAnchorInUnitEvidence, fingerprintUnchanged, formatCompactLogLine, fromStoredConcern, fromStoredFinding, gitHubPriorReviewsLayer, gitHubPullRequestSourceLayer, gitHubReviewLayers, gitHubReviewProgressLayer, gitHubReviewPublisherLayer, gitHubReviewRetirementHostLayer, hasReviewMetadataMarker, hasReviewableContent, ignoringPullRequestSourceLayer, isEffortPosition, isReviewableFile, listChangedFilesHandler, liveProfileEnabled, makeAnthropicReviewModel, makeFanOutReviewInstructions, makeFanOutReviewSuite, makeFileReviewerInstructions, makeOpenAiReviewModel, makeReviewInstructions, mapFileReviewChildFailure, noopReviewProgressReporterLayer, normalizeRepoRelativePath, openAiClientLayer, parseEffortPosition, parseGitHubSubmittedAt, parsePatch, parseProgressClaim, planPublication, planReviewUnits, planWalkthrough, pullRequestReviewerProfile, rankAndDedupeFindings, readFileDiffHandler, readFileHandler, readGitHubEvent, renderAgentPrompt, renderFingerprintMarker, renderProgressBeginBody, renderProgressClaimMarker, renderProgressSettleBody, renderReviewContent, resolveEffortRung, resolveGuidance, resolveReviewTarget, retireStaleReviews, reviewBudgetLimits, reviewCandidateSubjectKey, reviewInstructions, selectReviewRange, selectedPullRequestSourceLayer, toStoredConcern, toStoredFinding, unavailableReviewStateAuthenticatorLayer, validateReviewState, webCryptoReviewStateAuthenticatorLayer };
|
|
834
807
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
import { A as AGENT_PROMPT_PREAMBLE, B as
|
|
1
|
+
import { $ as DiscoveredConcern, $n as normalizeRepoRelativePath, $t as ReviewPassId, A as ReviewStateAuthenticator, An as ReviewConcern, At as defaultFanOutPolicy, B as selectedPullRequestSourceLayer, Bn as fileReviewEvidenceChunks, Bt as makeFileReviewerInstructions, C as MAX_REVIEW_STATE_MARKER_CHARS, Cn as MAX_PATCH_CHARS, Ct as MAX_UNIT_CANDIDATES, D as ReviewScopeMode, Dn as REVIEW_TOOL_RESULT_MAX_BYTES, Dt as ReviewWorkPhase, E as ReviewMode, En as PullRequestReviewer, Et as ReviewWorkPerspective, F as buildProfileMission, Fn as ReviewVerdict, Ft as fileReviewDelegation, G as webCryptoReviewStateAuthenticatorLayer, Gn as resolveGuidance, Gt as MAX_REPORTED_UNASSIGNED_EVIDENCE_SHARDS, H as toStoredFinding, Hn as makeReviewInstructions, Ht as reviewCandidateSubjectKey, I as computeProfileFingerprint, In as WalkthroughEntry, It as fileReviewPolicy, J as extractFingerprint, Jn as MAX_FILE_CHARS, Jt as MAX_UNIT_FILES, K as FINGERPRINT_MARKER_LENGTH, Kn as reviewInstructions, Kt as MAX_REVIEW_UNITS, L as fromStoredConcern, Ln as clampMaxFindings, Lt as fileReviewerInstructions, M as ReviewStateMarkerTooLarge, Mn as ReviewMission, Mt as fanOutHandlersLayer, N as StoredReviewConcern, Nn as ReviewToolkit, Nt as fanOutHandlersLayerFor, O as ReviewState, On as ReadFile, Ot as assessmentSettlesSuggestionExactly, P as StoredReviewFinding, Pn as ReviewToolkitLayer, Pt as fanOutReviewInstructions, Q as DelegateFileReview, Qn as ReviewInputViolation, Qt as ReviewEvidenceShardId, R as fromStoredFinding, Rn as defaultReviewPolicy, Rt as makeFanOutReviewInstructions, S as GitCommitSha, Sn as MAX_FINDINGS, St as MAX_REVIEW_CHILDREN, T as ReviewHeadComparison, Tn as MAX_WALKTHROUGH_SUMMARY_CHARS, Tt as ReviewCandidateId, U as unavailableReviewStateAuthenticatorLayer, Un as readFileDiffHandler, Ut as MAX_FILE_EVIDENCE_CHARS, V as toStoredConcern, Vn as listChangedFilesHandler, Vt as mapFileReviewChildFailure, W as validateReviewState, Wn as readFileHandler, Wt as MAX_MERGED_FINDINGS, X as CandidateAssessment, Xn as PullRequestSource, Xt as ReviewDiscoveryPerspective, Y as renderFingerprintMarker, Yn as PullRequestMetadata, Yt as ReviewDiscoveryPass, Z as ConcernCandidate, Zn as PullRequestSourceFailure, Zt as ReviewEvidenceShard, _ as ReviewRetirementHost, _n as FindingCategory, _t as ListReviewUnits, a as PriorReviews, an as UNIT_EVIDENCE_CHAR_BUDGET, ar as annotatePatch, at as FileReviewDelegationFailure, b as hasReviewMetadataMarker, bn as ListChangedFilesQuery, bt as MAX_CHILD_FINDINGS, c as fingerprintUnchanged, cn as planReviewUnits, cr as isReviewableFile, ct as FileReviewReport, d as gitHubReviewPublisherLayer, dn as ChangedFilesView, dt as FileReviewToolkitLayer, en as ReviewRiskCategory, er as anchorViolation, et as FanOutCoordinatorToolkit, f as gitHubReviewRetirementHostLayer, fn as CodeReview, ft as FileReviewUnitFailed, g as ReviewRetirementFailure, gn as FileSliceQuery, gt as FindingCandidate, h as RetirableReviewComment, hn as FileSlice, ht as FileReviewer, i as PriorReviewLookupFailure, in as UNIT_CHANGED_LINE_BUDGET, ir as MAX_REVIEW_CONTENT_CHARS, it as FileReviewBrief, j as ReviewStateMarker, jn as ReviewFinding, jt as defaultFileReviewerPolicy, k as ReviewStateAuthenticationFailure, kn as ReadFileDiff, kt as confirmedFindingForPublication, l as gitHubPriorReviewsLayer, ln as rankAndDedupeFindings, lr as parsePatch, lt as FileReviewRequest, m as RetirableReview, mn as FileDiffView, mt as FileReviewWorkRejected, n as GitHubApiFailure, nn as ReviewUnitId, nr as ChangedFileStatus, nt as FanOutReviewToolkit, o as PublishedReview, on as classifyReviewRisks, or as commentableLines, ot as FileReviewEvidence, p as parseGitHubSubmittedAt, pn as FileDiffQuery, pt as FileReviewUnitResult, q as computeChangesetFingerprint, qn as MAX_CHANGED_FILES, qt as MAX_UNIT_EVIDENCE_SHARDS, r as GitHubReviewTarget, rn as ReviewUnitPlan, rr as ChangedPath, rt as FanOutReviewer, s as ReviewPublisher, sn as findingAnchorInUnitEvidence, sr as hasReviewableContent, st as FileReviewFailure, t as DEFAULT_GITHUB_REVIEW_AUTHOR_LOGIN, tn as ReviewUnit, tr as ChangedFile, tt as FanOutCoordinatorToolkitLayer, u as gitHubPullRequestSourceLayer, un as ChangedFileSummary, ur as renderReviewContent, ut as FileReviewToolkit, v as ReviewRetirementReport, vn as FindingSeverity, vt as ListReviewUnitsQuery, w as ReviewExecutionContext, wn as MAX_WALKTHROUGH_ENTRIES, wt as ReviewCandidate, x as retireStaleReviews, xn as MAX_CONCERNS, xt as MAX_FILE_REVIEW_TOOL_CALLS, y as decideReviewRetirement, yn as ListChangedFiles, yt as MAX_CHILD_CONCERNS, z as selectReviewRange, zn as fileDiffView, zt as makeFanOutReviewSuite } from "./github-BgtP7Rdv.mjs";
|
|
2
|
+
import { $ as collectUnitFileSummaries, A as AGENT_PROMPT_PREAMBLE, B as EFFORT_ALIASES, C as PrReview, D as executeReview, E as enforceFindingsBound, F as planPublication, G as FailedReviewPass, H as isEffortPosition, I as planWalkthrough, J as ReviewCoverage, K as FailedReviewUnit, L as renderAgentPrompt, M as ReviewEvent, N as ReviewPublicationPlan, O as fanOutReviewBudgetLimits, P as estimateReviewEffort, Q as assessReviewPipeline, R as compileIgnoreGlobs, S as renderProgressSettleBody, T as buildReviewMission, U as parseEffortPosition, V as InvalidEffortInput, W as resolveEffortRung, X as ReviewShape, Y as ReviewInputCoverage, Z as assessReviewCoverage, _ as gitHubReviewProgressLayer, a as anthropicClientLayer, b as renderProgressBeginBody, c as makeOpenAiReviewModel, d as ReviewTargetUnresolved, f as gitHubReviewLayers, g as ReviewProgressReporter, h as PROGRESS_COMMENT_MARKER_PREFIX, i as PROVIDER_EFFORT_RUNGS, j as ReviewCommentDraft, k as reviewBudgetLimits, l as openAiClientLayer, m as resolveReviewTarget, n as DEFAULT_PROVIDER, o as describeReviewModel, p as readGitHubEvent, q as ReviewAssurance, r as PROVIDER_CREDENTIAL_ENV, s as makeAnthropicReviewModel, t as DEFAULT_MODEL, u as GitHubEventWire, v as noopReviewProgressReporterLayer, w as ReviewRunOutcome, x as renderProgressClaimMarker, y as parseProgressClaim, z as ignoringPullRequestSourceLayer } from "./providers-BguZK4B_.mjs";
|
|
3
3
|
import { n as compactReviewLoggingLayer, r as formatCompactLogLine, t as compactReviewLogger } from "./logging-Q4j0oub-.mjs";
|
|
4
4
|
import { Schema } from "effect";
|
|
5
5
|
//#region src/internal/profiles.ts
|
|
@@ -40,6 +40,14 @@ var FanOutReviewerProfile = class extends Schema.Class("@effect-agent/pr-review/
|
|
|
40
40
|
attachedEphemeralDelegation: Schema.Literal(true),
|
|
41
41
|
/** A failed unit surfaces to the coordinator as a typed failed result, never retried. */
|
|
42
42
|
failedUnitsReportedNotRetried: Schema.Literal(true),
|
|
43
|
+
/** Risk categories and required specialist passes are pure host policy. */
|
|
44
|
+
hostOwnedRiskClassification: Schema.Literal(true),
|
|
45
|
+
/** Every host-classified high-risk unit receives a fresh specialist pass. */
|
|
46
|
+
redundantHighRiskDiscovery: Schema.Literal(true),
|
|
47
|
+
/** Only exact candidates confirmed by a fresh verifier child may publish. */
|
|
48
|
+
independentCandidateVerification: Schema.Literal(true),
|
|
49
|
+
/** No bounded model pipeline proves that a pull request is defect-free. */
|
|
50
|
+
defectAbsenceProven: Schema.Literal(false),
|
|
43
51
|
/** The live profile is env-gated out of every ordinary test gate. */
|
|
44
52
|
liveProfileOptIn: Schema.Literal(true),
|
|
45
53
|
/** Never claimed at any phase (DUR-003). */
|
|
@@ -52,6 +60,10 @@ const fanOutReviewerProfile = FanOutReviewerProfile.make({
|
|
|
52
60
|
anchorsValidatedBeforePublication: true,
|
|
53
61
|
attachedEphemeralDelegation: true,
|
|
54
62
|
failedUnitsReportedNotRetried: true,
|
|
63
|
+
hostOwnedRiskClassification: true,
|
|
64
|
+
redundantHighRiskDiscovery: true,
|
|
65
|
+
independentCandidateVerification: true,
|
|
66
|
+
defectAbsenceProven: false,
|
|
55
67
|
liveProfileOptIn: true,
|
|
56
68
|
exactlyOnceExternalEffects: false
|
|
57
69
|
});
|
|
@@ -62,6 +74,6 @@ const LIVE_GATE_ENV = "EFFECT_AGENT_LIVE";
|
|
|
62
74
|
*/
|
|
63
75
|
const liveProfileEnabled = (env, credentialEnv) => env["EFFECT_AGENT_LIVE"] === "1" && (env[credentialEnv] ?? "") !== "";
|
|
64
76
|
//#endregion
|
|
65
|
-
export { AGENT_PROMPT_PREAMBLE, ChangedFile, ChangedFileStatus, ChangedFileSummary, ChangedFilesView, ChangedPath, CodeReview, DEFAULT_GITHUB_REVIEW_AUTHOR_LOGIN, DEFAULT_MODEL, DEFAULT_PROVIDER, DelegateFileReview, EFFORT_ALIASES, FINGERPRINT_MARKER_LENGTH, FailedReviewUnit, FanOutCoordinatorToolkit, FanOutCoordinatorToolkitLayer, FanOutReviewToolkit, FanOutReviewer, FanOutReviewerProfile, FileDiffQuery, FileDiffView, FileReviewBrief, FileReviewDelegationFailure, FileReviewReport, FileReviewRequest, FileReviewToolkit, FileReviewToolkitLayer, FileReviewUnitFailed, FileReviewUnitResult, FileReviewer, FileSlice, FileSliceQuery, FindingCategory, FindingSeverity, GitCommitSha, GitHubApiFailure, GitHubEventWire, GitHubReviewTarget, InvalidEffortInput, LIVE_GATE_ENV, ListChangedFiles, ListChangedFilesQuery, ListReviewUnits, ListReviewUnitsQuery, MAX_CHANGED_FILES, MAX_CHILD_CONCERNS, MAX_CHILD_FINDINGS, MAX_CONCERNS, MAX_FILE_CHARS, MAX_FILE_REVIEW_TOOL_CALLS, MAX_FINDINGS, MAX_MERGED_FINDINGS, MAX_REVIEW_CONTENT_CHARS, MAX_REVIEW_STATE_MARKER_CHARS, MAX_REVIEW_UNITS, MAX_UNIT_FILES, MAX_WALKTHROUGH_ENTRIES, MAX_WALKTHROUGH_SUMMARY_CHARS, PROGRESS_COMMENT_MARKER_PREFIX, PROVIDER_CREDENTIAL_ENV, PROVIDER_EFFORT_RUNGS, PrReview, PriorReviewLookupFailure, PriorReviews, PublishedReview, PullRequestMetadata, PullRequestReviewer, PullRequestReviewerProfile, PullRequestSource, PullRequestSourceFailure, REVIEW_TOOL_RESULT_MAX_BYTES, ReadFile, ReadFileDiff, RetirableReview, RetirableReviewComment, ReviewCommentDraft, ReviewConcern, ReviewCoverage, ReviewEvent, ReviewExecutionContext, ReviewFinding, ReviewHeadComparison, ReviewInputViolation, ReviewMission, ReviewMode, ReviewProgressReporter, ReviewPublicationPlan, ReviewPublisher, ReviewRetirementFailure, ReviewRetirementHost, ReviewRetirementReport, ReviewRunOutcome, ReviewScopeMode, ReviewShape, ReviewState, ReviewStateAuthenticationFailure, ReviewStateAuthenticator, ReviewStateMarker, ReviewStateMarkerTooLarge, ReviewTargetUnresolved, ReviewToolkit, ReviewToolkitLayer, ReviewUnit, ReviewUnitId, ReviewUnitPlan, ReviewVerdict, StoredReviewConcern, StoredReviewFinding, UNIT_CHANGED_LINE_BUDGET, WalkthroughEntry, anchorViolation, annotatePatch, anthropicClientLayer, assessReviewCoverage, buildProfileMission, buildReviewMission, clampMaxFindings, collectUnitFileSummaries, commentableLines, compactReviewLogger, compactReviewLoggingLayer, compileIgnoreGlobs, computeChangesetFingerprint, computeProfileFingerprint, decideReviewRetirement, defaultFanOutPolicy, defaultFileReviewerPolicy, defaultReviewPolicy, describeReviewModel, enforceFindingsBound, estimateReviewEffort, executeReview, extractFingerprint, fanOutHandlersLayer, fanOutHandlersLayerFor, fanOutReviewBudgetLimits, fanOutReviewInstructions, fanOutReviewerProfile, fileReviewDelegation, fileReviewPolicy, fileReviewerInstructions, fingerprintUnchanged, formatCompactLogLine, fromStoredConcern, fromStoredFinding, gitHubPriorReviewsLayer, gitHubPullRequestSourceLayer, gitHubReviewLayers, gitHubReviewProgressLayer, gitHubReviewPublisherLayer, gitHubReviewRetirementHostLayer, hasReviewMetadataMarker, hasReviewableContent, ignoringPullRequestSourceLayer, isEffortPosition, isReviewableFile, listChangedFilesHandler, liveProfileEnabled, makeAnthropicReviewModel, makeFanOutReviewInstructions, makeFanOutReviewSuite, makeFileReviewerInstructions, makeOpenAiReviewModel, makeReviewInstructions, mapFileReviewChildFailure, noopReviewProgressReporterLayer, normalizeRepoRelativePath, openAiClientLayer, parseEffortPosition, parseGitHubSubmittedAt, parsePatch, parseProgressClaim, planPublication, planReviewUnits, planWalkthrough, pullRequestReviewerProfile, rankAndDedupeFindings, readFileDiffHandler, readFileHandler, readGitHubEvent, renderAgentPrompt, renderFingerprintMarker, renderProgressBeginBody, renderProgressClaimMarker, renderProgressSettleBody, renderReviewContent, resolveEffortRung, resolveGuidance, resolveReviewTarget, retireStaleReviews, reviewBudgetLimits, reviewInstructions, selectReviewRange, selectedPullRequestSourceLayer, toStoredConcern, toStoredFinding, unavailableReviewStateAuthenticatorLayer, validateReviewState, webCryptoReviewStateAuthenticatorLayer };
|
|
77
|
+
export { AGENT_PROMPT_PREAMBLE, CandidateAssessment, ChangedFile, ChangedFileStatus, ChangedFileSummary, ChangedFilesView, ChangedPath, CodeReview, ConcernCandidate, DEFAULT_GITHUB_REVIEW_AUTHOR_LOGIN, DEFAULT_MODEL, DEFAULT_PROVIDER, DelegateFileReview, DiscoveredConcern, EFFORT_ALIASES, FINGERPRINT_MARKER_LENGTH, FailedReviewPass, FailedReviewUnit, FanOutCoordinatorToolkit, FanOutCoordinatorToolkitLayer, FanOutReviewToolkit, FanOutReviewer, FanOutReviewerProfile, FileDiffQuery, FileDiffView, FileReviewBrief, FileReviewDelegationFailure, FileReviewEvidence, FileReviewFailure, FileReviewReport, FileReviewRequest, FileReviewToolkit, FileReviewToolkitLayer, FileReviewUnitFailed, FileReviewUnitResult, FileReviewWorkRejected, FileReviewer, FileSlice, FileSliceQuery, FindingCandidate, FindingCategory, FindingSeverity, GitCommitSha, GitHubApiFailure, GitHubEventWire, GitHubReviewTarget, InvalidEffortInput, LIVE_GATE_ENV, ListChangedFiles, ListChangedFilesQuery, ListReviewUnits, ListReviewUnitsQuery, MAX_CHANGED_FILES, MAX_CHILD_CONCERNS, MAX_CHILD_FINDINGS, MAX_CONCERNS, MAX_FILE_CHARS, MAX_FILE_EVIDENCE_CHARS, MAX_FILE_REVIEW_TOOL_CALLS, MAX_FINDINGS, MAX_MERGED_FINDINGS, MAX_PATCH_CHARS, MAX_REPORTED_UNASSIGNED_EVIDENCE_SHARDS, MAX_REVIEW_CHILDREN, MAX_REVIEW_CONTENT_CHARS, MAX_REVIEW_STATE_MARKER_CHARS, MAX_REVIEW_UNITS, MAX_UNIT_CANDIDATES, MAX_UNIT_EVIDENCE_SHARDS, MAX_UNIT_FILES, MAX_WALKTHROUGH_ENTRIES, MAX_WALKTHROUGH_SUMMARY_CHARS, PROGRESS_COMMENT_MARKER_PREFIX, PROVIDER_CREDENTIAL_ENV, PROVIDER_EFFORT_RUNGS, PrReview, PriorReviewLookupFailure, PriorReviews, PublishedReview, PullRequestMetadata, PullRequestReviewer, PullRequestReviewerProfile, PullRequestSource, PullRequestSourceFailure, REVIEW_TOOL_RESULT_MAX_BYTES, ReadFile, ReadFileDiff, RetirableReview, RetirableReviewComment, ReviewAssurance, ReviewCandidate, ReviewCandidateId, ReviewCommentDraft, ReviewConcern, ReviewCoverage, ReviewDiscoveryPass, ReviewDiscoveryPerspective, ReviewEvent, ReviewEvidenceShard, ReviewEvidenceShardId, ReviewExecutionContext, ReviewFinding, ReviewHeadComparison, ReviewInputCoverage, ReviewInputViolation, ReviewMission, ReviewMode, ReviewPassId, ReviewProgressReporter, ReviewPublicationPlan, ReviewPublisher, ReviewRetirementFailure, ReviewRetirementHost, ReviewRetirementReport, ReviewRiskCategory, ReviewRunOutcome, ReviewScopeMode, ReviewShape, ReviewState, ReviewStateAuthenticationFailure, ReviewStateAuthenticator, ReviewStateMarker, ReviewStateMarkerTooLarge, ReviewTargetUnresolved, ReviewToolkit, ReviewToolkitLayer, ReviewUnit, ReviewUnitId, ReviewUnitPlan, ReviewVerdict, ReviewWorkPerspective, ReviewWorkPhase, StoredReviewConcern, StoredReviewFinding, UNIT_CHANGED_LINE_BUDGET, UNIT_EVIDENCE_CHAR_BUDGET, WalkthroughEntry, anchorViolation, annotatePatch, anthropicClientLayer, assessReviewCoverage, assessReviewPipeline, assessmentSettlesSuggestionExactly, buildProfileMission, buildReviewMission, clampMaxFindings, classifyReviewRisks, collectUnitFileSummaries, commentableLines, compactReviewLogger, compactReviewLoggingLayer, compileIgnoreGlobs, computeChangesetFingerprint, computeProfileFingerprint, confirmedFindingForPublication, decideReviewRetirement, defaultFanOutPolicy, defaultFileReviewerPolicy, defaultReviewPolicy, describeReviewModel, enforceFindingsBound, estimateReviewEffort, executeReview, extractFingerprint, fanOutHandlersLayer, fanOutHandlersLayerFor, fanOutReviewBudgetLimits, fanOutReviewInstructions, fanOutReviewerProfile, fileDiffView, fileReviewDelegation, fileReviewEvidenceChunks, fileReviewPolicy, fileReviewerInstructions, findingAnchorInUnitEvidence, fingerprintUnchanged, formatCompactLogLine, fromStoredConcern, fromStoredFinding, gitHubPriorReviewsLayer, gitHubPullRequestSourceLayer, gitHubReviewLayers, gitHubReviewProgressLayer, gitHubReviewPublisherLayer, gitHubReviewRetirementHostLayer, hasReviewMetadataMarker, hasReviewableContent, ignoringPullRequestSourceLayer, isEffortPosition, isReviewableFile, listChangedFilesHandler, liveProfileEnabled, makeAnthropicReviewModel, makeFanOutReviewInstructions, makeFanOutReviewSuite, makeFileReviewerInstructions, makeOpenAiReviewModel, makeReviewInstructions, mapFileReviewChildFailure, noopReviewProgressReporterLayer, normalizeRepoRelativePath, openAiClientLayer, parseEffortPosition, parseGitHubSubmittedAt, parsePatch, parseProgressClaim, planPublication, planReviewUnits, planWalkthrough, pullRequestReviewerProfile, rankAndDedupeFindings, readFileDiffHandler, readFileHandler, readGitHubEvent, renderAgentPrompt, renderFingerprintMarker, renderProgressBeginBody, renderProgressClaimMarker, renderProgressSettleBody, renderReviewContent, resolveEffortRung, resolveGuidance, resolveReviewTarget, retireStaleReviews, reviewBudgetLimits, reviewCandidateSubjectKey, reviewInstructions, selectReviewRange, selectedPullRequestSourceLayer, toStoredConcern, toStoredFinding, unavailableReviewStateAuthenticatorLayer, validateReviewState, webCryptoReviewStateAuthenticatorLayer };
|
|
66
78
|
|
|
67
79
|
//# sourceMappingURL=index.mjs.map
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":[],"sources":["../src/internal/profiles.ts"],"sourcesContent":["import { Schema } from \"effect\";\n\n// ---------------------------------------------------------------------------\n// Committed capability claims, schema-first: what this package's reviewers\n// promise and — just as deliberately — what they never claim. Deployment\n// class E (ephemeral): one bounded AgentRuntime.run per invocation, no\n// durability, no exactly-once external effects (DUR-003).\n// ---------------------------------------------------------------------------\n\n/** The flat reviewer's committed capability claim. */\nexport class PullRequestReviewerProfile extends Schema.Class<PullRequestReviewerProfile>(\n \"@effect-agent/pr-review/PullRequestReviewerProfile\",\n)({\n /** Ephemeral runtime: one bounded AgentRuntime.run per invocation. */\n deploymentClass: Schema.Literal(\"E\"),\n /** Every model-callable tool is a read of the pull request; none mutate. */\n readOnlyToolSurface: Schema.Literal(true),\n /** The review is posted by the host AFTER the run settles, never by a tool. */\n publicationOutsideAgentLoop: Schema.Literal(true),\n /** Finding anchors are validated against the parsed diff before posting. */\n anchorsValidatedBeforePublication: Schema.Literal(true),\n /** The live profile is env-gated out of every ordinary test gate. */\n liveProfileOptIn: Schema.Literal(true),\n /** Never claimed at any phase (DUR-003). */\n exactlyOnceExternalEffects: Schema.Literal(false),\n}) {}\n\nexport const pullRequestReviewerProfile = PullRequestReviewerProfile.make({\n deploymentClass: \"E\",\n readOnlyToolSurface: true,\n publicationOutsideAgentLoop: true,\n anchorsValidatedBeforePublication: true,\n liveProfileOptIn: true,\n exactlyOnceExternalEffects: false,\n});\n\n/** The fan-out reviewer's committed capability claim, schema-first. */\nexport class FanOutReviewerProfile extends Schema.Class<FanOutReviewerProfile>(\n \"@effect-agent/pr-review/FanOutReviewerProfile\",\n)({\n /** Ephemeral runtime: one bounded AgentRuntime.run per invocation. */\n deploymentClass: Schema.Literal(\"E\"),\n /** Every model-callable tool — parent and child — is a read; none mutate. */\n readOnlyToolSurface: Schema.Literal(true),\n /** The review is posted by the host AFTER the run settles, never by a tool. */\n publicationOutsideAgentLoop: Schema.Literal(true),\n /** Child findings are untrusted; anchors are validated against the parsed diff. */\n anchorsValidatedBeforePublication: Schema.Literal(true),\n /** S1 attached ephemeral delegation at depth 1; nested delegation is rejected. */\n attachedEphemeralDelegation: Schema.Literal(true),\n /** A failed unit surfaces to the coordinator as a typed failed result, never retried. */\n failedUnitsReportedNotRetried: Schema.Literal(true),\n /** The live profile is env-gated out of every ordinary test gate. */\n liveProfileOptIn: Schema.Literal(true),\n /** Never claimed at any phase (DUR-003). */\n exactlyOnceExternalEffects: Schema.Literal(false),\n}) {}\n\nexport const fanOutReviewerProfile = FanOutReviewerProfile.make({\n deploymentClass: \"E\",\n readOnlyToolSurface: true,\n publicationOutsideAgentLoop: true,\n anchorsValidatedBeforePublication: true,\n attachedEphemeralDelegation: true,\n failedUnitsReportedNotRetried: true,\n liveProfileOptIn: true,\n exactlyOnceExternalEffects: false,\n});\n\nexport const LIVE_GATE_ENV = \"EFFECT_AGENT_LIVE\";\n\n/**\n * `EFFECT_AGENT_LIVE=1` plus the named credential is the only enabling\n * combination for live (network, billed) profiles.\n */\nexport const liveProfileEnabled = (\n env: Record<string, string | undefined>,\n credentialEnv: string,\n): boolean => env[LIVE_GATE_ENV] === \"1\" && (env[credentialEnv] ?? \"\") !== \"\";\n"],"mappings":";;;;;;AAUA,IAAa,6BAAb,cAAgD,OAAO,MACrD,oDACF,CAAC,CAAC;;CAEA,iBAAiB,OAAO,QAAQ,GAAG;;CAEnC,qBAAqB,OAAO,QAAQ,IAAI;;CAExC,6BAA6B,OAAO,QAAQ,IAAI;;CAEhD,mCAAmC,OAAO,QAAQ,IAAI;;CAEtD,kBAAkB,OAAO,QAAQ,IAAI;;CAErC,4BAA4B,OAAO,QAAQ,KAAK;AAClD,CAAC,CAAC,CAAC,CAAC;AAEJ,MAAa,6BAA6B,2BAA2B,KAAK;CACxE,iBAAiB;CACjB,qBAAqB;CACrB,6BAA6B;CAC7B,mCAAmC;CACnC,kBAAkB;CAClB,4BAA4B;AAC9B,CAAC;;AAGD,IAAa,wBAAb,cAA2C,OAAO,MAChD,+CACF,CAAC,CAAC;;CAEA,iBAAiB,OAAO,QAAQ,GAAG;;CAEnC,qBAAqB,OAAO,QAAQ,IAAI;;CAExC,6BAA6B,OAAO,QAAQ,IAAI;;CAEhD,mCAAmC,OAAO,QAAQ,IAAI;;CAEtD,6BAA6B,OAAO,QAAQ,IAAI;;CAEhD,+BAA+B,OAAO,QAAQ,IAAI;;CAElD,kBAAkB,OAAO,QAAQ,IAAI;;CAErC,4BAA4B,OAAO,QAAQ,KAAK;AAClD,CAAC,CAAC,CAAC,CAAC;AAEJ,MAAa,wBAAwB,sBAAsB,KAAK;CAC9D,iBAAiB;CACjB,qBAAqB;CACrB,6BAA6B;CAC7B,mCAAmC;CACnC,6BAA6B;CAC7B,+BAA+B;CAC/B,kBAAkB;CAClB,4BAA4B;AAC9B,CAAC;AAED,MAAa,gBAAgB;;;;;AAM7B,MAAa,sBACX,KACA,kBACY,IAAA,yBAAuB,QAAQ,IAAI,kBAAkB,QAAQ"}
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../src/internal/profiles.ts"],"sourcesContent":["import { Schema } from \"effect\";\n\n// ---------------------------------------------------------------------------\n// Committed capability claims, schema-first: what this package's reviewers\n// promise and — just as deliberately — what they never claim. Deployment\n// class E (ephemeral): one bounded AgentRuntime.run per invocation, no\n// durability, no exactly-once external effects (DUR-003).\n// ---------------------------------------------------------------------------\n\n/** The flat reviewer's committed capability claim. */\nexport class PullRequestReviewerProfile extends Schema.Class<PullRequestReviewerProfile>(\n \"@effect-agent/pr-review/PullRequestReviewerProfile\",\n)({\n /** Ephemeral runtime: one bounded AgentRuntime.run per invocation. */\n deploymentClass: Schema.Literal(\"E\"),\n /** Every model-callable tool is a read of the pull request; none mutate. */\n readOnlyToolSurface: Schema.Literal(true),\n /** The review is posted by the host AFTER the run settles, never by a tool. */\n publicationOutsideAgentLoop: Schema.Literal(true),\n /** Finding anchors are validated against the parsed diff before posting. */\n anchorsValidatedBeforePublication: Schema.Literal(true),\n /** The live profile is env-gated out of every ordinary test gate. */\n liveProfileOptIn: Schema.Literal(true),\n /** Never claimed at any phase (DUR-003). */\n exactlyOnceExternalEffects: Schema.Literal(false),\n}) {}\n\nexport const pullRequestReviewerProfile = PullRequestReviewerProfile.make({\n deploymentClass: \"E\",\n readOnlyToolSurface: true,\n publicationOutsideAgentLoop: true,\n anchorsValidatedBeforePublication: true,\n liveProfileOptIn: true,\n exactlyOnceExternalEffects: false,\n});\n\n/** The fan-out reviewer's committed capability claim, schema-first. */\nexport class FanOutReviewerProfile extends Schema.Class<FanOutReviewerProfile>(\n \"@effect-agent/pr-review/FanOutReviewerProfile\",\n)({\n /** Ephemeral runtime: one bounded AgentRuntime.run per invocation. */\n deploymentClass: Schema.Literal(\"E\"),\n /** Every model-callable tool — parent and child — is a read; none mutate. */\n readOnlyToolSurface: Schema.Literal(true),\n /** The review is posted by the host AFTER the run settles, never by a tool. */\n publicationOutsideAgentLoop: Schema.Literal(true),\n /** Child findings are untrusted; anchors are validated against the parsed diff. */\n anchorsValidatedBeforePublication: Schema.Literal(true),\n /** S1 attached ephemeral delegation at depth 1; nested delegation is rejected. */\n attachedEphemeralDelegation: Schema.Literal(true),\n /** A failed unit surfaces to the coordinator as a typed failed result, never retried. */\n failedUnitsReportedNotRetried: Schema.Literal(true),\n /** Risk categories and required specialist passes are pure host policy. */\n hostOwnedRiskClassification: Schema.Literal(true),\n /** Every host-classified high-risk unit receives a fresh specialist pass. */\n redundantHighRiskDiscovery: Schema.Literal(true),\n /** Only exact candidates confirmed by a fresh verifier child may publish. */\n independentCandidateVerification: Schema.Literal(true),\n /** No bounded model pipeline proves that a pull request is defect-free. */\n defectAbsenceProven: Schema.Literal(false),\n /** The live profile is env-gated out of every ordinary test gate. */\n liveProfileOptIn: Schema.Literal(true),\n /** Never claimed at any phase (DUR-003). */\n exactlyOnceExternalEffects: Schema.Literal(false),\n}) {}\n\nexport const fanOutReviewerProfile = FanOutReviewerProfile.make({\n deploymentClass: \"E\",\n readOnlyToolSurface: true,\n publicationOutsideAgentLoop: true,\n anchorsValidatedBeforePublication: true,\n attachedEphemeralDelegation: true,\n failedUnitsReportedNotRetried: true,\n hostOwnedRiskClassification: true,\n redundantHighRiskDiscovery: true,\n independentCandidateVerification: true,\n defectAbsenceProven: false,\n liveProfileOptIn: true,\n exactlyOnceExternalEffects: false,\n});\n\nexport const LIVE_GATE_ENV = \"EFFECT_AGENT_LIVE\";\n\n/**\n * `EFFECT_AGENT_LIVE=1` plus the named credential is the only enabling\n * combination for live (network, billed) profiles.\n */\nexport const liveProfileEnabled = (\n env: Record<string, string | undefined>,\n credentialEnv: string,\n): boolean => env[LIVE_GATE_ENV] === \"1\" && (env[credentialEnv] ?? \"\") !== \"\";\n"],"mappings":";;;;;;AAUA,IAAa,6BAAb,cAAgD,OAAO,MACrD,oDACF,CAAC,CAAC;;CAEA,iBAAiB,OAAO,QAAQ,GAAG;;CAEnC,qBAAqB,OAAO,QAAQ,IAAI;;CAExC,6BAA6B,OAAO,QAAQ,IAAI;;CAEhD,mCAAmC,OAAO,QAAQ,IAAI;;CAEtD,kBAAkB,OAAO,QAAQ,IAAI;;CAErC,4BAA4B,OAAO,QAAQ,KAAK;AAClD,CAAC,CAAC,CAAC,CAAC;AAEJ,MAAa,6BAA6B,2BAA2B,KAAK;CACxE,iBAAiB;CACjB,qBAAqB;CACrB,6BAA6B;CAC7B,mCAAmC;CACnC,kBAAkB;CAClB,4BAA4B;AAC9B,CAAC;;AAGD,IAAa,wBAAb,cAA2C,OAAO,MAChD,+CACF,CAAC,CAAC;;CAEA,iBAAiB,OAAO,QAAQ,GAAG;;CAEnC,qBAAqB,OAAO,QAAQ,IAAI;;CAExC,6BAA6B,OAAO,QAAQ,IAAI;;CAEhD,mCAAmC,OAAO,QAAQ,IAAI;;CAEtD,6BAA6B,OAAO,QAAQ,IAAI;;CAEhD,+BAA+B,OAAO,QAAQ,IAAI;;CAElD,6BAA6B,OAAO,QAAQ,IAAI;;CAEhD,4BAA4B,OAAO,QAAQ,IAAI;;CAE/C,kCAAkC,OAAO,QAAQ,IAAI;;CAErD,qBAAqB,OAAO,QAAQ,KAAK;;CAEzC,kBAAkB,OAAO,QAAQ,IAAI;;CAErC,4BAA4B,OAAO,QAAQ,KAAK;AAClD,CAAC,CAAC,CAAC,CAAC;AAEJ,MAAa,wBAAwB,sBAAsB,KAAK;CAC9D,iBAAiB;CACjB,qBAAqB;CACrB,6BAA6B;CAC7B,mCAAmC;CACnC,6BAA6B;CAC7B,+BAA+B;CAC/B,6BAA6B;CAC7B,4BAA4B;CAC5B,kCAAkC;CAClC,qBAAqB;CACrB,kBAAkB;CAClB,4BAA4B;AAC9B,CAAC;AAED,MAAa,gBAAgB;;;;;AAM7B,MAAa,sBACX,KACA,kBACY,IAAA,yBAAuB,QAAQ,IAAI,kBAAkB,QAAQ"}
|