@tangle-network/agent-runtime 0.292.4 → 0.292.7

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.
Files changed (58) hide show
  1. package/README.md +6 -0
  2. package/dist/{activation-CssIKm0J.d.ts → activation-BXp7kQrO.d.ts} +3 -3
  3. package/dist/{activation-DduAWlO4.js → activation-Ewv9Gg2G.js} +2 -2
  4. package/dist/{activation-DduAWlO4.js.map → activation-Ewv9Gg2G.js.map} +1 -1
  5. package/dist/agent.d.ts +2 -2
  6. package/dist/agent.js +2 -2
  7. package/dist/{coordination-driver-BxKWN9p3.js → coordination-driver-Dr8LrK8A.js} +2 -2
  8. package/dist/{coordination-driver-BxKWN9p3.js.map → coordination-driver-Dr8LrK8A.js.map} +1 -1
  9. package/dist/{delegate-B0i2bLAX.js → delegate-CLi2XYKq.js} +2 -2
  10. package/dist/{delegate-B0i2bLAX.js.map → delegate-CLi2XYKq.js.map} +1 -1
  11. package/dist/durable.d.ts +2 -2
  12. package/dist/durable.js +2 -2
  13. package/dist/{graph-Dywdsnvg.js → graph-IEOhzlpn.js} +4 -4
  14. package/dist/{graph-Dywdsnvg.js.map → graph-IEOhzlpn.js.map} +1 -1
  15. package/dist/{improvement-cycle-DeJwXvDJ.js → improvement-cycle-BHCEmvOi.js} +3 -3
  16. package/dist/{improvement-cycle-DeJwXvDJ.js.map → improvement-cycle-BHCEmvOi.js.map} +1 -1
  17. package/dist/{index-H2CGSpv6.d.ts → index-YuqY-cYj.d.ts} +4 -4
  18. package/dist/index.d.ts +6 -6
  19. package/dist/index.js +7 -7
  20. package/dist/intelligence.d.ts +3 -3
  21. package/dist/intelligence.js +4 -4
  22. package/dist/kernel.d.ts +5 -4
  23. package/dist/kernel.js +10 -9
  24. package/dist/{loop-runner-bin-n5Y28zdy.js → loop-runner-bin-BmaGNnz-.js} +3 -3
  25. package/dist/{loop-runner-bin-n5Y28zdy.js.map → loop-runner-bin-BmaGNnz-.js.map} +1 -1
  26. package/dist/{loop-runner-bin-CsKO_N_m.d.ts → loop-runner-bin-De7zHpnR.d.ts} +3 -3
  27. package/dist/loop-runner-bin.d.ts +1 -1
  28. package/dist/loop-runner-bin.js +1 -1
  29. package/dist/mcp/bin.js +3 -3
  30. package/dist/mcp/index.d.ts +5 -5
  31. package/dist/mcp/index.js +4 -4
  32. package/dist/{openai-tools-BoNA2t3H.d.ts → openai-tools-BzSapMl4.d.ts} +2 -2
  33. package/dist/profiles.d.ts +2 -2
  34. package/dist/{provision-supervisor-sRNHUHo7.js → provision-supervisor-BSGtLbZy.js} +3 -3
  35. package/dist/{provision-supervisor-sRNHUHo7.js.map → provision-supervisor-BSGtLbZy.js.map} +1 -1
  36. package/dist/{runtime-DudqdOqC.js → runtime-N436zrvM.js} +8 -8
  37. package/dist/{runtime-DudqdOqC.js.map → runtime-N436zrvM.js.map} +1 -1
  38. package/dist/{search-method-DOQPDDDi.js → search-method-Bac6Meh3.js} +2 -2
  39. package/dist/{search-method-DOQPDDDi.js.map → search-method-Bac6Meh3.js.map} +1 -1
  40. package/dist/{server-BtxFscfN.js → server-DVdwoNTr.js} +3 -3
  41. package/dist/{server-BtxFscfN.js.map → server-DVdwoNTr.js.map} +1 -1
  42. package/dist/{stream-agent-turn-DnJkgxgW.d.ts → stream-agent-turn-BlVe8ZE0.d.ts} +2 -2
  43. package/dist/{substrate-DaVkSZLU.d.ts → substrate-m1KMZD4d.d.ts} +2 -2
  44. package/dist/{supervise-B4xMCqJk.js → supervise-DGBDBTY7.js} +3 -3
  45. package/dist/{supervise-B4xMCqJk.js.map → supervise-DGBDBTY7.js.map} +1 -1
  46. package/dist/{supervisor-BnL7JHEI.js → supervisor-D6DoFY-5.js} +65 -60
  47. package/dist/supervisor-D6DoFY-5.js.map +1 -0
  48. package/dist/task-queue-0fKkoweu.d.ts +35 -0
  49. package/dist/task-queue.d.ts +2 -0
  50. package/dist/task-queue.js +50 -0
  51. package/dist/task-queue.js.map +1 -0
  52. package/dist/testing.d.ts +2 -2
  53. package/dist/testing.js +12 -12
  54. package/dist/tui/index.d.ts +1 -1
  55. package/dist/tui/index.js +1 -1
  56. package/dist/{types-Ci1QbSne.d.ts → types-D62ptFDO.d.ts} +3 -3
  57. package/package.json +8 -3
  58. package/dist/supervisor-BnL7JHEI.js.map +0 -1
