dsh-llm-verifier 0.8.0 → 0.8.2
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 +2 -0
- package/lib/{auto-CGbckoaX.js → auto-DpNooy0d.js} +46 -2
- package/lib/{auto-CGbckoaX.js.map → auto-DpNooy0d.js.map} +1 -1
- package/lib/index.js +7 -2
- package/lib/index.js.map +1 -1
- package/lib/replay.js +1 -1
- package/lib/types/auto.d.ts +16 -0
- package/lib/types/auto.d.ts.map +1 -1
- package/lib/types/auto.js +37 -9
- package/lib/types/auto.js.map +1 -1
- package/lib/types/index.d.ts.map +1 -1
- package/lib/types/index.js +16 -1
- package/lib/types/index.js.map +1 -1
- package/package.json +1 -1
- package/src/auto.test.ts +42 -1
- package/src/auto.ts +39 -10
- package/src/index.test.ts +34 -0
- package/src/index.ts +16 -1
package/lib/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CRITERIA_PRESETS, CRITERIA_PRESET_IDS, DEFAULT_CRITERIA, DEFAULT_GROUND_TRUTH_NOTE, EMPTY_WORK_BASELINE, GRANULARITY, LETTERS, MAX_DIAGNOSTICS, MAX_DIAGNOSTIC_ACTION_CHARS, MAX_DIAGNOSTIC_CHARS, PROCESS_CRITERIA, PROPOSAL_CRITERIA, SCALE_DESCRIPTION, UNTRUSTED_EVIDENCE_NOTE, accumulatePairs, bradleyTerry, buildFindingContract, buildGenerationPrompt, buildPairwisePrompt, buildProgressPrompt, dedupeCriterionId, diagnosticKey, evidenceNonce, extractProgressScore, extractScore, normalizeScoreLetter, parseCriteriaMarkdown, parseDiagnostics, pivotRoundPairs, rankScores, renderDelimitedBlock, renderDiagnostics, renderReferenceContext, ringCycle, seededRandom, slugCriterionId, swapDiagnosticEvidence, topPivots } from "./core.js";
|
|
2
2
|
import { a as attachUsage, c as emptyUsage, f as partialUsage, g as resolveCapabilityFile, h as TopLogprobCapabilityCache, i as addUsage, m as requestAttempts, o as callVerifier, p as predictScoringChannel, r as RequestLimiter, s as callVerifierText, u as generateCandidate } from "./caller-Bfp4HPK_.js";
|
|
3
|
-
import { A as
|
|
3
|
+
import { A as routedRepeats, B as SingleFlight, C as estimateRoutedCalls, D as latestDirectUserSeq, E as itemBudget, F as verificationVerdict, H as stableHash, I as extractSession, L as sanitizeVerifierText, M as semanticReferencesVisible, N as semanticRouteHint, O as nextDiagnosticCycleId, P as verificationFailed, R as sessionEvents, S as buildSemanticRouteView, T as inspectRecoverySignal, V as resolveCacheFile, _ as RECOVERY_FAILURE_CONTEXT_CHARS, a as compareRouteFeedbackDetail, b as buildEvidenceIndex, c as inspectUserInteractionPause, d as planModeActive, f as selectRouteFeedbackDetail, g as MAX_ROUTED_CHECKPOINTS, h as AutoVerifierRouter, i as automaticFeedback, j as semanticDecision, k as parseSemanticRoute, l as isAwaitingUserText, m as topScoreIndices, n as PROPOSAL_FEEDBACK_NOTE, o as failedAcceptanceCriteria, p as sessionAccepted, r as analyzeAutoTask, s as hasPendingSubagents, t as MAX_ROUTE_FEEDBACK_CHARS, u as isSubagentSession, v as analyzeStructuredRoute, w as inspectDeliveryPhase, x as buildSemanticRoutePrompt, y as boundDecision, z as ScoreCache } from "./auto-DpNooy0d.js";
|
|
4
4
|
import { defineTool } from "@deepseek-ai/dsh-tools";
|
|
5
5
|
import { createUserMessage, isAgentLoopRequest } from "@deepseek-ai/dsh-llm";
|
|
6
6
|
import z from "schemastery";
|
|
@@ -6303,6 +6303,7 @@ function apply(ctx, config = {}) {
|
|
|
6303
6303
|
if (!selected.enabled || selected.autoVerifyMode !== "smart") return decision;
|
|
6304
6304
|
if (payload.signal.aborted) return decision;
|
|
6305
6305
|
if (!selected.autoVerifySubagents && isSubagentSession(payload.agent)) return decision;
|
|
6306
|
+
if (planModeActive(sessionEvents(payload.agent.session))) return decision;
|
|
6306
6307
|
if (payload.messages.some((message) => {
|
|
6307
6308
|
const kind = message.source?.kind;
|
|
6308
6309
|
return kind === "user" || kind === "team-message";
|
|
@@ -6335,6 +6336,10 @@ function apply(ctx, config = {}) {
|
|
|
6335
6336
|
const subagentsPending = evidence.pendingSubagents || await hasLiveActiveSubagents(ctx, agent, signal);
|
|
6336
6337
|
const userPause = inspectUserInteractionPause(snapshot, evidence.taskStartSeq, turn);
|
|
6337
6338
|
const userInteractionPending = evidence.pendingUserInteraction || userPause !== void 0;
|
|
6339
|
+
if (evidence.planMode) {
|
|
6340
|
+
ctx.logger.info?.("llm-verifier automatic session verification skipped: plan mode is active");
|
|
6341
|
+
return;
|
|
6342
|
+
}
|
|
6338
6343
|
if (evidence.manualVerificationAccepted) {
|
|
6339
6344
|
autoRouter.acceptManual(agent);
|
|
6340
6345
|
return;
|
|
@@ -7408,6 +7413,6 @@ function apply(ctx, config = {}) {
|
|
|
7408
7413
|
}));
|
|
7409
7414
|
}
|
|
7410
7415
|
//#endregion
|
|
7411
|
-
export { AutoVerifierRouter, CRITERIA_PRESETS, CRITERIA_PRESET_IDS, Config, DEFAULT_CRITERIA, DEFAULT_GROUND_TRUTH_NOTE, DecisionStore, EMPTY_WORK_BASELINE, GRANULARITY, LETTERS, MAX_DIAGNOSTICS, MAX_DIAGNOSTIC_ACTION_CHARS, MAX_DIAGNOSTIC_CHARS, MAX_ROUTED_CHECKPOINTS, MAX_ROUTE_FEEDBACK_CHARS, MAX_TEAM_TASK_METADATA_CHARS, MAX_WORKSPACE_FILES, MODELS_DEV_URL, PRICE_TTL_MS, PROCESS_CRITERIA, PROPOSAL_CRITERIA, PROPOSAL_FEEDBACK_NOTE, PriceResolver, RECOVERY_FAILURE_CONTEXT_CHARS, RequestLimiter, SCALE_DESCRIPTION, ScoreCache, SingleFlight, StatisticsStore, UNPRICED, UNTRUSTED_EVIDENCE_NOTE, VERIFIER_TOOL_NAMES, VerifierEngine, accumulatePairs, analyzeAutoTask, analyzeStructuredRoute, apply, automaticFeedback, boundCaptureText, boundDecision, boundDecisionCalls, bradleyTerry, buildEvidenceIndex, buildFindingContract, buildGenerationPrompt, buildPairwisePrompt, buildPlanPreReviewPrompt, buildProgressPrompt, buildSemanticRoutePrompt, buildSemanticRouteView, buildTeamTaskVerificationPrompt, callVerifier, compareRouteFeedbackDetail, costUsd, dedupeCriterionId, diagnosticKey, emptyRunStats, errorDetails, estimateRoutedCalls, evidenceNonce, extractProgressScore, extractScore, failedAcceptanceCriteria, hasLiveActiveSubagents, hasPendingSubagents, inject, inspectDeliveryPhase, inspectRecoverySignal, inspectTeamTasks, inspectUserInteractionPause, isAwaitingUserText, isSubagentSession, itemBudget, latestDirectUserSeq, loadCatalogTable, mergeProviderDocument, mergeRunStats, mergeStatisticsOverviews, name, nextDiagnosticCycleId, normalizeCriteria, normalizeScoreLetter, orientRoundPairs, parseCriteriaMarkdown, parseDiagnostics, parseModelsDevDocument, parseSemanticRoute, parseStatisticsQuery, parseVerdictLetter, partialStats, pivotRoundPairs, planFromArguments, priceEntry, priceKey, probeWorkspaceChanges, rankScores, renderDelimitedBlock, renderDiagnostics, renderReferenceContext, renderWorkspaceChanges, resolveCacheFile, resolveCatalogDataDir, resolveDecisionsFile, resolveStatisticsFile, resolveTopicDataDir, ringCycle, routedRepeats, seededRandom, selectRouteFeedbackDetail, semanticDecision, semanticReferencesVisible, semanticRouteHint, sessionAccepted, slugCriterionId, stableHash, summarizeVerdict, swapDiagnosticEvidence, topPivots, topScoreIndices, verificationFailed, verificationVerdict };
|
|
7416
|
+
export { AutoVerifierRouter, CRITERIA_PRESETS, CRITERIA_PRESET_IDS, Config, DEFAULT_CRITERIA, DEFAULT_GROUND_TRUTH_NOTE, DecisionStore, EMPTY_WORK_BASELINE, GRANULARITY, LETTERS, MAX_DIAGNOSTICS, MAX_DIAGNOSTIC_ACTION_CHARS, MAX_DIAGNOSTIC_CHARS, MAX_ROUTED_CHECKPOINTS, MAX_ROUTE_FEEDBACK_CHARS, MAX_TEAM_TASK_METADATA_CHARS, MAX_WORKSPACE_FILES, MODELS_DEV_URL, PRICE_TTL_MS, PROCESS_CRITERIA, PROPOSAL_CRITERIA, PROPOSAL_FEEDBACK_NOTE, PriceResolver, RECOVERY_FAILURE_CONTEXT_CHARS, RequestLimiter, SCALE_DESCRIPTION, ScoreCache, SingleFlight, StatisticsStore, UNPRICED, UNTRUSTED_EVIDENCE_NOTE, VERIFIER_TOOL_NAMES, VerifierEngine, accumulatePairs, analyzeAutoTask, analyzeStructuredRoute, apply, automaticFeedback, boundCaptureText, boundDecision, boundDecisionCalls, bradleyTerry, buildEvidenceIndex, buildFindingContract, buildGenerationPrompt, buildPairwisePrompt, buildPlanPreReviewPrompt, buildProgressPrompt, buildSemanticRoutePrompt, buildSemanticRouteView, buildTeamTaskVerificationPrompt, callVerifier, compareRouteFeedbackDetail, costUsd, dedupeCriterionId, diagnosticKey, emptyRunStats, errorDetails, estimateRoutedCalls, evidenceNonce, extractProgressScore, extractScore, failedAcceptanceCriteria, hasLiveActiveSubagents, hasPendingSubagents, inject, inspectDeliveryPhase, inspectRecoverySignal, inspectTeamTasks, inspectUserInteractionPause, isAwaitingUserText, isSubagentSession, itemBudget, latestDirectUserSeq, loadCatalogTable, mergeProviderDocument, mergeRunStats, mergeStatisticsOverviews, name, nextDiagnosticCycleId, normalizeCriteria, normalizeScoreLetter, orientRoundPairs, parseCriteriaMarkdown, parseDiagnostics, parseModelsDevDocument, parseSemanticRoute, parseStatisticsQuery, parseVerdictLetter, partialStats, pivotRoundPairs, planFromArguments, planModeActive, priceEntry, priceKey, probeWorkspaceChanges, rankScores, renderDelimitedBlock, renderDiagnostics, renderReferenceContext, renderWorkspaceChanges, resolveCacheFile, resolveCatalogDataDir, resolveDecisionsFile, resolveStatisticsFile, resolveTopicDataDir, ringCycle, routedRepeats, seededRandom, selectRouteFeedbackDetail, semanticDecision, semanticReferencesVisible, semanticRouteHint, sessionAccepted, slugCriterionId, stableHash, summarizeVerdict, swapDiagnosticEvidence, topPivots, topScoreIndices, verificationFailed, verificationVerdict };
|
|
7412
7417
|
|
|
7413
7418
|
//# sourceMappingURL=index.js.map
|