@tangle-network/agent-runtime 0.279.0 → 0.280.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/dist/{activation-BkUdrvqh.js → activation-C97Cq4Q_.js} +2 -2
- package/dist/{activation-BkUdrvqh.js.map → activation-C97Cq4Q_.js.map} +1 -1
- package/dist/{activation-B5NExoOz.d.ts → activation-y-60DXF4.d.ts} +11 -8
- package/dist/agent.js +2 -2
- package/dist/{coordination-driver-BBL_OgRw.js → coordination-driver-CraAV-22.js} +2 -2
- package/dist/{coordination-driver-BBL_OgRw.js.map → coordination-driver-CraAV-22.js.map} +1 -1
- package/dist/{delegate-CZc7B-Tl.js → delegate-W1Ws_Wp0.js} +2 -2
- package/dist/{delegate-CZc7B-Tl.js.map → delegate-W1Ws_Wp0.js.map} +1 -1
- package/dist/durable.js +2 -2
- package/dist/{graph-Ci8Ufs_f.js → graph-DlL_X4HX.js} +4 -4
- package/dist/{graph-Ci8Ufs_f.js.map → graph-DlL_X4HX.js.map} +1 -1
- package/dist/{improvement-cycle-Bi43xCVa.js → improvement-cycle-DXMU-2Y4.js} +6 -6
- package/dist/improvement-cycle-DXMU-2Y4.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +7 -7
- package/dist/intelligence.d.ts +1 -1
- package/dist/intelligence.js +3 -3
- package/dist/kernel.js +8 -8
- package/dist/{loop-runner-bin-C9FJshTP.js → loop-runner-bin-CT_-jSSg.js} +3 -3
- package/dist/{loop-runner-bin-C9FJshTP.js.map → loop-runner-bin-CT_-jSSg.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-BvnihiyB.js → provision-supervisor-BEmE95Mt.js} +3 -3
- package/dist/{provision-supervisor-BvnihiyB.js.map → provision-supervisor-BEmE95Mt.js.map} +1 -1
- package/dist/{runtime-DsAHXig2.js → runtime-Du7j-nDD.js} +8 -8
- package/dist/{runtime-DsAHXig2.js.map → runtime-Du7j-nDD.js.map} +1 -1
- package/dist/{server-Dyc1zvug.js → server-DZvGznAn.js} +3 -3
- package/dist/{server-Dyc1zvug.js.map → server-DZvGznAn.js.map} +1 -1
- package/dist/{structural-rollout-D-0X6lsU.js → structural-rollout-Cl4TvomY.js} +2 -2
- package/dist/{structural-rollout-D-0X6lsU.js.map → structural-rollout-Cl4TvomY.js.map} +1 -1
- package/dist/{supervise-DBQdrp7H.js → supervise-CWrLq2-F.js} +3 -3
- package/dist/{supervise-DBQdrp7H.js.map → supervise-CWrLq2-F.js.map} +1 -1
- package/dist/{supervisor-DtlPj9me.js → supervisor-BXXjVCbW.js} +46 -45
- package/dist/supervisor-BXXjVCbW.js.map +1 -0
- package/dist/testing.js +12 -12
- package/dist/tui/index.js +1 -1
- package/package.json +4 -4
- package/dist/improvement-cycle-Bi43xCVa.js.map +0 -1
- package/dist/supervisor-DtlPj9me.js.map +0 -1
|
@@ -5840,6 +5840,48 @@ function generateSpanId() {
|
|
|
5840
5840
|
return Array.from(bytes).map((b) => b.toString(16).padStart(2, "0")).join("");
|
|
5841
5841
|
}
|
|
5842
5842
|
//#endregion
|
|
5843
|
+
//#region src/redact.ts
|
|
5844
|
+
/**
|
|
5845
|
+
* Redaction for values that may leave the Runtime process. The built-in
|
|
5846
|
+
* redactor is agent-eval's redaction core (`@tangle-network/agent-eval/traces`,
|
|
5847
|
+
* default profile): credentials found by field name or value shape are
|
|
5848
|
+
* replaced whole, email, card, SSN and phone values in place, and token counts
|
|
5849
|
+
* such as `inputTokens` or `max_tokens` are kept. A customer with
|
|
5850
|
+
* domain-specific PII supplies their own `redact` hook.
|
|
5851
|
+
*
|
|
5852
|
+
* This is narrower than `src/sanitize.ts`, which drops fields of the runtime's
|
|
5853
|
+
* *event envelope* unless the caller opts in: here the value is opaque customer
|
|
5854
|
+
* payload, so the scrub is value-shaped, not schema-shaped.
|
|
5855
|
+
*
|
|
5856
|
+
* @experimental
|
|
5857
|
+
*/
|
|
5858
|
+
/**
|
|
5859
|
+
* The built-in redactor. Cycle-safe, depth-bounded and total: it never throws
|
|
5860
|
+
* on customer input and never mutates it.
|
|
5861
|
+
*/
|
|
5862
|
+
function defaultRedactor(value) {
|
|
5863
|
+
return redact(value).value;
|
|
5864
|
+
}
|
|
5865
|
+
/** Stable identity input for saved work that depends on built-in redaction behavior. */
|
|
5866
|
+
function defaultRedactorIdentityMaterial() {
|
|
5867
|
+
return {
|
|
5868
|
+
core: "@tangle-network/agent-eval/traces redact",
|
|
5869
|
+
profile: "default",
|
|
5870
|
+
version: REDACTION_VERSION$1
|
|
5871
|
+
};
|
|
5872
|
+
}
|
|
5873
|
+
/**
|
|
5874
|
+
* Resolve the redactor a client uses. A caller-supplied hook handles
|
|
5875
|
+
* domain-specific values first, then the built-in scrubber still removes
|
|
5876
|
+
* credentials and personal data. Returning `false` is the explicit opt-out for
|
|
5877
|
+
* already-reviewed public values.
|
|
5878
|
+
*/
|
|
5879
|
+
function resolveRedactor(redact) {
|
|
5880
|
+
if (redact === false) return (value) => value;
|
|
5881
|
+
if (!redact) return defaultRedactor;
|
|
5882
|
+
return (value) => defaultRedactor(redact(value));
|
|
5883
|
+
}
|
|
5884
|
+
//#endregion
|
|
5843
5885
|
//#region src/mcp/trace-propagation.ts
|
|
5844
5886
|
/**
|
|
5845
5887
|
*
|
|
@@ -5905,6 +5947,7 @@ function readTraceContextFromEnv(env = process.env) {
|
|
|
5905
5947
|
*/
|
|
5906
5948
|
function createPropagatingTraceEmitter(ctx) {
|
|
5907
5949
|
const exporter = createOtelExporter();
|
|
5950
|
+
const redactor = resolveRedactor(void 0);
|
|
5908
5951
|
const buffers = /* @__PURE__ */ new Map();
|
|
5909
5952
|
return {
|
|
5910
5953
|
emitter: { emit(event) {
|
|
@@ -5915,7 +5958,7 @@ function createPropagatingTraceEmitter(ctx) {
|
|
|
5915
5958
|
if (event.kind === "loop.ended") {
|
|
5916
5959
|
const events = buffers.get(event.runId) ?? [event];
|
|
5917
5960
|
buffers.delete(event.runId);
|
|
5918
|
-
for (const span of buildLoopOtelSpans(events, ctx.traceId, ctx.parentSpanId)) exporter.exportSpan(ctx.unpropagated === true ? {
|
|
5961
|
+
for (const span of buildLoopOtelSpans(events, ctx.traceId, ctx.parentSpanId, redactor)) exporter.exportSpan(ctx.unpropagated === true ? {
|
|
5919
5962
|
...span,
|
|
5920
5963
|
attributes: [...span.attributes ?? [], {
|
|
5921
5964
|
key: "tangle.trace.unpropagated",
|
|
@@ -6556,48 +6599,6 @@ function publicCreateOptions(create) {
|
|
|
6556
6599
|
};
|
|
6557
6600
|
}
|
|
6558
6601
|
//#endregion
|
|
6559
|
-
//#region src/redact.ts
|
|
6560
|
-
/**
|
|
6561
|
-
* Redaction for values that may leave the Runtime process. The built-in
|
|
6562
|
-
* redactor is agent-eval's redaction core (`@tangle-network/agent-eval/traces`,
|
|
6563
|
-
* default profile): credentials found by field name or value shape are
|
|
6564
|
-
* replaced whole, email, card, SSN and phone values in place, and token counts
|
|
6565
|
-
* such as `inputTokens` or `max_tokens` are kept. A customer with
|
|
6566
|
-
* domain-specific PII supplies their own `redact` hook.
|
|
6567
|
-
*
|
|
6568
|
-
* This is narrower than `src/sanitize.ts`, which drops fields of the runtime's
|
|
6569
|
-
* *event envelope* unless the caller opts in: here the value is opaque customer
|
|
6570
|
-
* payload, so the scrub is value-shaped, not schema-shaped.
|
|
6571
|
-
*
|
|
6572
|
-
* @experimental
|
|
6573
|
-
*/
|
|
6574
|
-
/**
|
|
6575
|
-
* The built-in redactor. Cycle-safe, depth-bounded and total: it never throws
|
|
6576
|
-
* on customer input and never mutates it.
|
|
6577
|
-
*/
|
|
6578
|
-
function defaultRedactor(value) {
|
|
6579
|
-
return redact(value).value;
|
|
6580
|
-
}
|
|
6581
|
-
/** Stable identity input for saved work that depends on built-in redaction behavior. */
|
|
6582
|
-
function defaultRedactorIdentityMaterial() {
|
|
6583
|
-
return {
|
|
6584
|
-
core: "@tangle-network/agent-eval/traces redact",
|
|
6585
|
-
profile: "default",
|
|
6586
|
-
version: REDACTION_VERSION$1
|
|
6587
|
-
};
|
|
6588
|
-
}
|
|
6589
|
-
/**
|
|
6590
|
-
* Resolve the redactor a client uses. A caller-supplied hook handles
|
|
6591
|
-
* domain-specific values first, then the built-in scrubber still removes
|
|
6592
|
-
* credentials and personal data. Returning `false` is the explicit opt-out for
|
|
6593
|
-
* already-reviewed public values.
|
|
6594
|
-
*/
|
|
6595
|
-
function resolveRedactor(redact) {
|
|
6596
|
-
if (redact === false) return (value) => value;
|
|
6597
|
-
if (!redact) return defaultRedactor;
|
|
6598
|
-
return (value) => defaultRedactor(redact(value));
|
|
6599
|
-
}
|
|
6600
|
-
//#endregion
|
|
6601
6602
|
//#region src/runtime/supervise/abortable.ts
|
|
6602
6603
|
/** Provenance of an explicit cancellation, preserved through every abort link. */
|
|
6603
6604
|
var RunCancellationReason = class extends Error {
|
|
@@ -28232,6 +28233,6 @@ function isNonEmptySpend(s) {
|
|
|
28232
28233
|
return s.iterations > 0 || s.tokens.input > 0 || s.tokens.output > 0 || s.usd > 0 || s.ms > 0 || s.tokensKnown === false || s.usdKnown === false || Object.values(s.resources ?? {}).some((resource) => resource.amount > 0 || !resource.known);
|
|
28233
28234
|
}
|
|
28234
28235
|
//#endregion
|
|
28235
|
-
export { bindScopeRetainedOwnerProvider as $, detachedSnapshot as $i, LEAF_CONTINUATION_TASK as $n, runWorktreeHarness as $r, parseWorkerToolTraceArtifact as $t, driverExecutorFactory as A, resourceTelemetry as Aa, readCommittedJsonLines as Ai, bridgeAdmissionRefusal as An,
|
|
28236
|
+
export { bindScopeRetainedOwnerProvider as $, detachedSnapshot as $i, LEAF_CONTINUATION_TASK as $n, runWorktreeHarness as $r, parseWorkerToolTraceArtifact as $t, driverExecutorFactory as A, resourceTelemetry as Aa, readCommittedJsonLines as Ai, bridgeAdmissionRefusal as An, mergeTraceEnv as Ar, createExecutor as At, recordScopeOwnerMaterialization as B, promptOptionsFromAgentTurnInput as Ba, providerAttemptEvidence as Bi, defaultSelectWinner as Bn, createOtelExporter as Br, InMemoryResultBlobStore as Bt, createContinuationKeeper as C, stringifySafe as Ca, sandboxActProfileMaterialization as Ci, createPeerMailbox as Cn, runAbortable as Cr, freeSlots as Ct, passedItems as D, withTimeout as Da, isNoEntError as Di, isLiveNodeStatus as Dn, readHarnessTranscript as Dr, captureReusableExecutorConfig as Dt, failedItems as E, unmeteredSpend as Ea, worktreeCliProfileMaterialization as Ei, peerMailVerbNames as En, persistHarnessTranscript as Er, bindReusableExecutorExecutionId as Et, beginScopeOwnerAttempt as F, DEFAULT_SUCCESSFUL_SHUTDOWN_MS as Fa, finalizeRuntimeOwnedPendingExecutor as Fi, readCodexRolloutSession as Fn, resolveRedactor as Fr, createSteerableSandboxSession as Ft, createWorkerSlots as G, runtimeOwnedExecutorProviderEvidence as Gi, acquireSandbox as Gn, padTraceId as Gr, insideCursorNamespace as Gt, restoreScopeOwnerAcceptedExecution as H, runtimeOwnedDriveHarnessProviderEvidence as Hi, runAgentRounds as Hn, generateSpanId as Hr, SpawnEventIndex as Ht, createScope as I, armDeadlineTimer as Ia, inheritRuntimeOwnedExecutorAttestation as Ii, bridgeRuntimeAttachmentsKey as In, buildLoopOtelSpans as Ir, createRouterTranscript as It, pollFor as J, unknownExecutionBindingReceipt as Ji, routerBrain as Jn, createRuntimeStreamEventCollector as Jr, pendingWaits as Jt, createWaitProbes as K, runtimeOwnedPendingExecutorMaterialization as Ki, assertBoxlessPromptOptions as Kn, toOtelAttributes as Kr, loadSpawnForest as Kt, deriveNodeExecutionIdentity as L, teardownExecutor as La, knownExecutionBindingReceipt as Li, bridgeStopSignalKey as Ln, buildLoopSpanNodes as Lr, createInPlaceCliExecutor as Lt, withDriverExecutor as M, decodeHarnessUsage as Ma, attestRuntimeOwnedPendingExecutor as Mi, addHarnessUsage as Mn, traceContextToEnv as Mr, snapshotExecutorConfig as Mt, SUBTREE_RESULT_LIMIT as N, abortError$2 as Na, attestRuntimeOwnedScopeOwner as Ni, createCodexRolloutStoreReader as Nn, defaultRedactor as Nr, createWorktreeCliExecutor as Nt, verdictFromJudgeScore as O, zeroSpend as Oa, parseCommittedJsonLines as Oi, isTerminalNodeStatus as On, contentAddress as Or, cliInPlaceExecutor as Ot, assertRecursiveReservationPolicy as P, awaitAbortable$1 as Pa, authoredProfileDigest as Pi, harnessUsageIsEmpty as Pn, defaultRedactorIdentityMaterial as Pr, DEFAULT_SANDBOX_STEERING_MAX_TURNS as Pt, bindScopeRetainedOwnerEnvironmentId as Q, detachedFrozen as Qi, DEFAULT_SANDBOX_IDLE_TIMEOUT_SECONDS as Qn, runSettledCommand as Qr, isTraceAnalysisStore as Qt, meterRuntimeOwnedAccounting as R, teardownSurfaces as Ra, knownMaterializationReceipt as Ri, TERMINAL_DECISIONS as Rn, buildRuntimeEventOtelSpans as Rr, FileResultBlobStore as Rt, composeContinuationNote as S, sleep as Sa, renderUnsupported as Si, claimsAuthority as Sn, linkAbort as Sr, startRetainedInteractiveRun as St, expandQuestions as T, throwIfAborted as Ta, validateProfileMaterialization as Ti, peerMailTools as Tn, harnessTranscriptArtifact as Tr, rollingDispatch as Tt, scopeOwnerExecutorNodeContext as U, runtimeOwnedExecutorExecutionBinding as Ui, createSandboxLineage as Un, loopEventToOtelSpan as Ur, assertContentAddress as Ut, recordScopeOwnerPause as V, providerMessageText as Va, recordRuntimeOwnedDriveHarnessProviderEvidence as Vi, isTerminalDecision as Vn, flatOtelSpan as Vr, InMemorySpawnJournal as Vt, settledToIteration as W, runtimeOwnedExecutorMaterialization as Wi, probeSandboxCapabilities as Wn, padSpanId as Wr, encodeResultBlob as Wt, validateWaitSpec as X, executableAgentProfileSnapshot as Xi, canonicalObservedModelParts as Xn, sanitizeKnowledgeReadinessReport as Xr, WORKER_TOOL_TRACE_SCHEMA_VERSION as Xt, timerAt as Y, unknownMaterializationReceipt as Yi, runBrainLoop as Yn, sanitizeAgentRuntimeEvent as Yr, replaySpawnTree as Yt, waitUntil as Z, executableAgentSpecSnapshot as Zi, observedModelMatchesDeclared as Zn, sanitizeRuntimeStreamEvent as Zr, captureWorkerTraceEvidence as Zt, CheckUnavailableError as _, deleteBoxSafe as _a, promptControlProfileMaterialization as _i, readWorkerProgress as _n, retainedCreateMaterial as _r, readWorkerInteractiveBinding as _t, collectDelivered as a, createSandboxUsageLedger as aa, harnessInvocation as ai, meterUsageEvent as an, unavailablePauseMs as ar, scopeRetainedOwnerPriorSpend as at, bestComposite as b, promptCacheTokenClasses as ba, promptResourceProfileMaterialization as bi, DEFAULT_PEER_MAIL_LIMITS as bn, RunCancellationReason as br, reconnectRetainedInteractiveRun as bt, runTree as c, mapSandboxEvent as ca, parseCodexTokenUsage as ci, spendFromUsageTotals as cn, decodeToolPart as cr, scopeRetainedOwnerResult as ct, classifyDriverFailure as d, sandboxEventServedBackend as da, AGENT_PROFILE_MATERIALIZATION_AXES as di, workerTraceEnv as dn, retainedExecutorSeamKey as dr, hostDirectoryReader as dt, projectSandboxOutcome as ea, captureWorktreeDiff as ei, workerTraceAnalysisStore as en, createAgentEnvironmentProviderRegistry as er, consumeScopeRetainedOwnerResult as et, runDriverWithRetry as f, sandboxProgressEvents as fa, assertProfileMaterialization as fi, workerTraceHeaders as fn, errMessage as fr, resolveSpawnResourcePaths as ft, CONTINUATION_FACTS as g, cloneSpend as ga, profileMaterializationAxes$1 as gi, createActivityLog as gn, startRetainedRunInEnvironment as gr, attachWorker as gt, CONTINUATIONS_DIR as h, chargedTokens as ha, fullProfileMaterialization as hi, DEFAULT_STALL_AFTER_MS as hn, startRetainedRun as hr, workerInteractiveAdmissionFile as ht, bestDelivered as i, createSandboxToolPartState as ia, LOCAL_HARNESSES as ii, createBudgetPool as in, sandboxClientAsProvider as ir, scopeRetainedOwnerContext as it, isDriverSpec as j, withBudgetResources as ja, writeAllBytes as ji, bridgeModelRouteRefusal as jn, readTraceContextFromEnv as jr, createExecutorRegistry as jt, driverChild as k, addResourceSpend as ka, prepareJsonlAppend as ki, executorFailure as kn, createPropagatingTraceEmitter as kr, cliWorktreeExecutor as kt, DriverAttemptsExhaustedError as l, mapSandboxToolEvent as la, CodexExecutionDiagnosticError as li, WORKER_TRACE_PROPAGATION as ln, sandboxSessionTraceSource as lr, SPAWN_RESOURCE_PATH_MAX_BYTES as lt, upstreamUnavailableSignal as m, addSpend as ma, defineProfileMaterializationContract as mi, taskToPrompt as mn, recoverRetainedRun as mr, readWorkerInteractiveAdmissions as mt, createRootHandle as n, assertSandboxServedModel as na, removeWorktree as ni, ReservationWaitRefused as nn, providerAsSandboxClient as nr, prepareScopeRetainedOwnerTask as nt, pickBestDelivered as o, extractLlmCallEvent as oa, harnessSupportsReasoningEffort as oi, newUsageTotals as on, unavailableSignalOfFailure as or, scopeRetainedOwnerResourceReader as ot, summarizeDriverAttempts as p, sumSandboxUsage as pa, controlProfileMaterialization as pi, workerTraceSeamKey as pn, reconnectRetainedRun as pr, interactiveAdmissionSeamKey as pt, isWaitOutcome as q, runtimeOwnedScopeOwnerRuntime as qi, readPromptOptions as qn, createRuntimeEventCollector as qr, materializeTreeView as qt, createSupervisor as r, canonicalStreamEventFromSandboxEvent as ra, DEFAULT_LOCAL_HARNESS as ri, assertValidBudget as rn, resolveAgentEnvironmentProvider as rr, reconcileScopeRetainedOwnerEnvironment as rt, runFinalizer as s, isSandboxTerminalEvent as sa, localHarnessExecutable as si, spendFromUsageEvents as sn, createPushTraceSource as sr, scopeRetainedOwnerRestorePoint as st, DEFAULT_MAX_DEPTH as t, readSandboxOutcome as ta, createWorktree as ti, BudgetReconcileFault as tn, providerAsExecutor as tr, noteScopeRetainedOwnerCoordination as tt, HarnessTurnFailedError as u, notifySandboxEventObserver as ua, terminateProcessTreeAndConfirm as ui, readWorkerTraceContext as un, registerRetainedExecutorPreparation as ur, environmentReader as ut, admitContinuationPolicy as v, hasCompleteCacheBreakdown as va, promptModelProfileMaterialization as vi, createInbox as vn, destroyInteractiveEnvironment as vr, workerInteractiveBindingFile as vt, distillFindings as w, throwAbort as wa, unsupportedProfileDimensions as wi, isPeerMailEnvelope as wn, captureHarnessTranscript as wr, queueOf as wt, checkVerdictOf as x, randomSuffix as xa, renderProfileMaterializationIssues as xi, PEER_MAIL_WIRE_KEY as xn, abortError as xr, recoverRetainedInteractiveRun as xt, admitFinding as y, isAbortError$2 as ya, promptOnlyProfileMaterialization as yi, AUTHORITY_MARKERS as yn, environmentGone as yr, workerInteractiveBindingsDir as yt, meterRuntimeOwnedProviderAttempt as z, promptFromAgentTurnInput as za, newExecutionAttemptId as zi, createSandboxForSpec as zn, createOpenInferenceFileExporter as zr, FileSpawnJournal as zt };
|
|
28236
28237
|
|
|
28237
|
-
//# sourceMappingURL=supervisor-
|
|
28238
|
+
//# sourceMappingURL=supervisor-BXXjVCbW.js.map
|