techmannih/usbc-charger

This code defines a detailed electronic hardware design for an 85-265VAC to USB-C PD 18W wall charger, including the schematic layout and physical component placements such as connectors, filtering inductors, capacitors, resistors, protection diodes, and an isolated power module, all integrated with 3D models and mechanical enclosures.

Version
1.0.7
License
unset
Stars
0

.agents/skills/tscircuit/scripts/fetch_ai_txt.sh

#!/usr/bin/env bash
set -euo pipefail

OUT="${1:-ai.txt}"

if command -v curl >/dev/null 2>&1; then
  curl -L "https://docs.tscircuit.com/ai.txt" -o "$OUT"
elif command -v wget >/dev/null 2>&1; then
  wget -O "$OUT" "https://docs.tscircuit.com/ai.txt"
else
  echo "Neither curl nor wget found. Install one of them to download ai.txt" >&2
  exit 127
fi

echo "Wrote $OUT" >&2