@ours.network/tg-connector 0.1.7 → 0.1.8-nightly.2

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.
Files changed (99) hide show
  1. package/dist/connector.js +74 -0
  2. package/dist/mufl_code/D812C6070397B0EB11D66D6D33D931C35E9442ACC141C35C51A7904A082B19E0.muflo +0 -0
  3. package/dist/mufl_code/actor.mu +27 -0
  4. package/dist/mufl_code/core/COMMERCIAL-LICENCE.md +25 -0
  5. package/dist/mufl_code/core/COMPATIBILITY.md +221 -0
  6. package/dist/mufl_code/core/CONTRIBUTING.md +37 -0
  7. package/dist/mufl_code/core/LICENSE +1 -1
  8. package/dist/mufl_code/core/NOTIFICATIONS_CONTRACT.md +290 -0
  9. package/dist/mufl_code/core/README.md +64 -49
  10. package/dist/mufl_code/core/SECURITY.md +40 -0
  11. package/dist/mufl_code/core/TRADEMARKS.md +24 -0
  12. package/dist/mufl_code/core/a2a_capabilities.mm +76 -1
  13. package/dist/mufl_code/core/a2a_control.mm +2 -1
  14. package/dist/mufl_code/core/a2a_messaging.mm +1677 -25
  15. package/dist/mufl_code/core/a2a_notifications.mm +1102 -0
  16. package/dist/mufl_code/core/a2a_protocol.mm +16 -1
  17. package/dist/mufl_code/core/a2a_versions.mm +801 -0
  18. package/dist/mufl_code/core/config.mufl +2 -0
  19. package/dist/mufl_code/core/docs/.vitepress/config.mts +58 -0
  20. package/dist/mufl_code/core/docs/citations.json +688 -0
  21. package/dist/mufl_code/core/docs/guide/01-vendor-the-core.md +50 -0
  22. package/dist/mufl_code/core/docs/guide/02-configure-and-compile.md +100 -0
  23. package/dist/mufl_code/core/docs/guide/03-wire-the-host.md +154 -0
  24. package/dist/mufl_code/core/docs/guide/04-connect-and-message.md +156 -0
  25. package/dist/mufl_code/core/docs/guide/05-test-your-app.md +75 -0
  26. package/dist/mufl_code/core/docs/guide/index.md +63 -0
  27. package/dist/mufl_code/core/docs/how-it-works/capabilities-and-control.md +77 -0
  28. package/dist/mufl_code/core/docs/how-it-works/cluster.md +65 -0
  29. package/dist/mufl_code/core/docs/how-it-works/identity.md +56 -0
  30. package/dist/mufl_code/core/docs/how-it-works/invites-and-contacts.md +76 -0
  31. package/dist/mufl_code/core/docs/how-it-works/messaging.md +55 -0
  32. package/dist/mufl_code/core/docs/how-it-works/monitoring-and-config.md +72 -0
  33. package/dist/mufl_code/core/docs/how-it-works/overview.md +45 -0
  34. package/dist/mufl_code/core/docs/how-it-works/versioning.md +116 -0
  35. package/dist/mufl_code/core/docs/index.md +27 -0
  36. package/dist/mufl_code/core/docs/package-lock.json +3467 -0
  37. package/dist/mufl_code/core/docs/package.json +15 -0
  38. package/dist/mufl_code/core/docs/reference/contributing.md +26 -0
  39. package/dist/mufl_code/core/docs/reference/glossary.md +108 -0
  40. package/dist/mufl_code/core/docs/reference/implementations.md +23 -0
  41. package/dist/mufl_code/core/docs/reference/modules.md +19 -0
  42. package/dist/mufl_code/core/docs/scripts/check-citations.mjs +36 -0
  43. package/dist/mufl_code/core/docs/scripts/check-denylist.mjs +30 -0
  44. package/dist/mufl_code/core/docs/scripts/gen-llms.mjs +32 -0
  45. package/dist/mufl_code/core/docs/workflows/cluster.md +89 -0
  46. package/dist/mufl_code/core/docs/workflows/contact-exchange.md +60 -0
  47. package/dist/mufl_code/core/docs/workflows/contact-restore.md +60 -0
  48. package/dist/mufl_code/core/docs/workflows/control-verbs.md +70 -0
  49. package/dist/mufl_code/core/docs/workflows/index.md +57 -0
  50. package/dist/mufl_code/core/docs/workflows/introductions.md +60 -0
  51. package/dist/mufl_code/core/docs/workflows/messaging.md +75 -0
  52. package/dist/mufl_code/core/docs/workflows/monitoring.md +84 -0
  53. package/dist/mufl_code/core/docs/workflows/notifications.md +109 -0
  54. package/dist/mufl_code/core/release-notes/0.1.md +60 -0
  55. package/dist/mufl_code/core/release-notes/0.3.md +22 -0
  56. package/dist/mufl_code/core/release-notes/0.4.md +97 -0
  57. package/dist/mufl_code/core/tests/README.md +17 -0
  58. package/dist/mufl_code/core/tests/corpus.mjs +139 -0
  59. package/dist/mufl_code/core/tests/corpus_actor.mu +242 -0
  60. package/dist/mufl_code/core/tests/fatcompile_actor.mu +52 -0
  61. package/dist/mufl_code/core/tests/mig.mjs +664 -0
  62. package/dist/mufl_code/core/tests/mig_actor.mu +466 -0
  63. package/dist/mufl_code/core/tests/migapp.mjs +431 -0
  64. package/dist/mufl_code/core/tests/migapp_actor.mu +294 -0
  65. package/dist/mufl_code/core/tests/mufl_semantics/run.sh +69 -0
  66. package/dist/mufl_code/core/tests/mufl_semantics/t11_three_version.mufl +47 -0
  67. package/dist/mufl_code/core/tests/mufl_semantics/t2_extra_fields.mufl +11 -0
  68. package/dist/mufl_code/core/tests/mufl_semantics/t7_runtime.mufl +30 -0
  69. package/dist/mufl_code/core/tests/mufl_semantics/t9_passthrough.mufl +19 -0
  70. package/dist/mufl_code/core/tests/mufl_semantics/t_str_order.mufl +19 -0
  71. package/dist/mufl_code/core/tests/notif.mjs +689 -0
  72. package/dist/mufl_code/core/tests/notif_actor.mu +458 -0
  73. package/dist/mufl_code/core/tests/protocol_container.mm +18 -0
  74. package/dist/mufl_code/core/tests/run.sh +8 -10
  75. package/dist/mufl_code/core/tests/run_corpus.sh +51 -0
  76. package/dist/mufl_code/core/tests/run_fatcompile.sh +40 -0
  77. package/dist/mufl_code/core/tests/run_mig.sh +51 -0
  78. package/dist/mufl_code/core/tests/run_migapp.sh +51 -0
  79. package/dist/mufl_code/core/tests/run_notif.sh +55 -0
  80. package/dist/mufl_code/core/tests/test.mjs +291 -49
  81. package/dist/mufl_code/core/tests/test_actor.mu +240 -7
  82. package/dist/mufl_code/core/tests/test_common.mjs +93 -0
  83. package/dist/mufl_code/core/version.mm +1 -1
  84. package/package.json +4 -4
  85. package/dist/mufl_code/2DA1D5F860E42C605D92F1E24E2466C70EFDDBF057BBCBA52F0ECC639EFCA387.muflo +0 -0
  86. package/dist/mufl_code/core/CLUSTER_API.md +0 -640
  87. package/dist/mufl_code/core/CLUSTER_CONTRACT.md +0 -121
  88. package/dist/mufl_code/core/CLUSTER_INTRODUCTION_PLAN.md +0 -200
  89. package/dist/mufl_code/core/CONFIGURATION_DESIGN.md +0 -35
  90. package/dist/mufl_code/core/CONFIGURATION_PLAN.md +0 -394
  91. package/dist/mufl_code/core/DEVELOPMENT.md +0 -168
  92. package/dist/mufl_code/core/EPHEMERAL_INVITE_PLAN.md +0 -465
  93. package/dist/mufl_code/core/GROUP_CHAT_DESIGN.md +0 -520
  94. package/dist/mufl_code/core/release-notes/2.0.md +0 -268
  95. package/dist/mufl_code/core/release-notes/2.1.md +0 -92
  96. package/dist/mufl_code/core/release-notes/2.2.md +0 -94
  97. package/dist/mufl_code/core/release-notes/3.0.md +0 -162
  98. package/dist/mufl_code/core/release-notes/3.1.md +0 -43
  99. package/dist/mufl_code/core/release-notes/README.md +0 -32
