@tangle-network/agent-app 0.46.58 → 0.46.60

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.
@@ -0,0 +1,7 @@
1
+ import {
2
+ VaultPane
3
+ } from "./chunk-ZNLASEO3.js";
4
+ export {
5
+ VaultPane
6
+ };
7
+ //# sourceMappingURL=VaultPane-QZC3YKQG.js.map
@@ -112,7 +112,7 @@ import {
112
112
  flattenHistory,
113
113
  readSandboxBinaryBytes,
114
114
  statSandboxFileSize
115
- } from "../chunk-LKZBMDYM.js";
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, harness, effort) {
2222
+ function attachReasoningEffort(profile, _harness, effort) {
2223
2223
  if (!effort || effort === "auto") return profile;
2224
2224
  return {
2225
2225
  ...profile,
2226
- extensions: {
2227
- ...profile.extensions ?? {},
2228
- [harness]: {
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 profile = shell.profile({ systemPrompt: options?.systemPrompt, extraMcp, harness });
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
- shell.profile({ systemPrompt: options.systemPrompt, extraMcp, harness }),
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-LKZBMDYM.js.map
2837
+ //# sourceMappingURL=chunk-WSRECTKA.js.map