omnius 1.0.69 → 1.0.70
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 +10 -0
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -610921,6 +610921,15 @@ function renderTelegramMessage(username, text) {
|
|
|
610921
610921
|
process.stdout.write(` ${c3.cyan("✈")} ${c3.bold(`@${username}`)}: ${preview}
|
|
610922
610922
|
`);
|
|
610923
610923
|
}
|
|
610924
|
+
function renderTelegramIngressMessage(msg) {
|
|
610925
|
+
const body = (msg.text || summarizeTelegramMessageAttachments(msg) || "[non-text Telegram message]").replace(/\s+/g, " ").trim();
|
|
610926
|
+
const preview = body.length > 96 ? body.slice(0, 93) + "..." : body;
|
|
610927
|
+
const chat = msg.chatType !== "private" ? ` ${c3.dim(`[${msg.chatTitle || msg.chatType}]`)}` : "";
|
|
610928
|
+
process.stdout.write(
|
|
610929
|
+
` ${c3.cyan("✈")} ${c3.dim("heard")}${chat} ${c3.bold(`@${msg.username || "unknown"}`)} ${c3.dim(`[${telegramActorKindLabel(msg)}]`)}: ${preview}
|
|
610930
|
+
`
|
|
610931
|
+
);
|
|
610932
|
+
}
|
|
610924
610933
|
function renderTelegramSubAgentStart(username, text, isAdmin) {
|
|
610925
610934
|
const preview = text.length > 60 ? text.slice(0, 57) + "..." : text;
|
|
610926
610935
|
const mode = isAdmin ? c3.green("admin") : c3.yellow("public");
|
|
@@ -614947,6 +614956,7 @@ ${TELEGRAM_PUBLIC_ORCHESTRATOR_CONTRACT}`);
|
|
|
614947
614956
|
}
|
|
614948
614957
|
if (msg.chatType !== "private") {
|
|
614949
614958
|
this.recordTelegramUserMessage(msg, "ambient");
|
|
614959
|
+
this.tuiWrite(() => renderTelegramIngressMessage(msg));
|
|
614950
614960
|
}
|
|
614951
614961
|
if (startsWithSlash && !isAdminAuthSecretCommand && await this.handleAdminAuthCommand({ ...msg, text: normalizedCommandText })) {
|
|
614952
614962
|
return;
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "omnius",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.70",
|
|
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.70",
|
|
10
10
|
"bundleDependencies": [
|
|
11
11
|
"image-to-ascii"
|
|
12
12
|
],
|
package/package.json
CHANGED