@tangle-network/agent-runtime 6.0.5 → 6.0.6
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/CHANGELOG.md +4 -0
- package/dist/{activation-kpRQffeo.js → activation-D2fc3d4p.js} +2 -2
- package/dist/{activation-kpRQffeo.js.map → activation-D2fc3d4p.js.map} +1 -1
- package/dist/agent.js +2 -2
- package/dist/{coordination-manager-ds4pn4IC.js → coordination-manager-CJ-qVHwc.js} +2 -2
- package/dist/{coordination-manager-ds4pn4IC.js.map → coordination-manager-CJ-qVHwc.js.map} +1 -1
- package/dist/{delegate-B2Z1CueR.js → delegate-B7XsdzB5.js} +2 -2
- package/dist/{delegate-B2Z1CueR.js.map → delegate-B7XsdzB5.js.map} +1 -1
- package/dist/durable.js +4 -4
- package/dist/{graph-flrNgUfu.js → graph-DyU1try5.js} +4 -4
- package/dist/{graph-flrNgUfu.js.map → graph-DyU1try5.js.map} +1 -1
- package/dist/{improve-DEkdGeQV.js → improve-BTyWlALh.js} +5 -5
- package/dist/{improve-DEkdGeQV.js.map → improve-BTyWlALh.js.map} +1 -1
- package/dist/index.js +7 -7
- package/dist/intelligence.js +3 -3
- package/dist/kernel.js +10 -10
- package/dist/{loop-runner-CrEq3gmu.js → loop-runner-BwOcyOhb.js} +2 -2
- package/dist/{loop-runner-CrEq3gmu.js.map → loop-runner-BwOcyOhb.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-CuX82sFT.js → provision-supervisor-jR8FxV0u.js} +3 -3
- package/dist/{provision-supervisor-CuX82sFT.js.map → provision-supervisor-jR8FxV0u.js.map} +1 -1
- package/dist/{run-state-Dt-v0Fr8.js → run-state-D4R8gEFv.js} +2 -2
- package/dist/{run-state-Dt-v0Fr8.js.map → run-state-D4R8gEFv.js.map} +1 -1
- package/dist/{runtime-BNSsSOZ7.js → runtime-BNJMiodu.js} +10 -10
- package/dist/{runtime-BNSsSOZ7.js.map → runtime-BNJMiodu.js.map} +1 -1
- package/dist/{search-executor-CpQIJAdh.js → search-executor-LTYs04Ua.js} +2 -2
- package/dist/{search-executor-CpQIJAdh.js.map → search-executor-LTYs04Ua.js.map} +1 -1
- package/dist/{server-umzSNbPI.js → server-BqD2MOmF.js} +2 -2
- package/dist/{server-umzSNbPI.js.map → server-BqD2MOmF.js.map} +1 -1
- package/dist/{structural-rollout-B8PkKbfv.js → structural-rollout-BKliAKV6.js} +2 -2
- package/dist/{structural-rollout-B8PkKbfv.js.map → structural-rollout-BKliAKV6.js.map} +1 -1
- package/dist/{supervise-B3hzcqVU.js → supervise-B5GVxYGQ.js} +3 -3
- package/dist/{supervise-B3hzcqVU.js.map → supervise-B5GVxYGQ.js.map} +1 -1
- package/dist/{supervisor-DpWSUrwB.js → supervisor-Buv6rd8h.js} +19 -18
- package/dist/supervisor-Buv6rd8h.js.map +1 -0
- package/dist/testing.js +11 -11
- package/dist/tui/index.js +1 -1
- package/package.json +1 -1
- package/dist/supervisor-DpWSUrwB.js.map +0 -1
|
@@ -8454,11 +8454,18 @@ var RetainedObservation = class {
|
|
|
8454
8454
|
if (observed?.executionId === handle.controlRef.executionId) this.lastReplayPosition = this.resumedFrom = observed.replayPosition;
|
|
8455
8455
|
}
|
|
8456
8456
|
async *observe(session) {
|
|
8457
|
-
|
|
8458
|
-
|
|
8459
|
-
|
|
8457
|
+
let replayedFrom;
|
|
8458
|
+
let firstFailure;
|
|
8459
|
+
while (true) {
|
|
8460
|
+
this.lastObservedAt = Date.now();
|
|
8461
|
+
if ((yield* this.drain(session, replayedFrom ?? this.resumedFrom)) || this.sawTerminal) break;
|
|
8462
|
+
firstFailure ??= this.failure;
|
|
8463
|
+
if (this.lastReplayPosition === void 0 || this.lastReplayPosition === replayedFrom) {
|
|
8464
|
+
this.failure = firstFailure;
|
|
8465
|
+
break;
|
|
8466
|
+
}
|
|
8467
|
+
replayedFrom = this.lastReplayPosition;
|
|
8460
8468
|
this.failure = void 0;
|
|
8461
|
-
if (!(yield* this.drain(session, this.lastReplayPosition))) this.failure = firstFailure;
|
|
8462
8469
|
}
|
|
8463
8470
|
const resumed = this.resumedFrom && `retained provider stream resumed after ${this.resumedFrom}`;
|
|
8464
8471
|
if (resumed) this.failure ??= { error: streamFailure(resumed) };
|
|
@@ -8642,7 +8649,6 @@ var RetainedObservation = class {
|
|
|
8642
8649
|
async *drain(session, since) {
|
|
8643
8650
|
const subscription = linkAbort(this.signal);
|
|
8644
8651
|
let iterator;
|
|
8645
|
-
let failed = false;
|
|
8646
8652
|
try {
|
|
8647
8653
|
iterator = session.events({
|
|
8648
8654
|
executionId: this.handle.controlRef.executionId,
|
|
@@ -8660,7 +8666,7 @@ var RetainedObservation = class {
|
|
|
8660
8666
|
while (true) {
|
|
8661
8667
|
if (this.framesAfterResult >= RETAINED_OBSERVATION_BATCH_EVENTS) {
|
|
8662
8668
|
this.failure ??= { error: streamFailure(`retained provider stream sent ${RETAINED_OBSERVATION_BATCH_EVENTS} frames after its exact result; the rest were not read`) };
|
|
8663
|
-
|
|
8669
|
+
return true;
|
|
8664
8670
|
}
|
|
8665
8671
|
if (this.observedFrames % RETAINED_OBSERVATION_BATCH_EVENTS === 0 && this.observedFrames) await awaitAbortable(new Promise((resolve) => setImmediate(resolve)), this.signal);
|
|
8666
8672
|
let observed;
|
|
@@ -8669,23 +8675,19 @@ var RetainedObservation = class {
|
|
|
8669
8675
|
} catch (error) {
|
|
8670
8676
|
if (this.signal.aborted) throw error;
|
|
8671
8677
|
this.failure = { error };
|
|
8672
|
-
|
|
8673
|
-
break;
|
|
8678
|
+
return false;
|
|
8674
8679
|
}
|
|
8675
8680
|
if (observed.kind === "quiet") {
|
|
8676
|
-
if (this.silenceHandledAt
|
|
8677
|
-
|
|
8678
|
-
|
|
8679
|
-
this.lastObservedAt = Date.now();
|
|
8680
|
-
}
|
|
8681
|
-
continue;
|
|
8681
|
+
if (this.silenceHandledAt === void 0) yield this.awaitingResult(this.lastObservedAt);
|
|
8682
|
+
this.failure ??= { error: streamFailure("retained provider stream stalled before its exact result") };
|
|
8683
|
+
return false;
|
|
8682
8684
|
}
|
|
8683
8685
|
if (observed.kind === "exact-result") {
|
|
8684
8686
|
this.failure ??= { error: streamFailure("retained provider stream remained open after its exact result") };
|
|
8685
|
-
|
|
8687
|
+
return true;
|
|
8686
8688
|
}
|
|
8687
8689
|
this.pendingRead = void 0;
|
|
8688
|
-
if (observed.value.done)
|
|
8690
|
+
if (observed.value.done) return this.sawTerminal;
|
|
8689
8691
|
if (this.acceptFrame(observed.value.value)) {
|
|
8690
8692
|
yield observed.value.value;
|
|
8691
8693
|
this.lastObservedAt = Date.now();
|
|
@@ -8696,7 +8698,6 @@ var RetainedObservation = class {
|
|
|
8696
8698
|
this.pendingRead = void 0;
|
|
8697
8699
|
Promise.resolve().then(() => iterator?.return?.()).catch(() => void 0);
|
|
8698
8700
|
}
|
|
8699
|
-
return !failed;
|
|
8700
8701
|
}
|
|
8701
8702
|
};
|
|
8702
8703
|
// src/runtime/environment-provider/provider-turn-input.ts
|
|
@@ -16927,4 +16928,4 @@ async function noWinner(settled, rejection) {
|
|
|
16927
16928
|
}
|
|
16928
16929
|
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, summarizeDriverAttempts as dt, sandboxActProfileMaterialization as en, PEER_MAIL_WIRE_KEY as et, runTree as f, transientFailureKind as ft, isDriverSpec as g, CheckUnavailableError as gt, driverExecutorFactory as h, preflightPublicCoordination 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, upstreamUnavailableSignal as mt, createSupervisor as n, unsupportedProfileDimensions as nn, createPeerMailbox as nt, bindScopeParkingDrain as o, taskToPrompt$1 as ot, createRootHandle as p, undispatchedCredentialExit 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, classifyDriverFailure 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 };
|
|
16929
16930
|
|
|
16930
|
-
//# sourceMappingURL=supervisor-
|
|
16931
|
+
//# sourceMappingURL=supervisor-Buv6rd8h.js.map
|