@iota-uz/sdk 0.4.35 → 0.4.37
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/bichat/index.cjs +12 -5
- package/dist/bichat/index.cjs.map +1 -1
- package/dist/bichat/index.mjs +12 -5
- package/dist/bichat/index.mjs.map +1 -1
- package/package.json +1 -1
- package/tailwind/compiled.css +1 -1
- package/tailwind/iota.css +40 -0
package/dist/bichat/index.cjs
CHANGED
|
@@ -3015,7 +3015,10 @@ var ChatMachine = class {
|
|
|
3015
3015
|
)
|
|
3016
3016
|
});
|
|
3017
3017
|
const normalized = normalizeRPCError(err, "Failed to send message");
|
|
3018
|
-
this._updateInput({
|
|
3018
|
+
this._updateInput({
|
|
3019
|
+
message: content,
|
|
3020
|
+
inputError: normalized.userMessage
|
|
3021
|
+
});
|
|
3019
3022
|
this._updateMessaging({
|
|
3020
3023
|
streamError: normalized.userMessage,
|
|
3021
3024
|
streamErrorRetryable: normalized.retryable
|
|
@@ -19714,10 +19717,14 @@ async function* sendMessage(deps, sessionId, content, attachments = [], signal,
|
|
|
19714
19717
|
} catch (err) {
|
|
19715
19718
|
if (err instanceof Error) {
|
|
19716
19719
|
if (err.name === "AbortError") {
|
|
19717
|
-
|
|
19718
|
-
|
|
19719
|
-
|
|
19720
|
-
|
|
19720
|
+
if (connectionTimedOut) {
|
|
19721
|
+
yield {
|
|
19722
|
+
type: "error",
|
|
19723
|
+
error: `Stream request timed out after ${deps.streamConnectTimeoutMs}ms`
|
|
19724
|
+
};
|
|
19725
|
+
} else {
|
|
19726
|
+
throw err;
|
|
19727
|
+
}
|
|
19721
19728
|
} else {
|
|
19722
19729
|
yield {
|
|
19723
19730
|
type: "error",
|