Commit Graph

6 Commits

Author SHA1 Message Date
Peterino2 9dd11c3011 Offer desktop client downloads and let a proxy end Lore's gRPC TLS
- scripts/build-desktop-dist.sh cross-compiles the desktop client for
  Linux (glibc 2.39) and Windows with Zig and Cargo, bundles liblore
  from the pinned release, and writes the archives, SHA256SUMS and BUILD
  to run/downloads/.
- lore-forge serves them to signed-in users at /download and
  /downloads/{file} (LORE_FORGE_DOWNLOADS_DIR), with a Desktop tab in
  the nav and a panel on the home page. Only plain names of known types
  are served; download and downloads are reserved names.
- fetch-lore.sh takes LORE_TARGET for --liblore and unpacks the Windows
  zip.
- loreserver-config --grpc-tls-at-proxy (LORE_GRPC_TLS_AT_PROXY=1 for
  start.sh) gives the certificate to QUIC only, for a proxy that ends
  TLS on TCP 41337 and relays to loreserver over a private link.
- shell.nix: an FHS shell with Rust, protoc, Zig and the other build
  tools, for NixOS.
2026-11-27 04:16:36 +00:00
Peterino 2174cc97e4 Show transfer speed in the desktop client
The service now measures the bytes a sync, submit or clone moves and
adds them to its activity events as a transfer: direction, bytes done
and total, the rate over the last 3 s, and the elapsed time. On
finish, the rate is the transfer's average. Running events are sent
at most every 250 ms, or when the file count changes, rather than on
every liblore progress event.

The workspace bar shows the running transfer's direction, speed,
bytes and time left under it, and keeps the last transfer's size,
time and average speed until the next one. Sizes in the file list and
the bar share one formatter, in units of 1024, with GB and TB.

The desktop e2e checks that a submit reports bytes pushed and a sync
bytes fetched.
2026-11-26 21:07:28 -07:00
Peterino e230e4e7eb Ask for the server on the desktop client's first run
The ADD panel no longer starts on lore://localhost:41337. On first run
it asks which Lore server you work on, takes the address as typed
(lore.example.com, host:port, the forge's https:// address or a
lore(s):// remote) and makes it lores://host:41337, or lore:// for a
loopback host. CONNECT signs in unless a sign-in for that host is kept,
then lists the repositories. The server is kept in `server` beside
desktop.toml; the panel then shows it with CHANGE, SIGN IN and LIST.

--test checks the address handling. README and the design doc describe
the first run; the README drops the milestone 1 notes.
2026-11-26 18:21:06 -07:00
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
Peterino 6ebe985668 Add the desktop client
A per-user client service in Rust with a C++ Dear ImGui tray GUI built
on the vendored UHDK, in the pixel-art style the web UI now shares.
The explorer draft shows FILES, GRAPH and TREE over a hard-coded
sample repository until the service reads real workspaces.

Builds with Zig 0.17.1 and Cargo; see desktop/README.md.
2026-11-25 19:09:43 -07:00