@@ -1,4 +1,5 @@
1
1
  import { c as RetainedInteractiveAdmissionError, d as RetainedRunDispatchBindingError, f as RuntimeRunStateError, i as ConfigError, l as RetainedInteractiveBindingError, m as ValidationError$1, r as BackendTransportError, t as AgentEvalError$1, u as RetainedRunAdmissionError } from "./errors-DodWX-cb.js";
2
+ import { runTaskQueue } from "./task-queue.js";
2
3
  import { _ as agentHarness, a as concreteProfileModel, c as profileModelExecutionSettings, d as assertRouterAutoDeclaration, f as assertRouterAutoResponse, g as observedModelMatchesDeclared, h as observedModelHasSnapshot, l as profileProviderModel, m as mergeObservedModelIdentity, o as enforceTokenLimits, s as profileBridgeWireModel, t as assertExecutableAgentProfile, u as resolveRouterRetryPolicy } from "./model-policy-DydyWTQg.js";
3
4
  import { S as verifyWorkspaceSnapshotArtifacts, i as verifyAgentCandidateWorkspaceArchive } from "./workspace-archive-MhowMCmp.js";
4
5
  import { n as assertNoSymlinkDescendant, r as publishExclusiveDurableFile } from "./durable-file-DWQA4ooo.js";
