From 2f90f4b60cd50f7e9649daaf8e76a120e608cff6 Mon Sep 17 00:00:00 2001 From: Christophe Besson Date: Thu, 15 Oct 2026 09:57:18 +0200 Subject: feat(cli): /put and /get in the interactive chat /put FILE sends one local file, relative to the current directory or absolute, into the chat's folder, then posts the application's attachment message naming it ({"text": "", "attachment": {filename, size, type}}), so the page shows it as its paperclip's. /get NAME saves a file of that folder, named from it, into the current directory, never over a file already there. The chat's folder is the page's rule: the operator's choice while its root is writable and present, else the first such root; a chat_directory_ack moves it. A line above the one written in shows the transfer's progress. Attachment messages, from the page or from /put, read as [file: name, size] in the room and in `chat`, and as an `attachment` field with --json. Co-Authored-By: Claude Opus 5.5 --- packages/meshbay-cli/src/meshbay_cli/manpage.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'packages/meshbay-cli/src/meshbay_cli/manpage.py') diff --git a/packages/meshbay-cli/src/meshbay_cli/manpage.py b/packages/meshbay-cli/src/meshbay_cli/manpage.py index d40e479..601bd5b 100644 --- a/packages/meshbay-cli/src/meshbay_cli/manpage.py +++ b/packages/meshbay-cli/src/meshbay_cli/manpage.py @@ -257,6 +257,15 @@ A right-click copies the text selected with the mouse, else the line under the pointer, and pastes into the line written in: the system clipboard's text, read with the platform's tool (wl\-paste, xclip or xsel, pbpaste, PowerShell), else what was copied here last. +.B /put +\fIFILE\fR sends one local file, relative to the current directory or absolute, +into the chat's folder and names it in the conversation, as the application's +paperclip does; +.B /get +\fINAME\fR saves a file of that folder, named from it, into the current +directory. +The chat's folder is the one the group's operator chose for it while its root +accepts uploads and is present, else the group's first such root. .PP .B browser\-access on makes this machine leave, on each node it opens a group on, a copy of its keys -- cgit v1.2.3