mirror of
https://github.com/lahfir/agent-desktop.git
synced 2026-08-09 16:37:23 +00:00
Replaces the flat {format,text,bytes_base64} ClipboardContent struct with
the plan's ClipboardContent { Text, Image, FileUrls } enum and removes the
string-only get_clipboard/set_clipboard adapter methods (KTD13: remove, not
wrap) in favor of get_clipboard_content/set_clipboard_content as the sole
surface, keeping clear_clipboard unchanged.
macOS now round-trips text, PNG images, and public.file-url references
through NSPasteboard instead of returning not_supported for image/file-urls.
clipboard-get defaults to text when --format is omitted, writes image bytes
to an --out path (or a private 0600/O_NOFOLLOW/atomic temp file under the
session dir when --out is omitted, since clipboard images can carry copied
secrets), and reports {type,path,width,height}. clipboard-set gains --image
and repeatable --file-url inputs; missing file-url paths report only a
count and entry index, never the path content, since that can reach traces.
FFI's ad_get_clipboard/ad_set_clipboard now delegate through the content
API with unchanged C signatures.
|
||
|---|---|---|
| .. | ||
| actions.rs | ||
| actions_tests.rs | ||
| mod.rs | ||
| mouse_wheel.rs | ||
| notifications.rs | ||
| session.rs | ||
| skills.rs | ||
| system.rs | ||
| trace.rs | ||