@tangle-network/agent-runtime 0.215.0 → 0.217.1

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 (54) hide show
  1. package/dist/{activation-C3j9bpRf.js → activation-CmjhbLOU.js} +2 -2
  2. package/dist/{activation-C3j9bpRf.js.map → activation-CmjhbLOU.js.map} +1 -1
  3. package/dist/{activation-r96R8a7k.d.ts → activation-D5bSCvRA.d.ts} +2 -2
  4. package/dist/agent.d.ts +2 -2
  5. package/dist/agent.js +2 -2
  6. package/dist/{coordination-driver-CBhPSKpm.js → coordination-driver-TV8PUtix.js} +2 -2
  7. package/dist/{coordination-driver-CBhPSKpm.js.map → coordination-driver-TV8PUtix.js.map} +1 -1
  8. package/dist/{delegate-BF6AsLV5.js → delegate-DY7LDk6i.js} +2 -2
  9. package/dist/{delegate-BF6AsLV5.js.map → delegate-DY7LDk6i.js.map} +1 -1
  10. package/dist/durable.d.ts +8 -2
  11. package/dist/durable.js +8 -2
  12. package/dist/durable.js.map +1 -1
  13. package/dist/{graph-DVWDJ5DJ.js → graph-Dq8M69Wl.js} +3 -3
  14. package/dist/{graph-DVWDJ5DJ.js.map → graph-Dq8M69Wl.js.map} +1 -1
  15. package/dist/{improvement-cycle-CKe5gF3i.js → improvement-cycle-CtzDO04H.js} +3 -3
  16. package/dist/{improvement-cycle-CKe5gF3i.js.map → improvement-cycle-CtzDO04H.js.map} +1 -1
  17. package/dist/{index-BxIucF40.d.ts → index-XlvRo6ys.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 +3 -3
  22. package/dist/kernel.d.ts +3 -3
  23. package/dist/kernel.js +8 -8
  24. package/dist/{loop-runner-bin-Bz0RR-dg.d.ts → loop-runner-bin-C4hZxGiX.d.ts} +3 -3
  25. package/dist/{loop-runner-bin-ch9YJoIH.js → loop-runner-bin-C8fsTTl4.js} +3 -3
  26. package/dist/{loop-runner-bin-ch9YJoIH.js.map → loop-runner-bin-C8fsTTl4.js.map} +1 -1
  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-CRQhVT_V.d.ts → openai-tools-HhRT1L1W.d.ts} +2 -2
  33. package/dist/profiles.d.ts +2 -2
  34. package/dist/{provision-supervisor-TQ8l6cE_.js → provision-supervisor-iQXK22cP.js} +3 -3
  35. package/dist/{provision-supervisor-TQ8l6cE_.js.map → provision-supervisor-iQXK22cP.js.map} +1 -1
  36. package/dist/{redact-Fngk47qa.js → redact-BaQMqbqi.js} +98 -37
  37. package/dist/redact-BaQMqbqi.js.map +1 -0
  38. package/dist/{runtime-C-pQoEnJ.js → runtime-yar7Fays.js} +8 -8
  39. package/dist/{runtime-C-pQoEnJ.js.map → runtime-yar7Fays.js.map} +1 -1
  40. package/dist/{server-BGd-jpIR.js → server-BU0NZQ9c.js} +3 -3
  41. package/dist/{server-BGd-jpIR.js.map → server-BU0NZQ9c.js.map} +1 -1
  42. package/dist/{stream-agent-turn-B7YnjmXV.d.ts → stream-agent-turn-DPv9w25U.d.ts} +15 -2
  43. package/dist/{structural-rollout-BfgSgWof.js → structural-rollout-CtZzP2lH.js} +2 -2
  44. package/dist/{structural-rollout-BfgSgWof.js.map → structural-rollout-CtZzP2lH.js.map} +1 -1
  45. package/dist/{substrate-B4iT90Zv.d.ts → substrate-sWW5cDIe.d.ts} +2 -2
  46. package/dist/{supervise-C03W52y5.js → supervise-BvVk6npK.js} +3 -3
  47. package/dist/{supervise-C03W52y5.js.map → supervise-BvVk6npK.js.map} +1 -1
  48. package/dist/testing.d.ts +2 -2
  49. package/dist/testing.js +12 -12
  50. package/dist/tui/index.d.ts +1 -1
  51. package/dist/tui/index.js +1 -1
  52. package/dist/{types-Q0PMagdm.d.ts → types-Ba5mJkyd.d.ts} +13 -1
  53. package/package.json +1 -1
  54. package/dist/redact-Fngk47qa.js.map +0 -1
