# fetch-manifest.txt — Single source of truth for every external source RaspiBlesk
# needs, so build/install can run forge-first (sovereign / GitHub-outage-safe).
#
# Consumed by:
#   blesk.mirror-sync.sh  (maintainer-side: populate + keep forge.618.ch in sync)
#   blesk.fetch.sh        (on-Pi, Phase 2: resolve forge-first with upstream fallback)
#
# Columns (whitespace-separated; '-' = not applicable / pin TBD):
#   type   = git | asset
#   name   = logical mirror name (→ forge.618.ch/<MIRROR_ORG>/<name>[.git])
#   ref    = git: branch/tag to mirror (HEAD = default branch) · asset: version tag
#   upstream = canonical upstream URL (git remote or asset download URL)
#   sha256 = asset: pinned hash (git: '-'). TBD = extract from install script before flip.
#
# STATUS: P1 git layer LIVE (2026-05-30). Mirror namespace = forge.618.ch/GlcoinCore/*.
# 52 external git repos mirrored + verified (git ls-remote OK). raspiblesk/raspiblesk-web
# are forge-native (see block below, not mirrored). 2 dead upstreams flagged as GAP.
# Asset sha256 pins marked TBD must be filled from the listed install script before any
# asset upload + before the bootstrap/installer is flipped to forge-only.
# Strategy: REDUNDANCY first (forge-first + GitHub fallback), no forge-only flip yet.
#
# type   name                ref                         upstream                                                                            sha256

# ─── FORGE-NATIVE: schon kanonisch auf forge, NICHT unter GlcoinCore spiegeln ─────────
# Diese Repos sind first-party auf forge und werden direkt referenziert (verifiziert
# 2026-05-30: beide HTTP 200). Der Bootstrap/WebUI klont bereits forge-first.
#   raspiblesk     → forge.618.ch/raspiblesk/raspiblesk        (Bootstrap-Source)
#   raspiblesk-web → forge.618.ch/raspiblesk/raspiblesk-web    (blesk.web.ui.sh:89, WEBUI_FORGE_HOST;
#                                                               GitHub-Upstream: cstenglein/raspiblesk-web)
#
# ─── raspiblesk core (extern, gespiegelt unter GlcoinCore) ───────────────────────────
git      blitz_api           HEAD                        https://github.com/fusion44/blitz_api.git                                           -

# ─── core stack ─────────────────────────────────────────────────────────────────────
git      lnd                 v0.21.8-beta                https://github.com/lightningnetwork/lnd.git                                         -
git      btcd                HEAD                        https://github.com/btcsuite/btcd.git                                                -
git      electrs             v0.12.1                     https://github.com/romanz/electrs.git                                               -
git      cln                 v26.06.10                   https://github.com/ElementsProject/lightning.git                                    -
git      googleapis          HEAD                        https://github.com/googleapis/googleapis.git                                        -

# ─── binary / release assets (pinned) ────────────────────────────────────────────────
# go: ONE version since 0.17.0 - bonus.go.sh and lnd.install.sh both use 1.26.10 (sha256 = SHA256_GO_TOOLCHAIN_arm64)
asset    go-1.26.10          1.26.10                     https://go.dev/dl/go1.26.10.linux-arm64.tar.gz                                      3f4227ce7b206a513e794f1393adb473a07b46e94d18bd15d1c684bbb7319797
asset    kubo                v0.43.1                     https://dist.ipfs.tech/kubo/v0.43.1/kubo_v0.43.1_linux-arm64.tar.gz                  e09237abadd9578d7a73dd2e2b718848b78437cb56e48cc9742b23ce9ebac829
asset    cln-zip             v26.06.10                   https://github.com/ElementsProject/lightning/releases/download/v26.06.10/clightning-v26.06.10.zip  -
# GAP (2026-05-30): glcoinknots.org existiert nicht (DNS NXDOMAIN) — bonus.knots.sh:146.
# knots-Binary muss aus einer realen Quelle kommen (vermutlich forge/glcoin-Release). Bis dahin nicht spiegelbar.
#asset   knots               29.2.knots20251110          https://glcoinknots.org/files/29.2/29.2.knots20251110/glcoin-29.2.knots20251110-aarch64-linux-gnu.tar.gz  TBD
asset    rustup-init         stable                      https://sh.rustup.rs                                                                -
# already on forge (prebuilt, GLCOIN_RELEASE) — kept here for completeness/verify:
# electrs-prebuilt, lnd-prebuilt, cln-prebuilt → forge.618.ch/raspiblesk/raspiblesk/releases

