@pie-players/pie-section-player 0.2.2 → 0.2.3
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.
|
@@ -4328,10 +4328,24 @@ class ToolProviderRegistry {
|
|
|
4328
4328
|
* @throws Error if provider not registered
|
|
4329
4329
|
*/
|
|
4330
4330
|
async getProvider(t, n = !0) {
|
|
4331
|
+
console.log("[ToolProviderRegistry] getProvider called", {
|
|
4332
|
+
providerId: t,
|
|
4333
|
+
autoInitialize: n,
|
|
4334
|
+
isRegistered: this.providers.has(t),
|
|
4335
|
+
isInitialized: this.initialized.get(t),
|
|
4336
|
+
allProviderIds: Array.from(this.providers.keys())
|
|
4337
|
+
});
|
|
4331
4338
|
const o = this.providers.get(t);
|
|
4332
4339
|
if (!o)
|
|
4333
|
-
throw
|
|
4334
|
-
|
|
4340
|
+
throw console.error("[ToolProviderRegistry] Provider not found:", {
|
|
4341
|
+
requestedId: t,
|
|
4342
|
+
availableProviders: Array.from(this.providers.keys())
|
|
4343
|
+
}), new Error(`[ToolProviderRegistry] Provider "${t}" not registered`);
|
|
4344
|
+
return n && !this.initialized.get(t) && (console.log("[ToolProviderRegistry] Auto-initializing provider:", t), await this.initialize(t)), console.log("[ToolProviderRegistry] Returning provider:", {
|
|
4345
|
+
providerId: t,
|
|
4346
|
+
providerName: o.providerName,
|
|
4347
|
+
isReady: o.isReady()
|
|
4348
|
+
}), o;
|
|
4335
4349
|
}
|
|
4336
4350
|
/**
|
|
4337
4351
|
* Get all providers in a category
|