@tangle-network/agent-runtime 0.132.13 → 0.133.0
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/README.md +20 -7
- package/dist/{activation-CWX1dpfx.js → activation-B4nhh8w3.js} +3 -3
- package/dist/{activation-CWX1dpfx.js.map → activation-B4nhh8w3.js.map} +1 -1
- package/dist/agent.d.ts +1 -1
- package/dist/agent.js +2 -2
- package/dist/{analyst-loop-CBiT-ev1.js → analyst-loop-C189F6v8.js} +2 -2
- package/dist/{analyst-loop-CBiT-ev1.js.map → analyst-loop-C189F6v8.js.map} +1 -1
- package/dist/analyst-loop.js +1 -1
- package/dist/{authoring-D8uh1TYA.js → authoring-Dt5lGaM7.js} +2 -2
- package/dist/{authoring-D8uh1TYA.js.map → authoring-Dt5lGaM7.js.map} +1 -1
- package/dist/candidate-execution/index.js +4 -4
- package/dist/{candidate-execution-DUefVdnW.js → candidate-execution-BUhnNcyt.js} +4 -4
- package/dist/{candidate-execution-DUefVdnW.js.map → candidate-execution-BUhnNcyt.js.map} +1 -1
- package/dist/{conversation-BiII3X_6.js → conversation-CiO00rgm.js} +4 -4
- package/dist/{conversation-BiII3X_6.js.map → conversation-CiO00rgm.js.map} +1 -1
- package/dist/conversation.js +1 -1
- package/dist/{environment-provider-CkSDxRZd.d.ts → environment-provider-BnioYoPQ.d.ts} +3 -3
- package/dist/environment-provider.d.ts +1 -1
- package/dist/{errors-DEAvWQPy.js → errors-DRoXIc7E.js} +45 -2
- package/dist/errors-DRoXIc7E.js.map +1 -0
- package/dist/{graph-BJy5vrLu.js → graph-CEFPJQRh.js} +4 -4
- package/dist/{graph-BJy5vrLu.js.map → graph-CEFPJQRh.js.map} +1 -1
- package/dist/{improvement-cycle-zRBcigo7.js → improvement-cycle-Bf9V8cj8.js} +9 -9
- package/dist/{improvement-cycle-zRBcigo7.js.map → improvement-cycle-Bf9V8cj8.js.map} +1 -1
- package/dist/{index-CWnUn15M.d.ts → index-BzP_EK1N.d.ts} +236 -90
- package/dist/{index-DHwZyU_t.d.ts → index-Cw0RMLao.d.ts} +3 -3
- package/dist/index.d.ts +6 -6
- package/dist/index.js +15 -15
- package/dist/intelligence.d.ts +3 -3
- package/dist/intelligence.js +5 -5
- package/dist/kernel.d.ts +4 -4
- package/dist/kernel.js +10 -10
- package/dist/{knowledge-BbG7PnL5.js → knowledge-Dj7e4Pg8.js} +7 -7
- package/dist/{knowledge-BbG7PnL5.js.map → knowledge-Dj7e4Pg8.js.map} +1 -1
- package/dist/knowledge.d.ts +1 -1
- package/dist/knowledge.js +1 -1
- package/dist/{loop-runner-bin-DpjmkfXR.js → loop-runner-bin-DJDMsJus.js} +5 -5
- package/dist/{loop-runner-bin-DpjmkfXR.js.map → loop-runner-bin-DJDMsJus.js.map} +1 -1
- package/dist/{loop-runner-bin-C-u6nlIN.d.ts → loop-runner-bin-rmUSJ0jy.d.ts} +2 -2
- package/dist/loop-runner-bin.d.ts +1 -1
- package/dist/loop-runner-bin.js +1 -1
- package/dist/{materialization-JR_nN_oT.js → materialization-BkL7gRP6.js} +4 -4
- package/dist/{materialization-JR_nN_oT.js.map → materialization-BkL7gRP6.js.map} +1 -1
- package/dist/mcp/bin.js +4 -4
- package/dist/mcp/index.d.ts +2 -2
- package/dist/mcp/index.js +8 -8
- package/dist/mcp/memory-bin.js +1 -1
- package/dist/{memory-server-eD2baiRO.js → memory-server-CblxrUKT.js} +3 -3
- package/dist/{memory-server-eD2baiRO.js.map → memory-server-CblxrUKT.js.map} +1 -1
- package/dist/{model-policy-mWSoToiQ.js → model-policy-Bv1DU2fw.js} +2 -2
- package/dist/{model-policy-mWSoToiQ.js.map → model-policy-Bv1DU2fw.js.map} +1 -1
- package/dist/{openai-tools-Cmu2MzOW.js → openai-tools-MB5xyj1D.js} +2 -2
- package/dist/{openai-tools-Cmu2MzOW.js.map → openai-tools-MB5xyj1D.js.map} +1 -1
- package/dist/{prepare-BQ82nG06.js → prepare-DggAvkbq.js} +2 -2
- package/dist/{prepare-BQ82nG06.js.map → prepare-DggAvkbq.js.map} +1 -1
- package/dist/primeintellect/index.d.ts +1 -1
- package/dist/profiles.js +1 -1
- package/dist/{protected-model-port-BAOj4gQN.js → protected-model-port-BpQeW-0j.js} +2 -2
- package/dist/{protected-model-port-BAOj4gQN.js.map → protected-model-port-BpQeW-0j.js.map} +1 -1
- package/dist/{redact-DMqkOZNV.d.ts → redact-BTKr5YLO.d.ts} +2 -2
- package/dist/{researcher-CYmr4VJy.js → researcher-BiWSFLi6.js} +3 -3
- package/dist/{researcher-CYmr4VJy.js.map → researcher-BiWSFLi6.js.map} +1 -1
- package/dist/{runtime-CIVruNqK.d.ts → runtime-BRErB7lm.d.ts} +2 -2
- package/dist/{runtime-DDg4OVlX.js → runtime-DtRTgm3B.js} +152 -21
- package/dist/{runtime-DDg4OVlX.js.map → runtime-DtRTgm3B.js.map} +1 -1
- package/dist/{snapshot-CXiiuHhL.js → snapshot-DY6VGliG.js} +2 -2
- package/dist/{snapshot-CXiiuHhL.js.map → snapshot-DY6VGliG.js.map} +1 -1
- package/dist/{spawn-journal-Cd5L-Ie9.js → spawn-journal-CNg5-D9p.js} +3 -3
- package/dist/{spawn-journal-Cd5L-Ie9.js.map → spawn-journal-CNg5-D9p.js.map} +1 -1
- package/dist/{stream-agent-turn-Bo5ZSAUR.js → stream-agent-turn-B4Mvk5G-.js} +4 -4
- package/dist/{stream-agent-turn-Bo5ZSAUR.js.map → stream-agent-turn-B4Mvk5G-.js.map} +1 -1
- package/dist/{structural-rollout-CwK_V7eP.js → structural-rollout-OPAUocq7.js} +6 -6
- package/dist/{structural-rollout-CwK_V7eP.js.map → structural-rollout-OPAUocq7.js.map} +1 -1
- package/dist/{supervise-B8BYfxEw.js → supervise-Da_e1GgK.js} +8 -8
- package/dist/{supervise-B8BYfxEw.js.map → supervise-Da_e1GgK.js.map} +1 -1
- package/dist/{supervisor-DnA7FWmf.js → supervisor-BwU40H4n.js} +7 -7
- package/dist/supervisor-BwU40H4n.js.map +1 -0
- package/dist/testing.d.ts +2 -2
- package/dist/testing.js +12 -12
- package/dist/{tool-server-Gs3VvfSK.js → tool-server-VvSK1K3X.js} +2 -2
- package/dist/{tool-server-Gs3VvfSK.js.map → tool-server-VvSK1K3X.js.map} +1 -1
- package/dist/{workspace-archive-CGcXL3zA.js → workspace-archive-Cm3rtP4F.js} +2 -2
- package/dist/{workspace-archive-CGcXL3zA.js.map → workspace-archive-Cm3rtP4F.js.map} +1 -1
- package/package.json +1 -1
- package/dist/errors-DEAvWQPy.js.map +0 -1
- package/dist/supervisor-DnA7FWmf.js.map +0 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./stream-agent-turn-
|
|
3
|
-
import { i as InMemorySpawnJournal, r as InMemoryResultBlobStore, v as isTraceAnalysisStore, x as contentAddress } from "./spawn-journal-
|
|
1
|
+
import { c as RetainedRunAdmissionError, f as ValidationError, l as RetainedRunDispatchBindingError, n as AnalystError, s as PlannerError } from "./errors-DRoXIc7E.js";
|
|
2
|
+
import "./stream-agent-turn-B4Mvk5G-.js";
|
|
3
|
+
import { i as InMemorySpawnJournal, r as InMemoryResultBlobStore, v as isTraceAnalysisStore, x as contentAddress } from "./spawn-journal-CNg5-D9p.js";
|
|
4
4
|
import { a as isAbortError, i as hasCompleteCacheBreakdown, l as sleep, m as zeroTokenUsage, n as cloneTokenUsage, s as randomSuffix, t as addTokenUsage, u as stringifySafe } from "./util-Dr--8wAL.js";
|
|
5
5
|
import { i as redactProtectedValue, r as redactProtectedReason } from "./protected-redaction--F3v1oo8.js";
|
|
6
6
|
import { a as notifySandboxEventObserver, c as parseCanonicalTransportEvent, s as extractTransportEventIdentity } from "./sandbox-events-vIwmuPdl.js";
|
|
7
|
-
import { c as profileProviderModel, i as concreteModelId, s as profileModelExecutionSettings, t as assertExecutableAgentProfile } from "./model-policy-
|
|
8
|
-
import { b as executableAgentProfileSnapshot, x as executableAgentSpecSnapshot } from "./materialization-
|
|
9
|
-
import { $ as runAgentRounds, I as createWorktreeCliExecutor, N as createExecutor, P as createExecutorRegistry, Q as defaultSelectWinner, W as createPushTraceSource, at as observedModelMatchesDeclared, et as createSandboxLineage, it as runBrainLoop, l as withDriverExecutor, m as settledToIteration, n as createSupervisor, rt as routerBrain, tt as probeSandboxCapabilities, w as rollingDispatch } from "./supervisor-
|
|
7
|
+
import { c as profileProviderModel, i as concreteModelId, s as profileModelExecutionSettings, t as assertExecutableAgentProfile } from "./model-policy-Bv1DU2fw.js";
|
|
8
|
+
import { b as executableAgentProfileSnapshot, x as executableAgentSpecSnapshot } from "./materialization-BkL7gRP6.js";
|
|
9
|
+
import { $ as runAgentRounds, I as createWorktreeCliExecutor, N as createExecutor, P as createExecutorRegistry, Q as defaultSelectWinner, W as createPushTraceSource, at as observedModelMatchesDeclared, et as createSandboxLineage, it as runBrainLoop, l as withDriverExecutor, m as settledToIteration, n as createSupervisor, rt as routerBrain, tt as probeSandboxCapabilities, w as rollingDispatch } from "./supervisor-BwU40H4n.js";
|
|
10
10
|
import "./environment-provider-mDsjfGjY.js";
|
|
11
11
|
import { i as notifyRuntimeHookEvent } from "./runtime-hooks-C7iJOWm3.js";
|
|
12
|
-
import { C as observe, O as strategyAuthorMethod, T as profileChatClient, b as sample, v as refine, x as sampleThenRefine, y as runAgentic } from "./structural-rollout-
|
|
13
|
-
import { It as gateOnDeliverable, Lt as mapExecutorResult, n as supervise } from "./supervise-
|
|
14
|
-
import "./authoring-
|
|
15
|
-
import "./graph-
|
|
12
|
+
import { C as observe, O as strategyAuthorMethod, T as profileChatClient, b as sample, v as refine, x as sampleThenRefine, y as runAgentic } from "./structural-rollout-OPAUocq7.js";
|
|
13
|
+
import { It as gateOnDeliverable, Lt as mapExecutorResult, n as supervise } from "./supervise-Da_e1GgK.js";
|
|
14
|
+
import "./authoring-Dt5lGaM7.js";
|
|
15
|
+
import "./graph-CEFPJQRh.js";
|
|
16
16
|
import { CODING_HARNESSES, InMemoryTraceStore, OUTPUT_VALUE, benjaminiHochberg, buildTrajectory, computeFindingId as computeFindingId$1, confidenceInterval, expandProfileAxes, makeFinding as makeFinding$1, modelHasSnapshot, pairedBootstrap, paretoFrontier, wilcoxonSignedRank, wilson } from "@tangle-network/agent-eval";
|
|
17
17
|
import { heldoutSignificance, runProfileMatrix } from "@tangle-network/agent-eval/campaign";
|
|
18
18
|
import { AgentEnvironmentCapabilitiesSchema, AgentExactRunControlRefSchema, AgentNativeContextContinuationResultSchema, AgentRunCancellationAcknowledgementSchema, AgentRunCancellationRequestSchema, AgentTurnResultSchema, InteractionAcknowledgementSchema, InteractionResponseCommandSchema, NativeContextBoundaryProofSchema, NativeContextContinuationRequestSchema, RuntimeEventEnvelopeSchema, agentNativeContextContinuationResultMatchesRequest, agentProfileSchema, agentRunCancellationAcknowledgementMatchesRequest, agentRunCancellationRequestDigest, canonicalAgentProfileDigest, canonicalCandidateDigest, nativeContextContinuationTurnDigest, validateAgentProfileSecurity } from "@tangle-network/agent-interface";
|
|
@@ -3854,8 +3854,33 @@ function freshTurnInput(input, runtime) {
|
|
|
3854
3854
|
//#endregion
|
|
3855
3855
|
//#region src/runtime/retained-run-start.ts
|
|
3856
3856
|
/**
|
|
3857
|
+
* Mint deterministic dispatch coordinates from the two caller-supplied keys.
|
|
3858
|
+
* The same `(idempotencyKey, turnId)` pair yields the same coordinates in
|
|
3859
|
+
* every process, so a pre-dispatch admission record always names the exact
|
|
3860
|
+
* session and execution the dispatch will request. Format is readable, not
|
|
3861
|
+
* hashed, following `deriveExecutionId`: components are URL-encoded so
|
|
3862
|
+
* delimiters inside caller keys cannot collapse distinct pairs, and the
|
|
3863
|
+
* result stays inside the 256-byte identifier bound.
|
|
3864
|
+
*/
|
|
3865
|
+
function mintRetainedIdentity(idempotencyKey, turnId) {
|
|
3866
|
+
const base = `${encodeURIComponent(idempotencyKey)}:${encodeURIComponent(turnId)}`;
|
|
3867
|
+
const sessionId = `retained-session:${base}`;
|
|
3868
|
+
const executionId = `retained-execution:${base}`;
|
|
3869
|
+
if (executionId.length > 256) throw new RangeError("minted retained identity must not exceed 256 bytes");
|
|
3870
|
+
return {
|
|
3871
|
+
sessionId,
|
|
3872
|
+
executionId
|
|
3873
|
+
};
|
|
3874
|
+
}
|
|
3875
|
+
/**
|
|
3857
3876
|
* Dispatch one detached, replayable run and return only after exact durable
|
|
3858
|
-
* coordinates are confirmed by the provider.
|
|
3877
|
+
* coordinates are confirmed by the provider and persisted by the caller.
|
|
3878
|
+
*
|
|
3879
|
+
* The required `onAdmission` hook is awaited twice: with the recovery
|
|
3880
|
+
* coordinates after environment creation, and with the verified exact control
|
|
3881
|
+
* reference after dispatch. The returned promise resolves only after the
|
|
3882
|
+
* dispatched admission is durable, so no caller can observe a successful start
|
|
3883
|
+
* whose exact reference a crash would lose.
|
|
3859
3884
|
*
|
|
3860
3885
|
* @stable
|
|
3861
3886
|
*/
|
|
@@ -3866,9 +3891,19 @@ async function startRetainedRun(options) {
|
|
|
3866
3891
|
assertStableText(options.identity.sessionId, "retained session id");
|
|
3867
3892
|
assertStableText(options.identity.executionId, "retained execution id");
|
|
3868
3893
|
}
|
|
3894
|
+
if (typeof options.onAdmission !== "function") throw new Error("startRetainedRun requires an awaited onAdmission durability hook");
|
|
3895
|
+
const identity = options.identity ?? mintRetainedIdentity(options.environment.idempotencyKey, options.turn.turnId);
|
|
3869
3896
|
const capabilities = await assertRetainedCapabilities(options.provider);
|
|
3870
3897
|
if (!options.provider.get) throw new Error(`provider "${options.provider.name}" cannot reconstruct an environment by id`);
|
|
3871
|
-
const environment = await options.provider.create(
|
|
3898
|
+
const environment = await options.provider.create({
|
|
3899
|
+
...options.environment,
|
|
3900
|
+
metadata: {
|
|
3901
|
+
...options.environment.metadata,
|
|
3902
|
+
retainedIdempotencyKey: options.environment.idempotencyKey,
|
|
3903
|
+
sessionId: identity.sessionId,
|
|
3904
|
+
executionId: identity.executionId
|
|
3905
|
+
}
|
|
3906
|
+
});
|
|
3872
3907
|
if (!environment.dispatch || !environment.session) {
|
|
3873
3908
|
try {
|
|
3874
3909
|
await environment.destroy?.();
|
|
@@ -3877,19 +3912,115 @@ async function startRetainedRun(options) {
|
|
|
3877
3912
|
}
|
|
3878
3913
|
throw new Error(`provider "${options.provider.name}" does not expose detached session control`);
|
|
3879
3914
|
}
|
|
3915
|
+
await admitDurably(options.onAdmission, {
|
|
3916
|
+
phase: "environment",
|
|
3917
|
+
provider: options.provider.name,
|
|
3918
|
+
environmentId: environment.id,
|
|
3919
|
+
idempotencyKey: options.environment.idempotencyKey,
|
|
3920
|
+
turnId: options.turn.turnId,
|
|
3921
|
+
sessionId: identity.sessionId,
|
|
3922
|
+
executionId: identity.executionId
|
|
3923
|
+
});
|
|
3880
3924
|
const reference = await environment.dispatch(freshTurnInput(options.turn, {
|
|
3881
3925
|
turnId: options.turn.turnId,
|
|
3882
3926
|
detach: true,
|
|
3883
|
-
...
|
|
3884
|
-
}));
|
|
3885
|
-
if (reference.provider !== void 0 && reference.provider !== options.provider.name) throw new Error("provider dispatch returned a session reference for another provider");
|
|
3886
|
-
const exact = exactSession(environment, exactControlRef(reference.controlRef, {
|
|
3887
|
-
provider: options.provider.name,
|
|
3888
|
-
environmentId: environment.id,
|
|
3889
|
-
sessionId: reference.id
|
|
3927
|
+
...identity
|
|
3890
3928
|
}));
|
|
3929
|
+
let exact;
|
|
3930
|
+
try {
|
|
3931
|
+
if (reference.provider !== void 0 && reference.provider !== options.provider.name) throw new Error("provider dispatch returned a session reference for another provider");
|
|
3932
|
+
if (reference.id !== identity.sessionId) throw new Error("provider dispatched into another session than the requested identity");
|
|
3933
|
+
const controlRef = exactControlRef(reference.controlRef, {
|
|
3934
|
+
provider: options.provider.name,
|
|
3935
|
+
environmentId: environment.id,
|
|
3936
|
+
sessionId: identity.sessionId
|
|
3937
|
+
});
|
|
3938
|
+
if (controlRef.executionId !== identity.executionId) throw new Error("provider bound another execution than the requested identity");
|
|
3939
|
+
exact = exactSession(environment, controlRef);
|
|
3940
|
+
} catch (error) {
|
|
3941
|
+
throw new RetainedRunDispatchBindingError({
|
|
3942
|
+
provider: options.provider.name,
|
|
3943
|
+
environmentId: environment.id,
|
|
3944
|
+
sessionId: identity.sessionId,
|
|
3945
|
+
executionId: identity.executionId
|
|
3946
|
+
}, {
|
|
3947
|
+
...reference.id === void 0 ? {} : { id: reference.id },
|
|
3948
|
+
...reference.provider === void 0 ? {} : { provider: reference.provider },
|
|
3949
|
+
...reference.controlRef === void 0 ? {} : { controlRef: reference.controlRef }
|
|
3950
|
+
}, { cause: error });
|
|
3951
|
+
}
|
|
3952
|
+
await admitDurably(options.onAdmission, {
|
|
3953
|
+
phase: "dispatched",
|
|
3954
|
+
controlRef: freezeControlRef(exact.controlRef),
|
|
3955
|
+
idempotencyKey: options.environment.idempotencyKey,
|
|
3956
|
+
turnId: options.turn.turnId
|
|
3957
|
+
});
|
|
3891
3958
|
return createRetainedRunHandle(environment, exact.session, exact.controlRef, capabilities, options.now);
|
|
3892
3959
|
}
|
|
3960
|
+
/**
|
|
3961
|
+
* Await one admission record through the caller's durability hook. A rejection
|
|
3962
|
+
* keeps the environment alive — the provider state plus any partial admission
|
|
3963
|
+
* record is the recovery path — and surfaces as `RetainedRunAdmissionError` so
|
|
3964
|
+
* callers can distinguish a persistence failure from a provider failure.
|
|
3965
|
+
*/
|
|
3966
|
+
async function admitDurably(onAdmission, admission) {
|
|
3967
|
+
try {
|
|
3968
|
+
await onAdmission(Object.freeze(admission));
|
|
3969
|
+
} catch (error) {
|
|
3970
|
+
throw new RetainedRunAdmissionError(admission, { cause: error });
|
|
3971
|
+
}
|
|
3972
|
+
}
|
|
3973
|
+
/**
|
|
3974
|
+
* Rebuild the exact run named by pre-dispatch admission coordinates, or
|
|
3975
|
+
* report why the provider cannot prove it.
|
|
3976
|
+
*
|
|
3977
|
+
* `not_found`: the provider no longer holds the environment, so nothing
|
|
3978
|
+
* remains to destroy. `recovered`: the provider self-identified the session
|
|
3979
|
+
* with a strict exact reference matching the recorded coordinates.
|
|
3980
|
+
* `unverifiable`: the environment exists but the provider cannot
|
|
3981
|
+
* self-identify the session — no session accessor, an accessor that throws,
|
|
3982
|
+
* a lazy accessor with no stored reference, or a loose reference. That
|
|
3983
|
+
* outcome is never destroy-safe: keep the environment, retry
|
|
3984
|
+
* `reconnectRetainedRun` with a dispatched admission record, or inspect the
|
|
3985
|
+
* environment with provider-native tools. A session that self-identifies
|
|
3986
|
+
* with different coordinates throws: something live is not the recorded run.
|
|
3987
|
+
*
|
|
3988
|
+
* @stable
|
|
3989
|
+
*/
|
|
3990
|
+
async function recoverRetainedRun(options) {
|
|
3991
|
+
assertStableText(options.environmentId, "retained environment id");
|
|
3992
|
+
assertStableText(options.sessionId, "retained session id");
|
|
3993
|
+
assertStableText(options.executionId, "retained execution id");
|
|
3994
|
+
const capabilities = await assertRetainedCapabilities(options.provider);
|
|
3995
|
+
if (!options.provider.get) throw new Error(`provider "${options.provider.name}" cannot reconstruct an environment by id`);
|
|
3996
|
+
const environment = await options.provider.get(options.environmentId);
|
|
3997
|
+
if (!environment) return { outcome: "not_found" };
|
|
3998
|
+
if (!environment.session) return {
|
|
3999
|
+
outcome: "unverifiable",
|
|
4000
|
+
environment
|
|
4001
|
+
};
|
|
4002
|
+
let session;
|
|
4003
|
+
try {
|
|
4004
|
+
session = environment.session(options.sessionId);
|
|
4005
|
+
} catch {
|
|
4006
|
+
return {
|
|
4007
|
+
outcome: "unverifiable",
|
|
4008
|
+
environment
|
|
4009
|
+
};
|
|
4010
|
+
}
|
|
4011
|
+
const parsed = AgentExactRunControlRefSchema.safeParse(session.controlRef);
|
|
4012
|
+
if (!parsed.success) return {
|
|
4013
|
+
outcome: "unverifiable",
|
|
4014
|
+
environment
|
|
4015
|
+
};
|
|
4016
|
+
const controlRef = parsed.data;
|
|
4017
|
+
if (controlRef.provider !== options.provider.name || controlRef.environmentId !== options.environmentId || controlRef.sessionId !== options.sessionId || controlRef.executionId !== options.executionId) throw new Error("provider session is bound to other retained run coordinates");
|
|
4018
|
+
const exact = exactSession(environment, controlRef);
|
|
4019
|
+
return {
|
|
4020
|
+
outcome: "recovered",
|
|
4021
|
+
handle: createRetainedRunHandle(environment, exact.session, exact.controlRef, capabilities, options.now)
|
|
4022
|
+
};
|
|
4023
|
+
}
|
|
3893
4024
|
/** Rebuild a retained-run client without retaining any object from the starter. @stable */
|
|
3894
4025
|
async function reconnectRetainedRun(options) {
|
|
3895
4026
|
const controlRef = AgentExactRunControlRefSchema.parse(options.controlRef);
|
|
@@ -6211,6 +6342,6 @@ function tail(s) {
|
|
|
6211
6342
|
return s.slice(-400);
|
|
6212
6343
|
}
|
|
6213
6344
|
//#endregion
|
|
6214
|
-
export {
|
|
6345
|
+
export { flatWidenGate as $, assertStrategyContract as A, defaultAuditorInstruction as At, startRetainedRun as B, secretEnvOfMcpServer as Bt, chatTransportExecutor as C, leaderboard as Ct, pickChampion as D, renderLeaderboardSvg as Dt, discriminatingMeans as E, renderLeaderboardMarkdown as Et, openSandboxRun as F, sanitizeMcpToolSchema as Ft, runPersonified as G, equalKOnCost as H, printBenchmarkReport as I, envKeyProvider as It, registerShape as J, builtinShapes as K, runBenchmark as L, mcpSecretEnvMetadataKey as Lt, strategyAuthorContract as M, connectStdioMcp as Mt, strategyAuthorSystemPrompt as N, materializeLocalMcp as Nt, runStrategyEvolution as O, renderPairwiseMarkdown as Ot, SandboxRunAbortError as P, createMcpEnvironment as Pt, fanout as Q, reconnectRetainedRun as R, resolveMcpServerLaunch as Rt, runCoderChecks as S, stopSentinel as St, createChatSessionStore as T, renderLeaderboardHtml as Tt, trajectoryReport as U, promotionGate as V, definePersona as W, InMemoryCorpus as X, FileCorpus as Y, renderCorpusToInstructions as Z, settledWorkerOut as _, loopDispatch as _t, localShell as a, widen as at, analyzeTrace as b, deterministicCompletion as bt, createVerifierEnvironment as c, createScopeAnalyst as ct, worktreeFanout as d, harvestCorpus as dt, loopUntil as et, EVIDENCE_MAX_CHARS as f, defineLeaderboard as ft, composeWorkerEvidence as g, loopCampaignDispatch as gt, closingWorkerNote as h, inlineSandboxClient as ht, jjWorkspace as i, verify as it, authorStrategy as j, McpSpawnFault as jt, selectChampion as k, auditIntent as kt, failuresAnalyst as l, registryScopeAnalyst as lt, VERIFY_TAIL_CHARS as m, localSandboxClient as mt, makeFinding$1 as n, pipeline as nt, runInWorkspace as o, assertTraceDerivedFindings as ot, NOTE_MAX_CHARS as p, resolveSandboxClient as pt, createShapeRegistry as q, gitWorkspace as r, selectValidWinner as rt, createWaterfallCollector as s, buildSteerContext as st, computeFindingId$1 as t, panel as tt, superviseSurface as u, inProcessSandboxClient as ut, copyUntrackedIntoClone as v, superviseDispatch as vt, chatWorkerSeam as w, pairwiseSignificance as wt, patchDelivered as x, sentinelCompletion as xt, withUntrackedArtifacts as y, completionAuthorizes as yt, recoverRetainedRun as z, resolveSecretEnv as zt };
|
|
6215
6346
|
|
|
6216
|
-
//# sourceMappingURL=runtime-
|
|
6347
|
+
//# sourceMappingURL=runtime-DtRTgm3B.js.map
|