@tangle-network/agent-runtime 0.225.6 → 0.228.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-CsfCkAdZ.d.ts → activation-Dv8TBXAS.d.ts} +2 -2
- package/dist/{activation-BOIqqsCw.js → activation-t__E2fFP.js} +2 -2
- package/dist/{activation-BOIqqsCw.js.map → activation-t__E2fFP.js.map} +1 -1
- package/dist/agent.d.ts +1 -1
- package/dist/agent.js +2 -2
- package/dist/{coordination-driver-DxHQLK8i.js → coordination-driver-r9_4mvgK.js} +2 -2
- package/dist/{coordination-driver-DxHQLK8i.js.map → coordination-driver-r9_4mvgK.js.map} +1 -1
- package/dist/{delegate-Dpz_acWb.js → delegate-OUy-TxtQ.js} +2 -2
- package/dist/{delegate-Dpz_acWb.js.map → delegate-OUy-TxtQ.js.map} +1 -1
- package/dist/durable.d.ts +39 -3
- package/dist/durable.js +7 -5
- package/dist/durable.js.map +1 -1
- package/dist/{graph-1QPyAoyr.js → graph-Bfqckohg.js} +3 -3
- package/dist/{graph-1QPyAoyr.js.map → graph-Bfqckohg.js.map} +1 -1
- package/dist/{improvement-cycle-B9gBkr_0.js → improvement-cycle-COOuIQpm.js} +3 -3
- package/dist/{improvement-cycle-B9gBkr_0.js.map → improvement-cycle-COOuIQpm.js.map} +1 -1
- package/dist/{index-ClXIBpKe.d.ts → index-DAIij88v.d.ts} +10 -2
- package/dist/index.d.ts +4 -4
- package/dist/index.js +7 -7
- package/dist/intelligence.d.ts +2 -2
- package/dist/intelligence.js +3 -3
- package/dist/kernel.d.ts +3 -3
- package/dist/kernel.js +8 -8
- package/dist/{loop-runner-bin-BRfsk-9d.d.ts → loop-runner-bin-CN1rstwC.d.ts} +3 -3
- package/dist/{loop-runner-bin-BsgnB2h8.js → loop-runner-bin-DW_8__PB.js} +3 -3
- package/dist/{loop-runner-bin-BsgnB2h8.js.map → loop-runner-bin-DW_8__PB.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 +2 -2
- package/dist/mcp/index.js +4 -4
- package/dist/{provision-supervisor-Dfuc4gK0.js → provision-supervisor-BVglIjhG.js} +3 -3
- package/dist/{provision-supervisor-Dfuc4gK0.js.map → provision-supervisor-BVglIjhG.js.map} +1 -1
- package/dist/{runtime-D7UefZ3u.js → runtime-lysnGswg.js} +8 -8
- package/dist/{runtime-D7UefZ3u.js.map → runtime-lysnGswg.js.map} +1 -1
- package/dist/{server-YytoZ1EN.js → server-BL3RTYqx.js} +3 -3
- package/dist/{server-YytoZ1EN.js.map → server-BL3RTYqx.js.map} +1 -1
- package/dist/{stream-agent-turn-wlsHQiUv.d.ts → stream-agent-turn-Dy-QleSb.d.ts} +22 -2
- package/dist/{structural-rollout-Zog2WEZo.js → structural-rollout-DGsWDP0f.js} +2 -2
- package/dist/{structural-rollout-Zog2WEZo.js.map → structural-rollout-DGsWDP0f.js.map} +1 -1
- package/dist/{supervise-CkqrhpOD.js → supervise-UgmGtrlX.js} +180 -10
- package/dist/supervise-UgmGtrlX.js.map +1 -0
- package/dist/{supervisor-DCQxXRR8.js → supervisor-DBnQuTyJ.js} +62 -1
- package/dist/supervisor-DBnQuTyJ.js.map +1 -0
- package/dist/testing.d.ts +2 -2
- package/dist/testing.js +12 -12
- package/dist/tui/index.d.ts +1 -1
- package/dist/tui/index.js +1 -1
- package/package.json +4 -4
- package/dist/supervise-CkqrhpOD.js.map +0 -1
- package/dist/supervisor-DCQxXRR8.js.map +0 -1
|
@@ -12065,6 +12065,12 @@ function bridgeInferenceMoney(value, field) {
|
|
|
12065
12065
|
* cli-bridge emits each call complete in ONE delta (`{id, name, arguments}` together), so no
|
|
12066
12066
|
* cross-delta argument-fragment assembly is needed; a frame that carries argument bytes without a
|
|
12067
12067
|
* name decodes to nothing rather than to a nameless call.
|
|
12068
|
+
*
|
|
12069
|
+
* Since cli-bridge#227 a harness that knows the outcome reports it SEPARATELY as
|
|
12070
|
+
* `delta.tool_results` (decoded below into `BridgeStreamChunk.toolResults`); the executor surfaces
|
|
12071
|
+
* that as `tool_result` progress and an activity note with a status. The call step itself stays
|
|
12072
|
+
* an instant without status, because the two arrive as distinct facts and joining them into one
|
|
12073
|
+
* span is a trace-source concern this decoder does not own.
|
|
12068
12074
|
*/
|
|
12069
12075
|
function decodeBridgeToolCalls(raw) {
|
|
12070
12076
|
if (!Array.isArray(raw)) return [];
|
|
@@ -12092,6 +12098,32 @@ function decodeBridgeToolCalls(raw) {
|
|
|
12092
12098
|
return steps;
|
|
12093
12099
|
}
|
|
12094
12100
|
/**
|
|
12101
|
+
* Decode `delta.tool_results` into `BridgeToolResult`s. An entry without a name or with a status
|
|
12102
|
+
* outside `completed | error` is dropped rather than guessed, the same stance `decodeBridgeToolCalls`
|
|
12103
|
+
* takes on a nameless call; a bridge that reports an outcome must say whose and which.
|
|
12104
|
+
*/
|
|
12105
|
+
function decodeBridgeToolResults(raw) {
|
|
12106
|
+
if (!Array.isArray(raw)) return [];
|
|
12107
|
+
const results = [];
|
|
12108
|
+
for (const entry of raw) {
|
|
12109
|
+
if (!entry || typeof entry !== "object") continue;
|
|
12110
|
+
const record = entry;
|
|
12111
|
+
const name = record.name;
|
|
12112
|
+
const status = record.status;
|
|
12113
|
+
if (typeof name !== "string" || name.length === 0) continue;
|
|
12114
|
+
if (status !== "completed" && status !== "error") continue;
|
|
12115
|
+
const id = typeof record.id === "string" && record.id.length > 0 ? record.id : void 0;
|
|
12116
|
+
results.push({
|
|
12117
|
+
...id === void 0 ? {} : { id },
|
|
12118
|
+
name,
|
|
12119
|
+
status,
|
|
12120
|
+
...typeof record.output === "string" ? { output: record.output } : {},
|
|
12121
|
+
...typeof record.error === "string" ? { error: record.error } : {}
|
|
12122
|
+
});
|
|
12123
|
+
}
|
|
12124
|
+
return results;
|
|
12125
|
+
}
|
|
12126
|
+
/**
|
|
12095
12127
|
* Parse cli-bridge's OpenAI-compatible SSE stream into normalized chunks. Each
|
|
12096
12128
|
* `data:` line is an OpenAI chat-completion chunk (`choices[].delta`). Every
|
|
12097
12129
|
* run-owned frame, including an id-only comment, is returned so the caller can
|
|
@@ -12186,8 +12218,12 @@ function parseSseFrame(frame) {
|
|
|
12186
12218
|
const choice = parsed.choices?.[0];
|
|
12187
12219
|
const content = choice?.delta?.content ?? choice?.message?.content;
|
|
12188
12220
|
if (typeof content === "string" && content.length > 0) out.content = content;
|
|
12221
|
+
const reasoning = choice?.delta?.reasoning;
|
|
12222
|
+
if (typeof reasoning === "string" && reasoning.length > 0) out.reasoning = reasoning;
|
|
12189
12223
|
const toolCalls = decodeBridgeToolCalls(choice?.delta?.tool_calls);
|
|
12190
12224
|
if (toolCalls.length > 0) out.toolCalls = toolCalls;
|
|
12225
|
+
const toolResults = decodeBridgeToolResults(choice?.delta?.tool_results);
|
|
12226
|
+
if (toolResults.length > 0) out.toolResults = toolResults;
|
|
12191
12227
|
const u = parsed.usage;
|
|
12192
12228
|
if (u) {
|
|
12193
12229
|
const input = optionalBridgeTokenCount(u.prompt_tokens, "prompt_tokens");
|
|
@@ -13992,6 +14028,13 @@ async function* streamBridgeSession(args) {
|
|
|
13992
14028
|
}
|
|
13993
14029
|
};
|
|
13994
14030
|
}
|
|
14031
|
+
if (chunk.reasoning) yield {
|
|
14032
|
+
kind: "progress",
|
|
14033
|
+
progress: {
|
|
14034
|
+
kind: "reasoning_delta",
|
|
14035
|
+
text: chunk.reasoning
|
|
14036
|
+
}
|
|
14037
|
+
};
|
|
13995
14038
|
for (const step of chunk.toolCalls ?? []) {
|
|
13996
14039
|
toolCalls.push({
|
|
13997
14040
|
...step.callId === void 0 ? {} : { id: step.callId },
|
|
@@ -14015,6 +14058,24 @@ async function* streamBridgeSession(args) {
|
|
|
14015
14058
|
}
|
|
14016
14059
|
};
|
|
14017
14060
|
}
|
|
14061
|
+
for (const result of chunk.toolResults ?? []) {
|
|
14062
|
+
observation.activity.push({
|
|
14063
|
+
at: Date.now(),
|
|
14064
|
+
kind: "tool",
|
|
14065
|
+
label: result.name,
|
|
14066
|
+
status: result.status === "completed" ? "ok" : "error",
|
|
14067
|
+
...result.status === "error" && result.error !== void 0 ? { detail: result.error } : {}
|
|
14068
|
+
});
|
|
14069
|
+
yield {
|
|
14070
|
+
kind: "progress",
|
|
14071
|
+
progress: {
|
|
14072
|
+
kind: "tool_result",
|
|
14073
|
+
toolName: result.name,
|
|
14074
|
+
...result.id === void 0 ? {} : { toolCallId: result.id },
|
|
14075
|
+
result: result.status === "completed" ? result.output : { error: result.error }
|
|
14076
|
+
}
|
|
14077
|
+
};
|
|
14078
|
+
}
|
|
14018
14079
|
if (chunk.usage) {
|
|
14019
14080
|
sawTurnTokenUsage = true;
|
|
14020
14081
|
creditProvenance("stream-receipt");
|
|
@@ -23630,4 +23691,4 @@ function isNonEmptySpend(s) {
|
|
|
23630
23691
|
//#endregion
|
|
23631
23692
|
export { cliInPlaceExecutor as $, generateSpanId as $n, runtimeOwnedExecutorProviderEvidence as $r, createCodexRolloutStoreReader as $t, waitUntil as A, sleep as Ai, abortError as An, renderProfileMaterializationIssues as Ar, WORKER_TRACE_PROPAGATION as At, readWorkerInteractiveBinding as B, decodeHarnessUsage as Bi, resolveRedactor as Bn, attestRuntimeOwnedPendingExecutor as Br, AUTHORITY_MARKERS as Bt, scopeOwnerExecutorNodeContext as C, chargedTokens as Ci, sandboxClientAsProvider as Cn, defineProfileMaterializationContract as Cr, BudgetReconcileFault as Ct, pollFor as D, isAbortError$2 as Di, registerRetainedExecutorPreparation as Dn, promptModelProfileMaterialization as Dr, newUsageTotals as Dt, isWaitOutcome as E, hasCompleteCacheBreakdown as Ei, sandboxSessionTraceSource as En, promptControlProfileMaterialization as Er, meterUsageEvent as Et, scopeRetainedOwnerResult as F, withTimeout as Fi, startRetainedRun as Fn, worktreeCliProfileMaterialization as Fr, taskToPrompt as Ft, startRetainedInteractiveRun as G, teardownExecutor as Gi, INTELLIGENCE_WIRE_VERSION as Gn, knownExecutionBindingReceipt as Gr, isPeerMailEnvelope as Gt, workerInteractiveBindingsDir as H, awaitAbortable$1 as Hi, mergeTraceEnv as Hn, authoredProfileDigest as Hr, PEER_MAIL_WIRE_KEY as Ht, interactiveAdmissionSeamKey as I, zeroSpend as Ii, startRetainedRunInEnvironment as In, isNoEntError as Ir, DEFAULT_STALL_AFTER_MS as It, freeSlots as J, providerMessageText as Ji, buildRuntimeEventOtelSpans as Jn, providerAttemptEvidence as Jr, isLiveNodeStatus as Jt, destroyInteractiveEnvironment as K, promptFromAgentTurnInput as Ki, buildLoopOtelSpans as Kn, knownMaterializationReceipt as Kr, peerMailTools as Kt, readWorkerInteractiveAdmissions as L, addResourceSpend as Li, retainedCreateMaterial as Ln, parseCommittedJsonLines as Lr, createActivityLog as Lt, prepareScopeRetainedOwnerTask as M, throwAbort as Mi, runAbortable as Mn, sandboxActProfileMaterialization as Mr, workerTraceEnv as Mt, scopeRetainedOwnerContext as N, throwIfAborted as Ni, reconnectRetainedRun as Nn, unsupportedProfileDimensions as Nr, workerTraceHeaders as Nt, timerAt as O, promptCacheTokenClasses as Oi, retainedExecutorSeamKey as On, promptOnlyProfileMaterialization as Or, spendFromUsageEvents as Ot, scopeRetainedOwnerPriorSpend as P, unmeteredSpend as Pi, recoverRetainedRun as Pn, validateProfileMaterialization as Pr, workerTraceSeamKey as Pt, captureReusableExecutorConfig as Q, flatOtelSpan as Qn, runtimeOwnedExecutorMaterialization as Qr, addHarnessUsage as Qt, workerInteractiveAdmissionFile as R, resourceTelemetry as Ri, defaultRedactor as Rn, prepareJsonlAppend as Rr, readWorkerProgress as Rt, restoreScopeOwnerAcceptedExecution as S, addSpend as Si, resolveAgentEnvironmentProvider as Sn, controlProfileMaterialization as Sr, contentAddress as St, createWaitProbes as T, deleteBoxSafe as Ti, decodeToolPart as Tn, profileMaterializationAxes$1 as Tr, createBudgetPool as Tt, reconnectRetainedInteractiveRun as U, DEFAULT_SUCCESSFUL_SHUTDOWN_MS as Ui, readTraceContextFromEnv as Un, finalizeRuntimeOwnedPendingExecutor as Ur, claimsAuthority as Ut, workerInteractiveBindingFile as V, abortError$2 as Vi, createPropagatingTraceEmitter as Vn, attestRuntimeOwnedScopeOwner as Vr, DEFAULT_PEER_MAIL_LIMITS as Vt, recoverRetainedInteractiveRun as W, armDeadlineTimer as Wi, traceContextToEnv as Wn, inheritRuntimeOwnedExecutorAttestation as Wr, createPeerMailbox as Wt, rollingDispatch as X, createOtelExporter as Xn, runtimeOwnedDriveHarnessProviderEvidence as Xr, bridgeAdmissionRefusal as Xt, queueOf as Y, createOpenInferenceFileExporter as Yn, recordRuntimeOwnedDriveHarnessProviderEvidence as Yr, isTerminalNodeStatus as Yt, bindReusableExecutorExecutionId as Z, exportEvalRuns as Zn, runtimeOwnedExecutorExecutionBinding as Zr, bridgeModelRouteRefusal as Zt, createScope as _, mapSandboxToolEvent as _i, observedModelMatchesDeclared as _n, localHarnessExecutable as _r, WORKER_TOOL_TRACE_SCHEMA_VERSION as _t, pickBestDelivered as a, executableAgentSpecSnapshot as ai, createSandboxForSpec as an, createRuntimeStreamEventCollector as ar, DEFAULT_SANDBOX_STEERING_MAX_TURNS as at, meterRuntimeOwnedProviderAttempt as b, sandboxProgressEvents as bi, providerAsExecutor as bn, AGENT_PROFILE_MATERIALIZATION_AXES as br, parseWorkerToolTraceArtifact as bt, DriverAttemptsExhaustedError as c, projectSandboxOutcome as ci, runAgentRounds as cn, sanitizeRuntimeStreamEvent as cr, FileResultBlobStore as ct, runDriverWithRetry as d, canonicalStreamEventFromSandboxEvent as di, acquireSandbox as dn, captureWorktreeDiff as dr, InMemorySpawnJournal as dt, runtimeOwnedPendingExecutorMaterialization as ei, harnessUsageIsEmpty as en, loopEventToOtelSpan as er, cliWorktreeExecutor as et, driverChild as f, createSandboxToolPartState as fi, assertBoxlessPromptOptions as fn, createWorktree as fr, insideCursorNamespace as ft, beginScopeOwnerAttempt as g, mapSandboxEvent as gi, canonicalObservedModelParts as gn, harnessSupportsReasoningEffort as gr, replaySpawnTree as gt, withDriverExecutor as h, isSandboxTerminalEvent as hi, runBrainLoop as hn, LOCAL_HARNESSES as hr, pendingWaits as ht, collectDelivered as i, executableAgentProfileSnapshot as ii, TERMINAL_DECISIONS as in, createRuntimeEventCollector as ir, createWorktreeCliExecutor as it, consumeScopeRetainedOwnerResult as j, stringifySafe as ji, linkAbort as jn, renderUnsupported as jr, readWorkerTraceContext as jt, validateWaitSpec as k, randomSuffix as ki, RunCancellationReason as kn, promptResourceProfileMaterialization as kr, spendFromUsageTotals as kt, classifyDriverFailure as l, readSandboxOutcome as li, createSandboxLineage as ln, runSettledCommand as lr, FileSpawnJournal as lt, isDriverSpec as m, extractLlmCallEvent as mi, routerBrain as mn, DEFAULT_LOCAL_HARNESS as mr, materializeTreeView as mt, createSupervisor as n, unknownExecutionBindingReceipt as ni, bridgeRuntimeAttachmentsKey as nn, padTraceId as nr, createExecutorRegistry as nt, runFinalizer as o, detachedFrozen as oi, defaultSelectWinner as on, sanitizeAgentRuntimeEvent as or, createSteerableSandboxSession as ot, driverExecutorFactory as p, createSandboxUsageLedger as pi, readPromptOptions as pn, removeWorktree as pr, loadSpawnForest as pt, effectiveConcurrency as q, promptOptionsFromAgentTurnInput as qi, buildLoopSpanNodes as qn, newExecutionAttemptId as qr, peerMailVerbNames as qt, bestDelivered as r, unknownMaterializationReceipt as ri, bridgeStopSignalKey as rn, toOtelAttributes as rr, snapshotExecutorConfig as rt, runTree as s, detachedSnapshot as si, isTerminalDecision as sn, sanitizeKnowledgeReadinessReport as sr, createInPlaceCliExecutor as st, createRootHandle as t, runtimeOwnedScopeOwnerRuntime as ti, readCodexRolloutSession as tn, padSpanId as tr, createExecutor as tt, defaultUnmetContractSteer as u, assertSandboxServedModel as ui, probeSandboxCapabilities as un, runWorktreeHarness as ur, InMemoryResultBlobStore as ut, deriveNodeExecutionIdentity as v, notifySandboxEventObserver as vi, DEFAULT_SANDBOX_IDLE_TIMEOUT_SECONDS as vn, parseCodexTokenUsage as vr, captureWorkerTraceEvidence as vt, settledToIteration as w, cloneSpend as wi, createPushTraceSource as wn, fullProfileMaterialization as wr, assertValidBudget as wt, recordScopeOwnerMaterialization as x, sumSandboxUsage as xi, providerAsSandboxClient as xn, assertProfileMaterialization as xr, workerTraceAnalysisStore as xt, meterRuntimeOwnedAccounting as y, sandboxEventServedBackend as yi, createAgentEnvironmentProviderRegistry as yn, CodexExecutionDiagnosticError as yr, isTraceAnalysisStore as yt, attachWorker as z, withBudgetResources as zi, defaultRedactorIdentityMaterial as zn, writeAllBytes as zr, createInbox as zt };
|
|
23632
23693
|
|
|
23633
|
-
//# sourceMappingURL=supervisor-
|
|
23694
|
+
//# sourceMappingURL=supervisor-DBnQuTyJ.js.map
|