omnius 1.0.100 → 1.0.101
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/index.js +18 -30
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -564589,8 +564589,8 @@ var init_render = __esm({
|
|
|
564589
564589
|
BOX_BR2 = "╯";
|
|
564590
564590
|
BOX_H2 = "─";
|
|
564591
564591
|
BOX_V2 = "│";
|
|
564592
|
-
BOX_TJ_L2 = "
|
|
564593
|
-
BOX_TJ_R2 = "
|
|
564592
|
+
BOX_TJ_L2 = "┤";
|
|
564593
|
+
BOX_TJ_R2 = "├";
|
|
564594
564594
|
RESET2 = "\x1B[0m";
|
|
564595
564595
|
_contentWriteHook = null;
|
|
564596
564596
|
HINTS = [
|
|
@@ -613667,21 +613667,6 @@ function cleanTelegramVisibleReply(text, options2 = {}) {
|
|
|
613667
613667
|
if (!filtered) return "";
|
|
613668
613668
|
return dedupeTelegramVisibleReply(filtered);
|
|
613669
613669
|
}
|
|
613670
|
-
function summarizeTelegramInferenceError(message2) {
|
|
613671
|
-
if (/aborted due to timeout|aborterror|timed? out/i.test(message2)) {
|
|
613672
|
-
return "backend inference timed out before a reply was delivered";
|
|
613673
|
-
}
|
|
613674
|
-
if (/model ['"]?[^'"]+['"]? not found|not_found_error/i.test(message2)) {
|
|
613675
|
-
return "the configured model was not available on the selected Ollama runner";
|
|
613676
|
-
}
|
|
613677
|
-
if (/Backend HTTP 5\d\d/i.test(message2)) {
|
|
613678
|
-
return "the backend returned a transient server error";
|
|
613679
|
-
}
|
|
613680
|
-
if (/Backend HTTP 4\d\d/i.test(message2)) {
|
|
613681
|
-
return message2.slice(0, 180);
|
|
613682
|
-
}
|
|
613683
|
-
return message2.slice(0, 180) || "unknown backend failure";
|
|
613684
|
-
}
|
|
613685
613670
|
function dedupeTelegramVisibleReply(text) {
|
|
613686
613671
|
const paragraphs = text.split(/\n{2,}/);
|
|
613687
613672
|
const seenParagraphs = /* @__PURE__ */ new Set();
|
|
@@ -619808,11 +619793,12 @@ Join: ${newUrl}`);
|
|
|
619808
619793
|
this.tuiWrite(() => renderTelegramSubAgentError(msg.username, errMsg));
|
|
619809
619794
|
this.subAgentViewCallbacks?.onWrite(subAgent.viewId, `error: ${errMsg}`);
|
|
619810
619795
|
this.subAgentViewCallbacks?.onStatus(subAgent.viewId, "failed");
|
|
619811
|
-
if (subAgent.
|
|
619812
|
-
await
|
|
619796
|
+
if (subAgent.liveMessagePromise) {
|
|
619797
|
+
await subAgent.liveMessagePromise.catch(() => {
|
|
619813
619798
|
});
|
|
619814
|
-
}
|
|
619815
|
-
|
|
619799
|
+
}
|
|
619800
|
+
if (subAgent.liveMessageId && !msg.guestQueryId) {
|
|
619801
|
+
await this.deleteLiveMessage(msg.chatId, subAgent.liveMessageId).catch(() => {
|
|
619816
619802
|
});
|
|
619817
619803
|
}
|
|
619818
619804
|
} finally {
|
|
@@ -619917,11 +619903,12 @@ Join: ${newUrl}`);
|
|
|
619917
619903
|
this.tuiWrite(() => renderTelegramSubAgentError(msg.username, errMsg));
|
|
619918
619904
|
this.subAgentViewCallbacks?.onWrite(subAgent.viewId, `error: ${errMsg}`);
|
|
619919
619905
|
this.subAgentViewCallbacks?.onStatus(subAgent.viewId, "failed");
|
|
619920
|
-
if (subAgent.
|
|
619921
|
-
await
|
|
619906
|
+
if (subAgent.liveMessagePromise) {
|
|
619907
|
+
await subAgent.liveMessagePromise.catch(() => {
|
|
619922
619908
|
});
|
|
619923
|
-
}
|
|
619924
|
-
|
|
619909
|
+
}
|
|
619910
|
+
if (subAgent.liveMessageId && !msg.guestQueryId) {
|
|
619911
|
+
await this.deleteLiveMessage(msg.chatId, subAgent.liveMessageId).catch(() => {
|
|
619925
619912
|
});
|
|
619926
619913
|
}
|
|
619927
619914
|
} finally {
|
|
@@ -620041,12 +620028,13 @@ Join: ${newUrl}`);
|
|
|
620041
620028
|
this.tuiWrite(() => renderTelegramSubAgentError(msg.username, errMsg));
|
|
620042
620029
|
this.subAgentViewCallbacks?.onWrite(viewId, `error: ${errMsg}`);
|
|
620043
620030
|
this.subAgentViewCallbacks?.onStatus(viewId, "failed");
|
|
620044
|
-
|
|
620045
|
-
|
|
620031
|
+
const pendingLiveMessage = liveMessagePromise;
|
|
620032
|
+
if (pendingLiveMessage) {
|
|
620033
|
+
await pendingLiveMessage.catch(() => {
|
|
620046
620034
|
});
|
|
620047
|
-
}
|
|
620048
|
-
|
|
620049
|
-
await this.
|
|
620035
|
+
}
|
|
620036
|
+
if (liveMessageId && !msg.guestQueryId) {
|
|
620037
|
+
await this.deleteLiveMessage(msg.chatId, liveMessageId).catch(() => {
|
|
620050
620038
|
});
|
|
620051
620039
|
}
|
|
620052
620040
|
} finally {
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "omnius",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.101",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "omnius",
|
|
9
|
-
"version": "1.0.
|
|
9
|
+
"version": "1.0.101",
|
|
10
10
|
"bundleDependencies": [
|
|
11
11
|
"image-to-ascii"
|
|
12
12
|
],
|
package/package.json
CHANGED