diff --git a/.github/workflows/site.yml b/.github/workflows/site.yml index 0816085..24438d2 100644 --- a/.github/workflows/site.yml +++ b/.github/workflows/site.yml @@ -22,14 +22,25 @@ jobs: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - - name: Install PyYAML and jsonschema (a venv; hash-locked wheels only) + - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 + with: + node-version: 24.5.0 + - name: Install the site's packages (exact versions from site/package-lock.json) + working-directory: site + run: npm ci --ignore-scripts --no-fund + - name: Install PyYAML for the tests (a venv; hash-locked wheels only) run: | python3 -m venv "$RUNNER_TEMP/site" "$RUNNER_TEMP/site/bin/pip" install --quiet --only-binary=:all: --require-hashes -r requirements.lock - - name: Test the build + - name: Test the build (each test runs it) + env: + MORPHOGEN_SITE_TESTS: "1" run: '"$RUNNER_TEMP/site/bin/python" -m unittest tests.test_site -v' - name: Build - run: '"$RUNNER_TEMP/site/bin/python" site/build.py --out site/_build' + working-directory: site + env: + ASTRO_TELEMETRY_DISABLED: "1" + run: npm run build - uses: actions/configure-pages@45bfe0192ca1faeb007ade9deae92b16b8254a0d # v6.0.0 - uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0 with: diff --git a/CLAUDE.md b/CLAUDE.md index 81c9eca..b3130fb 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -19,7 +19,7 @@ docs/restart/LESSONS.md. - `tests/`: the core's tests and red team; fixture projects in `tests/fixture*.py`, the timed sample's files in `tests/fixtures`. - `demos/`: projects Morphogen can build and drive. The core never imports from them. -- `site/`: the research site, static HTML built by `site/build.py` from the evidence claims, the map and the +- `site/`: the research site, static HTML built with Astro (`site/src/`) from the evidence claims, the map and the options (`site/README.md`); `.github/workflows/site.yml` deploys it to Pages when started by hand. ## Rules diff --git a/morphogen/research.py b/morphogen/research.py index c85eb3c..4ac0143 100644 --- a/morphogen/research.py +++ b/morphogen/research.py @@ -648,7 +648,7 @@ def catalog(p: Project, draft_path: Path, cache: Path, by: str, http: Http | Non LABELS = {"research:prioritise": "prioritise", "research:prioritize": "prioritise", "research:reject": "reject", "research:question": "question"} -# The `research-action:` line the claim site (site/build.py, PR #108) writes into every issue body: the primary signal, +# The `research-action:` line the claim site (site/src/lib/steer.mjs; PR #108 first) writes into every issue body: the primary signal, # since GitHub drops a prefilled link's labels for anyone without triage access. ACTIONS = {"prioritise", "reject", "dispute", "question", "propose-role", "propose-option"} TOPICAL = {"question", "propose-role", "propose-option"} # these become a watch topic waiting for terms diff --git a/site/.gitignore b/site/.gitignore index 69fa449..e704834 100644 --- a/site/.gitignore +++ b/site/.gitignore @@ -1 +1,5 @@ +node_modules/ _build/ +.astro/ +# copied from node_modules/@alpinejs/csp by astro.config.mjs on every build and dev start +public/assets/vendor/ diff --git a/site/.npmrc b/site/.npmrc new file mode 100644 index 0000000..adf090d --- /dev/null +++ b/site/.npmrc @@ -0,0 +1,4 @@ +save-exact=true +engine-strict=true +fund=false +audit=true diff --git a/site/README.md b/site/README.md index c5d10e8..cb7beaa 100644 --- a/site/README.md +++ b/site/README.md @@ -2,56 +2,129 @@ A static site for the research loop ([docs/research-loop.md](../docs/research-loop.md)): the claims the research agent has catalogued, their status for this system, its transfer predictions against outcomes, and the roles it -watches for. `build.py` reads the files named in `config.toml` (EvidenceClaim files, -[schemas/evidence-claim.v1.json](../schemas/evidence-claim.v1.json); the map and options as Backstage entity files) -and writes plain HTML into `_build/`. No server, no database, no tracking, nothing loaded from another host. - -`config.toml` points at [demos/research-loop](../demos/research-loop): the claims under `claims/` (searched -recursively, so `claims/arxiv-ID/` is found), the map, `options.yaml` and the agent's `found.yaml` (a catalog file -that does not exist yet is skipped), and the agent's own files in `research/` (its README, "Files a website reads"): -`queue.json`, `watch.yaml`, `seen.jsonl`, and `index.json`, which the build checks against the claim files. +watches for, with a page for every claim, paper, trial, model, option and role and the links between them. Built +with [Astro](https://astro.build) 7 into plain HTML in `_build/`; the interactive parts use +[Alpine.js](https://alpinejs.dev)'s CSP build, served from the site itself. No server, no database, no tracking, +nothing loaded from another host. ## Build and preview +Needs Node 22.23.4 or later (the workflow uses 24.5.0). + ```sh -uv run python site/build.py # or: python3 site/build.py (needs PyYAML; validates with jsonschema if installed) -python3 -m http.server 8000 -d site/_build # then open http://localhost:8000 -uv run python site/build.py --root ../other-checkout --out /tmp/site # build another checkout's data -uv run python -m unittest tests.test_site -v +cd site +npm ci # the exact versions in package-lock.json +npm run dev # http://localhost:4321/index.html, rebuilt as you edit (YAML too, on reload) +npm run build # writes _build/ +npm run preview # serves _build/ +npm test # the data layer's unit tests (node --test) +cd .. && MORPHOGEN_SITE_TESTS=1 uv run python -m unittest tests.test_site -v # builds and checks real and hostile input +``` + +`SITE_CONFIG`, `SITE_ROOT`, `SITE_CONTENT` and `SITE_OUT` point a build at another config, checkout, content folder or +output directory (the tests use them). The scripts set `ASTRO_TELEMETRY_DISABLED=1`. Without `npm ci` in `site/`, +`tests/test_site.py` is skipped (and fails instead when `MORPHOGEN_SITE_TESTS=1`). + +## Adding a page: drop Markdown into `content/` + +Every `.md` file under `site/content/` becomes a page with the shared layout: `content/how.md` is `how.html`, +`content/notes/2026-11-27-inkling.md` is `notes/2026-11-27-inkling.html`. Front matter (checked by +`src/content.config.mjs`; a page that breaks it stops the build): + +```yaml +--- +title: Inkling 2 Mini was tested against the 27B+ finding # required +description: One sentence, shown under the title and in search +kind: note # note (default) or announcement: also listed on notes.html, newest first; page: not listed +date: 2026-11-27 +refs: # entities the page is about; each one's page links back here + - resource:inkling-2-mini-q4-k + - trial:E-04a + - claim:gates-likelihood-readout-27-31b-matches-jev + - paper:arXiv:2610.00346 + - role:decision-backend + - option:likelihood-readout +nav: 50 # optional: put it in the header's navigation, ordered by this number +blocks: [statuses, steering, files] # optional generated sections after the text +draft: true # optional: leave it out of the build +--- ``` -Every claim is validated against the schema first; an invalid file stops the build. +A ref to something that is not on the site stops the build. Links inside the text are relative to the page +(`../claims/.html` from `notes/`). The Markdown is ours, not a paper's, so raw HTML in it is passed through; +the content security policy still blocks any inline script. + +## Where the data comes from + +`config.toml` points at [demos/research-loop](../demos/research-loop): the claims under `claims/` (searched +recursively), the map, `options.yaml` and the agent's `found.yaml` (a missing catalog file is skipped), and the +agent's own files in `research/`: `queue.json`, `watch.yaml`, `seen.jsonl`, and `index.json`, which the build checks +against the claim files. `src/lib/data.mjs` reads them all, validates every claim against +[schemas/evidence-claim.v1.json](../schemas/evidence-claim.v1.json) (Ajv, draft 2020-12; an invalid claim or a name +used twice stops the build), and joins them into one graph: entities, typed references, and the backlinks of each. + +| Entity | Page | From | +| --- | --- | --- | +| claim | `claims/.html` | an EvidenceClaim file | +| paper | `papers/.html` | a claim's `source` when it is outside work (`arxiv-2610.00346`) | +| trial | `trials/.html` | a claim's `source` when it is our trial or probe, and every outcome's `trial.id` (`e-04a`) | +| resource | `resources/.html` | a Resource: a model, engine, GPU or dataset | +| option | `options/.html` | a Component with `lifecycle: candidate` | +| role | `roles/.html` | a Component with `type: role` | +| system | `systems/.html` | the System | +| page | `.html` | a Markdown file in `content/` | + +References: a claim's `about` (option), `role`, `source` (paper or trial), `conditions.*.ref` (measured on), +`assessments[].against` (assessed on, with the status), `outcome.trial` (tested in), `outcome.observed` and +`see_also` (claims); an option's `fills`; a role's `subcomponentOf`; `spec.system`; a page's `refs`. Every entity page +ends with all of them, both ways ("Links to", "Linked from"), and adds its own views: a claim's "tested on" table +(model by result); a model's claims tested with it and each result, its trials and our measurements on it; a trial's +outcomes and the models it ran, and related trials (E-17, E-17b...); a paper's claims; a role's options, open +questions (`watch.yaml`), what has been tested and what is next in the queue. ## Pages | Page | What it shows | | --- | --- | -| `index.html` | the feed, newest first, filtered in the page by search, role, source and status (kept in the address, so a view can be shared); works without JavaScript, unfiltered | -| `claims/.html` | one claim: the quote and whether it was checked, the measure and effect, the conditions and what the source left unstated, the transfer prediction and its reason, the cheapest trial that would settle it (`assessments[].trial`) and its place in the queue, the outcome with its trial and verdict | -| `queue.html` | next to test: the agent's `queue.json`, best first, with its plan, cost, score and any steering, and buttons to prioritise or reject | +| `index.html` | the feed, newest first, filtered in the page by search, role, source and status (kept in the address); without JavaScript, unfiltered | +| `queue.html` | next to test: `queue.json`, best first, with plan, cost, score, steering, and buttons to prioritise or reject | | `predictions.html` | predictions waiting for a trial, and a calibration chart with the Brier score once predictions written before an outcome have one | -| `roles.html` | what the agent watches (`watch.yaml`'s topics, and what became of the papers in `seen.jsonl`), the roles in the map, the options catalogued for each, and this system's conditions | -| `how.html` | the loop: watch, read, catalogue, predict, test behind the judge, score the prediction | -| `data/claims.json` | the same records, for other tools | +| `roles.html` | what the agent watches (`watch.yaml`, `seen.jsonl`), the roles, the options for each, and this system's conditions | +| `map.html` | the relations graph, laid out at build time (`src/lib/layout.mjs`); a static SVG of links, with highlighting and filters in Alpine | +| `search.html` | everything by kind; with JavaScript, a search over `data/search.json` (the header's box lands here) | +| `notes.html` | notes and announcements from `content/` | +| `data/claims.json`, `data/graph.json`, `data/search.json` | the records, the whole graph (with the calibration pairs and Brier score), the search index | + +## Layout of this folder + +`src/layouts/Base.astro` is the frame of every page; `src/pages//[name].astro` is the layout of one entity type, +written once; `src/components/` holds the shared pieces (status badges, the "tested on" table, the references +panel). `public/assets/` is copied as is: `style.css` (light and dark themes), `theme.js` (applies the chosen theme +before the page paints), `site.js` (the Alpine components). `astro.config.mjs` copies Alpine's CSP build from +`node_modules/@alpinejs/csp` into `public/assets/vendor/` (not committed) on every build and dev start. ## Steering The buttons open a prefilled GitHub new-issue page (title, body, labels); nothing is sent until the person submits it. Each body ends with a `research-action:` line (`prioritise`, `reject`, `dispute`, `question`, `propose-role`, -`propose-option`), with `research-claim:` and `claim-file:` for a claim and `role:` for an option proposed for a -role; the agent reads those lines first (`morphogen/research.py`, `parse_issue`). The labels in `config.toml` are -the fallback: `research:prioritise`, `research:reject`, and `research:question` for the rest. GitHub applies labels -from a link only for people who can triage the repository. Text from papers never goes into an issue body, since it is rendered as Markdown. +`propose-option`), with `research-claim:`, `claim-file:` and `status:` for a claim and `role:` for an option proposed +for a role; the agent reads those lines first (`morphogen/research.py`, `parse_issue`). They are written by +`src/lib/steer.mjs`. The labels in `config.toml` are the fallback. Text from papers never goes into an issue body, +since it is rendered as Markdown. ## Safety -Claim text comes from papers. Every string from a file is HTML-escaped where it is written, a link from a file is -written only if it is http or https, and each page sets a content security policy that allows only its own -scripts and styles. `tests/test_site.py` builds a claim full of markup and a `javascript:` link and checks that -none of it comes through. +Claim text comes from papers. Astro escapes every value written into a page (`&`, `<` and `>` in text; `&` and `"` +in a quoted attribute, where `<` cannot open a tag), and no page uses `set:html`. A link from a file is written only +if it is http or https (`safeUrl`). Each page's content security policy allows only its own scripts, styles and +data (`default-src 'none'; script-src 'self'; style-src 'self'; connect-src 'self'`, no `unsafe-inline` or +`unsafe-eval`): there are no inline scripts or style attributes, and Alpine's CSP build evaluates directives without +`new Function`, from components registered by name with `Alpine.data`. `tests/test_site.py` builds claims full of +markup and a `javascript:` link and checks that none of it comes through. ## Deploying -`.github/workflows/site.yml` tests, builds and deploys `_build/` to GitHub Pages. It runs only when started by hand -until its `push` trigger is uncommented, and it needs Pages set to "GitHub Actions" in the repository's settings. -Links are relative, so the site works at `https://.github.io/Morphogen/` or on a custom domain. +`.github/workflows/site.yml` installs the locked packages, runs the tests, builds and deploys `_build/` to GitHub +Pages. It runs only when started by hand until its `push` trigger is uncommented, and it needs Pages set to "GitHub +Actions" in the repository's settings. Links are relative, so the site works at `https://.github.io/Morphogen/` +or on a custom domain. diff --git a/site/astro.config.mjs b/site/astro.config.mjs new file mode 100644 index 0000000..f40f4be --- /dev/null +++ b/site/astro.config.mjs @@ -0,0 +1,37 @@ +// The research site (site/README.md). Static output only; every page is a file such as claims/.html, and +// every link is relative, so the site works under https://.github.io/Morphogen/ or on its own domain. +import fs from "node:fs"; +import path from "node:path"; +import { fileURLToPath } from "node:url"; +import { defineConfig } from "astro/config"; + +const HERE = path.dirname(fileURLToPath(import.meta.url)); +process.env.SITE_DIR ||= HERE; // read by src/lib/data.mjs + +// Alpine's CSP build (no `new Function`, so the content security policy needs no 'unsafe-eval'), served from the +// site itself: copied from the pinned package into public/assets/vendor before every build and dev start. +function alpineCsp() { + return { + name: "alpine-csp", + hooks: { + "astro:config:setup": () => { + const pkg = path.join(HERE, "node_modules", "@alpinejs", "csp"); + const out = path.join(HERE, "public", "assets", "vendor"); + fs.mkdirSync(out, { recursive: true }); + const { version, license } = JSON.parse(fs.readFileSync(path.join(pkg, "package.json"), "utf8")); + const code = fs.readFileSync(path.join(pkg, "dist", "cdn.min.js"), "utf8"); + fs.writeFileSync(path.join(out, "alpine-csp.min.js"), + `/*! @alpinejs/csp ${version} | ${license} licence | https://github.com/alpinejs/alpine */\n${code}`); + }, + }, + }; +} + +export default defineConfig({ + output: "static", + outDir: process.env.SITE_OUT || "./_build", + build: { format: "file" }, + compressHTML: true, + devToolbar: { enabled: false }, + integrations: [alpineCsp()], +}); diff --git a/site/build.py b/site/build.py deleted file mode 100644 index 389e204..0000000 --- a/site/build.py +++ /dev/null @@ -1,1137 +0,0 @@ -"""Build the research agent's static site from the claim, role and option files. - - python3 site/build.py # site/config.toml in, site/_build out - python3 site/build.py --out /tmp/site --config other.toml - -Reads EvidenceClaim files (schemas/evidence-claim.v1.json) and the catalog's Backstage entity files, and writes -plain HTML, one CSS file, two small scripts and data/claims.json. No server, no database, nothing fetched at -runtime. Needs Python 3.11 and PyYAML; with jsonschema installed (it is in requirements.lock), every claim is -validated first and an invalid one stops the build. - -Claim text comes from papers, so every string from a file is HTML-escaped where it is written (`e()`), and a link -from a file is written only when it is http or https (`safe_url()`). -""" - -from __future__ import annotations - -import argparse -import html -import json -import shutil -import sys -import tomllib -from dataclasses import dataclass, field -from pathlib import Path -from urllib.parse import quote, urlencode, urlsplit - -import yaml - -HERE = Path(__file__).resolve().parent -ROOT = HERE.parent - -STATUSES = ["untested", "predicted", "replicated", "did-not-transfer", "not-testable"] -OBSERVATION = "observation" # a claim of this system's own (source.kind trial or probe): it has no status -MIXED = "mixed" # a claim whose assessments for the system disagree (one configuration replicated, another did not) -STATUS_TEXT = { - "untested": "Untested", - "predicted": "Predicted", - "replicated": "Replicated", - "did-not-transfer": "Did not transfer", - "not-testable": "Not testable", - OBSERVATION: "Our observation", - MIXED: "Mixed", -} -STATUS_HELP = { - "untested": "Catalogued, with the reason it has not been tried here.", - "predicted": "A probability that it holds here was written before any outcome.", - "replicated": "Tried on this system's setup, and the finding held.", - "did-not-transfer": "Tried on this system's setup, and the finding did not hold.", - "not-testable": "Cannot be tried here, and why.", - OBSERVATION: "A measurement this system ran itself, which a paper's outcome links to.", - MIXED: "Tried on more than one configuration, with different results.", -} -QUOTE_SHORT = {"checked": "quote checked", "unchecked": "quote unchecked", "none": "no quote"} -QUOTE_TEXT = { - "checked": "Quote checked against the source", - "unchecked": "Quote copied, not yet checked", - "none": "No verbatim quote taken", -} - - -# ---------------------------------------------------------------- escaping and links - - -def e(value) -> str: - """Escape any value for HTML text or a quoted attribute.""" - return html.escape("" if value is None else str(value), quote=True) - - -def safe_url(url) -> str | None: - """The URL if it is http(s) with a host, else None: a file must not be able to write a javascript: link.""" - if not isinstance(url, str): - return None - url = url.strip() - try: - parts = urlsplit(url) - except ValueError: - return None - if parts.scheme not in ("http", "https") or not parts.netloc: - return None - return url - - -def link(url, text, cls: str = "") -> str: - """An external link when the URL is safe, plain text when it is not.""" - good = safe_url(url) - if not good: - return e(text) - c = f' class="{e(cls)}"' if cls else "" - return f'{e(text)}' - - -def issue_url(repo: str, title: str, body: str, labels: list[str]) -> str: - """A prefilled new-issue URL. GitHub reads `title`, `body` and comma-separated `labels` from the query.""" - query = {"title": title, "body": body} - if labels: - query["labels"] = ",".join(labels) - return f"https://github.com/{quote(repo, safe='/')}/issues/new?" + urlencode(query, quote_via=quote) - - -# ---------------------------------------------------------------- loading - - -def ref_name(ref: str | None) -> str: - """`component:default/decision-backend` -> `decision-backend`.""" - if not ref: - return "" - return ref.split(":", 1)[-1].split("/", 1)[-1] - - -@dataclass -class Claim: - doc: dict - path: str # relative to the repository root - - @property - def name(self) -> str: - return self.doc["metadata"]["name"] - - @property - def spec(self) -> dict: - return self.doc["spec"] - - @property - def source(self) -> dict: - return self.spec["source"] - - @property - def ours(self) -> bool: - return self.source.get("kind") in ("trial", "probe") - - def assessments(self, system: str) -> list[dict]: - """Every assessment for the system: one per configuration tried (a model, an engine), and they can disagree.""" - return [a for a in self.spec.get("assessments") or [] if a.get("system") == system] - - def predictions(self, system: str) -> list[dict]: - return [a["prediction"] for a in self.assessments(system) if a.get("prediction")] - - def statuses(self, system: str) -> list[str]: - """The distinct statuses of its assessments, in file order; a filter matches a claim on any of them.""" - if self.ours: - return [OBSERVATION] - out = [] - for a in self.assessments(system): - if a["status"] not in out: - out.append(a["status"]) - return out or ["untested"] - - def status(self, system: str) -> str: - """One status, or `mixed` when its assessments disagree (statuses() and the badges give the breakdown).""" - statuses = self.statuses(system) - return statuses[0] if len(statuses) == 1 else MIXED - - def date(self) -> str: - dates = [] - for a in self.spec.get("assessments") or []: - dates += [a.get("date"), (a.get("prediction") or {}).get("date"), (a.get("outcome") or {}).get("date")] - return max((str(d) for d in dates if d), default="") - - -@dataclass -class Catalog: - entities: list[dict] = field(default_factory=list) - - def of(self, kind: str) -> list[dict]: - return [x for x in self.entities if x.get("kind") == kind] - - def get(self, ref: str) -> dict | None: - name = ref_name(ref) - for x in self.entities: - if x.get("metadata", {}).get("name") == name and x.get("kind") != "Location": - return x - return None - - @property - def roles(self) -> list[dict]: - return [x for x in self.of("Component") if (x.get("spec") or {}).get("type") == "role"] - - @property - def options(self) -> list[dict]: - return [x for x in self.of("Component") if (x.get("spec") or {}).get("lifecycle") == "candidate"] - - @property - def conditions(self) -> list[dict]: - return self.of("Resource") - - @property - def system(self) -> dict | None: - systems = self.of("System") - return systems[0] if systems else None - - -def load_yaml_docs(path: Path) -> list[dict]: - with path.open(encoding="utf-8") as f: - return [d for d in yaml.safe_load_all(f) if isinstance(d, dict)] - - -def load_claims(dirs: list[Path], root: Path, schema: dict | None) -> list[Claim]: - validator = None - if schema is not None: - try: - import jsonschema # noqa: PLC0415 - except ImportError: - print("build: jsonschema is not installed; claims are not validated", file=sys.stderr) - else: - cls = jsonschema.validators.validator_for(schema) - validator = cls(schema, format_checker=cls.FORMAT_CHECKER) - claims, seen = [], {} - for d in dirs: - for path in sorted(list(d.rglob("*.yaml")) + list(d.rglob("*.yml"))): - for doc in load_yaml_docs(path): - if doc.get("kind") != "EvidenceClaim": - continue - rel = path.resolve().relative_to(root).as_posix() if path.resolve().is_relative_to(root) else path.name - if validator is not None: - errors = sorted(validator.iter_errors(_jsonable(doc)), key=lambda x: list(x.path)) - if errors: - where = "/".join(str(p) for p in errors[0].path) - raise SystemExit(f"build: {rel} is not a valid EvidenceClaim: {where}: {errors[0].message}") - claim = Claim(doc, rel) - if claim.name in seen: - raise SystemExit(f"build: claim name {claim.name} is in both {seen[claim.name]} and {rel}") - seen[claim.name] = rel - claims.append(claim) - return claims - - -def _jsonable(value): - """YAML gives dates as date objects; the schema and JSON want strings.""" - if isinstance(value, dict): - return {str(k): _jsonable(v) for k, v in value.items()} - if isinstance(value, list): - return [_jsonable(v) for v in value] - if hasattr(value, "isoformat"): - return value.isoformat() - return value - - -def sort_claims(claims: list[Claim]) -> list[Claim]: - """Newest first: the latest assessment, prediction or outcome date; then the source id (arXiv ids grow).""" - return sorted(claims, key=lambda c: (c.date(), str(c.source.get("id", "")), c.name), reverse=True) - - -# ---------------------------------------------------------------- formatting values - - -def fmt_number(value) -> str: - if value is None: - return "not stated" - if isinstance(value, dict): - over = f" over {value['over']}" if value.get("over") else "" - return f"{value.get('min')} to {value.get('max')}{over}" - return str(value) - - -def fmt_interval(iv: dict | None) -> str: - if not iv: - return "" - how = [f"{round(iv['level'] * 100)}%" if iv.get("level") else "", iv.get("method", "")] - how = ", ".join(x for x in how if x) - return f"[{iv.get('low')}, {iv.get('high')}]" + (f" ({how})" if how else "") - - -def measure_html(m: dict) -> str: - """One measure as a definition list row group.""" - better = {"higher": "higher is better", "lower": "lower is better"}.get(m.get("better", ""), "") - unit = f" {m['unit']}" if m.get("unit") else "" - value = fmt_number(m.get("value")) + (unit if m.get("value") is not None else "") - rows = [("Metric", m.get("metric", "") + (f" ({better})" if better else ""))] - rows.append(("Value", value + (" " + fmt_interval(m.get("interval")) if m.get("interval") else ""))) - if m.get("where"): - rows.append(("Where", m["where"])) - b = m.get("baseline") - if b: - bv = b.get("value") - bval = "" if bv is None else f": {fmt_number(bv)}" - rows.append(("Against", f"{b.get('name', '')}{bval}" + (" " + fmt_interval(b.get("interval")) if b.get( - "interval") else ""))) - return "".join(f"
{e(k)}
{e(v)}
" for k, v in rows) - - -def status_badge(status: str) -> str: - return f'{e(STATUS_TEXT.get(status, status))}' - - -def meter(p: float, label: bool = True) -> str: - """The transfer probability as a bar, with the number beside it (never the bar alone).""" - pct = max(0.0, min(1.0, float(p))) * 100 - bar = (f'') - text = f'p {float(p):.2f}' if label else "" - return f'{bar}{text}' - - -def source_short(src: dict) -> str: - return src.get("id") or src.get("title", "") - - -def truncate(text: str, n: int) -> str: - text = " ".join(str(text).split()) - return text if len(text) <= n else text[: n - 1].rstrip() + "…" - - -# ---------------------------------------------------------------- page frame - - -@dataclass -class Site: - title: str - repo: str - branch: str - system: str - labels: dict - claims: list[Claim] - catalog: Catalog - research: dict = field(default_factory=dict) # the agent's queue.json, watch.yaml, seen.jsonl (load_research) - - def queue(self) -> list[dict]: - return list((self.research.get("queue") or {}).get("queue") or []) - - def queue_rank(self, name: str) -> tuple[int, dict] | None: - for i, item in enumerate(self.queue(), 1): - if item.get("claim") == name: - return i, item - return None - - def config_label(self, a: dict) -> str: - """The configuration an assessment was made on, in a few words: the models among its `against` resources - (their description up to the first comma, as in "Inkling 2 Mini"), else every resource's name.""" - names = [] - for ref in a.get("against") or []: - res = self.catalog.get(ref) - if res and (res.get("spec") or {}).get("type") == "model": - head = (res["metadata"].get("description") or "").split(",")[0].strip() - names.append(head if head and len(head) <= 40 else res["metadata"]["name"]) - if not names: - names = [ref_name(r) for r in a.get("against") or []] - return ", ".join(names) - - def status_badges(self, c: Claim) -> str: - """One badge when the assessments agree; when they disagree, a Mixed badge and one per configuration.""" - assessments = c.assessments(self.system) - if c.ours or len(c.statuses(self.system)) == 1: - return status_badge(c.status(self.system)) - parts = [status_badge(MIXED)] - for a in assessments: - label = self.config_label(a) - parts.append(f'{status_badge(a["status"])}' - f'{f" {e(label)}" if label else ""}') - return "".join(parts) - - def status_text(self, c: Claim) -> str: - """The same breakdown in words, for an issue body: `replicated (Inkling 2 Mini); did-not-transfer (LFM3 1.7B)`.""" - if c.ours or len(c.statuses(self.system)) == 1: - return c.status(self.system) - return "; ".join(f"{a['status']} ({self.config_label(a) or 'unnamed configuration'})" - for a in c.assessments(self.system)) - - def by_name(self) -> dict[str, Claim]: - return {c.name: c for c in self.claims} - - def file_url(self, path: str) -> str: - return f"https://github.com/{self.repo}/blob/{self.branch}/{path}" - - def issue(self, action: str, title: str, body: str) -> str: - return issue_url(self.repo, title, body, list(self.labels.get(action, []))) - - -NAV = [("index.html", "Claims"), ("queue.html", "Next to test"), ("predictions.html", "Predictions"), ("roles.html", "Roles"), ("how.html", "How it works")] - - -def page(site: Site, title: str, body: str, current: str, depth: int = 0, description: str = "") -> str: - up = "../" * depth - nav = "".join( - f'
  • {e(text)}
  • ' - for href, text in NAV) - full_title = f"{title} · {site.title}" if title != site.title else site.title - desc = description or "Claims from papers about options for the system's roles, with conditions, transfer predictions and outcomes." - return f""" - - - - - - - - -{e(full_title)} - - - - - - -
    -
    - Morphogen research - - -
    -
    -
    -{body} -
    -
    -

    Built from the claim, role and option files in {link(f"https://github.com/{site.repo}", site.repo)}. Static files only: no tracking, no cookies, nothing loaded from elsewhere. Steering happens in GitHub issues.

    -
    - - -""" - - -# ---------------------------------------------------------------- the feed - - -def feed_item(site: Site, c: Claim) -> str: - statuses = c.statuses(site.system) - src, cl = c.source, c.spec["claim"] - role, option = ref_name(c.spec.get("role")), ref_name(c.spec.get("about")) - search = " ".join(str(x) for x in [c.name, c.doc["metadata"].get("description", ""), cl.get("statement", ""), - src.get("title", ""), src.get("id", ""), role, option, cl.get("metric", "")]) - quote_cls = "q-" + src.get("quote_status", "none") - meta = [f'{e(source_short(src))}', f'{e(role)}', - f'option {e(option)}'] - if c.date(): - meta.append(f'') - right = "".join(meter(pr["p_transfer"]) for pr in c.predictions(site.system)) - return f"""
  • - -
  • """ - - -def render_index(site: Site) -> str: - claims = sort_claims(site.claims) - counts = {s: 0 for s in STATUSES + [OBSERVATION]} - for c in claims: # a claim counts under each status any of its assessments has, as the filter matches it - for st in c.statuses(site.system): - counts[st] = counts.get(st, 0) + 1 - roles = sorted({ref_name(c.spec.get("role")) for c in claims}) - sources = {} - for c in claims: - sources.setdefault(source_short(c.source), c.source.get("title", "")) - stat = "".join( - f'
  • {counts[s]} {status_badge(s)}
  • ' for s in STATUSES + [OBSERVATION] - if counts.get(s)) - status_boxes = "".join( - f'' - for s in STATUSES + [OBSERVATION]) - role_opts = "".join(f'' for r in roles) - src_opts = "".join( - f'' - for k, v in sorted(sources.items(), reverse=True)) - items = "\n".join(feed_item(site, c) for c in claims) - paper_n = sum(1 for c in claims if not c.ours) - question = site.issue("question", "Question to watch: ", issue_body("question", site, None, extra=[ - "What should the research agent look for? A method, a role, an open question from the system's docs.", "", - "Question:", "", "Why it matters here:", ""])) - body = f""" -
    -

    The research agent's catalog

    -

    Claims from papers, checked against this system

    -

    The agent reads new papers for the roles in the map, writes down each claimed gain with the conditions it was measured under, and predicts whether it will hold here. Trials behind the judge then score the prediction. {paper_n} claims from papers so far, for {e(ref_name(site.system))}.

    -
      {stat}
    -

    Propose a question to watch How it works

    -
    - - -

    -
      -{items} -
    - - -""" - return page(site, site.title, body, "index.html") - - -# ---------------------------------------------------------------- one claim - - -def issue_body(action: str, site: Site, c: Claim | None, extra: list[str] | None = None) -> str: - """The body of a steering issue. Only the claim's name and path go in, never text from the paper: an issue - body is rendered as Markdown, and a paper's words could mention people or carry links.""" - lines = [] - lines += extra or [] - lines += ["", "---", f"research-action: {action}", f"system: {site.system}"] - if c is not None: - lines += [f"research-claim: {c.name}", f"claim-file: {site.file_url(c.path)}", - f"status: {site.status_text(c)}"] - preds = c.predictions(site.system) - if len(preds) == 1: - lines.append(f"p_transfer: {preds[0]['p_transfer']}") - return "\n".join(lines).strip() + "\n" - - -def claim_actions(site: Site, c: Claim) -> str: - if c.ours: - return "" - btns = [ - ("prioritise", f"Prioritise: {c.name}", "Test this claim next", - ["Please test this claim sooner.", "", "Why it is worth a trial now:", ""]), - ("reject", f"Reject: {c.name}", "Reject it", - ["Please drop this claim from the queue.", "", "Why (does not apply here, already known, not a real gain):", - ""]), - ] - if c.predictions(site.system): - btns.append(("dispute", f"Dispute prediction: {c.name}", "Dispute the prediction", - ["I think the transfer prediction is wrong.", "", "My probability that it holds here:", "", - "Which conditions it gets wrong:", ""])) - out = [] - for action, title, text, extra in btns: - url = site.issue(action, title, issue_body(action, site, c, extra)) - cls = "btn" if action == "prioritise" else "btn ghost" - out.append(f'{e(text)}') - labels = ", ".join(sorted({lab for k in ("prioritise", "reject", "dispute") for lab in site.labels.get(k, [])})) - return f"""
    -

    Steer the agent

    -

    Each button opens a new GitHub issue, filled in, for you to edit and submit. The agent reads issues labelled {e(labels)}.

    -

    {" ".join(out)}

    -
    """ - - -def quote_html(src: dict) -> str: - status = src.get("quote_status", "none") - head = f'

    {e(QUOTE_TEXT.get(status, status))}' - if src.get("quote_location"): - head += f' {e(src["quote_location"])}' - head += "

    " - parts = [head] - if src.get("quote"): - parts.append(f'

    {e(src["quote"])}

    ') - if src.get("quote_note"): - parts.append(f'

    {e(src["quote_note"])}

    ') - via = src.get("via") - if via: - where = f", {via['location']}" if via.get("location") else "" - parts.append(f'

    Via a secondary source ' - f'{link(via.get("url"), via.get("title", ""))}{e(where)}

    ') - parts.append(f'

    {e(via.get("quote", ""))}

    ') - return "".join(parts) - - -def conditions_html(cond: dict) -> str: - rows = [] - models = cond.get("models") or [] - if models: - items = [] - for m in models: - bits = [m.get(k) for k in ("size", "precision", "tuned") if m.get(k)] - items.append(f'
  • {e(m.get("name", ""))}' - + (f' {e(", ".join(bits))}' if bits else "") - + (f'
    {e(m["capability"])}' if m.get("capability") else "") - + "
  • ") - rows.append(("Models", f'
      {"".join(items)}
    ')) - for key, label in (("engine", "Engine"), ("dataset", "Dataset"), ("hardware", "Hardware")): - v = cond.get(key) - if isinstance(v, dict): - text = ", ".join(str(v[k]) for k in ("name", "version", "split", "size", "memory") if v.get(k)) - rows.append((label, e(text))) - for key, label in (("method", "Method"), ("thinking", "Thinking"), ("labels", "Labels")): - if cond.get(key): - rows.append((label, e(cond[key]))) - known = {"models", "engine", "dataset", "hardware", "method", "thinking", "labels", "unstated"} - for key, v in cond.items(): - if key not in known and v not in (None, "", [], {}): - rows.append((key.replace("_", " ").capitalize(), e(v if isinstance(v, str) else json.dumps(_jsonable(v))))) - if cond.get("unstated"): - rows.append(("Not stated", '
      ' + "".join( - f"
    • {e(u)}
    • " for u in cond["unstated"]) + "
    ")) - return '
    ' + "".join(f"
    {e(k)}
    {v}
    " for k, v in rows) + "
    " - - -def claim_ref(site: Site, name: str, depth: int) -> str: - c = site.by_name().get(name) - up = "../" * depth - if not c: - return f'{e(name)}' - return (f'{e(name)}' - f' {e(truncate(c.doc["metadata"].get("description", ""), 110))}') - - -def assessment_html(site: Site, c: Claim, a: dict) -> str: - label = site.config_label(a) - parts = [f'

    {status_badge(a["status"])}' - + (f' on {e(label)}' if label else "") - + f' for {e(a.get("system"))}' - + (f' on {e(a["date"])}' if a.get("date") else "") + "

    "] - if a.get("against"): - parts.append('

    Compared with: ' + ", ".join( - f'{e(ref_name(r))}' for r in a["against"]) + "

    ") - pr = a.get("prediction") - if pr: - parts.append(f"""

    Transfer prediction

    -

    {meter(pr["p_transfer"])}

    -

    {e(pr.get("reason", ""))}

    -

    By {e(pr.get("by", ""))}, {e(pr.get("date", ""))}. {"Written before any outcome, so it counts towards calibration." if pr.get("before_outcome") else "Written after an outcome was seen, so it does not count towards calibration."}

    """) - plan = a.get("trial") - if plan: - needs = "".join(f"
  • {e(n)}
  • " for n in plan.get("needs") or []) - code = f"
    Code
    {link(plan.get('code'), plan.get('code', ''))}
    " if plan.get("code") else "" - ranked = site.queue_rank(c.name) - rank = (f'

    Number {ranked[0]} of {len(site.queue())} in the queue.

    ' - if ranked else "") - parts.append(f"""

    The cheapest trial that would settle it

    -

    {e(plan.get("plan", ""))}

    -
    Cost
    about {e(plan.get("cost_hours"))} hours, setting up included
    {f'
    Needs
      {needs}
    ' if needs else ""}{code}
    {rank}
    """) - out = a.get("outcome") - if out: - t = out.get("trial") or {} - v = out.get("verdict") or {} - observed = "".join(f"
  • {claim_ref(site, n, 1)}
  • " for n in out.get("observed") or []) - by = {"morphogen": "the judge", "falsifier": "a falsifier registered before the outcome", - "operator": "the operator", "none": "nobody yet"}.get(v.get("by"), v.get("by", "")) - parts.append(f"""

    Outcome

    -

    Trial {link(t.get("url"), t.get("id", ""), "mono")}{(" · " + e(out["date"])) if out.get("date") else ""} · {e("a transfer test on our setup" if out.get("comparison") == "our-setup" else "the source's own setup reproduced")}

    -

    {e(out.get("summary", ""))}

    -
    Verdict
    {e(v.get("decision", ""))}, decided by {e(by)}{(" " + e(v["ref"]) + "") if v.get("ref") else ""}{("
    " + e(v["note"]) + "") if v.get("note") else ""}
    -
    Observed
      {observed}
    """) - if a.get("reason"): - parts.append(f'

    Note
    {e(a["reason"])}

    ') - if a.get("see_also"): - parts.append('

    See also

      ' + "".join( - f"
    • {claim_ref(site, n, 1)}
    • " for n in a["see_also"]) + "
    ") - parts.append("
    ") - return "".join(parts) - - -def render_claim(site: Site, c: Claim) -> str: - md, src, cl, cond = c.doc["metadata"], c.source, c.spec["claim"], c.spec.get("conditions") or {} - status = c.status(site.system) - option = site.catalog.get(c.spec.get("about", "")) - role = site.catalog.get(c.spec.get("role", "")) - reporting = {"self": "the source measures its own method", "independent": "the source measures methods it did not make", - "ours": "this system's own trial", "unknown": "not stated who measured it"}.get(cl.get("reporting"), "") - effect = cl.get("effect_size") - effect_html = (f"
    Effect
    {e(fmt_number(effect.get('value')))} ({e(effect.get('kind'))})" - f"{(' · ' + e(effect['note'])) if effect.get('note') else ''}
    ") if effect else ( - "
    Effect
    No effect size stated (a difference of two stated numbers is not one)
    ") - strength = [f"
    Finding
    {e(cl.get('finding'))} against the baseline
    ", effect_html] - if cl.get("significance"): - strength.append(f"
    Significance
    {e(cl['significance'])}
    ") - strength.append(f"
    Runs · cases
    {e(cl.get('runs') if cl.get('runs') is not None else 'not stated')} · " - f"{e(cl.get('cases') if cl.get('cases') is not None else 'not stated')}
    ") - strength.append(f"
    Reported by
    {e(cl.get('reporting'))}: {e(reporting)}
    ") - also = "".join(f'
    {measure_html(m)}
    ' for m in cl.get("also") or []) - if also: - also = "

    Also measured

    " + also - if cl.get("note"): - also += f'

    {e(cl["note"])}

    ' - src_bits = [x for x in (src.get("id"), src.get("version") and f"version {src['version']}") if x] - assessments = "".join(assessment_html(site, c, a) for a in c.spec.get("assessments") or []) - if not assessments and c.ours: - linked = [o for o in site.claims for a in o.spec.get("assessments") or [] - for n in ((a.get("outcome") or {}).get("observed") or []) + (a.get("see_also") or []) if n == c.name] - names = sorted({o.name for o in linked}) - assessments = ('

    This is a measurement this system ran. Claims from papers that it bears on:

      ' - + "".join(f"
    • {claim_ref(site, n, 1)}
    • " for n in names) + "
    ") if names else ( - "

    This is a measurement this system ran. No paper's claim links to it yet.

    ") - body = f""" -

    Claims {e(c.name)}

    -
    -
    -
    {site.status_badges(c)}{e(ref_name(c.spec.get("role")))} · option {e(ref_name(c.spec.get("about")))}
    -

    {e(md.get("description") or c.name)}

    -

    {e(cl.get("statement", ""))}

    -
    - -
    -

    Source

    -

    {link(src.get("url"), src.get("title", ""))}
    {e(" · ".join(src_bits))} ({e(src.get("kind"))})

    -
    Where
    {e(src.get("location", ""))}
    Read
    {e(src.get("read", ""))}
    - {quote_html(src)} -
    - -
    -
    -

    Measure and effect

    -
    {measure_html(cl)}{"".join(strength)}
    - {also} -
    -
    -

    Conditions

    - {conditions_html(cond)} -
    -
    - -
    -

    {"Status here" if not c.ours else "Where it is used"}

    - {assessments} -
    - - {option_panel(option, role)} - {claim_actions(site, c)} -

    The record: {link(site.file_url(c.path), c.path, "mono")}

    -
    -""" - return page(site, md.get("description") or c.name, body, "", depth=1, description=truncate(cl.get("statement", ""), 160)) - - -def option_panel(option: dict | None, role: dict | None) -> str: - if not option: - return "" - ev = ((option.get("spec") or {}).get("morphogen") or {}).get("evaluation") or {} - rows = "".join(f"
    {e(k)}
    {e(ev[key])}
    " for key, k in (("need", "What would count"), - ("method", "How it is measured"), - ("result", "Result so far")) if ev.get(key)) - rname = (role or {}).get("metadata", {}).get("name", "") - name = option["metadata"]["name"] - return f"""

    The option

    -

    {e(name)}, a candidate for the role {e(rname)}.

    -

    {e(option["metadata"].get("description", ""))}

    {f'
    {rows}
    ' if rows else ""}
    """ - - -# ---------------------------------------------------------------- roles - - -def fills(option: dict) -> list[str]: - """The roles an option fills: `spec.morphogen.fills`, one ref or a list.""" - f = ((option.get("spec") or {}).get("morphogen") or {}).get("fills") or [] - return [ref_name(r) for r in ([f] if isinstance(f, str) else f)] - - -def parse_evidence(annotation: str | None) -> list[tuple[str, str]]: - """`stated | repo@commit:path | "quote"` lines -> (source, quote).""" - out = [] - for line in (annotation or "").splitlines(): - parts = [p.strip() for p in line.split("|", 2)] - if len(parts) == 3: - out.append((parts[1], parts[2].strip('"'))) - return out - - -def render_roles(site: Site) -> str: - cat = site.catalog - claims_by_option: dict[str, list[Claim]] = {} - for c in site.claims: - if not c.ours: - claims_by_option.setdefault(ref_name(c.spec.get("about")), []).append(c) - blocks = [] - for r in cat.roles: - name = r["metadata"]["name"] - parent = (r.get("spec") or {}).get("subcomponentOf") - ev = parse_evidence((r["metadata"].get("annotations") or {}).get("morphogen.dev/evidence")) - ev_html = "".join(f'

    {e(q)}

    {e(s)}
    ' - for s, q in ev) - opts = [o for o in cat.options if name in fills(o)] - rows = [] - for o in opts: - oname = o["metadata"]["name"] - cs = claims_by_option.get(oname, []) - counts = {} - for c in cs: - for st in c.statuses(site.system): - counts[st] = counts.get(st, 0) + 1 - badges = " ".join(f"{status_badge(s)}×{n}" for s, n in counts.items()) - result = (((o.get("spec") or {}).get("morphogen") or {}).get("evaluation") or {}).get("result") - links = "".join(f'
  • {e(truncate(c.doc["metadata"].get("description", c.name), 120))}
  • ' for c in cs) - rows.append(f"""
  • {e(oname)}

    {e(o["metadata"].get("description", ""))}

    -

    {badges or "No claims from papers yet"}

    {f'

    Result so far {e(result)}

    ' if result else ""} -{f'
    {len(cs)} claim{"s" if len(cs) != 1 else ""}
      {links}
    ' if cs else ""}
  • """) - propose = site.issue("propose-option", f"Option to watch for {name}: ", issue_body("propose-option", site, None, extra=[ - f"An option, paper or method the research agent should look at for the role `{name}`.", "", - "Option or paper:", "", "Why it might help here:", "", f"role: {name}"])) - blocks.append(f"""
    -

    Role{f' · part of {e(parent)}' if parent else ""}

    -

    {e(name)}

    -

    {e(r["metadata"].get("description", ""))}

    {ev_html} -

    Options the agent is tracking ({len(opts)})

    -
      {"".join(rows) or "
    • None yet.
    • "}
    -

    Suggest an option for this role

    -
    """) - conds = [] - for res in cat.conditions: - n = res["metadata"]["name"] - conds.append(f'
  • {e(n)} {e((res.get("spec") or {}).get("type", ""))}
    {e(res["metadata"].get("description", ""))}
  • ') - system = cat.system - sysdesc = e(system["metadata"].get("description", "")) if system else "" - new_role = site.issue("propose-role", "Role to watch: ", issue_body("propose-role", site, None, extra=[ - "A part of the system the research agent should read papers for.", "", "The part, and what it does:", "", - "What a better option would improve:", ""])) - body = f""" -
    -

    What the agent watches for

    -

    Roles, from the map

    -

    The agent does not read a general feed. It looks for papers about the roles in the system's map, and every option it catalogues is a candidate for one of them. {sysdesc}

    -

    Propose a role to watch

    -
    -{watch_html(site)} -{"".join(blocks)} -

    This system's conditions

    -

    Every claim's conditions are compared with these when its transfer is predicted.

    -
      {"".join(conds)}
    -""" - return page(site, "Roles", body, "roles.html") - - -# ---------------------------------------------------------------- predictions and calibration - - -def calibration_pairs(site: Site) -> list[tuple[float, int, Claim, dict]]: - """(p, held, claim, assessment) for each assessment whose prediction was written before an outcome it now has. - Each assessment counts on its own: a claim tried on two configurations is two predictions.""" - out = [] - for c in site.claims: - for a in c.assessments(site.system): - pr, status = a.get("prediction") or {}, a.get("status") - if pr.get("before_outcome") and a.get("outcome") and status in ("replicated", "did-not-transfer"): - out.append((float(pr["p_transfer"]), 1 if status == "replicated" else 0, c, a)) - return out - - -def brier(pairs) -> float | None: - return sum((p - o) ** 2 for p, o, *_ in pairs) / len(pairs) if pairs else None - - -def calibration_svg(pairs, waiting: list[float]) -> str: - """A reliability diagram: predicted probability against the share that held, in five bins, with the diagonal - of perfect calibration; predictions still waiting are small dots under the axis. Attributes only (no inline style), - so the page's content security policy holds.""" - w, h, m = 360, 300, 44 - pw, ph = w - m - 16, h - m - 30 - - def x(p): - return m + p * pw - - def y(v): - return 16 + (1 - v) * ph - - grid = "".join(f'' - f'' - f'{t:.1f}' - f'{t:.1f}' - for t in (0, 0.2, 0.4, 0.6, 0.8, 1.0)) - diag = f'' - bins = [] - for i in range(5): - lo, hi = i / 5, (i + 1) / 5 - inside = [(p, o) for p, o, *_ in pairs if lo <= p < hi or (i == 4 and p == 1.0)] - if inside: - mp = sum(p for p, _ in inside) / len(inside) - rate = sum(o for _, o in inside) / len(inside) - bins.append((mp, rate, len(inside))) - dots = "".join( - f'' - f'Predicted {mp:.2f} on average, {r:.2f} held ({n} prediction{"s" if n != 1 else ""})' - for mp, r, n in bins) - stacked, seen = [], {} - for p in sorted(waiting): - k = round(p, 2) - stacked.append((p, seen.get(k, 0))) - seen[k] = seen.get(k, 0) + 1 - ticks = "".join(f'Waiting: p {p:.2f}' - for p, i in stacked) - h += 7 * max(seen.values(), default=1) - return f""" -Predicted probability against the share that held -{len(pairs)} predictions with outcomes in {len(bins)} bins; {len(waiting)} waiting. The diagonal is perfect calibration. -{grid}{diag}{dots}{ticks} -predicted probability it holds here -share that held -""" - - -def render_predictions(site: Site) -> str: - pairs = calibration_pairs(site) - waiting, unscored = [], [] # (claim, assessment): one row per assessment - for c in sort_claims(site.claims): - for a in c.assessments(site.system): - if a.get("status") == "predicted" and a.get("prediction"): - waiting.append((c, a)) - elif a.get("status") in ("replicated", "did-not-transfer") and not (a.get("prediction") or {}).get("before_outcome"): - unscored.append((c, a)) - - def cfg(a): - label = site.config_label(a) - return f' on {e(label)}' if label else "" - b = brier(pairs) - if pairs: - summary = (f"

    {len(pairs)} predictions written before their outcome now have one. " - f"Brier score {b:.3f} (0 is perfect; always saying 0.5 scores 0.250).

    ") - else: - summary = ("

    No prediction has an outcome yet, so there is nothing to score. The chart fills in as trials " - "report: each dot is a group of predictions, placed at their average probability and at the share " - "that held. The small dots under the axis are predictions still waiting. A claim tried on two configurations " - "counts twice.

    ") - rows = "".join( - f'{e(truncate(c.doc["metadata"].get("description", c.name), 90))}' - f'{cfg(a)}{meter(p)}{status_badge(a["status"])}' for p, _, c, a in pairs) - wait_rows = "".join( - f'{e(truncate(c.doc["metadata"].get("description", c.name), 90))}{cfg(a)}' - f'{meter(a["prediction"]["p_transfer"])}' - for c, a in sorted(waiting, key=lambda ca: -ca[1]["prediction"]["p_transfer"])) - unscored_items = "".join(f"
  • {status_badge(a['status'])} {e(truncate(c.doc['metadata'].get('description', c.name), 110))}{cfg(a)}
  • " for c, a in unscored) - svg = calibration_svg(pairs, [a["prediction"]["p_transfer"] for _, a in waiting]) - body = f""" -
    -

    Scoring the agent

    -

    Predictions against outcomes

    -

    Before a claim is tried, the agent writes the probability that its finding holds on this system. When the trial reports, the prediction is scored. Over time this shows which kinds of claims carry over, and how far to trust the agent's guesses.

    -
    -
    -

    Calibration

    {summary}{svg}
    -

    Waiting for a trial ({len(waiting)})

    - {wait_rows or ""}
    ClaimPrediction
    None.
    -

    Who wrote each one is on its page. To argue with one, open the claim and use "Dispute the prediction".

    -
    -{f'

    Scored

    {rows}
    ClaimPredictionOutcome
    ' if pairs else ""} -{f'

    Outcomes that do not count

    These were tried before anyone wrote a probability, so they say nothing about the agent's calibration.

      {unscored_items}
    ' if unscored else ""} -""" - return page(site, "Predictions", body, "predictions.html") - - -# ---------------------------------------------------------------- how it works - - -def render_how(site: Site) -> str: - steps = [ - ("Watch", "New papers are read for the roles in the system's map and the open questions in its docs. Nothing else."), - ("Read", "Each paper is read far enough to find what it measured, on what, and how. How much was read is recorded with every claim."), - ("Catalogue", "A method becomes an option for a role. Each claimed gain becomes a claim: one measure, the baseline, the effect if the paper states one, the conditions (models, precision, engine, dataset, runs, who measured it), and a verbatim quote that a verifier matches against the source."), - ("Predict", "The claim's conditions are compared with this system's own. The agent writes the probability that the finding holds here, and why, before anything is tried."), - ("Test behind the judge", "The cheapest informative trial goes first. An implementer turns the method into a change, and Morphogen's judge decides on cases the implementer never saw. A paper's number never decides anything."), - ("Score the prediction", "The outcome is recorded against the claim: replicated, did not transfer, or not testable here. Predictions written before the outcome are scored, which calibrates the next ones."), - ] - ol = "".join(f'
  • {i:02d}

    {e(t)}

    {e(d)}

  • ' - for i, (t, d) in enumerate(steps, 1)) - def label_note(k): - return f' (label {e(", ".join(site.labels[k]))})' if site.labels.get(k) else "" - - labs = "".join(f"
  • research-action: {e(k)} {e(t)}{label_note(k)}
  • " - for k, t in ( - ("prioritise", "test this claim sooner; it counts double in the queue"), ("reject", "drop it from the queue"), - ("dispute", "the transfer prediction is wrong; the next session reassesses it"), - ("question", "a question to watch"), ("propose-role", "a role to read papers for"), - ("propose-option", "an option or paper for a role"))) - statuses = "".join(f"
  • {status_badge(s)} {e(STATUS_HELP[s])}
  • " for s in STATUSES + [OBSERVATION]) - body = f""" -
    -

    How it works

    -

    A research loop with a judge at the end

    -

    Papers report far more gains than anyone tests, mostly once, on setups unlike yours. The research agent keeps a catalog of those claims for this system and tests the promising ones, so that only measured gains reach the code.

    -
    -
      {ol}
    -
    -

    What a status means

      {statuses}
    -

    "Replicated" means the finding held on this system's setup. It is a transfer test of the method, not a reproduction of the paper, and "did not transfer" is not a refutation of it.

    -

    Steering it

    -

    The agent takes direction from GitHub issues. The buttons on this site open one, filled in, for you to edit and submit; nothing is sent until you do. Each ends with a research-action: line, which the agent reads first:

    -
      {labs}
    -

    GitHub applies labels from a link only for people who can triage the repository, which is why the body line comes first. The agent records every issue but acts only on those from the repository's owner, members and collaborators.

    -
    -

    Files, not a service

    -

    Every claim is a YAML file in the repository ({link(site.file_url("schemas/evidence-claim.v1.json"), "schemas/evidence-claim.v1.json")}), and the roles and options are Backstage entity files. This site is built from them by site/build.py; data/claims.json holds the same records for other tools. The judge never reads the claims: what decides a change is only what it measures.

    -""" - return page(site, "How it works", body, "how.html") - - -# ---------------------------------------------------------------- the agent's own files - - -def load_research(d: Path | None) -> dict: - """queue.json, watch.yaml, seen.jsonl and index.json from the research agent's directory (morphogen.research; - demos/research-loop/README.md, "Files a website reads"). Each is optional.""" - out: dict = {} - if d is None or not d.is_dir(): - return out - for name, key in (("queue.json", "queue"), ("index.json", "index")): - if (d / name).is_file(): - out[key] = json.loads((d / name).read_text(encoding="utf-8")) - if (d / "watch.yaml").is_file(): - out["watch"] = yaml.safe_load((d / "watch.yaml").read_text(encoding="utf-8")) or {} - if (d / "seen.jsonl").is_file(): - out["seen"] = [json.loads(line) for line in (d / "seen.jsonl").read_text(encoding="utf-8").splitlines() - if line.strip()] - return out - - -def check_index(site: Site) -> list[str]: - """Where index.json and the claim files disagree (the agent rewrites the index from the files, so they should not).""" - index = site.research.get("index") - if not index: - return [] - listed = {c.get("name") for c in index.get("claims") or []} - found = {c.name for c in site.claims} - return ([f"index.json lists {n}, which no claim file holds" for n in sorted(listed - found)] - + [f"{n} is not in index.json" for n in sorted(found - listed)]) - - -def render_queue(site: Site) -> str: - q = site.research.get("queue") or {} - items = site.queue() - by_name = site.by_name() - cards = [] - for i, it in enumerate(items, 1): - name = it.get("claim", "") - c = by_name.get(name) - title = c.doc["metadata"].get("description", name) if c else name - head = (f'{e(title)}' if c else e(title)) - steer = [] - for key, text in (("prioritised_by", "prioritised"), ("rejected_by", "rejected"), ("disputed_by", "disputed")): - who = it.get(key) or [] - if who: - steer.append(f'{e(text)} by {e(", ".join(str(w) for w in who))}') - score = it.get("score") - nums = [("score", f"{score:.3f}" if isinstance(score, (int, float)) else "none"), - ("bits", it.get("information_bits")), ("hours", it.get("cost_hours"))] - num_html = "".join(f'{e(k)} {e(v)}' - for k, v in nums if v is not None) - p = it.get("p_transfer") - acts = "" - if c is not None: - pri = site.issue("prioritise", f"Prioritise: {name}", issue_body("prioritise", site, c, [ - "Please test this claim sooner.", "", "Why it is worth a trial now:", ""])) - rej = site.issue("reject", f"Reject: {name}", issue_body("reject", site, c, [ - "Please drop this claim from the queue.", "", "Why:", ""])) - acts = (f'

    Test sooner' - f' Reject

    ') - cards.append(f"""
  • {i:02d}
    -
    {e(ref_name(it.get("role")))} · option {e(ref_name(it.get("about")))}{meter(p) if isinstance(p, (int, float)) else ""}
    -

    {head}

    -

    {num_html}{"".join(steer)}

    -{f'

    Plan
    {e(it["plan"])}

    ' if it.get("plan") else ""} -{f'
    Why this probability

    {e(it["reason"])}

    ' if it.get("reason") else ""} -{acts}
  • """) - how = q.get("how", "") - when = f" Ranked on {e(q['date'])}." if q.get("date") else "" - listing = (f'
      {"".join(cards)}
    ' if cards else - '

    No queue yet: the research agent writes one (research/queue.json) when it ranks its claims.

    ') - body = f""" -
    -

    The research agent's queue

    -

    Next to test

    -

    Claims ranked by what a trial would teach for its cost: a prediction near 0.5 teaches the most, a cheap trial costs the least.{when}

    - {f'

    {e(how)}

    ' if how else ""} -
    -{listing} -""" - return page(site, "Next to test", body, "queue.html") - - -def watch_html(site: Site) -> str: - """What the agent watches (watch.yaml) and what became of the papers it saw (seen.jsonl).""" - w = site.research.get("watch") or {} - seen = site.research.get("seen") or [] - if not w and not seen: - return "" - topics = [] - for t in w.get("topics") or []: - roles = " ".join(f'{e(r)}' for r in t.get("roles") or []) - terms = " ".join(f'{e(x)}' for x in t.get("terms") or []) or \ - 'terms still to be filled in by the next session' - cats = ", ".join(str(x) for x in t.get("categories") or []) - topics.append(f"""
  • {e(t.get("name", ""))}

    {e(t.get("question", ""))}

    -

    {roles}{f' · {e(cats)}' if cats else ""}

    {terms}

  • """) - counts: dict = {} - for paper in seen: - counts[paper.get("status", "")] = counts.get(paper.get("status", ""), 0) + 1 - count_html = ", ".join(f"{n} {e(k)}" for k, n in sorted(counts.items(), key=lambda x: -x[1])) - cataloged = [x for x in seen if x.get("status") == "cataloged"] - cat_html = "".join( - f'
  • {link("https://arxiv.org/abs/" + str(x.get("id", "")), x.get("title", ""))} {e(x.get("id", ""))}
  • ' - for x in cataloged) - return f"""

    Watching

    -{f'

    {e(w["conditions"])}

    ' if w.get("conditions") else ""} -{f'
      {"".join(topics)}
    ' if topics else ""} -{f'

    Papers seen {len(seen)}: {count_html}.

    ' if seen else ""} -{f'
    {len(cataloged)} papers catalogued
      {cat_html}
    ' if cataloged else ""} -
    """ - - -# ---------------------------------------------------------------- build - - -def build(config_path: Path, out: Path, root: Path = ROOT) -> Site: - with config_path.open("rb") as f: - cfg = tomllib.load(f) - srcs = cfg.get("sources", {}) - schema_path = srcs.get("schema") - schema = json.loads((root / schema_path).read_text(encoding="utf-8")) if schema_path else None - claims = load_claims([root / d for d in srcs.get("claims", [])], root.resolve(), schema) - docs = [] - for p in srcs.get("catalog", []): - if (root / p).is_file(): - docs += load_yaml_docs(root / p) - else: - print(f"build: {p} does not exist; skipped", file=sys.stderr) - research = load_research(root / srcs["research"] if srcs.get("research") else None) - site = Site(cfg.get("title", "Morphogen research"), cfg["repo"], cfg.get("branch", "main"), cfg["system"], - cfg.get("labels", {}), claims, Catalog(docs), research) - for problem in check_index(site): - print(f"build: {problem}", file=sys.stderr) - - if out.exists(): - shutil.rmtree(out) - (out / "claims").mkdir(parents=True) - (out / "data").mkdir() - shutil.copytree(HERE / "static", out / "assets") - write = lambda rel, text: (out / rel).write_text(text, encoding="utf-8") # noqa: E731 - write("index.html", render_index(site)) - write("roles.html", render_roles(site)) - write("queue.html", render_queue(site)) - write("predictions.html", render_predictions(site)) - write("how.html", render_how(site)) - for c in claims: - write(f"claims/{c.name}.html", render_claim(site, c)) - data = [{"name": c.name, "path": c.path, "status": c.status(site.system), "statuses": c.statuses(site.system), - "date": c.date(), - "record": _jsonable(c.doc)} for c in sort_claims(claims)] - write("data/claims.json", json.dumps({"system": site.system, "claims": data}, indent=1, ensure_ascii=False)) - write(".nojekyll", "") - return site - - -def main(argv=None) -> int: - ap = argparse.ArgumentParser(description=__doc__.split("\n\n")[0]) - ap.add_argument("--config", type=Path, default=HERE / "config.toml") - ap.add_argument("--out", type=Path, default=HERE / "_build") - ap.add_argument("--root", type=Path, default=ROOT, help="the repository the config's paths are relative to") - args = ap.parse_args(argv) - site = build(args.config, args.out, root=args.root.resolve()) - print(f"build: {len(site.claims)} claims, {len(site.catalog.roles)} roles, {len(site.catalog.options)} options -> {args.out}") - return 0 - - -if __name__ == "__main__": - sys.exit(main()) diff --git a/site/config.toml b/site/config.toml index 86e7dd2..217efb4 100644 --- a/site/config.toml +++ b/site/config.toml @@ -1,4 +1,4 @@ -# What site/build.py reads. Paths are relative to the repository root. +# What the site reads (site/src/lib/data.mjs). Paths are relative to the repository root. title = "Morphogen research" # Where steering issues go, and where claim files are linked on GitHub. repo = "OpenReplicant/Morphogen" diff --git a/site/content/how.md b/site/content/how.md new file mode 100644 index 0000000..0ee028f --- /dev/null +++ b/site/content/how.md @@ -0,0 +1,30 @@ +--- +title: How it works +description: Papers report far more gains than anyone tests, mostly once, on setups unlike yours. The research agent keeps a catalog of those claims for this system and tests the promising ones, so that only measured gains reach the code. +kind: page +nav: 90 +blocks: [statuses, steering, files] +--- + +## A research loop with a judge at the end + +1. **Watch.** New papers are read for the roles in the system's map and the open questions in its docs. Nothing else. +2. **Read.** Each paper is read far enough to find what it measured, on what, and how. How much was read is recorded + with every claim. +3. **Catalogue.** A method becomes an option for a role. Each claimed gain becomes a claim: one measure, the + baseline, the effect if the paper states one, the conditions (models, precision, engine, dataset, runs, who + measured it), and a verbatim quote that a verifier matches against the source. +4. **Predict.** The claim's conditions are compared with this system's own. The agent writes the probability that + the finding holds here, and why, before anything is tried. +5. **Test behind the judge.** The cheapest informative trial goes first. An implementer turns the method into a + change, and Morphogen's judge decides on cases the implementer never saw. A paper's number never decides + anything. +6. **Score the prediction.** The outcome is recorded against the claim: replicated, did not transfer, or not + testable here. Predictions written before the outcome are scored, which calibrates the next ones. + +## Finding your way around + +Every claim, paper, trial, model, option and role has a page, and every page lists what it links to and what links +to it. A model's page lists every claim tested with it and the result; a trial's page lists the claims it gave an +outcome for, and on which models; a claim's page starts with a table of what it was tested on. The +[map](map.html) shows all of it at once, and [search](search.html) finds any of it. diff --git a/site/content/notes/2026-11-27-inkling-and-the-27b-finding.md b/site/content/notes/2026-11-27-inkling-and-the-27b-finding.md new file mode 100644 index 0000000..20a4cfd --- /dev/null +++ b/site/content/notes/2026-11-27-inkling-and-the-27b-finding.md @@ -0,0 +1,22 @@ +--- +title: Inkling 2 Mini was tested against the 27B+ finding, not only LFM3 +description: The decision-gates paper found that 27B and 31B models read by option likelihood match Jev. E-04a tried that on both of our models. +kind: note +date: 2026-11-27 +refs: + - claim:gates-likelihood-readout-27-31b-matches-jev + - resource:inkling-2-mini-q4-k + - resource:lfm3-1.7b-q6-k + - trial:E-04a +--- + +The claim that untuned Gemma-4-31B and Qwen3.6-27B, read by the likelihood of each option key, match Jev has two +assessments here, and they disagree, so its badge says **Mixed**: + +- on **LFM3 1.7B** it did not transfer: pooled accuracy 0.528 against Jev's 0.842 on 3,412 JevBench cases; +- on **Inkling 2 Mini** (about 26B in all, so near the paper's sizes) it held in the sense E-04a registered: 0.810 + against Jev's 0.843 on the same 779 cases, 3.3 points below. + +Both outcomes come from [E-04a](../trials/e-04a.html). The [Inkling 2 Mini page](../resources/inkling-2-mini-q4-k.html) +lists every claim tested with it, and the [claim's page](../claims/gates-likelihood-readout-27-31b-matches-jev.html) +starts with the table of both results. diff --git a/site/package-lock.json b/site/package-lock.json new file mode 100644 index 0000000..4cb5b51 --- /dev/null +++ b/site/package-lock.json @@ -0,0 +1,4189 @@ +{ + "name": "morphogen-research-site", + "version": "0.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "morphogen-research-site", + "version": "0.0.0", + "dependencies": { + "@alpinejs/csp": "3.17.5", + "ajv": "8.20.0", + "ajv-formats": "3.0.1", + "astro": "7.4.11", + "smol-toml": "1.9.1", + "yaml": "2.9.1" + }, + "engines": { + "node": ">=22.23.4" + } + }, + "node_modules/@alpinejs/csp": { + "version": "3.17.5", + "resolved": "https://registry.npmjs.org/@alpinejs/csp/-/csp-3.17.5.tgz", + "integrity": "sha512-7e5lYgzJJL2eZ7esnx+E7wtxws+VDs9em9ztttZ+AQAYEng2bABHFp2SUga0wt84RyfL7hc6B+S/RGglXsPf6w==", + "license": "MIT", + "dependencies": { + "@vue/reactivity": "~3.5.40" + } + }, + "node_modules/@astrojs/compiler-binding": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/@astrojs/compiler-binding/-/compiler-binding-0.5.3.tgz", + "integrity": "sha512-fHG6eWKvnSlV11dUMZSi4AynOGjVbNBgZZc704Hi9DW8WeKtbsS7fJQT3omz1Nba+5mccLQQGAWOQ65cnuNLtg==", + "license": "MIT", + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "optionalDependencies": { + "@astrojs/compiler-binding-android-arm64": "0.5.3", + "@astrojs/compiler-binding-darwin-arm64": "0.5.3", + "@astrojs/compiler-binding-darwin-x64": "0.5.3", + "@astrojs/compiler-binding-linux-arm64-gnu": "0.5.3", + "@astrojs/compiler-binding-linux-arm64-musl": "0.5.3", + "@astrojs/compiler-binding-linux-x64-gnu": "0.5.3", + "@astrojs/compiler-binding-linux-x64-musl": "0.5.3", + "@astrojs/compiler-binding-wasm32-wasi": "0.5.3", + "@astrojs/compiler-binding-win32-arm64-msvc": "0.5.3", + "@astrojs/compiler-binding-win32-x64-msvc": "0.5.3" + } + }, + "node_modules/@astrojs/compiler-binding-android-arm64": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-android-arm64/-/compiler-binding-android-arm64-0.5.3.tgz", + "integrity": "sha512-ThyoCqtrdp6UwmMvScluDll4vvj4kXwUPKHYozLbXJKPH5zrJ8sr5xQJVOk0YvgBrCvGBA/lPVVLyEp1aLuBYg==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@astrojs/compiler-binding-darwin-arm64": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-darwin-arm64/-/compiler-binding-darwin-arm64-0.5.3.tgz", + "integrity": "sha512-zMI4ndCVCd0Wsrm8sXVcIk6uviKsgndFLnxqNd6Qx26LINSkb0lQ7SL8gKyGcTu0hJRTBwl7Y1WcpMk37aeaKQ==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@astrojs/compiler-binding-darwin-x64": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-darwin-x64/-/compiler-binding-darwin-x64-0.5.3.tgz", + "integrity": "sha512-Ce51oGlDgBAwoVOy5Y4FeIqFkXbS/vJkIAPN5pXIYchn/3izF4c2t//KuUZJopwzD6Kblj46kKiqmxRUt/mAJg==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@astrojs/compiler-binding-linux-arm64-gnu": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-linux-arm64-gnu/-/compiler-binding-linux-arm64-gnu-0.5.3.tgz", + "integrity": "sha512-WCBGgpmUqbuWW3KAsNOKRXDeQIAeQLftZhZ+CNyl3eg4JtkfZRXHav2qItzVg6ODyzmS2e+QkpgsQuwMSInGgA==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@astrojs/compiler-binding-linux-arm64-musl": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-linux-arm64-musl/-/compiler-binding-linux-arm64-musl-0.5.3.tgz", + "integrity": "sha512-DRcjEOFWcMbaaTsbOEferYozr2zDUf/roDzcF6WxHSSto+rqZ1N87xxj/pjOpz0JtTBlZ3V59nZGONcNiQUSWw==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@astrojs/compiler-binding-linux-x64-gnu": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-linux-x64-gnu/-/compiler-binding-linux-x64-gnu-0.5.3.tgz", + "integrity": "sha512-8rIMmEFtuVe5mMvwBR59uSHZL7CaJ/CPm5Hh3r3Bd5JLoSPkBbl1xk8kwUkNKJ0QSbGEFdWkUnx73JRZq46i2A==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@astrojs/compiler-binding-linux-x64-musl": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-linux-x64-musl/-/compiler-binding-linux-x64-musl-0.5.3.tgz", + "integrity": "sha512-+sZCsIXq/PQBiemALIr+GbERKQbQ82mHW2ibJUlCDtsjyFA/8Udm8WGZhS7AGjb2P9ekQ4j7Z8dbxb0f3E0oZw==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@astrojs/compiler-binding-wasm32-wasi": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-wasm32-wasi/-/compiler-binding-wasm32-wasi-0.5.3.tgz", + "integrity": "sha512-cEhZ7XAoZYffJdNYb3MDWci1UKhSEjPN+DMaLEB8X1tKlhlYNw9eVWUyNZTe1gb3nr7JJBVXdXDioqE00dyVLQ==", + "cpu": [ + "wasm32" + ], + "license": "MIT", + "optional": true, + "dependencies": { + "@emnapi/core": "1.11.3", + "@emnapi/runtime": "1.11.3", + "@napi-rs/wasm-runtime": "^1.2.7" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@astrojs/compiler-binding-win32-arm64-msvc": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-win32-arm64-msvc/-/compiler-binding-win32-arm64-msvc-0.5.3.tgz", + "integrity": "sha512-Vcg6+NlU2SOmVGweQEmufu40MHuDuRR80dp9xNLutBWGdJG1HP0XivjGWKGkx/2EK3HN5rwB2NwPgBNDkhKsnQ==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@astrojs/compiler-binding-win32-x64-msvc": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/@astrojs/compiler-binding-win32-x64-msvc/-/compiler-binding-win32-x64-msvc-0.5.3.tgz", + "integrity": "sha512-Mt5bK4l5ZcUdNcVxJ7VVt2x5Ck46cXgxCmIhT8sVyUST04FBRYqcYTXQLvy1Py4ejglcWRxAS6z+jBVHs3LPfg==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@astrojs/compiler-rs": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/@astrojs/compiler-rs/-/compiler-rs-0.5.3.tgz", + "integrity": "sha512-rNSAYm5IcRJMpNm+cSMaaPNCmzCXIdiz67kcBwC1qN8eTmO48wEJ6hZdlGq60+0HIHwUlncfaMxti1Fk2uJu7w==", + "license": "MIT", + "dependencies": { + "@astrojs/compiler-binding": "0.5.3" + }, + "engines": { + "node": ">=22.12.0" + } + }, + "node_modules/@astrojs/internal-helpers": { + "version": "0.13.2", + "resolved": "https://registry.npmjs.org/@astrojs/internal-helpers/-/internal-helpers-0.13.2.tgz", + "integrity": "sha512-SWiNS+OMrhwWYzJENTekHUyUCMKB+tdU6D4v1ZNIU1ZHh2mScQ8WIs0J6AJ8KPXkIrs9+EZU7Rm2CstfThyVnw==", + "license": "MIT", + "dependencies": { + "@types/hast": "^3.0.5", + "@types/mdast": "^4.0.4", + "picomatch": "^4.0.7", + "retext-smartypants": "^6.2.0", + "shiki": "^4.6.0", + "smol-toml": "^1.9.1", + "unified": "^11.0.5", + "yaml": "^2.9.1" + } + }, + "node_modules/@astrojs/markdown-satteri": { + "version": "0.4.9", + "resolved": "https://registry.npmjs.org/@astrojs/markdown-satteri/-/markdown-satteri-0.4.9.tgz", + "integrity": "sha512-ixhXGrlvYNdVvSLU3L+ju+tGoMbRdH1iXee593xReVAcDhXJ7yvuNIV8M0KzCQAeiZo1VIleaaI9lH4RzCKYWA==", + "license": "MIT", + "dependencies": { + "@astrojs/internal-helpers": "0.13.2", + "@astrojs/prism": "4.1.2", + "github-slugger": "^2.0.0", + "satteri": "^0.11.6" + } + }, + "node_modules/@astrojs/prism": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/@astrojs/prism/-/prism-4.1.2.tgz", + "integrity": "sha512-jMrUEpFDarDO1KWPvVc9eSa8DSfwBlwEOHwX+8zvZQpiqXRGDxFnOXHsYqV6DP7w+0qIgTr98gS1GdQlm8ypWg==", + "license": "MIT", + "dependencies": { + "prismjs": "^1.30.0" + }, + "engines": { + "node": ">=22.23.4" + } + }, + "node_modules/@astrojs/runtime": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/@astrojs/runtime/-/runtime-0.1.1.tgz", + "integrity": "sha512-2Tr9IJ4aQBPDFzlSLq139eWS9OZnuhL0yU2al8cCpnTE/RszygSyGIP8piBmEio1zDUaItb/+YxxsrmldUCBmg==", + "license": "MIT", + "dependencies": { + "@oslojs/encoding": "^1.1.0", + "clsx": "^2.1.1" + } + }, + "node_modules/@astrojs/telemetry": { + "version": "3.4.2", + "resolved": "https://registry.npmjs.org/@astrojs/telemetry/-/telemetry-3.4.2.tgz", + "integrity": "sha512-2JOMRUxJrBSfiVDfeKLv1wBmvSIx1Y6u2YEO8awZ9qSq3u/rNAiUyFdOYi8dHv91kHrmYEQX7pRDw0J4xyj3UA==", + "license": "MIT", + "dependencies": { + "ci-info": "^4.4.0", + "dset": "^3.1.4", + "is-docker": "^4.0.0", + "package-manager-detector": "^1.9.0" + }, + "engines": { + "node": ">=22.23.4" + } + }, + "node_modules/@astrojs/vite-plugin-astro": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/@astrojs/vite-plugin-astro/-/vite-plugin-astro-0.1.2.tgz", + "integrity": "sha512-tDlT8Gp6fX3Km7yGeZSG1xaPfVhcXgmYHp/lKcXf3Rc3fZF4NTeWMwtXVbJy40lvrD7iDxpXN7vAHH2tQSZGWg==", + "license": "MIT", + "dependencies": { + "@astrojs/compiler-rs": "^0.5.1", + "@astrojs/internal-helpers": "0.13.2", + "@astrojs/runtime": "0.1.1", + "common-ancestor-path": "^2.0.0", + "devalue": "^6.0.2", + "magic-string": "^1.4.2", + "rolldown": "~1.2.16", + "smol-toml": "^1.9.0", + "zod": "^4.6.5" + }, + "peerDependencies": { + "vite": "^8.3.3" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.29.15", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.29.15.tgz", + "integrity": "sha512-C2FuapQ2Kh1OnVHAoLi5rD3GBJ8COb9Q609T6HEpLqaBAo560PDP5OxBE5dCI/h951MBO/+bCUYU5SZ+8ZlV+w==", + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.29.7.tgz", + "integrity": "sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==", + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/parser": { + "version": "7.29.15", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.15.tgz", + "integrity": "sha512-RpKWyisHoP81twtSCgmE02iU0RnPcq1DN5bBEbpUePrjA9Q3wXhufnCJrrayPpoZieqFh3zyZQqwtSK0gGccRA==", + "license": "MIT", + "dependencies": { + "@babel/types": "^7.29.15" + }, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/types": { + "version": "7.29.15", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.15.tgz", + "integrity": "sha512-/XKpKDakL//LZ66bq1XsZOswuqeI5MZqPLDu18o3XdkU1fNJ7bdPtzgnc4ZNS+bBGHV0FJG8jjb8SwcC3nNVQQ==", + "license": "MIT", + "dependencies": { + "@babel/helper-string-parser": "^7.29.15", + "@babel/helper-validator-identifier": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@bruits/satteri-android-arm64": { + "version": "0.11.7", + "resolved": "https://registry.npmjs.org/@bruits/satteri-android-arm64/-/satteri-android-arm64-0.11.7.tgz", + "integrity": "sha512-ej+1rIKs+yb6/OtcIe1SO22OXjJV0qqUopl5VNZF8Sqc/Pj4m1DXoqBQsPxW5OUYYiDUymIy6hnnn8M78VYk2w==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@bruits/satteri-darwin-arm64": { + "version": "0.11.7", + "resolved": "https://registry.npmjs.org/@bruits/satteri-darwin-arm64/-/satteri-darwin-arm64-0.11.7.tgz", + "integrity": "sha512-yllQOX1kVWrwqL7tamQlp4NP0loIb4KuadjuNrAe4JEOerHpgYISPRDb8DqLipgvP7Ks4e87LydZpdakMR1rhQ==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@bruits/satteri-darwin-x64": { + "version": "0.11.7", + "resolved": "https://registry.npmjs.org/@bruits/satteri-darwin-x64/-/satteri-darwin-x64-0.11.7.tgz", + "integrity": "sha512-RMQrKzEZRZSiYyLFifiSuk0nBH6uAY1TVMNR/h/aE4rr2OS6l82e4MJTpC6H/tqSMoE+3CwbkUKBQGLHIweYlg==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@bruits/satteri-freebsd-x64": { + "version": "0.11.7", + "resolved": "https://registry.npmjs.org/@bruits/satteri-freebsd-x64/-/satteri-freebsd-x64-0.11.7.tgz", + "integrity": "sha512-EFlqw+RDRo3wYdy1ZSR/dNYhfWjuZL86PYwRcpLWWEZskjfpNnhIdxS13Xw2QJE1hSjTGVq4aZaVvlUjoj8p5A==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@bruits/satteri-linux-arm64-gnu": { + "version": "0.11.7", + "resolved": "https://registry.npmjs.org/@bruits/satteri-linux-arm64-gnu/-/satteri-linux-arm64-gnu-0.11.7.tgz", + "integrity": "sha512-aeH365GHaqv01wRSiHaGUlpL28U8e9UnV9LxjIF6BOyTj71/M5bop4HKomcis4VxFZjd68fDqNyU22yFkF/h7A==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@bruits/satteri-linux-arm64-musl": { + "version": "0.11.7", + "resolved": "https://registry.npmjs.org/@bruits/satteri-linux-arm64-musl/-/satteri-linux-arm64-musl-0.11.7.tgz", + "integrity": "sha512-72WlBhuwOHm+2Nv4Qf1WzfS75PHOLz81sYkDJnmj0Rm2C4Xax5faSiTDt7vWo1IcK6rDlkuRDNnWIw8uIKWuVQ==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@bruits/satteri-linux-x64-gnu": { + "version": "0.11.7", + "resolved": "https://registry.npmjs.org/@bruits/satteri-linux-x64-gnu/-/satteri-linux-x64-gnu-0.11.7.tgz", + "integrity": "sha512-gDp4v1jjckeNCetLtrMUfDV4CKGYL6fayDPdoaQq09nkDCSrclxEFK7kAmRuHhoalgsao4bZMFqQr3HQtN2NEQ==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@bruits/satteri-linux-x64-musl": { + "version": "0.11.7", + "resolved": "https://registry.npmjs.org/@bruits/satteri-linux-x64-musl/-/satteri-linux-x64-musl-0.11.7.tgz", + "integrity": "sha512-zqzSpQLA6V3J/TO2Vjuc1VRQPIQQdoSYmzKKFL+3GwGlbXiFQP2ZUDSLw9xlm0tTKXkCM9ANr4jMiDASZ+JGUw==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@bruits/satteri-wasm32-wasi": { + "version": "0.11.7", + "resolved": "https://registry.npmjs.org/@bruits/satteri-wasm32-wasi/-/satteri-wasm32-wasi-0.11.7.tgz", + "integrity": "sha512-L46f6rtlaBR4fsTWGCTFcXtbtka2GyM3l9TsmE0FgTxjXGq+sndYg5X3hzlhWDkNvJpRtCHCmgTRJ5+cIi4o3A==", + "cpu": [ + "wasm32" + ], + "license": "MIT", + "optional": true, + "dependencies": { + "@emnapi/core": "1.11.1", + "@emnapi/runtime": "1.11.1", + "@napi-rs/wasm-runtime": "^1.2.7" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@bruits/satteri-wasm32-wasi/node_modules/@emnapi/core": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.11.1.tgz", + "integrity": "sha512-RSvbQmHzdKzNsLYa/wHrbc3KN4sYLKAdPZxqiM2HATqv/SBk2/ENSHpvXGaLOMcsAyz0poEGqkmmKYG3OWiJEQ==", + "license": "MIT", + "optional": true, + "dependencies": { + "@emnapi/wasi-threads": "1.2.2", + "tslib": "^2.4.0" + } + }, + "node_modules/@bruits/satteri-wasm32-wasi/node_modules/@emnapi/runtime": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.11.1.tgz", + "integrity": "sha512-vgj7R3y3Wgx24IQaGPA/R6YFXLHVMOZ0uVEyIQPaWs+rd1AzfEMXlAC22FYwO1XkKR6NPsq7mUandH8oIRdZFw==", + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@bruits/satteri-wasm32-wasi/node_modules/@emnapi/wasi-threads": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-1.2.2.tgz", + "integrity": "sha512-c95qOXkHdydNKhscBTebqEC1CVAZpyqOfVfBzQ1qgzyl3gfeldUjIggDbIZgDKsHLgnsM+igH7TJ/eAasaVuMA==", + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@bruits/satteri-win32-arm64-msvc": { + "version": "0.11.7", + "resolved": "https://registry.npmjs.org/@bruits/satteri-win32-arm64-msvc/-/satteri-win32-arm64-msvc-0.11.7.tgz", + "integrity": "sha512-R2+o6EbJK4pqbd086H9BGUVYAyZ5F6FnShfoyRIu0Zu9DTE3H6EU/Z+ua7p9dmYf6JQQbE9DCwwavi4xiaGAhQ==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@bruits/satteri-win32-x64-msvc": { + "version": "0.11.7", + "resolved": "https://registry.npmjs.org/@bruits/satteri-win32-x64-msvc/-/satteri-win32-x64-msvc-0.11.7.tgz", + "integrity": "sha512-OIyBFJ35uMu5CH5RWnIR3bKsZwScKZ7vXmhCohZ+qonT1SkxmHCEf4H8YRWThRL2EXdVDjkjhfOsaiA4O24Vvw==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@capsizecss/unpack": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@capsizecss/unpack/-/unpack-4.0.1.tgz", + "integrity": "sha512-CuNiSqg7+e1cO/GjffyMOm5Tt2jUF9CWHHnvQ/UkqvtkGfHdgwEC0wpmq7fkN3gxwpRnrAN0WzO3vREKmNolMQ==", + "license": "MIT", + "dependencies": { + "fontkitten": "^1.0.3" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/@clack/core": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@clack/core/-/core-1.6.0.tgz", + "integrity": "sha512-4GZynIB2IIe431odxesswvWTCP6orvqd6e2b07b3VFWBQRqUqIHc/EPIZwFoKS692QBp+ooPuXKaJV8g4kXuYA==", + "license": "MIT", + "dependencies": { + "fast-string-width": "^3.0.2", + "fast-wrap-ansi": "^0.2.0", + "sisteransi": "^2.0.0" + }, + "engines": { + "node": ">= 20.12.0" + } + }, + "node_modules/@clack/prompts": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@clack/prompts/-/prompts-1.9.0.tgz", + "integrity": "sha512-tEj8X2No2A1c9NDnZECxiiJ8TP3vmFlN9tLlLeSaMqVW4tUmVG2R4qpv/eP4zymWxnymYLkLcIYVV0VcWj3RCQ==", + "license": "MIT", + "dependencies": { + "@clack/core": "1.6.0", + "fast-string-width": "^3.0.2", + "fast-wrap-ansi": "^0.2.0", + "sisteransi": "^2.0.0" + }, + "engines": { + "node": ">= 20.12.0" + } + }, + "node_modules/@emnapi/core": { + "version": "1.11.3", + "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.11.3.tgz", + "integrity": "sha512-zLpS5asjEb7lq8jYLq37N6XKaE41DIexlY1rF/z4/tIl3wo13Sqm28fRyfIsKZD+NZ8mM5RoKkpW/rBcuoSZSg==", + "license": "MIT", + "optional": true, + "dependencies": { + "@emnapi/wasi-threads": "1.2.3", + "tslib": "^2.4.0" + } + }, + "node_modules/@emnapi/runtime": { + "version": "1.11.3", + "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.11.3.tgz", + "integrity": "sha512-Xz4Tpyki7XyrpbUK1jR1AhdAdaXyhhY4lZ3neLodmhpuWfy2PAQN5B46sAiU4liOXGLkHypn/qU+jvfWSCYYLA==", + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@emnapi/wasi-threads": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-1.2.3.tgz", + "integrity": "sha512-ELEBe8PsLvvJ6QMr0zLt8ffvOHW/dc1m3CEzNMg7aJUv3bMaoDtw2TXyDAwkYBuroxxuHEwhRTLJSe5sya547g==", + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@img/colour": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@img/colour/-/colour-1.1.0.tgz", + "integrity": "sha512-Td76q7j57o/tLVdgS746cYARfSyxk8iEfRxewL9h4OMzYhbW4TAcppl0mT4eyqXddh6L/jwoM75mo7ixa/pCeQ==", + "license": "MIT", + "optional": true, + "engines": { + "node": ">=18" + } + }, + "node_modules/@img/sharp-darwin-arm64": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-darwin-arm64/-/sharp-darwin-arm64-0.35.5.tgz", + "integrity": "sha512-QRUlFQ0WxvdWyqqG/WtI3iupfD5rBzmCHXSdPsY91sAtVtTo7Q4cb6zOccZ3gqEqkr0f1As1ehLqmEpDsRf+lg==", + "cpu": [ + "arm64" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-darwin-arm64": "1.3.4" + } + }, + "node_modules/@img/sharp-darwin-x64": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-darwin-x64/-/sharp-darwin-x64-0.35.5.tgz", + "integrity": "sha512-+BR255RhDlpygUpOc/Jdt1nT6DQ3XG/ERo5wbcdOf5Q320dKtPCKPLR1LJs9VGXRaMa8l1uUa0tkCNOXiAxZUw==", + "cpu": [ + "x64" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-darwin-x64": "1.3.4" + } + }, + "node_modules/@img/sharp-freebsd-wasm32": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-freebsd-wasm32/-/sharp-freebsd-wasm32-0.35.5.tgz", + "integrity": "sha512-Y/z91nEZ4uIBX5X3nfTovjU9lHNKFYbL2lpHCLVNmXQK03VIZvXBBt0KxbPGp2SdGSF+2mQU4e+hQaWOt86iAw==", + "license": "Apache-2.0", + "optional": true, + "os": [ + "freebsd" + ], + "dependencies": { + "@img/sharp-wasm32": "0.35.5" + }, + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-darwin-arm64": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-arm64/-/sharp-libvips-darwin-arm64-1.3.4.tgz", + "integrity": "sha512-5R89nBYiRdUlSWJxPhO+GVtaXzXSxKnRu/xqMn3KTA3L9EB9Oy/P+Nn2f2vlhPuUdy/Zusb2DarbyTpGCfEDuw==", + "cpu": [ + "arm64" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "darwin" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-darwin-x64": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-x64/-/sharp-libvips-darwin-x64-1.3.4.tgz", + "integrity": "sha512-iR2OKH80yi0U+dUplyh3/xdpFvps6YkCwsXenIJxqxR1v9o+xtKTGbS9H7cps+2Vxjc8B1j96p75NmTGjIhtpQ==", + "cpu": [ + "x64" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "darwin" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linux-arm": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm/-/sharp-libvips-linux-arm-1.3.4.tgz", + "integrity": "sha512-LmRtTsOHuvM2+wlO2Db37dx5MiZhB0FvSunciw48YjdOkZz9KAiRbm8ujeMOA1INqmei5NapFxYEK1D1ZSidmw==", + "cpu": [ + "arm" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "linux" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linux-arm64": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm64/-/sharp-libvips-linux-arm64-1.3.4.tgz", + "integrity": "sha512-Y3dgX/6lE2QhQb+Gxy0WZxfg9MEm/JBjamZpS2IklP7xIQoKN4hzAm7KcMVGtaVDt3neE9OKBC7vAfonA/Lr1A==", + "cpu": [ + "arm64" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "linux" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linux-ppc64": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-ppc64/-/sharp-libvips-linux-ppc64-1.3.4.tgz", + "integrity": "sha512-Le6boB8Tai0Nis+gIxIpKx68UDVVIqdR8Tin5Yf1z2LJJQLDJvCDRqRu+jC2qCoD+eIomonmOwB4smBRxfVpYQ==", + "cpu": [ + "ppc64" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "linux" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linux-riscv64": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-riscv64/-/sharp-libvips-linux-riscv64-1.3.4.tgz", + "integrity": "sha512-aHkkIEHPRdQEegJN20MLmGtxYD9R2wQr3Cwpddnu5+YKMt6Uzax7S9h5gpZTo8wyrGuZSlfQ63OevL5mTyOC7Q==", + "cpu": [ + "riscv64" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "linux" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linux-s390x": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-s390x/-/sharp-libvips-linux-s390x-1.3.4.tgz", + "integrity": "sha512-ra/mB6MikESDUO7Yg+Mi95bFBb9GsObURuhnOv3OqknjGe9sZrG8tCe9q0xSIGrtLgvgw0gKnFWcK4blSgQOuQ==", + "cpu": [ + "s390x" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "linux" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linux-x64": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-x64/-/sharp-libvips-linux-x64-1.3.4.tgz", + "integrity": "sha512-GJ//SSXbnwSDes02umB3nDJLFcQzw8a18V8fyhqr6tV515tOEMdImjjxj1AoafMRz56F3PHgftnj1QEKSU1zkw==", + "cpu": [ + "x64" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "linux" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linuxmusl-arm64": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-arm64/-/sharp-libvips-linuxmusl-arm64-1.3.4.tgz", + "integrity": "sha512-hvulFwtjUcagsis6BBxHwGFwWoNZjgYmULGVrZcyfNbjA8hKILbRxGg15/7w5HDyXHXUos/j6baAWqnCyQ2DWA==", + "cpu": [ + "arm64" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "linux" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-libvips-linuxmusl-x64": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-x64/-/sharp-libvips-linuxmusl-x64-1.3.4.tgz", + "integrity": "sha512-6zXKeE/p39I1AmA3cJG35eyBGNqNddLnUXjhwBnsGjFPWqf5VKkDBEqaEkPDoTEtkxwi2vv8Tcr2mDyP4So7Fg==", + "cpu": [ + "x64" + ], + "license": "LGPL-3.0-or-later", + "optional": true, + "os": [ + "linux" + ], + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-linux-arm": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm/-/sharp-linux-arm-0.35.5.tgz", + "integrity": "sha512-LEaXK2WdXVK5ykcw0buWyPMsmLLL2vpHLD6yrNSW+JGEL3BZPA4tpKN6iaMc4AxTTAoaX/sU1rOL51lcIz48ZQ==", + "cpu": [ + "arm" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linux-arm": "1.3.4" + } + }, + "node_modules/@img/sharp-linux-arm64": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm64/-/sharp-linux-arm64-0.35.5.tgz", + "integrity": "sha512-LYVx5JTsOM2CBzmxreh+nl64/3H6Xb09iSLknqH47z2T2DFFxDeFLP5y4dJwe6H7uGQlHPyEEtIqyo3DYsRwdQ==", + "cpu": [ + "arm64" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linux-arm64": "1.3.4" + } + }, + "node_modules/@img/sharp-linux-ppc64": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-ppc64/-/sharp-linux-ppc64-0.35.5.tgz", + "integrity": "sha512-QVxAAq8evVRI9ia2vqgwrmWucn5Dfv+JdWzj75pD8omHLPSP7f8p20O8jxzjCcuCEQEOtYOZUmX1hkiZ0kdevA==", + "cpu": [ + "ppc64" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linux-ppc64": "1.3.4" + } + }, + "node_modules/@img/sharp-linux-riscv64": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-riscv64/-/sharp-linux-riscv64-0.35.5.tgz", + "integrity": "sha512-LtdreXguaavKODPIfzJ4kffx7UNt1omwtK0rch4EBbbSTXPnxWmYSayXdLJw0fJzQ97kHt1gL/yh4tvU+nCyRQ==", + "cpu": [ + "riscv64" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linux-riscv64": "1.3.4" + } + }, + "node_modules/@img/sharp-linux-s390x": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-s390x/-/sharp-linux-s390x-0.35.5.tgz", + "integrity": "sha512-UZasTOFiYzotTsGOCu42BfUzP6Tu6Do/947iRm1RsLKvlllxwGcn4RN27LibGWceix4Y+Pmw3jsnTcCQIgWjqA==", + "cpu": [ + "s390x" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linux-s390x": "1.3.4" + } + }, + "node_modules/@img/sharp-linux-x64": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-linux-x64/-/sharp-linux-x64-0.35.5.tgz", + "integrity": "sha512-SxFtLTeJInhAA9Q836kux2vZNeOBQEx658qvbboZScr0wIARym3IcGmW7KpVD5sbVg0Ojy+udFQdayYIZyoNog==", + "cpu": [ + "x64" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linux-x64": "1.3.4" + } + }, + "node_modules/@img/sharp-linuxmusl-arm64": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-arm64/-/sharp-linuxmusl-arm64-0.35.5.tgz", + "integrity": "sha512-9HbMclmI1zlNkFRs3z9/eBtDjfD0sGlrX1z6b1qwmiFY5ElDLh4BC0LPBdVp7z1DXFiKlIcznf+ZlsuZzLxQqg==", + "cpu": [ + "arm64" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linuxmusl-arm64": "1.3.4" + } + }, + "node_modules/@img/sharp-linuxmusl-x64": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-x64/-/sharp-linuxmusl-x64-0.35.5.tgz", + "integrity": "sha512-4KOphqB035HrVdqLZfCgMzzERrQkkzOwRhl4OAkRO1YCldbaFjySXMaK534Mo0V+LndnlJk+sbUyLeU0ULyD1A==", + "cpu": [ + "x64" + ], + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-libvips-linuxmusl-x64": "1.3.4" + } + }, + "node_modules/@img/sharp-wasm32": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-wasm32/-/sharp-wasm32-0.35.5.tgz", + "integrity": "sha512-Ptsga1su4tQx+LLF1ECS9U6nz5kmrXKo6XVbtR48Ke3ZRxxgaWBu7IDtEe1quo8hiupwm6WFqxVlXaSf7IINGQ==", + "license": "Apache-2.0 AND LGPL-3.0-or-later AND MIT", + "optional": true, + "dependencies": { + "@emnapi/runtime": "^1.11.3" + }, + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-webcontainers-wasm32": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-webcontainers-wasm32/-/sharp-webcontainers-wasm32-0.35.5.tgz", + "integrity": "sha512-hfhF/FmoQyTUkA0bIKFOtw536BQSeBMe6BF6QyWlrPxT754+TFLaZ7sKKTfvvM0yJgKgaYTwnFCIZ/GuDw5SUA==", + "cpu": [ + "wasm32" + ], + "license": "Apache-2.0", + "optional": true, + "dependencies": { + "@img/sharp-wasm32": "0.35.5" + }, + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-win32-arm64": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-win32-arm64/-/sharp-win32-arm64-0.35.5.tgz", + "integrity": "sha512-X4t7g+7ZA5DKblCBEXGjUqqemj4vczING/5viFwAL8h4N3qYeyjwdCvRLHi4EdOUI+2Z7UFlp1VM+p/AuEtm6Q==", + "cpu": [ + "arm64" + ], + "license": "Apache-2.0 AND LGPL-3.0-or-later", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-win32-ia32": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-win32-ia32/-/sharp-win32-ia32-0.35.5.tgz", + "integrity": "sha512-5Zm82LoBc43nhwNybZlG7Y1KO//Zhsn306fQl29ZOuStHLGTo3BWL83q3cznX0poxSAMuYL1On/BHBxkBeKr6A==", + "cpu": [ + "ia32" + ], + "license": "Apache-2.0 AND LGPL-3.0-or-later", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@img/sharp-win32-x64": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/@img/sharp-win32-x64/-/sharp-win32-x64-0.35.5.tgz", + "integrity": "sha512-x76eH0vEiHlcMQu8Y8IenntaACtddpT6W0wmXtWrnKcnKI7ME5DdgqhAD6SEWOEl1v2zDvkZDhFA9KnURwpfqg==", + "cpu": [ + "x64" + ], + "license": "Apache-2.0 AND LGPL-3.0-or-later", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.6.0.tgz", + "integrity": "sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==", + "license": "MIT" + }, + "node_modules/@napi-rs/wasm-runtime": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.2.7.tgz", + "integrity": "sha512-zJccwplOAbgfZju95IUHazLnx9RAPtPN2YGJXI6UbrgeaR9QfPjGrQL6ERkSAtnVCA4Q+83ApGyaX5zdpCaKkQ==", + "license": "MIT", + "optional": true, + "dependencies": { + "@tybys/wasm-util": "^0.10.3" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=23.5.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Brooooooklyn" + }, + "peerDependencies": { + "@emnapi/core": "^1.7.1 || 2.0.0-beta.2 || 2.0.0-beta.3", + "@emnapi/runtime": "^1.7.1 || 2.0.0-beta.2 || 2.0.0-beta.3" + } + }, + "node_modules/@oslojs/encoding": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@oslojs/encoding/-/encoding-1.1.0.tgz", + "integrity": "sha512-70wQhgYmndg4GCPxPPxPGevRKqTIJ2Nh4OkiMWmDAVYsTQ+Ta7Sq+rPevXyXGdzr30/qZBnyOalCszoMxlyldQ==", + "license": "MIT" + }, + "node_modules/@oxc-project/types": { + "version": "0.156.0", + "resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.156.0.tgz", + "integrity": "sha512-1Duyg48TdJNdyhEB8Xn1L36bT9Pv6GUtlKjHxOys8xkaF/rQq3XJE+bAurSK/AgIz5mGFsb77cn9Pb20+WCScw==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/oxc-project" + } + }, + "node_modules/@rolldown/binding-android-arm-eabi": { + "version": "1.2.19", + "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm-eabi/-/binding-android-arm-eabi-1.2.19.tgz", + "integrity": "sha512-e+Ebe0WT+9tbXmNKPIiC8YrWAHYwug3m6i4p3rZGGulfZri1jtI4HslT+OZnFf/OIHowWF71DTlHwXBP2SiA7A==", + "cpu": [ + "arm" + ], + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-android-arm64": { + "version": "1.2.19", + "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm64/-/binding-android-arm64-1.2.19.tgz", + "integrity": "sha512-hOombrTJ+szt2ciEzS7oCA78lMPBgF5UMQWCJIyNfnrI7GLl8HYoFqCnpL2gcPOaXMqryGCU5ExdQKyDDcC+yA==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-darwin-arm64": { + "version": "1.2.19", + "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-arm64/-/binding-darwin-arm64-1.2.19.tgz", + "integrity": "sha512-XoMA2pwCKGTQzUjPgtRwkedH4WmXhdIPKT6l6oOxd1PUbNodGI6DcBekgN7EC//+x3pfBYX/qL1gNmZAqivw5g==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-darwin-x64": { + "version": "1.2.19", + "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-x64/-/binding-darwin-x64-1.2.19.tgz", + "integrity": "sha512-zo8EsSSwMZCY/e+fRnGaX02YGgvJD0yvhNi/9hpGPA2MJ9ZF8dPCw75UGfpI6OpQ/myR/dIYmogRvqiZD0TrXg==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-freebsd-x64": { + "version": "1.2.19", + "resolved": "https://registry.npmjs.org/@rolldown/binding-freebsd-x64/-/binding-freebsd-x64-1.2.19.tgz", + "integrity": "sha512-O8ISAOfI1nj7AuBPd30FSF47z7f7lzlk5poQVGgiikvQuGEBFYvW8ki+UEnT+YJPnNGjQzn304klt4O9FUE7mA==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-arm-gnueabihf": { + "version": "1.2.19", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.2.19.tgz", + "integrity": "sha512-/lYCba5NO0yq4S0jGMH8QTBtkvQxoXjoQWzF5BcWp9MjB9jxVRD1GQDNofkVjcOj30DWyhLIN/4Oe60JKzaONw==", + "cpu": [ + "arm" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-arm64-gnu": { + "version": "1.2.19", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.2.19.tgz", + "integrity": "sha512-pm/apFMBnSbFb3O6nG5pHO1iqHhZrjGDFEjSm+ot9J17XXPvH9L90y5h+jgfHCE+Qdlsvy8qKEcU4VKxgjD+vA==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-arm64-musl": { + "version": "1.2.19", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.2.19.tgz", + "integrity": "sha512-K1SmQp3FFichn8oqrNIwvFoZ5wcvjC7goBzpaMNvLf9FZc+QB/QvLmnpJZgAAGHiD980tP8FZZnXk2K94rvlxg==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-ppc64-gnu": { + "version": "1.2.19", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.2.19.tgz", + "integrity": "sha512-I0xwD57jP/3A7+5UPZin2w8Y7XHEmEM5zqpYZOcQ45MlNW6tUJUziymV3yRr7rL4vwyfEcRsRksC4a7Kc08p5Q==", + "cpu": [ + "ppc64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-s390x-gnu": { + "version": "1.2.19", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.2.19.tgz", + "integrity": "sha512-BrtEHT24SNXj9HiXqy+s/kXiSiQGt6EKCPUlRirAoIioVxKGnbXBUEkbZASAei7iZJB0/Ynm+0JP00Ipx7AnSw==", + "cpu": [ + "s390x" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-x64-gnu": { + "version": "1.2.19", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.2.19.tgz", + "integrity": "sha512-rm75/9DkHKeU2WnA8w4X94WGYgLlDCFCfkQC+4bguVJmC/jvDRv2B+2wLOYhyE0fVuv7//Ckk39OoOufyCu76Q==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-x64-musl": { + "version": "1.2.19", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-musl/-/binding-linux-x64-musl-1.2.19.tgz", + "integrity": "sha512-irh/4+iYFM4GAzpluDErgjz89bj6NDtqqMAG/6O1LG38Ed3NpyebzCpcVNkFW8uhy+/3/BocUvnXDR33CXWe9A==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-openharmony-arm64": { + "version": "1.2.19", + "resolved": "https://registry.npmjs.org/@rolldown/binding-openharmony-arm64/-/binding-openharmony-arm64-1.2.19.tgz", + "integrity": "sha512-+KWTWNoPt+CfSq94CiceWu3yPE+QzkaG+phPyz9G60tmZLwfQkcA4AeksafzvJAw4pvg1mcd5a1TkUqVv0s4JA==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-wasm32-wasi": { + "version": "1.2.19", + "resolved": "https://registry.npmjs.org/@rolldown/binding-wasm32-wasi/-/binding-wasm32-wasi-1.2.19.tgz", + "integrity": "sha512-7EH+skOsl5qpWnK0vzamgJFhOv1cwxQpsxm8tI883K9fur5c27p8q87fzEO6BbBPabA2/+s/zR63/pLc137iOg==", + "cpu": [ + "wasm32" + ], + "license": "MIT", + "optional": true, + "dependencies": { + "@emnapi/core": "2.0.0-beta.2", + "@emnapi/runtime": "2.0.0-beta.2", + "@napi-rs/wasm-runtime": "1.2.6" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=23.5.0" + } + }, + "node_modules/@rolldown/binding-wasm32-wasi/node_modules/@emnapi/core": { + "version": "2.0.0-beta.2", + "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-2.0.0-beta.2.tgz", + "integrity": "sha512-MzCVoWtcg4Pm2B3je5mMvYMvj3MmBKw+fU7vbsJc9/iT8ip6/eYIHo/Dsm/mr+wsHB6SEyJDuxB09Yy6r/8+4A==", + "license": "MIT", + "optional": true, + "dependencies": { + "@emnapi/wasi-threads": "2.2.0", + "tslib": "^2.4.0" + } + }, + "node_modules/@rolldown/binding-wasm32-wasi/node_modules/@emnapi/runtime": { + "version": "2.0.0-beta.2", + "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-2.0.0-beta.2.tgz", + "integrity": "sha512-JcrSPzPvZuNZvJqPTF9Fw25LbOJ8avzFVlaf2grmH4Cku0oGP47tRgqPZadcfj3YoZMHkFVnCYFbQM8I+i5QEw==", + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@rolldown/binding-wasm32-wasi/node_modules/@emnapi/wasi-threads": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-2.2.0.tgz", + "integrity": "sha512-JP7OYH38Q7+pyTAe14raZHLQIK7BDKbdwji+Xi3pcd/6QkJYQH3SX4wu6EplGrGJWRepoNzedfm0G3B9Z4e9Rw==", + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@rolldown/binding-wasm32-wasi/node_modules/@napi-rs/wasm-runtime": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.2.6.tgz", + "integrity": "sha512-mRyDmEw9/fCDXCGfL1sbgIw/GUK0PVxRW4YwgPN61F3LQ+fSyoBFarJVzgGyhF6kRzEQZ0FejDqm4WLXSeqQmw==", + "license": "MIT", + "optional": true, + "dependencies": { + "@tybys/wasm-util": "^0.10.3" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=23.5.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Brooooooklyn" + }, + "peerDependencies": { + "@emnapi/core": "^1.7.1 || 2.0.0-beta.2", + "@emnapi/runtime": "^1.7.1 || 2.0.0-beta.2" + } + }, + "node_modules/@rolldown/binding-win32-arm64-msvc": { + "version": "1.2.19", + "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.2.19.tgz", + "integrity": "sha512-3Q1Yg1Q7tEvBWoZf5rFvG/GKZQPgwfru+p4wBajDfJFBs0SHCpL++dfTjW9gyAKd1T7ZpIYvdaUax7Pa/IhFVQ==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-win32-x64-msvc": { + "version": "1.2.19", + "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.2.19.tgz", + "integrity": "sha512-y/sqRRc6d7hECzOFc5n3LSeqctmIp9mMjY1Kq4s14uLPd/LZ4z7i1zrW6fMtp2mPeuQIC4e6ULMcwQzMomqQag==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/pluginutils": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.1.1.tgz", + "integrity": "sha512-glFIJDvLNDtJhT9qrMFWLPbvS+skxgt4L0K8Ei2YtnhPysAJnsI7nyxSJxKj4ADeKX0OLjC4ntRkwpLOoS3rwA==", + "license": "MIT" + }, + "node_modules/@shikijs/core": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/@shikijs/core/-/core-4.6.0.tgz", + "integrity": "sha512-bfd4OKgvoyXYiYmMRuleA656P4V7M/Du9lcTl38Ngm6KszMj7bq4J1IGZwSYR4c95Tv5UQALtYNWUwaI9UT3xw==", + "license": "MIT", + "dependencies": { + "@shikijs/primitive": "4.6.0", + "@shikijs/types": "4.6.0", + "@shikijs/vscode-textmate": "^10.1.0", + "@types/hast": "^3.0.5", + "hast-util-to-html": "^9.0.6" + }, + "engines": { + "node": ">=20" + } + }, + "node_modules/@shikijs/engine-javascript": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/@shikijs/engine-javascript/-/engine-javascript-4.6.0.tgz", + "integrity": "sha512-K0oqxFoL+kEMdz89mHLFO15Tsbv3kFZ6WR1cXZKMvLSc+oqaM00A6pyga1qSeXB22dP0tTiSApRcGBaKWsEccg==", + "license": "MIT", + "dependencies": { + "@shikijs/types": "4.6.0", + "@shikijs/vscode-textmate": "^10.1.0", + "oniguruma-to-es": "^4.3.6" + }, + "engines": { + "node": ">=20" + } + }, + "node_modules/@shikijs/engine-oniguruma": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/@shikijs/engine-oniguruma/-/engine-oniguruma-4.6.0.tgz", + "integrity": "sha512-aggd6Q7SuJOXNnsUbfG2XesxBJKBMAw/PDTUo9PyRjMaaJJ2dNrI+q0C+25ARXAK9yLHAlwxc9oRT2u68YKZ7w==", + "license": "MIT", + "dependencies": { + "@shikijs/types": "4.6.0", + "@shikijs/vscode-textmate": "^10.1.0" + }, + "engines": { + "node": ">=20" + } + }, + "node_modules/@shikijs/langs": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/@shikijs/langs/-/langs-4.6.0.tgz", + "integrity": "sha512-1yMEX3oCVV54LUq/ovfpRkDQoYDkcvjSWFFa/YLUDMiSoRzMi2uxLJYbv41ahT8Lu9lFMaa7hecd3Q39trqUyg==", + "license": "MIT", + "dependencies": { + "@shikijs/types": "4.6.0" + }, + "engines": { + "node": ">=20" + } + }, + "node_modules/@shikijs/primitive": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/@shikijs/primitive/-/primitive-4.6.0.tgz", + "integrity": "sha512-c54+TQEo9ToqgfL/AU8FpjnV09+GA9Oa7M5ROkkXteZfp5XzpAJGXjjvZQFQioJOwm/w/6Z3lIzQstAkl8coag==", + "license": "MIT", + "dependencies": { + "@shikijs/types": "4.6.0", + "@shikijs/vscode-textmate": "^10.1.0", + "@types/hast": "^3.0.5" + }, + "engines": { + "node": ">=20" + } + }, + "node_modules/@shikijs/themes": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/@shikijs/themes/-/themes-4.6.0.tgz", + "integrity": "sha512-qHAVAs80RiGD+IRuH9G+JPDOEc9A/kHsng4EzCUCwB9bLzW6Z0y9WETh2YyCcADJBmfrIaJ1Jp7KBNP6FHkgtQ==", + "license": "MIT", + "dependencies": { + "@shikijs/types": "4.6.0" + }, + "engines": { + "node": ">=20" + } + }, + "node_modules/@shikijs/types": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/@shikijs/types/-/types-4.6.0.tgz", + "integrity": "sha512-+ENG1adsKt/X7cRYw1Nl7BEpBmPOjmQ7bR/eGmHuMlT8gtOFf3KEi5l31DJYyAWhW6Y6bjP1plU7FmaxWGENFw==", + "license": "MIT", + "dependencies": { + "@shikijs/vscode-textmate": "^10.1.0", + "@types/hast": "^3.0.5" + }, + "engines": { + "node": ">=20" + } + }, + "node_modules/@shikijs/vscode-textmate": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/@shikijs/vscode-textmate/-/vscode-textmate-10.1.0.tgz", + "integrity": "sha512-cVBuhDQjBZaNMTwBquYfPydrUP+E3hE6oYGasx8h6ZrODIM7/r+gxLDXdd66oszbrggZHEntdE6j+5gYIVyMWQ==", + "license": "MIT" + }, + "node_modules/@tybys/wasm-util": { + "version": "0.10.5", + "resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.5.tgz", + "integrity": "sha512-dOGOPxlaNV+G046mZzN+9C0dAcQZeSKcXiVaM0TYy/LM4ttTmgSBDxYfovcYI8Em3+eAbiAYpvWLOv8+ZVRJKA==", + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@types/estree": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.11.tgz", + "integrity": "sha512-YBdNe5JcjYR0sPhJW1QIeRCmI11YhYvaRuGCs9+WCeTTb+Yhb2BE2XMe5/wAqF10FK5g3+q1PDhQABfT7aX0gg==", + "license": "MIT" + }, + "node_modules/@types/estree-jsx": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/@types/estree-jsx/-/estree-jsx-1.0.5.tgz", + "integrity": "sha512-52CcUVNFyfb1A2ALocQw/Dd1BQFNmSdkuC3BkZ6iqhdMfQz7JWOFRuJFloOzjk+6WijU56m9oKXFAXc7o3Towg==", + "license": "MIT", + "dependencies": { + "@types/estree": "*" + } + }, + "node_modules/@types/hast": { + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/@types/hast/-/hast-3.0.5.tgz", + "integrity": "sha512-rp/ezSWaD1m44dPKICGhiskI13nVr7qTloFwDa/IYkhhf5nzwP+zIQcIJh3WIFSBOy/H1PzB40jPjMDksN4F+g==", + "license": "MIT", + "dependencies": { + "@types/unist": "*" + } + }, + "node_modules/@types/mdast": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-4.0.4.tgz", + "integrity": "sha512-kGaNbPh1k7AFzgpud/gMdvIm5xuECykRR+JnWKQno9TAXVa6WIVCGTPvYGekIDL4uwCZQSYbUxNBSb1aUo79oA==", + "license": "MIT", + "dependencies": { + "@types/unist": "*" + } + }, + "node_modules/@types/nlcst": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@types/nlcst/-/nlcst-2.0.3.tgz", + "integrity": "sha512-vSYNSDe6Ix3q+6Z7ri9lyWqgGhJTmzRjZRqyq15N0Z/1/UnVsno9G/N40NBijoYx2seFDIl0+B2mgAb9mezUCA==", + "license": "MIT", + "dependencies": { + "@types/unist": "*" + } + }, + "node_modules/@types/unist": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.3.tgz", + "integrity": "sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==", + "license": "MIT" + }, + "node_modules/@ungap/structured-clone": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.4.0.tgz", + "integrity": "sha512-1mEZtMKPM09vDmQt5y7YvmN2+DFTP7Tg0EWXdic8/C6VRnpb33e4ghisCIE3WZjsE2N8mf+QV1Zqh7ZFYLWInQ==", + "license": "ISC" + }, + "node_modules/@vue/reactivity": { + "version": "3.5.46", + "resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.5.46.tgz", + "integrity": "sha512-+FHtYTvGxgFoX3oRs7soz6JHizGv50Q26WJN6PWtXuTLXRfkfUpDUTRuoTA/kiZVVt8NMeMpsPQLh9h++ReUjQ==", + "license": "MIT", + "dependencies": { + "@vue/shared": "3.5.46" + } + }, + "node_modules/@vue/shared": { + "version": "3.5.46", + "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.5.46.tgz", + "integrity": "sha512-P1WePbdzHrcIciWtmY2Im9EFhdakd3rZxYqvalOa3SfoxtF35Q8Uhmj1tKn6bWP4utcOpN8ao6BoJUItq0Uf+g==", + "license": "MIT" + }, + "node_modules/ajv": { + "version": "8.20.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.20.0.tgz", + "integrity": "sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==", + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.3", + "fast-uri": "^3.0.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ajv-formats": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-3.0.1.tgz", + "integrity": "sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ==", + "license": "MIT", + "dependencies": { + "ajv": "^8.0.0" + }, + "peerDependencies": { + "ajv": "^8.0.0" + }, + "peerDependenciesMeta": { + "ajv": { + "optional": true + } + } + }, + "node_modules/am-i-vibing": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/am-i-vibing/-/am-i-vibing-0.5.0.tgz", + "integrity": "sha512-KLcsDhqf1XRrJmJr+9I/C0EX2K+sGrAGZFgkmd84c8TJO9zJBu+/kFInjazu1KfJWFhWDKdRWkpBzEs7s35DVA==", + "license": "MIT", + "dependencies": { + "process-ancestry": "^0.1.0" + }, + "bin": { + "am-i-vibing": "dist/cli.mjs" + } + }, + "node_modules/anymatch": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "license": "ISC", + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/anymatch/node_modules/picomatch": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.2.tgz", + "integrity": "sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==", + "license": "MIT", + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/aria-query": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.3.2.tgz", + "integrity": "sha512-COROpnaoap1E2F000S62r6A60uHZnmlvomhfyT2DlTcrY1OrBKn2UhH7qn5wTC9zMvD0AY7csdPSNwKP+7WiQw==", + "license": "Apache-2.0", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/astro": { + "version": "7.4.11", + "resolved": "https://registry.npmjs.org/astro/-/astro-7.4.11.tgz", + "integrity": "sha512-c8gibLFCnzuXCXqsvTiMXbjCnuIjxGhWw6TO5n11cXzNrw36P3ZgBzsOoRUR4raG1r6cKWeE5oXQu4F3GCBofg==", + "license": "MIT", + "dependencies": { + "@astrojs/compiler-rs": "^0.5.2", + "@astrojs/internal-helpers": "0.13.2", + "@astrojs/markdown-satteri": "0.4.9", + "@astrojs/runtime": "0.1.1", + "@astrojs/telemetry": "3.4.2", + "@astrojs/vite-plugin-astro": "0.1.2", + "@capsizecss/unpack": "^4.0.1", + "@clack/prompts": "^1.8.1", + "@oslojs/encoding": "^1.1.0", + "am-i-vibing": "^0.5.0", + "aria-query": "^5.3.2", + "axobject-query": "^4.1.0", + "ci-info": "^4.4.0", + "cookie": "^2.0.2", + "devalue": "^6.0.3", + "diff": "^9.0.0", + "dset": "^3.1.4", + "es-module-lexer": "^3.0.4", + "flattie": "^1.1.1", + "fontace": "~0.4.1", + "get-tsconfig": "5.0.0-beta.6", + "github-slugger": "^2.0.0", + "html-escaper": "3.0.3", + "http-cache-semantics": "^4.3.0", + "jsonc-parser": "^3.3.1", + "magic-string": "^1.4.5", + "magicast": "^0.5.5", + "mri": "^1.2.0", + "mrmime": "^2.0.1", + "neotraverse": "^1.0.1", + "obug": "^3.0.0", + "p-limit": "^7.3.3", + "p-queue": "^10.0.0", + "package-manager-detector": "^1.9.0", + "piccolore": "^0.1.3", + "picomatch": "^4.0.7", + "rolldown": "~1.2.16", + "shiki": "^4.6.0", + "smol-toml": "^1.9.1", + "svgo": "^4.1.0", + "tinyclip": "^1.0.3", + "tinyexec": "^1.3.1", + "tinyglobby": "^0.2.17", + "tinyps": "^0.5.1", + "ultrahtml": "^1.7.0", + "unifont": "^1.0.3", + "unstorage": "^1.17.6", + "verkit": "^0.5.0", + "vite": "^8.3.6", + "vitefu": "^1.1.3", + "xxhash-wasm": "^1.1.0", + "zod": "^4.6.7" + }, + "bin": { + "astro": "bin/astro.mjs" + }, + "engines": { + "node": ">=22.23.4", + "npm": ">=9.6.5", + "pnpm": ">=7.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/astrodotbuild" + }, + "optionalDependencies": { + "sharp": "^0.35.4" + }, + "peerDependencies": { + "@astrojs/markdown-remark": "^7.3.0" + }, + "peerDependenciesMeta": { + "@astrojs/markdown-remark": { + "optional": true + } + } + }, + "node_modules/axobject-query": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-4.1.0.tgz", + "integrity": "sha512-qIj0G9wZbMGNLjLmg1PT6v2mE9AH2zlnADJD/2tC6E00hgmhUOfEB6greHPAfLRSufHqROIUTkw6E+M3lH0PTQ==", + "license": "Apache-2.0", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/bail": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/bail/-/bail-2.0.2.tgz", + "integrity": "sha512-0xO6mYd7JB2YesxDKplafRpsiOzPt9V02ddPCLbY1xYGPOX24NTyN50qnUxgCPcSoYMhKpAuBTjQoRZCAkUDRw==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/boolbase": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz", + "integrity": "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==", + "license": "ISC" + }, + "node_modules/ccount": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/ccount/-/ccount-2.0.1.tgz", + "integrity": "sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/character-entities-html4": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/character-entities-html4/-/character-entities-html4-2.1.0.tgz", + "integrity": "sha512-1v7fgQRj6hnSwFpq1Eu0ynr/CDEw0rXo2B61qXrLNdHZmPKgb7fqS1a2JwF0rISo9q77jDI8VMEHoApn8qDoZA==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/character-entities-legacy": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/character-entities-legacy/-/character-entities-legacy-3.0.0.tgz", + "integrity": "sha512-RpPp0asT/6ufRm//AJVwpViZbGM/MkjQFxJccQRHmISF/22NBtsHqAWmL+/pmkPWoIUJdWyeVleTl1wydHATVQ==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/chokidar": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-5.0.0.tgz", + "integrity": "sha512-TQMmc3w+5AxjpL8iIiwebF73dRDF4fBIieAqGn9RGCWaEVwQ6Fb2cGe31Yns0RRIzii5goJ1Y7xbMwo1TxMplw==", + "license": "MIT", + "dependencies": { + "readdirp": "^5.0.0" + }, + "engines": { + "node": ">= 20.19.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/ci-info": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-4.5.0.tgz", + "integrity": "sha512-d1uM8k5UZEyPza1n/MG3ko8nKupKN0KJpFsipgPcgaCCvV+IqIfJ+NzTjetlLM+UcXZx3+cLrNr76+eAO7G1Mw==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/sibiraj-s" + } + ], + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/clsx": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/clsx/-/clsx-2.1.1.tgz", + "integrity": "sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/comma-separated-tokens": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/comma-separated-tokens/-/comma-separated-tokens-2.0.3.tgz", + "integrity": "sha512-Fu4hJdvzeylCfQPp9SGWidpzrMs7tTrlu6Vb8XGaRGck8QSNZJJp538Wrb60Lax4fPwR64ViY468OIUTbRlGZg==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/commander": { + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-11.1.0.tgz", + "integrity": "sha512-yPVavfyCcRhmorC7rWlkHn15b4wDVgVmBA7kV4QVBsF7kv/9TKJAbAXVTxvTnwP8HHKjRCJDClKbciiYS7p0DQ==", + "license": "MIT", + "engines": { + "node": ">=16" + } + }, + "node_modules/common-ancestor-path": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/common-ancestor-path/-/common-ancestor-path-2.0.0.tgz", + "integrity": "sha512-dnN3ibLeoRf2HNC+OlCiNc5d2zxbLJXOtiZUudNFSXZrNSydxcCsSpRzXwfu7BBWCIfHPw+xTayeBvJCP/D8Ng==", + "license": "BlueOak-1.0.0", + "engines": { + "node": ">= 18" + } + }, + "node_modules/cookie": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-2.0.2.tgz", + "integrity": "sha512-SL0cVuEdETEp7pN0FuZb01toc3vnODEfVUCooxG1SJN0yIirh7JMb9X9bvfCFf0vzzbT68RdbKDHYTiWy7a7iw==", + "license": "MIT", + "engines": { + "node": ">=22" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/cookie-es": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/cookie-es/-/cookie-es-1.2.3.tgz", + "integrity": "sha512-lXVyvUvrNXblMqzIRrxHb57UUVmqsSWlxqt3XIjCkUP0wDAf6uicO6KMbEgYrMNtEvWgWHwe42CKxPu9MYAnWw==", + "license": "MIT" + }, + "node_modules/crossws": { + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/crossws/-/crossws-0.3.5.tgz", + "integrity": "sha512-ojKiDvcmByhwa8YYqbQI/hg7MEU0NC03+pSdEq4ZUnZR9xXpwk7E43SMNGkn+JxJGPFtNvQ48+vV2p+P1ml5PA==", + "license": "MIT", + "dependencies": { + "uncrypto": "^0.1.3" + } + }, + "node_modules/css-select": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/css-select/-/css-select-6.0.0.tgz", + "integrity": "sha512-rZZVSLle8v0+EY8QAkDWrKhpgt6SA5OtHsgBnsj6ZaLb5dmDVOWUDtQitd9ydxxvEjhewNudS6eTVU7uOyzvXw==", + "license": "BSD-2-Clause", + "dependencies": { + "boolbase": "^1.0.0", + "css-what": "^7.0.0", + "domhandler": "^5.0.3", + "domutils": "^3.2.2", + "nth-check": "^2.1.1" + }, + "funding": { + "url": "https://github.com/sponsors/fb55" + } + }, + "node_modules/css-tree": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-3.2.1.tgz", + "integrity": "sha512-X7sjQzceUhu1u7Y/ylrRZFU2FS6LRiFVp6rKLPg23y3x3c3DOKAwuXGDp+PAGjh6CSnCjYeAul8pcT8bAl+lSA==", + "license": "MIT", + "dependencies": { + "mdn-data": "2.27.1", + "source-map-js": "^1.2.1" + }, + "engines": { + "node": "^10 || ^12.20.0 || ^14.13.0 || >=15.0.0" + } + }, + "node_modules/css-what": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/css-what/-/css-what-7.0.0.tgz", + "integrity": "sha512-wD5oz5xibMOPHzy13CyGmogB3phdvcDaB5t0W/Nr5Z2O/agcB8YwOz6e2Lsp10pNDzBoDO9nVa3RGs/2BttpHQ==", + "license": "BSD-2-Clause", + "engines": { + "node": ">= 6" + }, + "funding": { + "url": "https://github.com/sponsors/fb55" + } + }, + "node_modules/csso": { + "version": "5.0.5", + "resolved": "https://registry.npmjs.org/csso/-/csso-5.0.5.tgz", + "integrity": "sha512-0LrrStPOdJj+SPCCrGhzryycLjwcgUSHBtxNA8aIDxf0GLsRh1cKYhB00Gd1lDOS4yGH69+SNn13+TWbVHETFQ==", + "license": "MIT", + "dependencies": { + "css-tree": "~2.2.0" + }, + "engines": { + "node": "^10 || ^12.20.0 || ^14.13.0 || >=15.0.0", + "npm": ">=7.0.0" + } + }, + "node_modules/csso/node_modules/css-tree": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-2.2.1.tgz", + "integrity": "sha512-OA0mILzGc1kCOCSJerOeqDxDQ4HOh+G8NbOJFOTgOCzpw7fCBubk0fEyxp8AgOL/jvLgYA/uV0cMbe43ElF1JA==", + "license": "MIT", + "dependencies": { + "mdn-data": "2.0.28", + "source-map-js": "^1.0.1" + }, + "engines": { + "node": "^10 || ^12.20.0 || ^14.13.0 || >=15.0.0", + "npm": ">=7.0.0" + } + }, + "node_modules/csso/node_modules/mdn-data": { + "version": "2.0.28", + "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.28.tgz", + "integrity": "sha512-aylIc7Z9y4yzHYAJNuESG3hfhC+0Ibp/MAMiaOZgNv4pmEdFyfZhhhny4MNiAfWdBQ1RQ2mfDWmM1x8SvGyp8g==", + "license": "CC0-1.0" + }, + "node_modules/defu": { + "version": "6.1.7", + "resolved": "https://registry.npmjs.org/defu/-/defu-6.1.7.tgz", + "integrity": "sha512-7z22QmUWiQ/2d0KkdYmANbRUVABpZ9SNYyH5vx6PZ+nE5bcC0l7uFvEfHlyld/HcGBFTL536ClDt3DEcSlEJAQ==", + "license": "MIT" + }, + "node_modules/dequal": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz", + "integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/destr": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/destr/-/destr-2.0.5.tgz", + "integrity": "sha512-ugFTXCtDZunbzasqBxrK93Ik/DRYsO6S/fedkWEMKqt04xZ4csmnmwGDBAb07QWNaGMAmnTIemsYZCksjATwsA==", + "license": "MIT" + }, + "node_modules/detect-libc": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz", + "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==", + "license": "Apache-2.0", + "engines": { + "node": ">=8" + } + }, + "node_modules/devalue": { + "version": "6.0.4", + "resolved": "https://registry.npmjs.org/devalue/-/devalue-6.0.4.tgz", + "integrity": "sha512-8L3d5HaKt6/wnWKRtwmJu7qrLM6YiGb6mxktIFfgjQzQzIAR5vAZdHioZv/252Pp4SN/xu47oxe7RlwoZzWTTA==", + "license": "MIT", + "engines": { + "node": ">=18" + } + }, + "node_modules/devlop": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/devlop/-/devlop-1.1.0.tgz", + "integrity": "sha512-RWmIqhcFf1lRYBvNmr7qTNuyCt/7/ns2jbpp1+PalgE/rDQcBT0fioSMUpJ93irlUhC5hrg4cYqe6U+0ImW0rA==", + "license": "MIT", + "dependencies": { + "dequal": "^2.0.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/diff": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/diff/-/diff-9.0.0.tgz", + "integrity": "sha512-svtcdpS8CgJyqAjEQIXdb3OjhFVVYjzGAPO8WGCmRbrml64SPw/jJD4GoE98aR7r25A0XcgrK3F02yw9R/vhQw==", + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.3.1" + } + }, + "node_modules/dom-serializer": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-2.0.0.tgz", + "integrity": "sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg==", + "license": "MIT", + "dependencies": { + "domelementtype": "^2.3.0", + "domhandler": "^5.0.2", + "entities": "^4.2.0" + }, + "funding": { + "url": "https://github.com/cheeriojs/dom-serializer?sponsor=1" + } + }, + "node_modules/domelementtype": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.3.0.tgz", + "integrity": "sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/fb55" + } + ], + "license": "BSD-2-Clause" + }, + "node_modules/domhandler": { + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-5.0.3.tgz", + "integrity": "sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w==", + "license": "BSD-2-Clause", + "dependencies": { + "domelementtype": "^2.3.0" + }, + "engines": { + "node": ">= 4" + }, + "funding": { + "url": "https://github.com/fb55/domhandler?sponsor=1" + } + }, + "node_modules/domutils": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/domutils/-/domutils-3.2.2.tgz", + "integrity": "sha512-6kZKyUajlDuqlHKVX1w7gyslj9MPIXzIFiz/rGu35uC1wMi+kMhQwGhl4lt9unC9Vb9INnY9Z3/ZA3+FhASLaw==", + "license": "BSD-2-Clause", + "dependencies": { + "dom-serializer": "^2.0.0", + "domelementtype": "^2.3.0", + "domhandler": "^5.0.3" + }, + "funding": { + "url": "https://github.com/fb55/domutils?sponsor=1" + } + }, + "node_modules/dset": { + "version": "3.1.4", + "resolved": "https://registry.npmjs.org/dset/-/dset-3.1.4.tgz", + "integrity": "sha512-2QF/g9/zTaPDc3BjNcVTGoBbXBgYfMTTceLaYcFJ/W9kggFUkhxD/hMEeuLKbugyef9SqAx8cpgwlIP/jinUTA==", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/entities": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz", + "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==", + "license": "BSD-2-Clause", + "engines": { + "node": ">=0.12" + }, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, + "node_modules/es-module-lexer": { + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-3.0.5.tgz", + "integrity": "sha512-RNq2lKJw53c7z9QRHeiKeA6Ez0oikOqiBGdmxQhKDxEiOX1g5QJR4IoFVwicn8uCZcRWNrXC3NZaJihgK7aEbg==", + "license": "MIT" + }, + "node_modules/extend": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", + "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", + "license": "MIT" + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "license": "MIT" + }, + "node_modules/fast-string-truncated-width": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/fast-string-truncated-width/-/fast-string-truncated-width-3.0.3.tgz", + "integrity": "sha512-0jjjIEL6+0jag3l2XWWizO64/aZVtpiGE3t0Zgqxv0DPuxiMjvB3M24fCyhZUO4KomJQPj3LTSUnDP3GpdwC0g==", + "license": "MIT" + }, + "node_modules/fast-string-width": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/fast-string-width/-/fast-string-width-3.0.2.tgz", + "integrity": "sha512-gX8LrtNEI5hq8DVUfRQMbr5lpaS4nMIWV+7XEbXk2b8kiQIizgnlr12B4dA3ZEx3308ze0O4Q1R+cHts8kyUJg==", + "license": "MIT", + "dependencies": { + "fast-string-truncated-width": "^3.0.2" + } + }, + "node_modules/fast-uri": { + "version": "3.1.9", + "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.9.tgz", + "integrity": "sha512-hS/0Wt3Ya043oKXs0sIxrMpKQITXhMLIrVAKKXi4gozGC9v7YRWVnXIZzjNPTO02M9BdxLCWqK1yRXgNziVyJQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/fastify" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/fastify" + } + ], + "license": "BSD-3-Clause" + }, + "node_modules/fast-wrap-ansi": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/fast-wrap-ansi/-/fast-wrap-ansi-0.2.2.tgz", + "integrity": "sha512-7F2Fl+TjRSenLqlU3UjSH0iyqopqoZIu7eZVpEirP2g1GtWa2G/ecEmBdgz31+Mxr+ELclgg6sokpSFIQiZ02Q==", + "license": "MIT", + "dependencies": { + "fast-string-width": "^3.0.2" + } + }, + "node_modules/fdir": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", + "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", + "license": "MIT", + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "picomatch": "^3 || ^4" + }, + "peerDependenciesMeta": { + "picomatch": { + "optional": true + } + } + }, + "node_modules/flattie": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/flattie/-/flattie-1.1.1.tgz", + "integrity": "sha512-9UbaD6XdAL97+k/n+N7JwX46K/M6Zc6KcFYskrYL8wbBV/Uyk0CTAMY0VT+qiK5PM7AIc9aTWYtq65U7T+aCNQ==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/fnv1a-64": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/fnv1a-64/-/fnv1a-64-0.1.2.tgz", + "integrity": "sha512-mJbcILTPybAR1jdOwt/lVv8N2cffeJFFP+gVbSAwLEx1ujXH27RpPd8Rokec/KX9c76UYIB6Co+H4lQzxPnJfA==", + "license": "MIT" + }, + "node_modules/fontace": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/fontace/-/fontace-0.4.1.tgz", + "integrity": "sha512-lDMvbAzSnHmbYMTEld5qdtvNH2/pWpICOqpean9IgC7vUbUJc3k+k5Dokp85CegamqQpFbXf0rAVkbzpyTA8aw==", + "license": "MIT", + "dependencies": { + "fontkitten": "^1.0.2" + } + }, + "node_modules/fontkitten": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/fontkitten/-/fontkitten-1.0.3.tgz", + "integrity": "sha512-Wp1zXWPVUPBmfoa3Cqc9ctaKuzKAV6uLstRqlR56kSjplf5uAce+qeyYym7F+PHbGTk+tCEdkCW6RD7DX/gBZw==", + "license": "MIT", + "dependencies": { + "tiny-inflate": "^1.0.3" + }, + "engines": { + "node": ">=20" + } + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/get-tsconfig": { + "version": "5.0.0-beta.6", + "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-5.0.0-beta.6.tgz", + "integrity": "sha512-X6fBC0pmImC70gvX2zm56go9hx0MyoGVdG0tUCkg/D+Xnh5TJsOZ7iDbOdI3PvmtrDxnu1YdDufpK2QJX1Meqw==", + "license": "MIT", + "dependencies": { + "resolve-pkg-maps": "^1.0.0" + }, + "engines": { + "node": ">=20.20.0" + }, + "funding": { + "url": "https://github.com/privatenumber/get-tsconfig?sponsor=1" + } + }, + "node_modules/github-slugger": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/github-slugger/-/github-slugger-2.0.0.tgz", + "integrity": "sha512-IaOQ9puYtjrkq7Y0Ygl9KDZnrf/aiUJYUpVf89y8kyaxbRG7Y1SrX/jaumrv81vc61+kiMempujsM3Yw7w5qcw==", + "license": "ISC" + }, + "node_modules/h3": { + "version": "1.15.11", + "resolved": "https://registry.npmjs.org/h3/-/h3-1.15.11.tgz", + "integrity": "sha512-L3THSe2MPeBwgIZVSH5zLdBBU90TOxarvhK9d04IDY2AmVS8j2Jz2LIWtwsGOU3lu2I5jCN7FNvVfY2+XyF+mg==", + "license": "MIT", + "dependencies": { + "cookie-es": "^1.2.3", + "crossws": "^0.3.5", + "defu": "^6.1.6", + "destr": "^2.0.5", + "iron-webcrypto": "^1.2.1", + "node-mock-http": "^1.0.4", + "radix3": "^1.1.2", + "ufo": "^1.6.3", + "uncrypto": "^0.1.3" + } + }, + "node_modules/hast-util-to-html": { + "version": "9.0.7", + "resolved": "https://registry.npmjs.org/hast-util-to-html/-/hast-util-to-html-9.0.7.tgz", + "integrity": "sha512-HYNDA3qdnzUPitY/LcQm1nWs8z0cWFNH1Nz09jdI/tXifAqF7h3+jrLl4S/b9Mi4VSjn0Dsn54ctuTV6zhBthA==", + "license": "MIT", + "dependencies": { + "@types/hast": "^3.0.0", + "@types/unist": "^3.0.0", + "ccount": "^2.0.0", + "comma-separated-tokens": "^2.0.0", + "hast-util-whitespace": "^3.0.0", + "html-void-elements": "^3.0.0", + "mdast-util-to-hast": "^13.0.0", + "property-information": "^7.0.0", + "space-separated-tokens": "^2.0.0", + "stringify-entities": "^4.0.0", + "zwitch": "^2.0.4" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/hast-util-whitespace": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/hast-util-whitespace/-/hast-util-whitespace-3.0.0.tgz", + "integrity": "sha512-88JUN06ipLwsnv+dVn+OIYOvAuvBMy/Qoi6O7mQHxdPXpjy+Cd6xRkWwux7DKO+4sYILtLBRIKgsdpS2gQc7qw==", + "license": "MIT", + "dependencies": { + "@types/hast": "^3.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/html-escaper": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-3.0.3.tgz", + "integrity": "sha512-RuMffC89BOWQoY0WKGpIhn5gX3iI54O6nRA0yC124NYVtzjmFWBIiFd8M0x+ZdX0P9R4lADg1mgP8C7PxGOWuQ==", + "license": "MIT" + }, + "node_modules/html-void-elements": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/html-void-elements/-/html-void-elements-3.0.0.tgz", + "integrity": "sha512-bEqo66MRXsUGxWHV5IP0PUiAWwoEjba4VCzg0LjFJBpchPaTfyfCKTG6bc5F8ucKec3q5y6qOdGyYTSBEvhCrg==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/http-cache-semantics": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.3.0.tgz", + "integrity": "sha512-M5t5LlJpS1UHMjvwRQVdFHvPISGeLAxNcrWuJkeGh0KxsqCHZ1O3NXZU/8x7cD0BDcGW8kapxMKTvwlqrNkHkA==", + "license": "BSD-2-Clause" + }, + "node_modules/iron-webcrypto": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/iron-webcrypto/-/iron-webcrypto-1.2.1.tgz", + "integrity": "sha512-feOM6FaSr6rEABp/eDfVseKyTMDt+KGpeB35SkVn9Tyn0CqvVsY3EwI0v5i8nMHyJnzCIQf7nsy3p41TPkJZhg==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/brc-dd" + } + }, + "node_modules/is-docker": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-4.0.0.tgz", + "integrity": "sha512-LHE+wROyG/Y/0ZnbktRCoTix2c1RhgWaZraMZ8o1Q7zCh0VSrICJQO5oqIIISrcSBtrXv0o233w1IYwsWCjTzA==", + "license": "MIT", + "bin": { + "is-docker": "cli.js" + }, + "engines": { + "node": ">=20" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-plain-obj": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-4.1.0.tgz", + "integrity": "sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==", + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "license": "MIT" + }, + "node_modules/jsonc-parser": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.3.1.tgz", + "integrity": "sha512-HUgH65KyejrUFPvHFPbqOY0rsFip3Bo5wb4ngvdi1EpCYWUQDC5V+Y7mZws+DLkr4M//zQJoanu1SP+87Dv1oQ==", + "license": "MIT" + }, + "node_modules/lightningcss": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.33.0.tgz", + "integrity": "sha512-WkUDrojuJs0xkgGf2udWxa3yGBRxPtxUkB79i6aCZLRgc7PM8fZe9TosfPDcvEpQZbuFASnHYmRLBLUbmLOIIA==", + "license": "MPL-2.0", + "dependencies": { + "detect-libc": "^2.0.3" + }, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + }, + "optionalDependencies": { + "lightningcss-android-arm64": "1.33.0", + "lightningcss-darwin-arm64": "1.33.0", + "lightningcss-darwin-x64": "1.33.0", + "lightningcss-freebsd-x64": "1.33.0", + "lightningcss-linux-arm-gnueabihf": "1.33.0", + "lightningcss-linux-arm64-gnu": "1.33.0", + "lightningcss-linux-arm64-musl": "1.33.0", + "lightningcss-linux-x64-gnu": "1.33.0", + "lightningcss-linux-x64-musl": "1.33.0", + "lightningcss-win32-arm64-msvc": "1.33.0", + "lightningcss-win32-x64-msvc": "1.33.0" + } + }, + "node_modules/lightningcss-android-arm64": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-android-arm64/-/lightningcss-android-arm64-1.33.0.tgz", + "integrity": "sha512-gEpRTalKdosp4Bb8qWtc2iOgE5SeIHlpS1up9bFq2wAyYhl1UdTObYiHe98zEM9SQvSoqQZ1IQD0JNpg3Ml5pg==", + "cpu": [ + "arm64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-darwin-arm64": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.33.0.tgz", + "integrity": "sha512-Sciaz8eenNTKn9b3t7+xr0ipTp9YxKQY4npwQ3mrRuL0BAVHBLyZxofhaKBAVtzmtRZ/zTyo0/to4B1uWG/Djg==", + "cpu": [ + "arm64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-darwin-x64": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.33.0.tgz", + "integrity": "sha512-Z5UPAxzrjlWNNyGy6i65cJzzvgJ5D3T6wMvs+gWpY9d7qRhANrxqAp6LhxIgZhWEw18RfJTGcRxjuLIBr+m8XQ==", + "cpu": [ + "x64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-freebsd-x64": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.33.0.tgz", + "integrity": "sha512-QQM/Ti/hQajJwCY+RiWuCZ9sdtI/XQk7nDK5vC8kkdwixezOlDgvDx7+RT+QjK6FcFT4MpsuoBnHIo/O3StRRg==", + "cpu": [ + "x64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm-gnueabihf": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.33.0.tgz", + "integrity": "sha512-N7FVBe6iS24MlM6R/4RBTxGhQheZGs7tiQ9U32UtF75NzP5Q7xWPRqLBCKxlRQRk3rY1jCIPLzx7WzOhuUIRLQ==", + "cpu": [ + "arm" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm64-gnu": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.33.0.tgz", + "integrity": "sha512-j2v/itmy4HlNxlc6voKXYgBqNi0Ng2LShg4z7GufpEgs05P+2suBVyi9I6YHq5uoVFx9ETin3eCEhLVyXGQnKg==", + "cpu": [ + "arm64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm64-musl": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.33.0.tgz", + "integrity": "sha512-yiO5ROMuYQgXbC60yjZU5CYSFZGKXL0HFATXt9mHJn1+zW55oCtMI9NfcVhYLMFDL7gV7oBPon/EmMMGg2OvtQ==", + "cpu": [ + "arm64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-x64-gnu": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.33.0.tgz", + "integrity": "sha512-ar+Ju7LmcN0Jo4FpL4hpFybwNG9/3A/Br5KW2n2jyODg3MEZXaDYADdemoNS+BDNfMgKvylJLj4S5tyRActuAg==", + "cpu": [ + "x64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-x64-musl": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.33.0.tgz", + "integrity": "sha512-RYiYbkokw0trfKqqzfF55lginwEPrD3OJDfTuJzFs1MK6iFnDenaz1fqLLtX4ITG3OktJQXOeTaw1awrBAlZPw==", + "cpu": [ + "x64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-win32-arm64-msvc": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.33.0.tgz", + "integrity": "sha512-1K+MPfLSFVpphzpdbfkhlWk6wBrTObBzS2T6db10PNOZgR9GoVsAWzwNyuhUYYbTp23j+4RrncfujZ4uAzXvwA==", + "cpu": [ + "arm64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-win32-x64-msvc": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.33.0.tgz", + "integrity": "sha512-OlEICDx/Xl0FqSp4bry8zFnCvGpig3Gl4gCquvYwHuqJKEC1+n9NgDniFvqHGmMv1ZkqDJrDqKKSykTDX+ehuA==", + "cpu": [ + "x64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lru-cache": { + "version": "11.5.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.5.3.tgz", + "integrity": "sha512-U4N8FgzmWxc8k1VH8Kr6lQg18U7Fjvby6wXHVRX/ZZ7IwWbRMgrRbP0Wrb5q5NVinryp4SQampHKdvtecItxUg==", + "license": "BlueOak-1.0.0", + "engines": { + "node": "20 || >=22" + } + }, + "node_modules/magic-string": { + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-1.4.5.tgz", + "integrity": "sha512-oLLC2+YvQUfAa+vxoufE/yc1icb87M9iXIRqAoR/2EhE/8cb3SF/+Gi0c2By1B+5Vz2e2vQtUvHiu1+63Znh+w==", + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.6.0" + } + }, + "node_modules/magicast": { + "version": "0.5.5", + "resolved": "https://registry.npmjs.org/magicast/-/magicast-0.5.5.tgz", + "integrity": "sha512-UicdXN8zQ3JHlxVq+28afMXPr1z7WNY6+7EJnzTdQWkTAlMLF5fNCCKxJHBQwGaNGR11581EiQmQzx73+MvszA==", + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.29.7", + "@babel/types": "^7.29.7", + "source-map-js": "^1.2.1" + } + }, + "node_modules/mdast-util-to-hast": { + "version": "13.2.2", + "resolved": "https://registry.npmjs.org/mdast-util-to-hast/-/mdast-util-to-hast-13.2.2.tgz", + "integrity": "sha512-l2pnmOuqs+SGLVpTVXnRLQu5v1AzvDe181404fbXzzqObVxrAnnVxapAP27pUwzLBL/ABIkgUhGlPVU7QSvIFg==", + "license": "MIT", + "dependencies": { + "@types/hast": "^3.0.0", + "@types/mdast": "^4.0.0", + "@ungap/structured-clone": "^1.0.0", + "devlop": "^1.0.0", + "micromark-util-sanitize-uri": "^2.0.0", + "trim-lines": "^3.0.0", + "unist-util-position": "^5.0.0", + "unist-util-visit": "^5.0.0", + "vfile": "^6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdn-data": { + "version": "2.27.1", + "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.27.1.tgz", + "integrity": "sha512-9Yubnt3e8A0OKwxYSXyhLymGW4sCufcLG6VdiDdUGVkPhpqLxlvP5vl1983gQjJl3tqbrM731mjaZaP68AgosQ==", + "license": "CC0-1.0" + }, + "node_modules/micromark-util-character": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-2.1.1.tgz", + "integrity": "sha512-wv8tdUTJ3thSFFFJKtpYKOYiGP2+v96Hvk4Tu8KpCAsTMs6yi+nVmGh1syvSCsaxz45J6Jbw+9DD6g97+NV67Q==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-util-encode": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-encode/-/micromark-util-encode-2.0.1.tgz", + "integrity": "sha512-c3cVx2y4KqUnwopcO9b/SCdo2O67LwJJ/UyqGfbigahfegL9myoEFoDYZgkT7f36T0bLrM9hZTAaAyH+PCAXjw==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT" + }, + "node_modules/micromark-util-sanitize-uri": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-sanitize-uri/-/micromark-util-sanitize-uri-2.0.1.tgz", + "integrity": "sha512-9N9IomZ/YuGGZZmQec1MbgxtlgougxTodVwDzzEouPKo3qFWvymFHWcnDi2vzV1ff6kas9ucW+o3yzJK9YB1AQ==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-character": "^2.0.0", + "micromark-util-encode": "^2.0.0", + "micromark-util-symbol": "^2.0.0" + } + }, + "node_modules/micromark-util-symbol": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-2.0.1.tgz", + "integrity": "sha512-vs5t8Apaud9N28kgCrRUdEed4UJ+wWNvicHLPxCa9ENlYuAY31M0ETy5y1vA33YoNPDFTghEbnh6efaE8h4x0Q==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT" + }, + "node_modules/micromark-util-types": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/micromark-util-types/-/micromark-util-types-2.0.3.tgz", + "integrity": "sha512-oxB2Ik03hI0gv+VNn9tnh1t1YEe9MDPptViAEgfdf3YQHsn0pzGTgCdlSCJXcwhqm8phaEuM7zeEu3QQzVBrPg==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT" + }, + "node_modules/mri": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/mri/-/mri-1.2.0.tgz", + "integrity": "sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/mrmime": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/mrmime/-/mrmime-2.0.1.tgz", + "integrity": "sha512-Y3wQdFg2Va6etvQ5I82yUhGdsKrcYox6p7FfL1LbK2J4V01F9TGlepTIhnK24t7koZibmg82KGglhA1XK5IsLQ==", + "license": "MIT", + "engines": { + "node": ">=10" + } + }, + "node_modules/nanoid": { + "version": "3.3.20", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.20.tgz", + "integrity": "sha512-uKdg2G3GNCKQn9byYOpxbGqrT2fGO5KRt5J/8b3pok8rT6qxGWF6hxMyJiEYtAf+FVyYuD9hRaDqX5uPFYJ4ZQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/napi-windows-process-start-time": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/napi-windows-process-start-time/-/napi-windows-process-start-time-0.1.0.tgz", + "integrity": "sha512-zHxhzKsIFu3elch3eFw69WEUGc79DFhbc3nD/WEOzWL/pFFLZRW13EHnuO0c+0YjncE5uCaS9ICHxOBXkb6vPw==", + "cpu": [ + "x64", + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=20" + } + }, + "node_modules/neotraverse": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/neotraverse/-/neotraverse-1.0.2.tgz", + "integrity": "sha512-DLMUFnyCrRAncRJhDC2yNbSTcpEukp+nczID/na3XdIHQFokPveK69xel642cQHgUGszctsOSeCePqPpY25W6Q==", + "license": "MIT", + "engines": { + "node": ">= 10" + } + }, + "node_modules/nlcst-to-string": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/nlcst-to-string/-/nlcst-to-string-4.0.0.tgz", + "integrity": "sha512-YKLBCcUYKAg0FNlOBT6aI91qFmSiFKiluk655WzPF+DDMA02qIyy8uiRqI8QXtcFpEvll12LpL5MXqEmAZ+dcA==", + "license": "MIT", + "dependencies": { + "@types/nlcst": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/node-fetch-native": { + "version": "1.6.7", + "resolved": "https://registry.npmjs.org/node-fetch-native/-/node-fetch-native-1.6.7.tgz", + "integrity": "sha512-g9yhqoedzIUm0nTnTqAQvueMPVOuIY16bqgAJJC8XOOubYFNwz6IER9qs0Gq2Xd0+CecCKFjtdDTMA4u4xG06Q==", + "license": "MIT" + }, + "node_modules/node-mock-http": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/node-mock-http/-/node-mock-http-1.0.5.tgz", + "integrity": "sha512-KQyt/wLjG3TAc7DOUhpqWzgd4ERxR80JOlTK5VE5R1S12IaPVN5qkj4klBce9HPG1Njuup4Sb5bljaT34lIyjw==", + "license": "MIT" + }, + "node_modules/normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/nth-check": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz", + "integrity": "sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==", + "license": "BSD-2-Clause", + "dependencies": { + "boolbase": "^1.0.0" + }, + "funding": { + "url": "https://github.com/fb55/nth-check?sponsor=1" + } + }, + "node_modules/obug": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/obug/-/obug-3.0.0.tgz", + "integrity": "sha512-5vvB5+W7ePv+p3uqxi+RcW1XAzLW0/hxt3/4X4Lc4qHudzOhmBiBwOY6DRob4WnanAEGvNcLjF+KNOufrUoEQw==", + "funding": [ + "https://github.com/sponsors/sxzz", + "https://opencollective.com/debug" + ], + "license": "MIT", + "engines": { + "node": ">=12.20.0" + } + }, + "node_modules/ofetch": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/ofetch/-/ofetch-1.5.1.tgz", + "integrity": "sha512-2W4oUZlVaqAPAil6FUg/difl6YhqhUR7x2eZY4bQCko22UXg3hptq9KLQdqFClV+Wu85UX7hNtdGTngi/1BxcA==", + "license": "MIT", + "dependencies": { + "destr": "^2.0.5", + "node-fetch-native": "^1.6.7", + "ufo": "^1.6.1" + } + }, + "node_modules/oniguruma-parser": { + "version": "0.12.2", + "resolved": "https://registry.npmjs.org/oniguruma-parser/-/oniguruma-parser-0.12.2.tgz", + "integrity": "sha512-6HVa5oIrgMC6aA6WF6XyyqbhRPJrKR02L20+2+zpDtO5QAzGHAUGw5TKQvwi5vctNnRHkJYmjAhRVQF2EKdTQw==", + "license": "MIT" + }, + "node_modules/oniguruma-to-es": { + "version": "4.3.6", + "resolved": "https://registry.npmjs.org/oniguruma-to-es/-/oniguruma-to-es-4.3.6.tgz", + "integrity": "sha512-csuQ9x3Yr0cEIs/Zgx/OEt9iBw9vqIunAPQkx19R/fiMq2oGVTgcMqO/V3Ybqefr1TBvosI6jU539ksaBULJyA==", + "license": "MIT", + "dependencies": { + "oniguruma-parser": "^0.12.2", + "regex": "^6.1.0", + "regex-recursion": "^6.0.2" + } + }, + "node_modules/p-limit": { + "version": "7.3.3", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-7.3.3.tgz", + "integrity": "sha512-SKgVvDU5TNIxQ4r30U75BNLC6a+6GOEjngrk/ysM5+Zu3oJuk1SC5ApzIzY/7PjCEjoVPMWJ0zho/4QUiEB7TQ==", + "license": "MIT", + "dependencies": { + "yocto-queue": "^1.2.1" + }, + "engines": { + "node": ">=20" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-queue": { + "version": "10.0.0", + "resolved": "https://registry.npmjs.org/p-queue/-/p-queue-10.0.0.tgz", + "integrity": "sha512-P2wrCri3bhGLPo3kX7qYVXbo/5GvaVATU0DpO24CbeT53Y4z35t8JUWku04ERpXHUYB5rPMi3TkWE3fmJgx5rA==", + "license": "MIT", + "engines": { + "node": ">=22" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/package-manager-detector": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/package-manager-detector/-/package-manager-detector-1.9.0.tgz", + "integrity": "sha512-zAMfbta9nPA8AKkA4WdmNAT8R8s6Dk0/xwPsqNnRidMFcLo1YkLuPDTgs2f64XdzS8vbLNnoJ+uUIkgbz7oRHA==", + "license": "MIT" + }, + "node_modules/piccolore": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/piccolore/-/piccolore-0.1.3.tgz", + "integrity": "sha512-o8bTeDWjE086iwKrROaDf31K0qC/BENdm15/uH9usSC/uZjJOKb2YGiVHfLY4GhwsERiPI1jmwI2XrA7ACOxVw==", + "license": "ISC" + }, + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "license": "ISC" + }, + "node_modules/picomatch": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz", + "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==", + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/postcss": { + "version": "8.5.34", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.34.tgz", + "integrity": "sha512-P1Qzj0XXZjMda74C7qiVnBG90UKNbyNUAOeQRBW8X63RsIMV57gevRqjnkELdwtZ/S2/uQFksJhmwuN8xShLPw==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "nanoid": "^3.3.20", + "picocolors": "^1.1.1", + "source-map-js": "^1.2.4" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/prismjs": { + "version": "1.30.0", + "resolved": "https://registry.npmjs.org/prismjs/-/prismjs-1.30.0.tgz", + "integrity": "sha512-DEvV2ZF2r2/63V+tK8hQvrR2ZGn10srHbXviTlcv7Kpzw8jWiNTqbVgjO3IY8RxrrOUF8VPMQQFysYYYv0YZxw==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/process-ancestry": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/process-ancestry/-/process-ancestry-0.1.0.tgz", + "integrity": "sha512-tGqJW/UnclpYASFcM6Xh8D8l/BMtaQ9+CSG0vlJSJTcdMM4lDRv4c6H0Pdcsfted+bVczdYSfk2fdukg2gQkZg==", + "license": "MIT", + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/property-information": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/property-information/-/property-information-7.2.0.tgz", + "integrity": "sha512-IAtzIB6sUiWaJYrX9smp3V46pBGbBeLFRGdh25kg1334VcBlD8HzhPeNIWQH9zhGmo2itIe25EHt9dQP7G5hmg==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/radix3": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/radix3/-/radix3-1.1.2.tgz", + "integrity": "sha512-b484I/7b8rDEdSDKckSSBA8knMpcdsXudlE/LNL639wFoHKwLbEkQFZHWEYwDC0wa0FKUcCY+GAF73Z7wxNVFA==", + "license": "MIT" + }, + "node_modules/readdirp": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-5.1.1.tgz", + "integrity": "sha512-Kko+Y5XQ6fM+Ce3dq3m9YGxnacYZYl9cA1wZjaF3Vbry2L3i1qVg8+CAgNPsXRArPMUMCaOR7oa9Nqntc43JKA==", + "license": "MIT", + "engines": { + "node": ">= 20.19.0" + }, + "funding": { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/regex": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/regex/-/regex-6.1.0.tgz", + "integrity": "sha512-6VwtthbV4o/7+OaAF9I5L5V3llLEsoPyq9P1JVXkedTP33c7MfCG0/5NOPcSJn0TzXcG9YUrR0gQSWioew3LDg==", + "license": "MIT", + "dependencies": { + "regex-utilities": "^2.3.0" + } + }, + "node_modules/regex-recursion": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/regex-recursion/-/regex-recursion-6.0.2.tgz", + "integrity": "sha512-0YCaSCq2VRIebiaUviZNs0cBz1kg5kVS2UKUfNIx8YVs1cN3AV7NTctO5FOKBA+UT2BPJIWZauYHPqJODG50cg==", + "license": "MIT", + "dependencies": { + "regex-utilities": "^2.3.0" + } + }, + "node_modules/regex-utilities": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/regex-utilities/-/regex-utilities-2.3.0.tgz", + "integrity": "sha512-8VhliFJAWRaUiVvREIiW2NXXTmHs4vMNnSzuJVhscgmGav3g9VDxLrQndI3dZZVVdp0ZO/5v0xmX516/7M9cng==", + "license": "MIT" + }, + "node_modules/require-from-string": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", + "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/resolve-pkg-maps": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz", + "integrity": "sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==", + "license": "MIT", + "funding": { + "url": "https://github.com/privatenumber/resolve-pkg-maps?sponsor=1" + } + }, + "node_modules/retext-smartypants": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/retext-smartypants/-/retext-smartypants-6.2.0.tgz", + "integrity": "sha512-kk0jOU7+zGv//kfjXEBjdIryL1Acl4i9XNkHxtM7Tm5lFiCog576fjNC9hjoR7LTKQ0DsPWy09JummSsH1uqfQ==", + "license": "MIT", + "dependencies": { + "@types/nlcst": "^2.0.0", + "nlcst-to-string": "^4.0.0", + "unist-util-visit": "^5.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/rolldown": { + "version": "1.2.19", + "resolved": "https://registry.npmjs.org/rolldown/-/rolldown-1.2.19.tgz", + "integrity": "sha512-QIiV1J9d0pzN4jeeTH4sjPy0AZ6cAy2cG0ExeoE1+U8Rvj+hR3gYkokx0YbeUNGlZqiQJJ2utcETe0oKXwzsuA==", + "license": "MIT", + "dependencies": { + "@oxc-project/types": "=0.156.0", + "@rolldown/pluginutils": "^1.0.0" + }, + "bin": { + "rolldown": "bin/cli.mjs" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "optionalDependencies": { + "@rolldown/binding-android-arm-eabi": "1.2.19", + "@rolldown/binding-android-arm64": "1.2.19", + "@rolldown/binding-darwin-arm64": "1.2.19", + "@rolldown/binding-darwin-x64": "1.2.19", + "@rolldown/binding-freebsd-x64": "1.2.19", + "@rolldown/binding-linux-arm-gnueabihf": "1.2.19", + "@rolldown/binding-linux-arm64-gnu": "1.2.19", + "@rolldown/binding-linux-arm64-musl": "1.2.19", + "@rolldown/binding-linux-ppc64-gnu": "1.2.19", + "@rolldown/binding-linux-s390x-gnu": "1.2.19", + "@rolldown/binding-linux-x64-gnu": "1.2.19", + "@rolldown/binding-linux-x64-musl": "1.2.19", + "@rolldown/binding-openharmony-arm64": "1.2.19", + "@rolldown/binding-wasm32-wasi": "1.2.19", + "@rolldown/binding-win32-arm64-msvc": "1.2.19", + "@rolldown/binding-win32-x64-msvc": "1.2.19" + } + }, + "node_modules/satteri": { + "version": "0.11.7", + "resolved": "https://registry.npmjs.org/satteri/-/satteri-0.11.7.tgz", + "integrity": "sha512-xDOSxkc1ew3z3IovIjmsqJaVHRXTGYJkPvx0LL/U6o90km8kSU+pmrZVvnWd5creJeE0UnvMEienlkPuYQdJaA==", + "license": "MIT", + "dependencies": { + "@types/estree-jsx": "^1.0.5", + "@types/hast": "^3.0.5", + "@types/mdast": "^4.0.4", + "@types/unist": "^3.0.3" + }, + "optionalDependencies": { + "@bruits/satteri-android-arm64": "0.11.7", + "@bruits/satteri-darwin-arm64": "0.11.7", + "@bruits/satteri-darwin-x64": "0.11.7", + "@bruits/satteri-freebsd-x64": "0.11.7", + "@bruits/satteri-linux-arm64-gnu": "0.11.7", + "@bruits/satteri-linux-arm64-musl": "0.11.7", + "@bruits/satteri-linux-x64-gnu": "0.11.7", + "@bruits/satteri-linux-x64-musl": "0.11.7", + "@bruits/satteri-wasm32-wasi": "0.11.7", + "@bruits/satteri-win32-arm64-msvc": "0.11.7", + "@bruits/satteri-win32-x64-msvc": "0.11.7" + } + }, + "node_modules/sax": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/sax/-/sax-1.6.1.tgz", + "integrity": "sha512-42tBVwLWnaQvW5zc4HbZrTuWccECCZfBi92FDuwtqxasH+JbPB3/FOKb1m222K42R4WxuxzzMsTswfzgtSu64Q==", + "license": "BlueOak-1.0.0", + "engines": { + "node": ">=11.0.0" + } + }, + "node_modules/semver": { + "version": "7.8.6", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.6.tgz", + "integrity": "sha512-9lpSSU4Mly3mrtruwLs1eLK6+gzbzqeBFwRNjIjE+9LuDpWdYctrQlQ3ej1Ilgi7gknpsTRnPoLP8DpCHqHIJw==", + "license": "ISC", + "optional": true, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/sharp": { + "version": "0.35.5", + "resolved": "https://registry.npmjs.org/sharp/-/sharp-0.35.5.tgz", + "integrity": "sha512-Ywn4OnzGukp7CDMrp08RQ50YKmuwG47brZgIVPTvBaaAfQlRlygrRqSrxdCiL9M+LlzLBiJ68IR1QqvzHyjC7g==", + "license": "Apache-2.0", + "optional": true, + "dependencies": { + "@img/colour": "^1.1.0", + "detect-libc": "^2.1.2", + "semver": "^7.8.5" + }, + "engines": { + "node": ">=20.9.0" + }, + "funding": { + "url": "https://opencollective.com/libvips" + }, + "optionalDependencies": { + "@img/sharp-darwin-arm64": "0.35.5", + "@img/sharp-darwin-x64": "0.35.5", + "@img/sharp-freebsd-wasm32": "0.35.5", + "@img/sharp-libvips-darwin-arm64": "1.3.4", + "@img/sharp-libvips-darwin-x64": "1.3.4", + "@img/sharp-libvips-linux-arm": "1.3.4", + "@img/sharp-libvips-linux-arm64": "1.3.4", + "@img/sharp-libvips-linux-ppc64": "1.3.4", + "@img/sharp-libvips-linux-riscv64": "1.3.4", + "@img/sharp-libvips-linux-s390x": "1.3.4", + "@img/sharp-libvips-linux-x64": "1.3.4", + "@img/sharp-libvips-linuxmusl-arm64": "1.3.4", + "@img/sharp-libvips-linuxmusl-x64": "1.3.4", + "@img/sharp-linux-arm": "0.35.5", + "@img/sharp-linux-arm64": "0.35.5", + "@img/sharp-linux-ppc64": "0.35.5", + "@img/sharp-linux-riscv64": "0.35.5", + "@img/sharp-linux-s390x": "0.35.5", + "@img/sharp-linux-x64": "0.35.5", + "@img/sharp-linuxmusl-arm64": "0.35.5", + "@img/sharp-linuxmusl-x64": "0.35.5", + "@img/sharp-webcontainers-wasm32": "0.35.5", + "@img/sharp-win32-arm64": "0.35.5", + "@img/sharp-win32-ia32": "0.35.5", + "@img/sharp-win32-x64": "0.35.5" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } + } + }, + "node_modules/shiki": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/shiki/-/shiki-4.6.0.tgz", + "integrity": "sha512-imjLsVHgPuWhvpU3P+zOekvMYqnel7QmKsFC4Sn0fCuAvaaalBsxwKEsrU8Ko5BdFnZA6Go/8a0RzahS634UgA==", + "license": "MIT", + "dependencies": { + "@shikijs/core": "4.6.0", + "@shikijs/engine-javascript": "4.6.0", + "@shikijs/engine-oniguruma": "4.6.0", + "@shikijs/langs": "4.6.0", + "@shikijs/themes": "4.6.0", + "@shikijs/types": "4.6.0", + "@shikijs/vscode-textmate": "^10.1.0", + "@types/hast": "^3.0.5" + }, + "engines": { + "node": ">=20" + } + }, + "node_modules/sisteransi": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-2.0.0.tgz", + "integrity": "sha512-2WCqLdt12eN6ehLI50S2/ZxoowXU3DD1KVPRyVP0WEsFahrGZZmCdq1K59qjJljMRIDTwx1D9YaRK+hDneBUMg==", + "license": "MIT", + "engines": { + "node": ">=20" + } + }, + "node_modules/smol-toml": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/smol-toml/-/smol-toml-1.9.1.tgz", + "integrity": "sha512-j7WyPdf0CJoutMzMoPLF/bVXHtKZIT9Rb4eGeEbWw8X2t5oirjPgpL+OpaENZrILYaXqYwnVH+qgUwVbl+pUJQ==", + "license": "BSD-3-Clause", + "engines": { + "node": ">= 18" + }, + "funding": { + "url": "https://github.com/sponsors/cyyynthia" + } + }, + "node_modules/source-map-js": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.4.tgz", + "integrity": "sha512-J7ZjMvHd9O1fcT/5V09QWaaSl2BbWx3F6O08spde82Namf9UB0GxRVIPiNbVsdKkoizHiSpTodo3vp2bAy91MA==", + "license": "BSD-3-Clause", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/space-separated-tokens": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/space-separated-tokens/-/space-separated-tokens-2.0.2.tgz", + "integrity": "sha512-PEGlAwrG8yXGXRjW32fGbg66JAlOAwbObuqVoJpv/mRgoWDQfgH1wDPvtzWyUSNAXBGSk8h755YDbbcEy3SH2Q==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/std-env": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/std-env/-/std-env-4.3.0.tgz", + "integrity": "sha512-OtU/EgQ1kIm5KwqQpBC6ZEMXrZRui11w8zgfTWp8cdO9B8OaPsbA8bTHO2P+HNo1VlUTGMVBwPhydu6poeXiag==", + "license": "MIT" + }, + "node_modules/stringify-entities": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/stringify-entities/-/stringify-entities-4.0.5.tgz", + "integrity": "sha512-jNuI2fNNw5ecxrWmgm90R3iH0Kc/94AQwoQWoSUYphWzvmUA2pjFG34H56Z7Z3FkvH3FpYwwewKAa97oQnPFhw==", + "license": "MIT", + "dependencies": { + "character-entities-html4": "^2.0.0", + "character-entities-legacy": "^3.0.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/svgo": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/svgo/-/svgo-4.1.0.tgz", + "integrity": "sha512-bkxnTg1kSU0guhIBmibA6UUhrQmPVA1XsQLN+ylCd+UWzbnLkySOcXpyk1mrl05f+pcaCx2eHb+sp6BgMZWX+Q==", + "license": "MIT", + "dependencies": { + "commander": "^11.1.0", + "css-select": "^6.0.0", + "css-tree": "^3.0.1", + "css-what": "^7.0.0", + "csso": "^5.0.5", + "picocolors": "^1.1.1", + "sax": "1.6.1" + }, + "bin": { + "svgo": "bin/svgo.js" + }, + "engines": { + "node": ">=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/svgo" + } + }, + "node_modules/tiny-inflate": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/tiny-inflate/-/tiny-inflate-1.0.3.tgz", + "integrity": "sha512-pkY1fj1cKHb2seWDy0B16HeWyczlJA9/WW3u3c4z/NiWDsO3DOU5D7nhTLE9CF0yXv/QZFY7sEJmj24dK+Rrqw==", + "license": "MIT" + }, + "node_modules/tinyclip": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/tinyclip/-/tinyclip-1.0.3.tgz", + "integrity": "sha512-nTv2raKFMzGG6JJp0lpNDsRPdfFE6UHlu2rVEjXo8vkx1ZS3LW2CVXqIaLu8xZlu+6tbFs9V58Qc/Jmk/Ii7wA==", + "license": "MIT", + "engines": { + "node": "^16.14.0 || >= 17.3.0" + } + }, + "node_modules/tinyexec": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-1.4.0.tgz", + "integrity": "sha512-PV6lIcJQh57aFeJDwx16JNHmgFRh5xguzallrDW1qe8nAghYgr5MKz2K5k7wEyV/ygZhdnIAP8+HZSarHPBCsg==", + "license": "MIT", + "engines": { + "node": ">=18" + } + }, + "node_modules/tinyglobby": { + "version": "0.2.17", + "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.17.tgz", + "integrity": "sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==", + "license": "MIT", + "dependencies": { + "fdir": "^6.5.0", + "picomatch": "^4.0.4" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/SuperchupuDev" + } + }, + "node_modules/tinyps": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/tinyps/-/tinyps-0.5.2.tgz", + "integrity": "sha512-sYhvdbpuo2rGE7u/jPUMiZz4H2LCaOodUtRD9ot4DLNFQbr884g9zozoJnxLI+1r4hXqWkmdHUl8Yig2Rllxxw==", + "license": "MIT" + }, + "node_modules/trim-lines": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/trim-lines/-/trim-lines-3.0.1.tgz", + "integrity": "sha512-kRj8B+YHZCc9kQYdWfJB2/oUl9rA99qbowYYBtr4ui4mZyAQ2JpvVBd/6U2YloATfqBhBTSMhTpgBHtU0Mf3Rg==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/trough": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/trough/-/trough-2.2.0.tgz", + "integrity": "sha512-tmMpK00BjZiUyVyvrBK7knerNgmgvcV/KLVyuma/SC+TQN167GrMRciANTz09+k3zW8L8t60jWO1GpfkZdjTaw==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/tslib": { + "version": "2.9.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.9.1.tgz", + "integrity": "sha512-a4Ux9VKuIMHsOS7ENbEq6hK2ZGYIT27Rtl0E4eD9KqwxhKiQeMZE/9xb3IdYwWaSOyIBQLExhQgXDTYoiCxnWA==", + "license": "0BSD", + "optional": true + }, + "node_modules/ufo": { + "version": "1.6.4", + "resolved": "https://registry.npmjs.org/ufo/-/ufo-1.6.4.tgz", + "integrity": "sha512-JFNbkD1Svwe0KvGi8GOeLcP4kAWQ609twvCdcHxq1oSL8svv39ZuSvajcD8B+5D0eL4+s1Is2D/O6KN3qcTeRA==", + "license": "MIT" + }, + "node_modules/ultrahtml": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/ultrahtml/-/ultrahtml-1.7.0.tgz", + "integrity": "sha512-2xRd0VHoAQE4M+vF/DvFFB7pUV0ZxTW1TLi7lHQWnF/Sb5TPeEUV/l+hxcNnGO00ZXGnR0voCMmYRKQf+rvJ2g==", + "license": "MIT" + }, + "node_modules/uncrypto": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/uncrypto/-/uncrypto-0.1.3.tgz", + "integrity": "sha512-Ql87qFHB3s/De2ClA9e0gsnS6zXG27SkTiSJwjCc9MebbfapQfuPzumMIUMi38ezPZVNFcHI9sUIepeQfw8J8Q==", + "license": "MIT" + }, + "node_modules/undici": { + "version": "8.13.1", + "resolved": "https://registry.npmjs.org/undici/-/undici-8.13.1.tgz", + "integrity": "sha512-Kt7EaPjh0s93lJH/PmW3d5rhkcpUa6fS3jqZ7+YGxNd9L7Xy/i827xe4C2uhhq+pJebM4tQOl5AgHmW11G5Skg==", + "license": "MIT", + "engines": { + "node": ">=22.19.0" + } + }, + "node_modules/unified": { + "version": "11.0.5", + "resolved": "https://registry.npmjs.org/unified/-/unified-11.0.5.tgz", + "integrity": "sha512-xKvGhPWw3k84Qjh8bI3ZeJjqnyadK+GEFtazSfZv/rKeTkTjOJho6mFqh2SM96iIcZokxiOpg78GazTSg8+KHA==", + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0", + "bail": "^2.0.0", + "devlop": "^1.0.0", + "extend": "^3.0.0", + "is-plain-obj": "^4.0.0", + "trough": "^2.0.0", + "vfile": "^6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/unifont": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/unifont/-/unifont-1.0.3.tgz", + "integrity": "sha512-XGnEwj5sWdCbiBX01mWLSBncS0yMRjnLygau3IfdOlfjMacNIQvTGW4VH7pWBq+gGWArfSef/CensMLjMmIr/A==", + "license": "MIT", + "dependencies": { + "css-tree": "^3.1.0", + "fnv1a-64": "^0.1.2", + "std-env": "^4.2.0", + "undici": "^8.0.0" + } + }, + "node_modules/unist-util-is": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-6.0.1.tgz", + "integrity": "sha512-LsiILbtBETkDz8I9p1dQ0uyRUWuaQzd/cuEeS1hoRSyW5E5XGmTzlwY1OrNzzakGowI9Dr/I8HVaw4hTtnxy8g==", + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/unist-util-position": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/unist-util-position/-/unist-util-position-5.0.0.tgz", + "integrity": "sha512-fucsC7HjXvkB5R3kTCO7kUjRdrS0BJt3M/FPxmHMBOm8JQi2BsHAHFsy27E0EolP8rp0NzXsJ+jNPyDWvOJZPA==", + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/unist-util-stringify-position": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/unist-util-stringify-position/-/unist-util-stringify-position-4.0.0.tgz", + "integrity": "sha512-0ASV06AAoKCDkS2+xw5RXJywruurpbC4JZSm7nr7MOt1ojAzvyyaO+UxZf18j8FCF6kmzCZKcAgN/yu2gm2XgQ==", + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/unist-util-visit": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-5.2.0.tgz", + "integrity": "sha512-fpsYs/VVoZxfGY9/j3FQpZmN8wdLJaV1Pt38AaJNZu9uKIHcFU3halCdBveEq1HGKO1OEfJY65w1zvoFV1b3qQ==", + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0", + "unist-util-is": "^6.0.0", + "unist-util-visit-parents": "^6.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/unist-util-visit-parents": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-6.1.0.tgz", + "integrity": "sha512-vKXxz6O38sKDj1mtx/k2cWvkkFBuYGx6uGrlzBkVeWCRF/F8sdI0j3Wbkz/5rVNRRuVc8UrgRdbCxNhmYXgP3w==", + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0", + "unist-util-is": "^6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/unstorage": { + "version": "1.17.6", + "resolved": "https://registry.npmjs.org/unstorage/-/unstorage-1.17.6.tgz", + "integrity": "sha512-gjKtcmn/KwZuJZO9o2sc0esAQnhmTw0LviDHwevTXbJMYs0dRTp8ZEEWXHU0vTpzbN3cA0yxlTeyXssMp3zDqw==", + "license": "MIT", + "dependencies": { + "anymatch": "^3.1.3", + "chokidar": "^5.0.0", + "destr": "^2.0.5", + "h3": "^1.15.11", + "lru-cache": "^11.5.3", + "node-fetch-native": "^1.6.7", + "ofetch": "^1.5.1", + "ufo": "^1.6.4" + }, + "peerDependencies": { + "@azure/app-configuration": "^1.8.0", + "@azure/cosmos": "^4.2.0", + "@azure/data-tables": "^13.3.0", + "@azure/identity": "^4.6.0", + "@azure/keyvault-secrets": "^4.9.0", + "@azure/storage-blob": "^12.26.0", + "@capacitor/preferences": "^6 || ^7 || ^8", + "@deno/kv": ">=0.9.0", + "@netlify/blobs": "^6.5.0 || ^7.0.0 || ^8.1.0 || ^9.0.0 || ^10.0.0 || ^11.0.0", + "@planetscale/database": "^1.19.0", + "@upstash/redis": "^1.34.3", + "@vercel/blob": ">=0.27.1", + "@vercel/functions": "^2.2.12 || ^3.0.0", + "@vercel/kv": "^1 || ^2 || ^3", + "aws4fetch": "^1.0.20", + "db0": ">=0.2.1", + "idb-keyval": "^6.2.1", + "ioredis": "^5.4.2", + "uploadthing": "^7.4.4" + }, + "peerDependenciesMeta": { + "@azure/app-configuration": { + "optional": true + }, + "@azure/cosmos": { + "optional": true + }, + "@azure/data-tables": { + "optional": true + }, + "@azure/identity": { + "optional": true + }, + "@azure/keyvault-secrets": { + "optional": true + }, + "@azure/storage-blob": { + "optional": true + }, + "@capacitor/preferences": { + "optional": true + }, + "@deno/kv": { + "optional": true + }, + "@netlify/blobs": { + "optional": true + }, + "@planetscale/database": { + "optional": true + }, + "@upstash/redis": { + "optional": true + }, + "@vercel/blob": { + "optional": true + }, + "@vercel/functions": { + "optional": true + }, + "@vercel/kv": { + "optional": true + }, + "aws4fetch": { + "optional": true + }, + "db0": { + "optional": true + }, + "idb-keyval": { + "optional": true + }, + "ioredis": { + "optional": true + }, + "uploadthing": { + "optional": true + } + } + }, + "node_modules/verkit": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/verkit/-/verkit-0.5.0.tgz", + "integrity": "sha512-u4J1hr6Y+C/hit34GwL3eIcUf3wngT8TlYUjK7tk0jxydKLAq3sYvifjdTDA6U3KCKRcQCQDGf/srjxfZF3l7g==", + "license": "MIT", + "engines": { + "node": ">=18.12.0" + }, + "funding": { + "url": "https://github.com/sponsors/sxzz" + } + }, + "node_modules/vfile": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/vfile/-/vfile-6.0.3.tgz", + "integrity": "sha512-KzIbH/9tXat2u30jf+smMwFCsno4wHVdNmzFyL+T/L3UGqqk6JKfVqOFOZEpZSHADH1k40ab6NUIXZq422ov3Q==", + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0", + "vfile-message": "^4.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/vfile-message": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/vfile-message/-/vfile-message-4.0.4.tgz", + "integrity": "sha512-66ycRswIkNmHH9PHku7ADtv5RVwgIrOcuv3J8Svz6h4qgGRrKVa+9/neuKyJZUXyOpYwLTvS+whZ4R2urHHgQg==", + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0", + "unist-util-stringify-position": "^4.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/vite": { + "version": "8.4.0", + "resolved": "https://registry.npmjs.org/vite/-/vite-8.4.0.tgz", + "integrity": "sha512-X2nUJg+9cutlz3hzqyO6p+WTwk9H257DjwAEf9EQYUFrQbDItmetadi9gYmb+l7VDy4r3VXLUnmLTwuPmzejDw==", + "license": "MIT", + "dependencies": { + "lightningcss": "^1.33.0", + "picomatch": "^4.0.7", + "postcss": "^8.5.33", + "rolldown": "~1.3.2", + "tinyglobby": "^0.2.17" + }, + "bin": { + "vite": "bin/vite.js" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "funding": { + "url": "https://github.com/vitejs/vite?sponsor=1" + }, + "optionalDependencies": { + "fsevents": "~2.3.3", + "napi-windows-process-start-time": "^0.1.0" + }, + "peerDependencies": { + "@types/node": "^20.19.0 || >=22.12.0", + "@vitejs/devtools": "^0.7.1 || ^0.8.0", + "esbuild": "^0.27.0 || ^0.28.0", + "jiti": ">=1.21.0", + "less": "^4.0.0", + "sass": "^1.70.0", + "sass-embedded": "^1.70.0", + "stylus": ">=0.54.8", + "sugarss": "^5.0.0", + "terser": "^5.16.0", + "tsx": "^4.8.1", + "yaml": "^2.4.2" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "@vitejs/devtools": { + "optional": true + }, + "esbuild": { + "optional": true + }, + "jiti": { + "optional": true + }, + "less": { + "optional": true + }, + "sass": { + "optional": true + }, + "sass-embedded": { + "optional": true + }, + "stylus": { + "optional": true + }, + "sugarss": { + "optional": true + }, + "terser": { + "optional": true + }, + "tsx": { + "optional": true + }, + "yaml": { + "optional": true + } + } + }, + "node_modules/vite/node_modules/@oxc-project/types": { + "version": "0.160.0", + "resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.160.0.tgz", + "integrity": "sha512-gw4k9syEmnckbOgw2A2FU1TBDdX9hfwV9jEn/uio65pguPzwWiXQS3OIJDMEhv9m06tj9XiEe6RoD0YA+LgreA==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/oxc-project" + } + }, + "node_modules/vite/node_modules/@rolldown/binding-android-arm-eabi": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm-eabi/-/binding-android-arm-eabi-1.3.4.tgz", + "integrity": "sha512-xCW8CkL/ualx/SbYqeG9iK87lJCZGDQ0soE+kaORJ0Bd+pHALyE4qK7BStmEAyYWLEzZ3/biSIpA6/7GDFvzIg==", + "cpu": [ + "arm" + ], + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/vite/node_modules/@rolldown/binding-android-arm64": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm64/-/binding-android-arm64-1.3.4.tgz", + "integrity": "sha512-5lifIO+b/prcM9sx/bkPN4w6UEToEfQ3gjhx0+0neuL+dkYskI792CfAq03T51jc8JFcaYXs2hi3l8RjiH/VWQ==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/vite/node_modules/@rolldown/binding-darwin-arm64": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-arm64/-/binding-darwin-arm64-1.3.4.tgz", + "integrity": "sha512-RCgxTI4AJQxhVF//BI3ImQOsXTHrF4Eg+f99jBy8WoETA2kSEGFxpnrVmW0leQq/2aBR4R5AC6csmy3rc66e3Q==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/vite/node_modules/@rolldown/binding-darwin-x64": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-x64/-/binding-darwin-x64-1.3.4.tgz", + "integrity": "sha512-zNPJVVPUaDEj+L0lImoK3rFv2b+Z5gNijI6DWu/fcD3/1TfmRXKb9ZyxbSN+2AhlctqjbNzUvCsMa+EBhnEM4Q==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/vite/node_modules/@rolldown/binding-freebsd-x64": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@rolldown/binding-freebsd-x64/-/binding-freebsd-x64-1.3.4.tgz", + "integrity": "sha512-upP6g7ZIRy5by1RDQ/EphHIdJ5xK0eUD7sUgfZFWJ49s4XdbYsIvIlAPtrFpayR70Hhf9J22lb4Pm8/9FhrZmg==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/vite/node_modules/@rolldown/binding-linux-arm-gnueabihf": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.3.4.tgz", + "integrity": "sha512-SAX5C5+poMLCxu8dkPF6h5yst40rkzs+9Y3cbPn2OFSydmHjAEprrGi64zGgnYyPIVZfdGUFqJ2fJbfbnHI+mA==", + "cpu": [ + "arm" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/vite/node_modules/@rolldown/binding-linux-arm64-gnu": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.3.4.tgz", + "integrity": "sha512-nwHqdlRZS6GWBef3dG5/pMY6RNTBBUjj7s0Da+m6xsFpe7jx6IC46SLZcCu8f46JOfCovZmwnrz51EzGE+7Fyw==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/vite/node_modules/@rolldown/binding-linux-arm64-musl": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.3.4.tgz", + "integrity": "sha512-Gr78X2ur/AgLCkmZgHffk/FerIX8S5zb/eII4bCcvJo0ANzeXhTShahdNbpnY6bpiszIAgIfiuKS9ziziWsamw==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/vite/node_modules/@rolldown/binding-linux-ppc64-gnu": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.3.4.tgz", + "integrity": "sha512-o9Wcn8nWrsQasaBRYM4d//FwhlBsTJYWkPVlhlt6FwzpwEoovY4IopRZjk5Fq3+ntRuSDORJjF/nA8sFeF2q6w==", + "cpu": [ + "ppc64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/vite/node_modules/@rolldown/binding-linux-s390x-gnu": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.3.4.tgz", + "integrity": "sha512-UDWu4jkVcx2kiBKm3Ec//4lVCbeTWj8gmJ9SyLWCdLWtTlyq7fQVeVV/14nXvRtSLErvJ2+yA/Ux5taS31Y17Q==", + "cpu": [ + "s390x" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/vite/node_modules/@rolldown/binding-linux-x64-gnu": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.3.4.tgz", + "integrity": "sha512-W9mGtTa0w4fWh8RLMNPyaEhhcuqUfO07Q4I1bBc4PDMNg7gQSw0yPQNQ3D0qwbkXwxbyL4YrIzc8n6k1vuFExQ==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/vite/node_modules/@rolldown/binding-linux-x64-musl": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-musl/-/binding-linux-x64-musl-1.3.4.tgz", + "integrity": "sha512-8B+ofyQZ7/aCmkqnyMonPr5zKLqMVNczhRGFNtdIuItiwNn8iQWJawMq2E58r7bxD1XEbtRRsULY/eCWwZQ01Q==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/vite/node_modules/@rolldown/binding-openharmony-arm64": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@rolldown/binding-openharmony-arm64/-/binding-openharmony-arm64-1.3.4.tgz", + "integrity": "sha512-TlD0FSZaC7o2B4NCe9V5N11ugTnhzTM9ksj4sgRLvrKosDzjEkvlsTX3ehkw4ZlPv8AADimZZTvJGEa16pfXug==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/vite/node_modules/@rolldown/binding-wasm32-wasi": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@rolldown/binding-wasm32-wasi/-/binding-wasm32-wasi-1.3.4.tgz", + "integrity": "sha512-jwO8P3o53ygo7b5061B7BeaJ1BGv3BKZ6jroFdw/01qWry7Z+qNBlDvulzbTle5s/A0Fc1FRgsTxrke9DvsSbA==", + "cpu": [ + "wasm32" + ], + "license": "MIT", + "optional": true, + "dependencies": { + "@oxc-project/types": "0.160.0" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=23.5.0" + } + }, + "node_modules/vite/node_modules/@rolldown/binding-win32-arm64-msvc": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.3.4.tgz", + "integrity": "sha512-8adGMrNtrdzi2WD1ozhYapER59gD8Q/DV6SCKJlyG2HqULPdeQUBvMa33lTsiEYwIqTZUaIU2MmvPp5f1wbtXA==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/vite/node_modules/@rolldown/binding-win32-x64-msvc": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.3.4.tgz", + "integrity": "sha512-rIMjtESdXJCIoOiUTroQ1Y1rjVDZkuUVRUxs3APX2vNv175D7TDWvzdELiIhzGq9cUNUFat+co+PTmPHPqSREg==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/vite/node_modules/rolldown": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/rolldown/-/rolldown-1.3.4.tgz", + "integrity": "sha512-p2rq4bfBmF0M6yaR8+A89fbkBQynZI2fxUW4G07eq9kpctAkpo7q5BZ4X4Mo4XZ7HHROu33cX9PeopUFN6u+2Q==", + "license": "MIT", + "dependencies": { + "@oxc-project/types": "=0.160.0", + "@rolldown/pluginutils": "^1.0.0" + }, + "bin": { + "rolldown": "bin/cli.mjs" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "optionalDependencies": { + "@rolldown/binding-android-arm-eabi": "1.3.4", + "@rolldown/binding-android-arm64": "1.3.4", + "@rolldown/binding-darwin-arm64": "1.3.4", + "@rolldown/binding-darwin-x64": "1.3.4", + "@rolldown/binding-freebsd-x64": "1.3.4", + "@rolldown/binding-linux-arm-gnueabihf": "1.3.4", + "@rolldown/binding-linux-arm64-gnu": "1.3.4", + "@rolldown/binding-linux-arm64-musl": "1.3.4", + "@rolldown/binding-linux-ppc64-gnu": "1.3.4", + "@rolldown/binding-linux-s390x-gnu": "1.3.4", + "@rolldown/binding-linux-x64-gnu": "1.3.4", + "@rolldown/binding-linux-x64-musl": "1.3.4", + "@rolldown/binding-openharmony-arm64": "1.3.4", + "@rolldown/binding-wasm32-wasi": "1.3.4", + "@rolldown/binding-win32-arm64-msvc": "1.3.4", + "@rolldown/binding-win32-x64-msvc": "1.3.4" + } + }, + "node_modules/vitefu": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/vitefu/-/vitefu-1.1.4.tgz", + "integrity": "sha512-qbEIDswfXH3x3IYRMScl/bf1AVW0dn7Z8qkr7g7nohkusfuC7tcFa7t5EoTOz60AunosLM9sDrDjHxsX+Up+CQ==", + "license": "MIT", + "workspaces": [ + "tests/deps/*", + "tests/projects/*", + "tests/projects/workspace/packages/*" + ], + "peerDependencies": { + "vite": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "vite": { + "optional": true + } + } + }, + "node_modules/xxhash-wasm": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/xxhash-wasm/-/xxhash-wasm-1.1.0.tgz", + "integrity": "sha512-147y/6YNh+tlp6nd/2pWq38i9h6mz/EuQ6njIrmW8D1BS5nCqs0P6DG+m6zTGnNz5I+uhZ0SHxBs9BsPrwcKDA==", + "license": "MIT" + }, + "node_modules/yaml": { + "version": "2.9.1", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.9.1.tgz", + "integrity": "sha512-3NxN8+78OdzbT7C/WjGsyfPAtJaN3FNDsWxv7Y7mcDsT/oOmgW8BpyQQFFBnvZE3j9Y2Sdz1ULFLezL7Eb2yFw==", + "license": "ISC", + "bin": { + "yaml": "bin.mjs" + }, + "engines": { + "node": ">= 14.6" + }, + "funding": { + "url": "https://github.com/sponsors/eemeli" + } + }, + "node_modules/yocto-queue": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-1.2.2.tgz", + "integrity": "sha512-4LCcse/U2MHZ63HAJVE+v71o7yOdIe4cZ70Wpf8D/IyjDKYQLV5GD46B+hSTjJsvV5PztjvHoU580EftxjDZFQ==", + "license": "MIT", + "engines": { + "node": ">=12.20" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/zod": { + "version": "4.6.7", + "resolved": "https://registry.npmjs.org/zod/-/zod-4.6.7.tgz", + "integrity": "sha512-g8W2D2kU6a8untc053fX1uVBKzM7yqAxW/3zwk83+6RyF2+SKOuV+c0wBDhUwzV1PaGapmZH+rmcUzPf+3CGwg==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/colinhacks" + } + }, + "node_modules/zwitch": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/zwitch/-/zwitch-2.0.4.tgz", + "integrity": "sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + } + } +} diff --git a/site/package.json b/site/package.json new file mode 100644 index 0000000..6c7305a --- /dev/null +++ b/site/package.json @@ -0,0 +1,24 @@ +{ + "name": "morphogen-research-site", + "version": "0.0.0", + "private": true, + "type": "module", + "description": "The research site: Astro pages built from the claim, role and option files (site/README.md).", + "engines": { + "node": ">=22.23.4" + }, + "scripts": { + "build": "ASTRO_TELEMETRY_DISABLED=1 astro build", + "dev": "ASTRO_TELEMETRY_DISABLED=1 astro dev", + "preview": "ASTRO_TELEMETRY_DISABLED=1 astro preview", + "test": "node --test test/*.test.mjs" + }, + "dependencies": { + "@alpinejs/csp": "3.17.5", + "ajv": "8.20.0", + "ajv-formats": "3.0.1", + "astro": "7.4.11", + "smol-toml": "1.9.1", + "yaml": "2.9.1" + } +} diff --git a/site/public/.nojekyll b/site/public/.nojekyll new file mode 100644 index 0000000..e69de29 diff --git a/site/static/icon.svg b/site/public/assets/icon.svg similarity index 100% rename from site/static/icon.svg rename to site/public/assets/icon.svg diff --git a/site/public/assets/site.js b/site/public/assets/site.js new file mode 100644 index 0000000..5b4eab0 --- /dev/null +++ b/site/public/assets/site.js @@ -0,0 +1,161 @@ +// The site's interactive parts, as Alpine components (Alpine's CSP build, assets/vendor/alpine-csp.min.js, loaded +// after this file). Each is registered by name with Alpine.data and named in the page by x-data, so no expression +// is evaluated from a string and the content security policy needs no 'unsafe-eval'. Every page works without +// JavaScript: the feed and the search page list everything, the map's nodes are plain links, and the theme follows +// the system's. +document.addEventListener("alpine:init", function () { + var Alpine = window.Alpine; + + function storedTheme() { + try { return localStorage.getItem("theme") || "system"; } catch (err) { return "system"; } + } + + // The header's button: cycles system, light and dark, remembered in this browser only (theme.js applies it + // before the page paints). + Alpine.data("theme", function () { + return { + choice: storedTheme(), + get label() { return this.choice === "light" ? "Light" : this.choice === "dark" ? "Dark" : "Auto"; }, + get aria() { return "Colour theme: " + this.choice; }, + next: function () { + var order = ["system", "light", "dark"]; + this.choice = order[(order.indexOf(this.choice) + 1) % order.length]; + try { localStorage.setItem("theme", this.choice); } catch (err) { /* private mode: not remembered */ } + if (this.choice === "system") document.documentElement.removeAttribute("data-theme"); + else document.documentElement.setAttribute("data-theme", this.choice); + }, + }; + }); + + // The feed's filters: search, role, source and status, all in the page. A claim tried on several configurations + // carries each of its statuses in data-status and matches if any is checked. Kept in the address + // (?q=&role=&source=&status=) so a filtered view can be shared. + Alpine.data("feed", function () { + return { + off: true, none: false, countText: "", + init: function () { + this.form = this.$root.querySelector("form"); + this.items = Array.prototype.slice.call(this.$root.querySelectorAll("li[data-name]")); + this.boxes = Array.prototype.slice.call(this.form.querySelectorAll("input[name=status]")); + var f = this.form, params = new URLSearchParams(location.search); + if (params.has("q")) f.q.value = params.get("q"); + if (params.has("role")) f.role.value = params.get("role"); + if (params.has("source")) f.source.value = params.get("source"); + if (params.has("status")) { + var want = params.get("status").split(","); + this.boxes.forEach(function (b) { b.checked = want.indexOf(b.value) !== -1; }); + } + this.off = false; + this.apply(); + }, + apply: function () { + var f = this.form; + var words = f.q.value.toLowerCase().split(/\s+/).filter(Boolean); + var role = f.role.value, source = f.source.value; + var statuses = this.boxes.filter(function (b) { return b.checked; }).map(function (b) { return b.value; }); + var shown = 0; + this.items.forEach(function (li) { + var d = li.dataset; + var ok = (!role || d.role === role) && (!source || d.source === source) && + d.status.split(" ").some(function (st) { return statuses.indexOf(st) !== -1; }) && + words.every(function (w) { return d.search.indexOf(w) !== -1; }); + li.hidden = !ok; + if (ok) shown++; + }); + this.countText = shown + " of " + this.items.length + " claims"; + this.none = shown === 0; + var p = new URLSearchParams(); + if (f.q.value) p.set("q", f.q.value); + if (role) p.set("role", role); + if (source) p.set("source", source); + var defaults = this.boxes.every(function (b) { return b.checked === b.defaultChecked; }); + if (!defaults) p.set("status", statuses.join(",")); + var qs = p.toString(); + history.replaceState(null, "", qs ? "?" + qs : location.pathname); + }, + }; + }); + + // Search over data/search.json (fetched from this site only). ?q= from the header's search box fills it in. + var KIND = { claim: "Claim", paper: "Paper", trial: "Trial", option: "Option", role: "Role", resource: "Resource", + component: "Component", system: "System", page: "Page" }; + Alpine.data("search", function () { + return { + off: true, q: "", rows: [], results: [], countText: "", + get idle() { return !this.q.trim(); }, + init: function () { + var self = this; + this.q = new URLSearchParams(location.search).get("q") || ""; + this.off = false; + fetch(this.$root.dataset.index, { credentials: "same-origin" }).then(function (r) { return r.json(); }) + .then(function (rows) { self.rows = rows; self.run(); }) + .catch(function () { self.countText = "The search index did not load; everything is listed below."; }); + }, + run: function () { + var words = this.q.toLowerCase().split(/\s+/).filter(Boolean); + if (!words.length) { this.results = []; this.countText = ""; this.update(); return; } + var hits = this.rows.filter(function (r) { return words.every(function (w) { return r.w.indexOf(w) !== -1; }); }); + hits.sort(function (a, b) { + var at = words.every(function (w) { return a.t.toLowerCase().indexOf(w) !== -1; }) ? 0 : 1; + var bt = words.every(function (w) { return b.t.toLowerCase().indexOf(w) !== -1; }) ? 0 : 1; + return at - bt; + }); + this.results = hits.slice(0, 200).map(function (r) { + return { u: r.u, t: r.t, d: r.d, s: [r.s, r.st].filter(Boolean).join(" · "), kind: KIND[r.k] || r.k }; + }); + this.countText = hits.length + " found" + (hits.length > 200 ? ", the first 200 shown" : ""); + this.update(); + }, + update: function () { + var p = new URLSearchParams(); + if (this.q) p.set("q", this.q); + var qs = p.toString(); + history.replaceState(null, "", qs ? "?" + qs : location.pathname); + }, + }; + }); + + // The map: pointing at (or tabbing to) a node lights it, its links and its neighbours; the checkboxes hide kinds + // of entity and their links. + Alpine.data("graph", function () { + return { + off: true, + init: function () { + this.svg = this.$root.querySelector("svg"); + this.nodes = Array.prototype.slice.call(this.svg.querySelectorAll("[data-id]")); + this.edges = Array.prototype.slice.call(this.svg.querySelectorAll("path[data-from]")); + this.off = false; + }, + hover: function (ev) { + var node = ev.target.closest ? ev.target.closest("[data-id]") : null; + if (!node) return; + this.clear(); + var id = node.getAttribute("data-id"), near = {}; + near[id] = true; + this.edges.forEach(function (e) { + var a = e.getAttribute("data-from"), b = e.getAttribute("data-to"); + if (a === id || b === id) { e.classList.add("hl"); near[a] = true; near[b] = true; } + }); + this.nodes.forEach(function (n) { if (near[n.getAttribute("data-id")]) n.classList.add("hl"); }); + this.svg.classList.add("focus"); + }, + clear: function () { + this.svg.classList.remove("focus"); + this.svg.querySelectorAll(".hl").forEach(function (x) { x.classList.remove("hl"); }); + }, + filter: function () { + var on = {}; + this.$root.querySelectorAll("input[name=type]").forEach(function (b) { on[b.value] = b.checked; }); + var shown = {}; + this.nodes.forEach(function (n) { + var ok = on[n.getAttribute("data-type")] !== false; + n.classList.toggle("off", !ok); + shown[n.getAttribute("data-id")] = ok; + }); + this.edges.forEach(function (e) { + e.classList.toggle("off", !(shown[e.getAttribute("data-from")] && shown[e.getAttribute("data-to")])); + }); + }, + }; + }); +}); diff --git a/site/static/style.css b/site/public/assets/style.css similarity index 83% rename from site/static/style.css rename to site/public/assets/style.css index e6a6291..a1b7a3d 100644 --- a/site/static/style.css +++ b/site/public/assets/style.css @@ -288,3 +288,59 @@ details ul { margin-top: 8px; font-size: 0.88rem; } /* A claim whose configurations disagree: a Mixed badge, then one badge per configuration with its name. */ .s-mixed { color: var(--warn); background: var(--warn-bg); } .cfg { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; } + +/* Header search */ +.top-search input[type=search] { width: 9rem; padding: 5px 8px; font-size: 0.9rem; } +@media (max-width: 640px) { .top-search { flex: 1 1 auto; } .top-search input[type=search] { width: 100%; } } + +/* Links inside a card sit above the card's own link */ +.card .meta a, .card .card-top a { position: relative; z-index: 1; } + +/* Entity pages */ +.clist li { line-height: 1.45; } +.scounts { display: inline-flex; flex-wrap: wrap; gap: 6px 10px; } +.refs h3 { font-size: 0.95rem; } +.refl { margin-bottom: 12px; } +.refl .tag { margin-right: 4px; } +.tbl-wrap { overflow-x: auto; } +.tbl caption { text-align: left; color: var(--muted); font-size: 0.85rem; padding-bottom: 6px; } +.results td:last-child { white-space: nowrap; } +.results .res-sum { display: block; margin-top: 4px; white-space: normal; } +.results .cfg-rest { display: block; } + +/* Markdown pages */ +.prose { max-width: 820px; } +.prose h2 { font-family: var(--font); text-transform: none; letter-spacing: -0.01em; font-size: 1.25rem; color: var(--text); margin-top: 0.4em; } +.prose h3 { font-size: 1.05rem; } +.prose ol, .prose ul { padding-left: 1.4em; margin: 0 0 1em; } +.prose li { margin-bottom: 0.4em; } +.prose code { font-family: var(--mono); font-size: 0.9em; background: var(--panel-2); padding: 1px 4px; border-radius: 4px; } +.prose pre { background: var(--panel-2); padding: 12px; border-radius: 8px; overflow-x: auto; } +.prose blockquote { margin: 0 0 1em; padding-left: 12px; border-left: 3px solid var(--accent); color: var(--muted); } +.prose img { max-width: 100%; height: auto; } + +/* The map */ +.graph-wrap { overflow-x: auto; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); margin: 0 0 16px; } +.graph { display: block; min-width: 1000px; width: 100%; height: auto; } +.graph .col-h { fill: var(--accent-2); font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: 0.08em; } +.graph .edge { fill: none; stroke: var(--muted); stroke-opacity: 0.28; stroke-width: 1; } +.graph .edge.e-replicated { stroke: var(--good); stroke-opacity: 0.6; } +.graph .edge.e-did-not-transfer { stroke: var(--bad); stroke-opacity: 0.6; } +.graph .node rect { fill: var(--bg); stroke: var(--border); stroke-width: 1.2; } +.graph .node text { fill: var(--text); font: 11px var(--mono); } +.graph .node:hover rect, .graph .node:focus rect { stroke: var(--accent); stroke-width: 2; } +.graph .t-paper rect, .graph .t-trial rect { fill: var(--panel-2); } +.graph .t-trial rect { stroke: var(--ours); } +.graph .t-resource rect { stroke: var(--accent); } +.graph .t-role rect, .graph .t-system rect { stroke: var(--accent-2); } +.graph .s-replicated rect { stroke: var(--good); fill: var(--good-bg); } +.graph .s-did-not-transfer rect { stroke: var(--bad); fill: var(--bad-bg); } +.graph .s-mixed rect { stroke: var(--warn); fill: var(--warn-bg); } +.graph .s-predicted rect { stroke: var(--pred); } +.graph .s-observation rect { stroke: var(--ours); fill: var(--ours-bg); } +.graph.focus .node:not(.hl) { opacity: 0.25; } +.graph.focus .edge:not(.hl) { stroke-opacity: 0.06; } +.graph .edge.hl { stroke: var(--accent); stroke-opacity: 1; stroke-width: 2; } +.graph .off { display: none; } +.results td:nth-last-child(2) { white-space: nowrap; } +.top-in { max-width: 1200px; } diff --git a/site/public/assets/theme.js b/site/public/assets/theme.js new file mode 100644 index 0000000..4ecb198 --- /dev/null +++ b/site/public/assets/theme.js @@ -0,0 +1,8 @@ +// Colour theme, applied before the page paints so it never flashes the wrong one: the system's by default, or the +// choice made with the header's button (site.js), remembered in this browser only. +(function () { + try { + var t = localStorage.getItem("theme"); + if (t === "light" || t === "dark") document.documentElement.setAttribute("data-theme", t); + } catch (err) { /* storage blocked: follow the system */ } +})(); diff --git a/site/src/components/Assessment.astro b/site/src/components/Assessment.astro new file mode 100644 index 0000000..e3414b0 --- /dev/null +++ b/site/src/components/Assessment.astro @@ -0,0 +1,36 @@ +--- +// One assessment of a claim: the configuration, the prediction, the cheapest trial, the outcome. +import ClaimRef from "./ClaimRef.astro"; +import ExtLink from "./ExtLink.astro"; +import Meter from "./Meter.astro"; +import StatusBadge from "./StatusBadge.astro"; +import { refName } from "../lib/text.mjs"; +const { site, c, a } = Astro.props; +const label = site.configLabel(a); +const pr = a.prediction; +const plan = a.trial; +const ranked = plan ? site.queueRank(c.name) : null; +const out = a.outcome; +const t = out?.trial || {}; +const trialEnt = t.id ? site.entities.get(`trial:${t.id}`) : null; +const v = out?.verdict || {}; +const by = { morphogen: "the judge", falsifier: "a falsifier registered before the outcome", operator: "the operator", none: "nobody yet" }[v.by] || v.by || ""; +--- +

    {label && <> on {label}} for {a.system}{a.date && <> on {a.date}}

    +{(a.against || []).length > 0 &&

    Compared with: {a.against.map((r, i) => { const e = site.catalogRef(r); return <>{i > 0 && ", "}{e ? {refName(r)} : {refName(r)}}; })}

    } +{pr &&

    Transfer prediction

    +

    +

    {pr.reason || ""}

    +

    By {pr.by || ""}, {pr.date || ""}. {pr.before_outcome ? "Written before any outcome, so it counts towards calibration." : "Written after an outcome was seen, so it does not count towards calibration."}

    } +{plan &&

    The cheapest trial that would settle it

    +

    {plan.plan || ""}

    +
    Cost
    about {plan.cost_hours} hours, setting up included
    {(plan.needs || []).length > 0 && <>
    Needs
      {plan.needs.map((n) =>
    • {n}
    • )}
    }{plan.code && <>
    Code
    }
    +{ranked &&

    Number {ranked[0]} of {site.queue().length} in the queue.

    }
    } +{out &&

    Outcome

    +

    Trial {trialEnt ? {t.id} : {t.id || ""}}{t.url && <> ()}{out.date && <> · {out.date}} · {out.comparison === "our-setup" ? "a transfer test on our setup" : "the source's own setup reproduced"}

    +

    {out.summary || ""}

    +
    Verdict
    {v.decision || ""}, decided by {by}{v.ref && <> {v.ref}}{v.note && <>
    {v.note}}
    +
    Observed
      {(out.observed || []).map((n) =>
    • )}
    } +{a.reason &&

    Note
    {a.reason}

    } +{(a.see_also || []).length > 0 && <>

    See also

      {a.see_also.map((n) =>
    • )}
    } +
    diff --git a/site/src/components/Blocks.astro b/site/src/components/Blocks.astro new file mode 100644 index 0000000..f87a51d --- /dev/null +++ b/site/src/components/Blocks.astro @@ -0,0 +1,19 @@ +--- +// Generated sections a Markdown page can ask for in its front matter (`blocks: [statuses, steering, files]`). +import StatusBadge from "./StatusBadge.astro"; +import ExtLink from "./ExtLink.astro"; +import { OBSERVATION, STATUSES, STATUS_HELP } from "../lib/text.mjs"; +const { site, blocks = [], depth = 0 } = Astro.props; +const u = "../".repeat(depth); +const actions = [["prioritise", "test this claim sooner; it counts double in the queue"], ["reject", "drop it from the queue"], + ["dispute", "the transfer prediction is wrong; the next session reassesses it"], ["question", "a question to watch"], + ["propose-role", "a role to read papers for"], ["propose-option", "an option or paper for a role"]]; +--- +{blocks.includes("statuses") &&

    What a status means

      {[...STATUSES, OBSERVATION].map((s) =>
    • {STATUS_HELP[s]}
    • )}
    +

    "Replicated" means the finding held on this system's setup. It is a transfer test of the method, not a reproduction of the paper, and "did not transfer" is not a refutation of it.

    } +{blocks.includes("steering") &&

    Steering it

    +

    The agent takes direction from GitHub issues. The buttons on this site open one, filled in, for you to edit and submit; nothing is sent until you do. Each ends with a research-action: line, which the agent reads first:

    +
      {actions.map(([k, t]) =>
    • research-action: {k} {t}{(site.labels[k] || []).length > 0 && <> (label {site.labels[k].join(", ")})}
    • )}
    +

    GitHub applies labels from a link only for people who can triage the repository, which is why the body line comes first. The agent records every issue but acts only on those from the repository's owner, members and collaborators.

    } +{blocks.includes("files") &&

    Files, not a service

    +

    Every claim is a YAML file in the repository (), and the roles and options are Backstage entity files. This site is built from them by Astro (site/); data/claims.json holds the same records and data/graph.json every reference between them, for other tools. The judge never reads the claims: what decides a change is only what it measures.

    } diff --git a/site/src/components/Calibration.astro b/site/src/components/Calibration.astro new file mode 100644 index 0000000..6b88eb2 --- /dev/null +++ b/site/src/components/Calibration.astro @@ -0,0 +1,32 @@ +--- +// A reliability diagram: predicted probability against the share that held, in five bins, with the diagonal of +// perfect calibration; predictions still waiting are small dots under the axis. Attributes only (no inline style), +// so the content security policy holds. +const { pairs, waiting } = Astro.props; +const w = 360, m = 44; +let h = 300; +const pw = w - m - 16, ph = h - m - 30; +const x = (p) => (m + p * pw).toFixed(1); +const y = (v) => (16 + (1 - v) * ph).toFixed(1); +const ticks = [0, 0.2, 0.4, 0.6, 0.8, 1.0]; +const bins = []; +for (let i = 0; i < 5; i++) { + const lo = i / 5, hi = (i + 1) / 5; + const inside = pairs.filter((q) => (lo <= q.p && q.p < hi) || (i === 4 && q.p === 1)); + if (inside.length) bins.push([inside.reduce((s, q) => s + q.p, 0) / inside.length, inside.reduce((s, q) => s + q.held, 0) / inside.length, inside.length]); +} +const seen = new Map(); +const stacked = [...waiting].sort((a, b) => a - b).map((p) => { const k = p.toFixed(2); const n = seen.get(k) || 0; seen.set(k, n + 1); return [p, n]; }); +const y0 = 16 + ph; +h += 7 * Math.max(1, ...seen.values()); +--- + +Predicted probability against the share that held +{pairs.length} predictions with outcomes in {bins.length} bins; {waiting.length} waiting. The diagonal is perfect calibration. +{ticks.map((t) => <>{t.toFixed(1)}{t.toFixed(1)})} + +{bins.map(([mp, r, n]) => Predicted {mp.toFixed(2)} on average, {r.toFixed(2)} held ({n} prediction{n !== 1 ? "s" : ""}))} +{stacked.map(([p, i]) => Waiting: p {p.toFixed(2)})} +predicted probability it holds here +share that held + diff --git a/site/src/components/ClaimList.astro b/site/src/components/ClaimList.astro new file mode 100644 index 0000000..407dd98 --- /dev/null +++ b/site/src/components/ClaimList.astro @@ -0,0 +1,8 @@ +--- +// A list of claims, each with its status badges and its role and option. +import StatusBadges from "./StatusBadges.astro"; +import { refName, truncate, up } from "../lib/text.mjs"; +const { site, claims, depth = 0, empty = "None yet." } = Astro.props; +const list = site.sorted(claims); +--- +{list.length ? :

    {empty}

    } diff --git a/site/src/components/ClaimRef.astro b/site/src/components/ClaimRef.astro new file mode 100644 index 0000000..9f1c2a2 --- /dev/null +++ b/site/src/components/ClaimRef.astro @@ -0,0 +1,7 @@ +--- +// A claim by name, linked, with its description. +import { truncate, up } from "../lib/text.mjs"; +const { site, name, depth = 0 } = Astro.props; +const c = site.claim(name); +--- +{c ? <>{name} {truncate(c.doc.metadata.description || "", 110)} : {name}} diff --git a/site/src/components/Conditions.astro b/site/src/components/Conditions.astro new file mode 100644 index 0000000..61251bc --- /dev/null +++ b/site/src/components/Conditions.astro @@ -0,0 +1,25 @@ +--- +// A claim's conditions; a model, engine, dataset or GPU with a `ref` links to its page. +import { asText, up } from "../lib/text.mjs"; +const { site, cond, depth = 1 } = Astro.props; +const u = up(depth); +const known = new Set(["models", "engine", "dataset", "hardware", "method", "thinking", "labels", "unstated"]); +const res = (ref) => (ref ? site.catalogRef(ref) : null); +const things = [["engine", "Engine"], ["dataset", "Dataset"], ["hardware", "Hardware"]] + .filter(([k]) => cond[k] && typeof cond[k] === "object") + .map(([k, label]) => [label, ["name", "version", "split", "size", "memory"].filter((x) => cond[k][x]).map((x) => String(cond[k][x])).join(", "), res(cond[k].ref)]); +const texts = [["method", "Method"], ["thinking", "Thinking"], ["labels", "Labels"]].filter(([k]) => cond[k]).map(([k, l]) => [l, asText(cond[k])]); +const rest = Object.entries(cond).filter(([k, v]) => !known.has(k) && v !== null && v !== "" && !(Array.isArray(v) && !v.length) && !(typeof v === "object" && !Array.isArray(v) && !Object.keys(v).length)) + .map(([k, v]) => [k.replaceAll("_", " ").replace(/^./, (s) => s.toUpperCase()), asText(v)]); +--- +
    + {(cond.models || []).length > 0 && <>
    Models
      {cond.models.map((m) => { + const r = res(m.ref); + const bits = ["size", "precision", "tuned"].filter((k) => m[k]).map((k) => m[k]).join(", "); + return
    • {r ? {m.name || r.title} : m.name || ""}{bits && <> {bits}}{m.capability && <>
      {m.capability}}
    • ; + })}
    } + {things.map(([label, text, r]) => <>
    {label}
    {r ? {text} : text}
    )} + {texts.map(([l, t]) => <>
    {l}
    {t}
    )} + {rest.map(([l, t]) => <>
    {l}
    {t}
    )} + {(cond.unstated || []).length > 0 && <>
    Not stated
      {cond.unstated.map((x) =>
    • {x}
    • )}
    } +
    diff --git a/site/src/components/ELink.astro b/site/src/components/ELink.astro new file mode 100644 index 0000000..f52a890 --- /dev/null +++ b/site/src/components/ELink.astro @@ -0,0 +1,6 @@ +--- +// A link to an entity's page, or its name as text when it has none. +import { up } from "../lib/text.mjs"; +const { ent, depth = 0, text, cls = "" } = Astro.props; +--- +{ent ? {text ?? ent.title} : {text}} diff --git a/site/src/components/EntityHead.astro b/site/src/components/EntityHead.astro new file mode 100644 index 0000000..5b5dec1 --- /dev/null +++ b/site/src/components/EntityHead.astro @@ -0,0 +1,12 @@ +--- +// The top of an entity page: where it sits, what kind of thing it is, its name and description. +import { TYPES } from "../lib/data.mjs"; +const { ent, eyebrow = "", crumbs = [] } = Astro.props; +--- +

    {crumbs.map(([href, text]) => <>{text} )}{ent.key}

    +
    +

    {eyebrow || TYPES[ent.type].one}

    +

    {ent.title}

    + {ent.summary &&

    {ent.summary}

    } + +
    diff --git a/site/src/components/Evidence.astro b/site/src/components/Evidence.astro new file mode 100644 index 0000000..cdbe8c4 --- /dev/null +++ b/site/src/components/Evidence.astro @@ -0,0 +1,7 @@ +--- +// The `morphogen.dev/evidence` annotation of a catalog entity: where the map says what it says. +import { parseEvidence } from "../lib/text.mjs"; +const { ent } = Astro.props; +const ev = parseEvidence(ent.doc?.metadata?.annotations?.["morphogen.dev/evidence"]); +--- +{ev.map(([s, q]) =>

    {q}

    {s}
    )} diff --git a/site/src/components/ExtLink.astro b/site/src/components/ExtLink.astro new file mode 100644 index 0000000..4b50ad2 --- /dev/null +++ b/site/src/components/ExtLink.astro @@ -0,0 +1,7 @@ +--- +// An outside link only when the URL is http or https; plain text otherwise (a file must not write a javascript: link). +import { safeUrl } from "../lib/text.mjs"; +const { url, text, cls = "" } = Astro.props; +const good = safeUrl(url); +--- +{good ? {text} : {text}} diff --git a/site/src/components/MeasureRows.astro b/site/src/components/MeasureRows.astro new file mode 100644 index 0000000..ca44914 --- /dev/null +++ b/site/src/components/MeasureRows.astro @@ -0,0 +1,5 @@ +--- +import { measureRows } from "../lib/text.mjs"; +const { m } = Astro.props; +--- +{measureRows(m).map(([k, v]) => <>
    {k}
    {v}
    )} diff --git a/site/src/components/Mentions.astro b/site/src/components/Mentions.astro new file mode 100644 index 0000000..2e999b0 --- /dev/null +++ b/site/src/components/Mentions.astro @@ -0,0 +1,7 @@ +--- +// The Markdown pages (notes, announcements) that name this entity in their `refs:`. +import { up } from "../lib/text.mjs"; +const { site, ent, depth = 0 } = Astro.props; +const pages = site.ins(ent, "mentions"); +--- +{pages.length > 0 &&

    Notes about it

      {pages.map((p) =>
    • {p.title}{p.date && {p.date}}{p.summary && · {p.summary}}
    • )}
    } diff --git a/site/src/components/Meter.astro b/site/src/components/Meter.astro new file mode 100644 index 0000000..3e99c0a --- /dev/null +++ b/site/src/components/Meter.astro @@ -0,0 +1,7 @@ +--- +// The transfer probability as a bar, with the number beside it (never the bar alone). +const { p, label = true } = Astro.props; +const v = Number(p); +const pct = (Math.max(0, Math.min(1, v)) * 100).toFixed(1); +--- +{label && p {v.toFixed(2)}} diff --git a/site/src/components/Quote.astro b/site/src/components/Quote.astro new file mode 100644 index 0000000..65da89a --- /dev/null +++ b/site/src/components/Quote.astro @@ -0,0 +1,12 @@ +--- +import ExtLink from "./ExtLink.astro"; +import { QUOTE_TEXT } from "../lib/text.mjs"; +const { src } = Astro.props; +const status = src.quote_status || "none"; +const via = src.via; +--- +

    {QUOTE_TEXT[status] || status}{src.quote_location && <> {src.quote_location}}

    +{src.quote &&

    {src.quote}

    } +{src.quote_note &&

    {src.quote_note}

    } +{via && <>

    Via a secondary source {via.location ? `, ${via.location}` : ""}

    +

    {via.quote || ""}

    } diff --git a/site/src/components/References.astro b/site/src/components/References.astro new file mode 100644 index 0000000..f31b349 --- /dev/null +++ b/site/src/components/References.astro @@ -0,0 +1,33 @@ +--- +// Every reference an entity makes and every one made to it, grouped by kind: the generic panel at the foot of each +// entity page, so nothing that links here is missed. +import { RELS, TYPES } from "../lib/data.mjs"; +import { up } from "../lib/text.mjs"; +const { ent, depth = 0 } = Astro.props; +const u = up(depth); +function groups(edges, end, idx) { + const by = new Map(); + for (const e of edges) { + const other = e[end]; + const label = (RELS[e.rel] || [e.rel, e.rel])[idx]; + if (!by.has(label)) by.set(label, new Map()); + const m = by.get(label); + if (!m.has(other.id)) m.set(other.id, { ent: other, statuses: new Set() }); + if (e.status) m.get(other.id).statuses.add(e.status); + } + return [...by.entries()].map(([label, m]) => [label, [...m.values()]]); +} +const outs = groups(ent.out, "to", 0); +const ins = groups(ent.in, "from", 1); +--- +
    +

    References

    +
    +

    Links to {ent.out.length ? "" : "none"}

    + {outs.map(([label, items]) => <>

    {label} {items.length}

      {items.map((x) =>
    • {TYPES[x.ent.type].one} {x.ent.title}{x.statuses.size > 0 && {[...x.statuses].join(", ")}}
    • )}
    )} +
    +

    Linked from {ent.in.length ? "" : "nothing yet"}

    + {ins.map(([label, items]) => <>

    {label} {items.length}

      {items.map((x) =>
    • {TYPES[x.ent.type].one} {x.ent.title}{x.statuses.size > 0 && {[...x.statuses].join(", ")}}
    • )}
    )} +
    +
    +
    diff --git a/site/src/components/ResultsTable.astro b/site/src/components/ResultsTable.astro new file mode 100644 index 0000000..d4ec793 --- /dev/null +++ b/site/src/components/ResultsTable.astro @@ -0,0 +1,29 @@ +--- +// "Tested on": one row per assessment of a claim for this system, model by result. With `showClaim` the claim is +// the first column (for a model's, a trial's or an option's page). +import Meter from "./Meter.astro"; +import StatusBadge from "./StatusBadge.astro"; +import { refName, truncate, up } from "../lib/text.mjs"; +const { site, rows, depth = 0, showClaim = false, caption = "" } = Astro.props; +const u = up(depth); +const cells = rows.map(({ claim, a }) => { + const models = site.configModels(a); + const others = (a.against || []).map((r) => site.catalogRef(r)).filter((r) => r && !models.includes(r)); + const unknown = (a.against || []).filter((r) => !site.catalogRef(r)).map(refName); + const trialId = a.outcome?.trial?.id; + const trial = trialId ? site.entities.get(`trial:${trialId}`) : null; + return { claim, a, models, others, unknown, trialId, trial }; +}); +--- +{cells.length > 0 &&
    + {caption && } + {showClaim && } + {cells.map((x) => + {showClaim && } + + + + + )} +
    {caption}
    ClaimTested onResultTrialPrediction
    {truncate(x.claim.title, 100)}{x.models.length ? x.models.map((m, i) => <>{i > 0 && ", "}{m.title}) : no model named} + {(x.others.length > 0 || x.unknown.length > 0) && with {x.others.map((r, i) => <>{i > 0 && ", "}{r.title})}{x.unknown.length > 0 && <>{x.others.length > 0 && ", "}{x.unknown.join(", ")}}}{x.a.outcome?.verdict?.decision && falsifier {x.a.outcome.verdict.decision}}{x.a.outcome?.summary && {truncate(x.a.outcome.summary, 180)}}{x.trial ? {x.trialId} : none yet}{x.a.prediction ? : none written}
    } diff --git a/site/src/components/StatusBadge.astro b/site/src/components/StatusBadge.astro new file mode 100644 index 0000000..ca06f3c --- /dev/null +++ b/site/src/components/StatusBadge.astro @@ -0,0 +1,5 @@ +--- +import { STATUS_HELP, STATUS_TEXT } from "../lib/text.mjs"; +const { status } = Astro.props; +--- +{STATUS_TEXT[status] || status} diff --git a/site/src/components/StatusBadges.astro b/site/src/components/StatusBadges.astro new file mode 100644 index 0000000..91348df --- /dev/null +++ b/site/src/components/StatusBadges.astro @@ -0,0 +1,10 @@ +--- +// One badge when a claim's assessments agree; when they disagree, a Mixed badge and one per configuration. +import StatusBadge from "./StatusBadge.astro"; +const { site, c } = Astro.props; +const many = !c.ours && site.statuses(c).length > 1; +--- +{many ? <>{site.assessments(c).map((a) => { + const label = site.configLabel(a); + return {label && <> {label}}; +})} : } diff --git a/site/src/components/StatusCounts.astro b/site/src/components/StatusCounts.astro new file mode 100644 index 0000000..7e6152c --- /dev/null +++ b/site/src/components/StatusCounts.astro @@ -0,0 +1,8 @@ +--- +// How many of these claims have each status (a claim with several counts once under each). +import StatusBadge from "./StatusBadge.astro"; +const { site, claims } = Astro.props; +const counts = new Map(); +for (const c of claims) for (const s of site.statuses(c)) counts.set(s, (counts.get(s) || 0) + 1); +--- +{counts.size ? {[...counts].map(([s, n]) => ×{n})} : No claims yet} diff --git a/site/src/components/Steer.astro b/site/src/components/Steer.astro new file mode 100644 index 0000000..91122b3 --- /dev/null +++ b/site/src/components/Steer.astro @@ -0,0 +1,11 @@ +--- +import { claimButtons } from "../lib/steer.mjs"; +const { site, c } = Astro.props; +const btns = claimButtons(site, c); +const labels = [...new Set(["prioritise", "reject", "dispute"].flatMap((k) => site.labels[k] || []))].sort().join(", "); +--- +{btns.length > 0 &&
    +

    Steer the agent

    +

    Each button opens a new GitHub issue, filled in, for you to edit and submit. The agent reads issues labelled {labels}.

    +

    {btns.map(([action, url, text]) => {text})}

    +
    } diff --git a/site/src/components/Watch.astro b/site/src/components/Watch.astro new file mode 100644 index 0000000..cba7641 --- /dev/null +++ b/site/src/components/Watch.astro @@ -0,0 +1,20 @@ +--- +// What the agent watches (watch.yaml) and what became of the papers it saw (seen.jsonl). +import ExtLink from "./ExtLink.astro"; +const { site, depth = 0 } = Astro.props; +const w = site.research.watch || {}; +const seen = site.research.seen || []; +const counts = new Map(); +for (const p of seen) counts.set(p.status || "", (counts.get(p.status || "") || 0) + 1); +const countText = [...counts].sort((a, b) => b[1] - a[1]).map(([k, n]) => `${n} ${k}`).join(", "); +const cataloged = seen.filter((x) => x.status === "cataloged"); +const paperFor = (id) => site.of("paper").find((p) => String(p.source?.id || "").replace(/^arxiv:/i, "") === String(id)); +--- +{(Object.keys(w).length > 0 || seen.length > 0) &&

    Watching

    +{w.conditions &&

    {w.conditions}

    } +{(w.topics || []).length > 0 &&
      {w.topics.map((t) =>
    • {t.name || ""}

      {t.question || ""}

      +

      {(t.roles || []).map((r) => { const e = site.catalogRef(r); return <>{e ? {r} : {r}} ; })}{(t.categories || []).length > 0 && · {t.categories.join(", ")}}

      +

      {(t.terms || []).length ? t.terms.map((x) => {x}) : terms still to be filled in by the next session}

    • )}
    } +{seen.length > 0 &&

    Papers seen {seen.length}: {countText}.

    } +{cataloged.length > 0 &&
    {cataloged.length} papers catalogued
      {cataloged.map((x) => { const p = paperFor(x.id); return
    • {p ? {x.title || ""} : } {x.id || ""}
    • ; })}
    } +
    } diff --git a/site/src/content.config.mjs b/site/src/content.config.mjs new file mode 100644 index 0000000..5922391 --- /dev/null +++ b/site/src/content.config.mjs @@ -0,0 +1,27 @@ +// The file-based pages: every Markdown file under site/content (or SITE_CONTENT) becomes a page with the shared +// layout (src/pages/[...slug].astro). Front matter is checked here; a page that breaks it stops the build. +import { defineCollection, z } from "astro:content"; +import { glob } from "astro/loaders"; + +const day = z.union([z.string(), z.date()]).transform((d) => (typeof d === "string" ? d : d.toISOString().slice(0, 10))); + +const pages = defineCollection({ + loader: glob({ pattern: "**/*.md", base: process.env.SITE_CONTENT || "./content" }), + schema: z.object({ + title: z.string(), + description: z.string().optional(), + // page: a page of its own; note and announcement: also listed, newest first, on notes.html + kind: z.enum(["page", "note", "announcement"]).default("note"), + date: day.optional(), + // entities this page is about, e.g. resource:inkling-2-mini-q4-k, trial:E-04a, claim:, role:, + // option:, paper:arXiv:2610.00346; each entity's page links back here + refs: z.array(z.string()).default([]), + // a number puts the page in the header's navigation, in that order + nav: z.number().optional(), + // generated sections to add after the text: statuses, steering, files + blocks: z.array(z.enum(["statuses", "steering", "files"])).default([]), + draft: z.boolean().default(false), + }), +}); + +export const collections = { pages }; diff --git a/site/src/layouts/Base.astro b/site/src/layouts/Base.astro new file mode 100644 index 0000000..97ae093 --- /dev/null +++ b/site/src/layouts/Base.astro @@ -0,0 +1,51 @@ +--- +// The frame of every page: the content security policy, the header and its navigation, the footer. Links are +// relative (`depth` directories below the site root), so the site works under any path. +import { safeUrl, up } from "../lib/text.mjs"; +const { site, title, description = "", depth = 0, current = "" } = Astro.props; +const u = up(depth); +const fixed = [["index.html", "Claims"], ["queue.html", "Next to test"], ["predictions.html", "Predictions"], + ["roles.html", "Roles"], ["map.html", "Map"]]; +const listed = site.pages.filter((p) => p.kind !== "page"); +const extra = site.pages.filter((p) => typeof p.nav === "number").sort((a, b) => a.nav - b.nav).map((p) => [`${p.slug}.html`, p.title]); +const nav = [...fixed, ...(listed.length ? [["notes.html", "Notes"]] : []), ...extra]; +const fullTitle = title && title !== site.title ? `${title} · ${site.title}` : site.title; +const desc = description || "Claims from papers about options for the system's roles, with conditions, transfer predictions and outcomes."; +const repoUrl = safeUrl(`https://github.com/${site.repo}`); +--- + + + + + + + + + +{fullTitle} + + + + + + + + +
    +
    + Morphogen research + + + +
    +
    +
    + +
    + + + diff --git a/site/src/lib/data.mjs b/site/src/lib/data.mjs new file mode 100644 index 0000000..6d3b5f8 --- /dev/null +++ b/site/src/lib/data.mjs @@ -0,0 +1,550 @@ +// The site's data: the claim, role and option files named in config.toml, validated, joined into one graph of +// entities with typed references, and the backlinks of every reference. Plain JavaScript with no Astro imports, so +// the pages, the data files and `node --test` all read the same thing. +// +// Entities and their pages: +// claim claims/.html an EvidenceClaim file (schemas/evidence-claim.v1.json) +// role roles/.html a Component with spec.type role +// option options/.html a Component with spec.lifecycle candidate +// component components/.html any other Component +// resource resources/.html a Resource: a model, engine, GPU or dataset (spec.type) +// system systems/.html a System +// trial trials/.html derived: a claim's source when it is our trial or probe, and every outcome's trial +// paper papers/.html derived: a claim's source when it is a paper (or any other outside source) +// page .html a Markdown file in site/content (attached by the Astro side, site.mjs) + +import fs from "node:fs"; +import path from "node:path"; +import { fileURLToPath } from "node:url"; +import Ajv2020 from "ajv/dist/2020.js"; +import addFormats from "ajv-formats"; +import { parse as parseToml } from "smol-toml"; +import YAML from "yaml"; +import { MIXED, OBSERVATION, refKind, refName, slugify, truncate } from "./text.mjs"; + +const HERE = path.dirname(fileURLToPath(import.meta.url)); +// site/: astro.config.mjs sets SITE_DIR, since a bundled page no longer sits where this file does. +export const SITE_DIR = process.env.SITE_DIR || path.resolve(HERE, "..", ".."); + +export const TYPES = { + claim: { dir: "claims", one: "Claim", many: "Claims" }, + paper: { dir: "papers", one: "Paper", many: "Papers" }, + trial: { dir: "trials", one: "Trial", many: "Trials" }, + option: { dir: "options", one: "Option", many: "Options" }, + role: { dir: "roles", one: "Role", many: "Roles" }, + resource: { dir: "resources", one: "Resource", many: "Resources" }, + component: { dir: "components", one: "Component", many: "Components" }, + system: { dir: "systems", one: "System", many: "Systems" }, + page: { dir: "", one: "Page", many: "Pages" }, +}; + +// Each reference has a name read from both ends: [outgoing, incoming]. +export const RELS = { + about: ["Option", "Claims about it"], + role: ["Role", "Claims for this role"], + from: ["Source", "Claims from it"], + "measured-on": ["Measured on", "Claims measured on it"], + "assessed-on": ["Assessed on", "Claims assessed with it"], + "tested-in": ["Outcome from trial", "Outcomes it produced"], + observed: ["Observations it rests on", "Paper claims it bears on"], + "see-also": ["See also", "Referred to by"], + fills: ["Fills the role", "Options for it"], + "part-of": ["Part of", "Parts"], + "in-system": ["System", "In this system"], + mentions: ["Mentions", "Notes and pages"], + "uses-trial": ["Trial", "Claims from it"], +}; + +// ---------------------------------------------------------------- reading files + +/** YAML documents (the YAML 1.2 core schema: a date stays a YYYY-MM-DD string, and `E-17` stays text, where the + * `yaml` package's 1.1 schema would read it as a number). */ +export function loadYamlDocs(file) { + const text = fs.readFileSync(file, "utf8"); + return YAML.parseAllDocuments(text) + .map((d) => { + if (d.errors.length) throw new Error(`build: ${file}: ${d.errors[0].message}`); + return jsonable(d.toJS({ maxAliasCount: 100 })); + }) + .filter((d) => d && typeof d === "object" && !Array.isArray(d)); +} + +/** Dates as the schema and JSON want them: a date at midnight UTC is YYYY-MM-DD, any other an ISO string. */ +export function jsonable(v) { + if (v instanceof Date) { + const iso = v.toISOString(); + return iso.endsWith("T00:00:00.000Z") ? iso.slice(0, 10) : iso; + } + if (Array.isArray(v)) return v.map(jsonable); + if (v && typeof v === "object") return Object.fromEntries(Object.entries(v).map(([k, x]) => [String(k), jsonable(x)])); + return v; +} + +function walk(dir) { + if (!fs.existsSync(dir)) return []; + const out = []; + for (const ent of fs.readdirSync(dir, { withFileTypes: true })) { + const p = path.join(dir, ent.name); + if (ent.isDirectory()) out.push(...walk(p)); + else if (/\.ya?ml$/.test(ent.name)) out.push(p); + } + return out; +} + +function makeValidator(schema) { + const ajv = new Ajv2020({ allErrors: false, strict: false }); + addFormats(ajv, ["date", "uri"]); + return ajv.compile(schema); +} + +/** Every EvidenceClaim under the directories, validated; an invalid one, or a name used twice, stops the build. */ +export function loadClaims(dirs, root, schema) { + const validate = schema ? makeValidator(schema) : null; + const claims = []; + const seen = new Map(); + for (const d of dirs) { + for (const file of walk(d).sort()) { + for (const doc of loadYamlDocs(file)) { + if (doc.kind !== "EvidenceClaim") continue; + const abs = path.resolve(file); + const rel = abs.startsWith(root + path.sep) ? path.relative(root, abs).split(path.sep).join("/") : path.basename(abs); + if (validate && !validate(doc)) { + const err = validate.errors[0]; + const where = err.instancePath.replace(/^\//, ""); + throw new Error(`build: ${rel} is not a valid EvidenceClaim: ${where}: ${err.message}`); + } + const name = doc.metadata.name; + if (seen.has(name)) throw new Error(`build: claim name ${name} is in both ${seen.get(name)} and ${rel}`); + seen.set(name, rel); + claims.push({ doc, path: rel }); + } + } + } + return claims; +} + +/** queue.json, watch.yaml, seen.jsonl and index.json from the research agent's directory. Each is optional. */ +export function loadResearch(dir) { + const out = {}; + if (!dir || !fs.existsSync(dir)) return out; + for (const [name, key] of [["queue.json", "queue"], ["index.json", "index"]]) { + const p = path.join(dir, name); + if (fs.existsSync(p)) out[key] = JSON.parse(fs.readFileSync(p, "utf8")); + } + const watch = path.join(dir, "watch.yaml"); + if (fs.existsSync(watch)) out.watch = loadYamlDocs(watch)[0] || {}; + const seen = path.join(dir, "seen.jsonl"); + if (fs.existsSync(seen)) { + out.seen = fs.readFileSync(seen, "utf8").split("\n").filter((l) => l.trim()).map((l) => JSON.parse(l)); + } + return out; +} + +/** Where to read from: SITE_CONFIG and SITE_ROOT override site/config.toml and the repository root. */ +export function locate(env = process.env) { + const config = path.resolve(env.SITE_CONFIG || path.join(SITE_DIR, "config.toml")); + const root = path.resolve(env.SITE_ROOT || path.dirname(SITE_DIR)); + return { config, root }; +} + +// ---------------------------------------------------------------- the graph + +export class Site { + constructor(cfg, root) { + this.title = cfg.title || "Morphogen research"; + this.repo = cfg.repo; + this.branch = cfg.branch || "main"; + this.system = cfg.system; + this.labels = cfg.labels || {}; + this.root = root; + this.entities = new Map(); // id -> entity + this.edges = []; + this.unresolved = []; + this.research = {}; + this.pages = []; + } + + // ---- entities and references + + add(type, key, fields) { + const id = `${type}:${key}`; + if (this.entities.has(id)) return this.entities.get(id); + const slug = slugify(key); + const dir = TYPES[type].dir; + const url = (dir ? `${dir}/` : "") + `${slug}.html`; + for (const other of this.entities.values()) { + if (other.url === url) throw new Error(`build: ${id} and ${other.id} would both be written to ${url}`); + } + const ent = { id, type, key, slug, url, title: key, summary: "", out: [], in: [], ...fields }; + this.entities.set(id, ent); + return ent; + } + + link(from, to, rel, extra = {}) { + if (!from || !to) return; + const edge = { from, to, rel, ...extra }; + this.edges.push(edge); + from.out.push(edge); + to.in.push(edge); + } + + of(type) { + return [...this.entities.values()].filter((x) => x.type === type); + } + + get claims() { + return this.of("claim"); + } + + claim(name) { + return this.entities.get(`claim:${name}`) || null; + } + + /** A catalog entity from a Backstage ref (`component:default/x`, `resource:default/x`) or a bare name. */ + catalogRef(ref) { + if (!ref) return null; + const kind = refKind(ref); + const name = refName(ref); + const types = { component: ["role", "option", "component"], resource: ["resource"], system: ["system"] }[kind] + || (kind ? [] : ["role", "option", "component", "resource", "system"]); + for (const t of types) { + const e = this.entities.get(`${t}:${name}`); + if (e) return e; + } + return null; + } + + /** A reference from a Markdown page's front matter: `claim:name`, `trial:E-04a`, `paper:arXiv:2610.00346`, + * `role:x`, `option:x`, `resource:x`, `system:x`, or a Backstage ref. */ + resolve(ref) { + const s = String(ref || "").trim(); + const i = s.indexOf(":"); + if (i < 0) return this.catalogRef(s); + const kind = s.slice(0, i).toLowerCase(); + const rest = s.slice(i + 1); + if (TYPES[kind] && kind !== "page") { + const direct = this.entities.get(`${kind}:${refName(rest)}`) || this.entities.get(`${kind}:${rest}`); + if (direct) return direct; + const want = slugify(rest); + return this.of(kind).find((x) => x.slug === want) || null; + } + return this.catalogRef(s); + } + + /** The distinct entities an entity links to (or from) by one kind of reference, in file order. */ + outs(ent, rel) { + return uniq(ent.out.filter((x) => x.rel === rel).map((x) => x.to)); + } + + ins(ent, rel) { + return uniq(ent.in.filter((x) => x.rel === rel).map((x) => x.from)); + } + + // ---- claim status + + assessments(c) { + return (c.spec.assessments || []).filter((a) => a.system === this.system); + } + + predictions(c) { + return this.assessments(c).filter((a) => a.prediction).map((a) => a.prediction); + } + + /** The distinct statuses of its assessments, in file order; a filter matches a claim on any of them. */ + statuses(c) { + if (c.ours) return [OBSERVATION]; + const out = []; + for (const a of this.assessments(c)) if (!out.includes(a.status)) out.push(a.status); + return out.length ? out : ["untested"]; + } + + /** One status, or `mixed` when its assessments disagree. */ + status(c) { + const s = this.statuses(c); + return s.length === 1 ? s[0] : MIXED; + } + + /** The models an assessment was made on, in a few words ("Inkling 2 Mini"), else every resource's name. */ + configLabel(a) { + const names = []; + for (const ref of a.against || []) { + const res = this.catalogRef(ref); + if (res && res.type === "resource" && res.kind === "model") names.push(res.title); + } + return (names.length ? names : (a.against || []).map(refName)).join(", "); + } + + /** The models an assessment was made on, as entities (resources of type model), for links. */ + configModels(a) { + return (a.against || []).map((r) => this.catalogRef(r)).filter((r) => r && r.type === "resource" && r.kind === "model"); + } + + /** The breakdown in words, for an issue body: `replicated (Inkling 2 Mini); did-not-transfer (LFM3 1.7B)`. */ + statusText(c) { + if (c.ours || this.statuses(c).length === 1) return this.status(c); + return this.assessments(c).map((a) => `${a.status} (${this.configLabel(a) || "unnamed configuration"})`).join("; "); + } + + date(c) { + const dates = []; + for (const a of c.spec.assessments || []) dates.push(a.date, a.prediction?.date, a.outcome?.date); + return dates.filter(Boolean).map(String).sort().at(-1) || ""; + } + + /** Newest first: the latest assessment, prediction or outcome date; then the source id; then the name. */ + sorted(claims = this.claims) { + const key = (c) => [this.date(c), String(c.source.id || ""), c.name]; + return [...claims].sort((x, y) => { + const a = key(x), b = key(y); + for (let i = 0; i < 3; i++) if (a[i] !== b[i]) return a[i] < b[i] ? 1 : -1; + return 0; + }); + } + + /** Every (claim, assessment) for the system with an outcome or a prediction: the rows of a "tested on" table. */ + results(claims = this.claims) { + const rows = []; + for (const c of claims) { + this.assessments(c).forEach((a, i) => rows.push({ claim: c, a, i })); + } + return rows; + } + + // ---- the agent's files + + queue() { + return [...(this.research.queue?.queue || [])]; + } + + queueRank(name) { + const q = this.queue(); + const i = q.findIndex((x) => x.claim === name); + return i < 0 ? null : [i + 1, q[i]]; + } + + /** Where index.json and the claim files disagree (the agent rewrites the index from the files). */ + checkIndex() { + const index = this.research.index; + if (!index) return []; + const listed = new Set((index.claims || []).map((c) => c.name)); + const found = new Set(this.claims.map((c) => c.name)); + return [...[...listed].filter((n) => !found.has(n)).sort().map((n) => `index.json lists ${n}, which no claim file holds`), + ...[...found].filter((n) => !listed.has(n)).sort().map((n) => `${n} is not in index.json`)]; + } + + /** watch.yaml's topics that name a role: the open questions the agent reads papers for. */ + topicsFor(roleName) { + return (this.research.watch?.topics || []).filter((t) => (t.roles || []).map(refName).includes(roleName)); + } + + // ---- predictions and calibration + + /** {p, held, claim, a} for each assessment whose prediction was written before an outcome it now has. */ + calibrationPairs() { + const out = []; + for (const c of this.claims) { + for (const a of this.assessments(c)) { + const pr = a.prediction || {}; + if (pr.before_outcome && a.outcome && (a.status === "replicated" || a.status === "did-not-transfer")) { + out.push({ p: Number(pr.p_transfer), held: a.status === "replicated" ? 1 : 0, claim: c, a }); + } + } + } + return out; + } + + fileUrl(p) { + return `https://github.com/${this.repo}/blob/${this.branch}/${p}`; + } +} + +export function brier(pairs) { + return pairs.length ? pairs.reduce((s, x) => s + (x.p - x.held) ** 2, 0) / pairs.length : null; +} + +function uniq(list) { + return [...new Set(list)]; +} + +/** A resource's short name: its description up to the first comma, semicolon or colon ("Inkling 2 Mini"), else its name. */ +function shortTitle(desc, name) { + const head = String(desc || "").split(/[,;:]/)[0].trim(); + return head && head.length <= 50 ? head : name; +} + +function fills(option) { + const f = option.spec?.morphogen?.fills || []; + return Array.isArray(f) ? f : [f]; +} + +/** A trial's family: E-17b, E-17c and E-17d are all E-17. */ +export function trialFamily(id) { + return String(id).replace(/(\d)[a-z]+$/i, "$1"); +} + +function sourceKey(src) { + return String(src.id || src.url || src.title || "unnamed source"); +} + +/** Read everything and build the graph. Throws on an invalid claim. */ +export function loadSite({ config, root } = locate()) { + const cfg = parseToml(fs.readFileSync(config, "utf8")); + const srcs = cfg.sources || {}; + const schema = srcs.schema ? JSON.parse(fs.readFileSync(path.join(root, srcs.schema), "utf8")) : null; + const raw = loadClaims((srcs.claims || []).map((d) => path.join(root, d)), root, schema); + const docs = []; + const warnings = []; + for (const p of srcs.catalog || []) { + const f = path.join(root, p); + if (fs.existsSync(f)) docs.push(...loadYamlDocs(f)); + else warnings.push(`${p} does not exist; skipped`); + } + const site = new Site(cfg, root); + site.research = loadResearch(srcs.research ? path.join(root, srcs.research) : null); + site.warnings = warnings; + + // catalog entities + for (const d of docs) { + const md = d.metadata || {}; + const spec = d.spec || {}; + if (!md.name) continue; + const base = { doc: d, name: md.name, title: md.name, summary: md.description || "", spec }; + if (d.kind === "System") site.add("system", md.name, base); + else if (d.kind === "Resource") { + site.add("resource", md.name, { ...base, kind: spec.type || "resource", title: shortTitle(md.description, md.name) }); + } else if (d.kind === "Component") { + const type = spec.type === "role" ? "role" : spec.lifecycle === "candidate" ? "option" : "component"; + site.add(type, md.name, base); + } + } + // catalog references + for (const ent of [...site.entities.values()]) { + const spec = ent.spec || {}; + if (ent.type === "option") for (const r of fills(ent)) refEdge(site, ent, r, "fills"); + if (spec.subcomponentOf) refEdge(site, ent, spec.subcomponentOf, "part-of"); + if (spec.system && ent.type !== "system") refEdge(site, ent, `system:${refName(spec.system)}`, "in-system"); + } + + // claims, and the papers and trials they come from + for (const { doc, path: rel } of raw) { + const spec = doc.spec; + const src = spec.source || {}; + const ours = src.kind === "trial" || src.kind === "probe"; + const c = site.add("claim", doc.metadata.name, { + doc, spec, source: src, ours, name: doc.metadata.name, path: rel, + title: doc.metadata.description || spec.claim?.statement || doc.metadata.name, + summary: spec.claim?.statement || "", + }); + let from; + if (ours) { + const key = String(src.id || doc.metadata.name); + from = site.add("trial", key, { title: key, summary: src.title || "", url_ext: src.url, family: trialFamily(key), sourceKind: src.kind }); + if (!from.summary && src.title) from.summary = src.title; + } else { + const key = sourceKey(src); + from = site.add("paper", key, { title: src.title || key, summary: "", source: src, url_ext: src.url }); + } + site.link(c, from, "from"); + } + for (const c of site.claims) { + const spec = c.spec; + refEdge(site, c, spec.about, "about"); + refEdge(site, c, spec.role, "role"); + const cond = spec.conditions || {}; + for (const m of cond.models || []) if (m.ref) refEdge(site, c, m.ref, "measured-on"); + for (const k of ["engine", "dataset", "hardware"]) if (cond[k]?.ref) refEdge(site, c, cond[k].ref, "measured-on"); + (spec.assessments || []).forEach((a, i) => { + const extra = { i, status: a.status, system: a.system }; + for (const r of a.against || []) refEdge(site, c, r, "assessed-on", extra); + const t = a.outcome?.trial; + if (t?.id) { + const trial = site.add("trial", String(t.id), { title: String(t.id), summary: "", url_ext: t.url, family: trialFamily(t.id) }); + if (!trial.url_ext && t.url) trial.url_ext = t.url; + site.link(c, trial, "tested-in", extra); + } + for (const n of a.outcome?.observed || []) claimEdge(site, c, n, "observed", extra); + for (const n of a.see_also || []) claimEdge(site, c, n, "see-also", extra); + }); + } + // the papers the agent saw (seen.jsonl), for a paper page's date, category and abstract + const seen = new Map((site.research.seen || []).map((x) => [String(x.id), x])); + for (const p of site.of("paper")) { + const id = String(p.source?.id || "").replace(/^arxiv:/i, ""); + if (seen.has(id)) p.seen = seen.get(id); + } + return site; +} + +function refEdge(site, from, ref, rel, extra) { + if (!ref) return; + const to = site.catalogRef(ref); + if (to) site.link(from, to, rel, extra); + else site.unresolved.push(`${from.id} ${rel} ${ref}`); +} + +function claimEdge(site, from, name, rel, extra) { + const to = site.claim(name); + if (to) site.link(from, to, rel, extra); + else site.unresolved.push(`${from.id} ${rel} claim ${name}`); +} + +/** Markdown pages (from the Astro content collection) as entities, with their `refs:` resolved. An unknown ref + * stops the build: a page is written by a person, and a broken link there is a mistake to fix. */ +export function attachPages(site, pages) { + for (const p of pages) { + const ent = site.add("page", p.slug, { title: p.title, summary: p.description || "", kind: p.kind, date: p.date, page: p }); + ent.url = `${p.slug}.html`; + for (const r of p.refs || []) { + const to = site.resolve(r); + if (!to) throw new Error(`build: site/content/${p.slug}.md refers to ${r}, which is not on the site`); + site.link(ent, to, "mentions"); + } + } + site.pages = pages; + return site; +} + +// ---------------------------------------------------------------- data files + +export function claimsJson(site) { + return { + system: site.system, + claims: site.sorted().map((c) => ({ + name: c.name, path: c.path, status: site.status(c), statuses: site.statuses(c), date: site.date(c), record: c.doc, + })), + }; +} + +export function graphJson(site) { + const pairs = site.calibrationPairs(); + return { + system: site.system, + nodes: [...site.entities.values()].map((x) => ({ id: x.id, type: x.type, title: x.title, url: x.url, ...(x.kind ? { kind: x.kind } : {}) })), + edges: site.edges.map((x) => ({ from: x.from.id, to: x.to.id, rel: x.rel, ...(x.status ? { status: x.status } : {}) })), + claims: Object.fromEntries(site.claims.map((c) => [c.name, { status: site.status(c), statuses: site.statuses(c), status_text: site.statusText(c) }])), + calibration: { + pairs: pairs.map((x) => ({ claim: x.claim.name, p: x.p, held: x.held, config: site.configLabel(x.a) })), + brier: brier(pairs), + }, + unresolved: site.unresolved, + index_problems: site.checkIndex(), + }; +} + +/** The search index: one row per entity, with the words a search should find it by. */ +export function searchJson(site) { + return [...site.entities.values()].map((x) => { + const words = [x.key, x.title, x.summary]; + if (x.type === "claim") { + const cl = x.spec.claim || {}; + words.push(cl.metric, x.source.id, x.source.title, refName(x.spec.about), refName(x.spec.role)); + for (const m of x.spec.conditions?.models || []) words.push(m.name); + } + if (x.type === "paper") words.push(x.source?.id); + const status = x.type === "claim" ? site.statuses(x).join(" ") : ""; + return { + u: x.url, t: truncate(x.title, 140), k: x.type, ...(x.kind ? { s: x.kind } : {}), ...(status ? { st: status } : {}), + d: truncate(x.summary, 200), w: words.filter(Boolean).join(" ").toLowerCase(), + }; + }); +} diff --git a/site/src/lib/layout.mjs b/site/src/lib/layout.mjs new file mode 100644 index 0000000..4bf8dc8 --- /dev/null +++ b/site/src/lib/layout.mjs @@ -0,0 +1,93 @@ +// The map's layout, computed at build time: one column per kind of entity, nodes ordered within a column by the +// mean position of their neighbours (a few sweeps of the barycentre heuristic), edges drawn as curves. The page is +// a plain SVG of links, so it works without JavaScript; assets/site.js only adds highlighting and filters. +import { truncate } from "./text.mjs"; + +export const COLUMNS = [ + { key: "resources", label: "Models and setup", types: ["resource"] }, + { key: "sources", label: "Papers and trials", types: ["paper", "trial"] }, + { key: "claims", label: "Claims", types: ["claim"] }, + { key: "options", label: "Options", types: ["option", "component"] }, + { key: "roles", label: "Roles", types: ["role", "system"] }, +]; + +const OUTCOME = new Set(["replicated", "did-not-transfer", "not-testable"]); + +/** Which references the map draws: where a claim comes from, what it is about, what it was tested in and on (only + * assessments with a result, or every claim would point at every model), and how options and roles fit. */ +export function mapEdges(site) { + return site.edges.filter((e) => { + if (["from", "about", "fills", "part-of", "tested-in", "measured-on"].includes(e.rel)) return true; + if (e.rel === "assessed-on") return OUTCOME.has(e.status); + return false; + }); +} + +export function layout(site, { colWidth = 230, rowHeight = 22, top = 40, nodeWidth = 180 } = {}) { + const edges = mapEdges(site); + const cols = COLUMNS.map((c) => ({ ...c, nodes: [] })); + const colOf = new Map(); + for (const ent of site.entities.values()) { + const i = cols.findIndex((c) => c.types.includes(ent.type)); + if (i < 0) continue; + cols[i].nodes.push(ent); + colOf.set(ent.id, i); + } + const drawn = edges.filter((e) => colOf.has(e.from.id) && colOf.has(e.to.id) && e.from !== e.to); + const nbrs = new Map(); + for (const e of drawn) { + for (const [a, b] of [[e.from.id, e.to.id], [e.to.id, e.from.id]]) { + if (!nbrs.has(a)) nbrs.set(a, new Set()); + nbrs.get(a).add(b); + } + } + // start: claims by role then option, others by type then name + for (const c of cols) c.nodes.sort((a, b) => (a.type + (a.spec?.role || "") + (a.spec?.about || "") + a.key).localeCompare(b.type + (b.spec?.role || "") + (b.spec?.about || "") + b.key)); + const pos = new Map(); + const index = () => cols.forEach((c) => c.nodes.forEach((n, i) => pos.set(n.id, i / Math.max(1, c.nodes.length - 1)))); + index(); + const order = [2, 1, 3, 0, 4, 2, 1, 3, 0, 4, 2]; + for (const ci of order) { + const c = cols[ci]; + const bary = (n) => { + const ns = [...(nbrs.get(n.id) || [])].filter((x) => pos.has(x)); + return ns.length ? ns.reduce((s, x) => s + pos.get(x), 0) / ns.length : pos.get(n.id); + }; + const keyed = c.nodes.map((n) => [bary(n), n]); + keyed.sort((a, b) => a[0] - b[0]); + c.nodes = keyed.map((x) => x[1]); + index(); + } + const height = top + Math.max(...cols.map((c) => c.nodes.length)) * rowHeight + 20; + const nodes = []; + const at = new Map(); + cols.forEach((c, ci) => { + const offset = top + ((height - top - 20) - c.nodes.length * rowHeight) / 2; + c.x = 10 + ci * colWidth; + c.nodes.forEach((n, i) => { + const y = offset + i * rowHeight; + const node = { ent: n, x: c.x, y, w: nodeWidth, h: rowHeight - 6, label: truncate(n.type === "claim" ? n.key : n.title, 26) }; + nodes.push(node); + at.set(n.id, node); + }); + }); + const seen = new Set(); + const paths = []; + for (const e of drawn) { + const a = at.get(e.from.id), b = at.get(e.to.id); + const k = `${e.from.id}|${e.to.id}|${e.rel}`; + if (seen.has(k)) continue; + seen.add(k); + const [l, r] = a.x <= b.x ? [a, b] : [b, a]; + let d; + if (l.x === r.x) { + const x0 = l.x + l.w, y0 = l.y + l.h / 2, y1 = r.y + r.h / 2; + d = `M${x0} ${y0.toFixed(1)} C${x0 + 30} ${y0.toFixed(1)} ${x0 + 30} ${y1.toFixed(1)} ${x0} ${y1.toFixed(1)}`; + } else { + const x0 = l.x + l.w, y0 = l.y + l.h / 2, x1 = r.x, y1 = r.y + r.h / 2, mx = (x0 + x1) / 2; + d = `M${x0} ${y0.toFixed(1)} C${mx.toFixed(1)} ${y0.toFixed(1)} ${mx.toFixed(1)} ${y1.toFixed(1)} ${x1} ${y1.toFixed(1)}`; + } + paths.push({ d, from: e.from.id, to: e.to.id, rel: e.rel, status: e.status || "" }); + } + return { width: 10 + (cols.length - 1) * colWidth + nodeWidth + 10, height, cols, nodes, paths }; +} diff --git a/site/src/lib/site.mjs b/site/src/lib/site.mjs new file mode 100644 index 0000000..a2afa1c --- /dev/null +++ b/site/src/lib/site.mjs @@ -0,0 +1,27 @@ +// The Astro side of the data layer: the graph from data.mjs, with the Markdown pages of the `pages` collection +// attached so every entity a page names links back to it. Built once per build (again on every request in dev, so +// an edited YAML file shows on reload). +import { getCollection } from "astro:content"; +import { attachPages, loadSite, locate } from "./data.mjs"; + +const RESERVED = new Set(["index", "queue", "predictions", "roles", "map", "search", "notes", "404"]); +let cached = null; +let warned = false; + +export async function getSite() { + if (cached && import.meta.env.PROD) return cached; + const site = loadSite(locate()); + const entries = await getCollection("pages", (e) => !e.data.draft); + for (const e of entries) { + if (RESERVED.has(e.id)) throw new Error(`build: site/content/${e.id}.md would replace the generated ${e.id}.html`); + } + attachPages(site, entries.map((e) => ({ ...e.data, slug: e.id, entry: e }))); + if (!warned) { + for (const w of [...site.warnings, ...site.unresolved.map((u) => `unresolved reference: ${u}`), ...site.checkIndex()]) { + console.warn(`build: ${w}`); + } + warned = true; + } + cached = site; + return site; +} diff --git a/site/src/lib/steer.mjs b/site/src/lib/steer.mjs new file mode 100644 index 0000000..dd8fa40 --- /dev/null +++ b/site/src/lib/steer.mjs @@ -0,0 +1,61 @@ +// Steering: buttons open a prefilled GitHub new-issue page. Each body ends with the lines the research agent reads +// first (morphogen/research.py, parse_issue): `research-action:`, `system:`, and for a claim `research-claim:`, +// `claim-file:`, `status:` and `p_transfer:`. Only names and paths go in, never text from a paper: an issue body is +// rendered as Markdown, and a paper's words could mention people or carry links. + +/** A prefilled new-issue URL. GitHub reads `title`, `body` and comma-separated `labels` from the query. */ +export function issueUrl(repo, title, body, labels) { + const enc = (s) => encodeURIComponent(s).replace(/[!'()*]/g, (c) => "%" + c.charCodeAt(0).toString(16).toUpperCase()); + const repoPath = String(repo).split("/").map(enc).join("/"); + const q = [["title", title], ["body", body]]; + if (labels && labels.length) q.push(["labels", labels.join(",")]); + return `https://github.com/${repoPath}/issues/new?` + q.map(([k, v]) => `${k}=${enc(v)}`).join("&"); +} + +/** The body of a steering issue; `claim` is a graph claim entity or null. */ +export function issueBody(action, site, claim, extra = []) { + const lines = [...extra, "", "---", `research-action: ${action}`, `system: ${site.system}`]; + if (claim) { + lines.push(`research-claim: ${claim.name}`, `claim-file: ${site.fileUrl(claim.path)}`, `status: ${site.statusText(claim)}`); + const preds = site.predictions(claim); + if (preds.length === 1) lines.push(`p_transfer: ${preds[0].p_transfer}`); + } + return lines.join("\n").trim() + "\n"; +} + +export function issue(site, action, title, body) { + return issueUrl(site.repo, title, body, site.labels[action] || []); +} + +export const CLAIM_BUTTONS = [ + ["prioritise", "Prioritise", "Test this claim next", ["Please test this claim sooner.", "", "Why it is worth a trial now:", ""]], + ["reject", "Reject", "Reject it", + ["Please drop this claim from the queue.", "", "Why (does not apply here, already known, not a real gain):", ""]], + ["dispute", "Dispute prediction", "Dispute the prediction", + ["I think the transfer prediction is wrong.", "", "My probability that it holds here:", "", "Which conditions it gets wrong:", ""]], +]; + +/** The steering buttons for one claim: [action, url, text]. None for a claim of our own. */ +export function claimButtons(site, c) { + if (c.ours) return []; + return CLAIM_BUTTONS.filter(([action]) => action !== "dispute" || site.predictions(c).length) + .map(([action, verb, text, extra]) => [action, issue(site, action, `${verb}: ${c.name}`, issueBody(action, site, c, extra)), text]); +} + +export function questionUrl(site) { + return issue(site, "question", "Question to watch: ", issueBody("question", site, null, [ + "What should the research agent look for? A method, a role, an open question from the system's docs.", "", + "Question:", "", "Why it matters here:", ""])); +} + +export function proposeRoleUrl(site) { + return issue(site, "propose-role", "Role to watch: ", issueBody("propose-role", site, null, [ + "A part of the system the research agent should read papers for.", "", "The part, and what it does:", "", + "What a better option would improve:", ""])); +} + +export function proposeOptionUrl(site, role) { + return issue(site, "propose-option", `Option to watch for ${role}: `, issueBody("propose-option", site, null, [ + `An option, paper or method the research agent should look at for the role \`${role}\`.`, "", + "Option or paper:", "", "Why it might help here:", "", `role: ${role}`])); +} diff --git a/site/src/lib/text.mjs b/site/src/lib/text.mjs new file mode 100644 index 0000000..71969a2 --- /dev/null +++ b/site/src/lib/text.mjs @@ -0,0 +1,128 @@ +// Small helpers shared by the data layer and the pages. Plain JavaScript, so `node --test` runs them without Astro. + +export const STATUSES = ["untested", "predicted", "replicated", "did-not-transfer", "not-testable"]; +export const OBSERVATION = "observation"; // a claim of this system's own (source.kind trial or probe): it has no status +export const MIXED = "mixed"; // a claim whose assessments for the system disagree +export const STATUS_TEXT = { + untested: "Untested", + predicted: "Predicted", + replicated: "Replicated", + "did-not-transfer": "Did not transfer", + "not-testable": "Not testable", + [OBSERVATION]: "Our observation", + [MIXED]: "Mixed", +}; +export const STATUS_HELP = { + untested: "Catalogued, with the reason it has not been tried here.", + predicted: "A probability that it holds here was written before any outcome.", + replicated: "Tried on this system's setup, and the finding held.", + "did-not-transfer": "Tried on this system's setup, and the finding did not hold.", + "not-testable": "Cannot be tried here, and why.", + [OBSERVATION]: "A measurement this system ran itself, which a paper's outcome links to.", + [MIXED]: "Tried on more than one configuration, with different results.", +}; +export const QUOTE_SHORT = { checked: "quote checked", unchecked: "quote unchecked", none: "no quote" }; +export const QUOTE_TEXT = { + checked: "Quote checked against the source", + unchecked: "Quote copied, not yet checked", + none: "No verbatim quote taken", +}; + +/** The URL if it is http(s) with a host, else null: a file must not be able to write a javascript: link. */ +export function safeUrl(url) { + if (typeof url !== "string") return null; + const s = url.trim(); + if (!/^https?:\/\//i.test(s)) return null; + let parts; + try { + parts = new URL(s); + } catch { + return null; + } + if ((parts.protocol !== "http:" && parts.protocol !== "https:") || !parts.host) return null; + return s; +} + +/** `component:default/decision-backend` -> `decision-backend`. */ +export function refName(ref) { + if (!ref) return ""; + const s = String(ref); + const afterKind = s.includes(":") ? s.slice(s.indexOf(":") + 1) : s; + return afterKind.includes("/") ? afterKind.slice(afterKind.indexOf("/") + 1) : afterKind; +} + +/** `component:default/x` -> `component`; a bare name has no kind. */ +export function refKind(ref) { + const s = String(ref || ""); + const i = s.indexOf(":"); + return i > 0 && !s.slice(0, i).includes("/") ? s.slice(0, i).toLowerCase() : ""; +} + +/** A file-name-safe slug: lower case, runs of anything but letters, digits, dots and dashes become one dash. */ +export function slugify(value) { + return String(value ?? "") + .toLowerCase() + .replace(/[^a-z0-9.\-]+/g, "-") + .replace(/\.{2,}/g, ".") + .replace(/^[-.]+|[-.]+$/g, "") || "x"; +} + +export function truncate(text, n) { + const s = String(text ?? "").split(/\s+/).filter(Boolean).join(" "); + return s.length <= n ? s : s.slice(0, n - 1).trimEnd() + "…"; +} + +export function fmtNumber(value) { + if (value === null || value === undefined) return "not stated"; + if (typeof value === "object") { + const over = value.over ? ` over ${value.over}` : ""; + return `${value.min} to ${value.max}${over}`; + } + return String(value); +} + +export function fmtInterval(iv) { + if (!iv) return ""; + const how = [iv.level ? `${Math.round(iv.level * 100)}%` : "", iv.method || ""].filter(Boolean).join(", "); + return `[${iv.low}, ${iv.high}]` + (how ? ` (${how})` : ""); +} + +/** One measure as [label, value] rows. */ +export function measureRows(m) { + const better = { higher: "higher is better", lower: "lower is better" }[m.better || ""] || ""; + const unit = m.unit ? ` ${m.unit}` : ""; + const hasValue = m.value !== null && m.value !== undefined; + const value = fmtNumber(m.value) + (hasValue ? unit : ""); + const rows = [["Metric", (m.metric || "") + (better ? ` (${better})` : "")]]; + rows.push(["Value", value + (m.interval ? " " + fmtInterval(m.interval) : "")]); + if (m.where) rows.push(["Where", m.where]); + const b = m.baseline; + if (b) { + const bval = b.value === null || b.value === undefined ? "" : `: ${fmtNumber(b.value)}`; + rows.push(["Against", `${b.name || ""}${bval}` + (b.interval ? " " + fmtInterval(b.interval) : "")]); + } + return rows; +} + +/** A value from a file as display text (objects as compact JSON). */ +export function asText(v) { + if (v === null || v === undefined) return ""; + return typeof v === "string" ? v : typeof v === "object" ? JSON.stringify(v) : String(v); +} + +/** `stated | repo@commit:path | "quote"` lines -> [source, quote]. */ +export function parseEvidence(annotation) { + const out = []; + for (const line of String(annotation || "").split("\n")) { + const i = line.indexOf("|"); + const j = i < 0 ? -1 : line.indexOf("|", i + 1); + if (i < 0 || j < 0) continue; + out.push([line.slice(i + 1, j).trim(), line.slice(j + 1).trim().replace(/^"+|"+$/g, "")]); + } + return out; +} + +/** `../` repeated once per directory below the site root, for relative links (the site may live under /Repo/). */ +export function up(depth) { + return "../".repeat(depth); +} diff --git a/site/src/pages/[...slug].astro b/site/src/pages/[...slug].astro new file mode 100644 index 0000000..06e2c6c --- /dev/null +++ b/site/src/pages/[...slug].astro @@ -0,0 +1,31 @@ +--- +// A Markdown page from site/content: the shared layout, the page's text, any generated blocks it asks for, and +// links to the entities its front matter names (`refs:`), each of which links back here. +import { render } from "astro:content"; +import Base from "../layouts/Base.astro"; +import Blocks from "../components/Blocks.astro"; +import { TYPES } from "../lib/data.mjs"; +import { getSite } from "../lib/site.mjs"; + +export async function getStaticPaths() { + const site = await getSite(); + return site.of("page").map((p) => ({ params: { slug: p.key }, props: { id: p.id } })); +} +const site = await getSite(); +const p = site.entities.get(Astro.props.id); +const depth = p.key.split("/").length - 1; +const u = "../".repeat(depth); +const { Content } = await render(p.page.entry); +const refs = site.outs(p, "mentions"); +const nav = typeof p.page.nav === "number" ? `${p.key}.html` : p.kind !== "page" ? "notes.html" : ""; +--- + +
    +

    {p.kind === "page" ? "Page" : p.kind === "announcement" ? "Announcement" : "Note"}{p.date && <> · }

    +

    {p.title}

    + {p.summary &&

    {p.summary}

    } +
    +
    + +{refs.length > 0 &&

    This page is about

      {refs.map((x) =>
    • {TYPES[x.type].one} {x.title}
    • )}
    } + diff --git a/site/src/pages/claims/[name].astro b/site/src/pages/claims/[name].astro new file mode 100644 index 0000000..1fd7f4b --- /dev/null +++ b/site/src/pages/claims/[name].astro @@ -0,0 +1,92 @@ +--- +// One claim: the source and quote, the measure and conditions, a "tested on" table (model by result), every +// assessment, the option and role, steering, and every reference to and from it. +import Base from "../../layouts/Base.astro"; +import Assessment from "../../components/Assessment.astro"; +import ClaimRef from "../../components/ClaimRef.astro"; +import Conditions from "../../components/Conditions.astro"; +import ExtLink from "../../components/ExtLink.astro"; +import MeasureRows from "../../components/MeasureRows.astro"; +import Mentions from "../../components/Mentions.astro"; +import Quote from "../../components/Quote.astro"; +import References from "../../components/References.astro"; +import ResultsTable from "../../components/ResultsTable.astro"; +import StatusBadges from "../../components/StatusBadges.astro"; +import Steer from "../../components/Steer.astro"; +import { fmtNumber, refName, truncate } from "../../lib/text.mjs"; +import { getSite } from "../../lib/site.mjs"; + +export async function getStaticPaths() { + const site = await getSite(); + return site.claims.map((c) => ({ params: { name: c.slug }, props: { id: c.id } })); +} +const site = await getSite(); +const c = site.entities.get(Astro.props.id); +const md = c.doc.metadata, src = c.source, cl = c.spec.claim || {}, cond = c.spec.conditions || {}; +const option = site.catalogRef(c.spec.about); +const role = site.catalogRef(c.spec.role); +const from = site.outs(c, "from")[0]; +const reporting = { self: "the source measures its own method", independent: "the source measures methods it did not make", + ours: "this system's own trial", unknown: "not stated who measured it" }[cl.reporting] || ""; +const effect = cl.effect_size; +const srcBits = [src.id, src.version && `version ${src.version}`].filter(Boolean).join(" · "); +const rows = site.assessments(c).map((a) => ({ claim: c, a })); +const bearsOn = site.ins(c, "observed").concat(site.ins(c, "see-also").filter((x) => !site.ins(c, "observed").includes(x))); +const ev = option?.spec?.morphogen?.evaluation || {}; +--- + +

    Claims {c.name}

    +
    +
    +
    {role ? {refName(c.spec.role)} : refName(c.spec.role)} · option {option ? {refName(c.spec.about)} : refName(c.spec.about)}
    +

    {md.description || c.name}

    +

    {cl.statement || ""}

    +
    + + {rows.length > 0 &&

    Tested on

    } + +
    +

    Source

    +

    {from && <> · {from.type === "trial" ? "every claim from this trial" : "every claim from this paper"}}
    {srcBits} ({src.kind})

    +
    Where
    {src.location || ""}
    Read
    {src.read || ""}
    + +
    + +
    +
    +

    Measure and effect

    +
    +
    Finding
    {cl.finding} against the baseline
    + {effect ? <>
    Effect
    {fmtNumber(effect.value)} ({effect.kind}){effect.note && <> · {effect.note}}
    : <>
    Effect
    No effect size stated (a difference of two stated numbers is not one)
    } + {cl.significance && <>
    Significance
    {cl.significance}
    } +
    Runs · cases
    {cl.runs ?? "not stated"} · {cl.cases ?? "not stated"}
    +
    Reported by
    {cl.reporting}: {reporting}
    +
    + {(cl.also || []).length > 0 && <>

    Also measured

    {cl.also.map((m) =>
    )}} + {cl.note &&

    {cl.note}

    } +
    +
    +

    Conditions

    + +
    +
    + +
    +

    {c.ours ? "Where it is used" : "Status here"}

    + {(c.spec.assessments || []).length ? c.spec.assessments.map((a) => ) + : c.ours ? (bearsOn.length ? <>

    This is a measurement this system ran. Claims from papers that it bears on:

      {bearsOn.map((o) =>
    • )}
    + :

    This is a measurement this system ran. No paper's claim links to it yet.

    ) + :

    Not assessed for this system yet.

    } +
    + + {option &&

    The option

    +

    {option.name}, a candidate for the role {role ? {role.name} : {refName(c.spec.role)}}.

    +

    {option.summary}

    + {(ev.need || ev.method || ev.result) &&
    {ev.need && <>
    What would count
    {ev.need}
    }{ev.method && <>
    How it is measured
    {ev.method}
    }{ev.result && <>
    Result so far
    {ev.result}
    }
    } +
    } + + + +

    The record:

    +
    + diff --git a/site/src/pages/components/[name].astro b/site/src/pages/components/[name].astro new file mode 100644 index 0000000..7859a5c --- /dev/null +++ b/site/src/pages/components/[name].astro @@ -0,0 +1,22 @@ +--- +// A Component that is neither a role nor an option. +import Base from "../../layouts/Base.astro"; +import EntityHead from "../../components/EntityHead.astro"; +import Evidence from "../../components/Evidence.astro"; +import Mentions from "../../components/Mentions.astro"; +import References from "../../components/References.astro"; +import { getSite } from "../../lib/site.mjs"; + +export async function getStaticPaths() { + const site = await getSite(); + return site.of("component").map((x) => ({ params: { name: x.slug }, props: { id: x.id } })); +} +const site = await getSite(); +const x = site.entities.get(Astro.props.id); +--- + + + + + + diff --git a/site/src/pages/data/claims.json.js b/site/src/pages/data/claims.json.js new file mode 100644 index 0000000..a451da0 --- /dev/null +++ b/site/src/pages/data/claims.json.js @@ -0,0 +1,7 @@ +// data/claims.json: the same records the pages are built from, for other tools. +import { claimsJson } from "../../lib/data.mjs"; +import { getSite } from "../../lib/site.mjs"; + +export async function GET() { + return new Response(JSON.stringify(claimsJson(await getSite()), null, 1)); +} diff --git a/site/src/pages/data/graph.json.js b/site/src/pages/data/graph.json.js new file mode 100644 index 0000000..053f947 --- /dev/null +++ b/site/src/pages/data/graph.json.js @@ -0,0 +1,7 @@ +// data/graph.json: the same records the pages are built from, for other tools. +import { graphJson } from "../../lib/data.mjs"; +import { getSite } from "../../lib/site.mjs"; + +export async function GET() { + return new Response(JSON.stringify(graphJson(await getSite()), null, 1)); +} diff --git a/site/src/pages/data/search.json.js b/site/src/pages/data/search.json.js new file mode 100644 index 0000000..7405129 --- /dev/null +++ b/site/src/pages/data/search.json.js @@ -0,0 +1,7 @@ +// data/search.json: the same records the pages are built from, for other tools. +import { searchJson } from "../../lib/data.mjs"; +import { getSite } from "../../lib/site.mjs"; + +export async function GET() { + return new Response(JSON.stringify(searchJson(await getSite()), null, 1)); +} diff --git a/site/src/pages/index.astro b/site/src/pages/index.astro new file mode 100644 index 0000000..df29f6e --- /dev/null +++ b/site/src/pages/index.astro @@ -0,0 +1,60 @@ +--- +// The feed: every claim, newest first, filtered in the page by search, role, source and status (Alpine's `feed` +// component in assets/site.js; the filters are kept in the address). Without JavaScript every claim is listed. +import Base from "../layouts/Base.astro"; +import Meter from "../components/Meter.astro"; +import StatusBadge from "../components/StatusBadge.astro"; +import StatusBadges from "../components/StatusBadges.astro"; +import { getSite } from "../lib/site.mjs"; +import { questionUrl } from "../lib/steer.mjs"; +import { OBSERVATION, QUOTE_SHORT, QUOTE_TEXT, STATUSES, STATUS_TEXT, refName, truncate } from "../lib/text.mjs"; +const site = await getSite(); +const claims = site.sorted(); +const all = [...STATUSES, OBSERVATION]; +const counts = Object.fromEntries(all.map((s) => [s, 0])); +for (const c of claims) for (const s of site.statuses(c)) counts[s] = (counts[s] || 0) + 1; +const roles = [...new Set(claims.map((c) => refName(c.spec.role)))].sort(); +const sources = new Map(); +for (const c of claims) if (!sources.has(c.source.id || c.source.title || "")) sources.set(c.source.id || c.source.title || "", c.source.title || ""); +const srcOpts = [...sources.entries()].sort((a, b) => (a[0] < b[0] ? 1 : -1)); +const paperN = claims.filter((c) => !c.ours).length; +const short = (src) => src.id || src.title || ""; +function item(c) { + const src = c.source, cl = c.spec.claim || {}; + const role = refName(c.spec.role), option = refName(c.spec.about); + const search = [c.name, c.doc.metadata.description || "", cl.statement || "", src.title || "", src.id || "", role, option, cl.metric || "", + ...(c.spec.conditions?.models || []).map((m) => m.name || ""), ...(c.spec.assessments || []).map((a) => site.configLabel(a))].join(" ").toLowerCase(); + return { c, src, role, option, search, qs: src.quote_status || "none", from: c.out.find((e) => e.rel === "from")?.to }; +} +--- + +
    +

    The research agent's catalog

    +

    Claims from papers, checked against this system

    +

    The agent reads new papers for the roles in the map, writes down each claimed gain with the conditions it was measured under, and predicts whether it will hold here. Trials behind the judge then score the prediction. {paperN} claims from papers so far, for {refName(site.system)}.

    +
      {all.filter((s) => counts[s]).map((s) =>
    • {counts[s]}
    • )}
    +

    Propose a question to watch The map of what links to what

    +
    + +
    + +

    +
      +{claims.map(item).map((x) =>
    1. + +
    2. )} +
    + +
    + diff --git a/site/src/pages/map.astro b/site/src/pages/map.astro new file mode 100644 index 0000000..755ca39 --- /dev/null +++ b/site/src/pages/map.astro @@ -0,0 +1,36 @@ +--- +// The relations graph: every claim between the papers and trials it comes from (and the models it was tested on) +// and the options and roles it bears on. A static SVG of links, laid out at build time (src/lib/layout.mjs); +// Alpine's `graph` component (assets/site.js) highlights a node's neighbours and filters by kind. +import Base from "../layouts/Base.astro"; +import { TYPES } from "../lib/data.mjs"; +import { layout } from "../lib/layout.mjs"; +import { getSite } from "../lib/site.mjs"; +const site = await getSite(); +const g = layout(site); +const types = [...new Set(g.nodes.map((n) => n.ent.type))]; +const cls = (n) => `node t-${n.ent.type}${n.ent.type === "claim" ? ` s-${site.status(n.ent)}` : ""}`; +--- + +
    +

    How it all links

    +

    The map

    +

    Each claim sits between where it came from (a paper or one of our trials, and the models it was tested on) and what it bears on (an option, and the role that option could fill). Point at a node to see its neighbours; open it for its page. Models link only to claims with a result on them; every page lists the rest.

    +
    +
    + +
    + +The map: {g.nodes.length} entities and {g.paths.length} links +{g.cols.map((c) => {c.label})} +{g.paths.map((p) => )} +{g.nodes.map((n) => {n.label}{TYPES[n.ent.type].one}: {n.ent.title})} + +
    +
    +

    Reading it

    +

    Claims are coloured by their status here: green replicated, red did not transfer, amber mixed, blue predicted, grey untested, purple our own observation. A link from a claim to a model means the claim was measured on it, or tested on it with a result. data/graph.json has every entity and reference, for other tools; search lists everything by kind.

    +
    + diff --git a/site/src/pages/notes.astro b/site/src/pages/notes.astro new file mode 100644 index 0000000..689dbc1 --- /dev/null +++ b/site/src/pages/notes.astro @@ -0,0 +1,12 @@ +--- +// Notes and announcements: the Markdown files in site/content with kind note or announcement, newest first. +import Base from "../layouts/Base.astro"; +import { getSite } from "../lib/site.mjs"; +const site = await getSite(); +const listed = site.of("page").filter((p) => p.kind !== "page").sort((a, b) => String(b.date || "").localeCompare(String(a.date || ""))); +--- + +

    From the people running it

    Notes and announcements

    +{listed.length ?
      {listed.map((p) =>
    1. {p.kind}{p.date && }

      {p.title}

      {p.summary &&

      {p.summary}

      }
    2. )}
    + :

    None yet. A Markdown file in site/content/notes becomes one (site/README.md).

    } + diff --git a/site/src/pages/options/[name].astro b/site/src/pages/options/[name].astro new file mode 100644 index 0000000..3596f8f --- /dev/null +++ b/site/src/pages/options/[name].astro @@ -0,0 +1,41 @@ +--- +// One option: the method, the roles it could fill, what would count and the result so far, a "tested on" table +// for its claims, and every reference to and from it. +import Base from "../../layouts/Base.astro"; +import ClaimList from "../../components/ClaimList.astro"; +import EntityHead from "../../components/EntityHead.astro"; +import Evidence from "../../components/Evidence.astro"; +import ExtLink from "../../components/ExtLink.astro"; +import Mentions from "../../components/Mentions.astro"; +import References from "../../components/References.astro"; +import ResultsTable from "../../components/ResultsTable.astro"; +import StatusCounts from "../../components/StatusCounts.astro"; +import { getSite } from "../../lib/site.mjs"; +import { truncate } from "../../lib/text.mjs"; + +export async function getStaticPaths() { + const site = await getSite(); + return site.of("option").map((o) => ({ params: { name: o.slug }, props: { id: o.id } })); +} +const site = await getSite(); +const o = site.entities.get(Astro.props.id); +const roles = site.outs(o, "fills"); +const claims = site.ins(o, "about"); +const ev = o.spec?.morphogen?.evaluation || {}; +const docs = o.spec?.morphogen?.docs; +const tested = site.results(claims).filter((x) => x.a.outcome); +--- + + +

    A candidate for {roles.length ? roles.map((r, i) => <>{i > 0 && ", "}the role {r.name}) : "no role named"}.{docs?.url && <> Described at .}

    +

    +
    + +{(ev.need || ev.method || ev.result) &&

    Evaluation

    {ev.need && <>
    What would count
    {ev.need}
    }{ev.method && <>
    How it is measured
    {ev.method}
    }{ev.result && <>
    Result so far
    {ev.result}
    }
    } +

    Tested on

    + {tested.length ? :

    No claim about this option has an outcome on this system yet.

    } +
    +

    Claims about it ({claims.length})

    + + + diff --git a/site/src/pages/papers/[id].astro b/site/src/pages/papers/[id].astro new file mode 100644 index 0000000..a9e1526 --- /dev/null +++ b/site/src/pages/papers/[id].astro @@ -0,0 +1,43 @@ +--- +// One paper (or other outside source): its claims with their status here, the options and roles they bear on, +// what the agent saw of it, and every reference to and from it. +import Base from "../../layouts/Base.astro"; +import ClaimList from "../../components/ClaimList.astro"; +import EntityHead from "../../components/EntityHead.astro"; +import ExtLink from "../../components/ExtLink.astro"; +import Mentions from "../../components/Mentions.astro"; +import References from "../../components/References.astro"; +import ResultsTable from "../../components/ResultsTable.astro"; +import StatusCounts from "../../components/StatusCounts.astro"; +import { getSite } from "../../lib/site.mjs"; + +export async function getStaticPaths() { + const site = await getSite(); + return site.of("paper").map((x) => ({ params: { id: x.slug }, props: { id: x.id } })); +} +const site = await getSite(); +const p = site.entities.get(Astro.props.id); +const claims = site.ins(p, "from"); +const options = [...new Set(claims.flatMap((c) => site.outs(c, "about")))]; +const roles = [...new Set(claims.flatMap((c) => site.outs(c, "role")))]; +const rows = site.results(claims); +const src = p.source || {}; +const seen = p.seen; +--- + + +

    {[src.id, src.version && `version ${src.version}`].filter(Boolean).join(" · ")} · {seen?.published && <> · published {seen.published}}{seen?.category && <> · {seen.category}}{seen?.seen && <> · seen by the agent {seen.seen}}

    +

    +
    +
    +

    Options and roles

    +

    Options

    +

    Roles

    +
    +{seen?.abstract &&

    Abstract

    {seen.abstract}

    } +
    +

    Its claims ({claims.length})

    +{rows.length > 0 &&

    Tested on

    } + + + diff --git a/site/src/pages/predictions.astro b/site/src/pages/predictions.astro new file mode 100644 index 0000000..18a71d0 --- /dev/null +++ b/site/src/pages/predictions.astro @@ -0,0 +1,39 @@ +--- +// Predictions against outcomes: the calibration chart and Brier score, what is waiting, and what does not count. +import Base from "../layouts/Base.astro"; +import Calibration from "../components/Calibration.astro"; +import Meter from "../components/Meter.astro"; +import StatusBadge from "../components/StatusBadge.astro"; +import { brier } from "../lib/data.mjs"; +import { getSite } from "../lib/site.mjs"; +import { truncate } from "../lib/text.mjs"; +const site = await getSite(); +const pairs = site.calibrationPairs(); +const waiting = [], unscored = []; +for (const c of site.sorted()) for (const a of site.assessments(c)) { + if (a.status === "predicted" && a.prediction) waiting.push({ c, a }); + else if ((a.status === "replicated" || a.status === "did-not-transfer") && !a.prediction?.before_outcome) unscored.push({ c, a }); +} +waiting.sort((p, q) => q.a.prediction.p_transfer - p.a.prediction.p_transfer); +const b = brier(pairs); +const cfg = (a) => site.configLabel(a); +--- + +
    +

    Scoring the agent

    +

    Predictions against outcomes

    +

    Before a claim is tried, the agent writes the probability that its finding holds on this system. When the trial reports, the prediction is scored. Over time this shows which kinds of claims carry over, and how far to trust the agent's guesses.

    +
    +
    +

    Calibration

    + {pairs.length ?

    {pairs.length} predictions written before their outcome now have one. Brier score {b.toFixed(3)} (0 is perfect; always saying 0.5 scores 0.250).

    + :

    No prediction has an outcome yet, so there is nothing to score. The chart fills in as trials report: each dot is a group of predictions, placed at their average probability and at the share that held. The small dots under the axis are predictions still waiting. A claim tried on two configurations counts twice.

    } + x.a.prediction.p_transfer)} /> +
    +

    Waiting for a trial ({waiting.length})

    +
    {waiting.length ? waiting.map(({ c, a }) => ) : }
    ClaimPrediction
    {truncate(c.title, 90)}{cfg(a) && <> on {cfg(a)}}
    None.
    +

    Who wrote each one is on its page. To argue with one, open the claim and use "Dispute the prediction".

    +
    +{pairs.length > 0 &&

    Scored

    {pairs.map(({ p, claim, a }) => )}
    ClaimPredictionOutcome
    {truncate(claim.title, 90)}{cfg(a) && <> on {cfg(a)}}
    } +{unscored.length > 0 &&

    Outcomes that do not count

    These were tried before anyone wrote a probability, so they say nothing about the agent's calibration.

    } + diff --git a/site/src/pages/queue.astro b/site/src/pages/queue.astro new file mode 100644 index 0000000..3f854e7 --- /dev/null +++ b/site/src/pages/queue.astro @@ -0,0 +1,37 @@ +--- +// Next to test: the agent's queue.json, best first, with its plan, cost, score and steering. +import Base from "../layouts/Base.astro"; +import Meter from "../components/Meter.astro"; +import { getSite } from "../lib/site.mjs"; +import { issue, issueBody } from "../lib/steer.mjs"; +import { refName } from "../lib/text.mjs"; +const site = await getSite(); +const q = site.research.queue || {}; +const items = site.queue().map((it, i) => { + const c = site.claim(it.claim || ""); + const role = site.catalogRef(it.role), about = site.catalogRef(it.about); + const steer = [["prioritised_by", "prioritised"], ["rejected_by", "rejected"], ["disputed_by", "disputed"]] + .filter(([k]) => (it[k] || []).length).map(([k, text]) => `${text} by ${it[k].map(String).join(", ")}`); + const nums = [["score", typeof it.score === "number" ? it.score.toFixed(3) : "none"], ["bits", it.information_bits], ["hours", it.cost_hours]] + .filter(([, v]) => v !== undefined && v !== null); + const pri = c && issue(site, "prioritise", `Prioritise: ${c.name}`, issueBody("prioritise", site, c, ["Please test this claim sooner.", "", "Why it is worth a trial now:", ""])); + const rej = c && issue(site, "reject", `Reject: ${c.name}`, issueBody("reject", site, c, ["Please drop this claim from the queue.", "", "Why:", ""])); + return { it, i: i + 1, c, role, about, steer, nums, pri, rej }; +}); +--- + +
    +

    The research agent's queue

    +

    Next to test

    +

    Claims ranked by what a trial would teach for its cost: a prediction near 0.5 teaches the most, a cheap trial costs the least.{q.date && ` Ranked on ${q.date}.`}

    + {q.how &&

    {q.how}

    } +
    +{items.length ?
      {items.map((x) =>
    1. {String(x.i).padStart(2, "0")}
      +
      {x.role ? {refName(x.it.role)} : refName(x.it.role)} · option {x.about ? {refName(x.it.about)} : refName(x.it.about)}{typeof x.it.p_transfer === "number" && }
      +

      {x.c ? {x.c.title} : x.it.claim}

      +

      {x.nums.map(([k, v]) => {k} {v})}{x.steer.map((s) => {s})}

      +{x.it.plan &&

      Plan
      {x.it.plan}

      } +{x.it.reason &&
      Why this probability

      {x.it.reason}

      } +{x.c &&

      Test sooner Reject

      } +
    2. )}
    :

    No queue yet: the research agent writes one (research/queue.json) when it ranks its claims.

    } + diff --git a/site/src/pages/resources/[name].astro b/site/src/pages/resources/[name].astro new file mode 100644 index 0000000..f148947 --- /dev/null +++ b/site/src/pages/resources/[name].astro @@ -0,0 +1,43 @@ +--- +// One resource (a model, an engine, a GPU, a dataset): every claim assessed with it and each result, our own +// measurements on it, the trials it was used in, and every reference to and from it. +import Base from "../../layouts/Base.astro"; +import ClaimList from "../../components/ClaimList.astro"; +import EntityHead from "../../components/EntityHead.astro"; +import Evidence from "../../components/Evidence.astro"; +import Mentions from "../../components/Mentions.astro"; +import References from "../../components/References.astro"; +import ResultsTable from "../../components/ResultsTable.astro"; +import { getSite } from "../../lib/site.mjs"; +import { truncate } from "../../lib/text.mjs"; + +export async function getStaticPaths() { + const site = await getSite(); + return site.of("resource").map((x) => ({ params: { name: x.slug }, props: { id: x.id } })); +} +const site = await getSite(); +const res = site.entities.get(Astro.props.id); +const assessed = site.ins(res, "assessed-on"); +const rows = site.results(assessed).filter((x) => (x.a.against || []).some((r) => site.catalogRef(r) === res)); +const results = rows.filter((x) => x.a.outcome || ["replicated", "did-not-transfer", "not-testable"].includes(x.a.status)); +const pending = rows.filter((x) => !results.includes(x)); +const measured = site.ins(res, "measured-on"); +const trials = [...new Set([...measured.flatMap((c) => site.outs(c, "from")), ...assessed.flatMap((c) => site.outs(c, "tested-in")) + .filter((t) => rows.some((x) => x.a.outcome?.trial?.id === t.key))])].filter((t) => t.type === "trial"); +const kindText = { model: "Model", engine: "Engine", hardware: "Hardware", dataset: "Dataset" }[res.kind] || "Resource"; +--- + + +

    {res.name}{site.outs(res, "in-system").map((s) => <> · in {s.name})}

    +

    {results.length} result{results.length === 1 ? "" : "s"} from papers' claims tested with it · {pending.length} predicted or untested · {measured.length} of our own measurements on it · {trials.length} trial{trials.length === 1 ? "" : "s"}

    +
    + +

    Papers' claims tested with it ({results.length})

    + {results.length ? :

    No claim from a paper has been tested with it yet.

    } +
    +{trials.length > 0 &&

    Trials it was used in

      {trials.map((t) =>
    • {t.key} {t.summary}
    • )}
    } +{measured.length > 0 &&

    Measurements on it ({measured.length})

    } +{pending.length > 0 &&

    Predicted or not yet tried with it ({pending.length})

    } + + + diff --git a/site/src/pages/roles.astro b/site/src/pages/roles.astro new file mode 100644 index 0000000..ce3e518 --- /dev/null +++ b/site/src/pages/roles.astro @@ -0,0 +1,44 @@ +--- +// The roles in the map, the options for each, what the agent watches, and this system's conditions. +import Base from "../layouts/Base.astro"; +import Evidence from "../components/Evidence.astro"; +import StatusCounts from "../components/StatusCounts.astro"; +import Watch from "../components/Watch.astro"; +import { getSite } from "../lib/site.mjs"; +import { proposeOptionUrl, proposeRoleUrl } from "../lib/steer.mjs"; +import { truncate } from "../lib/text.mjs"; +const site = await getSite(); +const system = site.of("system")[0]; +--- + +
    +

    What the agent watches for

    +

    Roles, from the map

    +

    The agent does not read a general feed. It looks for papers about the roles in the system's map, and every option it catalogues is a candidate for one of them. {system?.summary}

    +

    Propose a role to watch

    +
    + +{site.of("role").map((r) => { + const parent = site.outs(r, "part-of")[0]; + const opts = site.ins(r, "fills"); + return
    +

    Role{parent && <> · part of {parent.name}}

    +

    {r.name}

    +

    {r.summary}

    +

    · its page: questions, tests, claims

    +

    Options the agent is tracking ({opts.length})

    +
      {opts.length ? opts.map((o) => { + const cs = site.ins(o, "about").filter((c) => !c.ours); + const result = o.spec?.morphogen?.evaluation?.result; + return
    • {o.name}

      {o.summary}

      +

      {cs.length ? : No claims from papers yet}

      + {result &&

      Result so far {result}

      } + {cs.length > 0 &&
      {cs.length} claim{cs.length !== 1 ? "s" : ""}
      }
    • ; + }) :
    • None yet.
    • }
    +

    Suggest an option for this role

    +
    ; +})} +

    This system's conditions

    +

    Every claim's conditions are compared with these when its transfer is predicted. Each one's page lists the claims tested with it.

    +
      {site.of("resource").map((res) =>
    • {res.name} {res.kind}
      {res.summary}
    • )}
    + diff --git a/site/src/pages/roles/[name].astro b/site/src/pages/roles/[name].astro new file mode 100644 index 0000000..25ec1bb --- /dev/null +++ b/site/src/pages/roles/[name].astro @@ -0,0 +1,69 @@ +--- +// One role: what it is, the open questions the agent watches for it, its options, what has been tested, what is +// next in the queue, every claim, and every reference to and from it. +import Base from "../../layouts/Base.astro"; +import ClaimList from "../../components/ClaimList.astro"; +import EntityHead from "../../components/EntityHead.astro"; +import Evidence from "../../components/Evidence.astro"; +import Meter from "../../components/Meter.astro"; +import Mentions from "../../components/Mentions.astro"; +import References from "../../components/References.astro"; +import ResultsTable from "../../components/ResultsTable.astro"; +import StatusCounts from "../../components/StatusCounts.astro"; +import { getSite } from "../../lib/site.mjs"; +import { proposeOptionUrl } from "../../lib/steer.mjs"; +import { refName, truncate } from "../../lib/text.mjs"; + +export async function getStaticPaths() { + const site = await getSite(); + return site.of("role").map((r) => ({ params: { name: r.slug }, props: { id: r.id } })); +} +const site = await getSite(); +const r = site.entities.get(Astro.props.id); +const parent = site.outs(r, "part-of"); +const parts = site.ins(r, "part-of"); +const options = site.ins(r, "fills"); +const claims = site.ins(r, "role"); +const tested = site.results(claims).filter((x) => x.a.outcome || ["replicated", "did-not-transfer", "not-testable"].includes(x.a.status)); +const waiting = site.results(claims).filter((x) => x.a.status === "predicted"); +const topics = site.topicsFor(r.name); +const queue = site.queue().map((q, i) => ({ ...q, rank: i + 1 })).filter((q) => refName(q.role) === r.name); +--- + + +

    {parent.map((p) => <>Part of {p.name}. )}{parts.length > 0 && <>Its parts: {parts.map((p, i) => <>{i > 0 && ", "}{p.name})}. }{site.outs(r, "in-system").map((s) => <>In the system {s.name}.)}

    +

    +
    + + +
    +

    Open questions the agent watches

    + {topics.length ?
      {topics.map((t) =>
    • {t.name}
      {t.question}{(t.terms || []).length > 0 &&

      {t.terms.map((x) => {x})}

      }
    • )}
    + :

    No watch topic names this role yet (research/watch.yaml).

    } +
    +

    Next to test ({queue.length})

    + {queue.length ?
      {queue.map((q) =>
    1. #{q.rank} {site.claim(q.claim)?.title || q.claim} {typeof q.p_transfer === "number" && }
    2. )}
    + :

    Nothing for this role in the queue.

    } +
    +
    + +

    Options for it ({options.length})

    +
      {options.length ? options.map((o) => { + const cs = site.ins(o, "about"); + const result = o.spec?.morphogen?.evaluation?.result; + return
    • {o.name}

      {o.summary}

      {result &&

      Result so far {result}

      }
    • ; + }) :
    • None yet.
    • }
    +

    Suggest an option for this role

    +
    + +

    What has been tested ({tested.length})

    + {tested.length ? :

    No claim for this role has an outcome yet.

    } + {waiting.length > 0 &&

    {waiting.length} more predicted and waiting for a trial; see the claims below or the predictions.

    } +
    + +

    Every claim for this role ({claims.length})

    + +
    + + + diff --git a/site/src/pages/search.astro b/site/src/pages/search.astro new file mode 100644 index 0000000..2b8473f --- /dev/null +++ b/site/src/pages/search.astro @@ -0,0 +1,31 @@ +--- +// Everything on the site, by kind, with a search over data/search.json (Alpine's `search` component). Without +// JavaScript it is the full list. +import Base from "../layouts/Base.astro"; +import { TYPES } from "../lib/data.mjs"; +import { getSite } from "../lib/site.mjs"; +import { truncate } from "../lib/text.mjs"; +const site = await getSite(); +const order = ["claim", "paper", "trial", "resource", "option", "role", "component", "system", "page"]; +const groups = order.map((t) => [t, [...site.of(t)].sort((a, b) => a.title.localeCompare(b.title))]).filter(([, l]) => l.length); +--- + +
    +

    Everything on the site

    +

    Search

    +
    +
    + +

    + +
    +{groups.map(([t, list]) =>

    {TYPES[t].many} ({list.length})

    )} +
    +
    + diff --git a/site/src/pages/systems/[name].astro b/site/src/pages/systems/[name].astro new file mode 100644 index 0000000..a9eb31a --- /dev/null +++ b/site/src/pages/systems/[name].astro @@ -0,0 +1,29 @@ +--- +// The system: its roles, its conditions (the models, engine, GPU and datasets every prediction is made against). +import Base from "../../layouts/Base.astro"; +import EntityHead from "../../components/EntityHead.astro"; +import ExtLink from "../../components/ExtLink.astro"; +import Mentions from "../../components/Mentions.astro"; +import References from "../../components/References.astro"; +import { getSite } from "../../lib/site.mjs"; + +export async function getStaticPaths() { + const site = await getSite(); + return site.of("system").map((x) => ({ params: { name: x.slug }, props: { id: x.id } })); +} +const site = await getSite(); +const s = site.entities.get(Astro.props.id); +const members = site.ins(s, "in-system"); +const links = s.doc?.metadata?.links || []; +--- + + + {links.length > 0 &&

    {links.map((l) => )}

    } +
    +
    +

    Roles

      {members.filter((m) => m.type === "role").map((m) =>
    • {m.name} {m.summary}
    • )}
    +

    Conditions

      {members.filter((m) => m.type === "resource").map((m) =>
    • {m.kind} {m.title}
    • )}
    +
    + + + diff --git a/site/src/pages/trials/[id].astro b/site/src/pages/trials/[id].astro new file mode 100644 index 0000000..d0d5f3a --- /dev/null +++ b/site/src/pages/trials/[id].astro @@ -0,0 +1,36 @@ +--- +// One trial (E-04a, E-17b...): the claims it produced, every claim it gave an outcome for and on which models, the +// models it measured, related trials of the same family, and every reference to and from it. +import Base from "../../layouts/Base.astro"; +import ClaimList from "../../components/ClaimList.astro"; +import EntityHead from "../../components/EntityHead.astro"; +import ExtLink from "../../components/ExtLink.astro"; +import Mentions from "../../components/Mentions.astro"; +import References from "../../components/References.astro"; +import ResultsTable from "../../components/ResultsTable.astro"; +import { getSite } from "../../lib/site.mjs"; + +export async function getStaticPaths() { + const site = await getSite(); + return site.of("trial").map((x) => ({ params: { id: x.slug }, props: { id: x.id } })); +} +const site = await getSite(); +const t = site.entities.get(Astro.props.id); +const produced = site.ins(t, "from"); +const tested = site.ins(t, "tested-in"); +const rows = site.results(tested).filter((x) => String(x.a.outcome?.trial?.id) === t.key); +const models = [...new Set([...produced.flatMap((c) => site.outs(c, "measured-on")), ...rows.flatMap((x) => site.configModels(x.a))])]; +const family = site.of("trial").filter((x) => x !== t && x.family === t.family); +--- + + +

    {t.url_ext && <> · }{produced.length} claim{produced.length === 1 ? "" : "s"} recorded from it · outcomes for {tested.length} claim{tested.length === 1 ? "" : "s"} from papers{models.length > 0 && <> · on {models.map((m, i) => <>{i > 0 && ", "}{m.title})}}

    +
    +

    Outcomes it produced for papers' claims ({rows.length})

    + {rows.length ? :

    No paper's claim records an outcome from this trial.

    } +
    +

    What it measured ({produced.length})

    +{family.length > 0 &&

    Related trials ({t.family})

      {family.map((x) =>
    • {x.key} {x.summary}
    • )}
    } + + + diff --git a/site/static/app.js b/site/static/app.js deleted file mode 100644 index 24456e3..0000000 --- a/site/static/app.js +++ /dev/null @@ -1,51 +0,0 @@ -// The feed's filters: search, role, source and status, all in the page (no requests). A claim tried on several -// configurations carries each of its statuses in data-status, and matches if any of them is checked. The filters are kept in the -// address (?q=&role=&source=&status=) so a filtered view can be shared. Without JavaScript every claim is listed. -(function () { - var form = document.getElementById("filters"); - var list = document.getElementById("claims"); - if (!form || !list) return; - var items = Array.prototype.slice.call(list.querySelectorAll("li[data-name]")); - var count = document.getElementById("count"); - var empty = document.getElementById("empty"); - var boxes = Array.prototype.slice.call(form.querySelectorAll("input[name=status]")); - form.hidden = false; - - var params = new URLSearchParams(location.search); - if (params.has("q")) form.q.value = params.get("q"); - if (params.has("role")) form.role.value = params.get("role"); - if (params.has("source")) form.source.value = params.get("source"); - if (params.has("status")) { - var want = params.get("status").split(","); - boxes.forEach(function (b) { b.checked = want.indexOf(b.value) !== -1; }); - } - - function apply() { - var words = form.q.value.toLowerCase().split(/\s+/).filter(Boolean); - var role = form.role.value, source = form.source.value; - var statuses = boxes.filter(function (b) { return b.checked; }).map(function (b) { return b.value; }); - var shown = 0; - items.forEach(function (li) { - var d = li.dataset; - var ok = (!role || d.role === role) && (!source || d.source === source) && - d.status.split(" ").some(function (st) { return statuses.indexOf(st) !== -1; }) && - words.every(function (w) { return d.search.indexOf(w) !== -1; }); - li.hidden = !ok; - if (ok) shown++; - }); - count.textContent = shown + " of " + items.length + " claims"; - empty.hidden = shown !== 0; - var p = new URLSearchParams(); - if (form.q.value) p.set("q", form.q.value); - if (role) p.set("role", role); - if (source) p.set("source", source); - var defaults = boxes.every(function (b) { return b.checked === b.defaultChecked; }); - if (!defaults) p.set("status", statuses.join(",")); - var qs = p.toString(); - history.replaceState(null, "", qs ? "?" + qs : location.pathname); - } - form.addEventListener("input", apply); - form.addEventListener("change", apply); - form.addEventListener("submit", function (ev) { ev.preventDefault(); }); - apply(); -})(); diff --git a/site/static/theme.js b/site/static/theme.js deleted file mode 100644 index 0e66425..0000000 --- a/site/static/theme.js +++ /dev/null @@ -1,30 +0,0 @@ -// Colour theme: the system's by default; the button cycles system, light, dark and remembers the choice in this -// browser only. Loaded in so the page never flashes the wrong theme. -(function () { - var root = document.documentElement; - var order = ["system", "light", "dark"]; - function read() { - try { return localStorage.getItem("theme") || "system"; } catch (err) { return "system"; } - } - function apply(choice) { - if (choice === "light" || choice === "dark") root.setAttribute("data-theme", choice); - else root.removeAttribute("data-theme"); - var btn = document.querySelector("[data-theme-toggle]"); - if (btn) { - btn.setAttribute("aria-label", "Colour theme: " + choice); - btn.title = "Colour theme: " + choice; - btn.textContent = choice === "light" ? "Light" : choice === "dark" ? "Dark" : "Auto"; - } - } - apply(read()); - document.addEventListener("DOMContentLoaded", function () { - apply(read()); - var btn = document.querySelector("[data-theme-toggle]"); - if (!btn) return; - btn.addEventListener("click", function () { - var next = order[(order.indexOf(read()) + 1) % order.length]; - try { localStorage.setItem("theme", next); } catch (err) { /* private mode: not remembered */ } - apply(next); - }); - }); -})(); diff --git a/site/test/lib.test.mjs b/site/test/lib.test.mjs new file mode 100644 index 0000000..b962bcb --- /dev/null +++ b/site/test/lib.test.mjs @@ -0,0 +1,32 @@ +// Unit tests of the data layer's pure parts: `npm test` (node --test), also run by tests/test_site.py. +import assert from "node:assert/strict"; +import test from "node:test"; +import { issueUrl } from "../src/lib/steer.mjs"; +import { refName, safeUrl, slugify } from "../src/lib/text.mjs"; +import { trialFamily } from "../src/lib/data.mjs"; + +test("safeUrl keeps http(s) and refuses everything else", () => { + assert.equal(safeUrl("https://arxiv.org/abs/1"), "https://arxiv.org/abs/1"); + for (const bad of ["javascript:alert(1)", " JaVaScRiPt:alert(1)", "data:text/html,x", "//evil", "", null, 3, "http://"]) { + assert.equal(safeUrl(bad), null, String(bad)); + } +}); + +test("issueUrl round-trips title, body and labels", () => { + const title = 'Prioritise: a & b? #1 "x"', body = "line one\nresearch-action: prioritise\n100% + more & "; + const url = new URL(issueUrl("OpenReplicant/Morphogen", title, body, ["research:prioritise", "two words"])); + assert.equal(url.host, "github.com"); + assert.equal(url.pathname, "/OpenReplicant/Morphogen/issues/new"); + assert.ok(!url.href.includes(" ") && !url.href.includes("\n")); + assert.equal(url.searchParams.get("title"), title); + assert.equal(url.searchParams.get("body"), body); + assert.equal(url.searchParams.get("labels"), "research:prioritise,two words"); + assert.equal(new URL(issueUrl("o/r", "t", "b", [])).searchParams.has("labels"), false); +}); + +test("refs, slugs and trial families", () => { + assert.equal(refName("component:default/decision-backend"), "decision-backend"); + assert.equal(slugify("arXiv:2610.00346"), "arxiv-2610.00346"); + assert.equal(slugify("../../etc/passwd"), "etc-passwd"); + assert.equal(trialFamily("E-17b"), "E-17"); +}); diff --git a/tests/test_research.py b/tests/test_research.py index 306b628..8ae681f 100644 --- a/tests/test_research.py +++ b/tests/test_research.py @@ -266,7 +266,7 @@ def test_parse(self): self.assertEqual(rs.parse_issue(issue(7, "x", "paper: not-an-id", ["research:reject"]))["target"], None) def test_the_claim_sites_body_lines_come_first(self): - # the body site/build.py (PR #108) writes: the person's text, then `---` and its lines + # the body the site (site/src/lib/steer.mjs; PR #108 first) writes: the person's text, then `---` and its lines body = ("Please test this claim sooner.\n\nWhy: it is cheap.\n\n---\nresearch-action: prioritise\n" "system: system:default/metasoar\nresearch-claim: cost-fell\n" "claim-file: https://github.com/o/r/blob/main/demos/x/claims/a/cost-fell.yaml\nstatus: predicted\n" diff --git a/tests/test_site.py b/tests/test_site.py index 7e4e29f..18c6a5a 100644 --- a/tests/test_site.py +++ b/tests/test_site.py @@ -1,13 +1,17 @@ -"""The research site's build (site/build.py): real input renders, issue links are well formed, and text from papers -is escaped.""" +"""The research site (site/, Astro): real input renders with its cross-references, issue links are well formed, text +from papers is escaped, an invalid claim stops the build, and a claim tried on two configurations shows both. + +Each test runs the real build (`npm run build` in site/) on a project of its own and checks the files it writes. It +needs Node and `npm ci` in site/; without them it is skipped, unless MORPHOGEN_SITE_TESTS=1 (as in +.github/workflows/site.yml), when a missing toolchain is a failure.""" import copy import html -import importlib.util import json +import os import re import shutil -import sys +import subprocess import tempfile import unittest from pathlib import Path @@ -16,10 +20,9 @@ import yaml ROOT = Path(__file__).resolve().parent.parent -_spec = importlib.util.spec_from_file_location("site_build", ROOT / "site" / "build.py") -build = importlib.util.module_from_spec(_spec) -sys.modules["site_build"] = build # dataclasses look their module up here -_spec.loader.exec_module(build) +SITE = ROOT / "site" +REQUIRED = os.environ.get("MORPHOGEN_SITE_TESTS") == "1" +READY = shutil.which("npm") is not None and (SITE / "node_modules" / "astro").is_dir() HOSTILE = '' @@ -42,6 +45,7 @@ "system": "system:default/sys", "status": "predicted", "date": "2026-11-27", "prediction": {"p_transfer": 0.4, "reason": "Different model " + HOSTILE, "by": "test " + HOSTILE, "date": "2026-11-27", "before_outcome": True}, + "trial": {"plan": "Run it " + HOSTILE, "cost_hours": 2.5, "needs": ["data " + HOSTILE]}, }], }, } @@ -56,281 +60,331 @@ "metadata": {"name": "opt-x", "description": "Option " + HOSTILE}, "spec": {"type": "method", "lifecycle": "candidate", "owner": "group:default/g", "morphogen": {"fills": "component:default/role-x", "evaluation": {"result": "R " + HOSTILE}}}}, + {"apiVersion": "backstage.io/v1alpha1", "kind": "Resource", + "metadata": {"name": "small-model", "description": "Small Model 1B, Q6_K, on the GPU"}, "spec": {"type": "model"}}, + {"apiVersion": "backstage.io/v1alpha1", "kind": "Resource", + "metadata": {"name": "big-model", "description": "Big Model 26B, Q4_K"}, "spec": {"type": "model"}}, ] -def make_project(root: Path, claims: list[dict]) -> Path: +def two_setups() -> dict: + """A claim tried on two configurations of one system, with different results (#111).""" + claim = copy.deepcopy(CLAIM) + claim["metadata"]["name"] = "two-setups" + claim["spec"]["source"]["url"] = "https://arxiv.org/abs/2611.00001" + outcome = {"trial": {"id": "T-1"}, "observed": ["hostile-claim"], "comparison": "our-setup", + "verdict": {"by": "falsifier", "decision": "met"}} + pred = {"by": "test", "date": "2026-11-27", "before_outcome": True, "reason": "r"} + claim["spec"]["assessments"] = [ + {"system": "system:default/sys", "against": ["resource:default/small-model"], "status": "did-not-transfer", + "date": "2026-11-25", "prediction": {**pred, "p_transfer": 0.3}, + "outcome": {**outcome, "summary": "Small model: far below."}}, + {"system": "system:default/sys", "against": ["resource:default/big-model"], "status": "replicated", + "date": "2026-11-27", "prediction": {**pred, "p_transfer": 0.7}, + "outcome": {**outcome, "summary": "Big model: matched."}}, + ] + return claim + + +def scored() -> dict: + claim = copy.deepcopy(CLAIM) + claim["metadata"]["name"] = "scored-claim" + claim["spec"]["source"]["url"] = "https://arxiv.org/abs/2611.00001" + a = claim["spec"]["assessments"][0] + a["status"] = "did-not-transfer" + a["outcome"] = {"trial": {"id": "T-2"}, "observed": ["hostile-claim"], "summary": "Lower.", + "comparison": "our-setup", "verdict": {"by": "morphogen", "decision": "refuse"}} + return claim + + +def make_project(root: Path, claims: list[dict]) -> None: (root / "claims").mkdir(parents=True) (root / "schemas").mkdir() shutil.copy(ROOT / "schemas" / "evidence-claim.v1.json", root / "schemas") for c in claims: (root / "claims" / f"{c['metadata']['name']}.yaml").write_text(yaml.safe_dump(c), encoding="utf-8") (root / "catalog.yaml").write_text(yaml.safe_dump_all(CATALOG), encoding="utf-8") - cfg = root / "config.toml" - cfg.write_text('repo = "Owner/Repo"\nsystem = "system:default/sys"\n[sources]\nclaims = ["claims"]\n' - 'catalog = ["catalog.yaml"]\nschema = "schemas/evidence-claim.v1.json"\n' - '[labels]\nprioritise = ["research:prioritise"]\nreject = ["research:reject"]\n' - 'dispute = ["research:question"]\nquestion = ["research:question"]\n', encoding="utf-8") - return cfg + (root / "config.toml").write_text( + 'repo = "Owner/Repo"\nsystem = "system:default/sys"\n[sources]\nclaims = ["claims"]\n' + 'catalog = ["catalog.yaml"]\nresearch = "research"\nschema = "schemas/evidence-claim.v1.json"\n' + '[labels]\nprioritise = ["research:prioritise"]\nreject = ["research:reject"]\n' + 'dispute = ["research:question"]\nquestion = ["research:question"]\n', encoding="utf-8") + research = root / "research" + research.mkdir() + (research / "queue.json").write_text(json.dumps({"date": "2026-11-27", "how": "bits / hours", "queue": [ + {"claim": "hostile-claim", "role": "component:default/role-x", "about": "component:default/opt-x", + "p_transfer": 0.4, "information_bits": 0.971, "cost_hours": 2.5, "score": 0.388, + "plan": "Run it " + HOSTILE, "reason": "R " + HOSTILE, "prioritised_by": ["someone"], + "rejected_by": [], "disputed_by": []}]}), encoding="utf-8") + (research / "watch.yaml").write_text(yaml.safe_dump({"topics": [ + {"name": "topic-x", "question": "Q " + HOSTILE, "roles": ["role-x"], "terms": ["t1"]}]}), encoding="utf-8") + (research / "seen.jsonl").write_text(json.dumps( + {"id": "2611.00001", "title": "P " + HOSTILE, "status": "cataloged", "abstract": "A " + HOSTILE}) + "\n", + encoding="utf-8") + content = root / "content" + (content / "notes").mkdir(parents=True) + (content / "notes" / "hostile.md").write_text( + "---\ntitle: A note\nkind: note\ndate: 2026-11-27\nrefs: [claim:two-setups, resource:big-model, trial:T-1]\n---\n" + "Some *text*.\n", encoding="utf-8") + + +def run_build(out: Path, root: Path | None = None, content: Path | None = None) -> subprocess.CompletedProcess: + env = dict(os.environ, SITE_OUT=str(out), ASTRO_TELEMETRY_DISABLED="1") + if root is not None: + env.update(SITE_ROOT=str(root), SITE_CONFIG=str(root / "config.toml")) + if content is not None: + env["SITE_CONTENT"] = str(content) + return subprocess.run(["npm", "run", "--silent", "build", "--", "--force"], cwd=SITE, env=env, + capture_output=True, text=True, timeout=600) + + +def built(out: Path, **kw) -> None: + r = run_build(out, **kw) + if r.returncode != 0: + raise AssertionError(f"site build failed:\n{r.stdout[-3000:]}\n{r.stderr[-3000:]}") def all_html(out: Path) -> str: return "\n".join(p.read_text(encoding="utf-8") for p in sorted(out.rglob("*.html"))) -class RealInput(unittest.TestCase): - """The phase-0 claims in demos/research-loop, through site/config.toml.""" +def read(out: Path, rel: str) -> str: + return (out / rel).read_text(encoding="utf-8") + + +def issue_links(page: str) -> list[str]: + return [html.unescape(h) for h in re.findall(r'href="(https://github\.com/[^"]+/issues/new\?[^"]+)"', page)] + + +class _Toolchain(unittest.TestCase): + @classmethod + def setUpClass(cls): + if not READY: + if REQUIRED: + raise AssertionError("MORPHOGEN_SITE_TESTS=1 but site/node_modules is missing: run `npm ci` in site/") + raise unittest.SkipTest("the site's build needs Node and `npm ci` in site/ (site/README.md)") + + +class Unit(_Toolchain): + def test_node_unit_tests(self): + r = subprocess.run(["npm", "test", "--silent"], cwd=SITE, capture_output=True, text=True, timeout=120) + self.assertEqual(r.returncode, 0, r.stdout + r.stderr) + + +class RealInput(_Toolchain): + """The claims in demos/research-loop, through site/config.toml and site/content.""" @classmethod def setUpClass(cls): + super().setUpClass() cls.tmp = tempfile.TemporaryDirectory() cls.out = Path(cls.tmp.name) / "out" - cls.site = build.build(ROOT / "site" / "config.toml", cls.out) + built(cls.out) + cls.graph = json.loads(read(cls.out, "data/graph.json")) @classmethod def tearDownClass(cls): cls.tmp.cleanup() def test_every_claim_has_a_page_and_a_feed_entry(self): - names = {c.name for c in self.site.claims} + names = set(self.graph["claims"]) files = list((ROOT / "demos" / "research-loop" / "claims").rglob("*.yaml")) - self.assertGreaterEqual(len(names), 25) # phase 0's records, and whatever the agent has added + self.assertGreaterEqual(len(names), 25) self.assertEqual(len(names), len(files)) - self.assertEqual(build.check_index(self.site), []) # research/index.json, when there is one, agrees + self.assertEqual(self.graph["index_problems"], []) # research/index.json agrees with the files + self.assertEqual(self.graph["unresolved"], []) self.assertEqual({p.stem for p in (self.out / "claims").glob("*.html")}, names) - index = (self.out / "index.html").read_text(encoding="utf-8") + index = read(self.out, "index.html") self.assertEqual(set(re.findall(r'
  • (?:(?!).)*gates-likelihood-readout-27-31b-matches-jev\.html.*?', page, re.S).group(0) + self.assertIn("Replicated", row) + self.assertIn('href="../trials/e-04a.html"', row) + self.assertIn("../claims/e04a-inkling-pooled-accuracy.html", page) # our own measurement on it + self.assertIn("../notes/2026-11-27-inkling-and-the-27b-finding.html", page) # a note that names it + + def test_a_trial_lists_its_outcomes_and_models(self): + page = read(self.out, "trials/e-04a.html") + self.assertIn("../claims/gates-likelihood-readout-27-31b-matches-jev.html", page) + self.assertIn("../resources/inkling-2-mini-q4-k.html", page) + self.assertIn("../resources/lfm3-1.7b-q6-k.html", page) + self.assertIn("../claims/e04a-lfm3-pooled-accuracy.html", page) + + def test_claim_page_has_a_tested_on_table_and_backlinks(self): + page = read(self.out, "claims/gates-likelihood-readout-27-31b-matches-jev.html") + table = re.search(r'.*?
    ', page, re.S).group(0) + self.assertIn("Inkling 2 Mini", table) + self.assertIn("LFM3 1.7B", table) + self.assertIn("../papers/arxiv-2610.00346.html", page) + self.assertIn("Linked from", page) + + def test_paper_and_role_pages(self): + paper = read(self.out, "papers/arxiv-2610.00346.html") + self.assertIn("../claims/gates-embedding-logreg-labelled.html", paper) + role = read(self.out, "roles/table-qa.html") + self.assertIn("Open questions the agent watches", role) + self.assertIn("../options/capability-aware-table-routing.html", role) + + def test_no_outside_resources_and_no_inline_script(self): text = all_html(self.out) self.assertNotRegex(text, r'<(script|link)[^>]+(src|href)="https?://') - self.assertNotIn("