omnius 1.0.100 → 1.0.102
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 +23 -34
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -563250,17 +563250,17 @@ function buildTopBorder(title, metrics2, width) {
|
|
|
563250
563250
|
let metricsSegment;
|
|
563251
563251
|
let fillerWidth;
|
|
563252
563252
|
if (titleSpan + metricsSpan + 4 <= inner) {
|
|
563253
|
-
titleSegment = `${FG_BORDER}
|
|
563254
|
-
metricsSegment = metricsChip ? `${FG_BORDER}
|
|
563253
|
+
titleSegment = `${FG_BORDER}┤${FG_TITLE}${titleChip}${RESET}${FG_BORDER}├`;
|
|
563254
|
+
metricsSegment = metricsChip ? `${FG_BORDER}┤${FG_METRIC}${metricsChip}${RESET}${FG_BORDER}├` : "";
|
|
563255
563255
|
fillerWidth = inner - titleSpan - metricsSpan - 2;
|
|
563256
563256
|
} else if (titleSpan + 4 <= inner) {
|
|
563257
|
-
titleSegment = `${FG_BORDER}
|
|
563257
|
+
titleSegment = `${FG_BORDER}┤${FG_TITLE}${titleChip}${RESET}${FG_BORDER}├`;
|
|
563258
563258
|
metricsSegment = "";
|
|
563259
563259
|
fillerWidth = inner - titleSpan - 2;
|
|
563260
563260
|
} else {
|
|
563261
563261
|
const room = Math.max(3, inner - 8);
|
|
563262
563262
|
const truncated = titleVisible.length > room ? titleVisible.slice(0, Math.max(1, room - 1)) + "…" : titleVisible;
|
|
563263
|
-
titleSegment = `${FG_BORDER}
|
|
563263
|
+
titleSegment = `${FG_BORDER}┤${FG_TITLE} ${truncated} ${RESET}${FG_BORDER}├`;
|
|
563264
563264
|
metricsSegment = "";
|
|
563265
563265
|
fillerWidth = Math.max(0, inner - (truncated.length + 4) - 2);
|
|
563266
563266
|
}
|
|
@@ -564421,7 +564421,8 @@ var init_render = __esm({
|
|
|
564421
564421
|
green: (t2) => ansi2("32", t2),
|
|
564422
564422
|
yellow: (t2) => ansi2("33", t2),
|
|
564423
564423
|
blue: (t2) => ansi2("34", t2),
|
|
564424
|
-
magenta: (t2) => ansi2("
|
|
564424
|
+
magenta: (t2) => ansi2("38;5;198", t2),
|
|
564425
|
+
// deep pink
|
|
564425
564426
|
cyan: (t2) => ansi2("36", t2),
|
|
564426
564427
|
white: (t2) => ansi2("37", t2),
|
|
564427
564428
|
bgBlue: (t2) => ansi2("44", t2),
|
|
@@ -564434,7 +564435,7 @@ var init_render = __esm({
|
|
|
564434
564435
|
sub: (t2) => fg256(tuiTextDim(), t2),
|
|
564435
564436
|
/** Dim text — readable grey for hints/placeholders */
|
|
564436
564437
|
hint: (t2) => fg256(tuiTextDim(), t2),
|
|
564437
|
-
/** Error text —
|
|
564438
|
+
/** Error text — deep pink for errors */
|
|
564438
564439
|
error: (t2) => fg256(198, t2),
|
|
564439
564440
|
/** Warning text — warm orange for warnings */
|
|
564440
564441
|
warn: (t2) => fg256(214, t2),
|
|
@@ -613667,21 +613668,6 @@ function cleanTelegramVisibleReply(text, options2 = {}) {
|
|
|
613667
613668
|
if (!filtered) return "";
|
|
613668
613669
|
return dedupeTelegramVisibleReply(filtered);
|
|
613669
613670
|
}
|
|
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
613671
|
function dedupeTelegramVisibleReply(text) {
|
|
613686
613672
|
const paragraphs = text.split(/\n{2,}/);
|
|
613687
613673
|
const seenParagraphs = /* @__PURE__ */ new Set();
|
|
@@ -619808,11 +619794,12 @@ Join: ${newUrl}`);
|
|
|
619808
619794
|
this.tuiWrite(() => renderTelegramSubAgentError(msg.username, errMsg));
|
|
619809
619795
|
this.subAgentViewCallbacks?.onWrite(subAgent.viewId, `error: ${errMsg}`);
|
|
619810
619796
|
this.subAgentViewCallbacks?.onStatus(subAgent.viewId, "failed");
|
|
619811
|
-
if (subAgent.
|
|
619812
|
-
await
|
|
619797
|
+
if (subAgent.liveMessagePromise) {
|
|
619798
|
+
await subAgent.liveMessagePromise.catch(() => {
|
|
619813
619799
|
});
|
|
619814
|
-
}
|
|
619815
|
-
|
|
619800
|
+
}
|
|
619801
|
+
if (subAgent.liveMessageId && !msg.guestQueryId) {
|
|
619802
|
+
await this.deleteLiveMessage(msg.chatId, subAgent.liveMessageId).catch(() => {
|
|
619816
619803
|
});
|
|
619817
619804
|
}
|
|
619818
619805
|
} finally {
|
|
@@ -619917,11 +619904,12 @@ Join: ${newUrl}`);
|
|
|
619917
619904
|
this.tuiWrite(() => renderTelegramSubAgentError(msg.username, errMsg));
|
|
619918
619905
|
this.subAgentViewCallbacks?.onWrite(subAgent.viewId, `error: ${errMsg}`);
|
|
619919
619906
|
this.subAgentViewCallbacks?.onStatus(subAgent.viewId, "failed");
|
|
619920
|
-
if (subAgent.
|
|
619921
|
-
await
|
|
619907
|
+
if (subAgent.liveMessagePromise) {
|
|
619908
|
+
await subAgent.liveMessagePromise.catch(() => {
|
|
619922
619909
|
});
|
|
619923
|
-
}
|
|
619924
|
-
|
|
619910
|
+
}
|
|
619911
|
+
if (subAgent.liveMessageId && !msg.guestQueryId) {
|
|
619912
|
+
await this.deleteLiveMessage(msg.chatId, subAgent.liveMessageId).catch(() => {
|
|
619925
619913
|
});
|
|
619926
619914
|
}
|
|
619927
619915
|
} finally {
|
|
@@ -620041,12 +620029,13 @@ Join: ${newUrl}`);
|
|
|
620041
620029
|
this.tuiWrite(() => renderTelegramSubAgentError(msg.username, errMsg));
|
|
620042
620030
|
this.subAgentViewCallbacks?.onWrite(viewId, `error: ${errMsg}`);
|
|
620043
620031
|
this.subAgentViewCallbacks?.onStatus(viewId, "failed");
|
|
620044
|
-
|
|
620045
|
-
|
|
620032
|
+
const pendingLiveMessage = liveMessagePromise;
|
|
620033
|
+
if (pendingLiveMessage) {
|
|
620034
|
+
await pendingLiveMessage.catch(() => {
|
|
620046
620035
|
});
|
|
620047
|
-
}
|
|
620048
|
-
|
|
620049
|
-
await this.
|
|
620036
|
+
}
|
|
620037
|
+
if (liveMessageId && !msg.guestQueryId) {
|
|
620038
|
+
await this.deleteLiveMessage(msg.chatId, liveMessageId).catch(() => {
|
|
620050
620039
|
});
|
|
620051
620040
|
}
|
|
620052
620041
|
} finally {
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "omnius",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.102",
|
|
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.102",
|
|
10
10
|
"bundleDependencies": [
|
|
11
11
|
"image-to-ascii"
|
|
12
12
|
],
|
package/package.json
CHANGED