@ours.network/tg-connector 0.2.1-nightly.1 → 0.3.1

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.
@@ -541,7 +541,30 @@ application actor loads libraries
541
541
  // what makes an existing contact auto-migrate to the double ratchet once both
542
542
  // sides advertise (§5.4). No handler needed (unlike $supported): these ids
543
543
  // gate traffic shaping only and never route through dispatch.
544
- $advertise -> [ a2a_capabilities::cap_e2e, a2a_capabilities::cap_e2e_migrate ],
544
+ //
545
+ // cap_e2e_rekey (core 0.11): lets a peer REPAIR a diverged DR session with
546
+ // us instead of waiting for one to re-establish by accident. A peer that
547
+ // detects divergence checks peer_supports_rekey (a2a_messaging.mm:1100 at
548
+ // core pin edbb11ad) on US before it will send anything at all — so while
549
+ // this id was absent, three separate paths were hard-stopped against us:
550
+ // maybe_init_rekey (:1211, never mints), redrive_unacked_actions (:1114,
551
+ // returns []) and rekey_ping_actions (:1143, returns []). The responder is
552
+ // core-side and library-routed (e2e_rekey_request_tx, :100 -> trn :3827 ->
553
+ // handle_e2e_rekey_request :3751), inherited by any actor loading
554
+ // a2a_messaging, so this advertisement is all that was missing.
555
+ //
556
+ // SAFETY — this id is a VERSION CLAIM, not just "I answer rekey": both
557
+ // cap-gates above exist because a pre-0.11 peer would deposit unrecognized
558
+ // duplicates on redrive and would render a $rekey_ping bootstrap AS AN APP
559
+ // MESSAGE. Advertising it from a pre-0.11 core would therefore be a harmful
560
+ // false yes. Checked before adding: the deployed connector packet carries
561
+ // core.e2e.rekey, rekey_ping, delivered_wire, unacked_e2e and
562
+ // e2e_rekey_request — i.e. its core already has receive-side wire_id dedup
563
+ // and understands the ping. The npm version string (0.1.8-nightly.4 on the
564
+ // running bridge) is NOT a proxy for the compiled core version; they are
565
+ // different objects and only the packet answers this question.
566
+ $advertise -> [ a2a_capabilities::cap_e2e, a2a_capabilities::cap_e2e_migrate,
567
+ a2a_capabilities::cap_e2e_rekey ],
545
568
  $handlers -> (,),
546
569
  $on_unknown -> fn (_: any) -> transaction::action::type[] { return []. }
547
570
  ).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ours.network/tg-connector",
3
- "version": "0.2.1-nightly.1",
3
+ "version": "0.3.1",
4
4
  "description": "Bridge Telegram bots to ours proxy nodes — one ADAPT wrapper hosting N messenger packets, each connecting one Telegram bot to one ours node. Run `ours-tg-connector add_new_connection`.",
5
5
  "type": "module",
6
6
  "license": "FSL-1.1-Apache-2.0",