@tangle-network/agent-runtime 0.352.1 → 0.353.2
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-C6zNC2kx.js → activation-BkRaG5t0.js} +2 -2
- package/dist/{activation-C6zNC2kx.js.map → activation-BkRaG5t0.js.map} +1 -1
- package/dist/{activation-BidzGkUQ.d.ts → activation-CFS31SWI.d.ts} +2 -2
- package/dist/agent.d.ts +1 -1
- package/dist/agent.js +2 -2
- package/dist/{coordination-manager-B7QadgrI.js → coordination-manager-BrRkc55z.js} +2 -2
- package/dist/{coordination-manager-B7QadgrI.js.map → coordination-manager-BrRkc55z.js.map} +1 -1
- package/dist/{delegate-CoscoyEo.js → delegate-CAdajnf8.js} +2 -2
- package/dist/{delegate-CoscoyEo.js.map → delegate-CAdajnf8.js.map} +1 -1
- package/dist/durable.d.ts +1 -1
- package/dist/durable.js +3 -3
- package/dist/{graph-mojMML8e.js → graph-CyaIHVGR.js} +4 -4
- package/dist/{graph-mojMML8e.js.map → graph-CyaIHVGR.js.map} +1 -1
- package/dist/{improve-Dm5ZE8mr.js → improve-DwG-yioQ.js} +5 -5
- package/dist/{improve-Dm5ZE8mr.js.map → improve-DwG-yioQ.js.map} +1 -1
- package/dist/index.d.ts +4 -3
- package/dist/index.js +8 -7
- package/dist/index.js.map +1 -1
- package/dist/intelligence.d.ts +2 -2
- package/dist/intelligence.js +8 -7
- package/dist/intelligence.js.map +1 -1
- package/dist/kernel.d.ts +1 -1
- package/dist/kernel.js +9 -9
- package/dist/{loop-runner-DyLD-aNb.d.ts → loop-runner-D9rcTNf2.d.ts} +2 -2
- package/dist/{loop-runner-5cL_vZi0.js → loop-runner-DwS3jARE.js} +2 -2
- package/dist/{loop-runner-5cL_vZi0.js.map → loop-runner-DwS3jARE.js.map} +1 -1
- 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 +4 -4
- package/dist/profiles.d.ts +1 -1
- package/dist/{provision-supervisor-D9pO-iPl.js → provision-supervisor-AEnei2Jq.js} +3 -3
- package/dist/{provision-supervisor-D9pO-iPl.js.map → provision-supervisor-AEnei2Jq.js.map} +1 -1
- package/dist/{runtime-BJPXHWbc.js → runtime-DCYSaYHW.js} +12 -13
- package/dist/{runtime-BJPXHWbc.js.map → runtime-DCYSaYHW.js.map} +1 -1
- package/dist/{search-executor-CQEHMXoT.js → search-executor-B2jc63hZ.js} +9 -8
- package/dist/{search-executor-CQEHMXoT.js.map → search-executor-B2jc63hZ.js.map} +1 -1
- package/dist/{server-U9NGgudQ.js → server-CKBTwWM8.js} +3 -3
- package/dist/{server-U9NGgudQ.js.map → server-CKBTwWM8.js.map} +1 -1
- package/dist/{structural-rollout-wMSxE7bn.js → structural-rollout-rRT3ypqz.js} +2 -2
- package/dist/{structural-rollout-wMSxE7bn.js.map → structural-rollout-rRT3ypqz.js.map} +1 -1
- package/dist/{supervise-CNNhX0ab.js → supervise-B3_wtgHS.js} +12 -15
- package/dist/supervise-B3_wtgHS.js.map +1 -0
- package/dist/{supervisor-rK5Y8en6.js → supervisor-C_sDmX5H.js} +52 -196
- package/dist/supervisor-C_sDmX5H.js.map +1 -0
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +11 -11
- package/dist/tui/index.d.ts +1 -1
- package/dist/tui/index.js +1 -1
- package/dist/{types-0uzVKtFW.d.ts → types-DTHxh4X9.d.ts} +18 -57
- package/package.json +6 -6
- package/dist/supervise-CNNhX0ab.js.map +0 -1
- package/dist/supervisor-rK5Y8en6.js.map +0 -1
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { G as cappedDoublingMs, J as unavailableResumeAt, K as jitteredMs, P as RetainedExecutionPendingError, St as newUsageTotals, T as sha256, Tt as assertValidBudget, V as retainedExecutorSeamKey, Xt as __exportAll, a as isNoEntError, at as executorFailure, b as captureRunWriteContext, c as readCommittedJsonLines, ft as errMessage, g as assertNoSymlinkDescendant, l as upsertCommittedJsonLine, o as prepareJsonlAppend, q as unavailablePauseMs, rt as contentAddress, s as readCommittedJsonFile, tt as detachedSnapshot, u as withJsonlFileLock, wt as spendFromUsageTotals, x as fenceRunWrite, xt as meterUsageEvent, y as writeAtomicDurableFile, z as registerRetainedExecutorPreparation } from "./journal-store-BJPMUydp.js";
|
|
2
|
-
import { $ as abandonScopeRetainedOwnerInvocation, $n as
|
|
2
|
+
import { $ as abandonScopeRetainedOwnerInvocation, $n as CheckUnavailableError, A as noteScopeOwnerPlannedExecution, B as deriveNodeExecutionIdentity, Bn as DriverAttemptsExhaustedError, Br as renderUnsupported, Cn as INBOX_RECEIPT_KEY, F as coordinationProfileToolPrefix, Fr as defineProfileMaterializationContract, Ft as createCodeModeTools, G as meterRuntimeOwnedProviderAttempt, Gn as summarizeDriverAttempts, Hn as abandonablePending, Hr as sandboxProfileMaterialization, I as providerVisibleProfile, In as createActivityLog, Ir as fullProfileMaterialization, J as recordScopeOwnerPause, Jn as SeatChain, K as recordScopeOwnerBarrenPause, Kn as undispatchedCredentialExit, Kr as attestRuntimeOwnedScopeOwner, L as runtimeGraphMetadataKey, Lr as profileMaterializationAxes$1, Lt as toolResultText, M as restoreScopeOwnerAcceptedExecution, Mr as assertProfileMaterialization, N as scopeOwnerExecutorNodeContext, Nt as codeModeArguments, On as PEER_MAIL_WIRE_KEY, P as coordinationMcpAlias, Pr as controlProfileMaterialization, Pt as codeModeModelOutput, Rn as isLiveNodeStatus, Rr as promptControlProfileMaterialization, Rt as createRouterTranscript, Sr as runAbortable, St as snapshotExecutorConfig, Tr as bridgeStopSignalKey, Un as causedByPartialFailure, Ur as unsupportedProfileDimensions, Vn as HarnessTurnFailedError, Vt as resolveAgentEnvironmentProvider, W as meterRuntimeOwnedAccounting, Wn as classifyDriverFailure, Wr as worktreeCliProfileMaterialization, X as scopeRetainedOwnerResourceReader, Xn as authoredSeatStages, Xr as inheritRuntimeOwnedExecutorAttestation, Y as prepareScopeRetainedOwnerSeatSwitch, Yn as SeatChainExhaustedError, Zn as seatExecutionProfile, _n as generateSpanId, a as assertRunParking, ai as runtimeOwnedExecutorProviderEvidence, ar as admitContinuationPolicy, at as scopeRetainedOwnerTurnEnded, br as RunCancellationReason, bt as captureReusableExecutorConfig, c as sleepScopeWait, cn as WORKER_TRACE_PROPAGATION, cr as createContinuationKeeper, ct as noteScopeRetainedOwnerCoordination, d as runFinalizer, dr as bridgeAdmissionRefusal, dt as scopeRetainedOwnerContext, ei as providerAttemptEvidence, en as persistHarnessTranscript, er as gateFactoryOnDeliverable, et as consumeScopeRetainedOwnerResult, f as runTree, fr as bridgeModelRouteRefusal, ft as scopeRetainedOwnerJournalRoot, g as isDriverSpec, h as driverExecutorFactory, hn as createOtelExporter, i as RunParkedError, ii as runtimeOwnedExecutorMaterialization, ir as CONTINUATIONS_DIR, it as beginScopeRetainedOwnerDrive, j as recordScopeOwnerMaterialization, jn as isPeerMailEnvelope, k as beginScopeOwnerAttempt, l as withRunParking, lt as bindScopeRetainedOwnerEnvironmentId, m as driverChild, n as createSupervisor, ni as runtimeOwnedDriveHarnessProviderEvidence, nt as scopeRetainedOwnerPriorSpend, o as bindScopeParkingDrain, oi as runtimeOwnedPendingExecutorMaterialization, or as bestComposite, ot as reconcileScopeRetainedOwnerEnvironment, p as createRootHandle, q as recordScopeOwnerDriverAttempt, qn as upstreamUnavailableSignal, qr as authoredAgentIdentity, ri as runtimeOwnedExecutorExecutionBinding, rt as scopeRetainedOwnerResult, si as runtimeOwnedScopeOwnerRuntime, sr as checkVerdictOf, st as scopeRetainedOwnerRestorePoint, ti as recordRuntimeOwnedDriveHarnessProviderEvidence, tn as readHarnessTranscript, tt as prepareScopeRetainedOwnerTask, u as bestDelivered, ut as bindScopeRetainedOwnerProvider, wn as createInbox, wr as bridgeRuntimeAttachmentsKey, x as parseWorkerToolTraceArtifact, xr as linkAbort, xt as createExecutor, yt as bindReusableExecutorExecutionId, z as assertRecursiveReservationPolicy, zn as isTerminalNodeStatus, zr as promptModelProfileMaterialization, zt as routerBrain } from "./supervisor-C_sDmX5H.js";
|
|
3
3
|
import { f as RuntimeRunStateError, i as ConfigError, m as ValidationError } from "./errors-AzSuGI23.js";
|
|
4
4
|
import { B as teardownExecutor, C as withTimeout, E as addResourceSpend, N as DEFAULT_SUCCESSFUL_SHUTDOWN_MS, O as resourceTelemetry, R as isDeadlineAbortReason, S as unmeteredSpend, V as teardownSurfaces, c as errorMessage, f as isAsyncIterable, i as chargedTokens, k as withBudgetResources, m as promptCacheTokenClasses, n as addSpend, v as sleep, w as zeroSpend } from "./util-ebWMWzY0.js";
|
|
5
5
|
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-C-RGAUW4.js";
|
|
6
6
|
import { t as composeRuntimeHooks } from "./runtime-hooks-CsW2pfFk.js";
|
|
7
|
-
import { c as createCancelAcknowledger, d as normalizeAnalyzeOnSettle, f as coordinationVerbNames, g as withRunContext, h as createInMemoryRunContext, l as createSteerAcknowledger, m as createFileRunContext, n as createCoordinationToolsForManager, o as resolveJsonPointer, p as safeJsonText, t as createCoordinationTools, u as budgetOverspendText } from "./coordination-manager-
|
|
7
|
+
import { c as createCancelAcknowledger, d as normalizeAnalyzeOnSettle, f as coordinationVerbNames, g as withRunContext, h as createInMemoryRunContext, l as createSteerAcknowledger, m as createFileRunContext, n as createCoordinationToolsForManager, o as resolveJsonPointer, p as safeJsonText, t as createCoordinationTools, u as budgetOverspendText } from "./coordination-manager-BrRkc55z.js";
|
|
8
8
|
import { c as writeRunCancellation, i as readRunCancellation, r as readRunCancelRequest, s as watchRunCancellation, t as applyRunCancellation } from "./run-cancellation-CoJRKvih.js";
|
|
9
9
|
import { n as createStdioToolServer, t as PROTOCOL_VERSION } from "./tool-server-CZWd_Opp.js";
|
|
10
|
+
import { ATTR, agentIdentityAttributes } from "@tangle-network/agent-trace-contract";
|
|
10
11
|
import { agentProfileSchema, canonicalAgentProfileDigest, canonicalCandidateDigest, canonicalCandidateJson, validateAgentProfileSecurity } from "@tangle-network/agent-interface";
|
|
11
12
|
import { toolSpansToTraceAnalysisStore } from "@tangle-network/agent-eval";
|
|
12
13
|
import { isRecord } from "@tangle-network/agent-core";
|
|
@@ -17,7 +18,7 @@ import { dirname, join, resolve } from "node:path";
|
|
|
17
18
|
import { mkdir, readFile, readdir } from "node:fs/promises";
|
|
18
19
|
import { isMaterializerHarness } from "@tangle-network/agent-profile-materialize";
|
|
19
20
|
import { createServer } from "node:http";
|
|
20
|
-
import {
|
|
21
|
+
import { msToUnixNano, toOtlpAttributes } from "@tangle-network/agent-trace-contract/otlp";
|
|
21
22
|
import { withProfileKb } from "@tangle-network/agent-interface/profile-kb";
|
|
22
23
|
// src/runtime/supervise/supervise-identity.ts
|
|
23
24
|
function externalExecutionId(kind, identity) {
|
|
@@ -396,9 +397,9 @@ function otelSpan(traceId, spec) {
|
|
|
396
397
|
...spec.parentSpanId ? { parentSpanId: spec.parentSpanId } : {},
|
|
397
398
|
name: spec.name,
|
|
398
399
|
kind: 1,
|
|
399
|
-
startTimeUnixNano:
|
|
400
|
-
endTimeUnixNano:
|
|
401
|
-
attributes:
|
|
400
|
+
startTimeUnixNano: msToUnixNano(spec.startMs),
|
|
401
|
+
endTimeUnixNano: msToUnixNano(Math.max(spec.startMs, spec.endMs)),
|
|
402
|
+
attributes: toOtlpAttributes(spec.attrs),
|
|
402
403
|
status: {
|
|
403
404
|
code: spec.status,
|
|
404
405
|
...spec.message ? { message: spec.message } : {}
|
|
@@ -741,9 +742,6 @@ function normalizeTraceId(traceId, runId, namespace) {
|
|
|
741
742
|
const source = traceId ?? (namespace === void 0 ? runId : `${namespace}\u0000${runId}`);
|
|
742
743
|
return contentAddress(source).slice(7, 39);
|
|
743
744
|
}
|
|
744
|
-
function msToNano(ms) {
|
|
745
|
-
return (BigInt(Number.isFinite(ms) ? Math.floor(ms) : 0) * 1000000n).toString();
|
|
746
|
-
}
|
|
747
745
|
function record$1(value) {
|
|
748
746
|
return isRecord(value) ? value : {};
|
|
749
747
|
}
|
|
@@ -5118,10 +5116,9 @@ const DEFAULT_MAX_BACKOFF_MS$1 = 3e4;
|
|
|
5118
5116
|
const DEFAULT_TRANSIENT_OUTAGE_MS = 9e5;
|
|
5119
5117
|
const BARREN_PAUSE_FIRST_MS = 3e5;
|
|
5120
5118
|
const BARREN_PAUSE_MAX_MS = 36e5;
|
|
5121
|
-
/** The stops an opted-in root pauses on (`DriverRetryRun.stopPause`).
|
|
5122
|
-
* declared
|
|
5119
|
+
/** The recoverable stops an opted-in root pauses on (`DriverRetryRun.stopPause`). Terminal errors,
|
|
5120
|
+
* completion, cancellation and a declared deadline end the run; `supervise()` refuses `driverRetry.pauseRootStops` beside `retry-disabled`. */
|
|
5123
5121
|
const PAUSED_STOPS = /* @__PURE__ */ new Set([
|
|
5124
|
-
"terminal-error",
|
|
5125
5122
|
"no-progress",
|
|
5126
5123
|
"max-attempts",
|
|
5127
5124
|
"repeated-failure",
|
|
@@ -5751,8 +5748,8 @@ var DriverRetryLoop = class {
|
|
|
5751
5748
|
* outage cut off together do not re-enter together.
|
|
5752
5749
|
*
|
|
5753
5750
|
* STOP-PAUSE. A run started with `driverRetry.pauseRootStops` hands its ROOT a `stopPause`;
|
|
5754
|
-
* no other manager gets one.
|
|
5755
|
-
* `
|
|
5751
|
+
* no other manager gets one. Terminal refusals end the run immediately; the remaining stops wait and alarm:
|
|
5752
|
+
* `no-progress`, `max-attempts`, `repeated-failure`, `pending-unresolved` and
|
|
5756
5753
|
* `budget-exhausted` each emit one record with `replacesStop` and pause 5 minutes, doubling per
|
|
5757
5754
|
* stop-pause in a row up to 60, never past a declared deadline and not jittered. An attempt that
|
|
5758
5755
|
* made progress resets the streak. A cancel ends the pause and settles the run; a root steer ends
|
|
@@ -10210,4 +10207,4 @@ function superviseWithContext(profile, task, opts, brain) {
|
|
|
10210
10207
|
}
|
|
10211
10208
|
export { delegatesWorkerBriefPrompt as $, graphRouteWhenSchema as A, runtimeFlowBrain as B, storedGraphDigests as C, compileGraphParameters as D, bindGraphParameters as E, composeReentryTask as F, journaledGateDecider as G, GraphRouteError as H, serveCoordinationMcp as I, defaultEdgeTraversalCap as J, routeFlowOf as K, coordinationControlToolNames as L, supervisorAgent as M, supervisorAgentWithTestBrain as N, graphTriggerBindingsSchema as O, UNPROVEN_CONTINUITY as P, createPromptRegistry as Q, driverAgent as R, recordStoredGraphRun as S, assertGraphTriggerBindings as T, createFlowRun as U, createGraphOverlay as V, flowRootProfile as W, validateGraphTopology as X, graphRootProfile as Y, analyzesFindingsReportPrompt as Z, listGraphRuns as _, createSupervisorSpanRecorder as _t, superviseRootProfile as a, promptHandle as at, pickBestGraph as b, retryPreSpawnRefusals as c, noProgressFor as ct, graphCorpusSummary as d, areaUnderCurve as dt, dumbContinuationFailPrompt as et, graphDigest as f, bestSoFar as ft, graph_registry_exports as g, readRootStreamReceipt as gt, graphRunsFor as h, readRootStream as ht, profileGuidanceComposer as i, naiveContinuationPrompt as it, workerFromBackend as j, graphFileSchema as k, withWorkerSpawnRetry as l, plateau as lt, graphRegistry as m, renderAnytimeTable as mt, superviseFleetCapabilities as n, formatPromptHandle as nt, isPreSpawnExecutorFailure as o, allWorkersStalled as ot, graphFromStored as p, plateauLength as pt, validateFlowGraph as q, superviseWithTestBrain as r, kernelPromptRegistry as rt, resolveWorkerSpawnRetry as s, anyOf as st, supervise as t, dumbContinuationPassPrompt as tt, digestOfGraph as u, anytimeReport as ut, loadGraph as v, taskShapeDigest as w, recordGraphRun as x, lookupGraph as y, runBrainLoop as z };
|
|
10212
10209
|
|
|
10213
|
-
//# sourceMappingURL=supervise-
|
|
10210
|
+
//# sourceMappingURL=supervise-B3_wtgHS.js.map
|