0.1.5: uploading checks everything first; no silent joining

- Before anything is made on the team, upload checks the vault the way the
  hub will (the hub's per-entry check now lives in core): a vault on one
  device only holds every line that looks like a secret as a red card to
  decide; lines marked "not a secret" are told to the team's hub at upload;
  history with a flagged entry offers a fresh start. A refused upload no
  longer leaves an empty vault on the team.
- A vault on one device joins a same-named team vault only when they share
  history; otherwise the team's vault arrives beside it in its own folder.
  (A failed upload's empty vault had silently swallowed Brain.)
- The upload sheet follows the vault live and waits for those decisions.
- Full checks of such a vault are cached by content.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-29 18:23:28 +07:00
parent fdcdecf0f1
commit ac5dba46df
12 changed files with 239 additions and 78 deletions

8
Cargo.lock generated
View File

@@ -2581,7 +2581,7 @@ checksum = "f9f8bd3e56ce4dfc153cf470fffbfa98c7620958b312ca5c3a4b8d5181fd13c6"
[[package]]
name = "lune-core"
version = "0.1.4"
version = "0.1.5"
dependencies = [
"anyhow",
"base64 0.23.1",
@@ -2601,7 +2601,7 @@ dependencies = [
[[package]]
name = "lune-desktop"
version = "0.1.4"
version = "0.1.5"
dependencies = [
"anyhow",
"chrono",
@@ -2621,7 +2621,7 @@ dependencies = [
[[package]]
name = "lunehub"
version = "0.1.4"
version = "0.1.5"
dependencies = [
"anyhow",
"axum",
@@ -2642,7 +2642,7 @@ dependencies = [
[[package]]
name = "lunesync"
version = "0.1.4"
version = "0.1.5"
dependencies = [
"anyhow",
"chrono",