omnius 1.0.666 → 1.0.667
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 +11 -4
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -794421,7 +794421,7 @@ ${TELEGRAM_PUBLIC_ORCHESTRATOR_CONTRACT}`
|
|
|
794421
794421
|
}
|
|
794422
794422
|
}
|
|
794423
794423
|
shouldUseTelegramPublicProgressMessage(msg, toolContext) {
|
|
794424
|
-
return toolContext === "telegram-public" && msg.chatType !== "private" && !msg.guestQueryId;
|
|
794424
|
+
return process.env["OMNIUS_TELEGRAM_PUBLIC_PROGRESS_MESSAGES"] === "1" && toolContext === "telegram-public" && msg.chatType !== "private" && !msg.guestQueryId;
|
|
794425
794425
|
}
|
|
794426
794426
|
renderTelegramPublicProgressHTML(subAgent, msg, phase) {
|
|
794427
794427
|
const elapsedSec = Math.max(
|
|
@@ -796301,6 +796301,7 @@ ${errMsg}`
|
|
|
796301
796301
|
let lastViewWriteMs = 0;
|
|
796302
796302
|
let liveMessagePromise = null;
|
|
796303
796303
|
const progressLines = [];
|
|
796304
|
+
const usePublicProgressMessage = this.shouldUseTelegramPublicProgressMessage(msg, toolContext);
|
|
796304
796305
|
this.activeChatViews.add(viewId);
|
|
796305
796306
|
this.activeChatSessions.add(sessionKey);
|
|
796306
796307
|
this.refreshActiveTelegramInteractionCount();
|
|
@@ -796331,7 +796332,7 @@ ${errMsg}`
|
|
|
796331
796332
|
`live inference: chat reply (${this.interactionMode})`
|
|
796332
796333
|
)
|
|
796333
796334
|
);
|
|
796334
|
-
if (
|
|
796335
|
+
if (usePublicProgressMessage) {
|
|
796335
796336
|
const initialHtml = [
|
|
796336
796337
|
`<b>Working</b>`,
|
|
796337
796338
|
`<code>[------------]</code> 0s`,
|
|
@@ -796367,7 +796368,7 @@ ${errMsg}`
|
|
|
796367
796368
|
`stream: ${sanitizeTelegramProgressText(nextText, 180)}`
|
|
796368
796369
|
);
|
|
796369
796370
|
}
|
|
796370
|
-
if (liveMessageId && !msg.guestQueryId && now2 - lastEditMs > 900) {
|
|
796371
|
+
if (usePublicProgressMessage && liveMessageId && !msg.guestQueryId && now2 - lastEditMs > 900) {
|
|
796371
796372
|
lastEditMs = now2;
|
|
796372
796373
|
const html = renderTelegramLiveProgressHTML(
|
|
796373
796374
|
progressLines,
|
|
@@ -796378,7 +796379,7 @@ ${errMsg}`
|
|
|
796378
796379
|
() => {
|
|
796379
796380
|
}
|
|
796380
796381
|
);
|
|
796381
|
-
} else if (!liveMessageId && !liveMessagePromise && !msg.guestQueryId) {
|
|
796382
|
+
} else if (usePublicProgressMessage && !liveMessageId && !liveMessagePromise && !msg.guestQueryId) {
|
|
796382
796383
|
const html = renderTelegramLiveProgressHTML(
|
|
796383
796384
|
progressLines,
|
|
796384
796385
|
accumulated
|
|
@@ -796936,6 +796937,12 @@ ${creativeWorkspace}` : ""
|
|
|
796936
796937
|
}
|
|
796937
796938
|
return;
|
|
796938
796939
|
}
|
|
796940
|
+
if (!this.shouldUseTelegramPublicProgressMessage(
|
|
796941
|
+
msg,
|
|
796942
|
+
subAgent.toolContext
|
|
796943
|
+
)) {
|
|
796944
|
+
return;
|
|
796945
|
+
}
|
|
796939
796946
|
const html = renderTelegramLiveProgressHTML(
|
|
796940
796947
|
subAgent.intermediateLines,
|
|
796941
796948
|
subAgent.visibleReplyText || subAgent.accumulated
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "omnius",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.667",
|
|
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.667",
|
|
10
10
|
"bundleDependencies": [
|
|
11
11
|
"image-to-ascii"
|
|
12
12
|
],
|
package/package.json
CHANGED