Skip to main content

Module pull

Module pull 

Source
Expand description

The network half of knowledge sync, run by the scheduler or lean-ctx cloud sync, never inside a tool call:

  1. send queued drafts (rebased onto the newest base when possible),
  2. pull new revisions of known projects into project knowledge.

Structs§

SyncReport
What one sync pass did.

Functions§

draft_listing
Pending and failed drafts for cloud status.
org_salt
GET /org/salt: the salt id and bytes identity digests are made with.
resolve_project
The vault the checkout at root is linked to, resolved in Cloud (and remembered) when this machine has no record of it yet, e.g. on the first sync after cloud link. A first share that waits for the person’s yes is MapError::Consent.
sync
Send drafts, then pull. cwd_root adds the current project to the pull even if it never drafted (for lean-ctx cloud sync in a project).

Type Aliases§

DraftLine
A draft as cloud status lists it: (outbox id, summary, last error).