feat: geräte-tokens im konto, neuester clip für kurzbefehle

Token-Verwaltung unter "Konto" (einmalige Anzeige, letzte Nutzung,
Widerruf), GET /api/clips/latest für iPhone-Kurzbefehle und Skripte,
README mit Anleitung für die Kurzbefehle.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
dbildhauerandClaude Opus 5.5 committed 2026-10-25 14:56:12 +01:00
1 parent d8377c8a04
commit 223eb4eb45
10 files changed
+505 -1

No files matched your search

+9
View File
@@ -230,3 +230,12 @@ def test_token_socket_is_revalidated(anna, db, monkeypatch):
while True:
assert ws.receive_json() == {"type": "ping"}
assert exc.value.code == 4401
def test_latest_clip_ignores_pinning_and_files(agent):
assert agent.get("/api/clips/latest").status_code == 404
agent.post("/api/clips", json={"content": "older but pinned", "pinned": True})
agent.post("/api/clips", json={"content": "newest text"})
agent.post("/api/files", params={"name": "newer.txt"}, content=b"file")
assert agent.get("/api/clips/latest").json()["content"] == "newest text"