@tangle-network/agent-app 0.47.14 → 0.47.15

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.
@@ -41,7 +41,7 @@ import {
41
41
  flattenHistory,
42
42
  readSandboxBinaryBytes,
43
43
  statSandboxFileSize
44
- } from "../chunk-3G4IUF3D.js";
44
+ } from "../chunk-XR5ZXMYL.js";
45
45
  import "../chunk-MCYJON3F.js";
46
46
  import "../chunk-LWSJK546.js";
47
47
  import "../chunk-P5PIAQVS.js";
@@ -2452,7 +2452,7 @@ async function resolveSandboxPromptBackend(shell, options, operation = "sandbox
2452
2452
  if (!options.profile && harness !== initialHarness) fullProfile = compose(harness);
2453
2453
  const explicitModel = trimOrNull(options.model);
2454
2454
  const profileModel = trimOrNull(fullProfile.model?.default);
2455
- const profileProvider = !explicitModel && profileModel ? trimOrNull(fullProfile.model?.provider) : null;
2455
+ const profileProvider = profileModel && (!explicitModel || explicitModel === profileModel) ? trimOrNull(fullProfile.model?.provider) : null;
2456
2456
  const model = requireTransportableModel(
2457
2457
  resolveModelSelection({
2458
2458
  ...shell.provider,
@@ -2470,7 +2470,9 @@ async function resolveSandboxPromptBackend(shell, options, operation = "sandbox
2470
2470
  const selectedProfile = {
2471
2471
  ...fullProfile,
2472
2472
  harness,
2473
- ...model ? { model: { ...fullProfile.model, default: model.model } } : {}
2473
+ // The materializer compares the profile and transport as provider-qualified
2474
+ // identities. Authored provider evidence has already served preflight above.
2475
+ ...model ? { model: { ...fullProfile.model, provider: model.provider, default: model.model } } : {}
2474
2476
  };
2475
2477
  const executionProfile = shell.deferProfileFiles && !options.profile ? splitDeferredProfileFiles(selectedProfile).leanProfile : selectedProfile;
2476
2478
  const profile = applyPromptTokenLimits(
@@ -2821,4 +2823,4 @@ export {
2821
2823
  isTerminalPromptEvent,
2822
2824
  detectInteractiveQuestion
2823
2825
  };
2824
- //# sourceMappingURL=chunk-3G4IUF3D.js.map
2826
+ //# sourceMappingURL=chunk-XR5ZXMYL.js.map