Synced folders: folders copied from GitHub
This is the synced-folders section of the usage guide. Call getDocs with { "section": "synced-folders" } to read it on an instance.
An admin can connect a folder of a GitHub repository to a project in the Sasha web interface (Settings → Shared Drives). Sasha copies its documents into a folder of that project and syncs it every day. A synced folder is read-only: change its documents in GitHub, never in Sasha. You read its documents with the knowledge tools like any others.
listProjectsgives a project that holds synced folders asyncedFolderslist:folder(the folder name in the project),source(owner/repo@branchorowner/repo@branch:path) andlastSynced(UTC, or null if it never synced).syncFoldersyncs one folder now, as Check now does on its card, and waits until the sync ends. Sendproject(the project's id: its folder name) andfolder(the synced folder's name). It returnsfolder,source,commit(the GitHub commit now in Sasha),lastSyncedanderror: null after a good sync, else{ code, message }for the last failed attempt, for exampleGITHUB_TOKEN_INVALID. A failed sync keeps the last good copy, socommitandlastSyncedthen describe that copy.
syncFolder needs synced-folders:sync. Only an admin holds it, and it is not
part of a default grant: an admin's chat in the Sasha web interface has it, and
another client has it only when it asks for it by name. An unknown project or
folder is refused with Not found. No tool adds a synced folder or sets its
GitHub token: a token typed in chat would stay in the conversation. An admin does
both in the Sasha web interface.