@effect-agent/pr-review 0.1.0-beta.22 → 0.1.0-beta.23

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/index.mjs CHANGED
@@ -1,5 +1,5 @@
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";
1
+ import { $ as DiscoveredConcern, $n as commentableLines, $t as boundedListReason, A as ReviewStateAuthenticationFailure, An as clampMaxFindings, At as MAX_UNIT_FILES, B as selectReviewRange, Bn as MAX_CHANGED_FILES, Bt as UNIT_CHANGED_LINE_BUDGET, C as MAX_REVIEW_STATE_MARKER_CHARS, Cn as ReviewConcern, Ct as reviewCandidateSubjectKey, D as ReviewMode, Dn as ReviewToolkitLayer, Dt as MAX_REPORTED_UNASSIGNED_EVIDENCE_SHARDS, E as ReviewHeadComparison, En as ReviewToolkit, Et as MAX_MERGED_FINDINGS, F as StoredReviewFinding, Fn as makeReviewInstructions, Ft as ReviewPassId, G as validateReviewState, Gn as ReviewInputViolation, Gt as rankAndDedupeConcerns, H as toStoredConcern, Hn as PullRequestMetadata, Ht as classifyReviewRisks, I as buildProfileMission, In as readFileDiffHandler, It as ReviewRiskCategory, J as computeChangesetFingerprint, Jn as ChangedFile, Jt as FailedReviewUnit, K as webCryptoReviewStateAuthenticatorLayer, Kn as normalizeRepoRelativePath, Kt as rankAndDedupeFindings, L as computeProfileFingerprint, Ln as readFileHandler, Lt as ReviewUnit, M as ReviewStateMarker, Mn as fileDiffView, Mt as ReviewDiscoveryPerspective, N as ReviewStateMarkerTooLarge, Nn as fileReviewEvidenceChunks, Nt as ReviewEvidenceShard, O as ReviewScopeMode, On as ReviewVerdict, Ot as MAX_REVIEW_UNITS, P as StoredReviewConcern, Pn as listChangedFilesHandler, Pt as ReviewEvidenceShardId, Q as ConcernCandidate, Qn as annotatePatch, Qt as assessFlatReview, R as fromStoredConcern, Rn as resolveGuidance, Rt as ReviewUnitId, S as GitCommitSha, Sn as ReadFileDiff, St as makeFileReviewerInstructions, T as ReviewExecutionContext, Tn as ReviewMission, Tt as MAX_FILE_EVIDENCE_CHARS, U as toStoredFinding, Un as PullRequestSource, Ut as findingAnchorInUnitEvidence, V as selectedPullRequestSourceLayer, Vn as MAX_FILE_CHARS, Vt as UNIT_EVIDENCE_CHAR_BUDGET, W as unavailableReviewStateAuthenticatorLayer, Wn as PullRequestSourceFailure, Wt as planReviewUnits, X as renderFingerprintMarker, Xn as ChangedPath, Xt as ReviewCoverage, Y as extractFingerprint, Yn as ChangedFileStatus, Yt as ReviewAssurance, Z as CandidateAssessment, Zn as MAX_REVIEW_CONTENT_CHARS, Zt as ReviewInputCoverage, _ as ReviewRetirementHost, _n as MAX_WALKTHROUGH_ENTRIES, _t as assessmentSettlesSuggestionExactly, a as PriorReviews, an as CodeReview, at as FindingCandidate, b as hasReviewMetadataMarker, bn as REVIEW_TOOL_RESULT_MAX_BYTES, bt as fileReviewerInstructions, c as fingerprintUnchanged, cn as FileSlice, ct as MAX_FILE_REVIEW_TOOL_CALLS, d as gitHubReviewPublisherLayer, dn as FindingSeverity, dt as REVIEW_UNIT_CONCURRENCY, en as compatibilityCoverage, er as hasReviewableContent, et as FileReviewBrief, f as gitHubReviewRetirementHostLayer, fn as ListChangedFiles, ft as ReviewCandidate, g as ReviewRetirementFailure, gn as MAX_PATCH_CHARS, gt as ReviewWorkPhase, h as RetirableReviewComment, hn as MAX_FINDINGS, ht as ReviewWorkPerspective, i as PriorReviewLookupFailure, in as ChangedFilesView, it as FileReviewer, j as ReviewStateAuthenticator, jn as defaultReviewPolicy, jt as ReviewDiscoveryPass, k as ReviewState, kn as WalkthroughEntry, kt as MAX_UNIT_EVIDENCE_SHARDS, l as gitHubPriorReviewsLayer, ln as FileSliceQuery, lt as MAX_REVIEW_CHILDREN, m as RetirableReview, mn as MAX_CONCERNS, mt as ReviewPassMisbehaved, n as GitHubApiFailure, nn as flatAssurance, nr as parsePatch, nt as FileReviewReport, o as PublishedReview, on as FileDiffQuery, ot as MAX_CHILD_CONCERNS, p as parseGitHubSubmittedAt, pn as ListChangedFilesQuery, pt as ReviewCandidateId, q as FINGERPRINT_MARKER_LENGTH, qn as anchorViolation, qt as FailedReviewPass, r as GitHubReviewTarget, rn as ChangedFileSummary, rr as renderReviewContent, rt as FileReviewToolkit, s as ReviewPublisher, sn as FileDiffView, st as MAX_CHILD_FINDINGS, t as DEFAULT_GITHUB_REVIEW_AUTHOR_LOGIN, tn as fanOutInputCoverage, tr as isReviewableFile, tt as FileReviewEvidence, u as gitHubPullRequestSourceLayer, un as FindingCategory, ut as MAX_UNIT_CANDIDATES, v as ReviewRetirementReport, vn as MAX_WALKTHROUGH_SUMMARY_CHARS, vt as confirmedFindingForPublication, w as MAX_STORED_UNREVIEWED_PATHS, wn as ReviewFinding, wt as runFanOutReview, x as retireStaleReviews, xn as ReadFile, xt as makeFileReviewerDefinition, y as decideReviewRetirement, yn as PullRequestReviewer, yt as defaultFileReviewerPolicy, z as fromStoredFinding, zn as reviewInstructions, zt as ReviewUnitPlan } from "./github-BbwYzNrC.mjs";
2
+ import { A as reviewBudgetLimits, B as ignoringPullRequestSourceLayer, C as PrReview, D as executeFanOutReview, E as enforceFindingsBound, F as estimateReviewEffort, G as resolveEffortRung, H as InvalidEffortInput, I as planPublication, L as planWalkthrough, M as ReviewCommentDraft, N as ReviewEvent, O as executeReview, P as ReviewPublicationPlan, R as renderAgentPrompt, S as renderProgressSettleBody, T as buildReviewMission, U as isEffortPosition, V as EFFORT_ALIASES, W as parseEffortPosition, _ 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 AGENT_PROMPT_PREAMBLE, k as fanOutReviewBudgetLimits, l as openAiClientLayer, m as resolveReviewTarget, n as DEFAULT_PROVIDER, o as describeReviewModel, p as readGitHubEvent, 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 compileIgnoreGlobs } from "./providers-NyP-4rS6.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
@@ -28,18 +28,18 @@ const pullRequestReviewerProfile = PullRequestReviewerProfile.make({
28
28
  });
