libretto 0.6.34 → 0.6.36
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.
|
@@ -14,7 +14,10 @@ async function attemptWithRecovery(page, fn, logger, model) {
|
|
|
14
14
|
throw error;
|
|
15
15
|
}
|
|
16
16
|
if (!model) {
|
|
17
|
-
throw
|
|
17
|
+
throw new Error(
|
|
18
|
+
"Recovery was not attempted because no model is configured. Pass a LanguageModel as the fourth argument to attemptWithRecovery, or call the action directly without recovery.",
|
|
19
|
+
{ cause: error }
|
|
20
|
+
);
|
|
18
21
|
}
|
|
19
22
|
log.info("Action failed, attempting popup recovery", {
|
|
20
23
|
error: error instanceof Error ? error.message : String(error)
|
package/package.json
CHANGED
package/skills/libretto/SKILL.md
CHANGED
|
@@ -34,7 +34,10 @@ export async function attemptWithRecovery<T>(
|
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
if (!model) {
|
|
37
|
-
throw
|
|
37
|
+
throw new Error(
|
|
38
|
+
"Recovery was not attempted because no model is configured. Pass a LanguageModel as the fourth argument to attemptWithRecovery, or call the action directly without recovery.",
|
|
39
|
+
{ cause: error },
|
|
40
|
+
);
|
|
38
41
|
}
|
|
39
42
|
|
|
40
43
|
log.info("Action failed, attempting popup recovery", {
|