8 Commits

Author SHA1 Message Date
haxudev
b7876c9609 Microsoft Foundry: split provider modules and harden runtime auth
Split the provider into focused auth, onboarding, CLI, runtime, and shared modules so the Entra ID flow is easier to review and maintain. Add Foundry-specific tests, preserve Azure CLI error details, move token refresh off the synchronous request path, and dedupe concurrent Entra token refreshes so onboarding and GPT-5 runtime behavior stay reliable.
2026-03-19 23:32:28 +08:00
MetaX e|acc
7696a86e10
Update extensions/microsoft-foundry/index.ts
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2026-03-19 18:55:17 +08:00
haxudev
41cc7c8bf1 Microsoft Foundry: tighten onboarding retry and model selection hooks
Only retry Azure login with an explicit tenant when the CLI failure actually points to tenant or subscription scope, keep HTTP 400 connection checks informative without treating them as a silent success, and move the model-selection hook onto the provider so manual Foundry setups can preserve GPT-5 family hints and resolve the right runtime endpoint.
2026-03-19 18:36:33 +08:00
haxudev
0c1efec1c9 Microsoft Foundry: use active model hint at runtime
Prefer the currently selected model hint during runtime auth refresh so switching Foundry deployments cannot reuse stale onboarding metadata and route requests to the wrong GPT-5 or non-GPT-5 endpoint.
2026-03-19 16:52:32 +08:00
haxudev
27fe74646c Microsoft Foundry: address PR review findings
Fix the renamed workspace path in pnpm-lock, make onboarding test and runtime routing respect the underlying model family for GPT-5 deployments, configure the API-key path with provider metadata, replace shell-built az commands with argument-based execution, and scope the Entra token cache by tenant/subscription so the provider behaves correctly across Foundry setups.
2026-03-19 16:00:29 +08:00
haxudev
ec89a8efee Microsoft Foundry: streamline onboarding and GPT-5 runtime
Handle Windows az device-code login, tenant fallback, and Azure resource/deployment discovery so onboard can reuse existing Microsoft Foundry setups without manual endpoint entry. Normalize GPT-5 deployments onto the Foundry responses base URL at selection and runtime auth time, and fall back to hard links for Windows plugin staging so local builds and chats work end-to-end.
2026-03-19 15:04:58 +08:00
haxudev
0c9c874241 fix: use cross-platform az CLI detection (az version instead of which) 2026-03-19 15:04:58 +08:00
haxudev
a0c6a614dc rename: azure-foundry → microsoft-foundry
Rebrand to match Microsoft Foundry product name.
Provider ID: microsoft-foundry
All labels, group IDs, and references updated.
2026-03-19 15:04:58 +08:00