mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-11-05 23:03:42 -05:00
Adds a device field to the Action/Query envelope and a remote-ops iroh protocol that carries one Wire method call to a paired device, executes it through the same operation registries, and returns the JSON result. The daemon resolves the target by name, slug, or id against its paired devices; only paired devices are served, matching the byterange trust boundary. A forwarded request usually names no library — the target resolves its own open library, since a caller can't know a peer's library ids without asking first. The CLI macros send None whenever --device is set, and library validation skips remote-targeted clients so a foreign library id never lands in the local config. execute_json_operation now delegates to a context-only variant so the daemon socket, embedded hosts, and the network path share one dispatch. Verified live from the Mac against titan: sd --device titan sources list # nine sources over iroh sd --device titan job list # titan's job history sd --device titan sources verify <id> # dispatched and ran on titan Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>