COFFEE MACHINE - MBSE MODEL EXPLORER (Application)
=================================================
This is the full interactive portal (graph, structure, requirements, state
machine, activities, digital twin, market-fit / sensitivity, OEE, ontology,
and the "Ask the Model" local-LLM chat).

RUN IT (Windows, no admin required):
  1. Open PowerShell in this folder.
  2. Run:   powershell -ExecutionPolicy Bypass -File .\serve.ps1
  3. Browse to:  http://localhost:8000
  (Optional, only if you want to re-capture page screenshots to disk:
     powershell -ExecutionPolicy Bypass -File .\upload_server.ps1   # port 8001)

DIGITAL TWIN - how to see the electrocution hazard (REQ 3.1.5):
  Turn Auto-serve ON and let it run. The tank drains as it brews; a compliant
  design would inhibit the brew when water is low (REQ 1.3), but this machine
  keeps dispensing, so the tank runs dry, the element energises the chassis and
  - with no RCD fitted - the operator is electrocuted. You can also trigger it
  immediately with the red "Short circuit on dispense (no RCD)" button.

DATA:
  coffee_machine_model.json  -  the exported SysML model ("OKF") that drives
  every view. Re-export it from CATIA Magic with cmm_scripts\export_model.groovy.

LOCAL LLM (optional, for "Ask the Model"):
  Install Ollama, then:  ollama pull qwen2.5:1.5b  &&  ollama serve
  The page talks to it at http://localhost:11434 (all local, no internet).

OFFLINE / SHARING:
  For a zero-setup demo, use CoffeeMachine-Showcase-standalone.html instead -
  it inlines the model and runs by double-click (no server needed).
