Commit Graph
3 Commits
Author SHA1 Message Date
lucioandClaude Opus 5 9b5a05ce4e clipboard: acceptHandshake returns Void; the handshake always ends the parse loop
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
2026-09-16 04:59:50 -07:00
lucioandClaude Opus 5 386c915861 clipboard: the policy bridge and its Engine wiring
ClipboardBridge ports CheckClipboardEx (Clipboard.cs:85-251), the in-band
chunking and reassembly (253-373), GetRemoteClipboard (377-449) and the
clipboard cases of Receiver.cs (273-380) and Event.cs (219-231). It is held
by the Engine actor and returns [ClipboardAction] the way Switcher returns
[SwitchAction]; ClipboardRelay is the Sendable sink the bulk channel and the
pasteboard watcher call.

Engine.swift: the bridge property and the authorised dispatch cases. Four
further lines (Engine.start/stop, EngineActions.applyConfiguration and the
.remoteClipboardWanted case) are beyond the letter of the brief and are
flagged in the feature README's Handshakes for the lead to rule on.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
2026-09-16 04:50:04 -07:00
lucioandClaude Opus 5 2276c20792 clipboard: bulk channel on the TCP port, pull/push/accept
Listener and dials ported from SocketStuff.cs:475-495, 1566-1666 and
Clipboard.cs:401-485, 1068-1099; the transfer from Clipboard.ShakeHand
(961-1066), ReceiveAndProcessClipboardDataCore (498-923) and
SocketStuff.SendClipboardData/SendFileEx/SendData (1673-1931).

The 64-byte DATA on this connection is raw, not framed (docs/protocol.md
§10.7 (a)): bytes 1..3 must be zero and are checked.

Verified on loopback in the scratchpad: pull of text, push of a file,
a 3 MB image across chunks, and an unauthorised peer refused.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
2026-09-16 04:45:36 -07:00