omnius 1.0.669 → 1.0.670

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
@@ -701364,6 +701364,7 @@ var init_steering_stream_filter = __esm({
701364
701364
  if (whitespace > 0) this.buffer = this.buffer.slice(whitespace);
701365
701365
  if (!this.buffer) break;
701366
701366
  const upper = this.buffer.toUpperCase();
701367
+ if (!final2 && upper === CLOSE_STEM) break;
701367
701368
  if (upper.startsWith(CLOSE_STEM)) {
701368
701369
  this.buffer = this.buffer.slice(CLOSE_STEM.length);
701369
701370
  if (this.buffer.startsWith("]")) this.buffer = this.buffer.slice(1);
@@ -792742,6 +792743,27 @@ arguments=` : ""}` + (chunk.toolCallArgs ?? "");
792742
792743
  validateTelegramInteractionDecision(decision2, packet) {
792743
792744
  return this.validateTelegramInteractionDecisionDetailed(decision2, packet).decision;
792744
792745
  }
792746
+ /**
792747
+ * Materialize identity fields that are logical consequences of the model's
792748
+ * selected reply basis. The model remains the sole owner of should_reply
792749
+ * and reply_basis. Once it selects direct_turn, however, self_role and the
792750
+ * self actor citation are redundant representations of the same decision.
792751
+ * Reconcile those fields locally instead of rejecting an otherwise valid
792752
+ * model-authored reply decision or spending a second inference on it.
792753
+ */
792754
+ normalizeTelegramInteractionDecisionImplications(decision2, packet) {
792755
+ if (decision2.replyBasis !== "direct_turn") return decision2;
792756
+ return {
792757
+ ...decision2,
792758
+ addressedActorKeys: [
792759
+ .../* @__PURE__ */ new Set([
792760
+ ...decision2.addressedActorKeys ?? [],
792761
+ packet.selfActorKey
792762
+ ])
792763
+ ],
792764
+ selfRole: "addressee"
792765
+ };
792766
+ }
792745
792767
  bindTrustedTelegramDecision(decision2, packet) {
792746
792768
  const bound = {
792747
792769
  ...decision2,
@@ -792806,10 +792828,14 @@ arguments=` : ""}` + (chunk.toolCallArgs ?? "");
792806
792828
  requireShouldReply: true
792807
792829
  });
792808
792830
  if (parsed && evidencePacket) parsed.inputId = evidencePacket.inputId;
792809
- const validation = parsed && evidencePacket ? this.validateTelegramInteractionDecisionDetailed(
792831
+ const normalized4 = parsed && evidencePacket ? this.normalizeTelegramInteractionDecisionImplications(
792810
792832
  parsed,
792811
792833
  evidencePacket
792812
- ) : { decision: parsed, issues: [] };
792834
+ ) : parsed;
792835
+ const validation = normalized4 && evidencePacket ? this.validateTelegramInteractionDecisionDetailed(
792836
+ normalized4,
792837
+ evidencePacket
792838
+ ) : { decision: normalized4, issues: [] };
792813
792839
  const validated = validation.decision;
792814
792840
  if (!validated) {
792815
792841
  if (diagnostics) {
@@ -793404,9 +793430,13 @@ ${this.quoteTelegramContextBlock(msg.text, 1200)}`
793404
793430
  requireShouldReply: true
793405
793431
  });
793406
793432
  if (parsed) parsed.inputId = evidencePacket.inputId;
793407
- const initialValidation = parsed ? this.validateTelegramInteractionDecisionDetailed(
793433
+ const normalized4 = parsed ? this.normalizeTelegramInteractionDecisionImplications(
793408
793434
  parsed,
793409
793435
  evidencePacket
793436
+ ) : null;
793437
+ const initialValidation = normalized4 ? this.validateTelegramInteractionDecisionDetailed(
793438
+ normalized4,
793439
+ evidencePacket
793410
793440
  ) : {
793411
793441
  decision: null,
793412
793442
  issues: []
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "omnius",
3
- "version": "1.0.669",
3
+ "version": "1.0.670",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "omnius",
9
- "version": "1.0.669",
9
+ "version": "1.0.670",
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.669",
3
+ "version": "1.0.670",
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",