# Corresponding Source

This directory is the preferred form of TCI Simulator for making
modifications. There is no compilation, transpilation, or minification step
for the application code.

## Application Source

- `index.html`
- `css/styles.css`
- `js/app.js`
- `js/chart.js`
- `js/boluspk.js`
- `js/engine.js`
- `js/models.js`
- `js/simtiva.js`
- `js/tci.js`
- `sw.js`
- `manifest.webmanifest`
- `icons/app-icon.svg`
- `tests/pk-compat.test.js`
- `tests/manual-bolus.test.js`

## Separately Licensed Dependency

- `vendor/chart.umd.min.js`
- `vendor/Chart.js-LICENSE.md`

Chart.js is an unmodified MIT-licensed dependency. Its upstream source is:

https://github.com/chartjs/Chart.js/tree/v4.4.7

## Running The Source

Serve the root directory with a static HTTP server. No build step is required.
For example:

```sh
python3 -m http.server 4173
```

Then open `http://127.0.0.1:4173/index.html`.

Run the model compatibility checks with:

```sh
node tests/pk-compat.test.js
node tests/manual-bolus.test.js
```

When the application is made available online, the complete contents of this
directory should also be published through a public source repository or a
clearly linked source archive. Keep `LICENSE`, `NOTICE.md`, this file, and
`THIRD_PARTY_NOTICES.md` in every release.
