@tangle-network/agent-runtime 9.0.3 → 9.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 +24 -0
- package/dist/{activation-BrBDs0Yj.js → activation-BA4WLqwN.js} +2 -2
- package/dist/{activation-BrBDs0Yj.js.map → activation-BA4WLqwN.js.map} +1 -1
- package/dist/{activation-CoVktVKr.d.ts → activation-OSYxeVWi.d.ts} +2 -2
- package/dist/agent.d.ts +1 -1
- package/dist/agent.js +3 -3
- package/dist/{coordination-manager-DKmQGzBB.js → coordination-manager-CawAzVwE.js} +68 -38
- package/dist/coordination-manager-CawAzVwE.js.map +1 -0
- package/dist/{delegate-CHGMIC6s.js → delegate-B-uEepRq.js} +2 -2
- package/dist/{delegate-CHGMIC6s.js.map → delegate-B-uEepRq.js.map} +1 -1
- package/dist/durable.d.ts +1 -1
- package/dist/durable.js +9 -9
- package/dist/{failure-cause-CVB-YE88.js → failure-cause-W0o778qO.js} +12 -3
- package/dist/failure-cause-W0o778qO.js.map +1 -0
- package/dist/{graph-rY9OQUa_.js → graph-C8S9Qyqo.js} +6 -6
- package/dist/{graph-rY9OQUa_.js.map → graph-C8S9Qyqo.js.map} +1 -1
- package/dist/{improve-CnTEGkF6.js → improve-CKQwcCz1.js} +6 -6
- package/dist/{improve-CnTEGkF6.js.map → improve-CKQwcCz1.js.map} +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +10 -10
- package/dist/intelligence.d.ts +2 -2
- package/dist/intelligence.js +4 -4
- package/dist/kernel.d.ts +1 -1
- package/dist/kernel.js +13 -13
- package/dist/{loop-runner-BpnJwopI.js → loop-runner-BF2Rmc90.js} +2 -2
- package/dist/{loop-runner-BpnJwopI.js.map → loop-runner-BF2Rmc90.js.map} +1 -1
- package/dist/{loop-runner-DZeXWH78.d.ts → loop-runner-CCdQ1pmE.d.ts} +2 -2
- package/dist/loop-runner-bin.d.ts +1 -1
- package/dist/loop-runner-bin.js +1 -1
- package/dist/mcp/bin.js +3 -3
- package/dist/mcp/index.d.ts +1 -1
- package/dist/mcp/index.js +6 -6
- package/dist/mcp/memory-bin.js +1 -1
- package/dist/profiles.d.ts +1 -1
- package/dist/{provision-supervisor-B-ULubUf.js → provision-supervisor-Cm6RLHuw.js} +5 -5
- package/dist/{provision-supervisor-B-ULubUf.js.map → provision-supervisor-Cm6RLHuw.js.map} +1 -1
- package/dist/{run-cancellation-DZn4OSl8.js → run-cancellation-B4-1Rt4u.js} +2 -2
- package/dist/{run-cancellation-DZn4OSl8.js.map → run-cancellation-B4-1Rt4u.js.map} +1 -1
- package/dist/{run-state-nbF5NNGy.js → run-state-D1LkVTBQ.js} +5 -5
- package/dist/{run-state-nbF5NNGy.js.map → run-state-D1LkVTBQ.js.map} +1 -1
- package/dist/{runtime-CRbF3eyC.js → runtime-BxfLCey9.js} +13 -13
- package/dist/{runtime-CRbF3eyC.js.map → runtime-BxfLCey9.js.map} +1 -1
- package/dist/{search-executor-2xqDTDNO.js → search-executor-D8TxXXSY.js} +4 -4
- package/dist/{search-executor-2xqDTDNO.js.map → search-executor-D8TxXXSY.js.map} +1 -1
- package/dist/{server-D3RV-84X.js → server-DABPxHO9.js} +4 -4
- package/dist/{server-D3RV-84X.js.map → server-DABPxHO9.js.map} +1 -1
- package/dist/{settle-record-B95oiypS.js → settle-record-BmXd-_3O.js} +2 -2
- package/dist/{settle-record-B95oiypS.js.map → settle-record-BmXd-_3O.js.map} +1 -1
- package/dist/{structural-rollout-BHNqBUV0.js → structural-rollout-DXymZ3go.js} +4 -4
- package/dist/{structural-rollout-BHNqBUV0.js.map → structural-rollout-DXymZ3go.js.map} +1 -1
- package/dist/{supervise-CULDLjjS.js → supervise-BAXUJgwd.js} +35 -11
- package/dist/supervise-BAXUJgwd.js.map +1 -0
- package/dist/{supervision-discovery-DUpm_6nQ.js → supervision-discovery-DzYBmrJC.js} +3 -3
- package/dist/{supervision-discovery-DUpm_6nQ.js.map → supervision-discovery-DzYBmrJC.js.map} +1 -1
- package/dist/{supervisor-BhcXPxAk.js → supervisor-Cnn37lon.js} +80 -20
- package/dist/supervisor-Cnn37lon.js.map +1 -0
- package/dist/{supervisor-accounting-BB22j3hu.js → supervisor-accounting-BMrdsYxz.js} +65 -80
- package/dist/supervisor-accounting-BMrdsYxz.js.map +1 -0
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +11 -11
- package/dist/{tool-server-DYwRbi0I.js → tool-server-Df-Uy99W.js} +2 -2
- package/dist/{tool-server-DYwRbi0I.js.map → tool-server-Df-Uy99W.js.map} +1 -1
- package/dist/{top-web-DsFGyUlS.js → top-web-Qk6x-A9O.js} +6 -6
- package/dist/{top-web-DsFGyUlS.js.map → top-web-Qk6x-A9O.js.map} +1 -1
- package/dist/tui/bin.js +3 -3
- package/dist/tui/index.d.ts +1 -1
- package/dist/tui/index.js +2 -2
- package/dist/{types-CTp7j9jD.d.ts → types-KQkbyDmn.d.ts} +58 -6
- package/package.json +3 -3
- package/skills/profile-authoring/SKILL.md +57 -120
- package/skills/profile-authoring/references/acceptance-examples.md +15 -10
- package/skills/profile-authoring/references/execution-and-credentials.md +2 -7
- package/skills/profile-authoring/references/profile-contract.md +59 -0
- package/skills/profile-authoring/references/research-directors.md +1 -5
- package/dist/coordination-manager-DKmQGzBB.js.map +0 -1
- package/dist/failure-cause-CVB-YE88.js.map +0 -1
- package/dist/supervise-CULDLjjS.js.map +0 -1
- package/dist/supervisor-BhcXPxAk.js.map +0 -1
- package/dist/supervisor-accounting-BB22j3hu.js.map +0 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { f as RuntimeRunStateError, i as ConfigError, m as ValidationError } from "./errors-DG8yufqX.js";
|
|
2
|
-
import { c as createSteerAcknowledger, d as coordinationVerbNames, f as createFileRunContext, l as budgetOverspendText, m as withRunContext, n as createCoordinationToolsForManager, p as createInMemoryRunContext, s as createCancelAcknowledger, t as createCoordinationTools, u as normalizeAnalyzeOnSettle } from "./coordination-manager-
|
|
3
|
-
import { B as toolResultText, C as captureReusableExecutorConfig, Ct as bridgeModelRouteRefusal, Gt as promptControlProfileMaterialization, H as routerBrain, Ht as defineProfileMaterializationContract, I as codeModeArguments, Kt as promptModelProfileMaterialization, L as codeModeModelOutput, Mt as bridgeStopSignalKey, R as createCodeModeTools, S as bindReusableExecutorExecutionId, St as bridgeAdmissionRefusal, T as snapshotExecutorConfig, Ut as fullProfileMaterialization, V as createRouterTranscript, Vt as controlProfileMaterialization, W as resolveAgentEnvironmentProvider, Wt as profileMaterializationAxes$1, X as INBOX_RECEIPT_KEY, Xt as unsupportedProfileDimensions, Yt as sandboxProfileMaterialization, Z as createInbox, Zt as worktreeCliProfileMaterialization, _ as isDriverSpec, _t as CheckUnavailableError, a as assertRunParking, ct as DriverAttemptsExhaustedError, d as bestDelivered, dt as classifyDriverFailure, f as runFinalizer, ft as summarizeDriverAttempts, g as driverExecutorFactory, gt as preflightPublicCoordination, h as driverChild, ht as upstreamUnavailableSignal, i as RunParkedError, it as isPeerMailEnvelope, jt as bridgeRuntimeAttachmentsKey, l as sleepScopeWait, lt as HarnessTurnFailedError, m as createRootHandle, mt as undispatchedCredentialExit, n as createSupervisor, o as bindScopeParkingDrain, p as runTree, pt as transientFailureKind, qt as renderUnsupported, s as isRunParked, tt as PEER_MAIL_WIRE_KEY, u as withRunParking, ut as abandonablePending, vt as gateFactoryOnDeliverable, w as createExecutor, zt as assertProfileMaterialization } from "./supervisor-
|
|
4
|
-
import { _ as workerAssignmentNamespace, c as writeRunCancellation, d as coordinationEventId, f as externalExecutionId, g as supervisionRunNamespace, h as rootCoordinationOwner, i as readRunCancellation, l as canonicalExecution, m as freezeDetachedProfile, p as freezeDetached, r as readRunCancelRequest, s as watchRunCancellation, t as applyRunCancellation, u as childCoordinationOwner } from "./run-cancellation-
|
|
2
|
+
import { c as createSteerAcknowledger, d as coordinationVerbNames, f as createFileRunContext, l as budgetOverspendText, m as withRunContext, n as createCoordinationToolsForManager, p as createInMemoryRunContext, s as createCancelAcknowledger, t as createCoordinationTools, u as normalizeAnalyzeOnSettle } from "./coordination-manager-CawAzVwE.js";
|
|
3
|
+
import { B as toolResultText, C as captureReusableExecutorConfig, Ct as bridgeModelRouteRefusal, Gt as promptControlProfileMaterialization, H as routerBrain, Ht as defineProfileMaterializationContract, I as codeModeArguments, Kt as promptModelProfileMaterialization, L as codeModeModelOutput, Mt as bridgeStopSignalKey, R as createCodeModeTools, S as bindReusableExecutorExecutionId, St as bridgeAdmissionRefusal, T as snapshotExecutorConfig, Ut as fullProfileMaterialization, V as createRouterTranscript, Vt as controlProfileMaterialization, W as resolveAgentEnvironmentProvider, Wt as profileMaterializationAxes$1, X as INBOX_RECEIPT_KEY, Xt as unsupportedProfileDimensions, Yt as sandboxProfileMaterialization, Z as createInbox, Zt as worktreeCliProfileMaterialization, _ as isDriverSpec, _t as CheckUnavailableError, a as assertRunParking, ct as DriverAttemptsExhaustedError, d as bestDelivered, dt as classifyDriverFailure, f as runFinalizer, ft as summarizeDriverAttempts, g as driverExecutorFactory, gt as preflightPublicCoordination, h as driverChild, ht as upstreamUnavailableSignal, i as RunParkedError, it as isPeerMailEnvelope, jt as bridgeRuntimeAttachmentsKey, l as sleepScopeWait, lt as HarnessTurnFailedError, m as createRootHandle, mt as undispatchedCredentialExit, n as createSupervisor, o as bindScopeParkingDrain, p as runTree, pt as transientFailureKind, qt as renderUnsupported, s as isRunParked, tt as PEER_MAIL_WIRE_KEY, u as withRunParking, ut as abandonablePending, vt as gateFactoryOnDeliverable, w as createExecutor, zt as assertProfileMaterialization } from "./supervisor-Cnn37lon.js";
|
|
4
|
+
import { _ as workerAssignmentNamespace, c as writeRunCancellation, d as coordinationEventId, f as externalExecutionId, g as supervisionRunNamespace, h as rootCoordinationOwner, i as readRunCancellation, l as canonicalExecution, m as freezeDetachedProfile, p as freezeDetached, r as readRunCancelRequest, s as watchRunCancellation, t as applyRunCancellation, u as childCoordinationOwner } from "./run-cancellation-B4-1Rt4u.js";
|
|
5
5
|
import { a as errMessage, c as errorStack, i as causeChain, l as errorText, n as detachedSnapshot, o as errorHttpStatus, u as defaultRedactor } from "./snapshot-BKI_w3JD.js";
|
|
6
6
|
import { t as composeRuntimeHooks } from "./runtime-hooks-CsW2pfFk.js";
|
|
7
|
-
import { At as noteScopeOwnerPlannedExecution, Br as
|
|
7
|
+
import { At as noteScopeOwnerPlannedExecution, Br as runtimeOwnedExecutorMaterialization, Ct as abandonScopeRetainedOwnerInvocation, Dt as scopeRetainedOwnerResult, Et as scopeRetainedOwnerPriorSpend, F as parseWorkerToolTraceArtifact, Ft as coordinationMcpAlias, Gn as generateSpanId, Gt as noteScopeRetainedOwnerCoordination, Hr as runtimeOwnedPendingExecutorMaterialization, Ht as assertRetainedOwnerCoordinationRekey, It as coordinationProfileToolPrefix, Jt as bindScopeRetainedOwnerProvider, Lt as providerVisibleProfile, Mr as providerAttemptEvidence, Mt as restoreScopeOwnerAcceptedExecution, Nn as WORKER_TRACE_PROPAGATION, Nr as recordRuntimeOwnedDriveHarnessProviderEvidence, Nt as scopeOwnerExecutionObservation, Ot as beginScopeOwnerAttempt, Pt as scopeOwnerExecutorNodeContext, Qr as runtimeFlowBrain, Qt as scopeRetainedOwnerJournalRoot, Rr as runtimeOwnedDriveHarnessProviderEvidence, Rt as runtimeGraphMetadataKey, Tr as authoredAgentIdentity, Tt as prepareScopeRetainedOwnerTask, Un as createOtelExporter, Ut as reconcileScopeRetainedOwnerEnvironment, Vr as runtimeOwnedExecutorProviderEvidence, Vt as scopeRetainedOwnerTurnEnded, Wr as runtimeOwnedScopeOwnerRuntime, Wt as scopeRetainedOwnerRestorePoint, X as assertRecursiveReservationPolicy, Yr as isRuntimeFlowBrain, Yt as owners, Zr as runtimeFlowAgent, Zt as scopeRetainedOwnerContext, _r as SeatPauseError, a as createRootStreamSink, at as meterRuntimeOwnedProviderAttempt, bt as scopeRetainedOwnerResourceReader, ci as linkAbort, ct as recordScopeOwnerDriverAttempt, gr as SeatChain, hr as SEAT_RECHECK_MS, i as ROOT_STREAM_FILE, ir as readHarnessTranscript, it as meterRuntimeOwnedAccounting, jt as recordScopeOwnerMaterialization, li as runAbortable, lt as recordScopeOwnerPause, mr as isTerminalNodeStatus, oi as RunCancellationReason, ot as pauseScopeSeatAdmission, pr as isLiveNodeStatus, qt as bindScopeRetainedOwnerEnvironmentId, rr as persistHarnessTranscript, s as readRootStream, st as recordScopeOwnerBarrenPause, un as executorObservationSeamKey, ur as createActivityLog, vr as authoredSeatStages, vt as prepareScopeRetainedOwnerSeatSwitch, wr as attestRuntimeOwnedScopeOwner, wt as consumeScopeRetainedOwnerResult, yr as seatExecutionProfile, yt as releaseScopeRetainedOwnerForSeatPause, zr as runtimeOwnedExecutorExecutionBinding, zt as beginScopeRetainedOwnerDrive } from "./supervisor-accounting-BMrdsYxz.js";
|
|
8
8
|
import { a as createContinuationKeeper, i as checkVerdictOf, n as admitContinuationPolicy, r as bestComposite, t as CONTINUATIONS_DIR } from "./continuation-DDPfLw2w.js";
|
|
9
|
-
import {
|
|
9
|
+
import { B as turnFailurePolicy, C as cappedDoublingMs, D as unavailablePauseMs, E as reportedResetAt, Et as recordValue, F as executorFailure, N as contentAddress, O as unavailableResumeAt, Q as newUsageTotals, R as harnessProcessDied, Z as meterUsageEvent, _ as registerRetainedExecutorPreparation, b as RATE_LIMIT_SIGNALS, et as spendFromUsageTotals, tt as assertValidBudget, u as RetainedExecutionPendingError, w as jitteredMs, y as retainedExecutorSeamKey, z as turnFailureOf } from "./failure-cause-W0o778qO.js";
|
|
10
10
|
import { o as safeJsonText } from "./coordination-map-routing-XZXTlCmn.js";
|
|
11
11
|
import { _ as agentHarness, a as concreteProfileModel, c as profileModelExecutionSettings, l as profileProviderModel, n as assertModelAllowed, o as enforceTokenLimits, r as assertProfileModelsAllowed, s as profileBridgeWireModel, t as assertExecutableAgentProfile, v as harnessRunsAgent } from "./model-policy-CZwhXp8O.js";
|
|
12
12
|
import { A as withBudgetResources, D as addResourceSpend, I as armDeadlineTimer, P as DEFAULT_SUCCESSFUL_SHUTDOWN_MS, S as unmeteredSpend, T as zeroSpend, V as teardownExecutor, c as errorMessage, f as isAsyncIterable, i as chargedTokens, k as resourceTelemetry, m as promptCacheTokenClasses, n as addSpend, v as sleep, w as withTimeout, z as isDeadlineAbortReason } from "./util-fcckrkKp.js";
|
|
13
|
-
import { n as createStdioToolServer } from "./tool-server-
|
|
13
|
+
import { n as createStdioToolServer } from "./tool-server-Df-Uy99W.js";
|
|
14
14
|
import { a as graphRegistry, c as loadGraph } from "./graph-registry-D0FE9VpR.js";
|
|
15
15
|
import { ATTR, LINK_KIND_ATTR, agentIdentityAttributes } from "@tangle-network/agent-trace-contract";
|
|
16
16
|
import { ProxySecretScopeSchema, ProxySecretsSchema, agentProfileSchema, canonicalAgentProfileDigest, canonicalCandidateDigest, canonicalCandidateJson, mergeProxySecretBindings, validateAgentProfileSecurity } from "@tangle-network/agent-interface";
|
|
@@ -4745,7 +4745,7 @@ function observeWorkerControls(options) {
|
|
|
4745
4745
|
...deps,
|
|
4746
4746
|
dir: steerDir,
|
|
4747
4747
|
deliverRoot: options.deliverRoot,
|
|
4748
|
-
|
|
4748
|
+
rootPause: options.rootPause
|
|
4749
4749
|
});
|
|
4750
4750
|
const cancellations = dir === void 0 ? void 0 : createCancelAcknowledger({
|
|
4751
4751
|
...deps,
|
|
@@ -4830,6 +4830,7 @@ async function openManagerSession(config, task, scope) {
|
|
|
4830
4830
|
stopController: new AbortController(),
|
|
4831
4831
|
coordinationLifetime: linkAbort(scope.signal),
|
|
4832
4832
|
harnessInvocationActive: false,
|
|
4833
|
+
pausedOn: void 0,
|
|
4833
4834
|
progressStopReason: void 0,
|
|
4834
4835
|
ledger: void 0,
|
|
4835
4836
|
keeper: void 0
|
|
@@ -4956,7 +4957,15 @@ function observeManagerControls(config, session) {
|
|
|
4956
4957
|
controlScope: deps.controlScope ?? "run",
|
|
4957
4958
|
...deps.controlScope === "subtree" ? {} : {
|
|
4958
4959
|
deliverRoot: (message) => live.inbox?.(message) ?? false,
|
|
4959
|
-
|
|
4960
|
+
rootPause: () => {
|
|
4961
|
+
const stop = session.state.pausedOn;
|
|
4962
|
+
if (stop === void 0) return void 0;
|
|
4963
|
+
const { tokensCapped, tokensLeft } = scope.budget;
|
|
4964
|
+
return tokensCapped === false ? { stop } : {
|
|
4965
|
+
stop,
|
|
4966
|
+
tokensLeft
|
|
4967
|
+
};
|
|
4968
|
+
}
|
|
4960
4969
|
},
|
|
4961
4970
|
onError: (error) => {
|
|
4962
4971
|
coordinationLifetime.abort(error);
|
|
@@ -5233,7 +5242,7 @@ var DriverRetryLoop = class {
|
|
|
5233
5242
|
pending
|
|
5234
5243
|
};
|
|
5235
5244
|
this.sameIdle = progressed ? void 0 : extend(this.sameIdle, error);
|
|
5236
|
-
if (classification !== "terminal" && !this.run.signal.aborted && budgetStop(this.run.budget(), this.limits.now()) === void 0 && (this.sameIdle?.count ?? 0) >= SAME_CAUSE_LIMIT) {
|
|
5245
|
+
if (classification !== "terminal" && !(classification === "unavailable" && pending === void 0 && this.run.budget().deadlineMs > 0 && RATE_LIMIT_SIGNALS.has((upstreamUnavailableSignal(error) ?? "").toLowerCase())) && !this.run.signal.aborted && budgetStop(this.run.budget(), this.limits.now()) === void 0 && (this.sameIdle?.count ?? 0) >= SAME_CAUSE_LIMIT) {
|
|
5237
5246
|
const stop = pending === void 0 || classification === "unavailable" ? "repeated-failure" : "pending-unresolved";
|
|
5238
5247
|
await this.emit({
|
|
5239
5248
|
...this.failureRecord(failure),
|
|
@@ -5933,6 +5942,7 @@ async function driveManagerTurns(inputs) {
|
|
|
5933
5942
|
...reentered === void 0 ? {} : { reentered },
|
|
5934
5943
|
drive: async (attempt, reentry) => {
|
|
5935
5944
|
let handedOff = false;
|
|
5945
|
+
session.state.pausedOn = void 0;
|
|
5936
5946
|
try {
|
|
5937
5947
|
await session.reachable();
|
|
5938
5948
|
await driveManagerTurn(loop, attempt, reentry);
|
|
@@ -6250,6 +6260,7 @@ async function wakeManager(loop, nextAttempt) {
|
|
|
6250
6260
|
async function recordManagerAttempt(loop, record) {
|
|
6251
6261
|
const { scope } = loop.session.state;
|
|
6252
6262
|
loop.records.push(record);
|
|
6263
|
+
if (record.replacesStop !== void 0) loop.session.state.pausedOn = record.replacesStop;
|
|
6253
6264
|
if (record.stop !== void 0) reportManagerLoop(loop);
|
|
6254
6265
|
await recordScopeOwnerDriverAttempt(scope, record);
|
|
6255
6266
|
if (record.replacesStop !== void 0 && record.retryInMs !== void 0 && record.stopPauseStreak !== void 0 && record.resumeAt !== void 0) await recordScopeOwnerPause(scope, {
|
|
@@ -7833,6 +7844,16 @@ var DriverExecutionAttempt = class {
|
|
|
7833
7844
|
if (spent === void 0) return;
|
|
7834
7845
|
this.stops.budgetStop.abort(`supervise: budget exhausted (${spent})`);
|
|
7835
7846
|
}
|
|
7847
|
+
stopAtGrant() {
|
|
7848
|
+
if (this.stops.signal.aborted) return;
|
|
7849
|
+
const projected = newUsageTotals(spendFromUsageTotals(this.ownerUsage));
|
|
7850
|
+
for (const event of this.pendingUsage) meterUsageEvent(projected, event);
|
|
7851
|
+
const unmetered = ownerSpendDelta(spendFromUsageTotals(projected), this.retainedOwner ? this.committedOwnerSpend : this.observedOwnerSpend);
|
|
7852
|
+
const { budget } = this.scope;
|
|
7853
|
+
const left = budget.tokensLeft - chargedTokens(unmetered.tokens);
|
|
7854
|
+
if (budget.tokensCapped === false || left > 0) return;
|
|
7855
|
+
this.stops.budgetStop.abort(`supervise: budget exhausted (tokens: ${-left} over the cap)`);
|
|
7856
|
+
}
|
|
7836
7857
|
async publishMaterialization(exactDeclaration, exactBinding) {
|
|
7837
7858
|
const { identity } = this;
|
|
7838
7859
|
await recordScopeOwnerMaterialization(this.scope, this.executor.runtime, {
|
|
@@ -7909,7 +7930,10 @@ var DriverExecutionAttempt = class {
|
|
|
7909
7930
|
} else if (event.kind === "progress") {
|
|
7910
7931
|
sink.observeProgress(event.progress);
|
|
7911
7932
|
sink.onModelEvent?.();
|
|
7912
|
-
} else
|
|
7933
|
+
} else {
|
|
7934
|
+
this.pendingUsage.push(event);
|
|
7935
|
+
if (event.kind === "tokens") this.stopAtGrant();
|
|
7936
|
+
}
|
|
7913
7937
|
await this.meterPending();
|
|
7914
7938
|
const artifact = this.executor.resultArtifact();
|
|
7915
7939
|
this.terminalArtifact = artifact;
|
|
@@ -9399,4 +9423,4 @@ function superviseWithContext(profile, task, opts, brain) {
|
|
|
9399
9423
|
}
|
|
9400
9424
|
export { createPromptRegistry as A, noProgressFor as B, journaledGateDecider as C, graphRootProfile as D, defaultEdgeTraversalCap as E, kernelPromptRegistry as F, plateauLength as G, anytimeReport as H, naiveContinuationPrompt as I, renderAnytimeTable as K, promptHandle as L, dumbContinuationFailPrompt as M, dumbContinuationPassPrompt as N, validateGraphTopology as O, formatPromptHandle as P, allWorkersStalled as R, flowRootProfile as S, validateFlowGraph as T, areaUnderCurve as U, plateau as V, bestSoFar as W, driverAgent as _, superviseRootProfile as a, GraphRouteError as b, supervisorAgentWithTestBrain as c, rootStreamToolSpans as d, runToolSpans as f, coordinationControlToolNames as g, serveCoordinationMcp as h, profileGuidanceComposer as i, delegatesWorkerBriefPrompt as j, analyzesFindingsReportPrompt as k, ASSISTANT_REASONING_SPAN as l, composeReentryTask as m, superviseFleetCapabilities as n, workerFromBackend as o, UNPROVEN_CONTINUITY as p, createSupervisorSpanRecorder as q, superviseWithTestBrain as r, supervisorAgent as s, supervise as t, ASSISTANT_TEXT_SPAN as u, runBrainLoop as v, routeFlowOf as w, createFlowRun as x, createGraphOverlay as y, anyOf as z };
|
|
9401
9425
|
|
|
9402
|
-
//# sourceMappingURL=supervise-
|
|
9426
|
+
//# sourceMappingURL=supervise-BAXUJgwd.js.map
|