@tangle-network/agent-runtime 0.178.0 → 0.179.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/README.md +1 -1
- package/dist/{activation-BVTPfwty.js → activation-C-FAeybF.js} +2 -2
- package/dist/{activation-BVTPfwty.js.map → activation-C-FAeybF.js.map} +1 -1
- package/dist/agent.d.ts +1 -1
- package/dist/agent.js +2 -2
- package/dist/{authoring-dQjU4WrH.js → authoring-kLYzRjsB.js} +2 -2
- package/dist/{authoring-dQjU4WrH.js.map → authoring-kLYzRjsB.js.map} +1 -1
- package/dist/candidate-execution/index.js +2 -2
- package/dist/{candidate-execution-fBNUyWyE.js → candidate-execution-7lVEly33.js} +2 -2
- package/dist/{candidate-execution-fBNUyWyE.js.map → candidate-execution-7lVEly33.js.map} +1 -1
- package/dist/conversation.d.ts +1 -1
- package/dist/{coordination-driver-kN2_UQaP.js → coordination-driver-BeLF1j7n.js} +2 -2
- package/dist/{coordination-driver-kN2_UQaP.js.map → coordination-driver-BeLF1j7n.js.map} +1 -1
- package/dist/durable.d.ts +2 -2
- package/dist/durable.js +1 -1
- package/dist/{environment-provider-ykohtWSr.d.ts → environment-provider-BGCU0IRa.d.ts} +2 -2
- package/dist/environment-provider.d.ts +1 -1
- package/dist/{graph-CseWAx9q.js → graph-CZFWujWS.js} +2 -2
- package/dist/{graph-CseWAx9q.js.map → graph-CZFWujWS.js.map} +1 -1
- package/dist/graph.d.ts +3 -3
- package/dist/graph.js +3 -3
- package/dist/{improvement-cycle-2QG2XXyK.js → improvement-cycle-CADEjVOB.js} +3 -3
- package/dist/{improvement-cycle-2QG2XXyK.js.map → improvement-cycle-CADEjVOB.js.map} +1 -1
- package/dist/{index-DG48MraH.d.ts → index-DNXW665W.d.ts} +2 -2
- package/dist/{index-CKjkp9Uh.d.ts → index-DhnWuHkN.d.ts} +5 -5
- package/dist/{index-BL5K-qBf.d.ts → index-lu9HFbv5.d.ts} +4 -4
- package/dist/index.d.ts +7 -7
- package/dist/index.js +9 -9
- package/dist/intelligence.d.ts +4 -4
- package/dist/intelligence.js +3 -3
- package/dist/kernel.d.ts +6 -6
- package/dist/kernel.js +8 -8
- package/dist/{knowledge-Ycq1urlg.js → knowledge-BZvQ7Pca.js} +4 -4
- package/dist/{knowledge-Ycq1urlg.js.map → knowledge-BZvQ7Pca.js.map} +1 -1
- package/dist/knowledge.d.ts +1 -1
- package/dist/knowledge.js +1 -1
- package/dist/{loop-runner-bin-Cv8_0WCC.d.ts → loop-runner-bin-BnSUNv5h.d.ts} +3 -3
- package/dist/{loop-runner-bin-DkaB5edJ.js → loop-runner-bin-CeMD66qH.js} +3 -3
- package/dist/{loop-runner-bin-DkaB5edJ.js.map → loop-runner-bin-CeMD66qH.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-Cv1ZVB-e.js → openai-tools-CQq1fhJ0.js} +2 -2
- package/dist/{openai-tools-Cv1ZVB-e.js.map → openai-tools-CQq1fhJ0.js.map} +1 -1
- package/dist/primeintellect/index.d.ts +1 -1
- package/dist/{provision-supervisor-B4wOvmpW.js → provision-supervisor-C_o4UH8c.js} +3 -3
- package/dist/{provision-supervisor-B4wOvmpW.js.map → provision-supervisor-C_o4UH8c.js.map} +1 -1
- package/dist/{redact-CptO2wfX.d.ts → redact-GpYsFenv.d.ts} +3 -3
- package/dist/{runtime-7W9UYNMN.js → runtime-BblXWn4d.js} +8 -8
- package/dist/{runtime-7W9UYNMN.js.map → runtime-BblXWn4d.js.map} +1 -1
- package/dist/{runtime-BhU1Bt3y.d.ts → runtime-oGfkncdd.d.ts} +3 -3
- package/dist/{stream-agent-turn-CNyYxEc0.d.ts → stream-agent-turn-esfjghd9.d.ts} +2 -2
- package/dist/{structural-rollout-BSdSJ_Lr.js → structural-rollout-D4uIcI7I.js} +2 -2
- package/dist/{structural-rollout-BSdSJ_Lr.js.map → structural-rollout-D4uIcI7I.js.map} +1 -1
- package/dist/{supervise-DMgM9SYN.js → supervise-Ckj6Ewdi.js} +3 -3
- package/dist/{supervise-DMgM9SYN.js.map → supervise-Ckj6Ewdi.js.map} +1 -1
- package/dist/{supervisor-DyDgxgpl.js → supervisor--tj9JsFo.js} +18 -8
- package/dist/{supervisor-DyDgxgpl.js.map → supervisor--tj9JsFo.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-C6HjIpJ3.d.ts → types-CPpvwwTx.d.ts} +10 -9
- package/dist/{workspace-archive-DOZAeeKU.js → workspace-archive-ByonPBl-.js} +3 -1
- package/dist/workspace-archive-ByonPBl-.js.map +1 -0
- package/package.json +17 -17
- package/dist/workspace-archive-DOZAeeKU.js.map +0 -1
|
@@ -9,7 +9,7 @@ import { a as concreteProfileModel, c as profileModelExecutionSettings, d as age
|
|
|
9
9
|
import { c as linkAbort, i as resolveAgentEnvironmentProvider, l as runAbortable, n as providerAsExecutor, r as providerAsSandboxClient, s as abortError$1 } from "./environment-provider-DKyMWQJd.js";
|
|
10
10
|
import { i as notifyRuntimeHookEvent } from "./runtime-hooks-tXpAarhW.js";
|
|
11
11
|
import { n as assertNoSymlinkDescendant, r as publishExclusiveDurableFile } from "./durable-file-g3YdfEh4.js";
|
|
12
|
-
import { AGENT_PROFILE_MATERIALIZATION_AXES, AgentEnvironmentCapabilitiesSchema, AgentExactRunControlRefSchema, AgentInteractiveSessionControlClaimAcknowledgementSchema, AgentInteractiveSessionControlClaimSchema, AgentInteractiveSessionPromptAcknowledgementSchema, AgentInteractiveSessionRefSchema, AgentInteractiveSessionStatusSchema, AgentInteractiveSessionStopAcknowledgementSchema, AgentNativeContextContinuationResultSchema, AgentTurnInputSchema, AgentTurnResultSchema, InteractionAcknowledgementSchema, InteractionResponseCommandSchema, NativeContextBoundaryProofSchema, NativeContextContinuationRequestSchema, REASONING_EFFORTS, RuntimeEventEnvelopeSchema, TerminalReplayWindowSchema, TerminalSessionRefSchema, agentInteractiveSessionControlClaimAcknowledgementMatchesRequest, agentInteractiveSessionControlClaimMatchesRef, agentInteractiveSessionPromptAcknowledgementMatchesCommand, agentInteractiveSessionRefMatchesStart, agentInteractiveSessionRunRef, agentInteractiveSessionStatusMatchesRef, agentInteractiveSessionStopAcknowledgementMatchesCommand, agentNativeContextContinuationResultMatchesRequest, agentProfileSchema, canonicalAgentProfileDigest, canonicalCandidateDigest, exactAgentInteractiveSessionStart, harnessTypeSchema, nativeContextContinuationTurnDigest, nativeReasoningControl, profileMaterializationAxes, profileMaterializationAxes as profileMaterializationAxes$1, renderInputPartsAsText, sha256DigestSchema } from "@tangle-network/agent-interface";
|
|
12
|
+
import { AGENT_PROFILE_MATERIALIZATION_AXES, AgentEnvironmentCapabilitiesSchema, AgentExactRunControlRefSchema, AgentInteractiveSessionControlClaimAcknowledgementSchema, AgentInteractiveSessionControlClaimSchema, AgentInteractiveSessionPromptAcknowledgementSchema, AgentInteractiveSessionRefSchema, AgentInteractiveSessionStatusSchema, AgentInteractiveSessionStopAcknowledgementSchema, AgentNativeContextContinuationResultSchema, AgentTurnInputSchema, AgentTurnResultSchema, ContextTransferRequestSchema, InteractionAcknowledgementSchema, InteractionResponseCommandSchema, NativeContextBoundaryProofSchema, NativeContextContinuationRequestSchema, REASONING_EFFORTS, RuntimeEventEnvelopeSchema, TerminalReplayWindowSchema, TerminalSessionRefSchema, agentInteractiveSessionControlClaimAcknowledgementMatchesRequest, agentInteractiveSessionControlClaimMatchesRef, agentInteractiveSessionPromptAcknowledgementMatchesCommand, agentInteractiveSessionRefMatchesStart, agentInteractiveSessionRunRef, agentInteractiveSessionStatusMatchesRef, agentInteractiveSessionStopAcknowledgementMatchesCommand, agentNativeContextContinuationResultMatchesRequest, agentProfileSchema, canonicalAgentProfileDigest, canonicalCandidateDigest, exactAgentInteractiveSessionStart, harnessTypeSchema, nativeContextContinuationTurnDigest, nativeReasoningControl, profileMaterializationAxes, profileMaterializationAxes as profileMaterializationAxes$1, renderInputPartsAsText, sha256DigestSchema } from "@tangle-network/agent-interface";
|
|
13
13
|
import { estimateCost, isModelPriced } from "@tangle-network/agent-eval";
|
|
14
14
|
import { createHash, randomBytes, randomUUID } from "node:crypto";
|
|
15
15
|
import { basename, delimiter, dirname, isAbsolute, join, resolve, sep, win32 } from "node:path";
|
|
@@ -11037,7 +11037,7 @@ function retainedSecretNames(secrets) {
|
|
|
11037
11037
|
return Array.isArray(secrets) ? [...secrets].sort() : Object.keys(secrets).sort();
|
|
11038
11038
|
}
|
|
11039
11039
|
/** Project one headless turn into the material that `freshTurnInput` forwards. */
|
|
11040
|
-
function retainedTurnMaterial(input) {
|
|
11040
|
+
function retainedTurnMaterial(input, contextTransfer) {
|
|
11041
11041
|
return {
|
|
11042
11042
|
...input.prompt === void 0 ? {} : { prompt: input.prompt },
|
|
11043
11043
|
...input.parts === void 0 ? {} : { parts: input.parts },
|
|
@@ -11045,7 +11045,8 @@ function retainedTurnMaterial(input) {
|
|
|
11045
11045
|
...input.timeoutMs === void 0 ? {} : { timeoutMs: input.timeoutMs },
|
|
11046
11046
|
...input.context === void 0 ? {} : { context: input.context },
|
|
11047
11047
|
...input.interactions === void 0 ? {} : { interactions: input.interactions },
|
|
11048
|
-
...input.providerOptions === void 0 ? {} : { providerOptions: input.providerOptions }
|
|
11048
|
+
...input.providerOptions === void 0 ? {} : { providerOptions: input.providerOptions },
|
|
11049
|
+
...contextTransfer === void 0 ? {} : { contextTransferRequestDigest: contextTransfer.requestDigest }
|
|
11049
11050
|
};
|
|
11050
11051
|
}
|
|
11051
11052
|
//#endregion
|
|
@@ -11480,8 +11481,9 @@ async function startRetainedRun(options) {
|
|
|
11480
11481
|
}
|
|
11481
11482
|
if (typeof options.onAdmission !== "function") throw new Error("startRetainedRun requires an awaited onAdmission durability hook");
|
|
11482
11483
|
const identity = options.identity ?? mintRetainedIdentity(options.environment.idempotencyKey, options.turn.turnId);
|
|
11484
|
+
const contextTransfer = retainedContextTransfer(options.turn.contextTransfer);
|
|
11483
11485
|
if (!options.provider.get) throw new Error(`provider "${options.provider.name}" cannot reconstruct an environment by id`);
|
|
11484
|
-
const intent = retainedRunIntent(options, identity);
|
|
11486
|
+
const intent = retainedRunIntent(options, identity, contextTransfer);
|
|
11485
11487
|
if (options.intent === void 0) await admitDurably(options.onAdmission, intent);
|
|
11486
11488
|
else assertExactRetainedRunIntent(options.intent, intent);
|
|
11487
11489
|
const providerCapabilities = await assertRetainedCapabilities(options.provider);
|
|
@@ -11515,6 +11517,7 @@ async function startRetainedRun(options) {
|
|
|
11515
11517
|
environment,
|
|
11516
11518
|
environmentIdempotencyKey: options.environment.idempotencyKey,
|
|
11517
11519
|
turn: options.turn,
|
|
11520
|
+
contextTransfer,
|
|
11518
11521
|
identity,
|
|
11519
11522
|
onAdmission: options.onAdmission,
|
|
11520
11523
|
capabilities,
|
|
@@ -11540,6 +11543,7 @@ async function startRetainedRunInEnvironment(options) {
|
|
|
11540
11543
|
}
|
|
11541
11544
|
if (typeof options.onAdmission !== "function") throw new Error("startRetainedRunInEnvironment requires an awaited onAdmission durability hook");
|
|
11542
11545
|
const identity = options.identity ?? mintRetainedIdentity(options.environment.idempotencyKey, options.turn.turnId);
|
|
11546
|
+
const contextTransfer = retainedContextTransfer(options.turn.contextTransfer);
|
|
11543
11547
|
const providerCapabilities = await assertRetainedCapabilities(options.provider);
|
|
11544
11548
|
if (!options.provider.get) throw new Error(`provider "${options.provider.name}" cannot reconstruct an environment by id`);
|
|
11545
11549
|
const environment = await options.provider.get(options.environment.id);
|
|
@@ -11554,6 +11558,7 @@ async function startRetainedRunInEnvironment(options) {
|
|
|
11554
11558
|
environment,
|
|
11555
11559
|
environmentIdempotencyKey: options.environment.idempotencyKey,
|
|
11556
11560
|
turn: options.turn,
|
|
11561
|
+
contextTransfer,
|
|
11557
11562
|
identity,
|
|
11558
11563
|
onAdmission: options.onAdmission,
|
|
11559
11564
|
capabilities,
|
|
@@ -11591,7 +11596,8 @@ async function dispatchRetainedRun(options) {
|
|
|
11591
11596
|
reference = await environment.dispatch(freshTurnInput(options.turn, {
|
|
11592
11597
|
turnId: options.turn.turnId,
|
|
11593
11598
|
detach: true,
|
|
11594
|
-
...identity
|
|
11599
|
+
...identity,
|
|
11600
|
+
...options.contextTransfer === void 0 ? {} : { contextTransfer: options.contextTransfer }
|
|
11595
11601
|
}));
|
|
11596
11602
|
} catch (error) {
|
|
11597
11603
|
await destroyIfCreated(error);
|
|
@@ -11696,7 +11702,7 @@ async function recoverRetainedRun(options) {
|
|
|
11696
11702
|
handle: createRetainedRunHandle(environment, exact.session, exact.controlRef, capabilities, options.now)
|
|
11697
11703
|
};
|
|
11698
11704
|
}
|
|
11699
|
-
function retainedRunIntent(options, identity) {
|
|
11705
|
+
function retainedRunIntent(options, identity, contextTransfer) {
|
|
11700
11706
|
const requestedProfileDigest = canonicalCandidateDigest(options.environment.profile);
|
|
11701
11707
|
const requestDigest = canonicalCandidateDigest({
|
|
11702
11708
|
kind: "retained-run-intent.v1",
|
|
@@ -11707,7 +11713,7 @@ function retainedRunIntent(options, identity) {
|
|
|
11707
11713
|
executionId: identity.executionId,
|
|
11708
11714
|
requestedProfileDigest,
|
|
11709
11715
|
create: retainedCreateMaterial(options.environment),
|
|
11710
|
-
turn: retainedTurnMaterial(options.turn)
|
|
11716
|
+
turn: retainedTurnMaterial(options.turn, contextTransfer)
|
|
11711
11717
|
});
|
|
11712
11718
|
return {
|
|
11713
11719
|
phase: "intent",
|
|
@@ -11721,6 +11727,10 @@ function retainedRunIntent(options, identity) {
|
|
|
11721
11727
|
requestDigest
|
|
11722
11728
|
};
|
|
11723
11729
|
}
|
|
11730
|
+
function retainedContextTransfer(value) {
|
|
11731
|
+
if (value === void 0) return void 0;
|
|
11732
|
+
return detachedSnapshot(ContextTransferRequestSchema.parse(value), "retained context transfer request");
|
|
11733
|
+
}
|
|
11724
11734
|
function assertExactRetainedRunIntent(received, expected) {
|
|
11725
11735
|
if (canonicalCandidateDigest(parseRetainedRunIntent(received)) !== canonicalCandidateDigest(expected)) throw new Error("retained run intent conflicts with replay material");
|
|
11726
11736
|
}
|
|
@@ -15439,4 +15449,4 @@ function isNonEmptySpend(s) {
|
|
|
15439
15449
|
//#endregion
|
|
15440
15450
|
export { bridgeRuntimeAttachmentsKey as $, buildRuntimeEventOtelSpans as $t, readWorkerInteractiveBinding as A, profileMaterializationAxes$1 as An, isLiveNodeStatus as At, retainedCreateMaterial as B, worktreeCliProfileMaterialization as Bn, probeSandboxCapabilities as Bt, timerAt as C, parseCodexTokenUsage as Cn, DEFAULT_PEER_MAIL_LIMITS as Ct, readWorkerInteractiveAdmissions as D, controlProfileMaterialization as Dn, isPeerMailEnvelope as Dt, interactiveAdmissionSeamKey as E, assertProfileMaterialization as En, createPeerMailbox as Et, startRetainedInteractiveRun as F, renderProfileMaterializationIssues as Fn, createSandboxForSpec as Ft, DEFAULT_SUCCESSFUL_SHUTDOWN_MS as G, observedModelMatchesDeclared as Gt, freeSlots as H, routerBrain as Ht, reconnectRetainedRun as I, renderUnsupported as In, defaultSelectWinner as It, createBudgetPool as J, readTraceContextFromEnv as Jt, teardownExecutor as K, createPropagatingTraceEmitter as Kt, recoverRetainedRun as L, sandboxActProfileMaterialization as Ln, isTerminalDecision as Lt, workerInteractiveBindingsDir as M, promptModelProfileMaterialization as Mn, createInPlaceCliExecutor as Mt, reconnectRetainedInteractiveRun as N, promptOnlyProfileMaterialization as Nn, taskToPrompt as Nt, workerInteractiveAdmissionFile as O, defineProfileMaterializationContract as On, peerMailTools as Ot, recoverRetainedInteractiveRun as P, promptResourceProfileMaterialization as Pn, TERMINAL_DECISIONS as Pt, bridgeModelRouteRefusal as Q, buildLoopSpanNodes as Qt, startRetainedRun as R, unsupportedProfileDimensions as Rn, runAgentRounds as Rt, pollFor as S, localHarnessExecutable as Sn, AUTHORITY_MARKERS as St, waitUntil as T, AGENT_PROFILE_MATERIALIZATION_AXES as Tn, claimsAuthority as Tt, queueOf as U, runBrainLoop as Ut, effectiveConcurrency as V, acquireSandbox as Vt, rollingDispatch as W, canonicalObservedModel as Wt, bindReusableExecutorExecutionId as X, INTELLIGENCE_WIRE_VERSION as Xt, spendFromUsageEvents as Y, traceContextToEnv as Yt, bridgeAdmissionRead as Z, buildLoopOtelSpans as Zt, recordScopeOwnerMaterialization as _, createWorktree as _n, sandboxSessionTraceSource as _t, uncertainSpawnBudgets as a, loopEventToOtelSpan as an, createExecutorRegistry as at, createWaitProbes as b, LOCAL_HARNESSES as bn, readWorkerProgress as bt, pickBestDelivered as c, toOtelAttributes as cn, WORKER_TRACE_PROPAGATION as ct, driverChild as d, sanitizeAgentRuntimeEvent as dn, workerTraceHeaders as dt, createOpenInferenceFileExporter as en, bridgeStopSignalKey as et, withDriverExecutor as f, sanitizeKnowledgeReadinessReport as fn, workerTraceSeamKey as ft, meterRuntimeOwnedProviderAttempt as g, captureWorktreeDiff as gn, decodeToolPart as gt, meterRuntimeOwnedAccounting as h, runWorktreeHarness as hn, createPushTraceSource as ht, sumMeasuredSpendFromEvents as i, generateSpanId as in, createExecutor as it, workerInteractiveBindingFile as j, promptControlProfileMaterialization as jn, isTerminalNodeStatus as jt, attachWorker as k, fullProfileMaterialization as kn, peerMailVerbNames as kt, runFinalizer as l, createRuntimeEventCollector as ln, readWorkerTraceContext as lt, deriveNodeExecutionIdentity as m, runSettledCommand as mn, createSteerableSandboxSession as mt, createSupervisor as n, exportEvalRuns as nn, cliInPlaceExecutor as nt, bestDelivered as o, padSpanId as on, snapshotExecutorConfig as ot, createScope as p, sanitizeRuntimeStreamEvent as pn, DEFAULT_SANDBOX_STEERING_MAX_TURNS as pt, assertValidBudget as q, mergeTraceEnv as qt, maxSeqOf as r, flatOtelSpan as rn, cliWorktreeExecutor as rt, collectDelivered as s, padTraceId as sn, createWorktreeCliExecutor as st, createRootHandle as t, createOtelExporter as tn, captureReusableExecutorConfig as tt, runTree as u, createRuntimeStreamEventCollector as un, workerTraceEnv as ut, scopeOwnerExecutorNodeContext as v, removeWorktree as vn, DEFAULT_STALL_AFTER_MS as vt, validateWaitSpec as w, CodexExecutionDiagnosticError as wn, PEER_MAIL_WIRE_KEY as wt, isWaitOutcome as x, harnessSupportsReasoningEffort as xn, createInbox as xt, settledToIteration as y, DEFAULT_LOCAL_HARNESS as yn, createActivityLog as yt, startRetainedRunInEnvironment as z, validateProfileMaterialization as zn, createSandboxLineage as zt };
|
|
15441
15451
|
|
|
15442
|
-
//# sourceMappingURL=supervisor
|
|
15452
|
+
//# sourceMappingURL=supervisor--tj9JsFo.js.map
|