diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 02a14f18..a3ef5498 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -123,6 +123,10 @@ jobs: working-directory: frontend run: pnpm check + - name: Run tests + working-directory: frontend + run: pnpm test + - name: Build working-directory: frontend run: pnpm build diff --git a/README.md b/README.md index af3aaf6c..580bdae1 100644 --- a/README.md +++ b/README.md @@ -29,8 +29,10 @@ your data. self-hosted CRM alternative to Salesforce, HubSpot and Pipedrive. - **Multi-tenant by design**: PostgreSQL Row-Level Security enforces tenant isolation in the database, not just in application code. Run it for a single company or as a SaaS for many. -- **AI agents built in (MCP)**: connect Claude, Cursor, Codex, Gemini or any MCP client and let - it search, create and update records *as you*, inheriting your role, org and permissions. +- **Agent-ready REST API**: point Claude, Cursor, Codex, Gemini or any agent at the API with a + personal access token and let it search, create and update records *as you*, inheriting your + role, org and permissions. An OpenAPI schema ships with it, so the agent can discover the + endpoints itself. - **Web, native mobile and API**: one Django REST backend behind a Svelte 5 web app and a Flutter app for iOS and Android. - **A stack you can actually hack on**: Django 6 / DRF and Svelte 5, not a bespoke in-house @@ -47,7 +49,7 @@ your data. | **Data ownership** | Total. It is your database | Vendor-controlled | Total | | **Multi-tenancy** | Database-level RLS | Not applicable | Uncommon | | **Native mobile app** | Yes, Flutter, iOS + Android | Yes | Uncommon | -| **AI agent access** | Built-in MCP server | Proprietary add-ons | Uncommon | +| **AI agent access** | Full REST API, per-user tokens | Proprietary add-ons | Uncommon | | **Stack** | Django REST + SvelteKit | Closed source | Varies | | **License** | MIT | Proprietary | Varies, often GPL/AGPL | diff --git a/backend/common/middleware/get_company.py b/backend/common/middleware/get_company.py index aef7f425..076b94d9 100644 --- a/backend/common/middleware/get_company.py +++ b/backend/common/middleware/get_company.py @@ -41,7 +41,7 @@ class GetProfileAndOrg: request.profile = None request.org = None - # Personal Access Token (agent / MCP). Resolve here so org context is + # Personal Access Token (script / agent). Resolve here so org context is # set before RequireOrgContext runs (DRF auth runs too late for that). # MUST come before the JWT branch so a PAT bearer is never handed to # the JWT decoder. @@ -94,7 +94,7 @@ class GetProfileAndOrg: request.profile = pat.profile request.org = pat.org request.META["org"] = str(pat.org.id) - request.META["mcp_token_id"] = str(pat.id) + request.META["pat_token_id"] = str(pat.id) request._pat = pat def _process_jwt_auth(self, request): diff --git a/backend/common/middleware/rls_context.py b/backend/common/middleware/rls_context.py index 537677fa..a2eed695 100644 --- a/backend/common/middleware/rls_context.py +++ b/backend/common/middleware/rls_context.py @@ -45,12 +45,16 @@ class SetOrgContext: # Set org context before processing request self._set_org_context(request) - response = self.get_response(request) - - # Reset context after request - self._reset_org_context() - - return response + # The reset MUST run even when the view raises. `app.current_org` is + # set at SESSION scope, so it outlives the statement and the + # transaction; it is cleared only because we clear it. Without the + # finally, an exception anywhere downstream hands the connection back + # still carrying this tenant's org id, and the next request to reuse + # that connection inherits it. That is a cross-tenant read. + try: + return self.get_response(request) + finally: + self._reset_org_context() def _set_org_context(self, request): """ @@ -188,12 +192,14 @@ class RequireOrgContext: # Set org context self._set_org_context(request) - response = self.get_response(request) - - # Reset context - self._reset_org_context() - - return response + # See SetOrgContext.__call__: the reset is in a finally because + # `app.current_org` is SESSION-scoped and survives an exception. On a + # pooled or otherwise reused connection, skipping it leaks this + # tenant's context to whoever borrows the connection next. + try: + return self.get_response(request) + finally: + self._reset_org_context() def _is_exempt(self, path): """Check if path is exempt from org context requirement.""" diff --git a/backend/common/models.py b/backend/common/models.py index 586455b1..ecc8060f 100644 --- a/backend/common/models.py +++ b/backend/common/models.py @@ -853,7 +853,7 @@ def generate_pat_raw(): class PersonalAccessToken(BaseOrgModel): """ - Per-user token for programmatic/agent (MCP) access. + Per-user token for programmatic REST API access (scripts, agents). The agent authenticates AS `profile` and inherits that user's role, org and RLS scope. The raw token is shown ONCE at creation and only diff --git a/backend/common/notifications.py b/backend/common/notifications.py index c9628780..3734f93f 100644 --- a/backend/common/notifications.py +++ b/backend/common/notifications.py @@ -1,74 +1,29 @@ """In-app notification dispatcher. Single call site used by every producer (watchers, mentions, escalations, -future apps). Writes a `Notification` row, then best-effort publishes the -new row's id on a Redis pub/sub channel so the SSE consumer can fan it out -to any open browser tabs for that recipient. +future apps). Writes a `Notification` row. That row is the whole delivery +mechanism: clients poll ``GET /api/notifications/?since=`` and pick it up +on their next tick. -Channel naming: ``notif::``. See -``docs/cases/tier2/in-app-notifications.md`` "Cross-org leak". +This module used to also publish each new row's id on a Redis pub/sub channel +(``notif::``) to fan out to an SSE consumer. The SSE +stream was removed on 2026-08-03, which left the publish with no subscriber: +it opened a Redis connection per notification for nobody. Removed with it. If +a live transport ever comes back, it should be websockets via Channels rather +than the hand-rolled stream that was here, and it can reintroduce a fan-out +then. """ from __future__ import annotations import logging -import threading from typing import Any, Optional -from django.conf import settings - from common.models import Notification, Profile logger = logging.getLogger(__name__) -_redis_client = None -_redis_lock = threading.Lock() - - -def _get_redis(): - """Lazy redis-py client keyed off CELERY_BROKER_URL. - - Returns None if redis is unavailable (e.g. test environments). Callers - must treat publish as best-effort. - """ - global _redis_client - if _redis_client is not None: - return _redis_client - with _redis_lock: - if _redis_client is not None: - return _redis_client - try: - import redis # type: ignore - except ImportError: # pragma: no cover - logger.warning("redis-py not installed; notification fan-out disabled") - return None - url = getattr(settings, "CELERY_BROKER_URL", None) or "redis://localhost:6379/0" - try: - client = redis.Redis.from_url(url, socket_timeout=1, socket_connect_timeout=1) - except Exception as exc: # pragma: no cover - defensive - logger.warning("Could not build redis client for notifications: %s", exc) - return None - _redis_client = client - return client - - -def channel_for(org_id, profile_id) -> str: - return f"notif:{org_id}:{profile_id}" - - -def _publish(channel: str, payload: str) -> None: - client = _get_redis() - if client is None: - return - try: - client.publish(channel, payload) - except Exception as exc: - # Publish failure must never break the originating request. The - # row is already persisted and the user sees it on next poll/load. - logger.warning("notifications publish failed on %s: %s", channel, exc) - - def create( recipient: Profile, verb: str, @@ -79,7 +34,7 @@ def create( link: str = "", data: Optional[dict] = None, ) -> Optional[Notification]: - """Write a Notification row and publish it on the recipient's channel. + """Write a Notification row for the recipient. Returns the Notification, or ``None`` when delivery was skipped because the recipient is inactive. @@ -110,5 +65,4 @@ def create( link=link, data=data or {}, ) - _publish(channel_for(recipient.org_id, recipient.id), str(notif.id)) return notif diff --git a/backend/common/pat_auth.py b/backend/common/pat_auth.py index a78966c5..5ae15f58 100644 --- a/backend/common/pat_auth.py +++ b/backend/common/pat_auth.py @@ -69,7 +69,7 @@ class PATAuthentication(BaseAuthentication): request.profile = profile request.org = pat.org request.META["org"] = str(pat.org.id) - request.META["mcp_token_id"] = str(pat.id) + request.META["pat_token_id"] = str(pat.id) now = timezone.now() if pat.last_used_at is None or (now - pat.last_used_at).total_seconds() > 60: @@ -87,5 +87,5 @@ class PATAuthenticationScheme(OpenApiAuthenticationExtension): return { "type": "http", "scheme": "bearer", - "description": "Personal access token (bcrm_pat_…) for agent/MCP access", + "description": "Personal access token (bcrm_pat_…) for script and agent access", } diff --git a/backend/common/rls/__init__.py b/backend/common/rls/__init__.py index 5de2c1cf..89685df8 100644 --- a/backend/common/rls/__init__.py +++ b/backend/common/rls/__init__.py @@ -118,7 +118,7 @@ ORG_SCOPED_TABLES = [ # Approval workflows (Tier 3 approvals). "approval_rule", "approval", - # MCP / programmatic access + # Programmatic API access # NOTE: personal_access_token is intentionally NOT RLS-protected. It is an # auth-bootstrap table (looked up by token_hash before any tenant context # exists), mirroring the Org table. Isolation for token management is enforced diff --git a/backend/common/rls/pool.py b/backend/common/rls/pool.py new file mode 100644 index 00000000..91d6df47 --- /dev/null +++ b/backend/common/rls/pool.py @@ -0,0 +1,62 @@ +"""Connection-pool hooks that keep RLS context from leaking between tenants. + +**Why this module exists.** `app.current_org` is set with +``set_config(, , false)``, i.e. **SESSION** scope. That is deliberate: +Django runs in autocommit, so a transaction-local (`true`) setting would vanish +before the next statement in the same request. The cost is that the value +outlives the statement, the transaction, and the request. It is cleared only +because something explicitly clears it. + +Without pooling that was survivable: ``CONN_MAX_AGE=0`` closed the backend at +the end of every request, taking the session state with it. With a pool, the +same backend is handed to the next borrower still carrying the previous +tenant's org id, and every RLS policy on the database happily scopes that +borrower's queries to the wrong tenant. psycopg_pool does **not** clean session +state on its own: ``ConnectionPool._reset_connection`` only rolls back an open +transaction. A `SET`/`set_config` survives a rollback when it was made at +session scope outside that transaction. + +So the reset below is not a tidiness measure. It is the thing standing between +a pooled deployment and a cross-tenant read. + +**This module must not import Django.** ``crm/settings.py`` imports it while +building ``DATABASES``, long before the app registry is ready. It takes a raw +psycopg connection and speaks SQL. + +IMPORTANT: this module cannot be exercised by the default test suite, which +runs on SQLite (``crm/test_settings.py``) and has no ``set_config`` at all. +See ``common/tests/test_pool_rls_isolation.py``, which is marked +``postgres_only`` and needs a non-superuser role to mean anything, since a +superuser bypasses RLS entirely. +""" + +from . import CONTEXT_VARIABLE + +# Set to the empty string rather than RESET/DISCARD. The isolation policies +# generated by `get_enable_policy_sql` compare against +# `NULLIF(current_setting(, true), '')`, so empty and unset both fail +# closed to zero rows. Assigning '' keeps the GUC defined, which means +# `current_setting(, true)` never raises for later readers. +CLEAR_CONTEXT_SQL = f"SELECT set_config('{CONTEXT_VARIABLE}', '', false)" + + +def reset_rls_context(conn): + """psycopg_pool ``reset`` callback: clear tenant context before reuse. + + Contract, from ``ConnectionPool._reset_connection``: if this function + raises, or leaves the connection in any transaction status other than + IDLE, the pool logs a warning and **discards the connection**. A reset that + silently dirties every connection turns the pool into an expensive way of + opening one connection per request, which looks like pooling doing nothing + rather than like an error. Hence the explicit commit below. + + The connection arrives IDLE (the pool rolls back an open transaction before + calling us). Under autocommit the statement stands alone and we stay IDLE. + Without autocommit the statement opens a transaction, so we must commit to + return to IDLE. Commit, not rollback: a session-scoped `set_config` made + inside a transaction is *reverted* by a rollback, which would leave the + stale org id in place and defeat the entire point. + """ + conn.execute(CLEAR_CONTEXT_SQL) + if not conn.autocommit: + conn.commit() diff --git a/backend/common/tests/test_notification_api.py b/backend/common/tests/test_notification_api.py index b4414325..53a529c5 100644 --- a/backend/common/tests/test_notification_api.py +++ b/backend/common/tests/test_notification_api.py @@ -210,3 +210,69 @@ class TestDelete(NotificationAPIBase): r = self.client.delete(f"/api/notifications/{n.id}/") assert r.status_code == 404 assert Notification.objects.filter(pk=n.id).exists() + + +class TestPollingRoundTrip(NotificationAPIBase): + """The exact loop `notifications.svelte.js` runs, now that SSE is gone. + + The client keeps a high-water mark: the newest `created_at` it has + ingested, replayed as `?since=`. Two properties have to hold or the bell + either misses notifications or re-toasts the same one forever. + """ + + def _poll(self, since=None): + qs = {"limit": "20"} + if since: + qs["since"] = since + return self.client.get("/api/notifications/?" + urlencode(qs)).json() + + def test_high_water_mark_does_not_replay_or_skip(self): + first = Notification.objects.create( + org=self.org_a, recipient=self.profile_a, verb="first" + ) + + initial = self._poll() + assert [r["verb"] for r in initial["results"]] == ["first"] + mark = initial["results"][0]["created_at"] + + # 1. Replaying the mark must be empty, not the same row again. The + # filter is `created_at__gt`, strictly greater, so the boundary row + # is excluded. With `gte` the client re-toasts it every poll. + assert self._poll(mark)["results"] == [], ( + "the boundary row came back: the client would re-toast it on " + "every single poll" + ) + + # 2. A newer row must arrive, without dragging the older one back. + Notification.objects.filter(pk=first.pk).update( + created_at=timezone.now() - timedelta(minutes=5) + ) + Notification.objects.create( + org=self.org_a, recipient=self.profile_a, verb="second" + ) + after = self._poll(mark) + assert [r["verb"] for r in after["results"]] == ["second"] + + # And the new mark still terminates. + assert self._poll(after["results"][0]["created_at"])["results"] == [] + + def test_poll_reports_global_unread_not_the_since_window(self): + """The client refreshes the badge straight from the poll response. + + If `unread_count` were scoped to the `since` window it would read 0 on + every quiet poll and the badge would clear itself while unread + notifications were still sitting there. + """ + for verb in ("one", "two", "three"): + Notification.objects.create( + org=self.org_a, recipient=self.profile_a, verb=verb + ) + mark = self._poll()["results"][0]["created_at"] + + quiet = self._poll(mark) + assert quiet["results"] == [] + assert quiet["count"] == 0, "count is since-scoped, as documented" + assert quiet["unread_count"] == 3, ( + "unread_count must stay global or the bell badge zeroes itself " + "on the first quiet poll" + ) diff --git a/backend/common/tests/test_notification_sse.py b/backend/common/tests/test_notification_sse.py deleted file mode 100644 index a2045ef0..00000000 --- a/backend/common/tests/test_notification_sse.py +++ /dev/null @@ -1,192 +0,0 @@ -"""Tests for the Server-Sent Events notification stream. - -Covers: - - Pure-function helpers (`_format_sse`, `_format_keepalive`). - - The async generator `_stream_events` with an injected stub pubsub - (no real Redis required). - - The auth gate on the view. -""" - -import asyncio -import json - -from django.test import TestCase, TransactionTestCase -from rest_framework.test import APIClient - -from common.models import Notification, Org, Profile, User -from common.views import notification_views -from common.views.notification_views import ( - _format_keepalive, - _format_sse, - _stream_events, -) - - -class TestFormatHelpers: - def test_format_sse_event_shape(self): - out = _format_sse("notification", {"id": "abc", "verb": "v"}) - assert out.startswith(b"event: notification\n") - assert b"data: " in out - assert out.endswith(b"\n\n") - data_line = [l for l in out.split(b"\n") if l.startswith(b"data: ")][0] - payload = json.loads(data_line[len(b"data: "):]) - assert payload == {"id": "abc", "verb": "v"} - - def test_format_keepalive_is_comment(self): - # SSE comment lines start with ':' - assert _format_keepalive() == b": keepalive\n\n" - - -class _StubPubSub: - """Duck-typed redis.asyncio pubsub. - - Pulls messages from a list; once exhausted, returns None forever. - """ - - def __init__(self, messages=None): - self._messages = list(messages or []) - self.subscribed = [] - self.unsubscribed = [] - self.closed = False - - async def subscribe(self, channel): - self.subscribed.append(channel) - - async def unsubscribe(self, channel): - self.unsubscribed.append(channel) - - async def close(self): - self.closed = True - - async def get_message(self, ignore_subscribe_messages=False): - if self._messages: - return self._messages.pop(0) - return None - - -class TestStreamEvents(TransactionTestCase): - """Uses TransactionTestCase because the SSE generator's `sync_to_async` - DB hit opens a separate SQLite connection, incompatible with the - transaction-wrapped TestCase isolation.""" - - def setUp(self): - self.org = Org.objects.create(name="O") - self.user = User.objects.create_user(email="u@test.com", password="x") - self.profile = Profile.objects.create( - user=self.user, org=self.org, role="USER", is_active=True - ) - self.other_user = User.objects.create_user(email="x@test.com", password="x") - self.other_profile = Profile.objects.create( - user=self.other_user, org=self.org, role="USER", is_active=True - ) - - def test_first_frame_is_keepalive(self): - async def runner(): - pubsub = _StubPubSub() - gen = _stream_events("notif:o:p", recipient_id=self.profile.id, pubsub=pubsub) - first = await asyncio.wait_for(gen.__anext__(), timeout=1) - await gen.aclose() - return first - - first = asyncio.run(runner()) - assert first == b": keepalive\n\n" - - def test_emits_notification_for_pubsub_message(self): - notif = Notification.objects.create( - org=self.org, - recipient=self.profile, - verb="case.commented", - data={"comment_excerpt": "hi"}, - link="/cases/abc", - ) - - async def runner(): - pubsub = _StubPubSub([{"data": str(notif.id).encode("utf-8")}]) - gen = _stream_events( - "notif:o:p", recipient_id=self.profile.id, pubsub=pubsub - ) - first = await asyncio.wait_for(gen.__anext__(), timeout=1) - second = await asyncio.wait_for(gen.__anext__(), timeout=2) - await gen.aclose() - return first, second - - first, second = asyncio.run(runner()) - assert first == b": keepalive\n\n" - assert second.startswith(b"event: notification\n") - data_line = [l for l in second.split(b"\n") if l.startswith(b"data: ")][0] - payload = json.loads(data_line[len(b"data: "):]) - assert payload["id"] == str(notif.id) - assert payload["verb"] == "case.commented" - assert payload["link"] == "/cases/abc" - assert payload["data"] == {"comment_excerpt": "hi"} - - def test_stream_self_terminates_at_deadline(self): - """The stream must end on its own once MAX_STREAM_SECONDS elapses, so a - long-open browser tab cannot pin a worker thread / DB connection - forever (the connection-exhaustion regression).""" - async def runner(): - pubsub = _StubPubSub() # no messages -> keepalive-only loop - gen = _stream_events( - "notif:o:p", recipient_id=self.profile.id, pubsub=pubsub - ) - first = await asyncio.wait_for(gen.__anext__(), timeout=1) - stopped = False - try: - # Deadline already passed -> next pull should end the stream. - await asyncio.wait_for(gen.__anext__(), timeout=2) - except StopAsyncIteration: - stopped = True - await gen.aclose() - return first, stopped - - original = notification_views.MAX_STREAM_SECONDS - notification_views.MAX_STREAM_SECONDS = 0 - try: - first, stopped = asyncio.run(runner()) - finally: - notification_views.MAX_STREAM_SECONDS = original - assert first == b": keepalive\n\n" - assert stopped, "stream did not terminate at its deadline" - - def test_drops_message_for_other_recipient(self): - n_other = Notification.objects.create( - org=self.org, recipient=self.other_profile, verb="other" - ) - n_mine = Notification.objects.create( - org=self.org, recipient=self.profile, verb="mine" - ) - - async def runner(): - pubsub = _StubPubSub( - [ - {"data": str(n_other.id).encode("utf-8")}, - {"data": str(n_mine.id).encode("utf-8")}, - ] - ) - gen = _stream_events( - "notif:o:p", recipient_id=self.profile.id, pubsub=pubsub - ) - await asyncio.wait_for(gen.__anext__(), timeout=1) # discard initial keepalive - second = await asyncio.wait_for(gen.__anext__(), timeout=2) - await gen.aclose() - return second - - second = asyncio.run(runner()) - assert second.startswith(b"event: notification\n") - data_line = [l for l in second.split(b"\n") if l.startswith(b"data: ")][0] - payload = json.loads(data_line[len(b"data: "):]) - # Should be MINE, never the other recipient's row - assert payload["id"] == str(n_mine.id) - assert payload["verb"] == "mine" - - -class TestStreamAuth(TestCase): - def test_unauthenticated_rejected(self): - anon = APIClient() - r = anon.get("/api/notifications/stream/") - try: - assert r.status_code in (401, 403) - finally: - close = getattr(r, "close", None) - if close: - close() diff --git a/backend/common/tests/test_notifications.py b/backend/common/tests/test_notifications.py index b81b3016..ed009e0b 100644 --- a/backend/common/tests/test_notifications.py +++ b/backend/common/tests/test_notifications.py @@ -4,7 +4,6 @@ API-level coverage lives in `test_notification_api.py` once that lands. """ from datetime import timedelta -from unittest.mock import patch from django.test import TestCase from django.utils import timezone @@ -112,68 +111,58 @@ class TestNotificationModel(NotificationModelBase): class TestDispatcher(NotificationModelBase): - def test_create_writes_row_and_publishes(self): - with patch("common.notifications._publish") as pub: - n = notifications.create( - self.profile_a, - "case.commented", - actor=self.actor_profile, - link="/cases/123", - data={"comment_excerpt": "hello"}, - ) + def test_create_writes_the_row(self): + n = notifications.create( + self.profile_a, + "case.commented", + actor=self.actor_profile, + link="/cases/123", + data={"comment_excerpt": "hello"}, + ) assert n is not None assert n.org_id == self.org_a.id assert n.recipient_id == self.profile_a.id assert n.actor_id == self.actor_profile.id assert n.link == "/cases/123" assert n.data == {"comment_excerpt": "hello"} - pub.assert_called_once() - channel, payload = pub.call_args[0] - assert channel == f"notif:{self.org_a.id}:{self.profile_a.id}" - assert payload == str(n.id) def test_create_skips_inactive_recipient(self): self.profile_a.is_active = False self.profile_a.save() - with patch("common.notifications._publish") as pub: - n = notifications.create(self.profile_a, "case.commented") + n = notifications.create(self.profile_a, "case.commented") assert n is None - pub.assert_not_called() assert not Notification.objects.filter(recipient=self.profile_a).exists() def test_create_with_entity_denormalizes_type_id_name(self): account = Account.objects.create(name="Acme Corp", org=self.org_a) - with patch("common.notifications._publish"): - n = notifications.create( - self.profile_a, - "account.assigned", - entity=account, - ) + n = notifications.create( + self.profile_a, + "account.assigned", + entity=account, + ) assert n.entity_type == "Account" assert n.entity_id == account.pk assert n.entity_name == "Acme Corp" def test_create_entity_name_override(self): account = Account.objects.create(name="Acme Corp", org=self.org_a) - with patch("common.notifications._publish"): - n = notifications.create( - self.profile_a, - "account.assigned", - entity=account, - entity_name="Custom Label", - ) + n = notifications.create( + self.profile_a, + "account.assigned", + entity=account, + entity_name="Custom Label", + ) assert n.entity_name == "Custom Label" - def test_create_does_not_raise_when_redis_publish_fails(self): - # Simulate redis being totally broken. - with patch("common.notifications._get_redis") as gr: - gr.return_value = type( - "_BrokenClient", - (), - {"publish": lambda self, *a, **kw: (_ for _ in ()).throw(RuntimeError("boom"))}, - )() - # Should NOT raise. Publish is best-effort. - n = notifications.create(self.profile_a, "case.commented") + def test_create_needs_no_broker(self): + """The row IS the delivery mechanism. + + `create()` used to publish on Redis for the SSE stream to fan out. + That stream is gone, so notification delivery must not depend on a + broker being reachable at all: clients pick the row up on their next + `?since=` poll. Nothing is patched here on purpose. + """ + n = notifications.create(self.profile_a, "case.commented") assert n is not None assert Notification.objects.filter(pk=n.pk).exists() diff --git a/backend/common/tests/test_pool_rls_isolation.py b/backend/common/tests/test_pool_rls_isolation.py new file mode 100644 index 00000000..7068ec9a --- /dev/null +++ b/backend/common/tests/test_pool_rls_isolation.py @@ -0,0 +1,164 @@ +"""Proof that connection pooling cannot leak RLS context between tenants. + +``app.current_org`` is a SESSION-scoped GUC (``set_config(..., false)``). It +survives the statement, the transaction, and the request. psycopg_pool does not +clear session state when a connection is returned: ``_reset_connection`` only +rolls back an open transaction. So a pool WITHOUT +``common.rls.pool.reset_rls_context`` hands the next borrower a backend still +scoped to the previous tenant, and every RLS policy on the database obediently +serves that borrower the wrong tenant's rows. + +These tests build their own single-connection ``ConnectionPool`` rather than +driving Django's. Two reasons: + +* ``max_size=1`` makes the second checkout provably the *same* backend. With + the default pool size the next checkout may land on a connection that was + never dirtied, and the test passes for the wrong reason. The assertions on + ``pg_backend_pid()`` below exist to make that failure mode impossible. +* The default suite runs on SQLite (``crm/test_settings.py``), which has no + ``set_config`` at all, so nothing here can be expressed through Django's + ``connection``. Connection params are read from the same environment + variables ``crm/settings.py`` uses, so this runs against whatever PostgreSQL + the developer already has configured, and skips when there isn't one. + +Note that these tests do NOT need a non-superuser role. They assert that the +session variable is cleared, which is upstream of RLS enforcement and therefore +observable even on a superuser dev database where RLS is inert. A companion +check that RLS then actually hides rows does need a non-superuser role; see +`RLS_SETUP.md`. +""" + +import os + +import pytest + +psycopg = pytest.importorskip("psycopg") +psycopg_pool = pytest.importorskip("psycopg_pool") + +from common.rls.pool import reset_rls_context # noqa: E402 + +ORG_A = "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa" +ORG_B = "bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb" + + +def _conn_kwargs(): + """Mirror the connection params crm/settings.py builds from the env.""" + return { + "dbname": os.environ.get("DBNAME", "crm_db"), + "user": os.environ.get("DBUSER", "postgres"), + "password": os.environ.get("DBPASSWORD", "postgres"), + "host": os.environ.get("DBHOST", "localhost"), + "port": os.environ.get("DBPORT", "5432"), + "autocommit": True, + } + + +@pytest.fixture(scope="module", autouse=True) +def _require_postgres(): + try: + with psycopg.connect(**_conn_kwargs(), connect_timeout=3): + pass + except Exception as exc: # pragma: no cover - environment dependent + pytest.skip(f"PostgreSQL not reachable for pool isolation tests: {exc}") + + +def _single_connection_pool(reset): + return psycopg_pool.ConnectionPool( + kwargs=_conn_kwargs(), + min_size=1, + max_size=1, + reset=reset, + open=True, + timeout=10, + ) + + +def _dirty(pool, org_id): + """Borrow, set tenant context, hand the connection back. Returns the pid.""" + with pool.connection() as conn: + pid = conn.execute("SELECT pg_backend_pid()").fetchone()[0] + conn.execute("SELECT set_config('app.current_org', %s, false)", [org_id]) + return pid + + +def _observe(pool): + """Borrow and report (pid, whatever app.current_org this borrower sees).""" + with pool.connection() as conn: + pid = conn.execute("SELECT pg_backend_pid()").fetchone()[0] + seen = conn.execute( + "SELECT current_setting('app.current_org', true)" + ).fetchone()[0] + return pid, seen + + +def test_reset_clears_tenant_context_before_the_next_borrower_sees_it(): + """The guard. Tenant A's org id must not survive into tenant B's checkout.""" + pool = _single_connection_pool(reset=reset_rls_context) + try: + pid_a = _dirty(pool, ORG_A) + pid_b, seen = _observe(pool) + finally: + pool.close() + + assert pid_a == pid_b, ( + "test is inconclusive: the second checkout got a different backend, " + "so nothing was proven about context surviving reuse" + ) + assert seen in ("", None), ( + f"cross-tenant leak: the next borrower of backend {pid_b} sees " + f"app.current_org={seen!r}, which RLS would resolve to another " + f"tenant's rows" + ) + + +def test_without_the_reset_hook_the_context_does_leak(): + """Characterization, not a pinned bug. + + This asserts what a pool configured WITHOUT ``reset`` actually does, so the + reason ``reset_rls_context`` is wired into DATABASES OPTIONS is recorded as + an executable fact rather than a comment. If psycopg_pool ever starts + clearing session state on its own, this test fails and the settings comment + should be revisited. It is not asserting desired behaviour of our code. + """ + pool = _single_connection_pool(reset=None) + try: + pid_a = _dirty(pool, ORG_A) + pid_b, seen = _observe(pool) + finally: + pool.close() + + assert pid_a == pid_b, "inconclusive: different backend" + assert seen == ORG_A, ( + "psycopg_pool appears to clear session state by itself now; if so the " + "reset hook may no longer be load-bearing. Verify before relying on it." + ) + + +def test_reset_leaves_the_connection_idle_so_the_pool_keeps_reusing_it(): + """The silent-failure mode. + + ``ConnectionPool._reset_connection`` discards any connection the reset + callback leaves in a non-IDLE transaction status. A reset that opens a + transaction and forgets to commit therefore destroys and reopens a + connection on every single checkout: correctness is preserved, but the pool + silently stops pooling. That looks like a performance mystery, not an + error, so it is asserted here. + """ + pool = _single_connection_pool(reset=reset_rls_context) + try: + pids = set() + for _ in range(15): + pids.add(_dirty(pool, ORG_B)) + stats = pool.get_stats() + finally: + pool.close() + + assert len(pids) == 1, ( + f"the pool churned through {len(pids)} backends over 15 checkouts: the " + f"reset callback is leaving connections non-IDLE and they are being " + f"discarded" + ) + assert stats.get("connections_num", 0) <= 2, ( + f"pool opened {stats.get('connections_num')} connections for a " + f"max_size=1 pool, which means connections are being discarded" + ) diff --git a/backend/common/tests/test_rls_context_reset.py b/backend/common/tests/test_rls_context_reset.py new file mode 100644 index 00000000..019e5e86 --- /dev/null +++ b/backend/common/tests/test_rls_context_reset.py @@ -0,0 +1,108 @@ +"""The RLS context reset must survive an exception in the view. + +`app.current_org` is set with ``set_config(..., false)``, i.e. SESSION scope. +It outlives the statement, the transaction, and the failed request. The only +thing that clears it is the middleware's own reset call. + +Before pooling, `CONN_MAX_AGE=0` closed the connection at the end of every +request, so a skipped reset was invisible. Once connections are reused (a +psycopg pool, persistent connections, or a session-mode external pooler), a +skipped reset hands the next borrower a connection still scoped to the +previous tenant, and RLS happily serves them that tenant's rows. + +These tests run on SQLite because they assert the *control flow*, that reset is +called on the exception path, not the SQL. The end-to-end proof that a returned +connection carries no context lives in ``test_pool_rls_isolation.py`` and needs +a real PostgreSQL with a non-superuser role. +""" + +import pytest + +from common.middleware.rls_context import RequireOrgContext, SetOrgContext + + +class _Boom(Exception): + pass + + +class _FakeOrg: + id = "11111111-1111-1111-1111-111111111111" + + +class _FakeRequest: + def __init__(self, path="/api/leads/"): + self.path = path + self.org = _FakeOrg() + + +def _instrument(middleware_cls, get_response): + """Build the middleware with set/reset replaced by call recorders.""" + calls = [] + mw = middleware_cls(get_response) + mw._set_org_context = lambda request: calls.append("set") + mw._reset_org_context = lambda: calls.append("reset") + return mw, calls + + +@pytest.mark.parametrize("middleware_cls", [SetOrgContext, RequireOrgContext]) +def test_reset_runs_on_the_happy_path(middleware_cls): + mw, calls = _instrument(middleware_cls, lambda request: "response") + + assert mw(_FakeRequest()) == "response" + assert calls == ["set", "reset"] + + +@pytest.mark.parametrize("middleware_cls", [SetOrgContext, RequireOrgContext]) +def test_reset_runs_when_the_view_raises(middleware_cls): + """The regression this file exists for. + + Without the try/finally the middleware returned early on the exception and + `app.current_org` stayed set on the connection. + """ + + def boom(request): + raise _Boom("view exploded") + + mw, calls = _instrument(middleware_cls, boom) + + with pytest.raises(_Boom): + mw(_FakeRequest()) + + assert calls == ["set", "reset"], ( + "org context was not cleared after the view raised: the connection " + "goes back to the pool still scoped to this tenant" + ) + + +@pytest.mark.parametrize("middleware_cls", [SetOrgContext, RequireOrgContext]) +def test_the_exception_still_propagates(middleware_cls): + """The finally must not swallow the error into a silent 200.""" + + def boom(request): + raise _Boom("view exploded") + + mw, _ = _instrument(middleware_cls, boom) + + with pytest.raises(_Boom, match="view exploded"): + mw(_FakeRequest()) + + +def test_require_org_context_resets_after_an_exempt_path_raises(): + """Exempt paths skip the 403 check but still run set/reset around the view. + + `/api/public/invoice/` is anonymous, so `_set_org_context` returns early + and leaves the context empty. The reset still has to run: an exempt request + can be handled on a connection a previous tenant's request left dirty, and + clearing on the way out is what stops that spreading further. + """ + + def boom(request): + raise _Boom("public view exploded") + + mw, calls = _instrument(RequireOrgContext, boom) + request = _FakeRequest(path="/api/public/invoice/abc123/") + + with pytest.raises(_Boom): + mw(request) + + assert calls == ["set", "reset"] diff --git a/backend/common/urls.py b/backend/common/urls.py index 81f19dfb..2b354a93 100644 --- a/backend/common/urls.py +++ b/backend/common/urls.py @@ -21,7 +21,6 @@ from common.views.notification_views import ( NotificationListView, NotificationReadAllView, NotificationReadView, - NotificationStreamView, ) from common.views.org_settings_views import OrgSettingsView from common.views.organization_views import ( @@ -101,7 +100,7 @@ urlpatterns = [ ), path("org//", OrgUpdateView.as_view()), path("profile/", ProfileView.as_view()), - # Personal Access Tokens (MCP server), a user manages ONLY their own + # Personal Access Tokens (REST API), a user manages ONLY their own path( "profile/tokens/", PersonalAccessTokenListCreateView.as_view(), @@ -145,11 +144,6 @@ urlpatterns = [ ), # In-app notifications (per-recipient feed) path("notifications/", NotificationListView.as_view(), name="notifications_list"), - path( - "notifications/stream/", - NotificationStreamView.as_view(), - name="notifications_stream", - ), path( "notifications/read-all/", NotificationReadAllView.as_view(), diff --git a/backend/common/views/notification_views.py b/backend/common/views/notification_views.py index 44256b7e..ab6afde2 100644 --- a/backend/common/views/notification_views.py +++ b/backend/common/views/notification_views.py @@ -2,52 +2,41 @@ URL surface (mounted at /api/notifications/): GET /: list, optional ?unread=true&limit=20&since= - GET /stream/: SSE event stream (one event per new notification) POST //read/: mark a single notification read POST /read-all/: mark all (or all-before-iso) read DELETE //: hard-delete a notification +Delivery is by polling: the client passes `?since=` on an interval and +receives whatever arrived after that timestamp. There was previously an SSE +stream at `/stream/`, removed 2026-08-03. It was the only async code in the +project, so it forced the whole deployment onto ASGI, where every in-flight +request takes its own database connection with no ceiling. That model caused +two production connection-exhaustion incidents. It was also silently broken: +its payload fetch ran on a connection with no `app.current_org` set, so under +a correctly configured non-superuser role every RLS policy matched zero rows +and the stream emitted keepalives and nothing else. + +Polling costs far less than it appears to. At a 45s interval and a ~50ms +request, average concurrency is one request per ~900 open tabs, each borrowing +a pooled connection briefly and returning it. + Rules: - All queries filter by `recipient=request.profile`. RLS adds an org isolation safety net at the DB layer. - Mark-read is idempotent (re-marking does not move read_at backwards). """ -import asyncio -import json -import logging -import time - -from asgiref.sync import sync_to_async -from django.http import StreamingHttpResponse from django.shortcuts import get_object_or_404 from django.utils import timezone from django.utils.dateparse import parse_datetime from rest_framework import status from rest_framework.permissions import IsAuthenticated -from rest_framework.renderers import BaseRenderer from rest_framework.response import Response from rest_framework.views import APIView -from common import notifications as notif_mod from common.models import Notification from common.serializer import NotificationSerializer -logger = logging.getLogger(__name__) - -KEEPALIVE_SECONDS = 15 - -# Upper bound on a single SSE connection's lifetime. The browser's EventSource -# transparently reconnects when the server closes the stream, so capping this -# is invisible to the user but critical for the server: under ASGI the *entire* -# stream runs inside one request (one `ThreadSensitiveContext`), so an -# unbounded `while True` stream pins a worker thread, and any DB/redis -# connection bound to it. For as long as the tab stays open (hours). Left -# unbounded this is what slowly exhausts a shared Postgres cluster and leaves -# workers undrainable on deploy. 5 minutes bounds the leak window and lets -# workers recycle. -MAX_STREAM_SECONDS = 300 - DEFAULT_LIMIT = 20 MAX_LIMIT = 100 @@ -65,7 +54,19 @@ def _parse_int(raw, default, *, lo=1, hi=MAX_LIMIT): class NotificationListView(APIView): - """GET /api/notifications/""" + """GET /api/notifications/ + + Also the delivery endpoint the client polls with ``?since=``. + + Note the two counts have different scopes, and the polling client depends + on the difference: + + * ``count`` is the size of the *filtered* queryset, so under ``?since=`` + it is "how many arrived since", not the feed total. + * ``unread_count`` is always computed over the recipient's whole feed, + deliberately unfiltered, so a poll can refresh the bell badge without a + second request. + """ permission_classes = (IsAuthenticated,) @@ -133,210 +134,3 @@ class NotificationDetailView(APIView): notif = get_object_or_404(_user_qs(request), pk=pk) notif.delete() return Response(status=status.HTTP_204_NO_CONTENT) - - -# --- SSE stream --------------------------------------------------------- - - -def _format_sse(event: str, data: dict) -> bytes: - """Encode one Server-Sent Events frame.""" - return f"event: {event}\ndata: {json.dumps(data)}\n\n".encode("utf-8") - - -def _format_keepalive() -> bytes: - # Comment lines (starting with ':') are silently ignored by the EventSource - # client but defeat reverse-proxy buffering on idle connections. - return b": keepalive\n\n" - - -async def _aget_serialized(notif_id, recipient_id): - """Fetch a notification by id, scoped to recipient. Returns dict or None.""" - @sync_to_async - def fetch(): - from django.db import connection - - try: - notif = Notification.objects.filter( - pk=notif_id, recipient_id=recipient_id - ).first() - if notif is None: - return None - return NotificationSerializer(notif).data - finally: - # This runs in asgiref's shared thread-sensitive executor, outside - # Django's request/response cycle, so `close_old_connections` - # never fires for it. Without this explicit close the connection - # dangles open (the SSE tests need TransactionTestCase precisely - # because of it). Close it so each fetch reclaims its connection. - connection.close() - - return await fetch() - - -async def _aclose_redis(obj): - """Close a redis.asyncio client/pubsub across versions (aclose vs close).""" - if obj is None: - return - closer = getattr(obj, "aclose", None) or getattr(obj, "close", None) - if closer is None: - return - try: - result = closer() - if asyncio.iscoroutine(result): - await result - except Exception: # pragma: no cover - best effort - pass - - -async def _open_pubsub(channel: str): - """Open a redis.asyncio pubsub subscribed to ``channel``. - - Returns ``(client, pubsub)``. Both are ``None`` if Redis is unreachable; - the stream then runs in keepalive-only mode (the frontend's polling-since - path provides backfill). The caller owns closing BOTH the pubsub and the - underlying client connection pool, closing only the pubsub leaks the - client's pooled connections, one per dropped SSE stream. - """ - try: - import redis.asyncio as aioredis # type: ignore - except ImportError: # pragma: no cover - return None, None - from django.conf import settings - - url = getattr(settings, "CELERY_BROKER_URL", None) or "redis://localhost:6379/0" - client = None - try: - client = aioredis.from_url(url) - pubsub = client.pubsub() - await pubsub.subscribe(channel) - return client, pubsub - except Exception as exc: - logger.warning("SSE redis subscribe failed (%s); keepalive-only mode", exc) - await _aclose_redis(client) - return None, None - - -async def _stream_events(channel: str, recipient_id, *, pubsub=None): - """Async generator yielding SSE-formatted bytes for the recipient's channel. - - Pass ``pubsub`` to inject a stub for tests. When omitted the generator - opens its own redis.asyncio pubsub via :func:`_open_pubsub`. - """ - owns_pubsub = pubsub is None - client = None - if owns_pubsub: - client, pubsub = await _open_pubsub(channel) - deadline = time.monotonic() + MAX_STREAM_SECONDS - try: - # Initial comment so the client confirms the stream opened. - yield _format_keepalive() - while True: - # Bounded lifetime: end the stream so the worker thread and its - # DB/redis connections are released. EventSource reconnects. - if time.monotonic() >= deadline: - return - if pubsub is None: - await asyncio.sleep(KEEPALIVE_SECONDS) - yield _format_keepalive() - continue - try: - msg = await asyncio.wait_for( - pubsub.get_message(ignore_subscribe_messages=True), - timeout=KEEPALIVE_SECONDS, - ) - except asyncio.TimeoutError: - yield _format_keepalive() - continue - if msg is None: - await asyncio.sleep(0.5) - continue - data = msg.get("data") - if isinstance(data, bytes): - data = data.decode("utf-8", errors="replace") - payload = await _aget_serialized(data, recipient_id) - if payload is None: - continue - yield _format_sse("notification", payload) - finally: - if owns_pubsub: - if pubsub is not None: - try: - await pubsub.unsubscribe(channel) - except Exception: # pragma: no cover - best effort - pass - await _aclose_redis(pubsub) - # Close the underlying client pool too, not just the pubsub. - await _aclose_redis(client) - - -def _drive_async_gen(agen): - """Yield from an async generator using a dedicated event loop. - - DRF's APIView dispatch is sync, so we can't expose an `async def` handler - directly (Django would mark the view async via `view_is_async`, then DRF's - sync dispatch returns a Response that the async wrapper tries to await). - StreamingHttpResponse accepts a sync iterable, so we bridge here. - """ - loop = asyncio.new_event_loop() - try: - while True: - try: - yield loop.run_until_complete(agen.__anext__()) - except StopAsyncIteration: - return - finally: - try: - loop.run_until_complete(agen.aclose()) - finally: - loop.close() - - -class _EventStreamRenderer(BaseRenderer): - """Advertises text/event-stream for DRF content negotiation. - - Never actually invoked: the view returns a StreamingHttpResponse directly. - Without this, an EventSource sending `Accept: text/event-stream` is - rejected by DRF's content negotiation with HTTP 406 (no matching renderer). - """ - - media_type = "text/event-stream" - format = "sse" - - def render(self, data, accepted_media_type=None, renderer_context=None): - return b"" - - -class NotificationStreamView(APIView): - """GET /api/notifications/stream/ - - Long-lived Server-Sent Events response. Requires an ASGI server in - production, under WSGI this view ties up one worker per connected user. - """ - - permission_classes = (IsAuthenticated,) - renderer_classes = (_EventStreamRenderer,) - - def get(self, request, *args, **kwargs): - org_id = request.profile.org_id - profile_id = request.profile.id - channel = notif_mod.channel_for(org_id, profile_id) - - # Release THIS request thread's DB connection before streaming begins. - # Under ASGI the entire stream runs inside one request's - # ThreadSensitiveContext, so the connection opened by auth/middleware - # would otherwise stay checked out for the full (possibly hours-long) - # stream, one leaked Postgres connection per open browser tab, which - # is what exhausts the shared cluster. The stream's own reads go - # through a separate executor (see `_aget_serialized`) and close - # themselves, so dropping this one is safe. - from django.db import connection - - connection.close() - - response = StreamingHttpResponse( - _drive_async_gen(_stream_events(channel, profile_id)), - content_type="text/event-stream", - ) - response["Cache-Control"] = "no-cache, no-transform" - response["X-Accel-Buffering"] = "no" # disable nginx buffering - return response diff --git a/backend/common/views/pat_views.py b/backend/common/views/pat_views.py index 088ea101..2999cc0e 100644 --- a/backend/common/views/pat_views.py +++ b/backend/common/views/pat_views.py @@ -1,4 +1,8 @@ -"""Personal Access Token CRUD for the BottleCRM MCP server. +"""Personal Access Token CRUD for programmatic REST API access. + +Tokens authenticate scripts, integrations and AI agents against the API under +``/api/`` with an ``Authorization: Bearer bcrm_pat_...`` header. A token acts +AS its owning profile and inherits that user's role, org and RLS scope. A user manages ONLY their own tokens. Both list and revoke are filtered by ``org=request.profile.org`` AND ``profile=request.profile`` so another user's @@ -33,7 +37,7 @@ from common.serializer import ( class PersonalAccessTokenListCreateView(APIView): permission_classes = (IsAuthenticated, HasOrgContext) - @extend_schema(tags=["MCP / Tokens"], operation_id="pat_list") + @extend_schema(tags=["API Tokens"], operation_id="pat_list") def get(self, request): qs = PersonalAccessToken.objects.filter( org=request.profile.org, profile=request.profile @@ -47,7 +51,7 @@ class PersonalAccessTokenListCreateView(APIView): ) @extend_schema( - tags=["MCP / Tokens"], + tags=["API Tokens"], operation_id="pat_create", request=PersonalAccessTokenCreateSerializer, ) @@ -72,7 +76,7 @@ class PersonalAccessTokenListCreateView(APIView): class PersonalAccessTokenDetailView(APIView): permission_classes = (IsAuthenticated, HasOrgContext) - @extend_schema(tags=["MCP / Tokens"], operation_id="pat_revoke") + @extend_schema(tags=["API Tokens"], operation_id="pat_revoke") def delete(self, request, pk): pat = get_object_or_404( PersonalAccessToken, @@ -112,7 +116,7 @@ class OrgAccessTokenListView(APIView): permission_classes = (IsAuthenticated, HasOrgContext, IsOrgAdmin) - @extend_schema(tags=["MCP / Tokens"], operation_id="org_pat_list") + @extend_schema(tags=["API Tokens"], operation_id="org_pat_list") def get(self, request): now = timezone.now() qs = ( @@ -164,7 +168,7 @@ class OrgAccessTokenDetailView(APIView): permission_classes = (IsAuthenticated, HasOrgContext, IsOrgAdmin) - @extend_schema(tags=["MCP / Tokens"], operation_id="org_pat_revoke") + @extend_schema(tags=["API Tokens"], operation_id="org_pat_revoke") def delete(self, request, pk): pat = get_object_or_404( PersonalAccessToken, pk=pk, org=request.profile.org diff --git a/backend/crm/asgi.py b/backend/crm/asgi.py index 3d465cd2..047b7403 100644 --- a/backend/crm/asgi.py +++ b/backend/crm/asgi.py @@ -1,21 +1,24 @@ """ASGI entrypoint for Django-CRM. -Mirror of `wsgi.py` for ASGI servers (uvicorn, hypercorn, daphne). Required -for the in-app notifications SSE stream. Async views serving long-lived -connections will hold a worker hostage when run under WSGI. +Mirror of `wsgi.py` for ASGI servers (uvicorn, hypercorn, daphne). Kept so +existing ASGI deployments keep working, but **nothing in this project requires +it any more**. It existed for the in-app notifications SSE stream, which was +the only async view here; that was replaced by polling on 2026-08-03. -It also optionally mounts the BottleCRM **MCP server** at ``/mcp`` so AI agents -can connect over HTTP with no local install (each request authenticates with -its own ``Authorization: Bearer `` header). The mount is best-effort: if -the optional ``bcrm-mcp`` dependency is not installed, or ``BCRM_MCP_ENABLED`` -is false, this module serves Django alone. Exactly as before. +Prefer WSGI in production: -Production deploy must run an ASGI server pointing at this module: + gunicorn crm.wsgi:application --bind 0.0.0.0:8000 --workers 3 --threads 4 - uvicorn crm.asgi:application --host 0.0.0.0 --port 8000 +Not merely for simplicity. Under ASGI each in-flight request gets its own +thread-sensitive executor and its own thread-local database connection, with +no ceiling, which is what exhausted PostgreSQL twice in this project's +history. Under WSGI the ceiling is `workers x threads`, a number you choose. +If you do serve this module, enable pooling (`DB_POOL_ENABLED=true`, see +crm/settings.py) so the connection count is bounded some other way. -`runserver` uses WSGI, so the MCP mount is only active under a real ASGI -server; dev workflows for the Django app itself are unchanged. +Agents and scripts reach the CRM through the REST API under `/api/`, +authenticated with a personal access token (`Authorization: Bearer +bcrm_pat_...`). See docs/integrations/ai-agents.md. """ import os @@ -29,99 +32,4 @@ sys.path.append(PROJECT_DIR) os.environ.setdefault("DJANGO_SETTINGS_MODULE", "crm.settings") -django_application = get_asgi_application() - - -def _mcp_disabled(): - return os.environ.get("BCRM_MCP_ENABLED", "true").strip().lower() in ( - "0", - "false", - "no", - "off", - ) - - -def _build_application(): - """Return the ASGI app: Django alone, or Django with the MCP server at /mcp. - - Falls back to the plain Django app whenever the MCP server can't or - shouldn't be mounted, so an incomplete install never takes the site down. - """ - if _mcp_disabled(): - return django_application - - try: - from bcrm_mcp.auth import extract_bearer_token - from bcrm_mcp.server import build_http_app - except ImportError: - # Optional `mcp` extra not installed: serve Django only. - return django_application - - # The CRM REST root the MCP tools call. Mounted in-process, so this is a - # loopback to this very server; override via env for a different internal - # address. - base_url = os.environ.get("BCRM_BASE_URL", "http://127.0.0.1:8000") - - # MCP streamable endpoint lives at exactly "/mcp". We dispatch by prefix - # ourselves rather than using Starlette's Mount, which (in the vendored - # starlette) only matches "/mcp/…" and lets a slashless "/mcp" fall through - # to Django, users configure ".../mcp" without a trailing slash. - mcp_app = build_http_app(base_url, path="/mcp") - - def _bearer_token(scope): - for name, value in scope.get("headers", []): - if name == b"authorization": - return extract_bearer_token( - {"authorization": value.decode("latin-1")} - ) - return None - - async def application(scope, receive, send): - kind = scope.get("type") - # Drive ONLY the MCP app's lifespan (it starts the MCP session - # manager). Django needs no lifespan, so it never sees this scope. - if kind == "lifespan": - await mcp_app(scope, receive, send) - return - if kind in ("http", "websocket"): - path = scope.get("path", "") - if path == "/mcp" or path.startswith("/mcp/"): - # Edge auth: reject anything without a well-formed bearer token - # BEFORE it reaches the MCP layer, so initialize/list-tools are - # unreachable unauthenticated, not just tool calls. (The token's - # validity is still checked by the backend on each API call.) - if _bearer_token(scope) is None: - await _unauthorized(scope, send) - return - await mcp_app(scope, receive, send) - return - await django_application(scope, receive, send) - - return application - - -async def _unauthorized(scope, send): - """Send a 401 (http) or reject the connection (websocket) for /mcp requests - that carry no usable bearer token.""" - if scope.get("type") == "websocket": - await send({"type": "websocket.close", "code": 1008}) - return - body = ( - b'{"error":"unauthorized","detail":"Missing or malformed Authorization ' - b'header. Send: Authorization: Bearer "}' - ) - await send( - { - "type": "http.response.start", - "status": 401, - "headers": [ - (b"content-type", b"application/json"), - (b"www-authenticate", b"Bearer"), - (b"content-length", str(len(body)).encode("ascii")), - ], - } - ) - await send({"type": "http.response.body", "body": body}) - - -application = _build_application() +application = get_asgi_application() diff --git a/backend/crm/settings.py b/backend/crm/settings.py index 0ffd25fb..4bc7b195 100644 --- a/backend/crm/settings.py +++ b/backend/crm/settings.py @@ -94,6 +94,29 @@ WSGI_APPLICATION = "crm.wsgi.application" # Database # https://docs.djangoproject.com/en/1.10/ref/settings/#databases +# Connection pooling (psycopg 3 + psycopg_pool, wired by Django's postgresql +# backend). Off by default so an existing deployment does not silently change +# its connection behaviour on upgrade; set DB_POOL_ENABLED=true to turn it on. +# +# Two things make this more than a performance knob here: +# +# 1. Every ASGI request gets its own thread-sensitive executor and therefore +# its own connection, with no ceiling. That is how two separate incidents +# exhausted PostgreSQL. `max_size` is the ceiling that was missing. +# 2. RLS context lives in a SESSION-scoped GUC, so a reused connection carries +# the previous tenant's org id unless something clears it. `reset` below is +# that something, and pooling MUST NOT be enabled without it. See +# common/rls/pool.py for the full argument. +# +# Sizing: the pool is per PROCESS, not per host. Real peak connections are +# roughly DB_POOL_MAX_SIZE x (uvicorn workers + celery prefork children), and +# docker-compose.yml runs `celery -A crm worker` with no --concurrency, so each +# worker forks one child per CPU. Multiply before comparing to PostgreSQL's +# max_connections (default 100). +DB_POOL_ENABLED = os.environ.get("DB_POOL_ENABLED", "False").lower() == "true" +DB_POOL_MIN_SIZE = int(os.environ.get("DB_POOL_MIN_SIZE", "2")) +DB_POOL_MAX_SIZE = int(os.environ.get("DB_POOL_MAX_SIZE", "10")) + DATABASES = { "default": { "ENGINE": "django.db.backends.postgresql", @@ -102,9 +125,29 @@ DATABASES = { "PASSWORD": os.environ.get("DBPASSWORD", "postgres"), "HOST": os.environ.get("DBHOST", "localhost"), "PORT": os.environ.get("DBPORT", "5432"), + # Django raises ImproperlyConfigured if this is non-zero alongside a + # pool ("Pooling doesn't support persistent connections"). Keep it 0. + "CONN_MAX_AGE": 0, + "CONN_HEALTH_CHECKS": DB_POOL_ENABLED, } } +if DB_POOL_ENABLED: + # Imported lazily and locally: common/rls/pool.py deliberately imports no + # Django, but keeping the import inside the branch means a non-pooled + # deployment never touches it at all. + from common.rls.pool import reset_rls_context + + DATABASES["default"]["OPTIONS"] = { + "pool": { + "min_size": DB_POOL_MIN_SIZE, + "max_size": DB_POOL_MAX_SIZE, + # Load-bearing for tenant isolation, not a tidy-up. Removing this + # key turns pooling into a cross-tenant data leak. + "reset": reset_rls_context, + } + } + # Password validation # https://docs.djangoproject.com/en/1.10/ref/settings/#auth-password-validators diff --git a/backend/pyproject.toml b/backend/pyproject.toml index 91ed0586..bad46280 100644 --- a/backend/pyproject.toml +++ b/backend/pyproject.toml @@ -49,7 +49,12 @@ dependencies = [ "djangorestframework-simplejwt>=5.5.1", "drf-spectacular>=0.30.0", "django-ses>=4.7.2", - "psycopg2-binary>=2.9.12", + # psycopg 3, not psycopg2. The `pool` extra is required: Django refuses + # pool options under psycopg2 (ImproperlyConfigured, "Database pooling + # requires psycopg >= 3"), and DATABASES["default"]["OPTIONS"]["pool"] in + # crm/settings.py depends on it. No application code imports the driver + # directly, so the swap is confined to this line. + "psycopg[binary,pool]>=3.2.10", "whitenoise>=6.12.0", "sentry-sdk>=2.66.1", "django-storages>=1.14.6", @@ -72,15 +77,6 @@ dependencies = [ "uvicorn[standard]>=0.51.0", ] -[project.optional-dependencies] -# Hosted MCP server, mounted at /mcp by crm.asgi (opt-in: install with -# `uv sync --extra mcp`). Pulls in fastmcp + starlette. The core app does not -# depend on it, so the default install stays lean. -mcp = ["bcrm-mcp"] - -[tool.uv.sources] -bcrm-mcp = { path = "../mcp_server", editable = true } - [project.urls] Homepage = "https://github.com/django-crm/Django-CRM" Repository = "https://github.com/django-crm/Django-CRM" diff --git a/backend/uv.lock b/backend/uv.lock index 89bd7ea4..4ed3fa19 100644 --- a/backend/uv.lock +++ b/backend/uv.lock @@ -7,18 +7,6 @@ resolution-markers = [ "python_full_version >= '3.14'", ] -[[package]] -name = "aiofile" -version = "3.11.1" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "caio" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/48/41/2fea7e193e061ce54eacc3b7bc0e6a99e4fcff43c78cf0a76dd781ed8334/aiofile-3.11.1.tar.gz", hash = "sha256:1f91912c6643d2a4e49ca4ae3514f0bf3867ce948a36d99a6411b8f4755f4cf9", size = 19342, upload-time = "2026-05-16T08:18:33.538Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/67/cd/0d76dfc5de72bde52f55f53e925c7d152d9c7906634ec1e0cbc7e8d4ad93/aiofile-3.11.1-py3-none-any.whl", hash = "sha256:ce77d14ac07f77bc2b757834a5c129321f3f705c474593deed5ab209079a52c9", size = 20446, upload-time = "2026-05-16T08:18:32.051Z" }, -] - [[package]] name = "amqp" version = "5.3.1" @@ -31,15 +19,6 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/26/99/fc813cd978842c26c82534010ea849eee9ab3a13ea2b74e95cb9c99e747b/amqp-5.3.1-py3-none-any.whl", hash = "sha256:43b3319e1b4e7d1251833a93d672b4af1e40f3d632d479b98661a95f117880a2", size = 50944, upload-time = "2024-11-12T19:55:41.782Z" }, ] -[[package]] -name = "annotated-types" -version = "0.8.0" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/5f/56/a8120250d128bed162cd73c76d45f6ef9991f3e068f62a8ee060afa3104a/annotated_types-0.8.0.tar.gz", hash = "sha256:13b2beaad985e05e2d6407ee4c4f35590b11f8d693a258a561055cac8f64cab7", size = 15893, upload-time = "2026-07-23T20:16:13.995Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/99/91/8acff4f5e50511b911bbccb72b8628a49c68ce14148cd9f6431094859a90/annotated_types-0.8.0-py3-none-any.whl", hash = "sha256:f072f4d804ea359e4eaf198b1af7a8b0943881a87f31bb764f8bf219bb9419e0", size = 13427, upload-time = "2026-07-23T20:16:12.938Z" }, -] - [[package]] name = "anyio" version = "4.14.2" @@ -71,19 +50,6 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/64/b4/17d4b0b2a2dc85a6df63d1157e028ed19f90d4cd97c36717afef2bc2f395/attrs-26.1.0-py3-none-any.whl", hash = "sha256:c647aa4a12dfbad9333ca4e71fe62ddc36f4e63b2d260a37a8b83d2f043ac309", size = 67548, upload-time = "2026-03-19T14:22:23.645Z" }, ] -[[package]] -name = "authlib" -version = "1.7.2" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "cryptography" }, - { name = "joserfc" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/36/98/7d93f30d029643c0275dbc0bd6d5a6f670661ee6c9a94d93af7ab4887600/authlib-1.7.2.tar.gz", hash = "sha256:2cea25fefcd4e7173bdf1372c0afc265c8034b23a8cd5dcb6a9164b826c64231", size = 176511, upload-time = "2026-05-06T08:10:23.116Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/fb/95/adcb68e20c34162e9135f370d6e31737719c2b6f94bc953fe7ed1f10fe21/authlib-1.7.2-py2.py3-none-any.whl", hash = "sha256:3e1faedc9d87e7d56a164eca3ccb6ace0d61b94abe83e92242f8dc8bba9b4a9f", size = 259548, upload-time = "2026-05-06T08:10:21.436Z" }, -] - [[package]] name = "babel" version = "2.18.0" @@ -106,39 +72,6 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/1c/cf/e5f9b68a5b0e939a2fb933a66c20180d0c9241bf8927f7a47fa48c1675e9/backrefs-8.0-py314-none-any.whl", hash = "sha256:9ec96efa080938be92323e8e730e57718c9c88eb15ad70bbef4e1766df591408", size = 411903, upload-time = "2026-07-26T19:54:23.221Z" }, ] -[[package]] -name = "bcrm-mcp" -version = "0.1.0" -source = { editable = "../mcp_server" } -dependencies = [ - { name = "fastmcp" }, - { name = "httpx" }, - { name = "pydantic" }, -] - -[package.metadata] -requires-dist = [ - { name = "fastmcp", specifier = ">=3.4.4" }, - { name = "httpx", specifier = ">=0.28.1" }, - { name = "pydantic", specifier = ">=2.13.4" }, -] - -[package.metadata.requires-dev] -dev = [ - { name = "pytest", specifier = ">=9.1.1" }, - { name = "pytest-asyncio", specifier = ">=1.4.0" }, - { name = "respx", specifier = ">=0.23.1" }, -] - -[[package]] -name = "beartype" -version = "0.22.9" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/c7/94/1009e248bbfbab11397abca7193bea6626806be9a327d399810d523a07cb/beartype-0.22.9.tar.gz", hash = "sha256:8f82b54aa723a2848a56008d18875f91c1db02c32ef6a62319a002e3e25a975f", size = 1608866, upload-time = "2025-12-13T06:50:30.72Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/71/cc/18245721fa7747065ab478316c7fea7c74777d07f37ae60db2e84f8172e8/beartype-0.22.9-py3-none-any.whl", hash = "sha256:d16c9bbc61ea14637596c5f6fbff2ee99cbe3573e46a716401734ef50c3060c2", size = 1333658, upload-time = "2025-12-13T06:50:28.266Z" }, -] - [[package]] name = "billiard" version = "4.2.4" @@ -235,36 +168,6 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/d8/ef/e7e485ce5e4ba3843a0a92feb767c7b6098fd6e65ce752918074d175ae71/brotlicffi-1.2.0.1-cp38-abi3-win_amd64.whl", hash = "sha256:da2e82a08e7778b8bc539d27ca03cdd684113e81394bfaaad8d0dfc6a17ddede", size = 379026, upload-time = "2026-03-05T19:54:04.322Z" }, ] -[[package]] -name = "cachetools" -version = "7.1.6" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/55/af/861ebc2e318a5c3300e3eb63bc4d30f3d70a46d13b360093728ac0705eed/cachetools-7.1.6.tar.gz", hash = "sha256:c7a79e7f30ba9943c1cefd08cc36f006aaae086e017af9166f1d59d6170c47e1", size = 40572, upload-time = "2026-07-23T22:47:53.737Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/9f/f2/2086ba18a925a73586c4d4e61d25f4a6058e56fd00d77ce8f1d361ab4c9b/cachetools-7.1.6-py3-none-any.whl", hash = "sha256:2c12e255780330af28b91bb7fb96cce4c766f04e38396b9a24510190a5827096", size = 16954, upload-time = "2026-07-23T22:47:52.397Z" }, -] - -[[package]] -name = "caio" -version = "0.9.25" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/92/88/b8527e1b00c1811db339a1df8bd1ae49d146fcea9d6a5c40e3a80aaeb38d/caio-0.9.25.tar.gz", hash = "sha256:16498e7f81d1d0f5a4c0ad3f2540e65fe25691376e0a5bd367f558067113ed10", size = 26781, upload-time = "2025-12-26T15:21:36.501Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/d3/25/79c98ebe12df31548ba4eaf44db11b7cad6b3e7b4203718335620939083c/caio-0.9.25-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:fb7ff95af4c31ad3f03179149aab61097a71fd85e05f89b4786de0359dffd044", size = 36983, upload-time = "2025-12-26T15:21:36.075Z" }, - { url = "https://files.pythonhosted.org/packages/a3/2b/21288691f16d479945968a0a4f2856818c1c5be56881d51d4dac9b255d26/caio-0.9.25-cp312-cp312-manylinux2010_x86_64.manylinux2014_x86_64.manylinux_2_12_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:97084e4e30dfa598449d874c4d8e0c8d5ea17d2f752ef5e48e150ff9d240cd64", size = 82012, upload-time = "2025-12-26T15:22:20.983Z" }, - { url = "https://files.pythonhosted.org/packages/03/c4/8a1b580875303500a9c12b9e0af58cb82e47f5bcf888c2457742a138273c/caio-0.9.25-cp312-cp312-manylinux_2_34_aarch64.whl", hash = "sha256:4fa69eba47e0f041b9d4f336e2ad40740681c43e686b18b191b6c5f4c5544bfb", size = 81502, upload-time = "2026-03-04T22:08:22.381Z" }, - { url = "https://files.pythonhosted.org/packages/d1/1c/0fe770b8ffc8362c48134d1592d653a81a3d8748d764bec33864db36319d/caio-0.9.25-cp312-cp312-manylinux_2_34_x86_64.whl", hash = "sha256:6bebf6f079f1341d19f7386db9b8b1f07e8cc15ae13bfdaff573371ba0575d69", size = 80200, upload-time = "2026-03-04T22:08:23.382Z" }, - { url = "https://files.pythonhosted.org/packages/31/57/5e6ff127e6f62c9f15d989560435c642144aa4210882f9494204bc892305/caio-0.9.25-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:d6c2a3411af97762a2b03840c3cec2f7f728921ff8adda53d7ea2315a8563451", size = 36979, upload-time = "2025-12-26T15:21:35.484Z" }, - { url = "https://files.pythonhosted.org/packages/a3/9f/f21af50e72117eb528c422d4276cbac11fb941b1b812b182e0a9c70d19c5/caio-0.9.25-cp313-cp313-manylinux2010_x86_64.manylinux2014_x86_64.manylinux_2_12_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:0998210a4d5cd5cb565b32ccfe4e53d67303f868a76f212e002a8554692870e6", size = 81900, upload-time = "2025-12-26T15:22:21.919Z" }, - { url = "https://files.pythonhosted.org/packages/9c/12/c39ae2a4037cb10ad5eb3578eb4d5f8c1a2575c62bba675f3406b7ef0824/caio-0.9.25-cp313-cp313-manylinux_2_34_aarch64.whl", hash = "sha256:1a177d4777141b96f175fe2c37a3d96dec7911ed9ad5f02bac38aaa1c936611f", size = 81523, upload-time = "2026-03-04T22:08:25.187Z" }, - { url = "https://files.pythonhosted.org/packages/22/59/f8f2e950eb4f1a5a3883e198dca514b9d475415cb6cd7b78b9213a0dd45a/caio-0.9.25-cp313-cp313-manylinux_2_34_x86_64.whl", hash = "sha256:9ed3cfb28c0e99fec5e208c934e5c157d0866aa9c32aa4dc5e9b6034af6286b7", size = 80243, upload-time = "2026-03-04T22:08:26.449Z" }, - { url = "https://files.pythonhosted.org/packages/69/ca/a08fdc7efdcc24e6a6131a93c85be1f204d41c58f474c42b0670af8c016b/caio-0.9.25-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:fab6078b9348e883c80a5e14b382e6ad6aabbc4429ca034e76e730cf464269db", size = 36978, upload-time = "2025-12-26T15:21:41.055Z" }, - { url = "https://files.pythonhosted.org/packages/5e/6c/d4d24f65e690213c097174d26eda6831f45f4734d9d036d81790a27e7b78/caio-0.9.25-cp314-cp314-manylinux2010_x86_64.manylinux2014_x86_64.manylinux_2_12_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:44a6b58e52d488c75cfaa5ecaa404b2b41cc965e6c417e03251e868ecd5b6d77", size = 81832, upload-time = "2025-12-26T15:22:22.757Z" }, - { url = "https://files.pythonhosted.org/packages/87/a4/e534cf7d2d0e8d880e25dd61e8d921ffcfe15bd696734589826f5a2df727/caio-0.9.25-cp314-cp314-manylinux_2_34_aarch64.whl", hash = "sha256:628a630eb7fb22381dd8e3c8ab7f59e854b9c806639811fc3f4310c6bd711d79", size = 81565, upload-time = "2026-03-04T22:08:27.483Z" }, - { url = "https://files.pythonhosted.org/packages/3f/ed/bf81aeac1d290017e5e5ac3e880fd56ee15e50a6d0353986799d1bc5cfd5/caio-0.9.25-cp314-cp314-manylinux_2_34_x86_64.whl", hash = "sha256:0ba16aa605ccb174665357fc729cf500679c2d94d5f1458a6f0d5ca48f2060a7", size = 80071, upload-time = "2026-03-04T22:08:28.751Z" }, - { url = "https://files.pythonhosted.org/packages/86/93/1f76c8d1bafe3b0614e06b2195784a3765bbf7b0a067661af9e2dd47fc33/caio-0.9.25-py3-none-any.whl", hash = "sha256:06c0bb02d6b929119b1cfbe1ca403c768b2013a369e2db46bfa2a5761cf82e40", size = 19087, upload-time = "2025-12-26T15:22:00.221Z" }, -] - [[package]] name = "cairocffi" version = "1.7.1" @@ -642,21 +545,6 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/21/0e/8459ca4413e1a21a06c97d134bfaf18adfd27cea068813dc0faae06cbf00/cssselect2-0.9.0-py3-none-any.whl", hash = "sha256:6a99e5f91f9a016a304dd929b0966ca464bcfda15177b6fb4a118fc0fb5d9563", size = 15453, upload-time = "2026-02-12T17:16:38.317Z" }, ] -[[package]] -name = "cyclopts" -version = "4.22.2" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "attrs" }, - { name = "docstring-parser" }, - { name = "rich" }, - { name = "rich-rst" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/69/98/ca72a91d5c25a2ae1baf19d27b31f12288cb9d8a3168b65b3cd54d40d277/cyclopts-4.22.2.tar.gz", hash = "sha256:0721e90e7209885e78f7637cfba255c12e89206b633e35d185305e349ba20ecd", size = 194511, upload-time = "2026-07-24T20:53:08.739Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/bd/75/a11bfb5045e58b4ef69337b848985918e829fe9a90572a761d17c1a992f5/cyclopts-4.22.2-py3-none-any.whl", hash = "sha256:9c2cdf6a621886cd0af631a67437eb7d0084f33f9e8fba2d2562a1aecf75f2ff", size = 233906, upload-time = "2026-07-24T20:53:07.064Z" }, -] - [[package]] name = "disposable-email-domains" version = "0.0.231" @@ -713,7 +601,7 @@ dependencies = [ { name = "faker" }, { name = "google-auth" }, { name = "gunicorn" }, - { name = "psycopg2-binary" }, + { name = "psycopg", extra = ["binary", "pool"] }, { name = "python-dateutil" }, { name = "python-dotenv" }, { name = "pytz" }, @@ -725,11 +613,6 @@ dependencies = [ { name = "whitenoise" }, ] -[package.optional-dependencies] -mcp = [ - { name = "bcrm-mcp" }, -] - [package.dev-dependencies] dev = [ { name = "pytest" }, @@ -742,7 +625,6 @@ docs = [ [package.metadata] requires-dist = [ - { name = "bcrm-mcp", marker = "extra == 'mcp'", editable = "../mcp_server" }, { name = "cairocffi", specifier = ">=1.7.1" }, { name = "celery", specifier = ">=5.6.3" }, { name = "cryptography", specifier = ">=49.0.0" }, @@ -758,7 +640,7 @@ requires-dist = [ { name = "faker", specifier = ">=40.36.0" }, { name = "google-auth", specifier = ">=2.56.2" }, { name = "gunicorn", specifier = ">=26.0.0" }, - { name = "psycopg2-binary", specifier = ">=2.9.12" }, + { name = "psycopg", extras = ["binary", "pool"], specifier = ">=3.2.10" }, { name = "python-dateutil", specifier = ">=2.9.0.post0" }, { name = "python-dotenv", specifier = ">=1.2.2" }, { name = "pytz", specifier = ">=2026.3.post1" }, @@ -769,7 +651,6 @@ requires-dist = [ { name = "weasyprint", specifier = ">=69.0" }, { name = "whitenoise", specifier = ">=6.12.0" }, ] -provides-extras = ["mcp"] [package.metadata.requires-dev] dev = [ @@ -842,24 +723,6 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/60/94/fdfb7b2f0b16cd3ed4d4171c55c1c07a2d1e3b106c5978c8ad0c15b4a48b/djangorestframework_simplejwt-5.5.1-py3-none-any.whl", hash = "sha256:2c30f3707053d384e9f315d11c2daccfcb548d4faa453111ca19a542b732e469", size = 107674, upload-time = "2025-07-21T16:52:07.493Z" }, ] -[[package]] -name = "dnspython" -version = "2.8.0" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/8c/8b/57666417c0f90f08bcafa776861060426765fdb422eb10212086fb811d26/dnspython-2.8.0.tar.gz", hash = "sha256:181d3c6996452cb1189c4046c61599b84a5a86e099562ffde77d26984ff26d0f", size = 368251, upload-time = "2025-09-07T18:58:00.022Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/ba/5a/18ad964b0086c6e62e2e7500f7edc89e3faa45033c71c1893d34eed2b2de/dnspython-2.8.0-py3-none-any.whl", hash = "sha256:01d9bbc4a2d76bf0db7c1f729812ded6d912bd318d3b1cf81d30c0f845dbf3af", size = 331094, upload-time = "2025-09-07T18:57:58.071Z" }, -] - -[[package]] -name = "docstring-parser" -version = "0.18.0" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/e0/4d/f332313098c1de1b2d2ff91cf2674415cc7cddab2ca1b01ae29774bd5fdf/docstring_parser-0.18.0.tar.gz", hash = "sha256:292510982205c12b1248696f44959db3cdd1740237a968ea1e2e7a900eeb2015", size = 29341, upload-time = "2026-04-14T04:09:19.867Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/a7/5f/ed01f9a3cdffbd5a008556fc7b2a08ddb1cc6ace7effa7340604b1d16699/docstring_parser-0.18.0-py3-none-any.whl", hash = "sha256:b3fcbed555c47d8479be0796ef7e19c2670d428d72e96da63f3a40122860374b", size = 22484, upload-time = "2026-04-14T04:09:18.638Z" }, -] - [[package]] name = "drf-spectacular" version = "0.30.0" @@ -877,31 +740,6 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/c3/56/74dd7b45bbde6d24494220b98d6961cb1200b63a1800332b430daa2c4551/drf_spectacular-0.30.0-py3-none-any.whl", hash = "sha256:006cf5921ebe20a9bd24f7c846261ebbf78780be5961b0d6e87afaa82afd62ff", size = 111150, upload-time = "2026-07-06T11:29:45.12Z" }, ] -[[package]] -name = "email-validator" -version = "2.3.0" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "dnspython" }, - { name = "idna" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/f5/22/900cb125c76b7aaa450ce02fd727f452243f2e91a61af068b40adba60ea9/email_validator-2.3.0.tar.gz", hash = "sha256:9fc05c37f2f6cf439ff414f8fc46d917929974a82244c20eb10231ba60c54426", size = 51238, upload-time = "2025-08-26T13:09:06.831Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/de/15/545e2b6cf2e3be84bc1ed85613edd75b8aea69807a71c26f4ca6a9258e82/email_validator-2.3.0-py3-none-any.whl", hash = "sha256:80f13f623413e6b197ae73bb10bf4eb0908faf509ad8362c5edeb0be7fd450b4", size = 35604, upload-time = "2025-08-26T13:09:05.858Z" }, -] - -[[package]] -name = "exceptiongroup" -version = "1.3.1" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "typing-extensions", marker = "python_full_version < '3.13'" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/50/79/66800aadf48771f6b62f7eb014e352e5d06856655206165d775e675a02c9/exceptiongroup-1.3.1.tar.gz", hash = "sha256:8b412432c6055b0b7d14c310000ae93352ed6754f70fa8f7c34141f91c4e3219", size = 30371, upload-time = "2025-11-21T23:01:54.787Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/8a/0e/97c33bf5009bdbac74fd2beace167cab3f978feb69cc36f1ef79360d6c4e/exceptiongroup-1.3.1-py3-none-any.whl", hash = "sha256:a7a39a3bd276781e98394987d3a5701d0c4edffb633bb7a5144577f82c773598", size = 16740, upload-time = "2025-11-21T23:01:53.443Z" }, -] - [[package]] name = "faker" version = "40.36.0" @@ -914,69 +752,6 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/50/9a/b947ed175ce9a0dcb070ccf3607f0ce8720cfb5ed1a36166a150b2acd5af/faker-40.36.0-py3-none-any.whl", hash = "sha256:82b9497d9cfe017048075bcf969298a74b1b6e39f5e4dad1211085d1133f7b62", size = 2062829, upload-time = "2026-07-24T21:11:31.37Z" }, ] -[[package]] -name = "fastmcp" -version = "3.4.4" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "fastmcp-slim", extra = ["client", "server"] }, -] -sdist = { url = "https://files.pythonhosted.org/packages/9c/f7/5188565d1b93ad611cbd80bf473e7ad669d1f3b689c4bedcd304e1ec3472/fastmcp-3.4.4.tar.gz", hash = "sha256:378202e26ec15b23819d9a1c0d1b0ebda096bc712720532010a0b82a45c2b1df", size = 28796458, upload-time = "2026-07-09T00:32:41.352Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/5f/67/3cef84ba38a23dca1e1e776bfda8a35ab3c7a6c94a8ca81d0715de6dd3c5/fastmcp-3.4.4-py3-none-any.whl", hash = "sha256:f86f208713212260068cf55c32936839eee856fefc7808e18a032f31eb0f718e", size = 8019, upload-time = "2026-07-09T00:32:39.411Z" }, -] - -[[package]] -name = "fastmcp-slim" -version = "3.4.4" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "platformdirs" }, - { name = "pydantic", extra = ["email"] }, - { name = "pydantic-settings" }, - { name = "python-dotenv" }, - { name = "rich" }, - { name = "typing-extensions" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/45/79/f35661c6a1d76dfbe17a079f912d96fffcfdd40fad5a9144bb9e7dfb1fdf/fastmcp_slim-3.4.4.tar.gz", hash = "sha256:dcaa3e0be2127d7eacdce592c2ef0039204923dc0ec396454615cb4a3275b078", size = 590203, upload-time = "2026-07-09T00:32:20.531Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/16/91/321e0b2e9ed70d0628b17ddaec76fc7b09f3e1d5d290f70bf101a2890142/fastmcp_slim-3.4.4-py3-none-any.whl", hash = "sha256:9d3a6327b9ee835188eb7323fc3b5d4cd061631b48da8ece56794bb538972505", size = 765158, upload-time = "2026-07-09T00:32:19.11Z" }, -] - -[package.optional-dependencies] -client = [ - { name = "authlib" }, - { name = "exceptiongroup" }, - { name = "httpx" }, - { name = "mcp" }, - { name = "opentelemetry-api" }, - { name = "py-key-value-aio", extra = ["filetree", "keyring", "memory"] }, - { name = "starlette" }, -] -server = [ - { name = "authlib" }, - { name = "cyclopts" }, - { name = "exceptiongroup" }, - { name = "griffelib" }, - { name = "httpx" }, - { name = "joserfc" }, - { name = "jsonref" }, - { name = "jsonschema-path" }, - { name = "mcp" }, - { name = "openapi-pydantic" }, - { name = "opentelemetry-api" }, - { name = "packaging" }, - { name = "py-key-value-aio", extra = ["filetree", "keyring", "memory"] }, - { name = "pyperclip" }, - { name = "python-multipart" }, - { name = "pyyaml" }, - { name = "starlette" }, - { name = "uncalled-for" }, - { name = "uvicorn" }, - { name = "watchfiles" }, - { name = "websockets" }, -] - [[package]] name = "fonttools" version = "4.63.0" @@ -1050,15 +825,6 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/88/63/50636aae68c9bf17c891c7eb18b49baa9bd6b31d2a97b8de4813a9fc8d1c/google_auth-2.56.2-py3-none-any.whl", hash = "sha256:c8270ea95b2697b74e3d8438ae9c5b898e38b623b915c7b5c5635921e7de68a6", size = 258588, upload-time = "2026-07-21T21:53:26.399Z" }, ] -[[package]] -name = "griffelib" -version = "2.1.0" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/33/e4/8d187ea29c2e30b3a09505c567513077d6117861bde1fbd997a167f262ec/griffelib-2.1.0.tar.gz", hash = "sha256:762a186d2c6fd6794d4ea20d428d597ffb857cb56b66421651cbba15bdd5e813", size = 216234, upload-time = "2026-06-19T12:05:42.278Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/e4/d3/5268aeabf2ad82658c4e2ff3a060648d0f02f3926cb53247c0e4d0dab49e/griffelib-2.1.0-py3-none-any.whl", hash = "sha256:cc7b3d2d2865ad0b909fcc38086e3f554b5ea7acbaa7bbb7ecaa3f5dfb7d9f00", size = 142560, upload-time = "2026-06-19T12:05:38.742Z" }, -] - [[package]] name = "gunicorn" version = "26.0.0" @@ -1080,19 +846,6 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/04/4b/29cac41a4d98d144bf5f6d33995617b185d14b22401f75ca86f384e87ff1/h11-0.16.0-py3-none-any.whl", hash = "sha256:63cf8bbe7522de3bf65932fda1d9c2772064ffb3dae62d55932da54b31cb6c86", size = 37515, upload-time = "2025-04-24T03:35:24.344Z" }, ] -[[package]] -name = "httpcore" -version = "1.0.9" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "certifi" }, - { name = "h11" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/06/94/82699a10bca87a5556c9c59b5963f2d039dbd239f25bc2a63907a05a14cb/httpcore-1.0.9.tar.gz", hash = "sha256:6e34463af53fd2ab5d807f399a9b45ea31c3dfa2276f15a2c3f00afff6e176e8", size = 85484, upload-time = "2025-04-24T22:06:22.219Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/7e/f5/f66802a942d491edb555dd61e3a9961140fd64c90bce1eafd741609d334d/httpcore-1.0.9-py3-none-any.whl", hash = "sha256:2d400746a40668fc9dec9810239072b40b4484b640a8c38fd654a024c7a1bf55", size = 78784, upload-time = "2025-04-24T22:06:20.566Z" }, -] - [[package]] name = "httptools" version = "0.8.0" @@ -1129,30 +882,6 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/48/63/b906c01e53f50d432c0defe43ce52764a111dc1bdd028bafbeb54dcfd008/httptools-0.8.0-cp314-cp314t-win_amd64.whl", hash = "sha256:384c17174464c8e873398b7af24f0b1f44d992c820328413951a625323155d77", size = 108209, upload-time = "2026-05-25T22:17:39.473Z" }, ] -[[package]] -name = "httpx" -version = "0.28.1" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "anyio" }, - { name = "certifi" }, - { name = "httpcore" }, - { name = "idna" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/b1/df/48c586a5fe32a0f01324ee087459e112ebb7224f646c0b5023f5e79e9956/httpx-0.28.1.tar.gz", hash = "sha256:75e98c5f16b0f35b567856f597f06ff2270a374470a5c2392242528e3e3e42fc", size = 141406, upload-time = "2024-12-06T15:37:23.222Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/2a/39/e50c7c3a983047577ee07d2a9e53faf5a69493943ec3f6a384bdc792deb2/httpx-0.28.1-py3-none-any.whl", hash = "sha256:d909fcccc110f8c7faf814ca82a9a4d816bc5a6dbfea25d6591d6985b8ba59ad", size = 73517, upload-time = "2024-12-06T15:37:21.509Z" }, -] - -[[package]] -name = "httpx-sse" -version = "0.4.3" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/0f/4c/751061ffa58615a32c31b2d82e8482be8dd4a89154f003147acee90f2be9/httpx_sse-0.4.3.tar.gz", hash = "sha256:9b1ed0127459a66014aec3c56bebd93da3c1bc8bb6618c8082039a44889a755d", size = 15943, upload-time = "2025-10-10T21:48:22.271Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/d2/fd/6668e5aec43ab844de6fc74927e155a3b37bf40d7c3790e49fc0406b6578/httpx_sse-0.4.3-py3-none-any.whl", hash = "sha256:0ac1c9fe3c0afad2e0ebb25a934a59f4c7823b60792691f779fad2c5568830fc", size = 8960, upload-time = "2025-10-10T21:48:21.158Z" }, -] - [[package]] name = "idna" version = "3.18" @@ -1180,48 +909,6 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/cb/b1/3846dd7f199d53cb17f49cba7e651e9ce294d8497c8c150530ed11865bb8/iniconfig-2.3.0-py3-none-any.whl", hash = "sha256:f631c04d2c48c52b84d0d0549c99ff3859c98df65b3101406327ecc7d53fbf12", size = 7484, upload-time = "2025-10-18T21:55:41.639Z" }, ] -[[package]] -name = "jaraco-classes" -version = "3.4.0" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "more-itertools" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/06/c0/ed4a27bc5571b99e3cff68f8a9fa5b56ff7df1c2251cc715a652ddd26402/jaraco.classes-3.4.0.tar.gz", hash = "sha256:47a024b51d0239c0dd8c8540c6c7f484be3b8fcf0b2d85c13825780d3b3f3acd", size = 11780, upload-time = "2024-03-31T07:27:36.643Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/7f/66/b15ce62552d84bbfcec9a4873ab79d993a1dd4edb922cbfccae192bd5b5f/jaraco.classes-3.4.0-py3-none-any.whl", hash = "sha256:f662826b6bed8cace05e7ff873ce0f9283b5c924470fe664fff1c2f00f581790", size = 6777, upload-time = "2024-03-31T07:27:34.792Z" }, -] - -[[package]] -name = "jaraco-context" -version = "6.1.2" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/af/50/4763cd07e722bb6285316d390a164bc7e479db9d90daa769f22578f698b4/jaraco_context-6.1.2.tar.gz", hash = "sha256:f1a6c9d391e661cc5b8d39861ff077a7dc24dc23833ccee564b234b81c82dfe3", size = 16801, upload-time = "2026-03-20T22:13:33.922Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/f2/58/bc8954bda5fcda97bd7c19be11b85f91973d67a706ed4a3aec33e7de22db/jaraco_context-6.1.2-py3-none-any.whl", hash = "sha256:bf8150b79a2d5d91ae48629d8b427a8f7ba0e1097dd6202a9059f29a36379535", size = 7871, upload-time = "2026-03-20T22:13:32.808Z" }, -] - -[[package]] -name = "jaraco-functools" -version = "4.6.0" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "more-itertools" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/6c/1f/c23395957d41ccf27c4e535c3d334c4051e5395b3752057ba4cbaec35c56/jaraco_functools-4.6.0.tar.gz", hash = "sha256:880c577ec9720b3a052d5bc611fb9f2269b3d87902ef42440df443b88e443280", size = 20837, upload-time = "2026-07-14T01:28:02.544Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/02/36/ecc85bc96c273dc8a11273ed4782272975e6338d4a3e9228621175edf0e3/jaraco_functools-4.6.0-py3-none-any.whl", hash = "sha256:99e3dc0060c5cbe8fcd1cdb36258e2a65ca40f1566b2033b12abb1bb44dd3c30", size = 11677, upload-time = "2026-07-14T01:28:01.59Z" }, -] - -[[package]] -name = "jeepney" -version = "0.9.0" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/7b/6f/357efd7602486741aa73ffc0617fb310a29b588ed0fd69c2399acbb85b0c/jeepney-0.9.0.tar.gz", hash = "sha256:cf0e9e845622b81e4a28df94c40345400256ec608d0e55bb8a3feaa9163f5732", size = 106758, upload-time = "2025-02-27T18:51:01.684Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/b2/a3/e137168c9c44d18eff0376253da9f1e9234d0239e0ee230d2fee6cea8e55/jeepney-0.9.0-py3-none-any.whl", hash = "sha256:97e5714520c16fc0a45695e5365a2e11b81ea79bba796e26f9f1d178cb182683", size = 49010, upload-time = "2025-02-27T18:51:00.104Z" }, -] - [[package]] name = "jinja2" version = "3.1.6" @@ -1243,27 +930,6 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/14/2f/967ba146e6d58cf6a652da73885f52fc68001525b4197effc174321d70b4/jmespath-1.1.0-py3-none-any.whl", hash = "sha256:a5663118de4908c91729bea0acadca56526eb2698e83de10cd116ae0f4e97c64", size = 20419, upload-time = "2026-01-22T16:35:24.919Z" }, ] -[[package]] -name = "joserfc" -version = "1.7.4" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "cryptography" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/c7/e0/27a6a081ae25420eda6768ceae05d7022a7f2447f420588843f2a44e4298/joserfc-1.7.4.tar.gz", hash = "sha256:b3bc561672ae541b17a9237053b48a03dacddd92d68047b3ecdfb4b5714a88ed", size = 234027, upload-time = "2026-07-19T15:43:02.739Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/f9/bf/249dcd99b3376375910b7fa922383b57792975c8758f50d44612e749226c/joserfc-1.7.4-py3-none-any.whl", hash = "sha256:32d46c2cd5e3203c13e87a6c61333cab310b1ba80cd54b4c4f386a848a122463", size = 71000, upload-time = "2026-07-19T15:43:01.299Z" }, -] - -[[package]] -name = "jsonref" -version = "1.1.0" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/aa/0d/c1f3277e90ccdb50d33ed5ba1ec5b3f0a242ed8c1b1a85d3afeb68464dca/jsonref-1.1.0.tar.gz", hash = "sha256:32fe8e1d85af0fdefbebce950af85590b22b60f9e95443176adbde4e1ecea552", size = 8814, upload-time = "2023-01-16T16:10:04.455Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/0c/ec/e1db9922bceb168197a558a2b8c03a7963f1afe93517ddd3cf99f202f996/jsonref-1.1.0-py3-none-any.whl", hash = "sha256:590dc7773df6c21cbf948b5dac07a72a251db28b0238ceecce0a2abfa8ec30a9", size = 9425, upload-time = "2023-01-16T16:10:02.255Z" }, -] - [[package]] name = "jsonschema" version = "4.26.0" @@ -1279,21 +945,6 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/69/90/f63fb5873511e014207a475e2bb4e8b2e570d655b00ac19a9a0ca0a385ee/jsonschema-4.26.0-py3-none-any.whl", hash = "sha256:d489f15263b8d200f8387e64b4c3a75f06629559fb73deb8fdfb525f2dab50ce", size = 90630, upload-time = "2026-01-07T13:41:05.306Z" }, ] -[[package]] -name = "jsonschema-path" -version = "0.5.0" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "attrs" }, - { name = "pathable" }, - { name = "pyyaml" }, - { name = "referencing" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/39/79/cd02a4df6d9270efdc7d3feefe6edd730b0820c39eeaa107a2faee8322d5/jsonschema_path-0.5.0.tar.gz", hash = "sha256:493b156ba895c97602655b620a8456caa2ce08c1aa389f5a7addec065e6e855c", size = 19597, upload-time = "2026-05-19T20:45:00.971Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/04/2c/9e69d73c4297508be9e3b64a970ea3971b3eb8db64ffc5802d40bd25981f/jsonschema_path-0.5.0-py3-none-any.whl", hash = "sha256:2790a070bc7abb08ea3dbe4d340ece4efadf639223001f020c7503229ba068e2", size = 24077, upload-time = "2026-05-19T20:44:59.225Z" }, -] - [[package]] name = "jsonschema-specifications" version = "2025.9.1" @@ -1306,23 +957,6 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/41/45/1a4ed80516f02155c51f51e8cedb3c1902296743db0bbc66608a0db2814f/jsonschema_specifications-2025.9.1-py3-none-any.whl", hash = "sha256:98802fee3a11ee76ecaca44429fda8a41bff98b00a0f2838151b113f210cc6fe", size = 18437, upload-time = "2025-09-08T01:34:57.871Z" }, ] -[[package]] -name = "keyring" -version = "25.7.0" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "jaraco-classes" }, - { name = "jaraco-context" }, - { name = "jaraco-functools" }, - { name = "jeepney", marker = "sys_platform == 'linux'" }, - { name = "pywin32-ctypes", marker = "sys_platform == 'win32'" }, - { name = "secretstorage", marker = "sys_platform == 'linux'" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/43/4b/674af6ef2f97d56f0ab5153bf0bfa28ccb6c3ed4d1babf4305449668807b/keyring-25.7.0.tar.gz", hash = "sha256:fe01bd85eb3f8fb3dd0405defdeac9a5b4f6f0439edbb3149577f244a2e8245b", size = 63516, upload-time = "2025-11-16T16:26:09.482Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/81/db/e655086b7f3a705df045bf0933bdd9c2f79bb3c97bfef1384598bb79a217/keyring-25.7.0-py3-none-any.whl", hash = "sha256:be4a0b195f149690c166e850609a477c532ddbfbaed96a404d4e43f8d5e2689f", size = 39160, upload-time = "2025-11-16T16:26:08.402Z" }, -] - [[package]] name = "kombu" version = "5.6.2" @@ -1347,18 +981,6 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/64/69/4a5af2bc115a9a33fefe51709749de8262be3f9ba063d1753a837cdbc49c/markdown-3.10.3-py3-none-any.whl", hash = "sha256:fa6c92a00a4a3c98b22728c64a935ae1928250ae65058a6ded814d2cc29a4cea", size = 110757, upload-time = "2026-07-30T19:05:27.883Z" }, ] -[[package]] -name = "markdown-it-py" -version = "4.2.0" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "mdurl" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/06/ff/7841249c247aa650a76b9ee4bbaeae59370dc8bfd2f6c01f3630c35eb134/markdown_it_py-4.2.0.tar.gz", hash = "sha256:04a21681d6fbb623de53f6f364d352309d4094dd4194040a10fd51833e418d49", size = 82454, upload-time = "2026-05-07T12:08:28.36Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/b3/81/4da04ced5a082363ecfa159c010d200ecbd959ae410c10c0264a38cac0f5/markdown_it_py-4.2.0-py3-none-any.whl", hash = "sha256:9f7ebbcd14fe59494226453aed97c1070d83f8d24b6fc3a3bcf9a38092641c4a", size = 91687, upload-time = "2026-05-07T12:08:27.182Z" }, -] - [[package]] name = "markupsafe" version = "3.0.3" @@ -1422,40 +1044,6 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/70/bc/6f1c2f612465f5fa89b95bead1f44dcb607670fd42891d8fdcd5d039f4f4/markupsafe-3.0.3-cp314-cp314t-win_arm64.whl", hash = "sha256:32001d6a8fc98c8cb5c947787c5d08b0a50663d139f1305bac5885d98d9b40fa", size = 14146, upload-time = "2025-09-27T18:37:28.327Z" }, ] -[[package]] -name = "mcp" -version = "1.28.1" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "anyio" }, - { name = "httpx" }, - { name = "httpx-sse" }, - { name = "jsonschema" }, - { name = "pydantic" }, - { name = "pydantic-settings" }, - { name = "pyjwt", extra = ["crypto"] }, - { name = "python-multipart" }, - { name = "pywin32", marker = "sys_platform == 'win32'" }, - { name = "sse-starlette" }, - { name = "starlette" }, - { name = "typing-extensions" }, - { name = "typing-inspection" }, - { name = "uvicorn", marker = "sys_platform != 'emscripten'" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/6e/77/9450b8f251a13affb6281997d0523c4615f8a8b35d0b21ff30db3a5aac9d/mcp-1.28.1.tar.gz", hash = "sha256:d51e36a5f5644faea4f85ea649bfffa6bc6c26770d42798ad6a3de3d2ba69683", size = 638501, upload-time = "2026-06-26T12:57:29.093Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/e2/5e/d118fce19f87a2e7d8101c35c8ae0ec289098a4df0ff244cec23e415aca0/mcp-1.28.1-py3-none-any.whl", hash = "sha256:2726bca5e7193f61c5dde8b12500a6de2d9acf6d1a1c0be9e8c2e706437991df", size = 222620, upload-time = "2026-06-26T12:57:27.218Z" }, -] - -[[package]] -name = "mdurl" -version = "0.1.2" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/d6/54/cfe61301667036ec958cb99bd3efefba235e65cdeb9c84d24a8293ba1d90/mdurl-0.1.2.tar.gz", hash = "sha256:bb413d29f5eea38f31dd4754dd7377d4465116fb207585f97bf925588687c1ba", size = 8729, upload-time = "2022-08-14T12:40:10.846Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/b3/38/89ba8ad64ae25be8de66a6d463314cf1eb366222074cfda9ee839c56a4b4/mdurl-0.1.2-py3-none-any.whl", hash = "sha256:84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8", size = 9979, upload-time = "2022-08-14T12:40:09.779Z" }, -] - [[package]] name = "mergedeep" version = "1.3.4" @@ -1534,39 +1122,6 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/5b/54/662a4743aa81d9582ee9339d4ffa3c8fd40a4965e033d77b9da9774d3960/mkdocs_material_extensions-1.3.1-py3-none-any.whl", hash = "sha256:adff8b62700b25cb77b53358dad940f3ef973dd6db797907c49e3c2ef3ab4e31", size = 8728, upload-time = "2023-11-22T19:09:43.465Z" }, ] -[[package]] -name = "more-itertools" -version = "11.1.0" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/de/1d/f4da6f02cdffe04d6362210b807146a26044c88d839208aec273bb0d9184/more_itertools-11.1.0.tar.gz", hash = "sha256:48e8f4d9e7e5878571ecf6f2b4e57634f93cd474cc8cfbd2376f2d11b396e30d", size = 145772, upload-time = "2026-05-22T14:14:29.909Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/e8/3d/1087453384dbde46a8c7f9356eead2c58be8a7bf156bca40243377c85715/more_itertools-11.1.0-py3-none-any.whl", hash = "sha256:4b65538ae22f6fed0ce4874efd317463a7489796a0939fa66824dd542125a192", size = 72226, upload-time = "2026-05-22T14:14:28.824Z" }, -] - -[[package]] -name = "openapi-pydantic" -version = "0.5.1" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "pydantic" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/02/2e/58d83848dd1a79cb92ed8e63f6ba901ca282c5f09d04af9423ec26c56fd7/openapi_pydantic-0.5.1.tar.gz", hash = "sha256:ff6835af6bde7a459fb93eb93bb92b8749b754fc6e51b2f1590a19dc3005ee0d", size = 60892, upload-time = "2025-01-08T19:29:27.083Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/12/cf/03675d8bd8ecbf4445504d8071adab19f5f993676795708e36402ab38263/openapi_pydantic-0.5.1-py3-none-any.whl", hash = "sha256:a3a09ef4586f5bd760a8df7f43028b60cafb6d9f61de2acba9574766255ab146", size = 96381, upload-time = "2025-01-08T19:29:25.275Z" }, -] - -[[package]] -name = "opentelemetry-api" -version = "1.44.0" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "typing-extensions" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/ee/8b/aa9e2d8b8dfa7c946f7dec5d1f8f6ba8eca062f43509a06bdb5ce93d26c0/opentelemetry_api-1.44.0.tar.gz", hash = "sha256:67647e5e9566edcf421166fdf022b3537f818635daa852b289e34604dc6fb33a", size = 72406, upload-time = "2026-07-16T15:25:32.678Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/ca/6f/a04e900f465ff3221ccc395522503e2d10e79fa21f2723c8e177aae1e0d1/opentelemetry_api-1.44.0-py3-none-any.whl", hash = "sha256:94b98c893a91b88657eaac1e3ba89618cdb85be6918196705354f34728b2cdef", size = 60018, upload-time = "2026-07-16T15:25:11.657Z" }, -] - [[package]] name = "packaging" version = "26.2" @@ -1585,15 +1140,6 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/90/96/04b8e52da071d28f5e21a805b19cb9390aa17a47462ac87f5e2696b9566d/paginate-0.5.7-py2.py3-none-any.whl", hash = "sha256:b885e2af73abcf01d9559fd5216b57ef722f8c42affbb63942377668e35c7591", size = 13746, upload-time = "2024-08-25T14:17:22.55Z" }, ] -[[package]] -name = "pathable" -version = "0.6.0" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/66/f3/5a20387de9bcd0607871bfc2198ee0e15836da7baa4592ccd7f24c27c986/pathable-0.6.0.tar.gz", hash = "sha256:6404b8b82aef5ff0fd478934137128b99b12212ba35afdde5525ca4f8388ea58", size = 18970, upload-time = "2026-05-19T18:15:11.911Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/a2/e8/6d75ffd9784bce2e93d1ae4415649427e39a53bb172d4672b2b59c6f0a7b/pathable-0.6.0-py3-none-any.whl", hash = "sha256:82c4ca6c98c502ad12e0d4e9779b6210afee93c38990988c8c5d1b49bdcdf566", size = 18983, upload-time = "2026-05-19T18:15:10.728Z" }, -] - [[package]] name = "pathspec" version = "1.1.1" @@ -1705,69 +1251,76 @@ wheels = [ ] [[package]] -name = "psycopg2-binary" -version = "2.9.12" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/2a/60/a3624f79acea344c16fbef3a94d28b89a8042ddfb8f3e4ca83f538671409/psycopg2_binary-2.9.12.tar.gz", hash = "sha256:5ac9444edc768c02a6b6a591f070b8aae28ff3a99be57560ac996001580f294c", size = 379686, upload-time = "2026-04-21T09:40:34.304Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/e2/9f/ef4ef3c8e15083df90ca35265cfd1a081a2f0cc07bb229c6314c6af817f4/psycopg2_binary-2.9.12-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:5cdc05117180c5fa9c40eea8ea559ce64d73824c39d928b7da9fb5f6a9392433", size = 3712459, upload-time = "2026-04-20T23:34:30.549Z" }, - { url = "https://files.pythonhosted.org/packages/b5/01/3dd14e46ba48c1e1a6ec58ee599fa1b5efa00c246d5046cd903d0eeb1af1/psycopg2_binary-2.9.12-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:d3227a3bc228c10d21011a99245edca923e4e8bf461857e869a507d9a41fe9f6", size = 3822936, upload-time = "2026-04-20T23:34:32.77Z" }, - { url = "https://files.pythonhosted.org/packages/a6/f7/0640e4901119d8a9f7a1784b927f494e2198e213ceb593753d1f2c8b1b30/psycopg2_binary-2.9.12-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:995ce929eede89db6254b50827e2b7fd61e50d11f0b116b29fffe4a2e53c4580", size = 4578676, upload-time = "2026-04-20T23:34:35.18Z" }, - { url = "https://files.pythonhosted.org/packages/b0/55/44df3965b5f297c50cc0b1b594a31c67d6127a9d133045b8a66611b14dfb/psycopg2_binary-2.9.12-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:9fe06d93e72f1c048e731a2e3e7854a5bfaa58fc736068df90b352cefe66f03f", size = 4274917, upload-time = "2026-04-20T23:34:37.982Z" }, - { url = "https://files.pythonhosted.org/packages/b0/4b/74535248b1eac0c9336862e8617c765ac94dac76f9e25d7c4a79588c8907/psycopg2_binary-2.9.12-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:40e7b28b63aaf737cb3a1edc3a9bbc9a9f4ad3dcb7152e8c1130e4050eddcb7d", size = 5894843, upload-time = "2026-04-20T23:34:40.856Z" }, - { url = "https://files.pythonhosted.org/packages/f2/ba/f1bf8d2ae71868ad800b661099086ee52bc0f8d9f05be1acd8ebb06757cc/psycopg2_binary-2.9.12-cp312-cp312-manylinux_2_38_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:89d19a9f7899e8eb0656a2b3a08e0da04c720a06db6e0033eab5928aabe60fa9", size = 4110556, upload-time = "2026-04-20T23:34:44.016Z" }, - { url = "https://files.pythonhosted.org/packages/45/46/c15706c338403b7c420bcc0c2905aad116cc064545686d8bf85f1999ea00/psycopg2_binary-2.9.12-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:612b965daee295ae2da8f8218ce1d274645dc76ef3f1abf6a0a94fd57eff876d", size = 3655714, upload-time = "2026-04-20T23:34:46.233Z" }, - { url = "https://files.pythonhosted.org/packages/b3/7c/a2d5dc09b64a4564db242a0fe418fde7d33f6f8259dd2c5b9d7def00fb5a/psycopg2_binary-2.9.12-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:b9a339b79d37c1b45f3235265f07cdeb0cb5ad7acd2ac7720a5920989c17c24e", size = 3301154, upload-time = "2026-04-20T23:34:49.528Z" }, - { url = "https://files.pythonhosted.org/packages/c0/e8/cc8c9a4ce71461f9ec548d38cadc41dc184b34c73e6455450775a9334ccd/psycopg2_binary-2.9.12-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:3471336e1acfd9c7fe507b8bad5af9317b6a89294f9eb37bd9a030bb7bebcdc6", size = 3048882, upload-time = "2026-04-20T23:34:51.86Z" }, - { url = "https://files.pythonhosted.org/packages/19/6a/31e2296bc0787c5ab75d3d118e40b239db8151b5192b90b77c72bc9256e9/psycopg2_binary-2.9.12-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:7af18183109e23502c8b2ae7f6926c0882766f35b5175a4cd737ad825e4d7a1b", size = 3351298, upload-time = "2026-04-20T23:34:54.124Z" }, - { url = "https://files.pythonhosted.org/packages/5f/a8/75f4e3e11203b590150abed2cf7794b9c9c9f7eceddae955191138b44dde/psycopg2_binary-2.9.12-cp312-cp312-win_amd64.whl", hash = "sha256:398fcd4db988c7d7d3713e2b8e18939776fd3fb447052daae4f24fa39daede4c", size = 2757230, upload-time = "2026-04-20T23:34:56.242Z" }, - { url = "https://files.pythonhosted.org/packages/91/bb/4608c96f970f6e0c56572e87027ef4404f709382a3503e9934526d7ba051/psycopg2_binary-2.9.12-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:7c729a73c7b1b84de3582f73cdd27d905121dc2c531f3d9a3c32a3011033b965", size = 3712419, upload-time = "2026-04-20T23:34:58.754Z" }, - { url = "https://files.pythonhosted.org/packages/5e/af/48f76af9d50d61cf390f8cd657b503168b089e2e9298e48465d029fcc713/psycopg2_binary-2.9.12-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:4413d0caef93c5cf50b96863df4c2efe8c269bf2267df353225595e7e15e8df7", size = 3822990, upload-time = "2026-04-20T23:35:00.821Z" }, - { url = "https://files.pythonhosted.org/packages/7a/df/aba0f99397cd811d32e06fc0cc781f1f3ce98bc0e729cb423925085d781a/psycopg2_binary-2.9.12-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:4dfcf8e45ebb0c663be34a3442f65e17311f3367089cd4e5e3a3e8e62c978777", size = 4578696, upload-time = "2026-04-20T23:35:03.409Z" }, - { url = "https://files.pythonhosted.org/packages/95/9c/eaa74021ac4e4d5c2f83d82fc6615a63f4fe6c94dc4e94c3990427053f67/psycopg2_binary-2.9.12-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:c41321a14dd74aceb6a9a643b9253a334521babfa763fa873e33d89cfa122fb5", size = 4274982, upload-time = "2026-04-20T23:35:05.583Z" }, - { url = "https://files.pythonhosted.org/packages/35/ed/c25deff98bd26187ba48b3b250a3ffc3037c46c5b89362534a15d200e0db/psycopg2_binary-2.9.12-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:83946ba43979ebfdc99a3cd0ee775c89f221df026984ba19d46133d8d75d3cd9", size = 5894867, upload-time = "2026-04-20T23:35:07.902Z" }, - { url = "https://files.pythonhosted.org/packages/9a/81/8d0e21ca77373c6c9589e5c4528f6e8f0c08c62cafc76fb0bddb7a2cee22/psycopg2_binary-2.9.12-cp313-cp313-manylinux_2_38_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:411e85815652d13560fbe731878daa5d92378c4995a22302071890ec3397d019", size = 4110578, upload-time = "2026-04-20T23:35:10.149Z" }, - { url = "https://files.pythonhosted.org/packages/00/fc/f481e2435bd8f742d0123309174aae4165160ad3ef17c1b99c3622c241d2/psycopg2_binary-2.9.12-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:1c8ad4c08e00f7679559eaed7aff1edfffc60c086b976f93972f686384a95e2c", size = 3655816, upload-time = "2026-04-20T23:35:12.56Z" }, - { url = "https://files.pythonhosted.org/packages/53/79/b9f46466bdbe9f239c96cde8be33c1aace4842f06013b47b730dc9759187/psycopg2_binary-2.9.12-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:00814e40fa23c2b37ef0a1e3c749d89982c73a9cb5046137f0752a22d432e82f", size = 3301307, upload-time = "2026-04-20T23:35:15.029Z" }, - { url = "https://files.pythonhosted.org/packages/3f/19/7dc003b32fe35024df89b658104f7c8538a8b2dcbde7a4e746ce929742e7/psycopg2_binary-2.9.12-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:98062447aebc20ed20add1f547a364fd0ef8933640d5372ff1873f8deb9b61be", size = 3048968, upload-time = "2026-04-20T23:35:16.757Z" }, - { url = "https://files.pythonhosted.org/packages/91/58/2dbd7db5c604d45f4950d988506aae672a14126ec22998ced5021cbb76bb/psycopg2_binary-2.9.12-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:66a7685d7e548f10fb4ce32fb01a7b7f4aa702134de92a292c7bd9e0d3dbd290", size = 3351369, upload-time = "2026-04-20T23:35:18.933Z" }, - { url = "https://files.pythonhosted.org/packages/42/ee/dee8dcaad07f735824de3d6563bc67119fa6c28257b17977a8d624f02fab/psycopg2_binary-2.9.12-cp313-cp313-win_amd64.whl", hash = "sha256:b6937f5fe4e180aeee87de907a2fa982ded6f7f15d7218f78a083e4e1d68f2a0", size = 2757347, upload-time = "2026-04-20T23:35:21.283Z" }, - { url = "https://files.pythonhosted.org/packages/13/1b/708c0dca874acfad6d65314271859899a79007686f3a1f74e82a2ed4b645/psycopg2_binary-2.9.12-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:6f3b3de8a74ef8db215f22edffb19e32dc6fa41340456de7ec99efdc8a7b3ec2", size = 3712428, upload-time = "2026-04-20T23:35:23.453Z" }, - { url = "https://files.pythonhosted.org/packages/d6/39/ddbea9d4b4de6aca9431b6ed253f530f8a02d3b8f9bcfd0dbfe2b3de6fe4/psycopg2_binary-2.9.12-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:1006fb62f0f0bc5ce256a832356c6262e91be43f5e4eb15b5eaf38079464caf2", size = 3823184, upload-time = "2026-04-20T23:35:25.92Z" }, - { url = "https://files.pythonhosted.org/packages/bf/a0/bc2fef74b106fa345567122a0659e6d94512ed7dc0131ec44c9e5aba3725/psycopg2_binary-2.9.12-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:840066105706cd2eb29b9a1c2329620056582a4bf3e8169dec5c447042d0869f", size = 4579157, upload-time = "2026-04-20T23:35:28.542Z" }, - { url = "https://files.pythonhosted.org/packages/57/d7/d4e3b2005d3de607ca4fbb0e8742e248056e52184a6b94ebda3c1c2c329b/psycopg2_binary-2.9.12-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:863f5d12241ebe1c76a72a04c2113b6dc905f90b9cef0e9be0efd994affd9354", size = 4274970, upload-time = "2026-04-20T23:35:30.418Z" }, - { url = "https://files.pythonhosted.org/packages/2e/42/c9853f8db3967fe08bcde11f53d53b85d351750cae726ce001cb68afa9c1/psycopg2_binary-2.9.12-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:a99eaab34a9010f1a086b126de467466620a750634d114d20455f3a824aae033", size = 5895175, upload-time = "2026-04-20T23:35:33.584Z" }, - { url = "https://files.pythonhosted.org/packages/eb/fd/b82b5601a97630308bef079f545ffec481bbbc795c2ba5ec416a01d03f60/psycopg2_binary-2.9.12-cp314-cp314-manylinux_2_38_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:ffdd7dc5463ccd61845ac37b7012d0f35a1548df9febe14f8dd549be4a0bc81e", size = 4110658, upload-time = "2026-04-20T23:35:35.638Z" }, - { url = "https://files.pythonhosted.org/packages/62/8c/32ca69b0389ef25dd22937bf9e8fbe2ce27aea20b05ded48c4ce4cb42475/psycopg2_binary-2.9.12-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:54a0dfecab1b48731f934e06139dfe11e24219fb6d0ceb32177cf0375f14c7b5", size = 3656251, upload-time = "2026-04-20T23:35:37.854Z" }, - { url = "https://files.pythonhosted.org/packages/c4/29/96992a2b59e3b9d730fcf9612d0a387305025dc867a9fc490a9e496e074e/psycopg2_binary-2.9.12-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:96937c9c5d891f772430f418a7a8b4691a90c3e6b93cf72b5bd7cad8cbca32a5", size = 3301810, upload-time = "2026-04-20T23:35:39.927Z" }, - { url = "https://files.pythonhosted.org/packages/56/ad/44b06659949b243ae10112cd3b20a197f9bf3e81d5651379b9eb889bfaad/psycopg2_binary-2.9.12-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:77b348775efd4cdab410ec6609d81ccecd1139c90265fa583a7255c8064bc03d", size = 3048977, upload-time = "2026-04-20T23:35:41.806Z" }, - { url = "https://files.pythonhosted.org/packages/1d/f2/10a1bcebadb6aa55e280e1f58975c36a7b560ea525184c7aa4064c466633/psycopg2_binary-2.9.12-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:527e6342b3e44c2f0544f6b8e927d60de7f163f5723b8f1dfa7d2a84298738cd", size = 3351466, upload-time = "2026-04-20T23:35:43.993Z" }, - { url = "https://files.pythonhosted.org/packages/20/be/b732c8418ffa5bcfda002890f5dc4c869fc17db66ff11f53b17cfe44afc0/psycopg2_binary-2.9.12-cp314-cp314-win_amd64.whl", hash = "sha256:f12ae41fcafadb39b2785e64a40f9db05d6de2ac114077457e0e7c597f3af980", size = 2848762, upload-time = "2026-04-20T23:35:46.421Z" }, -] - -[[package]] -name = "py-key-value-aio" -version = "0.4.5" +name = "psycopg" +version = "3.3.4" source = { registry = "https://pypi.org/simple" } dependencies = [ - { name = "beartype" }, - { name = "typing-extensions" }, + { name = "typing-extensions", marker = "python_full_version < '3.13'" }, + { name = "tzdata", marker = "sys_platform == 'win32'" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/fb/e2/d689d922894a7ecde73b6daeaf9b13dab5aae06fe6aaaf7514722644d382/py_key_value_aio-0.4.5.tar.gz", hash = "sha256:c6563a2c6abe5da5e20f4f9e875c2a9b425a2244a54fadbf46cf140a9eea45d7", size = 107547, upload-time = "2026-05-27T16:37:08.107Z" } +sdist = { url = "https://files.pythonhosted.org/packages/db/2f/cb91e5502ec9de1de6f1b76cfbf69531932725361168bb06963620c77e2e/psycopg-3.3.4.tar.gz", hash = "sha256:e21207764952cff81b6b8bdacad9a3939f2793367fdac2987b3aac36a651b5bc", size = 165799, upload-time = "2026-05-01T23:31:55.179Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/f6/95/b8ba862968712caa12a19666175334fa979e1f198b896a430adb3bacfe87/py_key_value_aio-0.4.5-py3-none-any.whl", hash = "sha256:ab862adbcb8c72547d1c57821f22cbbb71ab86509039c96f36e914e0336c8dd7", size = 170005, upload-time = "2026-05-27T16:37:06.629Z" }, + { url = "https://files.pythonhosted.org/packages/5c/e0/7b3dee031daae7743609ce3c746565d4a3ed7c2c186479eb48e34e838c64/psycopg-3.3.4-py3-none-any.whl", hash = "sha256:b6bbc25ccf05c8fad3b061d9db2ef0909a555171b84b07f29458a447253d679a", size = 213001, upload-time = "2026-05-01T23:20:50.816Z" }, ] [package.optional-dependencies] -filetree = [ - { name = "aiofile" }, - { name = "anyio" }, +binary = [ + { name = "psycopg-binary", marker = "implementation_name != 'pypy'" }, ] -keyring = [ - { name = "keyring" }, +pool = [ + { name = "psycopg-pool" }, ] -memory = [ - { name = "cachetools" }, + +[[package]] +name = "psycopg-binary" +version = "3.3.4" +source = { registry = "https://pypi.org/simple" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/95/7d/03818e13ba7f36de93573c93ee3482006d3dfa8b0f8d28df511bad0a1a92/psycopg_binary-3.3.4-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:5ab28a2a7649df3b72e6b674b4c190e448e8e77cf496a65bd846472048de2089", size = 4591122, upload-time = "2026-05-01T23:27:56.162Z" }, + { url = "https://files.pythonhosted.org/packages/a5/b9/11b341edf8d54e2694726b273fe9652b254d989f4f63e3ac6816ad6b55f4/psycopg_binary-3.3.4-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:6402a9d8146cf4b3974ded3fd28a971e83dc6a0333eb7822524a3aa20b546578", size = 4669943, upload-time = "2026-05-01T23:28:04.522Z" }, + { url = "https://files.pythonhosted.org/packages/8b/18/4665bacd65e7865b4372fcd8abb8b9186ada4b0025f8c2ca691b364a556c/psycopg_binary-3.3.4-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:580ae30a5f95ccd90008ec697d3ed6a4a2047a516407ad904283fa42086936e9", size = 5469697, upload-time = "2026-05-01T23:28:11.337Z" }, + { url = "https://files.pythonhosted.org/packages/7c/b1/b83136c6e510593d9b0c759ba5384337bc4ad82d19fda675adc4b2703c84/psycopg_binary-3.3.4-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:e7510c37550f91a187e3660a8cc50d4b760f8c3b8b2f89ebc5698cd2c7f2c85d", size = 5152995, upload-time = "2026-05-01T23:28:20.529Z" }, + { url = "https://files.pythonhosted.org/packages/67/8d/a9821e2a648afe6091989929982a3b0f00b2631a859cb81379728f08fb75/psycopg_binary-3.3.4-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:77df19583501ea288eaf15ac0fe7ad01e6d8091a91d5c41df5c718f307d8e31b", size = 6738180, upload-time = "2026-05-01T23:28:30.654Z" }, + { url = "https://files.pythonhosted.org/packages/7e/58/2e349e8d23905dc2317b80ac65f48fb6f821a4777a4e994a60da91c4850f/psycopg_binary-3.3.4-cp312-cp312-manylinux_2_38_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:018fbed325936da502feb546642c982dcc4b9ffdea32dfef78dbf3b7f7ad4070", size = 4978828, upload-time = "2026-05-01T23:28:37.277Z" }, + { url = "https://files.pythonhosted.org/packages/45/48/57b00d03b4721878326122a1f1e6b0a90b85bcaec56b5b2f8ea6cfa45235/psycopg_binary-3.3.4-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:17a21953a9e5ff3a16dab692625a3676e2f101db5e40072f39dbee2250194d68", size = 4509757, upload-time = "2026-05-01T23:28:43.078Z" }, + { url = "https://files.pythonhosted.org/packages/25/37/33b47d8c007df69aec500df5889767c4d313748e8e9e27a2fef8a6dabcee/psycopg_binary-3.3.4-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:eb05ee1c2b817d27c537333224c9e83c7afb86fe7296ba970990068baf819b16", size = 4190546, upload-time = "2026-05-01T23:28:50.016Z" }, + { url = "https://files.pythonhosted.org/packages/ca/c6/32b0835dbc2122617902b649d76a91c1e75406e76bf3d595b0c3bb5ffad6/psycopg_binary-3.3.4-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:773d573e11f437ce0bdb95b7c18dc58390494f96d43f8b45b9760436114f7652", size = 3926197, upload-time = "2026-05-01T23:28:55.55Z" }, + { url = "https://files.pythonhosted.org/packages/cd/68/d190ef0c0c5b16ded07831dabc8ddd412f4cdab07ec6e30ed38d9bda0e1f/psycopg_binary-3.3.4-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:71e55ccbdfae79a2ed9c6369c3008a3025817ff9d7e27b32a2d84e2a4267e66e", size = 4236627, upload-time = "2026-05-01T23:29:05.336Z" }, + { url = "https://files.pythonhosted.org/packages/25/8f/81dcbc2e8454b74d14881275ea45f00791052dac531a9fa8be1730d1685b/psycopg_binary-3.3.4-cp312-cp312-win_amd64.whl", hash = "sha256:494ca54901be8cf9eb7e02c25b731f2317c378efa44f43e8f9bd0e1184ae7be4", size = 3560782, upload-time = "2026-05-01T23:29:11.967Z" }, + { url = "https://files.pythonhosted.org/packages/09/43/13e9c406fbbf354580476e248a16b64802a376873ebe6339e30bb655572d/psycopg_binary-3.3.4-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:fbd1d4ed566895ad2d3bf4ddfd8bae90026930ddf29df3b9d91d32c8c47866a7", size = 4590377, upload-time = "2026-05-01T23:29:18.782Z" }, + { url = "https://files.pythonhosted.org/packages/22/be/2923cd7c3683e7afdecf4f10796a18de02f5c5ddc0969aa2ad0a8cdd3bbd/psycopg_binary-3.3.4-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:75a9067e236f9b9ae3535b66fe99bddb33d39c0de10112e49b9ab11eee53dc31", size = 4669023, upload-time = "2026-05-01T23:29:25.884Z" }, + { url = "https://files.pythonhosted.org/packages/96/a0/2c913d6fe13d6a8bd13597d36739bf47af063ad9399e402cfecab16f3c1e/psycopg_binary-3.3.4-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:b56b603ebcea8aa10b46228b8410ba7f13e7c2ee54389d4d9be0927fd8ce2a70", size = 5467423, upload-time = "2026-05-01T23:29:33.416Z" }, + { url = "https://files.pythonhosted.org/packages/e7/38/205d10bc1ad0df4a21c5c51659126bd3ea0ef98fcad1e852f78c249bb9c3/psycopg_binary-3.3.4-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:c677c4ad433cb7150c8cd304a0769ae3bcfbe5ea0676eb53faa7b1443b16d0d3", size = 5151137, upload-time = "2026-05-01T23:29:42.013Z" }, + { url = "https://files.pythonhosted.org/packages/36/fc/f0381ddcd45eff3bb70dbca6823a996048d7f507b2ec3fc92c6fabc0fe87/psycopg_binary-3.3.4-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:26df2717e59c0473e4465a97dfb1b7afebaa479277870fd5784d1436470db47c", size = 6736671, upload-time = "2026-05-01T23:29:51.626Z" }, + { url = "https://files.pythonhosted.org/packages/95/40/fa545ae152c24327651e5624e4902121e808270be36c10b12e9939be09bc/psycopg_binary-3.3.4-cp313-cp313-manylinux_2_38_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:1dc1f79fd16bb1f3f4421417a514607539f17804d95c7ed617265369d1981cae", size = 4979601, upload-time = "2026-05-01T23:29:56.961Z" }, + { url = "https://files.pythonhosted.org/packages/86/e4/2f8a47ee97f90cd2b933d0463081d35631ff419de2b8c984a5f369857de0/psycopg_binary-3.3.4-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:136f199a407b5348b9b857c504aff60c77622a28482e7195839ce1b51238c4cc", size = 4510513, upload-time = "2026-05-01T23:30:07.243Z" }, + { url = "https://files.pythonhosted.org/packages/0e/0e/94e842ff4a7f98ed162580ca2e8b8864b28c1e0350f2443f8ee47f821167/psycopg_binary-3.3.4-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:b6f5a29e9c775b9f12a1a717aa7a2c80f9e1db6f27ba44a5b59c80ac61d2ffcf", size = 4187243, upload-time = "2026-05-01T23:30:15.352Z" }, + { url = "https://files.pythonhosted.org/packages/d0/83/fc6c174b672e29b7de996ea77b6cbddf46c891751c3355f6974292baa6b4/psycopg_binary-3.3.4-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:ee17a2cf4943cde261adfad1bbc5bf38d6b3776d7afff74c7cabcbeaeb08c260", size = 3927347, upload-time = "2026-05-01T23:30:21.186Z" }, + { url = "https://files.pythonhosted.org/packages/e9/65/768364d4a97a15b1a7f47ba52688c1686f22941d8332a8398cefc468e25f/psycopg_binary-3.3.4-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:5c4ab71be17bdca30cb34c34c4e1496e2f5d6f20c199c12bad226070b22ef9bf", size = 4236393, upload-time = "2026-05-01T23:30:26.211Z" }, + { url = "https://files.pythonhosted.org/packages/bd/3b/218efbc9e645becd80cdf651acda05f85cfe546b7a9c0458c7cbc8fe1f74/psycopg_binary-3.3.4-cp313-cp313-win_amd64.whl", hash = "sha256:dbfdb9b6cc79f31104a7b162a2b921b765fcc62af6c00540a167a8de47e4ed38", size = 3564592, upload-time = "2026-05-01T23:30:31.764Z" }, + { url = "https://files.pythonhosted.org/packages/48/a6/828c9185701dab71b234c2a76c38a08b098ebfec5020716b4e93807492b5/psycopg_binary-3.3.4-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:28b7398fdd19db3232c884fb24550bdfe951221f510e195e233299e4c9b78f97", size = 4607292, upload-time = "2026-05-01T23:30:38.962Z" }, + { url = "https://files.pythonhosted.org/packages/92/58/5b40dbc9d839045c9dae956960e4fb6d20bcabe6c59a2aa34fc3a371913f/psycopg_binary-3.3.4-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:1fbaa292a3c8bb61b45df1ad3da1908ccee7cb889db9425e3557d9e34e2a4829", size = 4687023, upload-time = "2026-05-01T23:30:47.227Z" }, + { url = "https://files.pythonhosted.org/packages/85/a9/793f0ac107a9003b48441d0d1f9f616d96e0f37458dd8dc12528ceff55fb/psycopg_binary-3.3.4-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:94596f9e7633ee3f6440711d43bb70aa31cc0a46a900ab8b4201a366ace5c9e7", size = 5486985, upload-time = "2026-05-01T23:30:55.517Z" }, + { url = "https://files.pythonhosted.org/packages/8f/26/42e8533497e2592334f68ec529cf5f840f7fa4e99575a4bb61aa184dbfbf/psycopg_binary-3.3.4-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:8c0056529e68dbe9184cd4019a1f3d8f3a4ead2f6fc7a5afcf27d3314edd1277", size = 5168745, upload-time = "2026-05-01T23:31:01.904Z" }, + { url = "https://files.pythonhosted.org/packages/15/af/b7151776cc08d5935d45c833ec818a9beb417cf7c08239af1aafbdae78ee/psycopg_binary-3.3.4-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:2c09aad7051326e7603c14e50636db9c01f78272dc54b3accff03d46370461e6", size = 6761486, upload-time = "2026-05-01T23:31:14.511Z" }, + { url = "https://files.pythonhosted.org/packages/d0/ed/c92533b9124712d592cbf1cd6c76da933a2e0acea81dfe1fbe7e735f0cff/psycopg_binary-3.3.4-cp314-cp314-manylinux_2_38_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:514404ed543efd620c85602b747df2a23cf1241b4067199e1a66f2d2757aaa41", size = 4997427, upload-time = "2026-05-01T23:31:20.901Z" }, + { url = "https://files.pythonhosted.org/packages/a2/23/ccadfd0de416aa188356daa199453af24087b042e296088706d190ae0295/psycopg_binary-3.3.4-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:46893c26858be12cc49ca4226ed6a60b4bfccadd946b3bebb783a60b38788228", size = 4533549, upload-time = "2026-05-01T23:31:26.204Z" }, + { url = "https://files.pythonhosted.org/packages/fd/a0/c8f43cee36386f7bc891ab41a9d31ea07cf9826038e732da79f26b1e5f34/psycopg_binary-3.3.4-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:df1d567fc430f6df15c9fcf67d87685fc49bdb325adc0db5af1adfb2f44eb5c9", size = 4210256, upload-time = "2026-05-01T23:31:33.884Z" }, + { url = "https://files.pythonhosted.org/packages/4e/2c/c1547871be3790676e8868b38655496422f94f0978dfb66b74bdba2f1676/psycopg_binary-3.3.4-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:6b9016b1714da4dd5ecaaa75b82098aa5a0b87854ce9b092e21c27c4ae23e014", size = 3946204, upload-time = "2026-05-01T23:31:39.626Z" }, + { url = "https://files.pythonhosted.org/packages/c4/b1/f6670f00fa7ea601584623f6c11602ab92117d83eaff885e0210f6de7418/psycopg_binary-3.3.4-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:47c656a8a7ba6eb0cff1801a4caaa9c8bdc12d03080e273aff1c8ac39971a77e", size = 4255811, upload-time = "2026-05-01T23:31:44.986Z" }, + { url = "https://files.pythonhosted.org/packages/eb/e6/5fff07a70d1f945ed90ae131c3bd76cab32beff7c58c6db15ad5820b6d1f/psycopg_binary-3.3.4-cp314-cp314-win_amd64.whl", hash = "sha256:c37e024c07308cd06cf3ec51bfd0e7f6157585a4d84d1bce4a7f5f7913719bf8", size = 3666849, upload-time = "2026-05-01T23:31:51.165Z" }, +] + +[[package]] +name = "psycopg-pool" +version = "3.3.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "typing-extensions" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/90/82/7a23d26039827ecd4ebe93905651029ddd307c5182ad59296dfb6f67b528/psycopg_pool-3.3.1.tar.gz", hash = "sha256:b10b10b7a175d5cc1592147dc5b7eec8a9e0834eb3ed2c4a92c858e2f51eb63c", size = 31661, upload-time = "2026-05-01T23:31:59.809Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/37/ed/89c2c620af0e1660354cd8aabf9f5b21f911597ce22acb37c805d6c86bc8/psycopg_pool-3.3.1-py3-none-any.whl", hash = "sha256:2af5b432941c4c9ad5c87b3fa410aec910ec8f7c122855897983a06c45f2e4b5", size = 40023, upload-time = "2026-05-01T23:31:53.136Z" }, ] [[package]] @@ -1800,115 +1353,6 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/0c/c3/44f3fbbfa403ea2a7c779186dc20772604442dde72947e7d01069cbe98e3/pycparser-3.0-py3-none-any.whl", hash = "sha256:b727414169a36b7d524c1c3e31839a521725078d7b2ff038656844266160a992", size = 48172, upload-time = "2026-01-21T14:26:50.693Z" }, ] -[[package]] -name = "pydantic" -version = "2.13.4" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "annotated-types" }, - { name = "pydantic-core" }, - { name = "typing-extensions" }, - { name = "typing-inspection" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/18/a5/b60d21ac674192f8ab0ba4e9fd860690f9b4a6e51ca5df118733b487d8d6/pydantic-2.13.4.tar.gz", hash = "sha256:c40756b57adaa8b1efeeced5c196f3f3b7c435f90e84ea7f443901bec8099ef6", size = 844775, upload-time = "2026-05-06T13:43:05.343Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/fd/7b/122376b1fd3c62c1ed9dc80c931ace4844b3c55407b6fb2d199377c9736f/pydantic-2.13.4-py3-none-any.whl", hash = "sha256:45a282cde31d808236fd7ea9d919b128653c8b38b393d1c4ab335c62924d9aba", size = 472262, upload-time = "2026-05-06T13:43:02.641Z" }, -] - -[package.optional-dependencies] -email = [ - { name = "email-validator" }, -] - -[[package]] -name = "pydantic-core" -version = "2.46.4" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "typing-extensions" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/9d/56/921726b776ace8d8f5db44c4ef961006580d91dc52b803c489fafd1aa249/pydantic_core-2.46.4.tar.gz", hash = "sha256:62f875393d7f270851f20523dd2e29f082bcc82292d66db2b64ea71f64b6e1c1", size = 471464, upload-time = "2026-05-06T13:37:06.98Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/ce/8c/af022f0af448d7747c5154288d46b5f2bc5f17366eaa0e23e9aa04d59f3b/pydantic_core-2.46.4-cp312-cp312-macosx_10_12_x86_64.whl", hash = "sha256:3245406455a5d98187ec35530fd772b1d799b26667980872c8d4614991e2c4a2", size = 2106158, upload-time = "2026-05-06T13:38:57.215Z" }, - { url = "https://files.pythonhosted.org/packages/19/95/6195171e385007300f0f5574592e467c568becce2d937a0b6804f218bc49/pydantic_core-2.46.4-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:962ccbab7b642487b1d8b7df90ef677e03134cf1fd8880bf698649b22a69371f", size = 1951724, upload-time = "2026-05-06T13:37:02.697Z" }, - { url = "https://files.pythonhosted.org/packages/8e/bc/f47d1ff9cbb1620e1b5b697eef06010035735f07820180e74178226b27b3/pydantic_core-2.46.4-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8233f2947cf85404441fd7e0085f53b10c93e0ee78611099b5c7237e36aacbf7", size = 1975742, upload-time = "2026-05-06T13:37:09.448Z" }, - { url = "https://files.pythonhosted.org/packages/5b/11/9b9a5b0306345664a2da6410877af6e8082481b5884b3ddd78d47c6013ce/pydantic_core-2.46.4-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:3a233125ac121aa3ffba9a2b59edfc4a985a76092dc8279586ab4b71390875e7", size = 2052418, upload-time = "2026-05-06T13:37:38.234Z" }, - { url = "https://files.pythonhosted.org/packages/f1/b7/a65fec226f5d78fc39f4a13c4cc0c768c22b113438f60c14adc9d2865038/pydantic_core-2.46.4-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:5b712b53160b79a5850310b912a5ef8e57e56947c8ad690c227f5c9d7e561712", size = 2232274, upload-time = "2026-05-06T13:38:27.753Z" }, - { url = "https://files.pythonhosted.org/packages/68/f0/92039db98b907ef49269a8271f67db9cb78ae2fc68062ef7e4e77adb5f61/pydantic_core-2.46.4-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:9401557acd873c3a7f3eb9383edef8ac4968f9510e340f4808d427e75667e7b4", size = 2309940, upload-time = "2026-05-06T13:38:05.353Z" }, - { url = "https://files.pythonhosted.org/packages/5f/97/2aab507d3d00ca626e8e57c1eac6a79e4e5fbcc63eb99733ff55d1717f65/pydantic_core-2.46.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:926c9541b14b12b1681dca8a0b75feb510b06c6341b70a8e500c2fdcff837cce", size = 2094516, upload-time = "2026-05-06T13:39:10.577Z" }, - { url = "https://files.pythonhosted.org/packages/22/37/a8aca44d40d737dde2bc05b3c6c07dff0de07ce6f82e9f3167aeaf4d5dea/pydantic_core-2.46.4-cp312-cp312-manylinux_2_31_riscv64.whl", hash = "sha256:56cb4851bcaf3d117eddcef4fe66afd750a50274b0da8e22be256d10e5611987", size = 2136854, upload-time = "2026-05-06T13:40:22.59Z" }, - { url = "https://files.pythonhosted.org/packages/24/99/fcef1b79238c06a8cbec70819ac722ba76e02bc8ada9b0fd66eba40da01b/pydantic_core-2.46.4-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:c68fcd102d71ea85c5b2dfac3f4f8476eff42a9e078fd5faefff6d145063536b", size = 2180306, upload-time = "2026-05-06T13:40:10.666Z" }, - { url = "https://files.pythonhosted.org/packages/ae/6c/fc44000918855b42779d007ae63b0532794739027b2f417321cddbc44f6a/pydantic_core-2.46.4-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:b2f69dec1725e79a012d920df1707de5caf7ed5e08f3be4435e25803efc47458", size = 2190044, upload-time = "2026-05-06T13:40:43.231Z" }, - { url = "https://files.pythonhosted.org/packages/6b/65/d9cadc9f1920d7a127ad2edba16c1db7916e59719285cd6c94600b0080ba/pydantic_core-2.46.4-cp312-cp312-musllinux_1_1_armv7l.whl", hash = "sha256:8d0820e8192167f80d88d64038e609c31452eeca865b4e1d9950a27a4609b00b", size = 2329133, upload-time = "2026-05-06T13:39:57.365Z" }, - { url = "https://files.pythonhosted.org/packages/d0/cf/c873d91679f3a30bcf5e7ac280ce5573483e72295307685120d0d5ad3416/pydantic_core-2.46.4-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:fbdb89b3e1c94a30cc5edfce477c6e6a5dc4d8f84665b455c27582f211a1c72c", size = 2374464, upload-time = "2026-05-06T13:38:06.976Z" }, - { url = "https://files.pythonhosted.org/packages/47/bd/6f2fc8188f31bf10590f1e98e7b306336161fac930a8c514cd7bd828c7dc/pydantic_core-2.46.4-cp312-cp312-win32.whl", hash = "sha256:9aa768456404a8bf48a4406685ac2bec8e72b62c69313734fa3b73cf33b3a894", size = 1974823, upload-time = "2026-05-06T13:40:47.985Z" }, - { url = "https://files.pythonhosted.org/packages/40/8c/985c1d41ea1107c2534abd9870e4ed5c8e7669b5c308297835c001e7a1c4/pydantic_core-2.46.4-cp312-cp312-win_amd64.whl", hash = "sha256:e9c26f834c65f5752f3f06cb08cb86a913ceb7274d0db6e267808a708b46bc89", size = 2072919, upload-time = "2026-05-06T13:39:21.153Z" }, - { url = "https://files.pythonhosted.org/packages/c4/ba/f463d006e0c47373ca7ec5e1a261c59dc01ef4d62b2657af925fb0deee3a/pydantic_core-2.46.4-cp312-cp312-win_arm64.whl", hash = "sha256:4fc73cb559bdb54b1134a706a2802a4cddd27a0633f5abb7e53056268751ac6a", size = 2027604, upload-time = "2026-05-06T13:39:03.753Z" }, - { url = "https://files.pythonhosted.org/packages/51/a2/5d30b469c5267a17b39dec53208222f76a8d351dfac4af661888c5aee77d/pydantic_core-2.46.4-cp313-cp313-macosx_10_12_x86_64.whl", hash = "sha256:5d5902252db0d3cedf8d4a1bc68f70eeb430f7e4c7104c8c476753519b423008", size = 2106306, upload-time = "2026-05-06T13:37:48.029Z" }, - { url = "https://files.pythonhosted.org/packages/c1/81/4fa520eaffa8bd7d1525e644cd6d39e7d60b1592bc5b516693c7340b50f1/pydantic_core-2.46.4-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:c94f0688e7b8d0a67abf40e57a7eaaecd17cc9586706a31b76c031f63df052b4", size = 1951906, upload-time = "2026-05-06T13:37:17.012Z" }, - { url = "https://files.pythonhosted.org/packages/03/d5/fd02da45b659668b05923b17ba3a0100a0a3d5541e3bd8fcc4ecb711309e/pydantic_core-2.46.4-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f027324c56cd5406ca49c124b0db10e56c69064fec039acc571c29020cc87c76", size = 1976802, upload-time = "2026-05-06T13:37:35.113Z" }, - { url = "https://files.pythonhosted.org/packages/21/f2/95727e1368be3d3ed485eaab7adbd7dda408f33f7a36e8b48e0144002b91/pydantic_core-2.46.4-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:e739fee756ba1010f8bcccb534252e85a35fe45ae92c295a06059ce58b74ccd3", size = 2052446, upload-time = "2026-05-06T13:37:12.313Z" }, - { url = "https://files.pythonhosted.org/packages/9c/86/5d99feea3f77c7234b8718075b23db11532773c1a0dbd9b9490215dc2eeb/pydantic_core-2.46.4-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:9d56801be94b86a9da183e5f3766e6310752b99ff647e38b09a9500d88e46e76", size = 2232757, upload-time = "2026-05-06T13:39:01.149Z" }, - { url = "https://files.pythonhosted.org/packages/d2/3a/508ac615935ef7588cf6d9e9b91309fdc2da751af865e02a9098de88258c/pydantic_core-2.46.4-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:2412e734dcb48da14d4e4006b82b46b74f2518b8a26ee7e58c6844a6cd6d03c4", size = 2309275, upload-time = "2026-05-06T13:37:41.406Z" }, - { url = "https://files.pythonhosted.org/packages/07/f8/41db9de19d7987d6b04715a02b3b40aea467000275d9d758ffaa31af7d50/pydantic_core-2.46.4-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9551187363ffc0de2a00b2e47c25aeaeb1020b69b668762966df15fc5659dd5a", size = 2094467, upload-time = "2026-05-06T13:39:18.847Z" }, - { url = "https://files.pythonhosted.org/packages/2c/e2/f35033184cb11d0052daf4416e8e10a502ea2ac006fc4f459aee872727d1/pydantic_core-2.46.4-cp313-cp313-manylinux_2_31_riscv64.whl", hash = "sha256:0186750b482eefa11d7f435892b09c5c606193ef3375bcf94aa00ae6bfb66262", size = 2134417, upload-time = "2026-05-06T13:40:17.944Z" }, - { url = "https://files.pythonhosted.org/packages/7e/7b/6ceeb1cc90e193862f444ebe373d8fdf613f0a82572dde03fb10734c6c71/pydantic_core-2.46.4-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:5855698a4856556d86e8e6cd8434bc3ac0314ee8e12089ae0e143f64c6256e4e", size = 2179782, upload-time = "2026-05-06T13:40:32.618Z" }, - { url = "https://files.pythonhosted.org/packages/5a/f2/c8d7773ede6af08036423a00ae0ceffce266c3c52a096c435d68c896083f/pydantic_core-2.46.4-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:cbaf13819775b7f769bf4a1f066cb6df7a28d4480081a589828ef190226881cd", size = 2188782, upload-time = "2026-05-06T13:36:51.018Z" }, - { url = "https://files.pythonhosted.org/packages/59/31/0c864784e31f09f05cdd87606f08923b9c9e7f6e51dd27f20f62f975ce9f/pydantic_core-2.46.4-cp313-cp313-musllinux_1_1_armv7l.whl", hash = "sha256:633147d34cf4550417f12e2b1a0383973bdf5cdfde212cb09e9a581cf10820be", size = 2328334, upload-time = "2026-05-06T13:40:37.764Z" }, - { url = "https://files.pythonhosted.org/packages/c2/eb/4f6c8a41efa30baa755590f4141abf3a8c370fab610915733e74134a7270/pydantic_core-2.46.4-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:82cf5301172168103724d49a1444d3378cb20cdee30b116a1bd6031236298a5d", size = 2372986, upload-time = "2026-05-06T13:39:34.152Z" }, - { url = "https://files.pythonhosted.org/packages/5b/24/b375a480d53113860c299764bfe9f349a3dc9108b3adc0d7f0d786492ebf/pydantic_core-2.46.4-cp313-cp313-win32.whl", hash = "sha256:9fa8ae11da9e2b3126c6426f147e0fba88d96d65921799bb30c6abd1cb2c97fb", size = 1973693, upload-time = "2026-05-06T13:37:55.072Z" }, - { url = "https://files.pythonhosted.org/packages/7e/e8/cff247591966f2d22ec8c003cd7587e27b7ba7b81ab2fb888e3ab75dc285/pydantic_core-2.46.4-cp313-cp313-win_amd64.whl", hash = "sha256:6b3ace8194b0e5204818c92802dcdca7fc6d88aabbb799d7c795540d9cd6d292", size = 2071819, upload-time = "2026-05-06T13:38:49.139Z" }, - { url = "https://files.pythonhosted.org/packages/c6/1a/f4aee670d5670e9e148e0c82c7db98d780be566c6e6a97ee8035528ca0b3/pydantic_core-2.46.4-cp313-cp313-win_arm64.whl", hash = "sha256:184c081504d17f1c1066e430e117142b2c77d9448a97f7b65c6ac9fd9aee238d", size = 2027411, upload-time = "2026-05-06T13:40:45.796Z" }, - { url = "https://files.pythonhosted.org/packages/8d/74/228a26ddad29c6672b805d9fd78e8d251cd04004fa7eed0e622096cd0250/pydantic_core-2.46.4-cp314-cp314-macosx_10_12_x86_64.whl", hash = "sha256:428e04521a40150c85216fc8b85e8d39fece235a9cf5e383761238c7fa9b96fb", size = 2102079, upload-time = "2026-05-06T13:38:41.019Z" }, - { url = "https://files.pythonhosted.org/packages/ad/1f/8970b150a4b4365623ae00fc88603491f763c627311ae8031e3111356d6e/pydantic_core-2.46.4-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:23ace664830ee0bfe014a0c7bc248b1f7f25ed7ad103852c317624a1083af462", size = 1952179, upload-time = "2026-05-06T13:36:59.812Z" }, - { url = "https://files.pythonhosted.org/packages/95/30/5211a831ae054928054b2f79731661087a2bc5c01e825c672b3a4a8f1b3e/pydantic_core-2.46.4-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ce5c1d2a8b27468f433ca974829c44060b8097eedc39933e3c206a90ee49c4a9", size = 1978926, upload-time = "2026-05-06T13:37:39.933Z" }, - { url = "https://files.pythonhosted.org/packages/57/e9/689668733b1eb67adeef047db3c2e8788fcf65a7fd9c9e2b46b7744fe245/pydantic_core-2.46.4-cp314-cp314-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:7283d57845ecf5a163403eb0702dfc220cc4fbdd18919cb5ccea4f95ee1cdab4", size = 2046785, upload-time = "2026-05-06T13:38:01.995Z" }, - { url = "https://files.pythonhosted.org/packages/60/d9/6715260422ff50a2109878fd24d948a6c3446bb2664f34ee78cd972b3acd/pydantic_core-2.46.4-cp314-cp314-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:8daafc69c93ee8a0204506a3b6b30f586ef54028f52aeeeb5c4cfc5184fd5914", size = 2228733, upload-time = "2026-05-06T13:40:50.371Z" }, - { url = "https://files.pythonhosted.org/packages/18/ae/fdb2f64316afca925640f8e70bb1a564b0ec2721c1389e25b8eb4bf9a299/pydantic_core-2.46.4-cp314-cp314-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:cd2213145bcc2ba85884d0ac63d222fece9209678f77b9b4d76f054c561adb28", size = 2307534, upload-time = "2026-05-06T13:37:21.531Z" }, - { url = "https://files.pythonhosted.org/packages/89/1d/8eff589b45bb8190a9d12c49cfad0f176a5cbd1534908a6b5125e2886239/pydantic_core-2.46.4-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7a5f930472650a82629163023e630d160863fce524c616f4e5186e5de9d9a49b", size = 2099732, upload-time = "2026-05-06T13:39:31.942Z" }, - { url = "https://files.pythonhosted.org/packages/06/d5/ee5a3366637fee41dee51a1fc91562dcf12ddbc68fda34e6b253da2324bb/pydantic_core-2.46.4-cp314-cp314-manylinux_2_31_riscv64.whl", hash = "sha256:c1b3f518abeca3aa13c712fd202306e145abf59a18b094a6bafb2d2bbf59192c", size = 2129627, upload-time = "2026-05-06T13:37:25.033Z" }, - { url = "https://files.pythonhosted.org/packages/94/33/2414be571d2c6a6c4d08be21f9292b6d3fdb08949a97b6dfe985017821db/pydantic_core-2.46.4-cp314-cp314-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:1a7dd0b3ee80d90150e3495a3a13ac34dbcbfd4f012996a6a1d8900e91b5c0fb", size = 2179141, upload-time = "2026-05-06T13:37:14.046Z" }, - { url = "https://files.pythonhosted.org/packages/7b/79/7daa95be995be0eecc4cf75064cb33f9bbbfe3fe0158caf2f0d4a996a5c7/pydantic_core-2.46.4-cp314-cp314-musllinux_1_1_aarch64.whl", hash = "sha256:3fb702cd90b0446a3a1c5e470bfa0dd23c0233b676a9099ddcc964fa6ca13898", size = 2184325, upload-time = "2026-05-06T13:36:53.615Z" }, - { url = "https://files.pythonhosted.org/packages/9f/cb/d0a382f5c0de8a222dc61c65348e0ce831b1f68e0a018450d31c2cace3a5/pydantic_core-2.46.4-cp314-cp314-musllinux_1_1_armv7l.whl", hash = "sha256:b8458003118a712e66286df6a707db01c52c0f52f7db8e4a38f0da1d3b94fc4e", size = 2323990, upload-time = "2026-05-06T13:40:29.971Z" }, - { url = "https://files.pythonhosted.org/packages/05/db/d9ba624cc4a5aced1598e88c04fdbd8310c8a69b9d38b9a3d39ce3a61ed7/pydantic_core-2.46.4-cp314-cp314-musllinux_1_1_x86_64.whl", hash = "sha256:372429a130e469c9cd698925ce5fc50940b7a1336b0d82038e63d5bbc4edc519", size = 2369978, upload-time = "2026-05-06T13:37:23.027Z" }, - { url = "https://files.pythonhosted.org/packages/f2/20/d15df15ba918c423461905802bfd2981c3af0bfa0e40d05e13edbfa48bc3/pydantic_core-2.46.4-cp314-cp314-win32.whl", hash = "sha256:85bb3611ff1802f3ee7fdd7dbff26b56f343fb432d57a4728fdd49b6ef35e2f4", size = 1966354, upload-time = "2026-05-06T13:38:03.499Z" }, - { url = "https://files.pythonhosted.org/packages/fc/b6/6b8de4c0a7d7ab3004c439c80c5c1e0a3e8d78bbae19379b01960383d9e5/pydantic_core-2.46.4-cp314-cp314-win_amd64.whl", hash = "sha256:811ff8e9c313ab425368bcbb36e5c4ebd7108c2bbf4e4089cfbb0b01eff63fac", size = 2072238, upload-time = "2026-05-06T13:39:40.807Z" }, - { url = "https://files.pythonhosted.org/packages/32/36/51eb763beec1f4cf59b1db243a7dcc39cbb41230f050a09b9d69faaf0a48/pydantic_core-2.46.4-cp314-cp314-win_arm64.whl", hash = "sha256:bfec22eab3c8cc2ceec0248aec886624116dc079afa027ecc8ad4a7e62010f8a", size = 2018251, upload-time = "2026-05-06T13:37:26.72Z" }, - { url = "https://files.pythonhosted.org/packages/e8/91/855af51d625b23aa987116a19e231d2aaef9c4a415273ddc189b79a45fee/pydantic_core-2.46.4-cp314-cp314t-macosx_10_12_x86_64.whl", hash = "sha256:af8244b2bef6aaad6d92cda81372de7f8c8d36c9f0c3ea36e827c60e7d9467a0", size = 2099593, upload-time = "2026-05-06T13:39:47.682Z" }, - { url = "https://files.pythonhosted.org/packages/fb/1b/8784a54c65edb5f49f0a14d6977cf1b209bba85a4c77445b255c2de58ab3/pydantic_core-2.46.4-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:5a4330cdbc57162e4b3aa303f588ba752257694c9c9be3e7ebb11b4aca659b5d", size = 1935226, upload-time = "2026-05-06T13:40:40.428Z" }, - { url = "https://files.pythonhosted.org/packages/e8/e7/1955d28d1afc56dd4b3ad7cc0cf39df1b9852964cf16e5d13912756d6d6b/pydantic_core-2.46.4-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:29c61fc04a3d840155ff08e475a04809278972fe6aef51e2720554e96367e34b", size = 1974605, upload-time = "2026-05-06T13:37:32.029Z" }, - { url = "https://files.pythonhosted.org/packages/93/e2/3fedbf0ba7a22850e6e9fd78117f1c0f10f950182344d8a6c535d468fdd8/pydantic_core-2.46.4-cp314-cp314t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:c50f2528cf200c5eed56faf3f4e22fcd5f38c157a8b78576e6ba3168ec35f000", size = 2030777, upload-time = "2026-05-06T13:38:55.239Z" }, - { url = "https://files.pythonhosted.org/packages/f8/61/46be275fcaaba0b4f5b9669dd852267ce1ff616592dccf7a7845588df091/pydantic_core-2.46.4-cp314-cp314t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:0cbe8b01f948de4286c74cdd6c667aceb38f5c1e26f0693b3983d9d74887c65e", size = 2236641, upload-time = "2026-05-06T13:37:08.096Z" }, - { url = "https://files.pythonhosted.org/packages/60/db/12e93e46a8bac9988be3c016860f83293daea8c716c029c9ace279036f2f/pydantic_core-2.46.4-cp314-cp314t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:617d7e2ca7dcb8c5cf6bcb8c59b8832c94b36196bbf1cbd1bfb56ed341905edd", size = 2286404, upload-time = "2026-05-06T13:40:20.221Z" }, - { url = "https://files.pythonhosted.org/packages/e2/4a/4d8b19008f38d31c53b8219cfedc2e3d5de5fe99d90076b7e767de29274f/pydantic_core-2.46.4-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7027560ee92211647d0d34e3f7cd6f50da56399d26a9c8ad0da286d3869a53f3", size = 2109219, upload-time = "2026-05-06T13:38:12.153Z" }, - { url = "https://files.pythonhosted.org/packages/88/70/3cbc40978fefb7bb09c6708d40d4ad1a5d70fd7213c3d17f971de868ec1f/pydantic_core-2.46.4-cp314-cp314t-manylinux_2_31_riscv64.whl", hash = "sha256:f99626688942fb746e545232e7726926f3be91b5975f8b55327665fafda991c7", size = 2110594, upload-time = "2026-05-06T13:40:02.971Z" }, - { url = "https://files.pythonhosted.org/packages/9d/20/b8d36736216e29491125531685b2f9e61aa5b4b2599893f8268551da3338/pydantic_core-2.46.4-cp314-cp314t-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:fc3e9034a63de20e15e8ade85358bc6efc614008cab72898b4b4952bea0509ff", size = 2159542, upload-time = "2026-05-06T13:39:27.506Z" }, - { url = "https://files.pythonhosted.org/packages/1d/a2/367df868eb584dacf6bf82a389272406d7178e301c4ac82545ab98bc2dd9/pydantic_core-2.46.4-cp314-cp314t-musllinux_1_1_aarch64.whl", hash = "sha256:97e7cf2be5c77b7d1a9713a05605d49460d02c6078d38d8bef3cbe323c548424", size = 2168146, upload-time = "2026-05-06T13:38:31.93Z" }, - { url = "https://files.pythonhosted.org/packages/c1/b8/4460f77f7e201893f649a29ab355dddd3beee8a97bcb1a320db414f9a06e/pydantic_core-2.46.4-cp314-cp314t-musllinux_1_1_armv7l.whl", hash = "sha256:3bf92c5d0e00fefaab325a4d27828fe6b6e2a21848686b5b60d2d9eeb09d76c6", size = 2306309, upload-time = "2026-05-06T13:37:44.717Z" }, - { url = "https://files.pythonhosted.org/packages/64/c4/be2639293acd87dc8ddbcec41a73cee9b2ebf996fe6d892a1a74e88ad3f7/pydantic_core-2.46.4-cp314-cp314t-musllinux_1_1_x86_64.whl", hash = "sha256:3ecbc122d18468d06ca279dc26a8c2e2d5acb10943bb35e36ae92096dc3b5565", size = 2369736, upload-time = "2026-05-06T13:37:05.645Z" }, - { url = "https://files.pythonhosted.org/packages/30/a6/9f9f380dbb301f67023bf8f707aaa75daadf84f7152d95c410fd7e81d994/pydantic_core-2.46.4-cp314-cp314t-win32.whl", hash = "sha256:e846ae7835bf0703ae43f534ab79a867146dadd59dc9ca5c8b53d5c8f7c9ef02", size = 1955575, upload-time = "2026-05-06T13:38:51.116Z" }, - { url = "https://files.pythonhosted.org/packages/40/1f/f1eb9eb350e795d1af8586289746f5c5677d16043040d63710e22abc43c9/pydantic_core-2.46.4-cp314-cp314t-win_amd64.whl", hash = "sha256:2108ba5c1c1eca18030634489dc544844144ee36357f2f9f780b93e7ddbb44b5", size = 2051624, upload-time = "2026-05-06T13:38:21.672Z" }, - { url = "https://files.pythonhosted.org/packages/f6/d2/42dd53d0a85c27606f316d3aa5d2869c4e8470a5ed6dec30e4a1abe19192/pydantic_core-2.46.4-cp314-cp314t-win_arm64.whl", hash = "sha256:4fcbe087dbc2068af7eda3aa87634eba216dbda64d1ae73c8684b621d33f6596", size = 2017325, upload-time = "2026-05-06T13:40:52.723Z" }, - { url = "https://files.pythonhosted.org/packages/9d/1d/8987ad40f65ae1432753072f214fb5c74fe47ffbd0698bb9cbbb585664f8/pydantic_core-2.46.4-graalpy312-graalpy250_312_native-macosx_10_12_x86_64.whl", hash = "sha256:1d8ba486450b14f3b1d63bc521d410ec7565e52f887b9fb671791886436a42f7", size = 2095527, upload-time = "2026-05-06T13:39:52.283Z" }, - { url = "https://files.pythonhosted.org/packages/64/d3/84c282a7eee1d3ac4c0377546ef5a1ea436ce26840d9ac3b7ed54a377507/pydantic_core-2.46.4-graalpy312-graalpy250_312_native-macosx_11_0_arm64.whl", hash = "sha256:3009f12e4e90b7f88b4f9adb1b0c4a3d58fe7820f3238c190047209d148026df", size = 1936024, upload-time = "2026-05-06T13:40:15.671Z" }, - { url = "https://files.pythonhosted.org/packages/d7/ca/eac61596cdeb4d7e174d3dc0bd8a6238f14f75f97a24e7b7db4c7e7340a0/pydantic_core-2.46.4-graalpy312-graalpy250_312_native-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ad785e92e6dc634c21555edc8bd6b64957ab844541bcb96a1366c202951ae526", size = 1990696, upload-time = "2026-05-06T13:38:34.717Z" }, - { url = "https://files.pythonhosted.org/packages/fa/c3/7c8b240552251faf6b3a957db200fcfbbcec36763c050428b601e0c9b83b/pydantic_core-2.46.4-graalpy312-graalpy250_312_native-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:00c603d540afdd6b80eb39f078f33ebd46211f02f33e34a32d9f053bba711de0", size = 2147590, upload-time = "2026-05-06T13:39:29.883Z" }, -] - -[[package]] -name = "pydantic-settings" -version = "2.14.2" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "pydantic" }, - { name = "python-dotenv" }, - { name = "typing-inspection" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/5c/b5/8f48e906c3e0205276e8bd8cb7512217a87b2685304d64be27cad5b3019f/pydantic_settings-2.14.2.tar.gz", hash = "sha256:c19dd64b19097f1de80184f0cc7b0272a13ae6e170cbf240a3e27e381ed14a5f", size = 237700, upload-time = "2026-06-19T13:44:56.324Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/77/c1/6e422f34e569cf8e18df68d1939c81c099d2b61e4f7d9621c8a77560799c/pydantic_settings-2.14.2-py3-none-any.whl", hash = "sha256:a20c97b37910b6550d5ea50fbcc2d4187defe58cd57070b73863d069419c9440", size = 61715, upload-time = "2026-06-19T13:44:55.02Z" }, -] - [[package]] name = "pydyf" version = "0.12.1" @@ -1936,11 +1380,6 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/a3/5e/ecf12fdb62546d64385c158514e9b2b671f7832108ef2ecd2020ce0af2d1/pyjwt-2.13.0-py3-none-any.whl", hash = "sha256:66adcc2aff09b3f1bbd95fc1e1577df8ac8723c978552fd43304c8a290ac5728", size = 31274, upload-time = "2026-05-21T19:54:35.362Z" }, ] -[package.optional-dependencies] -crypto = [ - { name = "cryptography" }, -] - [[package]] name = "pymdown-extensions" version = "11.0.1" @@ -1954,15 +1393,6 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/d6/54/da572c98c0b77626a91b5d3b89f0231d8bff5125c225420908632f8b342d/pymdown_extensions-11.0.1-py3-none-any.whl", hash = "sha256:db3943a62bab7e03af1364f0c4083e64b91fb097675a4b6cceccfbe9a77e5eb2", size = 269455, upload-time = "2026-07-02T17:59:21.271Z" }, ] -[[package]] -name = "pyperclip" -version = "1.11.0" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/e8/52/d87eba7cb129b81563019d1679026e7a112ef76855d6159d24754dbd2a51/pyperclip-1.11.0.tar.gz", hash = "sha256:244035963e4428530d9e3a6101a1ef97209c6825edab1567beac148ccc1db1b6", size = 12185, upload-time = "2025-09-26T14:40:37.245Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/df/80/fc9d01d5ed37ba4c42ca2b55b4339ae6e200b456be3a1aaddf4a9fa99b8c/pyperclip-1.11.0-py3-none-any.whl", hash = "sha256:299403e9ff44581cb9ba2ffeed69c7aa96a008622ad0c46cb575ca75b5b84273", size = 11063, upload-time = "2025-09-26T14:40:36.069Z" }, -] - [[package]] name = "pyphen" version = "0.17.2" @@ -2035,15 +1465,6 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/0b/d7/1959b9648791274998a9c3526f6d0ec8fd2233e4d4acce81bbae76b44b2a/python_dotenv-1.2.2-py3-none-any.whl", hash = "sha256:1d8214789a24de455a8b8bd8ae6fe3c6b69a5e3d64aa8a8e5d68e694bbcb285a", size = 22101, upload-time = "2026-03-01T16:00:25.09Z" }, ] -[[package]] -name = "python-multipart" -version = "0.0.32" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/5b/42/55c32bb9b12693c092ad250a0e82edb5b31ddeda6eb772de5f308b3804ad/python_multipart-0.0.32.tar.gz", hash = "sha256:be54b7f3fa167bb83e4fcd936b887b708f4e57fe75911c02aebf53efaf8d938e", size = 46881, upload-time = "2026-06-04T16:18:58.647Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/e1/04/e8135ebd1ad02c56ec633277529b2602ff99ff634be76cdba5744cf554fd/python_multipart-0.0.32-py3-none-any.whl", hash = "sha256:ff6d3f776f16878c894e52e107296ffc890e913c611b1a4ec6c44e2821fe2e23", size = 30042, upload-time = "2026-06-04T16:18:57.319Z" }, -] - [[package]] name = "pytz" version = "2026.3.post1" @@ -2053,34 +1474,6 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/0f/7b/39c34ca613b0b198cb866466651b26b045e2009864c5183c979a3b83f383/pytz-2026.3.post1-py2.py3-none-any.whl", hash = "sha256:dd95840dd199baea12d9cc096a1d452caa6596a1c1e4b5f3dbd1541855d5e815", size = 508283, upload-time = "2026-07-25T15:12:05.782Z" }, ] -[[package]] -name = "pywin32" -version = "312" -source = { registry = "https://pypi.org/simple" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/83/ff/32aa7d2ed0ab12b323aaa64f9b75e6ad4f8fd09f9ccfc28c79414d46838d/pywin32-312-cp312-cp312-win32.whl", hash = "sha256:dab4f65ac9c4e48400a2a0530c46c3c579cd5905ecd11b80692373915269208b", size = 6371877, upload-time = "2026-06-04T07:49:28.836Z" }, - { url = "https://files.pythonhosted.org/packages/03/d9/77040d3b43df3f3be32ea289433d660d2727f5ba327bc73be835127d9d60/pywin32-312-cp312-cp312-win_amd64.whl", hash = "sha256:b457f6d628a47e8a7346ce22acb7e1a46a4a78b52e1d17e1af56871bd19a93bc", size = 6914841, upload-time = "2026-06-04T07:49:31.85Z" }, - { url = "https://files.pythonhosted.org/packages/e3/cc/7b1ec671775756020a0ee7f4feeaf3c568f0ab86bd3900088cf986937a92/pywin32-312-cp312-cp312-win_arm64.whl", hash = "sha256:6017c58e12f6809fbb0555b75df144c2922a9ffd18e4b9b5afa863b6c1a9d950", size = 6727901, upload-time = "2026-06-04T07:49:34.244Z" }, - { url = "https://files.pythonhosted.org/packages/2d/41/12fbfd7f36ed2146d8bc9de96c2741296bf0d490b98508496cff322e274c/pywin32-312-cp313-cp313-win32.whl", hash = "sha256:7a27df850933d16a8eabfbaeb73d52b273e2da667f80d70b01a89d1f6828d02c", size = 6370184, upload-time = "2026-06-04T07:49:36.253Z" }, - { url = "https://files.pythonhosted.org/packages/ba/db/36a78e3403099d31d9746d13fdcde5accc43c1155f375a34d15983a479a7/pywin32-312-cp313-cp313-win_amd64.whl", hash = "sha256:c53e878d15a1c44788082bfe712a905433473aa38f86375b7cf8b45e3acbaaf9", size = 6914298, upload-time = "2026-06-04T07:49:38.876Z" }, - { url = "https://files.pythonhosted.org/packages/84/37/c1697194092b76de9ed47ca124323f02c57ffc8a45c06f88a3d5acaf01eb/pywin32-312-cp313-cp313-win_arm64.whl", hash = "sha256:59aba5d5940842075343a5ddc6b11f1cdf0d1567fe745290359dfbcc7c2eb831", size = 6727640, upload-time = "2026-06-04T07:49:41.083Z" }, - { url = "https://files.pythonhosted.org/packages/fc/2b/1f3cded5822fd49c02f40544cbb5f58c7cfd6b1694869fd476cb6170ee97/pywin32-312-cp314-cp314-win32.whl", hash = "sha256:a77a90fbb6881238d2ca9c6fd797b25817f3768fe78d214a90137ff055a75f5b", size = 6468928, upload-time = "2026-06-04T07:49:43.188Z" }, - { url = "https://files.pythonhosted.org/packages/21/82/3bf86d2e2808902013132e1ce905a7da0da53790f3836c64bf44d55e24f3/pywin32-312-cp314-cp314-win_amd64.whl", hash = "sha256:a4dd3a848290ef724347b19f301045831d8e802fa4464f491b98b1e0a081432e", size = 7024157, upload-time = "2026-06-04T07:49:45.34Z" }, - { url = "https://files.pythonhosted.org/packages/a4/0e/73f6d6800b4f27655abd9e9f6aaeaefcddb2b946e4674efa2bab184a7f7b/pywin32-312-cp314-cp314-win_arm64.whl", hash = "sha256:9fce94568364e0155e6dfb781ac5d95903be8baf28670632beab1b523f300daa", size = 6839598, upload-time = "2026-06-04T07:49:47.613Z" }, - { url = "https://files.pythonhosted.org/packages/eb/61/caa39686032d2ebdd04ff0ab5cbe163126c0066d98e00c9018646e42393b/pywin32-312-cp315-cp315-win32.whl", hash = "sha256:5c1fbe4a937a73ae9297384a3da38518cbc694c68ad8a809b2e19acd350f03ed", size = 6471159, upload-time = "2026-06-04T07:49:50.035Z" }, - { url = "https://files.pythonhosted.org/packages/0f/cd/7e1de64a4a6f69c04214169657ccab0d93a670ea50e35eb8f489d7378249/pywin32-312-cp315-cp315-win_amd64.whl", hash = "sha256:c2f03a0f73f804a13c2735b99392b0cd426bb4f2c4d0178e5ac966a0f21618d5", size = 7025293, upload-time = "2026-06-04T07:49:54.857Z" }, - { url = "https://files.pythonhosted.org/packages/23/ed/4532e9388e65fa16b46776ef47ad631a64eda1631884488af707666350ed/pywin32-312-cp315-cp315-win_arm64.whl", hash = "sha256:a8597d28f267b39074aef51fa593530082b39cbe5a074226096857b1fed2dfb9", size = 6840337, upload-time = "2026-06-04T07:49:57.531Z" }, -] - -[[package]] -name = "pywin32-ctypes" -version = "0.2.3" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/85/9f/01a1a99704853cb63f253eea009390c88e7131c67e66a0a02099a8c917cb/pywin32-ctypes-0.2.3.tar.gz", hash = "sha256:d162dc04946d704503b2edc4d55f3dba5c1d539ead017afa00142c38b9885755", size = 29471, upload-time = "2024-08-14T10:15:34.626Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/de/3d/8161f7711c017e01ac9f008dfddd9410dff3674334c233bde66e7ba65bbf/pywin32_ctypes-0.2.3-py3-none-any.whl", hash = "sha256:8a1513379d709975552d202d942d9837758905c8d01eb82b8bcc30918929e7b8", size = 30756, upload-time = "2024-08-14T10:15:33.187Z" }, -] - [[package]] name = "pyyaml" version = "6.0.3" @@ -2177,32 +1570,6 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/a0/f4/c67b0b3f1b9245e8d266f0f112c500d50e5b4e83cb6f3b71b6528104182a/requests-2.34.2-py3-none-any.whl", hash = "sha256:2a0d60c172f83ac6ab31e4554906c0f3b3588d37b5cb939b1c061f4907e278e0", size = 73075, upload-time = "2026-05-14T19:25:26.443Z" }, ] -[[package]] -name = "rich" -version = "15.0.0" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "markdown-it-py" }, - { name = "pygments" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/c0/8f/0722ca900cc807c13a6a0c696dacf35430f72e0ec571c4275d2371fca3e9/rich-15.0.0.tar.gz", hash = "sha256:edd07a4824c6b40189fb7ac9bc4c52536e9780fbbfbddf6f1e2502c31b068c36", size = 230680, upload-time = "2026-04-12T08:24:00.75Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/82/3b/64d4899d73f91ba49a8c18a8ff3f0ea8f1c1d75481760df8c68ef5235bf5/rich-15.0.0-py3-none-any.whl", hash = "sha256:33bd4ef74232fb73fe9279a257718407f169c09b78a87ad3d296f548e27de0bb", size = 310654, upload-time = "2026-04-12T08:24:02.83Z" }, -] - -[[package]] -name = "rich-rst" -version = "2.1.0" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "pygments" }, - { name = "rich" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/e2/d6/d0b9fafc73b65767200da027acab1db1bdb1048f4fea5ebf659df01c700e/rich_rst-2.1.0.tar.gz", hash = "sha256:f4d117b49697f338769759fa5cacf5197da4888b347b9fda2e50aef5cd8d93bd", size = 302732, upload-time = "2026-07-05T02:59:44.308Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/2a/68/1fc93dd759605b5d00fc98b50200739e41ed32bd22d6ba35ca6c3932371b/rich_rst-2.1.0-py3-none-any.whl", hash = "sha256:7ecd1343ee12c879d0e7ae74c3eb6d263b023d2929c6d114212eb1fd91057255", size = 272987, upload-time = "2026-07-05T02:59:42.792Z" }, -] - [[package]] name = "rpds-py" version = "2026.6.3" @@ -2311,19 +1678,6 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/bc/e7/5c595c75e9f41a44f30e526eda465ea0b4eec93470e074e4a111b253f13a/s3transfer-0.19.2-py3-none-any.whl", hash = "sha256:d8168eccca828cbb2cd573675333f3bddd254313a9c42494b84c76b539e8ba25", size = 90216, upload-time = "2026-07-22T19:30:43.251Z" }, ] -[[package]] -name = "secretstorage" -version = "3.5.0" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "cryptography" }, - { name = "jeepney" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/1c/03/e834bcd866f2f8a49a85eaff47340affa3bfa391ee9912a952a1faa68c7b/secretstorage-3.5.0.tar.gz", hash = "sha256:f04b8e4689cbce351744d5537bf6b1329c6fc68f91fa666f60a380edddcd11be", size = 19884, upload-time = "2025-11-23T19:02:53.191Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/b7/46/f5af3402b579fd5e11573ce652019a67074317e18c1935cc0b4ba9b35552/secretstorage-3.5.0-py3-none-any.whl", hash = "sha256:0ce65888c0725fcb2c5bc0fdb8e5438eece02c523557ea40ce0703c266248137", size = 15554, upload-time = "2025-11-23T19:02:51.545Z" }, -] - [[package]] name = "sentry-sdk" version = "2.66.1" @@ -2355,32 +1709,6 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/49/4b/359f28a903c13438ef59ebeee215fb25da53066db67b305c125f1c6d2a25/sqlparse-0.5.5-py3-none-any.whl", hash = "sha256:12a08b3bf3eec877c519589833aed092e2444e68240a3577e8e26148acc7b1ba", size = 46138, upload-time = "2025-12-19T07:17:46.573Z" }, ] -[[package]] -name = "sse-starlette" -version = "3.4.6" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "anyio" }, - { name = "starlette" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/6c/10/a34c656829ffc1c4b22ef36d70d9ebb6b99c020e2aeb17cee5485099f028/sse_starlette-3.4.6.tar.gz", hash = "sha256:725f8a1bd6d26ae1b2c9610c0ef5065dfdd496f3988d28adcf8c4b49dc25c627", size = 32542, upload-time = "2026-07-20T14:16:32.201Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/49/36/e10c1d1b7ca881d2625db2ec28508578499187bb1c389952c398474e1834/sse_starlette-3.4.6-py3-none-any.whl", hash = "sha256:56217ab4c9a9f9c5db7b21e08732d3e7c2b807f45231ad23de0551a24c4a41f6", size = 16516, upload-time = "2026-07-20T14:16:30.978Z" }, -] - -[[package]] -name = "starlette" -version = "1.3.1" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "anyio" }, - { name = "typing-extensions", marker = "python_full_version < '3.13'" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/eb/e3/7c1dc7381d9f8ab7d854328ebfa884e62cb3f3d8549ddfd37c7814f42afa/starlette-1.3.1.tar.gz", hash = "sha256:05d0213193f2fbaae60e2ecb593b4add4262ad4e46536b54abe36f11a71724e0", size = 2703240, upload-time = "2026-06-12T09:23:11.602Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/ec/bb/2799cc2ede3ed41131f8975621e7213dfc7ef4acbbaadfa440f32500c370/starlette-1.3.1-py3-none-any.whl", hash = "sha256:c7372aae11c3c3f26a42df7bd626cec2f47d03483d261d369516a615a53714c6", size = 73632, upload-time = "2026-06-12T09:23:10.017Z" }, -] - [[package]] name = "tinycss2" version = "1.5.1" @@ -2414,18 +1742,6 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/49/d3/b8441a820a491ddfc024b0b0cf0393375b75ea13866d9c66727e54c2fc80/typing_extensions-4.16.0-py3-none-any.whl", hash = "sha256:481caa481374e813c1b176ada14e97f1f67a4539ce9cfeb3f350d78d6370c2e8", size = 45571, upload-time = "2026-07-02T08:40:04.659Z" }, ] -[[package]] -name = "typing-inspection" -version = "0.4.2" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "typing-extensions" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/55/e3/70399cb7dd41c10ac53367ae42139cf4b1ca5f36bb3dc6c9d33acdb43655/typing_inspection-0.4.2.tar.gz", hash = "sha256:ba561c48a67c5958007083d386c3295464928b01faa735ab8547c5692e87f464", size = 75949, upload-time = "2025-10-01T02:14:41.687Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/dc/9b/47798a6c91d8bdb567fe2698fe81e0c6b7cb7ef4d13da4114b41d239f65d/typing_inspection-0.4.2-py3-none-any.whl", hash = "sha256:4ed1cacbdc298c220f1bd249ed5287caa16f34d44ef4e9c3d0cbad5b521545e7", size = 14611, upload-time = "2025-10-01T02:14:40.154Z" }, -] - [[package]] name = "tzdata" version = "2026.3" @@ -2447,15 +1763,6 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/9e/a4/017a7a6cbe387d961a688ec31364ae60a5c4e22c96ae9921b79a947c855d/tzlocal-5.4.4-py3-none-any.whl", hash = "sha256:aae09f0126a8a86fa736be266eb4a471380d26a0de3bc14844e7821fee3e2a15", size = 18115, upload-time = "2026-06-29T08:03:38.666Z" }, ] -[[package]] -name = "uncalled-for" -version = "0.3.2" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/b5/82/345cc927f7fbdae6065e7768759932fcc827fc20b29b45dfbafa2f1f7da4/uncalled_for-0.3.2.tar.gz", hash = "sha256:89f5dbcd71e2b8f47c030b1fa302e6cce2ec795d1ac565eeb6525c5fe55cb8a2", size = 50032, upload-time = "2026-05-06T13:38:25.204Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/3b/25/2c87754f3a9e692315f7b811244090e68f362979fc8886b3fbd2985a1d8c/uncalled_for-0.3.2-py3-none-any.whl", hash = "sha256:0ff60b142c7d1f8070bde9d42afaa70aedc77dcc10998c227687e9c15713418e", size = 11444, upload-time = "2026-05-06T13:38:24.025Z" }, -] - [[package]] name = "uritemplate" version = "4.2.0" diff --git a/docs/api/endpoint-index.md b/docs/api/endpoint-index.md index 027f3233..a5c3584b 100644 --- a/docs/api/endpoint-index.md +++ b/docs/api/endpoint-index.md @@ -160,7 +160,6 @@ Interactive versions of the same schema are served by a running backend at | `/api/macros/{id}/render/` | POST | | `/api/notifications/` | GET | | `/api/notifications/read-all/` | POST | -| `/api/notifications/stream/` | GET | | `/api/notifications/{id}/` | DELETE | | `/api/notifications/{id}/read/` | POST | | `/api/opportunities/` | GET, POST | diff --git a/docs/api/tokens-and-api-keys.md b/docs/api/tokens-and-api-keys.md index 1150459c..2e848663 100644 --- a/docs/api/tokens-and-api-keys.md +++ b/docs/api/tokens-and-api-keys.md @@ -35,7 +35,7 @@ filter here is the only tenant boundary, not a belt over RLS's braces): "tokens": [ { "id": "", - "name": "laptop mcp", + "name": "reporting script", "token_prefix": "bcrm_pat_abc1", "scopes": [], "expires_at": null, @@ -56,7 +56,7 @@ filter here is the only tenant boundary, not a belt over RLS's braces): `POST /api/profile/tokens/` (same view, `:49-69`) creates a token for the caller: ```json -{"name": "laptop mcp", "scopes": [], "expires_at": null} +{"name": "reporting script", "scopes": [], "expires_at": null} ``` `name` is required (non-empty, at most 255 characters); `scopes`, if present, must be a list of @@ -68,7 +68,7 @@ strings (at most 32); `expires_at` is optional, but if present must be in the fu { "error": false, "id": "", - "name": "laptop mcp", + "name": "reporting script", "token_prefix": "bcrm_pat_abc1", "scopes": [], "expires_at": null, @@ -106,7 +106,7 @@ endpoint is never the thing that has to be loosened to support oversight: "tokens": [ { "id": "", - "name": "laptop mcp", + "name": "reporting script", "token_prefix": "bcrm_pat_abc1", "scopes": [], "expires_at": null, diff --git a/docs/architecture/authentication.md b/docs/architecture/authentication.md index 55acd906..6a9a0c9d 100644 --- a/docs/architecture/authentication.md +++ b/docs/architecture/authentication.md @@ -143,7 +143,7 @@ one transaction for the same reason the refresh endpoint's does. ## Personal access tokens Personal access tokens (`bcrm_pat_…`, `PersonalAccessToken` in `backend/common/models.py`) are -for agents and scripts, the MCP server integration in particular, that need to authenticate as a +for agents and scripts that need to authenticate as a specific user without going through the JWT/OAuth flow on every call. A token is generated once (`PersonalAccessToken.generate(profile, name, ...)`), shown to the caller exactly once, and stored only as a SHA-256 hash (`token_hash`); the plaintext is not recoverable from the database diff --git a/docs/contributing/code-style.md b/docs/contributing/code-style.md index b69cba23..0c7c66d0 100644 --- a/docs/contributing/code-style.md +++ b/docs/contributing/code-style.md @@ -23,7 +23,7 @@ that it forgot to. **But read this before running anything:** as of this writing, none of `black`, `isort`, or `ruff` is declared as a dependency anywhere in `backend/pyproject.toml`, not in `[project.dependencies]`, -not in the `dev` or `docs` groups under `[dependency-groups]`, not in the `mcp` extra, and not +not in the `dev` or `docs` groups under `[dependency-groups]`, and not pulled in transitively (`backend/uv.lock` has no entry for any of the three). `uv sync` on a fresh clone will not install any of them, and `uv run black .` fails on a fresh clone with `error: Failed to spawn: 'black' / Caused by: No such file or directory`. The same is true of `isort` and `ruff`. diff --git a/docs/contributing/development-setup.md b/docs/contributing/development-setup.md index c6bf648e..2637f9cb 100644 --- a/docs/contributing/development-setup.md +++ b/docs/contributing/development-setup.md @@ -48,13 +48,11 @@ removing a dependency (for example, to pick up a transitive security fix) use `u instead; it re-resolves and rewrites `uv.lock` in place. `backend/pyproject.toml` currently declares two dependency groups: `dev` (`pytest`, -`pytest-django`, `pytest-cov`) and `docs` (`mkdocs-material`), plus one optional extra, `mcp`, for -the hosted MCP server (`uv sync --extra mcp`, not installed by default). `dev` is treated as a +`pytest-django`, `pytest-cov`) and `docs` (`mkdocs-material`). `dev` is treated as a default group by `uv`, so `uv sync` on its own installs it; a plain `uv sync --group docs` installs `docs` **in addition to** `dev`, not instead of it: that's why CI's `docs-build` job, which runs exactly `uv sync --frozen --group docs`, is able to run `uv run pytest ...` in the very next step -(see [Pull requests](pull-requests.md#what-ci-runs)). `mcp` is the one group/extra that stays out -unless you ask for it explicitly with `--extra mcp`. See [Code style](code-style.md) before reaching +(see [Pull requests](pull-requests.md#what-ci-runs)). See [Code style](code-style.md) before reaching for `uv add black` or similar. It is not as simple as it sounds in this repository. ## Frontend diff --git a/docs/contributing/repo-layout.md b/docs/contributing/repo-layout.md index 7dfe72a3..f30efc39 100644 --- a/docs/contributing/repo-layout.md +++ b/docs/contributing/repo-layout.md @@ -14,8 +14,6 @@ Django-CRM/ ├── docker/ # Docker-specific config: docker/postgres/init-rls-user.sql (creates the │ # non-superuser RLS role) and docker/backend/entrypoint.sh. That's the │ # whole directory, no Redis config lives here -├── mcp_server/ # The hosted MCP server (backend's optional `mcp` extra). See -│ # Integrations → MCP server ├── mkdocs.yml # Docs site config and nav ├── docker-compose.yml # Full local stack. See Self-hosting → Docker ├── CONTRIBUTING.md # The short version of this Contributing section diff --git a/docs/integrations/ai-agents.md b/docs/integrations/ai-agents.md new file mode 100644 index 00000000..46543ac9 --- /dev/null +++ b/docs/integrations/ai-agents.md @@ -0,0 +1,91 @@ +# AI agents + +An AI agent talks to BottleCRM the same way any other program does: over the REST API under +`/api/`, authenticated with a personal access token. There is no separate agent protocol, no +agent-specific endpoint, and no service account. The agent is a normal API client, so RLS, RBAC +and field validation apply to it exactly as they apply to the web app and the mobile app. + +This is a deliberate choice. BottleCRM previously shipped a Model Context Protocol (MCP) server at +`/mcp`, a thin proxy that re-issued each tool call as an HTTP request to this same API. It covered +eight entities out of the full product and added no capability the API did not already have, so it +was removed. Point your agent at the API directly and it can reach everything. + +## Give the agent a token + +Mint a personal access token in the CRM at **Settings → API tokens** (`/settings/api-tokens`), or +via `POST /api/profile/tokens/`. The raw value is shown exactly once, at creation. Only a SHA-256 +hash is stored, so a lost token cannot be recovered, only replaced. + +Every request carries it as a bearer token: + +```bash +curl -H "Authorization: Bearer bcrm_pat_..." \ + https://api.bottlecrm.io/api/leads/ +``` + +See [Tokens and API keys](../api/tokens-and-api-keys.md#personal-access-tokens) for the full +lifecycle: creation, expiry, validation and revocation. + +## Let the agent discover the API + +The backend publishes an OpenAPI 3 schema generated by drf-spectacular. Feed it to the agent and +it can work out the endpoints, request bodies, enums and required fields on its own, without you +hand-maintaining a tool registry that drifts from the real URLconf: + +| What | Where | +| --- | --- | +| Machine-readable schema | `GET /schema/` | +| Interactive browser docs | `/swagger-ui/` | +| ReDoc rendering | `/api/schema/redoc/` | +| Hand-written endpoint list | [Endpoint index](../api/endpoint-index.md) | + +Request and response shapes, pagination, filtering and error envelopes are described in +[API conventions](../api/conventions.md) and [Errors](../api/errors.md). + +## Permissions + +**The agent is exactly as privileged as the token it holds, no more and no less.** +`PATAuthentication` (`backend/common/pat_auth.py`) resolves the token to its owning `Profile` and +sets `request.profile` and `request.org` from it, the same code path every other PAT-authenticated +request goes through. The agent inherits that user's role, org and RLS scope. + +A token does carry a `scopes` field, but **nothing enforces it yet**. There is currently no way to +issue an agent a token narrower than its owner's own access. Treat every token you configure into +an agent as equivalent to handing that agent your login for as long as the token is valid, and +give it to a profile whose role matches the job you want done. + +A token stops working the moment its owning profile or org is deactivated: `resolve_valid_pat` +rejects it with "Token owner or org is inactive". That makes a deactivated user's token dormant +rather than live, though it is still worth revoking on offboarding, because reactivating the +account revives the token. + +## Revoking + +To cut off an agent immediately, revoke its token. Which endpoint you use depends on your role: + +- **Any role, own token**: `DELETE /api/profile/tokens/{id}/`. Self-service, scoped to your own + tokens. Another user's token id returns 404 rather than being revoked. +- **Admins, any token in the org**: `DELETE /api/org/tokens/{id}/`, backed by the org-wide + oversight list at `GET /api/org/tokens/`. This is what the **Settings → API tokens** page calls. + A non-admin who opens that page sees "Admins only", not a token list. + +Revoke is idempotent: a second call on an already-revoked token is a no-op 200. + +## Practical notes + +A few API details that commonly trip up a first agent integration: + +- **Comments are not a sub-action.** Every module routes them at `comment//`, for example + `POST /api/leads/comment//`, not `/api/leads//add_comment/`. +- **Converting a lead is a status change**, not an action endpoint: + `PATCH /api/leads//` with `{"status": "converted"}`. +- **Solutions live under the cases app** at `/api/cases/solutions/`, not at a top-level + `/api/solutions/`. +- **`InvoiceDetailView` implements only `get` and `put`.** A `PATCH` or `DELETE` against + `/api/invoices//` returns 405. Use a full `PUT`, or `POST /api/invoices//send/` to send + one. See [Invoices and estimates](../api/invoices.md). +- **Sending an invoice emails a customer.** If you let an agent call it, put a confirmation step in + front of it. The API will not ask twice. + +Worked examples in two languages: [Python](python-sample.md) and +[JavaScript](javascript-sample.md). diff --git a/docs/integrations/inbound-email.md b/docs/integrations/inbound-email.md index 550fc5db..01ddc2bb 100644 --- a/docs/integrations/inbound-email.md +++ b/docs/integrations/inbound-email.md @@ -5,7 +5,7 @@ replies onto the same case automatically. This is the **only** webhook in the pr in one direction only: BottleCRM *receives* mail through it. Nothing in this codebase posts a webhook out to a URL you configure. There is no equivalent "notify my system when a case closes" hook. If you need BottleCRM to push events elsewhere, you're integrating through the -[MCP server](mcp-server.md) or polling the REST API; nothing here does that for you. +[REST API](../api/conventions.md) by polling; nothing here does that for you. ## How inbound email becomes a ticket diff --git a/docs/integrations/mcp-server.md b/docs/integrations/mcp-server.md deleted file mode 100644 index b006c868..00000000 --- a/docs/integrations/mcp-server.md +++ /dev/null @@ -1,204 +0,0 @@ -# MCP server - -`bcrm-mcp` is a [Model Context Protocol](https://modelcontextprotocol.io) server that lets an AI -agent (Claude Desktop, Cursor, Codex CLI, Gemini CLI, or any other MCP client) read and write CRM -data. It lives in its own top-level package, `mcp_server/`, next to `backend/` and `frontend/`, -not inside the Django project, and it is a thin HTTP client of the CRM's own REST API: it has no -database connection of its own and does not import Django (`mcp_server/src/bcrm_mcp/client.py` -depends only on `httpx`). Every tool call becomes one authenticated request to `/api/...`, and the -backend enforces RLS, RBAC and field validation exactly as it would for any other caller. - -Source and further detail: [`mcp_server/README.md`](https://github.com/django-crm/Django-CRM/blob/master/mcp_server/README.md) -in the repository. - -## What it does - -The server exposes eight tools an agent can call. Search/list, get, create, update, delete, a -generic non-CRUD action runner, a schema-describe helper, and an action-discovery helper: over -eight CRM entities: leads, contacts, accounts, opportunities, tasks, cases, invoices and -solutions. It does not add any capability the REST API doesn't already have; it's a uniform, -agent-friendly surface over the same endpoints documented in [API reference](../api/conventions.md). - -## Installing - -There are two things you can install, depending on how you want to run it. - -**The standalone package**, for running the server as a local subprocess your MCP client launches -(the `stdio` transport, the default): - -```bash -cd mcp_server -uv sync -``` - -`uv sync` creates `mcp_server/.venv/` from `mcp_server/pyproject.toml` + `uv.lock`. The package -requires Python 3.11+ and pulls in `fastmcp`, `httpx` and `pydantic`, nothing from the Django -project. - -**The `mcp` extra on the backend**, for mounting the server inside the Django app so it's reachable -over HTTP without a local install at all: - -```bash -cd backend -uv sync --extra mcp -``` - -This is declared in `backend/pyproject.toml` as `[project.optional-dependencies] mcp = -["bcrm-mcp"]`, with `bcrm-mcp` resolved via `[tool.uv.sources]` as an editable path dependency on -`../mcp_server`. It is opt-in specifically so the core backend install stays lean, a plain `uv -sync` in `backend/` never pulls in `fastmcp` or `starlette` at all. If the extra isn't installed, -`backend/crm/asgi.py` catches the resulting `ImportError` and serves Django alone; an incomplete or -skipped MCP install never takes the rest of the site down. - -## Hosted at /mcp - -`backend/crm/asgi.py` optionally mounts the MCP server at exactly `/mcp` on the same process that -serves the rest of the API, no separate deployment. This only activates when three things are all -true: the `mcp` extra is installed, `BCRM_MCP_ENABLED` is not set to a falsy value (`0`, `false`, -`no` or `off`: anything else, including unset, leaves it enabled), and the app is served under -**ASGI**, not WSGI: - -```bash -# from backend/ -uv sync --extra mcp -BCRM_BASE_URL=http://127.0.0.1:8000 \ - uv run uvicorn crm.asgi:application --host 0.0.0.0 --port 8000 -# MCP is now live at http://:8000/mcp -``` - -`manage.py runserver` uses WSGI, so the mount is inactive under the ordinary local dev server. -This is purely an ASGI-server concern and doesn't change any other local workflow. -`BCRM_BASE_URL` is the loopback address the mounted tools call to reach the CRM API; it defaults -to `http://127.0.0.1:8000`, which is correct when MCP and Django share the same process, as they -do here. - -The mount dispatches by path prefix rather than Starlette's `Mount` (which only matches -`/mcp/…` with a trailing segment and would let a bare `/mcp` fall through to Django). Both `/mcp` -and `/mcp/...` are routed to the MCP app, everything else goes to Django as before. - -## Authenticating - -The server has two transports, and they authenticate differently: - -- **`stdio`** (default, used when your MCP client launches `bcrm-mcp` as a local subprocess), the - whole process acts as one user. It reads a single token from `BCRM_TOKEN` at startup and reuses - one `CrmClient` for every call. `Settings.from_env()` refuses to start without it. -- **`http`** (the `/mcp` mount above, or a standalone server run with `BCRM_TRANSPORT=http`), a - long-lived, multi-user server. There is no server-side token at all; `Settings.from_env()` - actively rejects a `BCRM_TOKEN` set alongside `BCRM_TRANSPORT=http`, because a shared token would - collapse every caller into one identity. Instead **every request carries its own - `Authorization: Bearer ` header**, and `ClientResolver.get()` - (`mcp_server/src/bcrm_mcp/server.py`) builds a fresh, uncached `CrmClient` from that header on - every single call, never reused across requests, so one caller's identity can never leak into - the next caller's response. - -For the `/mcp` mount specifically, `crm/asgi.py` enforces this at the edge: any request to `/mcp` -or `/mcp/...` with no well-formed bearer token gets a `401` before it reaches the MCP layer at -all, even `initialize` and tool listing are unreachable without a token, not just the tool calls -that touch data. The token's actual validity (not expired, not revoked, owning profile and org -still active) is then re-checked by the backend on every API call the tool makes, the same way any -other PAT-authenticated request is checked. See -[Tokens and API keys](../api/tokens-and-api-keys.md#personal-access-tokens) for how a PAT is -minted, validated and revoked. - -In both transports, the token is a normal BottleCRM personal access token -(`bcrm_pat_…`). There is nothing MCP-specific about it. - -## Available tools - -| Tool | Kind | Description | -| --- | --- | --- | -| `crm_search` | read-only | List/search records of an entity. Takes `query`, `filters`, `limit`, `offset`. `limit` is capped at **50** regardless of what's requested (`MAX_LIMIT` in `mcp_server/src/bcrm_mcp/tools.py`). | -| `crm_get` | read-only | Fetch one record's full detail by `id`. | -| `crm_create` | write | Create a record from a `data` object, validated server-side exactly as `POST` to the underlying endpoint would be. | -| `crm_update` | write | Partially update a record (PATCH semantics) from a `data` object. **Returns an error for `invoices`**. See below. | -| `crm_delete` | destructive | Delete a record. Refuses to run unless called with `confirm=true`. **Also returns an error for `invoices`**. See below. | -| `crm_action` | write | `POST` a non-CRUD action to `/api////`. Most of the actions `entities.py` lists don't resolve to a real route today. See below before relying on this. | -| `crm_describe` | read-only | Return an entity's fields, types, enums and which are required, derived from the live OpenAPI schema at `/schema/`. | -| `list_actions` | read-only | Return the allowed non-CRUD actions for every entity, exactly as `entities.py` declares them. See below for which of those are actually reachable. | - -CRUD tools take an `entity` argument. `resolve_path` (`mcp_server/src/bcrm_mcp/entities.py`) maps -each to its real API path and the non-CRUD actions `entities.py` declares as allowed for it: - -| Entity | API path | Non-CRUD actions declared | -| --- | --- | --- | -| `leads` | `/api/leads/` | `convert`, `add_comment` | -| `contacts` | `/api/contacts/` | `add_comment` | -| `accounts` | `/api/accounts/` | `add_comment` | -| `opportunities` | `/api/opportunities/` | `add_comment` | -| `tasks` | `/api/tasks/` |. | -| `cases` | `/api/cases/` | `add_comment` | -| `invoices` | `/api/invoices/` | `send` | -| `solutions` | `/api/cases/solutions/` |. | - -Solutions are served under the cases app, not at a top-level `/api/solutions/`: `crm_search(entity="solutions", ...)` resolves to `/api/cases/solutions/` correctly, but it's worth knowing if you're -cross-referencing the [Endpoint index](../api/endpoint-index.md). - -**Most of the actions in that table don't work, and neither does `crm_update`/`crm_delete` on -invoices. This is a real bug in `entities.py`, not a doc gap, and it isn't fixed here.** -`crm_action` builds `POST /api////` (`tools.py`). Checked against the real -Django URLconfs (`leads/urls.py`, `contacts/urls.py`, `accounts/urls.py`, `opportunity/urls.py`, -`cases/urls.py`, `invoices/api_urls.py`): - -- **`convert` on `leads`**, no such route exists anywhere in `leads/urls.py`. Converting a lead - is done by setting its status, not by calling an action: - `crm_update(entity="leads", id=..., data={"status": "converted"})`. -- **`add_comment`** on `leads`, `contacts`, `accounts`, `opportunities` and `cases`, none of these - resolve either. Every one of those apps routes comments at `comment//` - (e.g. `POST /api/leads/comment//`), not `/add_comment/`, and Django's `` URL - converter doesn't match a `/` inside the segment, so `/add_comment/` matches nothing. No tool - in this MCP server currently reaches the `comment//` routes at all. -- **`send` on `invoices`** is the only one that actually resolves; - `POST /api/invoices//send/` is a real route (`invoices/api_urls.py`). - -Calling `crm_action` with any of the non-working entries returns a `CrmError` carrying the -backend's `404`. The MCP layer doesn't pre-validate that the action exists before posting. - -Separately, `InvoiceDetailView` (`backend/invoices/api_views.py`) implements only `get` and `put`( -no `patch`, no `delete`), so `crm_update` (which sends `PATCH`) and `crm_delete` (which sends -`DELETE`) both come back as a `CrmError` carrying a `405` for `invoices`, regardless of the -`data`/`confirm` you pass. To change an invoice, use `crm_action(entity="invoices", -action="send", confirm=true)` for sending it, or a full `PUT` via the REST API directly (see -[Invoices and estimates](../api/invoices.md)) for anything else. There is no MCP tool that -partially updates or deletes an invoice today. - -## Permissions - -**The agent is exactly as privileged as the PAT it's given, no more and no less.** `PATAuthentication` -resolves the token to the owning `Profile` and sets `request.profile`/`request.org` from it -(`backend/common/pat_auth.py`), the same code path any other PAT-authenticated request goes -through. There is no separate MCP identity, no elevated service account, and no way for the MCP -layer itself to grant a permission the token's owner doesn't already have. A PAT does carry a -`scopes` field, but nothing in the request-handling code enforces it yet (see -[Tokens and API keys](../api/tokens-and-api-keys.md#personal-access-tokens)), so today there is no -way to hand an agent a narrower token than its owner's own full role and org access. Treat every -PAT you configure into an MCP client as equivalent to handing that agent your own login for as -long as the token is valid. - -A few narrower guards live in the MCP layer itself, on top of (not instead of) backend -enforcement: - -- `crm_search` caps `limit` at 50 no matter what the agent asks for, so a single call can't pull an - unbounded result set. -- `crm_delete` refuses to run without `confirm=true`. -- `crm_action` refuses an outward-facing action, currently just `send` (emailing a customer an - invoice), without `confirm=true` too, mirroring the delete guard so a model can't trigger a - real-world side effect off a misread instruction. - -Beyond that, the MCP server does no authorization of its own: it forwards each tool call to the -CRM API verbatim and surfaces whatever the API returns, success or error (`CrmClient._request` -raises `CrmError` whenever `resp.status_code >= 400`, carrying the DRF error body. A `3xx` -response isn't treated as an error by this check and instead falls through to `resp.json()`, -which would raise its own decode error if that response body isn't JSON). -RLS, role checks and per-object ownership rules are all enforced exactly once, in the backend, the -same as for the web app or the mobile app. - -To cut off an agent immediately, revoke its PAT. There are two ways to do that, and which one -applies depends on your role. An admin can revoke any token in the org from the CRM at -**Settings → API tokens** (`/settings/api-tokens`); that page's revoke action calls the -admin-only `DELETE /api/org/tokens/{id}/`, and the whole page is gated on that same admin-only -oversight list (`GET /api/org/tokens/`): a non-admin who opens it sees "Admins only", not a token -list, and can't reach any revoke control there at all. Any role can instead call -`DELETE /api/profile/tokens/{id}/` directly against their **own** token, a separate, self-service -endpoint that no UI on this settings page currently calls, which is the option to use if the PAT -you need to revoke is yours and you aren't an admin. diff --git a/docs/reference/environment-variables.md b/docs/reference/environment-variables.md index 0b652283..c5f89ce4 100644 --- a/docs/reference/environment-variables.md +++ b/docs/reference/environment-variables.md @@ -39,12 +39,10 @@ itself, so they aren't in the table below: own. See [Production deployment](../self-hosting/production-deploy.md#required-settings) and [Security hardening](../self-hosting/security-hardening.md#secrets) for what `ENV_TYPE=prod` actually requires and why it shouldn't be set casually. -- **`BCRM_MCP_ENABLED`** and **`BCRM_BASE_URL`** are two different knobs, both read in - `backend/crm/asgi.py`, not `crm/settings.py`. Only `BCRM_MCP_ENABLED` (default `"true"`) gates - whether the optional MCP server is mounted at `/mcp` at all, anything in `0`/`false`/`no`/`off` - disables it, anything else (including unset) leaves it enabled. `BCRM_BASE_URL` (default - `http://127.0.0.1:8000`) has no bearing on whether the mount happens; it's the REST API root the - mounted MCP tools call once it's live. See [MCP server](../integrations/mcp-server.md) for both. +- **`BCRM_MCP_ENABLED`** and **`BCRM_BASE_URL`** are no longer read anywhere. They gated the + MCP server that used to be mounted at `/mcp`, which has been removed in favour of the REST API. + Both are safe to delete from an existing deployment's environment. See + [AI agents](../integrations/ai-agents.md) for how an agent connects now. ## Reference @@ -66,6 +64,20 @@ itself, so they aren't in the table below: | `DBHOST` | `localhost` | No | PostgreSQL host. | | `DBPORT` | `5432` | No | PostgreSQL port. | +### Connection pooling + +Pooling uses psycopg 3's `psycopg_pool` through Django's PostgreSQL backend. It is **off by default**, so upgrading does not silently change an existing deployment's connection behaviour. Turning it on also enables `CONN_HEALTH_CHECKS`; `CONN_MAX_AGE` is pinned to `0`, because Django raises `ImproperlyConfigured` ("Pooling doesn't support persistent connections") if a pool is configured alongside persistent connections. + +| Variable | Default | Required | Purpose | +| --- | --- | --- | --- | +| `DB_POOL_ENABLED` | `False` | No | `"true"` (case-insensitive) puts a `psycopg_pool.ConnectionPool` in front of the default database and installs the RLS reset callback described below. Anything else leaves the connection behaviour unchanged. | +| `DB_POOL_MIN_SIZE` | `2` | No | Connections the pool keeps open per process even when idle. | +| `DB_POOL_MAX_SIZE` | `10` | No | Ceiling on concurrent connections per process. This is the limit that was missing when the API exhausted PostgreSQL: under ASGI every in-flight request otherwise takes its own connection with no upper bound. | + +**Size this against `max_connections`, and remember the pool is per process, not per host.** Peak usage is roughly `DB_POOL_MAX_SIZE × (uvicorn workers + Celery prefork children)`, plus `DB_POOL_MIN_SIZE` held idle by each of those processes. `docker-compose.yml` runs `celery -A crm worker` with no `--concurrency`, so each worker forks one child per CPU. On an 8-core host with 3 uvicorn workers and the defaults, that is `10 × (3 + 8) = 110` connections at peak against PostgreSQL's default `max_connections` of 100. + +**Why the reset callback matters.** RLS context lives in `app.current_org`, a session-scoped setting that outlives the transaction and the request. `psycopg_pool` does not clear session state when a connection is returned; it only rolls back an open transaction. A pool without `common.rls.pool.reset_rls_context` therefore hands the next borrower a connection still scoped to the previous tenant. Enabling `DB_POOL_ENABLED` wires that callback in automatically, and `common/tests/test_pool_rls_isolation.py` proves both that it clears the context and that it leaves the connection in the `IDLE` state `psycopg_pool` requires. Do not configure a pool by hand without it. + ### Email | Variable | Default | Required | Purpose | diff --git a/docs/reference/glossary.md b/docs/reference/glossary.md index 7e53adca..30163c76 100644 --- a/docs/reference/glossary.md +++ b/docs/reference/glossary.md @@ -74,7 +74,7 @@ query the actual resource. See ### Personal access token `bcrm_pat_…` (`PersonalAccessToken`, `backend/common/models.py`): a token a signed-in user creates -for themselves (`POST /api/profile/tokens/`) to authenticate scripts, the MCP server, or other +for themselves (`POST /api/profile/tokens/`) to authenticate scripts, AI agents, or other programmatic access without a browser session. It authenticates as the profile that created it and inherits that profile's role and org in full; its `scopes` field is stored but not enforced. Deactivating the owning profile invalidates the token immediately; `resolve_valid_pat` checks diff --git a/docs/self-hosting/production-deploy.md b/docs/self-hosting/production-deploy.md index fceae443..4c1c6a99 100644 --- a/docs/self-hosting/production-deploy.md +++ b/docs/self-hosting/production-deploy.md @@ -38,21 +38,62 @@ cd backend uv run gunicorn crm.wsgi:application --bind 0.0.0.0:8000 ``` -There is one documented exception to WSGI, in the codebase's own words. `backend/crm/asgi.py` -carries this docstring: +**WSGI is the recommended path, and there is no longer a reason to prefer ASGI.** Earlier +releases required an ASGI server (`uvicorn crm.asgi:application`) because the in-app notifications +endpoint was a Server-Sent Events stream, and a long-lived async view holds a worker hostage under +WSGI. That stream was removed on 2026-08-03 in favour of polling, and it was the only async code +in the project, so nothing needs ASGI now. `backend/crm/asgi.py` still exists and still works if +you prefer it, but it buys you nothing. -> Production deploy must run an ASGI server pointing at this module: -> `uvicorn crm.asgi:application --host 0.0.0.0 --port 8000` +Prefer WSGI for a concrete reason beyond simplicity: **it bounds your database connections by +construction.** Under ASGI, Django runs each request in its own thread-sensitive executor with its +own thread-local connection and no ceiling, so concurrent requests translate one-to-one into +PostgreSQL backends. That is what caused two connection-exhaustion incidents in this project's +history. Under Gunicorn, peak connections are `workers × threads`, a number you set on the command +line: -The reason given is the in-app notifications SSE (server-sent events) stream: it's an async view -serving a long-lived connection, and running it under WSGI (Gunicorn) "will hold a worker -hostage" for the life of each connection. `crm/asgi.py` also optionally mounts the BottleCRM MCP -server at `/mcp` when the `mcp` extra is installed and `BCRM_MCP_ENABLED` isn't set to a falsy -value. `uvicorn[standard]>=0.51.0` is a listed dependency alongside Gunicorn for exactly this -path. In short: if you need the SSE notification stream (or the MCP mount) to work correctly -under concurrent load, serve via `uvicorn crm.asgi:application`, not Gunicorn/WSGI; if you don't, -Gunicorn against `crm.wsgi:application` is what this project bundles as its production WSGI -dependency. +```bash +cd backend +uv run gunicorn crm.wsgi:application --bind 0.0.0.0:8000 --workers 3 --threads 4 +``` + +That example tops out at 12 database connections per host, plus whatever Celery uses. See +[Database connections](#database-connections) below for pooling, which you may still want if you +run many Gunicorn workers or a large thread count. + +`uvicorn[standard]>=0.51.0` remains a dependency so the ASGI path keeps working for anyone already +deployed that way. If you serve under ASGI, read the next section before going live: bounding +connections there is not optional. + +## Database connections + +Under ASGI, Django runs each request in its own thread-sensitive executor, and each of those gets +its own thread-local database connection. Nothing caps that. A burst of concurrent requests +becomes a burst of PostgreSQL backends, and `max_connections` (default `100`) is reached long +before the application itself is under strain. This project has hit that in production. + +Set `DB_POOL_ENABLED=true` to put a bounded `psycopg_pool` pool in front of the database. +`DB_POOL_MAX_SIZE` (default `10`) is the ceiling per process. Size it deliberately: the pool is +per process, so peak usage is roughly `DB_POOL_MAX_SIZE × (uvicorn workers + Celery prefork +children)`. See [Environment variables](../reference/environment-variables.md#connection-pooling) +for the arithmetic and a worked example. + +Two things to know before enabling it: + +- **The pool requires psycopg 3.** That is what this project depends on + (`psycopg[binary,pool]`); Django raises `ImproperlyConfigured` if pool options are set under + psycopg2. Nothing to do unless you have pinned the driver yourself. +- **Do not hand-roll the pool configuration.** Tenant isolation depends on `app.current_org`, a + session-scoped PostgreSQL setting that survives the transaction and the request. `psycopg_pool` + does not clear session state when a connection is returned, so a pool without the project's + `reset` callback serves one tenant's data to the next borrower of that connection. Setting + `DB_POOL_ENABLED=true` wires the callback in for you. Writing your own `OPTIONS["pool"]` block + without it is a cross-tenant data leak. + +An external pooler is a reasonable alternative, with one hard constraint: it must run in +**session** mode. Transaction-mode pooling (PgBouncer's default) does not keep session settings +across statements, which silently breaks the RLS context this application relies on for tenant +isolation. ## Static files diff --git a/frontend/package.json b/frontend/package.json index 05e303ac..2d87c3d4 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -11,15 +11,17 @@ "check": "svelte-kit sync && svelte-check --tsconfig ./jsconfig.json", "check:watch": "svelte-kit sync && svelte-check --tsconfig ./jsconfig.json --watch", "format": "prettier --write .", - "lint": "prettier --check . && eslint ." + "lint": "prettier --check . && eslint .", + "test": "vitest run", + "test:watch": "vitest" }, "devDependencies": { "@eslint/compat": "^2.1.0", "@eslint/js": "^10.0.1", - "@internationalized/date": "^3.12.2", - "@lucide/svelte": "^1.27.0", + "@internationalized/date": "^3.12.3", + "@lucide/svelte": "^1.28.0", "@sveltejs/adapter-node": "^5.5.7", - "@sveltejs/kit": "^2.70.1", + "@sveltejs/kit": "^2.70.2", "@sveltejs/vite-plugin-svelte": "^7.2.0", "@tailwindcss/typography": "^0.5.20", "@tailwindcss/vite": "^4.3.3", @@ -28,26 +30,27 @@ "eslint": "^10.8.0", "eslint-config-prettier": "^10.1.8", "eslint-plugin-svelte": "^3.22.0", - "globals": "^17.7.0", + "globals": "^17.9.0", "mode-watcher": "^1.1.0", "prettier": "^3.9.6", "prettier-plugin-svelte": "^4.1.1", "prettier-plugin-tailwindcss": "^0.8.1", "svelte": "^5.56.8", - "svelte-check": "^4.7.3", + "svelte-check": "^4.7.4", "svelte-sonner": "^1.1.1", "tailwindcss": "^4.3.3", "typescript": "^6.0.3", - "vite": "^8.1.5" + "vite": "^8.2.0", + "vitest": "^4.1.10" }, "dependencies": { - "@sentry/sveltekit": "^10.68.0", - "axios": "^1.18.1", + "@sentry/sveltekit": "^10.69.0", + "axios": "^1.19.0", "clsx": "^2.1.1", - "libphonenumber-js": "^1.13.9", - "svelte-dnd-action": "^0.9.74", + "libphonenumber-js": "^1.13.10", + "svelte-dnd-action": "^0.9.77", "tailwind-merge": "^3.6.0", - "tailwind-variants": "^3.2.2", + "tailwind-variants": "^3.3.0", "tw-animate-css": "^1.4.0" } } diff --git a/frontend/pnpm-lock.yaml b/frontend/pnpm-lock.yaml index 600f65ac..4eac1802 100644 --- a/frontend/pnpm-lock.yaml +++ b/frontend/pnpm-lock.yaml @@ -4,31 +4,34 @@ settings: autoInstallPeers: true excludeLinksFromLockfile: false +overrides: + brace-expansion@>=4.0.0 <5.0.9: ^5.0.9 + importers: .: dependencies: '@sentry/sveltekit': - specifier: ^10.68.0 - version: 10.68.0(@opentelemetry/core@2.10.0(@opentelemetry/api@1.9.1))(@sveltejs/kit@2.70.1(@opentelemetry/api@1.9.1)(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.56.8)(vite@8.1.5(@types/node@25.9.5)(jiti@2.7.0)))(svelte@5.56.8)(typescript@6.0.3)(vite@8.1.5(@types/node@25.9.5)(jiti@2.7.0)))(rollup@4.62.2)(svelte@5.56.8)(vite@8.1.5(@types/node@25.9.5)(jiti@2.7.0)) + specifier: ^10.69.0 + version: 10.69.0(@opentelemetry/core@2.10.0(@opentelemetry/api@1.9.1))(@sveltejs/kit@2.70.2(@opentelemetry/api@1.9.1)(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.56.8)(vite@8.2.0(@types/node@25.9.5)(jiti@2.7.0)))(svelte@5.56.8)(typescript@6.0.3)(vite@8.2.0(@types/node@25.9.5)(jiti@2.7.0)))(rollup@4.62.2)(svelte@5.56.8)(vite@8.2.0(@types/node@25.9.5)(jiti@2.7.0)) axios: - specifier: ^1.18.1 - version: 1.18.1(debug@4.4.3) + specifier: ^1.19.0 + version: 1.19.0(debug@4.4.3) clsx: specifier: ^2.1.1 version: 2.1.1 libphonenumber-js: - specifier: ^1.13.9 - version: 1.13.9 + specifier: ^1.13.10 + version: 1.13.10 svelte-dnd-action: - specifier: ^0.9.74 - version: 0.9.74(svelte@5.56.8) + specifier: ^0.9.77 + version: 0.9.77(svelte@5.56.8) tailwind-merge: specifier: ^3.6.0 version: 3.6.0 tailwind-variants: - specifier: ^3.2.2 - version: 3.2.2(tailwind-merge@3.6.0)(tailwindcss@4.3.3) + specifier: ^3.3.0 + version: 3.3.0(tailwind-merge@3.6.0)(tailwindcss@4.3.3) tw-animate-css: specifier: ^1.4.0 version: 1.4.0 @@ -40,32 +43,32 @@ importers: specifier: ^10.0.1 version: 10.0.1(eslint@10.8.0(jiti@2.7.0)) '@internationalized/date': - specifier: ^3.12.2 - version: 3.12.2 + specifier: ^3.12.3 + version: 3.12.3 '@lucide/svelte': - specifier: ^1.27.0 - version: 1.27.0(svelte@5.56.8) + specifier: ^1.28.0 + version: 1.28.0(svelte@5.56.8) '@sveltejs/adapter-node': specifier: ^5.5.7 - version: 5.5.7(@sveltejs/kit@2.70.1(@opentelemetry/api@1.9.1)(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.56.8)(vite@8.1.5(@types/node@25.9.5)(jiti@2.7.0)))(svelte@5.56.8)(typescript@6.0.3)(vite@8.1.5(@types/node@25.9.5)(jiti@2.7.0))) + version: 5.5.7(@sveltejs/kit@2.70.2(@opentelemetry/api@1.9.1)(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.56.8)(vite@8.2.0(@types/node@25.9.5)(jiti@2.7.0)))(svelte@5.56.8)(typescript@6.0.3)(vite@8.2.0(@types/node@25.9.5)(jiti@2.7.0))) '@sveltejs/kit': - specifier: ^2.70.1 - version: 2.70.1(@opentelemetry/api@1.9.1)(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.56.8)(vite@8.1.5(@types/node@25.9.5)(jiti@2.7.0)))(svelte@5.56.8)(typescript@6.0.3)(vite@8.1.5(@types/node@25.9.5)(jiti@2.7.0)) + specifier: ^2.70.2 + version: 2.70.2(@opentelemetry/api@1.9.1)(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.56.8)(vite@8.2.0(@types/node@25.9.5)(jiti@2.7.0)))(svelte@5.56.8)(typescript@6.0.3)(vite@8.2.0(@types/node@25.9.5)(jiti@2.7.0)) '@sveltejs/vite-plugin-svelte': specifier: ^7.2.0 - version: 7.2.0(svelte@5.56.8)(vite@8.1.5(@types/node@25.9.5)(jiti@2.7.0)) + version: 7.2.0(svelte@5.56.8)(vite@8.2.0(@types/node@25.9.5)(jiti@2.7.0)) '@tailwindcss/typography': specifier: ^0.5.20 version: 0.5.20(tailwindcss@4.3.3) '@tailwindcss/vite': specifier: ^4.3.3 - version: 4.3.3(vite@8.1.5(@types/node@25.9.5)(jiti@2.7.0)) + version: 4.3.3(vite@8.2.0(@types/node@25.9.5)(jiti@2.7.0)) '@types/node': specifier: ^25.9.5 version: 25.9.5 bits-ui: specifier: ^2.18.1 - version: 2.18.1(@internationalized/date@3.12.2)(@sveltejs/kit@2.70.1(@opentelemetry/api@1.9.1)(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.56.8)(vite@8.1.5(@types/node@25.9.5)(jiti@2.7.0)))(svelte@5.56.8)(typescript@6.0.3)(vite@8.1.5(@types/node@25.9.5)(jiti@2.7.0)))(svelte@5.56.8) + version: 2.18.1(@internationalized/date@3.12.3)(@sveltejs/kit@2.70.2(@opentelemetry/api@1.9.1)(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.56.8)(vite@8.2.0(@types/node@25.9.5)(jiti@2.7.0)))(svelte@5.56.8)(typescript@6.0.3)(vite@8.2.0(@types/node@25.9.5)(jiti@2.7.0)))(svelte@5.56.8) eslint: specifier: ^10.8.0 version: 10.8.0(jiti@2.7.0) @@ -76,8 +79,8 @@ importers: specifier: ^3.22.0 version: 3.22.0(eslint@10.8.0(jiti@2.7.0))(svelte@5.56.8) globals: - specifier: ^17.7.0 - version: 17.7.0 + specifier: ^17.9.0 + version: 17.9.0 mode-watcher: specifier: ^1.1.0 version: 1.1.0(svelte@5.56.8) @@ -94,8 +97,8 @@ importers: specifier: ^5.56.8 version: 5.56.8 svelte-check: - specifier: ^4.7.3 - version: 4.7.3(picomatch@4.0.5)(svelte@5.56.8)(typescript@6.0.3) + specifier: ^4.7.4 + version: 4.7.4(picomatch@4.0.5)(svelte@5.56.8)(typescript@6.0.3) svelte-sonner: specifier: ^1.1.1 version: 1.1.1(svelte@5.56.8) @@ -106,13 +109,16 @@ importers: specifier: ^6.0.3 version: 6.0.3 vite: - specifier: ^8.1.5 - version: 8.1.5(@types/node@25.9.5)(jiti@2.7.0) + specifier: ^8.2.0 + version: 8.2.0(@types/node@25.9.5)(jiti@2.7.0) + vitest: + specifier: ^4.1.10 + version: 4.1.10(@opentelemetry/api@1.9.1)(@types/node@25.9.5)(vite@8.2.0(@types/node@25.9.5)(jiti@2.7.0)) packages: - '@apm-js-collab/code-transformer-bundler-plugins@0.7.1': - resolution: {integrity: sha512-Yidf5GOl60db80UxUtNdKK3pnY7obU/gs0xOfA0SCdnvVLMCvfYIer/egC3TqpPiT0Jg22eg3RlzcO+zKfPMcA==} + '@apm-js-collab/code-transformer-bundler-plugins@0.7.3': + resolution: {integrity: sha512-qNbPwuMZ8f5ZuGj/ttPeB7a6C/S1bB6tNYaEL5vNiRKydSAxa4AU0gxCWgaP4fVju+AuwhcumSFjrEcGF9Dv7Q==} engines: {node: '>=18.0.0'} '@apm-js-collab/code-transformer@0.18.1': @@ -134,8 +140,8 @@ packages: resolution: {integrity: sha512-RgHBCvtjbOK2gXSNBNIkNoEc9qoVEtau3hj8gEqKQuL3HZAibKarWFEI3Lfm6EYKkLalOh8eSrj9b+ch9H/VBA==} engines: {node: '>=6.9.0'} - '@babel/generator@7.29.7': - resolution: {integrity: sha512-DkXD5OJQaAQIdZ1bt3UZdEnHAn9Imd3IVBdX03UFe+ony9Ojw5pzr9YVKGDY1jt+Gcn/FnGkNf8r+Vj5NOJWtQ==} + '@babel/generator@7.29.8': + resolution: {integrity: sha512-gZbepsdh3WDtgZKWL+vTPh71LSBrm/Y4/QDZBVCcYfmeTEEuoOYwlSy+G1StfJg+/Zy550u/3TATbm7qDbbMtg==} engines: {node: '>=6.9.0'} '@babel/helper-compilation-targets@7.29.7': @@ -172,8 +178,8 @@ packages: resolution: {integrity: sha512-1k2lAGRMfHTcwuNYcCNUmaUffmQv8KWMfh2iJUUeRlwlwH4FdNG7mfPI10NPfLHJFThE4Tyr4mv7kTNZOiPuBg==} engines: {node: '>=6.9.0'} - '@babel/parser@7.29.7': - resolution: {integrity: sha512-hnORnjP/1P/zFEndoeX+n+t1RwWRJiJpM/jO7FW32Kn9r5+sJB2JWOdYo4L6k78j15eCwY3Gm/7364B1EMwtNg==} + '@babel/parser@7.29.8': + resolution: {integrity: sha512-E8lTAYNB1KW+FH+VGJuZM1ioAx2E6oVlvQFRrf5P8ZZmsiJXYAD9vTFV7yyEURNzgh1dFqMZuO6tUwcARbqFCA==} engines: {node: '>=6.0.0'} hasBin: true @@ -181,22 +187,22 @@ packages: resolution: {integrity: sha512-puq+Gf35oI24FeN11LkoUQFqv9uwNeWpxXZi/Ji3rRIoKAzKnxRaZ+Gkj0vKS9ZCiTESfng1N9LyOyXvo+m+Gg==} engines: {node: '>=6.9.0'} - '@babel/traverse@7.29.7': - resolution: {integrity: sha512-EhlfNQtZ+NK22w5BM61ciuiq1m58ed33Wr1Xan//ZRTy6hgjnwyCffRYwzsGXdASJSUJ1guZILsErh1eQcl+zw==} + '@babel/traverse@7.29.8': + resolution: {integrity: sha512-I5z7H3bf/41ktsNVLtpN0wAa336HkqIHQ5BuPLEhTkt1jVSyZpeNKIzTgEWmlxjdg81R0IgUCcaE+Ok3NvrfZg==} engines: {node: '>=6.9.0'} - '@babel/types@7.29.7': - resolution: {integrity: sha512-4zBIxpPzowiZpusoFkyGVwakdRJUyuH5PxQ/PrqghfdFWWasvnCdPfQXHrenDai+gyLARulZjZowCOj6fjT4pA==} + '@babel/types@7.29.8': + resolution: {integrity: sha512-Vj1jF3cPfxg7OAfoI7QnVKLoILlm2JF9pnVHrX8qx7AHMiYWT+NDAA7jChlNgRS4WTLc/fD1lXLmPixluj+3Gg==} engines: {node: '>=6.9.0'} - '@emnapi/core@1.11.1': - resolution: {integrity: sha512-RSvbQmHzdKzNsLYa/wHrbc3KN4sYLKAdPZxqiM2HATqv/SBk2/ENSHpvXGaLOMcsAyz0poEGqkmmKYG3OWiJEQ==} + '@emnapi/core@2.0.0-alpha.3': + resolution: {integrity: sha512-AZypUeJ/yByuxyS7BlSNRDOMLMlROYtjYdIAuBmJssVz1UJDSeYxLrdizhXCFYhedC5bqd/ASy8EuNXbVVXp9g==} - '@emnapi/runtime@1.11.1': - resolution: {integrity: sha512-vgj7R3y3Wgx24IQaGPA/R6YFXLHVMOZ0uVEyIQPaWs+rd1AzfEMXlAC22FYwO1XkKR6NPsq7mUandH8oIRdZFw==} + '@emnapi/runtime@2.0.0-alpha.3': + resolution: {integrity: sha512-hFPAhMUjJD9BSyCANEISPOogeXC9Zo9ZQl7L6vKnaVsMkCtzznaW/naYypeyl0Gv5rYfWYsZbpixTMpjDJzQeA==} - '@emnapi/wasi-threads@1.2.2': - resolution: {integrity: sha512-c95qOXkHdydNKhscBTebqEC1CVAZpyqOfVfBzQ1qgzyl3gfeldUjIggDbIZgDKsHLgnsM+igH7TJ/eAasaVuMA==} + '@emnapi/wasi-threads@2.0.1': + resolution: {integrity: sha512-9DsSk+o5NBX0CCJT8s0EROGSGxjR/tKu6aBTaVyq+SjAEQH4XcdcRxPBRzsBLizTTJ49MJjF+jgu3qnO9GLQcQ==} '@eslint-community/eslint-utils@4.10.1': resolution: {integrity: sha512-cuadcxVFE8sDK6iWJbs8Sn0av2Nrh2QSGQhVlBW9AaAHqHwjWsZHT8LJ4hFGPh7ASBV2deFdM7H/DPjulmh8rg==} @@ -275,8 +281,8 @@ packages: resolution: {integrity: sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==} engines: {node: '>=18.18'} - '@internationalized/date@3.12.2': - resolution: {integrity: sha512-FY1Y+H64NDs+HAF6omlnWxm3mEpfgaCSWtL5l551ZZfImA+kGjPFgrnJrGjH6lfmLL0g8Z/mBu1R3kufeCp6Jw==} + '@internationalized/date@3.12.3': + resolution: {integrity: sha512-fuLX+3ZKLsxI73y8b01EG/WjHb6gE6weCqlfawPO27kBWGMh9G1yH6Csv1uU7/cac9H2GHmOMt6CjmuQ1aia4Q==} '@jridgewell/gen-mapping@0.3.13': resolution: {integrity: sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==} @@ -294,16 +300,17 @@ packages: '@jridgewell/trace-mapping@0.3.31': resolution: {integrity: sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==} - '@lucide/svelte@1.27.0': - resolution: {integrity: sha512-qzNBHdqy/MKp2qxuy/DcYELuep6h19fjo+4ech8fZsS4GtZeBtg5jgCTRQvLvwhppt0mhRN6qt8Nt8rPb/J4Ag==} + '@lucide/svelte@1.28.0': + resolution: {integrity: sha512-C1Ge84KW2z4q44/WDIEo/2KC2jby5u6mSlta7q+p6g7u0ld8sC/w1fMBiSswF+4bxAl9jlzzaVTpp79qqkiy5g==} peerDependencies: svelte: ^5 - '@napi-rs/wasm-runtime@1.1.6': - resolution: {integrity: sha512-ZLv/JdUfkvOy9eCnnBaGfiO+XimbjebAeO+MRQqD/B+FR1tnRN0tpKSJHRbE8sFfS6aqsXZ67TQjfwfsxULVbg==} + '@napi-rs/wasm-runtime@1.2.2': + resolution: {integrity: sha512-JfB4kuJQjaoHuCTseIINHtHWeJnvgEcxjwA5t/Y00ZgaOO1Crz3fjT/p8kT28zA/Caz7oiUMn3d6H2yOVCVwuw==} + engines: {node: ^20.19.0 || ^22.13.0 || >=23.5.0} peerDependencies: - '@emnapi/core': ^1.7.1 - '@emnapi/runtime': ^1.7.1 + '@emnapi/core': ^1.7.1 || ^2.0.0-alpha.3 + '@emnapi/runtime': ^1.7.1 || ^2.0.0-alpha.3 '@opentelemetry/api-logs@0.220.0': resolution: {integrity: sha512-CmVa4ImJ+ynfrPMNaAXHET6Bhb44SwzmfyVJFq9ni2jgXJR/l7C6gfVFddNmHP+ZOkP9cf4f9DBe68qVLTHc9w==} @@ -347,103 +354,102 @@ packages: resolution: {integrity: sha512-eSYWTm620tTk45EKSedaUL8MFYI8hW164hIXsgIHyxu3VobUB3fFCu5t0hQby6OoWRPsG1KkKUG2M5UadiLiVg==} engines: {node: '>=14'} - '@oxc-project/types@0.139.0': - resolution: {integrity: sha512-r9gHphtCs+1M7J0pw6Sn/hh/Wpa/iQrOOkrNAlVLF/gHq+/CJmHIWKKUUhdWjcD6CIa8idarspCsASiXCXvFUw==} + '@oxc-project/types@0.142.0': + resolution: {integrity: sha512-7W+2q5AKQVU36fkaryontrHn3YDt1RyUYXatw9i5H8ocYe2sPKSFB6eS8WNPeRKiN1qAWWZUPm7gwFzJGrccqQ==} '@polka/url@1.0.0-next.29': resolution: {integrity: sha512-wwQAWhWSuHaag8c4q/KN/vCoeOJYshAIvMQwD4GpSb3OiZklFfvAgmj0VCBBImRpuF/aFgIRzllXlVX93Jevww==} - '@rolldown/binding-android-arm64@1.1.5': - resolution: {integrity: sha512-lZg8fqIv2v7FF237bwMgzGZEJvGL79/s5knJ/i6FmsGF4XXlzccZ4jb+TrFIxtSSxFtIpdsgrPZeMk1I9AFcyQ==} + '@rolldown/binding-android-arm64@1.2.1': + resolution: {integrity: sha512-02hOeOSryYxVrOIphmLAsqnCJWxwlzFk+pEt/N/i6OgT3lShHO7xGCU5cpgchRDHboAEbSjzgGh+O/u1GswQmA==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [android] - '@rolldown/binding-darwin-arm64@1.1.5': - resolution: {integrity: sha512-51Bnx9pNiMRKSUNtBfySkNJ9vMU9Hh3I1ozDd6gyPPYzaXCfnptUcEZxXGYFn+ul2dtcMUiqGR1Yai2K10uoTw==} + '@rolldown/binding-darwin-arm64@1.2.1': + resolution: {integrity: sha512-fMsTOnN0OjFm3CyppWPitKnc8UlliVARUULW6cfU6AIqjdtgmSFWSk9vecHzZduv/yMWIHDlRhM1e8Iff9uAfA==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [darwin] - '@rolldown/binding-darwin-x64@1.1.5': - resolution: {integrity: sha512-Tm+gbfC0aHu1tBA/JvKQh32S0K6YgCHkiAF4/W6xX0K0RmNuc94VeK419dJoE65R5aRxmo+noZQSWrAMF6yb6g==} + '@rolldown/binding-darwin-x64@1.2.1': + resolution: {integrity: sha512-1wjKdz/XLGKHaTNHjQveQ/B23TKx4ItAqm1JbyVuvNPc4Ze0Fb48s49TAd/2zcplPl8okE/UbTgmlVfwT7eFeQ==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [darwin] - '@rolldown/binding-freebsd-x64@1.1.5': - resolution: {integrity: sha512-JMzDKCCXq93YccG5gz3hvOs1oXRKAf0XYpfOS88e+wZrC8Iugj6j68867vrYZkvpDDpKn/KoKORThmchMpF6TA==} + '@rolldown/binding-freebsd-x64@1.2.1': + resolution: {integrity: sha512-Fa0jHR07E7YBN4vOEsbVf2briYNsuOowfLJaXULZM0ldMlaCaj2LJgLMbMe4iacRyZmvR8efFhgR9wKuGclQUg==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [freebsd] - '@rolldown/binding-linux-arm-gnueabihf@1.1.5': - resolution: {integrity: sha512-uML21j2K5TfPGutKxub+M+nLjZIrWjXQ5Grx4lCe/nimTj9B4L63zHpjXLl4y0L3mcm2htEQIb06oCG/szerNw==} + '@rolldown/binding-linux-arm-gnueabihf@1.2.1': + resolution: {integrity: sha512-pzkgu1SSHGgRRyRZ4fbmSgmajbVt+epaLP99NDjFft69v/ypfTi6swBMiVdh2EkQ0OSnHE1lZDM7DRGkyAzUpA==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm] os: [linux] - '@rolldown/binding-linux-arm64-gnu@1.1.5': - resolution: {integrity: sha512-navSiuTMogvnQoZoM/v+l3ZWo50/NTwSHSzheABx/RCnmUPaKwq9qSo4Br2OYRs21+Fz8uFqITZM3H4opOB0/Q==} + '@rolldown/binding-linux-arm64-gnu@1.2.1': + resolution: {integrity: sha512-QI5SEDY8cbiYWHx0VO4vIc3UlS6a32vXHjU8Qy/17adEmZIPuByJg13UEvo9c/UCiUkdcVWY83C+b+JrwnNyUg==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [linux] libc: [glibc] - '@rolldown/binding-linux-arm64-musl@1.1.5': - resolution: {integrity: sha512-lAryqH7IteztmCXQXk0etKj4wBQ7Gx5S6LjKhsgp9zb8I5bsuvU/2llH1hDQcjsFeqIsovMVN339/8pUDDBXxA==} + '@rolldown/binding-linux-arm64-musl@1.2.1': + resolution: {integrity: sha512-Sm41FyCeXqmYcERoYOCbGIL5hNfd8w9LQ7Y61Bev48HkcjaJqV/iiVOaiDxjVTRMS+QKrZmD8cfPt4uMVnvM+A==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [linux] libc: [musl] - '@rolldown/binding-linux-ppc64-gnu@1.1.5': - resolution: {integrity: sha512-fsK/sNBnxzBlL4O1JNrZakVQxPspqpED5dLtNsZS9oOKmtSpdNIzxH2kkol5HYTWJN47sE20ztMJPxfZ89qGOg==} + '@rolldown/binding-linux-ppc64-gnu@1.2.1': + resolution: {integrity: sha512-2x+WhXTGl9yJYPbltW/BSEPTVz9OIWQyER4N+gJEDWkkn904eRcBzELqh/Hf7K0w/ubGbKNMv0ZC+94QK/IFEg==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [ppc64] os: [linux] libc: [glibc] - '@rolldown/binding-linux-s390x-gnu@1.1.5': - resolution: {integrity: sha512-gLYb4BIadlfTOYT5gO503n8zQjXflgzpD0FcyKh0Mzx3rqCZKnHoJWV9xe1KXUJ5lx2JfcSHr/mhzS0PC/McAA==} + '@rolldown/binding-linux-s390x-gnu@1.2.1': + resolution: {integrity: sha512-eEjmQpuRQayHPWWnywaWHkFT3ToPbP3RYy42VVd/B9aBGDA+Ol25EIWHxKQST3IiWJjikCWUF7KtbfqwZrzVwQ==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [s390x] os: [linux] libc: [glibc] - '@rolldown/binding-linux-x64-gnu@1.1.5': - resolution: {integrity: sha512-FjcpEKUyJygHgs1o50VYNvkt5+7Le/VEdYt0AkRpkL33MnyQfwr8l5mXwMmfmTbyMPr5vJLC+8/Gd9gXnwU1QQ==} + '@rolldown/binding-linux-x64-gnu@1.2.1': + resolution: {integrity: sha512-/Orga1fZYkLc/56jBICcHrKchl8Z2UKdDSr3LG9ToWO1lQ6a4Livk9Xz+9WN91zsz5QR3XQz2NNoSDEvP6qadw==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [linux] libc: [glibc] - '@rolldown/binding-linux-x64-musl@1.1.5': - resolution: {integrity: sha512-Me+PfPI2TMeOQk0gYWfLQZtTktrmzbr8cDboqX83XKc7UrgAi55gF+2dUkWdxd19n55Essp2yeca+O9N5rBxHg==} + '@rolldown/binding-linux-x64-musl@1.2.1': + resolution: {integrity: sha512-xxBJRL+0q0Kce7orznGWLuylHDY65vuARXZRpX+hPdv+DqK2c3NlCsVA98tlWzWNEE7yPqA/1NQ5nnCrj49Y5A==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [linux] libc: [musl] - '@rolldown/binding-openharmony-arm64@1.1.5': - resolution: {integrity: sha512-yc5WrLzXks6zCQfn9Oxr8pORKyl/pF+QjHmW/Qx3qu0oyrrNC+y2JLTU1E2rcWYAmzlnqngWXHQjy51VzW70Vw==} + '@rolldown/binding-openharmony-arm64@1.2.1': + resolution: {integrity: sha512-M6AdXIXw3s+/8XpKMzdGDEXGS1S7kwUsy+rcTIUIOx5Ge4nXKCtAFHFV9YKkXvGcC5WMoTjAteLzlsQROVI0Yw==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [openharmony] - '@rolldown/binding-wasm32-wasi@1.1.5': - resolution: {integrity: sha512-VbQGPX2b4r48TAMIM2cjgluIM1HYutm4pcTEJsle7iEP7sB1dFqtPLBVbdLAZCxy1txCcPxf4QFf4v8uvltPqA==} - engines: {node: ^20.19.0 || >=22.12.0} - cpu: [wasm32] + '@rolldown/binding-wasm32-wasi@1.2.1': + resolution: {integrity: sha512-/TX0SoRGojHzSAHpfVBbavRVSazg5U3h3Y3VXfcc0cdugq6kxdqw8LPGFiPr+/7gE/60zRcsOY2Vi9b9eT0jww==} + engines: {node: ^20.19.0 || ^22.13.0 || >=23.5.0} - '@rolldown/binding-win32-arm64-msvc@1.1.5': - resolution: {integrity: sha512-gHv82k63z4qpV5+Q1y/12KrK0ltWBukVDI8nZcbT7Tt/ZlOIVwppazneq0F93oDxTo3IgAMEDIoQh3E2n6mVsw==} + '@rolldown/binding-win32-arm64-msvc@1.2.1': + resolution: {integrity: sha512-EvRrivJieyHG+AO9lleZWgq+g0+S7oV2C51yuqlcyU/R9net+sI4Pj0F+lUoP2bEr6TWX3SqFaaS0SzfLxSzkw==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [win32] - '@rolldown/binding-win32-x64-msvc@1.1.5': - resolution: {integrity: sha512-tTZuDBPw85tEN5PQi1pnEBzDy0Z49HtScLAbD5t6hyeU92A95pRWaSMw1GZZi/RwgSgUIl0xrSlXIT/9QzvYSA==} + '@rolldown/binding-win32-x64-msvc@1.2.1': + resolution: {integrity: sha512-Z4eCmn5QJ/5+azF9knpLWKfVd9aidn0mAe9TpJgvBLId9Ax3t0+JVxBmT25Bv7NBbVW1TZyKjQjQReouMeH5UQ==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [win32] @@ -634,16 +640,16 @@ packages: cpu: [x64] os: [win32] - '@sentry/browser-utils@10.68.0': - resolution: {integrity: sha512-be8VtdjCngKc77cstJeV+gO15iH+blyXpBDk8yOehmtX4BkFO33mfTMNCWVR2LA0oOxjIHWRAhf77fIUEhzxPg==} + '@sentry/browser-utils@10.69.0': + resolution: {integrity: sha512-e/u1Abj0zRPwR/deGZAP3GOULrsx67/XXnM5Skniqs4uxTsdNtPek1Nef0tpxwaQJYxwh6pWdhswLPPbbPOgBQ==} engines: {node: '>=18'} - '@sentry/browser@10.68.0': - resolution: {integrity: sha512-8xVgk7oG2lajXnbXF6a7H1xMZ/U6icqSldHGzQu1+bajfrK8Gan9ULG/Xsj1VM1LlNeK6/7znDJ3u1jgvIwznw==} + '@sentry/browser@10.69.0': + resolution: {integrity: sha512-8391tnm96YbR7b8SYfEA/NEIZuyb2r3SZrtAT0bhZtjlujcYWjo7gugQvk8sWLU9cAa/euD00eJoIoJvNfpd7Q==} engines: {node: '>=18'} - '@sentry/bundler-plugins@10.68.0': - resolution: {integrity: sha512-XWv7asJuTTUSlacROvqcIFKuNxAf3PYL/mdjMBhBwp3rJ4vMkA73jqNPjqCTm726cHs/Y4yadbbFA/OZLPWzeg==} + '@sentry/bundler-plugins@10.69.0': + resolution: {integrity: sha512-I1otnSJIH4IOugLp+kcBbT0Kcex+J8xnHuUyzMAwCYSpZ0FMVvA723uNmkMdW0PxRRw0oEhe0qDB+t+ZjHxUiA==} engines: {node: '>= 18'} peerDependencies: rollup: '>=3.2.0' @@ -706,8 +712,8 @@ packages: engines: {node: '>= 10'} hasBin: true - '@sentry/cloudflare@10.68.0': - resolution: {integrity: sha512-IcSjfncUSkisoZy66SbLMb4gtH+Jr9mS02DIqjuz3JsrKnkxFaQIBiosoDTgHlCMWFIEU5M4MpErYZ1dzJpo6Q==} + '@sentry/cloudflare@10.69.0': + resolution: {integrity: sha512-CO6Tr74cw3Wx2DyWSfBCxR6EDcNfBjn52hxWacxHsLurpdfQ7Bp/J32m1KxzezR5CZXngfBTmemK3iZsMgt5uQ==} engines: {node: '>=18'} peerDependencies: '@cloudflare/workers-types': ^4.x || ^5.x @@ -722,16 +728,16 @@ packages: resolution: {integrity: sha512-fO9PLmHdVURcSPUpWCItWAtgKiMwGdJHbovoSEyLplX5sxs2ugvI4CBPTrkkgqhObnZOD0CnWBKDzSVQYBKEyQ==} engines: {node: '>=14'} - '@sentry/core@10.68.0': - resolution: {integrity: sha512-5Amhx8ltVz7vb1bRGyf3c4J69/iHW8R/H+SJxTRILHlsSOBrnVVc/IQEYDC6PTRdRdZ3x2u7RVjxZi2Mhe525g==} + '@sentry/core@10.69.0': + resolution: {integrity: sha512-+uuqVEeiDzYuAKjZLqsROKXvRTbl/QeH0gfGRtpYib1cud4rAFWRIkFmcR7Jb7JGFYwmReyQotiTj/hcDszTZg==} engines: {node: '>=18'} - '@sentry/feedback@10.68.0': - resolution: {integrity: sha512-XbdcXiBnpC3vgw46eHOPeD/ZQ+XzluP75ubdUcaPDW02hCh2nsdXiwjZ2DBImbpvIpTbJgjHf/sIlHWvcZJ2Mg==} + '@sentry/feedback@10.69.0': + resolution: {integrity: sha512-qrGz5Qaw93/IhMjlFN6uIaXeHwgHDaKGa6FkTAP6PonpkvSbGGqan6xfsENxzj9HUVoli1lZ6tMRDnt2qtSPhg==} engines: {node: '>=18'} - '@sentry/node-core@10.68.0': - resolution: {integrity: sha512-VreORXnruy8A2SyprZKENAq3ArGwn35KPewLQSQ5dgDXSFtUj2scLuzZoVsZ/Uyt83td0WPvD6Lv0X7MvSYAMQ==} + '@sentry/node-core@10.69.0': + resolution: {integrity: sha512-IgArHczrZJxkgxoffHscj0NxQrG6kCazgmGQnlf3j58J1ec21YaUu8Tu+7G4Lo5tCiW3teQnwlKW1ttMXSqWRw==} engines: {node: '>=18'} peerDependencies: '@opentelemetry/api': ^1.9.0 @@ -751,38 +757,38 @@ packages: '@opentelemetry/sdk-trace-base': optional: true - '@sentry/node@10.68.0': - resolution: {integrity: sha512-bnvRzEehquG/894DD3BWNCBUbDWsLQfYPU+SNCMd6G4Ext75RthVkRs8R0sRaE6b8Tw9HSEgySHL834Tf8lVsA==} + '@sentry/node@10.69.0': + resolution: {integrity: sha512-xEXA1YGIiTZbrW6MWV34uS6JGQuQg2ijTI0zed+FsJb9JZKPYel/GZK8Km26vfTVb+yCXFmWZNBesKegNcVdzg==} engines: {node: '>=18'} - '@sentry/opentelemetry@10.68.0': - resolution: {integrity: sha512-JDNH9dacX0MSi7FRvabPCJUAXRMTe16bE/Gajc/7Gfcw7Rwvo4DZ0nd162PCSAW9QoEjUT12upDehEHJuFmsXg==} + '@sentry/opentelemetry@10.69.0': + resolution: {integrity: sha512-3FyWV6YcEJuvLrlaKGE1dHXCI+1YO0a62w7PkwlRg8yp6K6YXkmdwu9GjqaYD+Ju4tm7uC7mHIsGFQMm0M7pqQ==} engines: {node: '>=18'} peerDependencies: '@opentelemetry/api': ^1.9.0 '@opentelemetry/core': ^1.30.1 || ^2.1.0 '@opentelemetry/sdk-trace-base': ^1.30.1 || ^2.1.0 - '@sentry/replay-canvas@10.68.0': - resolution: {integrity: sha512-HusYcr+He+ohnUDHunYrc5St6vdDnBXpUAndnT5ReyUMVSCiWKfY3paXowU/0787HwYfxdcpZgwC5u79+XbEIg==} + '@sentry/replay-canvas@10.69.0': + resolution: {integrity: sha512-VF6nXvSninHcc7dC1Zme0RjkC7VgRMCixs6jKaQX5zTNeqTW3dZGSefSOVv+ZteRi3hJvVORq985VjUC9Z/0+A==} engines: {node: '>=18'} - '@sentry/replay@10.68.0': - resolution: {integrity: sha512-ZoG2n16vbkx4GWSCnLIqUUN9xlUmccQFbQ2US2rhruQeHTUnHl/ukr8NHOQXZaEbwKyMkX9bEMwfmZHJm+wSTQ==} + '@sentry/replay@10.69.0': + resolution: {integrity: sha512-uRhmNhtFGPOlM0iniVmWKAX3KVXI0le41yYK/iKdPjinT9jA3ZrmykO/Fv1v/KI5znOtwa9D6eHRnDTTMRxFrg==} engines: {node: '>=18'} - '@sentry/server-utils@10.68.0': - resolution: {integrity: sha512-lp1ZSs1auw7HrCESSYt/n4dOUaKPVUIAKyVYRk6xVr4bMIN3RPub/H5Wm7QPj9CpXVC5bQFvB6+dHZXz809oMg==} + '@sentry/server-utils@10.69.0': + resolution: {integrity: sha512-0MwHrA8+nNvMIsqf8m3cXwCBlUjr6AS7N6CZvHJtY1DkqEvQqEbD5VIrhzEyHN/KMZIgQ8XeDCQRhjnXFQGRhg==} engines: {node: '>=18'} - '@sentry/svelte@10.68.0': - resolution: {integrity: sha512-3PzjhvelZFYmt0WkHF8tPpBRLlbBjb7TFeqUEheiMoQ4L87h+xmIu3QkRxKnp8gtzimNdT5n7arX561Ni7AZ5g==} + '@sentry/svelte@10.69.0': + resolution: {integrity: sha512-ryRAJZIsiRpDrMJTEodSloCuvFSanUs2slWc61KtW2hTMgWw9dj5oA1tMyNJpOfanDZGMWGiGv+W/2szp4GoRg==} engines: {node: '>=18'} peerDependencies: svelte: 3.x || 4.x || 5.x - '@sentry/sveltekit@10.68.0': - resolution: {integrity: sha512-DGYspA0FfAb//OBac2qCZpZ3Z79e7d9HkLwU6wkUvTkluC83si3qb0trskons8hh2p/gEWbPhVLUh2++yQIkpA==} + '@sentry/sveltekit@10.69.0': + resolution: {integrity: sha512-KXXudTYZR1ALycPJpWggti5NvD3XU4iDBmNSC/CsmJQyohZmlQk916RPyx9KfEF5PTtI711KjzM3kFdkWPJpSg==} engines: {node: '>=18'} peerDependencies: '@sveltejs/kit': 2.x || ^3.0.0-0 @@ -808,8 +814,8 @@ packages: peerDependencies: '@sveltejs/kit': ^2.4.0 - '@sveltejs/kit@2.70.1': - resolution: {integrity: sha512-nY9SPHGOZro3doud9vZXDBwl9tCZIouuJztjgSHs6PAIrv9M/z5O7eOhPV5xU7CgVHA976Jwu3BA1hIFvXztkA==} + '@sveltejs/kit@2.70.2': + resolution: {integrity: sha512-RzRoRpuR2KXqc5yMO0akQHDZeT4AslOlznGITURsqHaVbtyYP4Wn3eE3gxj9JcDyNYO0crkxhdwFHc+2vkVm6w==} engines: {node: '>=18.13'} hasBin: true peerDependencies: @@ -940,9 +946,15 @@ packages: '@tybys/wasm-util@0.10.3': resolution: {integrity: sha512-F3fo1MYrRJYL3zER0OUOmkutjr1Vp23m7OsSgp7nq4SP6OqX6C/56XFIPAl5bt3zaBRjmW7SGz3u/6LwFpYcOg==} + '@types/chai@5.2.3': + resolution: {integrity: sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA==} + '@types/cookie@0.6.0': resolution: {integrity: sha512-4Kh9a6B2bQciAhf7FSuMRRkUWecJgJu9nPnx3yzpsfXX/c50REIqpHY4C82bXP90qrLtXtkDxTZosYO3UpOwlA==} + '@types/deep-eql@4.0.2': + resolution: {integrity: sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==} + '@types/esrecurse@4.3.1': resolution: {integrity: sha512-xJBAbDifo5hpffDBuHl0Y8ywswbiAp/Wi7Y/GtAgSlZyIABppyurxVueOPE8LUQOxdlgi6Zqce7uoEpqNTeiUw==} @@ -961,6 +973,35 @@ packages: '@types/trusted-types@2.0.7': resolution: {integrity: sha512-ScaPdn1dQczgbl0QFTeTOmVHFULt394XJgOQNoyVhZ6r2vLnMLJfBPd53SB52T/3G36VI1/g2MZaX0cwDuXsfw==} + '@vitest/expect@4.1.10': + resolution: {integrity: sha512-YsCn+qAk1GWjQOWFEsEcL2gNQ0zmVmQu3T03qP6UyjhtmdtwtbuI+DASn/7iQB3HGTXkdBwGddzxPlmiql5vlA==} + + '@vitest/mocker@4.1.10': + resolution: {integrity: sha512-v0xaezt+DKEmKfaxg133ldzADrwLGd7Ze1MfQQTYfvs8OqZIwbxyxaYURivwV7sWy5fqn3rH5uOrSp07bp44Ow==} + peerDependencies: + msw: ^2.4.9 + vite: ^6.0.0 || ^7.0.0 || ^8.0.0 + peerDependenciesMeta: + msw: + optional: true + vite: + optional: true + + '@vitest/pretty-format@4.1.10': + resolution: {integrity: sha512-W1HsjSH4MXQ9YfmmhLAoIYf1HRfekQCGngeIgcei6MP5QQGWUe0gkopdZQaVCFO+JDJMrAJGwa5pRpNpvy4P8Q==} + + '@vitest/runner@4.1.10': + resolution: {integrity: sha512-IKI6kpIH+LmpROplyLwBBaCfMgOZOMsygVa6BARD6ahA04VRuJSa6OaVG7kRvSEMD870Vd91rSSw0eegtWyLGg==} + + '@vitest/snapshot@4.1.10': + resolution: {integrity: sha512-xRkfOT1qpTAi/Ti4Y1LtfRc3kEuqxGw59eN2jN9pRWMtS/XDevekhcFSqvQqjUNGksfjMJu3Y+oJ+4Ypn2OaJw==} + + '@vitest/spy@4.1.10': + resolution: {integrity: sha512-PLf/Ugvoq5wO/b4rwYCR1h2PSIdXz7wnkQFMiUpLdtM7l6pqVFcQIBEHyT1+l+cj7mNwAfZHzqXqDyjvOuwbDw==} + + '@vitest/utils@4.1.10': + resolution: {integrity: sha512-fy9am/HWxbaGt/Sawrp90vt6Y6jQwf1RX77cz3uwoJwJVMli/e1IEwRPnMNJ7vKfPTwo0diXifkpPvwH9v7nGA==} + acorn-jsx@5.3.2: resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==} peerDependencies: @@ -971,6 +1012,11 @@ packages: engines: {node: '>=0.4.0'} hasBin: true + acorn@8.18.0: + resolution: {integrity: sha512-lGq+9yr1/GuAWaVYIHRjvvySG5/4VfKIvC8EWxStPdcDh/Ka7FG3twP6v4d5BkravUilhIAsG4Qj83t02LWUPQ==} + engines: {node: '>=0.4.0'} + hasBin: true + agent-base@6.0.2: resolution: {integrity: sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==} engines: {node: '>= 6.0.0'} @@ -982,6 +1028,10 @@ packages: resolution: {integrity: sha512-Z/ZeOgVl7bcSYZ/u/rh0fOpvEpq//LZmdbkXyc7syVzjPAhfOa9ebsdTSjEBDU4vs5nC98Kfduj1uFo0qyET3g==} engines: {node: '>= 0.4'} + assertion-error@2.0.1: + resolution: {integrity: sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==} + engines: {node: '>=12'} + astring@1.9.0: resolution: {integrity: sha512-LElXdjswlqjWrPpJFg1Fx4wpkOCxj1TDHlSV4PlaRxHGWko024xICaa97ZkMfs6DRKlCguiAI+rbXv5GWwXIkg==} hasBin: true @@ -989,8 +1039,8 @@ packages: asynckit@0.4.0: resolution: {integrity: sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==} - axios@1.18.1: - resolution: {integrity: sha512-3nTvFlvpn9Zu/RkHUqtc7/+al4UpRW5az71ap5zccp6e8RAYEzhMTecX8Dz1wWDYrPpUoB1HAQEGEAEvUr7S9g==} + axios@1.19.0: + resolution: {integrity: sha512-ht/iuYZXEjFxLH/Hkezgd7m6JKlHHXEUSneaDz8uZe1Gj5QZtCnpyDsckvAiEnT89OEbCLmnte4R4sn7P0EKFw==} axobject-query@4.1.0: resolution: {integrity: sha512-qIj0G9wZbMGNLjLmg1PT6v2mE9AH2zlnADJD/2tC6E00hgmhUOfEB6greHPAfLRSufHqROIUTkw6E+M3lH0PTQ==} @@ -1000,8 +1050,8 @@ packages: resolution: {integrity: sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==} engines: {node: 18 || 20 || >=22} - baseline-browser-mapping@2.11.3: - resolution: {integrity: sha512-sbT0Ui/CZwyAyy7icT1Gw5P1LKRlFaHwaF6tDCW5YHq2X5SeeZFphBuIagopSfwSSZq3sQcbmEL072yphxm7ew==} + baseline-browser-mapping@2.11.11: + resolution: {integrity: sha512-/yImnXwyTvgMkhgekLHok/Rx5vO6E0BmStWlSqKWMVm2a2ITuZ1Tn+9bgLS+gZRdZmWtd8nxuhHpdmCUOWsTQQ==} engines: {node: '>=6.0.0'} hasBin: true @@ -1012,8 +1062,8 @@ packages: '@internationalized/date': ^3.8.1 svelte: ^5.33.0 - brace-expansion@5.0.8: - resolution: {integrity: sha512-JZyDyq3D4AUifKTPOB7DELf6XsB3WdPuNxCtob1vFXPsSXhdAiHBWJ/tJ8HAc9aH84BK+5JFZLNkJKx3G9kzQg==} + brace-expansion@5.0.9: + resolution: {integrity: sha512-ScQ4IuvIEF1TMlP7Zt+vjJ//9zlPb2SDcxWxM3bk8s6t6GGdJ7KO1dCcTidOPJKePW30LE/2cT7wCyPho9/Wxg==} engines: {node: 20 || >=22} browserslist@4.28.7: @@ -1028,6 +1078,10 @@ packages: caniuse-lite@1.0.30001806: resolution: {integrity: sha512-72Cuvd95zbSYPKq6Fhg8eDJRlzgWDf7/mtoZv6Qe/DYNCEBdNxoA3+rZAU2ZhGCpZlns3EssFavaZomckT5Uuw==} + chai@6.2.2: + resolution: {integrity: sha512-NUPRluOfOiTKBKvWPtSD4PhFvWCqOi0BGStNWs57X9js7XGTprSmFoz5F0tWhR4WPjNeR9jXqdC7/UpSJTnlRg==} + engines: {node: '>=18'} + chokidar@4.0.3: resolution: {integrity: sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==} engines: {node: '>= 14.16.0'} @@ -1093,6 +1147,9 @@ packages: devalue@5.8.2: resolution: {integrity: sha512-DObPPAfdtFbXjxLqK8s2Xk9ZuWz5+ZoFEhC7J76es4GU/rEiXwHTmbImoCdyoCOcBH1UF3+Cz6Z2sYD4hyl5TA==} + devalue@5.9.0: + resolution: {integrity: sha512-RWrqdArjvPbsATEhOPUo6Wndc/iWnkWKlhIrdlF3zMMYo/c3CVtoaVAyLtWxz5h8nSlkHzxnzV2uLydPXmtF+A==} + dotenv@17.4.2: resolution: {integrity: sha512-nI4U3TottKAcAD9LLud4Cb7b2QztQMUEfHbvhTH09bqXTxnSie8WnjPALV/WMCrJZ6UV/qHJ6L03OqO3LcdYZw==} engines: {node: '>=12'} @@ -1101,8 +1158,8 @@ packages: resolution: {integrity: sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==} engines: {node: '>= 0.4'} - electron-to-chromium@1.5.396: - resolution: {integrity: sha512-yHiw2Y3C3H9U6TMbOfoWK/BPreiOPXRfTWPBwQBoZG6/8TB6eOPnsy5oaRYuatR7Fw2SJ4kKforgufeo7fq0EQ==} + electron-to-chromium@1.5.399: + resolution: {integrity: sha512-lEcqhErbHjXRvd41rnWLpzbyU/IXfIYo7QwaFWmxGeLiLyY2TBCdHnWY88vB+p3ubnihRypDm66panXl7TylLA==} enhanced-resolve@5.24.3: resolution: {integrity: sha512-PwKooW9JUzh5chmYfHM3IQl5OkK2u2Nm011MgeZrss3JmFraUx/fqrf78kk8GUMYoibx/14MdwTl/1WKkG7TpQ==} @@ -1215,10 +1272,17 @@ packages: estree-walker@2.0.2: resolution: {integrity: sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==} + estree-walker@3.0.3: + resolution: {integrity: sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==} + esutils@2.0.3: resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==} engines: {node: '>=0.10.0'} + expect-type@1.4.0: + resolution: {integrity: sha512-KfYbmpRm0VbLjEvVa9yGwCi9GI34xvi7A/HXYWQO65CSD2u3MczUJSuwXKFIxlGsgBQizV9q5J9NHj4VG0n+pA==} + engines: {node: '>=12.0.0'} + fast-deep-equal@3.1.3: resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} @@ -1297,8 +1361,8 @@ packages: resolution: {integrity: sha512-c/c15i26VrJ4IRt5Z89DnIzCGDn9EcebibhAOjw5ibqEHsE1wLUgkPn9RDmNcUKyU87GeaL633nyJ+pplFR2ZQ==} engines: {node: '>=18'} - globals@17.7.0: - resolution: {integrity: sha512-Czmyns5dUsq4seFBR/Kdydhmo8y9kC79hiSkPn0YcGtNnYWnrgt0vjrSjx9tspoDGWm2CMarffRuLjM4xUz8xg==} + globals@17.9.0: + resolution: {integrity: sha512-m/MvAW61QVU5VDNF1Vj8axt016h8w7L5TU1e9zlab7XIttAT2YAlCwl75K1fOqvMM9apmD7lbCIRhpfkhmxhCg==} engines: {node: '>=18'} globalyzer@0.1.0: @@ -1334,8 +1398,8 @@ packages: resolution: {integrity: sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==} engines: {node: '>= 4'} - import-in-the-middle@3.3.2: - resolution: {integrity: sha512-jTd2FfOgOWOdgjkHuk/1Ms8VKFXkPs15ymYBETw1sAOrO/dY3XeGVRWir9qBbw7pXr0T2eTFwfCZ+N02HmiNGA==} + import-in-the-middle@3.3.3: + resolution: {integrity: sha512-AiohS3H80sXO6owEltjGX+glb7qXaDhBoJb9XcQVH4UI207xu/bDLUcadVKp7Qe576reg9yr/PXZjV5qx8gfbA==} engines: {node: '>=18'} imurmurhash@0.1.4: @@ -1409,8 +1473,8 @@ packages: resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==} engines: {node: '>= 0.8.0'} - libphonenumber-js@1.13.9: - resolution: {integrity: sha512-VNS5vWMM7r0P66BYv+TQJATxExEgLxN+34hfHDVhDkUsGAE4cRg0shCNSLTXNKm7nIUscC7AfB51TjxEeF7msQ==} + libphonenumber-js@1.13.10: + resolution: {integrity: sha512-xJxrdqvbl2rtn2MaUJrUejz8J7/uZNC0V77oks2LxYrO/+ZtVpRmz+fEQMuu6VusnEB1fmpByiLS1WXecOnAnw==} lightningcss-android-arm64@1.32.0: resolution: {integrity: sha512-YK7/ClTt4kAK0vo6w3X+Pnm0D2cf2vPHbhOXdoNti1Ga0al1P4TBZhwjATvjNwLEBCnKvjJc2jQgHXH0NEwlAg==} @@ -1605,6 +1669,10 @@ packages: resolution: {integrity: sha512-MULkVLfKGYDFYejP07QOurDLLQpcjk7Fw+7jXS2R2czRQzR56yHRveU5NDJEOviH+hETZKSkIk5c+T23GjFUMg==} engines: {node: 18 || 20 || >=22} + minimatch@10.2.6: + resolution: {integrity: sha512-vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A==} + engines: {node: 18 || 20 || >=22} + minimist@1.2.8: resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==} @@ -1683,6 +1751,9 @@ packages: resolution: {integrity: sha512-3O/iVVsJAPsOnpwWIeD+d6z/7PmqApyQePUtCndjatj/9I5LylHvt5qluFaBT3I5h3r1ejfR056c+FCv+NnNXg==} engines: {node: 18 || 20 || >=22} + pathe@2.0.3: + resolution: {integrity: sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==} + picocolors@1.1.1: resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==} @@ -1726,6 +1797,10 @@ packages: resolution: {integrity: sha512-g50586zr4bZmwFiTlflMu8E0bDTb5I5gertgwAKmsdUlTQIhZtunzUlD1WSzwcVWPoAVpsrA6vlfCD7oXvRwgg==} engines: {node: ^10 || ^12 || >=14} + postcss@8.5.25: + resolution: {integrity: sha512-DTPx3RWSSnWyzLxQnlH0rJP+EW5ekl16ZU4/psbIhA0e53kJfdgaN5vKM+xP7yJtXVu+nfdVFmlgFDEKAe4Pyw==} + engines: {node: ^10 || ^12 || >=14} + prelude-ls@1.2.1: resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==} engines: {node: '>= 0.8.0'} @@ -1825,8 +1900,8 @@ packages: engines: {node: '>= 0.4'} hasBin: true - rolldown@1.1.5: - resolution: {integrity: sha512-t9z29cJjXf/vxQ8dyhCSpt6H6aSwHTk8cT5I3iy6SMXuFpk5mB6PL6XfC8PCwrPTx93udwKUm9HRteAlTGBLiA==} + rolldown@1.2.1: + resolution: {integrity: sha512-4FKJhg8d3OiyQOA6Q1Q0hoFFpW9/OoX+VsHzpECsdsIZoOArrAK90gl59YK/Z+gnDel45bgJZK03ozH/9bCqEw==} engines: {node: ^20.19.0 || >=22.12.0} hasBin: true @@ -1886,6 +1961,9 @@ packages: resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==} engines: {node: '>=8'} + siginfo@2.0.0: + resolution: {integrity: sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==} + sirv@3.0.2: resolution: {integrity: sha512-2wcC/oGxHis/BoHkkPwldgiPSYcpZK3JU28WoMVv55yHJgcZ8rlXvuG9iZggz+sU1d4bRgIGASwyWqjxu3FM0g==} engines: {node: '>=18'} @@ -1902,6 +1980,12 @@ packages: resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==} engines: {node: '>=0.10.0'} + stackback@0.0.2: + resolution: {integrity: sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==} + + std-env@4.2.0: + resolution: {integrity: sha512-oCUKSupKTHX53EyjDtuZQ64pjLJ6yYCtpmEw0goYxtjG9KpbRe8KAsl2tBUGU9DyMcJ0RwJ8GqJAFzMXcXW1Rw==} + style-to-object@1.0.14: resolution: {integrity: sha512-LIN7rULI0jBscWQYaSswptyderlarFkjQ+t79nzty8tcIAceVomEVlLzH5VP4Cmsv6MtKhs7qaAiwlcp+Mgaxw==} @@ -1909,16 +1993,16 @@ packages: resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==} engines: {node: '>= 0.4'} - svelte-check@4.7.3: - resolution: {integrity: sha512-DHdTCGX62R0fCxBEaT+USdASAnoaRBaaNczkRJl0K7o3WyoCeVUbVxo6fKqpOll/B+WMWCsiFK0eFrJSNBKZIg==} + svelte-check@4.7.4: + resolution: {integrity: sha512-IW9ot9YqAoyv8FvyN+eb4ZTe8zgcKZrJLNYU6dzSKkGwEBsSPc4K7lmQ8bKn8W2YMXM6WDfZSSVOaGtekyUfOQ==} engines: {node: '>= 18.0.0'} hasBin: true peerDependencies: svelte: ^4.0.0 || ^5.0.0-next.0 - typescript: '>=5.0.0' + typescript: ^5.0.0 || ^6.0.0 - svelte-dnd-action@0.9.74: - resolution: {integrity: sha512-zn//d8plF73Y05joRdj0g9S7Z8KY5zoTyzjHtnaJMqQP//6U6smHAHi0ArZWi60bxpoOwo+im8gKhK/M7Eq1pQ==} + svelte-dnd-action@0.9.77: + resolution: {integrity: sha512-HEd4gH1OKKH/MzO5HTGldNpergAU4LyhqLvP4lrcmDpzKAGWbeb0FHB+ie1H+LJ1ZRbbjBHU6T/vYQzM80HSug==} peerDependencies: svelte: '>=3.23.0 || ^5.0.0-next.0' @@ -1958,15 +2042,17 @@ packages: tailwind-merge@3.6.0: resolution: {integrity: sha512-uxL7qAVQriqRQPAyK3pj66VqskWqoZ37PW94jwOTwNfq/z9oyu1V+eqrZqtR2+fCiXdYOZe/Modt8GtvqNzu+w==} - tailwind-variants@3.2.2: - resolution: {integrity: sha512-Mi4kHeMTLvKlM98XPnK+7HoBPmf4gygdFmqQPaDivc3DpYS6aIY6KiG/PgThrGvii5YZJqRsPz0aPyhoFzmZgg==} - engines: {node: '>=16.x', pnpm: '>=7.x'} + tailwind-variants@3.3.0: + resolution: {integrity: sha512-t1QsB42dcwUdaCEArO0tRZcP0nbCcAmJKRYCs7jmwYSFOCXlGqgO8c0TrCYm9OranYmT6i9YOi8LFo2gxmxnow==} + engines: {node: '>=16.9.x', pnpm: '>=7.x'} peerDependencies: tailwind-merge: '>=3.0.0' tailwindcss: '*' peerDependenciesMeta: tailwind-merge: optional: true + tailwindcss: + optional: true tailwindcss@4.3.3: resolution: {integrity: sha512-gOhV3P7ufE62QDGg1zVaTgCR+EtPv92k2nIhVcVKcLmxT1sUBsQGhnZj175j+MqRt4zLF7ic+sCYjfhxMxj7YQ==} @@ -1978,10 +2064,21 @@ packages: tiny-glob@0.2.9: resolution: {integrity: sha512-g/55ssRPUjShh+xkfx9UPDXqhckHEsHr4Vd9zX55oSdGZc/MD0m3sferOkwWtp98bv+kcVfEHtRJgBVJzelrzg==} + tinybench@2.9.0: + resolution: {integrity: sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==} + + tinyexec@1.3.0: + resolution: {integrity: sha512-QKAl9m8gWWGHV8jZcPeym6j+XULi6tOf1mT83WYJ4Lk2ytW/uwAWkrP0uFsdoYMdueVJ0qs26wZ+23xeB4ibNQ==} + engines: {node: '>=18'} + tinyglobby@0.2.17: resolution: {integrity: sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==} engines: {node: '>=12.0.0'} + tinyrainbow@3.1.1: + resolution: {integrity: sha512-yau8yJdTt989Mm0Bd/236QnzEiPf2xLLTqUZRUJOo/3CB078LSwzei343DgtJVmfJKJE3TMINY1u42SQsP6mXw==} + engines: {node: '>=14.0.0'} + totalist@3.0.1: resolution: {integrity: sha512-sf4i37nQ2LBx4m3wB74y+ubopq6W/dIzXg0FDGjsYnZHVa1Da8FH853wlL2gtUhg+xJXjfk3kUZS3BRoQeoQBQ==} engines: {node: '>=6'} @@ -2019,13 +2116,13 @@ packages: util-deprecate@1.0.2: resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==} - vite@8.1.5: - resolution: {integrity: sha512-7ULLwsCdYx/nRyrpiEwvqb5TFHrMVZyBt+rg/OAXT7rgj/z+DtTDyKFeLAdDkubDVDKD8jOsndmy7m55XcfUsw==} + vite@8.2.0: + resolution: {integrity: sha512-pn+CFpM0lwDeKwmOq1ZaBK/9sjorZcgqxki6MbY/jPEVd9vichIlmlD4HmQ5wdP5EgqQCFRaACBxMC7uEGc6lQ==} engines: {node: ^20.19.0 || >=22.12.0} hasBin: true peerDependencies: '@types/node': ^20.19.0 || >=22.12.0 - '@vitejs/devtools': ^0.3.0 + '@vitejs/devtools': ^0.4.0 esbuild: ^0.27.0 || ^0.28.0 jiti: '>=1.21.0' less: ^4.0.0 @@ -2070,6 +2167,47 @@ packages: vite: optional: true + vitest@4.1.10: + resolution: {integrity: sha512-R9jUTe5S4Qb0HCd4TNqpC7oGcrMssMRGXLW80ubjWsW9VH5GF8y1Y0SFLY9AbqSk6nt0PnOx4H4WNJYZ13GUPw==} + engines: {node: ^20.0.0 || ^22.0.0 || >=24.0.0} + hasBin: true + peerDependencies: + '@edge-runtime/vm': '*' + '@opentelemetry/api': ^1.9.0 + '@types/node': ^20.0.0 || ^22.0.0 || >=24.0.0 + '@vitest/browser-playwright': 4.1.10 + '@vitest/browser-preview': 4.1.10 + '@vitest/browser-webdriverio': 4.1.10 + '@vitest/coverage-istanbul': 4.1.10 + '@vitest/coverage-v8': 4.1.10 + '@vitest/ui': 4.1.10 + happy-dom: '*' + jsdom: '*' + vite: ^6.0.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 + webidl-conversions@3.0.1: resolution: {integrity: sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==} @@ -2081,6 +2219,11 @@ packages: engines: {node: '>= 8'} hasBin: true + why-is-node-running@2.3.0: + resolution: {integrity: sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==} + engines: {node: '>=8'} + hasBin: true + word-wrap@1.2.5: resolution: {integrity: sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==} engines: {node: '>=0.10.0'} @@ -2101,7 +2244,7 @@ packages: snapshots: - '@apm-js-collab/code-transformer-bundler-plugins@0.7.1': + '@apm-js-collab/code-transformer-bundler-plugins@0.7.3': dependencies: '@apm-js-collab/code-transformer': 0.18.1 es-module-lexer: 2.3.1 @@ -2136,14 +2279,14 @@ snapshots: '@babel/core@7.29.7': dependencies: '@babel/code-frame': 7.29.7 - '@babel/generator': 7.29.7 + '@babel/generator': 7.29.8 '@babel/helper-compilation-targets': 7.29.7 '@babel/helper-module-transforms': 7.29.7(@babel/core@7.29.7) '@babel/helpers': 7.29.7 - '@babel/parser': 7.29.7 + '@babel/parser': 7.29.8 '@babel/template': 7.29.7 - '@babel/traverse': 7.29.7 - '@babel/types': 7.29.7 + '@babel/traverse': 7.29.8 + '@babel/types': 7.29.8 '@jridgewell/remapping': 2.3.5 convert-source-map: 2.0.0 debug: 4.4.3 @@ -2153,10 +2296,10 @@ snapshots: transitivePeerDependencies: - supports-color - '@babel/generator@7.29.7': + '@babel/generator@7.29.8': dependencies: - '@babel/parser': 7.29.7 - '@babel/types': 7.29.7 + '@babel/parser': 7.29.8 + '@babel/types': 7.29.8 '@jridgewell/gen-mapping': 0.3.13 '@jridgewell/trace-mapping': 0.3.31 jsesc: 3.1.0 @@ -2173,8 +2316,8 @@ snapshots: '@babel/helper-module-imports@7.29.7': dependencies: - '@babel/traverse': 7.29.7 - '@babel/types': 7.29.7 + '@babel/traverse': 7.29.8 + '@babel/types': 7.29.8 transitivePeerDependencies: - supports-color @@ -2183,7 +2326,7 @@ snapshots: '@babel/core': 7.29.7 '@babel/helper-module-imports': 7.29.7 '@babel/helper-validator-identifier': 7.29.7 - '@babel/traverse': 7.29.7 + '@babel/traverse': 7.29.8 transitivePeerDependencies: - supports-color @@ -2196,47 +2339,47 @@ snapshots: '@babel/helpers@7.29.7': dependencies: '@babel/template': 7.29.7 - '@babel/types': 7.29.7 + '@babel/types': 7.29.8 - '@babel/parser@7.29.7': + '@babel/parser@7.29.8': dependencies: - '@babel/types': 7.29.7 + '@babel/types': 7.29.8 '@babel/template@7.29.7': dependencies: '@babel/code-frame': 7.29.7 - '@babel/parser': 7.29.7 - '@babel/types': 7.29.7 + '@babel/parser': 7.29.8 + '@babel/types': 7.29.8 - '@babel/traverse@7.29.7': + '@babel/traverse@7.29.8': dependencies: '@babel/code-frame': 7.29.7 - '@babel/generator': 7.29.7 + '@babel/generator': 7.29.8 '@babel/helper-globals': 7.29.7 - '@babel/parser': 7.29.7 + '@babel/parser': 7.29.8 '@babel/template': 7.29.7 - '@babel/types': 7.29.7 + '@babel/types': 7.29.8 debug: 4.4.3 transitivePeerDependencies: - supports-color - '@babel/types@7.29.7': + '@babel/types@7.29.8': dependencies: '@babel/helper-string-parser': 7.29.7 '@babel/helper-validator-identifier': 7.29.7 - '@emnapi/core@1.11.1': + '@emnapi/core@2.0.0-alpha.3': dependencies: - '@emnapi/wasi-threads': 1.2.2 + '@emnapi/wasi-threads': 2.0.1 tslib: 2.8.1 optional: true - '@emnapi/runtime@1.11.1': + '@emnapi/runtime@2.0.0-alpha.3': dependencies: tslib: 2.8.1 optional: true - '@emnapi/wasi-threads@1.2.2': + '@emnapi/wasi-threads@2.0.1': dependencies: tslib: 2.8.1 optional: true @@ -2308,7 +2451,7 @@ snapshots: '@humanwhocodes/retry@0.4.3': {} - '@internationalized/date@3.12.2': + '@internationalized/date@3.12.3': dependencies: '@swc/helpers': 0.5.23 @@ -2331,14 +2474,14 @@ snapshots: '@jridgewell/resolve-uri': 3.1.2 '@jridgewell/sourcemap-codec': 1.5.5 - '@lucide/svelte@1.27.0(svelte@5.56.8)': + '@lucide/svelte@1.28.0(svelte@5.56.8)': dependencies: svelte: 5.56.8 - '@napi-rs/wasm-runtime@1.1.6(@emnapi/core@1.11.1)(@emnapi/runtime@1.11.1)': + '@napi-rs/wasm-runtime@1.2.2(@emnapi/core@2.0.0-alpha.3)(@emnapi/runtime@2.0.0-alpha.3)': dependencies: - '@emnapi/core': 1.11.1 - '@emnapi/runtime': 1.11.1 + '@emnapi/core': 2.0.0-alpha.3 + '@emnapi/runtime': 2.0.0-alpha.3 '@tybys/wasm-util': 0.10.3 optional: true @@ -2357,7 +2500,7 @@ snapshots: dependencies: '@opentelemetry/api': 1.9.1 '@opentelemetry/api-logs': 0.220.0 - import-in-the-middle: 3.3.2 + import-in-the-middle: 3.3.3 require-in-the-middle: 8.0.1 transitivePeerDependencies: - supports-color @@ -2385,57 +2528,57 @@ snapshots: '@opentelemetry/semantic-conventions@1.43.0': {} - '@oxc-project/types@0.139.0': {} + '@oxc-project/types@0.142.0': {} '@polka/url@1.0.0-next.29': {} - '@rolldown/binding-android-arm64@1.1.5': + '@rolldown/binding-android-arm64@1.2.1': optional: true - '@rolldown/binding-darwin-arm64@1.1.5': + '@rolldown/binding-darwin-arm64@1.2.1': optional: true - '@rolldown/binding-darwin-x64@1.1.5': + '@rolldown/binding-darwin-x64@1.2.1': optional: true - '@rolldown/binding-freebsd-x64@1.1.5': + '@rolldown/binding-freebsd-x64@1.2.1': optional: true - '@rolldown/binding-linux-arm-gnueabihf@1.1.5': + '@rolldown/binding-linux-arm-gnueabihf@1.2.1': optional: true - '@rolldown/binding-linux-arm64-gnu@1.1.5': + '@rolldown/binding-linux-arm64-gnu@1.2.1': optional: true - '@rolldown/binding-linux-arm64-musl@1.1.5': + '@rolldown/binding-linux-arm64-musl@1.2.1': optional: true - '@rolldown/binding-linux-ppc64-gnu@1.1.5': + '@rolldown/binding-linux-ppc64-gnu@1.2.1': optional: true - '@rolldown/binding-linux-s390x-gnu@1.1.5': + '@rolldown/binding-linux-s390x-gnu@1.2.1': optional: true - '@rolldown/binding-linux-x64-gnu@1.1.5': + '@rolldown/binding-linux-x64-gnu@1.2.1': optional: true - '@rolldown/binding-linux-x64-musl@1.1.5': + '@rolldown/binding-linux-x64-musl@1.2.1': optional: true - '@rolldown/binding-openharmony-arm64@1.1.5': + '@rolldown/binding-openharmony-arm64@1.2.1': optional: true - '@rolldown/binding-wasm32-wasi@1.1.5': + '@rolldown/binding-wasm32-wasi@1.2.1': dependencies: - '@emnapi/core': 1.11.1 - '@emnapi/runtime': 1.11.1 - '@napi-rs/wasm-runtime': 1.1.6(@emnapi/core@1.11.1)(@emnapi/runtime@1.11.1) + '@emnapi/core': 2.0.0-alpha.3 + '@emnapi/runtime': 2.0.0-alpha.3 + '@napi-rs/wasm-runtime': 1.2.2(@emnapi/core@2.0.0-alpha.3)(@emnapi/runtime@2.0.0-alpha.3) optional: true - '@rolldown/binding-win32-arm64-msvc@1.1.5': + '@rolldown/binding-win32-arm64-msvc@1.2.1': optional: true - '@rolldown/binding-win32-x64-msvc@1.1.5': + '@rolldown/binding-win32-x64-msvc@1.2.1': optional: true '@rolldown/pluginutils@1.0.1': {} @@ -2558,25 +2701,25 @@ snapshots: '@rollup/rollup-win32-x64-msvc@4.62.2': optional: true - '@sentry/browser-utils@10.68.0': + '@sentry/browser-utils@10.69.0': dependencies: '@sentry/conventions': 0.16.0 - '@sentry/core': 10.68.0 + '@sentry/core': 10.69.0 - '@sentry/browser@10.68.0': + '@sentry/browser@10.69.0': dependencies: - '@sentry/browser-utils': 10.68.0 + '@sentry/browser-utils': 10.69.0 '@sentry/conventions': 0.16.0 - '@sentry/core': 10.68.0 - '@sentry/feedback': 10.68.0 - '@sentry/replay': 10.68.0 - '@sentry/replay-canvas': 10.68.0 + '@sentry/core': 10.69.0 + '@sentry/feedback': 10.69.0 + '@sentry/replay': 10.69.0 + '@sentry/replay-canvas': 10.69.0 - '@sentry/bundler-plugins@10.68.0(rollup@4.62.2)': + '@sentry/bundler-plugins@10.69.0(rollup@4.62.2)': dependencies: '@babel/core': 7.29.7 '@sentry/cli': 2.58.6 - '@sentry/core': 10.68.0 + '@sentry/core': 10.69.0 dotenv: 17.4.2 find-up: 5.0.0 glob: 13.0.6 @@ -2631,103 +2774,103 @@ snapshots: - encoding - supports-color - '@sentry/cloudflare@10.68.0': + '@sentry/cloudflare@10.69.0': dependencies: '@opentelemetry/api': 1.9.1 - '@sentry/core': 10.68.0 - '@sentry/server-utils': 10.68.0 + '@sentry/core': 10.69.0 + '@sentry/server-utils': 10.69.0 magic-string: 0.30.21 transitivePeerDependencies: - supports-color '@sentry/conventions@0.16.0': {} - '@sentry/core@10.68.0': + '@sentry/core@10.69.0': dependencies: '@sentry/conventions': 0.16.0 - '@sentry/feedback@10.68.0': + '@sentry/feedback@10.69.0': dependencies: - '@sentry/core': 10.68.0 + '@sentry/core': 10.69.0 - '@sentry/node-core@10.68.0(@opentelemetry/api@1.9.1)(@opentelemetry/core@2.10.0(@opentelemetry/api@1.9.1))(@opentelemetry/instrumentation@0.220.0(@opentelemetry/api@1.9.1))(@opentelemetry/sdk-trace-base@2.10.0(@opentelemetry/api@1.9.1))': + '@sentry/node-core@10.69.0(@opentelemetry/api@1.9.1)(@opentelemetry/core@2.10.0(@opentelemetry/api@1.9.1))(@opentelemetry/instrumentation@0.220.0(@opentelemetry/api@1.9.1))(@opentelemetry/sdk-trace-base@2.10.0(@opentelemetry/api@1.9.1))': dependencies: '@sentry/conventions': 0.16.0 - '@sentry/core': 10.68.0 - '@sentry/opentelemetry': 10.68.0(@opentelemetry/api@1.9.1)(@opentelemetry/core@2.10.0(@opentelemetry/api@1.9.1))(@opentelemetry/sdk-trace-base@2.10.0(@opentelemetry/api@1.9.1)) - import-in-the-middle: 3.3.2 + '@sentry/core': 10.69.0 + '@sentry/opentelemetry': 10.69.0(@opentelemetry/api@1.9.1)(@opentelemetry/core@2.10.0(@opentelemetry/api@1.9.1))(@opentelemetry/sdk-trace-base@2.10.0(@opentelemetry/api@1.9.1)) + import-in-the-middle: 3.3.3 optionalDependencies: '@opentelemetry/api': 1.9.1 '@opentelemetry/core': 2.10.0(@opentelemetry/api@1.9.1) '@opentelemetry/instrumentation': 0.220.0(@opentelemetry/api@1.9.1) '@opentelemetry/sdk-trace-base': 2.10.0(@opentelemetry/api@1.9.1) - '@sentry/node@10.68.0(@opentelemetry/core@2.10.0(@opentelemetry/api@1.9.1))': + '@sentry/node@10.69.0(@opentelemetry/core@2.10.0(@opentelemetry/api@1.9.1))': dependencies: '@opentelemetry/api': 1.9.1 '@opentelemetry/instrumentation': 0.220.0(@opentelemetry/api@1.9.1) '@opentelemetry/sdk-trace-base': 2.10.0(@opentelemetry/api@1.9.1) '@sentry/conventions': 0.16.0 - '@sentry/core': 10.68.0 - '@sentry/node-core': 10.68.0(@opentelemetry/api@1.9.1)(@opentelemetry/core@2.10.0(@opentelemetry/api@1.9.1))(@opentelemetry/instrumentation@0.220.0(@opentelemetry/api@1.9.1))(@opentelemetry/sdk-trace-base@2.10.0(@opentelemetry/api@1.9.1)) - '@sentry/opentelemetry': 10.68.0(@opentelemetry/api@1.9.1)(@opentelemetry/core@2.10.0(@opentelemetry/api@1.9.1))(@opentelemetry/sdk-trace-base@2.10.0(@opentelemetry/api@1.9.1)) - '@sentry/server-utils': 10.68.0 - import-in-the-middle: 3.3.2 + '@sentry/core': 10.69.0 + '@sentry/node-core': 10.69.0(@opentelemetry/api@1.9.1)(@opentelemetry/core@2.10.0(@opentelemetry/api@1.9.1))(@opentelemetry/instrumentation@0.220.0(@opentelemetry/api@1.9.1))(@opentelemetry/sdk-trace-base@2.10.0(@opentelemetry/api@1.9.1)) + '@sentry/opentelemetry': 10.69.0(@opentelemetry/api@1.9.1)(@opentelemetry/core@2.10.0(@opentelemetry/api@1.9.1))(@opentelemetry/sdk-trace-base@2.10.0(@opentelemetry/api@1.9.1)) + '@sentry/server-utils': 10.69.0 + import-in-the-middle: 3.3.3 transitivePeerDependencies: - '@opentelemetry/core' - '@opentelemetry/exporter-trace-otlp-http' - supports-color - '@sentry/opentelemetry@10.68.0(@opentelemetry/api@1.9.1)(@opentelemetry/core@2.10.0(@opentelemetry/api@1.9.1))(@opentelemetry/sdk-trace-base@2.10.0(@opentelemetry/api@1.9.1))': + '@sentry/opentelemetry@10.69.0(@opentelemetry/api@1.9.1)(@opentelemetry/core@2.10.0(@opentelemetry/api@1.9.1))(@opentelemetry/sdk-trace-base@2.10.0(@opentelemetry/api@1.9.1))': dependencies: '@opentelemetry/api': 1.9.1 '@opentelemetry/core': 2.10.0(@opentelemetry/api@1.9.1) '@opentelemetry/sdk-trace-base': 2.10.0(@opentelemetry/api@1.9.1) '@sentry/conventions': 0.16.0 - '@sentry/core': 10.68.0 + '@sentry/core': 10.69.0 - '@sentry/replay-canvas@10.68.0': + '@sentry/replay-canvas@10.69.0': dependencies: - '@sentry/core': 10.68.0 - '@sentry/replay': 10.68.0 + '@sentry/core': 10.69.0 + '@sentry/replay': 10.69.0 - '@sentry/replay@10.68.0': + '@sentry/replay@10.69.0': dependencies: - '@sentry/browser-utils': 10.68.0 - '@sentry/core': 10.68.0 + '@sentry/browser-utils': 10.69.0 + '@sentry/core': 10.69.0 - '@sentry/server-utils@10.68.0': + '@sentry/server-utils@10.69.0': dependencies: - '@apm-js-collab/code-transformer-bundler-plugins': 0.7.1 + '@apm-js-collab/code-transformer-bundler-plugins': 0.7.3 '@apm-js-collab/tracing-hooks': 0.13.0 '@sentry/conventions': 0.16.0 - '@sentry/core': 10.68.0 + '@sentry/core': 10.69.0 meriyah: 6.1.4 transitivePeerDependencies: - supports-color - '@sentry/svelte@10.68.0(svelte@5.56.8)': + '@sentry/svelte@10.69.0(svelte@5.56.8)': dependencies: - '@sentry/browser': 10.68.0 - '@sentry/core': 10.68.0 + '@sentry/browser': 10.69.0 + '@sentry/core': 10.69.0 magic-string: 0.30.21 svelte: 5.56.8 - '@sentry/sveltekit@10.68.0(@opentelemetry/core@2.10.0(@opentelemetry/api@1.9.1))(@sveltejs/kit@2.70.1(@opentelemetry/api@1.9.1)(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.56.8)(vite@8.1.5(@types/node@25.9.5)(jiti@2.7.0)))(svelte@5.56.8)(typescript@6.0.3)(vite@8.1.5(@types/node@25.9.5)(jiti@2.7.0)))(rollup@4.62.2)(svelte@5.56.8)(vite@8.1.5(@types/node@25.9.5)(jiti@2.7.0))': + '@sentry/sveltekit@10.69.0(@opentelemetry/core@2.10.0(@opentelemetry/api@1.9.1))(@sveltejs/kit@2.70.2(@opentelemetry/api@1.9.1)(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.56.8)(vite@8.2.0(@types/node@25.9.5)(jiti@2.7.0)))(svelte@5.56.8)(typescript@6.0.3)(vite@8.2.0(@types/node@25.9.5)(jiti@2.7.0)))(rollup@4.62.2)(svelte@5.56.8)(vite@8.2.0(@types/node@25.9.5)(jiti@2.7.0))': dependencies: - '@sentry/cloudflare': 10.68.0 + '@sentry/cloudflare': 10.69.0 '@sentry/conventions': 0.16.0 - '@sentry/core': 10.68.0 - '@sentry/node': 10.68.0(@opentelemetry/core@2.10.0(@opentelemetry/api@1.9.1)) - '@sentry/svelte': 10.68.0(svelte@5.56.8) + '@sentry/core': 10.69.0 + '@sentry/node': 10.69.0(@opentelemetry/core@2.10.0(@opentelemetry/api@1.9.1)) + '@sentry/svelte': 10.69.0(svelte@5.56.8) '@sentry/vite-plugin': 5.4.0(rollup@4.62.2) - '@sveltejs/acorn-typescript': 1.0.11(acorn@8.17.0) - '@sveltejs/kit': 2.70.1(@opentelemetry/api@1.9.1)(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.56.8)(vite@8.1.5(@types/node@25.9.5)(jiti@2.7.0)))(svelte@5.56.8)(typescript@6.0.3)(vite@8.1.5(@types/node@25.9.5)(jiti@2.7.0)) - acorn: 8.17.0 + '@sveltejs/acorn-typescript': 1.0.11(acorn@8.18.0) + '@sveltejs/kit': 2.70.2(@opentelemetry/api@1.9.1)(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.56.8)(vite@8.2.0(@types/node@25.9.5)(jiti@2.7.0)))(svelte@5.56.8)(typescript@6.0.3)(vite@8.2.0(@types/node@25.9.5)(jiti@2.7.0)) + acorn: 8.18.0 magic-string: 0.30.21 sorcery: 1.0.0 optionalDependencies: - vite: 8.1.5(@types/node@25.9.5)(jiti@2.7.0) + vite: 8.2.0(@types/node@25.9.5)(jiti@2.7.0) transitivePeerDependencies: - '@cloudflare/workers-types' - '@opentelemetry/core' @@ -2741,7 +2884,7 @@ snapshots: '@sentry/vite-plugin@5.4.0(rollup@4.62.2)': dependencies: - '@sentry/bundler-plugins': 10.68.0(rollup@4.62.2) + '@sentry/bundler-plugins': 10.69.0(rollup@4.62.2) transitivePeerDependencies: - encoding - rollup @@ -2754,24 +2897,28 @@ snapshots: dependencies: acorn: 8.17.0 - '@sveltejs/adapter-node@5.5.7(@sveltejs/kit@2.70.1(@opentelemetry/api@1.9.1)(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.56.8)(vite@8.1.5(@types/node@25.9.5)(jiti@2.7.0)))(svelte@5.56.8)(typescript@6.0.3)(vite@8.1.5(@types/node@25.9.5)(jiti@2.7.0)))': + '@sveltejs/acorn-typescript@1.0.11(acorn@8.18.0)': + dependencies: + acorn: 8.18.0 + + '@sveltejs/adapter-node@5.5.7(@sveltejs/kit@2.70.2(@opentelemetry/api@1.9.1)(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.56.8)(vite@8.2.0(@types/node@25.9.5)(jiti@2.7.0)))(svelte@5.56.8)(typescript@6.0.3)(vite@8.2.0(@types/node@25.9.5)(jiti@2.7.0)))': dependencies: '@rollup/plugin-commonjs': 29.0.3(rollup@4.62.2) '@rollup/plugin-json': 6.1.0(rollup@4.62.2) '@rollup/plugin-node-resolve': 16.0.3(rollup@4.62.2) '@rollup/plugin-replace': 6.0.3(rollup@4.62.2) - '@sveltejs/kit': 2.70.1(@opentelemetry/api@1.9.1)(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.56.8)(vite@8.1.5(@types/node@25.9.5)(jiti@2.7.0)))(svelte@5.56.8)(typescript@6.0.3)(vite@8.1.5(@types/node@25.9.5)(jiti@2.7.0)) + '@sveltejs/kit': 2.70.2(@opentelemetry/api@1.9.1)(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.56.8)(vite@8.2.0(@types/node@25.9.5)(jiti@2.7.0)))(svelte@5.56.8)(typescript@6.0.3)(vite@8.2.0(@types/node@25.9.5)(jiti@2.7.0)) rollup: 4.62.2 - '@sveltejs/kit@2.70.1(@opentelemetry/api@1.9.1)(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.56.8)(vite@8.1.5(@types/node@25.9.5)(jiti@2.7.0)))(svelte@5.56.8)(typescript@6.0.3)(vite@8.1.5(@types/node@25.9.5)(jiti@2.7.0))': + '@sveltejs/kit@2.70.2(@opentelemetry/api@1.9.1)(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.56.8)(vite@8.2.0(@types/node@25.9.5)(jiti@2.7.0)))(svelte@5.56.8)(typescript@6.0.3)(vite@8.2.0(@types/node@25.9.5)(jiti@2.7.0))': dependencies: '@standard-schema/spec': 1.1.0 - '@sveltejs/acorn-typescript': 1.0.11(acorn@8.17.0) - '@sveltejs/vite-plugin-svelte': 7.2.0(svelte@5.56.8)(vite@8.1.5(@types/node@25.9.5)(jiti@2.7.0)) + '@sveltejs/acorn-typescript': 1.0.11(acorn@8.18.0) + '@sveltejs/vite-plugin-svelte': 7.2.0(svelte@5.56.8)(vite@8.2.0(@types/node@25.9.5)(jiti@2.7.0)) '@types/cookie': 0.6.0 - acorn: 8.17.0 + acorn: 8.18.0 cookie: 0.6.0 - devalue: 5.8.2 + devalue: 5.9.0 esm-env: 1.2.2 kleur: 4.1.5 magic-string: 0.30.21 @@ -2779,21 +2926,21 @@ snapshots: set-cookie-parser: 3.1.2 sirv: 3.0.2 svelte: 5.56.8 - vite: 8.1.5(@types/node@25.9.5)(jiti@2.7.0) + vite: 8.2.0(@types/node@25.9.5)(jiti@2.7.0) optionalDependencies: '@opentelemetry/api': 1.9.1 typescript: 6.0.3 '@sveltejs/load-config@0.2.1': {} - '@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.56.8)(vite@8.1.5(@types/node@25.9.5)(jiti@2.7.0))': + '@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.56.8)(vite@8.2.0(@types/node@25.9.5)(jiti@2.7.0))': dependencies: deepmerge: 4.3.1 magic-string: 0.30.21 obug: 2.1.4 svelte: 5.56.8 - vite: 8.1.5(@types/node@25.9.5)(jiti@2.7.0) - vitefu: 1.1.3(vite@8.1.5(@types/node@25.9.5)(jiti@2.7.0)) + vite: 8.2.0(@types/node@25.9.5)(jiti@2.7.0) + vitefu: 1.1.3(vite@8.2.0(@types/node@25.9.5)(jiti@2.7.0)) '@swc/helpers@0.5.23': dependencies: @@ -2865,20 +3012,27 @@ snapshots: postcss-selector-parser: 6.0.10 tailwindcss: 4.3.3 - '@tailwindcss/vite@4.3.3(vite@8.1.5(@types/node@25.9.5)(jiti@2.7.0))': + '@tailwindcss/vite@4.3.3(vite@8.2.0(@types/node@25.9.5)(jiti@2.7.0))': dependencies: '@tailwindcss/node': 4.3.3 '@tailwindcss/oxide': 4.3.3 tailwindcss: 4.3.3 - vite: 8.1.5(@types/node@25.9.5)(jiti@2.7.0) + vite: 8.2.0(@types/node@25.9.5)(jiti@2.7.0) '@tybys/wasm-util@0.10.3': dependencies: tslib: 2.8.1 optional: true + '@types/chai@5.2.3': + dependencies: + '@types/deep-eql': 4.0.2 + assertion-error: 2.0.1 + '@types/cookie@0.6.0': {} + '@types/deep-eql@4.0.2': {} + '@types/esrecurse@4.3.1': {} '@types/estree@1.0.9': {} @@ -2893,12 +3047,55 @@ snapshots: '@types/trusted-types@2.0.7': {} + '@vitest/expect@4.1.10': + dependencies: + '@standard-schema/spec': 1.1.0 + '@types/chai': 5.2.3 + '@vitest/spy': 4.1.10 + '@vitest/utils': 4.1.10 + chai: 6.2.2 + tinyrainbow: 3.1.1 + + '@vitest/mocker@4.1.10(vite@8.2.0(@types/node@25.9.5)(jiti@2.7.0))': + dependencies: + '@vitest/spy': 4.1.10 + estree-walker: 3.0.3 + magic-string: 0.30.21 + optionalDependencies: + vite: 8.2.0(@types/node@25.9.5)(jiti@2.7.0) + + '@vitest/pretty-format@4.1.10': + dependencies: + tinyrainbow: 3.1.1 + + '@vitest/runner@4.1.10': + dependencies: + '@vitest/utils': 4.1.10 + pathe: 2.0.3 + + '@vitest/snapshot@4.1.10': + dependencies: + '@vitest/pretty-format': 4.1.10 + '@vitest/utils': 4.1.10 + magic-string: 0.30.21 + pathe: 2.0.3 + + '@vitest/spy@4.1.10': {} + + '@vitest/utils@4.1.10': + dependencies: + '@vitest/pretty-format': 4.1.10 + convert-source-map: 2.0.0 + tinyrainbow: 3.1.1 + acorn-jsx@5.3.2(acorn@8.17.0): dependencies: acorn: 8.17.0 acorn@8.17.0: {} + acorn@8.18.0: {} + agent-base@6.0.2: dependencies: debug: 4.4.3 @@ -2914,11 +3111,13 @@ snapshots: aria-query@5.3.1: {} + assertion-error@2.0.1: {} + astring@1.9.0: {} asynckit@0.4.0: {} - axios@1.18.1(debug@4.4.3): + axios@1.19.0(debug@4.4.3): dependencies: follow-redirects: 1.16.0(debug@4.4.3) form-data: 4.0.6 @@ -2932,30 +3131,30 @@ snapshots: balanced-match@4.0.4: {} - baseline-browser-mapping@2.11.3: {} + baseline-browser-mapping@2.11.11: {} - bits-ui@2.18.1(@internationalized/date@3.12.2)(@sveltejs/kit@2.70.1(@opentelemetry/api@1.9.1)(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.56.8)(vite@8.1.5(@types/node@25.9.5)(jiti@2.7.0)))(svelte@5.56.8)(typescript@6.0.3)(vite@8.1.5(@types/node@25.9.5)(jiti@2.7.0)))(svelte@5.56.8): + bits-ui@2.18.1(@internationalized/date@3.12.3)(@sveltejs/kit@2.70.2(@opentelemetry/api@1.9.1)(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.56.8)(vite@8.2.0(@types/node@25.9.5)(jiti@2.7.0)))(svelte@5.56.8)(typescript@6.0.3)(vite@8.2.0(@types/node@25.9.5)(jiti@2.7.0)))(svelte@5.56.8): dependencies: '@floating-ui/core': 1.8.0 '@floating-ui/dom': 1.8.0 - '@internationalized/date': 3.12.2 + '@internationalized/date': 3.12.3 esm-env: 1.2.2 - runed: 0.35.1(@sveltejs/kit@2.70.1(@opentelemetry/api@1.9.1)(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.56.8)(vite@8.1.5(@types/node@25.9.5)(jiti@2.7.0)))(svelte@5.56.8)(typescript@6.0.3)(vite@8.1.5(@types/node@25.9.5)(jiti@2.7.0)))(svelte@5.56.8) + runed: 0.35.1(@sveltejs/kit@2.70.2(@opentelemetry/api@1.9.1)(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.56.8)(vite@8.2.0(@types/node@25.9.5)(jiti@2.7.0)))(svelte@5.56.8)(typescript@6.0.3)(vite@8.2.0(@types/node@25.9.5)(jiti@2.7.0)))(svelte@5.56.8) svelte: 5.56.8 - svelte-toolbelt: 0.10.6(@sveltejs/kit@2.70.1(@opentelemetry/api@1.9.1)(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.56.8)(vite@8.1.5(@types/node@25.9.5)(jiti@2.7.0)))(svelte@5.56.8)(typescript@6.0.3)(vite@8.1.5(@types/node@25.9.5)(jiti@2.7.0)))(svelte@5.56.8) + svelte-toolbelt: 0.10.6(@sveltejs/kit@2.70.2(@opentelemetry/api@1.9.1)(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.56.8)(vite@8.2.0(@types/node@25.9.5)(jiti@2.7.0)))(svelte@5.56.8)(typescript@6.0.3)(vite@8.2.0(@types/node@25.9.5)(jiti@2.7.0)))(svelte@5.56.8) tabbable: 6.5.0 transitivePeerDependencies: - '@sveltejs/kit' - brace-expansion@5.0.8: + brace-expansion@5.0.9: dependencies: balanced-match: 4.0.4 browserslist@4.28.7: dependencies: - baseline-browser-mapping: 2.11.3 + baseline-browser-mapping: 2.11.11 caniuse-lite: 1.0.30001806 - electron-to-chromium: 1.5.396 + electron-to-chromium: 1.5.399 node-releases: 2.0.51 update-browserslist-db: 1.2.3(browserslist@4.28.7) @@ -2966,6 +3165,8 @@ snapshots: caniuse-lite@1.0.30001806: {} + chai@6.2.2: {} + chokidar@4.0.3: dependencies: readdirp: 4.1.2 @@ -3008,6 +3209,8 @@ snapshots: devalue@5.8.2: {} + devalue@5.9.0: {} + dotenv@17.4.2: {} dunder-proto@1.0.1: @@ -3016,7 +3219,7 @@ snapshots: es-errors: 1.3.0 gopd: 1.2.0 - electron-to-chromium@1.5.396: {} + electron-to-chromium@1.5.399: {} enhanced-resolve@5.24.3: dependencies: @@ -3151,8 +3354,14 @@ snapshots: estree-walker@2.0.2: {} + estree-walker@3.0.3: + dependencies: + '@types/estree': 1.0.9 + esutils@2.0.3: {} + expect-type@1.4.0: {} + fast-deep-equal@3.1.3: {} fast-json-stable-stringify@2.1.0: {} @@ -3222,13 +3431,13 @@ snapshots: glob@13.0.6: dependencies: - minimatch: 10.2.5 + minimatch: 10.2.6 minipass: 7.1.3 path-scurry: 2.0.2 globals@16.5.0: {} - globals@17.7.0: {} + globals@17.9.0: {} globalyzer@0.1.0: {} @@ -3257,7 +3466,7 @@ snapshots: ignore@5.3.2: {} - import-in-the-middle@3.3.2: + import-in-the-middle@3.3.3: dependencies: cjs-module-lexer: 2.2.0 es-module-lexer: 2.3.1 @@ -3316,7 +3525,7 @@ snapshots: prelude-ls: 1.2.1 type-check: 0.4.0 - libphonenumber-js@1.13.9: {} + libphonenumber-js@1.13.10: {} lightningcss-android-arm64@1.32.0: optional: true @@ -3448,7 +3657,11 @@ snapshots: minimatch@10.2.5: dependencies: - brace-expansion: 5.0.8 + brace-expansion: 5.0.9 + + minimatch@10.2.6: + dependencies: + brace-expansion: 5.0.9 minimist@1.2.8: {} @@ -3508,6 +3721,8 @@ snapshots: lru-cache: 11.5.2 minipass: 7.1.3 + pathe@2.0.3: {} + picocolors@1.1.1: {} picomatch@4.0.5: {} @@ -3543,6 +3758,12 @@ snapshots: picocolors: 1.1.1 source-map-js: 1.2.1 + postcss@8.5.25: + dependencies: + nanoid: 3.3.16 + picocolors: 1.1.1 + source-map-js: 1.2.1 + prelude-ls@1.2.1: {} prettier-plugin-svelte@4.1.1(prettier@3.9.6)(svelte@5.56.8): @@ -3582,26 +3803,26 @@ snapshots: path-parse: 1.0.7 supports-preserve-symlinks-flag: 1.0.0 - rolldown@1.1.5: + rolldown@1.2.1: dependencies: - '@oxc-project/types': 0.139.0 + '@oxc-project/types': 0.142.0 '@rolldown/pluginutils': 1.0.1 optionalDependencies: - '@rolldown/binding-android-arm64': 1.1.5 - '@rolldown/binding-darwin-arm64': 1.1.5 - '@rolldown/binding-darwin-x64': 1.1.5 - '@rolldown/binding-freebsd-x64': 1.1.5 - '@rolldown/binding-linux-arm-gnueabihf': 1.1.5 - '@rolldown/binding-linux-arm64-gnu': 1.1.5 - '@rolldown/binding-linux-arm64-musl': 1.1.5 - '@rolldown/binding-linux-ppc64-gnu': 1.1.5 - '@rolldown/binding-linux-s390x-gnu': 1.1.5 - '@rolldown/binding-linux-x64-gnu': 1.1.5 - '@rolldown/binding-linux-x64-musl': 1.1.5 - '@rolldown/binding-openharmony-arm64': 1.1.5 - '@rolldown/binding-wasm32-wasi': 1.1.5 - '@rolldown/binding-win32-arm64-msvc': 1.1.5 - '@rolldown/binding-win32-x64-msvc': 1.1.5 + '@rolldown/binding-android-arm64': 1.2.1 + '@rolldown/binding-darwin-arm64': 1.2.1 + '@rolldown/binding-darwin-x64': 1.2.1 + '@rolldown/binding-freebsd-x64': 1.2.1 + '@rolldown/binding-linux-arm-gnueabihf': 1.2.1 + '@rolldown/binding-linux-arm64-gnu': 1.2.1 + '@rolldown/binding-linux-arm64-musl': 1.2.1 + '@rolldown/binding-linux-ppc64-gnu': 1.2.1 + '@rolldown/binding-linux-s390x-gnu': 1.2.1 + '@rolldown/binding-linux-x64-gnu': 1.2.1 + '@rolldown/binding-linux-x64-musl': 1.2.1 + '@rolldown/binding-openharmony-arm64': 1.2.1 + '@rolldown/binding-wasm32-wasi': 1.2.1 + '@rolldown/binding-win32-arm64-msvc': 1.2.1 + '@rolldown/binding-win32-x64-msvc': 1.2.1 rollup@4.62.2: dependencies: @@ -3649,14 +3870,14 @@ snapshots: esm-env: 1.2.2 svelte: 5.56.8 - runed@0.35.1(@sveltejs/kit@2.70.1(@opentelemetry/api@1.9.1)(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.56.8)(vite@8.1.5(@types/node@25.9.5)(jiti@2.7.0)))(svelte@5.56.8)(typescript@6.0.3)(vite@8.1.5(@types/node@25.9.5)(jiti@2.7.0)))(svelte@5.56.8): + runed@0.35.1(@sveltejs/kit@2.70.2(@opentelemetry/api@1.9.1)(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.56.8)(vite@8.2.0(@types/node@25.9.5)(jiti@2.7.0)))(svelte@5.56.8)(typescript@6.0.3)(vite@8.2.0(@types/node@25.9.5)(jiti@2.7.0)))(svelte@5.56.8): dependencies: dequal: 2.0.3 esm-env: 1.2.2 lz-string: 1.5.0 svelte: 5.56.8 optionalDependencies: - '@sveltejs/kit': 2.70.1(@opentelemetry/api@1.9.1)(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.56.8)(vite@8.1.5(@types/node@25.9.5)(jiti@2.7.0)))(svelte@5.56.8)(typescript@6.0.3)(vite@8.1.5(@types/node@25.9.5)(jiti@2.7.0)) + '@sveltejs/kit': 2.70.2(@opentelemetry/api@1.9.1)(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.56.8)(vite@8.2.0(@types/node@25.9.5)(jiti@2.7.0)))(svelte@5.56.8)(typescript@6.0.3)(vite@8.2.0(@types/node@25.9.5)(jiti@2.7.0)) sade@1.8.1: dependencies: @@ -3676,6 +3897,8 @@ snapshots: shebang-regex@3.0.0: {} + siginfo@2.0.0: {} + sirv@3.0.2: dependencies: '@polka/url': 1.0.0-next.29 @@ -3692,13 +3915,17 @@ snapshots: source-map@0.6.1: {} + stackback@0.0.2: {} + + std-env@4.2.0: {} + style-to-object@1.0.14: dependencies: inline-style-parser: 0.2.7 supports-preserve-symlinks-flag@1.0.0: {} - svelte-check@4.7.3(picomatch@4.0.5)(svelte@5.56.8)(typescript@6.0.3): + svelte-check@4.7.4(picomatch@4.0.5)(svelte@5.56.8)(typescript@6.0.3): dependencies: '@jridgewell/trace-mapping': 0.3.31 '@sveltejs/load-config': 0.2.1 @@ -3711,7 +3938,7 @@ snapshots: transitivePeerDependencies: - picomatch - svelte-dnd-action@0.9.74(svelte@5.56.8): + svelte-dnd-action@0.9.77(svelte@5.56.8): dependencies: svelte: 5.56.8 @@ -3732,10 +3959,10 @@ snapshots: runed: 0.28.0(svelte@5.56.8) svelte: 5.56.8 - svelte-toolbelt@0.10.6(@sveltejs/kit@2.70.1(@opentelemetry/api@1.9.1)(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.56.8)(vite@8.1.5(@types/node@25.9.5)(jiti@2.7.0)))(svelte@5.56.8)(typescript@6.0.3)(vite@8.1.5(@types/node@25.9.5)(jiti@2.7.0)))(svelte@5.56.8): + svelte-toolbelt@0.10.6(@sveltejs/kit@2.70.2(@opentelemetry/api@1.9.1)(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.56.8)(vite@8.2.0(@types/node@25.9.5)(jiti@2.7.0)))(svelte@5.56.8)(typescript@6.0.3)(vite@8.2.0(@types/node@25.9.5)(jiti@2.7.0)))(svelte@5.56.8): dependencies: clsx: 2.1.1 - runed: 0.35.1(@sveltejs/kit@2.70.1(@opentelemetry/api@1.9.1)(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.56.8)(vite@8.1.5(@types/node@25.9.5)(jiti@2.7.0)))(svelte@5.56.8)(typescript@6.0.3)(vite@8.1.5(@types/node@25.9.5)(jiti@2.7.0)))(svelte@5.56.8) + runed: 0.35.1(@sveltejs/kit@2.70.2(@opentelemetry/api@1.9.1)(@sveltejs/vite-plugin-svelte@7.2.0(svelte@5.56.8)(vite@8.2.0(@types/node@25.9.5)(jiti@2.7.0)))(svelte@5.56.8)(typescript@6.0.3)(vite@8.2.0(@types/node@25.9.5)(jiti@2.7.0)))(svelte@5.56.8) style-to-object: 1.0.14 svelte: 5.56.8 transitivePeerDependencies: @@ -3773,11 +4000,10 @@ snapshots: tailwind-merge@3.6.0: {} - tailwind-variants@3.2.2(tailwind-merge@3.6.0)(tailwindcss@4.3.3): - dependencies: - tailwindcss: 4.3.3 + tailwind-variants@3.3.0(tailwind-merge@3.6.0)(tailwindcss@4.3.3): optionalDependencies: tailwind-merge: 3.6.0 + tailwindcss: 4.3.3 tailwindcss@4.3.3: {} @@ -3788,11 +4014,17 @@ snapshots: globalyzer: 0.1.0 globrex: 0.1.2 + tinybench@2.9.0: {} + + tinyexec@1.3.0: {} + tinyglobby@0.2.17: dependencies: fdir: 6.5.0(picomatch@4.0.5) picomatch: 4.0.5 + tinyrainbow@3.1.1: {} + totalist@3.0.1: {} tr46@0.0.3: {} @@ -3821,21 +4053,49 @@ snapshots: util-deprecate@1.0.2: {} - vite@8.1.5(@types/node@25.9.5)(jiti@2.7.0): + vite@8.2.0(@types/node@25.9.5)(jiti@2.7.0): dependencies: lightningcss: 1.33.0 picomatch: 4.0.5 - postcss: 8.5.23 - rolldown: 1.1.5 + postcss: 8.5.25 + rolldown: 1.2.1 tinyglobby: 0.2.17 optionalDependencies: '@types/node': 25.9.5 fsevents: 2.3.3 jiti: 2.7.0 - vitefu@1.1.3(vite@8.1.5(@types/node@25.9.5)(jiti@2.7.0)): + vitefu@1.1.3(vite@8.2.0(@types/node@25.9.5)(jiti@2.7.0)): optionalDependencies: - vite: 8.1.5(@types/node@25.9.5)(jiti@2.7.0) + vite: 8.2.0(@types/node@25.9.5)(jiti@2.7.0) + + vitest@4.1.10(@opentelemetry/api@1.9.1)(@types/node@25.9.5)(vite@8.2.0(@types/node@25.9.5)(jiti@2.7.0)): + dependencies: + '@vitest/expect': 4.1.10 + '@vitest/mocker': 4.1.10(vite@8.2.0(@types/node@25.9.5)(jiti@2.7.0)) + '@vitest/pretty-format': 4.1.10 + '@vitest/runner': 4.1.10 + '@vitest/snapshot': 4.1.10 + '@vitest/spy': 4.1.10 + '@vitest/utils': 4.1.10 + es-module-lexer: 2.3.1 + expect-type: 1.4.0 + magic-string: 0.30.21 + obug: 2.1.4 + pathe: 2.0.3 + picomatch: 4.0.5 + std-env: 4.2.0 + tinybench: 2.9.0 + tinyexec: 1.3.0 + tinyglobby: 0.2.17 + tinyrainbow: 3.1.1 + vite: 8.2.0(@types/node@25.9.5)(jiti@2.7.0) + why-is-node-running: 2.3.0 + optionalDependencies: + '@opentelemetry/api': 1.9.1 + '@types/node': 25.9.5 + transitivePeerDependencies: + - msw webidl-conversions@3.0.1: {} @@ -3848,6 +4108,11 @@ snapshots: dependencies: isexe: 2.0.0 + why-is-node-running@2.3.0: + dependencies: + siginfo: 2.0.0 + stackback: 0.0.2 + word-wrap@1.2.5: {} yallist@3.1.1: {} diff --git a/frontend/pnpm-workspace.yaml b/frontend/pnpm-workspace.yaml index 5a01799a..e97ab424 100644 --- a/frontend/pnpm-workspace.yaml +++ b/frontend/pnpm-workspace.yaml @@ -2,3 +2,8 @@ allowBuilds: '@sentry/cli': true onlyBuiltDependencies: - '@sentry/cli' +overrides: + # GHSA-rgw5-rvv9-x895 (high): DoS via unbounded intermediate arrays. + # Only reachable through dev tooling (eslint, @sentry/vite-plugin), but the + # transitive parents still ask for a vulnerable range, so force the patch. + 'brace-expansion@>=4.0.0 <5.0.9': '^5.0.9' diff --git a/frontend/src/lib/components/notifications/Bell.svelte b/frontend/src/lib/components/notifications/Bell.svelte index 4b28eb80..1389bf14 100644 --- a/frontend/src/lib/components/notifications/Bell.svelte +++ b/frontend/src/lib/components/notifications/Bell.svelte @@ -8,12 +8,12 @@ let open = $state(false); $effect(() => { - notifications.startStream(); - return () => notifications.stopStream(); + notifications.start(); + return () => notifications.stop(); }); - // Refresh on first open in case the stream missed any messages while - // we were initialising. + // Opening the panel is an explicit "show me now", so don't make the user + // wait out the poll interval. $effect(() => { if (open) notifications.fetch(); }); diff --git a/frontend/src/lib/server/v2/business-hours.js b/frontend/src/lib/server/v2/business-hours.js index 77eea31b..9819058f 100644 --- a/frontend/src/lib/server/v2/business-hours.js +++ b/frontend/src/lib/server/v2/business-hours.js @@ -12,11 +12,27 @@ * so fold the flat fields into that array here and trim the seconds. Holidays * already arrive as `{ id, date, name }`. * - * Read-only page: "Edit hours" / "Add holiday" are deferred builders (the - * backend has admin PUT/POST/DELETE endpoints, but no form is wired yet), so - * there is no write path here. + * WRITE PATHS, AND WHO MAY USE THEM + * `updateBusinessHours` runs the fold above backwards: `unfoldDays` turns the + * page's `days` array back into the fourteen flat fields, Monday-first, null + * for a closed day. It PUTs the calendar's OWN url, `/business-hours/calendar/ + * /`, not the collection path this module's read uses; `BusinessCalendarView.put` + * is `partial=True` and admin-only, and `is_default` is read-only on + * `BusinessCalendarSerializer`, so it is never part of the outgoing body. + * `addHoliday` and `removeHoliday` write the holiday sub-resource, + * `/business-hours/calendar//holidays/` and its `/` detail, also + * admin-only. A holiday add is idempotent on date: posting a date already on + * the calendar returns the existing row with 200, not 201, and creates + * nothing new; that is a normal outcome, not a failure to surface. A holiday + * removal is a hard delete, the row is gone and the day counts as working + * time again immediately. All three fail with 403 and + * `{"error": "Only admins can update business hours."}` for a non-admin; + * `can_edit` below only decides whether the edit controls are offered, since + * the backend re-derives admin status from the request's own profile and is + * what actually refuses. */ import { apiRequest } from '$lib/api-helpers.js'; +import { viewerRole } from './organization.js'; /** Monday-first weekday label ↔ the model's field prefix. */ const WEEKDAYS = [ @@ -36,7 +52,7 @@ function toHm(value) { /** * @param {{ cookies: import('@sveltejs/kit').Cookies }} event - * @returns {Promise<{ calendar: any }>} + * @returns {Promise<{ calendar: any, can_edit: boolean }>} */ export async function getBusinessHours({ cookies }) { const cal = await apiRequest('/business-hours/calendar/', {}, { cookies }); @@ -56,6 +72,109 @@ export async function getBusinessHours({ cookies }) { name: h.name, date: h.date })) - } + }, + // A display hint decoded from the JWT `role` claim, deciding only whether + // the page offers "Edit hours" / "Add holiday". `BusinessCalendarView.put` + // and the holiday views re-derive admin status from `request.profile` + // server-side, and that is what actually refuses a non-admin's write. + can_edit: viewerRole(cookies) === 'ADMIN' }; } + +/** + * Fold the page's `days` array back into the model's fourteen flat fields. + * + * `getBusinessHours` above turns `monday_open` and the rest into + * `days: [{ day, open, close }]` with "HH:MM" times; this is that in + * reverse. A closed day is both fields null. One field null and the other + * set stores a half-open day that the SLA clock reads as nonsense. + * `BusinessCalendarSerializer.validate()` is the real backstop: it already + * refuses a half-open day with a 400 (`(open_val is None) != (close_val is + * None)`). This client-side check exists only to name the day in the + * message, instead of surfacing the serializer's generic per-field error. + * + * @param {{ day: string, open: string | null, close: string | null }[]} days + */ +function unfoldDays(days) { + /** @type {Record} */ + const flat = {}; + for (const [label, key] of WEEKDAYS) { + const entry = days.find((d) => d.day === label); + const open = entry?.open || null; + const close = entry?.close || null; + if (Boolean(open) !== Boolean(close)) { + throw new Error(`${label} needs both an opening and a closing time, or neither.`); + } + flat[`${key}_open`] = open; + flat[`${key}_close`] = close; + } + return flat; +} + +/** + * Save the week plus the calendar's name and timezone. + * + * PUTs the calendar's own detail url, not the collection path + * `getBusinessHours` reads from; `calendar.id` survives that read's reshape, + * so the caller always has it. `is_default` is read-only on + * `BusinessCalendarSerializer` and is deliberately never part of the body. + * + * @param {{ cookies: import('@sveltejs/kit').Cookies }} event + * @param {string} calendarId + * @param {{ day: string, open: string | null, close: string | null }[]} days + * @param {{ name: string, timezone: string, [key: string]: unknown }} meta caller may pass + * extra fields (e.g. `is_default`, read off the loaded calendar); only + * `name` and `timezone` are ever read out of it + */ +export async function updateBusinessHours({ cookies }, calendarId, days, meta) { + if (!calendarId) throw new Error('Which calendar? No calendar id was given.'); + const body = { ...unfoldDays(days), name: meta.name, timezone: meta.timezone }; + return await apiRequest( + `/business-hours/calendar/${calendarId}/`, + { method: 'PUT', body }, + { cookies } + ); +} + +/** + * Add a holiday to a calendar. + * + * `POST /business-hours/calendar//holidays/` is idempotent on `date`: + * adding a date already on this calendar returns the existing row with + * HTTP 200, not 201, and creates no duplicate. That is a normal outcome, not + * an error, so callers should not treat it as one and this module does not + * pre-check for an existing date on the client. + * + * @param {{ cookies: import('@sveltejs/kit').Cookies }} event + * @param {string} calendarId + * @param {{ date: string, name: string }} values + */ +export async function addHoliday({ cookies }, calendarId, values) { + if (!values?.date) throw new Error('A holiday needs a date.'); + const body = { date: values.date, name: values.name }; + return await apiRequest( + `/business-hours/calendar/${calendarId}/holidays/`, + { method: 'POST', body }, + { cookies } + ); +} + +/** + * Remove a holiday. + * + * `BusinessHolidayDetailView.delete` is a hard delete: the row is gone, not + * flagged off, and the day it named counts as working time again as soon as + * the request succeeds. + * + * @param {{ cookies: import('@sveltejs/kit').Cookies }} event + * @param {string} calendarId + * @param {string} holidayId + */ +export async function removeHoliday({ cookies }, calendarId, holidayId) { + if (!holidayId) throw new Error('Which holiday? No holiday id was given.'); + return await apiRequest( + `/business-hours/calendar/${calendarId}/holidays/${holidayId}/`, + { method: 'DELETE' }, + { cookies } + ); +} diff --git a/frontend/src/lib/server/v2/business-hours.test.js b/frontend/src/lib/server/v2/business-hours.test.js new file mode 100644 index 00000000..04edcc43 --- /dev/null +++ b/frontend/src/lib/server/v2/business-hours.test.js @@ -0,0 +1,104 @@ +import { describe, it, expect, vi, beforeEach } from 'vitest'; + +const apiRequest = vi.fn(); +vi.mock('$lib/api-helpers.js', () => ({ apiRequest: (...a) => apiRequest(...a) })); + +const { updateBusinessHours, addHoliday, removeHoliday } = + await import('$lib/server/v2/business-hours.js'); + +const event = /** @type {any} */ ({ cookies: { get: () => 'token' } }); + +const week = [ + { day: 'Monday', open: '09:00', close: '17:00' }, + { day: 'Tuesday', open: '09:00', close: '17:00' }, + { day: 'Wednesday', open: '09:00', close: '17:00' }, + { day: 'Thursday', open: '09:00', close: '17:00' }, + { day: 'Friday', open: '09:00', close: '17:00' }, + { day: 'Saturday', open: null, close: null }, + { day: 'Sunday', open: null, close: null } +]; + +describe('updateBusinessHours', () => { + beforeEach(() => { + apiRequest.mockReset(); + }); + + it('unfolds the days array back into the fourteen flat fields', async () => { + apiRequest.mockResolvedValue({}); + + await updateBusinessHours(event, 'cal1', week, { name: 'Support', timezone: 'Asia/Kolkata' }); + + const [endpoint, options] = apiRequest.mock.calls[0]; + // The detail URL, not the collection path the read uses. + expect(endpoint).toBe('/business-hours/calendar/cal1/'); + expect(options.method).toBe('PUT'); + expect(options.body.monday_open).toBe('09:00'); + expect(options.body.friday_close).toBe('17:00'); + // A closed day is both fields null, never one of them. + expect(options.body.saturday_open).toBeNull(); + expect(options.body.saturday_close).toBeNull(); + expect(options.body.name).toBe('Support'); + expect(options.body.timezone).toBe('Asia/Kolkata'); + }); + + it('never sends is_default, which the serializer marks read-only', async () => { + apiRequest.mockResolvedValue({}); + await updateBusinessHours(event, 'cal1', week, { + name: 'Support', + timezone: 'UTC', + is_default: false + }); + expect(apiRequest.mock.calls[0][1].body.is_default).toBeUndefined(); + }); + + it('rejects a day with an open but no close, naming the day', async () => { + const broken = week.map((d) => (d.day === 'Wednesday' ? { ...d, close: null } : d)); + await expect( + updateBusinessHours(event, 'cal1', broken, { name: 'S', timezone: 'UTC' }) + ).rejects.toThrow(/Wednesday/); + expect(apiRequest).not.toHaveBeenCalled(); + }); + + it('refuses an empty calendar id before making a request', async () => { + await expect( + updateBusinessHours(event, '', week, { name: 'S', timezone: 'UTC' }) + ).rejects.toThrow(/calendar/i); + expect(apiRequest).not.toHaveBeenCalled(); + }); +}); + +describe('addHoliday', () => { + beforeEach(() => { + apiRequest.mockReset(); + }); + + it('POSTs date and name to the calendar sub-resource', async () => { + apiRequest.mockResolvedValue({ id: 'h1', date: '2026-12-25', name: 'Christmas' }); + + await addHoliday(event, 'cal1', { date: '2026-12-25', name: 'Christmas' }); + + const [endpoint, options] = apiRequest.mock.calls[0]; + expect(endpoint).toBe('/business-hours/calendar/cal1/holidays/'); + expect(options.method).toBe('POST'); + expect(options.body).toEqual({ date: '2026-12-25', name: 'Christmas' }); + }); + + it('rejects a missing date before making a request', async () => { + await expect(addHoliday(event, 'cal1', { date: '', name: 'X' })).rejects.toThrow(/date/i); + expect(apiRequest).not.toHaveBeenCalled(); + }); +}); + +describe('removeHoliday', () => { + beforeEach(() => { + apiRequest.mockReset(); + }); + + it('DELETEs the holiday under its calendar', async () => { + apiRequest.mockResolvedValue(null); + await removeHoliday(event, 'cal1', 'h1'); + const [endpoint, options] = apiRequest.mock.calls[0]; + expect(endpoint).toBe('/business-hours/calendar/cal1/holidays/h1/'); + expect(options.method).toBe('DELETE'); + }); +}); diff --git a/frontend/src/lib/server/v2/custom-fields.js b/frontend/src/lib/server/v2/custom-fields.js index 9c6207fa..489fdb59 100644 --- a/frontend/src/lib/server/v2/custom-fields.js +++ b/frontend/src/lib/server/v2/custom-fields.js @@ -8,15 +8,26 @@ * `totals` block { count, active, models_extended, required_with_gaps } for the * stat cards. Both are org-scoped server-side; the page never counts records. * - * Read-only page: "New field" is a deferred builder, and the rows have no - * inline edit/toggle controls. No write path here. The page groups by - * target_model and orders by display_order itself. + * Create, edit, turn off and turn back on are all wired below. `key`, + * `target_model` and `field_type` are only ever sent on create: values live in + * each record's `custom_fields` JSON keyed by `key` (see the module docstring + * in `backend/common/custom_fields.py`), so changing `key` orphans them, + * changing `target_model` leaves them on the old entity, and changing + * `field_type` reinterprets values written under the old one. + * `CustomFieldDefinitionSerializer.validate()` freezes all three server-side + * too; this module just avoids offering the doomed edit in the first place. + * "Turn off" is `DELETE /custom-fields//`, a soft delete + * (`CustomFieldDefinitionDetailView.delete` flips `is_active`, never removes + * the row or the values on records that already carry it). "Turn on" is the + * same `updateCustomField` PUT with only `is_active: true`, since the + * detail view has no separate reactivate endpoint. */ import { apiRequest } from '$lib/api-helpers.js'; +import { viewerRole } from './organization.js'; /** * @param {{ cookies: import('@sveltejs/kit').Cookies }} event - * @returns {Promise<{ fields: any[], totals: any }>} + * @returns {Promise<{ fields: any[], totals: any, can_edit: boolean }>} */ export async function getCustomFields({ cookies }) { const resp = await apiRequest('/custom-fields/', {}, { cookies }); @@ -27,6 +38,113 @@ export async function getCustomFields({ cookies }) { active: 0, models_extended: 0, required_with_gaps: 0 - } + }, + can_edit: viewerRole(cookies) === 'ADMIN' }; } + +/** The fields the serializer accepts on create. `org` is set from the JWT + * server-side and `records_missing_value` is computed, so neither appears. */ +const CREATE_FIELDS = [ + 'target_model', + 'key', + 'label', + 'field_type', + 'is_required', + 'is_filterable', + 'display_order', + 'is_active' +]; + +/** Edit omits the three fields `CustomFieldDefinitionSerializer.validate()` + * freezes after creation. Values live in each record's `custom_fields` JSON + * keyed by `key` (see `backend/common/custom_fields.py`): changing `key` + * orphans them, changing `target_model` leaves them on the old entity, and + * changing `field_type` reinterprets values written under the old one. The + * backend refuses all three with a 400; not offering them is better than + * teaching it through a failed save. */ +const FROZEN_AFTER_CREATE = ['key', 'target_model', 'field_type']; +const UPDATE_FIELDS = CREATE_FIELDS.filter((f) => !FROZEN_AFTER_CREATE.includes(f)); + +/** "Very High" to "very-high". Only ever applied to a NEW dropdown option: an + * existing option's value is stored on every record that uses it and must + * survive a relabel untouched. */ +function slugifyOptionValue(label) { + return label + .toLowerCase() + .trim() + .replace(/[^a-z0-9]+/g, '-') + .replace(/^-+|-+$/g, ''); +} + +/** + * Shape the request body from an allow-list. + * + * @param {string[]} allowed + * @param {{ [key: string]: any }} values + */ +function buildBody(allowed, values) { + /** @type {Record} */ + const body = {}; + for (const field of allowed) { + if (values[field] === undefined) continue; + body[field] = values[field]; + } + if (body.display_order !== undefined) body.display_order = Number(body.display_order) || 0; + for (const flag of ['is_required', 'is_filterable', 'is_active']) { + if (body[flag] !== undefined) body[flag] = Boolean(body[flag]); + } + + // `options` is only legal on a dropdown. `validate_definition_options` + // rejects a non-empty options list on any other type, so this is not + // defensive noise: sending it turns a valid text field into a 400. + if (values.field_type === 'dropdown') { + const rows = (values.options ?? []) + .map((/** @type {any} */ o) => ({ + value: o.value ? String(o.value) : slugifyOptionValue(String(o.label ?? '')), + label: String(o.label ?? '').trim() + })) + .filter((/** @type {any} */ o) => o.label && o.value); + if (!rows.length) { + throw new Error('A dropdown needs at least one option.'); + } + const seen = new Set(); + for (const row of rows) { + if (seen.has(row.value)) { + throw new Error(`Two options would both be stored as "${row.value}". Rename one.`); + } + seen.add(row.value); + } + body.options = rows; + } + + return body; +} + +/** @param {{ cookies: import('@sveltejs/kit').Cookies }} event */ +export async function createCustomField({ cookies }, values) { + const body = buildBody(CREATE_FIELDS, values); + return await apiRequest('/custom-fields/', { method: 'POST', body }, { cookies }); +} + +/** @param {{ cookies: import('@sveltejs/kit').Cookies }} event */ +export async function updateCustomField({ cookies }, id, values) { + if (!id) throw new Error('Which field? No field id was given.'); + const body = buildBody(UPDATE_FIELDS, values); + return await apiRequest(`/custom-fields/${id}/`, { method: 'PUT', body }, { cookies }); +} + +/** + * Turn a field off. + * + * `CustomFieldDefinitionDetailView.delete` is a soft delete: it flips + * `is_active` and leaves every stored value readable. The UI says "Turn off" + * for that reason; calling it Delete would promise something the backend does + * not do. + * + * @param {{ cookies: import('@sveltejs/kit').Cookies }} event + */ +export async function deactivateCustomField({ cookies }, id) { + if (!id) throw new Error('Which field? No field id was given.'); + return await apiRequest(`/custom-fields/${id}/`, { method: 'DELETE' }, { cookies }); +} diff --git a/frontend/src/lib/server/v2/custom-fields.test.js b/frontend/src/lib/server/v2/custom-fields.test.js new file mode 100644 index 00000000..981e634f --- /dev/null +++ b/frontend/src/lib/server/v2/custom-fields.test.js @@ -0,0 +1,174 @@ +import { describe, it, expect, vi, beforeEach } from 'vitest'; + +const apiRequest = vi.fn(); +vi.mock('$lib/api-helpers.js', () => ({ apiRequest: (...a) => apiRequest(...a) })); + +const { createCustomField, updateCustomField, deactivateCustomField } = + await import('$lib/server/v2/custom-fields.js'); + +const event = /** @type {any} */ ({ cookies: { get: () => 'token' } }); + +const base = { + target_model: 'Case', + key: 'severity', + label: 'Severity', + field_type: 'text', + is_required: false, + is_filterable: true, + display_order: 3 +}; + +describe('createCustomField', () => { + beforeEach(() => { + apiRequest.mockReset(); + }); + + it('POSTs the definition to /custom-fields/', async () => { + apiRequest.mockResolvedValue({ id: 'cf1', ...base }); + + const result = await createCustomField(event, base); + + const [endpoint, options] = apiRequest.mock.calls[0]; + expect(endpoint).toBe('/custom-fields/'); + expect(options.method).toBe('POST'); + expect(options.body.key).toBe('severity'); + expect(options.body.target_model).toBe('Case'); + expect(options.body.display_order).toBe(3); + expect(result.id).toBe('cf1'); + }); + + it('omits options entirely for a non-dropdown field', async () => { + // `validate_definition_options` rejects a non-empty `options` on any type + // other than dropdown, so sending [] or null on a text field is not + // harmless noise, it is the difference between 201 and 400. + apiRequest.mockResolvedValue({}); + + await createCustomField(event, { + ...base, + field_type: 'text', + options: [{ value: 'a', label: 'A' }] + }); + + expect(apiRequest.mock.calls[0][1].body.options).toBeUndefined(); + }); + + it('sends dropdown options as {value,label} pairs', async () => { + apiRequest.mockResolvedValue({}); + + await createCustomField(event, { + ...base, + field_type: 'dropdown', + options: [ + { value: '', label: 'Very High' }, + { value: 'low', label: 'Low' } + ] + }); + + // A blank value is a new row; the label is slugified into one. An + // existing value is preserved verbatim, because the stored values on + // every record reference it. + expect(apiRequest.mock.calls[0][1].body.options).toEqual([ + { value: 'very-high', label: 'Very High' }, + { value: 'low', label: 'Low' } + ]); + }); + + it('rejects a dropdown with no options before making a request', async () => { + await expect( + createCustomField(event, { ...base, field_type: 'dropdown', options: [] }) + ).rejects.toThrow(/at least one option/i); + expect(apiRequest).not.toHaveBeenCalled(); + }); + + it('never forwards a client-supplied org', async () => { + apiRequest.mockResolvedValue({}); + await createCustomField(event, { ...base, org: 'attacker-org' }); + expect(apiRequest.mock.calls[0][1].body.org).toBeUndefined(); + }); +}); + +describe('updateCustomField', () => { + beforeEach(() => { + apiRequest.mockReset(); + }); + + it('PUTs to the detail endpoint without key, target_model or field_type', async () => { + // Values live on each record keyed by `key`, and every stored value for a + // field was written and checked against its `field_type`. + // `CustomFieldDefinitionSerializer.validate()` freezes all three + // server-side (a differing value in the PUT body is a 400); this layer is + // what refuses to send any of them in the first place. `field_type` here + // changes to `number`, not `dropdown`, on purpose: a `dropdown` value + // would route through the options-shaping branch, which is a different + // behaviour covered below. + apiRequest.mockResolvedValue({}); + + await updateCustomField(event, 'cf1', { + ...base, + key: 'renamed', + target_model: 'Lead', + field_type: 'number' + }); + + const [endpoint, options] = apiRequest.mock.calls[0]; + expect(endpoint).toBe('/custom-fields/cf1/'); + expect(options.method).toBe('PUT'); + expect(options.body.key).toBeUndefined(); + expect(options.body.target_model).toBeUndefined(); + expect(options.body.field_type).toBeUndefined(); + expect(options.body.label).toBe('Severity'); + }); + + it('still attaches options when editing an existing dropdown field', async () => { + // `field_type` never reaches the outgoing body (it's frozen), but the + // caller still has to say "this definition is a dropdown" so `buildBody` + // knows to shape and attach `options`. Losing that signal on edit would + // silently drop a dropdown's choices from every save. + apiRequest.mockResolvedValue({}); + + await updateCustomField(event, 'cf1', { + ...base, + field_type: 'dropdown', + options: [{ value: 'low', label: 'Low' }] + }); + + const [, options] = apiRequest.mock.calls[0]; + expect(options.body.field_type).toBeUndefined(); + expect(options.body.options).toEqual([{ value: 'low', label: 'Low' }]); + }); + + it('supports a minimal reactivation body of just is_active', async () => { + // The "Turn on" control posts only an id; its action calls this with + // `{ is_active: true }` and nothing else, deliberately bypassing the + // full-form field reader so a field the form never submitted can't read + // back as an empty string and blank something out (see the `activate` + // action's comment in +page.server.js). + apiRequest.mockResolvedValue({}); + + await updateCustomField(event, 'cf1', { is_active: true }); + + const [, options] = apiRequest.mock.calls[0]; + expect(options.body).toEqual({ is_active: true }); + }); +}); + +describe('deactivateCustomField', () => { + beforeEach(() => { + apiRequest.mockReset(); + }); + + it('DELETEs the detail endpoint', async () => { + apiRequest.mockResolvedValue({ error: false, message: 'Custom field deactivated' }); + + await deactivateCustomField(event, 'cf1'); + + const [endpoint, options] = apiRequest.mock.calls[0]; + expect(endpoint).toBe('/custom-fields/cf1/'); + expect(options.method).toBe('DELETE'); + }); + + it('refuses an empty id before making a request', async () => { + await expect(deactivateCustomField(event, '')).rejects.toThrow(/which/i); + expect(apiRequest).not.toHaveBeenCalled(); + }); +}); diff --git a/frontend/src/lib/server/v2/documents.js b/frontend/src/lib/server/v2/documents.js index ac80c42b..ba04fbd4 100644 --- a/frontend/src/lib/server/v2/documents.js +++ b/frontend/src/lib/server/v2/documents.js @@ -49,6 +49,7 @@ */ import { apiRequest } from '$lib/api-helpers.js'; import { env } from '$env/dynamic/public'; +import { getOrgPeopleAndTeams } from './org-people.js'; const API_BASE_URL = `${env.PUBLIC_DJANGO_API_URL}/api`; @@ -173,32 +174,6 @@ export async function listDocuments({ cookies }) { return { results, totals: computeTotals(results) }; } -/** - * In-org people and teams for the share pickers. - * `/users/get-teams-and-users/` filters both to `request.profile.org`, so the - * picker can only ever offer in-org targets, the same boundary the upload/edit - * view enforces when it filters `shared_to`/`teams` by org, surfaced early as - * UX. - * - * @param {import('@sveltejs/kit').Cookies} cookies - */ -async function shareOptions(cookies) { - try { - const resp = await apiRequest('/users/get-teams-and-users/', {}, { cookies }); - const people = (resp?.profiles ?? []).map((/** @type {any} */ p) => ({ - id: p.id, - name: personName(p) - })); - const teams = (resp?.teams ?? []).map((/** @type {any} */ t) => ({ - id: t.id, - name: t.name - })); - return { people, teams }; - } catch { - return { people: [], teams: [] }; - } -} - /** * The share pickers for the upload form. * @@ -212,7 +187,7 @@ async function shareOptions(cookies) { * @param {{ cookies: import('@sveltejs/kit').Cookies }} event */ export async function getUploadOptions({ cookies }) { - const { people, teams } = await shareOptions(cookies); + const { people, teams } = await getOrgPeopleAndTeams(cookies); return { people, teams }; } @@ -233,7 +208,7 @@ export async function getDocumentForEdit({ cookies }, id) { if (!doc.can_write) return { can_edit: false }; - const { people, teams } = await shareOptions(cookies); + const { people, teams } = await getOrgPeopleAndTeams(cookies); return { can_edit: true, people, diff --git a/frontend/src/lib/server/v2/escalation.js b/frontend/src/lib/server/v2/escalation.js index 0797a453..6e5cb5d0 100644 --- a/frontend/src/lib/server/v2/escalation.js +++ b/frontend/src/lib/server/v2/escalation.js @@ -3,19 +3,27 @@ * * Server-only. Reads `GET /cases/escalation-policies/`, at most one row per * priority. Each row carries the policy's two halves (first_response / - * resolution action + target), the team to notify, and. The reason the page - * exists; `breaches_last_30d`, a server-side count of SLA breaches per + * resolution action + target), the team to notify, and the reason the page + * exists: `breaches_last_30d`, a server-side count of SLA breaches per * priority over the last 30 days. That count is condition-based, not sourced * from the escalation event log, so it still surfaces breaches under a dead * policy (off, or reassigning to nobody), which is the page's whole point. * - * Read-only page: "Edit policy" is a deferred builder, so there is no write - * path to wire here. The backend returns targets as full profile objects - * (`user_details.name`) and the team as a full team object; the page only wants - * `{ id, name }`, so flatten to that here rather than teach the component the - * backend's nesting. + * The backend returns targets as full profile objects (`user_details.name`) + * and the team as a full team object; the page only wants `{ id, name }`, so + * flatten to that here rather than teach the component the backend's nesting. + * The same flattened shape is what the edit form uses to preselect a target. + * + * Create, edit, turn off, turn on and delete are wired below. The picker + * lists (`people`, `teams`) are NOT fetched here: `settings.js`'s + * `getSettingsHub` calls `getEscalationPolicies` and reads only `.policies` + * off it, so a picker fetch in this function would be a redundant request on + * every settings-hub load. The route's `load` fetches `getOrgPeopleAndTeams` + * itself, in parallel with this. */ import { apiRequest } from '$lib/api-helpers.js'; +import { ESCALATION_PRIORITIES } from '$lib/v2/enums.js'; +import { viewerRole } from './organization.js'; /** Profile → the `{ id, name }` the card renders, or null when unset. */ function shapeTarget(target) { @@ -31,7 +39,7 @@ function shapeTeam(team) { /** * @param {{ cookies: import('@sveltejs/kit').Cookies }} event - * @returns {Promise<{ policies: any[] }>} + * @returns {Promise<{ policies: any[], can_edit: boolean }>} */ export async function getEscalationPolicies({ cookies }) { const { policies } = await apiRequest('/cases/escalation-policies/', {}, { cookies }); @@ -46,6 +54,75 @@ export async function getEscalationPolicies({ cookies }) { resolution_target: shapeTarget(p.resolution_target), notify_team: shapeTeam(p.notify_team), breaches_last_30d: p.breaches_last_30d ?? { first_response: 0, resolution: 0 } - })) + })), + // A display hint: POST/PUT/DELETE on `/cases/escalation-policies/` each + // start with `_is_admin(request.profile)` server-side and 403 regardless + // of what this says. This only decides whether the page offers the + // controls. + can_edit: viewerRole(cookies) === 'ADMIN' }; } + +export const CREATE_FIELDS = [ + 'priority', + 'first_response_action', + 'resolution_action', + 'first_response_target_id', + 'resolution_target_id', + 'notify_team_id', + 'is_active' +]; + +/** `priority` is the natural key and is frozen after create. It is not merely + * unwise to change: `EscalationPolicyDetailView.put` deletes the key from the + * body before the serializer sees it, so a PUT carrying a new priority + * returns 200 and changes nothing. Omitting it here means the page never + * offers a control whose success is a lie. */ +export const UPDATE_FIELDS = CREATE_FIELDS.filter((f) => f !== 'priority'); + +/** @param {string[]} allowed @param {{ [key: string]: any }} values */ +function buildBody(allowed, values) { + /** @type {Record} */ + const body = {}; + for (const field of allowed) { + if (values[field] === undefined) continue; + body[field] = values[field]; + } + for (const nullable of ['first_response_target_id', 'resolution_target_id', 'notify_team_id']) { + if (body[nullable] === '') body[nullable] = null; + } + if (body.is_active !== undefined) body.is_active = Boolean(body.is_active); + return body; +} + +/** @param {{ cookies: import('@sveltejs/kit').Cookies }} event */ +export async function createEscalationPolicy({ cookies }, values) { + const body = buildBody(CREATE_FIELDS, values); + if (!ESCALATION_PRIORITIES.includes(body.priority)) { + throw new Error('Pick a priority for the policy.'); + } + return await apiRequest('/cases/escalation-policies/', { method: 'POST', body }, { cookies }); +} + +/** @param {{ cookies: import('@sveltejs/kit').Cookies }} event */ +export async function updateEscalationPolicy({ cookies }, id, values) { + if (!id) throw new Error('Which policy? No policy id was given.'); + const body = buildBody(UPDATE_FIELDS, values); + return await apiRequest( + `/cases/escalation-policies/${id}/`, + { method: 'PUT', body }, + { cookies } + ); +} + +/** + * Delete a policy, permanently. `EscalationPolicyDetailView.delete` calls + * `obj.delete()`. The priority it covered then escalates to nobody, which is + * what the confirm line has to say. + * + * @param {{ cookies: import('@sveltejs/kit').Cookies }} event + */ +export async function deleteEscalationPolicy({ cookies }, id) { + if (!id) throw new Error('Which policy? No policy id was given.'); + return await apiRequest(`/cases/escalation-policies/${id}/`, { method: 'DELETE' }, { cookies }); +} diff --git a/frontend/src/lib/server/v2/escalation.test.js b/frontend/src/lib/server/v2/escalation.test.js new file mode 100644 index 00000000..1010a69e --- /dev/null +++ b/frontend/src/lib/server/v2/escalation.test.js @@ -0,0 +1,190 @@ +import { describe, it, expect, vi, beforeEach } from 'vitest'; + +const apiRequest = vi.fn(); +vi.mock('$lib/api-helpers.js', () => ({ apiRequest: (...a) => apiRequest(...a) })); + +const { + createEscalationPolicy, + updateEscalationPolicy, + deleteEscalationPolicy, + UPDATE_FIELDS +} = await import('./escalation.js'); + +const cookies = /** @type {any} */ ({ get: () => 'token' }); +const event = /** @type {any} */ ({ cookies }); + +const base = { + priority: 'Urgent', + first_response_action: 'notify', + resolution_action: 'reassign', + first_response_target_id: 'p1', + resolution_target_id: 'p2', + notify_team_id: 't1', + is_active: true +}; + +describe('UPDATE_FIELDS', () => { + it('excludes priority, the frozen natural key', () => { + expect(UPDATE_FIELDS).not.toContain('priority'); + }); +}); + +describe('createEscalationPolicy', () => { + beforeEach(() => { + apiRequest.mockReset(); + }); + + it('includes priority on create, along with the rest of the allow-list, and drops a hostile org', async () => { + apiRequest.mockResolvedValue({}); + await createEscalationPolicy(event, { + ...base, + org: 'ATTACKER-ORG', + created_by: 'ATTACKER' + }); + const [url, opts] = apiRequest.mock.calls[0]; + expect(url).toBe('/cases/escalation-policies/'); + expect(opts.method).toBe('POST'); + expect(opts.body.priority).toBe('Urgent'); + expect(Object.keys(opts.body).sort()).toEqual([ + 'first_response_action', + 'first_response_target_id', + 'is_active', + 'notify_team_id', + 'priority', + 'resolution_action', + 'resolution_target_id' + ]); + expect(opts.body.org).toBeUndefined(); + expect(opts.body.created_by).toBeUndefined(); + }); + + it('sends null, not an empty string, for an unselected first_response_target_id', async () => { + apiRequest.mockResolvedValue({}); + await createEscalationPolicy(event, { ...base, first_response_target_id: '' }); + const { body } = apiRequest.mock.calls[0][1]; + expect(body.first_response_target_id).toBeNull(); + }); + + it('sends null, not an empty string, for an unselected resolution_target_id', async () => { + apiRequest.mockResolvedValue({}); + await createEscalationPolicy(event, { ...base, resolution_target_id: '' }); + const { body } = apiRequest.mock.calls[0][1]; + expect(body.resolution_target_id).toBeNull(); + }); + + it('sends null, not an empty string, for an unselected notify_team_id', async () => { + apiRequest.mockResolvedValue({}); + await createEscalationPolicy(event, { ...base, notify_team_id: '' }); + const { body } = apiRequest.mock.calls[0][1]; + expect(body.notify_team_id).toBeNull(); + }); + + it('coerces is_active to a boolean', async () => { + apiRequest.mockResolvedValue({}); + await createEscalationPolicy(event, { ...base, is_active: 'true' }); + const { body } = apiRequest.mock.calls[0][1]; + expect(body.is_active).toBe(true); + expect(typeof body.is_active).toBe('boolean'); + }); + + it('rejects a priority outside the four choices before the round trip', async () => { + await expect(createEscalationPolicy(event, { ...base, priority: 'Critical' })).rejects.toThrow( + /priority/i + ); + expect(apiRequest).not.toHaveBeenCalled(); + }); + + it('rejects a missing priority before the round trip', async () => { + await expect(createEscalationPolicy(event, { ...base, priority: '' })).rejects.toThrow( + /priority/i + ); + expect(apiRequest).not.toHaveBeenCalled(); + }); +}); + +describe('updateEscalationPolicy', () => { + beforeEach(() => { + apiRequest.mockReset(); + }); + + it('PUTs to the detail endpoint', async () => { + apiRequest.mockResolvedValue({}); + await updateEscalationPolicy(event, 'e1', base); + const [url, opts] = apiRequest.mock.calls[0]; + expect(url).toBe('/cases/escalation-policies/e1/'); + expect(opts.method).toBe('PUT'); + }); + + it('never sends priority, even when the caller passes one', async () => { + apiRequest.mockResolvedValue({}); + await updateEscalationPolicy(event, 'e1', base); + const { body } = apiRequest.mock.calls[0][1]; + expect(body.priority).toBeUndefined(); + expect(Object.keys(body)).not.toContain('priority'); + }); + + it('sends only what it is given, with no org/created_by', async () => { + apiRequest.mockResolvedValue({}); + await updateEscalationPolicy(event, 'e1', { + ...base, + org: 'ATTACKER-ORG', + created_by: 'ATTACKER' + }); + const { body } = apiRequest.mock.calls[0][1]; + expect(Object.keys(body).sort()).toEqual([ + 'first_response_action', + 'first_response_target_id', + 'is_active', + 'notify_team_id', + 'resolution_action', + 'resolution_target_id' + ]); + expect(body.org).toBeUndefined(); + expect(body.created_by).toBeUndefined(); + }); + + it('sends exactly one key for a minimal { is_active: true } body (the turn-on path)', async () => { + apiRequest.mockResolvedValue({}); + await updateEscalationPolicy(event, 'e1', { is_active: true }); + const { body } = apiRequest.mock.calls[0][1]; + expect(body).toEqual({ is_active: true }); + }); + + it('sends exactly one key for a minimal { is_active: false } body (the turn-off path)', async () => { + apiRequest.mockResolvedValue({}); + await updateEscalationPolicy(event, 'e1', { is_active: false }); + const { body } = apiRequest.mock.calls[0][1]; + expect(body).toEqual({ is_active: false }); + }); + + it('sends null, not an empty string, for an unselected target on update', async () => { + apiRequest.mockResolvedValue({}); + await updateEscalationPolicy(event, 'e1', { ...base, first_response_target_id: '' }); + const { body } = apiRequest.mock.calls[0][1]; + expect(body.first_response_target_id).toBeNull(); + }); + + it('throws when the id is missing', async () => { + await expect(updateEscalationPolicy(event, '', base)).rejects.toThrow(/which policy/i); + expect(apiRequest).not.toHaveBeenCalled(); + }); +}); + +describe('deleteEscalationPolicy', () => { + beforeEach(() => { + apiRequest.mockReset(); + }); + + it('DELETEs the detail endpoint', async () => { + apiRequest.mockResolvedValue({}); + await deleteEscalationPolicy(event, 'e1'); + const [url, opts] = apiRequest.mock.calls[0]; + expect(url).toBe('/cases/escalation-policies/e1/'); + expect(opts.method).toBe('DELETE'); + }); + + it('throws when the id is missing', async () => { + await expect(deleteEscalationPolicy(event, '')).rejects.toThrow(/which policy/i); + expect(apiRequest).not.toHaveBeenCalled(); + }); +}); diff --git a/frontend/src/lib/server/v2/goals.js b/frontend/src/lib/server/v2/goals.js index 1ee5114c..b3baba4c 100644 --- a/frontend/src/lib/server/v2/goals.js +++ b/frontend/src/lib/server/v2/goals.js @@ -34,6 +34,7 @@ * fields already in the payload, never a second aggregate query. */ import { apiRequest } from '$lib/api-helpers.js'; +import { getOrgPeopleAndTeams } from './org-people.js'; /** The two goal kinds the backend accepts (common/utils.py GOAL_TYPES). */ export const GOAL_TYPES = ['REVENUE', 'DEALS_CLOSED']; @@ -191,31 +192,6 @@ export async function listGoals({ cookies }) { }; } -/** - * In-org people and teams for the create/edit pickers. - * `/users/get-teams-and-users/` filters both to `request.profile.org`, so the - * picker can only ever offer in-org targets. The same boundary the serializer - * now enforces, surfaced early as UX. - * - * @param {import('@sveltejs/kit').Cookies} cookies - */ -async function targetOptions(cookies) { - try { - const resp = await apiRequest('/users/get-teams-and-users/', {}, { cookies }); - const people = (resp?.profiles ?? []).map((/** @type {any} */ p) => ({ - id: p.id, - name: personName(p) - })); - const teams = (resp?.teams ?? []).map((/** @type {any} */ t) => ({ - id: t.id, - name: t.name - })); - return { people, teams }; - } catch { - return { people: [], teams: [] }; - } -} - /** * What the create form needs. `can_edit` gates the whole route: creating a goal * is admin-only server-side, and a non-admin who reaches `/goals/new` gets @@ -225,7 +201,7 @@ async function targetOptions(cookies) { */ export async function getGoalFormOptions({ cookies }) { if (viewerRole(cookies) !== 'ADMIN') return { can_edit: false }; - const { people, teams } = await targetOptions(cookies); + const { people, teams } = await getOrgPeopleAndTeams(cookies); return { can_edit: true, people, teams }; } @@ -242,7 +218,7 @@ export async function getGoalForEdit({ cookies }, id) { const [raw, { people, teams }] = await Promise.all([ apiRequest(`/opportunities/goals/${id}/`, {}, { cookies }), - targetOptions(cookies) + getOrgPeopleAndTeams(cookies) ]); const target = raw.assigned_to diff --git a/frontend/src/lib/server/v2/inbound-email.js b/frontend/src/lib/server/v2/inbound-email.js index 04314c62..a5056d98 100644 --- a/frontend/src/lib/server/v2/inbound-email.js +++ b/frontend/src/lib/server/v2/inbound-email.js @@ -12,14 +12,22 @@ * came from the provider. Anything holding it can forge tickets into this org. * The backend already strips it for non-admins, but this layer drops it for * everyone: it is never needed to render the page, so it never reaches the - * browser, admin or not. Rotation is an explicit action elsewhere, not a field - * on a page you can browse to. + * browser, admin or not. `topic_arn` embeds the AWS account id and is held to + * the same bar. Rotation and a one-time reveal on create are an explicit, + * separate feature this task does not build, not a field on a page you can + * browse to. * - * Read-only page: "Add address" / "Edit" are deferred builders, so there is no - * write path here. The backend returns `default_assignee` as a full profile - * object (name under `user_details.name`); the page wants `{ id, name }`. + * The rule extends to the write side, below: `CREATE_FIELDS` and + * `UPDATE_FIELDS` exclude both fields too, on purpose, not by oversight. See + * the comment above `CREATE_FIELDS` for why omitting them is strictly better + * than any form could do. + * + * Create, edit, turn off, turn on and delete are wired below. The backend + * returns `default_assignee` as a full profile object (name under + * `user_details.name`); the page wants `{ id, name }`. */ import { apiRequest } from '$lib/api-helpers.js'; +import { viewerRole } from './organization.js'; /** Profile → the `{ id, name }` the card reads, or null. */ function shapeAssignee(p) { @@ -29,7 +37,7 @@ function shapeAssignee(p) { /** * @param {{ cookies: import('@sveltejs/kit').Cookies }} event - * @returns {Promise<{ mailboxes: any[], totals: any }>} + * @returns {Promise<{ mailboxes: any[], totals: any, can_edit: boolean }>} */ export async function getMailboxes({ cookies }) { const { mailboxes, totals } = await apiRequest('/cases/mailboxes/', {}, { cookies }); @@ -48,6 +56,82 @@ export async function getMailboxes({ cookies }) { cases_last_30d: m.cases_last_30d ?? 0, last_received_at: m.last_received_at ?? null })), - totals: totals ?? { count: 0, active: 0, cases_last_30d: 0 } + totals: totals ?? { count: 0, active: 0, cases_last_30d: 0 }, + // A display hint: POST/PUT/DELETE on `/cases/mailboxes/` each start with + // `_is_admin(request.profile)` server-side and 403 regardless of what this + // says. This only decides whether the page offers the controls. GET itself + // is not role-gated, so a member can still see this list. + can_edit: viewerRole(cookies) === 'ADMIN' }; } + +/** No `webhook_secret`, no `topic_arn`. `InboundMailboxListCreateView.post` + * generates a `secrets.token_urlsafe(32)` secret when the body carries none, + * which is a better secret than a pasted one, and `put` is `partial=True`, + * so omitting the key leaves the live credential untouched. A form field for + * either would mean the credential travels to a browser and back on every + * edit, and an empty one would blank it. */ +const CREATE_FIELDS = [ + 'address', + 'provider', + 'default_priority', + 'default_case_type', + 'default_assignee_id', + 'is_active' +]; + +/** `address` is the mailbox's identity and its uniqueness key. It is not + * frozen by the backend (`validate_address` only checks duplicates on + * create, and `put` is partial), so an edit may change it. It stays in the + * update allow-list for that reason, with a hint on the form saying mail to + * the old address stops becoming tickets. */ +const UPDATE_FIELDS = CREATE_FIELDS; + +/** @param {string[]} allowed @param {{ [key: string]: any }} values */ +function buildBody(allowed, values) { + /** @type {Record} */ + const body = {}; + for (const field of allowed) { + if (values[field] === undefined) continue; + body[field] = values[field]; + } + // Two nullable fields whose "none selected" option is an empty `