mirror of
https://github.com/kunkundi/crossdesk.git
synced 2026-11-07 06:39:10 +08:00
[feat] add MCP file browsing and cancellable transfers
This commit is contained in:
@@ -70,3 +70,11 @@ uint64_t ControllerSession::Clipboard(bool write, const std::string &text) {
|
||||
return id;
|
||||
}
|
||||
} // namespace crossdesk
|
||||
|
||||
namespace crossdesk {
|
||||
nlohmann::json ControllerSession::Files(const nlohmann::json &request) {
|
||||
if (!Connected()) throw std::invalid_argument("NOT_READY");
|
||||
if (!files_) throw std::invalid_argument("FILES_UNSUPPORTED");
|
||||
return files_->Command(request);
|
||||
}
|
||||
} // namespace crossdesk
|
||||
|
||||
Reference in New Issue
Block a user