@tangle-network/agent-runtime 0.134.9 → 0.135.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/README.md +80 -538
- package/dist/{activation-CAexDnXt.js → activation-n_QCjFyg.js} +2 -2
- package/dist/{activation-CAexDnXt.js.map → activation-n_QCjFyg.js.map} +1 -1
- package/dist/agent.d.ts +2 -2
- package/dist/agent.js +2 -2
- package/dist/analyst-loop.d.ts +1 -1
- package/dist/{authoring-DHVHhbJO.js → authoring-Cl5xwuKl.js} +2 -2
- package/dist/{authoring-DHVHhbJO.js.map → authoring-Cl5xwuKl.js.map} +1 -1
- package/dist/conversation.d.ts +1 -1
- package/dist/{environment-provider-BIZMHOQw.d.ts → environment-provider-DA8LqBV-.d.ts} +3 -3
- package/dist/environment-provider.d.ts +1 -1
- package/dist/{graph-BWsEZmDL.js → graph-NKOjYL1z.js} +12 -8
- package/dist/graph-NKOjYL1z.js.map +1 -0
- package/dist/{improvement-cycle-DN0QhoCi.js → improvement-cycle-B8KrGlT4.js} +3 -3
- package/dist/{improvement-cycle-DN0QhoCi.js.map → improvement-cycle-B8KrGlT4.js.map} +1 -1
- package/dist/{index-RYbM0cUo.d.ts → index-CETQJlqT.d.ts} +3 -3
- package/dist/{index-DC7CNU9n.d.ts → index-CP1RvdOw.d.ts} +4 -4
- package/dist/{index-CRauzLFH.d.ts → index-DjPLpg7-.d.ts} +47 -9
- package/dist/index.d.ts +9 -9
- package/dist/index.js +7 -7
- package/dist/intelligence.d.ts +5 -5
- package/dist/intelligence.js +3 -3
- package/dist/kernel.d.ts +7 -7
- package/dist/kernel.js +7 -7
- package/dist/{knowledge-DDhcxfdu.js → knowledge-_7FWqPwl.js} +3 -3
- package/dist/{knowledge-DDhcxfdu.js.map → knowledge-_7FWqPwl.js.map} +1 -1
- package/dist/knowledge.d.ts +1 -1
- package/dist/knowledge.js +1 -1
- package/dist/{loop-runner-bin-bnDuiEQU.js → loop-runner-bin-CnlVnCM1.js} +3 -3
- package/dist/{loop-runner-bin-bnDuiEQU.js.map → loop-runner-bin-CnlVnCM1.js.map} +1 -1
- package/dist/{loop-runner-bin-Yp4T-tUJ.d.ts → loop-runner-bin-DndNkp6D.d.ts} +3 -3
- 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 +5 -5
- package/dist/mcp/index.js +4 -4
- package/dist/{openai-tools-BulrPqjW.d.ts → openai-tools-DU3TZvFY.d.ts} +2 -2
- package/dist/{openai-tools-ne97uXo0.js → openai-tools-o7jw10Fn.js} +2 -2
- package/dist/{openai-tools-ne97uXo0.js.map → openai-tools-o7jw10Fn.js.map} +1 -1
- package/dist/primeintellect/index.d.ts +1 -1
- package/dist/profiles.d.ts +1 -1
- package/dist/{redact-Bojh05mQ.d.ts → redact--KfuCwwo.d.ts} +3 -3
- package/dist/{runtime-CwY043ZD.js → runtime-BQTE0RJS.js} +6 -6
- package/dist/{runtime-CwY043ZD.js.map → runtime-BQTE0RJS.js.map} +1 -1
- package/dist/{runtime-DHrzFy2v.d.ts → runtime-WugWo__W.d.ts} +4 -4
- package/dist/{stream-agent-turn-BEv31Log.d.ts → stream-agent-turn-DhPlvHwp.d.ts} +3 -3
- package/dist/{structural-rollout-BMnPPcJP.js → structural-rollout-keBf4YEc.js} +2 -2
- package/dist/{structural-rollout-BMnPPcJP.js.map → structural-rollout-keBf4YEc.js.map} +1 -1
- package/dist/{supervise-B-nTWUCK.js → supervise-CVP9ku5U.js} +36 -4
- package/dist/{supervise-B-nTWUCK.js.map → supervise-CVP9ku5U.js.map} +1 -1
- package/dist/{supervisor-Dl9Fk7g5.js → supervisor-mZ9Glkz7.js} +18 -3
- package/dist/supervisor-mZ9Glkz7.js.map +1 -0
- package/dist/testing.d.ts +2 -2
- package/dist/testing.js +11 -11
- package/dist/{types-DzZCZcwI.d.ts → types-BBwGSiAj.d.ts} +8 -5
- package/dist/{types-C7UNjVce.d.ts → types-BCkweg3w.d.ts} +2 -2
- package/package.json +1 -1
- package/dist/graph-BWsEZmDL.js.map +0 -1
- package/dist/supervisor-Dl9Fk7g5.js.map +0 -1
|
@@ -5038,8 +5038,23 @@ function resolveAgentRuns(options) {
|
|
|
5038
5038
|
if (options.agentRuns && options.agentRuns.length > 0) return options.agentRuns;
|
|
5039
5039
|
throw new ValidationError("runAgentRounds: `agentRun` or non-empty `agentRuns` is required");
|
|
5040
5040
|
}
|
|
5041
|
+
/**
|
|
5042
|
+
* Decision values the kernel treats as terminal. Every other value returned by
|
|
5043
|
+
* `decide` continues the loop. Type a driver's `decide` return as
|
|
5044
|
+
* `'your-word' | TerminalDecision` so caller vocabulary and kernel keywords
|
|
5045
|
+
* stay visibly distinct.
|
|
5046
|
+
*
|
|
5047
|
+
* @stable
|
|
5048
|
+
*/
|
|
5049
|
+
const TERMINAL_DECISIONS = [
|
|
5050
|
+
"stop",
|
|
5051
|
+
"pick-winner",
|
|
5052
|
+
"fail",
|
|
5053
|
+
"done"
|
|
5054
|
+
];
|
|
5055
|
+
/** True when the kernel stops the loop for this decision value. @stable */
|
|
5041
5056
|
function isTerminalDecision(decision) {
|
|
5042
|
-
return decision
|
|
5057
|
+
return TERMINAL_DECISIONS.includes(decision);
|
|
5043
5058
|
}
|
|
5044
5059
|
function emitRunLoopHook(options, event) {
|
|
5045
5060
|
notifyRuntimeHookEvent(options.ctx.hooks, {
|
|
@@ -12639,6 +12654,6 @@ function isNonEmptySpend(s) {
|
|
|
12639
12654
|
return s.iterations > 0 || s.tokens.input > 0 || s.tokens.output > 0 || s.usd > 0 || s.ms > 0 || s.tokensKnown === false || s.usdKnown === false;
|
|
12640
12655
|
}
|
|
12641
12656
|
//#endregion
|
|
12642
|
-
export { createInbox as $,
|
|
12657
|
+
export { createInbox as $, promptOnlyProfileMaterialization as $t, createBudgetPool as A, createRuntimeStreamEventCollector as At, WORKER_TRACE_PROPAGATION as B, LOCAL_HARNESSES as Bt, effectiveConcurrency as C, flatOtelSpan as Ct, DEFAULT_SUCCESSFUL_SHUTDOWN_MS as D, padTraceId as Dt, rollingDispatch as E, padSpanId as Et, cliWorktreeExecutor as F, runWorktreeHarness as Ft, DEFAULT_SANDBOX_STEERING_MAX_TURNS as G, AGENT_PROFILE_MATERIALIZATION_AXES as Gt, workerTraceEnv as H, localHarnessExecutable as Ht, createExecutor as I, captureWorktreeDiff as It, decodeToolPart as J, defineProfileMaterializationContract as Jt, createSteerableSandboxSession as K, assertProfileMaterialization as Kt, createExecutorRegistry as L, createWorktree as Lt, bindReusableExecutorExecutionId as M, sanitizeKnowledgeReadinessReport as Mt, bridgeStopSignalKey as N, sanitizeRuntimeStreamEvent as Nt, teardownExecutor as O, toOtelAttributes as Ot, captureReusableExecutorConfig as P, runSettledCommand as Pt, readWorkerProgress as Q, promptModelProfileMaterialization as Qt, snapshotExecutorConfig as R, removeWorktree as Rt, waitUntil as S, exportEvalRuns as St, queueOf as T, loopEventToOtelSpan as Tt, workerTraceHeaders as U, parseCodexTokenUsage as Ut, readWorkerTraceContext as V, harnessSupportsReasoningEffort as Vt, workerTraceSeamKey as W, CodexExecutionDiagnosticError as Wt, DEFAULT_STALL_AFTER_MS as X, profileMaterializationAxes$1 as Xt, sandboxSessionTraceSource as Y, fullProfileMaterialization as Yt, createActivityLog as Z, promptControlProfileMaterialization as Zt, createWaitProbes as _, buildLoopOtelSpans as _t, pickBestDelivered as a, createSandboxLineage as at, timerAt as b, createOpenInferenceFileExporter as bt, driverChild as c, routerBrain as ct, deriveNodeExecutionIdentity as d, observedModelMatchesDeclared as dt, promptResourceProfileMaterialization as en, TERMINAL_DECISIONS as et, meterRuntimeOwnedAccounting as f, createPropagatingTraceEmitter as ft, settledToIteration as g, INTELLIGENCE_WIRE_VERSION as gt, scopeOwnerExecutorNodeContext as h, traceContextToEnv as ht, collectDelivered as i, worktreeCliProfileMaterialization as in, runAgentRounds as it, spendFromUsageEvents as j, sanitizeAgentRuntimeEvent as jt, assertValidBudget as k, createRuntimeEventCollector as kt, withDriverExecutor as l, runBrainLoop as lt, recordScopeOwnerMaterialization as m, readTraceContextFromEnv as mt, createSupervisor as n, sandboxActProfileMaterialization as nn, defaultSelectWinner as nt, runFinalizer as o, probeSandboxCapabilities as ot, meterRuntimeOwnedProviderAttempt as p, mergeTraceEnv as pt, createPushTraceSource as q, controlProfileMaterialization as qt, bestDelivered as r, validateProfileMaterialization as rn, isTerminalDecision as rt, runTree as s, acquireSandbox as st, createRootHandle as t, renderProfileMaterializationIssues as tn, createSandboxForSpec as tt, createScope as u, canonicalObservedModel as ut, isWaitOutcome as v, buildLoopSpanNodes as vt, freeSlots as w, generateSpanId as wt, validateWaitSpec as x, createOtelExporter as xt, pollFor as y, buildRuntimeEventOtelSpans as yt, createWorktreeCliExecutor as z, DEFAULT_LOCAL_HARNESS as zt };
|
|
12643
12658
|
|
|
12644
|
-
//# sourceMappingURL=supervisor-
|
|
12659
|
+
//# sourceMappingURL=supervisor-mZ9Glkz7.js.map
|