@mindstudio-ai/remy 0.1.205 → 0.1.206
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/headless.js +10 -2
- package/dist/index.js +10 -2
- package/package.json +1 -1
package/dist/headless.js
CHANGED
|
@@ -6894,7 +6894,11 @@ async function runTurn(params) {
|
|
|
6894
6894
|
});
|
|
6895
6895
|
break;
|
|
6896
6896
|
case "error":
|
|
6897
|
-
onEvent({
|
|
6897
|
+
onEvent({
|
|
6898
|
+
type: "error",
|
|
6899
|
+
error: friendlyError(event.error),
|
|
6900
|
+
...event.code ? { code: event.code } : {}
|
|
6901
|
+
});
|
|
6898
6902
|
return;
|
|
6899
6903
|
}
|
|
6900
6904
|
}
|
|
@@ -7873,7 +7877,11 @@ var HeadlessSession = class {
|
|
|
7873
7877
|
);
|
|
7874
7878
|
return;
|
|
7875
7879
|
case "error":
|
|
7876
|
-
this.emit(
|
|
7880
|
+
this.emit(
|
|
7881
|
+
"error",
|
|
7882
|
+
{ error: e.error, ...e.code ? { code: e.code } : {} },
|
|
7883
|
+
rid
|
|
7884
|
+
);
|
|
7877
7885
|
return;
|
|
7878
7886
|
}
|
|
7879
7887
|
};
|
package/dist/index.js
CHANGED
|
@@ -7569,7 +7569,11 @@ async function runTurn(params) {
|
|
|
7569
7569
|
});
|
|
7570
7570
|
break;
|
|
7571
7571
|
case "error":
|
|
7572
|
-
onEvent({
|
|
7572
|
+
onEvent({
|
|
7573
|
+
type: "error",
|
|
7574
|
+
error: friendlyError(event.error),
|
|
7575
|
+
...event.code ? { code: event.code } : {}
|
|
7576
|
+
});
|
|
7573
7577
|
return;
|
|
7574
7578
|
}
|
|
7575
7579
|
}
|
|
@@ -8699,7 +8703,11 @@ var init_headless = __esm({
|
|
|
8699
8703
|
);
|
|
8700
8704
|
return;
|
|
8701
8705
|
case "error":
|
|
8702
|
-
this.emit(
|
|
8706
|
+
this.emit(
|
|
8707
|
+
"error",
|
|
8708
|
+
{ error: e.error, ...e.code ? { code: e.code } : {} },
|
|
8709
|
+
rid
|
|
8710
|
+
);
|
|
8703
8711
|
return;
|
|
8704
8712
|
}
|
|
8705
8713
|
};
|