Keep a shared entry's document; write the single-file form of a package #9

Merged
HoroTW merged 1 commit from hakalya/fox-77-apple-documents into main 2026-10-12 17:27:10 +00:00 AGit
Collaborator

FOX-77. A share and its link belong to the document id; the safe replace makes a new document (measured in a throwaway folder: document id, item id, short id and sharing token change, an in-place overwrite keeps them). The mirror now records which entries a listing marks as shared and never replaces or trashes them: a changed shared file is held and reported, or sent under the same document with --shared-in-place; a shared file or folder deleted locally comes back. New command 'document' writes Apple's single-file form or the package folder of a mirrored package archive with exactly the same members, local only. Packages stay download only: the web session has no request that saves one (PROTOCOL.md 1.2, 9; SAFETY.md M16). Not shown: an Apple app opening a converted file, and any write to a shared entry on the real service. Tests: 207 pass. First pass after the update compares complete listings once. 🤖 Generated with Claude Code

FOX-77. A share and its link belong to the document id; the safe replace makes a new document (measured in a throwaway folder: document id, item id, short id and sharing token change, an in-place overwrite keeps them). The mirror now records which entries a listing marks as shared and never replaces or trashes them: a changed shared file is held and reported, or sent under the same document with --shared-in-place; a shared file or folder deleted locally comes back. New command 'document' writes Apple's single-file form or the package folder of a mirrored package archive with exactly the same members, local only. Packages stay download only: the web session has no request that saves one (PROTOCOL.md 1.2, 9; SAFETY.md M16). Not shown: an Apple app opening a converted file, and any write to a shared entry on the real service. Tests: 207 pass. First pass after the update compares complete listings once. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
A share and its link belong to the document id, and the safe replace makes
a new document (measured: document id, item id, short id and sharing token
all change; an in-place overwrite keeps all four). The mirror now records
which entries the listing marks as shared (shareID) and never replaces or
trashes them: a changed shared file is held and reported, or sent under the
same document with --shared-in-place; a shared file or folder deleted
locally comes back. The listing made right before a trash is checked too.
An older index reads every listing once before it sends anything, and index
rows are written by column name.

"document" says what a local Pages, Numbers or Keynote file is and writes
the single-file form or the package folder of a mirrored package archive,
with exactly the same members, without touching the mirror.

Packages stay download only: the web session has no request that saves
one. Protocol note 1.2 and 9, safety rule M16.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
HoroTW merged commit c8c0ed38d4 into main 2026-10-12 17:27:10 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
HoroTW/icloud-drive-linux!9
No description provided.