#!/bin/bash # Probe: gitverse fork support + Phanpy upstream info set -e SECRETS=/opt/hermes/.hermes/secrets/git-tokens.env PAT=$(grep -E '^GITVERSE_PAT=' "$SECRETS" | cut -d= -f2- | tr -d '"' | tr -d "'" | tr -d '\r\n') echo "=== GITVERSE PAT loaded: ${#PAT} chars ===" echo "=== gitverse: does API know 'forks'? try mimic-send ===" curl -s -X POST "https://gitverse.ru/api/v1/user/repos/forks" \ -H "Authorization: Bearer $PAT" \ -H "Accept: application/vnd.gitverse.object+json;version=1" \ -H "Content-Type: application/json" \ -d '{"name":"_probe-fork-support"}' -w "\nHTTP %{http_code}\n" | tail -8 echo; echo "=== Phanpy upstream: github cheeaun (fork source) ===" curl -s "https://api.github.com/repos/cheeaun/phanpy" | head -c 300 echo