hidden contact invite

This commit is contained in:
yves committed 2026-11-20 23:29:41 +01:00
1 parent ce44ee48b3
commit 7eace57528
6 files changed
+172 -37

No files matched your search

+14
View File
@@ -189,6 +189,20 @@ expect "reply from the hidden side" "sent to remote" meow bob -u hide-me send re
expect "remote gets it" "[bob] hidden reply" meow remote
expect "history kept" "[remote] hello from remote" meow bob -u hide-me history remote
step "INVITATION STRAIGHT INTO HIDDEN SPACES"
meow dave identity create dave --force >/dev/null
meow dave server add "$S1" >/dev/null
URL="$(meow alice server-invitation create dave --servers "$S1" --space-password alice-hides)"
expect "dave answers into his hidden space" "answered invitation from alice" \
meow dave server-invitation get "$URL" --space-password dave-hides
expect "step 3 needs alice's hidden space" "invitation accepted by dave" meow alice -u alice-hides
expect "step 4" "contact alice is active" meow dave -u dave-hides
expect "ack" "contact dave is active" meow alice -u alice-hides
OUT="$(meow alice contact list; meow dave contact list)"
if grep -q -e '^dave' -e '^alice' <<<"$OUT"; then red "hidden invitation visible in the main space"; exit 1; fi
expect "talk" "sent to dave" meow alice -u alice-hides send dave "hidden from the start"
expect "dave reads" "[alice] hidden from the start" meow dave -u dave-hides
# ── resilience: one server down ──
step "ONE SERVER DOWN"
kill "${PIDS[1]}"; wait "${PIDS[1]}" 2>/dev/null || true; PIDS[1]=""