ReplJars
The jars the REPL runs on: the urls of the MaskingClassLoader, and the classpath snippets compile against. Both are worked out on the game loader, ahead of the masking world ReplBridge builds from them.
Functions
Add the jar backing className (via its CodeSource on the game loader) to the compile classpath, if it resolves to a real file not already present. Used to recover MC's API-dependency jars on a production runtime whose classpath enumeration is incomplete. Silently skips anything absent.
Probe each type listed in the bundle's deps.txt on the game loader and add its backing jar to cp, recovering the MC API-dep jars (e.g. mojang serialization) the production bundler hides from enumeration. A missing or unreadable deps.txt is non-fatal (logged) — a partial cache, or simply a hand-supplied bundle, which is not required to carry one; client-only names just don't resolve.
Assemble the compile classpath (game cp + all mods + JiJ libs + mojmap remap symbols + MC API deps). Remap-DEPENDENT: reads RemapBundle, which the remap thread publishes — so this must run AFTER the remap symbols are ready (the warmup gate enforces it).
Production fallback: extract the nested jars under prefix (e.g. mcp-kotlin/) from our own mod jar into a stable cache dir, revalidated by a CRC stamp so a rebuild re-extracts only what actually changed. Returns their file URLs (for the masking loader), or an empty list in dev — there is no jar to extract from, and the flags/enumeration already cover those paths.
Masking-loader urls: the Kotlin scripting stack (never on the module path) + the source of the repl.impl classes, so ReplHost resolves child-first.
Our own mod jar, via this class's CodeSource — the anchor for production self-extraction.
Our own mod jar, or null when we run from a classes dir (dev): JarLocator.toJarFile resolves that location to the DIRECTORY, hence the isFile check.