@tangle-network/agent-runtime 10.0.10 → 10.0.11

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 (55) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dist/{activation-D9ENOWud.d.ts → activation-B9c5eSla.d.ts} +13 -5
  3. package/dist/{activation-s2z6kO2P.js → activation-DikG4Nxq.js} +2 -2
  4. package/dist/{activation-s2z6kO2P.js.map → activation-DikG4Nxq.js.map} +1 -1
  5. package/dist/agent.d.ts +1 -1
  6. package/dist/agent.js +2 -2
  7. package/dist/{delegate-4KpqPGv3.js → delegate-BEBd1qxi.js} +2 -2
  8. package/dist/{delegate-4KpqPGv3.js.map → delegate-BEBd1qxi.js.map} +1 -1
  9. package/dist/{driver-control-acknowledgers-Bnbn34Mp.js → driver-control-acknowledgers-C80hsHbs.js} +2 -2
  10. package/dist/{driver-control-acknowledgers-Bnbn34Mp.js.map → driver-control-acknowledgers-C80hsHbs.js.map} +1 -1
  11. package/dist/durable.d.ts +1 -1
  12. package/dist/durable.js +4 -4
  13. package/dist/{graph-CDZWVNys.js → graph-BP927YH9.js} +4 -4
  14. package/dist/{graph-CDZWVNys.js.map → graph-BP927YH9.js.map} +1 -1
  15. package/dist/{improve-D_HT75pe.js → improve-CaYHi8P-.js} +40 -14
  16. package/dist/{improve-D_HT75pe.js.map → improve-CaYHi8P-.js.map} +1 -1
  17. package/dist/index.d.ts +3 -3
  18. package/dist/index.js +8 -8
  19. package/dist/intelligence.d.ts +2 -2
  20. package/dist/intelligence.js +3 -3
  21. package/dist/kernel.d.ts +1 -1
  22. package/dist/kernel.js +10 -10
  23. package/dist/{loop-runner-C_ruSZRz.js → loop-runner-9OJItBqr.js} +2 -2
  24. package/dist/{loop-runner-C_ruSZRz.js.map → loop-runner-9OJItBqr.js.map} +1 -1
  25. package/dist/loop-runner-bin.d.ts +1 -1
  26. package/dist/loop-runner-bin.js +1 -1
  27. package/dist/{loop-runner-AQcWx9uu.d.ts → loop-runner-kGLe3PSM.d.ts} +2 -2
  28. package/dist/mcp/bin.js +2 -2
  29. package/dist/mcp/index.d.ts +1 -1
  30. package/dist/mcp/index.js +4 -4
  31. package/dist/profiles.d.ts +1 -1
  32. package/dist/{provision-supervisor-Cv5X_ITd.js → provision-supervisor-m_kRnNQf.js} +3 -3
  33. package/dist/{provision-supervisor-Cv5X_ITd.js.map → provision-supervisor-m_kRnNQf.js.map} +1 -1
  34. package/dist/{run-state-BWWardB0.js → run-state-Cd_Gvsjw.js} +2 -2
  35. package/dist/{run-state-BWWardB0.js.map → run-state-Cd_Gvsjw.js.map} +1 -1
  36. package/dist/{runtime-vv3D3bx6.js → runtime-CZc-cMrk.js} +10 -10
  37. package/dist/{runtime-vv3D3bx6.js.map → runtime-CZc-cMrk.js.map} +1 -1
  38. package/dist/{search-executor-C-kp1eg-.js → search-executor-BHypQDeY.js} +2 -2
  39. package/dist/{search-executor-C-kp1eg-.js.map → search-executor-BHypQDeY.js.map} +1 -1
  40. package/dist/{server-CqADHr2f.js → server-D7Mq2Bn1.js} +2 -2
  41. package/dist/{server-CqADHr2f.js.map → server-D7Mq2Bn1.js.map} +1 -1
  42. package/dist/{structural-rollout-Ct_uQtGw.js → structural-rollout-BfFEGl9Q.js} +2 -2
  43. package/dist/{structural-rollout-Ct_uQtGw.js.map → structural-rollout-BfFEGl9Q.js.map} +1 -1
  44. package/dist/{supervise-CRz9bjPA.js → supervise-BX3fLhUS.js} +6 -4
  45. package/dist/supervise-BX3fLhUS.js.map +1 -0
  46. package/dist/{supervisor-B9A_Cnxo.js → supervisor-CNE2g7Wz.js} +17 -5
  47. package/dist/supervisor-CNE2g7Wz.js.map +1 -0
  48. package/dist/testing.d.ts +1 -1
  49. package/dist/testing.js +11 -11
  50. package/dist/tui/index.d.ts +1 -1
  51. package/dist/tui/index.js +1 -1
  52. package/dist/{types-Br9sWTWk.d.ts → types-CTeyeXgz.d.ts} +2 -2
  53. package/package.json +1 -1
  54. package/dist/supervise-CRz9bjPA.js.map +0 -1
  55. package/dist/supervisor-B9A_Cnxo.js.map +0 -1
