@tangle-network/agent-runtime 3.0.36 → 3.0.39
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/{activation-B3vLJDlj.js → activation-BbQGq4Py.js} +2 -2
- package/dist/{activation-B3vLJDlj.js.map → activation-BbQGq4Py.js.map} +1 -1
- package/dist/agent.js +3 -3
- package/dist/{coordination-manager-CvWBnD3a.js → coordination-manager-B3mF1nMA.js} +8 -7
- package/dist/{coordination-manager-CvWBnD3a.js.map → coordination-manager-B3mF1nMA.js.map} +1 -1
- package/dist/{delegate-EaeQed8U.js → delegate-DR2gtTHa.js} +2 -2
- package/dist/{delegate-EaeQed8U.js.map → delegate-DR2gtTHa.js.map} +1 -1
- package/dist/durable.js +6 -6
- package/dist/{graph-XqPnqBK7.js → graph-BBQ6L1Mc.js} +6 -6
- package/dist/{graph-XqPnqBK7.js.map → graph-BBQ6L1Mc.js.map} +1 -1
- package/dist/{improve-YLCiNpX1.js → improve-fCd7c9dZ.js} +7 -7
- package/dist/{improve-YLCiNpX1.js.map → improve-fCd7c9dZ.js.map} +1 -1
- package/dist/index.js +9 -9
- package/dist/intelligence.js +4 -4
- package/dist/kernel.js +11 -11
- package/dist/{loop-runner-8agTjOrD.js → loop-runner-DshmaiYp.js} +2 -2
- package/dist/{loop-runner-8agTjOrD.js.map → loop-runner-DshmaiYp.js.map} +1 -1
- package/dist/loop-runner-bin.js +1 -1
- package/dist/mcp/bin.js +3 -3
- package/dist/mcp/index.js +6 -6
- package/dist/{model-policy-C-RGAUW4.js → model-policy-JOcg3NRs.js} +2 -2
- package/dist/{model-policy-C-RGAUW4.js.map → model-policy-JOcg3NRs.js.map} +1 -1
- package/dist/profiles.js +1 -1
- package/dist/{provision-supervisor-DFZxaxuY.js → provision-supervisor-s7XtrK3h.js} +5 -5
- package/dist/{provision-supervisor-DFZxaxuY.js.map → provision-supervisor-s7XtrK3h.js.map} +1 -1
- package/dist/{run-cancellation-Cy8NtCtz.js → run-cancellation-CRPdLJVP.js} +2 -2
- package/dist/{run-cancellation-Cy8NtCtz.js.map → run-cancellation-CRPdLJVP.js.map} +1 -1
- package/dist/{runtime-BmAGI6UG.js → runtime-BufkoSjF.js} +12 -12
- package/dist/{runtime-BmAGI6UG.js.map → runtime-BufkoSjF.js.map} +1 -1
- package/dist/{scope-CBW-oIwP.js → scope-CpULJrAr.js} +2 -2
- package/dist/{scope-CBW-oIwP.js.map → scope-CpULJrAr.js.map} +1 -1
- package/dist/{search-executor-A2dtsTlx.js → search-executor-qcgra0sA.js} +4 -4
- package/dist/{search-executor-A2dtsTlx.js.map → search-executor-qcgra0sA.js.map} +1 -1
- package/dist/{server-B1BzXziA.js → server-CekOTeag.js} +3 -3
- package/dist/{server-B1BzXziA.js.map → server-CekOTeag.js.map} +1 -1
- package/dist/{structural-rollout-BBKSnDfB.js → structural-rollout-CSLfWHEN.js} +4 -4
- package/dist/{structural-rollout-BBKSnDfB.js.map → structural-rollout-CSLfWHEN.js.map} +1 -1
- package/dist/{supervise-zmX0eE6B.js → supervise-Dszn1xVB.js} +32 -19
- package/dist/supervise-Dszn1xVB.js.map +1 -0
- package/dist/{supervision-discovery-CvXb-yDc.js → supervision-discovery-1UUbaYC6.js} +2 -2
- package/dist/{supervision-discovery-CvXb-yDc.js.map → supervision-discovery-1UUbaYC6.js.map} +1 -1
- package/dist/{supervisor-B68cSh2T.js → supervisor-CWTFw-lP.js} +4 -6
- package/dist/supervisor-CWTFw-lP.js.map +1 -0
- package/dist/testing.js +11 -11
- package/dist/{top-web-C8TMsrZ6.js → top-web-CuLbTd93.js} +35 -11
- package/dist/{top-web-C8TMsrZ6.js.map → top-web-CuLbTd93.js.map} +1 -1
- package/dist/tui/bin.js +3 -3
- package/dist/tui/index.js +2 -2
- package/package.json +1 -1
- package/dist/supervise-zmX0eE6B.js.map +0 -1
- package/dist/supervisor-B68cSh2T.js.map +0 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { $n as persistHarnessTranscript, At as beginScopeRetainedOwnerDrive, B as beginScopeOwnerAttempt, Ci as meterUsageEvent, Cr as inheritRuntimeOwnedExecutorAttestation, Di as assertValidBudget, Dr as providerAttemptEvidence, Dt as prepareScopeRetainedOwnerTask, Ei as spendFromUsageTotals, Et as consumeScopeRetainedOwnerResult, Fr as runtimeOwnedExecutorMaterialization, Ft as scopeRetainedOwnerRestorePoint, G as scopeOwnerExecutorNodeContext, Gr as runtimeFlowBrain, H as noteScopeOwnerPlannedExecution, Ht as scopeRetainedOwnerJournalRoot, Ir as runtimeOwnedExecutorProviderEvidence, It as noteScopeRetainedOwnerCoordination, J as providerVisibleProfile, K as coordinationMcpAlias, Lr as runtimeOwnedPendingExecutorMaterialization, Mt as scopeRetainedOwnerTurnEnded, Nr as runtimeOwnedDriveHarnessProviderEvidence, Nt as assertRetainedOwnerCoordinationRekey, O as parseWorkerToolTraceArtifact, Or as recordRuntimeOwnedDriveHarnessProviderEvidence, Ot as scopeRetainedOwnerPriorSpend, Pr as runtimeOwnedExecutorExecutionBinding, Pt as reconcileScopeRetainedOwnerEnvironment, Q as assertRecursiveReservationPolicy, Rr as runtimeOwnedScopeOwnerRuntime, Rt as bindScopeRetainedOwnerEnvironmentId, St as scopeRetainedOwnerResourceReader, Tt as abandonScopeRetainedOwnerInvocation, U as recordScopeOwnerMaterialization, Ur as isRuntimeFlowBrain, Vn as generateSpanId, Vt as scopeRetainedOwnerContext, W as restoreScopeOwnerAcceptedExecution, Wr as runtimeFlowAgent, Xi as recordValue, Y as runtimeGraphMetadataKey, a as readRootStream, br as authoredAgentIdentity, bt as prepareScopeRetainedOwnerSeatSwitch, ct as recordScopeOwnerBarrenPause, di as unavailablePauseMs, dr as SeatChain, ei as RetainedExecutionPendingError, er as readHarnessTranscript, fi as unavailableResumeAt, fr as SeatChainExhaustedError, gi as contentAddress, ia as RunCancellationReason, ii as registerRetainedExecutorPreparation, kn as WORKER_TRACE_PROPAGATION, kt as scopeRetainedOwnerResult, li as cappedDoublingMs, lr as isLiveNodeStatus, lt as recordScopeOwnerDriverAttempt, mr as seatExecutionProfile, n as ROOT_STREAM_FILE, oa as linkAbort, oi as retainedExecutorSeamKey, or as createActivityLog, ot as meterRuntimeOwnedAccounting, pr as authoredSeatStages, q as coordinationProfileToolPrefix, r as createRootStreamSink, sa as runAbortable, st as meterRuntimeOwnedProviderAttempt, ui as jitteredMs, ur as isTerminalNodeStatus, ut as recordScopeOwnerPause, vi as executorFailure, wi as newUsageTotals, xt as releaseScopeRetainedOwnerForSeatPause, yr as attestRuntimeOwnedScopeOwner, zn as createOtelExporter, zt as bindScopeRetainedOwnerProvider } from "./scope-
|
|
1
|
+
import { $n as persistHarnessTranscript, At as beginScopeRetainedOwnerDrive, B as beginScopeOwnerAttempt, Ci as meterUsageEvent, Cr as inheritRuntimeOwnedExecutorAttestation, Di as assertValidBudget, Dr as providerAttemptEvidence, Dt as prepareScopeRetainedOwnerTask, Ei as spendFromUsageTotals, Et as consumeScopeRetainedOwnerResult, Fr as runtimeOwnedExecutorMaterialization, Ft as scopeRetainedOwnerRestorePoint, G as scopeOwnerExecutorNodeContext, Gr as runtimeFlowBrain, H as noteScopeOwnerPlannedExecution, Ht as scopeRetainedOwnerJournalRoot, Ir as runtimeOwnedExecutorProviderEvidence, It as noteScopeRetainedOwnerCoordination, J as providerVisibleProfile, K as coordinationMcpAlias, Lr as runtimeOwnedPendingExecutorMaterialization, Mt as scopeRetainedOwnerTurnEnded, Nr as runtimeOwnedDriveHarnessProviderEvidence, Nt as assertRetainedOwnerCoordinationRekey, O as parseWorkerToolTraceArtifact, Or as recordRuntimeOwnedDriveHarnessProviderEvidence, Ot as scopeRetainedOwnerPriorSpend, Pr as runtimeOwnedExecutorExecutionBinding, Pt as reconcileScopeRetainedOwnerEnvironment, Q as assertRecursiveReservationPolicy, Rr as runtimeOwnedScopeOwnerRuntime, Rt as bindScopeRetainedOwnerEnvironmentId, St as scopeRetainedOwnerResourceReader, Tt as abandonScopeRetainedOwnerInvocation, U as recordScopeOwnerMaterialization, Ur as isRuntimeFlowBrain, Vn as generateSpanId, Vt as scopeRetainedOwnerContext, W as restoreScopeOwnerAcceptedExecution, Wr as runtimeFlowAgent, Xi as recordValue, Y as runtimeGraphMetadataKey, a as readRootStream, br as authoredAgentIdentity, bt as prepareScopeRetainedOwnerSeatSwitch, ct as recordScopeOwnerBarrenPause, di as unavailablePauseMs, dr as SeatChain, ei as RetainedExecutionPendingError, er as readHarnessTranscript, fi as unavailableResumeAt, fr as SeatChainExhaustedError, gi as contentAddress, ia as RunCancellationReason, ii as registerRetainedExecutorPreparation, kn as WORKER_TRACE_PROPAGATION, kt as scopeRetainedOwnerResult, li as cappedDoublingMs, lr as isLiveNodeStatus, lt as recordScopeOwnerDriverAttempt, mr as seatExecutionProfile, n as ROOT_STREAM_FILE, oa as linkAbort, oi as retainedExecutorSeamKey, or as createActivityLog, ot as meterRuntimeOwnedAccounting, pr as authoredSeatStages, q as coordinationProfileToolPrefix, r as createRootStreamSink, sa as runAbortable, st as meterRuntimeOwnedProviderAttempt, ui as jitteredMs, ur as isTerminalNodeStatus, ut as recordScopeOwnerPause, vi as executorFailure, wi as newUsageTotals, xt as releaseScopeRetainedOwnerForSeatPause, yr as attestRuntimeOwnedScopeOwner, zn as createOtelExporter, zt as bindScopeRetainedOwnerProvider } from "./scope-CpULJrAr.js";
|
|
2
2
|
import { f as RuntimeRunStateError, i as ConfigError, m as ValidationError } from "./errors-AzSuGI23.js";
|
|
3
3
|
import { $ as isAsyncIterable, Dt as teardownExecutor, G as chargedTokens, Ot as teardownSurfaces, St as armDeadlineTimer, Tt as isDeadlineAbortReason, U as addSpend, Y as errorMessage, at as sleep, bt as DEFAULT_SUCCESSFUL_SHUTDOWN_MS, dt as zeroSpend, gt as withBudgetResources, ht as resourceTelemetry, lt as unmeteredSpend, pt as addResourceSpend, tt as promptCacheTokenClasses, ut as withTimeout } from "./workspace-streams-8ALHaZzx.js";
|
|
4
4
|
import { d as detachedSnapshot, h as errorHttpStatus, m as errMessage } from "./jsonl-file-BBP9Dz9w.js";
|
|
5
|
-
import { $t as promptModelProfileMaterialization, At as bridgeModelRouteRefusal, B as createRouterTranscript, C as createExecutor, Ct as admitContinuationPolicy, Et as createContinuationKeeper, F as codeModeArguments, I as codeModeModelOutput, Jt as controlProfileMaterialization, Kt as assertProfileMaterialization, L as createCodeModeTools, Qt as promptControlProfileMaterialization, Rt as bridgeRuntimeAttachmentsKey, S as captureReusableExecutorConfig, St as CONTINUATIONS_DIR, Tt as checkVerdictOf, U as resolveAgentEnvironmentProvider, V as routerBrain, X as createInbox, Xt as fullProfileMaterialization, Y as INBOX_RECEIPT_KEY, Yt as defineProfileMaterializationContract, Zt as profileMaterializationAxes$1, _t as CheckUnavailableError, a as assertRunParking, c as sleepScopeWait, ct as HarnessTurnFailedError, d as runFinalizer, dt as classifyDriverFailure, en as renderUnsupported, et as PEER_MAIL_WIRE_KEY, f as runTree, ft as isContentFilterRefusal, g as isDriverSpec, gt as preflightPublicCoordination, h as driverExecutorFactory, ht as upstreamUnavailableSignal, i as RunParkedError, in as worktreeCliProfileMaterialization, kt as bridgeAdmissionRefusal, l as withRunParking, lt as abandonablePending, m as driverChild, mt as undispatchedCredentialExit, n as createSupervisor, nn as sandboxProfileMaterialization, o as bindScopeParkingDrain, p as createRootHandle, pt as summarizeDriverAttempts, rn as unsupportedProfileDimensions, rt as isPeerMailEnvelope, st as DriverAttemptsExhaustedError, u as bestDelivered, ut as causedByPartialFailure, vt as gateFactoryOnDeliverable, w as snapshotExecutorConfig, wt as bestComposite, x as bindReusableExecutorExecutionId, z as toolResultText, zt as bridgeStopSignalKey } from "./supervisor-
|
|
6
|
-
import { _ as agentHarness, a as concreteProfileModel, c as profileModelExecutionSettings, l as profileProviderModel, n as assertModelAllowed, o as enforceTokenLimits, r as assertProfileModelsAllowed, s as profileBridgeWireModel, t as assertExecutableAgentProfile, v as harnessRunsAgent } from "./model-policy-
|
|
5
|
+
import { $t as promptModelProfileMaterialization, At as bridgeModelRouteRefusal, B as createRouterTranscript, C as createExecutor, Ct as admitContinuationPolicy, Et as createContinuationKeeper, F as codeModeArguments, I as codeModeModelOutput, Jt as controlProfileMaterialization, Kt as assertProfileMaterialization, L as createCodeModeTools, Qt as promptControlProfileMaterialization, Rt as bridgeRuntimeAttachmentsKey, S as captureReusableExecutorConfig, St as CONTINUATIONS_DIR, Tt as checkVerdictOf, U as resolveAgentEnvironmentProvider, V as routerBrain, X as createInbox, Xt as fullProfileMaterialization, Y as INBOX_RECEIPT_KEY, Yt as defineProfileMaterializationContract, Zt as profileMaterializationAxes$1, _t as CheckUnavailableError, a as assertRunParking, c as sleepScopeWait, ct as HarnessTurnFailedError, d as runFinalizer, dt as classifyDriverFailure, en as renderUnsupported, et as PEER_MAIL_WIRE_KEY, f as runTree, ft as isContentFilterRefusal, g as isDriverSpec, gt as preflightPublicCoordination, h as driverExecutorFactory, ht as upstreamUnavailableSignal, i as RunParkedError, in as worktreeCliProfileMaterialization, kt as bridgeAdmissionRefusal, l as withRunParking, lt as abandonablePending, m as driverChild, mt as undispatchedCredentialExit, n as createSupervisor, nn as sandboxProfileMaterialization, o as bindScopeParkingDrain, p as createRootHandle, pt as summarizeDriverAttempts, rn as unsupportedProfileDimensions, rt as isPeerMailEnvelope, st as DriverAttemptsExhaustedError, u as bestDelivered, ut as causedByPartialFailure, vt as gateFactoryOnDeliverable, w as snapshotExecutorConfig, wt as bestComposite, x as bindReusableExecutorExecutionId, z as toolResultText, zt as bridgeStopSignalKey } from "./supervisor-CWTFw-lP.js";
|
|
6
|
+
import { _ as agentHarness, a as concreteProfileModel, c as profileModelExecutionSettings, l as profileProviderModel, n as assertModelAllowed, o as enforceTokenLimits, r as assertProfileModelsAllowed, s as profileBridgeWireModel, t as assertExecutableAgentProfile, v as harnessRunsAgent } from "./model-policy-JOcg3NRs.js";
|
|
7
7
|
import { n as createStdioToolServer } from "./tool-server-CZWd_Opp.js";
|
|
8
8
|
import { t as composeRuntimeHooks } from "./runtime-hooks-CsW2pfFk.js";
|
|
9
|
-
import { _ as workerAssignmentNamespace, c as writeRunCancellation, d as coordinationEventId, f as externalExecutionId, g as supervisionRunNamespace, h as rootCoordinationOwner, i as readRunCancellation, l as canonicalExecution, m as freezeDetachedProfile, p as freezeDetached, r as readRunCancelRequest, s as watchRunCancellation, t as applyRunCancellation, u as childCoordinationOwner } from "./run-cancellation-
|
|
10
|
-
import { c as createSteerAcknowledger, d as coordinationVerbNames, f as createFileRunContext, l as budgetOverspendText, m as withRunContext, n as createCoordinationToolsForManager, p as createInMemoryRunContext, s as createCancelAcknowledger, t as createCoordinationTools, u as normalizeAnalyzeOnSettle } from "./coordination-manager-
|
|
9
|
+
import { _ as workerAssignmentNamespace, c as writeRunCancellation, d as coordinationEventId, f as externalExecutionId, g as supervisionRunNamespace, h as rootCoordinationOwner, i as readRunCancellation, l as canonicalExecution, m as freezeDetachedProfile, p as freezeDetached, r as readRunCancelRequest, s as watchRunCancellation, t as applyRunCancellation, u as childCoordinationOwner } from "./run-cancellation-CRPdLJVP.js";
|
|
10
|
+
import { c as createSteerAcknowledger, d as coordinationVerbNames, f as createFileRunContext, l as budgetOverspendText, m as withRunContext, n as createCoordinationToolsForManager, p as createInMemoryRunContext, s as createCancelAcknowledger, t as createCoordinationTools, u as normalizeAnalyzeOnSettle } from "./coordination-manager-B3mF1nMA.js";
|
|
11
11
|
import { o as safeJsonText } from "./coordination-map-routing-BllzcZov.js";
|
|
12
12
|
import { a as graphRegistry, c as loadGraph } from "./graph-registry-D6y6zffC.js";
|
|
13
13
|
import { ATTR, agentIdentityAttributes } from "@tangle-network/agent-trace-contract";
|
|
@@ -4953,6 +4953,8 @@ function driverRetryLimits(run) {
|
|
|
4953
4953
|
transientOutage: Math.max(0, policy.transientOutageMs ?? DEFAULT_TRANSIENT_OUTAGE_MS)
|
|
4954
4954
|
};
|
|
4955
4955
|
}
|
|
4956
|
+
/** True once a streak has run {@link REPEATED_FAILURE_LIMIT} alike over the window by `at`. */
|
|
4957
|
+
const repeatedBy = (streak, at) => streak !== void 0 && streak.count >= REPEATED_FAILURE_LIMIT && at - streak.since >= REPEATED_FAILURE_WINDOW_MS;
|
|
4956
4958
|
/** The retry loop's streaks and counters, and the decision each drive's outcome makes with them. */
|
|
4957
4959
|
var DriverRetryLoop = class {
|
|
4958
4960
|
run;
|
|
@@ -4965,6 +4967,7 @@ var DriverRetryLoop = class {
|
|
|
4965
4967
|
outageSince;
|
|
4966
4968
|
consecutivePauses = 0;
|
|
4967
4969
|
samePending;
|
|
4970
|
+
pendingTries = 0;
|
|
4968
4971
|
sameFailure;
|
|
4969
4972
|
sameIdle;
|
|
4970
4973
|
refusals = 0;
|
|
@@ -5128,10 +5131,19 @@ var DriverRetryLoop = class {
|
|
|
5128
5131
|
progressed,
|
|
5129
5132
|
pending
|
|
5130
5133
|
};
|
|
5131
|
-
this.samePending =
|
|
5132
|
-
|
|
5133
|
-
|
|
5134
|
-
|
|
5134
|
+
if (progressed) this.samePending = void 0;
|
|
5135
|
+
else if (pending !== void 0 && classification === "transient") {
|
|
5136
|
+
const same = this.samePending?.error === pending.pendingCause ? this.samePending : void 0;
|
|
5137
|
+
this.pendingTries = same === void 0 ? 1 : this.pendingTries + 1;
|
|
5138
|
+
this.samePending = same ? {
|
|
5139
|
+
...same,
|
|
5140
|
+
count: same.count + 1
|
|
5141
|
+
} : {
|
|
5142
|
+
error: pending.pendingCause,
|
|
5143
|
+
count: 1,
|
|
5144
|
+
since: startedAt + durationMs
|
|
5145
|
+
};
|
|
5146
|
+
}
|
|
5135
5147
|
if (classification === "unavailable") await this.pause(failure);
|
|
5136
5148
|
else await this.retry(failure);
|
|
5137
5149
|
}
|
|
@@ -5184,8 +5196,10 @@ var DriverRetryLoop = class {
|
|
|
5184
5196
|
this.failures += 1;
|
|
5185
5197
|
const failedAt = limits.now();
|
|
5186
5198
|
const stop = this.failureStop(failure, failedAt);
|
|
5187
|
-
const
|
|
5188
|
-
const
|
|
5199
|
+
const same = failure.pending && this.samePending;
|
|
5200
|
+
const repeated = repeatedBy(same, failedAt);
|
|
5201
|
+
const abandoned = !repeated && await this.abandonPending(failure, stop);
|
|
5202
|
+
const unresolved = !abandoned && same !== void 0 && (stop === void 0 || stop === "no-progress") && (repeated || run.resolvePending !== void 0 && this.abandonments >= limits.maxConsecutive && this.pendingTries >= SAME_PENDING_LIMIT);
|
|
5189
5203
|
const retryStop = abandoned ? void 0 : unresolved ? "pending-unresolved" : stop;
|
|
5190
5204
|
if (progressed) this.barrenReentries = 0;
|
|
5191
5205
|
if (retryStop !== void 0) {
|
|
@@ -5230,7 +5244,6 @@ var DriverRetryLoop = class {
|
|
|
5230
5244
|
since: failedAt
|
|
5231
5245
|
};
|
|
5232
5246
|
this.sameFailure = sameFailure;
|
|
5233
|
-
const repeated = sameFailure !== void 0 && sameFailure.count >= REPEATED_FAILURE_LIMIT && failedAt - sameFailure.since >= REPEATED_FAILURE_WINDOW_MS;
|
|
5234
5247
|
const sameIdle = classification === "transient" && !progressed && failure.pending === void 0 ? this.sameIdle?.error === message ? {
|
|
5235
5248
|
...this.sameIdle,
|
|
5236
5249
|
count: this.sameIdle.count + 1
|
|
@@ -5246,20 +5259,20 @@ var DriverRetryLoop = class {
|
|
|
5246
5259
|
const byBudget = budgetStop(run.budget(), failedAt);
|
|
5247
5260
|
if (byBudget) return byBudget;
|
|
5248
5261
|
if (this.refusals >= CONTENT_FILTER_REFUSAL_LIMIT) return "repeated-failure";
|
|
5249
|
-
if (sameIdle !== void 0 && (causedByPartialFailure(error) ? sameIdle.count >= SAME_PARTIAL_FAILURE_LIMIT : run.nested === true && sameIdle
|
|
5262
|
+
if (sameIdle !== void 0 && (causedByPartialFailure(error) ? sameIdle.count >= SAME_PARTIAL_FAILURE_LIMIT : run.nested === true && repeatedBy(sameIdle, failedAt))) return "repeated-failure";
|
|
5250
5263
|
if (inOutage) return void 0;
|
|
5251
5264
|
if (this.chargedFailures >= limits.maxAttempts) return "max-attempts";
|
|
5252
|
-
if (progressed) return
|
|
5265
|
+
if (progressed) return repeatedBy(sameFailure, failedAt) ? "repeated-failure" : void 0;
|
|
5253
5266
|
return this.consecutiveBarren + 1 >= limits.maxConsecutive ? "no-progress" : void 0;
|
|
5254
5267
|
}
|
|
5255
5268
|
async abandonPending(failure, stop) {
|
|
5256
|
-
const { run, limits
|
|
5269
|
+
const { run, limits } = this;
|
|
5257
5270
|
const { pending } = failure;
|
|
5258
|
-
if (pending === void 0 || samePending === void 0 || run.resolvePending === void 0 || !limits.retryEnabled || run.signal.aborted || this.abandonments >= limits.maxConsecutive || !(stop === "no-progress" || stop === void 0 &&
|
|
5259
|
-
const abandoned = await run.resolvePending(pending,
|
|
5271
|
+
if (pending === void 0 || this.samePending === void 0 || run.resolvePending === void 0 || !limits.retryEnabled || run.signal.aborted || this.abandonments >= limits.maxConsecutive || !(stop === "no-progress" || stop === void 0 && this.pendingTries >= SAME_PENDING_LIMIT)) return false;
|
|
5272
|
+
const abandoned = await run.resolvePending(pending, this.pendingTries);
|
|
5260
5273
|
if (abandoned) {
|
|
5261
5274
|
this.abandonments += 1;
|
|
5262
|
-
this.
|
|
5275
|
+
this.pendingTries = 0;
|
|
5263
5276
|
this.consecutiveBarren = 0;
|
|
5264
5277
|
this.outageSince = void 0;
|
|
5265
5278
|
}
|
|
@@ -9423,4 +9436,4 @@ function superviseWithContext(profile, task, opts, brain) {
|
|
|
9423
9436
|
}
|
|
9424
9437
|
export { analyzesFindingsReportPrompt as A, anyOf as B, flowRootProfile as C, defaultEdgeTraversalCap as D, validateFlowGraph as E, formatPromptHandle as F, bestSoFar as G, plateau as H, kernelPromptRegistry as I, createSupervisorSpanRecorder as J, plateauLength as K, naiveContinuationPrompt as L, delegatesWorkerBriefPrompt as M, dumbContinuationFailPrompt as N, graphRootProfile as O, dumbContinuationPassPrompt as P, promptHandle as R, createFlowRun as S, routeFlowOf as T, anytimeReport as U, noProgressFor as V, areaUnderCurve as W, coordinationControlToolNames as _, superviseRootProfile as a, createGraphOverlay as b, retryPreSpawnRefusals as c, supervisorAgent as d, supervisorAgentWithTestBrain as f, serveCoordinationMcp as g, composeReentryTask as h, profileGuidanceComposer as i, createPromptRegistry as j, validateGraphTopology as k, withWorkerSpawnRetry as l, UNPROVEN_CONTINUITY as m, superviseFleetCapabilities as n, isPreSpawnExecutorFailure as o, runToolSpans as p, renderAnytimeTable as q, superviseWithTestBrain as r, resolveWorkerSpawnRetry as s, supervise as t, workerFromBackend as u, driverAgent as v, journaledGateDecider as w, GraphRouteError as x, runBrainLoop as y, allWorkersStalled as z };
|
|
9425
9438
|
|
|
9426
|
-
//# sourceMappingURL=supervise-
|
|
9439
|
+
//# sourceMappingURL=supervise-Dszn1xVB.js.map
|