;; The historical deep-import surface.
;;
;; v1.3.0's tsc output was a file tree (dist/core/room-crypto.js,
;; dist/games/host/valley-blocks-core.js, dist/gym/seance.js, …), and the
;; package's "./games/*" subpath export made part of that tree public. A
;; shadow-cljs :esm build emits one FLAT file per module instead, so
;; scripts/gen-subpaths.mjs writes the old tree back as thin re-export shims
;; (see its table) — and those shims need every historical name to exist as a
;; named export somewhere.
;;
;; `index` covers the "." surface. This namespace covers the rest: the values
;; the old deep files exported that the package root never did. Nothing new is
;; published here; it is the same surface v1.3.0 had, kept reachable.
(ns ardegazu.peer.internals
(:require [ardegazu.peer.core.bootstrap :as bootstrap]
[ardegazu.peer.core.node :as core-node]
[ardegazu.peer.core.peers :as peers]
[ardegazu.peer.core.room-crypto :as room-crypto]
[ardegazu.peer.core.turn :as turn]
[ardegazu.peer.node.env :as env]
[ardegazu.peer.games.host.sim :as sim]
[ardegazu.peer.games.host.seance-sim :as seance-sim]
[ardegazu.peer.games.host.neon-grid-sim :as neon-grid-sim]
[ardegazu.peer.games.host.valley-blocks-core :as vb-core]
[ardegazu.peer.games.host.valley-blocks-protocol :as vb-proto]
[ardegazu.peer.games.host.valley-blocks-sim :as vb-sim]))
;; core/room-crypto
(def RoomCrypto room-crypto/RoomCrypto)
(def random-bytes room-crypto/random-bytes)
(def to-b64 room-crypto/to-b64)
(def from-b64 room-crypto/from-b64)
(def to-b64url room-crypto/to-b64url)
(def from-b64url room-crypto/from-b64url)
;; core/bootstrap, core/turn, core/node, core/peers
(def fetch-relay-info bootstrap/fetch-relay-info)
(def IceConfig turn/IceConfig)
(def NetNode core-node/NetNode)
(def PeerManager peers/PeerManager)
;; node/env
(def self-peer-ids env/self-peer-ids)
(def install-origin-web-socket env/install-origin-web-socket)
(def install-origin-fetch env/install-origin-fetch)
;; games/host/sim
(def NO-EMIT sim/NO-EMIT)
;; games/host/seance-sim constants
(def CANDLES seance-sim/CANDLES)
(def REVEAL-MS seance-sim/REVEAL-MS)
(def walk-ms seance-sim/walk-ms)
(def START-BELL-MS seance-sim/START-BELL-MS)
(def OVER-LOBBY-MS seance-sim/OVER-LOBBY-MS)
(def PICK-GRACE-MS seance-sim/PICK-GRACE-MS)
;; games/host/neon-grid-sim constants
(def GW neon-grid-sim/GW)
(def GH neon-grid-sim/GH)
(def WIN-SCORE neon-grid-sim/WIN-SCORE)
(def DX neon-grid-sim/DX)
(def DY neon-grid-sim/DY)
(def COUNTDOWN-MS neon-grid-sim/COUNTDOWN-MS)
(def OVER-ROUND-MS neon-grid-sim/OVER-ROUND-MS)
(def OVER-MATCH-MS neon-grid-sim/OVER-MATCH-MS)
(def MATCH-LOBBY-MS neon-grid-sim/MATCH-LOBBY-MS)
;; games/host/valley-blocks-core
(def PIECE-TYPES vb-core/PIECE-TYPES)
(def cells-for vb-core/cells-for)
(def kicks-for vb-core/kicks-for)
(def Board vb-core/Board)
(def Bag vb-core/Bag)
(def COLS vb-core/COLS)
(def ROWS vb-core/ROWS)
(def HIDDEN-ROWS vb-core/HIDDEN-ROWS)
(def TOTAL-ROWS vb-core/TOTAL-ROWS)
(def LINES-PER-LEVEL vb-core/LINES-PER-LEVEL)
(def points-for-lines vb-core/points-for-lines)
(def SOFT-DROP-POINTS vb-core/SOFT-DROP-POINTS)
(def HARD-DROP-POINTS vb-core/HARD-DROP-POINTS)
(def gravity-seconds vb-core/gravity-seconds)
(def level-for-lines vb-core/level-for-lines)
(def snake-interval vb-core/snake-interval)
(def snake-duration vb-core/snake-duration)
;; games/host/valley-blocks-protocol
(def MAX-PLAYERS vb-proto/MAX-PLAYERS)
(def STATE-INTERVAL-MS vb-proto/STATE-INTERVAL-MS)
(def PING-INTERVAL-MS vb-proto/PING-INTERVAL-MS)
(def serialize-grid vb-proto/serialize-grid)
(def board-state-of vb-proto/board-state-of)
;; games/host/valley-blocks-sim constants
(def ROUND-LOBBY-MS vb-sim/ROUND-LOBBY-MS)
(def DEFAULT-MODE vb-sim/DEFAULT-MODE)
(def DEFAULT-TARGET vb-sim/DEFAULT-TARGET)