@tangle-network/agent-runtime 0.179.0 → 0.180.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-C-FAeybF.js → activation-BNd8DB7m.js} +2 -2
- package/dist/{activation-C-FAeybF.js.map → activation-BNd8DB7m.js.map} +1 -1
- package/dist/agent.d.ts +1 -1
- package/dist/agent.js +2 -2
- package/dist/{authoring-kLYzRjsB.js → authoring-UTj7_GAd.js} +2 -2
- package/dist/{authoring-kLYzRjsB.js.map → authoring-UTj7_GAd.js.map} +1 -1
- package/dist/conversation.d.ts +1 -1
- package/dist/{coordination-driver-BeLF1j7n.js → coordination-driver-CZdORo2F.js} +2 -2
- package/dist/{coordination-driver-BeLF1j7n.js.map → coordination-driver-CZdORo2F.js.map} +1 -1
- package/dist/durable.d.ts +2 -2
- package/dist/durable.js +1 -1
- package/dist/{environment-provider-BGCU0IRa.d.ts → environment-provider-BG0Lll6Y.d.ts} +2 -2
- package/dist/environment-provider.d.ts +1 -1
- package/dist/{graph-CZFWujWS.js → graph-lskY1sph.js} +2 -2
- package/dist/{graph-CZFWujWS.js.map → graph-lskY1sph.js.map} +1 -1
- package/dist/graph.d.ts +3 -3
- package/dist/graph.js +3 -3
- package/dist/{improvement-cycle-CADEjVOB.js → improvement-cycle-CwPaVYsD.js} +3 -3
- package/dist/{improvement-cycle-CADEjVOB.js.map → improvement-cycle-CwPaVYsD.js.map} +1 -1
- package/dist/{index-DNXW665W.d.ts → index-C_5ADJEz.d.ts} +2 -2
- package/dist/{index-lu9HFbv5.d.ts → index-C_xAZx46.d.ts} +4 -4
- package/dist/{index-DhnWuHkN.d.ts → index-W1pLy7b2.d.ts} +5 -5
- package/dist/index.d.ts +7 -7
- package/dist/index.js +7 -7
- package/dist/intelligence.d.ts +4 -4
- package/dist/intelligence.js +3 -3
- package/dist/kernel.d.ts +5 -5
- package/dist/kernel.js +8 -8
- package/dist/{knowledge-BZvQ7Pca.js → knowledge-oEjtVYZK.js} +3 -3
- package/dist/{knowledge-BZvQ7Pca.js.map → knowledge-oEjtVYZK.js.map} +1 -1
- package/dist/knowledge.d.ts +1 -1
- package/dist/knowledge.js +1 -1
- package/dist/{loop-runner-bin-BnSUNv5h.d.ts → loop-runner-bin-Byrn0ovS.d.ts} +3 -3
- package/dist/{loop-runner-bin-CeMD66qH.js → loop-runner-bin-C6ppaK7_.js} +3 -3
- package/dist/{loop-runner-bin-CeMD66qH.js.map → loop-runner-bin-C6ppaK7_.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 +3 -3
- package/dist/mcp/index.js +5 -5
- package/dist/{openai-tools-CQq1fhJ0.js → openai-tools-NgZyaVWA.js} +2 -2
- package/dist/{openai-tools-CQq1fhJ0.js.map → openai-tools-NgZyaVWA.js.map} +1 -1
- package/dist/primeintellect/index.d.ts +1 -1
- package/dist/{provision-supervisor-C_o4UH8c.js → provision-supervisor-C2qAsvwJ.js} +55 -32
- package/dist/provision-supervisor-C2qAsvwJ.js.map +1 -0
- package/dist/{redact-GpYsFenv.d.ts → redact-Td4Z49qK.d.ts} +3 -3
- package/dist/{runtime-oGfkncdd.d.ts → runtime-BcJkcqyq.d.ts} +3 -3
- package/dist/{runtime-BblXWn4d.js → runtime-CFttcekr.js} +8 -8
- package/dist/{runtime-BblXWn4d.js.map → runtime-CFttcekr.js.map} +1 -1
- package/dist/{stream-agent-turn-esfjghd9.d.ts → stream-agent-turn-BJcmeOjJ.d.ts} +2 -2
- package/dist/{structural-rollout-D4uIcI7I.js → structural-rollout-wSlpkkiV.js} +2 -2
- package/dist/{structural-rollout-D4uIcI7I.js.map → structural-rollout-wSlpkkiV.js.map} +1 -1
- package/dist/{supervise-Ckj6Ewdi.js → supervise-CSvq9RSA.js} +3 -3
- package/dist/{supervise-Ckj6Ewdi.js.map → supervise-CSvq9RSA.js.map} +1 -1
- package/dist/{supervisor--tj9JsFo.js → supervisor-wgifgrsR.js} +17 -12
- package/dist/{supervisor--tj9JsFo.js.map → supervisor-wgifgrsR.js.map} +1 -1
- 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/dist/{types-CPpvwwTx.d.ts → types-CuObZjDz.d.ts} +6 -1
- package/package.json +1 -1
- package/dist/provision-supervisor-C_o4UH8c.js.map +0 -1
|
@@ -10636,7 +10636,7 @@ function boundedChildDeadlineAt(parentDeadlineAtMs, childDeadlineMs, nowMs) {
|
|
|
10636
10636
|
* only when no execution deadline exists. The losing promise stays observed. */
|
|
10637
10637
|
async function teardownExecutor(executor, grace, deadlineAtMs, now) {
|
|
10638
10638
|
const work = Promise.resolve(executor.teardown(grace));
|
|
10639
|
-
const requestedWaitMs = grace === "infinity" ? void 0 : grace === "brutalKill" ? TEARDOWN_ACKNOWLEDGEMENT_MS : grace + TEARDOWN_ACKNOWLEDGEMENT_MS;
|
|
10639
|
+
const requestedWaitMs = grace === "infinity" ? void 0 : grace === "brutalKill" ? executor.teardownTimeoutMs ?? TEARDOWN_ACKNOWLEDGEMENT_MS : grace + TEARDOWN_ACKNOWLEDGEMENT_MS;
|
|
10640
10640
|
const deadlineWaitMs = deadlineAtMs === void 0 ? void 0 : Math.max(0, deadlineAtMs - now()) + TEARDOWN_ACKNOWLEDGEMENT_MS;
|
|
10641
10641
|
const waitMs = requestedWaitMs === void 0 ? deadlineWaitMs : deadlineWaitMs === void 0 ? requestedWaitMs : Math.min(requestedWaitMs, deadlineWaitMs);
|
|
10642
10642
|
let receipt;
|
|
@@ -11442,25 +11442,30 @@ function createRetainedRunHandle(environment, session, initialControlRef, capabi
|
|
|
11442
11442
|
}
|
|
11443
11443
|
//#endregion
|
|
11444
11444
|
//#region src/runtime/retained-run-start.ts
|
|
11445
|
+
const MAX_RETAINED_IDENTITY_BYTES = 128;
|
|
11445
11446
|
/**
|
|
11446
11447
|
* Mint deterministic dispatch coordinates from the two caller-supplied keys.
|
|
11447
11448
|
* The same `(idempotencyKey, turnId)` pair yields the same coordinates in
|
|
11448
11449
|
* every process, so a pre-dispatch admission record always names the exact
|
|
11449
|
-
* session and execution the dispatch will request.
|
|
11450
|
-
*
|
|
11451
|
-
*
|
|
11452
|
-
* result stays inside the 256-byte identifier bound.
|
|
11450
|
+
* session and execution the dispatch will request. Short inputs keep a
|
|
11451
|
+
* readable URL-encoded identity. Long inputs use a full SHA-256 digest so
|
|
11452
|
+
* provider storage layers never receive an overlong composite identifier.
|
|
11453
11453
|
*/
|
|
11454
11454
|
function mintRetainedIdentity(idempotencyKey, turnId) {
|
|
11455
11455
|
const base = `${encodeURIComponent(idempotencyKey)}:${encodeURIComponent(turnId)}`;
|
|
11456
|
-
const
|
|
11457
|
-
|
|
11458
|
-
|
|
11456
|
+
const digest = canonicalCandidateDigest({
|
|
11457
|
+
kind: "retained-identity.v1",
|
|
11458
|
+
base
|
|
11459
|
+
}).slice(7);
|
|
11459
11460
|
return {
|
|
11460
|
-
sessionId,
|
|
11461
|
-
executionId
|
|
11461
|
+
sessionId: boundedRetainedIdentity("retained-session", base, digest),
|
|
11462
|
+
executionId: boundedRetainedIdentity("retained-execution", base, digest)
|
|
11462
11463
|
};
|
|
11463
11464
|
}
|
|
11465
|
+
function boundedRetainedIdentity(prefix, base, digest) {
|
|
11466
|
+
const readable = `${prefix}:${base}`;
|
|
11467
|
+
return readable.length <= MAX_RETAINED_IDENTITY_BYTES ? readable : `${prefix}:${digest}`;
|
|
11468
|
+
}
|
|
11464
11469
|
/**
|
|
11465
11470
|
* Dispatch one detached, replayable run and return only after exact durable
|
|
11466
11471
|
* coordinates are confirmed by the provider and persisted by the caller.
|
|
@@ -15447,6 +15452,6 @@ function isNonEmptySpend(s) {
|
|
|
15447
15452
|
return s.iterations > 0 || s.tokens.input > 0 || s.tokens.output > 0 || s.usd > 0 || s.ms > 0 || s.tokensKnown === false || s.usdKnown === false;
|
|
15448
15453
|
}
|
|
15449
15454
|
//#endregion
|
|
15450
|
-
export {
|
|
15455
|
+
export { bridgeModelRouteRefusal as $, buildLoopSpanNodes as $t, readWorkerInteractiveBinding as A, fullProfileMaterialization as An, peerMailVerbNames as At, retainedCreateMaterial as B, validateProfileMaterialization as Bn, createSandboxLineage as Bt, timerAt as C, localHarnessExecutable as Cn, AUTHORITY_MARKERS as Ct, readWorkerInteractiveAdmissions as D, assertProfileMaterialization as Dn, createPeerMailbox as Dt, interactiveAdmissionSeamKey as E, AGENT_PROFILE_MATERIALIZATION_AXES as En, claimsAuthority as Et, startRetainedInteractiveRun as F, promptResourceProfileMaterialization as Fn, TERMINAL_DECISIONS as Ft, rollingDispatch as G, canonicalObservedModel as Gt, effectiveConcurrency as H, acquireSandbox as Ht, reconnectRetainedRun as I, renderProfileMaterializationIssues as In, createSandboxForSpec as It, assertValidBudget as J, mergeTraceEnv as Jt, DEFAULT_SUCCESSFUL_SHUTDOWN_MS as K, observedModelMatchesDeclared as Kt, recoverRetainedRun as L, renderUnsupported as Ln, defaultSelectWinner as Lt, workerInteractiveBindingsDir as M, promptControlProfileMaterialization as Mn, isTerminalNodeStatus as Mt, reconnectRetainedInteractiveRun as N, promptModelProfileMaterialization as Nn, createInPlaceCliExecutor as Nt, workerInteractiveAdmissionFile as O, controlProfileMaterialization as On, isPeerMailEnvelope as Ot, recoverRetainedInteractiveRun as P, promptOnlyProfileMaterialization as Pn, taskToPrompt as Pt, bridgeAdmissionRead as Q, buildLoopOtelSpans as Qt, startRetainedRun as R, sandboxActProfileMaterialization as Rn, isTerminalDecision as Rt, pollFor as S, harnessSupportsReasoningEffort as Sn, createInbox as St, waitUntil as T, CodexExecutionDiagnosticError as Tn, PEER_MAIL_WIRE_KEY as Tt, freeSlots as U, routerBrain as Ut, destroyInteractiveEnvironment as V, worktreeCliProfileMaterialization as Vn, probeSandboxCapabilities as Vt, queueOf as W, runBrainLoop as Wt, spendFromUsageEvents as X, traceContextToEnv as Xt, createBudgetPool as Y, readTraceContextFromEnv as Yt, bindReusableExecutorExecutionId as Z, INTELLIGENCE_WIRE_VERSION as Zt, recordScopeOwnerMaterialization as _, captureWorktreeDiff as _n, decodeToolPart as _t, uncertainSpawnBudgets as a, generateSpanId as an, createExecutor as at, createWaitProbes as b, DEFAULT_LOCAL_HARNESS as bn, createActivityLog as bt, pickBestDelivered as c, padTraceId as cn, createWorktreeCliExecutor as ct, driverChild as d, createRuntimeStreamEventCollector as dn, workerTraceEnv as dt, buildRuntimeEventOtelSpans as en, bridgeRuntimeAttachmentsKey as et, withDriverExecutor as f, sanitizeAgentRuntimeEvent as fn, workerTraceHeaders as ft, meterRuntimeOwnedProviderAttempt as g, runWorktreeHarness as gn, createPushTraceSource as gt, meterRuntimeOwnedAccounting as h, runSettledCommand as hn, createSteerableSandboxSession as ht, sumMeasuredSpendFromEvents as i, flatOtelSpan as in, cliWorktreeExecutor as it, workerInteractiveBindingFile as j, profileMaterializationAxes$1 as jn, isLiveNodeStatus as jt, attachWorker as k, defineProfileMaterializationContract as kn, peerMailTools as kt, runFinalizer as l, toOtelAttributes as ln, WORKER_TRACE_PROPAGATION as lt, deriveNodeExecutionIdentity as m, sanitizeRuntimeStreamEvent as mn, DEFAULT_SANDBOX_STEERING_MAX_TURNS as mt, createSupervisor as n, createOtelExporter as nn, captureReusableExecutorConfig as nt, bestDelivered as o, loopEventToOtelSpan as on, createExecutorRegistry as ot, createScope as p, sanitizeKnowledgeReadinessReport as pn, workerTraceSeamKey as pt, teardownExecutor as q, createPropagatingTraceEmitter as qt, maxSeqOf as r, exportEvalRuns as rn, cliInPlaceExecutor as rt, collectDelivered as s, padSpanId as sn, snapshotExecutorConfig as st, createRootHandle as t, createOpenInferenceFileExporter as tn, bridgeStopSignalKey as tt, runTree as u, createRuntimeEventCollector as un, readWorkerTraceContext as ut, scopeOwnerExecutorNodeContext as v, createWorktree as vn, sandboxSessionTraceSource as vt, validateWaitSpec as w, parseCodexTokenUsage as wn, DEFAULT_PEER_MAIL_LIMITS as wt, isWaitOutcome as x, LOCAL_HARNESSES as xn, readWorkerProgress as xt, settledToIteration as y, removeWorktree as yn, DEFAULT_STALL_AFTER_MS as yt, startRetainedRunInEnvironment as z, unsupportedProfileDimensions as zn, runAgentRounds as zt };
|
|
15451
15456
|
|
|
15452
|
-
//# sourceMappingURL=supervisor
|
|
15457
|
+
//# sourceMappingURL=supervisor-wgifgrsR.js.map
|