agent-desktop/src
Lahfir 26f884cf8f fix: typed clipboard content with file-urls and private image temp files
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.
2026-07-03 00:48:15 -07:00
..
batch feat: complete foundation contract units U10 through U19 2026-07-02 21:42:50 -07:00
cli feat: complete foundation contract units U10 through U19 2026-07-02 21:42:50 -07:00
cli_args fix: typed clipboard content with file-urls and private image temp files 2026-07-03 00:48:15 -07:00
command_policy feat: complete foundation contract units U10 through U19 2026-07-02 21:42:50 -07:00
dispatch fix: typed clipboard content with file-urls and private image temp files 2026-07-03 00:48:15 -07:00
tests fix: typed clipboard content with file-urls and private image temp files 2026-07-03 00:48:15 -07:00
Cargo.toml fix: harden agent-desktop reliability (#54) 2026-06-20 15:43:42 -04:00
main.rs refactor: split PlatformAdapter into capability supertraits 2026-07-02 19:32:23 -07:00