c9e8422fa8c2b8eb96dfb7ff0c91c2caef1306bd
2
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
459d668b35 |
sync: pick what syncs, preview a sync, undo the last one (#6428)
jinpwng (#6428, on X) syncs two computers and wants only Library and memory to go between them: each keeps its own providers, settings and models. They also want to see what a sync would change before it applies, and to roll the last one back. What syncs: providers, settings and profiles now have switches like agents' models, library and memory (Config.Providers/Settings/Profiles, *bool, nil = synced as before, so an existing setup syncs exactly what it did). The sync form shows Providers (and its API keys), Settings and Agents' models up front; Profiles, usage and sign-ins sit under Advanced, closed unless one is set away from its default. The form sends a part's choice only when it is or was off. A part left out stays as it is here and on the server; turning it back on joins it like a first sync (st.Off, rejoin). The sync's line says which parts each computer keeps ("Stays as it is on each computer: ..."). The setup text and the CLI carry it: magpie <webdav|s3|github> set providers=no settings=no profiles=no. Preview: davsync.Preview (plan.go) says, per part, what syncing now would bring in, send up, or leave; library items and memory files by name, sign-ins and plugins gone. Preview... in Settings > Sync shows it, and Sync now from there runs SyncPreviewed(token): if the server or this computer changed since, it says so and shows the new plan instead of syncing something else. CLI: magpie <kind> preview. Undo: a sync that brings parts in records them (st.Applied) and keeps a sealed copy of this computer first (keepSealed, as Restore does). Undo the last sync puts those parts back from that copy, on this computer only (st.Local, so the next sync sends it up rather than fetching the server's again). If one of them changed here since, it asks first (409 changed, Undo anyway). CLI: magpie <kind> undo-sync [anyway]. Restore's own Undo is unchanged. docs/subsystems/sync-backup.md and the site's sync docs (en, zh, ja) have a section on it. i18n: zh, zh-TW, ja, de. Run (worktree at base |
||
|
|
1f4f1874b5 |
site: a sync page in en, zh and ja
/docs/sync says how magpie keeps computers in sync: what the sealed file holds (providers and keys, settings, profiles, agents' models, the library, npm and git plugins, gateway keys) and what it doesn't (subscriptions' sign-ins), WebDAV (坚果云, Nextcloud, Synology), S3 (R2, B2, MinIO, path-style, OSS without conditional writes) and private GitHub repos, every 3 minutes with merged conditional writes, Kept on this computer and Follow the others, and the one-off magpie backup and restore with AES-256-GCM and PBKDF2-SHA256. Every claim is from docs/reference.md (Moving to another machine, Keeping machines in sync), with the labels' zh and ja from i18n.js and the commands checked in internal/cli/main.go. Linked from each language's start page; in the sitemap, llms.txt and llms-full.txt. Run: the three pages' JSON-LD parsed with node; llms-full.mjs rebuilt; node --test site/*.test.mjs on the WSL box (magpie-desktop, wsl-run): 116 pass, 0 fail. Not tried: a real WebDAV, S3 or GitHub sync for this page; it names only what magpie's reference says. |