docs(audit): Tim's machine IOC resolved — export was user-initiated

This commit is contained in:
2026-08-21 17:43:16 -05:00
parent e48ce15431
commit 5062cd46ec
3 changed files with 79 additions and 2 deletions
+7 -1
View File
@@ -18,6 +18,12 @@ case "$ARCH" in
*) TARGET="" ;;
esac
if [ -n "$TARGET" ] && [ -x "$PKG/dist/$TARGET/bin/opencode" ]; then
exec "$PKG/dist/$TARGET/bin/opencode" "$@"
BIN="$PKG/dist/$TARGET/bin/opencode"
# launch-integrity record: every run logs WHO ran and WHAT its fingerprint was
LOG_DIR="${XDG_STATE_HOME:-$HOME/.local/state}"
SUM=$(shasum -a 256 "$BIN" | cut -d" " -f1)
mkdir -p "$LOG_DIR"
echo "{\"t\":\"$(date -u +%FT%TZ)\",\"event\":\"launch\",\"bin\":\"$TARGET\",\"sha256\":\"$SUM\"}" >> "$LOG_DIR/neuron-guard.jsonl"
exec "$BIN" "$@"
fi
exec bun run --conditions=browser "$PKG/src/index.ts" "$@"