@standardagents/builder 0.25.0 → 0.25.1
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.
- package/dist/built-in-routes.js +6 -1
- package/dist/built-in-routes.js.map +1 -1
- package/dist/index.js +43 -7
- package/dist/index.js.map +1 -1
- package/dist/plugin.js +43 -7
- package/dist/plugin.js.map +1 -1
- package/package.json +5 -5
package/dist/built-in-routes.js
CHANGED
|
@@ -70248,7 +70248,12 @@ var icon_get_default = defineController2(async ({ params, url }) => {
|
|
|
70248
70248
|
if (!providerName) {
|
|
70249
70249
|
return Response.json({ error: "Provider name is required" }, { status: 400 });
|
|
70250
70250
|
}
|
|
70251
|
-
|
|
70251
|
+
let factory = null;
|
|
70252
|
+
try {
|
|
70253
|
+
factory = await loadProviderFactory(providerName);
|
|
70254
|
+
} catch (error) {
|
|
70255
|
+
console.error(`Error loading provider factory for ${providerName}:`, error);
|
|
70256
|
+
}
|
|
70252
70257
|
if (!factory) {
|
|
70253
70258
|
return new Response(placeholderSvg(providerName), {
|
|
70254
70259
|
headers: { "Content-Type": "image/svg+xml", "Cache-Control": ICON_CACHE_CONTROL }
|