@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.
- package/dist/connector.js +74 -0
- package/dist/mufl_code/D812C6070397B0EB11D66D6D33D931C35E9442ACC141C35C51A7904A082B19E0.muflo +0 -0
- package/dist/mufl_code/actor.mu +27 -0
- package/dist/mufl_code/core/COMMERCIAL-LICENCE.md +25 -0
- package/dist/mufl_code/core/COMPATIBILITY.md +221 -0
- package/dist/mufl_code/core/CONTRIBUTING.md +37 -0
- package/dist/mufl_code/core/LICENSE +1 -1
- package/dist/mufl_code/core/NOTIFICATIONS_CONTRACT.md +290 -0
- package/dist/mufl_code/core/README.md +64 -49
- package/dist/mufl_code/core/SECURITY.md +40 -0
- package/dist/mufl_code/core/TRADEMARKS.md +24 -0
- package/dist/mufl_code/core/a2a_capabilities.mm +76 -1
- package/dist/mufl_code/core/a2a_control.mm +2 -1
- package/dist/mufl_code/core/a2a_messaging.mm +1677 -25
- package/dist/mufl_code/core/a2a_notifications.mm +1102 -0
- package/dist/mufl_code/core/a2a_protocol.mm +16 -1
- package/dist/mufl_code/core/a2a_versions.mm +801 -0
- package/dist/mufl_code/core/config.mufl +2 -0
- package/dist/mufl_code/core/docs/.vitepress/config.mts +58 -0
- package/dist/mufl_code/core/docs/citations.json +688 -0
- package/dist/mufl_code/core/docs/guide/01-vendor-the-core.md +50 -0
- package/dist/mufl_code/core/docs/guide/02-configure-and-compile.md +100 -0
- package/dist/mufl_code/core/docs/guide/03-wire-the-host.md +154 -0
- package/dist/mufl_code/core/docs/guide/04-connect-and-message.md +156 -0
- package/dist/mufl_code/core/docs/guide/05-test-your-app.md +75 -0
- package/dist/mufl_code/core/docs/guide/index.md +63 -0
- package/dist/mufl_code/core/docs/how-it-works/capabilities-and-control.md +77 -0
- package/dist/mufl_code/core/docs/how-it-works/cluster.md +65 -0
- package/dist/mufl_code/core/docs/how-it-works/identity.md +56 -0
- package/dist/mufl_code/core/docs/how-it-works/invites-and-contacts.md +76 -0
- package/dist/mufl_code/core/docs/how-it-works/messaging.md +55 -0
- package/dist/mufl_code/core/docs/how-it-works/monitoring-and-config.md +72 -0
- package/dist/mufl_code/core/docs/how-it-works/overview.md +45 -0
- package/dist/mufl_code/core/docs/how-it-works/versioning.md +116 -0
- package/dist/mufl_code/core/docs/index.md +27 -0
- package/dist/mufl_code/core/docs/package-lock.json +3467 -0
- package/dist/mufl_code/core/docs/package.json +15 -0
- package/dist/mufl_code/core/docs/reference/contributing.md +26 -0
- package/dist/mufl_code/core/docs/reference/glossary.md +108 -0
- package/dist/mufl_code/core/docs/reference/implementations.md +23 -0
- package/dist/mufl_code/core/docs/reference/modules.md +19 -0
- package/dist/mufl_code/core/docs/scripts/check-citations.mjs +36 -0
- package/dist/mufl_code/core/docs/scripts/check-denylist.mjs +30 -0
- package/dist/mufl_code/core/docs/scripts/gen-llms.mjs +32 -0
- package/dist/mufl_code/core/docs/workflows/cluster.md +89 -0
- package/dist/mufl_code/core/docs/workflows/contact-exchange.md +60 -0
- package/dist/mufl_code/core/docs/workflows/contact-restore.md +60 -0
- package/dist/mufl_code/core/docs/workflows/control-verbs.md +70 -0
- package/dist/mufl_code/core/docs/workflows/index.md +57 -0
- package/dist/mufl_code/core/docs/workflows/introductions.md +60 -0
- package/dist/mufl_code/core/docs/workflows/messaging.md +75 -0
- package/dist/mufl_code/core/docs/workflows/monitoring.md +84 -0
- package/dist/mufl_code/core/docs/workflows/notifications.md +109 -0
- package/dist/mufl_code/core/release-notes/0.1.md +60 -0
- package/dist/mufl_code/core/release-notes/0.3.md +22 -0
- package/dist/mufl_code/core/release-notes/0.4.md +97 -0
- package/dist/mufl_code/core/tests/README.md +17 -0
- package/dist/mufl_code/core/tests/corpus.mjs +139 -0
- package/dist/mufl_code/core/tests/corpus_actor.mu +242 -0
- package/dist/mufl_code/core/tests/fatcompile_actor.mu +52 -0
- package/dist/mufl_code/core/tests/mig.mjs +664 -0
- package/dist/mufl_code/core/tests/mig_actor.mu +466 -0
- package/dist/mufl_code/core/tests/migapp.mjs +431 -0
- package/dist/mufl_code/core/tests/migapp_actor.mu +294 -0
- package/dist/mufl_code/core/tests/mufl_semantics/run.sh +69 -0
- package/dist/mufl_code/core/tests/mufl_semantics/t11_three_version.mufl +47 -0
- package/dist/mufl_code/core/tests/mufl_semantics/t2_extra_fields.mufl +11 -0
- package/dist/mufl_code/core/tests/mufl_semantics/t7_runtime.mufl +30 -0
- package/dist/mufl_code/core/tests/mufl_semantics/t9_passthrough.mufl +19 -0
- package/dist/mufl_code/core/tests/mufl_semantics/t_str_order.mufl +19 -0
- package/dist/mufl_code/core/tests/notif.mjs +689 -0
- package/dist/mufl_code/core/tests/notif_actor.mu +458 -0
- package/dist/mufl_code/core/tests/protocol_container.mm +18 -0
- package/dist/mufl_code/core/tests/run.sh +8 -10
- package/dist/mufl_code/core/tests/run_corpus.sh +51 -0
- package/dist/mufl_code/core/tests/run_fatcompile.sh +40 -0
- package/dist/mufl_code/core/tests/run_mig.sh +51 -0
- package/dist/mufl_code/core/tests/run_migapp.sh +51 -0
- package/dist/mufl_code/core/tests/run_notif.sh +55 -0
- package/dist/mufl_code/core/tests/test.mjs +291 -49
- package/dist/mufl_code/core/tests/test_actor.mu +240 -7
- package/dist/mufl_code/core/tests/test_common.mjs +93 -0
- package/dist/mufl_code/core/version.mm +1 -1
- package/package.json +4 -4
- package/dist/mufl_code/2DA1D5F860E42C605D92F1E24E2466C70EFDDBF057BBCBA52F0ECC639EFCA387.muflo +0 -0
- package/dist/mufl_code/core/CLUSTER_API.md +0 -640
- package/dist/mufl_code/core/CLUSTER_CONTRACT.md +0 -121
- package/dist/mufl_code/core/CLUSTER_INTRODUCTION_PLAN.md +0 -200
- package/dist/mufl_code/core/CONFIGURATION_DESIGN.md +0 -35
- package/dist/mufl_code/core/CONFIGURATION_PLAN.md +0 -394
- package/dist/mufl_code/core/DEVELOPMENT.md +0 -168
- package/dist/mufl_code/core/EPHEMERAL_INVITE_PLAN.md +0 -465
- package/dist/mufl_code/core/GROUP_CHAT_DESIGN.md +0 -520
- package/dist/mufl_code/core/release-notes/2.0.md +0 -268
- package/dist/mufl_code/core/release-notes/2.1.md +0 -92
- package/dist/mufl_code/core/release-notes/2.2.md +0 -94
- package/dist/mufl_code/core/release-notes/3.0.md +0 -162
- package/dist/mufl_code/core/release-notes/3.1.md +0 -43
- 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.
|