@pie-players/pie-section-player 0.2.1 → 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
|
|
@@ -5585,6 +5599,7 @@ const parsePackageName$2 = (e) => {
|
|
|
5585
5599
|
};
|
|
5586
5600
|
}, getPackageWithoutVersion$2 = (e) => e.split("+").map((t) => parsePackageName$2(t).name).join("+");
|
|
5587
5601
|
let logger$7;
|
|
5602
|
+
const DEFAULT_BUNDLE_HOST$1 = "https://proxy.pie-api.com/bundles/";
|
|
5588
5603
|
typeof window < "u" && !window.pieHelpers && (window.pieHelpers = {
|
|
5589
5604
|
loadingScripts: {},
|
|
5590
5605
|
loadingPromises: {}
|
|
@@ -5603,8 +5618,11 @@ let IifePieLoader$1 = class {
|
|
|
5603
5618
|
getBundleUrl(t, n, o) {
|
|
5604
5619
|
if (o?.url)
|
|
5605
5620
|
return logger$7.debug("Using explicit bundle URL from config:", o.url), o.url;
|
|
5606
|
-
const i = Object.values(t).join("+")
|
|
5607
|
-
|
|
5621
|
+
const i = Object.values(t).join("+");
|
|
5622
|
+
let a = this.config.bundleHost || DEFAULT_BUNDLE_HOST$1;
|
|
5623
|
+
a = a.trim(), a = a.replace(/\/+$/, "") + "/";
|
|
5624
|
+
const l = `${a}${encodeURI(i)}/${n}`;
|
|
5625
|
+
return logger$7.debug("Using bundle host URL:", l), l;
|
|
5608
5626
|
}
|
|
5609
5627
|
/**
|
|
5610
5628
|
* Load an IIFE bundle from the specified URL
|
|
@@ -79875,8 +79893,11 @@ class IifePieLoader {
|
|
|
79875
79893
|
getBundleUrl(t, n, o) {
|
|
79876
79894
|
if (o?.url)
|
|
79877
79895
|
return logger$5$1.debug("Using explicit bundle URL from config:", o.url), o.url;
|
|
79878
|
-
const i = Object.values(t).join("+")
|
|
79879
|
-
|
|
79896
|
+
const i = Object.values(t).join("+");
|
|
79897
|
+
let a = this.config.bundleHost || DEFAULT_BUNDLE_HOST;
|
|
79898
|
+
a = a.trim(), a = a.replace(/\/+$/, "") + "/";
|
|
79899
|
+
const l = `${a}${encodeURI(i)}/${n}`;
|
|
79900
|
+
return logger$5$1.debug("Using bundle host URL:", l), l;
|
|
79880
79901
|
}
|
|
79881
79902
|
/**
|
|
79882
79903
|
* Load an IIFE bundle from the specified URL
|