Commit Graph

2 Commits

Author SHA1 Message Date
Peterino 0e8e4a601a Add file locking, autosync and notifications to the desktop client
Desktop milestone 3, protocol v3.

- lore-sys: lock acquire, release and status, and notification
  subscribe/unsubscribe, with their events.
- Service: locks, lock, unlock (with force) and workspace_settings
  methods; locks and notice events; error -32006 for files someone
  else holds. SUBMIT refuses those files and releases your locks on
  what it pushed unless keep_locks is set.
- Service policies: a file watcher rescans after edits, warns once per
  edited file someone else has locked, and with lock_on_edit locks
  newly modified binary files (NUL in the first 8 KB, or the binary/
  text extension lists). One notification subscription per repository
  keeps locks current and marks the workspace behind on pushes.
- Autosync (off, interval, on_change) only pulls. It holds back when
  local edits overlap remote changes, keeps them, and sets a warning.
- GUI: LOCK/UNLOCK in FILES with multi-select, LOCKED BY and LOCK in
  CHANGES with KEEP LOCKS, a LOCKS tab with UNLOCK and FORCE UNLOCK,
  the AUTO popup, notices under the header and in the tray tooltip.
  --test goes on when its warm-up sync is refused; --tab locks.
- e2e: bob gets writer access and a CLI working copy to check locks,
  lock on edit and autosync between two users.
- Docs: verified lock and notification behaviour of liblore v0.14.0,
  the protocol v3 tables, autosync, and the milestone status.
2026-11-26 12:07:40 -07:00
Peterino 4c991f3c24 Drive real workspaces through liblore in the desktop client
forge-service now loads Lore's C library (liblore v0.14.0, pinned in
lore.lock) through generated bindings in desktop/lore-sys, and speaks
protocol v2: status, history, files, revisions, file history, local
changes, sync, submit of chosen files, sign-in through the forge's
device flow, the repository list, clone, and adding or forgetting
workspaces. Requests on one connection run concurrently.

The GUI drops the sample repository and draws the explorer from the
service, with an ADD panel for opening or cloning, a sign-in banner,
and a CHANGES tab whose checked files SUBMIT commits and pushes.

scripts/e2e-lore.sh now also drives forge-service against the real
loreserver and lore-forge through scripts/desktop-e2e.py, and keeps
every login's key in a file so no run asks for the keychain.
fetch-lore.sh gains --liblore. Design docs and agent notes record what
was verified in liblore and the SYNC/SUBMIT decisions.
2026-11-26 10:19:27 -07:00