omnius 1.0.665 → 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 CHANGED
@@ -792463,6 +792463,26 @@ arguments=` : ""}` + (chunk.toolCallArgs ?? "");
792463
792463
  validateTelegramInteractionDecision(decision2, packet) {
792464
792464
  return this.validateTelegramInteractionDecisionDetailed(decision2, packet).decision;
792465
792465
  }
792466
+ /**
792467
+ * Materialize fields that are logical consequences of the model's chosen
792468
+ * reply basis. The model still decides whether to reply and why. Once it
792469
+ * chooses direct_turn, however, asking it to repeat "self is an addressee"
792470
+ * in two additional fields creates three representations of one decision.
792471
+ * A disagreement between those copies must not spend another inference.
792472
+ */
792473
+ normalizeTelegramInteractionDecisionImplications(decision2, packet) {
792474
+ if (decision2.replyBasis !== "direct_turn") return decision2;
792475
+ return {
792476
+ ...decision2,
792477
+ addressedActorKeys: [
792478
+ .../* @__PURE__ */ new Set([
792479
+ ...decision2.addressedActorKeys ?? [],
792480
+ packet.selfActorKey
792481
+ ])
792482
+ ],
792483
+ selfRole: "addressee"
792484
+ };
792485
+ }
792466
792486
  bindTrustedTelegramDecision(decision2, packet) {
792467
792487
  const bound = {
792468
792488
  ...decision2,
@@ -792527,10 +792547,14 @@ arguments=` : ""}` + (chunk.toolCallArgs ?? "");
792527
792547
  requireShouldReply: true
792528
792548
  });
792529
792549
  if (parsed && evidencePacket) parsed.inputId = evidencePacket.inputId;
792530
- const validation = parsed && evidencePacket ? this.validateTelegramInteractionDecisionDetailed(
792550
+ const normalized4 = parsed && evidencePacket ? this.normalizeTelegramInteractionDecisionImplications(
792531
792551
  parsed,
792532
792552
  evidencePacket
792533
- ) : { decision: parsed, issues: [] };
792553
+ ) : parsed;
792554
+ const validation = normalized4 && evidencePacket ? this.validateTelegramInteractionDecisionDetailed(
792555
+ normalized4,
792556
+ evidencePacket
792557
+ ) : { decision: normalized4, issues: [] };
792534
792558
  const validated = validation.decision;
792535
792559
  if (!validated) {
792536
792560
  if (diagnostics) {
@@ -793122,9 +793146,13 @@ ${this.quoteTelegramContextBlock(msg.text, 1200)}`
793122
793146
  requireShouldReply: true
793123
793147
  });
793124
793148
  if (parsed) parsed.inputId = evidencePacket.inputId;
793125
- const initialValidation = parsed ? this.validateTelegramInteractionDecisionDetailed(
793149
+ const normalized4 = parsed ? this.normalizeTelegramInteractionDecisionImplications(
793126
793150
  parsed,
793127
793151
  evidencePacket
793152
+ ) : null;
793153
+ const initialValidation = normalized4 ? this.validateTelegramInteractionDecisionDetailed(
793154
+ normalized4,
793155
+ evidencePacket
793128
793156
  ) : {
793129
793157
  decision: null,
793130
793158
  issues: []
@@ -794393,7 +794421,7 @@ ${TELEGRAM_PUBLIC_ORCHESTRATOR_CONTRACT}`
794393
794421
  }
794394
794422
  }
794395
794423
  shouldUseTelegramPublicProgressMessage(msg, toolContext) {
794396
- 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;
794397
794425
  }
794398
794426
  renderTelegramPublicProgressHTML(subAgent, msg, phase) {
794399
794427
  const elapsedSec = Math.max(
@@ -796273,6 +796301,7 @@ ${errMsg}`
796273
796301
  let lastViewWriteMs = 0;
796274
796302
  let liveMessagePromise = null;
796275
796303
  const progressLines = [];
796304
+ const usePublicProgressMessage = this.shouldUseTelegramPublicProgressMessage(msg, toolContext);
796276
796305
  this.activeChatViews.add(viewId);
796277
796306
  this.activeChatSessions.add(sessionKey);
796278
796307
  this.refreshActiveTelegramInteractionCount();
@@ -796303,7 +796332,7 @@ ${errMsg}`
796303
796332
  `live inference: chat reply (${this.interactionMode})`
796304
796333
  )
796305
796334
  );
796306
- if (this.shouldUseTelegramPublicProgressMessage(msg, toolContext)) {
796335
+ if (usePublicProgressMessage) {
796307
796336
  const initialHtml = [
796308
796337
  `<b>Working</b>`,
796309
796338
  `<code>[------------]</code> 0s`,
@@ -796339,7 +796368,7 @@ ${errMsg}`
796339
796368
  `stream: ${sanitizeTelegramProgressText(nextText, 180)}`
796340
796369
  );
796341
796370
  }
796342
- if (liveMessageId && !msg.guestQueryId && now2 - lastEditMs > 900) {
796371
+ if (usePublicProgressMessage && liveMessageId && !msg.guestQueryId && now2 - lastEditMs > 900) {
796343
796372
  lastEditMs = now2;
796344
796373
  const html = renderTelegramLiveProgressHTML(
796345
796374
  progressLines,
@@ -796350,7 +796379,7 @@ ${errMsg}`
796350
796379
  () => {
796351
796380
  }
796352
796381
  );
796353
- } else if (!liveMessageId && !liveMessagePromise && !msg.guestQueryId) {
796382
+ } else if (usePublicProgressMessage && !liveMessageId && !liveMessagePromise && !msg.guestQueryId) {
796354
796383
  const html = renderTelegramLiveProgressHTML(
796355
796384
  progressLines,
796356
796385
  accumulated
@@ -796908,6 +796937,12 @@ ${creativeWorkspace}` : ""
796908
796937
  }
796909
796938
  return;
796910
796939
  }
796940
+ if (!this.shouldUseTelegramPublicProgressMessage(
796941
+ msg,
796942
+ subAgent.toolContext
796943
+ )) {
796944
+ return;
796945
+ }
796911
796946
  const html = renderTelegramLiveProgressHTML(
796912
796947
  subAgent.intermediateLines,
796913
796948
  subAgent.visibleReplyText || subAgent.accumulated
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "omnius",
3
- "version": "1.0.665",
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.665",
9
+ "version": "1.0.667",
10
10
  "bundleDependencies": [
11
11
  "image-to-ascii"
12
12
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omnius",
3
- "version": "1.0.665",
3
+ "version": "1.0.667",
4
4
  "description": "AI coding agent powered by open-source models (Ollama/vLLM) — interactive TUI with agentic tool-calling loop",
5
5
  "type": "module",
6
6
  "main": "./dist/library.js",