feat(cli): file share / file get + same-host fast path (v1.19.0)
Two new CLI verbs for the file-sharing surface that already existed on the broker (HTTP /upload + WS get_file/list_files) but was only reachable through MCP-style docstrings referencing tools that do not in fact exist: claudemesh file share <path> [--to peer] [--message "..."] claudemesh file get <id> [--out path] Same-host fast path: when --to resolves to a session on the same hostname, skip MinIO and DM the absolute filepath. The receiver reads it off disk directly. No bucket roundtrip, no 50 MB cap. Falls back to encrypted upload when the peer is remote or --upload is set. Routes the same-host DM by session pubkey, not displayName, so sibling sessions of the same member do not trip the v0.5.1 self-DM guard. Updates the bundled SKILL.md and the MCP server instructions to reference the real CLI verbs instead of the fictional share_file() / get_file() tool calls. Also: rename.ts now distinguishes mesh-membership from web-account auth and points users at claudemesh login + the dashboard rather than emitting a bare "Not signed in". Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -324,11 +324,11 @@ If the channel meta contains \`subtype: reminder\`, this is a scheduled reminder
|
||||
| remember(content, tags?) | Store persistent knowledge with optional tags. |
|
||||
| recall(query) | Full-text search over mesh memory. |
|
||||
| forget(id) | Soft-delete a memory entry. |
|
||||
| share_file(path, name?, tags?) | Share a persistent file with the mesh. |
|
||||
| get_file(id, save_to) | Download a shared file to a local path. |
|
||||
| list_files(query?, from?) | Find files shared in the mesh. |
|
||||
| file_status(id) | Check who has accessed a file. |
|
||||
| delete_file(id) | Remove a shared file from the mesh. |
|
||||
| claudemesh file share <path> [--to peer] [--tags a,b] | Share a file with the mesh, or DM it to a specific peer. Same-host fast path: when --to matches a peer on this machine, sends an absolute filepath instead of uploading (no MinIO round-trip). |
|
||||
| claudemesh file get <id> [--out path] | Download a shared file by id. |
|
||||
| claudemesh file list [query] | Find files shared in the mesh. |
|
||||
| claudemesh file status <id> | Check who has accessed a file. |
|
||||
| claudemesh file delete <id> | Remove a shared file from the mesh. |
|
||||
| vector_store(collection, text, metadata?) | Store embedding in per-mesh Qdrant collection. |
|
||||
| vector_search(collection, query, limit?) | Semantic search over stored embeddings. |
|
||||
| vector_delete(collection, id) | Remove an embedding. |
|
||||
|
||||
Reference in New Issue
Block a user