Monorepo for Aesthetic.Computer aesthetic.computer
4
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: ac-usb flash grabs all credentials + 1GB partition

- Claude token: check .credentials.json, then CLAUDE_CODE_OAUTH_TOKEN env
- GitHub PAT: check gh config, then GH_TOKEN/GITHUB_TOKEN env
- Partition size 1GB (was 512MB, too small for 270MB unified build)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

+6 -2
+6 -2
fedac/native/ac-usb
··· 136 136 apk add --quiet dosfstools sfdisk 137 137 cat > /tmp/vmlinuz 138 138 echo 'label: gpt 139 - type=C12A7328-F81F-11D2-BA4B-00A0C93EC93B, size=512M' | sfdisk ${USB_DEV} 139 + type=C12A7328-F81F-11D2-BA4B-00A0C93EC93B, size=1024M' | sfdisk ${USB_DEV} 140 140 sync; sleep 1 141 141 mkfs.vfat -F 32 -n AC-NATIVE ${USB_DEV}1 142 142 mkdir -p /mnt/usb ··· 149 149 echo 'Done!' 150 150 " 151 151 rm -f /workspaces/aesthetic-computer/.flash-vmlinuz 2>/dev/null 152 - # Inject handle (always) + optional credentials into config.json on the USB 152 + # Inject handle (always) + all available credentials into config.json 153 153 HANDLE="${3:-jeffrey}" 154 154 CLAUDE_TOKEN="" 155 155 GITHUB_PAT="" 156 + # Claude token: check .credentials.json first, then env 156 157 if [ -f "${HOME}/.claude/.credentials.json" ]; then 157 158 CLAUDE_TOKEN=$(node -e " 158 159 const c=JSON.parse(require('fs').readFileSync(process.env.HOME+'/.claude/.credentials.json','utf8')); 159 160 process.stdout.write(c.claudeAiOauth?.accessToken || ''); 160 161 " 2>/dev/null || true) 161 162 fi 163 + [ -z "${CLAUDE_TOKEN}" ] && CLAUDE_TOKEN="${CLAUDE_CODE_OAUTH_TOKEN:-}" 164 + # GitHub PAT: check gh config, then env vars 162 165 if [ -f "${HOME}/.config/gh/hosts.yml" ]; then 163 166 GITHUB_PAT=$(grep 'oauth_token:' "${HOME}/.config/gh/hosts.yml" 2>/dev/null | head -1 | awk '{print $2}' || true) 164 167 fi 168 + [ -z "${GITHUB_PAT}" ] && GITHUB_PAT="${GH_TOKEN:-${GITHUB_TOKEN:-}}" 165 169 # Always write config.json with at least the handle 166 170 CONFIG_JSON=$(node -e " 167 171 const c = {handle: '${HANDLE}'};