0.1.3: upload a vault to a team from the app, detach first; AGPL-3.0

- The Lune window shows Upload on a vault that isn't on a team, for the team
  owner and anyone who manages a vault there. The hub now lets those people
  create vaults too (was owner only); /api/me and the canvas say can_create.
- A vault on its own remote (GitHub, GitLab, Gitea…) must be detached first
  (`lunesync vault detach`, or the Upload sheet's Detach): it shares what's
  waiting one last time, then lives on this device only. Upload refuses
  anything else, and a check-in no longer silently moves a same-named vault
  off its own remote onto the hub.
- Upload logic moved from the CLI into core (lune_core::upload).
- Canvas: "1 person loses access".
- License: AGPL-3.0-only. README and SPEC §8 updated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-29 16:44:36 +07:00
parent 584b279496
commit 4ab9d580b8
26 changed files with 1082 additions and 70 deletions

8
Cargo.lock generated
View File

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