mirror of
https://github.com/DeusData/codebase-memory-mcp.git
synced 2026-11-04 10:48:20 +00:00
Imports the CodeAtlasWeb companion frontend verbatim from BernhardJackiewicz/CodeAtlasWeb at commit 1825f9c850ac794066e02606012508b9d393c6aa as the new graph-ui and removes the previous React frontend. This is Bernhard Jackiewicz's work, contributed with his agreement and squashed here from his development history (41 commits, cycles W0 through W15). The maintainer only relocates it: every product decision, line of code and test below graph-ui/ is his. The seven galaxy files that originate in this repository's previous graph-ui, and the pinned 3D libraries, are listed in graph-ui/THIRD_PARTY.md. What it is: a local reading IDE on the CBM read surface. A read-only Monaco source reader, a semantic twin that follows the caret, entry, bug-hunt, change-scope and flow reading modes, deterministic source-cited explanations with an optional local-model wording pass (llama-server sidecar, off unless the reader starts one; no model or binary ships), a persistent galaxy with focus following in both directions, a live-agent overlay fed by a loopback bridge, explicit air-gap, provenance and index-limit messaging, and an offline acceptance and browser verification harness. It consumes POST /rpc (the read-only tool allowlist), GET /api/layout, and the atlas routes /api/tree, /api/trace, /api/flows and /api/flow, plus the real ingest_traces store for observed calls; all of these are on feat/atlas-r1 (#1860), which this change stacks on. Not imported: CLAUDE.md (an agent-instruction file, which stays local-only in this repository), and the recorded proof artifacts under graph-ui/verification/, which follow in a separate commit so they can be reviewed and dropped on their own. Build wiring, the dev-proxy port contract, the CSP allowance for the sidecar and bridge ports, and the control surfaces the previous frontend had (project indexing, ADR editor, logs) follow in separate maintainer commits. Design and tracking: #1964. Co-authored-by: Bernhard Jackiewicz <bj@techport.io> Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
55 lines
1.4 KiB
Bash
55 lines
1.4 KiB
Bash
#!/bin/sh
|
|
# Den eigenen Sidecar beenden, und nur den eigenen.
|
|
#
|
|
# Beendet wird ausschliesslich die PID aus llm/.pid. Kein pkill auf einen
|
|
# Namen, kein "was auch immer auf 4141 lauscht": beides wuerde fremde Prozesse
|
|
# treffen, die dieses Skript nie gestartet hat. Steht in der Datei eine PID, die
|
|
# es nicht mehr gibt, wird die Datei aufgeraeumt und das gesagt.
|
|
#
|
|
# Aufruf: llm/stop.sh
|
|
|
|
set -eu
|
|
|
|
HERE=$(cd "$(dirname "$0")" && pwd)
|
|
PID_FILE="$HERE/.pid"
|
|
|
|
if [ ! -f "$PID_FILE" ]; then
|
|
echo "keine PID-Datei ($PID_FILE): dieses Skript hat gerade nichts laufen."
|
|
exit 0
|
|
fi
|
|
|
|
PID=$(cat "$PID_FILE" 2>/dev/null || echo '')
|
|
if [ -z "$PID" ]; then
|
|
echo "PID-Datei war leer, wird entfernt."
|
|
rm -f "$PID_FILE"
|
|
exit 0
|
|
fi
|
|
|
|
if ! kill -0 "$PID" 2>/dev/null; then
|
|
echo "pid $PID laeuft nicht mehr; die PID-Datei wird entfernt."
|
|
rm -f "$PID_FILE"
|
|
exit 0
|
|
fi
|
|
|
|
kill "$PID" 2>/dev/null || true
|
|
|
|
# Erst hoeflich, dann nicht mehr. Fuenf Sekunden reichen dem Sidecar, um seine
|
|
# Slots abzuraeumen; laenger zu warten hiesse, jedem Beweislauf eine Pause
|
|
# aufzuzwingen, die nur der Hoeflichkeit dient.
|
|
i=0
|
|
while [ "$i" -lt 50 ]; do
|
|
if ! kill -0 "$PID" 2>/dev/null; then
|
|
rm -f "$PID_FILE"
|
|
echo "Sidecar beendet (pid $PID)."
|
|
exit 0
|
|
fi
|
|
sleep 0.1
|
|
i=$((i + 1))
|
|
done
|
|
|
|
echo "pid $PID reagierte nicht auf SIGTERM, sende SIGKILL." >&2
|
|
kill -9 "$PID" 2>/dev/null || true
|
|
sleep 0.3
|
|
rm -f "$PID_FILE"
|
|
echo "Sidecar hart beendet (pid $PID)."
|