@effect-agent/pr-review 0.1.0-beta.10 → 0.1.0-beta.12
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/dist/action.mjs +2 -2
- package/dist/cli.mjs +2 -2
- package/dist/{github-DlBGPz5W.mjs → github-5TCFrxfX.mjs} +3 -3
- package/dist/{github-DlBGPz5W.mjs.map → github-5TCFrxfX.mjs.map} +1 -1
- package/dist/index.mjs +2 -2
- package/dist/{providers-DEynJAOy.mjs → providers-DobNWMUn.mjs} +3 -3
- package/dist/{providers-DEynJAOy.mjs.map → providers-DobNWMUn.mjs.map} +1 -1
- package/dist/testing.mjs +1 -1
- package/package.json +2 -2
- package/src/internal/fan-out.ts +2 -2
- package/src/internal/providers.ts +4 -1
package/dist/action.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as ReviewStateAuthenticator, B as selectedPullRequestSourceLayer, G as webCryptoReviewStateAuthenticatorLayer, T as ReviewHeadComparison, U as unavailableReviewStateAuthenticatorLayer, _n as normalizeRepoRelativePath, a as PriorReviews, mn as PullRequestSource, w as ReviewExecutionContext, x as retireStaleReviews, z as selectReviewRange } from "./github-
|
|
2
|
-
import { A as InvalidEffortInput, M as parseEffortPosition, a as anthropicClientLayer, b as fanOutReviewBudgetLimits, c as makeOpenAiReviewModel, f as gitHubReviewLayers, h as PrReview, l as openAiClientLayer, m as resolveReviewTarget, n as DEFAULT_PROVIDER, o as describeReviewModel, p as readGitHubEvent, s as makeAnthropicReviewModel, x as reviewBudgetLimits } from "./providers-
|
|
1
|
+
import { A as ReviewStateAuthenticator, B as selectedPullRequestSourceLayer, G as webCryptoReviewStateAuthenticatorLayer, T as ReviewHeadComparison, U as unavailableReviewStateAuthenticatorLayer, _n as normalizeRepoRelativePath, a as PriorReviews, mn as PullRequestSource, w as ReviewExecutionContext, x as retireStaleReviews, z as selectReviewRange } from "./github-5TCFrxfX.mjs";
|
|
2
|
+
import { A as InvalidEffortInput, M as parseEffortPosition, a as anthropicClientLayer, b as fanOutReviewBudgetLimits, c as makeOpenAiReviewModel, f as gitHubReviewLayers, h as PrReview, l as openAiClientLayer, m as resolveReviewTarget, n as DEFAULT_PROVIDER, o as describeReviewModel, p as readGitHubEvent, s as makeAnthropicReviewModel, x as reviewBudgetLimits } from "./providers-DobNWMUn.mjs";
|
|
3
3
|
import { Config, Console, Effect, FileSystem, Layer, Option, Redacted, Schema } from "effect";
|
|
4
4
|
import { BudgetExceeded, UsageBudgetLimits } from "effect-agent";
|
|
5
5
|
import { FetchHttpClient } from "effect/unstable/http";
|
package/dist/cli.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as fingerprintUnchanged } from "./github-
|
|
2
|
-
import { A as InvalidEffortInput, M as parseEffortPosition, a as anthropicClientLayer, c as makeOpenAiReviewModel, f as gitHubReviewLayers, h as PrReview, l as openAiClientLayer, m as resolveReviewTarget, n as DEFAULT_PROVIDER, o as describeReviewModel, s as makeAnthropicReviewModel, t as DEFAULT_MODEL, w as ReviewPublicationPlan } from "./providers-
|
|
1
|
+
import { c as fingerprintUnchanged } from "./github-5TCFrxfX.mjs";
|
|
2
|
+
import { A as InvalidEffortInput, M as parseEffortPosition, a as anthropicClientLayer, c as makeOpenAiReviewModel, f as gitHubReviewLayers, h as PrReview, l as openAiClientLayer, m as resolveReviewTarget, n as DEFAULT_PROVIDER, o as describeReviewModel, s as makeAnthropicReviewModel, t as DEFAULT_MODEL, w as ReviewPublicationPlan } from "./providers-DobNWMUn.mjs";
|
|
3
3
|
import { Console, Effect, Layer, Option, Schema } from "effect";
|
|
4
4
|
import { BudgetExceeded } from "effect-agent";
|
|
5
5
|
import { FetchHttpClient } from "effect/unstable/http";
|
|
@@ -597,7 +597,7 @@ const fileReviewerInstructions = makeFileReviewerInstructions();
|
|
|
597
597
|
const defaultFileReviewerPolicy = AgentPolicy.make({
|
|
598
598
|
maxTurns: 8,
|
|
599
599
|
maxToolCalls: MAX_FILE_REVIEW_TOOL_CALLS,
|
|
600
|
-
maxDuration: "
|
|
600
|
+
maxDuration: "6 minutes",
|
|
601
601
|
toolConcurrency: 2,
|
|
602
602
|
tokenBudget: 2e5,
|
|
603
603
|
contextTokenLimit: 15e4,
|
|
@@ -634,7 +634,7 @@ const fileReviewPolicy = SubagentPolicy.make({
|
|
|
634
634
|
maxConcurrency: 3,
|
|
635
635
|
maxTurns: 8,
|
|
636
636
|
maxToolCalls: MAX_FILE_REVIEW_TOOL_CALLS,
|
|
637
|
-
maxDuration: "
|
|
637
|
+
maxDuration: "6 minutes"
|
|
638
638
|
});
|
|
639
639
|
const delegationDescription = "Delegate the review of one planned unit to a bounded file-reviewer child and return its line-anchored findings. Call it exactly once per unit from list_review_units; never retry a failed unit.";
|
|
640
640
|
/**
|
|
@@ -1673,4 +1673,4 @@ const fingerprintUnchanged = (current) => Effect.gen(function* () {
|
|
|
1673
1673
|
//#endregion
|
|
1674
1674
|
export { FanOutReviewToolkit as $, ReviewMission as $t, ReviewStateAuthenticator as A, ReviewUnit as At, selectedPullRequestSourceLayer as B, FileDiffView as Bt, MAX_REVIEW_STATE_MARKER_CHARS as C, parsePatch as Cn, makeFanOutReviewInstructions as Ct, ReviewScopeMode as D, MAX_MERGED_FINDINGS as Dt, ReviewMode as E, mapFileReviewChildFailure as Et, buildProfileMission as F, rankAndDedupeFindings as Ft, webCryptoReviewStateAuthenticatorLayer as G, ListChangedFilesQuery as Gt, toStoredFinding as H, FileSliceQuery as Ht, computeProfileFingerprint as I, ChangedFileSummary as It, extractFingerprint as J, PullRequestReviewer as Jt, FINGERPRINT_MARKER_LENGTH as K, MAX_CONCERNS as Kt, fromStoredConcern as L, ChangedFilesView as Lt, ReviewStateMarkerTooLarge as M, ReviewUnitPlan as Mt, StoredReviewConcern as N, UNIT_CHANGED_LINE_BUDGET as Nt, ReviewState as O, MAX_REVIEW_UNITS as Ot, StoredReviewFinding as P, planReviewUnits as Pt, FanOutCoordinatorToolkitLayer as Q, ReviewFinding as Qt, fromStoredFinding as R, CodeReview as Rt, GitCommitSha as S, commentableLines as Sn, fileReviewerInstructions as St, ReviewHeadComparison as T, makeFileReviewerInstructions as Tt, unavailableReviewStateAuthenticatorLayer as U, FindingSeverity as Ut, toStoredConcern as V, FileSlice as Vt, validateReviewState as W, ListChangedFiles as Wt, DelegateFileReview as X, ReadFileDiff as Xt, renderFingerprintMarker as Y, ReadFile as Yt, FanOutCoordinatorToolkit as Z, ReviewConcern as Zt, ReviewRetirementHost as _, normalizeRepoRelativePath as _n, fanOutHandlersLayer as _t, PriorReviews as a, listChangedFilesHandler as an, FileReviewToolkit as at, hasReviewMetadataMarker as b, ChangedPath as bn, fileReviewDelegation as bt, fingerprintUnchanged as c, readFileHandler as cn, FileReviewUnitResult as ct, gitHubReviewPublisherLayer as d, MAX_CHANGED_FILES as dn, ListReviewUnitsQuery as dt, ReviewToolkit as en, FanOutReviewer as et, gitHubReviewRetirementHostLayer as f, MAX_FILE_CHARS as fn, MAX_CHILD_CONCERNS as ft, ReviewRetirementFailure as g, ReviewInputViolation as gn, defaultFileReviewerPolicy as gt, RetirableReviewComment as h, PullRequestSourceFailure as hn, defaultFanOutPolicy as ht, PriorReviewLookupFailure as i, defaultReviewPolicy as in, FileReviewRequest as it, ReviewStateMarker as j, ReviewUnitId as jt, ReviewStateAuthenticationFailure as k, MAX_UNIT_FILES as kt, gitHubPriorReviewsLayer as l, resolveGuidance as ln, FileReviewer as lt, RetirableReview as m, PullRequestSource as mn, MAX_FILE_REVIEW_TOOL_CALLS as mt, GitHubApiFailure as n, ReviewVerdict as nn, FileReviewDelegationFailure as nt, PublishedReview as o, makeReviewInstructions as on, FileReviewToolkitLayer as ot, parseGitHubSubmittedAt as p, PullRequestMetadata as pn, MAX_CHILD_FINDINGS as pt, computeChangesetFingerprint as q, MAX_FINDINGS as qt, GitHubReviewTarget as r, clampMaxFindings as rn, FileReviewReport as rt, ReviewPublisher as s, readFileDiffHandler as sn, FileReviewUnitFailed as st, DEFAULT_GITHUB_REVIEW_AUTHOR_LOGIN as t, ReviewToolkitLayer as tn, FileReviewBrief as tt, gitHubPullRequestSourceLayer as u, reviewInstructions as un, ListReviewUnits as ut, ReviewRetirementReport as v, ChangedFile as vn, fanOutHandlersLayerFor as vt, ReviewExecutionContext as w, makeFanOutReviewSuite as wt, retireStaleReviews as x, annotatePatch as xn, fileReviewPolicy as xt, decideReviewRetirement as y, ChangedFileStatus as yn, fanOutReviewInstructions as yt, selectReviewRange as z, FileDiffQuery as zt };
|
|
1675
1675
|
|
|
1676
|
-
//# sourceMappingURL=github-
|
|
1676
|
+
//# sourceMappingURL=github-5TCFrxfX.mjs.map
|