@danhachuel/thunderbolt 0.5.23 → 0.5.24
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.
|
@@ -200,11 +200,11 @@ def run_direct_canva_thumbnail(
|
|
|
200
200
|
"user_intent": "Find an existing Canva design to edit as a Thunderbolt thumbnail.",
|
|
201
201
|
}))
|
|
202
202
|
candidates = _items(result)
|
|
203
|
-
if not candidates:
|
|
204
|
-
raise CanvaMCPError("Canva não encontrou designs para as palavras-chave da thumbnail.")
|
|
205
203
|
candidates = [candidate for candidate in candidates if _design_id(candidate)]
|
|
206
|
-
if not candidates:
|
|
204
|
+
if not candidates and _items(result):
|
|
207
205
|
raise CanvaMCPError("A pesquisa Canva devolveu um design sem ID.")
|
|
206
|
+
if not candidates and not ({"generate-design", "generate_design"} & available):
|
|
207
|
+
raise CanvaMCPError("Canva não encontrou designs para as palavras-chave da thumbnail.")
|
|
208
208
|
|
|
209
209
|
get_name = "get-design-content" if "get-design-content" in available else "get_design_content"
|
|
210
210
|
selected = None
|
package/package.json
CHANGED