docs: update README for the new auth model; add SECURITY, CHANGELOG, CI and a public export script

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-14 19:20:01 +07:00
parent f13f0e6953
commit 68c87fa914
5 changed files with 82 additions and 2 deletions

17
scripts/export-public.sh Executable file
View File

@@ -0,0 +1,17 @@
#!/usr/bin/env bash
# Build a clean, single-commit tree for the public repository. Nothing is pushed.
# Usage: scripts/export-public.sh /path/to/empty-dir
set -euo pipefail
out="${1:?target directory}"
[ -z "$(ls -A "$out" 2>/dev/null)" ] || { echo "target must be empty" >&2; exit 1; }
root="$(git rev-parse --show-toplevel)"
git -C "$root" diff --quiet HEAD || { echo "commit or stash first" >&2; exit 1; }
git -C "$root" archive HEAD | tar -x -C "$out"
# Deployment-specific and planning material stays in the private repository.
rm -rf "$out/tasks" "$out/tests/mbu" "$out/docs/MBU-BACKUP-PARITY.md" "$out/docs/MBU-CUTOVER.md" "$out/floorplan" "$out/graft"
if grep -rIlE "mbugroup|backup\.mbu|hafizh|senkensha\.space|teleport" "$out" --exclude-dir=node_modules >/dev/null; then
echo "private references remain:" >&2
grep -rIlE "mbugroup|backup\.mbu|hafizh|senkensha\.space|teleport" "$out" --exclude-dir=node_modules >&2
exit 1
fi
echo "clean tree at $out; review it, then: git init && git add -A && git commit"