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.
12 lines
396 B
TypeScript
12 lines
396 B
TypeScript
import { definePluginEntry } from "openclaw/plugin-sdk/plugin-entry";
|
|
import { buildMicrosoftFoundryProvider } from "./provider.js";
|
|
|
|
export default definePluginEntry({
|
|
id: "microsoft-foundry",
|
|
name: "Microsoft Foundry Provider",
|
|
description: "Microsoft Foundry provider with Entra ID and API key auth",
|
|
register(api) {
|
|
api.registerProvider(buildMicrosoftFoundryProvider());
|
|
},
|
|
});
|