Add TUI launch support and Codex install updates

This commit is contained in:
FBukovina 2026-05-20 10:53:31 +02:00
commit 4246999931
3 changed files with 994 additions and 8 deletions

View file

@ -10,13 +10,15 @@ mkdir -p "$DEST_DIR"
curl -fsSL "$BASE_URL/burn" -o "$DEST_DIR/burn"
# Sourced by burn when using --backend codex to compute estimated cost.
curl -fsSL "$BASE_URL/codex_rates.sh" -o "$DEST_DIR/codex_rates.sh"
chmod +x "$DEST_DIR/burn"
curl -fsSL "$BASE_URL/tui.js" -o "$DEST_DIR/tui.js"
chmod +x "$DEST_DIR/burn" "$DEST_DIR/tui.js"
echo "✅ installed burn → $DEST_DIR/burn"
case ":${PATH}:" in
*":${DEST_DIR}:"*)
echo "🔥 ready to go: run 'burn 10000' to torch some tokens."
echo "🕹️ or run 'burn' with no arguments to open the TUI."
;;
*)
echo
@ -25,6 +27,6 @@ case ":${PATH}:" in
echo
echo " export PATH=\"\$HOME/.local/bin:\$PATH\""
echo
echo " then reload your shell and run 'burn 10000'."
echo " then reload your shell and run 'burn 10000' or just 'burn' for the TUI."
;;
esac