@tangle-network/agent-runtime 3.0.18 → 3.0.19
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-BDfK0qUP.js → activation-CiCGGm2I.js} +2 -2
- package/dist/{activation-BDfK0qUP.js.map → activation-CiCGGm2I.js.map} +1 -1
- package/dist/agent.js +2 -2
- package/dist/{coordination-manager-BRJ-3FYo.js → coordination-manager-CnhmWuIX.js} +2 -2
- package/dist/{coordination-manager-BRJ-3FYo.js.map → coordination-manager-CnhmWuIX.js.map} +1 -1
- package/dist/{delegate-B5a4wCau.js → delegate-BRJPGltl.js} +2 -2
- package/dist/{delegate-B5a4wCau.js.map → delegate-BRJPGltl.js.map} +1 -1
- package/dist/durable.js +3 -3
- package/dist/{graph-HaMcqUWX.js → graph-BfMlwjJf.js} +4 -4
- package/dist/{graph-HaMcqUWX.js.map → graph-BfMlwjJf.js.map} +1 -1
- package/dist/{improve-B4LkHUCx.js → improve-ikgoMB8n.js} +5 -5
- package/dist/{improve-B4LkHUCx.js.map → improve-ikgoMB8n.js.map} +1 -1
- package/dist/index.js +7 -7
- package/dist/intelligence.js +3 -3
- package/dist/kernel.js +9 -9
- package/dist/{loop-runner-Df3gLvJm.js → loop-runner-Ddrz869H.js} +2 -2
- package/dist/{loop-runner-Df3gLvJm.js.map → loop-runner-Ddrz869H.js.map} +1 -1
- package/dist/loop-runner-bin.js +1 -1
- package/dist/mcp/bin.js +2 -2
- package/dist/mcp/index.js +4 -4
- package/dist/{provision-supervisor-CI7KnQU5.js → provision-supervisor-D4Yz6sdC.js} +3 -3
- package/dist/{provision-supervisor-CI7KnQU5.js.map → provision-supervisor-D4Yz6sdC.js.map} +1 -1
- package/dist/{runtime-DuCYicSd.js → runtime-DmtlNrgj.js} +9 -9
- package/dist/{runtime-DuCYicSd.js.map → runtime-DmtlNrgj.js.map} +1 -1
- package/dist/{search-executor-CQIV9K8q.js → search-executor-Btbon3_a.js} +2 -2
- package/dist/{search-executor-CQIV9K8q.js.map → search-executor-Btbon3_a.js.map} +1 -1
- package/dist/{server-BP7d8yGG.js → server-D4yuf0ZQ.js} +2 -2
- package/dist/{server-BP7d8yGG.js.map → server-D4yuf0ZQ.js.map} +1 -1
- package/dist/{structural-rollout-BGbw3v4h.js → structural-rollout-CykeYhjp.js} +2 -2
- package/dist/{structural-rollout-BGbw3v4h.js.map → structural-rollout-CykeYhjp.js.map} +1 -1
- package/dist/{supervise-BHxxCvbk.js → supervise-DoH3TCQa.js} +15 -3
- package/dist/supervise-DoH3TCQa.js.map +1 -0
- package/dist/{supervisor-BFoJnigz.js → supervisor-DriSPPyb.js} +8 -23
- package/dist/supervisor-DriSPPyb.js.map +1 -0
- package/dist/testing.js +11 -11
- package/dist/tui/index.js +1 -1
- package/package.json +1 -1
- package/dist/supervise-BHxxCvbk.js.map +0 -1
- package/dist/supervisor-BFoJnigz.js.map +0 -1
|
@@ -5474,27 +5474,13 @@ function verdictFromJudgeScore(score, threshold) {
|
|
|
5474
5474
|
});
|
|
5475
5475
|
}
|
|
5476
5476
|
// src/runtime/supervise/driver-attempt-evidence.ts
|
|
5477
|
-
/** Longest cause chain read for a `PartialFailureError`; the failing box's error sits one or two wrappers down. */
|
|
5478
|
-
const PARTIAL_FAILURE_CAUSE_DEPTH = 6;
|
|
5479
5477
|
/**
|
|
5480
5478
|
* True when `error` or one of its causes is Sandbox's `PartialFailureError`. Read by name: the
|
|
5481
5479
|
* class lives in `@tangle-network/sandbox`, which Runtime does not import, and a failure crosses
|
|
5482
5480
|
* packages that may each hold their own copy of it, so `instanceof` would miss it.
|
|
5483
5481
|
*/
|
|
5484
5482
|
function causedByPartialFailure(error) {
|
|
5485
|
-
|
|
5486
|
-
let current = error;
|
|
5487
|
-
for (let depth = 0; depth <= PARTIAL_FAILURE_CAUSE_DEPTH; depth += 1) {
|
|
5488
|
-
if (!(current instanceof Error) || seen.has(current)) return false;
|
|
5489
|
-
seen.add(current);
|
|
5490
|
-
try {
|
|
5491
|
-
if (errorProperty(current, "name") === "PartialFailureError") return true;
|
|
5492
|
-
current = current.cause;
|
|
5493
|
-
} catch {
|
|
5494
|
-
return false;
|
|
5495
|
-
}
|
|
5496
|
-
}
|
|
5497
|
-
return false;
|
|
5483
|
+
return causeChain(error).some((cause) => cause instanceof Error && errorProperty(cause, "name") === "PartialFailureError");
|
|
5498
5484
|
}
|
|
5499
5485
|
/**
|
|
5500
5486
|
* The pending invocation a failure left, when abandoning it is the resolution: the provider
|
|
@@ -5522,10 +5508,9 @@ const DETERMINISTIC_BRIDGE_CODES = /* @__PURE__ */ new Set([
|
|
|
5522
5508
|
"SEAT_NOT_LOGGED_IN"
|
|
5523
5509
|
]);
|
|
5524
5510
|
/**
|
|
5525
|
-
* A model provider's content
|
|
5526
|
-
*
|
|
5527
|
-
*
|
|
5528
|
-
* magnetar-rust-sandbox-20261031f two workers resent one refused prompt 6 and 5 times.
|
|
5511
|
+
* A model provider's content-filter refusal, which Codex names only in text under the generic
|
|
5512
|
+
* `AGENT_EXECUTION_FAILED`. It stays transient; the retry loop bounds a streak of them and stops
|
|
5513
|
+
* with this reason, for the parent to reword or re-scope the task.
|
|
5529
5514
|
*/
|
|
5530
5515
|
const CONTENT_FILTER_REASON = "refused by the model provider's content filter";
|
|
5531
5516
|
const isContentFilterRefusal = (error) => causeChain(error).some((cause) => cause instanceof Error && /\bcontent was flagged for possible\b/iu.test(errorProperty(cause, "message") ?? ""));
|
|
@@ -5650,7 +5635,7 @@ function classifyDriverFailure(error, signal, stopSignal) {
|
|
|
5650
5635
|
if (error instanceof Error && errorProperty(error, "name") === "AbortError") return stopSignal?.aborted === true ? "terminal" : "transient";
|
|
5651
5636
|
if (error instanceof Error && isProviderSchemaRejection(error)) return "terminal";
|
|
5652
5637
|
if (isCredentialRefusal(error)) return "terminal";
|
|
5653
|
-
if (causeChain(error).some(isProvisioningRefusal)
|
|
5638
|
+
if (causeChain(error).some(isProvisioningRefusal)) return "terminal";
|
|
5654
5639
|
if (error instanceof HarnessTurnFailedError) {
|
|
5655
5640
|
if (error.errorCode !== void 0 && DETERMINISTIC_BRIDGE_CODES.has(error.errorCode)) return "terminal";
|
|
5656
5641
|
if (upstreamUnavailableSignal(error) !== void 0) return "unavailable";
|
|
@@ -5736,7 +5721,7 @@ var DriverAttemptsExhaustedError = class extends RuntimeRunStateError {
|
|
|
5736
5721
|
const firstFailure = attempts.find((attempt) => attempt.error !== void 0)?.error;
|
|
5737
5722
|
const pauses = attempts.filter((attempt) => attempt.classification === "unavailable");
|
|
5738
5723
|
const pausedMs = pauses.reduce((sum, attempt) => sum + (attempt.retryInMs ?? 0), 0);
|
|
5739
|
-
super(`supervisor driver failed after ${attempts.length} attempt(s) — stopped by ${stop}` + (isContentFilterRefusal(cause) ? `: ${CONTENT_FILTER_REASON}; ` : "; ") + (pauses.length === 0 ? "" : `${pauses.length} attempt(s) met an unavailable upstream and paused ${Math.round(pausedMs / 1e3)} s in total; `) + (firstFailure !== void 0 && firstFailure !== last?.error ? `first failure: ${errorText(firstFailure)}; ` : "") + `last cause: ${causeText}` + (last?.classification ? ` (classified ${last.classification})` : ""), { cause });
|
|
5724
|
+
super(`supervisor driver failed after ${attempts.length} attempt(s) — stopped by ${stop}` + (stop === "repeated-failure" && isContentFilterRefusal(cause) ? `: ${CONTENT_FILTER_REASON}; ` : "; ") + (pauses.length === 0 ? "" : `${pauses.length} attempt(s) met an unavailable upstream and paused ${Math.round(pausedMs / 1e3)} s in total; `) + (firstFailure !== void 0 && firstFailure !== last?.error ? `first failure: ${errorText(firstFailure)}; ` : "") + `last cause: ${causeText}` + (last?.classification ? ` (classified ${last.classification})` : ""), { cause });
|
|
5740
5725
|
this.attempts = Object.freeze([...attempts]);
|
|
5741
5726
|
this.stop = stop;
|
|
5742
5727
|
}
|
|
@@ -17423,6 +17408,6 @@ async function noWinner(settled, rejection) {
|
|
|
17423
17408
|
reason: "no-result-selected"
|
|
17424
17409
|
};
|
|
17425
17410
|
}
|
|
17426
|
-
export { DEFAULT_PEER_MAIL_LIMITS as $,
|
|
17411
|
+
export { DEFAULT_PEER_MAIL_LIMITS as $, renderUnsupported as $t, createSandboxForSpec as A, priceTokens as At, createRouterTranscript as B, runSettledCommand as Bt, createExecutor as C, bestComposite as Ct, runAgentRounds as D, isFiniteNumber as Dt, createSteerableSandboxSession as E, failedItems as Et, codeModeArguments as F, readCodexRolloutSession as Ft, LEAF_CONTINUATION_TASK as G, assertProfileMaterialization as Gt, createAgentEnvironmentProviderRegistry as H, LOCAL_HARNESSES as Ht, codeModeModelOutput as I, createPushTraceSource as It, createInPlaceCliExecutor as J, defineProfileMaterializationContract as Jt, providerAsSandboxClient as K, assertProfileMaterializes as Kt, createCodeModeTools as L, bridgeRuntimeAttachmentsKey as Lt, acquireSandbox as M, addHarnessUsage as Mt, TERMINAL_DECISIONS as N, createCodexRolloutStoreReader as Nt, assertBoxlessPromptOptions as O, bridgeAdmissionRefusal as Ot, defaultSelectWinner as P, harnessUsageIsEmpty as Pt, AUTHORITY_MARKERS as Q, promptModelProfileMaterialization as Qt, runCodeMode as R, bridgeStopSignalKey as Rt, captureReusableExecutorConfig as S, admitContinuationPolicy as St, DEFAULT_SANDBOX_STEERING_MAX_TURNS as T, createContinuationKeeper as Tt, resolveAgentEnvironmentProvider as U, harnessInvocation as Ut, routerBrain as V, runWorktreeHarness as Vt, providerAsExecutor as W, terminateProcessTreeAndConfirm as Wt, createInbox as X, profileMaterializationAxes$1 as Xt, INBOX_RECEIPT_KEY as Y, fullProfileMaterialization as Yt, failPendingAfter as Z, promptControlProfileMaterialization as Zt, withDriverExecutor as _, gateFactoryOnDeliverable as _t, assertRunParking as a, readSandboxOutcome as an, peerMailVerbNames as at, createExecutorRegistry as b, verdictFromJudgeScore as bt, sleepScopeWait as c, HarnessTurnFailedError as ct, runFinalizer as d, classifyDriverFailure as dt, sandboxActProfileMaterialization as en, PEER_MAIL_WIRE_KEY as et, runTree as f, isContentFilterRefusal as ft, isDriverSpec as g, CheckUnavailableError as gt, driverExecutorFactory as h, upstreamUnavailableSignal as ht, RunParkedError as i, projectSandboxOutcome as in, peerMailTools as it, createSandboxLineage as j, ROUTER_PRICE_SOURCE as jt, readPromptOptions as k, bridgeModelRouteRefusal as kt, withRunParking as l, abandonablePending as lt, driverChild as m, undispatchedCredentialExit as mt, createSupervisor as n, unsupportedProfileDimensions as nn, createPeerMailbox as nt, bindScopeParkingDrain as o, taskToPrompt$1 as ot, createRootHandle as p, summarizeDriverAttempts as pt, createWorktreeCliExecutor as q, controlProfileMaterialization as qt, assertResumeLimits as r, worktreeCliProfileMaterialization as rn, isPeerMailEnvelope as rt, readRunParking as s, DriverAttemptsExhaustedError as st, DEFAULT_MAX_DEPTH as t, sandboxProfileMaterialization as tn, claimsAuthority as tt, bestDelivered as u, causedByPartialFailure as ut, InMemoryResultBlobStore as v, gateOnDeliverable as vt, snapshotExecutorConfig as w, checkVerdictOf as wt, bindReusableExecutorExecutionId as x, CONTINUATIONS_DIR as xt, InMemorySpawnJournal as y, mapExecutorResult as yt, toolResultText as z, defaultRunCommand as zt };
|
|
17427
17412
|
|
|
17428
|
-
//# sourceMappingURL=supervisor-
|
|
17413
|
+
//# sourceMappingURL=supervisor-DriSPPyb.js.map
|