The platform for continuously improving AI agents.
Reasoning Agent + Data Workshop Sandbox (#324)
Freyam Mehtaa000b8c4bb5f
diff --git a/.agents/skills/backend-architecture/SKILL.md b/.agents/skills/backend-architecture/SKILL.mdindex af2354d3..03c46b4e 100644--- a/.agents/skills/backend-architecture/SKILL.md+++ b/.agents/skills/backend-architecture/SKILL.md@@ -42,3 +42,4 @@ Read the one that matches the task:| [references/training.md](references/training.md) | Preparation, launch, monitoring, transfer, native decision training || [references/serving.md](references/serving.md) | Deployments, shared-base LoRA, activation, inference requests, operational receipts || [references/data-first.md](references/data-first.md) | Training plans, partitions, native evaluation, experiments, performance runs |+| [references/assistant.md](references/assistant.md) | The Console assistant's turn and tools, project workspaces, the dataset stream |diff --git a/.agents/skills/backend-architecture/references/assistant.md b/.agents/skills/backend-architecture/references/assistant.mdnew file mode 100644index 00000000..f85b66ea--- /dev/null+++ b/.agents/skills/backend-architecture/references/assistant.md@@ -0,0 +1,38 @@+# Platform assistant and project workspaces++The Console's assistant is a second author beside a customer's coding agent, scoped to the Data Workshop. MCP stays the primary surface; both reach the same domain services.++## Turn++- A dataset has at most one `AssistantThread` (`dataset.assistant_thread`) and its append-only `AssistantEvent` log (`user`, `assistant`, `tool_result`, `status`, `summary`). The log is the model context and the transcript. Messages wait in `AssistantInput` until a turn delivers them.+- A turn is one Celery task (`tasks/assistant.run_turn`, queue `assistant`): from the delivered messages to a reply without tool calls, or to a `present` that asks a Question or Choices. `turn.wake` sends it after the commit that queued a message; a second task finds the thread taken and ends. The task starts the next turn itself when messages arrived while it ran.+- A turn takes the thread by raising `AssistantThread.turn` and writes only while it still holds that number (`log.append(..., turn=)` raises `LostTurnError`). `updated_at` is its progress mark. `turn.settle`, called by every read of the thread and every message, marks a turn without progress for `STALE` (15 minutes) as interrupted; no process watches for it. A turn ends itself after `TURN_SECONDS`. An interrupted turn is never resumed: the next message starts a new one, and a call left without a result is answered as abandoned.+- A message for a dataset whose source still lands waits: `_begin` leaves it queued, and the landing task calls `turn.wake_dataset` when it ends.+- A message is delivered with `threads.brief`: what the dataset holds now (source and versions with their `data/<cell>.parquet` path, columns, measured profile, its pipeline). It is attached again only when it changed or a summary replaced the message that carried it.+- When a reply's prompt passes `ASSISTANT_COMPACT_TOKENS`, the turn appends a `summary` of all but the last `COMPACT_KEEP` events. A model call reads the newest summary and the events after it; the transcript keeps everything. The cut never separates a tool call from its result.+- Stop sets `stop_requested`, drops queued messages and stops the conversation's kernel at once (`tasks/assistant.stop_kernel`), so a cell that runs answers. The turn sees the flag at its next step. Jobs the turn started continue.+- The sender of the newest message pays for the model calls (`BillingService.DATA_WORKSHOP`, idempotency key `assistant:<thread>:<sequence>`), and tools run with that sender's project access, checked before each model call. A reply and its charge are saved in one transaction. A reply stopped in the middle is not charged: the provider reports no usage for it.++## Tools++- Catalog tools (`tools.CATALOG_TOOLS`) are MCP tools called in process through `CATALOG.invoke`; validation and receipts are the catalog's own. The turn supplies `project_id`, and `request_key` on mutating tools. A tool that starts a job waits for it in the same call (`tools._wait`).+- Own tools: `run_python` runs a cell in the conversation's kernel; `versions` names the dataset versions it reads, copied into the workspace first. `run_pipeline` retains a package from the model's files, then saves, validates and runs it through the catalog and waits for the run; a `pipeline` argument names either id of a saved pipeline. `present` shows a result.+- Every tool schema starts with a `summary` argument (`tools.SUMMARY`): a few words for the reader. The Console shows it in place of the tool's name, while the call is written and afterwards.+- Publication has one path: a retained pipeline package run by the pipeline runner. The kernel is for exploration only. The assistant has no path to the customer's repository or machine.+- `present` documents are validated by `services/assistant/presentation.py` and stored in `AssistantEvent.presentation`. Charts, tables and metrics read tables the kernel wrote, and an Image is a PNG, JPEG or WebP file it wrote, retained under `MEDIA_ROOT/assistant/<thread>/` by content name. A Question or Choices answer is `{"call", "id", "values"}`.+- `prompt.RULES` sets the conversation: text is for findings, assumptions and answers; data preparation takes the least-changing reading without asking; a question is for a request the data cannot serve.++## Workspaces++- `services/workspaces/` is one contract: `put_data`, `has_data`, `run`, `read_file`, `stop`, `forget`, `remove`. A provider is one module and one entry in `PROVIDERS`; `WORKSPACE_PROVIDER` selects it. Production uses `daytona`; `native` is for local and self-hosted installs with one sandbox server.+- A project has one workspace. Its `data/` holds each dataset version once, as `<cell>.parquet`, read-only to cells. A conversation has its own kernel and working folder with a `data` link. Variables live in the kernel; files live in the folder.+- Every provider runs `sandbox/kernel.py:run` around a cell: output bounded at 60k characters, the last expression's value, the traceback. A cell runs `DEFAULT_SECONDS` (120) and at most `MAX_SECONDS` (600). A kernel idle for 15 minutes stops; the next cell starts a new one, and `Execution.restarted` tells the model that variables are gone and files remain.+- `native` runs the workspaces in the `sandbox` service (`sandbox/workspaces.py`) on the `workspaces` volume, under the uid and memory admission of a pipeline run, from the same memory budget. Copies are removed oldest first above `DATA_BUDGET_BYTES` (20 GiB).+- Native kernels, pipeline package runs and document extraction share one container and one Linux kernel. A uid keeps a run out of another's files, and `kernel.py:confine` closes the rest without any privilege (Fargate cannot grant `CAP_SYS_ADMIN`): Landlock limits the process and its children to its own folders, the libraries and its own `/proc` entry, denies TCP and scopes signals and abstract sockets; a seccomp filter refuses every socket family but `AF_UNIX`. Landlock applies as far as the host's Linux supports it (files 5.13, TCP 6.7, scoping 6.12); `/health` reports its version as `landlock`. A library that cannot reach a file it needs may abort the process instead of raising, so `conformance.LIBRARY_USE` uses every pinned library; a new library or allowed path is checked there.+- `daytona` gives each project one network-blocked sandbox (2 vCPU, 4 GiB, 5 GiB disk) from the snapshot `manage.py build_workspace_snapshot` builds; the snapshot name hashes the kernel and the image recipe, so a release that changes either needs a build first. A conversation is a code-interpreter context whose working folder is under `/workspace`; `confine` runs inside each context. Sandboxes stop after 15 idle minutes, archive after 60 and are deleted after 7 days stopped. Tier 1 counts the memory of running sandboxes (10 GiB) and the disk of sandboxes not archived (30 GiB).+- A deleted dataset's copies and conversations leave the workspace (`tasks/assistant.forget_workspace_data`), and a deleted project's workspace goes with it (`remove_workspace`); both retry, because a hosted provider holds customer data.+- `conformance.py` holds the contract checks. The test suite runs them on `native`; `manage.py check_workspaces` runs them on the configured provider, the only way to check a hosted one. `.github/workflows/workspaces.yml` runs it on Daytona each day and on a change to the adapter, the kernel or `uv.lock`; it needs the repository secret `DAYTONA_API_KEY`.++## Live updates++The dataset page holds one stream, `GET /api/datasets/{id}/events/`. It carries signals only: `connected` with the dataset's `updated_at`, the `land_*` progress of its source, `dataset_changed`, `assistant` (the conversation changed: read `GET /api/assistant-threads/{id}/events/?after=N`) and `assistant.draft` (text a reply gained after position `at`, and the summaries of the calls being written). Postgres is the record; the draft key in Redis holds the reply so far for a page that opens in the middle. Members share one conversation: the thread names its `participants`, and the Console labels a teammate's message with it. `log.append` stores what jsonb refuses (a NUL character, a number that is not finite) as a replacement character and null.diff --git a/.agents/skills/backend-architecture/references/celery.md b/.agents/skills/backend-architecture/references/celery.mdindex f7eac5ed..7820aae7 100644--- a/.agents/skills/backend-architecture/references/celery.md+++ b/.agents/skills/backend-architecture/references/celery.md@@ -1,11 +1,12 @@# Celery topology-Six workers over six queues. Workers are resource profiles; queues are fairness classes.+Seven workers over seven queues. Workers are resource profiles; queues are fairness classes.| Worker | Pool | Conc | Holds || ------------- | ------- | ---- | ----------------------------------------------------------------------------------- || `control` | threads | 8 | orchestration, chord callbacks, FSM advances, reconcilers || `io` | threads | 24 | preparation, eval launch, serving, connector polling |+| `assistant` | threads | 24 | assistant turns, kernel stops and workspace cleanup || `io_traces` | prefork | 4 | live span and trajectory scoring, signals || `batch` | prefork | 6 | pipeline bindings, evaluation generation and scoring, partitions, native evaluation || `landing` | prefork | 1 | source imports |diff --git a/.agents/skills/data-workshop/SKILL.md b/.agents/skills/data-workshop/SKILL.mdindex ec09b448..cb3a190d 100644--- a/.agents/skills/data-workshop/SKILL.md+++ b/.agents/skills/data-workshop/SKILL.md@@ -5,11 +5,7 @@ description: Data Workshop internals — source landing and OCR, immutable datas# Data Workshop-The native coding agent owns interpretation, code and semantic work. The platform stores evidence and runs explicit, deterministic operations. Landing never diagnoses, starts a chat turn, generates examples or starts preparation. There is no platform chat, mutable cell or replay endpoint; old conversations and provider receipts are archived in `DatasetHistory`, and historical cell scripts, reviews and frames stay readable.--## Preparation lifecycle--`DatasetPreparation` (`services/datasets/preparation_workflow.py`) groups a coding agent's preparation work under one evolving notification. MCP `start_dataset_preparation` and `update_dataset_preparation` open and close it. The Console's End preparation (`POST /api/datasets/{id}/end-preparation/`) and the dataset reaper (24 h without activity) cancel it. An open preparation labels the dataset; it never locks editing.+A customer's coding agent over MCP and the Console assistant own interpretation, code and semantic work (backend-architecture `references/assistant.md`). The platform stores evidence and runs explicit, deterministic operations. Landing never diagnoses, generates examples or starts preparation; a message that waits for the source starts its turn when landing ends. There is no mutable cell or replay endpoint; old conversations and provider receipts are archived in `DatasetHistory`, and historical cell scripts, reviews and frames stay readable.## Map@@ -47,7 +43,7 @@ The native coding agent owns interpretation, code and semantic work. The platfor- New revisions need a retained Python package with agent-authored stages; inline operations are rejected (`pipeline_package_required`). Package-free historical revisions are read-only.- Revisions are immutable and numbered per project family; `derived_from` starts a separate attributed family. Revision keys are project-scoped; run keys are per dataset.-- Packages run only in the isolated sandbox through interactive workers: separate UIDs, no network, credentials, media mounts or Docker socket, measured memory admission. Registration and validation never execute code. Process exit status, not a script-written file, establishes completion.+- Packages run only in the isolated sandbox through interactive workers: separate UIDs, no network, credentials, media mounts or Docker socket, measured memory admission. Each run also confines itself (`sandbox/kernel.py:confine`): a script reads only its own scratch folder and the libraries, sees no other run's processes and opens no network socket. Registration and validation never execute code. Process exit status, not a script-written file, establishes completion.- Steps declare `id` and `input`; `inputs` concatenates disjoint earlier branches in order and rejects overlapping `source_row` identities. It is not a relational join. `flow` (`pipeline_graph.py`) returns `nodes`, `edges` (each with its `condition`), `terminal_steps` and `unconsumed_steps`. Script conditions cite `expression` and `line` and never execute as expressions.- A successful run publishes all step cells atomically. Preview publishes nothing. `min_rows`/`max_rows` apply at publication and show as deferred in previews; row preservation, schema and lineage checks apply in both. Run receipts expose queue age, a polling interval, terminal time and structured failed checks. Runner heartbeats continue through validation and publication without advancing measured progress.- Cells carry receipt-backed `transformation` attribution (run, revision, package checksum, entrypoint). External imports and unrecorded history never claim platform execution. Every retained package file is inspectable with checksum-verified pagination.@@ -83,7 +79,7 @@ External results arrive inline (at most 2,000 rows or 4 MiB) or as a project-sco## Console canvas-The landing page is a project dataset table; a row opens its cells on a grid-snapped flow canvas. Cells stay full-size at scale 1; zoom and Fit view change only the camera. Steps run downward and sibling branches share a horizontal layer. Positions persist in the browser and never change execution. The folder button opens project-scoped dataset navigation. There is no chat, funding control, cell search or cell-selector strip.+The landing page opens on the assistant composer (`components/assistant/assistant-composer.tsx`): files or attached datasets plus one sentence start a thread on the working dataset. The project dataset table is a sheet below it; a row opens its cells on a grid-snapped flow canvas. Cells stay full-size at scale 1; zoom and Fit view change only the camera. Steps run downward and sibling branches share a horizontal layer. Positions persist in the browser and never change execution. The folder button opens project-scoped dataset navigation. The assistant chat is a bar at the bottom of the canvas that opens into a resizable left panel (`components/assistant/`). There is no funding control, cell search or cell-selector strip.The dataset inventory exposes current work from retained pipeline and transfer receipts.Uploads attached to a dataset report measured bytes; transformations and previews staydiff --git a/.agents/skills/mcp/SKILL.md b/.agents/skills/mcp/SKILL.mdindex 2ecb192c..57b47946 100644--- a/.agents/skills/mcp/SKILL.md+++ b/.agents/skills/mcp/SKILL.md@@ -142,10 +142,3 @@ creation, upload, import, saved transformations, previews and publication. Pipelruns resolve their dataset from the retained run record. Other edits and consumersremain separate. The Console connects adjacent matching events without declaringwhole-task completion.--An explicit `start_dataset_preparation` / `update_dataset_preparation` lifecycle keeps-the dataset Preparing between jobs until the agent finishes. Inspect it through-`inspect_dataset_workbench.preparation_workflow`. Child source and pipeline activity-remains recorded but is folded into its single evolving notification; child updates-touch the parent timestamp to invalidate Console assets. Pause is explicitly reported,-not inferred from a client disconnect.diff --git a/.env.example b/.env.exampleindex bd9ab4fa..bf38b691 100644--- a/.env.example+++ b/.env.example@@ -152,3 +152,10 @@ WORKSHOP_PROJECT_CONCURRENCY=2# Isolated document extraction (required for document uploads).SANDBOX_URL=http://sandbox:8080SANDBOX_TOKEN=change-me-in-production+# Where the assistant runs Python: native (the sandbox service, one server) or daytona.+# Native kernels share one Linux kernel; manage.py check_workspaces shows their isolation.+WORKSPACE_PROVIDER=native+# Required for daytona. Build its snapshot once per release: manage.py build_workspace_snapshot+DAYTONA_API_KEY=+# Prompt tokens of one assistant reply above which older conversation is summarized.+ASSISTANT_COMPACT_TOKENS=120000diff --git a/.github/workflows/deploy-api.yml b/.github/workflows/deploy-api.ymlindex b715dcde..5e5434a7 100644--- a/.github/workflows/deploy-api.yml+++ b/.github/workflows/deploy-api.yml@@ -200,7 +200,11 @@ jobs:strategy:fail-fast: falsematrix:- service: [celery-io-worker, celery-batch-worker, celery-interactive-worker]+ service:+ - celery-io-worker+ - celery-assistant-worker+ - celery-batch-worker+ - celery-interactive-workersteps:- uses: actions/checkout@v4- uses: aws-actions/configure-aws-credentials@v4diff --git a/.github/workflows/workspaces.yml b/.github/workflows/workspaces.ymlnew file mode 100644index 00000000..67cd7433--- /dev/null+++ b/.github/workflows/workspaces.yml@@ -0,0 +1,71 @@+name: Workspaces++# The Daytona adapter cannot run in the test suite: it needs the hosted service and a key.+on:+ schedule:+ - cron: "17 5 * * *"+ workflow_dispatch:+ push:+ branches: [main]+ paths:+ - overbae/services/workspaces/**+ - sandbox/kernel.py+ - sandbox/workspaces.py+ - uv.lock+ - .github/workflows/workspaces.yml++permissions:+ contents: read++concurrency:+ group: workspaces+ cancel-in-progress: false++jobs:+ daytona:+ runs-on: ubuntu-latest+ timeout-minutes: 30+ services:+ postgres:+ image: pgvector/pgvector:pg16+ env:+ POSTGRES_DB: overbae+ POSTGRES_USER: overbae+ POSTGRES_PASSWORD: overbae+ ports:+ - 5432:5432+ options: >-+ --health-cmd "pg_isready -U overbae"+ --health-interval 5s+ --health-timeout 3s+ --health-retries 10+ env:+ DJANGO_DEBUG: "True"+ POSTGRES_HOST: localhost+ WORKSPACE_PROVIDER: daytona+ DAYTONA_API_KEY: ${{ secrets.DAYTONA_API_KEY }}+ # Required by settings; this job reaches only Daytona and Postgres.+ SANDBOX_URL: http://unused+ SANDBOX_TOKEN: unused+ OPENROUTER_API_KEY: unused+ MODAL_TOKEN_ID: unused+ MODAL_TOKEN_SECRET: unused+ INFERENCE_API_URL: http://unused+ INFERENCE_API_KEY: unused+ AWS_ACCESS_KEY_ID: unused+ AWS_SECRET_ACCESS_KEY: unused+ AWS_BUCKET_NAME: unused+ HF_TOKEN: unused+ steps:+ - uses: actions/checkout@v4+ - uses: astral-sh/setup-uv@v6+ with:+ version: "0.11.0"+ enable-cache: true+ python-version: "3.13"+ - run: uv sync --frozen+ - run: touch .env+ - name: Build the workspace snapshot if this recipe has none+ run: uv run python manage.py build_workspace_snapshot+ - name: Run the workspace contract on Daytona+ run: uv run python manage.py check_workspacesdiff --git a/AGENTS.md b/AGENTS.mdindex aca9b8ce..cf5ee002 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -30,7 +30,7 @@ This file is the playbook every task needs; Claude Code, Codex and Cursor read i- Tenancy is project-scoped with no org layer. A view that accepts guest writes opts in with `guest_allowed = True`, never with a permission class or middleware.- OTLP ingest never creates a capability, a scan never deletes one, and `DELETE` is a soft delete. On OTLP spans, wire identity is `overmind.capability.id` alone.- Celery routing must agree across `CELERY_TASK_ROUTES`, `make worker`, docker-compose and `docker/worker-topology.json`. Only prefork pools enforce `time_limit`. `tests/test_celery_topology.py` checks compose and `make worker` against the routes.-- Native coding agents own interpretation, code and semantic work. The platform runs deterministic, lineage-bound operations and never invokes a platform planning or generation agent.+- Two authors do interpretation, code and semantic work: a customer's coding agent over MCP, and the platform assistant in the Console (`services/assistant/`). Both call the same domain services; deterministic, lineage-bound operations stay in the platform. The assistant's turn runs in a worker, never in a sandbox; a project workspace (`services/workspaces/`) only runs code.- Work-starting operations take a project-scoped request key: an identical retry returns the same record, and a changed payload conflicts. An unknown provider acknowledgement is reconciled from its saved call ID, never resubmitted.- Measured facts only. Missing usage, progress, scores and telemetry stay unknown; never fill them with a percentage, a zero, an ETA or elapsed time.- Code under `overbae/modal/`, `modal_shared/` and `overbae/services/sft_assets/` reaches Modal only after `modal deploy`; training and serving pin immutable releases.@@ -38,7 +38,7 @@ This file is the playbook every task needs; Claude Code, Codex and Cursor read i- Overwatch (`/api/internal/overwatch/*`, app in `sales-dashboard/`) only reads product records and runs no user authentication. Its tokens, caches and Slack boundary are in backend-architecture `references/auth-and-billing.md`.- `DESIGN.md` carries a fixed YAML frontmatter schema that tooling reads. Extend the values; don't restructure the document.-Subsystem detail lives in the skills: backend-architecture (Celery, tracing and scoring, evaluation, capabilities, auth and billing, training, serving, data-first), data-workshop, mcp, frontend-design.+Subsystem detail lives in the skills: backend-architecture (Celery, tracing and scoring, evaluation, capabilities, auth and billing, training, serving, data-first, assistant), data-workshop, mcp, frontend-design.## Stylediff --git a/DESIGN.md b/DESIGN.mdindex 10c5bc1e..e176fc48 100644--- a/DESIGN.md+++ b/DESIGN.md@@ -268,6 +268,15 @@ violet, plum, warm grey) for charts that distinguish categories. They are afixed set, never hash-derived per render, so a given slot is always the samecolour across every chart.+### Entity and provider accents++An entity's icon carries the accent of its type (`ENTITY_META` in+`components/entity-ref/shell.tsx`): trace `cat-1`, dataset `cat-2`, capability and+eval run `cat-3`, model `cat-4`, optimisation and training run `cat-5`, project+`cat-6`. The label stays neutral. The accent is the type, never a status: a green+dataset icon does not mean success. `FileTypeIcon` gives a file the accent of what+it holds. Provider logos use the full-colour mark where `@lobehub/icons` has one.+### Named rules**The Copper Eye rule.** The brand copper exists in exactly one place:@@ -695,7 +704,9 @@ heading and project count. Dataset listings and their empty states have no Newdataset action. Columns show name, intent,active version, row count, source, capability and last update. Intent uses amonochrome outlined chip, not a status tint. Selecting a row-opens the existing cell-based notebook. There is no chat-style landing composer.+opens the existing cell-based notebook. The Datasets landing opens on the assistant+composer under a "Ready to train" title, over the night sky of the connection pages (`ConnectionBackground`); the dataset+list is a sheet below it that slides up to full height. A checkbox on a row attaches that dataset to the composer.Dataset navigation and content share a continuous outer bezel (3px). The 248pxcolumn starts collapsed, including on landing. The notebook folder button reveals@@ -742,7 +753,9 @@ content or state briefly washes the existing frame with a neutral surface token.Cells never move independently of their connectors. Initial load, unchangedrefreshes, usage metadata and exact-cell inspection remain quiet. Reduced motion usesa shorter, gentler acknowledgement; background/offscreen updates do not replay.-There is no platform chat or bottom chat composer. Dataset metadata changes use+The assistant chat is a bar at the bottom of the canvas. Hover or focus expands it to a+composer; the expand control opens the conversation as a resizable panel on the left,+over the canvas. The panel has no shadow; its transcript fades into the panel surface at both ends. Dataset metadata changes useshared lifecycle endpoints. The rail on the right groups its controls in a compact,opaque card-colored box with a 1px neutral border and small corners. It holdsa folder button that expands or collapses the existing workspace column and,diff --git a/Makefile b/Makefileindex 603022dc..c20ca4c0 100644--- a/Makefile+++ b/Makefile@@ -12,7 +12,7 @@ install-hooks:worker:OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES TOGETHER_API_KEY=placeholder-local-dev \uv run celery -A overbae worker -l info --pool=solo -n local@%h \- -Q control,io,io_traces,batch,landing,interactive+ -Q control,io,assistant,io_traces,batch,landing,interactive# Runs scripts as your own user: no isolation, local development only.sandbox:diff --git a/docker-compose.yml b/docker-compose.ymlindex 3267cd6e..ec32c0b8 100644--- a/docker-compose.yml+++ b/docker-compose.yml@@ -18,6 +18,8 @@ x-env-common: &env-commonANTHROPIC_API_KEY: ${ANTHROPIC_API_KEY:-}GEMINI_API_KEY: ${GEMINI_API_KEY:-}OPENROUTER_API_KEY: ${OPENROUTER_API_KEY:-}+ WORKSPACE_PROVIDER: ${WORKSPACE_PROVIDER:-native}+ DAYTONA_API_KEY: ${DAYTONA_API_KEY:-}JEV_REQUESTS_PER_MINUTE: ${JEV_REQUESTS_PER_MINUTE:-1200}JEV_TOKENS_PER_SECOND: ${JEV_TOKENS_PER_SECOND:-250000}TOGETHER_API_KEY: ${TOGETHER_API_KEY:-}@@ -164,6 +166,20 @@ services:redis:condition: service_healthy+ celery-assistant-worker:+ <<: *build-common+ command: watchmedo auto-restart --directory=/code/overbae --pattern='*.py' --recursive --signal SIGTERM -- celery -A overbae worker -l info --pool=threads --concurrency=24 --prefetch-multiplier=1 --disable-prefetch --hostname=assistant@%h -Q assistant+ restart: unless-stopped+ environment:+ <<: *env-common+ depends_on:+ api:+ condition: service_healthy+ redis:+ condition: service_healthy+ # Assistant turns run Python in the sandbox's workspaces.+ networks: [default, sandbox_net]+celery-traces-worker:<<: *build-commoncommand: watchmedo auto-restart --directory=/code/overbae --pattern='*.py' --recursive --signal SIGTERM -- celery -A overbae worker -l info --pool=prefork --concurrency=4 --prefetch-multiplier=1 --disable-prefetch --hostname=io_traces@%h -Q io_traces@@ -256,10 +272,13 @@ services:SANDBOX_TOKEN: ${SANDBOX_TOKEN:-change-me-in-production}SANDBOX_MEMORY_BYTES: ${SANDBOX_MEMORY_BYTES:-0}SANDBOX_OCR_WORKERS: ${SANDBOX_OCR_WORKERS:-2}+ SANDBOX_WORKSPACES: /workspacestmpfs:- /tmp:size=8gvolumes:- ./sandbox:/code/sandbox:ro+ # Project workspaces outlive their kernels and the container.+ - workspaces:/workspacesnetworks:- sandbox_nethealthcheck:@@ -305,6 +324,7 @@ volumes:name: overclaw_pg_datagrafana_data:frontend_node_modules:+ workspaces:networks:sandbox_net:diff --git a/docker/worker-topology.json b/docker/worker-topology.jsonindex 6418e3f0..13a855e4 100644--- a/docker/worker-topology.json+++ b/docker/worker-topology.json@@ -1,6 +1,7 @@{"celery-control-worker": ["celery", "-A", "overbae", "worker", "-l", "info", "--pool=threads", "--concurrency=8", "-Q", "control"],"celery-io-worker": ["celery", "-A", "overbae", "worker", "-l", "info", "--pool=threads", "--concurrency=24", "--prefetch-multiplier=1", "--disable-prefetch", "--hostname=io@%h", "-Q", "io"],+ "celery-assistant-worker": ["celery", "-A", "overbae", "worker", "-l", "info", "--pool=threads", "--concurrency=24", "--prefetch-multiplier=1", "--disable-prefetch", "--hostname=assistant@%h", "-Q", "assistant"],"celery-traces-worker": ["celery", "-A", "overbae", "worker", "-l", "info", "--pool=prefork", "--concurrency=4", "--prefetch-multiplier=1", "--disable-prefetch", "--hostname=io_traces@%h", "-Q", "io_traces"],"celery-batch-worker": ["celery", "-A", "overbae", "worker", "-l", "info", "--pool=prefork", "--concurrency=6", "--prefetch-multiplier=1", "--disable-prefetch", "-Q", "batch"],"celery-landing-worker": ["celery", "-A", "overbae", "worker", "-l", "info", "--pool=prefork", "--concurrency=1", "--prefetch-multiplier=1", "--disable-prefetch", "--hostname=landing@%h", "-Q", "landing"],diff --git a/frontend/bun.lock b/frontend/bun.lockindex daee1d36..3a506f31 100644--- a/frontend/bun.lock+++ b/frontend/bun.lock@@ -19,6 +19,7 @@"cmdk": "^1.1.1","date-fns": "^4.4.0","elkjs": "^0.12.0",+ "pdfjs-dist": "^6.5.438","posthog-js": "^1.396.6","radix-ui": "^1.6.1","react": "^19.2.7",@@ -373,6 +374,30 @@"@mermaid-js/parser": ["@mermaid-js/[email protected]", "", { "dependencies": { "langium": "^4.0.0" } }, "sha512-gxK9ZX2+Fex5zu8LhRQoMeMPEHbc73UKZ0FQ54YrQtUxE1VVhMwzeNtKRPAu5aXks4FasbMe4xB4bWrmq6Jlxw=="],+ "@napi-rs/canvas": ["@napi-rs/[email protected]", "", { "optionalDependencies": { "@napi-rs/canvas-android-arm64": "1.1.1", "@napi-rs/canvas-darwin-arm64": "1.1.1", "@napi-rs/canvas-darwin-x64": "1.1.1", "@napi-rs/canvas-linux-arm-gnueabihf": "1.1.1", "@napi-rs/canvas-linux-arm64-gnu": "1.1.1", "@napi-rs/canvas-linux-arm64-musl": "1.1.1", "@napi-rs/canvas-linux-riscv64-gnu": "1.1.1", "@napi-rs/canvas-linux-x64-gnu": "1.1.1", "@napi-rs/canvas-linux-x64-musl": "1.1.1", "@napi-rs/canvas-win32-arm64-msvc": "1.1.1", "@napi-rs/canvas-win32-x64-msvc": "1.1.1" } }, "sha512-UyNspnx0rXclATMOBXiWgy1xtWUSUDm4UOO6+YO8xzyVKaZRpvK+SlJSCtRoSI9J/mEqklJiPYtroN1B+hgLXg=="],++ "@napi-rs/canvas-android-arm64": ["@napi-rs/[email protected]", "", { "os": "android", "cpu": "arm64" }, "sha512-rSEp3y+/YXw6TxSx4/NHSAFxumZrkMoXy2WiVqpKGT8oF5GHOUDzTKj45e5cvzophX4iFaxwKs3+/gNkJ7FmzQ=="],++ "@napi-rs/canvas-darwin-arm64": ["@napi-rs/[email protected]", "", { "os": "darwin", "cpu": "arm64" }, "sha512-NrPTZWpu0ywOGdp9JBDi46gABUzDJK6IzlP7cOEwaAuVVFM8KRakUWk12RK3YQ/Ea5FrNVTWUFTmkXVk4RfHqg=="],++ "@napi-rs/canvas-darwin-x64": ["@napi-rs/[email protected]", "", { "os": "darwin", "cpu": "x64" }, "sha512-p3DOT8VBfu8cR3SVBUs6cEzJmzwOUQkNfo1S4nKLgeKDsSlvn2oZsRaa9m0lfMccn1WbwtgKCEpJXmHhp++Zrg=="],++ "@napi-rs/canvas-linux-arm-gnueabihf": ["@napi-rs/[email protected]", "", { "os": "linux", "cpu": "arm" }, "sha512-YWGJfMa8TtEhsHd/kDiyBFwT/dAbRQiXwsm0tDev4H5cJiyOk08CC83JihrwnUsePGjIvxC8/8g/zqKKuqjpQA=="],++ "@napi-rs/canvas-linux-arm64-gnu": ["@napi-rs/[email protected]", "", { "os": "linux", "cpu": "arm64" }, "sha512-q1HBkNmB9mc6SF6uSz2492qSgsB46MqS+n3bPbPCE0kUXmWAPkH9vDADeawbhepQYn8RhlV2V/P5u6nykFXbuQ=="],++ "@napi-rs/canvas-linux-arm64-musl": ["@napi-rs/[email protected]", "", { "os": "linux", "cpu": "arm64" }, "sha512-aF4RkTp2T45fERFPCIqbxeKVhvhHuXeyyk5/jdJ+N0tGLZy4NvMkIrBWt6GOCmAQ7H0G3M/O03hAsc4Li52q4A=="],++ "@napi-rs/canvas-linux-riscv64-gnu": ["@napi-rs/[email protected]", "", { "os": "linux", "cpu": "none" }, "sha512-rCU4Xo5h0AQFEaa9dNr7Kxbk4gke9Uyi/I6ZXuBGYPSNWxYmWRS6DkrxaSKUJyCgA7c8l6lZBYfx/FtbJo3fMA=="],++ "@napi-rs/canvas-linux-x64-gnu": ["@napi-rs/[email protected]", "", { "os": "linux", "cpu": "x64" }, "sha512-7bZfDI9lxKqj9wJRHiSQBimCRanxDGHYE7TugnOmFJ9ScpgFSsLHFQtOH9wvmbQvBwv5nBuDBGJlG0+7iGkN+w=="],++ "@napi-rs/canvas-linux-x64-musl": ["@napi-rs/[email protected]", "", { "os": "linux", "cpu": "x64" }, "sha512-xaFof2p0aO7C7ziMCLeueve09PVEKYCebljLTL3nyxoaRsYpEnBrUBP1aVpfD1Nk464dc7/wPV23fkHdOBie2g=="],++ "@napi-rs/canvas-win32-arm64-msvc": ["@napi-rs/[email protected]", "", { "os": "win32", "cpu": "arm64" }, "sha512-wOLX/WRwWr0xGj2hnDf/t3tZfPlzzL9rGPsO1UnYSuNbRzwas/hC8JXnuhaEs8eCw+J+W4zxOJiVF4RxkvcMfw=="],++ "@napi-rs/canvas-win32-x64-msvc": ["@napi-rs/[email protected]", "", { "os": "win32", "cpu": "x64" }, "sha512-6Ge1AF1SVO+Ypjaw9IPcApm95krR3GQ32HgVqlIckbN/WqUlWYS0hnb8ZIdu3e0IbutbJgd8D2qSeb2/Cdpbdw=="],+"@napi-rs/wasm-runtime": ["@napi-rs/[email protected]", "", { "dependencies": { "@tybys/wasm-util": "^0.10.3" }, "peerDependencies": { "@emnapi/core": "^1.7.1", "@emnapi/runtime": "^1.7.1" } }, "sha512-ZLv/JdUfkvOy9eCnnBaGfiO+XimbjebAeO+MRQqD/B+FR1tnRN0tpKSJHRbE8sFfS6aqsXZ67TQjfwfsxULVbg=="],"@oxc-project/types": ["@oxc-project/[email protected]", "", {}, "sha512-1a7ZKmrRTCoN1XMZ4L0PyyqrMnrNlLyPuOkdSX2MZg7IiIGRUyurNhAm73ptDOraoBcIordsIGKNPKUzy3ZmfA=="],@@ -1481,6 +1506,8 @@"pathe": ["[email protected]", "", {}, "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w=="],+ "pdfjs-dist": ["[email protected]", "", { "optionalDependencies": { "@napi-rs/canvas": "^1.0.13" } }, "sha512-vg8Pw1x+AFKy4AMDvhuWl5cOYV8d698UoEANoFFhc79hqXDnZQqnOXoxw3HG907WHOg1JYOvLhP756boddFxpA=="],+"picocolors": ["[email protected]", "", {}, "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA=="],"picomatch": ["[email protected]", "", {}, "sha512-RvwwcruNjI1ncT5xRakeyS9Lf8lcItv34KD+aif+VH9kduAyfYBipGh12274xtenIPZ119/R9BdTBa8gAwSh0A=="],diff --git a/frontend/package.json b/frontend/package.jsonindex 5e044c80..00751021 100644--- a/frontend/package.json+++ b/frontend/package.json@@ -14,6 +14,7 @@"cmdk": "^1.1.1","date-fns": "^4.4.0","elkjs": "^0.12.0",+ "pdfjs-dist": "^6.5.438","posthog-js": "^1.396.6","radix-ui": "^1.6.1","react": "^19.2.7",diff --git a/frontend/src/client.ts b/frontend/src/client.tsindex abc9c608..796aa1a8 100644--- a/frontend/src/client.ts+++ b/frontend/src/client.ts@@ -23,6 +23,7 @@ import type { ModelSwapPrompt } from "./openapi";import {ActivityApi,AgentApi,+ AssistantThreadsApi,AuthApi,BillingApi,CapabilitiesApi,@@ -476,9 +477,11 @@ export class API {signalEvents: SignalEventsApi;signalSubscriptions: SignalSubscriptionsApi;activity: ActivityApi;+ assistantThreads: AssistantThreadsApi;constructor(private cfg: Configuration) {this.activity = new ActivityApi(this.cfg);+ this.assistantThreads = new AssistantThreadsApi(this.cfg);this.mcpOauth = new McpOauthApi(this.cfg);this.agent = new AgentApi(this.cfg);this.capabilities = new CapabilitiesApi(this.cfg);diff --git a/frontend/src/components/assistant/assistant-chart.tsx b/frontend/src/components/assistant/assistant-chart.tsxnew file mode 100644index 00000000..d1aaf2c0--- /dev/null+++ b/frontend/src/components/assistant/assistant-chart.tsx@@ -0,0 +1,176 @@+import {+ Area,+ AreaChart,+ Bar,+ BarChart,+ CartesianGrid,+ Cell,+ Legend,+ Line,+ LineChart,+ Pie,+ PieChart,+ ResponsiveContainer,+ Scatter,+ ScatterChart,+ Tooltip,+ XAxis,+ YAxis,+} from "recharts";++import type { ChartNode, Row } from "./types";++const COLORS = [1, 2, 3, 4, 5].map((slot) => `var(--chart-${slot})`);+const color = (index: number) => COLORS[index % COLORS.length];+const TICK = { fill: "var(--muted-foreground)", fontSize: 11 };++/** Import through `lazyChart`, so recharts stays out of the initial bundle. A missing+ * value stays a gap: recharts draws nothing for null. */+export default function AssistantChart({ node, rows }: { node: ChartNode; rows: Row[] }) {+ const horizontal = node.kind === "horizontal-bar";+ const tooltip = (+ <Tooltip+ contentStyle={{+ background: "var(--popover)",+ border: "1px solid var(--border)",+ borderRadius: "var(--radius-sm)",+ fontSize: 12,+ }}+ cursor={{ fill: "var(--wash-raised)", stroke: "var(--border)" }}+ itemStyle={{ color: "var(--foreground)", padding: 0 }}+ labelStyle={{ color: "var(--muted-foreground)", marginBottom: 4 }}+ />+ );+ const legend = (+ <Legend iconSize={6} iconType="circle" wrapperStyle={{ fontSize: 11, paddingTop: 8 }} />+ );+ const grid = (+ <CartesianGrid+ horizontal={!horizontal}+ stroke="var(--border)"+ strokeDasharray="3 3"+ vertical={horizontal}+ />+ );+ const Frame = node.kind === "line" ? LineChart : node.kind === "area" ? AreaChart : BarChart;+ const categoryWidth = Math.min(+ 128,+ Math.max(72, ...rows.map((row) => String(row[node.x] ?? "").length * 5.5 + 12))+ );++ return (+ <div+ className="w-full px-3 pt-3 pb-3 text-xs"+ style={{ height: horizontal ? Math.min(300, Math.max(180, rows.length * 26 + 28)) : 200 }}+ >+ <ResponsiveContainer height="100%" minWidth={0} width="100%">+ {node.kind === "pie" ? (+ <PieChart accessibilityLayer>+ {tooltip}+ <Pie+ data={rows}+ dataKey={node.y[0]}+ innerRadius="48%"+ isAnimationActive={false}+ nameKey={node.x}+ outerRadius="80%"+ stroke="var(--card)"+ strokeWidth={2}+ >+ {rows.map((row, index) => (+ <Cell fill={color(index)} key={String(row[node.x])} />+ ))}+ </Pie>+ {legend}+ </PieChart>+ ) : node.kind === "scatter" ? (+ <ScatterChart accessibilityLayer margin={{ bottom: 4, left: 0, right: 12, top: 8 }}>+ <CartesianGrid stroke="var(--border)" strokeDasharray="3 3" vertical={false} />+ <XAxis+ axisLine={false}+ dataKey={node.x}+ name={node.x}+ tick={TICK}+ tickLine={false}+ type="number"+ />+ <YAxis+ axisLine={false}+ dataKey={node.y[0]}+ name={node.y[0]}+ tick={TICK}+ tickLine={false}+ type="number"+ width={40}+ />+ {tooltip}+ <Scatter data={rows} fill={color(0)} isAnimationActive={false} />+ </ScatterChart>+ ) : (+ <Frame+ accessibilityLayer+ data={rows}+ layout={horizontal ? "vertical" : "horizontal"}+ margin={{ bottom: 4, left: 0, right: 12, top: 8 }}+ >+ {grid}+ <XAxis+ axisLine={false}+ dataKey={horizontal ? undefined : node.x}+ tick={TICK}+ tickLine={false}+ tickMargin={8}+ type={horizontal ? "number" : "category"}+ />+ <YAxis+ axisLine={false}+ dataKey={horizontal ? node.x : undefined}+ tick={TICK}+ tickLine={false}+ tickMargin={8}+ type={horizontal ? "category" : "number"}+ width={horizontal ? categoryWidth : 40}+ />+ {tooltip}+ {node.y.length > 1 && legend}+ {node.y.map((series, index) =>+ node.kind === "line" ? (+ <Line+ activeDot={{ r: 4 }}+ dataKey={series}+ dot={false}+ isAnimationActive={false}+ key={series}+ stroke={color(index)}+ strokeWidth={2}+ type="linear"+ />+ ) : node.kind === "area" ? (+ <Area+ dataKey={series}+ fill={color(index)}+ fillOpacity={0.12}+ isAnimationActive={false}+ key={series}+ stackId={node.stacked ? "stack" : undefined}+ stroke={color(index)}+ type="linear"+ />+ ) : (+ <Bar+ dataKey={series}+ fill={color(index)}+ isAnimationActive={false}+ key={series}+ maxBarSize={32}+ radius={2}+ stackId={node.stacked ? "stack" : undefined}+ />+ )+ )}+ </Frame>+ )}+ </ResponsiveContainer>+ </div>+ );+}diff --git a/frontend/src/components/assistant/assistant-composer.tsx b/frontend/src/components/assistant/assistant-composer.tsxnew file mode 100644index 00000000..333dafae--- /dev/null+++ b/frontend/src/components/assistant/assistant-composer.tsx@@ -0,0 +1,280 @@+import { useRef, useState } from "react";++import { useMutation, useQueryClient } from "@tanstack/react-query";++import apiClient from "@/client";+import { Attachment } from "@/components/datasets/attachment";+import { Alert } from "@/components/ui/alert";+import { Button } from "@/components/ui/button";+import { Card } from "@/components/ui/card";+import { Icon } from "@/components/ui/icons";+import { Popover, PopoverContent, PopoverTrigger } from "@/components/ui/popover";+import { Spinner } from "@/components/ui/spinner";+import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip";+import { sendToDataset } from "@/hooks/use-assistant-thread";+import { activeCellOf, datasetDisplayName, invalidateDataset } from "@/hooks/use-datasets";+import { useGuestGate } from "@/hooks/use-guest-gate";+import { useDatasetUploads } from "@/hooks/use-uploads";+import { errorMessage } from "@/lib/notify";+import type { Dataset } from "@/openapi";+import { MessageLimit } from "./message-limit";+import { MESSAGE_CHARS } from "./types";++const ACCEPT =+ ".csv,.tsv,.json,.jsonl,.ndjson,.parquet,.gz,.pdf,.docx,.md,.txt,.png,.jpg,.jpeg,.webp";+const stripExtension = (name: string) => name.replace(/(\.[a-z0-9]+){1,2}$/i, "");++// The API takes 20 dataset versions with a message.+const MAX_REFERENCES = 20;++/** The goal a user starts from: attached files or datasets, and one sentence. Sending+ * creates the working dataset if files were attached, opens its thread and queues the+ * message; the assistant starts when the source has landed. A retry of the same request+ * repeats nothing; a changed request is a new one. */++export function AssistantComposer({+ projectId,+ datasets,+ onRemoveDataset,+ onStarted,+}: {+ projectId: string;+ /** Datasets attached from the list. Without uploads the first is the working dataset. */+ datasets: Dataset[];+ onRemoveDataset: (id: string) => void;+ onStarted: (datasetId: string) => void;+}) {+ const qc = useQueryClient();+ const guard = useGuestGate();+ const upload = useDatasetUploads();+ const fileInput = useRef<HTMLInputElement>(null);+ const [text, setText] = useState("");+ const [dragging, setDragging] = useState(false);+ const progress = useRef<{ request: string; key: string; dataset?: string }>(null);++ const uploading = upload.files.some((file) => file.status !== "ready" && file.status !== "error");+ const ready = upload.files.filter((file) => file.status === "ready");+ const start = useMutation({+ mutationFn: async (message: string) => {+ const uploads = ready.map((file) => file.uploadId!);+ const request = JSON.stringify([message, uploads, datasets.map((dataset) => dataset.id)]);+ if (progress.current?.request !== request)+ progress.current = { key: crypto.randomUUID(), request };+ const step = progress.current;+ if (!step.dataset) {+ step.dataset = uploads.length+ ? (+ await apiClient.datasets.datasetsCreate({+ datasetCreateRequest: {+ name: stripExtension(ready[0].file.name) || "Untitled dataset",+ project: projectId,+ source: { uploads },+ },+ })+ ).id+ : datasets[0].id;+ invalidateDataset(qc);+ }+ const working = step.dataset;+ const references = await Promise.all(+ datasets+ .filter((dataset) => dataset.id !== working)+ .map((dataset) => apiClient.datasets.datasetsRetrieve({ id: dataset.id }))+ );+ await sendToDataset(qc, working, {+ cells: references.flatMap((dataset) => activeCellOf(dataset)?.id ?? []),+ requestKey: step.key,+ text: message,+ });+ return working;+ },+ });++ const locked = start.isPending;+ const hasData = ready.length > 0 || datasets.length > 0;+ // The message names every attached dataset but the one it works on; the API takes 20.+ const tooMany = (ready.length > 0 ? datasets.length : datasets.length - 1) > MAX_REFERENCES;+ const sendHint = locked+ ? "Starting"+ : uploading+ ? "Uploading"+ : !hasData+ ? "No data attached"+ : tooMany+ ? `At most ${MAX_REFERENCES + (ready.length > 0 ? 0 : 1)} datasets`+ : !text.trim()+ ? "No message"+ : "Send";+ const submit = guard(() => {+ if (locked || uploading || !hasData || tooMany || !text.trim()) return;+ // Called only while this page is mounted: a start that ends later moves nobody.+ start.mutate(text.trim(), { onSuccess: onStarted });+ });+ const addFiles = guard((files: File[]) => upload.add(files));++ return (+ <Card+ className="assistant-surface assistant-composer w-full p-1.5 data-[dragging=true]:border-ring"+ data-dragging={dragging}+ >+ <form+ aria-label="Start with the assistant"+ className="assistant-chat-inner overflow-hidden border border-border/70 bg-muted"+ onDragLeave={() => setDragging(false)}+ onDragOver={(event) => {+ event.preventDefault();+ setDragging(true);+ }}+ onDrop={(event) => {+ event.preventDefault();+ setDragging(false);+ addFiles(Array.from(event.dataTransfer.files));+ }}+ onSubmit={(event) => {+ event.preventDefault();+ submit();+ }}+ >+ <span aria-hidden="true" className="assistant-prompt-mark">+ >+ </span>+ <textarea+ aria-label="What would you like to train?"+ className="assistant-chat-input block max-h-56 min-h-28 w-full resize-none border-0 bg-transparent text-sm outline-none"+ disabled={locked}+ id="assistant-intent"+ maxLength={MESSAGE_CHARS}+ onChange={(event) => setText(event.target.value)}+ onKeyDown={(event) => {+ if (event.key === "Enter" && !event.shiftKey && !event.nativeEvent.isComposing) {+ event.preventDefault();+ submit();+ }+ }}+ onPaste={(event) => {+ if (event.clipboardData.files.length) {+ event.preventDefault();+ addFiles(Array.from(event.clipboardData.files));+ }+ }}+ placeholder="What would you like to train?"+ value={text}+ />+ {text.length >= MESSAGE_CHARS && <MessageLimit />}+ {start.error && (+ <div className="flex items-center gap-2 px-3 pb-2">+ <Alert className="w-auto flex-1">+ {errorMessage(start.error, "The request could not be started.")}+ </Alert>+ <Button onClick={submit} size="xs" type="button" variant="secondary">+ Retry+ </Button>+ </div>+ )}+ <div className="flex min-w-0 items-center gap-2 px-3 pt-1 pb-3">+ <input+ accept={ACCEPT}+ aria-label="Attach dataset files"+ className="hidden"+ disabled={locked}+ multiple+ onChange={(event) => {+ addFiles(Array.from(event.target.files ?? []));+ event.target.value = "";+ }}+ ref={fileInput}+ type="file"+ />+ <Tooltip>+ <TooltipTrigger asChild>+ <Button+ aria-label="Attach files"+ disabled={locked}+ onClick={guard(() => fileInput.current?.click())}+ size="icon-sm"+ type="button"+ variant="outline"+ >+ <Icon.add />+ </Button>+ </TooltipTrigger>+ <TooltipContent>Attach files</TooltipContent>+ </Tooltip>+ <ul+ aria-label="Attached data"+ className="assistant-attachments flex min-w-0 flex-1 items-center gap-1.5 overflow-x-auto"+ >+ {datasets.map((dataset, index) => (+ <li+ className="assistant-attachment flex h-7 max-w-44 shrink-0 items-center gap-1 rounded-sm border border-border/70 bg-card pr-0.5 pl-1.5 text-xs text-muted-foreground"+ key={dataset.id}+ >+ <Popover>+ <PopoverTrigger asChild>+ <button+ aria-label={`Dataset details: ${datasetDisplayName(dataset)}`}+ className="flex min-w-0 items-center gap-1.5 rounded-sm outline-none focus-visible:ring-2 focus-visible:ring-ring/60"+ type="button"+ >+ <Icon.dataset className="size-3.5 shrink-0 text-cat-2" />+ <span className="truncate">{datasetDisplayName(dataset)}</span>+ </button>+ </PopoverTrigger>+ <PopoverContent align="start" className="w-64 space-y-2 p-3 text-xs" side="top">+ <p className="break-words font-medium">{datasetDisplayName(dataset)}</p>+ <p className="text-muted-foreground">+ {dataset.activeVersion} · {dataset.rows.toLocaleString()} rows+ </p>+ <p className="text-muted-foreground">+ {index === 0 && !upload.files.length+ ? "Working dataset"+ : "Reference dataset"}+ </p>+ </PopoverContent>+ </Popover>+ <Button+ aria-label={`Remove ${datasetDisplayName(dataset)} from chat`}+ className="assistant-attachment-remove text-muted-foreground transition-opacity"+ disabled={locked}+ onClick={() => onRemoveDataset(dataset.id)}+ size="icon-xs"+ type="button"+ variant="ghost"+ >+ <Icon.close />+ </Button>+ </li>+ ))}+ {upload.files.map((entry) => (+ <Attachment+ compact+ disabled={locked}+ entry={entry}+ key={entry.id}+ onRemove={() => upload.remove(entry.id)}+ onRetry={() => upload.retry(entry)}+ />+ ))}+ </ul>+ <Tooltip>+ <TooltipTrigger asChild>+ <span className="inline-flex shrink-0">+ <Button+ className="disabled:text-muted-foreground"+ disabled={locked || uploading || !hasData || tooMany || !text.trim()}+ size="sm"+ type="submit"+ variant="secondary"+ >+ {locked || uploading ? <Spinner size="sm" /> : <Icon.send />}+ Send+ </Button>+ </span>+ </TooltipTrigger>+ <TooltipContent>{sendHint}</TooltipContent>+ </Tooltip>+ </div>+ </form>+ </Card>+ );+}diff --git a/frontend/src/components/assistant/assistant-dock.tsx b/frontend/src/components/assistant/assistant-dock.tsxnew file mode 100644index 00000000..b4c5548d--- /dev/null+++ b/frontend/src/components/assistant/assistant-dock.tsx@@ -0,0 +1,438 @@+import { type CSSProperties, useCallback, useId, useMemo, useRef, useState } from "react";+import { flushSync } from "react-dom";++import { useNavigate } from "@tanstack/react-router";++import apiClient from "@/client";+import { Alert } from "@/components/ui/alert";+import { Button } from "@/components/ui/button";+import { Card } from "@/components/ui/card";+import { Icon } from "@/components/ui/icons";+import { Spinner } from "@/components/ui/spinner";+import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip";+import type { useAssistantThread } from "@/hooks/use-assistant-thread";+import { useGuestGate } from "@/hooks/use-guest-gate";+import { usePersistedState } from "@/hooks/use-persisted-state";+import { errorMessage } from "@/lib/notify";+import type { Cell } from "@/openapi";+import { AssistantQueue } from "./assistant-queue";+import { answerKey, type ResultActions } from "./assistant-result";+import { AssistantTranscript, runningLabel } from "./assistant-transcript";+import { MessageLimit } from "./message-limit";+import { PANEL_WIDTH, PanelResize } from "./panel-resize";+import {+ type AssistantEvent,+ type Interaction,+ MESSAGE_CHARS,+ type QuestionNode,+ type ResultNode,+} from "./types";++const PHONE = "(max-width: 767px)";++function* nodesOf(node: ResultNode): Generator<ResultNode> {+ yield node;+ if ("children" in node) for (const child of node.children) yield* nodesOf(child);+ if (node.type === "Tabs")+ for (const tab of node.tabs) for (const child of tab.children) yield* nodesOf(child);+}++/** The newest unanswered question with one text field: the composer can answer it. */+function openQuestion(events: AssistantEvent[], answered: ReadonlySet<string>) {+ for (const event of [...events].reverse()) {+ if (event.kind !== "tool_result" || !event.presentation) continue;+ const call = event.payload.call;+ for (const node of nodesOf(event.presentation.root))+ if (+ node.type === "Question" &&+ node.fields.length === 1 &&+ node.fields[0].type === "text" &&+ !answered.has(answerKey(call, node.id))+ )+ return { call, node: node as QuestionNode };+ return null;+ }+ return null;+}++function statusOf(+ assistant: ReturnType<typeof useAssistantThread>,+ active: boolean,+ stopping: boolean+) {+ if (stopping) return "Stopping";+ const last = assistant.events.at(-1);+ if (active) {+ // A message that waits for the dataset's source to land: no step runs yet.+ if (assistant.thread?.state === "idle") return "Queued";+ return runningLabel(assistant.events) ?? assistant.draft?.steps.at(-1) ?? "Working";+ }+ if (last?.kind === "status")+ return { failed: "Run failed", interrupted: "Interrupted", stopped: "Stopped" }[+ last.payload.state+ ];+ return last ? "Complete" : "Ask about this data";+}++export function AssistantDock({+ assistant,+ projectId,+ datasetId,+ cells,+ selectedCell,+ onSelectCell,+}: {+ assistant: ReturnType<typeof useAssistantThread>;+ projectId: string;+ datasetId: string;+ cells: Cell[];+ selectedCell: string | null;+ onSelectCell: (id: string) => void;+}) {+ const navigate = useNavigate();+ const guard = useGuestGate();+ const panelId = useId();+ const bodyId = useId();+ const textarea = useRef<HTMLTextAreaElement>(null);+ const [text, setText] = useState("");+ const [expanded, setExpanded] = useState(false);+ const [sent, setSent] = useState(0);+ const [panel, setPanel] = useState(false);+ const [keptWidth, keepWidth] = usePersistedState("assistant:panelWidth", PANEL_WIDTH.default);+ const [draggedWidth, setDraggedWidth] = useState<number | null>(null);+ // A retry of the same message is the same request; a changed message is a new one.+ const request = useRef<{ key: string; body: string } | null>(null);++ const { thread, events, send, stop } = assistant;+ const queue = thread?.queue ?? [];+ // Members share the conversation: a teammate's message carries their name.+ const participants = thread?.participants;+ const teammates = useMemo(+ () =>+ new Map((participants ?? []).filter((who) => !who.me).map((who) => [who.user, who.email])),+ [participants]+ );+ const active = (thread?.state ?? "idle") !== "idle" || queue.length > 0;+ const stopping = !!thread?.stopRequested || stop.isPending;+ const selected = cells.find((cell) => cell.id === selectedCell);+ const answered = useMemo(() => {+ const keys = new Set<string>();+ const add = (given: Interaction | null | undefined) =>+ given && keys.add(answerKey(given.call, given.id));+ for (const event of events) if (event.kind === "user") add(event.payload.interaction);+ for (const message of queue) add(message.interaction);+ return keys;+ }, [events, queue]);+ const question = useMemo(() => openQuestion(events, answered), [events, answered]);+ const status = statusOf(assistant, active, stopping);++ const collapse = () => {+ setPanel(false);+ setDraggedWidth(null);+ setExpanded(false);+ textarea.current?.blur();+ };+ const deliver = (+ message: string,+ interaction?: Interaction,+ restore = false,+ onSent?: () => void+ ) => {+ const body = { cells: selected ? [selected.id] : [], interaction, text: message };+ const signature = JSON.stringify(body);+ if (request.current?.body !== signature)+ request.current = { body: signature, key: crypto.randomUUID() };+ send.mutate(+ { ...body, requestKey: request.current.key },+ {+ // Only an untouched composer gets its text back.+ onError: () => restore && setText((current) => current || message),+ onSuccess: () => {+ request.current = null;+ setSent((count) => count + 1);+ onSent?.();+ setPanel(true);+ setExpanded(true);+ },+ }+ );+ };+ const submit = guard(() => {+ const message = text.trim();+ if (!message || send.isPending || stopping) return;+ setText("");+ const field = question?.node.fields[0].name;+ deliver(+ message,+ question && field+ ? { call: question.call, id: question.node.id, values: { [field]: message } }+ : undefined,+ true+ );+ });+ // The transcript re-renders when its actions change: these read the newest handlers+ // through a ref, so a keystroke in the composer changes nothing it sees.+ const handlers = useRef({ collapse, deliver, guard });+ handlers.current = { collapse, deliver, guard };+ const threadId = thread?.id;+ const sending = send.isPending;+ // Its own identity: an image loads again whenever this function changes.+ const loadImage = useCallback(+ (name: string) =>+ apiClient.assistantThreads.assistantThreadsImagesRetrieve({ id: threadId!, name }),+ [threadId]+ );+ const actions: ResultActions = useMemo(+ () => ({+ answered,+ loadImage,+ onAnswer: (message, interaction, onSent) =>+ handlers.current.guard(() =>+ handlers.current.deliver(message, interaction, false, onSent)+ )(),+ onCell: (cell, dataset) => {+ if (dataset === datasetId || cells.some((item) => item.id === cell)) {+ if (window.matchMedia(PHONE).matches) handlers.current.collapse();+ onSelectCell(cell);+ } else+ void navigate({+ params: { datasetId: dataset },+ search: { cell, projectId },+ to: "/datasets/$datasetId",+ });+ },+ onTrain: (dataset) =>+ void navigate({ search: { datasetId: dataset, projectId, train: true }, to: "/training" }),+ sending,+ }),+ [answered, cells, datasetId, loadImage, navigate, onSelectCell, projectId, sending]+ );+ const sendHint = stopping ? "Stopping" : active ? "Queue a follow-up" : "Send message";++ return (+ <Card+ aria-label="Assistant chat"+ className="assistant-surface assistant-dock absolute bottom-3 z-20 flex min-h-0 flex-col gap-2 overflow-hidden bg-muted p-1.5"+ data-expanded={expanded}+ data-panel={panel}+ data-resizing={draggedWidth !== null}+ id={panelId}+ onBlurCapture={(event) => {+ if (+ !panel &&+ !event.currentTarget.contains(event.relatedTarget) &&+ !event.currentTarget.matches(":hover")+ )+ setExpanded(false);+ }}+ onFocusCapture={() => setExpanded(true)}+ onKeyDown={(event) => {+ // React sends keys from portaled menus here too, and a field's own Escape is not ours.+ const target = event.target as HTMLElement;+ const field = target !== textarea.current && target.matches("input, textarea, select");+ if (event.key !== "Escape" || field || !event.currentTarget.contains(target)) return;+ event.preventDefault();+ collapse();+ }}+ onMouseEnter={() => setExpanded(true)}+ onMouseLeave={(event) => {+ if (!panel && !event.currentTarget.contains(document.activeElement)) setExpanded(false);+ }}+ role="region"+ style={{ "--assistant-panel-width": `${draggedWidth ?? keptWidth}px` } as CSSProperties}+ >+ {panel && (+ <AssistantTranscript+ actions={actions}+ active={active}+ activity={active && !assistant.draft ? status : undefined}+ cells={cells}+ draft={assistant.draft}+ events={events}+ onSelectCell={(id) => {+ if (window.matchMedia(PHONE).matches) collapse();+ onSelectCell(id);+ }}+ sent={sent}+ teammates={teammates}+ />+ )}+ {expanded && assistant.error && (+ <Alert className="w-auto text-xs">+ {errorMessage(assistant.error, "The conversation is not available.")}+ </Alert>+ )}+ <div className="assistant-composer-stack flex min-w-0 shrink-0 flex-col gap-1">+ {expanded && (+ <AssistantQueue+ // A change in flight holds the revision the next one needs.+ disabled={stopping || assistant.changeQueued.isPending}+ messages={queue}+ onChange={guard((change) => assistant.changeQueued.mutate(change))}+ teammates={teammates}+ />+ )}+ <form+ aria-label="Message the assistant"+ className="assistant-chat-inner shrink-0 overflow-hidden border border-border bg-popover"+ onSubmit={(event) => {+ event.preventDefault();+ submit();+ }}+ >+ <span aria-hidden="true" className="assistant-prompt-mark">+ >+ </span>+ <div className="assistant-dock-body" id={bodyId} inert={!expanded}>+ <div className="min-h-0 overflow-hidden">+ <textarea+ aria-label="Message"+ className="assistant-chat-input block max-h-24 min-h-10 w-full resize-none border-0 bg-transparent text-xs leading-4 outline-none"+ maxLength={MESSAGE_CHARS}+ onChange={(event) => setText(event.target.value)}+ onKeyDown={(event) => {+ const plain =+ !event.shiftKey && !event.altKey && !event.ctrlKey && !event.metaKey;+ if (event.nativeEvent.isComposing || !plain) return;+ const suggestion = question?.node.fields[0].placeholder;+ if (event.key === "Tab" && suggestion && !text) {+ event.preventDefault();+ setText(suggestion);+ }+ if (event.key === "Enter") {+ event.preventDefault();+ submit();+ }+ }}+ placeholder={+ question?.node.fields[0].placeholder ||+ (active ? "Queue a follow-up…" : "Ask about the data or describe a change…")+ }+ ref={textarea}+ value={text}+ />+ {text.length >= MESSAGE_CHARS && <MessageLimit />}+ </div>+ </div>+ <div className="assistant-dock-footer flex min-w-0 items-center gap-2">+ {expanded ? (+ <>+ {panel && (+ <Tooltip>+ <TooltipTrigger asChild>+ <Button+ aria-label="Close full conversation"+ onClick={collapse}+ size="icon-xs"+ type="button"+ variant="ghost"+ >+ <Icon.collapse />+ </Button>+ </TooltipTrigger>+ <TooltipContent>Minimize conversation</TooltipContent>+ </Tooltip>+ )}+ <div className="min-w-0 flex-1">+ {selected && (+ <Button+ className="max-w-full truncate px-0 text-xs text-muted-foreground no-underline hover:text-foreground"+ onClick={() => onSelectCell(selected.id)}+ size="xs"+ type="button"+ variant="link"+ >+ <Icon.dataset />+ {selected.title}+ </Button>+ )}+ </div>+ {active && thread && (+ <Tooltip>+ <TooltipTrigger asChild>+ <Button+ aria-label={stopping ? "Stopping…" : "Stop"}+ disabled={stopping}+ onClick={guard(() => stop.mutate())}+ size="icon-xs"+ type="button"+ variant="ghost"+ >+ {stopping ? <Spinner size="sm" /> : <Icon.stop />}+ </Button>+ </TooltipTrigger>+ <TooltipContent>Stop run</TooltipContent>+ </Tooltip>+ )}+ <Tooltip>+ <TooltipTrigger asChild>+ <span>+ <Button+ aria-label={active ? "Queue" : "Send"}+ className="px-1 no-underline"+ disabled={send.isPending || stopping}+ size="xs"+ type="submit"+ variant="link"+ >+ {send.isPending ? <Spinner size="sm" /> : <Icon.send />}+ {!active && "Send"}+ </Button>+ </span>+ </TooltipTrigger>+ <TooltipContent>{sendHint}</TooltipContent>+ </Tooltip>+ </>+ ) : (+ <Button+ aria-controls={bodyId}+ aria-expanded={false}+ aria-label="Expand assistant chat"+ className="min-w-0 flex-1 justify-start border-0 bg-transparent text-muted-foreground"+ onClick={() => {+ // The field is inert until the body is expanded in the DOM.+ flushSync(() => setExpanded(true));+ textarea.current?.focus();+ }}+ size="xs"+ type="button"+ variant="outline"+ >+ <span className="min-w-0 flex-1 truncate text-left" title={status}>+ {status}+ </span>+ </Button>+ )}+ {!panel && (+ <Tooltip>+ <TooltipTrigger asChild>+ <Button+ aria-label="Open full conversation"+ onClick={() => {+ setPanel(true);+ setExpanded(true);+ }}+ size="icon-xs"+ type="button"+ variant="ghost"+ >+ <Icon.expand />+ </Button>+ </TooltipTrigger>+ <TooltipContent>Open conversation</TooltipContent>+ </Tooltip>+ )}+ </div>+ </form>+ </div>+ {panel && (+ <PanelResize+ onCommit={keepWidth}+ onDrag={setDraggedWidth}+ panelId={panelId}+ width={draggedWidth ?? keptWidth}+ />+ )}+ </Card>+ );+}diff --git a/frontend/src/components/assistant/assistant-queue.tsx b/frontend/src/components/assistant/assistant-queue.tsxnew file mode 100644index 00000000..8f10cb17--- /dev/null+++ b/frontend/src/components/assistant/assistant-queue.tsx@@ -0,0 +1,224 @@+import { useEffect, useRef, useState } from "react";++import { Button } from "@/components/ui/button";+import { Icon } from "@/components/ui/icons";+import { Textarea } from "@/components/ui/textarea";+import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip";+import type { AssistantInput, ChangeEnum, ChangeMessageRequest } from "@/openapi";++/** Messages waiting for the run to rest. Each stays editable until the loop takes it; a+ * change carries the revision the user saw, so a taken message refuses it. */+export function AssistantQueue({+ messages,+ teammates,+ disabled,+ onChange,+}: {+ messages: AssistantInput[];+ /** Other members who wrote here, by user id. */+ teammates: ReadonlyMap<number, string>;+ disabled: boolean;+ onChange: (change: ChangeMessageRequest) => void;+}) {+ // The revision the edit started from: a message that changed since refuses the edit.+ const [editing, setEditing] = useState<{ id: string; revision: number; text: string } | null>(+ null+ );+ const dragged = useRef<AssistantInput | null>(null);+ const editor = useRef<HTMLTextAreaElement>(null);+ const editingId = editing?.id;+ useEffect(() => {+ if (editingId) editor.current?.focus();+ }, [editingId]);+ if (!messages.length) return null;++ const change = (message: AssistantInput, kind: ChangeEnum, extra = {}) =>+ onChange({ change: kind, message: message.id, revision: message.revision, ...extra });+ /** Places a message at an index of the queue without it. */+ const move = (message: AssistantInput, index: number) => {+ const others = messages.filter((item) => item.id !== message.id);+ change(message, "move", { before: others[index]?.id ?? null });+ };++ return (+ <section+ aria-label="Queued messages"+ className="max-h-32 w-full shrink-0 space-y-1 overflow-y-auto text-xs"+ >+ {messages.map((message, index) => (+ <div+ className="w-full rounded-md border border-border/70 bg-wash-raised px-2 py-1"+ key={message.id}+ onDragOver={(event) => {+ if (!disabled) event.preventDefault();+ }}+ onDrop={(event) => {+ event.preventDefault();+ if (!disabled && dragged.current) move(dragged.current, index);+ dragged.current = null;+ }}+ >+ {editing?.id === message.id ? (+ <div className="space-y-2">+ <Textarea+ aria-label="Edit queued message"+ className="min-h-16 text-xs md:text-xs"+ maxLength={16000}+ onChange={(event) => setEditing({ ...editing, text: event.target.value })}+ onKeyDown={(event) => {+ event.stopPropagation();+ if (event.key === "Escape") {+ event.preventDefault();+ setEditing(null);+ }+ if (event.key === "Enter" && !event.shiftKey && !event.nativeEvent.isComposing) {+ event.preventDefault();+ if (!disabled && editing.text.trim()) {+ change(message, "edit", {+ revision: editing.revision,+ text: editing.text.trim(),+ });+ setEditing(null);+ }+ }+ }}+ ref={editor}+ value={editing.text}+ />+ <div className="flex justify-end gap-2">+ <Button+ onClick={() => setEditing(null)}+ size="xs"+ type="button"+ variant="secondary"+ >+ Cancel edit+ </Button>+ <Button+ disabled={disabled || !editing.text.trim()}+ onClick={() => {+ change(message, "edit", {+ revision: editing.revision,+ text: editing.text.trim(),+ });+ setEditing(null);+ }}+ size="xs"+ type="button"+ variant="secondary"+ >+ Save+ </Button>+ </div>+ </div>+ ) : (+ <div className="flex items-center gap-2">+ <Tooltip>+ <TooltipTrigger asChild>+ <Button+ aria-label={`Move queued message ${index + 1}`}+ className="cursor-grab active:cursor-grabbing"+ disabled={disabled}+ draggable={!disabled}+ onDragEnd={() => {+ dragged.current = null;+ }}+ onDragStart={(event) => {+ event.dataTransfer.setData("text/plain", message.id);+ event.dataTransfer.effectAllowed = "move";+ dragged.current = message;+ }}+ onKeyDown={(event) => {+ if (event.key === "ArrowUp" && index > 0) {+ event.preventDefault();+ move(message, index - 1);+ }+ if (event.key === "ArrowDown" && index < messages.length - 1) {+ event.preventDefault();+ move(message, index + 1);+ }+ }}+ size="icon-xs"+ type="button"+ variant="ghost"+ >+ <Icon.menu />+ </Button>+ </TooltipTrigger>+ <TooltipContent>Reorder</TooltipContent>+ </Tooltip>+ <p className="min-w-0 flex-1 truncate" title={message.text}>+ {message.text}+ </p>+ {teammates.has(message.createdBy) && (+ <span+ className="max-w-32 shrink-0 truncate text-muted-foreground"+ title={teammates.get(message.createdBy)}+ >+ {teammates.get(message.createdBy)}+ </span>+ )}+ {message.urgent ? (+ <span className="shrink-0 text-muted-foreground">Sending</span>+ ) : (+ <>+ <Button+ className="px-1 font-normal text-muted-foreground no-underline"+ disabled={disabled}+ onClick={() => change(message, "send_now")}+ size="xs"+ variant="link"+ >+ <Icon.send />+ Send+ </Button>+ {/* A teammate's words are theirs to edit or remove. */}+ {!teammates.has(message.createdBy) && (+ <>+ <Tooltip>+ <TooltipTrigger asChild>+ <Button+ aria-label={`Remove queued message ${index + 1}`}+ disabled={disabled}+ onClick={() => change(message, "remove")}+ size="icon-xs"+ type="button"+ variant="ghost"+ >+ <Icon.delete />+ </Button>+ </TooltipTrigger>+ <TooltipContent>Delete</TooltipContent>+ </Tooltip>+ <Tooltip>+ <TooltipTrigger asChild>+ <Button+ aria-label={`Edit queued message ${index + 1}`}+ disabled={disabled || !!message.interaction}+ onClick={() =>+ setEditing({+ id: message.id,+ revision: message.revision,+ text: message.text,+ })+ }+ size="icon-xs"+ type="button"+ variant="ghost"+ >+ <Icon.edit />+ </Button>+ </TooltipTrigger>+ <TooltipContent>Edit</TooltipContent>+ </Tooltip>+ </>+ )}+ </>+ )}+ </div>+ )}+ </div>+ ))}+ </section>+ );+}diff --git a/frontend/src/components/assistant/assistant-result.tsx b/frontend/src/components/assistant/assistant-result.tsxnew file mode 100644index 00000000..60f09940--- /dev/null+++ b/frontend/src/components/assistant/assistant-result.tsx@@ -0,0 +1,633 @@+import { createContext, type ReactNode, useContext, useEffect, useMemo, useState } from "react";++import { Button } from "@/components/ui/button";+import { Checkbox } from "@/components/ui/checkbox";+import { Icon } from "@/components/ui/icons";+import { Input } from "@/components/ui/input";+import { Label } from "@/components/ui/label";+import { lazyChart } from "@/components/ui/lazy-chart";+import { MarkdownContent } from "@/components/ui/markdown";+import {+ Select,+ SelectContent,+ SelectItem,+ SelectTrigger,+ SelectValue,+} from "@/components/ui/select";+import { Skeleton } from "@/components/ui/skeleton";+import { SortableHeader } from "@/components/ui/sortable-header";+import { Table, TableBody, TableCell, TableHeader, TableRow } from "@/components/ui/table";+import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs";+import { Textarea } from "@/components/ui/textarea";+import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip";+import { useTableSort } from "@/hooks/use-table-sort";+import { cn } from "@/lib/utils";+import type {+ ChartNode,+ ChoicesNode,+ Interaction,+ Presentation,+ QuestionNode,+ ResultNode,+ TableNode,+} from "./types";++const PAGE_ROWS = 10;+const AssistantChart = lazyChart(() => import("./assistant-chart"), { minHeight: 200 });++/** What identifies one Question or Choices in a thread: the model may reuse an id. */+export const answerKey = (call: string, id: string) => `${call}:${id}`;++export interface ResultActions {+ /** The `answerKey` of every Question and Choices the user already answered. */+ answered: ReadonlySet<string>;+ sending: boolean;+ /** ``onSent`` runs once the answer is queued. */+ onAnswer: (text: string, interaction: Interaction, onSent?: () => void) => void;+ onCell: (cell: string, dataset: string) => void;+ onTrain: (dataset: string) => void;+ /** The bytes of an image this thread retained, by content name. */+ loadImage: (name: string) => Promise<Blob>;+}++const Context = createContext<{+ call: string;+ presentation: Presentation;+ actions: ResultActions;+} | null>(null);+const useResult = () => useContext(Context)!;++function CellChip({ id, label }: { id: string; label: string }) {+ const { presentation, actions } = useResult();+ const cell = presentation.cells[id];+ if (!cell) return <span className="text-muted-foreground">Version unavailable</span>;+ return (+ <div className="flex min-w-0 flex-wrap items-center gap-2">+ <Tooltip>+ <TooltipTrigger asChild>+ <Button+ className="min-w-0 max-w-full gap-1 text-xs font-normal"+ onClick={() => actions.onCell(id, cell.dataset)}+ size="xs"+ variant="secondary"+ >+ <Icon.dataset className="size-3 shrink-0 text-cat-2" />+ <span className="truncate" title={label || cell.name}>+ {label || cell.name}+ </span>+ </Button>+ </TooltipTrigger>+ <TooltipContent>+ {cell.title} · {cell.rows.toLocaleString()} rows+ </TooltipContent>+ </Tooltip>+ <Button onClick={() => actions.onTrain(cell.dataset)} size="xs">+ <Icon.training />+ Train+ </Button>+ </div>+ );+}++function ResultTable({ node, embedded = false }: { node: TableNode; embedded?: boolean }) {+ const { presentation } = useResult();+ const rows = presentation.data[node.data] ?? [];+ const columns = node.columns.length ? node.columns : Object.keys(rows[0] ?? {});+ const [filter, setFilter] = useState("");+ const [page, setPage] = useState(0);+ const { onSort, sort, sortRows } = useTableSort<string>();+ const filtered = useMemo(() => {+ const needle = filter.trim().toLowerCase();+ const kept = needle+ ? rows.filter((row) =>+ columns.some((column) =>+ String(row[column] ?? "")+ .toLowerCase()+ .includes(needle)+ )+ )+ : rows;+ return sortRows(kept, (row, key) => row[key]);+ }, [columns, filter, rows, sortRows]);+ const pages = Math.ceil(filtered.length / PAGE_ROWS);+ const current = Math.min(page, Math.max(0, pages - 1));+ const numeric = (column: string) => rows.some((row) => typeof row[column] === "number");+ const download = () => {+ const url = URL.createObjectURL(+ new Blob([JSON.stringify(filtered, null, 2)], { type: "application/json" })+ );+ Object.assign(document.createElement("a"), {+ download: `${node.data}.json`,+ href: url,+ }).click();+ URL.revokeObjectURL(url);+ };++ return (+ <figure aria-label={`${node.title} table`} className="min-w-0">+ <div className={cn("overflow-hidden", !embedded && "rounded-sm border border-border")}>+ <div className="flex items-center justify-between gap-3 border-b border-border/70 px-3 py-2">+ {!embedded && <div className="min-w-0 flex-1 text-sm font-semibold">{node.title}</div>}+ <div className="ml-auto flex w-44 max-w-[55%] shrink-0 items-stretch overflow-hidden rounded-sm border border-border bg-control focus-within:ring-2 focus-within:ring-ring/60">+ <Input+ aria-label={`Search ${node.title}`}+ className="min-w-0 flex-1 rounded-none border-0 focus-visible:ring-0"+ onChange={(event) => {+ setFilter(event.target.value);+ setPage(0);+ }}+ placeholder="Filter rows…"+ value={filter}+ />+ <Tooltip>+ <TooltipTrigger asChild>+ <Button+ aria-label="Download JSON"+ className="shrink-0 rounded-none border-0 border-l border-l-border text-muted-foreground"+ onClick={download}+ size="icon-sm"+ variant="ghost"+ >+ <Icon.download />+ </Button>+ </TooltipTrigger>+ <TooltipContent>Download JSON</TooltipContent>+ </Tooltip>+ </div>+ </div>+ <div className="overflow-x-auto">+ <Table>+ <TableHeader>+ <TableRow className="hover:bg-transparent">+ {columns.map((column) => (+ <SortableHeader+ className={cn(numeric(column) && "text-right")}+ key={column}+ label={column}+ onSort={onSort}+ sort={sort}+ sortKey={column}+ />+ ))}+ </TableRow>+ </TableHeader>+ <TableBody>+ {filtered.slice(current * PAGE_ROWS, (current + 1) * PAGE_ROWS).map((row, index) => (+ <TableRow key={index}>+ {columns.map((column) => (+ <TableCell+ className={cn(+ "tabular-nums",+ typeof row[column] === "number" && "text-right"+ )}+ key={column}+ >+ {row[column] == null || row[column] === "" ? (+ <span className="text-muted-foreground">—</span>+ ) : (+ String(row[column])+ )}+ </TableCell>+ ))}+ </TableRow>+ ))}+ </TableBody>+ </Table>+ </div>+ {!filtered.length && (+ <p className="px-3 py-2 text-xs text-muted-foreground">No matching rows</p>+ )}+ {pages > 1 && (+ <div className="flex items-center justify-end gap-2 border-t border-border/70 px-3 py-2 text-xs text-muted-foreground">+ <span className="tabular-nums">+ {current + 1} of {pages}+ </span>+ <Button+ aria-label="Previous rows"+ disabled={current === 0}+ onClick={() => setPage(current - 1)}+ size="icon-xs"+ variant="ghost"+ >+ <Icon.chevronLeft />+ </Button>+ <Button+ aria-label="Next rows"+ disabled={current >= pages - 1}+ onClick={() => setPage(current + 1)}+ size="icon-xs"+ variant="ghost"+ >+ <Icon.chevronRight />+ </Button>+ </div>+ )}+ </div>+ </figure>+ );+}++function ResultChart({ node }: { node: ChartNode }) {+ const { presentation } = useResult();+ const rows = presentation.data[node.data];+ if (!rows?.length) return <p className="text-xs text-muted-foreground">No chart data</p>;+ return (+ <figure aria-label={node.title} className="min-w-0">+ <Tabs className="overflow-hidden rounded-sm border border-border" defaultValue="chart">+ <div className="flex items-center justify-between gap-3 border-b border-border/70 px-3 py-2">+ <div className="min-w-0">+ <p className="text-sm">{node.title}</p>+ {(node.x_label || node.y_label) && (+ <p className="text-xs text-muted-foreground">+ {[node.x_label, node.y_label].filter(Boolean).join(" · ")}+ </p>+ )}+ </div>+ <TabsList aria-label={`${node.title} view`} className="h-7 shrink-0">+ <TabsTrigger className="px-2 py-0.5 text-xs" value="chart">+ Chart+ </TabsTrigger>+ <TabsTrigger className="px-2 py-0.5 text-xs" value="table">+ Table+ </TabsTrigger>+ </TabsList>+ </div>+ <TabsContent className="mt-0" value="chart">+ <AssistantChart node={node} rows={rows} />+ </TabsContent>+ <TabsContent className="mt-0" value="table">+ <ResultTable+ embedded+ node={{+ columns: [node.x, ...node.y],+ data: node.data,+ title: node.title,+ type: "Table",+ }}+ />+ </TabsContent>+ </Tabs>+ </figure>+ );+}++function Metric({ node }: { node: Extract<ResultNode, { type: "Metric" }> }) {+ const value = useResult().presentation.data[node.data]?.[0]?.[node.key];+ const shown =+ value == null+ ? "Not measured"+ : node.format === "percent" && typeof value === "number"+ ? `${(value * 100).toLocaleString(undefined, { maximumFractionDigits: 1 })}%`+ : typeof value === "number"+ ? value.toLocaleString()+ : String(value);+ return (+ <figure aria-label={node.label} className="min-w-0">+ <div className="text-xs text-muted-foreground">{node.label}</div>+ <div className="mt-1 text-lg tabular-nums">{shown}</div>+ </figure>+ );+}++function ResultImage({ node }: { node: Extract<ResultNode, { type: "Image" }> }) {+ const { presentation, actions } = useResult();+ const name = presentation.images[node.image];+ const [url, setUrl] = useState<string>();+ const [failed, setFailed] = useState(false);+ const { loadImage } = actions;+ useEffect(() => {+ let made: string | undefined;+ let gone = false;+ loadImage(name).then(+ (blob) => {+ if (gone) return;+ made = URL.createObjectURL(blob);+ setUrl(made);+ },+ () => setFailed(true)+ );+ return () => {+ gone = true;+ if (made) URL.revokeObjectURL(made);+ };+ }, [loadImage, name]);+ return (+ <figure+ aria-label={node.title}+ className="min-w-0 overflow-hidden rounded-sm border border-border"+ >+ <figcaption className="border-b border-border/70 px-3 py-2 text-sm">{node.title}</figcaption>+ {failed ? (+ <p className="px-3 py-2 text-xs text-muted-foreground">The image could not be loaded.</p>+ ) : url ? (+ <img alt={node.title} className="max-h-96 w-full bg-card object-contain" src={url} />+ ) : (+ <Skeleton className="h-48 w-full rounded-none" />+ )}+ </figure>+ );+}++function draftOf(key: string): Record<string, unknown> {+ try {+ return JSON.parse(sessionStorage.getItem(key) ?? "{}");+ } catch {+ return {};+ }+}++function Question({ node }: { node: QuestionNode | ChoicesNode }) {+ const { actions, call } = useResult();+ const key = answerKey(call, node.id);+ // A draft outlives a closed panel, within this browser session.+ const draftKey = `assistant-answer:${key}`;+ // An unticked box is an answer: false, not a missing value.+ const [values, setValues] = useState<Record<string, unknown>>(() => ({+ ...(node.type === "Question"+ ? Object.fromEntries(+ node.fields+ .filter((field) => field.type === "boolean")+ .map((field) => [field.name, false])+ )+ : {}),+ ...draftOf(draftKey),+ }));+ const done = actions.answered.has(key);+ const disabled = done || actions.sending;+ const set = (name: string, value: unknown) =>+ setValues((old) => {+ const next = { ...old, [name]: value };+ sessionStorage.setItem(draftKey, JSON.stringify(next));+ return next;+ });+ const answer = (given: Record<string, unknown>, text: string) => {+ // The draft stays until the answer is queued: a failed send keeps it for a retry.+ actions.onAnswer(text, { call, id: node.id, values: given }, () =>+ sessionStorage.removeItem(draftKey)+ );+ };++ if (node.type === "Choices")+ return (+ <div className="space-y-3">+ <p className="text-sm">{node.prompt}</p>+ <div className="flex flex-wrap gap-2">+ {node.options.map((option) => (+ <Button+ className="h-auto max-w-full justify-start whitespace-normal py-1.5 text-left"+ disabled={disabled}+ key={option.value}+ onClick={() => answer({ choice: option.value }, option.label)}+ size="sm"+ variant="secondary"+ >+ {option.label}+ </Button>+ ))}+ </div>+ {done && <p className="text-xs text-muted-foreground">Response sent</p>}+ </div>+ );++ const missing = node.fields.some((field) => {+ const value = values[field.name];+ return (+ field.required &&+ (value == null || value === "" || (Array.isArray(value) && value.length === 0))+ );+ });+ return (+ <form+ aria-label={node.prompt}+ className="space-y-3"+ onSubmit={(event) => {+ event.preventDefault();+ const text = node.fields+ .map((field) => `${field.label}: ${String(values[field.name] ?? "")}`)+ .join("\n");+ answer(values, text);+ }}+ >+ <p className="text-sm">{node.prompt}</p>+ <fieldset className="space-y-3" disabled={disabled}>+ {node.fields.map((field) => {+ // The call is part of the id: two questions may share a field name.+ const id = `${key}-${field.name}`;+ const value = values[field.name];+ return (+ <div className="space-y-1.5" key={field.name}>+ <Label className="text-xs text-muted-foreground" htmlFor={id}>+ {field.label}+ </Label>+ {field.type === "textarea" ? (+ <Textarea+ className="min-h-16 text-sm"+ id={id}+ onChange={(event) => set(field.name, event.target.value)}+ placeholder={field.placeholder}+ value={String(value ?? "")}+ />+ ) : field.type === "select" ? (+ <Select onValueChange={(next) => set(field.name, next)} value={String(value ?? "")}>+ <SelectTrigger className="w-full" id={id} size="sm">+ <SelectValue placeholder={field.placeholder || "Select…"} />+ </SelectTrigger>+ <SelectContent>+ {field.options.map((option) => (+ <SelectItem key={option.value} value={option.value}>+ {option.label}+ </SelectItem>+ ))}+ </SelectContent>+ </Select>+ ) : field.type === "multiselect" ? (+ <div className="flex flex-wrap gap-x-4 gap-y-2">+ {field.options.map((option) => {+ const chosen = Array.isArray(value) ? (value as string[]) : [];+ return (+ <label className="flex items-center gap-2 text-xs" key={option.value}>+ <Checkbox+ checked={chosen.includes(option.value)}+ onCheckedChange={(checked) =>+ set(+ field.name,+ checked+ ? [...chosen, option.value]+ : chosen.filter((item) => item !== option.value)+ )+ }+ />+ {option.label}+ </label>+ );+ })}+ </div>+ ) : field.type === "boolean" ? (+ <Checkbox+ checked={value === true}+ id={id}+ onCheckedChange={(checked) => set(field.name, checked === true)}+ />+ ) : (+ <Input+ id={id}+ max={field.max ?? undefined}+ min={field.min ?? undefined}+ onChange={(event) =>+ set(+ field.name,+ field.type === "number" && event.target.value !== ""+ ? Number(event.target.value)+ : event.target.value+ )+ }+ placeholder={field.placeholder}+ type={field.type === "number" ? "number" : "text"}+ value={String(value ?? "")}+ />+ )}+ </div>+ );+ })}+ <Button disabled={missing} size="sm" type="submit">+ {node.submit_label || "Send"}+ </Button>+ </fieldset>+ {done && <p className="text-xs text-muted-foreground">Response sent</p>}+ </form>+ );+}++const CALLOUT = {+ error: "border-error text-error",+ info: "border-info text-muted-foreground",+ neutral: "border-border text-muted-foreground",+ success: "border-success text-success",+ warning: "border-warning text-warning",+};++function Nodes({ nodes }: { nodes: ResultNode[] }): ReactNode {+ return nodes.map((node, index) => (+ <div className="min-w-0" key={index}>+ <Node node={node} />+ </div>+ ));+}++function Node({ node }: { node: ResultNode }): ReactNode {+ switch (node.type) {+ case "Stack":+ return (+ <div+ className={cn(+ "flex min-w-0 gap-5",+ node.direction === "row" ? "flex-row flex-wrap [&>*]:min-w-0 [&>*]:flex-1" : "flex-col"+ )}+ >+ <Nodes nodes={node.children} />+ </div>+ );+ case "Text":+ return <MarkdownContent className="break-words">{node.text}</MarkdownContent>;+ case "Heading":+ return <p className="text-sm font-semibold">{node.text}</p>;+ case "Callout":+ return (+ <p className={cn("border-l-2 pl-3 text-sm leading-relaxed", CALLOUT[node.tone])}>+ {node.text}+ </p>+ );+ case "Chart":+ return <ResultChart node={node} />;+ case "Table":+ return <ResultTable node={node} />;+ case "Metric":+ return <Metric node={node} />;+ case "Image":+ return <ResultImage node={node} />;+ case "Cell":+ return <CellChip id={node.cell} label={node.label} />;+ case "Details":+ return (+ <details className="text-sm">+ <summary className="cursor-pointer text-muted-foreground hover:text-foreground">+ {node.title}+ </summary>+ <div className="mt-3 space-y-4">+ <Nodes nodes={node.children} />+ </div>+ </details>+ );+ case "Tabs":+ return (+ <Tabs defaultValue="0">+ <TabsList className="h-7 justify-start gap-3 bg-transparent p-0">+ {node.tabs.map((tab, index) => (+ <TabsTrigger+ className="px-0 py-1 text-xs data-[state=active]:bg-transparent data-[state=active]:text-primary"+ key={tab.title}+ value={String(index)}+ >+ {tab.title}+ </TabsTrigger>+ ))}+ </TabsList>+ {node.tabs.map((tab, index) => (+ <TabsContent className="space-y-4 pt-2" key={tab.title} value={String(index)}>+ <Nodes nodes={tab.children} />+ </TabsContent>+ ))}+ </Tabs>+ );+ case "Steps":+ return (+ <ol className="space-y-2 text-xs">+ {node.items.map((item, index) => (+ <li className="flex items-start gap-2" key={item.text}>+ <span className="text-muted-foreground">{index + 1}.</span>+ <span className="flex-1">{item.text}</span>+ <span+ className={cn("text-muted-foreground", item.status === "failed" && "text-error")}+ >+ {item.status}+ </span>+ </li>+ ))}+ </ol>+ );+ case "Code":+ return (+ <div className="space-y-1">+ <span className="text-xs text-muted-foreground">{node.language}</span>+ <pre className="max-h-64 overflow-auto rounded-sm bg-wash-raised p-2 text-xs leading-relaxed">+ {node.code}+ </pre>+ </div>+ );+ case "Question":+ case "Choices":+ return <Question node={node} />;+ default:+ return <p className="text-xs text-muted-foreground">This part cannot be displayed.</p>;+ }+}++export function AssistantResult({+ call,+ presentation,+ actions,+}: {+ /** The tool call that showed this result. */+ call: string;+ presentation: Presentation;+ actions: ResultActions;+}) {+ const value = useMemo(() => ({ actions, call, presentation }), [actions, call, presentation]);+ return (+ <Context.Provider value={value}>+ <div className="assistant-result min-w-0">+ <Node node={presentation.root} />+ </div>+ </Context.Provider>+ );+}diff --git a/frontend/src/components/assistant/assistant-transcript.test.ts b/frontend/src/components/assistant/assistant-transcript.test.tsnew file mode 100644index 00000000..d039a568--- /dev/null+++ b/frontend/src/components/assistant/assistant-transcript.test.ts@@ -0,0 +1,121 @@+// covers: console-logic+import { describe, expect, it } from "vitest";++import { runningLabel, stepLabel, turnsOf } from "./assistant-transcript";+import type { AssistantEvent, Presentation } from "./types";++const user = (sequence: number, text: string): AssistantEvent => ({+ kind: "user",+ payload: { cells: [], input: `i${sequence}`, interaction: null, text, user: 1 },+ sequence,+});+const reply = (sequence: number, text: string, ...calls: string[]): AssistantEvent => ({+ kind: "assistant",+ payload: { calls: calls.map((id) => ({ id, name: "run_python", raw: "{}" })), text },+ sequence,+});+const result = (+ sequence: number,+ call: string,+ ok = true,+ presentation: Presentation | null = null+): AssistantEvent => ({+ kind: "tool_result",+ payload: { call, content: {}, name: "run_python", ok },+ presentation,+ sequence,+});+const shown: Presentation = {+ cells: {},+ data: {},+ images: {},+ root: { text: "Done", type: "Text" },+};++function segmentsOf(events: AssistantEvent[], active: boolean) {+ const run = turnsOf(events, active).find((turn) => turn.kind === "run");+ return run?.kind === "run" ? run.segments : [];+}++describe("turnsOf", () => {+ it("groups tool calls of consecutive replies until text or a result separates them", () => {+ const segments = segmentsOf(+ [+ user(1, "Prepare this."),+ reply(2, "", "a"),+ result(3, "a"),+ reply(4, "", "b", "c"),+ result(5, "b"),+ result(6, "c", true, shown),+ reply(7, "Publishing.", "d"),+ result(8, "d", false),+ ],+ false+ );+ expect(segments.map((segment) => segment.kind)).toEqual(["tools", "result", "text", "tools"]);+ const [first, , , last] = segments;+ expect(first.kind === "tools" && first.steps.map((step) => step.call.id)).toEqual([+ "a",+ "b",+ "c",+ ]);+ expect(last.kind === "tools" && last.steps[0].state).toBe("Failed");+ });++ it("shows a call without a result as running only while it is the newest work", () => {+ const open = [user(1, "Go."), reply(2, "", "a")];+ const state = (events: AssistantEvent[], active: boolean) => {+ const [group] = segmentsOf(events, active);+ return group.kind === "tools" && group.steps[0].state;+ };+ expect(state(open, true)).toBe("Running");+ expect(state(open, false)).toBe("Interrupted");+ const stopped: AssistantEvent = {+ kind: "status",+ payload: { detail: "Stopped.", state: "stopped" },+ sequence: 3,+ };+ expect(state([...open, stopped], true)).toBe("Interrupted");+ });+});++describe("presented results", () => {+ it("shows what a call presented without a step for the call", () => {+ const presenting: AssistantEvent = {+ kind: "assistant",+ payload: { calls: [{ id: "p", name: "present", raw: "{}" }], text: "" },+ sequence: 2,+ };+ const done: AssistantEvent = {+ kind: "tool_result",+ payload: { call: "p", content: {}, name: "present", ok: true },+ presentation: shown,+ sequence: 3,+ };+ expect(segmentsOf([user(1, "Go"), presenting], true).map((s) => s.kind)).toEqual(["tools"]);+ expect(segmentsOf([user(1, "Go"), presenting, done], false).map((s) => s.kind)).toEqual([+ "result",+ ]);+ });+});++describe("step labels", () => {+ const call = (name: string, args: object) => ({ id: "a", name, raw: JSON.stringify(args) });++ it("names a step by the summary the model wrote, else by its tool in words", () => {+ expect(stepLabel(call("run_python", { code: "1", summary: "Counting the rows" }))).toBe(+ "Counting the rows"+ );+ expect(stepLabel(call("query_dataset", { sql: "select 1" }))).toBe("Query dataset");+ });++ it("names the step a run works on, and none once every call has its result", () => {+ const working: AssistantEvent = {+ kind: "assistant",+ payload: { calls: [call("run_python", { summary: "Counting the rows" })], text: "" },+ sequence: 2,+ };+ expect(runningLabel([user(1, "Go"), working])).toBe("Counting the rows");+ expect(runningLabel([user(1, "Go"), working, result(3, "a")])).toBeNull();+ });+});diff --git a/frontend/src/components/assistant/assistant-transcript.tsx b/frontend/src/components/assistant/assistant-transcript.tsxnew file mode 100644index 00000000..c64085f5--- /dev/null+++ b/frontend/src/components/assistant/assistant-transcript.tsx@@ -0,0 +1,489 @@+import { useCallback, useEffect, useMemo, useRef, useState } from "react";++import { ScriptCode } from "@/components/datasets/notebook/script-code";+import { Button } from "@/components/ui/button";+import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "@/components/ui/collapsible";+import { Icon } from "@/components/ui/icons";+import { MarkdownContent } from "@/components/ui/markdown";+import { Spinner } from "@/components/ui/spinner";+import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip";+import { writeClipboardText } from "@/lib/clipboard";+import { cn } from "@/lib/utils";+import type { Cell } from "@/openapi";+import { AssistantResult, type ResultActions } from "./assistant-result";+import type { AssistantEvent, Draft, Presentation, ToolCall } from "./types";++type Result = Extract<AssistantEvent, { kind: "tool_result" }>["payload"];+type Status = Extract<AssistantEvent, { kind: "status" }>["payload"];+type CallState = "Running" | "Done" | "Failed" | "Interrupted";++interface Step {+ call: ToolCall;+ state: CallState;+ result?: Result;+}++type Segment =+ | { kind: "text"; key: string; text: string }+ | { kind: "tools"; key: string; steps: Step[] }+ | { kind: "result"; key: string; call: string; presentation: Presentation }+ | { kind: "status"; key: string; status: Status }+ | { kind: "note"; key: string; text: string };++type Turn =+ | { kind: "user"; event: Extract<AssistantEvent, { kind: "user" }> }+ | { kind: "run"; key: number; segments: Segment[] };++/** A run is everything the assistant did between two user messages. Tool calls of+ * consecutive replies form one group until text or a result separates them. A call with+ * no result is running only while it is the thread's newest work; otherwise it was+ * abandoned. */+export function turnsOf(events: AssistantEvent[], active: boolean): Turn[] {+ const turns: Turn[] = [];+ const results = new Map<string, Extract<AssistantEvent, { kind: "tool_result" }>>();+ for (const event of events)+ if (event.kind === "tool_result") results.set(event.payload.call, event);+ const lastReply = [...events].reverse().find((event) => event.kind === "assistant");+ const closed = events.at(-1)?.kind === "status" || events.at(-1)?.kind === "user";+ for (const event of events) {+ if (event.kind === "user") {+ turns.push({ event, kind: "user" });+ continue;+ }+ if (event.kind === "tool_result") continue;+ let run = turns.at(-1);+ if (run?.kind !== "run") {+ run = { key: event.sequence, kind: "run", segments: [] };+ turns.push(run);+ }+ const { segments } = run;+ const key = String(event.sequence);+ if (event.kind === "status") {+ segments.push({ key, kind: "status", status: event.payload });+ continue;+ }+ if (event.kind === "summary") {+ segments.push({ key, kind: "note", text: "Earlier conversation summarized" });+ continue;+ }+ if (event.payload.text) segments.push({ key, kind: "text", text: event.payload.text });+ for (const call of event.payload.calls) {+ const answer = results.get(call.id);+ const result = answer?.payload;+ const state: CallState = result+ ? result.ok+ ? "Done"+ : "Failed"+ : active && event === lastReply && !closed+ ? "Running"+ : "Interrupted";+ const group = segments.at(-1);+ // What a call presented is on screen: a step that says so adds nothing.+ const shown = call.name === "present" && state === "Done" && !!answer?.presentation;+ if (!shown && group?.kind === "tools") group.steps.push({ call, result, state });+ else if (!shown)+ segments.push({ key: call.id, kind: "tools", steps: [{ call, result, state }] });+ if (answer?.presentation)+ segments.push({+ call: call.id,+ key: `${call.id}:result`,+ kind: "result",+ presentation: answer.presentation,+ });+ }+ }+ return turns;+}++function argumentsOf(call: ToolCall): Record<string, unknown> {+ try {+ const parsed = JSON.parse(call.raw);+ return parsed && typeof parsed === "object" ? parsed : {};+ } catch {+ return {};+ }+}++const STEP_LABELS: Record<string, string> = {+ open_toolset: "Opening more tools",+ present: "Showing the result",+ run_pipeline: "Running the transformation",+ run_python: "Running Python",+ stage_dataset: "Loading a dataset version",+};++/** What a call does, in the words the model wrote for the reader. */+export function stepLabel(call: ToolCall): string {+ const { summary } = argumentsOf(call);+ if (typeof summary === "string" && summary.trim()) return summary.trim();+ const name = call.name.replaceAll("_", " ");+ return STEP_LABELS[call.name] ?? name.charAt(0).toUpperCase() + name.slice(1);+}++/** The label of the call the run works on now, if it works on one. */+export function runningLabel(events: AssistantEvent[]): string | null {+ const answered = new Set<string>();+ for (let index = events.length - 1; index >= 0; index--) {+ const event = events[index];+ if (event.kind === "tool_result") answered.add(event.payload.call);+ else if (event.kind === "assistant") {+ const open = event.payload.calls.find((call) => !answered.has(call.id));+ return open ? stepLabel(open) : null;+ } else return null;+ }+ return null;+}++function errorOf(result: Result | undefined): string {+ if (!result || result.ok) return "";+ const content = result.content as { error?: unknown } | null;+ const error = content?.error;+ if (typeof error === "string") return error;+ if (error && typeof error === "object" && "message" in error) return String(error.message);+ return "The call failed.";+}++function ToolRow({ step }: { step: Step }) {+ const { call, result, state } = step;+ const python = call.name === "run_python";+ const ToolIcon = python ? Icon.python : call.name === "present" ? Icon.chart : Icon.terminal;+ const { summary: _summary, ...args } = argumentsOf(call);+ const code = python ? String(args.code ?? "") : JSON.stringify(args, null, 2);+ const output = python ? String((result?.content as { output?: string })?.output ?? "") : "";+ const failure = errorOf(result);+ // A presented result shows itself; a failed one shows only why.+ const showCode = call.name !== "present" && code.trim() !== "{}";+ const hasDetails = showCode || !!failure;+ const Trigger = hasDetails ? CollapsibleTrigger : "div";+ return (+ <Collapsible className="assistant-tool-row group/tool">+ <Trigger className="flex w-full min-w-0 items-start gap-2 py-1.5 text-left text-xs text-muted-foreground outline-none transition-colors hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring/60">+ <Tooltip>+ <TooltipTrigger asChild>+ <span className="flex shrink-0">+ <ToolIcon+ className={cn("size-4 shrink-0", call.name === "present" && "text-cat-4")}+ />+ </span>+ </TooltipTrigger>+ <TooltipContent>{python ? "Python" : call.name}</TooltipContent>+ </Tooltip>+ <span className="min-w-0 break-words">{stepLabel(call)}</span>+ <span+ className={cn(+ "sr-only",+ state === "Failed" && "not-sr-only text-error",+ state === "Interrupted" && "not-sr-only text-warning"+ )}+ >+ {state}+ </span>+ {hasDetails && (+ <Icon.chevronRight className="size-3 shrink-0 transition-transform group-data-[state=open]/tool:rotate-90" />+ )}+ </Trigger>+ {hasDetails && (+ <CollapsibleContent className="flex flex-col gap-2 pt-1 pb-2 ps-6">+ {showCode && <ScriptCode kind={python ? "python" : "shell"} source={code} />}+ {output && (+ <pre className="max-h-64 overflow-auto rounded-sm bg-wash-raised p-2 text-xs leading-relaxed">+ {output}+ </pre>+ )}+ {failure && <p className="break-words text-xs text-error">{failure}</p>}+ </CollapsibleContent>+ )}+ </Collapsible>+ );+}++function ToolGroup({ steps, active }: { steps: Step[]; active: boolean }) {+ const running = steps.some((step) => step.state === "Running");+ const failed = steps.some((step) => step.state === "Failed");+ const [open, setOpen] = useState<boolean>();+ const label = `${steps.length} tool ${steps.length === 1 ? "call" : "calls"}`;+ const status = running+ ? "Running"+ : failed+ ? "Failed"+ : steps.some((step) => step.state === "Interrupted")+ ? "Interrupted"+ : "Done";+ return (+ // A failure the run went on from stays in the list; only one it ended on opens it.+ <Collapsible+ onOpenChange={setOpen}+ open={open ?? (running || active || steps.at(-1)?.state === "Failed")}+ >+ <CollapsibleTrigger+ aria-label={`${label} ${status}`}+ className="group/trigger flex items-center gap-2 py-1.5 text-xs leading-none text-muted-foreground transition-colors hover:text-foreground"+ >+ {running && <Spinner size="sm" />}+ <span className="assistant-tool-count">{label}</span>+ <Icon.chevronDown className="size-3 shrink-0 -rotate-90 transition-transform group-data-[state=open]/trigger:rotate-0 motion-reduce:transition-none" />+ </CollapsibleTrigger>+ <CollapsibleContent className="ps-4">+ {steps.map((step) => (+ <ToolRow key={step.call.id} step={step} />+ ))}+ </CollapsibleContent>+ </Collapsible>+ );+}++const STATUS_NOTE = {+ failed: "text-error",+ interrupted: "text-warning",+ stopped: "text-muted-foreground",+};++export function AssistantTranscript({+ events,+ draft,+ sent,+ active,+ activity,+ cells,+ teammates,+ actions,+ onSelectCell,+}: {+ events: AssistantEvent[];+ /** Other members who wrote here, by user id. */+ teammates: ReadonlyMap<number, string>;+ draft: Draft | null;+ /** How many messages this reader sent from this page: each brings the end into view. A+ * teammate's message follows the reader's place like any other content. */+ sent: number;+ active: boolean;+ /** Shown while the run works and nothing else on screen says so. */+ activity?: string;+ cells: Cell[];+ actions: ResultActions;+ onSelectCell: (id: string) => void;+}) {+ const turns = useMemo(() => turnsOf(events, active), [events, active]);+ const viewport = useRef<HTMLDivElement>(null);+ const [atEnd, setAtEnd] = useState(true);+ const follow = useRef(true);+ const seen = useRef({ client: 0, height: 0, top: 0 });+ const scrollToEnd = useCallback(+ () => viewport.current?.scrollTo({ top: viewport.current.scrollHeight }),+ []+ );+ // Follows new content only while the reader is at the end.+ // biome-ignore lint/correctness/useExhaustiveDependencies: scrolls when the content changes+ useEffect(() => {+ if (follow.current) scrollToEnd();+ }, [events, draft, scrollToEnd]);+ // A chart, a table or an image gets its height after it is in the list, and the panel+ // changes height while it opens: the end must stay in view through both.+ useEffect(() => {+ const node = viewport.current;+ if (!node) return;+ const resized = new ResizeObserver(() => follow.current && scrollToEnd());+ resized.observe(node);+ for (const child of node.children) resized.observe(child);+ return () => resized.disconnect();+ }, [scrollToEnd]);++ // biome-ignore lint/correctness/useExhaustiveDependencies: scrolls when a message is sent+ useEffect(() => {+ follow.current = true;+ scrollToEnd();+ }, [sent, scrollToEnd]);++ return (+ <div className="assistant-history relative flex min-h-0 flex-1 flex-col">+ <div+ className="assistant-conversation min-h-0 flex-1 overflow-y-auto overscroll-contain"+ onScroll={(event) => {+ const node = event.currentTarget;+ const distance = node.scrollHeight - node.scrollTop - node.clientHeight;+ const before = seen.current;+ // Only the reader's scroll up ends the follow. Content that grows and a panel+ // that resizes also fire this event, and the reader did not leave the end.+ const left =+ node.scrollTop < before.top &&+ node.scrollHeight === before.height &&+ node.clientHeight === before.client;+ if (distance < 48) follow.current = true;+ else if (left) follow.current = false;+ seen.current = {+ client: node.clientHeight,+ height: node.scrollHeight,+ top: node.scrollTop,+ };+ setAtEnd(distance < 48 || follow.current);+ }}+ ref={viewport}+ >+ <div>+ {turns.map((turn) =>+ turn.kind === "user" ? (+ <article+ aria-label={+ teammates.has(turn.event.payload.user)+ ? `Message from ${teammates.get(turn.event.payload.user)}`+ : "Your message"+ }+ className="assistant-message min-w-0"+ data-role="user"+ key={turn.event.sequence}+ >+ {teammates.has(turn.event.payload.user) && (+ <p+ className="mb-1 truncate text-right text-xs text-muted-foreground"+ title={teammates.get(turn.event.payload.user)}+ >+ {teammates.get(turn.event.payload.user)}+ </p>+ )}+ <div className="assistant-user-prompt text-sm leading-relaxed">+ {turn.event.payload.text}+ </div>+ {turn.event.payload.cells.length > 0 && (+ <div className="mt-1 flex flex-wrap justify-end gap-x-3 gap-y-1">+ {turn.event.payload.cells.map((id) => {+ const cell = cells.find((item) => item.id === id);+ return (+ <Button+ className="max-w-full justify-start text-muted-foreground"+ disabled={!cell}+ key={id}+ onClick={() => onSelectCell(id)}+ size="xs"+ variant="secondary"+ >+ <Icon.dataset className="size-3 text-cat-2" />+ <span className="truncate" title={cell?.title}>+ {cell?.title ?? "Dataset version"}+ </span>+ </Button>+ );+ })}+ </div>+ )}+ </article>+ ) : (+ <RunTurn+ actions={actions}+ key={turn.key}+ last={turn === turns.at(-1) && active}+ segments={turn.segments}+ />+ )+ )}+ {draft && (draft.text || draft.steps.length > 0) && (+ <article aria-label="Overmind response" className="assistant-message min-w-0">+ <div className="flex min-w-0 flex-col gap-4">+ {draft.text && (+ <MarkdownContent className="break-words">{draft.text}</MarkdownContent>+ )}+ {draft.steps.length > 0 && (+ <p className="flex items-center gap-2 py-1.5 text-xs text-muted-foreground">+ <Spinner size="sm" />+ <span className="min-w-0 break-words">{draft.steps.at(-1) || "Working"}</span>+ </p>+ )}+ </div>+ </article>+ )}+ {activity && (+ <div+ aria-live="polite"+ className="flex items-center gap-2 px-3 py-3 text-xs text-muted-foreground"+ role="status"+ >+ <Spinner size="sm" />+ <span>{activity}</span>+ </div>+ )}+ {!turns.length && !draft && !activity && (+ <p className="py-2 text-xs text-muted-foreground">No messages</p>+ )}+ </div>+ </div>+ {!atEnd && (+ <Button+ aria-label="Scroll to latest message"+ className="absolute right-3 bottom-2 z-10 rounded-md border border-border bg-popover"+ onClick={() => {+ follow.current = true;+ scrollToEnd();+ }}+ size="icon-xs"+ variant="ghost"+ >+ <Icon.arrowDown />+ </Button>+ )}+ </div>+ );+}++function RunTurn({+ segments,+ last,+ actions,+}: {+ segments: Segment[];+ last: boolean;+ actions: ResultActions;+}) {+ const text = segments+ .flatMap((segment) => (segment.kind === "text" ? [segment.text] : []))+ .join("\n\n");+ return (+ <article aria-label="Overmind response" className="assistant-message min-w-0">+ <div className="flex min-w-0 flex-col gap-4">+ {segments.map((segment) =>+ segment.kind === "text" ? (+ <MarkdownContent className="break-words" key={segment.key}>+ {segment.text}+ </MarkdownContent>+ ) : segment.kind === "tools" ? (+ <ToolGroup+ active={last && segment === segments.at(-1)}+ key={segment.key}+ steps={segment.steps}+ />+ ) : segment.kind === "result" ? (+ <AssistantResult+ actions={actions}+ call={segment.call}+ key={segment.key}+ presentation={segment.presentation}+ />+ ) : segment.kind === "note" ? (+ <p className="text-xs text-muted-foreground" key={segment.key}>+ {segment.text}+ </p>+ ) : (+ <p className={cn("text-xs", STATUS_NOTE[segment.status.state])} key={segment.key}>+ {segment.status.detail}+ </p>+ )+ )}+ </div>+ {text && !last && (+ <div className="mt-2 flex items-center gap-1 text-muted-foreground">+ <Tooltip>+ <TooltipTrigger asChild>+ <Button+ aria-label="Copy response"+ onClick={() => void writeClipboardText(text)}+ size="icon-xs"+ variant="ghost"+ >+ <Icon.copy />+ </Button>+ </TooltipTrigger>+ <TooltipContent>Copy response</TooltipContent>+ </Tooltip>+ </div>+ )}+ </article>+ );+}diff --git a/frontend/src/components/assistant/message-limit.tsx b/frontend/src/components/assistant/message-limit.tsxnew file mode 100644index 00000000..96ee8203--- /dev/null+++ b/frontend/src/components/assistant/message-limit.tsx@@ -0,0 +1,10 @@+import { MESSAGE_CHARS } from "./types";++/** The input takes no more than the API accepts: say so where the text stops. */+export function MessageLimit() {+ return (+ <p className="pt-1 text-xs text-warning" role="status">+ Message limit reached: {MESSAGE_CHARS.toLocaleString("en-US")} characters+ </p>+ );+}diff --git a/frontend/src/components/assistant/panel-resize.tsx b/frontend/src/components/assistant/panel-resize.tsxnew file mode 100644index 00000000..2eaf0367--- /dev/null+++ b/frontend/src/components/assistant/panel-resize.tsx@@ -0,0 +1,68 @@+import { useRef } from "react";++export const PANEL_WIDTH = { default: 416, max: 800, min: 320 };+const KEY_STEP = 16;++/** The panel's right edge: drag, arrow keys, Home and End resize it; a double click resets.+ * A drag reports each width and ends with `null`; only `onCommit` is a kept width. */+export function PanelResize({+ panelId,+ width,+ onDrag,+ onCommit,+}: {+ panelId: string;+ width: number;+ onDrag: (width: number | null) => void;+ onCommit: (width: number) => void;+}) {+ const origin = useRef<{ x: number; width: number } | null>(null);+ const dragged = useRef(width);+ const clamp = (value: number) =>+ Math.round(Math.min(PANEL_WIDTH.max, Math.max(PANEL_WIDTH.min, value)));+ const end = () => {+ if (!origin.current) return;+ origin.current = null;+ onCommit(dragged.current);+ onDrag(null);+ };+ return (+ <div+ aria-controls={panelId}+ aria-label="Resize conversation"+ aria-orientation="vertical"+ aria-valuemax={PANEL_WIDTH.max}+ aria-valuemin={PANEL_WIDTH.min}+ aria-valuenow={width}+ className="assistant-resize-handle"+ onDoubleClick={() => onCommit(PANEL_WIDTH.default)}+ onKeyDown={(event) => {+ const next = {+ ArrowLeft: width - KEY_STEP,+ ArrowRight: width + KEY_STEP,+ End: PANEL_WIDTH.max,+ Home: PANEL_WIDTH.min,+ }[event.key];+ if (next === undefined) return;+ event.preventDefault();+ onCommit(clamp(next));+ }}+ onLostPointerCapture={end}+ onPointerCancel={end}+ onPointerDown={(event) => {+ event.currentTarget.setPointerCapture(event.pointerId);+ origin.current = { width, x: event.clientX };+ dragged.current = width;+ onDrag(width);+ }}+ onPointerMove={(event) => {+ if (!origin.current) return;+ dragged.current = clamp(origin.current.width + event.clientX - origin.current.x);+ onDrag(dragged.current);+ }}+ onPointerUp={end}+ role="separator"+ tabIndex={0}+ />+ );+}diff --git a/frontend/src/components/assistant/types.ts b/frontend/src/components/assistant/types.tsnew file mode 100644index 00000000..f102494c--- /dev/null+++ b/frontend/src/components/assistant/types.ts@@ -0,0 +1,128 @@+export interface ToolCall {+ id: string;+ name: string;+ raw: string;+}++/** An answer to one Question or Choices: the tool call that showed it and its id there. */+export interface Interaction {+ call: string;+ id: string;+ values: Record<string, unknown>;+}++export type Row = Record<string, string | number | boolean | null>;++export interface Presentation {+ root: ResultNode;+ data: Record<string, Row[]>;+ /** Image key to the content name the thread serves it under. */+ images: Record<string, string>;+ cells: Record<string, { dataset: string; title: string; rows: number; name: string }>;+}++interface Envelope<K extends string, P> {+ sequence: number;+ kind: K;+ payload: P;+}++export type AssistantEvent =+ | Envelope<+ "user",+ {+ input: string;+ /** The member who sent it: members share one conversation about a record. */+ user: number;+ text: string;+ cells: string[];+ interaction: Interaction | null;+ }+ >+ | Envelope<"assistant", { text: string; calls: ToolCall[] }>+ | (Envelope<+ "tool_result",+ {+ call: string;+ name: string;+ ok: boolean;+ content: { output?: string; error?: string; note?: string };+ }+ > & {+ presentation: Presentation | null;+ })+ | Envelope<"status", { state: "stopped" | "failed" | "interrupted"; detail: string }>+ | Envelope<"summary", { text: string; through: number }>;++/** The API refuses a longer message. */+export const MESSAGE_CHARS = 20000;++export interface Draft {+ text: string;+ /** The summary of each call the reply writes: empty until the model wrote it. */+ steps: string[];+}++interface Option {+ label: string;+ value: string;+}++interface FormField {+ name: string;+ label: string;+ type: "text" | "textarea" | "number" | "select" | "multiselect" | "boolean";+ options: Option[];+ placeholder: string;+ required: boolean;+ min: number | null;+ max: number | null;+}++export type QuestionNode = {+ type: "Question";+ id: string;+ prompt: string;+ fields: FormField[];+ submit_label: string;+};+export type ChoicesNode = { type: "Choices"; id: string; prompt: string; options: Option[] };+export type ChartNode = {+ type: "Chart";+ title: string;+ kind: "bar" | "horizontal-bar" | "line" | "area" | "pie" | "scatter";+ data: string;+ x: string;+ y: string[];+ stacked: boolean;+ x_label: string;+ y_label: string;+};+export type TableNode = { type: "Table"; title: string; data: string; columns: string[] };++/** The components the backend validates in `services/assistant/presentation.py`. */+export type ResultNode =+ | { type: "Callout"; tone: "neutral" | "info" | "success" | "warning" | "error"; text: string }+ | { type: "Cell"; cell: string; label: string }+ | ChartNode+ | ChoicesNode+ | { type: "Code"; code: string; language: string }+ | { type: "Details"; title: string; children: ResultNode[] }+ | { type: "Heading"; text: string }+ | { type: "Image"; title: string; image: string }+ | {+ type: "Metric";+ label: string;+ data: string;+ key: string;+ format: "number" | "percent" | "text";+ }+ | QuestionNode+ | { type: "Stack"; direction: "column" | "row"; children: ResultNode[] }+ | {+ type: "Steps";+ items: { status: "pending" | "running" | "completed" | "failed"; text: string }[];+ }+ | TableNode+ | { type: "Tabs"; tabs: { title: string; children: ResultNode[] }[] }+ | { type: "Text"; text: string };diff --git a/frontend/src/components/connection-scene.module.css b/frontend/src/components/connection-scene.module.cssindex 575560e4..3bfee6c7 100644--- a/frontend/src/components/connection-scene.module.css+++ b/frontend/src/components/connection-scene.module.css@@ -8,8 +8,6 @@}.art {- position: fixed;- inset: 0;overflow: hidden;pointer-events: none;mix-blend-mode: lighten;@@ -31,8 +29,9 @@}.scanlines {- position: absolute;+ position: fixed;inset: 0;+ pointer-events: none;background: repeating-linear-gradient(transparent 0 3px,color-mix(in srgb, var(--auth-text) 4%, transparent) 3px 4pxdiff --git a/frontend/src/components/connection-scene.tsx b/frontend/src/components/connection-scene.tsxindex fbc7d9ec..8aa46084 100644--- a/frontend/src/components/connection-scene.tsx+++ b/frontend/src/components/connection-scene.tsx@@ -1,6 +1,7 @@import type { CSSProperties, ReactNode } from "react";import { Card } from "@/components/ui/card";+import { cn } from "@/lib/utils";import styles from "./connection-scene.module.css";const ASTEROIDS = [@@ -11,36 +12,44 @@ const ASTEROIDS = [{ delay: -6, duration: 9, left: "38%", size: 100, top: "-2%" },];+/** The night sky behind the connection pages and the Datasets landing. It fills its+ * nearest positioned ancestor; `fixed` makes it fill the window. */+export function ConnectionBackground({ className }: { className?: string }) {+ return (+ <div aria-hidden="true" className={cn("absolute inset-0", styles.art, className)}>+ <img alt="" className={styles.landscape} src="/connection/stars-v2.jpg" />+ {ASTEROIDS.map((asteroid) => (+ <div+ className={styles.asteroid}+ key={asteroid.left}+ style={+ {+ "--delay": `${asteroid.delay}s`,+ "--duration": `${asteroid.duration}s`,+ left: asteroid.left,+ top: asteroid.top,+ } as CSSProperties+ }+ >+ <img+ alt=""+ className="rotate-12 object-contain opacity-80"+ height={asteroid.size}+ src="/connection/asteroid.png"+ width={asteroid.size}+ />+ </div>+ ))}+ <img alt="" className={styles.landscape} src="/connection/trees.png" />+ </div>+ );+}+export function ConnectionScene({ children }: { children: ReactNode }) {return (<main className={`dark ${styles.scene} bg-card text-foreground`}>- <div aria-hidden="true" className={styles.art}>- <img alt="" className={styles.landscape} src="/connection/stars-v2.jpg" />- {ASTEROIDS.map((asteroid) => (- <div- className={styles.asteroid}- key={asteroid.left}- style={- {- "--delay": `${asteroid.delay}s`,- "--duration": `${asteroid.duration}s`,- left: asteroid.left,- top: asteroid.top,- } as CSSProperties- }- >- <img- alt=""- className="rotate-12 object-contain opacity-80"- height={asteroid.size}- src="/connection/asteroid.png"- width={asteroid.size}- />- </div>- ))}- <img alt="" className={styles.landscape} src="/connection/trees.png" />- <div className={styles.scanlines} />- </div>+ <ConnectionBackground className="fixed" />+ <div aria-hidden="true" className={styles.scanlines} /><div className={styles.content}>{children}</div></main>);diff --git a/frontend/src/components/datasets/attachment.tsx b/frontend/src/components/datasets/attachment.tsxindex 3a0270a4..e5608e65 100644--- a/frontend/src/components/datasets/attachment.tsx+++ b/frontend/src/components/datasets/attachment.tsx@@ -1,11 +1,13 @@import { useEffect, useId, useState } from "react";+import { FileTypeIcon } from "@/components/file-type-icon";import { Button } from "@/components/ui/button";import { Icon } from "@/components/ui/icons";import { Popover, PopoverContent, PopoverTrigger } from "@/components/ui/popover";import { Progress } from "@/components/ui/progress";import { Spinner } from "@/components/ui/spinner";import type { DatasetUpload } from "@/hooks/use-uploads";+import { pdfThumbnail } from "@/lib/pdf-thumbnail";import { cn } from "@/lib/utils";function fileSize(bytes: number) {@@ -21,22 +23,38 @@ export function Attachment({onRemove,onRetry,detailed = false,+ compact = false,}: {entry: DatasetUpload;disabled: boolean;onRemove: () => void;onRetry: () => void;detailed?: boolean;+ compact?: boolean;}) {const statusId = useId();const isImage = /\.(png|jpe?g|webp)$/i.test(entry.file.name);const [preview, setPreview] = useState<string | null>(null);+ const isPdf = /\.pdf$/i.test(entry.file.name);useEffect(() => {- if (!isImage) return;- const url = URL.createObjectURL(entry.file);- setPreview(url);- return () => URL.revokeObjectURL(url);- }, [entry.file, isImage]);+ if (!isImage && !isPdf) return;+ let url: string | undefined;+ let gone = false;+ const show = (made: string) => {+ if (gone) URL.revokeObjectURL(made);+ else {+ url = made;+ setPreview(made);+ }+ };+ if (isImage) show(URL.createObjectURL(entry.file));+ // A PDF that cannot be drawn keeps the file icon.+ else void pdfThumbnail(entry.file).then(show, () => undefined);+ return () => {+ gone = true;+ if (url) URL.revokeObjectURL(url);+ };+ }, [entry.file, isImage, isPdf]);const working = entry.status === "uploading" || entry.status === "counting";const status = {counting: "Checking file…",@@ -51,6 +69,8 @@ export function Attachment({className={cn("flex h-8 min-w-0 max-w-full items-center rounded-sm bg-control pr-1 sm:max-w-72",detailed && "h-auto w-full gap-2 border border-border bg-muted py-1.5 sm:max-w-none",+ compact &&+ "assistant-attachment h-7 max-w-44 shrink-0 border border-border/70 bg-card pr-0.5 sm:max-w-44",entry.status === "error" && "text-destructive")}>@@ -60,29 +80,38 @@ export function Attachment({aria-label={`View ${entry.file.name}`}className={cn("flex h-8 min-w-0 flex-1 items-center gap-1.5 rounded-sm px-2 text-left text-sm outline-none transition-colors hover:bg-control-hover focus-visible:ring-2 focus-visible:ring-ring/60",- detailed && "h-auto gap-2.5"+ detailed && "h-auto gap-2.5",+ compact && "h-6 gap-2 pr-0 pl-1 text-xs text-muted-foreground hover:text-foreground")}title={`${entry.file.name} · ${fileSize(entry.file.size)} · ${status}`}type="button">- {preview && (- <img- alt=""- className="size-6 shrink-0 rounded-sm bg-background object-cover"- onError={() => setPreview(null)}- src={preview}- />- )}- <span className="shrink-0">+ <span+ className={cn(+ "grid shrink-0 place-items-center",+ compact && "size-5 overflow-hidden rounded-xs"+ )}+ >{working ? (<Spinner className="size-3.5" />) : entry.status === "error" ? (<Icon.warning className="size-3.5 text-destructive" />) : entry.status === "queued" ? (<Icon.job className="size-3.5" />- ) : !preview ? (- <Icon.file className="size-3.5" />- ) : null}+ ) : preview ? (+ <img+ alt=""+ className={cn(+ "size-6 rounded-sm bg-background",+ isPdf ? "object-contain" : "object-cover",+ compact && "size-5"+ )}+ onError={() => setPreview(null)}+ src={preview}+ />+ ) : (+ <FileTypeIcon className="size-3.5" filename={entry.file.name} />+ )}</span><span className="min-w-0 flex-1"><span className="block truncate">{entry.file.name}</span>@@ -160,7 +189,10 @@ export function Attachment({)}<Buttonaria-label={`Remove ${entry.file.name}`}- className="text-muted-foreground"+ className={cn(+ "text-muted-foreground",+ compact && "assistant-attachment-remove transition-opacity"+ )}disabled={disabled}onClick={onRemove}size="icon-xs"diff --git a/frontend/src/components/datasets/datasets-table.tsx b/frontend/src/components/datasets/datasets-table.tsxindex ed9ff34a..40d336d0 100644--- a/frontend/src/components/datasets/datasets-table.tsx+++ b/frontend/src/components/datasets/datasets-table.tsx@@ -1,12 +1,14 @@import { useMemo, useState } from "react";import { useNavigate } from "@tanstack/react-router";-import type { ColumnDef } from "@tanstack/react-table";+import type { ColumnDef, OnChangeFn, RowSelectionState } from "@tanstack/react-table";import { SOURCE_KIND_LABEL } from "@/components/datasets/badges";import { EntityRef } from "@/components/entity-ref";+import { FileTypeIcon } from "@/components/file-type-icon";import { Badge } from "@/components/ui/badge";import { Button } from "@/components/ui/button";+import { Checkbox } from "@/components/ui/checkbox";import { ConfirmDialog } from "@/components/ui/confirm-dialog";import { DataTable } from "@/components/ui/data-table";import { DateTime } from "@/components/ui/datetime";@@ -21,6 +23,7 @@ import {SelectTrigger,SelectValue,} from "@/components/ui/select";+import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip";import { useActivityHighlights } from "@/hooks/use-activity";import { datasetDisplayName, useDeleteDatasetMutation } from "@/hooks/use-datasets";import { useGuestGate } from "@/hooks/use-guest-gate";@@ -117,7 +120,7 @@ export function DatasetsToolbar({<SelectItem value="unassigned">Unassigned</SelectItem></SelectContent></Select>- {setCapabilityFilter && (+ {setCapabilityFilter && capabilityIds.length > 1 && (<Select onValueChange={setCapabilityFilter} value={capabilityFilter}><SelectTrigger aria-label="Filter by capability" className="w-[180px]" size="default"><SelectValue placeholder="All capabilities" />@@ -175,25 +178,31 @@ const sortValue = (ds: Dataset, key: SortKey): string | number => {}};-function DatasetStatus({ dataset }: { dataset: Dataset }) {+// The widest glyphs of the table's text, in pixels: an estimate must not fall short.+const CHAR_PX = 7;++function statusOf(dataset: Dataset) {const work = dataset.work;const queued =work?.status === "queued" ||(!work && dataset.state === "landing" && dataset.operation?.state === "queued");const busy = !!work || dataset.state === "running" || dataset.state === "landing";const failed = !work && dataset.state === "error";- if (!busy && !failed) {- return (- <span className="text-sm text-muted-foreground">- {dataset.activeVersion ? "Ready" : "Waiting for source"}- </span>- );- }- const label = failed- ? "Failed"- : queued- ? "Queued"- : (work?.label ?? (dataset.state === "landing" ? "Importing" : "Transforming"));+ return { busy, failed, queued, work };+}++function statusLabel(dataset: Dataset): string {+ const { busy, failed, queued, work } = statusOf(dataset);+ if (!busy && !failed) return dataset.activeVersion ? "Ready" : "Waiting for source";+ if (failed) return "Failed";+ if (queued) return "Queued";+ return work?.label ?? (dataset.state === "landing" ? "Importing" : "Transforming");+}++function DatasetStatus({ dataset }: { dataset: Dataset }) {+ const { busy, failed, queued, work } = statusOf(dataset);+ const label = statusLabel(dataset);+ if (!busy && !failed) return <span className="text-sm text-muted-foreground">{label}</span>;const completed = work?.completed;const total = work?.total;const percent =@@ -218,6 +227,7 @@ function DatasetStatus({ dataset }: { dataset: Dataset }) {function getColumns(opts: {roleWidth: number;sourceWidth: number;+ statusWidth: number;onDelete: (ds: Dataset) => void;onDeleteClick?: (e: React.MouseEvent) => void;deletePendingId?: string | null;@@ -247,8 +257,8 @@ function getColumns(opts: {header: "Status",id: "status",meta: { label: "Status", noTruncate: true },- minSize: 120,- size: 120,+ minSize: opts.statusWidth,+ size: opts.statusWidth,},{accessorFn: (row) => row.roles.join(", "),@@ -280,8 +290,8 @@ function getColumns(opts: {header: "Version",id: "version",meta: { label: "Version", orderingField: "version" },- minSize: 100,- size: 100,+ minSize: 88,+ size: 88,},{accessorFn: (row) => row.rows ?? 0,@@ -316,12 +326,13 @@ function getColumns(opts: {const extension = filename.replace(/\.gz$/i, "").match(/\.([^.]+)$/)?.[1];return (<Badge- className="min-w-0 max-w-44 gap-1.5"+ className="min-w-0 max-w-full gap-1.5"key={`${filename}:${index}`}size="chip"+ title={filename}variant="outline">- <Icon.file className="size-3 shrink-0 text-muted-foreground" />+ <FileTypeIcon className="size-3" filename={filename} /><span className="min-w-0 truncate">{filename}</span><span className="shrink-0 text-muted-foreground">{extension?.toUpperCase() ?? "File"}@@ -434,6 +445,40 @@ function getColumns(opts: {return cols;}+const ATTACH_COLUMN: ColumnDef<Dataset> = {+ cell: ({ row }) => {+ const published = !!row.original.activeVersion;+ return (+ <Tooltip>+ <TooltipTrigger asChild>+ <span className="inline-flex">+ <Checkbox+ aria-label={`Attach ${datasetDisplayName(row.original)} to chat`}+ checked={row.getIsSelected()}+ disabled={!published}+ onCheckedChange={(checked) => row.toggleSelected(checked === true)}+ onClick={(event) => event.stopPropagation()}+ />+ </span>+ </TooltipTrigger>+ <TooltipContent>+ {!published+ ? "This dataset has no published data."+ : row.getIsSelected()+ ? "Remove from chat"+ : "Attach to chat"}+ </TooltipContent>+ </Tooltip>+ );+ },+ enableResizing: false,+ enableSorting: false,+ header: "",+ id: "attach",+ meta: { label: "Attach to chat", noTruncate: true },+ size: 36,+};+export function DatasetsBrowser({datasets,search,@@ -448,7 +493,12 @@ export function DatasetsBrowser({hideCapabilityColumn,fill = true,rowSearch,+ rowSelection,+ onRowSelectionChange,}: DatasetsFilterProps & {+ /** With both set, each row gets a checkbox that attaches its dataset to the assistant. */+ rowSelection?: RowSelectionState;+ onRowSelectionChange?: OnChangeFn<RowSelectionState>;isLoading: boolean;error?: unknown;onRetry?: () => unknown;@@ -485,36 +535,55 @@ export function DatasetsBrowser({const pageRows = sorted.slice((currentPage - 1) * pageSize, currentPage * pageSize);const hasActiveFilters = roleFilter !== "all" || capabilityFilter !== "all" || !!search;- // Chip widths follow the rendered chip text, so two roles fit without truncation.+ // A column is as wide as the widest thing it shows now: a cell clips what does not fit.const roleWidth = Math.max(100,...datasets.map((dataset) =>dataset.roles.reduce((width, role, index) =>- width + (DATASET_ROLES[role] ?? role).length * 6.5 + 19 + (index ? 5 : 0),+ width + (DATASET_ROLES[role] ?? role).length * CHAR_PX + 19 + (index ? 5 : 0),16)));-+ // A status at work is a badge: an icon and padding beside its label.+ const statusWidth = Math.max(+ 120,+ ...datasets.map((dataset) => {+ const { busy, failed } = statusOf(dataset);+ return statusLabel(dataset).length * CHAR_PX + (busy || failed ? 52 : 16);+ })+ );+ // A column of dashes says nothing and costs the width the others need.+ const noCapabilities = !datasets.some((dataset) => dataset.capability);const sourceWidth = datasets.some((dataset) => dataset.sourceSpec?.sources?.length || dataset.sourceSpec?.filename)? 160: 90;- const columns = useMemo(- () =>- getColumns({- deletePendingId: deleteMutation.isPending ? deleteMutation.variables : null,- hideCapabilityColumn,- onDelete: (ds) => deleteMutation.mutate(ds.id),- onDeleteClick: guard(() => undefined),- roleWidth,- sourceWidth,- }),- [deleteMutation, guard, hideCapabilityColumn, roleWidth, sourceWidth]- );+ const selectable = !!onRowSelectionChange;+ const columns = useMemo(() => {+ const base = getColumns({+ deletePendingId: deleteMutation.isPending ? deleteMutation.variables : null,+ hideCapabilityColumn: hideCapabilityColumn || noCapabilities,+ onDelete: (ds) => deleteMutation.mutate(ds.id),+ onDeleteClick: guard(() => undefined),+ roleWidth,+ sourceWidth,+ statusWidth,+ });+ return selectable ? [ATTACH_COLUMN, ...base] : base;+ }, [+ deleteMutation,+ guard,+ hideCapabilityColumn,+ noCapabilities,+ roleWidth,+ selectable,+ sourceWidth,+ statusWidth,+ ]);return (<DataTable@@ -524,6 +593,7 @@ export function DatasetsBrowser({emptyState={<EmptyState className="flex-1" icon={Icon.dataset} size="section" title="No datasets yet" />}+ enableRowSelection={selectable}error={error}getRowId={(row) => row.id}hasActiveFilters={hasActiveFilters}@@ -550,10 +620,12 @@ export function DatasetsBrowser({to: "/datasets/$datasetId",})}+ onRowSelectionChange={onRowSelectionChange}ordering={ordering}page={currentPage}pageSize={pageSize}rowClassName={(row) => (highlights[`dataset:${row.id}`] ? "activity-highlight" : undefined)}+ rowSelection={rowSelection}storageKey="datasets-table"/>);diff --git a/frontend/src/components/datasets/notebook/cell.tsx b/frontend/src/components/datasets/notebook/cell.tsxindex ab98fc1c..5dbd5b74 100644--- a/frontend/src/components/datasets/notebook/cell.tsx+++ b/frontend/src/components/datasets/notebook/cell.tsx@@ -492,6 +492,7 @@ export function NotebookCell({capabilityName,capabilities,active,+ partition,editable,selected,onSelect,@@ -505,6 +506,8 @@ export function NotebookCell({capabilityName: string;capabilities: CapabilityChoice[];active: boolean;+ /** The cell's part of a training split, named for the reader. */+ partition?: string;editable: boolean;selected: boolean;onSelect: () => void;@@ -578,7 +581,7 @@ export function NotebookCell({>{version}</button>- {source ? <span>Source</span> : <span>{cell.title}</span>}+ <span>{partition || (source ? "Source" : cell.title)}</span></span><spanaria-label={`${cell.title} cell`}diff --git a/frontend/src/components/datasets/notebook/notebook-page.tsx b/frontend/src/components/datasets/notebook/notebook-page.tsxindex fc3f76ca..57f045fc 100644--- a/frontend/src/components/datasets/notebook/notebook-page.tsx+++ b/frontend/src/components/datasets/notebook/notebook-page.tsx@@ -3,7 +3,7 @@ import { useCallback, useEffect, useMemo, useRef, useState } from "react";import { useQueryClient } from "@tanstack/react-query";import { Link, useNavigate } from "@tanstack/react-router";-import { CodingAgentIcon } from "@/components/coding-agent-icon";+import { AssistantDock } from "@/components/assistant/assistant-dock";import { NotebookControls } from "@/components/datasets/notebook/canvas-controls";import { NotebookCell, type UsePurpose } from "@/components/datasets/notebook/cell";import { CellFlow } from "@/components/datasets/notebook/cell-flow";@@ -19,6 +19,7 @@ import { Alert } from "@/components/ui/alert";import { Button } from "@/components/ui/button";import { EmptyState } from "@/components/ui/empty-state";import { LoadingState } from "@/components/ui/spinner";+import { useAssistantThread } from "@/hooks/use-assistant-thread";import {activeCellOf,type DatasetEvent,@@ -27,14 +28,12 @@ import {intentOf,invalidateDataset,isBusy,- openPreparation,rankOf,useCancelDatasetMutation,useDatasetEvents,useDatasetPreparationQuery,useDatasetQuery,useDatasetWorkbenchQuery,- useEndPreparationMutation,usePatchDatasetMutation,useResumeDatasetImportMutation,} from "@/hooks/use-datasets";@@ -44,6 +43,13 @@ import { usePersistedState } from "@/hooks/use-persisted-state";import { notify } from "@/lib/notify";import type { Cell } from "@/openapi";+const PARTITIONS: Record<string, string> = {+ calibration: "Calibration data",+ development: "Development data",+ final: "Final evaluation data",+ train: "Training data",+};+export function DatasetNotebook({datasetId,projectId,@@ -65,11 +71,11 @@ export function DatasetNotebook({dataset?.updatedAt?.getTime());const capabilitiesQuery = useProjectCapabilitiesQuery(projectId);+ const assistant = useAssistantThread(datasetId);const capabilities = capabilitiesQuery.data?.results ?? [];const patch = usePatchDatasetMutation(datasetId);const cancel = useCancelDatasetMutation(datasetId);- const endPreparation = useEndPreparationMutation(datasetId);const resumeImport = useResumeDatasetImportMutation(datasetId);const [showMinimap, setShowMinimap] = usePersistedState("workshopFlow:showMinimap", false);@@ -94,10 +100,33 @@ export function DatasetNotebook({}, 250);}, [qc, datasetId]);- useDatasetEvents(datasetId, (event: DatasetEvent, meta) => {- // Detail polling picks up landing counters; immutable cells do not change per page.- if (event.type === "land_progress") return;- if (meta.live || event.type === "replay.done") refresh();+ const [stamp, setStamp] = useState<number | null>(null);+ const read = dataset?.updatedAt?.getTime();+ useEffect(() => {+ if (stamp === null || read === undefined) return;+ setStamp(null);+ if (stamp !== read) refresh();+ }, [stamp, read, refresh]);++ useDatasetEvents(datasetId, (event: DatasetEvent) => {+ if (event.type === "assistant" || event.type === "assistant.draft") {+ assistant.handle(event);+ return;+ }+ if (event.type === "connected") {+ // The conversation reads after the events it holds, so every connection catches up+ // on it. A dropped connection may have missed dataset changes; a first one only+ // those made after the page read the dataset, compared once that read has arrived.+ assistant.handle(event);+ if (event.again) {+ refresh();+ } else {+ setStamp(event.updated_at ? new Date(event.updated_at).getTime() : Number.NaN);+ }+ return;+ }+ // Detail polling picks up landing counters while the dataset is busy.+ if (event.type !== "land_progress") refresh();});const nodes = preparationQuery.data?.nodes;@@ -116,7 +145,6 @@ export function DatasetNotebook({const visibleIds = useMemo(() => new Set(cells.map((cell) => cell.id)), [cells]);const { motions, complete } = useCellMotion(nodes ? cells : undefined, visibleIds);const busy = isBusy(dataset);- const preparing = openPreparation(dataset);const editable = !!dataset && !busy;const intent = intentOf(dataset);@@ -213,7 +241,7 @@ export function DatasetNotebook({{node && (node.role || !local) && (<div className="mb-2 text-sm text-muted-foreground"><Link params={{ datasetId: owner }} search={{ projectId }} to="/datasets/$datasetId">- {node.role || node.datasetName}+ {PARTITIONS[node.role] || node.role || node.datasetName}</Link></div>)}@@ -239,6 +267,7 @@ export function DatasetNotebook({intent={node?.intent ?? intent}key={cell.id}onSelect={() => setSelectedId(cell.id)}+ partition={PARTITIONS[node?.role ?? ""] || node?.role}preparationActions={cell.id === actionCellId ? preparationControls(cell) : undefined}selected={cell.id === selectedId}sourceDetails={@@ -257,7 +286,7 @@ export function DatasetNotebook({return (<div className="relative flex h-full min-h-0 flex-col">- <div className="pointer-events-none absolute right-12 bottom-3 left-3 z-10 max-h-48 max-w-xl overflow-y-auto">+ <div className="assistant-notices pointer-events-none absolute bottom-16 z-10 max-h-48 overflow-y-auto"><div className="pointer-events-auto space-y-2 rounded-sm bg-card">{busy && (<div className="flex items-center justify-between gap-3 rounded-sm border border-border px-3 py-2 text-xs">@@ -272,22 +301,6 @@ export function DatasetNotebook({</Button></div>)}- {!busy && preparing && (- <div className="flex items-center justify-between gap-3 rounded-sm border border-border px-3 py-2 text-xs">- <span className="inline-flex items-center gap-1.5">- {preparing.actorKind ? <CodingAgentIcon kind={preparing.actorKind} /> : null}- {preparing.label}- </span>- <Button- disabled={endPreparation.isPending}- onClick={() => endPreparation.mutate()}- size="sm"- variant="secondary"- >- End preparation- </Button>- </div>- )}<ContaminationReport spec={dataset.sourceSpec} />{workbenchQuery.isError && (<Alert variant="destructive">@@ -349,6 +362,14 @@ export function DatasetNotebook({storageKey={`workshop-flow:layers:${projectId}:${datasetId}`}/>)}+ <AssistantDock+ assistant={assistant}+ cells={cells}+ datasetId={datasetId}+ onSelectCell={scrollTo}+ projectId={projectId}+ selectedCell={selectedId}+ /></div></div>);diff --git a/frontend/src/components/datasets/notebook/preparation-actions.tsx b/frontend/src/components/datasets/notebook/preparation-actions.tsxindex 067d56e7..dd49837b 100644--- a/frontend/src/components/datasets/notebook/preparation-actions.tsx+++ b/frontend/src/components/datasets/notebook/preparation-actions.tsx@@ -20,11 +20,7 @@ export function PreparationActions({const [errorOpen, setErrorOpen] = useState(false);const failed = run?.state === "failed";const error = dataset.error || (failed ? run.error || "Preparation failed." : "");- const title = error- ? "Fix with coding agent"- : dataset.work?.status === "paused"- ? "Continue with coding agent"- : "Prepare with coding agent";+ const title = error ? "Fix with coding agent" : "Prepare with coding agent";const prompt = [`${error ? "Diagnose and repair" : "Prepare"} this existing Overmind dataset in your native coding environment.`,`Use the connection at ${config.apiUrl.replace(/\/$/, "")}/api/mcp/. Verify the endpoint with list_projects and pass project_id=${dataset.project} on every project operation. Stop if the endpoint differs. Setup instructions: ${window.location.origin}/setup.md.`,@@ -64,7 +60,7 @@ export function PreparationActions({"Inspect the dataset workbench, exact run, source cells, retained originals, capability contract and available errors/logs through the connected catalogue. Verify the pinned source fingerprint; the active cell may differ from the failed run's input. Inspect reported rows and fields rather than guessing. If no source exists, use the brief to establish the required evidence. Ask about missing intent or target meaning before authoring transformations.","Preserve original evidence, row lineage and frozen consumer inputs. Observed trace outputs and scores are not verified reference answers. Do not fabricate labels, silently delete examples or treat format compatibility as semantic quality.","Follow the connected author-dataset-transformation workflow. Reuse a compatible retained recipe or author a Python package, upload with the Overmind CLI and save against this dataset. Validate and preview before publication. Repair the same recipe family from its pinned original source; do not create an unrelated dataset or blindly rerun a failed recipe. External results must retain source-row lineage. Diagnose infrastructure or import interruptions separately from data defects; resume only when the recorded operation permits it.",- "Use the preparation lifecycle to report work and pauses. Inspect the published output and its fingerprint, row changes and consumer compatibility before marking preparation complete. Report remaining uncertainties and new version identifiers. Leave training, evaluation and inference unlaunched.",+ "Follow each run with get_job until it ends. Inspect the published output and its fingerprint, row changes and consumer compatibility. Report remaining uncertainties and new version identifiers. Leave training, evaluation and inference unlaunched.",].join("\n\n");return (diff --git a/frontend/src/components/datasets/notebook/source.tsx b/frontend/src/components/datasets/notebook/source.tsxindex 4d6ae412..b6ac1e47 100644--- a/frontend/src/components/datasets/notebook/source.tsx+++ b/frontend/src/components/datasets/notebook/source.tsx@@ -3,6 +3,7 @@ import { type ReactNode, useRef, useState } from "react";import apiClient from "@/client";import { Attachment } from "@/components/datasets/attachment";import { SOURCE_KIND_LABEL } from "@/components/datasets/badges";+import { FileTypeIcon } from "@/components/file-type-icon";import { Badge } from "@/components/ui/badge";import { Button } from "@/components/ui/button";import { Icon } from "@/components/ui/icons";@@ -89,7 +90,7 @@ export function SourceDetails({title={source.filename}variant="outline">- <Icon.file className="size-3 text-muted-foreground" />+ <FileTypeIcon className="size-3" filename={source.filename} /><span className="min-w-0 max-w-sm truncate">{source.filename}</span><span className="shrink-0 text-muted-foreground">{source.rows.toLocaleString()} rows@@ -108,7 +109,7 @@ export function SourceDetails({) : (<Badge className="max-w-full gap-2 bg-card" size="chip" title={label} variant="outline">{kind === "file" && !sourceSpec?.derived_from ? (- <Icon.file className="size-3" />+ <FileTypeIcon className="size-3" filename={String(label)} />) : (<Icon.dataset className="size-3" />)}diff --git a/frontend/src/components/datasets/workshop-sidebar.tsx b/frontend/src/components/datasets/workshop-sidebar.tsxindex cd141d4a..c2280688 100644--- a/frontend/src/components/datasets/workshop-sidebar.tsx+++ b/frontend/src/components/datasets/workshop-sidebar.tsx@@ -67,6 +67,8 @@ function DatasetNavigation({ projectId, enabled }: { projectId?: string; enabled{ signal }),queryKey: ["datasets", "list", projectId, "navigation", debouncedSearch],+ // Progress counters move while a dataset is busy. A dataset deleted or started+ // elsewhere records no activity the list hears, so an idle list still looks again.refetchInterval: (query) =>query.state.data?.pages.some((page) => page.results.some(isBusy)) ? 3000 : 15000,});diff --git a/frontend/src/components/entity-ref/cards.tsx b/frontend/src/components/entity-ref/cards.tsxindex f39c720b..3c5e0481 100644--- a/frontend/src/components/entity-ref/cards.tsx+++ b/frontend/src/components/entity-ref/cards.tsx@@ -16,7 +16,7 @@ import { userFacingJobError } from "@/components/finetuning/train/model-config";import { CreditsAmount } from "@/components/ui/credits";import { DateTime } from "@/components/ui/datetime";import { DeltaChip, fromScore } from "@/components/ui/delta-chip";-import { INTENT_LABEL, intentOf } from "@/hooks/use-datasets";+import { datasetDetailQuery, INTENT_LABEL, intentOf } from "@/hooks/use-datasets";import { jobCostUsd } from "@/lib/finetuning-cost";import { StatusBadge } from "@/lib/job-status";import { scorePct } from "@/lib/utils";@@ -84,10 +84,7 @@ export function CapabilityCard({ id, name }: { id: string; name: string }) {}export function DatasetCard({ id, name }: { id: string; name: string }) {- const { data, isPending } = useQuery({- queryFn: () => apiClient.datasets.datasetsRetrieve({ id }),- queryKey: ["dataset", id],- });+ const { data, isPending } = useQuery(datasetDetailQuery(id));if (isPending) return <EntityCardSkeleton kind="dataset" name={name} />;if (!data) return <EntityCardMissing kind="dataset" name={name} />;return (diff --git a/frontend/src/components/entity-ref/index.tsx b/frontend/src/components/entity-ref/index.tsxindex 425dc324..6b20c919 100644--- a/frontend/src/components/entity-ref/index.tsx+++ b/frontend/src/components/entity-ref/index.tsx@@ -202,7 +202,7 @@ export function EntityRef({projectId={projectId}>{showIcon ? (- <meta.icon aria-hidden className="size-3.5 shrink-0 text-foreground" />+ <meta.icon aria-hidden className={cn("size-3.5 shrink-0", meta.accent)} />) : null}<span className="truncate">{label}</span></EntityLink>diff --git a/frontend/src/components/entity-ref/shell.tsx b/frontend/src/components/entity-ref/shell.tsxindex 57a6c5f9..0c248632 100644--- a/frontend/src/components/entity-ref/shell.tsx+++ b/frontend/src/components/entity-ref/shell.tsx@@ -15,19 +15,19 @@ export type EntityKind =| "trace";// Deliberately the sidebar's icon for each vertical, so a chip says where the-// entity lives before you read its name.+// entity lives before you read its name. The accent is the type, never a status.export const ENTITY_META: Record<EntityKind,- { icon: (typeof Icon)[keyof typeof Icon]; label: string }+ { accent: string; icon: (typeof Icon)[keyof typeof Icon]; label: string }> = {- capability: { icon: Icon.agent, label: "Capability" },- dataset: { icon: Icon.dataset, label: "Dataset" },- evalRun: { icon: Icon.eval, label: "Eval run" },- experiment: { icon: Icon.optimiser, label: "Optimisation" },- job: { icon: Icon.training, label: "Training run" },- model: { icon: Icon.inference, label: "Model" },- project: { icon: Icon.project, label: "Project" },- trace: { icon: Icon.observability, label: "Trace" },+ capability: { accent: "text-cat-3", icon: Icon.agent, label: "Capability" },+ dataset: { accent: "text-cat-2", icon: Icon.dataset, label: "Dataset" },+ evalRun: { accent: "text-cat-3", icon: Icon.eval, label: "Eval run" },+ experiment: { accent: "text-cat-5", icon: Icon.optimiser, label: "Optimisation" },+ job: { accent: "text-cat-5", icon: Icon.training, label: "Training run" },+ model: { accent: "text-cat-4", icon: Icon.inference, label: "Model" },+ project: { accent: "text-cat-6", icon: Icon.project, label: "Project" },+ trace: { accent: "text-cat-1", icon: Icon.observability, label: "Trace" },};export function Row({ children, label }: { children: ReactNode; label: string }) {@@ -57,7 +57,7 @@ export function EntityCardShell({return (<div className="divide-y divide-border/70"><div className="flex items-start gap-2 px-3 py-2.5">- <meta.icon aria-hidden className="mt-0.5 size-4 shrink-0 text-muted-foreground" />+ <meta.icon aria-hidden className={cn("mt-0.5 size-4 shrink-0", meta.accent)} /><div className="min-w-0 flex-1"><p className="truncate text-sm font-medium text-foreground">{name}</p><p className="chip-label mt-0.5 text-xs text-muted-foreground">diff --git a/frontend/src/components/file-type-icon.tsx b/frontend/src/components/file-type-icon.tsxnew file mode 100644index 00000000..2c238486--- /dev/null+++ b/frontend/src/components/file-type-icon.tsx@@ -0,0 +1,21 @@+import { Icon } from "@/components/ui/icons";+import { cn } from "@/lib/utils";++const KINDS = [+ {+ accent: "text-cat-2",+ extensions: ["csv", "tsv", "parquet", "xlsx", "xls"],+ icon: Icon.dataset,+ },+ { accent: "text-cat-3", extensions: ["json", "jsonl", "ndjson"], icon: Icon.code },+ { accent: "text-cat-5", extensions: ["pdf", "docx", "doc"], icon: Icon.file },+ { accent: "text-muted-foreground", extensions: ["py"], icon: Icon.python },+];+const OTHER = { accent: "text-muted-foreground", icon: Icon.file };++/** A file's icon, in the accent of what the file holds. */+export function FileTypeIcon({ className, filename }: { className?: string; filename: string }) {+ const extension = filename.replace(/\.gz$/i, "").split(".").at(-1)?.toLowerCase() ?? "";+ const kind = KINDS.find((entry) => entry.extensions.includes(extension)) ?? OTHER;+ return <kind.icon className={cn("shrink-0", kind.accent, className)} />;+}diff --git a/frontend/src/components/finetuning/finetuning-model-chip.tsx b/frontend/src/components/finetuning/finetuning-model-chip.tsxindex 5b01fccb..4ec9098f 100644--- a/frontend/src/components/finetuning/finetuning-model-chip.tsx+++ b/frontend/src/components/finetuning/finetuning-model-chip.tsx@@ -37,7 +37,7 @@ export function FinetuningModelChip({const body = (<>- <Icon.overmind className="size-3.5 shrink-0" />+ <Icon.overmind className="size-3.5 shrink-0 text-cat-4" /><span className="min-w-0 truncate">{label}</span></>);diff --git a/frontend/src/components/model-provider-chip.test.tsx b/frontend/src/components/model-provider-chip.test.tsxindex fa5f2177..3750e3ab 100644--- a/frontend/src/components/model-provider-chip.test.tsx+++ b/frontend/src/components/model-provider-chip.test.tsx@@ -4,7 +4,7 @@ import { cleanup, render, screen } from "@testing-library/react";import { afterEach, describe, expect, it, vi } from "vitest";// Identify providers without coupling assertions to vendor SVG paths.-vi.mock("@lobehub/icons/es/Ai2/components/Mono", () => ({+vi.mock("@lobehub/icons/es/Ai2/components/Color", () => ({default: () => <svg data-testid="logo-ai2" />,}));vi.mock("@lobehub/icons/es/Ai21/components/Mono", () => ({@@ -13,31 +13,31 @@ vi.mock("@lobehub/icons/es/Ai21/components/Mono", () => ({vi.mock("@lobehub/icons/es/Anthropic/components/Mono", () => ({default: () => <svg data-testid="logo-anthropic" />,}));-vi.mock("@lobehub/icons/es/Aws/components/Mono", () => ({+vi.mock("@lobehub/icons/es/Aws/components/Color", () => ({default: () => <svg data-testid="logo-amazon" />,}));-vi.mock("@lobehub/icons/es/Baichuan/components/Mono", () => ({+vi.mock("@lobehub/icons/es/Baichuan/components/Color", () => ({default: () => <svg data-testid="logo-baichuan" />,}));-vi.mock("@lobehub/icons/es/Baidu/components/Mono", () => ({+vi.mock("@lobehub/icons/es/Baidu/components/Color", () => ({default: () => <svg data-testid="logo-baidu" />,}));-vi.mock("@lobehub/icons/es/ByteDance/components/Mono", () => ({+vi.mock("@lobehub/icons/es/ByteDance/components/Color", () => ({default: () => <svg data-testid="logo-bytedance" />,}));-vi.mock("@lobehub/icons/es/Claude/components/Mono", () => ({+vi.mock("@lobehub/icons/es/Claude/components/Color", () => ({default: () => <svg data-testid="logo-claude" />,}));-vi.mock("@lobehub/icons/es/Cohere/components/Mono", () => ({+vi.mock("@lobehub/icons/es/Cohere/components/Color", () => ({default: () => <svg data-testid="logo-cohere" />,}));vi.mock("@lobehub/icons/es/Cursor/components/Mono", () => ({default: () => <svg data-testid="logo-cursor" />,}));-vi.mock("@lobehub/icons/es/DeepSeek/components/Mono", () => ({+vi.mock("@lobehub/icons/es/DeepSeek/components/Color", () => ({default: () => <svg data-testid="logo-deepseek" />,}));-vi.mock("@lobehub/icons/es/Gemini/components/Mono", () => ({+vi.mock("@lobehub/icons/es/Gemini/components/Color", () => ({default: () => <svg data-testid="logo-google" />,}));vi.mock("@lobehub/icons/es/Inception/components/Mono", () => ({@@ -46,28 +46,28 @@ vi.mock("@lobehub/icons/es/Inception/components/Mono", () => ({vi.mock("@lobehub/icons/es/Inflection/components/Mono", () => ({default: () => <svg data-testid="logo-inflection" />,}));-vi.mock("@lobehub/icons/es/Kimi/components/Mono", () => ({+vi.mock("@lobehub/icons/es/Kimi/components/Color", () => ({default: () => <svg data-testid="logo-kimi" />,}));vi.mock("@lobehub/icons/es/Liquid/components/Mono", () => ({default: () => <svg data-testid="logo-liquid" />,}));-vi.mock("@lobehub/icons/es/Meta/components/Mono", () => ({+vi.mock("@lobehub/icons/es/Meta/components/Color", () => ({default: () => <svg data-testid="logo-meta" />,}));-vi.mock("@lobehub/icons/es/Microsoft/components/Mono", () => ({+vi.mock("@lobehub/icons/es/Microsoft/components/Color", () => ({default: () => <svg data-testid="logo-microsoft" />,}));-vi.mock("@lobehub/icons/es/Minimax/components/Mono", () => ({+vi.mock("@lobehub/icons/es/Minimax/components/Color", () => ({default: () => <svg data-testid="logo-minimax" />,}));-vi.mock("@lobehub/icons/es/Mistral/components/Mono", () => ({+vi.mock("@lobehub/icons/es/Mistral/components/Color", () => ({default: () => <svg data-testid="logo-mistral" />,}));vi.mock("@lobehub/icons/es/NousResearch/components/Mono", () => ({default: () => <svg data-testid="logo-nous" />,}));-vi.mock("@lobehub/icons/es/Nvidia/components/Mono", () => ({+vi.mock("@lobehub/icons/es/Nvidia/components/Color", () => ({default: () => <svg data-testid="logo-nvidia" />,}));vi.mock("@lobehub/icons/es/OpenAI/components/Mono", () => ({@@ -76,19 +76,19 @@ vi.mock("@lobehub/icons/es/OpenAI/components/Mono", () => ({vi.mock("@lobehub/icons/es/OpenRouter/components/Mono", () => ({default: () => <svg data-testid="logo-openrouter" />,}));-vi.mock("@lobehub/icons/es/Perplexity/components/Mono", () => ({+vi.mock("@lobehub/icons/es/Perplexity/components/Color", () => ({default: () => <svg data-testid="logo-perplexity" />,}));-vi.mock("@lobehub/icons/es/Qwen/components/Mono", () => ({+vi.mock("@lobehub/icons/es/Qwen/components/Color", () => ({default: () => <svg data-testid="logo-qwen" />,}));-vi.mock("@lobehub/icons/es/Stepfun/components/Mono", () => ({+vi.mock("@lobehub/icons/es/Stepfun/components/Color", () => ({default: () => <svg data-testid="logo-stepfun" />,}));-vi.mock("@lobehub/icons/es/Tencent/components/Mono", () => ({+vi.mock("@lobehub/icons/es/Tencent/components/Color", () => ({default: () => <svg data-testid="logo-tencent" />,}));-vi.mock("@lobehub/icons/es/Upstage/components/Mono", () => ({+vi.mock("@lobehub/icons/es/Upstage/components/Color", () => ({default: () => <svg data-testid="logo-upstage" />,}));vi.mock("@lobehub/icons/es/XAI/components/Mono", () => ({@@ -97,10 +97,10 @@ vi.mock("@lobehub/icons/es/XAI/components/Mono", () => ({vi.mock("@lobehub/icons/es/XiaomiMiMo/components/Mono", () => ({default: () => <svg data-testid="logo-xiaomi" />,}));-vi.mock("@lobehub/icons/es/Yi/components/Mono", () => ({+vi.mock("@lobehub/icons/es/Yi/components/Color", () => ({default: () => <svg data-testid="logo-yi" />,}));-vi.mock("@lobehub/icons/es/Zhipu/components/Mono", () => ({+vi.mock("@lobehub/icons/es/Zhipu/components/Color", () => ({default: () => <svg data-testid="logo-zhipu" />,}));diff --git a/frontend/src/components/model-provider-chip.tsx b/frontend/src/components/model-provider-chip.tsxindex 516e70a4..638654e5 100644--- a/frontend/src/components/model-provider-chip.tsx+++ b/frontend/src/components/model-provider-chip.tsx@@ -1,38 +1,39 @@import { useState } from "react";-import Ai2 from "@lobehub/icons/es/Ai2/components/Mono";+import Ai2 from "@lobehub/icons/es/Ai2/components/Color";import Ai21 from "@lobehub/icons/es/Ai21/components/Mono";import Anthropic from "@lobehub/icons/es/Anthropic/components/Mono";-import Aws from "@lobehub/icons/es/Aws/components/Mono";-import Baichuan from "@lobehub/icons/es/Baichuan/components/Mono";-import Baidu from "@lobehub/icons/es/Baidu/components/Mono";-import ByteDance from "@lobehub/icons/es/ByteDance/components/Mono";-import Claude from "@lobehub/icons/es/Claude/components/Mono";-import Cohere from "@lobehub/icons/es/Cohere/components/Mono";+import Aws from "@lobehub/icons/es/Aws/components/Color";+import Baichuan from "@lobehub/icons/es/Baichuan/components/Color";+import Baidu from "@lobehub/icons/es/Baidu/components/Color";+import ByteDance from "@lobehub/icons/es/ByteDance/components/Color";+import Claude from "@lobehub/icons/es/Claude/components/Color";+import Cloudflare from "@lobehub/icons/es/Cloudflare/components/Color";+import Cohere from "@lobehub/icons/es/Cohere/components/Color";import Cursor from "@lobehub/icons/es/Cursor/components/Mono";-import DeepSeek from "@lobehub/icons/es/DeepSeek/components/Mono";-import Gemini from "@lobehub/icons/es/Gemini/components/Mono";+import DeepSeek from "@lobehub/icons/es/DeepSeek/components/Color";+import Gemini from "@lobehub/icons/es/Gemini/components/Color";import Inception from "@lobehub/icons/es/Inception/components/Mono";import Inflection from "@lobehub/icons/es/Inflection/components/Mono";-import Kimi from "@lobehub/icons/es/Kimi/components/Mono";+import Kimi from "@lobehub/icons/es/Kimi/components/Color";import Liquid from "@lobehub/icons/es/Liquid/components/Mono";-import Meta from "@lobehub/icons/es/Meta/components/Mono";-import Microsoft from "@lobehub/icons/es/Microsoft/components/Mono";-import Minimax from "@lobehub/icons/es/Minimax/components/Mono";-import Mistral from "@lobehub/icons/es/Mistral/components/Mono";+import Meta from "@lobehub/icons/es/Meta/components/Color";+import Microsoft from "@lobehub/icons/es/Microsoft/components/Color";+import Minimax from "@lobehub/icons/es/Minimax/components/Color";+import Mistral from "@lobehub/icons/es/Mistral/components/Color";import NousResearch from "@lobehub/icons/es/NousResearch/components/Mono";-import Nvidia from "@lobehub/icons/es/Nvidia/components/Mono";+import Nvidia from "@lobehub/icons/es/Nvidia/components/Color";import OpenAI from "@lobehub/icons/es/OpenAI/components/Mono";import OpenRouter from "@lobehub/icons/es/OpenRouter/components/Mono";-import Perplexity from "@lobehub/icons/es/Perplexity/components/Mono";-import Qwen from "@lobehub/icons/es/Qwen/components/Mono";-import Stepfun from "@lobehub/icons/es/Stepfun/components/Mono";-import Tencent from "@lobehub/icons/es/Tencent/components/Mono";-import Upstage from "@lobehub/icons/es/Upstage/components/Mono";+import Perplexity from "@lobehub/icons/es/Perplexity/components/Color";+import Qwen from "@lobehub/icons/es/Qwen/components/Color";+import Stepfun from "@lobehub/icons/es/Stepfun/components/Color";+import Tencent from "@lobehub/icons/es/Tencent/components/Color";+import Upstage from "@lobehub/icons/es/Upstage/components/Color";import XAI from "@lobehub/icons/es/XAI/components/Mono";import XiaomiMiMo from "@lobehub/icons/es/XiaomiMiMo/components/Mono";-import Yi from "@lobehub/icons/es/Yi/components/Mono";-import Zhipu from "@lobehub/icons/es/Zhipu/components/Mono";+import Yi from "@lobehub/icons/es/Yi/components/Color";+import Zhipu from "@lobehub/icons/es/Zhipu/components/Color";import { getModelProviderInfo, type ProviderId } from "@/components/model-provider";import { Badge } from "@/components/ui/badge";@@ -73,6 +74,7 @@ const PROVIDER_ICONS: Record<Exclude<ProviderId, "unknown">, ProviderIcon> = {baidu: Baidu,bytedance: ByteDance,claude: Claude,+ cloudflare: Cloudflare,cohere: Cohere,cursor: Cursor,deepseek: DeepSeek,@@ -191,7 +193,7 @@ export function ModelProviderChip({<span className="shrink-0">{info.providerLabel}</span></>) : (- <SystemIcon.model className="size-3.5 shrink-0" />+ <SystemIcon.model className="size-3.5 shrink-0 text-cat-4" />)}{showModelId && (<span className="min-w-0 truncate text-muted-foreground">{info.modelLabel}</span>diff --git a/frontend/src/components/model-provider.ts b/frontend/src/components/model-provider.tsindex 78d65b31..356825f0 100644--- a/frontend/src/components/model-provider.ts+++ b/frontend/src/components/model-provider.ts@@ -9,6 +9,7 @@ export type ProviderId =| "baichuan"| "baidu"| "bytedance"+ | "cloudflare"| "cohere"| "deepseek"| "google"@@ -91,6 +92,7 @@ const PROVIDER_BY_SLUG: Record<Exclude<ProviderId, "unknown">, ProviderBundle> =baidu: { id: "baidu", providerLabel: "Baidu", providerSlug: "baidu" },bytedance: { id: "bytedance", providerLabel: "ByteDance", providerSlug: "bytedance" },claude: { id: "claude", providerLabel: "Claude", providerSlug: "claude" },+ cloudflare: { id: "cloudflare", providerLabel: "Cloudflare", providerSlug: "cloudflare" },cohere: { id: "cohere", providerLabel: "Cohere", providerSlug: "cohere" },cursor: { id: "cursor", providerLabel: "Cursor", providerSlug: "cursor" },deepseek: { id: "deepseek", providerLabel: "DeepSeek", providerSlug: "deepseek" },diff --git a/frontend/src/components/ui/markdown-content.tsx b/frontend/src/components/ui/markdown-content.tsxindex d2889581..6351d14f 100644--- a/frontend/src/components/ui/markdown-content.tsx+++ b/frontend/src/components/ui/markdown-content.tsx@@ -84,6 +84,9 @@ export default function MarkdownContentImpl({</h3>),hr: () => (dividers ? <hr className="my-3 border-border/60" /> : null),+ // Never loaded: a remote image tells its host who reads this, and a model can+ // put what it read into the address.+ img: ({ alt, src }) => <span className="text-muted-foreground">{alt || src}</span>,li: ({ children }) => <li className="mb-1">{children}</li>,ol: ({ children }) => (<ol className="mb-3 list-decimal pl-5 last:mb-0 space-y-0.5">{children}</ol>diff --git a/frontend/src/hooks/use-assistant-thread.test.tsx b/frontend/src/hooks/use-assistant-thread.test.tsxnew file mode 100644index 00000000..3e9f7ac8--- /dev/null+++ b/frontend/src/hooks/use-assistant-thread.test.tsx@@ -0,0 +1,64 @@+// @vitest-environment jsdom+// covers: console-logic++import type { ReactNode } from "react";++import { QueryClient, QueryClientProvider } from "@tanstack/react-query";+import { renderHook, waitFor } from "@testing-library/react";+import { expect, it, vi } from "vitest";++import { useAssistantThread } from "@/hooks/use-assistant-thread";++const held = vi.hoisted(+ (): { kind: string; payload: object; presentation: null; sequence: number }[] => [+ { kind: "user", payload: { text: "Prepare it." }, presentation: null, sequence: 1 },+ { kind: "assistant", payload: { calls: [], text: "Done." }, presentation: null, sequence: 2 },+ ]+);++vi.mock("@/client", () => ({+ default: {+ assistantThreads: {+ assistantThreadsEventsList: vi.fn(({ after }: { after: number }) =>+ Promise.resolve(held.filter((event) => event.sequence > after))+ ),+ assistantThreadsList: vi.fn(() => Promise.resolve([{ id: "thread" }])),+ },+ },+}));++const api = vi.mocked((await import("@/client")).default.assistantThreads);++it("shows each event once when the page opens a conversation it read before", async () => {+ const client = new QueryClient();+ client.setQueryData(["assistant-thread", "dataset"], { id: "thread" });+ // Development mounts each effect twice, as a page opened again from the cache does.+ const wrapper = ({ children }: { children: ReactNode }) => (+ <QueryClientProvider client={client}>{children}</QueryClientProvider>+ );+ const { result } = renderHook(() => useAssistantThread("dataset"), {+ reactStrictMode: true,+ wrapper,+ });+ await waitFor(() => expect(result.current.events.length).toBeGreaterThan(0));+ await new Promise((settle) => setTimeout(settle, 50));+ expect(result.current.events.map((event) => event.sequence)).toEqual([1, 2]);+});++it("reads only the events it does not hold when the conversation opens again", async () => {+ const client = new QueryClient();+ client.setQueryData(["assistant-thread", "dataset"], { id: "thread" });+ const wrapper = ({ children }: { children: ReactNode }) => (+ <QueryClientProvider client={client}>{children}</QueryClientProvider>+ );+ const first = renderHook(() => useAssistantThread("dataset"), { wrapper });+ await waitFor(() => expect(first.result.current.events).toHaveLength(2));+ first.unmount();+ held.push({ kind: "status", payload: { state: "stopped" }, presentation: null, sequence: 3 });+ api.assistantThreadsEventsList.mockClear();++ const again = renderHook(() => useAssistantThread("dataset"), { wrapper });+ expect(again.result.current.events.map((event) => event.sequence)).toEqual([1, 2]);+ await waitFor(() => expect(again.result.current.events).toHaveLength(3));+ expect(api.assistantThreadsEventsList).toHaveBeenCalledWith({ after: 2, id: "thread" });+});diff --git a/frontend/src/hooks/use-assistant-thread.ts b/frontend/src/hooks/use-assistant-thread.tsnew file mode 100644index 00000000..b7d622ac--- /dev/null+++ b/frontend/src/hooks/use-assistant-thread.ts@@ -0,0 +1,147 @@+import { useCallback, useEffect } from "react";++import { type QueryClient, useMutation, useQuery, useQueryClient } from "@tanstack/react-query";++import apiClient from "@/client";+import type { AssistantEvent, Draft } from "@/components/assistant/types";+import type { DatasetEvent } from "@/hooks/use-datasets";+import type { AssistantThread, ChangeMessageRequest, SendMessageRequest } from "@/openapi";++const threadKey = (datasetId: string) => ["assistant-thread", datasetId];++/** Queues one message on the dataset's conversation, which is opened on first use. */+export async function sendToDataset(+ qc: QueryClient,+ datasetId: string,+ message: SendMessageRequest+) {+ const key = threadKey(datasetId);+ const thread =+ qc.getQueryData<AssistantThread | null>(key) ??+ (await apiClient.assistantThreads.assistantThreadsCreate({+ openThreadRequest: { dataset: datasetId },+ }));+ qc.setQueryData(key, thread);+ await apiClient.assistantThreads.assistantThreadsMessagesCreate({+ id: thread.id,+ sendMessageRequest: message,+ });+}++/** The conversation's events as the page holds them. The log only grows and its sequence+ * numbers only rise, so adding a read keeps every event once, whatever order or how+ * often reads arrive. */+export function mergeEvents(held: AssistantEvent[], added: AssistantEvent[]) {+ const last = held.at(-1)?.sequence ?? 0;+ const fresh = added.filter((event) => event.sequence > last);+ return fresh.length ? [...held, ...fresh] : held;+}++const NO_EVENTS: AssistantEvent[] = [];+const eventsKey = (threadId: string | undefined) => ["assistant-events", threadId];+const draftKey = (threadId: string | undefined) => ["assistant-draft", threadId];++/** The dataset's conversation: its thread, its events and the reply being written. The+ * dataset page's one event stream announces changes, and ``handle`` applies them. Events+ * and the reply live in the query cache under the thread, so a page that opens again,+ * mounts twice or reconnects reads only what it does not hold. */+export function useAssistantThread(datasetId: string) {+ const qc = useQueryClient();+ const found = useQuery({+ queryFn: async () =>+ (await apiClient.assistantThreads.assistantThreadsList({ dataset: datasetId }))[0] ?? null,+ queryKey: threadKey(datasetId),+ });+ const thread = found.data ?? null;+ const threadId = thread?.id;++ // The cache keeps one read per thread; a signal during a read starts it again from the+ // newest event held.+ const log = useQuery({+ enabled: !!threadId,+ queryFn: async () => {+ const held = qc.getQueryData<AssistantEvent[]>(eventsKey(threadId)) ?? [];+ const added = (await apiClient.assistantThreads.assistantThreadsEventsList({+ after: held.at(-1)?.sequence ?? 0,+ id: threadId!,+ })) as unknown as AssistantEvent[];+ // A reply or a status ends the text being written. A first read holds the earlier+ // replies too; the thread's own state settles the reply in progress then.+ if (+ held.length &&+ added.some((event) => event.kind === "assistant" || event.kind === "status")+ )+ qc.setQueryData(draftKey(threadId), null);+ return mergeEvents(qc.getQueryData<AssistantEvent[]>(eventsKey(threadId)) ?? held, added);+ },+ queryKey: eventsKey(threadId),+ });++ // The server's text of the reply being written; a thread that rests writes none.+ const written = thread?.state === "running" ? thread.draft || null : null;+ useEffect(() => {+ if (!threadId) return;+ qc.setQueryData<Draft | null>(draftKey(threadId), (old) =>+ written === null+ ? null+ : old && old.text.length >= written.length+ ? old+ : { steps: old?.steps ?? [], text: written }+ );+ }, [qc, threadId, written]);+ const draft = useQuery<Draft | null>({+ enabled: false,+ initialData: null,+ queryFn: () => null,+ queryKey: draftKey(threadId),+ }).data;++ const handle = useCallback(+ (event: DatasetEvent) => {+ if (event.type === "assistant" || event.type === "connected") {+ void qc.invalidateQueries({ queryKey: threadKey(datasetId) });+ // A read in flight may have missed the change: start another after the newest held.+ if (threadId)+ void qc+ .cancelQueries({ queryKey: eventsKey(threadId) })+ .then(() => qc.refetchQueries({ queryKey: eventsKey(threadId) }));+ } else if (event.type === "assistant.draft" && threadId) {+ // A gain names its position in code points, as the server counts: one the text+ // already holds, as a snapshot read ahead of it may, changes nothing.+ qc.setQueryData<Draft | null>(draftKey(threadId), (old) => {+ const held = Array.from(old?.text ?? "");+ const added = Array.from(event.added);+ const covered = held.slice(event.at, event.at + added.length).join("") === event.added;+ const text = covered ? (old?.text ?? "") : held.slice(0, event.at).join("") + event.added;+ return { steps: event.steps, text };+ });+ }+ },+ [qc, datasetId, threadId]+ );++ const send = useMutation({+ mutationFn: (message: SendMessageRequest) => sendToDataset(qc, datasetId, message),+ });+ const stop = useMutation({+ mutationFn: () => apiClient.assistantThreads.assistantThreadsStopCreate({ id: threadId! }),+ });+ const changeQueued = useMutation({+ mutationFn: (change: ChangeMessageRequest) =>+ apiClient.assistantThreads.assistantThreadsQueueCreate({+ changeMessageRequest: change,+ id: threadId!,+ }),+ });++ return {+ changeQueued,+ draft,+ error: found.error ?? log.error ?? send.error ?? stop.error ?? changeQueued.error,+ events: log.data ?? NO_EVENTS,+ handle,+ send,+ stop,+ thread,+ };+}diff --git a/frontend/src/hooks/use-datasets.ts b/frontend/src/hooks/use-datasets.tsindex 7115033e..78e181f4 100644--- a/frontend/src/hooks/use-datasets.ts+++ b/frontend/src/hooks/use-datasets.ts@@ -1,7 +1,7 @@/** Every dataset query and mutation. Nested JSON blobs (reports, rows, chat)* come back verbatim from the server, so their keys stay snake_case here. */-import { useEffect, useRef } from "react";+import { useEffect, useRef, useState } from "react";import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";@@ -62,7 +62,10 @@ export interface RowsParams {}export type DatasetEvent =- | { type: "replay.done" }+ /** Sent first on every connection; ``again`` when it replaces a dropped one. */+ | { type: "connected"; again: boolean; updated_at: string | null }+ | { type: "assistant" }+ | { type: "assistant.draft"; added: string; at: number; steps: string[] }| { type: "land_started" | "land_progress" | "land_done" | "land_failed"; [k: string]: unknown }| { type: "run_started" | "run_done" | "run_failed"; cell_id?: string; error?: string }| {@@ -145,9 +148,6 @@ export const isBusy = (ds: Dataset | null | undefined): boolean =>ds.state === "running" ||ds.state === "landing");-export const openPreparation = (ds: Dataset | null | undefined) =>- ds?.work && ["preparing", "paused"].includes(ds.work.status) ? ds.work : null;-/** The used-version block consumers carry (`cell_info`). */export interface UsedVersionInfo {id: string;@@ -227,9 +227,8 @@ export function useDatasetWorkbenchQuery(datasetId: string) {return useQuery({queryFn: ({ signal }) =>apiClient.datasets.datasetsWorkbenchRetrieve({ id: datasetId, limit: 1 }, { signal }),+ // A run's start and end are announced on the dataset's stream.queryKey: ["datasets", datasetId, "workbench"],- // Failed runs preserve the active cell; they cannot be inferred from its state.- refetchInterval: 5000,});}@@ -268,16 +267,23 @@ export function useProjectDatasetsQuery(projectId: string | undefined) {enabled: !!projectId,queryFn: ({ signal }) => fetchProjectDatasets(projectId!, signal),queryKey: ["datasets", "list", projectId, "inventory"],+ // Progress counters move while a dataset is busy. An upload or run started elsewhere+ // records no activity until it ends, so an idle list still looks again.refetchInterval: (query) => (query.state.data?.some(isBusy) ? 3000 : 15000),});}+/** One cache entry for a dataset's detail, whichever component reads it. */+export const datasetDetailQuery = (id: string) => ({+ queryFn: () => apiClient.datasets.datasetsRetrieve({ id }),+ queryKey: datasetKeys.detail(id),+});+/** Polls while the dataset is busy; the SSE stream fills the gaps. */export function useDatasetQuery(id: string | undefined) {return useQuery<Dataset>({+ ...datasetDetailQuery(id ?? ""),enabled: !!id,- queryFn: () => apiClient.datasets.datasetsRetrieve({ id: id! }),- queryKey: datasetKeys.detail(id ?? ""),refetchInterval: (query) => (isBusy(query.state.data) ? 3000 : false),});}@@ -449,30 +455,39 @@ export async function downloadExport(URL.revokeObjectURL(url);}-/** Fetch-based SSE (EventSource cannot send an Authorization header). Replays the- * backlog on every connect, then streams; reconnects after a pause. */+/** The dataset's one event stream, fetch-based (EventSource cannot send an Authorization+ * header). An event names what changed; the page reads it again. A hidden tab holds no+ * connection, and the next one says it replaces a dropped one. */export function useDatasetEvents(datasetId: string | undefined,- onEvent: (event: DatasetEvent, meta: { live: boolean }) => void+ onEvent: (event: DatasetEvent) => void) {const onEventRef = useRef(onEvent);useEffect(() => {onEventRef.current = onEvent;});+ const [visible, setVisible] = useState(() => document.visibilityState === "visible");+ useEffect(() => {+ const update = () => setVisible(document.visibilityState === "visible");+ document.addEventListener("visibilitychange", update);+ return () => document.removeEventListener("visibilitychange", update);+ }, []);+ const connections = useRef(0);useEffect(() => {- if (!datasetId) return;+ if (!datasetId || !visible) return;let cancelled = false;let timer: ReturnType<typeof setTimeout> | undefined;let controller: AbortController | null = null;- let live = false;const consume = (line: string) => {if (!line.startsWith("data: ")) return;try {const event = JSON.parse(line.slice(6)) as DatasetEvent;- if (event.type === "replay.done") live = true;- onEventRef.current(event, { live });+ if (event.type === "connected") {+ connections.current += 1;+ onEventRef.current({ ...event, again: connections.current > 1 });+ } else onEventRef.current(event);} catch {// A malformed frame carries nothing worth surfacing.}@@ -480,7 +495,6 @@ export function useDatasetEvents(const connect = async () => {if (cancelled) return;- live = false;controller = new AbortController();let buffer = "";try {@@ -510,7 +524,7 @@ export function useDatasetEvents(controller?.abort();if (timer) clearTimeout(timer);};- }, [datasetId]);+ }, [datasetId, visible]);}export const useCancelDatasetMutation = (id: string) => {@@ -522,15 +536,6 @@ export const useCancelDatasetMutation = (id: string) => {});};-export const useEndPreparationMutation = (id: string) => {- const qc = useQueryClient();- return useMutation({- mutationFn: () => apiClient.datasets.datasetsEndPreparationCreate({ id }),- onError: (error) => notify.error(error, "Couldn't end the preparation"),- onSuccess: () => invalidateDataset(qc, id),- });-};-export const useResumeDatasetImportMutation = (id: string) => {const qc = useQueryClient();return useMutation({diff --git a/frontend/src/lib/dataset-workspaces.ts b/frontend/src/lib/dataset-workspaces.tsindex d3598701..feef8c2e 100644--- a/frontend/src/lib/dataset-workspaces.ts+++ b/frontend/src/lib/dataset-workspaces.ts@@ -12,9 +12,7 @@ export function datasetWorkspaces(datasets: Dataset[]): Dataset[] {return [...groups].map(([id, members]) => {const root = byId.get(id)!;const busy = members.find(- (member) =>- member.work &&- ["running", "queued", "accepted", "preparing", "paused"].includes(member.work.status)+ (member) => member.work && ["running", "queued", "accepted"].includes(member.work.status));const latest = members.reduce((a, b) => (a.updatedAt > b.updatedAt ? a : b));return {diff --git a/frontend/src/lib/pdf-thumbnail.ts b/frontend/src/lib/pdf-thumbnail.tsnew file mode 100644index 00000000..3d28f20a--- /dev/null+++ b/frontend/src/lib/pdf-thumbnail.ts@@ -0,0 +1,25 @@+import workerUrl from "pdfjs-dist/build/pdf.worker.min.mjs?url";++const WIDTH = 384;++/** The first page of a PDF as an image URL the caller must revoke. pdf.js loads on first+ * use, so it stays out of the initial bundle. */+export async function pdfThumbnail(file: File): Promise<string> {+ const pdfjs = await import("pdfjs-dist");+ pdfjs.GlobalWorkerOptions.workerSrc = workerUrl;+ const task = pdfjs.getDocument({ data: await file.arrayBuffer() });+ try {+ const page = await (await task.promise).getPage(1);+ const viewport = page.getViewport({ scale: 1 });+ const scaled = page.getViewport({ scale: WIDTH / viewport.width });+ const canvas = document.createElement("canvas");+ canvas.width = scaled.width;+ canvas.height = scaled.height;+ await page.render({ canvas, viewport: scaled }).promise;+ const blob = await new Promise<Blob | null>((resolve) => canvas.toBlob(resolve, "image/png"));+ if (!blob) throw new Error("The page could not be drawn.");+ return URL.createObjectURL(blob);+ } finally {+ void task.destroy();+ }+}diff --git a/frontend/src/openapi/.openapi-generator/FILES b/frontend/src/openapi/.openapi-generator/FILESindex e18f010f..824d47c2 100644--- a/frontend/src/openapi/.openapi-generator/FILES+++ b/frontend/src/openapi/.openapi-generator/FILES@@ -1,5 +1,6 @@apis/ActivityApi.tsapis/AgentApi.ts+apis/AssistantThreadsApi.tsapis/AuthApi.tsapis/BillingApi.tsapis/CapabilitiesApi.ts@@ -55,6 +56,11 @@ models/ActivitySeenRequest.tsmodels/ActivitySeenResult.tsmodels/AgentGraph.tsmodels/ApiVersionEnum.ts+models/AssistantEvent.ts+models/AssistantEventKindEnum.ts+models/AssistantInput.ts+models/AssistantThread.ts+models/AssistantThreadStateEnum.tsmodels/AuthTokensResponse.tsmodels/BackendEnum.tsmodels/BeginUploadRequest.ts@@ -87,6 +93,8 @@ models/CatalogModel.tsmodels/Cell.tsmodels/CellStateEnum.tsmodels/CellTransformation.ts+models/ChangeEnum.ts+models/ChangeMessageRequest.tsmodels/CheckoutSessionResponse.tsmodels/CheckpointFile.tsmodels/ColumnStat.ts@@ -253,6 +261,8 @@ models/InferenceReceipt.tsmodels/InspectUploadRequest.tsmodels/IntegrationTypeEnum.tsmodels/IntentEnum.ts+models/Interaction.ts+models/InteractionRequest.tsmodels/JudgeModelEnum.tsmodels/Kind703Enum.tsmodels/LocalSessionRequest.ts@@ -279,6 +289,7 @@ models/NativeMonitor.tsmodels/NativeSample.tsmodels/NativeSamplePrediction.tsmodels/OnboardingMilestone.ts+models/OpenThreadRequest.tsmodels/OpenrouterKeySourceEnum.tsmodels/OpenrouterStatusEnum.tsmodels/OptimizerCandidate.ts@@ -331,6 +342,7 @@ models/PaginatedSignalEventList.tsmodels/PaginatedSignalSubscriptionList.tsmodels/PaginatedTrainingExperimentList.tsmodels/PaginatedTrainingPlanList.ts+models/Participant.tsmodels/PartitionMember.tsmodels/PartitionPlan.tsmodels/PartitionRequestRequest.ts@@ -389,6 +401,7 @@ models/RunPipelineRequest.tsmodels/SaveBindingRequest.tsmodels/SavePipelineRequest.tsmodels/ScopeEnum.ts+models/SendMessageRequest.tsmodels/ServingContextPlan.tsmodels/Session.tsmodels/SetCommandTemplateRequest.tsdiff --git a/frontend/src/openapi/apis/AssistantThreadsApi.ts b/frontend/src/openapi/apis/AssistantThreadsApi.tsnew file mode 100644index 00000000..d3af454e--- /dev/null+++ b/frontend/src/openapi/apis/AssistantThreadsApi.ts@@ -0,0 +1,574 @@+/* tslint:disable */+/* eslint-disable */+/**+ * Overbae API+ * Backend API for the Overclaw / Overmind platform.+ *+ * The version of the OpenAPI document: 2.0.0+ *+ *+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).+ * https://openapi-generator.tech+ * Do not edit the class manually.+ */+++import * as runtime from '../runtime';+import type {+ AssistantEvent,+ AssistantInput,+ AssistantThread,+ ChangeMessageRequest,+ OpenThreadRequest,+ SendMessageRequest,+} from '../models/index';+import {+ AssistantEventFromJSON,+ AssistantEventToJSON,+ AssistantInputFromJSON,+ AssistantInputToJSON,+ AssistantThreadFromJSON,+ AssistantThreadToJSON,+ ChangeMessageRequestFromJSON,+ ChangeMessageRequestToJSON,+ OpenThreadRequestFromJSON,+ OpenThreadRequestToJSON,+ SendMessageRequestFromJSON,+ SendMessageRequestToJSON,+} from '../models/index';++export interface AssistantThreadsCreateRequest {+ openThreadRequest: OpenThreadRequest;+}++export interface AssistantThreadsEventsListRequest {+ id: string;+ after?: number;+}++export interface AssistantThreadsImagesRetrieveRequest {+ id: string;+ name: string;+}++export interface AssistantThreadsListRequest {+ dataset: string;+}++export interface AssistantThreadsMessagesCreateRequest {+ id: string;+ sendMessageRequest: SendMessageRequest;+}++export interface AssistantThreadsQueueCreateRequest {+ id: string;+ changeMessageRequest: ChangeMessageRequest;+}++export interface AssistantThreadsRetrieveRequest {+ id: string;+}++export interface AssistantThreadsStopCreateRequest {+ id: string;+}++/**+ *+ */+export class AssistantThreadsApi extends runtime.BaseAPI {++ /**+ * Open the dataset\'s conversation.+ */+ async assistantThreadsCreateRaw(requestParameters: AssistantThreadsCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AssistantThread>> {+ if (requestParameters['openThreadRequest'] == null) {+ throw new runtime.RequiredError(+ 'openThreadRequest',+ 'Required parameter "openThreadRequest" was null or undefined when calling assistantThreadsCreate().'+ );+ }++ const queryParameters: any = {};++ const headerParameters: runtime.HTTPHeaders = {};++ headerParameters['Content-Type'] = 'application/json';++ if (this.configuration && this.configuration.accessToken) {+ const token = this.configuration.accessToken;+ const tokenString = await token("ClerkBearerAuth", []);++ if (tokenString) {+ headerParameters["Authorization"] = `Bearer ${tokenString}`;+ }+ }+ if (this.configuration && this.configuration.apiKey) {+ headerParameters["X-Api-Key"] = await this.configuration.apiKey("X-Api-Key"); // ApiKeyAuth authentication+ }++ if (this.configuration && this.configuration.accessToken) {+ const token = this.configuration.accessToken;+ const tokenString = await token("BearerAuth", []);++ if (tokenString) {+ headerParameters["Authorization"] = `Bearer ${tokenString}`;+ }+ }++ let urlPath = `/api/assistant-threads/`;++ const response = await this.request({+ path: urlPath,+ method: 'POST',+ headers: headerParameters,+ query: queryParameters,+ body: OpenThreadRequestToJSON(requestParameters['openThreadRequest']),+ }, initOverrides);++ return new runtime.JSONApiResponse(response, (jsonValue) => AssistantThreadFromJSON(jsonValue));+ }++ /**+ * Open the dataset\'s conversation.+ */+ async assistantThreadsCreate(requestParameters: AssistantThreadsCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AssistantThread> {+ const response = await this.assistantThreadsCreateRaw(requestParameters, initOverrides);+ return await response.value();+ }++ /**+ * The events after a cursor, as the Console shows them.+ */+ async assistantThreadsEventsListRaw(requestParameters: AssistantThreadsEventsListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AssistantEvent>>> {+ if (requestParameters['id'] == null) {+ throw new runtime.RequiredError(+ 'id',+ 'Required parameter "id" was null or undefined when calling assistantThreadsEventsList().'+ );+ }++ const queryParameters: any = {};++ if (requestParameters['after'] != null) {+ queryParameters['after'] = requestParameters['after'];+ }++ const headerParameters: runtime.HTTPHeaders = {};++ if (this.configuration && this.configuration.accessToken) {+ const token = this.configuration.accessToken;+ const tokenString = await token("ClerkBearerAuth", []);++ if (tokenString) {+ headerParameters["Authorization"] = `Bearer ${tokenString}`;+ }+ }+ if (this.configuration && this.configuration.apiKey) {+ headerParameters["X-Api-Key"] = await this.configuration.apiKey("X-Api-Key"); // ApiKeyAuth authentication+ }++ if (this.configuration && this.configuration.accessToken) {+ const token = this.configuration.accessToken;+ const tokenString = await token("BearerAuth", []);++ if (tokenString) {+ headerParameters["Authorization"] = `Bearer ${tokenString}`;+ }+ }++ let urlPath = `/api/assistant-threads/{id}/events/`;+ urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));++ const response = await this.request({+ path: urlPath,+ method: 'GET',+ headers: headerParameters,+ query: queryParameters,+ }, initOverrides);++ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(AssistantEventFromJSON));+ }++ /**+ * The events after a cursor, as the Console shows them.+ */+ async assistantThreadsEventsList(requestParameters: AssistantThreadsEventsListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AssistantEvent>> {+ const response = await this.assistantThreadsEventsListRaw(requestParameters, initOverrides);+ return await response.value();+ }++ /**+ * An image the assistant presented in this conversation.+ */+ async assistantThreadsImagesRetrieveRaw(requestParameters: AssistantThreadsImagesRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>> {+ if (requestParameters['id'] == null) {+ throw new runtime.RequiredError(+ 'id',+ 'Required parameter "id" was null or undefined when calling assistantThreadsImagesRetrieve().'+ );+ }++ if (requestParameters['name'] == null) {+ throw new runtime.RequiredError(+ 'name',+ 'Required parameter "name" was null or undefined when calling assistantThreadsImagesRetrieve().'+ );+ }++ const queryParameters: any = {};++ const headerParameters: runtime.HTTPHeaders = {};++ if (this.configuration && this.configuration.accessToken) {+ const token = this.configuration.accessToken;+ const tokenString = await token("ClerkBearerAuth", []);++ if (tokenString) {+ headerParameters["Authorization"] = `Bearer ${tokenString}`;+ }+ }+ if (this.configuration && this.configuration.apiKey) {+ headerParameters["X-Api-Key"] = await this.configuration.apiKey("X-Api-Key"); // ApiKeyAuth authentication+ }++ if (this.configuration && this.configuration.accessToken) {+ const token = this.configuration.accessToken;+ const tokenString = await token("BearerAuth", []);++ if (tokenString) {+ headerParameters["Authorization"] = `Bearer ${tokenString}`;+ }+ }++ let urlPath = `/api/assistant-threads/{id}/images/{name}/`;+ urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));+ urlPath = urlPath.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters['name'])));++ const response = await this.request({+ path: urlPath,+ method: 'GET',+ headers: headerParameters,+ query: queryParameters,+ }, initOverrides);++ return new runtime.BlobApiResponse(response);+ }++ /**+ * An image the assistant presented in this conversation.+ */+ async assistantThreadsImagesRetrieve(requestParameters: AssistantThreadsImagesRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob> {+ const response = await this.assistantThreadsImagesRetrieveRaw(requestParameters, initOverrides);+ return await response.value();+ }++ /**+ * The dataset\'s conversation, if it has one.+ */+ async assistantThreadsListRaw(requestParameters: AssistantThreadsListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AssistantThread>>> {+ if (requestParameters['dataset'] == null) {+ throw new runtime.RequiredError(+ 'dataset',+ 'Required parameter "dataset" was null or undefined when calling assistantThreadsList().'+ );+ }++ const queryParameters: any = {};++ if (requestParameters['dataset'] != null) {+ queryParameters['dataset'] = requestParameters['dataset'];+ }++ const headerParameters: runtime.HTTPHeaders = {};++ if (this.configuration && this.configuration.accessToken) {+ const token = this.configuration.accessToken;+ const tokenString = await token("ClerkBearerAuth", []);++ if (tokenString) {+ headerParameters["Authorization"] = `Bearer ${tokenString}`;+ }+ }+ if (this.configuration && this.configuration.apiKey) {+ headerParameters["X-Api-Key"] = await this.configuration.apiKey("X-Api-Key"); // ApiKeyAuth authentication+ }++ if (this.configuration && this.configuration.accessToken) {+ const token = this.configuration.accessToken;+ const tokenString = await token("BearerAuth", []);++ if (tokenString) {+ headerParameters["Authorization"] = `Bearer ${tokenString}`;+ }+ }++ let urlPath = `/api/assistant-threads/`;++ const response = await this.request({+ path: urlPath,+ method: 'GET',+ headers: headerParameters,+ query: queryParameters,+ }, initOverrides);++ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(AssistantThreadFromJSON));+ }++ /**+ * The dataset\'s conversation, if it has one.+ */+ async assistantThreadsList(requestParameters: AssistantThreadsListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AssistantThread>> {+ const response = await this.assistantThreadsListRaw(requestParameters, initOverrides);+ return await response.value();+ }++ /**+ * The conversation about a dataset. Changes are announced on the dataset\'s event stream; a page reads them here.+ */+ async assistantThreadsMessagesCreateRaw(requestParameters: AssistantThreadsMessagesCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AssistantInput>> {+ if (requestParameters['id'] == null) {+ throw new runtime.RequiredError(+ 'id',+ 'Required parameter "id" was null or undefined when calling assistantThreadsMessagesCreate().'+ );+ }++ if (requestParameters['sendMessageRequest'] == null) {+ throw new runtime.RequiredError(+ 'sendMessageRequest',+ 'Required parameter "sendMessageRequest" was null or undefined when calling assistantThreadsMessagesCreate().'+ );+ }++ const queryParameters: any = {};++ const headerParameters: runtime.HTTPHeaders = {};++ headerParameters['Content-Type'] = 'application/json';++ if (this.configuration && this.configuration.accessToken) {+ const token = this.configuration.accessToken;+ const tokenString = await token("ClerkBearerAuth", []);++ if (tokenString) {+ headerParameters["Authorization"] = `Bearer ${tokenString}`;+ }+ }+ if (this.configuration && this.configuration.apiKey) {+ headerParameters["X-Api-Key"] = await this.configuration.apiKey("X-Api-Key"); // ApiKeyAuth authentication+ }++ if (this.configuration && this.configuration.accessToken) {+ const token = this.configuration.accessToken;+ const tokenString = await token("BearerAuth", []);++ if (tokenString) {+ headerParameters["Authorization"] = `Bearer ${tokenString}`;+ }+ }++ let urlPath = `/api/assistant-threads/{id}/messages/`;+ urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));++ const response = await this.request({+ path: urlPath,+ method: 'POST',+ headers: headerParameters,+ query: queryParameters,+ body: SendMessageRequestToJSON(requestParameters['sendMessageRequest']),+ }, initOverrides);++ return new runtime.JSONApiResponse(response, (jsonValue) => AssistantInputFromJSON(jsonValue));+ }++ /**+ * The conversation about a dataset. Changes are announced on the dataset\'s event stream; a page reads them here.+ */+ async assistantThreadsMessagesCreate(requestParameters: AssistantThreadsMessagesCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AssistantInput> {+ const response = await this.assistantThreadsMessagesCreateRaw(requestParameters, initOverrides);+ return await response.value();+ }++ /**+ * Edit, remove, move or send now a message that is still queued.+ */+ async assistantThreadsQueueCreateRaw(requestParameters: AssistantThreadsQueueCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AssistantInput>> {+ if (requestParameters['id'] == null) {+ throw new runtime.RequiredError(+ 'id',+ 'Required parameter "id" was null or undefined when calling assistantThreadsQueueCreate().'+ );+ }++ if (requestParameters['changeMessageRequest'] == null) {+ throw new runtime.RequiredError(+ 'changeMessageRequest',+ 'Required parameter "changeMessageRequest" was null or undefined when calling assistantThreadsQueueCreate().'+ );+ }++ const queryParameters: any = {};++ const headerParameters: runtime.HTTPHeaders = {};++ headerParameters['Content-Type'] = 'application/json';++ if (this.configuration && this.configuration.accessToken) {+ const token = this.configuration.accessToken;+ const tokenString = await token("ClerkBearerAuth", []);++ if (tokenString) {+ headerParameters["Authorization"] = `Bearer ${tokenString}`;+ }+ }+ if (this.configuration && this.configuration.apiKey) {+ headerParameters["X-Api-Key"] = await this.configuration.apiKey("X-Api-Key"); // ApiKeyAuth authentication+ }++ if (this.configuration && this.configuration.accessToken) {+ const token = this.configuration.accessToken;+ const tokenString = await token("BearerAuth", []);++ if (tokenString) {+ headerParameters["Authorization"] = `Bearer ${tokenString}`;+ }+ }++ let urlPath = `/api/assistant-threads/{id}/queue/`;+ urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));++ const response = await this.request({+ path: urlPath,+ method: 'POST',+ headers: headerParameters,+ query: queryParameters,+ body: ChangeMessageRequestToJSON(requestParameters['changeMessageRequest']),+ }, initOverrides);++ return new runtime.JSONApiResponse(response, (jsonValue) => AssistantInputFromJSON(jsonValue));+ }++ /**+ * Edit, remove, move or send now a message that is still queued.+ */+ async assistantThreadsQueueCreate(requestParameters: AssistantThreadsQueueCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AssistantInput> {+ const response = await this.assistantThreadsQueueCreateRaw(requestParameters, initOverrides);+ return await response.value();+ }++ /**+ * The conversation about a dataset. Changes are announced on the dataset\'s event stream; a page reads them here.+ */+ async assistantThreadsRetrieveRaw(requestParameters: AssistantThreadsRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AssistantThread>> {+ if (requestParameters['id'] == null) {+ throw new runtime.RequiredError(+ 'id',+ 'Required parameter "id" was null or undefined when calling assistantThreadsRetrieve().'+ );+ }++ const queryParameters: any = {};++ const headerParameters: runtime.HTTPHeaders = {};++ if (this.configuration && this.configuration.accessToken) {+ const token = this.configuration.accessToken;+ const tokenString = await token("ClerkBearerAuth", []);++ if (tokenString) {+ headerParameters["Authorization"] = `Bearer ${tokenString}`;+ }+ }+ if (this.configuration && this.configuration.apiKey) {+ headerParameters["X-Api-Key"] = await this.configuration.apiKey("X-Api-Key"); // ApiKeyAuth authentication+ }++ if (this.configuration && this.configuration.accessToken) {+ const token = this.configuration.accessToken;+ const tokenString = await token("BearerAuth", []);++ if (tokenString) {+ headerParameters["Authorization"] = `Bearer ${tokenString}`;+ }+ }++ let urlPath = `/api/assistant-threads/{id}/`;+ urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));++ const response = await this.request({+ path: urlPath,+ method: 'GET',+ headers: headerParameters,+ query: queryParameters,+ }, initOverrides);++ return new runtime.JSONApiResponse(response, (jsonValue) => AssistantThreadFromJSON(jsonValue));+ }++ /**+ * The conversation about a dataset. Changes are announced on the dataset\'s event stream; a page reads them here.+ */+ async assistantThreadsRetrieve(requestParameters: AssistantThreadsRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AssistantThread> {+ const response = await this.assistantThreadsRetrieveRaw(requestParameters, initOverrides);+ return await response.value();+ }++ /**+ * The conversation about a dataset. Changes are announced on the dataset\'s event stream; a page reads them here.+ */+ async assistantThreadsStopCreateRaw(requestParameters: AssistantThreadsStopCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AssistantThread>> {+ if (requestParameters['id'] == null) {+ throw new runtime.RequiredError(+ 'id',+ 'Required parameter "id" was null or undefined when calling assistantThreadsStopCreate().'+ );+ }++ const queryParameters: any = {};++ const headerParameters: runtime.HTTPHeaders = {};++ if (this.configuration && this.configuration.accessToken) {+ const token = this.configuration.accessToken;+ const tokenString = await token("ClerkBearerAuth", []);++ if (tokenString) {+ headerParameters["Authorization"] = `Bearer ${tokenString}`;+ }+ }+ if (this.configuration && this.configuration.apiKey) {+ headerParameters["X-Api-Key"] = await this.configuration.apiKey("X-Api-Key"); // ApiKeyAuth authentication+ }++ if (this.configuration && this.configuration.accessToken) {+ const token = this.configuration.accessToken;+ const tokenString = await token("BearerAuth", []);++ if (tokenString) {+ headerParameters["Authorization"] = `Bearer ${tokenString}`;+ }+ }++ let urlPath = `/api/assistant-threads/{id}/stop/`;+ urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));++ const response = await this.request({+ path: urlPath,+ method: 'POST',+ headers: headerParameters,+ query: queryParameters,+ }, initOverrides);++ return new runtime.JSONApiResponse(response, (jsonValue) => AssistantThreadFromJSON(jsonValue));+ }++ /**+ * The conversation about a dataset. Changes are announced on the dataset\'s event stream; a page reads them here.+ */+ async assistantThreadsStopCreate(requestParameters: AssistantThreadsStopCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AssistantThread> {+ const response = await this.assistantThreadsStopCreateRaw(requestParameters, initOverrides);+ return await response.value();+ }++}diff --git a/frontend/src/openapi/apis/DatasetsApi.ts b/frontend/src/openapi/apis/DatasetsApi.tsindex 1feb9087..47bfd6a0 100644--- a/frontend/src/openapi/apis/DatasetsApi.ts+++ b/frontend/src/openapi/apis/DatasetsApi.ts@@ -89,10 +89,6 @@ export interface DatasetsDestroyRequest {id: string;}-export interface DatasetsEndPreparationCreateRequest {- id: string;-}-export interface DatasetsEventsRetrieveRequest {id: string;format?: DatasetsEventsRetrieveFormatEnum;@@ -432,62 +428,7 @@ export class DatasetsApi extends runtime.BaseAPI {}/**- */- async datasetsEndPreparationCreateRaw(requestParameters: DatasetsEndPreparationCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Dataset>> {- if (requestParameters['id'] == null) {- throw new runtime.RequiredError(- 'id',- 'Required parameter "id" was null or undefined when calling datasetsEndPreparationCreate().'- );- }-- const queryParameters: any = {};-- const headerParameters: runtime.HTTPHeaders = {};-- if (this.configuration && this.configuration.accessToken) {- const token = this.configuration.accessToken;- const tokenString = await token("ClerkBearerAuth", []);-- if (tokenString) {- headerParameters["Authorization"] = `Bearer ${tokenString}`;- }- }- if (this.configuration && this.configuration.apiKey) {- headerParameters["X-Api-Key"] = await this.configuration.apiKey("X-Api-Key"); // ApiKeyAuth authentication- }-- if (this.configuration && this.configuration.accessToken) {- const token = this.configuration.accessToken;- const tokenString = await token("BearerAuth", []);-- if (tokenString) {- headerParameters["Authorization"] = `Bearer ${tokenString}`;- }- }-- let urlPath = `/api/datasets/{id}/end-preparation/`;- urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));-- const response = await this.request({- path: urlPath,- method: 'POST',- headers: headerParameters,- query: queryParameters,- }, initOverrides);-- return new runtime.JSONApiResponse(response, (jsonValue) => DatasetFromJSON(jsonValue));- }-- /**- */- async datasetsEndPreparationCreate(requestParameters: DatasetsEndPreparationCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Dataset> {- const response = await this.datasetsEndPreparationCreateRaw(requestParameters, initOverrides);- return await response.value();- }-- /**- * Dataset event stream (SSE): landing, cells, runs and chat+ * Dataset event stream (SSE): what changed in the dataset and its conversation*/async datasetsEventsRetrieveRaw(requestParameters: DatasetsEventsRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Dataset>> {if (requestParameters['id'] == null) {@@ -540,7 +481,7 @@ export class DatasetsApi extends runtime.BaseAPI {}/**- * Dataset event stream (SSE): landing, cells, runs and chat+ * Dataset event stream (SSE): what changed in the dataset and its conversation*/async datasetsEventsRetrieve(requestParameters: DatasetsEventsRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Dataset> {const response = await this.datasetsEventsRetrieveRaw(requestParameters, initOverrides);diff --git a/frontend/src/openapi/apis/index.ts b/frontend/src/openapi/apis/index.tsindex 58cd80df..d3782d14 100644--- a/frontend/src/openapi/apis/index.ts+++ b/frontend/src/openapi/apis/index.ts@@ -2,6 +2,7 @@/* eslint-disable */export * from './ActivityApi';export * from './AgentApi';+export * from './AssistantThreadsApi';export * from './AuthApi';export * from './BillingApi';export * from './CapabilitiesApi';diff --git a/frontend/src/openapi/models/AssistantEvent.ts b/frontend/src/openapi/models/AssistantEvent.tsnew file mode 100644index 00000000..30f9b9db--- /dev/null+++ b/frontend/src/openapi/models/AssistantEvent.ts@@ -0,0 +1,107 @@+/* tslint:disable */+/* eslint-disable */+/**+ * Overbae API+ * Backend API for the Overclaw / Overmind platform.+ *+ * The version of the OpenAPI document: 2.0.0+ *+ *+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).+ * https://openapi-generator.tech+ * Do not edit the class manually.+ */++import { mapValues } from '../runtime';+import type { AssistantEventKindEnum } from './AssistantEventKindEnum';+import {+ AssistantEventKindEnumFromJSON,+ AssistantEventKindEnumFromJSONTyped,+ AssistantEventKindEnumToJSON,+ AssistantEventKindEnumToJSONTyped,+} from './AssistantEventKindEnum';++/**+ * An event as the Console shows it. What the model reads of a tool's result stays in+ * Postgres: only a Python cell's output, an error and a result document leave it.+ * @export+ * @interface AssistantEvent+ */+export interface AssistantEvent {+ /**+ *+ * @type {number}+ * @memberof AssistantEvent+ */+ readonly sequence: number;+ /**+ *+ * @type {AssistantEventKindEnum}+ * @memberof AssistantEvent+ */+ readonly kind: AssistantEventKindEnum;+ /**+ *+ * @type {{ [key: string]: any; }}+ * @memberof AssistantEvent+ */+ readonly payload: { [key: string]: any; };+ /**+ *+ * @type {any}+ * @memberof AssistantEvent+ */+ readonly presentation: any | null;+ /**+ *+ * @type {Date}+ * @memberof AssistantEvent+ */+ readonly createdAt: Date;+}++++/**+ * Check if a given object implements the AssistantEvent interface.+ */+export function instanceOfAssistantEvent(value: object): value is AssistantEvent {+ if (!('sequence' in value) || value['sequence'] === undefined) return false;+ if (!('kind' in value) || value['kind'] === undefined) return false;+ if (!('payload' in value) || value['payload'] === undefined) return false;+ if (!('presentation' in value) || value['presentation'] === undefined) return false;+ if (!('createdAt' in value) || value['createdAt'] === undefined) return false;+ return true;+}++export function AssistantEventFromJSON(json: any): AssistantEvent {+ return AssistantEventFromJSONTyped(json, false);+}++export function AssistantEventFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssistantEvent {+ if (json == null) {+ return json;+ }+ return {++ 'sequence': json['sequence'],+ 'kind': AssistantEventKindEnumFromJSON(json['kind']),+ 'payload': json['payload'],+ 'presentation': json['presentation'],+ 'createdAt': (new Date(json['created_at'])),+ };+}++export function AssistantEventToJSON(json: any): AssistantEvent {+ return AssistantEventToJSONTyped(json, false);+}++export function AssistantEventToJSONTyped(value?: Omit<AssistantEvent, 'sequence'|'kind'|'payload'|'presentation'|'created_at'> | null, ignoreDiscriminator: boolean = false): any {+ if (value == null) {+ return value;+ }++ return {++ };+}diff --git a/frontend/src/openapi/models/AssistantEventKindEnum.ts b/frontend/src/openapi/models/AssistantEventKindEnum.tsnew file mode 100644index 00000000..12432c3e--- /dev/null+++ b/frontend/src/openapi/models/AssistantEventKindEnum.ts@@ -0,0 +1,59 @@+/* tslint:disable */+/* eslint-disable */+/**+ * Overbae API+ * Backend API for the Overclaw / Overmind platform.+ *+ * The version of the OpenAPI document: 2.0.0+ *+ *+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).+ * https://openapi-generator.tech+ * Do not edit the class manually.+ */+++/**+ * * `user` - User+ * * `assistant` - Assistant+ * * `tool_result` - Tool Result+ * * `status` - Status+ * * `summary` - Summary+ * @export+ */+export const AssistantEventKindEnum = {+ user: 'user',+ assistant: 'assistant',+ tool_result: 'tool_result',+ status: 'status',+ summary: 'summary'+} as const;+export type AssistantEventKindEnum = typeof AssistantEventKindEnum[keyof typeof AssistantEventKindEnum];+++export function instanceOfAssistantEventKindEnum(value: any): boolean {+ for (const key in AssistantEventKindEnum) {+ if (Object.prototype.hasOwnProperty.call(AssistantEventKindEnum, key)) {+ if (AssistantEventKindEnum[key as keyof typeof AssistantEventKindEnum] === value) {+ return true;+ }+ }+ }+ return false;+}++export function AssistantEventKindEnumFromJSON(json: any): AssistantEventKindEnum {+ return AssistantEventKindEnumFromJSONTyped(json, false);+}++export function AssistantEventKindEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssistantEventKindEnum {+ return json as AssistantEventKindEnum;+}++export function AssistantEventKindEnumToJSON(value?: AssistantEventKindEnum | null): any {+ return value as any;+}++export function AssistantEventKindEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): AssistantEventKindEnum {+ return value as AssistantEventKindEnum;+}diff --git a/frontend/src/openapi/models/AssistantInput.ts b/frontend/src/openapi/models/AssistantInput.tsnew file mode 100644index 00000000..20c67311--- /dev/null+++ b/frontend/src/openapi/models/AssistantInput.ts@@ -0,0 +1,129 @@+/* tslint:disable */+/* eslint-disable */+/**+ * Overbae API+ * Backend API for the Overclaw / Overmind platform.+ *+ * The version of the OpenAPI document: 2.0.0+ *+ *+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).+ * https://openapi-generator.tech+ * Do not edit the class manually.+ */++import { mapValues } from '../runtime';+import type { Interaction } from './Interaction';+import {+ InteractionFromJSON,+ InteractionFromJSONTyped,+ InteractionToJSON,+ InteractionToJSONTyped,+} from './Interaction';++/**+ *+ * @export+ * @interface AssistantInput+ */+export interface AssistantInput {+ /**+ *+ * @type {string}+ * @memberof AssistantInput+ */+ readonly id: string;+ /**+ *+ * @type {number}+ * @memberof AssistantInput+ */+ readonly createdBy: number;+ /**+ *+ * @type {string}+ * @memberof AssistantInput+ */+ readonly text: string;+ /**+ *+ * @type {any}+ * @memberof AssistantInput+ */+ readonly cells: any | null;+ /**+ *+ * @type {Interaction}+ * @memberof AssistantInput+ */+ interaction: Interaction | null;+ /**+ *+ * @type {boolean}+ * @memberof AssistantInput+ */+ readonly urgent: boolean;+ /**+ *+ * @type {number}+ * @memberof AssistantInput+ */+ readonly position: number;+ /**+ *+ * @type {number}+ * @memberof AssistantInput+ */+ readonly revision: number;+}++/**+ * Check if a given object implements the AssistantInput interface.+ */+export function instanceOfAssistantInput(value: object): value is AssistantInput {+ if (!('id' in value) || value['id'] === undefined) return false;+ if (!('createdBy' in value) || value['createdBy'] === undefined) return false;+ if (!('text' in value) || value['text'] === undefined) return false;+ if (!('cells' in value) || value['cells'] === undefined) return false;+ if (!('interaction' in value) || value['interaction'] === undefined) return false;+ if (!('urgent' in value) || value['urgent'] === undefined) return false;+ if (!('position' in value) || value['position'] === undefined) return false;+ if (!('revision' in value) || value['revision'] === undefined) return false;+ return true;+}++export function AssistantInputFromJSON(json: any): AssistantInput {+ return AssistantInputFromJSONTyped(json, false);+}++export function AssistantInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssistantInput {+ if (json == null) {+ return json;+ }+ return {++ 'id': json['id'],+ 'createdBy': json['created_by'],+ 'text': json['text'],+ 'cells': json['cells'],+ 'interaction': InteractionFromJSON(json['interaction']),+ 'urgent': json['urgent'],+ 'position': json['position'],+ 'revision': json['revision'],+ };+}++export function AssistantInputToJSON(json: any): AssistantInput {+ return AssistantInputToJSONTyped(json, false);+}++export function AssistantInputToJSONTyped(value?: Omit<AssistantInput, 'id'|'created_by'|'text'|'cells'|'urgent'|'position'|'revision'> | null, ignoreDiscriminator: boolean = false): any {+ if (value == null) {+ return value;+ }++ return {++ 'interaction': InteractionToJSON(value['interaction']),+ };+}diff --git a/frontend/src/openapi/models/AssistantThread.ts b/frontend/src/openapi/models/AssistantThread.tsnew file mode 100644index 00000000..17e1d221--- /dev/null+++ b/frontend/src/openapi/models/AssistantThread.ts@@ -0,0 +1,144 @@+/* tslint:disable */+/* eslint-disable */+/**+ * Overbae API+ * Backend API for the Overclaw / Overmind platform.+ *+ * The version of the OpenAPI document: 2.0.0+ *+ *+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).+ * https://openapi-generator.tech+ * Do not edit the class manually.+ */++import { mapValues } from '../runtime';+import type { Participant } from './Participant';+import {+ ParticipantFromJSON,+ ParticipantFromJSONTyped,+ ParticipantToJSON,+ ParticipantToJSONTyped,+} from './Participant';+import type { AssistantInput } from './AssistantInput';+import {+ AssistantInputFromJSON,+ AssistantInputFromJSONTyped,+ AssistantInputToJSON,+ AssistantInputToJSONTyped,+} from './AssistantInput';+import type { AssistantThreadStateEnum } from './AssistantThreadStateEnum';+import {+ AssistantThreadStateEnumFromJSON,+ AssistantThreadStateEnumFromJSONTyped,+ AssistantThreadStateEnumToJSON,+ AssistantThreadStateEnumToJSONTyped,+} from './AssistantThreadStateEnum';++/**+ *+ * @export+ * @interface AssistantThread+ */+export interface AssistantThread {+ /**+ *+ * @type {string}+ * @memberof AssistantThread+ */+ readonly id: string;+ /**+ *+ * @type {string}+ * @memberof AssistantThread+ */+ readonly project: string;+ /**+ *+ * @type {string}+ * @memberof AssistantThread+ */+ readonly dataset: string;+ /**+ *+ * @type {AssistantThreadStateEnum}+ * @memberof AssistantThread+ */+ readonly state: AssistantThreadStateEnum;+ /**+ *+ * @type {boolean}+ * @memberof AssistantThread+ */+ readonly stopRequested: boolean;+ /**+ *+ * @type {Array<AssistantInput>}+ * @memberof AssistantThread+ */+ readonly queue: Array<AssistantInput>;+ /**+ *+ * @type {Array<Participant>}+ * @memberof AssistantThread+ */+ readonly participants: Array<Participant>;+ /**+ * The reply written so far, for a page that opens in the middle of it.+ * @type {string}+ * @memberof AssistantThread+ */+ readonly draft: string;+}++++/**+ * Check if a given object implements the AssistantThread interface.+ */+export function instanceOfAssistantThread(value: object): value is AssistantThread {+ if (!('id' in value) || value['id'] === undefined) return false;+ if (!('project' in value) || value['project'] === undefined) return false;+ if (!('dataset' in value) || value['dataset'] === undefined) return false;+ if (!('state' in value) || value['state'] === undefined) return false;+ if (!('stopRequested' in value) || value['stopRequested'] === undefined) return false;+ if (!('queue' in value) || value['queue'] === undefined) return false;+ if (!('participants' in value) || value['participants'] === undefined) return false;+ if (!('draft' in value) || value['draft'] === undefined) return false;+ return true;+}++export function AssistantThreadFromJSON(json: any): AssistantThread {+ return AssistantThreadFromJSONTyped(json, false);+}++export function AssistantThreadFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssistantThread {+ if (json == null) {+ return json;+ }+ return {++ 'id': json['id'],+ 'project': json['project'],+ 'dataset': json['dataset'],+ 'state': AssistantThreadStateEnumFromJSON(json['state']),+ 'stopRequested': json['stop_requested'],+ 'queue': ((json['queue'] as Array<any>).map(AssistantInputFromJSON)),+ 'participants': ((json['participants'] as Array<any>).map(ParticipantFromJSON)),+ 'draft': json['draft'],+ };+}++export function AssistantThreadToJSON(json: any): AssistantThread {+ return AssistantThreadToJSONTyped(json, false);+}++export function AssistantThreadToJSONTyped(value?: Omit<AssistantThread, 'id'|'project'|'dataset'|'state'|'stop_requested'|'queue'|'participants'|'draft'> | null, ignoreDiscriminator: boolean = false): any {+ if (value == null) {+ return value;+ }++ return {++ };+}diff --git a/frontend/src/openapi/models/AssistantThreadStateEnum.ts b/frontend/src/openapi/models/AssistantThreadStateEnum.tsnew file mode 100644index 00000000..c8bb9ed8--- /dev/null+++ b/frontend/src/openapi/models/AssistantThreadStateEnum.ts@@ -0,0 +1,53 @@+/* tslint:disable */+/* eslint-disable */+/**+ * Overbae API+ * Backend API for the Overclaw / Overmind platform.+ *+ * The version of the OpenAPI document: 2.0.0+ *+ *+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).+ * https://openapi-generator.tech+ * Do not edit the class manually.+ */+++/**+ * * `idle` - Idle+ * * `running` - Running+ * @export+ */+export const AssistantThreadStateEnum = {+ idle: 'idle',+ running: 'running'+} as const;+export type AssistantThreadStateEnum = typeof AssistantThreadStateEnum[keyof typeof AssistantThreadStateEnum];+++export function instanceOfAssistantThreadStateEnum(value: any): boolean {+ for (const key in AssistantThreadStateEnum) {+ if (Object.prototype.hasOwnProperty.call(AssistantThreadStateEnum, key)) {+ if (AssistantThreadStateEnum[key as keyof typeof AssistantThreadStateEnum] === value) {+ return true;+ }+ }+ }+ return false;+}++export function AssistantThreadStateEnumFromJSON(json: any): AssistantThreadStateEnum {+ return AssistantThreadStateEnumFromJSONTyped(json, false);+}++export function AssistantThreadStateEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssistantThreadStateEnum {+ return json as AssistantThreadStateEnum;+}++export function AssistantThreadStateEnumToJSON(value?: AssistantThreadStateEnum | null): any {+ return value as any;+}++export function AssistantThreadStateEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): AssistantThreadStateEnum {+ return value as AssistantThreadStateEnum;+}diff --git a/frontend/src/openapi/models/Cell.ts b/frontend/src/openapi/models/Cell.tsindex f581bb10..a060f01a 100644--- a/frontend/src/openapi/models/Cell.ts+++ b/frontend/src/openapi/models/Cell.ts@@ -151,12 +151,6 @@ export interface Cell {* @memberof Cell*/readonly fits: { [key: string]: any; };- /**- *- * @type {any}- * @memberof Cell- */- readonly stats: any | null;/**** @type {DatasetAnalytics}@@ -165,10 +159,10 @@ export interface Cell {readonly analytics: DatasetAnalytics;/***- * @type {any}+ * @type {{ [key: string]: any; }}* @memberof Cell*/- readonly review: any | null;+ readonly review: { [key: string]: any; };/**** @type {any}@@ -242,7 +236,6 @@ export function instanceOfCell(value: object): value is Cell {if (!('intentReport' in value) || value['intentReport'] === undefined) return false;if (!('capabilityReport' in value) || value['capabilityReport'] === undefined) return false;if (!('fits' in value) || value['fits'] === undefined) return false;- if (!('stats' in value) || value['stats'] === undefined) return false;if (!('analytics' in value) || value['analytics'] === undefined) return false;if (!('review' in value) || value['review'] === undefined) return false;if (!('qualityReport' in value) || value['qualityReport'] === undefined) return false;@@ -283,7 +276,6 @@ export function CellFromJSONTyped(json: any, ignoreDiscriminator: boolean): Cell'intentReport': json['intent_report'],'capabilityReport': json['capability_report'],'fits': json['fits'],- 'stats': json['stats'],'analytics': DatasetAnalyticsFromJSON(json['analytics']),'review': json['review'],'qualityReport': json['quality_report'],@@ -301,7 +293,7 @@ export function CellToJSON(json: any): Cell {return CellToJSONTyped(json, false);}-export function CellToJSONTyped(value?: Omit<Cell, 'id'|'position'|'version'|'title'|'script'|'transformation'|'note'|'state'|'error'|'frozen'|'rows'|'columns'|'fingerprint'|'input_fingerprint'|'intent_report'|'capability_report'|'fits'|'stats'|'analytics'|'review'|'quality_report'|'preparation_plan'|'readiness'|'seconds'|'used_at'|'usage'|'created_at'|'updated_at'> | null, ignoreDiscriminator: boolean = false): any {+export function CellToJSONTyped(value?: Omit<Cell, 'id'|'position'|'version'|'title'|'script'|'transformation'|'note'|'state'|'error'|'frozen'|'rows'|'columns'|'fingerprint'|'input_fingerprint'|'intent_report'|'capability_report'|'fits'|'analytics'|'review'|'quality_report'|'preparation_plan'|'readiness'|'seconds'|'used_at'|'usage'|'created_at'|'updated_at'> | null, ignoreDiscriminator: boolean = false): any {if (value == null) {return value;}diff --git a/frontend/src/openapi/models/ChangeEnum.ts b/frontend/src/openapi/models/ChangeEnum.tsnew file mode 100644index 00000000..70641a90--- /dev/null+++ b/frontend/src/openapi/models/ChangeEnum.ts@@ -0,0 +1,57 @@+/* tslint:disable */+/* eslint-disable */+/**+ * Overbae API+ * Backend API for the Overclaw / Overmind platform.+ *+ * The version of the OpenAPI document: 2.0.0+ *+ *+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).+ * https://openapi-generator.tech+ * Do not edit the class manually.+ */+++/**+ * * `edit` - edit+ * * `remove` - remove+ * * `move` - move+ * * `send_now` - send_now+ * @export+ */+export const ChangeEnum = {+ edit: 'edit',+ remove: 'remove',+ move: 'move',+ send_now: 'send_now'+} as const;+export type ChangeEnum = typeof ChangeEnum[keyof typeof ChangeEnum];+++export function instanceOfChangeEnum(value: any): boolean {+ for (const key in ChangeEnum) {+ if (Object.prototype.hasOwnProperty.call(ChangeEnum, key)) {+ if (ChangeEnum[key as keyof typeof ChangeEnum] === value) {+ return true;+ }+ }+ }+ return false;+}++export function ChangeEnumFromJSON(json: any): ChangeEnum {+ return ChangeEnumFromJSONTyped(json, false);+}++export function ChangeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChangeEnum {+ return json as ChangeEnum;+}++export function ChangeEnumToJSON(value?: ChangeEnum | null): any {+ return value as any;+}++export function ChangeEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): ChangeEnum {+ return value as ChangeEnum;+}diff --git a/frontend/src/openapi/models/ChangeMessageRequest.ts b/frontend/src/openapi/models/ChangeMessageRequest.tsnew file mode 100644index 00000000..e1d8025b--- /dev/null+++ b/frontend/src/openapi/models/ChangeMessageRequest.ts@@ -0,0 +1,109 @@+/* tslint:disable */+/* eslint-disable */+/**+ * Overbae API+ * Backend API for the Overclaw / Overmind platform.+ *+ * The version of the OpenAPI document: 2.0.0+ *+ *+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).+ * https://openapi-generator.tech+ * Do not edit the class manually.+ */++import { mapValues } from '../runtime';+import type { ChangeEnum } from './ChangeEnum';+import {+ ChangeEnumFromJSON,+ ChangeEnumFromJSONTyped,+ ChangeEnumToJSON,+ ChangeEnumToJSONTyped,+} from './ChangeEnum';++/**+ *+ * @export+ * @interface ChangeMessageRequest+ */+export interface ChangeMessageRequest {+ /**+ *+ * @type {string}+ * @memberof ChangeMessageRequest+ */+ message: string;+ /**+ *+ * @type {number}+ * @memberof ChangeMessageRequest+ */+ revision: number;+ /**+ *+ * @type {ChangeEnum}+ * @memberof ChangeMessageRequest+ */+ change: ChangeEnum;+ /**+ *+ * @type {string}+ * @memberof ChangeMessageRequest+ */+ text?: string;+ /**+ *+ * @type {string}+ * @memberof ChangeMessageRequest+ */+ before?: string | null;+}++++/**+ * Check if a given object implements the ChangeMessageRequest interface.+ */+export function instanceOfChangeMessageRequest(value: object): value is ChangeMessageRequest {+ if (!('message' in value) || value['message'] === undefined) return false;+ if (!('revision' in value) || value['revision'] === undefined) return false;+ if (!('change' in value) || value['change'] === undefined) return false;+ return true;+}++export function ChangeMessageRequestFromJSON(json: any): ChangeMessageRequest {+ return ChangeMessageRequestFromJSONTyped(json, false);+}++export function ChangeMessageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChangeMessageRequest {+ if (json == null) {+ return json;+ }+ return {++ 'message': json['message'],+ 'revision': json['revision'],+ 'change': ChangeEnumFromJSON(json['change']),+ 'text': json['text'] == null ? undefined : json['text'],+ 'before': json['before'] == null ? undefined : json['before'],+ };+}++export function ChangeMessageRequestToJSON(json: any): ChangeMessageRequest {+ return ChangeMessageRequestToJSONTyped(json, false);+}++export function ChangeMessageRequestToJSONTyped(value?: ChangeMessageRequest | null, ignoreDiscriminator: boolean = false): any {+ if (value == null) {+ return value;+ }++ return {++ 'message': value['message'],+ 'revision': value['revision'],+ 'change': ChangeEnumToJSON(value['change']),+ 'text': value['text'],+ 'before': value['before'],+ };+}diff --git a/frontend/src/openapi/models/Interaction.ts b/frontend/src/openapi/models/Interaction.tsnew file mode 100644index 00000000..734a1a24--- /dev/null+++ b/frontend/src/openapi/models/Interaction.ts@@ -0,0 +1,83 @@+/* tslint:disable */+/* eslint-disable */+/**+ * Overbae API+ * Backend API for the Overclaw / Overmind platform.+ *+ * The version of the OpenAPI document: 2.0.0+ *+ *+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).+ * https://openapi-generator.tech+ * Do not edit the class manually.+ */++import { mapValues } from '../runtime';+/**+ * The answer to one Question or Choices of a result the assistant showed.+ * @export+ * @interface Interaction+ */+export interface Interaction {+ /**+ *+ * @type {string}+ * @memberof Interaction+ */+ call: string;+ /**+ *+ * @type {string}+ * @memberof Interaction+ */+ id: string;+ /**+ *+ * @type {{ [key: string]: any; }}+ * @memberof Interaction+ */+ values: { [key: string]: any; };+}++/**+ * Check if a given object implements the Interaction interface.+ */+export function instanceOfInteraction(value: object): value is Interaction {+ if (!('call' in value) || value['call'] === undefined) return false;+ if (!('id' in value) || value['id'] === undefined) return false;+ if (!('values' in value) || value['values'] === undefined) return false;+ return true;+}++export function InteractionFromJSON(json: any): Interaction {+ return InteractionFromJSONTyped(json, false);+}++export function InteractionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Interaction {+ if (json == null) {+ return json;+ }+ return {++ 'call': json['call'],+ 'id': json['id'],+ 'values': json['values'],+ };+}++export function InteractionToJSON(json: any): Interaction {+ return InteractionToJSONTyped(json, false);+}++export function InteractionToJSONTyped(value?: Interaction | null, ignoreDiscriminator: boolean = false): any {+ if (value == null) {+ return value;+ }++ return {++ 'call': value['call'],+ 'id': value['id'],+ 'values': value['values'],+ };+}diff --git a/frontend/src/openapi/models/InteractionRequest.ts b/frontend/src/openapi/models/InteractionRequest.tsnew file mode 100644index 00000000..d20f1132--- /dev/null+++ b/frontend/src/openapi/models/InteractionRequest.ts@@ -0,0 +1,83 @@+/* tslint:disable */+/* eslint-disable */+/**+ * Overbae API+ * Backend API for the Overclaw / Overmind platform.+ *+ * The version of the OpenAPI document: 2.0.0+ *+ *+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).+ * https://openapi-generator.tech+ * Do not edit the class manually.+ */++import { mapValues } from '../runtime';+/**+ * The answer to one Question or Choices of a result the assistant showed.+ * @export+ * @interface InteractionRequest+ */+export interface InteractionRequest {+ /**+ *+ * @type {string}+ * @memberof InteractionRequest+ */+ call: string;+ /**+ *+ * @type {string}+ * @memberof InteractionRequest+ */+ id: string;+ /**+ *+ * @type {{ [key: string]: any; }}+ * @memberof InteractionRequest+ */+ values: { [key: string]: any; };+}++/**+ * Check if a given object implements the InteractionRequest interface.+ */+export function instanceOfInteractionRequest(value: object): value is InteractionRequest {+ if (!('call' in value) || value['call'] === undefined) return false;+ if (!('id' in value) || value['id'] === undefined) return false;+ if (!('values' in value) || value['values'] === undefined) return false;+ return true;+}++export function InteractionRequestFromJSON(json: any): InteractionRequest {+ return InteractionRequestFromJSONTyped(json, false);+}++export function InteractionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): InteractionRequest {+ if (json == null) {+ return json;+ }+ return {++ 'call': json['call'],+ 'id': json['id'],+ 'values': json['values'],+ };+}++export function InteractionRequestToJSON(json: any): InteractionRequest {+ return InteractionRequestToJSONTyped(json, false);+}++export function InteractionRequestToJSONTyped(value?: InteractionRequest | null, ignoreDiscriminator: boolean = false): any {+ if (value == null) {+ return value;+ }++ return {++ 'call': value['call'],+ 'id': value['id'],+ 'values': value['values'],+ };+}diff --git a/frontend/src/openapi/models/OpenThreadRequest.ts b/frontend/src/openapi/models/OpenThreadRequest.tsnew file mode 100644index 00000000..203da57c--- /dev/null+++ b/frontend/src/openapi/models/OpenThreadRequest.ts@@ -0,0 +1,65 @@+/* tslint:disable */+/* eslint-disable */+/**+ * Overbae API+ * Backend API for the Overclaw / Overmind platform.+ *+ * The version of the OpenAPI document: 2.0.0+ *+ *+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).+ * https://openapi-generator.tech+ * Do not edit the class manually.+ */++import { mapValues } from '../runtime';+/**+ *+ * @export+ * @interface OpenThreadRequest+ */+export interface OpenThreadRequest {+ /**+ *+ * @type {string}+ * @memberof OpenThreadRequest+ */+ dataset: string;+}++/**+ * Check if a given object implements the OpenThreadRequest interface.+ */+export function instanceOfOpenThreadRequest(value: object): value is OpenThreadRequest {+ if (!('dataset' in value) || value['dataset'] === undefined) return false;+ return true;+}++export function OpenThreadRequestFromJSON(json: any): OpenThreadRequest {+ return OpenThreadRequestFromJSONTyped(json, false);+}++export function OpenThreadRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): OpenThreadRequest {+ if (json == null) {+ return json;+ }+ return {++ 'dataset': json['dataset'],+ };+}++export function OpenThreadRequestToJSON(json: any): OpenThreadRequest {+ return OpenThreadRequestToJSONTyped(json, false);+}++export function OpenThreadRequestToJSONTyped(value?: OpenThreadRequest | null, ignoreDiscriminator: boolean = false): any {+ if (value == null) {+ return value;+ }++ return {++ 'dataset': value['dataset'],+ };+}diff --git a/frontend/src/openapi/models/Participant.ts b/frontend/src/openapi/models/Participant.tsnew file mode 100644index 00000000..63c42a23--- /dev/null+++ b/frontend/src/openapi/models/Participant.ts@@ -0,0 +1,83 @@+/* tslint:disable */+/* eslint-disable */+/**+ * Overbae API+ * Backend API for the Overclaw / Overmind platform.+ *+ * The version of the OpenAPI document: 2.0.0+ *+ *+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).+ * https://openapi-generator.tech+ * Do not edit the class manually.+ */++import { mapValues } from '../runtime';+/**+ *+ * @export+ * @interface Participant+ */+export interface Participant {+ /**+ *+ * @type {number}+ * @memberof Participant+ */+ user: number;+ /**+ *+ * @type {string}+ * @memberof Participant+ */+ email: string;+ /**+ *+ * @type {boolean}+ * @memberof Participant+ */+ me: boolean;+}++/**+ * Check if a given object implements the Participant interface.+ */+export function instanceOfParticipant(value: object): value is Participant {+ if (!('user' in value) || value['user'] === undefined) return false;+ if (!('email' in value) || value['email'] === undefined) return false;+ if (!('me' in value) || value['me'] === undefined) return false;+ return true;+}++export function ParticipantFromJSON(json: any): Participant {+ return ParticipantFromJSONTyped(json, false);+}++export function ParticipantFromJSONTyped(json: any, ignoreDiscriminator: boolean): Participant {+ if (json == null) {+ return json;+ }+ return {++ 'user': json['user'],+ 'email': json['email'],+ 'me': json['me'],+ };+}++export function ParticipantToJSON(json: any): Participant {+ return ParticipantToJSONTyped(json, false);+}++export function ParticipantToJSONTyped(value?: Participant | null, ignoreDiscriminator: boolean = false): any {+ if (value == null) {+ return value;+ }++ return {++ 'user': value['user'],+ 'email': value['email'],+ 'me': value['me'],+ };+}diff --git a/frontend/src/openapi/models/SendMessageRequest.ts b/frontend/src/openapi/models/SendMessageRequest.tsnew file mode 100644index 00000000..e469d835--- /dev/null+++ b/frontend/src/openapi/models/SendMessageRequest.ts@@ -0,0 +1,98 @@+/* tslint:disable */+/* eslint-disable */+/**+ * Overbae API+ * Backend API for the Overclaw / Overmind platform.+ *+ * The version of the OpenAPI document: 2.0.0+ *+ *+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).+ * https://openapi-generator.tech+ * Do not edit the class manually.+ */++import { mapValues } from '../runtime';+import type { InteractionRequest } from './InteractionRequest';+import {+ InteractionRequestFromJSON,+ InteractionRequestFromJSONTyped,+ InteractionRequestToJSON,+ InteractionRequestToJSONTyped,+} from './InteractionRequest';++/**+ *+ * @export+ * @interface SendMessageRequest+ */+export interface SendMessageRequest {+ /**+ *+ * @type {string}+ * @memberof SendMessageRequest+ */+ requestKey: string;+ /**+ *+ * @type {string}+ * @memberof SendMessageRequest+ */+ text: string;+ /**+ *+ * @type {Array<string>}+ * @memberof SendMessageRequest+ */+ cells?: Array<string>;+ /**+ *+ * @type {InteractionRequest}+ * @memberof SendMessageRequest+ */+ interaction?: InteractionRequest | null;+}++/**+ * Check if a given object implements the SendMessageRequest interface.+ */+export function instanceOfSendMessageRequest(value: object): value is SendMessageRequest {+ if (!('requestKey' in value) || value['requestKey'] === undefined) return false;+ if (!('text' in value) || value['text'] === undefined) return false;+ return true;+}++export function SendMessageRequestFromJSON(json: any): SendMessageRequest {+ return SendMessageRequestFromJSONTyped(json, false);+}++export function SendMessageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SendMessageRequest {+ if (json == null) {+ return json;+ }+ return {++ 'requestKey': json['request_key'],+ 'text': json['text'],+ 'cells': json['cells'] == null ? undefined : json['cells'],+ 'interaction': json['interaction'] == null ? undefined : InteractionRequestFromJSON(json['interaction']),+ };+}++export function SendMessageRequestToJSON(json: any): SendMessageRequest {+ return SendMessageRequestToJSONTyped(json, false);+}++export function SendMessageRequestToJSONTyped(value?: SendMessageRequest | null, ignoreDiscriminator: boolean = false): any {+ if (value == null) {+ return value;+ }++ return {++ 'request_key': value['requestKey'],+ 'text': value['text'],+ 'cells': value['cells'],+ 'interaction': InteractionRequestToJSON(value['interaction']),+ };+}diff --git a/frontend/src/openapi/models/index.ts b/frontend/src/openapi/models/index.tsindex 5493fd5b..c15cd8fe 100644--- a/frontend/src/openapi/models/index.ts+++ b/frontend/src/openapi/models/index.ts@@ -13,6 +13,11 @@ export * from './ActivitySeenRequest';export * from './ActivitySeenResult';export * from './AgentGraph';export * from './ApiVersionEnum';+export * from './AssistantEvent';+export * from './AssistantEventKindEnum';+export * from './AssistantInput';+export * from './AssistantThread';+export * from './AssistantThreadStateEnum';export * from './AuthTokensResponse';export * from './BackendEnum';export * from './BeginUploadRequest';@@ -45,6 +50,8 @@ export * from './CatalogModel';export * from './Cell';export * from './CellStateEnum';export * from './CellTransformation';+export * from './ChangeEnum';+export * from './ChangeMessageRequest';export * from './CheckoutSessionResponse';export * from './CheckpointFile';export * from './ColumnStat';@@ -211,6 +218,8 @@ export * from './InferenceReceipt';export * from './InspectUploadRequest';export * from './IntegrationTypeEnum';export * from './IntentEnum';+export * from './Interaction';+export * from './InteractionRequest';export * from './JudgeModelEnum';export * from './Kind703Enum';export * from './LocalSessionRequest';@@ -237,6 +246,7 @@ export * from './NativeMonitor';export * from './NativeSample';export * from './NativeSamplePrediction';export * from './OnboardingMilestone';+export * from './OpenThreadRequest';export * from './OpenrouterKeySourceEnum';export * from './OpenrouterStatusEnum';export * from './OptimizerCandidate';@@ -289,6 +299,7 @@ export * from './PaginatedSignalEventList';export * from './PaginatedSignalSubscriptionList';export * from './PaginatedTrainingExperimentList';export * from './PaginatedTrainingPlanList';+export * from './Participant';export * from './PartitionMember';export * from './PartitionPlan';export * from './PartitionRequestRequest';@@ -347,6 +358,7 @@ export * from './RunPipelineRequest';export * from './SaveBindingRequest';export * from './SavePipelineRequest';export * from './ScopeEnum';+export * from './SendMessageRequest';export * from './ServingContextPlan';export * from './Session';export * from './SetCommandTemplateRequest';diff --git a/frontend/src/routes/_auth.tsx b/frontend/src/routes/_auth.tsxindex 055fd0bd..95350d0b 100644--- a/frontend/src/routes/_auth.tsx+++ b/frontend/src/routes/_auth.tsx@@ -24,6 +24,7 @@ import { Icon } from "@/components/ui/icons";import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "@/components/ui/tooltip";import { useAuthContext } from "@/contexts/auth-context";import { WorkshopSidebarContext } from "@/contexts/workshop-sidebar-context";+import { datasetDetailQuery } from "@/hooks/use-datasets";import { useFinetuningRunJobsQuery } from "@/hooks/use-finetuning";import { useIsMobile } from "@/hooks/use-mobile";import { useOnboardingStatus } from "@/hooks/use-query";@@ -107,9 +108,8 @@ function useCachedName(});const datasetNameQuery = useQuery({+ ...datasetDetailQuery(slug ?? ""),enabled: kind === "datasets" && !!slug,- queryFn: () => apiClient.datasets.datasetsRetrieve({ id: slug ?? "" }),- queryKey: ["dataset", slug],select: (dataset) => dataset.name?.trim() || `Dataset ${dataset.id.slice(0, 8)}`,});diff --git a/frontend/src/routes/_auth/datasets.index.tsx b/frontend/src/routes/_auth/datasets.index.tsxindex 9c144cd9..da3ed08c 100644--- a/frontend/src/routes/_auth/datasets.index.tsx+++ b/frontend/src/routes/_auth/datasets.index.tsx@@ -1,25 +1,27 @@import { useEffect, useState } from "react";import { createFileRoute, redirect } from "@tanstack/react-router";+import type { RowSelectionState } from "@tanstack/react-table";-import floppyDiskIcon from "@/assets/floppy-disk-save.svg";+import { AssistantComposer } from "@/components/assistant/assistant-composer";+import { ConnectionBackground } from "@/components/connection-scene";import { DatasetsBrowser, DatasetsToolbar } from "@/components/datasets/datasets-table";import { NewDatasetDialog } from "@/components/datasets/new-dataset-dialog";-import { DataProjectForm } from "@/components/onboarding/data-project-form";-import { OnboardingWindow } from "@/components/onboarding/onboarding-window";import { ProjectRequiredEmptyState } from "@/components/project-required-empty-state";import { QuickstartEmbed } from "@/components/quickstart/quickstart-embed";import { Button } from "@/components/ui/button";+import { CountChip } from "@/components/ui/count-chip";import { Icon } from "@/components/ui/icons";import { PageHeader } from "@/components/ui/page-header";import { PageShell } from "@/components/ui/page-shell";+import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip";import { useProjectDatasetsQuery } from "@/hooks/use-datasets";import { useProjectCapabilitiesQuery } from "@/hooks/use-evaluations";import { useGuestGate } from "@/hooks/use-guest-gate";-import { useProjectsList } from "@/hooks/use-projects";import { datasetWorkspaces } from "@/lib/dataset-workspaces";import { featureFlags } from "@/lib/feature-flags";import { datasetsSearchSchema } from "@/lib/schemas";+import { cn } from "@/lib/utils";export const Route = createFileRoute("/_auth/datasets/")({beforeLoad: () => {@@ -52,11 +54,13 @@ function ProjectDatasets({ projectId }: { projectId: string }) {const navigate = Route.useNavigate();const query = useProjectDatasetsQuery(projectId);const capabilities = useProjectCapabilitiesQuery(projectId);- const projects = useProjectsList();- const project = projects.data?.projects.find((project) => project.id === projectId);const [createOpen, setCreateOpen] = useState(false);+ const [tableFocused, setTableFocused] = useState(false);+ // Selection survives filtering and paging: it is keyed by dataset id.+ const [rowSelection, setRowSelection] = useState<RowSelectionState>({});const guard = useGuestGate();const datasets = datasetWorkspaces(query.data ?? []);+ const attached = datasets.filter((dataset) => rowSelection[dataset.id]);useEffect(() => {if (!create) return;@@ -97,62 +101,109 @@ function ProjectDatasets({ projectId }: { projectId: string }) {};return (- <PageShell- header={- <PageHeader- actions={- datasets.length > 0 ? (- <Button onClick={guard(() => setCreateOpen(true))} type="button">- <Icon.datasetAdd />- New dataset- </Button>- ) : undefined- }- count={query.data ? datasets.length : undefined}- description="Source data and step-by-step transformations for training and evaluation."- icon={- <img- alt=""- aria-hidden="true"- className="size-6 shrink-0 [image-rendering:pixelated]"- src={floppyDiskIcon}- />- }- title="Datasets"- />- }- variant="full"- >- {query.isSuccess && datasets.length === 0 && project ? (- <div className="flex min-h-0 flex-1 items-center justify-center overflow-y-auto py-4">- <OnboardingWindow className="w-full max-w-2xl shrink-0" title="Get started with data">- <DataProjectForm- onCreated={({ projectId: createdProjectId, datasetId }) =>+ <PageShell className="assistant-stage relative isolate gap-0" header={null} variant="full">+ <section+ aria-hidden={tableFocused}+ aria-label="Start with the assistant"+ className="absolute inset-0 overflow-hidden"+ inert={tableFocused}+ >+ <ConnectionBackground />+ <div className="assistant-hero-content relative flex min-h-0 flex-col items-center justify-center gap-5 px-6 pt-4 pb-6 sm:gap-7 sm:px-8 sm:pb-10">+ <PageHeader+ className="justify-center [&_h1]:text-4xl [&_h1]:leading-none sm:[&_h1]:text-5xl"+ title={+ <span className="inline-flex items-center gap-2">+ Ready to train+ <span aria-hidden="true" className="assistant-cursor bg-foreground" />+ </span>+ }+ />+ <div className="w-full max-w-3xl">+ <AssistantComposer+ datasets={attached}+ onRemoveDataset={(id) => setRowSelection(({ [id]: _removed, ...rest }) => rest)}+ onStarted={(datasetId) =>void navigate({params: { datasetId },- search: { prepare: "training", projectId: createdProjectId },+ search: { projectId },to: "/datasets/$datasetId",+ viewTransition: !window.matchMedia("(prefers-reduced-motion: reduce)").matches,})}- project={project}+ projectId={projectId}/>- </OnboardingWindow>+ </div></div>- ) : (- <>+ </section>+ <section+ aria-label="Available datasets"+ className="assistant-datasets absolute inset-x-0 bottom-0 z-10 flex min-h-0 flex-col border-border border-t bg-card"+ data-expanded={tableFocused}+ id="assistant-datasets"+ >+ <Tooltip>+ <TooltipTrigger asChild>+ <Button+ aria-controls="assistant-datasets"+ aria-expanded={tableFocused}+ aria-label={tableFocused ? "Show composer" : "Focus datasets"}+ className="assistant-dataset-handle absolute left-1/2 z-10 w-12 border border-border bg-card hover:bg-control"+ onClick={() => setTableFocused((focused) => !focused)}+ size="icon-xs"+ variant="ghost"+ >+ <Icon.chevronUp+ className={cn(+ "size-3 transition-transform duration-300 motion-reduce:transition-none",+ tableFocused && "rotate-180"+ )}+ />+ </Button>+ </TooltipTrigger>+ <TooltipContent>{tableFocused ? "Show composer" : "Focus datasets"}</TooltipContent>+ </Tooltip>+ <div className="flex min-h-0 flex-1 flex-col gap-3 px-4 pt-6 pb-4 md:px-6 md:pb-6">+ <div className="flex shrink-0 items-center gap-2">+ <Icon.dataset className="size-4 text-muted-foreground" />+ <h2 className="text-sm font-medium">Datasets</h2>+ {query.data && <CountChip count={datasets.length} />}+ <div className="ml-auto flex items-center gap-2">+ {attached.length > 0 && (+ <Button+ className="text-muted-foreground"+ onClick={() => {+ setTableFocused(false);+ requestAnimationFrame(() =>+ document.getElementById("assistant-intent")?.focus({ preventScroll: true })+ );+ }}+ size="xs"+ variant="secondary"+ >+ {attached.length} attached+ <Icon.chevronUp />+ </Button>+ )}+ <Button onClick={guard(() => setCreateOpen(true))} size="xs" variant="secondary">+ <Icon.datasetAdd />+ New dataset+ </Button>+ </div>+ </div><DatasetsToolbar {...filters} /><DatasetsBrowser{...filters}error={query.error}- isLoading={- query.isPending || (!datasets.length && projects.isPending && !query.isError)- }+ isLoading={query.isPending}key={JSON.stringify([ds_search, ds_role, ds_capability])}onRetry={() => query.refetch()}+ onRowSelectionChange={setRowSelection}rowSearch={{ projectId }}+ rowSelection={rowSelection}/>- </>- )}+ </div>+ </section><NewDatasetDialog onOpenChange={setCreateOpen} open={createOpen} projectId={projectId} /></PageShell>);diff --git a/frontend/src/styles.css b/frontend/src/styles.cssindex abc3cfe1..b3f0ea6b 100644--- a/frontend/src/styles.css+++ b/frontend/src/styles.css@@ -764,3 +764,376 @@ body:has(animation: none;}}++/* In the components layer, so a utility on the same element wins. */+@layer components {+ /* Assistant chat: a bar at the bottom of the canvas that opens into a panel on the left. */+ .assistant-dock {+ interpolate-size: allow-keywords;+ left: 50%;+ width: min(48rem, calc(100% - 1.5rem));+ max-height: calc(100% - 1.5rem);+ transform: translateX(-50%);+ transition:+ left 560ms cubic-bezier(0.16, 1, 0.3, 1),+ width 560ms cubic-bezier(0.16, 1, 0.3, 1),+ transform 560ms cubic-bezier(0.16, 1, 0.3, 1),+ height 560ms cubic-bezier(0.16, 1, 0.3, 1);+ }++ .assistant-dock[data-panel="true"] {+ left: 0.75rem;+ width: min(var(--assistant-panel-width, 26rem), calc(100% - 1.5rem));+ height: calc(100% - 1.5rem);+ transform: translateX(0);+ }++ /* Notices stand in the dock's column, above its bar. */+ .assistant-notices {+ left: 50%;+ width: min(48rem, calc(100% - 1.5rem));+ transform: translateX(-50%);+ }++ /* The open panel covers the canvas's left edge, so the canvas's notices move right. */+ :has(.assistant-dock[data-panel="true"]) > .assistant-notices {+ right: 3rem;+ left: auto;+ width: min(36rem, calc(100% - 1.5rem));+ transform: none;+ }++ .assistant-dock[data-resizing="true"] {+ user-select: none;+ transition: none;+ }++ .assistant-dock-body {+ display: grid;+ grid-template-rows: 0fr;+ opacity: 0;+ transition:+ grid-template-rows 420ms cubic-bezier(0.16, 1, 0.3, 1),+ opacity 180ms ease;+ }++ .assistant-dock[data-expanded="true"] .assistant-dock-body {+ grid-template-rows: 1fr;+ opacity: 1;+ }++ .assistant-dock-footer {+ padding: 0.125rem 0.25rem;+ }++ .assistant-dock[data-panel="true"] .assistant-dock-footer {+ padding: 0.25rem 0.625rem 0.375rem;+ }++ .assistant-dock[data-panel="true"] .assistant-composer-stack {+ margin: 0 0.375rem 0.375rem;+ }++ .assistant-resize-handle {+ position: absolute;+ inset: 0 0 0 auto;+ z-index: 1;+ width: 0.5rem;+ touch-action: none;+ cursor: col-resize;+ outline: none;+ }++ .assistant-resize-handle::after {+ position: absolute;+ top: calc(50% - 1rem);+ right: 0;+ width: 2px;+ height: 2rem;+ content: "";+ background: var(--border);+ border-radius: var(--radius-sm);+ }++ .assistant-resize-handle:is(:hover, :focus-visible)::after,+ .assistant-dock[data-resizing="true"] .assistant-resize-handle::after {+ background: var(--primary);+ }++ .assistant-conversation {+ padding: 0.75rem 1rem 3.5rem;+ scroll-padding-block: 1rem 3.5rem;+ scrollbar-width: thin;+ }++ /* The transcript fades into the dock surface at both ends. */+ .assistant-history::before,+ .assistant-history::after {+ position: absolute;+ pointer-events: none;+ content: "";+ backdrop-filter: blur(3px);+ }++ .assistant-history::before {+ inset: 0 0 auto;+ z-index: 1;+ height: 1.5rem;+ background: linear-gradient(to bottom, var(--muted), transparent);+ mask-image: linear-gradient(to bottom, black, transparent);+ }++ .assistant-history::after {+ inset: auto 0 0;+ height: 3.5rem;+ background: linear-gradient(to bottom, transparent, var(--muted) 90%);+ mask-image: linear-gradient(to bottom, transparent, black 85%);+ }++ .assistant-message + .assistant-message {+ margin-block-start: 1.5rem;+ }++ .assistant-user-prompt {+ width: fit-content;+ max-width: 92%;+ padding: 0.5rem 0.75rem;+ margin-inline-start: auto;+ overflow-wrap: anywhere;+ white-space: pre-wrap;+ background: var(--wash-raised);+ border: 1px solid var(--border);+ border-inline-end: 2px solid var(--input);+ border-radius: var(--radius-sm);+ }++ .assistant-chat-inner {+ position: relative;+ border-radius: var(--radius-sm);+ transition: border-color 140ms ease;+ }++ .assistant-chat-inner:focus-within {+ border-color: var(--input);+ }++ .assistant-prompt-mark {+ position: absolute;+ top: 0.625rem;+ left: 0.625rem;+ font-size: 0.75rem;+ line-height: 1rem;+ color: var(--muted-foreground);+ pointer-events: none;+ }++ .assistant-dock[data-expanded="false"] .assistant-prompt-mark {+ display: none;+ }++ .assistant-chat-inner:focus-within .assistant-prompt-mark {+ color: var(--foreground);+ }++ .assistant-chat-input {+ padding: 0.625rem 0.75rem 0.25rem 1.75rem;+ caret-color: var(--foreground);+ caret-shape: block;+ }++ .assistant-tool-count {+ font-size: 0.625rem;+ text-transform: uppercase;+ letter-spacing: 0.08em;+ }++ /* The elbow that joins each tool call to its group. */+ .assistant-tool-row {+ position: relative;+ }++ .assistant-tool-row::before {+ position: absolute;+ inset-inline-start: -0.875rem;+ top: -0.25rem;+ bottom: -0.25rem;+ pointer-events: none;+ content: "";+ border-inline-start: 1px solid var(--border);+ }++ .assistant-tool-row::after {+ position: absolute;+ inset-inline-start: -0.875rem;+ top: 0.25rem;+ width: 0.625rem;+ height: 0.625rem;+ pointer-events: none;+ content: "";+ border-block-end: 1px solid var(--border);+ border-inline-start: 1px solid var(--border);+ border-end-start-radius: 0.625rem;+ }++ .assistant-tool-row:last-child::before {+ bottom: auto;+ height: 0.5rem;+ }++ .assistant-surface pre {+ font-variant-numeric: tabular-nums;+ }++ .assistant-result {+ font-size: 0.8125rem;+ }++ @media (prefers-reduced-motion: reduce) {+ .assistant-dock,+ .assistant-dock-body {+ transition: none;+ }+ }++ /* Datasets landing: the composer over the star field, the dataset list as a sheet below. */+ .assistant-stage {+ --assistant-inset: 1rem;+ --assistant-sheet-top: 350px;+ margin: calc(-1 * var(--assistant-inset));+ }++ @media (min-width: 640px) {+ .assistant-stage {+ --assistant-sheet-top: clamp(350px, 56dvh, 560px);+ }+ }++ @media (min-width: 768px) {+ .assistant-stage {+ --assistant-inset: 1.5rem;+ }+ }++ .assistant-hero-content {+ height: var(--assistant-sheet-top);+ }++ .assistant-datasets {+ top: var(--assistant-sheet-top);+ transition: top 560ms cubic-bezier(0.22, 1, 0.36, 1);+ }++ .assistant-datasets[data-expanded="true"] {+ top: 0;+ }++ .assistant-dataset-handle {+ top: 0;+ border-bottom: 0;+ border-bottom-right-radius: 0;+ border-bottom-left-radius: 0;+ transform: translate(-50%, -100%);+ transition:+ transform 560ms cubic-bezier(0.22, 1, 0.36, 1),+ background-color 150ms;+ }++ .assistant-datasets[data-expanded="true"] .assistant-dataset-handle {+ border: 0;+ transform: translate(-50%, 0);+ }++ .assistant-cursor {+ width: 0.24em;+ height: 0.8em;+ animation: blink 1.1s step-end infinite;+ }++ .assistant-composer .assistant-prompt-mark {+ top: 1rem;+ left: 0.875rem;+ line-height: 1.25rem;+ }++ .assistant-composer .assistant-chat-input {+ padding: 1rem 1rem 1rem 2rem;+ }++ .assistant-attachments {+ scrollbar-width: thin;+ }++ .assistant-attachment {+ animation: assistant-attachment-in 220ms ease-out both;+ }++ @media (hover: hover) and (pointer: fine) {+ .assistant-attachment-remove {+ opacity: 0;+ }+ .assistant-attachment:hover .assistant-attachment-remove,+ .assistant-attachment:focus-within .assistant-attachment-remove {+ opacity: 1;+ }+ }++ @keyframes assistant-attachment-in {+ from {+ opacity: 0;+ transform: translateX(10px);+ }+ to {+ opacity: 1;+ transform: translateX(0);+ }+ }++ @media (prefers-reduced-motion: reduce) {+ .assistant-attachment {+ animation: none;+ }+ }++ .assistant-composer {+ transition: border-color 150ms;+ }++ .assistant-composer:focus-within {+ border-color: var(--input);+ }++ /* The landing composer becomes the canvas dock across the navigation. */+ .assistant-surface {+ view-transition-name: assistant-chat;+ }++ ::view-transition-group(assistant-chat) {+ overflow: clip;+ border-radius: var(--radius-md);+ animation-duration: 700ms;+ animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);+ }++ ::view-transition-old(assistant-chat),+ ::view-transition-new(assistant-chat) {+ height: 100%;+ object-fit: none;+ object-position: bottom;+ animation-duration: 350ms;+ }++ @media (prefers-reduced-motion: reduce) {+ .assistant-datasets,+ .assistant-dataset-handle {+ transition: none;+ }+ .assistant-cursor {+ animation: none;+ }+ ::view-transition-group(assistant-chat),+ ::view-transition-old(assistant-chat),+ ::view-transition-new(assistant-chat) {+ animation-duration: 1ms;+ }+ }+}diff --git a/frontend/vite.config.ts b/frontend/vite.config.tsindex 5ccd9c5b..0362f8fe 100644--- a/frontend/vite.config.ts+++ b/frontend/vite.config.ts@@ -15,12 +15,12 @@ const config = defineConfig({// Optimize Dep" → "Failed to fetch dynamically imported module".include: ["@lobehub/icons/es/Anthropic/components/Mono",- "@lobehub/icons/es/Cohere/components/Mono",- "@lobehub/icons/es/Gemini/components/Mono",- "@lobehub/icons/es/Meta/components/Mono",- "@lobehub/icons/es/Mistral/components/Mono",+ "@lobehub/icons/es/Cohere/components/Color",+ "@lobehub/icons/es/Gemini/components/Color",+ "@lobehub/icons/es/Meta/components/Color",+ "@lobehub/icons/es/Mistral/components/Color","@lobehub/icons/es/OpenAI/components/Mono",- "@lobehub/icons/es/Qwen/components/Mono",+ "@lobehub/icons/es/Qwen/components/Color","@lobehub/icons/es/XAI/components/Mono",],},diff --git a/overbae/api/assistant.py b/overbae/api/assistant.pynew file mode 100644index 00000000..d5255e20--- /dev/null+++ b/overbae/api/assistant.py@@ -0,0 +1,295 @@+import mimetypes++from django.contrib.auth import get_user_model+from django.db import transaction+from django.http import FileResponse+from django.shortcuts import get_object_or_404+from drf_spectacular.types import OpenApiTypes+from drf_spectacular.utils import extend_schema, extend_schema_field+from redis.exceptions import RedisError+from rest_framework import serializers+from rest_framework.decorators import action+from rest_framework.exceptions import NotFound, ValidationError+from rest_framework.response import Response++from overbae.api.scoping import project_ids_for+from overbae.api.workbench import ProjectPipelineViewSet+from overbae.core.errors import InputValidationError+from overbae.models import AssistantEvent, AssistantInput, AssistantThread, Dataset+from overbae.services.assistant import log, threads, tools, turn+from overbae.services.datasets import events++# What the Console shows of a call's arguments; a package's files can be much longer.+SHOWN_ARGUMENTS = 4000+++class InteractionSerializer(serializers.Serializer):+ """The answer to one Question or Choices of a result the assistant showed."""++ call = serializers.CharField(max_length=32)+ id = serializers.CharField(max_length=80)+ values = serializers.DictField()+++class AssistantInputSerializer(serializers.ModelSerializer):+ interaction = InteractionSerializer(allow_null=True)++ class Meta:+ model = AssistantInput+ fields = [+ "id",+ "created_by",+ "text",+ "cells",+ "interaction",+ "urgent",+ "position",+ "revision",+ ]+ read_only_fields = fields+++class ParticipantSerializer(serializers.Serializer):+ user = serializers.IntegerField()+ email = serializers.EmailField()+ me = serializers.BooleanField()+++class AssistantThreadSerializer(serializers.ModelSerializer):+ queue = serializers.SerializerMethodField()+ participants = serializers.SerializerMethodField()+ draft = serializers.SerializerMethodField()++ class Meta:+ model = AssistantThread+ fields = [+ "id",+ "project",+ "dataset",+ "state",+ "stop_requested",+ "queue",+ "participants",+ "draft",+ ]+ read_only_fields = fields++ @extend_schema_field(AssistantInputSerializer(many=True))+ def get_queue(self, thread):+ queued = thread.inputs.filter(state=AssistantInput.State.QUEUED)+ return AssistantInputSerializer(queued, many=True).data++ @extend_schema_field(ParticipantSerializer(many=True))+ def get_participants(self, thread):+ """Who wrote in the conversation, sent or queued: members share one conversation+ about a dataset, and a reader must tell a teammate's message from their own."""+ senders = set(+ thread.events.filter(kind=AssistantEvent.Kind.USER).values_list(+ "payload__user", flat=True+ )+ )+ senders |= set(+ thread.inputs.filter(state=AssistantInput.State.QUEUED).values_list(+ "created_by_id", flat=True+ )+ )+ viewer = self.context["request"].user.pk+ found = get_user_model().objects.filter(pk__in=senders).order_by("pk")+ return [+ {"user": pk, "email": email, "me": pk == viewer}+ for pk, email in found.values_list("pk", "email")+ ]++ def get_draft(self, thread) -> str:+ """The reply written so far, for a page that opens in the middle of it."""+ client = events.client()+ if client is None or thread.state != AssistantThread.State.RUNNING:+ return ""+ try:+ return client.get(log.draft_key(thread.pk)) or ""+ except RedisError:+ # The reply so far is a convenience: the saved reply arrives without it.+ return ""+++class AssistantEventSerializer(serializers.ModelSerializer):+ """An event as the Console shows it. What the model reads of a tool's result stays in+ Postgres: only a Python cell's output, an error and a result document leave it."""++ payload = serializers.SerializerMethodField()++ class Meta:+ model = AssistantEvent+ fields = ["sequence", "kind", "payload", "presentation", "created_at"]+ read_only_fields = fields++ @extend_schema_field(OpenApiTypes.OBJECT)+ def get_payload(self, event):+ payload = event.payload+ if event.kind == AssistantEvent.Kind.USER:+ keep = ("text", "cells", "interaction", "user")+ return {key: payload.get(key) for key in keep}+ if event.kind == AssistantEvent.Kind.ASSISTANT:+ return {+ "text": payload["text"],+ "calls": [+ {**call, "raw": call["raw"][:SHOWN_ARGUMENTS]} for call in payload["calls"]+ ],+ }+ if event.kind == AssistantEvent.Kind.TOOL_RESULT:+ content = payload["content"] if isinstance(payload["content"], dict) else {}+ error = content.get("error")+ if isinstance(error, dict):+ error = error.get("message")+ shown = {"output": content.get("output"), "error": error, "note": content.get("note")}+ return {+ "call": payload["call"],+ "name": payload["name"],+ "ok": payload["ok"],+ "content": {key: value for key, value in shown.items() if value},+ }+ if event.kind == AssistantEvent.Kind.SUMMARY:+ return {}+ return payload+++class OpenThreadSerializer(serializers.Serializer):+ dataset = serializers.UUIDField()+++class ThreadQuerySerializer(serializers.Serializer):+ dataset = serializers.UUIDField()+++class SendMessageSerializer(serializers.Serializer):+ request_key = serializers.CharField(max_length=128)+ text = serializers.CharField(max_length=20000, allow_blank=True)+ cells = serializers.ListField(child=serializers.UUIDField(), max_length=20, default=list)+ interaction = InteractionSerializer(required=False, allow_null=True, default=None)++ def validate(self, attrs):+ if not attrs["text"].strip() and not attrs["interaction"]:+ raise serializers.ValidationError("Write a message.")+ return attrs+++class ChangeMessageSerializer(serializers.Serializer):+ message = serializers.UUIDField()+ revision = serializers.IntegerField(min_value=1)+ change = serializers.ChoiceField(["edit", "remove", "move", "send_now"])+ text = serializers.CharField(max_length=20000, required=False)+ before = serializers.UUIDField(required=False, allow_null=True)++ def validate(self, attrs):+ if attrs["change"] == "edit" and not attrs.get("text", "").strip():+ raise serializers.ValidationError("Write a message.")+ return attrs+++class EventsQuerySerializer(serializers.Serializer):+ after = serializers.IntegerField(min_value=0, default=0)+++class AssistantThreadViewSet(ProjectPipelineViewSet):+ """The conversation about a dataset. Changes are announced on the dataset's event+ stream; a page reads them here."""++ def _thread(self, pk) -> AssistantThread:+ return turn.settle(self.resolve(AssistantThread.objects.select_related("dataset"), pk))++ def _show(self, thread):+ return AssistantThreadSerializer(thread, context={"request": self.request}).data++ @extend_schema(+ parameters=[ThreadQuerySerializer], responses=AssistantThreadSerializer(many=True)+ )+ def list(self, request):+ """The dataset's conversation, if it has one."""+ query = ThreadQuerySerializer(data=request.query_params)+ query.is_valid(raise_exception=True)+ found = AssistantThread.objects.filter(+ project__is_active=True,+ project__memberships__user=request.user,+ project_id__in=project_ids_for(request.user, request.auth),+ dataset_id=query.validated_data["dataset"],+ )+ return Response([self._show(turn.settle(thread)) for thread in found])++ @extend_schema(request=OpenThreadSerializer, responses=AssistantThreadSerializer)+ def create(self, request):+ """Open the dataset's conversation."""+ body = OpenThreadSerializer(data=request.data)+ body.is_valid(raise_exception=True)+ dataset = get_object_or_404(+ Dataset,+ pk=body.validated_data["dataset"],+ project__is_active=True,+ project__memberships__user=request.user,+ project_id__in=project_ids_for(request.user, request.auth),+ )+ return Response(self._show(threads.open_thread(dataset)))++ @extend_schema(responses=AssistantThreadSerializer)+ def retrieve(self, request, pk=None):+ return Response(self._show(self._thread(pk)))++ @extend_schema(+ parameters=[EventsQuerySerializer], responses=AssistantEventSerializer(many=True)+ )+ @action(detail=True, methods=["get"])+ def events(self, request, pk=None):+ """The events after a cursor, as the Console shows them."""+ thread = self._thread(pk)+ query = EventsQuerySerializer(data=request.query_params)+ query.is_valid(raise_exception=True)+ found = thread.events.filter(sequence__gt=query.validated_data["after"])+ return Response(AssistantEventSerializer(found, many=True).data)++ @extend_schema(request=SendMessageSerializer, responses={202: AssistantInputSerializer})+ @action(detail=True, methods=["post"])+ def messages(self, request, pk=None):+ thread = self._thread(pk)+ body = SendMessageSerializer(data=request.data)+ body.is_valid(raise_exception=True)+ with transaction.atomic():+ try:+ message = threads.send(thread, request.user, **body.validated_data)+ except InputValidationError as exc:+ raise ValidationError(exc.detail) from None+ turn.wake(thread)+ return Response(AssistantInputSerializer(message).data, status=202)++ @extend_schema(request=ChangeMessageSerializer, responses=AssistantInputSerializer)+ @action(detail=True, methods=["post"])+ def queue(self, request, pk=None):+ """Edit, remove, move or send now a message that is still queued."""+ thread = self._thread(pk)+ body = ChangeMessageSerializer(data=request.data)+ body.is_valid(raise_exception=True)+ values = dict(body.validated_data)+ try:+ message = threads.change(+ values.pop("message"), thread, request.user, action=values.pop("change"), **values+ )+ except InputValidationError as exc:+ raise ValidationError(exc.detail) from None+ return Response(AssistantInputSerializer(message).data)++ @extend_schema(request=None, responses={202: AssistantThreadSerializer})+ @action(detail=True, methods=["post"])+ def stop(self, request, pk=None):+ thread = self._thread(pk)+ turn.stop(thread)+ thread.refresh_from_db()+ return Response(self._show(thread), status=202)++ @extend_schema(responses={(200, "application/octet-stream"): OpenApiTypes.BINARY})+ @action(+ detail=True, methods=["get"], url_path=r"images/(?P<name>[0-9a-f]{64}\.(?:png|jpg|webp))"+ )+ def images(self, request, pk=None, name=None):+ """An image the assistant presented in this conversation."""+ path = tools.image_path(self.resolve(AssistantThread, pk), name)+ if not path.is_file():+ raise NotFound+ return FileResponse(path.open("rb"), content_type=mimetypes.guess_type(name)[0])diff --git a/overbae/api/compression.py b/overbae/api/compression.pynew file mode 100644index 00000000..68099312--- /dev/null+++ b/overbae/api/compression.py@@ -0,0 +1,11 @@+from django.middleware.gzip import GZipMiddleware+++class CompressionMiddleware(GZipMiddleware):+ """Gzip for API responses, except event streams: gzip holds bytes back until a block+ fills, and a stream's event must reach the page when it is sent."""++ def process_response(self, request, response):+ if response.get("Content-Type", "").startswith("text/event-stream"):+ return response+ return super().process_response(request, response)diff --git a/overbae/api/dataset_serializers.py b/overbae/api/dataset_serializers.pyindex c4229c44..0724aac0 100644--- a/overbae/api/dataset_serializers.py+++ b/overbae/api/dataset_serializers.py@@ -102,6 +102,7 @@ class CellSerializer(serializers.ModelSerializer):usage = serializers.SerializerMethodField()transformation = serializers.SerializerMethodField()analytics = serializers.SerializerMethodField()+ review = serializers.SerializerMethodField()class Meta:model = Cell@@ -123,7 +124,6 @@ class CellSerializer(serializers.ModelSerializer):"intent_report","capability_report","fits",- "stats","analytics","review","quality_report",@@ -143,6 +143,13 @@ class CellSerializer(serializers.ModelSerializer):versions = obj.dataset.versions()return versions.get(obj.id, "")+ @extend_schema_field(serializers.DictField())+ def get_review(self, obj):+ """What kind of review a version holds. Its findings are read with the dataset's+ review; a page lists many versions and shows none of them."""+ kind = (obj.review or {}).get("kind")+ return {"kind": kind} if kind else {}+@extend_schema_field(DatasetAnalyticsSerializer)def get_analytics(self, obj):return analytics.describe(obj)diff --git a/overbae/api/datasets.py b/overbae/api/datasets.pyindex 03ef2a46..75292452 100644--- a/overbae/api/datasets.py+++ b/overbae/api/datasets.py@@ -38,7 +38,6 @@ from overbae.services.datasets import (lifecycle,paths,preparation,- preparation_workflow,selection,store,workbench,@@ -51,6 +50,15 @@ logger = logging.getLogger(__name__)_ROW_PAGE_MAX = 500+def _stamp(dataset_id):+ """When the dataset last changed, on a connection that does not stay open with the+ stream that asks."""+ try:+ return Dataset.objects.filter(pk=dataset_id).values_list("updated_at", flat=True).first()+ finally:+ connections.close_all()++class ServerSentEventRenderer(JSONRenderer):media_type = "text/event-stream"format = "sse"@@ -236,16 +244,6 @@ class DatasetViewSet(WorkbenchActions, viewsets.ModelViewSet):return _error(exc)return Response(DatasetSerializer(dataset).data, status=202)- @extend_schema(request=None, responses={200: DatasetSerializer})- @action(detail=True, methods=["post"], url_path="end-preparation")- def end_preparation(self, request, id=None):- dataset = self.get_object()- try:- preparation_workflow.end(dataset)- except lifecycle.DatasetError as exc:- return _error(exc)- return Response(DatasetSerializer(Dataset.objects.get(pk=dataset.pk)).data)-@extend_schema(responses={(200, "application/octet-stream"): OpenApiTypes.BINARY})@action(detail=True, methods=["get"], url_path=r"sources/(?P<artifact_id>[0-9a-f]{64})")def source_file(self, request, id=None, artifact_id=None):@@ -464,7 +462,9 @@ class DatasetViewSet(WorkbenchActions, viewsets.ModelViewSet):return [JSONRenderer(), ServerSentEventRenderer()]return super().get_renderers()- @extend_schema(summary="Dataset event stream (SSE): landing, cells, runs and chat")+ @extend_schema(+ summary="Dataset event stream (SSE): what changed in the dataset and its conversation"+ )@action(detail=True, methods=["get"], url_path="events")def events(self, request, id=None):from asgiref.sync import sync_to_async@@ -482,12 +482,14 @@ class DatasetViewSet(WorkbenchActions, viewsets.ModelViewSet):r = aredis.from_url(settings.CELERY_BROKER_URL, decode_responses=True)pubsub = r.pubsub()try:+ # Subscribed first: a change after the page's reads reaches it. Redis+ # confirms with the first message; only from then is no change missed.await pubsub.subscribe(ch)- replayed_through = 0- for evt in await sync_to_async(events.replay)(dataset.id):- replayed_through = max(replayed_through, int(evt.get("seq") or 0))- yield f"data: {json.dumps(evt, default=str)}\n\n"- yield 'data: {"type": "replay.done"}\n\n'+ await pubsub.get_message(timeout=5.0)+ # A page whose dataset changed before this point reads it again.+ stamp = await sync_to_async(_stamp)(dataset.pk)+ connected = {"type": "connected", "updated_at": stamp and stamp.isoformat()}+ yield f"data: {json.dumps(connected, default=str)}\n\n"idle = 0.0while True:message = await pubsub.get_message(ignore_subscribe_messages=True, timeout=5.0)@@ -498,14 +500,7 @@ class DatasetViewSet(WorkbenchActions, viewsets.ModelViewSet):yield ": ping\n\n"continueidle = 0.0- data = message["data"]- try:- seq = int(json.loads(data).get("seq") or 0)- except (ValueError, AttributeError):- seq = 0- if seq and seq <= replayed_through:- continue- yield f"data: {data}\n\n"+ yield f"data: {message['data']}\n\n"finally:try:await pubsub.unsubscribe(ch)diff --git a/overbae/api/views.py b/overbae/api/views.pyindex bcbabc34..510aa634 100644--- a/overbae/api/views.py+++ b/overbae/api/views.py@@ -2,6 +2,7 @@ import loggingfrom collections import defaultdictfrom django.core.exceptions import ValidationError+from django.db import transactionfrom django.db.models import (Avg,Count,@@ -147,6 +148,7 @@ from overbae.services.training_preparation import (from overbae.services.training_preparation import (retry_for_job as retry_training_preparation,)+from overbae.tasks.assistant import remove_workspacefrom overbae.tasks.training_preparation import inspect_preparationlogger = logging.getLogger(__name__)@@ -191,7 +193,10 @@ class ProjectViewSet(viewsets.ModelViewSet):ProjectMembership.objects.create(user=self.request.user, project=project)def perform_destroy(self, instance):+ project = str(instance.pk)instance.delete()+ # The assistant's workspace holds copies of the project's data.+ transaction.on_commit(lambda: remove_workspace.delay(project))@extend_schema_view(diff --git a/overbae/core/llms.py b/overbae/core/llms.pyindex 450932ae..b1465656 100644--- a/overbae/core/llms.py+++ b/overbae/core/llms.py@@ -2,7 +2,9 @@ import asyncioimport jsonimport loggingimport os+import threadingimport time+from collections.abc import Callablefrom contextlib import suppressfrom dataclasses import dataclass, fieldfrom functools import lru_cache@@ -707,6 +709,113 @@ def call_llm_tools(return text, tool_calls, stats+# Fields of a streamed reasoning detail that arrive in pieces.+_REASONING_TEXT = ("text", "summary", "data")+++STREAM_MAX_TOKENS = 8000+++@lru_cache(maxsize=1)+def _stream_client() -> OpenAI:+ """A synchronous client, shared by the worker's threads: a stream's ``on_progress``+ then runs in the caller's thread and may use the ORM."""+ provider = PROVIDERS["openrouter"]+ api_key = provider.key()+ if not api_key:+ raise RuntimeError(f"{provider.key_env} is required for LLM completions")+ return OpenAI(+ api_key=api_key,+ base_url=provider.base_url,+ default_headers=provider.headers or None,+ timeout=_REQUEST_TIMEOUT,+ max_retries=_SDK_RETRIES,+ )+++def stream_llm_tools(+ messages: list[dict[str, Any]],+ tools: list[dict[str, Any]],+ model: str | None = None,+ fallback_models: list[str] | None = None,+ on_progress: Callable[[str, list[dict]], None] | None = None,+) -> tuple[str, list[dict[str, Any]], dict]:+ """:func:`call_llm_tools`, streamed. ``on_progress`` receives the text so far and the+ tool calls as far as they are written; an exception it raises ends the stream and+ propagates.++ Never retried: a stream that started may already be billed.+ """+ completion_kwargs, selected = _tool_completion_kwargs(+ messages, tools, model, STREAM_MAX_TOKENS, fallback_models+ )+ completion_kwargs |= {"stream": True, "stream_options": {"include_usage": True}}+ deadline = RETRY_DEADLINE_BACKGROUND+ text, calls, usage, served, finish = "", {}, None, None, None+ reasoning: dict[tuple, dict] = {}+ started = time.monotonic()+ expired = threading.Event()+ try:+ with _stream_client().chat.completions.create(**completion_kwargs) as stream:+ # A provider can keep the stream open with keep-alive comments and no chunk:+ # the deadline closes it from outside the wait.+ timer = threading.Timer(deadline, lambda: (expired.set(), stream.close()))+ timer.daemon = True+ timer.start()+ try:+ for chunk in stream:+ usage, served = chunk.usage or usage, chunk.model or served+ for choice in chunk.choices:+ finish = choice.finish_reason or finish+ text += choice.delta.content or ""+ for part in _extra(choice.delta).get("reasoning_details") or []:+ # Fragments of one record share its index; records without one+ # stay apart by their id.+ position = part.get("index")+ identity = position if position is not None else part.get("id")+ detail = reasoning.setdefault((identity, part.get("type")), {})+ for key, value in part.items():+ streamed = key in _REASONING_TEXT and isinstance(value, str)+ detail[key] = detail.get(key, "") + value if streamed else value+ for piece in choice.delta.tool_calls or []:+ call = calls.setdefault(+ piece.index,+ {+ "id": "",+ "type": "function",+ "function": {"name": "", "arguments": ""},+ },+ )+ call["id"] = piece.id or call["id"]+ if piece.function is not None:+ call["function"]["name"] += piece.function.name or ""+ call["function"]["arguments"] += piece.function.arguments or ""+ if on_progress is not None:+ on_progress(text, [calls[index] for index in sorted(calls)])+ if expired.is_set():+ raise CompletionDeadlineExceededError(+ f"Completion deadline exceeded after {deadline:g}s"+ )+ except Exception:+ if expired.is_set():+ raise CompletionDeadlineExceededError(+ f"Completion deadline exceeded after {deadline:g}s"+ ) from None+ raise+ finally:+ timer.cancel()+ except openai.OpenAIError as exc:+ raise RuntimeError(f"Error calling LLM: {exc}") from exc+ text, tool_calls = text.strip(), [calls[index] for index in sorted(calls)]+ stats = _tool_call_stats(usage, served, selected, (time.monotonic() - started) * 1000)+ stats["finish_reason"] = finish+ # The provider needs these back unchanged with the reply's tool results.+ stats["reasoning_details"] = list(reasoning.values())+ if stats["finish_reason"] in INCOMPLETE_FINISH_REASONS:+ raise IncompleteCompletionError(text, stats)+ return text, tool_calls, stats++def try_json_parsing(json_data: str):res = json_repair.loads(json_data)if not res:diff --git a/overbae/core/model_registry.py b/overbae/core/model_registry.pyindex 5e2efd0c..ce7ed953 100644--- a/overbae/core/model_registry.py+++ b/overbae/core/model_registry.py@@ -72,6 +72,14 @@ CATALOG: tuple[Model, ...] = (Tier.DECISION,"Typed decisions over supplied evidence; not a chat or training model.",),+ Model(+ "gpt-6.1-sol",+ Vendor.OPENAI,+ "openai/gpt-6.1-sol",+ Tier.FLAGSHIP,+ "OpenAI's flagship for long agentic work with tools.",+ EFFORT,+ ),Model("gpt-5.6-sol",Vendor.OPENAI,@@ -348,7 +356,7 @@ class Role(StrEnum):ROLE_CHAINS: dict[Role, tuple[str, ...]] = {Role.FAST: ("gpt-5.6-luna", "claude-sonnet-5", "gemini-3.8-flash"),- Role.AGENT: ("gpt-5.6-terra", "claude-sonnet-5", "gemini-3.1-pro-preview"),+ Role.AGENT: ("gpt-6.1-sol", "claude-sonnet-5", "gemini-3.1-pro-preview"),Role.EXPLAIN: ("gpt-5-mini", "claude-haiku-4-5", "gemini-3.8-flash"),}@@ -358,6 +366,7 @@ class TaskType(StrEnum):CRITERIA_GENERATION = "criteria_generation"EVAL_RECOMMENDATION = "eval_recommendation"EVAL_EXPLANATION = "eval_explanation"+ ASSISTANT = "assistant"DEFAULT = "default"@@ -366,6 +375,7 @@ TASK_ROLES: dict[TaskType, Role] = {TaskType.CRITERIA_GENERATION: Role.FAST,TaskType.EVAL_RECOMMENDATION: Role.FAST,TaskType.EVAL_EXPLANATION: Role.EXPLAIN,+ TaskType.ASSISTANT: Role.AGENT,TaskType.DEFAULT: Role.FAST,}diff --git a/overbae/management/commands/build_workspace_snapshot.py b/overbae/management/commands/build_workspace_snapshot.pynew file mode 100644index 00000000..fb8305e3--- /dev/null+++ b/overbae/management/commands/build_workspace_snapshot.py@@ -0,0 +1,10 @@+from django.core.management.base import BaseCommand++from overbae.services.workspaces import daytona+++class Command(BaseCommand):+ help = "Build the Daytona snapshot that project workspaces start from."++ def handle(self, *args, **options):+ self.stdout.write(daytona.build_snapshot(self.stdout.write))diff --git a/overbae/management/commands/check_workspaces.py b/overbae/management/commands/check_workspaces.pynew file mode 100644index 00000000..48c25e43--- /dev/null+++ b/overbae/management/commands/check_workspaces.py@@ -0,0 +1,26 @@+import time++from django.conf import settings+from django.core.management.base import BaseCommand, CommandError++from overbae.services.workspaces import conformance, provider+++class Command(BaseCommand):+ help = "Run the workspace contract against the configured provider, as it is deployed."++ def handle(self, *args, **options):+ target = provider()+ failed = 0+ for check in (*conformance.CHECKS, *conformance.ISOLATED_CHECKS):+ started = time.monotonic()+ try:+ check(target)+ except Exception as exc: # noqa: BLE001 - every check reports, then the command fails+ failed += 1+ outcome = f"FAIL {type(exc).__name__}: {exc}"+ else:+ outcome = "pass"+ self.stdout.write(f"{outcome} {time.monotonic() - started:6.1f}s {check.__name__}")+ if failed:+ raise CommandError(f"{settings.WORKSPACE_PROVIDER}: {failed} checks failed.")diff --git a/overbae/migrations/0057_assistant.py b/overbae/migrations/0057_assistant.pynew file mode 100644index 00000000..e565acd2--- /dev/null+++ b/overbae/migrations/0057_assistant.py@@ -0,0 +1,66 @@+# Generated by Django 6.0.8 on 2026-11-15 07:01++import django.db.models.deletion+import uuid+from django.conf import settings+from django.db import migrations, models+++class Migration(migrations.Migration):++ dependencies = [+ ('overbae', '0056_mcp_mutations_and_eval_revisions'),+ ]++ operations = [+ migrations.CreateModel(+ name='AssistantThread',+ fields=[+ ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),+ ('state', models.CharField(choices=[('idle', 'Idle'), ('running', 'Running')], default='idle', max_length=16)),+ ('turn', models.PositiveIntegerField(default=0)),+ ('stop_requested', models.BooleanField(default=False)),+ ('updated_at', models.DateTimeField(auto_now=True)),+ ('created_at', models.DateTimeField(auto_now_add=True)),+ ('dataset', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='assistant_thread', to='overbae.dataset')),+ ('project', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='overbae.project')),+ ],+ ),+ migrations.CreateModel(+ name='AssistantInput',+ fields=[+ ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),+ ('request_key', models.CharField(max_length=128)),+ ('text', models.TextField()),+ ('cells', models.JSONField(default=list)),+ ('interaction', models.JSONField(null=True)),+ ('state', models.CharField(choices=[('queued', 'Queued'), ('delivered', 'Delivered'), ('removed', 'Removed')], default='queued', max_length=16)),+ ('urgent', models.BooleanField(default=False)),+ ('position', models.PositiveIntegerField()),+ ('revision', models.PositiveIntegerField(default=1)),+ ('created_at', models.DateTimeField(auto_now_add=True)),+ ('created_by', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),+ ('thread', models.ForeignKey(db_index=False, on_delete=django.db.models.deletion.CASCADE, related_name='inputs', to='overbae.assistantthread')),+ ],+ options={+ 'ordering': ['position'],+ 'constraints': [models.UniqueConstraint(fields=('thread', 'request_key'), name='assistant_input_request_unique')],+ },+ ),+ migrations.CreateModel(+ name='AssistantEvent',+ fields=[+ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),+ ('sequence', models.PositiveIntegerField()),+ ('kind', models.CharField(choices=[('user', 'User'), ('assistant', 'Assistant'), ('tool_result', 'Tool Result'), ('status', 'Status'), ('summary', 'Summary')], max_length=16)),+ ('payload', models.JSONField()),+ ('presentation', models.JSONField(null=True)),+ ('created_at', models.DateTimeField(auto_now_add=True)),+ ('thread', models.ForeignKey(db_index=False, on_delete=django.db.models.deletion.CASCADE, related_name='events', to='overbae.assistantthread')),+ ],+ options={+ 'ordering': ['sequence'],+ 'constraints': [models.UniqueConstraint(fields=('thread', 'sequence'), name='assistant_event_sequence_unique')],+ },+ ),+ ]diff --git a/overbae/migrations/0058_remove_dataset_preparation.py b/overbae/migrations/0058_remove_dataset_preparation.pynew file mode 100644index 00000000..9596263e--- /dev/null+++ b/overbae/migrations/0058_remove_dataset_preparation.py@@ -0,0 +1,28 @@+# Generated by Django 6.0.8 on 2026-11-15 07:20++from django.db import migrations+++class Migration(migrations.Migration):++ dependencies = [+ ('overbae', '0057_assistant'),+ ]++ operations = [+ migrations.RemoveConstraint(+ model_name='datasetpreparation',+ name='preparation_request_unique',+ ),+ migrations.RemoveConstraint(+ model_name='datasetpreparation',+ name='dataset_open_preparation_unique',+ ),+ migrations.RemoveField(+ model_name='activity',+ name='preparation',+ ),+ migrations.DeleteModel(+ name='DatasetPreparation',+ ),+ ]diff --git a/overbae/models/__init__.py b/overbae/models/__init__.pyindex 71d64437..53ac7cfa 100644--- a/overbae/models/__init__.py+++ b/overbae/models/__init__.py@@ -1,4 +1,9 @@from .activity import Activity, ActivityClient, ActivityRead+from .assistant import (+ AssistantEvent,+ AssistantInput,+ AssistantThread,+)from .billing import BillingService, BillingTelemetry, Subscription, SubscriptionStatusfrom .capabilities import Capability, IdentityAlias, Promptfrom .connectors import ConnectorCredential, ConnectorSyncConfig, ConnectorSyncRun@@ -11,7 +16,6 @@ from .dataset_pipeline import (DatasetPipelineRun,DatasetPipelineRunner,)-from .dataset_preparation import DatasetPreparationfrom .dataset_transfer import DatasetTransferfrom .datasets import (Cell,@@ -76,6 +80,9 @@ from .training_monitoring import TrainingCheckpoint, TrainingValidationRunfrom .training_plan import TrainingPlan__all__ = [+ "AssistantEvent",+ "AssistantInput",+ "AssistantThread","MCPMutation","EvalMatrixRevision","Activity",@@ -118,7 +125,6 @@ __all__ = ["ConnectorSyncRun","Dataset","DatasetPipeline",- "DatasetPreparation","DatasetPipelineRun","DatasetPipelineBinding","DatasetPipelinePackage",diff --git a/overbae/models/activity.py b/overbae/models/activity.pyindex 52e3e8f6..14231055 100644--- a/overbae/models/activity.py+++ b/overbae/models/activity.py@@ -8,9 +8,6 @@ class Activity(models.Model):id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)project = models.ForeignKey("overbae.Project", null=True, on_delete=models.CASCADE)user = models.ForeignKey(settings.AUTH_USER_MODEL, null=True, on_delete=models.SET_NULL)- preparation = models.ForeignKey(- "overbae.DatasetPreparation", null=True, on_delete=models.SET_NULL- )key = models.CharField(max_length=255, unique=True)kind = models.CharField(max_length=64)actor_kind = models.CharField(max_length=32, default="overmind")diff --git a/overbae/models/assistant.py b/overbae/models/assistant.pynew file mode 100644index 00000000..d214f30f--- /dev/null+++ b/overbae/models/assistant.py@@ -0,0 +1,110 @@+import uuid+from datetime import timedelta++from django.conf import settings+from django.db import models+from django.utils import timezone++# A running turn that has not moved for this long was lost with its worker.+STALE = timedelta(minutes=15)+++class ThreadQuerySet(models.QuerySet):+ def moving(self):+ """Threads whose turn runs and still moves."""+ return self.filter(+ state=AssistantThread.State.RUNNING, updated_at__gt=timezone.now() - STALE+ )+++class AssistantThread(models.Model):+ """The conversation about one dataset, shared by the project's members. The event log+ is the record: no process holds state between turns."""++ class State(models.TextChoices):+ IDLE = "idle"+ RUNNING = "running"++ id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)+ project = models.ForeignKey("overbae.Project", on_delete=models.CASCADE)+ objects = ThreadQuerySet.as_manager()+ dataset = models.OneToOneField(+ "overbae.Dataset", on_delete=models.CASCADE, related_name="assistant_thread"+ )+ state = models.CharField(max_length=16, choices=State, default=State.IDLE)+ # Counts turns. A turn writes only while it is the newest, so a turn that was taken+ # for dead cannot write under the one that followed it.+ turn = models.PositiveIntegerField(default=0)+ stop_requested = models.BooleanField(default=False)+ # A running turn moves this at every step: a turn that stopped moving was interrupted.+ updated_at = models.DateTimeField(auto_now=True)+ created_at = models.DateTimeField(auto_now_add=True)+++class AssistantEvent(models.Model):+ class Kind(models.TextChoices):+ USER = "user"+ ASSISTANT = "assistant"+ TOOL_RESULT = "tool_result"+ STATUS = "status"+ # Replaces everything up to ``through`` in what the model reads; the log keeps it all.+ SUMMARY = "summary"++ # The unique constraint is the index on ``thread``.+ thread = models.ForeignKey(+ AssistantThread, on_delete=models.CASCADE, related_name="events", db_index=False+ )+ sequence = models.PositiveIntegerField()+ kind = models.CharField(max_length=16, choices=Kind)+ # What the model reads.+ payload = models.JSONField()+ # The result document a ``present`` call shows. The model never reads it, and it can+ # hold thousands of rows.+ presentation = models.JSONField(null=True)+ created_at = models.DateTimeField(auto_now_add=True)++ class Meta:+ constraints = [+ models.UniqueConstraint(+ fields=["thread", "sequence"], name="assistant_event_sequence_unique"+ )+ ]+ ordering = ["sequence"]+++class AssistantInput(models.Model):+ """A message the user sent. It stays editable in the queue until a turn reads it."""++ class State(models.TextChoices):+ QUEUED = "queued"+ DELIVERED = "delivered"+ REMOVED = "removed"++ id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)+ thread = models.ForeignKey(+ AssistantThread, on_delete=models.CASCADE, related_name="inputs", db_index=False+ )+ # The sender pays for the model calls the message starts, and tools act with the+ # sender's project access.+ created_by = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE)+ request_key = models.CharField(max_length=128)+ text = models.TextField()+ # Dataset versions the message refers to, as cell ids.+ cells = models.JSONField(default=list)+ # The answer to a Question or Choices: {"call", "id", "values"}, where ``call`` is the+ # tool call that showed it.+ interaction = models.JSONField(null=True)+ state = models.CharField(max_length=16, choices=State, default=State.QUEUED)+ # Read at the running turn's next model call instead of after the turn.+ urgent = models.BooleanField(default=False)+ position = models.PositiveIntegerField()+ revision = models.PositiveIntegerField(default=1)+ created_at = models.DateTimeField(auto_now_add=True)++ class Meta:+ constraints = [+ models.UniqueConstraint(+ fields=["thread", "request_key"], name="assistant_input_request_unique"+ )+ ]+ ordering = ["position"]diff --git a/overbae/models/dataset_preparation.py b/overbae/models/dataset_preparation.pydeleted file mode 100644index c9b4e514..00000000--- a/overbae/models/dataset_preparation.py+++ /dev/null@@ -1,32 +0,0 @@-import uuid--from django.conf import settings-from django.db import models---class DatasetPreparation(models.Model):- id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)- project = models.ForeignKey("overbae.Project", on_delete=models.CASCADE)- dataset = models.ForeignKey(- "overbae.Dataset", on_delete=models.CASCADE, related_name="preparations"- )- request_key = models.CharField(max_length=128)- state = models.CharField(max_length=16, default="preparing")- actor_kind = models.CharField(max_length=32)- actor_name = models.CharField(max_length=100)- created_by = models.ForeignKey(settings.AUTH_USER_MODEL, null=True, on_delete=models.SET_NULL)- outputs = models.JSONField(default=list)- created_at = models.DateTimeField(auto_now_add=True)- updated_at = models.DateTimeField(auto_now=True)-- class Meta:- constraints = [- models.UniqueConstraint(- fields=["project", "request_key"], name="preparation_request_unique"- ),- models.UniqueConstraint(- fields=["dataset"],- condition=models.Q(state__in=["preparing", "paused"]),- name="dataset_open_preparation_unique",- ),- ]diff --git a/overbae/services/activity.py b/overbae/services/activity.pyindex f99bf56d..04dd3e44 100644--- a/overbae/services/activity.py+++ b/overbae/services/activity.py@@ -14,7 +14,6 @@ from overbae.models import (ActivityRead,Capability,DatasetPipelineRun,- DatasetPreparation,FinetuningJob,)from overbae.services.datasets import events@@ -27,6 +26,7 @@ AGENTS = ((re.compile(r"^cursor\b"), "cursor", "Cursor"),(re.compile(r"^gemini[- ]cli\b"), "gemini", "Gemini CLI"),(re.compile(r"^opencode\b"), "opencode", "OpenCode"),+ (re.compile(r"^overmind assistant$"), "overmind", "Overmind assistant"),)@@ -54,7 +54,8 @@ def connection_actor(context):def connected(context):- if context.client_name == "overmind-transfer":+ # The platform's own clients connect nothing: no agent was set up.+ if context.client_name in ("overmind-transfer", "overmind assistant"):returnactor_kind, actor_name = connection_actor(context)ActivityClient.objects.get_or_create(@@ -175,20 +176,9 @@ def record(task_id="",status="completed",):- preparation = None- if (- task_kind == "dataset_pipeline"- or kind in {"source_uploaded", "source_ready", "preparation_published"}- or action in {"Saved a transformation for", "Saved dataset pipeline"}- ):- dataset_ids = [item["id"] for item in assets if item["kind"] == "dataset"]- preparation = DatasetPreparation.objects.filter(- project_id=project_id, dataset_id__in=dataset_ids, state__in=["preparing", "paused"]- ).first()event, created = Activity.objects.get_or_create(key=key,defaults={- "preparation": preparation,"project_id": project_id,"user_id": user_id,"kind": kind,@@ -201,10 +191,6 @@ def record("status": status,},)- if created and preparation:- Activity.objects.filter(key=f"preparation:{preparation.pk}").update(- updated_at=timezone.now()- )relabelled = (event.actor_kind == "overmind"and actor_kind != "overmind"@@ -268,13 +254,8 @@ def update_task(project_id, kind, identity, status):.values("pk")[:1])rows = Activity.objects.filter(pk__in=latest).exclude(status=normalized)- preparation_ids = list(rows.exclude(preparation=None).values_list("preparation_id", flat=True))if rows.update(status=normalized, updated_at=timezone.now()):changed(project_id)- if preparation_ids:- Activity.objects.filter(- key__in=[f"preparation:{identity}" for identity in preparation_ids]- ).update(updated_at=timezone.now())def mcp_succeeded(name, definition, output, context):@@ -289,8 +270,6 @@ def mcp_succeeded(name, definition, output, context):).exists()):connected(context)- if name in {"start_dataset_preparation", "update_dataset_preparation"}:- returnif not context.project or definition.read_only:returnif name.partition("_")[0] not in ACTION_VERBS:@@ -532,7 +511,7 @@ def source_ready(dataset, cell_id, user=None):def feed(query, *, offset=0, limit=25):observed_at = timezone.now()- query = query.filter(updated_at__lte=observed_at, preparation__isnull=True).exclude(+ query = query.filter(updated_at__lte=observed_at).exclude(kind__startswith="onboarding_progress_")count = query.count()diff --git a/overbae/services/assistant/__init__.py b/overbae/services/assistant/__init__.pynew file mode 100644index 00000000..e69de29bdiff --git a/overbae/services/assistant/log.py b/overbae/services/assistant/log.pynew file mode 100644index 00000000..68b2adf9--- /dev/null+++ b/overbae/services/assistant/log.py@@ -0,0 +1,102 @@+"""The conversation's event log and its live signal. Postgres is the record; the dataset's+event channel only tells open pages to read again, and carries a reply while it is written."""++import logging+import math++from django.db import transaction++from overbae.models import AssistantEvent, AssistantThread+from overbae.services.datasets import events++logger = logging.getLogger(__name__)+DRAFT_TTL_SECONDS = 300+++class LostTurnError(Exception):+ """A newer turn took the thread: this one must write nothing more."""+++def draft_key(thread_id) -> str:+ return f"assistant:draft:{thread_id}"+++def changed(thread: AssistantThread) -> None:+ """Tell open pages that the conversation changed. They read Postgres on this signal, so+ it leaves only after the change is committed."""+ dataset = thread.dataset_id+ transaction.on_commit(lambda: events.publish(dataset, {"type": "assistant"}))+++def draft(thread: AssistantThread, added: str, steps: list[str], *, at: int) -> None:+ """Send the text a reply gained after its first ``at`` characters, and the summaries of+ the calls it writes. The key holds the whole text for a page that opens in the middle+ of the reply; a gain the page already holds changes nothing, by its position."""+ client = events.client()+ if client is None:+ return+ try:+ with client.pipeline() as pipe:+ key = draft_key(thread.pk)+ if not at:+ pipe.delete(key)+ pipe.append(key, added)+ pipe.expire(key, DRAFT_TTL_SECONDS)+ pipe.execute()+ except Exception: # noqa: BLE001 - the reply is saved whole when it ends+ logger.warning("assistant draft failed for %s", thread.pk, exc_info=True)+ events.publish(+ thread.dataset_id, {"type": "assistant.draft", "added": added, "at": at, "steps": steps}+ )+++def _storable(value):+ """``value`` as jsonb holds it: no NUL character and no number that is not finite. A+ kernel prints either, and so does a row of customer data."""+ if isinstance(value, str):+ return value.replace("\x00", "�")+ if isinstance(value, float):+ return value if math.isfinite(value) else None+ if isinstance(value, dict):+ return {_storable(key): _storable(item) for key, item in value.items()}+ if isinstance(value, (list, tuple)):+ return [_storable(item) for item in value]+ return value+++def append(+ thread: AssistantThread, kind: str, payload: dict, *, turn=None, presentation=None+) -> AssistantEvent:+ """Add one event. With ``turn``, only while that turn still holds the thread."""+ payload, presentation = _storable(payload), _storable(presentation)+ with transaction.atomic():+ # The row lock orders concurrent appends; the unique constraint backs it.+ held = (+ AssistantThread.objects.select_for_update()+ .values_list("turn", flat=True)+ .get(pk=thread.pk)+ )+ if turn is not None and turn != held:+ raise LostTurnError+ last = thread.events.order_by("-sequence").values_list("sequence", flat=True).first()+ event = AssistantEvent.objects.create(+ thread=thread,+ sequence=(last or 0) + 1,+ kind=kind,+ payload=payload,+ presentation=presentation,+ )+ if kind in (AssistantEvent.Kind.ASSISTANT, AssistantEvent.Kind.STATUS):+ key = draft_key(thread.pk)+ transaction.on_commit(lambda: _drop(key))+ changed(thread)+ return event+++def _drop(key: str) -> None:+ client = events.client()+ if client is not None:+ try:+ client.delete(key)+ except Exception: # noqa: BLE001 - it expires+ logger.debug("assistant draft key not dropped", exc_info=True)diff --git a/overbae/services/assistant/presentation.py b/overbae/services/assistant/presentation.pynew file mode 100644index 00000000..b9d658a0--- /dev/null+++ b/overbae/services/assistant/presentation.py@@ -0,0 +1,335 @@+"""The components the assistant may show. The Console renders exactly these; nothing the+model writes is executed. Charts, tables and metrics read rows of a table the kernel+computed, never numbers the model typed."""++from __future__ import annotations++import hashlib+import json+import uuid+from typing import Annotated, Literal++from pydantic import BaseModel, ConfigDict, Field, ValidationError++from overbae.core.errors import InputValidationError+from overbae.models import Cell++MAX_ROWS = 2000+MAX_COLUMNS = 60+MAX_IMAGE_BYTES = 4 * 1024**2+# Leading bytes of the formats a browser is given, and the extension each is stored under.+IMAGE_KINDS = ((b"\x89PNG\r\n\x1a\n", "png"), (b"\xff\xd8\xff", "jpg"), (b"RIFF", "webp"))+Name = Annotated[str, Field(min_length=1, max_length=160)]+Text = Annotated[str, Field(max_length=16000)]+++class Component(BaseModel):+ model_config = ConfigDict(extra="forbid")+++class Option(Component):+ label: Name+ value: Name+++class FormField(Component):+ name: Name+ label: Name+ type: Literal["text", "textarea", "number", "select", "multiselect", "boolean"]+ options: list[Option] = Field(default_factory=list, max_length=100)+ placeholder: str = Field(default="", max_length=160)+ required: bool = False+ min: float | None = None+ max: float | None = None+++class Callout(Component):+ """An assumption, limitation, finding or warning."""++ type: Literal["Callout"]+ tone: Literal["neutral", "info", "success", "warning", "error"]+ text: Text+++class CellLink(Component):+ """Open an exact published dataset version by its cell id."""++ type: Literal["Cell"]+ cell: Name+ label: str = Field(default="", max_length=160)+++class Chart(Component):+ """Plot a table by key. Use bar for computed histogram bins."""++ type: Literal["Chart"]+ title: Name+ kind: Literal["bar", "horizontal-bar", "line", "area", "pie", "scatter"]+ data: Name+ x: Name+ y: list[Name] = Field(min_length=1, max_length=8)+ stacked: bool = False+ x_label: str = Field(default="", max_length=160)+ y_label: str = Field(default="", max_length=160)+++class Choices(Component):+ """Offer next steps or resolve an ambiguity. The selection arrives as the user's reply."""++ type: Literal["Choices"]+ id: Name+ prompt: Text+ options: list[Option] = Field(min_length=1, max_length=12)+++class Code(Component):+ """Code shown without execution."""++ type: Literal["Code"]+ code: Text+ language: str = Field(default="", max_length=40)+++class Details(Component):+ """Optional explanation or evidence behind a disclosure."""++ type: Literal["Details"]+ title: Name+ children: list[Node] = Field(max_length=64)+++class Heading(Component):+ type: Literal["Heading"]+ text: Name+++class Image(Component):+ """Show a PNG, JPEG or WebP file the kernel wrote, by image key."""++ type: Literal["Image"]+ title: Name+ image: Name+++class Metric(Component):+ """One value from the first row of a table. Format percent expects a fraction."""++ type: Literal["Metric"]+ label: Name+ data: Name+ key: Name+ format: Literal["number", "percent", "text"] = "number"+++class Question(Component):+ """Collect intent, mappings or constraints. The answers arrive as the user's reply."""++ type: Literal["Question"]+ id: Name+ prompt: Text+ fields: list[FormField] = Field(min_length=1, max_length=20)+ submit_label: str = Field(default="", max_length=160)+++class Stack(Component):+ """Group content in a column, or in a wrapping row."""++ type: Literal["Stack"]+ direction: Literal["column", "row"] = "column"+ children: list[Node] = Field(max_length=64)+++class Step(Component):+ status: Literal["pending", "running", "completed", "failed"]+ text: Text+++class Steps(Component):+ """A plan or recorded progress. Mark a step completed only when it ran."""++ type: Literal["Steps"]+ items: list[Step] = Field(min_length=1, max_length=30)+++class Table(Component):+ """Searchable, sortable rows of a table. Omit columns to show all."""++ type: Literal["Table"]+ title: Name+ data: Name+ columns: list[Name] = Field(default_factory=list, max_length=40)+++class Tab(Component):+ title: Name+ children: list[Node] = Field(max_length=64)+++class Tabs(Component):+ """Related views, such as distribution and data quality."""++ type: Literal["Tabs"]+ tabs: list[Tab] = Field(min_length=1, max_length=8)+++class Markdown(Component):+ """Explanation in Markdown. Measured data belongs in data components."""++ type: Literal["Text"]+ text: Text+++Node = Annotated[+ Callout+ | CellLink+ | Chart+ | Choices+ | Code+ | Details+ | Heading+ | Image+ | Metric+ | Question+ | Stack+ | Steps+ | Table+ | Tabs+ | Markdown,+ Field(discriminator="type"),+]+++class Presentation(Component):+ """Show a result to the user. Tables name JSON files the kernel wrote in its working+ directory, each a list of flat records; images name PNG, JPEG or WebP files there."""++ root: Node+ tables: dict[Name, Name] = Field(+ default_factory=dict,+ max_length=12,+ description="Table key to file name, for example {'classes': 'classes.json'}.",+ )+ images: dict[Name, Name] = Field(+ default_factory=dict,+ max_length=8,+ description="Image key to file name, for example {'ages': 'ages.png'}.",+ )+++for _model in (Details, Stack, Tab, Tabs, Presentation):+ _model.model_rebuild()+++def _walk(node):+ yield node+ for child in getattr(node, "children", []):+ yield from _walk(child)+ for tab in getattr(node, "tabs", []):+ for child in tab.children:+ yield from _walk(child)+++def _rows(name: str, raw: bytes) -> list[dict]:+ try:+ rows = json.loads(raw)+ except ValueError:+ raise InputValidationError(f"{name} is not JSON.") from None+ if (+ not isinstance(rows, list)+ or len(rows) > MAX_ROWS+ or not all(+ isinstance(row, dict)+ and len(row) <= MAX_COLUMNS+ and all(+ value is None or isinstance(value, str | int | float | bool)+ for value in row.values()+ )+ for row in rows+ )+ ):+ raise InputValidationError(+ f"{name} must be a list of at most {MAX_ROWS} flat records with scalar values."+ )+ return rows+++def _image(name: str, raw: bytes) -> str:+ kind = next((ext for magic, ext in IMAGE_KINDS if raw.startswith(magic)), None)+ if kind is None or (kind == "webp" and raw[8:12] != b"WEBP") or len(raw) > MAX_IMAGE_BYTES:+ raise InputValidationError(f"{name} must be a PNG, JPEG or WebP image of at most 4 MiB.")+ return f"{hashlib.sha256(raw).hexdigest()}.{kind}"+++def asks(document: dict) -> bool:+ """Whether a stored document puts a question to the user."""++ def found(node) -> bool:+ if isinstance(node, dict):+ return node.get("type") in ("Question", "Choices") or any(map(found, node.values()))+ return isinstance(node, list) and any(map(found, node))++ return found(document["root"])+++def build(project, arguments: dict, read_file, save_image) -> dict:+ """The validated document with the rows, images and cell facts it names, ready to+ store. ``save_image(name, bytes)`` retains an image under its content name."""+ try:+ presentation = Presentation.model_validate(arguments)+ except ValidationError as exc:+ raise InputValidationError(str(exc)) from exc+ nodes = list(_walk(presentation.root))+ used = {node.data for node in nodes if isinstance(node, Chart | Metric | Table)}+ missing = used - presentation.tables.keys()+ if missing:+ raise InputValidationError(f"No table is declared for: {', '.join(sorted(missing))}.")+ data = {}+ for key in sorted(used):+ try:+ data[key] = _rows(presentation.tables[key], read_file(presentation.tables[key]))+ except FileNotFoundError:+ raise InputValidationError(+ f"The kernel has no file {presentation.tables[key]} in its working directory."+ ) from None+ images = {}+ for key in sorted({node.image for node in nodes if isinstance(node, Image)}):+ if key not in presentation.images:+ raise InputValidationError(f"No image is declared for: {key}.")+ try:+ raw = read_file(presentation.images[key])+ except FileNotFoundError:+ raise InputValidationError(+ f"The kernel has no file {presentation.images[key]} in its working directory."+ ) from None+ images[key] = _image(presentation.images[key], raw)+ save_image(images[key], raw)+ wanted = {node.cell for node in nodes if isinstance(node, CellLink)}+ cells = {+ str(cell.pk): {+ "dataset": str(cell.dataset_id),+ "title": cell.title,+ "rows": cell.rows,+ "name": cell.dataset.name,+ }+ for cell in Cell.objects.filter(+ dataset__project=project, pk__in=_uuids(wanted)+ ).select_related("dataset")+ }+ if wanted - cells.keys():+ raise InputValidationError("A Cell component names a version that is not in this project.")+ return {+ "root": presentation.root.model_dump(mode="json"),+ "data": data,+ "images": images,+ "cells": cells,+ }+++def _uuids(values):+ out = []+ for value in values:+ try:+ out.append(uuid.UUID(value))+ except ValueError:+ raise InputValidationError(f"{value} is not a cell id.") from None+ return outdiff --git a/overbae/services/assistant/prompt.py b/overbae/services/assistant/prompt.pynew file mode 100644index 00000000..ba37aa11--- /dev/null+++ b/overbae/services/assistant/prompt.py@@ -0,0 +1,107 @@+import json++from overbae.models import AssistantThread+from overbae.services.datasets.context import CONSUMERS+from overbae.services.mcp.resources import pipeline_package_guide++RULES = """\+You are the Overmind assistant, working inside the Overmind Console for one project. Overmind+is a platform that improves AI agents: it observes them, prepares data, evaluates, trains and+serves models. You take the user from data to a trained, evaluated and served model, and from+a failure seen in production back to data that fixes it.++How you talk+- The user reads the `summary` of each tool call while it runs and in the list of steps after+ it. That is how they follow your work: do not describe your steps in text as well.+- Write text when you have something for the user: a finding that changes what happens next,+ an assumption you took, the answer. Keep it to one or two plain sentences, under 40 words.+ No headings, no lists and no tables in text unless the user asks for a report.+- Speak about the data, not about the platform: no ids, no fingerprints, no tool names, and+ nothing about your own bookkeeping.+- End a turn with a short reply. After `present`, add at most two sentences and do not+ repeat what it shows.++How you decide+- Act on the most likely meaning of the request, and say which meaning you took when it was+ not obvious. Exploring and a preview change nothing, so do them without asking.+- Preparing data is safe: a published version replaces nothing, and a correction is one more+ run. So do not ask how to prepare. Take the reading that changes the data least (correct+ what is plainly an error, keep labels distinct, keep rows), say in a sentence what you+ assumed, and go on. The user corrects you when they see the result.+- When the data cannot do what the user asked, do not go on with something else. In the same+ reply, say in a sentence what the data is and what it can become, and `present` a Choices+ with the option that works with the data as it is first, or a Question when the answer is+ free text. The question ends your turn and the answer arrives as the next message. If the+ answer is unclear, take the reasonable reading, say so and go on.+- Ask one thing, once, and only in that case or when the request names nothing to act on.+- Report measured facts only. A number you state must come from a tool result. If something+ was not measured, say that it is unknown.+- Preserve the meaning of the data. Keep original labels, duplicates and unknown values unless+ the user's goal and the evidence justify a change, and say what you changed and why.++What you work with+- You act through tools. Everything you make is a normal platform record the user can open.+- The first message about a dataset carries what the dataset holds now: its versions with+ their columns and `path`, a measured profile, and its pipeline when it has one. Start from+ these facts; do not fetch them again, and do not look up runtimes or earlier recipes.+- You cannot reach the user's repository or machine, you cannot read web pages, and every+ dataset version comes from a source the user provided: you cannot create data from nothing.+ When a request needs one of these, say so in one sentence and name what you can do with the+ data that is here. Where a format below tells you to read a page, use the format as it is+ written here.++Preparing data+1. Explore with `run_python`: the target, class balance, missing values, duplicates, leakage+ between the inputs and the target. Put related checks in one cell. A version is at its+ `path` once you list its cell id in `versions`.+2. Write the transformation as a pipeline package and run it with `run_pipeline`. Publish+ directly; for a source above 100,000 rows run mode preview first and read its result. To+ correct the dataset's pipeline, call `run_pipeline` again with its id and the new files.+3. When training needs separate training and evaluation rows, `create_data_partition` on the+ published version. Each partition numbers its `source_row` again: compare partitions by+ their content, not by `source_row`.+4. Check the published rows against the source with `query_dataset` or `run_python`.+5. `present` the result: a Cell component for each output version, and the measured counts+ that matter. Then say in a sentence or two what the dataset now holds, what you excluded+ and why, and any limit you could not check.++Kernel and pipeline are different places+- `run_python` is for exploration. Its kernel keeps variables between cells; when a cell+ reports that the kernel restarted, load what you need again.+- A pipeline step is the retained, repeatable transformation. It reads `input.jsonl` (one JSON+ row per line) and writes `output.jsonl`. It cannot see the kernel's variables or files. Keep+ `source_row` on every output row.+- A tool that starts a job waits for it and returns its result. Do not poll.++Showing results+- `present` renders charts, tables and metrics from tables the kernel computed. Write each+ table with pandas `to_json(name, orient="records")` in the working directory and list it in+ `tables`. Do not type measured values into Text. The user reads a table's column names as+ headings: write them in plain words ("Held-out tickets"), not as identifiers.+- Prefer a Chart over an Image. Use an Image only for a plot the chart kinds cannot draw:+ save it with matplotlib `savefig` in the working directory and list it in `images`.+- Show one result when it helps the user decide or check. Do not present what a sentence says.+"""+++def _package_contract() -> dict:+ """The package guide as the assistant needs it: the platform sets the runtime, and what+ the model reads there it goes and looks up."""+ guide = pipeline_package_guide()+ return {**guide, "manifest": {k: v for k, v in guide["manifest"].items() if k != "runtime"}}+++def system(thread: AssistantThread) -> str:+ # Only what never changes in a thread's life: providers cache the prompt from its start.+ return "\n\n".join(+ (+ RULES,+ f"Project: {thread.project.name!r}. The conversation is about the dataset "+ f"{thread.dataset.name!r} (id {thread.dataset_id}).",+ "Pipeline package contract:\n" + json.dumps(_package_contract(), indent=1),+ "Training and evaluation row formats. A key names a format; the final step's "+ "`consumer` takes the matching value: decision_training is decision_train, "+ "decision_evaluation is decision_eval, sft is chat_train, model_evaluation is "+ "model_eval.\n" + json.dumps(CONSUMERS, indent=1),+ )+ )diff --git a/overbae/services/assistant/threads.py b/overbae/services/assistant/threads.pynew file mode 100644index 00000000..d51aa496--- /dev/null+++ b/overbae/services/assistant/threads.py@@ -0,0 +1,129 @@+"""What a user does to a conversation: open it, send a message, change the queue."""++from django.db import transaction+from django.db.models import F, Max++from overbae.core.errors import InputValidationError+from overbae.models import AssistantInput, AssistantThread, Cell, Dataset+from overbae.services.assistant import log++Queued = AssistantInput.State.QUEUED+# A wide dataset names its first columns; the model queries the rest.+BRIEF_COLUMNS = 40+BRIEF_EXAMPLE_CHARS = 160+++def open_thread(dataset: Dataset) -> AssistantThread:+ """The dataset's conversation, made on first use."""+ return AssistantThread.objects.get_or_create(+ dataset=dataset, defaults={"project_id": dataset.project_id}+ )[0]+++def data_name(cell) -> str:+ """The file a version has in a workspace's ``data``. A published version never changes,+ so its id names its rows."""+ return f"{cell.pk}.parquet"+++def brief(thread) -> dict:+ """What the dataset holds now, in JSON types: the model reads it with the user's+ message, so its first step is work and not a lookup."""+ dataset = thread.dataset+ names = dataset.versions()+ source, active = dataset.source, dataset.active_cell++ def version(cell):+ return {+ "cell": str(cell.pk),+ "title": cell.title,+ "version": names.get(cell.pk),+ "rows": cell.rows,+ "path": f"data/{data_name(cell)}",+ "column_count": len(cell.columns),+ "columns": cell.columns[:BRIEF_COLUMNS],+ }++ out = {+ "dataset": {"id": str(dataset.pk), "name": dataset.name, "intent": dataset.intent},+ "versions": len(names),+ }+ if source is not None and source.ran:+ measured = (source.stats.get("preparation_profile") or {}).get("columns") or {}+ out["source"] = version(source) | {+ "profile": {+ name: {+ "empty_rows": column.get("empty_rows"),+ "examples": [+ example[:BRIEF_EXAMPLE_CHARS] for example in column.get("examples", [])[:2]+ ],+ }+ for name, column in list(measured.items())[:BRIEF_COLUMNS]+ }+ }+ if active is not None and active != source:+ out["latest"] = version(active)+ recipe = dataset.preparation_pipeline+ if recipe is not None:+ out["pipeline"] = {"id": str(recipe.family), "name": recipe.name}+ return out+++def send(thread, user, *, request_key, text, cells=(), interaction=None) -> AssistantInput:+ """Queue a message. The same key with the same message returns the first one."""+ cells = [str(cell) for cell in cells]+ with transaction.atomic():+ AssistantThread.objects.select_for_update().get(pk=thread.pk)+ prior = thread.inputs.filter(request_key=request_key).first()+ if prior is not None:+ if (prior.text, prior.cells, prior.interaction) != (text, cells, interaction):+ raise InputValidationError("This request key identifies a different message.")+ return prior+ known = Cell.objects.filter(dataset__project=thread.project_id, pk__in=cells).count()+ if known != len(set(cells)):+ raise InputValidationError("A referenced dataset version is not in this project.")+ last = thread.inputs.aggregate(last=Max("position"))["last"] or 0+ log.changed(thread)+ return AssistantInput.objects.create(+ thread=thread,+ created_by=user,+ request_key=request_key,+ text=text,+ cells=cells,+ interaction=interaction,+ position=last + 1,+ )+++def change(message_id, thread, user, *, revision, action, text=None, before=None) -> AssistantInput:+ """Edit, remove, move or send now a queued message. ``revision`` must be the one the+ user saw, so a change to a message a turn already read is refused. A message's words+ are its sender's: only they edit or remove it; any member orders the queue."""+ with transaction.atomic():+ # The thread first, as ``send`` does: two moves then cannot lock each other's rows.+ AssistantThread.objects.select_for_update().get(pk=thread.pk)+ message = (+ AssistantInput.objects.select_for_update().filter(pk=message_id, thread=thread).first()+ )+ if message is None or message.state != Queued or message.revision != revision:+ raise InputValidationError("This message changed or was already sent.")+ if action in ("edit", "remove") and message.created_by_id != user.pk:+ raise InputValidationError("Only its sender can edit or remove a queued message.")+ if action == "edit":+ message.text = text+ elif action == "remove":+ message.state = AssistantInput.State.REMOVED+ elif action == "send_now":+ message.urgent = True+ elif action == "move":+ queue = [m for m in thread.inputs.filter(state=Queued) if m.pk != message.pk]+ index = next((i for i, m in enumerate(queue) if str(m.pk) == str(before)), len(queue))+ queue.insert(index, message)+ for position, moved in enumerate(queue, start=1):+ AssistantInput.objects.filter(pk=moved.pk).update(position=position)+ message.position = index + 1+ message.revision = F("revision") + 1+ message.save()+ log.changed(thread)+ message.refresh_from_db()+ return messagediff --git a/overbae/services/assistant/tools.py b/overbae/services/assistant/tools.pynew file mode 100644index 00000000..fd2d0b0e--- /dev/null+++ b/overbae/services/assistant/tools.py@@ -0,0 +1,418 @@+"""What the assistant can do. Platform actions are the MCP catalog's own tools, called in+process, so the assistant and a customer's coding agent cannot drift apart. Its own tools+run Python in the project's workspace, run a transformation, and show results."""++import hashlib+import io+import json+import re+import time+import zipfile+from collections.abc import Callable+from copy import deepcopy+from dataclasses import dataclass+from functools import cache+from pathlib import Path++from asgiref.sync import async_to_sync+from django.conf import settings+from django.db.models import Q++from overbae.core.errors import InputValidationError+from overbae.models import AssistantThread, Cell, DatasetPipeline+from overbae.services import workspaces+from overbae.services.assistant import presentation+from overbae.services.assistant.threads import data_name+from overbae.services.datasets import pipeline_packages, rows+from overbae.services.datasets.lifecycle import DatasetError+from overbae.services.mcp.catalog import CATALOG+from overbae.services.mcp.context import ASSISTANT, MCPContext, PlatformCredential++CATALOG_TOOLS = (+ "list_datasets",+ "inspect_dataset",+ "query_dataset",+ "inspect_dataset_workbench",+ "create_data_partition",+ "get_job",+)+# What the user reads while a call runs and in the list of steps afterwards.+SUMMARY = {+ "type": "string",+ "maxLength": 80,+ "description": "A few words that tell the user what this step does, such as "+ "'Checking label balance'. Sentence case. No ids, no tool names.",+}+_WRITTEN_SUMMARY = re.compile(r'"summary"\s*:\s*("(?:[^"\\]|\\.)*")')+MAX_CODE_CHARS = 64_000+RESULT_CHARS = 24_000+# A job a call started is waited for within the turn, to this limit.+JOB_SECONDS = 25 * 60+POLL_SECONDS = 2++OWN_TOOLS = {+ "run_python": (+ "Run Python in this conversation's kernel. Variables and files in the working "+ "directory stay between calls. The value of the last line is shown. There is no "+ "network. pandas, numpy, pyarrow, duckdb, scipy, scikit-learn and matplotlib are "+ "installed. Name every dataset version the cell reads in `versions`: each one is "+ "at data/<cell id>.parquet. For more than a few hundred thousand rows, prefer duckdb.",+ {+ "type": "object",+ "properties": {+ "code": {"type": "string", "maxLength": MAX_CODE_CHARS},+ "versions": {+ "type": "array",+ "items": {"type": "string", "format": "uuid"},+ "maxItems": 10,+ },+ "timeout": {+ "type": "integer",+ "minimum": 1,+ "maximum": workspaces.MAX_SECONDS,+ "description": f"Seconds. Default {workspaces.DEFAULT_SECONDS}.",+ },+ },+ "required": ["code"],+ "additionalProperties": False,+ },+ ),+ "run_pipeline": (+ "Retain a transformation and run it on one dataset version; the result comes back "+ "when the run ends. `files` is the package: manifest.json and its entrypoints, as "+ "the package contract says. Mode publish runs every row and adds the result to the "+ "dataset as new versions. Mode preview runs the first rows and changes nothing. To "+ "correct a pipeline, pass its id as `pipeline` with the new files; that saves its "+ "next revision. To run a saved pipeline again, pass `pipeline` and no files. The "+ "platform sets the manifest's `runtime`: leave it out.",+ {+ "type": "object",+ "properties": {+ "source_cell": {+ "type": "string",+ "format": "uuid",+ "description": "The dataset version the pipeline reads.",+ },+ "mode": {"type": "string", "enum": ["publish", "preview"]},+ "name": {"type": "string", "description": "Required with files."},+ "files": {+ "type": "object",+ "description": "Relative path to file content.",+ "additionalProperties": {"type": "string"},+ },+ "pipeline": {"type": "string", "format": "uuid"},+ "parameters": {"type": "object"},+ },+ "required": ["source_cell", "mode"],+ "additionalProperties": False,+ },+ ),+}+++@dataclass(frozen=True)+class Outcome:+ ok: bool+ content: object+ # The result document a ``present`` call shows.+ presentation: dict | None = None+ # A question to the user: the turn ends with it.+ asks: bool = False+++def _supplied(definition) -> tuple[str, ...]:+ """Arguments the turn gives: the model never chooses a project or a request identity.+ On a read-only tool ``request_key`` is a filter, and the model's own."""+ return ("project_id",) if definition.read_only else ("project_id", "request_key")+++@cache+def specifications() -> list[dict]:+ specs = []+ for name in CATALOG_TOOLS:+ definition = CATALOG.get(name).definition+ schema = deepcopy(definition.as_mcp_tool().inputSchema)+ supplied = _supplied(definition)+ for argument in supplied:+ schema["properties"].pop(argument, None)+ schema["required"] = [key for key in schema.get("required", []) if key not in supplied]+ specs.append(_function(name, definition.description, schema))+ specs += [_function(name, text, schema) for name, (text, schema) in OWN_TOOLS.items()]+ specs.append(+ _function(+ "present",+ presentation.Presentation.__doc__,+ presentation.Presentation.model_json_schema(),+ )+ )+ return specs+++def summary(raw: str) -> str:+ """The summary of a call from its arguments, also while they are still being written."""+ written = _WRITTEN_SUMMARY.search(raw)+ try:+ return json.loads(written.group(1)) if written else ""+ except ValueError:+ return ""+++def _function(name, description, parameters):+ # First, so the model writes it before the long arguments and the user reads it at once.+ parameters = {+ **parameters,+ "properties": {"summary": SUMMARY, **parameters.get("properties", {})},+ "required": ["summary", *parameters.get("required", [])],+ }+ return {+ "type": "function",+ "function": {"name": name, "description": description, "parameters": parameters},+ }+++class Turn:+ """What a tool may ask of the turn that runs it: to stay alive while it waits, and+ whether the user stopped it."""++ def __init__(self, thread: AssistantThread, user, call_id: str, alive: Callable[[], bool]):+ self.thread, self.user, self.call_id, self.alive = thread, user, call_id, alive++ def key(self, part: str) -> str:+ # One call is one request to the platform: a repeat returns its first receipt.+ identity = f"{self.thread.pk}:{self.call_id}:{part}"+ return "assistant-" + hashlib.sha256(identity.encode()).hexdigest()[:32]+++def call(turn: Turn, name: str, arguments: dict) -> Outcome:+ # The summary is for the user: no tool reads it.+ arguments = {key: value for key, value in arguments.items() if key != "summary"}+ try:+ if name in CATALOG_TOOLS:+ return _platform(turn, name, arguments)+ if name in _OWN:+ return _OWN[name](turn, arguments)+ except (InputValidationError, DatasetError, rows.RowStoreError) as exc:+ return Outcome(False, {"error": getattr(exc, "detail", str(exc))})+ except workspaces.WorkspaceUnavailableError as exc:+ return Outcome(False, {"error": f"The workspace is not available now: {exc}"})+ return Outcome(False, {"error": f"There is no tool named {name}."})+++def _invoke(turn: Turn, name, arguments):+ thread = turn.thread+ if not thread.project.memberships.filter(user=turn.user).exists():+ raise InputValidationError("The user this call acts for left the project.")+ context = MCPContext(+ user=turn.user,+ token=PlatformCredential(thread.project_id),+ project=thread.project,+ client_name=ASSISTANT,+ )+ return async_to_sync(CATALOG.invoke)(name, arguments, context)+++def _wait(turn: Turn, job: dict) -> dict:+ """The job's receipt once the platform no longer moves it, or as it is when the turn+ must stop waiting."""+ deadline = time.monotonic() + JOB_SECONDS+ while True:+ state = _invoke(turn, "get_job", {"kind": job["kind"], "id": job["id"]})+ content = state.structuredContent or {}+ if state.isError or content.get("poll_after_seconds") is None:+ return content+ if time.monotonic() > deadline:+ return {**content, "note": "Still running: inspect it later with get_job."}+ if not turn.alive():+ return {**content, "note": "The user stopped the conversation while it ran."}+ time.sleep(POLL_SECONDS)+++def _platform(turn: Turn, name: str, arguments: dict) -> Outcome:+ definition = CATALOG.get(name).definition+ arguments = {key: value for key, value in arguments.items() if key not in _supplied(definition)}+ if not definition.read_only:+ arguments["request_key"] = turn.key(name)+ result = _invoke(turn, name, arguments)+ content = result.structuredContent or {}+ if result.isError:+ return Outcome(False, content)+ job = content.get("job")+ if not definition.read_only and isinstance(job, dict) and job.get("kind"):+ content = {**content, "job": _wait(turn, job)}+ return Outcome(True, content)+++def _put_versions(turn: Turn, provider, versions) -> bool:+ """False when the user stopped the turn before every version was copied."""+ if not isinstance(versions, list) or not all(isinstance(v, str) for v in versions):+ raise InputValidationError("versions lists dataset version ids.")+ cells = Cell.objects.filter(dataset__project=turn.thread.project_id, pk__in=versions)+ if cells.count() != len(set(versions)):+ raise InputValidationError("A listed dataset version is not in this project.")+ for cell in cells:+ # A deleted project takes its thread along; a turn that lost it copies nothing+ # into a workspace its removal already cleared. A stopped turn copies nothing more.+ if not turn.alive():+ return False+ with open(rows.frame_path(cell), "rb") as frame:+ provider.put_data(str(turn.thread.project_id), data_name(cell), frame)+ return True+++def _run_python(turn: Turn, arguments) -> Outcome:+ code = arguments.get("code")+ timeout = arguments.get("timeout", workspaces.DEFAULT_SECONDS)+ if not isinstance(code, str) or type(timeout) is not int:+ raise InputValidationError("code is text and timeout is a whole number of seconds.")+ if len(code) > MAX_CODE_CHARS:+ raise InputValidationError(f"code is at most {MAX_CODE_CHARS:,} characters.")+ provider = workspaces.provider()+ # A stop ends the kernel; a cell started after it would start another.+ if not _put_versions(turn, provider, arguments.get("versions") or []) or not turn.alive():+ return Outcome(False, {"error": "The user stopped the conversation."})+ run = provider.run(+ str(turn.thread.project_id),+ turn.thread.pk.hex,+ code,+ max(1, min(timeout, workspaces.MAX_SECONDS)),+ )+ content = {"output": run.output, "error": run.error, "truncated": run.truncated}+ if run.restarted:+ content["note"] = run.restarted+ return Outcome(run.ok, content)+++def _package(turn: Turn, files):+ if not isinstance(files, dict) or not all(isinstance(text, str) for text in files.values()):+ raise InputValidationError("files maps each relative path to its text.")+ try:+ manifest = json.loads(files.get("manifest.json", ""))+ except ValueError:+ raise InputValidationError("manifest.json is required and must be JSON.") from None+ if isinstance(manifest, dict):+ manifest["runtime"] = pipeline_packages.runtime_id()+ files = {**files, "manifest.json": json.dumps(manifest, indent=2)}+ bundle = io.BytesIO()+ with zipfile.ZipFile(bundle, "w", zipfile.ZIP_DEFLATED) as archive:+ for path, text in sorted(files.items()):+ archive.writestr(path, text)+ bundle.seek(0)+ return pipeline_packages.save(turn.thread.project, turn.user, bundle)+++def _run_pipeline(turn: Turn, arguments) -> Outcome:+ """Save, check and run in one call: the model writes the code, the platform's own+ tools retain and run it."""+ project = turn.thread.project+ source = Cell.objects.filter(dataset__project=project, pk=arguments.get("source_cell")).first()+ if source is None:+ raise InputValidationError("source_cell is a dataset version of this project.")+ files, named = arguments.get("files"), arguments.get("pipeline")+ # A pipeline has an id for each revision and one for all of them: either names it.+ known = (+ DatasetPipeline.objects.filter(project=project)+ .filter(Q(family=named) | Q(pk=named))+ .first()+ if named+ else None+ )+ if named and known is None:+ raise InputValidationError("pipeline is a pipeline of this project.")+ latest = (+ DatasetPipeline.objects.filter(project=project, family=known.family)+ .order_by("-revision")+ .first()+ if known+ else None+ )+ if files is None and latest is None:+ raise InputValidationError("Give files for a new pipeline, or pipeline to run a saved one.")+ dataset = str(source.dataset_id)+ revision = str(latest.pk) if latest else None+ if files is not None:+ save = {+ "dataset": dataset,+ "name": arguments.get("name") or (latest.name if latest else ""),+ "package": str(_package(turn, files).pk),+ "request_key": turn.key("save"),+ }+ if latest:+ save |= {"pipeline": str(latest.family), "expected_revision": latest.revision}+ saved = _invoke(turn, "save_dataset_pipeline", save)+ if saved.isError:+ return Outcome(False, saved.structuredContent)+ revision = saved.structuredContent["pipeline"]["id"]+ pinned = {"source_cell": str(source.pk), "source_fingerprint": source.fingerprint}+ checked = _invoke(turn, "validate_dataset_pipeline", {"pipeline": revision, **pinned})+ if checked.isError:+ return Outcome(False, checked.structuredContent)+ validation = checked.structuredContent["validation"]+ record = validation.pop("pipeline")+ content = {+ "pipeline": {name: record[name] for name in ("id", "pipeline_id", "revision", "name")},+ "validation": validation,+ }+ if not validation["valid"]:+ missing = ", ".join(validation["missing_columns"])+ return Outcome(False, {**content, "error": f"The source has no column {missing}."})+ run = {+ "dataset": dataset,+ "pipeline": revision,+ "mode": arguments.get("mode"),+ "parameters": arguments.get("parameters") or {},+ "request_key": turn.key("run"),+ **pinned,+ }+ ran = _invoke(turn, "run_dataset_pipeline", run)+ if ran.isError:+ return Outcome(False, {**content, **ran.structuredContent})+ receipt = ran.structuredContent["job"]+ finished = _wait(turn, receipt)+ if finished.get("status") == "completed":+ return Outcome(True, {**content, "run": finished})+ # The reader sees a failed step by its error, wherever the run recorded it.+ error = (finished.get("details") or {}).get("error") or f"The run is {finished.get('status')}."+ return Outcome(False, {**content, "run": finished, "error": error})+++def image_path(thread: AssistantThread, name: str) -> Path:+ """Where a presented image is retained, under its content name."""+ return Path(settings.MEDIA_ROOT) / "assistant" / str(thread.pk) / name+++def _present(turn: Turn, arguments) -> Outcome:+ thread, provider = turn.thread, workspaces.provider()++ def read_file(name):+ return provider.read_file(str(thread.project_id), thread.pk.hex, name)++ def save_image(name, data):+ path = image_path(thread, name)+ path.parent.mkdir(parents=True, exist_ok=True)+ path.write_bytes(data)++ document = presentation.build(thread.project, arguments, read_file, save_image)+ asks = presentation.asks(document)+ return Outcome(True, {"shown": True}, presentation=document, asks=asks)+++_OWN = {"run_python": _run_python, "run_pipeline": _run_pipeline, "present": _present}+++def _compact(value):+ """MCP results carry every optional field; the empty ones only cost the model tokens.+ Rows are data: a null or empty value in one is a measured value and stays."""+ if isinstance(value, dict):+ kept = {key: item if key == "rows" else _compact(item) for key, item in value.items()}+ return {key: item for key, item in kept.items() if item not in (None, [], {})}+ if isinstance(value, list):+ return [_compact(item) for item in value]+ return value+++def bounded(content) -> str:+ """A tool result as the model reads it."""+ text = json.dumps(_compact(content), default=str, ensure_ascii=False)+ if len(text) <= RESULT_CHARS:+ return text+ return json.dumps({"truncated": True, "characters": len(text), "start": text[:RESULT_CHARS]})diff --git a/overbae/services/assistant/turn.py b/overbae/services/assistant/turn.pynew file mode 100644index 00000000..14e2a0fa--- /dev/null+++ b/overbae/services/assistant/turn.py@@ -0,0 +1,506 @@+"""A turn: from a user's message to the assistant's reply, in one task. The event log is+saved at every step, so a turn that stops halfway leaves an exact record, and the next+message starts a new turn from it. A turn is never resumed by itself.++A turn holds the thread by its number and writes only while it is the newest. A turn that+stopped moving for ``STALE`` is taken for interrupted, and from then on it can write+nothing."""++import json+import logging+import time+import uuid++from django.conf import settings+from django.contrib.auth import get_user_model+from django.db import transaction+from django.utils import timezone++from overbae.core.llms import IncompleteCompletionError, call_llm_tools, stream_llm_tools+from overbae.core.model_registry import TaskType, model_chain+from overbae.models import AssistantEvent, AssistantInput, AssistantThread, BillingService, Dataset+from overbae.models.assistant import STALE+from overbae.services.assistant import log, prompt, threads, tools+from overbae.services.billing_ledger import InsufficientCredits, charge_llm_usage, ensure_credits++logger = logging.getLogger(__name__)+Kind, State = AssistantEvent.Kind, AssistantThread.State+Queued = AssistantInput.State.QUEUED++# Longer than any one step: a model reply, a cell at its limit, or one poll of a job.+TURN_SECONDS = 30 * 60+DRAFT_INTERVAL_SECONDS = 0.1+ABANDONED = {+ "error": "This call has no recorded result: the turn stopped or was interrupted. It may "+ "have run. Inspect before you repeat a call that changes something."+}+# Newest user messages and replies the model keeps word for word after a summary.+COMPACT_KEEP = 6+COMPACT_PROMPT = """\+Summarize the conversation so far for your own later use; the messages above will be removed.+Keep every identifier you may need again exactly (dataset, cell, pipeline, run and partition+ids, file names in the kernel), the user's goal and decisions, what you measured with its+numbers, what you published, what failed and why, and what remains to do. Do not call tools.+Write plain text."""+++class _StoppedError(Exception):+ pass+++def wake(thread: AssistantThread) -> None:+ """Start a turn once the change that asks for it is committed. A turn that runs reads+ new messages itself; a second task finds the thread taken and ends."""+ from overbae.tasks.assistant import run_turn # lazy: tasks import the API serializers++ transaction.on_commit(lambda: run_turn.delay(str(thread.pk)))+++def wake_dataset(dataset_id) -> None:+ """The dataset's source landed: a message that waited for it may start its turn."""+ thread = AssistantThread.objects.filter(dataset_id=dataset_id).first()+ if thread is not None and thread.inputs.filter(state=Queued).exists():+ wake(thread)+++def settle(thread: AssistantThread) -> AssistantThread:+ """Mark a turn that stopped moving as interrupted. A page that reads the thread and a+ user who writes to it call this; no process watches for it."""+ if thread.state != State.RUNNING or thread.updated_at > timezone.now() - STALE:+ return thread+ with transaction.atomic():+ held = AssistantThread.objects.select_for_update().get(pk=thread.pk)+ if held.state == State.RUNNING and held.updated_at <= timezone.now() - STALE:+ # A newer number fences the lost turn out of every later write.+ held.turn += 1+ held.state = State.IDLE+ held.save(update_fields=["turn", "state", "updated_at"])+ log.append(+ held,+ Kind.STATUS,+ {+ "state": "interrupted",+ "detail": "The turn was interrupted. Send a message to continue.",+ },+ )+ if held.inputs.filter(state=Queued).exists():+ wake(held)+ thread.refresh_from_db()+ return thread+++def run(thread_id) -> None:+ """The task: one turn, and the next one when messages arrived as it ended."""+ thread = _begin(thread_id)+ if thread is None:+ return+ try:+ _turn(thread)+ except log.LostTurnError:+ logger.warning("assistant turn on %s was taken over", thread_id)+ return+ except _StoppedError:+ _stopped(thread)+ except Exception:+ logger.exception("assistant turn failed on %s", thread_id)+ _status(thread, "failed", "The turn failed. Send a message to continue.")+ if _held(thread).update(state=State.IDLE, stop_requested=False):+ log.changed(thread)+ if thread.inputs.filter(state=Queued).exists():+ wake(thread)+++def _begin(thread_id) -> AssistantThread | None:+ """Take the thread for a turn, when a message waits and nothing holds it."""+ thread = settle(AssistantThread.objects.select_related("project", "dataset").get(pk=thread_id))+ with transaction.atomic():+ thread = (+ AssistantThread.objects.select_for_update(of=("self",))+ .select_related("project", "dataset")+ .get(pk=thread_id)+ )+ if thread.state == State.RUNNING or not thread.inputs.filter(state=Queued).exists():+ return None+ # A first message on a new dataset waits for its source; landing wakes the thread.+ if thread.dataset.state == Dataset.State.LANDING:+ return None+ thread.state, thread.stop_requested = State.RUNNING, False+ thread.turn += 1+ thread.save(update_fields=["state", "stop_requested", "turn", "updated_at"])+ log.changed(thread)+ return thread+++def _held(thread):+ """The thread's row while this turn still holds it: no row once it lost the thread."""+ return AssistantThread.objects.filter(pk=thread.pk, turn=thread.turn, state=State.RUNNING)+++def _alive(thread) -> bool:+ """Move the turn's progress mark. False when the user stopped it; a turn that lost the+ thread raises."""+ if not _held(thread).update(updated_at=timezone.now()):+ raise log.LostTurnError+ return not _held(thread).filter(stop_requested=True).exists()+++def _status(thread, state: str, detail: str) -> None:+ log.append(thread, Kind.STATUS, {"state": state, "detail": detail}, turn=thread.turn)+++def _stopped(thread) -> None:+ with transaction.atomic():+ _status(thread, "stopped", "Stopped.")+ thread.inputs.filter(state=Queued).update(state=AssistantInput.State.REMOVED)+++def _turn(thread) -> None:+ deadline = time.monotonic() + TURN_SECONDS+ message = thread.inputs.filter(state=Queued).order_by("-urgent", "position").first()+ # Past the deadline the rest stay queued: ``run`` starts the next turn for them.+ while message is not None and time.monotonic() < deadline:+ if _deliver(thread, message):+ _answer(thread, deadline)+ message = thread.inputs.filter(state=Queued).order_by("-urgent", "position").first()+++def _answer(thread, deadline: float) -> None:+ """Model calls and tool calls until the model replies without calls or asks a question."""+ while True:+ if not _alive(thread):+ raise _StoppedError+ if time.monotonic() > deadline:+ _status(+ thread, "failed", "The turn reached its time limit. Send a message to continue."+ )+ return+ # A message sent "now" joins at the next model call.+ for urgent in thread.inputs.filter(state=Queued, urgent=True).order_by("position"):+ _deliver(thread, urgent)+ user = _actor(thread)+ if user is None:+ _status(thread, "failed", "The sender of the last message is not a project member.")+ return+ try:+ ensure_credits(user)+ except InsufficientCredits:+ _status(thread, "failed", "Credits are needed to continue.")+ return+ _compact(thread, user)+ reply = _model_call(thread, user)+ if reply is None or not reply.payload["calls"]:+ return+ asked = False+ for call in reply.payload["calls"]:+ if not _alive(thread):+ raise _StoppedError+ asked |= _run_tool(thread, user, call)+ if asked:+ return+++def _actor(thread):+ """The sender of the newest message, while still a member of the project: the turn acts+ with their access and credits."""+ sender = (+ thread.events.filter(kind=Kind.USER)+ .order_by("-sequence")+ .values_list("payload__user", flat=True)+ .first()+ )+ if not thread.project.memberships.filter(user_id=sender).exists():+ return None+ return get_user_model().objects.get(pk=sender)+++def _deliver(thread, message) -> bool:+ # The model reads what the dataset holds with a message, once: again only when it+ # changed, or when a summary replaced the message that carried it.+ window = _window(thread)+ known = next(+ (+ event.payload["context"]+ for event in reversed(window)+ if event.kind == Kind.USER and event.payload.get("context")+ ),+ None,+ )+ # Saving a recipe updates the row, not the dataset this turn loaded.+ thread.dataset.refresh_from_db(fields=["preparation_pipeline"])+ now = threads.brief(thread)+ with transaction.atomic():+ # The thread first, as every queue change locks it: a stop that came after the+ # last reply is seen before the next message is taken from the queue.+ held = AssistantThread.objects.select_for_update().get(pk=thread.pk)+ if held.turn != thread.turn:+ raise log.LostTurnError+ if held.stop_requested:+ raise _StoppedError+ # The user may have edited or removed it since this turn read the queue.+ if not AssistantInput.objects.filter(pk=message.pk, state=Queued).update(+ state=AssistantInput.State.DELIVERED+ ):+ return False+ message.refresh_from_db()+ log.append(+ thread,+ Kind.USER,+ {+ "input": str(message.pk),+ "user": message.created_by_id,+ "text": message.text,+ "cells": message.cells,+ "interaction": message.interaction,+ **({"context": now} if now != known else {}),+ },+ turn=thread.turn,+ )+ return True+++def _window(thread) -> list[AssistantEvent]:+ """The events the model reads: the newest summary and everything it does not cover."""+ covered = (+ thread.events.filter(kind=Kind.SUMMARY)+ .order_by("-sequence")+ .values_list("payload__through", flat=True)+ .first()+ )+ return list(thread.events.filter(sequence__gt=covered or 0).defer("presentation"))+++def _charge(thread, user, stats, sequence) -> None:+ charge_llm_usage(+ user,+ stats,+ service=BillingService.DATA_WORKSHOP,+ project_id=thread.project_id,+ idempotency_key=f"assistant:{thread.pk}:{sequence}",+ )+++def _record(thread, user, kind, payload) -> AssistantEvent:+ """Save what a model call produced and charge it, both or neither."""+ with transaction.atomic():+ event = log.append(thread, kind, payload, turn=thread.turn)+ _charge(thread, user, payload["usage"], event.sequence)+ return event+++def _compact(thread, user) -> None:+ """Summarize the older conversation once the last reply's prompt grew too large. The+ cut falls before a user message or a reply, so no tool call loses its result."""+ window = _window(thread)+ replies = [event for event in window if event.kind == Kind.ASSISTANT]+ if (+ window[-1].kind == Kind.SUMMARY+ or not replies+ or (+ (replies[-1].payload["usage"].get("prompt_tokens") or 0)+ <= settings.ASSISTANT_COMPACT_TOKENS+ )+ ):+ return+ starts = [i for i, event in enumerate(window) if event.kind in (Kind.USER, Kind.ASSISTANT)]+ if len(starts) <= COMPACT_KEEP:+ return+ older = window[: starts[-COMPACT_KEEP]]+ earlier = [event for event in window if event.kind == Kind.SUMMARY and event not in older]+ chain = model_chain(TaskType.ASSISTANT)+ try:+ text, _calls, stats = call_llm_tools(+ [*messages(thread, [*older, *earlier]), {"role": "user", "content": COMPACT_PROMPT}],+ [],+ model=chain[0],+ fallback_models=chain[1:],+ )+ except IncompleteCompletionError as exc:+ # The provider charged for the summary it cut off, and what it wrote still serves.+ text, stats = exc.content, exc.stats+ except (RuntimeError, TimeoutError) as exc:+ logger.warning("assistant summary failed for thread %s: %s", thread.pk, exc)+ return+ _record(+ thread, user, Kind.SUMMARY, {"text": text, "through": older[-1].sequence, "usage": stats}+ )+++def _user_text(payload) -> str:+ parts = [payload["text"]]+ if payload["cells"]:+ parts.append(+ "Dataset versions the user refers to (cell ids): " + ", ".join(payload["cells"])+ )+ if payload["interaction"]:+ answers = json.dumps(payload["interaction"]["values"], ensure_ascii=False)+ parts.append(f"Answers: {answers}")+ if payload.get("context"):+ parts.append(+ "The dataset now, as the platform measured it:\n"+ + json.dumps(payload["context"], ensure_ascii=False)+ )+ return "\n\n".join(part for part in parts if part)+++def messages(thread, events) -> list[dict]:+ """The events as the model reads them. A call that never got a result is answered as+ abandoned, because the API refuses a tool call without one."""+ out = [{"role": "system", "content": prompt.system(thread)}]+ summary = next((event for event in reversed(events) if event.kind == Kind.SUMMARY), None)+ if summary is not None:+ out.append(+ {+ "role": "user",+ "content": "Summary of the earlier conversation:\n" + summary.payload["text"],+ }+ )+ events = [event for event in events if event.sequence > summary.payload["through"]]+ open_calls: list[str] = []++ def close():+ out.extend(+ {"role": "tool", "tool_call_id": call, "content": json.dumps(ABANDONED)}+ for call in open_calls+ )+ open_calls.clear()++ for event in events:+ payload = event.payload+ if event.kind == Kind.ASSISTANT:+ close()+ # A provider refuses a reply that says and calls nothing.+ if not payload["text"] and not payload["calls"]:+ continue+ message = {"role": "assistant", "content": payload["text"] or None}+ if payload["calls"]:+ message["tool_calls"] = [+ {+ "id": call["id"],+ "type": "function",+ "function": {"name": call["name"], "arguments": call["raw"]},+ }+ for call in payload["calls"]+ ]+ open_calls.extend(call["id"] for call in payload["calls"])+ if payload["reasoning"]:+ message["reasoning_details"] = payload["reasoning"]+ out.append(message)+ elif event.kind == Kind.TOOL_RESULT and payload["call"] in open_calls:+ open_calls.remove(payload["call"])+ out.append(+ {+ "role": "tool",+ "tool_call_id": payload["call"],+ "content": tools.bounded(payload["content"]),+ }+ )+ elif event.kind == Kind.USER:+ close()+ out.append({"role": "user", "content": _user_text(payload)})+ close()+ return out+++def _model_call(thread, user) -> AssistantEvent | None:+ published = time.monotonic()+ shown = None++ def progress(text, calls):+ nonlocal published, shown+ now = time.monotonic()+ steps = [tools.summary(call["function"]["arguments"]) for call in calls]+ if now - published > DRAFT_INTERVAL_SECONDS and (len(text), steps) != shown:+ if not _alive(thread):+ raise _StoppedError+ sent = shown[0] if shown else 0+ log.draft(thread, text[sent:], steps, at=sent)+ published, shown = now, (len(text), steps)++ chain = model_chain(TaskType.ASSISTANT)+ try:+ text, calls, stats = stream_llm_tools(+ messages(thread, _window(thread)),+ tools.specifications(),+ model=chain[0],+ fallback_models=chain[1:],+ on_progress=progress,+ )+ except IncompleteCompletionError as exc:+ # The provider charged for the reply it cut off.+ with transaction.atomic():+ event = log.append(+ thread,+ Kind.STATUS,+ {+ "state": "failed",+ "detail": "The model reached its output limit before it finished.",+ },+ turn=thread.turn,+ )+ _charge(thread, user, exc.stats, event.sequence)+ return None+ except (RuntimeError, TimeoutError) as exc:+ logger.warning("assistant model call failed for thread %s: %s", thread.pk, exc)+ _status(thread, "failed", "The model did not answer. Send a message to continue.")+ return None+ return _record(+ thread,+ user,+ Kind.ASSISTANT,+ {+ "text": text,+ # Provider call ids repeat across replies; these are unique in the thread.+ "calls": [+ {+ "id": uuid.uuid4().hex[:16],+ "name": call["function"]["name"],+ "raw": call["function"]["arguments"] or "{}",+ }+ for call in calls+ ],+ # The provider needs these back unchanged with the reply's tool results.+ "reasoning": stats.pop("reasoning_details"),+ "usage": stats,+ },+ )+++def _run_tool(thread, user, call) -> bool:+ """Run one call and save its result. True when it asked the user a question."""+ try:+ arguments = json.loads(call["raw"])+ except ValueError:+ arguments = None+ if not isinstance(arguments, dict):+ outcome = tools.Outcome(False, {"error": "The arguments were not a JSON object."})+ else:+ turn = tools.Turn(thread, user, call["id"], lambda: _alive(thread))+ outcome = tools.call(turn, call["name"], arguments)+ log.append(+ thread,+ Kind.TOOL_RESULT,+ {"call": call["id"], "name": call["name"], "ok": outcome.ok, "content": outcome.content},+ turn=thread.turn,+ presentation=outcome.presentation,+ )+ return outcome.asks+++def stop(thread: AssistantThread) -> None:+ """Stop the running turn at its next step, and a cell that runs now at once. Queued+ messages are dropped; jobs the turn started continue."""+ from overbae.tasks.assistant import stop_kernel # lazy: same cycle as ``wake``++ with transaction.atomic():+ held = AssistantThread.objects.select_for_update().get(pk=thread.pk)+ if held.state == State.RUNNING:+ held.stop_requested = True+ held.save(update_fields=["stop_requested"])+ transaction.on_commit(+ lambda: stop_kernel.delay(str(held.project_id), str(held.pk), held.turn)+ )+ elif held.inputs.filter(state=Queued).exists():+ # Messages that wait for the dataset's source to land.+ log.append(held, Kind.STATUS, {"state": "stopped", "detail": "Stopped."})+ held.inputs.filter(state=Queued).update(state=AssistantInput.State.REMOVED)+ log.changed(thread)diff --git a/overbae/services/datasets/events.py b/overbae/services/datasets/events.pyindex e09104ff..c99ed9cd 100644--- a/overbae/services/datasets/events.py+++ b/overbae/services/datasets/events.py@@ -1,6 +1,6 @@-"""One SSE stream per dataset. Events are best-effort: a Redis hiccup never-fails the run that emitted, and a replay gap is harmless because the dataset-row is the source of truth."""+"""One live channel per dataset. An event names what changed, and an open page reads it+again from the API: Postgres is the record, so an event that is lost costs only a delay,+and a page that connects reads the current state, not a history."""from __future__ import annotations@@ -15,11 +15,8 @@ from django.conf import settingslogger = logging.getLogger(__name__)-_REPLAY_CAP = 300-_REPLAY_TTL_SECONDS = 6 * 3600--def _redis_client():+def client():url = getattr(settings, "CELERY_BROKER_URL", "redis://localhost:6379/0")if not url.startswith(("redis://", "rediss://", "unix://")):return None@@ -37,51 +34,15 @@ def channel(dataset_id: Any) -> str:return f"dataset:{dataset_id}"-def _replay_key(dataset_id: Any) -> str:- return f"dataset:events:{dataset_id}"---def _seq_key(dataset_id: Any) -> str:- return f"dataset:events:seq:{dataset_id}"---def publish(dataset_id: Any, event: dict[str, Any], *, client: Any = None) -> None:+def publish(dataset_id: Any, event: dict[str, Any]) -> None:try:- r = client if client is not None else _redis_client()- if r is None:- return- # Replay dedupes live events by seq; two deltas of the same token are byte-identical.- event = {**event, "seq": int(r.incr(_seq_key(dataset_id)))}- payload = json.dumps(event, default=str)- pipe = r.pipeline()- pipe.publish(channel(dataset_id), payload)- pipe.rpush(_replay_key(dataset_id), payload)- pipe.ltrim(_replay_key(dataset_id), -_REPLAY_CAP, -1)- pipe.expire(_replay_key(dataset_id), _REPLAY_TTL_SECONDS)- pipe.expire(_seq_key(dataset_id), _REPLAY_TTL_SECONDS)- pipe.execute()+ r = client()+ if r is not None:+ r.publish(channel(dataset_id), json.dumps(event, default=str))except Exception: # noqa: BLE001 — events are advisory, never fatallogger.warning("dataset event publish failed for %s", dataset_id, exc_info=True)-def replay(dataset_id: Any, *, client: Any = None) -> list[dict[str, Any]]:- try:- r = client if client is not None else _redis_client()- if r is None:- return []- raw = r.lrange(_replay_key(dataset_id), 0, -1)- except Exception: # noqa: BLE001- logger.warning("dataset event replay failed for %s", dataset_id, exc_info=True)- return []- out: list[dict[str, Any]] = []- for item in raw:- try:- out.append(json.loads(item))- except ValueError:- continue- return out--@lru_cache(maxsize=4)def _signal_client(pid, url):# Runs on the request thread after commit, so an unreachable Redis must not stall it.diff --git a/overbae/services/datasets/imports.py b/overbae/services/datasets/imports.pyindex b8bfdd9b..8960eaf9 100644--- a/overbae/services/datasets/imports.py+++ b/overbae/services/datasets/imports.py@@ -237,12 +237,18 @@ def _block(run, code, error):Dataset.objects.filter(pk__in=_target_ids(run), state=Dataset.State.LANDING).update(state=Dataset.State.ERROR, error=run.error, updated_at=timezone.now())+ # Lazy: the assistant reaches the MCP catalog, which imports this module.+ from overbae.services.assistant.turn import wake_dataset+for dataset_id in _target_ids(run):transaction.on_commit(lambda dataset_id=dataset_id: events.publish(dataset_id, {"dataset_id": str(dataset_id), "type": "land_failed", "error": error}))+ # A message sent with the upload waited for this source; it is read once the+ # source's error is committed, or a turn could still see it landing.+ transaction.on_commit(lambda dataset_id=dataset_id: wake_dataset(dataset_id), robust=True)@transaction.atomic@@ -756,6 +762,16 @@ def execute(task_id, inputs):return {"status": "failed", "error": str(exc)}finally:beat.set()- for target_id in _target_ids(run):- operations.finished(target_id, task_id=str(run.pk))- shutil.rmtree(stage, ignore_errors=True)+ # Lazy: the assistant reaches the MCP catalog, which imports this module.+ from overbae.services.assistant.turn import wake_dataset++ try:+ for target_id in _target_ids(run):+ operations.finished(target_id, task_id=str(run.pk))+ # A message sent with the upload waited for its source, landed or failed.+ try:+ wake_dataset(target_id)+ except Exception: # noqa: BLE001 - the next message wakes the conversation+ logger.exception("assistant not woken for dataset %s", target_id)+ finally:+ shutil.rmtree(stage, ignore_errors=True)diff --git a/overbae/services/datasets/lifecycle.py b/overbae/services/datasets/lifecycle.pyindex 9366670d..6111ebb0 100644--- a/overbae/services/datasets/lifecycle.py+++ b/overbae/services/datasets/lifecycle.py@@ -8,7 +8,7 @@ from typing import Anyfrom django.db import transactionfrom django.utils import timezone-from overbae.models import Capability, Cell, Dataset+from overbae.models import AssistantThread, Capability, Cell, Datasetfrom overbae.services.datasets import measure, paths@@ -154,5 +154,16 @@ def delete_dataset(dataset: Dataset) -> None:if reason:raise DatasetError(reason, code="dataset_referenced")directory = paths.dataset_dir(dataset.id)+ project = str(dataset.project_id)+ copies = [f"{cell}.parquet" for cell in dataset.cells.values_list("pk", flat=True)]+ conversations = [+ pk.hex+ for pk in AssistantThread.objects.filter(dataset=dataset).values_list("pk", flat=True)+ ]dataset.delete()shutil.rmtree(directory, ignore_errors=True)+ # Lazy: the tasks package imports this module.+ from overbae.tasks.assistant import forget_workspace_data++ # The assistant's workspace holds copies of the dataset's versions.+ transaction.on_commit(lambda: forget_workspace_data.delay(project, copies, conversations))diff --git a/overbae/services/datasets/list_activity.py b/overbae/services/datasets/list_activity.pyindex bc0d970b..b35a9b55 100644--- a/overbae/services/datasets/list_activity.py+++ b/overbae/services/datasets/list_activity.py@@ -1,4 +1,4 @@-from overbae.models import Activity, DatasetPipelineRun, DatasetPreparation, DatasetTransfer+from overbae.models import Activity, AssistantThread, DatasetPipelineRun, DatasetTransferdef current_work(datasets):@@ -37,15 +37,19 @@ def current_work(datasets):"total": sum(member["size"] for member in members),"unit": "bytes",}- for preparation in DatasetPreparation.objects.filter(- dataset_id__in=ids, state__in=["preparing", "paused"]+ # A conversation whose turn runs is preparing its dataset, even between jobs; a turn+ # lost with its worker is not.+ for dataset_id in (+ AssistantThread.objects.moving()+ .filter(dataset_id__in=ids)+ .values_list("dataset_id", flat=True)):work.setdefault(- str(preparation.dataset_id),+ str(dataset_id),{- "label": "Preparing" if preparation.state == "preparing" else "Preparation paused",- "status": preparation.state,- "actor_kind": preparation.actor_kind,+ "label": "Preparing",+ "status": "running",+ "actor_kind": "overmind","completed": None,"total": None,"unit": "",diff --git a/overbae/services/datasets/pipeline_runner.py b/overbae/services/datasets/pipeline_runner.pyindex 65f7c0e8..5aee6e41 100644--- a/overbae/services/datasets/pipeline_runner.py+++ b/overbae/services/datasets/pipeline_runner.py@@ -100,6 +100,20 @@ def heartbeat():return status+def _refusal(response) -> str:+ """Why the sandbox took no run, in its own words when it gave any: a runtime that a+ package no longer matches is repaired by saving the package again."""+ try:+ reason = json.loads(response.read()).get("error")+ except (ValueError, AttributeError, httpx.HTTPError):+ reason = None+ if not reason and response.status_code == 503:+ reason = "The sandbox has no memory free now."+ return (+ f"{reason or f'The sandbox returned HTTP {response.status_code}.'} No script was replayed."+ )++def execute_script(run, index, source, directory, step, files, progress):if not settings.SANDBOX_URL or not settings.SANDBOX_TOKEN:raise RuntimeUnavailableError("The isolated sandbox is not configured.")@@ -188,9 +202,7 @@ def execute_script(run, index, source, directory, step, files, progress):output.open("wb") as stream,):if response.status_code != 200:- raise RuntimeUnavailableError(- f"The sandbox returned HTTP {response.status_code}. No script was replayed."- )+ raise RuntimeUnavailableError(_refusal(response))for chunk in response.iter_bytes():pending = reader.feed(chunk)while reader.header is not None and "progress" in reader.header:diff --git a/overbae/services/datasets/preparation_workflow.py b/overbae/services/datasets/preparation_workflow.pydeleted file mode 100644index f6a0634d..00000000--- a/overbae/services/datasets/preparation_workflow.py+++ /dev/null@@ -1,182 +0,0 @@-import logging-from datetime import timedelta--from django.db import transaction-from django.utils import timezone--from overbae.models import (- Activity,- Cell,- Dataset,- DatasetPipelineRun,- DatasetPreparation,- DatasetTransfer,- Project,-)-from overbae.services import activity-from overbae.services.datasets.lifecycle import DatasetError--IDLE_LIMIT = timedelta(hours=24)-logger = logging.getLogger(__name__)---def describe(preparation):- return {- "id": str(preparation.pk),- "dataset_id": str(preparation.dataset_id),- "state": preparation.state,- "actor_kind": preparation.actor_kind,- "actor_name": preparation.actor_name,- "outputs": preparation.outputs,- "updated_at": preparation.updated_at,- }---def start(dataset, context, request_key):- # Serialize request keys across datasets and starts/finishes on this dataset.- Project.objects.select_for_update().get(pk=dataset.project_id)- dataset = Dataset.objects.select_for_update().get(pk=dataset.pk)- existing = DatasetPreparation.objects.filter(- project_id=dataset.project_id, request_key=request_key- ).first()- if existing:- if existing.dataset_id != dataset.pk:- raise DatasetError(- "This request key belongs to another dataset.", code="request_key_conflict"- )- return existing- if DatasetPreparation.objects.filter(- dataset=dataset, state__in=["preparing", "paused"]- ).exists():- raise DatasetError(- "This dataset already has an open preparation. Inspect and resume that preparation.",- code="preparation_active",- )- kind, name = activity.connection_actor(context)- preparation = DatasetPreparation.objects.create(- project_id=dataset.project_id,- dataset=dataset,- request_key=request_key,- actor_kind=kind,- actor_name=name,- created_by=context.user,- )- activity.record(- key=f"preparation:{preparation.pk}",- project_id=dataset.project_id,- user_id=context.user.pk,- kind="dataset_preparation",- action="Is preparing",- actor_kind=kind,- actor_name=name,- task_kind="dataset_preparation",- task_id=preparation.pk,- status="running",- assets=[activity.asset("dataset", dataset.pk, dataset.name)],- )- return preparation---def update(dataset, preparation_id, state, outputs):- dataset = Dataset.objects.select_for_update().get(pk=dataset.pk)- preparation = (- DatasetPreparation.objects.select_for_update()- .filter(pk=preparation_id, dataset=dataset)- .first()- )- if not preparation:- raise DatasetError("Preparation not found in this dataset.", code="preparation_not_found")- outputs = sorted(str(value) for value in outputs)- if preparation.state in {"completed", "cancelled"}:- if preparation.state == state and preparation.outputs == outputs:- return preparation- raise DatasetError(- "This preparation has ended. Start a new preparation for further work.",- code="preparation_ended",- )- if state == "completed":- if (- not outputs- or len(outputs) != len(set(outputs))- or Cell.objects.filter(pk__in=outputs, dataset=dataset, state="ok")- .exclude(fingerprint="")- .count()- != len(outputs)- ):- raise DatasetError(- "Completion requires published output cells from this dataset.",- code="preparation_outputs",- )- if (- DatasetPipelineRun.objects.filter(- dataset=dataset, state__in=["queued", "running"]- ).exists()- or DatasetTransfer.objects.filter(- specification__dataset=str(dataset.pk), state="uploading"- ).exists()- or dataset.state in {"landing", "running"}- ):- raise DatasetError(- "Wait for dataset jobs and uploads to finish before completing preparation.",- code="preparation_busy",- )- elif outputs:- raise DatasetError(- "Only completed preparations accept output cells.", code="preparation_outputs"- )- preparation.state = state- preparation.outputs = outputs- preparation.save(update_fields=["state", "outputs", "updated_at"])- status, action = {- "preparing": ("running", "Is preparing"),- "paused": ("paused", "Paused preparation of"),- "completed": ("completed", "Prepared"),- "cancelled": ("cancelled", "Stopped preparation of"),- }[state]- Activity.objects.filter(key=f"preparation:{preparation.pk}").update(- status=status, action=action, updated_at=timezone.now()- )- activity.changed(dataset.project_id)- return preparation---def end(dataset):- preparation = DatasetPreparation.objects.filter(- dataset=dataset, state__in=["preparing", "paused"]- ).first()- if not preparation:- raise DatasetError("This dataset has no open preparation.", code="preparation_not_found")- return update(dataset, preparation.pk, "cancelled", [])---def _idle(preparation_ids, cutoff):- active = Activity.objects.filter(- key__in=[f"preparation:{pk}" for pk in preparation_ids], updated_at__gte=cutoff- ).values_list("task_id", flat=True)- return DatasetPreparation.objects.filter(- pk__in=preparation_ids, state__in=["preparing", "paused"], updated_at__lt=cutoff- ).exclude(pk__in=[value for value in active if value])---def expire():- cutoff = timezone.now() - IDLE_LIMIT- candidates = list(- DatasetPreparation.objects.filter(- state__in=["preparing", "paused"], updated_at__lt=cutoff- ).values_list("pk", "dataset_id")- )- expired = 0- for preparation_id, dataset_id in candidates:- try:- with transaction.atomic():- # Same lock order as start() and update(); an agent update since the scan wins.- dataset = Dataset.objects.select_for_update().filter(pk=dataset_id).first()- if dataset is None or not _idle([preparation_id], cutoff).exists():- continue- update(dataset, preparation_id, "cancelled", [])- expired += 1- except Exception:- logger.exception("expiring dataset preparation %s failed", preparation_id)- return expireddiff --git a/overbae/services/datasets/store.py b/overbae/services/datasets/store.pyindex aed39e24..fbce72e7 100644--- a/overbae/services/datasets/store.py+++ b/overbae/services/datasets/store.py@@ -490,12 +490,10 @@ def page(kinds = {spec["name"]: spec["type"] for spec in manifest}names = set(kinds)where, params = _filter_sql(filters or [], names)- if search:- columns = " || ' ' || ".join(- f"COALESCE(CAST({quote_identifier(n)} AS VARCHAR), '')" for n in kinds- )- where = f"({where}) AND ({columns}) ILIKE ?"- params.append(f"%{search}%")+ if search and kinds:+ anywhere = " OR ".join(f"CAST({quote_identifier(n)} AS VARCHAR) ILIKE ?" for n in kinds)+ where = f"({where}) AND ({anywhere})"+ params.extend([f"%{search}%"] * len(kinds))order = '"_index" ASC'if sort:if sort not in names and sort != "_index":@@ -507,12 +505,23 @@ def page(order = f"{quote_identifier(sort)} {way} NULLS LAST"else:order = f"CAST({quote_identifier(sort)} AS VARCHAR) {way} NULLS LAST"- con = connect(t=path)+ con = connect()try:- base = 'SELECT (row_number() OVER ()) - 1 AS "_index", * FROM "t"'- total = con.execute(f"SELECT count(*) FROM ({base}) WHERE {where}", params).fetchone()[0]+ # The file's own row number keeps the scan parallel; a window function serialises it.+ # DuckDB refuses that number beside a column of the same name, which a dataset may have.+ literal = str(path).replace("'", "''")+ if "file_row_number" in {name.lower() for name in kinds}:+ numbered = (+ f"SELECT (row_number() OVER ()) - 1 AS \"_index\", * FROM read_parquet('{literal}')"+ )+ else:+ numbered = (+ 'SELECT file_row_number AS "_index", * EXCLUDE (file_row_number) '+ f"FROM read_parquet('{literal}', file_row_number = true)"+ )+ con.execute(f'CREATE VIEW "t" AS {numbered}')cur = con.execute(- f"SELECT * FROM ({base}) WHERE {where} ORDER BY {order} LIMIT ? OFFSET ?",+ f'SELECT * FROM "t" WHERE {where} ORDER BY {order} LIMIT ? OFFSET ?',[*params, int(limit), int(offset)],)rows = [@@ -522,6 +531,10 @@ def page(}for row in _records(cur)]+ if len(rows) < limit and (rows or not offset):+ total = offset + len(rows)+ else:+ total = con.execute(f'SELECT count(*) FROM "t" WHERE {where}', params).fetchone()[0]finally:con.close()return {"rows": rows, "total": int(total), "columns": manifest}diff --git a/overbae/services/datasets/workbench.py b/overbae/services/datasets/workbench.pyindex c7215ca1..66584c95 100644--- a/overbae/services/datasets/workbench.py+++ b/overbae/services/datasets/workbench.py@@ -305,6 +305,7 @@ def submit(from overbae.tasks.datasets import execute_pipelinetransaction.on_commit(lambda: _enqueue(run, execute_pipeline))+ transaction.on_commit(lambda: events.publish(locked.pk, {"type": "dataset_changed"}))run.refresh_from_db()return run@@ -344,6 +345,9 @@ def execute(run_id, *, script_executor=None):run = DatasetPipelineRun.objects.select_related("dataset__capability", "pipeline__package", "source", "artifact", "created_by", "binding").get(pk=run_id)+ # Open pages read the run's start from the stream, as its queueing and its end.+ dataset_id = run.dataset_id+ transaction.on_commit(lambda: events.publish(dataset_id, {"type": "dataset_changed"}))started = checkpoint = time.monotonic()started_at = timezone.now().isoformat()queue_seconds = round(max(0, (timezone.now() - run.created_at).total_seconds()), 3)diff --git a/overbae/services/mcp/__init__.py b/overbae/services/mcp/__init__.pyindex 5dde3afe..463788da 100644--- a/overbae/services/mcp/__init__.py+++ b/overbae/services/mcp/__init__.py@@ -1,3 +1,3 @@"""MCP protocol and catalog services."""-CONTRACT_VERSION = "7.24.0"+CONTRACT_VERSION = "8.0.0"diff --git a/overbae/services/mcp/context.py b/overbae/services/mcp/context.pyindex ec18092d..100a0072 100644--- a/overbae/services/mcp/context.py+++ b/overbae/services/mcp/context.py@@ -11,11 +11,26 @@ from uuid import UUIDfrom overbae.models import APIToken, MCPOAuthToken, Project, Userfrom overbae.services.mcp.errors import MCPError+ASSISTANT = "overmind assistant"+++@dataclass(frozen=True)+class PlatformCredential:+ """Stands where a token does when the platform's own assistant calls a tool for a user.+ The assistant checks that user's project membership before each call."""++ project_id: UUID+ pk: str = "assistant"++ @property+ def scope(self) -> dict:+ return {"scope": "project", "permission": ["read", "write"]}+@dataclass(frozen=True)class MCPContext:user: User- token: APIToken | MCPOAuthToken+ token: APIToken | MCPOAuthToken | PlatformCredentialproject: Project | Noneclient_ip: str | None = Noneinference_base_url: str = ""diff --git a/overbae/services/mcp/contracts/workbench.py b/overbae/services/mcp/contracts/workbench.pyindex 9a5d8eed..fec7e49a 100644--- a/overbae/services/mcp/contracts/workbench.py+++ b/overbae/services/mcp/contracts/workbench.py@@ -1,4 +1,3 @@-from datetime import datetimefrom typing import Any, Literalfrom uuid import UUID@@ -33,26 +32,6 @@ class DatasetInput(MCPModel):dataset: str = Field(min_length=1, max_length=255)-class StartPreparationInput(DatasetInput):- request_key: str = Field(min_length=1, max_length=128)---class UpdatePreparationInput(DatasetInput):- preparation_id: UUID- state: Literal["preparing", "paused", "completed", "cancelled"]- outputs: list[UUID] = Field(default_factory=list, max_length=100)---class PreparationWorkflow(MCPModel):- id: str- dataset_id: str- state: Literal["preparing", "paused", "completed", "cancelled"]- actor_kind: str- actor_name: str- outputs: list[str]- updated_at: datetime--class InspectInput(MCPModel):dataset: str | None = Field(default=None, max_length=255)pipeline: UUID | None = None@@ -213,7 +192,6 @@ class Output(MCPModel):next_actions: list[NextAction] = Field(default_factory=list, max_length=8)dataset: str | None = Nonepreparation: dict[str, Any] | None = None- preparation_workflow: PreparationWorkflow | None = Nonecurrent_pipeline: str | None = Nonepipeline: Pipeline | None = Nonerun: Run | None = Nonediff --git a/overbae/services/mcp/prompts.py b/overbae/services/mcp/prompts.pyindex a0f3797f..d38210b0 100644--- a/overbae/services/mcp/prompts.py+++ b/overbae/services/mcp/prompts.py@@ -47,7 +47,6 @@ PROMPTS = (),),template=(- "Before dataset preparation work, inspect_dataset_workbench and resume its preparation_workflow or call start_dataset_preparation with a stable request_key. Keep it preparing across local authoring, previews and publications. Use update_dataset_preparation with state=completed and verified published output cell UUIDs only when all requested agent work is finished; use paused when stopping temporarily or cancelled when abandoning. Individual job completion does not finish preparation. ""Transform dataset {dataset} for this request: {task}. Optional starting revision: {pipeline}. ""Discover list_projects and pass project_id explicitly. Read overmind://interface/current and ""overmind://dataset-upload. Inspect the exact source cell, fingerprint, columns and values with "diff --git a/overbae/services/mcp/resources.py b/overbae/services/mcp/resources.pyindex 0864f23d..40118a66 100644--- a/overbae/services/mcp/resources.py+++ b/overbae/services/mcp/resources.py@@ -200,6 +200,47 @@ def _connector_setup_resource(uri: str) -> dict:}+def pipeline_package_guide() -> dict:+ """How to author a retained package: the same text for coding agents and the assistant."""+ return {+ "max_bytes": pipeline_packages.MAX_BYTES,+ "max_files": pipeline_packages.MAX_FILES,+ "manifest": {+ "version": 1,+ "runtime": "sha256:<approved immutable image ID>",+ "parameters": {},+ "steps": [+ {+ "id": "transform",+ "input": "source",+ "name": "Transform",+ "entrypoint": "transform.py",+ "input_schema": {"text": "string", "source_row": "integer"},+ "output_schema": {"text": "string", "source_row": "integer"},+ "checks": {"preserve_rows": True},+ }+ ],+ },+ "column_types": sorted(pipeline_packages.TYPES),+ "analytics": "Published cells carry fingerprint-bound server analytics from a full-row scan. inspect_dataset and REST expose the same counts, baselines, warnings and not_checked risks; completed pipeline get_job includes final-output analytics. Read the exact selected consumer/partition cell before training handoff. Historical or stale reports are unmeasured: use explore_dataset to refresh without changing rows. Class imbalance and rare-class thresholds are advisory; soft targets are not converted to labels and a majority baseline is not model performance.",+ "consumer": {+ "values": ["decision_train", "decision_eval", "chat_train", "model_eval"],+ "scope": "Declare on the final step. Validates the complete output, including nested decision targets, in both preview and publish. Technical compatibility does not establish target meaning.",+ },+ "batch_rows": "Optional per-step integer 1–100000. The script runs as a separate bounded sandbox run for each consecutive row batch; outputs concatenate in source order and all steps publish atomically. Declare only for independent row transformations, never global sorting, grouping, splitting or deduplication. Choose a batch whose expanded JSONL input and output each fit half the declared scratch_mb. Each batch gets the package time limit; progress reports completed batches and rows. Global row checks run after concatenation.",+ "corrections": "Edit the same recipe family and run the corrected package from its original source cell. Successful publication replaces the displayed process; no repair-history view or disconnected prepared-v2 sources. Pinned training and evaluation inputs remain reproducible internally. Recipe ownership is project-scoped, not tied to the dataset or capability; reuse only when source and task semantics are compatible.",+ "source_boundary": "Upload original source bytes once with pinned upstream revision metadata. Register retained transformation code before full-data processing. Locally prepared derivatives must use lineage-bound external import, never masquerade as an independent source upload.",+ "script_arguments": ["input.jsonl", "output.jsonl", "parameters.json"],+ "inspectability": "Keep each step's meaningful logic in its entrypoint; reserve helpers for reusable functions. Cell transformation metadata binds exact run/revision/package/entrypoint and distinguishes platform execution from external imports. Inspect every retained file via the package resource (file, offset, limit in characters; next_offset until exhausted). Source reads verify the package and file checksums without executing code.",+ "starter_script": "import json, sys\n\nwith open(sys.argv[1], encoding='utf-8') as source, open(sys.argv[2], 'w', encoding='utf-8') as output:\n for line in source:\n row = json.loads(line)\n # Author the requested transformation here; retain source_row.\n output.write(json.dumps(row, ensure_ascii=False) + '\\n')\n",+ "checks": "preserve_rows and lineage apply in preview and publish. min_rows/max_rows are full-population assertions: preview records them as deferred, publication enforces them. Do not hardcode the first source's size in a reusable recipe unless that size is a real requirement.",+ "lineage": "Retain source_row or declare all contributing _overmind_parent_rows. Preserve duplicate observations and unknown meaning. Use input=source/earlier step or inputs=[distinct earlier IDs] to concatenate disjoint branches in declared order. Overlapping source_row identities fail rather than being deduplicated. Omitted input means the previous step.",+ "flow": "Declare stable step IDs. Script conditions cite expression and entrypoint line; scripts implement selection. Every step executes, including empty outputs. Flow exposes nodes, edges, terminal_steps and unconsumed_steps. Converge training branches into the last step's trainable output, retaining unresolved review metadata. A retained script with inputs consumes combined branches. Cycles, overlapping identities and job-level conditional skipping are unsupported.",+ "runtime": "Inspect inspect_dataset_workbench.runner for approved images and worker freshness. Dependencies are installed in the pinned operator-approved runtime; network and package installation are unavailable during execution. No credentials or host mounts enter script containers.",+ "next": "Retain with save_dataset_pipeline(dataset=..., package=...), validate, preview and inspect; publish explicitly. Reuse revisions on compatible sources, or save a derived_from variant. Save bindings paused and enable explicitly.",+ }++def _dataset_upload_resource(uri: str) -> dict:from overbae.services.datasets import documents, files@@ -232,41 +273,7 @@ def _dataset_upload_resource(uri: str) -> dict:"required_for_transformations": True,"upload": "overmind dataset pipeline-upload DIRECTORY_OR_ZIP --project-id PROJECT --json","download": "overmind dataset pipeline-download PACKAGE --project-id PROJECT --output pipeline.zip --json",- "max_bytes": pipeline_packages.MAX_BYTES,- "max_files": pipeline_packages.MAX_FILES,- "manifest": {- "version": 1,- "runtime": "sha256:<approved immutable image ID>",- "parameters": {},- "steps": [- {- "id": "transform",- "input": "source",- "name": "Transform",- "entrypoint": "transform.py",- "input_schema": {"text": "string", "source_row": "integer"},- "output_schema": {"text": "string", "source_row": "integer"},- "checks": {"preserve_rows": True},- }- ],- },- "column_types": sorted(pipeline_packages.TYPES),- "analytics": "Published cells carry fingerprint-bound server analytics from a full-row scan. inspect_dataset and REST expose the same counts, baselines, warnings and not_checked risks; completed pipeline get_job includes final-output analytics. Read the exact selected consumer/partition cell before training handoff. Historical or stale reports are unmeasured: use explore_dataset to refresh without changing rows. Class imbalance and rare-class thresholds are advisory; soft targets are not converted to labels and a majority baseline is not model performance.",- "consumer": {- "values": ["decision_train", "decision_eval", "chat_train", "model_eval"],- "scope": "Declare on the final step. Validates the complete output, including nested decision targets, in both preview and publish. Technical compatibility does not establish target meaning.",- },- "batch_rows": "Optional per-step integer 1–100000. The script runs as a separate bounded sandbox run for each consecutive row batch; outputs concatenate in source order and all steps publish atomically. Declare only for independent row transformations, never global sorting, grouping, splitting or deduplication. Choose a batch whose expanded JSONL input and output each fit half the declared scratch_mb. Each batch gets the package time limit; progress reports completed batches and rows. Global row checks run after concatenation.",- "corrections": "Edit the same recipe family and run the corrected package from its original source cell. Successful publication replaces the displayed process; no repair-history view or disconnected prepared-v2 sources. Pinned training and evaluation inputs remain reproducible internally. Recipe ownership is project-scoped, not tied to the dataset or capability; reuse only when source and task semantics are compatible.",- "source_boundary": "Upload original source bytes once with pinned upstream revision metadata. Register retained transformation code before full-data processing. Locally prepared derivatives must use lineage-bound external import, never masquerade as an independent source upload.",- "script_arguments": ["input.jsonl", "output.jsonl", "parameters.json"],- "inspectability": "Keep each step's meaningful logic in its entrypoint; reserve helpers for reusable functions. Cell transformation metadata binds exact run/revision/package/entrypoint and distinguishes platform execution from external imports. Inspect every retained file via the package resource (file, offset, limit in characters; next_offset until exhausted). Source reads verify the package and file checksums without executing code.",- "starter_script": "import json, sys\n\nwith open(sys.argv[1], encoding='utf-8') as source, open(sys.argv[2], 'w', encoding='utf-8') as output:\n for line in source:\n row = json.loads(line)\n # Author the requested transformation here; retain source_row.\n output.write(json.dumps(row, ensure_ascii=False) + '\\n')\n",- "checks": "preserve_rows and lineage apply in preview and publish. min_rows/max_rows are full-population assertions: preview records them as deferred, publication enforces them. Do not hardcode the first source's size in a reusable recipe unless that size is a real requirement.",- "lineage": "Retain source_row or declare all contributing _overmind_parent_rows. Preserve duplicate observations and unknown meaning. Use input=source/earlier step or inputs=[distinct earlier IDs] to concatenate disjoint branches in declared order. Overlapping source_row identities fail rather than being deduplicated. Omitted input means the previous step.",- "flow": "Declare stable step IDs. Script conditions cite expression and entrypoint line; scripts implement selection. Every step executes, including empty outputs. Flow exposes nodes, edges, terminal_steps and unconsumed_steps. Converge training branches into the last step's trainable output, retaining unresolved review metadata. A retained script with inputs consumes combined branches. Cycles, overlapping identities and job-level conditional skipping are unsupported.",- "runtime": "Inspect inspect_dataset_workbench.runner for approved images and worker freshness. Dependencies are installed in the pinned operator-approved runtime; network and package installation are unavailable during execution. No credentials or host mounts enter script containers.",- "next": "Retain with save_dataset_pipeline(dataset=..., package=...), validate, preview and inspect; publish explicitly. Reuse revisions on compatible sources, or save a derived_from variant. Save bindings paused and enable explicitly.",+ **pipeline_package_guide(),},"ingestion_verification": "Before upload, inspect local record boundaries, fields, value types and expected row count. For JSON wrappers, explicitly select the intended top-level record array; clarify unresolved ambiguity instead of treating the whole wrapper as one row. Preserve original bytes. After landing, compare source count and representative nested values using inspect_dataset and query_dataset. Resolve mismatches before transformation or consumer handoff. State verification coverage: a sample is not a full-file audit, and successful transfer is not proof of correct ingestion.","readiness": "Run overmind connection check --project-id PROJECT --json from the actual coding environment. It verifies MCP, project access, transfer protocol and read/write access with the same resolved connection. A connected MCP client alone does not establish local transfer readiness.",diff --git a/overbae/services/mcp/server.py b/overbae/services/mcp/server.pyindex 7d624eb6..c0d8c7b8 100644--- a/overbae/services/mcp/server.py+++ b/overbae/services/mcp/server.py@@ -73,12 +73,11 @@ mcp_server = Server("before an authorized evaluation or training launch. Use get_credit_balance for balances and ""budget monitoring; read credit_reporting in overmind://interface/current for limits. ""The calling coding agent owns dataset interpretation, transformation authoring and semantic work. "- "The platform has no Workshop planning agent. Retain scripts automatically with save_dataset_pipeline(dataset=..., package=...); never ask users whether to keep them. Retain scoped uncertainties and their evidence in the script and output; successful formatting and execution do not establish suitability. Discover reusable project revisions with inspect_dataset_workbench; prefer reuse or an attributed derived_from variant. Upload original source bytes once, pin upstream dataset revisions, and retain transformation code before full-data processing. Never upload locally transformed derivatives as unrelated source datasets. New transformations require a retained Python package; package-free historical revisions are read-only. Upload scripts using overmind dataset pipeline-upload, register with save_dataset_pipeline, validate_dataset_pipeline, preview then run_dataset_pipeline. Each successful run replaces the displayed preparation with its selected end-to-end process. Corrections update the same recipe family and rerun from its original source; do not append repair cells or create prepared-v2 datasets. Pinned consumer inputs remain immutable internally. Enable saved source bindings explicitly for repeated snapshot rebuilds. import_dataset_version is for genuine external results, not a substitute for retaining transformation code. "+ "The Console has its own assistant that uses these same tools; it never acts for an MCP connection. Retain scripts automatically with save_dataset_pipeline(dataset=..., package=...); never ask users whether to keep them. Retain scoped uncertainties and their evidence in the script and output; successful formatting and execution do not establish suitability. Discover reusable project revisions with inspect_dataset_workbench; prefer reuse or an attributed derived_from variant. Upload original source bytes once, pin upstream dataset revisions, and retain transformation code before full-data processing. Never upload locally transformed derivatives as unrelated source datasets. New transformations require a retained Python package; package-free historical revisions are read-only. Upload scripts using overmind dataset pipeline-upload, register with save_dataset_pipeline, validate_dataset_pipeline, preview then run_dataset_pipeline. Each successful run replaces the displayed preparation with its selected end-to-end process. Corrections update the same recipe family and rerun from its original source; do not append repair cells or create prepared-v2 datasets. Pinned consumer inputs remain immutable internally. Enable saved source bindings explicitly for repeated snapshot rebuilds. import_dataset_version is for genuine external results, not a substitute for retaining transformation code. ""When asked to prepare data in Overmind, local files alone are not completion: publish and inspect the requested dataset or report an explicit blocker. Inspect the named capability's contract and examples before choosing target semantics; link it explicitly. Preserve unknown meaning rather than inventing task labels. Separate meaningful preparation stages and review branches from final formatting. Use the returned upload argv and identifiers verbatim, replacing only documented placeholders. ""Declare the final step consumer (decision_train, decision_eval, chat_train or model_eval) so previews validate nested targets. Use batch_rows only for row-independent steps; sorting, grouping and deduplication require the full population. Preserve evidenced target semantics and structured provenance; never remove them to bypass a validator. Preview defers absolute min_rows/max_rows bounds to publication; lineage and preserve_rows checks remain enforced. Inspect deferred checks before publishing. Follow poll_after_seconds; queued work alone is not a failure or reason to resubmit. Report format compatibility separately from task suitability, which remains unmeasured without attributable evidence. ""Author explicit step IDs and input dependencies. Converge intended branches with inputs=[earlier IDs]; disjoint rows concatenate in declared order, overlapping source_row identities fail. The last step is the output: inspect flow.unconsumed_steps before publication. Training preparation should end in trainable examples with review metadata, not disconnected inspection tables; never invent targets or treat flags as resolved. Script conditions cite their entrypoint line and describe code, not independently verified semantics. Receipts record actual parent cells, counts and fingerprints. Pin sources and use stable request keys. ""Use author-dataset-transformation for conditional authoring, retrieval and adaptation. inspect_dataset_workbench(pipeline=revision ID) retrieves an exact recipe and its family history. Only retained packages execute in the approved isolated runtime; other code and semantic/provider work stay in the native environment. Technical format checks do not prove semantic quality or exhaustive/exclusive branches. "- "Before dataset preparation work, inspect_dataset_workbench and resume its preparation_workflow or call start_dataset_preparation with a stable request_key. Keep it preparing across local authoring, previews and publications. Use update_dataset_preparation with state=completed and verified published output cell UUIDs only when all requested agent work is finished; use paused when stopping temporarily or cancelled when abandoning. Individual job completion does not finish preparation. An open preparation ends after 24 hours without activity or when the user ends it in the Console. ""Local scanning, file transfers, credentials and repository execution use the CLI ""handoffs in the relevant resources/prompts. The server does not edit local files. ""When a user wants a visual view, open the ordinary Console for this project; "diff --git a/overbae/services/mcp/tools_workbench.py b/overbae/services/mcp/tools_workbench.pyindex 78fa86e6..3371e7a2 100644--- a/overbae/services/mcp/tools_workbench.py+++ b/overbae/services/mcp/tools_workbench.py@@ -1,7 +1,7 @@from asgiref.sync import sync_to_async-from overbae.models import Capability, DatasetPreparation-from overbae.services.datasets import lifecycle, pipeline_bindings, preparation_workflow, workbench+from overbae.models import Capability+from overbae.services.datasets import lifecycle, pipeline_bindings, workbenchfrom overbae.services.mcp.contracts.common import ResourceLinkContractfrom overbae.services.mcp.contracts.workbench import (BindingInput,@@ -13,9 +13,7 @@ from overbae.services.mcp.contracts.workbench import (RunInput,SaveBindingInput,SaveInput,- StartPreparationInput,UpdateInput,- UpdatePreparationInput,ValidateInput,compact_run,)@@ -30,22 +28,6 @@ def invoke(name, payload, context):try:if name == "inspect_dataset_workbench":result = workbench.describe(dataset, project=context.project, **args)- latest = (- DatasetPreparation.objects.filter(dataset=dataset).order_by("-created_at").first()- if dataset- else None- )- result["preparation_workflow"] = (- preparation_workflow.describe(latest) if latest else None- )- elif name == "start_dataset_preparation":- result["preparation_workflow"] = preparation_workflow.describe(- preparation_workflow.start(dataset, context, **args)- )- elif name == "update_dataset_preparation":- result["preparation_workflow"] = preparation_workflow.describe(- preparation_workflow.update(dataset, outputs=args.pop("outputs", []), **args)- )elif name == "save_dataset_pipeline":result["pipeline"] = workbench.pipeline_record(workbench.save_pipeline(context.project, context.user, dataset=dataset, **args)@@ -180,23 +162,11 @@ def register_workbench_tools(catalog):from overbae.services.mcp.catalog import ToolDefinitiondefinitions = [- (- "start_dataset_preparation",- StartPreparationInput,- False,- "Begin agent work; retry request_key unchanged. Keeps Preparing between jobs. Inspect to resume; explicitly finish.",- ),- (- "update_dataset_preparation",- UpdatePreparationInput,- False,- "Overall state: preparing resumes, paused waits, cancelled abandons. Complete after all work/jobs/uploads finish with published output UUIDs. Terminal states immutable.",- ),("inspect_dataset_workbench",InspectInput,True,- "Read recipes/runs/bindings/preparation_workflow. pipeline selects revision/family history; dataset filters runs/bindings. Code in resources; no execution.",+ "Read recipes/runs/bindings. pipeline selects revision/family history; dataset filters runs/bindings. Code in resources; no execution.",),("save_dataset_pipeline",diff --git a/overbae/services/workspaces/__init__.py b/overbae/services/workspaces/__init__.pynew file mode 100644index 00000000..ebbed20c--- /dev/null+++ b/overbae/services/workspaces/__init__.py@@ -0,0 +1,70 @@+"""Where the assistant runs Python: one workspace for each project, one kernel for each+conversation in it. A provider is one module in this package and one entry in+``PROVIDERS``; nothing outside this package names a provider.++Every provider gives a kernel the same layout: its working directory is its own and+outlives it, and ``data/<name>`` holds the project's versions, read-only. A kernel is+disposable: a provider may end it at any time, and the next cell starts a new one.+"""++from dataclasses import dataclass+from typing import BinaryIO, Protocol++from django.conf import settings+from django.utils.module_loading import import_string++DEFAULT_SECONDS = 120+MAX_SECONDS = 600+# A file a kernel wrote, read back for a chart, a table or an image.+MAX_FILE_BYTES = 64 * 1024**2+++@dataclass(frozen=True)+class Execution:+ ok: bool+ output: str+ error: str+ truncated: bool+ seconds: float+ # Why the conversation's variables are gone, when this cell started a new kernel+ # after an earlier one ended.+ restarted: str | None = None+++class WorkspaceUnavailableError(Exception):+ """The provider cannot serve the call now. Nothing ran."""+++class Provider(Protocol):+ def put_data(self, project: str, name: str, source: BinaryIO) -> None:+ """Copy a version into the project's ``data``, once: a name already there is kept."""++ def has_data(self, project: str, name: str) -> bool: ...++ def run(self, project: str, conversation: str, code: str, timeout: int) -> Execution:+ """Run ``code`` in the conversation's kernel, starting one when it has none. A kernel+ that ends during the cell is reported in the result, not raised."""++ def read_file(self, project: str, conversation: str, name: str) -> bytes:+ """A file the kernel wrote in its working directory. A missing, oversized or+ irregular file raises ``FileNotFoundError``."""++ def stop(self, project: str, conversation: str) -> None:+ """End the conversation's kernel, also during a cell. Idempotent."""++ def forget(self, project: str, data: list[str], conversations: list[str]) -> None:+ """Delete these versions and conversations from the workspace: their dataset was+ deleted. Idempotent."""++ def remove(self, project: str) -> None:+ """Delete the whole workspace: its project was deleted. Idempotent."""+++PROVIDERS = {+ "native": "overbae.services.workspaces.native.NativeProvider",+ "daytona": "overbae.services.workspaces.daytona.DaytonaProvider",+}+++def provider() -> Provider:+ return import_string(PROVIDERS[settings.WORKSPACE_PROVIDER])()diff --git a/overbae/services/workspaces/conformance.py b/overbae/services/workspaces/conformance.pynew file mode 100644index 00000000..3b8256e2--- /dev/null+++ b/overbae/services/workspaces/conformance.py@@ -0,0 +1,258 @@+"""What every workspace provider must do. The test suite runs these against the native+provider; ``manage.py check_workspaces`` runs them against the configured one, which is+the only way to check a hosted provider."""++import io+import uuid+from collections.abc import Callable, Iterator+from contextlib import contextmanager++from overbae.services.workspaces import Execution, Provider+++@contextmanager+def _kernel(provider: Provider, project: str | None = None) -> Iterator[Callable[..., Execution]]:+ """A kernel in a new project's workspace, or in ``project``'s; a new workspace is+ removed afterwards."""+ owned = project is None+ project = project or uuid.uuid4().hex+ conversation = uuid.uuid4().hex++ def run(code: str, *, timeout: int = 60) -> Execution:+ return provider.run(project, conversation, code, timeout)++ run.project, run.conversation = project, conversation+ try:+ yield run+ finally:+ provider.stop(project, conversation)+ if owned:+ provider.remove(project)+++def variables_persist_and_the_last_expression_is_shown(provider):+ with _kernel(provider) as run:+ first = run("rows = [1, 2, 3]")+ assert first.ok and first.output == "" and first.restarted is None, first+ result = run("print('total')\nsum(rows)")+ assert result.ok and result.output == "total\n6\n", result+++def an_exception_returns_its_traceback_and_keeps_the_variables(provider):+ with _kernel(provider) as run:+ run("kept = 41")+ failed = run("def broken():\n return 1 / 0\nbroken()")+ assert not failed.ok, failed+ assert "ZeroDivisionError" in failed.error and "return 1 / 0" in failed.error, failed+ assert run("kept + 1").output == "42\n"+++def data_is_copied_once_and_read_only(provider):+ content = b"\x00overmind\xff" * 1000+ with _kernel(provider) as run:+ name = f"{uuid.uuid4().hex}.bin"+ assert not provider.has_data(run.project, name)+ provider.put_data(run.project, name, io.BytesIO(content))+ provider.put_data(run.project, name, io.BytesIO(b"replaced"))+ assert provider.has_data(run.project, name)+ result = run(+ f"data = open('data/{name}', 'rb').read()\n"+ "open('copy.bin', 'wb').write(data[::-1])\nlen(data)"+ )+ assert result.output == "10000\n", result+ assert provider.read_file(run.project, run.conversation, "copy.bin") == content[::-1]+ kept = run(+ "try:\n"+ f" open('data/{name}', 'ab')\n"+ "except OSError:\n"+ " kept = True\n"+ "else:\n"+ " kept = False\n"+ "kept"+ )+ assert kept.output == "True\n", kept+ try:+ provider.read_file(run.project, run.conversation, "absent.bin")+ except FileNotFoundError:+ return+ raise AssertionError("A missing file was returned.")+++def conversations_of_a_project_share_data_and_not_variables(provider):+ with _kernel(provider) as first, _kernel(provider, first.project) as second:+ name = f"{uuid.uuid4().hex}.txt"+ provider.put_data(first.project, name, io.BytesIO(b"shared"))+ first("mine = 1\nopen('own.txt', 'w').write('own')")+ assert second(f"open('data/{name}').read()").output == "'shared'\n"+ missing = second("mine")+ assert not missing.ok and "NameError" in missing.error, missing+ alone = second("import os\nos.path.exists('own.txt')")+ assert alone.output == "False\n", alone+++# Every pinned library, used the way a kernel uses it: a library that cannot reach a file it+# needs under the kernel's confinement may abort the whole process, not raise.+LIBRARY_USE = """\+import multiprocessing, subprocess, sys, tempfile+import bs4, datasketch, dateutil.parser, duckdb, emoji, ftfy, jellyfish, jsonschema+import langcodes, langdetect, Levenshtein, lxml.etree, markdownify, matplotlib, numpy, pandas+import PIL.Image, pyarrow.parquet, pytz, rapidfuzz.fuzz, regex, scipy.stats, simhash+import sklearn.ensemble, unidecode, wordfreq, yaml+matplotlib.use("Agg")+import matplotlib.pyplot as plt++frame = pandas.DataFrame({"x": numpy.arange(200) % 7, "y": numpy.arange(200) % 2})+frame.to_parquet("check.parquet")+assert len(pandas.read_parquet("check.parquet")) == pyarrow.parquet.read_table("check.parquet").num_rows+database = duckdb.connect("check.duckdb")+database.register("frame", frame)+database.execute("create table kept as select * from frame order by x")+assert database.execute("select count(*) from kept").fetchone()[0] == 200+database.close()+sklearn.ensemble.RandomForestClassifier(n_estimators=8, n_jobs=2).fit(frame[["x"]], frame["y"])+scipy.stats.pearsonr(frame["x"], frame["y"])+plt.plot(frame["x"])+plt.title("check")+plt.savefig("check.png")+PIL.Image.open("check.png").verify()+assert markdownify.markdownify(str(bs4.BeautifulSoup("<b>x</b>", "lxml")))+lxml.etree.fromstring("<a><b/></a>")+yaml.safe_load("a: 1")+regex.findall(r"\\p{L}+", "wörld")+rapidfuzz.fuzz.ratio("ab", "ac"), jellyfish.jaro_similarity("ab", "ac"), Levenshtein.distance("ab", "ac")+ftfy.fix_text("wörld"), unidecode.unidecode("wörld"), emoji.demojize("\\U0001F44D")+langcodes.standardize_tag("en-us"), langdetect.detect("This is an English sentence.")+wordfreq.word_frequency("the", "en"), simhash.Simhash("some text").value+datasketch.MinHash().update(b"a")+jsonschema.validate({"a": 1}, {"type": "object"})+dateutil.parser.parse("2026-01-02"), pytz.timezone("Europe/London")+with multiprocessing.Pool(2) as pool:+ assert pool.map(abs, [-1, -2]) == [1, 2]+child = subprocess.run([sys.executable, "-c", "print(1)"], capture_output=True, text=True)+assert child.stdout == "1\\n", child+tempfile.NamedTemporaryFile().close()+"""+++def the_pinned_libraries_work(provider):+ with _kernel(provider) as run:+ result = run(LIBRARY_USE, timeout=300)+ assert result.ok, result+++def a_cell_past_its_deadline_is_interrupted_and_the_variables_stay(provider):+ with _kernel(provider) as run:+ run("marker = 'alive'")+ slow = run("while True:\n pass", timeout=1)+ assert not slow.ok and "interrupted" in slow.error, slow+ assert run("marker").output == "'alive'\n"+++def long_output_is_bounded_and_says_so(provider):+ with _kernel(provider) as run:+ result = run("print('x' * 5_000_000)")+ assert result.truncated and len(result.output) < 70_000, result.truncated+ assert "characters omitted" in result.output+++def a_stopped_kernel_restarts_with_its_files(provider):+ with _kernel(provider) as run:+ run("gone = 1\nopen('kept.txt', 'w').write('kept')")+ provider.stop(run.project, run.conversation)+ provider.stop(run.project, run.conversation)+ after = run("open('kept.txt').read()")+ assert after.ok and after.output == "'kept'\n" and after.restarted, after+ assert not run("gone").ok+++def a_kernel_that_dies_is_reported_and_replaced(provider):+ with _kernel(provider) as run:+ died = run("import os\nos._exit(1)")+ assert not died.ok and "kernel ended" in died.error, died+ again = run("1 + 1")+ assert again.ok and again.output == "2\n" and again.restarted, again+++def a_project_sees_no_data_or_process_of_another(provider):+ marker = uuid.uuid4().hex+ with _kernel(provider) as first, _kernel(provider) as second:+ provider.put_data(first.project, f"{marker}.txt", io.BytesIO(b"secret"))+ started = first(+ "import subprocess, sys\n"+ f"child = subprocess.Popen([sys.executable, '-c', 'import time; time.sleep(60)', '{marker}'])"+ )+ assert started.ok, started+ seen = second(+ "import glob\n"+ "found = []\n"+ "for path in glob.glob('/proc/[0-9]*/cmdline'):\n"+ " try:\n"+ " found.append(open(path).read())\n"+ " except OSError:\n"+ " pass\n"+ f"any('{marker}' in line for line in found)"+ )+ assert seen.ok and seen.output == "False\n", seen+ files = second(f"import glob\nbool(glob.glob('/**/{marker}.txt', recursive=True))")+ assert files.ok and files.output == "False\n", files+++def a_kernel_reaches_no_network(provider):+ with _kernel(provider) as run:+ result = run(+ "import socket\n"+ "try:\n"+ " connection = socket.create_connection(('93.184.215.14', 80), timeout=5)\n"+ " connection.sendall(b'GET / HTTP/1.1\\r\\nHost: example.com\\r\\n\\r\\n')\n"+ " answered = bool(connection.recv(64))\n"+ "except OSError:\n"+ " answered = False\n"+ "answered",+ timeout=30,+ )+ assert result.ok and result.output == "False\n", result+++def deleted_data_leaves_the_workspace(provider):+ with _kernel(provider) as run, _kernel(provider, run.project) as other:+ name = f"{uuid.uuid4().hex}.txt"+ provider.put_data(run.project, name, io.BytesIO(b"customer"))+ run("open('note.txt', 'w').write('note')")+ provider.forget(run.project, [name], [run.conversation])+ assert not provider.has_data(run.project, name)+ after = run("import os\nsorted(os.listdir('.'))")+ assert after.ok and "note.txt" not in after.output, after+ provider.put_data(run.project, name, io.BytesIO(b"customer"))+ other("1")+ provider.remove(run.project)+ provider.remove(run.project)+ assert not provider.has_data(run.project, name)+++def the_kernel_holds_no_secret_and_tokenizes_offline(provider):+ """Holds only where the provider is deployed with its image: not in a test server."""+ with _kernel(provider) as run:+ result = run(+ "import os, tiktoken\n"+ "assert not any(name in os.environ for name in ('SANDBOX_TOKEN', 'DAYTONA_API_KEY'))\n"+ "len(tiktoken.get_encoding('o200k_base').encode('offline'))",+ timeout=120,+ )+ assert result.ok and result.output == "1\n", result+++CHECKS = (+ variables_persist_and_the_last_expression_is_shown,+ an_exception_returns_its_traceback_and_keeps_the_variables,+ data_is_copied_once_and_read_only,+ conversations_of_a_project_share_data_and_not_variables,+ the_pinned_libraries_work,+ a_cell_past_its_deadline_is_interrupted_and_the_variables_stay,+ long_output_is_bounded_and_says_so,+ a_stopped_kernel_restarts_with_its_files,+ a_kernel_that_dies_is_reported_and_replaced,+ a_project_sees_no_data_or_process_of_another,+ a_kernel_reaches_no_network,+ deleted_data_leaves_the_workspace,+)+ISOLATED_CHECKS = (the_kernel_holds_no_secret_and_tokenizes_offline,)diff --git a/overbae/services/workspaces/daytona.py b/overbae/services/workspaces/daytona.pynew file mode 100644index 00000000..3b4699d3--- /dev/null+++ b/overbae/services/workspaces/daytona.py@@ -0,0 +1,411 @@+import contextlib+import hashlib+import json+import logging+import shutil+import tempfile+import threading+import time+import tomllib+from functools import cache+from pathlib import Path+from typing import BinaryIO++from daytona import (+ CreateSandboxFromSnapshotParams,+ CreateSnapshotParams,+ Daytona,+ DaytonaConfig,+ DaytonaError,+ DaytonaNotFoundError,+ DaytonaTimeoutError,+ Image,+ ListSandboxesQuery,+ Resources,+ Sandbox,+)+from django.conf import settings+from django.db import connection, transaction++from overbae.services.workspaces import (+ MAX_FILE_BYTES,+ Execution,+ WorkspaceUnavailableError,+)+from sandbox.kernel import __file__ as kernel_file+from sandbox.workspaces import NAME, RESTARTED++logger = logging.getLogger(__name__)++# The libraries the native sandbox promises a package, at the versions the app locks.+LIBRARIES = (+ "beautifulsoup4",+ "datasketch",+ "duckdb",+ "emoji",+ "ftfy",+ "jellyfish",+ "jsonschema",+ "langcodes",+ "langdetect",+ "levenshtein",+ "lxml",+ "markdownify",+ "matplotlib",+ "numpy",+ "pandas",+ "pillow",+ "pyarrow",+ "python-dateutil",+ "pytz",+ "pyyaml",+ "rapidfuzz",+ "regex",+ "scikit-learn",+ "scipy",+ "simhash",+ "tiktoken",+ "unidecode",+ "wordfreq",+)+FAILED_BUILD = ("error", "build_failed")+PYTHON = "3.13"+TOKENIZER_ENCODINGS = ("cl100k_base", "o200k_base")+KERNEL_PATH = "/opt/overmind/kernel.py"+TOKENIZERS = "/opt/overmind/tiktoken"+RESOURCES = Resources(cpu=2, memory=4, disk=5)+KERNEL = Path(kernel_file)+WORKSPACE = "/workspace"+STOP_MINUTES = 15+ARCHIVE_MINUTES = 60+# A workspace holds copies of customer data: one unused for this long is deleted, files+# and all. The next cell creates it again and copies in what it reads.+DELETE_MINUTES = 7 * 24 * 60+START_SECONDS = 120+# A cell's own deadline is the kernel's; this one catches a kernel stuck outside Python.+GRACE_SECONDS = 30+# A known sandbox is not asked for its state again within this time.+FRESH_SECONDS = 60+# Loads the kernel's cell runner into a new context, from the snapshot.+SETUP = (+ "import importlib.util as _overmind_util, json as _overmind_json, signal as _overmind_signal\n"+ f"_overmind_spec = _overmind_util.spec_from_file_location('_overmind_kernel', {KERNEL_PATH!r})\n"+ "_overmind = _overmind_util.module_from_spec(_overmind_spec)\n"+ "_overmind_spec.loader.exec_module(_overmind)\n"+ "_overmind_signal.signal(_overmind_signal.SIGALRM, _overmind._interrupt)\n"+ # The same limits as a native kernel: its own folder writable, the project's data+ # read-only, and no socket but a Unix one.+ "import os as _overmind_os, tempfile as _overmind_tempfile\n"+ "for _overmind_name in ('HOME', 'TMPDIR', 'MPLCONFIGDIR'):\n"+ " _overmind_os.environ[_overmind_name] = _overmind_os.getcwd()\n"+ "_overmind_tempfile.tempdir = None\n"+ f"_overmind.confine(_overmind_os.getcwd(), readable=({WORKSPACE + '/data'!r},))\n"+ "import matplotlib\n"+ "matplotlib.use('Agg')\n"+ # Last: a cell needs the counter, so a context whose setup stopped early runs nothing.+ "_overmind_cells = 0"+)+LOST = (+ "The kernel ended during the cell: it ran out of memory or stopped answering. "+ "Variables are gone, files remain."+)+++@cache+def _requirements() -> tuple[str, ...]:+ lock = tomllib.loads((KERNEL.parent.parent / "uv.lock").read_text())+ versions = {package["name"]: package["version"] for package in lock["package"]}+ return tuple(f"{name}=={versions[name]}" for name in LIBRARIES)+++def _recipe() -> tuple[Image, str]:+ """The snapshot's image, and everything that decides what is in it."""+ cache_tokenizers = (+ 'python -c "import tiktoken; [tiktoken.get_encoding(name) for name in '+ f'{TOKENIZER_ENCODINGS!r}]"'+ )+ image = (+ Image.debian_slim(PYTHON)+ .pip_install(*_requirements())+ .env({"TIKTOKEN_CACHE_DIR": TOKENIZERS})+ .run_commands(cache_tokenizers)+ .add_local_file(KERNEL, KERNEL_PATH)+ )+ parts = (PYTHON, *_requirements(), TOKENIZERS, cache_tokenizers, KERNEL_PATH, repr(RESOURCES))+ return image, "\n".join(parts)+++@cache+def snapshot_name() -> str:+ """Names the kernel and the whole recipe, so a change to either selects a new snapshot."""+ digest = hashlib.sha256(KERNEL.read_bytes() + _recipe()[1].encode())+ return f"overmind-workspace-{digest.hexdigest()[:12]}"+++def _client() -> Daytona:+ return Daytona(DaytonaConfig(api_key=settings.DAYTONA_API_KEY, otel_enabled=False))+++def build_snapshot(on_logs) -> str:+ """Build the snapshot sessions start from, unless this recipe already has a usable one."""+ client, name = _client(), snapshot_name()+ with contextlib.suppress(DaytonaNotFoundError):+ existing = client.snapshot.get(name)+ if getattr(existing.state, "value", existing.state) not in FAILED_BUILD:+ return name+ # A build that failed keeps the name: remove it and build again.+ client.snapshot.delete(existing)+ client.snapshot.create(+ CreateSnapshotParams(name=name, image=_recipe()[0], resources=RESOURCES),+ on_logs=on_logs,+ )+ return name+++def _cell(code: str, timeout: int) -> str:+ """The call that runs ``code`` through the kernel's own runner: its output bound, its+ deadline and its reply are the same as in the native sandbox."""+ return (+ "_overmind_cells += 1\n"+ "print(_overmind_json.dumps(_overmind.run("+ f"{code!r}, globals(), {timeout}, f'<cell {{_overmind_cells}}>')))"+ )+++class DaytonaProvider:+ """A Daytona sandbox for each project, stopped when idle and archived later; its files+ survive both. A conversation's kernel is an interpreter context in it, which a stop+ ends."""++ _lock = threading.Lock()+ # Sandbox of each project, and when its state was last read.+ _sandboxes: dict[str, tuple[Sandbox, float]] = {}+ _contexts: dict[tuple[str, str], object] = {}++ def __init__(self):+ self.client = _client()++ def _create(self, project: str) -> Sandbox:+ # One sandbox for each project, whichever worker asks first.+ with transaction.atomic(), connection.cursor() as cursor:+ cursor.execute("SELECT pg_advisory_xact_lock(hashtext(%s))", [f"workspace:{project}"])+ found = list(self.client.list(ListSandboxesQuery(labels=_labels(project))))+ if found:+ return self.client.get(found[0].id)+ return self.client.create(+ CreateSandboxFromSnapshotParams(+ snapshot=snapshot_name(),+ labels=_labels(project),+ network_block_all=True,+ public=False,+ ephemeral=False,+ auto_stop_interval=STOP_MINUTES,+ auto_archive_interval=ARCHIVE_MINUTES,+ auto_delete_interval=DELETE_MINUTES,+ ),+ timeout=START_SECONDS,+ )++ def _sandbox(self, project: str, *, start: bool = True) -> Sandbox | None:+ with self._lock:+ known = self._sandboxes.get(project)+ try:+ if known is None:+ found = list(self.client.list(ListSandboxesQuery(labels=_labels(project))))+ if not found and not start:+ return None+ sandbox = self.client.get(found[0].id) if found else self._create(project)+ else:+ sandbox, read_at = known+ if time.monotonic() - read_at < FRESH_SECONDS:+ return sandbox+ sandbox.refresh_data()+ state = str(getattr(sandbox.state, "value", sandbox.state))+ if state != "started":+ if not start:+ return None+ if state in ("error", "build_failed"):+ # Its files are lost with it: the next cells copy versions in again.+ self.client.delete(sandbox)+ sandbox = self._create(project)+ else:+ sandbox.start(timeout=START_SECONDS)+ except DaytonaError as exc:+ logger.warning("Daytona workspace for %s is not available: %s", project, exc)+ raise WorkspaceUnavailableError("The workspace provider has no room now.") from exc+ with self._lock:+ self._sandboxes[project] = (sandbox, time.monotonic())+ return sandbox++ def _forget(self, project: str) -> None:+ with self._lock:+ self._sandboxes.pop(project, None)+ for key in [key for key in self._contexts if key[0] == project]:+ del self._contexts[key]++ def has_data(self, project: str, name: str) -> bool:+ sandbox = self._sandbox(project)+ try:+ sandbox.fs.get_file_info(f"{WORKSPACE}/data/{name}")+ except DaytonaNotFoundError:+ return False+ except DaytonaError as exc:+ raise WorkspaceUnavailableError(str(exc)) from exc+ return True++ def put_data(self, project: str, name: str, source: BinaryIO) -> None:+ if not NAME.fullmatch(name):+ raise ValueError("Invalid file name.")+ if self.has_data(project, name):+ return+ sandbox = self._sandbox(project)+ path = f"{WORKSPACE}/data/{name}"+ with tempfile.NamedTemporaryFile() as local:+ shutil.copyfileobj(source, local)+ local.flush()+ try:+ sandbox.fs.create_folder(f"{WORKSPACE}/data", "755")+ sandbox.fs.upload_file(local.name, path)+ sandbox.fs.set_file_permissions(path, mode="444")+ except DaytonaError as exc:+ self._forget(project)+ raise WorkspaceUnavailableError(str(exc)) from exc++ def _context(self, project: str, conversation: str, sandbox: Sandbox):+ """The conversation's context, and why its variables are gone when a new one+ replaced an earlier one."""+ with self._lock:+ known = self._contexts.get((project, conversation))+ if known is not None:+ return known, None+ work = f"{WORKSPACE}/conversations/{conversation}"+ found = next((c for c in sandbox.code_interpreter.list_contexts() if c.cwd == work), None)+ restarted = None+ if found is None:+ existed = sandbox.process.exec(f"test -d {work}", timeout=30).exit_code == 0+ restarted = RESTARTED if existed else None+ sandbox.process.exec(+ f"mkdir -p {WORKSPACE}/data {work} && ln -sfn ../../data {work}/data",+ timeout=30,+ )+ found = sandbox.code_interpreter.create_context(cwd=work)+ setup = sandbox.code_interpreter.run_code(SETUP, context=found, timeout=60)+ if setup.error:+ with contextlib.suppress(DaytonaError):+ sandbox.code_interpreter.delete_context(found)+ raise WorkspaceUnavailableError(f"The kernel did not start: {setup.error.value}")+ with self._lock:+ self._contexts[(project, conversation)] = found+ return found, restarted++ def _end(self, project: str, conversation: str, sandbox: Sandbox, context) -> None:+ with self._lock:+ self._contexts.pop((project, conversation), None)+ if context is None:+ return+ with contextlib.suppress(DaytonaError):+ sandbox.code_interpreter.delete_context(context)++ def run(self, project: str, conversation: str, code: str, timeout: int) -> Execution:+ for attempt in range(2):+ sandbox, context = self._sandbox(project), None+ try:+ context, restarted = self._context(project, conversation, sandbox)+ result = sandbox.code_interpreter.run_code(+ _cell(code, timeout), context=context, timeout=timeout + GRACE_SECONDS+ )+ except DaytonaTimeoutError:+ self._end(project, conversation, sandbox, context)+ return Execution(False, "", LOST, False, float(timeout))+ except DaytonaError as exc:+ text = str(exc)+ if "worker process ended" in text:+ self._end(project, conversation, sandbox, context)+ return Execution(False, "", LOST, False, 0.0)+ # A stopped sandbox, or a context its stop ended: look again, once.+ self._forget(project)+ if attempt:+ raise WorkspaceUnavailableError(text) from exc+ continue+ if result.error:+ # Raised by the runner itself, not the cell: the context is not usable.+ self._end(project, conversation, sandbox, context)+ return Execution(+ False, "", f"{result.error.name}: {result.error.value}", False, 0.0+ )+ reply = json.loads(result.stdout.strip().splitlines()[-1])+ return Execution(**reply, restarted=restarted)+ raise WorkspaceUnavailableError("The workspace did not answer.")++ def read_file(self, project: str, conversation: str, name: str) -> bytes:+ if not NAME.fullmatch(name):+ raise FileNotFoundError(name)+ sandbox = self._sandbox(project)+ path = f"{WORKSPACE}/conversations/{conversation}/{name}"+ try:+ # Its size first: the sandbox's disk holds more than a worker's memory.+ info = sandbox.fs.get_file_info(path)+ if info.is_dir or info.size > MAX_FILE_BYTES:+ raise FileNotFoundError(name)+ # And while it is read: the cell may still write it.+ received = bytearray()+ for chunk in sandbox.fs.download_file_stream(path):+ received += chunk+ if len(received) > MAX_FILE_BYTES:+ raise FileNotFoundError(name)+ return bytes(received)+ except DaytonaNotFoundError:+ raise FileNotFoundError(name) from None+ except DaytonaError as exc:+ raise WorkspaceUnavailableError(str(exc)) from exc++ def forget(self, project: str, data: list[str], conversations: list[str]) -> None:+ command = _forget_command(data, conversations)+ # A stopped or archived workspace still holds the files: it starts to delete them.+ sandbox = self._sandbox(project, start=bool(command)) if command else None+ if sandbox is None:+ return+ for conversation in conversations:+ self.stop(project, conversation)+ try:+ sandbox.process.exec(command, timeout=60)+ except DaytonaError as exc:+ raise WorkspaceUnavailableError(str(exc)) from exc++ def remove(self, project: str) -> None:+ self._forget(project)+ try:+ for found in self.client.list(ListSandboxesQuery(labels=_labels(project))):+ with contextlib.suppress(DaytonaNotFoundError):+ self.client.delete(self.client.get(found.id))+ # Deletion ends a moment later; until then the sandbox holds its share of the+ # account's limits.+ deadline = time.monotonic() + START_SECONDS+ while time.monotonic() < deadline and any(+ True for _ in self.client.list(ListSandboxesQuery(labels=_labels(project)))+ ):+ time.sleep(2)+ except DaytonaError as exc:+ raise WorkspaceUnavailableError(str(exc)) from exc++ def stop(self, project: str, conversation: str) -> None:+ sandbox = self._sandbox(project, start=False)+ if sandbox is None:+ return+ work = f"{WORKSPACE}/conversations/{conversation}"+ with contextlib.suppress(DaytonaError):+ for context in sandbox.code_interpreter.list_contexts():+ if context.cwd == work:+ self._end(project, conversation, sandbox, context)+++def _forget_command(data: list[str], conversations: list[str]) -> str:+ paths = [f"{WORKSPACE}/data/{name}" for name in data if NAME.fullmatch(name)]+ paths += [+ f"{WORKSPACE}/conversations/{c}" for c in conversations if c.isalnum() and len(c) <= 64+ ]+ return "rm -rf " + " ".join(paths) if paths else ""+++def _labels(project: str) -> dict[str, str]:+ return {"overmind": "workspace", "project": project}diff --git a/overbae/services/workspaces/native.py b/overbae/services/workspaces/native.pynew file mode 100644index 00000000..b81fb138--- /dev/null+++ b/overbae/services/workspaces/native.py@@ -0,0 +1,107 @@+from typing import BinaryIO++import httpx+from django.conf import settings++from overbae.services.workspaces import Execution, WorkspaceUnavailableError++CHUNK_BYTES = 1024**2+# The sandbox waits for memory before it starts a kernel; a cell may run to its deadline.+GRACE_SECONDS = 60+TRANSFER_SECONDS = 300+++# Failures after the request left: the sandbox may have acted on it.+SENT = (httpx.ReadError, httpx.ReadTimeout, httpx.RemoteProtocolError)+UNKNOWN = (+ "The sandbox stopped answering during the cell: it may have run. "+ "Variables may be gone, files remain."+)+++class NativeProvider:+ """Workspaces in Overmind's own ``sandbox`` service: folders on its volume, kernels as+ confined processes. It holds them in one server's memory and disk, so a deployment+ runs one sandbox server."""++ def __init__(self, url: str | None = None, token: str | None = None):+ self.url = (url or settings.SANDBOX_URL).rstrip("/") + "/v1/workspaces"+ self.headers = {"Authorization": f"Bearer {token or settings.SANDBOX_TOKEN}"}++ def _request(+ self, method: str, path: str, *, timeout: float, cell: bool = False, **kwargs+ ) -> httpx.Response:+ try:+ response = httpx.request(+ method,+ self.url + path,+ headers=self.headers,+ timeout=httpx.Timeout(timeout, connect=5),+ **kwargs,+ )+ except httpx.HTTPError as exc:+ if cell and isinstance(exc, SENT):+ raise+ raise WorkspaceUnavailableError(f"The sandbox did not answer: {exc}") from exc+ if response.status_code >= 500:+ reason = _body(response).get("error") or f"HTTP {response.status_code}"+ raise WorkspaceUnavailableError(reason)+ return response++ def has_data(self, project: str, name: str) -> bool:+ response = self._request("HEAD", f"/{project}/data/{name}", timeout=30)+ return response.status_code == 204++ def put_data(self, project: str, name: str, source: BinaryIO) -> None:+ if self.has_data(project, name):+ return+ chunks = iter(lambda: source.read(CHUNK_BYTES), b"")+ self._request(+ "PUT", f"/{project}/data/{name}", content=chunks, timeout=TRANSFER_SECONDS+ ).raise_for_status()++ def run(self, project: str, conversation: str, code: str, timeout: int) -> Execution:+ try:+ response = self._request(+ "POST",+ f"/{project}/kernels/{conversation}/run",+ json={"code": code, "timeout": timeout},+ timeout=timeout + GRACE_SECONDS,+ cell=True,+ )+ except SENT:+ # The cell was sent: it may have run, so it is not reported as never run.+ return Execution(False, "", UNKNOWN, False, float(timeout))+ response.raise_for_status()+ return Execution(**response.json())++ def read_file(self, project: str, conversation: str, name: str) -> bytes:+ response = self._request(+ "GET", f"/{project}/kernels/{conversation}/files/{name}", timeout=TRANSFER_SECONDS+ )+ if response.status_code in (400, 404):+ raise FileNotFoundError(name)+ response.raise_for_status()+ return response.content++ def stop(self, project: str, conversation: str) -> None:+ self._request("DELETE", f"/{project}/kernels/{conversation}", timeout=30)++ def forget(self, project: str, data: list[str], conversations: list[str]) -> None:+ self._request(+ "POST",+ f"/{project}/forget",+ json={"data": data, "conversations": conversations},+ timeout=60,+ ).raise_for_status()++ def remove(self, project: str) -> None:+ self._request("DELETE", f"/{project}", timeout=60).raise_for_status()+++def _body(response: httpx.Response) -> dict:+ try:+ body = response.json()+ except ValueError:+ return {}+ return body if isinstance(body, dict) else {}diff --git a/overbae/settings.py b/overbae/settings.pyindex 700e0000..3d937d3a 100644--- a/overbae/settings.py+++ b/overbae/settings.py@@ -66,6 +66,7 @@ INSTALLED_APPS = [MIDDLEWARE = ["django.middleware.security.SecurityMiddleware",+ "overbae.api.compression.CompressionMiddleware","django.contrib.sessions.middleware.SessionMiddleware","corsheaders.middleware.CorsMiddleware","django.middleware.common.CommonMiddleware",@@ -96,9 +97,12 @@ def show_debug_toolbar(request):if DEBUG and not TESTING:INSTALLED_APPS = [*INSTALLED_APPS, "debug_toolbar"]+ # The toolbar edits the HTML, so it sits inside compression.+ after = MIDDLEWARE.index("overbae.api.compression.CompressionMiddleware") + 1MIDDLEWARE = [+ *MIDDLEWARE[:after],"debug_toolbar.middleware.DebugToolbarMiddleware",- *MIDDLEWARE,+ *MIDDLEWARE[after:],]INTERNAL_IPS = ["127.0.0.1", "::1"]DEBUG_TOOLBAR_CONFIG = {@@ -433,6 +437,12 @@ CELERY_TASK_ROUTES = {"overbae.tasks.native_evaluation.advance_plan": {"queue": "batch"},"overbae.tasks.native_evaluation.refresh_monitor": {"queue": "batch"},"overbae.tasks.training_preparation.inspect_preparation": {"queue": "io"},+ # A streamed model reply holds a worker slot for its whole length, so steps have their+ # own queue. The reconciler only reads and enqueues: it must run when that queue is full.+ "overbae.tasks.assistant.run_turn": {"queue": "assistant"},+ "overbae.tasks.assistant.stop_kernel": {"queue": "assistant"},+ "overbae.tasks.assistant.forget_workspace_data": {"queue": "assistant"},+ "overbae.tasks.assistant.remove_workspace": {"queue": "assistant"},"overbae.tasks.innermind.generate_row": {"queue": "batch"},"overbae.tasks.innermind.score_eval_run": {"queue": "batch"},# Model warm-up blocks for minutes; control stays free for reconcilers and metrics.@@ -741,6 +751,11 @@ INFERENCE_API_KEY: str = os.environ.get("INFERENCE_API_KEY", "")SANDBOX_URL = os.environ.get("SANDBOX_URL", "").rstrip("/")SANDBOX_TOKEN = os.environ.get("SANDBOX_TOKEN", "")+# Where the assistant runs Python: native (the sandbox service) or daytona.+WORKSPACE_PROVIDER = os.environ.get("WORKSPACE_PROVIDER", "native")+DAYTONA_API_KEY = os.environ.get("DAYTONA_API_KEY", "")+# Prompt tokens of one assistant reply above which the older conversation is summarized.+ASSISTANT_COMPACT_TOKENS = int(os.environ.get("ASSISTANT_COMPACT_TOKENS", "120000"))_REQUIRED_KEYS = {"SANDBOX_URL": "the isolated Workshop sandbox",diff --git a/overbae/tasks/__init__.py b/overbae/tasks/__init__.pyindex 362f4705..86803452 100644--- a/overbae/tasks/__init__.py+++ b/overbae/tasks/__init__.py@@ -3,6 +3,7 @@from overbae.api.otlp import process_spanfrom . import ( # noqa: E402+ assistant,baseten_billing_sync,capability_rebind,cleanup_modal,@@ -25,6 +26,7 @@ from . import ( # noqa: E402from .dataset_context import refresh_dataset_context__all__ = [+ "assistant","baseten_billing_sync","capability_rebind","cleanup_modal",diff --git a/overbae/tasks/assistant.py b/overbae/tasks/assistant.pynew file mode 100644index 00000000..b909c2a0--- /dev/null+++ b/overbae/tasks/assistant.py@@ -0,0 +1,48 @@+from uuid import UUID++from celery import shared_task+++@shared_task(name="overbae.tasks.assistant.run_turn")+def run_turn(thread_id):+ # Lazy: the turn reaches the MCP catalog, which imports the serializers that import tasks.+ from overbae.services.assistant import turn++ turn.run(thread_id)+++@shared_task(name="overbae.tasks.assistant.stop_kernel")+def stop_kernel(project_id, thread_id, turn):+ """End the kernel of the turn that was stopped, also during a cell: that turn gets its+ answer and sees the stop. A later turn's kernel is left alone."""+ from overbae.models import AssistantThread+ from overbae.services import workspaces++ if AssistantThread.objects.filter(pk=thread_id, turn=turn, state="running").exists():+ workspaces.provider().stop(project_id, UUID(thread_id).hex)+++@shared_task(+ name="overbae.tasks.assistant.forget_workspace_data",+ autoretry_for=(Exception,),+ retry_backoff=60,+ max_retries=10,+)+def forget_workspace_data(project_id, data, conversations):+ """A deleted dataset's copies leave its project's workspace, also at a hosted provider."""+ from overbae.services import workspaces++ workspaces.provider().forget(project_id, data, conversations)+++@shared_task(+ name="overbae.tasks.assistant.remove_workspace",+ autoretry_for=(Exception,),+ retry_backoff=60,+ max_retries=10,+)+def remove_workspace(project_id):+ """A deleted project's workspace goes with it, also at a hosted provider."""+ from overbae.services import workspaces++ workspaces.provider().remove(project_id)diff --git a/overbae/tasks/datasets.py b/overbae/tasks/datasets.pyindex 0ebec3ee..b876c7d4 100644--- a/overbae/tasks/datasets.py+++ b/overbae/tasks/datasets.py@@ -443,10 +443,9 @@ def reap_stuck_runs() -> dict[str, Any]:from datetime import timedeltafrom overbae.models import Dataset, DatasetPipelineRun- from overbae.services.datasets import imports, preparation_workflow+ from overbae.services.datasets import importsimports.reconcile()- expired = preparation_workflow.expire()now = timezone.now()from overbae.services.datasets.workbench import expire_runs@@ -478,7 +477,7 @@ def reap_stuck_runs() -> dict[str, Any]:_emit(dataset_id, {"type": "run_failed", "error": "The worker stopped before this finished."})- return {"reaped": len(ids), "preparations_expired": expired}+ return {"reaped": len(ids)}@shared_task(diff --git a/overbae/urls.py b/overbae/urls.pyindex b25c9f53..6cab4851 100644--- a/overbae/urls.py+++ b/overbae/urls.py@@ -11,6 +11,7 @@ from rest_framework.permissions import AllowAnyfrom rest_framework.routers import DefaultRouterfrom overbae.api.activity import ActivityViewSet+from overbae.api.assistant import AssistantThreadViewSetfrom overbae.api.auth_keys import APITokenCurrentView, APITokenDestroyView, APITokenListCreateViewfrom overbae.api.auth_registration import LocalSessionView, OnboardingView, UserMeViewfrom overbae.api.auth_token_views import PublicTokenObtainPairView, PublicTokenRefreshView@@ -83,6 +84,7 @@ from overbae.api.workbench import ()router = DefaultRouter()+router.register("assistant-threads", AssistantThreadViewSet, basename="assistant-thread")router.register("dataset-transfers", DatasetTransferViewSet, basename="dataset-transfer")router.register("dataset-pipeline-packages", DatasetPipelinePackageViewSet, basename="dataset-pipeline-package"diff --git a/overmind/.claude-plugin/plugin.json b/overmind/.claude-plugin/plugin.jsonindex 1425eedf..e05eb90f 100644--- a/overmind/.claude-plugin/plugin.json+++ b/overmind/.claude-plugin/plugin.json@@ -1,6 +1,6 @@{"name": "overmind",- "version": "1.2.11",+ "version": "1.2.12","description": "Overmind skills — agent observability, tracing, and platform workflows for coding agents.","author": {"name": "Overmind",diff --git a/overmind/.codex-plugin/plugin.json b/overmind/.codex-plugin/plugin.jsonindex 22882f3d..f73f6fa2 100644--- a/overmind/.codex-plugin/plugin.json+++ b/overmind/.codex-plugin/plugin.json@@ -1,6 +1,6 @@{"name": "overmind",- "version": "1.2.11",+ "version": "1.2.12","description": "Investigate agent failures, prepare datasets, evaluate models, and manage training and serving with Overmind.","author": {"name": "Overmind",diff --git a/overmind/.cursor-plugin/plugin.json b/overmind/.cursor-plugin/plugin.jsonindex f923c742..8a8ccab4 100644--- a/overmind/.cursor-plugin/plugin.json+++ b/overmind/.cursor-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "overmind","displayName": "Overmind",- "version": "1.2.11",+ "version": "1.2.12","description": "Overmind skills and MCP — agent observability, tracing, and platform tools for coding agents.","author": {"name": "Overmind",diff --git a/overmind/overmind/__init__.py b/overmind/overmind/__init__.pyindex 453dd8c0..977859db 100644--- a/overmind/overmind/__init__.py+++ b/overmind/overmind/__init__.py@@ -10,7 +10,7 @@ from __future__ import annotationsfrom typing import TYPE_CHECKING, Any-__version__ = "0.1.120"+__version__ = "0.1.121"from .client import Client, ModelDeleted, OvermindInferenceErrordiff --git a/overmind/overmind/skills_db.py b/overmind/overmind/skills_db.pyindex 09097e9b..6d7914f1 100644--- a/overmind/overmind/skills_db.py+++ b/overmind/overmind/skills_db.py@@ -1,7 +1,7 @@from dataclasses import dataclass# Every plugin manifest (.claude-plugin, .codex-plugin, .cursor-plugin) carries this version.-SKILLS_VERSION = "1.2.11"+SKILLS_VERSION = "1.2.12"@dataclassdiff --git a/overmind/pyproject.toml b/overmind/pyproject.tomlindex 57d4f257..f0d8db1b 100644--- a/overmind/pyproject.toml+++ b/overmind/pyproject.toml@@ -46,7 +46,7 @@ license = { text = "MIT" }name = "overmind"readme = "README.md"requires-python = ">=3.10,<4" # todo; remove the upper bound-version = "0.1.120"+version = "0.1.121"[project.urls]"Agent setup" = "https://console.overmindlab.ai/setup.md"diff --git a/overmind/skills/overmind-datasets/SKILL.md b/overmind/skills/overmind-datasets/SKILL.mdindex 37571507..fce3ed1e 100644--- a/overmind/skills/overmind-datasets/SKILL.md+++ b/overmind/skills/overmind-datasets/SKILL.md@@ -23,10 +23,6 @@ file. Resume the identical command after interruption; do not upload each fileas a separate attachment unless separate versions are intended. A changed orderor recipe requires a new request key. `--json-rows-field` applies to a single file.-## Preparation lifecycle--Before dataset preparation work, inspect_dataset_workbench and resume its preparation_workflow or call start_dataset_preparation with a stable request_key. Keep it preparing across local authoring, previews and publications. Use update_dataset_preparation with state=completed and verified published output cell UUIDs only when all requested agent work is finished; use paused when stopping temporarily or cancelled when abandoning. Individual job completion does not finish preparation.-## Intent and contractsA dataset is a landed source and a linear chain of cells; every cell that ran is adiff --git a/overmind/uv.lock b/overmind/uv.lockindex 46be0eb8..8afd49b7 100644--- a/overmind/uv.lock+++ b/overmind/uv.lock@@ -923,7 +923,7 @@ wheels = [[[package]]name = "overmind"-version = "0.1.120"+version = "0.1.121"source = { editable = "." }dependencies = [{ name = "packaging" },diff --git a/pyproject.toml b/pyproject.tomlindex 1f83a2d0..00c7ead0 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -74,6 +74,8 @@ dependencies = ["wordfreq>=3.1.1","docling-slim[convert-core,format-docx,format-markdown,format-pdf-docling]>=2.131.0,<3","pypdfium2>=5.0,<6",+ "daytona==0.231.1",+ "matplotlib>=3.11.2",]description = "Overbae — unified Django API for the Overclaw / Overmind platform"license = { text = "AGPL-3.0" }diff --git a/sandbox/documents/child.py b/sandbox/documents/child.pyindex c529fbdc..4c02f276 100644--- a/sandbox/documents/child.py+++ b/sandbox/documents/child.py@@ -19,6 +19,11 @@ def main(argv: list[str]) -> None:sys.path.insert(0, str(Path(__file__).resolve().parents[2]))from sandbox.documents.checkpoints import readfrom sandbox.documents.extract import DocumentError, extract+ from sandbox.kernel import confine++ # A hostile document reaches the parsers. Their worker processes import this package+ # again, which reads the folder it lies in.+ confine(os.getcwd(), readable=(sys.path[0],))def progress(value):with open("progress.jsonl", "a", encoding="utf-8") as report:diff --git a/sandbox/execute.py b/sandbox/execute.pyindex 822733b3..354f34ef 100644--- a/sandbox/execute.py+++ b/sandbox/execute.py@@ -247,9 +247,9 @@ class Slot:limit: int-def reserve(need: int, budget: int) -> Slot:+def reserve(need: int, budget: int, wait: float = RESERVE_WAIT_SECONDS) -> Slot:token = uuid.uuid4().hex- deadline = time.monotonic() + RESERVE_WAIT_SECONDS+ deadline = time.monotonic() + waitwhile True:with _ledger() as ledger:runs = ledger["runs"]@@ -268,6 +268,13 @@ def reserve(need: int, budget: int) -> Slot:time.sleep(0.5)+def renew(slot: Slot) -> None:+ """A reservation expires after ``RESERVATION_SECONDS``; a live kernel outlasts that."""+ with _ledger() as ledger:+ if slot.token in ledger["runs"]:+ ledger["runs"][slot.token]["since"] = time.time()++def release(slot: Slot) -> None:with _ledger() as ledger:ledger["runs"].pop(slot.token, None)@@ -365,6 +372,19 @@ def _take_back(scratch: Path, uid: int | None) -> None:continue+def footprint(scratch: Path, leader: int, uid: int | None) -> int:+ """Resident memory plus tmpfs files of one live child."""+ members = _members(leader, uid)+ return sum(rss for _, rss in members) + _files_bytes(+ scratch, uid, [pid for pid, _ in members], []+ )+++def end(scratch: Path, leader: int, uid: int | None) -> None:+ _stop(leader, uid)+ _take_back(scratch, uid)++def claim(path: Path, max_bytes: int | None = None) -> BinaryIO | None:"""Open a file the run wrote. The run controls the name: it can be a symlink toanother run's data, a FIFO that blocks ``open`` for ever, or a hard link."""@@ -389,6 +409,28 @@ def _tail(fh: BinaryIO, chars: int) -> str:return fh.read().decode("utf-8", "replace")[-chars:]+def confinement(home: Path, uid: int | None, extra: dict[str, str] | None = None) -> dict:+ """``Popen`` arguments every untrusted child shares: its own uid, a bare environment+ and a home it owns."""+ return {+ "cwd": home,+ "env": {+ "PATH": os.environ.get("PATH", "/usr/bin:/bin"),+ "PYTHONDONTWRITEBYTECODE": "1",+ "PYTHONNOUSERSITE": "1",+ "OMP_NUM_THREADS": "2",+ "MALLOC_ARENA_MAX": "2",+ "HOME": str(home),+ "TMPDIR": str(home),+ "TIKTOKEN_CACHE_DIR": "/opt/sandbox/tiktoken",+ **(extra or {}),+ },+ "umask": 0o077,+ "start_new_session": True,+ **({} if uid is None else {"user": uid, "group": uid, "extra_groups": []}),+ }++@dataclassclass Child:argv: list[str]@@ -410,31 +452,15 @@ def spawn(0 if uid is None else PROCESSES,FILE_DESCRIPTORS,]- env = {- "PATH": os.environ.get("PATH", "/usr/bin:/bin"),- "PYTHONDONTWRITEBYTECODE": "1",- "PYTHONNOUSERSITE": "1",- "OMP_NUM_THREADS": "2",- "MALLOC_ARENA_MAX": "2",- "HOME": str(scratch),- "TMPDIR": str(scratch),- "TIKTOKEN_CACHE_DIR": "/opt/sandbox/tiktoken",- **(child.env or {}),- }- identity = {} if uid is None else {"user": uid, "group": uid, "extra_groups": []}started = time.monotonic()stopped = ""with tempfile.TemporaryFile() as out, tempfile.TemporaryFile() as err:try:proc = subprocess.Popen([sys.executable, "-I", *child.argv[:1], json.dumps(rlimits), *child.argv[1:]],- cwd=scratch,- env=env,stdout=out,stderr=err,- umask=0o077,- start_new_session=True,- **identity,+ **confinement(scratch, uid, child.env),)except (OSError, subprocess.SubprocessError) as exc:return Outcome(error=f"The runner could not start: {exc}")diff --git a/sandbox/kernel.py b/sandbox/kernel.pynew file mode 100644index 00000000..88cfdcb3--- /dev/null+++ b/sandbox/kernel.py@@ -0,0 +1,226 @@+"""A persistent Python namespace, one cell at a time, and the limits untrusted code runs+under. Both workspace providers run cells through ``run``, so this file imports the+standard library only: the native sandbox serves it behind a Unix socket, and a Daytona+interpreter context loads it from the snapshot.++ kernel.py serve <socket> [limits-json] hold the namespace and answer requests+"""++import ast+import contextlib+import ctypes+import io+import json+import linecache+import os+import resource+import signal+import socket+import struct+import sys+import time+import traceback++OUTPUT_CHARS = 60_000++# Landlock file rights by ABI version: each version adds rights after the 13 of the first.+_FS_RIGHTS = {1: 13, 2: 14, 3: 15, 4: 15, 5: 16}+_EXECUTE, _WRITE_FILE, _READ_FILE, _READ_DIR = 1, 2, 4, 8+_ON_FILES = _EXECUTE | _WRITE_FILE | _READ_FILE | (1 << 14) | (1 << 15)+_READ = _EXECUTE | _READ_FILE | _READ_DIR+_SYSTEM = ("/usr", "/lib", "/lib64", "/bin", "/sbin", "/etc", "/opt")+_SOCKET_CALL = {"x86_64": (0xC000003E, 41), "aarch64": (0xC00000B7, 198)}+++def _libc():+ libc = ctypes.CDLL(None, use_errno=True)+ libc.syscall.restype = ctypes.c_long+ return libc+++def landlock_abi() -> int:+ """The Landlock version this host enforces; 0 when it has none. Without it the uid of a+ run is all that keeps it from the files and process list of the others."""+ if sys.platform != "linux":+ return 0+ return max(0, _libc().syscall(444, None, ctypes.c_size_t(0), 1))+++def _landlock(libc, work: str, readable: tuple[str, ...]) -> None:+ """Limit this process and its children to the files named here, deny TCP and keep its+ signals and abstract sockets to itself, as far as this Linux supports."""+ abi = landlock_abi()+ if not abi:+ return+ files = (1 << _FS_RIGHTS[min(abi, 5)]) - 1+ attributes = struct.pack("QQQ", files, 3 if abi >= 4 else 0, 3 if abi >= 6 else 0)+ size = 24 if abi >= 6 else 16 if abi >= 4 else 8+ ruleset = libc.syscall(444, attributes, ctypes.c_size_t(size), 0)+ if ruleset < 0:+ raise OSError(ctypes.get_errno(), "landlock_create_ruleset")+ rights = dict.fromkeys((*_SYSTEM, sys.prefix, sys.base_prefix, *readable), _READ)+ # Its own entry only: the rest of /proc names every other run's processes.+ rights |= dict.fromkeys(("/proc/self", "/proc/cpuinfo", "/proc/meminfo"), _READ)+ # duckdb aborts when it cannot read its memory limit under the cgroup tree.+ rights |= dict.fromkeys(("/sys/devices/system/cpu", "/sys/fs/cgroup"), _READ)+ rights |= dict.fromkeys(("/dev/null", "/dev/zero", "/dev/random", "/dev/urandom"), 6)+ # multiprocessing keeps its semaphores in /dev/shm; a run's own uid guards its files.+ rights |= dict.fromkeys((work, "/dev/shm"), files)+ for path, allowed in rights.items():+ try:+ target = os.open(path, os.O_PATH | os.O_CLOEXEC)+ except OSError:+ continue+ if not os.path.isdir(path):+ allowed &= _ON_FILES+ rule = struct.pack("=Qi", allowed & files, target)+ if libc.syscall(445, ruleset, 1, rule, 0):+ raise OSError(ctypes.get_errno(), f"landlock_add_rule {path}")+ os.close(target)+ if libc.syscall(446, ruleset, 0):+ raise OSError(ctypes.get_errno(), "landlock_restrict_self")+ os.close(ruleset)+++def _unix_sockets_only(libc) -> None:+ """A seccomp filter: ``socket()`` answers EACCES for every family but AF_UNIX, so a run+ reaches no other run, whatever network its container has."""+ architecture, socket_call = _SOCKET_CALL[os.uname().machine]+ kill, allow, refuse = 0x80000000, 0x7FFF0000, 0x00050000 | 13+ program = [+ (0x20, 0, 0, 4), # load the architecture+ (0x15, 1, 0, architecture),+ (0x06, 0, 0, kill), # another ABI numbers its calls differently+ (0x20, 0, 0, 0), # load the call number+ (0x35, 0, 1, 0x40000000), # the x32 numbering of the same architecture+ (0x06, 0, 0, kill),+ (0x15, 0, 3, socket_call),+ (0x20, 0, 0, 16), # load the socket family+ (0x15, 1, 0, socket.AF_UNIX),+ (0x06, 0, 0, refuse),+ (0x06, 0, 0, allow),+ ]+ filters = b"".join(struct.pack("HBBI", *instruction) for instruction in program)+ held = ctypes.create_string_buffer(filters)+ filter_program = struct.pack("HP", len(program), ctypes.addressof(held))+ if libc.prctl(22, 2, filter_program, 0, 0):+ raise OSError(ctypes.get_errno(), "seccomp")+++def confine(work: str, readable: tuple[str, ...] = ()) -> None:+ """Keep this process and every child to ``work``, the libraries and ``readable``, and+ to Unix sockets. Runs of different projects share one container; these limits need no+ privilege and cannot be taken off again. A sandbox on another system than Linux is a+ development sandbox with no isolation at all."""+ if sys.platform != "linux":+ return+ libc = _libc()+ if libc.prctl(38, 1, 0, 0, 0): # no_new_privs: an unprivileged filter requires it+ raise OSError(ctypes.get_errno(), "no_new_privs")+ _landlock(libc, work, readable)+ _unix_sockets_only(libc)+++class Interrupted(BaseException):+ """Not an Exception: a cell's own ``except Exception`` must not swallow its deadline."""+++def _interrupt(_signal, _frame):+ raise Interrupted+++class _Output(io.TextIOBase):+ """What a cell printed, kept to its first and last halves: a loop that prints without+ end cannot fill the kernel's memory."""++ half = OUTPUT_CHARS // 2++ def __init__(self):+ self.head, self.tail, self.omitted = "", "", 0++ def writable(self):+ return True++ def write(self, text):+ room = self.half - len(self.head)+ self.head += text[:room]+ if rest := text[room:]:+ kept = self.tail + rest+ self.omitted += max(0, len(kept) - self.half)+ self.tail = kept[-self.half :]+ return len(text)++ def result(self) -> tuple[str, bool]:+ gap = f"\n… {self.omitted:,} characters omitted …\n" if self.omitted else ""+ # A lone surrogate is valid in a Python string and in no JSON a server will send on.+ text = (self.head + gap + self.tail).encode("utf-8", "replace").decode()+ return text, bool(self.omitted)+++def run(code, namespace, timeout, cell):+ printed, failure = _Output(), _Output()+ started = time.monotonic()+ # One name per cell: a traceback through an earlier cell's function shows that cell.+ linecache.cache[cell] = (len(code), None, code.splitlines(keepends=True), cell)+ signal.alarm(timeout)+ try:+ with contextlib.redirect_stdout(printed), contextlib.redirect_stderr(printed):+ tree = ast.parse(code, cell)+ shown = tree.body.pop() if tree.body and isinstance(tree.body[-1], ast.Expr) else None+ exec(compile(tree, cell, "exec"), namespace)+ if shown is not None:+ value = eval(compile(ast.Expression(shown.value), cell, "eval"), namespace)+ if value is not None:+ print(repr(value))+ except Interrupted:+ failure.write(f"The execution ran longer than {timeout}s and was interrupted.")+ except BaseException as exc:+ failure.write(+ "".join(traceback.format_exception(type(exc), exc, exc.__traceback__.tb_next))+ )+ finally:+ signal.alarm(0)+ output, truncated = printed.result()+ error = failure.result()[0]+ return {+ "ok": not error,+ "output": output,+ "error": error,+ "truncated": truncated,+ "seconds": round(time.monotonic() - started, 3),+ }+++def serve(path, limits):+ for name, value in limits.get("rlimits", {}).items():+ resource.setrlimit(getattr(resource, name), (value, value))+ if "cpus" in limits:+ os.sched_setaffinity(0, sorted(os.sched_getaffinity(0))[: limits["cpus"]])+ signal.signal(signal.SIGALRM, _interrupt)+ # A kernel has no display: plots are files.+ os.environ.setdefault("MPLBACKEND", "Agg")+ work = os.getcwd()+ sys.path.insert(0, work)+ # Before the socket exists: a kernel that answers is a confined kernel.+ confine(work, readable=tuple(limits.get("readable", ())))+ namespace = {"__name__": "__main__"}+ cells = 0+ listener = socket.socket(socket.AF_UNIX)+ listener.bind(path)+ listener.listen()+ while True:+ connection, _ = listener.accept()+ # A caller that left, or sent no request, takes nothing down with it.+ with (+ contextlib.suppress(OSError, ValueError, KeyError),+ connection,+ connection.makefile("rwb") as stream,+ ):+ request = json.loads(stream.readline())+ cells += 1+ reply = run(request["code"], namespace, request["timeout"], f"<cell {cells}>")+ stream.write(json.dumps(reply).encode())+++if __name__ == "__main__":+ serve(sys.argv[2], json.loads(sys.argv[3]) if len(sys.argv) > 3 else {})diff --git a/sandbox/package_child.py b/sandbox/package_child.pyindex 2a9ca235..c6f292b5 100644--- a/sandbox/package_child.py+++ b/sandbox/package_child.py@@ -21,6 +21,12 @@ def main():os.sched_setaffinity(0, sorted(os.sched_getaffinity(0))[: request["cpus"]])root = Path.cwd()entrypoint = root / "package" / request["entrypoint"]+ # Python's isolated mode leaves this file's folder off the import path.+ sys.path.insert(0, str(Path(__file__).parent))+ from kernel import confine++ del sys.path[0]+ confine(str(root))sys.path.insert(0, str(entrypoint.parent))sys.path.insert(0, str(root / "package"))sys.argv = [diff --git a/sandbox/server.py b/sandbox/server.pyindex ddd35872..de6410db 100644--- a/sandbox/server.py+++ b/sandbox/server.py@@ -20,7 +20,7 @@ from starlette.requests import Requestfrom starlette.responses import JSONResponse, Response, StreamingResponsefrom starlette.routing import Route-from sandbox import execute, packages+from sandbox import execute, kernel, packages, workspacesfrom sandbox.documents.checkpoints import MAX_CACHE_BYTESfrom sandbox.documents.languages import validate_languagesfrom sandbox.protocol import FramingError, HeaderReader, frame, header_bytes@@ -228,16 +228,42 @@ async def run(request: Request) -> Response:async def health(_request: Request) -> Response:- return JSONResponse({"ok": True, "runtime": packages.runtime_id()})+ # ``landlock`` 0 means this host keeps runs apart by uid alone.+ return JSONResponse(+ {"ok": True, "runtime": packages.runtime_id(), "landlock": kernel.landlock_abi()}+ )+++def _guarded(handler):+ async def call(request: Request) -> Response:+ if not _authorized(request):+ return JSONResponse({"error": "unauthorized"}, status_code=401)+ return await handler(request)++ return call@contextlib.asynccontextmanagerasync def lifespan(_app: Starlette) -> AsyncIterator[None]:execute.runs_dir()- yield+ stop = threading.Event()+ watcher = threading.Thread(target=workspaces.watch, args=(stop,), daemon=True)+ watcher.start()+ try:+ yield+ finally:+ stop.set()+ await run_in_threadpool(watcher.join)app = Starlette(- routes=[Route("/v1/run", run, methods=["POST"]), Route("/health", health, methods=["GET"])],+ routes=[+ Route("/v1/run", run, methods=["POST"]),+ Route("/health", health, methods=["GET"]),+ *(+ Route(path, _guarded(handler), methods=methods)+ for path, handler, methods in workspaces.ROUTES+ ),+ ],lifespan=lifespan,)diff --git a/sandbox/workspaces.py b/sandbox/workspaces.pynew file mode 100644index 00000000..fb873238--- /dev/null+++ b/sandbox/workspaces.py@@ -0,0 +1,474 @@+"""Project workspaces: a folder for each project that outlives its kernels, and one kernel+for each conversation in it. Versions a project reads are copied in once; a kernel is+disposable and its files stay.++ <root>/<project>/data/<name> read-only to every kernel of the project+ <root>/<project>/conversations/<conversation>/ a kernel's working directory, with+ ``data`` linked to the project's data+"""++from __future__ import annotations++import contextlib+import json+import logging+import os+import re+import shutil+import signal+import socket+import subprocess+import sys+import threading+import time+import uuid+from dataclasses import dataclass, field+from pathlib import Path++from starlette.concurrency import run_in_threadpool+from starlette.requests import Request+from starlette.responses import JSONResponse, Response++from sandbox import execute++logger = logging.getLogger(__name__)+KERNEL_BYTES = 2 * execute.GIB+KERNEL_CPUS = 2+IDLE_SECONDS = 15 * 60+# A new kernel waits this long for memory, then the conversation is told the sandbox is full.+MEMORY_WAIT_SECONDS = 20+MAX_DATA_BYTES = execute.GIB+MAX_FILE_BYTES = 64 * 1024**2+MAX_EXECUTION_SECONDS = 600+DATA_BUDGET_BYTES = 20 * execute.GIB+# What a kernel may answer: its bounded output and error, as JSON. The kernel runs the+# tenant's code, so the server holds it to this size itself.+MAX_REPLY_BYTES = 1024**2+START_SECONDS = 20+REPLY_GRACE_SECONDS = 15+WATCH_SECONDS = 1+FOOTPRINT_EVERY = 5+RENEW_EVERY = 60+CLEAN_EVERY = 300+ID = re.compile(r"[A-Za-z0-9][A-Za-z0-9_-]{0,63}")+NAME = re.compile(r"[A-Za-z0-9][A-Za-z0-9._-]{0,127}")+KERNEL = Path(__file__).with_name("kernel.py")+RESTARTED = "The kernel restarted: variables from earlier cells are gone, files remain."+++def root() -> Path:+ path = Path(os.environ.get("SANDBOX_WORKSPACES", "/workspaces"))+ path.mkdir(mode=0o711, parents=True, exist_ok=True)+ return path+++class BusyError(Exception):+ """The kernel's cell or the sandbox's memory is taken now."""+++class StartError(Exception):+ pass+++@dataclass+class Kernel:+ slot: execute.Slot+ work: Path+ process: subprocess.Popen+ # The working directory, held open: the socket is reached through it. It closes when+ # the kernel ended and no run uses it, or its number could name another kernel's.+ directory: int+ used: float = field(default_factory=time.monotonic)+ executing: threading.Lock = field(default_factory=threading.Lock)+ users: int = 0+ ended: bool = False++ @property+ def socket_path(self) -> str:+ # A Unix socket path holds 107 bytes, and the working directory's path is as long+ # as the deployment makes it: the open directory names it in a few bytes.+ return f"/proc/self/fd/{self.directory}/{socket_name(self.slot)}"+++def socket_name(slot: execute.Slot) -> str:+ # Each kernel its own name: a run still holding a stopped kernel's directory reaches no+ # kernel that replaced it in the same folder.+ return f".kernel-{slot.token[:16]}.sock"+++_kernels: dict[tuple[str, str], Kernel] = {}+_registry = threading.Lock()+# One start at a time for each conversation: a start that waits for memory holds up no other.+_starts: dict[tuple[str, str], threading.Lock] = {}+++def project_dir(project: str) -> Path:+ path = root() / project+ for part in (path, path / "data", path / "conversations"):+ with contextlib.suppress(FileExistsError):+ part.mkdir(mode=0o755)+ return path+++def _answers(path: str) -> bool:+ with socket.socket(socket.AF_UNIX) as probe:+ try:+ probe.connect(path)+ except OSError:+ return False+ return True+++def _start(project: str, conversation: str) -> tuple[Kernel, str | None]:+ """A kernel for the conversation, and why its variables are gone when an earlier+ kernel of the same conversation existed."""+ data = project_dir(project) / "data"+ work = data.parent / "conversations" / conversation+ restarted = RESTARTED if work.exists() else None+ work.mkdir(mode=0o700, exist_ok=True)+ # Earlier kernels leave their sockets behind.+ for stale in work.glob(".kernel-*.sock"):+ stale.unlink(missing_ok=True)+ link = work / "data"+ if not link.is_symlink():+ link.unlink(missing_ok=True)+ link.symlink_to("../../data")+ slot = execute.reserve(KERNEL_BYTES, execute.memory_budget(), MEMORY_WAIT_SECONDS)+ process = None+ directory = os.open(work, os.O_PATH | os.O_DIRECTORY | os.O_CLOEXEC)+ try:+ execute.hand_over(work, slot.uid)+ limits = {+ "cpus": KERNEL_CPUS,+ "readable": [str(data)],+ "rlimits": {+ "RLIMIT_FSIZE": execute.FILE_SIZE_BYTES,+ "RLIMIT_NOFILE": execute.FILE_DESCRIPTORS,+ **({} if slot.uid is None else {"RLIMIT_NPROC": execute.PROCESSES}),+ },+ }+ errors = work.parent / f".{conversation}.err"+ with open(errors, "wb") as stderr:+ process = subprocess.Popen(+ [sys.executable, "-I", str(KERNEL), "serve", socket_name(slot), json.dumps(limits)],+ stdout=subprocess.DEVNULL,+ stderr=stderr,+ **execute.confinement(work, slot.uid),+ )+ kernel = Kernel(slot, work, process, directory)+ deadline = time.monotonic() + START_SECONDS+ while not _answers(kernel.socket_path):+ code = process.poll()+ if code is not None or time.monotonic() > deadline:+ ended = (+ f"it ended with {_ending(code)}"+ if code is not None+ else f"it did not answer within {START_SECONDS} s"+ )+ cause = errors.read_text(errors="replace").strip()[-400:]+ raise StartError(f"The kernel did not start: {ended}. {cause}".strip())+ time.sleep(0.02)+ except BaseException:+ if process is not None:+ execute.end(work, process.pid, slot.uid)+ process.wait()+ os.close(directory)+ execute.release(slot)+ raise+ return kernel, restarted+++def _ending(code: int) -> str:+ if code < 0:+ with contextlib.suppress(ValueError):+ return signal.Signals(-code).name+ return f"exit status {code}"+++def _close_unused(kernel: Kernel) -> None:+ """Under ``_registry``."""+ if kernel.ended and not kernel.users and kernel.directory >= 0:+ os.close(kernel.directory)+ kernel.directory = -1+++def stop(project: str, conversation: str, kernel: Kernel | None = None) -> None:+ """End the conversation's kernel; with ``kernel``, only while it is still that one, so a+ failure seen on an earlier kernel never ends the one that replaced it. A start for the+ same conversation waits until the folder is taken back."""+ key = (project, conversation)+ with _registry:+ starting = _starts.get(key)+ with starting or contextlib.nullcontext():+ with _registry:+ held = _kernels.get(key)+ if held is None or (kernel is not None and held is not kernel):+ return+ del _kernels[key]+ execute.end(held.work, held.process.pid, held.slot.uid)+ held.process.wait()+ with _registry:+ held.ended = True+ _close_unused(held)+ execute.release(held.slot)+++def _text(value) -> str:+ # A lone surrogate is valid in a Python string and in no response this server sends.+ return str(value).encode("utf-8", "replace").decode()+++def _exchange(kernel: Kernel, request: dict) -> dict:+ """One cell and its reply, within one deadline and one size. The kernel runs the+ tenant's code: nothing it sends is taken on trust."""+ deadline = time.monotonic() + request["timeout"] + REPLY_GRACE_SECONDS+ received = bytearray()+ with socket.socket(socket.AF_UNIX) as connection:+ connection.settimeout(REPLY_GRACE_SECONDS)+ connection.connect(kernel.socket_path)+ connection.sendall(json.dumps(request).encode() + b"\n")+ while True:+ connection.settimeout(max(0.01, deadline - time.monotonic()))+ chunk = connection.recv(65536)+ if not chunk:+ break+ received += chunk+ if len(received) > MAX_REPLY_BYTES or time.monotonic() > deadline:+ raise ValueError("The kernel's reply passed its limits.")+ reply = json.loads(received)+ return {+ "ok": reply["ok"] is True,+ "output": _text(reply["output"]),+ "error": _text(reply["error"]),+ "truncated": reply["truncated"] is True,+ "seconds": float(reply["seconds"]),+ }+++def run(project: str, conversation: str, code: str, timeout: int) -> dict:+ """Run a cell in the conversation's kernel, starting one when it has none."""+ restarted = None+ key = (project, conversation)+ with _registry:+ starting = _starts.setdefault(key, threading.Lock())+ with starting:+ with _registry:+ kernel = _kernels.get(key)+ if kernel is not None:+ kernel.users += 1+ if kernel is None:+ kernel, restarted = _start(project, conversation)+ with _registry:+ kernel.users += 1+ _kernels[key] = kernel+ try:+ if not kernel.executing.acquire(blocking=False):+ raise BusyError("This conversation's kernel already runs a cell.")+ try:+ reply = _exchange(kernel, {"code": code, "timeout": timeout})+ except (OSError, ValueError, KeyError, TypeError):+ # The kernel's own deadline did not fire: it is stuck outside Python, or dead.+ stop(project, conversation, kernel)+ reply = {+ "ok": False,+ "output": "",+ "error": "The kernel ended during the cell: it ran out of memory or stopped "+ "answering. Variables are gone, files remain.",+ "truncated": False,+ "seconds": 0.0,+ }+ finally:+ kernel.used = time.monotonic()+ kernel.executing.release()+ finally:+ with _registry:+ kernel.users -= 1+ _close_unused(kernel)+ return {**reply, "restarted": restarted}+++def _clean_data() -> None:+ """Above the budget, the versions no conversation asked for longest go first. A kernel+ that still reads one keeps its open file; the next cell copies it in again."""+ files = [path for path in root().glob("*/data/*") if path.is_file()]+ total = sum(path.stat().st_size for path in files)+ for path in sorted(files, key=lambda path: path.stat().st_mtime):+ if total <= DATA_BUDGET_BYTES:+ return+ total -= path.stat().st_size+ path.unlink(missing_ok=True)+++def _check(key: tuple[str, str], kernel: Kernel, tick: int) -> None:+ ended = kernel.process.poll() is not None or (+ not kernel.executing.locked() and time.monotonic() - kernel.used > IDLE_SECONDS+ )+ if not ended and tick % FOOTPRINT_EVERY == 0:+ try:+ used = execute.footprint(kernel.work, kernel.process.pid, kernel.slot.uid)+ except execute.TooManyFilesError:+ used = kernel.slot.limit + 1+ ended = used > kernel.slot.limit+ if ended:+ stop(*key, kernel)+ elif tick % RENEW_EVERY == 0:+ execute.renew(kernel.slot)+++def watch(stop_event: threading.Event) -> None:+ tick = 0+ while not stop_event.wait(WATCH_SECONDS):+ tick += 1+ for key, kernel in list(_kernels.items()):+ try:+ _check(key, kernel, tick)+ except Exception:+ # One kernel's failure must not end the watch of all the others.+ logger.exception("kernel %s could not be checked", key)+ if tick % CLEAN_EVERY == 0:+ try:+ _clean_data()+ except OSError:+ logger.exception("workspace data could not be cleaned")+ for key in list(_kernels):+ stop(*key)+++def _ids(request: Request) -> tuple[str, str] | None:+ project = request.path_params["project"]+ conversation = request.path_params.get("conversation", "x")+ return (project, conversation) if ID.fullmatch(project) and ID.fullmatch(conversation) else None+++def _invalid() -> Response:+ return JSONResponse({"error": "Invalid project, conversation or file name."}, status_code=400)+++async def has_data(request: Request) -> Response:+ ids, name = _ids(request), request.path_params["name"]+ if ids is None or not NAME.fullmatch(name):+ return _invalid()+ path = root() / ids[0] / "data" / name+ if not path.is_file():+ return Response(status_code=404)+ # Use keeps a version from the cleanup.+ os.utime(path)+ return Response(status_code=204)+++async def put_data(request: Request) -> Response:+ ids, name = _ids(request), request.path_params["name"]+ if ids is None or not NAME.fullmatch(name):+ return _invalid()+ data = project_dir(ids[0]) / "data"+ partial = data / f".{uuid.uuid4().hex}"+ written = 0+ try:+ with open(partial, "xb") as fh:+ async for chunk in request.stream():+ written += len(chunk)+ if written > MAX_DATA_BYTES:+ return JSONResponse({"error": "The file is too large."}, status_code=413)+ fh.write(chunk)+ partial.chmod(0o444)+ partial.replace(data / name)+ finally:+ with contextlib.suppress(FileNotFoundError):+ partial.unlink()+ return Response(status_code=204)+++async def run_cell(request: Request) -> Response:+ ids = _ids(request)+ body = await request.json()+ timeout = body.get("timeout")+ if (+ ids is None+ or not isinstance(body.get("code"), str)+ or type(timeout) is not int+ or not 1 <= timeout <= MAX_EXECUTION_SECONDS+ ):+ return JSONResponse({"error": "code and timeout are required."}, status_code=400)+ try:+ return JSONResponse(await run_in_threadpool(run, *ids, body["code"], timeout))+ except (BusyError, execute.BusyError):+ return JSONResponse({"error": "The sandbox has no memory free now."}, status_code=503)+ except StartError as exc:+ return JSONResponse({"error": str(exc)}, status_code=503)+++async def get_file(request: Request) -> Response:+ ids, name = _ids(request), request.path_params["name"]+ if ids is None or not NAME.fullmatch(name):+ return _invalid()+ # A flat name under a parent the kernel cannot rename: no path it controls is followed.+ work = root() / ids[0] / "conversations" / ids[1]+ opened = execute.claim(work / name, MAX_FILE_BYTES)+ if opened is None:+ return JSONResponse({"error": "No readable regular file has that name."}, status_code=404)+ with opened:+ # The size was checked at open; a running cell may still be writing the file.+ content = await run_in_threadpool(opened.read, MAX_FILE_BYTES + 1)+ if len(content) > MAX_FILE_BYTES:+ return JSONResponse({"error": "No readable regular file has that name."}, status_code=404)+ return Response(content, media_type="application/octet-stream")+++def forget(project: str, data: list[str], conversations: list[str]) -> None:+ for conversation in conversations:+ stop(project, conversation)+ shutil.rmtree(root() / project / "conversations" / conversation, ignore_errors=True)+ (root() / project / "conversations" / f".{conversation}.err").unlink(missing_ok=True)+ for name in data:+ (root() / project / "data" / name).unlink(missing_ok=True)+++def remove(project: str) -> None:+ with _registry:+ keys = [key for key in _kernels if key[0] == project]+ for key in [key for key in _starts if key[0] == project]:+ del _starts[key]+ for key in keys:+ stop(*key)+ shutil.rmtree(root() / project, ignore_errors=True)+++async def forget_files(request: Request) -> Response:+ body = await request.json()+ project = request.path_params["project"]+ data, conversations = body.get("data", []), body.get("conversations", [])+ if (+ not ID.fullmatch(project)+ or not all(isinstance(n, str) and NAME.fullmatch(n) for n in data)+ or not all(isinstance(c, str) and ID.fullmatch(c) for c in conversations)+ ):+ return _invalid()+ await run_in_threadpool(forget, project, data, conversations)+ return Response(status_code=204)+++async def remove_workspace(request: Request) -> Response:+ project = request.path_params["project"]+ if not ID.fullmatch(project):+ return _invalid()+ await run_in_threadpool(remove, project)+ return Response(status_code=204)+++async def delete(request: Request) -> Response:+ ids = _ids(request)+ if ids is None:+ return _invalid()+ await run_in_threadpool(stop, *ids)+ return Response(status_code=204)+++ROUTES = [+ ("/v1/workspaces/{project}", remove_workspace, ["DELETE"]),+ ("/v1/workspaces/{project}/forget", forget_files, ["POST"]),+ ("/v1/workspaces/{project}/data/{name}", has_data, ["HEAD"]),+ ("/v1/workspaces/{project}/data/{name}", put_data, ["PUT"]),+ ("/v1/workspaces/{project}/kernels/{conversation}", delete, ["DELETE"]),+ ("/v1/workspaces/{project}/kernels/{conversation}/run", run_cell, ["POST"]),+ ("/v1/workspaces/{project}/kernels/{conversation}/files/{name}", get_file, ["GET"]),+]diff --git a/scripts/deploy_ecs.py b/scripts/deploy_ecs.pyindex 3e158096..836a09be 100644--- a/scripts/deploy_ecs.py+++ b/scripts/deploy_ecs.py@@ -19,6 +19,7 @@ from pathlib import PathROOT = Path(__file__).resolve().parents[1]HEALTH_CHECKED_QUEUES = {"celery-io-worker": "io",+ "celery-assistant-worker": "assistant","celery-traces-worker": "io_traces","celery-landing-worker": "landing","celery-interactive-worker": "interactive",@@ -145,6 +146,7 @@ def preflight(cluster):"celery-landing-worker","celery-interactive-worker","celery-traces-worker",+ "celery-assistant-worker",):service = describe_service(cluster, name)family = service["taskDefinition"].rsplit("/", 1)[-1].rsplit(":", 1)[0]diff --git a/tests/conftest.py b/tests/conftest.pyindex 10fab773..fa8fd444 100644--- a/tests/conftest.py+++ b/tests/conftest.py@@ -438,12 +438,16 @@ def sandbox_server():port = probe.getsockname()[1]url, token = f"http://127.0.0.1:{port}", secrets.token_hex(16)scratch = tempfile.TemporaryDirectory(prefix="sandbox-test-")+ # Deeper than a Unix socket path holds, as a deployment's temporary directory may be.+ deep = Path(scratch.name) / ("deep-" * 20)+ deep.mkdir()env = {"PATH": os.environ.get("PATH", "/usr/bin:/bin"),"SANDBOX_TOKEN": token,"SANDBOX_ALLOW_SHARED_UID": "1",+ "SANDBOX_WORKSPACES": str(deep / "workspaces"),# Its own memory ledger: parallel test servers must not share /tmp/sandbox.- "TMPDIR": scratch.name,+ "TMPDIR": str(deep),}command = [sys.executable, "-m", "sandbox", "--host", "127.0.0.1", "--port", str(port)]container = None@@ -472,6 +476,8 @@ def sandbox_server():f"{Path(__file__).resolve().parents[1] / 'sandbox'}:/code/sandbox:ro","-e",f"SANDBOX_TOKEN={token}",+ "-e",+ "SANDBOX_WORKSPACES=/tmp/workspaces","--entrypoint","python",]diff --git a/tests/coverage_map.py b/tests/coverage_map.pyindex 5938c627..9d80c8ee 100644--- a/tests/coverage_map.py+++ b/tests/coverage_map.py@@ -234,6 +234,40 @@ COVERAGE_MAP: dict[str, Entry] = {"A pipeline step runs from its retained package with its pinned runtime and no ""network; a failed exit never reports success.",),+ "assistant-turn": Entry(+ S2,+ INVARIANT,+ "A turn runs from a message to the reply and saves every step: a turn that stopped "+ "moving is marked interrupted and writes nothing more, a stop ends it at the next "+ "step, a question ends it, and a dataset's deletion removes its copies from the "+ "workspace.",+ ),+ "assistant-api": Entry(+ S1,+ CONTRACT,+ "Only a project member reaches a thread; the stream resumes after a cursor without "+ "repeating an event; a guest cannot send.",+ ),+ "assistant-results": Entry(+ S3,+ CONTRACT,+ "A presented result holds the rows and images the kernel computed; a file that is "+ "missing or not a table or image refuses the document, and only a project member "+ "reads an image.",+ ),+ "api-compression": Entry(+ S4,+ CONTRACT,+ "API responses are gzip-compressed for a client that accepts it, and an event "+ "stream is never compressed, so each event reaches the page when it is sent.",+ ),+ "workspaces": Entry(+ S3,+ CONTRACT,+ "Every workspace provider keeps a conversation's variables between cells, copies a "+ "version in once and read-only, reports a kernel that ended and starts another with "+ "the files kept, and keeps a project from the data, processes and network of others.",+ ),"metrics-math": Entry(S3,LOGIC,diff --git a/tests/journeys/test_data.py b/tests/journeys/test_data.pyindex e9e00730..d757cd76 100644--- a/tests/journeys/test_data.py+++ b/tests/journeys/test_data.py@@ -45,7 +45,7 @@ def test_data(read_a_scanned_document_once_per_page(workshop, cli, sample_agent, worker)publish_version_bound_analytics(workshop, cli, sample_agent, rest, worker, tmp_path)- keep_one_preparation_until_the_agent_finishes(+ a_failed_preparation_is_repaired_from_the_console(console, workshop, cli, sample_agent, project, worker, tmp_path)@@ -519,7 +519,7 @@ def publish_version_bound_analytics(workshop, cli, sample_agent, rest, worker, tassert rest_cell["analytics"] == report-def keep_one_preparation_until_the_agent_finishes(+def a_failed_preparation_is_repaired_from_the_console(console, workshop, cli, sample_agent, project, worker, tmp_path):dataset = workshop.call(@@ -528,20 +528,6 @@ def keep_one_preparation_until_the_agent_finishes()["dataset"]["id"]console.goto(f"/datasets?projectId={project}")console.sees("Continuous preparation")- args = {"dataset": dataset, "request_key": "continuous-preparation"}- started = workshop.call("start_dataset_preparation", args)["preparation_workflow"]- assert (- workshop.call("start_dataset_preparation", args)["preparation_workflow"]["id"]- == started["id"]- )- console.sees("Preparing")- workflow = {"dataset": dataset, "preparation_id": started["id"]}- assert workshop.call_result(- "update_dataset_preparation", {**workflow, "state": "completed"}- ).isError- assert workshop.call_result(- "start_dataset_preparation", {**args, "request_key": "another"}- ).isErrorupload(cli, sample_agent, tickets(tmp_path), "--dataset", dataset)drain(worker)source = workshop.call("inspect_dataset", {"dataset": dataset})["active"]@@ -625,27 +611,4 @@ def keep_one_preparation_until_the_agent_finishes()console.save_evidence("dataset-preparation-repaired")console.goto(f"/datasets?projectId={project}")- console.sees("Preparing")- current = workshop.call("inspect_dataset_workbench", {"dataset": dataset})- assert current["preparation_workflow"]["state"] == "preparing"- events = workshop.read("overmind://activity")["results"]- preparation_events = [e for e in events if e["kind"] == "dataset_preparation"]- assert len(preparation_events) == 1- event_id = preparation_events[0]["id"]- assert not [e for e in events if e["task_id"] == result["job"]["id"]]- workshop.call("update_dataset_preparation", {**workflow, "state": "paused"})- console.sees("Preparation paused")- workshop.call("update_dataset_preparation", {**workflow, "state": "preparing"})- console.sees("Preparing")- output = workshop.call("inspect_dataset", {"dataset": dataset})["active"]["id"]- completion = {**workflow, "state": "completed", "outputs": [output]}- workshop.call("update_dataset_preparation", completion)- workshop.call("update_dataset_preparation", completion)- console.press("unread notification")- console.wait_until(- f"() => document.querySelector('[data-activity-id=\"{event_id}\"]')?.dataset.activityStatus === 'completed'"- )console.sees("Ready")- assert workshop.call_result(- "update_dataset_preparation", {**workflow, "state": "preparing"}- ).isErrordiff --git a/tests/journeys/test_live_dataset_stream.py b/tests/journeys/test_live_dataset_stream.pyindex fc613821..51b598f0 100644--- a/tests/journeys/test_live_dataset_stream.py+++ b/tests/journeys/test_live_dataset_stream.py@@ -39,5 +39,5 @@ def test_open_dataset_streams_hold_no_database_connection(with ExitStack() as stack:for _ in range(5):lines = _open(stack, url, key).iter_lines()- next(line for line in lines if "replay.done" in line)+ next(line for line in lines if '"type": "connected"' in line)assert _client_connections() <= beforediff --git a/tests/journeys/test_recovery.py b/tests/journeys/test_recovery.pyindex 269890e2..0cba28b9 100644--- a/tests/journeys/test_recovery.py+++ b/tests/journeys/test_recovery.py@@ -1,15 +1,11 @@import multiprocessingimport osimport uuid-from datetime import timedeltaimport pytestimport redis-from django.utils import timezonefrom overbae.celery import app-from overbae.models import Activity, DatasetPreparation-from overbae.tasks.datasets import reap_stuck_runsfrom overbae.tasks.utils.task_lock import acquire_task_lock, with_task_lockfrom .conftest import GOOD_REPLY@@ -120,39 +116,3 @@ def test_a_failing_judge_is_tried_three_times_then_scored_with_errors(clock.shift(SWEEP_WAIT)beat(SWEEP_SPANS, SWEEP_TRAJECTORIES)assert judge_calls() == 3 * per_pass + 3---def test_console_ends_an_open_preparation_and_idle_preparations_expire(console, workshop):- project = workshop.project()["id"]- datasets = [- workshop.call(- "start_dataset", {"name": name, "brief": "Prepare support rows", "intent": "train"}- )["dataset"]["id"]- for name in ("Abandoned preparation", "Idle preparation", "Recently active preparation")- ]- for dataset in datasets:- workshop.call(- "start_dataset_preparation", {"dataset": dataset, "request_key": f"open-{dataset}"}- )- console.goto(f"/datasets/{datasets[0]}?projectId={project}")- console.sees("Preparing")- console.press("End preparation")- console.wait_until("() => !document.body.textContent.includes('End preparation')")- ended = workshop.call("inspect_dataset_workbench", {"dataset": datasets[0]})- assert ended["preparation_workflow"]["state"] == "cancelled"-- idle = DatasetPreparation.objects.get(dataset_id=datasets[1])- active = DatasetPreparation.objects.get(dataset_id=datasets[2])- stale = timezone.now() - timedelta(hours=25)- DatasetPreparation.objects.filter(pk__in=[idle.pk, active.pk]).update(updated_at=stale)- Activity.objects.filter(key=f"preparation:{idle.pk}").update(updated_at=stale)- assert reap_stuck_runs()["preparations_expired"] == 1- kept = workshop.call("inspect_dataset_workbench", {"dataset": datasets[2]})- assert kept["preparation_workflow"]["state"] == "preparing"- expired = workshop.call("inspect_dataset_workbench", {"dataset": datasets[1]})- assert expired["preparation_workflow"]["state"] == "cancelled"- restarted = workshop.call(- "start_dataset_preparation", {"dataset": datasets[1], "request_key": "after-expiry"}- )- assert restarted["preparation_workflow"]["state"] == "preparing"- console.healthy()diff --git a/tests/mcp_fixtures.py b/tests/mcp_fixtures.pyindex 739ded8c..6356cef1 100644--- a/tests/mcp_fixtures.py+++ b/tests/mcp_fixtures.py@@ -27,8 +27,6 @@ EXPECTED_TOOL_NAMES = {"inspect_jobs","list_objects","get_project_overview",- "start_dataset_preparation",- "update_dataset_preparation","report_onboarding_progress","save_training_plan","deploy_finetune",diff --git a/tests/test_activity_contract.py b/tests/test_activity_contract.pyindex d6a5a4c0..32718375 100644--- a/tests/test_activity_contract.py+++ b/tests/test_activity_contract.py@@ -10,9 +10,7 @@ from rest_framework.test import APIClientfrom overbae.models import (Activity,- Cell,Dataset,- DatasetPipelineRun,FinetuningJob,ProjectMembership,)@@ -184,53 +182,6 @@ def test_reported_onboarding_uses_current_roadmap_without_notification_noise():assert rejected.isError-def test_preparation_completion_rejects_foreign_outputs_and_unfinished_jobs():- context = mcp_context(permission=["read", "write"], client_name="codex")- peer = mcp_context(permission=["read", "write"])- dataset = Dataset.objects.create(project=context.project, name="Preparing", state="idle")- foreign = Dataset.objects.create(project=peer.project, name="Foreign", state="idle")- source = Cell.objects.create(dataset=dataset, position=0, state="ok", fingerprint="a" * 64)- foreign_cell = Cell.objects.create(- dataset=foreign, position=0, state="ok", fingerprint="b" * 64- )- workflow = call(- context, "start_dataset_preparation", dataset=str(dataset.pk), request_key="prepare"- )["preparation_workflow"]- assert workflow["actor_kind"] == "codex"- assert workflow["actor_name"] == "Codex"- args = {- "dataset": str(dataset.pk),- "preparation_id": workflow["id"],- "state": "completed",- "outputs": [str(foreign_cell.pk)],- }- assert call_tool("update_dataset_preparation", args, context).isError- args["outputs"] = [str(source.pk)]- DatasetPipelineRun.objects.create(- dataset=dataset,- source=source,- source_fingerprint=source.fingerprint,- request_key="pending",- state="queued",- )- assert call_tool("update_dataset_preparation", args, context).isError- assert call_tool("update_dataset_preparation", args, peer).isError- assert (- call(context, "inspect_dataset_workbench", dataset=str(dataset.pk))["preparation_workflow"][- "state"- ]- == "preparing"- )- call(- context,- "update_dataset_preparation",- dataset=str(dataset.pk),- preparation_id=workflow["id"],- state="cancelled",- )- assert call_tool("update_dataset_preparation", args, context).isError--@pytest.mark.parametrize("client,kind",[diff --git a/tests/test_api_compression.py b/tests/test_api_compression.pynew file mode 100644index 00000000..4ce3db88--- /dev/null+++ b/tests/test_api_compression.py@@ -0,0 +1,20 @@+import pytest+from conftest import frozen_dataset+from factories import auth_client, make_project, make_user++pytestmark = [pytest.mark.django_db, pytest.mark.covers("api-compression")]+++def test_json_is_compressed_and_an_event_stream_is_not():+ user = make_user()+ project = make_project(member=user)+ dataset = frozen_dataset(project, user=user)+ client = auth_client(user)+ detail = client.get(f"/api/datasets/{dataset.pk}/", HTTP_ACCEPT_ENCODING="gzip")+ assert detail["Content-Encoding"] == "gzip"+ stream = client.get(+ f"/api/datasets/{dataset.pk}/events/",+ HTTP_ACCEPT_ENCODING="gzip",+ HTTP_ACCEPT="text/event-stream",+ )+ assert stream.get("Content-Encoding") is Nonediff --git a/tests/test_assistant_api.py b/tests/test_assistant_api.pynew file mode 100644index 00000000..0360a0b2--- /dev/null+++ b/tests/test_assistant_api.py@@ -0,0 +1,134 @@+import pytest+from conftest import frozen_dataset+from factories import auth_client, make_member, make_project, make_user++from overbae.models import AssistantThread+from overbae.services import workspaces+from overbae.services.assistant import log+from overbae.tasks.assistant import run_turn, stop_kernel++pytestmark = [pytest.mark.django_db, pytest.mark.covers("assistant-api")]+++def woken(monkeypatch):+ started = []+ monkeypatch.setattr(run_turn, "delay", started.append)+ return started+++def opened(user, dataset):+ return auth_client(user).post("/api/assistant-threads/", {"dataset": dataset.pk}, format="json")+++def test_a_member_opens_the_datasets_conversation_sends_and_reads_after_a_cursor(+ woken, django_capture_on_commit_callbacks+):+ user = make_user()+ project = make_project(member=user)+ dataset = frozen_dataset(project, user=user)+ client = auth_client(user)+ thread_id = opened(user, dataset).data["id"]+ assert opened(user, dataset).data["id"] == thread_id+ listed = client.get("/api/assistant-threads/", {"dataset": dataset.pk}).data+ assert [t["id"] for t in listed] == [thread_id]++ body = {"request_key": "first", "text": "Prepare this."}+ with django_capture_on_commit_callbacks(execute=True):+ sent = client.post(f"/api/assistant-threads/{thread_id}/messages/", body, format="json")+ assert sent.status_code == 202 and woken == [thread_id]++ thread = AssistantThread.objects.get(pk=thread_id)+ for text in ("one", "two", "three"):+ log.append(thread, "assistant", {"text": text, "calls": [], "usage": {"cost": 1}})+ shown = client.get(f"/api/assistant-threads/{thread_id}/events/?after=1").data+ assert [event["payload"]["text"] for event in shown] == ["two", "three"]+ # What the model alone reads stays on the server.+ assert all("usage" not in event["payload"] for event in shown)+ queue = client.get(f"/api/assistant-threads/{thread_id}/").data["queue"]+ assert [message["text"] for message in queue] == ["Prepare this."]+++def test_a_tool_result_shows_only_its_output_and_error():+ user = make_user()+ thread = AssistantThread.objects.create(+ project=(project := make_project(member=user)), dataset=frozen_dataset(project, user=user)+ )+ content = {"output": "2\n", "rows": [{"secret": 1}] * 50, "error": {"message": "late"}}+ log.append(thread, "tool_result", {"call": "c", "name": "n", "ok": False, "content": content})+ (event,) = auth_client(user).get(f"/api/assistant-threads/{thread.pk}/events/").data+ assert event["payload"]["content"] == {"output": "2\n", "error": "late"}+++def test_each_member_of_a_shared_conversation_is_told_which_messages_are_theirs(woken):+ first, second = make_user(), make_user()+ project = make_project(member=first)+ make_member(second, project)+ url = f"/api/assistant-threads/{opened(first, frozen_dataset(project, user=first)).data['id']}"+ for user, key in ((first, "a"), (second, "b")):+ message = {"request_key": key, "text": "Hello"}+ assert auth_client(user).post(f"{url}/messages/", message, format="json").status_code == 202++ thread = auth_client(second).get(f"{url}/").data+ assert [(who["email"], who["me"]) for who in thread["participants"]] == [+ (first.email, False),+ (second.email, True),+ ]+ assert [message["created_by"] for message in thread["queue"]] == [first.pk, second.pk]++ # The words of a queued message are its sender's; any member orders the queue.+ theirs = thread["queue"][0]+ change = {"message": theirs["id"], "revision": theirs["revision"]}+ for refused in ({"change": "edit", "text": "Changed"}, {"change": "remove"}):+ reply = auth_client(second).post(f"{url}/queue/", {**change, **refused}, format="json")+ assert reply.status_code == 400+ moved = {**change, "change": "move", "before": None}+ assert auth_client(second).post(f"{url}/queue/", moved, format="json").status_code == 200+++def test_stop_during_a_turn_ends_the_kernel_at_once(+ monkeypatch, django_capture_on_commit_callbacks+):+ ended = []+ monkeypatch.setattr(stop_kernel, "delay", lambda *a: ended.append(a))+ user = make_user()+ project = make_project(member=user)+ thread = AssistantThread.objects.create(+ project=project, dataset=frozen_dataset(project, user=user), state="running"+ )+ with django_capture_on_commit_callbacks(execute=True):+ stopped = auth_client(user).post(f"/api/assistant-threads/{thread.pk}/stop/")+ assert stopped.status_code == 202 and stopped.data["stop_requested"]+ assert ended == [(str(project.pk), str(thread.pk), thread.turn)]++ # A stop that arrives after a later turn began leaves that turn's kernel alone.+ provider, conversation = workspaces.provider(), thread.pk.hex+ try:+ assert provider.run(str(project.pk), conversation, "x = 1", 60).ok+ AssistantThread.objects.filter(pk=thread.pk).update(turn=thread.turn + 1)+ stop_kernel(*ended[0])+ assert provider.run(str(project.pk), conversation, "x", 60).ok+ finally:+ provider.remove(str(project.pk))+++def test_another_project_and_a_guest_cannot_use_a_conversation(woken):+ owner = make_user()+ project = make_project(member=owner)+ dataset = frozen_dataset(project, user=owner)+ thread = AssistantThread.objects.create(project=project, dataset=dataset)+ url = f"/api/assistant-threads/{thread.pk}"+ body = {"request_key": "k", "text": "Hello."}++ outsider = make_user()+ client = auth_client(outsider)+ assert client.get(f"{url}/").status_code == 404+ assert client.get(f"{url}/events/").status_code == 404+ assert client.post(f"{url}/messages/", body, format="json").status_code == 404+ assert client.post(f"{url}/stop/").status_code == 404+ assert opened(outsider, dataset).status_code == 404++ guest = make_user(is_guest=True)+ make_member(guest, project)+ assert auth_client(guest).post(f"{url}/messages/", body, format="json").status_code == 403+ assert woken == [] and not thread.inputs.exists()diff --git a/tests/test_assistant_results.py b/tests/test_assistant_results.pynew file mode 100644index 00000000..1c71abd4--- /dev/null+++ b/tests/test_assistant_results.py@@ -0,0 +1,80 @@+import pytest+from conftest import frozen_dataset+from factories import auth_client, make_project, make_user+from fakes.llm import tool_call++from overbae.services import workspaces+from overbae.services.assistant import threads, turn+from overbae.tasks.assistant import run_turn++pytestmark = [pytest.mark.django_db, pytest.mark.covers("assistant-results")]++COMPUTE = """\+import json+import matplotlib.pyplot as plt+json.dump([{"class": "first", "rows": 3}, {"class": "third", "rows": 5}], open("classes.json", "w"))+plt.bar(["first", "third"], [3, 5])+plt.savefig("classes.png")+open("notes.txt", "w").write("not an image")+"""+++def present(image):+ return tool_call(+ "present",+ {+ "summary": "Showing",+ "root": {+ "type": "Stack",+ "children": [+ {+ "type": "Chart",+ "title": "Rows",+ "kind": "bar",+ "data": "classes",+ "x": "class",+ "y": ["rows"],+ },+ {"type": "Image", "title": "Plot", "image": "plot"},+ ],+ },+ "tables": {"classes": "classes.json"},+ "images": {"plot": image},+ },+ )+++def test_a_result_carries_the_kernels_rows_and_image_and_refuses_a_file_that_is_not_one(+ fake_llm, monkeypatch+):+ monkeypatch.setattr(run_turn, "delay", lambda *a: None)+ user = make_user()+ project = make_project(member=user)+ thread = threads.open_thread(frozen_dataset(project, user=user))+ fake_llm.stream_rounds(+ [+ ([tool_call("run_python", {"summary": "Computing", "code": COMPUTE})], ""),+ ([present("notes.txt")], ""),+ ([present("classes.png")], ""),+ ([], "Shown."),+ ]+ )+ threads.send(thread, user, request_key="first", text="Show the classes.")+ try:+ turn.run(thread.pk)+ finally:+ workspaces.provider().remove(str(project.pk))++ computed, refused, shown = thread.events.filter(kind="tool_result")+ assert computed.payload["ok"], computed.payload+ assert not refused.payload["ok"]+ assert "PNG, JPEG or WebP" in refused.payload["content"]["error"]+ result = shown.presentation+ assert result["data"]["classes"] == [+ {"class": "first", "rows": 3},+ {"class": "third", "rows": 5},+ ]+ url = f"/api/assistant-threads/{thread.pk}/images/{result['images']['plot']}/"+ image = auth_client(user).get(url)+ assert image.status_code == 200 and b"".join(image.streaming_content).startswith(b"\x89PNG")+ assert auth_client(make_user()).get(url).status_code == 404diff --git a/tests/test_assistant_turn.py b/tests/test_assistant_turn.pynew file mode 100644index 00000000..d4f0ad42--- /dev/null+++ b/tests/test_assistant_turn.py@@ -0,0 +1,294 @@+import json+from datetime import timedelta++import pytest+from conftest import frozen_dataset+from django.utils import timezone+from factories import make_project, make_user+from fakes.llm import tool_call++from overbae.core.llms import stream_llm_tools+from overbae.models import (+ AssistantThread,+ BillingTelemetry,+ Dataset,+ DatasetPipeline,+ ProjectMembership,+)+from overbae.services import workspaces+from overbae.services.assistant import log, threads, turn+from overbae.services.datasets import lifecycle, list_activity+from overbae.tasks import assistant as assistant_tasks++pytestmark = [pytest.mark.django_db, pytest.mark.covers("assistant-turn")]++[email protected](autouse=True)+def woken(monkeypatch):+ """Turns run where the test says: a woken thread is only recorded."""+ started = []+ monkeypatch.setattr(assistant_tasks.run_turn, "delay", started.append)+ return started+++def user():+ return make_user()+++def thread(user):+ project = make_project(member=user)+ return threads.open_thread(frozen_dataset(project, user=user))+++def say(thread, user, text, key=None, **extra):+ threads.send(thread, user, request_key=key or text, text=text, **extra)+ turn.run(thread.pk)+ thread.refresh_from_db()+++def kinds(thread):+ return [event.kind for event in thread.events.all()]+++def results(thread):+ return [event.payload for event in thread.events.filter(kind="tool_result")]+++KEEP = """\+import shutil, sys+shutil.copy(sys.argv[1], sys.argv[2])+"""+++def python(code, versions=(), **extra):+ return tool_call(+ "run_python", {"summary": "Counting", "code": code, "versions": list(versions), **extra}+ )+++def test_a_turn_runs_code_on_the_datasets_version_and_charges_each_model_call(+ fake_llm, user, thread+):+ source = thread.dataset.source+ count = f"import pandas\nlen(pandas.read_parquet('data/{source.pk}.parquet'))"+ fake_llm.stream_rounds(+ [([python(count, [str(source.pk)])], "Counting the rows."), ([], "It has 2 rows.")]+ )+ try:+ say(thread, user, "How many rows are there?")+ finally:+ workspaces.provider().remove(str(thread.project_id))++ assert kinds(thread) == ["user", "assistant", "tool_result", "assistant"]+ (counted,) = results(thread)+ assert counted["ok"] and counted["content"]["output"] == "2\n", counted+ assert thread.state == AssistantThread.State.IDLE+ charged = BillingTelemetry.objects.filter(idempotency_key__startswith=f"assistant:{thread.pk}")+ assert charged.count() == 2 and {row.user_id for row in charged} == {user.pk}+ # The model read the dataset's facts with the message, once.+ first = fake_llm.streamed()[0].body["messages"][-1]["content"]+ assert f"data/{source.pk}.parquet" in first+++def test_the_summary_of_a_call_is_for_the_reader_and_no_tool_receives_it(fake_llm, user, thread):+ query = {"summary": "Counting", "dataset": str(thread.dataset_id), "sql": "select 1 as one"}+ fake_llm.stream_rounds([([tool_call("query_dataset", query)], ""), ([], "One.")])+ say(thread, user, "Count.")+ (counted,) = results(thread)+ # A catalog tool refuses an argument it does not declare.+ assert counted["ok"], counted+++def test_a_question_ends_the_turn_and_the_answer_continues_it(fake_llm, user, thread):+ question = {"type": "Choices", "id": "task", "prompt": "Which task?"}+ options = [{"label": "Chat", "value": "chat"}, {"label": "Decision", "value": "decision"}]+ asked = tool_call("present", {"summary": "Asking", "root": {**question, "options": options}})+ fake_llm.stream_rounds([([asked], "The file holds questions."), ([], "Chat it is.")])+ say(thread, user, "Train a decision model.")+ assert kinds(thread) == ["user", "assistant", "tool_result"]+ assert len(fake_llm.streamed()) == 1++ answer = {"call": results(thread)[0]["call"], "id": "task", "values": {"choice": "chat"}}+ say(thread, user, "Chat", interaction=answer)+ assert kinds(thread)[3:] == ["user", "assistant"]+++def test_a_message_waits_for_its_source_and_landing_starts_the_turn(+ user, woken, django_capture_on_commit_callbacks+):+ project = make_project(member=user)+ dataset = Dataset.objects.create(project=project, name="new", state=Dataset.State.LANDING)+ thread = threads.open_thread(dataset)+ threads.send(thread, user, request_key="k", text="Prepare it.")+ turn.run(thread.pk)+ thread.refresh_from_db()+ assert thread.state == AssistantThread.State.IDLE and not thread.events.exists()++ Dataset.objects.filter(pk=dataset.pk).update(state=Dataset.State.IDLE)+ with django_capture_on_commit_callbacks(execute=True):+ turn.wake_dataset(dataset.pk)+ assert woken == [str(thread.pk)]+++def test_stop_ends_the_turn_at_its_next_step_and_drops_the_queue(fake_llm, user, thread, woken):+ def reply(_request):+ # The user stops while the model writes a call.+ AssistantThread.objects.filter(pk=thread.pk).update(stop_requested=True)+ threads.send(thread, user, request_key="later", text="And then?")+ query = {"summary": "Counting", "dataset": str(thread.dataset_id), "sql": "select 1"}+ return {"content": None, "tool_calls": [tool_call("query_dataset", query)], "usage": {}}++ fake_llm.on(lambda request: bool(request.body.get("stream")), reply)+ say(thread, user, "Count.")++ assert kinds(thread) == ["user", "assistant", "status"]+ assert thread.events.last().payload["state"] == "stopped"+ assert thread.state == AssistantThread.State.IDLE and not thread.stop_requested+ assert not thread.inputs.filter(state="queued").exists()+++def test_a_turn_that_stopped_moving_is_interrupted_and_writes_nothing_more(+ user, thread, woken, django_capture_on_commit_callbacks+):+ threads.send(thread, user, request_key="k", text="Prepare it.")+ stale = timezone.now() - turn.STALE - timedelta(minutes=1)+ AssistantThread.objects.filter(pk=thread.pk).update(state="running", turn=4)+ assert str(thread.dataset_id) in list_activity.current_work([thread.dataset])+ AssistantThread.objects.filter(pk=thread.pk).update(updated_at=stale)+ thread.refresh_from_db()+ # The dataset list does not show a lost turn as current work.+ assert str(thread.dataset_id) not in list_activity.current_work([thread.dataset])++ with django_capture_on_commit_callbacks(execute=True):+ settled = turn.settle(thread)+ assert settled.state == AssistantThread.State.IDLE and settled.turn == 5+ assert settled.events.last().payload["state"] == "interrupted"+ # The queued message starts a new turn; the lost one is fenced out.+ assert woken == [str(thread.pk)]+ with pytest.raises(log.LostTurnError):+ log.append(thread, "assistant", {"text": "late", "calls": [], "usage": {}}, turn=4)+++def test_a_sender_who_left_the_project_runs_nothing(fake_llm, user, thread):+ threads.send(thread, user, request_key="k", text="Prepare it.")+ ProjectMembership.objects.filter(user=user).delete()+ turn.run(thread.pk)+ assert thread.events.last().payload["state"] == "failed"+ assert fake_llm.streamed() == []+++def test_one_call_retains_a_pipeline_and_runs_it_and_a_correction_is_its_next_revision(+ fake_llm, user, thread, eager+):+ manifest = {"version": 1, "steps": [{"name": "Keep", "entrypoint": "keep.py"}]}+ files = {"manifest.json": json.dumps(manifest), "keep.py": KEEP}+ run = {"summary": "Publishing", "source_cell": str(thread.dataset.source.pk), "mode": "publish"}+ first = tool_call("run_pipeline", {**run, "name": "Keep", "files": files})+ fake_llm.stream_rounds([([first], ""), ([], "Published.")])+ say(thread, user, "Prepare it.")++ (saved,) = DatasetPipeline.objects.all()+ (published,) = results(thread)+ assert published["ok"], published+ assert saved.datasetpipelinerun_set.get().state == "completed"++ corrected = {**run, "pipeline": str(saved.family), "files": {**files, "keep.py": "pass\n"}}+ fake_llm.forget()+ fake_llm.stream_rounds([([tool_call("run_pipeline", corrected)], ""), ([], "Again.")])+ say(thread, user, "Correct it.")+ second = DatasetPipeline.objects.exclude(pk=saved.pk).get()+ assert (second.family, second.revision, second.name) == (saved.family, 2, "Keep")+ # The corrected script writes nothing: the failed step says why.+ failed = results(thread)[-1]+ assert not failed["ok"] and failed["content"]["error"]+++def test_a_kernel_that_restarted_is_told_to_the_model(fake_llm, user, thread):+ provider = workspaces.provider()+ project, conversation = str(thread.project_id), thread.pk.hex+ fake_llm.stream_rounds(+ [([python("x = 1")], ""), ([], "Set."), ([python("x")], ""), ([], "Gone.")]+ )+ try:+ say(thread, user, "Set x.")+ provider.stop(project, conversation)+ say(thread, user, "Read x.")+ finally:+ provider.remove(project)+ restarted = results(thread)[1]["content"]+ assert "restarted" in restarted["note"] and "NameError" in restarted["error"]+++def test_a_long_conversation_is_summarized_and_no_call_loses_its_result(+ fake_llm, user, thread, settings+):+ settings.ASSISTANT_COMPACT_TOKENS = 0+ query = {"summary": "Counting", "dataset": str(thread.dataset_id), "sql": "select 1"}+ fake_llm.on_json(lambda r: not r.body.get("stream"), lambda _r: {})+ fake_llm.on(lambda r: not r.body.get("stream"), {"content": "Earlier: counted.", "usage": {}})+ rounds = []+ for _ in range(4):+ rounds += [([tool_call("query_dataset", query)], ""), ([], "Done.")]+ fake_llm.stream_rounds(rounds)+ for index in range(4):+ say(thread, user, f"Count {index}.")+ assert "summary" in kinds(thread)+ for request in fake_llm.streamed():+ calls = [c["id"] for m in request.body["messages"] for c in m.get("tool_calls") or []]+ answered = [m["tool_call_id"] for m in request.body["messages"] if m["role"] == "tool"]+ assert calls == answered+++def test_a_reply_with_tool_calls_returns_its_reasoning_to_the_model(fake_llm, user, thread):+ query = {"summary": "Counting", "dataset": str(thread.dataset_id), "sql": "select 1"}+ fake_llm.stream_rounds(+ [([tool_call("query_dataset", query)], ""), ([], "Done.")], reasoning="why"+ )+ say(thread, user, "Count.")+ replayed = [m for m in fake_llm.streamed()[1].body["messages"] if m["role"] == "assistant"]+ assert replayed[0]["reasoning_details"]+++def test_distinct_reasoning_records_without_an_index_stay_apart(fake_llm):+ records = [+ {"type": "reasoning.encrypted", "id": "first", "data": "a"},+ {"type": "reasoning.encrypted", "id": "second", "data": "b"},+ ]+ fake_llm.on(+ lambda r: bool(r.body.get("stream")),+ lambda _r: {"content": "Done.", "usage": {"cost": 0.01}, "reasoning_details": records},+ )+ _text, _calls, stats = stream_llm_tools([{"role": "user", "content": "Go."}], [])+ assert stats["reasoning_details"] == records+++def test_a_streamed_reply_reports_progress_where_the_database_is_usable(fake_llm, thread):+ fake_llm.stream_rounds([([], "Done.")])+ seen = []+ text, _calls, _stats = stream_llm_tools(+ [{"role": "user", "content": "Go."}],+ [],+ on_progress=lambda *_: seen.append(AssistantThread.objects.filter(pk=thread.pk).exists()),+ )+ assert text == "Done." and seen and all(seen)+++def test_the_log_stores_what_a_kernel_prints_that_jsonb_refuses(thread):+ event = log.append(thread, "tool_result", {"content": {"output": "a\x00b", "n": float("nan")}})+ event.refresh_from_db()+ assert event.payload == {"content": {"output": "a�b", "n": None}}+++def test_deleting_a_dataset_deletes_its_copies_in_the_workspace(+ user, thread, monkeypatch, django_capture_on_commit_callbacks+):+ forgotten = []+ monkeypatch.setattr(+ assistant_tasks.forget_workspace_data, "delay", lambda *a: forgotten.append(a)+ )+ source = thread.dataset.source+ with django_capture_on_commit_callbacks(execute=True):+ lifecycle.delete_dataset(thread.dataset)+ assert forgotten == [(str(thread.project_id), [f"{source.pk}.parquet"], [thread.pk.hex])]diff --git a/tests/test_celery_topology.py b/tests/test_celery_topology.pyindex ddb68a6a..429b98cb 100644--- a/tests/test_celery_topology.py+++ b/tests/test_celery_topology.py@@ -96,6 +96,15 @@ def test_packages_use_independently_scalable_interactive_capacity():assert "workshop-runner" not in services+def test_assistant_turns_reach_the_sandbox():+ from overbae.tasks.assistant import run_turn, stop_kernel++ queues = {settings.CELERY_TASK_ROUTES[task.name]["queue"] for task in (run_turn, stop_kernel)}+ workers = [name for name, held in _compose_worker_queues().items() if queues <= held]+ services = yaml.safe_load((REPO_ROOT / "docker-compose.yml").read_text())["services"]+ assert workers and all("sandbox_net" in services[name]["networks"] for name in workers)++def test_fresh_worker_registers_every_routed_and_scheduled_task():# Test collection imports task modules that a fresh worker may never discover.result = subprocess.run(@@ -241,6 +250,16 @@ def test_services_roll_together_after_migrate():)+def test_a_release_rolls_every_service_of_the_topology():+ workflow = yaml.safe_load((REPO_ROOT / ".github/workflows/deploy-api.yml").read_text())+ rolled = set()+ for job in workflow["jobs"].values():+ rolled.update(job.get("strategy", {}).get("matrix", {}).get("service", []))+ rolled.update(step.get("env", {}).get("SERVICE") for step in job.get("steps", []))+ topology = json.loads((REPO_ROOT / "docker/worker-topology.json").read_text())+ assert set(topology) <= rolled++def _deployed_commands() -> dict[str, str]:topology = json.loads((REPO_ROOT / "docker/worker-topology.json").read_text())return {name: " ".join(argv) for name, argv in topology.items()}diff --git a/tests/test_dataset_import_receipts.py b/tests/test_dataset_import_receipts.pyindex e93a05e0..29eaddf6 100644--- a/tests/test_dataset_import_receipts.py+++ b/tests/test_dataset_import_receipts.py@@ -17,11 +17,14 @@ from datetime import timedeltaimport pytestfrom django.db import close_old_connections, connectionfrom django.utils import timezone+from factories import make_userfrom overbae.models import Cell, Dataset, DatasetImport, DatasetPipelineRun, Project+from overbae.services.assistant import threadsfrom overbae.services.datasets import dispatch, files, imports, workbenchfrom overbae.services.datasets.lifecycle import DatasetErrorfrom overbae.tasks import datasets as dataset_tasks+from overbae.tasks.assistant import run_turnfrom overbae.tasks.cleanup_tmp import cleanup_uploadspytestmark = [pytest.mark.django_db(transaction=True), pytest.mark.covers("work-once")]@@ -163,10 +166,16 @@ def test_an_import_whose_worker_died_is_requeued_and_its_old_owner_fenced(importassert imports.claim(run.pk) is not None-def test_an_import_that_keeps_losing_its_worker_is_blocked_with_its_source(imported_source):+def test_an_import_that_keeps_losing_its_worker_is_blocked_with_its_source(+ imported_source, monkeypatch+):from overbae.services.datasets import importsdataset, run = create_import(imported_source)+ started = []+ monkeypatch.setattr(run_turn, "delay", started.append)+ conversation = threads.open_thread(dataset)+ threads.send(conversation, make_user(), request_key="sent", text="Prepare it.")for _ in range(imports.MAX_ATTEMPTS):assert imports.claim(run.pk) is not NoneDatasetImport.objects.filter(pk=run.pk).update(@@ -178,6 +187,8 @@ def test_an_import_that_keeps_losing_its_worker_is_blocked_with_its_source(imporassert run.state == "blocked" and run.failure_code == "worker_timeout"assert dataset.state == "error"assert files.upload_data_path(imported_source[1]).exists()+ # The message sent with the upload no longer waits for a source that will not land.+ assert started == [str(conversation.pk)]def test_stale_import_cannot_write_or_publish_landing_progress(imported_source, monkeypatch):diff --git a/tests/test_dataset_store.py b/tests/test_dataset_store.pyindex fd259f39..34e8fd08 100644--- a/tests/test_dataset_store.py+++ b/tests/test_dataset_store.py@@ -103,6 +103,23 @@ def test_page_sorts_filters_and_indexes(table):store.page(table, filters=[{"field": "score", "op": "regex", "value": "x"}])+def test_a_searched_page_keeps_file_positions_and_the_whole_total(tmp_path):+ path = tmp_path / "many.parquet"+ store.write_rows(+ path, [{"text": "match" if i % 3 == 0 else "other", "n": i} for i in range(10)]+ )+ pages = [store.page(path, search="MATCH", limit=2, offset=offset) for offset in (0, 2, 9)]+ assert [page["total"] for page in pages] == [4, 4, 4]+ assert [[row["_index"] for row in page["rows"]] for page in pages] == [[0, 3], [6, 9], []]+ assert (+ store.page(path, search="MATCH", sort="n", direction="desc", limit=1)["rows"][0]["n"] == 9+ )++ named = tmp_path / "named.parquet"+ store.write_rows(named, [{"File_Row_Number": i, "text": "match"} for i in range(3)])+ assert [row["_index"] for row in store.page(named, search="match")["rows"]] == [0, 1, 2]++def test_column_stats_and_rows_by_index(table):stats = {c["name"]: c for c in store.column_stats(table)}assert stats["expected_output"]["null_rate"] == pytest.approx(1 / 3)diff --git a/tests/test_ecs_worker_rollout.py b/tests/test_ecs_worker_rollout.pyindex 9289ecdb..872abdc3 100644--- a/tests/test_ecs_worker_rollout.py+++ b/tests/test_ecs_worker_rollout.py@@ -75,7 +75,7 @@ def service():}[email protected]("queue", ["landing", "interactive", "io", "io_traces"])[email protected]("queue", ["landing", "interactive", "io", "io_traces", "assistant"])def test_every_release_overrides_stale_worker_command(definition, queue):service = "celery-traces-worker" if queue == "io_traces" else f"celery-{queue}-worker"definition["family"] = servicediff --git a/tests/test_sandbox_packages.py b/tests/test_sandbox_packages.pyindex d106ec2f..b1fc5611 100644--- a/tests/test_sandbox_packages.py+++ b/tests/test_sandbox_packages.py@@ -6,6 +6,7 @@ from concurrent.futures import ThreadPoolExecutorimport httpximport pytest+from overbae.services.workspaces.conformance import LIBRARY_USEfrom sandbox import execute, packagesfrom sandbox.protocol import HeaderReader, header_bytes@@ -61,6 +62,19 @@ def test_package_runs_on_isolated_service_with_exact_rows_and_nested_modules(sanassert json.loads(payload)["value"] == 9007199254740993+def test_a_package_sees_no_other_process_and_opens_no_network_socket(sandbox_server):+ code = """import os, socket+for attempt in (lambda: os.listdir('/proc'), lambda: open('/proc/1/cmdline'), socket.socket):+ try:+ attempt()+ except PermissionError:+ continue+ raise AssertionError('allowed')+"""+ _, result, _ = run_package(sandbox_server, code + COPY)+ assert result["ok"], result++def test_runtime_mismatch_never_executes(sandbox_server):status, result, _ = run_package(sandbox_server, "raise Exception('executed')", runtime="sha256:" + "0" * 64@@ -71,17 +85,15 @@ def test_runtime_mismatch_never_executes(sandbox_server):@isolateddef test_restored_libraries_and_tokenizers_work_without_network(sandbox_server):- code = """import importlib-for name in ('pandas', 'numpy', 'pyarrow', 'duckdb', 'scipy', 'sklearn', 'rapidfuzz',- 'regex', 'jsonschema', 'tiktoken', 'langdetect', 'datasketch', 'dateutil',- 'pytz', 'yaml', 'unidecode', 'ftfy', 'simhash', 'emoji', 'langcodes',- 'jellyfish', 'Levenshtein', 'markdownify', 'bs4', 'lxml', 'wordfreq'):- importlib.import_module(name)+ code = (+ LIBRARY_USE+ + """import tiktokenassert tiktoken.get_encoding('cl100k_base').encode('Offline tokenization')assert tiktoken.get_encoding('o200k_base').encode('Offline tokenization')"""- _, result, _ = run_package(sandbox_server, code + COPY, limits={"seconds": 60})+ )+ _, result, _ = run_package(sandbox_server, code + COPY, limits={"seconds": 120})assert result["ok"], result@@ -111,8 +123,8 @@ def test_unsafe_output_is_rejected_without_blocking(sandbox_server, make):@isolated-def test_child_has_no_credentials_capabilities_or_network_route(sandbox_server):- code = """import os,pathlib,socket+def test_child_has_no_credentials_or_capabilities(sandbox_server):+ code = """import os,pathlibassert not any(k in os.environ for k in ('SANDBOX_TOKEN','DATABASE_URL','AWS_SECRET_ACCESS_KEY','OPENROUTER_API_KEY'))assert not pathlib.Path('/var/run/docker.sock').exists()assert not pathlib.Path('/data/media').exists()@@ -126,10 +138,6 @@ for path in ('/proc/1/environ', '/tmp/sandbox/ledger.json'):passelse:raise AssertionError(path)-probe = socket.socket()-probe.settimeout(1)-assert probe.connect_ex(('1.1.1.1', 443)) != 0-probe.close()"""_, result, _ = run_package(sandbox_server, code + COPY)assert result["ok"], result@@ -155,25 +163,18 @@ time.sleep(1)@isolateddef test_detached_children_are_killed_before_completion(sandbox_server):+ # A survivor would leave its mark in the one folder every run can write.script = """import os,timeif os.fork() == 0:os.setsid()- time.sleep(60)+ time.sleep(1.5)+ open('/dev/shm/survived', 'w').close()os._exit(0)time.sleep(.3)"""_, result, _ = run_package(sandbox_server, script + COPY)assert result["ok"], result- probe = """import os,pathlib-for entry in pathlib.Path('/proc').iterdir():- if entry.name.isdigit():- try:- owner = entry.stat().st_uid- state = (entry / 'stat').read_text().rsplit(')', 1)[1].split()[0]- except OSError:- continue- assert not (20000 <= owner < 21000 and owner != os.getuid() and state not in ('Z','X'))-"""+ probe = "import os,time\ntime.sleep(2.5)\nassert not os.path.exists('/dev/shm/survived')\n"_, result, _ = run_package(sandbox_server, probe + COPY)assert result["ok"], resultdiff --git a/tests/test_workspaces.py b/tests/test_workspaces.pynew file mode 100644index 00000000..5fe72ebc--- /dev/null+++ b/tests/test_workspaces.py@@ -0,0 +1,56 @@+import io+import os+import sys++import pytest++from overbae.services.workspaces import conformance+from overbae.services.workspaces.native import NativeProvider++pytestmark = pytest.mark.covers("workspaces")++CONTAINED = sys.platform == "darwin" or os.environ.get("SANDBOX_CONTAINER_TESTS") == "1"+contained = pytest.mark.skipif(+ not CONTAINED, reason="Requires the root sandbox container on an internal network"+)++[email protected](scope="module")+def provider(sandbox_server):+ return NativeProvider(*sandbox_server)++[email protected]("check", conformance.CHECKS, ids=lambda check: check.__name__)+def test_native_provider_meets_the_contract(provider, check):+ check(provider)+++@contained[email protected]("check", conformance.ISOLATED_CHECKS, ids=lambda check: check.__name__)+def test_native_provider_is_isolated(provider, check):+ check(provider)+++@contained+def test_a_native_kernel_is_unprivileged_and_cannot_change_its_data(provider):+ provider.put_data("p1", "source.csv", io.BytesIO(b"a,b\n1,2\n"))+ try:+ result = provider.run(+ "p1",+ "c1",+ "import os\n"+ "assert os.getuid() >= 20000\n"+ "for attempt in (lambda: open('data/source.csv', 'a'),\n"+ " lambda: open('data/new', 'w'),\n"+ " lambda: os.listdir('../..')):\n"+ " try:\n"+ " attempt()\n"+ " except OSError:\n"+ " continue\n"+ " raise AssertionError('allowed')\n"+ "open('data/source.csv').read()",+ 20,+ )+ assert result.ok and result.output == "'a,b\\n1,2\\n'\n", result+ finally:+ provider.stop("p1", "c1")diff --git a/uv.lock b/uv.lockindex 3646541a..6eed2cc1 100644--- a/uv.lock+++ b/uv.lock@@ -1,5 +1,5 @@version = 1-revision = 5+revision = 3requires-python = ">=3.13"resolution-markers = ["python_full_version >= '3.14' and sys_platform == 'win32'",@@ -14,6 +14,15 @@ resolution-markers = [constraints = [{ name = "aiohttp", specifier = ">=3.14.3" }]overrides = [{ name = "cryptography", specifier = ">=50.0.0" }]+[[package]]+name = "aiofiles"+version = "25.1.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/41/c3/534eac40372d8ee36ef40df62ec129bee4fdb5ad9706e58a29be53b2c970/aiofiles-25.1.0.tar.gz", hash = "sha256:a8d728f0a29de45dc521f18f07297428d56992a742f0cd2701ba86e44d23d5b2", size = 46354, upload-time = "2025-10-09T20:51:04.358Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/bc/8a/340a1555ae33d7354dbca4faa54948d76d89a27ceef032c8c3bc661d003e/aiofiles-25.1.0-py3-none-any.whl", hash = "sha256:abe311e527c862958650f9438e859c1fa7568a141b22abcd015e120e86a85695", size = 14668, upload-time = "2025-10-09T20:51:03.174Z" },+]+[[package]]name = "aiohappyeyeballs"version = "2.6.2"@@ -25,7 +34,7 @@ wheels = [[[package]]name = "aiohttp"-version = "3.14.4"+version = "3.14.5"source = { registry = "https://pypi.org/simple" }dependencies = [{ name = "aiohappyeyeballs" },@@ -36,114 +45,126 @@ dependencies = [{ name = "propcache" },{ name = "yarl" },]-sdist = { url = "https://files.pythonhosted.org/packages/93/2f/6a91adaa2dc26877d6ed2f54c0370c8910f019db7d77c5c6a194611e93ea/aiohttp-3.14.4.tar.gz", hash = "sha256:831fc5bd39ec2517851e348f613ddb5447a47cf4b71cb09845af7ad7ed45d8f9", size = 8077839, upload-time = "2026-10-05T17:43:48.309Z" }-wheels = [- { url = "https://files.pythonhosted.org/packages/23/ec/7fee140da700ec3f5aa5e0fd2319f67be5e86de197e2384d27e5e6209e0e/aiohttp-3.14.4-cp313-cp313-android_24_arm64_v8a.whl", hash = "sha256:264b5a7568306590c44ae4a0237ad1715e35d447ea44ebf324e4c8fd9f78f67a", size = 539114, upload-time = "2026-10-05T17:39:26.322Z" },- { url = "https://files.pythonhosted.org/packages/4e/04/930c01ce9e186e787046433d7dc5b45b188885f8406c14b58435b4431974/aiohttp-3.14.4-cp313-cp313-android_24_x86_64.whl", hash = "sha256:17e5d7c7775d8dd8e894c7ef6ebfa26509de36868a9a6c7c4fcfaf6a1bf43d60", size = 553514, upload-time = "2026-10-05T17:39:28.104Z" },- { url = "https://files.pythonhosted.org/packages/2c/d7/983e3cea81c07e95f35d34da4d1e182b5c05489c49b7560b198a83f0da79/aiohttp-3.14.4-cp313-cp313-ios_13_0_arm64_iphoneos.whl", hash = "sha256:e91dc8fe9cbd052d16f7f1267e285cf8bbac4d2194bd5741f05ef201c77ed09e", size = 521381, upload-time = "2026-10-05T17:39:30.419Z" },- { url = "https://files.pythonhosted.org/packages/0e/2d/80baed11659093883f51245755105557d3253e45bd0b693d70df0059d68b/aiohttp-3.14.4-cp313-cp313-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:8df6157d31703972aec9e3b93963f039ff06318301e30b007c3e941ff8a7ac42", size = 528347, upload-time = "2026-10-05T17:39:32.344Z" },- { url = "https://files.pythonhosted.org/packages/c8/18/bfda255c311096c08dab26dc65f3d219f090df37dc5f5f6345f8c3aefc1f/aiohttp-3.14.4-cp313-cp313-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:220912b351549dc736c59d104dc443fa615753102bb778a4e98f86e4d94bff6a", size = 539914, upload-time = "2026-10-05T17:39:34.265Z" },- { url = "https://files.pythonhosted.org/packages/51/fc/3b6ca6117c0c42481d719411fff7b5d3970ebd906543d3dc1ba40fe2462f/aiohttp-3.14.4-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:2efa42b39bb3f524d5eca3760639b584afdd1143a6b047fda29910ffb75e4993", size = 813997, upload-time = "2026-10-05T17:39:36.061Z" },- { url = "https://files.pythonhosted.org/packages/b5/f6/86e3e02a9712aadc1ae0a1076bb2d1adf3d9addfe5542a28190c8f9b6d9b/aiohttp-3.14.4-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:7e7356059c8262d2c1fd95242e2b7b70fbc6eee3135bf470049cbec3e968b5b0", size = 548058, upload-time = "2026-10-05T17:39:38.109Z" },- { url = "https://files.pythonhosted.org/packages/85/7e/6b9c2e271419d40ca76589613b3c7ab185fd3050a407bd2565b6aa46f695/aiohttp-3.14.4-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:fac247d0cc956d732df1211ac2d8a9999ec8dc1a92a90401de9d52e4ead546f7", size = 545933, upload-time = "2026-10-05T17:39:40.193Z" },- { url = "https://files.pythonhosted.org/packages/14/fc/33d6e24a5f8ac32423230088c415e2a1c6efee23d902b62f20506631e40b/aiohttp-3.14.4-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6e2eb0f8b03b4f2bd154ed8cf7c1a119a1ad04808c258bf58f90138c83b8c6d5", size = 1888265, upload-time = "2026-10-05T17:39:42.182Z" },- { url = "https://files.pythonhosted.org/packages/8d/e8/2eca1d468d83a514621d1280f9992d08649191db2028c9236b4edfa7c723/aiohttp-3.14.4-cp313-cp313-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:7fbe827d27e0e369fd7bb88ceeaa5b46ea006e73e015b9dd77e3723a53162293", size = 1872300, upload-time = "2026-10-05T17:39:44.195Z" },- { url = "https://files.pythonhosted.org/packages/d6/f6/5872983de71b0214acdfb86822f5cca295b39be4832ec589fa224aee0f6c/aiohttp-3.14.4-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:a70387146d03af9f047c629b71aa27d9594b3b31ec4c9c91e1a73d0d8bf38e0e", size = 1926213, upload-time = "2026-10-05T17:39:46.199Z" },- { url = "https://files.pythonhosted.org/packages/ee/65/ebfefa11a546c33c717af63c67868408ecf0b33b23a9d75669af95485407/aiohttp-3.14.4-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:0d0934926fc65744e2fdd44ce68b2d79d5ee608a1e23f0596b35dd696519bb7c", size = 2056609, upload-time = "2026-10-05T17:39:48.221Z" },- { url = "https://files.pythonhosted.org/packages/69/c0/70667e82ec041f4122a17afce711bbcf94a71bec5888b69a49aed8817be2/aiohttp-3.14.4-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:ff4b366510c733974adb7a4102c094e4a6308e6f369315a4cf14d2d0a619cf82", size = 1914740, upload-time = "2026-10-05T17:39:50.304Z" },- { url = "https://files.pythonhosted.org/packages/bf/86/559e9dfea676206b20737d7ccb5b3716bff5e58d2a8d53682e5301724cd1/aiohttp-3.14.4-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:85fac7c99e0ac3dcbd6ae1c33774e0603bfc732ddb967a6fce4a731103c1888e", size = 1703390, upload-time = "2026-10-05T17:39:52.385Z" },- { url = "https://files.pythonhosted.org/packages/fc/91/c98897d4cf23e120b2f3980042835cb34c86bbe3c653f3eaacf4bf986349/aiohttp-3.14.4-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:ef1e9c3b4a2300023a5dc865889ce532cfaf6798ba4ef78fbbefe738a9d23efa", size = 1852642, upload-time = "2026-10-05T17:39:54.391Z" },- { url = "https://files.pythonhosted.org/packages/14/13/0258f352cb2c236f358a5b57d138e15fa2566e17accc0758d968dbf2ceb6/aiohttp-3.14.4-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:97e65916588be0f952b3307aaa8460c0771fa98dbea2dd27dabc9f5d84d53c3b", size = 1890616, upload-time = "2026-10-05T17:39:56.466Z" },- { url = "https://files.pythonhosted.org/packages/64/3c/f43e294ce1a06d1234a97bd862c1aa31acfa1a0eea3786c22fd0dc1ea731/aiohttp-3.14.4-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:840775cb39a9424f9edf142133a1192263ac5bd79117ad2a16602cef6a0c1e9d", size = 1896638, upload-time = "2026-10-05T17:39:58.585Z" },- { url = "https://files.pythonhosted.org/packages/9f/f7/ce1e3a85b73d05037d729d3d32da7d6959b9e433435e9abd46c2fb38410f/aiohttp-3.14.4-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:54f9256430ca040d58affbd551513de13a5cff7d065204fc52b9a1b0af09a049", size = 1693003, upload-time = "2026-10-05T17:40:00.698Z" },- { url = "https://files.pythonhosted.org/packages/1d/72/45eb900d6a9ee046728f5589f3d07f5d78f049b5fb84f48881fa4174d5df/aiohttp-3.14.4-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:6112d5931bf12c776188cab81b82bbb17d86e2e1381f2ade6edc43e6b240f0cb", size = 1927730, upload-time = "2026-10-05T17:40:02.943Z" },- { url = "https://files.pythonhosted.org/packages/b2/43/a83ff79dc8375953a1f00b808a21c82590f4e68304fecccdcc42a25fb7d8/aiohttp-3.14.4-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:facc6df39047c4732cbd885bb62e40df20885fcd709fc399e11f81b45ce0fff9", size = 1891177, upload-time = "2026-10-05T17:40:04.989Z" },- { url = "https://files.pythonhosted.org/packages/5c/ba/fbdc41608d4e2fb6084d960a41b392fa82beb5b126c2466de549b5c67fc8/aiohttp-3.14.4-cp313-cp313-win32.whl", hash = "sha256:7968634fa3a967a2bc0b9aeba1d5a1955501dcd7d0de44b96f7ebfb662797735", size = 479943, upload-time = "2026-10-05T17:40:07.402Z" },- { url = "https://files.pythonhosted.org/packages/35/51/d75629750e705832fd5cd52516a82943ed58b6e09c30e14830f5d87452fa/aiohttp-3.14.4-cp313-cp313-win_amd64.whl", hash = "sha256:c0a894b0265d139cd4c2c8bd4643822cc289a4a5331e21e810881bd000ffb2dc", size = 506209, upload-time = "2026-10-05T17:40:09.49Z" },- { url = "https://files.pythonhosted.org/packages/02/64/66452d2ffcc13e5e5ee4ba4a968656fa4a98c29ed5ff0205d4fde02b2943/aiohttp-3.14.4-cp313-cp313-win_arm64.whl", hash = "sha256:da16c3037178e72589d91de59536d271dffc92c2be2b47c38a45538cba54fd29", size = 487163, upload-time = "2026-10-05T17:40:11.526Z" },- { url = "https://files.pythonhosted.org/packages/d2/fd/b653b1f969e2e949fe4726af7a8043e8ef117f202bed7757ac8564e077a1/aiohttp-3.14.4-cp314-cp314-android_24_arm64_v8a.whl", hash = "sha256:749bfc43bb1df71bbe6ed215044d5412d786698fc5771d2037436ca49622f3c9", size = 540738, upload-time = "2026-10-05T17:40:14.109Z" },- { url = "https://files.pythonhosted.org/packages/90/b5/eea49a0bb697deffac5165d707ec53a24748d6720b3af77a544107b49573/aiohttp-3.14.4-cp314-cp314-android_24_x86_64.whl", hash = "sha256:c113e4b489d711f606ca278cd8dc89179746244ea841aa0638b1b134600afad0", size = 554494, upload-time = "2026-10-05T17:40:16.231Z" },- { url = "https://files.pythonhosted.org/packages/11/ea/cf8f4efbbfa8572d9965cd43b3c6c84c581aa006772e5ce3ab4020027e9b/aiohttp-3.14.4-cp314-cp314-ios_13_0_arm64_iphoneos.whl", hash = "sha256:50969522bc7022026a2c7968e67da5c789f6b716b988edac55dc630390efd5df", size = 522653, upload-time = "2026-10-05T17:40:18.879Z" },- { url = "https://files.pythonhosted.org/packages/a3/24/9f6721f0b52323789cb1041ffc3afa729462d9925607e733a065b6fc5e17/aiohttp-3.14.4-cp314-cp314-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:cbf92cd7a1c800cee244558dd5630abb45c1c1093ef7b0d546a99f526ff7a9eb", size = 529697, upload-time = "2026-10-05T17:40:21.296Z" },- { url = "https://files.pythonhosted.org/packages/9c/a4/399debc3c2ca0ab88a08e3082b4c4f62d0f66978af60243c63f2345ef337/aiohttp-3.14.4-cp314-cp314-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:fc76be08ff407fba717a769aff04ca1b4bf9ecfdcb5caadef84a563fdbbd146d", size = 540526, upload-time = "2026-10-05T17:40:23.548Z" },- { url = "https://files.pythonhosted.org/packages/a2/97/90379813b18b795bccdeb3a5a85e9b93ac2c69f9c2a5d0faba59da3ad6d1/aiohttp-3.14.4-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:9b416f995b68a921069e6ec61fa07f2ac3ff033d92e97a69f673af89f5bb954d", size = 818866, upload-time = "2026-10-05T17:40:25.842Z" },- { url = "https://files.pythonhosted.org/packages/78/70/824fd0dac819652f1df895b3f621a75bf0a3050c30e38d8d2316e34ab821/aiohttp-3.14.4-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:2c9585101cfca10e74a07cc0ef2bdc6d90616e6750926b20456f429d0608f740", size = 549666, upload-time = "2026-10-05T17:40:28.523Z" },- { url = "https://files.pythonhosted.org/packages/8c/45/eafb2dd200dd2b770ed25a2dc5731c4ba5d58ab3fa8e2e82494bb946808e/aiohttp-3.14.4-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:3c4dcf611b095e7983421f49d01ffbed7ed574891533d606ea115fc23e7c4e90", size = 548961, upload-time = "2026-10-05T17:40:30.613Z" },- { url = "https://files.pythonhosted.org/packages/a7/bc/6c733a1c71300293471ac7ef1dffd12b5b4dc9a43c53461224b2b8a7f667/aiohttp-3.14.4-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:f8f61a9b5fa56c58e3441f9dc64137f786232d40fb89127190d0e0f84e1e5865", size = 1883165, upload-time = "2026-10-05T17:40:33.062Z" },- { url = "https://files.pythonhosted.org/packages/37/34/885ddbd351679a31141b25e0d1a5e4f67738806e564c858b399709b61239/aiohttp-3.14.4-cp314-cp314-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:d43e538dfc85b705fd832620d050970ef5613b3869a7169b44a554b9dab9eee9", size = 1844119, upload-time = "2026-10-05T17:40:35.266Z" },- { url = "https://files.pythonhosted.org/packages/cc/ef/0a64dac53c11d569851efb3e7eddb43551df72b2c172ebb34cccc93bcd3f/aiohttp-3.14.4-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:4135c4bb4b7682a7633fadc7170ea969d843f83aa7224e70111a20675105c985", size = 1930222, upload-time = "2026-10-05T17:40:37.527Z" },- { url = "https://files.pythonhosted.org/packages/69/5f/774792ed8f973e0d234fcb06b0f0bc9f29e9a0a0dd847f6418c2904be7d9/aiohttp-3.14.4-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:9055324f156a94fdf6dc9a825ae60f9a2947b88f591ea81ee80826633de62ae7", size = 2038842, upload-time = "2026-10-05T17:40:39.815Z" },- { url = "https://files.pythonhosted.org/packages/cb/05/e00f35581c97656d9e864edaa03292382c620dd1d9c836a4f73a2279acc4/aiohttp-3.14.4-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:fb22c8e4b60385a9b414c70c6e8b2d0f4b23ff7fc4bb572ceb58297b228169f1", size = 1887845, upload-time = "2026-10-05T17:40:42.359Z" },- { url = "https://files.pythonhosted.org/packages/ca/2e/07e3eff5b4c1b082a2eaf0ffb508b409b21ea1ddc9fdc57f3eabb51469a1/aiohttp-3.14.4-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:3b6945559a260112742ed58cde2165488d2fc51aeea34afbaa99d9371b43e1b5", size = 1702533, upload-time = "2026-10-05T17:40:44.569Z" },- { url = "https://files.pythonhosted.org/packages/75/44/816844b7f876e6f8fee4ecb088269fcd92241da712e4814a4d624eda13a9/aiohttp-3.14.4-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:8f4078a90b174f15efb2c8725e8720c40dbd3b2cf6350dbc085c964a938d9de7", size = 1849058, upload-time = "2026-10-05T17:40:47.818Z" },- { url = "https://files.pythonhosted.org/packages/ae/bd/163242e12464a1f3e58a77e28beca949652ddce84abdd5500a91c70a1e0d/aiohttp-3.14.4-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:f433c5654e32f72de3ef074d715eb5c7604eb6d28a5c2f3c9e5056f20fe6b306", size = 1854600, upload-time = "2026-10-05T17:40:50.401Z" },- { url = "https://files.pythonhosted.org/packages/f2/59/5c1ae708a89524eddfd9c727b87cae26b5c50c3c76683b910ac06151ead0/aiohttp-3.14.4-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:871035fe79c636b6bc126ed78df37d72b830dfc751612cb4b1040360edf2719f", size = 1896565, upload-time = "2026-10-05T17:40:52.625Z" },- { url = "https://files.pythonhosted.org/packages/37/45/95300a7de69241fe47d3f838f3fb582c712782e172d447ff650a013ea673/aiohttp-3.14.4-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:2617132524f66338f6c1d218cd16081576aefc40df4f2bcba338a99fbf67fec1", size = 1693092, upload-time = "2026-10-05T17:40:54.862Z" },- { url = "https://files.pythonhosted.org/packages/ff/33/01a8e61d48d0094121092c74125df14c0f8f10ee3149bfe68b6f869409a9/aiohttp-3.14.4-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:d8bc326133272deee8ef337581550450e4bb735c0520be893b950a1f5baaf41a", size = 1917073, upload-time = "2026-10-05T17:40:57.656Z" },- { url = "https://files.pythonhosted.org/packages/9e/d6/1a4f24624cda6686d5b927e26d5d1ae3ebb692faf88e93017fab4b391fd0/aiohttp-3.14.4-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:3ec57223e261b7fa9979c12dbce009ca53439be76cac3af27f860d3e4b1d6f7a", size = 1872656, upload-time = "2026-10-05T17:41:00.123Z" },- { url = "https://files.pythonhosted.org/packages/be/be/ed286fcfa2d22061ae021b568c790123505cd482df35e23023339ecaed96/aiohttp-3.14.4-cp314-cp314-win32.whl", hash = "sha256:7242043e71fc449a19a47d92f4e9fd1e0ae8d3f88488982381f422bf6d651218", size = 485461, upload-time = "2026-10-05T17:41:02.686Z" },- { url = "https://files.pythonhosted.org/packages/c0/74/e040e6f65f4da305777f1adb3023d47401693489e4a337c983b52d2a0a6b/aiohttp-3.14.4-cp314-cp314-win_amd64.whl", hash = "sha256:019587c7b3a44917dd61bcb312fd5c034f341dc9851b83e7b41b65e08b68ca0f", size = 512147, upload-time = "2026-10-05T17:41:04.98Z" },- { url = "https://files.pythonhosted.org/packages/2e/5e/bddb33ae15fdd5a68a10a986587aa9916c418a712fdd110d3b3ae9b51407/aiohttp-3.14.4-cp314-cp314-win_arm64.whl", hash = "sha256:60dc71d38db0988f37e78f6ad4a010a2f6355cfac3fff5f130cf5ef2231f3f0d", size = 494685, upload-time = "2026-10-05T17:41:07.366Z" },- { url = "https://files.pythonhosted.org/packages/22/2e/7b884014b40573f919fc3a528e5028bc37b249e31a93928ba61bdd25c960/aiohttp-3.14.4-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:674f53ab9d2794e2dd767619a3384bf1006f8d075e43c19d449a645f8ff641c2", size = 855696, upload-time = "2026-10-05T17:41:09.514Z" },- { url = "https://files.pythonhosted.org/packages/5f/e6/b6e2b4f580ab6ae39241bb9182aca60e6e1915cdad0148faaa04db3f366b/aiohttp-3.14.4-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:6d243221f73e5ac546c2ed9255100423e4bc092b08b944f23498e8cf3096c26c", size = 567931, upload-time = "2026-10-05T17:41:11.685Z" },- { url = "https://files.pythonhosted.org/packages/63/99/ae8e3a1a18adcbf636839d18b3cccc51007836ccdae5209381c5cf82d1ae/aiohttp-3.14.4-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:0daa016eb74e7888ed5f9ceec6eea3158999c1c4a115ef5cbe88baa8d924f94c", size = 567421, upload-time = "2026-10-05T17:41:13.836Z" },- { url = "https://files.pythonhosted.org/packages/63/38/c5d4bb58be72b967a4090d2deeb38571f8c992852936c51dbbbeae49db1c/aiohttp-3.14.4-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:70c031a622aa20add05ebd234b90adaf6bf51c1c88cc305ec760721af83308c3", size = 2054173, upload-time = "2026-10-05T17:41:16.098Z" },- { url = "https://files.pythonhosted.org/packages/eb/87/3c8a9c7670f56d478a75c5bb84b336fb61a67b908e36c30a4a96ed8c8e86/aiohttp-3.14.4-cp314-cp314t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:7df363fa7c38945a896e12c69af4a1a56cbd4152791d9e41fd0bac396b72de38", size = 1918296, upload-time = "2026-10-05T17:41:18.478Z" },- { url = "https://files.pythonhosted.org/packages/49/97/bd00e499c0a1505b44f5e23b9739034ea9be792ad42537f2894211ba1c07/aiohttp-3.14.4-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:02a508ba5ad91c4d730523584c0adc65882274bba5e37c33bc2f475e37577256", size = 2027513, upload-time = "2026-10-05T17:41:20.874Z" },- { url = "https://files.pythonhosted.org/packages/23/1d/a3666a7c224f86a881f18d673a8ffdc92fa4c35274fb4361822f8f0dc566/aiohttp-3.14.4-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:0cb3edece6fe6a944eaf97d803b88f606da6bc1600b1894c2969e78ffdc1fc29", size = 2152686, upload-time = "2026-10-05T17:41:23.181Z" },- { url = "https://files.pythonhosted.org/packages/46/7e/f4204b8c4959c46f6367c182afbbacef08a1b53874281912c52fbd80151c/aiohttp-3.14.4-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:21ce1223b461bcc5fb389a7204001578f1c0b85c2da60a84d915ebb021294245", size = 2006431, upload-time = "2026-10-05T17:41:25.776Z" },- { url = "https://files.pythonhosted.org/packages/33/43/091e69d42967cbea833ceb355c5457f8f70748fe08b88c9d91491b3fafb8/aiohttp-3.14.4-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:35d5432f0dc1c8b71307e9112461b52f336da225e344283eec4779222c0a1dff", size = 1789101, upload-time = "2026-10-05T17:41:28.095Z" },- { url = "https://files.pythonhosted.org/packages/47/7b/b57cbe533c01098c5d30471f057e7c3c19f281122f756acc9c716b636e2c/aiohttp-3.14.4-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:d6ec364493057c118d08292f7cd60865965c209167d8657b45643a26aef77495", size = 1974472, upload-time = "2026-10-05T17:41:30.499Z" },- { url = "https://files.pythonhosted.org/packages/9f/44/79acce03611450e4ed8594f96f1cea40d70bc84fb4e918f94d7d9454a4af/aiohttp-3.14.4-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:70492983b7aed9e61bda82fe1ce80bcba9199610886443133783a288638923c0", size = 1956340, upload-time = "2026-10-05T17:41:33.009Z" },- { url = "https://files.pythonhosted.org/packages/da/bb/36e6cbd6720e3377a02f8709aec6fe80de729ef41e78ba01f13d50363c73/aiohttp-3.14.4-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:a77776673331577147e9d25cd7833a72e8891b47556336cff06ba1569e488b99", size = 1965771, upload-time = "2026-10-05T17:41:35.506Z" },- { url = "https://files.pythonhosted.org/packages/69/0f/879735ac70ce5e6852916eed51c706a517b205150a8d384f9fa60933a3fc/aiohttp-3.14.4-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:73799000dd6fd5247094fd8e6d3e1eb871e41aab5cc35dff9d9f654cd230bc24", size = 1780297, upload-time = "2026-10-05T17:41:38.284Z" },- { url = "https://files.pythonhosted.org/packages/01/5d/7c030ca5b6baf3b02eccd11afc3d58f0b35e407031d5cc78cae9c24921c0/aiohttp-3.14.4-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:27b370fb532e707e8c96d04fa0c96301fb7dba2d50aaca57f6c456cdfffec5bd", size = 2001374, upload-time = "2026-10-05T17:41:40.888Z" },- { url = "https://files.pythonhosted.org/packages/80/1e/ddacbb8141d727034c51dd192d17749521d5b30b03f84aa034325396089e/aiohttp-3.14.4-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:884e0d1c707b6217fee3080b9b4029eee7551af788ee761010df19be158414b7", size = 1968531, upload-time = "2026-10-05T17:41:43.62Z" },- { url = "https://files.pythonhosted.org/packages/3a/08/2214f823701eebc3e57db141faeae76df7bfd415f254cc7c1692258f228d/aiohttp-3.14.4-cp314-cp314t-win32.whl", hash = "sha256:f2e3d34edb151d3e27f93a8338e2da33e2c7261cd4c879ce5f5fe280cc190ea5", size = 504126, upload-time = "2026-10-05T17:41:46.321Z" },- { url = "https://files.pythonhosted.org/packages/91/a1/90e9b6fd23310b4e82d0c0a37b5ecc2944053350473c57533c1da9647235/aiohttp-3.14.4-cp314-cp314t-win_amd64.whl", hash = "sha256:88cf889e51092537fe44adfbff96c2a22d6479d6f92b97b3d413fbfd0a4decf4", size = 531494, upload-time = "2026-10-05T17:41:48.849Z" },- { url = "https://files.pythonhosted.org/packages/97/ab/5b501472c92b9b1dc53742591d6210dccb262962f4721299300d3a9f664b/aiohttp-3.14.4-cp314-cp314t-win_arm64.whl", hash = "sha256:ca450c6d42fda7c0bfaf0e200f32f77c5f2c960a33be1e14d197c84588b7f5f6", size = 510544, upload-time = "2026-10-05T17:41:51.358Z" },- { url = "https://files.pythonhosted.org/packages/0f/77/ef165a197850573ea07c8d77bf5f4854a1db12fdb20e1cf0b218abf025fc/aiohttp-3.14.4-cp315-cp315-android_24_arm64_v8a.whl", hash = "sha256:3b10799df72f66c30935bc661cb89e5ac2918debfc575e350e226fbaa846cbb7", size = 540737, upload-time = "2026-10-05T17:41:53.761Z" },- { url = "https://files.pythonhosted.org/packages/e6/aa/1663f64d1316b3be9d3f6fafa02b8d888070171a6544cba515e82f3af595/aiohttp-3.14.4-cp315-cp315-android_24_x86_64.whl", hash = "sha256:7ffd7f9dd39caccc6b2f68ec0339435ecad2b20f6ea2e2b3de91bbe464ac7137", size = 554600, upload-time = "2026-10-05T17:41:56.183Z" },- { url = "https://files.pythonhosted.org/packages/98/f7/d4d535855123c1a774a798643e75fdfbac62c047b0c0729d6505d09df444/aiohttp-3.14.4-cp315-cp315-ios_13_0_arm64_iphoneos.whl", hash = "sha256:a0a7a227353f7693f73878ad14cd2623cafadd656ababcd20e2adfb7225172ea", size = 523184, upload-time = "2026-10-05T17:41:58.624Z" },- { url = "https://files.pythonhosted.org/packages/0a/5f/18a8d1cd2958a0b6164b047c18ccb192f2123bb70f1c0a145f6f01f858ad/aiohttp-3.14.4-cp315-cp315-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:1c43b6af8e4708e8b3812a9ee4f79895207e12d555b7f6d70deb838e0011e12d", size = 530342, upload-time = "2026-10-05T17:42:00.96Z" },- { url = "https://files.pythonhosted.org/packages/7f/c4/d1dd2b1fcf8a3192a431375b287a8762ebfd22195ab5b201d3fac30e3a7a/aiohttp-3.14.4-cp315-cp315-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:97416b2b997e5e9b817e322b2f0a89b76c54cde22471f51ac17ac15e10901ba0", size = 540629, upload-time = "2026-10-05T17:42:03.324Z" },- { url = "https://files.pythonhosted.org/packages/37/51/d1868f3459f618f6b68a6ef549d8b3f76aa616fa083298911fd3ae65d6b9/aiohttp-3.14.4-cp315-cp315-macosx_10_15_universal2.whl", hash = "sha256:ee2a5aa31e507c17841d592364f2148393b17f83bc2766e9211e1eb31ea72a70", size = 819347, upload-time = "2026-10-05T17:42:05.713Z" },- { url = "https://files.pythonhosted.org/packages/84/e6/53179b721b67e0bd20974d02eca97b5691559e8ce666ba23a65aecda6b7f/aiohttp-3.14.4-cp315-cp315-macosx_10_15_x86_64.whl", hash = "sha256:5d5d9843c34866e986dd24eef713452609e304550c471320ce7b54b3cfb1391e", size = 549825, upload-time = "2026-10-05T17:42:08.093Z" },- { url = "https://files.pythonhosted.org/packages/00/0f/d67ddf7a43d4899176954511b6c048328abec1a5df4901f811a3b408a4fc/aiohttp-3.14.4-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:efcbf93e31b52c21665b6ebc489eb6fdb0dfd86b592edc677b5cffdfa7b11677", size = 549315, upload-time = "2026-10-05T17:42:10.766Z" },- { url = "https://files.pythonhosted.org/packages/9d/db/42f372c7f8e259505f239cb49db75f23548deaec56d22c68b4866f1c3fe2/aiohttp-3.14.4-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:2f1a79977794592dcf6485ed964ec2448db527a1bc0c72ec89663658dad3a739", size = 1892181, upload-time = "2026-10-05T17:42:13.194Z" },- { url = "https://files.pythonhosted.org/packages/23/0d/8b1900216302a94f69b41bf0786bb992a6e67d703f4698e335c2442db615/aiohttp-3.14.4-cp315-cp315-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:515e7ac6d27509dc3ba2c35fb88970b00b9e7b07ee7cc947c8733dcd54ef5def", size = 1883513, upload-time = "2026-10-05T17:42:15.704Z" },- { url = "https://files.pythonhosted.org/packages/7b/5e/15c014313e567fff931ec4a5f81683cc40251257791fbd607ec37c0dad80/aiohttp-3.14.4-cp315-cp315-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:185154ffa3b54765b5de96f464f41cfa476f8815a03854ae5e0fe4d48fb06e9c", size = 1933283, upload-time = "2026-10-05T17:42:18.241Z" },- { url = "https://files.pythonhosted.org/packages/f5/b3/bf7dc39a450218efb1d5c692bac7dc85ef56da282e889bee594f3267211e/aiohttp-3.14.4-cp315-cp315-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:6aece59f77959628a22cd2ffe48b102cda9611d680e090f204385b3998a1190f", size = 2041054, upload-time = "2026-10-05T17:42:20.728Z" },- { url = "https://files.pythonhosted.org/packages/b6/03/ffba18d7aaedb5eafac3f41f0c26621ebb0a740bb0115ea2fae1911d902b/aiohttp-3.14.4-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:d7205aa6589f1ad1306c6994ff2e1ab5efabacf938f9ffd7682fb225c197b06a", size = 1895494, upload-time = "2026-10-05T17:42:23.518Z" },- { url = "https://files.pythonhosted.org/packages/45/f4/68123365b86826eee82bdceb7fb4c429204cb3a104d6b7ae44bc6a543fcb/aiohttp-3.14.4-cp315-cp315-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:f38c7b3ce60d55ac0f2a9fd2edc194789d043fefea15cfb7dcb40b7d5f561146", size = 1714098, upload-time = "2026-10-05T17:42:26.471Z" },- { url = "https://files.pythonhosted.org/packages/b1/db/b13c0b214afc571782e8667f3b9e0bbed6843397be90fa35acf2f3ecfbb0/aiohttp-3.14.4-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:b0a1274ee4ee6203c15a341cce87f9f3df8151d5496047b3608bb62bd969cffc", size = 1857111, upload-time = "2026-10-05T17:42:29.169Z" },- { url = "https://files.pythonhosted.org/packages/6b/7f/4f5d3cee3c23b57119aebba5174962fed0bc493f37f38edab2f5730411b6/aiohttp-3.14.4-cp315-cp315-musllinux_1_2_armv7l.whl", hash = "sha256:69ce2407951516f413adf3132b88451eababd710ce631f83c81a9603a3640253", size = 1892123, upload-time = "2026-10-05T17:42:31.786Z" },- { url = "https://files.pythonhosted.org/packages/5e/2e/5a6a1f014c4e17d58d4e935d0dd64e612f4eaa2f33cca2475b48ca5e3fb5/aiohttp-3.14.4-cp315-cp315-musllinux_1_2_ppc64le.whl", hash = "sha256:b84d3d057c60eb8e0c2b457a1203e868d82709d3f0c272a4975dfd88c2414939", size = 1898809, upload-time = "2026-10-05T17:42:34.34Z" },- { url = "https://files.pythonhosted.org/packages/de/f3/d1cca5311a70fcc1c7c2082e02044578a69bcb10686db33a322df9fb849e/aiohttp-3.14.4-cp315-cp315-musllinux_1_2_riscv64.whl", hash = "sha256:4ecc84f69c9e217984f6877e832e4786a74567432c0bf2b7512919fbdfe18ade", size = 1704814, upload-time = "2026-10-05T17:42:37.047Z" },- { url = "https://files.pythonhosted.org/packages/0a/cb/cd58eae366148a5b9b1baa233542151154f2b72cd32daa39fd9db97d0c0d/aiohttp-3.14.4-cp315-cp315-musllinux_1_2_s390x.whl", hash = "sha256:878f2d7950238b2b0a8cbb88054444a125f0cfbc77f54c811aca0483132a9be3", size = 1918390, upload-time = "2026-10-05T17:42:39.674Z" },- { url = "https://files.pythonhosted.org/packages/e3/d8/f5e6c4939432734033048ba631503edf4a1e693ee5e261773e169803bbe4/aiohttp-3.14.4-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:6ff9d3a0e6935f1cb0a6685f9f4b3f0d3e406456d7a434a03cf309b8cd5d7a2e", size = 1878321, upload-time = "2026-10-05T17:42:42.528Z" },- { url = "https://files.pythonhosted.org/packages/2b/71/462957d6b5d4eb208f78e67745c41480bad2e738aa7caf1d9b07536920c1/aiohttp-3.14.4-cp315-cp315-win32.whl", hash = "sha256:e07dfd7cd360f20be26dc2487ad4c7f21b0b39fdd593e9ebf37d2424ad52defb", size = 485536, upload-time = "2026-10-05T17:42:45.223Z" },- { url = "https://files.pythonhosted.org/packages/ba/6e/48f59266a8b8c6420894ff59b8e74175252da67df85967b96997e96b7092/aiohttp-3.14.4-cp315-cp315-win_amd64.whl", hash = "sha256:921fc4f1ad549091bfc39cb5e93925b04f307f83517756a3111843851130efce", size = 512087, upload-time = "2026-10-05T17:42:47.717Z" },- { url = "https://files.pythonhosted.org/packages/25/f5/46263b23cee4f312e28aaabbdec2e074c807700a12c9dfa18beff461f035/aiohttp-3.14.4-cp315-cp315-win_arm64.whl", hash = "sha256:5be8af106f96fd625f6c264fa9faaaa9e0104089684d9015d2fa5b6eba6407c7", size = 494709, upload-time = "2026-10-05T17:42:50.615Z" },- { url = "https://files.pythonhosted.org/packages/77/8d/e3b1d406c95a8fe436ae2e5f01ee9591196c6c22c44c645b24f20d73eaea/aiohttp-3.14.4-cp315-cp315t-macosx_10_15_universal2.whl", hash = "sha256:e69727ec04a4608200ff32ec29478299df7657e2eb78c416ae338d0ca6662596", size = 856014, upload-time = "2026-10-05T17:42:53.425Z" },- { url = "https://files.pythonhosted.org/packages/5d/fc/e9e78d1097830040bc0a4b8af073379f964064bfa7f0a852d774f96f3168/aiohttp-3.14.4-cp315-cp315t-macosx_10_15_x86_64.whl", hash = "sha256:f8b658dd3ef2ebd7708b311ed96ff7cb5edaca001a30018a091504ef492bcb1c", size = 567724, upload-time = "2026-10-05T17:42:56.416Z" },- { url = "https://files.pythonhosted.org/packages/e6/ad/c813a705a1da1c111c30723b52e1efb67763e9f0b3b54a418cb419616e7a/aiohttp-3.14.4-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:3749e018123df1205161a73ba96d336e17e9cf6b947295e53a43571de420e7b1", size = 567888, upload-time = "2026-10-05T17:42:59.048Z" },- { url = "https://files.pythonhosted.org/packages/c2/1f/7676f46aa24554a45686853c61552d02d67ade2b4c51adfe8b2ec4fdecd2/aiohttp-3.14.4-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:8f28a3c4fca436b2e594090e7cd22558f5e93a30ca18516c436de982da6fc25a", size = 2054356, upload-time = "2026-10-05T17:43:01.781Z" },- { url = "https://files.pythonhosted.org/packages/44/79/b9ef7d7442061e0a3125990d6021230b30361a972f7b8ebfb011042877ce/aiohttp-3.14.4-cp315-cp315t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:e099aae21246992a1d84303ff262262d054c474e46cace33b0d5a69810c71877", size = 1937678, upload-time = "2026-10-05T17:43:04.492Z" },- { url = "https://files.pythonhosted.org/packages/5c/98/5927a31540c8e6d0542effead5bd5c56e749a9d99d84e902fb80ae906ef8/aiohttp-3.14.4-cp315-cp315t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:fafb521891e646d9cf5da89f01c75e7159d08be7254a024149630a698be28251", size = 2026705, upload-time = "2026-10-05T17:43:07.353Z" },- { url = "https://files.pythonhosted.org/packages/62/bd/1be001ed97dcfa57a292188c38979fb78be795b960b50f02660587bffa06/aiohttp-3.14.4-cp315-cp315t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:1d385db2cd154bce0b3dd451cf2a52bec91ebb7be2c3a5d06b14b4391631d807", size = 2147075, upload-time = "2026-10-05T17:43:10.141Z" },- { url = "https://files.pythonhosted.org/packages/0b/f7/d59628ccedd7c86db4c1f904467d1c80fed6cc10a1831ed5d75ff12e5a71/aiohttp-3.14.4-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:ae8a244889d8a53549851bf595b9f382f64acca57e8762da1ecb26ba786828f7", size = 2005016, upload-time = "2026-10-05T17:43:12.848Z" },- { url = "https://files.pythonhosted.org/packages/3c/dc/472db3ab1daafa12a61d7f83314f85f502b99c143c78d66554a5e24361fd/aiohttp-3.14.4-cp315-cp315t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:681dde68ff8d8d5e7d5abcad4feb45bfb457a218310c919825e21fc36cac3d0b", size = 1796363, upload-time = "2026-10-05T17:43:15.562Z" },- { url = "https://files.pythonhosted.org/packages/08/61/6f9834b131b9a42e30d68c469c196033d3cae2d8fe340d4668f362c4fd1f/aiohttp-3.14.4-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:b91a6441fcaed88ca7bca67726b189332df3ceb6ac0dfc98dcb9654bb723288c", size = 1974240, upload-time = "2026-10-05T17:43:18.884Z" },- { url = "https://files.pythonhosted.org/packages/b5/2f/b8eb2a276685ef1da7f7bc15348404b8b9ee12b8f32f2cd8895385cd1589/aiohttp-3.14.4-cp315-cp315t-musllinux_1_2_armv7l.whl", hash = "sha256:f15dbbac49bc15eaff95c0b8166525c4050996af578c7be141e145f40ee2cf24", size = 1973387, upload-time = "2026-10-05T17:43:21.661Z" },- { url = "https://files.pythonhosted.org/packages/5b/32/ad559b2d6817e85f7cb294d8641e975e64b526f4da98ffe941c9af67a047/aiohttp-3.14.4-cp315-cp315t-musllinux_1_2_ppc64le.whl", hash = "sha256:7abae043e87692d1c2adda1fab501bb0612d28c4a23eb082005c1e684f792dac", size = 1968766, upload-time = "2026-10-05T17:43:24.544Z" },- { url = "https://files.pythonhosted.org/packages/60/67/4a16e398140bdabb363428b9f439af3f77706a6df8bea6e626bbde53c2ab/aiohttp-3.14.4-cp315-cp315t-musllinux_1_2_riscv64.whl", hash = "sha256:21f4624fb1051fc1aa10d57a636a80e829f7d0417462d6f1ce380b08fe1a904c", size = 1788193, upload-time = "2026-10-05T17:43:27.467Z" },- { url = "https://files.pythonhosted.org/packages/a9/38/17b326da7f52e530a675d789ade3e727a1b3db9959722f6049b9c392321a/aiohttp-3.14.4-cp315-cp315t-musllinux_1_2_s390x.whl", hash = "sha256:2e8dc3a0fdaf9d12b954d3d06cc4c355d91b17fb6c671715b593624ca4c379f8", size = 1999645, upload-time = "2026-10-05T17:43:30.32Z" },- { url = "https://files.pythonhosted.org/packages/53/dc/91b87961250010e05eb3adabaf0d98e4229ee7543147c265e834922e1b0b/aiohttp-3.14.4-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:1410b6f6e3d52ea7c02c950496522ce6e85d5543bf154bc80a6141e505251cfa", size = 1970998, upload-time = "2026-10-05T17:43:33.364Z" },- { url = "https://files.pythonhosted.org/packages/72/66/9bcf2c2db7b75a3b51c11470ceb67941d028727d674276ff5d5120adc87e/aiohttp-3.14.4-cp315-cp315t-win32.whl", hash = "sha256:a65189a89f3e621f7c27a968b5131bbca29126e2b8517dc72b205747a39d4c96", size = 504036, upload-time = "2026-10-05T17:43:36.212Z" },- { url = "https://files.pythonhosted.org/packages/e2/20/349db4af12dbc16070d32028d30c2067123b4520f3dcb2d9013524efeb4f/aiohttp-3.14.4-cp315-cp315t-win_amd64.whl", hash = "sha256:2b2c95f5f769eec92b552969db1f79ea0282058ce5131ed0f2fa540b4af3f14e", size = 531284, upload-time = "2026-10-05T17:43:39.362Z" },- { url = "https://files.pythonhosted.org/packages/26/21/544c711bc5fad611278ebd153bdcab1bffce8b8581f8ec9096b275948a3c/aiohttp-3.14.4-cp315-cp315t-win_arm64.whl", hash = "sha256:54209fff79346ee1ef0d5cbf92fa80a5bb37396406bb4d932e5107f9c29b2d3f", size = 510623, upload-time = "2026-10-05T17:43:42.15Z" },- { url = "https://files.pythonhosted.org/packages/2b/27/5e1f8446545be98e9416af59c396b1ed1f9f3294afb0a40ee3a709889273/aiohttp-3.14.4-py3-none-any.whl", hash = "sha256:5c6758ba62aea282c537179cfc8474a90f2b5f7b089cc5ff66d8920d86a9bfdd", size = 279487, upload-time = "2026-10-05T17:43:44.905Z" },+sdist = { url = "https://files.pythonhosted.org/packages/6c/4c/bdccd81e9ee225b69c60e7766c9a5b05364f118f4d383713b89a682d772d/aiohttp-3.14.5.tar.gz", hash = "sha256:5558a7f5a05af9ecf744af91e5baefc436f93c9333e656c27ec253f9a6bbe178", size = 8078052, upload-time = "2026-10-11T01:05:12.408Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/d3/e1/2841e020ebb7aefae5513586193e011e06313d9a6bdbd296622afbbce204/aiohttp-3.14.5-cp313-cp313-android_24_arm64_v8a.whl", hash = "sha256:9ad7e6aa38c20da1be697874349c4c273c8a03b7887169665081706398d0439a", size = 538932, upload-time = "2026-10-11T01:00:54.3Z" },+ { url = "https://files.pythonhosted.org/packages/f7/a6/7fb8ea8fe96bcc7b7c7a36d10f021d99d01a8dc8a4b3f0ddacecfad9a80e/aiohttp-3.14.5-cp313-cp313-android_24_x86_64.whl", hash = "sha256:f59c7673465908cbe506117176156c127f29f917677afceada34957179221d91", size = 553329, upload-time = "2026-10-11T01:00:56.442Z" },+ { url = "https://files.pythonhosted.org/packages/de/64/d056e3c27647dc25af1a592cf356245382ea7c808171b9dac7677afedfc8/aiohttp-3.14.5-cp313-cp313-ios_13_0_arm64_iphoneos.whl", hash = "sha256:1b5416552740edf07234cc9437d0706f2acb67b93c198670b1a68e1b2b587dec", size = 521367, upload-time = "2026-10-11T01:00:58.345Z" },+ { url = "https://files.pythonhosted.org/packages/3e/e4/95226147e11d4db916fd1d495dcf85af8e3816e38333e42718241196e848/aiohttp-3.14.5-cp313-cp313-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:43351bdb5e4c3cb7d1772368e988534e869a74db7778079a83782c11c69535c7", size = 528322, upload-time = "2026-10-11T01:01:00.211Z" },+ { url = "https://files.pythonhosted.org/packages/17/cd/1d3c9192cafdb51cad62b2d3ded96cff9cc8af51893210aadd448a325389/aiohttp-3.14.5-cp313-cp313-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:c8c4478bef6d57fcfda15dae461ea3c9f06aa7b257c58df3f2300174ccbb185a", size = 539874, upload-time = "2026-10-11T01:01:02.06Z" },+ { url = "https://files.pythonhosted.org/packages/f6/0c/dfa33aecc7d4d1dc75e05248f5eac5a0edf4d09e7b44d93ab62529b0c1db/aiohttp-3.14.5-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:c2c30484dd1417ef98b51021ffa2cc0d7f3c78918adaaaab7e70817335ab3e02", size = 813836, upload-time = "2026-10-11T01:01:04.01Z" },+ { url = "https://files.pythonhosted.org/packages/33/17/4a63738052d20567d55529d6daa1b9480d906fd52930fbcf6d3fbed618f0/aiohttp-3.14.5-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:dab9ac5a67c8d1f070c00fa8fccb7cbd1b8dcc1a8d6b42f37540df9b3d4cc603", size = 548070, upload-time = "2026-10-11T01:01:06.035Z" },+ { url = "https://files.pythonhosted.org/packages/15/e5/b57e58695a757fd4c02497c033fced96a69c631b13866c43d336530c9670/aiohttp-3.14.5-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:e1cc2bfaee8c214f06080a7c7d5772419b8a1108e8e5349236189811823fb02a", size = 545786, upload-time = "2026-10-11T01:01:07.817Z" },+ { url = "https://files.pythonhosted.org/packages/9a/68/8c2c67a3aedf46e00f3c42f04fbc6983de80d4ed5786151e33681ba45883/aiohttp-3.14.5-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:74efb69332b85675b1eabd760a8cfc2e2cf42c60607c66f88014c1bdfb40942d", size = 1886492, upload-time = "2026-10-11T01:01:09.834Z" },+ { url = "https://files.pythonhosted.org/packages/ab/4b/74aab5e8d28c62e8f795b4fe8f38cf5586fd264a9a27bd2141ef6490333d/aiohttp-3.14.5-cp313-cp313-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:42b5e616946dbaf505e2bff18c9af2cd4ef9e7ef300ee58a6e951a5b7cf147ae", size = 1870057, upload-time = "2026-10-11T01:01:12.045Z" },+ { url = "https://files.pythonhosted.org/packages/a8/f7/eafc3b1988302b1815d9fd4a21071be5c360d616c0a430d02fd92dc97688/aiohttp-3.14.5-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:f9033b43f511f27547c557dcaba0177649e10a3725336ccd2cce0fdc1dc4850d", size = 1925119, upload-time = "2026-10-11T01:01:14.09Z" },+ { url = "https://files.pythonhosted.org/packages/a1/04/78d8f294f74dd570f3898ff20402349fce524176045df98ba727d6846a68/aiohttp-3.14.5-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:15a310d3c71398e3d7bfc93a1a73fbe664315cd9e9016b8efc1cff85eeab7155", size = 2053137, upload-time = "2026-10-11T01:01:16.344Z" },+ { url = "https://files.pythonhosted.org/packages/32/51/395d225ef36f5a50d8e548dcd3141bfdbcd31fb6eed859022c573d2c4d66/aiohttp-3.14.5-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:1ffa3a523a36d8628f98c06492ae16a31a23d14c0b4ec721757b477319f656d6", size = 1911038, upload-time = "2026-10-11T01:01:18.653Z" },+ { url = "https://files.pythonhosted.org/packages/ff/a4/2aec1aa06d82e8a244843b5dae31d78061e5e76744270a86dd0ee051c889/aiohttp-3.14.5-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:5fb6a6e919bfb703227bc1ce6579281b84b1a2ba57deb9794dfdbec7dcd1e40c", size = 1702205, upload-time = "2026-10-11T01:01:20.904Z" },+ { url = "https://files.pythonhosted.org/packages/16/27/6051bfde7b6f418f70edd60d655fa426abb3355fa0981764739d87ecf160/aiohttp-3.14.5-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:43e1b7994a8b038125f722bff07492ef501110722c2727c408995d9fb864c421", size = 1848588, upload-time = "2026-10-11T01:01:22.918Z" },+ { url = "https://files.pythonhosted.org/packages/9e/44/55efc06fc26c4e6e1c095f231b4c222bf2d86d64a8eebbc24b2bb5958ea8/aiohttp-3.14.5-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:5f3e96071686755d9cd3600c3880183eb94b012178e92746d68101800f0ed8a3", size = 1887540, upload-time = "2026-10-11T01:01:25.278Z" },+ { url = "https://files.pythonhosted.org/packages/48/dc/1502bfdc2a65760d386ac6a00090b0addaa8a3c9c60b3f8127fad3a9afb2/aiohttp-3.14.5-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:cd88b01f3d37b7a2a34f91d98f14720206f1ea3d540843fab2d649dd5fb91fec", size = 1895030, upload-time = "2026-10-11T01:01:27.316Z" },+ { url = "https://files.pythonhosted.org/packages/93/7e/44174bb6288264418c9eec07a5e35180969c0d5a796c7af544db3cb8a33a/aiohttp-3.14.5-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:f2ed8b64dc0c651c0f5a9c926777719770021251b8f336d97c4b80b660836ce1", size = 1693244, upload-time = "2026-10-11T01:01:29.39Z" },+ { url = "https://files.pythonhosted.org/packages/47/dd/b507d64e50db23888582fff08eda13998b12f9dea70c072edaac19218380/aiohttp-3.14.5-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:a9918e58faf62ba2c7147927d06057aec78f42475aff5048047ec47e7265a600", size = 1926308, upload-time = "2026-10-11T01:01:31.634Z" },+ { url = "https://files.pythonhosted.org/packages/98/4b/5b51b4f63e3f2793151f4aea49c48fe1e00baeb7cec9c7a206de499f8de0/aiohttp-3.14.5-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:42f320d4a5b00b9af0bddcfec5407dc6f2d9816f006b2f79ebbaa31f16895df3", size = 1888406, upload-time = "2026-10-11T01:01:33.715Z" },+ { url = "https://files.pythonhosted.org/packages/ff/13/d5e818a5eaba9f822016727299f41c0e1075799f82a6433ec508a93ab867/aiohttp-3.14.5-cp313-cp313-win32.whl", hash = "sha256:3ae800a20947e2c2e53088047d021e6bf7d51560cc49f6a0737a1f79d2e3a13c", size = 479970, upload-time = "2026-10-11T01:01:35.677Z" },+ { url = "https://files.pythonhosted.org/packages/8d/d0/8eca2c65aa467320990d78fb2005f38ed3588944280c39ff9deb6423fef1/aiohttp-3.14.5-cp313-cp313-win_amd64.whl", hash = "sha256:d05e94cdfe0d15d0206f970722d2554780ce562787b21b218b275447f8751319", size = 505985, upload-time = "2026-10-11T01:01:37.574Z" },+ { url = "https://files.pythonhosted.org/packages/7a/f8/4cdd65305d2fca14b886bea9ed2abb1fe726287872524e56e3d26692b47d/aiohttp-3.14.5-cp313-cp313-win_arm64.whl", hash = "sha256:f001b571ead90ca1770f1e616db255351a1703317f20374c361ef22f12c06d09", size = 487629, upload-time = "2026-10-11T01:01:39.477Z" },+ { url = "https://files.pythonhosted.org/packages/43/be/3184a1d34a8be665569eadb7e9e764b4629e4f3413e241cb2e4d6fecf3b3/aiohttp-3.14.5-cp314-cp314-android_24_arm64_v8a.whl", hash = "sha256:939042d5cda21d41a6f512e7cc8b8e33a2aebff863352251da495fbd91b673b5", size = 540673, upload-time = "2026-10-11T01:01:41.354Z" },+ { url = "https://files.pythonhosted.org/packages/60/2a/d35f3ba4cf157b072e3b674bf9983047ca5ea5173c995d32d877e1191d36/aiohttp-3.14.5-cp314-cp314-android_24_x86_64.whl", hash = "sha256:6da32b5ff3fd78d244e37300463434c7145162bfd2b6e9e915ab164da37f7343", size = 554087, upload-time = "2026-10-11T01:01:43.719Z" },+ { url = "https://files.pythonhosted.org/packages/fc/d2/61a33880ca4eaca95a9c60ca3f6beed15555af1028652dfaac601627787b/aiohttp-3.14.5-cp314-cp314-ios_13_0_arm64_iphoneos.whl", hash = "sha256:1b438b73c38111818d0c9d6a5c2bfed8584c8e503a49ef085d70e874ec846738", size = 522613, upload-time = "2026-10-11T01:01:46.154Z" },+ { url = "https://files.pythonhosted.org/packages/31/1d/de579b299d2225dc2c6fd99d579d91f16c02a913fb5af9a3cf2fe9bd88ba/aiohttp-3.14.5-cp314-cp314-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:755933b107ea7a6a9ac916f635a70595a5b1a32fac10a8ff0b9f2ab88555550c", size = 529682, upload-time = "2026-10-11T01:01:48.477Z" },+ { url = "https://files.pythonhosted.org/packages/f4/4a/ddb923564e15e053b6e060b0036e1694dcadcb13aa476c5a87dcad20e336/aiohttp-3.14.5-cp314-cp314-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:b3cc509327c7b27f6f4727a8830f4004f6df7766e179f2f4b8e54e65c0bec5d3", size = 540120, upload-time = "2026-10-11T01:01:50.474Z" },+ { url = "https://files.pythonhosted.org/packages/3d/36/a640fbecaa53727a5900b892bdbe17b5f3e8cc88903e22864fe41b654def/aiohttp-3.14.5-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:7bd8ac754ebd6733a3e2a0dd1674c4d8ab086196803fd8dcd776f07b4e2607d9", size = 818795, upload-time = "2026-10-11T01:01:52.665Z" },+ { url = "https://files.pythonhosted.org/packages/ef/b6/d52ca608859e271b5fa7944074802dc45f60e52c318a4ddc34edbf73586e/aiohttp-3.14.5-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:e724a7b6091f0b1ac064f9d1b15ff9ec52e6033a86cdae649e5f086e32a3c0db", size = 549667, upload-time = "2026-10-11T01:01:54.65Z" },+ { url = "https://files.pythonhosted.org/packages/ce/b5/05b8ac39a76ff4bca89f42a4c2471560c71f894ff6e4bc16158c951874e3/aiohttp-3.14.5-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:c32e26310cc10e547f53cd13d39a369034f69dcb7d749d5cb0e5f67bc196b6ba", size = 548922, upload-time = "2026-10-11T01:01:56.547Z" },+ { url = "https://files.pythonhosted.org/packages/19/b0/5aa186d56ce2334dabe29b70bd99dc8ae926ee44184c0de64a53d415a4f3/aiohttp-3.14.5-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:1eb8167961ec4dfcc8cb9dd50bd0ee72519f7ef496be95203e49e27b01618382", size = 1882422, upload-time = "2026-10-11T01:01:59.258Z" },+ { url = "https://files.pythonhosted.org/packages/db/f7/7d5c91bb9620db300c8ddb05337a9014301acb626223faff3abcb8ea47d7/aiohttp-3.14.5-cp314-cp314-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:c1d60eafd9c7e8e74abd03a5b00df44e7febfe6d9b89b559c0a6551eef0699d4", size = 1843621, upload-time = "2026-10-11T01:02:01.417Z" },+ { url = "https://files.pythonhosted.org/packages/30/0a/b208953b96d8f24b75f6da704f508e6c5cf3022f52b60c61933df082e89c/aiohttp-3.14.5-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:137351bf20bbed9a65e839f4a4452ac377389bdb2f2857d2acffef38f5e9f2d1", size = 1927915, upload-time = "2026-10-11T01:02:03.697Z" },+ { url = "https://files.pythonhosted.org/packages/f6/79/90ebcccb55e2d1e11a1fed581d83bb966e38fb35fb4b2577fdc980f8707a/aiohttp-3.14.5-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:fba47bc2c3d7303c3d027c6cf4d07626c37b1314ac81f5820c31032e0ca1f677", size = 2036339, upload-time = "2026-10-11T01:02:06.046Z" },+ { url = "https://files.pythonhosted.org/packages/a6/66/55a8904b3a129fafdf94f9cc0a2e4ca09a3c914650be52355db7ad0bbdb6/aiohttp-3.14.5-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:94684b879ac1d71e4238850c99b62dc1b28d9086b156a2555f082010b85a865c", size = 1888041, upload-time = "2026-10-11T01:02:08.384Z" },+ { url = "https://files.pythonhosted.org/packages/0b/b8/96b25da7329a52e42c812b1e8b076386039ec4fc312afa043d173d8147fc/aiohttp-3.14.5-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:56572c42e3ecd636de8d2c3dd54cf5fc939cb5c32eb56297f176a0d366fac622", size = 1703849, upload-time = "2026-10-11T01:02:10.903Z" },+ { url = "https://files.pythonhosted.org/packages/1b/43/fbf976e3ae4c038d6f5c84945ab2150298c2d71201674d4e53d158063e75/aiohttp-3.14.5-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:a95529a92a446db351675f4aab518feaf5e99842f63f5dd17160c2b74f382db3", size = 1849703, upload-time = "2026-10-11T01:02:13.15Z" },+ { url = "https://files.pythonhosted.org/packages/8b/7d/218e912f4c1d89bde7ac551409be57ad2f6121638e56942d395a7cb1fa58/aiohttp-3.14.5-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:3edbece0379b8b4aaa67619b8aa2399bb66fce372cd5911098a434ea77220aa0", size = 1852695, upload-time = "2026-10-11T01:02:15.295Z" },+ { url = "https://files.pythonhosted.org/packages/5a/42/252a1b9287e3b6e393a1c3bd1776f36af30f5f25f071bbf2b0cb7eba9116/aiohttp-3.14.5-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:56d9828f204331a5ca8850fcfe2bcce95a149f1f223f60cc7216e5524978e480", size = 1893493, upload-time = "2026-10-11T01:02:17.93Z" },+ { url = "https://files.pythonhosted.org/packages/78/97/71cae83d5100556fad1521684f7cd1e3e578432644f850245ed3bd969310/aiohttp-3.14.5-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:20064a177a070d789ee64a50b01a9161d3468e989baacfc6c714aa685c4b332f", size = 1693468, upload-time = "2026-10-11T01:02:20.666Z" },+ { url = "https://files.pythonhosted.org/packages/1f/69/73d88e97a8b5f0ca7a946d0011c0de99fb188b1687c7948ecd0553dc5bf0/aiohttp-3.14.5-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:81c2b3dfd56c62bee6108e4852d5970b4cf9086390b6983f52b666e878c1f115", size = 1915398, upload-time = "2026-10-11T01:02:23.011Z" },+ { url = "https://files.pythonhosted.org/packages/05/f0/881644bcb15d4b258daea9b720a0af9dc4330496cc8d6ade9090cdd0cffc/aiohttp-3.14.5-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:09ec102b4b8c9a920275733bbc11fdbb615efe6f9231a06007c0218d336fb77a", size = 1871470, upload-time = "2026-10-11T01:02:25.278Z" },+ { url = "https://files.pythonhosted.org/packages/7f/de/19d9ebbcce5aedaa3242d8a99ff8816a60bdb7629fb0084bf4a45bfd1f62/aiohttp-3.14.5-cp314-cp314-win32.whl", hash = "sha256:9c428eb2bd8817588d16a0ab898aa4eb5d141f896aa2b394cc79a4cf61d9a8e2", size = 485517, upload-time = "2026-10-11T01:02:27.579Z" },+ { url = "https://files.pythonhosted.org/packages/a9/74/8cdaf0e58c2588371670d5a9a8215bbb971d36940b6e5d051967dd05c07d/aiohttp-3.14.5-cp314-cp314-win_amd64.whl", hash = "sha256:6f967dde489ca6a8c02d093ab245d2cbf50ccb5c36adf0188b17b0ca39d24b67", size = 511755, upload-time = "2026-10-11T01:02:29.685Z" },+ { url = "https://files.pythonhosted.org/packages/1a/6b/e0100e25502430a531c7cf1482a378d0b65bf728ab60c01ee270e56bc469/aiohttp-3.14.5-cp314-cp314-win_arm64.whl", hash = "sha256:1d2d981b53dd09a319e3570ef8cc3bbc3ef86f5a7abef0f6b2bff3867db3a9e7", size = 495151, upload-time = "2026-10-11T01:02:32.163Z" },+ { url = "https://files.pythonhosted.org/packages/9d/c2/ca2ead7b655688c53c03aeeb6e96e6851c9ff08d6be7b13802f53a6ae8fd/aiohttp-3.14.5-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:9ce66feae6ac65327379460380549bf1b8df8e17c4e25df2a2bcf168272e3bed", size = 855396, upload-time = "2026-10-11T01:02:34.443Z" },+ { url = "https://files.pythonhosted.org/packages/a7/70/22206fea409255a240c926ce11de48de354ae2bb90ca44f709c05497585d/aiohttp-3.14.5-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:27c2322e03f66101acb09869ce1cf1efc04994ee95e1735b69827bf8c8b9d781", size = 567734, upload-time = "2026-10-11T01:02:36.644Z" },+ { url = "https://files.pythonhosted.org/packages/ce/e5/79a36c118308b56f8667d67e05d2fb6dc638ab45985704cdb199631bedaa/aiohttp-3.14.5-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:ff75a7537413a86e7cafe98e0e1d6e3dc4b15c6349896e7d5c6b881bfdb6d550", size = 567379, upload-time = "2026-10-11T01:02:38.757Z" },+ { url = "https://files.pythonhosted.org/packages/63/a3/2ebec7dece3b1f02c30d2e484647f6f7b13952b1bb40a4cb285b849e8432/aiohttp-3.14.5-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:9c061aa954daaf57d2a4b8374f9fca621ef0e1b603584431c220c22458c59b6d", size = 2050686, upload-time = "2026-10-11T01:02:41.169Z" },+ { url = "https://files.pythonhosted.org/packages/3a/d2/7e4d093db2f4450482652e7ef19a9e19919028f5135aa52bc4078c3beb80/aiohttp-3.14.5-cp314-cp314t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:1612fa5857b37bf32e5c1eaeefb96e3b01e9c70679eec81f0934e8a600080863", size = 1915077, upload-time = "2026-10-11T01:02:43.563Z" },+ { url = "https://files.pythonhosted.org/packages/a6/88/bd40d09958442a0a1df67da81de496361d6e2afc04f9db2950d835da750b/aiohttp-3.14.5-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:adbeee7d6fd4cf5fe0aece2fb3edc4243615d3180430ba8149d01a90670cac99", size = 2027204, upload-time = "2026-10-11T01:02:46.185Z" },+ { url = "https://files.pythonhosted.org/packages/63/eb/3a601c1f8d3103c1a60ea981f20924855da9f575d2007fc38f8898b792fb/aiohttp-3.14.5-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:b2966998927d7bed9db12c0a4647b0c7b179755878fc9c357fe1ffd3e3b0c1a5", size = 2149520, upload-time = "2026-10-11T01:02:48.812Z" },+ { url = "https://files.pythonhosted.org/packages/22/d0/4e41bfe1b1ce1cb6f6d2e59fa7a88ef5cf92c402b2d07e9018778ba9edbc/aiohttp-3.14.5-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:8e317e0fb6b16212c881d2205a7d87414c29acd69320b3aa6dce9d9c7b86fe4f", size = 2002039, upload-time = "2026-10-11T01:02:51.293Z" },+ { url = "https://files.pythonhosted.org/packages/6f/5e/72067019545c502b881b031153c437752ecef48d7d213bc0218ccebb4bfb/aiohttp-3.14.5-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:50343c1757b4b6f6708eeaf24534b32f19dfb99fb1b762c00420867a62fc81e0", size = 1786164, upload-time = "2026-10-11T01:02:53.533Z" },+ { url = "https://files.pythonhosted.org/packages/d9/fe/7741efd6119bfb7a00827fe6f7b84b4409de58d888ae21adc5a9a6824992/aiohttp-3.14.5-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:083673c7a94c3ea035caaa5ca04288bdb44887abfe1f5ba23294e6a4b03efd2d", size = 1970689, upload-time = "2026-10-11T01:02:55.888Z" },+ { url = "https://files.pythonhosted.org/packages/43/e7/342a13bf67f34d269bf2f7e870ecd72b99c832cc6f0a271a9210c0ebfb84/aiohttp-3.14.5-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:2528cb4c6b92008c76ac9ac6298624069bb2db91ff4929905512d1d84485f658", size = 1951967, upload-time = "2026-10-11T01:02:58.467Z" },+ { url = "https://files.pythonhosted.org/packages/e7/d4/fdb3b27340617e5e64df18a70fa89097778652ea5c7c7e2f79def76999c3/aiohttp-3.14.5-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:b1b8ece1e71132d2afba4dbc0c3d62c766e25165990b25db1196c04969eb3d84", size = 1968511, upload-time = "2026-10-11T01:03:00.883Z" },+ { url = "https://files.pythonhosted.org/packages/83/b2/e8f88298de78d1a951f36f9f966d38ec6ed1d4721303ba02064a545e8aa6/aiohttp-3.14.5-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:fce9523df31cea6284f3e2c479876750d7687cf671d7b25d32b19effc0e86441", size = 1778497, upload-time = "2026-10-11T01:03:03.206Z" },+ { url = "https://files.pythonhosted.org/packages/22/68/9ccdb93d664345c546be7f34480b921774d8c0d98f47e70d7e03b115d475/aiohttp-3.14.5-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:09e0eb18c7e0c8777e2f9149de63799195b9b3ca1b5c81ba6f32f2c6b8628210", size = 1999676, upload-time = "2026-10-11T01:03:05.829Z" },+ { url = "https://files.pythonhosted.org/packages/57/4a/a33cfa6dcb00e94194ae4fe710432ca4ed111e016356b4ba4d2f4c3a124c/aiohttp-3.14.5-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:6774814fd5c338e72ee0da5cbb9432816df450e69c019f72b5d29bdec2a1792d", size = 1963437, upload-time = "2026-10-11T01:03:08.196Z" },+ { url = "https://files.pythonhosted.org/packages/f4/20/eacbecfea3b5c3dcbfc9b023e3a5460f43e5dda16d06a2877ebe7184c3f3/aiohttp-3.14.5-cp314-cp314t-win32.whl", hash = "sha256:33f706574e32c6e694f352a856e05caf18f7f2c871b3e87b41c55ea452b409ab", size = 503973, upload-time = "2026-10-11T01:03:10.481Z" },+ { url = "https://files.pythonhosted.org/packages/ff/78/18eec294f6c8c5dc845dcf6d730a0147d8d0f17e86138a7bdb85e43a30fa/aiohttp-3.14.5-cp314-cp314t-win_amd64.whl", hash = "sha256:5ba14a839fbe87cf7c12a6b5661c05f324a296eb8363141edb3944ba63d4c9d3", size = 531190, upload-time = "2026-10-11T01:03:12.716Z" },+ { url = "https://files.pythonhosted.org/packages/9d/39/e53f8169acc85271ebd12b5b32ad7f1541b35639ccbe0f49034c64785d10/aiohttp-3.14.5-cp314-cp314t-win_arm64.whl", hash = "sha256:1061b364556e8172e8d46b0b183adeeb73e8c42d30ebc745591e1bd89acad52e", size = 510360, upload-time = "2026-10-11T01:03:15.08Z" },+ { url = "https://files.pythonhosted.org/packages/f3/1c/06d89f58b2db3ee92dd377217659d587e06f973e57bf0a97a0d8a4586c0c/aiohttp-3.14.5-cp315-cp315-android_24_arm64_v8a.whl", hash = "sha256:788ecaa9c10533b786ce5ba70c4f2df78ad41819fd00a6c99d92b66f9a32e1da", size = 540674, upload-time = "2026-10-11T01:03:17.483Z" },+ { url = "https://files.pythonhosted.org/packages/18/39/5e822e038f496f0540ada91e27099d48f9e7f919b6c6deb4cf6db36cc706/aiohttp-3.14.5-cp315-cp315-android_24_x86_64.whl", hash = "sha256:5c76f1802bab718a68ac3cce447160605c734551f95c67ae90fa1132b215cb29", size = 554183, upload-time = "2026-10-11T01:03:19.71Z" },+ { url = "https://files.pythonhosted.org/packages/9b/ff/0cf2619d902b5b160762422a7e5e02091295766a7fe4fcf5b9a655e386c1/aiohttp-3.14.5-cp315-cp315-ios_13_0_arm64_iphoneos.whl", hash = "sha256:a6d02b4c38de03d9c7617813433e6a0fb6b522797974177d69d9dad431900833", size = 523160, upload-time = "2026-10-11T01:03:22.193Z" },+ { url = "https://files.pythonhosted.org/packages/86/99/3553abfc53a40849dbaacc3f54c730ec58410809ffa2d05885ae56108f2d/aiohttp-3.14.5-cp315-cp315-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:20726f9782d5c2744c1c66255842d1d163bb3edcf768b8de25216bf47f7b6ccf", size = 530311, upload-time = "2026-10-11T01:03:24.435Z" },+ { url = "https://files.pythonhosted.org/packages/fe/a4/5d25f73754bc1e8f983ba704e86d641aea290c967f195f2aeebdaed2bd84/aiohttp-3.14.5-cp315-cp315-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:248d779ad720b49d4fb355720e60c9e5f444f95887bc16974fea48fc56c41789", size = 540274, upload-time = "2026-10-11T01:03:26.698Z" },+ { url = "https://files.pythonhosted.org/packages/29/a4/07eda5db2e3ee017d9590f36c12a94ec6f1f50516e8df78672373dfc7185/aiohttp-3.14.5-cp315-cp315-macosx_10_15_universal2.whl", hash = "sha256:0a8ea271867e360ac985ae607f4a23ad9a38414b9aca1d49ec98839ae660e49f", size = 819239, upload-time = "2026-10-11T01:03:29.481Z" },+ { url = "https://files.pythonhosted.org/packages/cb/aa/a8723dd987a696dd48d4cf2f0088e589ce77caebff0b96f2a78c20424380/aiohttp-3.14.5-cp315-cp315-macosx_10_15_x86_64.whl", hash = "sha256:823c910f046f23f4c713b8d99a2242dc65f591cb45ee86418fa11762a3c2963c", size = 549832, upload-time = "2026-10-11T01:03:32.02Z" },+ { url = "https://files.pythonhosted.org/packages/29/5c/969a1b72692055fd2a419590c41847ec9144fefb97b75ff1cde5b6372891/aiohttp-3.14.5-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:9b42db919715e91eb76acf3bc492a9a7ccd8bd9adc6745c1412b689735269f14", size = 549234, upload-time = "2026-10-11T01:03:34.469Z" },+ { url = "https://files.pythonhosted.org/packages/38/05/8e3e07fd8a0d33d06955ff4e54a1cb92f4bce347ff55e441dc3e25a7b5e5/aiohttp-3.14.5-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d3112585250b199296c26ca6e0131640b6a8d01bab8b232d2eb3763ed469de11", size = 1891314, upload-time = "2026-10-11T01:03:36.899Z" },+ { url = "https://files.pythonhosted.org/packages/b6/b3/05a79ce2e25f024e93de30c94f39dc6aa6e2bc1e9c531a5c4b18dc61b7a4/aiohttp-3.14.5-cp315-cp315-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:c147451b4a58e7050f7f7394e6c467867c84161560001f9ad4fb2d1446743946", size = 1884372, upload-time = "2026-10-11T01:03:39.334Z" },+ { url = "https://files.pythonhosted.org/packages/94/52/0fd8af0717db109eea258191b326b5cb5847fb88928bfa6c862fd78b9ad3/aiohttp-3.14.5-cp315-cp315-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:bf163cc701f3d4ac43ba7d97771bf5fd955220ef5500ef3ee847bc0ecfbf4ec1", size = 1930957, upload-time = "2026-10-11T01:03:42.172Z" },+ { url = "https://files.pythonhosted.org/packages/4e/b3/fa78733da88812bf9fb193913fb0ce1548f8b6912047633fdf88a758ff8c/aiohttp-3.14.5-cp315-cp315-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:f8d40ce41991e9d56fab4f5dc4a51fe59bc3b5c77c27f4b148963064d00232e8", size = 2038886, upload-time = "2026-10-11T01:03:44.646Z" },+ { url = "https://files.pythonhosted.org/packages/cf/f5/2fcc5e30053a938286f17d0edf3f0850b8061b984256fa7c26850b9c8809/aiohttp-3.14.5-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:276a4fc00b1d9ae492b802763a789c5b86328b989c5ea169f2faa447d6a11c7c", size = 1894470, upload-time = "2026-10-11T01:03:47.304Z" },+ { url = "https://files.pythonhosted.org/packages/62/2a/f87feb42abe8e6a7c03814dbcb711540849a1e90aa392055f3183c643610/aiohttp-3.14.5-cp315-cp315-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:50983e3be33d8c0942ab88cec3905b10602f64c469b20153c48c5d4e558dd016", size = 1716273, upload-time = "2026-10-11T01:03:50.121Z" },+ { url = "https://files.pythonhosted.org/packages/81/b2/adf1f960dd977722ed1347d33da512a1624807114f57a3b91f5cc828e081/aiohttp-3.14.5-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:16c8abd5bca220a47efe667d26f8460124c81810787e79ee87b242677563d9dd", size = 1857513, upload-time = "2026-10-11T01:03:52.959Z" },+ { url = "https://files.pythonhosted.org/packages/d7/fd/ef8d910e641de4160026a513ace5888b7f92826bbc3fd90ced05d55a828e/aiohttp-3.14.5-cp315-cp315-musllinux_1_2_armv7l.whl", hash = "sha256:0790ec66fa4013e83c53b9025a45d454723da1a2fce28b3208c9b32d08af162f", size = 1887704, upload-time = "2026-10-11T01:03:55.641Z" },+ { url = "https://files.pythonhosted.org/packages/7e/db/6c9142f941cba8d35be8e1fae6ea2bd390e754fc14076b8147aee1a4592f/aiohttp-3.14.5-cp315-cp315-musllinux_1_2_ppc64le.whl", hash = "sha256:cb11a971a3aea10f9b8373be628f1df932964fc6c6b174516d318a48c3ac4412", size = 1895684, upload-time = "2026-10-11T01:03:58.18Z" },+ { url = "https://files.pythonhosted.org/packages/e6/7c/6a6bd9a72e576d376c668333b00c51c6147aba4fb863ed6c94996d497eca/aiohttp-3.14.5-cp315-cp315-musllinux_1_2_riscv64.whl", hash = "sha256:932ce7e694bbc29b2bf6f64f2343c27d148d4997c771d01bdade4639b6749ff4", size = 1706299, upload-time = "2026-10-11T01:04:00.8Z" },+ { url = "https://files.pythonhosted.org/packages/69/ec/d2cc494242f8c4d3d1cd70baf591742818a74386dc3b84af3195c5c4fced/aiohttp-3.14.5-cp315-cp315-musllinux_1_2_s390x.whl", hash = "sha256:a7d470cf7b206e6359fc77b1b860632fde400d5a2ed59cd0181b93a686bc81ee", size = 1916645, upload-time = "2026-10-11T01:04:03.892Z" },+ { url = "https://files.pythonhosted.org/packages/a3/6e/e852c53647e815db09a1b6b5ab634f54bd736412397e11940feef4d2c89a/aiohttp-3.14.5-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:6e1d8637cf73eebc92eba2e11d4cfff98a3b562f2505bd75bba766d908926e8d", size = 1875408, upload-time = "2026-10-11T01:04:06.922Z" },+ { url = "https://files.pythonhosted.org/packages/fe/f6/72ab6ef20c332399be593bac543d2c24a6d241e39d3540ce9f95a63e4bd2/aiohttp-3.14.5-cp315-cp315-win32.whl", hash = "sha256:fbdc5ec49f9ca3cd24955cf3520b10a4d4c901ba2572094c84274e9e7eb30534", size = 485590, upload-time = "2026-10-11T01:04:09.626Z" },+ { url = "https://files.pythonhosted.org/packages/06/eb/e9de75b8c6d2170c42c08ff303abf857ea8a6d9d9b6e99b5aba40f15e962/aiohttp-3.14.5-cp315-cp315-win_amd64.whl", hash = "sha256:a9d3983bd6ab7aa1cfd573544ae98df9b6cb6912a5185a198263e024a636861d", size = 511740, upload-time = "2026-10-11T01:04:12.277Z" },+ { url = "https://files.pythonhosted.org/packages/fc/25/455f3c2785eb0d50748cffd0abd07500815f419a9495b14610b7622d8d2d/aiohttp-3.14.5-cp315-cp315-win_arm64.whl", hash = "sha256:e29347c142cf6e99e0dff5e2995ead1d50fa3b51bf37a7c726a7ccfe5419745a", size = 495171, upload-time = "2026-10-11T01:04:14.667Z" },+ { url = "https://files.pythonhosted.org/packages/e7/6c/497f0a98782eebfcf0f02a7fbdef5428148bd426027140cbad494cf842b5/aiohttp-3.14.5-cp315-cp315t-macosx_10_15_universal2.whl", hash = "sha256:9bf1d5dcc15204d9ec8b8ea4c18fd66e6b80e5de1f4ecbafb3a2f2740f8039d4", size = 855638, upload-time = "2026-10-11T01:04:17.154Z" },+ { url = "https://files.pythonhosted.org/packages/9a/c5/55c0cef2572af9b1ee81608f7c0a1bf74e6c9151a73b04915d933f192335/aiohttp-3.14.5-cp315-cp315t-macosx_10_15_x86_64.whl", hash = "sha256:14f04769cfefe4734016a856a83af36133cd17779cef9ae817f812b8ba9d6d51", size = 567455, upload-time = "2026-10-11T01:04:19.702Z" },+ { url = "https://files.pythonhosted.org/packages/4d/47/e1a0e39f4a2b881f6071225afaf94a6547001b5aefc1566734d73c685934/aiohttp-3.14.5-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:6e4251c0ba4624a68a2c11471a1ac54c3306876c21f0ae86de085cc9241c8905", size = 567836, upload-time = "2026-10-11T01:04:22.235Z" },+ { url = "https://files.pythonhosted.org/packages/c3/1d/817d85836f52b687160064a326e62e037dc42f1ad5b6b5188a70e5c134b5/aiohttp-3.14.5-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:e4f5cf4dc72a71c4cfa9751b4950be22f733626670230d46e7d606592aa22d59", size = 2051409, upload-time = "2026-10-11T01:04:24.821Z" },+ { url = "https://files.pythonhosted.org/packages/f7/25/e8ea6fc212a9aabce982917346ce8ecab0929c74b60232a056dd11c99da0/aiohttp-3.14.5-cp315-cp315t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:dbf53ae2601b7fd5a93c3944deea3a78d40f495226d582c35ef7a433425ce2b2", size = 1936493, upload-time = "2026-10-11T01:04:27.456Z" },+ { url = "https://files.pythonhosted.org/packages/24/33/de0517f71f1a19feea4aff78a2ec4ec2d98634129ec30ead78fce2f8f81b/aiohttp-3.14.5-cp315-cp315t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:657291433bf4dd3142f3abac495764cd47d0c7c92087751e6666c6447e65fcef", size = 2021405, upload-time = "2026-10-11T01:04:30.276Z" },+ { url = "https://files.pythonhosted.org/packages/c4/11/ddaf2e7930543e9f0cad3a1c54e1af0c1bd2fae3973d568c4263d3b010e9/aiohttp-3.14.5-cp315-cp315t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:3e51a27980c3788e6e6b3325d694fdd4898087fa8a86b2763af77b39353da41e", size = 2142017, upload-time = "2026-10-11T01:04:33.022Z" },+ { url = "https://files.pythonhosted.org/packages/1d/7b/58784353c06de8adc20f426daad3d85dd86fd55331c713a3f4b638c94573/aiohttp-3.14.5-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:82c7583cd3dfdc7dcc927835b4f6c7faae7ecc1ba3ca5879321621ae2e6f8e84", size = 2002482, upload-time = "2026-10-11T01:04:35.94Z" },+ { url = "https://files.pythonhosted.org/packages/b9/f0/417d9535caa9e165ffe6a53e2347a78107e7c87dcb0e10aca315c3af0344/aiohttp-3.14.5-cp315-cp315t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:6fdcd6af7e2e51d1ba1b4bea16e97b074bcb7b5dd0246a9d8201341bb28085a0", size = 1791774, upload-time = "2026-10-11T01:04:38.733Z" },+ { url = "https://files.pythonhosted.org/packages/98/01/25e49c2e8a01b9f0e19ca0a8448ad50aa2bdf96c8cd41e92bd45af044784/aiohttp-3.14.5-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:c8859a013ae0de1074660992139a1a440df3e6b219b86cf0d3f11c2692bb4fe3", size = 1970358, upload-time = "2026-10-11T01:04:41.66Z" },+ { url = "https://files.pythonhosted.org/packages/2d/fc/c132fd3465b6c7e4ce0193154f602c3e6c46b680e4da7eb3bd0d8a40d1c7/aiohttp-3.14.5-cp315-cp315t-musllinux_1_2_armv7l.whl", hash = "sha256:8966ecac808dd5f473c9c4cefd10cd3ffda71c18a4d3493b7c7d2ae1803bf2cc", size = 1969192, upload-time = "2026-10-11T01:04:44.66Z" },+ { url = "https://files.pythonhosted.org/packages/95/4e/d58b45e7dba4eb607eca11fc0a4aa77ae0f39c11afa804635a61ce18cff4/aiohttp-3.14.5-cp315-cp315t-musllinux_1_2_ppc64le.whl", hash = "sha256:3093b72c215bda16ce961a6d073f6e71d46e022962a9d5d457c5d4d421c78b57", size = 1963618, upload-time = "2026-10-11T01:04:47.505Z" },+ { url = "https://files.pythonhosted.org/packages/a2/d9/f6ac50946efb3490428ef52b56e62c1c6b7f9c6ff3ec6083535526c83e60/aiohttp-3.14.5-cp315-cp315t-musllinux_1_2_riscv64.whl", hash = "sha256:149fb56caf7acb67073126f675d0958d9c4b3125fcd3f6d4877df98aa8a97ce9", size = 1784817, upload-time = "2026-10-11T01:04:50.287Z" },+ { url = "https://files.pythonhosted.org/packages/d0/2f/f255eb63da788cd8a452fe350869c03266ccad7d884925f6963c87808f24/aiohttp-3.14.5-cp315-cp315t-musllinux_1_2_s390x.whl", hash = "sha256:293d3ae7c6a0ed176a42e59a1b5fde825ead65c835360f734148e96729f928d2", size = 1995956, upload-time = "2026-10-11T01:04:53.213Z" },+ { url = "https://files.pythonhosted.org/packages/d9/9b/241aa3393eaafda0034470add1625f82a4c252901108723b283a9b0b32ca/aiohttp-3.14.5-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:3f2dcc00191fd563e9075181a14ec31d7dd63223ced7582cc70a15a499de0c79", size = 1967794, upload-time = "2026-10-11T01:04:55.958Z" },+ { url = "https://files.pythonhosted.org/packages/5f/7f/a68e689288c9e4bfcf8d0979f2b12b774bf01861985420df6150eba5448e/aiohttp-3.14.5-cp315-cp315t-win32.whl", hash = "sha256:7779cd97e61ebe583ec2f1c5616cdd038aa08a4453b1848c67842176d054948e", size = 503876, upload-time = "2026-10-11T01:04:58.978Z" },+ { url = "https://files.pythonhosted.org/packages/a4/78/49b0299da6d54de19fc6fdc6889d50233ac47d192a461624f4fc010fde83/aiohttp-3.14.5-cp315-cp315t-win_amd64.whl", hash = "sha256:0e6f16f5e49c4b8267988c05ab07760d7064cea57d077c3d068d04b0fbb992cb", size = 530957, upload-time = "2026-10-11T01:05:02.23Z" },+ { url = "https://files.pythonhosted.org/packages/21/d4/b0afc936aeb6d2f93157e3408b069ec5d7934429ae7d023de5e0953b1887/aiohttp-3.14.5-cp315-cp315t-win_arm64.whl", hash = "sha256:1aead151c3abbac6b32942e452020cb66d7efc099d253cc6c20f748e926c858b", size = 510408, upload-time = "2026-10-11T01:05:05.362Z" },+ { url = "https://files.pythonhosted.org/packages/68/30/173960c42b05a6c59f7558e4b12a4b0d9ba376cf6aa9bde7f9e08a30ca8d/aiohttp-3.14.5-py3-none-any.whl", hash = "sha256:efc21a454892828368b11c2c780de0ff8bc991f73f6b99c6b66e56205470929b", size = 279517, upload-time = "2026-10-11T01:05:08.523Z" },+]++[[package]]+name = "aiohttp-retry"+version = "2.9.1"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "aiohttp" },+]+sdist = { url = "https://files.pythonhosted.org/packages/9d/61/ebda4d8e3d8cfa1fd3db0fb428db2dd7461d5742cea35178277ad180b033/aiohttp_retry-2.9.1.tar.gz", hash = "sha256:8eb75e904ed4ee5c2ec242fefe85bf04240f685391c4879d8f541d6028ff01f1", size = 13608, upload-time = "2024-11-06T10:44:54.574Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/1a/99/84ba7273339d0f3dfa57901b846489d2e5c2cd731470167757f1935fffbd/aiohttp_retry-2.9.1-py3-none-any.whl", hash = "sha256:66d2759d1921838256a05a3f80ad7e724936f083e35be5abb5e16eed6be6dc54", size = 9981, upload-time = "2024-11-06T10:44:52.917Z" },][[package]]@@ -238,6 +259,7 @@ dependencies = [{ name = "clerk-backend-api" },{ name = "cryptography" },{ name = "datasketch" },+ { name = "daytona" },{ name = "django" },{ name = "django-celery-beat" },{ name = "django-cors-headers" },@@ -262,6 +284,7 @@ dependencies = [{ name = "levenshtein" },{ name = "lxml" },{ name = "markdownify" },+ { name = "matplotlib" },{ name = "mcp" },{ name = "modal" },{ name = "newrelic" },@@ -335,6 +358,7 @@ requires-dist = [{ name = "clerk-backend-api", specifier = ">=5.0.6" },{ name = "cryptography", specifier = ">=50.0.0" },{ name = "datasketch", specifier = ">=2.0.0" },+ { name = "daytona", specifier = "==0.231.1" },{ name = "django", specifier = ">=6.0.8" },{ name = "django-celery-beat", specifier = ">=2.7.0" },{ name = "django-cors-headers", specifier = ">=4.9.0" },@@ -359,6 +383,7 @@ requires-dist = [{ name = "levenshtein", specifier = ">=0.27.5" },{ name = "lxml", specifier = ">=6.1.3" },{ name = "markdownify", specifier = ">=1.2.3" },+ { name = "matplotlib", specifier = ">=3.11.2" },{ name = "mcp", specifier = ">=1.26.0,<2" },{ name = "modal", specifier = ">=1.6.1" },{ name = "newrelic", specifier = ">=13.4.0" },@@ -437,6 +462,15 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/88/c6/92fcd42f1ba33e1184263f25bfabf3d27c383410470f169e4b8163bf9c17/beautifulsoup4-4.15.0-py3-none-any.whl", hash = "sha256:d6f88de62e1d4e38ecb1077eb9724cd0eff29d2a08ca16a401e9b9e93f117cf9", size = 109924, upload-time = "2026-06-07T16:44:21.566Z" },]+[[package]]+name = "bidict"+version = "0.24.1"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/a8/f2/8d2dd8276ca05e1f5157b6a0d34efb2f585f47a0fbed61e8aad04b221f0b/bidict-0.24.1.tar.gz", hash = "sha256:4dca6c17f0b01700e9f24359daa5ebabf7be022d99f4cb2a257b6af2a5076c88", size = 30818, upload-time = "2026-08-25T23:45:52.214Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/97/53/2a3c7d562271ec6b6e38e7216b3104899f8aa4180c0713cb8aaf69e29cd5/bidict-0.24.1-py3-none-any.whl", hash = "sha256:fd3eaa737917d8a14f4baa391670c433c4e3f6f5fd2cd99d4bf436437f432364", size = 36175, upload-time = "2026-08-25T23:45:51.096Z" },+]+[[package]]name = "billiard"version = "4.2.4"@@ -725,6 +759,75 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/d1/d6/3965ed04c63042e047cb6a3e6ed1a63a35087b6a609aa3a15ed8ac56c221/colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6", size = 25335, upload-time = "2022-10-25T02:36:20.889Z" },]+[[package]]+name = "contourpy"+version = "1.4.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "numpy" },+]+sdist = { url = "https://files.pythonhosted.org/packages/83/5a/a55177dd22553a277388e8a1b3220e92de91bacb28356cdc73caa240121d/contourpy-1.4.0.tar.gz", hash = "sha256:20156f5a1ac4f8ce02656e39a61e82164a3d359796dc8026f75b062783d500e1", size = 13323726, upload-time = "2026-09-11T19:05:05.808Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/b7/8b/62a6eacea08ea0b6ab0159a7783df7ed421ff9c1ff58fef7c31f58fa5e52/contourpy-1.4.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:e21d1d4a9db5b3a793649c7ab0ddb4697f2818929eec871a7b9c45fce7b2a1ea", size = 297330, upload-time = "2026-09-11T19:03:11.809Z" },+ { url = "https://files.pythonhosted.org/packages/3f/2f/103cdc5b7077cd569989d3ddb99ee3d4e96ee31bde8df2a6e426b2dc6195/contourpy-1.4.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:196759a3e4db60e1546167e361090ebb6d199aa3aafc9e34ea17a5ac3b23e814", size = 285037, upload-time = "2026-09-11T19:03:13.781Z" },+ { url = "https://files.pythonhosted.org/packages/bf/25/97001d1fdf940e6f5adfc592d4f5899fff95daf7dceead3988fe09987d2d/contourpy-1.4.0-cp313-cp313-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:9c0e07c691f3b3321913ed9b8161c50ea5f77fadd006f52f5e755359b0dcbfc5", size = 356675, upload-time = "2026-09-11T19:03:15.374Z" },+ { url = "https://files.pythonhosted.org/packages/a6/5e/9a7241a89e2f74402aefa2569e1349ad2750ff77823c04c788eaaedb7fdd/contourpy-1.4.0-cp313-cp313-manylinux_2_26_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:7f861af508fca2384eef392bc1d8377cfa349b2b854cb11b45d89c75780e2561", size = 406990, upload-time = "2026-09-11T19:03:17.44Z" },+ { url = "https://files.pythonhosted.org/packages/36/81/3a4fbbf6a806eada5453a6d16f6c7d96b9f4b3e57a3127368fb545986b8a/contourpy-1.4.0-cp313-cp313-manylinux_2_26_s390x.manylinux_2_28_s390x.whl", hash = "sha256:a03b32c2e7eda8b17757c022162c13c86f5c3d6f937dddf9ba3c3ff7b513953b", size = 407271, upload-time = "2026-09-11T19:03:19.523Z" },+ { url = "https://files.pythonhosted.org/packages/68/77/8f93ecbde1a4d11dfd460cd19a0c159f5487352e751fa87f5d78cc9db08e/contourpy-1.4.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:f1219a8898523cba821085f2da8a1b962cc696325763f09d7f93538ba43b2d70", size = 384707, upload-time = "2026-09-11T19:03:21.208Z" },+ { url = "https://files.pythonhosted.org/packages/05/07/e5cdf94d68961ee464de6b4fedd3d2f666584f59ccd124bb1290597122ab/contourpy-1.4.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:20da2f86bfaed60dbba729fe738c8241b1dd22b6cf7e8cbbf30df290bd04ba28", size = 1356741, upload-time = "2026-09-11T19:03:23.621Z" },+ { url = "https://files.pythonhosted.org/packages/fd/8a/2301d07accb257ac08daeb631875fada06fedd019c20ff7b00ee07e9d211/contourpy-1.4.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:6ced1670fafee703b8277ab1645072a226e74f167166eae146fb743916119b67", size = 1426793, upload-time = "2026-09-11T19:03:25.955Z" },+ { url = "https://files.pythonhosted.org/packages/7d/5d/a62648f06259d15c139b14eb8cf3c58fe53cb970a55f2bb77d1070e80a41/contourpy-1.4.0-cp313-cp313-pyemscripten_2025_0_wasm32.whl", hash = "sha256:abd0f7e51ecc52bf8c95713bd80b1c17c516a71fa391c54475308a4377903c2b", size = 117961, upload-time = "2026-09-11T19:03:27.713Z" },+ { url = "https://files.pythonhosted.org/packages/71/31/c5b7771ba6982f319ec90c0cf5c425b36891adfeee2d9f667f90b2d0c166/contourpy-1.4.0-cp313-cp313-win32.whl", hash = "sha256:510f7d93d94cf6ebf4e2cd0640bea16ab8affac7547230175b6745b596ce0599", size = 347438, upload-time = "2026-09-11T19:03:29.829Z" },+ { url = "https://files.pythonhosted.org/packages/68/c1/a59df0754bf83a6f3e153cc19d550a5b01f607e389b1c4d57f436f9139e0/contourpy-1.4.0-cp313-cp313-win_amd64.whl", hash = "sha256:6507a016976a75a15aee47809a34605de6244ccc056e6164bf9fb14b27eecad4", size = 234084, upload-time = "2026-09-11T19:03:31.657Z" },+ { url = "https://files.pythonhosted.org/packages/41/48/97224f5decb1efa5a610f912195deb45321f73ec9b9dac485cd6fe2d5a6a/contourpy-1.4.0-cp313-cp313-win_arm64.whl", hash = "sha256:423bd5f4b3f11d54a8c597234e513382e3454bb106b8ec7ae32ba4ed63f8d99b", size = 559559, upload-time = "2026-09-11T19:03:33.528Z" },+ { url = "https://files.pythonhosted.org/packages/75/b0/b548628c8dddf6e5e0a981b7fa8e4c008024df09c7d17c6a9e271edfa0b3/contourpy-1.4.0-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:a3e67bc1a6a4618a1dac7c3053a9ffece5ddfa2046b2670b342cf430bb0b87d1", size = 297354, upload-time = "2026-09-11T19:03:35.017Z" },+ { url = "https://files.pythonhosted.org/packages/04/5a/513484208742f65af2648c519f0b7ab034616e183c4403538024c136a1ab/contourpy-1.4.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:072a702e2e178f4fcf96f04775d0c059e4c917925abf0d3208ebb6865df3c23d", size = 283729, upload-time = "2026-09-11T19:03:36.818Z" },+ { url = "https://files.pythonhosted.org/packages/35/da/5a6562febc994b2c4bf9d01e57a50458ef8a2051bb3e7b35a00333e0fc26/contourpy-1.4.0-cp314-cp314-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:404dbcd9233513dfd1323b66ea593fef90e899f658f6b8a9ed8e93bd0ca669db", size = 357819, upload-time = "2026-09-11T19:03:39.058Z" },+ { url = "https://files.pythonhosted.org/packages/6d/99/7b358ce888aaa426f755daa096c99c59d17c352037344e836f20e5d3b957/contourpy-1.4.0-cp314-cp314-manylinux_2_26_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:61624f6722480aa7e168fd746164e7bfdf48f8ccb6542f1613741200dc37e2b1", size = 407795, upload-time = "2026-09-11T19:03:41.293Z" },+ { url = "https://files.pythonhosted.org/packages/be/02/34d7548adf08c60967435d79d7a90882eacc84f5093435287974c7e99943/contourpy-1.4.0-cp314-cp314-manylinux_2_26_s390x.manylinux_2_28_s390x.whl", hash = "sha256:2e741a39dfc96babe1722561e81351aeec104526c57dbe91c167c1db606c2d55", size = 408552, upload-time = "2026-09-11T19:03:42.728Z" },+ { url = "https://files.pythonhosted.org/packages/cf/8c/9677dad226e5aaac5b823d5b09d881ebc32ff1648af417597649841e516c/contourpy-1.4.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:e439ab450c93455feb0218532ded3e946ec7a9b5f459069f122cfa44b89229f6", size = 384850, upload-time = "2026-09-11T19:03:44.402Z" },+ { url = "https://files.pythonhosted.org/packages/08/f5/e3fbeaa489c223629fbb434737cb3de4ecaca9cae4825e77b92490f640f8/contourpy-1.4.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:417be048f7e122cefbe2a34c51a1f2b0410f8eb35796f794d45475ddb7872d9d", size = 1357601, upload-time = "2026-09-11T19:03:46.746Z" },+ { url = "https://files.pythonhosted.org/packages/88/be/55fec293d342c222ed58a5d4056df4362e192af2e59527a3d5d822de8828/contourpy-1.4.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:43d80072a32299bf945de0a6dd4e034ea0162e832261de2e07a274a5adbba9c9", size = 1427340, upload-time = "2026-09-11T19:03:48.745Z" },+ { url = "https://files.pythonhosted.org/packages/86/40/0faabf453edf59b0e3633381d7ca72c3414fb9b72b5cbb08b06ed792d3e5/contourpy-1.4.0-cp314-cp314-pyemscripten_2026_0_wasm32.whl", hash = "sha256:fa1b787362a3856e63dd2b89449f6c384d55ee1beb8f94f4bcc871b40f02462c", size = 118355, upload-time = "2026-09-11T19:03:50.047Z" },+ { url = "https://files.pythonhosted.org/packages/38/0c/7ea75aa3559ae8a6805015e15a19c92b6480752ecc92526361e5776e88c5/contourpy-1.4.0-cp314-cp314-win32.whl", hash = "sha256:738c44fa71735a617f36da58e32810512407d283d5d1bb5b1cecb00d7eeba7cf", size = 356977, upload-time = "2026-09-11T19:04:11.401Z" },+ { url = "https://files.pythonhosted.org/packages/15/41/3df8cc14bb572c8b447f9dfbc876703f0f2f2896058285b5c87a1d4a638d/contourpy-1.4.0-cp314-cp314-win_amd64.whl", hash = "sha256:181bea01bc742734ae672fa00c717d855dd35e1f029536406538c52e7b0cd73d", size = 240101, upload-time = "2026-09-11T19:04:12.772Z" },+ { url = "https://files.pythonhosted.org/packages/66/01/ee6830a5aa4565662a345172f6f35eeeed625d20f1c9d4ecd35318fe4ade/contourpy-1.4.0-cp314-cp314-win_arm64.whl", hash = "sha256:64039341e2d8804f1a13bda8c69083eab935167bbd7e856cf096241f17d5bd45", size = 576359, upload-time = "2026-09-11T19:04:14.983Z" },+ { url = "https://files.pythonhosted.org/packages/51/af/49ee9c9cf012699e505c1b63c531cc99f19df50f205173092c4d541e3ec7/contourpy-1.4.0-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:ef47fef9a912c77e3d84b014f701e5a9340f25703e9ed3bcebe37f91fb69dc49", size = 313601, upload-time = "2026-09-11T19:03:51.452Z" },+ { url = "https://files.pythonhosted.org/packages/ad/59/ce411ab2be0f805038626d8f4ca9ce563487ff51ff6c363e7512271564ed/contourpy-1.4.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:96019f059bcb3774acc0104be3360a57b36d33eaaa2e1d7f77c800ca8e07618b", size = 302812, upload-time = "2026-09-11T19:03:53.022Z" },+ { url = "https://files.pythonhosted.org/packages/95/b0/390915f9af14c1e2d3b2a9ad99d85b98df4352346a51e368cbb825f813c3/contourpy-1.4.0-cp314-cp314t-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:ddf5a2596d716fd3793434844caf31abc7a40b1e8718431420c89858268fb909", size = 348996, upload-time = "2026-09-11T19:03:54.594Z" },+ { url = "https://files.pythonhosted.org/packages/c7/85/e0952576d54322f3e9983b1e049a7a31f42ce82c5c29d01821e6dd3780d7/contourpy-1.4.0-cp314-cp314t-manylinux_2_26_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:dd59df9e2fb0aff8bd7fd1adb9f349b7c835245a9d0f18c2f2deeb537190f2b1", size = 400272, upload-time = "2026-09-11T19:03:56.822Z" },+ { url = "https://files.pythonhosted.org/packages/d6/7d/f13543a5e1598e4a4ad01d9d5e2d65f9c09c37660616429913d606c5977d/contourpy-1.4.0-cp314-cp314t-manylinux_2_26_s390x.manylinux_2_28_s390x.whl", hash = "sha256:b7794ea07cab575633daad8d6e963b662053391022294d3aacc1d9ba9ef54114", size = 412895, upload-time = "2026-09-11T19:03:58.487Z" },+ { url = "https://files.pythonhosted.org/packages/c5/a8/6e5eaff53507dfd2dfc428240eecda32453067277d4b3e7ca71210b2d611/contourpy-1.4.0-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:a1c8a74744fa746eeaa12f0f9ed7f8b4add9d8f1b14d95e3b5e133675eac888f", size = 377060, upload-time = "2026-09-11T19:04:00.122Z" },+ { url = "https://files.pythonhosted.org/packages/16/a3/d00e44d35511b3cead5bd794ee672d4eecf30d9de4ceac57a49d6204064f/contourpy-1.4.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:107ec46f7aa1664266d69b1181aadc953d58d39f7d8d648fa5b795d4a060b0de", size = 1345688, upload-time = "2026-09-11T19:04:02.705Z" },+ { url = "https://files.pythonhosted.org/packages/1e/01/1e533b0cae32c8edd63fe40435ec3b29345dab87321afcd28722d7f957d1/contourpy-1.4.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:5a4c89c7f38a0d7a94356d74e3391073c4325c4d47ad2fd065c3fe7dbae16c0c", size = 1416140, upload-time = "2026-09-11T19:04:04.77Z" },+ { url = "https://files.pythonhosted.org/packages/6d/0c/4ee66759f00d6a5d6909782f14f441d639fa18a4a43142e334351efc47f8/contourpy-1.4.0-cp314-cp314t-win32.whl", hash = "sha256:912c6afaa106e2f74ba22b30416b77ef7eb94e3bdc5a4df51ab147845dba9b6d", size = 371982, upload-time = "2026-09-11T19:04:06.233Z" },+ { url = "https://files.pythonhosted.org/packages/e6/ac/b3e5324138c3e3741f526663f4f265f4f69dfdf26415a39428940864a5f6/contourpy-1.4.0-cp314-cp314t-win_amd64.whl", hash = "sha256:ef9440f6f8506246269a82734f5ff9e2e4c5e775b3996fc883cc491c5257eca6", size = 262907, upload-time = "2026-09-11T19:04:07.882Z" },+ { url = "https://files.pythonhosted.org/packages/19/37/c9aa45e47819dc15a38fc5c81a2fb987fde55e9d3b991fbde514e3b6b5f5/contourpy-1.4.0-cp314-cp314t-win_arm64.whl", hash = "sha256:fc9feef8f1f001c5b87decadc67c4a5d1eebb62ca39c4763d1237ff62cf2b707", size = 587071, upload-time = "2026-09-11T19:04:09.898Z" },+ { url = "https://files.pythonhosted.org/packages/cc/74/66d4e6fbea3bcb3fd4e5ae21c039ba31b8fc408b35884b4bc09b88016dce/contourpy-1.4.0-cp315-cp315-macosx_10_15_x86_64.whl", hash = "sha256:79b06c60d5e569ce12c5da8f0c51217cdc484386e2349fa717c30fafb56d2871", size = 297358, upload-time = "2026-09-11T19:04:16.718Z" },+ { url = "https://files.pythonhosted.org/packages/2e/8d/8f7f25e71d73f15d7859943189900d2d348e740388c9ef52a0180d284762/contourpy-1.4.0-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:6f963ea9f0d68d2b6a02d861e3c0aae09ae25ba21f243fcf281e9fed468b078d", size = 283732, upload-time = "2026-09-11T19:04:18.087Z" },+ { url = "https://files.pythonhosted.org/packages/f0/90/957549e3b03c407c670e3e191db63f4aef60dab6605bc967af3a806b543e/contourpy-1.4.0-cp315-cp315-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:5545ff38229c15d11d822fc6f7415b932da9f4975f53e305b7b96ebfb01f889c", size = 357820, upload-time = "2026-09-11T19:04:20.077Z" },+ { url = "https://files.pythonhosted.org/packages/56/4c/fa8de87d907b41b05d03f4945a51675cd67319650d01b4c927d209ffa6ee/contourpy-1.4.0-cp315-cp315-manylinux_2_26_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:630d32f06cedf37b7f1dd2b6a12e4492826bd477a4c9c7b2e2fee6ce3a2cea76", size = 407804, upload-time = "2026-09-11T19:04:21.781Z" },+ { url = "https://files.pythonhosted.org/packages/04/e7/96bd4f4a4ae285727befbdb4b332d53a2654cc5da4585d2525b47a063e1f/contourpy-1.4.0-cp315-cp315-manylinux_2_26_s390x.manylinux_2_28_s390x.whl", hash = "sha256:be85d160e7c795113c2a93254dde2fc7e86b375322570eee78b420969426973c", size = 408559, upload-time = "2026-09-11T19:04:23.432Z" },+ { url = "https://files.pythonhosted.org/packages/ae/94/39660e8dc309f96bf7971eb4ec5659f272f84e42b34c9990a96ecce8442c/contourpy-1.4.0-cp315-cp315-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:018227e134b73090b06f911e773a526c77c9af426be29065500ce096a5accd4c", size = 384861, upload-time = "2026-09-11T19:04:25.198Z" },+ { url = "https://files.pythonhosted.org/packages/ab/7b/411dccbf73d5d19da49bf7735786b3baf4ddb1456412d48ae4d4ab1fc761/contourpy-1.4.0-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:4bffcb2e8cc5c0e837631acab59dd04265fdac376550e7c3e310523877c68cb7", size = 1357612, upload-time = "2026-09-11T19:04:27.614Z" },+ { url = "https://files.pythonhosted.org/packages/a0/39/bf2442130e7d5aae75a4de4504f0c8aca3ef3da3feac3940ee27ca985d83/contourpy-1.4.0-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:cc87f2ffa84a49a77d76cb792f28a48ff3b05a222aa0b2bddbd839ba78e1d5ca", size = 1427345, upload-time = "2026-09-11T19:04:29.646Z" },+ { url = "https://files.pythonhosted.org/packages/96/60/e5d9196dd83ccd7dd103762982b10ef19a4f72e8ef67ae7157699b9be0bb/contourpy-1.4.0-cp315-cp315-pyemscripten_2026_5_wasm32.whl", hash = "sha256:c8be3392b84cf43373a488874dc1ebf46f60784a70977f92586e18019d71c7ed", size = 118157, upload-time = "2026-09-11T19:04:31.091Z" },+ { url = "https://files.pythonhosted.org/packages/1a/b2/ae3d90f08ba2ed82189d93b55ffbd41e559760e89af4f9ef54d51869f41d/contourpy-1.4.0-cp315-cp315-win32.whl", hash = "sha256:618137ec5778fb76d494c9ec854b104a377fddba0d128bef7136cce2c3bf0df8", size = 356982, upload-time = "2026-09-11T19:04:52.913Z" },+ { url = "https://files.pythonhosted.org/packages/02/a0/36648fff407dcf8b8482985d33367ffc0fe90be72383869312cd0bd00a1b/contourpy-1.4.0-cp315-cp315-win_amd64.whl", hash = "sha256:ea09dc704029930cbd097f75cb0cc1db9852adbcf1a151fac7e9559f7bcbfd19", size = 240101, upload-time = "2026-09-11T19:04:54.587Z" },+ { url = "https://files.pythonhosted.org/packages/07/09/49e987a96706b8f877596cee00d558d7880793a833addc6b33f80805e5dc/contourpy-1.4.0-cp315-cp315-win_arm64.whl", hash = "sha256:a5e2bb871b90cd7a52bdee63bf80ef7acb46398d27efc66d7679240016efc5aa", size = 576375, upload-time = "2026-09-11T19:04:56.515Z" },+ { url = "https://files.pythonhosted.org/packages/e3/18/820ba24a070fe2a834af73e52245c501960746f5c1777ebc64ec0c0dec12/contourpy-1.4.0-cp315-cp315t-macosx_10_15_x86_64.whl", hash = "sha256:432e89f835cf01f8d2123a130a3126b17ee6e0348e4d62c0973872b30aa873bf", size = 313543, upload-time = "2026-09-11T19:04:32.582Z" },+ { url = "https://files.pythonhosted.org/packages/d3/4c/f61a63d8107e0c1c3fa47d30ce45abad90b2ad48a1a9a4510332db7e0176/contourpy-1.4.0-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:3e0a2392533e5e2abdf277c951047516acc8d2f3c42b2dd9dc34c907c9ebabf2", size = 302702, upload-time = "2026-09-11T19:04:34.257Z" },+ { url = "https://files.pythonhosted.org/packages/9d/93/5af95cb5113ecc6e780ca0c6c79756a2cea8833f971bbae112dd4ad73ded/contourpy-1.4.0-cp315-cp315t-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:758e7496cec3195fc28a28945eab3ceef348c47fb95c7afc2eca2f3901209c8c", size = 354370, upload-time = "2026-09-11T19:04:36.158Z" },+ { url = "https://files.pythonhosted.org/packages/47/75/5a9942446647202beb7b4d150891bfcb78fb112c73862484bbe4cc031092/contourpy-1.4.0-cp315-cp315t-manylinux_2_26_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:bee6ff96653e0807cd0f8eaef00174a031e3a2effa5c20f49a5a8d574b05af23", size = 402340, upload-time = "2026-09-11T19:04:37.914Z" },+ { url = "https://files.pythonhosted.org/packages/c3/4f/bfdb0c67775a584f957211936661289789c4d0ec3e988bca2c8c02f8090e/contourpy-1.4.0-cp315-cp315t-manylinux_2_26_s390x.manylinux_2_28_s390x.whl", hash = "sha256:a58b5f130afec61a093d743cdda435cc4047748b6791627e34a68f41ec3a9b07", size = 410721, upload-time = "2026-09-11T19:04:39.925Z" },+ { url = "https://files.pythonhosted.org/packages/65/d3/dddf13d6bb26e145c99debd1f2695018b5f3e24452dd9bfc9904c9d2ec89/contourpy-1.4.0-cp315-cp315t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:b9dc493e7924e5aa32d89d0b8e50986280f3d4b284968a792787bd7bcffd3cad", size = 382604, upload-time = "2026-09-11T19:04:41.793Z" },+ { url = "https://files.pythonhosted.org/packages/37/b4/89f0a5f6c6ccd322eae2704c7e933c82a4e594a61773933b4b0a18646866/contourpy-1.4.0-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:c927ec747633e68c9920bcaad48b0bcefe648812b822f18c34e2d0e2270a3d2a", size = 1354996, upload-time = "2026-09-11T19:04:43.856Z" },+ { url = "https://files.pythonhosted.org/packages/5d/29/fc91cc1ac6f3b591a269f4357b656d6ed0c39eb17c148f41f6da2f9729b9/contourpy-1.4.0-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:80c7fc8e7ac217777ce7ba2db3cf8478652b5a4b335283111012ff9eaac9d842", size = 1425030, upload-time = "2026-09-11T19:04:45.981Z" },+ { url = "https://files.pythonhosted.org/packages/d8/b8/bb129f524210c5d3eb8616876e02af280fba8b5554e0ac1afad80b51e06b/contourpy-1.4.0-cp315-cp315t-win32.whl", hash = "sha256:90feb8da006803a95ba573fddc9536357d0c3faddc3a4c9e22816ca49af52878", size = 371854, upload-time = "2026-09-11T19:04:48.106Z" },+ { url = "https://files.pythonhosted.org/packages/d8/b1/bc774d9d200cfc4f073bba78b1bb1cb3b55bf1c8c345eae41fc2db510459/contourpy-1.4.0-cp315-cp315t-win_amd64.whl", hash = "sha256:de503609fdb71f597634ca64fb4bd2f13d27c97f140e912b1e8ed93544840df0", size = 262450, upload-time = "2026-09-11T19:04:49.502Z" },+ { url = "https://files.pythonhosted.org/packages/54/bf/eb4ff492e1c3d027617b5a20e4e6d63a035b41b8cf77a95950159556a3a5/contourpy-1.4.0-cp315-cp315t-win_arm64.whl", hash = "sha256:78ed5c5f962b3e156109f0531b174a65ba80d13cc681a70227b12524c162e184", size = 587064, upload-time = "2026-09-11T19:04:51.148Z" },+]+[[package]]name = "coverage"version = "7.14.3"@@ -838,6 +941,15 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/57/30/4a22984d4f1bdfb8c054f07a92bc176b97a3134cc1d6c4b3bffb1f3688b4/cryptography-50.0.0-cp39-abi3-win_amd64.whl", hash = "sha256:d24fead1d4d076e1bfb006dcec392074a3cd8d7b4fc8a595aa64073b2b7a96ba", size = 3874135, upload-time = "2026-07-31T14:24:50.085Z" },]+[[package]]+name = "cycler"+version = "0.12.1"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/a9/95/a3dbbb5028f35eafb79008e7522a75244477d2838f38cbb722248dabc2a8/cycler-0.12.1.tar.gz", hash = "sha256:88bb128f02ba341da8ef447245a9e138fae777f6a23943da4540077d3601eb1c", size = 7615, upload-time = "2023-10-07T05:32:18.335Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/e7/05/c19819d5e3d95294a6f5947fb9b9629efb316b96de511b418c53d245aae6/cycler-0.12.1-py3-none-any.whl", hash = "sha256:85cef7cff222d8644161529808465972e51340599459b8ac3ccbac5a854e0d30", size = 8321, upload-time = "2023-10-07T05:32:16.783Z" },+]+[[package]]name = "cyclopts"version = "4.20.0"@@ -866,6 +978,134 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/54/df/9e79bf1fb2f660507dbd00d24730d107595a2f599f2524a96344149c95f1/datasketch-2.0.0-py3-none-any.whl", hash = "sha256:aea5ffafcce776e03d085740e78b874e778d779b07ee11ca636ca51b3fef09ed", size = 107247, upload-time = "2026-07-05T06:36:29.222Z" },]+[[package]]+name = "daytona"+version = "0.231.1"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "aiofiles" },+ { name = "aiohttp" },+ { name = "daytona-analytics-api-client" },+ { name = "daytona-analytics-api-client-async" },+ { name = "daytona-api-client" },+ { name = "daytona-api-client-async" },+ { name = "daytona-toolbox-api-client" },+ { name = "daytona-toolbox-api-client-async" },+ { name = "deprecated" },+ { name = "httpx" },+ { name = "httpx-ws" },+ { name = "obstore" },+ { name = "opentelemetry-api" },+ { name = "opentelemetry-exporter-otlp-proto-http" },+ { name = "opentelemetry-instrumentation-aiohttp-client" },+ { name = "opentelemetry-sdk" },+ { name = "pydantic" },+ { name = "python-dotenv" },+ { name = "python-multipart" },+ { name = "python-socketio", extra = ["asyncio-client", "client"] },+ { name = "toml" },+ { name = "typing-extensions" },+ { name = "urllib3" },+ { name = "wsproto" },+]+sdist = { url = "https://files.pythonhosted.org/packages/42/e4/39cb676c3bf24c6b5d00bf16eb3295d62bd9686c9c48fd6d5b38ee6a53ea/daytona-0.231.1.tar.gz", hash = "sha256:eb1ad6236f942d487319c77b137c6739d9a438b04adcb41b8dfeec1b309aac52", size = 208490, upload-time = "2026-11-09T15:45:28.135Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/0d/eb/ddb04f68b6463cbff435e6a09d8fb68ea5f077832c75317cfcbac3896c3f/daytona-0.231.1-py3-none-any.whl", hash = "sha256:14504119e464b92c113c5112138c517cc752c7d570ebf0cf25c16fbb73778adc", size = 246353, upload-time = "2026-11-09T15:45:29.834Z" },+]++[[package]]+name = "daytona-analytics-api-client"+version = "0.231.1"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "pydantic" },+ { name = "python-dateutil" },+ { name = "typing-extensions" },+ { name = "urllib3" },+]+sdist = { url = "https://files.pythonhosted.org/packages/89/ca/ff49c537a0dbad4b7094335f11c9a89c6d3c72e9554cb27e4f37c8a28e91/daytona_analytics_api_client-0.231.1.tar.gz", hash = "sha256:824cf70d4dd2516e9bfc9757dc140f3865f06b313e9833358971e26804f34ddf", size = 30169, upload-time = "2026-11-09T15:44:22.379Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/64/94/ae2ec6681e3a4fdea854aa334c5e04a408996f5581743d651619ac6bd785/daytona_analytics_api_client-0.231.1-py3-none-any.whl", hash = "sha256:394370c88ca9a9318e2f084f2be3698003498b926debe09706dbf9e9fa17e25b", size = 45072, upload-time = "2026-11-09T15:44:23.817Z" },+]++[[package]]+name = "daytona-analytics-api-client-async"+version = "0.231.1"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "aiohttp" },+ { name = "aiohttp-retry" },+ { name = "pydantic" },+ { name = "python-dateutil" },+ { name = "typing-extensions" },+]+sdist = { url = "https://files.pythonhosted.org/packages/32/88/0b01d6b89e28362df2a6a1ae01c681746a2e4309ddad35286b763171237d/daytona_analytics_api_client_async-0.231.1.tar.gz", hash = "sha256:768cdeed6e7dcecfb92c6d1e4cb88e0a685e582dcce4a7e48cc8c5c50ccb411d", size = 30241, upload-time = "2026-11-09T15:44:26.968Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/86/15/524d0013bdd9496d2dc6c7c34147e95e5274010ef13d3609afc448ffc825/daytona_analytics_api_client_async-0.231.1-py3-none-any.whl", hash = "sha256:f651edf03f358fae45503b1eb62a80cd293a74ddb836122d9802aa8695307bbb", size = 45337, upload-time = "2026-11-09T15:44:27.802Z" },+]++[[package]]+name = "daytona-api-client"+version = "0.231.1"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "pydantic" },+ { name = "python-dateutil" },+ { name = "typing-extensions" },+ { name = "urllib3" },+]+sdist = { url = "https://files.pythonhosted.org/packages/02/07/4fa7a8aa720393352bf996433d09cedb8e6a86ad8148450d7af59cf4260f/daytona_api_client-0.231.1.tar.gz", hash = "sha256:78dff592f891be08c3ee045a1a64c0d076eeff05f2afa5e3545525394380fa0b", size = 136018, upload-time = "2026-11-09T15:44:21.477Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/0d/ba/81491ee2891a757e98904ae345d0530a2cc98d35f95b5621860cbcb3a6f4/daytona_api_client-0.231.1-py3-none-any.whl", hash = "sha256:872f20d98c6186e2e1affbe18ff24e964aba4282cfbc1ef5d5e79930a5fae963", size = 349577, upload-time = "2026-11-09T15:44:22.518Z" },+]++[[package]]+name = "daytona-api-client-async"+version = "0.231.1"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "aiohttp" },+ { name = "aiohttp-retry" },+ { name = "pydantic" },+ { name = "python-dateutil" },+ { name = "typing-extensions" },+]+sdist = { url = "https://files.pythonhosted.org/packages/4e/3a/0f99c9141f6d7999ccd3068eea20de4a43e0b9f03b2a283a83457ba651f2/daytona_api_client_async-0.231.1.tar.gz", hash = "sha256:9d33c97ac9821c10e3687c5efa48b1662da4ac87bbbb986dc86f696c8a471cc7", size = 136383, upload-time = "2026-11-09T15:44:25.731Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/cc/ba/2f01b69aa8544bf2247e5abff11444d3632c8fc50f695dca2e1daa9d9315/daytona_api_client_async-0.231.1-py3-none-any.whl", hash = "sha256:fde86d8fa01f101dbb8de840624233ab43d22ea15230aed68f891c7dd5d8bde9", size = 352351, upload-time = "2026-11-09T15:44:27.302Z" },+]++[[package]]+name = "daytona-toolbox-api-client"+version = "0.231.1"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "pydantic" },+ { name = "python-dateutil" },+ { name = "typing-extensions" },+ { name = "urllib3" },+]+sdist = { url = "https://files.pythonhosted.org/packages/f0/f1/da88c26d43dcce193c22a96e4cf04a96d14acdc86ac72e9168345c45dbc9/daytona_toolbox_api_client-0.231.1.tar.gz", hash = "sha256:9465dc273f164d74b804af8e67222fc5f5a483d21edfc7fe6962dd61cf742eb3", size = 90482, upload-time = "2026-11-09T15:44:21.457Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/a3/dc/2d5d807bb38292e791da3f816aa70c63270ae2fd941596718cb9ccdefffe/daytona_toolbox_api_client-0.231.1-py3-none-any.whl", hash = "sha256:ae95b0e0613044d1bed91b2c08619ae577effd055b1a52349629c54ebc8fef63", size = 263382, upload-time = "2026-11-09T15:44:23.222Z" },+]++[[package]]+name = "daytona-toolbox-api-client-async"+version = "0.231.1"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "aiohttp" },+ { name = "aiohttp-retry" },+ { name = "pydantic" },+ { name = "python-dateutil" },+ { name = "typing-extensions" },+]+sdist = { url = "https://files.pythonhosted.org/packages/44/d8/fab0b941ad8e83aa54b9313d4c345795859114fb35b2d7d20a2bcdf7cd80/daytona_toolbox_api_client_async-0.231.1.tar.gz", hash = "sha256:a4c7ed12bb216e931011b3215db5760c243a36a27ad14c5603352a6019da968a", size = 84188, upload-time = "2026-11-09T15:44:26.367Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/cb/40/25a8d69bf0d0224d21a69ceb45a745da67dfbecad85ce966086331e2a523/daytona_toolbox_api_client_async-0.231.1-py3-none-any.whl", hash = "sha256:e854ba948741845a7fe9f66ef4ddecff28ae763acb8c8a2e3dd185e8098c1032", size = 261956, upload-time = "2026-11-09T15:44:28.557Z" },+]+[[package]]name = "defusedxml"version = "0.7.1"@@ -875,6 +1115,18 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/07/6c/aa3f2f849e01cb6a001cd8554a88d4c77c5c1a31c95bdf1cf9301e6d9ef4/defusedxml-0.7.1-py2.py3-none-any.whl", hash = "sha256:a352e7e428770286cc899e2542b6cdaedb2b4953ff269a210103ec58f6198a61", size = 25604, upload-time = "2021-03-08T10:59:24.45Z" },]+[[package]]+name = "deprecated"+version = "1.3.1"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "wrapt" },+]+sdist = { url = "https://files.pythonhosted.org/packages/49/85/12f0a49a7c4ffb70572b6c2ef13c90c88fd190debda93b23f026b25f9634/deprecated-1.3.1.tar.gz", hash = "sha256:b1b50e0ff0c1fddaa5708a2c6b0a6588bb09b892825ab2b214ac9ea9d92a5223", size = 2932523, upload-time = "2025-10-30T08:19:02.757Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/84/d0/205d54408c08b13550c733c4b85429e7ead111c7f0014309637425520a9a/deprecated-1.3.1-py2.py3-none-any.whl", hash = "sha256:597bfef186b6f60181535a29fbe44865ce137a5079f295b479886c82729d5f3f", size = 11298, upload-time = "2025-10-30T08:19:00.758Z" },+]+[[package]]name = "detect-agent"version = "0.3.0"@@ -1209,6 +1461,60 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/18/79/1b8fa1bb3568781e84c9200f951c735f3f157429f44be0495da55894d620/filetype-1.2.0-py2.py3-none-any.whl", hash = "sha256:7ce71b6880181241cf7ac8697a2f1eb6a8bd9b429f7ad6d27b8db9ba5f1c2d25", size = 19970, upload-time = "2022-11-02T17:34:01.425Z" },]+[[package]]+name = "fonttools"+version = "4.68.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/0c/b5/672312ae80ce8b8eb9779c56052a24c8f36652aa7293a1a420553bcf03e5/fonttools-4.68.0.tar.gz", hash = "sha256:73294e233070f71e2b3653b6bd8564af676d57f26d075761fb06d1ab2e4a7a5d", size = 3848583, upload-time = "2026-10-27T16:30:26.451Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/05/ae/e2d75b7f582c1cc018ab94b8bbfbad7ab501b340debfa256f48125cae3eb/fonttools-4.68.0-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:f15de48b82a816c72f358e772792801bd3788a156caa76e1806cb0aa8148cd61", size = 3141370, upload-time = "2026-10-27T16:28:41.721Z" },+ { url = "https://files.pythonhosted.org/packages/fe/80/73d5297441b42d42b64d91cd4fffdff1541fac6171b0aca0a167c26d1c33/fonttools-4.68.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:86d319a1feedfc75c8ff582d947b21fa1854e2829cb8cf9428784d750a05f1d9", size = 2633412, upload-time = "2026-10-27T16:28:43.612Z" },+ { url = "https://files.pythonhosted.org/packages/36/29/16501aa69a586b8e8f810d7be19584aa026a0bca46c598ac516cfdd2a31a/fonttools-4.68.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:04a4868dcfcc23f00bb033147d5afc1a118a992842644c3eb9da55467ab4fd74", size = 5435968, upload-time = "2026-10-27T16:28:45.651Z" },+ { url = "https://files.pythonhosted.org/packages/79/c6/4b44abbffa01f85d6d0f0b9325a712019b4e2e6208f999ac6846d8da1346/fonttools-4.68.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:08851f7d2b983412f490b73a7c56f17cbda1d4d85d2ad3f857564bf15b5d9475", size = 5418193, upload-time = "2026-10-27T16:28:49.238Z" },+ { url = "https://files.pythonhosted.org/packages/98/0d/15cffdf13e156bb75ee421eee319fa8c5fb91a48a9a3e84685bf786df5be/fonttools-4.68.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:b6f7c5fabf5b1d9ca79f204664f2c3e2f8218e50aebc43e85e02df0b2d9cc313", size = 5378957, upload-time = "2026-10-27T16:28:51.889Z" },+ { url = "https://files.pythonhosted.org/packages/9f/18/174052f12611c1088b61eeaa4019a8f1aedbcb1e985c33ef8fbe0c1ba674/fonttools-4.68.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:e3ecdb0b248cd0bf43100a8b3cb40f7b45d52ea4be8616edea5dea8fefe90229", size = 5536796, upload-time = "2026-10-27T16:28:54.445Z" },+ { url = "https://files.pythonhosted.org/packages/35/d6/892213f45f63565f3f7eca3bce484a6f52ab7f7eda61851f93b1be829d5e/fonttools-4.68.0-cp313-cp313-win32.whl", hash = "sha256:4da99b83ae17f531838bc750abf56164ff37e1543e8e9b2b5403548f50497ce0", size = 2479972, upload-time = "2026-10-27T16:28:56.749Z" },+ { url = "https://files.pythonhosted.org/packages/61/2b/6c6f578176edeec83c5e02b7e745c1c8029f8cec4e32b4898d2c573bb881/fonttools-4.68.0-cp313-cp313-win_amd64.whl", hash = "sha256:6ed796b220654b4d37ad20af73419ec7969b669dd678cab88afb602c5683a331", size = 2531658, upload-time = "2026-10-27T16:28:59.013Z" },+ { url = "https://files.pythonhosted.org/packages/3c/b9/7cc71534bc954346451003bf5c9c117af835aea681a13a2847222ccf19b2/fonttools-4.68.0-cp313-cp313-win_arm64.whl", hash = "sha256:cd4b0d00523cae1e5e1eaed1d2b85ef342cec000f58d0738e12b064d72a7bbc2", size = 2499695, upload-time = "2026-10-27T16:29:01.511Z" },+ { url = "https://files.pythonhosted.org/packages/1a/70/ee6655887166a111d0c4d7ca61f03c90b141cdc6f70c85138fd0b8bfa2e3/fonttools-4.68.0-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:b2ee7b9c1a5e1d637073c39b0978956febad7e862a1269719f527934c65535a4", size = 3145377, upload-time = "2026-10-27T16:29:03.757Z" },+ { url = "https://files.pythonhosted.org/packages/d6/37/66e7ab417660cb2c65889eb5ad8d80cc5a7cb2c09dd1becdbe6d56bac4fe/fonttools-4.68.0-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:9d80813ae74b969ef2166a3040b591826e80ecd879bdeab7f13f4e8eaf08b345", size = 2634889, upload-time = "2026-10-27T16:29:05.651Z" },+ { url = "https://files.pythonhosted.org/packages/0c/ad/da985167af1988b82112cf133e826cf075cecb28d120778589265cb3125d/fonttools-4.68.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:a6837def5de49772b82683dadd836df214def04b307cb98d0e7723d49e7e15bb", size = 5420416, upload-time = "2026-10-27T16:29:07.502Z" },+ { url = "https://files.pythonhosted.org/packages/b7/67/e9f2eb2aed41d4ed251a3c6f66e104685f0a03d8ded7ed87f1f0fc63898c/fonttools-4.68.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:cbb63b26d33acc3eb61f544c22a0cadbe01682fc064b266bb0e33fa66cea853f", size = 5363969, upload-time = "2026-10-27T16:29:10.172Z" },+ { url = "https://files.pythonhosted.org/packages/e6/06/c4510ac6b43b374b1b707b99fdd0ba1d4059d2fb516584a412c0396fedef/fonttools-4.68.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:81ea963d4390bb9e79f91a905310d91ac7ff7675d8e1c0cfc0f1712521c41a43", size = 5362373, upload-time = "2026-10-27T16:29:12.298Z" },+ { url = "https://files.pythonhosted.org/packages/e0/ef/ea0bf283a30a88a84a47078ff39f7bdefa0346a8bd7737439fd33084031f/fonttools-4.68.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:3b9b87645bcdbfc3f30240e2758a37bbef4fdd0f708683b2bfceb60975d63e59", size = 5495553, upload-time = "2026-10-27T16:29:14.614Z" },+ { url = "https://files.pythonhosted.org/packages/95/c0/d493f8c8974859e57920ce193ffbe277423da7eebccbb9241bc31e1b5f1d/fonttools-4.68.0-cp314-cp314-win32.whl", hash = "sha256:39913c1f576af86c69519dc351302332561ee62b39fed04dcfa8019d9c2d129f", size = 2484057, upload-time = "2026-10-27T16:29:16.45Z" },+ { url = "https://files.pythonhosted.org/packages/96/41/c9ca629ffe1b883c1422540a8a11a4ea09616366ab585ab4ee9833f2cd75/fonttools-4.68.0-cp314-cp314-win_amd64.whl", hash = "sha256:1782f2cf952eb262c4126b1f57b5f0e027e71bf2b632350a033dec526f448428", size = 2536130, upload-time = "2026-10-27T16:29:18.399Z" },+ { url = "https://files.pythonhosted.org/packages/17/40/f6264c988076393db3e0b00d6d0ea2a53ce40d445e8a196be241d16d362c/fonttools-4.68.0-cp314-cp314-win_arm64.whl", hash = "sha256:f0b39924698a85bee107184a3c2ee9ae27248144977160534f7d558831db50cf", size = 2508386, upload-time = "2026-10-27T16:29:20.318Z" },+ { url = "https://files.pythonhosted.org/packages/c5/d8/a4d710362f3f23aecc16015eeed1d602187189af7f63a63546233ad2fa73/fonttools-4.68.0-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:956230858b7a7bb9f5e0971ae07dc64b6155307304acd8c62aedca30e6aae874", size = 3219047, upload-time = "2026-10-27T16:29:22.337Z" },+ { url = "https://files.pythonhosted.org/packages/4d/4d/0d516a1d3d34e84c56237ba1d8dfed8575c350b0e8d39aa30b518d089daf/fonttools-4.68.0-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:b637d82a488116da2869afbddccfd93ca14e3c47b404c8ec5a9bad9d4381b08c", size = 2668060, upload-time = "2026-10-27T16:29:24.536Z" },+ { url = "https://files.pythonhosted.org/packages/4d/40/56893c685cb1ee7d7ee30d0ac94adf92020787cf5a8e15c2e4e6944f0bec/fonttools-4.68.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:419bf78474adaa6fb320a06822f4f941b19345d598a9de379d6e2f0e4d819df6", size = 5593080, upload-time = "2026-10-27T16:29:26.51Z" },+ { url = "https://files.pythonhosted.org/packages/41/b6/bc0bbad6f1aef22519c4e731c6dc8655e92c6f7204277ec36502ea7e76cd/fonttools-4.68.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:fe80d05dd85e6ac58d0cd4fa10ddb96252a6f1046ee0fd00cd1d48f0c25921ac", size = 5399669, upload-time = "2026-10-27T16:29:28.969Z" },+ { url = "https://files.pythonhosted.org/packages/c1/b4/4404a91dc699dd430732d366996cef6d8c8f61c758b5e544a76903db580a/fonttools-4.68.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:cea1969b9bfe230cb3fd66f1c66da5a63a9a917d9cd25a0839524d3d1a88b40e", size = 5460446, upload-time = "2026-10-27T16:29:31.15Z" },+ { url = "https://files.pythonhosted.org/packages/56/09/66876a0d1a01f7c16eb9f7c8ebcf064ebbd6b249f837691cb5a35780316a/fonttools-4.68.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:fde43b9785c7f105aa563b6b5481edabea4ab6be7d9ef14ff4d76225950923e8", size = 5495792, upload-time = "2026-10-27T16:29:33.455Z" },+ { url = "https://files.pythonhosted.org/packages/15/7d/1d702dc628e6f5b0d63be906025afc5e5b487cee48128943bb0a71d2bcb3/fonttools-4.68.0-cp314-cp314t-win32.whl", hash = "sha256:a325e6d7f96f20b3004658c5ed17ccfce5b66277b43ccd883035c61be6945275", size = 2517805, upload-time = "2026-10-27T16:29:36.929Z" },+ { url = "https://files.pythonhosted.org/packages/f3/42/8fa0741e08ae16be66a0d2e6d67f918fa0f2961bad70ccef84f9af0767cc/fonttools-4.68.0-cp314-cp314t-win_amd64.whl", hash = "sha256:e80ac66627a01698675ce6e98d90ea9817d1e06644129ec8b0093f66ff1cbeac", size = 2567666, upload-time = "2026-10-27T16:29:40.081Z" },+ { url = "https://files.pythonhosted.org/packages/13/2f/b73cf496570e8d2c66a6099f825505283ef8e944bd588e0b63036d6b2412/fonttools-4.68.0-cp314-cp314t-win_arm64.whl", hash = "sha256:83bd3d558c15f4e1d87b8f3fcfb337c2bce63c7e5c05212abc8fdcf15e216c54", size = 2532338, upload-time = "2026-10-27T16:29:42.073Z" },+ { url = "https://files.pythonhosted.org/packages/24/af/dda3fbb1da1d3cf5bf8cd6a924ab799fd2a483382df7de6f9770b543ef4f/fonttools-4.68.0-cp315-cp315-macosx_10_15_universal2.whl", hash = "sha256:ab6505dfbe3199453d8542b25f55c1ea3260d38029d9db58c0c7304d438abdc0", size = 3139761, upload-time = "2026-10-27T16:29:44.288Z" },+ { url = "https://files.pythonhosted.org/packages/4f/47/4294eececd4e7c38bcb98c78be96003b4bbfc459c30adec13104b83112c1/fonttools-4.68.0-cp315-cp315-macosx_10_15_x86_64.whl", hash = "sha256:03c9ef1272e464747f67c623f76449b888da6d5de7fb46275bb36488b9ceedba", size = 2633458, upload-time = "2026-10-27T16:29:46.202Z" },+ { url = "https://files.pythonhosted.org/packages/df/3d/3ee0940101d12a68cfd5e3d91380933878d99bd082eb9df348eb768b0375/fonttools-4.68.0-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:5083a456d68d2995ab78600ccb18ec08c42f9bc14f0ef80c12e2e5b11cc371ce", size = 5417615, upload-time = "2026-10-27T16:29:48.404Z" },+ { url = "https://files.pythonhosted.org/packages/a1/ff/a97925464230d9c39c94e4cd7c5690db950373b34317e7f0ffe7b64b8d49/fonttools-4.68.0-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:b65c2f3c4449383429507a7e1b372bd759f60a2df8ddc8d6c1cf9010585576b1", size = 5380964, upload-time = "2026-10-27T16:29:50.809Z" },+ { url = "https://files.pythonhosted.org/packages/ee/51/f467501a75bb383f1acbcc7a7d8ce196c02bea770e2bdc62d269c18a31a1/fonttools-4.68.0-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:039142b75a068c93f8596ef68787f82c74940b9153d24c224ab31e750eb083a2", size = 5357813, upload-time = "2026-10-27T16:29:52.892Z" },+ { url = "https://files.pythonhosted.org/packages/ba/1b/ebb9c32a19a89e8c5cfc63833d7edb70019d3184281452cbc1a24cadce57/fonttools-4.68.0-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:1dde2f0ec3fd0fb43cf818593b38a8202eb7f3b59cae86289a8b19fbf6f6313b", size = 5505577, upload-time = "2026-10-27T16:29:54.95Z" },+ { url = "https://files.pythonhosted.org/packages/18/c3/080bf6342ed37c4304cf222cf80afd2a145cd8f37a758d812cda81ba3e12/fonttools-4.68.0-cp315-cp315-win32.whl", hash = "sha256:4bc352572abc800177fba513995c01b1cfbe8c810ac2506cbf29f0795ae061c5", size = 2482863, upload-time = "2026-10-27T16:29:57.029Z" },+ { url = "https://files.pythonhosted.org/packages/f2/b7/8ce34a43072ac7b1a937c5a0ee8e024db5d774bdf07708bb7593f3e5540d/fonttools-4.68.0-cp315-cp315-win_amd64.whl", hash = "sha256:9b6e4ae9763c67df2b0f4c4f1a0b18e47ee6572eb602b82e798acc88b64a6137", size = 2535110, upload-time = "2026-10-27T16:29:58.999Z" },+ { url = "https://files.pythonhosted.org/packages/6d/35/d58d4ac6dd3de099c11c42486fc4a51b1ccb2c1c3259b19956e9244d5623/fonttools-4.68.0-cp315-cp315-win_arm64.whl", hash = "sha256:e00bfc6fc0158f156d34f923829e6f62ca00df2e0ea42ba3b0db4089b6d921c2", size = 2507240, upload-time = "2026-10-27T16:30:01.439Z" },+ { url = "https://files.pythonhosted.org/packages/29/16/034e1eee6264cd14ef4404f70c299a9b0570d83aca24a65ddf3a16ab3b42/fonttools-4.68.0-cp315-cp315t-macosx_10_15_universal2.whl", hash = "sha256:0841a4dac69efda309fca2ed0834186ee66d39787f1d26430ed7f779a699a096", size = 3210579, upload-time = "2026-10-27T16:30:03.601Z" },+ { url = "https://files.pythonhosted.org/packages/17/37/626504f427aa92d1d872336eab454ad71b6bc079063cc1f4af314995a48e/fonttools-4.68.0-cp315-cp315t-macosx_10_15_x86_64.whl", hash = "sha256:93afd51f30ae38f7d826f4632eb799a06bd94e1fb4bc59fdce6d291e93491027", size = 2664302, upload-time = "2026-10-27T16:30:05.639Z" },+ { url = "https://files.pythonhosted.org/packages/62/13/bc455cb7f8e467ed4ea1146c1ecad76d6c78102031d937cae71efc176c42/fonttools-4.68.0-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:82b8024fbdcddc399b1e21575b9b82f46b8391e711a44d6bd4a1616b0aca3681", size = 5570974, upload-time = "2026-10-27T16:30:07.457Z" },+ { url = "https://files.pythonhosted.org/packages/23/06/33ce5c7d3bb59dda92fbf669053d5fdaac2e0d566390fdf20746ee83f39f/fonttools-4.68.0-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:9fee5880486c3fd6f45f5a1679a9f4291ae74e503d725de7f1e30efa2d627440", size = 5392631, upload-time = "2026-10-27T16:30:09.587Z" },+ { url = "https://files.pythonhosted.org/packages/3c/c0/414f221a7da04ddb6d30a8171ecdba36e2ab4351c5c62ec319621ee76494/fonttools-4.68.0-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:4be32afa53ba3dea243b95b62e9b2e6ed6cf7096acd741d379c12f4113694ddc", size = 5438942, upload-time = "2026-10-27T16:30:11.966Z" },+ { url = "https://files.pythonhosted.org/packages/98/71/797da0cb0fdb3839b4aa65d30854b850832c74dc14ce0ba5bfe812c6a008/fonttools-4.68.0-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:6e73d4b1526343b45bbafa9badc0396a49d902f9a1774666ed4244f1df717629", size = 5485323, upload-time = "2026-10-27T16:30:15.074Z" },+ { url = "https://files.pythonhosted.org/packages/c1/47/a6989b4de0f427817f2e436f69664acc3aa9600d3df5f0eb3444cd073f14/fonttools-4.68.0-cp315-cp315t-win32.whl", hash = "sha256:573ccce8b5fd9b6952dcbc5d896255041ab330cc33520d13b1266fca859d8aba", size = 2514943, upload-time = "2026-10-27T16:30:17.326Z" },+ { url = "https://files.pythonhosted.org/packages/5e/38/7311ade45b67dc2c2a4f9d1af4c18285f92591235e8c6cab4f9cecd36516/fonttools-4.68.0-cp315-cp315t-win_amd64.whl", hash = "sha256:6aea5cdbc32f5fd202cf8dec053a784b08692f8b1992af80eba32bef82bf84c7", size = 2563334, upload-time = "2026-10-27T16:30:19.883Z" },+ { url = "https://files.pythonhosted.org/packages/8a/ee/fd08713d15bf0f6487a72e415e91ef4a6b52ca96fa8f879533107a41e18d/fonttools-4.68.0-cp315-cp315t-win_arm64.whl", hash = "sha256:b612613f0165f560571c4e372af0ebbb1c4b36067de409922dcea349beb8bb20", size = 2528487, upload-time = "2026-10-27T16:30:22.222Z" },+ { url = "https://files.pythonhosted.org/packages/35/74/4ea331ecc65ba05a58b1e4e8ccd604c8a15565f876dfbf93fc2a2ea2e22b/fonttools-4.68.0-py3-none-any.whl", hash = "sha256:d76f8fdcb6936f5e1045a0c9dd721a4bf11112e60d1e243bfa1d39f06a8b3104", size = 1248357, upload-time = "2026-10-27T16:30:24.389Z" },+]+[[package]]name = "frozenlist"version = "1.8.0"@@ -1508,6 +1814,21 @@ 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 = "httpx-ws"+version = "0.9.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "anyio" },+ { name = "httpcore" },+ { name = "httpx" },+ { name = "wsproto" },+]+sdist = { url = "https://files.pythonhosted.org/packages/cd/cd/ca91a07ae446451f7476bf3fcc909e98cb942ff032ebfda0e3fe449aca7b/httpx_ws-0.9.0.tar.gz", hash = "sha256:797373326f70eec1ae96f6e43ae9f12002fd7d73aee139a4985eaab964338a08", size = 107105, upload-time = "2026-03-28T14:11:10.781Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/98/f8/a6bc80313a9e93c888fa10534dfce2ad76ff86911b6f485777ce6de6a073/httpx_ws-0.9.0-py3-none-any.whl", hash = "sha256:71640d2fb1bf9a225775015b33cd755cfd4c5f7e21c885192fe3adc4c387b248", size = 15759, upload-time = "2026-03-28T14:11:11.887Z" },+]+[[package]]name = "httpx2"version = "2.12.0"@@ -1731,6 +2052,98 @@ 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 = "kiwisolver"+version = "1.5.1"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/ba/07/bd78e6a8fae171ea041ef5bba3ed21a003522fa088834b069b1909981f30/kiwisolver-1.5.1.tar.gz", hash = "sha256:f1303ef2eec81262a4b708c3e858afe58d7c75ad91c1c05266eda7673369859a", size = 104395, upload-time = "2026-08-28T10:28:27.153Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/08/c1/88018321d976f53c421e379c43bc6993e70ce0c8a3ec5edc4bfe102257f6/kiwisolver-1.5.1-cp313-cp313-ios_13_0_arm64_iphoneos.whl", hash = "sha256:b6ae6a0328f0bc035741820fdeecdcd67bf4694eee03972e843663107122f450", size = 62272, upload-time = "2026-08-28T10:25:51.02Z" },+ { url = "https://files.pythonhosted.org/packages/85/d2/712bc17ea4f1d216034928069d612defbc6c95a471c55a7203a39faecb1a/kiwisolver-1.5.1-cp313-cp313-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:886fc26012f0e8b5f69d1cfe6d711f6b11f194621539bf8e6bb1c25c5dc82724", size = 64481, upload-time = "2026-08-28T10:25:52.22Z" },+ { url = "https://files.pythonhosted.org/packages/1b/e6/6c5380d676f43b6d918033962ea5e72360ca69e5a404154bc496b598ffdb/kiwisolver-1.5.1-cp313-cp313-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:aefe930d113798330e9462f7874542977869c0613cba3262e2de3a8d5dee8f3a", size = 66260, upload-time = "2026-08-28T10:25:53.387Z" },+ { url = "https://files.pythonhosted.org/packages/92/6a/7087f5822cc8bb272679641404b1966a42504dac9ee74e2b33840475a0aa/kiwisolver-1.5.1-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:a5ca5aebae78a0bc13c1943af4af615d4966c5b650b05d5aa83b50e427196fee", size = 123876, upload-time = "2026-08-28T10:25:54.644Z" },+ { url = "https://files.pythonhosted.org/packages/5c/4b/9f385087ca09ee5ab9c09c6832561a7d2f7c78d3e5661d511e669f70e439/kiwisolver-1.5.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:1ed0f5e49d0ceff8b72190824d9e59c062fbbc02c231b853112c78474b3f5ec2", size = 66487, upload-time = "2026-08-28T10:25:55.899Z" },+ { url = "https://files.pythonhosted.org/packages/47/8b/40d33ffd2f378094ed462e9a9a0907e59d4de9845e65a59561272da350d4/kiwisolver-1.5.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:77a4c8187a5948d7f8795adb765a3c7b553d07d86d88e43038fc32fc1fb9a3f3", size = 64673, upload-time = "2026-08-28T10:25:57.048Z" },+ { url = "https://files.pythonhosted.org/packages/ab/43/86aacc027959108b4c66eeae8b73cedb057dfa6eb3a335d05ad65197081c/kiwisolver-1.5.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:74ad5c3dad54a4641b4c28cd15ded70899d04459c6c7aeacafea716be97cce6d", size = 1477992, upload-time = "2026-08-28T10:25:58.479Z" },+ { url = "https://files.pythonhosted.org/packages/ed/40/b1d0369048c79733a32c8abb0f2718532e6630641368e33a81384246e844/kiwisolver-1.5.1-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:21e46b23a2da695c364124817bc01d970effd5483147f8d66a6a7167e3f6b851", size = 1278821, upload-time = "2026-08-28T10:26:00.121Z" },+ { url = "https://files.pythonhosted.org/packages/61/a1/fa71c1792272ff9461432715ae60ffb7e11a4d7ac3bf68961b9cab6c60cf/kiwisolver-1.5.1-cp313-cp313-manylinux_2_24_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:75d9b1cf8258462dbdc1eeda718c96ea7f079324c09067f6daabfcf37712b7fe", size = 1296805, upload-time = "2026-08-28T10:26:01.868Z" },+ { url = "https://files.pythonhosted.org/packages/a3/49/3f0bd94af8e06ecc47eb834b195a06f05d48711ceb2352c56d6835160f0e/kiwisolver-1.5.1-cp313-cp313-manylinux_2_24_s390x.manylinux_2_28_s390x.whl", hash = "sha256:8fca690b00c4c48f6c2a547b0160ed511357093a4e4c9b47e0fadf3128066d89", size = 1346109, upload-time = "2026-08-28T10:26:03.59Z" },+ { url = "https://files.pythonhosted.org/packages/a4/44/3afe6ef9cf06d61220953a8963e94eca978491be1d9547cb01d82a1efa08/kiwisolver-1.5.1-cp313-cp313-manylinux_2_39_riscv64.whl", hash = "sha256:876bbfd276473d3daffe30e8c975df4ed9429967b41a6cb362dbb5155b6f13ad", size = 988252, upload-time = "2026-08-28T10:26:05.306Z" },+ { url = "https://files.pythonhosted.org/packages/e4/30/a12bd7a7285a211e1747c3eec77b8c614dbfcc1dad942f7611a1a6921ae5/kiwisolver-1.5.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:f942903fde7363d1d879057ec5de01310efda2597161784d752fa9953a01a71a", size = 2228846, upload-time = "2026-08-28T10:26:07.312Z" },+ { url = "https://files.pythonhosted.org/packages/a1/6b/233e2958abf0dab7b18d07e52f286e02e519d7651bfbbe97af9347564109/kiwisolver-1.5.1-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:c90d3022d8a94778939cda8638c6c8da8fa757b8958dad7ec868ce29c87681b8", size = 2325583, upload-time = "2026-08-28T10:26:09.093Z" },+ { url = "https://files.pythonhosted.org/packages/42/8e/7673060a27b01405b580058510adef34687069d229800239f5e44682d4d0/kiwisolver-1.5.1-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:8a34616dc2521cc8dc1d7d081734da63539f021ac0450ce950908340c6e7aa2f", size = 1978221, upload-time = "2026-08-28T10:26:11.127Z" },+ { url = "https://files.pythonhosted.org/packages/3f/7b/1b882fc1a8b4a0bb8084e7d1d85004116d08c92c0705d31f2928dec607f2/kiwisolver-1.5.1-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:8bf4df63592c2a66b4f8edc5df2544998c288aa02f96ce0acd880cd1de8c8127", size = 2491819, upload-time = "2026-08-28T10:26:13.348Z" },+ { url = "https://files.pythonhosted.org/packages/39/9c/426deb49e62c5f69464b64bbeca064d3b758a7506b8913d986ef34f4619c/kiwisolver-1.5.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:d09037ca068d784ebc4aec290ef952ca27ac15dd9c0b5801a88c6e1096b83e6b", size = 2295520, upload-time = "2026-08-28T10:26:15.042Z" },+ { url = "https://files.pythonhosted.org/packages/f5/22/deabbb3ad6d918d74b7831b2d8ae7151b09d21c87974e5ee8a456f58c94c/kiwisolver-1.5.1-cp313-cp313-win_amd64.whl", hash = "sha256:dc23390afe9f4ef9ac3bcc72a03a56eebbde03f4c571a32cb38f859cff9a6524", size = 70758, upload-time = "2026-08-28T10:26:16.504Z" },+ { url = "https://files.pythonhosted.org/packages/b9/71/02fa5c2fd92068bb8952847e70ee6c5cb280e7febe11653d17812acc53dd/kiwisolver-1.5.1-cp313-cp313-win_arm64.whl", hash = "sha256:186884a58486651e3c217b6acea0a53eaa9498fdd472057c46f2f0fb5c25aad5", size = 68329, upload-time = "2026-08-28T10:26:17.658Z" },+ { url = "https://files.pythonhosted.org/packages/dd/87/2d5dfad0daf17dcc18d98c48ed2332fc3f051cf599e60be6182a30dd4cf1/kiwisolver-1.5.1-cp314-cp314-ios_13_0_arm64_iphoneos.whl", hash = "sha256:0324cd2567259b7a095f6cf18a52b0ffc6f3de9e69528ff1bc0e7a37bd43ff1a", size = 62337, upload-time = "2026-08-28T10:26:18.778Z" },+ { url = "https://files.pythonhosted.org/packages/08/c8/83e1624f15d6262b470dbcc80b09979fd4d5b2ea3ddfc6b6e3327e235726/kiwisolver-1.5.1-cp314-cp314-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:74ea337e0ec3f6f342a36a4f1b5cd94dd9affddcd28ba9aae2905af932ee8c6b", size = 64513, upload-time = "2026-08-28T10:26:19.909Z" },+ { url = "https://files.pythonhosted.org/packages/c9/2d/827ec30eb07f528c08d8459ffb318ae91a56d793ee8acbea8b491f0ff906/kiwisolver-1.5.1-cp314-cp314-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:ee9df1f0d77b9c6e94f4ac0fec533fbddd5ea3a327807f18d7b069ae019ded80", size = 66287, upload-time = "2026-08-28T10:26:21.078Z" },+ { url = "https://files.pythonhosted.org/packages/53/11/5c43a562529dad8def4b81e5e1877c612a7e0298105a5939b3b409d2079c/kiwisolver-1.5.1-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:fc271a6f0a2126958f4090e5507b9da5848927dae331f8f763bd4aa642b3d2cd", size = 123940, upload-time = "2026-08-28T10:26:22.475Z" },+ { url = "https://files.pythonhosted.org/packages/64/db/9bd6c505c95128c258a55236bfbb3a7a3fb6023f863316b6d7d9f3c69052/kiwisolver-1.5.1-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:9b3092d8992a1d69b7a59c3e39f35e1b9be327a17f68a7c35fc17329e337d6f2", size = 66493, upload-time = "2026-08-28T10:26:23.743Z" },+ { url = "https://files.pythonhosted.org/packages/e1/f4/b3007a3ed5c9be73f81161140684cf7d9bdb9c4b632f5f484d2a1c713fb9/kiwisolver-1.5.1-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:c2306e8bb53601979fcb3fa09cc65e031876d9ae01eff2fcbcd7a84ef94d5bc1", size = 64720, upload-time = "2026-08-28T10:26:24.95Z" },+ { url = "https://files.pythonhosted.org/packages/a1/13/08188f0cafa3a800403e4ff62b9aad4e7a17f9c4c7e080dc8f18c64794cf/kiwisolver-1.5.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:18a0cfb124546a4c2e6087c5f3029c7f44b37c85b142e0ced71f73a7599ac208", size = 1475867, upload-time = "2026-08-28T10:26:26.393Z" },+ { url = "https://files.pythonhosted.org/packages/8a/3e/053bdc3c9abdb8f2606225eda398adca25c0c91ab90add8222a69db65ee0/kiwisolver-1.5.1-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:34ec467940442c9943016fb2d4c81d1ba84351eeca2f1a78f8bc87f1ba0d414c", size = 1282865, upload-time = "2026-08-28T10:26:28.118Z" },+ { url = "https://files.pythonhosted.org/packages/5e/64/a44c341b36b610588cc2f1e89b3cae072a3119aa8be578e90987cd640751/kiwisolver-1.5.1-cp314-cp314-manylinux_2_24_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:a83ee7107df13abe42a54a6654670eef9bb39425cf2e27f65e0007465e1286ab", size = 1300865, upload-time = "2026-08-28T10:26:30.125Z" },+ { url = "https://files.pythonhosted.org/packages/60/5e/7e7d716dca38c714478b741257a5b4a321d9932b8d851551a136dcaf3984/kiwisolver-1.5.1-cp314-cp314-manylinux_2_24_s390x.manylinux_2_28_s390x.whl", hash = "sha256:bebb89489b279b2f5661bbbb2abcc87bcd4a46607bb4a5c966f04f1db6b8df9a", size = 1348071, upload-time = "2026-08-28T10:26:31.829Z" },+ { url = "https://files.pythonhosted.org/packages/10/1a/2b98fdda8bf45b7be317e48ed12393d44334394d315c74b81f4a14c0e31b/kiwisolver-1.5.1-cp314-cp314-manylinux_2_39_riscv64.whl", hash = "sha256:509735237ae0d849e8a843551d423d2500d2e0a9ac1611a145658b29c0fb9f85", size = 992191, upload-time = "2026-08-28T10:26:33.544Z" },+ { url = "https://files.pythonhosted.org/packages/b6/55/d893f5ede0e50f9e3fcf01f6015f42ec7d9cd221e26772701fe4a98745f9/kiwisolver-1.5.1-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:824c3d763a05ea9e9003610145186b0e9848c7584a5575c79bac5a8e7cd80bad", size = 2233854, upload-time = "2026-08-28T10:26:35.282Z" },+ { url = "https://files.pythonhosted.org/packages/b1/82/f85f6279555a6ee1639fef7bfe83adb037a03e11a6fc9eaa54b8d0380339/kiwisolver-1.5.1-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:1fff05e239575b1481b6ed1a782f6fad616efbf1f0b1f44e6e85c4dfe426e483", size = 2330621, upload-time = "2026-08-28T10:26:36.9Z" },+ { url = "https://files.pythonhosted.org/packages/56/31/e11aea078f66fc2fffcc179d38ca90d9da97652a241b64519169742ba46a/kiwisolver-1.5.1-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:0627b9bceb9c3cdcf12b8a18655eedfed2692b038df27423383c120d0b7dc2d6", size = 1982848, upload-time = "2026-08-28T10:26:39.01Z" },+ { url = "https://files.pythonhosted.org/packages/af/ea/2956b63bf5140ca46aa2c2818e6aa03e2d5754dd2fa41db1c6b28922940c/kiwisolver-1.5.1-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:8a708a47ade1fe19e8371d5da076bac0dd4b0a5a7985ad6c637f7f7e361b6baa", size = 2494850, upload-time = "2026-08-28T10:26:40.837Z" },+ { url = "https://files.pythonhosted.org/packages/11/d1/3829542258d8b3fc0898d221e7ef0e2c83eca0d348709bb8dbe54f3d4005/kiwisolver-1.5.1-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:007a5553dfc4f4e8d184f588a0200e2cd4b63a59cc8796df3c39909e679dc7a0", size = 2298067, upload-time = "2026-08-28T10:26:42.803Z" },+ { url = "https://files.pythonhosted.org/packages/4e/0e/49522e1ab5788cbaf63a26fbd3b851f9028616828c961b8a31b35cb96df8/kiwisolver-1.5.1-cp314-cp314-win_amd64.whl", hash = "sha256:f4167e87b397f273dc2356fcf1eaf50a6bac51e6105f45103ef7129c8efb0255", size = 72282, upload-time = "2026-08-28T10:26:44.268Z" },+ { url = "https://files.pythonhosted.org/packages/f5/b6/22e7ca5315d363e6f81c9f37c9472e12e7b298731e77c0428e6a911a2c39/kiwisolver-1.5.1-cp314-cp314-win_arm64.whl", hash = "sha256:5c490db2168a508088f59140dd392556a54b8bd1048fc6383c8baff13c359673", size = 69855, upload-time = "2026-08-28T10:26:45.725Z" },+ { url = "https://files.pythonhosted.org/packages/30/8c/03a9cfbe871964c8758a816eb03ac96c806da2795a9a7cd9bf9648bfb594/kiwisolver-1.5.1-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:4d4ca09bf13cff792b1884f64b98ee6c2467930d632233be25c56b442d99f10e", size = 126289, upload-time = "2026-08-28T10:26:47.023Z" },+ { url = "https://files.pythonhosted.org/packages/f2/e3/14ce3041ca79dff9c9d884ca00c7bf32374e76028a865a9ecd99b4f5a517/kiwisolver-1.5.1-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:44b8faef94f1857e77fa0238f3390ff1ac51d2ea20a487e2e452a59fd2b5f5ca", size = 67709, upload-time = "2026-08-28T10:26:48.268Z" },+ { url = "https://files.pythonhosted.org/packages/af/c4/45030471a66ec8ef042e9f96ffe1d522c9ab12da180186a0898966fc1385/kiwisolver-1.5.1-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:2ae70bc59790d2af72a3f76f24b272403e135070340281108b447cb77ea70819", size = 65909, upload-time = "2026-08-28T10:26:49.523Z" },+ { url = "https://files.pythonhosted.org/packages/42/73/17dce073a6ae259bb32cf9d686c4079d2e538868bc45967462bf33df914a/kiwisolver-1.5.1-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:43844c1a7ad6d723d5b5b4c4fc7f5bd399c40e288120d16257c7c9e8765c6e85", size = 1584907, upload-time = "2026-08-28T10:26:50.933Z" },+ { url = "https://files.pythonhosted.org/packages/8c/84/ae3c75909f507283cbfcc7e916c7e822579ef962020b97e6882b27b4478f/kiwisolver-1.5.1-cp314-cp314t-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:22d5e5aaad6be121f2515765e3b1c444352cb8eb4c86510801db8f2e50757316", size = 1392474, upload-time = "2026-08-28T10:26:52.638Z" },+ { url = "https://files.pythonhosted.org/packages/34/31/8bcc83caad5bce8fa4577152389848bf6bc110e51e573a2b4e7c2aa34c89/kiwisolver-1.5.1-cp314-cp314t-manylinux_2_24_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:3fa5855898f6d3d01b72ccd48a2d65cbdee301251603fefe34e2025bddba219c", size = 1405246, upload-time = "2026-08-28T10:26:54.248Z" },+ { url = "https://files.pythonhosted.org/packages/55/72/220345537d790cf4ae54f8acfff4b5cc2468e0702a384d651cf7a771c63e/kiwisolver-1.5.1-cp314-cp314t-manylinux_2_24_s390x.manylinux_2_28_s390x.whl", hash = "sha256:d66a64dd5dec136040ec2ae94aa026a912ee60fdd45bc28d3db30037fd809e88", size = 1456099, upload-time = "2026-08-28T10:26:56.042Z" },+ { url = "https://files.pythonhosted.org/packages/cd/10/3725fd2398f66d18c34b4e0f81a8d03764cd4f4f089f58a527f0b4428086/kiwisolver-1.5.1-cp314-cp314t-manylinux_2_39_riscv64.whl", hash = "sha256:9e51c119992ea8820706871c30a4642ec76de20ae82f9b50b9a45517d8e9f810", size = 1073695, upload-time = "2026-08-28T10:26:57.658Z" },+ { url = "https://files.pythonhosted.org/packages/86/cb/28d6e09e66b93e4588b2e6b7d84d020ccefea09e2f4de788510a07efeab7/kiwisolver-1.5.1-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:70ed9a45c7484d2b30cdacf60d220f494a1763b9fec1ad03285c6553fa0889f2", size = 2335355, upload-time = "2026-08-28T10:26:59.202Z" },+ { url = "https://files.pythonhosted.org/packages/6a/b3/a0f31d5e4e40af7dc97c36b8a74fdd3a36cf3c8bbd098da9a23466ff6a94/kiwisolver-1.5.1-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:98b208a7cc42c803445ef551d6753cc42a5ea13e9cab1ee66cd8b9cb70195330", size = 2426524, upload-time = "2026-08-28T10:27:01.181Z" },+ { url = "https://files.pythonhosted.org/packages/2f/c9/728f63bd58c72cafdc79fc306abeeac7391bec03b757a48dadeb30906521/kiwisolver-1.5.1-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:c6834b92dd2428e2dd85ef3d85f723d3c12f20aaf43a2ddd4f944ca25d833408", size = 2063430, upload-time = "2026-08-28T10:27:03.06Z" },+ { url = "https://files.pythonhosted.org/packages/84/df/ce188b96f92f9a2c958231da140768918cba53c9713dc887b82f85462118/kiwisolver-1.5.1-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:5d142e352eb13facc7dd047489aebdff6ba78576c239f1ea04931979caaf0567", size = 2597513, upload-time = "2026-08-28T10:27:05.072Z" },+ { url = "https://files.pythonhosted.org/packages/69/d6/76947c8203768968382e5bd74d9cc95654746703a61ea53015f2c74a2e06/kiwisolver-1.5.1-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:f9b1c4900736e489a812c529100de4b8fb617d4db075e931e213c57424b83d9b", size = 2394488, upload-time = "2026-08-28T10:27:07.423Z" },+ { url = "https://files.pythonhosted.org/packages/e4/d4/14b21e4eb203c4d15425e8b6a2c625a320b4a1f2f7557eead63ffc30ffb7/kiwisolver-1.5.1-cp314-cp314t-win_amd64.whl", hash = "sha256:5978c3340f16a35c30f8ab2fa7bcf559973c55f1a5ef6970e1f621acf3c4db13", size = 75404, upload-time = "2026-08-28T10:27:08.892Z" },+ { url = "https://files.pythonhosted.org/packages/cb/f5/53157899fc7f45f76421b77b99eb1639dd0f83f26ff9d76300c96bb4a3b0/kiwisolver-1.5.1-cp314-cp314t-win_arm64.whl", hash = "sha256:ca307d6c259e5c98d3cb9ade55342b47a6839762caf2536f3d7b46ee660cc82e", size = 72946, upload-time = "2026-08-28T10:27:10.944Z" },+ { url = "https://files.pythonhosted.org/packages/75/62/f786c3a27f181fa339d851a77e266d208e776b9883cabc40a5b041a31b5a/kiwisolver-1.5.1-cp315-cp315-ios_13_0_arm64_iphoneos.whl", hash = "sha256:bb7c99f0673c03017a3ee01e54a5c2617a05468b11eabe513b0080e063ed95b1", size = 62420, upload-time = "2026-08-28T10:27:12.308Z" },+ { url = "https://files.pythonhosted.org/packages/02/cd/58a91ed25fbad0facdf503297b03768efab04bdf3141e5e3b49a34be7443/kiwisolver-1.5.1-cp315-cp315-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:0d8924877ce22e17326a99a418c3c82037da078df3c6a260b13eca677444e6e7", size = 64577, upload-time = "2026-08-28T10:27:13.502Z" },+ { url = "https://files.pythonhosted.org/packages/f6/5c/d501ef5a0958b226eac28306d24d5e5f114be0ace50e19cabae7b6b3b197/kiwisolver-1.5.1-cp315-cp315-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:534f02c1abb31ed6dbd3515545285c330b2f12d00fdb1fdb71658b9ca5a13a6a", size = 66284, upload-time = "2026-08-28T10:27:14.813Z" },+ { url = "https://files.pythonhosted.org/packages/a3/a6/8fbecaf4fc18c02f31f05e47a84c010a80e3ec391ed2f0bdade1d62b5954/kiwisolver-1.5.1-cp315-cp315-macosx_10_15_universal2.whl", hash = "sha256:cea20da04494e662b83c872683bf4ff2345206043d036315ed0e924b652e7294", size = 124031, upload-time = "2026-08-28T10:27:16.193Z" },+ { url = "https://files.pythonhosted.org/packages/7c/c6/bf3090d2983b4204347cbdbe952116e7c3b2abf62b4e33e50167a13e75ee/kiwisolver-1.5.1-cp315-cp315-macosx_10_15_x86_64.whl", hash = "sha256:7fd82debf43c6acd0a94359d232f6bb516ee13f269a7993736a9ac9f988bb5d9", size = 66489, upload-time = "2026-08-28T10:27:17.506Z" },+ { url = "https://files.pythonhosted.org/packages/85/de/562dddef55fdd7c291da8626d6619e72b5fc0870e6ccca0e149a5731e7f3/kiwisolver-1.5.1-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:18170a77ddfecf40ec60d0928268dc95880c881864e015a8f34094ed18b9b9ad", size = 64806, upload-time = "2026-08-28T10:27:18.673Z" },+ { url = "https://files.pythonhosted.org/packages/89/b1/ba7b9c0164ce1cf62bf2872db63b8483289cf0f3110d6f9390eb09e409ed/kiwisolver-1.5.1-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:ca7f6fe0f37ca978a1e5eb7a3a68e6413f417e78e838324947ffd420202b198b", size = 1482211, upload-time = "2026-08-28T10:27:20.039Z" },+ { url = "https://files.pythonhosted.org/packages/13/dc/34da54efb4976616d45c20aae32d70e89d6e7395ed908029154d1609ef22/kiwisolver-1.5.1-cp315-cp315-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:5b973887ff782cfd6b67c9904ad8ca542e0bc5e4961503408b423b5a688b4d38", size = 1283739, upload-time = "2026-08-28T10:27:21.82Z" },+ { url = "https://files.pythonhosted.org/packages/5a/3a/30ffb62bee646e266e98a1b5cd276d9c75b6116fbfcb87c1190838c1b6df/kiwisolver-1.5.1-cp315-cp315-manylinux_2_24_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:f76fc85bd054c806960f917ec0f329e24e436f1712267d90588e4c39890caa63", size = 1301681, upload-time = "2026-08-28T10:27:23.876Z" },+ { url = "https://files.pythonhosted.org/packages/a9/8d/13c70be22a8506880b35fdc38dca36629613bc493405c79f4037f2cd2bb9/kiwisolver-1.5.1-cp315-cp315-manylinux_2_24_s390x.manylinux_2_28_s390x.whl", hash = "sha256:828f75af2b0080c8a972e75f649ab46af008e92c6104a57a759157200b835b75", size = 1349159, upload-time = "2026-08-28T10:27:25.899Z" },+ { url = "https://files.pythonhosted.org/packages/82/0e/993972b8ec6767f47cd69818fb3a5ff14510557d29f7d1a839be7574fa1b/kiwisolver-1.5.1-cp315-cp315-manylinux_2_39_riscv64.whl", hash = "sha256:431dc224a1a92a5c8f582d96e505196a3b5997a7271076678da2dfde67b77e9a", size = 997613, upload-time = "2026-08-28T10:27:27.507Z" },+ { url = "https://files.pythonhosted.org/packages/36/82/ca26eddd2eda2420dfc56693449c1f821f78b485da9cbde9904c03af3f93/kiwisolver-1.5.1-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:61e9a64c7635095a6bfe483e2ff055d437c59bd45f3617a228b37277f0185d62", size = 2235109, upload-time = "2026-08-28T10:27:30.113Z" },+ { url = "https://files.pythonhosted.org/packages/c7/84/97d920881e10840b8d7c7185620298e3e4c88820b05514e3a15a258b08a6/kiwisolver-1.5.1-cp315-cp315-musllinux_1_2_ppc64le.whl", hash = "sha256:3c24cd69455e1b00ddf770c13b6e2c33e07d6dc3f2d34add0bf9277c5c6bbd46", size = 2331207, upload-time = "2026-08-28T10:27:32.795Z" },+ { url = "https://files.pythonhosted.org/packages/e2/ce/34d74b8f25acc58800f4c09268371e8d6159cf0f1206f1e4dc7835629b48/kiwisolver-1.5.1-cp315-cp315-musllinux_1_2_riscv64.whl", hash = "sha256:27add358abe374ebaa3b8763ef380bc99051b5a4b18d94878366a9e4f59efef0", size = 1986696, upload-time = "2026-08-28T10:27:34.628Z" },+ { url = "https://files.pythonhosted.org/packages/0e/01/f892644014612527aef7031d3306a2ffc60b3cb044f802c1561f8e5e14f3/kiwisolver-1.5.1-cp315-cp315-musllinux_1_2_s390x.whl", hash = "sha256:255605693a483db7bd5c79f60437f7bf658f7f520d61aa42722e32257c941951", size = 2496400, upload-time = "2026-08-28T10:27:36.818Z" },+ { url = "https://files.pythonhosted.org/packages/32/6d/d8284e66e697026536e5f418b9cfe56567bffd3c775e3ecfbae373605854/kiwisolver-1.5.1-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:7d38b0c279c3032e8c9cc013b405c6df8e1668dbf15465779aa7f15f61201812", size = 2302967, upload-time = "2026-08-28T10:27:38.803Z" },+ { url = "https://files.pythonhosted.org/packages/46/0a/69a355e27f32ba50d5b6369949b6a1702e122f5277c89bc76d452b81c1c4/kiwisolver-1.5.1-cp315-cp315-win_amd64.whl", hash = "sha256:958254518717542d02d0688d0d20cbf771da5e415e6f49543f92481c850a4540", size = 72283, upload-time = "2026-08-28T10:27:40.491Z" },+ { url = "https://files.pythonhosted.org/packages/ef/d8/7a95be90c33dcdd52204d4aa6384d731443225b887283bbd8b61e7931f6c/kiwisolver-1.5.1-cp315-cp315-win_arm64.whl", hash = "sha256:da3275833be0edbaf4830fae08bae3dc7219f40ce0c37eaa6c25825957e06612", size = 69860, upload-time = "2026-08-28T10:27:41.835Z" },+ { url = "https://files.pythonhosted.org/packages/31/f8/9bc493e7f5707788ba7f621902c68f82dc3a7ba03c78fbd337b026cef1ed/kiwisolver-1.5.1-cp315-cp315t-macosx_10_15_universal2.whl", hash = "sha256:470d420f98d368d6f010633a20659b544c5fdfa5329e6b70219f2ef08fd4a7ef", size = 126336, upload-time = "2026-08-28T10:27:43.379Z" },+ { url = "https://files.pythonhosted.org/packages/d1/82/3aea86b3f99712db825e9ac5631bf99571e818a8b8961ff98cebd798413e/kiwisolver-1.5.1-cp315-cp315t-macosx_10_15_x86_64.whl", hash = "sha256:83f78128fa28705fa85d01c59771c72fe81c11bd0e6155edbb9f818983a7d761", size = 67698, upload-time = "2026-08-28T10:27:44.613Z" },+ { url = "https://files.pythonhosted.org/packages/84/7d/8daafc5d2e7f9c47a4f78f8865d86d2a9cf399c2a85f86c44a993594410c/kiwisolver-1.5.1-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:9506e892bcc3b409831d363c6f53e5985e1c8d1f6f6b0256d00358684ff85378", size = 65945, upload-time = "2026-08-28T10:27:45.932Z" },+ { url = "https://files.pythonhosted.org/packages/3d/c9/51dc974d9130da70a8c47a96160123443d387ffe1b6b833d6f91d9429339/kiwisolver-1.5.1-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:cea90547bfd93807e0013a004dc76552be44fad3bc1cc2b38610a9e889ed098f", size = 1588030, upload-time = "2026-08-28T10:27:47.678Z" },+ { url = "https://files.pythonhosted.org/packages/e6/86/f3e1a730e7a995149d8d3ff9e313b6d8a17b2cf1d98a8eff139dc30463fb/kiwisolver-1.5.1-cp315-cp315t-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:e8e4d953faaded9ec7ede36824e9814082d22d4c7b1eafbfa079ecba8cd0d076", size = 1390760, upload-time = "2026-08-28T10:27:49.676Z" },+ { url = "https://files.pythonhosted.org/packages/4f/3b/8ba25a2b5a0d2375e046f1b72de5179513f0be95aba6e7b094c89303929f/kiwisolver-1.5.1-cp315-cp315t-manylinux_2_24_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:7e9c01d3dd7ceba4d1d436cc021d40d592466e40b9bc7f5d83dc4e98a5c9cd8c", size = 1403279, upload-time = "2026-08-28T10:27:51.242Z" },+ { url = "https://files.pythonhosted.org/packages/18/d0/278d5cb8be812740027d5ca0a7eda0c375488a88d6dce0fa60fcc2591ad2/kiwisolver-1.5.1-cp315-cp315t-manylinux_2_24_s390x.manylinux_2_28_s390x.whl", hash = "sha256:37f801b5d7cc0e5a548921308e059fd2b057bb42972b591cfa3049f95423c4ed", size = 1454429, upload-time = "2026-08-28T10:27:53.213Z" },+ { url = "https://files.pythonhosted.org/packages/94/37/bcbab41063ec284c1d200efe5087cf087798c2f8916960aa8a20dd303290/kiwisolver-1.5.1-cp315-cp315t-manylinux_2_39_riscv64.whl", hash = "sha256:e68e151428b5384f766cd25739bf77c7e4a3dc93b5ded7a12118d9fbfdf78ab6", size = 1073225, upload-time = "2026-08-28T10:27:55.089Z" },+ { url = "https://files.pythonhosted.org/packages/cb/c5/ab79dcdf5ae28909a51210ae0a1c579e97ff997b3466414f0d04c0994583/kiwisolver-1.5.1-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:8f8fddb8e323bd6eee4e54e69a39243beab22689070f4c66b472c4cc88bb89d8", size = 2334335, upload-time = "2026-08-28T10:27:56.78Z" },+ { url = "https://files.pythonhosted.org/packages/8d/8e/71d047468a189041d9c93f3b76844b924f9793b188c44bd149fa258912da/kiwisolver-1.5.1-cp315-cp315t-musllinux_1_2_ppc64le.whl", hash = "sha256:3cc210010fd2f438a3ed430b45f1b501fd13a8618bf984dc2c5ce5b69b78752e", size = 2424982, upload-time = "2026-08-28T10:27:58.639Z" },+ { url = "https://files.pythonhosted.org/packages/7d/37/1347461bbea6d0e1f0580b94ef603b18e72c2be5f667fa1653867361a00b/kiwisolver-1.5.1-cp315-cp315t-musllinux_1_2_riscv64.whl", hash = "sha256:b5664603a253efd3a75716d793d1d3a6a82723b61dc6db767b2460bbbeec4c0f", size = 2062857, upload-time = "2026-08-28T10:28:00.407Z" },+ { url = "https://files.pythonhosted.org/packages/1f/87/c7f0976c9cd0d127643351bc0c9929e0b8899d7f49d4ec238cd909e39c42/kiwisolver-1.5.1-cp315-cp315t-musllinux_1_2_s390x.whl", hash = "sha256:a7b85b2cc6ea45e5f7e8c9a30bc9fabd47cda09106cbb4b967335c3e6c43b69d", size = 2596022, upload-time = "2026-08-28T10:28:02.183Z" },+ { url = "https://files.pythonhosted.org/packages/e3/9a/59a6f6ae6f938c15076be2c21b6cedea973d71bb1349ec84fa485fab82cf/kiwisolver-1.5.1-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:ab620eb663952455271ac37f9aaad86b73c969c02f11f53cea405b38e96a4300", size = 2395634, upload-time = "2026-08-28T10:28:03.977Z" },+ { url = "https://files.pythonhosted.org/packages/e9/2d/8982c1fb7926da5bb7ed60318c3665b5c3f941447271ac982960a11b8637/kiwisolver-1.5.1-cp315-cp315t-win_amd64.whl", hash = "sha256:cb6fae641357ed2f6e533c0d3c6504a4a5703621a50c89459e46051d56b61140", size = 75379, upload-time = "2026-08-28T10:28:06.307Z" },+ { url = "https://files.pythonhosted.org/packages/07/78/ba7b6dfa1708b82b373ac056928a30c545d5c1a627df9839dcec3c6c1881/kiwisolver-1.5.1-cp315-cp315t-win_arm64.whl", hash = "sha256:b390aec180a7c054919c04898835e1c77bced23ea8383eb2c570213bf25d1a86", size = 73011, upload-time = "2026-08-28T10:28:07.578Z" },+]+[[package]]name = "kombu"version = "5.6.2"@@ -2031,6 +2444,60 @@ 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 = "matplotlib"+version = "3.11.2"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "contourpy" },+ { name = "cycler" },+ { name = "fonttools" },+ { name = "kiwisolver" },+ { name = "numpy" },+ { name = "packaging" },+ { name = "pillow" },+ { name = "pyparsing" },+ { name = "python-dateutil" },+]+sdist = { url = "https://files.pythonhosted.org/packages/e7/c8/9aa712a0afb882649424dd8de8ad9aa6235e796e84c6052e8f6dc1598d0d/matplotlib-3.11.2.tar.gz", hash = "sha256:cec596316640f2b394b8f0daa0ea61a8eae82d017b620b9f202befb972a59ea4", size = 32660610, upload-time = "2026-09-11T19:05:31.214Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/bf/ce/fc58855a3d17f6cb8a87b6f9ccd100f65432a3a7ffed57309cbf14c78987/matplotlib-3.11.2-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:7d43ff8cebb50840648cb6429b2228621dbd709010f3117b3740abb20abf21c0", size = 9476987, upload-time = "2026-09-11T19:03:40.17Z" },+ { url = "https://files.pythonhosted.org/packages/a9/29/2a47b700545aca050e0ed73c89ba21e08407e11f5f42a567421b220de6c1/matplotlib-3.11.2-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:2a8285cea8ef4d92aa041d1c33788bcae82248503300f93f1ca2136b9049452f", size = 9306050, upload-time = "2026-09-11T19:03:43.103Z" },+ { url = "https://files.pythonhosted.org/packages/a9/df/e7c10292f348cf55178a5b3c0092a38ea68891a3945f199ae8b7b8ac9dc1/matplotlib-3.11.2-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:1944895967f87c84c9b4bad29a707b31f5b36df4a3a2339ea1f8ea3ce5105539", size = 9861060, upload-time = "2026-09-11T19:03:46.044Z" },+ { url = "https://files.pythonhosted.org/packages/e4/b9/b978de6d43d47f1d4d8e653fac32c16d8d2e5f46bbbb822e26d7cb1adece/matplotlib-3.11.2-cp313-cp313-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:af2661f6ac6bbd1d081996f54fdd9385715c625ace8cec0869055c0cfbf38981", size = 10670885, upload-time = "2026-09-11T19:03:48.942Z" },+ { url = "https://files.pythonhosted.org/packages/a3/80/d72f61bb2631ac15d17fada1f17e0f99fecba69d8376d34f17cf93b7eddd/matplotlib-3.11.2-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:7e5a90f8a707ebb6004a713b1cff091a40cc5df4c7c1cb165e5a505ebc11c292", size = 10811222, upload-time = "2026-09-11T19:03:51.665Z" },+ { url = "https://files.pythonhosted.org/packages/94/2e/6d1d33f242c705b5c6c6fb3f0fc141add51cb1abb62912e59de0835d28c4/matplotlib-3.11.2-cp313-cp313-win_amd64.whl", hash = "sha256:bc067c462a86f0e57bf52fc6e058d90171a5420007dac00c46e90153050c69a7", size = 9349539, upload-time = "2026-09-11T19:03:54.534Z" },+ { url = "https://files.pythonhosted.org/packages/bb/bb/c0aa86a7f4c0e62f1c3c0711e361f6f23f87eb9018732a5e11994bd1b7ec/matplotlib-3.11.2-cp313-cp313-win_arm64.whl", hash = "sha256:3e8576f7c47e02fd4f21f44171302d2d1d58d4471d46da3d71fe8899d19539d9", size = 9028295, upload-time = "2026-09-11T19:03:57.261Z" },+ { url = "https://files.pythonhosted.org/packages/54/b4/4facdb700bc236e4c676495ca3798d8134ab8668cbfe0f6b2e9ebf962a38/matplotlib-3.11.2-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:c9721f81275499da1feeb36a2cf8192ea086283b3bd16b7dc4c9d7aedb7396d6", size = 9478976, upload-time = "2026-09-11T19:04:00.12Z" },+ { url = "https://files.pythonhosted.org/packages/4c/a0/bba05f0a25bfeb0475c2f2a87958b31103aa6b7a5386017afb1a96212825/matplotlib-3.11.2-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:1a3040b209f3968b4e84161df7b174f07a9fad33b0f2d7e48ea3bbd3075e2863", size = 9307932, upload-time = "2026-09-11T19:04:02.976Z" },+ { url = "https://files.pythonhosted.org/packages/d4/42/81d5cba4bb39b41b0998efc880e129f2d7cdb94256ca49678fdcd9c21be5/matplotlib-3.11.2-cp314-cp314-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:bf3fe71fbfb8ec0e310e0bc8537c3405a01f38f25f9394ed2135e6202fed542b", size = 10674370, upload-time = "2026-09-11T19:04:06.912Z" },+ { url = "https://files.pythonhosted.org/packages/29/5e/52f56f93d5b20815ee0ae352f7a38eff25580edb180b4fa7df87cfeba68f/matplotlib-3.11.2-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:8c8255de28f986d935a64c9ca71c0ec2d2f41d355691f5ea684725dc91413f71", size = 10954597, upload-time = "2026-09-11T19:04:09.948Z" },+ { url = "https://files.pythonhosted.org/packages/6e/ae/f8918a1b564db49c53cd603eb3c8748c5767e4ce0fb2cf1d7c38653e4c5d/matplotlib-3.11.2-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:a8756cc73d9af9a7fe0deb54ea2e75ef73b01d9e575877e72acad5458e660943", size = 10812583, upload-time = "2026-09-11T19:04:12.887Z" },+ { url = "https://files.pythonhosted.org/packages/ea/61/4315ef0d63937fe56f451887b4a0be3b8e8b22cf1d92a8d157caac54570d/matplotlib-3.11.2-cp314-cp314-win_amd64.whl", hash = "sha256:ecea603dd2fbf8242fd31a305a8b12a4ece2de28096870c65fdd0d1e35b8d9a6", size = 9505972, upload-time = "2026-09-11T19:04:15.788Z" },+ { url = "https://files.pythonhosted.org/packages/d5/00/02398b0a1a62ef73d9af0a957fe1773363eec9a6ca7e433c72ae2790fbce/matplotlib-3.11.2-cp314-cp314-win_arm64.whl", hash = "sha256:01dc8eaaab5a9fce9ff615eca82345728f289e4715b186ee10c6d85272fc26bb", size = 9184534, upload-time = "2026-09-11T19:04:18.691Z" },+ { url = "https://files.pythonhosted.org/packages/ec/c5/1e6ca10baa7e04f113c37856aadb4adc3dbb1c55fc7da6dc830bba1292d7/matplotlib-3.11.2-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:79a258f58253dfa025af80a9e9bb228d75fced007f0e93ae7423fefbde81a74d", size = 9526415, upload-time = "2026-09-11T19:04:21.39Z" },+ { url = "https://files.pythonhosted.org/packages/e0/93/7561727af07ccc84747953c6a33eee3981cc436d04f465032e707ca0e429/matplotlib-3.11.2-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:c0b83f044ce10a98027b105b3931548719a6e8c7ef986b4362651e0b5367c8dc", size = 9361064, upload-time = "2026-09-11T19:04:24.107Z" },+ { url = "https://files.pythonhosted.org/packages/c1/40/ce270ef2a6794d94a409fe28b8dabedffc07c07f9e5dbb89e0f605bd157d/matplotlib-3.11.2-cp314-cp314t-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:e43b188f0a5b75447bcc197728258166aa64365770ed1caa36595a5e1ca4bbba", size = 10684626, upload-time = "2026-09-11T19:04:27.201Z" },+ { url = "https://files.pythonhosted.org/packages/45/46/396e0307dbf1c1f2d0a3654caa6dbc780dd5379f5f11257369cf8d21d9fe/matplotlib-3.11.2-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:d3304eb5a59442a8867f6920d484591c0fa09ffc29e9260be2feec3351e25869", size = 10960602, upload-time = "2026-09-11T19:04:30.254Z" },+ { url = "https://files.pythonhosted.org/packages/1c/97/4defb84695477340aa88b27c9482cc1ca4de11f36f66b6c8c0ddd685def1/matplotlib-3.11.2-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:02329432ae5c6af87cf208ee575b701d698bdf0b1a3bb28cc6d53c36e967e575", size = 10822603, upload-time = "2026-09-11T19:04:32.964Z" },+ { url = "https://files.pythonhosted.org/packages/7d/e7/eab54551c1ec6b72dcd678a078b6c6da8d4c85ec1ff0016e81fe52866304/matplotlib-3.11.2-cp314-cp314t-win_amd64.whl", hash = "sha256:f2ac30cf5eb5dff1b584627ae0b0e1186551a4f69ae3c75073911da497a29170", size = 9551206, upload-time = "2026-09-11T19:04:35.811Z" },+ { url = "https://files.pythonhosted.org/packages/4e/0e/04698032cb4d8fb1e30d8ffec5ded20f6f582b03c8c58b2385c95245f158/matplotlib-3.11.2-cp314-cp314t-win_arm64.whl", hash = "sha256:cf41ecd1b0c0b6f7177ed965a54c2afbe888715c7cf6054dc12d53bc1494002c", size = 9234977, upload-time = "2026-09-11T19:04:38.972Z" },+ { url = "https://files.pythonhosted.org/packages/44/a9/ca827c184b87364378964e36e7c0ae23651d146fdbc4000635205490cf82/matplotlib-3.11.2-cp315-cp315-macosx_10_15_x86_64.whl", hash = "sha256:894a9cbbecbe30ae6787d464df2e8fc7a8d475cfc68f87c3029f7c11152899b3", size = 9478997, upload-time = "2026-09-11T19:04:41.914Z" },+ { url = "https://files.pythonhosted.org/packages/48/60/01aaafc9c3159f3fae9a65bbcddaa4a6d4d72b0aeffdd636d7f6d00a5c8d/matplotlib-3.11.2-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:bbf1062991d826ed27e2144f3afa4461afbb8ff56e8f703043e191a8163b1ee9", size = 9307947, upload-time = "2026-09-11T19:04:44.834Z" },+ { url = "https://files.pythonhosted.org/packages/1e/a0/6aa72c7cd7cf4dfac652744d7a3310007cec3ce8e5ab9be607bec7096471/matplotlib-3.11.2-cp315-cp315-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:399fef672f7046ef7d6a57572b2a6f9845f3f5afcff04e7b2df7a363a9f42190", size = 10674370, upload-time = "2026-09-11T19:04:47.745Z" },+ { url = "https://files.pythonhosted.org/packages/a1/97/d7e90225ac145046787a2ee0fa4cdc7e4d5cb6772ea232130b10f8a4095a/matplotlib-3.11.2-cp315-cp315-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:cc82dde2a0d3e3ad472edce04897ad7146b8d8bfd1df8a32992eebb81af18fdc", size = 10954581, upload-time = "2026-09-11T19:04:50.712Z" },+ { url = "https://files.pythonhosted.org/packages/58/18/89cf056a9d2cae01f4b8baf01c7e809d613244fcdfa2a2acf28c1e0d79fa/matplotlib-3.11.2-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:930efb28f59fda124e39265d177bab302625297bb147d2910de725a2fc2aef54", size = 10812605, upload-time = "2026-09-11T19:04:53.552Z" },+ { url = "https://files.pythonhosted.org/packages/9d/4d/c61b9f4c34af802d4d84e58803e009013d626b5f468bafe1416131863b5b/matplotlib-3.11.2-cp315-cp315-win_amd64.whl", hash = "sha256:3da3bc0cbf7245e7db72cc6d29d12c5abef72cb73059c73b945f14e3545f3eb2", size = 9506068, upload-time = "2026-09-11T19:04:56.519Z" },+ { url = "https://files.pythonhosted.org/packages/03/7b/047f2fa8708d47430d8e7fa45e9fffb0aee5d4e300f978e087be2ee11fbc/matplotlib-3.11.2-cp315-cp315-win_arm64.whl", hash = "sha256:f25446b2981717dca9786bac841cb3fd7efb568e3e3c755dd980481c5cb9228d", size = 9184576, upload-time = "2026-09-11T19:04:59.318Z" },+ { url = "https://files.pythonhosted.org/packages/03/6e/ad9c5989950785a98642667df265a47c6637e924cb69b5dcf68c3299ae7c/matplotlib-3.11.2-cp315-cp315t-macosx_10_15_x86_64.whl", hash = "sha256:fea03cf56568cc1cba08b470be6a0559e71c3a5b688d54b7179bb35ba23d0821", size = 9525988, upload-time = "2026-09-11T19:05:02.304Z" },+ { url = "https://files.pythonhosted.org/packages/a6/c3/25c61701fb655dd412428b15eee2591ce554cdd593e39a045a153373f428/matplotlib-3.11.2-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:254d4ddb2fa8df3b4c689c0c306063aee10521df82cfb438185e499c75fe37c1", size = 9360774, upload-time = "2026-09-11T19:05:05.092Z" },+ { url = "https://files.pythonhosted.org/packages/58/5a/4552878fce8f9d249a5e264c16f5c267c27eac08fb039fa3e207a06feff5/matplotlib-3.11.2-cp315-cp315t-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:e60cf3047a51edecdc4535a9196bbd6a732936b8e9f8184aabf4d16165884aaf", size = 10685892, upload-time = "2026-09-11T19:05:07.686Z" },+ { url = "https://files.pythonhosted.org/packages/af/dd/b3b19ec0124fc4aafd8a4b3bae859c562a7ff0fd8ae3b2099947f78bde19/matplotlib-3.11.2-cp315-cp315t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:eb3712dc9b464793de0a4e42a7313d50293c751f94bddaf7332a1bc71bccdda9", size = 10964946, upload-time = "2026-09-11T19:05:10.943Z" },+ { url = "https://files.pythonhosted.org/packages/7b/30/687ccce22f66a57fed85942450e88062773bcbf1a42914e70c7148ec71dc/matplotlib-3.11.2-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:75b6d88402770e181b5d06a67dda4129c31da7d05004d63a21c310ec78d1b83c", size = 10824960, upload-time = "2026-09-11T19:05:13.9Z" },+ { url = "https://files.pythonhosted.org/packages/d3/34/117fe35a8d05054b4b34d2d29287099927c24c3841d36e06d9fa2f20c1cf/matplotlib-3.11.2-cp315-cp315t-win_amd64.whl", hash = "sha256:a6939df7567114b6bac7f4c5e06c84a67f197c1b2f2e4b234d4eecb3bfec9482", size = 9551204, upload-time = "2026-09-11T19:05:16.48Z" },+ { url = "https://files.pythonhosted.org/packages/63/5a/9f440e7bec8b80d0af2a65d1165b2f4e718982dad785531f62255d9ff19b/matplotlib-3.11.2-cp315-cp315t-win_arm64.whl", hash = "sha256:d480038c83691532ed52ff3147db51fa902fc78cb2d8349993a1cdb684435bff", size = 9233946, upload-time = "2026-09-11T19:05:19.063Z" },+]+[[package]]name = "mcp"version = "1.30.0"@@ -2363,6 +2830,40 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/fd/6a/d3a169aaf8536cf228d56a09e04bcb713a2fe4410d4e2105b9419b5a9c89/numpy-2.5.0-cp314-cp314t-win_arm64.whl", hash = "sha256:016623417bb330d719d579daf2d6b9a01ddc52e41a9ed61a47f39fde46dcd865", size = 10686451, upload-time = "2026-06-21T20:57:49.313Z" },]+[[package]]+name = "obstore"+version = "0.11.1"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/a2/27/aa7549157a4a681157e315534ba5ab8f167f77662166e792a6e836938f46/obstore-0.11.1.tar.gz", hash = "sha256:a5afe8b99e3b20cdc9133be7a1b381259acf0d470029f6b2fc79c3f9947ad436", size = 130828, upload-time = "2026-08-21T23:57:27.837Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/0d/38/438f85772bfbcd2985845a5d00d1c910e98b15f587dae6cb1e435865eba9/obstore-0.11.1-cp311-abi3-macosx_10_12_x86_64.whl", hash = "sha256:d5c50b755d781efebe4f9c70ee6d00858e44d95f0229b8b5174358f861d9bd7c", size = 5400146, upload-time = "2026-08-21T23:56:29.168Z" },+ { url = "https://files.pythonhosted.org/packages/e7/62/edd2613649cb6b4400f5d125223ee094d2da1c4c93636453a5360c61b865/obstore-0.11.1-cp311-abi3-macosx_11_0_arm64.whl", hash = "sha256:093152daa5c32b70a032f231bbc6a7eff76dda4285eed5a81d272b4485032dab", size = 4596203, upload-time = "2026-08-21T23:56:30.7Z" },+ { url = "https://files.pythonhosted.org/packages/c1/52/09edd48251a26a65f786bf2def93994ffce501f3aea6724474d8de0a7f4f/obstore-0.11.1-cp311-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:b97ee10456e65f166c030b5fbde8380ca508621e23b84efd77aad83afe99315a", size = 5003021, upload-time = "2026-08-21T23:56:32.085Z" },+ { url = "https://files.pythonhosted.org/packages/59/8f/89a28c75d46bbb0552d34a5e84c5bc512526d45f935321f00af2e6275a99/obstore-0.11.1-cp311-abi3-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:48983a143de69b11de49212caa79b5c39acbff7f592f9e85d156a0133a0e5796", size = 5240376, upload-time = "2026-08-21T23:56:33.658Z" },+ { url = "https://files.pythonhosted.org/packages/50/c3/b4620899003e2472bec7baf5d2bce12cf6f6f11d02d8f17e03e093717a53/obstore-0.11.1-cp311-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:3b9cb988e03ff963914cf2176aee293eaaff7dcf4efcb905ce6834264b4b0884", size = 5444946, upload-time = "2026-08-21T23:56:35.093Z" },+ { url = "https://files.pythonhosted.org/packages/bd/de/687685ab39ae4a70cc13ac252febfe62a387836a55e046f467c9fb231880/obstore-0.11.1-cp311-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:97850f68c8417f7167549bdb705c362c825ed470298c6b04faf52258c5e9234e", size = 5304065, upload-time = "2026-08-21T23:56:36.535Z" },+ { url = "https://files.pythonhosted.org/packages/b4/36/b962ad52031b5bfdd249923db6151ff2b665b08c017611db96838455f337/obstore-0.11.1-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2a9f3d66dbf3c073dd6b6033c0787ef14edf78d97bff95595d6f6979692da264", size = 5556770, upload-time = "2026-08-21T23:56:38.377Z" },+ { url = "https://files.pythonhosted.org/packages/e0/04/41a0f2917fcaa1e66b754fc98c92441d5a252ff9c619941ac086f9bdb4f6/obstore-0.11.1-cp311-abi3-manylinux_2_24_aarch64.whl", hash = "sha256:2ba3bceec4263b3a70eea873abedb82e03da9599f2326e80d6505cab0c10d401", size = 5337765, upload-time = "2026-08-21T23:56:40.279Z" },+ { url = "https://files.pythonhosted.org/packages/f9/39/0b618efe59ee4b58f16d2b9246674a70c390bebf665cd284b439bade9bd3/obstore-0.11.1-cp311-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:e956fa8a953b7eb8580658d68cdf37e410356032c17697a06e44d0e8c4084a0f", size = 5544012, upload-time = "2026-08-21T23:56:41.754Z" },+ { url = "https://files.pythonhosted.org/packages/57/3b/1018f6da240f3529d1cb9a836c79a91ce45349ba3cffcd6baa73296c7e6c/obstore-0.11.1-cp311-abi3-musllinux_1_2_armv7l.whl", hash = "sha256:159a50d0f4cc53afe6f5c695313bcaf6e92ac81d7847692c8279153483272bfa", size = 5229851, upload-time = "2026-08-21T23:56:43.367Z" },+ { url = "https://files.pythonhosted.org/packages/35/2c/c2fe082816b255159373b15be3f28b2515d0eb954e248e2f65449c456a14/obstore-0.11.1-cp311-abi3-musllinux_1_2_i686.whl", hash = "sha256:128da07f3a1b9c70159e2b2be9e27f458a9d531d57b1856dd7c4ddb73b4c9937", size = 5361812, upload-time = "2026-08-21T23:56:44.871Z" },+ { url = "https://files.pythonhosted.org/packages/43/9c/656eb5cce818e7e3985d27f4bd403feb0b6e620494775a55a0943c8d2fff/obstore-0.11.1-cp311-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:67b8acfbbab960c2cb14c34294a96556caa67fcff15ee77c716d5c1bd1558606", size = 5790855, upload-time = "2026-08-21T23:56:46.391Z" },+ { url = "https://files.pythonhosted.org/packages/c1/5c/94ece1c902ff5cdbe1140997d1f720221a0d5defa902fdd93715297604f5/obstore-0.11.1-cp311-abi3-win_amd64.whl", hash = "sha256:e23ea15cebe5f5be5d11005043d7b5ff56848e39499681ef52f8227bd385bd51", size = 5308846, upload-time = "2026-08-21T23:56:47.774Z" },+ { url = "https://files.pythonhosted.org/packages/c0/af/235730a429e55777f15f9d7fef118a6ecf02f430ed4588deb4b7e13964aa/obstore-0.11.1-cp314-cp314t-macosx_10_12_x86_64.whl", hash = "sha256:73284fc8a9804596baf4d80b55c0e71a6007487bfa28d6924acd85264d5be81f", size = 5424585, upload-time = "2026-08-21T23:56:49.532Z" },+ { url = "https://files.pythonhosted.org/packages/e3/3c/432ea70c061fc9401fe399391ed4f04dead4a4cf33ea7c9564ce0e299d24/obstore-0.11.1-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:8a3f93310422b153629af929d9e88d1fc826d5e32a456de4d3a1926a770ae09c", size = 4576791, upload-time = "2026-08-21T23:56:51.014Z" },+ { url = "https://files.pythonhosted.org/packages/43/c7/57dbdfa4ba5339b80fc755359bb232bdba7f82e92df6603ef383396b5f16/obstore-0.11.1-cp314-cp314t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:d666690f0a53ae3df4be2c18af6820369a74c9c5b8960e8760f0f8c9a8f15b36", size = 4992141, upload-time = "2026-08-21T23:56:52.46Z" },+ { url = "https://files.pythonhosted.org/packages/37/4b/d25a4c129250364b0ca927fbfca5146744fb3bb4de60ae9b302300cbdfef/obstore-0.11.1-cp314-cp314t-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:0844ab75c8413c0af2d0fd2d2f6aa42d166809b6ac4be478151cd946ce7e5d69", size = 5217707, upload-time = "2026-08-21T23:56:53.946Z" },+ { url = "https://files.pythonhosted.org/packages/4b/07/0a925c886639d6edce37aafb6eba0c86820cbc9dda42e91ddd784dbe059d/obstore-0.11.1-cp314-cp314t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:307b5f9d64a7c00cd13371e376c05e3914216bd0818a19ff2ae05bc0135e01dc", size = 5429440, upload-time = "2026-08-21T23:56:55.507Z" },+ { url = "https://files.pythonhosted.org/packages/5f/c0/38d188a00b9f2de30df26802dd5bc2ecaefdabb882fde786cff800ccf50f/obstore-0.11.1-cp314-cp314t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:6f89647953b4ea50bab3f66591f7f462cd454a5d2fbbeefd885716a2c54e13ce", size = 5308903, upload-time = "2026-08-21T23:56:56.924Z" },+ { url = "https://files.pythonhosted.org/packages/60/d3/815e5a7ca59f901b6d24fb01ad3af46de37dfdfd2971c019f914bdb7f65e/obstore-0.11.1-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:50de3116af69b6f1669cb443cc200ccdc1523a790a41f00854331b48f716cf8f", size = 5547007, upload-time = "2026-08-21T23:56:58.508Z" },+ { url = "https://files.pythonhosted.org/packages/9c/a1/ec4d2291b7eb15e7ddccb2f0646ce560b8a539df4b0ab94d916e7a15a61c/obstore-0.11.1-cp314-cp314t-manylinux_2_24_aarch64.whl", hash = "sha256:eae71e1c5944ade976ce8cd1e780bed9b5c31d6d4f89cb7263e8dcff78f6cd8e", size = 5330062, upload-time = "2026-08-21T23:56:59.954Z" },+ { url = "https://files.pythonhosted.org/packages/0a/09/a4a1301f2474f6569bbc0f2d337108ff2225d0b3d285894ed9a6dc953438/obstore-0.11.1-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:ff634b5edbbf76c56ae81397aa41500a66ad0aa48b1856dcc0cf31b159172dc0", size = 5539870, upload-time = "2026-08-21T23:57:01.485Z" },+ { url = "https://files.pythonhosted.org/packages/9e/8f/7dbbf935a07ff5375c33916307b77aef9d39bded35081530150822898010/obstore-0.11.1-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:cbe509350d66249fc9e65ece4e7b1855d650f18e477721887128452b95c44b24", size = 5222673, upload-time = "2026-08-21T23:57:03.023Z" },+ { url = "https://files.pythonhosted.org/packages/d5/89/4932b3dd7963a3a64fd532c30ccc836f0f4ede1a45bea9f12295299398e2/obstore-0.11.1-cp314-cp314t-musllinux_1_2_i686.whl", hash = "sha256:46122e585f48ab3f2e4fed51401a4e866279a3a3d1aee2372d598ab85ba2c539", size = 5335696, upload-time = "2026-08-21T23:57:04.439Z" },+ { url = "https://files.pythonhosted.org/packages/aa/ff/f3cf31ac4ebfa648dbd2c69774579fd5da4cf4b05fa1192405dafb6aeb38/obstore-0.11.1-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:7275e75228059b2b30772b2ba3e41562a4a92ebdd3a96619d300f98ef152119f", size = 5783641, upload-time = "2026-08-21T23:57:05.899Z" },+ { url = "https://files.pythonhosted.org/packages/51/31/b352db3450e700c2c51861d139fc92c3284f7e578ca306408b054f6b4a35/obstore-0.11.1-cp314-cp314t-win_amd64.whl", hash = "sha256:13bb0b6a40931ab2da93f93ad843865d483d95acec1bd586df79313daa5a50af", size = 5290060, upload-time = "2026-08-21T23:57:07.632Z" },+]+[[package]]name = "openai"version = "2.44.0"@@ -2525,6 +3026,22 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/1e/00/b46c6865b481ec0037931468cd97f649663c0b46743812de00644417a171/opentelemetry_instrumentation_agno-0.62.4-py3-none-any.whl", hash = "sha256:04f2aa6486450cd74c427f56136e0eb0d0a4ea1f33977344edfc3d9ef804870d", size = 8881, upload-time = "2026-09-29T10:43:14.201Z" },]+[[package]]+name = "opentelemetry-instrumentation-aiohttp-client"+version = "0.66b1"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "opentelemetry-api" },+ { name = "opentelemetry-instrumentation" },+ { name = "opentelemetry-semantic-conventions" },+ { name = "opentelemetry-util-http" },+ { name = "wrapt" },+]+sdist = { url = "https://files.pythonhosted.org/packages/85/fe/634d77a0109df609eb290d172ab57e45fe35a1ef2c277f3e1908267acaa1/opentelemetry_instrumentation_aiohttp_client-0.66b1.tar.gz", hash = "sha256:6f853dadc53916fd6af41413bcb627b3e36c4a01b581e03b61b2f8eb6031d69f", size = 18849, upload-time = "2026-10-06T17:36:12.072Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/7b/30/dd352a722a4b928b22363df249b38b6d173173d36b2eab6d04770fd7d348/opentelemetry_instrumentation_aiohttp_client-0.66b1-py3-none-any.whl", hash = "sha256:bb3d412ae30e83e0692c8e9b600c5990bdab736c7c048847461b4567d504078d", size = 13610, upload-time = "2026-10-06T17:35:13.651Z" },+]+[[package]]name = "opentelemetry-instrumentation-anthropic"version = "0.62.4"@@ -3122,7 +3639,7 @@ wheels = [[[package]]name = "pydantic"-version = "2.13.4"+version = "2.14.3"source = { registry = "https://pypi.org/simple" }dependencies = [{ name = "annotated-types" },@@ -3130,65 +3647,99 @@ dependencies = [{ 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" }+sdist = { url = "https://files.pythonhosted.org/packages/b4/fc/1203d011145c98ddce3cd2f505bb54375ef8d43223053df6bfcf3c746f46/pydantic-2.14.3.tar.gz", hash = "sha256:1054f237f4d4733e5a30e1e2333bd33a2004ab9ab1510bd053a9a31bb48e232d", size = 925636, upload-time = "2026-11-05T09:17:04.686Z" }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" },+ { url = "https://files.pythonhosted.org/packages/72/b8/b864503789ef5c58597d2a7b4adbee62c26440ab1e682581fc6838df8947/pydantic-2.14.3-py3-none-any.whl", hash = "sha256:3f7b347782ab7e4cf4c798496ae3a82787d9f21ec12676a9c564355eeef8daa8", size = 494071, upload-time = "2026-11-05T09:17:02.426Z" },][[package]]name = "pydantic-core"-version = "2.46.4"+version = "2.50.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/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" },+sdist = { url = "https://files.pythonhosted.org/packages/9c/0f/34f9ce4ba701dd0b815033ef94d99b56f66200e578ee6052aa3ac26f064e/pydantic_core-2.50.4.tar.gz", hash = "sha256:aead3b74b68396bf0feab5d57e050b730ded7df55853c1e048a87e00aaf033c6", size = 522249, upload-time = "2026-11-05T09:15:26.774Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/1b/21/39f8d97e7ea8e3083606ee9bb1d7f3ec70ded780bb6a872aad76c7eb08b2/pydantic_core-2.50.4-cp313-cp313-macosx_10_12_x86_64.whl", hash = "sha256:0f87ae9db5ba8d8de40dcb93982cf8dd544e6552a80d3345af51941cc2146b80", size = 2232841, upload-time = "2026-11-05T09:12:32.617Z" },+ { url = "https://files.pythonhosted.org/packages/90/a9/fc89a632331882c4cb91b949003418e6f5085ddcf2c9b875d499682bca91/pydantic_core-2.50.4-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:1239daaf063e62213ca1f34d96663900bd7510c42a786e843fd328af70e46445", size = 2108326, upload-time = "2026-11-05T09:12:34.419Z" },+ { url = "https://files.pythonhosted.org/packages/5d/6d/4f6d00e9e4ba2a7bfb206ae49cb32a3ea90c4d658e62f8775277d75e8291/pydantic_core-2.50.4-cp313-cp313-manylinux1_i686.manylinux_2_5_i686.whl", hash = "sha256:1afefe44ec042fbabfb4483ea258c04cf75ff4ff328d754f09b321fdaa232aca", size = 2256276, upload-time = "2026-11-05T09:12:36.212Z" },+ { url = "https://files.pythonhosted.org/packages/b3/b8/936cb0d85a4082e902c7397db0f05c4372eac08372c8bd2d0b43088fcf17/pydantic_core-2.50.4-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:a9ee990bf2cfbd81574c5d4f9f6c9d480a14b5b43d2c4f2ca13f4c6f48089394", size = 2125469, upload-time = "2026-11-05T09:12:37.913Z" },+ { url = "https://files.pythonhosted.org/packages/66/a1/f3b551ce233dcac73286b8b2ae45c23232a9f41c68663e2dcce4bb2dbcfa/pydantic_core-2.50.4-cp313-cp313-manylinux2014_armv7l.manylinux_2_17_armv7l.whl", hash = "sha256:ab2822bcdcefb54d1e8ca29f5e3ec3afe160fb794bb3a3a73b09d11ed2671104", size = 2196397, upload-time = "2026-11-05T09:12:39.725Z" },+ { url = "https://files.pythonhosted.org/packages/3d/93/a8a6e7e20826567a73e6f52416667698aa3de704804d7a49d25272246af4/pydantic_core-2.50.4-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:0001d6920e3a5d92758cda460d6dc9f918a78ad6d5d092f1c8b5395e6b775356", size = 2380442, upload-time = "2026-11-05T09:12:41.196Z" },+ { url = "https://files.pythonhosted.org/packages/aa/ba/921d90c9d8ddfa653a35a92f2bbdcd650a9493f5c43f39cdfe4c56659cfa/pydantic_core-2.50.4-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:ad92d255a165cde5f9882ff69699eaf5495e0a1f32e97566bbbb80f11e46781f", size = 2457747, upload-time = "2026-11-05T09:12:42.723Z" },+ { url = "https://files.pythonhosted.org/packages/2b/c0/1c8f2c8f1b03d3fe2fdd7962df8f5a744fe48c90b4c49615e4eb77d04141/pydantic_core-2.50.4-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:fb2bb5b557080da398b866408117d98fe9731a12334afd0cdff221b458cdc5dc", size = 2260946, upload-time = "2026-11-05T09:12:44.185Z" },+ { url = "https://files.pythonhosted.org/packages/07/ab/5b78a78f0c0f11c8b54fac214ed49cbb4795c34881aa5e5a15715917936f/pydantic_core-2.50.4-cp313-cp313-manylinux_2_31_riscv64.whl", hash = "sha256:92f8f63df729061bb14558ed740e7a222f6e2aa6c2e6a5bcfb4e706676562049", size = 2261921, upload-time = "2026-11-05T09:12:45.706Z" },+ { url = "https://files.pythonhosted.org/packages/b3/e8/dd5d154cf3401f836d8754fdc1b82ecadd37944e4355d855e5b54c7d8ae5/pydantic_core-2.50.4-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:2a60ec2a57ac3ef3767e526e9bf706ec75aa3d79c4ea134d9d4fcf7c62a297a7", size = 2298475, upload-time = "2026-11-05T09:12:47.183Z" },+ { url = "https://files.pythonhosted.org/packages/b7/49/af059d9c4483cba168b17e5f84f1090a3e4547a02fc7698ebc231d48298a/pydantic_core-2.50.4-cp313-cp313-musllinux_1_1_armv7l.whl", hash = "sha256:a2f8716344bbbd10443391be0b1f2003b34949e3c4e6883005c2bc498ab6b64b", size = 2473226, upload-time = "2026-11-05T09:12:48.785Z" },+ { url = "https://files.pythonhosted.org/packages/71/ba/4e8cc3064e8bc2ea272cf80dfc57fa4e455f6835c1def21609a9b4f94135/pydantic_core-2.50.4-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:b300a30304c4c6aeab03ed06809819d9eceacdd58441d3c7dffe41edfd006091", size = 2498764, upload-time = "2026-11-05T09:12:50.316Z" },+ { url = "https://files.pythonhosted.org/packages/bf/96/0878499cfa88eb0b07762b488d3cc1b64cb156a4905db99a0d12096b2e17/pydantic_core-2.50.4-cp313-cp313-win32.whl", hash = "sha256:ef8a9ddb2e2a4eae4abb72dc0710eca6c2726779b0664bd10c3ce9fcfaed8c4e", size = 2119158, upload-time = "2026-11-05T09:12:51.834Z" },+ { url = "https://files.pythonhosted.org/packages/e7/e0/95b651213e79ffe0cbee855590bf5cfdf8e3a0d90a7fc73a080e63f7cc38/pydantic_core-2.50.4-cp313-cp313-win_amd64.whl", hash = "sha256:4c29b8f2d6417069bb1f257e6b9113f5d64dc2f554cc200ea90b4fe2c5cdb733", size = 2262887, upload-time = "2026-11-05T09:12:53.282Z" },+ { url = "https://files.pythonhosted.org/packages/08/d3/c3801dc75844a0b13d000bd575bf1b3b3a8aca9f63d19e1809f69c9c5121/pydantic_core-2.50.4-cp313-cp313-win_arm64.whl", hash = "sha256:a0c5210d038418a115e7cf8706bfa611bd14add2f5787274dba45aadca3155e0", size = 2167878, upload-time = "2026-11-05T09:12:54.677Z" },+ { url = "https://files.pythonhosted.org/packages/ee/ed/c9a4982ac3bbc78f27498d9efb85b3dabd739a1724db53c35cc4c018e1de/pydantic_core-2.50.4-cp314-cp314-macosx_10_12_x86_64.whl", hash = "sha256:5c074454dc6d4f6f4ba6561a56bf33a14db7651d882a5a5321ba3ae8868e082d", size = 2236841, upload-time = "2026-11-05T09:12:56.111Z" },+ { url = "https://files.pythonhosted.org/packages/56/32/92c174c17bfc5fc52d0c064e6a7969a727731e25829ede752fba8bacce0f/pydantic_core-2.50.4-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:a4bb174bd65f795c39ad6642d9d5bdc43351b306b7d0a654ab0d0abb38be245f", size = 2108348, upload-time = "2026-11-05T09:12:57.638Z" },+ { url = "https://files.pythonhosted.org/packages/cb/cb/9f637d424a04d3edce7dd527da941950cce05a74b025eef3d54427b86c8e/pydantic_core-2.50.4-cp314-cp314-manylinux1_i686.manylinux_2_5_i686.whl", hash = "sha256:0ec20aca2b067369913716847f7dfe5f4dddf16a46965b7a70bbad5defaaba86", size = 2261331, upload-time = "2026-11-05T09:12:59.154Z" },+ { url = "https://files.pythonhosted.org/packages/91/ff/1117a3cccabb67305bd98d992a84eaf275939a9a043b4f14126ed7252e4f/pydantic_core-2.50.4-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:70dbc9f83c41f37a4faa62dae5203853847223a891da446f48ef2efcfd5df806", size = 2128667, upload-time = "2026-11-05T09:13:00.614Z" },+ { url = "https://files.pythonhosted.org/packages/93/45/6de1b4a6e8c415cd547f90d1408a711e7975116423e3eb3046061c62d7c7/pydantic_core-2.50.4-cp314-cp314-manylinux2014_armv7l.manylinux_2_17_armv7l.whl", hash = "sha256:3de6c2a4df2af0ac9ab4dc1488746fe8b1a90e27955d870d9edda3187d20092b", size = 2198183, upload-time = "2026-11-05T09:13:02.259Z" },+ { url = "https://files.pythonhosted.org/packages/d0/bd/c6e64c315d35cc0783a0ea033a3dca062bc368905d0217eab6f6f63007de/pydantic_core-2.50.4-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:3a48a5254d15a0ad050318bfc7a9566d4ec740118187e8f303e47a6840287eb7", size = 2386279, upload-time = "2026-11-05T09:13:03.988Z" },+ { url = "https://files.pythonhosted.org/packages/33/ab/0d56280c89d3841381e9c699c3fa80e3dd3288edf5e7fe4d149136835dca/pydantic_core-2.50.4-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:0af56dbf8822ba9f4efcbbfdc15478f8b6fb08f1609860cb50aa2cc8476b3c34", size = 2464343, upload-time = "2026-11-05T09:13:05.98Z" },+ { url = "https://files.pythonhosted.org/packages/56/9c/621ad8f88590a92a086b1168dce09369d9c5e079e2e635e6646d248af55b/pydantic_core-2.50.4-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:f1d62fb172db35c6478c9323da34ff37d1f3d37d7d44337a9d94ba8c583e5730", size = 2265388, upload-time = "2026-11-05T09:13:07.808Z" },+ { url = "https://files.pythonhosted.org/packages/f3/7b/cef68a667bf29b86e293a80a601d488a84c8f45508915ad6201fcfe1a798/pydantic_core-2.50.4-cp314-cp314-manylinux_2_31_riscv64.whl", hash = "sha256:5c1013647be741647895c102831dcf79c34209662dbb683df9efb864417ed7d5", size = 2267012, upload-time = "2026-11-05T09:13:09.273Z" },+ { url = "https://files.pythonhosted.org/packages/4b/9f/3ae4d163d8feda2b52de88b5cd96b1c40f79d11503003b061136d2ece6ab/pydantic_core-2.50.4-cp314-cp314-musllinux_1_1_aarch64.whl", hash = "sha256:aeb2e123cbf978a905e9f55155c1b8316fbbfa7cf64d04521fe174bab302d100", size = 2300478, upload-time = "2026-11-05T09:13:10.758Z" },+ { url = "https://files.pythonhosted.org/packages/e8/72/41881d31f6452430ed6792679c5391795910f0a27a6aebd424683e504ed6/pydantic_core-2.50.4-cp314-cp314-musllinux_1_1_armv7l.whl", hash = "sha256:523466eba8ee10f7480f3c2057563145978011c583130d2cc01fb1e7af808e25", size = 2474874, upload-time = "2026-11-05T09:13:12.188Z" },+ { url = "https://files.pythonhosted.org/packages/05/ef/099874dd6d5ca1e49987dea87eecc05610183249450b1fff883d87f1e8eb/pydantic_core-2.50.4-cp314-cp314-musllinux_1_1_x86_64.whl", hash = "sha256:c9e70012926e97069cdd09221861aff412aa94e4cac2e019055cdb79485b150c", size = 2502771, upload-time = "2026-11-05T09:13:13.981Z" },+ { url = "https://files.pythonhosted.org/packages/c6/07/a7d8615b8677bf69e24666bbce431299850c95a7b084649342582a1c3210/pydantic_core-2.50.4-cp314-cp314-pyemscripten_2026_0_wasm32.whl", hash = "sha256:e6da138a1ecc1341c8b788a5ee822670b03788e1f5decf7af9d461de6e508b8e", size = 1496509, upload-time = "2026-11-05T09:13:15.704Z" },+ { url = "https://files.pythonhosted.org/packages/ab/71/fdf2c25c3a4f89968263c1d896c933809ca8d2fb13443626648a17b2e296/pydantic_core-2.50.4-cp314-cp314-win32.whl", hash = "sha256:13b6dd62b5279f5b9d72f3bf918a35443ee8bd549241d9dc52d79a2c3b6d7016", size = 2122015, upload-time = "2026-11-05T09:13:17.09Z" },+ { url = "https://files.pythonhosted.org/packages/3a/9f/3554f0148b01ddaa5e678bf5fbce4679873534e5c0985cdf6c59c41dc9a9/pydantic_core-2.50.4-cp314-cp314-win_amd64.whl", hash = "sha256:b0cdb655fbd1562c2dfc9986f9103a106f7058cd0915afc6e656d4b1d73f3387", size = 2265109, upload-time = "2026-11-05T09:13:18.702Z" },+ { url = "https://files.pythonhosted.org/packages/ed/3c/196ef237d9ec5cca5ea9b773911dee1a387b9b1d4bfea05625b3e191a338/pydantic_core-2.50.4-cp314-cp314-win_arm64.whl", hash = "sha256:df1c174796cd63eb6b139f7daf783affe1f3ed659605850e843b24764c21bfc5", size = 2165745, upload-time = "2026-11-05T09:13:20.245Z" },+ { url = "https://files.pythonhosted.org/packages/36/12/0ee82a41a3995f0b531cf14e0b823dc2365ba4a22330670fccaa72753f12/pydantic_core-2.50.4-cp314-cp314t-macosx_10_12_x86_64.whl", hash = "sha256:edbca8789fd10f0de534b660a6b4c71f1fd18039679c918dad392ab044bb37e4", size = 2223917, upload-time = "2026-11-05T09:13:21.623Z" },+ { url = "https://files.pythonhosted.org/packages/90/2c/592f8404abbcc65a70e6a802d1dc8f11412af44913e5146cf5c345370074/pydantic_core-2.50.4-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:33b21f69540a12c2053cd1d95766d8bd9667a3897f7c712a642de8aa37eb0865", size = 2087372, upload-time = "2026-11-05T09:13:23.16Z" },+ { url = "https://files.pythonhosted.org/packages/ea/1d/c7111757c84b5b8c19b1e39ceb5e131e6e48e14169ec6004e0f8f28f43f3/pydantic_core-2.50.4-cp314-cp314t-manylinux1_i686.manylinux_2_5_i686.whl", hash = "sha256:ffb616d8d55965839670301dc3bae3abacff560a7e137a89056058a8a9da4d96", size = 2275190, upload-time = "2026-11-05T09:13:24.634Z" },+ { url = "https://files.pythonhosted.org/packages/3d/ae/6c49cc9b8e66e61adee782d1763894bf64a357cddae82f725059b85bdc98/pydantic_core-2.50.4-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:6c5687b59b6ba0f663c4f2f15470f68507d6b45ccd3a19ee6d224f95cbee70d8", size = 2110343, upload-time = "2026-11-05T09:13:26.168Z" },+ { url = "https://files.pythonhosted.org/packages/ed/39/0ee5261d1daa9ad526371181c13696add0565251b2823f6e00a9a9af397d/pydantic_core-2.50.4-cp314-cp314t-manylinux2014_armv7l.manylinux_2_17_armv7l.whl", hash = "sha256:c733087ecf7dde06b1d071679bfd5f3ba03266ba77814c1c7253bc48c9adedd9", size = 2207887, upload-time = "2026-11-05T09:13:27.681Z" },+ { url = "https://files.pythonhosted.org/packages/ac/b5/a0652c0e99590107e111088b6d059044380a787da9ffdd0b458ab4cd9453/pydantic_core-2.50.4-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:94733cb447c37b0ce6f71b39ca1288d5f966a084023a5617b4cc35a852586859", size = 2404171, upload-time = "2026-11-05T09:13:29.864Z" },+ { url = "https://files.pythonhosted.org/packages/a3/85/d49f0b8e09a0ffc40dcefb604f9e6020e0d61b51a5f64a504f382fa84c39/pydantic_core-2.50.4-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:b26f39a5be3cd91a2035818be3d0ffdf5282c3e1f5f53d3b80b7024021acee52", size = 2466049, upload-time = "2026-11-05T09:13:31.658Z" },+ { url = "https://files.pythonhosted.org/packages/e6/76/f2b04d7c53edfd8136053c812ea49914fbf4091196cb7baf9ea326fa2ff8/pydantic_core-2.50.4-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:c856e439a9d54d514e81a7131229ba151cdf81df7c408e0f6c89340e5003dfe2", size = 2262062, upload-time = "2026-11-05T09:13:33.806Z" },+ { url = "https://files.pythonhosted.org/packages/24/60/016f14cea883adc33df90b8df220df934de49ded9640f45c8e92bb298494/pydantic_core-2.50.4-cp314-cp314t-manylinux_2_31_riscv64.whl", hash = "sha256:cbf0777d54672990b10cb8ca9b0523499e182d7e2ea39f86b138519a902aa601", size = 2263713, upload-time = "2026-11-05T09:13:35.337Z" },+ { url = "https://files.pythonhosted.org/packages/f1/3f/b05828e978512973e7e215bab69e65e70d223d6309a17bf48084a50692f4/pydantic_core-2.50.4-cp314-cp314t-musllinux_1_1_aarch64.whl", hash = "sha256:edc17549ab592e33cfcaf285f047bb75fcd98f608aa9309af1187fd736ce9641", size = 2305044, upload-time = "2026-11-05T09:13:37.043Z" },+ { url = "https://files.pythonhosted.org/packages/91/c1/fca6c5f623ac45ba284713c614b30173aa0794899a0a457f866fa6f5e886/pydantic_core-2.50.4-cp314-cp314t-musllinux_1_1_armv7l.whl", hash = "sha256:23a9ba564b2db709ff16eca990992ba95a19069972b34bff87c81d4b473cd755", size = 2483506, upload-time = "2026-11-05T09:13:40.524Z" },+ { url = "https://files.pythonhosted.org/packages/94/c2/ec41f68d1208e53e1a73ead940c050c4316bbb555ba42676a5e949fd529e/pydantic_core-2.50.4-cp314-cp314t-musllinux_1_1_x86_64.whl", hash = "sha256:41f4f8ae714e4fea1d635880f8a1af715ecf080eed4d13c5b04a0f3210f9c61a", size = 2512832, upload-time = "2026-11-05T09:13:43.361Z" },+ { url = "https://files.pythonhosted.org/packages/43/22/58583b86309f70cce854e0e77c412839a56ac6c682d6060f5794afeff315/pydantic_core-2.50.4-cp314-cp314t-win32.whl", hash = "sha256:601fce6cea9ddeaa85329e12e7f351def38d233075f42a3012b9c48071b02941", size = 2101977, upload-time = "2026-11-05T09:13:45.735Z" },+ { url = "https://files.pythonhosted.org/packages/6b/28/193bc0994f7fe15f2874c1dfe2f3bc7872aed8283ffda2cf05fb9a5a06b4/pydantic_core-2.50.4-cp314-cp314t-win_amd64.whl", hash = "sha256:22e874666bdbd96d6bf629d32cd8ab376fedf1fd62585b52a42b9fa9fa6c20b6", size = 2240461, upload-time = "2026-11-05T09:13:48.38Z" },+ { url = "https://files.pythonhosted.org/packages/00/ed/5615cfdd5620a4926440eb1a2b73db0dc895824ba565ccaa8d9eb3a8e974/pydantic_core-2.50.4-cp314-cp314t-win_arm64.whl", hash = "sha256:71395a43da5584bb70556f380387e15f845c0dcf76373c1afbfa0025737576ac", size = 2168505, upload-time = "2026-11-05T09:13:50.762Z" },+ { url = "https://files.pythonhosted.org/packages/6d/9f/e6673535165d965a11c1d5339f53995f90234019827eaecb41a57e6e463d/pydantic_core-2.50.4-cp315-cp315-macosx_10_12_x86_64.whl", hash = "sha256:7ac2769a7ddd661e07e26c12220adc31b17014c48234b2a5a88993b8d4109e09", size = 2241950, upload-time = "2026-11-05T09:13:53.055Z" },+ { url = "https://files.pythonhosted.org/packages/6f/02/65951efadbf7826e6a270843f97e3da2ef726de2b6d9cd7c5dfa4c48807e/pydantic_core-2.50.4-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:930ad463d3fb7a340d323bcc496ec32dae469ec9974c29ff569f19806b6b03b4", size = 2112412, upload-time = "2026-11-05T09:13:55.309Z" },+ { url = "https://files.pythonhosted.org/packages/c9/d3/4fb6e2e4a9e4951f1e05b198366ed5330e0874e83d52077e8b985350fe0e/pydantic_core-2.50.4-cp315-cp315-manylinux1_i686.manylinux_2_5_i686.whl", hash = "sha256:b867f9fd183d76977f810c626d539265183c25b2284762893a31e8d6cacc81c0", size = 2263220, upload-time = "2026-11-05T09:13:57.555Z" },+ { url = "https://files.pythonhosted.org/packages/63/83/42e70436c523357b49393b73f161f2741acf36003c8efd2f941d2be56bae/pydantic_core-2.50.4-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:49eb1241a969a5994db6880c18c012b6cbe2340343d8f529721571806583e500", size = 2134716, upload-time = "2026-11-05T09:13:59.413Z" },+ { url = "https://files.pythonhosted.org/packages/36/66/ed9b87f4751fd07e472c62cfe151f575abdf4c452fab943d35ba8efdc6c4/pydantic_core-2.50.4-cp315-cp315-manylinux2014_armv7l.manylinux_2_17_armv7l.whl", hash = "sha256:477af785d1846e4e96bf56983b92ea7553aaeccdeb8acdaa55c7cee9eda0ae32", size = 2201901, upload-time = "2026-11-05T09:14:01.472Z" },+ { url = "https://files.pythonhosted.org/packages/2b/21/ff2e6ac7202b6d326e9f007c6082f6e6f3aaa063790ea2a355bdc985addc/pydantic_core-2.50.4-cp315-cp315-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:29358a8ca74e7d81158d14e2b10c904bd18773293ae3788716c0626fe0342347", size = 2389670, upload-time = "2026-11-05T09:14:03.431Z" },+ { url = "https://files.pythonhosted.org/packages/b9/34/e9348bc13d549641791a51843ed140fbb311d9066628e27477343412d5ad/pydantic_core-2.50.4-cp315-cp315-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:300753f71c73302e218124baf995f00058e085cd01869bd9610bcbd0bd4500c1", size = 2468951, upload-time = "2026-11-05T09:14:05.028Z" },+ { url = "https://files.pythonhosted.org/packages/ac/5e/145a02bf2b9f66981108caf6cc9e78917e31e4caca14d1e3ccd3ff2c7293/pydantic_core-2.50.4-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:26cb012c4b8ca9f847bd0ac15978bd3d0f55b050bfbe6c47355edfc7e945029b", size = 2272957, upload-time = "2026-11-05T09:14:06.587Z" },+ { url = "https://files.pythonhosted.org/packages/fd/38/b71c5b245e923f6cf144e948ed2a9d6b7fb97d8905784db8d860f5176b8b/pydantic_core-2.50.4-cp315-cp315-manylinux_2_31_riscv64.whl", hash = "sha256:9be1cfe715ecaa060ffd5d599ef410b94ef2697a0eed4cee562f788a2aa2175b", size = 2275028, upload-time = "2026-11-05T09:14:08.219Z" },+ { url = "https://files.pythonhosted.org/packages/ba/71/2504dacdc5cd3ea3ec5e68c9b6e097c979500bcff220b97046cc8ea3c1ad/pydantic_core-2.50.4-cp315-cp315-musllinux_1_1_aarch64.whl", hash = "sha256:c81e35862aced259177a537ce1a6264c3a97bae1ced184ca9dc10ea754563688", size = 2305447, upload-time = "2026-11-05T09:14:09.795Z" },+ { url = "https://files.pythonhosted.org/packages/2c/90/904233a6c148bcac9f30bb96a2761e5fb52682d0d6de31a40c74a3714ceb/pydantic_core-2.50.4-cp315-cp315-musllinux_1_1_armv7l.whl", hash = "sha256:b2f2d13239487cecaae98c9f4d5904ad0737643cdf8873c88ec6a78b12214f20", size = 2477852, upload-time = "2026-11-05T09:14:11.443Z" },+ { url = "https://files.pythonhosted.org/packages/72/33/1cbdcbf343ca23b507e967b21dddc4c8bf17a74c8b5cad59228c85ba4efc/pydantic_core-2.50.4-cp315-cp315-musllinux_1_1_x86_64.whl", hash = "sha256:e6b4b08d09054310a4dc389fa61ee22a7a5a292cb23ab8a985136ca8828bf924", size = 2506352, upload-time = "2026-11-05T09:14:13.165Z" },+ { url = "https://files.pythonhosted.org/packages/91/24/3ad9ea0876e6624c90967e5f1446e751b275cfdfaaf798a0d8e0b30025bc/pydantic_core-2.50.4-cp315-cp315-win32.whl", hash = "sha256:6619d49a89a15cd04334f76fec530c155923bfc60da74ff5d815a52629e1aa6c", size = 2127780, upload-time = "2026-11-05T09:14:17.52Z" },+ { url = "https://files.pythonhosted.org/packages/c0/3c/0582532b90a12492471977bdbca1317eca5144f6342ea581d2cee73ccd35/pydantic_core-2.50.4-cp315-cp315-win_amd64.whl", hash = "sha256:e5bd109d095aaae989a0463d5ef0fcc43e9ddd5de125e656d3c119a79e466380", size = 2270596, upload-time = "2026-11-05T09:14:20.955Z" },+ { url = "https://files.pythonhosted.org/packages/6c/50/967cfe4f7043a993c0c80cd3563c598b5281d2276aa775d0f6ff7f714271/pydantic_core-2.50.4-cp315-cp315-win_arm64.whl", hash = "sha256:6118e5a5550e36582e19bac1a403711a748f9f18251b054c326d3db02aaa7a18", size = 2170880, upload-time = "2026-11-05T09:14:24.822Z" },+ { url = "https://files.pythonhosted.org/packages/9e/71/3ec5bd8a82f792482f16d79fdbe8ce85aa71bf7147e556c5fc5f8546818d/pydantic_core-2.50.4-cp315-cp315t-macosx_10_12_x86_64.whl", hash = "sha256:d8201c9f9035520cdcc7dcad383b039ec8123969b87e01cf27c3dd883c02313b", size = 2233053, upload-time = "2026-11-05T09:14:27.942Z" },+ { url = "https://files.pythonhosted.org/packages/6e/2e/614dc37aedf8e9f811c1f2eedaf8eb09a7c196e2d137fe82bcc9d5662ca2/pydantic_core-2.50.4-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:1de7be9a66fc8536770481ab64a05aae5067c725f2b29a09543af00e6a417b97", size = 2090776, upload-time = "2026-11-05T09:14:30.281Z" },+ { url = "https://files.pythonhosted.org/packages/f9/14/aefc14e3e05013070ee959fc0b8703f6860a2776ed6e75b9c748f61aced0/pydantic_core-2.50.4-cp315-cp315t-manylinux1_i686.manylinux_2_5_i686.whl", hash = "sha256:789a6453e5ffd18a7ab6b8c3a0dd8403053829197ec258ecb90c604c21ffcc99", size = 2272481, upload-time = "2026-11-05T09:14:32.578Z" },+ { url = "https://files.pythonhosted.org/packages/13/c9/d56999aa7236dc9303091db2b1ef7303f0b022baf25ebf33cd200c0cb933/pydantic_core-2.50.4-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:6348ad12fa741bcc9c2f173e99fbf27cbc038826d8c31a4a7d836eca27878ba2", size = 2113069, upload-time = "2026-11-05T09:14:34.69Z" },+ { url = "https://files.pythonhosted.org/packages/b7/d5/a62da9e72f272f198f6118c5457332bbd4b9fdc4b77858448120569756de/pydantic_core-2.50.4-cp315-cp315t-manylinux2014_armv7l.manylinux_2_17_armv7l.whl", hash = "sha256:d49127f137f871cde3c5650af33bbbdcee02679dae76e020902fa106f522b8ae", size = 2202754, upload-time = "2026-11-05T09:14:36.49Z" },+ { url = "https://files.pythonhosted.org/packages/37/4a/e7f21577f96e42ac3082cd014df398c1c913d482afac1c8ef17b9e039198/pydantic_core-2.50.4-cp315-cp315t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:2f5cc5bcb94063fbbdfd285a2b302da34af07491337c10bb35de1d5220fa1583", size = 2411472, upload-time = "2026-11-05T09:14:38.63Z" },+ { url = "https://files.pythonhosted.org/packages/38/ad/c57c5e13bbfd3404ec1af519764aadbc52ee01e39f9f9ae9d28317f982f2/pydantic_core-2.50.4-cp315-cp315t-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:b99bed995ed7c41515c11fe2beb86f8a6cc298e5537cae2f736de2f982f74ef0", size = 2475330, upload-time = "2026-11-05T09:14:40.519Z" },+ { url = "https://files.pythonhosted.org/packages/6e/63/65cf0e1f1fd8cfaafee3c005712b8020e063b0f3e3571493ea68db5ec44f/pydantic_core-2.50.4-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:faa4e96385c820ce9d7f7a623486e23d4134ae3c9ba2071e44e0ab5a5a5002c4", size = 2265718, upload-time = "2026-11-05T09:14:42.379Z" },+ { url = "https://files.pythonhosted.org/packages/72/5d/fd9fdec9b25e2ef1f788970a84f749f0e28f166573c87654fd5387d8e5ce/pydantic_core-2.50.4-cp315-cp315t-manylinux_2_31_riscv64.whl", hash = "sha256:d6a166978f22f10cb91413f70519861605219346decf65bc79008f9257c94afe", size = 2273454, upload-time = "2026-11-05T09:14:44.286Z" },+ { url = "https://files.pythonhosted.org/packages/34/8c/19705c6d5eb72ff8c25006df8a375da7466176a5968781789e5415384f65/pydantic_core-2.50.4-cp315-cp315t-musllinux_1_1_aarch64.whl", hash = "sha256:a70d5effebd81ebd8e15a8aabdc7980832367b2b00c36543bac378977004cc80", size = 2314862, upload-time = "2026-11-05T09:14:45.97Z" },+ { url = "https://files.pythonhosted.org/packages/b8/fb/acefa27031aba2646b0d3026c4a1602e526489d39395ab17bc47f03234e3/pydantic_core-2.50.4-cp315-cp315t-musllinux_1_1_armv7l.whl", hash = "sha256:f8fd23653a252cefabea11cd041efd7b80bdf403e43a36dea53f9cb0aaa21f0f", size = 2479073, upload-time = "2026-11-05T09:14:47.526Z" },+ { url = "https://files.pythonhosted.org/packages/ef/e1/db08fa1e5edf1779fa0612f8d09f9030bdc513f593687c883cb781b86caa/pydantic_core-2.50.4-cp315-cp315t-musllinux_1_1_x86_64.whl", hash = "sha256:7646353a5a7c553c04167aca628e2550b538f492765b03ccf34321a560acc43c", size = 2521328, upload-time = "2026-11-05T09:14:49.042Z" },+ { url = "https://files.pythonhosted.org/packages/0d/51/bf1ec5b96c076d8d514b08f3bcffb3397df7a0fcc729eb960838a8bbe27f/pydantic_core-2.50.4-cp315-cp315t-win32.whl", hash = "sha256:65376dbe1ab4dbc768ca2b72b7c13993562c035f5925fd3bc7ff9c8c585c515d", size = 2107629, upload-time = "2026-11-05T09:14:50.891Z" },+ { url = "https://files.pythonhosted.org/packages/18/32/43d5db1824ec2314f737ff8d9962ff59954a74616d8656a8cc78790e45f1/pydantic_core-2.50.4-cp315-cp315t-win_amd64.whl", hash = "sha256:f08ee8248aad2d054e5bc4c73554d4505464698f6d754f16198dbc5764e9821d", size = 2244906, upload-time = "2026-11-05T09:14:53.056Z" },+ { url = "https://files.pythonhosted.org/packages/3a/c0/38c505004969c4641c3a077a8e72e354f02d5c06d8f51d7a103699704772/pydantic_core-2.50.4-cp315-cp315t-win_arm64.whl", hash = "sha256:da779ae50b46f3f7d1e1b5f362fdc0ad376a49fd55f6f3122dc2b6149936cdf7", size = 2179018, upload-time = "2026-11-05T09:14:54.448Z" },+ { url = "https://files.pythonhosted.org/packages/9e/3a/d405a50e02ea81cd95e93fc97f43d351eeaa1707c28aa6fb58a9f1c1efa9/pydantic_core-2.50.4-graalpy313-graalpy253_313_native-macosx_11_0_arm64.whl", hash = "sha256:71e03d2ea1a221d020cfc5b6cc8bbbedef23a06704c70fcf4d0afb42965b22d1", size = 2049324, upload-time = "2026-11-05T09:15:02.379Z" },+ { url = "https://files.pythonhosted.org/packages/8f/3b/03e7992115e17cae4131ecd71aadb8fd5e4a04cc2aead72c3c27e9b453d1/pydantic_core-2.50.4-graalpy313-graalpy253_313_native-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:09450778e3ab58d3f565899fcfbf6c82926e31af29e28e799d1d50941316e0cb", size = 2119802, upload-time = "2026-11-05T09:15:03.901Z" },+ { url = "https://files.pythonhosted.org/packages/e3/d5/b76fc647e473377ca6e693c21549ee3a4a7677e4962c28ae4659337c5114/pydantic_core-2.50.4-graalpy313-graalpy253_313_native-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:4eb15be588407148ef5937dc8d9256a71f6b115e6cddadb7aa20b6ee384680dc", size = 2280639, upload-time = "2026-11-05T09:15:05.374Z" },][[package]]@@ -3240,6 +3791,15 @@ crypto = [{ name = "cryptography" },]+[[package]]+name = "pyparsing"+version = "3.3.3"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/e4/11/b213bebff182584360cb8d17c72c1677fec5c5c228de439e63bcf8ab1c8f/pyparsing-3.3.3.tar.gz", hash = "sha256:928ae7e20211f3b6f3915a72f06a0cfd29ab9d24279dd6346b6b1a7146397d36", size = 1050487, upload-time = "2026-09-20T20:59:05.609Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/38/bb/d215ee7c73b61497b28a5503f9f53523f294fcc936762b7caf90e0c1c2b5/pyparsing-3.3.3-py3-none-any.whl", hash = "sha256:ece8c00a69cf01b45d0b1dedabb469c90d8caf996d4fda40f147627a122849a4", size = 126420, upload-time = "2026-09-20T20:59:04.025Z" },+]+[[package]]name = "pypdfium2"version = "5.13.0"@@ -3417,6 +3977,18 @@ 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-engineio"+version = "4.15.1"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "simple-websocket" },+]+sdist = { url = "https://files.pythonhosted.org/packages/dd/91/b565807fa922620ed575b412bf978d032e4c5d79558b400fdbfe1008c95a/python_engineio-4.15.1.tar.gz", hash = "sha256:1a412e798a90c64fabe7b20798939ae6d4a03f34da8a33d5a21a25a8bbbc3612", size = 93104, upload-time = "2026-10-28T23:53:30.846Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/38/5c/552f1dce2443dc33ce6b2ee7f67599ba5c83ef5582e2235a9878ac239049/python_engineio-4.15.1-py3-none-any.whl", hash = "sha256:745cb3c07701c719a2906439a00b67e44ef042904036568530a2c3a8cf18c89a", size = 60775, upload-time = "2026-10-28T23:53:29.304Z" },+]+[[package]]name = "python-json-logger"version = "4.1.0"@@ -3435,6 +4007,28 @@ 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 = "python-socketio"+version = "5.18.1"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "bidict" },+ { name = "python-engineio" },+]+sdist = { url = "https://files.pythonhosted.org/packages/71/b9/4ab083267c1f8ece9a9e019808412af7c7a03321411a1263cd863321baa2/python_socketio-5.18.1.tar.gz", hash = "sha256:07ab0e7c94a52833a67af1dc05958ad6fb0de69adc87de9198a61b22588c40d4", size = 132106, upload-time = "2026-11-03T12:19:20.723Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/79/e2/cdc630aef7da00698af4ed061ff873297f806cc049cc5c67bf89077cb7e4/python_socketio-5.18.1-py3-none-any.whl", hash = "sha256:e768c473842be811f6dd24bd0a49cd0d4a0c994182e3eba23cc9d1489c7a697e", size = 83022, upload-time = "2026-11-03T12:19:19.136Z" },+]++[package.optional-dependencies]+asyncio-client = [+ { name = "aiohttp" },+]+client = [+ { name = "requests" },+ { name = "websocket-client" },+]+[[package]]name = "pytz"version = "2026.2"@@ -3975,6 +4569,18 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/2e/86/0f4a39a50fcf510753b7abd98b728e66c14fefe89bad9ef5824745bf7b9f/simhash-2.1.2-py3-none-any.whl", hash = "sha256:968de16c82c227a631aa00e57ab58f9e4ee9e47e8408486199a9eb59c1d6979b", size = 4714, upload-time = "2022-03-03T01:24:22.255Z" },]+[[package]]+name = "simple-websocket"+version = "1.1.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "wsproto" },+]+sdist = { url = "https://files.pythonhosted.org/packages/b0/d4/bfa032f961103eba93de583b161f0e6a5b63cebb8f2c7d0c6e6efe1e3d2e/simple_websocket-1.1.0.tar.gz", hash = "sha256:7939234e7aa067c534abdab3a9ed933ec9ce4691b0713c78acb195560aa52ae4", size = 17300, upload-time = "2024-10-10T22:39:31.412Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/52/59/0782e51887ac6b07ffd1570e0364cf901ebc36345fea669969d2084baebb/simple_websocket-1.1.0-py3-none-any.whl", hash = "sha256:4af6069630a38ed6c561010f0e11a5bc0d4ca569b36306eb257cd9a192497c8c", size = 13842, upload-time = "2024-10-10T22:39:29.645Z" },+]+[[package]]name = "six"version = "1.17.0"@@ -4381,23 +4987,23 @@ wheels = [[[package]]name = "typing-extensions"-version = "4.15.0"+version = "4.16.0"source = { registry = "https://pypi.org/simple" }-sdist = { url = "https://files.pythonhosted.org/packages/72/94/1a15dd82efb362ac84269196e94cf00f187f7ed21c242792a923cdb1c61f/typing_extensions-4.15.0.tar.gz", hash = "sha256:0cea48d173cc12fa28ecabc3b837ea3cf6f38c6d1136f85cbaaf598984861466", size = 109391, upload-time = "2025-08-25T13:49:26.313Z" }+sdist = { url = "https://files.pythonhosted.org/packages/f6/cc/6253133b5bb138fc3306cebfbda2c520f545d36b5be2c7255cc528bb45d6/typing_extensions-4.16.0.tar.gz", hash = "sha256:dc983d19a509c94dba722ee6abd33940f7c05a89e243c47e907eb4db6f1a43e5", size = 113555, upload-time = "2026-07-02T08:40:05.92Z" }wheels = [- { url = "https://files.pythonhosted.org/packages/18/67/36e9267722cc04a6b9f15c7f3441c2363321a3ea07da7ae0c0707beb2a9c/typing_extensions-4.15.0-py3-none-any.whl", hash = "sha256:f0fa19c6845758ab08074a0cfa8b7aecb71c999ca73d62883bc25cc018c4e548", size = 44614, upload-time = "2025-08-25T13:49:24.86Z" },+ { 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"+version = "0.4.5"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" }+sdist = { url = "https://files.pythonhosted.org/packages/ff/50/0195198eb1d75bab716bb0a813abea4cc394bfa17a92a189f021a34859af/typing_inspection-0.4.5.tar.gz", hash = "sha256:7f16c411e7930dc79596d42ab44672a3fe5f60eb34b781a1647e7872363120c7", size = 81194, upload-time = "2026-11-04T14:13:23.774Z" }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" },+ { url = "https://files.pythonhosted.org/packages/de/0c/ea2544850a7c135e15033a5c7a8e7211136184b7ae63e2239d557c2b3019/typing_inspection-0.4.5-py3-none-any.whl", hash = "sha256:bc210535442b39e1bf2805e0c7a17dfd6a4ace760c84c7f7d16245d23a6b1c39", size = 14874, upload-time = "2026-11-04T14:13:22.616Z" },][[package]]@@ -4638,6 +5244,15 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/bd/6e/95b0e537de1f4d4301f76f944642c6da50d1511cc7b3d64dc418a66c7509/wcwidth-0.8.1-py3-none-any.whl", hash = "sha256:f453740b1e4a4f3291faa37944c555d71056c4da08d59809b307ef4feba695c8", size = 323092, upload-time = "2026-06-08T05:57:21.413Z" },]+[[package]]+name = "websocket-client"+version = "1.9.2"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/d8/cb/a5abcc2891249f393827c650c6296660ce40374ac22d99ab9aea41f9d2a2/websocket_client-1.9.2.tar.gz", hash = "sha256:0fcb57545848be86992e128218fd96dd87a6769ffdb1a968dff79632b85604d0", size = 84110, upload-time = "2026-08-31T14:08:40.964Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/d5/d2/cc4dc1271e464942db7ee278baae2daa99ee77cb2af744025c04da585a3e/websocket_client-1.9.2-py3-none-any.whl", hash = "sha256:e1a673830a9c7bfa47b1cd3d5e4178f4c9651d80a4eab02c9c23a1c3ec6250ce", size = 95786, upload-time = "2026-08-31T14:08:39.899Z" },+]+[[package]]name = "websockets"version = "16.0"@@ -4754,6 +5369,18 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/87/7d/5ed859fad4b5eddd598a846150aaab2703730ed4886c5c5e03b0df0cfdd5/wrapt-2.5.0-py3-none-any.whl", hash = "sha256:107eea1a511e98a3a5033b0c2cb403fbb37f05dee6ac1fb85c0460d311ec278c", size = 81586, upload-time = "2026-09-27T01:41:55.479Z" },]+[[package]]+name = "wsproto"+version = "1.3.2"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "h11" },+]+sdist = { url = "https://files.pythonhosted.org/packages/c7/79/12135bdf8b9c9367b8701c2c19a14c913c120b882d50b014ca0d38083c2c/wsproto-1.3.2.tar.gz", hash = "sha256:b86885dcf294e15204919950f666e06ffc6c7c114ca900b060d6e16293528294", size = 50116, upload-time = "2025-11-20T18:18:01.871Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/a4/f5/10b68b7b1544245097b2a1b8238f66f2fc6dcaeb24ba5d917f52bd2eed4f/wsproto-1.3.2-py3-none-any.whl", hash = "sha256:61eea322cdf56e8cc904bd3ad7573359a242ba65688716b0710a5eb12beab584", size = 24405, upload-time = "2025-11-20T18:18:00.454Z" },+]+[[package]]name = "yarl"version = "1.25.1"