@@ -10233,7 +10233,10 @@ async function executeIteration(args) {
10233
10233
  const creditLlmCall = (llmCall) => {
10234
10234
  sawLlmCall = true;
10235
10235
  slot.costUsd += llmCall.costUsd ?? 0;
10236
- if (llmCall.usdKnown === false) slot.costUsdKnown = false;
10236
+ if (llmCall.usdKnown === false) {
10237
+ slot.costUsdKnown = false;
10238
+ slot.unprovenCostUsd = (slot.unprovenCostUsd ?? 0) + (llmCall.costUsd ?? 0);
10239
+ }
10237
10240
  if (llmCall.estimatedCostUsd !== void 0) slot.estimatedCostUsd = (slot.estimatedCostUsd ?? 0) + llmCall.estimatedCostUsd;
10238
10241
  if (llmCall.promptCache) {
10239
10242
  slot.promptCache ??= {};
@@ -10487,6 +10490,7 @@ function finalize(args) {
10487
10490
  }
10488
10491
  const costUsd = args.iterations.reduce((sum, iter) => sum + iter.costUsd, 0);
10489
10492
  const costUsdKnown = args.iterations.every((iter) => iter.costUsdKnown !== false);
10493
+ const unprovenCostUsd = args.iterations.reduce((sum, iter) => sum + (iter.unprovenCostUsd ?? 0), 0);
10490
10494
  const estimatedCostUsd = args.iterations.reduce((sum, iter) => sum + (iter.estimatedCostUsd ?? 0), 0);
10491
10495
  const promptCache = {};
10492
10496
  for (const iteration of args.iterations) if (iteration.promptCache) mergeUsageMetadata(promptCache, iteration.promptCache);
@@ -10504,6 +10508,7 @@ function finalize(args) {
10504
10508
  durationMs: args.now() - args.startMs,
10505
10509
  costUsd,
10506
10510
  ...costUsdKnown ? {} : { costUsdKnown: false },
10511
+ ...unprovenCostUsd > 0 ? { unprovenCostUsd } : {},
10507
10512
  ...estimatedCostUsd > 0 ? { estimatedCostUsd } : {},
10508
10513
  ...Object.keys(promptCache).length > 0 ? { promptCache } : {},
10509
10514
  tokenUsage,
@@ -15006,6 +15011,7 @@ const outsideKinds = /* @__PURE__ */ new Set([
15006
15011
  "execution-admitted",
15007
15012
  "execution-result",
15008
15013
  "progress",
15014
+ "reconciled",
15009
15015
  "edge",
15010
15016
  "teardown-unconfirmed",
15011
15017
  "trace-unpropagated",
@@ -15070,6 +15076,7 @@ async function replaySpawnTree(journal, blobs, root) {
15070
15076
  if (ev.kind === "waiting") continue;
15071
15077
  if (ev.kind === "metered") continue;
15072
15078
  if (ev.kind === "progress") continue;
15079
+ if (ev.kind === "reconciled") continue;
15073
15080
  if (ev.kind === "materialized") continue;
15074
15081
  if (ev.kind === "execution-bound") continue;
15075
15082
  if (ev.kind === "execution-input" || ev.kind === "execution-admitted" || ev.kind === "execution-result") continue;
@@ -15273,6 +15280,10 @@ function materializeTreeView(events) {
15273
15280
  node.executionBindings ??= [];
15274
15281
  node.executionBindings.push(ev.binding);
15275
15282
  }
15283
+ for (const ev of [...events].filter((event) => event.kind === "reconciled").sort((a, b) => a.seq - b.seq)) {
15284
+ const node = requireNode(nodes, ev.id);
15285
+ if (node.status === "pending") node.spent = cloneSpend(ev.spent);
15286
+ }
15276
15287
  for (const ev of events) {
15277
15288
  if (ev.kind !== "metered") continue;
15278
15289
  const node = requireNode(nodes, ev.id);
@@ -16770,7 +16781,8 @@ async function* streamSandboxLeaf(args) {
16770
16781
  } : result.winner?.verdict ?? leafVerdict(result);
16771
16782
  const tokensKnown = result.tokenUsage.tokensKnown !== false;
16772
16783
  const usdKnown = result.costUsdKnown !== false;
16773
- const usdEstimated = usdKnown || result.costUsd <= 0 ? void 0 : result.costUsd;
16784
+ const unprovenUsd = Math.min(result.unprovenCostUsd ?? 0, result.costUsd);
16785
+ const usdEstimated = unprovenUsd > 0 ? unprovenUsd : void 0;
16774
16786
  const outWithUsage = {
16775
16787
  ...outWithOutcome,
16776
16788
  ...result.estimatedCostUsd !== void 0 ? { estimatedCostUsd: result.estimatedCostUsd } : {},
@@ -16983,7 +16995,11 @@ async function* streamCliLeaf(args) {
16983
16995
  args.signal.addEventListener("abort", onAbort, { once: true });
16984
16996
  args.controller.signal.addEventListener("abort", onAbort, { once: true });
16985
16997
  }
16998
+ let deliveryError;
16986
16999
  if (proc.stdin) {
17000
+ proc.stdin.on("error", (error) => {
17001
+ if (error.code !== "EPIPE") deliveryError ??= error;
17002
+ });
16987
17003
  proc.stdin.write(prompt);
16988
17004
  proc.stdin.end();
16989
17005
  }
@@ -17002,6 +17018,7 @@ async function* streamCliLeaf(args) {
17002
17018
  args.controller.signal.removeEventListener("abort", onAbort);
17003
17019
  if (exit.error) throw new ValidationError$1(`cliExecutor: spawn failed: ${exit.error.message}`, { cause: exit.error });
17004
17020
  if (exit.code !== 0) throw new ValidationError$1(`cliExecutor: ${args.seam.bin} exited ${exit.code}: ${errChunks.join("").slice(0, 200)}`);
17021
+ if (deliveryError) throw new ValidationError$1(`cliExecutor: could not deliver the task to ${args.seam.bin}: ${deliveryError.message}`, { cause: deliveryError });
17005
17022
  const out = { content: chunks.join("") };
17006
17023
  args.onArtifact({
17007
17024
  outRef: contentRef("cli", out),
@@ -18998,10 +19015,15 @@ function keyedAssignments(events, settled) {
18998
19015
  }
18999
19016
  return keys;
19000
19017
  }
19001
- /** Child reservations whose spawn was durable but whose terminal record never landed. */
19018
+ /** Child reservations whose spawn was durable, whose terminal record never landed, and whose
19019
+ * reservation was never reconciled: the process died with them in flight, so nothing observed
19020
+ * their spend and the ceiling is the only sound charge. An open node with a `reconciled` record is
19021
+ * not uncertain in that sense — its floor is measured evidence and is charged by
19022
+ * {@link sumMeasuredSpendFromEvents}, never here, so the two readers cannot charge one node twice. */
19002
19023
  function uncertainSpawnBudgets(events, recovered = /* @__PURE__ */ new Set()) {
19003
19024
  const terminal = new Set(events.filter(closesCursorSlot).map((event) => event.id));
19004
- return events.filter((event) => event.kind === "spawned" && event.parent !== void 0 && !terminal.has(event.id) && !recovered.has(event.id) && event.runtime !== "inline").map((event) => event.budget);
19025
+ const reconciled = new Set(events.flatMap((event) => event.kind === "reconciled" ? [event.id] : []));
19026
+ return events.filter((event) => event.kind === "spawned" && event.parent !== void 0 && !terminal.has(event.id) && !reconciled.has(event.id) && !recovered.has(event.id) && event.runtime !== "inline").map((event) => event.budget);
19005
19027
  }
19006
19028
  /** Highest `seq` among events matching `pred`, or `-1` when none match (so a resumed scope's
19007
19029
  * first new ordinal/seq is 0 — the same start a fresh scope uses). */
@@ -19010,9 +19032,12 @@ function maxSeqOf(events, pred) {
19010
19032
  for (const ev of events) if (pred(ev) && ev.seq > max) max = ev.seq;
19011
19033
  return max;
19012
19034
  }
19013
- /** Per-channel sum over a journaled event list: `settled` = spawned-child work (reconciled);
19014
- * `metered` = driver inference (re-homed up the tree, so a single root-tree pass already
19015
- * includes every nested driver's inference). */
19035
+ /** Per-channel sum over a journaled event list: `settled` = spawned-child work (reconciled), plus
19036
+ * the reconciled floor of every node still open, plus the declared ceiling of every open node
19037
+ * nothing reconciled; `metered` = driver inference (re-homed up the tree, so a single root-tree
19038
+ * pass already includes every nested driver's inference). The pool commits exactly these amounts
19039
+ * — a floor where a reconcile ran, a ceiling where the process died first — so this sum is the
19040
+ * same ledger the pool holds, read from the journal. */
19016
19041
  function sumSpendFromEvents(events) {
19017
19042
  const totals = sumMeasuredSpendFromEvents(events);
19018
19043
  const rootBudget = events.find((event) => event.kind === "spawned" && event.parent === void 0)?.budget;
@@ -19035,12 +19060,19 @@ function sumMeasuredSpendFromEvents(events) {
19035
19060
  let childWork = zeroSpend();
19036
19061
  let driverInference = zeroSpend();
19037
19062
  const owners = /* @__PURE__ */ new Map();
19063
+ const terminal = new Set(events.filter(closesCursorSlot).map((event) => event.id));
19064
+ const floors = /* @__PURE__ */ new Map();
19038
19065
  for (const ev of events) if (ev.kind === "settled" || ev.kind === "cancelled") childWork = addSpend(childWork, withBudgetResources(ev.spent ?? {
19039
19066
  ...zeroSpend(),
19040
19067
  tokensKnown: false,
19041
19068
  usdKnown: false
19042
19069
  }, budgets.get(ev.id) ?? {}));
19043
19070
  else if (ev.kind === "metered") owners.set(ev.id, addSpend(owners.get(ev.id) ?? zeroSpend(), ev.spend));
19071
+ else if (ev.kind === "reconciled" && !terminal.has(ev.id)) {
19072
+ const prior = floors.get(ev.id);
19073
+ if (prior === void 0 || ev.seq > prior.seq) floors.set(ev.id, ev);
19074
+ }
19075
+ for (const [id, floor] of floors) childWork = addSpend(childWork, withBudgetResources(floor.spent, budgets.get(id) ?? {}));
19044
19076
  for (const [id, spend] of owners) driverInference = addSpend(driverInference, withBudgetResources(spend, budgets.get(id) ?? {}));
19045
19077
  return {
19046
19078
  childWork,
@@ -19052,9 +19084,9 @@ async function prepareScopeResume(opts, events, signal, now, parentId = opts.run
19052
19084
  const prepared = await prepareInterruptedExecutors(opts, events, signal, now, parentId);
19053
19085
  const prior = prepared.events;
19054
19086
  const recovering = new Set(prepared.recoveries.map((item) => item.spawned.id));
19055
- const measuredEvents = prior.filter((event) => event.kind !== "metered" || !recovering.has(event.id));
19087
+ const measuredEvents = prior.filter((event) => event.kind !== "metered" && event.kind !== "reconciled" || !recovering.has(event.id));
19056
19088
  const measured = sumMeasuredSpendFromEvents(measuredEvents);
19057
- const hasCommittedEvidence = measuredEvents.some((event) => event.kind === "metered" || event.kind === "settled" || event.kind === "cancelled");
19089
+ const hasCommittedEvidence = measuredEvents.some((event) => event.kind === "metered" || event.kind === "reconciled" || event.kind === "settled" || event.kind === "cancelled");
19058
19090
  const settled = await replaySpawnTree(opts.journal, opts.blobs, opts.runId);
19059
19091
  signal.throwIfAborted();
19060
19092
  return {
@@ -20671,17 +20703,34 @@ async function raceFirstSettled(pending) {
20671
20703
  }
20672
20704
  /** Rehomed inference has its own per-child sequence, independent of terminal cursors. */
20673
20705
  async function appendSettlementMetering(journal, root, id, spend, at) {
20674
- const event = {
20706
+ await appendAcknowledged(journal, root, {
20675
20707
  kind: "metered",
20676
20708
  id,
20677
20709
  spend,
20678
- seq: (await journal.loadTree(root) ?? []).reduce((max, event) => event.kind === "metered" && event.id === id ? Math.max(max, event.seq) : max, -1) + 1,
20710
+ seq: await nextPerNodeSeq(journal, root, "metered", id),
20679
20711
  at
20680
- };
20712
+ });
20713
+ }
20714
+ /** An open node's reconciled floor has the same per-child sequence discipline as its metering:
20715
+ * outside the cursor namespace, monotonic per node, so a node reconciled once per process (a
20716
+ * retained failure, a recovery, a second retained failure) keeps its records ordered. */
20717
+ async function appendReconciledFloor(journal, root, id, spent, at) {
20718
+ await appendAcknowledged(journal, root, {
20719
+ kind: "reconciled",
20720
+ id,
20721
+ spent,
20722
+ seq: await nextPerNodeSeq(journal, root, "reconciled", id),
20723
+ at
20724
+ });
20725
+ }
20726
+ async function nextPerNodeSeq(journal, root, kind, id) {
20727
+ return (await journal.loadTree(root) ?? []).reduce((max, event) => event.kind === kind && event.id === id ? Math.max(max, event.seq) : max, -1) + 1;
20728
+ }
20729
+ async function appendAcknowledged(journal, root, event) {
20681
20730
  try {
20682
20731
  await journal.appendEvent(root, event);
20683
20732
  } catch (error) {
20684
- if (!(await journal.loadTree(root))?.some((record) => record.kind === "metered" && contentAddress(record) === contentAddress(event))) throw error;
20733
+ if (!(await journal.loadTree(root))?.some((record) => record.kind === event.kind && contentAddress(record) === contentAddress(event))) throw error;
20685
20734
  }
20686
20735
  }
20687
20736
  /** Stamp the cursor `seq`, write the `settled` journal record, and project the
@@ -20716,6 +20765,7 @@ async function finalizeSettlement(child, settlement, seq, args, now) {
20716
20765
  seq,
20717
20766
  at
20718
20767
  });
20768
+ else if (settlement.reconciled !== void 0) await appendReconciledFloor(args.journal, args.root, child.id, settlement.reconciled, at);
20719
20769
  notifyRuntimeHookEvent(args.hooks, {
20720
20770
  id: `${child.id}:settled`,
20721
20771
  runId: args.root,
@@ -21043,19 +21093,22 @@ async function runChild(live, executor, childAbort, task, opts, pool, ticket, bl
21043
21093
  live.executorDone = true;
21044
21094
  const trace = await captureTraceOnce();
21045
21095
  await teardownOnce(opts.shutdown ?? "brutalKill").catch(() => void 0);
21046
- const metered = executor.metered?.();
21047
- reconcileOnce({
21048
- iterations: metered?.iterations ?? opts.budget.maxIterations,
21049
- tokens: metered?.tokens ?? {
21050
- input: opts.budget.maxTokens,
21051
- output: 0
21052
- },
21053
- tokensKnown: false,
21054
- usd: metered?.usd ?? opts.budget.maxUsd ?? 0,
21055
- usdKnown: false,
21056
- ms: Math.max(0, now() - live.startedAt)
21057
- });
21058
- return downRecord(errMessage(err), true, trace, metered);
21096
+ if (!reconciled) {
21097
+ const accounting = executor.accounting?.();
21098
+ const ms = Math.max(0, now() - live.startedAt);
21099
+ live.spent = {
21100
+ ...unknownFloor(accounting?.reported ?? live.spent),
21101
+ ms
21102
+ };
21103
+ reconcileOnce({
21104
+ ...unknownFloor(accounting?.reservation ?? live.spent),
21105
+ ms
21106
+ });
21107
+ }
21108
+ return {
21109
+ ...downRecord(errMessage(err), true, trace, executor.metered?.()),
21110
+ reconciled: live.spent
21111
+ };
21059
21112
  }
21060
21113
  live.executorDone = true;
21061
21114
  let evidenceError;
@@ -21075,15 +21128,7 @@ async function runChild(live, executor, childAbort, task, opts, pool, ticket, bl
21075
21128
  if (accounting) live.spent = accounting.reported;
21076
21129
  const providerModel = runtimeOwnedExecutorProviderEvidence(executor);
21077
21130
  const aborted = childAbort.signal.aborted || isAbortError(err);
21078
- if (started && !terminalTelemetryCaptured && accounting === void 0) live.spent = {
21079
- ...live.spent,
21080
- tokensKnown: false,
21081
- usdKnown: false,
21082
- ...live.spent.resources === void 0 ? {} : { resources: Object.fromEntries(Object.entries(live.spent.resources).map(([name, value]) => [name, {
21083
- ...value,
21084
- known: false
21085
- }])) }
21086
- };
21131
+ if (started && !terminalTelemetryCaptured && accounting === void 0) live.spent = unknownFloor(live.spent);
21087
21132
  const reconcileError = reconcileOnce(accounting?.reservation ?? live.spent);
21088
21133
  return downRecord(errMessage(err), evidenceError !== void 0 || teardownError !== void 0 || reconcileError !== void 0 || aborted || isInfraError(err), trace, executor.metered?.(), providerModel);
21089
21134
  } finally {
@@ -21309,6 +21354,19 @@ async function awaitAbortable(work, signal) {
21309
21354
  });
21310
21355
  });
21311
21356
  }
21357
+ /** Observed partial counts as a lower bound on every channel: the work happened, its remainder went
21358
+ * unreported, and no reader may take the counts for a measurement. */
21359
+ function unknownFloor(spend) {
21360
+ return {
21361
+ ...spend,
21362
+ tokensKnown: false,
21363
+ usdKnown: false,
21364
+ ...spend.resources === void 0 ? {} : { resources: Object.fromEntries(Object.entries(spend.resources).map(([name, value]) => [name, {
21365
+ ...value,
21366
+ known: false
21367
+ }])) }
21368
+ };
21369
+ }
21312
21370
  function downRecord(reason, infra, trace, metered, providerModel) {
21313
21371
  return {
21314
21372
  kind: "down",
@@ -22118,7 +22176,10 @@ function createSupervisor() {
22118
22176
  controller.abort(reason);
22119
22177
  return true;
22120
22178
  };
22121
- const onCallerAbort = () => cascadeAbort(opts.signal?.reason instanceof RunCancellationReason ? opts.signal.reason : new RunCancellationReason("signal", typeof opts.signal?.reason === "string" ? opts.signal.reason : "caller signal aborted"));
22179
+ const onCallerAbort = () => {
22180
+ const reason = opts.signal ? abortReason(opts.signal, "caller signal aborted") : "caller signal aborted";
22181
+ cascadeAbort(reason instanceof RunCancellationReason ? reason : new RunCancellationReason("signal", typeof reason === "string" ? reason : "caller signal aborted"));
22182
+ };
22122
22183
  if (opts.signal) if (opts.signal.aborted) onCallerAbort();
22123
22184
  else opts.signal.addEventListener("abort", onCallerAbort, { once: true });
22124
22185
  const breaker = createIntensityBreaker(opts, () => cascadeAbort("intensity breaker tripped"));
@@ -22671,4 +22732,4 @@ function resolveRedactor(redact) {
22671
22732
  //#endregion
22672
22733
  export { captureReusableExecutorConfig as $, traceContextToEnv as $n, inheritRuntimeOwnedExecutorAttestation as $r, bridgeRuntimeAttachmentsKey as $t, consumeScopeRetainedOwnerResult as A, sumSandboxUsage as Ai, throwAbort as An, assertProfileMaterialization as Ar, workerTraceHeaders as At, workerInteractiveBindingFile as B, registerRetainedExecutorPreparation as Bn, renderUnsupported as Br, claimsAuthority as Bt, settledToIteration as C, extractLlmCallEvent as Ci, deleteBoxSafe as Cn, DEFAULT_LOCAL_HARNESS as Cr, contentAddress as Ct, timerAt as D, notifySandboxEventObserver as Di, randomSuffix as Dn, parseCodexTokenUsage as Dr, WORKER_TRACE_PROPAGATION as Dt, pollFor as E, mapSandboxToolEvent as Ei, promptCacheTokenClasses as En, localHarnessExecutable as Er, spendFromUsageEvents as Et, interactiveAdmissionSeamKey as F, promptOptionsFromAgentTurnInput as Fi, resourceTelemetry as Fn, promptControlProfileMaterialization as Fr, readWorkerProgress as Ft, destroyInteractiveEnvironment as G, reconnectRetainedRun as Gn, isNoEntError as Gr, isLiveNodeStatus as Gt, reconnectRetainedInteractiveRun as H, RunCancellationReason as Hn, unsupportedProfileDimensions as Hr, isPeerMailEnvelope as Ht, readWorkerInteractiveAdmissions as I, providerMessageText as Ii, withBudgetResources as In, promptModelProfileMaterialization as Ir, createInbox as It, queueOf as J, startRetainedRunInEnvironment as Jn, writeAllBytes as Jr, bridgeModelRouteRefusal as Jt, effectiveConcurrency as K, recoverRetainedRun as Kn, parseCommittedJsonLines as Kr, isTerminalNodeStatus as Kt, workerInteractiveAdmissionFile as L, createPushTraceSource as Ln, promptOnlyProfileMaterialization as Lr, AUTHORITY_MARKERS as Lt, scopeRetainedOwnerContext as M, abortError$2 as Mi, unmeteredSpend as Mn, defineProfileMaterializationContract as Mr, taskToPrompt as Mt, scopeRetainedOwnerPriorSpend as N, awaitAbortable$1 as Ni, zeroSpend as Nn, fullProfileMaterialization as Nr, DEFAULT_STALL_AFTER_MS as Nt, validateWaitSpec as O, sandboxEventServedBackend as Oi, sleep as On, CodexExecutionDiagnosticError as Or, readWorkerTraceContext as Ot, scopeRetainedOwnerResult as P, promptFromAgentTurnInput as Pi, addResourceSpend as Pn, profileMaterializationAxes$1 as Pr, createActivityLog as Pt, bindReusableExecutorExecutionId as Q, readTraceContextFromEnv as Qn, finalizeRuntimeOwnedPendingExecutor as Qr, readCodexRolloutSession as Qt, attachWorker as R, decodeToolPart as Rn, promptResourceProfileMaterialization as Rr, DEFAULT_PEER_MAIL_LIMITS as Rt, scopeOwnerExecutorNodeContext as S, createSandboxUsageLedger as Si, cloneSpend as Sn, removeWorktree as Sr, workerTraceAnalysisStore as St, isWaitOutcome as T, mapSandboxEvent as Ti, isAbortError$2 as Tn, harnessSupportsReasoningEffort as Tr, createBudgetPool as Tt, recoverRetainedInteractiveRun as U, abortError$1 as Un, validateProfileMaterialization as Ur, peerMailTools as Ut, workerInteractiveBindingsDir as V, retainedExecutorSeamKey as Vn, sandboxActProfileMaterialization as Vr, createPeerMailbox as Vt, startRetainedInteractiveRun as W, linkAbort as Wn, worktreeCliProfileMaterialization as Wr, peerMailVerbNames as Wt, DEFAULT_SUCCESSFUL_SHUTDOWN_MS as X, createPropagatingTraceEmitter as Xn, attestRuntimeOwnedScopeOwner as Xr, createCodexRolloutStoreReader as Xt, rollingDispatch as Y, retainedCreateMaterial as Yn, attestRuntimeOwnedPendingExecutor as Yr, addHarnessUsage as Yt, teardownExecutor as Z, mergeTraceEnv as Zn, authoredProfileDigest as Zr, harnessUsageIsEmpty as Zt, deriveNodeExecutionIdentity as _, projectSandboxOutcome as _i, providerAsSandboxClient as _n, sanitizeRuntimeStreamEvent as _r, replaySpawnTree as _t, createSupervisor as a, runtimeOwnedDriveHarnessProviderEvidence as ai, runAgentRounds as an, createOtelExporter as ar, createWorktreeCliExecutor as at, recordScopeOwnerMaterialization as b, canonicalStreamEventFromSandboxEvent as bi, addSpend as bn, captureWorktreeDiff as br, isTraceAnalysisStore as bt, pickBestDelivered as c, runtimeOwnedExecutorProviderEvidence as ci, acquireSandbox as cn, generateSpanId as cr, createInPlaceCliExecutor as ct, driverChild as d, unknownExecutionBindingReceipt as di, routerBrain as dn, padTraceId as dr, InMemoryResultBlobStore as dt, knownExecutionBindingReceipt as ei, bridgeStopSignalKey as en, INTELLIGENCE_WIRE_VERSION as er, cliInPlaceExecutor as et, driverExecutorFactory as f, unknownMaterializationReceipt as fi, runBrainLoop as fn, toOtelAttributes as fr, InMemorySpawnJournal as ft, createScope as g, detachedSnapshot as gi, providerAsExecutor as gn, sanitizeKnowledgeReadinessReport as gr, pendingWaits as gt, beginScopeOwnerAttempt as h, detachedFrozen as hi, createAgentEnvironmentProviderRegistry as hn, sanitizeAgentRuntimeEvent as hr, materializeTreeView as ht, createRootHandle as i, recordRuntimeOwnedDriveHarnessProviderEvidence as ii, isTerminalDecision as in, createOpenInferenceFileExporter as ir, snapshotExecutorConfig as it, prepareScopeRetainedOwnerTask as j, decodeHarnessUsage as ji, throwIfAborted as jn, controlProfileMaterialization as jr, workerTraceSeamKey as jt, waitUntil as k, sandboxProgressEvents as ki, stringifySafe as kn, AGENT_PROFILE_MATERIALIZATION_AXES as kr, workerTraceEnv as kt, runFinalizer as l, runtimeOwnedPendingExecutorMaterialization as li, assertBoxlessPromptOptions as ln, loopEventToOtelSpan as lr, FileResultBlobStore as lt, withDriverExecutor as m, executableAgentSpecSnapshot as mi, observedModelMatchesDeclared as mn, createRuntimeStreamEventCollector as mr, loadSpawnForest as mt, defaultRedactorIdentityMaterial as n, newExecutionAttemptId as ni, createSandboxForSpec as nn, buildLoopSpanNodes as nr, createExecutor as nt, bestDelivered as o, runtimeOwnedExecutorExecutionBinding as oi, createSandboxLineage as on, exportEvalRuns as or, DEFAULT_SANDBOX_STEERING_MAX_TURNS as ot, isDriverSpec as p, executableAgentProfileSnapshot as pi, canonicalObservedModelParts as pn, createRuntimeEventCollector as pr, insideCursorNamespace as pt, freeSlots as q, startRetainedRun as qn, prepareJsonlAppend as qr, bridgeAdmissionRefusal as qt, resolveRedactor as r, providerAttemptEvidence as ri, defaultSelectWinner as rn, buildRuntimeEventOtelSpans as rr, createExecutorRegistry as rt, collectDelivered as s, runtimeOwnedExecutorMaterialization as si, probeSandboxCapabilities as sn, flatOtelSpan as sr, createSteerableSandboxSession as st, defaultRedactor as t, knownMaterializationReceipt as ti, TERMINAL_DECISIONS as tn, buildLoopOtelSpans as tr, cliWorktreeExecutor as tt, runTree as u, runtimeOwnedScopeOwnerRuntime as ui, readPromptOptions as un, padSpanId as ur, FileSpawnJournal as ut, meterRuntimeOwnedAccounting as v, readSandboxOutcome as vi, resolveAgentEnvironmentProvider as vn, runSettledCommand as vr, WORKER_TOOL_TRACE_SCHEMA_VERSION as vt, createWaitProbes as w, isSandboxTerminalEvent as wi, hasCompleteCacheBreakdown as wn, LOCAL_HARNESSES as wr, assertValidBudget as wt, restoreScopeOwnerAcceptedExecution as x, createSandboxToolPartState as xi, chargedTokens as xn, createWorktree as xr, parseWorkerToolTraceArtifact as xt, meterRuntimeOwnedProviderAttempt as y, assertSandboxServedModel as yi, sandboxClientAsProvider as yn, runWorktreeHarness as yr, captureWorkerTraceEvidence as yt, readWorkerInteractiveBinding as z, sandboxSessionTraceSource as zn, renderProfileMaterializationIssues as zr, PEER_MAIL_WIRE_KEY as zt };
22673
22734
 
22674
- //# sourceMappingURL=redact-Fngk47qa.js.map
22735
+ //# sourceMappingURL=redact-BaQMqbqi.js.map