Source Intelligence

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

All of v2.1.248 Home All releases olderv2.1.247 v2.1.250newer
Claude Code v2.1.248

Diagram previews load their rendering script from the local preview server

You'll notice
Useful3 Signal3
Artifacts

The local preview server serves the diagram script itself, so previews render offline.

What

The local preview server that serves generated pages can now serve JavaScript as well as HTML. When a previewed page references the Mermaid diagram script, the server loads that bundle on demand and serves it as text/javascript, so diagrams render without reaching the network.

Details
  • Each served entry is now a body plus its own content type, rather than everything being forced to text/html; charset=utf-8.
  • If the bundle cannot be read, the failure is swallowed and recorded as a mermaid_bundle_unreadable telemetry event; the page still loads without the diagram script.
Evidence

mermaid_bundle_unreadable

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

See this entry in the whole of v2.1.248 →