omnius 1.0.665 → 1.0.666
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 +31 -3
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
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
|
|
792550
|
+
const normalized4 = parsed && evidencePacket ? this.normalizeTelegramInteractionDecisionImplications(
|
|
792531
792551
|
parsed,
|
|
792532
792552
|
evidencePacket
|
|
792533
|
-
) :
|
|
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
|
|
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: []
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "omnius",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.666",
|
|
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.666",
|
|
10
10
|
"bundleDependencies": [
|
|
11
11
|
"image-to-ascii"
|
|
12
12
|
],
|
package/package.json
CHANGED