Mache km zum Dienst: HTTP-API, Takt, Git-Ablage, Image und compose

Ein Prozess (image/km/main.py) mit API (read, search, summary, health,
refresh) auf Standardbibliothek und einem Takt, der die Ablage zieht,
Gitea einliest, indexiert und alles Geänderte committet und pusht — auch
Änderungen aus SilverBullet. Die Ablage ist ein Git-Checkout auf dem
Volume, der Index eine SQLite-Datei daneben; ein Start ohne nötige
Umgebung hält mit einer Liste an.

deploy/compose.yml: km plus SilverBullet auf demselben Volume, für den
oci-Betrieb in hive.home unter /km (SB_URL_PREFIX). deploy/health für
42i-hc. Lokal gegen ein Bare-Remote und spine/core durchgespielt: Ingest,
Index, Commit, Push, Suche, Read mit Kanten in beide Richtungen, und eine
von Hand angelegte Seite landet im nächsten Takt im Remote.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
2026-09-04 18:44:50 +02:00
co-authored by Claude Fable 5.1
parent 4986ef0575
commit 9b8b3d98ad
10 changed files with 662 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
#!/bin/sh
# Start, der laut scheitert: fehlt Notwendiges, haelt main.py mit einer Liste an.
set -eu
git config --global --add safe.directory '*'
git config --global pull.rebase true
exec python3 /app/km/main.py