@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.
|
@@ -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
|
|
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
|
-
|
|
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-
|
|
2826
|
+
//# sourceMappingURL=chunk-XR5ZXMYL.js.map
|