Wires up the full web-parity context menu for sidebar document rows,
each action mapped against the vendored OpenAPI spec:
- OutlineKit: star/templatize/duplicate/unpublish/archive/move/delete/
export/insights/revisions.list for documents, plus request/response
models, with test coverage mirroring the existing client test style.
- Star, Rename, Templatize, Duplicate, Unpublish, Archive, Move,
New Document, Delete: direct API actions with confirmation dialogs
where destructive.
- History, Insights, Present: read-only sheets (revisions.list,
documents.insights, distraction-free render).
- Download, Copy, Print: local actions against documents.export /
documents.info (save panel, pasteboard, NSPrintOperation against a
plain-text NSTextView since MarkdownEngine doesn't expose its
underlying NSTextView).
- Search in Document: line-based find/highlight/scroll-to over the
raw markdown source, same NSTextView-exposure limitation.
- Unsubscribe, Pin: disabled — no subscriptions.*/pins.* endpoints
exist in the API.
- Edit, Permissions, Import Document: disabled — out of scope for
this pass (editing is off project-wide; permissions and import are
their own subsystems, not one-off actions).