Merge upstream MeshTerm 1.0.0
Conflicts resolved by keeping both sides:
docs/cli/README.md, docs/guide/features.md (parts/reactions + relay mark)
meshterm/core/preferences.py (reaction_emoji, message_parts_max + heard_wait_s)
meshterm/services/chat_service.py (reaction check + upstream mute/listed split)
meshterm/ui/chat.py (reaction count + relay mark in the render cache;
each sent part is tracked for the relay mark)
meshterm/ui/tui/session.py: upstream's "e": "reveal" is kept, and the
chat screen takes "reveal" as react, so ^E still reacts in the chat.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0174TBnQH8S3nYNaxo5zk9Yu
This commit is contained in:
commit
b983f36ceb
98 files changed
+5790
-299
No files matched your search
@@ -93,9 +93,11 @@ to install the library.
|
||||
|
||||
**Two boards need no configuration.** The wiring of an AIO v1 is the MeshTerm default.
|
||||
Thus, when `/dev/spidev1.0` exists, the device screen lists it. The name is **uConsole AIO**
|
||||
on a uConsole, and **SPI radio** on any other machine. MeshTerm also includes the Cap
|
||||
LoRa-1262 of M5Stack on a Cardputer Zero. The device screen lists it as **Cap LoRa-1262**
|
||||
on a Cardputer Zero (refer to [the Cardputer Zero page](../devices/cardputer-zero.md#the-cap-lora-1262)).
|
||||
on a uConsole, and **SPI radio** on any other machine. MeshTerm also includes the LoRa
|
||||
Cap of M5Stack on a Cardputer Zero. The device screen lists it as **Cap LoRa**, because
|
||||
until MeshTerm connects, nothing can say which of the two Caps is attached. After it
|
||||
connects, the hardware column names the one that answered (refer to [the Cardputer Zero
|
||||
page](../devices/cardputer-zero.md#the-cap-lora-1262)).
|
||||
For either board, `meshterm --spi` reaches the radio. To add any other board, write a
|
||||
profile that states how the board is wired. A profile on the same `/dev/spidev*` replaces
|
||||
the wiring that MeshTerm includes.
|
||||
|
||||
+49
-4
@@ -15,7 +15,7 @@ This page lists each interactive screen with its scripted equivalent, where one
|
||||
|
||||
| Feature | What it does | Scripted |
|
||||
| --- | --- | --- |
|
||||
| **💬 Chat** | Live full-screen messages on channels and to contacts. The transcript scrolls, the input line stays at the bottom, and sent and received messages appear together. The rooms that you joined are also here. Each post shows under the name of its author. Select a message and press **^E** to react to it with an emoji. The reaction shows under the message, and MeshCore One and meshcore-open show it too. The emoji that ^E offers are a preference. A message that is too long for one packet goes out as parts, each ending with its number (`[1/3]`). MeshTerm stores each message. Unread counts show in the menu header. To see each path on which a message reached your node, select the message and press ^P. Enter on a path opens a trace of that route: back to the sender of a received message, or out to the contact of a sent direct message. When the trace comes home, the Device route row can make that route the radio's route to the contact. | `meshterm chat send / history / list / listen` |
|
||||
| **💬 Chat** | Live full-screen messages on channels and to contacts. The transcript scrolls, the input line stays at the bottom, and sent and received messages appear together. The rooms that you joined are also here. Each post shows under the name of its author. Select a message and press **^E** to react to it with an emoji. The reaction shows under the message, and MeshCore One and meshcore-open show it too. The emoji that ^E offers are a preference. A message that is too long for one packet goes out as parts, each ending with its number (`[1/3]`). MeshTerm stores each message. Unread counts show in the menu header. To see each path on which a message reached your node, select the message and press ^P. Your own channel message shows whether a repeater relayed it: a spinner, then `✓` and the number of repeaters that sent a copy back, or `✗` when none did. Enter on a path opens a trace of that route: back to the sender of a received message, or out to the contact of a sent direct message. When the trace comes home, the Device route row can make that route the radio's route to the contact. | `meshterm chat send / history / list / listen` |
|
||||
| **📻 Channels** | Create, join, reorder, mute, and share mesh channels. You can share a channel with a QR code or a `meshcore://` link. If you give a channel a **send scope**, its messages are flooded into one region. Only the repeaters that carry that region relay them. When you change to a new device, export all the channels to a file, then import the file on the new device. The **channel guide** lists the public channels that MeshTerm heard, also the channels that are not on your device, and adds one with Enter. | `meshterm channels list / add / join / import / share / clear / scope / export / guide` |
|
||||
| **📌 Rooms** | Each room server that your radio knows. A room server is a message board on a radio. It keeps the latest posts and sends you the posts that you missed. Join a room with its password. If a room does not answer, MeshTerm tells you what it knows and offers the next step to try. For example, it can send again by flood when the route that your radio learned is no longer good. When the clock of a room goes back (often after a reboot), the room sends you no new post, because each new post looks older than the ones that you have. The node page of the room then says so and offers to ask for all its posts again. | `meshterm rooms list / join / forget` |
|
||||
| **📨 Courier** | A store-and-forward outbox for contacts that you cannot reach yet. Queue a message. MeshTerm sends it when the contact is next heard, or at a time that you set. It tracks the acks, and it waits longer between each try (exponential backoff). | `meshterm courier queue / list / send / cancel / clear` |
|
||||
@@ -48,7 +48,7 @@ This page lists each interactive screen with its scripted equivalent, where one
|
||||
|
||||
| Feature | What it does | Scripted |
|
||||
| --- | --- | --- |
|
||||
| **📋 Device info** | The identity of the connected companion and its full radio configuration, on one screen. | `meshterm info` |
|
||||
| **📋 Device info** | Everything that the connected companion knows about itself, on one screen. A status panel names the node, its key, its firmware and companion protocol version, and the place where it says it is. Then it names what MeshTerm does with the node: its flood scope and the key of that scope, the site and the outbound paths that apply here, and its radio preset. Then it names how the node is doing: the battery, the storage, its own sensor readings, the clock and its drift, the uptime, the contacts and channels against the capacities of the device, the packets that wait to go out, and the firmware errors. Last, it names what the node heard and sent, with the packet counts split into flood and direct. Under the panel is every setting of the device. The scripted face gives the same three parts: the status, the sensor readings, and every setting under the keys that `config get` and `config set` take. | `meshterm info` |
|
||||
| **🔧 Device config** | Each setting that the companion firmware has: name, radio, client repeat, auto-add, telemetry, and custom variables. MeshTerm stages your changes for review and then applies them in place. The screen also has operations on the device itself: clock sync, TOML backup and restore, the identity key, reboot, and factory reset. Each operation acts when you confirm it, and the destructive operations need a confirm step. The screen has the same layout as Repeater admin. Thus you configure the radio in your hand and a radio over the mesh in the same way. | `meshterm config` / `config set <key> <value>` / `config backup` / `config reboot` / … |
|
||||
| **📡 Send advert** | Announce this node to the mesh with a zero-hop advert or a flood advert. You can also share the contact card of this node as a QR code. | `meshterm config advert` / `config share` |
|
||||
| **🔌 Devices** | This is not a menu screen. You select the companion on the startup splash. The splash lists the serial companions and the Bluetooth LE companions. If only one companion is present, MeshTerm selects it. You can add a network (TCP) companion with host:port. MeshTerm remembers the last good default. If the link drops, MeshTerm detects it at once and offers to reconnect. `meshterm devices` lists what discovery finds. | `meshterm devices` |
|
||||
@@ -70,13 +70,58 @@ only describe it. The written pages are at the end.
|
||||
|
||||
| Feature | What it does | Scripted |
|
||||
| --- | --- | --- |
|
||||
| **⚙ Preferences** | How MeshTerm behaves, in eight groups: Device, Sending, TX optimize, Watchtower, Map, History, Display, and Diagnostics. The page stages your changes, and you save them with one action at the bottom. MeshTerm writes only the values that you changed to `preferences.toml`. [Configuring MeshTerm](configuration.md) has the detail. | `meshterm preferences show / set / reset` |
|
||||
| **⚙ Preferences** | How MeshTerm behaves, in nine groups: Device, Sending, TX optimize, Watchtower, Map, History, Sound, Display, and Diagnostics. The page stages your changes, and you save them with one action at the bottom. MeshTerm writes only the values that you changed to `preferences.toml`. [Configuring MeshTerm](configuration.md) has the detail. | `meshterm preferences show / set / reset` |
|
||||
| **🩺 Diagnostics** | One block of information that each bug report starts with. It shows which build you have and how you installed it, the operating system, the terminal and its size, and the radio and its link. It also shows the verdicts from boot time that no other screen shows (icons, powerline, platform flavour, and the reasons), and how much history MeshTerm stored. It has nothing private: no keys, passwords, positions, or contact names. It describes the mesh only as counts for each table and the span of time that the tables cover. Press `a` to anonymize it: your account name in the home folder and the addresses of your radio and hosts are masked, and each keeps a tidbit (`j*********u`, `DA:xx:xx:xx:7C:7C`). Press `s` to save the block beside the log, to attach to a report. The **Anonymize** preference opens the page anonymized, and masks the log too. | `meshterm diagnostics [--out PATH] [--anonymize]` |
|
||||
| **📖 About MeshTerm** | What MeshTerm is, where it came from, and the terms of its licence. It includes the map credit, the font credit, and the licence URL. | `meshterm about` |
|
||||
| **📖 About MeshTerm** | What MeshTerm is, where it came from, and the terms of its licence. It includes the map credit, the font credit, the sound credit, and the licence URL. | `meshterm about` |
|
||||
| **👤 About the author** | The person behind MeshTerm, on the mesh and away from it. | `meshterm about-author` |
|
||||
| **🔗 Join Discord** | The community server. The page has one invite link and a QR code of the link, which a phone can read. | `meshterm discord` |
|
||||
| **💰 Support MeshTerm** | What keeps MeshTerm going, and the ways to help it, with money and without money. | `meshterm support` |
|
||||
|
||||
## Sounds
|
||||
|
||||
MeshTerm plays a sound when something arrives that you want to know about now. Each event
|
||||
has its own sound, and its own switch on the Preferences page:
|
||||
|
||||
| Event | When it plays | Default |
|
||||
| --- | --- | --- |
|
||||
| Direct message | A DM arrives | on |
|
||||
| Mention | A message in a channel or a room mentions your node (`@[Your name]`). A mention in a DM plays the DM sound | always |
|
||||
| Channel message | A message arrives on a channel | on |
|
||||
| Room post | A room sends a new post | on |
|
||||
| Battery low | The battery goes below the **Low level** (25%). It plays one time, and again only after the battery is 5 points higher or charges | on |
|
||||
| Packet tick | A very short tick for each packet heard that plays no other sound, at most four times each second | off |
|
||||
|
||||
A channel that you muted (🔕) is silent, because the mute turns off all of its
|
||||
notifications. The **On-screen chat** switch (on by default) decides whether the
|
||||
conversation that is open on the screen plays its sounds too.
|
||||
|
||||
**Mention** has three values:
|
||||
|
||||
- **always** (the default): the mention sound plays, also on a muted channel, with the
|
||||
**Channel message** or **Room post** switch off, and with **On-screen chat** off.
|
||||
- **on**: the mention sound plays, under the same rules as other messages.
|
||||
- **as a message**: a mention is a channel message or a room post, with their sound and
|
||||
their rules.
|
||||
|
||||
**Ctrl+S** mutes or unmutes the sounds from any screen. The header shows 🔊 while the
|
||||
sounds play and 🔇 while they are muted. The **Sound** row above Quit in the main menu
|
||||
does the same. To have no sound at all, select the **no sound** theme on the Preferences
|
||||
page. The other themes are **Android** (the default) and **terminal bell**, which rings the
|
||||
bell of your terminal, also over SSH.
|
||||
|
||||
**Volume** is a slider with ten steps on the Preferences page. Each step plays the
|
||||
channel message sound, so that you hear the level before you apply it.
|
||||
|
||||
When no sound plays, the title of the screen can flash instead. The **Flash** preference
|
||||
selects when: off, on, or **when silent** (the default), which flashes when the sounds are
|
||||
muted or the theme is no sound. The PicoCalc has no sound, so there each notification
|
||||
flashes.
|
||||
|
||||
MeshTerm plays the sounds through the player of your computer: MCI on Windows, `afplay` on
|
||||
macOS, and `pw-play`, `paplay`, or `aplay` on Linux. Two sounds can play at the same time:
|
||||
a new sound does not stop one that plays. If no player works, MeshTerm writes one line in
|
||||
its log and continues with no sound.
|
||||
|
||||
## Leaving MeshTerm
|
||||
|
||||
**Quit** at the bottom of the main menu leaves MeshTerm, after it asks you to confirm.
|
||||
|
||||
Reference in new issue
Block a user