@tangle-network/agent-runtime 0.297.2 → 0.297.3
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/dist/{activation-Bsa9KIms.js → activation-BychM7iZ.js} +2 -2
- package/dist/{activation-Bsa9KIms.js.map → activation-BychM7iZ.js.map} +1 -1
- package/dist/agent.js +2 -2
- package/dist/{coordination-driver-C3ox4-8J.js → coordination-driver-DMa9iPOA.js} +2 -2
- package/dist/{coordination-driver-C3ox4-8J.js.map → coordination-driver-DMa9iPOA.js.map} +1 -1
- package/dist/{delegate-C4OXzzuI.js → delegate-pF2zEaa6.js} +2 -2
- package/dist/{delegate-C4OXzzuI.js.map → delegate-pF2zEaa6.js.map} +1 -1
- package/dist/durable.js +2 -2
- package/dist/{graph-Nr_j33Ko.js → graph-Co7Pf-Ey.js} +4 -4
- package/dist/{graph-Nr_j33Ko.js.map → graph-Co7Pf-Ey.js.map} +1 -1
- package/dist/{improvement-cycle-7rd18eW9.js → improvement-cycle-CAEkFjkf.js} +3 -3
- package/dist/{improvement-cycle-7rd18eW9.js.map → improvement-cycle-CAEkFjkf.js.map} +1 -1
- package/dist/index.js +7 -7
- package/dist/intelligence.js +4 -4
- package/dist/kernel.js +8 -8
- package/dist/{loop-runner-bin-Dt5Tm0LL.js → loop-runner-bin-BYD03g_H.js} +3 -3
- package/dist/{loop-runner-bin-Dt5Tm0LL.js.map → loop-runner-bin-BYD03g_H.js.map} +1 -1
- package/dist/loop-runner-bin.js +1 -1
- package/dist/mcp/bin.js +3 -3
- package/dist/mcp/index.js +4 -4
- package/dist/{provision-supervisor-DVjTqpF1.js → provision-supervisor-LF0LMu3p.js} +3 -3
- package/dist/{provision-supervisor-DVjTqpF1.js.map → provision-supervisor-LF0LMu3p.js.map} +1 -1
- package/dist/{runtime-C-jN8ONc.js → runtime-KMTdPEem.js} +8 -8
- package/dist/{runtime-C-jN8ONc.js.map → runtime-KMTdPEem.js.map} +1 -1
- package/dist/{search-method-CLfmCMeT.js → search-method-599XfbgD.js} +2 -2
- package/dist/{search-method-CLfmCMeT.js.map → search-method-599XfbgD.js.map} +1 -1
- package/dist/{server-Di-qMU3Q.js → server-C-B48CZv.js} +3 -3
- package/dist/{server-Di-qMU3Q.js.map → server-C-B48CZv.js.map} +1 -1
- package/dist/{supervise-Bnqm88tQ.js → supervise-Cozoi68o.js} +3 -3
- package/dist/{supervise-Bnqm88tQ.js.map → supervise-Cozoi68o.js.map} +1 -1
- package/dist/{supervisor-Rov7xW0j.js → supervisor-BYw-QEyZ.js} +198 -43
- package/dist/supervisor-BYw-QEyZ.js.map +1 -0
- package/dist/testing.js +12 -12
- package/dist/tui/index.js +1 -1
- package/package.json +1 -1
- package/dist/supervisor-Rov7xW0j.js.map +0 -1
|
@@ -8449,46 +8449,6 @@ function assertRetainedCapabilityRequirements(providerName, capabilities) {
|
|
|
8449
8449
|
if (retained?.exactRunIdentity !== true || retained.resultIdentity !== true || retained.eventIdentity !== true || retained.cancellationIdempotency !== true || !capabilities.streaming.detach || !capabilities.streaming.replay || !capabilities.streaming.turnIdempotency) throw new Error(`provider "${providerName}" cannot control a retry-safe retained run`);
|
|
8450
8450
|
}
|
|
8451
8451
|
//#endregion
|
|
8452
|
-
//#region src/runtime/supervise/cost-estimate.ts
|
|
8453
|
-
/**
|
|
8454
|
-
* Pricing for work that arrived without a provider receipt.
|
|
8455
|
-
*
|
|
8456
|
-
* A turn whose provider reported no billed dollars used to reach the dollar channel as a
|
|
8457
|
-
* known `$0`, so a run that certainly spent money reported a dollar total of zero. A catalog
|
|
8458
|
-
* price is not a receipt, so what this module produces is always marked, never promoted.
|
|
8459
|
-
*/
|
|
8460
|
-
/**
|
|
8461
|
-
* Price one unit of work that no provider receipt covered.
|
|
8462
|
-
*
|
|
8463
|
-
* The event always carries `usdKnown: false`: a catalog price approximates what a provider
|
|
8464
|
-
* WOULD bill, never measures what it did. The priced amount is repeated in `usdEstimated` so
|
|
8465
|
-
* a consumer can subtract it from `usd` and recover the dollars a provider actually billed.
|
|
8466
|
-
*
|
|
8467
|
-
* A model with no catalog entry yields `usd: 0` with `usdKnown: false` and no `usdEstimated`.
|
|
8468
|
-
* The turn then reads as unknown dollars, which is true, rather than as a free turn.
|
|
8469
|
-
*/
|
|
8470
|
-
function priceUnreceiptedWork(work) {
|
|
8471
|
-
const unknown = {
|
|
8472
|
-
kind: "cost",
|
|
8473
|
-
usd: 0,
|
|
8474
|
-
usdKnown: false,
|
|
8475
|
-
provenance: "uncaptured"
|
|
8476
|
-
};
|
|
8477
|
-
const { inputTokens, outputTokens, model } = work;
|
|
8478
|
-
if (model === void 0 || !isModelPriced(model)) return unknown;
|
|
8479
|
-
if (!Number.isFinite(inputTokens) || !Number.isFinite(outputTokens)) return unknown;
|
|
8480
|
-
if (inputTokens < 0 || outputTokens < 0) return unknown;
|
|
8481
|
-
const usd = estimateCost(inputTokens, outputTokens, model);
|
|
8482
|
-
if (!Number.isFinite(usd) || usd <= 0) return unknown;
|
|
8483
|
-
return {
|
|
8484
|
-
kind: "cost",
|
|
8485
|
-
usd,
|
|
8486
|
-
usdKnown: false,
|
|
8487
|
-
usdEstimated: usd,
|
|
8488
|
-
provenance: "catalog-estimate"
|
|
8489
|
-
};
|
|
8490
|
-
}
|
|
8491
|
-
//#endregion
|
|
8492
8452
|
//#region src/runtime/supervise/error-message.ts
|
|
8493
8453
|
const maxCauseDepth = 4;
|
|
8494
8454
|
const maxMessageLength = 32768;
|
|
@@ -8550,6 +8510,112 @@ function errMessage(error) {
|
|
|
8550
8510
|
return parts.join(": caused by ").slice(0, maxMessageLength);
|
|
8551
8511
|
}
|
|
8552
8512
|
//#endregion
|
|
8513
|
+
//#region src/runtime/retained-native-stop.ts
|
|
8514
|
+
/** One request per run: every caller that stops the same execution replays one provider operation,
|
|
8515
|
+
* so the operation id and its reason never disagree across a teardown and a release. */
|
|
8516
|
+
const NATIVE_STOP_REASON = "Runtime stopped the native harness: its execution is no longer observed";
|
|
8517
|
+
/**
|
|
8518
|
+
* Stop the native harness process of a retained execution that Runtime no longer observes.
|
|
8519
|
+
*
|
|
8520
|
+
* A retained execution outlives its local stream by design, so an aborted observer can reconnect.
|
|
8521
|
+
* Keeping its environment preserves the files; it must not keep the harness running. Measured on
|
|
8522
|
+
* Discovery: after `disco cancel` on 2026-10-04 the kept root box ran `claude --print` for two
|
|
8523
|
+
* more minutes, untraced and charged to the subscription, until an operator stopped the box; on
|
|
8524
|
+
* 2026-10-03 a cancelled run kept 18 boxes whose `claude` processes ran until an operator stopped
|
|
8525
|
+
* them. The provider's exact cancellation stops the process; the box and its files stay.
|
|
8526
|
+
*
|
|
8527
|
+
* The operation id is derived from the run reference, so a repeated stop replays the first one.
|
|
8528
|
+
* Never rejects: the answer is evidence for the teardown receipt.
|
|
8529
|
+
*/
|
|
8530
|
+
async function stopRetainedNativeExecution(options) {
|
|
8531
|
+
const now = options.now ?? Date.now;
|
|
8532
|
+
const executionId = options.controlRef.executionId;
|
|
8533
|
+
const operationId = `runtime-native-stop-${canonicalCandidateDigest({
|
|
8534
|
+
kind: "runtime-native-stop.v1",
|
|
8535
|
+
run: options.controlRef
|
|
8536
|
+
}).slice(7)}`;
|
|
8537
|
+
try {
|
|
8538
|
+
const handle = options.handle ?? await reconnectRetainedRun({
|
|
8539
|
+
provider: options.provider,
|
|
8540
|
+
controlRef: options.controlRef
|
|
8541
|
+
});
|
|
8542
|
+
if (handle === null) return {
|
|
8543
|
+
executionId,
|
|
8544
|
+
effect: "not_live",
|
|
8545
|
+
at: new Date(now()).toISOString()
|
|
8546
|
+
};
|
|
8547
|
+
const cancellation = await handle.cancel({
|
|
8548
|
+
operationId,
|
|
8549
|
+
reason: NATIVE_STOP_REASON,
|
|
8550
|
+
...options.signal === void 0 ? {} : { signal: options.signal }
|
|
8551
|
+
});
|
|
8552
|
+
return {
|
|
8553
|
+
executionId,
|
|
8554
|
+
effect: cancellation.status === "conflict" ? "unknown" : cancellation.effect,
|
|
8555
|
+
at: new Date(now()).toISOString()
|
|
8556
|
+
};
|
|
8557
|
+
} catch (error) {
|
|
8558
|
+
return {
|
|
8559
|
+
executionId,
|
|
8560
|
+
effect: "unknown",
|
|
8561
|
+
at: new Date(now()).toISOString(),
|
|
8562
|
+
error: errorText(error instanceof Error ? error.message : error).slice(0, 512)
|
|
8563
|
+
};
|
|
8564
|
+
}
|
|
8565
|
+
}
|
|
8566
|
+
/**
|
|
8567
|
+
* The teardown-receipt text for stopped executions. A killed harness never reports the usage of
|
|
8568
|
+
* its last turn, so the receipt says so instead of letting a reader take the settled spend as
|
|
8569
|
+
* complete.
|
|
8570
|
+
*/
|
|
8571
|
+
function describeRetainedNativeStops(stops) {
|
|
8572
|
+
return stops.map((stop) => {
|
|
8573
|
+
if (stop.effect === "cancelled") return `native execution ${stop.executionId} stopped at ${stop.at}; usage unknown: killed at ${stop.at}`;
|
|
8574
|
+
if (stop.effect === "not_live") return `native execution ${stop.executionId} was not live at ${stop.at}`;
|
|
8575
|
+
return `native execution ${stop.executionId} stop unconfirmed at ${stop.at} (effect ${stop.effect}${stop.error === void 0 ? "" : `: ${stop.error}`}); it may still be running`;
|
|
8576
|
+
}).join("; ");
|
|
8577
|
+
}
|
|
8578
|
+
//#endregion
|
|
8579
|
+
//#region src/runtime/supervise/cost-estimate.ts
|
|
8580
|
+
/**
|
|
8581
|
+
* Pricing for work that arrived without a provider receipt.
|
|
8582
|
+
*
|
|
8583
|
+
* A turn whose provider reported no billed dollars used to reach the dollar channel as a
|
|
8584
|
+
* known `$0`, so a run that certainly spent money reported a dollar total of zero. A catalog
|
|
8585
|
+
* price is not a receipt, so what this module produces is always marked, never promoted.
|
|
8586
|
+
*/
|
|
8587
|
+
/**
|
|
8588
|
+
* Price one unit of work that no provider receipt covered.
|
|
8589
|
+
*
|
|
8590
|
+
* The event always carries `usdKnown: false`: a catalog price approximates what a provider
|
|
8591
|
+
* WOULD bill, never measures what it did. The priced amount is repeated in `usdEstimated` so
|
|
8592
|
+
* a consumer can subtract it from `usd` and recover the dollars a provider actually billed.
|
|
8593
|
+
*
|
|
8594
|
+
* A model with no catalog entry yields `usd: 0` with `usdKnown: false` and no `usdEstimated`.
|
|
8595
|
+
* The turn then reads as unknown dollars, which is true, rather than as a free turn.
|
|
8596
|
+
*/
|
|
8597
|
+
function priceUnreceiptedWork(work) {
|
|
8598
|
+
const unknown = {
|
|
8599
|
+
kind: "cost",
|
|
8600
|
+
usd: 0,
|
|
8601
|
+
usdKnown: false,
|
|
8602
|
+
provenance: "uncaptured"
|
|
8603
|
+
};
|
|
8604
|
+
const { inputTokens, outputTokens, model } = work;
|
|
8605
|
+
if (model === void 0 || !isModelPriced(model)) return unknown;
|
|
8606
|
+
if (!Number.isFinite(inputTokens) || !Number.isFinite(outputTokens)) return unknown;
|
|
8607
|
+
if (inputTokens < 0 || outputTokens < 0) return unknown;
|
|
8608
|
+
const usd = estimateCost(inputTokens, outputTokens, model);
|
|
8609
|
+
if (!Number.isFinite(usd) || usd <= 0) return unknown;
|
|
8610
|
+
return {
|
|
8611
|
+
kind: "cost",
|
|
8612
|
+
usd,
|
|
8613
|
+
usdKnown: false,
|
|
8614
|
+
usdEstimated: usd,
|
|
8615
|
+
provenance: "catalog-estimate"
|
|
8616
|
+
};
|
|
8617
|
+
}
|
|
8618
|
+
//#endregion
|
|
8553
8619
|
//#region src/runtime/supervise/budget.ts
|
|
8554
8620
|
/**
|
|
8555
8621
|
*
|
|
@@ -11150,6 +11216,9 @@ function createProviderExecutor(provider, profile, ctx, options, placement) {
|
|
|
11150
11216
|
let workspaceRunActive = false;
|
|
11151
11217
|
let providerSessionId = null;
|
|
11152
11218
|
let workspaceControlRef;
|
|
11219
|
+
let nativeStop;
|
|
11220
|
+
let runSignal;
|
|
11221
|
+
const cancelledExplicitly = () => ctx.signal?.reason instanceof RunCancellationReason || runSignal?.reason instanceof RunCancellationReason;
|
|
11153
11222
|
const runtime = options.runtime ?? provider.name;
|
|
11154
11223
|
const createProfile = options.profileForCreate?.(profile) ?? profile;
|
|
11155
11224
|
if (placement && canonicalAgentProfileDigest(createProfile) !== canonicalAgentProfileDigest(profile)) throw new ValidationError("provider placement: profileForCreate cannot change the selected profile");
|
|
@@ -11312,6 +11381,51 @@ function createProviderExecutor(provider, profile, ctx, options, placement) {
|
|
|
11312
11381
|
workspaceCleanupPromise = cleanupReference;
|
|
11313
11382
|
return await cleanupReference;
|
|
11314
11383
|
};
|
|
11384
|
+
/**
|
|
11385
|
+
* Stop the native harness of this executor's retained execution. Local observation ending does
|
|
11386
|
+
* not stop a retained execution, so an environment kept after it keeps its harness spending
|
|
11387
|
+
* unless the provider is asked to stop it. Undefined when nothing was dispatched.
|
|
11388
|
+
*/
|
|
11389
|
+
const stopNativeExecution = () => {
|
|
11390
|
+
if (nativeStop !== void 0) return nativeStop;
|
|
11391
|
+
const controlRef = retained?.controlRef ?? admittedControlRef(retention);
|
|
11392
|
+
if (controlRef === void 0) return Promise.resolve(void 0);
|
|
11393
|
+
const stopping = stopRetainedNativeExecution({
|
|
11394
|
+
provider,
|
|
11395
|
+
controlRef,
|
|
11396
|
+
...retained === void 0 ? {} : { handle: retained },
|
|
11397
|
+
signal: AbortSignal.timeout(NATIVE_STOP_TIMEOUT_MS)
|
|
11398
|
+
}).then((stop) => {
|
|
11399
|
+
if (stop.effect !== "cancelled" && stop.effect !== "not_live" && nativeStop === stopping) nativeStop = void 0;
|
|
11400
|
+
return stop;
|
|
11401
|
+
});
|
|
11402
|
+
nativeStop = stopping;
|
|
11403
|
+
return stopping;
|
|
11404
|
+
};
|
|
11405
|
+
/**
|
|
11406
|
+
* A release that keeps an environment keeps its files, never its running harness. The root has
|
|
11407
|
+
* settled and no process will reconcile this execution, so its native process stops before the
|
|
11408
|
+
* release records what it kept.
|
|
11409
|
+
*/
|
|
11410
|
+
const withoutRunningHarness = (release) => async (signal) => {
|
|
11411
|
+
const receipts = await release(signal);
|
|
11412
|
+
if (receipts.every((receipt) => receipt.destroyed)) return receipts;
|
|
11413
|
+
const stop = await awaitAbortable$1(stopNativeExecution(), signal).catch((error) => {
|
|
11414
|
+
const controlRef = retained?.controlRef ?? admittedControlRef(retention);
|
|
11415
|
+
return controlRef === void 0 ? void 0 : {
|
|
11416
|
+
executionId: controlRef.executionId,
|
|
11417
|
+
effect: "unknown",
|
|
11418
|
+
at: (/* @__PURE__ */ new Date()).toISOString(),
|
|
11419
|
+
error: errorText(error instanceof Error ? error.message : error)
|
|
11420
|
+
};
|
|
11421
|
+
});
|
|
11422
|
+
if (stop === void 0) return receipts;
|
|
11423
|
+
const stopped = describeRetainedNativeStops([stop]);
|
|
11424
|
+
return receipts.map((receipt) => receipt.destroyed ? receipt : {
|
|
11425
|
+
...receipt,
|
|
11426
|
+
detail: receipt.detail ? `${receipt.detail}; ${stopped}` : stopped
|
|
11427
|
+
});
|
|
11428
|
+
};
|
|
11315
11429
|
const attemptId = node?.attemptId ?? newExecutionAttemptId(executionId);
|
|
11316
11430
|
const trace = createPushTraceSource({ runId: executionId });
|
|
11317
11431
|
const providerModel = concreteProfileModel(createProfile);
|
|
@@ -11362,6 +11476,7 @@ function createProviderExecutor(provider, profile, ctx, options, placement) {
|
|
|
11362
11476
|
const run = async function* (task, signal, recovering = false) {
|
|
11363
11477
|
beginWorkspaceExecution();
|
|
11364
11478
|
const linked = linkAbort(ctx.signal, signal, controller.signal);
|
|
11479
|
+
runSignal = linked.signal;
|
|
11365
11480
|
try {
|
|
11366
11481
|
const executionStartedAt = Date.now() - (retention?.priorSpent?.ms ?? 0);
|
|
11367
11482
|
let invocation = {
|
|
@@ -11507,6 +11622,7 @@ function createProviderExecutor(provider, profile, ctx, options, placement) {
|
|
|
11507
11622
|
},
|
|
11508
11623
|
async teardown(_grace) {
|
|
11509
11624
|
controller.abort();
|
|
11625
|
+
if (pending && cancelledExplicitly()) stopNativeExecution();
|
|
11510
11626
|
if (options.workspaceRetention !== void 0 && workspaceRunActive) return {
|
|
11511
11627
|
destroyed: false,
|
|
11512
11628
|
detail: "provider workspace retention: source preserved while the execution is still active"
|
|
@@ -11529,7 +11645,7 @@ function createProviderExecutor(provider, profile, ctx, options, placement) {
|
|
|
11529
11645
|
...preserved ? { keptFor: "evidence" } : {}
|
|
11530
11646
|
}];
|
|
11531
11647
|
},
|
|
11532
|
-
async
|
|
11648
|
+
releaseRetained: withoutRunningHarness(async (signal) => {
|
|
11533
11649
|
controller.abort();
|
|
11534
11650
|
if (!pending) return [];
|
|
11535
11651
|
const environmentId = retained?.controlRef.environmentId ?? environment?.id ?? admittedEnvironmentId(retention);
|
|
@@ -11577,7 +11693,7 @@ function createProviderExecutor(provider, profile, ctx, options, placement) {
|
|
|
11577
11693
|
});
|
|
11578
11694
|
retainedReleasePromise = releaseReference;
|
|
11579
11695
|
return await releaseReference;
|
|
11580
|
-
},
|
|
11696
|
+
}),
|
|
11581
11697
|
resultArtifact() {
|
|
11582
11698
|
if (!artifact) throw new ValidationError(`providerAsExecutor(${provider.name}): resultArtifact() read before stream drained`);
|
|
11583
11699
|
return artifact;
|
|
@@ -11587,6 +11703,12 @@ function createProviderExecutor(provider, profile, ctx, options, placement) {
|
|
|
11587
11703
|
};
|
|
11588
11704
|
return attestRuntimeOwnedPendingExecutor(executor, runtime, plannedDeclaration, plannedBinding);
|
|
11589
11705
|
}
|
|
11706
|
+
/** The exact run the latest durable dispatch names, when dispatch got that far. */
|
|
11707
|
+
function admittedControlRef(retention) {
|
|
11708
|
+
for (const admission of [...retention?.admissions ?? []].reverse()) if (admission.phase === "dispatched") return admission.controlRef;
|
|
11709
|
+
}
|
|
11710
|
+
/** Bounds one provider stop: a reconnect, the exact cancellation and its status read. */
|
|
11711
|
+
const NATIVE_STOP_TIMEOUT_MS = 3e4;
|
|
11590
11712
|
/** The environment id the latest durable admission names, when creation got that far. */
|
|
11591
11713
|
function admittedEnvironmentId(retention) {
|
|
11592
11714
|
for (const admission of [...retention?.admissions ?? []].reverse()) {
|
|
@@ -23303,6 +23425,19 @@ async function releaseScopeRetainedOwnerEnvironment(scope) {
|
|
|
23303
23425
|
if (!permanent) retriable = true;
|
|
23304
23426
|
}
|
|
23305
23427
|
}
|
|
23428
|
+
if (!destroyed) {
|
|
23429
|
+
const runs = unsettledOwnerRuns(events, args.nodeId, environmentId);
|
|
23430
|
+
if (runs.length > 0) {
|
|
23431
|
+
const stops = await Promise.all(runs.map((controlRef) => stopRetainedNativeExecution({
|
|
23432
|
+
provider,
|
|
23433
|
+
controlRef,
|
|
23434
|
+
signal: AbortSignal.timeout(3e4),
|
|
23435
|
+
now: args.now
|
|
23436
|
+
})));
|
|
23437
|
+
detail = `${detail}; ${describeRetainedNativeStops(stops)}`;
|
|
23438
|
+
lastDetail = detail;
|
|
23439
|
+
}
|
|
23440
|
+
}
|
|
23306
23441
|
await args.journal.appendEvent(args.rootId, {
|
|
23307
23442
|
kind: "environment-teardown",
|
|
23308
23443
|
id: args.nodeId,
|
|
@@ -23345,6 +23480,26 @@ async function releaseScopeRetainedOwnerEnvironment(scope) {
|
|
|
23345
23480
|
...lastDetail === void 0 ? {} : { detail: lastDetail }
|
|
23346
23481
|
}, ...checkpointTeardowns] : checkpointTeardowns;
|
|
23347
23482
|
}
|
|
23483
|
+
/**
|
|
23484
|
+
* The owner's dispatched executions in one environment whose turn committed no result. A turn
|
|
23485
|
+
* with a result has ended; one without may still be running even after a later turn started.
|
|
23486
|
+
*/
|
|
23487
|
+
function unsettledOwnerRuns(events, nodeId, environmentId) {
|
|
23488
|
+
const runs = /* @__PURE__ */ new Map();
|
|
23489
|
+
let turn = [];
|
|
23490
|
+
const close = () => {
|
|
23491
|
+
for (const controlRef of turn) runs.set(contentAddress(controlRef), controlRef);
|
|
23492
|
+
turn = [];
|
|
23493
|
+
};
|
|
23494
|
+
for (const event of events) {
|
|
23495
|
+
if (!("id" in event) || event.id !== nodeId) continue;
|
|
23496
|
+
if (event.kind === "execution-input") close();
|
|
23497
|
+
else if (event.kind === "execution-result") turn = [];
|
|
23498
|
+
else if (event.kind === "execution-admitted" && event.admission.phase === "dispatched" && event.admission.controlRef.environmentId === environmentId) turn.push(event.admission.controlRef);
|
|
23499
|
+
}
|
|
23500
|
+
close();
|
|
23501
|
+
return [...runs.values()];
|
|
23502
|
+
}
|
|
23348
23503
|
/** Group owner admissions by input and require a verified workspace receipt before deletion. */
|
|
23349
23504
|
async function ownerWorkspaceRetentionFailures(events, nodeId, blobs) {
|
|
23350
23505
|
const attempts = [];
|
|
@@ -28893,4 +29048,4 @@ function isNonEmptySpend(s) {
|
|
|
28893
29048
|
//#endregion
|
|
28894
29049
|
export { bindScopeRetainedOwnerProvider as $, detachedFrozen as $i, parseWorkerToolTraceArtifact as $n, sanitizeRuntimeStreamEvent as $r, isPeerMailEnvelope as $t, driverExecutorFactory as A, addResourceSpend as Aa, prepareJsonlAppend as Ai, resolveAgentEnvironmentProvider as An, contentAddress as Ar, createExecutor as At, recordScopeOwnerDriverAttempt as B, promptFromAgentTurnInput as Ba, newExecutionAttemptId as Bi, InMemoryResultBlobStore as Bn, buildRuntimeEventOtelSpans as Br, workerTraceEnv as Bt, createContinuationKeeper as C, sleep as Ca, renderProfileMaterializationIssues as Ci, readPromptOptions as Cn, runAbortable as Cr, freeSlots as Ct, passedItems as D, unmeteredSpend as Da, validateProfileMaterialization as Di, createAgentEnvironmentProviderRegistry as Dn, readHarnessTranscript as Dr, captureReusableExecutorConfig as Dt, failedItems as E, throwIfAborted as Ea, unsupportedProfileDimensions as Ei, LEAF_CONTINUATION_TASK as En, persistHarnessTranscript as Er, bindReusableExecutorExecutionId as Et, beginScopeOwnerAttempt as F, awaitAbortable$1 as Fa, authoredProfileDigest as Fi, sandboxSessionTraceSource as Fn, defaultRedactor as Fr, createSteerableSandboxSession as Ft, settledToIteration as G, runtimeOwnedExecutorMaterialization as Gi, insideCursorNamespace as Gn, loopEventToOtelSpan as Gr, createActivityLog as Gt, recordScopeOwnerPause as H, providerMessageText as Ha, recordRuntimeOwnedDriveHarnessProviderEvidence as Hi, SpawnEventIndex as Hn, createOtelExporter as Hr, workerTraceSeamKey as Ht, createScope as I, DEFAULT_SUCCESSFUL_SHUTDOWN_MS as Ia, finalizeRuntimeOwnedPendingExecutor as Ii, registerRetainedExecutorPreparation as In, defaultRedactorIdentityMaterial as Ir, createRouterTranscript as It, pollFor as J, runtimeOwnedScopeOwnerRuntime as Ji, pendingWaits as Jn, toOtelAttributes as Jr, AUTHORITY_MARKERS as Jt, createWaitProbes as K, runtimeOwnedExecutorProviderEvidence as Ki, loadSpawnForest as Kn, padSpanId as Kr, readWorkerProgress as Kt, deriveNodeExecutionIdentity as L, armDeadlineTimer as La, inheritRuntimeOwnedExecutorAttestation as Li, retainedExecutorSeamKey as Ln, resolveRedactor as Lr, createInPlaceCliExecutor as Lt, withDriverExecutor as M, withBudgetResources as Ma, writeAllBytes as Mi, unavailableSignalOfFailure as Mn, mergeTraceEnv as Mr, snapshotExecutorConfig as Mt, SUBTREE_RESULT_LIMIT as N, decodeHarnessUsage as Na, attestRuntimeOwnedPendingExecutor as Ni, createPushTraceSource as Nn, readTraceContextFromEnv as Nr, createWorktreeCliExecutor as Nt, verdictFromJudgeScore as O, withTimeout as Oa, worktreeCliProfileMaterialization as Oi, providerAsExecutor as On, resolveHarnessTranscriptCapture as Or, cliInPlaceExecutor as Ot, assertRecursiveReservationPolicy as P, abortError$2 as Pa, attestRuntimeOwnedScopeOwner as Pi, decodeToolPart as Pn, traceContextToEnv as Pr, DEFAULT_SANDBOX_STEERING_MAX_TURNS as Pt, bindScopeRetainedOwnerEnvironmentId as Q, executableAgentSpecSnapshot as Qi, isTraceAnalysisStore as Qn, sanitizeKnowledgeReadinessReport as Qr, createPeerMailbox as Qt, meterRuntimeOwnedAccounting as R, teardownExecutor as Ra, knownExecutionBindingReceipt as Ri, FileResultBlobStore as Rn, buildLoopOtelSpans as Rr, WORKER_TRACE_PROPAGATION as Rt, composeContinuationNote as S, randomSuffix as Sa, promptResourceProfileMaterialization as Si, assertBoxlessPromptOptions as Sn, linkAbort as Sr, startRetainedInteractiveRun as St, expandQuestions as T, throwAbort as Ta, sandboxActProfileMaterialization as Ti, runBrainLoop as Tn, harnessTranscriptArtifact as Tr, rollingDispatch as Tt, restoreScopeOwnerAcceptedExecution as U, runtimeOwnedDriveHarnessProviderEvidence as Ui, assertContentAddress as Un, flatOtelSpan as Ur, taskToPrompt as Ut, recordScopeOwnerMaterialization as V, promptOptionsFromAgentTurnInput as Va, providerAttemptEvidence as Vi, InMemorySpawnJournal as Vn, createOpenInferenceFileExporter as Vr, workerTraceHeaders as Vt, scopeOwnerExecutorNodeContext as W, runtimeOwnedExecutorExecutionBinding as Wi, encodeResultBlob as Wn, generateSpanId as Wr, DEFAULT_STALL_AFTER_MS as Wt, validateWaitSpec as X, unknownMaterializationReceipt as Xi, WORKER_TOOL_TRACE_SCHEMA_VERSION as Xn, createRuntimeStreamEventCollector as Xr, PEER_MAIL_WIRE_KEY as Xt, timerAt as Y, unknownExecutionBindingReceipt as Yi, replaySpawnTree as Yn, createRuntimeEventCollector as Yr, DEFAULT_PEER_MAIL_LIMITS as Yt, waitUntil as Z, executableAgentProfileSnapshot as Zi, captureWorkerTraceEvidence as Zn, sanitizeAgentRuntimeEvent as Zr, claimsAuthority as Zt, CheckUnavailableError as _, cloneSpend as _a, fullProfileMaterialization as _i, createSandboxLineage as _n, environmentGone as _r, readWorkerInteractiveBinding as _t, collectDelivered as a, createSandboxToolPartState as aa, DEFAULT_LOCAL_HARNESS as ai, bridgeModelRouteRefusal as an, createBudgetPool as ar, scopeRetainedOwnerPriorSpend as at, bestComposite as b, isAbortError$2 as ba, promptModelProfileMaterialization as bi, SandboxEvidenceRetentionError as bn, RunCancellationReason as br, reconnectRetainedInteractiveRun as bt, runTree as c, isSandboxTerminalEvent as ca, harnessSupportsReasoningEffort as ci, harnessUsageIsEmpty as cn, spendFromUsageEvents as cr, scopeRetainedOwnerResult as ct, classifyDriverFailure as d, notifySandboxEventObserver as da, CodexExecutionDiagnosticError as di, bridgeStopSignalKey as dn, reconnectRetainedRun as dr, hostDirectoryReader as dt, detachedSnapshot as ea, runSettledCommand as ei, peerMailTools as en, workerTraceAnalysisStore as er, consumeScopeRetainedOwnerResult as et, runDriverWithRetry as f, sandboxEventServedBackend as fa, terminateProcessTreeAndConfirm as fi, TERMINAL_DECISIONS as fn, recoverRetainedRun as fr, resolveSpawnResourcePaths as ft, CONTINUATION_FACTS as g, chargedTokens as ga, defineProfileMaterializationContract as gi, runAgentRounds as gn, destroyInteractiveEnvironment as gr, attachWorker as gt, CONTINUATIONS_DIR as h, addSpend as ha, controlProfileMaterialization as hi, isTerminalDecision as hn, retainedCreateMaterial as hr, workerInteractiveAdmissionFile as ht, bestDelivered as i, canonicalStreamEventFromSandboxEvent as ia, removeWorktree as ii, bridgeAdmissionRefusal as in, assertValidBudget as ir, scopeRetainedOwnerContext as it, isDriverSpec as j, resourceTelemetry as ja, readCommittedJsonLines as ji, unavailablePauseMs as jn, createPropagatingTraceEmitter as jr, createExecutorRegistry as jt, driverChild as k, zeroSpend as ka, isNoEntError as ki, providerAsSandboxClient as kn, retainHarnessTranscript as kr, cliWorktreeExecutor as kt, DriverAttemptsExhaustedError as l, mapSandboxEvent as la, localHarnessExecutable as li, readCodexRolloutSession as ln, spendFromUsageTotals as lr, SPAWN_RESOURCE_PATH_MAX_BYTES as lt, upstreamUnavailableSignal as m, sumSandboxUsage as ma, assertProfileMaterialization as mi, defaultSelectWinner as mn, startRetainedRunInEnvironment as mr, readWorkerInteractiveAdmissions as mt, createRootHandle as n, readSandboxOutcome as na, captureWorktreeDiff as ni, isLiveNodeStatus as nn, BudgetReconcileFault as nr, prepareScopeRetainedOwnerTask as nt, pickBestDelivered as o, createSandboxUsageLedger as oa, LOCAL_HARNESSES as oi, addHarnessUsage as on, meterUsageEvent as or, scopeRetainedOwnerResourceReader as ot, summarizeDriverAttempts as p, sandboxProgressEvents as pa, AGENT_PROFILE_MATERIALIZATION_AXES as pi, createSandboxForSpec as pn, startRetainedRun as pr, interactiveAdmissionSeamKey as pt, isWaitOutcome as q, runtimeOwnedPendingExecutorMaterialization as qi, materializeTreeView as qn, padTraceId as qr, createInbox as qt, createSupervisor as r, assertSandboxServedModel as ra, createWorktree as ri, isTerminalNodeStatus as rn, ReservationWaitRefused as rr, reconcileScopeRetainedOwnerEnvironment as rt, runFinalizer as s, extractLlmCallEvent as sa, harnessInvocation as si, createCodexRolloutStoreReader as sn, newUsageTotals as sr, scopeRetainedOwnerRestorePoint as st, DEFAULT_MAX_DEPTH as t, projectSandboxOutcome as ta, runWorktreeHarness as ti, peerMailVerbNames as tn, executorFailure as tr, noteScopeRetainedOwnerCoordination as tt, HarnessTurnFailedError as u, mapSandboxToolEvent as ua, parseCodexTokenUsage as ui, bridgeRuntimeAttachmentsKey as un, errMessage as ur, environmentReader as ut, admitContinuationPolicy as v, deleteBoxSafe as va, profileMaterializationAxes$1 as vi, probeSandboxCapabilities as vn, createWorkerSlots as vr, workerInteractiveBindingFile as vt, distillFindings as w, stringifySafe as wa, renderUnsupported as wi, routerBrain as wn, captureHarnessTranscript as wr, queueOf as wt, checkVerdictOf as x, promptCacheTokenClasses as xa, promptOnlyProfileMaterialization as xi, captureBeforeDestroy as xn, abortError as xr, recoverRetainedInteractiveRun as xt, admitFinding as y, hasCompleteCacheBreakdown as ya, promptControlProfileMaterialization as yi, acquireSandbox as yn, openSlotGroup as yr, workerInteractiveBindingsDir as yt, meterRuntimeOwnedProviderAttempt as z, teardownSurfaces as za, knownMaterializationReceipt as zi, FileSpawnJournal as zn, buildLoopSpanNodes as zr, readWorkerTraceContext as zt };
|
|
28895
29050
|
|
|
28896
|
-
//# sourceMappingURL=supervisor-
|
|
29051
|
+
//# sourceMappingURL=supervisor-BYw-QEyZ.js.map
|