@@ -35,6 +36,7 @@ function freshTurnInput(input, runtime) {
35
36
  ...input.prompt === void 0 ? {} : { prompt: input.prompt },
36
37
  ...input.parts === void 0 ? {} : { parts: input.parts },
37
38
  ...input.model === void 0 ? {} : { model: input.model },
39
+ ...input.profile === void 0 ? {} : { profile: input.profile },
38
40
  ...input.timeoutMs === void 0 ? {} : { timeoutMs: input.timeoutMs },
39
41
  ...input.context === void 0 ? {} : { context: input.context },
40
42
  ...input.interactions === void 0 ? {} : { interactions: input.interactions },
@@ -54,8 +56,11 @@ function promptFromAgentTurnInput(input) {
54
56
  }
55
57
  /** Project canonical turn controls onto the Sandbox prompt options once. */
56
58
  function promptOptionsFromAgentTurnInput(input) {
59
+ const providerBackend = input.providerOptions?.backend && typeof input.providerOptions.backend === "object" && !Array.isArray(input.providerOptions.backend) ? input.providerOptions.backend : void 0;
60
+ if (input.profile !== void 0 && providerBackend?.profile !== void 0 && canonicalAgentProfileDigest(input.profile) !== canonicalAgentProfileDigest(providerBackend.profile)) throw Object.assign(/* @__PURE__ */ new Error("provider turn contains conflicting AgentProfiles"), { name: "ValidationError" });
57
61
  const backend = {
58
- ...(input.providerOptions?.backend && typeof input.providerOptions.backend === "object" && !Array.isArray(input.providerOptions.backend) ? input.providerOptions.backend : void 0) ?? {},
62
+ ...providerBackend ?? {},
63
+ ...input.profile === void 0 ? {} : { profile: input.profile },
59
64
  ...input.interactions === void 0 ? {} : { interactions: input.interactions }
60
65
  };
61
66
  const runControlRef = input.controlRef === void 0 ? void 0 : AgentExactRunControlRefSchema.parse(input.controlRef);
@@ -1093,25 +1098,22 @@ function addTokenUsage(acc, delta) {
1093
1098
  * the loop's concurrency bound instead of firing all N at once.
1094
1099
  */
1095
1100
  async function mapWithConcurrency(items, limit, fn) {
1096
- const bound = Math.max(1, Math.floor(limit));
1097
1101
  const results = new Array(items.length);
1098
1102
  let next = 0;
1099
- let failed = false;
1100
- const worker = async () => {
1101
- while (!failed) {
1102
- const i = next;
1103
- next += 1;
1104
- if (i >= items.length) return;
1105
- try {
1106
- results[i] = await fn(items[i], i);
1107
- } catch (err) {
1108
- failed = true;
1109
- throw err;
1110
- }
1111
- }
1112
- };
1113
- const workerCount = Math.min(bound, items.length);
1114
- await Promise.all(Array.from({ length: workerCount }, () => worker()));
1103
+ for await (const settled of runTaskQueue({
1104
+ concurrency: Math.max(1, Math.min(Math.floor(limit), items.length)),
1105
+ take: () => {
1106
+ const index = next++;
1107
+ return index < items.length ? {
1108
+ id: String(index),
1109
+ value: index
1110
+ } : void 0;
1111
+ },
1112
+ execute: ({ value: index }) => fn(items[index], index)
1113
+ })) {
1114
+ if (settled.status === "rejected") throw settled.reason;
1115
+ results[settled.task.value] = settled.value;
1116
+ }
1115
1117
  return results;
1116
1118
  }
1117
1119
  //#endregion
@@ -7462,6 +7464,7 @@ function retainedTurnMaterial(input, contextTransfer) {
7462
7464
  ...input.prompt === void 0 ? {} : { prompt: input.prompt },
7463
7465
  ...input.parts === void 0 ? {} : { parts: input.parts },
7464
7466
  ...input.model === void 0 ? {} : { model: input.model },
7467
+ ...input.profile === void 0 ? {} : { profileDigest: canonicalAgentProfileDigest(input.profile) },
7465
7468
  ...input.timeoutMs === void 0 ? {} : { timeoutMs: input.timeoutMs },
7466
7469
  ...input.context === void 0 ? {} : { context: input.context },
7467
7470
  ...input.interactions === void 0 ? {} : { interactions: input.interactions },
@@ -7511,6 +7514,12 @@ async function startRetainedRun(options) {
7511
7514
  assertStableText(identity.sessionId, "retained session id");
7512
7515
  assertStableText(identity.executionId, "retained execution id");
7513
7516
  const contextTransfer = retainedContextTransfer(options.turn.contextTransfer);
7517
+ AgentTurnInputSchema.parse(freshTurnInput(options.turn, {
7518
+ turnId: options.turn.turnId,
7519
+ detach: true,
7520
+ ...identity,
7521
+ contextTransfer
7522
+ }));
7514
7523
  if (!options.provider.get) throw new Error(`provider "${options.provider.name}" cannot reconstruct an environment by id`);
7515
7524
  const intent = retainedRunIntent(options, identity, contextTransfer);
7516
7525
  if (options.intent === void 0) await admitDurably(options.onAdmission, intent);
@@ -7586,6 +7595,12 @@ async function startRetainedRunInEnvironment(options) {
7586
7595
  if (typeof options.onAdmission !== "function") throw new Error("startRetainedRunInEnvironment requires an awaited onAdmission durability hook");
7587
7596
  const identity = options.identity ?? mintRetainedIdentity(options.environment.idempotencyKey, options.turn.turnId);
7588
7597
  const contextTransfer = retainedContextTransfer(options.turn.contextTransfer);
7598
+ AgentTurnInputSchema.parse(freshTurnInput(options.turn, {
7599
+ turnId: options.turn.turnId,
7600
+ detach: true,
7601
+ ...identity,
7602
+ contextTransfer
7603
+ }));
7589
7604
  const providerCapabilities = await assertRetainedCapabilities(options.provider);
7590
7605
  if (!options.provider.get) throw new Error(`provider "${options.provider.name}" cannot reconstruct an environment by id`);
7591
7606
  const environment = await options.provider.get(options.environment.id);
@@ -9890,7 +9905,7 @@ function retainedExecutorContext(ctx) {
9890
9905
  }
9891
9906
  const causeMessages = {
9892
9907
  unobservable: "retained provider execution requires reconciliation before replacement",
9893
- "provider-contract": "retained provider execution ended on a provider contract violation; nothing to reconcile",
9908
+ "provider-contract": "retained provider response violated its contract; original execution remains unresolved",
9894
9909
  "request-rejected": "retained provider execution was refused before it ran; nothing to reconcile",
9895
9910
  transport: "retained provider execution lost its transport; status in doubt",
9896
9911
  "nested-recovery": "retained nested execution requires recovery before replacement"
@@ -11284,21 +11299,17 @@ async function* streamProviderExecutor(args) {
11284
11299
  function subscriptionTurnProfile(turn, profile) {
11285
11300
  if (profile.model?.metadata?.credentialSource !== "subscription") return turn;
11286
11301
  const backend = promptOptionsFromAgentTurnInput(turn).backend ?? {};
11287
- if (backend.profile !== void 0 && canonicalAgentProfileDigest(backend.profile) !== canonicalAgentProfileDigest(profile)) throw new ValidationError("provider subscription turn cannot replace its exact AgentProfile");
11302
+ const digest = canonicalAgentProfileDigest(profile);
11303
+ if (turn.profile !== void 0 && canonicalAgentProfileDigest(turn.profile) !== digest || backend.profile !== void 0 && canonicalAgentProfileDigest(backend.profile) !== digest) throw new ValidationError("provider subscription turn cannot replace its exact AgentProfile");
11288
11304
  return {
11289
11305
  ...turn,
11290
- providerOptions: {
11291
- ...turn.providerOptions,
11292
- backend: {
11293
- ...backend,
11294
- profile
11295
- }
11296
- }
11306
+ profile
11297
11307
  };
11298
11308
  }
11299
11309
  /** One retained dispatch owns creation, replay, result identity, and cancellation. */
11300
11310
  async function providerExecutionSource(args, turn, signal) {
11301
11311
  const selectedTurn = subscriptionTurnProfile(turn, args.profile);
11312
+ AgentTurnInputSchema.parse(selectedTurn);
11302
11313
  const capabilities = args.retention ? await args.provider.capabilities() : void 0;
11303
11314
  if (!(args.retention !== void 0 && capabilities?.retainedControl !== void 0)) {
11304
11315
  if (args.recovering) throw new Error(`provider ${args.provider.name} cannot recover retained executions`);
@@ -14063,37 +14074,20 @@ async function runBatch(args) {
14063
14074
  task,
14064
14075
  index: args.baseIndex + offset
14065
14076
  }));
14066
- const inflight = /* @__PURE__ */ new Set();
14067
- const started = [];
14068
- let firstError;
14069
- try {
14070
- while (queue.length > 0 || inflight.size > 0) {
14071
- while (inflight.size < args.maxConcurrency && queue.length > 0) {
14072
- const item = queue.shift();
14073
- const p = executeIteration({
14074
- ...args,
14075
- item
14076
- }).finally(() => inflight.delete(p));
14077
- started.push(p);
14078
- inflight.add(p);
14079
- }
14080
- if (inflight.size === 0) break;
14081
- try {
14082
- await Promise.race(inflight);
14083
- } catch (err) {
14084
- if (firstError === void 0) firstError = err;
14085
- queue.length = 0;
14086
- break;
14087
- }
14088
- }
14089
- } finally {
14090
- const settled = await Promise.allSettled(started);
14091
- if (firstError === void 0) {
14092
- const rejected = settled.find((s) => s.status === "rejected");
14093
- if (rejected && rejected.status === "rejected") firstError = rejected.reason;
14094
- }
14095
- }
14096
- if (firstError !== void 0) throw firstError;
14077
+ for await (const settled of runTaskQueue({
14078
+ concurrency: Math.max(1, Math.min(Math.ceil(args.maxConcurrency), queue.length)),
14079
+ take: () => {
14080
+ const item = queue.shift();
14081
+ return item === void 0 ? void 0 : {
14082
+ id: String(item.index),
14083
+ value: item
14084
+ };
14085
+ },
14086
+ execute: ({ value: item }) => executeIteration({
14087
+ ...args,
14088
+ item
14089
+ })
14090
+ })) if (settled.status === "rejected") throw settled.reason;
14097
14091
  }
14098
14092
  async function executeIteration(args) {
14099
14093
  const slot = args.iterations[args.item.index];
@@ -26997,6 +26991,14 @@ var HarnessTurnFailedError = class extends Error {
26997
26991
  }
26998
26992
  }
26999
26993
  };
26994
+ /** Provider schemas and JSON bounds reject the request deterministically. */
26995
+ function isProviderSchemaRejection(error) {
26996
+ try {
26997
+ return error.name === "ZodError" || error.name === "ValidationError" || Reflect.get(error, "code") === "JSON_BOUND_VIOLATION" || Array.isArray(Reflect.get(error, "issues"));
26998
+ } catch {
26999
+ return false;
27000
+ }
27001
+ }
27000
27002
  /**
27001
27003
  * The code or status that marks `error` as an upstream capacity refusal, or `undefined`.
27002
27004
  *
@@ -27008,6 +27010,7 @@ function upstreamUnavailableSignal(error) {
27008
27010
  const admission = retainedAdmissionCause(error);
27009
27011
  if (admission !== void 0) return upstreamUnavailableSignal(admission);
27010
27012
  if (!(error instanceof Error)) return void 0;
27013
+ if (isProviderSchemaRejection(error)) return void 0;
27011
27014
  if (error instanceof CheckUnavailableError) return "check-unavailable";
27012
27015
  if (error instanceof HarnessTurnFailedError) return unavailableSignalOfFailure({
27013
27016
  error: error.message,
@@ -27039,9 +27042,11 @@ function isUpstreamUnavailable(error) {
27039
27042
  */
27040
27043
  function classifyDriverFailure(error, signal) {
27041
27044
  if (signal?.aborted) return "terminal";
27045
+ if (error instanceof RetainedExecutionPendingError && error.pendingCause === "provider-contract") return "terminal";
27042
27046
  const admission = retainedAdmissionCause(error);
27043
27047
  if (admission !== void 0) return classifyDriverFailure(admission, signal);
27044
27048
  if (error instanceof Error && errorProperty(error, "name") === "AbortError") return "terminal";
27049
+ if (error instanceof Error && isProviderSchemaRejection(error)) return "terminal";
27045
27050
  if (error instanceof HarnessTurnFailedError) {
27046
27051
  if (error.errorCode !== void 0 && DETERMINISTIC_BRIDGE_CODES.has(error.errorCode)) return "terminal";
27047
27052
  if (isUpstreamUnavailable(error)) return "unavailable";
@@ -27083,7 +27088,7 @@ function retainedAdmissionCause(error) {
27083
27088
  if (errorProperty(value, "name") === "RetainedRunProviderContractError") return void 0;
27084
27089
  const status = errorHttpStatus(value);
27085
27090
  if (status !== void 0 && status >= 400) return error.pendingCause === "request-rejected" || UNAVAILABLE_STATUSES.has(status) ? value : void 0;
27086
- if (error.pendingCause === "request-rejected" && value instanceof AgentEvalError$1) return value;
27091
+ if (error.pendingCause === "request-rejected" && (value instanceof AgentEvalError$1 || isProviderSchemaRejection(value))) return value;
27087
27092
  const members = Reflect.get(value, "errors");
27088
27093
  if (Array.isArray(members)) queue.push(...members.slice(0, 12 - steps));
27089
27094
  queue.push(value.cause);
@@ -28512,4 +28517,4 @@ function isNonEmptySpend(s) {
28512
28517
  //#endregion
28513
28518
  export { waitUntil as $, projectSandboxOutcome as $i, captureWorkerTraceEvidence as $n, runWorktreeHarness as $r, claimsAuthority as $t, driverExecutorFactory as A, withBudgetResources as Aa, writeAllBytes as Ai, providerAsExecutor as An, mergeTraceEnv as Ar, cliInPlaceExecutor as At, recordScopeOwnerDriverAttempt as B, providerMessageText as Ba, recordRuntimeOwnedDriveHarnessProviderEvidence as Bi, FileResultBlobStore as Bn, createOtelExporter as Br, WORKER_TRACE_PROPAGATION as Bt, createContinuationKeeper as C, throwAbort as Ca, sandboxActProfileMaterialization as Ci, captureBeforeDestroy as Cn, runAbortable as Cr, recoverRetainedInteractiveRun as Ct, passedItems as D, zeroSpend as Da, isNoEntError as Di, runBrainLoop as Dn, readHarnessTranscript as Dr, rollingDispatch as Dt, failedItems as E, withTimeout as Ea, worktreeCliProfileMaterialization as Ei, routerBrain as En, persistHarnessTranscript as Er, queueOf as Et, beginScopeOwnerAttempt as F, armDeadlineTimer as Fa, inheritRuntimeOwnedExecutorAttestation as Fi, createPushTraceSource as Fn, resolveRedactor as Fr, createWorktreeCliExecutor as Ft, settledToIteration as G, runtimeOwnedPendingExecutorMaterialization as Gi, assertContentAddress as Gn, padTraceId as Gr, taskToPrompt as Gt, recordScopeOwnerPause as H, runtimeOwnedExecutorExecutionBinding as Hi, InMemoryResultBlobStore as Hn, generateSpanId as Hr, workerTraceEnv as Ht, createScope as I, teardownExecutor as Ia, knownExecutionBindingReceipt as Ii, decodeToolPart as In, buildLoopOtelSpans as Ir, DEFAULT_SANDBOX_STEERING_MAX_TURNS as It, createWaitProbes as J, unknownMaterializationReceipt as Ji, loadSpawnForest as Jn, createRuntimeStreamEventCollector as Jr, readWorkerProgress as Jt, createWorkerSlots as K, runtimeOwnedScopeOwnerRuntime as Ki, encodeResultBlob as Kn, toOtelAttributes as Kr, DEFAULT_STALL_AFTER_MS as Kt, deriveNodeExecutionIdentity as L, teardownSurfaces as La, knownMaterializationReceipt as Li, sandboxSessionTraceSource as Ln, buildLoopSpanNodes as Lr, createSteerableSandboxSession as Lt, withDriverExecutor as M, abortError$2 as Ma, attestRuntimeOwnedScopeOwner as Mi, resolveAgentEnvironmentProvider as Mn, traceContextToEnv as Mr, createExecutor as Mt, SUBTREE_RESULT_LIMIT as N, awaitAbortable$1 as Na, authoredProfileDigest as Ni, unavailablePauseMs as Nn, defaultRedactor as Nr, createExecutorRegistry as Nt, verdictFromJudgeScore as O, addResourceSpend as Oa, prepareJsonlAppend as Oi, LEAF_CONTINUATION_TASK as On, contentAddress as Or, bindReusableExecutorExecutionId as Ot, assertRecursiveReservationPolicy as P, DEFAULT_SUCCESSFUL_SHUTDOWN_MS as Pa, finalizeRuntimeOwnedPendingExecutor as Pi, unavailableSignalOfFailure as Pn, defaultRedactorIdentityMaterial as Pr, snapshotExecutorConfig as Pt, validateWaitSpec as Q, detachedSnapshot as Qi, WORKER_TOOL_TRACE_SCHEMA_VERSION as Qn, runSettledCommand as Qr, PEER_MAIL_WIRE_KEY as Qt, meterRuntimeOwnedAccounting as R, promptFromAgentTurnInput as Ra, newExecutionAttemptId as Ri, registerRetainedExecutorPreparation as Rn, buildRuntimeEventOtelSpans as Rr, createRouterTranscript as Rt, composeContinuationNote as S, stringifySafe as Sa, renderUnsupported as Si, SandboxEvidenceRetentionError as Sn, linkAbort as Sr, reconnectRetainedInteractiveRun as St, expandQuestions as T, unmeteredSpend as Ta, validateProfileMaterialization as Ti, readPromptOptions as Tn, harnessTranscriptArtifact as Tr, freeSlots as Tt, restoreScopeOwnerAcceptedExecution as U, runtimeOwnedExecutorMaterialization as Ui, InMemorySpawnJournal as Un, loopEventToOtelSpan as Ur, workerTraceHeaders as Ut, recordScopeOwnerMaterialization as V, runtimeOwnedDriveHarnessProviderEvidence as Vi, FileSpawnJournal as Vn, flatOtelSpan as Vr, readWorkerTraceContext as Vt, scopeOwnerExecutorNodeContext as W, runtimeOwnedExecutorProviderEvidence as Wi, SpawnEventIndex as Wn, padSpanId as Wr, workerTraceSeamKey as Wt, pollFor as X, executableAgentSpecSnapshot as Xi, pendingWaits as Xn, sanitizeKnowledgeReadinessReport as Xr, AUTHORITY_MARKERS as Xt, isWaitOutcome as Y, executableAgentProfileSnapshot as Yi, materializeTreeView as Yn, sanitizeAgentRuntimeEvent as Yr, createInbox as Yt, timerAt as Z, detachedFrozen as Zi, replaySpawnTree as Zn, sanitizeRuntimeStreamEvent as Zr, DEFAULT_PEER_MAIL_LIMITS as Zt, CheckUnavailableError as _, hasCompleteCacheBreakdown as _a, promptControlProfileMaterialization as _i, isTerminalDecision as _n, retainedCreateMaterial as _r, workerInteractiveAdmissionFile as _t, collectDelivered as a, extractLlmCallEvent as aa, harnessInvocation as ai, isTerminalNodeStatus as an, ReservationWaitRefused as ar, reconcileScopeRetainedOwnerEnvironment as at, bestComposite as b, randomSuffix as ba, promptResourceProfileMaterialization as bi, probeSandboxCapabilities as bn, RunCancellationReason as br, workerInteractiveBindingFile as bt, runTree as c, mapSandboxToolEvent as ca, parseCodexTokenUsage as ci, addHarnessUsage as cn, meterUsageEvent as cr, scopeRetainedOwnerResourceReader as ct, classifyDriverFailure as d, sandboxProgressEvents as da, AGENT_PROFILE_MATERIALIZATION_AXES as di, readCodexRolloutSession as dn, spendFromUsageTotals as dr, SPAWN_RESOURCE_PATH_MAX_BYTES as dt, readSandboxOutcome as ea, captureWorktreeDiff as ei, createPeerMailbox as en, isTraceAnalysisStore as er, bindScopeRetainedOwnerEnvironmentId as et, runDriverWithRetry as f, sumSandboxUsage as fa, assertProfileMaterialization as fi, bridgeRuntimeAttachmentsKey as fn, errMessage as fr, environmentReader as ft, CONTINUATION_FACTS as g, deleteBoxSafe as ga, profileMaterializationAxes$1 as gi, defaultSelectWinner as gn, startRetainedRunInEnvironment as gr, readWorkerInteractiveAdmissions as gt, CONTINUATIONS_DIR as h, cloneSpend as ha, fullProfileMaterialization as hi, createSandboxForSpec as hn, startRetainedRun as hr, interactiveAdmissionSeamKey as ht, bestDelivered as i, createSandboxUsageLedger as ia, LOCAL_HARNESSES as ii, isLiveNodeStatus as in, BudgetReconcileFault as ir, prepareScopeRetainedOwnerTask as it, isDriverSpec as j, decodeHarnessUsage as ja, attestRuntimeOwnedPendingExecutor as ji, providerAsSandboxClient as jn, readTraceContextFromEnv as jr, cliWorktreeExecutor as jt, driverChild as k, resourceTelemetry as ka, readCommittedJsonLines as ki, createAgentEnvironmentProviderRegistry as kn, createPropagatingTraceEmitter as kr, captureReusableExecutorConfig as kt, DriverAttemptsExhaustedError as l, notifySandboxEventObserver as la, CodexExecutionDiagnosticError as li, createCodexRolloutStoreReader as ln, newUsageTotals as lr, scopeRetainedOwnerRestorePoint as lt, upstreamUnavailableSignal as m, chargedTokens as ma, defineProfileMaterializationContract as mi, TERMINAL_DECISIONS as mn, recoverRetainedRun as mr, resolveSpawnResourcePaths as mt, createRootHandle as n, canonicalStreamEventFromSandboxEvent as na, removeWorktree as ni, peerMailTools as nn, workerTraceAnalysisStore as nr, consumeScopeRetainedOwnerResult as nt, pickBestDelivered as o, isSandboxTerminalEvent as oa, harnessSupportsReasoningEffort as oi, bridgeAdmissionRefusal as on, assertValidBudget as or, scopeRetainedOwnerContext as ot, summarizeDriverAttempts as p, addSpend as pa, controlProfileMaterialization as pi, bridgeStopSignalKey as pn, reconnectRetainedRun as pr, hostDirectoryReader as pt, openSlotGroup as q, unknownExecutionBindingReceipt as qi, insideCursorNamespace as qn, createRuntimeEventCollector as qr, createActivityLog as qt, createSupervisor as r, createSandboxToolPartState as ra, DEFAULT_LOCAL_HARNESS as ri, peerMailVerbNames as rn, executorFailure as rr, noteScopeRetainedOwnerCoordination as rt, runFinalizer as s, mapSandboxEvent as sa, localHarnessExecutable as si, bridgeModelRouteRefusal as sn, createBudgetPool as sr, scopeRetainedOwnerPriorSpend as st, DEFAULT_MAX_DEPTH as t, assertSandboxServedModel as ta, createWorktree as ti, isPeerMailEnvelope as tn, parseWorkerToolTraceArtifact as tr, bindScopeRetainedOwnerProvider as tt, HarnessTurnFailedError as u, sandboxEventServedBackend as ua, terminateProcessTreeAndConfirm as ui, harnessUsageIsEmpty as un, spendFromUsageEvents as ur, scopeRetainedOwnerResult as ut, admitContinuationPolicy as v, isAbortError$2 as va, promptModelProfileMaterialization as vi, runAgentRounds as vn, destroyInteractiveEnvironment as vr, attachWorker as vt, distillFindings as w, throwIfAborted as wa, unsupportedProfileDimensions as wi, assertBoxlessPromptOptions as wn, captureHarnessTranscript as wr, startRetainedInteractiveRun as wt, checkVerdictOf as x, sleep as xa, renderProfileMaterializationIssues as xi, acquireSandbox as xn, abortError as xr, workerInteractiveBindingsDir as xt, admitFinding as y, promptCacheTokenClasses as ya, promptOnlyProfileMaterialization as yi, createSandboxLineage as yn, environmentGone as yr, readWorkerInteractiveBinding as yt, meterRuntimeOwnedProviderAttempt as z, promptOptionsFromAgentTurnInput as za, providerAttemptEvidence as zi, retainedExecutorSeamKey as zn, createOpenInferenceFileExporter as zr, createInPlaceCliExecutor as zt };
28514
28519
 
28515
- //# sourceMappingURL=supervisor-BnL7JHEI.js.map
28520
+ //# sourceMappingURL=supervisor-D6DoFY-5.js.map