# ─── lightning / bonus apps (git pull-mirror) ────────────────────────────────────────
git      charge-lnd          HEAD                        https://github.com/accumulator/charge-lnd.git                                       -
git      circuitbreaker      HEAD                        https://github.com/lightningequipment/circuitbreaker.git                            -
git      loop                HEAD                        https://github.com/lightninglabs/loop.git                                           -
git      pool                HEAD                        https://github.com/lightninglabs/pool.git                                           -
git      lndg                HEAD                        https://github.com/cryptosharks131/lndg.git                                         -
git      lndk                HEAD                        https://github.com/lndk-org/lndk.git                                                -
git      lnproxy             HEAD                        https://github.com/lnproxy/lnproxy.git                                              -
git      RTL                 HEAD                        https://github.com/Ride-The-Lightning/RTL.git                                       -
git      thunderhub          HEAD                        https://github.com/apotdevin/thunderhub.git                                         -
git      lnbits              HEAD                        https://github.com/lnbits/lnbits.git                                                -
git      mempool             HEAD                        https://github.com/mempool/mempool.git                                              -
git      btc-rpc-explorer    HEAD                        https://github.com/janoside/btc-rpc-explorer.git                                    -
git      suez                HEAD                        https://github.com/prusnak/suez.git                                                 -
git      joininbox           HEAD                        https://github.com/openoms/joininbox.git                                            -
git      lightningtipbot     HEAD                        https://github.com/ChuckNorrison/LightningTipBot.git                                -
git      pyblock             HEAD                        https://github.com/curly60e/pyblock.git                                             -
git      homer               HEAD                        https://github.com/bastienwirtz/homer.git                                           -
git      zram-swap           HEAD                        https://github.com/foundObjects/zram-swap.git                                       -
git      wavesharelcd        HEAD                        https://github.com/tux1c/wavesharelcd-64bit-rpi.git                                 -
# GAP (2026-05-30): toter Upstream — github.com/HiLivin/x708blesk = HTTP 404 (blesk.ups.sh:70).
# Auch der aktuelle GitHub-Build bricht hier. Braucht eine lebende Quelle, bevor gespiegelt wird.
#git     x708blesk           HEAD                        https://github.com/HiLivin/x708blesk.git                                            -
git      snowflake           HEAD                        https://github.com/keroserene/snowflake.git                                         -

# ─── CLN plugins (git pull-mirror) ───────────────────────────────────────────────────
git      cln-plugins         HEAD                        https://github.com/lightningd/plugins.git                                           -
git      clboss              HEAD                        https://github.com/ZmnSCPxj/clboss.git                                              -
git      cln-http-plugin     HEAD                        https://github.com/Start9Labs/c-lightning-http-plugin.git                           -
git      summars             HEAD                        https://github.com/daywalker90/summars.git                                          -
git      rust-teos           HEAD                        https://github.com/talaia-labs/rust-teos.git                                        -

