@tangle-network/agent-runtime 10.0.11 → 10.0.12
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/CHANGELOG.md +4 -0
- package/dist/{activation-B9c5eSla.d.ts → activation-BmdINnh5.d.ts} +2 -2
- package/dist/{activation-DikG4Nxq.js → activation-zUNFNlNv.js} +2 -2
- package/dist/{activation-DikG4Nxq.js.map → activation-zUNFNlNv.js.map} +1 -1
- package/dist/agent.d.ts +1 -1
- package/dist/agent.js +2 -2
- package/dist/{delegate-BEBd1qxi.js → delegate--YvqtF0p.js} +2 -2
- package/dist/{delegate-BEBd1qxi.js.map → delegate--YvqtF0p.js.map} +1 -1
- package/dist/{driver-control-acknowledgers-C80hsHbs.js → driver-control-acknowledgers-o88fvQcq.js} +2 -2
- package/dist/{driver-control-acknowledgers-C80hsHbs.js.map → driver-control-acknowledgers-o88fvQcq.js.map} +1 -1
- package/dist/durable.d.ts +1 -1
- package/dist/durable.js +4 -4
- package/dist/{graph-BP927YH9.js → graph-5b9UtR5E.js} +4 -4
- package/dist/{graph-BP927YH9.js.map → graph-5b9UtR5E.js.map} +1 -1
- package/dist/{improve-CaYHi8P-.js → improve-DNO2U69i.js} +5 -5
- package/dist/{improve-CaYHi8P-.js.map → improve-DNO2U69i.js.map} +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +8 -8
- package/dist/intelligence.d.ts +2 -2
- package/dist/intelligence.js +3 -3
- package/dist/kernel.d.ts +1 -1
- package/dist/kernel.js +10 -10
- package/dist/{loop-runner-kGLe3PSM.d.ts → loop-runner-AQcWx9uu.d.ts} +2 -2
- package/dist/{loop-runner-9OJItBqr.js → loop-runner-D-oI6FUI.js} +2 -2
- package/dist/{loop-runner-9OJItBqr.js.map → loop-runner-D-oI6FUI.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 +2 -2
- package/dist/mcp/index.d.ts +1 -1
- package/dist/mcp/index.js +4 -4
- package/dist/profiles.d.ts +1 -1
- package/dist/{provision-supervisor-m_kRnNQf.js → provision-supervisor-C_sePBrX.js} +3 -3
- package/dist/{provision-supervisor-m_kRnNQf.js.map → provision-supervisor-C_sePBrX.js.map} +1 -1
- package/dist/{run-state-Cd_Gvsjw.js → run-state-BjM79-9H.js} +2 -2
- package/dist/{run-state-Cd_Gvsjw.js.map → run-state-BjM79-9H.js.map} +1 -1
- package/dist/{runtime-CZc-cMrk.js → runtime-C4hWti_g.js} +10 -10
- package/dist/{runtime-CZc-cMrk.js.map → runtime-C4hWti_g.js.map} +1 -1
- package/dist/{search-executor-BHypQDeY.js → search-executor-B_xLH8Yq.js} +2 -2
- package/dist/{search-executor-BHypQDeY.js.map → search-executor-B_xLH8Yq.js.map} +1 -1
- package/dist/{server-D7Mq2Bn1.js → server-BzBOnewO.js} +2 -2
- package/dist/{server-D7Mq2Bn1.js.map → server-BzBOnewO.js.map} +1 -1
- package/dist/{structural-rollout-BfFEGl9Q.js → structural-rollout-mKdhfxlJ.js} +20 -4
- package/dist/structural-rollout-mKdhfxlJ.js.map +1 -0
- package/dist/{supervise-BX3fLhUS.js → supervise-C-mQSV-1.js} +3 -3
- package/dist/{supervise-BX3fLhUS.js.map → supervise-C-mQSV-1.js.map} +1 -1
- package/dist/{supervisor-CNE2g7Wz.js → supervisor-1csecp8d.js} +15 -4
- package/dist/supervisor-1csecp8d.js.map +1 -0
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +11 -11
- package/dist/tui/index.d.ts +1 -1
- package/dist/tui/index.js +1 -1
- package/dist/{types-CTeyeXgz.d.ts → types-Br9sWTWk.d.ts} +2 -2
- package/package.json +1 -1
- package/dist/structural-rollout-BfFEGl9Q.js.map +0 -1
- package/dist/supervisor-CNE2g7Wz.js.map +0 -1
|
@@ -10701,9 +10701,19 @@ function chatCompletionBody(cfg, messages, opts) {
|
|
|
10701
10701
|
...maxTokens !== void 0 ? { max_tokens: maxTokens } : {},
|
|
10702
10702
|
...maxCompletionTokens !== void 0 ? { max_completion_tokens: maxCompletionTokens } : {},
|
|
10703
10703
|
...opts?.seed !== void 0 ? { seed: opts.seed } : {},
|
|
10704
|
-
...opts?.reasoningEffort ? { reasoning_effort: opts.reasoningEffort } : {}
|
|
10704
|
+
...opts?.reasoningEffort ? { reasoning_effort: opts.reasoningEffort } : {},
|
|
10705
|
+
...explicitNoneToolChoice(opts?.toolChoice) ? { tool_choice: "none" } : {}
|
|
10705
10706
|
};
|
|
10706
10707
|
}
|
|
10708
|
+
/**
|
|
10709
|
+
* The only `tool_choice` a no-tool completion can carry: an explicit `none`. `auto` and
|
|
10710
|
+
* `required` name tool-selection behavior, so they are refused here rather than silently
|
|
10711
|
+
* omitted — a caller that asked for them must learn the request will not carry them.
|
|
10712
|
+
*/
|
|
10713
|
+
function explicitNoneToolChoice(toolChoice) {
|
|
10714
|
+
if (toolChoice === void 0 || toolChoice === "none") return toolChoice === "none";
|
|
10715
|
+
throw new ValidationError$1(`chatCompletionBody: toolChoice ${JSON.stringify(toolChoice)} is not carryable without tools; only "none" is`);
|
|
10716
|
+
}
|
|
10707
10717
|
/** The OpenAI-shape request body both tool-calling transports send. One builder so the streamed
|
|
10708
10718
|
* turn cannot drift from the buffered one on model, temperature, tool_choice, or the ceiling. */
|
|
10709
10719
|
function toolCompletionBody(cfg, messages, tools, opts) {
|
|
@@ -10730,7 +10740,7 @@ function toolCompletionBody(cfg, messages, tools, opts) {
|
|
|
10730
10740
|
function: fn
|
|
10731
10741
|
})),
|
|
10732
10742
|
tool_choice: opts?.toolChoice ?? "auto"
|
|
10733
|
-
} : {},
|
|
10743
|
+
} : opts?.toolChoice === "none" ? { tool_choice: "none" } : {},
|
|
10734
10744
|
...opts?.temperature !== void 0 ? { temperature: opts.temperature } : {},
|
|
10735
10745
|
...opts?.maxTokens ? { max_tokens: opts.maxTokens } : {},
|
|
10736
10746
|
...maxCompletionTokens !== void 0 ? { max_completion_tokens: maxCompletionTokens } : {},
|
|
@@ -11396,7 +11406,7 @@ function routerProfileExecution(profile, seam, mode) {
|
|
|
11396
11406
|
if (settings.stream === true && seam.complete !== void 0) throw new ValidationError$1("routerInlineExecutor: AgentProfile.model.metadata.stream requires the HTTP Router transport; RouterSeam.complete returns one buffered completion and cannot serve a stream");
|
|
11397
11407
|
const declaredTools = profile.tools ?? {};
|
|
11398
11408
|
const suppliedTools = seam.tools ?? [];
|
|
11399
|
-
if (settings.toolChoice !== void 0 && suppliedTools.length === 0) throw new ValidationError$1("routerInlineExecutor: AgentProfile.model.metadata.toolChoice
|
|
11409
|
+
if (settings.toolChoice !== void 0 && settings.toolChoice !== "none" && suppliedTools.length === 0) throw new ValidationError$1("routerInlineExecutor: AgentProfile.model.metadata.toolChoice must be \"none\" to run without enabled tools; auto and required select among tools");
|
|
11400
11410
|
const suppliedNames = /* @__PURE__ */ new Set();
|
|
11401
11411
|
for (const tool of suppliedTools) {
|
|
11402
11412
|
const name = tool.function.name;
|
|
@@ -11620,6 +11630,7 @@ const routerInlineExecutor = (spec, ctx) => {
|
|
|
11620
11630
|
}) : (profileExecution.stream === true ? streamRouterChatWithUsage : routerChatWithUsage)(routerTransportConfig(seam, model, profileExecution.retry), messages, {
|
|
11621
11631
|
...profileExecution.temperature !== void 0 ? { temperature: profileExecution.temperature } : {},
|
|
11622
11632
|
...linked ? { signal: linked } : {},
|
|
11633
|
+
...profileExecution.toolChoice === "none" ? { toolChoice: "none" } : {},
|
|
11623
11634
|
...routerGenerationOptions(profileExecution),
|
|
11624
11635
|
...requestIdentity
|
|
11625
11636
|
})));
|
|
@@ -16637,4 +16648,4 @@ async function noWinner(settled, rejection) {
|
|
|
16637
16648
|
}
|
|
16638
16649
|
export { failPendingAfter as $, worktreeCliProfileMaterialization as $t, readPromptOptions as A, readCodexRolloutSession as At, toolResultText as B, terminateProcessTreeAndConfirm as Bt, captureReusableExecutorConfig as C, bridgeAdmissionRefusal as Ct, createSteerableSandboxSession as D, addHarnessUsage as Dt, DEFAULT_SANDBOX_STEERING_MAX_TURNS as E, ROUTER_PRICE_SOURCE as Et, defaultSelectWinner as F, defaultRunCommand as Ft, providerAsExecutor as G, fullProfileMaterialization as Gt, routerBrain as H, assertProfileMaterializes as Ht, codeModeArguments as I, runSettledCommand as It, providerAsSandboxClient as J, promptModelProfileMaterialization as Jt, providerOutputOptions as K, profileMaterializationAxes$1 as Kt, codeModeModelOutput as L, runWorktreeHarness as Lt, createSandboxLineage as M, bridgeRuntimeAttachmentsKey as Mt, acquireSandbox as N, bridgeRuntimeEnvKey as Nt, runAgentRounds as O, createCodexRolloutStoreReader as Ot, TERMINAL_DECISIONS as P, bridgeStopSignalKey as Pt, createInbox as Q, unsupportedProfileDimensions as Qt, createCodeModeTools as R, LOCAL_HARNESSES as Rt, bindReusableExecutorExecutionId as S, verdictFromJudgeScore as St, snapshotExecutorConfig as T, priceTokens as Tt, createAgentEnvironmentProviderRegistry as U, controlProfileMaterialization as Ut, createRouterTranscript as V, assertProfileMaterialization as Vt, resolveAgentEnvironmentProvider as W, defineProfileMaterializationContract as Wt, createInPlaceCliExecutor as X, sandboxActProfileMaterialization as Xt, createWorktreeCliExecutor as Y, renderUnsupported as Yt, INBOX_RECEIPT_KEY as Z, sandboxProfileMaterialization as Zt, isDriverSpec as _, preflightPublicCoordination as _t, awaitRootWake as a, isPeerMailEnvelope as at, InMemorySpawnJournal as b, gateOnDeliverable as bt, readRunParking as c, taskToPrompt$1 as ct, bestDelivered as d, abandonablePending as dt, projectSandboxOutcome as en, AUTHORITY_MARKERS as et, runFinalizer as f, classifyDriverFailure as ft, driverExecutorFactory as g, upstreamUnavailableSignal as gt, driverChild as h, undispatchedCredentialExit as ht, assertRunParking as i, createPeerMailbox as it, createSandboxForSpec as j, createPushTraceSource as jt, assertBoxlessPromptOptions as k, harnessUsageIsEmpty as kt, sleepScopeWait as l, DriverAttemptsExhaustedError as lt, createRootHandle as m, transientFailureKind as mt, createSupervisor as n, PEER_MAIL_WIRE_KEY as nt, bindScopeParkingDrain as o, peerMailTools as ot, runTree as p, summarizeDriverAttempts as pt, LEAF_CONTINUATION_TASK as q, promptControlProfileMaterialization as qt, RunParkedError as r, claimsAuthority as rt, isRunParked as s, peerMailVerbNames as st, DEFAULT_MAX_DEPTH as t, readSandboxOutcome as tn, DEFAULT_PEER_MAIL_LIMITS as tt, withRunParking as u, HarnessTurnFailedError as ut, withDriverExecutor as v, CheckUnavailableError as vt, createExecutor as w, bridgeModelRouteRefusal as wt, createExecutorRegistry as x, mapExecutorResult as xt, InMemoryResultBlobStore as y, gateFactoryOnDeliverable as yt, runCodeMode as z, harnessInvocation as zt };
|
|
16639
16650
|
|
|
16640
|
-
//# sourceMappingURL=supervisor-
|
|
16651
|
+
//# sourceMappingURL=supervisor-1csecp8d.js.map
|