@@ -8146,9 +8146,9 @@ var RetainedObservation = class {
8146
8146
  let firstFailure;
8147
8147
  while (true) {
8148
8148
  this.lastObservedAt = Date.now();
8149
- if ((yield* this.drain(session, replayedFrom ?? this.resumedFrom)) || this.sawTerminal) break;
8149
+ if ((yield* this.drain(session, replayedFrom)) || this.sawTerminal) break;
8150
8150
  firstFailure ??= this.failure;
8151
- if (!await this.restart.retry(this.failure?.error) && (this.lastReplayPosition === void 0 || this.lastReplayPosition === replayedFrom)) {
8151
+ if (!await this.restart.retry(this.failure?.error) && !this.canReplayAfter(replayedFrom)) {
8152
8152
  this.failure = firstFailure;
8153
8153
  break;
8154
8154
  }
@@ -8165,6 +8165,9 @@ var RetainedObservation = class {
8165
8165
  while (!await this.exactOrQuiet()) await this.stopQuietObservation();
8166
8166
  yield await this.resultFrame();
8167
8167
  }
8168
+ canReplayAfter(replayedFrom) {
8169
+ return this.lastReplayPosition !== void 0 && this.lastReplayPosition !== replayedFrom;
8170
+ }
8168
8171
  exactOrQuiet() {
8169
8172
  let unwatch = [() => {}];
8170
8173
  return new Promise((resolve) => {
@@ -8350,8 +8353,9 @@ var RetainedObservation = class {
8350
8353
  this.readExactResult();
8351
8354
  return true;
8352
8355
  }
8353
- async *drain(session, since) {
8356
+ async *drain(session, replayedFrom) {
8354
8357
  const subscription = linkAbort(this.signal);
8358
+ const since = replayedFrom ?? this.resumedFrom;
8355
8359
  let iterator;
8356
8360
  try {
8357
8361
  iterator = session.events({
@@ -8382,7 +8386,15 @@ var RetainedObservation = class {
8382
8386
  return false;
8383
8387
  }
8384
8388
  if (observed.kind === "quiet") {
8385
- if (this.silenceHandledAt === void 0) yield this.awaitingResult(this.lastObservedAt);
8389
+ const awaiting = this.silenceHandledAt !== void 0;
8390
+ if (!awaiting) {
8391
+ yield this.awaitingResult(this.lastObservedAt);
8392
+ this.lastObservedAt = Date.now();
8393
+ }
8394
+ if (!this.canReplayAfter(replayedFrom)) {
8395
+ if (awaiting) await this.stopQuietObservation();
8396
+ continue;
8397
+ }
8386
8398
  this.failure ??= { error: streamFailure("retained provider stream stalled before its exact result") };
8387
8399
  return false;
8388
8400
  }
@@ -16625,4 +16637,4 @@ async function noWinner(settled, rejection) {
16625
16637
  }
16626
16638
  export { failPendingAfter as $, worktreeCliProfileMaterialization as $t, readPromptOptions as A, readCodexRolloutSession as At, toolResultText as B, terminateProcessTreeAndConfirm as Bt, captureReusableExecutorConfig as C, bridgeAdmissionRefusal as Ct, createSteerableSandboxSession as D, addHarnessUsage as Dt, DEFAULT_SANDBOX_STEERING_MAX_TURNS as E, ROUTER_PRICE_SOURCE as Et, defaultSelectWinner as F, defaultRunCommand as Ft, providerAsExecutor as G, fullProfileMaterialization as Gt, routerBrain as H, assertProfileMaterializes as Ht, codeModeArguments as I, runSettledCommand as It, providerAsSandboxClient as J, promptModelProfileMaterialization as Jt, providerOutputOptions as K, profileMaterializationAxes$1 as Kt, codeModeModelOutput as L, runWorktreeHarness as Lt, createSandboxLineage as M, bridgeRuntimeAttachmentsKey as Mt, acquireSandbox as N, bridgeRuntimeEnvKey as Nt, runAgentRounds as O, createCodexRolloutStoreReader as Ot, TERMINAL_DECISIONS as P, bridgeStopSignalKey as Pt, createInbox as Q, unsupportedProfileDimensions as Qt, createCodeModeTools as R, LOCAL_HARNESSES as Rt, bindReusableExecutorExecutionId as S, verdictFromJudgeScore as St, snapshotExecutorConfig as T, priceTokens as Tt, createAgentEnvironmentProviderRegistry as U, controlProfileMaterialization as Ut, createRouterTranscript as V, assertProfileMaterialization as Vt, resolveAgentEnvironmentProvider as W, defineProfileMaterializationContract as Wt, createInPlaceCliExecutor as X, sandboxActProfileMaterialization as Xt, createWorktreeCliExecutor as Y, renderUnsupported as Yt, INBOX_RECEIPT_KEY as Z, sandboxProfileMaterialization as Zt, isDriverSpec as _, preflightPublicCoordination as _t, awaitRootWake as a, isPeerMailEnvelope as at, InMemorySpawnJournal as b, gateOnDeliverable as bt, readRunParking as c, taskToPrompt$1 as ct, bestDelivered as d, abandonablePending as dt, projectSandboxOutcome as en, AUTHORITY_MARKERS as et, runFinalizer as f, classifyDriverFailure as ft, driverExecutorFactory as g, upstreamUnavailableSignal as gt, driverChild as h, undispatchedCredentialExit as ht, assertRunParking as i, createPeerMailbox as it, createSandboxForSpec as j, createPushTraceSource as jt, assertBoxlessPromptOptions as k, harnessUsageIsEmpty as kt, sleepScopeWait as l, DriverAttemptsExhaustedError as lt, createRootHandle as m, transientFailureKind as mt, createSupervisor as n, PEER_MAIL_WIRE_KEY as nt, bindScopeParkingDrain as o, peerMailTools as ot, runTree as p, summarizeDriverAttempts as pt, LEAF_CONTINUATION_TASK as q, promptControlProfileMaterialization as qt, RunParkedError as r, claimsAuthority as rt, isRunParked as s, peerMailVerbNames as st, DEFAULT_MAX_DEPTH as t, readSandboxOutcome as tn, DEFAULT_PEER_MAIL_LIMITS as tt, withRunParking as u, HarnessTurnFailedError as ut, withDriverExecutor as v, CheckUnavailableError as vt, createExecutor as w, bridgeModelRouteRefusal as wt, createExecutorRegistry as x, mapExecutorResult as xt, InMemoryResultBlobStore as y, gateFactoryOnDeliverable as yt, runCodeMode as z, harnessInvocation as zt };
16627
16639
 
16628
- //# sourceMappingURL=supervisor-B9A_Cnxo.js.map
16640
+ //# sourceMappingURL=supervisor-CNE2g7Wz.js.map