Files
pplus-web/tests
alexmandClaude 5c6e7e2df5 Send Compile & run through a CompileBackend instead of straight to godbolt
Every compile went to godbolt.org from the session directly. The roadmap
moves compiles, and later Dafny and Lean checks, to a pinned service of the
app's own, and godbolt has no service guarantee, so where a compile goes is
now one replaceable piece.

- src/services/compile-backend.ts: a CompileBackend (id, host, compiler,
  compile), explorerBackend() for any service that speaks Compiler
  Explorer's API at a base URL, GODBOLT as the default, and
  compileBackend() / setCompileBackend().
- godbolt.ts: compileMojo takes a CompileTarget (base, compiler, host) and
  names that host in its messages; the request body is unchanged, so
  tests/mojo.test.mjs still holds it to what the corpus pipeline sends.
- Session.compile asks the current backend and records which host answered
  (CompileRecord.host; older records came from godbolt.org).
- The Compiler view names the host it is asking and the host that answered.
  The "Compiled on godbolt" badge keeps its wording until a second backend
  is deployed.

A test sends a compile through a fake backend and a refused local address.

Manual check list: open a Mojo exercise in the Developer area, Compile &
run, and see "Asking godbolt.org (mojo_1_1_0)…" then "Mojo 1.1.0 on
godbolt.org" in the Compiler view.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FgvbRdoEheAHqsRmr2WuKZ
2026-10-05 03:46:04 +00:00
..
2026-10-05 03:03:38 +00:00
2026-10-05 03:03:38 +00:00
2026-10-05 03:03:38 +00:00
2026-10-05 03:03:38 +00:00
2026-10-05 03:03:38 +00:00
2026-10-05 03:03:38 +00:00
2026-10-05 03:03:38 +00:00
2026-10-05 03:03:38 +00:00
2026-10-05 03:03:38 +00:00
2026-10-05 03:03:38 +00:00
2026-10-05 03:03:38 +00:00
2026-10-05 03:03:38 +00:00
2026-10-05 03:03:38 +00:00
2026-10-05 03:03:38 +00:00
2026-10-05 03:03:38 +00:00
2026-10-05 03:03:38 +00:00
2026-10-05 03:03:38 +00:00
2026-10-05 03:03:38 +00:00
2026-10-05 03:03:38 +00:00
2026-10-05 03:03:38 +00:00
2026-10-05 03:03:38 +00:00
2026-10-05 03:03:38 +00:00
2026-10-05 03:03:38 +00:00
2026-10-05 03:03:38 +00:00
2026-10-05 03:03:38 +00:00
2026-10-05 03:03:38 +00:00
2026-10-05 03:03:38 +00:00
2026-10-05 03:03:38 +00:00
2026-10-05 03:03:38 +00:00
2026-10-05 03:03:38 +00:00
2026-10-05 03:03:38 +00:00
2026-10-05 03:03:38 +00:00
2026-10-05 03:03:38 +00:00