# ─── apps with config-variable upstreams (resolved from install scripts) ──────────────
git      fints               HEAD                        https://github.com/drmartinberger/FueliFinTS.git                                    -
git      labelbase           HEAD                        https://github.com/Labelbase/Labelbase.git                                          -
# GAP (2026-05-30): toter Upstream — github.com/rootzoll/webapp-template = HTTP 404 (bonus.template.sh:18).
# Auch der aktuelle GitHub-Build bricht hier. Braucht eine lebende Quelle, bevor gespiegelt wird.
#git     webapp-template     HEAD                        https://github.com/rootzoll/webapp-template.git                                     -
git      ckbunker            HEAD                        https://github.com/Coldcard/ckbunker.git                                            -
git      sphinx-relay        HEAD                        https://github.com/stakwork/sphinx-relay.git                                        -
git      squeaknode          HEAD                        https://github.com/yzernik/squeaknode.git                                           -
git      jam                 HEAD                        https://github.com/joinmarket-webui/jam.git                                         -
git      ud3tn               HEAD                        https://gitlab.com/d3tn/ud3tn.git                                                   -

# ─── additional repos (sweep nachträge) ───────────────────────────────────────────────
git      Fulcrum             HEAD                        https://github.com/cculianu/Fulcrum.git                                             -
git      specter-desktop     HEAD                        https://github.com/cryptoadvance/specter-desktop.git                                -
git      acme.sh             HEAD                        https://github.com/acmesh-official/acme.sh.git                                      -
git      chantools           HEAD                        https://github.com/guggero/chantools.git                                            -
git      faraday             HEAD                        https://github.com/lightninglabs/faraday.git                                        -
git      lightning-terminal  HEAD                        https://github.com/lightninglabs/lightning-terminal.git                             -
git      balanceofsatoshis   HEAD                        https://github.com/alexbosworth/balanceofsatoshis.git                               -
git      lndmanage           HEAD                        https://github.com/bitromortac/lndmanage.git                                        -
git      alby-hub            HEAD                        https://github.com/getAlby/hub.git                                                  -
git      joinmarket          HEAD                        https://github.com/JoinMarket-Org/joinmarket-clientserver.git                       -
git      elements            HEAD                        https://github.com/ElementsProject/elements.git                                     -
git      cln-nip47           HEAD                        https://github.com/daywalker90/cln-nip47.git                                        -
git      fzf                 HEAD                        https://github.com/junegunn/fzf.git                                                 -
git      kindle-display      HEAD                        https://github.com/dennisreimann/kindle-display.git                                 -
git      stacking-sats-kraken HEAD                       https://github.com/dennisreimann/stacking-sats-kraken.git                           -

# ─── decentralized DNS (optional, blesk.handshake.sh / blesk.unbound.sh) ───────────────
git      hnsd                HEAD                        https://github.com/handshake-org/hnsd.git                                           -

# ─── L5: PGP verify keys (mirror so offline signature verify doesn't break) ────────────
asset    pgp-guggero         keys                        https://keybase.io/guggero/pgp_keys.asc                                             -
asset    pgp-janoside        keys                        https://github.com/janoside.gpg                                                     -
asset    pgp-bitromortac     keys                        https://github.com/bitromortac.gpg                                                  -

# ─── L3 package-manager indexes (Forgejo package-registry targets — Phase 2) ──────────
# Not single files but whole indexes. Build-side config (Phase 2) points these at forge:
#   pip   → forge.618.ch/api/packages/<org>/pypi/simple   (+ piwheels ARM wheels)
#   npm   → forge.618.ch/api/packages/<org>/npm/          (node itself: nodesource → L4)
#   cargo → forge.618.ch/api/packages/<org>/cargo/        (source-replacement in .cargo/config)
#   go    → GOPROXY=https://forge.618.ch/api/packages/<org>/go/
#
# ─── L4 apt repositories (Forgejo Debian-registry / aptly mirror — Phase 3) ───────────
#   deb.debian.org + security.debian.org · deb.torproject.org · repo.i2pd.xyz · deb.nodesource.com
#
# ─── L5 misc ──────────────────────────────────────────────────────────────────────────
#   sh.rustup.rs (rustup toolchain) → vendor offline rustup + toolchain into a forge asset
