File plugin
Workspace file and Git tools for AppWeaver, with encrypted transfer.
Demo


- Commands —
/file [help]to see available commands. /file upload <file_path> <npub_bot_b>to upload a file to a bot's workspace./file download <naddr>to download a file from a bot's workspace./file tree [maxDepth] [targetDir] [--ext ext1,ext2]to show the file tree of the bot’s workspace (usesdm-bot.sqliteworkspace target).
CLI (plugins/file/tree)
Executable on your PATH: roots the tree at process.cwd() by default (the directory you run it from). Optional --dm-bot-workspace matches /file tree (SQLite workspace_target).
chmod +x plugins/file/tree # once; or rely on `bun /path/to/tree`
cd ~/some-project && tree 1
tree --dm-bot-workspace 2 # dm-bot workspace root from this install
If the binary name tree clashes with tree(1), symlink it to e.g. dm-bot-file-tree.
Architecture
See local architecture and source map.