diff --git a/README.md b/README.md
index f5e7409..48b9ce2 100644
--- a/README.md
+++ b/README.md
@@ -78,7 +78,16 @@ The MCP server deliberately holds no database connection of its own. Every tool
| Tooling | ruff, mypy (strict), uv, Docker Compose, GitHub Actions |
| Logging | structlog (structured JSON) |
-Frontend (React 18, TypeScript, Vite, shadcn/ui) is planned for a later phase and is not implemented yet, so there is no UI to screenshot today; everything above is exercised through the REST API, the test suite, and the MCP server.
+Frontend (React, TypeScript, Vite, Tailwind, shadcn/ui, Base UI) lives in `frontend/`: auth, org switching, services, incidents, alert rules/events, metrics, AI triage/postmortems, and org members are all wired to the API. To run it:
+
+```bash
+cd frontend
+npm install
+cp .env.example .env # defaults to http://localhost:8000/api/v1
+npm run dev
+```
+
+Run its tests with `npm test` and its production build with `npm run build`.
## Running it locally
@@ -135,7 +144,7 @@ uv run devpulse-mcp
| --- | --- | --- |
| Phase 1 | Core backend (auth through incidents) | Done |
| Phase 2 | AI layer (Claude triage, MCP, RAG) | In progress: triage, postmortems, and the MCP server are shipped; RAG is next |
-| Phase 3 | Frontend | Not started |
+| Phase 3 | Frontend | Done: auth, org switching, services, incidents, alert rules/events, metrics, AI triage/postmortems, and org members are all shipped |
| Phase 4 | Production infrastructure (AWS) | In progress: pagination, rate limiting, Claude timeouts/retries, and the prod secret guard are shipped; deployment and observability are next |
| Phase 5 | Polish, docs, demo | Not started |
diff --git a/backend/app/modules/incidents/router.py b/backend/app/modules/incidents/router.py
index 2f00128..8221f10 100644
--- a/backend/app/modules/incidents/router.py
+++ b/backend/app/modules/incidents/router.py
@@ -2,14 +2,16 @@
from __future__ import annotations
+from typing import Annotated
from uuid import UUID
-from fastapi import APIRouter, HTTPException, status
+from fastapi import APIRouter, HTTPException, Query, status
from app.core.pagination import Page, Pagination
from app.db.session import DbSession
from app.modules.auth.deps import CurrentUser
from app.modules.incidents import service as incidents_service
+from app.modules.incidents.models import IncidentSeverity, IncidentStatus
from app.modules.incidents.schemas import (
CreateIncidentRequest,
IncidentOut,
@@ -53,11 +55,22 @@ async def create_incident(
@router.get("", response_model=Page[IncidentOut])
async def list_incidents(
- org_id: UUID, db: DbSession, current_user: CurrentUser, page: Pagination
+ org_id: UUID,
+ db: DbSession,
+ current_user: CurrentUser,
+ page: Pagination,
+ incident_status: Annotated[IncidentStatus | None, Query(alias="status")] = None,
+ severity: IncidentSeverity | None = None,
) -> Page[IncidentOut]:
try:
incidents, total = await incidents_service.list_incidents(
- db, org_id=org_id, user_id=current_user.id, limit=page.limit, offset=page.offset
+ db,
+ org_id=org_id,
+ user_id=current_user.id,
+ limit=page.limit,
+ offset=page.offset,
+ status=incident_status,
+ severity=severity,
)
except OrgNotFoundError as exc:
raise HTTPException(
diff --git a/backend/app/modules/incidents/service.py b/backend/app/modules/incidents/service.py
index 7f8bdde..e0586cf 100644
--- a/backend/app/modules/incidents/service.py
+++ b/backend/app/modules/incidents/service.py
@@ -96,16 +96,26 @@ async def create_incident(
async def list_incidents(
- db: AsyncSession, org_id: UUID, user_id: UUID, limit: int, offset: int
+ db: AsyncSession,
+ org_id: UUID,
+ user_id: UUID,
+ limit: int,
+ offset: int,
+ status: IncidentStatus | None,
+ severity: IncidentSeverity | None,
) -> tuple[list[Incident], int]:
await _assert_org_membership(db, org_id, user_id)
- total = await db.scalar(
- select(func.count()).select_from(Incident).where(Incident.org_id == org_id)
- )
+ filters = [Incident.org_id == org_id]
+ if status is not None:
+ filters.append(Incident.incident_status == status)
+ if severity is not None:
+ filters.append(Incident.severity == severity)
+
+ total = await db.scalar(select(func.count()).select_from(Incident).where(*filters))
result = await db.execute(
select(Incident)
- .where(Incident.org_id == org_id)
+ .where(*filters)
.order_by(Incident.created_at.desc())
.limit(limit)
.offset(offset)
diff --git a/backend/tests/integration/test_incidents.py b/backend/tests/integration/test_incidents.py
index 35f983a..f867812 100644
--- a/backend/tests/integration/test_incidents.py
+++ b/backend/tests/integration/test_incidents.py
@@ -133,6 +133,74 @@ async def test_list_incidents_rejects_limit_over_max(client: AsyncClient) -> Non
assert resp.status_code == 422
+async def test_list_incidents_filters_by_status(client: AsyncClient) -> None:
+ token, org_id = await _setup(client, "inc-filter-status@example.com", "inc-filter-status-org")
+ hdrs = {"Authorization": f"Bearer {token}"}
+ url = _inc_url(org_id)
+ await client.post(url, json={"title": "A", "severity": "sev1"}, headers=hdrs)
+ resp_open = await client.post(url, json={"title": "B", "severity": "sev1"}, headers=hdrs)
+ await client.patch(
+ f"{url}/{resp_open.json()['id']}/status",
+ json={"incident_status": "resolved"},
+ headers=hdrs,
+ )
+
+ resp = await client.get(url, params={"status": "resolved"}, headers=hdrs)
+ assert resp.status_code == 200
+ body = resp.json()
+ assert body["total"] == 1
+ assert body["items"][0]["title"] == "B"
+
+
+async def test_list_incidents_filters_by_severity(client: AsyncClient) -> None:
+ token, org_id = await _setup(client, "inc-filter-sev@example.com", "inc-filter-sev-org")
+ hdrs = {"Authorization": f"Bearer {token}"}
+ url = _inc_url(org_id)
+ await client.post(url, json={"title": "A", "severity": "sev1"}, headers=hdrs)
+ await client.post(url, json={"title": "B", "severity": "sev4"}, headers=hdrs)
+
+ resp = await client.get(url, params={"severity": "sev4"}, headers=hdrs)
+ assert resp.status_code == 200
+ body = resp.json()
+ assert body["total"] == 1
+ assert body["items"][0]["title"] == "B"
+
+
+async def test_list_incidents_combined_status_and_severity_zero_matches(client: AsyncClient) -> None:
+ token, org_id = await _setup(client, "inc-filter-combo@example.com", "inc-filter-combo-org")
+ hdrs = {"Authorization": f"Bearer {token}"}
+ url = _inc_url(org_id)
+ # A is sev1 and open; B is sev4 and resolved. Each filter alone matches one
+ # incident, but no incident matches both status=resolved and severity=sev1.
+ await client.post(url, json={"title": "A", "severity": "sev1"}, headers=hdrs)
+ resp_b = await client.post(url, json={"title": "B", "severity": "sev4"}, headers=hdrs)
+ await client.patch(
+ f"{url}/{resp_b.json()['id']}/status",
+ json={"incident_status": "resolved"},
+ headers=hdrs,
+ )
+
+ resp = await client.get(
+ url,
+ params={"status": "resolved", "severity": "sev1"},
+ headers=hdrs,
+ )
+ assert resp.status_code == 200
+ body = resp.json()
+ assert body["total"] == 0
+ assert body["items"] == []
+
+
+async def test_list_incidents_rejects_invalid_status(client: AsyncClient) -> None:
+ token, org_id = await _setup(client, "inc-filter-bad@example.com", "inc-filter-bad-org")
+ resp = await client.get(
+ _inc_url(org_id),
+ params={"status": "not-a-real-status"},
+ headers={"Authorization": f"Bearer {token}"},
+ )
+ assert resp.status_code == 422
+
+
async def test_get_incident_not_found_returns_404(client: AsyncClient) -> None:
token, org_id = await _setup(client, "inc-get404@example.com", "inc-get404-org")
import uuid
diff --git a/frontend/.env.example b/frontend/.env.example
new file mode 100644
index 0000000..a8a8970
--- /dev/null
+++ b/frontend/.env.example
@@ -0,0 +1 @@
+VITE_API_BASE_URL=http://localhost:8000/api/v1
diff --git a/frontend/.gitignore b/frontend/.gitignore
new file mode 100644
index 0000000..438657a
--- /dev/null
+++ b/frontend/.gitignore
@@ -0,0 +1,25 @@
+# Logs
+logs
+*.log
+npm-debug.log*
+yarn-debug.log*
+yarn-error.log*
+pnpm-debug.log*
+lerna-debug.log*
+
+node_modules
+dist
+dist-ssr
+*.local
+.env
+
+# Editor directories and files
+.vscode/*
+!.vscode/extensions.json
+.idea
+.DS_Store
+*.suo
+*.ntvs*
+*.njsproj
+*.sln
+*.sw?
diff --git a/frontend/.oxlintrc.json b/frontend/.oxlintrc.json
new file mode 100644
index 0000000..6fa991d
--- /dev/null
+++ b/frontend/.oxlintrc.json
@@ -0,0 +1,8 @@
+{
+ "$schema": "./node_modules/oxlint/configuration_schema.json",
+ "plugins": ["react", "typescript", "oxc"],
+ "rules": {
+ "react/rules-of-hooks": "error",
+ "react/only-export-components": ["warn", { "allowConstantExport": true }]
+ }
+}
diff --git a/frontend/README.md b/frontend/README.md
new file mode 100644
index 0000000..d6af7e3
--- /dev/null
+++ b/frontend/README.md
@@ -0,0 +1,32 @@
+# React + TypeScript + Vite
+
+This template provides a minimal setup to get React working in Vite with HMR and some Oxlint rules.
+
+Currently, two official plugins are available:
+
+- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Oxc](https://oxc.rs)
+- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/)
+
+## React Compiler
+
+The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see [this documentation](https://react.dev/learn/react-compiler/installation).
+
+## Expanding the Oxlint configuration
+
+If you are developing a production application, we recommend enabling type-aware lint rules by installing `oxlint-tsgolint` and editing `.oxlintrc.json`:
+
+```json
+{
+ "$schema": "./node_modules/oxlint/configuration_schema.json",
+ "plugins": ["react", "typescript", "oxc"],
+ "options": {
+ "typeAware": true
+ },
+ "rules": {
+ "react/rules-of-hooks": "error",
+ "react/only-export-components": ["warn", { "allowConstantExport": true }]
+ }
+}
+```
+
+See the [Oxlint rules documentation](https://oxc.rs/docs/guide/usage/linter/rules) for the full list of rules and categories.
diff --git a/frontend/components.json b/frontend/components.json
new file mode 100644
index 0000000..8ddcdfc
--- /dev/null
+++ b/frontend/components.json
@@ -0,0 +1,25 @@
+{
+ "$schema": "https://ui.shadcn.com/schema.json",
+ "style": "base-nova",
+ "rsc": false,
+ "tsx": true,
+ "tailwind": {
+ "config": "tailwind.config.ts",
+ "css": "src/index.css",
+ "baseColor": "neutral",
+ "cssVariables": true,
+ "prefix": ""
+ },
+ "iconLibrary": "lucide",
+ "rtl": false,
+ "aliases": {
+ "components": "@/components",
+ "utils": "@/lib/utils",
+ "ui": "@/components/ui",
+ "lib": "@/lib",
+ "hooks": "@/hooks"
+ },
+ "menuColor": "default",
+ "menuAccent": "subtle",
+ "registries": {}
+}
diff --git a/frontend/index.html b/frontend/index.html
new file mode 100644
index 0000000..1afd0f0
--- /dev/null
+++ b/frontend/index.html
@@ -0,0 +1,19 @@
+
+
+
+
+
+
+ DevPulse
+
+
+
+
+
+
+
+
+
diff --git a/frontend/package-lock.json b/frontend/package-lock.json
new file mode 100644
index 0000000..24eb4a4
--- /dev/null
+++ b/frontend/package-lock.json
@@ -0,0 +1,7822 @@
+{
+ "name": "frontend",
+ "version": "0.0.0",
+ "lockfileVersion": 3,
+ "requires": true,
+ "packages": {
+ "": {
+ "name": "frontend",
+ "version": "0.0.0",
+ "dependencies": {
+ "@base-ui/react": "^1.9.0",
+ "@hookform/resolvers": "^7.0.8",
+ "@tanstack/react-query": "^5.108.2",
+ "cn": "^0.5.2",
+ "lucide-react": "^1.77.0",
+ "react": "^19.3.1",
+ "react-dom": "^19.3.1",
+ "react-hook-form": "^7.92.0",
+ "react-markdown": "^10.1.0",
+ "react-router-dom": "^7.18.6",
+ "zod": "^4.6.7"
+ },
+ "devDependencies": {
+ "@testing-library/jest-dom": "^8.0.0",
+ "@testing-library/react": "^16.3.3",
+ "@testing-library/user-event": "^14.6.13",
+ "@types/node": "^24.19.2",
+ "@types/react": "^19.3.0",
+ "@types/react-dom": "^19.3.0",
+ "@vitejs/plugin-react": "^6.1.2",
+ "autoprefixer": "^10.7.0",
+ "jsdom": "^31.0.1",
+ "oxlint": "^1.90.0",
+ "postcss": "^8.5.33",
+ "shadcn": "^4.23.0",
+ "tailwindcss": "^3.4.19",
+ "typescript": "~7.0.2",
+ "vite": "^8.3.6",
+ "vitest": "^5.1.1"
+ }
+ },
+ "node_modules/@adobe/css-tools": {
+ "version": "4.5.0",
+ "resolved": "https://registry.npmjs.org/@adobe/css-tools/-/css-tools-4.5.0.tgz",
+ "integrity": "sha512-6OzddxPio9UiWTCemp4N8cYLV2ZN1ncRnV1cVGtve7dhPOtRkleRyx32GQCYSwDYgaHU3USMm84tNsvKzRCa1Q==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@alloc/quick-lru": {
+ "version": "5.3.0",
+ "resolved": "https://registry.npmjs.org/@alloc/quick-lru/-/quick-lru-5.3.0.tgz",
+ "integrity": "sha512-U4+70Pc5ZS9osnCBCE5Jha/ciHM+Yp+CNMNC/7HvYbNRk1Ldd+f7qO65W5qfhu/TCv+/ozljlXXe9Nj8419DMA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/@babel/code-frame": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.7.tgz",
+ "integrity": "sha512-Aup7aUOfpbAUg2ROOJN6Iw5f9DMBlzu0mIkm/malLQFN/YQgO48wCj0Kxa3sEHJvPVFg7siR+qRInwXd2qhQKw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-validator-identifier": "^7.29.7",
+ "js-tokens": "^4.0.0",
+ "picocolors": "^1.1.1"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/compat-data": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.29.7.tgz",
+ "integrity": "sha512-locTkQyKvwIEgBzVrn8693ebc97F2U8ZHjbXwDXJ5Fn2TCpNwTlKcaKLkdHop5c/icOFE7qt7Q9JC5hnKNa6Gg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/core": {
+ "version": "7.29.13",
+ "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.29.13.tgz",
+ "integrity": "sha512-j1nvOQCZYSgp7HLmisnCXFTpVvFODiijQ9QHkORfGKWH6YDtskTEeCJS7eV545GZ9UBzrq0e2xsOd5QQ5PjIqw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/code-frame": "^7.29.7",
+ "@babel/generator": "^7.29.13",
+ "@babel/helper-compilation-targets": "^7.29.13",
+ "@babel/helper-module-transforms": "^7.29.13",
+ "@babel/helpers": "^7.29.13",
+ "@babel/parser": "^7.29.13",
+ "@babel/template": "^7.29.7",
+ "@babel/traverse": "^7.29.13",
+ "@babel/types": "^7.29.11",
+ "@jridgewell/remapping": "^2.3.5",
+ "convert-source-map": "^2.0.0",
+ "debug": "^4.1.0",
+ "gensync": "^1.0.0-beta.2",
+ "json5": "^2.2.3",
+ "semver": "^6.3.1"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/babel"
+ }
+ },
+ "node_modules/@babel/generator": {
+ "version": "7.29.15",
+ "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.15.tgz",
+ "integrity": "sha512-gNWJUX0FlevflramOkaInywOMhU1lkln38gAC7TFZv2tsWbLYbN/2WZFGcq8zbX0Z55e4vGa27IB/NaeZoauWQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/parser": "^7.29.15",
+ "@babel/types": "^7.29.15",
+ "@jridgewell/gen-mapping": "^0.3.12",
+ "@jridgewell/trace-mapping": "^0.3.28",
+ "jsesc": "^3.0.2"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-annotate-as-pure": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.29.7.tgz",
+ "integrity": "sha512-OoK6239jHPuSQOoS0kfTVKn0b/rVTk0seKq4Gd2UMLtmOVLjDC0ki3e+c90Trqv2gMfvJFqkiljrr568+qddiw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/types": "^7.29.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-compilation-targets": {
+ "version": "7.29.13",
+ "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.29.13.tgz",
+ "integrity": "sha512-8WxJ4/Vmes3ghacj8VOJy3NW8eyHiFY/4thU/LSBuBE470+igjR/j1ZTNn8fV5VdNrLx6iXUwig526UdOvfP0w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/compat-data": "^7.29.7",
+ "@babel/helper-validator-option": "^7.29.7",
+ "browserslist": "^4.24.0",
+ "lru-cache": "^5.1.1",
+ "semver": "^6.3.1"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-compilation-targets/node_modules/lru-cache": {
+ "version": "5.1.1",
+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz",
+ "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "yallist": "^3.0.2"
+ }
+ },
+ "node_modules/@babel/helper-create-class-features-plugin": {
+ "version": "7.29.13",
+ "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.29.13.tgz",
+ "integrity": "sha512-fo8/Fr44/DMV71FQjk/HA0Npmu3bo5DFoWTCW1dhUR8Vx3NFfAVeEy0TbcBpt4e+hd2QhdmWgmspHo/9iWj8RA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-annotate-as-pure": "^7.29.7",
+ "@babel/helper-member-expression-to-functions": "^7.29.7",
+ "@babel/helper-optimise-call-expression": "^7.29.7",
+ "@babel/helper-replace-supers": "^7.29.7",
+ "@babel/helper-skip-transparent-expression-wrappers": "^7.29.13",
+ "@babel/traverse": "^7.29.13",
+ "semver": "^6.3.1"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0"
+ }
+ },
+ "node_modules/@babel/helper-globals": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.29.7.tgz",
+ "integrity": "sha512-3nQVUAtvkKH9zahfWgw96Jc/uFOmjACE1kQz82E2lqWmHBgjzbNlsC22nuQTfahmWeQtTq5nQ/4Nnd2A1wj4zA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-member-expression-to-functions": {
+ "version": "7.29.14",
+ "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.29.14.tgz",
+ "integrity": "sha512-FuTSn8mXKAP+aHXnbkCYQsQAdlEIJptEutwc2NaPd28hyVqsjRDmBnI2EPJX6HCodKIqOHfayQHqtxQCkqwthA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-skip-transparent-expression-wrappers": "^7.29.13",
+ "@babel/traverse": "^7.29.14",
+ "@babel/types": "^7.29.14"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-module-imports": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.29.7.tgz",
+ "integrity": "sha512-ejHwrQQYcm9xnTivShn2IDOlIzInN34AXskvq9QicvCtEzq1Vzclu/tKF8Jq1Cg8JG2GL6/EmjgsCT7lXepE3g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/traverse": "^7.29.7",
+ "@babel/types": "^7.29.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-module-transforms": {
+ "version": "7.29.14",
+ "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.29.14.tgz",
+ "integrity": "sha512-2XDvQVd9JESaOgGc4jT2/jquTAO7ppA5noTZQqH+MmZ89yjCzScLwtCPbWtkPZylL+TLWR49IwWmk+QkRR4GsA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-module-imports": "^7.29.7",
+ "@babel/helper-validator-identifier": "^7.29.7",
+ "@babel/traverse": "^7.29.14"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0"
+ }
+ },
+ "node_modules/@babel/helper-optimise-call-expression": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.29.7.tgz",
+ "integrity": "sha512-+kmGVjcT9RGYzoDwdwEqEvGgKe3BYq+O1iGzjFubaNgZHwYHP6lsF2Yghf4kEuv9BV7tYDZ913aBW9am6YKong==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/types": "^7.29.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-plugin-utils": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.29.7.tgz",
+ "integrity": "sha512-G7sHYigPY17oO5SYWnfD/0MTBwVR781S/JI643e/JhUYgVgWE/61SoW3NH9KWUKyKq5LVh3npif99Wkt6j86Jw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-replace-supers": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.29.7.tgz",
+ "integrity": "sha512-atfGXWSeCiF4DnKZIfmJfQRkSw9b9gNNXR1kqKjbhG4pGYCOnkp8OcTB8E3NXjBu8NpheSnOeNKz8KT7UNFTmQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-member-expression-to-functions": "^7.29.7",
+ "@babel/helper-optimise-call-expression": "^7.29.7",
+ "@babel/traverse": "^7.29.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0"
+ }
+ },
+ "node_modules/@babel/helper-skip-transparent-expression-wrappers": {
+ "version": "7.29.13",
+ "resolved": "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.29.13.tgz",
+ "integrity": "sha512-Abm4rKIH0tmCayJLwcoeOkdzpYUphTbO52fHhyEBHn7S0R+ni4epNLI/8nq1L0DN2Bl0u5qmgWm2Og/z4fBb+Q==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/traverse": "^7.29.13",
+ "@babel/types": "^7.29.11"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "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==",
+ "dev": true,
+ "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==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-validator-option": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.29.7.tgz",
+ "integrity": "sha512-N9ZErrD+yW5geCDtBqnOoxmR8+tNKiGuxKlDpuJxfsqpa2dFcexaziGAE/qoHLiDDreVNMupxGmSoNlyvsA3gw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helpers": {
+ "version": "7.29.15",
+ "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.29.15.tgz",
+ "integrity": "sha512-l+ezV2czw3t2d2ELq+3CwPL4WLKK5O8IywBXb9/gpmbCOVZFmRYJPmHVqSCv2k+8iKbE30Zf54siOoIZ52XOxA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/template": "^7.29.7",
+ "@babel/types": "^7.29.15"
+ },
+ "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==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/types": "^7.29.15"
+ },
+ "bin": {
+ "parser": "bin/babel-parser.js"
+ },
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/@babel/plugin-syntax-jsx": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.29.7.tgz",
+ "integrity": "sha512-TSu8+mHCoEaaCDEZ0I3+6mvTBYR4PCxQwf2z9/r5Tbztv6NaLR3B9thGTTxX2WGuGHJqRiAbKPeGTJ5XWXVg6A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.29.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-syntax-typescript": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.29.7.tgz",
+ "integrity": "sha512-ngr+82Sh0xMz25TPCZi+nC2iTzjfCdWS2ONXTp/PtSCHCgaCNBpdMqgvJ2ccdLlClVZ7sisIgB914j/JFe+RZA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.29.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-modules-commonjs": {
+ "version": "7.29.14",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.29.14.tgz",
+ "integrity": "sha512-mbv2yy5dqP6e3DbusCx+5AypXkFbyJD/JhG4/XhA+BIADOw5o7W+X0ewSp/h3w7gRL3oR5yny2/K8ljiydj4uA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-module-transforms": "^7.29.14",
+ "@babel/helper-plugin-utils": "^7.29.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-typescript": {
+ "version": "7.29.15",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.29.15.tgz",
+ "integrity": "sha512-FFuMssbHj8DFMDsTH8xrgKBiE1eXuDvO9jLqav7/vsIe6YdoyPQbWCgLNzQxkcIkOv5itBD17TvZkHGIjUMzLg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-annotate-as-pure": "^7.29.7",
+ "@babel/helper-create-class-features-plugin": "^7.29.13",
+ "@babel/helper-plugin-utils": "^7.29.7",
+ "@babel/helper-skip-transparent-expression-wrappers": "^7.29.13",
+ "@babel/plugin-syntax-typescript": "^7.29.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/preset-typescript": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/preset-typescript/-/preset-typescript-7.29.7.tgz",
+ "integrity": "sha512-/Foi8vKY2EVbed/1eZx0gJEEwHAIxogrySI7rULcRIvhZzbvoE/b5qG5Ghc0WKAFKOHA9SD1x7RsFlOYdutIiQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.29.7",
+ "@babel/helper-validator-option": "^7.29.7",
+ "@babel/plugin-syntax-jsx": "^7.29.7",
+ "@babel/plugin-transform-modules-commonjs": "^7.29.7",
+ "@babel/plugin-transform-typescript": "^7.29.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/runtime": {
+ "version": "7.29.15",
+ "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.29.15.tgz",
+ "integrity": "sha512-304gsbbGVmQc+cNGHzwHBlqepYdWLKj3VXCQBGt/EGcV7PUPfKI7kAUNW1FZEOCwlQiLvQjg1JEaAlRQ616h+Q==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/template": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.29.7.tgz",
+ "integrity": "sha512-puq+Gf35oI24FeN11LkoUQFqv9uwNeWpxXZi/Ji3rRIoKAzKnxRaZ+Gkj0vKS9ZCiTESfng1N9LyOyXvo+m+Gg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/code-frame": "^7.29.7",
+ "@babel/parser": "^7.29.7",
+ "@babel/types": "^7.29.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/traverse": {
+ "version": "7.29.15",
+ "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.15.tgz",
+ "integrity": "sha512-ZfawBo2i8vvt+BTt37dWDKBPjUfm/H+bw+ltwsCRhW7gPtyNVwUXuNo54eO2Xo+P4VXpalPFfFISbBTRKC8SOQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/code-frame": "^7.29.7",
+ "@babel/generator": "^7.29.15",
+ "@babel/helper-globals": "^7.29.7",
+ "@babel/parser": "^7.29.15",
+ "@babel/template": "^7.29.7",
+ "@babel/types": "^7.29.15",
+ "debug": "^4.3.1"
+ },
+ "engines": {
+ "node": ">=6.9.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==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-string-parser": "^7.29.15",
+ "@babel/helper-validator-identifier": "^7.29.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@base-ui/react": {
+ "version": "1.9.0",
+ "resolved": "https://registry.npmjs.org/@base-ui/react/-/react-1.9.0.tgz",
+ "integrity": "sha512-S8CSYosASBKtpL8SWUfS78rFElfLijiCgA7oHOK22jCJ95FULsYyKwBNFOgudt0RA+/7yNc7F81bOvQnRgbBiQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/runtime": "^7.29.7 || ^8.0.0",
+ "@base-ui/utils": "0.5.0",
+ "@floating-ui/react-dom": "^2.1.9",
+ "@floating-ui/utils": "^0.2.12",
+ "use-sync-external-store": "^1.7.0"
+ },
+ "engines": {
+ "node": ">=14.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/mui-org"
+ },
+ "peerDependencies": {
+ "@date-fns/tz": "^1.2.0",
+ "@types/react": "^17 || ^18 || ^19",
+ "date-fns": "^4.0.0",
+ "react": "^17 || ^18 || ^19",
+ "react-dom": "^17 || ^18 || ^19"
+ },
+ "peerDependenciesMeta": {
+ "@date-fns/tz": {
+ "optional": true
+ },
+ "@types/react": {
+ "optional": true
+ },
+ "date-fns": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@base-ui/utils": {
+ "version": "0.5.0",
+ "resolved": "https://registry.npmjs.org/@base-ui/utils/-/utils-0.5.0.tgz",
+ "integrity": "sha512-dYGGcEttjkYiMoa5nHm8vLaJ2UcuTWxo3BFAwOYXeRg/q7UVVvA6cacEIXEs3FgBfK1CGtW1ptElqs7wsx+t9A==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/runtime": "^7.29.7 || ^8.0.0",
+ "@floating-ui/utils": "^0.2.12",
+ "reselect": "^5.3.0",
+ "use-sync-external-store": "^1.7.0"
+ },
+ "peerDependencies": {
+ "@types/react": "^17 || ^18 || ^19",
+ "react": "^17 || ^18 || ^19",
+ "react-dom": "^17 || ^18 || ^19"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@dotenvx/dotenvx": {
+ "version": "1.75.1",
+ "resolved": "https://registry.npmjs.org/@dotenvx/dotenvx/-/dotenvx-1.75.1.tgz",
+ "integrity": "sha512-/BITOC9dmS/edY2zQwZNicQ059O6RKabtQfyEafV0nGtfYRNHYy1DIPiYVcov40+tob9hfmBnbR963dS+EQ1DQ==",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "@dotenvx/primitives": "^0.8.0",
+ "commander": "^11.1.0",
+ "conf": "^10.2.0",
+ "dotenv": "^17.2.1",
+ "enquirer": "^2.4.1",
+ "env-paths": "^2.2.1",
+ "execa": "^5.1.1",
+ "fdir": "^6.2.0",
+ "ignore": "^5.3.0",
+ "object-treeify": "1.1.33",
+ "open": "^8.4.2",
+ "picomatch": "^4.0.4",
+ "systeminformation": "^5.22.11",
+ "undici": "^7.11.0",
+ "which": "^4.0.0",
+ "yocto-spinner": "^1.1.0"
+ },
+ "bin": {
+ "dotenvx": "src/cli/dotenvx.js"
+ },
+ "funding": {
+ "url": "https://dotenvx.com"
+ }
+ },
+ "node_modules/@dotenvx/dotenvx/node_modules/commander": {
+ "version": "11.1.0",
+ "resolved": "https://registry.npmjs.org/commander/-/commander-11.1.0.tgz",
+ "integrity": "sha512-yPVavfyCcRhmorC7rWlkHn15b4wDVgVmBA7kV4QVBsF7kv/9TKJAbAXVTxvTnwP8HHKjRCJDClKbciiYS7p0DQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=16"
+ }
+ },
+ "node_modules/@dotenvx/dotenvx/node_modules/define-lazy-prop": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz",
+ "integrity": "sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/@dotenvx/dotenvx/node_modules/execa": {
+ "version": "5.1.1",
+ "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz",
+ "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "cross-spawn": "^7.0.3",
+ "get-stream": "^6.0.0",
+ "human-signals": "^2.1.0",
+ "is-stream": "^2.0.0",
+ "merge-stream": "^2.0.0",
+ "npm-run-path": "^4.0.1",
+ "onetime": "^5.1.2",
+ "signal-exit": "^3.0.3",
+ "strip-final-newline": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sindresorhus/execa?sponsor=1"
+ }
+ },
+ "node_modules/@dotenvx/dotenvx/node_modules/get-stream": {
+ "version": "6.0.1",
+ "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz",
+ "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/@dotenvx/dotenvx/node_modules/human-signals": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz",
+ "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=10.17.0"
+ }
+ },
+ "node_modules/@dotenvx/dotenvx/node_modules/is-docker": {
+ "version": "2.2.1",
+ "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz",
+ "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "is-docker": "cli.js"
+ },
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/@dotenvx/dotenvx/node_modules/is-stream": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz",
+ "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/@dotenvx/dotenvx/node_modules/is-wsl": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz",
+ "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-docker": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/@dotenvx/dotenvx/node_modules/npm-run-path": {
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz",
+ "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "path-key": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/@dotenvx/dotenvx/node_modules/open": {
+ "version": "8.4.2",
+ "resolved": "https://registry.npmjs.org/open/-/open-8.4.2.tgz",
+ "integrity": "sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "define-lazy-prop": "^2.0.0",
+ "is-docker": "^2.1.1",
+ "is-wsl": "^2.2.0"
+ },
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/@dotenvx/dotenvx/node_modules/signal-exit": {
+ "version": "3.0.7",
+ "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz",
+ "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/@dotenvx/dotenvx/node_modules/strip-final-newline": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz",
+ "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/@dotenvx/dotenvx/node_modules/undici": {
+ "version": "7.30.2",
+ "resolved": "https://registry.npmjs.org/undici/-/undici-7.30.2.tgz",
+ "integrity": "sha512-mLyPQnHwUxaM/rideoK/+KL8DaAJLRl4aBCfmX444aCSLnIaomqPLtNRe2jdCYcsk5wZzXrDIQC8ZeYNRAYyIA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=20.18.1"
+ }
+ },
+ "node_modules/@dotenvx/primitives": {
+ "version": "0.8.0",
+ "resolved": "https://registry.npmjs.org/@dotenvx/primitives/-/primitives-0.8.0.tgz",
+ "integrity": "sha512-VYJy0uhFm9zTJ1TxBaW/pA8bjbOM/OttaNMwZ1RHG4JKyRG7DhSdiqD1ipQoAyoD22olUtxbP78W9xY3Wd11bg==",
+ "dev": true,
+ "license": "BSD-3-Clause"
+ },
+ "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==",
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "@emnapi/wasi-threads": "2.2.0",
+ "tslib": "^2.4.0"
+ }
+ },
+ "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==",
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "tslib": "^2.4.0"
+ }
+ },
+ "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==",
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "tslib": "^2.4.0"
+ }
+ },
+ "node_modules/@exodus/bytes": {
+ "version": "1.16.0",
+ "resolved": "https://registry.npmjs.org/@exodus/bytes/-/bytes-1.16.0.tgz",
+ "integrity": "sha512-IcpW84uEn3N7ETtNZMlxKhfl6Pec8rUNGOTBtWbK1FKhJxIFAptZyVrvVRVBimAJxJCgc3PxepxkdWWG4DVzfA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "^20.19.0 || ^22.12.0 || >=24.0.0"
+ },
+ "peerDependencies": {
+ "@noble/hashes": "^1.8.0 || ^2.0.0"
+ },
+ "peerDependenciesMeta": {
+ "@noble/hashes": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@floating-ui/core": {
+ "version": "1.8.0",
+ "resolved": "https://registry.npmjs.org/@floating-ui/core/-/core-1.8.0.tgz",
+ "integrity": "sha512-0CIZ5itps/8x7BG8dEIhs53BvCUH2PCoogtakwRTut+Arm58sJooJ0AuZhLw2HJYIR5cMLNPBSS728sPho2khQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@floating-ui/utils": "^0.2.12"
+ }
+ },
+ "node_modules/@floating-ui/dom": {
+ "version": "1.8.0",
+ "resolved": "https://registry.npmjs.org/@floating-ui/dom/-/dom-1.8.0.tgz",
+ "integrity": "sha512-yXSrzeHZBTZadLOlfyhCkJHNeLJnHRnRInwdZ40L7ZiaAtrBwoYlsDrX3v5zB1Utk7CLfzcOVnVVWoXEky7Ceg==",
+ "license": "MIT",
+ "dependencies": {
+ "@floating-ui/core": "^1.8.0",
+ "@floating-ui/utils": "^0.2.12"
+ }
+ },
+ "node_modules/@floating-ui/react-dom": {
+ "version": "2.1.9",
+ "resolved": "https://registry.npmjs.org/@floating-ui/react-dom/-/react-dom-2.1.9.tgz",
+ "integrity": "sha512-JDjEFGCpImxDCA7JJKviA0M9+RtmJdj0m/NVU5IMgBK+AmZouAQQ7/+2GLH0GXXY0YMw9oXPB8hKdbPYg5QLYg==",
+ "license": "MIT",
+ "dependencies": {
+ "@floating-ui/dom": "^1.8.0"
+ },
+ "peerDependencies": {
+ "react": ">=16.8.0",
+ "react-dom": ">=16.8.0"
+ }
+ },
+ "node_modules/@floating-ui/utils": {
+ "version": "0.2.12",
+ "resolved": "https://registry.npmjs.org/@floating-ui/utils/-/utils-0.2.12.tgz",
+ "integrity": "sha512-HpCo8tmWzLVad5s2d19EhAz5zqrrQ6s69qd6moPMQvkOuSwDT1YgRfWSVuc4ennqrgv3OHppiOGMQ7oC13yIww==",
+ "license": "MIT"
+ },
+ "node_modules/@hookform/resolvers": {
+ "version": "7.0.8",
+ "resolved": "https://registry.npmjs.org/@hookform/resolvers/-/resolvers-7.0.8.tgz",
+ "integrity": "sha512-44+R4PUy3MWIBJR4sOjW0bZaz+H81k26urkTYeXAvEa8h45ueHrvQpZR/96iyLOobL6/yO0BJTaRPwwyDlL1/A==",
+ "license": "MIT",
+ "dependencies": {
+ "@standard-schema/utils": "^0.3.0"
+ },
+ "peerDependencies": {
+ "@standard-schema/spec": "^1.0.0",
+ "@vinejs/vine": "^2.0.0 || ^3.0.0 || ^4.0.0",
+ "ajv": "^8.12.0",
+ "ajv-errors": "^3.0.0",
+ "ajv-formats": "^2.1.1 || ^3.0.0",
+ "arktype": "^2.0.0 || ^3.0.0",
+ "ata-validator": "^1.23.0",
+ "class-transformer": ">=0.4.0",
+ "class-validator": ">=0.12.0",
+ "computed-types": "^1.0.0",
+ "effect": "^4.0.0",
+ "fluentvalidation-ts": "^3.0.0",
+ "fp-ts": "^2.7.0",
+ "io-ts": "^2.0.0",
+ "joi": "^17.0.0 || ^18.0.0",
+ "nope-validator": ">=0.12.0",
+ "react-hook-form": "^7.55.0",
+ "superstruct": ">=0.12.0",
+ "typanion": "^3.3.2",
+ "typebox": "^1.0.0",
+ "valibot": ">=0.31.0 || ^1.0.0-beta.4 || ^1.0.0-rc",
+ "vest": ">=6.0.0",
+ "yup": "^1.0.0",
+ "zod": "^3.25.0 || ^4.0.0"
+ },
+ "peerDependenciesMeta": {
+ "@standard-schema/spec": {
+ "optional": true
+ },
+ "@vinejs/vine": {
+ "optional": true
+ },
+ "ajv": {
+ "optional": true
+ },
+ "ajv-errors": {
+ "optional": true
+ },
+ "ajv-formats": {
+ "optional": true
+ },
+ "arktype": {
+ "optional": true
+ },
+ "ata-validator": {
+ "optional": true
+ },
+ "class-transformer": {
+ "optional": true
+ },
+ "class-validator": {
+ "optional": true
+ },
+ "computed-types": {
+ "optional": true
+ },
+ "effect": {
+ "optional": true
+ },
+ "fluentvalidation-ts": {
+ "optional": true
+ },
+ "fp-ts": {
+ "optional": true
+ },
+ "io-ts": {
+ "optional": true
+ },
+ "joi": {
+ "optional": true
+ },
+ "nope-validator": {
+ "optional": true
+ },
+ "superstruct": {
+ "optional": true
+ },
+ "typanion": {
+ "optional": true
+ },
+ "typebox": {
+ "optional": true
+ },
+ "valibot": {
+ "optional": true
+ },
+ "vest": {
+ "optional": true
+ },
+ "yup": {
+ "optional": true
+ },
+ "zod": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@jridgewell/gen-mapping": {
+ "version": "0.3.13",
+ "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz",
+ "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/sourcemap-codec": "^1.5.0",
+ "@jridgewell/trace-mapping": "^0.3.24"
+ }
+ },
+ "node_modules/@jridgewell/remapping": {
+ "version": "2.3.5",
+ "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz",
+ "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/gen-mapping": "^0.3.5",
+ "@jridgewell/trace-mapping": "^0.3.24"
+ }
+ },
+ "node_modules/@jridgewell/resolve-uri": {
+ "version": "3.1.3",
+ "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.3.tgz",
+ "integrity": "sha512-lhTtjtoEArWBjismtfS761S9Hlyn+nIZqOZVYoZ1Xn82PMNMVnk+jj/NhC4fAXGTs7ydONcJiR5vyQBTMDu27g==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "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==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@jridgewell/trace-mapping": {
+ "version": "0.3.31",
+ "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz",
+ "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/resolve-uri": "^3.1.0",
+ "@jridgewell/sourcemap-codec": "^1.4.14"
+ }
+ },
+ "node_modules/@modelcontextprotocol/core": {
+ "version": "2.4.0",
+ "resolved": "https://registry.npmjs.org/@modelcontextprotocol/core/-/core-2.4.0.tgz",
+ "integrity": "sha512-z8QBKqdfXLPzkLQuG4xp8hrVEMm1PZ1IgxMN2sMbJiFiAKOWXnAzogXn2W4aqIBlP1ea6U5yiqVquvUNM1Cj6Q==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "zod": "^4.2.0"
+ },
+ "engines": {
+ "node": ">=20"
+ }
+ },
+ "node_modules/@modelcontextprotocol/server": {
+ "version": "2.4.0",
+ "resolved": "https://registry.npmjs.org/@modelcontextprotocol/server/-/server-2.4.0.tgz",
+ "integrity": "sha512-rgR9yxSaAJ+bcsi/XroT/S2AfPiIWloXAnrdfYSCms9ivVju0ishu/wW0J21Ho6+ZOR1r7RyeRbjiRuF87ix5Q==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@modelcontextprotocol/core": "2.4.0",
+ "zod": "^4.2.0"
+ },
+ "engines": {
+ "node": ">=20"
+ }
+ },
+ "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==",
+ "dev": true,
+ "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/@nodelib/fs.scandir": {
+ "version": "2.1.5",
+ "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz",
+ "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@nodelib/fs.stat": "2.0.5",
+ "run-parallel": "^1.1.9"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/@nodelib/fs.stat": {
+ "version": "2.0.5",
+ "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz",
+ "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/@nodelib/fs.walk": {
+ "version": "1.2.8",
+ "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz",
+ "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@nodelib/fs.scandir": "2.1.5",
+ "fastq": "^1.6.0"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "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==",
+ "dev": true,
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/sponsors/oxc-project"
+ }
+ },
+ "node_modules/@oxlint/binding-android-arm-eabi": {
+ "version": "1.94.0",
+ "resolved": "https://registry.npmjs.org/@oxlint/binding-android-arm-eabi/-/binding-android-arm-eabi-1.94.0.tgz",
+ "integrity": "sha512-730FKSBsKg/NawYnpI3gXRroXptOVqY32iYBPLUZaSx0vgYzOeiNtwojZL4gJdzo9wDvHUlstShmGRHrWcbRYg==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@oxlint/binding-android-arm64": {
+ "version": "1.94.0",
+ "resolved": "https://registry.npmjs.org/@oxlint/binding-android-arm64/-/binding-android-arm64-1.94.0.tgz",
+ "integrity": "sha512-8v8TICIiZpXLot1HSq5+vsG9NEKQ5czQBYlUqJR75OVfFDr3cGOmRU/CtHDWnS4tm8nW+Z4Y357qGToSfYqFvA==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@oxlint/binding-darwin-arm64": {
+ "version": "1.94.0",
+ "resolved": "https://registry.npmjs.org/@oxlint/binding-darwin-arm64/-/binding-darwin-arm64-1.94.0.tgz",
+ "integrity": "sha512-NePcRMO/ltt1Pnytohl6pl0bd/QyRX8HbpptuDz9LK7FTsFD4lKxDMBt7di9k6IFLO0J05jO2nm7wGqIh6dRHA==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@oxlint/binding-darwin-x64": {
+ "version": "1.94.0",
+ "resolved": "https://registry.npmjs.org/@oxlint/binding-darwin-x64/-/binding-darwin-x64-1.94.0.tgz",
+ "integrity": "sha512-QV+m+OaEgLmYyillvP1wKXhMm6tDZEWx3vG7Wjmx9ybg15+6YMfqzvp6e+uPukC6zNywuule0vMn0fZgihZzZA==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@oxlint/binding-freebsd-x64": {
+ "version": "1.94.0",
+ "resolved": "https://registry.npmjs.org/@oxlint/binding-freebsd-x64/-/binding-freebsd-x64-1.94.0.tgz",
+ "integrity": "sha512-KVZjca581nrV6P71kZ9M1otBib9LH0IMn9rr4mrnbRp18V0HiZhBHbU26gji/Ieq2G34qMacnMc3zrmKmvWqWA==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@oxlint/binding-linux-arm-gnueabihf": {
+ "version": "1.94.0",
+ "resolved": "https://registry.npmjs.org/@oxlint/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.94.0.tgz",
+ "integrity": "sha512-AMQtgQJk8DgdIV+qaQ5sFoHAko4iKa8zo+gYqELy2grtU8hXWB08DAGB3u90aQL1YSxbd3zqHjgcODBHDFyzBQ==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@oxlint/binding-linux-arm-musleabihf": {
+ "version": "1.94.0",
+ "resolved": "https://registry.npmjs.org/@oxlint/binding-linux-arm-musleabihf/-/binding-linux-arm-musleabihf-1.94.0.tgz",
+ "integrity": "sha512-ZLzoGVGAmQkp9leeB5rNxAXLcvlmkmd/GY71LKd5uikk+28NEApY3S2FB3pq6MkfOCFFnFg6QgD9lJIjd07D0Q==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@oxlint/binding-linux-arm64-gnu": {
+ "version": "1.94.0",
+ "resolved": "https://registry.npmjs.org/@oxlint/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.94.0.tgz",
+ "integrity": "sha512-N1dW6o7cY90hLVkDsvz8nWIFOwbO+n272pvW7uLYB7u47HagJVnLChfK6QA9dWFdiPudud9zfksVUOciHc5PNA==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@oxlint/binding-linux-arm64-musl": {
+ "version": "1.94.0",
+ "resolved": "https://registry.npmjs.org/@oxlint/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.94.0.tgz",
+ "integrity": "sha512-7tCF4OV/bGDQ2xxgb+sDI97SpmmDrUII4JxTG553voJVA9cnkbXSGSXzo78Ax73BuhEOPoQc2Qi6VrfT0cDG2A==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "libc": [
+ "musl"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@oxlint/binding-linux-ppc64-gnu": {
+ "version": "1.94.0",
+ "resolved": "https://registry.npmjs.org/@oxlint/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.94.0.tgz",
+ "integrity": "sha512-B5vUHE4wNisVEuaYxwFUn6tY+vw7A+9APxxqGKI+UmP3yKLpkhnt0qsaCrzjpX55F8rCRHBaTvIDdYo32NE36g==",
+ "cpu": [
+ "ppc64"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@oxlint/binding-linux-riscv64-gnu": {
+ "version": "1.94.0",
+ "resolved": "https://registry.npmjs.org/@oxlint/binding-linux-riscv64-gnu/-/binding-linux-riscv64-gnu-1.94.0.tgz",
+ "integrity": "sha512-/U0b15+c4hTodo8YhEqDlQ6OjnGKvc8igjM/mh23ukqqCUBKiBCaxqUV8bcaofK9uZ+f8wCygkyXLS6LN25YSA==",
+ "cpu": [
+ "riscv64"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@oxlint/binding-linux-riscv64-musl": {
+ "version": "1.94.0",
+ "resolved": "https://registry.npmjs.org/@oxlint/binding-linux-riscv64-musl/-/binding-linux-riscv64-musl-1.94.0.tgz",
+ "integrity": "sha512-ba94Vwl0qOnwXIXNDR33AEbLXuX++ckM74t+9Te7CiPSPAHivhOYyeEkUAicrvOEei1pxXkWggLbFeBFFBTuHA==",
+ "cpu": [
+ "riscv64"
+ ],
+ "dev": true,
+ "libc": [
+ "musl"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@oxlint/binding-linux-s390x-gnu": {
+ "version": "1.94.0",
+ "resolved": "https://registry.npmjs.org/@oxlint/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.94.0.tgz",
+ "integrity": "sha512-GVwwwms3O8pdgbCiPavwq2vltyB4661GkDz6kJduZ0E5nsSJUDJ0svaP+ePYpuDVYi4+K1qhCKnWa/Ec8I4LUA==",
+ "cpu": [
+ "s390x"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@oxlint/binding-linux-x64-gnu": {
+ "version": "1.94.0",
+ "resolved": "https://registry.npmjs.org/@oxlint/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.94.0.tgz",
+ "integrity": "sha512-iUfCFJN8ZIresSnpTfiIkhF3s8X+XA4I9KJ249QwR2QYTMwh0+pla1pj1xaFi+HtR9McjM4Jaemf70HzX7ilOQ==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@oxlint/binding-linux-x64-musl": {
+ "version": "1.94.0",
+ "resolved": "https://registry.npmjs.org/@oxlint/binding-linux-x64-musl/-/binding-linux-x64-musl-1.94.0.tgz",
+ "integrity": "sha512-RqWVeWpDACS4Oh0m21OBmy+CQ50CbbhuHFmNNPVS2P/4R3d188MjEuEuV7So82/tAM8UAT+UuMDtRDESd9NJ7g==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "libc": [
+ "musl"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@oxlint/binding-openharmony-arm64": {
+ "version": "1.94.0",
+ "resolved": "https://registry.npmjs.org/@oxlint/binding-openharmony-arm64/-/binding-openharmony-arm64-1.94.0.tgz",
+ "integrity": "sha512-K/2DHOUoypwYVqzxJMRPdMuBKjAetZEAsGPP7rHimd+2+5J1TxM+17pG8kw+ayH4+rqBXiPd+H9wgPcU+fF77A==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openharmony"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@oxlint/binding-win32-arm64-msvc": {
+ "version": "1.94.0",
+ "resolved": "https://registry.npmjs.org/@oxlint/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.94.0.tgz",
+ "integrity": "sha512-hYOCaOJiB4ZCGswBWKl3JQrhqu6mnC5DCUw/1UMNzRXgsHIJ0V226J43LAVICVIDGlhFUZTYShFW+wHWpt6qCQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@oxlint/binding-win32-ia32-msvc": {
+ "version": "1.94.0",
+ "resolved": "https://registry.npmjs.org/@oxlint/binding-win32-ia32-msvc/-/binding-win32-ia32-msvc-1.94.0.tgz",
+ "integrity": "sha512-1l1FDlzbPmAeDoZ8UGspOE2dOmz1ZL6SlDsvOmRCmWSQjCdTy5LzUepS8mO/SGpAoz4D6WAt/yNZAUyHqbkmkQ==",
+ "cpu": [
+ "ia32"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "node_modules/@oxlint/binding-win32-x64-msvc": {
+ "version": "1.94.0",
+ "resolved": "https://registry.npmjs.org/@oxlint/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.94.0.tgz",
+ "integrity": "sha512-I3eZdd4bemIJQDNv9XDV/FEofDxIoN32tzCv98wIgLdW05EqxZb5hF4AwPrRzHD/dQhl0n7KgPy5AQPfM0HWrA==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ }
+ },
+ "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"
+ ],
+ "dev": true,
+ "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"
+ ],
+ "dev": true,
+ "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"
+ ],
+ "dev": true,
+ "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"
+ ],
+ "dev": true,
+ "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"
+ ],
+ "dev": true,
+ "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"
+ ],
+ "dev": true,
+ "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"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "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"
+ ],
+ "dev": true,
+ "libc": [
+ "musl"
+ ],
+ "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"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "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"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "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"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "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"
+ ],
+ "dev": true,
+ "libc": [
+ "musl"
+ ],
+ "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"
+ ],
+ "dev": true,
+ "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"
+ ],
+ "dev": true,
+ "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-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"
+ ],
+ "dev": true,
+ "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"
+ ],
+ "dev": true,
+ "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==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@sec-ant/readable-stream": {
+ "version": "0.4.1",
+ "resolved": "https://registry.npmjs.org/@sec-ant/readable-stream/-/readable-stream-0.4.1.tgz",
+ "integrity": "sha512-831qok9r2t8AlxLko40y2ebgSDhenenCatLVeW/uBtnHPyhHOvG0C7TvfgecV+wHzIm5KUICgzmVpWS+IMEAeg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@shadcn/registry": {
+ "version": "0.2.1",
+ "resolved": "https://registry.npmjs.org/@shadcn/registry/-/registry-0.2.1.tgz",
+ "integrity": "sha512-wMvZ3DGdnhCwtpeFbwKybSGfCcP52bZX77jMKgZvupmirgyA5KRLlkeQXkI2RGHIaD8TX2iWe2wcIEjjqzg2FQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/core": "^7.28.0",
+ "@babel/parser": "^7.28.0",
+ "@babel/plugin-transform-typescript": "^7.28.0",
+ "@babel/preset-typescript": "^7.27.1",
+ "@dotenvx/dotenvx": "^1.48.4",
+ "cn": "^0.2.4",
+ "code-block-writer": "^13.0.3",
+ "deepmerge": "^4.3.1",
+ "execa": "^9.6.0",
+ "fast-glob": "^3.3.3",
+ "fs-extra": "^11.3.1",
+ "fuzzysort": "^3.1.0",
+ "kleur": "^4.1.5",
+ "ora": "^8.2.0",
+ "postcss": "^8.5.23",
+ "prompts": "^2.4.2",
+ "recast": "^0.23.11",
+ "socks": "^2.8.8",
+ "stringify-object": "^5.0.0",
+ "tsconfig-paths": "^4.2.0",
+ "type-fest": "^4.41.0",
+ "undici": "^7.30.1",
+ "zod": "^4.2.0"
+ },
+ "engines": {
+ "node": ">=20.18.1"
+ }
+ },
+ "node_modules/@shadcn/registry/node_modules/cn": {
+ "version": "0.2.6",
+ "resolved": "https://registry.npmjs.org/cn/-/cn-0.2.6.tgz",
+ "integrity": "sha512-+i4L0zUGgRcEnhsxueVrP7iBGxBx5iD0WOTYg1MwFEu2ZyCmH5Ov2V1cul2Ht5UchRQQgftCf4be/RxspuW6QQ==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "cn": "bin/cn.mjs"
+ },
+ "engines": {
+ "node": ">=20"
+ }
+ },
+ "node_modules/@shadcn/registry/node_modules/undici": {
+ "version": "7.30.2",
+ "resolved": "https://registry.npmjs.org/undici/-/undici-7.30.2.tgz",
+ "integrity": "sha512-mLyPQnHwUxaM/rideoK/+KL8DaAJLRl4aBCfmX444aCSLnIaomqPLtNRe2jdCYcsk5wZzXrDIQC8ZeYNRAYyIA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=20.18.1"
+ }
+ },
+ "node_modules/@sindresorhus/merge-streams": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/@sindresorhus/merge-streams/-/merge-streams-4.0.0.tgz",
+ "integrity": "sha512-tlqY9xq5ukxTUZBmoOp+m61cqwQD5pHJtFY3Mn8CA8ps6yghLH/Hw8UPdqg4OLmFW3IFlcXnQNmo/dh8HzXYIQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/@standard-schema/utils": {
+ "version": "0.3.0",
+ "resolved": "https://registry.npmjs.org/@standard-schema/utils/-/utils-0.3.0.tgz",
+ "integrity": "sha512-e7Mew686owMaPJVNNLs55PUvgz371nKgwsc4vxE49zsODpJEnxgxRo2y/OKrqueavXgZNMDVj3DdHFlaSAeU8g==",
+ "license": "MIT"
+ },
+ "node_modules/@tanstack/query-core": {
+ "version": "5.108.2",
+ "resolved": "https://registry.npmjs.org/@tanstack/query-core/-/query-core-5.108.2.tgz",
+ "integrity": "sha512-0l+0xDKqn71hfJBKaAvFP/X7WYM0TbscEk6nK1pHaWQUWUEA+WJD0VlT8wF+HIJANMV9B/DouPWwDnX3w/l9BA==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/tannerlinsley"
+ }
+ },
+ "node_modules/@tanstack/react-query": {
+ "version": "5.108.2",
+ "resolved": "https://registry.npmjs.org/@tanstack/react-query/-/react-query-5.108.2.tgz",
+ "integrity": "sha512-wV6hEjVGTfh9rvu3uREYW0hgBfS9klDejGelhPY575jD5jg6qbAb1nzT7hR1Q+wemR66ZjtE5p9pAGUwqK8zbg==",
+ "license": "MIT",
+ "dependencies": {
+ "@tanstack/query-core": "5.108.2"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/tannerlinsley"
+ },
+ "peerDependencies": {
+ "@types/react": "^18 || ^19",
+ "react": "^18 || ^19"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@testing-library/dom": {
+ "version": "10.4.2",
+ "resolved": "https://registry.npmjs.org/@testing-library/dom/-/dom-10.4.2.tgz",
+ "integrity": "sha512-yzr2S9HyAIdhz2/6qHgbs665Q7PKVcDF05vsOlHPxG1mo36gKVesdYVeDLnXgfjJ03CrKRk08knc6+E/9m8v2Q==",
+ "dev": true,
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "@babel/code-frame": "^7.10.4",
+ "@babel/runtime": "^7.12.5",
+ "@types/aria-query": "^5.0.1",
+ "aria-query": "5.3.0",
+ "dom-accessibility-api": "^0.5.9",
+ "lz-string": "^1.5.0",
+ "picocolors": "1.1.1",
+ "pretty-format": "^27.0.2"
+ },
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@testing-library/jest-dom": {
+ "version": "8.0.0",
+ "resolved": "https://registry.npmjs.org/@testing-library/jest-dom/-/jest-dom-8.0.0.tgz",
+ "integrity": "sha512-Nu45KEeFgP/ydCMipnisMblq6YHViqEFi3fKN0a40s+zdKDDD7vEPCEavS0i7i4RxmclcEIL8q2o42pu+WgNgg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@adobe/css-tools": "^4.4.0",
+ "aria-query": "^5.0.0",
+ "css.escape": "^1.5.1",
+ "dom-accessibility-api": "^0.6.3",
+ "picocolors": "^1.1.1",
+ "redent": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=22",
+ "npm": ">=6",
+ "yarn": ">=1"
+ },
+ "peerDependencies": {
+ "@testing-library/dom": ">=10 <11",
+ "vitest": ">=5 <6"
+ },
+ "peerDependenciesMeta": {
+ "vitest": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@testing-library/jest-dom/node_modules/dom-accessibility-api": {
+ "version": "0.6.3",
+ "resolved": "https://registry.npmjs.org/dom-accessibility-api/-/dom-accessibility-api-0.6.3.tgz",
+ "integrity": "sha512-7ZgogeTnjuHbo+ct10G9Ffp0mif17idi0IyWNVA/wcwcm7NPOD/WEHVP3n7n3MhXqxoIYm8d6MuZohYWIZ4T3w==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@testing-library/react": {
+ "version": "16.3.3",
+ "resolved": "https://registry.npmjs.org/@testing-library/react/-/react-16.3.3.tgz",
+ "integrity": "sha512-Uo193NgQbPMz6lrrhtRQQFcMC6Re/ELLFbbuVL30WDlZxlpZf9/lMHTAVxPRLw1q1iu9OJmR1c2BLiENRstdBg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/runtime": "^7.12.5"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "peerDependencies": {
+ "@testing-library/dom": "^10.0.0",
+ "@types/react": "^18.0.0 || ^19.0.0",
+ "@types/react-dom": "^18.0.0 || ^19.0.0",
+ "react": "^18.0.0 || ^19.0.0",
+ "react-dom": "^18.0.0 || ^19.0.0"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@testing-library/user-event": {
+ "version": "14.6.13",
+ "resolved": "https://registry.npmjs.org/@testing-library/user-event/-/user-event-14.6.13.tgz",
+ "integrity": "sha512-2LVZGptuB5un1Cu/u31o9adkCwbsUTMp4B4p04xupI7uobvTIpgKidSdShqZiReo/mQmvR9xjgdgTgge4oAbYA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12",
+ "npm": ">=6"
+ },
+ "peerDependencies": {
+ "@testing-library/dom": ">=7.21.4"
+ }
+ },
+ "node_modules/@ts-morph/common": {
+ "version": "0.27.0",
+ "resolved": "https://registry.npmjs.org/@ts-morph/common/-/common-0.27.0.tgz",
+ "integrity": "sha512-Wf29UqxWDpc+i61k3oIOzcUfQt79PIT9y/MWfAGlrkjg6lBC1hwDECLXPVJAhWjiGbfBCxZd65F/LIZF3+jeJQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "fast-glob": "^3.3.3",
+ "minimatch": "^10.0.1",
+ "path-browserify": "^1.0.1"
+ }
+ },
+ "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==",
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "tslib": "^2.4.0"
+ }
+ },
+ "node_modules/@types/aria-query": {
+ "version": "5.0.4",
+ "resolved": "https://registry.npmjs.org/@types/aria-query/-/aria-query-5.0.4.tgz",
+ "integrity": "sha512-rfT93uj5s0PRL7EzccGMs3brplhcrghnDoV26NqKhCAS1hVo+WdNsPvE/yb6ilfr5hi2MEk6d5EWJTKdxg8jVw==",
+ "dev": true,
+ "license": "MIT",
+ "peer": true
+ },
+ "node_modules/@types/chai": {
+ "version": "5.2.3",
+ "resolved": "https://registry.npmjs.org/@types/chai/-/chai-5.2.3.tgz",
+ "integrity": "sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/deep-eql": "*",
+ "assertion-error": "^2.0.1"
+ }
+ },
+ "node_modules/@types/debug": {
+ "version": "4.1.13",
+ "resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.13.tgz",
+ "integrity": "sha512-KSVgmQmzMwPlmtljOomayoR89W4FynCAi3E8PPs7vmDVPe84hT+vGPKkJfThkmXs0x0jAaa9U8uW8bbfyS2fWw==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/ms": "*"
+ }
+ },
+ "node_modules/@types/deep-eql": {
+ "version": "4.0.2",
+ "resolved": "https://registry.npmjs.org/@types/deep-eql/-/deep-eql-4.0.2.tgz",
+ "integrity": "sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@types/estree": {
+ "version": "1.0.10",
+ "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.10.tgz",
+ "integrity": "sha512-lTyOMnOcmRBzdCv6/4zUZCrEhV0xrqQiUZBZtVcbmLHBXKLnN8q89v/wKRF/Q0HbwVsqbIG3o5HDoFl9sduM+g==",
+ "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/ms": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/@types/ms/-/ms-2.1.0.tgz",
+ "integrity": "sha512-GsCCIZDE/p3i96vtEqx+7dBUGXrc7zeSK3wwPHIaRThS+9OhWIXRqzs4d6k1SVU8g91DrNRWxWUGhp5KXQb2VA==",
+ "license": "MIT"
+ },
+ "node_modules/@types/node": {
+ "version": "24.19.2",
+ "resolved": "https://registry.npmjs.org/@types/node/-/node-24.19.2.tgz",
+ "integrity": "sha512-93d49wCWJkCyN87MxLpNN6KXPCwFw7bVUg79mGUV1OS40JGWwVCr8n61DXCSqz7CV6/VfPkb7xec7uP2M+QHWQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "undici-types": ">=7.24.0 <7.24.7"
+ }
+ },
+ "node_modules/@types/react": {
+ "version": "19.3.0",
+ "resolved": "https://registry.npmjs.org/@types/react/-/react-19.3.0.tgz",
+ "integrity": "sha512-N0rFCuH9YoxG9/m61l9MfpJKfmLOVU0em7ipIz6TRgSSkvReLB9vL85GB+yr8Bs5leqpvg96JSwF4ZS1s4viQg==",
+ "license": "MIT",
+ "dependencies": {
+ "csstype": "^3.2.2"
+ }
+ },
+ "node_modules/@types/react-dom": {
+ "version": "19.3.0",
+ "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-19.3.0.tgz",
+ "integrity": "sha512-ZI7bU42mZXXKHn/qNLEw2IrbiINU7X5+vfgdixBHkCNpYWXjKgfQ/P+uyGb5CjOLB9UcnTeg3rylQtV2hym44Q==",
+ "dev": true,
+ "license": "MIT",
+ "peerDependencies": {
+ "@types/react": "^19.3.0"
+ }
+ },
+ "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/@types/validate-npm-package-name": {
+ "version": "4.0.2",
+ "resolved": "https://registry.npmjs.org/@types/validate-npm-package-name/-/validate-npm-package-name-4.0.2.tgz",
+ "integrity": "sha512-lrpDziQipxCEeK5kWxvljWYhUvOiB2A9izZd9B2AFarYAkqZshb4lPbRs7zKEic6eGtH8V/2qJW+dPp9OtF6bw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@typescript/typescript-aix-ppc64": {
+ "version": "7.0.2",
+ "resolved": "https://registry.npmjs.org/@typescript/typescript-aix-ppc64/-/typescript-aix-ppc64-7.0.2.tgz",
+ "integrity": "sha512-MTKKkWB7p/0E9xi1d1tHtZ5PiLkGEMIq88pK2CubZjOsLtYTLqhgIgi6zepFa+9GHZ6h05NMCkQxGKiPXMxXtQ==",
+ "cpu": [
+ "ppc64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "aix"
+ ],
+ "engines": {
+ "node": ">=16.20.0"
+ }
+ },
+ "node_modules/@typescript/typescript-darwin-arm64": {
+ "version": "7.0.2",
+ "resolved": "https://registry.npmjs.org/@typescript/typescript-darwin-arm64/-/typescript-darwin-arm64-7.0.2.tgz",
+ "integrity": "sha512-gowzar9MwS/aRWp6f3a4KUqzRjAZjOsmGNCM6LcTgXum+dBfgsBVMN+AgvOCCbguXyick6LJhpBszxMebJ8syA==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">=16.20.0"
+ }
+ },
+ "node_modules/@typescript/typescript-darwin-x64": {
+ "version": "7.0.2",
+ "resolved": "https://registry.npmjs.org/@typescript/typescript-darwin-x64/-/typescript-darwin-x64-7.0.2.tgz",
+ "integrity": "sha512-SZ9xZInqApNlNGc9s0W1VSsktYSOe9cFqNOIqmN1Gs8SmkjKZYFt017G4VwPxASInODuAdbTW7sXiFUf893RgA==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">=16.20.0"
+ }
+ },
+ "node_modules/@typescript/typescript-freebsd-arm64": {
+ "version": "7.0.2",
+ "resolved": "https://registry.npmjs.org/@typescript/typescript-freebsd-arm64/-/typescript-freebsd-arm64-7.0.2.tgz",
+ "integrity": "sha512-W5NH4y/J0plIIS5b2xvTEkU7JFxyqdMAOgf+Ilhl0vHQXKO5dZoxd+C/jEtq56c4F3wk71RB4BMRQ2XdI+bwYQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ],
+ "engines": {
+ "node": ">=16.20.0"
+ }
+ },
+ "node_modules/@typescript/typescript-freebsd-x64": {
+ "version": "7.0.2",
+ "resolved": "https://registry.npmjs.org/@typescript/typescript-freebsd-x64/-/typescript-freebsd-x64-7.0.2.tgz",
+ "integrity": "sha512-UMGDx5sTpzNw3WiPebH7l90IWfJggEd+egHt/q6p7/Cm3zqoV7VxkGXt+3DxPIw8CcmvAB0j3sVVfbhX+M4Tpw==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ],
+ "engines": {
+ "node": ">=16.20.0"
+ }
+ },
+ "node_modules/@typescript/typescript-linux-arm": {
+ "version": "7.0.2",
+ "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-arm/-/typescript-linux-arm-7.0.2.tgz",
+ "integrity": "sha512-gffT3xPz9sR7j/YJExkyPntrI0P2EP9XbOyWzth2/Gs0RstK+90RBcO0ncXoXy/beYll1SXw846Nf2zdnEz0QQ==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=16.20.0"
+ }
+ },
+ "node_modules/@typescript/typescript-linux-arm64": {
+ "version": "7.0.2",
+ "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-arm64/-/typescript-linux-arm64-7.0.2.tgz",
+ "integrity": "sha512-Qh4eU4/y3yDjnfjjyPYihMj5/ODIlmt+Bzu17OI+fiSRDW57QmU5SiN63exPRNJPKUzcc1INa1NXdrJ+MqHjUQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=16.20.0"
+ }
+ },
+ "node_modules/@typescript/typescript-linux-loong64": {
+ "version": "7.0.2",
+ "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-loong64/-/typescript-linux-loong64-7.0.2.tgz",
+ "integrity": "sha512-uEHck9i8hoAzXPiYRib1O7miOnz23SxIeVl6F4LXox+qov1K35jHcEW6VHKvZI+pyvl7fZEP4MCU5LYvIq1GuQ==",
+ "cpu": [
+ "loong64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=16.20.0"
+ }
+ },
+ "node_modules/@typescript/typescript-linux-mips64el": {
+ "version": "7.0.2",
+ "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-mips64el/-/typescript-linux-mips64el-7.0.2.tgz",
+ "integrity": "sha512-R4KvAMnE43W5Qeqb0Ly56O3mWMWIAgsMyz36DCaycd5nbg/9kzm0liw3JocfRqyJY0KPmzFjbswozXyW0DnIYA==",
+ "cpu": [
+ "mips64el"
+ ],
+ "dev": true,
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=16.20.0"
+ }
+ },
+ "node_modules/@typescript/typescript-linux-ppc64": {
+ "version": "7.0.2",
+ "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-ppc64/-/typescript-linux-ppc64-7.0.2.tgz",
+ "integrity": "sha512-DORx5b3sd/4S7eayxm4FQv+A7CrkUIGRaHiwI8oiHTAI1fAPWhF4J0vAlkC8biAlHSVVwxMQ3tjZ2/DVbnQiiA==",
+ "cpu": [
+ "ppc64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=16.20.0"
+ }
+ },
+ "node_modules/@typescript/typescript-linux-riscv64": {
+ "version": "7.0.2",
+ "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-riscv64/-/typescript-linux-riscv64-7.0.2.tgz",
+ "integrity": "sha512-wf0jqEDOjrPRnKwYRyyJDRo11KMbvMFrU+q4zqKyChODBzvlkbhNQfKvLxQCcwTpdDaXSHZTVuh0JoCrKCUMHQ==",
+ "cpu": [
+ "riscv64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=16.20.0"
+ }
+ },
+ "node_modules/@typescript/typescript-linux-s390x": {
+ "version": "7.0.2",
+ "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-s390x/-/typescript-linux-s390x-7.0.2.tgz",
+ "integrity": "sha512-IkwJc3L7yhytWd/ewjyxNDfOmswCm9GWMJT/ue/dU4aZNbwZeYAetq42VyLmsmSjvoX7z74X6ZaYCtzAr0EuGw==",
+ "cpu": [
+ "s390x"
+ ],
+ "dev": true,
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=16.20.0"
+ }
+ },
+ "node_modules/@typescript/typescript-linux-x64": {
+ "version": "7.0.2",
+ "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-x64/-/typescript-linux-x64-7.0.2.tgz",
+ "integrity": "sha512-EYdf2cNg7rgCWJnxCdJ+F3V39O8ihb37eHAu1LK8oAFizgTQbPOK7zHHXbPt8rX24COqODXeI3sIf0fCXG7H/A==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=16.20.0"
+ }
+ },
+ "node_modules/@typescript/typescript-netbsd-arm64": {
+ "version": "7.0.2",
+ "resolved": "https://registry.npmjs.org/@typescript/typescript-netbsd-arm64/-/typescript-netbsd-arm64-7.0.2.tgz",
+ "integrity": "sha512-+polYF4MF04aPpO5FTkHran9yUQDSXqy5GiSDKpsll5jy3l3+g9QLhpf39T+ePtefhXLOGrLl0QIjkQP6VnelA==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "netbsd"
+ ],
+ "engines": {
+ "node": ">=16.20.0"
+ }
+ },
+ "node_modules/@typescript/typescript-netbsd-x64": {
+ "version": "7.0.2",
+ "resolved": "https://registry.npmjs.org/@typescript/typescript-netbsd-x64/-/typescript-netbsd-x64-7.0.2.tgz",
+ "integrity": "sha512-8YIT0EHM/3dq10ZOVF/A7pc/YSMtbcecct4rWtexrnSCHOPcpC2KTLXfTCR6vDpnSiY12heNb1GiN/wu+T/FyA==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "netbsd"
+ ],
+ "engines": {
+ "node": ">=16.20.0"
+ }
+ },
+ "node_modules/@typescript/typescript-openbsd-arm64": {
+ "version": "7.0.2",
+ "resolved": "https://registry.npmjs.org/@typescript/typescript-openbsd-arm64/-/typescript-openbsd-arm64-7.0.2.tgz",
+ "integrity": "sha512-APT8+ClYnuYm1u9+kgGXoMj2VzWzcymwh2gNSQVySHfkRDGOTVkoWLjCmOQSaO+PoqQ57B0flRp9SA+7GnnkzQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "openbsd"
+ ],
+ "engines": {
+ "node": ">=16.20.0"
+ }
+ },
+ "node_modules/@typescript/typescript-openbsd-x64": {
+ "version": "7.0.2",
+ "resolved": "https://registry.npmjs.org/@typescript/typescript-openbsd-x64/-/typescript-openbsd-x64-7.0.2.tgz",
+ "integrity": "sha512-yX7s+Q0Dln0Dt9tEzZsAjXXR/+ytBM7AlglaqyeMPxQszJ1JhlJdZ6jLA+IzldHtflX81em7lDao1xXu+aRRkg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "openbsd"
+ ],
+ "engines": {
+ "node": ">=16.20.0"
+ }
+ },
+ "node_modules/@typescript/typescript-sunos-x64": {
+ "version": "7.0.2",
+ "resolved": "https://registry.npmjs.org/@typescript/typescript-sunos-x64/-/typescript-sunos-x64-7.0.2.tgz",
+ "integrity": "sha512-dLJDGaLZ1D4HPQn62u1n8mBDkJREwMsAkCdkwd4Ieqw+x3TUyTsqY0YiBCtE6H6OzzgGk3iuZ3vFWRS+E8/d1g==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "sunos"
+ ],
+ "engines": {
+ "node": ">=16.20.0"
+ }
+ },
+ "node_modules/@typescript/typescript-win32-arm64": {
+ "version": "7.0.2",
+ "resolved": "https://registry.npmjs.org/@typescript/typescript-win32-arm64/-/typescript-win32-arm64-7.0.2.tgz",
+ "integrity": "sha512-Gyl1Vy6OsWesLzmq+EP0Fb7b4Nid5232AvcA2SFcdYreldpNtYFFofPjnt62y9hQy7VTaZp65ICJjuAQRaVcIQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=16.20.0"
+ }
+ },
+ "node_modules/@typescript/typescript-win32-x64": {
+ "version": "7.0.2",
+ "resolved": "https://registry.npmjs.org/@typescript/typescript-win32-x64/-/typescript-win32-x64-7.0.2.tgz",
+ "integrity": "sha512-0BQ3HkAHHlKLSp1qRvf3SUhGpGsDuhB/jgFw75guyqbxJqEaS0Cw/VFO8i2nHglJUzQCRtMMR/IBAKE3ETMC4g==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=16.20.0"
+ }
+ },
+ "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/@vitejs/plugin-react": {
+ "version": "6.3.0",
+ "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-6.3.0.tgz",
+ "integrity": "sha512-H9E955aVvD2F4zNHCw4eIZbIfF6xKldlh7MNu+hSU7xwQzh65lI/N+CJWqmfhi0PEjDXIt/H7T7J/4wU63KJiw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@rolldown/pluginutils": "^1.0.1"
+ },
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ },
+ "peerDependencies": {
+ "@rolldown/plugin-babel": "^0.1.7 || ^0.2.0 || ^0.3.0",
+ "babel-plugin-react-compiler": "^1.0.0",
+ "oxc-transform-react": ">=0.152.0 <0.157.0",
+ "vite": "^8.0.0"
+ },
+ "peerDependenciesMeta": {
+ "@rolldown/plugin-babel": {
+ "optional": true
+ },
+ "babel-plugin-react-compiler": {
+ "optional": true
+ },
+ "oxc-transform-react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@vitest/mocker": {
+ "version": "5.1.1",
+ "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-5.1.1.tgz",
+ "integrity": "sha512-b2OgTB4+3ImWIVafXKazJXwLKwQxUNnix6b3xUvUTMh7RyXlrtzoxfZr8aEz9zkHOMAS4K5lu3TvFWoiVeVTQg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/trace-mapping": "0.3.31",
+ "@vitest/spy": "5.1.1",
+ "estree-walker": "^3.0.3",
+ "magic-string": "^1.4.5"
+ },
+ "funding": {
+ "url": "https://opencollective.com/vitest"
+ },
+ "peerDependencies": {
+ "msw": "^2.4.9 || ^3.0.0",
+ "vite": "^6.0.0 || ^7.0.0 || ^8.0.0"
+ },
+ "peerDependenciesMeta": {
+ "msw": {
+ "optional": true
+ },
+ "vite": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@vitest/spy": {
+ "version": "5.1.1",
+ "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-5.1.1.tgz",
+ "integrity": "sha512-6K8C6alQG1/Yc8/ZI22iJS7JEsxPdVzqtqDq+/xM4Z0mGVykemMVjLhqMy/q6/IHYG3kKD8hKSwRen/ZdyI9vQ==",
+ "dev": true,
+ "license": "MIT",
+ "funding": {
+ "url": "https://opencollective.com/vitest"
+ }
+ },
+ "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==",
+ "devOptional": true,
+ "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": "2.1.1",
+ "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-2.1.1.tgz",
+ "integrity": "sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==",
+ "devOptional": true,
+ "license": "MIT",
+ "dependencies": {
+ "ajv": "^8.0.0"
+ },
+ "peerDependencies": {
+ "ajv": "^8.0.0"
+ },
+ "peerDependenciesMeta": {
+ "ajv": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/ansi-colors": {
+ "version": "4.1.3",
+ "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.3.tgz",
+ "integrity": "sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/ansi-regex": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
+ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/ansi-styles": {
+ "version": "5.2.0",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz",
+ "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==",
+ "dev": true,
+ "license": "MIT",
+ "peer": true,
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"
+ }
+ },
+ "node_modules/any-promise": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/any-promise/-/any-promise-1.3.0.tgz",
+ "integrity": "sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "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==",
+ "dev": true,
+ "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==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8.6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/jonschlinkert"
+ }
+ },
+ "node_modules/arg": {
+ "version": "5.0.2",
+ "resolved": "https://registry.npmjs.org/arg/-/arg-5.0.2.tgz",
+ "integrity": "sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/aria-query": {
+ "version": "5.3.0",
+ "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.3.0.tgz",
+ "integrity": "sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "dequal": "^2.0.3"
+ }
+ },
+ "node_modules/assertion-error": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-2.0.1.tgz",
+ "integrity": "sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/ast-types": {
+ "version": "0.16.3",
+ "resolved": "https://registry.npmjs.org/ast-types/-/ast-types-0.16.3.tgz",
+ "integrity": "sha512-FvWoWYfSCM6kRxCSH+MGLHIKKGRL6A6AW7Zek2O32REPQRdg131428uRTKMBYAeRd3XXAaHDS60Wpri7CdKDrA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "tslib": "^2.0.1"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/atomically": {
+ "version": "1.7.0",
+ "resolved": "https://registry.npmjs.org/atomically/-/atomically-1.7.0.tgz",
+ "integrity": "sha512-Xcz9l0z7y9yQ9rdDaxlmaI4uJHf/T8g9hOEzJcsEqX2SjCj4J20uK7+ldkDHMbpJDK76wF7xEIgxc/vSlsfw5w==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=10.12.0"
+ }
+ },
+ "node_modules/autoprefixer": {
+ "version": "10.7.0",
+ "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.7.0.tgz",
+ "integrity": "sha512-M4rWhYFPp8YSAfqLDT/wRN9trfe/Z/aZLPxrLQJUQRTPrChss2T+hmgaV5770J52bLuGOMzt6Hjl8tEb6YWv5Q==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/postcss/"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/autoprefixer"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "browserslist": "^4.29.6",
+ "caniuse-lite": "^1.0.30001826",
+ "fraction.js": "^5.3.4",
+ "picocolors": "^1.1.1",
+ "postcss-value-parser": "^4.2.0"
+ },
+ "bin": {
+ "autoprefixer": "bin/autoprefixer"
+ },
+ "engines": {
+ "node": "^10 || ^12 || >=14"
+ },
+ "peerDependencies": {
+ "postcss": "^8.1.0"
+ }
+ },
+ "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/balanced-match": {
+ "version": "4.0.4",
+ "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz",
+ "integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "18 || 20 || >=22"
+ }
+ },
+ "node_modules/baseline-browser-mapping": {
+ "version": "2.11.39",
+ "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.11.39.tgz",
+ "integrity": "sha512-Q9buOYhr2ggrEZpImICecZTJHCCd8yXkRUokFlUEQ8uiD6oP82F4W4jWnhOHZYV+wlvrC51V7Wy0ULyWjil5Wg==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "bin": {
+ "baseline-browser-mapping": "dist/cli.cjs"
+ },
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/bcp-47": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/bcp-47/-/bcp-47-2.1.2.tgz",
+ "integrity": "sha512-wsv86UuNFuPnVieKLyECTT+CP1WSAHeoIg5P3xu2kA9Z+7fVPoKt7dxzSeEhtJel0AI+NW3fIW3KtTKQKUCngg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-alphabetical": "^2.0.0",
+ "is-alphanumerical": "^2.0.0",
+ "is-decimal": "^2.0.0"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ }
+ },
+ "node_modules/bcp-47-match": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/bcp-47-match/-/bcp-47-match-2.0.3.tgz",
+ "integrity": "sha512-JtTezzbAibu8G0R9op9zb3vcWZd9JF6M0xOYGPn0fNCd7wOpRB1mU2mH9T8gaBGbAAyIIVgB2G7xG0GP98zMAQ==",
+ "dev": true,
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ }
+ },
+ "node_modules/binary-extensions": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz",
+ "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/brace-expansion": {
+ "version": "5.0.13",
+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.13.tgz",
+ "integrity": "sha512-Vh3dmFbc4wZeox7M9I/0L9GfFd83Su4+yCck/OF9Gi/P/dAHn0RT7X4K9R7gMNMhDck3DvhR6QXsnQdjjgwNvQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "balanced-match": "^4.0.2"
+ },
+ "engines": {
+ "node": "20 || >=22"
+ }
+ },
+ "node_modules/braces": {
+ "version": "3.0.3",
+ "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz",
+ "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "fill-range": "^7.1.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/browserslist": {
+ "version": "4.29.6",
+ "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.29.6.tgz",
+ "integrity": "sha512-CmVVIQ3RVc5HxYEc9X84GvxK/C8C1wH8TlKAiO7uTxF8PDwt7r8t9Qk3J9NkMOVzX5O/HbLv3yzxZg9HPrnI9w==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/browserslist"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/browserslist"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "baseline-browser-mapping": "^2.11.37",
+ "caniuse-lite": "^1.0.30001826",
+ "electron-to-chromium": "^1.5.486",
+ "node-releases": "^2.0.64",
+ "update-browserslist-db": "^1.4.0"
+ },
+ "bin": {
+ "browserslist": "cli.js"
+ },
+ "engines": {
+ "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7"
+ }
+ },
+ "node_modules/bundle-name": {
+ "version": "4.1.1",
+ "resolved": "https://registry.npmjs.org/bundle-name/-/bundle-name-4.1.1.tgz",
+ "integrity": "sha512-DdH81/zPLVS11EUgWq3tEu/xn+EzljlMYooDNdzWEnFha3R3NBMpMV1UqYIpjYHV/SgpFKMIX1Oh7o06SjM/oA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "run-applescript": "^7.0.0"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/camelcase-css": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/camelcase-css/-/camelcase-css-2.0.1.tgz",
+ "integrity": "sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/caniuse-lite": {
+ "version": "1.0.30001826",
+ "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001826.tgz",
+ "integrity": "sha512-wTB+9tIbLro/BCXwLuNV1meHE4L9dS6dArMDwgYfNBPMYScqClHyGunhkCSDtHhe/69Xl0sHlKgBVZ+fNsYtWA==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/browserslist"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/caniuse-lite"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "CC-BY-4.0"
+ },
+ "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/chai": {
+ "version": "6.3.0",
+ "resolved": "https://registry.npmjs.org/chai/-/chai-6.3.0.tgz",
+ "integrity": "sha512-XWAtwJ6OHO+tj0EKCs0Y2UamnyOxseZWltU4x2U2wh8g4AigdjwvtUjvLP2tqkA/avxHEtzxNaqGq/YGNwckKg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/chalk": {
+ "version": "5.6.2",
+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.6.2.tgz",
+ "integrity": "sha512-7NzBL0rN6fMUW+f7A6Io4h40qQlG+xGmtMxfbnH/K7TAtt8JQWVQK+6g0UXKMeVJoyV5EkkNsErQ8pVD3bLHbA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "^12.17.0 || ^14.13 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/chalk?sponsor=1"
+ }
+ },
+ "node_modules/character-entities": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/character-entities/-/character-entities-2.0.2.tgz",
+ "integrity": "sha512-shx7oQ0Awen/BRIdkjkvz54PnEEI/EjwXDSIZp86/KKdbafHh1Df/RYGBhn4hbe2+uKC9FnT5UCEdyPz3ai9hQ==",
+ "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/character-reference-invalid": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/character-reference-invalid/-/character-reference-invalid-2.0.1.tgz",
+ "integrity": "sha512-iBZ4F4wRbyORVsu0jPV7gXkOsGYjGHPmAyv+HiHG8gi5PtC9KI2j1+v8/tlibRvjoWX027ypmG/n0HtO5t7unw==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ }
+ },
+ "node_modules/chokidar": {
+ "version": "3.6.0",
+ "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz",
+ "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "anymatch": "~3.1.2",
+ "braces": "~3.0.2",
+ "glob-parent": "~5.1.2",
+ "is-binary-path": "~2.1.0",
+ "is-glob": "~4.0.1",
+ "normalize-path": "~3.0.0",
+ "readdirp": "~3.6.0"
+ },
+ "engines": {
+ "node": ">= 8.10.0"
+ },
+ "funding": {
+ "url": "https://paulmillr.com/funding/"
+ },
+ "optionalDependencies": {
+ "fsevents": "~2.3.2"
+ }
+ },
+ "node_modules/chokidar/node_modules/glob-parent": {
+ "version": "5.1.2",
+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",
+ "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "is-glob": "^4.0.1"
+ },
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/cli-cursor": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-5.0.0.tgz",
+ "integrity": "sha512-aCj4O5wKyszjMmDT4tZj93kxyydN/K5zPWSCe6/0AV/AA1pqe5ZBIw0a2ZfPQV7lL5/yb5HsUreJ6UFAF1tEQw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "restore-cursor": "^5.0.0"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/cli-spinners": {
+ "version": "2.9.2",
+ "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.9.2.tgz",
+ "integrity": "sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/cn": {
+ "version": "0.5.2",
+ "resolved": "https://registry.npmjs.org/cn/-/cn-0.5.2.tgz",
+ "integrity": "sha512-wm10E6iuJ37rALOw3D+3cfaXXZSLNMh2uxpQn3dNICqfJM59yXqgbA9/9Iiz155j5kYNLdK6WreNdW3NQtx3OQ==",
+ "license": "MIT",
+ "bin": {
+ "cn": "bin/cn.mjs"
+ },
+ "engines": {
+ "node": ">=22"
+ }
+ },
+ "node_modules/code-block-writer": {
+ "version": "13.0.3",
+ "resolved": "https://registry.npmjs.org/code-block-writer/-/code-block-writer-13.0.3.tgz",
+ "integrity": "sha512-Oofo0pq3IKnsFtuHqSF7TqBfr71aeyZDVJ0HpmqB7FBM2qEigL0iPONSCZSO9pE9dZTAxANe5XHG9Uy0YMv8cg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "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": "4.1.1",
+ "resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz",
+ "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/conf": {
+ "version": "10.2.0",
+ "resolved": "https://registry.npmjs.org/conf/-/conf-10.2.0.tgz",
+ "integrity": "sha512-8fLl9F04EJqjSqH+QjITQfJF8BrOVaYr1jewVgSRAEWePfxT0sku4w2hrGQ60BC/TNLGQ2pgxNlTbWQmMPFvXg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ajv": "^8.6.3",
+ "ajv-formats": "^2.1.1",
+ "atomically": "^1.7.0",
+ "debounce-fn": "^4.0.0",
+ "dot-prop": "^6.0.1",
+ "env-paths": "^2.2.1",
+ "json-schema-typed": "^7.0.3",
+ "onetime": "^5.1.2",
+ "pkg-up": "^3.1.0",
+ "semver": "^7.3.5"
+ },
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/conf/node_modules/semver": {
+ "version": "7.8.6",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.6.tgz",
+ "integrity": "sha512-9lpSSU4Mly3mrtruwLs1eLK6+gzbzqeBFwRNjIjE+9LuDpWdYctrQlQ3ej1Ilgi7gknpsTRnPoLP8DpCHqHIJw==",
+ "dev": true,
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver.js"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/convert-source-map": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz",
+ "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/cookie": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/cookie/-/cookie-1.1.1.tgz",
+ "integrity": "sha512-ei8Aos7ja0weRpFzJnEA9UHJ/7XQmqglbRwnf2ATjcB9Wq874VKH9kfjjirM6UhU2/E5fFYadylyhFldcqSidQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
+ "node_modules/cross-spawn": {
+ "version": "7.0.6",
+ "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz",
+ "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "path-key": "^3.1.0",
+ "shebang-command": "^2.0.0",
+ "which": "^2.0.1"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/cross-spawn/node_modules/isexe": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
+ "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/cross-spawn/node_modules/which": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
+ "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "isexe": "^2.0.0"
+ },
+ "bin": {
+ "node-which": "bin/node-which"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/css.escape": {
+ "version": "1.5.1",
+ "resolved": "https://registry.npmjs.org/css.escape/-/css.escape-1.5.1.tgz",
+ "integrity": "sha512-YUifsXXuknHlUsmlgyY0PKzgPOr7/FjCePfHNt0jxm83wHZi44VDMQ7/fGNkjY3/jV1MC+1CmZbaHzugyeRtpg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/csstype": {
+ "version": "3.2.4",
+ "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.4.tgz",
+ "integrity": "sha512-PoKaoPzQapnEoqUSnHx1u6W6ku8CVEgKsnpmmzU3m1nwkidpPBQ8V/Zq2+bWNrsOKoKLwTGdbx6xF7BXP1zLVQ==",
+ "license": "MIT"
+ },
+ "node_modules/data-urls": {
+ "version": "8.0.0",
+ "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-8.0.0.tgz",
+ "integrity": "sha512-JQUCCK+/CAGbGGx618PlFZMXH81Jtj7t73CHv9dd/zVWvxgGT2zLFRjnKb+Ng46GIwcy+f7f88qd4duqllK+WQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "whatwg-mimetype": "^5.0.0",
+ "whatwg-url": "^17.1.2"
+ },
+ "engines": {
+ "node": "^22.14.0 || >=24.0.0"
+ }
+ },
+ "node_modules/debounce-fn": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/debounce-fn/-/debounce-fn-4.0.0.tgz",
+ "integrity": "sha512-8pYCQiL9Xdcg0UPSD3d+0KMlOjp+KGU5EPwYddgzQ7DATsg4fuUDjQtsYLmWjnk2obnNHgV3vE2Y4jejSOJVBQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "mimic-fn": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/debug": {
+ "version": "4.4.3",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",
+ "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",
+ "license": "MIT",
+ "dependencies": {
+ "ms": "^2.1.3"
+ },
+ "engines": {
+ "node": ">=6.0"
+ },
+ "peerDependenciesMeta": {
+ "supports-color": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/decimal.js": {
+ "version": "10.6.0",
+ "resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.6.0.tgz",
+ "integrity": "sha512-YpgQiITW3JXGntzdUmyUR1V812Hn8T1YVXhCu+wO3OpS4eU9l4YdD3qjyiKdV6mvV29zapkMeD390UVEf2lkUg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/decode-named-character-reference": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/decode-named-character-reference/-/decode-named-character-reference-1.3.0.tgz",
+ "integrity": "sha512-GtpQYB283KrPp6nRw50q3U9/VfOutZOe103qlN7BPP6Ad27xYnOIWv4lPzo8HCAL+mMZofJ9KEy30fq6MfaK6Q==",
+ "license": "MIT",
+ "dependencies": {
+ "character-entities": "^2.0.0"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ }
+ },
+ "node_modules/dedent": {
+ "version": "1.7.2",
+ "resolved": "https://registry.npmjs.org/dedent/-/dedent-1.7.2.tgz",
+ "integrity": "sha512-WzMx3mW98SN+zn3hgemf4OzdmyNhhhKz5Ay0pUfQiMQ3e1g+xmTJWp/pKdwKVXhdSkAEGIIzqeuWrL3mV/AXbA==",
+ "dev": true,
+ "license": "MIT",
+ "peerDependencies": {
+ "babel-plugin-macros": "^3.1.0"
+ },
+ "peerDependenciesMeta": {
+ "babel-plugin-macros": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/deepmerge": {
+ "version": "4.3.1",
+ "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz",
+ "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/default-browser": {
+ "version": "5.5.1",
+ "resolved": "https://registry.npmjs.org/default-browser/-/default-browser-5.5.1.tgz",
+ "integrity": "sha512-m1pAzaJgZ/gssEqlOhJkPJp8Xly7QyW6xcrkUa2KKcDeDSEMP7X8xipU3snUcfisTQx0w1AGae+9UtJSfVnXGw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "bundle-name": "^4.1.0",
+ "default-browser-id": "^5.0.0"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/default-browser-id": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/default-browser-id/-/default-browser-id-5.0.1.tgz",
+ "integrity": "sha512-x1VCxdX4t+8wVfd1so/9w+vQ4vx7lKd2Qp5tDRutErwmR85OgmfX7RlLRMWafRMY7hbEiXIbudNrjOAPa/hL8Q==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/define-lazy-prop": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-3.0.0.tgz",
+ "integrity": "sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "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/detect-libc": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz",
+ "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "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/didyoumean": {
+ "version": "1.2.2",
+ "resolved": "https://registry.npmjs.org/didyoumean/-/didyoumean-1.2.2.tgz",
+ "integrity": "sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==",
+ "dev": true,
+ "license": "Apache-2.0"
+ },
+ "node_modules/diff": {
+ "version": "8.0.4",
+ "resolved": "https://registry.npmjs.org/diff/-/diff-8.0.4.tgz",
+ "integrity": "sha512-DPi0FmjiSU5EvQV0++GFDOJ9ASQUVFh5kD+OzOnYdi7n3Wpm9hWWGfB/O2blfHcMVTL5WkQXSnRiK9makhrcnw==",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "engines": {
+ "node": ">=0.3.1"
+ }
+ },
+ "node_modules/dlv": {
+ "version": "1.1.3",
+ "resolved": "https://registry.npmjs.org/dlv/-/dlv-1.1.3.tgz",
+ "integrity": "sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/dom-accessibility-api": {
+ "version": "0.5.16",
+ "resolved": "https://registry.npmjs.org/dom-accessibility-api/-/dom-accessibility-api-0.5.16.tgz",
+ "integrity": "sha512-X7BJ2yElsnOJ30pZF4uIIDfBEVgF4XEBxL9Bxhy6dnrm5hkzqmsWHGTiHqRiITNhMyFLyAiWndIJP7Z1NTteDg==",
+ "dev": true,
+ "license": "MIT",
+ "peer": true
+ },
+ "node_modules/dot-prop": {
+ "version": "6.0.1",
+ "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-6.0.1.tgz",
+ "integrity": "sha512-tE7ztYzXHIeyvc7N+hR3oi7FIbf/NIjVP9hmAt3yMXzrQ072/fpjGLx2GxNxGxUl5V73MEqYzioOMoVhGMJ5cA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-obj": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/dotenv": {
+ "version": "17.4.2",
+ "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-17.4.2.tgz",
+ "integrity": "sha512-nI4U3TottKAcAD9LLud4Cb7b2QztQMUEfHbvhTH09bqXTxnSie8WnjPALV/WMCrJZ6UV/qHJ6L03OqO3LcdYZw==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://dotenvx.com"
+ }
+ },
+ "node_modules/electron-to-chromium": {
+ "version": "1.5.492",
+ "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.492.tgz",
+ "integrity": "sha512-4uMs7omhajKiud0GqALLTazS/zyvHLTLmDWVTR+e6BnyJo5bSNrph/JoRWEFJJmY75ct9hCiSGsbFF9fLe5gDw==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/emoji-regex": {
+ "version": "10.6.0",
+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.6.0.tgz",
+ "integrity": "sha512-toUI84YS5YmxW219erniWD0CIVOo46xGKColeNQRgOzDorgBi1v4D71/OFzgD9GO2UGKIv1C3Sp8DAn0+j5w7A==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/enquirer": {
+ "version": "2.4.1",
+ "resolved": "https://registry.npmjs.org/enquirer/-/enquirer-2.4.1.tgz",
+ "integrity": "sha512-rRqJg/6gd538VHvR3PSrdRBb/1Vy2YfzHqzvbhGIQpDRKIa4FgV/54b5Q1xYSxOOwKvjXweS26E0Q+nAMwp2pQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-colors": "^4.1.1",
+ "strip-ansi": "^6.0.1"
+ },
+ "engines": {
+ "node": ">=8.6"
+ }
+ },
+ "node_modules/entities": {
+ "version": "9.0.0",
+ "resolved": "https://registry.npmjs.org/entities/-/entities-9.0.0.tgz",
+ "integrity": "sha512-oJFNDJg3kTPwAD1cNn2+WmUq4wFoo09npc3Ydf1D7ED4smRiWrsKnaLxykrTWgyGEcusc87P5dxlAleol9kpkg==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "engines": {
+ "node": ">=20.19.0"
+ },
+ "funding": {
+ "url": "https://github.com/fb55/entities?sponsor=1"
+ }
+ },
+ "node_modules/env-paths": {
+ "version": "2.2.1",
+ "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz",
+ "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/es-errors": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz",
+ "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/es-module-lexer": {
+ "version": "2.3.2",
+ "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-2.3.2.tgz",
+ "integrity": "sha512-poHGpORABojJJucnV9KbOavETW8lBVnphkW77ER5/BQ5Fz7oXSoCNek7IH3vR5nRjdsEz926ibFYX8KtLQmdyw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/escalade": {
+ "version": "3.2.0",
+ "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz",
+ "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/esprima": {
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz",
+ "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "bin": {
+ "esparse": "bin/esparse.js",
+ "esvalidate": "bin/esvalidate.js"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/estree-util-is-identifier-name": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/estree-util-is-identifier-name/-/estree-util-is-identifier-name-3.0.0.tgz",
+ "integrity": "sha512-hFtqIDZTIUZ9BXLb8y4pYGyk6+wekIivNVTcmvk8NoOh+VeRn5y6cEHzbURrWbfp1fIqdVipilzj+lfaadNZmg==",
+ "license": "MIT",
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/estree-walker": {
+ "version": "3.0.3",
+ "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz",
+ "integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/estree": "^1.0.0"
+ }
+ },
+ "node_modules/execa": {
+ "version": "9.6.1",
+ "resolved": "https://registry.npmjs.org/execa/-/execa-9.6.1.tgz",
+ "integrity": "sha512-9Be3ZoN4LmYR90tUoVu2te2BsbzHfhJyfEiAVfz7N5/zv+jduIfLrV2xdQXOHbaD6KgpGdO9PRPM1Y4Q9QkPkA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@sindresorhus/merge-streams": "^4.0.0",
+ "cross-spawn": "^7.0.6",
+ "figures": "^6.1.0",
+ "get-stream": "^9.0.0",
+ "human-signals": "^8.0.1",
+ "is-plain-obj": "^4.1.0",
+ "is-stream": "^4.0.1",
+ "npm-run-path": "^6.0.0",
+ "pretty-ms": "^9.2.0",
+ "signal-exit": "^4.1.0",
+ "strip-final-newline": "^4.0.0",
+ "yoctocolors": "^2.1.1"
+ },
+ "engines": {
+ "node": "^18.19.0 || >=20.5.0"
+ },
+ "funding": {
+ "url": "https://github.com/sindresorhus/execa?sponsor=1"
+ }
+ },
+ "node_modules/expect-type": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/expect-type/-/expect-type-1.4.0.tgz",
+ "integrity": "sha512-KfYbmpRm0VbLjEvVa9yGwCi9GI34xvi7A/HXYWQO65CSD2u3MczUJSuwXKFIxlGsgBQizV9q5J9NHj4VG0n+pA==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=12.0.0"
+ }
+ },
+ "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==",
+ "devOptional": true,
+ "license": "MIT"
+ },
+ "node_modules/fast-glob": {
+ "version": "3.3.3",
+ "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz",
+ "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@nodelib/fs.stat": "^2.0.2",
+ "@nodelib/fs.walk": "^1.2.3",
+ "glob-parent": "^5.1.2",
+ "merge2": "^1.3.0",
+ "micromatch": "^4.0.8"
+ },
+ "engines": {
+ "node": ">=8.6.0"
+ }
+ },
+ "node_modules/fast-glob/node_modules/glob-parent": {
+ "version": "5.1.2",
+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",
+ "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "is-glob": "^4.0.1"
+ },
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "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==",
+ "devOptional": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/fastify"
+ },
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/fastify"
+ }
+ ],
+ "license": "BSD-3-Clause"
+ },
+ "node_modules/fastq": {
+ "version": "1.20.3",
+ "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.20.3.tgz",
+ "integrity": "sha512-XKv5nnLs6nLF71NgiKJLIZFLkPyIEuOselLG7ujZnGrRfQK8HpvY+WqKhAJUAdLomwVHErVS4LfxFlPq0/FTAw==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "reusify": "^1.0.4"
+ }
+ },
+ "node_modules/fdir": {
+ "version": "6.5.0",
+ "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz",
+ "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12.0.0"
+ },
+ "peerDependencies": {
+ "picomatch": "^3 || ^4"
+ },
+ "peerDependenciesMeta": {
+ "picomatch": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/figures": {
+ "version": "6.1.0",
+ "resolved": "https://registry.npmjs.org/figures/-/figures-6.1.0.tgz",
+ "integrity": "sha512-d+l3qxjSesT4V7v2fh+QnmFnUWv9lSpjarhShNTgBOfA0ttejbQUAlHLitbjkoRiDulW0OPoQPYIGhIC8ohejg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-unicode-supported": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/fill-range": {
+ "version": "7.1.1",
+ "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz",
+ "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "to-regex-range": "^5.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/find-up": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz",
+ "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "locate-path": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/fraction.js": {
+ "version": "5.3.4",
+ "resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-5.3.4.tgz",
+ "integrity": "sha512-1X1NTtiJphryn/uLQz3whtY6jK3fTqoE3ohKs0tT+Ujr1W59oopxmoEh7Lu5p6vBaPbgoM0bzveAW4Qi5RyWDQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "*"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/rawify"
+ }
+ },
+ "node_modules/fs-extra": {
+ "version": "11.4.1",
+ "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.4.1.tgz",
+ "integrity": "sha512-KYAb4c9BJQI6QqGKthV68OHe0badztdXJWKo0WtBA9IuCFPTKvE5ZdUBglP833aMjhaSPNO4A5j/EkzZtGlKjA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "graceful-fs": "^4.2.0",
+ "jsonfile": "^6.0.1",
+ "universalify": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=14.14"
+ }
+ },
+ "node_modules/fsevents": {
+ "version": "2.3.3",
+ "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",
+ "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",
+ "dev": true,
+ "hasInstallScript": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": "^8.16.0 || ^10.6.0 || >=11.0.0"
+ }
+ },
+ "node_modules/function-bind": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
+ "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",
+ "dev": true,
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/fuzzysort": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/fuzzysort/-/fuzzysort-3.1.0.tgz",
+ "integrity": "sha512-sR9BNCjBg6LNgwvxlBd0sBABvQitkLzoVY9MYYROQVX/FvfJ4Mai9LsGhDgd8qYdds0bY77VzYd5iuB+v5rwQQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/gensync": {
+ "version": "1.0.0-beta.2",
+ "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz",
+ "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/get-east-asian-width": {
+ "version": "1.7.0",
+ "resolved": "https://registry.npmjs.org/get-east-asian-width/-/get-east-asian-width-1.7.0.tgz",
+ "integrity": "sha512-XjH1AECxf0giL2V1aU8vKyRR2ppRUb5c0EvT7zuJTokQ74bNo52zOtghqdWIqrhUD79fo3x0WfKZdOqxF6LG1Q==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/get-own-enumerable-keys": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/get-own-enumerable-keys/-/get-own-enumerable-keys-1.0.0.tgz",
+ "integrity": "sha512-PKsK2FSrQCyxcGHsGrLDcK0lx+0Ke+6e8KFFozA9/fIQLhQzPaRvJFdcz7+Axg3jUH/Mq+NI4xa5u/UT2tQskA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=14.16"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/get-stream": {
+ "version": "9.0.1",
+ "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-9.0.1.tgz",
+ "integrity": "sha512-kVCxPF3vQM/N0B1PmoqVUqgHP+EeVjmZSQn+1oCRPxd2P21P2F19lIgbR3HBosbB1PUhOAoctJnfEn2GbN2eZA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@sec-ant/readable-stream": "^0.4.1",
+ "is-stream": "^4.0.1"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/glob-parent": {
+ "version": "6.0.2",
+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz",
+ "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "is-glob": "^4.0.3"
+ },
+ "engines": {
+ "node": ">=10.13.0"
+ }
+ },
+ "node_modules/graceful-fs": {
+ "version": "4.2.12",
+ "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.12.tgz",
+ "integrity": "sha512-iuyGF2E4oafQfPsRrG2wtY2ILupMhvtdrhzrxB+0VcjsPpSPttpfYdjnGFGsTi5MaJFjI1jOKHPQ6UTbTj9TAw==",
+ "dev": true,
+ "license": "BlueOak-1.0.0"
+ },
+ "node_modules/hasown": {
+ "version": "2.0.4",
+ "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.4.tgz",
+ "integrity": "sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "function-bind": "^1.1.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/hast-util-to-jsx-runtime": {
+ "version": "2.3.7",
+ "resolved": "https://registry.npmjs.org/hast-util-to-jsx-runtime/-/hast-util-to-jsx-runtime-2.3.7.tgz",
+ "integrity": "sha512-F7DNV2NMcTxA4GqPVHnXzX+mpoPHAIY9rJAVH3CZ1FdBZOcBUEjUuvMkMpHVs/sicEtznh9tMGj5WUR9S4E2rg==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/estree": "^1.0.0",
+ "@types/hast": "^3.0.0",
+ "@types/unist": "^3.0.0",
+ "comma-separated-tokens": "^2.0.0",
+ "devlop": "^1.0.0",
+ "estree-util-is-identifier-name": "^3.0.0",
+ "hast-util-whitespace": "^3.0.0",
+ "mdast-util-mdx-expression": "^2.0.0",
+ "mdast-util-mdx-jsx": "^3.0.0",
+ "mdast-util-mdxjs-esm": "^2.0.0",
+ "property-information": "^7.0.0",
+ "space-separated-tokens": "^2.0.0",
+ "style-to-object": "^2.0.0",
+ "unist-util-position": "^5.0.0",
+ "vfile-message": "^4.0.0"
+ },
+ "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-encoding-sniffer": {
+ "version": "7.0.0",
+ "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-7.0.0.tgz",
+ "integrity": "sha512-UikN5yr7xsCDAq87Or5or0PAlD3HJJOKVzM05az588WnpDJ4Ux7a2A53Qi6gofGg2/EtvF/H4hCi/TXfCW4Y6w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@exodus/bytes": "^1.15.1"
+ },
+ "engines": {
+ "node": "^22.13.0 || >=24.0.0"
+ }
+ },
+ "node_modules/html-url-attributes": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/html-url-attributes/-/html-url-attributes-3.0.1.tgz",
+ "integrity": "sha512-ol6UPyBWqsrO6EJySPz2O7ZSr856WDrEzM5zMqp+FJJLGMW35cLYmmZnl0vztAZxRUoNZJFTCohfjuIJ8I4QBQ==",
+ "license": "MIT",
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/human-signals": {
+ "version": "8.0.1",
+ "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-8.0.1.tgz",
+ "integrity": "sha512-eKCa6bwnJhvxj14kZk5NCPc6Hb6BdsU9DZcOnmQKSnO1VKrfV0zCvtttPZUsBvjmNDn8rpcJfpwSYnHBjc95MQ==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=18.18.0"
+ }
+ },
+ "node_modules/ignore": {
+ "version": "5.3.2",
+ "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz",
+ "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 4"
+ }
+ },
+ "node_modules/indent-string": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz",
+ "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/inline-style-parser": {
+ "version": "0.2.9",
+ "resolved": "https://registry.npmjs.org/inline-style-parser/-/inline-style-parser-0.2.9.tgz",
+ "integrity": "sha512-IttN8BqKLxzUrnTqHI+/hwAJQItBAUjdoHERCDv+oOuX48VP6bzW8+QjOXSfoevzq3YrYAwX1uLHp8TqO9yIeg==",
+ "license": "MIT"
+ },
+ "node_modules/ip-address": {
+ "version": "10.7.6",
+ "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-10.7.6.tgz",
+ "integrity": "sha512-00LYkM6byILa9eQIx6qoaXCM40xTLd56AZ4vyaPW3YTyb49VZYPo5xsiAq4tuQ54GH4R7gVdYScJ1B7B77PuTg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 12"
+ }
+ },
+ "node_modules/is-alphabetical": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/is-alphabetical/-/is-alphabetical-2.0.1.tgz",
+ "integrity": "sha512-FWyyY60MeTNyeSRpkM2Iry0G9hpr7/9kD40mD/cGQEuilcZYS4okz8SN2Q6rLCJ8gbCt6fN+rC+6tMGS99LaxQ==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ }
+ },
+ "node_modules/is-alphanumerical": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/is-alphanumerical/-/is-alphanumerical-2.0.1.tgz",
+ "integrity": "sha512-hmbYhX/9MUMF5uh7tOXyK/n0ZvWpad5caBA17GsC6vyuCqaWliRG5K1qS9inmUhEMaOBIW7/whAnSwveW/LtZw==",
+ "license": "MIT",
+ "dependencies": {
+ "is-alphabetical": "^2.0.0",
+ "is-decimal": "^2.0.0"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ }
+ },
+ "node_modules/is-binary-path": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz",
+ "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "binary-extensions": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/is-core-module": {
+ "version": "2.18.0",
+ "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.18.0.tgz",
+ "integrity": "sha512-qyax9fgaKOEC4qK8WZn7Q4IcoZC9RC1O1fFxRcRTq/oMMkWT/uXpqpXa12kzWR409zAt1drYN9N9BO26UmBCmw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "hasown": "^2.0.4"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/is-decimal": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/is-decimal/-/is-decimal-2.0.1.tgz",
+ "integrity": "sha512-AAB9hiomQs5DXWcRB1rqsxGUstbRroFOPPVAomNk/3XHR5JyEZChOyTWe2oayKnsSsr/kcGqF+z6yuH6HHpN0A==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ }
+ },
+ "node_modules/is-docker": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-3.0.0.tgz",
+ "integrity": "sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "is-docker": "cli.js"
+ },
+ "engines": {
+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/is-extglob": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",
+ "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/is-glob": {
+ "version": "4.0.3",
+ "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",
+ "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-extglob": "^2.1.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/is-hexadecimal": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/is-hexadecimal/-/is-hexadecimal-2.0.1.tgz",
+ "integrity": "sha512-DgZQp241c8oO6cA1SbTEWiXeoxV42vlcJxgH+B3hi1AiqqKruZR3ZGF8In3fj4+/y/7rHvlOZLZtgJ/4ttYGZg==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ }
+ },
+ "node_modules/is-in-ssh": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/is-in-ssh/-/is-in-ssh-1.0.0.tgz",
+ "integrity": "sha512-jYa6Q9rH90kR1vKB6NM7qqd1mge3Fx4Dhw5TVlK1MUBqhEOuCagrEHMevNuCcbECmXZ0ThXkRm+Ymr51HwEPAw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=20"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/is-inside-container": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/is-inside-container/-/is-inside-container-1.0.0.tgz",
+ "integrity": "sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-docker": "^3.0.0"
+ },
+ "bin": {
+ "is-inside-container": "cli.js"
+ },
+ "engines": {
+ "node": ">=14.16"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/is-interactive": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/is-interactive/-/is-interactive-2.0.0.tgz",
+ "integrity": "sha512-qP1vozQRI+BMOPcjFzrjXuQvdak2pHNUMZoeG2eRbiSqyvbEf/wQtEOTOX1guk6E3t36RkaqiSt8A/6YElNxLQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/is-number": {
+ "version": "7.0.0",
+ "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",
+ "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.12.0"
+ }
+ },
+ "node_modules/is-obj": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-2.0.0.tgz",
+ "integrity": "sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "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/is-potential-custom-element-name": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz",
+ "integrity": "sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/is-regexp": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/is-regexp/-/is-regexp-3.1.0.tgz",
+ "integrity": "sha512-rbku49cWloU5bSMI+zaRaXdQHXnthP6DZ/vLnfdSKyL4zUzuWnomtOEiZZOd+ioQ+avFo/qau3KPTc7Fjy1uPA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/is-stream": {
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-4.0.1.tgz",
+ "integrity": "sha512-Dnz92NInDqYckGEUJv689RbRiTSEHCQ7wOVeALbkOz999YpqT46yMRIGtSNl2iCL1waAZSx40+h59NV/EwzV/A==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/is-unicode-supported": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-2.1.0.tgz",
+ "integrity": "sha512-mE00Gnza5EEB3Ds0HfMyllZzbBrmLOX3vfWoj9A9PEnTfratQ/BcaJOuMhnkhjXvb2+FkY3VuHqtAGpTPmglFQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/is-wsl": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-3.1.1.tgz",
+ "integrity": "sha512-e6rvdUCiQCAuumZslxRJWR/Doq4VpPR82kqclvcS0efgt430SlGIk05vdCN58+VrzgtIcfNODjozVielycD4Sw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-inside-container": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=16"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/isexe": {
+ "version": "3.1.5",
+ "resolved": "https://registry.npmjs.org/isexe/-/isexe-3.1.5.tgz",
+ "integrity": "sha512-6B3tLtFqtQS4ekarvLVMZ+X+VlvQekbe4taUkf/rhVO3d/h0M2rfARm/pXLcPEsjjMsFgrFgSrhQIxcSVrBz8w==",
+ "dev": true,
+ "license": "BlueOak-1.0.0",
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/jiti": {
+ "version": "1.21.7",
+ "resolved": "https://registry.npmjs.org/jiti/-/jiti-1.21.7.tgz",
+ "integrity": "sha512-/imKNG4EbWNrVjoNC/1H5/9GFy+tqjGBHCaSsN+P2RnPqjsLmv6UD3Ej+Kj8nBWaRAwyk7kK5ZUc+OEatnTR3A==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "jiti": "bin/jiti.js"
+ }
+ },
+ "node_modules/js-tokens": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
+ "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/jsdom": {
+ "version": "31.0.1",
+ "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-31.0.1.tgz",
+ "integrity": "sha512-CbhJL8ZQg3eKswxSZth4QO9tW0jPIhmR0vtSXQSbKSfWbwIT6hoRc17wdHIVTQ43KI0mdV5iTJr3281IDgVZ5g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@exodus/bytes": "^1.16.0",
+ "bcp-47": "^2.1.2",
+ "bcp-47-match": "^2.0.3",
+ "data-urls": "^8.0.0",
+ "decimal.js": "^10.6.0",
+ "html-encoding-sniffer": "^7.0.0",
+ "is-potential-custom-element-name": "^1.0.1",
+ "lru-cache": "^11.5.3",
+ "parse5": "^8.1.0",
+ "parse5-parser-stream": "^8.1.0",
+ "saxes": "^6.0.0",
+ "tough-cookie": "^6.0.2",
+ "undici": "^8.12.3",
+ "w3c-xmlserializer": "^6.0.0",
+ "webidl-conversions": "^8.0.1",
+ "whatwg-mimetype": "^5.0.0",
+ "whatwg-url": "^17.3.0",
+ "xml-name-validator": "^5.0.0"
+ },
+ "engines": {
+ "node": "^22.22.2 || ^24.15.0 || >=26.0.0"
+ },
+ "peerDependencies": {
+ "@napi-rs/canvas": "^1.0.13"
+ },
+ "peerDependenciesMeta": {
+ "@napi-rs/canvas": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/jsesc": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz",
+ "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "jsesc": "bin/jsesc"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "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==",
+ "devOptional": true,
+ "license": "MIT"
+ },
+ "node_modules/json-schema-typed": {
+ "version": "7.0.3",
+ "resolved": "https://registry.npmjs.org/json-schema-typed/-/json-schema-typed-7.0.3.tgz",
+ "integrity": "sha512-7DE8mpG+/fVw+dTpjbxnx47TaMnDfOI1jwft9g1VybltZCduyRQPJPvc+zzKY9WPHxhPWczyFuYa6I8Mw4iU5A==",
+ "dev": true,
+ "license": "BSD-2-Clause"
+ },
+ "node_modules/json5": {
+ "version": "2.2.3",
+ "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz",
+ "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "json5": "lib/cli.js"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/jsonfile": {
+ "version": "6.2.1",
+ "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.1.tgz",
+ "integrity": "sha512-zwOTdL3rFQ/lRdBnntKVOX6k5cKJwEc1HdilT71BWEu7J41gXIB2MRp+vxduPSwZJPWBxEzv4yH1wYLJGUHX4Q==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "universalify": "^2.0.0"
+ },
+ "optionalDependencies": {
+ "graceful-fs": "^4.1.6"
+ }
+ },
+ "node_modules/kleur": {
+ "version": "4.1.5",
+ "resolved": "https://registry.npmjs.org/kleur/-/kleur-4.1.5.tgz",
+ "integrity": "sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/lightningcss": {
+ "version": "1.33.0",
+ "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.33.0.tgz",
+ "integrity": "sha512-WkUDrojuJs0xkgGf2udWxa3yGBRxPtxUkB79i6aCZLRgc7PM8fZe9TosfPDcvEpQZbuFASnHYmRLBLUbmLOIIA==",
+ "dev": true,
+ "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"
+ ],
+ "dev": true,
+ "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"
+ ],
+ "dev": true,
+ "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"
+ ],
+ "dev": true,
+ "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"
+ ],
+ "dev": true,
+ "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"
+ ],
+ "dev": true,
+ "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"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "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"
+ ],
+ "dev": true,
+ "libc": [
+ "musl"
+ ],
+ "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"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "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"
+ ],
+ "dev": true,
+ "libc": [
+ "musl"
+ ],
+ "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"
+ ],
+ "dev": true,
+ "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"
+ ],
+ "dev": true,
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lilconfig": {
+ "version": "3.1.5",
+ "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-3.1.5.tgz",
+ "integrity": "sha512-aRAOI9Ia43ygL4o1EOmC/sc/0OFxrm7qcQngiIyWaqVnSnz932ybJ07zyCcgMNGSDP8Yxaf88Xj1zHEXmvQ4SA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=14"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/antonk52"
+ }
+ },
+ "node_modules/lines-and-columns": {
+ "version": "1.2.4",
+ "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz",
+ "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/locate-path": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz",
+ "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "p-locate": "^3.0.0",
+ "path-exists": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/log-symbols": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-6.0.0.tgz",
+ "integrity": "sha512-i24m8rpwhmPIS4zscNzK6MSEhk0DUWa/8iYQWxhffV8jkI4Phvs3F+quL5xvS0gdQR0FyTCMMH33Y78dDTzzIw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "chalk": "^5.3.0",
+ "is-unicode-supported": "^1.3.0"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/log-symbols/node_modules/is-unicode-supported": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-1.3.0.tgz",
+ "integrity": "sha512-43r2mRvz+8JRIKnWJ+3j8JtjRKZ6GmjzfaE/qiBJnikNnYv/6bagRJ1kUhNk8R5EX/GkobD+r+sfxCPJsiKBLQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/longest-streak": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/longest-streak/-/longest-streak-3.1.0.tgz",
+ "integrity": "sha512-9Ri+o0JYgehTaVBBDoMqIl8GXtbWg711O3srftcHhZ0dqnETqLaoIK0x17fUw9rFSlK/0NlsKe0Ahhyl5pXE2g==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ }
+ },
+ "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==",
+ "dev": true,
+ "license": "BlueOak-1.0.0",
+ "engines": {
+ "node": "20 || >=22"
+ }
+ },
+ "node_modules/lucide-react": {
+ "version": "1.77.0",
+ "resolved": "https://registry.npmjs.org/lucide-react/-/lucide-react-1.77.0.tgz",
+ "integrity": "sha512-VS6sOi8ZUH1qm6swBL/tpI4xAhB6pFTdHvw3pfCJD+DaTJwpyynVzfOS6mdyMZ+OCdY/GMSQbqinOMOPbNSrQA==",
+ "license": "ISC",
+ "peerDependencies": {
+ "@types/react": "*",
+ "react": "^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/lz-string": {
+ "version": "1.5.0",
+ "resolved": "https://registry.npmjs.org/lz-string/-/lz-string-1.5.0.tgz",
+ "integrity": "sha512-h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ==",
+ "dev": true,
+ "license": "MIT",
+ "peer": true,
+ "bin": {
+ "lz-string": "bin/bin.js"
+ }
+ },
+ "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==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/sourcemap-codec": "^1.6.0"
+ }
+ },
+ "node_modules/mdast-util-from-markdown": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/mdast-util-from-markdown/-/mdast-util-from-markdown-2.1.0.tgz",
+ "integrity": "sha512-KRLgmPaP2H1ul2bpoJkOS+9pAcDAAj9Nu1mqLnh8NLeJG5tlvj42TH80PIGBpROWlRXLk0lDrWNuZCFy/tsB4A==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/mdast": "^4.0.0",
+ "@types/unist": "^3.0.0",
+ "decode-named-character-reference": "^1.0.0",
+ "devlop": "^1.0.0",
+ "mdast-util-to-string": "^4.0.0",
+ "micromark": "^4.0.0",
+ "micromark-util-decode-numeric-character-reference": "^2.0.0",
+ "micromark-util-decode-string": "^2.0.0",
+ "micromark-util-normalize-identifier": "^2.0.0",
+ "micromark-util-symbol": "^2.0.0",
+ "micromark-util-types": "^2.0.0",
+ "unist-util-stringify-position": "^4.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/mdast-util-mdx-expression": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/mdast-util-mdx-expression/-/mdast-util-mdx-expression-2.0.1.tgz",
+ "integrity": "sha512-J6f+9hUp+ldTZqKRSg7Vw5V6MqjATc+3E4gf3CFNcuZNWD8XdyI6zQ8GqH7f8169MM6P7hMBRDVGnn7oHB9kXQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/estree-jsx": "^1.0.0",
+ "@types/hast": "^3.0.0",
+ "@types/mdast": "^4.0.0",
+ "devlop": "^1.0.0",
+ "mdast-util-from-markdown": "^2.0.0",
+ "mdast-util-to-markdown": "^2.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/mdast-util-mdx-jsx": {
+ "version": "3.2.2",
+ "resolved": "https://registry.npmjs.org/mdast-util-mdx-jsx/-/mdast-util-mdx-jsx-3.2.2.tgz",
+ "integrity": "sha512-/0FHaZMv2fSjIL3z/NYmXnQTSdzYyamPpI1BXpSCngTUqpSvMNIlERa26ABz+Z6UFQbrh3I5Yhzp448WZsPfMA==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/estree-jsx": "^1.0.0",
+ "@types/hast": "^3.0.0",
+ "@types/mdast": "^4.0.0",
+ "@types/unist": "^3.0.0",
+ "ccount": "^2.0.0",
+ "devlop": "^1.1.0",
+ "mdast-util-from-markdown": "^2.0.0",
+ "mdast-util-to-markdown": "^2.0.0",
+ "parse-entities": "^4.0.0",
+ "stringify-entities": "^4.0.0",
+ "unist-util-stringify-position": "^4.0.0",
+ "vfile-message": "^4.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/mdast-util-mdxjs-esm": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/mdast-util-mdxjs-esm/-/mdast-util-mdxjs-esm-2.0.1.tgz",
+ "integrity": "sha512-EcmOpxsZ96CvlP03NghtH1EsLtr0n9Tm4lPUJUBccV9RwUOneqSycg19n5HGzCf+10LozMRSObtVr3ee1WoHtg==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/estree-jsx": "^1.0.0",
+ "@types/hast": "^3.0.0",
+ "@types/mdast": "^4.0.0",
+ "devlop": "^1.0.0",
+ "mdast-util-from-markdown": "^2.0.0",
+ "mdast-util-to-markdown": "^2.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/mdast-util-phrasing": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/mdast-util-phrasing/-/mdast-util-phrasing-4.1.0.tgz",
+ "integrity": "sha512-TqICwyvJJpBwvGAMZjj4J2n0X8QWp21b9l0o7eXyVJ25YNWYbJDVIyD1bZXE6WtV6RmKJVYmQAKWa0zWOABz2w==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/mdast": "^4.0.0",
+ "unist-util-is": "^6.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "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/mdast-util-to-markdown": {
+ "version": "2.2.4",
+ "resolved": "https://registry.npmjs.org/mdast-util-to-markdown/-/mdast-util-to-markdown-2.2.4.tgz",
+ "integrity": "sha512-aCsogoZ2Oz1EItAlC12A+/uGuzp+CWlDU0xZ3o5jbJaepLsOu2tlxpvHslnX5dRhspD1gxNVkBtYG0yMiIpXoQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/mdast": "^4.0.0",
+ "@types/unist": "^3.0.0",
+ "longest-streak": "^3.0.0",
+ "mdast-util-phrasing": "^4.0.0",
+ "mdast-util-to-string": "^4.0.0",
+ "micromark-util-character": "^2.0.0",
+ "micromark-util-classify-character": "^2.0.0",
+ "micromark-util-decode-string": "^2.0.0",
+ "micromark-util-html-tag-name": "^2.0.0",
+ "unist-util-visit": "^5.0.0",
+ "zwitch": "^2.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/mdast-util-to-string": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/mdast-util-to-string/-/mdast-util-to-string-4.0.0.tgz",
+ "integrity": "sha512-0H44vDimn51F0YwvxSJSm0eCDOJTRlmN0R1yBh4HLj9wiV1Dn0QoXGbvFAWj2hSItVTlCmBF1hqKlIyUBVFLPg==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/mdast": "^4.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/merge-stream": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz",
+ "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/merge2": {
+ "version": "1.4.1",
+ "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz",
+ "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/micromark": {
+ "version": "4.0.3",
+ "resolved": "https://registry.npmjs.org/micromark/-/micromark-4.0.3.tgz",
+ "integrity": "sha512-oGYfQzHSG5dOMovQcJ3fyTmZlWAWpi0XA0sJwJs+i6OT88o1+Jtw/8z0CmdowSLxGhhFK89rQ/oXph/wN02PNw==",
+ "funding": [
+ {
+ "type": "GitHub Sponsors",
+ "url": "https://github.com/sponsors/unifiedjs"
+ },
+ {
+ "type": "OpenCollective",
+ "url": "https://opencollective.com/unified"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "@types/debug": "^4.0.0",
+ "debug": "^4.0.0",
+ "decode-named-character-reference": "^1.0.0",
+ "devlop": "^1.0.0",
+ "micromark-core-commonmark": "^2.0.0",
+ "micromark-factory-space": "^2.0.0",
+ "micromark-util-character": "^2.0.0",
+ "micromark-util-chunked": "^2.0.0",
+ "micromark-util-combine-extensions": "^2.0.0",
+ "micromark-util-decode-numeric-character-reference": "^2.0.0",
+ "micromark-util-edit-map": "^1.0.0",
+ "micromark-util-encode": "^2.0.0",
+ "micromark-util-normalize-identifier": "^2.0.0",
+ "micromark-util-resolve-all": "^2.0.0",
+ "micromark-util-sanitize-uri": "^2.0.0",
+ "micromark-util-subtokenize": "^2.0.0",
+ "micromark-util-symbol": "^2.0.0",
+ "micromark-util-types": "^2.0.0"
+ }
+ },
+ "node_modules/micromark-core-commonmark": {
+ "version": "2.0.4",
+ "resolved": "https://registry.npmjs.org/micromark-core-commonmark/-/micromark-core-commonmark-2.0.4.tgz",
+ "integrity": "sha512-wxEeE8v8XVvOrxn1TZj74qYhAtTQsSqufHVS3uNVyT1MupXxhyaHk8/9xDNPh9BmL77QNDgWTkZ3RsYHB2ry7w==",
+ "funding": [
+ {
+ "type": "GitHub Sponsors",
+ "url": "https://github.com/sponsors/unifiedjs"
+ },
+ {
+ "type": "OpenCollective",
+ "url": "https://opencollective.com/unified"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "decode-named-character-reference": "^1.0.0",
+ "devlop": "^1.0.0",
+ "micromark-factory-destination": "^2.0.0",
+ "micromark-factory-label": "^2.0.0",
+ "micromark-factory-space": "^2.1.0",
+ "micromark-factory-title": "^2.0.0",
+ "micromark-factory-whitespace": "^2.0.0",
+ "micromark-util-character": "^2.0.0",
+ "micromark-util-chunked": "^2.0.0",
+ "micromark-util-classify-character": "^2.0.0",
+ "micromark-util-edit-map": "^1.0.0",
+ "micromark-util-html-tag-name": "^2.0.0",
+ "micromark-util-normalize-identifier": "^2.0.0",
+ "micromark-util-resolve-all": "^2.0.0",
+ "micromark-util-subtokenize": "^2.0.0",
+ "micromark-util-symbol": "^2.0.0",
+ "micromark-util-types": "^2.0.3"
+ }
+ },
+ "node_modules/micromark-factory-destination": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/micromark-factory-destination/-/micromark-factory-destination-2.0.1.tgz",
+ "integrity": "sha512-Xe6rDdJlkmbFRExpTOmRj9N3MaWmbAgdpSrBQvCFqhezUn4AHqJHbaEnfbVYYiexVSs//tqOdY/DxhjdCiJnIA==",
+ "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-symbol": "^2.0.0",
+ "micromark-util-types": "^2.0.0"
+ }
+ },
+ "node_modules/micromark-factory-label": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/micromark-factory-label/-/micromark-factory-label-2.0.1.tgz",
+ "integrity": "sha512-VFMekyQExqIW7xIChcXn4ok29YE3rnuyveW3wZQWWqF4Nv9Wk5rgJ99KzPvHjkmPXF93FXIbBp6YdW3t71/7Vg==",
+ "funding": [
+ {
+ "type": "GitHub Sponsors",
+ "url": "https://github.com/sponsors/unifiedjs"
+ },
+ {
+ "type": "OpenCollective",
+ "url": "https://opencollective.com/unified"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "devlop": "^1.0.0",
+ "micromark-util-character": "^2.0.0",
+ "micromark-util-symbol": "^2.0.0",
+ "micromark-util-types": "^2.0.0"
+ }
+ },
+ "node_modules/micromark-factory-space": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/micromark-factory-space/-/micromark-factory-space-2.1.0.tgz",
+ "integrity": "sha512-fS8hnLIjnjvdQIj39Geug8wWsR0HrYZ43KShKxNfwT7t2LOHo/LbWZEzEaSOjwtjdCsjoE6syHhonEzW0zv0+Q==",
+ "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-types": "^2.0.0"
+ }
+ },
+ "node_modules/micromark-factory-title": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/micromark-factory-title/-/micromark-factory-title-2.0.1.tgz",
+ "integrity": "sha512-5bZ+3CjhAd9eChYTHsjy6TGxpOFSKgKKJPJxr293jTbfry2KDoWkhBb6TcPVB4NmzaPhMs1Frm9AZH7OD4Cjzw==",
+ "funding": [
+ {
+ "type": "GitHub Sponsors",
+ "url": "https://github.com/sponsors/unifiedjs"
+ },
+ {
+ "type": "OpenCollective",
+ "url": "https://opencollective.com/unified"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "micromark-factory-space": "^2.0.0",
+ "micromark-util-character": "^2.0.0",
+ "micromark-util-symbol": "^2.0.0",
+ "micromark-util-types": "^2.0.0"
+ }
+ },
+ "node_modules/micromark-factory-whitespace": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/micromark-factory-whitespace/-/micromark-factory-whitespace-2.0.1.tgz",
+ "integrity": "sha512-Ob0nuZ3PKt/n0hORHyvoD9uZhr+Za8sFoP+OnMcnWK5lngSzALgQYKMr9RJVOWLqQYuyn6ulqGWSXdwf6F80lQ==",
+ "funding": [
+ {
+ "type": "GitHub Sponsors",
+ "url": "https://github.com/sponsors/unifiedjs"
+ },
+ {
+ "type": "OpenCollective",
+ "url": "https://opencollective.com/unified"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "micromark-factory-space": "^2.0.0",
+ "micromark-util-character": "^2.0.0",
+ "micromark-util-symbol": "^2.0.0",
+ "micromark-util-types": "^2.0.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-chunked": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/micromark-util-chunked/-/micromark-util-chunked-2.0.1.tgz",
+ "integrity": "sha512-QUNFEOPELfmvv+4xiNg2sRYeS/P84pTW0TCgP5zc9FpXetHY0ab7SxKyAQCNCc1eK0459uoLI1y5oO5Vc1dbhA==",
+ "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"
+ }
+ },
+ "node_modules/micromark-util-classify-character": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/micromark-util-classify-character/-/micromark-util-classify-character-2.0.1.tgz",
+ "integrity": "sha512-K0kHzM6afW/MbeWYWLjoHQv1sgg2Q9EccHEDzSkxiP/EaagNzCm7T/WMKZ3rjMbvIpvBiZgwR3dKMygtA4mG1Q==",
+ "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-symbol": "^2.0.0",
+ "micromark-util-types": "^2.0.0"
+ }
+ },
+ "node_modules/micromark-util-combine-extensions": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/micromark-util-combine-extensions/-/micromark-util-combine-extensions-2.0.1.tgz",
+ "integrity": "sha512-OnAnH8Ujmy59JcyZw8JSbK9cGpdVY44NKgSM7E9Eh7DiLS2E9RNQf0dONaGDzEG9yjEl5hcqeIsj4hfRkLH/Bg==",
+ "funding": [
+ {
+ "type": "GitHub Sponsors",
+ "url": "https://github.com/sponsors/unifiedjs"
+ },
+ {
+ "type": "OpenCollective",
+ "url": "https://opencollective.com/unified"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "micromark-util-chunked": "^2.0.0",
+ "micromark-util-types": "^2.0.0"
+ }
+ },
+ "node_modules/micromark-util-decode-numeric-character-reference": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/micromark-util-decode-numeric-character-reference/-/micromark-util-decode-numeric-character-reference-2.0.2.tgz",
+ "integrity": "sha512-ccUbYk6CwVdkmCQMyr64dXz42EfHGkPQlBj5p7YVGzq8I7CtjXZJrubAYezf7Rp+bjPseiROqe7G6foFd+lEuw==",
+ "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"
+ }
+ },
+ "node_modules/micromark-util-decode-string": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/micromark-util-decode-string/-/micromark-util-decode-string-2.0.1.tgz",
+ "integrity": "sha512-nDV/77Fj6eH1ynwscYTOsbK7rR//Uj0bZXBwJZRfaLEJ1iGBR6kIfNmlNqaqJf649EP0F3NWNdeJi03elllNUQ==",
+ "funding": [
+ {
+ "type": "GitHub Sponsors",
+ "url": "https://github.com/sponsors/unifiedjs"
+ },
+ {
+ "type": "OpenCollective",
+ "url": "https://opencollective.com/unified"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "decode-named-character-reference": "^1.0.0",
+ "micromark-util-character": "^2.0.0",
+ "micromark-util-decode-numeric-character-reference": "^2.0.0",
+ "micromark-util-symbol": "^2.0.0"
+ }
+ },
+ "node_modules/micromark-util-edit-map": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/micromark-util-edit-map/-/micromark-util-edit-map-1.0.0.tgz",
+ "integrity": "sha512-Pa2ljlsEL6sVwFaYeyrOLSYbQt73JvGbPOYFq+9AElXiSnfI5Q4465RRZ1sHv7lDjDOnGRDDaqPXqClqWK/q1Q==",
+ "funding": [
+ {
+ "type": "GitHub Sponsors",
+ "url": "https://github.com/sponsors/unifiedjs"
+ },
+ {
+ "type": "OpenCollective",
+ "url": "https://opencollective.com/unified"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "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-html-tag-name": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/micromark-util-html-tag-name/-/micromark-util-html-tag-name-2.0.1.tgz",
+ "integrity": "sha512-2cNEiYDhCWKI+Gs9T0Tiysk136SnR13hhO8yW6BGNyhOC4qYFnwF1nKfD3HFAIXA5c45RrIG1ub11GiXeYd1xA==",
+ "funding": [
+ {
+ "type": "GitHub Sponsors",
+ "url": "https://github.com/sponsors/unifiedjs"
+ },
+ {
+ "type": "OpenCollective",
+ "url": "https://opencollective.com/unified"
+ }
+ ],
+ "license": "MIT"
+ },
+ "node_modules/micromark-util-normalize-identifier": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/micromark-util-normalize-identifier/-/micromark-util-normalize-identifier-2.0.1.tgz",
+ "integrity": "sha512-sxPqmo70LyARJs0w2UclACPUUEqltCkJ6PhKdMIDuJ3gSf/Q+/GIe3WKl0Ijb/GyH9lOpUkRAO2wp0GVkLvS9Q==",
+ "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"
+ }
+ },
+ "node_modules/micromark-util-resolve-all": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/micromark-util-resolve-all/-/micromark-util-resolve-all-2.0.1.tgz",
+ "integrity": "sha512-VdQyxFWFT2/FGJgwQnJYbe1jjQoNTS4RjglmSjTUlpUMa95Htx9NHeYW4rGDJzbjvCsl9eLjMQwGeElsqmzcHg==",
+ "funding": [
+ {
+ "type": "GitHub Sponsors",
+ "url": "https://github.com/sponsors/unifiedjs"
+ },
+ {
+ "type": "OpenCollective",
+ "url": "https://opencollective.com/unified"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "micromark-util-types": "^2.0.0"
+ }
+ },
+ "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-subtokenize": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/micromark-util-subtokenize/-/micromark-util-subtokenize-2.1.0.tgz",
+ "integrity": "sha512-XQLu552iSctvnEcgXw6+Sx75GflAPNED1qx7eBJ+wydBb2KCbRZe+NwvIEEMM83uml1+2WSXpBAcp9IUCgCYWA==",
+ "funding": [
+ {
+ "type": "GitHub Sponsors",
+ "url": "https://github.com/sponsors/unifiedjs"
+ },
+ {
+ "type": "OpenCollective",
+ "url": "https://opencollective.com/unified"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "devlop": "^1.0.0",
+ "micromark-util-chunked": "^2.0.0",
+ "micromark-util-symbol": "^2.0.0",
+ "micromark-util-types": "^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/micromatch": {
+ "version": "4.0.8",
+ "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz",
+ "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "braces": "^3.0.3",
+ "picomatch": "^2.3.1"
+ },
+ "engines": {
+ "node": ">=8.6"
+ }
+ },
+ "node_modules/micromatch/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==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8.6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/jonschlinkert"
+ }
+ },
+ "node_modules/mimic-fn": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-3.1.0.tgz",
+ "integrity": "sha512-Ysbi9uYW9hFyfrThdDEQuykN4Ey6BuwPD2kpI5ES/nFTDn/98yxYNLZJcgUAKPT/mcrLLKaGzJR9YVxJrIdASQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/mimic-function": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/mimic-function/-/mimic-function-5.0.1.tgz",
+ "integrity": "sha512-VP79XUPxV2CigYP3jWwAUFSku2aKqBH7uTAapFWCBqutsbmDo96KY5o8uh6U+/YSIn5OxJnXp73beVkpqMIGhA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/min-indent": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz",
+ "integrity": "sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/minimatch": {
+ "version": "10.2.6",
+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.6.tgz",
+ "integrity": "sha512-vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A==",
+ "dev": true,
+ "license": "BlueOak-1.0.0",
+ "dependencies": {
+ "brace-expansion": "^5.0.8"
+ },
+ "engines": {
+ "node": "18 || 20 || >=22"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
+ }
+ },
+ "node_modules/minimist": {
+ "version": "1.2.8",
+ "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz",
+ "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==",
+ "dev": true,
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/ms": {
+ "version": "2.1.3",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
+ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
+ "license": "MIT"
+ },
+ "node_modules/mz": {
+ "version": "2.7.0",
+ "resolved": "https://registry.npmjs.org/mz/-/mz-2.7.0.tgz",
+ "integrity": "sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "any-promise": "^1.0.0",
+ "object-assign": "^4.0.1",
+ "thenify-all": "^1.0.0"
+ }
+ },
+ "node_modules/nanoid": {
+ "version": "3.3.20",
+ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.20.tgz",
+ "integrity": "sha512-uKdg2G3GNCKQn9byYOpxbGqrT2fGO5KRt5J/8b3pok8rT6qxGWF6hxMyJiEYtAf+FVyYuD9hRaDqX5uPFYJ4ZQ==",
+ "dev": true,
+ "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/node-releases": {
+ "version": "2.0.65",
+ "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.65.tgz",
+ "integrity": "sha512-PfvofsGQ+MiOQIPkX9fU8ELUWmy5zL74CdQaph/ismKszfFkfwXaw0cGiwbwym2hT9k5+mdyl8O5WQ1MD8EHmA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "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==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/npm-run-path": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-6.0.0.tgz",
+ "integrity": "sha512-9qny7Z9DsQU8Ou39ERsPU4OZQlSTP47ShQzuKZ6PRXpYLtIFgl/DEBYEXKlvcEa+9tHVcK8CF81Y2V72qaZhWA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "path-key": "^4.0.0",
+ "unicorn-magic": "^0.3.0"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/npm-run-path/node_modules/path-key": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/path-key/-/path-key-4.0.0.tgz",
+ "integrity": "sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/object-assign": {
+ "version": "4.1.1",
+ "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
+ "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/object-hash": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/object-hash/-/object-hash-3.0.0.tgz",
+ "integrity": "sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/object-treeify": {
+ "version": "1.1.33",
+ "resolved": "https://registry.npmjs.org/object-treeify/-/object-treeify-1.1.33.tgz",
+ "integrity": "sha512-EFVjAYfzWqWsBMRHPMAXLCDIJnpMhdWAqR7xG6M6a2cs6PMFpl/+Z20w9zDW4vkxOFfddegBKq9Rehd0bxWE7A==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "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==",
+ "dev": true,
+ "funding": [
+ "https://github.com/sponsors/sxzz",
+ "https://opencollective.com/debug"
+ ],
+ "license": "MIT",
+ "engines": {
+ "node": ">=12.20.0"
+ }
+ },
+ "node_modules/onetime": {
+ "version": "5.1.2",
+ "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz",
+ "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "mimic-fn": "^2.1.0"
+ },
+ "engines": {
+ "node": ">=6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/onetime/node_modules/mimic-fn": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz",
+ "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/open": {
+ "version": "11.0.4",
+ "resolved": "https://registry.npmjs.org/open/-/open-11.0.4.tgz",
+ "integrity": "sha512-++Zlftm0kVLPmzC06t6epuWmcRMDbI4z5P3NNX979WA/k23+NtSOynEGzsVfZwguKw2mi5umVgnBlJQMwRz4Pg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "default-browser": "^5.5.1",
+ "define-lazy-prop": "^3.0.0",
+ "is-in-ssh": "^1.0.0",
+ "is-inside-container": "^1.0.0",
+ "powershell-utils": "^0.2.1",
+ "wsl-utils": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=20"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/ora": {
+ "version": "8.2.0",
+ "resolved": "https://registry.npmjs.org/ora/-/ora-8.2.0.tgz",
+ "integrity": "sha512-weP+BZ8MVNnlCm8c0Qdc1WSWq4Qn7I+9CJGm7Qali6g44e/PUzbjNqJX5NJ9ljlNMosfJvg1fKEGILklK9cwnw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "chalk": "^5.3.0",
+ "cli-cursor": "^5.0.0",
+ "cli-spinners": "^2.9.2",
+ "is-interactive": "^2.0.0",
+ "is-unicode-supported": "^2.0.0",
+ "log-symbols": "^6.0.0",
+ "stdin-discarder": "^0.2.2",
+ "string-width": "^7.2.0",
+ "strip-ansi": "^7.1.0"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/ora/node_modules/ansi-regex": {
+ "version": "6.6.0",
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.6.0.tgz",
+ "integrity": "sha512-XZ5apbzreCbXSKwPjJstu8R0zOi247w3XYwWxtwBXgpZrCyc1Ka7p9/xY0A9/diMewmHbEKz+FIraWaEWjlN5g==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/ansi-regex?sponsor=1"
+ }
+ },
+ "node_modules/ora/node_modules/strip-ansi": {
+ "version": "7.2.0",
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.2.0.tgz",
+ "integrity": "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-regex": "^6.2.2"
+ },
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/strip-ansi?sponsor=1"
+ }
+ },
+ "node_modules/oxlint": {
+ "version": "1.94.0",
+ "resolved": "https://registry.npmjs.org/oxlint/-/oxlint-1.94.0.tgz",
+ "integrity": "sha512-Fnt+3wSKRhtLmvgRfxgRX0excSPCoyiXRol4eWKZLtXxWMQtwQ3KjKQUYXOw5loyinfnZfGzh4RCYf7opfL0vw==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "oxlint": "bin/oxlint"
+ },
+ "engines": {
+ "node": "^20.19.0 || >=22.12.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/oxc-project"
+ },
+ "optionalDependencies": {
+ "@oxlint/binding-android-arm-eabi": "1.94.0",
+ "@oxlint/binding-android-arm64": "1.94.0",
+ "@oxlint/binding-darwin-arm64": "1.94.0",
+ "@oxlint/binding-darwin-x64": "1.94.0",
+ "@oxlint/binding-freebsd-x64": "1.94.0",
+ "@oxlint/binding-linux-arm-gnueabihf": "1.94.0",
+ "@oxlint/binding-linux-arm-musleabihf": "1.94.0",
+ "@oxlint/binding-linux-arm64-gnu": "1.94.0",
+ "@oxlint/binding-linux-arm64-musl": "1.94.0",
+ "@oxlint/binding-linux-ppc64-gnu": "1.94.0",
+ "@oxlint/binding-linux-riscv64-gnu": "1.94.0",
+ "@oxlint/binding-linux-riscv64-musl": "1.94.0",
+ "@oxlint/binding-linux-s390x-gnu": "1.94.0",
+ "@oxlint/binding-linux-x64-gnu": "1.94.0",
+ "@oxlint/binding-linux-x64-musl": "1.94.0",
+ "@oxlint/binding-openharmony-arm64": "1.94.0",
+ "@oxlint/binding-win32-arm64-msvc": "1.94.0",
+ "@oxlint/binding-win32-ia32-msvc": "1.94.0",
+ "@oxlint/binding-win32-x64-msvc": "1.94.0"
+ },
+ "peerDependencies": {
+ "oxlint-tsgolint": ">=7.0.2007",
+ "vite-plus": "*"
+ },
+ "peerDependenciesMeta": {
+ "oxlint-tsgolint": {
+ "optional": true
+ },
+ "vite-plus": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/p-limit": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz",
+ "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "p-try": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/p-locate": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz",
+ "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "p-limit": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/p-try": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz",
+ "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/parse-entities": {
+ "version": "4.0.2",
+ "resolved": "https://registry.npmjs.org/parse-entities/-/parse-entities-4.0.2.tgz",
+ "integrity": "sha512-GG2AQYWoLgL877gQIKeRPGO1xF9+eG1ujIb5soS5gPvLQ1y2o8FL90w2QWNdf9I361Mpp7726c+lj3U0qK1uGw==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/unist": "^2.0.0",
+ "character-entities-legacy": "^3.0.0",
+ "character-reference-invalid": "^2.0.0",
+ "decode-named-character-reference": "^1.0.0",
+ "is-alphanumerical": "^2.0.0",
+ "is-decimal": "^2.0.0",
+ "is-hexadecimal": "^2.0.0"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ }
+ },
+ "node_modules/parse-entities/node_modules/@types/unist": {
+ "version": "2.0.11",
+ "resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.11.tgz",
+ "integrity": "sha512-CmBKiL6NNo/OqgmMn95Fk9Whlp2mtvIv+KNpQKN2F4SjvrEesubTRWGYSg+BnWZOnlCaSTU1sMpsBOzgbYhnsA==",
+ "license": "MIT"
+ },
+ "node_modules/parse-ms": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/parse-ms/-/parse-ms-4.0.0.tgz",
+ "integrity": "sha512-TXfryirbmq34y8QBwgqCVLi+8oA3oWx2eAnSn62ITyEhEYaWRlVZ2DvMM9eZbMs/RfxPu/PK/aBLyGj4IrqMHw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/parse5": {
+ "version": "8.1.1",
+ "resolved": "https://registry.npmjs.org/parse5/-/parse5-8.1.1.tgz",
+ "integrity": "sha512-EcR/6WDcU7b2N3vQSxKALCk9lXGtUMQxXio008OEMBE0kavu/7JLfBEeFPzi43nMqVDSbEn3QCK+BMCc9zO//w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "entities": "^9.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/inikulin/parse5?sponsor=1"
+ }
+ },
+ "node_modules/parse5-parser-stream": {
+ "version": "8.1.1",
+ "resolved": "https://registry.npmjs.org/parse5-parser-stream/-/parse5-parser-stream-8.1.1.tgz",
+ "integrity": "sha512-hMcVbbUJcQmP8rURWUdYrT1flRiBiBVjq/RYGguJpDUgIXSqdYKlE0CxthmdMWoSlBAuL5bUBa73g0pttSy7Hw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "parse5": "^8.1.1"
+ },
+ "funding": {
+ "url": "https://github.com/inikulin/parse5?sponsor=1"
+ }
+ },
+ "node_modules/path-browserify": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-1.0.1.tgz",
+ "integrity": "sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/path-exists": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz",
+ "integrity": "sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/path-key": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz",
+ "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/path-parse": {
+ "version": "1.0.7",
+ "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz",
+ "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/picocolors": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",
+ "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/picomatch": {
+ "version": "4.0.7",
+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz",
+ "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/jonschlinkert"
+ }
+ },
+ "node_modules/pirates": {
+ "version": "4.0.7",
+ "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.7.tgz",
+ "integrity": "sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/pkg-up": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/pkg-up/-/pkg-up-3.1.0.tgz",
+ "integrity": "sha512-nDywThFk1i4BQK4twPQ6TA4RT8bDY96yeuCVBWL3ePARCiEKDRSrNGbFIgUJpLp+XeIR65v8ra7WuJOFUBtkMA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "find-up": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/postcss": {
+ "version": "8.5.33",
+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.33.tgz",
+ "integrity": "sha512-RVHEU9/Pp1Fnjr/MpAJsZoADukCKhfIi15OunEYiGktIkYLkPVvC1sioWolGDS7XByMTx9m/IGbro0Js13zhnQ==",
+ "dev": true,
+ "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.2"
+ },
+ "engines": {
+ "node": "^10 || ^12 || >=14"
+ }
+ },
+ "node_modules/postcss-import": {
+ "version": "15.1.0",
+ "resolved": "https://registry.npmjs.org/postcss-import/-/postcss-import-15.1.0.tgz",
+ "integrity": "sha512-hpr+J05B2FVYUAXHeK1YyI267J/dDDhMU6B6civm8hSY1jYJnBXxzKDKDswzJmtLHryrjhnDjqqp/49t8FALew==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "postcss-value-parser": "^4.0.0",
+ "read-cache": "^1.0.0",
+ "resolve": "^1.1.7"
+ },
+ "engines": {
+ "node": ">=14.0.0"
+ },
+ "peerDependencies": {
+ "postcss": "^8.0.0"
+ }
+ },
+ "node_modules/postcss-js": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/postcss-js/-/postcss-js-4.1.0.tgz",
+ "integrity": "sha512-oIAOTqgIo7q2EOwbhb8UalYePMvYoIeRY2YKntdpFQXNosSu3vLrniGgmH9OKs/qAkfoj5oB3le/7mINW1LCfw==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/postcss/"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "camelcase-css": "^2.0.1"
+ },
+ "engines": {
+ "node": "^12 || ^14 || >= 16"
+ },
+ "peerDependencies": {
+ "postcss": "^8.4.21"
+ }
+ },
+ "node_modules/postcss-load-config": {
+ "version": "6.0.1",
+ "resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-6.0.1.tgz",
+ "integrity": "sha512-oPtTM4oerL+UXmx+93ytZVN82RrlY/wPUV8IeDxFrzIjXOLF1pN+EmKPLbubvKHT2HC20xXsCAH2Z+CKV6Oz/g==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/postcss/"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "lilconfig": "^3.1.1"
+ },
+ "engines": {
+ "node": ">= 18"
+ },
+ "peerDependencies": {
+ "jiti": ">=1.21.0",
+ "postcss": ">=8.0.9",
+ "tsx": "^4.8.1",
+ "yaml": "^2.4.2"
+ },
+ "peerDependenciesMeta": {
+ "jiti": {
+ "optional": true
+ },
+ "postcss": {
+ "optional": true
+ },
+ "tsx": {
+ "optional": true
+ },
+ "yaml": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/postcss-nested": {
+ "version": "6.2.0",
+ "resolved": "https://registry.npmjs.org/postcss-nested/-/postcss-nested-6.2.0.tgz",
+ "integrity": "sha512-HQbt28KulC5AJzG+cZtj9kvKB93CFCdLvog1WFLf1D+xmMvPGlBstkpTEZfK5+AN9hfJocyBFCNiqyS48bpgzQ==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/postcss/"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "postcss-selector-parser": "^6.1.1"
+ },
+ "engines": {
+ "node": ">=12.0"
+ },
+ "peerDependencies": {
+ "postcss": "^8.2.14"
+ }
+ },
+ "node_modules/postcss-selector-parser": {
+ "version": "6.1.6",
+ "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.1.6.tgz",
+ "integrity": "sha512-BK87/Qgti3DIcgS2PaCVoteFIkjIFvCJBizZDIVSjdlFNg4Jv+SRqbN2JONb/qQUH4ZFqfXYF+izg15W2HVRvA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "util-deprecate": "^1.0.2"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/postcss-value-parser": {
+ "version": "4.2.0",
+ "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz",
+ "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/powershell-utils": {
+ "version": "0.2.1",
+ "resolved": "https://registry.npmjs.org/powershell-utils/-/powershell-utils-0.2.1.tgz",
+ "integrity": "sha512-C+y9x90UElAddDZmV4qOx9W53B61PO7cIqWz2dQsWlwswuq4mr8NEwytdGKboYbQlGZ3awrkTeNvcZiZNHnQ8A==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=20"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/pretty-format": {
+ "version": "27.5.1",
+ "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-27.5.1.tgz",
+ "integrity": "sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==",
+ "dev": true,
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "ansi-regex": "^5.0.1",
+ "ansi-styles": "^5.0.0",
+ "react-is": "^17.0.1"
+ },
+ "engines": {
+ "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0"
+ }
+ },
+ "node_modules/pretty-ms": {
+ "version": "9.3.1",
+ "resolved": "https://registry.npmjs.org/pretty-ms/-/pretty-ms-9.3.1.tgz",
+ "integrity": "sha512-HzMy3Geq23nVALD/M2LliU+F+M+gVNsvkQWWqeBZ8HDiCgzo6YPJ/Omrmtq24EFrIsk0a3EkQGEd7bDOo+IhGA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "parse-ms": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/prompts": {
+ "version": "2.4.2",
+ "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz",
+ "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "kleur": "^3.0.3",
+ "sisteransi": "^1.0.5"
+ },
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/prompts/node_modules/kleur": {
+ "version": "3.0.3",
+ "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz",
+ "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "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/punycode": {
+ "version": "2.3.1",
+ "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz",
+ "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/queue-microtask": {
+ "version": "1.2.3",
+ "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz",
+ "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/feross"
+ },
+ {
+ "type": "patreon",
+ "url": "https://www.patreon.com/feross"
+ },
+ {
+ "type": "consulting",
+ "url": "https://feross.org/support"
+ }
+ ],
+ "license": "MIT"
+ },
+ "node_modules/react": {
+ "version": "19.3.1",
+ "resolved": "https://registry.npmjs.org/react/-/react-19.3.1.tgz",
+ "integrity": "sha512-QNhWdt7nrgVWWQG58QuGsAR3jv3Hbe4mb4vz7w2csnHavciZJgda1CPNaldF6eVxv90ud3jUXpKlHL69gO38yw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/react-dom": {
+ "version": "19.3.1",
+ "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.3.1.tgz",
+ "integrity": "sha512-Y0bARz53lhEC1NMCASs0/j+faB/zqt3R8hpvg1e8+61ZVJ4UL0UdC4cBbXfZMcIuhrfgeILTLe+ZeBCavQPtKQ==",
+ "license": "MIT",
+ "dependencies": {
+ "scheduler": "^0.28.0"
+ },
+ "peerDependencies": {
+ "react": "^19.3.1"
+ }
+ },
+ "node_modules/react-hook-form": {
+ "version": "7.92.0",
+ "resolved": "https://registry.npmjs.org/react-hook-form/-/react-hook-form-7.92.0.tgz",
+ "integrity": "sha512-O5ILyY5fYHN7N13Pfxpe55KboyNFsJdM03BHpshQkClJd8raugiAUGY7VjifITrfhVxyx81ko25azXCoayhf1w==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=18.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/react-hook-form"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "react": "^16.8.0 || ^17 || ^18 || ^19"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/react-is": {
+ "version": "17.0.2",
+ "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz",
+ "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==",
+ "dev": true,
+ "license": "MIT",
+ "peer": true
+ },
+ "node_modules/react-markdown": {
+ "version": "10.1.0",
+ "resolved": "https://registry.npmjs.org/react-markdown/-/react-markdown-10.1.0.tgz",
+ "integrity": "sha512-qKxVopLT/TyA6BX3Ue5NwabOsAzm0Q7kAPwq6L+wWDwisYs7R8vZ0nRXqq6rkueboxpkjvLGU9fWifiX/ZZFxQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/hast": "^3.0.0",
+ "@types/mdast": "^4.0.0",
+ "devlop": "^1.0.0",
+ "hast-util-to-jsx-runtime": "^2.0.0",
+ "html-url-attributes": "^3.0.0",
+ "mdast-util-to-hast": "^13.0.0",
+ "remark-parse": "^11.0.0",
+ "remark-rehype": "^11.0.0",
+ "unified": "^11.0.0",
+ "unist-util-visit": "^5.0.0",
+ "vfile": "^6.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ },
+ "peerDependencies": {
+ "@types/react": ">=18",
+ "react": ">=18"
+ }
+ },
+ "node_modules/react-router": {
+ "version": "7.18.6",
+ "resolved": "https://registry.npmjs.org/react-router/-/react-router-7.18.6.tgz",
+ "integrity": "sha512-SP8KqKfRLlJzqzPseC+r6yYFsqPEavtQCC4BKV810tBGijjESLtwVPam+gPOO+wYeXrYN/TNy2CAykQVcNg4iQ==",
+ "license": "MIT",
+ "dependencies": {
+ "cookie": "^1.0.1",
+ "set-cookie-parser": "^2.6.0"
+ },
+ "engines": {
+ "node": ">=20.0.0"
+ },
+ "peerDependencies": {
+ "react": ">=18",
+ "react-dom": ">=18"
+ },
+ "peerDependenciesMeta": {
+ "react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/react-router-dom": {
+ "version": "7.18.6",
+ "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-7.18.6.tgz",
+ "integrity": "sha512-a8JzFsKEY3EY9QL7t4T1b1OhuY0ngEfwMzXQNgBO/2cuIW9028JbVq3uk2rKnjLredzcIoDKLzUkguIq6fnkFA==",
+ "license": "MIT",
+ "dependencies": {
+ "react-router": "7.18.6"
+ },
+ "engines": {
+ "node": ">=20.0.0"
+ },
+ "peerDependencies": {
+ "react": ">=18",
+ "react-dom": ">=18"
+ }
+ },
+ "node_modules/read-cache": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/read-cache/-/read-cache-1.0.2.tgz",
+ "integrity": "sha512-/peqiBB/n07gQGLsWaHho3WfvUyRscw0gYTsEFMhrIe/nWLkYaf5SbKYjGYqtRV3aPwykJgF2VEMo1ac4bnsGA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/readdirp": {
+ "version": "3.6.0",
+ "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz",
+ "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "picomatch": "^2.2.1"
+ },
+ "engines": {
+ "node": ">=8.10.0"
+ }
+ },
+ "node_modules/readdirp/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==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8.6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/jonschlinkert"
+ }
+ },
+ "node_modules/recast": {
+ "version": "0.23.21",
+ "resolved": "https://registry.npmjs.org/recast/-/recast-0.23.21.tgz",
+ "integrity": "sha512-mFAyJq9vUbSTARLZUvAEf1z3YxlvAwswbmxMx2mPA/MSm4KmpwvwvhsH/NIrZhyOuwD60Lzyw2qh83uCbgTPYw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ast-types": "^0.16.1",
+ "esprima": "~4.0.0",
+ "source-map": "~0.6.1",
+ "tiny-invariant": "^1.3.3",
+ "tslib": "^2.0.1"
+ },
+ "engines": {
+ "node": ">= 4"
+ }
+ },
+ "node_modules/redent": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/redent/-/redent-3.0.0.tgz",
+ "integrity": "sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "indent-string": "^4.0.0",
+ "strip-indent": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/remark-parse": {
+ "version": "11.0.0",
+ "resolved": "https://registry.npmjs.org/remark-parse/-/remark-parse-11.0.0.tgz",
+ "integrity": "sha512-FCxlKLNGknS5ba/1lmpYijMUzX2esxW5xQqjWxw2eHFfS2MSdaHVINFmhjo+qN1WhZhNimq0dZATN9pH0IDrpA==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/mdast": "^4.0.0",
+ "mdast-util-from-markdown": "^2.0.0",
+ "micromark-util-types": "^2.0.0",
+ "unified": "^11.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/remark-rehype": {
+ "version": "11.1.2",
+ "resolved": "https://registry.npmjs.org/remark-rehype/-/remark-rehype-11.1.2.tgz",
+ "integrity": "sha512-Dh7l57ianaEoIpzbp0PC9UKAdCSVklD8E5Rpw7ETfbTl3FqcOOgq5q2LVDhgGCkaBv7p24JXikPdvhhmHvKMsw==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/hast": "^3.0.0",
+ "@types/mdast": "^4.0.0",
+ "mdast-util-to-hast": "^13.0.0",
+ "unified": "^11.0.0",
+ "vfile": "^6.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "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==",
+ "devOptional": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/reselect": {
+ "version": "5.3.0",
+ "resolved": "https://registry.npmjs.org/reselect/-/reselect-5.3.0.tgz",
+ "integrity": "sha512-XGoLeRAVzUTcJ1qkxPQhDJyIZ5d6zzZD9nT7AEZOaaU9UbWclhycElmhO+VD5bFeLuzhPBaOV2oXC8uG35ZSpg==",
+ "license": "MIT"
+ },
+ "node_modules/resolve": {
+ "version": "1.22.14",
+ "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.14.tgz",
+ "integrity": "sha512-1ZjYvR9sbkiwC5+9QHetqW5HmA2pHRMaoupD01t2HlYnV/vydC2zPwLixhsMieSWVZt0JJRg5LVIk0Ow1D/TrA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "es-errors": "^1.3.0",
+ "is-core-module": "^2.18.0",
+ "path-parse": "^1.0.7",
+ "supports-preserve-symlinks-flag": "^1.0.0"
+ },
+ "bin": {
+ "resolve": "bin/resolve"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/restore-cursor": {
+ "version": "5.1.0",
+ "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-5.1.0.tgz",
+ "integrity": "sha512-oMA2dcrw6u0YfxJQXm342bFKX/E4sG9rbTzO9ptUcR/e8A33cHuvStiYOwH7fszkZlZ1z/ta9AAoPk2F4qIOHA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "onetime": "^7.0.0",
+ "signal-exit": "^4.1.0"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/restore-cursor/node_modules/onetime": {
+ "version": "7.0.0",
+ "resolved": "https://registry.npmjs.org/onetime/-/onetime-7.0.0.tgz",
+ "integrity": "sha512-VXJjc87FScF88uafS3JllDgvAm+c/Slfz06lorj2uAY34rlUu0Nt+v8wreiImcrgAjjIHp1rXpTDlLOGw29WwQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "mimic-function": "^5.0.0"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/reusify": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz",
+ "integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "iojs": ">=1.0.0",
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/rolldown": {
+ "version": "1.2.19",
+ "resolved": "https://registry.npmjs.org/rolldown/-/rolldown-1.2.19.tgz",
+ "integrity": "sha512-QIiV1J9d0pzN4jeeTH4sjPy0AZ6cAy2cG0ExeoE1+U8Rvj+hR3gYkokx0YbeUNGlZqiQJJ2utcETe0oKXwzsuA==",
+ "dev": true,
+ "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/run-applescript": {
+ "version": "7.1.0",
+ "resolved": "https://registry.npmjs.org/run-applescript/-/run-applescript-7.1.0.tgz",
+ "integrity": "sha512-DPe5pVFaAsinSaV6QjQ6gdiedWDcRCbUuiQfQa2wmWV7+xC9bGulGI8+TdRmoFkAPaBXk8CrAbnlY2ISniJ47Q==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/run-parallel": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz",
+ "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/feross"
+ },
+ {
+ "type": "patreon",
+ "url": "https://www.patreon.com/feross"
+ },
+ {
+ "type": "consulting",
+ "url": "https://feross.org/support"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "queue-microtask": "^1.2.2"
+ }
+ },
+ "node_modules/saxes": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/saxes/-/saxes-6.0.0.tgz",
+ "integrity": "sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "xmlchars": "^2.2.0"
+ },
+ "engines": {
+ "node": ">=v12.22.7"
+ }
+ },
+ "node_modules/scheduler": {
+ "version": "0.28.0",
+ "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.28.0.tgz",
+ "integrity": "sha512-juorfCmIkIw8tT+p5BXSm6PJjQF/ycEYmKyzURCIt/RaZIhL+PulbQ9Yu2z1HdOJDdqDTlxA1+xKBmHXJsczAw==",
+ "license": "MIT"
+ },
+ "node_modules/semver": {
+ "version": "6.3.2",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.2.tgz",
+ "integrity": "sha512-GYrCADwpu6yV5OAvchkQ27Z5wwMxWAEMg5NNWjyHh/5DboFFqbdbvYNIvZouQpxXyeMPoTOh0vdPYKlf0ZswdQ==",
+ "dev": true,
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver.js"
+ }
+ },
+ "node_modules/set-cookie-parser": {
+ "version": "2.7.3",
+ "resolved": "https://registry.npmjs.org/set-cookie-parser/-/set-cookie-parser-2.7.3.tgz",
+ "integrity": "sha512-irZHtTqurLna57KQG/s+fzOwv/J6XSH4cs8M/vsrY3uCaQ3S6+QJguAH0WdN47SXlk82voMZ4naWMQf8fdEoIg==",
+ "license": "MIT"
+ },
+ "node_modules/shadcn": {
+ "version": "4.23.0",
+ "resolved": "https://registry.npmjs.org/shadcn/-/shadcn-4.23.0.tgz",
+ "integrity": "sha512-lKgq7QPFgkV/6EOrMCwvEn7ZAw/YnM/grhxzJmK4cZdw3E4F3Ut2EmWvrn2E+vzJp1y/76mxU185OSkXo9Ff+Q==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/core": "^7.28.0",
+ "@babel/parser": "^7.28.0",
+ "@babel/plugin-transform-typescript": "^7.28.0",
+ "@babel/preset-typescript": "^7.27.1",
+ "@dotenvx/dotenvx": "^1.48.4",
+ "@modelcontextprotocol/server": "^2.3.1",
+ "@shadcn/registry": "0.2.1",
+ "@types/validate-npm-package-name": "^4.0.2",
+ "browserslist": "^4.29.3",
+ "cn": "^0.2.4",
+ "commander": "^14.0.0",
+ "dedent": "^1.6.0",
+ "deepmerge": "^4.3.1",
+ "diff": "^8.0.2",
+ "execa": "^9.6.0",
+ "fast-glob": "^3.3.3",
+ "fs-extra": "^11.3.1",
+ "fuzzysort": "^3.1.0",
+ "kleur": "^4.1.5",
+ "open": "^11.0.4",
+ "ora": "^8.2.0",
+ "postcss": "^8.5.23",
+ "postcss-selector-parser": "^7.1.6",
+ "prompts": "^2.4.2",
+ "recast": "^0.23.11",
+ "socks": "^2.8.8",
+ "stringify-object": "^5.0.0",
+ "ts-morph": "^26.0.0",
+ "tsconfig-paths": "^4.2.0",
+ "undici": "^7.30.1",
+ "validate-npm-package-name": "^7.0.1",
+ "zod": "^4.2.0"
+ },
+ "bin": {
+ "shadcn": "dist/index.js"
+ },
+ "engines": {
+ "node": ">=20.18.1"
+ }
+ },
+ "node_modules/shadcn/node_modules/cn": {
+ "version": "0.2.6",
+ "resolved": "https://registry.npmjs.org/cn/-/cn-0.2.6.tgz",
+ "integrity": "sha512-+i4L0zUGgRcEnhsxueVrP7iBGxBx5iD0WOTYg1MwFEu2ZyCmH5Ov2V1cul2Ht5UchRQQgftCf4be/RxspuW6QQ==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "cn": "bin/cn.mjs"
+ },
+ "engines": {
+ "node": ">=20"
+ }
+ },
+ "node_modules/shadcn/node_modules/commander": {
+ "version": "14.0.3",
+ "resolved": "https://registry.npmjs.org/commander/-/commander-14.0.3.tgz",
+ "integrity": "sha512-H+y0Jo/T1RZ9qPP4Eh1pkcQcLRglraJaSLoyOtHxu6AapkjWVCy2Sit1QQ4x3Dng8qDlSsZEet7g5Pq06MvTgw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=20"
+ }
+ },
+ "node_modules/shadcn/node_modules/postcss-selector-parser": {
+ "version": "7.2.1",
+ "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-7.2.1.tgz",
+ "integrity": "sha512-GwxlMgTTXwIom+ebC7an3k6RaJDwklRQQnfiXsLPGicu8FYV/k/+1/9YY2OU2+r938H2t4X0TDxoif+HP2rjzQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "util-deprecate": "^1.0.2"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/shadcn/node_modules/undici": {
+ "version": "7.30.2",
+ "resolved": "https://registry.npmjs.org/undici/-/undici-7.30.2.tgz",
+ "integrity": "sha512-mLyPQnHwUxaM/rideoK/+KL8DaAJLRl4aBCfmX444aCSLnIaomqPLtNRe2jdCYcsk5wZzXrDIQC8ZeYNRAYyIA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=20.18.1"
+ }
+ },
+ "node_modules/shebang-command": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",
+ "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "shebang-regex": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/shebang-regex": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz",
+ "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/signal-exit": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz",
+ "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==",
+ "dev": true,
+ "license": "ISC",
+ "engines": {
+ "node": ">=14"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
+ }
+ },
+ "node_modules/sisteransi": {
+ "version": "1.0.5",
+ "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz",
+ "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/smart-buffer": {
+ "version": "4.2.0",
+ "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz",
+ "integrity": "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 6.0.0",
+ "npm": ">= 3.0.0"
+ }
+ },
+ "node_modules/socks": {
+ "version": "2.8.11",
+ "resolved": "https://registry.npmjs.org/socks/-/socks-2.8.11.tgz",
+ "integrity": "sha512-2H/uQ7+SNP0hK16RorTak0mWrFoqo4AnAVGSUl2dT07obgWdWt9grml+VDl1LklgUOPWM4Abo0u86Cvp8vFjYw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ip-address": "^10.1.1",
+ "smart-buffer": "^4.2.0"
+ },
+ "engines": {
+ "node": ">= 10.0.0",
+ "npm": ">= 3.0.0"
+ }
+ },
+ "node_modules/source-map": {
+ "version": "0.6.1",
+ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
+ "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "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==",
+ "dev": true,
+ "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==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/stdin-discarder": {
+ "version": "0.2.2",
+ "resolved": "https://registry.npmjs.org/stdin-discarder/-/stdin-discarder-0.2.2.tgz",
+ "integrity": "sha512-UhDfHmA92YAlNnCfhmq0VeNL5bDbiZGg7sZ2IvPsXubGkiNa9EC+tUTsjBRsYUAz87btI6/1wf4XoVvQ3uRnmQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/string-width": {
+ "version": "7.2.0",
+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-7.2.0.tgz",
+ "integrity": "sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "emoji-regex": "^10.3.0",
+ "get-east-asian-width": "^1.0.0",
+ "strip-ansi": "^7.1.0"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/string-width/node_modules/ansi-regex": {
+ "version": "6.6.0",
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.6.0.tgz",
+ "integrity": "sha512-XZ5apbzreCbXSKwPjJstu8R0zOi247w3XYwWxtwBXgpZrCyc1Ka7p9/xY0A9/diMewmHbEKz+FIraWaEWjlN5g==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/ansi-regex?sponsor=1"
+ }
+ },
+ "node_modules/string-width/node_modules/strip-ansi": {
+ "version": "7.2.0",
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.2.0.tgz",
+ "integrity": "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-regex": "^6.2.2"
+ },
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/strip-ansi?sponsor=1"
+ }
+ },
+ "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/stringify-object": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/stringify-object/-/stringify-object-5.0.0.tgz",
+ "integrity": "sha512-zaJYxz2FtcMb4f+g60KsRNFOpVMUyuJgA51Zi5Z1DOTC3S59+OQiVOzE9GZt0x72uBGWKsQIuBKeF9iusmKFsg==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "get-own-enumerable-keys": "^1.0.0",
+ "is-obj": "^3.0.0",
+ "is-regexp": "^3.1.0"
+ },
+ "engines": {
+ "node": ">=14.16"
+ },
+ "funding": {
+ "url": "https://github.com/yeoman/stringify-object?sponsor=1"
+ }
+ },
+ "node_modules/stringify-object/node_modules/is-obj": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-3.0.0.tgz",
+ "integrity": "sha512-IlsXEHOjtKhpN8r/tRFj2nDyTmHvcfNeu/nrRIcXE17ROeatXchkojffa1SpdqW4cr/Fj6QkEf/Gn4zf6KKvEQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/strip-ansi": {
+ "version": "6.0.1",
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
+ "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-regex": "^5.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/strip-bom": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz",
+ "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/strip-final-newline": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-4.0.0.tgz",
+ "integrity": "sha512-aulFJcD6YK8V1G7iRB5tigAP4TsHBZZrOV8pjV++zdUwmeV8uzbY7yn6h9MswN62adStNZFuCIx4haBnRuMDaw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/strip-indent": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-3.0.0.tgz",
+ "integrity": "sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "min-indent": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/style-to-object": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/style-to-object/-/style-to-object-2.0.2.tgz",
+ "integrity": "sha512-QmbXPUylqU80HAgTOJeEOdbA40W9KtxmjMhQy+tq+b8F2aoh3aQLuy82hh2jm2qsC9hR9eI0+eQidTMydKcqRA==",
+ "license": "MIT",
+ "dependencies": {
+ "inline-style-parser": "0.2.9"
+ }
+ },
+ "node_modules/sucrase": {
+ "version": "3.35.1",
+ "resolved": "https://registry.npmjs.org/sucrase/-/sucrase-3.35.1.tgz",
+ "integrity": "sha512-DhuTmvZWux4H1UOnWMB3sk0sbaCVOoQZjv8u1rDoTV0HTdGem9hkAZtl4JZy8P2z4Bg0nT+YMeOFyVr4zcG5Tw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/gen-mapping": "^0.3.2",
+ "commander": "^4.0.0",
+ "lines-and-columns": "^1.1.6",
+ "mz": "^2.7.0",
+ "pirates": "^4.0.1",
+ "tinyglobby": "^0.2.11",
+ "ts-interface-checker": "^0.1.9"
+ },
+ "bin": {
+ "sucrase": "bin/sucrase",
+ "sucrase-node": "bin/sucrase-node"
+ },
+ "engines": {
+ "node": ">=16 || 14 >=14.17"
+ }
+ },
+ "node_modules/supports-preserve-symlinks-flag": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz",
+ "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/systeminformation": {
+ "version": "5.33.23",
+ "resolved": "https://registry.npmjs.org/systeminformation/-/systeminformation-5.33.23.tgz",
+ "integrity": "sha512-OBOvemo4WHf8bGMszwszn3JcFxkIMZt7adjhdgJh3eePo37EIBZovZbhJDQ2zfVYPEtXScHDJXGik8eYd3WMNw==",
+ "dev": true,
+ "license": "MIT",
+ "os": [
+ "darwin",
+ "linux",
+ "win32",
+ "freebsd",
+ "openbsd",
+ "netbsd",
+ "sunos",
+ "android"
+ ],
+ "bin": {
+ "systeminformation": "lib/cli.js"
+ },
+ "engines": {
+ "node": ">=10.0.0"
+ },
+ "funding": {
+ "type": "Buy me a coffee",
+ "url": "https://www.buymeacoffee.com/systeminfo"
+ }
+ },
+ "node_modules/tailwindcss": {
+ "version": "3.4.19",
+ "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.4.19.tgz",
+ "integrity": "sha512-3ofp+LL8E+pK/JuPLPggVAIaEuhvIz4qNcf3nA1Xn2o/7fb7s/TYpHhwGDv1ZU3PkBluUVaF8PyCHcm48cKLWQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@alloc/quick-lru": "^5.2.0",
+ "arg": "^5.0.2",
+ "chokidar": "^3.6.0",
+ "didyoumean": "^1.2.2",
+ "dlv": "^1.1.3",
+ "fast-glob": "^3.3.2",
+ "glob-parent": "^6.0.2",
+ "is-glob": "^4.0.3",
+ "jiti": "^1.21.7",
+ "lilconfig": "^3.1.3",
+ "micromatch": "^4.0.8",
+ "normalize-path": "^3.0.0",
+ "object-hash": "^3.0.0",
+ "picocolors": "^1.1.1",
+ "postcss": "^8.4.47",
+ "postcss-import": "^15.1.0",
+ "postcss-js": "^4.0.1",
+ "postcss-load-config": "^4.0.2 || ^5.0 || ^6.0",
+ "postcss-nested": "^6.2.0",
+ "postcss-selector-parser": "^6.1.2",
+ "resolve": "^1.22.8",
+ "sucrase": "^3.35.0"
+ },
+ "bin": {
+ "tailwind": "lib/cli.js",
+ "tailwindcss": "lib/cli.js"
+ },
+ "engines": {
+ "node": ">=14.0.0"
+ }
+ },
+ "node_modules/thenify": {
+ "version": "3.3.1",
+ "resolved": "https://registry.npmjs.org/thenify/-/thenify-3.3.1.tgz",
+ "integrity": "sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "any-promise": "^1.0.0"
+ }
+ },
+ "node_modules/thenify-all": {
+ "version": "1.6.0",
+ "resolved": "https://registry.npmjs.org/thenify-all/-/thenify-all-1.6.0.tgz",
+ "integrity": "sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "thenify": ">= 3.1.0 < 4"
+ },
+ "engines": {
+ "node": ">=0.8"
+ }
+ },
+ "node_modules/tiny-invariant": {
+ "version": "1.3.3",
+ "resolved": "https://registry.npmjs.org/tiny-invariant/-/tiny-invariant-1.3.3.tgz",
+ "integrity": "sha512-+FbBPE1o9QAYvviau/qC5SE3caw21q3xkvWKBtja5vgqOWIHHJ3ioaq1VPfn/Szqctz2bU/oYeKd9/z5BL+PVg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/tinybench": {
+ "version": "6.2.4",
+ "resolved": "https://registry.npmjs.org/tinybench/-/tinybench-6.2.4.tgz",
+ "integrity": "sha512-SQ52jEncXxbMCzJuY2A/jGIbbAu6NYsBWW7grz2pNE+EnzQdoGaoBfpk4qC/opE7qiUcGmGgaGIz5EoHdS1O9w==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=20.0.0"
+ }
+ },
+ "node_modules/tinyexec": {
+ "version": "1.3.1",
+ "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-1.3.1.tgz",
+ "integrity": "sha512-GCvB3aoys96IuDFBMcTB46JOR6mdMtAToqwiW8JlWhsoh1mhHi/xn9ss/Dg7N555GiJyEt2qzoG/NHCwM6h1EA==",
+ "dev": true,
+ "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==",
+ "dev": true,
+ "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/tldts": {
+ "version": "7.5.5",
+ "resolved": "https://registry.npmjs.org/tldts/-/tldts-7.5.5.tgz",
+ "integrity": "sha512-Hy6IImaWALzJOgCIss4gIFi4G0M9lqk95pFKCUVxQPZw+biZ1Pv6f28JpYgahpJB+BufA0HYsIU/aP/WIx3KRg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "tldts-core": "^7.5.5"
+ },
+ "bin": {
+ "tldts": "bin/cli.js"
+ }
+ },
+ "node_modules/tldts-core": {
+ "version": "7.5.5",
+ "resolved": "https://registry.npmjs.org/tldts-core/-/tldts-core-7.5.5.tgz",
+ "integrity": "sha512-rEJz/8cJFY/bdF354gl14yxavbrIbvM+FcbkYVQ6CSCMQTJdUFUIm39TTWSiGPvcpQh7/F6qHrD3SkwwdgtDCw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/to-regex-range": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",
+ "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-number": "^7.0.0"
+ },
+ "engines": {
+ "node": ">=8.0"
+ }
+ },
+ "node_modules/tough-cookie": {
+ "version": "6.1.0",
+ "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-6.1.0.tgz",
+ "integrity": "sha512-FTxc8u8Kl2tz0Lat1u8ksvcy8bwHRyEMawwTWybo51JqaC6O7SvfuhAKg+Ld6VqyIe2QRJBzY9HA7y2WyFRT2w==",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "tldts": "^7.0.5"
+ },
+ "engines": {
+ "node": ">=16"
+ }
+ },
+ "node_modules/tr46": {
+ "version": "7.0.0",
+ "resolved": "https://registry.npmjs.org/tr46/-/tr46-7.0.0.tgz",
+ "integrity": "sha512-BcDSDW+SIGWVOns1Zm6Yg91q9AEj7eaID0QDY9oIqJD1A8dscNwMcl9Sms2DeuWCNov1X0/oXanHGYQBSLwZsg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "punycode": "^2.3.1"
+ },
+ "engines": {
+ "node": "^22.14.0 || >=24.0.0"
+ }
+ },
+ "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/ts-interface-checker": {
+ "version": "0.1.13",
+ "resolved": "https://registry.npmjs.org/ts-interface-checker/-/ts-interface-checker-0.1.13.tgz",
+ "integrity": "sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==",
+ "dev": true,
+ "license": "Apache-2.0"
+ },
+ "node_modules/ts-morph": {
+ "version": "26.0.0",
+ "resolved": "https://registry.npmjs.org/ts-morph/-/ts-morph-26.0.0.tgz",
+ "integrity": "sha512-ztMO++owQnz8c/gIENcM9XfCEzgoGphTv+nKpYNM1bgsdOVC/jRZuEBf6N+mLLDNg68Kl+GgUZfOySaRiG1/Ug==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@ts-morph/common": "~0.27.0",
+ "code-block-writer": "^13.0.3"
+ }
+ },
+ "node_modules/tsconfig-paths": {
+ "version": "4.2.0",
+ "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-4.2.0.tgz",
+ "integrity": "sha512-NoZ4roiN7LnbKn9QqE1amc9DJfzvZXxF4xDavcOWt1BPkdx+m+0gJuPM+S0vCe7zTJMYUP0R8pO2XMr+Y8oLIg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "json5": "^2.2.2",
+ "minimist": "^1.2.6",
+ "strip-bom": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/tslib": {
+ "version": "2.9.1",
+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.9.1.tgz",
+ "integrity": "sha512-a4Ux9VKuIMHsOS7ENbEq6hK2ZGYIT27Rtl0E4eD9KqwxhKiQeMZE/9xb3IdYwWaSOyIBQLExhQgXDTYoiCxnWA==",
+ "dev": true,
+ "license": "0BSD"
+ },
+ "node_modules/type-fest": {
+ "version": "4.41.0",
+ "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-4.41.0.tgz",
+ "integrity": "sha512-TeTSQ6H5YHvpqVwBRcnLDCBnDOHWYu7IvGbHT6N8AOymcr9PJGjc1GTtiWZTYg0NCgYwvnYWEkVChQAr9bjfwA==",
+ "dev": true,
+ "license": "(MIT OR CC0-1.0)",
+ "engines": {
+ "node": ">=16"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/typescript": {
+ "version": "7.0.2",
+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-7.0.2.tgz",
+ "integrity": "sha512-8FYau96o3NKOhbjKi/qNvG/W5jhzxkbdm5sj9AbZ/5T5sWqn3hJgLfGx27sRKZWTvyzCP8dLRBTf5tBTSRVUNA==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "bin": {
+ "tsc": "bin/tsc"
+ },
+ "engines": {
+ "node": ">=16.20.0"
+ },
+ "optionalDependencies": {
+ "@typescript/typescript-aix-ppc64": "7.0.2",
+ "@typescript/typescript-darwin-arm64": "7.0.2",
+ "@typescript/typescript-darwin-x64": "7.0.2",
+ "@typescript/typescript-freebsd-arm64": "7.0.2",
+ "@typescript/typescript-freebsd-x64": "7.0.2",
+ "@typescript/typescript-linux-arm": "7.0.2",
+ "@typescript/typescript-linux-arm64": "7.0.2",
+ "@typescript/typescript-linux-loong64": "7.0.2",
+ "@typescript/typescript-linux-mips64el": "7.0.2",
+ "@typescript/typescript-linux-ppc64": "7.0.2",
+ "@typescript/typescript-linux-riscv64": "7.0.2",
+ "@typescript/typescript-linux-s390x": "7.0.2",
+ "@typescript/typescript-linux-x64": "7.0.2",
+ "@typescript/typescript-netbsd-arm64": "7.0.2",
+ "@typescript/typescript-netbsd-x64": "7.0.2",
+ "@typescript/typescript-openbsd-arm64": "7.0.2",
+ "@typescript/typescript-openbsd-x64": "7.0.2",
+ "@typescript/typescript-sunos-x64": "7.0.2",
+ "@typescript/typescript-win32-arm64": "7.0.2",
+ "@typescript/typescript-win32-x64": "7.0.2"
+ }
+ },
+ "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==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=22.19.0"
+ }
+ },
+ "node_modules/undici-types": {
+ "version": "7.24.6",
+ "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.24.6.tgz",
+ "integrity": "sha512-WRNW+sJgj5OBN4/0JpHFqtqzhpbnV0GuB+OozA9gCL7a993SmU+1JBZCzLNxYsbMfIeDL+lTsphD5jN5N+n0zg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/unicorn-magic": {
+ "version": "0.3.0",
+ "resolved": "https://registry.npmjs.org/unicorn-magic/-/unicorn-magic-0.3.0.tgz",
+ "integrity": "sha512-+QBBXBCvifc56fsbuxZQ6Sic3wqqc3WWaqxs58gvJrcOuN83HGTCwz3oS5phzU9LthRNE9VrJCFCLUgHeeFnfA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "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/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/universalify": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz",
+ "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 10.0.0"
+ }
+ },
+ "node_modules/update-browserslist-db": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.4.0.tgz",
+ "integrity": "sha512-WPJuOnjI9FWDct4fB+ej4Mz8opLaw5CDcZ2t44tFZ0vIQVYWzBhWR3mkixuUj/A7+vY4V9+ApOZ2YYLwdgq46w==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/browserslist"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/browserslist"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "escalade": "^3.2.0",
+ "picocolors": "^1.1.1"
+ },
+ "bin": {
+ "update-browserslist-db": "cli.js"
+ },
+ "peerDependencies": {
+ "browserslist": ">= 4.21.0"
+ }
+ },
+ "node_modules/use-sync-external-store": {
+ "version": "1.7.0",
+ "resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.7.0.tgz",
+ "integrity": "sha512-6L+EeigHMQhdaIPNIFUKwfWJSwWFQ8gJbJ2DLOs5sDIegTwR9fRxvnM3uciHKjIZhFz+KAv2emhWMRvDmMcY8A==",
+ "license": "MIT",
+ "peerDependencies": {
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
+ }
+ },
+ "node_modules/util-deprecate": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
+ "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/validate-npm-package-name": {
+ "version": "7.0.2",
+ "resolved": "https://registry.npmjs.org/validate-npm-package-name/-/validate-npm-package-name-7.0.2.tgz",
+ "integrity": "sha512-hVDIBwsRruT73PbK7uP5ebUt+ezEtCmzZz3F59BSr2F6OVFnJ/6h8liuvdLrQ88Xmnk6/+xGGuq+pG9WwTuy3A==",
+ "dev": true,
+ "license": "ISC",
+ "engines": {
+ "node": "^20.17.0 || >=22.9.0"
+ }
+ },
+ "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.3.8",
+ "resolved": "https://registry.npmjs.org/vite/-/vite-8.3.8.tgz",
+ "integrity": "sha512-LzOn3h9rG/0vhLdXrV4yJ4QFA9eEoqCl+Yx+kGJd7aB9w6nfNgVHKSYwLPZUHrz4ZGa+t+kXjV9itvcHDLQouA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "lightningcss": "^1.33.0",
+ "picomatch": "^4.0.7",
+ "postcss": "^8.5.32",
+ "rolldown": "~1.2.18",
+ "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"
+ },
+ "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/vitest": {
+ "version": "5.1.1",
+ "resolved": "https://registry.npmjs.org/vitest/-/vitest-5.1.1.tgz",
+ "integrity": "sha512-trVmzUFOSraCZcI3uZIMD5FqBh4atFkC/XuJP/IU7qtyQay0FCs3Ia+0QiQ2JJwGyWG/xrcBoJNel2+O7kEZ0g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/chai": "^5.2.2",
+ "@vitest/mocker": "5.1.1",
+ "chai": "^6.3.0",
+ "es-module-lexer": "^2.3.2",
+ "expect-type": "^1.4.0",
+ "magic-string": "^1.4.5",
+ "obug": "^3.0.0",
+ "picomatch": "^4.0.7",
+ "std-env": "^4.3.0",
+ "tinybench": "^6.2.3",
+ "tinyexec": "^1.3.1",
+ "tinyglobby": "^0.2.17",
+ "why-is-node-running": "3.2.1"
+ },
+ "bin": {
+ "vitest": "vitest.mjs"
+ },
+ "engines": {
+ "node": "^22.12.0 || ^24.0.0 || >=26.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/vitest"
+ },
+ "peerDependencies": {
+ "@edge-runtime/vm": "*",
+ "@opentelemetry/api": "^1.9.0",
+ "@types/node": "^22.0.0 || >=24.0.0",
+ "@vitest/browser-playwright": "5.1.1",
+ "@vitest/browser-preview": "5.1.1",
+ "@vitest/browser-webdriverio": "^5.0.0-beta.5 || >=5.0.0",
+ "@vitest/coverage-istanbul": "5.1.1",
+ "@vitest/coverage-v8": "5.1.1",
+ "@vitest/ui": "5.1.1",
+ "happy-dom": "*",
+ "jsdom": "*",
+ "vite": "^6.4.0 || ^7.0.0 || ^8.0.0"
+ },
+ "peerDependenciesMeta": {
+ "@edge-runtime/vm": {
+ "optional": true
+ },
+ "@opentelemetry/api": {
+ "optional": true
+ },
+ "@types/node": {
+ "optional": true
+ },
+ "@vitest/browser-playwright": {
+ "optional": true
+ },
+ "@vitest/browser-preview": {
+ "optional": true
+ },
+ "@vitest/browser-webdriverio": {
+ "optional": true
+ },
+ "@vitest/coverage-istanbul": {
+ "optional": true
+ },
+ "@vitest/coverage-v8": {
+ "optional": true
+ },
+ "@vitest/ui": {
+ "optional": true
+ },
+ "happy-dom": {
+ "optional": true
+ },
+ "jsdom": {
+ "optional": true
+ },
+ "vite": {
+ "optional": false
+ }
+ }
+ },
+ "node_modules/w3c-xmlserializer": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-6.0.0.tgz",
+ "integrity": "sha512-4Nsy8K5Tr6SPDH9jhKJOHf7ChDrc1zufZTVSF7x72hwuEXBqxqk9G6cK+K2NRUtB3iELRJqjXb4JPDMBjMTl2Q==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "xml-name-validator": "^5.0.0"
+ },
+ "engines": {
+ "node": "^22.22.2 || ^24.15.0 || >=26.0.0"
+ }
+ },
+ "node_modules/webidl-conversions": {
+ "version": "8.0.1",
+ "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-8.0.1.tgz",
+ "integrity": "sha512-BMhLD/Sw+GbJC21C/UgyaZX41nPt8bUTg+jWyDeg7e7YN4xOM05YPSIXceACnXVtqyEw/LMClUQMtMZ+PGGpqQ==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "engines": {
+ "node": ">=20"
+ }
+ },
+ "node_modules/whatwg-mimetype": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-5.0.0.tgz",
+ "integrity": "sha512-sXcNcHOC51uPGF0P/D4NVtrkjSU2fNsm9iog4ZvZJsL3rjoDAzXZhkm2MWt1y+PUdggKAYVoMAIYcs78wJ51Cw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=20"
+ }
+ },
+ "node_modules/whatwg-url": {
+ "version": "17.3.0",
+ "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-17.3.0.tgz",
+ "integrity": "sha512-KwOAJrpf+GTgBvcBQJcP38sMF0DsQKdwtG+TxM2pW44P6E5k0hDbWrDmyuJDIF0Uef0aQq0ZoJs+5oI+k8ddhg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@exodus/bytes": "^1.16.0",
+ "tr46": "^7.0.0",
+ "webidl-conversions": "^8.0.1"
+ },
+ "engines": {
+ "node": "^22.14.0 || >=24.0.0"
+ }
+ },
+ "node_modules/which": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/which/-/which-4.0.0.tgz",
+ "integrity": "sha512-GlaYyEb07DPxYCKhKzplCWBJtvxZcZMrL+4UkrTSJHHPyZU4mYYTv3qaOe77H7EODLSSopAUFAc6W8U4yqvscg==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "isexe": "^3.1.1"
+ },
+ "bin": {
+ "node-which": "bin/which.js"
+ },
+ "engines": {
+ "node": "^16.13.0 || >=18.0.0"
+ }
+ },
+ "node_modules/why-is-node-running": {
+ "version": "3.2.1",
+ "resolved": "https://registry.npmjs.org/why-is-node-running/-/why-is-node-running-3.2.1.tgz",
+ "integrity": "sha512-Tb2FUhB4vUsGQlfSquQLYkApkuPAFQXGFzxWKHHumVz2dK+X1RUm/HnID4+TfIGYJ1kTcwOaCk/buYCEJr6YjQ==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "why-is-node-running": "cli.js"
+ },
+ "engines": {
+ "node": ">=20.11"
+ }
+ },
+ "node_modules/wsl-utils": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/wsl-utils/-/wsl-utils-1.0.1.tgz",
+ "integrity": "sha512-c16PKLIRxBYpR3jSWsdS7SFp0COm5SOQdiFjY818dYFHJbMGuLBszpF07LBWmOS1uzrHa9VGdynsEgoeKy0oOQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-wsl": "^3.1.0",
+ "powershell-utils": "^0.2.0"
+ },
+ "engines": {
+ "node": ">=20"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/xml-name-validator": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-5.0.0.tgz",
+ "integrity": "sha512-EvGK8EJ3DhaHfbRlETOWAS5pO9MZITeauHKJyb8wyajUfQUenkIg2MvLDTZ4T/TgIcm3HU0TFBgWWboAZ30UHg==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/xmlchars": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz",
+ "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/yallist": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz",
+ "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/yocto-spinner": {
+ "version": "1.2.2",
+ "resolved": "https://registry.npmjs.org/yocto-spinner/-/yocto-spinner-1.2.2.tgz",
+ "integrity": "sha512-DODGl1wJjA/s5pnJFKau9lIYHT81lnhob1i3e1TjxZRxEhWRKl74nTbWE6H5KlkViQQTo/Z29YFdxzTZAMY3ng==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "yoctocolors": "^2.1.1"
+ },
+ "engines": {
+ "node": ">=18.19"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/yoctocolors": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/yoctocolors/-/yoctocolors-2.2.0.tgz",
+ "integrity": "sha512-xYqdZFUK/VYazNl/oCDYN+3WloWQwMfZxBoiNt6qNyk+xfOdi598muWE42rNZFp1kNOiqW936q5RhUdnpqElSg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ },
+ "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/frontend/package.json b/frontend/package.json
new file mode 100644
index 0000000..3ff9f0b
--- /dev/null
+++ b/frontend/package.json
@@ -0,0 +1,44 @@
+{
+ "name": "frontend",
+ "private": true,
+ "version": "0.0.0",
+ "type": "module",
+ "scripts": {
+ "dev": "vite",
+ "build": "tsc -b && vite build",
+ "lint": "oxlint",
+ "preview": "vite preview",
+ "test": "vitest run"
+ },
+ "dependencies": {
+ "@base-ui/react": "^1.9.0",
+ "@hookform/resolvers": "^7.0.8",
+ "@tanstack/react-query": "^5.108.2",
+ "cn": "^0.5.2",
+ "lucide-react": "^1.77.0",
+ "react": "^19.3.1",
+ "react-dom": "^19.3.1",
+ "react-hook-form": "^7.92.0",
+ "react-markdown": "^10.1.0",
+ "react-router-dom": "^7.18.6",
+ "zod": "^4.6.7"
+ },
+ "devDependencies": {
+ "@testing-library/jest-dom": "^8.0.0",
+ "@testing-library/react": "^16.3.3",
+ "@testing-library/user-event": "^14.6.13",
+ "@types/node": "^24.19.2",
+ "@types/react": "^19.3.0",
+ "@types/react-dom": "^19.3.0",
+ "@vitejs/plugin-react": "^6.1.2",
+ "autoprefixer": "^10.7.0",
+ "jsdom": "^31.0.1",
+ "oxlint": "^1.90.0",
+ "postcss": "^8.5.33",
+ "shadcn": "^4.23.0",
+ "tailwindcss": "^3.4.19",
+ "typescript": "~7.0.2",
+ "vite": "^8.3.6",
+ "vitest": "^5.1.1"
+ }
+}
diff --git a/frontend/postcss.config.js b/frontend/postcss.config.js
new file mode 100644
index 0000000..2e7af2b
--- /dev/null
+++ b/frontend/postcss.config.js
@@ -0,0 +1,6 @@
+export default {
+ plugins: {
+ tailwindcss: {},
+ autoprefixer: {},
+ },
+}
diff --git a/frontend/public/favicon.svg b/frontend/public/favicon.svg
new file mode 100644
index 0000000..6893eb1
--- /dev/null
+++ b/frontend/public/favicon.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/frontend/src/App.test.tsx b/frontend/src/App.test.tsx
new file mode 100644
index 0000000..ec61a7a
--- /dev/null
+++ b/frontend/src/App.test.tsx
@@ -0,0 +1,19 @@
+import { render } from "@testing-library/react";
+import { expect, test, vi } from "vitest";
+import App, { queryClient } from "./App";
+import { ApiError } from "./lib/api/client";
+
+test("renders without crashing", () => {
+ render( );
+ expect(document.body).toBeTruthy();
+});
+
+test("the production QueryClient does not retry a 404 ApiError", async () => {
+ const queryFn = vi.fn().mockRejectedValue(new ApiError(404, "not found"));
+
+ await expect(
+ queryClient.fetchQuery({ queryKey: ["retry-policy-404-test"], queryFn }),
+ ).rejects.toMatchObject({ status: 404 });
+
+ expect(queryFn).toHaveBeenCalledTimes(1);
+});
diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx
new file mode 100644
index 0000000..c08948b
--- /dev/null
+++ b/frontend/src/App.tsx
@@ -0,0 +1,38 @@
+import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
+import { RouterProvider } from "react-router-dom";
+import { ApiError } from "./lib/api/client";
+import { AuthProvider } from "./lib/auth-context";
+import { OrgProvider } from "./lib/org-context";
+import { router } from "./routes";
+
+// TanStack Query's default retry policy (3 retries with backoff, ~7s
+// total) treats a 404 the same as a transient network blip, so a
+// not-found page shows "Loading..." for ~7s before the real empty state
+// appears. 4xx errors are the server telling us the request itself is
+// wrong -- retrying won't change that -- so only 5xx/network errors (no
+// `ApiError`, or `status >= 500`) get retried, and only up to twice.
+// Exported so `App.test.tsx` can exercise the real retry policy directly
+// (via `fetchQuery`) instead of a copy that could silently drift from
+// what production actually uses.
+export const queryClient = new QueryClient({
+ defaultOptions: {
+ queries: {
+ retry: (failureCount, error) =>
+ !(error instanceof ApiError && error.status < 500) && failureCount < 2,
+ },
+ },
+});
+
+function App() {
+ return (
+
+
+
+
+
+
+
+ );
+}
+
+export default App;
diff --git a/frontend/src/components/AlertEventsTab.test.tsx b/frontend/src/components/AlertEventsTab.test.tsx
new file mode 100644
index 0000000..a762972
--- /dev/null
+++ b/frontend/src/components/AlertEventsTab.test.tsx
@@ -0,0 +1,209 @@
+import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
+import { render, screen, waitFor } from "@testing-library/react";
+import userEvent from "@testing-library/user-event";
+import { beforeEach, describe, expect, test, vi } from "vitest";
+import { ApiError } from "../lib/api/client";
+import type { AlertEvent } from "../lib/api/alerts";
+import { AlertEventsTab } from "./AlertEventsTab";
+
+vi.mock("../lib/api/alerts", () => ({
+ listAlertEvents: vi.fn(),
+ updateAlertEventStatus: vi.fn(),
+}));
+
+import { listAlertEvents, updateAlertEventStatus } from "../lib/api/alerts";
+
+function makeEvent(overrides: Partial = {}): AlertEvent {
+ return {
+ id: "event-1",
+ org_id: "org-1",
+ service_id: "svc-1",
+ rule_id: "rule-1",
+ severity: "warning",
+ title: "High latency",
+ message: "p99 latency exceeded threshold",
+ alert_status: "open",
+ acknowledged_at: null,
+ resolved_at: null,
+ created_at: "2026-01-01T00:00:00Z",
+ updated_at: "2026-01-01T00:00:00Z",
+ ...overrides,
+ };
+}
+
+function renderTab() {
+ const queryClient = new QueryClient({
+ defaultOptions: { queries: { retry: false }, mutations: { retry: false } },
+ });
+ return render(
+
+
+ ,
+ );
+}
+
+describe("AlertEventsTab", () => {
+ beforeEach(() => {
+ vi.clearAllMocks();
+ });
+
+ test("renders a row per alert event returned by the API", async () => {
+ vi.mocked(listAlertEvents).mockResolvedValue({
+ items: [
+ makeEvent({ id: "event-1", title: "High latency" }),
+ makeEvent({ id: "event-2", title: "Error spike" }),
+ ],
+ total: 2,
+ limit: 20,
+ offset: 0,
+ });
+
+ renderTab();
+
+ expect(await screen.findByText("High latency")).toBeTruthy();
+ expect(screen.getByText("Error spike")).toBeTruthy();
+ expect(listAlertEvents).toHaveBeenCalledWith("org-1", "svc-1", { limit: 20, offset: 0 });
+ });
+
+ test("shows the empty state when there are no events", async () => {
+ vi.mocked(listAlertEvents).mockResolvedValue({ items: [], total: 0, limit: 20, offset: 0 });
+
+ renderTab();
+
+ expect(await screen.findByText(/no alert events yet/i)).toBeTruthy();
+ });
+
+ test("shows an error state and a retry action when the request fails", async () => {
+ vi.mocked(listAlertEvents).mockRejectedValueOnce(new ApiError(500, "boom"));
+ vi.mocked(listAlertEvents).mockResolvedValueOnce({
+ items: [],
+ total: 0,
+ limit: 20,
+ offset: 0,
+ });
+
+ renderTab();
+
+ expect(await screen.findByText(/failed to load alert events/i)).toBeTruthy();
+
+ const user = userEvent.setup();
+ await user.click(screen.getByRole("button", { name: /retry/i }));
+
+ expect(await screen.findByText(/no alert events yet/i)).toBeTruthy();
+ });
+
+ test("paginates using limit/offset sent to the API", async () => {
+ vi.mocked(listAlertEvents).mockResolvedValue({
+ items: [makeEvent()],
+ total: 45,
+ limit: 20,
+ offset: 0,
+ });
+
+ renderTab();
+ expect(await screen.findByText("High latency")).toBeTruthy();
+
+ const user = userEvent.setup();
+ await user.click(screen.getByRole("button", { name: /next/i }));
+
+ await waitFor(() =>
+ expect(listAlertEvents).toHaveBeenCalledWith("org-1", "svc-1", { limit: 20, offset: 20 }),
+ );
+ });
+
+ test("an open event offers acknowledge and resolve actions", async () => {
+ vi.mocked(listAlertEvents).mockResolvedValue({
+ items: [makeEvent({ alert_status: "open" })],
+ total: 1,
+ limit: 20,
+ offset: 0,
+ });
+ vi.mocked(updateAlertEventStatus).mockResolvedValue(
+ makeEvent({ alert_status: "acknowledged" }),
+ );
+
+ renderTab();
+ expect(await screen.findByText("High latency")).toBeTruthy();
+
+ expect(screen.getByRole("button", { name: /acknowledge/i })).toBeTruthy();
+ expect(screen.getByRole("button", { name: /^resolve$/i })).toBeTruthy();
+
+ const user = userEvent.setup();
+ await user.click(screen.getByRole("button", { name: /acknowledge/i }));
+
+ await waitFor(() =>
+ expect(updateAlertEventStatus).toHaveBeenCalledWith(
+ "org-1",
+ "svc-1",
+ "event-1",
+ "acknowledged",
+ ),
+ );
+ });
+
+ test("an acknowledged event only offers resolve, not re-opening or re-acknowledging", async () => {
+ vi.mocked(listAlertEvents).mockResolvedValue({
+ items: [makeEvent({ alert_status: "acknowledged" })],
+ total: 1,
+ limit: 20,
+ offset: 0,
+ });
+ vi.mocked(updateAlertEventStatus).mockResolvedValue(makeEvent({ alert_status: "resolved" }));
+
+ renderTab();
+ expect(await screen.findByText("High latency")).toBeTruthy();
+
+ expect(screen.queryByRole("button", { name: /acknowledge/i })).toBeNull();
+ expect(screen.queryByRole("button", { name: /open/i })).toBeNull();
+ const resolveButton = screen.getByRole("button", { name: /^resolve$/i });
+
+ const user = userEvent.setup();
+ await user.click(resolveButton);
+
+ await waitFor(() =>
+ expect(updateAlertEventStatus).toHaveBeenCalledWith("org-1", "svc-1", "event-1", "resolved"),
+ );
+ });
+
+ test("a resolved event offers no status actions", async () => {
+ vi.mocked(listAlertEvents).mockResolvedValue({
+ items: [makeEvent({ alert_status: "resolved" })],
+ total: 1,
+ limit: 20,
+ offset: 0,
+ });
+
+ renderTab();
+ expect(await screen.findByText("High latency")).toBeTruthy();
+
+ expect(screen.queryByRole("button", { name: /acknowledge/i })).toBeNull();
+ expect(screen.queryByRole("button", { name: /^resolve$/i })).toBeNull();
+ });
+
+ test("a stale status update (422 invalid transition) surfaces an error and refetches", async () => {
+ vi.mocked(listAlertEvents).mockResolvedValueOnce({
+ items: [makeEvent({ alert_status: "open" })],
+ total: 1,
+ limit: 20,
+ offset: 0,
+ });
+ vi.mocked(listAlertEvents).mockResolvedValueOnce({
+ items: [makeEvent({ alert_status: "resolved" })],
+ total: 1,
+ limit: 20,
+ offset: 0,
+ });
+ vi.mocked(updateAlertEventStatus).mockRejectedValue(
+ new ApiError(422, "Cannot transition from resolved to acknowledged"),
+ );
+
+ renderTab();
+ expect(await screen.findByText("High latency")).toBeTruthy();
+
+ const user = userEvent.setup();
+ await user.click(screen.getByRole("button", { name: /acknowledge/i }));
+
+ expect(await screen.findByText(/cannot transition/i)).toBeTruthy();
+ await waitFor(() => expect(listAlertEvents).toHaveBeenCalledTimes(2));
+ });
+});
diff --git a/frontend/src/components/AlertEventsTab.tsx b/frontend/src/components/AlertEventsTab.tsx
new file mode 100644
index 0000000..5661d0d
--- /dev/null
+++ b/frontend/src/components/AlertEventsTab.tsx
@@ -0,0 +1,189 @@
+import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
+import { useState } from "react";
+import {
+ listAlertEvents,
+ updateAlertEventStatus,
+ type AlertEvent,
+ type AlertEventStatus,
+} from "../lib/api/alerts";
+import { ApiError } from "../lib/api/client";
+
+const PAGE_LIMIT = 20;
+
+// Mirrors `_VALID_TRANSITIONS` in `backend/app/modules/alerts/service.py`,
+// which the `PATCH .../events/{id}/status` endpoint enforces server-side
+// (an out-of-set transition is rejected with a 422). Keeping this map here
+// means the row only ever offers a button for a transition the backend will
+// actually accept -- there's no "re-open" or "re-acknowledge" control, and a
+// resolved event has no actions left at all.
+type TransitionTarget = Exclude;
+
+const VALID_TRANSITIONS: Record = {
+ open: ["acknowledged", "resolved"],
+ acknowledged: ["resolved"],
+ resolved: [],
+};
+
+// The label for the button that transitions a row *to* this status (not
+// the row's current status) -- e.g. the button that moves an open event to
+// "acknowledged" reads "Acknowledge". Nothing transitions to "open" (see
+// `VALID_TRANSITIONS` above), so it has no label here.
+const TRANSITION_LABELS: Record = {
+ acknowledged: "Acknowledge",
+ resolved: "Resolve",
+};
+
+export interface AlertEventsTabProps {
+ orgId: string;
+ serviceId: string;
+}
+
+export function AlertEventsTab({ orgId, serviceId }: AlertEventsTabProps) {
+ const queryClient = useQueryClient();
+ const [offset, setOffset] = useState(0);
+ const [actionError, setActionError] = useState(null);
+
+ const queryKey = ["alert-events", orgId, serviceId, PAGE_LIMIT, offset];
+ const {
+ data,
+ isLoading,
+ isError,
+ refetch,
+ } = useQuery({
+ queryKey,
+ queryFn: () => listAlertEvents(orgId, serviceId, { limit: PAGE_LIMIT, offset }),
+ });
+
+ function invalidate() {
+ void queryClient.invalidateQueries({ queryKey: ["alert-events", orgId, serviceId] });
+ }
+
+ const updateStatusMutation = useMutation({
+ mutationFn: ({ eventId, status }: { eventId: string; status: AlertEventStatus }) =>
+ updateAlertEventStatus(orgId, serviceId, eventId, status),
+ onError: (err) => {
+ // A 422 here means the event's status already moved on (someone else
+ // resolved it, say) since we last fetched the list -- the backend's
+ // `_VALID_TRANSITIONS` rejected the transition we tried. Surface it
+ // and refetch so the row reflects the event's real current status.
+ setActionError(
+ err instanceof ApiError ? err.detail : "Something went wrong. Please try again.",
+ );
+ },
+ onSuccess: () => setActionError(null),
+ onSettled: () => invalidate(),
+ });
+
+ function handleStatusChange(event: AlertEvent, status: AlertEventStatus) {
+ updateStatusMutation.mutate({ eventId: event.id, status });
+ }
+
+ if (isLoading) {
+ return Loading alert events...
;
+ }
+
+ if (isError) {
+ return (
+
+
Failed to load alert events.
+
void refetch()}
+ className="rounded border border-hairline px-3 py-2 text-sm text-ink"
+ >
+ Retry
+
+
+ );
+ }
+
+ const items = data?.items ?? [];
+ const total = data?.total ?? 0;
+ const hasPrevious = offset > 0;
+ const hasNext = offset + PAGE_LIMIT < total;
+
+ return (
+
+
Alert events
+
+ {actionError &&
{actionError}
}
+
+ {total === 0 ? (
+
No alert events yet.
+ ) : (
+ <>
+
+
+
+ Title
+ Severity
+ Status
+ Created
+ Actions
+
+
+
+ {items.map((event) => {
+ const nextStatuses = VALID_TRANSITIONS[event.alert_status];
+ return (
+
+
+ {event.title}
+ {event.message && (
+ {event.message}
+ )}
+
+ {event.severity}
+ {event.alert_status}
+ {event.created_at}
+
+
+ {nextStatuses.map((status) => (
+ handleStatusChange(event, status)}
+ disabled={updateStatusMutation.isPending}
+ className="rounded border border-hairline px-2 py-1 text-xs text-ink disabled:opacity-60"
+ >
+ {TRANSITION_LABELS[status]}
+
+ ))}
+
+
+
+ );
+ })}
+
+
+
+
+
+ Showing {offset + 1}-{Math.min(offset + PAGE_LIMIT, total)} of {total}
+
+
+ setOffset((prev) => Math.max(0, prev - PAGE_LIMIT))}
+ className="rounded border border-hairline px-3 py-1 disabled:opacity-40"
+ >
+ Previous
+
+ setOffset((prev) => prev + PAGE_LIMIT)}
+ className="rounded border border-hairline px-3 py-1 disabled:opacity-40"
+ >
+ Next
+
+
+
+ >
+ )}
+
+ );
+}
+
+export default AlertEventsTab;
diff --git a/frontend/src/components/AlertRulesTab.test.tsx b/frontend/src/components/AlertRulesTab.test.tsx
new file mode 100644
index 0000000..b13eaf3
--- /dev/null
+++ b/frontend/src/components/AlertRulesTab.test.tsx
@@ -0,0 +1,205 @@
+import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
+import { render, screen, waitFor } from "@testing-library/react";
+import userEvent from "@testing-library/user-event";
+import { beforeEach, describe, expect, test, vi } from "vitest";
+import { ApiError } from "../lib/api/client";
+import type { AlertRule } from "../lib/api/alerts";
+import { AlertRulesTab } from "./AlertRulesTab";
+
+vi.mock("../lib/api/alerts", () => ({
+ listAlertRules: vi.fn(),
+ createAlertRule: vi.fn(),
+ updateAlertRule: vi.fn(),
+ deleteAlertRule: vi.fn(),
+}));
+
+import {
+ createAlertRule,
+ deleteAlertRule,
+ listAlertRules,
+ updateAlertRule,
+} from "../lib/api/alerts";
+
+function makeRule(overrides: Partial = {}): AlertRule {
+ return {
+ id: "rule-1",
+ org_id: "org-1",
+ service_id: "svc-1",
+ name: "High latency",
+ metric_name: "latency_ms",
+ condition_operator: "gt",
+ threshold: 500,
+ window_seconds: 300,
+ severity: "warning",
+ is_enabled: true,
+ created_at: "2026-01-01T00:00:00Z",
+ updated_at: "2026-01-01T00:00:00Z",
+ ...overrides,
+ };
+}
+
+function renderTab() {
+ const queryClient = new QueryClient({
+ defaultOptions: { queries: { retry: false }, mutations: { retry: false } },
+ });
+ return render(
+
+
+ ,
+ );
+}
+
+describe("AlertRulesTab", () => {
+ beforeEach(() => {
+ vi.clearAllMocks();
+ });
+
+ test("renders a row per alert rule returned by the API", async () => {
+ vi.mocked(listAlertRules).mockResolvedValue([
+ makeRule({ id: "rule-1", name: "High latency", metric_name: "latency_ms" }),
+ makeRule({ id: "rule-2", name: "Error rate", metric_name: "error_rate" }),
+ ]);
+
+ renderTab();
+
+ expect(await screen.findByText("High latency")).toBeTruthy();
+ expect(screen.getByText("latency_ms")).toBeTruthy();
+ expect(screen.getByText("Error rate")).toBeTruthy();
+ expect(listAlertRules).toHaveBeenCalledWith("org-1", "svc-1");
+ });
+
+ test("shows the empty state when there are no rules", async () => {
+ vi.mocked(listAlertRules).mockResolvedValue([]);
+
+ renderTab();
+
+ expect(await screen.findByText(/no alert rules yet/i)).toBeTruthy();
+ });
+
+ test("shows an error state and a retry action when the request fails", async () => {
+ vi.mocked(listAlertRules).mockRejectedValueOnce(new ApiError(500, "boom"));
+ vi.mocked(listAlertRules).mockResolvedValueOnce([]);
+
+ renderTab();
+
+ expect(await screen.findByText(/failed to load alert rules/i)).toBeTruthy();
+
+ const user = userEvent.setup();
+ await user.click(screen.getByRole("button", { name: /retry/i }));
+
+ expect(await screen.findByText(/no alert rules yet/i)).toBeTruthy();
+ });
+
+ test("creates a new rule from the form", async () => {
+ vi.mocked(listAlertRules).mockResolvedValue([]);
+ vi.mocked(createAlertRule).mockResolvedValue(
+ makeRule({ id: "rule-new", name: "New rule", metric_name: "cpu_pct" }),
+ );
+
+ renderTab();
+ expect(await screen.findByText(/no alert rules yet/i)).toBeTruthy();
+
+ const user = userEvent.setup();
+ await user.click(screen.getByRole("button", { name: /new rule/i }));
+
+ await user.type(screen.getByLabelText(/^name$/i), "New rule");
+ await user.type(screen.getByLabelText(/metric name/i), "cpu_pct");
+ await user.selectOptions(screen.getByLabelText(/condition/i), "gt");
+ await user.type(screen.getByLabelText(/threshold/i), "90");
+
+ await user.click(screen.getByRole("button", { name: /create rule/i }));
+
+ await waitFor(() =>
+ expect(createAlertRule).toHaveBeenCalledWith("org-1", "svc-1", {
+ name: "New rule",
+ metric_name: "cpu_pct",
+ condition_operator: "gt",
+ threshold: 90,
+ window_seconds: 300,
+ severity: "warning",
+ is_enabled: true,
+ }),
+ );
+ });
+
+ test("editing a rule only sends the backend-updatable fields, with metric/condition read-only", async () => {
+ vi.mocked(listAlertRules).mockResolvedValue([makeRule()]);
+ vi.mocked(updateAlertRule).mockResolvedValue(makeRule({ name: "Renamed" }));
+
+ renderTab();
+ expect(await screen.findByText("High latency")).toBeTruthy();
+
+ const user = userEvent.setup();
+ await user.click(screen.getByRole("button", { name: /edit/i }));
+
+ // metric_name/condition_operator are shown but not editable.
+ expect((screen.getByLabelText(/metric name/i) as HTMLInputElement).disabled).toBe(true);
+ expect((screen.getByLabelText(/condition/i) as HTMLSelectElement).disabled).toBe(true);
+
+ const nameInput = screen.getByLabelText(/^name$/i);
+ await user.clear(nameInput);
+ await user.type(nameInput, "Renamed");
+
+ await user.click(screen.getByRole("button", { name: /save changes/i }));
+
+ await waitFor(() =>
+ expect(updateAlertRule).toHaveBeenCalledWith("org-1", "svc-1", "rule-1", {
+ name: "Renamed",
+ threshold: 500,
+ window_seconds: 300,
+ severity: "warning",
+ is_enabled: true,
+ }),
+ );
+ });
+
+ test("deletes a rule", async () => {
+ vi.mocked(listAlertRules).mockResolvedValue([makeRule()]);
+ vi.mocked(deleteAlertRule).mockResolvedValue(undefined);
+
+ renderTab();
+ expect(await screen.findByText("High latency")).toBeTruthy();
+
+ const user = userEvent.setup();
+ await user.click(screen.getByRole("button", { name: /delete/i }));
+
+ await waitFor(() => expect(deleteAlertRule).toHaveBeenCalledWith("org-1", "svc-1", "rule-1"));
+ });
+
+ test("a stale delete (404) surfaces an error and refetches the list", async () => {
+ vi.mocked(listAlertRules).mockResolvedValueOnce([makeRule()]);
+ vi.mocked(listAlertRules).mockResolvedValueOnce([]);
+ vi.mocked(deleteAlertRule).mockRejectedValue(new ApiError(404, "Alert rule not found"));
+
+ renderTab();
+ expect(await screen.findByText("High latency")).toBeTruthy();
+
+ const user = userEvent.setup();
+ await user.click(screen.getByRole("button", { name: /delete/i }));
+
+ expect(await screen.findByText(/alert rule not found/i)).toBeTruthy();
+ await waitFor(() => expect(listAlertRules).toHaveBeenCalledTimes(2));
+ expect(await screen.findByText(/no alert rules yet/i)).toBeTruthy();
+ });
+
+ test("invalidates the list on a 404 edit (not just on success), so the row drops after Cancel", async () => {
+ vi.mocked(listAlertRules).mockResolvedValueOnce([makeRule()]);
+ vi.mocked(updateAlertRule).mockRejectedValue(new ApiError(404, "Alert rule not found"));
+ vi.mocked(listAlertRules).mockResolvedValueOnce([]);
+
+ renderTab();
+ expect(await screen.findByText("High latency")).toBeTruthy();
+
+ const user = userEvent.setup();
+ await user.click(screen.getByRole("button", { name: /edit/i }));
+ await user.click(screen.getByRole("button", { name: /save changes/i }));
+
+ // `onSettled` invalidation fires on this failed submit already, not
+ // only on a later success -- the row doesn't wait for Cancel to drop.
+ await waitFor(() => expect(listAlertRules).toHaveBeenCalledTimes(2));
+
+ await user.click(screen.getByRole("button", { name: /cancel/i }));
+
+ expect(await screen.findByText(/no alert rules yet/i)).toBeTruthy();
+ });
+});
diff --git a/frontend/src/components/AlertRulesTab.tsx b/frontend/src/components/AlertRulesTab.tsx
new file mode 100644
index 0000000..1b5ab4e
--- /dev/null
+++ b/frontend/src/components/AlertRulesTab.tsx
@@ -0,0 +1,456 @@
+import { Dialog } from "@base-ui/react/dialog";
+import { zodResolver } from "@hookform/resolvers/zod";
+import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
+import { useEffect, useState } from "react";
+import { useForm } from "react-hook-form";
+import { z } from "zod";
+import {
+ createAlertRule,
+ deleteAlertRule,
+ listAlertRules,
+ updateAlertRule,
+ type AlertRule,
+ type AlertSeverity,
+ type ConditionOperator,
+} from "../lib/api/alerts";
+import { ApiError } from "../lib/api/client";
+
+const CONDITION_OPERATORS: ConditionOperator[] = ["gt", "gte", "lt", "lte", "eq"];
+const SEVERITIES: AlertSeverity[] = ["info", "warning", "critical"];
+
+// Mirrors `CreateAlertRuleRequest`/`UpdateAlertRuleRequest`
+// (`backend/app/modules/alerts/schemas.py`). `metric_name` and
+// `condition_operator` are both part of this shared schema because
+// create needs them, but the edit form renders them as disabled inputs
+// and `AlertRulesTab`'s edit submit handler below never sends them to
+// `updateAlertRule` -- the backend's `UpdateAlertRuleRequest` has no
+// fields for either, only `CreateAlertRuleRequest` does.
+const formSchema = z.object({
+ name: z.string().min(1, "Name is required").max(120),
+ metric_name: z.string().min(1, "Metric name is required").max(100),
+ condition_operator: z.enum(["gt", "gte", "lt", "lte", "eq"]),
+ threshold: z.number(),
+ window_seconds: z.number().int().min(10).max(86400),
+ severity: z.enum(["info", "warning", "critical"]),
+ is_enabled: z.boolean(),
+});
+
+type FormValues = z.infer;
+
+const EMPTY_VALUES: FormValues = {
+ name: "",
+ metric_name: "",
+ condition_operator: "gt",
+ threshold: 0,
+ window_seconds: 300,
+ severity: "warning",
+ is_enabled: true,
+};
+
+function toFormValues(rule: AlertRule): FormValues {
+ return {
+ name: rule.name,
+ metric_name: rule.metric_name,
+ condition_operator: rule.condition_operator,
+ threshold: rule.threshold,
+ window_seconds: rule.window_seconds,
+ severity: rule.severity,
+ is_enabled: rule.is_enabled,
+ };
+}
+
+interface AlertRuleFormDialogProps {
+ open: boolean;
+ onOpenChange: (open: boolean) => void;
+ mode: "create" | "edit";
+ initialValues?: AlertRule;
+ onSubmit: (values: FormValues) => Promise;
+}
+
+function AlertRuleFormDialog({
+ open,
+ onOpenChange,
+ mode,
+ initialValues,
+ onSubmit,
+}: AlertRuleFormDialogProps) {
+ const {
+ register,
+ handleSubmit,
+ reset,
+ setError,
+ formState: { errors, isSubmitting },
+ } = useForm({
+ resolver: zodResolver(formSchema),
+ defaultValues: EMPTY_VALUES,
+ });
+
+ // Re-seed the form whenever the dialog opens, same as `ServiceFormDialog`:
+ // this dialog instance is reused across repeated opens for different rows.
+ useEffect(() => {
+ if (open) {
+ reset(initialValues ? toFormValues(initialValues) : EMPTY_VALUES);
+ }
+ }, [open, initialValues, reset]);
+
+ async function submit(values: FormValues) {
+ try {
+ await onSubmit(values);
+ onOpenChange(false);
+ } catch (err) {
+ setError("name", {
+ message: err instanceof ApiError ? err.detail : "Something went wrong. Please try again.",
+ });
+ }
+ }
+
+ return (
+ {
+ onOpenChange(nextOpen);
+ }}
+ >
+
+
+
+
+ {mode === "create" ? "New alert rule" : "Edit alert rule"}
+
+
+
+
+
+
+ );
+}
+
+export interface AlertRulesTabProps {
+ orgId: string;
+ serviceId: string;
+}
+
+export function AlertRulesTab({ orgId, serviceId }: AlertRulesTabProps) {
+ const queryClient = useQueryClient();
+ const [actionError, setActionError] = useState(null);
+ const [dialogState, setDialogState] = useState<
+ | { open: false }
+ | { open: true; mode: "create" }
+ | { open: true; mode: "edit"; rule: AlertRule }
+ >({ open: false });
+
+ const queryKey = ["alert-rules", orgId, serviceId];
+ const {
+ data: rules,
+ isLoading,
+ isError,
+ refetch,
+ } = useQuery({
+ queryKey,
+ queryFn: () => listAlertRules(orgId, serviceId),
+ });
+
+ function invalidate() {
+ void queryClient.invalidateQueries({ queryKey });
+ }
+
+ const createMutation = useMutation({
+ mutationFn: (values: FormValues) =>
+ createAlertRule(orgId, serviceId, {
+ name: values.name,
+ metric_name: values.metric_name,
+ condition_operator: values.condition_operator,
+ threshold: values.threshold,
+ window_seconds: values.window_seconds,
+ severity: values.severity,
+ is_enabled: values.is_enabled,
+ }),
+ onSuccess: () => invalidate(),
+ });
+
+ const updateMutation = useMutation({
+ mutationFn: ({ ruleId, values }: { ruleId: string; values: FormValues }) =>
+ // `metric_name`/`condition_operator` are intentionally left out here:
+ // `UpdateAlertRuleRequest` doesn't accept them, so sending them would
+ // either be ignored or rejected by the backend.
+ updateAlertRule(orgId, serviceId, ruleId, {
+ name: values.name,
+ threshold: values.threshold,
+ window_seconds: values.window_seconds,
+ severity: values.severity,
+ is_enabled: values.is_enabled,
+ }),
+ // `onSettled`, not `onSuccess`: a 404 here means someone else already
+ // deleted this rule since the list was fetched, so the table needs to
+ // drop the row on Cancel, not just show the dialog's error.
+ onSettled: () => invalidate(),
+ });
+
+ const deleteMutation = useMutation({
+ mutationFn: (ruleId: string) => deleteAlertRule(orgId, serviceId, ruleId),
+ onError: (err) => {
+ // A 404 here means someone else already deleted this rule (a stale
+ // row in our list); surface it and let `onSettled` refetch so the
+ // table reflects reality instead of keeping a row we just acted on.
+ setActionError(
+ err instanceof ApiError ? err.detail : "Something went wrong. Please try again.",
+ );
+ },
+ onSuccess: () => setActionError(null),
+ onSettled: () => invalidate(),
+ });
+
+ async function handleCreate(values: FormValues) {
+ await createMutation.mutateAsync(values);
+ }
+
+ async function handleEdit(rule: AlertRule, values: FormValues) {
+ await updateMutation.mutateAsync({ ruleId: rule.id, values });
+ }
+
+ function handleDelete(rule: AlertRule) {
+ deleteMutation.mutate(rule.id);
+ }
+
+ if (isLoading) {
+ return Loading alert rules...
;
+ }
+
+ if (isError) {
+ return (
+
+
Failed to load alert rules.
+
void refetch()}
+ className="rounded border border-hairline px-3 py-2 text-sm text-ink"
+ >
+ Retry
+
+
+ );
+ }
+
+ const items = rules ?? [];
+
+ return (
+
+
+
Alert rules
+ setDialogState({ open: true, mode: "create" })}
+ className="rounded bg-accent-blue px-3 py-2 text-sm text-ink"
+ >
+ New rule
+
+
+
+ {actionError &&
{actionError}
}
+
+ {items.length === 0 ? (
+
No alert rules yet. Create one to get started.
+ ) : (
+
+
+
+ Name
+ Metric
+ Condition
+ Window
+ Severity
+ Enabled
+ Actions
+
+
+
+ {items.map((rule) => (
+
+ {rule.name}
+ {rule.metric_name}
+
+ {rule.condition_operator} {rule.threshold}
+
+ {rule.window_seconds}s
+ {rule.severity}
+ {rule.is_enabled ? "Yes" : "No"}
+
+
+ setDialogState({ open: true, mode: "edit", rule })}
+ className="rounded border border-hairline px-2 py-1 text-xs text-ink"
+ >
+ Edit
+
+ handleDelete(rule)}
+ className="rounded border border-hairline px-2 py-1 text-xs text-critical"
+ >
+ Delete
+
+
+
+
+ ))}
+
+
+ )}
+
+
{
+ if (!open) setDialogState({ open: false });
+ }}
+ onSubmit={(values) => {
+ if (dialogState.open && dialogState.mode === "edit") {
+ return handleEdit(dialogState.rule, values);
+ }
+ return handleCreate(values);
+ }}
+ />
+
+ );
+}
+
+export default AlertRulesTab;
diff --git a/frontend/src/components/AppLayout.test.tsx b/frontend/src/components/AppLayout.test.tsx
new file mode 100644
index 0000000..cc07653
--- /dev/null
+++ b/frontend/src/components/AppLayout.test.tsx
@@ -0,0 +1,186 @@
+import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
+import { render, screen, waitFor } from "@testing-library/react";
+import userEvent from "@testing-library/user-event";
+import { MemoryRouter, Route, Routes } from "react-router-dom";
+import { beforeEach, describe, expect, test, vi } from "vitest";
+import { AppLayout } from "./AppLayout";
+
+vi.mock("../lib/auth-context", () => ({
+ useAuth: vi.fn(),
+}));
+vi.mock("../lib/org-context", () => ({
+ useOrg: vi.fn(),
+}));
+
+import { useAuth } from "../lib/auth-context";
+import { useOrg } from "../lib/org-context";
+
+function baseOrgMock() {
+ return {
+ orgs: [] as { id: string; name: string }[],
+ selectedOrgId: null as string | null,
+ selectOrg: vi.fn(),
+ createOrg: vi.fn(),
+ isLoading: false,
+ error: null as string | null,
+ retry: vi.fn(),
+ };
+}
+
+function renderAppLayout(queryClient = new QueryClient()) {
+ return render(
+
+
+
+ Login Page} />
+ }>
+ Dashboard Content} />
+
+
+
+ ,
+ );
+}
+
+describe("AppLayout", () => {
+ beforeEach(() => {
+ vi.clearAllMocks();
+ });
+
+ test("redirects to /login when there is no authenticated user", () => {
+ vi.mocked(useAuth).mockReturnValue({ user: null } as never);
+ vi.mocked(useOrg).mockReturnValue(baseOrgMock());
+
+ renderAppLayout();
+
+ expect(screen.getByText("Login Page")).toBeTruthy();
+ expect(screen.queryByText("Dashboard Content")).toBeNull();
+ });
+
+ test("shows a Create organization prompt when the org list is empty", () => {
+ vi.mocked(useAuth).mockReturnValue({ user: { id: "1", email: "a@b.com" } } as never);
+ vi.mocked(useOrg).mockReturnValue(baseOrgMock());
+
+ renderAppLayout();
+
+ expect(screen.getByRole("heading", { name: /create organization/i })).toBeTruthy();
+ expect(screen.queryByText("Dashboard Content")).toBeNull();
+ expect(screen.queryByText("Login Page")).toBeNull();
+ });
+
+ test("shows a distinct error-with-retry view instead of the create-org prompt when the org load failed", () => {
+ const retry = vi.fn();
+ vi.mocked(useAuth).mockReturnValue({ user: { id: "1", email: "a@b.com" } } as never);
+ vi.mocked(useOrg).mockReturnValue({
+ ...baseOrgMock(),
+ error: "Something went wrong. Please try again.",
+ retry,
+ });
+
+ renderAppLayout();
+
+ expect(screen.queryByRole("heading", { name: /create organization/i })).toBeNull();
+ expect(screen.getByText(/couldn't load your organizations/i)).toBeTruthy();
+ expect(screen.getByText("Something went wrong. Please try again.")).toBeTruthy();
+
+ screen.getByRole("button", { name: /retry/i }).click();
+ expect(retry).toHaveBeenCalledTimes(1);
+ });
+
+ test("lists orgs in the switcher and calls selectOrg on choosing one", async () => {
+ const selectOrg = vi.fn();
+ vi.mocked(useAuth).mockReturnValue({ user: { id: "1", email: "a@b.com" } } as never);
+ vi.mocked(useOrg).mockReturnValue({
+ ...baseOrgMock(),
+ orgs: [
+ { id: "org-1", name: "Acme" },
+ { id: "org-2", name: "Globex" },
+ ],
+ selectedOrgId: "org-1",
+ selectOrg,
+ });
+
+ renderAppLayout();
+
+ expect(screen.getByText("Dashboard Content")).toBeTruthy();
+ expect(screen.getByRole("combobox", { name: /organization/i }).textContent).toContain("Acme");
+
+ const user = userEvent.setup();
+ await user.click(screen.getByRole("combobox", { name: /organization/i }));
+ await user.click(await screen.findByRole("option", { name: "Globex" }));
+
+ expect(selectOrg).toHaveBeenCalledWith("org-2");
+ });
+
+ test("does not render both the create-org prompt and the outlet at once", () => {
+ vi.mocked(useAuth).mockReturnValue({ user: { id: "1", email: "a@b.com" } } as never);
+ vi.mocked(useOrg).mockReturnValue({
+ ...baseOrgMock(),
+ orgs: [{ id: "org-1", name: "Acme" }],
+ selectedOrgId: "org-1",
+ });
+
+ renderAppLayout();
+
+ expect(screen.getByText("Dashboard Content")).toBeTruthy();
+ expect(screen.queryByRole("heading", { name: /create organization/i })).toBeNull();
+ });
+
+ test("renders primary nav links to the dashboard, services, incidents, and members", () => {
+ vi.mocked(useAuth).mockReturnValue({ user: { id: "1", email: "a@b.com" } } as never);
+ vi.mocked(useOrg).mockReturnValue({
+ ...baseOrgMock(),
+ orgs: [{ id: "org-1", name: "Acme" }],
+ selectedOrgId: "org-1",
+ });
+
+ renderAppLayout();
+
+ expect(screen.getByRole("link", { name: "Dashboard" }).getAttribute("href")).toBe("/");
+ expect(screen.getByRole("link", { name: "Services" }).getAttribute("href")).toBe("/services");
+ expect(screen.getByRole("link", { name: "Incidents" }).getAttribute("href")).toBe(
+ "/incidents",
+ );
+ expect(screen.getByRole("link", { name: "Members" }).getAttribute("href")).toBe("/members");
+ });
+
+ test("marks the active nav link with the accent-orange active-state class", () => {
+ vi.mocked(useAuth).mockReturnValue({ user: { id: "1", email: "a@b.com" } } as never);
+ vi.mocked(useOrg).mockReturnValue({
+ ...baseOrgMock(),
+ orgs: [{ id: "org-1", name: "Acme" }],
+ selectedOrgId: "org-1",
+ });
+
+ renderAppLayout();
+
+ const dashboardLink = screen.getByRole("link", { name: "Dashboard" });
+ const servicesLink = screen.getByRole("link", { name: "Services" });
+ expect(dashboardLink.className).toContain("text-accent-orange");
+ expect(servicesLink.className).not.toContain("text-accent-orange");
+ });
+
+ test("logging out calls useAuth().logout and clears the query client", async () => {
+ const logout = vi.fn().mockResolvedValue(undefined);
+ vi.mocked(useAuth).mockReturnValue({
+ user: { id: "1", email: "a@b.com" },
+ logout,
+ } as never);
+ vi.mocked(useOrg).mockReturnValue({
+ ...baseOrgMock(),
+ orgs: [{ id: "org-1", name: "Acme" }],
+ selectedOrgId: "org-1",
+ });
+
+ const queryClient = new QueryClient();
+ const clearSpy = vi.spyOn(queryClient, "clear");
+
+ renderAppLayout(queryClient);
+
+ const user = userEvent.setup();
+ await user.click(screen.getByRole("button", { name: /log out/i }));
+
+ await waitFor(() => expect(logout).toHaveBeenCalledTimes(1));
+ expect(clearSpy).toHaveBeenCalledTimes(1);
+ });
+});
diff --git a/frontend/src/components/AppLayout.tsx b/frontend/src/components/AppLayout.tsx
new file mode 100644
index 0000000..4de9122
--- /dev/null
+++ b/frontend/src/components/AppLayout.tsx
@@ -0,0 +1,197 @@
+import { useQueryClient } from "@tanstack/react-query";
+import { useState, type FormEvent } from "react";
+import { Navigate, NavLink, Outlet } from "react-router-dom";
+import { ApiError } from "../lib/api/client";
+import { useAuth } from "../lib/auth-context";
+import { useOrg } from "../lib/org-context";
+import {
+ Select,
+ SelectContent,
+ SelectItem,
+ SelectTrigger,
+ SelectValue,
+} from "./ui/select";
+
+// Active state uses the spec's accent orange (#D9732B, `accent-orange` in
+// the Tailwind theme); inactive links stay plain ink.
+function navLinkClassName({ isActive }: { isActive: boolean }): string {
+ return isActive
+ ? "text-accent-orange underline-offset-2 hover:underline"
+ : "text-ink underline-offset-2 hover:underline";
+}
+
+export function AppLayout() {
+ const { user, logout } = useAuth();
+ const { orgs, selectedOrgId, selectOrg, createOrg, isLoading, error, retry } = useOrg();
+ const queryClient = useQueryClient();
+
+ if (!user) {
+ return ;
+ }
+
+ if (isLoading) {
+ return (
+
+ Loading...
+
+ );
+ }
+
+ if (error) {
+ return ;
+ }
+
+ if (orgs.length === 0) {
+ return ;
+ }
+
+ async function handleLogout() {
+ try {
+ await logout();
+ } finally {
+ // A deliberate logout, unlike the 401-triggered hard reload path in
+ // `client.ts`'s unauthorized handler, doesn't throw away the page --
+ // so the previous user's cached org/service/incident data would
+ // otherwise still be sitting in this QueryClient for whoever logs in
+ // next in the same tab.
+ queryClient.clear();
+ }
+ }
+
+ return (
+
+
+
+
DevPulse
+
+
+ Dashboard
+
+
+ Services
+
+
+ Incidents
+
+
+ Members
+
+
+
+
+
+ Organization
+ selectOrg(value ?? "")}
+ >
+
+
+ {(value: string) => orgs.find((org) => org.id === value)?.name ?? ""}
+
+
+
+ {orgs.map((org) => (
+
+ {org.name}
+
+ ))}
+
+
+
+ void handleLogout()}
+ className="rounded border border-hairline px-3 py-2 text-sm text-ink"
+ >
+ Log out
+
+
+
+
+
+
+
+ );
+}
+
+function OrgLoadError({ message, onRetry }: { message: string; onRetry: () => void }) {
+ return (
+
+
+
Couldn't load your organizations
+
{message}
+
+ Retry
+
+
+
+ );
+}
+
+function CreateOrgPrompt({ onCreate }: { onCreate: (name: string) => Promise }) {
+ const [name, setName] = useState("");
+ const [error, setError] = useState(null);
+ const [isSubmitting, setIsSubmitting] = useState(false);
+
+ async function handleSubmit(event: FormEvent) {
+ event.preventDefault();
+ setError(null);
+ setIsSubmitting(true);
+ try {
+ await onCreate(name);
+ } catch (err) {
+ setError(err instanceof ApiError ? err.detail : "Something went wrong. Please try again.");
+ } finally {
+ setIsSubmitting(false);
+ }
+ }
+
+ return (
+
+ );
+}
+
+export default AppLayout;
diff --git a/frontend/src/components/IncidentFactsRail.tsx b/frontend/src/components/IncidentFactsRail.tsx
new file mode 100644
index 0000000..a3792dc
--- /dev/null
+++ b/frontend/src/components/IncidentFactsRail.tsx
@@ -0,0 +1,87 @@
+import type { Incident, IncidentStatus } from "../lib/api/incidents";
+
+// Mirrors `_VALID_TRANSITIONS` in `backend/app/modules/incidents/service.py`,
+// which the `PATCH .../incidents/{id}/status` endpoint enforces server-side
+// (an out-of-set transition is rejected with a 422). Keeping this map here
+// means the rail only ever offers a button for a transition the backend
+// will actually accept -- same pattern as `AlertEventsTab`'s
+// `VALID_TRANSITIONS` -- and a resolved incident has no actions left at all.
+type TransitionTarget = Exclude;
+
+const VALID_TRANSITIONS: Record = {
+ open: ["investigating", "resolved"],
+ investigating: ["identified", "resolved"],
+ identified: ["monitoring", "resolved"],
+ monitoring: ["resolved"],
+ resolved: [],
+};
+
+// The label for the button that transitions the incident *to* this status
+// (not the incident's current status) -- nothing transitions to "open", so
+// it has no label here.
+const TRANSITION_LABELS: Record = {
+ investigating: "Start investigating",
+ identified: "Mark identified",
+ monitoring: "Start monitoring",
+ resolved: "Resolve",
+};
+
+export interface IncidentFactsRailProps {
+ incident: Incident;
+ onStatusChange: (status: IncidentStatus) => void;
+ isChangingStatus: boolean;
+}
+
+export function IncidentFactsRail({
+ incident,
+ onStatusChange,
+ isChangingStatus,
+}: IncidentFactsRailProps) {
+ const nextStatuses = VALID_TRANSITIONS[incident.incident_status];
+
+ return (
+
+
+
Status
+
{incident.incident_status}
+ {nextStatuses.length > 0 && (
+
+ {nextStatuses.map((status) => (
+ onStatusChange(status)}
+ disabled={isChangingStatus}
+ className="rounded border border-hairline px-2 py-1 text-xs text-ink disabled:opacity-60"
+ >
+ {TRANSITION_LABELS[status]}
+
+ ))}
+
+ )}
+
+
+
+
Severity
+
{incident.severity}
+
+
+
+
Service
+
{incident.service_id ?? "None"}
+
+
+
+
Created
+
{incident.created_at}
+
+
+
+
Updated
+
{incident.updated_at}
+
+
+ );
+}
+
+export default IncidentFactsRail;
diff --git a/frontend/src/components/IncidentFormDialog.tsx b/frontend/src/components/IncidentFormDialog.tsx
new file mode 100644
index 0000000..35540cd
--- /dev/null
+++ b/frontend/src/components/IncidentFormDialog.tsx
@@ -0,0 +1,265 @@
+import { Dialog } from "@base-ui/react/dialog";
+import { zodResolver } from "@hookform/resolvers/zod";
+import { useQuery } from "@tanstack/react-query";
+import { useState } from "react";
+import { useForm } from "react-hook-form";
+import { z } from "zod";
+import { ApiError } from "../lib/api/client";
+import type { IncidentSeverity } from "../lib/api/incidents";
+import { listServices } from "../lib/api/services";
+import {
+ Select,
+ SelectContent,
+ SelectItem,
+ SelectTrigger,
+ SelectValue,
+} from "./ui/select";
+
+const SEVERITY_OPTIONS: IncidentSeverity[] = ["sev1", "sev2", "sev3", "sev4"];
+
+// `title`/`description` mirror the backend's
+// `CreateIncidentRequest`/`UpdateIncidentRequest`
+// (`backend/app/modules/incidents/schemas.py`) and go through
+// `react-hook-form`'s `register`/validation as usual. `severity`/
+// `service_id` are driven by the shadcn `Select` below instead (plain
+// local state, not `register`d -- see the note by their `useState` calls),
+// so they're validated by their ``'s fixed option list rather than
+// this schema, and merged in on submit. `service_id` is only part of
+// `CreateIncidentRequest` -- the backend doesn't accept changing the
+// linked service after creation, so this form only shows that field in
+// "create" mode.
+const formSchema = z.object({
+ title: z.string().min(1, "Title is required").max(200),
+ description: z.string().optional(),
+});
+
+type FormFields = z.infer;
+
+export interface IncidentFormValues extends FormFields {
+ severity: IncidentSeverity;
+ service_id?: string;
+}
+
+export interface IncidentFormInitialValues {
+ title: string;
+ description?: string | null;
+ severity: IncidentSeverity;
+}
+
+interface IncidentFormDialogProps {
+ open: boolean;
+ onOpenChange: (open: boolean) => void;
+ mode: "create" | "edit";
+ orgId: string | null;
+ initialValues?: IncidentFormInitialValues;
+ onSubmit: (values: IncidentFormValues) => Promise;
+}
+
+const EMPTY_VALUES: FormFields = {
+ title: "",
+ description: "",
+};
+
+export function IncidentFormDialog({
+ open,
+ onOpenChange,
+ mode,
+ orgId,
+ initialValues,
+ onSubmit,
+}: IncidentFormDialogProps) {
+ const {
+ register,
+ handleSubmit,
+ reset,
+ setError,
+ formState: { errors, isSubmitting },
+ } = useForm({
+ resolver: zodResolver(formSchema),
+ defaultValues: EMPTY_VALUES,
+ });
+
+ // `severity`/`service_id` are driven by the shadcn `Select` (a controlled
+ // component), not `register`, so they're tracked as plain local state
+ // instead of through `useForm`'s `watch` -- `watch` returns a new
+ // subscribe function on every call, which React Compiler flags as
+ // unmemoizable (see the `react(incompatible-library)` lint rule) and
+ // isn't needed here since these two fields never go through validation
+ // beyond the enum/optional checks already encoded in their ``.
+ const [severity, setSeverity] = useState(
+ initialValues?.severity ?? "sev3",
+ );
+ const [serviceId, setServiceId] = useState("");
+
+ // The dropdown of services to optionally link a new incident to.
+ // `listServices` is reused as-is from Task 5 for a simple, unpaginated
+ // dropdown -- a reasonably-sized org's service list fits in one request,
+ // the same assumption the plan already makes for other small lists.
+ const { data: servicesPage } = useQuery({
+ queryKey: ["services", orgId, "incident-form-dropdown"],
+ queryFn: () => listServices(orgId as string, { limit: 100, offset: 0 }),
+ enabled: open && mode === "create" && orgId != null,
+ });
+ const services = servicesPage?.items ?? [];
+
+ // Re-seed the form whenever the dialog opens (fresh for create, populated
+ // for edit), rather than once on mount: the same dialog instance is
+ // reused across repeated opens with different initial values. Done here
+ // during render (React's documented pattern for resetting state when a
+ // prop changes, already used by `ServicesListPage`/`IncidentsListPage`
+ // for their own state resets) rather than in an effect, which avoids an
+ // extra render pass and the `react(set-state-in-effect)` lint warning a
+ // raw `setState` call inside an effect would trigger.
+ const [seededOpen, setSeededOpen] = useState(open);
+ if (open !== seededOpen) {
+ setSeededOpen(open);
+ if (open) {
+ reset({
+ title: initialValues?.title ?? "",
+ description: initialValues?.description ?? "",
+ });
+ setSeverity(initialValues?.severity ?? "sev3");
+ setServiceId("");
+ }
+ }
+
+ async function submit(values: FormFields) {
+ try {
+ await onSubmit({ ...values, severity, service_id: serviceId });
+ onOpenChange(false);
+ } catch (err) {
+ setError("title", {
+ message: err instanceof ApiError ? err.detail : "Something went wrong. Please try again.",
+ });
+ }
+ }
+
+ return (
+ {
+ onOpenChange(nextOpen);
+ }}
+ >
+
+
+
+
+ {mode === "create" ? "New incident" : "Edit incident"}
+
+
+
+
+
+
+ );
+}
+
+export default IncidentFormDialog;
diff --git a/frontend/src/components/MetricsTab.test.tsx b/frontend/src/components/MetricsTab.test.tsx
new file mode 100644
index 0000000..749db5b
--- /dev/null
+++ b/frontend/src/components/MetricsTab.test.tsx
@@ -0,0 +1,243 @@
+import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
+import { render, screen, waitFor } from "@testing-library/react";
+import userEvent from "@testing-library/user-event";
+import { beforeEach, describe, expect, test, vi } from "vitest";
+import { ApiError } from "../lib/api/client";
+import type { MetricSnapshot } from "../lib/api/metrics";
+import { MetricsTab } from "./MetricsTab";
+
+vi.mock("../lib/api/metrics", () => ({
+ listMetrics: vi.fn(),
+ createMetric: vi.fn(),
+}));
+
+import { createMetric, listMetrics } from "../lib/api/metrics";
+
+function makeSnapshot(overrides: Partial = {}): MetricSnapshot {
+ return {
+ id: "snap-1",
+ service_id: "svc-1",
+ org_id: "org-1",
+ metric_name: "cpu_usage",
+ value: 42.5,
+ unit: "percent",
+ recorded_at: "2026-01-01T00:00:00Z",
+ created_at: "2026-01-01T00:00:00Z",
+ ...overrides,
+ };
+}
+
+function renderTab() {
+ const queryClient = new QueryClient({
+ defaultOptions: { queries: { retry: false }, mutations: { retry: false } },
+ });
+ return render(
+
+
+ ,
+ );
+}
+
+describe("MetricsTab", () => {
+ beforeEach(() => {
+ vi.clearAllMocks();
+ });
+
+ test("renders a row per metric snapshot returned by the API", async () => {
+ vi.mocked(listMetrics).mockResolvedValue({
+ items: [
+ makeSnapshot({ id: "snap-1", metric_name: "cpu_usage" }),
+ makeSnapshot({ id: "snap-2", metric_name: "memory_usage" }),
+ ],
+ total: 2,
+ limit: 20,
+ offset: 0,
+ });
+
+ renderTab();
+
+ expect(await screen.findByText("cpu_usage")).toBeTruthy();
+ expect(screen.getByText("memory_usage")).toBeTruthy();
+ expect(listMetrics).toHaveBeenCalledWith("org-1", "svc-1", { limit: 20, offset: 0 });
+ });
+
+ test("shows the empty state when there are no snapshots", async () => {
+ vi.mocked(listMetrics).mockResolvedValue({ items: [], total: 0, limit: 20, offset: 0 });
+
+ renderTab();
+
+ expect(await screen.findByText(/no metric snapshots yet/i)).toBeTruthy();
+ });
+
+ test("shows an error state and a retry action when the request fails", async () => {
+ vi.mocked(listMetrics).mockRejectedValueOnce(new ApiError(500, "boom"));
+ vi.mocked(listMetrics).mockResolvedValueOnce({
+ items: [],
+ total: 0,
+ limit: 20,
+ offset: 0,
+ });
+
+ renderTab();
+
+ expect(await screen.findByText(/failed to load metrics/i)).toBeTruthy();
+
+ const user = userEvent.setup();
+ await user.click(screen.getByRole("button", { name: /retry/i }));
+
+ expect(await screen.findByText(/no metric snapshots yet/i)).toBeTruthy();
+ });
+
+ test("paginates using limit/offset sent to the API", async () => {
+ vi.mocked(listMetrics).mockResolvedValue({
+ items: [makeSnapshot()],
+ total: 45,
+ limit: 20,
+ offset: 0,
+ });
+
+ renderTab();
+ expect(await screen.findByText("cpu_usage")).toBeTruthy();
+
+ const user = userEvent.setup();
+ await user.click(screen.getByRole("button", { name: /next/i }));
+
+ await waitFor(() =>
+ expect(listMetrics).toHaveBeenCalledWith("org-1", "svc-1", { limit: 20, offset: 20 }),
+ );
+
+ await user.click(screen.getByRole("button", { name: /previous/i }));
+
+ await waitFor(() =>
+ expect(listMetrics).toHaveBeenCalledWith("org-1", "svc-1", { limit: 20, offset: 0 }),
+ );
+ });
+
+ test("submitting the record form creates a snapshot, closes the dialog, and refreshes the list", async () => {
+ vi.mocked(listMetrics).mockResolvedValue({
+ items: [],
+ total: 0,
+ limit: 20,
+ offset: 0,
+ });
+ vi.mocked(createMetric).mockResolvedValue(makeSnapshot({ metric_name: "error_rate" }));
+
+ renderTab();
+ expect(await screen.findByText(/no metric snapshots yet/i)).toBeTruthy();
+
+ const user = userEvent.setup();
+ await user.click(screen.getByRole("button", { name: /record snapshot/i }));
+ await user.type(screen.getByLabelText(/metric name/i), "error_rate");
+ await user.type(screen.getByLabelText(/^value$/i), "3.2");
+ await user.type(screen.getByLabelText(/unit/i), "percent");
+ await user.click(screen.getByRole("button", { name: /save snapshot/i }));
+
+ await waitFor(() =>
+ expect(createMetric).toHaveBeenCalledWith("org-1", "svc-1", {
+ metric_name: "error_rate",
+ value: 3.2,
+ unit: "percent",
+ }),
+ );
+
+ await waitFor(() => expect(listMetrics).toHaveBeenCalledTimes(2));
+ await waitFor(() =>
+ expect(screen.queryByRole("button", { name: /save snapshot/i })).toBeNull(),
+ );
+ });
+
+ test("cancelling the dialog discards the form without creating a snapshot", async () => {
+ vi.mocked(listMetrics).mockResolvedValue({ items: [], total: 0, limit: 20, offset: 0 });
+
+ renderTab();
+ expect(await screen.findByText(/no metric snapshots yet/i)).toBeTruthy();
+
+ const user = userEvent.setup();
+ await user.click(screen.getByRole("button", { name: /record snapshot/i }));
+ await user.type(screen.getByLabelText(/metric name/i), "cpu_usage");
+ await user.click(screen.getByRole("button", { name: /cancel/i }));
+
+ await waitFor(() =>
+ expect(screen.queryByRole("button", { name: /save snapshot/i })).toBeNull(),
+ );
+ expect(createMetric).not.toHaveBeenCalled();
+ });
+
+ test("resets to the first page after recording a snapshot while on a later page", async () => {
+ vi.mocked(listMetrics).mockResolvedValue({
+ items: [makeSnapshot()],
+ total: 45,
+ limit: 20,
+ offset: 0,
+ });
+ vi.mocked(createMetric).mockResolvedValue(makeSnapshot({ metric_name: "error_rate" }));
+
+ renderTab();
+ expect(await screen.findByText("cpu_usage")).toBeTruthy();
+
+ const user = userEvent.setup();
+ await user.click(screen.getByRole("button", { name: /next/i }));
+ await waitFor(() =>
+ expect(listMetrics).toHaveBeenCalledWith("org-1", "svc-1", { limit: 20, offset: 20 }),
+ );
+
+ await user.click(screen.getByRole("button", { name: /record snapshot/i }));
+ await user.type(screen.getByLabelText(/metric name/i), "error_rate");
+ await user.type(screen.getByLabelText(/^value$/i), "3.2");
+ await user.click(screen.getByRole("button", { name: /save snapshot/i }));
+
+ await waitFor(() => expect(createMetric).toHaveBeenCalled());
+ await waitFor(() =>
+ expect(listMetrics).toHaveBeenCalledWith("org-1", "svc-1", { limit: 20, offset: 0 }),
+ );
+ });
+
+ test("omitting the recorded-at field leaves it out of the create request so the backend defaults it", async () => {
+ vi.mocked(listMetrics).mockResolvedValue({ items: [], total: 0, limit: 20, offset: 0 });
+ vi.mocked(createMetric).mockResolvedValue(makeSnapshot());
+
+ renderTab();
+ expect(await screen.findByText(/no metric snapshots yet/i)).toBeTruthy();
+
+ const user = userEvent.setup();
+ await user.click(screen.getByRole("button", { name: /record snapshot/i }));
+ await user.type(screen.getByLabelText(/metric name/i), "cpu_usage");
+ await user.type(screen.getByLabelText(/^value$/i), "10");
+ await user.click(screen.getByRole("button", { name: /save snapshot/i }));
+
+ await waitFor(() => expect(createMetric).toHaveBeenCalled());
+ const payload = vi.mocked(createMetric).mock.calls[0][2];
+ expect(payload.recorded_at).toBeUndefined();
+ expect(payload.unit).toBeUndefined();
+ });
+
+ test("shows a validation error when required fields are missing", async () => {
+ vi.mocked(listMetrics).mockResolvedValue({ items: [], total: 0, limit: 20, offset: 0 });
+
+ renderTab();
+ expect(await screen.findByText(/no metric snapshots yet/i)).toBeTruthy();
+
+ const user = userEvent.setup();
+ await user.click(screen.getByRole("button", { name: /record snapshot/i }));
+ await user.click(screen.getByRole("button", { name: /save snapshot/i }));
+
+ expect(await screen.findByText(/metric name is required/i)).toBeTruthy();
+ expect(createMetric).not.toHaveBeenCalled();
+ });
+
+ test("surfaces an API error from the create request", async () => {
+ vi.mocked(listMetrics).mockResolvedValue({ items: [], total: 0, limit: 20, offset: 0 });
+ vi.mocked(createMetric).mockRejectedValue(new ApiError(422, "Invalid metric value"));
+
+ renderTab();
+ expect(await screen.findByText(/no metric snapshots yet/i)).toBeTruthy();
+
+ const user = userEvent.setup();
+ await user.click(screen.getByRole("button", { name: /record snapshot/i }));
+ await user.type(screen.getByLabelText(/metric name/i), "cpu_usage");
+ await user.type(screen.getByLabelText(/^value$/i), "10");
+ await user.click(screen.getByRole("button", { name: /save snapshot/i }));
+
+ expect(await screen.findByText(/invalid metric value/i)).toBeTruthy();
+ });
+});
diff --git a/frontend/src/components/MetricsTab.tsx b/frontend/src/components/MetricsTab.tsx
new file mode 100644
index 0000000..89cd56e
--- /dev/null
+++ b/frontend/src/components/MetricsTab.tsx
@@ -0,0 +1,305 @@
+import { Dialog } from "@base-ui/react/dialog";
+import { zodResolver } from "@hookform/resolvers/zod";
+import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
+import { useEffect, useState } from "react";
+import { useForm } from "react-hook-form";
+import { z } from "zod";
+import { createMetric, listMetrics } from "../lib/api/metrics";
+import { ApiError } from "../lib/api/client";
+
+const PAGE_LIMIT = 20;
+
+// Mirrors `IngestMetricRequest` (`backend/app/modules/metrics/schemas.py`).
+// `unit` and `recorded_at` are both optional there, so empty strings here
+// are treated as "not provided" rather than sent as empty values -- see
+// `createMutation`'s `mutationFn` below.
+const formSchema = z.object({
+ metric_name: z.string().min(1, "Metric name is required").max(100),
+ value: z.number().refine((v) => !Number.isNaN(v), { message: "Value is required" }),
+ unit: z.string().max(32).optional(),
+ recorded_at: z.string().optional(),
+});
+
+type FormValues = z.infer;
+
+const EMPTY_VALUES: FormValues = {
+ metric_name: "",
+ value: Number.NaN,
+ unit: "",
+ recorded_at: "",
+};
+
+// A `datetime-local` input yields "2026-01-01T12:00" with no timezone --
+// append seconds and treat it as local time, which `new Date(...)`
+// converts to a proper ISO/UTC string the backend's `datetime` field can
+// parse.
+function toRecordedAt(localDateTime: string): string | undefined {
+ if (!localDateTime) return undefined;
+ const date = new Date(localDateTime);
+ if (Number.isNaN(date.getTime())) return undefined;
+ return date.toISOString();
+}
+
+interface MetricFormDialogProps {
+ open: boolean;
+ onOpenChange: (open: boolean) => void;
+ onSubmit: (values: FormValues) => Promise;
+}
+
+function MetricFormDialog({ open, onOpenChange, onSubmit }: MetricFormDialogProps) {
+ const {
+ register,
+ handleSubmit,
+ reset,
+ setError,
+ formState: { errors, isSubmitting },
+ } = useForm({
+ resolver: zodResolver(formSchema),
+ defaultValues: EMPTY_VALUES,
+ });
+
+ // Re-seed the form whenever the dialog opens, same as
+ // `AlertRuleFormDialog`: this dialog instance is reused across repeated
+ // opens.
+ useEffect(() => {
+ if (open) {
+ reset(EMPTY_VALUES);
+ }
+ }, [open, reset]);
+
+ async function submit(values: FormValues) {
+ try {
+ await onSubmit(values);
+ onOpenChange(false);
+ } catch (err) {
+ setError("metric_name", {
+ message: err instanceof ApiError ? err.detail : "Something went wrong. Please try again.",
+ });
+ }
+ }
+
+ return (
+ {
+ onOpenChange(nextOpen);
+ }}
+ >
+
+
+
+ Record a snapshot
+
+
+
+
+ Metric name
+
+
+ {errors.metric_name && (
+
{errors.metric_name.message}
+ )}
+
+
+
+
+ Value
+
+
+ {errors.value &&
{errors.value.message}
}
+
+
+
+
+ Unit (optional)
+
+
+ {errors.unit &&
{errors.unit.message}
}
+
+
+
+
+ Recorded at (optional)
+
+
+
Leave blank to record it as now.
+
+
+
+ onOpenChange(false)}
+ className="rounded border border-hairline px-3 py-2 text-ink"
+ >
+ Cancel
+
+
+ Save snapshot
+
+
+
+
+
+
+ );
+}
+
+export interface MetricsTabProps {
+ orgId: string;
+ serviceId: string;
+}
+
+export function MetricsTab({ orgId, serviceId }: MetricsTabProps) {
+ const queryClient = useQueryClient();
+ const [offset, setOffset] = useState(0);
+ const [dialogOpen, setDialogOpen] = useState(false);
+
+ const queryKey = ["metrics", orgId, serviceId, PAGE_LIMIT, offset];
+ const {
+ data,
+ isLoading,
+ isError,
+ refetch,
+ } = useQuery({
+ queryKey,
+ queryFn: () => listMetrics(orgId, serviceId, { limit: PAGE_LIMIT, offset }),
+ });
+
+ const createMutation = useMutation({
+ mutationFn: (values: FormValues) =>
+ createMetric(orgId, serviceId, {
+ metric_name: values.metric_name,
+ value: values.value,
+ unit: values.unit ? values.unit : undefined,
+ recorded_at: toRecordedAt(values.recorded_at ?? ""),
+ }),
+ onSuccess: () => {
+ // Snapshots are returned newest-first, so a freshly recorded one
+ // belongs on page 1 -- reset pagination so it's visible instead of
+ // silently landing off the current page.
+ setOffset(0);
+ void queryClient.invalidateQueries({ queryKey: ["metrics", orgId, serviceId] });
+ },
+ });
+
+ async function handleCreate(values: FormValues) {
+ await createMutation.mutateAsync(values);
+ }
+
+ const items = data?.items ?? [];
+ const total = data?.total ?? 0;
+ const hasPrevious = offset > 0;
+ const hasNext = offset + PAGE_LIMIT < total;
+
+ return (
+
+
+
Metric snapshots
+ setDialogOpen(true)}
+ className="rounded bg-accent-blue px-3 py-2 text-sm text-ink"
+ >
+ Record snapshot
+
+
+
+
+ {isLoading ? (
+
Loading metrics...
+ ) : isError ? (
+
+
Failed to load metrics.
+
void refetch()}
+ className="rounded border border-hairline px-3 py-2 text-sm text-ink"
+ >
+ Retry
+
+
+ ) : total === 0 ? (
+
No metric snapshots yet.
+ ) : (
+ <>
+
+
+
+ Metric
+ Value
+ Unit
+ Recorded at
+
+
+
+ {items.map((snapshot) => (
+
+ {snapshot.metric_name}
+ {snapshot.value}
+ {snapshot.unit ?? ""}
+ {snapshot.recorded_at}
+
+ ))}
+
+
+
+
+
+ Showing {offset + 1}-{Math.min(offset + PAGE_LIMIT, total)} of {total}
+
+
+ setOffset((prev) => Math.max(0, prev - PAGE_LIMIT))}
+ className="rounded border border-hairline px-3 py-1 disabled:opacity-40"
+ >
+ Previous
+
+ setOffset((prev) => prev + PAGE_LIMIT)}
+ className="rounded border border-hairline px-3 py-1 disabled:opacity-40"
+ >
+ Next
+
+
+
+ >
+ )}
+
+
+
+
+ );
+}
+
+export default MetricsTab;
diff --git a/frontend/src/components/PostmortemPanel.test.tsx b/frontend/src/components/PostmortemPanel.test.tsx
new file mode 100644
index 0000000..9a65a4e
--- /dev/null
+++ b/frontend/src/components/PostmortemPanel.test.tsx
@@ -0,0 +1,128 @@
+import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
+import { render, screen, waitFor } from "@testing-library/react";
+import userEvent from "@testing-library/user-event";
+import { beforeEach, describe, expect, test, vi } from "vitest";
+import { ApiError } from "../lib/api/client";
+import type { Postmortem } from "../lib/api/ai";
+import { PostmortemPanel } from "./PostmortemPanel";
+
+vi.mock("../lib/api/ai", () => ({
+ listPostmortems: vi.fn(),
+ generatePostmortem: vi.fn(),
+}));
+
+import { listPostmortems, generatePostmortem } from "../lib/api/ai";
+
+function makePostmortem(overrides: Partial = {}): Postmortem {
+ return {
+ id: "pm-1",
+ incident_id: "inc-1",
+ content: "## Summary\n\nSomething broke.\n\n- cause one\n- cause two",
+ model: "claude-sonnet",
+ created_at: "2026-01-01T00:00:00Z",
+ ...overrides,
+ };
+}
+
+function renderPanel() {
+ const queryClient = new QueryClient({
+ defaultOptions: { queries: { retry: false }, mutations: { retry: false } },
+ });
+ return render(
+
+
+ ,
+ );
+}
+
+describe("PostmortemPanel", () => {
+ beforeEach(() => {
+ vi.clearAllMocks();
+ });
+
+ test("renders the latest postmortem's content as formatted markdown, not raw text", async () => {
+ vi.mocked(listPostmortems).mockResolvedValue([
+ makePostmortem({
+ id: "pm-1",
+ content: "## Summary\n\nOlder postmortem.",
+ created_at: "2026-01-01T00:00:00Z",
+ }),
+ makePostmortem({
+ id: "pm-2",
+ content: "## Summary\n\nNewer postmortem.",
+ created_at: "2026-02-01T00:00:00Z",
+ }),
+ ]);
+
+ renderPanel();
+
+ const heading = await screen.findByRole("heading", { name: "Summary", level: 2 });
+ expect(heading).toBeTruthy();
+ expect(screen.getByText("Newer postmortem.")).toBeTruthy();
+ expect(screen.queryByText("Older postmortem.")).toBeNull();
+ expect(screen.queryByText(/## Summary/)).toBeNull();
+ });
+
+ test("shows an empty state when no postmortem has been generated yet", async () => {
+ vi.mocked(listPostmortems).mockResolvedValue([]);
+
+ renderPanel();
+
+ expect(await screen.findByText(/no postmortem/i)).toBeTruthy();
+ });
+
+ test("generate adds a new postmortem and displays it", async () => {
+ vi.mocked(listPostmortems).mockResolvedValue([
+ makePostmortem({ id: "pm-1", content: "## Summary\n\nExisting postmortem." }),
+ ]);
+ vi.mocked(generatePostmortem).mockResolvedValue(
+ makePostmortem({
+ id: "pm-2",
+ content: "## Summary\n\nFreshly generated postmortem.",
+ created_at: "2026-03-01T00:00:00Z",
+ }),
+ );
+
+ renderPanel();
+
+ expect(await screen.findByText("Existing postmortem.")).toBeTruthy();
+
+ const user = userEvent.setup();
+ await user.click(screen.getByRole("button", { name: /generate postmortem/i }));
+
+ await waitFor(() =>
+ expect(screen.getByText("Freshly generated postmortem.")).toBeTruthy(),
+ );
+ });
+
+ test("shows the rate-limit message, with the Retry-After value, on a 429 from generatePostmortem", async () => {
+ vi.mocked(listPostmortems).mockResolvedValue([]);
+ vi.mocked(generatePostmortem).mockRejectedValue(new ApiError(429, "Rate limit exceeded", 42));
+
+ renderPanel();
+
+ await screen.findByText(/no postmortem/i);
+
+ const user = userEvent.setup();
+ await user.click(screen.getByRole("button", { name: /generate postmortem/i }));
+
+ expect(await screen.findByText(/42/)).toBeTruthy();
+ expect(screen.getByText(/try again/i)).toBeTruthy();
+ });
+
+ test("shows a distinct message for a 502 AI failure", async () => {
+ vi.mocked(listPostmortems).mockResolvedValue([]);
+ vi.mocked(generatePostmortem).mockRejectedValue(
+ new ApiError(502, "Postmortem generation failed: upstream timeout"),
+ );
+
+ renderPanel();
+
+ await screen.findByText(/no postmortem/i);
+
+ const user = userEvent.setup();
+ await user.click(screen.getByRole("button", { name: /generate postmortem/i }));
+
+ expect(await screen.findByText(/postmortem generation failed/i)).toBeTruthy();
+ });
+});
diff --git a/frontend/src/components/PostmortemPanel.tsx b/frontend/src/components/PostmortemPanel.tsx
new file mode 100644
index 0000000..7ffe284
--- /dev/null
+++ b/frontend/src/components/PostmortemPanel.tsx
@@ -0,0 +1,126 @@
+import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
+import { useState } from "react";
+import ReactMarkdown, { type Components } from "react-markdown";
+import { generatePostmortem, listPostmortems, type Postmortem } from "../lib/api/ai";
+import { ApiError } from "../lib/api/client";
+
+export interface PostmortemPanelProps {
+ orgId: string;
+ incidentId: string;
+}
+
+// Same split as `TriageHistory`'s `describeRunTriageError`: the shared
+// per-org AI budget being exhausted (429, `Retry-After`-bearing, via
+// `rate_limit_by_org`) needs its own message, distinct from the Claude call
+// itself failing (502, `AITriageError` -> `detail=f"Postmortem generation
+// failed: {exc}"`) and from everything else.
+function describeGeneratePostmortemError(err: unknown): string {
+ if (err instanceof ApiError) {
+ if (err.status === 429) {
+ return err.retryAfterSeconds != null
+ ? `Postmortem generation is rate-limited for this organization. Try again in ${err.retryAfterSeconds} seconds.`
+ : "Postmortem generation is rate-limited for this organization. Try again shortly.";
+ }
+ return err.detail;
+ }
+ return "Something went wrong. Please try again.";
+}
+
+// No typography plugin is configured for Tailwind here, so markdown
+// elements get explicit classes using the design tokens rather than relying
+// on a "prose" utility class.
+const markdownComponents: Components = {
+ h2: (props) => ,
+ h3: (props) => ,
+ p: (props) =>
,
+ ul: (props) => ,
+ ol: (props) => ,
+ li: (props) => ,
+ code: (props) => ,
+};
+
+function latestPostmortem(postmortems: Postmortem[]): Postmortem | null {
+ if (postmortems.length === 0) {
+ return null;
+ }
+ return [...postmortems].sort((a, b) => b.created_at.localeCompare(a.created_at))[0];
+}
+
+export function PostmortemPanel({ orgId, incidentId }: PostmortemPanelProps) {
+ const queryClient = useQueryClient();
+ const [generateError, setGenerateError] = useState(null);
+
+ const queryKey = ["postmortems", orgId, incidentId];
+ const {
+ data: postmortems,
+ isLoading,
+ isError,
+ refetch,
+ } = useQuery({
+ queryKey,
+ queryFn: () => listPostmortems(orgId, incidentId),
+ });
+
+ const generateMutation = useMutation({
+ mutationFn: () => generatePostmortem(orgId, incidentId),
+ onError: (err) => setGenerateError(describeGeneratePostmortemError(err)),
+ onSuccess: (postmortem) => {
+ setGenerateError(null);
+ queryClient.setQueryData(queryKey, (prev) => [postmortem, ...(prev ?? [])]);
+ },
+ });
+
+ if (isLoading) {
+ return Loading postmortem...
;
+ }
+
+ if (isError) {
+ return (
+
+
Failed to load postmortem.
+
void refetch()}
+ className="rounded border border-hairline px-3 py-2 text-sm text-ink"
+ >
+ Retry
+
+
+ );
+ }
+
+ const latest = latestPostmortem(postmortems ?? []);
+
+ return (
+
+
+
Postmortem
+ generateMutation.mutate()}
+ disabled={generateMutation.isPending}
+ className="rounded border border-hairline px-3 py-2 text-sm text-ink disabled:opacity-60"
+ >
+ {generateMutation.isPending ? "Generating postmortem..." : "Generate postmortem"}
+
+
+
+ {generateError &&
{generateError}
}
+
+ {latest === null ? (
+
No postmortem generated yet.
+ ) : (
+
+
+ {latest.created_at} · Model: {latest.model}
+
+
+ {latest.content}
+
+
+ )}
+
+ );
+}
+
+export default PostmortemPanel;
diff --git a/frontend/src/components/ServiceFormDialog.tsx b/frontend/src/components/ServiceFormDialog.tsx
new file mode 100644
index 0000000..a520e1e
--- /dev/null
+++ b/frontend/src/components/ServiceFormDialog.tsx
@@ -0,0 +1,198 @@
+import { Dialog } from "@base-ui/react/dialog";
+import { zodResolver } from "@hookform/resolvers/zod";
+import { useEffect } from "react";
+import { useForm } from "react-hook-form";
+import { z } from "zod";
+import { ApiError } from "../lib/api/client";
+import type { ServiceStatus } from "../lib/api/services";
+
+const STATUS_OPTIONS: ServiceStatus[] = ["unknown", "healthy", "degraded", "down"];
+
+// `name` mirrors the backend's `CreateServiceRequest`/`UpdateServiceRequest`
+// (`backend/app/modules/services/schemas.py`): required, non-empty.
+// `description` and `repository_url` are both optional there, and `status`
+// is only accepted on update -- the schema below is shared by create and
+// edit, with `status` simply unused (and hidden) for create.
+const formSchema = z.object({
+ name: z.string().min(1, "Name is required"),
+ description: z.string().optional(),
+ repository_url: z.string().optional(),
+ status: z.enum(["unknown", "healthy", "degraded", "down"]),
+});
+
+export type ServiceFormValues = z.infer;
+
+export interface ServiceFormInitialValues {
+ name: string;
+ description?: string | null;
+ repository_url?: string | null;
+ status?: ServiceStatus;
+}
+
+interface ServiceFormDialogProps {
+ open: boolean;
+ onOpenChange: (open: boolean) => void;
+ mode: "create" | "edit";
+ initialValues?: ServiceFormInitialValues;
+ // `dirtyFields` tells the caller which fields the user actually touched
+ // during this submit, so it can decide (e.g. for `status`) whether a
+ // field should be sent at all rather than always sending its current
+ // form value -- see `ServicesListPage`'s `updateMutation`.
+ onSubmit: (
+ values: ServiceFormValues,
+ dirtyFields: Partial>,
+ ) => Promise;
+}
+
+const EMPTY_VALUES: ServiceFormValues = {
+ name: "",
+ description: "",
+ repository_url: "",
+ status: "unknown",
+};
+
+export function ServiceFormDialog({
+ open,
+ onOpenChange,
+ mode,
+ initialValues,
+ onSubmit,
+}: ServiceFormDialogProps) {
+ const {
+ register,
+ handleSubmit,
+ reset,
+ setError,
+ formState: { errors, isSubmitting, dirtyFields },
+ } = useForm({
+ resolver: zodResolver(formSchema),
+ defaultValues: EMPTY_VALUES,
+ });
+
+ // Re-seed the form whenever the dialog opens (fresh for create, populated
+ // for edit), rather than once on mount: the same dialog instance is
+ // reused across repeated opens with different initial values.
+ useEffect(() => {
+ if (open) {
+ reset({
+ name: initialValues?.name ?? "",
+ description: initialValues?.description ?? "",
+ repository_url: initialValues?.repository_url ?? "",
+ status: initialValues?.status ?? "unknown",
+ });
+ }
+ }, [open, initialValues, reset]);
+
+ async function submit(values: ServiceFormValues) {
+ try {
+ await onSubmit(values, dirtyFields);
+ onOpenChange(false);
+ } catch (err) {
+ setError("name", {
+ message: err instanceof ApiError ? err.detail : "Something went wrong. Please try again.",
+ });
+ }
+ }
+
+ return (
+ {
+ onOpenChange(nextOpen);
+ }}
+ >
+
+
+
+
+ {mode === "create" ? "New service" : "Edit service"}
+
+
+
+
+
+ Name
+
+
+ {errors.name &&
{errors.name.message}
}
+
+
+ {/*
+ Known limitation: once `description`/`repository_url` are set,
+ they can't be cleared back to empty through this form. The
+ backend (`backend/app/modules/services/service.py`'s
+ `update_service`) treats an omitted field and an explicit
+ `null` identically (`if description is not None: ...`), so
+ there's no payload this form can send that means "clear this".
+ Fixing that would require a backend schema change, which is
+ out of scope here; this is an accepted limitation, not a bug.
+ */}
+
+
+ Description
+
+
+
+
+
+
+ Repository URL
+
+
+
+
+ {mode === "edit" && (
+
+
+ Status
+
+
+ {STATUS_OPTIONS.map((status) => (
+
+ {status}
+
+ ))}
+
+
+ )}
+
+
+ onOpenChange(false)}
+ className="rounded border border-hairline px-3 py-2 text-ink"
+ >
+ Cancel
+
+
+ {mode === "create" ? "Create service" : "Save changes"}
+
+
+
+
+
+
+ );
+}
+
+export default ServiceFormDialog;
diff --git a/frontend/src/components/TriageHistory.test.tsx b/frontend/src/components/TriageHistory.test.tsx
new file mode 100644
index 0000000..12b3777
--- /dev/null
+++ b/frontend/src/components/TriageHistory.test.tsx
@@ -0,0 +1,117 @@
+import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
+import { render, screen, waitFor } from "@testing-library/react";
+import userEvent from "@testing-library/user-event";
+import { beforeEach, describe, expect, test, vi } from "vitest";
+import { ApiError } from "../lib/api/client";
+import type { IncidentTriage } from "../lib/api/ai";
+import { TriageHistory } from "./TriageHistory";
+
+vi.mock("../lib/api/ai", () => ({
+ listTriages: vi.fn(),
+ runTriage: vi.fn(),
+}));
+
+import { listTriages, runTriage } from "../lib/api/ai";
+
+function makeTriage(overrides: Partial = {}): IncidentTriage {
+ return {
+ id: "triage-1",
+ incident_id: "inc-1",
+ summary: "Likely caused by a deploy regression.",
+ suggested_severity: "sev2",
+ confidence: 0.82,
+ model: "claude-sonnet",
+ created_at: "2026-01-01T00:00:00Z",
+ ...overrides,
+ };
+}
+
+function renderHistory() {
+ const queryClient = new QueryClient({
+ defaultOptions: { queries: { retry: false }, mutations: { retry: false } },
+ });
+ return render(
+
+
+ ,
+ );
+}
+
+describe("TriageHistory", () => {
+ beforeEach(() => {
+ vi.clearAllMocks();
+ });
+
+ test("renders one timeline entry per past triage, newest first", async () => {
+ vi.mocked(listTriages).mockResolvedValue([
+ makeTriage({ id: "triage-1", summary: "Older triage", created_at: "2026-01-01T00:00:00Z" }),
+ makeTriage({ id: "triage-2", summary: "Newer triage", created_at: "2026-01-02T00:00:00Z" }),
+ ]);
+
+ renderHistory();
+
+ const entries = await screen.findAllByTestId("triage-entry");
+ expect(entries).toHaveLength(2);
+ expect(entries[0].textContent).toContain("Newer triage");
+ expect(entries[1].textContent).toContain("Older triage");
+ });
+
+ test("appends a new entry after a successful Run triage", async () => {
+ vi.mocked(listTriages).mockResolvedValue([
+ makeTriage({ id: "triage-1", summary: "Existing triage" }),
+ ]);
+ vi.mocked(runTriage).mockResolvedValue(
+ makeTriage({
+ id: "triage-2",
+ summary: "Freshly run triage",
+ created_at: "2026-02-01T00:00:00Z",
+ }),
+ );
+
+ renderHistory();
+
+ expect(await screen.findByText("Existing triage")).toBeTruthy();
+
+ const user = userEvent.setup();
+ await user.click(screen.getByRole("button", { name: /run triage/i }));
+
+ await waitFor(() => expect(screen.getByText("Freshly run triage")).toBeTruthy());
+
+ const entries = screen.getAllByTestId("triage-entry");
+ expect(entries).toHaveLength(2);
+ expect(entries[0].textContent).toContain("Freshly run triage");
+ });
+
+ test("shows the rate-limit message, with the Retry-After value, on a 429 from runTriage", async () => {
+ vi.mocked(listTriages).mockResolvedValue([]);
+ vi.mocked(runTriage).mockRejectedValue(
+ new ApiError(429, "Rate limit exceeded", 42),
+ );
+
+ renderHistory();
+
+ await screen.findByText(/no triage runs yet/i);
+
+ const user = userEvent.setup();
+ await user.click(screen.getByRole("button", { name: /run triage/i }));
+
+ expect(await screen.findByText(/42/)).toBeTruthy();
+ expect(screen.getByText(/try again/i)).toBeTruthy();
+ });
+
+ test("shows a distinct message for a 502 AI failure", async () => {
+ vi.mocked(listTriages).mockResolvedValue([]);
+ vi.mocked(runTriage).mockRejectedValue(
+ new ApiError(502, "AI triage failed: upstream timeout"),
+ );
+
+ renderHistory();
+
+ await screen.findByText(/no triage runs yet/i);
+
+ const user = userEvent.setup();
+ await user.click(screen.getByRole("button", { name: /run triage/i }));
+
+ expect(await screen.findByText(/ai triage failed/i)).toBeTruthy();
+ });
+});
diff --git a/frontend/src/components/TriageHistory.tsx b/frontend/src/components/TriageHistory.tsx
new file mode 100644
index 0000000..f02e4c9
--- /dev/null
+++ b/frontend/src/components/TriageHistory.tsx
@@ -0,0 +1,114 @@
+import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
+import { useState } from "react";
+import { listTriages, runTriage, type IncidentTriage } from "../lib/api/ai";
+import { ApiError } from "../lib/api/client";
+
+export interface TriageHistoryProps {
+ orgId: string;
+ incidentId: string;
+}
+
+// Distinguishes the AI budget being exhausted (429, `Retry-After`-bearing,
+// shared across triage and postmortem per `rate_limit_by_org`) from the
+// Claude call itself failing (502, `AITriageError` ->
+// `detail=f"AI triage failed: {exc}"`) from everything else. The Review
+// Focus for this task specifically calls out the first case needing its
+// own message, not a generic toast.
+function describeRunTriageError(err: unknown): string {
+ if (err instanceof ApiError) {
+ if (err.status === 429) {
+ return err.retryAfterSeconds != null
+ ? `Triage is rate-limited for this organization. Try again in ${err.retryAfterSeconds} seconds.`
+ : "Triage is rate-limited for this organization. Try again shortly.";
+ }
+ return err.detail;
+ }
+ return "Something went wrong. Please try again.";
+}
+
+export function TriageHistory({ orgId, incidentId }: TriageHistoryProps) {
+ const queryClient = useQueryClient();
+ const [runError, setRunError] = useState(null);
+
+ const queryKey = ["triages", orgId, incidentId];
+ const {
+ data: triages,
+ isLoading,
+ isError,
+ refetch,
+ } = useQuery({
+ queryKey,
+ queryFn: () => listTriages(orgId, incidentId),
+ });
+
+ const runTriageMutation = useMutation({
+ mutationFn: () => runTriage(orgId, incidentId),
+ onError: (err) => setRunError(describeRunTriageError(err)),
+ onSuccess: (triage) => {
+ setRunError(null);
+ queryClient.setQueryData(queryKey, (prev) => [triage, ...(prev ?? [])]);
+ },
+ });
+
+ if (isLoading) {
+ return Loading triage history...
;
+ }
+
+ if (isError) {
+ return (
+
+
Failed to load triage history.
+
void refetch()}
+ className="rounded border border-hairline px-3 py-2 text-sm text-ink"
+ >
+ Retry
+
+
+ );
+ }
+
+ const sorted = [...(triages ?? [])].sort((a, b) => b.created_at.localeCompare(a.created_at));
+
+ return (
+
+
+
Triage history
+ runTriageMutation.mutate()}
+ disabled={runTriageMutation.isPending}
+ className="rounded border border-hairline px-3 py-2 text-sm text-ink disabled:opacity-60"
+ >
+ {runTriageMutation.isPending ? "Running triage..." : "Run triage"}
+
+
+
+ {runError &&
{runError}
}
+
+ {sorted.length === 0 ? (
+
No triage runs yet.
+ ) : (
+
+ {sorted.map((triage) => (
+
+ {triage.created_at}
+ {triage.summary}
+
+ Suggested severity:{" "}
+ {triage.suggested_severity ?? "none"}
+ {" · "}
+ Confidence: {triage.confidence.toFixed(2)}
+ {" · "}
+ Model: {triage.model}
+
+
+ ))}
+
+ )}
+
+ );
+}
+
+export default TriageHistory;
diff --git a/frontend/src/components/ui/select.tsx b/frontend/src/components/ui/select.tsx
new file mode 100644
index 0000000..81c2a21
--- /dev/null
+++ b/frontend/src/components/ui/select.tsx
@@ -0,0 +1,198 @@
+import * as React from "react"
+import { Select as SelectPrimitive } from "@base-ui/react/select"
+import { cn } from "cn"
+import { ChevronDownIcon, CheckIcon, ChevronUpIcon } from "lucide-react"
+
+const Select = SelectPrimitive.Root
+
+function SelectGroup({ className, ...props }: SelectPrimitive.Group.Props) {
+ return (
+
+ )
+}
+
+function SelectValue({ className, ...props }: SelectPrimitive.Value.Props) {
+ return (
+
+ )
+}
+
+function SelectTrigger({
+ className,
+ size = "default",
+ children,
+ ...props
+}: SelectPrimitive.Trigger.Props & {
+ size?: "sm" | "default"
+}) {
+ return (
+
+ {children}
+
+ }
+ />
+
+ )
+}
+
+function SelectContent({
+ className,
+ children,
+ side = "bottom",
+ sideOffset = 4,
+ align = "center",
+ alignOffset = 0,
+ alignItemWithTrigger = true,
+ ...props
+}: SelectPrimitive.Popup.Props &
+ Pick<
+ SelectPrimitive.Positioner.Props,
+ "align" | "alignOffset" | "side" | "sideOffset" | "alignItemWithTrigger"
+ >) {
+ return (
+
+
+
+
+ {children}
+
+
+
+
+ )
+}
+
+function SelectLabel({
+ className,
+ ...props
+}: SelectPrimitive.GroupLabel.Props) {
+ return (
+
+ )
+}
+
+function SelectItem({
+ className,
+ children,
+ ...props
+}: SelectPrimitive.Item.Props) {
+ return (
+
+
+ {children}
+
+
+ }
+ >
+
+
+
+ )
+}
+
+function SelectSeparator({
+ className,
+ ...props
+}: SelectPrimitive.Separator.Props) {
+ return (
+
+ )
+}
+
+function SelectScrollUpButton({
+ className,
+ ...props
+}: React.ComponentProps) {
+ return (
+
+
+
+ )
+}
+
+function SelectScrollDownButton({
+ className,
+ ...props
+}: React.ComponentProps) {
+ return (
+
+
+
+ )
+}
+
+export {
+ Select,
+ SelectContent,
+ SelectGroup,
+ SelectItem,
+ SelectLabel,
+ SelectScrollDownButton,
+ SelectScrollUpButton,
+ SelectSeparator,
+ SelectTrigger,
+ SelectValue,
+}
diff --git a/frontend/src/index.css b/frontend/src/index.css
new file mode 100644
index 0000000..f80b98f
--- /dev/null
+++ b/frontend/src/index.css
@@ -0,0 +1,8 @@
+@tailwind base;
+@tailwind components;
+@tailwind utilities;
+
+body {
+ @apply bg-bg text-ink font-sans;
+ margin: 0;
+}
diff --git a/frontend/src/lib/api/ai.ts b/frontend/src/lib/api/ai.ts
new file mode 100644
index 0000000..7ebb294
--- /dev/null
+++ b/frontend/src/lib/api/ai.ts
@@ -0,0 +1,71 @@
+/**
+ * AI triage API functions. Mirrors `IncidentTriageOut` in
+ * `backend/app/modules/ai/schemas.py`.
+ *
+ * `GET .../triage` returns a bare `IncidentTriage[]`, not the standard
+ * `Page` envelope used elsewhere (`incidents.ts`, `alerts.ts`,
+ * `services.ts`) -- the backend's own convention for small, naturally
+ * bounded histories (see `app/modules/ai/router.py`'s `list_triages`).
+ *
+ * Both `runTriage` and `listTriages` can 429 (shared per-org AI budget,
+ * `app/core/rate_limit.py`'s `rate_limit_by_org`) or, for `runTriage`
+ * specifically, 502 if the underlying Claude call itself fails
+ * (`AITriageError` -> `detail=f"AI triage failed: {exc}"`). Callers should
+ * inspect the thrown `ApiError`'s `status` and `retryAfterSeconds`.
+ */
+
+import { apiRequest } from "./client";
+import type { IncidentSeverity } from "./incidents";
+
+export interface IncidentTriage {
+ id: string;
+ incident_id: string;
+ summary: string;
+ suggested_severity: IncidentSeverity | null;
+ confidence: number;
+ model: string;
+ created_at: string;
+}
+
+function triagePath(orgId: string, incidentId: string): string {
+ return `/organizations/${orgId}/incidents/${incidentId}/triage`;
+}
+
+export async function listTriages(orgId: string, incidentId: string): Promise {
+ return apiRequest(triagePath(orgId, incidentId));
+}
+
+export async function runTriage(orgId: string, incidentId: string): Promise {
+ return apiRequest(triagePath(orgId, incidentId), { method: "POST" });
+}
+
+/**
+ * Mirrors `PostmortemOut` in `backend/app/modules/ai/schemas.py`. `content`
+ * is markdown (the generation prompt in `app/modules/ai/service.py`'s
+ * `_build_postmortem_prompt` instructs Claude to write it with
+ * `## Summary`-style sections), not plain text or HTML.
+ *
+ * Same bare-array convention and shared per-org AI rate limit (429) as
+ * triage above; `generatePostmortem` can additionally 502 if the Claude
+ * call fails (`AITriageError` -> `detail=f"Postmortem generation failed:
+ * {exc}"`).
+ */
+export interface Postmortem {
+ id: string;
+ incident_id: string;
+ content: string;
+ model: string;
+ created_at: string;
+}
+
+function postmortemPath(orgId: string, incidentId: string): string {
+ return `/organizations/${orgId}/incidents/${incidentId}/postmortem`;
+}
+
+export async function listPostmortems(orgId: string, incidentId: string): Promise {
+ return apiRequest(postmortemPath(orgId, incidentId));
+}
+
+export async function generatePostmortem(orgId: string, incidentId: string): Promise {
+ return apiRequest(postmortemPath(orgId, incidentId), { method: "POST" });
+}
diff --git a/frontend/src/lib/api/alerts.ts b/frontend/src/lib/api/alerts.ts
new file mode 100644
index 0000000..0a04b30
--- /dev/null
+++ b/frontend/src/lib/api/alerts.ts
@@ -0,0 +1,160 @@
+/**
+ * Alerts API functions. Mapped onto the backend's actual response shape
+ * (`backend/app/modules/alerts/schemas.py`) and nested under a service
+ * (`backend/app/api.py` mounts `alerts_router` at
+ * `/organizations/{org_id}/services/{service_id}/alerts`).
+ *
+ * This file currently holds the alert *rule* functions (Task 7). Task 8
+ * adds the alert *event* functions to this same file.
+ */
+
+import { apiRequest } from "./client";
+
+export type ConditionOperator = "gt" | "gte" | "lt" | "lte" | "eq";
+export type AlertSeverity = "info" | "warning" | "critical";
+
+// Mirrors `AlertRuleOut` in `backend/app/modules/alerts/schemas.py`.
+export interface AlertRule {
+ id: string;
+ org_id: string;
+ service_id: string;
+ name: string;
+ metric_name: string;
+ condition_operator: ConditionOperator;
+ threshold: number;
+ window_seconds: number;
+ severity: AlertSeverity;
+ is_enabled: boolean;
+ created_at: string;
+ updated_at: string;
+}
+
+function rulesPath(orgId: string, serviceId: string): string {
+ return `/organizations/${orgId}/services/${serviceId}/alerts/rules`;
+}
+
+export async function listAlertRules(orgId: string, serviceId: string): Promise {
+ return apiRequest(rulesPath(orgId, serviceId));
+}
+
+// Mirrors `CreateAlertRuleRequest`: `metric_name`/`condition_operator` are
+// only settable here, at creation -- the backend's `UpdateAlertRuleRequest`
+// doesn't accept them (see `updateAlertRule` below).
+export interface CreateAlertRuleData {
+ name: string;
+ metric_name: string;
+ condition_operator: ConditionOperator;
+ threshold: number;
+ window_seconds?: number;
+ severity?: AlertSeverity;
+ is_enabled?: boolean;
+}
+
+export async function createAlertRule(
+ orgId: string,
+ serviceId: string,
+ data: CreateAlertRuleData,
+): Promise {
+ return apiRequest(rulesPath(orgId, serviceId), {
+ method: "POST",
+ body: JSON.stringify(data),
+ });
+}
+
+// Mirrors `UpdateAlertRuleRequest`: no `metric_name`/`condition_operator`,
+// the backend rejects those on update.
+export interface UpdateAlertRuleData {
+ name?: string;
+ threshold?: number;
+ window_seconds?: number;
+ severity?: AlertSeverity;
+ is_enabled?: boolean;
+}
+
+export async function updateAlertRule(
+ orgId: string,
+ serviceId: string,
+ ruleId: string,
+ data: UpdateAlertRuleData,
+): Promise {
+ return apiRequest(`${rulesPath(orgId, serviceId)}/${ruleId}`, {
+ method: "PATCH",
+ body: JSON.stringify(data),
+ });
+}
+
+export async function deleteAlertRule(
+ orgId: string,
+ serviceId: string,
+ ruleId: string,
+): Promise {
+ await apiRequest(`${rulesPath(orgId, serviceId)}/${ruleId}`, {
+ method: "DELETE",
+ });
+}
+
+// ---------------------------------------------------------------------------
+// Alert events (Task 8)
+// ---------------------------------------------------------------------------
+
+export type AlertEventStatus = "open" | "acknowledged" | "resolved";
+
+// Mirrors `AlertEventOut` in `backend/app/modules/alerts/schemas.py`.
+export interface AlertEvent {
+ id: string;
+ org_id: string;
+ service_id: string;
+ rule_id: string | null;
+ severity: AlertSeverity;
+ title: string;
+ message: string | null;
+ alert_status: AlertEventStatus;
+ acknowledged_at: string | null;
+ resolved_at: string | null;
+ created_at: string;
+ updated_at: string;
+}
+
+// Mirrors `app/core/pagination.py`'s `Page` envelope, already used by
+// `listServices` in `./services.ts`.
+export interface Page {
+ items: T[];
+ total: number;
+ limit: number;
+ offset: number;
+}
+
+function eventsPath(orgId: string, serviceId: string): string {
+ return `/organizations/${orgId}/services/${serviceId}/alerts/events`;
+}
+
+export async function listAlertEvents(
+ orgId: string,
+ serviceId: string,
+ page: { limit: number; offset: number },
+): Promise> {
+ const query = new URLSearchParams({
+ limit: String(page.limit),
+ offset: String(page.offset),
+ });
+ return apiRequest>(`${eventsPath(orgId, serviceId)}?${query.toString()}`);
+}
+
+// Mirrors `UpdateAlertEventStatusRequest`: the only thing updatable on an
+// event. `status` is typed as `string` per the task's interface contract,
+// but callers should only ever pass an `AlertEventStatus` value -- the
+// backend enforces valid transitions server-side (see
+// `_VALID_TRANSITIONS`/`InvalidStatusTransitionError` in
+// `backend/app/modules/alerts/service.py`): open -> acknowledged/resolved,
+// acknowledged -> resolved, resolved -> nothing.
+export async function updateAlertEventStatus(
+ orgId: string,
+ serviceId: string,
+ eventId: string,
+ status: string,
+): Promise {
+ return apiRequest(`${eventsPath(orgId, serviceId)}/${eventId}/status`, {
+ method: "PATCH",
+ body: JSON.stringify({ alert_status: status }),
+ });
+}
diff --git a/frontend/src/lib/api/auth.ts b/frontend/src/lib/api/auth.ts
new file mode 100644
index 0000000..318d26e
--- /dev/null
+++ b/frontend/src/lib/api/auth.ts
@@ -0,0 +1,111 @@
+/**
+ * Auth API functions. Each is a thin `apiRequest` call mapped onto the
+ * backend's actual response shape (snake_case `access_token` /
+ * `refresh_token`, confirmed from `backend/app/modules/auth/schemas.py`),
+ * translated into the camelCase shapes the rest of the frontend consumes.
+ */
+
+import { apiRequest, ApiError } from "./client";
+
+export interface TokenPair {
+ accessToken: string;
+ refreshToken: string;
+}
+
+export interface User {
+ id: string;
+ email: string;
+}
+
+interface TokenPairResponse {
+ access_token: string;
+ refresh_token: string;
+ token_type: string;
+ expires_at: string;
+}
+
+interface UserResponse {
+ id: string;
+ email: string;
+}
+
+const REFRESH_TOKEN_KEY = "devpulse_refresh_token";
+
+function toTokenPair(dto: TokenPairResponse): TokenPair {
+ return { accessToken: dto.access_token, refreshToken: dto.refresh_token };
+}
+
+export async function login(email: string, password: string): Promise {
+ const dto = await apiRequest("/auth/login", {
+ method: "POST",
+ body: JSON.stringify({ email, password }),
+ });
+ return toTokenPair(dto);
+}
+
+export async function register(email: string, password: string): Promise {
+ const dto = await apiRequest("/auth/register", {
+ method: "POST",
+ body: JSON.stringify({ email, password }),
+ });
+ return toTokenPair(dto);
+}
+
+// Tracks a refresh that's already in flight so concurrent callers (e.g.
+// auth-context's mount-restore effect and an independent apiRequest call
+// that hits a 401 around the same time) await the same request instead of
+// each reading the same pre-rotation refresh token from localStorage and
+// racing the backend. Cleared once the in-flight refresh settles, so a
+// later, unrelated refresh attempt isn't permanently blocked by a long-gone
+// call.
+let inFlightRefresh: Promise | null = null;
+
+async function doRefreshAccessToken(): Promise {
+ const refreshToken = localStorage.getItem(REFRESH_TOKEN_KEY);
+ if (!refreshToken) {
+ throw new ApiError(401, "No refresh token available");
+ }
+
+ const dto = await apiRequest("/auth/refresh", {
+ method: "POST",
+ body: JSON.stringify({ refresh_token: refreshToken }),
+ });
+ const pair = toTokenPair(dto);
+ localStorage.setItem(REFRESH_TOKEN_KEY, pair.refreshToken);
+ return pair;
+}
+
+/**
+ * Reads the refresh token from localStorage, exchanges it for a new token
+ * pair, and persists the rotated refresh token. `client.ts` calls this once
+ * on a 401 before retrying the original request; `auth-context.tsx` also
+ * calls it directly on mount to restore a session. If a refresh is already
+ * in flight, concurrent callers await that same promise rather than
+ * starting a second one.
+ */
+export async function refreshAccessToken(): Promise {
+ if (inFlightRefresh) {
+ return inFlightRefresh;
+ }
+
+ inFlightRefresh = doRefreshAccessToken().finally(() => {
+ inFlightRefresh = null;
+ });
+ return inFlightRefresh;
+}
+
+export async function logout(): Promise {
+ const refreshToken = localStorage.getItem(REFRESH_TOKEN_KEY);
+ if (!refreshToken) {
+ return;
+ }
+ await apiRequest("/auth/logout", {
+ method: "POST",
+ body: JSON.stringify({ refresh_token: refreshToken }),
+ });
+}
+
+export async function getCurrentUser(): Promise {
+ const dto = await apiRequest("/auth/me");
+ return { id: dto.id, email: dto.email };
+}
diff --git a/frontend/src/lib/api/client.test.ts b/frontend/src/lib/api/client.test.ts
new file mode 100644
index 0000000..6f639f6
--- /dev/null
+++ b/frontend/src/lib/api/client.test.ts
@@ -0,0 +1,171 @@
+import { afterEach, beforeEach, describe, expect, test, vi } from "vitest";
+import { apiRequest, setTokenGetter, setUnauthorizedHandler } from "./client";
+
+const REFRESH_TOKEN_KEY = "devpulse_refresh_token";
+
+function jsonResponse(body: unknown, status = 200) {
+ return new Response(JSON.stringify(body), {
+ status,
+ headers: { "Content-Type": "application/json" },
+ });
+}
+
+describe("apiRequest", () => {
+ beforeEach(() => {
+ localStorage.clear();
+ setTokenGetter(() => null);
+ setUnauthorizedHandler(() => {});
+ });
+
+ afterEach(() => {
+ vi.unstubAllGlobals();
+ vi.restoreAllMocks();
+ });
+
+ test("attaches the Authorization header from the token getter", async () => {
+ setTokenGetter(() => "abc123");
+ const fetchMock = vi.fn().mockResolvedValue(jsonResponse({ ok: true }));
+ vi.stubGlobal("fetch", fetchMock);
+
+ await apiRequest("/foo");
+
+ expect(fetchMock).toHaveBeenCalledTimes(1);
+ const [, init] = fetchMock.mock.calls[0];
+ const headers = new Headers(init.headers);
+ expect(headers.get("Authorization")).toBe("Bearer abc123");
+ });
+
+ test("retries once after a successful refresh on 401", async () => {
+ localStorage.setItem(REFRESH_TOKEN_KEY, "old-refresh-token");
+ setTokenGetter(() => "expired-token");
+
+ const fetchMock = vi
+ .fn()
+ .mockResolvedValueOnce(jsonResponse({ detail: "expired" }, 401))
+ .mockResolvedValueOnce(
+ jsonResponse({
+ access_token: "new-access-token",
+ refresh_token: "new-refresh-token",
+ token_type: "bearer",
+ expires_at: "2030-01-01T00:00:00Z",
+ }),
+ )
+ .mockResolvedValueOnce(jsonResponse({ result: "success" }));
+ vi.stubGlobal("fetch", fetchMock);
+
+ const result = await apiRequest<{ result: string }>("/protected");
+
+ expect(fetchMock).toHaveBeenCalledTimes(3);
+ expect(result).toEqual({ result: "success" });
+ expect(localStorage.getItem(REFRESH_TOKEN_KEY)).toBe("new-refresh-token");
+
+ const retryCallInit = fetchMock.mock.calls[2][1];
+ const retryHeaders = new Headers(retryCallInit.headers);
+ expect(retryHeaders.get("Authorization")).toBe("Bearer new-access-token");
+ });
+
+ test("throws ApiError with status and detail on a non-2xx response", async () => {
+ const fetchMock = vi.fn().mockResolvedValue(jsonResponse({ detail: "not found" }, 404));
+ vi.stubGlobal("fetch", fetchMock);
+
+ await expect(apiRequest("/missing")).rejects.toMatchObject({
+ status: 404,
+ detail: "not found",
+ });
+ });
+
+ test("clears tokens via the unauthorized handler and does not retry forever when refresh also fails", async () => {
+ localStorage.setItem(REFRESH_TOKEN_KEY, "old-refresh-token");
+ setTokenGetter(() => "expired-token");
+ const unauthorizedHandler = vi.fn();
+ setUnauthorizedHandler(unauthorizedHandler);
+
+ const fetchMock = vi
+ .fn()
+ .mockResolvedValueOnce(jsonResponse({ detail: "expired" }, 401))
+ .mockResolvedValueOnce(jsonResponse({ detail: "invalid refresh token" }, 401));
+ vi.stubGlobal("fetch", fetchMock);
+
+ await expect(apiRequest("/protected")).rejects.toMatchObject({ status: 401 });
+
+ expect(fetchMock).toHaveBeenCalledTimes(2);
+ expect(unauthorizedHandler).toHaveBeenCalledTimes(1);
+ });
+
+ test("populates retryAfterSeconds from a Retry-After header on a 429", async () => {
+ const fetchMock = vi.fn().mockResolvedValue(
+ new Response(JSON.stringify({ detail: "Rate limit exceeded" }), {
+ status: 429,
+ headers: { "Content-Type": "application/json", "Retry-After": "30" },
+ }),
+ );
+ vi.stubGlobal("fetch", fetchMock);
+
+ await expect(apiRequest("/organizations/org-1/incidents/inc-1/triage")).rejects.toMatchObject(
+ {
+ status: 429,
+ detail: "Rate limit exceeded",
+ retryAfterSeconds: 30,
+ },
+ );
+ });
+
+ test("leaves retryAfterSeconds undefined when there is no Retry-After header", async () => {
+ const fetchMock = vi.fn().mockResolvedValue(jsonResponse({ detail: "not found" }, 404));
+ vi.stubGlobal("fetch", fetchMock);
+
+ await expect(apiRequest("/missing")).rejects.toMatchObject({
+ status: 404,
+ retryAfterSeconds: undefined,
+ });
+ });
+
+ test("does not attempt a refresh on a non-401 error", async () => {
+ const fetchMock = vi.fn().mockResolvedValue(jsonResponse({ detail: "boom" }, 500));
+ vi.stubGlobal("fetch", fetchMock);
+
+ await expect(apiRequest("/broken")).rejects.toMatchObject({ status: 500 });
+ expect(fetchMock).toHaveBeenCalledTimes(1);
+ });
+
+ test("de-duplicates concurrent refreshes: two 401s at once only call /auth/refresh once", async () => {
+ localStorage.setItem(REFRESH_TOKEN_KEY, "old-refresh-token");
+ setTokenGetter(() => "expired-token");
+
+ const protectedCallCounts: Record = {};
+
+ const fetchMock = vi.fn(async (input: string | URL | Request) => {
+ const url = String(input);
+
+ if (url.includes("/auth/refresh")) {
+ return jsonResponse({
+ access_token: "new-access-token",
+ refresh_token: "new-refresh-token",
+ token_type: "bearer",
+ expires_at: "2030-01-01T00:00:00Z",
+ });
+ }
+
+ protectedCallCounts[url] = (protectedCallCounts[url] ?? 0) + 1;
+ if (protectedCallCounts[url] === 1) {
+ return jsonResponse({ detail: "expired" }, 401);
+ }
+ return jsonResponse({ result: "success" });
+ });
+ vi.stubGlobal("fetch", fetchMock);
+
+ const [resultA, resultB] = await Promise.all([
+ apiRequest<{ result: string }>("/protected-a"),
+ apiRequest<{ result: string }>("/protected-b"),
+ ]);
+
+ expect(resultA).toEqual({ result: "success" });
+ expect(resultB).toEqual({ result: "success" });
+
+ const refreshCalls = fetchMock.mock.calls.filter(([input]) =>
+ String(input).includes("/auth/refresh"),
+ );
+ expect(refreshCalls).toHaveLength(1);
+ expect(localStorage.getItem(REFRESH_TOKEN_KEY)).toBe("new-refresh-token");
+ });
+});
diff --git a/frontend/src/lib/api/client.ts b/frontend/src/lib/api/client.ts
new file mode 100644
index 0000000..2165e85
--- /dev/null
+++ b/frontend/src/lib/api/client.ts
@@ -0,0 +1,128 @@
+/**
+ * Typed fetch wrapper for the DevPulse API.
+ *
+ * `auth-context.tsx` wires up `setTokenGetter`, `setUnauthorizedHandler`, and
+ * `setOnTokenRefresh` so this module never imports React or touches storage
+ * directly; it only knows how to make requests, attach the current access
+ * token, and run the single-retry-after-refresh flow on a 401.
+ */
+
+import { refreshAccessToken } from "./auth";
+
+const API_BASE_URL =
+ (import.meta.env.VITE_API_BASE_URL as string | undefined) ?? "http://localhost:8000/api/v1";
+
+const REFRESH_PATH = "/auth/refresh";
+
+export class ApiError extends Error {
+ status: number;
+ detail: string;
+ // Only set when the response carried a `Retry-After` header (the AI
+ // endpoints' 429s do, via `rate_limit_by_org`). `undefined` for every
+ // other error, including other 429s without the header.
+ retryAfterSeconds?: number;
+
+ constructor(status: number, detail: string, retryAfterSeconds?: number) {
+ super(detail);
+ this.name = "ApiError";
+ this.status = status;
+ this.detail = detail;
+ this.retryAfterSeconds = retryAfterSeconds;
+ }
+}
+
+function readRetryAfterSeconds(response: Response): number | undefined {
+ const header = response.headers.get("Retry-After");
+ if (header === null) {
+ return undefined;
+ }
+ const seconds = Number(header);
+ return Number.isNaN(seconds) ? undefined : seconds;
+}
+
+let tokenGetter: () => string | null = () => null;
+let unauthorizedHandler: () => void = () => {};
+let onTokenRefresh: (accessToken: string) => void = () => {};
+
+export function setTokenGetter(fn: () => string | null): void {
+ tokenGetter = fn;
+}
+
+export function setUnauthorizedHandler(fn: () => void): void {
+ unauthorizedHandler = fn;
+}
+
+export function setOnTokenRefresh(fn: (accessToken: string) => void): void {
+ onTokenRefresh = fn;
+}
+
+function buildUrl(path: string): string {
+ return `${API_BASE_URL}${path.startsWith("/") ? path : `/${path}`}`;
+}
+
+async function doFetch(path: string, init: RequestInit, token: string | null): Promise {
+ const headers = new Headers(init.headers);
+ if (token) {
+ headers.set("Authorization", `Bearer ${token}`);
+ }
+ if (init.body && !headers.has("Content-Type")) {
+ headers.set("Content-Type", "application/json");
+ }
+ return fetch(buildUrl(path), { ...init, headers });
+}
+
+async function readErrorDetail(response: Response): Promise {
+ try {
+ const data = await response.json();
+ if (data && typeof data.detail === "string") {
+ return data.detail;
+ }
+ return JSON.stringify(data);
+ } catch {
+ return response.statusText || "Request failed";
+ }
+}
+
+async function readBody(response: Response): Promise {
+ if (response.status === 204) {
+ return undefined as T;
+ }
+ const text = await response.text();
+ if (!text) {
+ return undefined as T;
+ }
+ return JSON.parse(text) as T;
+}
+
+export async function apiRequest(path: string, init: RequestInit = {}): Promise {
+ let response = await doFetch(path, init, tokenGetter());
+
+ if (!response.ok && response.status === 401 && path !== REFRESH_PATH) {
+ let refreshed: Awaited> | null = null;
+ try {
+ refreshed = await refreshAccessToken();
+ } catch {
+ refreshed = null;
+ }
+
+ if (refreshed) {
+ onTokenRefresh(refreshed.accessToken);
+ response = await doFetch(path, init, refreshed.accessToken);
+ }
+
+ if (!response.ok && response.status === 401) {
+ unauthorizedHandler();
+ throw new ApiError(401, await readErrorDetail(response), readRetryAfterSeconds(response));
+ }
+ }
+
+ if (!response.ok) {
+ throw new ApiError(
+ response.status,
+ await readErrorDetail(response),
+ readRetryAfterSeconds(response),
+ );
+ }
+
+ return readBody(response);
+}
diff --git a/frontend/src/lib/api/incidents.ts b/frontend/src/lib/api/incidents.ts
new file mode 100644
index 0000000..aa9339c
--- /dev/null
+++ b/frontend/src/lib/api/incidents.ts
@@ -0,0 +1,141 @@
+/**
+ * Incidents API functions. Mapped onto the backend's actual response shape
+ * (`backend/app/modules/incidents/schemas.py`'s `IncidentOut`: snake_case
+ * `org_id`/`service_id`/`created_by`/`incident_status`/`resolved_at`/
+ * `created_at`/`updated_at`) and its paginated list envelope
+ * (`app/core/pagination.py`'s `Page`, already mirrored by `services.ts` and
+ * `alerts.ts`).
+ *
+ * The list endpoint (`GET /organizations/{org_id}/incidents`) takes
+ * `status`/`severity` query params (added in Task 1 specifically for this
+ * page's filtering) -- note the query param is named `status`, but the
+ * field it filters on in the response body is `incident_status`. These are
+ * two different names for two different things: a query param vs. a
+ * response field. See `backend/app/modules/incidents/router.py`'s
+ * `list_incidents`, which aliases its internal `incident_status` parameter
+ * to the external `status` query param via `Query(alias="status")`.
+ */
+
+import { apiRequest } from "./client";
+
+export type IncidentSeverity = "sev1" | "sev2" | "sev3" | "sev4";
+export type IncidentStatus = "open" | "investigating" | "identified" | "monitoring" | "resolved";
+
+// Mirrors `IncidentOut` in `backend/app/modules/incidents/schemas.py`.
+export interface Incident {
+ id: string;
+ org_id: string;
+ service_id: string | null;
+ created_by: string | null;
+ title: string;
+ description: string | null;
+ severity: IncidentSeverity;
+ incident_status: IncidentStatus;
+ resolved_at: string | null;
+ created_at: string;
+ updated_at: string;
+}
+
+// Mirrors `app/core/pagination.py`'s `Page` envelope.
+export interface Page {
+ items: T[];
+ total: number;
+ limit: number;
+ offset: number;
+}
+
+function incidentsPath(orgId: string): string {
+ return `/organizations/${orgId}/incidents`;
+}
+
+export interface IncidentFilters {
+ status?: IncidentStatus;
+ severity?: IncidentSeverity;
+}
+
+export async function listIncidents(
+ orgId: string,
+ filters: IncidentFilters,
+ page: { limit: number; offset: number },
+): Promise> {
+ const query = new URLSearchParams({
+ limit: String(page.limit),
+ offset: String(page.offset),
+ });
+ if (filters.status) {
+ query.set("status", filters.status);
+ }
+ if (filters.severity) {
+ query.set("severity", filters.severity);
+ }
+ return apiRequest>(`${incidentsPath(orgId)}?${query.toString()}`);
+}
+
+// Mirrors `CreateIncidentRequest`: `service_id` is optional -- linking an
+// incident to a service is optional, not required.
+export interface CreateIncidentData {
+ title: string;
+ description?: string;
+ severity: IncidentSeverity;
+ service_id?: string;
+}
+
+export async function createIncident(
+ orgId: string,
+ data: CreateIncidentData,
+): Promise {
+ const body: Record = { title: data.title, severity: data.severity };
+ if (data.description) {
+ body.description = data.description;
+ }
+ if (data.service_id) {
+ body.service_id = data.service_id;
+ }
+ return apiRequest(incidentsPath(orgId), {
+ method: "POST",
+ body: JSON.stringify(body),
+ });
+}
+
+// Mirrors `UpdateIncidentRequest`: no `service_id` -- the backend doesn't
+// accept changing the linked service after creation.
+export interface UpdateIncidentData {
+ title?: string;
+ description?: string;
+ severity?: IncidentSeverity;
+}
+
+export async function updateIncident(
+ orgId: string,
+ incidentId: string,
+ data: UpdateIncidentData,
+): Promise {
+ return apiRequest(`${incidentsPath(orgId)}/${incidentId}`, {
+ method: "PATCH",
+ body: JSON.stringify(data),
+ });
+}
+
+export async function deleteIncident(orgId: string, incidentId: string): Promise {
+ await apiRequest(`${incidentsPath(orgId)}/${incidentId}`, {
+ method: "DELETE",
+ });
+}
+
+export async function getIncident(orgId: string, incidentId: string): Promise {
+ return apiRequest(`${incidentsPath(orgId)}/${incidentId}`);
+}
+
+// Mirrors `UpdateIncidentStatusRequest`: the body field is `incident_status`,
+// not `status` -- same naming split as the list endpoint's query param (see
+// module docstring above), just on the request body this time.
+export async function updateIncidentStatus(
+ orgId: string,
+ incidentId: string,
+ status: IncidentStatus,
+): Promise {
+ return apiRequest(`${incidentsPath(orgId)}/${incidentId}/status`, {
+ method: "PATCH",
+ body: JSON.stringify({ incident_status: status }),
+ });
+}
diff --git a/frontend/src/lib/api/metrics.ts b/frontend/src/lib/api/metrics.ts
new file mode 100644
index 0000000..9da04fd
--- /dev/null
+++ b/frontend/src/lib/api/metrics.ts
@@ -0,0 +1,59 @@
+/**
+ * Metrics API functions. Mapped onto the backend's actual response shape
+ * (`backend/app/modules/metrics/schemas.py`) and nested under a service
+ * (`backend/app/api.py` mounts `metrics_router` at
+ * `/organizations/{org_id}/services/{service_id}/metrics`).
+ */
+
+import { apiRequest } from "./client";
+import type { Page } from "./alerts";
+
+// Mirrors `MetricSnapshotOut` in `backend/app/modules/metrics/schemas.py`.
+export interface MetricSnapshot {
+ id: string;
+ service_id: string;
+ org_id: string;
+ metric_name: string;
+ value: number;
+ unit: string | null;
+ recorded_at: string;
+ created_at: string;
+}
+
+function metricsPath(orgId: string, serviceId: string): string {
+ return `/organizations/${orgId}/services/${serviceId}/metrics`;
+}
+
+export async function listMetrics(
+ orgId: string,
+ serviceId: string,
+ page: { limit: number; offset: number },
+): Promise> {
+ const query = new URLSearchParams({
+ limit: String(page.limit),
+ offset: String(page.offset),
+ });
+ return apiRequest>(`${metricsPath(orgId, serviceId)}?${query.toString()}`);
+}
+
+// Mirrors `IngestMetricRequest`. `recorded_at` is optional -- the backend
+// (`backend/app/modules/metrics/service.py`'s `ingest`) defaults it to
+// `datetime.now(UTC)` server-side when it's omitted, so callers can leave
+// it out to record "now".
+export interface CreateMetricData {
+ metric_name: string;
+ value: number;
+ unit?: string;
+ recorded_at?: string;
+}
+
+export async function createMetric(
+ orgId: string,
+ serviceId: string,
+ data: CreateMetricData,
+): Promise {
+ return apiRequest(metricsPath(orgId, serviceId), {
+ method: "POST",
+ body: JSON.stringify(data),
+ });
+}
diff --git a/frontend/src/lib/api/organizations.test.ts b/frontend/src/lib/api/organizations.test.ts
new file mode 100644
index 0000000..d36f086
--- /dev/null
+++ b/frontend/src/lib/api/organizations.test.ts
@@ -0,0 +1,107 @@
+import { afterEach, beforeEach, describe, expect, test, vi } from "vitest";
+import { createOrganization, listOrganizations } from "./organizations";
+import { setTokenGetter, setUnauthorizedHandler } from "./client";
+
+function jsonResponse(body: unknown, status = 200) {
+ return new Response(JSON.stringify(body), {
+ status,
+ headers: { "Content-Type": "application/json" },
+ });
+}
+
+describe("organizations api", () => {
+ beforeEach(() => {
+ setTokenGetter(() => null);
+ setUnauthorizedHandler(() => {});
+ });
+
+ afterEach(() => {
+ vi.unstubAllGlobals();
+ vi.restoreAllMocks();
+ });
+
+ test("listOrganizations maps the bare list response to the minimal Org shape", async () => {
+ const fetchMock = vi.fn().mockResolvedValue(
+ jsonResponse([
+ {
+ id: "org-1",
+ slug: "acme",
+ name: "Acme",
+ created_at: "2026-01-01T00:00:00Z",
+ updated_at: "2026-01-01T00:00:00Z",
+ },
+ ]),
+ );
+ vi.stubGlobal("fetch", fetchMock);
+
+ const orgs = await listOrganizations();
+
+ expect(orgs).toEqual([{ id: "org-1", name: "Acme" }]);
+ });
+
+ test.each([
+ ["Acme Corp", "acme-corp"],
+ [" Leading/Trailing ", "leading-trailing"],
+ ["Test Org!!", "test-org"],
+ ["A", "a"],
+ ["123", "123"],
+ ["---", "org"],
+ ])("createOrganization derives a valid slug from %j", async (name, expectedSlug) => {
+ const fetchMock = vi.fn().mockResolvedValue(
+ jsonResponse(
+ {
+ id: "org-9",
+ slug: expectedSlug,
+ name,
+ created_at: "2026-01-01T00:00:00Z",
+ updated_at: "2026-01-01T00:00:00Z",
+ },
+ 201,
+ ),
+ );
+ vi.stubGlobal("fetch", fetchMock);
+
+ const org = await createOrganization(name);
+
+ expect(fetchMock).toHaveBeenCalledTimes(1);
+ const [, init] = fetchMock.mock.calls[0];
+ expect(JSON.parse(init.body as string)).toEqual({ name, slug: expectedSlug });
+ expect(org).toEqual({ id: "org-9", name });
+ });
+
+ test("createOrganization truncates a long, punctuation-free name's slug to 64 chars and never ends in a hyphen", async () => {
+ const longName = "a".repeat(80);
+ const fetchMock = vi.fn().mockImplementation(async (_url, init) => {
+ const body = JSON.parse(init.body as string);
+ return jsonResponse(
+ {
+ id: "org-9",
+ slug: body.slug,
+ name: longName,
+ created_at: "2026-01-01T00:00:00Z",
+ updated_at: "2026-01-01T00:00:00Z",
+ },
+ 201,
+ );
+ });
+ vi.stubGlobal("fetch", fetchMock);
+
+ await createOrganization(longName);
+
+ expect(fetchMock).toHaveBeenCalledTimes(1);
+ const [, init] = fetchMock.mock.calls[0];
+ const { slug } = JSON.parse(init.body as string);
+ expect(slug.length).toBeLessThanOrEqual(64);
+ expect(slug.endsWith("-")).toBe(false);
+ });
+
+ test("createOrganization surfaces a 409 slug conflict like any other API error", async () => {
+ const fetchMock = vi.fn().mockResolvedValue(jsonResponse({ detail: "Slug already taken" }, 409));
+ vi.stubGlobal("fetch", fetchMock);
+
+ await expect(createOrganization("Test")).rejects.toMatchObject({
+ status: 409,
+ detail: "Slug already taken",
+ });
+ });
+});
diff --git a/frontend/src/lib/api/organizations.ts b/frontend/src/lib/api/organizations.ts
new file mode 100644
index 0000000..dbc5ab1
--- /dev/null
+++ b/frontend/src/lib/api/organizations.ts
@@ -0,0 +1,134 @@
+/**
+ * Organizations API functions. Mapped onto the backend's actual response
+ * shape (`backend/app/modules/organizations/schemas.py`'s `OrgOut`: snake_case
+ * `created_at`/`updated_at`, plus `slug`), translated into the minimal `Org`
+ * shape the frontend consumes for now.
+ */
+
+import { apiRequest } from "./client";
+import { deriveSlug as deriveSlugShared } from "../slug";
+
+export interface Org {
+ id: string;
+ name: string;
+}
+
+interface OrgResponse {
+ id: string;
+ slug: string;
+ name: string;
+ created_at: string;
+ updated_at: string;
+}
+
+function toOrg(dto: OrgResponse): Org {
+ return { id: dto.id, name: dto.name };
+}
+
+/**
+ * Derives a URL-safe slug from an org name for `createOrganization`'s
+ * request body: the backend's `CreateOrgRequest.slug` is required and must
+ * match `^[a-z0-9][a-z0-9-]*[a-z0-9]$|^[a-z0-9]$` (lowercase letters,
+ * digits, and internal hyphens only, no leading/trailing hyphen).
+ *
+ * Shared with `services.ts` (same backend slug pattern) via `../slug`;
+ * re-exported here so existing imports of `deriveSlug` from this module
+ * keep working.
+ */
+export function deriveSlug(name: string): string {
+ return deriveSlugShared(name, "org");
+}
+
+export async function listOrganizations(): Promise {
+ const dtos = await apiRequest("/organizations");
+ return dtos.map(toOrg);
+}
+
+export async function createOrganization(name: string): Promise {
+ const slug = deriveSlug(name);
+ const dto = await apiRequest("/organizations", {
+ method: "POST",
+ body: JSON.stringify({ name, slug }),
+ });
+ return toOrg(dto);
+}
+
+// ---------------------------------------------------------------------------
+// Membership management. Mapped onto `MembershipOut` in
+// `backend/app/modules/organizations/schemas.py`: a membership row nests the
+// user (`id`/`email`/`full_name`) and carries `role` (`OrgRole`: "owner" |
+// "admin" | "member") and `created_at`.
+// ---------------------------------------------------------------------------
+
+export type MemberRole = "owner" | "admin" | "member";
+
+export interface Member {
+ id: string;
+ userId: string;
+ email: string;
+ fullName: string | null;
+ role: MemberRole;
+ createdAt: string;
+}
+
+interface MembershipResponse {
+ id: string;
+ user: {
+ id: string;
+ email: string;
+ full_name: string | null;
+ };
+ role: MemberRole;
+ created_at: string;
+}
+
+function toMember(dto: MembershipResponse): Member {
+ return {
+ id: dto.id,
+ userId: dto.user.id,
+ email: dto.user.email,
+ fullName: dto.user.full_name,
+ role: dto.role,
+ createdAt: dto.created_at,
+ };
+}
+
+export async function listMembers(orgId: string): Promise {
+ const dtos = await apiRequest(`/organizations/${orgId}/members`);
+ return dtos.map(toMember);
+}
+
+/**
+ * Adds a member by raw user ID. The backend's `AddMemberRequest.role`
+ * defaults to `OrgRole.MEMBER`, so it's intentionally omitted from the
+ * request body here -- there's no role picker in the "add member" form
+ * (per the task spec, it only takes a user ID).
+ */
+export async function addMember(orgId: string, userId: string): Promise {
+ const dto = await apiRequest(`/organizations/${orgId}/members`, {
+ method: "POST",
+ body: JSON.stringify({ user_id: userId }),
+ });
+ return toMember(dto);
+}
+
+export async function updateMemberRole(
+ orgId: string,
+ userId: string,
+ role: MemberRole,
+): Promise {
+ const dto = await apiRequest(
+ `/organizations/${orgId}/members/${userId}`,
+ {
+ method: "PATCH",
+ body: JSON.stringify({ role }),
+ },
+ );
+ return toMember(dto);
+}
+
+export async function removeMember(orgId: string, userId: string): Promise {
+ await apiRequest(`/organizations/${orgId}/members/${userId}`, {
+ method: "DELETE",
+ });
+}
diff --git a/frontend/src/lib/api/services.test.ts b/frontend/src/lib/api/services.test.ts
new file mode 100644
index 0000000..5f94eb9
--- /dev/null
+++ b/frontend/src/lib/api/services.test.ts
@@ -0,0 +1,245 @@
+import { afterEach, beforeEach, describe, expect, test, vi } from "vitest";
+import { setTokenGetter, setUnauthorizedHandler } from "./client";
+import { createService, deleteService, getService, listServices, updateService } from "./services";
+
+function jsonResponse(body: unknown, status = 200) {
+ return new Response(body === undefined ? null : JSON.stringify(body), {
+ status,
+ headers: { "Content-Type": "application/json" },
+ });
+}
+
+describe("services api", () => {
+ beforeEach(() => {
+ setTokenGetter(() => null);
+ setUnauthorizedHandler(() => {});
+ });
+
+ afterEach(() => {
+ vi.unstubAllGlobals();
+ vi.restoreAllMocks();
+ });
+
+ test("listServices passes limit/offset as query params and maps the page envelope", async () => {
+ const fetchMock = vi.fn().mockResolvedValue(
+ jsonResponse({
+ items: [
+ {
+ id: "svc-1",
+ org_id: "org-1",
+ name: "API",
+ slug: "api",
+ description: "The main API",
+ status: "healthy",
+ repository_url: null,
+ created_at: "2026-01-01T00:00:00Z",
+ updated_at: "2026-01-01T00:00:00Z",
+ },
+ ],
+ total: 1,
+ limit: 20,
+ offset: 0,
+ }),
+ );
+ vi.stubGlobal("fetch", fetchMock);
+
+ const page = await listServices("org-1", { limit: 20, offset: 0 });
+
+ expect(fetchMock).toHaveBeenCalledTimes(1);
+ const [url] = fetchMock.mock.calls[0];
+ expect(url).toBe("http://localhost:8000/api/v1/organizations/org-1/services?limit=20&offset=0");
+ expect(page).toEqual({
+ items: [
+ {
+ id: "svc-1",
+ org_id: "org-1",
+ name: "API",
+ slug: "api",
+ description: "The main API",
+ status: "healthy",
+ repository_url: null,
+ created_at: "2026-01-01T00:00:00Z",
+ updated_at: "2026-01-01T00:00:00Z",
+ },
+ ],
+ total: 1,
+ limit: 20,
+ offset: 0,
+ });
+ });
+
+ test("createService derives a slug and omits blank optional fields", async () => {
+ const fetchMock = vi.fn().mockImplementation(async (_url, init) => {
+ const body = JSON.parse(init.body as string);
+ return jsonResponse(
+ {
+ id: "svc-1",
+ org_id: "org-1",
+ name: body.name,
+ slug: body.slug,
+ description: null,
+ status: "unknown",
+ repository_url: null,
+ created_at: "2026-01-01T00:00:00Z",
+ updated_at: "2026-01-01T00:00:00Z",
+ },
+ 201,
+ );
+ });
+ vi.stubGlobal("fetch", fetchMock);
+
+ const service = await createService("org-1", { name: "My Service" });
+
+ const [, init] = fetchMock.mock.calls[0];
+ const body = JSON.parse(init.body as string);
+ expect(body).toEqual({ name: "My Service", slug: "my-service" });
+ expect(service).toEqual({
+ id: "svc-1",
+ org_id: "org-1",
+ name: "My Service",
+ slug: "my-service",
+ description: null,
+ status: "unknown",
+ repository_url: null,
+ created_at: "2026-01-01T00:00:00Z",
+ updated_at: "2026-01-01T00:00:00Z",
+ });
+ });
+
+ test("createService includes description and repository_url when provided", async () => {
+ const fetchMock = vi.fn().mockResolvedValue(
+ jsonResponse(
+ {
+ id: "svc-1",
+ org_id: "org-1",
+ name: "My Service",
+ slug: "my-service",
+ description: "desc",
+ status: "unknown",
+ repository_url: "https://example.com/repo",
+ created_at: "2026-01-01T00:00:00Z",
+ updated_at: "2026-01-01T00:00:00Z",
+ },
+ 201,
+ ),
+ );
+ vi.stubGlobal("fetch", fetchMock);
+
+ await createService("org-1", {
+ name: "My Service",
+ description: "desc",
+ repository_url: "https://example.com/repo",
+ });
+
+ const [, init] = fetchMock.mock.calls[0];
+ expect(JSON.parse(init.body as string)).toEqual({
+ name: "My Service",
+ slug: "my-service",
+ description: "desc",
+ repository_url: "https://example.com/repo",
+ });
+ });
+
+ test("getService fetches a single service and maps the full record", async () => {
+ const fetchMock = vi.fn().mockResolvedValue(
+ jsonResponse({
+ id: "svc-1",
+ org_id: "org-1",
+ name: "API",
+ slug: "api",
+ description: "The main API",
+ status: "healthy",
+ repository_url: "https://example.com/repo",
+ created_at: "2026-01-01T00:00:00Z",
+ updated_at: "2026-01-02T00:00:00Z",
+ }),
+ );
+ vi.stubGlobal("fetch", fetchMock);
+
+ const service = await getService("org-1", "svc-1");
+
+ expect(fetchMock).toHaveBeenCalledTimes(1);
+ const [url] = fetchMock.mock.calls[0];
+ expect(url).toBe("http://localhost:8000/api/v1/organizations/org-1/services/svc-1");
+ expect(service).toEqual({
+ id: "svc-1",
+ org_id: "org-1",
+ name: "API",
+ slug: "api",
+ description: "The main API",
+ status: "healthy",
+ repository_url: "https://example.com/repo",
+ created_at: "2026-01-01T00:00:00Z",
+ updated_at: "2026-01-02T00:00:00Z",
+ });
+ });
+
+ test("getService surfaces a 404 as an ApiError", async () => {
+ const fetchMock = vi.fn().mockResolvedValue(
+ new Response(JSON.stringify({ detail: "Service not found" }), {
+ status: 404,
+ headers: { "Content-Type": "application/json" },
+ }),
+ );
+ vi.stubGlobal("fetch", fetchMock);
+
+ await expect(getService("org-1", "svc-1")).rejects.toMatchObject({
+ status: 404,
+ detail: "Service not found",
+ });
+ });
+
+ test("updateService PATCHes the given fields, including status", async () => {
+ const fetchMock = vi.fn().mockResolvedValue(
+ jsonResponse({
+ id: "svc-1",
+ org_id: "org-1",
+ name: "Renamed",
+ slug: "my-service",
+ description: null,
+ status: "degraded",
+ repository_url: null,
+ created_at: "2026-01-01T00:00:00Z",
+ updated_at: "2026-01-01T00:00:00Z",
+ }),
+ );
+ vi.stubGlobal("fetch", fetchMock);
+
+ const service = await updateService("org-1", "svc-1", { name: "Renamed", status: "degraded" });
+
+ const [url, init] = fetchMock.mock.calls[0];
+ expect(url).toBe("http://localhost:8000/api/v1/organizations/org-1/services/svc-1");
+ expect(init.method).toBe("PATCH");
+ expect(JSON.parse(init.body as string)).toEqual({ name: "Renamed", status: "degraded" });
+ expect(service).toEqual({
+ id: "svc-1",
+ org_id: "org-1",
+ name: "Renamed",
+ slug: "my-service",
+ description: null,
+ status: "degraded",
+ repository_url: null,
+ created_at: "2026-01-01T00:00:00Z",
+ updated_at: "2026-01-01T00:00:00Z",
+ });
+ });
+
+ test("deleteService sends a DELETE and surfaces a 404 as an ApiError", async () => {
+ const fetchMock = vi.fn().mockResolvedValue(
+ new Response(JSON.stringify({ detail: "Service not found" }), {
+ status: 404,
+ headers: { "Content-Type": "application/json" },
+ }),
+ );
+ vi.stubGlobal("fetch", fetchMock);
+
+ await expect(deleteService("org-1", "svc-1")).rejects.toMatchObject({
+ status: 404,
+ detail: "Service not found",
+ });
+
+ const [url, init] = fetchMock.mock.calls[0];
+ expect(url).toBe("http://localhost:8000/api/v1/organizations/org-1/services/svc-1");
+ expect(init.method).toBe("DELETE");
+ });
+});
diff --git a/frontend/src/lib/api/services.ts b/frontend/src/lib/api/services.ts
new file mode 100644
index 0000000..1692f9d
--- /dev/null
+++ b/frontend/src/lib/api/services.ts
@@ -0,0 +1,139 @@
+/**
+ * Services API functions. Mapped onto the backend's actual response shape
+ * (`backend/app/modules/services/schemas.py`'s `ServiceOut`: snake_case
+ * `created_at`/`updated_at`/`repository_url`, plus `slug`/`status`/`org_id`)
+ * and its paginated list envelope (`app/core/pagination.py`'s `Page`),
+ * translated into the minimal shapes the frontend consumes for now.
+ */
+
+import { apiRequest } from "./client";
+import { deriveSlug } from "../slug";
+
+export type ServiceStatus = "unknown" | "healthy" | "degraded" | "down";
+
+// Widened to the full backend record (see `ServiceOut` in
+// `backend/app/modules/services/schemas.py`) rather than keeping a separate,
+// richer type just for `getService`. `listServices`/`createService`/
+// `updateService` already receive all of these fields from the backend on
+// every response; they just used to throw most of them away. Carrying them
+// through means list rows now have real `repository_url`/`status` values
+// too, which lets `ServicesListPage`'s edit dialog pre-populate those fields
+// correctly instead of always seeding them blank/"unknown".
+export interface Service {
+ id: string;
+ org_id: string;
+ name: string;
+ slug: string;
+ description: string | null;
+ status: ServiceStatus;
+ repository_url: string | null;
+ created_at: string;
+ updated_at: string;
+}
+
+export interface Page {
+ items: T[];
+ total: number;
+ limit: number;
+ offset: number;
+}
+
+interface ServiceResponse {
+ id: string;
+ org_id: string;
+ name: string;
+ slug: string;
+ description: string | null;
+ status: ServiceStatus;
+ repository_url: string | null;
+ created_at: string;
+ updated_at: string;
+}
+
+function toService(dto: ServiceResponse): Service {
+ return {
+ id: dto.id,
+ org_id: dto.org_id,
+ name: dto.name,
+ slug: dto.slug,
+ description: dto.description,
+ status: dto.status,
+ repository_url: dto.repository_url,
+ created_at: dto.created_at,
+ updated_at: dto.updated_at,
+ };
+}
+
+export async function listServices(
+ orgId: string,
+ page: { limit: number; offset: number },
+): Promise> {
+ const query = new URLSearchParams({
+ limit: String(page.limit),
+ offset: String(page.offset),
+ });
+ const dto = await apiRequest>(
+ `/organizations/${orgId}/services?${query.toString()}`,
+ );
+ return {
+ items: dto.items.map(toService),
+ total: dto.total,
+ limit: dto.limit,
+ offset: dto.offset,
+ };
+}
+
+export async function createService(
+ orgId: string,
+ data: { name: string; description?: string; repository_url?: string },
+): Promise {
+ // `CreateServiceRequest.slug` is required by the backend but isn't part
+ // of this task's public interface; derive it from the name the same way
+ // `createOrganization` does (same slug pattern on the backend).
+ const slug = deriveSlug(data.name, "service");
+ const body: Record = { name: data.name, slug };
+ if (data.description) {
+ body.description = data.description;
+ }
+ if (data.repository_url) {
+ body.repository_url = data.repository_url;
+ }
+ const dto = await apiRequest(`/organizations/${orgId}/services`, {
+ method: "POST",
+ body: JSON.stringify(body),
+ });
+ return toService(dto);
+}
+
+export async function updateService(
+ orgId: string,
+ serviceId: string,
+ data: Partial<{
+ name: string;
+ description: string;
+ status: ServiceStatus;
+ repository_url: string;
+ }>,
+): Promise {
+ const dto = await apiRequest(
+ `/organizations/${orgId}/services/${serviceId}`,
+ {
+ method: "PATCH",
+ body: JSON.stringify(data),
+ },
+ );
+ return toService(dto);
+}
+
+export async function deleteService(orgId: string, serviceId: string): Promise {
+ await apiRequest(`/organizations/${orgId}/services/${serviceId}`, {
+ method: "DELETE",
+ });
+}
+
+export async function getService(orgId: string, serviceId: string): Promise {
+ const dto = await apiRequest(
+ `/organizations/${orgId}/services/${serviceId}`,
+ );
+ return toService(dto);
+}
diff --git a/frontend/src/lib/auth-context.test.tsx b/frontend/src/lib/auth-context.test.tsx
new file mode 100644
index 0000000..17aa594
--- /dev/null
+++ b/frontend/src/lib/auth-context.test.tsx
@@ -0,0 +1,91 @@
+import { act, render, screen, waitFor } from "@testing-library/react";
+import { beforeEach, describe, expect, test, vi } from "vitest";
+import { AuthProvider, useAuth } from "./auth-context";
+
+const REFRESH_TOKEN_KEY = "devpulse_refresh_token";
+
+vi.mock("./api/auth", () => ({
+ login: vi.fn(),
+ register: vi.fn(),
+ logout: vi.fn(),
+ refreshAccessToken: vi.fn(),
+ getCurrentUser: vi.fn(),
+}));
+
+import { getCurrentUser, logout as apiLogout, refreshAccessToken } from "./api/auth";
+
+function Probe() {
+ const { user, isLoading, logout } = useAuth();
+ return (
+
+ {String(isLoading)}
+ {user ? user.email : "none"}
+ void logout()}>logout
+
+ );
+}
+
+describe("AuthProvider", () => {
+ beforeEach(() => {
+ localStorage.clear();
+ vi.clearAllMocks();
+ });
+
+ test("restores a session on mount when a refresh token is in localStorage", async () => {
+ localStorage.setItem(REFRESH_TOKEN_KEY, "stored-refresh-token");
+ vi.mocked(refreshAccessToken).mockResolvedValue({
+ accessToken: "new-access-token",
+ refreshToken: "rotated-refresh-token",
+ });
+ vi.mocked(getCurrentUser).mockResolvedValue({ id: "1", email: "user@example.com" });
+
+ render(
+
+
+ ,
+ );
+
+ await waitFor(() => expect(screen.getByTestId("loading").textContent).toBe("false"));
+ expect(screen.getByTestId("user").textContent).toBe("user@example.com");
+ expect(refreshAccessToken).toHaveBeenCalledTimes(1);
+ expect(getCurrentUser).toHaveBeenCalledTimes(1);
+ });
+
+ test("clears tokens and sets user to null on logout", async () => {
+ localStorage.setItem(REFRESH_TOKEN_KEY, "stored-refresh-token");
+ vi.mocked(refreshAccessToken).mockResolvedValue({
+ accessToken: "new-access-token",
+ refreshToken: "rotated-refresh-token",
+ });
+ vi.mocked(getCurrentUser).mockResolvedValue({ id: "1", email: "user@example.com" });
+ vi.mocked(apiLogout).mockResolvedValue(undefined);
+
+ render(
+
+
+ ,
+ );
+
+ await waitFor(() => expect(screen.getByTestId("user").textContent).toBe("user@example.com"));
+
+ await act(async () => {
+ screen.getByText("logout").click();
+ });
+
+ expect(screen.getByTestId("user").textContent).toBe("none");
+ expect(localStorage.getItem(REFRESH_TOKEN_KEY)).toBeNull();
+ expect(apiLogout).toHaveBeenCalledTimes(1);
+ });
+
+ test("has no user and isLoading false when no refresh token is stored", async () => {
+ render(
+
+
+ ,
+ );
+
+ await waitFor(() => expect(screen.getByTestId("loading").textContent).toBe("false"));
+ expect(screen.getByTestId("user").textContent).toBe("none");
+ expect(refreshAccessToken).not.toHaveBeenCalled();
+ });
+});
diff --git a/frontend/src/lib/auth-context.tsx b/frontend/src/lib/auth-context.tsx
new file mode 100644
index 0000000..64e2517
--- /dev/null
+++ b/frontend/src/lib/auth-context.tsx
@@ -0,0 +1,119 @@
+import { createContext, useContext, useEffect, useRef, useState, type ReactNode } from "react";
+import { setOnTokenRefresh, setTokenGetter, setUnauthorizedHandler } from "./api/client";
+import {
+ getCurrentUser,
+ login as apiLogin,
+ logout as apiLogout,
+ register as apiRegister,
+ refreshAccessToken,
+ type User,
+} from "./api/auth";
+
+const REFRESH_TOKEN_KEY = "devpulse_refresh_token";
+
+interface AuthContextValue {
+ user: User | null;
+ accessToken: string | null;
+ login: (email: string, password: string) => Promise;
+ register: (email: string, password: string) => Promise;
+ logout: () => Promise;
+ isLoading: boolean;
+}
+
+const AuthContext = createContext(undefined);
+
+export function AuthProvider({ children }: { children: ReactNode }) {
+ const [user, setUser] = useState(null);
+ const [accessToken, setAccessToken] = useState(null);
+ const [isLoading, setIsLoading] = useState(true);
+
+ // `apiRequest`'s token getter/refresh hooks are read and updated outside
+ // React's render cycle, so a ref -- not the state value -- is what client.ts
+ // actually reads/writes synchronously.
+ const accessTokenRef = useRef(null);
+
+ function applyAccessToken(token: string | null) {
+ accessTokenRef.current = token;
+ setAccessToken(token);
+ }
+
+ useEffect(() => {
+ setTokenGetter(() => accessTokenRef.current);
+ setOnTokenRefresh((token) => applyAccessToken(token));
+ setUnauthorizedHandler(() => {
+ localStorage.removeItem(REFRESH_TOKEN_KEY);
+ applyAccessToken(null);
+ setUser(null);
+ if (typeof window !== "undefined") {
+ window.location.href = "/login";
+ }
+ });
+ // eslint-disable-next-line react-hooks/exhaustive-deps
+ }, []);
+
+ useEffect(() => {
+ async function restoreSession() {
+ const storedRefreshToken = localStorage.getItem(REFRESH_TOKEN_KEY);
+ if (!storedRefreshToken) {
+ setIsLoading(false);
+ return;
+ }
+
+ try {
+ const pair = await refreshAccessToken();
+ applyAccessToken(pair.accessToken);
+ const currentUser = await getCurrentUser();
+ setUser(currentUser);
+ } catch {
+ localStorage.removeItem(REFRESH_TOKEN_KEY);
+ applyAccessToken(null);
+ setUser(null);
+ } finally {
+ setIsLoading(false);
+ }
+ }
+
+ void restoreSession();
+ // eslint-disable-next-line react-hooks/exhaustive-deps
+ }, []);
+
+ async function login(email: string, password: string) {
+ const pair = await apiLogin(email, password);
+ applyAccessToken(pair.accessToken);
+ localStorage.setItem(REFRESH_TOKEN_KEY, pair.refreshToken);
+ const currentUser = await getCurrentUser();
+ setUser(currentUser);
+ }
+
+ async function register(email: string, password: string) {
+ const pair = await apiRegister(email, password);
+ applyAccessToken(pair.accessToken);
+ localStorage.setItem(REFRESH_TOKEN_KEY, pair.refreshToken);
+ const currentUser = await getCurrentUser();
+ setUser(currentUser);
+ }
+
+ async function logout() {
+ try {
+ await apiLogout();
+ } finally {
+ localStorage.removeItem(REFRESH_TOKEN_KEY);
+ applyAccessToken(null);
+ setUser(null);
+ }
+ }
+
+ return (
+
+ {children}
+
+ );
+}
+
+export function useAuth(): AuthContextValue {
+ const ctx = useContext(AuthContext);
+ if (!ctx) {
+ throw new Error("useAuth must be used within an AuthProvider");
+ }
+ return ctx;
+}
diff --git a/frontend/src/lib/org-context.test.tsx b/frontend/src/lib/org-context.test.tsx
new file mode 100644
index 0000000..2fe8fb6
--- /dev/null
+++ b/frontend/src/lib/org-context.test.tsx
@@ -0,0 +1,226 @@
+import { act, render, screen, waitFor } from "@testing-library/react";
+import { beforeEach, describe, expect, test, vi } from "vitest";
+import { ApiError } from "./api/client";
+import { OrgProvider, useOrg } from "./org-context";
+
+const SELECTED_ORG_ID_KEY = "devpulse_selected_org_id";
+
+vi.mock("./auth-context", () => ({
+ useAuth: () => ({ user: { id: "u1", email: "user@example.com" } }),
+}));
+
+vi.mock("./api/organizations", () => ({
+ listOrganizations: vi.fn(),
+ createOrganization: vi.fn(),
+}));
+
+import { createOrganization, listOrganizations } from "./api/organizations";
+
+function Probe() {
+ const { orgs, selectedOrgId, selectOrg, createOrg, isLoading, error, retry } = useOrg();
+ return (
+
+
{String(isLoading)}
+
{selectedOrgId ?? "none"}
+
{error ?? "none"}
+
+ {orgs.map((o) => (
+ {o.name}
+ ))}
+
+
selectOrg("org-2")}>select org-2
+
void createOrg("New Org")}>create
+
retry
+
+ );
+}
+
+describe("OrgProvider", () => {
+ beforeEach(() => {
+ vi.clearAllMocks();
+ localStorage.clear();
+ });
+
+ test("selectedOrgId is null when the org list is empty", async () => {
+ vi.mocked(listOrganizations).mockResolvedValue([]);
+
+ render(
+
+
+ ,
+ );
+
+ await waitFor(() => expect(screen.getByTestId("loading").textContent).toBe("false"));
+ expect(screen.getByTestId("selected").textContent).toBe("none");
+ });
+
+ test("selectedOrgId defaults to the first org when orgs load", async () => {
+ vi.mocked(listOrganizations).mockResolvedValue([
+ { id: "org-1", name: "First" },
+ { id: "org-2", name: "Second" },
+ ]);
+
+ render(
+
+
+ ,
+ );
+
+ await waitFor(() => expect(screen.getByTestId("selected").textContent).toBe("org-1"));
+ });
+
+ test("createOrg adds the new org and selects it", async () => {
+ vi.mocked(listOrganizations).mockResolvedValue([{ id: "org-1", name: "First" }]);
+ vi.mocked(createOrganization).mockResolvedValue({ id: "org-3", name: "New Org" });
+
+ render(
+
+
+ ,
+ );
+
+ await waitFor(() => expect(screen.getByTestId("selected").textContent).toBe("org-1"));
+
+ await act(async () => {
+ screen.getByText("create").click();
+ });
+
+ expect(createOrganization).toHaveBeenCalledWith("New Org");
+ expect(screen.getByTestId("selected").textContent).toBe("org-3");
+ expect(screen.getByText("New Org")).toBeTruthy();
+ });
+
+ test("selectOrg updates the selected id", async () => {
+ vi.mocked(listOrganizations).mockResolvedValue([
+ { id: "org-1", name: "First" },
+ { id: "org-2", name: "Second" },
+ ]);
+
+ render(
+
+
+ ,
+ );
+
+ await waitFor(() => expect(screen.getByTestId("selected").textContent).toBe("org-1"));
+
+ await act(async () => {
+ screen.getByText("select org-2").click();
+ });
+
+ expect(screen.getByTestId("selected").textContent).toBe("org-2");
+ });
+
+ test("does not load orgs when there is no authenticated user", async () => {
+ const authModule = await import("./auth-context");
+ const useAuthSpy = vi.spyOn(authModule, "useAuth").mockReturnValue({ user: null } as never);
+
+ render(
+
+
+ ,
+ );
+
+ await waitFor(() => expect(screen.getByTestId("loading").textContent).toBe("false"));
+ expect(listOrganizations).not.toHaveBeenCalled();
+ expect(screen.getByTestId("selected").textContent).toBe("none");
+
+ // This spy overrides the module-level `useAuth` mock above for every
+ // subsequent test in this file unless restored -- every later test in
+ // this suite expects an authenticated user.
+ useAuthSpy.mockRestore();
+ });
+
+ test("sets an error (not an empty org list) when loading organizations fails", async () => {
+ vi.mocked(listOrganizations).mockRejectedValue(new ApiError(500, "Internal server error"));
+
+ render(
+
+
+ ,
+ );
+
+ await waitFor(() => expect(screen.getByTestId("loading").textContent).toBe("false"));
+ expect(screen.getByTestId("error").textContent).toBe("Internal server error");
+ // Not "zero orgs": a real failure must not look like the empty-org
+ // first-run state to the caller (`AppLayout` tells them apart via
+ // `error`).
+ expect(screen.getByTestId("selected").textContent).toBe("none");
+ });
+
+ test("retry re-attempts the load and clears the error on success", async () => {
+ vi.mocked(listOrganizations)
+ .mockRejectedValueOnce(new ApiError(500, "Internal server error"))
+ .mockResolvedValueOnce([{ id: "org-1", name: "First" }]);
+
+ render(
+
+
+ ,
+ );
+
+ await waitFor(() => expect(screen.getByTestId("error").textContent).not.toBe("none"));
+
+ await act(async () => {
+ screen.getByText("retry").click();
+ });
+
+ await waitFor(() => expect(screen.getByTestId("selected").textContent).toBe("org-1"));
+ expect(screen.getByTestId("error").textContent).toBe("none");
+ expect(listOrganizations).toHaveBeenCalledTimes(2);
+ });
+
+ test("persists the selected org to localStorage and restores it instead of defaulting to orgs[0]", async () => {
+ localStorage.setItem(SELECTED_ORG_ID_KEY, "org-2");
+ vi.mocked(listOrganizations).mockResolvedValue([
+ { id: "org-1", name: "First" },
+ { id: "org-2", name: "Second" },
+ ]);
+
+ render(
+
+
+ ,
+ );
+
+ await waitFor(() => expect(screen.getByTestId("selected").textContent).toBe("org-2"));
+ });
+
+ test("falls back to orgs[0] when the persisted org id is no longer in the list", async () => {
+ localStorage.setItem(SELECTED_ORG_ID_KEY, "org-gone");
+ vi.mocked(listOrganizations).mockResolvedValue([
+ { id: "org-1", name: "First" },
+ { id: "org-2", name: "Second" },
+ ]);
+
+ render(
+
+
+ ,
+ );
+
+ await waitFor(() => expect(screen.getByTestId("selected").textContent).toBe("org-1"));
+ expect(localStorage.getItem(SELECTED_ORG_ID_KEY)).toBe("org-1");
+ });
+
+ test("selectOrg persists the new selection to localStorage", async () => {
+ vi.mocked(listOrganizations).mockResolvedValue([
+ { id: "org-1", name: "First" },
+ { id: "org-2", name: "Second" },
+ ]);
+
+ render(
+
+
+ ,
+ );
+
+ await waitFor(() => expect(screen.getByTestId("selected").textContent).toBe("org-1"));
+
+ await act(async () => {
+ screen.getByText("select org-2").click();
+ });
+
+ expect(localStorage.getItem(SELECTED_ORG_ID_KEY)).toBe("org-2");
+ });
+});
diff --git a/frontend/src/lib/org-context.tsx b/frontend/src/lib/org-context.tsx
new file mode 100644
index 0000000..edcc231
--- /dev/null
+++ b/frontend/src/lib/org-context.tsx
@@ -0,0 +1,134 @@
+import { createContext, useContext, useEffect, useState, type ReactNode } from "react";
+import { useAuth } from "./auth-context";
+import { ApiError } from "./api/client";
+import { createOrganization, listOrganizations, type Org } from "./api/organizations";
+
+const SELECTED_ORG_ID_KEY = "devpulse_selected_org_id";
+
+interface OrgContextValue {
+ orgs: Org[];
+ selectedOrgId: string | null;
+ selectOrg: (id: string) => void;
+ createOrg: (name: string) => Promise;
+ isLoading: boolean;
+ error: string | null;
+ retry: () => void;
+}
+
+const OrgContext = createContext(undefined);
+
+function readStoredOrgId(): string | null {
+ try {
+ return localStorage.getItem(SELECTED_ORG_ID_KEY);
+ } catch {
+ return null;
+ }
+}
+
+function writeStoredOrgId(id: string | null): void {
+ try {
+ if (id) {
+ localStorage.setItem(SELECTED_ORG_ID_KEY, id);
+ } else {
+ localStorage.removeItem(SELECTED_ORG_ID_KEY);
+ }
+ } catch {
+ // localStorage can throw (private browsing, storage disabled, etc.);
+ // persistence is a convenience, not a correctness requirement, so a
+ // failed write is silently ignored rather than crashing org selection.
+ }
+}
+
+export function OrgProvider({ children }: { children: ReactNode }) {
+ const { user } = useAuth();
+ const [orgs, setOrgs] = useState([]);
+ const [selectedOrgId, setSelectedOrgId] = useState(null);
+ const [isLoading, setIsLoading] = useState(true);
+ const [error, setError] = useState(null);
+ const [retryCount, setRetryCount] = useState(0);
+
+ // Orgs are scoped to the authenticated user, so there's nothing to load
+ // (and no point making an authenticated request) until `useAuth()` has a
+ // user -- e.g. on the public /login and /register routes.
+ useEffect(() => {
+ if (!user) {
+ setOrgs([]);
+ setSelectedOrgId(null);
+ setIsLoading(false);
+ setError(null);
+ return;
+ }
+
+ let active = true;
+ setIsLoading(true);
+ setError(null);
+
+ async function load() {
+ try {
+ const loaded = await listOrganizations();
+ if (!active) return;
+ setOrgs(loaded);
+ // Restore the persisted selection if it's still in the loaded
+ // list (e.g. reloading `/incidents/:id` for a non-first org
+ // shouldn't silently fall back and break); otherwise fall back to
+ // the first org, same as before persistence existed.
+ const storedId = readStoredOrgId();
+ const restored = storedId && loaded.some((org) => org.id === storedId) ? storedId : null;
+ const nextSelectedId = restored ?? (loaded.length > 0 ? loaded[0].id : null);
+ setSelectedOrgId(nextSelectedId);
+ writeStoredOrgId(nextSelectedId);
+ } catch (err) {
+ if (!active) return;
+ setError(
+ err instanceof ApiError ? err.detail : "Something went wrong. Please try again.",
+ );
+ } finally {
+ if (active) setIsLoading(false);
+ }
+ }
+
+ void load();
+ return () => {
+ active = false;
+ };
+ // Depend on the user's id rather than the `user` object reference: a
+ // caller (e.g. AuthProvider after a token refresh) may hand back a new
+ // object with the same fields, and re-keying off that identity would
+ // re-fetch orgs on every such render instead of only on an actual
+ // sign-in/sign-out. `retryCount` is included so the error view's
+ // Retry button can re-trigger this effect.
+ // eslint-disable-next-line react-hooks/exhaustive-deps
+ }, [user?.id, retryCount]);
+
+ function selectOrg(id: string) {
+ setSelectedOrgId(id);
+ writeStoredOrgId(id);
+ }
+
+ function retry() {
+ setRetryCount((prev) => prev + 1);
+ }
+
+ async function createOrg(name: string) {
+ const org = await createOrganization(name);
+ setOrgs((prev) => [...prev, org]);
+ setSelectedOrgId(org.id);
+ writeStoredOrgId(org.id);
+ }
+
+ return (
+
+ {children}
+
+ );
+}
+
+export function useOrg(): OrgContextValue {
+ const ctx = useContext(OrgContext);
+ if (!ctx) {
+ throw new Error("useOrg must be used within an OrgProvider");
+ }
+ return ctx;
+}
diff --git a/frontend/src/lib/slug.ts b/frontend/src/lib/slug.ts
new file mode 100644
index 0000000..813e44a
--- /dev/null
+++ b/frontend/src/lib/slug.ts
@@ -0,0 +1,28 @@
+/**
+ * Shared slug derivation used by any resource whose create request requires
+ * a URL-safe `slug` alongside a human-entered `name` (orgs, services, ...).
+ * The backend's slug pattern is the same everywhere it appears:
+ * `^[a-z0-9][a-z0-9-]*[a-z0-9]$|^[a-z0-9]$` (lowercase letters, digits, and
+ * internal hyphens only, no leading/trailing hyphen), max 64 chars.
+ */
+export function deriveSlug(name: string, fallback = "resource"): string {
+ const slug = name
+ .trim()
+ .toLowerCase()
+ .replace(/[^a-z0-9]+/g, "-")
+ .replace(/^-+/, "")
+ .replace(/-+$/, "")
+ // A long, punctuation-free name (the backend allows names up to 120
+ // chars) would otherwise produce a slug the backend rejects with a 422
+ // for exceeding max_length=64. Truncating can expose a trailing hyphen
+ // (e.g. "...word-rest" cut mid-word is fine, but a cut right at a
+ // hyphen boundary isn't), so strip trailing hyphens again afterward.
+ .slice(0, 64)
+ .replace(/-+$/, "");
+ // A name made entirely of punctuation/non-ASCII (e.g. "---" or "日本語")
+ // strips down to nothing, which the backend's pattern rejects. Fall back
+ // to a fixed, always-valid slug rather than sending an empty string; a
+ // collision with an existing slug surfaces as the same 409 any other
+ // slug collision does.
+ return slug.length > 0 ? slug : fallback;
+}
diff --git a/frontend/src/main.tsx b/frontend/src/main.tsx
new file mode 100644
index 0000000..bef5202
--- /dev/null
+++ b/frontend/src/main.tsx
@@ -0,0 +1,10 @@
+import { StrictMode } from 'react'
+import { createRoot } from 'react-dom/client'
+import './index.css'
+import App from './App.tsx'
+
+createRoot(document.getElementById('root')!).render(
+
+
+ ,
+)
diff --git a/frontend/src/pages/DashboardPage.test.tsx b/frontend/src/pages/DashboardPage.test.tsx
new file mode 100644
index 0000000..1b0ee32
--- /dev/null
+++ b/frontend/src/pages/DashboardPage.test.tsx
@@ -0,0 +1,243 @@
+import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
+import { render, screen } from "@testing-library/react";
+import { MemoryRouter } from "react-router-dom";
+import { beforeEach, describe, expect, test, vi } from "vitest";
+import type { AlertEvent } from "../lib/api/alerts";
+import type { Service } from "../lib/api/services";
+import { DashboardPage } from "./DashboardPage";
+
+vi.mock("../lib/org-context", () => ({
+ useOrg: vi.fn(),
+}));
+vi.mock("../lib/api/services", () => ({
+ listServices: vi.fn(),
+}));
+vi.mock("../lib/api/incidents", () => ({
+ listIncidents: vi.fn(),
+}));
+vi.mock("../lib/api/alerts", () => ({
+ listAlertEvents: vi.fn(),
+}));
+
+import { listAlertEvents } from "../lib/api/alerts";
+import { listIncidents } from "../lib/api/incidents";
+import { listServices } from "../lib/api/services";
+import { useOrg } from "../lib/org-context";
+
+function renderPage() {
+ const queryClient = new QueryClient({
+ defaultOptions: { queries: { retry: false }, mutations: { retry: false } },
+ });
+ return render(
+
+
+
+
+ ,
+ );
+}
+
+function mockOrg(selectedOrgId: string | null) {
+ vi.mocked(useOrg).mockReturnValue({
+ orgs: selectedOrgId ? [{ id: selectedOrgId, name: "Acme" }] : [],
+ selectedOrgId,
+ selectOrg: vi.fn(),
+ createOrg: vi.fn(),
+ error: null,
+ retry: vi.fn(),
+ isLoading: false,
+ });
+}
+
+function makeService(overrides: { id: string } & Partial): Service {
+ return {
+ org_id: "org-1",
+ name: overrides.id,
+ slug: overrides.id,
+ description: null,
+ status: "unknown",
+ repository_url: null,
+ created_at: "2026-01-01T00:00:00Z",
+ updated_at: "2026-01-01T00:00:00Z",
+ ...overrides,
+ };
+}
+
+function makeEvent(overrides: { id: string } & Partial): AlertEvent {
+ return {
+ org_id: "org-1",
+ service_id: "svc-1",
+ rule_id: null,
+ severity: "info",
+ title: `Event ${overrides.id}`,
+ message: null,
+ alert_status: "open",
+ acknowledged_at: null,
+ resolved_at: null,
+ created_at: "2026-01-01T00:00:00Z",
+ updated_at: "2026-01-01T00:00:00Z",
+ ...overrides,
+ };
+}
+
+describe("DashboardPage", () => {
+ beforeEach(() => {
+ vi.clearAllMocks();
+ });
+
+ test("renders the service count and open incident count from the API", async () => {
+ mockOrg("org-1");
+ vi.mocked(listServices).mockResolvedValue({
+ items: [makeService({ id: "svc-1" })],
+ total: 7,
+ limit: 100,
+ offset: 0,
+ });
+ vi.mocked(listIncidents).mockResolvedValue({
+ items: [],
+ total: 3,
+ limit: 1,
+ offset: 0,
+ });
+ vi.mocked(listAlertEvents).mockResolvedValue({
+ items: [],
+ total: 0,
+ limit: 20,
+ offset: 0,
+ });
+
+ renderPage();
+
+ expect(await screen.findByText("7")).toBeTruthy();
+ // All 4 non-resolved statuses resolve to total: 3 each, so the summed
+ // open incident count is 12, not the literal `status: "open"` total.
+ expect(screen.getByText("12")).toBeTruthy();
+ for (const status of ["open", "investigating", "identified", "monitoring"]) {
+ expect(listIncidents).toHaveBeenCalledWith(
+ "org-1",
+ { status },
+ { limit: 1, offset: 0 },
+ );
+ }
+ expect(listIncidents).not.toHaveBeenCalledWith(
+ "org-1",
+ { status: "resolved" },
+ { limit: 1, offset: 0 },
+ );
+ });
+
+ test("sums open incident count across non-resolved statuses, not just literal 'open'", async () => {
+ mockOrg("org-1");
+ vi.mocked(listServices).mockResolvedValue({
+ items: [],
+ total: 0,
+ limit: 100,
+ offset: 0,
+ });
+ vi.mocked(listIncidents).mockImplementation((_orgId, filters) => {
+ const totals: Record = {
+ open: 0,
+ investigating: 5,
+ identified: 0,
+ monitoring: 2,
+ };
+ return Promise.resolve({
+ items: [],
+ total: totals[filters.status as string] ?? 0,
+ limit: 1,
+ offset: 0,
+ });
+ });
+ vi.mocked(listAlertEvents).mockResolvedValue({
+ items: [],
+ total: 0,
+ limit: 20,
+ offset: 0,
+ });
+
+ renderPage();
+
+ // Incidents split across investigating (5) + monitoring (2) should both
+ // count toward the dashboard's open incident number, even though none
+ // are literally `status: "open"`.
+ expect(await screen.findByText("7")).toBeTruthy();
+ });
+
+ test("merges and sorts alert events from multiple services by timestamp, newest first", async () => {
+ mockOrg("org-1");
+ vi.mocked(listServices).mockResolvedValue({
+ items: [makeService({ id: "svc-1" }), makeService({ id: "svc-2" })],
+ total: 2,
+ limit: 100,
+ offset: 0,
+ });
+ vi.mocked(listIncidents).mockResolvedValue({ items: [], total: 0, limit: 1, offset: 0 });
+
+ vi.mocked(listAlertEvents).mockImplementation((_orgId, serviceId) => {
+ if (serviceId === "svc-1") {
+ return Promise.resolve({
+ items: [
+ makeEvent({ id: "a-old", service_id: "svc-1", created_at: "2026-01-01T00:00:00Z" }),
+ makeEvent({ id: "a-new", service_id: "svc-1", created_at: "2026-01-03T00:00:00Z" }),
+ ],
+ total: 2,
+ limit: 20,
+ offset: 0,
+ });
+ }
+ return Promise.resolve({
+ items: [
+ makeEvent({ id: "b-mid", service_id: "svc-2", created_at: "2026-01-02T00:00:00Z" }),
+ ],
+ total: 1,
+ limit: 20,
+ offset: 0,
+ });
+ });
+
+ renderPage();
+
+ const items = await screen.findAllByTestId("recent-alert-event");
+ expect(items.map((item) => item.textContent)).toEqual([
+ expect.stringContaining("Event a-new"),
+ expect.stringContaining("Event b-mid"),
+ expect.stringContaining("Event a-old"),
+ ]);
+ });
+
+ test("shows a Create organization prompt instead of fetching anything when there is no selected org", () => {
+ mockOrg(null);
+
+ renderPage();
+
+ expect(screen.getByText(/create organization/i)).toBeTruthy();
+ expect(listServices).not.toHaveBeenCalled();
+ expect(listIncidents).not.toHaveBeenCalled();
+ expect(listAlertEvents).not.toHaveBeenCalled();
+ });
+
+ test("counts unresolved alert events across services, excluding resolved ones", async () => {
+ mockOrg("org-1");
+ vi.mocked(listServices).mockResolvedValue({
+ items: [makeService({ id: "svc-1" })],
+ total: 1,
+ limit: 100,
+ offset: 0,
+ });
+ vi.mocked(listIncidents).mockResolvedValue({ items: [], total: 0, limit: 1, offset: 0 });
+ vi.mocked(listAlertEvents).mockResolvedValue({
+ items: [
+ makeEvent({ id: "e1", alert_status: "open" }),
+ makeEvent({ id: "e2", alert_status: "acknowledged" }),
+ makeEvent({ id: "e3", alert_status: "resolved" }),
+ ],
+ total: 3,
+ limit: 20,
+ offset: 0,
+ });
+
+ renderPage();
+
+ expect((await screen.findByTestId("unresolved-alert-count")).textContent).toBe("2");
+ });
+});
diff --git a/frontend/src/pages/DashboardPage.tsx b/frontend/src/pages/DashboardPage.tsx
new file mode 100644
index 0000000..7ce926a
--- /dev/null
+++ b/frontend/src/pages/DashboardPage.tsx
@@ -0,0 +1,159 @@
+import { useQuery } from "@tanstack/react-query";
+import { listAlertEvents, type AlertEvent } from "../lib/api/alerts";
+import { listIncidents, type IncidentStatus } from "../lib/api/incidents";
+import { listServices } from "../lib/api/services";
+import { useOrg } from "../lib/org-context";
+
+// There's no org-wide "list all services" call without pagination, so this
+// caps how many services the dashboard fans alert-event requests out to.
+// Orgs with more services than this undercount recent/unresolved alert
+// events; acceptable for a summary page, not for anything that needs to be
+// exact.
+const SERVICE_FAN_OUT_LIMIT = 100;
+
+// How many of each service's most recent alert events to pull before
+// merging. This is a page, not the service's full history, so the merged
+// unresolved count is an approximation bounded by this page size per
+// service -- same tradeoff as the service fan-out above.
+const EVENTS_PER_SERVICE_LIMIT = 20;
+
+const RECENT_EVENTS_LIMIT = 10;
+
+// `IncidentFilters.status` only accepts a single status per call, and the
+// backend doesn't offer an "exclude resolved" shape -- so the open/active
+// incident count is the sum of one call per non-resolved status. "Open" on
+// the dashboard means "not yet resolved", not literally `status: "open"`:
+// investigating/identified/monitoring incidents are still outstanding work.
+const NON_RESOLVED_INCIDENT_STATUSES: IncidentStatus[] = [
+ "open",
+ "investigating",
+ "identified",
+ "monitoring",
+];
+
+interface DashboardSummary {
+ serviceCount: number;
+ openIncidentCount: number;
+ unresolvedAlertCount: number;
+ recentEvents: AlertEvent[];
+}
+
+async function loadDashboardSummary(orgId: string): Promise {
+ const [servicesPage, openIncidentPages] = await Promise.all([
+ listServices(orgId, { limit: SERVICE_FAN_OUT_LIMIT, offset: 0 }),
+ Promise.all(
+ NON_RESOLVED_INCIDENT_STATUSES.map((status) =>
+ listIncidents(orgId, { status }, { limit: 1, offset: 0 }),
+ ),
+ ),
+ ]);
+ const openIncidentCount = openIncidentPages.reduce((sum, page) => sum + page.total, 0);
+
+ const eventPages = await Promise.all(
+ servicesPage.items.map((service) =>
+ listAlertEvents(orgId, service.id, { limit: EVENTS_PER_SERVICE_LIMIT, offset: 0 }),
+ ),
+ );
+ const allEvents = eventPages.flatMap((page) => page.items);
+ const unresolvedAlertCount = allEvents.filter(
+ (event) => event.alert_status !== "resolved",
+ ).length;
+ const recentEvents = [...allEvents]
+ .sort((a, b) => Date.parse(b.created_at) - Date.parse(a.created_at))
+ .slice(0, RECENT_EVENTS_LIMIT);
+
+ return {
+ serviceCount: servicesPage.total,
+ openIncidentCount,
+ unresolvedAlertCount,
+ recentEvents,
+ };
+}
+
+export function DashboardPage() {
+ const { selectedOrgId } = useOrg();
+
+ const { data, isLoading, isError, refetch } = useQuery({
+ queryKey: ["dashboard", selectedOrgId],
+ queryFn: () => loadDashboardSummary(selectedOrgId as string),
+ enabled: selectedOrgId != null,
+ });
+
+ if (!selectedOrgId) {
+ return (
+
+
Create organization
+
Create an organization to see your dashboard.
+
+ );
+ }
+
+ if (isLoading) {
+ return Loading dashboard...
;
+ }
+
+ if (isError || !data) {
+ return (
+
+
Failed to load dashboard.
+
void refetch()}
+ className="rounded border border-hairline px-3 py-2 text-sm text-ink"
+ >
+ Retry
+
+
+ );
+ }
+
+ return (
+
+
+
+
+
+
+
+
+
Recent alert events
+ {data.recentEvents.length === 0 ? (
+
No alert events yet.
+ ) : (
+
+ {data.recentEvents.map((event) => (
+
+ {event.title}
+
+ {event.alert_status}
+ {event.created_at}
+
+
+ ))}
+
+ )}
+
+
+ );
+}
+
+function Stat({ label, value, testId }: { label: string; value: number; testId?: string }) {
+ return (
+
+
{label}
+
+ {value}
+
+
+ );
+}
+
+export default DashboardPage;
diff --git a/frontend/src/pages/IncidentDetailPage.test.tsx b/frontend/src/pages/IncidentDetailPage.test.tsx
new file mode 100644
index 0000000..249074c
--- /dev/null
+++ b/frontend/src/pages/IncidentDetailPage.test.tsx
@@ -0,0 +1,157 @@
+import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
+import { render, screen, waitFor } from "@testing-library/react";
+import userEvent from "@testing-library/user-event";
+import { MemoryRouter, Route, Routes } from "react-router-dom";
+import { beforeEach, describe, expect, test, vi } from "vitest";
+import { ApiError } from "../lib/api/client";
+import type { Incident } from "../lib/api/incidents";
+import { IncidentDetailPage } from "./IncidentDetailPage";
+
+vi.mock("../lib/org-context", () => ({
+ useOrg: vi.fn(),
+}));
+vi.mock("../lib/api/incidents", () => ({
+ getIncident: vi.fn(),
+ updateIncidentStatus: vi.fn(),
+}));
+vi.mock("../lib/api/ai", () => ({
+ listTriages: vi.fn(),
+ runTriage: vi.fn(),
+ listPostmortems: vi.fn(),
+ generatePostmortem: vi.fn(),
+}));
+
+import { useOrg } from "../lib/org-context";
+import { getIncident, updateIncidentStatus } from "../lib/api/incidents";
+import { listTriages, listPostmortems } from "../lib/api/ai";
+
+function makeIncident(overrides: Partial = {}): Incident {
+ return {
+ id: "incident-1",
+ org_id: "org-1",
+ service_id: "svc-1",
+ created_by: "user-1",
+ title: "Database outage",
+ description: "The primary database is unreachable.",
+ severity: "sev1",
+ incident_status: "open",
+ resolved_at: null,
+ created_at: "2026-01-01T00:00:00Z",
+ updated_at: "2026-01-01T00:00:00Z",
+ ...overrides,
+ };
+}
+
+function renderPage(path = "/incidents/incident-1") {
+ const queryClient = new QueryClient({
+ defaultOptions: { queries: { retry: false }, mutations: { retry: false } },
+ });
+ return render(
+
+
+
+ Incidents list} />
+ } />
+
+
+ ,
+ );
+}
+
+describe("IncidentDetailPage", () => {
+ beforeEach(() => {
+ vi.clearAllMocks();
+ vi.mocked(useOrg).mockReturnValue({
+ orgs: [{ id: "org-1", name: "Acme" }],
+ selectedOrgId: "org-1",
+ selectOrg: vi.fn(),
+ createOrg: vi.fn(),
+ error: null,
+ retry: vi.fn(),
+ isLoading: false,
+ });
+ vi.mocked(listTriages).mockResolvedValue([]);
+ vi.mocked(listPostmortems).mockResolvedValue([]);
+ });
+
+ test("renders the incident's title, severity, and status", async () => {
+ vi.mocked(getIncident).mockResolvedValue(makeIncident());
+
+ renderPage();
+
+ expect(await screen.findByRole("heading", { name: "Database outage" })).toBeTruthy();
+ expect(screen.getByText("sev1")).toBeTruthy();
+ expect(screen.getByText("open")).toBeTruthy();
+ expect(getIncident).toHaveBeenCalledWith("org-1", "incident-1");
+ });
+
+ test("changing the status control calls updateIncidentStatus and reflects the new status", async () => {
+ vi.mocked(getIncident).mockResolvedValueOnce(makeIncident({ incident_status: "open" }));
+ vi.mocked(getIncident).mockResolvedValueOnce(
+ makeIncident({ incident_status: "investigating" }),
+ );
+ vi.mocked(updateIncidentStatus).mockResolvedValue(
+ makeIncident({ incident_status: "investigating" }),
+ );
+
+ renderPage();
+ expect(await screen.findByRole("heading", { name: "Database outage" })).toBeTruthy();
+
+ const user = userEvent.setup();
+ await user.click(screen.getByRole("button", { name: /start investigating/i }));
+
+ await waitFor(() =>
+ expect(updateIncidentStatus).toHaveBeenCalledWith("org-1", "incident-1", "investigating"),
+ );
+ expect(await screen.findByText("investigating")).toBeTruthy();
+ });
+
+ test("an open incident only offers its valid next transitions, not a free choice", async () => {
+ vi.mocked(getIncident).mockResolvedValue(makeIncident({ incident_status: "open" }));
+
+ renderPage();
+ expect(await screen.findByRole("heading", { name: "Database outage" })).toBeTruthy();
+
+ expect(screen.getByRole("button", { name: /start investigating/i })).toBeTruthy();
+ expect(screen.getByRole("button", { name: /^resolve$/i })).toBeTruthy();
+ expect(screen.queryByRole("button", { name: /mark identified/i })).toBeNull();
+ expect(screen.queryByRole("button", { name: /start monitoring/i })).toBeNull();
+ });
+
+ test("a resolved incident shows no status actions (terminal state)", async () => {
+ vi.mocked(getIncident).mockResolvedValue(makeIncident({ incident_status: "resolved" }));
+
+ renderPage();
+ expect(await screen.findByRole("heading", { name: "Database outage" })).toBeTruthy();
+
+ expect(screen.queryByRole("button", { name: /resolve/i })).toBeNull();
+ expect(screen.queryByRole("button", { name: /start investigating/i })).toBeNull();
+ expect(screen.queryByRole("button", { name: /mark identified/i })).toBeNull();
+ expect(screen.queryByRole("button", { name: /start monitoring/i })).toBeNull();
+ });
+
+ test("shows an invalid-transition error from the API without crashing the page", async () => {
+ vi.mocked(getIncident).mockResolvedValue(makeIncident({ incident_status: "open" }));
+ vi.mocked(updateIncidentStatus).mockRejectedValue(
+ new ApiError(422, "Cannot transition from open to monitoring"),
+ );
+
+ renderPage();
+ expect(await screen.findByRole("heading", { name: "Database outage" })).toBeTruthy();
+
+ const user = userEvent.setup();
+ await user.click(screen.getByRole("button", { name: /start investigating/i }));
+
+ expect(await screen.findByText(/cannot transition/i)).toBeTruthy();
+ // The page is still usable -- the heading and facts rail are intact.
+ expect(screen.getByRole("heading", { name: "Database outage" })).toBeTruthy();
+ });
+
+ test("shows a not-found state when getIncident 404s", async () => {
+ vi.mocked(getIncident).mockRejectedValue(new ApiError(404, "Incident not found"));
+
+ renderPage();
+
+ expect(await screen.findByText(/could not be found/i)).toBeTruthy();
+ });
+});
diff --git a/frontend/src/pages/IncidentDetailPage.tsx b/frontend/src/pages/IncidentDetailPage.tsx
new file mode 100644
index 0000000..73c4c2f
--- /dev/null
+++ b/frontend/src/pages/IncidentDetailPage.tsx
@@ -0,0 +1,116 @@
+import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
+import { useState } from "react";
+import { Link, useParams } from "react-router-dom";
+import { IncidentFactsRail } from "../components/IncidentFactsRail";
+import { PostmortemPanel } from "../components/PostmortemPanel";
+import { TriageHistory } from "../components/TriageHistory";
+import { ApiError } from "../lib/api/client";
+import { getIncident, updateIncidentStatus, type IncidentStatus } from "../lib/api/incidents";
+import { useOrg } from "../lib/org-context";
+
+export function IncidentDetailPage() {
+ const { id: incidentId } = useParams<{ id: string }>();
+ const { selectedOrgId } = useOrg();
+ const queryClient = useQueryClient();
+ const [actionError, setActionError] = useState(null);
+
+ const queryKey = ["incident", selectedOrgId, incidentId];
+ const {
+ data: incident,
+ isLoading,
+ isError,
+ error,
+ refetch,
+ } = useQuery({
+ queryKey,
+ queryFn: () => getIncident(selectedOrgId as string, incidentId as string),
+ enabled: selectedOrgId != null && incidentId != null,
+ });
+
+ const updateStatusMutation = useMutation({
+ mutationFn: (status: IncidentStatus) =>
+ updateIncidentStatus(selectedOrgId as string, incidentId as string, status),
+ onError: (err) => {
+ // A 422 here means the incident's status already moved on (e.g. a
+ // race with another tab) since we last fetched -- the backend's
+ // `_VALID_TRANSITIONS` rejected the transition we tried. Surface it
+ // and refetch so the rail reflects the incident's real current
+ // status, same pattern as `AlertEventsTab`.
+ setActionError(
+ err instanceof ApiError ? err.detail : "Something went wrong. Please try again.",
+ );
+ void refetch();
+ },
+ onSuccess: () => {
+ setActionError(null);
+ void queryClient.invalidateQueries({ queryKey });
+ },
+ });
+
+ if (!selectedOrgId || !incidentId) {
+ return Select an organization to view this incident.
;
+ }
+
+ if (isLoading) {
+ return Loading incident...
;
+ }
+
+ if (isError) {
+ if (error instanceof ApiError && error.status === 404) {
+ return (
+
+
This incident could not be found.
+
+ Back to incidents
+
+
+ );
+ }
+
+ return (
+
+
Failed to load this incident.
+
void refetch()}
+ className="rounded border border-hairline px-3 py-2 text-sm text-ink"
+ >
+ Retry
+
+
+ );
+ }
+
+ if (!incident) {
+ return null;
+ }
+
+ return (
+
+ {actionError &&
{actionError}
}
+
+
+
+
+
{incident.title}
+
+ {incident.description ?? ""}
+
+
+
+
+
+
+
+
+
updateStatusMutation.mutate(status)}
+ isChangingStatus={updateStatusMutation.isPending}
+ />
+
+
+ );
+}
+
+export default IncidentDetailPage;
diff --git a/frontend/src/pages/IncidentsListPage.test.tsx b/frontend/src/pages/IncidentsListPage.test.tsx
new file mode 100644
index 0000000..78f9741
--- /dev/null
+++ b/frontend/src/pages/IncidentsListPage.test.tsx
@@ -0,0 +1,267 @@
+import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
+import { render, screen, waitFor } from "@testing-library/react";
+import userEvent from "@testing-library/user-event";
+import { MemoryRouter } from "react-router-dom";
+import { beforeEach, describe, expect, test, vi } from "vitest";
+import { ApiError } from "../lib/api/client";
+import type { Incident } from "../lib/api/incidents";
+import { IncidentsListPage } from "./IncidentsListPage";
+
+vi.mock("../lib/org-context", () => ({
+ useOrg: vi.fn(),
+}));
+vi.mock("../lib/api/incidents", () => ({
+ listIncidents: vi.fn(),
+ createIncident: vi.fn(),
+ updateIncident: vi.fn(),
+ deleteIncident: vi.fn(),
+}));
+vi.mock("../lib/api/services", () => ({
+ listServices: vi.fn(),
+}));
+
+import { useOrg } from "../lib/org-context";
+import {
+ deleteIncident,
+ listIncidents,
+ updateIncident,
+} from "../lib/api/incidents";
+import { listServices } from "../lib/api/services";
+
+function renderPage() {
+ const queryClient = new QueryClient({
+ defaultOptions: { queries: { retry: false }, mutations: { retry: false } },
+ });
+ return render(
+
+
+
+
+ ,
+ );
+}
+
+function makeIncident(
+ overrides: { id: string; title: string; severity: Incident["severity"] } & Partial,
+): Incident {
+ return {
+ org_id: "org-1",
+ service_id: null,
+ created_by: null,
+ description: null,
+ incident_status: "open",
+ resolved_at: null,
+ created_at: "2026-01-01T00:00:00Z",
+ updated_at: "2026-01-01T00:00:00Z",
+ ...overrides,
+ };
+}
+
+function mockPage(
+ items: ({ id: string; title: string; severity: Incident["severity"] } & Partial)[],
+) {
+ return { items: items.map(makeIncident), total: items.length, limit: 20, offset: 0 };
+}
+
+describe("IncidentsListPage", () => {
+ beforeEach(() => {
+ vi.clearAllMocks();
+ vi.mocked(useOrg).mockReturnValue({
+ orgs: [{ id: "org-1", name: "Acme" }],
+ selectedOrgId: "org-1",
+ selectOrg: vi.fn(),
+ createOrg: vi.fn(),
+ error: null,
+ retry: vi.fn(),
+ isLoading: false,
+ });
+ vi.mocked(listServices).mockResolvedValue({ items: [], total: 0, limit: 100, offset: 0 });
+ });
+
+ test("renders a row per incident with the correct severity dot color", async () => {
+ vi.mocked(listIncidents).mockResolvedValue(
+ mockPage([
+ { id: "inc-1", title: "DB down", severity: "sev1" },
+ { id: "inc-2", title: "Slow queries", severity: "sev4" },
+ ]),
+ );
+
+ renderPage();
+
+ expect(await screen.findByText("DB down")).toBeTruthy();
+ const sev1Dot = screen.getByTestId("severity-dot-inc-1");
+ expect(sev1Dot.className).toContain("bg-critical");
+
+ const sev4Dot = screen.getByTestId("severity-dot-inc-2");
+ expect(sev4Dot.className).toContain("bg-ink/40");
+ expect(sev4Dot.className).not.toContain("bg-critical");
+ expect(sev4Dot.className).not.toContain("bg-accent-orange");
+ expect(sev4Dot.className).not.toContain("bg-accent-blue");
+ });
+
+ test("renders the incident title as a link to its detail page", async () => {
+ vi.mocked(listIncidents).mockResolvedValue(
+ mockPage([{ id: "inc-1", title: "DB down", severity: "sev1" }]),
+ );
+
+ renderPage();
+
+ const titleLink = await screen.findByRole("link", { name: "DB down" });
+ expect(titleLink.getAttribute("href")).toBe("/incidents/inc-1");
+ });
+
+ test("re-fetches with the chosen status in the query params when the status filter changes", async () => {
+ vi.mocked(listIncidents).mockResolvedValue(
+ mockPage([{ id: "inc-1", title: "DB down", severity: "sev1" }]),
+ );
+
+ renderPage();
+
+ expect(await screen.findByText("DB down")).toBeTruthy();
+ expect(listIncidents).toHaveBeenCalledWith("org-1", {}, { limit: 20, offset: 0 });
+
+ const user = userEvent.setup();
+ await user.click(screen.getByRole("combobox", { name: /status/i }));
+ await user.click(await screen.findByRole("option", { name: /^resolved$/i }));
+
+ await waitFor(() =>
+ expect(listIncidents).toHaveBeenCalledWith(
+ "org-1",
+ { status: "resolved" },
+ { limit: 20, offset: 0 },
+ ),
+ );
+ });
+
+ test("shows the empty state (not a broken pagination footer) when a filter combination has zero matches", async () => {
+ vi.mocked(listIncidents).mockResolvedValue({ items: [], total: 0, limit: 20, offset: 0 });
+
+ renderPage();
+
+ expect(await screen.findByText(/no incidents yet/i)).toBeTruthy();
+ expect(screen.queryByText(/showing/i)).toBeNull();
+ expect(screen.queryByRole("button", { name: /previous/i })).toBeNull();
+ expect(screen.queryByRole("button", { name: /next/i })).toBeNull();
+ expect(screen.queryByRole("table")).toBeNull();
+ });
+
+ test("removes an incident from the list after a successful delete", async () => {
+ vi.mocked(listIncidents).mockResolvedValueOnce(
+ mockPage([{ id: "inc-1", title: "DB down", severity: "sev1" }]),
+ );
+ vi.mocked(deleteIncident).mockResolvedValue(undefined);
+ vi.mocked(listIncidents).mockResolvedValueOnce({ items: [], total: 0, limit: 20, offset: 0 });
+
+ renderPage();
+
+ expect(await screen.findByText("DB down")).toBeTruthy();
+
+ const user = userEvent.setup();
+ await user.click(screen.getByRole("button", { name: /delete/i }));
+
+ await waitFor(() => expect(deleteIncident).toHaveBeenCalledWith("org-1", "inc-1"));
+ expect(await screen.findByText(/no incidents yet/i)).toBeTruthy();
+ });
+
+ test("shows an error state and a retry action when the request fails", async () => {
+ vi.mocked(listIncidents).mockRejectedValueOnce(new ApiError(500, "boom"));
+ vi.mocked(listIncidents).mockResolvedValueOnce(
+ mockPage([{ id: "inc-1", title: "DB down", severity: "sev1" }]),
+ );
+
+ renderPage();
+
+ expect(await screen.findByText(/failed to load incidents/i)).toBeTruthy();
+
+ const user = userEvent.setup();
+ await user.click(screen.getByRole("button", { name: /retry/i }));
+
+ expect(await screen.findByText("DB down")).toBeTruthy();
+ });
+
+ test("editing an incident sends the updated fields without service_id", async () => {
+ vi.mocked(listIncidents).mockResolvedValue(
+ mockPage([{ id: "inc-1", title: "DB down", severity: "sev1" }]),
+ );
+ vi.mocked(updateIncident).mockResolvedValue(
+ makeIncident({ id: "inc-1", title: "DB down v2", severity: "sev2" }),
+ );
+
+ renderPage();
+
+ expect(await screen.findByText("DB down")).toBeTruthy();
+
+ const user = userEvent.setup();
+ await user.click(screen.getByRole("button", { name: /edit/i }));
+
+ const titleInput = await screen.findByLabelText(/title/i);
+ await user.clear(titleInput);
+ await user.type(titleInput, "DB down v2");
+ await user.click(screen.getByRole("button", { name: /save changes/i }));
+
+ await waitFor(() => expect(updateIncident).toHaveBeenCalled());
+ const [, , body] = vi.mocked(updateIncident).mock.calls[0];
+ expect(body).toMatchObject({ title: "DB down v2" });
+ expect(body).not.toHaveProperty("service_id");
+ });
+
+ test("invalidates the list on a 404 edit (not just on success), so the row drops after Cancel", async () => {
+ vi.mocked(listIncidents).mockResolvedValueOnce(
+ mockPage([{ id: "inc-1", title: "DB down", severity: "sev1" }]),
+ );
+ vi.mocked(updateIncident).mockRejectedValue(new ApiError(404, "Incident not found"));
+ vi.mocked(listIncidents).mockResolvedValueOnce({ items: [], total: 0, limit: 20, offset: 0 });
+
+ renderPage();
+
+ expect(await screen.findByText("DB down")).toBeTruthy();
+
+ const user = userEvent.setup();
+ await user.click(screen.getByRole("button", { name: /edit/i }));
+ await user.click(screen.getByRole("button", { name: /save changes/i }));
+
+ // `onSettled` invalidation fires on this failed submit already, not
+ // only on a later success -- the row doesn't wait for Cancel to drop.
+ await waitFor(() => expect(listIncidents).toHaveBeenCalledTimes(2));
+
+ await user.click(screen.getByRole("button", { name: /cancel/i }));
+
+ expect(await screen.findByText(/no incidents yet/i)).toBeTruthy();
+ });
+
+ test("steps pagination back a page after deleting the only row on page 2", async () => {
+ vi.mocked(listIncidents).mockResolvedValueOnce({
+ items: Array.from({ length: 20 }, (_, i) =>
+ makeIncident({ id: `inc-${i}`, title: `Incident ${i}`, severity: "sev3" }),
+ ),
+ total: 21,
+ limit: 20,
+ offset: 0,
+ });
+ vi.mocked(listIncidents).mockResolvedValueOnce(
+ mockPage([{ id: "inc-last", title: "Last one", severity: "sev3" }]),
+ );
+
+ renderPage();
+
+ expect(await screen.findByText("Incident 0")).toBeTruthy();
+
+ const user = userEvent.setup();
+ await user.click(screen.getByRole("button", { name: /next/i }));
+ expect(await screen.findByText("Last one")).toBeTruthy();
+
+ vi.mocked(deleteIncident).mockResolvedValue(undefined);
+ vi.mocked(listIncidents).mockResolvedValue({ items: [], total: 0, limit: 20, offset: 0 });
+
+ await user.click(screen.getByRole("button", { name: /delete/i }));
+
+ await waitFor(() =>
+ expect(listIncidents).toHaveBeenCalledWith(
+ "org-1",
+ { status: undefined, severity: undefined },
+ { limit: 20, offset: 0 },
+ ),
+ );
+ expect(screen.queryByText(/showing 21-20/i)).toBeNull();
+ });
+});
diff --git a/frontend/src/pages/IncidentsListPage.tsx b/frontend/src/pages/IncidentsListPage.tsx
new file mode 100644
index 0000000..a520ea6
--- /dev/null
+++ b/frontend/src/pages/IncidentsListPage.tsx
@@ -0,0 +1,381 @@
+import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
+import { useState } from "react";
+import { Link } from "react-router-dom";
+import {
+ IncidentFormDialog,
+ type IncidentFormInitialValues,
+ type IncidentFormValues,
+} from "../components/IncidentFormDialog";
+import {
+ Select,
+ SelectContent,
+ SelectItem,
+ SelectTrigger,
+ SelectValue,
+} from "../components/ui/select";
+import { ApiError } from "../lib/api/client";
+import {
+ createIncident,
+ deleteIncident,
+ listIncidents,
+ updateIncident,
+ type Incident,
+ type IncidentSeverity,
+ type IncidentStatus,
+} from "../lib/api/incidents";
+import { useOrg } from "../lib/org-context";
+
+const PAGE_LIMIT = 20;
+
+const STATUS_OPTIONS: IncidentStatus[] = [
+ "open",
+ "investigating",
+ "identified",
+ "monitoring",
+ "resolved",
+];
+const SEVERITY_OPTIONS: IncidentSeverity[] = ["sev1", "sev2", "sev3", "sev4"];
+
+// Exact severity-to-color mapping per the design spec: sev1 is critical
+// red, sev2 orange, sev3 blue, sev4 gets no color (ink at reduced
+// opacity). Color is signal here (the row's severity), not decoration --
+// this dot is the only saturated color used on the page.
+const SEVERITY_DOT_CLASS: Record = {
+ sev1: "bg-critical",
+ sev2: "bg-accent-orange",
+ sev3: "bg-accent-blue",
+ sev4: "bg-ink/40",
+};
+
+export function IncidentsListPage() {
+ const { selectedOrgId } = useOrg();
+ const queryClient = useQueryClient();
+ const [offset, setOffset] = useState(0);
+ const [statusFilter, setStatusFilter] = useState("");
+ const [severityFilter, setSeverityFilter] = useState("");
+ // Reset to the first page whenever the org, status filter, or severity
+ // filter changes -- done here during render (React's documented pattern
+ // for resetting state when a prop/input changes), the same approach
+ // `ServicesListPage` uses for org changes, so a stale offset never gets
+ // combined with a new filter/org in the same query.
+ const [paginatedFor, setPaginatedFor] = useState({
+ orgId: selectedOrgId,
+ status: statusFilter,
+ severity: severityFilter,
+ });
+ if (
+ paginatedFor.orgId !== selectedOrgId ||
+ paginatedFor.status !== statusFilter ||
+ paginatedFor.severity !== severityFilter
+ ) {
+ setPaginatedFor({ orgId: selectedOrgId, status: statusFilter, severity: severityFilter });
+ setOffset(0);
+ }
+
+ const [actionError, setActionError] = useState(null);
+ const [dialogState, setDialogState] = useState<
+ | { open: false }
+ | { open: true; mode: "create" }
+ | { open: true; mode: "edit"; incident: Incident }
+ >({ open: false });
+
+ const filters = {
+ status: statusFilter || undefined,
+ severity: severityFilter || undefined,
+ };
+ const queryKey = ["incidents", selectedOrgId, statusFilter, severityFilter, PAGE_LIMIT, offset];
+ const {
+ data,
+ isLoading,
+ isError,
+ refetch,
+ } = useQuery({
+ queryKey,
+ queryFn: () =>
+ listIncidents(selectedOrgId as string, filters, { limit: PAGE_LIMIT, offset }),
+ enabled: selectedOrgId != null,
+ });
+
+ // Deleting the only remaining row on page 2+ re-queries the same offset
+ // and gets back `items: []` with `total > 0` -- step back one page so
+ // the next render re-queries a page that actually has rows, instead of
+ // rendering an empty table under a footer claiming a page that doesn't
+ // exist. Same render-time adjustment pattern as the filter/org-change
+ // reset above.
+ if (data && data.items.length === 0 && data.total > 0 && offset > 0) {
+ setOffset((prev) => Math.max(0, prev - PAGE_LIMIT));
+ }
+
+ function invalidate() {
+ void queryClient.invalidateQueries({ queryKey: ["incidents", selectedOrgId] });
+ }
+
+ const createMutation = useMutation({
+ mutationFn: (values: IncidentFormValues) =>
+ createIncident(selectedOrgId as string, {
+ title: values.title,
+ description: values.description || undefined,
+ severity: values.severity,
+ service_id: values.service_id || undefined,
+ }),
+ onSuccess: () => invalidate(),
+ });
+
+ const updateMutation = useMutation({
+ mutationFn: ({ incidentId, values }: { incidentId: string; values: IncidentFormValues }) =>
+ updateIncident(selectedOrgId as string, incidentId, {
+ title: values.title,
+ description: values.description || undefined,
+ severity: values.severity,
+ }),
+ // `onSettled`, not `onSuccess`: a 404 here means someone else already
+ // deleted this incident since the list was fetched, so the list needs
+ // to drop the row on Cancel, not just show the dialog's error.
+ onSettled: () => invalidate(),
+ });
+
+ const deleteMutation = useMutation({
+ mutationFn: (incidentId: string) => deleteIncident(selectedOrgId as string, incidentId),
+ onError: (err) => {
+ setActionError(
+ err instanceof ApiError ? err.detail : "Something went wrong. Please try again.",
+ );
+ },
+ onSuccess: () => setActionError(null),
+ onSettled: () => invalidate(),
+ });
+
+ async function handleCreate(values: IncidentFormValues) {
+ if (!selectedOrgId) return;
+ await createMutation.mutateAsync(values);
+ }
+
+ async function handleEdit(incident: Incident, values: IncidentFormValues) {
+ if (!selectedOrgId) return;
+ await updateMutation.mutateAsync({ incidentId: incident.id, values });
+ }
+
+ function handleDelete(incident: Incident) {
+ if (!selectedOrgId) return;
+ deleteMutation.mutate(incident.id);
+ }
+
+ if (!selectedOrgId) {
+ return Select an organization to view its incidents.
;
+ }
+
+ const items = data?.items ?? [];
+ const total = data?.total ?? 0;
+ const hasPrevious = offset > 0;
+ const hasNext = offset + PAGE_LIMIT < total;
+ const hasActiveFilters = statusFilter !== "" || severityFilter !== "";
+
+ return (
+
+
+
Incidents
+ setDialogState({ open: true, mode: "create" })}
+ className="rounded bg-accent-blue px-3 py-2 text-sm text-ink"
+ >
+ New incident
+
+
+
+
+
+ Status
+ setStatusFilter((value ?? "") as IncidentStatus | "")}
+ >
+
+ {(value: string) => value || "All"}
+
+
+
+ All
+
+ {STATUS_OPTIONS.map((status) => (
+
+ {status}
+
+ ))}
+
+
+
+
+
+ Severity
+ setSeverityFilter((value ?? "") as IncidentSeverity | "")}
+ >
+
+ {(value: string) => value || "All"}
+
+
+
+ All
+
+ {SEVERITY_OPTIONS.map((severity) => (
+
+ {severity}
+
+ ))}
+
+
+
+
+
+ {actionError &&
{actionError}
}
+
+ {isLoading &&
Loading incidents...
}
+
+ {isError && !isLoading && (
+
+
Failed to load incidents.
+
void refetch()}
+ className="rounded border border-hairline px-3 py-2 text-sm text-ink"
+ >
+ Retry
+
+
+ )}
+
+ {!isLoading && !isError && total === 0 && (
+
+ {hasActiveFilters
+ ? "No incidents match the selected filters."
+ : "No incidents yet. Create one to get started."}
+
+ )}
+
+ {!isLoading && !isError && total > 0 && (
+ <>
+
+
+
+ Severity
+ Title
+ Status
+ Created
+ Actions
+
+
+
+ {items.map((incident) => (
+
+
+
+
+ {incident.severity}
+
+
+
+
+ {incident.title}
+
+
+ {incident.incident_status}
+ {incident.created_at}
+
+
+ setDialogState({ open: true, mode: "edit", incident })}
+ className="rounded border border-hairline px-2 py-1 text-xs text-ink"
+ >
+ Edit
+
+ handleDelete(incident)}
+ className="rounded border border-hairline px-2 py-1 text-xs text-critical"
+ >
+ Delete
+
+
+
+
+ ))}
+
+
+
+
+
+ Showing {offset + 1}-{Math.min(offset + PAGE_LIMIT, total)} of {total}
+
+
+ setOffset((prev) => Math.max(0, prev - PAGE_LIMIT))}
+ className="rounded border border-hairline px-3 py-1 disabled:opacity-40"
+ >
+ Previous
+
+ setOffset((prev) => prev + PAGE_LIMIT)}
+ className="rounded border border-hairline px-3 py-1 disabled:opacity-40"
+ >
+ Next
+
+
+
+ >
+ )}
+
+
{
+ if (!open) setDialogState({ open: false });
+ }}
+ onSubmit={(values) => {
+ if (dialogState.open && dialogState.mode === "edit") {
+ return handleEdit(dialogState.incident, values);
+ }
+ return handleCreate(values);
+ }}
+ />
+
+ );
+}
+
+function toInitialValues(incident: Incident): IncidentFormInitialValues {
+ return {
+ title: incident.title,
+ description: incident.description,
+ severity: incident.severity,
+ };
+}
+
+export default IncidentsListPage;
diff --git a/frontend/src/pages/LoginPage.test.tsx b/frontend/src/pages/LoginPage.test.tsx
new file mode 100644
index 0000000..51298de
--- /dev/null
+++ b/frontend/src/pages/LoginPage.test.tsx
@@ -0,0 +1,94 @@
+import { render, screen, waitFor } from "@testing-library/react";
+import userEvent from "@testing-library/user-event";
+import { MemoryRouter } from "react-router-dom";
+import { beforeEach, describe, expect, test, vi } from "vitest";
+import { ApiError } from "../lib/api/client";
+import { LoginPage } from "./LoginPage";
+
+vi.mock("../lib/auth-context", () => ({
+ useAuth: vi.fn(),
+}));
+
+import { useAuth } from "../lib/auth-context";
+
+describe("LoginPage", () => {
+ beforeEach(() => {
+ vi.clearAllMocks();
+ });
+
+ test("calls login with the entered email and password on submit", async () => {
+ const login = vi.fn().mockResolvedValue(undefined);
+ vi.mocked(useAuth).mockReturnValue({
+ login,
+ register: vi.fn(),
+ logout: vi.fn(),
+ user: null,
+ accessToken: null,
+ isLoading: false,
+ });
+
+ render(
+
+
+ ,
+ );
+
+ const user = userEvent.setup();
+ await user.type(screen.getByLabelText(/email/i), "user@example.com");
+ await user.type(screen.getByLabelText(/password/i), "password123");
+ await user.click(screen.getByRole("button", { name: /sign in/i }));
+
+ await waitFor(() => expect(login).toHaveBeenCalledWith("user@example.com", "password123"));
+ });
+
+ test("shows the backend's error detail on a failed login", async () => {
+ const login = vi.fn().mockRejectedValue(new ApiError(401, "Invalid credentials"));
+ vi.mocked(useAuth).mockReturnValue({
+ login,
+ register: vi.fn(),
+ logout: vi.fn(),
+ user: null,
+ accessToken: null,
+ isLoading: false,
+ });
+
+ render(
+
+
+ ,
+ );
+
+ const user = userEvent.setup();
+ await user.type(screen.getByLabelText(/email/i), "user@example.com");
+ await user.type(screen.getByLabelText(/password/i), "password123");
+ await user.click(screen.getByRole("button", { name: /sign in/i }));
+
+ expect(await screen.findByText("Invalid credentials")).toBeTruthy();
+ });
+
+ test("shows a validation error for an invalid email without calling login", async () => {
+ const login = vi.fn();
+ vi.mocked(useAuth).mockReturnValue({
+ login,
+ register: vi.fn(),
+ logout: vi.fn(),
+ user: null,
+ accessToken: null,
+ isLoading: false,
+ });
+
+ render(
+
+
+ ,
+ );
+
+ const user = userEvent.setup();
+ await user.type(screen.getByLabelText(/email/i), "not-an-email");
+ await user.type(screen.getByLabelText(/password/i), "password123");
+ await user.click(screen.getByRole("button", { name: /sign in/i }));
+
+ expect(await screen.findByText(/valid email/i)).toBeTruthy();
+ expect(login).not.toHaveBeenCalled();
+ });
+});
diff --git a/frontend/src/pages/LoginPage.tsx b/frontend/src/pages/LoginPage.tsx
new file mode 100644
index 0000000..661ae4e
--- /dev/null
+++ b/frontend/src/pages/LoginPage.tsx
@@ -0,0 +1,94 @@
+import { zodResolver } from "@hookform/resolvers/zod";
+import { useState } from "react";
+import { useForm } from "react-hook-form";
+import { Link, useNavigate } from "react-router-dom";
+import { z } from "zod";
+import { ApiError } from "../lib/api/client";
+import { useAuth } from "../lib/auth-context";
+
+const loginSchema = z.object({
+ email: z.string().email("Enter a valid email address"),
+ password: z.string().min(8, "Password must be at least 8 characters"),
+});
+
+type LoginFormValues = z.infer;
+
+export function LoginPage() {
+ const { login } = useAuth();
+ const navigate = useNavigate();
+ const [error, setError] = useState(null);
+ const {
+ register,
+ handleSubmit,
+ formState: { errors, isSubmitting },
+ } = useForm({ resolver: zodResolver(loginSchema) });
+
+ async function onSubmit(values: LoginFormValues) {
+ setError(null);
+ try {
+ await login(values.email, values.password);
+ navigate("/");
+ } catch (err) {
+ setError(err instanceof ApiError ? err.detail : "Something went wrong. Please try again.");
+ }
+ }
+
+ return (
+
+
+ Sign in
+
+
+
+ Email
+
+
+ {errors.email &&
{errors.email.message}
}
+
+
+
+
+ Password
+
+
+ {errors.password &&
{errors.password.message}
}
+
+
+ {error && {error}
}
+
+
+ Sign in
+
+
+
+ Don't have an account?{" "}
+
+ Create one
+
+
+
+
+ );
+}
+
+export default LoginPage;
diff --git a/frontend/src/pages/MembersPage.test.tsx b/frontend/src/pages/MembersPage.test.tsx
new file mode 100644
index 0000000..816c548
--- /dev/null
+++ b/frontend/src/pages/MembersPage.test.tsx
@@ -0,0 +1,206 @@
+import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
+import { render, screen, waitFor } from "@testing-library/react";
+import userEvent from "@testing-library/user-event";
+import { MemoryRouter } from "react-router-dom";
+import { beforeEach, describe, expect, test, vi } from "vitest";
+import { ApiError } from "../lib/api/client";
+import type { Member } from "../lib/api/organizations";
+import { MembersPage } from "./MembersPage";
+
+vi.mock("../lib/org-context", () => ({
+ useOrg: vi.fn(),
+}));
+vi.mock("../lib/api/organizations", async () => {
+ const actual = await vi.importActual(
+ "../lib/api/organizations",
+ );
+ return {
+ ...actual,
+ listMembers: vi.fn(),
+ addMember: vi.fn(),
+ updateMemberRole: vi.fn(),
+ removeMember: vi.fn(),
+ };
+});
+
+import { useOrg } from "../lib/org-context";
+import {
+ addMember,
+ listMembers,
+ removeMember,
+ updateMemberRole,
+} from "../lib/api/organizations";
+
+function renderPage() {
+ const queryClient = new QueryClient({
+ defaultOptions: { queries: { retry: false }, mutations: { retry: false } },
+ });
+ return render(
+
+
+
+
+ ,
+ );
+}
+
+function makeMember(overrides: Partial & { id: string }): Member {
+ return {
+ userId: overrides.id,
+ email: "user@example.com",
+ fullName: "Jane Doe",
+ role: "member",
+ createdAt: "2026-01-01T00:00:00Z",
+ ...overrides,
+ };
+}
+
+describe("MembersPage", () => {
+ beforeEach(() => {
+ vi.clearAllMocks();
+ vi.mocked(useOrg).mockReturnValue({
+ orgs: [{ id: "org-1", name: "Acme" }],
+ selectedOrgId: "org-1",
+ selectOrg: vi.fn(),
+ createOrg: vi.fn(),
+ error: null,
+ retry: vi.fn(),
+ isLoading: false,
+ });
+ });
+
+ test("renders a row per member returned by the API", async () => {
+ vi.mocked(listMembers).mockResolvedValue([
+ makeMember({ id: "mem-1", userId: "user-1", fullName: "Jane Doe", email: "jane@acme.com" }),
+ makeMember({ id: "mem-2", userId: "user-2", fullName: "Bob Smith", email: "bob@acme.com" }),
+ ]);
+
+ renderPage();
+
+ expect(await screen.findByText("Jane Doe")).toBeTruthy();
+ expect(screen.getByText("Bob Smith")).toBeTruthy();
+ expect(screen.getByText("user-1")).toBeTruthy();
+ expect(listMembers).toHaveBeenCalledWith("org-1");
+ });
+
+ test("falls back to email when a member has no full name", async () => {
+ vi.mocked(listMembers).mockResolvedValue([
+ makeMember({ id: "mem-1", userId: "user-1", fullName: null, email: "jane@acme.com" }),
+ ]);
+
+ renderPage();
+
+ expect(await screen.findByText("jane@acme.com")).toBeTruthy();
+ });
+
+ test("does not call listMembers when no org is selected", () => {
+ vi.mocked(useOrg).mockReturnValue({
+ orgs: [],
+ selectedOrgId: null,
+ selectOrg: vi.fn(),
+ createOrg: vi.fn(),
+ error: null,
+ retry: vi.fn(),
+ isLoading: false,
+ });
+
+ renderPage();
+
+ expect(listMembers).not.toHaveBeenCalled();
+ expect(screen.getByText(/select an organization/i)).toBeTruthy();
+ });
+
+ test("adding a member by user ID adds a row to the list", async () => {
+ vi.mocked(listMembers).mockResolvedValueOnce([]);
+ vi.mocked(addMember).mockResolvedValue(
+ makeMember({ id: "mem-3", userId: "user-3", fullName: "New Person", email: "new@acme.com" }),
+ );
+ vi.mocked(listMembers).mockResolvedValueOnce([
+ makeMember({ id: "mem-3", userId: "user-3", fullName: "New Person", email: "new@acme.com" }),
+ ]);
+
+ renderPage();
+
+ expect(await screen.findByText(/no members yet/i)).toBeTruthy();
+
+ const user = userEvent.setup();
+ await user.type(screen.getByLabelText(/user id/i), "user-3");
+ await user.click(screen.getByRole("button", { name: /add member/i }));
+
+ await waitFor(() => expect(addMember).toHaveBeenCalledWith("org-1", "user-3"));
+ expect(await screen.findByText("New Person")).toBeTruthy();
+ });
+
+ test("shows the backend error detail when adding a nonexistent user ID", async () => {
+ vi.mocked(listMembers).mockResolvedValue([]);
+ vi.mocked(addMember).mockRejectedValue(new ApiError(404, "User not found"));
+
+ renderPage();
+
+ expect(await screen.findByText(/no members yet/i)).toBeTruthy();
+
+ const user = userEvent.setup();
+ await user.type(screen.getByLabelText(/user id/i), "nonexistent-user");
+ await user.click(screen.getByRole("button", { name: /add member/i }));
+
+ expect(await screen.findByText("User not found")).toBeTruthy();
+ });
+
+ test("changing a member's role calls updateMemberRole with the new role", async () => {
+ vi.mocked(listMembers).mockResolvedValue([
+ makeMember({ id: "mem-1", userId: "user-1", fullName: "Jane Doe", role: "member" }),
+ ]);
+ vi.mocked(updateMemberRole).mockResolvedValue(
+ makeMember({ id: "mem-1", userId: "user-1", fullName: "Jane Doe", role: "admin" }),
+ );
+
+ renderPage();
+
+ expect(await screen.findByText("Jane Doe")).toBeTruthy();
+
+ const user = userEvent.setup();
+ await user.click(screen.getByRole("combobox", { name: /role for jane doe/i }));
+ await user.click(await screen.findByRole("option", { name: /^admin$/i }));
+
+ await waitFor(() =>
+ expect(updateMemberRole).toHaveBeenCalledWith("org-1", "user-1", "admin"),
+ );
+ });
+
+ test("removing a member removes their row from the list", async () => {
+ vi.mocked(listMembers).mockResolvedValueOnce([
+ makeMember({ id: "mem-1", userId: "user-1", fullName: "Jane Doe" }),
+ ]);
+ vi.mocked(removeMember).mockResolvedValue(undefined);
+ vi.mocked(listMembers).mockResolvedValueOnce([]);
+
+ renderPage();
+
+ expect(await screen.findByText("Jane Doe")).toBeTruthy();
+
+ const user = userEvent.setup();
+ await user.click(screen.getByRole("button", { name: /remove/i }));
+
+ await waitFor(() => expect(removeMember).toHaveBeenCalledWith("org-1", "user-1"));
+ expect(await screen.findByText(/no members yet/i)).toBeTruthy();
+ });
+
+ test("shows a 404 error and refetches the list when removing an already-gone member", async () => {
+ vi.mocked(listMembers).mockResolvedValueOnce([
+ makeMember({ id: "mem-1", userId: "user-1", fullName: "Jane Doe" }),
+ ]);
+ vi.mocked(removeMember).mockRejectedValue(new ApiError(404, "Member not found"));
+ vi.mocked(listMembers).mockResolvedValueOnce([]);
+
+ renderPage();
+
+ expect(await screen.findByText("Jane Doe")).toBeTruthy();
+
+ const user = userEvent.setup();
+ await user.click(screen.getByRole("button", { name: /remove/i }));
+
+ expect(await screen.findByText("Member not found")).toBeTruthy();
+ await waitFor(() => expect(listMembers).toHaveBeenCalledTimes(2));
+ expect(await screen.findByText(/no members yet/i)).toBeTruthy();
+ });
+});
diff --git a/frontend/src/pages/MembersPage.tsx b/frontend/src/pages/MembersPage.tsx
new file mode 100644
index 0000000..493600d
--- /dev/null
+++ b/frontend/src/pages/MembersPage.tsx
@@ -0,0 +1,224 @@
+import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
+import { type FormEvent, useState } from "react";
+import {
+ Select,
+ SelectContent,
+ SelectItem,
+ SelectTrigger,
+ SelectValue,
+} from "../components/ui/select";
+import { ApiError } from "../lib/api/client";
+import {
+ addMember,
+ listMembers,
+ removeMember,
+ updateMemberRole,
+ type Member,
+ type MemberRole,
+} from "../lib/api/organizations";
+import { useOrg } from "../lib/org-context";
+
+const ROLE_OPTIONS: MemberRole[] = ["owner", "admin", "member"];
+
+function displayName(member: Member): string {
+ return member.fullName ?? member.email;
+}
+
+export function MembersPage() {
+ const { selectedOrgId } = useOrg();
+ const queryClient = useQueryClient();
+ const [actionError, setActionError] = useState(null);
+ const [addError, setAddError] = useState(null);
+ const [userId, setUserId] = useState("");
+
+ const queryKey = ["members", selectedOrgId];
+ const {
+ data: members,
+ isLoading,
+ isError,
+ refetch,
+ } = useQuery({
+ queryKey,
+ queryFn: () => listMembers(selectedOrgId as string),
+ enabled: selectedOrgId != null,
+ });
+
+ function invalidate() {
+ void queryClient.invalidateQueries({ queryKey });
+ }
+
+ const addMutation = useMutation({
+ mutationFn: (newUserId: string) => addMember(selectedOrgId as string, newUserId),
+ onSuccess: () => {
+ setAddError(null);
+ setUserId("");
+ invalidate();
+ },
+ onError: (err) => {
+ setAddError(err instanceof ApiError ? err.detail : "Something went wrong. Please try again.");
+ },
+ });
+
+ const roleMutation = useMutation({
+ mutationFn: ({ targetUserId, role }: { targetUserId: string; role: MemberRole }) =>
+ updateMemberRole(selectedOrgId as string, targetUserId, role),
+ onError: (err) => {
+ setActionError(
+ err instanceof ApiError ? err.detail : "Something went wrong. Please try again.",
+ );
+ },
+ onSuccess: () => setActionError(null),
+ onSettled: () => invalidate(),
+ });
+
+ const removeMutation = useMutation({
+ mutationFn: (targetUserId: string) => removeMember(selectedOrgId as string, targetUserId),
+ onError: (err) => {
+ // A 404 here means someone else already removed this member (a
+ // stale row in our list); surface it and let `onSettled` refetch so
+ // the table reflects reality instead of keeping a row we just acted
+ // on, same pattern as `ServicesListPage`/`IncidentsListPage`.
+ setActionError(
+ err instanceof ApiError ? err.detail : "Something went wrong. Please try again.",
+ );
+ },
+ onSuccess: () => setActionError(null),
+ onSettled: () => invalidate(),
+ });
+
+ function handleAddSubmit(event: FormEvent) {
+ event.preventDefault();
+ if (!selectedOrgId || userId.trim().length === 0) return;
+ addMutation.mutate(userId.trim());
+ }
+
+ function handleRoleChange(member: Member, role: MemberRole) {
+ if (!selectedOrgId || role === member.role) return;
+ roleMutation.mutate({ targetUserId: member.userId, role });
+ }
+
+ function handleRemove(member: Member) {
+ if (!selectedOrgId) return;
+ removeMutation.mutate(member.userId);
+ }
+
+ if (!selectedOrgId) {
+ return Select an organization to view its members.
;
+ }
+
+ const items = members ?? [];
+
+ return (
+
+
+
Members
+
+
+
+
+
+ User ID
+
+ setUserId(event.target.value)}
+ className="rounded border border-hairline bg-bg px-3 py-2 font-mono text-ink"
+ />
+
+
+ Add member
+
+
+
+ {addError &&
{addError}
}
+ {actionError &&
{actionError}
}
+
+ {isLoading &&
Loading members...
}
+
+ {isError && !isLoading && (
+
+
Failed to load members.
+
void refetch()}
+ className="rounded border border-hairline px-3 py-2 text-sm text-ink"
+ >
+ Retry
+
+
+ )}
+
+ {!isLoading && !isError && items.length === 0 && (
+
No members yet. Add one by user ID to get started.
+ )}
+
+ {!isLoading && !isError && items.length > 0 && (
+
+
+
+ Name
+ User ID
+ Role
+ Joined
+ Actions
+
+
+
+ {items.map((member) => {
+ const name = displayName(member);
+ return (
+
+ {name}
+ {member.userId}
+
+
+ handleRoleChange(member, (value ?? member.role) as MemberRole)
+ }
+ >
+
+ {(value: string) => value}
+
+
+ {ROLE_OPTIONS.map((role) => (
+
+ {role}
+
+ ))}
+
+
+
+ {member.createdAt}
+
+ handleRemove(member)}
+ className="rounded border border-hairline px-2 py-1 text-xs text-critical"
+ >
+ Remove
+
+
+
+ );
+ })}
+
+
+ )}
+
+ );
+}
+
+export default MembersPage;
diff --git a/frontend/src/pages/RegisterPage.test.tsx b/frontend/src/pages/RegisterPage.test.tsx
new file mode 100644
index 0000000..c1b801f
--- /dev/null
+++ b/frontend/src/pages/RegisterPage.test.tsx
@@ -0,0 +1,70 @@
+import { render, screen, waitFor } from "@testing-library/react";
+import userEvent from "@testing-library/user-event";
+import { MemoryRouter } from "react-router-dom";
+import { beforeEach, describe, expect, test, vi } from "vitest";
+import { ApiError } from "../lib/api/client";
+import { RegisterPage } from "./RegisterPage";
+
+vi.mock("../lib/auth-context", () => ({
+ useAuth: vi.fn(),
+}));
+
+import { useAuth } from "../lib/auth-context";
+
+describe("RegisterPage", () => {
+ beforeEach(() => {
+ vi.clearAllMocks();
+ });
+
+ test("calls register with the entered email and password on submit", async () => {
+ const register = vi.fn().mockResolvedValue(undefined);
+ vi.mocked(useAuth).mockReturnValue({
+ login: vi.fn(),
+ register,
+ logout: vi.fn(),
+ user: null,
+ accessToken: null,
+ isLoading: false,
+ });
+
+ render(
+
+
+ ,
+ );
+
+ const user = userEvent.setup();
+ await user.type(screen.getByLabelText(/email/i), "new@example.com");
+ await user.type(screen.getByLabelText(/password/i), "password123");
+ await user.click(screen.getByRole("button", { name: /create account/i }));
+
+ await waitFor(() =>
+ expect(register).toHaveBeenCalledWith("new@example.com", "password123"),
+ );
+ });
+
+ test("shows the backend's error detail on a failed registration", async () => {
+ const register = vi.fn().mockRejectedValue(new ApiError(409, "Email already registered"));
+ vi.mocked(useAuth).mockReturnValue({
+ login: vi.fn(),
+ register,
+ logout: vi.fn(),
+ user: null,
+ accessToken: null,
+ isLoading: false,
+ });
+
+ render(
+
+
+ ,
+ );
+
+ const user = userEvent.setup();
+ await user.type(screen.getByLabelText(/email/i), "new@example.com");
+ await user.type(screen.getByLabelText(/password/i), "password123");
+ await user.click(screen.getByRole("button", { name: /create account/i }));
+
+ expect(await screen.findByText("Email already registered")).toBeTruthy();
+ });
+});
diff --git a/frontend/src/pages/RegisterPage.tsx b/frontend/src/pages/RegisterPage.tsx
new file mode 100644
index 0000000..0a4e0e1
--- /dev/null
+++ b/frontend/src/pages/RegisterPage.tsx
@@ -0,0 +1,96 @@
+import { zodResolver } from "@hookform/resolvers/zod";
+import { useState } from "react";
+import { useForm } from "react-hook-form";
+import { Link, useNavigate } from "react-router-dom";
+import { z } from "zod";
+import { ApiError } from "../lib/api/client";
+import { useAuth } from "../lib/auth-context";
+
+// Matches the backend's `RegisterRequest` constraints
+// (`backend/app/modules/auth/schemas.py`): email + an 8-128 char password.
+const registerSchema = z.object({
+ email: z.string().email("Enter a valid email address"),
+ password: z.string().min(8, "Password must be at least 8 characters"),
+});
+
+type RegisterFormValues = z.infer;
+
+export function RegisterPage() {
+ const { register: registerUser } = useAuth();
+ const navigate = useNavigate();
+ const [error, setError] = useState(null);
+ const {
+ register,
+ handleSubmit,
+ formState: { errors, isSubmitting },
+ } = useForm({ resolver: zodResolver(registerSchema) });
+
+ async function onSubmit(values: RegisterFormValues) {
+ setError(null);
+ try {
+ await registerUser(values.email, values.password);
+ navigate("/");
+ } catch (err) {
+ setError(err instanceof ApiError ? err.detail : "Something went wrong. Please try again.");
+ }
+ }
+
+ return (
+
+
+ Create an account
+
+
+
+ Email
+
+
+ {errors.email &&
{errors.email.message}
}
+
+
+
+
+ Password
+
+
+ {errors.password &&
{errors.password.message}
}
+
+
+ {error && {error}
}
+
+
+ Create account
+
+
+
+ Already have an account?{" "}
+
+ Sign in
+
+
+
+
+ );
+}
+
+export default RegisterPage;
diff --git a/frontend/src/pages/ServiceDetailPage.test.tsx b/frontend/src/pages/ServiceDetailPage.test.tsx
new file mode 100644
index 0000000..7f702e7
--- /dev/null
+++ b/frontend/src/pages/ServiceDetailPage.test.tsx
@@ -0,0 +1,187 @@
+import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
+import { render, screen, waitFor } from "@testing-library/react";
+import userEvent from "@testing-library/user-event";
+import { MemoryRouter, Route, Routes } from "react-router-dom";
+import { beforeEach, describe, expect, test, vi } from "vitest";
+import { ApiError } from "../lib/api/client";
+import type { Service } from "../lib/api/services";
+import { ServiceDetailPage } from "./ServiceDetailPage";
+
+vi.mock("../lib/org-context", () => ({
+ useOrg: vi.fn(),
+}));
+vi.mock("../lib/api/services", () => ({
+ getService: vi.fn(),
+ updateService: vi.fn(),
+ deleteService: vi.fn(),
+}));
+vi.mock("../lib/api/alerts", () => ({
+ listAlertRules: vi.fn(),
+ createAlertRule: vi.fn(),
+ updateAlertRule: vi.fn(),
+ deleteAlertRule: vi.fn(),
+ listAlertEvents: vi.fn(),
+ updateAlertEventStatus: vi.fn(),
+}));
+vi.mock("../lib/api/metrics", () => ({
+ listMetrics: vi.fn(),
+ createMetric: vi.fn(),
+}));
+
+import { useOrg } from "../lib/org-context";
+import { deleteService, getService } from "../lib/api/services";
+import { listAlertRules, listAlertEvents } from "../lib/api/alerts";
+import { listMetrics } from "../lib/api/metrics";
+
+function makeService(overrides: Partial = {}): Service {
+ return {
+ id: "svc-1",
+ org_id: "org-1",
+ name: "API",
+ slug: "api",
+ description: "The main API",
+ status: "healthy",
+ repository_url: "https://example.com/repo",
+ created_at: "2026-01-01T00:00:00Z",
+ updated_at: "2026-01-02T00:00:00Z",
+ ...overrides,
+ };
+}
+
+function renderPage(path = "/services/svc-1") {
+ const queryClient = new QueryClient({
+ defaultOptions: { queries: { retry: false }, mutations: { retry: false } },
+ });
+ return render(
+
+
+
+ Services list} />
+ } />
+
+
+ ,
+ );
+}
+
+describe("ServiceDetailPage", () => {
+ beforeEach(() => {
+ vi.clearAllMocks();
+ vi.mocked(useOrg).mockReturnValue({
+ orgs: [{ id: "org-1", name: "Acme" }],
+ selectedOrgId: "org-1",
+ selectOrg: vi.fn(),
+ createOrg: vi.fn(),
+ error: null,
+ retry: vi.fn(),
+ isLoading: false,
+ });
+ vi.mocked(listAlertRules).mockResolvedValue([]);
+ vi.mocked(listAlertEvents).mockResolvedValue({ items: [], total: 0, limit: 20, offset: 0 });
+ vi.mocked(listMetrics).mockResolvedValue({ items: [], total: 0, limit: 20, offset: 0 });
+ });
+
+ test("renders the service name and description in the Overview tab", async () => {
+ vi.mocked(getService).mockResolvedValue(makeService());
+
+ renderPage();
+
+ expect(await screen.findByRole("heading", { name: "API" })).toBeTruthy();
+ expect(screen.getByText("The main API")).toBeTruthy();
+ expect(getService).toHaveBeenCalledWith("org-1", "svc-1");
+ });
+
+ test("shows a not-found state when getService 404s", async () => {
+ vi.mocked(getService).mockRejectedValue(new ApiError(404, "Service not found"));
+
+ renderPage();
+
+ expect(await screen.findByText(/could not be found/i)).toBeTruthy();
+ expect(screen.queryByRole("heading", { name: "API" })).toBeNull();
+ });
+
+ test("shows a generic error state with retry for non-404 failures", async () => {
+ vi.mocked(getService).mockRejectedValueOnce(new ApiError(500, "boom"));
+ vi.mocked(getService).mockResolvedValueOnce(makeService());
+
+ renderPage();
+
+ expect(await screen.findByText(/failed to load this service/i)).toBeTruthy();
+
+ const user = userEvent.setup();
+ await user.click(screen.getByRole("button", { name: /retry/i }));
+
+ expect(await screen.findByRole("heading", { name: "API" })).toBeTruthy();
+ });
+
+ test("renders all four tabs, each showing real content", async () => {
+ vi.mocked(getService).mockResolvedValue(makeService());
+
+ renderPage();
+
+ expect(await screen.findByRole("heading", { name: "API" })).toBeTruthy();
+
+ const user = userEvent.setup();
+ await user.click(screen.getByRole("tab", { name: "Alert Rules" }));
+ expect(await screen.findByText(/no alert rules yet/i)).toBeTruthy();
+
+ await user.click(screen.getByRole("tab", { name: "Alert Events" }));
+ expect(await screen.findByText(/no alert events yet/i)).toBeTruthy();
+
+ await user.click(screen.getByRole("tab", { name: "Metrics" }));
+ expect(await screen.findByText(/no metric snapshots yet/i)).toBeTruthy();
+ });
+
+ test("marks the selected tab active via data-active (not the unsupported data-selected)", async () => {
+ vi.mocked(getService).mockResolvedValue(makeService());
+
+ renderPage();
+
+ const overviewTab = await screen.findByRole("tab", { name: "Overview" });
+ expect(overviewTab.getAttribute("data-active")).not.toBeNull();
+ expect(overviewTab.className).toContain("data-[active]:text-accent-orange");
+
+ const user = userEvent.setup();
+ const alertRulesTab = screen.getByRole("tab", { name: "Alert Rules" });
+ await user.click(alertRulesTab);
+
+ await waitFor(() => expect(alertRulesTab.getAttribute("data-active")).not.toBeNull());
+ expect(overviewTab.getAttribute("data-active")).toBeNull();
+ });
+
+ test("shows a 404 error and refetches when deleting an already-gone service", async () => {
+ vi.mocked(getService).mockResolvedValueOnce(makeService());
+ vi.mocked(deleteService).mockRejectedValue(new ApiError(404, "Service not found"));
+ vi.mocked(getService).mockRejectedValueOnce(new ApiError(404, "Service not found"));
+
+ renderPage();
+
+ expect(await screen.findByRole("heading", { name: "API" })).toBeTruthy();
+
+ const user = userEvent.setup();
+ await user.click(screen.getByRole("button", { name: /delete/i }));
+
+ // The error handler sets an action error and refetches; the refetch's
+ // 404 then switches the page to its not-found view (which replaces the
+ // action-error paragraph), same as `IncidentDetailPage`'s equivalent --
+ // so the end state to assert is the not-found view, not a surviving
+ // action-error message.
+ await waitFor(() => expect(getService).toHaveBeenCalledTimes(2));
+ expect(await screen.findByText(/could not be found/i)).toBeTruthy();
+ });
+
+ test("deleting the service navigates back to the services list", async () => {
+ vi.mocked(getService).mockResolvedValue(makeService());
+ vi.mocked(deleteService).mockResolvedValue(undefined);
+
+ renderPage();
+
+ expect(await screen.findByRole("heading", { name: "API" })).toBeTruthy();
+
+ const user = userEvent.setup();
+ await user.click(screen.getByRole("button", { name: /delete/i }));
+
+ await waitFor(() => expect(deleteService).toHaveBeenCalledWith("org-1", "svc-1"));
+ expect(await screen.findByText("Services list")).toBeTruthy();
+ });
+});
diff --git a/frontend/src/pages/ServiceDetailPage.tsx b/frontend/src/pages/ServiceDetailPage.tsx
new file mode 100644
index 0000000..3a92d32
--- /dev/null
+++ b/frontend/src/pages/ServiceDetailPage.tsx
@@ -0,0 +1,224 @@
+import { Tabs } from "@base-ui/react/tabs";
+import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
+import { useState } from "react";
+import { Link, useNavigate, useParams } from "react-router-dom";
+import { AlertEventsTab } from "../components/AlertEventsTab";
+import { AlertRulesTab } from "../components/AlertRulesTab";
+import { MetricsTab } from "../components/MetricsTab";
+import {
+ ServiceFormDialog,
+ type ServiceFormInitialValues,
+ type ServiceFormValues,
+} from "../components/ServiceFormDialog";
+import { ApiError } from "../lib/api/client";
+import { deleteService, getService, updateService } from "../lib/api/services";
+import { useOrg } from "../lib/org-context";
+
+// Base UI's Tabs.Tab sets `data-active` (confirmed against
+// `@base-ui/react/tabs/tab/TabsTabDataAttributes.d.ts`), not `data-selected`
+// -- the selected tab's indicator color is the spec's accent orange.
+const TAB_TRIGGER_CLASSES =
+ "rounded px-3 py-2 text-sm text-ink data-[active]:text-accent-orange hover:bg-surface";
+
+export function ServiceDetailPage() {
+ const { id: serviceId } = useParams<{ id: string }>();
+ const { selectedOrgId } = useOrg();
+ const navigate = useNavigate();
+ const queryClient = useQueryClient();
+ const [editOpen, setEditOpen] = useState(false);
+ const [actionError, setActionError] = useState(null);
+
+ const queryKey = ["service", selectedOrgId, serviceId];
+ const {
+ data: service,
+ isLoading,
+ isError,
+ error,
+ refetch,
+ } = useQuery({
+ queryKey,
+ queryFn: () => getService(selectedOrgId as string, serviceId as string),
+ enabled: selectedOrgId != null && serviceId != null,
+ });
+
+ const updateMutation = useMutation({
+ mutationFn: ({
+ values,
+ dirtyFields,
+ }: {
+ values: ServiceFormValues;
+ dirtyFields: Partial>;
+ }) =>
+ updateService(selectedOrgId as string, serviceId as string, {
+ name: values.name,
+ description: values.description || undefined,
+ repository_url: values.repository_url || undefined,
+ status: dirtyFields.status ? values.status : undefined,
+ }),
+ onSuccess: () => {
+ void queryClient.invalidateQueries({ queryKey });
+ void queryClient.invalidateQueries({ queryKey: ["services", selectedOrgId] });
+ },
+ });
+
+ const deleteMutation = useMutation({
+ mutationFn: () => deleteService(selectedOrgId as string, serviceId as string),
+ onSuccess: () => {
+ void queryClient.invalidateQueries({ queryKey: ["services", selectedOrgId] });
+ navigate("/services");
+ },
+ onError: (err) => {
+ // A 404 here means someone else already deleted this service since
+ // we loaded it; surface the error and refetch so the page reflects
+ // reality (shows the not-found state) instead of continuing to
+ // display a service that no longer exists, same pattern as
+ // `IncidentDetailPage`'s status-update error handling.
+ setActionError(
+ err instanceof ApiError ? err.detail : "Something went wrong. Please try again.",
+ );
+ void refetch();
+ },
+ });
+
+ if (!selectedOrgId || !serviceId) {
+ return Select an organization to view this service.
;
+ }
+
+ if (isLoading) {
+ return Loading service...
;
+ }
+
+ if (isError) {
+ if (error instanceof ApiError && error.status === 404) {
+ return (
+
+
This service could not be found.
+
+ Back to services
+
+
+ );
+ }
+
+ return (
+
+
Failed to load this service.
+
void refetch()}
+ className="rounded border border-hairline px-3 py-2 text-sm text-ink"
+ >
+ Retry
+
+
+ );
+ }
+
+ if (!service) {
+ return null;
+ }
+
+ return (
+
+
+
+
{service.name}
+
{service.slug}
+
+
+ setEditOpen(true)}
+ className="rounded border border-hairline px-3 py-2 text-sm text-ink"
+ >
+ Edit
+
+ deleteMutation.mutate()}
+ className="rounded border border-hairline px-3 py-2 text-sm text-critical"
+ >
+ Delete
+
+
+
+
+ {actionError &&
{actionError}
}
+
+
+
+
+ Overview
+
+
+ Alert Rules
+
+
+ Alert Events
+
+
+ Metrics
+
+
+
+
+
+ Id
+ {service.id}
+
+ Status
+ {service.status}
+
+ Description
+ {service.description ?? ""}
+
+ Repository
+ {service.repository_url ?? ""}
+
+ Created
+ {service.created_at}
+
+ Updated
+ {service.updated_at}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{
+ await updateMutation.mutateAsync({ values, dirtyFields });
+ }}
+ />
+
+ );
+}
+
+function toInitialValues(service: {
+ name: string;
+ description: string | null;
+ repository_url: string | null;
+ status: ServiceFormInitialValues["status"];
+}): ServiceFormInitialValues {
+ return {
+ name: service.name,
+ description: service.description,
+ repository_url: service.repository_url,
+ status: service.status,
+ };
+}
+
+export default ServiceDetailPage;
diff --git a/frontend/src/pages/ServicesListPage.test.tsx b/frontend/src/pages/ServicesListPage.test.tsx
new file mode 100644
index 0000000..db00dfd
--- /dev/null
+++ b/frontend/src/pages/ServicesListPage.test.tsx
@@ -0,0 +1,303 @@
+import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
+import { render, screen, waitFor } from "@testing-library/react";
+import userEvent from "@testing-library/user-event";
+import { MemoryRouter } from "react-router-dom";
+import { beforeEach, describe, expect, test, vi } from "vitest";
+import { ApiError } from "../lib/api/client";
+import type { Service } from "../lib/api/services";
+import { ServicesListPage } from "./ServicesListPage";
+
+vi.mock("../lib/org-context", () => ({
+ useOrg: vi.fn(),
+}));
+vi.mock("../lib/api/services", () => ({
+ listServices: vi.fn(),
+ createService: vi.fn(),
+ updateService: vi.fn(),
+ deleteService: vi.fn(),
+}));
+
+import { useOrg } from "../lib/org-context";
+import { deleteService, listServices, updateService } from "../lib/api/services";
+
+function renderPage() {
+ const queryClient = new QueryClient({
+ defaultOptions: { queries: { retry: false }, mutations: { retry: false } },
+ });
+ return render(
+
+
+
+
+ ,
+ );
+}
+
+function mockOrg(selectedOrgId: string) {
+ vi.mocked(useOrg).mockReturnValue({
+ orgs: [{ id: selectedOrgId, name: "Acme" }],
+ selectedOrgId,
+ selectOrg: vi.fn(),
+ createOrg: vi.fn(),
+ error: null,
+ retry: vi.fn(),
+ isLoading: false,
+ });
+}
+
+// `Service` now carries the full backend record; these tests only care
+// about `id`/`name`/`description`, so fill the rest with defaults.
+function makeService(
+ overrides: { id: string; name: string; description: string | null } & Partial,
+): Service {
+ return {
+ org_id: "org-1",
+ slug: overrides.id,
+ status: "unknown",
+ repository_url: null,
+ created_at: "2026-01-01T00:00:00Z",
+ updated_at: "2026-01-01T00:00:00Z",
+ ...overrides,
+ };
+}
+
+function mockPage(items: ({ id: string; name: string; description: string | null } & Partial)[]) {
+ return { items: items.map(makeService), total: items.length, limit: 20, offset: 0 };
+}
+
+describe("ServicesListPage", () => {
+ beforeEach(() => {
+ vi.clearAllMocks();
+ vi.mocked(useOrg).mockReturnValue({
+ orgs: [{ id: "org-1", name: "Acme" }],
+ selectedOrgId: "org-1",
+ selectOrg: vi.fn(),
+ createOrg: vi.fn(),
+ error: null,
+ retry: vi.fn(),
+ isLoading: false,
+ });
+ });
+
+ test("renders a row per service returned by the API", async () => {
+ vi.mocked(listServices).mockResolvedValue(
+ mockPage([
+ { id: "svc-1", name: "API", description: "The main API" },
+ { id: "svc-2", name: "Worker", description: null },
+ ]),
+ );
+
+ renderPage();
+
+ expect(await screen.findByText("API")).toBeTruthy();
+ expect(screen.getByText("The main API")).toBeTruthy();
+ expect(screen.getByText("Worker")).toBeTruthy();
+ expect(listServices).toHaveBeenCalledWith("org-1", { limit: 20, offset: 0 });
+ });
+
+ test("renders the service name as a link to its detail page", async () => {
+ vi.mocked(listServices).mockResolvedValue(
+ mockPage([{ id: "svc-1", name: "API", description: "The main API" }]),
+ );
+
+ renderPage();
+
+ const nameLink = await screen.findByRole("link", { name: "API" });
+ expect(nameLink.getAttribute("href")).toBe("/services/svc-1");
+ });
+
+ test("shows the empty state when total is 0", async () => {
+ vi.mocked(listServices).mockResolvedValue(mockPage([]));
+
+ renderPage();
+
+ expect(await screen.findByText(/no services yet/i)).toBeTruthy();
+ });
+
+ test("shows an error state and a retry action when the request fails", async () => {
+ vi.mocked(listServices).mockRejectedValueOnce(new ApiError(500, "boom"));
+ vi.mocked(listServices).mockResolvedValueOnce(
+ mockPage([{ id: "svc-1", name: "API", description: null }]),
+ );
+
+ renderPage();
+
+ expect(await screen.findByText(/failed to load services/i)).toBeTruthy();
+
+ const user = userEvent.setup();
+ await user.click(screen.getByRole("button", { name: /retry/i }));
+
+ expect(await screen.findByText("API")).toBeTruthy();
+ });
+
+ test("removes a service from the list after a successful delete", async () => {
+ vi.mocked(listServices).mockResolvedValueOnce(
+ mockPage([{ id: "svc-1", name: "API", description: null }]),
+ );
+ vi.mocked(deleteService).mockResolvedValue(undefined);
+ vi.mocked(listServices).mockResolvedValueOnce(mockPage([]));
+
+ renderPage();
+
+ expect(await screen.findByText("API")).toBeTruthy();
+
+ const user = userEvent.setup();
+ await user.click(screen.getByRole("button", { name: /delete/i }));
+
+ await waitFor(() => expect(deleteService).toHaveBeenCalledWith("org-1", "svc-1"));
+ expect(await screen.findByText(/no services yet/i)).toBeTruthy();
+ });
+
+ test("shows a 404 error and refetches the list when deleting an already-gone service", async () => {
+ vi.mocked(listServices).mockResolvedValueOnce(
+ mockPage([{ id: "svc-1", name: "API", description: null }]),
+ );
+ vi.mocked(deleteService).mockRejectedValue(new ApiError(404, "Service not found"));
+ vi.mocked(listServices).mockResolvedValueOnce(mockPage([]));
+
+ renderPage();
+
+ expect(await screen.findByText("API")).toBeTruthy();
+
+ const user = userEvent.setup();
+ await user.click(screen.getByRole("button", { name: /delete/i }));
+
+ expect(await screen.findByText("Service not found")).toBeTruthy();
+ await waitFor(() => expect(listServices).toHaveBeenCalledTimes(2));
+ expect(await screen.findByText(/no services yet/i)).toBeTruthy();
+ });
+
+ test("editing a service without touching status does not send status in the update", async () => {
+ vi.mocked(listServices).mockResolvedValue(
+ mockPage([{ id: "svc-1", name: "API", description: "The main API" }]),
+ );
+ vi.mocked(updateService).mockResolvedValue(
+ makeService({ id: "svc-1", name: "API v2", description: "The main API" }),
+ );
+
+ renderPage();
+
+ expect(await screen.findByText("API")).toBeTruthy();
+
+ const user = userEvent.setup();
+ await user.click(screen.getByRole("button", { name: /edit/i }));
+
+ const nameInput = await screen.findByLabelText(/name/i);
+ await user.clear(nameInput);
+ await user.type(nameInput, "API v2");
+ // Deliberately leave the Status field untouched.
+ await user.click(screen.getByRole("button", { name: /save changes/i }));
+
+ await waitFor(() => expect(updateService).toHaveBeenCalled());
+ const [, , body] = vi.mocked(updateService).mock.calls[0];
+ // `status: undefined` (rather than the hardcoded "unknown" the edit
+ // form was seeded with) is what makes `JSON.stringify` drop the key
+ // from the actual PATCH body sent over the wire.
+ expect(body.status).toBeUndefined();
+ });
+
+ test("resets pagination to the first page when the selected org changes", async () => {
+ vi.mocked(listServices).mockResolvedValue({
+ items: Array.from({ length: 20 }, (_, i) =>
+ makeService({ id: `svc-${i}`, name: `Service ${i}`, description: null }),
+ ),
+ total: 50,
+ limit: 20,
+ offset: 0,
+ });
+
+ const queryClient = new QueryClient({
+ defaultOptions: { queries: { retry: false }, mutations: { retry: false } },
+ });
+ const { rerender } = render(
+
+
+
+
+ ,
+ );
+
+ expect(await screen.findByText("Service 0")).toBeTruthy();
+
+ const user = userEvent.setup();
+ await user.click(screen.getByRole("button", { name: /next/i }));
+
+ await waitFor(() =>
+ expect(listServices).toHaveBeenCalledWith("org-1", { limit: 20, offset: 20 }),
+ );
+
+ mockOrg("org-2");
+ rerender(
+
+
+
+
+ ,
+ );
+
+ await waitFor(() =>
+ expect(listServices).toHaveBeenCalledWith("org-2", { limit: 20, offset: 0 }),
+ );
+ });
+
+ test("invalidates the list on a 404 edit (not just on success), so the row drops after Cancel", async () => {
+ vi.mocked(listServices).mockResolvedValueOnce(
+ mockPage([{ id: "svc-1", name: "API", description: null }]),
+ );
+ vi.mocked(updateService).mockRejectedValue(new ApiError(404, "Service not found"));
+ vi.mocked(listServices).mockResolvedValueOnce(mockPage([]));
+
+ renderPage();
+
+ expect(await screen.findByText("API")).toBeTruthy();
+
+ const user = userEvent.setup();
+ await user.click(screen.getByRole("button", { name: /edit/i }));
+ await user.click(screen.getByRole("button", { name: /save changes/i }));
+
+ // The mutation's `onSettled` invalidation fires on this failed submit,
+ // not only on a later success -- the list refetch (and the row
+ // dropping) doesn't wait for Cancel.
+ await waitFor(() => expect(listServices).toHaveBeenCalledTimes(2));
+
+ await user.click(screen.getByRole("button", { name: /cancel/i }));
+
+ expect(await screen.findByText(/no services yet/i)).toBeTruthy();
+ });
+
+ test("steps pagination back a page after deleting the only row on page 2", async () => {
+ vi.mocked(listServices).mockResolvedValueOnce({
+ items: Array.from({ length: 20 }, (_, i) =>
+ makeService({ id: `svc-${i}`, name: `Service ${i}`, description: null }),
+ ),
+ total: 21,
+ limit: 20,
+ offset: 0,
+ });
+ vi.mocked(listServices).mockResolvedValueOnce(
+ mockPage([{ id: "svc-last", name: "Last one", description: null }]),
+ );
+
+ renderPage();
+
+ expect(await screen.findByText("Service 0")).toBeTruthy();
+
+ const user = userEvent.setup();
+ await user.click(screen.getByRole("button", { name: /next/i }));
+ expect(await screen.findByText("Last one")).toBeTruthy();
+
+ vi.mocked(deleteService).mockResolvedValue(undefined);
+ // After the delete, the offset-20 query returns an empty page with
+ // total 0 (the deletion's own invalidation refetch); the component
+ // should step `offset` back to 0 and land on a real page, not an
+ // empty table under a "Showing 21-20 of 20" footer.
+ vi.mocked(listServices).mockResolvedValue(mockPage([]));
+
+ await user.click(screen.getByRole("button", { name: /delete/i }));
+
+ await waitFor(() =>
+ expect(listServices).toHaveBeenCalledWith("org-1", { limit: 20, offset: 0 }),
+ );
+ expect(screen.queryByText(/showing 21-20/i)).toBeNull();
+ });
+});
diff --git a/frontend/src/pages/ServicesListPage.tsx b/frontend/src/pages/ServicesListPage.tsx
new file mode 100644
index 0000000..4be65d4
--- /dev/null
+++ b/frontend/src/pages/ServicesListPage.tsx
@@ -0,0 +1,295 @@
+import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
+import { useState } from "react";
+import { Link } from "react-router-dom";
+import {
+ ServiceFormDialog,
+ type ServiceFormInitialValues,
+ type ServiceFormValues,
+} from "../components/ServiceFormDialog";
+import { ApiError } from "../lib/api/client";
+import {
+ createService,
+ deleteService,
+ listServices,
+ updateService,
+ type Service,
+} from "../lib/api/services";
+import { useOrg } from "../lib/org-context";
+
+const PAGE_LIMIT = 20;
+
+export function ServicesListPage() {
+ const { selectedOrgId } = useOrg();
+ const queryClient = useQueryClient();
+ const [offset, setOffset] = useState(0);
+ // Switching orgs while on page 2+ would otherwise re-query the new org
+ // with a stale offset (e.g. showing "Showing 21-20 of 5"). Track the org
+ // we last paginated for and reset to the first page as soon as it
+ // changes -- done here during render (React's documented pattern for
+ // resetting state when a prop changes) rather than in an effect, so the
+ // stale-offset query is never issued in the first place.
+ const [paginatedOrgId, setPaginatedOrgId] = useState(selectedOrgId);
+ if (selectedOrgId !== paginatedOrgId) {
+ setPaginatedOrgId(selectedOrgId);
+ setOffset(0);
+ }
+ const [actionError, setActionError] = useState(null);
+ const [dialogState, setDialogState] = useState<
+ | { open: false }
+ | { open: true; mode: "create" }
+ | { open: true; mode: "edit"; service: Service }
+ >({ open: false });
+
+ const queryKey = ["services", selectedOrgId, PAGE_LIMIT, offset];
+ const {
+ data,
+ isLoading,
+ isError,
+ refetch,
+ } = useQuery({
+ queryKey,
+ queryFn: () => listServices(selectedOrgId as string, { limit: PAGE_LIMIT, offset }),
+ enabled: selectedOrgId != null,
+ });
+
+ // Deleting the only remaining row on page 2+ re-queries the same offset
+ // and gets back `items: []` with `total > 0` -- step back one page so
+ // the next render re-queries a page that actually has rows, instead of
+ // rendering an empty table under a footer claiming a page that doesn't
+ // exist (e.g. "Showing 21-20 of 20"). Same render-time adjustment
+ // pattern as the org-change reset above.
+ if (data && data.items.length === 0 && data.total > 0 && offset > 0) {
+ setOffset((prev) => Math.max(0, prev - PAGE_LIMIT));
+ }
+
+ function invalidate() {
+ void queryClient.invalidateQueries({ queryKey: ["services", selectedOrgId] });
+ }
+
+ const createMutation = useMutation({
+ mutationFn: (values: ServiceFormValues) =>
+ createService(selectedOrgId as string, {
+ name: values.name,
+ description: values.description || undefined,
+ repository_url: values.repository_url || undefined,
+ }),
+ onSuccess: () => invalidate(),
+ });
+
+ const updateMutation = useMutation({
+ mutationFn: ({
+ serviceId,
+ values,
+ statusTouched,
+ }: {
+ serviceId: string;
+ values: ServiceFormValues;
+ statusTouched: boolean;
+ }) =>
+ updateService(selectedOrgId as string, serviceId, {
+ name: values.name,
+ description: values.description || undefined,
+ repository_url: values.repository_url || undefined,
+ // Even though `toInitialValues` now seeds the form with the
+ // service's real current status, only send `status` when the user
+ // actually touched the field -- it keeps this mutation's payload
+ // minimal and mirrors the "send only if touched" treatment above
+ // for the other fields, rather than depending on the form always
+ // being seeded correctly.
+ status: statusTouched ? values.status : undefined,
+ }),
+ // `onSettled`, not `onSuccess`: a 404 here means someone else already
+ // deleted this service since the list was fetched, and the dialog's
+ // error display isn't enough on its own -- the row needs to disappear
+ // from the list on Cancel too, same as the delete mutation below.
+ onSettled: () => invalidate(),
+ });
+
+ const deleteMutation = useMutation({
+ mutationFn: (serviceId: string) => deleteService(selectedOrgId as string, serviceId),
+ onError: (err) => {
+ // A 404 here means someone else already deleted this service (a
+ // stale row in our list); any other failure is surfaced the same
+ // way. Either way, the `onSettled` refetch below makes the list
+ // reflect reality instead of leaving a row the user just tried to
+ // act on.
+ setActionError(
+ err instanceof ApiError ? err.detail : "Something went wrong. Please try again.",
+ );
+ },
+ onSuccess: () => setActionError(null),
+ // `invalidateQueries` already refetches this query since it's active
+ // (mounted and being observed), so there's no need to also call
+ // `refetch()` -- doing both would fire two requests.
+ onSettled: () => invalidate(),
+ });
+
+ async function handleCreate(values: ServiceFormValues) {
+ if (!selectedOrgId) return;
+ await createMutation.mutateAsync(values);
+ }
+
+ async function handleEdit(
+ service: Service,
+ values: ServiceFormValues,
+ dirtyFields: Partial>,
+ ) {
+ if (!selectedOrgId) return;
+ await updateMutation.mutateAsync({
+ serviceId: service.id,
+ values,
+ statusTouched: Boolean(dirtyFields.status),
+ });
+ }
+
+ function handleDelete(service: Service) {
+ if (!selectedOrgId) return;
+ deleteMutation.mutate(service.id);
+ }
+
+ if (!selectedOrgId) {
+ return Select an organization to view its services.
;
+ }
+
+ const items = data?.items ?? [];
+ const total = data?.total ?? 0;
+ const hasPrevious = offset > 0;
+ const hasNext = offset + PAGE_LIMIT < total;
+
+ return (
+
+
+
Services
+ setDialogState({ open: true, mode: "create" })}
+ className="rounded bg-accent-blue px-3 py-2 text-sm text-ink"
+ >
+ New service
+
+
+
+ {actionError &&
{actionError}
}
+
+ {isLoading &&
Loading services...
}
+
+ {isError && !isLoading && (
+
+
Failed to load services.
+
void refetch()}
+ className="rounded border border-hairline px-3 py-2 text-sm text-ink"
+ >
+ Retry
+
+
+ )}
+
+ {!isLoading && !isError && total === 0 && (
+
No services yet. Create one to get started.
+ )}
+
+ {!isLoading && !isError && total > 0 && (
+ <>
+
+
+
+ Name
+ Description
+ Actions
+
+
+
+ {items.map((service) => (
+
+
+
+ {service.name}
+
+
+ {service.description ?? ""}
+
+
+ setDialogState({ open: true, mode: "edit", service })}
+ className="rounded border border-hairline px-2 py-1 text-xs text-ink"
+ >
+ Edit
+
+ handleDelete(service)}
+ className="rounded border border-hairline px-2 py-1 text-xs text-critical"
+ >
+ Delete
+
+
+
+
+ ))}
+
+
+
+
+
+ Showing {offset + 1}-{Math.min(offset + PAGE_LIMIT, total)} of {total}
+
+
+ setOffset((prev) => Math.max(0, prev - PAGE_LIMIT))}
+ className="rounded border border-hairline px-3 py-1 disabled:opacity-40"
+ >
+ Previous
+
+ setOffset((prev) => prev + PAGE_LIMIT)}
+ className="rounded border border-hairline px-3 py-1 disabled:opacity-40"
+ >
+ Next
+
+
+
+ >
+ )}
+
+
{
+ if (!open) setDialogState({ open: false });
+ }}
+ onSubmit={(values, dirtyFields) => {
+ if (dialogState.open && dialogState.mode === "edit") {
+ return handleEdit(dialogState.service, values, dirtyFields);
+ }
+ return handleCreate(values);
+ }}
+ />
+
+ );
+}
+
+function toInitialValues(service: Service): ServiceFormInitialValues {
+ return {
+ name: service.name,
+ description: service.description,
+ repository_url: service.repository_url,
+ status: service.status,
+ };
+}
+
+export default ServicesListPage;
diff --git a/frontend/src/routes.tsx b/frontend/src/routes.tsx
new file mode 100644
index 0000000..4d50c3c
--- /dev/null
+++ b/frontend/src/routes.tsx
@@ -0,0 +1,34 @@
+import { createBrowserRouter } from "react-router-dom";
+import { AppLayout } from "./components/AppLayout";
+import { DashboardPage } from "./pages/DashboardPage";
+import { IncidentDetailPage } from "./pages/IncidentDetailPage";
+import { IncidentsListPage } from "./pages/IncidentsListPage";
+import { LoginPage } from "./pages/LoginPage";
+import { MembersPage } from "./pages/MembersPage";
+import { RegisterPage } from "./pages/RegisterPage";
+import { ServiceDetailPage } from "./pages/ServiceDetailPage";
+import { ServicesListPage } from "./pages/ServicesListPage";
+
+// `/login` and `/register` are public; everything else renders inside
+// `AppLayout`, which redirects to `/login` when there's no authenticated
+// user. `/` is the dashboard; `/services` and `/incidents` etc. are the
+// other top-level pages it summarizes.
+export const router = createBrowserRouter([
+ { path: "/login", element: },
+ { path: "/register", element: },
+ {
+ path: "/",
+ element: ,
+ children: [
+ {
+ index: true,
+ element: ,
+ },
+ { path: "services", element: },
+ { path: "services/:id", element: },
+ { path: "incidents", element: },
+ { path: "incidents/:id", element: },
+ { path: "members", element: },
+ ],
+ },
+]);
diff --git a/frontend/src/test/setup.ts b/frontend/src/test/setup.ts
new file mode 100644
index 0000000..d0de870
--- /dev/null
+++ b/frontend/src/test/setup.ts
@@ -0,0 +1 @@
+import "@testing-library/jest-dom";
diff --git a/frontend/tailwind.config.ts b/frontend/tailwind.config.ts
new file mode 100644
index 0000000..a658b49
--- /dev/null
+++ b/frontend/tailwind.config.ts
@@ -0,0 +1,23 @@
+import type { Config } from "tailwindcss";
+
+export default {
+ content: ["./index.html", "./src/**/*.{ts,tsx}"],
+ theme: {
+ extend: {
+ colors: {
+ bg: "#0B0C0E",
+ surface: "#16181C",
+ ink: "#E7E9EC",
+ hairline: "#2A2D31",
+ "accent-blue": "#2E42B8",
+ "accent-orange": "#D9732B",
+ critical: "#C73E34",
+ },
+ fontFamily: {
+ sans: ["IBM Plex Sans", "sans-serif"],
+ mono: ["IBM Plex Mono", "monospace"],
+ },
+ },
+ },
+ plugins: [],
+} satisfies Config;
diff --git a/frontend/tsconfig.app.json b/frontend/tsconfig.app.json
new file mode 100644
index 0000000..ddea15b
--- /dev/null
+++ b/frontend/tsconfig.app.json
@@ -0,0 +1,29 @@
+{
+ "compilerOptions": {
+ "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
+ "paths": {
+ "@/*": ["./src/*"]
+ },
+ "target": "es2023",
+ "lib": ["ES2023", "DOM"],
+ "module": "esnext",
+ "types": ["vite/client"],
+ "allowArbitraryExtensions": true,
+ "skipLibCheck": true,
+
+ /* Bundler mode */
+ "moduleResolution": "bundler",
+ "allowImportingTsExtensions": true,
+ "verbatimModuleSyntax": true,
+ "moduleDetection": "force",
+ "noEmit": true,
+ "jsx": "react-jsx",
+
+ /* Linting */
+ "noUnusedLocals": true,
+ "noUnusedParameters": true,
+ "erasableSyntaxOnly": true,
+ "noFallthroughCasesInSwitch": true
+ },
+ "include": ["src"]
+}
diff --git a/frontend/tsconfig.json b/frontend/tsconfig.json
new file mode 100644
index 0000000..1ffef60
--- /dev/null
+++ b/frontend/tsconfig.json
@@ -0,0 +1,7 @@
+{
+ "files": [],
+ "references": [
+ { "path": "./tsconfig.app.json" },
+ { "path": "./tsconfig.node.json" }
+ ]
+}
diff --git a/frontend/tsconfig.node.json b/frontend/tsconfig.node.json
new file mode 100644
index 0000000..8455dcb
--- /dev/null
+++ b/frontend/tsconfig.node.json
@@ -0,0 +1,23 @@
+{
+ "compilerOptions": {
+ "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
+ "target": "es2023",
+ "lib": ["ES2023"],
+ "types": ["node"],
+ "skipLibCheck": true,
+
+ /* Bundler mode */
+ "module": "nodenext",
+ "allowImportingTsExtensions": true,
+ "verbatimModuleSyntax": true,
+ "moduleDetection": "force",
+ "noEmit": true,
+
+ /* Linting */
+ "noUnusedLocals": true,
+ "noUnusedParameters": true,
+ "erasableSyntaxOnly": true,
+ "noFallthroughCasesInSwitch": true
+ },
+ "include": ["vite.config.ts"]
+}
diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts
new file mode 100644
index 0000000..0287d1f
--- /dev/null
+++ b/frontend/vite.config.ts
@@ -0,0 +1,18 @@
+import path from 'node:path'
+import react from '@vitejs/plugin-react'
+import { defineConfig } from 'vitest/config'
+
+// https://vite.dev/config/
+export default defineConfig({
+ plugins: [react()],
+ resolve: {
+ alias: {
+ '@': path.resolve(import.meta.dirname, './src'),
+ },
+ },
+ test: {
+ environment: 'jsdom',
+ globals: true,
+ setupFiles: ['./src/test/setup.ts'],
+ },
+})