@tangle-network/agent-app 0.46.58 → 0.46.59
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.
|
@@ -112,7 +112,7 @@ import {
|
|
|
112
112
|
flattenHistory,
|
|
113
113
|
readSandboxBinaryBytes,
|
|
114
114
|
statSandboxFileSize
|
|
115
|
-
} from "../chunk-
|
|
115
|
+
} from "../chunk-WSRECTKA.js";
|
|
116
116
|
import "../chunk-MCYJON3F.js";
|
|
117
117
|
import "../chunk-LWSJK546.js";
|
|
118
118
|
import "../chunk-P5PIAQVS.js";
|
|
@@ -2219,16 +2219,13 @@ function mergeExtraMcp(appToolMcp, baseProfileMcp, extra) {
|
|
|
2219
2219
|
}
|
|
2220
2220
|
return { ...appToolMcp, ...extra ?? {} };
|
|
2221
2221
|
}
|
|
2222
|
-
function attachReasoningEffort(profile,
|
|
2222
|
+
function attachReasoningEffort(profile, _harness, effort) {
|
|
2223
2223
|
if (!effort || effort === "auto") return profile;
|
|
2224
2224
|
return {
|
|
2225
2225
|
...profile,
|
|
2226
|
-
|
|
2227
|
-
...profile.
|
|
2228
|
-
|
|
2229
|
-
...profile.extensions?.[harness] ?? {},
|
|
2230
|
-
reasoningEffort: effort
|
|
2231
|
-
}
|
|
2226
|
+
model: {
|
|
2227
|
+
...profile.model,
|
|
2228
|
+
reasoningEffort: effort
|
|
2232
2229
|
}
|
|
2233
2230
|
};
|
|
2234
2231
|
}
|
|
@@ -2461,7 +2458,8 @@ async function* streamSandboxPrompt(shell, box, message, options) {
|
|
|
2461
2458
|
const prompt = typeof message === "string" ? flattenHistory(message, options?.history) : mergeHistoryIntoParts(message, options?.history);
|
|
2462
2459
|
const appToolMcp = options?.appToolMcp ?? {};
|
|
2463
2460
|
const extraMcp = mergeExtraMcp(appToolMcp, options?.baseProfileMcp ?? {}, options?.extraMcp);
|
|
2464
|
-
const
|
|
2461
|
+
const fullProfile = shell.profile({ systemPrompt: options?.systemPrompt, extraMcp, harness });
|
|
2462
|
+
const profile = shell.deferProfileFiles ? splitDeferredProfileFiles(fullProfile).leanProfile : fullProfile;
|
|
2465
2463
|
const profileWithLimits = applyPromptTokenLimits(
|
|
2466
2464
|
attachReasoningEffort(profile, harness, options?.effort),
|
|
2467
2465
|
{
|
|
@@ -2656,8 +2654,10 @@ async function driveSandboxTurn(shell, box, message, options) {
|
|
|
2656
2654
|
const prompt = typeof message === "string" ? flattenHistory(message, options.history) : mergeHistoryIntoParts(message, options.history);
|
|
2657
2655
|
const appToolMcp = options.appToolMcp ?? {};
|
|
2658
2656
|
const extraMcp = mergeExtraMcp(appToolMcp, options.baseProfileMcp ?? {}, options.extraMcp);
|
|
2657
|
+
const fullProfile = shell.profile({ systemPrompt: options.systemPrompt, extraMcp, harness });
|
|
2658
|
+
const executionProfile = shell.deferProfileFiles ? splitDeferredProfileFiles(fullProfile).leanProfile : fullProfile;
|
|
2659
2659
|
const profile = attachReasoningEffort(
|
|
2660
|
-
|
|
2660
|
+
executionProfile,
|
|
2661
2661
|
harness,
|
|
2662
2662
|
options.effort
|
|
2663
2663
|
);
|
|
@@ -2834,4 +2834,4 @@ export {
|
|
|
2834
2834
|
isTerminalPromptEvent,
|
|
2835
2835
|
detectInteractiveQuestion
|
|
2836
2836
|
};
|
|
2837
|
-
//# sourceMappingURL=chunk-
|
|
2837
|
+
//# sourceMappingURL=chunk-WSRECTKA.js.map
|