29
29
  /** The fan-out reviewer's committed capability claim, schema-first. */
30
30
  var FanOutReviewerProfile = class extends Schema.Class("@effect-agent/pr-review/FanOutReviewerProfile")({
31
- /** Ephemeral runtime: one bounded AgentRuntime.run per invocation. */
31
+ /** Ephemeral runtime: bounded host-scheduled child runs per invocation. */
32
32
  deploymentClass: Schema.Literal("E"),
33
- /** Every model-callable tool parent and child is a read; none mutate. */
33
+ /** Every model-callable surface is evidence-only; children expose no tools. */
34
34
  readOnlyToolSurface: Schema.Literal(true),
35
35
  /** The review is posted by the host AFTER the run settles, never by a tool. */
36
36
  publicationOutsideAgentLoop: Schema.Literal(true),
37
37
  /** Child findings are untrusted; anchors are validated against the parsed diff. */
38
38
  anchorsValidatedBeforePublication: Schema.Literal(true),
39
- /** S1 attached ephemeral delegation at depth 1; nested delegation is rejected. */
40
- attachedEphemeralDelegation: Schema.Literal(true),
41
- /** A failed unit surfaces to the coordinator as a typed failed result, never retried. */
42
- failedUnitsReportedNotRetried: Schema.Literal(true),
39
+ /** Host code schedules every pass from the deterministic plan; no coordinator model. */
40
+ hostScheduledPasses: Schema.Literal(true),
41
+ /** A failed pass is retried once, then reported and carried as unreviewed scope. */
42
+ failedPassesRetriedOnceThenCarried: Schema.Literal(true),
43
43
  /** Risk categories and required specialist passes are pure host policy. */
44
44
  hostOwnedRiskClassification: Schema.Literal(true),
45
45
  /** Every host-classified high-risk unit receives a fresh specialist pass. */
@@ -58,8 +58,8 @@ const fanOutReviewerProfile = FanOutReviewerProfile.make({
58
58
  readOnlyToolSurface: true,
59
59
  publicationOutsideAgentLoop: true,
60
60
  anchorsValidatedBeforePublication: true,
61
- attachedEphemeralDelegation: true,
62
- failedUnitsReportedNotRetried: true,
61
+ hostScheduledPasses: true,
62
+ failedPassesRetriedOnceThenCarried: true,
63
63
  hostOwnedRiskClassification: true,
64
64
  redundantHighRiskDiscovery: true,
65
65
  independentCandidateVerification: true,
@@ -74,6 +74,6 @@ const LIVE_GATE_ENV = "EFFECT_AGENT_LIVE";
74
74
  */
75
75
  const liveProfileEnabled = (env, credentialEnv) => env["EFFECT_AGENT_LIVE"] === "1" && (env[credentialEnv] ?? "") !== "";
76
76
  //#endregion
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 };
77
+ export { AGENT_PROMPT_PREAMBLE, CandidateAssessment, ChangedFile, ChangedFileStatus, ChangedFileSummary, ChangedFilesView, ChangedPath, CodeReview, ConcernCandidate, DEFAULT_GITHUB_REVIEW_AUTHOR_LOGIN, DEFAULT_MODEL, DEFAULT_PROVIDER, DiscoveredConcern, EFFORT_ALIASES, FINGERPRINT_MARKER_LENGTH, FailedReviewPass, FailedReviewUnit, FanOutReviewerProfile, FileDiffQuery, FileDiffView, FileReviewBrief, FileReviewEvidence, FileReviewReport, FileReviewToolkit, FileReviewer, FileSlice, FileSliceQuery, FindingCandidate, FindingCategory, FindingSeverity, GitCommitSha, GitHubApiFailure, GitHubEventWire, GitHubReviewTarget, InvalidEffortInput, LIVE_GATE_ENV, ListChangedFiles, ListChangedFilesQuery, 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_STORED_UNREVIEWED_PATHS, 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, REVIEW_UNIT_CONCURRENCY, ReadFile, ReadFileDiff, RetirableReview, RetirableReviewComment, ReviewAssurance, ReviewCandidate, ReviewCandidateId, ReviewCommentDraft, ReviewConcern, ReviewCoverage, ReviewDiscoveryPass, ReviewDiscoveryPerspective, ReviewEvent, ReviewEvidenceShard, ReviewEvidenceShardId, ReviewExecutionContext, ReviewFinding, ReviewHeadComparison, ReviewInputCoverage, ReviewInputViolation, ReviewMission, ReviewMode, ReviewPassId, ReviewPassMisbehaved, ReviewProgressReporter, ReviewPublicationPlan, ReviewPublisher, ReviewRetirementFailure, ReviewRetirementHost, ReviewRetirementReport, ReviewRiskCategory, ReviewRunOutcome, ReviewScopeMode, 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, assessFlatReview, assessmentSettlesSuggestionExactly, boundedListReason, buildProfileMission, buildReviewMission, clampMaxFindings, classifyReviewRisks, commentableLines, compactReviewLogger, compactReviewLoggingLayer, compatibilityCoverage, compileIgnoreGlobs, computeChangesetFingerprint, computeProfileFingerprint, confirmedFindingForPublication, decideReviewRetirement, defaultFileReviewerPolicy, defaultReviewPolicy, describeReviewModel, enforceFindingsBound, estimateReviewEffort, executeFanOutReview, executeReview, extractFingerprint, fanOutInputCoverage, fanOutReviewBudgetLimits, fanOutReviewerProfile, fileDiffView, fileReviewEvidenceChunks, fileReviewerInstructions, findingAnchorInUnitEvidence, fingerprintUnchanged, flatAssurance, formatCompactLogLine, fromStoredConcern, fromStoredFinding, gitHubPriorReviewsLayer, gitHubPullRequestSourceLayer, gitHubReviewLayers, gitHubReviewProgressLayer, gitHubReviewPublisherLayer, gitHubReviewRetirementHostLayer, hasReviewMetadataMarker, hasReviewableContent, ignoringPullRequestSourceLayer, isEffortPosition, isReviewableFile, listChangedFilesHandler, liveProfileEnabled, makeAnthropicReviewModel, makeFileReviewerDefinition, makeFileReviewerInstructions, makeOpenAiReviewModel, makeReviewInstructions, noopReviewProgressReporterLayer, normalizeRepoRelativePath, openAiClientLayer, parseEffortPosition, parseGitHubSubmittedAt, parsePatch, parseProgressClaim, planPublication, planReviewUnits, planWalkthrough, pullRequestReviewerProfile, rankAndDedupeConcerns, rankAndDedupeFindings, readFileDiffHandler, readFileHandler, readGitHubEvent, renderAgentPrompt, renderFingerprintMarker, renderProgressBeginBody, renderProgressClaimMarker, renderProgressSettleBody, renderReviewContent, resolveEffortRung, resolveGuidance, resolveReviewTarget, retireStaleReviews, reviewBudgetLimits, reviewCandidateSubjectKey, reviewInstructions, runFanOutReview, selectReviewRange, selectedPullRequestSourceLayer, toStoredConcern, toStoredFinding, unavailableReviewStateAuthenticatorLayer, validateReviewState, webCryptoReviewStateAuthenticatorLayer };
78
78
 
79
79
  //# sourceMappingURL=index.mjs.map
@@ -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 /** 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"}
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: bounded host-scheduled child runs per invocation. */\n deploymentClass: Schema.Literal(\"E\"),\n /** Every model-callable surface is evidence-only; children expose no tools. */\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 /** Host code schedules every pass from the deterministic plan; no coordinator model. */\n hostScheduledPasses: Schema.Literal(true),\n /** A failed pass is retried once, then reported and carried as unreviewed scope. */\n failedPassesRetriedOnceThenCarried: 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 hostScheduledPasses: true,\n failedPassesRetriedOnceThenCarried: 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,qBAAqB,OAAO,QAAQ,IAAI;;CAExC,oCAAoC,OAAO,QAAQ,IAAI;;CAEvD,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,qBAAqB;CACrB,oCAAoC;CACpC,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"}