app
Codex
Public Made by Adomby adom
Codex in Adom Hydrogen: ecosystem setup, dock dashboard and live engineering demos.
main
#!/bin/sh
set -eu
python3 "$(dirname "$0")/runtime/manage.py" uninstall
python3 - <<'PY'
from pathlib import Path
import os,re
home=Path.home();ch=Path(os.environ.get('CODEX_HOME',home/'.codex'));p=ch/'AGENTS.md'
if p.exists():
s=p.read_text();n=re.sub(r'<!-- adom/codex:begin -->.*?<!-- adom/codex:end -->','',s,flags=re.S)
if n!=s:p.write_text(n)
b=home/'.local/bin/adom-codex'
if b.exists() and '/.local/share/adom/codex/adom_codex.py' in b.read_text():b.unlink()
print('OK: Removed Codex entry point and launcher. Package data retained under ~/.local/share/adom/codex; no user credentials or settings removed.')
PY