@@ -1,43 +0,0 @@
1
- # core 3.1 — File transfer (`send_file` / `receive_file`)
2
-
3
- **Version 3.1 · MIN (additive) · A first-class file-transfer transaction pair,
4
- separate from `send_message`. Files and text are always distinct messages: to
5
- send a file with a caption, an agent sends two transactions.**
6
-
7
- ## What shipped
8
-
9
- `send_file _:($contact, $filename, $mime?, $data, $reply_to?)` mirrors
10
- `send_message` exactly but on its own path: it resolves the contact, stamps a
11
- `wire_id`, and sends the file (`filename` + optional `mime` + `bin` bytes) over
12
- `encrypted_channel` to the new library-routed inbound `::a2a_messaging::receive_file`.
13
- The receiver validates + resolves the sender and hands the file to the app via a
14
- new `on_file_received` storage hook; the sender side fires `on_file_sent`. Both
15
- hooks are injected through `a2a_messaging::init`, identical in shape to the
16
- message hooks. The app owns file storage — the core stores nothing.
17
-
18
- ## One shared `wire_id` namespace
19
-
20
- A file's `wire_id` is stamped from the SAME `_new_id` namespace as a message's, so
21
- `reply_ref_t` (unchanged) works across kinds: a `send_message` can `reply_to` a
22
- file, and a `send_file` can be a reply to a message, out of the box.
23
-
24
- ## Monitoring
25
-
26
- `send_file` / `receive_file` emit the same FORCED monitoring copy as messages,
27
- self-gating on the bound control plane — but the body is **metadata only**:
28
- `[file] <name> (<mime>, <N> B)`. The control plane learns a file moved and its
29
- metadata, never the bytes (`monitoring_copy_t.$body` stays `str`).
30
- When the sender omits the mime type, the `<mime>` field renders empty (e.g. `[file] notes.txt (, 12 B)`).
31
-
32
- ## Out of scope (YAGNI)
33
-
34
- No chunking / streaming / resumable transfer, no content-type validation or dedup,
35
- no attachment-on-message style. One `send_file` = one whole file in one transaction.
36
-
37
- ## Consumer coordination
38
-
39
- `a2a_messaging::init` gains two parameters (`$on_file_received`, `$on_file_sent`).
40
- Consumers (agent packet, web messenger) must add these two hooks to their `init`
41
- call when adopting core 3.1 — the same kind of coordinated, version-gated change as
42
- any prior core signature bump. This repo's QA actor (`tests/test_actor.mu`) is
43
- updated accordingly.
@@ -1,32 +0,0 @@
1
- # ours mufl core — release notes
2
-
3
- One note file per **core version**, where the version is the `MAJ.MIN` reported
4
- by `version::get_core_version` (`version.mm`). This replaces the single
5
- `RELEASE_NOTES_core_config.md` that previously covered a whole range (1.10→2.0);
6
- that file is now `2.0.md` (the 2.0 lineage record), unchanged in content.
7
-
8
- ## Versions (newest first)
9
-
10
- | Core | Bump | Summary |
11
- |------|------|---------|
12
- | [3.0](3.0.md) | MAJ (breaking) | **Ephemeral-key slim invite** — the fat identity-bearing invite is replaced by a slim `invite_eph_t` (ephemeral encryption pubkey + cid + name + scheme only); both address documents + the delegation chain move to a two-message **bare boxed** redeem hop (legs 1/2/3). Removes `invite_t` / `invite_role_t` / `rebuild_peer_address_document` + the old `add_contact` body. Per-invite ephemeral secrets are `hidden` + never exported → outstanding invites are restart-transient (fail-closed). |
13
- | [2.2](2.2.md) | MIN (additive) | **Cluster root-side producers** — the root half core 2.1 deferred: a root mints its CP binding (`sign_root_cp_binding`), pushes it to roles (`set_root_cp_binding` widened to verify a role's inherited binding against its pinned `root_ad`), and relays children to the CP (`relay_enroll_delegated_node`). Additive; legacy paths untouched. |
14
- | [2.1](2.1.md) | MIN (additive) | **Cluster CP-introduction** — one root↔CP bind enrolls a whole cluster; children inherit the root's CP binding and accept CP introductions with zero per-child ceremony. New `manage_root`, `set_root_cp_binding`, `enroll_delegated_node`; `ingest` gate widened (additive). |
15
- | [2.0](2.0.md) | MAJ (breaking) | Configuration / control-plane lineage (1.10→2.0): forced monitoring (B1), opaque control-plane config (B3), and the **radically simplified** `core.connect` introduction (B2) — SAS / CP-signed-intro / `connect_descriptor_t` removed. |
16
-
17
- ## Convention
18
-
19
- - **Filename** = the core version string `MAJ.MIN.md`, matching
20
- `version::get_core_version` for the change.
21
- - **Every `MAJ`/`MIN` bump in `version.mm` REQUIRES a matching
22
- `release-notes/<version>.md` in the same change** — a reviewer checklist item.
23
- A version bump with no matching note (or a note with no bump) is a review block.
24
- - Each note opens with a **header line** stating the version, the bump type
25
- (`MAJ` breaking / `MIN` additive) and a one-line summary, then these sections:
26
- - **What shipped**
27
- - **New/changed transactions**
28
- - **Breaking changes** (only if `MAJ`)
29
- - **Integration TODO for consumers**
30
- - **Security notes**
31
- - This `README.md` carries the version table above, **newest first**, one line
32
- each. Add a row in the same change that adds the note.