JiuwenSwarm is an intelligent AI Agent built on openJiuwen. It extends the powerful capabilities of large language models directly to your fingertips through various communication apps you use daily.
Python
feat(jiuwenbox): add jiuwenbox sandbox for fs, code and shell operation
zhaozixuan326595f568bc
diff --git a/jiuwenbox/README.md b/jiuwenbox/README.mdnew file mode 100644index 0000000000..7aeb408678--- /dev/null+++ b/jiuwenbox/README.md@@ -0,0 +1,285 @@+# jiuwenbox++`jiuwenbox` is a lightweight Linux sandbox service for running agent tools and+code snippets with layered isolation.++It exposes a FastAPI server for sandbox lifecycle management, file transfer,+file listing/search, and command execution. Each sandbox command is launched+through a small supervisor process that applies the configured isolation policy.++## Features++- Process isolation with `bubblewrap`+- Static policy-based filesystem access rules+- Configurable sandbox backing workspace through `sandbox_workspace`+- Optional network isolation with Linux network namespaces and firewall rules+- Namespace and Linux capability controls+- Landlock filesystem enforcement when supported by the kernel+- Seccomp syscall filtering+- Python and JavaScript execution support when the corresponding runtimes exist+- Audit logging and persisted sandbox lifecycle state++## Architecture++- `server`+ - FastAPI app that manages sandbox lifecycle, policy loading, audit logs, and+ API routing.+- `server/runtime`+ - Runtime adapter that starts one supervisor process per sandbox command.+- `supervisor`+ - Per-command launcher that translates the effective policy into+ `bubblewrap`, Landlock, seccomp, and namespace settings.+- `models`+ - Pydantic models for policies, sandboxes, API responses, and common status+ structures.++## Layout++```text+configs/+ default-policy.yaml+ jiuwenclaw-policy.yaml+docker/+scripts/+ server.sh+ test.sh+src/jiuwenbox/+ models/+ server/+ supervisor/+tests/+ integration/+```++## Requirements++- Linux+- Python 3.11++- `bubblewrap`+- `iproute2` and `iptables` when `network.mode: isolated` is used+- Kernel support for Landlock and seccomp when those features are enabled+- `nodejs` if JavaScript execution is needed++On Ubuntu:++```bash+sudo apt-get update+sudo apt-get install -y bubblewrap iproute2 iptables python3-pip nodejs+```++## Install++```bash+cd jiuwenclaw/jiuwenbox+uv venv+source .venv/bin/activate+uv sync+```++## Start The Server++### Local Start++`scripts/server.sh` accepts a policy file as the first positional argument.+The path is resolved relative to the caller's current directory and then passed+to the server as an absolute path.++```bash+sudo ./scripts/server.sh+sudo ./scripts/server.sh configs/default-policy.yaml+sudo ./scripts/server.sh configs/jiuwenclaw-policy.yaml 9000+```++The default port is `8321`. A numeric second positional argument overrides the+port. Additional arguments are forwarded to `uvicorn`.++The selected policy path is exported as:++```bash+JIUWENBOX_DEFAULT_POLICY_PATH=/absolute/path/to/policy.yaml+```++The port can also be set through:++```bash+JIUWENBOX_PORT=9000 sudo ./scripts/server.sh configs/default-policy.yaml+```++### Docker Start++Build the image:++```bash+cd jiuwenclaw/jiuwenbox/docker+sudo ./build_docker.sh+```++Run with the default policy:++```bash+sudo ./run_docker.sh+```++The Docker image starts `./scripts/server.sh` by default.++## Policy Files++The server loads one static default policy at startup. Policy dynamic update is+not enabled.++Important fields:++- `sandbox_workspace`+ - Host directory used for server-managed sandbox backing storage.+ - The value must be absolute after `~` and environment variables are expanded.+- `filesystem_policy.directories`+ - Directories created by the server and bound into each sandbox for its+ lifecycle.+- `filesystem_policy.read_only`+ - Sandbox-visible paths mounted read-only.+- `filesystem_policy.read_write`+ - Sandbox-visible paths mounted read-write.+- `filesystem_policy.bind_mounts`+ - Explicit host-to-sandbox bind mounts.++Path fields support shell-style expansion such as `~` and environment+variables.++Minimal example:++```yaml+version: 1+name: "example"+sandbox_workspace: "/sandbox"++filesystem_policy:+ directories:+ - path: "/tmp"+ permissions: "1777"+ read_only:+ - "/usr"+ - "/lib"+ - "/lib64"+ - "/etc"+ read_write:+ - "/tmp"+ bind_mounts: []++process:+ run_as_user: sandbox+ run_as_group: sandbox++namespace:+ user: true+ pid: true+ ipc: true+ cgroup: true+ uts: true++capabilities:+ add: []+ drop: []++landlock:+ compatibility: best_effort++syscall:+ blocked:+ - "ptrace"+ - "mount"+ - "umount2"+ - "reboot"+ - "kexec_load"++network:+ mode: isolated+ egress:+ default: allow+ allowed_domains: []+ blocked_domains: []+ allowed_ips:+ - "127.0.0.1/32"+ - "::1/128"+ blocked_ips: []+ allowed_ports:+ - 443+ - 80+ blocked_ports:+ - 22+ ingress:+ default: deny+ allowed_domains: []+ blocked_domains: []+ allowed_ips:+ - "127.0.0.1/32"+ - "::1/128"+ blocked_ips: []+ allowed_ports: []+ blocked_ports:+ - 22+```++## API Examples++Create a sandbox:++```bash+curl -sS -X POST http://127.0.0.1:8321/api/v1/sandboxes \+ -H 'Content-Type: application/json' \+ -d '{"command":["/usr/bin/python3","-c","import time; time.sleep(3600)"]}'+```++Run a command:++```bash+curl -sS -X POST http://127.0.0.1:8321/api/v1/sandboxes/<sandbox-id>/exec \+ -H 'Content-Type: application/json' \+ -d '{"command":["/usr/bin/python3","-c","print(\"hello\")"],"workdir":"/tmp"}'+```++Upload a file:++```bash+curl -sS -X POST \+ 'http://127.0.0.1:8321/api/v1/sandboxes/<sandbox-id>/upload?sandbox_path=/tmp/input.txt' \+ -F '[email protected]'+```++Download a file:++```bash+curl -sS \+ 'http://127.0.0.1:8321/api/v1/sandboxes/<sandbox-id>/download?sandbox_path=/tmp/input.txt'+```++Delete a sandbox:++```bash+curl -sS -X DELETE http://127.0.0.1:8321/api/v1/sandboxes/<sandbox-id>+```++## Run Integration Tests++```bash+./scripts/test.sh+```++Run one policy-specific integration suite:++```bash+./scripts/test.sh default # jiuwenbox runs the service using default-policy.yaml as the security policy.+./scripts/test.sh jiuwenclaw # jiuwenbox runs the service using jiuwenclaw-policy.yaml as the security policy.+```++## Notes++- Restart the server after changing the startup policy file.+- Existing sandboxes keep the policy that was written for them when they were+ created.+- Command stderr is returned as command output by the `/exec` API; server-side+ diagnostics should use debug logging when they would otherwise pollute+ command stderr.++## License++Apache-2.0diff --git a/jiuwenbox/README_CN.md b/jiuwenbox/README_CN.mdnew file mode 100644index 0000000000..4c5781e738--- /dev/null+++ b/jiuwenbox/README_CN.md@@ -0,0 +1,277 @@+# jiuwenbox++`jiuwenbox` 是一个轻量级 Linux 沙箱服务,用于在分层隔离环境中运行+agent 工具和代码片段。++它提供一个 FastAPI 服务,用于管理沙箱生命周期、文件传输、文件+列表/搜索以及命令执行。每个沙箱命令都会通过一个小型 supervisor+进程启动,由 supervisor 根据配置好的隔离策略应用沙箱限制。++## 功能特性++- 基于 `bubblewrap` 的进程隔离+- 基于静态 policy 的文件系统访问控制+- 通过 `sandbox_workspace` 配置沙箱后端工作目录+- 可选的 Linux 网络命名空间和防火墙网络隔离+- 命名空间和 Linux capability 控制+- 在内核支持时启用 Landlock 文件系统约束+- Seccomp 系统调用过滤+- 在运行时存在时支持 Python 和 JavaScript 代码执行+- 审计日志和持久化的沙箱生命周期状态++## 架构++- `server`+ - FastAPI 应用,负责沙箱生命周期管理、policy 加载、审计日志和 API 路由。+- `server/runtime`+ - 运行时适配层,负责为每个沙箱命令启动一个 supervisor 进程。+- `supervisor`+ - 每条命令的启动器,负责将生效的 policy 转换为 `bubblewrap`、Landlock、+ seccomp 和命名空间配置。+- `models`+ - 基于 Pydantic 的 policy、沙箱、API 响应和通用状态结构模型。++## 目录结构++```text+configs/+ default-policy.yaml+ jiuwenclaw-policy.yaml+docker/+scripts/+ server.sh+ test.sh+src/jiuwenbox/+ models/+ server/+ supervisor/+tests/+ integration/+```++## 环境要求++- Linux+- Python 3.11++- `bubblewrap`+- 使用 `network.mode: isolated` 时需要 `iproute2` 和 `iptables`+- 启用 Landlock 和 seccomp 时需要内核支持对应能力+- 如果需要执行 JavaScript,则需要 `nodejs`++Ubuntu 安装示例:++```bash+sudo apt-get update+sudo apt-get install -y bubblewrap iproute2 iptables python3-pip nodejs+```++## 安装++```bash+cd jiuwenclaw/jiuwenbox+uv venv+source .venv/bin/activate+uv sync+```++## 启动服务++### 本地启动++`scripts/server.sh` 将第一个位置参数作为 policy 文件路径。该路径会按照+调用脚本时所在的当前目录进行解析,然后转换为绝对路径传给服务。++```bash+sudo ./scripts/server.sh+sudo ./scripts/server.sh configs/default-policy.yaml+sudo ./scripts/server.sh configs/jiuwenclaw-policy.yaml 9000+```++默认端口是 `8321`。第二个位置参数如果是数字,则会作为端口号使用。+其余参数会继续透传给 `uvicorn`。++选中的 policy 路径会导出为:++```bash+JIUWENBOX_DEFAULT_POLICY_PATH=/absolute/path/to/policy.yaml+```++端口也可以通过环境变量设置:++```bash+JIUWENBOX_PORT=9000 sudo ./scripts/server.sh configs/default-policy.yaml+```++### Docker 启动++构建镜像:++```bash+cd jiuwenclaw/jiuwenbox/docker+sudo ./build_docker.sh+```++使用默认 policy 运行:++```bash+sudo ./run_docker.sh+```++Docker 镜像默认会启动 `./scripts/server.sh`。++## Policy 文件++服务启动时会加载一个静态默认 policy。当前不启用 policy 动态更新功能。++重要字段:++- `sandbox_workspace`+ - 用于服务端管理沙箱后端存储的宿主机目录。+ - 该值在展开 `~` 和环境变量之后必须是绝对路径。+- `filesystem_policy.directories`+ - 由服务端创建并在沙箱生命周期内绑定到沙箱中的目录。+- `filesystem_policy.read_only`+ - 在沙箱内可见并以只读方式挂载的路径。+- `filesystem_policy.read_write`+ - 在沙箱内可见并以读写方式挂载的路径。+- `filesystem_policy.bind_mounts`+ - 显式的宿主机到沙箱路径的 bind mount 配置。++路径字段支持 shell 风格的展开,例如 `~` 和环境变量。++最小示例:++```yaml+version: 1+name: "example"+sandbox_workspace: "/sandbox"++filesystem_policy:+ directories:+ - path: "/tmp"+ permissions: "1777"+ read_only:+ - "/usr"+ - "/lib"+ - "/lib64"+ - "/etc"+ read_write:+ - "/tmp"+ bind_mounts: []++process:+ run_as_user: sandbox+ run_as_group: sandbox++namespace:+ user: true+ pid: true+ ipc: true+ cgroup: true+ uts: true++capabilities:+ add: []+ drop: []++landlock:+ compatibility: best_effort++syscall:+ blocked:+ - "ptrace"+ - "mount"+ - "umount2"+ - "reboot"+ - "kexec_load"++network:+ mode: isolated+ egress:+ default: allow+ allowed_domains: []+ blocked_domains: []+ allowed_ips:+ - "127.0.0.1/32"+ - "::1/128"+ blocked_ips: []+ allowed_ports:+ - 443+ - 80+ blocked_ports:+ - 22+ ingress:+ default: deny+ allowed_domains: []+ blocked_domains: []+ allowed_ips:+ - "127.0.0.1/32"+ - "::1/128"+ blocked_ips: []+ allowed_ports: []+ blocked_ports:+ - 22+```++## API 示例++创建沙箱:++```bash+curl -sS -X POST http://127.0.0.1:8321/api/v1/sandboxes \+ -H 'Content-Type: application/json' \+ -d '{"command":["/usr/bin/python3","-c","import time; time.sleep(3600)"]}'+```++执行命令:++```bash+curl -sS -X POST http://127.0.0.1:8321/api/v1/sandboxes/<sandbox-id>/exec \+ -H 'Content-Type: application/json' \+ -d '{"command":["/usr/bin/python3","-c","print(\"hello\")"],"workdir":"/tmp"}'+```++上传文件:++```bash+curl -sS -X POST \+ 'http://127.0.0.1:8321/api/v1/sandboxes/<sandbox-id>/upload?sandbox_path=/tmp/input.txt' \+ -F '[email protected]'+```++下载文件:++```bash+curl -sS \+ 'http://127.0.0.1:8321/api/v1/sandboxes/<sandbox-id>/download?sandbox_path=/tmp/input.txt'+```++删除沙箱:++```bash+curl -sS -X DELETE http://127.0.0.1:8321/api/v1/sandboxes/<sandbox-id>+```++## 运行集成测试++```bash+./scripts/test.sh+```++运行指定 policy 对应的集成测试:++```bash+./scripts/test.sh default # jiuwenbox 使用 default-policy.yaml 作为安全策略运行服务。+./scripts/test.sh jiuwenclaw # jiuwenbox 使用 jiuwenclaw-policy.yaml 作为安全策略运行服务。+```++## 注意事项++- 修改启动 policy 文件后,需要重启服务。+- 已存在的沙箱会继续使用创建时写入的 policy。+- `/exec` API 会把命令 stderr 作为命令执行结果返回;如果服务端诊断日志+ 可能污染命令 stderr,应使用 debug 级别日志。++## License++Apache-2.0diff --git a/jiuwenbox/configs/default-policy.yaml b/jiuwenbox/configs/default-policy.yamlnew file mode 100644index 0000000000..9d85633d87--- /dev/null+++ b/jiuwenbox/configs/default-policy.yaml@@ -0,0 +1,201 @@+# Policy schema version. Currently only version 1 is supported.+version: 1++# Human-readable policy name shown by the server policy API.+name: "server-default"++# Host directory used for server-managed sandbox backing storage.+sandbox_workspace: "/sandbox"++# Filesystem access rules. Paths are sandbox-visible absolute paths.+filesystem_policy:+ # Lifecycle directories to create for the sandbox and bind into the sandbox path.+ # Items may be either:+ # - "/path": create a server-managed directory with default permissions+ # - path: "/path"+ # permissions: "0755" # optional octal permissions applied on the backing directory+ # The permissions value may be quoted or numeric, but quoted octal strings are recommended.+ # Paths must be absolute sandbox-visible paths. Directories persist for the sandbox+ # lifecycle and are removed when the sandbox is deleted. Access is still controlled+ # by the directory permissions and Landlock.+ directories:+ - path: "/home"+ permissions: "0755"+ - path: "/tmp"+ permissions: "1777"++ # Read-only paths. The sandbox can read these paths but should not write them.+ read_only:+ - "/usr"+ - "/lib"+ - "/lib64"+ - "/etc"+ - "/opt"++ # Read-write paths. The sandbox can read and write these paths.+ read_write:+ - "/"++ # Extra bind mounts from host into sandbox.+ # Each item uses:+ # host_path: absolute path on the host+ # sandbox_path: absolute path visible inside the sandbox+ # mode: "ro" for read-only or "rw" for read-write+ bind_mounts: []++# Process identity inside the sandbox.+process:+ # User name to run as. If the user cannot be resolved, runtime falls back to nobody-style IDs.+ run_as_user: sandbox++ # Group name to run as. If the group cannot be resolved, runtime falls back to nobody-style IDs.+ run_as_group: sandbox++# Linux namespace isolation controlled by bubblewrap.+namespace:+ # user:+ # true: create a new user namespace+ # false: reuse the current user namespace+ user: true++ # pid:+ # true: create a new PID namespace+ # false: reuse the current PID namespace+ pid: true++ # ipc:+ # true: create a new IPC namespace+ # false: reuse the current IPC namespace+ ipc: true++ # cgroup:+ # true: create a new cgroup namespace+ # false: reuse the current cgroup namespace+ cgroup: true++ # uts:+ # true: create a new UTS namespace+ # false: reuse the current UTS namespace+ uts: true++# Linux capability rules applied by bubblewrap.+capabilities:+ # Capabilities to add, for example ["CAP_NET_RAW"] or ["NET_RAW"].+ add: []++ # Capabilities to drop. "ALL" drops all capabilities when supported by bubblewrap.+ drop: []++# Landlock filesystem access enforcement.+landlock:+ # compatibility:+ # disabled: do not apply Landlock+ # best_effort: apply Landlock when supported, otherwise continue+ # hard_requirement: fail sandbox startup if Landlock is unavailable+ compatibility: best_effort++# Seccomp syscall filtering.+syscall:+ # Syscall names to block. Leave empty to disable explicit syscall blocking.+ blocked:+ - "kexec_load"+ - "kexec_file_load"+ - "reboot"+ - "pivot_root"+ - "swapon"+ - "swapoff"+ - "nfsservctl"+ - "lookup_dcookie"+ - "ptrace"+ - "mount"+ - "umount2"+ - "unshare"+ - "setns"+ - "userfaultfd"+ - "perf_event_open"+ - "bpf"+ - "add_key"+ - "request_key"+ - "keyctl"+ - "io_uring_setup"+ - "io_uring_enter"+ - "io_uring_register"+ - "open_by_handle_at"+ - "name_to_handle_at"+ - "init_module"+ - "finit_module"+ - "delete_module"+ - "acct"++# Network policy. Egress controls outbound traffic; ingress controls inbound traffic.+network:+ # mode:+ # isolated: create a dedicated network namespace and apply these rules+ # host: use host networking and skip namespace firewall setup+ mode: host++ # Outbound traffic from sandbox to outside destinations.+ egress:+ # default:+ # deny: block traffic unless it matches allowed_domains/allowed_ips and allowed_ports+ # allow: allow traffic unless it matches blocked_domains/blocked_ips/blocked_ports+ default: allow++ # Domain names allowed as outbound destinations. Wildcards like "*.example.com" are accepted+ # by resolving the base domain; rules are applied to resolved IPs.+ allowed_domains:+ - "baidu.com"++ # Domain names blocked as outbound destinations. Block rules take precedence over allow rules.+ blocked_domains:+ - "ip.me"++ # IP/CIDR ranges allowed as outbound destinations, for example "203.0.113.10/32" or+ # "10.0.0.0/8". With default: deny, destinations not listed here are blocked.+ allowed_ips:+ - "127.0.0.1/32"+ - "::1/128"++ # IP/CIDR ranges blocked as outbound destinations. Block rules take precedence.+ blocked_ips:+ - "169.254.169.254/32"++ # TCP destination ports allowed for outbound traffic when default is deny.+ allowed_ports:+ - 443+ - 80++ # TCP destination ports blocked for outbound traffic. Block rules take precedence.+ blocked_ports:+ - 22++ # Inbound traffic from outside sources into the sandbox.+ ingress:+ # default:+ # deny: block traffic unless it matches allowed_domains/allowed_ips and allowed_ports+ # allow: allow traffic unless it matches blocked_domains/blocked_ips/blocked_ports+ default: deny++ # Domain names allowed as inbound sources. These are resolved to source IP rules.+ allowed_domains:+ - "localhost"++ # Domain names blocked as inbound sources. Block rules take precedence over allow rules.+ blocked_domains: []++ # IP/CIDR ranges allowed as inbound sources. With default: deny, sources not listed here+ # are blocked unless allowed by allowed_ports-only rules.+ allowed_ips:+ - "127.0.0.1/32"+ - "::1/128"++ # IP/CIDR ranges blocked as inbound sources. Block rules take precedence.+ blocked_ips: []++ # TCP destination ports allowed for inbound traffic when default is deny.+ allowed_ports:+ - 8080++ # TCP destination ports blocked for inbound traffic. Block rules take precedence.+ blocked_ports:+ - 22diff --git a/jiuwenbox/configs/jiuwenclaw-tool-policy.yaml b/jiuwenbox/configs/jiuwenclaw-tool-policy.yamlnew file mode 100644index 0000000000..5e5fcc36e3--- /dev/null+++ b/jiuwenbox/configs/jiuwenclaw-tool-policy.yaml@@ -0,0 +1,186 @@+# Policy schema version. Currently only version 1 is supported.+version: 1++# Human-readable policy name shown by the server policy API.+name: "server-default"++# Host directory used for server-managed sandbox backing storage.+sandbox_workspace: "/tmp/sandbox"++# Filesystem access rules. Paths are sandbox-visible absolute paths.+filesystem_policy:+ # Read-only paths. The sandbox can read these paths but should not write them.+ read_only:+ - "/usr"+ - "/lib"+ - "/lib64"+ - "/etc"+ - "/opt"++ # Read-write paths. The sandbox can read and write these paths.+ read_write:+ - "/"++ # Extra bind mounts from host into sandbox.+ # Each item uses:+ # host_path: absolute path on the host+ # sandbox_path: absolute path visible inside the sandbox+ # mode: "ro" for read-only or "rw" for read-write+ bind_mounts: [{host_path: "/home/USER/.jiuwenclaw", sandbox_path: "/home/USER/.jiuwenclaw", mode: "rw"}]++# Process identity inside the sandbox.+process:+ # User name to run as. If the user cannot be resolved, runtime falls back to nobody-style IDs.+ run_as_user: sandbox++ # Group name to run as. If the group cannot be resolved, runtime falls back to nobody-style IDs.+ run_as_group: sandbox++# Linux namespace isolation controlled by bubblewrap.+namespace:+ # user:+ # true: create a new user namespace+ # false: reuse the current user namespace+ user: false++ # pid:+ # true: create a new PID namespace+ # false: reuse the current PID namespace+ pid: true++ # ipc:+ # true: create a new IPC namespace+ # false: reuse the current IPC namespace+ ipc: true++ # cgroup:+ # true: create a new cgroup namespace+ # false: reuse the current cgroup namespace+ cgroup: true++ # uts:+ # true: create a new UTS namespace+ # false: reuse the current UTS namespace+ uts: true++# Linux capability rules applied by bubblewrap.+capabilities:+ # Capabilities to add, for example ["CAP_NET_RAW"] or ["NET_RAW"].+ add: []++ # Capabilities to drop. "ALL" drops all capabilities when supported by bubblewrap.+ drop: []++# Landlock filesystem access enforcement.+landlock:+ # compatibility:+ # disabled: do not apply Landlock+ # best_effort: apply Landlock when supported, otherwise continue+ # hard_requirement: fail sandbox startup if Landlock is unavailable+ compatibility: best_effort++# Seccomp syscall filtering.+syscall:+ # Syscall names to block. Leave empty to disable explicit syscall blocking.+ blocked:+ - "kexec_load"+ - "kexec_file_load"+ - "reboot"+ - "pivot_root"+ - "swapon"+ - "swapoff"+ - "nfsservctl"+ - "lookup_dcookie"+ - "ptrace"+ - "mount"+ - "umount2"+ - "unshare"+ - "setns"+ - "userfaultfd"+ - "perf_event_open"+ - "bpf"+ - "add_key"+ - "request_key"+ - "keyctl"+ - "io_uring_setup"+ - "io_uring_enter"+ - "io_uring_register"+ - "open_by_handle_at"+ - "name_to_handle_at"+ - "init_module"+ - "finit_module"+ - "delete_module"+ - "acct"++# Network policy. Egress controls outbound traffic; ingress controls inbound traffic.+network:+ # mode:+ # isolated: create a dedicated network namespace and apply these rules+ # host: use host networking and skip namespace firewall setup+ mode: isolated++ # Outbound traffic from sandbox to outside destinations.+ egress:+ # default:+ # deny: block traffic unless it matches allowed_domains/allowed_ips and allowed_ports+ # allow: allow traffic unless it matches blocked_domains/blocked_ips/blocked_ports+ default: allow++ # Domain names allowed as outbound destinations. Wildcards like "*.example.com" are accepted+ # by resolving the base domain; rules are applied to resolved IPs.+ allowed_domains:+ - "baidu.com"++ # Domain names blocked as outbound destinations. Block rules take precedence over allow rules.+ blocked_domains:+ - "ip.me"++ # IP/CIDR ranges allowed as outbound destinations, for example "203.0.113.10/32" or+ # "10.0.0.0/8". With default: deny, destinations not listed here are blocked.+ allowed_ips:+ - "127.0.0.1/32"+ - "::1/128"++ # IP/CIDR ranges blocked as outbound destinations. Block rules take precedence.+ blocked_ips:+ - "169.254.169.254/32"++ # TCP destination ports allowed for outbound traffic when default is deny.+ allowed_ports:+ - 443+ - 80++ # TCP destination ports blocked for outbound traffic. Block rules take precedence.+ blocked_ports:+ - 22++ # Inbound traffic from outside sources into the sandbox.+ ingress:+ # default:+ # deny: block traffic unless it matches allowed_domains/allowed_ips and allowed_ports+ # allow: allow traffic unless it matches blocked_domains/blocked_ips/blocked_ports+ default: deny++ # Domain names allowed as inbound sources. These are resolved to source IP rules.+ allowed_domains:+ - "localhost"++ # Domain names blocked as inbound sources. Block rules take precedence over allow rules.+ blocked_domains: []++ # IP/CIDR ranges allowed as inbound sources. With default: deny, sources not listed here+ # are blocked unless allowed by allowed_ports-only rules.+ allowed_ips:+ - "127.0.0.1/32"+ - "::1/128"++ # IP/CIDR ranges blocked as inbound sources. Block rules take precedence.+ blocked_ips: []++ # TCP destination ports allowed for inbound traffic when default is deny.+ allowed_ports:+ - 8080++ # TCP destination ports blocked for inbound traffic. Block rules take precedence.+ blocked_ports:+ - 22diff --git a/jiuwenbox/docker/Dockerfile b/jiuwenbox/docker/Dockerfilenew file mode 100644index 0000000000..f60d1c4004--- /dev/null+++ b/jiuwenbox/docker/Dockerfile@@ -0,0 +1,54 @@+FROM ubuntu:24.04++ENV PYTHONDONTWRITEBYTECODE=1 \+ PYTHONUNBUFFERED=1 \+ PIP_NO_CACHE_DIR=1++RUN apt-get update \+ && apt-get install -y --no-install-recommends \+ bubblewrap \+ iproute2 \+ iptables \+ ca-certificates \+ nodejs \+ python3-pip \+ git \+ vim \+ && rm -rf /var/lib/apt/lists/*++WORKDIR /app++COPY pyproject.toml README.md ./+COPY src ./src+COPY configs ./configs+COPY scripts ./scripts++RUN chmod +x ./scripts/server.sh++RUN pip install --break-system-packages -e . \+ && pip install --break-system-packages \+ "fastapi>=0.104.0" \+ "uvicorn>=0.24.0" \+ "pydantic>=2.5.0" \+ "pydantic-settings>=2.1.0" \+ "sqlalchemy>=2.0.0" \+ "async-gaussdb>=0.30.4" \+ "aiomysql>=0.2.0" \+ "aiosqlite>=0.19.0" \+ "python-dotenv>=1.0.0" \+ "apscheduler>=3.10.0" \+ "loguru>=0.7.0" \+ "httpx>=0.25.0" \+ "pyyaml>=6.0.0" \+ "greenlet>=3.3.0" \+ "openjiuwen==0.1.7" \+ "jinja2>=3.0.0" \+ "mcp>=1.0.0" \+ "sse-starlette>=1.6.0" \+ numexpr \+ "redis~=7.3.0" \+ "opencv-python>=4.10.0"++EXPOSE 8321++CMD ["./scripts/server.sh"]diff --git a/jiuwenbox/docker/build_docker.sh b/jiuwenbox/docker/build_docker.shnew file mode 100755index 0000000000..5a84e3af7b--- /dev/null+++ b/jiuwenbox/docker/build_docker.sh@@ -0,0 +1,11 @@+#!/usr/bin/env bash+set -euo pipefail++DOCKER_DIR="$(cd "$(dirname "$0")" && pwd)"+PROJECT_DIR="$(cd "$DOCKER_DIR/.." && pwd)"++IMAGE_NAME="${JIUWENBOX_IMAGE_NAME:-jiuwenbox}"+IMAGE_TAG="${JIUWENBOX_IMAGE_TAG:-latest}"+IMAGE_REF="${IMAGE_NAME}:${IMAGE_TAG}"++docker build -f "$DOCKER_DIR/Dockerfile" --no-cache -t "$IMAGE_REF" "$PROJECT_DIR" "$@"diff --git a/jiuwenbox/docker/run_docker.sh b/jiuwenbox/docker/run_docker.shnew file mode 100755index 0000000000..47d0fe3942--- /dev/null+++ b/jiuwenbox/docker/run_docker.sh@@ -0,0 +1,23 @@+#!/usr/bin/env bash+set -euo pipefail++SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"++IMAGE_NAME="${JIUWENBOX_IMAGE_NAME:-jiuwenbox}"+IMAGE_TAG="${JIUWENBOX_IMAGE_TAG:-latest}"+IMAGE_REF="${IMAGE_NAME}:${IMAGE_TAG}"+CONTAINER_NAME="${JIUWENBOX_CONTAINER_NAME:-jiuwenbox}"+HOST_PORT="${JIUWENBOX_HOST_PORT:-8321}"++echo "Starting jiuwenbox container:"+echo " image: $IMAGE_REF"+echo " container: $CONTAINER_NAME"+echo " url: http://127.0.0.1:${HOST_PORT}"+echo++docker run -it \+ --name "$CONTAINER_NAME" \+ --privileged \+ -p "${HOST_PORT}:8321" \+ "$IMAGE_REF" \+ "$@"\ No newline at end of filediff --git a/jiuwenbox/pyproject.toml b/jiuwenbox/pyproject.tomlnew file mode 100644index 0000000000..f3928a0847--- /dev/null+++ b/jiuwenbox/pyproject.toml@@ -0,0 +1,38 @@+[build-system]+requires = ["setuptools>=61.0"]+build-backend = "setuptools.build_meta"++[project]+name = "jiuwenbox"+version = "0.1.0"+description = "Jiuwen sandbox system"+readme = "README.md"+requires-python = ">=3.11"+license = "Apache-2.0"+dependencies = [+ "pydantic>=2.0",+ "pyyaml>=6.0",+ "httpx>=0.27",+ "fastapi>=0.115",+ "uvicorn[standard]>=0.30",+ "python-multipart>=0.0.9",+]++[project.optional-dependencies]+dev = [+ "pytest>=8.0",+ "pytest-asyncio>=0.24",+ "pytest-cov>=5.0",+ "ruff>=0.6",+]++[tool.setuptools.packages.find]+where = ["src"]+include = ["jiuwenbox*"]++[tool.pytest.ini_options]+testpaths = ["tests"]++[tool.ruff]+src = ["src"]+line-length = 100diff --git a/jiuwenbox/scripts/server.sh b/jiuwenbox/scripts/server.shnew file mode 100755index 0000000000..a11ed23ae1--- /dev/null+++ b/jiuwenbox/scripts/server.sh@@ -0,0 +1,58 @@+#!/usr/bin/env bash+set -euo pipefail++CALLER_CWD="$(pwd)"+PROJECT_DIR="$(cd "$(dirname "$0")/.." && pwd)"+cd "$PROJECT_DIR"++usage() {+ cat <<'EOF'+Usage: scripts/server.sh [policy-config.yaml] [uvicorn args...]+ scripts/server.sh [policy-config.yaml] [port] [uvicorn args...]++Examples:+ scripts/server.sh configs/jiuwenclaw-policy.yaml+ scripts/server.sh configs/default-policy.yaml 9000 --reload+EOF+}++POLICY_CONFIG="${JIUWENBOX_DEFAULT_POLICY_PATH:-}"+PORT="${JIUWENBOX_PORT:-8321}"++if [[ $# -gt 0 ]]; then+ case "$1" in+ -h|--help)+ usage+ exit 0+ ;;+ -*)+ ;;+ *)+ POLICY_CONFIG="$1"+ shift+ ;;+ esac+fi++if [[ $# -gt 0 && "$1" =~ ^[0-9]+$ ]]; then+ PORT="$1"+ shift+fi++POLICY_CONFIG="${POLICY_CONFIG:-configs/default-policy.yaml}"+POLICY_CONFIG_ABS=""++if [[ "$POLICY_CONFIG" = /* && -f "$POLICY_CONFIG" ]]; then+ POLICY_CONFIG_ABS="$(realpath "$POLICY_CONFIG")"+elif [[ -f "$CALLER_CWD/$POLICY_CONFIG" ]]; then+ POLICY_CONFIG_ABS="$(realpath "$CALLER_CWD/$POLICY_CONFIG")"+else+ echo "error: policy config not found: $POLICY_CONFIG" >&2+ exit 1+fi++export JIUWENBOX_DEFAULT_POLICY_PATH="$POLICY_CONFIG_ABS"++echo "Starting jiuwenbox with policy config: $JIUWENBOX_DEFAULT_POLICY_PATH"+echo "Listening on port: $PORT"+python3 -m uvicorn jiuwenbox.server.app:app --app-dir src --host 0.0.0.0 --port "$PORT" --log-level debug "$@"diff --git a/jiuwenbox/scripts/test.sh b/jiuwenbox/scripts/test.shnew file mode 100755index 0000000000..08252e78b8--- /dev/null+++ b/jiuwenbox/scripts/test.sh@@ -0,0 +1,27 @@+#!/usr/bin/env bash+set -euo pipefail++SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"+PROJECT_DIR="$(cd "$SCRIPT_DIR/.." && pwd)"+cd "$PROJECT_DIR"++if [ -d ".venv" ]; then+ source .venv/bin/activate+fi++TEST_TARGET="tests/integration/"++if [[ $# -gt 0 ]]; then+ case "$1" in+ default)+ TEST_TARGET="tests/integration/test_server_api_default.py"+ shift+ ;;+ jiuwenclaw-tool)+ TEST_TARGET="tests/integration/test_server_api_jiuwenclaw_tool.py"+ shift+ ;;+ esac+fi++python3 -m pytest "$TEST_TARGET" -v --tb=short "$@"diff --git a/jiuwenbox/src/jiuwenbox/__init__.py b/jiuwenbox/src/jiuwenbox/__init__.pynew file mode 100644index 0000000000..46a81a307d--- /dev/null+++ b/jiuwenbox/src/jiuwenbox/__init__.py@@ -0,0 +1,3 @@+"""jiuwenbox - Full-scenario Agent sandbox system."""++__version__ = "0.1.0"diff --git a/jiuwenbox/src/jiuwenbox/models/__init__.py b/jiuwenbox/src/jiuwenbox/models/__init__.pynew file mode 100644index 0000000000..43bc05deb2--- /dev/null+++ b/jiuwenbox/src/jiuwenbox/models/__init__.py@@ -0,0 +1,45 @@+from jiuwenbox.models.sandbox import (+ ExecResult,+ SandboxPhase,+ SandboxRef,+ SandboxSpec,+)+from jiuwenbox.models.policy import (+ BindMount,+ DirectoryMount,+ FilesystemPolicy,+ CapabilityPolicy,+ LandlockPolicy,+ NamespacePolicy,+ NetworkRulePolicy,+ NetworkPolicy,+ ProcessPolicy,+ SecurityPolicy,+ SyscallPolicy,+)+from jiuwenbox.models.common import (+ AuditEvent,+ AuditEventType,+ HealthResponse,+)++__all__ = [+ "ExecResult",+ "SandboxPhase",+ "SandboxRef",+ "SandboxSpec",+ "BindMount",+ "DirectoryMount",+ "FilesystemPolicy",+ "CapabilityPolicy",+ "LandlockPolicy",+ "NamespacePolicy",+ "NetworkRulePolicy",+ "NetworkPolicy",+ "ProcessPolicy",+ "SecurityPolicy",+ "SyscallPolicy",+ "AuditEvent",+ "AuditEventType",+ "HealthResponse",+]diff --git a/jiuwenbox/src/jiuwenbox/models/common.py b/jiuwenbox/src/jiuwenbox/models/common.pynew file mode 100644index 0000000000..02983e2c37--- /dev/null+++ b/jiuwenbox/src/jiuwenbox/models/common.py@@ -0,0 +1,37 @@+"""Common data models shared across components."""++from __future__ import annotations++import enum+from datetime import datetime++from pydantic import BaseModel, Field+++class AuditEventType(str, enum.Enum):+ SANDBOX_CREATED = "sandbox_created"+ SANDBOX_STARTED = "sandbox_started"+ SANDBOX_STOPPED = "sandbox_stopped"+ SANDBOX_DELETED = "sandbox_deleted"+ POLICY_APPLIED = "policy_applied"+ EXEC_COMMAND = "exec_command"+ FILE_TRANSFER = "file_transfer"+++class AuditEvent(BaseModel):+ """Structured audit log entry."""++ timestamp: datetime = Field(default_factory=datetime.now)+ event_type: AuditEventType+ sandbox_id: str+ details: dict = Field(default_factory=dict)+++class HealthResponse(BaseModel):+ """Health check response."""++ status: str = "ok"+ version: str+ runtime: str = "process"+ landlock_supported: bool = False+ sandboxes_active: int = 0diff --git a/jiuwenbox/src/jiuwenbox/models/policy.py b/jiuwenbox/src/jiuwenbox/models/policy.pynew file mode 100644index 0000000000..b8c834399c--- /dev/null+++ b/jiuwenbox/src/jiuwenbox/models/policy.py@@ -0,0 +1,151 @@+"""Security policy data models (static only)."""++from __future__ import annotations++import enum+import os+from pathlib import Path+from typing import Literal++from pydantic import BaseModel, Field, field_validator+++def _expand_path(value: str) -> str:+ """Expand shell-style path markers without requiring the path to exist."""+ return str(Path(os.path.expandvars(value)).expanduser())+++class BindMount(BaseModel):+ host_path: str+ sandbox_path: str+ mode: Literal["ro", "rw"] = "ro"++ @field_validator("host_path", "sandbox_path", mode="before")+ @classmethod+ def expand_paths(cls, value: object) -> object:+ if isinstance(value, str):+ return _expand_path(value)+ return value+++class DirectoryMount(BaseModel):+ path: str+ permissions: str | int | None = None++ @field_validator("path", mode="before")+ @classmethod+ def expand_path(cls, value: object) -> object:+ if isinstance(value, str):+ return _expand_path(value)+ return value++ @field_validator("permissions", mode="before")+ @classmethod+ def permissions_must_be_octal(cls, value: object) -> str | None:+ if value is None:+ return None+ if isinstance(value, int):+ if 0 <= value <= 0o777:+ text = format(value, "o")+ else:+ text = str(value)+ else:+ text = str(value)+ if not text:+ raise ValueError("directory permissions cannot be empty")+ if not all(char in "01234567" for char in text):+ raise ValueError("directory permissions must be an octal value")+ if len(text) > 4:+ raise ValueError("directory permissions must be at most four octal digits")+ return text.zfill(4)+++class FilesystemPolicy(BaseModel):+ directories: list[str | DirectoryMount] = Field(default_factory=list)+ read_only: list[str] = Field(default_factory=list)+ read_write: list[str] = Field(default_factory=list)+ bind_mounts: list[BindMount] = Field(default_factory=list)++ @field_validator("directories", mode="before")+ @classmethod+ def expand_directory_paths(cls, value: object) -> object:+ if isinstance(value, list):+ return [_expand_path(item) if isinstance(item, str) else item for item in value]+ return value++ @field_validator("read_only", "read_write", mode="before")+ @classmethod+ def expand_path_lists(cls, value: object) -> object:+ if isinstance(value, list):+ return [_expand_path(item) if isinstance(item, str) else item for item in value]+ return value+++class ProcessPolicy(BaseModel):+ run_as_user: str = "sandbox"+ run_as_group: str = "sandbox"+++class NamespacePolicy(BaseModel):+ user: bool = True+ pid: bool = True+ ipc: bool = True+ cgroup: bool = True+ uts: bool = True+++class CapabilityPolicy(BaseModel):+ add: list[str] = Field(default_factory=list)+ drop: list[str] = Field(default_factory=list)+++class LandlockPolicy(BaseModel):+ compatibility: Literal["disabled", "best_effort", "hard_requirement"] = "best_effort"+++class SyscallPolicy(BaseModel):+ blocked: list[str] = Field(default_factory=list)+++class NetworkMode(str, enum.Enum):+ ISOLATED = "isolated"+ HOST = "host"+++class NetworkRulePolicy(BaseModel):+ default: Literal["deny", "allow"] = "deny"+ allowed_domains: list[str] = Field(default_factory=list)+ blocked_domains: list[str] = Field(default_factory=list)+ allowed_ips: list[str] = Field(default_factory=list)+ blocked_ips: list[str] = Field(default_factory=list)+ allowed_ports: list[int] = Field(default_factory=list)+ blocked_ports: list[int] = Field(default_factory=list)+++class NetworkPolicy(BaseModel):+ mode: NetworkMode = NetworkMode.ISOLATED+ egress: NetworkRulePolicy = Field(default_factory=NetworkRulePolicy)+ ingress: NetworkRulePolicy = Field(default_factory=NetworkRulePolicy)+++class SecurityPolicy(BaseModel):+ """Complete static security policy for a sandbox."""++ version: int = 1+ name: str = "default"+ sandbox_workspace: str = "/sandbox"+ filesystem_policy: FilesystemPolicy = Field(default_factory=FilesystemPolicy)+ process: ProcessPolicy = Field(default_factory=ProcessPolicy)+ namespace: NamespacePolicy = Field(default_factory=NamespacePolicy)+ capabilities: CapabilityPolicy = Field(default_factory=CapabilityPolicy)+ landlock: LandlockPolicy = Field(default_factory=LandlockPolicy)+ syscall: SyscallPolicy = Field(default_factory=SyscallPolicy)+ network: NetworkPolicy = Field(default_factory=NetworkPolicy)++ @field_validator("sandbox_workspace")+ @classmethod+ def sandbox_workspace_must_be_absolute(cls, value: str) -> str:+ workspace = Path(_expand_path(value))+ if not workspace.is_absolute():+ raise ValueError("sandbox_workspace must be an absolute host path")+ return str(workspace)diff --git a/jiuwenbox/src/jiuwenbox/models/sandbox.py b/jiuwenbox/src/jiuwenbox/models/sandbox.pynew file mode 100644index 0000000000..07501c9dce--- /dev/null+++ b/jiuwenbox/src/jiuwenbox/models/sandbox.py@@ -0,0 +1,50 @@+"""Sandbox data models."""++from __future__ import annotations++import enum+from datetime import datetime+from pydantic import BaseModel, Field+++class SandboxPhase(str, enum.Enum):+ PROVISIONING = "provisioning"+ READY = "ready"+ STOPPED = "stopped"+ ERROR = "error"+ DELETING = "deleting"+++class PolicyMode(str, enum.Enum):+ OVERRIDE = "override"+ APPEND = "append"+++class SandboxSpec(BaseModel):+ """Specification for creating a sandbox."""++ workdir: str | None = None+ env: dict[str, str] = Field(default_factory=dict)+++class SandboxRef(BaseModel):+ """Reference to an existing sandbox."""++ id: str+ phase: SandboxPhase = SandboxPhase.PROVISIONING+ runtime: str = "process"+ pid: int | None = None+ created_at: datetime = Field(default_factory=datetime.now)+ started_at: datetime | None = None+ error_message: str | None = None+ command: list[str] = Field(default_factory=list)+ workdir: str | None = None+ env: dict[str, str] = Field(default_factory=dict)+++class ExecResult(BaseModel):+ """Result of executing a command in a sandbox."""++ exit_code: int+ stdout: str = ""+ stderr: str = ""diff --git a/jiuwenbox/src/jiuwenbox/server/__init__.py b/jiuwenbox/src/jiuwenbox/server/__init__.pynew file mode 100644index 0000000000..e69de29bb2diff --git a/jiuwenbox/src/jiuwenbox/server/app.py b/jiuwenbox/src/jiuwenbox/server/app.pynew file mode 100644index 0000000000..94e1265210--- /dev/null+++ b/jiuwenbox/src/jiuwenbox/server/app.py@@ -0,0 +1,99 @@+"""FastAPI application for box-server."""++from __future__ import annotations++import logging+from contextlib import asynccontextmanager++from fastapi import FastAPI, Request+from fastapi.middleware.cors import CORSMiddleware+from fastapi.responses import JSONResponse++from jiuwenbox import __version__+from jiuwenbox.server.sandbox_manager import (+ SandboxManager,+ SandboxNotFoundError,+ SandboxStateError,+)+from jiuwenbox.server.policy_engine import PolicyValidationError++logging.basicConfig(level=logging.INFO)+logger = logging.getLogger(__name__)++_manager: SandboxManager | None = None+++def get_manager() -> SandboxManager:+ """Get the global SandboxManager instance."""+ global _manager+ if _manager is None:+ _manager = SandboxManager()+ return _manager+++@asynccontextmanager+async def lifespan(_application: FastAPI):+ """Application lifespan: initialize manager on startup."""+ global _manager+ _manager = SandboxManager()+ logger.info("box-server started (version %s)", __version__)+ yield+ logger.info("box-server shutting down")+++def create_app() -> FastAPI:+ """Create and configure the FastAPI application."""+ application = FastAPI(+ title="jiuwenbox",+ description="Agent sandbox management API",+ version=__version__,+ lifespan=lifespan,+ )++ application.add_middleware(+ CORSMiddleware,+ allow_origins=["*"],+ allow_credentials=True,+ allow_methods=["*"],+ allow_headers=["*"],+ )++ # Exception handlers+ @application.exception_handler(SandboxNotFoundError)+ async def not_found_handler(request: Request, exc: SandboxNotFoundError):+ return JSONResponse(status_code=404, content={"error": str(exc)})++ @application.exception_handler(SandboxStateError)+ async def state_error_handler(request: Request, exc: SandboxStateError):+ return JSONResponse(status_code=409, content={"error": str(exc)})++ @application.exception_handler(PolicyValidationError)+ async def policy_validation_error_handler(request: Request, exc: PolicyValidationError):+ return JSONResponse(status_code=400, content={"error": str(exc)})++ # Register routes+ from jiuwenbox.server.routes.sandbox import router as sandbox_router+ from jiuwenbox.server.routes.policy import router as policy_router++ application.include_router(sandbox_router, prefix="/api/v1")+ application.include_router(policy_router, prefix="/api/v1")++ @application.get("/health")+ async def health():+ from jiuwenbox.models.common import HealthResponse+ from jiuwenbox.supervisor.landlock import detect_landlock_abi++ mgr = get_manager()+ sandboxes = await mgr.list_sandboxes()+ active = sum(1 for s in sandboxes if s.phase.value == "ready")++ return HealthResponse(+ version=__version__,+ landlock_supported=detect_landlock_abi() > 0,+ sandboxes_active=active,+ )++ return application+++app = create_app()diff --git a/jiuwenbox/src/jiuwenbox/server/audit_logger.py b/jiuwenbox/src/jiuwenbox/server/audit_logger.pynew file mode 100644index 0000000000..fbfde0f086--- /dev/null+++ b/jiuwenbox/src/jiuwenbox/server/audit_logger.py@@ -0,0 +1,67 @@+"""Structured audit logging in JSONL format.++Each sandbox gets its own log file under ~/.jiuwenbox/logs/.+"""++from __future__ import annotations++import json+import logging+from pathlib import Path++from jiuwenbox.models.common import AuditEvent, AuditEventType++logging.basicConfig(level=logging.INFO)+logger = logging.getLogger(__name__)+++class AuditLogger:+ """Append-only JSONL audit logger, one file per sandbox."""++ def __init__(self, log_dir: Path | None = None) -> None:+ self.log_dir = log_dir or Path.home() / ".jiuwenbox" / "logs"+ self.log_dir.mkdir(parents=True, exist_ok=True)++ def log_event(self, event: AuditEvent) -> None:+ log_file = self.log_dir / f"{event.sandbox_id}.log"+ line = json.dumps(event.model_dump(mode="json"), ensure_ascii=False)+ with open(log_file, "a") as f:+ f.write(line + "\n")+ logger.debug("Audit: %s %s", event.event_type.value, event.sandbox_id)++ def log(+ self,+ event_type: AuditEventType,+ sandbox_id: str,+ **details: object,+ ) -> None:+ """Convenience helper to create and log an event."""+ event = AuditEvent(+ event_type=event_type,+ sandbox_id=sandbox_id,+ details=details,+ )+ self.log_event(event)++ def read_logs(self, sandbox_id: str) -> list[AuditEvent]:+ """Read all audit events for a sandbox."""+ log_file = self.log_dir / f"{sandbox_id}.log"+ if not log_file.exists():+ return []+ events: list[AuditEvent] = []+ for line in log_file.read_text().splitlines():+ if line.strip():+ events.append(AuditEvent.model_validate_json(line))+ return events++ def read_logs_raw(self, sandbox_id: str) -> str:+ """Read raw log text for a sandbox."""+ log_file = self.log_dir / f"{sandbox_id}.log"+ if not log_file.exists():+ return ""+ return log_file.read_text()++ def delete_logs(self, sandbox_id: str) -> None:+ """Delete logs for a sandbox."""+ log_file = self.log_dir / f"{sandbox_id}.log"+ log_file.unlink(missing_ok=True)diff --git a/jiuwenbox/src/jiuwenbox/server/policy_engine.py b/jiuwenbox/src/jiuwenbox/server/policy_engine.pynew file mode 100644index 0000000000..a97018fef1--- /dev/null+++ b/jiuwenbox/src/jiuwenbox/server/policy_engine.py@@ -0,0 +1,195 @@+"""Policy Engine - validates and resolves static security policies."""++from __future__ import annotations++import logging+from collections.abc import Mapping+from pathlib import Path, PurePosixPath++import yaml++from jiuwenbox.models.policy import NetworkRulePolicy, SecurityPolicy++logging.basicConfig(level=logging.INFO)+logger = logging.getLogger(__name__)+++class PolicyValidationError(Exception):+ """Raised when a policy fails validation."""++ def __init__(self, *args: object) -> None:+ super().__init__(*args)+ logger.error("%s: %s", self.__class__.__name__, str(self))+++class PolicyEngine:+ """Validates, resolves, and persists static security policies."""++ def __init__(self, policies_dir: Path | None = None) -> None:+ self.policies_dir = policies_dir or Path.home() / ".jiuwenbox" / "policies"+ self.policies_dir.mkdir(parents=True, exist_ok=True)++ @staticmethod+ def _is_sandbox_internal_path(path: str, sandbox_workspace: str) -> bool:+ normalized = PurePosixPath(path)+ workspace = PurePosixPath(sandbox_workspace)+ return normalized == workspace or normalized.is_relative_to(workspace)++ @staticmethod+ def _is_absolute_sandbox_path(path: str) -> bool:+ return PurePosixPath(path).is_absolute()++ @staticmethod+ def _directory_path(directory: object) -> str:+ if isinstance(directory, str):+ return directory+ return getattr(directory, "path")++ @staticmethod+ def _denies_without_allow_rules(rule: NetworkRulePolicy) -> bool:+ return rule.default == "deny" and not any([+ rule.allowed_domains,+ rule.allowed_ips,+ rule.allowed_ports,+ ])++ def validate_policy(self, policy: SecurityPolicy) -> list[str]:+ """Validate a policy and return a list of warnings (empty = OK)."""+ warnings: list[str] = []++ if not policy.name:+ raise PolicyValidationError("Policy name is required")++ directory_paths = [+ self._directory_path(directory)+ for directory in policy.filesystem_policy.directories+ ]+ for path in [+ *directory_paths,+ *policy.filesystem_policy.read_only,+ *policy.filesystem_policy.read_write,+ ]:+ if not self._is_absolute_sandbox_path(path):+ raise PolicyValidationError(+ "Filesystem policy paths must be absolute sandbox paths"+ )+ if self._is_sandbox_internal_path(path, policy.sandbox_workspace):+ raise PolicyValidationError(+ f"Policy cannot directly reference '{policy.sandbox_workspace}' "+ "or its child paths; this path is reserved for server-managed "+ "backing storage"+ )++ for mount in policy.filesystem_policy.bind_mounts:+ if (+ not self._is_absolute_sandbox_path(mount.host_path)+ or not self._is_absolute_sandbox_path(mount.sandbox_path)+ ):+ raise PolicyValidationError(+ "Filesystem bind mount paths must be absolute paths"+ )+ if (+ self._is_sandbox_internal_path(mount.host_path, policy.sandbox_workspace)+ or self._is_sandbox_internal_path(+ mount.sandbox_path,+ policy.sandbox_workspace,+ )+ ):+ raise PolicyValidationError(+ f"Policy cannot directly reference '{policy.sandbox_workspace}' "+ "or its child paths; this path is reserved for server-managed "+ "backing storage"+ )++ if policy.network.mode.value == "isolated":+ if self._denies_without_allow_rules(policy.network.egress):+ warnings.append(+ "Network is isolated with deny-by-default but no allowed domains, IPs, "+ "or ports; "+ "sandbox will have no outbound connectivity"+ )+ if self._denies_without_allow_rules(policy.network.ingress):+ warnings.append(+ "Network ingress is isolated with deny-by-default and no allowed domains, IPs, "+ "or ports; sandbox will reject new inbound connections"+ )++ return warnings++ @staticmethod+ def resolve_policy(policy: SecurityPolicy) -> dict:+ """Resolve a policy into a plain dict ready for YAML serialization."""+ return policy.model_dump(mode="json")++ def merge_policy(+ self,+ base_policy: SecurityPolicy,+ extra_policy: SecurityPolicy | Mapping[str, object],+ ) -> SecurityPolicy:+ """Append a policy fragment onto a base policy."""+ if isinstance(extra_policy, SecurityPolicy):+ extra_data = extra_policy.model_dump(mode="json")+ else:+ extra_data = dict(extra_policy)++ base_data = base_policy.model_dump(mode="json")+ merged = self._merge_value(base_data, extra_data)+ return SecurityPolicy.model_validate(merged)++ def _merge_value(self, base: object, extra: object) -> object:+ if extra is None:+ return base++ if isinstance(base, dict) and isinstance(extra, Mapping):+ merged = dict(base)+ for key, value in extra.items():+ if key in merged:+ merged[key] = self._merge_value(merged[key], value)+ else:+ merged[key] = value+ return merged++ if isinstance(base, list) and isinstance(extra, list):+ merged = list(base)+ for item in extra:+ if item not in merged:+ merged.append(item)+ return merged++ return extra++ def write_sandbox_policy(+ self,+ sandbox_id: str,+ policy: SecurityPolicy,+ ) -> Path:+ """Resolve and write the policy YAML file for a sandbox."""+ warnings = self.validate_policy(policy)+ for warning in warnings:+ logger.warning("Policy '%s': %s", policy.name, warning)++ resolved = self.resolve_policy(policy)+ policy_path = self.policies_dir / f"{sandbox_id}_sandbox_policy.yaml"++ with open(policy_path, "w") as f:+ yaml.safe_dump(resolved, f, default_flow_style=False, allow_unicode=True)++ logger.info("Wrote sandbox policy to %s", policy_path)+ return policy_path++ @staticmethod+ def load_policy_from_file(path: str | Path) -> SecurityPolicy:+ """Load a SecurityPolicy from a YAML file."""+ with open(path) as f:+ data = yaml.safe_load(f)+ return SecurityPolicy.model_validate(data)++ def get_sandbox_policy_path(self, sandbox_id: str) -> Path | None:+ """Get the path to a sandbox's resolved policy file."""+ path = self.policies_dir / f"{sandbox_id}_sandbox_policy.yaml"+ return path if path.exists() else None++ def delete_sandbox_policy(self, sandbox_id: str) -> None:+ """Remove the resolved policy file for a sandbox."""+ path = self.policies_dir / f"{sandbox_id}_sandbox_policy.yaml"+ path.unlink(missing_ok=True)diff --git a/jiuwenbox/src/jiuwenbox/server/routes/__init__.py b/jiuwenbox/src/jiuwenbox/server/routes/__init__.pynew file mode 100644index 0000000000..e69de29bb2diff --git a/jiuwenbox/src/jiuwenbox/server/routes/policy.py b/jiuwenbox/src/jiuwenbox/server/routes/policy.pynew file mode 100644index 0000000000..a15f8d74d6--- /dev/null+++ b/jiuwenbox/src/jiuwenbox/server/routes/policy.py@@ -0,0 +1,31 @@+"""Policy API routes (static policies only)."""++from __future__ import annotations++import logging++from fastapi import APIRouter+from fastapi.responses import JSONResponse++router = APIRouter(tags=["policies"])++logging.basicConfig(level=logging.INFO)+logger = logging.getLogger(__name__)+++def _mgr():+ from jiuwenbox.server.app import get_manager+ return get_manager()++[email protected]("/policies/{sandbox_id}")+async def get_policy(sandbox_id: str):+ """Get the policy currently applied to a sandbox."""+ mgr = _mgr()+ policy = await mgr.get_policy(sandbox_id)+ if policy is None:+ return JSONResponse(+ status_code=404,+ content={"error": f"No policy found for sandbox '{sandbox_id}'"},+ )+ return policy.model_dump(mode="json")diff --git a/jiuwenbox/src/jiuwenbox/server/routes/sandbox.py b/jiuwenbox/src/jiuwenbox/server/routes/sandbox.pynew file mode 100644index 0000000000..1c0f40451b--- /dev/null+++ b/jiuwenbox/src/jiuwenbox/server/routes/sandbox.py@@ -0,0 +1,185 @@+"""Sandbox API routes."""++from __future__ import annotations++import logging+from typing import Annotated, Any++from fastapi import APIRouter, File, Query, UploadFile+from fastapi.responses import JSONResponse, PlainTextResponse, Response+from pydantic import BaseModel, Field++from jiuwenbox.models.sandbox import ExecResult, PolicyMode, SandboxRef, SandboxSpec+from jiuwenbox.server.sandbox_manager import SandboxExecRequest, SandboxListRequest++router = APIRouter(tags=["sandboxes"])+logging.basicConfig(level=logging.INFO)+logger = logging.getLogger(__name__)+++def _mgr():+ from jiuwenbox.server.app import get_manager+ return get_manager()+++class CreateSandboxRequest(BaseModel):+ command: list[str] = Field(default_factory=list)+ workdir: str | None = None+ env: dict[str, str] = Field(default_factory=dict)+ policy: dict[str, Any] | None = None+ policy_mode: PolicyMode = PolicyMode.OVERRIDE+++class ExecRequest(BaseModel):+ command: list[str]+ workdir: str | None = None+ env: dict[str, str] | None = None+ stdin: str | None = None+ timeout_seconds: int | None = None+++class ListFilesQuery(BaseModel):+ sandbox_path: str+ recursive: bool = False+ max_depth: int | None = None+ include_files: bool = True+ include_dirs: bool = True++[email protected]("/sandboxes", response_model=SandboxRef, status_code=201)+async def create_sandbox(request: CreateSandboxRequest):+ spec = SandboxSpec(+ workdir=request.workdir,+ env=request.env,+ )+ return await _mgr().create_sandbox(+ spec,+ command=request.command,+ policy_data=request.policy,+ policy_mode=request.policy_mode,+ )++[email protected]("/sandboxes", response_model=list[SandboxRef])+async def list_sandboxes():+ return await _mgr().list_sandboxes()++[email protected]("/sandboxes/{sandbox_id}", response_model=SandboxRef)+async def get_sandbox(sandbox_id: str):+ return await _mgr().get_sandbox(sandbox_id)++[email protected]("/sandboxes/{sandbox_id}", status_code=204)+async def delete_sandbox(sandbox_id: str):+ await _mgr().delete_sandbox(sandbox_id)++[email protected]("/sandboxes/{sandbox_id}/start", response_model=SandboxRef)+async def start_sandbox(sandbox_id: str):+ return await _mgr().start_sandbox(sandbox_id)++[email protected]("/sandboxes/{sandbox_id}/stop", response_model=SandboxRef)+async def stop_sandbox(sandbox_id: str):+ return await _mgr().stop_sandbox(sandbox_id)++[email protected]("/sandboxes/{sandbox_id}/restart", response_model=SandboxRef)+async def restart_sandbox(sandbox_id: str):+ return await _mgr().restart_sandbox(sandbox_id)++[email protected]("/sandboxes/{sandbox_id}/exec", response_model=ExecResult)+async def exec_in_sandbox(sandbox_id: str, request: ExecRequest):+ stdin_data = request.stdin.encode() if request.stdin else None+ return await _mgr().exec_in_sandbox(+ sandbox_id=sandbox_id,+ request=SandboxExecRequest(+ command=list(request.command),+ workdir=request.workdir,+ env=request.env,+ stdin_data=stdin_data,+ timeout=request.timeout_seconds,+ ),+ )++[email protected]("/sandboxes/{sandbox_id}/logs")+async def get_logs(sandbox_id: str):+ logs = await _mgr().get_logs(sandbox_id)+ return PlainTextResponse(logs)++[email protected]("/sandboxes/{sandbox_id}/upload", status_code=204)+async def upload_file(+ sandbox_id: str,+ file: UploadFile = File(...),+ sandbox_path: str = Query(...),+):+ """Upload a file into the sandbox filesystem.++ In process mode, this writes to the bind-mounted host path.+ """+ content = await file.read()+ await _mgr().upload_file_to_sandbox(sandbox_id, sandbox_path, content)+ return Response(status_code=204)++[email protected]("/sandboxes/{sandbox_id}/download")+async def download_file(+ sandbox_id: str,+ sandbox_path: str = Query(...),+):+ """Download a file from the sandbox filesystem."""+ try:+ content = await _mgr().download_file_from_sandbox(sandbox_id, sandbox_path)+ except FileNotFoundError:+ return JSONResponse(status_code=404, content={"error": f"File not found: {sandbox_path}"})++ return Response(content=content, media_type="application/octet-stream")++[email protected]("/sandboxes/{sandbox_id}/files")+async def list_files(+ sandbox_id: str,+ query: Annotated[ListFilesQuery, Query()],+):+ """List files and directories inside a sandbox path."""+ try:+ items = await _mgr().list_files_in_sandbox(+ sandbox_id=sandbox_id,+ request=SandboxListRequest(+ sandbox_path=query.sandbox_path,+ recursive=query.recursive,+ max_depth=query.max_depth,+ include_files=query.include_files,+ include_dirs=query.include_dirs,+ ),+ )+ except FileNotFoundError:+ return JSONResponse(+ status_code=404,+ content={"error": f"Directory not found: {query.sandbox_path}"},+ )+ return {"items": items}++[email protected]("/sandboxes/{sandbox_id}/search")+async def search_files(+ sandbox_id: str,+ sandbox_path: str = Query(...),+ pattern: str = Query(...),+ exclude_patterns: list[str] | None = Query(None),+):+ """Search files under a sandbox path with shell-style glob patterns."""+ try:+ items = await _mgr().search_files_in_sandbox(+ sandbox_id=sandbox_id,+ sandbox_path=sandbox_path,+ pattern=pattern,+ exclude_patterns=exclude_patterns,+ )+ except FileNotFoundError:+ return JSONResponse(status_code=404, content={"error": f"Directory not found: {sandbox_path}"})+ return {"items": items}diff --git a/jiuwenbox/src/jiuwenbox/server/runtime/__init__.py b/jiuwenbox/src/jiuwenbox/server/runtime/__init__.pynew file mode 100644index 0000000000..e69de29bb2diff --git a/jiuwenbox/src/jiuwenbox/server/runtime/base.py b/jiuwenbox/src/jiuwenbox/server/runtime/base.pynew file mode 100644index 0000000000..4482ad043d--- /dev/null+++ b/jiuwenbox/src/jiuwenbox/server/runtime/base.py@@ -0,0 +1,58 @@+"""Abstract base class for sandbox runtime adapters."""++from __future__ import annotations++import abc+from dataclasses import dataclass+from pathlib import Path++from jiuwenbox.models.sandbox import ExecResult+++@dataclass(frozen=True)+class RuntimeExecRequest:+ command: list[str]+ workdir: str | None = None+ env: dict[str, str] | None = None+ stdin_data: bytes | None = None+ timeout: float | None = None+++class RuntimeAdapter(abc.ABC):+ """Interface for sandbox runtime backends (process, docker, etc.)."""++ @abc.abstractmethod+ async def create(+ self,+ sandbox_id: str,+ policy_path: Path,+ command: list[str],+ workdir: str | None = None,+ env: dict[str, str] | None = None,+ ) -> int:+ """Create and start a sandboxed process. Returns the OS pid."""+ ...++ @abc.abstractmethod+ async def stop(self, sandbox_id: str, timeout: float = 10.0) -> None:+ """Gracefully stop a sandbox."""+ ...++ @abc.abstractmethod+ async def is_running(self, sandbox_id: str) -> bool:+ """Check if the sandbox process is still alive."""+ ...++ @abc.abstractmethod+ async def exec(+ self,+ sandbox_id: str,+ request: RuntimeExecRequest,+ ) -> ExecResult:+ """Execute a one-shot command inside a running sandbox."""+ ...++ @abc.abstractmethod+ async def cleanup(self, sandbox_id: str) -> None:+ """Release all resources for a sandbox."""+ ...diff --git a/jiuwenbox/src/jiuwenbox/server/runtime/process.py b/jiuwenbox/src/jiuwenbox/server/runtime/process.pynew file mode 100644index 0000000000..c54bd3a3a6--- /dev/null+++ b/jiuwenbox/src/jiuwenbox/server/runtime/process.py@@ -0,0 +1,412 @@+"""Process-based runtime adapter (bare-metal mode).++Spawns box-supervisor as a subprocess for each sandbox.+"""++from __future__ import annotations++import asyncio+import base64+import grp+import json+import logging+import os+import pwd+import shutil+import signal+import subprocess+import sys+import tempfile+from pathlib import Path++import yaml++from jiuwenbox.models.policy import NetworkMode, SecurityPolicy+from jiuwenbox.models.sandbox import ExecResult+from jiuwenbox.server.runtime.base import RuntimeAdapter, RuntimeExecRequest+from jiuwenbox.supervisor import network as network_module++logging.basicConfig(level=logging.INFO)+logger = logging.getLogger(__name__)+++class ProcessRuntime(RuntimeAdapter):+ """Runtime that spawns supervisor as a local process."""++ def __init__(self) -> None:+ self._processes: dict[str, subprocess.Popen] = {}+ self._policy_paths: dict[str, Path] = {}+ self._network_modes: dict[str, NetworkMode] = {}+ self._netns_names: dict[str, str] = {}+ self._directory_roots: dict[str, Path] = {}+ self._log_dir = Path.home() / ".jiuwenbox" / "sandbox_logs"+ self._log_dir.mkdir(parents=True, exist_ok=True)++ @staticmethod+ def _load_policy(policy_path: Path) -> SecurityPolicy:+ with open(policy_path) as f:+ data = yaml.safe_load(f)+ return SecurityPolicy.model_validate(data)++ @staticmethod+ def _build_supervisor_command(policy_path: Path, command: list[str]) -> list[str]:+ return [+ sys.executable, "-m", "jiuwenbox.supervisor.main",+ str(policy_path),+ *command,+ ]++ def _get_netns_name(self, sandbox_id: str) -> str:+ return self._netns_names.setdefault(+ sandbox_id,+ network_module.netns_name_for_sandbox(sandbox_id),+ )++ def _ensure_named_netns(self, sandbox_id: str, policy: SecurityPolicy) -> str | None:+ if policy.network.mode != NetworkMode.ISOLATED:+ return None++ namespace = self._get_netns_name(sandbox_id)+ if network_module.namespace_exists(namespace):+ return namespace++ network_module.create_named_namespace(namespace)+ try:+ network_module.setup_network_isolation(policy.network, namespace=namespace)+ except Exception:+ try:+ network_module.delete_named_namespace(namespace)+ except Exception:+ logger.warning(+ "Failed to rollback network namespace %s after setup error",+ namespace,+ exc_info=True,+ )+ raise++ return namespace++ @staticmethod+ def _directory_spec(directory: object) -> tuple[str, str | None]:+ if isinstance(directory, str):+ return directory, None+ return getattr(directory, "path"), getattr(directory, "permissions", None)++ @staticmethod+ def _host_directory_name(sandbox_path: str) -> str:+ encoded = base64.urlsafe_b64encode(sandbox_path.encode()).decode()+ return encoded.rstrip("=")++ @staticmethod+ def _sandbox_root_for_policy(policy: SecurityPolicy) -> Path:+ return Path(policy.sandbox_workspace).expanduser()++ @staticmethod+ def _resolve_backing_identity(policy: SecurityPolicy) -> tuple[int, int]:+ if policy.namespace.user:+ # With bwrap user namespaces, the server process uid is mapped to+ # the sandbox run uid. Keep lifecycle backing dirs owned by that uid.+ return os.getuid(), os.getgid()++ try:+ uid = pwd.getpwnam(policy.process.run_as_user).pw_uid+ except KeyError:+ uid = 65534+ try:+ gid = grp.getgrnam(policy.process.run_as_group).gr_gid+ except KeyError:+ gid = 65534+ return uid, gid++ @staticmethod+ def _apply_directory_ownership(path: Path, uid: int, gid: int) -> bool:+ try:+ os.chown(path, uid, gid)+ return True+ except PermissionError:+ logger.warning(+ "Failed to chown policy directory %s to %d:%d; keeping current owner",+ path,+ uid,+ gid,+ )+ return False++ @staticmethod+ def _apply_directory_permissions(path: Path, permissions: str | None) -> None:+ if permissions is None:+ return+ os.chmod(path, int(permissions, 8))++ @staticmethod+ def _ensure_writable_when_chown_unavailable(path: Path, owner_applied: bool) -> None:+ if owner_applied:+ return++ if path.stat().st_uid == os.getuid():+ return++ mode = path.stat().st_mode & 0o777+ if mode & 0o005 and not mode & 0o002:+ fallback_mode = mode | 0o002+ logger.warning(+ "Relaxing policy directory %s permissions from %s to %s because chown failed",+ path,+ oct(mode),+ oct(fallback_mode),+ )+ os.chmod(path, fallback_mode)++ def _ensure_policy_directories(+ self,+ sandbox_id: str,+ policy: SecurityPolicy,+ ) -> list[dict[str, str]]:+ directories = policy.filesystem_policy.directories+ if not directories:+ return []++ sandbox_root = self._sandbox_root_for_policy(policy)+ sandbox_root.mkdir(parents=True, exist_ok=True)+ directory_root = self._directory_roots.get(sandbox_id)+ if directory_root is None:+ directory_root = Path(tempfile.mkdtemp(+ prefix=f"{sandbox_id}-dirs-",+ dir=sandbox_root,+ ))+ self._directory_roots[sandbox_id] = directory_root+ else:+ directory_root.mkdir(parents=True, exist_ok=True)++ uid, gid = self._resolve_backing_identity(policy)+ binds: list[dict[str, str]] = []+ for directory in directories:+ sandbox_path, permissions = self._directory_spec(directory)+ host_path = directory_root / self._host_directory_name(sandbox_path)+ host_path.mkdir(parents=True, exist_ok=True)+ owner_applied = self._apply_directory_ownership(host_path, uid, gid)+ self._apply_directory_permissions(host_path, permissions)+ self._ensure_writable_when_chown_unavailable(host_path, owner_applied)+ binds.append({+ "host_path": str(host_path),+ "sandbox_path": sandbox_path,+ })+ return binds++ @staticmethod+ def _wrap_command_in_namespace(command: list[str], namespace: str | None) -> list[str]:+ if not namespace:+ return command+ return [network_module.IP_BINARY, "netns", "exec", namespace, *command]++ @staticmethod+ def _apply_runtime_env(+ process_env: dict[str, str],+ *,+ netns_name: str | None,+ directory_binds: list[dict[str, str]],+ ) -> None:+ if netns_name:+ process_env["JIUWENBOX_NETNS_READY"] = "1"+ if directory_binds:+ process_env["JIUWENBOX_DIRECTORY_BINDS"] = json.dumps(+ directory_binds,+ separators=(",", ":"),+ )++ def _network_mode_for_cleanup(self, sandbox_id: str) -> NetworkMode | None:+ mode = self._network_modes.get(sandbox_id)+ if mode is not None:+ return mode++ policy_path = self._policy_paths.get(sandbox_id)+ if policy_path is None or not policy_path.exists():+ return None++ try:+ mode = self._load_policy(policy_path).network.mode+ except Exception:+ logger.warning("Failed to reload policy for sandbox %s during cleanup", sandbox_id, exc_info=True)+ return None++ self._network_modes[sandbox_id] = mode+ return mode++ async def create(+ self,+ sandbox_id: str,+ policy_path: Path,+ command: list[str],+ workdir: str | None = None,+ env: dict[str, str] | None = None,+ ) -> int:+ existing = self._processes.get(sandbox_id)+ if existing is not None:+ if existing.poll() is None:+ raise RuntimeError(f"Sandbox {sandbox_id} already has a running process")+ self._processes.pop(sandbox_id, None)++ policy = self._load_policy(policy_path)+ self._network_modes[sandbox_id] = policy.network.mode+ netns_name = self._ensure_named_netns(sandbox_id, policy)+ directory_binds = self._ensure_policy_directories(sandbox_id, policy)++ # Build supervisor command+ supervisor_cmd = self._wrap_command_in_namespace(+ self._build_supervisor_command(policy_path, command),+ netns_name,+ )++ process_env = {**os.environ, **(env or {})}+ self._apply_runtime_env(+ process_env,+ netns_name=netns_name,+ directory_binds=directory_binds,+ )++ log_file = self._log_dir / f"{sandbox_id}.log"++ logger.info("Spawning supervisor for %s: %s", sandbox_id, supervisor_cmd)++ try:+ with open(log_file, "w", encoding="utf-8") as log_fd:+ proc = subprocess.Popen(+ supervisor_cmd,+ stdout=log_fd,+ stderr=subprocess.STDOUT,+ env=process_env,+ cwd=workdir,+ start_new_session=True,+ )+ except Exception:+ directory_root = self._directory_roots.pop(sandbox_id, None)+ if directory_root is not None:+ shutil.rmtree(directory_root, ignore_errors=True)+ if netns_name and network_module.namespace_exists(netns_name):+ network_module.delete_named_namespace(netns_name)+ self._network_modes.pop(sandbox_id, None)+ raise++ self._processes[sandbox_id] = proc+ self._policy_paths[sandbox_id] = Path(policy_path)+ logger.info("Supervisor started for %s (pid=%d)", sandbox_id, proc.pid)+ return proc.pid++ async def stop(self, sandbox_id: str, timeout: float = 10.0) -> None:+ proc = self._processes.get(sandbox_id)+ if proc is None:+ return+ if proc.poll() is not None:+ self._processes.pop(sandbox_id, None)+ return++ logger.info("Stopping sandbox %s (pid=%d)", sandbox_id, proc.pid)+ try:+ os.killpg(proc.pid, signal.SIGTERM)+ except ProcessLookupError:+ self._processes.pop(sandbox_id, None)+ return++ try:+ await asyncio.get_running_loop().run_in_executor(+ None, proc.wait, timeout,+ )+ except subprocess.TimeoutExpired:+ logger.warning("SIGTERM timeout for %s, killing", sandbox_id)+ try:+ os.killpg(proc.pid, signal.SIGKILL)+ except ProcessLookupError:+ self._processes.pop(sandbox_id, None)+ return+ await asyncio.get_running_loop().run_in_executor(None, proc.wait, 5.0)++ self._processes.pop(sandbox_id, None)++ async def is_running(self, sandbox_id: str) -> bool:+ proc = self._processes.get(sandbox_id)+ if proc is None:+ return False+ return proc.poll() is None++ async def exec(+ self,+ sandbox_id: str,+ request: RuntimeExecRequest,+ ) -> ExecResult:+ """Execute a command by spawning a new supervisor inside the sandbox netns."""+ policy_path = self._policy_paths.get(sandbox_id)+ if policy_path is None:+ return ExecResult(exit_code=1, stderr="No policy found for sandbox")++ netns_name = None+ if self._network_mode_for_cleanup(sandbox_id) == NetworkMode.ISOLATED:+ policy = self._load_policy(policy_path)+ netns_name = self._ensure_named_netns(sandbox_id, policy)+ else:+ policy = self._load_policy(policy_path)+ directory_binds = self._ensure_policy_directories(sandbox_id, policy)++ supervisor_cmd = self._wrap_command_in_namespace(+ self._build_supervisor_command(policy_path, list(request.command)),+ netns_name,+ )++ process_env = {**os.environ, **(request.env or {})}+ self._apply_runtime_env(+ process_env,+ netns_name=netns_name,+ directory_binds=directory_binds,+ )++ try:+ logger.info("Executing command in sandbox %s: %s", sandbox_id, supervisor_cmd)+ result = await asyncio.get_running_loop().run_in_executor(+ None,+ lambda: subprocess.run(+ supervisor_cmd,+ input=request.stdin_data,+ capture_output=True,+ timeout=request.timeout,+ env=process_env,+ cwd=request.workdir,+ ),+ )+ return ExecResult(+ exit_code=result.returncode,+ stdout=result.stdout.decode(errors="replace"),+ stderr=result.stderr.decode(errors="replace"),+ )+ except subprocess.TimeoutExpired:+ return ExecResult(exit_code=124, stderr="Command timed out")++ async def cleanup(self, sandbox_id: str) -> None:+ await self.stop(sandbox_id)+ self._processes.pop(sandbox_id, None)+ policy_path = self._policy_paths.pop(sandbox_id, None)+ network_mode = self._network_modes.pop(sandbox_id, None)+ if network_mode is None and policy_path is not None and policy_path.exists():+ try:+ network_mode = self._load_policy(policy_path).network.mode+ except Exception:+ logger.warning(+ "Failed to reload policy for sandbox %s during namespace cleanup",+ sandbox_id,+ exc_info=True,+ )++ if network_mode == NetworkMode.ISOLATED:+ namespace = self._netns_names.pop(+ sandbox_id,+ network_module.netns_name_for_sandbox(sandbox_id),+ )+ if network_module.namespace_exists(namespace):+ network_module.delete_named_namespace(namespace)+ else:+ self._netns_names.pop(sandbox_id, None)++ directory_root = self._directory_roots.pop(sandbox_id, None)+ if directory_root is not None and directory_root.exists():+ shutil.rmtree(directory_root, ignore_errors=True)++ log_file = self._log_dir / f"{sandbox_id}.log"+ log_file.unlink(missing_ok=True)diff --git a/jiuwenbox/src/jiuwenbox/server/sandbox_manager.py b/jiuwenbox/src/jiuwenbox/server/sandbox_manager.pynew file mode 100644index 0000000000..6f1eb656c0--- /dev/null+++ b/jiuwenbox/src/jiuwenbox/server/sandbox_manager.py@@ -0,0 +1,601 @@+"""Sandbox lifecycle manager.++Coordinates runtime adapters, policy engine, and audit logger to manage+the full lifecycle of sandboxes: create -> start -> stop -> delete.+Persists sandbox state to disk for crash recovery.+"""++from __future__ import annotations++import asyncio+import base64+import binascii+import json+import logging+import os+import textwrap+import uuid+from collections.abc import Mapping+from dataclasses import dataclass+from datetime import datetime, timezone+from pathlib import Path++from jiuwenbox.models.common import AuditEventType+from jiuwenbox.models.policy import SecurityPolicy+from jiuwenbox.models.sandbox import (+ ExecResult,+ PolicyMode,+ SandboxPhase,+ SandboxRef,+ SandboxSpec,+)+from jiuwenbox.server.audit_logger import AuditLogger+from jiuwenbox.server.policy_engine import PolicyEngine+from jiuwenbox.server.runtime.base import RuntimeAdapter, RuntimeExecRequest+from jiuwenbox.server.runtime.process import ProcessRuntime++logging.basicConfig(level=logging.INFO)+logger = logging.getLogger(__name__)++DEFAULT_POLICY_PATH_ENV = "JIUWENBOX_DEFAULT_POLICY_PATH"+++@dataclass(frozen=True)+class SandboxExecRequest:+ command: list[str]+ workdir: str | None = None+ env: dict[str, str] | None = None+ stdin_data: bytes | None = None+ timeout: float | None = None+++@dataclass(frozen=True)+class SandboxListRequest:+ sandbox_path: str+ recursive: bool = False+ max_depth: int | None = None+ include_files: bool = True+ include_dirs: bool = True+++class SandboxNotFoundError(Exception):+ def __init__(self, *args: object) -> None:+ super().__init__(*args)+ logger.error("%s: %s", self.__class__.__name__, str(self))+++class SandboxStateError(Exception):+ def __init__(self, *args: object) -> None:+ super().__init__(*args)+ logger.error("%s: %s", self.__class__.__name__, str(self))+++class SandboxManager:+ """Manages sandbox lifecycle and state."""++ def __init__(+ self,+ runtime: RuntimeAdapter | None = None,+ policy_engine: PolicyEngine | None = None,+ audit_logger: AuditLogger | None = None,+ state_dir: Path | None = None,+ default_policy_path: Path | None = None,+ ) -> None:+ self.runtime = runtime or ProcessRuntime()+ self.policy_engine = policy_engine or PolicyEngine()+ self.audit = audit_logger or AuditLogger()+ self.state_dir = state_dir or Path.home() / ".jiuwenbox" / "sandboxes"+ self.state_dir.mkdir(parents=True, exist_ok=True)+ self.default_policy_path = (+ Path(default_policy_path)+ if default_policy_path is not None+ else self._resolve_default_policy_path()+ )+ self.default_policy = self._load_default_policy()++ self._lock = asyncio.Lock()+ self._sandboxes: dict[str, SandboxRef] = {}+ self._policies: dict[str, SecurityPolicy] = {}+ self._load_state()++ @staticmethod+ def _resolve_default_policy_path() -> Path:+ env_path = os.environ.get(DEFAULT_POLICY_PATH_ENV)+ if env_path:+ return Path(env_path).expanduser()+ return Path(__file__).resolve().parents[3] / "configs" / "default-policy.yaml"++ def _load_default_policy(self) -> SecurityPolicy:+ if self.default_policy_path.exists():+ return self.policy_engine.load_policy_from_file(self.default_policy_path)++ logger.warning(+ "Default policy file not found at %s, falling back to SecurityPolicy defaults",+ self.default_policy_path,+ )+ return SecurityPolicy()++ def _resolve_effective_policy(+ self,+ policy_data: SecurityPolicy | Mapping[str, object] | None,+ policy_mode: PolicyMode,+ ) -> SecurityPolicy:+ base_policy = self.default_policy.model_copy(deep=True)+ if policy_data is None:+ return base_policy++ if isinstance(policy_data, SecurityPolicy):+ policy_payload: SecurityPolicy | Mapping[str, object] = policy_data+ else:+ policy_payload = dict(policy_data)++ if policy_mode == PolicyMode.APPEND:+ return self.policy_engine.merge_policy(base_policy, policy_payload)++ if isinstance(policy_payload, SecurityPolicy):+ return policy_payload.model_copy(deep=True)++ policy_payload.setdefault("sandbox_workspace", base_policy.sandbox_workspace)+ return SecurityPolicy.model_validate(policy_payload)++ def _load_state(self) -> None:+ """Load persisted sandbox state on startup."""+ for state_file in self.state_dir.glob("*.json"):+ try:+ data = json.loads(state_file.read_text())+ ref = SandboxRef.model_validate(data)+ self._sandboxes[ref.id] = ref+ logger.info("Loaded sandbox state: %s (%s)", ref.id, ref.phase.value)+ except Exception:+ logger.warning("Failed to load state from %s", state_file, exc_info=True)++ def _save_state(self, sandbox: SandboxRef) -> None:+ """Persist a single sandbox's state to disk."""+ path = self.state_dir / f"{sandbox.id}.json"+ path.write_text(sandbox.model_dump_json(indent=2))++ def _delete_state(self, sandbox_id: str) -> None:+ path = self.state_dir / f"{sandbox_id}.json"+ path.unlink(missing_ok=True)++ def _get_sandbox(self, sandbox_id: str) -> SandboxRef:+ ref = self._sandboxes.get(sandbox_id)+ if ref is None:+ raise SandboxNotFoundError(f"Sandbox '{sandbox_id}' not found")+ return ref++ async def create_sandbox(+ self,+ spec: SandboxSpec,+ command: list[str] | None = None,+ policy_data: SecurityPolicy | Mapping[str, object] | None = None,+ policy_mode: PolicyMode = PolicyMode.OVERRIDE,+ ) -> SandboxRef:+ """Create a new sandbox."""+ async with self._lock:+ sandbox_id = str(uuid.uuid4())[:12]+ effective_command = list(command or [])+ policy = self._resolve_effective_policy(policy_data, policy_mode)+ self.policy_engine.validate_policy(policy)+ # Create sandbox ref+ ref = SandboxRef(+ id=sandbox_id,+ phase=SandboxPhase.PROVISIONING,+ command=effective_command,+ workdir=spec.workdir,+ env=dict(spec.env),+ )+ self._sandboxes[sandbox_id] = ref+ self._policies[sandbox_id] = policy+ self._save_state(ref)++ self.audit.log(AuditEventType.SANDBOX_CREATED, sandbox_id)++ # Write resolved policy+ policy_path = self.policy_engine.write_sandbox_policy(sandbox_id, policy)+ self.audit.log(AuditEventType.POLICY_APPLIED, sandbox_id, policy_name=policy.name)++ # Start via runtime+ try:+ pid = await self.runtime.create(+ sandbox_id=sandbox_id,+ policy_path=policy_path,+ command=ref.command,+ workdir=ref.workdir,+ env=ref.env,+ )+ ref.phase = SandboxPhase.READY+ ref.pid = pid+ ref.started_at = datetime.now(timezone.utc)+ except Exception as e:+ ref.phase = SandboxPhase.ERROR+ ref.error_message = str(e)+ logger.error("Failed to create sandbox %s: %s", sandbox_id, e)++ self._save_state(ref)+ return ref++ async def get_sandbox(self, sandbox_id: str) -> SandboxRef:+ async with self._lock:+ ref = self._get_sandbox(sandbox_id)+ # Refresh running status+ if ref.phase == SandboxPhase.READY:+ if not await self.runtime.is_running(sandbox_id):+ ref.phase = SandboxPhase.STOPPED+ self._save_state(ref)+ return ref++ async def list_sandboxes(self) -> list[SandboxRef]:+ async with self._lock:+ return list(self._sandboxes.values())++ async def start_sandbox(self, sandbox_id: str) -> SandboxRef:+ async with self._lock:+ return await self._start_sandbox_unlocked(sandbox_id)++ async def _start_sandbox_unlocked(self, sandbox_id: str) -> SandboxRef:+ ref = self._get_sandbox(sandbox_id)+ if ref.phase == SandboxPhase.READY:+ if await self.runtime.is_running(sandbox_id):+ return ref++ policy = self._policies.get(sandbox_id)+ if policy is None:+ policy_path = self.policy_engine.get_sandbox_policy_path(sandbox_id)+ if policy_path:+ policy = self.policy_engine.load_policy_from_file(policy_path)+ else:+ raise SandboxStateError(f"No policy found for sandbox {sandbox_id}")++ policy_path = self.policy_engine.get_sandbox_policy_path(sandbox_id)+ if policy_path is None:+ policy_path = self.policy_engine.write_sandbox_policy(sandbox_id, policy)++ try:+ pid = await self.runtime.create(+ sandbox_id=sandbox_id,+ policy_path=policy_path,+ command=ref.command,+ workdir=ref.workdir,+ env=ref.env,+ )+ ref.phase = SandboxPhase.READY+ ref.pid = pid+ ref.started_at = datetime.now(timezone.utc)+ ref.error_message = None+ except Exception as e:+ logger.error("Failed to start sandbox %s: %s", sandbox_id, e, exc_info=True)+ ref.phase = SandboxPhase.ERROR+ ref.error_message = str(e)++ self._save_state(ref)+ self.audit.log(AuditEventType.SANDBOX_STARTED, sandbox_id)+ return ref++ async def stop_sandbox(self, sandbox_id: str) -> SandboxRef:+ async with self._lock:+ return await self._stop_sandbox_unlocked(sandbox_id)++ async def _stop_sandbox_unlocked(self, sandbox_id: str) -> SandboxRef:+ ref = self._get_sandbox(sandbox_id)+ await self.runtime.stop(sandbox_id)+ ref.phase = SandboxPhase.STOPPED+ ref.pid = None+ self._save_state(ref)+ self.audit.log(AuditEventType.SANDBOX_STOPPED, sandbox_id)+ return ref++ async def restart_sandbox(self, sandbox_id: str) -> SandboxRef:+ async with self._lock:+ await self._stop_sandbox_unlocked(sandbox_id)+ return await self._start_sandbox_unlocked(sandbox_id)++ async def delete_sandbox(self, sandbox_id: str) -> None:+ async with self._lock:+ ref = self._get_sandbox(sandbox_id)+ ref.phase = SandboxPhase.DELETING+ self._save_state(ref)++ await self.runtime.cleanup(sandbox_id)+ self.policy_engine.delete_sandbox_policy(sandbox_id)+ self.audit.log(AuditEventType.SANDBOX_DELETED, sandbox_id)++ self._sandboxes.pop(sandbox_id, None)+ self._policies.pop(sandbox_id, None)+ self._delete_state(sandbox_id)++ async def exec_in_sandbox(+ self,+ sandbox_id: str,+ request: SandboxExecRequest,+ ) -> ExecResult:+ async with self._lock:+ ref = self._get_sandbox(sandbox_id)+ if ref.phase != SandboxPhase.READY:+ raise SandboxStateError(+ f"Cannot exec in sandbox '{sandbox_id}': state is {ref.phase.value}"+ )++ self.audit.log(+ AuditEventType.EXEC_COMMAND, sandbox_id,+ command=request.command, workdir=request.workdir,+ )++ return await self.runtime.exec(+ sandbox_id,+ RuntimeExecRequest(+ command=request.command,+ workdir=request.workdir,+ env=request.env,+ stdin_data=request.stdin_data,+ timeout=request.timeout,+ ),+ )++ async def upload_file_to_sandbox(+ self,+ sandbox_id: str,+ sandbox_path: str,+ content: bytes,+ ) -> None:+ self.audit.log(+ AuditEventType.FILE_TRANSFER,+ sandbox_id,+ direction="upload",+ sandbox_path=sandbox_path,+ )++ encoded_content = base64.b64encode(content)+ result = await self.exec_in_sandbox(+ sandbox_id,+ SandboxExecRequest(+ command=[+ "/usr/bin/bash",+ "-c",+ (+ "set -euo pipefail; "+ 'target="$1"; '+ 'parent=$(/usr/bin/dirname -- "$target"); '+ '/usr/bin/mkdir -p -- "$parent"; '+ '/usr/bin/base64 -d > "$target"'+ ),+ "jiuwenbox-upload",+ sandbox_path,+ ],+ stdin_data=encoded_content,+ ),+ )+ if result.exit_code != 0:+ raise SandboxStateError(+ f"Failed to upload file to '{sandbox_path}': {result.stderr or result.stdout}"+ )++ async def download_file_from_sandbox(+ self,+ sandbox_id: str,+ sandbox_path: str,+ ) -> bytes:+ self.audit.log(+ AuditEventType.FILE_TRANSFER,+ sandbox_id,+ direction="download",+ sandbox_path=sandbox_path,+ )++ result = await self.exec_in_sandbox(+ sandbox_id,+ SandboxExecRequest(+ command=[+ "/usr/bin/bash",+ "-c",+ (+ "set -euo pipefail; "+ 'target="$1"; '+ 'if [ ! -e "$target" ]; then exit 44; fi; '+ 'if [ -d "$target" ]; then exit 45; fi; '+ '/usr/bin/base64 -w 0 -- "$target"'+ ),+ "jiuwenbox-download",+ sandbox_path,+ ],+ ),+ )+ if result.exit_code == 44:+ raise FileNotFoundError(sandbox_path)+ if result.exit_code == 45:+ raise SandboxStateError(f"Sandbox path '{sandbox_path}' is a directory")+ if result.exit_code != 0:+ raise SandboxStateError(+ f"Failed to download file from '{sandbox_path}': {result.stderr or result.stdout}"+ )++ try:+ return base64.b64decode(result.stdout.encode(), validate=True)+ except binascii.Error as exc:+ raise SandboxStateError(+ f"Failed to decode downloaded file from '{sandbox_path}'"+ ) from exc++ async def list_files_in_sandbox(+ self,+ sandbox_id: str,+ request: SandboxListRequest,+ ) -> list[dict[str, object]]:+ script = textwrap.dedent(+ """+ import datetime+ import json+ import os+ from pathlib import Path+ import sys++ root = Path(sys.argv[1])+ recursive = sys.argv[2] == "1"+ max_depth = None if sys.argv[3] == "" else int(sys.argv[3])+ include_files = sys.argv[4] == "1"+ include_dirs = sys.argv[5] == "1"++ if not root.exists():+ sys.exit(44)+ if not root.is_dir():+ sys.exit(45)++ if recursive:+ entries = root.rglob("*")+ else:+ entries = root.iterdir()++ items = []+ for entry in entries:+ try:+ stat = entry.stat()+ except OSError:+ continue++ rel_parts = entry.relative_to(root).parts+ if max_depth is not None and len(rel_parts) > max_depth:+ continue++ is_dir = entry.is_dir()+ if is_dir and not include_dirs:+ continue+ if not is_dir and not include_files:+ continue++ items.append({+ "name": entry.name,+ "path": str(entry),+ "size": 0 if is_dir else stat.st_size,+ "is_directory": is_dir,+ "modified_time": datetime.datetime.fromtimestamp(stat.st_mtime).isoformat(),+ "type": None if is_dir else os.path.splitext(entry.name)[1] or None,+ })++ items.sort(key=lambda item: item["path"])+ print(json.dumps(items, ensure_ascii=False))+ """+ ).strip()++ result = await self.exec_in_sandbox(+ sandbox_id,+ SandboxExecRequest(+ command=[+ "/usr/bin/python3",+ "-c",+ script,+ request.sandbox_path,+ "1" if request.recursive else "0",+ "" if request.max_depth is None else str(request.max_depth),+ "1" if request.include_files else "0",+ "1" if request.include_dirs else "0",+ ],+ ),+ )+ if result.exit_code == 44:+ raise FileNotFoundError(request.sandbox_path)+ if result.exit_code == 45:+ raise SandboxStateError(f"Sandbox path '{request.sandbox_path}' is not a directory")+ if result.exit_code != 0:+ raise SandboxStateError(+ f"Failed to list files in '{request.sandbox_path}': {result.stderr or result.stdout}"+ )+ return json.loads(result.stdout or "[]")++ async def search_files_in_sandbox(+ self,+ sandbox_id: str,+ sandbox_path: str,+ pattern: str,+ exclude_patterns: list[str] | None = None,+ ) -> list[dict[str, object]]:+ script = textwrap.dedent(+ """+ import datetime+ import fnmatch+ import json+ import os+ from pathlib import Path+ import sys++ root = Path(sys.argv[1])+ pattern = sys.argv[2]+ exclude_patterns = json.loads(sys.argv[3])++ if not root.exists():+ sys.exit(44)+ if not root.is_dir():+ sys.exit(45)++ items = []+ for entry in root.rglob("*"):+ if not entry.is_file():+ continue+ rel = str(entry.relative_to(root))+ if not (fnmatch.fnmatch(entry.name, pattern) or fnmatch.fnmatch(rel, pattern)):+ continue+ if any(fnmatch.fnmatch(entry.name, item) or fnmatch.fnmatch(rel, item) for item in exclude_patterns):+ continue++ try:+ stat = entry.stat()+ except OSError:+ continue++ items.append({+ "name": entry.name,+ "path": str(entry),+ "size": stat.st_size,+ "is_directory": False,+ "modified_time": datetime.datetime.fromtimestamp(stat.st_mtime).isoformat(),+ "type": os.path.splitext(entry.name)[1] or None,+ })++ items.sort(key=lambda item: item["path"])+ print(json.dumps(items, ensure_ascii=False))+ """+ ).strip()++ result = await self.exec_in_sandbox(+ sandbox_id,+ SandboxExecRequest(+ command=[+ "/usr/bin/python3",+ "-c",+ script,+ sandbox_path,+ pattern,+ json.dumps(exclude_patterns or []),+ ],+ ),+ )+ if result.exit_code == 44:+ raise FileNotFoundError(sandbox_path)+ if result.exit_code == 45:+ raise SandboxStateError(f"Sandbox path '{sandbox_path}' is not a directory")+ if result.exit_code != 0:+ raise SandboxStateError(+ f"Failed to search files in '{sandbox_path}': {result.stderr or result.stdout}"+ )+ return json.loads(result.stdout or "[]")++ async def get_logs(self, sandbox_id: str) -> str:+ async with self._lock:+ self._get_sandbox(sandbox_id)+ return self.audit.read_logs_raw(sandbox_id)++ async def get_policy(self, sandbox_id: str) -> SecurityPolicy | None:+ async with self._lock:+ policy = self._policies.get(sandbox_id)+ if policy is not None:+ return policy++ if self._sandboxes.get(sandbox_id) is None:+ return None++ policy_path = self.policy_engine.get_sandbox_policy_path(sandbox_id)+ if policy_path is None:+ return None++ policy = self.policy_engine.load_policy_from_file(policy_path)+ self._policies[sandbox_id] = policy+ return policydiff --git a/jiuwenbox/src/jiuwenbox/supervisor/__init__.py b/jiuwenbox/src/jiuwenbox/supervisor/__init__.pynew file mode 100644index 0000000000..e69de29bb2diff --git a/jiuwenbox/src/jiuwenbox/supervisor/bwrap.py b/jiuwenbox/src/jiuwenbox/supervisor/bwrap.pynew file mode 100644index 0000000000..6866103f62--- /dev/null+++ b/jiuwenbox/src/jiuwenbox/supervisor/bwrap.py@@ -0,0 +1,314 @@+"""Bubblewrap (bwrap) sandbox wrapper.++Translates a SecurityPolicy into bwrap command-line arguments and manages+the lifecycle of the sandboxed process.+"""++from __future__ import annotations++import logging+import signal+import subprocess+from dataclasses import dataclass, field+from typing import IO++from jiuwenbox.models.policy import (+ CapabilityPolicy,+ FilesystemPolicy,+ NetworkPolicy,+ NetworkMode,+ NamespacePolicy,+ ProcessPolicy,+ SecurityPolicy,+)++logging.basicConfig(level=logging.INFO)+logger = logging.getLogger(__name__)++BWRAP_BINARY = "/usr/bin/bwrap"+++def _normalize_capability(capability: str) -> str:+ capability = capability.strip().upper()+ if capability == "ALL" or capability.startswith("CAP_"):+ return capability+ return f"CAP_{capability}"+++def _same_path_bind_is_covered_by_root(src: str, dst: str) -> bool:+ return src == dst and dst != "/" and dst.startswith("/")+++@dataclass+class BwrapConfig:+ """Configuration that maps to bwrap CLI arguments."""++ command: list[str] = field(default_factory=list)+ uid: int | None = None+ gid: int | None = None++ # namespace isolation flags+ unshare_net: bool = True+ unshare_ipc: bool = True+ unshare_cgroup: bool = True+ unshare_pid: bool = True+ unshare_uts: bool = True+ unshare_user: bool = True+ cap_add: list[str] = field(default_factory=list)+ cap_drop: list[str] = field(default_factory=list)++ # filesystem+ rootfs: str | None = None+ ro_binds: list[tuple[str, str]] = field(default_factory=list)+ rw_binds: list[tuple[str, str]] = field(default_factory=list)+ dir_mounts: list[tuple[str, str | None]] = field(default_factory=list)+ tmpfs_mounts: list[str] = field(default_factory=list)+ dev_path: str = "/dev"+ proc_path: str = "/proc"++ # seccomp+ seccomp_fd: int | None = None++ # environment+ env: dict[str, str] = field(default_factory=dict)+ workdir: str | None = None++ # extra raw arguments+ extra_args: list[str] = field(default_factory=list)++ @classmethod+ def from_policy(cls, policy: SecurityPolicy, command: list[str]) -> BwrapConfig:+ """Build a BwrapConfig from a SecurityPolicy."""+ cfg = cls(command=command)+ cls._apply_filesystem(cfg, policy.filesystem_policy)+ cls._apply_process(cfg, policy.process)+ cls._apply_namespace(cfg, policy.namespace)+ cls._apply_capabilities(cfg, policy.capabilities)+ cls._apply_network(cfg, policy.network)+ return cfg++ def add_dir_mount(self, path: str, permissions: str | None = None) -> None:+ for index, (existing_path, existing_permissions) in enumerate(self.dir_mounts):+ if existing_path == path:+ if existing_permissions is None and permissions is not None:+ self.dir_mounts[index] = (path, permissions)+ return+ self.dir_mounts.append((path, permissions))++ @staticmethod+ def _apply_filesystem(cfg: BwrapConfig, fs: FilesystemPolicy) -> None:+ for path in fs.read_only:+ cfg.ro_binds.append((path, path))+ for path in fs.read_write:+ cfg.rw_binds.append((path, path))+ for mount in fs.bind_mounts:+ if mount.mode == "ro":+ cfg.ro_binds.append((mount.host_path, mount.sandbox_path))+ else:+ cfg.rw_binds.append((mount.host_path, mount.sandbox_path))++ @staticmethod+ def _apply_process(cfg: BwrapConfig, proc: ProcessPolicy) -> None:+ # Resolve user/group names to numeric IDs; fall back to 65534 (nobody)+ import pwd+ import grp++ try:+ cfg.uid = pwd.getpwnam(proc.run_as_user).pw_uid+ except KeyError:+ cfg.uid = 65534+ try:+ cfg.gid = grp.getgrnam(proc.run_as_group).gr_gid+ except KeyError:+ cfg.gid = 65534++ @staticmethod+ def _apply_namespace(cfg: BwrapConfig, namespace: NamespacePolicy) -> None:+ cfg.unshare_user = namespace.user+ cfg.unshare_pid = namespace.pid+ cfg.unshare_ipc = namespace.ipc+ cfg.unshare_cgroup = namespace.cgroup+ cfg.unshare_uts = namespace.uts++ @staticmethod+ def _apply_capabilities(cfg: BwrapConfig, capabilities: CapabilityPolicy) -> None:+ cfg.cap_add = [_normalize_capability(cap) for cap in capabilities.add]+ cfg.cap_drop = [_normalize_capability(cap) for cap in capabilities.drop]++ @staticmethod+ def _apply_network(cfg: BwrapConfig, net: NetworkPolicy) -> None:+ cfg.unshare_net = net.mode == NetworkMode.ISOLATED++ def to_args(self) -> list[str]:+ """Convert this config into a bwrap argument list."""+ args: list[str] = [BWRAP_BINARY]++ if self.unshare_user:+ args.append("--unshare-user")+ if self.unshare_pid:+ args.append("--unshare-pid")+ if self.unshare_net:+ args.append("--unshare-net")+ if self.unshare_ipc:+ args.append("--unshare-ipc")+ if self.unshare_cgroup:+ args.append("--unshare-cgroup")+ if self.unshare_uts:+ args.append("--unshare-uts")++ if self.unshare_user and self.uid is not None:+ args.extend(["--uid", str(self.uid)])+ if self.unshare_user and self.gid is not None:+ args.extend(["--gid", str(self.gid)])++ for cap in self.cap_add:+ args.extend(["--cap-add", cap])+ for cap in self.cap_drop:+ args.extend(["--cap-drop", cap])++ root_ro_binds = [(src, dst) for src, dst in self.ro_binds if dst == "/"]+ root_rw_binds = [(src, dst) for src, dst in self.rw_binds if dst == "/"]+ ro_binds = [(src, dst) for src, dst in self.ro_binds if dst != "/"]+ rw_binds = [(src, dst) for src, dst in self.rw_binds if dst != "/"]+ if root_rw_binds:+ # A read-write root bind already exposes every absolute child path.+ # Re-binding private children such as /home/<user>/.jiuwenclaw can+ # fail because bwrap may open sources after entering userns.+ # Keep synthetic binds whose source differs from the sandbox path,+ # such as the Landlock launcher mounted into /run.+ ro_binds = [+ (src, dst)+ for src, dst in ro_binds+ if not _same_path_bind_is_covered_by_root(src, dst)+ ]+ rw_binds = [+ (src, dst)+ for src, dst in rw_binds+ if not _same_path_bind_is_covered_by_root(src, dst)+ ]+ elif root_ro_binds:+ # Read-only child binds are redundant under a read-only root; keep+ # read-write children because they intentionally override root RO.+ ro_binds = [+ (src, dst)+ for src, dst in ro_binds+ if not _same_path_bind_is_covered_by_root(src, dst)+ ]++ # A root bind must be applied before more specific mounts. Otherwise a+ # policy entry for "/" hides bwrap-created /proc, /dev, /tmp, /run, etc.+ for src, dst in root_ro_binds:+ args.extend(["--ro-bind", src, dst])+ for src, dst in root_rw_binds:+ args.extend(["--bind", src, dst])++ # mount /proc and /dev+ args.extend(["--proc", self.proc_path])+ args.extend(["--dev", self.dev_path])++ # create directories before binding over them+ for path, permissions in self.dir_mounts:+ if permissions:+ args.extend(["--perms", permissions])+ args.extend(["--dir", path])++ # read-only binds+ for src, dst in ro_binds:+ args.extend(["--ro-bind", src, dst])++ # read-write binds+ for src, dst in rw_binds:+ args.extend(["--bind", src, dst])++ # tmpfs mounts+ for path in self.tmpfs_mounts:+ args.extend(["--tmpfs", path])++ if self.seccomp_fd is not None:+ args.extend(["--seccomp", str(self.seccomp_fd)])++ if self.workdir:+ args.extend(["--chdir", self.workdir])++ args.extend(self.extra_args)++ # environment variables+ for key, value in self.env.items():+ args.extend(["--setenv", key, value])++ # the command to run inside the sandbox+ args.extend(self.command)++ return args+++class BwrapProcess:+ """Manages a bubblewrap sandboxed process."""++ def __init__(self, config: BwrapConfig) -> None:+ self._config = config+ self._process: subprocess.Popen | None = None++ @property+ def pid(self) -> int | None:+ return self._process.pid if self._process else None++ @property+ def returncode(self) -> int | None:+ if self._process is None:+ return None+ return self._process.returncode++ @property+ def is_running(self) -> bool:+ if self._process is None:+ return False+ return self._process.poll() is None++ def start(+ self,+ stdin: int | IO | None = None,+ stdout: int | IO | None = None,+ stderr: int | IO | None = None,+ ) -> None:+ """Spawn the bwrap process."""+ if self._process is not None and self.is_running:+ raise RuntimeError("Process already running")++ args = self._config.to_args()+ logger.debug("Starting bwrap with args: %s", args)+ pass_fds = ()+ if self._config.seccomp_fd is not None:+ pass_fds = (self._config.seccomp_fd,)++ self._process = subprocess.Popen(+ args,+ stdin=stdin,+ stdout=stdout,+ stderr=stderr,+ pass_fds=pass_fds,+ )++ def wait(self, timeout: float | None = None) -> int:+ """Wait for the process to exit and return the exit code."""+ if self._process is None:+ raise RuntimeError("Process not started")+ self._process.wait(timeout=timeout)+ return self._process.returncode++ def stop(self, timeout: float = 10.0) -> int | None:+ """Gracefully stop: SIGTERM then SIGKILL after timeout."""+ if self._process is None or not self.is_running:+ return self.returncode++ logger.info("Sending SIGTERM to bwrap pid %d", self._process.pid)+ self._process.send_signal(signal.SIGTERM)++ try:+ self._process.wait(timeout=timeout)+ except subprocess.TimeoutExpired:+ logger.warning("SIGTERM timeout, sending SIGKILL to pid %d", self._process.pid)+ self._process.kill()+ self._process.wait(timeout=5.0)++ return self._process.returncodediff --git a/jiuwenbox/src/jiuwenbox/supervisor/landlock.py b/jiuwenbox/src/jiuwenbox/supervisor/landlock.pynew file mode 100644index 0000000000..60f146429c--- /dev/null+++ b/jiuwenbox/src/jiuwenbox/supervisor/landlock.py@@ -0,0 +1,65 @@+"""Landlock policy helpers shared by the supervisor and launcher."""++from __future__ import annotations++import base64+import ctypes+import json++from jiuwenbox.models.policy import SecurityPolicy++LANDLOCK_CREATE_RULESET = 444+LANDLOCK_ADD_RULE = 445+LANDLOCK_RESTRICT_SELF = 446+LANDLOCK_RULE_PATH_BENEATH = 1+++def _syscall(nr: int, *args: int) -> int:+ libc = ctypes.CDLL("libc.so.6", use_errno=True)+ fn = libc.syscall+ fn.restype = ctypes.c_long+ return fn(nr, *[ctypes.c_long(a) for a in args])+++def detect_landlock_abi() -> int:+ """Return the supported Landlock ABI version, or 0 when unavailable."""+ try:+ result = _syscall(LANDLOCK_CREATE_RULESET, 0, 0, 1)+ except OSError:+ return 0+ return max(result, 0)+++def encode_landlock_payload(policy: SecurityPolicy) -> str:+ """Build a compact payload consumed by the in-sandbox Landlock launcher."""+ read_only = list(policy.filesystem_policy.read_only)+ read_write = list(policy.filesystem_policy.read_write)+ for directory in policy.filesystem_policy.directories:+ if isinstance(directory, str):+ read_write.append(directory)+ else:+ read_write.append(directory.path)+ for mount in policy.filesystem_policy.bind_mounts:+ if mount.mode == "ro":+ read_only.append(mount.sandbox_path)+ else:+ read_write.append(mount.sandbox_path)+ # These pseudo-filesystems are created by bwrap and are needed by common runtimes.+ read_only.append("/proc")+ read_write.append("/dev")++ payload = {+ "compatibility": policy.landlock.compatibility,+ "read_only": _dedupe(read_only),+ "read_write": _dedupe(read_write),+ }+ raw = json.dumps(payload, separators=(",", ":")).encode()+ return base64.urlsafe_b64encode(raw).decode()+++def _dedupe(values: list[str]) -> list[str]:+ result: list[str] = []+ for value in values:+ if value not in result:+ result.append(value)+ return resultdiff --git a/jiuwenbox/src/jiuwenbox/supervisor/landlock_launcher.py b/jiuwenbox/src/jiuwenbox/supervisor/landlock_launcher.pynew file mode 100644index 0000000000..8cc6bbddcd--- /dev/null+++ b/jiuwenbox/src/jiuwenbox/supervisor/landlock_launcher.py@@ -0,0 +1,196 @@+"""In-sandbox Landlock launcher.++This module is executed inside bubblewrap after mounts/namespaces are in place.+It applies Landlock to itself, then execs the target command so restrictions are+inherited by the sandboxed program.+"""++from __future__ import annotations++import base64+import ctypes+import json+import logging+import os+import sys++LANDLOCK_CREATE_RULESET = 444+LANDLOCK_ADD_RULE = 445+LANDLOCK_RESTRICT_SELF = 446+LANDLOCK_RULE_PATH_BENEATH = 1+PR_SET_NO_NEW_PRIVS = 38++logging.basicConfig(level=logging.INFO)+logger = logging.getLogger(__name__)++READ_FILE = 1 << 2+READ_DIR = 1 << 3+EXECUTE = 1 << 0+WRITE_FILE = 1 << 1+REMOVE_DIR = 1 << 4+REMOVE_FILE = 1 << 5+MAKE_CHAR = 1 << 6+MAKE_DIR = 1 << 7+MAKE_REG = 1 << 8+MAKE_SOCK = 1 << 9+MAKE_FIFO = 1 << 10+MAKE_BLOCK = 1 << 11+MAKE_SYM = 1 << 12+REFER = 1 << 13+TRUNCATE = 1 << 14++BASE_READ_ONLY_ACCESS = READ_FILE | READ_DIR | EXECUTE+BASE_READ_WRITE_ACCESS = (+ BASE_READ_ONLY_ACCESS+ | WRITE_FILE+ | REMOVE_DIR+ | REMOVE_FILE+ | MAKE_CHAR+ | MAKE_DIR+ | MAKE_REG+ | MAKE_SOCK+ | MAKE_FIFO+ | MAKE_BLOCK+ | MAKE_SYM+)+ABI2_ACCESS = REFER+ABI3_ACCESS = TRUNCATE+++def _access_masks(abi: int) -> tuple[int, int]:+ read_only = BASE_READ_ONLY_ACCESS+ read_write = BASE_READ_WRITE_ACCESS+ if abi >= 2:+ read_write |= ABI2_ACCESS+ if abi >= 3:+ read_write |= ABI3_ACCESS+ return read_only, read_write+++libc = ctypes.CDLL("libc.so.6", use_errno=True)+syscall = libc.syscall+syscall.restype = ctypes.c_long+prctl = libc.prctl+prctl.restype = ctypes.c_int+++class LandlockRulesetAttr(ctypes.Structure):+ _fields_ = [("handled_access_fs", ctypes.c_uint64)]+++class LandlockPathBeneathAttr(ctypes.Structure):+ _fields_ = [+ ("allowed_access", ctypes.c_uint64),+ ("parent_fd", ctypes.c_int32),+ ]+++class LandlockHardRequirementError(Exception):+ """Raised when hard-required Landlock setup cannot continue."""+++def _syscall(nr: int, *args: int) -> int:+ return syscall(nr, *[ctypes.c_long(arg) for arg in args])+++def _decode_payload(value: str) -> dict:+ return json.loads(base64.urlsafe_b64decode(value.encode()).decode())+++def _detect_abi() -> int:+ return max(_syscall(LANDLOCK_CREATE_RULESET, 0, 0, 1), 0)+++def _fail_or_continue(payload: dict, message: str) -> bool:+ if payload["compatibility"] == "hard_requirement":+ logger.error("%s", message)+ raise LandlockHardRequirementError(message)+ return False+++def _add_rule(ruleset_fd: int, path: str, access: int) -> None:+ if not os.path.exists(path):+ return++ fd = os.open(path, os.O_PATH | os.O_CLOEXEC, 0o600)+ try:+ rule = LandlockPathBeneathAttr()+ rule.allowed_access = access+ rule.parent_fd = fd+ ret = _syscall(+ LANDLOCK_ADD_RULE,+ ruleset_fd,+ LANDLOCK_RULE_PATH_BENEATH,+ ctypes.addressof(rule),+ 0,+ )+ if ret < 0:+ raise OSError(ctypes.get_errno(), f"landlock_add_rule failed for {path}")+ finally:+ os.close(fd)+++def apply_landlock(payload: dict) -> None:+ if payload["compatibility"] == "disabled":+ return++ abi = _detect_abi()+ if abi <= 0:+ _fail_or_continue(payload, "Landlock is not supported")+ return+ read_only_access, read_write_access = _access_masks(abi)++ if prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0) != 0:+ _fail_or_continue(payload, "Failed to set no_new_privs")+ return++ attr = LandlockRulesetAttr()+ attr.handled_access_fs = read_write_access+ ruleset_fd = _syscall(+ LANDLOCK_CREATE_RULESET,+ ctypes.addressof(attr),+ ctypes.sizeof(attr),+ 0,+ )+ if ruleset_fd < 0:+ _fail_or_continue(payload, "landlock_create_ruleset failed")+ return++ try:+ try:+ for path in payload["read_only"]:+ _add_rule(ruleset_fd, path, read_only_access)+ for path in payload["read_write"]:+ _add_rule(ruleset_fd, path, read_write_access)+ except OSError as exc:+ _fail_or_continue(payload, str(exc))+ return++ if _syscall(LANDLOCK_RESTRICT_SELF, ruleset_fd, 0) < 0:+ _fail_or_continue(payload, "landlock_restrict_self failed")+ finally:+ os.close(ruleset_fd)+++def main() -> int:+ if len(sys.argv) < 4 or sys.argv[2] != "--":+ logger.error(+ "Usage: landlock_launcher.py <payload> -- <command> [args...]",+ )+ return 2++ payload = _decode_payload(sys.argv[1])+ command = sys.argv[3:]+ try:+ apply_landlock(payload)+ os.execvp(command[0], command)+ except LandlockHardRequirementError:+ return 126+ except OSError as exc:+ logger.error("Failed to exec command %s: %s", command[0], exc)+ return 127+ return 0+++if __name__ == "__main__":+ raise SystemExit(main())diff --git a/jiuwenbox/src/jiuwenbox/supervisor/main.py b/jiuwenbox/src/jiuwenbox/supervisor/main.pynew file mode 100644index 0000000000..1284a88f7c--- /dev/null+++ b/jiuwenbox/src/jiuwenbox/supervisor/main.py@@ -0,0 +1,193 @@+"""box-supervisor main entry point."""++from __future__ import annotations++import asyncio+import json+import logging+import os+import signal+import sys+import tempfile+from pathlib import Path++import yaml++from jiuwenbox.models.policy import NetworkMode, SecurityPolicy+from jiuwenbox.supervisor.bwrap import BwrapConfig, BwrapProcess+from jiuwenbox.supervisor.landlock import encode_landlock_payload+from jiuwenbox.supervisor.seccomp import open_seccomp_filter++logging.basicConfig(level=logging.INFO)+logger = logging.getLogger(__name__)+++class Supervisor:+ """Manages a single sandboxed process with full isolation."""++ def __init__(+ self,+ policy: SecurityPolicy,+ command: list[str],+ workdir: str | None = None,+ env: dict[str, str] | None = None,+ ) -> None:+ self.policy = policy+ self.command = command+ self.workdir = workdir+ self.env = env or {}+ self._bwrap: BwrapProcess | None = None+ self._seccomp_fd: int | None = None+ self._landlock_launcher_path: Path | None = None+ self._shutting_down = False++ @classmethod+ def from_policy_file(cls, path: str | Path, command: list[str], **kwargs) -> Supervisor:+ """Create a Supervisor from a policy YAML file."""+ policy_path = Path(path)+ with open(policy_path) as f:+ data = yaml.safe_load(f)+ policy = SecurityPolicy.model_validate(data)+ return cls(policy=policy, command=command, **kwargs)++ def _setup_seccomp(self, config: BwrapConfig) -> None:+ """Generate seccomp filter and configure bwrap to use it."""+ fd = open_seccomp_filter(self.policy.syscall)+ self._seccomp_fd = fd+ config.seccomp_fd = fd++ def _close_seccomp_fd(self) -> None:+ if self._seccomp_fd is None:+ return+ try:+ os.close(self._seccomp_fd)+ except OSError:+ logger.warning("Failed to close seccomp fd", exc_info=True)+ finally:+ self._seccomp_fd = None++ def _setup_network_namespace(self, config: BwrapConfig) -> None:+ """Reuse the pre-configured runtime namespace when one is provided."""+ if self.policy.network.mode != NetworkMode.ISOLATED:+ return++ if os.environ.get("JIUWENBOX_NETNS_READY") == "1":+ config.unshare_net = False++ @staticmethod+ def _setup_policy_directory_mounts(config: BwrapConfig) -> None:+ """Attach server-created lifecycle directories to their sandbox paths."""+ raw_binds = os.environ.get("JIUWENBOX_DIRECTORY_BINDS")+ if not raw_binds:+ return++ for entry in json.loads(raw_binds):+ config.rw_binds.append((entry["host_path"], entry["sandbox_path"]))++ def _setup_landlock_launcher(self, config: BwrapConfig, temp_dir: Path) -> None:+ """Run a fixed in-sandbox launcher that applies Landlock before exec."""+ if self.policy.landlock.compatibility == "disabled":+ return++ launcher_path = Path(__file__).with_name("landlock_launcher.py")+ temp_launcher_path = temp_dir / "jiuwenbox-landlock-launcher.py"+ temp_launcher_path.write_bytes(launcher_path.read_bytes())+ os.chmod(temp_launcher_path, 0o644)+ self._landlock_launcher_path = temp_launcher_path++ sandbox_launcher_path = "/run/jiuwenbox-landlock-launcher.py"+ config.add_dir_mount("/run")+ config.ro_binds.append((str(self._landlock_launcher_path), sandbox_launcher_path))+ config.command = [+ "/usr/bin/python3",+ sandbox_launcher_path,+ encode_landlock_payload(self.policy),+ "--",+ *config.command,+ ]++ async def start(self) -> int:+ """Start the sandbox and return the exit code of the target process."""+ with tempfile.TemporaryDirectory(prefix="jiuwenbox-landlock-") as temp_dir:+ try:+ # 1. Build bwrap config from policy+ config = BwrapConfig.from_policy(self.policy, self.command)+ config.env.update(self.env)+ if self.workdir:+ config.workdir = self.workdir+ self._setup_network_namespace(config)+ self._setup_policy_directory_mounts(config)+ self._setup_landlock_launcher(config, Path(temp_dir))++ # 2. Setup seccomp+ try:+ self._setup_seccomp(config)+ except Exception:+ logger.warning("Failed to setup seccomp, continuing without it", exc_info=True)++ # 3. Register signal handlers+ loop = asyncio.get_running_loop()+ for sig in (signal.SIGTERM, signal.SIGINT):+ loop.add_signal_handler(sig, lambda s=sig: asyncio.create_task(self._shutdown(s)))++ # 4. Start bwrap process+ self._bwrap = BwrapProcess(config)+ self._bwrap.start()+ self._close_seccomp_fd()++ # 5. Wait for process to exit+ return await asyncio.get_running_loop().run_in_executor(+ None, self._bwrap.wait+ )+ finally:+ self._close_seccomp_fd()+ await self._cleanup()++ async def _shutdown(self, sig: signal.Signals) -> None:+ """Graceful shutdown on signal."""+ if self._shutting_down:+ return+ self._shutting_down = True++ logger.info("Received signal %s, shutting down", sig.name)+ if self._bwrap:+ self._bwrap.stop()+ await self._cleanup()++ async def _cleanup(self) -> None:+ """Clean up resources."""+ self._close_seccomp_fd()+ if self._landlock_launcher_path and self._landlock_launcher_path.exists():+ self._landlock_launcher_path.unlink(missing_ok=True)+++async def run_supervisor(+ policy_path: str,+ command: list[str],+ workdir: str | None = None,+ env: dict[str, str] | None = None,+) -> int:+ """High-level entry point: load policy and run the sandbox."""+ supervisor = Supervisor.from_policy_file(policy_path, command, workdir=workdir, env=env)+ return await supervisor.start()+++def main() -> int:+ """CLI entry point for box-supervisor (used by box-server to spawn)."""+ logging.basicConfig(+ level=logging.INFO,+ format="[%(asctime)s] %(name)s %(levelname)s: %(message)s",+ )++ if len(sys.argv) < 3:+ logger.error("Usage: %s <policy.yaml> <command> [args...]", sys.argv[0])+ return 1++ policy_path = sys.argv[1]+ command = sys.argv[2:]++ return asyncio.run(run_supervisor(policy_path, command))+++if __name__ == "__main__":+ raise SystemExit(main())diff --git a/jiuwenbox/src/jiuwenbox/supervisor/network.py b/jiuwenbox/src/jiuwenbox/supervisor/network.pynew file mode 100644index 0000000000..20ba1b3576--- /dev/null+++ b/jiuwenbox/src/jiuwenbox/supervisor/network.py@@ -0,0 +1,315 @@+"""Network isolation via iptables rules inside an unshared network namespace.++This module configures iptables rules within a sandbox network namespace.+"""++from __future__ import annotations++import ipaddress+import logging+import socket+import subprocess+from dataclasses import dataclass, field++from jiuwenbox.models.policy import NetworkPolicy, NetworkMode, NetworkRulePolicy++logging.basicConfig(level=logging.INFO)+logger = logging.getLogger(__name__)++IP_BINARY = "/usr/sbin/ip"+IPTABLES_BINARY = "/usr/sbin/iptables"+IP6TABLES_BINARY = "/usr/sbin/ip6tables"+++@dataclass+class ResolvedNetworkRules:+ """Pre-resolved iptables rules ready to apply."""++ allowed_ips: list[str] = field(default_factory=list)+ blocked_ips: list[str] = field(default_factory=list)+ allowed_ports: list[int] = field(default_factory=list)+ blocked_ports: list[int] = field(default_factory=list)+ default_deny: bool = True+++def resolve_domains(domains: list[str]) -> list[str]:+ """Resolve domain names to IP addresses.++ Supports wildcard domains like '*.example.com' by stripping the+ wildcard prefix and resolving the base domain.+ """+ ips: list[str] = []+ for domain in domains:+ # Strip wildcard prefix for resolution+ clean = domain.lstrip("*.")+ try:+ results = socket.getaddrinfo(clean, None, socket.AF_UNSPEC, socket.SOCK_STREAM)+ for family, _, _, _, sockaddr in results:+ ip = sockaddr[0]+ if ip not in ips:+ ips.append(ip)+ logger.debug("Resolved %s -> %s", domain, ips[-len(results):])+ except socket.gaierror:+ logger.warning("Failed to resolve domain: %s", domain)+ return ips+++def normalize_ips(values: list[str]) -> list[str]:+ """Normalize IP/CIDR entries into iptables-ready values."""+ resolved: list[str] = []+ for value in values:+ try:+ normalized = str(ipaddress.ip_network(value, strict=False))+ if normalized not in resolved:+ resolved.append(normalized)+ except ValueError:+ logger.warning("Ignoring invalid IP/CIDR rule: %s", value)+ return resolved+++def build_network_rules(policy: NetworkRulePolicy) -> ResolvedNetworkRules:+ """Resolve domains/IPs and build a direction-agnostic network rule set."""+ rules = ResolvedNetworkRules(+ default_deny=(policy.default == "deny"),+ allowed_ports=list(policy.allowed_ports),+ blocked_ports=list(policy.blocked_ports),+ )++ rules.blocked_ips = [+ *normalize_ips(policy.blocked_ips),+ *resolve_domains(policy.blocked_domains),+ ]+ rules.allowed_ips = [+ *normalize_ips(policy.allowed_ips),+ *resolve_domains(policy.allowed_domains),+ ]++ # Remove entries that appear in both allowed and blocked (blocked wins).+ blocked_set = set(rules.blocked_ips)+ rules.allowed_ips = [ip for ip in rules.allowed_ips if ip not in blocked_set]++ return rules+++def _run_iptables(+ args: list[str],+ check: bool = True,+ namespace: str | None = None,+ ip_version: int = 4,+) -> subprocess.CompletedProcess:+ """Run an iptables/ip6tables command."""+ binary = IP6TABLES_BINARY if ip_version == 6 else IPTABLES_BINARY+ cmd = [binary] + args+ if namespace:+ cmd = [IP_BINARY, "netns", "exec", namespace, *cmd]+ logger.debug("%s: %s", binary, " ".join(cmd))+ return subprocess.run(cmd, capture_output=True, text=True, check=check)+++def _ip_version(value: str) -> int:+ """Return 4 or 6 for an IP/CIDR rule value."""+ return ipaddress.ip_network(value, strict=False).version+++def _run_iptables_for_ip(+ args: list[str],+ ip_value: str,+ check: bool = True,+ namespace: str | None = None,+) -> subprocess.CompletedProcess:+ """Run a firewall rule in the table matching the IP/CIDR version."""+ return _run_iptables(+ args,+ check=check,+ namespace=namespace,+ ip_version=_ip_version(ip_value),+ )+++def _run_iptables_both(+ args: list[str],+ check: bool = True,+ namespace: str | None = None,+) -> None:+ """Run a protocol-agnostic firewall rule for both IPv4 and IPv6."""+ _run_iptables(args, check=check, namespace=namespace, ip_version=4)+ _run_iptables(args, check=check, namespace=namespace, ip_version=6)+++def _run_ip(+ args: list[str],+ check: bool = True,+ namespace: str | None = None,+) -> subprocess.CompletedProcess:+ """Run an ip command."""+ cmd = [IP_BINARY] + args+ if namespace:+ cmd = [IP_BINARY, "netns", "exec", namespace, *cmd]+ logger.debug("ip: %s", " ".join(cmd))+ return subprocess.run(cmd, capture_output=True, text=True, check=check)+++def netns_name_for_sandbox(sandbox_id: str) -> str:+ """Return the deterministic network namespace name for a sandbox."""+ return f"jiuwenbox-{sandbox_id}"+++def namespace_exists(namespace: str) -> bool:+ """Check whether a named network namespace already exists."""+ result = subprocess.run(+ [IP_BINARY, "netns", "list"],+ capture_output=True,+ text=True,+ check=False,+ )+ if result.returncode != 0:+ return False++ return any(line.split(maxsplit=1)[0] == namespace for line in result.stdout.splitlines())+++def create_named_namespace(namespace: str) -> None:+ """Create a persistent named network namespace."""+ subprocess.run([IP_BINARY, "netns", "add", namespace], check=True, capture_output=True, text=True)+++def delete_named_namespace(namespace: str) -> None:+ """Delete a persistent named network namespace."""+ subprocess.run(+ [IP_BINARY, "netns", "delete", namespace],+ check=True,+ capture_output=True,+ text=True,+ )+++def setup_loopback(namespace: str | None = None) -> None:+ """Bring up the loopback interface inside the network namespace."""+ _run_ip(["link", "set", "lo", "up"], namespace=namespace)+++def build_egress_rules(egress: NetworkRulePolicy) -> ResolvedNetworkRules:+ """Resolve egress policy into iptables-ready rules."""+ return build_network_rules(egress)+++def build_ingress_rules(ingress: NetworkRulePolicy) -> ResolvedNetworkRules:+ """Resolve ingress policy into iptables-ready rules."""+ return build_network_rules(ingress)+++def _apply_egress_rules(rules: ResolvedNetworkRules, namespace: str | None = None) -> None:+ """Apply outbound network rules inside the current namespace."""+ _run_iptables_both(["-A", "OUTPUT", "-o", "lo", "-j", "ACCEPT"], namespace=namespace)+ # Allow established/related connections+ _run_iptables_both(["-A", "OUTPUT", "-m", "state", "--state",+ "ESTABLISHED,RELATED", "-j", "ACCEPT"], namespace=namespace)++ for port in rules.blocked_ports:+ _run_iptables_both(+ ["-A", "OUTPUT", "-p", "tcp", "--dport", str(port), "-j", "DROP"],+ namespace=namespace,+ )++ if not rules.default_deny:+ for ip in rules.blocked_ips:+ _run_iptables_for_ip(["-A", "OUTPUT", "-d", ip, "-j", "DROP"], ip, namespace=namespace)+ return++ # Allow DNS (needed for domain resolution within the sandbox)+ _run_iptables_both(["-A", "OUTPUT", "-p", "udp", "--dport", "53", "-j", "ACCEPT"], namespace=namespace)+ _run_iptables_both(["-A", "OUTPUT", "-p", "tcp", "--dport", "53", "-j", "ACCEPT"], namespace=namespace)++ # Block explicitly blocked IPs first (higher priority)+ for ip in rules.blocked_ips:+ _run_iptables_for_ip(["-A", "OUTPUT", "-d", ip, "-j", "DROP"], ip, namespace=namespace)++ # Allow traffic to resolved IPs on allowed ports+ for ip in rules.allowed_ips:+ if rules.allowed_ports:+ for port in rules.allowed_ports:+ _run_iptables_for_ip([+ "-A", "OUTPUT", "-d", ip, "-p", "tcp",+ "--dport", str(port), "-j", "ACCEPT",+ ], ip, namespace=namespace)+ else:+ _run_iptables_for_ip(["-A", "OUTPUT", "-d", ip, "-j", "ACCEPT"], ip, namespace=namespace)++ # Default drop for everything else+ _run_iptables_both(["-A", "OUTPUT", "-j", "DROP"], namespace=namespace)++ logger.info(+ "Network egress rules applied: %d allowed IPs, %d blocked IPs, allowed ports %s, blocked ports %s",+ len(rules.allowed_ips), len(rules.blocked_ips), rules.allowed_ports, rules.blocked_ports,+ )+++def _apply_ingress_rules(rules: ResolvedNetworkRules, namespace: str | None = None) -> None:+ """Apply inbound network rules inside the current namespace."""+ _run_iptables_both(["-A", "INPUT", "-m", "state", "--state",+ "ESTABLISHED,RELATED", "-j", "ACCEPT"], namespace=namespace)++ for ip in rules.blocked_ips:+ _run_iptables_for_ip(["-A", "INPUT", "-s", ip, "-j", "DROP"], ip, namespace=namespace)+ for port in rules.blocked_ports:+ _run_iptables_both(+ ["-A", "INPUT", "-p", "tcp", "--dport", str(port), "-j", "DROP"],+ namespace=namespace,+ )++ if not rules.default_deny:+ _run_iptables_both(["-A", "INPUT", "-j", "ACCEPT"], namespace=namespace)+ return++ if rules.allowed_ips and rules.allowed_ports:+ for ip in rules.allowed_ips:+ for port in rules.allowed_ports:+ _run_iptables_for_ip([+ "-A", "INPUT", "-s", ip, "-p", "tcp",+ "--dport", str(port), "-j", "ACCEPT",+ ], ip, namespace=namespace)+ elif rules.allowed_ips:+ for ip in rules.allowed_ips:+ _run_iptables_for_ip(["-A", "INPUT", "-s", ip, "-j", "ACCEPT"], ip, namespace=namespace)+ elif rules.allowed_ports:+ for port in rules.allowed_ports:+ _run_iptables_both(+ ["-A", "INPUT", "-p", "tcp", "--dport", str(port), "-j", "ACCEPT"],+ namespace=namespace,+ )++ _run_iptables_both(["-A", "INPUT", "-j", "DROP"], namespace=namespace)++ logger.info(+ "Network ingress rules applied: %d allowed IPs, %d blocked IPs, allowed ports %s, blocked ports %s",+ len(rules.allowed_ips),+ len(rules.blocked_ips),+ rules.allowed_ports,+ rules.blocked_ports,+ )+++def apply_iptables_rules(+ egress_rules: ResolvedNetworkRules,+ ingress_rules: ResolvedNetworkRules,+ namespace: str | None = None,+) -> None:+ """Apply iptables rules inside the current (unshared) network namespace."""+ setup_loopback(namespace=namespace)+ _apply_egress_rules(egress_rules, namespace=namespace)+ _apply_ingress_rules(ingress_rules, namespace=namespace)+++def setup_network_isolation(policy: NetworkPolicy, namespace: str | None = None) -> None:+ """Top-level entry point for network isolation setup.++ Called from within the sandbox namespace after bwrap --unshare-net or+ from the host against a pre-created named namespace.+ """+ if policy.mode == NetworkMode.HOST:+ logger.info("Network mode is 'host', skipping isolation")+ return++ egress_rules = build_egress_rules(policy.egress)+ ingress_rules = build_ingress_rules(policy.ingress)+ apply_iptables_rules(egress_rules, ingress_rules, namespace=namespace)diff --git a/jiuwenbox/src/jiuwenbox/supervisor/seccomp.py b/jiuwenbox/src/jiuwenbox/supervisor/seccomp.pynew file mode 100644index 0000000000..084cb8295a--- /dev/null+++ b/jiuwenbox/src/jiuwenbox/supervisor/seccomp.py@@ -0,0 +1,198 @@+"""Seccomp BPF filter generation for sandbox syscall restriction.++Generates binary seccomp-bpf programs that can be loaded via bwrap --seccomp.+The BPF program is written to an anonymous memfd whose fd is passed to bwrap.+"""++from __future__ import annotations++import logging+import os+import struct+from pathlib import Path++from jiuwenbox.models.policy import SyscallPolicy++logging.basicConfig(level=logging.INFO)+logger = logging.getLogger(__name__)++# ── BPF constants (linux/bpf_common.h, linux/seccomp.h) ──++BPF_LD = 0x00+BPF_W = 0x00+BPF_ABS = 0x20+BPF_JMP = 0x05+BPF_JEQ = 0x10+BPF_K = 0x00+BPF_RET = 0x06++SECCOMP_RET_ALLOW = 0x7FFF_0000+SECCOMP_RET_ERRNO = 0x0005_0000+SECCOMP_RET_KILL_PROCESS = 0x8000_0000+SECCOMP_RET_LOG = 0x7FFC_0000++ERRNO_EPERM = 1+ERRNO_ENOSYS = 38++AUDIT_ARCH_X86_64 = 0xC000_003E+AUDIT_ARCH_AARCH64 = 0xC000_00B7++# offsetof(struct seccomp_data, nr)+SECCOMP_DATA_NR_OFFSET = 0+# offsetof(struct seccomp_data, arch)+SECCOMP_DATA_ARCH_OFFSET = 4+++def _get_syscall_numbers() -> dict[str, int]:+ """Load the syscall number table for the current architecture.++ Falls back to a built-in x86_64 subset if /usr/include headers are absent.+ """+ table: dict[str, int] = {}++ # Try to parse from unistd_64.h (common on x86_64 Linux)+ for header in [+ Path("/usr/include/asm/unistd_64.h"),+ Path("/usr/include/x86_64-linux-gnu/asm/unistd_64.h"),+ Path("/usr/include/asm-generic/unistd.h"),+ ]:+ if header.exists():+ try:+ for line in header.read_text().splitlines():+ line = line.strip()+ if line.startswith("#define __NR_"):+ parts = line.split()+ if len(parts) >= 3:+ name = parts[1].removeprefix("__NR_")+ try:+ table[name] = int(parts[2])+ except ValueError:+ continue+ if table:+ return table+ except OSError:+ continue++ # Fallback: x86_64 subset covering the syscalls we care about+ table = {+ "read": 0, "write": 1, "open": 2, "close": 3, "stat": 4,+ "fstat": 5, "lstat": 6, "poll": 7, "lseek": 8, "mmap": 9,+ "mprotect": 10, "munmap": 11, "brk": 12, "ioctl": 16,+ "access": 21, "pipe": 22, "select": 23, "sched_yield": 24,+ "dup": 32, "dup2": 33, "pause": 34, "nanosleep": 35,+ "getpid": 39, "socket": 41, "connect": 42, "accept": 43,+ "sendto": 44, "recvfrom": 45, "bind": 49, "listen": 50,+ "clone": 56, "fork": 57, "vfork": 58, "execve": 59, "exit": 60,+ "wait4": 61, "kill": 62, "uname": 63, "fcntl": 72,+ "flock": 73, "fsync": 74, "getcwd": 79, "chdir": 80,+ "mkdir": 83, "rmdir": 84, "link": 86, "unlink": 87,+ "chmod": 90, "chown": 92, "getuid": 102, "getgid": 104,+ "geteuid": 107, "getegid": 108,+ "ptrace": 101, "mount": 165, "umount2": 166, "reboot": 169,+ "swapon": 167, "swapoff": 168, "pivot_root": 155,+ "kexec_load": 246, "kexec_file_load": 320,+ "unshare": 272, "setns": 308, "clone3": 435,+ "userfaultfd": 323, "perf_event_open": 298, "bpf": 321,+ "add_key": 248, "request_key": 249, "keyctl": 250,+ "io_uring_setup": 425, "io_uring_enter": 426, "io_uring_register": 427,+ "open_by_handle_at": 304, "name_to_handle_at": 303,+ "init_module": 175, "finit_module": 313, "delete_module": 176,+ "acct": 163, "nfsservctl": 180, "lookup_dcookie": 212,+ }+ return table+++def _bpf_stmt(code: int, k: int) -> bytes:+ """Encode a single BPF instruction (8 bytes)."""+ return struct.pack("<HBBI", code, 0, 0, k)+++def _bpf_jump(code: int, k: int, jt: int, jf: int) -> bytes:+ return struct.pack("<HBBI", code, jt, jf, k)+++def build_seccomp_filter(policy: SyscallPolicy) -> bytes:+ """Build a seccomp-bpf binary filter from a SyscallPolicy.++ Returns raw bytes suitable for writing to a memfd and passing to+ bwrap via --seccomp <fd>.+ """+ blocked_names = set(policy.blocked)++ syscall_table = _get_syscall_numbers()+ blocked_nrs: list[int] = []+ for name in blocked_names:+ if name in syscall_table:+ blocked_nrs.append(syscall_table[name])+ else:+ logger.warning("Unknown syscall '%s', skipping", name)++ blocked_nrs.sort()+ return _assemble_bpf(blocked_nrs)+++def _assemble_bpf(blocked_nrs: list[int]) -> bytes:+ """Assemble a BPF program that blocks the given syscall numbers.++ Structure:+ 1. Validate arch == x86_64+ 2. Load syscall number+ 3. For each blocked nr: if match -> return configured errno+ 4. Default: ALLOW+ """+ syscall_table = _get_syscall_numbers()+ clone3_nr = syscall_table.get("clone3")+ errno_actions: dict[int, int] = {}+ for nr in blocked_nrs:+ # pthread_create in recent glibc probes clone3 first and only falls back+ # to clone when clone3 looks unavailable. Return ENOSYS instead of EPERM+ # so runtimes like Node.js can still create threads via clone.+ errno_actions[nr] = ERRNO_ENOSYS if nr == clone3_nr else ERRNO_EPERM++ action_values = list(dict.fromkeys(errno_actions.values()))+ prog = bytearray()++ # Load arch+ prog += _bpf_stmt(BPF_LD | BPF_W | BPF_ABS, SECCOMP_DATA_ARCH_OFFSET)+ # If arch != x86_64 -> kill (jump over next instruction if equal)+ prog += _bpf_jump(BPF_JMP | BPF_JEQ | BPF_K, AUDIT_ARCH_X86_64, 1, 0)+ prog += _bpf_stmt(BPF_RET | BPF_K, SECCOMP_RET_KILL_PROCESS)++ # Load syscall number+ prog += _bpf_stmt(BPF_LD | BPF_W | BPF_ABS, SECCOMP_DATA_NR_OFFSET)++ # For each blocked syscall: jump to deny if match+ n = len(blocked_nrs)+ for i, nr in enumerate(blocked_nrs):+ action_index = action_values.index(errno_actions[nr])+ jump_offset = (n - i) + action_index+ # If match -> jump to the errno block.+ # If no match -> fall through to next check+ prog += _bpf_jump(BPF_JMP | BPF_JEQ | BPF_K, nr, jump_offset, 0)++ # Default: allow+ prog += _bpf_stmt(BPF_RET | BPF_K, SECCOMP_RET_ALLOW)++ # Deny blocks.+ for errno in action_values:+ prog += _bpf_stmt(BPF_RET | BPF_K, SECCOMP_RET_ERRNO | errno)++ return bytes(prog)+++def open_seccomp_filter(policy: SyscallPolicy) -> int:+ """Build the seccomp filter and return an fd positioned at the start."""+ data = build_seccomp_filter(policy)+ if not hasattr(os, "memfd_create"):+ raise RuntimeError("os.memfd_create is required for seccomp filters")++ fd = os.memfd_create("jiuwenbox-seccomp", getattr(os, "MFD_CLOEXEC", 0x0001))+ try:+ offset = 0+ while offset < len(data):+ offset += os.write(fd, data[offset:])+ os.lseek(fd, 0, os.SEEK_SET)+ except Exception:+ os.close(fd)+ raise+ return fddiff --git a/jiuwenbox/tests/__init__.py b/jiuwenbox/tests/__init__.pynew file mode 100644index 0000000000..e69de29bb2diff --git a/jiuwenbox/tests/conftest.py b/jiuwenbox/tests/conftest.pynew file mode 100644index 0000000000..6632be1ec0--- /dev/null+++ b/jiuwenbox/tests/conftest.py@@ -0,0 +1,33 @@+"""Shared test fixtures."""++from __future__ import annotations++import os++import pytest++from jiuwenbox.models.policy import SecurityPolicy+++def pytest_addoption(parser):+ parser.addoption(+ "--server-endpoint",+ action="store",+ default=None,+ help="Run server API tests against an external server endpoint. Defaults to 127.0.0.1:8321.",+ )+++def server_endpoint(pytestconfig) -> str:+ return (+ pytestconfig.getoption("server_endpoint")+ or os.environ.get("JIUWENBOX_TEST_SERVER")+ or "127.0.0.1:8321"+ )+++def default_policy() -> SecurityPolicy:+ """Return the default policy."""+ return SecurityPolicy()diff --git a/jiuwenbox/tests/integration/__init__.py b/jiuwenbox/tests/integration/__init__.pynew file mode 100644index 0000000000..e69de29bb2diff --git a/jiuwenbox/tests/integration/test_server_api_default.py b/jiuwenbox/tests/integration/test_server_api_default.pynew file mode 100644index 0000000000..15c3dfcb5a--- /dev/null+++ b/jiuwenbox/tests/integration/test_server_api_default.py@@ -0,0 +1,1533 @@+"""Integration tests for box-server API endpoints."""++import logging+import textwrap++import httpx+import pytest++LONG_RUNNING_COMMAND = ["/usr/bin/python3", "-c", "import time; time.sleep(3600)"]+logger = logging.getLogger(__name__)+++class SandboxTrackingClient:+ """Track sandboxes created during a test and clean them up afterwards."""++ def __init__(self, client):+ self._client = client+ self._created_ids: list[str] = []++ def __getattr__(self, name: str):+ return getattr(self._client, name)++ def post(self, url, *args, **kwargs):+ response = self._client.post(url, *args, **kwargs)+ if str(url).rstrip("/") == "/api/v1/sandboxes" and response.status_code == 201:+ try:+ sandbox_id = response.json().get("id")+ except Exception:+ sandbox_id = None+ if sandbox_id:+ self._created_ids.append(sandbox_id)+ return response++ def delete(self, url, *args, **kwargs):+ response = self._client.delete(url, *args, **kwargs)+ sandbox_id = self._sandbox_id_from_delete_url(url)+ if sandbox_id and response.status_code in (200, 202, 204, 404):+ self._created_ids = [item for item in self._created_ids if item != sandbox_id]+ return response++ def cleanup_sandboxes(self) -> None:+ for sandbox_id in reversed(self._created_ids):+ try:+ self._client.delete(f"/api/v1/sandboxes/{sandbox_id}")+ except Exception as exc:+ logger.warning("Failed to cleanup sandbox %s: %s", sandbox_id, exc)+ self._created_ids.clear()++ @staticmethod+ def _sandbox_id_from_delete_url(url) -> str | None:+ path = str(url).split("?", 1)[0].rstrip("/")+ prefix = "/api/v1/sandboxes/"+ if not path.startswith(prefix):+ return None+ suffix = path[len(prefix):]+ if "/" in suffix:+ return None+ return suffix or None+++def _normalize_endpoint(endpoint: str) -> str:+ return endpoint if "://" in endpoint else f"http://{endpoint}"+++def _sandbox_health_url(server_endpoint: str) -> str:+ return f"{_normalize_endpoint(server_endpoint).rstrip('/')}/health"+++def _capability_check_script(cap_bit: int) -> str:+ return textwrap.dedent(+ f"""+ cap_eff = 0+ with open("/proc/self/status") as f:+ for line in f:+ if line.startswith("CapEff:"):+ cap_eff = int(line.split()[1], 16)+ break+ print("yes" if cap_eff & (1 << {cap_bit}) else "no")+ """+ ).strip()+++def _loopback_ingress_script(expect_success: bool) -> str:+ connect_block = textwrap.dedent(+ """+ sock = socket.create_connection(("127.0.0.1", port), timeout=1)+ conn, _ = srv.accept()+ conn.sendall(b"ingress-ok")+ conn.close()+ print(sock.recv(64).decode())+ sock.close()+ """+ ).strip()+ if not expect_success:+ connect_block = textwrap.dedent(+ """+ try:+ sock = socket.create_connection(("127.0.0.1", port), timeout=1)+ conn, _ = srv.accept()+ conn.sendall(b"ingress-ok")+ conn.close()+ print(sock.recv(64).decode())+ sock.close()+ print("unexpected-success")+ sys.exit(0)+ except Exception as exc:+ print(type(exc).__name__)+ sys.exit(7)+ """+ ).strip()++ return "\n".join([+ "import socket",+ "import sys",+ "",+ "port = int(sys.argv[1])",+ "",+ "srv = socket.socket(socket.AF_INET, socket.SOCK_STREAM)",+ "srv.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)",+ 'srv.bind(("127.0.0.1", port))',+ "srv.listen(1)",+ connect_block,+ "srv.close()",+ "",+ ])+++def client(server_endpoint):+ with httpx.Client(base_url=_normalize_endpoint(server_endpoint), timeout=30.0) as external:+ tracking = SandboxTrackingClient(external)+ try:+ yield tracking+ finally:+ tracking.cleanup_sandboxes()+++def create_sandbox_with_policy(client):+ def factory(+ *,+ name_prefix: str,+ policy: dict,+ policy_mode: str = "override",+ command: list[str] | None = None,+ ) -> dict:+ response = client.post("/api/v1/sandboxes", json={+ "command": command or LONG_RUNNING_COMMAND,+ "policy_mode": policy_mode,+ "policy": policy,+ })+ assert response.status_code == 201, response.text+ sandbox = response.json()+ assert sandbox["phase"] == "ready", sandbox+ return sandbox++ return factory+++class TestHealthEndpoint:+ @staticmethod+ def test_health(client):+ resp = client.get("/health")+ assert resp.status_code == 200+ data = resp.json()+ assert data["status"] == "ok"+ assert "version" in data+ assert "landlock_supported" in data+ assert "sandboxes_active" in data+++class TestSandboxCRUD:+ @staticmethod+ def test_list_sandboxes_empty(client):+ resp = client.get("/api/v1/sandboxes")+ assert resp.status_code == 200+ assert resp.json() == []++ @staticmethod+ def test_create_sandbox(client):+ resp = client.post("/api/v1/sandboxes", json={+ "command": ["/usr/bin/echo", "hello"],+ })+ assert resp.status_code == 201+ data = resp.json()+ assert "id" in data+ assert "name" not in data+ assert data["phase"] in ("provisioning", "ready", "error")++ @staticmethod+ def test_list_sandboxes_after_create(client):+ create_resp = client.post("/api/v1/sandboxes", json={"command": ["/usr/bin/echo"]})+ sandbox_id = create_resp.json()["id"]+ resp = client.get("/api/v1/sandboxes")+ assert resp.status_code == 200+ data = resp.json()+ assert any(item["id"] == sandbox_id for item in data)+ assert len(data) == 1++ @staticmethod+ def test_get_sandbox(client):+ create_resp = client.post("/api/v1/sandboxes", json={+ "command": ["/usr/bin/echo"],+ })+ sandbox_id = create_resp.json()["id"]++ resp = client.get(f"/api/v1/sandboxes/{sandbox_id}")+ assert resp.status_code == 200+ data = resp.json()+ assert data["id"] == sandbox_id+ assert "name" not in data++ @staticmethod+ def test_get_nonexistent_sandbox(client):+ resp = client.get("/api/v1/sandboxes/nonexistent")+ assert resp.status_code == 404++ @staticmethod+ def test_delete_sandbox(client):+ create_resp = client.post("/api/v1/sandboxes", json={+ "command": ["/usr/bin/echo"],+ })+ sandbox_id = create_resp.json()["id"]++ resp = client.delete(f"/api/v1/sandboxes/{sandbox_id}")+ assert resp.status_code == 204++ resp = client.get(f"/api/v1/sandboxes/{sandbox_id}")+ assert resp.status_code == 404+++class TestSandboxLifecycle:+ @staticmethod+ def test_start_stopped_sandbox(client):+ create_resp = client.post("/api/v1/sandboxes", json={+ "command": ["/usr/bin/sleep", "3600"],+ })+ sandbox_id = create_resp.json()["id"]++ stop_resp = client.post(f"/api/v1/sandboxes/{sandbox_id}/stop")+ assert stop_resp.status_code == 200+ assert stop_resp.json()["phase"] == "stopped"++ start_resp = client.post(f"/api/v1/sandboxes/{sandbox_id}/start")+ assert start_resp.status_code == 200+ assert start_resp.json()["phase"] == "ready", start_resp.json()++ @staticmethod+ def test_stop_sandbox(client):+ create_resp = client.post("/api/v1/sandboxes", json={+ "command": ["/usr/bin/sleep", "3600"],+ })+ sandbox_id = create_resp.json()["id"]++ resp = client.post(f"/api/v1/sandboxes/{sandbox_id}/stop")+ assert resp.status_code == 200+ assert resp.json()["phase"] == "stopped"++ @staticmethod+ def test_restart_sandbox(client):+ create_resp = client.post("/api/v1/sandboxes", json={+ "command": ["/usr/bin/sleep", "3600"],+ })+ sandbox_id = create_resp.json()["id"]++ resp = client.post(f"/api/v1/sandboxes/{sandbox_id}/restart")+ assert resp.status_code == 200+ assert resp.json()["phase"] == "ready"++ @staticmethod+ def test_get_logs(client):+ create_resp = client.post("/api/v1/sandboxes", json={+ "command": ["/usr/bin/echo"],+ })+ sandbox_id = create_resp.json()["id"]++ resp = client.get(f"/api/v1/sandboxes/{sandbox_id}/logs")+ assert resp.status_code == 200+++class TestPolicyAPI:+ @staticmethod+ def test_get_sandbox_policy(client):+ create_resp = client.post("/api/v1/sandboxes", json={+ "command": ["/usr/bin/echo"],+ })+ sandbox_id = create_resp.json()["id"]++ resp = client.get(f"/api/v1/policies/{sandbox_id}")+ assert resp.status_code == 200+ data = resp.json()+ assert data["version"] == 1+ assert data["name"] == "server-default"+ assert "resources" not in data+ assert data["filesystem_policy"]["directories"] == [{'path': '/home', 'permissions': '0755'},+ {'path': '/tmp', 'permissions': '1777'}]+ assert data["filesystem_policy"]["read_only"] == ["/usr", "/lib", "/lib64", "/etc", "/opt"]+ assert data["filesystem_policy"]["bind_mounts"] == []+ assert data["process"]["run_as_user"] == "sandbox"+ assert data["process"]["run_as_group"] == "sandbox"+ assert data["namespace"] == {+ "user": True,+ "pid": True,+ "ipc": True,+ "cgroup": True,+ "uts": True,+ }+ assert data["capabilities"] == {"add": [], "drop": []}+ assert data["landlock"]["compatibility"] == "best_effort"+ assert data["network"]["mode"] == "host"+ assert data["network"]["egress"]["allowed_domains"] == ["baidu.com"]+ assert data["network"]["egress"]["allowed_ips"] == ["127.0.0.1/32", "::1/128"]+ assert data["network"]["egress"]["blocked_ips"] == ["169.254.169.254/32"]+ assert data["network"]["egress"]["blocked_ports"] == [22]+ assert data["network"]["egress"]["default"] == "allow"+ assert data["network"]["egress"]["blocked_domains"] == ["ip.me"]+ assert data["network"]["egress"]["allowed_ports"] == [443, 80]+ assert data["network"]["ingress"]["default"] == "deny"+ assert data["network"]["ingress"]["allowed_domains"] == ["localhost"]+ assert data["network"]["ingress"]["allowed_ips"] == ["127.0.0.1/32", "::1/128"]+ assert data["network"]["ingress"]["blocked_ips"] == []+ assert data["network"]["ingress"]["allowed_ports"] == [8080]+ assert data["network"]["ingress"]["blocked_ports"] == [22]+ assert "profile" not in data["syscall"]+ assert "mount" in data["syscall"]["blocked"]+ assert "kexec_file_load" in data["syscall"]["blocked"]++ @staticmethod+ def test_append_policy_merges_with_server_default(client):+ create_resp = client.post("/api/v1/sandboxes", json={+ "command": ["/usr/bin/echo"],+ "policy_mode": "append",+ "policy": {+ "name": "appended-policy",+ "filesystem_policy": {+ "directories": [{"path": "/tmp/appended-dir", "permissions": "0700"}],+ "read_only": ["/var/log"],+ "read_write": ["/var/tmp"],+ "bind_mounts": [{+ "host_path": "/tmp",+ "sandbox_path": "/tmp",+ "mode": "rw",+ }],+ },+ "network": {+ "egress": {+ "allowed_domains": ["extra.example.com"],+ "allowed_ips": ["203.0.113.10/32"],+ },+ "ingress": {+ "allowed_ips": ["10.0.0.0/8"],+ "allowed_ports": [9090],+ },+ },+ "process": {+ "run_as_user": "root",+ "run_as_group": "root",+ },+ "namespace": {+ "pid": False,+ "uts": False,+ },+ "capabilities": {+ "add": ["CAP_NET_RAW"],+ "drop": [],+ },+ "landlock": {+ "compatibility": "disabled",+ },+ "syscall": {+ "blocked": ["getpid"],+ },+ },+ })+ sandbox_id = create_resp.json()["id"]++ resp = client.get(f"/api/v1/policies/{sandbox_id}")+ assert resp.status_code == 200+ data = resp.json()+ assert data["name"] == "appended-policy"+ assert data["network"]["egress"]["allowed_domains"] == [+ "baidu.com",+ "extra.example.com",+ ]+ assert data["network"]["egress"]["allowed_ips"] == [+ "127.0.0.1/32",+ "::1/128",+ "203.0.113.10/32",+ ]+ assert data["network"]["egress"]["blocked_ips"] == ["169.254.169.254/32"]+ assert data["network"]["egress"]["blocked_ports"] == [22]+ assert data["network"]["ingress"]["allowed_domains"] == ["localhost"]+ assert data["network"]["ingress"]["allowed_ips"] == [+ "127.0.0.1/32",+ "::1/128",+ "10.0.0.0/8",+ ]+ assert data["network"]["ingress"]["allowed_ports"] == [8080, 9090]+ assert data["filesystem_policy"]["read_only"] == [+ "/usr",+ "/lib",+ "/lib64",+ "/etc",+ "/opt",+ "/var/log",+ ]+ assert data["filesystem_policy"]["read_write"] == ["/", "/var/tmp"]+ assert data["filesystem_policy"]["directories"] == [{'path': '/home', 'permissions': '0755'},+ {'path': '/tmp', 'permissions': '1777'},+ {"path": "/tmp/appended-dir", "permissions": "0700"}]+ assert data["filesystem_policy"]["bind_mounts"] == [{+ "host_path": "/tmp",+ "sandbox_path": "/tmp",+ "mode": "rw",+ }]+ assert data["process"]["run_as_user"] == "root"+ assert data["process"]["run_as_group"] == "root"+ assert data["namespace"] == {+ "user": True,+ "pid": False,+ "ipc": True,+ "cgroup": True,+ "uts": False,+ }+ assert data["capabilities"]["add"] == ["CAP_NET_RAW"]+ assert data["capabilities"]["drop"] == []+ assert data["landlock"]["compatibility"] == "disabled"+ assert "getpid" in data["syscall"]["blocked"]+ assert "mount" in data["syscall"]["blocked"]++ @staticmethod+ def test_override_policy_replaces_server_default(client):+ create_resp = client.post("/api/v1/sandboxes", json={+ "command": ["/usr/bin/echo"],+ "policy_mode": "override",+ "policy": {+ "name": "override-policy",+ "filesystem_policy": {+ "directories": [{+ "path": "/tmp/override-dir",+ "permissions": "0700",+ }],+ "read_only": ["/usr"],+ "read_write": ["/var/tmp"],+ },+ "network": {+ "mode": "host",+ "egress": {+ "default": "deny",+ "allowed_domains": ["override.example.com"],+ "allowed_ips": ["198.51.100.10/32"],+ "blocked_ips": ["198.51.100.11/32"],+ "allowed_ports": [80],+ "blocked_ports": [25],+ },+ "ingress": {+ "default": "allow",+ "allowed_ips": ["10.0.0.0/8"],+ "blocked_ips": ["10.0.5.0/24"],+ "allowed_ports": [9090],+ "blocked_ports": [22],+ },+ },+ "process": {+ "run_as_user": "root",+ "run_as_group": "root",+ },+ "namespace": {+ "user": True,+ "pid": False,+ "ipc": False,+ "cgroup": False,+ "uts": False,+ },+ "capabilities": {+ "add": ["CAP_NET_RAW"],+ "drop": [],+ },+ "landlock": {+ "compatibility": "disabled",+ },+ "syscall": {+ "blocked": ["getppid"],+ },+ },+ })+ sandbox_id = create_resp.json()["id"]++ resp = client.get(f"/api/v1/policies/{sandbox_id}")+ assert resp.status_code == 200+ data = resp.json()+ assert data["name"] == "override-policy"+ assert data["network"]["mode"] == "host"+ assert data["network"]["egress"]["allowed_domains"] == ["override.example.com"]+ assert data["network"]["egress"]["allowed_ips"] == ["198.51.100.10/32"]+ assert data["network"]["egress"]["blocked_ips"] == ["198.51.100.11/32"]+ assert data["network"]["egress"]["blocked_ports"] == [25]+ assert data["network"]["ingress"]["default"] == "allow"+ assert data["network"]["ingress"]["allowed_ips"] == ["10.0.0.0/8"]+ assert data["network"]["ingress"]["blocked_ips"] == ["10.0.5.0/24"]+ assert data["network"]["ingress"]["allowed_ports"] == [9090]+ assert data["network"]["ingress"]["blocked_ports"] == [22]+ assert data["filesystem_policy"]["read_only"] == ["/usr"]+ assert data["filesystem_policy"]["read_write"] == ["/var/tmp"]+ assert data["filesystem_policy"]["directories"] == [{+ "path": "/tmp/override-dir",+ "permissions": "0700",+ }]+ assert data["process"]["run_as_user"] == "root"+ assert data["process"]["run_as_group"] == "root"+ assert data["namespace"] == {+ "user": True,+ "pid": False,+ "ipc": False,+ "cgroup": False,+ "uts": False,+ }+ assert data["capabilities"] == {"add": ["CAP_NET_RAW"], "drop": []}+ assert data["landlock"]["compatibility"] == "disabled"+ assert data["syscall"]["blocked"] == ["getppid"]++ @staticmethod+ def test_get_nonexistent_policy(client):+ resp = client.get("/api/v1/policies/nonexistent")+ assert resp.status_code == 404++ @staticmethod+ def test_create_sandbox_rejects_direct_sandbox_bind_mount(client):+ resp = client.post("/api/v1/sandboxes", json={+ "command": ["/usr/bin/echo", "hello"],+ "policy": {+ "name": "bad-sandbox-mount-policy",+ "filesystem_policy": {+ "bind_mounts": [{+ "host_path": "/sandbox/manual",+ "sandbox_path": "/tmp/manual",+ "mode": "rw",+ }],+ },+ "network": {+ "mode": "host",+ },+ },+ })++ assert resp.status_code == 400+ assert "/sandbox" in resp.json()["error"]++ @staticmethod+ def test_create_sandbox_rejects_direct_sandbox_path(client):+ resp = client.post("/api/v1/sandboxes", json={+ "command": ["/usr/bin/echo", "hello"],+ "policy": {+ "name": "bad-sandbox-path-policy",+ "filesystem_policy": {+ "read_write": ["/sandbox/manual"],+ },+ "network": {+ "mode": "host",+ },+ },+ })++ assert resp.status_code == 400+ assert "/sandbox" in resp.json()["error"]++ @staticmethod+ def test_create_sandbox_rejects_direct_sandbox_directory(client):+ resp = client.post("/api/v1/sandboxes", json={+ "command": ["/usr/bin/echo", "hello"],+ "policy": {+ "name": "bad-sandbox-dir-policy",+ "filesystem_policy": {+ "directories": [{+ "path": "/sandbox/manual",+ "permissions": "0700",+ }],+ },+ "network": {+ "mode": "host",+ },+ },+ })++ assert resp.status_code == 400+ assert "/sandbox" in resp.json()["error"]+++class TestPolicyEnforcement:+ @staticmethod+ def test_filesystem_read_write_rule_allows_upload_and_download(+ client,+ create_sandbox_with_policy,+ ):+ sandbox = create_sandbox_with_policy(+ name_prefix="fs-rw",+ policy={+ "name": "fs-rw-policy",+ "filesystem_policy": {+ "read_only": ["/usr", "/lib", "/lib64", "/etc", "/opt"],+ "read_write": ["/tmp"],+ },+ "network": {+ "mode": "host",+ "egress": {"default": "allow"},+ },+ },+ )++ upload = client.post(+ f"/api/v1/sandboxes/{sandbox['id']}/upload",+ params={"sandbox_path": "/tmp/policy-ok.txt"},+ files={"file": ("policy-ok.txt", b"hello-policy", "text/plain")},+ )+ assert upload.status_code == 204++ download = client.get(+ f"/api/v1/sandboxes/{sandbox['id']}/download",+ params={"sandbox_path": "/tmp/policy-ok.txt"},+ )+ assert download.status_code == 200+ assert download.content == b"hello-policy"++ @staticmethod+ def test_filesystem_read_only_rule_rejects_upload(+ client,+ create_sandbox_with_policy,+ ):+ sandbox = create_sandbox_with_policy(+ name_prefix="fs-ro",+ policy={+ "name": "fs-ro-policy",+ "filesystem_policy": {+ "read_only": ["/usr", "/lib", "/lib64", "/etc", "/opt"],+ "read_write": ["/tmp"],+ },+ "network": {+ "mode": "host",+ "egress": {"default": "allow"},+ },+ },+ )++ upload = client.post(+ f"/api/v1/sandboxes/{sandbox['id']}/upload",+ params={"sandbox_path": "/etc/policy-denied.txt"},+ files={"file": ("policy-denied.txt", b"nope", "text/plain")},+ )+ assert upload.status_code == 409++ @staticmethod+ def test_filesystem_directories_rule_creates_directory(+ client,+ create_sandbox_with_policy,+ ):+ sandbox = create_sandbox_with_policy(+ name_prefix="fs-dir",+ policy={+ "name": "fs-dir-policy",+ "filesystem_policy": {+ "directories": [{+ "path": "/policy-created",+ "permissions": 700,+ }],+ "read_only": ["/usr", "/lib", "/lib64", "/etc", "/opt"],+ "read_write": ["/tmp"],+ },+ "landlock": {+ "compatibility": "disabled",+ },+ "network": {+ "mode": "host",+ },+ },+ )++ response = client.post(f"/api/v1/sandboxes/{sandbox['id']}/exec", json={+ "command": [+ "/usr/bin/python3",+ "-c",+ (+ "import os, stat; "+ "from pathlib import Path; "+ "path = Path('/policy-created'); "+ "print(path.is_dir()); "+ "print(oct(stat.S_IMODE(os.stat(path).st_mode)))"+ ),+ ],+ "timeout_seconds": 5,+ })+ assert response.status_code == 200+ data = response.json()+ assert data["exit_code"] == 0, data+ assert data["stdout"].splitlines() == ["True", "0o700"]++ @staticmethod+ def test_filesystem_directories_rule_creates_directory_under_home(+ client,+ create_sandbox_with_policy,+ ):+ sandbox = create_sandbox_with_policy(+ name_prefix="fs-home-dir",+ policy={+ "name": "fs-home-dir-policy",+ "filesystem_policy": {+ "directories": [{+ "path": "/home",+ "permissions": "0755",+ }],+ "read_only": ["/usr", "/lib", "/lib64", "/etc", "/opt"],+ "read_write": ["/tmp"],+ },+ "landlock": {+ "compatibility": "disabled",+ },+ "network": {+ "mode": "host",+ },+ },+ )++ upload = client.post(+ f"/api/v1/sandboxes/{sandbox['id']}/upload",+ params={"sandbox_path": "/home/upload-created/file.txt"},+ files={"file": ("file.txt", b"hello-home-upload", "text/plain")},+ )+ assert upload.status_code == 204, upload.text++ response = client.post(f"/api/v1/sandboxes/{sandbox['id']}/exec", json={+ "command": [+ "/usr/bin/python3",+ "-c",+ (+ "import os; "+ "from pathlib import Path; "+ "home = Path('/home'); "+ "exec_path = home / 'exec-created'; "+ "exec_path.mkdir(); "+ "(exec_path / 'marker.txt').write_text('hello-home-exec'); "+ "print(home.is_dir()); "+ "print((home / 'upload-created').is_dir()); "+ "print((home / 'upload-created/file.txt').read_text()); "+ "print(exec_path.is_dir())"+ ),+ ],+ "timeout_seconds": 5,+ })+ assert response.status_code == 200+ data = response.json()+ assert data["exit_code"] == 0, data+ assert data["stdout"].splitlines() == ["True", "True", "hello-home-upload", "True"]++ download = client.get(+ f"/api/v1/sandboxes/{sandbox['id']}/download",+ params={"sandbox_path": "/home/exec-created/marker.txt"},+ )+ assert download.status_code == 200, download.text+ assert download.content == b"hello-home-exec"++ @staticmethod+ def test_exec_applies_workdir_env_and_stdin(+ client,+ create_sandbox_with_policy,+ ):+ sandbox = create_sandbox_with_policy(+ name_prefix="exec-options",+ policy={+ "name": "exec-options-policy",+ "filesystem_policy": {+ "read_only": ["/usr", "/lib", "/lib64", "/etc", "/opt"],+ "read_write": ["/tmp"],+ },+ "network": {+ "mode": "host",+ },+ },+ )++ script = (+ "import os, pathlib, sys; "+ "print(os.environ['BOX_TEST']); "+ "print(pathlib.Path.cwd()); "+ "print(sys.stdin.read())"+ )+ response = client.post(f"/api/v1/sandboxes/{sandbox['id']}/exec", json={+ "command": ["/usr/bin/python3", "-c", script],+ "workdir": "/tmp",+ "env": {"BOX_TEST": "env-ok"},+ "stdin": "stdin-ok",+ "timeout_seconds": 5,+ })+ assert response.status_code == 200+ data = response.json()+ assert data["exit_code"] == 0, data+ assert data["stdout"].splitlines() == ["env-ok", "/tmp", "stdin-ok"]++ @staticmethod+ def test_exec_runs_javascript_code(+ client,+ create_sandbox_with_policy,+ ):+ sandbox = create_sandbox_with_policy(+ name_prefix="exec-js",+ policy={+ "name": "exec-js-policy",+ "filesystem_policy": {+ "read_only": ["/usr", "/lib", "/lib64", "/etc", "/opt"],+ "read_write": ["/tmp"],+ },+ "network": {+ "mode": "host",+ },+ },+ )++ js_code = (+ "const label = process.env.BOX_JS_TEST || 'missing'; "+ "const sum = [1, 2, 3, 4].reduce((total, value) => total + value, 0); "+ "console.log(label); "+ "console.log(`sum=${sum}`);"+ )+ response = client.post(f"/api/v1/sandboxes/{sandbox['id']}/exec", json={+ "command": ["/usr/bin/node", "-e", js_code],+ "env": {"BOX_JS_TEST": "js-ok"},+ "timeout_seconds": 5,+ })+ assert response.status_code == 200+ data = response.json()+ assert data["exit_code"] == 0, data+ assert data["stdout"].splitlines() == ["js-ok", "sum=10"]+ assert data["stderr"] == ""++ @staticmethod+ def test_download_missing_file_returns_404(+ client,+ create_sandbox_with_policy,+ ):+ sandbox = create_sandbox_with_policy(+ name_prefix="download-missing",+ policy={+ "name": "download-missing-policy",+ "filesystem_policy": {+ "read_only": ["/usr", "/lib", "/lib64", "/etc", "/opt"],+ "read_write": ["/tmp"],+ },+ "network": {+ "mode": "host",+ },+ },+ )++ response = client.get(+ f"/api/v1/sandboxes/{sandbox['id']}/download",+ params={"sandbox_path": "/tmp/not-found.txt"},+ )+ assert response.status_code == 404++ @staticmethod+ def test_download_directory_returns_409(+ client,+ create_sandbox_with_policy,+ ):+ sandbox = create_sandbox_with_policy(+ name_prefix="download-dir",+ policy={+ "name": "download-dir-policy",+ "filesystem_policy": {+ "read_only": ["/usr", "/lib", "/lib64", "/etc", "/opt"],+ "read_write": ["/tmp"],+ },+ "network": {+ "mode": "host",+ },+ },+ )++ response = client.get(+ f"/api/v1/sandboxes/{sandbox['id']}/download",+ params={"sandbox_path": "/tmp"},+ )+ assert response.status_code == 409++ @staticmethod+ def test_list_files_endpoint_returns_files_and_directories(+ client,+ create_sandbox_with_policy,+ ):+ sandbox = create_sandbox_with_policy(+ name_prefix="list-files",+ policy={+ "name": "list-files-policy",+ "filesystem_policy": {+ "read_only": ["/usr", "/lib", "/lib64", "/etc", "/opt"],+ "read_write": ["/tmp"],+ },+ "network": {+ "mode": "host",+ },+ },+ )++ setup = client.post(f"/api/v1/sandboxes/{sandbox['id']}/exec", json={+ "command": [+ "/usr/bin/python3",+ "-c",+ (+ "from pathlib import Path; "+ "Path('/tmp/list-api/sub').mkdir(parents=True, exist_ok=True); "+ "Path('/tmp/list-api/a.txt').write_text('a'); "+ "Path('/tmp/list-api/sub/b.log').write_text('b')"+ ),+ ],+ "timeout_seconds": 5,+ })+ assert setup.status_code == 200+ assert setup.json()["exit_code"] == 0++ response = client.get(+ f"/api/v1/sandboxes/{sandbox['id']}/files",+ params={"sandbox_path": "/tmp/list-api", "recursive": True},+ )+ assert response.status_code == 200+ items = response.json()["items"]+ paths = {item["path"] for item in items}+ assert "/tmp/list-api/a.txt" in paths+ assert "/tmp/list-api/sub" in paths+ assert "/tmp/list-api/sub/b.log" in paths+ assert any(item["name"] == "sub" and item["is_directory"] for item in items)++ files_only = client.get(+ f"/api/v1/sandboxes/{sandbox['id']}/files",+ params={+ "sandbox_path": "/tmp/list-api",+ "recursive": True,+ "include_dirs": False,+ },+ )+ assert files_only.status_code == 200+ assert all(not item["is_directory"] for item in files_only.json()["items"])++ @staticmethod+ def test_search_files_endpoint_filters_matches(+ client,+ create_sandbox_with_policy,+ ):+ sandbox = create_sandbox_with_policy(+ name_prefix="search-files",+ policy={+ "name": "search-files-policy",+ "filesystem_policy": {+ "read_only": ["/usr", "/lib", "/lib64", "/etc", "/opt"],+ "read_write": ["/tmp"],+ },+ "network": {+ "mode": "host",+ },+ },+ )++ setup = client.post(f"/api/v1/sandboxes/{sandbox['id']}/exec", json={+ "command": [+ "/usr/bin/python3",+ "-c",+ (+ "from pathlib import Path; "+ "Path('/tmp/search-api').mkdir(parents=True, exist_ok=True); "+ "Path('/tmp/search-api/keep.py').write_text('print(1)'); "+ "Path('/tmp/search-api/drop.py').write_text('print(2)'); "+ "Path('/tmp/search-api/readme.md').write_text('# hi')"+ ),+ ],+ "timeout_seconds": 5,+ })+ assert setup.status_code == 200+ assert setup.json()["exit_code"] == 0++ response = client.get(+ f"/api/v1/sandboxes/{sandbox['id']}/search",+ params=[+ ("sandbox_path", "/tmp/search-api"),+ ("pattern", "*.py"),+ ("exclude_patterns", "drop.py"),+ ],+ )+ assert response.status_code == 200+ items = response.json()["items"]+ assert [item["name"] for item in items] == ["keep.py"]++ @staticmethod+ def test_process_user_and_group_policy_is_applied(+ client,+ create_sandbox_with_policy,+ ):+ sandbox = create_sandbox_with_policy(+ name_prefix="process-root",+ policy={+ "name": "process-root-policy",+ "filesystem_policy": {+ "read_only": ["/usr", "/lib", "/lib64", "/etc", "/opt"],+ "read_write": ["/tmp"],+ },+ "process": {+ "run_as_user": "root",+ "run_as_group": "root",+ },+ "network": {+ "mode": "host",+ },+ },+ )++ response = client.post(f"/api/v1/sandboxes/{sandbox['id']}/exec", json={+ "command": ["/usr/bin/id", "-u"],+ "timeout_seconds": 5,+ })+ assert response.status_code == 200+ uid_data = response.json()+ assert uid_data["exit_code"] == 0, uid_data+ assert uid_data["stdout"].strip() == "0"++ response = client.post(f"/api/v1/sandboxes/{sandbox['id']}/exec", json={+ "command": ["/usr/bin/id", "-g"],+ "timeout_seconds": 5,+ })+ assert response.status_code == 200+ gid_data = response.json()+ assert gid_data["exit_code"] == 0, gid_data+ assert gid_data["stdout"].strip() == "0"++ @staticmethod+ def test_syscall_blocked_rule_is_applied(+ client,+ create_sandbox_with_policy,+ ):+ sandbox = create_sandbox_with_policy(+ name_prefix="syscall-block",+ command=["/usr/bin/sleep", "3600"],+ policy={+ "name": "syscall-block-policy",+ "filesystem_policy": {+ "read_only": ["/usr", "/lib", "/lib64", "/etc", "/opt"],+ "read_write": ["/tmp"],+ },+ "syscall": {+ "blocked": ["getpid"],+ },+ "network": {+ "mode": "host",+ },+ },+ )++ response = client.post(f"/api/v1/sandboxes/{sandbox['id']}/exec", json={+ "command": [+ "/usr/bin/python3",+ "-c",+ textwrap.dedent(+ """+ import ctypes+ import errno+ import platform+ import sys++ syscall_numbers = {+ "x86_64": 39,+ "AMD64": 39,+ "aarch64": 172,+ }+ nr = syscall_numbers.get(platform.machine())+ if nr is None:+ print(f"unsupported-arch:{platform.machine()}")+ sys.exit(2)++ libc = ctypes.CDLL("libc.so.6", use_errno=True)+ libc.syscall.restype = ctypes.c_long+ ctypes.set_errno(0)+ result = libc.syscall(nr)+ err = ctypes.get_errno()+ if result == -1 and err == errno.EPERM:+ print("syscall-blocked")+ sys.exit(7)++ print(f"unexpected-success:{result}:{err}")+ """+ ).strip(),+ ],+ "timeout_seconds": 5,+ })+ assert response.status_code == 200+ data = response.json()+ assert data["exit_code"] == 7, data+ assert "syscall-blocked" in data["stdout"]+ assert "unexpected-success" not in data["stdout"]++ @staticmethod+ def test_pid_namespace_policy_is_applied(+ client,+ create_sandbox_with_policy,+ ):+ sandbox = create_sandbox_with_policy(+ name_prefix="pid-ns",+ policy={+ "name": "pid-ns-policy",+ "filesystem_policy": {+ "read_only": ["/usr", "/lib", "/lib64", "/etc", "/opt"],+ "read_write": ["/tmp"],+ },+ "namespace": {+ "pid": True,+ },+ "landlock": {+ "compatibility": "disabled",+ },+ "network": {+ "mode": "host",+ },+ },+ )++ response = client.post(f"/api/v1/sandboxes/{sandbox['id']}/exec", json={+ "command": ["/usr/bin/python3", "-c", "import os; print(os.getpid())"],+ "timeout_seconds": 5,+ })+ assert response.status_code == 200+ data = response.json()+ assert data["exit_code"] == 0, data+ assert int(data["stdout"].strip()) <= 5++ @staticmethod+ def test_capability_drop_removes_net_raw(+ client,+ create_sandbox_with_policy,+ ):+ sandbox = create_sandbox_with_policy(+ name_prefix="cap-drop",+ policy={+ "name": "cap-drop-policy",+ "filesystem_policy": {+ "read_only": ["/usr", "/lib", "/lib64", "/etc", "/opt"],+ "read_write": ["/tmp"],+ },+ "process": {+ "run_as_user": "root",+ "run_as_group": "root",+ },+ "capabilities": {+ "add": ["CAP_NET_RAW"],+ "drop": ["CAP_NET_RAW"],+ },+ "landlock": {+ "compatibility": "disabled",+ },+ "network": {+ "mode": "host",+ },+ },+ )++ response = client.post(f"/api/v1/sandboxes/{sandbox['id']}/exec", json={+ "command": ["/usr/bin/python3", "-c", _capability_check_script(13)],+ "timeout_seconds": 5,+ })+ assert response.status_code == 200+ data = response.json()+ assert data["exit_code"] == 0, data+ assert data["stdout"].strip() == "no"++ @staticmethod+ def test_capability_add_net_raw_sets_effective_capability(+ client,+ create_sandbox_with_policy,+ ):+ sandbox = create_sandbox_with_policy(+ name_prefix="cap-add",+ policy={+ "name": "cap-add-policy",+ "filesystem_policy": {+ "read_only": ["/usr", "/lib", "/lib64", "/etc", "/opt"],+ "read_write": ["/tmp"],+ },+ "process": {+ "run_as_user": "root",+ "run_as_group": "root",+ },+ "capabilities": {+ "add": ["CAP_NET_RAW"],+ "drop": [],+ },+ "landlock": {+ "compatibility": "disabled",+ },+ "network": {+ "mode": "host",+ },+ },+ )++ response = client.post(f"/api/v1/sandboxes/{sandbox['id']}/exec", json={+ "command": ["/usr/bin/python3", "-c", _capability_check_script(13)],+ "timeout_seconds": 5,+ })+ assert response.status_code == 200+ data = response.json()+ assert data["exit_code"] == 0, data+ assert data["stdout"].strip() == "yes"++ @staticmethod+ def test_landlock_hard_requirement_policy_is_enforced(+ client,+ ):+ create_resp = client.post("/api/v1/sandboxes", json={+ "command": ["/usr/bin/echo", "landlock-ok"],+ "policy": {+ "name": "landlock-hard-policy",+ "filesystem_policy": {+ "read_only": ["/usr", "/lib", "/lib64", "/etc", "/opt"],+ "read_write": ["/tmp"],+ },+ "landlock": {+ "compatibility": "hard_requirement",+ },+ "network": {+ "mode": "host",+ },+ },+ })+ assert create_resp.status_code == 201+ data = create_resp.json()+ if data["phase"] == "ready":+ assert data["phase"] == "ready", data+ else:+ assert data["phase"] == "error", data+ assert "landlock" in data["error_message"].lower()++ @staticmethod+ def test_landlock_rules_allow_policy_paths_and_deny_other_mounted_paths(+ client,+ create_sandbox_with_policy,+ ):+ sandbox = create_sandbox_with_policy(+ name_prefix="landlock-rules",+ policy={+ "name": "landlock-rules-policy",+ "filesystem_policy": {+ "read_only": ["/usr", "/lib", "/lib64", "/etc", "/opt"],+ "read_write": ["/tmp"],+ },+ "landlock": {+ "compatibility": "hard_requirement",+ },+ "network": {+ "mode": "host",+ },+ },+ )++ script = textwrap.dedent(+ """+ from pathlib import Path+ import sys++ allowed = Path("/tmp/landlock-allowed.txt")+ allowed.write_text("landlock-allowed")+ assert allowed.read_text() == "landlock-allowed"++ try:+ Path("/run/jiuwenbox-landlock-launcher.py").read_text()+ except PermissionError:+ print("landlock-denied")+ sys.exit(7)++ print("unexpected-success")+ """+ ).strip()+ response = client.post(f"/api/v1/sandboxes/{sandbox['id']}/exec", json={+ "command": ["/usr/bin/python3", "-c", script],+ "timeout_seconds": 5,+ })+ assert response.status_code == 200+ data = response.json()+ assert data["exit_code"] == 7, data+ assert "landlock-denied" in data["stdout"]+ assert "unexpected-success" not in data["stdout"]++ @staticmethod+ def test_network_mode_isolated_blocks_http_requests(+ client,+ create_sandbox_with_policy,+ server_endpoint,+ ):+ sandbox = create_sandbox_with_policy(+ name_prefix="net-isolated",+ policy={+ "name": "net-isolated-policy",+ "filesystem_policy": {+ "read_only": ["/usr", "/lib", "/lib64", "/etc", "/opt"],+ "read_write": ["/tmp"],+ },+ "network": {+ "mode": "isolated",+ "egress": {"default": "allow"},+ },+ },+ )++ script = (+ "import sys, urllib.request; "+ "urllib.request.urlopen(sys.argv[1], timeout=2).read(); "+ "print('unexpected-success')"+ )+ response = client.post(f"/api/v1/sandboxes/{sandbox['id']}/exec", json={+ "command": ["/usr/bin/python3", "-c", script, _sandbox_health_url(server_endpoint)],+ "timeout_seconds": 5,+ })+ assert response.status_code == 200+ data = response.json()+ assert data["exit_code"] != 0+ assert "unexpected-success" not in data["stdout"]++ @staticmethod+ def test_network_mode_host_allows_http_requests(+ client,+ create_sandbox_with_policy,+ server_endpoint,+ ):+ sandbox = create_sandbox_with_policy(+ name_prefix="net-host",+ policy={+ "name": "net-host-policy",+ "filesystem_policy": {+ "read_only": ["/usr", "/lib", "/lib64", "/etc", "/opt"],+ "read_write": ["/tmp"],+ },+ "network": {+ "mode": "host",+ "egress": {"default": "allow"},+ },+ },+ )++ script = (+ "import sys, urllib.request; "+ "print(urllib.request.urlopen(sys.argv[1], timeout=2).read().decode())"+ )+ response = client.post(f"/api/v1/sandboxes/{sandbox['id']}/exec", json={+ "command": ["/usr/bin/python3", "-c", script, _sandbox_health_url(server_endpoint)],+ "timeout_seconds": 5,+ })+ assert response.status_code == 200+ data = response.json()+ assert data["exit_code"] == 0+ assert '"status":"ok"' in data["stdout"].replace(" ", "")++ @staticmethod+ def test_default_policy_allows_network_https(client):+ response = client.post("/api/v1/sandboxes", json={+ "command": LONG_RUNNING_COMMAND,+ })+ assert response.status_code == 201, response.text+ sandbox = response.json()+ assert sandbox["phase"] == "ready", sandbox++ script = textwrap.dedent(+ """+ import sys+ import urllib.request++ request = urllib.request.Request(+ sys.argv[1],+ headers={"User-Agent": "jiuwenbox-integration-test"},+ )+ with urllib.request.urlopen(request, timeout=10) as response:+ print(response.status)+ print(response.geturl())+ """+ ).strip()+ response = client.post(f"/api/v1/sandboxes/{sandbox['id']}/exec", json={+ "command": ["/usr/bin/python3", "-c", script, "https://www.huawei.com/"],+ "timeout_seconds": 15,+ })+ assert response.status_code == 200+ data = response.json()+ assert data["exit_code"] == 0, data+ assert "huawei.com" in data["stdout"].lower()++ @staticmethod+ def test_ingress_allowed_port_accepts_loopback_connection(+ client,+ create_sandbox_with_policy,+ ):+ sandbox = create_sandbox_with_policy(+ name_prefix="ingress-allow",+ policy={+ "name": "ingress-allow-policy",+ "filesystem_policy": {+ "read_only": ["/usr", "/lib", "/lib64", "/etc", "/opt"],+ "read_write": ["/tmp"],+ },+ "network": {+ "mode": "isolated",+ "egress": {"default": "allow"},+ "ingress": {+ "default": "deny",+ "allowed_ips": ["127.0.0.1/32"],+ "allowed_ports": [18081],+ },+ },+ },+ )++ response = client.post(f"/api/v1/sandboxes/{sandbox['id']}/exec", json={+ "command": ["/usr/bin/python3", "-c", _loopback_ingress_script(True), "18081"],+ "timeout_seconds": 5,+ })+ assert response.status_code == 200+ data = response.json()+ assert data["exit_code"] == 0, data+ assert "ingress-ok" in data["stdout"]++ @staticmethod+ def test_ingress_blocked_port_rejects_loopback_connection(+ client,+ create_sandbox_with_policy,+ ):+ sandbox = create_sandbox_with_policy(+ name_prefix="ingress-block",+ policy={+ "name": "ingress-block-policy",+ "filesystem_policy": {+ "read_only": ["/usr", "/lib", "/lib64", "/etc", "/opt"],+ "read_write": ["/tmp"],+ },+ "network": {+ "mode": "isolated",+ "egress": {"default": "allow"},+ "ingress": {+ "default": "deny",+ "allowed_ips": ["127.0.0.1/32"],+ "allowed_ports": [18081],+ "blocked_ports": [18082],+ },+ },+ },+ )++ response = client.post(f"/api/v1/sandboxes/{sandbox['id']}/exec", json={+ "command": ["/usr/bin/python3", "-c", _loopback_ingress_script(False), "18082"],+ "timeout_seconds": 5,+ })+ assert response.status_code == 200+ data = response.json()+ assert data["exit_code"] != 0+ assert "unexpected-success" not in data["stdout"]++ @staticmethod+ def test_isolated_sandbox_policy_persists_after_restart(+ client,+ create_sandbox_with_policy,+ ):+ sandbox = create_sandbox_with_policy(+ name_prefix="netns-persist",+ policy={+ "name": "netns-persist-policy",+ "filesystem_policy": {+ "read_only": ["/usr", "/lib", "/lib64", "/etc", "/opt"],+ "read_write": ["/tmp"],+ },+ "network": {+ "mode": "isolated",+ "egress": {"default": "allow"},+ "ingress": {+ "default": "deny",+ "allowed_ips": ["127.0.0.1/32"],+ "allowed_ports": [18083],+ },+ },+ },+ )++ first_exec = client.post(f"/api/v1/sandboxes/{sandbox['id']}/exec", json={+ "command": ["/usr/bin/python3", "-c", _loopback_ingress_script(True), "18083"],+ "timeout_seconds": 5,+ })+ assert first_exec.status_code == 200+ first_data = first_exec.json()+ assert first_data["exit_code"] == 0, first_data++ stop_response = client.post(f"/api/v1/sandboxes/{sandbox['id']}/stop")+ assert stop_response.status_code == 200++ start_response = client.post(f"/api/v1/sandboxes/{sandbox['id']}/start")+ assert start_response.status_code == 200++ second_exec = client.post(f"/api/v1/sandboxes/{sandbox['id']}/exec", json={+ "command": ["/usr/bin/python3", "-c", _loopback_ingress_script(True), "18083"],+ "timeout_seconds": 5,+ })+ assert second_exec.status_code == 200+ second_data = second_exec.json()+ assert second_data["exit_code"] == 0, second_data++ delete_response = client.delete(f"/api/v1/sandboxes/{sandbox['id']}")+ assert delete_response.status_code == 204+++class TestSandboxExec:+ @staticmethod+ def test_exec_requires_running_sandbox(client):+ create_resp = client.post("/api/v1/sandboxes", json={+ "command": ["/usr/bin/sleep", "3600"],+ })+ sandbox_id = create_resp.json()["id"]++ # Stop it first+ client.post(f"/api/v1/sandboxes/{sandbox_id}/stop")++ resp = client.post(f"/api/v1/sandboxes/{sandbox_id}/exec", json={+ "command": ["/usr/bin/echo", "hello"],+ })+ assert resp.status_code == 409+++class TestSandboxListing:+ @staticmethod+ def test_list_returns_all_sandboxes(client):+ for i in range(3):+ client.post("/api/v1/sandboxes", json={+ "command": ["/usr/bin/echo"],+ })++ resp = client.get("/api/v1/sandboxes")+ assert resp.status_code == 200+ assert len(resp.json()) == 3diff --git a/jiuwenbox/tests/integration/test_server_api_jiuwenclaw_tool.py b/jiuwenbox/tests/integration/test_server_api_jiuwenclaw_tool.pynew file mode 100644index 0000000000..04a2993d3b--- /dev/null+++ b/jiuwenbox/tests/integration/test_server_api_jiuwenclaw_tool.py@@ -0,0 +1,1509 @@+"""Integration tests for box-server API endpoints."""++import logging+import os+import textwrap++import httpx+import pytest++LONG_RUNNING_COMMAND = ["/usr/bin/python3", "-c", "import time; time.sleep(3600)"]+JIUWENCLAW_SANDBOX_WORKSPACE = "/tmp/sandbox"+JIUWENCLAW_READ_WRITE_PATH = "/"+logger = logging.getLogger(__name__)+++class SandboxTrackingClient:+ """Track sandboxes created during a test and clean them up afterwards."""++ def __init__(self, client):+ self._client = client+ self._created_ids: list[str] = []++ def __getattr__(self, name: str):+ return getattr(self._client, name)++ def post(self, url, *args, **kwargs):+ response = self._client.post(url, *args, **kwargs)+ if str(url).rstrip("/") == "/api/v1/sandboxes" and response.status_code == 201:+ try:+ sandbox_id = response.json().get("id")+ except Exception:+ sandbox_id = None+ if sandbox_id:+ self._created_ids.append(sandbox_id)+ return response++ def delete(self, url, *args, **kwargs):+ response = self._client.delete(url, *args, **kwargs)+ sandbox_id = self._sandbox_id_from_delete_url(url)+ if sandbox_id and response.status_code in (200, 202, 204, 404):+ self._created_ids = [item for item in self._created_ids if item != sandbox_id]+ return response++ def cleanup_sandboxes(self) -> None:+ for sandbox_id in reversed(self._created_ids):+ try:+ self._client.delete(f"/api/v1/sandboxes/{sandbox_id}")+ except Exception as exc:+ logger.warning("Failed to cleanup sandbox %s: %s", sandbox_id, exc)+ self._created_ids.clear()++ @staticmethod+ def _sandbox_id_from_delete_url(url) -> str | None:+ path = str(url).split("?", 1)[0].rstrip("/")+ prefix = "/api/v1/sandboxes/"+ if not path.startswith(prefix):+ return None+ suffix = path[len(prefix):]+ if "/" in suffix:+ return None+ return suffix or None+++def _normalize_endpoint(endpoint: str) -> str:+ return endpoint if "://" in endpoint else f"http://{endpoint}"+++def _sandbox_health_url(server_endpoint: str) -> str:+ return f"{_normalize_endpoint(server_endpoint).rstrip('/')}/health"+++def _capability_check_script(cap_bit: int) -> str:+ return textwrap.dedent(+ f"""+ cap_eff = 0+ with open("/proc/self/status") as f:+ for line in f:+ if line.startswith("CapEff:"):+ cap_eff = int(line.split()[1], 16)+ break+ print("yes" if cap_eff & (1 << {cap_bit}) else "no")+ """+ ).strip()+++def _loopback_ingress_script(expect_success: bool) -> str:+ connect_block = textwrap.dedent(+ """+ sock = socket.create_connection(("127.0.0.1", port), timeout=1)+ conn, _ = srv.accept()+ conn.sendall(b"ingress-ok")+ conn.close()+ print(sock.recv(64).decode())+ sock.close()+ """+ ).strip()+ if not expect_success:+ connect_block = textwrap.dedent(+ """+ try:+ sock = socket.create_connection(("127.0.0.1", port), timeout=1)+ conn, _ = srv.accept()+ conn.sendall(b"ingress-ok")+ conn.close()+ print(sock.recv(64).decode())+ sock.close()+ print("unexpected-success")+ sys.exit(0)+ except Exception as exc:+ print(type(exc).__name__)+ sys.exit(7)+ """+ ).strip()++ return "\n".join([+ "import socket",+ "import sys",+ "",+ "port = int(sys.argv[1])",+ "",+ "srv = socket.socket(socket.AF_INET, socket.SOCK_STREAM)",+ "srv.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)",+ 'srv.bind(("127.0.0.1", port))',+ "srv.listen(1)",+ connect_block,+ "srv.close()",+ "",+ ])+++def client(server_endpoint):+ with httpx.Client(base_url=_normalize_endpoint(server_endpoint), timeout=30.0) as external:+ tracking = SandboxTrackingClient(external)+ try:+ yield tracking+ finally:+ tracking.cleanup_sandboxes()+++def create_sandbox_with_policy(client):+ def factory(+ *,+ name_prefix: str,+ policy: dict,+ policy_mode: str = "override",+ command: list[str] | None = None,+ ) -> dict:+ response = client.post("/api/v1/sandboxes", json={+ "command": command or LONG_RUNNING_COMMAND,+ "policy_mode": policy_mode,+ "policy": policy,+ })+ assert response.status_code == 201, response.text+ sandbox = response.json()+ assert sandbox["phase"] == "ready", sandbox+ return sandbox++ return factory+++class TestHealthEndpoint:+ @staticmethod+ def test_health(client):+ resp = client.get("/health")+ assert resp.status_code == 200+ data = resp.json()+ assert data["status"] == "ok"+ assert "version" in data+ assert "landlock_supported" in data+ assert "sandboxes_active" in data+++class TestSandboxCRUD:+ @staticmethod+ def test_list_sandboxes_empty(client):+ resp = client.get("/api/v1/sandboxes")+ assert resp.status_code == 200+ assert resp.json() == []++ @staticmethod+ def test_create_sandbox(client):+ resp = client.post("/api/v1/sandboxes", json={+ "command": ["/usr/bin/echo", "hello"],+ })+ assert resp.status_code == 201+ data = resp.json()+ assert "id" in data+ assert "name" not in data+ assert data["phase"] in ("provisioning", "ready", "error")++ @staticmethod+ def test_list_sandboxes_after_create(client):+ create_resp = client.post("/api/v1/sandboxes", json={"command": ["/usr/bin/echo"]})+ sandbox_id = create_resp.json()["id"]+ resp = client.get("/api/v1/sandboxes")+ assert resp.status_code == 200+ data = resp.json()+ assert any(item["id"] == sandbox_id for item in data)+ assert len(data) == 1++ @staticmethod+ def test_get_sandbox(client):+ create_resp = client.post("/api/v1/sandboxes", json={+ "command": ["/usr/bin/echo"],+ })+ sandbox_id = create_resp.json()["id"]++ resp = client.get(f"/api/v1/sandboxes/{sandbox_id}")+ assert resp.status_code == 200+ data = resp.json()+ assert data["id"] == sandbox_id+ assert "name" not in data++ @staticmethod+ def test_get_nonexistent_sandbox(client):+ resp = client.get("/api/v1/sandboxes/nonexistent")+ assert resp.status_code == 404++ @staticmethod+ def test_delete_sandbox(client):+ create_resp = client.post("/api/v1/sandboxes", json={+ "command": ["/usr/bin/echo"],+ })+ sandbox_id = create_resp.json()["id"]++ resp = client.delete(f"/api/v1/sandboxes/{sandbox_id}")+ assert resp.status_code == 204++ resp = client.get(f"/api/v1/sandboxes/{sandbox_id}")+ assert resp.status_code == 404+++class TestSandboxLifecycle:+ @staticmethod+ def test_start_stopped_sandbox(client):+ create_resp = client.post("/api/v1/sandboxes", json={+ "command": ["/usr/bin/sleep", "3600"],+ })+ sandbox_id = create_resp.json()["id"]++ stop_resp = client.post(f"/api/v1/sandboxes/{sandbox_id}/stop")+ assert stop_resp.status_code == 200+ assert stop_resp.json()["phase"] == "stopped"++ start_resp = client.post(f"/api/v1/sandboxes/{sandbox_id}/start")+ assert start_resp.status_code == 200+ assert start_resp.json()["phase"] == "ready", start_resp.json()++ @staticmethod+ def test_stop_sandbox(client):+ create_resp = client.post("/api/v1/sandboxes", json={+ "command": ["/usr/bin/sleep", "3600"],+ })+ sandbox_id = create_resp.json()["id"]++ resp = client.post(f"/api/v1/sandboxes/{sandbox_id}/stop")+ assert resp.status_code == 200+ assert resp.json()["phase"] == "stopped"++ @staticmethod+ def test_restart_sandbox(client):+ create_resp = client.post("/api/v1/sandboxes", json={+ "command": ["/usr/bin/sleep", "3600"],+ })+ sandbox_id = create_resp.json()["id"]++ resp = client.post(f"/api/v1/sandboxes/{sandbox_id}/restart")+ assert resp.status_code == 200+ assert resp.json()["phase"] == "ready"++ @staticmethod+ def test_get_logs(client):+ create_resp = client.post("/api/v1/sandboxes", json={+ "command": ["/usr/bin/echo"],+ })+ sandbox_id = create_resp.json()["id"]++ resp = client.get(f"/api/v1/sandboxes/{sandbox_id}/logs")+ assert resp.status_code == 200+++class TestPolicyAPI:+ @staticmethod+ def test_get_sandbox_policy(client):+ create_resp = client.post("/api/v1/sandboxes", json={+ "command": ["/usr/bin/echo"],+ })+ sandbox_id = create_resp.json()["id"]++ resp = client.get(f"/api/v1/policies/{sandbox_id}")+ assert resp.status_code == 200+ data = resp.json()+ assert data["version"] == 1+ assert data["name"] == "server-default"+ assert data["sandbox_workspace"] == JIUWENCLAW_SANDBOX_WORKSPACE+ assert "resources" not in data+ assert data["filesystem_policy"]["directories"] == []+ assert data["filesystem_policy"]["read_only"] == ["/usr", "/lib", "/lib64", "/etc", "/opt"]+ assert data["filesystem_policy"]["read_write"] == [JIUWENCLAW_READ_WRITE_PATH]+ assert data["namespace"] == {+ "user": False,+ "pid": True,+ "ipc": True,+ "cgroup": True,+ "uts": True,+ }+ assert data["capabilities"] == {"add": [], "drop": []}+ assert data["landlock"]["compatibility"] == "best_effort"+ assert data["network"]["egress"]["allowed_domains"] == ["baidu.com"]+ assert data["network"]["egress"]["allowed_ips"] == ["127.0.0.1/32", "::1/128"]+ assert data["network"]["egress"]["blocked_ips"] == ["169.254.169.254/32"]+ assert data["network"]["egress"]["blocked_ports"] == [22]+ assert data["network"]["egress"]["default"] == "allow"+ assert data["network"]["egress"]["blocked_domains"] == ["ip.me"]+ assert data["network"]["egress"]["allowed_ports"] == [443, 80]+ assert data["network"]["ingress"]["default"] == "deny"+ assert data["network"]["ingress"]["allowed_domains"] == ["localhost"]+ assert data["network"]["ingress"]["allowed_ips"] == ["127.0.0.1/32", "::1/128"]+ assert data["network"]["ingress"]["blocked_ips"] == []+ assert data["network"]["ingress"]["allowed_ports"] == [8080]+ assert data["network"]["ingress"]["blocked_ports"] == [22]+ assert "profile" not in data["syscall"]+ assert "mount" in data["syscall"]["blocked"]+ assert "kexec_file_load" in data["syscall"]["blocked"]++ @staticmethod+ def test_append_policy_merges_with_server_default(client):+ create_resp = client.post("/api/v1/sandboxes", json={+ "command": ["/usr/bin/echo"],+ "policy_mode": "append",+ "policy": {+ "name": "appended-policy",+ "filesystem_policy": {+ "directories": [{"path": "/tmp/appended-dir", "permissions": "0700"}],+ "read_only": ["/var/log"],+ "read_write": ["/var/tmp"],+ "bind_mounts": [{+ "host_path": "/tmp",+ "sandbox_path": "/tmp",+ "mode": "rw",+ }],+ },+ "network": {+ "egress": {+ "allowed_domains": ["extra.example.com"],+ "allowed_ips": ["203.0.113.10/32"],+ },+ "ingress": {+ "allowed_ips": ["10.0.0.0/8"],+ "allowed_ports": [9090],+ },+ },+ "process": {+ "run_as_user": "root",+ "run_as_group": "root",+ },+ "namespace": {+ "pid": False,+ "uts": False,+ },+ "capabilities": {+ "add": ["CAP_NET_RAW"],+ "drop": [],+ },+ "landlock": {+ "compatibility": "disabled",+ },+ "syscall": {+ "blocked": ["getpid"],+ },+ },+ })+ sandbox_id = create_resp.json()["id"]++ resp = client.get(f"/api/v1/policies/{sandbox_id}")+ assert resp.status_code == 200+ data = resp.json()+ assert data["name"] == "appended-policy"+ assert data["sandbox_workspace"] == JIUWENCLAW_SANDBOX_WORKSPACE+ assert data["network"]["egress"]["allowed_domains"] == [+ "baidu.com",+ "extra.example.com",+ ]+ assert data["network"]["egress"]["allowed_ips"] == [+ "127.0.0.1/32",+ "::1/128",+ "203.0.113.10/32",+ ]+ assert data["network"]["egress"]["blocked_ips"] == ["169.254.169.254/32"]+ assert data["network"]["egress"]["blocked_ports"] == [22]+ assert data["network"]["ingress"]["allowed_domains"] == ["localhost"]+ assert data["network"]["ingress"]["allowed_ips"] == [+ "127.0.0.1/32",+ "::1/128",+ "10.0.0.0/8",+ ]+ assert data["network"]["ingress"]["allowed_ports"] == [8080, 9090]+ assert data["filesystem_policy"]["read_only"] == [+ "/usr",+ "/lib",+ "/lib64",+ "/etc",+ "/opt",+ "/var/log",+ ]+ assert data["filesystem_policy"]["read_write"] == [+ JIUWENCLAW_READ_WRITE_PATH,+ "/var/tmp",+ ]+ assert data["filesystem_policy"]["directories"] == [+ {"path": "/tmp/appended-dir", "permissions": "0700"},+ ]+ assert data["process"]["run_as_user"] == "root"+ assert data["process"]["run_as_group"] == "root"+ assert data["namespace"] == {+ "user": False,+ "pid": False,+ "ipc": True,+ "cgroup": True,+ "uts": False,+ }+ assert data["capabilities"]["add"] == ["CAP_NET_RAW"]+ assert data["capabilities"]["drop"] == []+ assert data["landlock"]["compatibility"] == "disabled"+ assert "getpid" in data["syscall"]["blocked"]+ assert "mount" in data["syscall"]["blocked"]++ @staticmethod+ def test_override_policy_replaces_server_default(client):+ create_resp = client.post("/api/v1/sandboxes", json={+ "command": ["/usr/bin/echo"],+ "policy_mode": "override",+ "policy": {+ "name": "override-policy",+ "filesystem_policy": {+ "directories": [{+ "path": "/tmp/override-dir",+ "permissions": "0700",+ }],+ "read_only": ["/usr"],+ "read_write": ["/var/tmp"],+ },+ "network": {+ "mode": "host",+ "egress": {+ "default": "deny",+ "allowed_domains": ["override.example.com"],+ "allowed_ips": ["198.51.100.10/32"],+ "blocked_ips": ["198.51.100.11/32"],+ "allowed_ports": [80],+ "blocked_ports": [25],+ },+ "ingress": {+ "default": "allow",+ "allowed_ips": ["10.0.0.0/8"],+ "blocked_ips": ["10.0.5.0/24"],+ "allowed_ports": [9090],+ "blocked_ports": [22],+ },+ },+ "process": {+ "run_as_user": "root",+ "run_as_group": "root",+ },+ "namespace": {+ "user": True,+ "pid": False,+ "ipc": False,+ "cgroup": False,+ "uts": False,+ },+ "capabilities": {+ "add": ["CAP_NET_RAW"],+ "drop": [],+ },+ "landlock": {+ "compatibility": "disabled",+ },+ "syscall": {+ "blocked": ["getppid"],+ },+ },+ })+ sandbox_id = create_resp.json()["id"]++ resp = client.get(f"/api/v1/policies/{sandbox_id}")+ assert resp.status_code == 200+ data = resp.json()+ assert data["name"] == "override-policy"+ assert data["sandbox_workspace"] == JIUWENCLAW_SANDBOX_WORKSPACE+ assert data["network"]["mode"] == "host"+ assert data["network"]["egress"]["allowed_domains"] == ["override.example.com"]+ assert data["network"]["egress"]["allowed_ips"] == ["198.51.100.10/32"]+ assert data["network"]["egress"]["blocked_ips"] == ["198.51.100.11/32"]+ assert data["network"]["egress"]["blocked_ports"] == [25]+ assert data["network"]["ingress"]["default"] == "allow"+ assert data["network"]["ingress"]["allowed_ips"] == ["10.0.0.0/8"]+ assert data["network"]["ingress"]["blocked_ips"] == ["10.0.5.0/24"]+ assert data["network"]["ingress"]["allowed_ports"] == [9090]+ assert data["network"]["ingress"]["blocked_ports"] == [22]+ assert data["filesystem_policy"]["read_only"] == ["/usr"]+ assert data["filesystem_policy"]["read_write"] == ["/var/tmp"]+ assert data["filesystem_policy"]["directories"] == [{+ "path": "/tmp/override-dir",+ "permissions": "0700",+ }]+ assert data["process"]["run_as_user"] == "root"+ assert data["process"]["run_as_group"] == "root"+ assert data["namespace"] == {+ "user": True,+ "pid": False,+ "ipc": False,+ "cgroup": False,+ "uts": False,+ }+ assert data["capabilities"] == {"add": ["CAP_NET_RAW"], "drop": []}+ assert data["landlock"]["compatibility"] == "disabled"+ assert data["syscall"]["blocked"] == ["getppid"]++ @staticmethod+ def test_get_nonexistent_policy(client):+ resp = client.get("/api/v1/policies/nonexistent")+ assert resp.status_code == 404++ @staticmethod+ def test_create_sandbox_rejects_direct_sandbox_bind_mount(client):+ resp = client.post("/api/v1/sandboxes", json={+ "command": ["/usr/bin/echo", "hello"],+ "policy": {+ "name": "bad-sandbox-mount-policy",+ "filesystem_policy": {+ "bind_mounts": [{+ "host_path": f"{JIUWENCLAW_SANDBOX_WORKSPACE}/manual",+ "sandbox_path": "/tmp/manual",+ "mode": "rw",+ }],+ },+ "network": {+ "mode": "host",+ },+ },+ })++ assert resp.status_code == 400+ assert JIUWENCLAW_SANDBOX_WORKSPACE in resp.json()["error"]++ @staticmethod+ def test_create_sandbox_rejects_direct_sandbox_path(client):+ resp = client.post("/api/v1/sandboxes", json={+ "command": ["/usr/bin/echo", "hello"],+ "policy": {+ "name": "bad-sandbox-path-policy",+ "filesystem_policy": {+ "read_write": [f"{JIUWENCLAW_SANDBOX_WORKSPACE}/manual"],+ },+ "network": {+ "mode": "host",+ },+ },+ })++ assert resp.status_code == 400+ assert JIUWENCLAW_SANDBOX_WORKSPACE in resp.json()["error"]++ @staticmethod+ def test_create_sandbox_rejects_direct_sandbox_directory(client):+ resp = client.post("/api/v1/sandboxes", json={+ "command": ["/usr/bin/echo", "hello"],+ "policy": {+ "name": "bad-sandbox-dir-policy",+ "filesystem_policy": {+ "directories": [{+ "path": f"{JIUWENCLAW_SANDBOX_WORKSPACE}/manual",+ "permissions": "0700",+ }],+ },+ "network": {+ "mode": "host",+ },+ },+ })++ assert resp.status_code == 400+ assert JIUWENCLAW_SANDBOX_WORKSPACE in resp.json()["error"]+++class TestPolicyEnforcement:+ @staticmethod+ def test_filesystem_read_write_rule_allows_upload_and_download(+ client,+ create_sandbox_with_policy,+ ):+ sandbox = create_sandbox_with_policy(+ name_prefix="fs-rw",+ policy={+ "name": "fs-rw-policy",+ "filesystem_policy": {+ "read_only": ["/usr", "/lib", "/lib64", "/etc", "/opt"],+ "read_write": ["/tmp"],+ },+ "network": {+ "mode": "host",+ "egress": {"default": "allow"},+ },+ },+ )+ sandbox_path = f"/tmp/{sandbox['id']}-policy-ok.txt"++ upload = client.post(+ f"/api/v1/sandboxes/{sandbox['id']}/upload",+ params={"sandbox_path": sandbox_path},+ files={"file": ("policy-ok.txt", b"hello-policy", "text/plain")},+ )+ assert upload.status_code == 204++ download = client.get(+ f"/api/v1/sandboxes/{sandbox['id']}/download",+ params={"sandbox_path": sandbox_path},+ )+ assert download.status_code == 200+ assert download.content == b"hello-policy"++ @staticmethod+ def test_filesystem_read_only_rule_rejects_upload(+ client,+ create_sandbox_with_policy,+ ):+ sandbox = create_sandbox_with_policy(+ name_prefix="fs-ro",+ policy={+ "name": "fs-ro-policy",+ "filesystem_policy": {+ "read_only": ["/usr", "/lib", "/lib64", "/etc", "/opt"],+ "read_write": ["/tmp"],+ },+ "network": {+ "mode": "host",+ "egress": {"default": "allow"},+ },+ },+ )++ upload = client.post(+ f"/api/v1/sandboxes/{sandbox['id']}/upload",+ params={"sandbox_path": "/etc/policy-denied.txt"},+ files={"file": ("policy-denied.txt", b"nope", "text/plain")},+ )+ assert upload.status_code == 409++ @staticmethod+ def test_filesystem_directories_rule_creates_directory(+ client,+ create_sandbox_with_policy,+ ):+ sandbox = create_sandbox_with_policy(+ name_prefix="fs-dir",+ policy={+ "name": "fs-dir-policy",+ "filesystem_policy": {+ "directories": [{+ "path": "/policy-created",+ "permissions": 700,+ }],+ "read_only": ["/usr", "/lib", "/lib64", "/etc", "/opt"],+ "read_write": ["/tmp"],+ },+ "landlock": {+ "compatibility": "disabled",+ },+ "network": {+ "mode": "host",+ },+ },+ )++ response = client.post(f"/api/v1/sandboxes/{sandbox['id']}/exec", json={+ "command": [+ "/usr/bin/python3",+ "-c",+ (+ "import os, stat; "+ "from pathlib import Path; "+ "path = Path('/policy-created'); "+ "print(path.is_dir()); "+ "print(oct(stat.S_IMODE(os.stat(path).st_mode)))"+ ),+ ],+ "timeout_seconds": 5,+ })+ assert response.status_code == 200+ data = response.json()+ assert data["exit_code"] == 0, data+ assert data["stdout"].splitlines() == ["True", "0o700"]++ @staticmethod+ def test_filesystem_directories_rule_creates_directory_under_home(+ client,+ create_sandbox_with_policy,+ ):+ sandbox = create_sandbox_with_policy(+ name_prefix="fs-home-dir",+ policy={+ "name": "fs-home-dir-policy",+ "filesystem_policy": {+ "directories": [{+ "path": "/home",+ "permissions": "0755",+ }],+ "read_only": ["/usr", "/lib", "/lib64", "/etc", "/opt"],+ "read_write": ["/tmp"],+ },+ "landlock": {+ "compatibility": "disabled",+ },+ "network": {+ "mode": "host",+ },+ },+ )++ upload = client.post(+ f"/api/v1/sandboxes/{sandbox['id']}/upload",+ params={"sandbox_path": "/home/upload-created/file.txt"},+ files={"file": ("file.txt", b"hello-home-upload", "text/plain")},+ )+ assert upload.status_code == 204, upload.text++ response = client.post(f"/api/v1/sandboxes/{sandbox['id']}/exec", json={+ "command": [+ "/usr/bin/python3",+ "-c",+ (+ "import os; "+ "from pathlib import Path; "+ "home = Path('/home'); "+ "exec_path = home / 'exec-created'; "+ "exec_path.mkdir(); "+ "(exec_path / 'marker.txt').write_text('hello-home-exec'); "+ "print(home.is_dir()); "+ "print((home / 'upload-created').is_dir()); "+ "print((home / 'upload-created/file.txt').read_text()); "+ "print(exec_path.is_dir())"+ ),+ ],+ "timeout_seconds": 5,+ })+ assert response.status_code == 200+ data = response.json()+ assert data["exit_code"] == 0, data+ assert data["stdout"].splitlines() == ["True", "True", "hello-home-upload", "True"]++ download = client.get(+ f"/api/v1/sandboxes/{sandbox['id']}/download",+ params={"sandbox_path": "/home/exec-created/marker.txt"},+ )+ assert download.status_code == 200, download.text+ assert download.content == b"hello-home-exec"++ @staticmethod+ def test_exec_applies_workdir_env_and_stdin(+ client,+ create_sandbox_with_policy,+ ):+ sandbox = create_sandbox_with_policy(+ name_prefix="exec-options",+ policy={+ "name": "exec-options-policy",+ "filesystem_policy": {+ "read_only": ["/usr", "/lib", "/lib64", "/etc", "/opt"],+ "read_write": ["/tmp"],+ },+ "network": {+ "mode": "host",+ },+ },+ )++ script = (+ "import os, pathlib, sys; "+ "print(os.environ['BOX_TEST']); "+ "print(pathlib.Path.cwd()); "+ "print(sys.stdin.read())"+ )+ response = client.post(f"/api/v1/sandboxes/{sandbox['id']}/exec", json={+ "command": ["/usr/bin/python3", "-c", script],+ "workdir": "/tmp",+ "env": {"BOX_TEST": "env-ok"},+ "stdin": "stdin-ok",+ "timeout_seconds": 5,+ })+ assert response.status_code == 200+ data = response.json()+ assert data["exit_code"] == 0, data+ assert data["stdout"].splitlines() == ["env-ok", "/tmp", "stdin-ok"]++ @staticmethod+ def test_exec_runs_javascript_code(+ client,+ create_sandbox_with_policy,+ ):+ sandbox = create_sandbox_with_policy(+ name_prefix="exec-js",+ policy={+ "name": "exec-js-policy",+ "filesystem_policy": {+ "read_only": ["/usr", "/lib", "/lib64", "/etc", "/opt"],+ "read_write": ["/tmp"],+ },+ "network": {+ "mode": "host",+ },+ },+ )++ js_code = (+ "const label = process.env.BOX_JS_TEST || 'missing'; "+ "const sum = [1, 2, 3, 4].reduce((total, value) => total + value, 0); "+ "console.log(label); "+ "console.log(`sum=${sum}`);"+ )+ response = client.post(f"/api/v1/sandboxes/{sandbox['id']}/exec", json={+ "command": ["/usr/bin/node", "-e", js_code],+ "env": {"BOX_JS_TEST": "js-ok"},+ "timeout_seconds": 5,+ })+ assert response.status_code == 200+ data = response.json()+ assert data["exit_code"] == 0, data+ assert data["stdout"].splitlines() == ["js-ok", "sum=10"]+ assert data["stderr"] == ""++ @staticmethod+ def test_download_missing_file_returns_404(+ client,+ create_sandbox_with_policy,+ ):+ sandbox = create_sandbox_with_policy(+ name_prefix="download-missing",+ policy={+ "name": "download-missing-policy",+ "filesystem_policy": {+ "read_only": ["/usr", "/lib", "/lib64", "/etc", "/opt"],+ "read_write": ["/tmp"],+ },+ "network": {+ "mode": "host",+ },+ },+ )++ response = client.get(+ f"/api/v1/sandboxes/{sandbox['id']}/download",+ params={"sandbox_path": "/tmp/not-found.txt"},+ )+ assert response.status_code == 404++ @staticmethod+ def test_download_directory_returns_409(+ client,+ create_sandbox_with_policy,+ ):+ sandbox = create_sandbox_with_policy(+ name_prefix="download-dir",+ policy={+ "name": "download-dir-policy",+ "filesystem_policy": {+ "read_only": ["/usr", "/lib", "/lib64", "/etc", "/opt"],+ "read_write": ["/tmp"],+ },+ "network": {+ "mode": "host",+ },+ },+ )++ response = client.get(+ f"/api/v1/sandboxes/{sandbox['id']}/download",+ params={"sandbox_path": "/tmp"},+ )+ assert response.status_code == 409++ @staticmethod+ def test_list_files_endpoint_returns_files_and_directories(+ client,+ create_sandbox_with_policy,+ ):+ sandbox = create_sandbox_with_policy(+ name_prefix="list-files",+ policy={+ "name": "list-files-policy",+ "filesystem_policy": {+ "read_only": ["/usr", "/lib", "/lib64", "/etc", "/opt"],+ "read_write": ["/tmp"],+ },+ "network": {+ "mode": "host",+ },+ },+ )+ root = f"/tmp/{sandbox['id']}-list-api"++ setup = client.post(f"/api/v1/sandboxes/{sandbox['id']}/exec", json={+ "command": [+ "/usr/bin/python3",+ "-c",+ (+ "from pathlib import Path; import sys; "+ "root = Path(sys.argv[1]); "+ "(root / 'sub').mkdir(parents=True, exist_ok=True); "+ "(root / 'a.txt').write_text('a'); "+ "(root / 'sub/b.log').write_text('b')"+ ),+ root,+ ],+ "timeout_seconds": 5,+ })+ assert setup.status_code == 200+ assert setup.json()["exit_code"] == 0++ response = client.get(+ f"/api/v1/sandboxes/{sandbox['id']}/files",+ params={"sandbox_path": root, "recursive": True},+ )+ assert response.status_code == 200+ items = response.json()["items"]+ paths = {item["path"] for item in items}+ assert f"{root}/a.txt" in paths+ assert f"{root}/sub" in paths+ assert f"{root}/sub/b.log" in paths+ assert any(item["name"] == "sub" and item["is_directory"] for item in items)++ files_only = client.get(+ f"/api/v1/sandboxes/{sandbox['id']}/files",+ params={+ "sandbox_path": root,+ "recursive": True,+ "include_dirs": False,+ },+ )+ assert files_only.status_code == 200+ assert all(not item["is_directory"] for item in files_only.json()["items"])++ @staticmethod+ def test_search_files_endpoint_filters_matches(+ client,+ create_sandbox_with_policy,+ ):+ sandbox = create_sandbox_with_policy(+ name_prefix="search-files",+ policy={+ "name": "search-files-policy",+ "filesystem_policy": {+ "read_only": ["/usr", "/lib", "/lib64", "/etc", "/opt"],+ "read_write": ["/tmp"],+ },+ "network": {+ "mode": "host",+ },+ },+ )+ root = f"/tmp/{sandbox['id']}-search-api"++ setup = client.post(f"/api/v1/sandboxes/{sandbox['id']}/exec", json={+ "command": [+ "/usr/bin/python3",+ "-c",+ (+ "from pathlib import Path; import sys; "+ "root = Path(sys.argv[1]); "+ "root.mkdir(parents=True, exist_ok=True); "+ "(root / 'keep.py').write_text('print(1)'); "+ "(root / 'drop.py').write_text('print(2)'); "+ "(root / 'readme.md').write_text('# hi')"+ ),+ root,+ ],+ "timeout_seconds": 5,+ })+ assert setup.status_code == 200+ assert setup.json()["exit_code"] == 0++ response = client.get(+ f"/api/v1/sandboxes/{sandbox['id']}/search",+ params=[+ ("sandbox_path", root),+ ("pattern", "*.py"),+ ("exclude_patterns", "drop.py"),+ ],+ )+ assert response.status_code == 200+ items = response.json()["items"]+ assert [item["name"] for item in items] == ["keep.py"]++ @staticmethod+ def test_process_user_and_group_policy_is_applied(+ client,+ create_sandbox_with_policy,+ ):+ sandbox = create_sandbox_with_policy(+ name_prefix="process-root",+ policy={+ "name": "process-root-policy",+ "filesystem_policy": {+ "read_only": ["/usr", "/lib", "/lib64", "/etc", "/opt"],+ "read_write": ["/tmp"],+ },+ "process": {+ "run_as_user": "root",+ "run_as_group": "root",+ },+ "network": {+ "mode": "host",+ },+ },+ )++ response = client.post(f"/api/v1/sandboxes/{sandbox['id']}/exec", json={+ "command": ["/usr/bin/id", "-u"],+ "timeout_seconds": 5,+ })+ assert response.status_code == 200+ uid_data = response.json()+ assert uid_data["exit_code"] == 0, uid_data+ assert uid_data["stdout"].strip() == "0"++ response = client.post(f"/api/v1/sandboxes/{sandbox['id']}/exec", json={+ "command": ["/usr/bin/id", "-g"],+ "timeout_seconds": 5,+ })+ assert response.status_code == 200+ gid_data = response.json()+ assert gid_data["exit_code"] == 0, gid_data+ assert gid_data["stdout"].strip() == "0"++ @staticmethod+ def test_syscall_blocked_rule_is_applied(+ client,+ create_sandbox_with_policy,+ ):+ sandbox = create_sandbox_with_policy(+ name_prefix="syscall-block",+ command=["/usr/bin/sleep", "3600"],+ policy={+ "name": "syscall-block-policy",+ "filesystem_policy": {+ "read_only": ["/usr", "/lib", "/lib64", "/etc", "/opt"],+ "read_write": ["/tmp"],+ },+ "syscall": {+ "blocked": ["getpid"],+ },+ "network": {+ "mode": "host",+ },+ },+ )++ response = client.post(f"/api/v1/sandboxes/{sandbox['id']}/exec", json={+ "command": [+ "/usr/bin/python3",+ "-c",+ textwrap.dedent(+ """+ import ctypes+ import errno+ import platform+ import sys++ syscall_numbers = {+ "x86_64": 39,+ "AMD64": 39,+ "aarch64": 172,+ }+ nr = syscall_numbers.get(platform.machine())+ if nr is None:+ print(f"unsupported-arch:{platform.machine()}")+ sys.exit(2)++ libc = ctypes.CDLL("libc.so.6", use_errno=True)+ libc.syscall.restype = ctypes.c_long+ ctypes.set_errno(0)+ result = libc.syscall(nr)+ err = ctypes.get_errno()+ if result == -1 and err == errno.EPERM:+ print("syscall-blocked")+ sys.exit(7)++ print(f"unexpected-success:{result}:{err}")+ """+ ).strip(),+ ],+ "timeout_seconds": 5,+ })+ assert response.status_code == 200+ data = response.json()+ assert data["exit_code"] == 7, data+ assert "syscall-blocked" in data["stdout"]+ assert "unexpected-success" not in data["stdout"]++ @staticmethod+ def test_pid_namespace_policy_is_applied(+ client,+ create_sandbox_with_policy,+ ):+ sandbox = create_sandbox_with_policy(+ name_prefix="pid-ns",+ policy={+ "name": "pid-ns-policy",+ "filesystem_policy": {+ "read_only": ["/usr", "/lib", "/lib64", "/etc", "/opt"],+ "read_write": ["/tmp"],+ },+ "namespace": {+ "pid": True,+ },+ "landlock": {+ "compatibility": "disabled",+ },+ "network": {+ "mode": "host",+ },+ },+ )++ response = client.post(f"/api/v1/sandboxes/{sandbox['id']}/exec", json={+ "command": ["/usr/bin/python3", "-c", "import os; print(os.getpid())"],+ "timeout_seconds": 5,+ })+ assert response.status_code == 200+ data = response.json()+ assert data["exit_code"] == 0, data+ assert int(data["stdout"].strip()) <= 5++ @staticmethod+ def test_capability_drop_removes_net_raw(+ client,+ create_sandbox_with_policy,+ ):+ sandbox = create_sandbox_with_policy(+ name_prefix="cap-drop",+ policy={+ "name": "cap-drop-policy",+ "filesystem_policy": {+ "read_only": ["/usr", "/lib", "/lib64", "/etc", "/opt"],+ "read_write": ["/tmp"],+ },+ "process": {+ "run_as_user": "root",+ "run_as_group": "root",+ },+ "capabilities": {+ "add": ["CAP_NET_RAW"],+ "drop": ["CAP_NET_RAW"],+ },+ "landlock": {+ "compatibility": "disabled",+ },+ "network": {+ "mode": "host",+ },+ },+ )++ response = client.post(f"/api/v1/sandboxes/{sandbox['id']}/exec", json={+ "command": ["/usr/bin/python3", "-c", _capability_check_script(13)],+ "timeout_seconds": 5,+ })+ assert response.status_code == 200+ data = response.json()+ assert data["exit_code"] == 0, data+ assert data["stdout"].strip() == "no"++ @staticmethod+ def test_capability_add_net_raw_sets_effective_capability(+ client,+ create_sandbox_with_policy,+ ):+ sandbox = create_sandbox_with_policy(+ name_prefix="cap-add",+ policy={+ "name": "cap-add-policy",+ "filesystem_policy": {+ "read_only": ["/usr", "/lib", "/lib64", "/etc", "/opt"],+ "read_write": ["/tmp"],+ },+ "process": {+ "run_as_user": "root",+ "run_as_group": "root",+ },+ "capabilities": {+ "add": ["CAP_NET_RAW"],+ "drop": [],+ },+ "landlock": {+ "compatibility": "disabled",+ },+ "network": {+ "mode": "host",+ },+ },+ )++ response = client.post(f"/api/v1/sandboxes/{sandbox['id']}/exec", json={+ "command": ["/usr/bin/python3", "-c", _capability_check_script(13)],+ "timeout_seconds": 5,+ })+ assert response.status_code == 200+ data = response.json()+ assert data["exit_code"] == 0, data+ assert data["stdout"].strip() == "yes"++ @staticmethod+ def test_landlock_hard_requirement_policy_is_enforced(+ client,+ ):+ create_resp = client.post("/api/v1/sandboxes", json={+ "command": ["/usr/bin/echo", "landlock-ok"],+ "policy": {+ "name": "landlock-hard-policy",+ "filesystem_policy": {+ "read_only": ["/usr", "/lib", "/lib64", "/etc", "/opt"],+ "read_write": ["/tmp"],+ },+ "landlock": {+ "compatibility": "hard_requirement",+ },+ "network": {+ "mode": "host",+ },+ },+ })+ assert create_resp.status_code == 201+ data = create_resp.json()+ if data["phase"] == "ready":+ assert data["phase"] == "ready", data+ else:+ assert data["phase"] == "error", data+ assert "landlock" in data["error_message"].lower()++ @staticmethod+ def test_landlock_rules_allow_policy_paths_and_deny_other_mounted_paths(+ client,+ create_sandbox_with_policy,+ ):+ sandbox = create_sandbox_with_policy(+ name_prefix="landlock-rules",+ policy={+ "name": "landlock-rules-policy",+ "filesystem_policy": {+ "read_only": ["/usr", "/lib", "/lib64", "/etc", "/opt"],+ "read_write": ["/tmp"],+ },+ "landlock": {+ "compatibility": "hard_requirement",+ },+ "network": {+ "mode": "host",+ },+ },+ )+ allowed_path = f"/tmp/{sandbox['id']}-landlock-allowed.txt"++ script = textwrap.dedent(+ """+ from pathlib import Path+ import sys++ allowed = Path(sys.argv[1])+ allowed.write_text("landlock-allowed")+ assert allowed.read_text() == "landlock-allowed"++ try:+ Path("/run/jiuwenbox-landlock-launcher.py").read_text()+ except PermissionError:+ print("landlock-denied")+ sys.exit(7)++ print("unexpected-success")+ """+ ).strip()+ response = client.post(f"/api/v1/sandboxes/{sandbox['id']}/exec", json={+ "command": ["/usr/bin/python3", "-c", script, allowed_path],+ "timeout_seconds": 5,+ })+ assert response.status_code == 200+ data = response.json()+ assert data["exit_code"] == 7, data+ assert "landlock-denied" in data["stdout"]+ assert "unexpected-success" not in data["stdout"]++ @staticmethod+ def test_network_mode_isolated_blocks_http_requests(+ client,+ create_sandbox_with_policy,+ server_endpoint,+ ):+ sandbox = create_sandbox_with_policy(+ name_prefix="net-isolated",+ policy={+ "name": "net-isolated-policy",+ "filesystem_policy": {+ "read_only": ["/usr", "/lib", "/lib64", "/etc", "/opt"],+ "read_write": ["/tmp"],+ },+ "network": {+ "mode": "isolated",+ "egress": {"default": "allow"},+ },+ },+ )++ script = (+ "import sys, urllib.request; "+ "urllib.request.urlopen(sys.argv[1], timeout=2).read(); "+ "print('unexpected-success')"+ )+ response = client.post(f"/api/v1/sandboxes/{sandbox['id']}/exec", json={+ "command": ["/usr/bin/python3", "-c", script, _sandbox_health_url(server_endpoint)],+ "timeout_seconds": 5,+ })+ assert response.status_code == 200+ data = response.json()+ assert data["exit_code"] != 0+ assert "unexpected-success" not in data["stdout"]++ @staticmethod+ def test_network_mode_host_allows_http_requests(+ client,+ create_sandbox_with_policy,+ server_endpoint,+ ):+ sandbox = create_sandbox_with_policy(+ name_prefix="net-host",+ policy={+ "name": "net-host-policy",+ "filesystem_policy": {+ "read_only": ["/usr", "/lib", "/lib64", "/etc", "/opt"],+ "read_write": ["/tmp"],+ },+ "network": {+ "mode": "host",+ "egress": {"default": "allow"},+ },+ },+ )++ script = (+ "import sys, urllib.request; "+ "print(urllib.request.urlopen(sys.argv[1], timeout=2).read().decode())"+ )+ response = client.post(f"/api/v1/sandboxes/{sandbox['id']}/exec", json={+ "command": ["/usr/bin/python3", "-c", script, _sandbox_health_url(server_endpoint)],+ "timeout_seconds": 5,+ })+ assert response.status_code == 200+ data = response.json()+ assert data["exit_code"] == 0+ assert '"status":"ok"' in data["stdout"].replace(" ", "")++ @staticmethod+ def test_ingress_allowed_port_accepts_loopback_connection(+ client,+ create_sandbox_with_policy,+ ):+ sandbox = create_sandbox_with_policy(+ name_prefix="ingress-allow",+ policy={+ "name": "ingress-allow-policy",+ "filesystem_policy": {+ "read_only": ["/usr", "/lib", "/lib64", "/etc", "/opt"],+ "read_write": ["/tmp"],+ },+ "network": {+ "mode": "isolated",+ "egress": {"default": "allow"},+ "ingress": {+ "default": "deny",+ "allowed_ips": ["127.0.0.1/32"],+ "allowed_ports": [18081],+ },+ },+ },+ )++ response = client.post(f"/api/v1/sandboxes/{sandbox['id']}/exec", json={+ "command": ["/usr/bin/python3", "-c", _loopback_ingress_script(True), "18081"],+ "timeout_seconds": 5,+ })+ assert response.status_code == 200+ data = response.json()+ assert data["exit_code"] == 0, data+ assert "ingress-ok" in data["stdout"]++ @staticmethod+ def test_ingress_blocked_port_rejects_loopback_connection(+ client,+ create_sandbox_with_policy,+ ):+ sandbox = create_sandbox_with_policy(+ name_prefix="ingress-block",+ policy={+ "name": "ingress-block-policy",+ "filesystem_policy": {+ "read_only": ["/usr", "/lib", "/lib64", "/etc", "/opt"],+ "read_write": ["/tmp"],+ },+ "network": {+ "mode": "isolated",+ "egress": {"default": "allow"},+ "ingress": {+ "default": "deny",+ "allowed_ips": ["127.0.0.1/32"],+ "allowed_ports": [18081],+ "blocked_ports": [18082],+ },+ },+ },+ )++ response = client.post(f"/api/v1/sandboxes/{sandbox['id']}/exec", json={+ "command": ["/usr/bin/python3", "-c", _loopback_ingress_script(False), "18082"],+ "timeout_seconds": 5,+ })+ assert response.status_code == 200+ data = response.json()+ assert data["exit_code"] != 0+ assert "unexpected-success" not in data["stdout"]++ @staticmethod+ def test_isolated_sandbox_policy_persists_after_restart(+ client,+ create_sandbox_with_policy,+ ):+ sandbox = create_sandbox_with_policy(+ name_prefix="netns-persist",+ policy={+ "name": "netns-persist-policy",+ "filesystem_policy": {+ "read_only": ["/usr", "/lib", "/lib64", "/etc", "/opt"],+ "read_write": ["/tmp"],+ },+ "network": {+ "mode": "isolated",+ "egress": {"default": "allow"},+ "ingress": {+ "default": "deny",+ "allowed_ips": ["127.0.0.1/32"],+ "allowed_ports": [18083],+ },+ },+ },+ )++ first_exec = client.post(f"/api/v1/sandboxes/{sandbox['id']}/exec", json={+ "command": ["/usr/bin/python3", "-c", _loopback_ingress_script(True), "18083"],+ "timeout_seconds": 5,+ })+ assert first_exec.status_code == 200+ first_data = first_exec.json()+ assert first_data["exit_code"] == 0, first_data++ stop_response = client.post(f"/api/v1/sandboxes/{sandbox['id']}/stop")+ assert stop_response.status_code == 200++ start_response = client.post(f"/api/v1/sandboxes/{sandbox['id']}/start")+ assert start_response.status_code == 200++ second_exec = client.post(f"/api/v1/sandboxes/{sandbox['id']}/exec", json={+ "command": ["/usr/bin/python3", "-c", _loopback_ingress_script(True), "18083"],+ "timeout_seconds": 5,+ })+ assert second_exec.status_code == 200+ second_data = second_exec.json()+ assert second_data["exit_code"] == 0, second_data++ delete_response = client.delete(f"/api/v1/sandboxes/{sandbox['id']}")+ assert delete_response.status_code == 204+++class TestSandboxExec:+ @staticmethod+ def test_exec_requires_running_sandbox(client):+ create_resp = client.post("/api/v1/sandboxes", json={+ "command": ["/usr/bin/sleep", "3600"],+ })+ sandbox_id = create_resp.json()["id"]++ # Stop it first+ client.post(f"/api/v1/sandboxes/{sandbox_id}/stop")++ resp = client.post(f"/api/v1/sandboxes/{sandbox_id}/exec", json={+ "command": ["/usr/bin/echo", "hello"],+ })+ assert resp.status_code == 409+++class TestSandboxListing:+ @staticmethod+ def test_list_returns_all_sandboxes(client):+ for i in range(3):+ client.post("/api/v1/sandboxes", json={+ "command": ["/usr/bin/echo"],+ })++ resp = client.get("/api/v1/sandboxes")+ assert resp.status_code == 200+ assert len(resp.json()) == 3diff --git a/jiuwenbox/uv.lock b/jiuwenbox/uv.locknew file mode 100644index 0000000000..4bfe9cf3e9--- /dev/null+++ b/jiuwenbox/uv.lock@@ -0,0 +1,898 @@+version = 1+revision = 3+requires-python = ">=3.11"+resolution-markers = [+ "python_full_version >= '3.14' and sys_platform == 'win32'",+ "python_full_version >= '3.14' and sys_platform == 'emscripten'",+ "python_full_version >= '3.14' and sys_platform != 'emscripten' and sys_platform != 'win32'",+ "python_full_version == '3.13.*' and sys_platform == 'win32'",+ "python_full_version == '3.13.*' and sys_platform == 'emscripten'",+ "python_full_version == '3.13.*' and sys_platform != 'emscripten' and sys_platform != 'win32'",+ "python_full_version < '3.13' and sys_platform == 'win32'",+ "python_full_version < '3.13' and sys_platform == 'emscripten'",+ "python_full_version < '3.13' and sys_platform != 'emscripten' and sys_platform != 'win32'",+]++[[package]]+name = "annotated-doc"+version = "0.0.4"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/57/ba/046ceea27344560984e26a590f90bc7f4a75b06701f653222458922b558c/annotated_doc-0.0.4.tar.gz", hash = "sha256:fbcda96e87e9c92ad167c2e53839e57503ecfda18804ea28102353485033faa4", size = 7288, upload-time = "2025-11-10T22:07:42.062Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/1e/d3/26bf1008eb3d2daa8ef4cacc7f3bfdc11818d111f7e2d0201bc6e3b49d45/annotated_doc-0.0.4-py3-none-any.whl", hash = "sha256:571ac1dc6991c450b25a9c2d84a3705e2ae7a53467b5d111c24fa8baabbed320", size = 5303, upload-time = "2025-11-10T22:07:40.673Z" },+]++[[package]]+name = "annotated-types"+version = "0.7.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/ee/67/531ea369ba64dcff5ec9c3402f9f51bf748cec26dde048a2f973a4eea7f5/annotated_types-0.7.0.tar.gz", hash = "sha256:aff07c09a53a08bc8cfccb9c85b05f1aa9a2a6f23728d790723543408344ce89", size = 16081, upload-time = "2024-05-20T21:33:25.928Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/78/b6/6307fbef88d9b5ee7421e68d78a9f162e0da4900bc5f5793f6d3d0e34fb8/annotated_types-0.7.0-py3-none-any.whl", hash = "sha256:1f02e8b43a8fbbc3f3e0d4f0f4bfc8131bcb4eebe8849b8e5c773f3a1c582a53", size = 13643, upload-time = "2024-05-20T21:33:24.1Z" },+]++[[package]]+name = "anyio"+version = "4.13.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "idna" },+ { name = "typing-extensions", marker = "python_full_version < '3.13'" },+]+sdist = { url = "https://files.pythonhosted.org/packages/19/14/2c5dd9f512b66549ae92767a9c7b330ae88e1932ca57876909410251fe13/anyio-4.13.0.tar.gz", hash = "sha256:334b70e641fd2221c1505b3890c69882fe4a2df910cba14d97019b90b24439dc", size = 231622, upload-time = "2026-03-24T12:59:09.671Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/da/42/e921fccf5015463e32a3cf6ee7f980a6ed0f395ceeaa45060b61d86486c2/anyio-4.13.0-py3-none-any.whl", hash = "sha256:08b310f9e24a9594186fd75b4f73f4a4152069e3853f1ed8bfbf58369f4ad708", size = 114353, upload-time = "2026-03-24T12:59:08.246Z" },+]++[[package]]+name = "certifi"+version = "2026.2.25"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/af/2d/7bf41579a8986e348fa033a31cdd0e4121114f6bce2457e8876010b092dd/certifi-2026.2.25.tar.gz", hash = "sha256:e887ab5cee78ea814d3472169153c2d12cd43b14bd03329a39a9c6e2e80bfba7", size = 155029, upload-time = "2026-02-25T02:54:17.342Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/9a/3c/c17fb3ca2d9c3acff52e30b309f538586f9f5b9c9cf454f3845fc9af4881/certifi-2026.2.25-py3-none-any.whl", hash = "sha256:027692e4402ad994f1c42e52a4997a9763c646b73e4096e4d5d6db8af1d6f0fa", size = 153684, upload-time = "2026-02-25T02:54:15.766Z" },+]++[[package]]+name = "click"+version = "8.3.2"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "colorama", marker = "sys_platform == 'win32'" },+]+sdist = { url = "https://files.pythonhosted.org/packages/57/75/31212c6bf2503fdf920d87fee5d7a86a2e3bcf444984126f13d8e4016804/click-8.3.2.tar.gz", hash = "sha256:14162b8b3b3550a7d479eafa77dfd3c38d9dc8951f6f69c78913a8f9a7540fd5", size = 302856, upload-time = "2026-04-03T19:14:45.118Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/e4/20/71885d8b97d4f3dde17b1fdb92dbd4908b00541c5a3379787137285f602e/click-8.3.2-py3-none-any.whl", hash = "sha256:1924d2c27c5653561cd2cae4548d1406039cb79b858b747cfea24924bbc1616d", size = 108379, upload-time = "2026-04-03T19:14:43.505Z" },+]++[[package]]+name = "colorama"+version = "0.4.6"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/d8/53/6f443c9a4a8358a93a6792e2acffb9d9d5cb0a5cfd8802644b7b1c9a02e4/colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44", size = 27697, upload-time = "2022-10-25T02:36:22.414Z" }+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 = "coverage"+version = "7.13.5"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/9d/e0/70553e3000e345daff267cec284ce4cbf3fc141b6da229ac52775b5428f1/coverage-7.13.5.tar.gz", hash = "sha256:c81f6515c4c40141f83f502b07bbfa5c240ba25bbe73da7b33f1e5b6120ff179", size = 915967, upload-time = "2026-03-17T10:33:18.341Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/4b/37/d24c8f8220ff07b839b2c043ea4903a33b0f455abe673ae3c03bbdb7f212/coverage-7.13.5-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:66a80c616f80181f4d643b0f9e709d97bcea413ecd9631e1dedc7401c8e6695d", size = 219381, upload-time = "2026-03-17T10:30:14.68Z" },+ { url = "https://files.pythonhosted.org/packages/35/8b/cd129b0ca4afe886a6ce9d183c44d8301acbd4ef248622e7c49a23145605/coverage-7.13.5-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:145ede53ccbafb297c1c9287f788d1bc3efd6c900da23bf6931b09eafc931587", size = 219880, upload-time = "2026-03-17T10:30:16.231Z" },+ { url = "https://files.pythonhosted.org/packages/55/2f/e0e5b237bffdb5d6c530ce87cc1d413a5b7d7dfd60fb067ad6d254c35c76/coverage-7.13.5-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:0672854dc733c342fa3e957e0605256d2bf5934feeac328da9e0b5449634a642", size = 250303, upload-time = "2026-03-17T10:30:17.748Z" },+ { url = "https://files.pythonhosted.org/packages/92/be/b1afb692be85b947f3401375851484496134c5554e67e822c35f28bf2fbc/coverage-7.13.5-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:ec10e2a42b41c923c2209b846126c6582db5e43a33157e9870ba9fb70dc7854b", size = 252218, upload-time = "2026-03-17T10:30:19.804Z" },+ { url = "https://files.pythonhosted.org/packages/da/69/2f47bb6fa1b8d1e3e5d0c4be8ccb4313c63d742476a619418f85740d597b/coverage-7.13.5-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:be3d4bbad9d4b037791794ddeedd7d64a56f5933a2c1373e18e9e568b9141686", size = 254326, upload-time = "2026-03-17T10:30:21.321Z" },+ { url = "https://files.pythonhosted.org/packages/d5/d0/79db81da58965bd29dabc8f4ad2a2af70611a57cba9d1ec006f072f30a54/coverage-7.13.5-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:4d2afbc5cc54d286bfb54541aa50b64cdb07a718227168c87b9e2fb8f25e1743", size = 256267, upload-time = "2026-03-17T10:30:23.094Z" },+ { url = "https://files.pythonhosted.org/packages/e5/32/d0d7cc8168f91ddab44c0ce4806b969df5f5fdfdbb568eaca2dbc2a04936/coverage-7.13.5-cp311-cp311-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:3ad050321264c49c2fa67bb599100456fc51d004b82534f379d16445da40fb75", size = 250430, upload-time = "2026-03-17T10:30:25.311Z" },+ { url = "https://files.pythonhosted.org/packages/4d/06/a055311d891ddbe231cd69fdd20ea4be6e3603ffebddf8704b8ca8e10a3c/coverage-7.13.5-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:7300c8a6d13335b29bb76d7651c66af6bd8658517c43499f110ddc6717bfc209", size = 252017, upload-time = "2026-03-17T10:30:27.284Z" },+ { url = "https://files.pythonhosted.org/packages/d6/f6/d0fd2d21e29a657b5f77a2fe7082e1568158340dceb941954f776dce1b7b/coverage-7.13.5-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:eb07647a5738b89baab047f14edd18ded523de60f3b30e75c2acc826f79c839a", size = 250080, upload-time = "2026-03-17T10:30:29.481Z" },+ { url = "https://files.pythonhosted.org/packages/4e/ab/0d7fb2efc2e9a5eb7ddcc6e722f834a69b454b7e6e5888c3a8567ecffb31/coverage-7.13.5-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:9adb6688e3b53adffefd4a52d72cbd8b02602bfb8f74dcd862337182fd4d1a4e", size = 253843, upload-time = "2026-03-17T10:30:31.301Z" },+ { url = "https://files.pythonhosted.org/packages/ba/6f/7467b917bbf5408610178f62a49c0ed4377bb16c1657f689cc61470da8ce/coverage-7.13.5-cp311-cp311-musllinux_1_2_riscv64.whl", hash = "sha256:7c8d4bc913dd70b93488d6c496c77f3aff5ea99a07e36a18f865bca55adef8bd", size = 249802, upload-time = "2026-03-17T10:30:33.358Z" },+ { url = "https://files.pythonhosted.org/packages/75/2c/1172fb689df92135f5bfbbd69fc83017a76d24ea2e2f3a1154007e2fb9f8/coverage-7.13.5-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:0e3c426ffc4cd952f54ee9ffbdd10345709ecc78a3ecfd796a57236bfad0b9b8", size = 250707, upload-time = "2026-03-17T10:30:35.2Z" },+ { url = "https://files.pythonhosted.org/packages/67/21/9ac389377380a07884e3b48ba7a620fcd9dbfaf1d40565facdc6b36ec9ef/coverage-7.13.5-cp311-cp311-win32.whl", hash = "sha256:259b69bb83ad9894c4b25be2528139eecba9a82646ebdda2d9db1ba28424a6bf", size = 221880, upload-time = "2026-03-17T10:30:36.775Z" },+ { url = "https://files.pythonhosted.org/packages/af/7f/4cd8a92531253f9d7c1bbecd9fa1b472907fb54446ca768c59b531248dc5/coverage-7.13.5-cp311-cp311-win_amd64.whl", hash = "sha256:258354455f4e86e3e9d0d17571d522e13b4e1e19bf0f8596bcf9476d61e7d8a9", size = 222816, upload-time = "2026-03-17T10:30:38.891Z" },+ { url = "https://files.pythonhosted.org/packages/12/a6/1d3f6155fb0010ca68eba7fe48ca6c9da7385058b77a95848710ecf189b1/coverage-7.13.5-cp311-cp311-win_arm64.whl", hash = "sha256:bff95879c33ec8da99fc9b6fe345ddb5be6414b41d6d1ad1c8f188d26f36e028", size = 221483, upload-time = "2026-03-17T10:30:40.463Z" },+ { url = "https://files.pythonhosted.org/packages/a0/c3/a396306ba7db865bf96fc1fb3b7fd29bcbf3d829df642e77b13555163cd6/coverage-7.13.5-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:460cf0114c5016fa841214ff5564aa4864f11948da9440bc97e21ad1f4ba1e01", size = 219554, upload-time = "2026-03-17T10:30:42.208Z" },+ { url = "https://files.pythonhosted.org/packages/a6/16/a68a19e5384e93f811dccc51034b1fd0b865841c390e3c931dcc4699e035/coverage-7.13.5-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:0e223ce4b4ed47f065bfb123687686512e37629be25cc63728557ae7db261422", size = 219908, upload-time = "2026-03-17T10:30:43.906Z" },+ { url = "https://files.pythonhosted.org/packages/29/72/20b917c6793af3a5ceb7fb9c50033f3ec7865f2911a1416b34a7cfa0813b/coverage-7.13.5-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:6e3370441f4513c6252bf042b9c36d22491142385049243253c7e48398a15a9f", size = 251419, upload-time = "2026-03-17T10:30:45.545Z" },+ { url = "https://files.pythonhosted.org/packages/8c/49/cd14b789536ac6a4778c453c6a2338bc0a2fb60c5a5a41b4008328b9acc1/coverage-7.13.5-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:03ccc709a17a1de074fb1d11f217342fb0d2b1582ed544f554fc9fc3f07e95f5", size = 254159, upload-time = "2026-03-17T10:30:47.204Z" },+ { url = "https://files.pythonhosted.org/packages/9d/00/7b0edcfe64e2ed4c0340dac14a52ad0f4c9bd0b8b5e531af7d55b703db7c/coverage-7.13.5-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:3f4818d065964db3c1c66dc0fbdac5ac692ecbc875555e13374fdbe7eedb4376", size = 255270, upload-time = "2026-03-17T10:30:48.812Z" },+ { url = "https://files.pythonhosted.org/packages/93/89/7ffc4ba0f5d0a55c1e84ea7cee39c9fc06af7b170513d83fbf3bbefce280/coverage-7.13.5-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:012d5319e66e9d5a218834642d6c35d265515a62f01157a45bcc036ecf947256", size = 257538, upload-time = "2026-03-17T10:30:50.77Z" },+ { url = "https://files.pythonhosted.org/packages/81/bd/73ddf85f93f7e6fa83e77ccecb6162d9415c79007b4bc124008a4995e4a7/coverage-7.13.5-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:8dd02af98971bdb956363e4827d34425cb3df19ee550ef92855b0acb9c7ce51c", size = 251821, upload-time = "2026-03-17T10:30:52.5Z" },+ { url = "https://files.pythonhosted.org/packages/a0/81/278aff4e8dec4926a0bcb9486320752811f543a3ce5b602cc7a29978d073/coverage-7.13.5-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:f08fd75c50a760c7eb068ae823777268daaf16a80b918fa58eea888f8e3919f5", size = 253191, upload-time = "2026-03-17T10:30:54.543Z" },+ { url = "https://files.pythonhosted.org/packages/70/ee/fe1621488e2e0a58d7e94c4800f0d96f79671553488d401a612bebae324b/coverage-7.13.5-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:843ea8643cf967d1ac7e8ecd4bb00c99135adf4816c0c0593fdcc47b597fcf09", size = 251337, upload-time = "2026-03-17T10:30:56.663Z" },+ { url = "https://files.pythonhosted.org/packages/37/a6/f79fb37aa104b562207cc23cb5711ab6793608e246cae1e93f26b2236ed9/coverage-7.13.5-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:9d44d7aa963820b1b971dbecd90bfe5fe8f81cff79787eb6cca15750bd2f79b9", size = 255404, upload-time = "2026-03-17T10:30:58.427Z" },+ { url = "https://files.pythonhosted.org/packages/75/f0/ed15262a58ec81ce457ceb717b7f78752a1713556b19081b76e90896e8d4/coverage-7.13.5-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:7132bed4bd7b836200c591410ae7d97bf7ae8be6fc87d160b2bd881df929e7bf", size = 250903, upload-time = "2026-03-17T10:31:00.093Z" },+ { url = "https://files.pythonhosted.org/packages/0f/e9/9129958f20e7e9d4d56d51d42ccf708d15cac355ff4ac6e736e97a9393d2/coverage-7.13.5-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:a698e363641b98843c517817db75373c83254781426e94ada3197cabbc2c919c", size = 252780, upload-time = "2026-03-17T10:31:01.916Z" },+ { url = "https://files.pythonhosted.org/packages/a4/d7/0ad9b15812d81272db94379fe4c6df8fd17781cc7671fdfa30c76ba5ff7b/coverage-7.13.5-cp312-cp312-win32.whl", hash = "sha256:bdba0a6b8812e8c7df002d908a9a2ea3c36e92611b5708633c50869e6d922fdf", size = 222093, upload-time = "2026-03-17T10:31:03.642Z" },+ { url = "https://files.pythonhosted.org/packages/29/3d/821a9a5799fac2556bcf0bd37a70d1d11fa9e49784b6d22e92e8b2f85f18/coverage-7.13.5-cp312-cp312-win_amd64.whl", hash = "sha256:d2c87e0c473a10bffe991502eac389220533024c8082ec1ce849f4218dded810", size = 222900, upload-time = "2026-03-17T10:31:05.651Z" },+ { url = "https://files.pythonhosted.org/packages/d4/fa/2238c2ad08e35cf4f020ea721f717e09ec3152aea75d191a7faf3ef009a8/coverage-7.13.5-cp312-cp312-win_arm64.whl", hash = "sha256:bf69236a9a81bdca3bff53796237aab096cdbf8d78a66ad61e992d9dac7eb2de", size = 221515, upload-time = "2026-03-17T10:31:07.293Z" },+ { url = "https://files.pythonhosted.org/packages/74/8c/74fedc9663dcf168b0a059d4ea756ecae4da77a489048f94b5f512a8d0b3/coverage-7.13.5-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:5ec4af212df513e399cf11610cc27063f1586419e814755ab362e50a85ea69c1", size = 219576, upload-time = "2026-03-17T10:31:09.045Z" },+ { url = "https://files.pythonhosted.org/packages/0c/c9/44fb661c55062f0818a6ffd2685c67aa30816200d5f2817543717d4b92eb/coverage-7.13.5-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:941617e518602e2d64942c88ec8499f7fbd49d3f6c4327d3a71d43a1973032f3", size = 219942, upload-time = "2026-03-17T10:31:10.708Z" },+ { url = "https://files.pythonhosted.org/packages/5f/13/93419671cee82b780bab7ea96b67c8ef448f5f295f36bf5031154ec9a790/coverage-7.13.5-cp313-cp313-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:da305e9937617ee95c2e39d8ff9f040e0487cbf1ac174f777ed5eddd7a7c1f26", size = 250935, upload-time = "2026-03-17T10:31:12.392Z" },+ { url = "https://files.pythonhosted.org/packages/ac/68/1666e3a4462f8202d836920114fa7a5ee9275d1fa45366d336c551a162dd/coverage-7.13.5-cp313-cp313-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:78e696e1cc714e57e8b25760b33a8b1026b7048d270140d25dafe1b0a1ee05a3", size = 253541, upload-time = "2026-03-17T10:31:14.247Z" },+ { url = "https://files.pythonhosted.org/packages/4e/5e/3ee3b835647be646dcf3c65a7c6c18f87c27326a858f72ab22c12730773d/coverage-7.13.5-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:02ca0eed225b2ff301c474aeeeae27d26e2537942aa0f87491d3e147e784a82b", size = 254780, upload-time = "2026-03-17T10:31:16.193Z" },+ { url = "https://files.pythonhosted.org/packages/44/b3/cb5bd1a04cfcc49ede6cd8409d80bee17661167686741e041abc7ee1b9a9/coverage-7.13.5-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:04690832cbea4e4663d9149e05dba142546ca05cb1848816760e7f58285c970a", size = 256912, upload-time = "2026-03-17T10:31:17.89Z" },+ { url = "https://files.pythonhosted.org/packages/1b/66/c1dceb7b9714473800b075f5c8a84f4588f887a90eb8645282031676e242/coverage-7.13.5-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:0590e44dd2745c696a778f7bab6aa95256de2cbc8b8cff4f7db8ff09813d6969", size = 251165, upload-time = "2026-03-17T10:31:19.605Z" },+ { url = "https://files.pythonhosted.org/packages/b7/62/5502b73b97aa2e53ea22a39cf8649ff44827bef76d90bf638777daa27a9d/coverage-7.13.5-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:d7cfad2d6d81dd298ab6b89fe72c3b7b05ec7544bdda3b707ddaecff8d25c161", size = 252908, upload-time = "2026-03-17T10:31:21.312Z" },+ { url = "https://files.pythonhosted.org/packages/7d/37/7792c2d69854397ca77a55c4646e5897c467928b0e27f2d235d83b5d08c6/coverage-7.13.5-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:e092b9499de38ae0fbfbc603a74660eb6ff3e869e507b50d85a13b6db9863e15", size = 250873, upload-time = "2026-03-17T10:31:23.565Z" },+ { url = "https://files.pythonhosted.org/packages/a3/23/bc866fb6163be52a8a9e5d708ba0d3b1283c12158cefca0a8bbb6e247a43/coverage-7.13.5-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:48c39bc4a04d983a54a705a6389512883d4a3b9862991b3617d547940e9f52b1", size = 255030, upload-time = "2026-03-17T10:31:25.58Z" },+ { url = "https://files.pythonhosted.org/packages/7d/8b/ef67e1c222ef49860701d346b8bbb70881bef283bd5f6cbba68a39a086c7/coverage-7.13.5-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:2d3807015f138ffea1ed9afeeb8624fd781703f2858b62a8dd8da5a0994c57b6", size = 250694, upload-time = "2026-03-17T10:31:27.316Z" },+ { url = "https://files.pythonhosted.org/packages/46/0d/866d1f74f0acddbb906db212e096dee77a8e2158ca5e6bb44729f9d93298/coverage-7.13.5-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:ee2aa19e03161671ec964004fb74b2257805d9710bf14a5c704558b9d8dbaf17", size = 252469, upload-time = "2026-03-17T10:31:29.472Z" },+ { url = "https://files.pythonhosted.org/packages/7a/f5/be742fec31118f02ce42b21c6af187ad6a344fed546b56ca60caacc6a9a0/coverage-7.13.5-cp313-cp313-win32.whl", hash = "sha256:ce1998c0483007608c8382f4ff50164bfc5bd07a2246dd272aa4043b75e61e85", size = 222112, upload-time = "2026-03-17T10:31:31.526Z" },+ { url = "https://files.pythonhosted.org/packages/66/40/7732d648ab9d069a46e686043241f01206348e2bbf128daea85be4d6414b/coverage-7.13.5-cp313-cp313-win_amd64.whl", hash = "sha256:631efb83f01569670a5e866ceb80fe483e7c159fac6f167e6571522636104a0b", size = 222923, upload-time = "2026-03-17T10:31:33.633Z" },+ { url = "https://files.pythonhosted.org/packages/48/af/fea819c12a095781f6ccd504890aaddaf88b8fab263c4940e82c7b770124/coverage-7.13.5-cp313-cp313-win_arm64.whl", hash = "sha256:f4cd16206ad171cbc2470dbea9103cf9a7607d5fe8c242fdf1edf36174020664", size = 221540, upload-time = "2026-03-17T10:31:35.445Z" },+ { url = "https://files.pythonhosted.org/packages/23/d2/17879af479df7fbbd44bd528a31692a48f6b25055d16482fdf5cdb633805/coverage-7.13.5-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:0428cbef5783ad91fe240f673cc1f76b25e74bbfe1a13115e4aa30d3f538162d", size = 220262, upload-time = "2026-03-17T10:31:37.184Z" },+ { url = "https://files.pythonhosted.org/packages/5b/4c/d20e554f988c8f91d6a02c5118f9abbbf73a8768a3048cb4962230d5743f/coverage-7.13.5-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:e0b216a19534b2427cc201a26c25da4a48633f29a487c61258643e89d28200c0", size = 220617, upload-time = "2026-03-17T10:31:39.245Z" },+ { url = "https://files.pythonhosted.org/packages/29/9c/f9f5277b95184f764b24e7231e166dfdb5780a46d408a2ac665969416d61/coverage-7.13.5-cp313-cp313t-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:972a9cd27894afe4bc2b1480107054e062df08e671df7c2f18c205e805ccd806", size = 261912, upload-time = "2026-03-17T10:31:41.324Z" },+ { url = "https://files.pythonhosted.org/packages/d5/f6/7f1ab39393eeb50cfe4747ae8ef0e4fc564b989225aa1152e13a180d74f8/coverage-7.13.5-cp313-cp313t-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:4b59148601efcd2bac8c4dbf1f0ad6391693ccf7a74b8205781751637076aee3", size = 263987, upload-time = "2026-03-17T10:31:43.724Z" },+ { url = "https://files.pythonhosted.org/packages/a0/d7/62c084fb489ed9c6fbdf57e006752e7c516ea46fd690e5ed8b8617c7d52e/coverage-7.13.5-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:505d7083c8b0c87a8fa8c07370c285847c1f77739b22e299ad75a6af6c32c5c9", size = 266416, upload-time = "2026-03-17T10:31:45.769Z" },+ { url = "https://files.pythonhosted.org/packages/a9/f6/df63d8660e1a0bff6125947afda112a0502736f470d62ca68b288ea762d8/coverage-7.13.5-cp313-cp313t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:60365289c3741e4db327e7baff2a4aaacf22f788e80fa4683393891b70a89fbd", size = 267558, upload-time = "2026-03-17T10:31:48.293Z" },+ { url = "https://files.pythonhosted.org/packages/5b/02/353ca81d36779bd108f6d384425f7139ac3c58c750dcfaafe5d0bee6436b/coverage-7.13.5-cp313-cp313t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:1b88c69c8ef5d4b6fe7dea66d6636056a0f6a7527c440e890cf9259011f5e606", size = 261163, upload-time = "2026-03-17T10:31:50.125Z" },+ { url = "https://files.pythonhosted.org/packages/2c/16/2e79106d5749bcaf3aee6d309123548e3276517cd7851faa8da213bc61bf/coverage-7.13.5-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:5b13955d31d1633cf9376908089b7cebe7d15ddad7aeaabcbe969a595a97e95e", size = 263981, upload-time = "2026-03-17T10:31:51.961Z" },+ { url = "https://files.pythonhosted.org/packages/29/c7/c29e0c59ffa6942030ae6f50b88ae49988e7e8da06de7ecdbf49c6d4feae/coverage-7.13.5-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:f70c9ab2595c56f81a89620e22899eea8b212a4041bd728ac6f4a28bf5d3ddd0", size = 261604, upload-time = "2026-03-17T10:31:53.872Z" },+ { url = "https://files.pythonhosted.org/packages/40/48/097cdc3db342f34006a308ab41c3a7c11c3f0d84750d340f45d88a782e00/coverage-7.13.5-cp313-cp313t-musllinux_1_2_ppc64le.whl", hash = "sha256:084b84a8c63e8d6fc7e3931b316a9bcafca1458d753c539db82d31ed20091a87", size = 265321, upload-time = "2026-03-17T10:31:55.997Z" },+ { url = "https://files.pythonhosted.org/packages/bb/1f/4994af354689e14fd03a75f8ec85a9a68d94e0188bbdab3fc1516b55e512/coverage-7.13.5-cp313-cp313t-musllinux_1_2_riscv64.whl", hash = "sha256:ad14385487393e386e2ea988b09d62dd42c397662ac2dabc3832d71253eee479", size = 260502, upload-time = "2026-03-17T10:31:58.308Z" },+ { url = "https://files.pythonhosted.org/packages/22/c6/9bb9ef55903e628033560885f5c31aa227e46878118b63ab15dc7ba87797/coverage-7.13.5-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:7f2c47b36fe7709a6e83bfadf4eefb90bd25fbe4014d715224c4316f808e59a2", size = 262688, upload-time = "2026-03-17T10:32:00.141Z" },+ { url = "https://files.pythonhosted.org/packages/14/4f/f5df9007e50b15e53e01edea486814783a7f019893733d9e4d6caad75557/coverage-7.13.5-cp313-cp313t-win32.whl", hash = "sha256:67e9bc5449801fad0e5dff329499fb090ba4c5800b86805c80617b4e29809b2a", size = 222788, upload-time = "2026-03-17T10:32:02.246Z" },+ { url = "https://files.pythonhosted.org/packages/e1/98/aa7fccaa97d0f3192bec013c4e6fd6d294a6ed44b640e6bb61f479e00ed5/coverage-7.13.5-cp313-cp313t-win_amd64.whl", hash = "sha256:da86cdcf10d2519e10cabb8ac2de03da1bcb6e4853790b7fbd48523332e3a819", size = 223851, upload-time = "2026-03-17T10:32:04.416Z" },+ { url = "https://files.pythonhosted.org/packages/3d/8b/e5c469f7352651e5f013198e9e21f97510b23de957dd06a84071683b4b60/coverage-7.13.5-cp313-cp313t-win_arm64.whl", hash = "sha256:0ecf12ecb326fe2c339d93fc131816f3a7367d223db37817208905c89bded911", size = 222104, upload-time = "2026-03-17T10:32:06.65Z" },+ { url = "https://files.pythonhosted.org/packages/8e/77/39703f0d1d4b478bfd30191d3c14f53caf596fac00efb3f8f6ee23646439/coverage-7.13.5-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:fbabfaceaeb587e16f7008f7795cd80d20ec548dc7f94fbb0d4ec2e038ce563f", size = 219621, upload-time = "2026-03-17T10:32:08.589Z" },+ { url = "https://files.pythonhosted.org/packages/e2/3e/51dff36d99ae14639a133d9b164d63e628532e2974d8b1edb99dd1ebc733/coverage-7.13.5-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:9bb2a28101a443669a423b665939381084412b81c3f8c0fcfbac57f4e30b5b8e", size = 219953, upload-time = "2026-03-17T10:32:10.507Z" },+ { url = "https://files.pythonhosted.org/packages/6a/6c/1f1917b01eb647c2f2adc9962bd66c79eb978951cab61bdc1acab3290c07/coverage-7.13.5-cp314-cp314-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:bd3a2fbc1c6cccb3c5106140d87cc6a8715110373ef42b63cf5aea29df8c217a", size = 250992, upload-time = "2026-03-17T10:32:12.41Z" },+ { url = "https://files.pythonhosted.org/packages/22/e5/06b1f88f42a5a99df42ce61208bdec3bddb3d261412874280a19796fc09c/coverage-7.13.5-cp314-cp314-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:6c36ddb64ed9d7e496028d1d00dfec3e428e0aabf4006583bb1839958d280510", size = 253503, upload-time = "2026-03-17T10:32:14.449Z" },+ { url = "https://files.pythonhosted.org/packages/80/28/2a148a51e5907e504fa7b85490277734e6771d8844ebcc48764a15e28155/coverage-7.13.5-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:380e8e9084d8eb38db3a9176a1a4f3c0082c3806fa0dc882d1d87abc3c789247", size = 254852, upload-time = "2026-03-17T10:32:16.56Z" },+ { url = "https://files.pythonhosted.org/packages/61/77/50e8d3d85cc0b7ebe09f30f151d670e302c7ff4a1bf6243f71dd8b0981fa/coverage-7.13.5-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:e808af52a0513762df4d945ea164a24b37f2f518cbe97e03deaa0ee66139b4d6", size = 257161, upload-time = "2026-03-17T10:32:19.004Z" },+ { url = "https://files.pythonhosted.org/packages/3b/c4/b5fd1d4b7bf8d0e75d997afd3925c59ba629fc8616f1b3aae7605132e256/coverage-7.13.5-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:e301d30dd7e95ae068671d746ba8c34e945a82682e62918e41b2679acd2051a0", size = 251021, upload-time = "2026-03-17T10:32:21.344Z" },+ { url = "https://files.pythonhosted.org/packages/f8/66/6ea21f910e92d69ef0b1c3346ea5922a51bad4446c9126db2ae96ee24c4c/coverage-7.13.5-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:800bc829053c80d240a687ceeb927a94fd108bbdc68dfbe505d0d75ab578a882", size = 252858, upload-time = "2026-03-17T10:32:23.506Z" },+ { url = "https://files.pythonhosted.org/packages/9e/ea/879c83cb5d61aa2a35fb80e72715e92672daef8191b84911a643f533840c/coverage-7.13.5-cp314-cp314-musllinux_1_2_i686.whl", hash = "sha256:0b67af5492adb31940ee418a5a655c28e48165da5afab8c7fa6fd72a142f8740", size = 250823, upload-time = "2026-03-17T10:32:25.516Z" },+ { url = "https://files.pythonhosted.org/packages/8a/fb/616d95d3adb88b9803b275580bdeee8bd1b69a886d057652521f83d7322f/coverage-7.13.5-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:c9136ff29c3a91e25b1d1552b5308e53a1e0653a23e53b6366d7c2dcbbaf8a16", size = 255099, upload-time = "2026-03-17T10:32:27.944Z" },+ { url = "https://files.pythonhosted.org/packages/1c/93/25e6917c90ec1c9a56b0b26f6cad6408e5f13bb6b35d484a0d75c9cf000d/coverage-7.13.5-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:cff784eef7f0b8f6cb28804fbddcfa99f89efe4cc35fb5627e3ac58f91ed3ac0", size = 250638, upload-time = "2026-03-17T10:32:29.914Z" },+ { url = "https://files.pythonhosted.org/packages/fc/7b/dc1776b0464145a929deed214aef9fb1493f159b59ff3c7eeeedf91eddd0/coverage-7.13.5-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:68a4953be99b17ac3c23b6efbc8a38330d99680c9458927491d18700ef23ded0", size = 252295, upload-time = "2026-03-17T10:32:31.981Z" },+ { url = "https://files.pythonhosted.org/packages/ea/fb/99cbbc56a26e07762a2740713f3c8f9f3f3106e3a3dd8cc4474954bccd34/coverage-7.13.5-cp314-cp314-win32.whl", hash = "sha256:35a31f2b1578185fbe6aa2e74cea1b1d0bbf4c552774247d9160d29b80ed56cc", size = 222360, upload-time = "2026-03-17T10:32:34.233Z" },+ { url = "https://files.pythonhosted.org/packages/8d/b7/4758d4f73fb536347cc5e4ad63662f9d60ba9118cb6785e9616b2ce5d7fa/coverage-7.13.5-cp314-cp314-win_amd64.whl", hash = "sha256:2aa055ae1857258f9e0045be26a6d62bdb47a72448b62d7b55f4820f361a2633", size = 223174, upload-time = "2026-03-17T10:32:36.369Z" },+ { url = "https://files.pythonhosted.org/packages/2c/f2/24d84e1dfe70f8ac9fdf30d338239860d0d1d5da0bda528959d0ebc9da28/coverage-7.13.5-cp314-cp314-win_arm64.whl", hash = "sha256:1b11eef33edeae9d142f9b4358edb76273b3bfd30bc3df9a4f95d0e49caf94e8", size = 221739, upload-time = "2026-03-17T10:32:38.736Z" },+ { url = "https://files.pythonhosted.org/packages/60/5b/4a168591057b3668c2428bff25dd3ebc21b629d666d90bcdfa0217940e84/coverage-7.13.5-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:10a0c37f0b646eaff7cce1874c31d1f1ccb297688d4c747291f4f4c70741cc8b", size = 220351, upload-time = "2026-03-17T10:32:41.196Z" },+ { url = "https://files.pythonhosted.org/packages/f5/21/1fd5c4dbfe4a58b6b99649125635df46decdfd4a784c3cd6d410d303e370/coverage-7.13.5-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:b5db73ba3c41c7008037fa731ad5459fc3944cb7452fc0aa9f822ad3533c583c", size = 220612, upload-time = "2026-03-17T10:32:43.204Z" },+ { url = "https://files.pythonhosted.org/packages/d6/fe/2a924b3055a5e7e4512655a9d4609781b0d62334fa0140c3e742926834e2/coverage-7.13.5-cp314-cp314t-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:750db93a81e3e5a9831b534be7b1229df848b2e125a604fe6651e48aa070e5f9", size = 261985, upload-time = "2026-03-17T10:32:45.514Z" },+ { url = "https://files.pythonhosted.org/packages/d7/0d/c8928f2bd518c45990fe1a2ab8db42e914ef9b726c975facc4282578c3eb/coverage-7.13.5-cp314-cp314t-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:9ddb4f4a5479f2539644be484da179b653273bca1a323947d48ab107b3ed1f29", size = 264107, upload-time = "2026-03-17T10:32:47.971Z" },+ { url = "https://files.pythonhosted.org/packages/ef/ae/4ae35bbd9a0af9d820362751f0766582833c211224b38665c0f8de3d487f/coverage-7.13.5-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d8a7a2049c14f413163e2bdabd37e41179b1d1ccb10ffc6ccc4b7a718429c607", size = 266513, upload-time = "2026-03-17T10:32:50.1Z" },+ { url = "https://files.pythonhosted.org/packages/9c/20/d326174c55af36f74eac6ae781612d9492f060ce8244b570bb9d50d9d609/coverage-7.13.5-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:e1c85e0b6c05c592ea6d8768a66a254bfb3874b53774b12d4c89c481eb78cb90", size = 267650, upload-time = "2026-03-17T10:32:52.391Z" },+ { url = "https://files.pythonhosted.org/packages/7a/5e/31484d62cbd0eabd3412e30d74386ece4a0837d4f6c3040a653878bfc019/coverage-7.13.5-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:777c4d1eff1b67876139d24288aaf1817f6c03d6bae9c5cc8d27b83bcfe38fe3", size = 261089, upload-time = "2026-03-17T10:32:54.544Z" },+ { url = "https://files.pythonhosted.org/packages/e9/d8/49a72d6de146eebb0b7e48cc0f4bc2c0dd858e3d4790ab2b39a2872b62bd/coverage-7.13.5-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:6697e29b93707167687543480a40f0db8f356e86d9f67ddf2e37e2dfd91a9dab", size = 263982, upload-time = "2026-03-17T10:32:56.803Z" },+ { url = "https://files.pythonhosted.org/packages/06/3b/0351f1bd566e6e4dd39e978efe7958bde1d32f879e85589de147654f57bb/coverage-7.13.5-cp314-cp314t-musllinux_1_2_i686.whl", hash = "sha256:8fdf453a942c3e4d99bd80088141c4c6960bb232c409d9c3558e2dbaa3998562", size = 261579, upload-time = "2026-03-17T10:32:59.466Z" },+ { url = "https://files.pythonhosted.org/packages/5d/ce/796a2a2f4017f554d7810f5c573449b35b1e46788424a548d4d19201b222/coverage-7.13.5-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:32ca0c0114c9834a43f045a87dcebd69d108d8ffb666957ea65aa132f50332e2", size = 265316, upload-time = "2026-03-17T10:33:01.847Z" },+ { url = "https://files.pythonhosted.org/packages/3d/16/d5ae91455541d1a78bc90abf495be600588aff8f6db5c8b0dae739fa39c9/coverage-7.13.5-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:8769751c10f339021e2638cd354e13adeac54004d1941119b2c96fe5276d45ea", size = 260427, upload-time = "2026-03-17T10:33:03.945Z" },+ { url = "https://files.pythonhosted.org/packages/48/11/07f413dba62db21fb3fad5d0de013a50e073cc4e2dc4306e770360f6dfc8/coverage-7.13.5-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:cec2d83125531bd153175354055cdb7a09987af08a9430bd173c937c6d0fba2a", size = 262745, upload-time = "2026-03-17T10:33:06.285Z" },+ { url = "https://files.pythonhosted.org/packages/91/15/d792371332eb4663115becf4bad47e047d16234b1aff687b1b18c58d60ae/coverage-7.13.5-cp314-cp314t-win32.whl", hash = "sha256:0cd9ed7a8b181775459296e402ca4fb27db1279740a24e93b3b41942ebe4b215", size = 223146, upload-time = "2026-03-17T10:33:08.756Z" },+ { url = "https://files.pythonhosted.org/packages/db/51/37221f59a111dca5e85be7dbf09696323b5b9f13ff65e0641d535ed06ea8/coverage-7.13.5-cp314-cp314t-win_amd64.whl", hash = "sha256:301e3b7dfefecaca37c9f1aa6f0049b7d4ab8dd933742b607765d757aca77d43", size = 224254, upload-time = "2026-03-17T10:33:11.174Z" },+ { url = "https://files.pythonhosted.org/packages/54/83/6acacc889de8987441aa7d5adfbdbf33d288dad28704a67e574f1df9bcbb/coverage-7.13.5-cp314-cp314t-win_arm64.whl", hash = "sha256:9dacc2ad679b292709e0f5fc1ac74a6d4d5562e424058962c7bb0c658ad25e45", size = 222276, upload-time = "2026-03-17T10:33:13.466Z" },+ { url = "https://files.pythonhosted.org/packages/9e/ee/a4cf96b8ce1e566ed238f0659ac2d3f007ed1d14b181bcb684e19561a69a/coverage-7.13.5-py3-none-any.whl", hash = "sha256:34b02417cf070e173989b3db962f7ed56d2f644307b2cf9d5a0f258e13084a61", size = 211346, upload-time = "2026-03-17T10:33:15.691Z" },+]++[package.optional-dependencies]+toml = [+ { name = "tomli", marker = "python_full_version <= '3.11'" },+]++[[package]]+name = "fastapi"+version = "0.135.3"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "annotated-doc" },+ { name = "pydantic" },+ { name = "starlette" },+ { name = "typing-extensions" },+ { name = "typing-inspection" },+]+sdist = { url = "https://files.pythonhosted.org/packages/f7/e6/7adb4c5fa231e82c35b8f5741a9f2d055f520c29af5546fd70d3e8e1cd2e/fastapi-0.135.3.tar.gz", hash = "sha256:bd6d7caf1a2bdd8d676843cdcd2287729572a1ef524fc4d65c17ae002a1be654", size = 396524, upload-time = "2026-04-01T16:23:58.188Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/84/a4/5caa2de7f917a04ada20018eccf60d6cc6145b0199d55ca3711b0fc08312/fastapi-0.135.3-py3-none-any.whl", hash = "sha256:9b0f590c813acd13d0ab43dd8494138eb58e484bfac405db1f3187cfc5810d98", size = 117734, upload-time = "2026-04-01T16:23:59.328Z" },+]++[[package]]+name = "h11"+version = "0.16.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/01/ee/02a2c011bdab74c6fb3c75474d40b3052059d95df7e73351460c8588d963/h11-0.16.0.tar.gz", hash = "sha256:4e35b956cf45792e4caa5885e69fba00bdbc6ffafbfa020300e549b208ee5ff1", size = 101250, upload-time = "2025-04-24T03:35:25.427Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/04/4b/29cac41a4d98d144bf5f6d33995617b185d14b22401f75ca86f384e87ff1/h11-0.16.0-py3-none-any.whl", hash = "sha256:63cf8bbe7522de3bf65932fda1d9c2772064ffb3dae62d55932da54b31cb6c86", size = 37515, upload-time = "2025-04-24T03:35:24.344Z" },+]++[[package]]+name = "httpcore"+version = "1.0.9"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "certifi" },+ { name = "h11" },+]+sdist = { url = "https://files.pythonhosted.org/packages/06/94/82699a10bca87a5556c9c59b5963f2d039dbd239f25bc2a63907a05a14cb/httpcore-1.0.9.tar.gz", hash = "sha256:6e34463af53fd2ab5d807f399a9b45ea31c3dfa2276f15a2c3f00afff6e176e8", size = 85484, upload-time = "2025-04-24T22:06:22.219Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/7e/f5/f66802a942d491edb555dd61e3a9961140fd64c90bce1eafd741609d334d/httpcore-1.0.9-py3-none-any.whl", hash = "sha256:2d400746a40668fc9dec9810239072b40b4484b640a8c38fd654a024c7a1bf55", size = 78784, upload-time = "2025-04-24T22:06:20.566Z" },+]++[[package]]+name = "httptools"+version = "0.7.1"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/b5/46/120a669232c7bdedb9d52d4aeae7e6c7dfe151e99dc70802e2fc7a5e1993/httptools-0.7.1.tar.gz", hash = "sha256:abd72556974f8e7c74a259655924a717a2365b236c882c3f6f8a45fe94703ac9", size = 258961, upload-time = "2025-10-10T03:55:08.559Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/9c/08/17e07e8d89ab8f343c134616d72eebfe03798835058e2ab579dcc8353c06/httptools-0.7.1-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:474d3b7ab469fefcca3697a10d11a32ee2b9573250206ba1e50d5980910da657", size = 206521, upload-time = "2025-10-10T03:54:31.002Z" },+ { url = "https://files.pythonhosted.org/packages/aa/06/c9c1b41ff52f16aee526fd10fbda99fa4787938aa776858ddc4a1ea825ec/httptools-0.7.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:a3c3b7366bb6c7b96bd72d0dbe7f7d5eead261361f013be5f6d9590465ea1c70", size = 110375, upload-time = "2025-10-10T03:54:31.941Z" },+ { url = "https://files.pythonhosted.org/packages/cc/cc/10935db22fda0ee34c76f047590ca0a8bd9de531406a3ccb10a90e12ea21/httptools-0.7.1-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:379b479408b8747f47f3b253326183d7c009a3936518cdb70db58cffd369d9df", size = 456621, upload-time = "2025-10-10T03:54:33.176Z" },+ { url = "https://files.pythonhosted.org/packages/0e/84/875382b10d271b0c11aa5d414b44f92f8dd53e9b658aec338a79164fa548/httptools-0.7.1-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:cad6b591a682dcc6cf1397c3900527f9affef1e55a06c4547264796bbd17cf5e", size = 454954, upload-time = "2025-10-10T03:54:34.226Z" },+ { url = "https://files.pythonhosted.org/packages/30/e1/44f89b280f7e46c0b1b2ccee5737d46b3bb13136383958f20b580a821ca0/httptools-0.7.1-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:eb844698d11433d2139bbeeb56499102143beb582bd6c194e3ba69c22f25c274", size = 440175, upload-time = "2025-10-10T03:54:35.942Z" },+ { url = "https://files.pythonhosted.org/packages/6f/7e/b9287763159e700e335028bc1824359dc736fa9b829dacedace91a39b37e/httptools-0.7.1-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:f65744d7a8bdb4bda5e1fa23e4ba16832860606fcc09d674d56e425e991539ec", size = 440310, upload-time = "2025-10-10T03:54:37.1Z" },+ { url = "https://files.pythonhosted.org/packages/b3/07/5b614f592868e07f5c94b1f301b5e14a21df4e8076215a3bccb830a687d8/httptools-0.7.1-cp311-cp311-win_amd64.whl", hash = "sha256:135fbe974b3718eada677229312e97f3b31f8a9c8ffa3ae6f565bf808d5b6bcb", size = 86875, upload-time = "2025-10-10T03:54:38.421Z" },+ { url = "https://files.pythonhosted.org/packages/53/7f/403e5d787dc4942316e515e949b0c8a013d84078a915910e9f391ba9b3ed/httptools-0.7.1-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:38e0c83a2ea9746ebbd643bdfb521b9aa4a91703e2cd705c20443405d2fd16a5", size = 206280, upload-time = "2025-10-10T03:54:39.274Z" },+ { url = "https://files.pythonhosted.org/packages/2a/0d/7f3fd28e2ce311ccc998c388dd1c53b18120fda3b70ebb022b135dc9839b/httptools-0.7.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:f25bbaf1235e27704f1a7b86cd3304eabc04f569c828101d94a0e605ef7205a5", size = 110004, upload-time = "2025-10-10T03:54:40.403Z" },+ { url = "https://files.pythonhosted.org/packages/84/a6/b3965e1e146ef5762870bbe76117876ceba51a201e18cc31f5703e454596/httptools-0.7.1-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:2c15f37ef679ab9ecc06bfc4e6e8628c32a8e4b305459de7cf6785acd57e4d03", size = 517655, upload-time = "2025-10-10T03:54:41.347Z" },+ { url = "https://files.pythonhosted.org/packages/11/7d/71fee6f1844e6fa378f2eddde6c3e41ce3a1fb4b2d81118dd544e3441ec0/httptools-0.7.1-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:7fe6e96090df46b36ccfaf746f03034e5ab723162bc51b0a4cf58305324036f2", size = 511440, upload-time = "2025-10-10T03:54:42.452Z" },+ { url = "https://files.pythonhosted.org/packages/22/a5/079d216712a4f3ffa24af4a0381b108aa9c45b7a5cc6eb141f81726b1823/httptools-0.7.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:f72fdbae2dbc6e68b8239defb48e6a5937b12218e6ffc2c7846cc37befa84362", size = 495186, upload-time = "2025-10-10T03:54:43.937Z" },+ { url = "https://files.pythonhosted.org/packages/e9/9e/025ad7b65278745dee3bd0ebf9314934c4592560878308a6121f7f812084/httptools-0.7.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:e99c7b90a29fd82fea9ef57943d501a16f3404d7b9ee81799d41639bdaae412c", size = 499192, upload-time = "2025-10-10T03:54:45.003Z" },+ { url = "https://files.pythonhosted.org/packages/6d/de/40a8f202b987d43afc4d54689600ff03ce65680ede2f31df348d7f368b8f/httptools-0.7.1-cp312-cp312-win_amd64.whl", hash = "sha256:3e14f530fefa7499334a79b0cf7e7cd2992870eb893526fb097d51b4f2d0f321", size = 86694, upload-time = "2025-10-10T03:54:45.923Z" },+ { url = "https://files.pythonhosted.org/packages/09/8f/c77b1fcbfd262d422f12da02feb0d218fa228d52485b77b953832105bb90/httptools-0.7.1-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:6babce6cfa2a99545c60bfef8bee0cc0545413cb0018f617c8059a30ad985de3", size = 202889, upload-time = "2025-10-10T03:54:47.089Z" },+ { url = "https://files.pythonhosted.org/packages/0a/1a/22887f53602feaa066354867bc49a68fc295c2293433177ee90870a7d517/httptools-0.7.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:601b7628de7504077dd3dcb3791c6b8694bbd967148a6d1f01806509254fb1ca", size = 108180, upload-time = "2025-10-10T03:54:48.052Z" },+ { url = "https://files.pythonhosted.org/packages/32/6a/6aaa91937f0010d288d3d124ca2946d48d60c3a5ee7ca62afe870e3ea011/httptools-0.7.1-cp313-cp313-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:04c6c0e6c5fb0739c5b8a9eb046d298650a0ff38cf42537fc372b28dc7e4472c", size = 478596, upload-time = "2025-10-10T03:54:48.919Z" },+ { url = "https://files.pythonhosted.org/packages/6d/70/023d7ce117993107be88d2cbca566a7c1323ccbaf0af7eabf2064fe356f6/httptools-0.7.1-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:69d4f9705c405ae3ee83d6a12283dc9feba8cc6aaec671b412917e644ab4fa66", size = 473268, upload-time = "2025-10-10T03:54:49.993Z" },+ { url = "https://files.pythonhosted.org/packages/32/4d/9dd616c38da088e3f436e9a616e1d0cc66544b8cdac405cc4e81c8679fc7/httptools-0.7.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:44c8f4347d4b31269c8a9205d8a5ee2df5322b09bbbd30f8f862185bb6b05346", size = 455517, upload-time = "2025-10-10T03:54:51.066Z" },+ { url = "https://files.pythonhosted.org/packages/1d/3a/a6c595c310b7df958e739aae88724e24f9246a514d909547778d776799be/httptools-0.7.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:465275d76db4d554918aba40bf1cbebe324670f3dfc979eaffaa5d108e2ed650", size = 458337, upload-time = "2025-10-10T03:54:52.196Z" },+ { url = "https://files.pythonhosted.org/packages/fd/82/88e8d6d2c51edc1cc391b6e044c6c435b6aebe97b1abc33db1b0b24cd582/httptools-0.7.1-cp313-cp313-win_amd64.whl", hash = "sha256:322d00c2068d125bd570f7bf78b2d367dad02b919d8581d7476d8b75b294e3e6", size = 85743, upload-time = "2025-10-10T03:54:53.448Z" },+ { url = "https://files.pythonhosted.org/packages/34/50/9d095fcbb6de2d523e027a2f304d4551855c2f46e0b82befd718b8b20056/httptools-0.7.1-cp314-cp314-macosx_10_13_universal2.whl", hash = "sha256:c08fe65728b8d70b6923ce31e3956f859d5e1e8548e6f22ec520a962c6757270", size = 203619, upload-time = "2025-10-10T03:54:54.321Z" },+ { url = "https://files.pythonhosted.org/packages/07/f0/89720dc5139ae54b03f861b5e2c55a37dba9a5da7d51e1e824a1f343627f/httptools-0.7.1-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:7aea2e3c3953521c3c51106ee11487a910d45586e351202474d45472db7d72d3", size = 108714, upload-time = "2025-10-10T03:54:55.163Z" },+ { url = "https://files.pythonhosted.org/packages/b3/cb/eea88506f191fb552c11787c23f9a405f4c7b0c5799bf73f2249cd4f5228/httptools-0.7.1-cp314-cp314-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:0e68b8582f4ea9166be62926077a3334064d422cf08ab87d8b74664f8e9058e1", size = 472909, upload-time = "2025-10-10T03:54:56.056Z" },+ { url = "https://files.pythonhosted.org/packages/e0/4a/a548bdfae6369c0d078bab5769f7b66f17f1bfaa6fa28f81d6be6959066b/httptools-0.7.1-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:df091cf961a3be783d6aebae963cc9b71e00d57fa6f149025075217bc6a55a7b", size = 470831, upload-time = "2025-10-10T03:54:57.219Z" },+ { url = "https://files.pythonhosted.org/packages/4d/31/14df99e1c43bd132eec921c2e7e11cda7852f65619bc0fc5bdc2d0cb126c/httptools-0.7.1-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:f084813239e1eb403ddacd06a30de3d3e09a9b76e7894dcda2b22f8a726e9c60", size = 452631, upload-time = "2025-10-10T03:54:58.219Z" },+ { url = "https://files.pythonhosted.org/packages/22/d2/b7e131f7be8d854d48cb6d048113c30f9a46dca0c9a8b08fcb3fcd588cdc/httptools-0.7.1-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:7347714368fb2b335e9063bc2b96f2f87a9ceffcd9758ac295f8bbcd3ffbc0ca", size = 452910, upload-time = "2025-10-10T03:54:59.366Z" },+ { url = "https://files.pythonhosted.org/packages/53/cf/878f3b91e4e6e011eff6d1fa9ca39f7eb17d19c9d7971b04873734112f30/httptools-0.7.1-cp314-cp314-win_amd64.whl", hash = "sha256:cfabda2a5bb85aa2a904ce06d974a3f30fb36cc63d7feaddec05d2050acede96", size = 88205, upload-time = "2025-10-10T03:55:00.389Z" },+]++[[package]]+name = "httpx"+version = "0.28.1"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "anyio" },+ { name = "certifi" },+ { name = "httpcore" },+ { name = "idna" },+]+sdist = { url = "https://files.pythonhosted.org/packages/b1/df/48c586a5fe32a0f01324ee087459e112ebb7224f646c0b5023f5e79e9956/httpx-0.28.1.tar.gz", hash = "sha256:75e98c5f16b0f35b567856f597f06ff2270a374470a5c2392242528e3e3e42fc", size = 141406, upload-time = "2024-12-06T15:37:23.222Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/2a/39/e50c7c3a983047577ee07d2a9e53faf5a69493943ec3f6a384bdc792deb2/httpx-0.28.1-py3-none-any.whl", hash = "sha256:d909fcccc110f8c7faf814ca82a9a4d816bc5a6dbfea25d6591d6985b8ba59ad", size = 73517, upload-time = "2024-12-06T15:37:21.509Z" },+]++[[package]]+name = "idna"+version = "3.11"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/6f/6d/0703ccc57f3a7233505399edb88de3cbd678da106337b9fcde432b65ed60/idna-3.11.tar.gz", hash = "sha256:795dafcc9c04ed0c1fb032c2aa73654d8e8c5023a7df64a53f39190ada629902", size = 194582, upload-time = "2025-10-12T14:55:20.501Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/0e/61/66938bbb5fc52dbdf84594873d5b51fb1f7c7794e9c0f5bd885f30bc507b/idna-3.11-py3-none-any.whl", hash = "sha256:771a87f49d9defaf64091e6e6fe9c18d4833f140bd19464795bc32d966ca37ea", size = 71008, upload-time = "2025-10-12T14:55:18.883Z" },+]++[[package]]+name = "iniconfig"+version = "2.3.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/72/34/14ca021ce8e5dfedc35312d08ba8bf51fdd999c576889fc2c24cb97f4f10/iniconfig-2.3.0.tar.gz", hash = "sha256:c76315c77db068650d49c5b56314774a7804df16fee4402c1f19d6d15d8c4730", size = 20503, upload-time = "2025-10-18T21:55:43.219Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/cb/b1/3846dd7f199d53cb17f49cba7e651e9ce294d8497c8c150530ed11865bb8/iniconfig-2.3.0-py3-none-any.whl", hash = "sha256:f631c04d2c48c52b84d0d0549c99ff3859c98df65b3101406327ecc7d53fbf12", size = 7484, upload-time = "2025-10-18T21:55:41.639Z" },+]++[[package]]+name = "jiuwenbox"+version = "0.1.0"+source = { editable = "." }+dependencies = [+ { name = "fastapi" },+ { name = "httpx" },+ { name = "pydantic" },+ { name = "python-multipart" },+ { name = "pyyaml" },+ { name = "uvicorn", extra = ["standard"] },+]++[package.optional-dependencies]+dev = [+ { name = "pytest" },+ { name = "pytest-asyncio" },+ { name = "pytest-cov" },+ { name = "ruff" },+]++[package.metadata]+requires-dist = [+ { name = "fastapi", specifier = ">=0.115" },+ { name = "httpx", specifier = ">=0.27" },+ { name = "pydantic", specifier = ">=2.0" },+ { name = "pytest", marker = "extra == 'dev'", specifier = ">=8.0" },+ { name = "pytest-asyncio", marker = "extra == 'dev'", specifier = ">=0.24" },+ { name = "pytest-cov", marker = "extra == 'dev'", specifier = ">=5.0" },+ { name = "python-multipart", specifier = ">=0.0.9" },+ { name = "pyyaml", specifier = ">=6.0" },+ { name = "ruff", marker = "extra == 'dev'", specifier = ">=0.6" },+ { name = "uvicorn", extras = ["standard"], specifier = ">=0.30" },+]+provides-extras = ["dev"]++[[package]]+name = "packaging"+version = "26.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/65/ee/299d360cdc32edc7d2cf530f3accf79c4fca01e96ffc950d8a52213bd8e4/packaging-26.0.tar.gz", hash = "sha256:00243ae351a257117b6a241061796684b084ed1c516a08c48a3f7e147a9d80b4", size = 143416, upload-time = "2026-01-21T20:50:39.064Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/b7/b9/c538f279a4e237a006a2c98387d081e9eb060d203d8ed34467cc0f0b9b53/packaging-26.0-py3-none-any.whl", hash = "sha256:b36f1fef9334a5588b4166f8bcd26a14e521f2b55e6b9de3aaa80d3ff7a37529", size = 74366, upload-time = "2026-01-21T20:50:37.788Z" },+]++[[package]]+name = "pluggy"+version = "1.6.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/f9/e2/3e91f31a7d2b083fe6ef3fa267035b518369d9511ffab804f839851d2779/pluggy-1.6.0.tar.gz", hash = "sha256:7dcc130b76258d33b90f61b658791dede3486c3e6bfb003ee5c9bfb396dd22f3", size = 69412, upload-time = "2025-05-15T12:30:07.975Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/54/20/4d324d65cc6d9205fabedc306948156824eb9f0ee1633355a8f7ec5c66bf/pluggy-1.6.0-py3-none-any.whl", hash = "sha256:e920276dd6813095e9377c0bc5566d94c932c33b27a3e3945d8389c374dd4746", size = 20538, upload-time = "2025-05-15T12:30:06.134Z" },+]++[[package]]+name = "pydantic"+version = "2.12.5"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "annotated-types" },+ { name = "pydantic-core" },+ { name = "typing-extensions" },+ { name = "typing-inspection" },+]+sdist = { url = "https://files.pythonhosted.org/packages/69/44/36f1a6e523abc58ae5f928898e4aca2e0ea509b5aa6f6f392a5d882be928/pydantic-2.12.5.tar.gz", hash = "sha256:4d351024c75c0f085a9febbb665ce8c0c6ec5d30e903bdb6394b7ede26aebb49", size = 821591, upload-time = "2025-11-26T15:11:46.471Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/5a/87/b70ad306ebb6f9b585f114d0ac2137d792b48be34d732d60e597c2f8465a/pydantic-2.12.5-py3-none-any.whl", hash = "sha256:e561593fccf61e8a20fc46dfc2dfe075b8be7d0188df33f221ad1f0139180f9d", size = 463580, upload-time = "2025-11-26T15:11:44.605Z" },+]++[[package]]+name = "pydantic-core"+version = "2.41.5"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "typing-extensions" },+]+sdist = { url = "https://files.pythonhosted.org/packages/71/70/23b021c950c2addd24ec408e9ab05d59b035b39d97cdc1130e1bce647bb6/pydantic_core-2.41.5.tar.gz", hash = "sha256:08daa51ea16ad373ffd5e7606252cc32f07bc72b28284b6bc9c6df804816476e", size = 460952, upload-time = "2025-11-04T13:43:49.098Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/e8/72/74a989dd9f2084b3d9530b0915fdda64ac48831c30dbf7c72a41a5232db8/pydantic_core-2.41.5-cp311-cp311-macosx_10_12_x86_64.whl", hash = "sha256:a3a52f6156e73e7ccb0f8cced536adccb7042be67cb45f9562e12b319c119da6", size = 2105873, upload-time = "2025-11-04T13:39:31.373Z" },+ { url = "https://files.pythonhosted.org/packages/12/44/37e403fd9455708b3b942949e1d7febc02167662bf1a7da5b78ee1ea2842/pydantic_core-2.41.5-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:7f3bf998340c6d4b0c9a2f02d6a400e51f123b59565d74dc60d252ce888c260b", size = 1899826, upload-time = "2025-11-04T13:39:32.897Z" },+ { url = "https://files.pythonhosted.org/packages/33/7f/1d5cab3ccf44c1935a359d51a8a2a9e1a654b744b5e7f80d41b88d501eec/pydantic_core-2.41.5-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:378bec5c66998815d224c9ca994f1e14c0c21cb95d2f52b6021cc0b2a58f2a5a", size = 1917869, upload-time = "2025-11-04T13:39:34.469Z" },+ { url = "https://files.pythonhosted.org/packages/6e/6a/30d94a9674a7fe4f4744052ed6c5e083424510be1e93da5bc47569d11810/pydantic_core-2.41.5-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:e7b576130c69225432866fe2f4a469a85a54ade141d96fd396dffcf607b558f8", size = 2063890, upload-time = "2025-11-04T13:39:36.053Z" },+ { url = "https://files.pythonhosted.org/packages/50/be/76e5d46203fcb2750e542f32e6c371ffa9b8ad17364cf94bb0818dbfb50c/pydantic_core-2.41.5-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:6cb58b9c66f7e4179a2d5e0f849c48eff5c1fca560994d6eb6543abf955a149e", size = 2229740, upload-time = "2025-11-04T13:39:37.753Z" },+ { url = "https://files.pythonhosted.org/packages/d3/ee/fed784df0144793489f87db310a6bbf8118d7b630ed07aa180d6067e653a/pydantic_core-2.41.5-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:88942d3a3dff3afc8288c21e565e476fc278902ae4d6d134f1eeda118cc830b1", size = 2350021, upload-time = "2025-11-04T13:39:40.94Z" },+ { url = "https://files.pythonhosted.org/packages/c8/be/8fed28dd0a180dca19e72c233cbf58efa36df055e5b9d90d64fd1740b828/pydantic_core-2.41.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f31d95a179f8d64d90f6831d71fa93290893a33148d890ba15de25642c5d075b", size = 2066378, upload-time = "2025-11-04T13:39:42.523Z" },+ { url = "https://files.pythonhosted.org/packages/b0/3b/698cf8ae1d536a010e05121b4958b1257f0b5522085e335360e53a6b1c8b/pydantic_core-2.41.5-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:c1df3d34aced70add6f867a8cf413e299177e0c22660cc767218373d0779487b", size = 2175761, upload-time = "2025-11-04T13:39:44.553Z" },+ { url = "https://files.pythonhosted.org/packages/b8/ba/15d537423939553116dea94ce02f9c31be0fa9d0b806d427e0308ec17145/pydantic_core-2.41.5-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:4009935984bd36bd2c774e13f9a09563ce8de4abaa7226f5108262fa3e637284", size = 2146303, upload-time = "2025-11-04T13:39:46.238Z" },+ { url = "https://files.pythonhosted.org/packages/58/7f/0de669bf37d206723795f9c90c82966726a2ab06c336deba4735b55af431/pydantic_core-2.41.5-cp311-cp311-musllinux_1_1_armv7l.whl", hash = "sha256:34a64bc3441dc1213096a20fe27e8e128bd3ff89921706e83c0b1ac971276594", size = 2340355, upload-time = "2025-11-04T13:39:48.002Z" },+ { url = "https://files.pythonhosted.org/packages/e5/de/e7482c435b83d7e3c3ee5ee4451f6e8973cff0eb6007d2872ce6383f6398/pydantic_core-2.41.5-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:c9e19dd6e28fdcaa5a1de679aec4141f691023916427ef9bae8584f9c2fb3b0e", size = 2319875, upload-time = "2025-11-04T13:39:49.705Z" },+ { url = "https://files.pythonhosted.org/packages/fe/e6/8c9e81bb6dd7560e33b9053351c29f30c8194b72f2d6932888581f503482/pydantic_core-2.41.5-cp311-cp311-win32.whl", hash = "sha256:2c010c6ded393148374c0f6f0bf89d206bf3217f201faa0635dcd56bd1520f6b", size = 1987549, upload-time = "2025-11-04T13:39:51.842Z" },+ { url = "https://files.pythonhosted.org/packages/11/66/f14d1d978ea94d1bc21fc98fcf570f9542fe55bfcc40269d4e1a21c19bf7/pydantic_core-2.41.5-cp311-cp311-win_amd64.whl", hash = "sha256:76ee27c6e9c7f16f47db7a94157112a2f3a00e958bc626e2f4ee8bec5c328fbe", size = 2011305, upload-time = "2025-11-04T13:39:53.485Z" },+ { url = "https://files.pythonhosted.org/packages/56/d8/0e271434e8efd03186c5386671328154ee349ff0354d83c74f5caaf096ed/pydantic_core-2.41.5-cp311-cp311-win_arm64.whl", hash = "sha256:4bc36bbc0b7584de96561184ad7f012478987882ebf9f9c389b23f432ea3d90f", size = 1972902, upload-time = "2025-11-04T13:39:56.488Z" },+ { url = "https://files.pythonhosted.org/packages/5f/5d/5f6c63eebb5afee93bcaae4ce9a898f3373ca23df3ccaef086d0233a35a7/pydantic_core-2.41.5-cp312-cp312-macosx_10_12_x86_64.whl", hash = "sha256:f41a7489d32336dbf2199c8c0a215390a751c5b014c2c1c5366e817202e9cdf7", size = 2110990, upload-time = "2025-11-04T13:39:58.079Z" },+ { url = "https://files.pythonhosted.org/packages/aa/32/9c2e8ccb57c01111e0fd091f236c7b371c1bccea0fa85247ac55b1e2b6b6/pydantic_core-2.41.5-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:070259a8818988b9a84a449a2a7337c7f430a22acc0859c6b110aa7212a6d9c0", size = 1896003, upload-time = "2025-11-04T13:39:59.956Z" },+ { url = "https://files.pythonhosted.org/packages/68/b8/a01b53cb0e59139fbc9e4fda3e9724ede8de279097179be4ff31f1abb65a/pydantic_core-2.41.5-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e96cea19e34778f8d59fe40775a7a574d95816eb150850a85a7a4c8f4b94ac69", size = 1919200, upload-time = "2025-11-04T13:40:02.241Z" },+ { url = "https://files.pythonhosted.org/packages/38/de/8c36b5198a29bdaade07b5985e80a233a5ac27137846f3bc2d3b40a47360/pydantic_core-2.41.5-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:ed2e99c456e3fadd05c991f8f437ef902e00eedf34320ba2b0842bd1c3ca3a75", size = 2052578, upload-time = "2025-11-04T13:40:04.401Z" },+ { url = "https://files.pythonhosted.org/packages/00/b5/0e8e4b5b081eac6cb3dbb7e60a65907549a1ce035a724368c330112adfdd/pydantic_core-2.41.5-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:65840751b72fbfd82c3c640cff9284545342a4f1eb1586ad0636955b261b0b05", size = 2208504, upload-time = "2025-11-04T13:40:06.072Z" },+ { url = "https://files.pythonhosted.org/packages/77/56/87a61aad59c7c5b9dc8caad5a41a5545cba3810c3e828708b3d7404f6cef/pydantic_core-2.41.5-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:e536c98a7626a98feb2d3eaf75944ef6f3dbee447e1f841eae16f2f0a72d8ddc", size = 2335816, upload-time = "2025-11-04T13:40:07.835Z" },+ { url = "https://files.pythonhosted.org/packages/0d/76/941cc9f73529988688a665a5c0ecff1112b3d95ab48f81db5f7606f522d3/pydantic_core-2.41.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:eceb81a8d74f9267ef4081e246ffd6d129da5d87e37a77c9bde550cb04870c1c", size = 2075366, upload-time = "2025-11-04T13:40:09.804Z" },+ { url = "https://files.pythonhosted.org/packages/d3/43/ebef01f69baa07a482844faaa0a591bad1ef129253ffd0cdaa9d8a7f72d3/pydantic_core-2.41.5-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:d38548150c39b74aeeb0ce8ee1d8e82696f4a4e16ddc6de7b1d8823f7de4b9b5", size = 2171698, upload-time = "2025-11-04T13:40:12.004Z" },+ { url = "https://files.pythonhosted.org/packages/b1/87/41f3202e4193e3bacfc2c065fab7706ebe81af46a83d3e27605029c1f5a6/pydantic_core-2.41.5-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:c23e27686783f60290e36827f9c626e63154b82b116d7fe9adba1fda36da706c", size = 2132603, upload-time = "2025-11-04T13:40:13.868Z" },+ { url = "https://files.pythonhosted.org/packages/49/7d/4c00df99cb12070b6bccdef4a195255e6020a550d572768d92cc54dba91a/pydantic_core-2.41.5-cp312-cp312-musllinux_1_1_armv7l.whl", hash = "sha256:482c982f814460eabe1d3bb0adfdc583387bd4691ef00b90575ca0d2b6fe2294", size = 2329591, upload-time = "2025-11-04T13:40:15.672Z" },+ { url = "https://files.pythonhosted.org/packages/cc/6a/ebf4b1d65d458f3cda6a7335d141305dfa19bdc61140a884d165a8a1bbc7/pydantic_core-2.41.5-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:bfea2a5f0b4d8d43adf9d7b8bf019fb46fdd10a2e5cde477fbcb9d1fa08c68e1", size = 2319068, upload-time = "2025-11-04T13:40:17.532Z" },+ { url = "https://files.pythonhosted.org/packages/49/3b/774f2b5cd4192d5ab75870ce4381fd89cf218af999515baf07e7206753f0/pydantic_core-2.41.5-cp312-cp312-win32.whl", hash = "sha256:b74557b16e390ec12dca509bce9264c3bbd128f8a2c376eaa68003d7f327276d", size = 1985908, upload-time = "2025-11-04T13:40:19.309Z" },+ { url = "https://files.pythonhosted.org/packages/86/45/00173a033c801cacf67c190fef088789394feaf88a98a7035b0e40d53dc9/pydantic_core-2.41.5-cp312-cp312-win_amd64.whl", hash = "sha256:1962293292865bca8e54702b08a4f26da73adc83dd1fcf26fbc875b35d81c815", size = 2020145, upload-time = "2025-11-04T13:40:21.548Z" },+ { url = "https://files.pythonhosted.org/packages/f9/22/91fbc821fa6d261b376a3f73809f907cec5ca6025642c463d3488aad22fb/pydantic_core-2.41.5-cp312-cp312-win_arm64.whl", hash = "sha256:1746d4a3d9a794cacae06a5eaaccb4b8643a131d45fbc9af23e353dc0a5ba5c3", size = 1976179, upload-time = "2025-11-04T13:40:23.393Z" },+ { url = "https://files.pythonhosted.org/packages/87/06/8806241ff1f70d9939f9af039c6c35f2360cf16e93c2ca76f184e76b1564/pydantic_core-2.41.5-cp313-cp313-macosx_10_12_x86_64.whl", hash = "sha256:941103c9be18ac8daf7b7adca8228f8ed6bb7a1849020f643b3a14d15b1924d9", size = 2120403, upload-time = "2025-11-04T13:40:25.248Z" },+ { url = "https://files.pythonhosted.org/packages/94/02/abfa0e0bda67faa65fef1c84971c7e45928e108fe24333c81f3bfe35d5f5/pydantic_core-2.41.5-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:112e305c3314f40c93998e567879e887a3160bb8689ef3d2c04b6cc62c33ac34", size = 1896206, upload-time = "2025-11-04T13:40:27.099Z" },+ { url = "https://files.pythonhosted.org/packages/15/df/a4c740c0943e93e6500f9eb23f4ca7ec9bf71b19e608ae5b579678c8d02f/pydantic_core-2.41.5-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0cbaad15cb0c90aa221d43c00e77bb33c93e8d36e0bf74760cd00e732d10a6a0", size = 1919307, upload-time = "2025-11-04T13:40:29.806Z" },+ { url = "https://files.pythonhosted.org/packages/9a/e3/6324802931ae1d123528988e0e86587c2072ac2e5394b4bc2bc34b61ff6e/pydantic_core-2.41.5-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:03ca43e12fab6023fc79d28ca6b39b05f794ad08ec2feccc59a339b02f2b3d33", size = 2063258, upload-time = "2025-11-04T13:40:33.544Z" },+ { url = "https://files.pythonhosted.org/packages/c9/d4/2230d7151d4957dd79c3044ea26346c148c98fbf0ee6ebd41056f2d62ab5/pydantic_core-2.41.5-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:dc799088c08fa04e43144b164feb0c13f9a0bc40503f8df3e9fde58a3c0c101e", size = 2214917, upload-time = "2025-11-04T13:40:35.479Z" },+ { url = "https://files.pythonhosted.org/packages/e6/9f/eaac5df17a3672fef0081b6c1bb0b82b33ee89aa5cec0d7b05f52fd4a1fa/pydantic_core-2.41.5-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:97aeba56665b4c3235a0e52b2c2f5ae9cd071b8a8310ad27bddb3f7fb30e9aa2", size = 2332186, upload-time = "2025-11-04T13:40:37.436Z" },+ { url = "https://files.pythonhosted.org/packages/cf/4e/35a80cae583a37cf15604b44240e45c05e04e86f9cfd766623149297e971/pydantic_core-2.41.5-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:406bf18d345822d6c21366031003612b9c77b3e29ffdb0f612367352aab7d586", size = 2073164, upload-time = "2025-11-04T13:40:40.289Z" },+ { url = "https://files.pythonhosted.org/packages/bf/e3/f6e262673c6140dd3305d144d032f7bd5f7497d3871c1428521f19f9efa2/pydantic_core-2.41.5-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:b93590ae81f7010dbe380cdeab6f515902ebcbefe0b9327cc4804d74e93ae69d", size = 2179146, upload-time = "2025-11-04T13:40:42.809Z" },+ { url = "https://files.pythonhosted.org/packages/75/c7/20bd7fc05f0c6ea2056a4565c6f36f8968c0924f19b7d97bbfea55780e73/pydantic_core-2.41.5-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:01a3d0ab748ee531f4ea6c3e48ad9dac84ddba4b0d82291f87248f2f9de8d740", size = 2137788, upload-time = "2025-11-04T13:40:44.752Z" },+ { url = "https://files.pythonhosted.org/packages/3a/8d/34318ef985c45196e004bc46c6eab2eda437e744c124ef0dbe1ff2c9d06b/pydantic_core-2.41.5-cp313-cp313-musllinux_1_1_armv7l.whl", hash = "sha256:6561e94ba9dacc9c61bce40e2d6bdc3bfaa0259d3ff36ace3b1e6901936d2e3e", size = 2340133, upload-time = "2025-11-04T13:40:46.66Z" },+ { url = "https://files.pythonhosted.org/packages/9c/59/013626bf8c78a5a5d9350d12e7697d3d4de951a75565496abd40ccd46bee/pydantic_core-2.41.5-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:915c3d10f81bec3a74fbd4faebe8391013ba61e5a1a8d48c4455b923bdda7858", size = 2324852, upload-time = "2025-11-04T13:40:48.575Z" },+ { url = "https://files.pythonhosted.org/packages/1a/d9/c248c103856f807ef70c18a4f986693a46a8ffe1602e5d361485da502d20/pydantic_core-2.41.5-cp313-cp313-win32.whl", hash = "sha256:650ae77860b45cfa6e2cdafc42618ceafab3a2d9a3811fcfbd3bbf8ac3c40d36", size = 1994679, upload-time = "2025-11-04T13:40:50.619Z" },+ { url = "https://files.pythonhosted.org/packages/9e/8b/341991b158ddab181cff136acd2552c9f35bd30380422a639c0671e99a91/pydantic_core-2.41.5-cp313-cp313-win_amd64.whl", hash = "sha256:79ec52ec461e99e13791ec6508c722742ad745571f234ea6255bed38c6480f11", size = 2019766, upload-time = "2025-11-04T13:40:52.631Z" },+ { url = "https://files.pythonhosted.org/packages/73/7d/f2f9db34af103bea3e09735bb40b021788a5e834c81eedb541991badf8f5/pydantic_core-2.41.5-cp313-cp313-win_arm64.whl", hash = "sha256:3f84d5c1b4ab906093bdc1ff10484838aca54ef08de4afa9de0f5f14d69639cd", size = 1981005, upload-time = "2025-11-04T13:40:54.734Z" },+ { url = "https://files.pythonhosted.org/packages/ea/28/46b7c5c9635ae96ea0fbb779e271a38129df2550f763937659ee6c5dbc65/pydantic_core-2.41.5-cp314-cp314-macosx_10_12_x86_64.whl", hash = "sha256:3f37a19d7ebcdd20b96485056ba9e8b304e27d9904d233d7b1015db320e51f0a", size = 2119622, upload-time = "2025-11-04T13:40:56.68Z" },+ { url = "https://files.pythonhosted.org/packages/74/1a/145646e5687e8d9a1e8d09acb278c8535ebe9e972e1f162ed338a622f193/pydantic_core-2.41.5-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:1d1d9764366c73f996edd17abb6d9d7649a7eb690006ab6adbda117717099b14", size = 1891725, upload-time = "2025-11-04T13:40:58.807Z" },+ { url = "https://files.pythonhosted.org/packages/23/04/e89c29e267b8060b40dca97bfc64a19b2a3cf99018167ea1677d96368273/pydantic_core-2.41.5-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:25e1c2af0fce638d5f1988b686f3b3ea8cd7de5f244ca147c777769e798a9cd1", size = 1915040, upload-time = "2025-11-04T13:41:00.853Z" },+ { url = "https://files.pythonhosted.org/packages/84/a3/15a82ac7bd97992a82257f777b3583d3e84bdb06ba6858f745daa2ec8a85/pydantic_core-2.41.5-cp314-cp314-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:506d766a8727beef16b7adaeb8ee6217c64fc813646b424d0804d67c16eddb66", size = 2063691, upload-time = "2025-11-04T13:41:03.504Z" },+ { url = "https://files.pythonhosted.org/packages/74/9b/0046701313c6ef08c0c1cf0e028c67c770a4e1275ca73131563c5f2a310a/pydantic_core-2.41.5-cp314-cp314-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:4819fa52133c9aa3c387b3328f25c1facc356491e6135b459f1de698ff64d869", size = 2213897, upload-time = "2025-11-04T13:41:05.804Z" },+ { url = "https://files.pythonhosted.org/packages/8a/cd/6bac76ecd1b27e75a95ca3a9a559c643b3afcd2dd62086d4b7a32a18b169/pydantic_core-2.41.5-cp314-cp314-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:2b761d210c9ea91feda40d25b4efe82a1707da2ef62901466a42492c028553a2", size = 2333302, upload-time = "2025-11-04T13:41:07.809Z" },+ { url = "https://files.pythonhosted.org/packages/4c/d2/ef2074dc020dd6e109611a8be4449b98cd25e1b9b8a303c2f0fca2f2bcf7/pydantic_core-2.41.5-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:22f0fb8c1c583a3b6f24df2470833b40207e907b90c928cc8d3594b76f874375", size = 2064877, upload-time = "2025-11-04T13:41:09.827Z" },+ { url = "https://files.pythonhosted.org/packages/18/66/e9db17a9a763d72f03de903883c057b2592c09509ccfe468187f2a2eef29/pydantic_core-2.41.5-cp314-cp314-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:2782c870e99878c634505236d81e5443092fba820f0373997ff75f90f68cd553", size = 2180680, upload-time = "2025-11-04T13:41:12.379Z" },+ { url = "https://files.pythonhosted.org/packages/d3/9e/3ce66cebb929f3ced22be85d4c2399b8e85b622db77dad36b73c5387f8f8/pydantic_core-2.41.5-cp314-cp314-musllinux_1_1_aarch64.whl", hash = "sha256:0177272f88ab8312479336e1d777f6b124537d47f2123f89cb37e0accea97f90", size = 2138960, upload-time = "2025-11-04T13:41:14.627Z" },+ { url = "https://files.pythonhosted.org/packages/a6/62/205a998f4327d2079326b01abee48e502ea739d174f0a89295c481a2272e/pydantic_core-2.41.5-cp314-cp314-musllinux_1_1_armv7l.whl", hash = "sha256:63510af5e38f8955b8ee5687740d6ebf7c2a0886d15a6d65c32814613681bc07", size = 2339102, upload-time = "2025-11-04T13:41:16.868Z" },+ { url = "https://files.pythonhosted.org/packages/3c/0d/f05e79471e889d74d3d88f5bd20d0ed189ad94c2423d81ff8d0000aab4ff/pydantic_core-2.41.5-cp314-cp314-musllinux_1_1_x86_64.whl", hash = "sha256:e56ba91f47764cc14f1daacd723e3e82d1a89d783f0f5afe9c364b8bb491ccdb", size = 2326039, upload-time = "2025-11-04T13:41:18.934Z" },+ { url = "https://files.pythonhosted.org/packages/ec/e1/e08a6208bb100da7e0c4b288eed624a703f4d129bde2da475721a80cab32/pydantic_core-2.41.5-cp314-cp314-win32.whl", hash = "sha256:aec5cf2fd867b4ff45b9959f8b20ea3993fc93e63c7363fe6851424c8a7e7c23", size = 1995126, upload-time = "2025-11-04T13:41:21.418Z" },+ { url = "https://files.pythonhosted.org/packages/48/5d/56ba7b24e9557f99c9237e29f5c09913c81eeb2f3217e40e922353668092/pydantic_core-2.41.5-cp314-cp314-win_amd64.whl", hash = "sha256:8e7c86f27c585ef37c35e56a96363ab8de4e549a95512445b85c96d3e2f7c1bf", size = 2015489, upload-time = "2025-11-04T13:41:24.076Z" },+ { url = "https://files.pythonhosted.org/packages/4e/bb/f7a190991ec9e3e0ba22e4993d8755bbc4a32925c0b5b42775c03e8148f9/pydantic_core-2.41.5-cp314-cp314-win_arm64.whl", hash = "sha256:e672ba74fbc2dc8eea59fb6d4aed6845e6905fc2a8afe93175d94a83ba2a01a0", size = 1977288, upload-time = "2025-11-04T13:41:26.33Z" },+ { url = "https://files.pythonhosted.org/packages/92/ed/77542d0c51538e32e15afe7899d79efce4b81eee631d99850edc2f5e9349/pydantic_core-2.41.5-cp314-cp314t-macosx_10_12_x86_64.whl", hash = "sha256:8566def80554c3faa0e65ac30ab0932b9e3a5cd7f8323764303d468e5c37595a", size = 2120255, upload-time = "2025-11-04T13:41:28.569Z" },+ { url = "https://files.pythonhosted.org/packages/bb/3d/6913dde84d5be21e284439676168b28d8bbba5600d838b9dca99de0fad71/pydantic_core-2.41.5-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:b80aa5095cd3109962a298ce14110ae16b8c1aece8b72f9dafe81cf597ad80b3", size = 1863760, upload-time = "2025-11-04T13:41:31.055Z" },+ { url = "https://files.pythonhosted.org/packages/5a/f0/e5e6b99d4191da102f2b0eb9687aaa7f5bea5d9964071a84effc3e40f997/pydantic_core-2.41.5-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3006c3dd9ba34b0c094c544c6006cc79e87d8612999f1a5d43b769b89181f23c", size = 1878092, upload-time = "2025-11-04T13:41:33.21Z" },+ { url = "https://files.pythonhosted.org/packages/71/48/36fb760642d568925953bcc8116455513d6e34c4beaa37544118c36aba6d/pydantic_core-2.41.5-cp314-cp314t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:72f6c8b11857a856bcfa48c86f5368439f74453563f951e473514579d44aa612", size = 2053385, upload-time = "2025-11-04T13:41:35.508Z" },+ { url = "https://files.pythonhosted.org/packages/20/25/92dc684dd8eb75a234bc1c764b4210cf2646479d54b47bf46061657292a8/pydantic_core-2.41.5-cp314-cp314t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:5cb1b2f9742240e4bb26b652a5aeb840aa4b417c7748b6f8387927bc6e45e40d", size = 2218832, upload-time = "2025-11-04T13:41:37.732Z" },+ { url = "https://files.pythonhosted.org/packages/e2/09/f53e0b05023d3e30357d82eb35835d0f6340ca344720a4599cd663dca599/pydantic_core-2.41.5-cp314-cp314t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:bd3d54f38609ff308209bd43acea66061494157703364ae40c951f83ba99a1a9", size = 2327585, upload-time = "2025-11-04T13:41:40Z" },+ { url = "https://files.pythonhosted.org/packages/aa/4e/2ae1aa85d6af35a39b236b1b1641de73f5a6ac4d5a7509f77b814885760c/pydantic_core-2.41.5-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2ff4321e56e879ee8d2a879501c8e469414d948f4aba74a2d4593184eb326660", size = 2041078, upload-time = "2025-11-04T13:41:42.323Z" },+ { url = "https://files.pythonhosted.org/packages/cd/13/2e215f17f0ef326fc72afe94776edb77525142c693767fc347ed6288728d/pydantic_core-2.41.5-cp314-cp314t-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:d0d2568a8c11bf8225044aa94409e21da0cb09dcdafe9ecd10250b2baad531a9", size = 2173914, upload-time = "2025-11-04T13:41:45.221Z" },+ { url = "https://files.pythonhosted.org/packages/02/7a/f999a6dcbcd0e5660bc348a3991c8915ce6599f4f2c6ac22f01d7a10816c/pydantic_core-2.41.5-cp314-cp314t-musllinux_1_1_aarch64.whl", hash = "sha256:a39455728aabd58ceabb03c90e12f71fd30fa69615760a075b9fec596456ccc3", size = 2129560, upload-time = "2025-11-04T13:41:47.474Z" },+ { url = "https://files.pythonhosted.org/packages/3a/b1/6c990ac65e3b4c079a4fb9f5b05f5b013afa0f4ed6780a3dd236d2cbdc64/pydantic_core-2.41.5-cp314-cp314t-musllinux_1_1_armv7l.whl", hash = "sha256:239edca560d05757817c13dc17c50766136d21f7cd0fac50295499ae24f90fdf", size = 2329244, upload-time = "2025-11-04T13:41:49.992Z" },+ { url = "https://files.pythonhosted.org/packages/d9/02/3c562f3a51afd4d88fff8dffb1771b30cfdfd79befd9883ee094f5b6c0d8/pydantic_core-2.41.5-cp314-cp314t-musllinux_1_1_x86_64.whl", hash = "sha256:2a5e06546e19f24c6a96a129142a75cee553cc018ffee48a460059b1185f4470", size = 2331955, upload-time = "2025-11-04T13:41:54.079Z" },+ { url = "https://files.pythonhosted.org/packages/5c/96/5fb7d8c3c17bc8c62fdb031c47d77a1af698f1d7a406b0f79aaa1338f9ad/pydantic_core-2.41.5-cp314-cp314t-win32.whl", hash = "sha256:b4ececa40ac28afa90871c2cc2b9ffd2ff0bf749380fbdf57d165fd23da353aa", size = 1988906, upload-time = "2025-11-04T13:41:56.606Z" },+ { url = "https://files.pythonhosted.org/packages/22/ed/182129d83032702912c2e2d8bbe33c036f342cc735737064668585dac28f/pydantic_core-2.41.5-cp314-cp314t-win_amd64.whl", hash = "sha256:80aa89cad80b32a912a65332f64a4450ed00966111b6615ca6816153d3585a8c", size = 1981607, upload-time = "2025-11-04T13:41:58.889Z" },+ { url = "https://files.pythonhosted.org/packages/9f/ed/068e41660b832bb0b1aa5b58011dea2a3fe0ba7861ff38c4d4904c1c1a99/pydantic_core-2.41.5-cp314-cp314t-win_arm64.whl", hash = "sha256:35b44f37a3199f771c3eaa53051bc8a70cd7b54f333531c59e29fd4db5d15008", size = 1974769, upload-time = "2025-11-04T13:42:01.186Z" },+ { url = "https://files.pythonhosted.org/packages/11/72/90fda5ee3b97e51c494938a4a44c3a35a9c96c19bba12372fb9c634d6f57/pydantic_core-2.41.5-graalpy311-graalpy242_311_native-macosx_10_12_x86_64.whl", hash = "sha256:b96d5f26b05d03cc60f11a7761a5ded1741da411e7fe0909e27a5e6a0cb7b034", size = 2115441, upload-time = "2025-11-04T13:42:39.557Z" },+ { url = "https://files.pythonhosted.org/packages/1f/53/8942f884fa33f50794f119012dc6a1a02ac43a56407adaac20463df8e98f/pydantic_core-2.41.5-graalpy311-graalpy242_311_native-macosx_11_0_arm64.whl", hash = "sha256:634e8609e89ceecea15e2d61bc9ac3718caaaa71963717bf3c8f38bfde64242c", size = 1930291, upload-time = "2025-11-04T13:42:42.169Z" },+ { url = "https://files.pythonhosted.org/packages/79/c8/ecb9ed9cd942bce09fc888ee960b52654fbdbede4ba6c2d6e0d3b1d8b49c/pydantic_core-2.41.5-graalpy311-graalpy242_311_native-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:93e8740d7503eb008aa2df04d3b9735f845d43ae845e6dcd2be0b55a2da43cd2", size = 1948632, upload-time = "2025-11-04T13:42:44.564Z" },+ { url = "https://files.pythonhosted.org/packages/2e/1b/687711069de7efa6af934e74f601e2a4307365e8fdc404703afc453eab26/pydantic_core-2.41.5-graalpy311-graalpy242_311_native-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f15489ba13d61f670dcc96772e733aad1a6f9c429cc27574c6cdaed82d0146ad", size = 2138905, upload-time = "2025-11-04T13:42:47.156Z" },+ { url = "https://files.pythonhosted.org/packages/09/32/59b0c7e63e277fa7911c2fc70ccfb45ce4b98991e7ef37110663437005af/pydantic_core-2.41.5-graalpy312-graalpy250_312_native-macosx_10_12_x86_64.whl", hash = "sha256:7da7087d756b19037bc2c06edc6c170eeef3c3bafcb8f532ff17d64dc427adfd", size = 2110495, upload-time = "2025-11-04T13:42:49.689Z" },+ { url = "https://files.pythonhosted.org/packages/aa/81/05e400037eaf55ad400bcd318c05bb345b57e708887f07ddb2d20e3f0e98/pydantic_core-2.41.5-graalpy312-graalpy250_312_native-macosx_11_0_arm64.whl", hash = "sha256:aabf5777b5c8ca26f7824cb4a120a740c9588ed58df9b2d196ce92fba42ff8dc", size = 1915388, upload-time = "2025-11-04T13:42:52.215Z" },+ { url = "https://files.pythonhosted.org/packages/6e/0d/e3549b2399f71d56476b77dbf3cf8937cec5cd70536bdc0e374a421d0599/pydantic_core-2.41.5-graalpy312-graalpy250_312_native-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c007fe8a43d43b3969e8469004e9845944f1a80e6acd47c150856bb87f230c56", size = 1942879, upload-time = "2025-11-04T13:42:56.483Z" },+ { url = "https://files.pythonhosted.org/packages/f7/07/34573da085946b6a313d7c42f82f16e8920bfd730665de2d11c0c37a74b5/pydantic_core-2.41.5-graalpy312-graalpy250_312_native-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:76d0819de158cd855d1cbb8fcafdf6f5cf1eb8e470abe056d5d161106e38062b", size = 2139017, upload-time = "2025-11-04T13:42:59.471Z" },+ { url = "https://files.pythonhosted.org/packages/5f/9b/1b3f0e9f9305839d7e84912f9e8bfbd191ed1b1ef48083609f0dabde978c/pydantic_core-2.41.5-pp311-pypy311_pp73-macosx_10_12_x86_64.whl", hash = "sha256:b2379fa7ed44ddecb5bfe4e48577d752db9fc10be00a6b7446e9663ba143de26", size = 2101980, upload-time = "2025-11-04T13:43:25.97Z" },+ { url = "https://files.pythonhosted.org/packages/a4/ed/d71fefcb4263df0da6a85b5d8a7508360f2f2e9b3bf5814be9c8bccdccc1/pydantic_core-2.41.5-pp311-pypy311_pp73-macosx_11_0_arm64.whl", hash = "sha256:266fb4cbf5e3cbd0b53669a6d1b039c45e3ce651fd5442eff4d07c2cc8d66808", size = 1923865, upload-time = "2025-11-04T13:43:28.763Z" },+ { url = "https://files.pythonhosted.org/packages/ce/3a/626b38db460d675f873e4444b4bb030453bbe7b4ba55df821d026a0493c4/pydantic_core-2.41.5-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:58133647260ea01e4d0500089a8c4f07bd7aa6ce109682b1426394988d8aaacc", size = 2134256, upload-time = "2025-11-04T13:43:31.71Z" },+ { url = "https://files.pythonhosted.org/packages/83/d9/8412d7f06f616bbc053d30cb4e5f76786af3221462ad5eee1f202021eb4e/pydantic_core-2.41.5-pp311-pypy311_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:287dad91cfb551c363dc62899a80e9e14da1f0e2b6ebde82c806612ca2a13ef1", size = 2174762, upload-time = "2025-11-04T13:43:34.744Z" },+ { url = "https://files.pythonhosted.org/packages/55/4c/162d906b8e3ba3a99354e20faa1b49a85206c47de97a639510a0e673f5da/pydantic_core-2.41.5-pp311-pypy311_pp73-musllinux_1_1_aarch64.whl", hash = "sha256:03b77d184b9eb40240ae9fd676ca364ce1085f203e1b1256f8ab9984dca80a84", size = 2143141, upload-time = "2025-11-04T13:43:37.701Z" },+ { url = "https://files.pythonhosted.org/packages/1f/f2/f11dd73284122713f5f89fc940f370d035fa8e1e078d446b3313955157fe/pydantic_core-2.41.5-pp311-pypy311_pp73-musllinux_1_1_armv7l.whl", hash = "sha256:a668ce24de96165bb239160b3d854943128f4334822900534f2fe947930e5770", size = 2330317, upload-time = "2025-11-04T13:43:40.406Z" },+ { url = "https://files.pythonhosted.org/packages/88/9d/b06ca6acfe4abb296110fb1273a4d848a0bfb2ff65f3ee92127b3244e16b/pydantic_core-2.41.5-pp311-pypy311_pp73-musllinux_1_1_x86_64.whl", hash = "sha256:f14f8f046c14563f8eb3f45f499cc658ab8d10072961e07225e507adb700e93f", size = 2316992, upload-time = "2025-11-04T13:43:43.602Z" },+ { url = "https://files.pythonhosted.org/packages/36/c7/cfc8e811f061c841d7990b0201912c3556bfeb99cdcb7ed24adc8d6f8704/pydantic_core-2.41.5-pp311-pypy311_pp73-win_amd64.whl", hash = "sha256:56121965f7a4dc965bff783d70b907ddf3d57f6eba29b6d2e5dabfaf07799c51", size = 2145302, upload-time = "2025-11-04T13:43:46.64Z" },+]++[[package]]+name = "pygments"+version = "2.20.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/c3/b2/bc9c9196916376152d655522fdcebac55e66de6603a76a02bca1b6414f6c/pygments-2.20.0.tar.gz", hash = "sha256:6757cd03768053ff99f3039c1a36d6c0aa0b263438fcab17520b30a303a82b5f", size = 4955991, upload-time = "2026-03-29T13:29:33.898Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/f4/7e/a72dd26f3b0f4f2bf1dd8923c85f7ceb43172af56d63c7383eb62b332364/pygments-2.20.0-py3-none-any.whl", hash = "sha256:81a9e26dd42fd28a23a2d169d86d7ac03b46e2f8b59ed4698fb4785f946d0176", size = 1231151, upload-time = "2026-03-29T13:29:30.038Z" },+]++[[package]]+name = "pytest"+version = "9.0.3"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "colorama", marker = "sys_platform == 'win32'" },+ { name = "iniconfig" },+ { name = "packaging" },+ { name = "pluggy" },+ { name = "pygments" },+]+sdist = { url = "https://files.pythonhosted.org/packages/7d/0d/549bd94f1a0a402dc8cf64563a117c0f3765662e2e668477624baeec44d5/pytest-9.0.3.tar.gz", hash = "sha256:b86ada508af81d19edeb213c681b1d48246c1a91d304c6c81a427674c17eb91c", size = 1572165, upload-time = "2026-04-07T17:16:18.027Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/d4/24/a372aaf5c9b7208e7112038812994107bc65a84cd00e0354a88c2c77a617/pytest-9.0.3-py3-none-any.whl", hash = "sha256:2c5efc453d45394fdd706ade797c0a81091eccd1d6e4bccfcd476e2b8e0ab5d9", size = 375249, upload-time = "2026-04-07T17:16:16.13Z" },+]++[[package]]+name = "pytest-asyncio"+version = "1.3.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "pytest" },+ { name = "typing-extensions", marker = "python_full_version < '3.13'" },+]+sdist = { url = "https://files.pythonhosted.org/packages/90/2c/8af215c0f776415f3590cac4f9086ccefd6fd463befeae41cd4d3f193e5a/pytest_asyncio-1.3.0.tar.gz", hash = "sha256:d7f52f36d231b80ee124cd216ffb19369aa168fc10095013c6b014a34d3ee9e5", size = 50087, upload-time = "2025-11-10T16:07:47.256Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/e5/35/f8b19922b6a25bc0880171a2f1a003eaeb93657475193ab516fd87cac9da/pytest_asyncio-1.3.0-py3-none-any.whl", hash = "sha256:611e26147c7f77640e6d0a92a38ed17c3e9848063698d5c93d5aa7aa11cebff5", size = 15075, upload-time = "2025-11-10T16:07:45.537Z" },+]++[[package]]+name = "pytest-cov"+version = "7.1.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "coverage", extra = ["toml"] },+ { name = "pluggy" },+ { name = "pytest" },+]+sdist = { url = "https://files.pythonhosted.org/packages/b1/51/a849f96e117386044471c8ec2bd6cfebacda285da9525c9106aeb28da671/pytest_cov-7.1.0.tar.gz", hash = "sha256:30674f2b5f6351aa09702a9c8c364f6a01c27aae0c1366ae8016160d1efc56b2", size = 55592, upload-time = "2026-03-21T20:11:16.284Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/9d/7a/d968e294073affff457b041c2be9868a40c1c71f4a35fcc1e45e5493067b/pytest_cov-7.1.0-py3-none-any.whl", hash = "sha256:a0461110b7865f9a271aa1b51e516c9a95de9d696734a2f71e3e78f46e1d4678", size = 22876, upload-time = "2026-03-21T20:11:14.438Z" },+]++[[package]]+name = "python-dotenv"+version = "1.2.2"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/82/ed/0301aeeac3e5353ef3d94b6ec08bbcabd04a72018415dcb29e588514bba8/python_dotenv-1.2.2.tar.gz", hash = "sha256:2c371a91fbd7ba082c2c1dc1f8bf89ca22564a087c2c287cd9b662adde799cf3", size = 50135, upload-time = "2026-03-01T16:00:26.196Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/0b/d7/1959b9648791274998a9c3526f6d0ec8fd2233e4d4acce81bbae76b44b2a/python_dotenv-1.2.2-py3-none-any.whl", hash = "sha256:1d8214789a24de455a8b8bd8ae6fe3c6b69a5e3d64aa8a8e5d68e694bbcb285a", size = 22101, upload-time = "2026-03-01T16:00:25.09Z" },+]++[[package]]+name = "python-multipart"+version = "0.0.26"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/88/71/b145a380824a960ebd60e1014256dbb7d2253f2316ff2d73dfd8928ec2c3/python_multipart-0.0.26.tar.gz", hash = "sha256:08fadc45918cd615e26846437f50c5d6d23304da32c341f289a617127b081f17", size = 43501, upload-time = "2026-04-10T14:09:59.473Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/9a/22/f1925cdda983ab66fc8ec6ec8014b959262747e58bdca26a4e3d1da29d56/python_multipart-0.0.26-py3-none-any.whl", hash = "sha256:c0b169f8c4484c13b0dcf2ef0ec3a4adb255c4b7d18d8e420477d2b1dd03f185", size = 28847, upload-time = "2026-04-10T14:09:58.131Z" },+]++[[package]]+name = "pyyaml"+version = "6.0.3"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/05/8e/961c0007c59b8dd7729d542c61a4d537767a59645b82a0b521206e1e25c2/pyyaml-6.0.3.tar.gz", hash = "sha256:d76623373421df22fb4cf8817020cbb7ef15c725b9d5e45f17e189bfc384190f", size = 130960, upload-time = "2025-09-25T21:33:16.546Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/6d/16/a95b6757765b7b031c9374925bb718d55e0a9ba8a1b6a12d25962ea44347/pyyaml-6.0.3-cp311-cp311-macosx_10_13_x86_64.whl", hash = "sha256:44edc647873928551a01e7a563d7452ccdebee747728c1080d881d68af7b997e", size = 185826, upload-time = "2025-09-25T21:31:58.655Z" },+ { url = "https://files.pythonhosted.org/packages/16/19/13de8e4377ed53079ee996e1ab0a9c33ec2faf808a4647b7b4c0d46dd239/pyyaml-6.0.3-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:652cb6edd41e718550aad172851962662ff2681490a8a711af6a4d288dd96824", size = 175577, upload-time = "2025-09-25T21:32:00.088Z" },+ { url = "https://files.pythonhosted.org/packages/0c/62/d2eb46264d4b157dae1275b573017abec435397aa59cbcdab6fc978a8af4/pyyaml-6.0.3-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:10892704fc220243f5305762e276552a0395f7beb4dbf9b14ec8fd43b57f126c", size = 775556, upload-time = "2025-09-25T21:32:01.31Z" },+ { url = "https://files.pythonhosted.org/packages/10/cb/16c3f2cf3266edd25aaa00d6c4350381c8b012ed6f5276675b9eba8d9ff4/pyyaml-6.0.3-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:850774a7879607d3a6f50d36d04f00ee69e7fc816450e5f7e58d7f17f1ae5c00", size = 882114, upload-time = "2025-09-25T21:32:03.376Z" },+ { url = "https://files.pythonhosted.org/packages/71/60/917329f640924b18ff085ab889a11c763e0b573da888e8404ff486657602/pyyaml-6.0.3-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:b8bb0864c5a28024fac8a632c443c87c5aa6f215c0b126c449ae1a150412f31d", size = 806638, upload-time = "2025-09-25T21:32:04.553Z" },+ { url = "https://files.pythonhosted.org/packages/dd/6f/529b0f316a9fd167281a6c3826b5583e6192dba792dd55e3203d3f8e655a/pyyaml-6.0.3-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:1d37d57ad971609cf3c53ba6a7e365e40660e3be0e5175fa9f2365a379d6095a", size = 767463, upload-time = "2025-09-25T21:32:06.152Z" },+ { url = "https://files.pythonhosted.org/packages/f2/6a/b627b4e0c1dd03718543519ffb2f1deea4a1e6d42fbab8021936a4d22589/pyyaml-6.0.3-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:37503bfbfc9d2c40b344d06b2199cf0e96e97957ab1c1b546fd4f87e53e5d3e4", size = 794986, upload-time = "2025-09-25T21:32:07.367Z" },+ { url = "https://files.pythonhosted.org/packages/45/91/47a6e1c42d9ee337c4839208f30d9f09caa9f720ec7582917b264defc875/pyyaml-6.0.3-cp311-cp311-win32.whl", hash = "sha256:8098f252adfa6c80ab48096053f512f2321f0b998f98150cea9bd23d83e1467b", size = 142543, upload-time = "2025-09-25T21:32:08.95Z" },+ { url = "https://files.pythonhosted.org/packages/da/e3/ea007450a105ae919a72393cb06f122f288ef60bba2dc64b26e2646fa315/pyyaml-6.0.3-cp311-cp311-win_amd64.whl", hash = "sha256:9f3bfb4965eb874431221a3ff3fdcddc7e74e3b07799e0e84ca4a0f867d449bf", size = 158763, upload-time = "2025-09-25T21:32:09.96Z" },+ { url = "https://files.pythonhosted.org/packages/d1/33/422b98d2195232ca1826284a76852ad5a86fe23e31b009c9886b2d0fb8b2/pyyaml-6.0.3-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:7f047e29dcae44602496db43be01ad42fc6f1cc0d8cd6c83d342306c32270196", size = 182063, upload-time = "2025-09-25T21:32:11.445Z" },+ { url = "https://files.pythonhosted.org/packages/89/a0/6cf41a19a1f2f3feab0e9c0b74134aa2ce6849093d5517a0c550fe37a648/pyyaml-6.0.3-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:fc09d0aa354569bc501d4e787133afc08552722d3ab34836a80547331bb5d4a0", size = 173973, upload-time = "2025-09-25T21:32:12.492Z" },+ { url = "https://files.pythonhosted.org/packages/ed/23/7a778b6bd0b9a8039df8b1b1d80e2e2ad78aa04171592c8a5c43a56a6af4/pyyaml-6.0.3-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:9149cad251584d5fb4981be1ecde53a1ca46c891a79788c0df828d2f166bda28", size = 775116, upload-time = "2025-09-25T21:32:13.652Z" },+ { url = "https://files.pythonhosted.org/packages/65/30/d7353c338e12baef4ecc1b09e877c1970bd3382789c159b4f89d6a70dc09/pyyaml-6.0.3-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:5fdec68f91a0c6739b380c83b951e2c72ac0197ace422360e6d5a959d8d97b2c", size = 844011, upload-time = "2025-09-25T21:32:15.21Z" },+ { url = "https://files.pythonhosted.org/packages/8b/9d/b3589d3877982d4f2329302ef98a8026e7f4443c765c46cfecc8858c6b4b/pyyaml-6.0.3-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:ba1cc08a7ccde2d2ec775841541641e4548226580ab850948cbfda66a1befcdc", size = 807870, upload-time = "2025-09-25T21:32:16.431Z" },+ { url = "https://files.pythonhosted.org/packages/05/c0/b3be26a015601b822b97d9149ff8cb5ead58c66f981e04fedf4e762f4bd4/pyyaml-6.0.3-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:8dc52c23056b9ddd46818a57b78404882310fb473d63f17b07d5c40421e47f8e", size = 761089, upload-time = "2025-09-25T21:32:17.56Z" },+ { url = "https://files.pythonhosted.org/packages/be/8e/98435a21d1d4b46590d5459a22d88128103f8da4c2d4cb8f14f2a96504e1/pyyaml-6.0.3-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:41715c910c881bc081f1e8872880d3c650acf13dfa8214bad49ed4cede7c34ea", size = 790181, upload-time = "2025-09-25T21:32:18.834Z" },+ { url = "https://files.pythonhosted.org/packages/74/93/7baea19427dcfbe1e5a372d81473250b379f04b1bd3c4c5ff825e2327202/pyyaml-6.0.3-cp312-cp312-win32.whl", hash = "sha256:96b533f0e99f6579b3d4d4995707cf36df9100d67e0c8303a0c55b27b5f99bc5", size = 137658, upload-time = "2025-09-25T21:32:20.209Z" },+ { url = "https://files.pythonhosted.org/packages/86/bf/899e81e4cce32febab4fb42bb97dcdf66bc135272882d1987881a4b519e9/pyyaml-6.0.3-cp312-cp312-win_amd64.whl", hash = "sha256:5fcd34e47f6e0b794d17de1b4ff496c00986e1c83f7ab2fb8fcfe9616ff7477b", size = 154003, upload-time = "2025-09-25T21:32:21.167Z" },+ { url = "https://files.pythonhosted.org/packages/1a/08/67bd04656199bbb51dbed1439b7f27601dfb576fb864099c7ef0c3e55531/pyyaml-6.0.3-cp312-cp312-win_arm64.whl", hash = "sha256:64386e5e707d03a7e172c0701abfb7e10f0fb753ee1d773128192742712a98fd", size = 140344, upload-time = "2025-09-25T21:32:22.617Z" },+ { url = "https://files.pythonhosted.org/packages/d1/11/0fd08f8192109f7169db964b5707a2f1e8b745d4e239b784a5a1dd80d1db/pyyaml-6.0.3-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:8da9669d359f02c0b91ccc01cac4a67f16afec0dac22c2ad09f46bee0697eba8", size = 181669, upload-time = "2025-09-25T21:32:23.673Z" },+ { url = "https://files.pythonhosted.org/packages/b1/16/95309993f1d3748cd644e02e38b75d50cbc0d9561d21f390a76242ce073f/pyyaml-6.0.3-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:2283a07e2c21a2aa78d9c4442724ec1eb15f5e42a723b99cb3d822d48f5f7ad1", size = 173252, upload-time = "2025-09-25T21:32:25.149Z" },+ { url = "https://files.pythonhosted.org/packages/50/31/b20f376d3f810b9b2371e72ef5adb33879b25edb7a6d072cb7ca0c486398/pyyaml-6.0.3-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:ee2922902c45ae8ccada2c5b501ab86c36525b883eff4255313a253a3160861c", size = 767081, upload-time = "2025-09-25T21:32:26.575Z" },+ { url = "https://files.pythonhosted.org/packages/49/1e/a55ca81e949270d5d4432fbbd19dfea5321eda7c41a849d443dc92fd1ff7/pyyaml-6.0.3-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:a33284e20b78bd4a18c8c2282d549d10bc8408a2a7ff57653c0cf0b9be0afce5", size = 841159, upload-time = "2025-09-25T21:32:27.727Z" },+ { url = "https://files.pythonhosted.org/packages/74/27/e5b8f34d02d9995b80abcef563ea1f8b56d20134d8f4e5e81733b1feceb2/pyyaml-6.0.3-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:0f29edc409a6392443abf94b9cf89ce99889a1dd5376d94316ae5145dfedd5d6", size = 801626, upload-time = "2025-09-25T21:32:28.878Z" },+ { url = "https://files.pythonhosted.org/packages/f9/11/ba845c23988798f40e52ba45f34849aa8a1f2d4af4b798588010792ebad6/pyyaml-6.0.3-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:f7057c9a337546edc7973c0d3ba84ddcdf0daa14533c2065749c9075001090e6", size = 753613, upload-time = "2025-09-25T21:32:30.178Z" },+ { url = "https://files.pythonhosted.org/packages/3d/e0/7966e1a7bfc0a45bf0a7fb6b98ea03fc9b8d84fa7f2229e9659680b69ee3/pyyaml-6.0.3-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:eda16858a3cab07b80edaf74336ece1f986ba330fdb8ee0d6c0d68fe82bc96be", size = 794115, upload-time = "2025-09-25T21:32:31.353Z" },+ { url = "https://files.pythonhosted.org/packages/de/94/980b50a6531b3019e45ddeada0626d45fa85cbe22300844a7983285bed3b/pyyaml-6.0.3-cp313-cp313-win32.whl", hash = "sha256:d0eae10f8159e8fdad514efdc92d74fd8d682c933a6dd088030f3834bc8e6b26", size = 137427, upload-time = "2025-09-25T21:32:32.58Z" },+ { url = "https://files.pythonhosted.org/packages/97/c9/39d5b874e8b28845e4ec2202b5da735d0199dbe5b8fb85f91398814a9a46/pyyaml-6.0.3-cp313-cp313-win_amd64.whl", hash = "sha256:79005a0d97d5ddabfeeea4cf676af11e647e41d81c9a7722a193022accdb6b7c", size = 154090, upload-time = "2025-09-25T21:32:33.659Z" },+ { url = "https://files.pythonhosted.org/packages/73/e8/2bdf3ca2090f68bb3d75b44da7bbc71843b19c9f2b9cb9b0f4ab7a5a4329/pyyaml-6.0.3-cp313-cp313-win_arm64.whl", hash = "sha256:5498cd1645aa724a7c71c8f378eb29ebe23da2fc0d7a08071d89469bf1d2defb", size = 140246, upload-time = "2025-09-25T21:32:34.663Z" },+ { url = "https://files.pythonhosted.org/packages/9d/8c/f4bd7f6465179953d3ac9bc44ac1a8a3e6122cf8ada906b4f96c60172d43/pyyaml-6.0.3-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:8d1fab6bb153a416f9aeb4b8763bc0f22a5586065f86f7664fc23339fc1c1fac", size = 181814, upload-time = "2025-09-25T21:32:35.712Z" },+ { url = "https://files.pythonhosted.org/packages/bd/9c/4d95bb87eb2063d20db7b60faa3840c1b18025517ae857371c4dd55a6b3a/pyyaml-6.0.3-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:34d5fcd24b8445fadc33f9cf348c1047101756fd760b4dacb5c3e99755703310", size = 173809, upload-time = "2025-09-25T21:32:36.789Z" },+ { url = "https://files.pythonhosted.org/packages/92/b5/47e807c2623074914e29dabd16cbbdd4bf5e9b2db9f8090fa64411fc5382/pyyaml-6.0.3-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:501a031947e3a9025ed4405a168e6ef5ae3126c59f90ce0cd6f2bfc477be31b7", size = 766454, upload-time = "2025-09-25T21:32:37.966Z" },+ { url = "https://files.pythonhosted.org/packages/02/9e/e5e9b168be58564121efb3de6859c452fccde0ab093d8438905899a3a483/pyyaml-6.0.3-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:b3bc83488de33889877a0f2543ade9f70c67d66d9ebb4ac959502e12de895788", size = 836355, upload-time = "2025-09-25T21:32:39.178Z" },+ { url = "https://files.pythonhosted.org/packages/88/f9/16491d7ed2a919954993e48aa941b200f38040928474c9e85ea9e64222c3/pyyaml-6.0.3-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c458b6d084f9b935061bc36216e8a69a7e293a2f1e68bf956dcd9e6cbcd143f5", size = 794175, upload-time = "2025-09-25T21:32:40.865Z" },+ { url = "https://files.pythonhosted.org/packages/dd/3f/5989debef34dc6397317802b527dbbafb2b4760878a53d4166579111411e/pyyaml-6.0.3-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:7c6610def4f163542a622a73fb39f534f8c101d690126992300bf3207eab9764", size = 755228, upload-time = "2025-09-25T21:32:42.084Z" },+ { url = "https://files.pythonhosted.org/packages/d7/ce/af88a49043cd2e265be63d083fc75b27b6ed062f5f9fd6cdc223ad62f03e/pyyaml-6.0.3-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:5190d403f121660ce8d1d2c1bb2ef1bd05b5f68533fc5c2ea899bd15f4399b35", size = 789194, upload-time = "2025-09-25T21:32:43.362Z" },+ { url = "https://files.pythonhosted.org/packages/23/20/bb6982b26a40bb43951265ba29d4c246ef0ff59c9fdcdf0ed04e0687de4d/pyyaml-6.0.3-cp314-cp314-win_amd64.whl", hash = "sha256:4a2e8cebe2ff6ab7d1050ecd59c25d4c8bd7e6f400f5f82b96557ac0abafd0ac", size = 156429, upload-time = "2025-09-25T21:32:57.844Z" },+ { url = "https://files.pythonhosted.org/packages/f4/f4/a4541072bb9422c8a883ab55255f918fa378ecf083f5b85e87fc2b4eda1b/pyyaml-6.0.3-cp314-cp314-win_arm64.whl", hash = "sha256:93dda82c9c22deb0a405ea4dc5f2d0cda384168e466364dec6255b293923b2f3", size = 143912, upload-time = "2025-09-25T21:32:59.247Z" },+ { url = "https://files.pythonhosted.org/packages/7c/f9/07dd09ae774e4616edf6cda684ee78f97777bdd15847253637a6f052a62f/pyyaml-6.0.3-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:02893d100e99e03eda1c8fd5c441d8c60103fd175728e23e431db1b589cf5ab3", size = 189108, upload-time = "2025-09-25T21:32:44.377Z" },+ { url = "https://files.pythonhosted.org/packages/4e/78/8d08c9fb7ce09ad8c38ad533c1191cf27f7ae1effe5bb9400a46d9437fcf/pyyaml-6.0.3-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:c1ff362665ae507275af2853520967820d9124984e0f7466736aea23d8611fba", size = 183641, upload-time = "2025-09-25T21:32:45.407Z" },+ { url = "https://files.pythonhosted.org/packages/7b/5b/3babb19104a46945cf816d047db2788bcaf8c94527a805610b0289a01c6b/pyyaml-6.0.3-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6adc77889b628398debc7b65c073bcb99c4a0237b248cacaf3fe8a557563ef6c", size = 831901, upload-time = "2025-09-25T21:32:48.83Z" },+ { url = "https://files.pythonhosted.org/packages/8b/cc/dff0684d8dc44da4d22a13f35f073d558c268780ce3c6ba1b87055bb0b87/pyyaml-6.0.3-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:a80cb027f6b349846a3bf6d73b5e95e782175e52f22108cfa17876aaeff93702", size = 861132, upload-time = "2025-09-25T21:32:50.149Z" },+ { url = "https://files.pythonhosted.org/packages/b1/5e/f77dc6b9036943e285ba76b49e118d9ea929885becb0a29ba8a7c75e29fe/pyyaml-6.0.3-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:00c4bdeba853cc34e7dd471f16b4114f4162dc03e6b7afcc2128711f0eca823c", size = 839261, upload-time = "2025-09-25T21:32:51.808Z" },+ { url = "https://files.pythonhosted.org/packages/ce/88/a9db1376aa2a228197c58b37302f284b5617f56a5d959fd1763fb1675ce6/pyyaml-6.0.3-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:66e1674c3ef6f541c35191caae2d429b967b99e02040f5ba928632d9a7f0f065", size = 805272, upload-time = "2025-09-25T21:32:52.941Z" },+ { url = "https://files.pythonhosted.org/packages/da/92/1446574745d74df0c92e6aa4a7b0b3130706a4142b2d1a5869f2eaa423c6/pyyaml-6.0.3-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:16249ee61e95f858e83976573de0f5b2893b3677ba71c9dd36b9cf8be9ac6d65", size = 829923, upload-time = "2025-09-25T21:32:54.537Z" },+ { url = "https://files.pythonhosted.org/packages/f0/7a/1c7270340330e575b92f397352af856a8c06f230aa3e76f86b39d01b416a/pyyaml-6.0.3-cp314-cp314t-win_amd64.whl", hash = "sha256:4ad1906908f2f5ae4e5a8ddfce73c320c2a1429ec52eafd27138b7f1cbe341c9", size = 174062, upload-time = "2025-09-25T21:32:55.767Z" },+ { url = "https://files.pythonhosted.org/packages/f1/12/de94a39c2ef588c7e6455cfbe7343d3b2dc9d6b6b2f40c4c6565744c873d/pyyaml-6.0.3-cp314-cp314t-win_arm64.whl", hash = "sha256:ebc55a14a21cb14062aa4162f906cd962b28e2e9ea38f9b4391244cd8de4ae0b", size = 149341, upload-time = "2025-09-25T21:32:56.828Z" },+]++[[package]]+name = "ruff"+version = "0.15.10"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/e7/d9/aa3f7d59a10ef6b14fe3431706f854dbf03c5976be614a9796d36326810c/ruff-0.15.10.tar.gz", hash = "sha256:d1f86e67ebfdef88e00faefa1552b5e510e1d35f3be7d423dc7e84e63788c94e", size = 4631728, upload-time = "2026-04-09T14:06:09.884Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/eb/00/a1c2fdc9939b2c03691edbda290afcd297f1f389196172826b03d6b6a595/ruff-0.15.10-py3-none-linux_armv6l.whl", hash = "sha256:0744e31482f8f7d0d10a11fcbf897af272fefdfcb10f5af907b18c2813ff4d5f", size = 10563362, upload-time = "2026-04-09T14:06:21.189Z" },+ { url = "https://files.pythonhosted.org/packages/5c/15/006990029aea0bebe9d33c73c3e28c80c391ebdba408d1b08496f00d422d/ruff-0.15.10-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:b1e7c16ea0ff5a53b7c2df52d947e685973049be1cdfe2b59a9c43601897b22e", size = 10951122, upload-time = "2026-04-09T14:06:02.236Z" },+ { url = "https://files.pythonhosted.org/packages/f2/c0/4ac978fe874d0618c7da647862afe697b281c2806f13ce904ad652fa87e4/ruff-0.15.10-py3-none-macosx_11_0_arm64.whl", hash = "sha256:93cc06a19e5155b4441dd72808fdf84290d84ad8a39ca3b0f994363ade4cebb1", size = 10314005, upload-time = "2026-04-09T14:06:00.026Z" },+ { url = "https://files.pythonhosted.org/packages/da/73/c209138a5c98c0d321266372fc4e33ad43d506d7e5dd817dd89b60a8548f/ruff-0.15.10-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:83e1dd04312997c99ea6965df66a14fb4f03ba978564574ffc68b0d61fd3989e", size = 10643450, upload-time = "2026-04-09T14:05:42.137Z" },+ { url = "https://files.pythonhosted.org/packages/ec/76/0deec355d8ec10709653635b1f90856735302cb8e149acfdf6f82a5feb70/ruff-0.15.10-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:8154d43684e4333360fedd11aaa40b1b08a4e37d8ffa9d95fee6fa5b37b6fab1", size = 10379597, upload-time = "2026-04-09T14:05:49.984Z" },+ { url = "https://files.pythonhosted.org/packages/dc/be/86bba8fc8798c081e28a4b3bb6d143ccad3fd5f6f024f02002b8f08a9fa3/ruff-0.15.10-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:8ab88715f3a6deb6bde6c227f3a123410bec7b855c3ae331b4c006189e895cef", size = 11146645, upload-time = "2026-04-09T14:06:12.246Z" },+ { url = "https://files.pythonhosted.org/packages/a8/89/140025e65911b281c57be1d385ba1d932c2366ca88ae6663685aed8d4881/ruff-0.15.10-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:a768ff5969b4f44c349d48edf4ab4f91eddb27fd9d77799598e130fb628aa158", size = 12030289, upload-time = "2026-04-09T14:06:04.776Z" },+ { url = "https://files.pythonhosted.org/packages/88/de/ddacca9545a5e01332567db01d44bd8cf725f2db3b3d61a80550b48308ea/ruff-0.15.10-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:0ee3ef42dab7078bda5ff6a1bcba8539e9857deb447132ad5566a038674540d0", size = 11496266, upload-time = "2026-04-09T14:05:55.485Z" },+ { url = "https://files.pythonhosted.org/packages/bc/bb/7ddb00a83760ff4a83c4e2fc231fd63937cc7317c10c82f583302e0f6586/ruff-0.15.10-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:51cb8cc943e891ba99989dd92d61e29b1d231e14811db9be6440ecf25d5c1609", size = 11256418, upload-time = "2026-04-09T14:05:57.69Z" },+ { url = "https://files.pythonhosted.org/packages/dc/8d/55de0d35aacf6cd50b6ee91ee0f291672080021896543776f4170fc5c454/ruff-0.15.10-py3-none-manylinux_2_31_riscv64.whl", hash = "sha256:e59c9bdc056a320fb9ea1700a8d591718b8faf78af065484e801258d3a76bc3f", size = 11288416, upload-time = "2026-04-09T14:05:44.695Z" },+ { url = "https://files.pythonhosted.org/packages/68/cf/9438b1a27426ec46a80e0a718093c7f958ef72f43eb3111862949ead3cc1/ruff-0.15.10-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:136c00ca2f47b0018b073f28cb5c1506642a830ea941a60354b0e8bc8076b151", size = 10621053, upload-time = "2026-04-09T14:05:52.782Z" },+ { url = "https://files.pythonhosted.org/packages/4c/50/e29be6e2c135e9cd4cb15fbade49d6a2717e009dff3766dd080fcb82e251/ruff-0.15.10-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:8b80a2f3c9c8a950d6237f2ca12b206bccff626139be9fa005f14feb881a1ae8", size = 10378302, upload-time = "2026-04-09T14:06:14.361Z" },+ { url = "https://files.pythonhosted.org/packages/18/2f/e0b36a6f99c51bb89f3a30239bc7bf97e87a37ae80aa2d6542d6e5150364/ruff-0.15.10-py3-none-musllinux_1_2_i686.whl", hash = "sha256:e3e53c588164dc025b671c9df2462429d60357ea91af7e92e9d56c565a9f1b07", size = 10850074, upload-time = "2026-04-09T14:06:16.581Z" },+ { url = "https://files.pythonhosted.org/packages/11/08/874da392558ce087a0f9b709dc6ec0d60cbc694c1c772dab8d5f31efe8cb/ruff-0.15.10-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:b0c52744cf9f143a393e284125d2576140b68264a93c6716464e129a3e9adb48", size = 11358051, upload-time = "2026-04-09T14:06:18.948Z" },+ { url = "https://files.pythonhosted.org/packages/e4/46/602938f030adfa043e67112b73821024dc79f3ab4df5474c25fa4c1d2d14/ruff-0.15.10-py3-none-win32.whl", hash = "sha256:d4272e87e801e9a27a2e8df7b21011c909d9ddd82f4f3281d269b6ba19789ca5", size = 10588964, upload-time = "2026-04-09T14:06:07.14Z" },+ { url = "https://files.pythonhosted.org/packages/25/b6/261225b875d7a13b33a6d02508c39c28450b2041bb01d0f7f1a83d569512/ruff-0.15.10-py3-none-win_amd64.whl", hash = "sha256:28cb32d53203242d403d819fd6983152489b12e4a3ae44993543d6fe62ab42ed", size = 11745044, upload-time = "2026-04-09T14:05:39.473Z" },+ { url = "https://files.pythonhosted.org/packages/58/ed/dea90a65b7d9e69888890fb14c90d7f51bf0c1e82ad800aeb0160e4bacfd/ruff-0.15.10-py3-none-win_arm64.whl", hash = "sha256:601d1610a9e1f1c2165a4f561eeaa2e2ea1e97f3287c5aa258d3dab8b57c6188", size = 11035607, upload-time = "2026-04-09T14:05:47.593Z" },+]++[[package]]+name = "starlette"+version = "1.0.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "anyio" },+ { name = "typing-extensions", marker = "python_full_version < '3.13'" },+]+sdist = { url = "https://files.pythonhosted.org/packages/81/69/17425771797c36cded50b7fe44e850315d039f28b15901ab44839e70b593/starlette-1.0.0.tar.gz", hash = "sha256:6a4beaf1f81bb472fd19ea9b918b50dc3a77a6f2e190a12954b25e6ed5eea149", size = 2655289, upload-time = "2026-03-22T18:29:46.779Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/0b/c9/584bc9651441b4ba60cc4d557d8a547b5aff901af35bda3a4ee30c819b82/starlette-1.0.0-py3-none-any.whl", hash = "sha256:d3ec55e0bb321692d275455ddfd3df75fff145d009685eb40dc91fc66b03d38b", size = 72651, upload-time = "2026-03-22T18:29:45.111Z" },+]++[[package]]+name = "tomli"+version = "2.4.1"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/22/de/48c59722572767841493b26183a0d1cc411d54fd759c5607c4590b6563a6/tomli-2.4.1.tar.gz", hash = "sha256:7c7e1a961a0b2f2472c1ac5b69affa0ae1132c39adcb67aba98568702b9cc23f", size = 17543, upload-time = "2026-03-25T20:22:03.828Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/f4/11/db3d5885d8528263d8adc260bb2d28ebf1270b96e98f0e0268d32b8d9900/tomli-2.4.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:f8f0fc26ec2cc2b965b7a3b87cd19c5c6b8c5e5f436b984e85f486d652285c30", size = 154704, upload-time = "2026-03-25T20:21:10.473Z" },+ { url = "https://files.pythonhosted.org/packages/6d/f7/675db52c7e46064a9aa928885a9b20f4124ecb9bc2e1ce74c9106648d202/tomli-2.4.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:4ab97e64ccda8756376892c53a72bd1f964e519c77236368527f758fbc36a53a", size = 149454, upload-time = "2026-03-25T20:21:12.036Z" },+ { url = "https://files.pythonhosted.org/packages/61/71/81c50943cf953efa35bce7646caab3cf457a7d8c030b27cfb40d7235f9ee/tomli-2.4.1-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:96481a5786729fd470164b47cdb3e0e58062a496f455ee41b4403be77cb5a076", size = 237561, upload-time = "2026-03-25T20:21:13.098Z" },+ { url = "https://files.pythonhosted.org/packages/48/c1/f41d9cb618acccca7df82aaf682f9b49013c9397212cb9f53219e3abac37/tomli-2.4.1-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:5a881ab208c0baf688221f8cecc5401bd291d67e38a1ac884d6736cbcd8247e9", size = 243824, upload-time = "2026-03-25T20:21:14.569Z" },+ { url = "https://files.pythonhosted.org/packages/22/e4/5a816ecdd1f8ca51fb756ef684b90f2780afc52fc67f987e3c61d800a46d/tomli-2.4.1-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:47149d5bd38761ac8be13a84864bf0b7b70bc051806bc3669ab1cbc56216b23c", size = 242227, upload-time = "2026-03-25T20:21:15.712Z" },+ { url = "https://files.pythonhosted.org/packages/6b/49/2b2a0ef529aa6eec245d25f0c703e020a73955ad7edf73e7f54ddc608aa5/tomli-2.4.1-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:ec9bfaf3ad2df51ace80688143a6a4ebc09a248f6ff781a9945e51937008fcbc", size = 247859, upload-time = "2026-03-25T20:21:17.001Z" },+ { url = "https://files.pythonhosted.org/packages/83/bd/6c1a630eaca337e1e78c5903104f831bda934c426f9231429396ce3c3467/tomli-2.4.1-cp311-cp311-win32.whl", hash = "sha256:ff2983983d34813c1aeb0fa89091e76c3a22889ee83ab27c5eeb45100560c049", size = 97204, upload-time = "2026-03-25T20:21:18.079Z" },+ { url = "https://files.pythonhosted.org/packages/42/59/71461df1a885647e10b6bb7802d0b8e66480c61f3f43079e0dcd315b3954/tomli-2.4.1-cp311-cp311-win_amd64.whl", hash = "sha256:5ee18d9ebdb417e384b58fe414e8d6af9f4e7a0ae761519fb50f721de398dd4e", size = 108084, upload-time = "2026-03-25T20:21:18.978Z" },+ { url = "https://files.pythonhosted.org/packages/b8/83/dceca96142499c069475b790e7913b1044c1a4337e700751f48ed723f883/tomli-2.4.1-cp311-cp311-win_arm64.whl", hash = "sha256:c2541745709bad0264b7d4705ad453b76ccd191e64aa6f0fc66b69a293a45ece", size = 95285, upload-time = "2026-03-25T20:21:20.309Z" },+ { url = "https://files.pythonhosted.org/packages/c1/ba/42f134a3fe2b370f555f44b1d72feebb94debcab01676bf918d0cb70e9aa/tomli-2.4.1-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:c742f741d58a28940ce01d58f0ab2ea3ced8b12402f162f4d534dfe18ba1cd6a", size = 155924, upload-time = "2026-03-25T20:21:21.626Z" },+ { url = "https://files.pythonhosted.org/packages/dc/c7/62d7a17c26487ade21c5422b646110f2162f1fcc95980ef7f63e73c68f14/tomli-2.4.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:7f86fd587c4ed9dd76f318225e7d9b29cfc5a9d43de44e5754db8d1128487085", size = 150018, upload-time = "2026-03-25T20:21:23.002Z" },+ { url = "https://files.pythonhosted.org/packages/5c/05/79d13d7c15f13bdef410bdd49a6485b1c37d28968314eabee452c22a7fda/tomli-2.4.1-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:ff18e6a727ee0ab0388507b89d1bc6a22b138d1e2fa56d1ad494586d61d2eae9", size = 244948, upload-time = "2026-03-25T20:21:24.04Z" },+ { url = "https://files.pythonhosted.org/packages/10/90/d62ce007a1c80d0b2c93e02cab211224756240884751b94ca72df8a875ca/tomli-2.4.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:136443dbd7e1dee43c68ac2694fde36b2849865fa258d39bf822c10e8068eac5", size = 253341, upload-time = "2026-03-25T20:21:25.177Z" },+ { url = "https://files.pythonhosted.org/packages/1a/7e/caf6496d60152ad4ed09282c1885cca4eea150bfd007da84aea07bcc0a3e/tomli-2.4.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:5e262d41726bc187e69af7825504c933b6794dc3fbd5945e41a79bb14c31f585", size = 248159, upload-time = "2026-03-25T20:21:26.364Z" },+ { url = "https://files.pythonhosted.org/packages/99/e7/c6f69c3120de34bbd882c6fba7975f3d7a746e9218e56ab46a1bc4b42552/tomli-2.4.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:5cb41aa38891e073ee49d55fbc7839cfdb2bc0e600add13874d048c94aadddd1", size = 253290, upload-time = "2026-03-25T20:21:27.46Z" },+ { url = "https://files.pythonhosted.org/packages/d6/2f/4a3c322f22c5c66c4b836ec58211641a4067364f5dcdd7b974b4c5da300c/tomli-2.4.1-cp312-cp312-win32.whl", hash = "sha256:da25dc3563bff5965356133435b757a795a17b17d01dbc0f42fb32447ddfd917", size = 98141, upload-time = "2026-03-25T20:21:28.492Z" },+ { url = "https://files.pythonhosted.org/packages/24/22/4daacd05391b92c55759d55eaee21e1dfaea86ce5c571f10083360adf534/tomli-2.4.1-cp312-cp312-win_amd64.whl", hash = "sha256:52c8ef851d9a240f11a88c003eacb03c31fc1c9c4ec64a99a0f922b93874fda9", size = 108847, upload-time = "2026-03-25T20:21:29.386Z" },+ { url = "https://files.pythonhosted.org/packages/68/fd/70e768887666ddd9e9f5d85129e84910f2db2796f9096aa02b721a53098d/tomli-2.4.1-cp312-cp312-win_arm64.whl", hash = "sha256:f758f1b9299d059cc3f6546ae2af89670cb1c4d48ea29c3cacc4fe7de3058257", size = 95088, upload-time = "2026-03-25T20:21:30.677Z" },+ { url = "https://files.pythonhosted.org/packages/07/06/b823a7e818c756d9a7123ba2cda7d07bc2dd32835648d1a7b7b7a05d848d/tomli-2.4.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:36d2bd2ad5fb9eaddba5226aa02c8ec3fa4f192631e347b3ed28186d43be6b54", size = 155866, upload-time = "2026-03-25T20:21:31.65Z" },+ { url = "https://files.pythonhosted.org/packages/14/6f/12645cf7f08e1a20c7eb8c297c6f11d31c1b50f316a7e7e1e1de6e2e7b7e/tomli-2.4.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:eb0dc4e38e6a1fd579e5d50369aa2e10acfc9cace504579b2faabb478e76941a", size = 149887, upload-time = "2026-03-25T20:21:33.028Z" },+ { url = "https://files.pythonhosted.org/packages/5c/e0/90637574e5e7212c09099c67ad349b04ec4d6020324539297b634a0192b0/tomli-2.4.1-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:c7f2c7f2b9ca6bdeef8f0fa897f8e05085923eb091721675170254cbc5b02897", size = 243704, upload-time = "2026-03-25T20:21:34.51Z" },+ { url = "https://files.pythonhosted.org/packages/10/8f/d3ddb16c5a4befdf31a23307f72828686ab2096f068eaf56631e136c1fdd/tomli-2.4.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:f3c6818a1a86dd6dca7ddcaaf76947d5ba31aecc28cb1b67009a5877c9a64f3f", size = 251628, upload-time = "2026-03-25T20:21:36.012Z" },+ { url = "https://files.pythonhosted.org/packages/e3/f1/dbeeb9116715abee2485bf0a12d07a8f31af94d71608c171c45f64c0469d/tomli-2.4.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:d312ef37c91508b0ab2cee7da26ec0b3ed2f03ce12bd87a588d771ae15dcf82d", size = 247180, upload-time = "2026-03-25T20:21:37.136Z" },+ { url = "https://files.pythonhosted.org/packages/d3/74/16336ffd19ed4da28a70959f92f506233bd7cfc2332b20bdb01591e8b1d1/tomli-2.4.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:51529d40e3ca50046d7606fa99ce3956a617f9b36380da3b7f0dd3dd28e68cb5", size = 251674, upload-time = "2026-03-25T20:21:38.298Z" },+ { url = "https://files.pythonhosted.org/packages/16/f9/229fa3434c590ddf6c0aa9af64d3af4b752540686cace29e6281e3458469/tomli-2.4.1-cp313-cp313-win32.whl", hash = "sha256:2190f2e9dd7508d2a90ded5ed369255980a1bcdd58e52f7fe24b8162bf9fedbd", size = 97976, upload-time = "2026-03-25T20:21:39.316Z" },+ { url = "https://files.pythonhosted.org/packages/6a/1e/71dfd96bcc1c775420cb8befe7a9d35f2e5b1309798f009dca17b7708c1e/tomli-2.4.1-cp313-cp313-win_amd64.whl", hash = "sha256:8d65a2fbf9d2f8352685bc1364177ee3923d6baf5e7f43ea4959d7d8bc326a36", size = 108755, upload-time = "2026-03-25T20:21:40.248Z" },+ { url = "https://files.pythonhosted.org/packages/83/7a/d34f422a021d62420b78f5c538e5b102f62bea616d1d75a13f0a88acb04a/tomli-2.4.1-cp313-cp313-win_arm64.whl", hash = "sha256:4b605484e43cdc43f0954ddae319fb75f04cc10dd80d830540060ee7cd0243cd", size = 95265, upload-time = "2026-03-25T20:21:41.219Z" },+ { url = "https://files.pythonhosted.org/packages/3c/fb/9a5c8d27dbab540869f7c1f8eb0abb3244189ce780ba9cd73f3770662072/tomli-2.4.1-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:fd0409a3653af6c147209d267a0e4243f0ae46b011aa978b1080359fddc9b6cf", size = 155726, upload-time = "2026-03-25T20:21:42.23Z" },+ { url = "https://files.pythonhosted.org/packages/62/05/d2f816630cc771ad836af54f5001f47a6f611d2d39535364f148b6a92d6b/tomli-2.4.1-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:a120733b01c45e9a0c34aeef92bf0cf1d56cfe81ed9d47d562f9ed591a9828ac", size = 149859, upload-time = "2026-03-25T20:21:43.386Z" },+ { url = "https://files.pythonhosted.org/packages/ce/48/66341bdb858ad9bd0ceab5a86f90eddab127cf8b046418009f2125630ecb/tomli-2.4.1-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:559db847dc486944896521f68d8190be1c9e719fced785720d2216fe7022b662", size = 244713, upload-time = "2026-03-25T20:21:44.474Z" },+ { url = "https://files.pythonhosted.org/packages/df/6d/c5fad00d82b3c7a3ab6189bd4b10e60466f22cfe8a08a9394185c8a8111c/tomli-2.4.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:01f520d4f53ef97964a240a035ec2a869fe1a37dde002b57ebc4417a27ccd853", size = 252084, upload-time = "2026-03-25T20:21:45.62Z" },+ { url = "https://files.pythonhosted.org/packages/00/71/3a69e86f3eafe8c7a59d008d245888051005bd657760e96d5fbfb0b740c2/tomli-2.4.1-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:7f94b27a62cfad8496c8d2513e1a222dd446f095fca8987fceef261225538a15", size = 247973, upload-time = "2026-03-25T20:21:46.937Z" },+ { url = "https://files.pythonhosted.org/packages/67/50/361e986652847fec4bd5e4a0208752fbe64689c603c7ae5ea7cb16b1c0ca/tomli-2.4.1-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:ede3e6487c5ef5d28634ba3f31f989030ad6af71edfb0055cbbd14189ff240ba", size = 256223, upload-time = "2026-03-25T20:21:48.467Z" },+ { url = "https://files.pythonhosted.org/packages/8c/9a/b4173689a9203472e5467217e0154b00e260621caa227b6fa01feab16998/tomli-2.4.1-cp314-cp314-win32.whl", hash = "sha256:3d48a93ee1c9b79c04bb38772ee1b64dcf18ff43085896ea460ca8dec96f35f6", size = 98973, upload-time = "2026-03-25T20:21:49.526Z" },+ { url = "https://files.pythonhosted.org/packages/14/58/640ac93bf230cd27d002462c9af0d837779f8773bc03dee06b5835208214/tomli-2.4.1-cp314-cp314-win_amd64.whl", hash = "sha256:88dceee75c2c63af144e456745e10101eb67361050196b0b6af5d717254dddf7", size = 109082, upload-time = "2026-03-25T20:21:50.506Z" },+ { url = "https://files.pythonhosted.org/packages/d5/2f/702d5e05b227401c1068f0d386d79a589bb12bf64c3d2c72ce0631e3bc49/tomli-2.4.1-cp314-cp314-win_arm64.whl", hash = "sha256:b8c198f8c1805dc42708689ed6864951fd2494f924149d3e4bce7710f8eb5232", size = 96490, upload-time = "2026-03-25T20:21:51.474Z" },+ { url = "https://files.pythonhosted.org/packages/45/4b/b877b05c8ba62927d9865dd980e34a755de541eb65fffba52b4cc495d4d2/tomli-2.4.1-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:d4d8fe59808a54658fcc0160ecfb1b30f9089906c50b23bcb4c69eddc19ec2b4", size = 164263, upload-time = "2026-03-25T20:21:52.543Z" },+ { url = "https://files.pythonhosted.org/packages/24/79/6ab420d37a270b89f7195dec5448f79400d9e9c1826df982f3f8e97b24fd/tomli-2.4.1-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:7008df2e7655c495dd12d2a4ad038ff878d4ca4b81fccaf82b714e07eae4402c", size = 160736, upload-time = "2026-03-25T20:21:53.674Z" },+ { url = "https://files.pythonhosted.org/packages/02/e0/3630057d8eb170310785723ed5adcdfb7d50cb7e6455f85ba8a3deed642b/tomli-2.4.1-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:1d8591993e228b0c930c4bb0db464bdad97b3289fb981255d6c9a41aedc84b2d", size = 270717, upload-time = "2026-03-25T20:21:55.129Z" },+ { url = "https://files.pythonhosted.org/packages/7a/b4/1613716072e544d1a7891f548d8f9ec6ce2faf42ca65acae01d76ea06bb0/tomli-2.4.1-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:734e20b57ba95624ecf1841e72b53f6e186355e216e5412de414e3c51e5e3c41", size = 278461, upload-time = "2026-03-25T20:21:56.228Z" },+ { url = "https://files.pythonhosted.org/packages/05/38/30f541baf6a3f6df77b3df16b01ba319221389e2da59427e221ef417ac0c/tomli-2.4.1-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:8a650c2dbafa08d42e51ba0b62740dae4ecb9338eefa093aa5c78ceb546fcd5c", size = 274855, upload-time = "2026-03-25T20:21:57.653Z" },+ { url = "https://files.pythonhosted.org/packages/77/a3/ec9dd4fd2c38e98de34223b995a3b34813e6bdadf86c75314c928350ed14/tomli-2.4.1-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:504aa796fe0569bb43171066009ead363de03675276d2d121ac1a4572397870f", size = 283144, upload-time = "2026-03-25T20:21:59.089Z" },+ { url = "https://files.pythonhosted.org/packages/ef/be/605a6261cac79fba2ec0c9827e986e00323a1945700969b8ee0b30d85453/tomli-2.4.1-cp314-cp314t-win32.whl", hash = "sha256:b1d22e6e9387bf4739fbe23bfa80e93f6b0373a7f1b96c6227c32bef95a4d7a8", size = 108683, upload-time = "2026-03-25T20:22:00.214Z" },+ { url = "https://files.pythonhosted.org/packages/12/64/da524626d3b9cc40c168a13da8335fe1c51be12c0a63685cc6db7308daae/tomli-2.4.1-cp314-cp314t-win_amd64.whl", hash = "sha256:2c1c351919aca02858f740c6d33adea0c5deea37f9ecca1cc1ef9e884a619d26", size = 121196, upload-time = "2026-03-25T20:22:01.169Z" },+ { url = "https://files.pythonhosted.org/packages/5a/cd/e80b62269fc78fc36c9af5a6b89c835baa8af28ff5ad28c7028d60860320/tomli-2.4.1-cp314-cp314t-win_arm64.whl", hash = "sha256:eab21f45c7f66c13f2a9e0e1535309cee140182a9cdae1e041d02e47291e8396", size = 100393, upload-time = "2026-03-25T20:22:02.137Z" },+ { url = "https://files.pythonhosted.org/packages/7b/61/cceae43728b7de99d9b847560c262873a1f6c98202171fd5ed62640b494b/tomli-2.4.1-py3-none-any.whl", hash = "sha256:0d85819802132122da43cb86656f8d1f8c6587d54ae7dcaf30e90533028b49fe", size = 14583, upload-time = "2026-03-25T20:22:03.012Z" },+]++[[package]]+name = "typing-extensions"+version = "4.15.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" }+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" },+]++[[package]]+name = "typing-inspection"+version = "0.4.2"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "typing-extensions" },+]+sdist = { url = "https://files.pythonhosted.org/packages/55/e3/70399cb7dd41c10ac53367ae42139cf4b1ca5f36bb3dc6c9d33acdb43655/typing_inspection-0.4.2.tar.gz", hash = "sha256:ba561c48a67c5958007083d386c3295464928b01faa735ab8547c5692e87f464", size = 75949, upload-time = "2025-10-01T02:14:41.687Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/dc/9b/47798a6c91d8bdb567fe2698fe81e0c6b7cb7ef4d13da4114b41d239f65d/typing_inspection-0.4.2-py3-none-any.whl", hash = "sha256:4ed1cacbdc298c220f1bd249ed5287caa16f34d44ef4e9c3d0cbad5b521545e7", size = 14611, upload-time = "2025-10-01T02:14:40.154Z" },+]++[[package]]+name = "uvicorn"+version = "0.44.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "click" },+ { name = "h11" },+]+sdist = { url = "https://files.pythonhosted.org/packages/5e/da/6eee1ff8b6cbeed47eeb5229749168e81eb4b7b999a1a15a7176e51410c9/uvicorn-0.44.0.tar.gz", hash = "sha256:6c942071b68f07e178264b9152f1f16dfac5da85880c4ce06366a96d70d4f31e", size = 86947, upload-time = "2026-04-06T09:23:22.826Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/b7/23/a5bbd9600dd607411fa644c06ff4951bec3a4d82c4b852374024359c19c0/uvicorn-0.44.0-py3-none-any.whl", hash = "sha256:ce937c99a2cc70279556967274414c087888e8cec9f9c94644dfca11bd3ced89", size = 69425, upload-time = "2026-04-06T09:23:21.524Z" },+]++[package.optional-dependencies]+standard = [+ { name = "colorama", marker = "sys_platform == 'win32'" },+ { name = "httptools" },+ { name = "python-dotenv" },+ { name = "pyyaml" },+ { name = "uvloop", marker = "platform_python_implementation != 'PyPy' and sys_platform != 'cygwin' and sys_platform != 'win32'" },+ { name = "watchfiles" },+ { name = "websockets" },+]++[[package]]+name = "uvloop"+version = "0.22.1"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/06/f0/18d39dbd1971d6d62c4629cc7fa67f74821b0dc1f5a77af43719de7936a7/uvloop-0.22.1.tar.gz", hash = "sha256:6c84bae345b9147082b17371e3dd5d42775bddce91f885499017f4607fdaf39f", size = 2443250, upload-time = "2025-10-16T22:17:19.342Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/c7/d5/69900f7883235562f1f50d8184bb7dd84a2fb61e9ec63f3782546fdbd057/uvloop-0.22.1-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:c60ebcd36f7b240b30788554b6f0782454826a0ed765d8430652621b5de674b9", size = 1352420, upload-time = "2025-10-16T22:16:21.187Z" },+ { url = "https://files.pythonhosted.org/packages/a8/73/c4e271b3bce59724e291465cc936c37758886a4868787da0278b3b56b905/uvloop-0.22.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:3b7f102bf3cb1995cfeaee9321105e8f5da76fdb104cdad8986f85461a1b7b77", size = 748677, upload-time = "2025-10-16T22:16:22.558Z" },+ { url = "https://files.pythonhosted.org/packages/86/94/9fb7fad2f824d25f8ecac0d70b94d0d48107ad5ece03769a9c543444f78a/uvloop-0.22.1-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:53c85520781d84a4b8b230e24a5af5b0778efdb39142b424990ff1ef7c48ba21", size = 3753819, upload-time = "2025-10-16T22:16:23.903Z" },+ { url = "https://files.pythonhosted.org/packages/74/4f/256aca690709e9b008b7108bc85fba619a2bc37c6d80743d18abad16ee09/uvloop-0.22.1-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:56a2d1fae65fd82197cb8c53c367310b3eabe1bbb9fb5a04d28e3e3520e4f702", size = 3804529, upload-time = "2025-10-16T22:16:25.246Z" },+ { url = "https://files.pythonhosted.org/packages/7f/74/03c05ae4737e871923d21a76fe28b6aad57f5c03b6e6bfcfa5ad616013e4/uvloop-0.22.1-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:40631b049d5972c6755b06d0bfe8233b1bd9a8a6392d9d1c45c10b6f9e9b2733", size = 3621267, upload-time = "2025-10-16T22:16:26.819Z" },+ { url = "https://files.pythonhosted.org/packages/75/be/f8e590fe61d18b4a92070905497aec4c0e64ae1761498cad09023f3f4b3e/uvloop-0.22.1-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:535cc37b3a04f6cd2c1ef65fa1d370c9a35b6695df735fcff5427323f2cd5473", size = 3723105, upload-time = "2025-10-16T22:16:28.252Z" },+ { url = "https://files.pythonhosted.org/packages/3d/ff/7f72e8170be527b4977b033239a83a68d5c881cc4775fca255c677f7ac5d/uvloop-0.22.1-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:fe94b4564e865d968414598eea1a6de60adba0c040ba4ed05ac1300de402cd42", size = 1359936, upload-time = "2025-10-16T22:16:29.436Z" },+ { url = "https://files.pythonhosted.org/packages/c3/c6/e5d433f88fd54d81ef4be58b2b7b0cea13c442454a1db703a1eea0db1a59/uvloop-0.22.1-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:51eb9bd88391483410daad430813d982010f9c9c89512321f5b60e2cddbdddd6", size = 752769, upload-time = "2025-10-16T22:16:30.493Z" },+ { url = "https://files.pythonhosted.org/packages/24/68/a6ac446820273e71aa762fa21cdcc09861edd3536ff47c5cd3b7afb10eeb/uvloop-0.22.1-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:700e674a166ca5778255e0e1dc4e9d79ab2acc57b9171b79e65feba7184b3370", size = 4317413, upload-time = "2025-10-16T22:16:31.644Z" },+ { url = "https://files.pythonhosted.org/packages/5f/6f/e62b4dfc7ad6518e7eff2516f680d02a0f6eb62c0c212e152ca708a0085e/uvloop-0.22.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:7b5b1ac819a3f946d3b2ee07f09149578ae76066d70b44df3fa990add49a82e4", size = 4426307, upload-time = "2025-10-16T22:16:32.917Z" },+ { url = "https://files.pythonhosted.org/packages/90/60/97362554ac21e20e81bcef1150cb2a7e4ffdaf8ea1e5b2e8bf7a053caa18/uvloop-0.22.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:e047cc068570bac9866237739607d1313b9253c3051ad84738cbb095be0537b2", size = 4131970, upload-time = "2025-10-16T22:16:34.015Z" },+ { url = "https://files.pythonhosted.org/packages/99/39/6b3f7d234ba3964c428a6e40006340f53ba37993f46ed6e111c6e9141d18/uvloop-0.22.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:512fec6815e2dd45161054592441ef76c830eddaad55c8aa30952e6fe1ed07c0", size = 4296343, upload-time = "2025-10-16T22:16:35.149Z" },+ { url = "https://files.pythonhosted.org/packages/89/8c/182a2a593195bfd39842ea68ebc084e20c850806117213f5a299dfc513d9/uvloop-0.22.1-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:561577354eb94200d75aca23fbde86ee11be36b00e52a4eaf8f50fb0c86b7705", size = 1358611, upload-time = "2025-10-16T22:16:36.833Z" },+ { url = "https://files.pythonhosted.org/packages/d2/14/e301ee96a6dc95224b6f1162cd3312f6d1217be3907b79173b06785f2fe7/uvloop-0.22.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:1cdf5192ab3e674ca26da2eada35b288d2fa49fdd0f357a19f0e7c4e7d5077c8", size = 751811, upload-time = "2025-10-16T22:16:38.275Z" },+ { url = "https://files.pythonhosted.org/packages/b7/02/654426ce265ac19e2980bfd9ea6590ca96a56f10c76e63801a2df01c0486/uvloop-0.22.1-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6e2ea3d6190a2968f4a14a23019d3b16870dd2190cd69c8180f7c632d21de68d", size = 4288562, upload-time = "2025-10-16T22:16:39.375Z" },+ { url = "https://files.pythonhosted.org/packages/15/c0/0be24758891ef825f2065cd5db8741aaddabe3e248ee6acc5e8a80f04005/uvloop-0.22.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:0530a5fbad9c9e4ee3f2b33b148c6a64d47bbad8000ea63704fa8260f4cf728e", size = 4366890, upload-time = "2025-10-16T22:16:40.547Z" },+ { url = "https://files.pythonhosted.org/packages/d2/53/8369e5219a5855869bcee5f4d317f6da0e2c669aecf0ef7d371e3d084449/uvloop-0.22.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:bc5ef13bbc10b5335792360623cc378d52d7e62c2de64660616478c32cd0598e", size = 4119472, upload-time = "2025-10-16T22:16:41.694Z" },+ { url = "https://files.pythonhosted.org/packages/f8/ba/d69adbe699b768f6b29a5eec7b47dd610bd17a69de51b251126a801369ea/uvloop-0.22.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:1f38ec5e3f18c8a10ded09742f7fb8de0108796eb673f30ce7762ce1b8550cad", size = 4239051, upload-time = "2025-10-16T22:16:43.224Z" },+ { url = "https://files.pythonhosted.org/packages/90/cd/b62bdeaa429758aee8de8b00ac0dd26593a9de93d302bff3d21439e9791d/uvloop-0.22.1-cp314-cp314-macosx_10_13_universal2.whl", hash = "sha256:3879b88423ec7e97cd4eba2a443aa26ed4e59b45e6b76aabf13fe2f27023a142", size = 1362067, upload-time = "2025-10-16T22:16:44.503Z" },+ { url = "https://files.pythonhosted.org/packages/0d/f8/a132124dfda0777e489ca86732e85e69afcd1ff7686647000050ba670689/uvloop-0.22.1-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:4baa86acedf1d62115c1dc6ad1e17134476688f08c6efd8a2ab076e815665c74", size = 752423, upload-time = "2025-10-16T22:16:45.968Z" },+ { url = "https://files.pythonhosted.org/packages/a3/94/94af78c156f88da4b3a733773ad5ba0b164393e357cc4bd0ab2e2677a7d6/uvloop-0.22.1-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:297c27d8003520596236bdb2335e6b3f649480bd09e00d1e3a99144b691d2a35", size = 4272437, upload-time = "2025-10-16T22:16:47.451Z" },+ { url = "https://files.pythonhosted.org/packages/b5/35/60249e9fd07b32c665192cec7af29e06c7cd96fa1d08b84f012a56a0b38e/uvloop-0.22.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c1955d5a1dd43198244d47664a5858082a3239766a839b2102a269aaff7a4e25", size = 4292101, upload-time = "2025-10-16T22:16:49.318Z" },+ { url = "https://files.pythonhosted.org/packages/02/62/67d382dfcb25d0a98ce73c11ed1a6fba5037a1a1d533dcbb7cab033a2636/uvloop-0.22.1-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:b31dc2fccbd42adc73bc4e7cdbae4fc5086cf378979e53ca5d0301838c5682c6", size = 4114158, upload-time = "2025-10-16T22:16:50.517Z" },+ { url = "https://files.pythonhosted.org/packages/f0/7a/f1171b4a882a5d13c8b7576f348acfe6074d72eaf52cccef752f748d4a9f/uvloop-0.22.1-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:93f617675b2d03af4e72a5333ef89450dfaa5321303ede6e67ba9c9d26878079", size = 4177360, upload-time = "2025-10-16T22:16:52.646Z" },+ { url = "https://files.pythonhosted.org/packages/79/7b/b01414f31546caf0919da80ad57cbfe24c56b151d12af68cee1b04922ca8/uvloop-0.22.1-cp314-cp314t-macosx_10_13_universal2.whl", hash = "sha256:37554f70528f60cad66945b885eb01f1bb514f132d92b6eeed1c90fd54ed6289", size = 1454790, upload-time = "2025-10-16T22:16:54.355Z" },+ { url = "https://files.pythonhosted.org/packages/d4/31/0bb232318dd838cad3fa8fb0c68c8b40e1145b32025581975e18b11fab40/uvloop-0.22.1-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:b76324e2dc033a0b2f435f33eb88ff9913c156ef78e153fb210e03c13da746b3", size = 796783, upload-time = "2025-10-16T22:16:55.906Z" },+ { url = "https://files.pythonhosted.org/packages/42/38/c9b09f3271a7a723a5de69f8e237ab8e7803183131bc57c890db0b6bb872/uvloop-0.22.1-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:badb4d8e58ee08dad957002027830d5c3b06aea446a6a3744483c2b3b745345c", size = 4647548, upload-time = "2025-10-16T22:16:57.008Z" },+ { url = "https://files.pythonhosted.org/packages/c1/37/945b4ca0ac27e3dc4952642d4c900edd030b3da6c9634875af6e13ae80e5/uvloop-0.22.1-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:b91328c72635f6f9e0282e4a57da7470c7350ab1c9f48546c0f2866205349d21", size = 4467065, upload-time = "2025-10-16T22:16:58.206Z" },+ { url = "https://files.pythonhosted.org/packages/97/cc/48d232f33d60e2e2e0b42f4e73455b146b76ebe216487e862700457fbf3c/uvloop-0.22.1-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:daf620c2995d193449393d6c62131b3fbd40a63bf7b307a1527856ace637fe88", size = 4328384, upload-time = "2025-10-16T22:16:59.36Z" },+ { url = "https://files.pythonhosted.org/packages/e4/16/c1fd27e9549f3c4baf1dc9c20c456cd2f822dbf8de9f463824b0c0357e06/uvloop-0.22.1-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:6cde23eeda1a25c75b2e07d39970f3374105d5eafbaab2a4482be82f272d5a5e", size = 4296730, upload-time = "2025-10-16T22:17:00.744Z" },+]++[[package]]+name = "watchfiles"+version = "1.1.1"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "anyio" },+]+sdist = { url = "https://files.pythonhosted.org/packages/c2/c9/8869df9b2a2d6c59d79220a4db37679e74f807c559ffe5265e08b227a210/watchfiles-1.1.1.tar.gz", hash = "sha256:a173cb5c16c4f40ab19cecf48a534c409f7ea983ab8fed0741304a1c0a31b3f2", size = 94440, upload-time = "2025-10-14T15:06:21.08Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/1f/f8/2c5f479fb531ce2f0564eda479faecf253d886b1ab3630a39b7bf7362d46/watchfiles-1.1.1-cp311-cp311-macosx_10_12_x86_64.whl", hash = "sha256:f57b396167a2565a4e8b5e56a5a1c537571733992b226f4f1197d79e94cf0ae5", size = 406529, upload-time = "2025-10-14T15:04:32.899Z" },+ { url = "https://files.pythonhosted.org/packages/fe/cd/f515660b1f32f65df671ddf6f85bfaca621aee177712874dc30a97397977/watchfiles-1.1.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:421e29339983e1bebc281fab40d812742268ad057db4aee8c4d2bce0af43b741", size = 394384, upload-time = "2025-10-14T15:04:33.761Z" },+ { url = "https://files.pythonhosted.org/packages/7b/c3/28b7dc99733eab43fca2d10f55c86e03bd6ab11ca31b802abac26b23d161/watchfiles-1.1.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6e43d39a741e972bab5d8100b5cdacf69db64e34eb19b6e9af162bccf63c5cc6", size = 448789, upload-time = "2025-10-14T15:04:34.679Z" },+ { url = "https://files.pythonhosted.org/packages/4a/24/33e71113b320030011c8e4316ccca04194bf0cbbaeee207f00cbc7d6b9f5/watchfiles-1.1.1-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:f537afb3276d12814082a2e9b242bdcf416c2e8fd9f799a737990a1dbe906e5b", size = 460521, upload-time = "2025-10-14T15:04:35.963Z" },+ { url = "https://files.pythonhosted.org/packages/f4/c3/3c9a55f255aa57b91579ae9e98c88704955fa9dac3e5614fb378291155df/watchfiles-1.1.1-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:b2cd9e04277e756a2e2d2543d65d1e2166d6fd4c9b183f8808634fda23f17b14", size = 488722, upload-time = "2025-10-14T15:04:37.091Z" },+ { url = "https://files.pythonhosted.org/packages/49/36/506447b73eb46c120169dc1717fe2eff07c234bb3232a7200b5f5bd816e9/watchfiles-1.1.1-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:5f3f58818dc0b07f7d9aa7fe9eb1037aecb9700e63e1f6acfed13e9fef648f5d", size = 596088, upload-time = "2025-10-14T15:04:38.39Z" },+ { url = "https://files.pythonhosted.org/packages/82/ab/5f39e752a9838ec4d52e9b87c1e80f1ee3ccdbe92e183c15b6577ab9de16/watchfiles-1.1.1-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:9bb9f66367023ae783551042d31b1d7fd422e8289eedd91f26754a66f44d5cff", size = 472923, upload-time = "2025-10-14T15:04:39.666Z" },+ { url = "https://files.pythonhosted.org/packages/af/b9/a419292f05e302dea372fa7e6fda5178a92998411f8581b9830d28fb9edb/watchfiles-1.1.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:aebfd0861a83e6c3d1110b78ad54704486555246e542be3e2bb94195eabb2606", size = 456080, upload-time = "2025-10-14T15:04:40.643Z" },+ { url = "https://files.pythonhosted.org/packages/b0/c3/d5932fd62bde1a30c36e10c409dc5d54506726f08cb3e1d8d0ba5e2bc8db/watchfiles-1.1.1-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:5fac835b4ab3c6487b5dbad78c4b3724e26bcc468e886f8ba8cc4306f68f6701", size = 629432, upload-time = "2025-10-14T15:04:41.789Z" },+ { url = "https://files.pythonhosted.org/packages/f7/77/16bddd9779fafb795f1a94319dc965209c5641db5bf1edbbccace6d1b3c0/watchfiles-1.1.1-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:399600947b170270e80134ac854e21b3ccdefa11a9529a3decc1327088180f10", size = 623046, upload-time = "2025-10-14T15:04:42.718Z" },+ { url = "https://files.pythonhosted.org/packages/46/ef/f2ecb9a0f342b4bfad13a2787155c6ee7ce792140eac63a34676a2feeef2/watchfiles-1.1.1-cp311-cp311-win32.whl", hash = "sha256:de6da501c883f58ad50db3a32ad397b09ad29865b5f26f64c24d3e3281685849", size = 271473, upload-time = "2025-10-14T15:04:43.624Z" },+ { url = "https://files.pythonhosted.org/packages/94/bc/f42d71125f19731ea435c3948cad148d31a64fccde3867e5ba4edee901f9/watchfiles-1.1.1-cp311-cp311-win_amd64.whl", hash = "sha256:35c53bd62a0b885bf653ebf6b700d1bf05debb78ad9292cf2a942b23513dc4c4", size = 287598, upload-time = "2025-10-14T15:04:44.516Z" },+ { url = "https://files.pythonhosted.org/packages/57/c9/a30f897351f95bbbfb6abcadafbaca711ce1162f4db95fc908c98a9165f3/watchfiles-1.1.1-cp311-cp311-win_arm64.whl", hash = "sha256:57ca5281a8b5e27593cb7d82c2ac927ad88a96ed406aa446f6344e4328208e9e", size = 277210, upload-time = "2025-10-14T15:04:45.883Z" },+ { url = "https://files.pythonhosted.org/packages/74/d5/f039e7e3c639d9b1d09b07ea412a6806d38123f0508e5f9b48a87b0a76cc/watchfiles-1.1.1-cp312-cp312-macosx_10_12_x86_64.whl", hash = "sha256:8c89f9f2f740a6b7dcc753140dd5e1ab9215966f7a3530d0c0705c83b401bd7d", size = 404745, upload-time = "2025-10-14T15:04:46.731Z" },+ { url = "https://files.pythonhosted.org/packages/a5/96/a881a13aa1349827490dab2d363c8039527060cfcc2c92cc6d13d1b1049e/watchfiles-1.1.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:bd404be08018c37350f0d6e34676bd1e2889990117a2b90070b3007f172d0610", size = 391769, upload-time = "2025-10-14T15:04:48.003Z" },+ { url = "https://files.pythonhosted.org/packages/4b/5b/d3b460364aeb8da471c1989238ea0e56bec24b6042a68046adf3d9ddb01c/watchfiles-1.1.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8526e8f916bb5b9a0a777c8317c23ce65de259422bba5b31325a6fa6029d33af", size = 449374, upload-time = "2025-10-14T15:04:49.179Z" },+ { url = "https://files.pythonhosted.org/packages/b9/44/5769cb62d4ed055cb17417c0a109a92f007114a4e07f30812a73a4efdb11/watchfiles-1.1.1-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:2edc3553362b1c38d9f06242416a5d8e9fe235c204a4072e988ce2e5bb1f69f6", size = 459485, upload-time = "2025-10-14T15:04:50.155Z" },+ { url = "https://files.pythonhosted.org/packages/19/0c/286b6301ded2eccd4ffd0041a1b726afda999926cf720aab63adb68a1e36/watchfiles-1.1.1-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:30f7da3fb3f2844259cba4720c3fc7138eb0f7b659c38f3bfa65084c7fc7abce", size = 488813, upload-time = "2025-10-14T15:04:51.059Z" },+ { url = "https://files.pythonhosted.org/packages/c7/2b/8530ed41112dd4a22f4dcfdb5ccf6a1baad1ff6eed8dc5a5f09e7e8c41c7/watchfiles-1.1.1-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:f8979280bdafff686ba5e4d8f97840f929a87ed9cdf133cbbd42f7766774d2aa", size = 594816, upload-time = "2025-10-14T15:04:52.031Z" },+ { url = "https://files.pythonhosted.org/packages/ce/d2/f5f9fb49489f184f18470d4f99f4e862a4b3e9ac2865688eb2099e3d837a/watchfiles-1.1.1-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:dcc5c24523771db3a294c77d94771abcfcb82a0e0ee8efd910c37c59ec1b31bb", size = 475186, upload-time = "2025-10-14T15:04:53.064Z" },+ { url = "https://files.pythonhosted.org/packages/cf/68/5707da262a119fb06fbe214d82dd1fe4a6f4af32d2d14de368d0349eb52a/watchfiles-1.1.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1db5d7ae38ff20153d542460752ff397fcf5c96090c1230803713cf3147a6803", size = 456812, upload-time = "2025-10-14T15:04:55.174Z" },+ { url = "https://files.pythonhosted.org/packages/66/ab/3cbb8756323e8f9b6f9acb9ef4ec26d42b2109bce830cc1f3468df20511d/watchfiles-1.1.1-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:28475ddbde92df1874b6c5c8aaeb24ad5be47a11f87cde5a28ef3835932e3e94", size = 630196, upload-time = "2025-10-14T15:04:56.22Z" },+ { url = "https://files.pythonhosted.org/packages/78/46/7152ec29b8335f80167928944a94955015a345440f524d2dfe63fc2f437b/watchfiles-1.1.1-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:36193ed342f5b9842edd3532729a2ad55c4160ffcfa3700e0d54be496b70dd43", size = 622657, upload-time = "2025-10-14T15:04:57.521Z" },+ { url = "https://files.pythonhosted.org/packages/0a/bf/95895e78dd75efe9a7f31733607f384b42eb5feb54bd2eb6ed57cc2e94f4/watchfiles-1.1.1-cp312-cp312-win32.whl", hash = "sha256:859e43a1951717cc8de7f4c77674a6d389b106361585951d9e69572823f311d9", size = 272042, upload-time = "2025-10-14T15:04:59.046Z" },+ { url = "https://files.pythonhosted.org/packages/87/0a/90eb755f568de2688cb220171c4191df932232c20946966c27a59c400850/watchfiles-1.1.1-cp312-cp312-win_amd64.whl", hash = "sha256:91d4c9a823a8c987cce8fa2690923b069966dabb196dd8d137ea2cede885fde9", size = 288410, upload-time = "2025-10-14T15:05:00.081Z" },+ { url = "https://files.pythonhosted.org/packages/36/76/f322701530586922fbd6723c4f91ace21364924822a8772c549483abed13/watchfiles-1.1.1-cp312-cp312-win_arm64.whl", hash = "sha256:a625815d4a2bdca61953dbba5a39d60164451ef34c88d751f6c368c3ea73d404", size = 278209, upload-time = "2025-10-14T15:05:01.168Z" },+ { url = "https://files.pythonhosted.org/packages/bb/f4/f750b29225fe77139f7ae5de89d4949f5a99f934c65a1f1c0b248f26f747/watchfiles-1.1.1-cp313-cp313-macosx_10_12_x86_64.whl", hash = "sha256:130e4876309e8686a5e37dba7d5e9bc77e6ed908266996ca26572437a5271e18", size = 404321, upload-time = "2025-10-14T15:05:02.063Z" },+ { url = "https://files.pythonhosted.org/packages/2b/f9/f07a295cde762644aa4c4bb0f88921d2d141af45e735b965fb2e87858328/watchfiles-1.1.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:5f3bde70f157f84ece3765b42b4a52c6ac1a50334903c6eaf765362f6ccca88a", size = 391783, upload-time = "2025-10-14T15:05:03.052Z" },+ { url = "https://files.pythonhosted.org/packages/bc/11/fc2502457e0bea39a5c958d86d2cb69e407a4d00b85735ca724bfa6e0d1a/watchfiles-1.1.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:14e0b1fe858430fc0251737ef3824c54027bedb8c37c38114488b8e131cf8219", size = 449279, upload-time = "2025-10-14T15:05:04.004Z" },+ { url = "https://files.pythonhosted.org/packages/e3/1f/d66bc15ea0b728df3ed96a539c777acfcad0eb78555ad9efcaa1274688f0/watchfiles-1.1.1-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:f27db948078f3823a6bb3b465180db8ebecf26dd5dae6f6180bd87383b6b4428", size = 459405, upload-time = "2025-10-14T15:05:04.942Z" },+ { url = "https://files.pythonhosted.org/packages/be/90/9f4a65c0aec3ccf032703e6db02d89a157462fbb2cf20dd415128251cac0/watchfiles-1.1.1-cp313-cp313-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:059098c3a429f62fc98e8ec62b982230ef2c8df68c79e826e37b895bc359a9c0", size = 488976, upload-time = "2025-10-14T15:05:05.905Z" },+ { url = "https://files.pythonhosted.org/packages/37/57/ee347af605d867f712be7029bb94c8c071732a4b44792e3176fa3c612d39/watchfiles-1.1.1-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:bfb5862016acc9b869bb57284e6cb35fdf8e22fe59f7548858e2f971d045f150", size = 595506, upload-time = "2025-10-14T15:05:06.906Z" },+ { url = "https://files.pythonhosted.org/packages/a8/78/cc5ab0b86c122047f75e8fc471c67a04dee395daf847d3e59381996c8707/watchfiles-1.1.1-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:319b27255aacd9923b8a276bb14d21a5f7ff82564c744235fc5eae58d95422ae", size = 474936, upload-time = "2025-10-14T15:05:07.906Z" },+ { url = "https://files.pythonhosted.org/packages/62/da/def65b170a3815af7bd40a3e7010bf6ab53089ef1b75d05dd5385b87cf08/watchfiles-1.1.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c755367e51db90e75b19454b680903631d41f9e3607fbd941d296a020c2d752d", size = 456147, upload-time = "2025-10-14T15:05:09.138Z" },+ { url = "https://files.pythonhosted.org/packages/57/99/da6573ba71166e82d288d4df0839128004c67d2778d3b566c138695f5c0b/watchfiles-1.1.1-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:c22c776292a23bfc7237a98f791b9ad3144b02116ff10d820829ce62dff46d0b", size = 630007, upload-time = "2025-10-14T15:05:10.117Z" },+ { url = "https://files.pythonhosted.org/packages/a8/51/7439c4dd39511368849eb1e53279cd3454b4a4dbace80bab88feeb83c6b5/watchfiles-1.1.1-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:3a476189be23c3686bc2f4321dd501cb329c0a0469e77b7b534ee10129ae6374", size = 622280, upload-time = "2025-10-14T15:05:11.146Z" },+ { url = "https://files.pythonhosted.org/packages/95/9c/8ed97d4bba5db6fdcdb2b298d3898f2dd5c20f6b73aee04eabe56c59677e/watchfiles-1.1.1-cp313-cp313-win32.whl", hash = "sha256:bf0a91bfb5574a2f7fc223cf95eeea79abfefa404bf1ea5e339c0c1560ae99a0", size = 272056, upload-time = "2025-10-14T15:05:12.156Z" },+ { url = "https://files.pythonhosted.org/packages/1f/f3/c14e28429f744a260d8ceae18bf58c1d5fa56b50d006a7a9f80e1882cb0d/watchfiles-1.1.1-cp313-cp313-win_amd64.whl", hash = "sha256:52e06553899e11e8074503c8e716d574adeeb7e68913115c4b3653c53f9bae42", size = 288162, upload-time = "2025-10-14T15:05:13.208Z" },+ { url = "https://files.pythonhosted.org/packages/dc/61/fe0e56c40d5cd29523e398d31153218718c5786b5e636d9ae8ae79453d27/watchfiles-1.1.1-cp313-cp313-win_arm64.whl", hash = "sha256:ac3cc5759570cd02662b15fbcd9d917f7ecd47efe0d6b40474eafd246f91ea18", size = 277909, upload-time = "2025-10-14T15:05:14.49Z" },+ { url = "https://files.pythonhosted.org/packages/79/42/e0a7d749626f1e28c7108a99fb9bf524b501bbbeb9b261ceecde644d5a07/watchfiles-1.1.1-cp313-cp313t-macosx_10_12_x86_64.whl", hash = "sha256:563b116874a9a7ce6f96f87cd0b94f7faf92d08d0021e837796f0a14318ef8da", size = 403389, upload-time = "2025-10-14T15:05:15.777Z" },+ { url = "https://files.pythonhosted.org/packages/15/49/08732f90ce0fbbc13913f9f215c689cfc9ced345fb1bcd8829a50007cc8d/watchfiles-1.1.1-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:3ad9fe1dae4ab4212d8c91e80b832425e24f421703b5a42ef2e4a1e215aff051", size = 389964, upload-time = "2025-10-14T15:05:16.85Z" },+ { url = "https://files.pythonhosted.org/packages/27/0d/7c315d4bd5f2538910491a0393c56bf70d333d51bc5b34bee8e68e8cea19/watchfiles-1.1.1-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ce70f96a46b894b36eba678f153f052967a0d06d5b5a19b336ab0dbbd029f73e", size = 448114, upload-time = "2025-10-14T15:05:17.876Z" },+ { url = "https://files.pythonhosted.org/packages/c3/24/9e096de47a4d11bc4df41e9d1e61776393eac4cb6eb11b3e23315b78b2cc/watchfiles-1.1.1-cp313-cp313t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:cb467c999c2eff23a6417e58d75e5828716f42ed8289fe6b77a7e5a91036ca70", size = 460264, upload-time = "2025-10-14T15:05:18.962Z" },+ { url = "https://files.pythonhosted.org/packages/cc/0f/e8dea6375f1d3ba5fcb0b3583e2b493e77379834c74fd5a22d66d85d6540/watchfiles-1.1.1-cp313-cp313t-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:836398932192dae4146c8f6f737d74baeac8b70ce14831a239bdb1ca882fc261", size = 487877, upload-time = "2025-10-14T15:05:20.094Z" },+ { url = "https://files.pythonhosted.org/packages/ac/5b/df24cfc6424a12deb41503b64d42fbea6b8cb357ec62ca84a5a3476f654a/watchfiles-1.1.1-cp313-cp313t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:743185e7372b7bc7c389e1badcc606931a827112fbbd37f14c537320fca08620", size = 595176, upload-time = "2025-10-14T15:05:21.134Z" },+ { url = "https://files.pythonhosted.org/packages/8f/b5/853b6757f7347de4e9b37e8cc3289283fb983cba1ab4d2d7144694871d9c/watchfiles-1.1.1-cp313-cp313t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:afaeff7696e0ad9f02cbb8f56365ff4686ab205fcf9c4c5b6fdfaaa16549dd04", size = 473577, upload-time = "2025-10-14T15:05:22.306Z" },+ { url = "https://files.pythonhosted.org/packages/e1/f7/0a4467be0a56e80447c8529c9fce5b38eab4f513cb3d9bf82e7392a5696b/watchfiles-1.1.1-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:3f7eb7da0eb23aa2ba036d4f616d46906013a68caf61b7fdbe42fc8b25132e77", size = 455425, upload-time = "2025-10-14T15:05:23.348Z" },+ { url = "https://files.pythonhosted.org/packages/8e/e0/82583485ea00137ddf69bc84a2db88bd92ab4a6e3c405e5fb878ead8d0e7/watchfiles-1.1.1-cp313-cp313t-musllinux_1_1_aarch64.whl", hash = "sha256:831a62658609f0e5c64178211c942ace999517f5770fe9436be4c2faeba0c0ef", size = 628826, upload-time = "2025-10-14T15:05:24.398Z" },+ { url = "https://files.pythonhosted.org/packages/28/9a/a785356fccf9fae84c0cc90570f11702ae9571036fb25932f1242c82191c/watchfiles-1.1.1-cp313-cp313t-musllinux_1_1_x86_64.whl", hash = "sha256:f9a2ae5c91cecc9edd47e041a930490c31c3afb1f5e6d71de3dc671bfaca02bf", size = 622208, upload-time = "2025-10-14T15:05:25.45Z" },+ { url = "https://files.pythonhosted.org/packages/c3/f4/0872229324ef69b2c3edec35e84bd57a1289e7d3fe74588048ed8947a323/watchfiles-1.1.1-cp314-cp314-macosx_10_12_x86_64.whl", hash = "sha256:d1715143123baeeaeadec0528bb7441103979a1d5f6fd0e1f915383fea7ea6d5", size = 404315, upload-time = "2025-10-14T15:05:26.501Z" },+ { url = "https://files.pythonhosted.org/packages/7b/22/16d5331eaed1cb107b873f6ae1b69e9ced582fcf0c59a50cd84f403b1c32/watchfiles-1.1.1-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:39574d6370c4579d7f5d0ad940ce5b20db0e4117444e39b6d8f99db5676c52fd", size = 390869, upload-time = "2025-10-14T15:05:27.649Z" },+ { url = "https://files.pythonhosted.org/packages/b2/7e/5643bfff5acb6539b18483128fdc0ef2cccc94a5b8fbda130c823e8ed636/watchfiles-1.1.1-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:7365b92c2e69ee952902e8f70f3ba6360d0d596d9299d55d7d386df84b6941fb", size = 449919, upload-time = "2025-10-14T15:05:28.701Z" },+ { url = "https://files.pythonhosted.org/packages/51/2e/c410993ba5025a9f9357c376f48976ef0e1b1aefb73b97a5ae01a5972755/watchfiles-1.1.1-cp314-cp314-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:bfff9740c69c0e4ed32416f013f3c45e2ae42ccedd1167ef2d805c000b6c71a5", size = 460845, upload-time = "2025-10-14T15:05:30.064Z" },+ { url = "https://files.pythonhosted.org/packages/8e/a4/2df3b404469122e8680f0fcd06079317e48db58a2da2950fb45020947734/watchfiles-1.1.1-cp314-cp314-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:b27cf2eb1dda37b2089e3907d8ea92922b673c0c427886d4edc6b94d8dfe5db3", size = 489027, upload-time = "2025-10-14T15:05:31.064Z" },+ { url = "https://files.pythonhosted.org/packages/ea/84/4587ba5b1f267167ee715b7f66e6382cca6938e0a4b870adad93e44747e6/watchfiles-1.1.1-cp314-cp314-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:526e86aced14a65a5b0ec50827c745597c782ff46b571dbfe46192ab9e0b3c33", size = 595615, upload-time = "2025-10-14T15:05:32.074Z" },+ { url = "https://files.pythonhosted.org/packages/6a/0f/c6988c91d06e93cd0bb3d4a808bcf32375ca1904609835c3031799e3ecae/watchfiles-1.1.1-cp314-cp314-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:04e78dd0b6352db95507fd8cb46f39d185cf8c74e4cf1e4fbad1d3df96faf510", size = 474836, upload-time = "2025-10-14T15:05:33.209Z" },+ { url = "https://files.pythonhosted.org/packages/b4/36/ded8aebea91919485b7bbabbd14f5f359326cb5ec218cd67074d1e426d74/watchfiles-1.1.1-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5c85794a4cfa094714fb9c08d4a218375b2b95b8ed1666e8677c349906246c05", size = 455099, upload-time = "2025-10-14T15:05:34.189Z" },+ { url = "https://files.pythonhosted.org/packages/98/e0/8c9bdba88af756a2fce230dd365fab2baf927ba42cd47521ee7498fd5211/watchfiles-1.1.1-cp314-cp314-musllinux_1_1_aarch64.whl", hash = "sha256:74d5012b7630714b66be7b7b7a78855ef7ad58e8650c73afc4c076a1f480a8d6", size = 630626, upload-time = "2025-10-14T15:05:35.216Z" },+ { url = "https://files.pythonhosted.org/packages/2a/84/a95db05354bf2d19e438520d92a8ca475e578c647f78f53197f5a2f17aaf/watchfiles-1.1.1-cp314-cp314-musllinux_1_1_x86_64.whl", hash = "sha256:8fbe85cb3201c7d380d3d0b90e63d520f15d6afe217165d7f98c9c649654db81", size = 622519, upload-time = "2025-10-14T15:05:36.259Z" },+ { url = "https://files.pythonhosted.org/packages/1d/ce/d8acdc8de545de995c339be67711e474c77d643555a9bb74a9334252bd55/watchfiles-1.1.1-cp314-cp314-win32.whl", hash = "sha256:3fa0b59c92278b5a7800d3ee7733da9d096d4aabcfabb9a928918bd276ef9b9b", size = 272078, upload-time = "2025-10-14T15:05:37.63Z" },+ { url = "https://files.pythonhosted.org/packages/c4/c9/a74487f72d0451524be827e8edec251da0cc1fcf111646a511ae752e1a3d/watchfiles-1.1.1-cp314-cp314-win_amd64.whl", hash = "sha256:c2047d0b6cea13b3316bdbafbfa0c4228ae593d995030fda39089d36e64fc03a", size = 287664, upload-time = "2025-10-14T15:05:38.95Z" },+ { url = "https://files.pythonhosted.org/packages/df/b8/8ac000702cdd496cdce998c6f4ee0ca1f15977bba51bdf07d872ebdfc34c/watchfiles-1.1.1-cp314-cp314-win_arm64.whl", hash = "sha256:842178b126593addc05acf6fce960d28bc5fae7afbaa2c6c1b3a7b9460e5be02", size = 277154, upload-time = "2025-10-14T15:05:39.954Z" },+ { url = "https://files.pythonhosted.org/packages/47/a8/e3af2184707c29f0f14b1963c0aace6529f9d1b8582d5b99f31bbf42f59e/watchfiles-1.1.1-cp314-cp314t-macosx_10_12_x86_64.whl", hash = "sha256:88863fbbc1a7312972f1c511f202eb30866370ebb8493aef2812b9ff28156a21", size = 403820, upload-time = "2025-10-14T15:05:40.932Z" },+ { url = "https://files.pythonhosted.org/packages/c0/ec/e47e307c2f4bd75f9f9e8afbe3876679b18e1bcec449beca132a1c5ffb2d/watchfiles-1.1.1-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:55c7475190662e202c08c6c0f4d9e345a29367438cf8e8037f3155e10a88d5a5", size = 390510, upload-time = "2025-10-14T15:05:41.945Z" },+ { url = "https://files.pythonhosted.org/packages/d5/a0/ad235642118090f66e7b2f18fd5c42082418404a79205cdfca50b6309c13/watchfiles-1.1.1-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3f53fa183d53a1d7a8852277c92b967ae99c2d4dcee2bfacff8868e6e30b15f7", size = 448408, upload-time = "2025-10-14T15:05:43.385Z" },+ { url = "https://files.pythonhosted.org/packages/df/85/97fa10fd5ff3332ae17e7e40e20784e419e28521549780869f1413742e9d/watchfiles-1.1.1-cp314-cp314t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:6aae418a8b323732fa89721d86f39ec8f092fc2af67f4217a2b07fd3e93c6101", size = 458968, upload-time = "2025-10-14T15:05:44.404Z" },+ { url = "https://files.pythonhosted.org/packages/47/c2/9059c2e8966ea5ce678166617a7f75ecba6164375f3b288e50a40dc6d489/watchfiles-1.1.1-cp314-cp314t-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:f096076119da54a6080e8920cbdaac3dbee667eb91dcc5e5b78840b87415bd44", size = 488096, upload-time = "2025-10-14T15:05:45.398Z" },+ { url = "https://files.pythonhosted.org/packages/94/44/d90a9ec8ac309bc26db808a13e7bfc0e4e78b6fc051078a554e132e80160/watchfiles-1.1.1-cp314-cp314t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:00485f441d183717038ed2e887a7c868154f216877653121068107b227a2f64c", size = 596040, upload-time = "2025-10-14T15:05:46.502Z" },+ { url = "https://files.pythonhosted.org/packages/95/68/4e3479b20ca305cfc561db3ed207a8a1c745ee32bf24f2026a129d0ddb6e/watchfiles-1.1.1-cp314-cp314t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:a55f3e9e493158d7bfdb60a1165035f1cf7d320914e7b7ea83fe22c6023b58fc", size = 473847, upload-time = "2025-10-14T15:05:47.484Z" },+ { url = "https://files.pythonhosted.org/packages/4f/55/2af26693fd15165c4ff7857e38330e1b61ab8c37d15dc79118cdba115b7a/watchfiles-1.1.1-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8c91ed27800188c2ae96d16e3149f199d62f86c7af5f5f4d2c61a3ed8cd3666c", size = 455072, upload-time = "2025-10-14T15:05:48.928Z" },+ { url = "https://files.pythonhosted.org/packages/66/1d/d0d200b10c9311ec25d2273f8aad8c3ef7cc7ea11808022501811208a750/watchfiles-1.1.1-cp314-cp314t-musllinux_1_1_aarch64.whl", hash = "sha256:311ff15a0bae3714ffb603e6ba6dbfba4065ab60865d15a6ec544133bdb21099", size = 629104, upload-time = "2025-10-14T15:05:49.908Z" },+ { url = "https://files.pythonhosted.org/packages/e3/bd/fa9bb053192491b3867ba07d2343d9f2252e00811567d30ae8d0f78136fe/watchfiles-1.1.1-cp314-cp314t-musllinux_1_1_x86_64.whl", hash = "sha256:a916a2932da8f8ab582f242c065f5c81bed3462849ca79ee357dd9551b0e9b01", size = 622112, upload-time = "2025-10-14T15:05:50.941Z" },+ { url = "https://files.pythonhosted.org/packages/d3/8e/e500f8b0b77be4ff753ac94dc06b33d8f0d839377fee1b78e8c8d8f031bf/watchfiles-1.1.1-pp311-pypy311_pp73-macosx_10_12_x86_64.whl", hash = "sha256:db476ab59b6765134de1d4fe96a1a9c96ddf091683599be0f26147ea1b2e4b88", size = 408250, upload-time = "2025-10-14T15:06:10.264Z" },+ { url = "https://files.pythonhosted.org/packages/bd/95/615e72cd27b85b61eec764a5ca51bd94d40b5adea5ff47567d9ebc4d275a/watchfiles-1.1.1-pp311-pypy311_pp73-macosx_11_0_arm64.whl", hash = "sha256:89eef07eee5e9d1fda06e38822ad167a044153457e6fd997f8a858ab7564a336", size = 396117, upload-time = "2025-10-14T15:06:11.28Z" },+ { url = "https://files.pythonhosted.org/packages/c9/81/e7fe958ce8a7fb5c73cc9fb07f5aeaf755e6aa72498c57d760af760c91f8/watchfiles-1.1.1-pp311-pypy311_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ce19e06cbda693e9e7686358af9cd6f5d61312ab8b00488bc36f5aabbaf77e24", size = 450493, upload-time = "2025-10-14T15:06:12.321Z" },+ { url = "https://files.pythonhosted.org/packages/6e/d4/ed38dd3b1767193de971e694aa544356e63353c33a85d948166b5ff58b9e/watchfiles-1.1.1-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:3e6f39af2eab0118338902798b5aa6664f46ff66bc0280de76fca67a7f262a49", size = 457546, upload-time = "2025-10-14T15:06:13.372Z" },+]++[[package]]+name = "websockets"+version = "16.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/04/24/4b2031d72e840ce4c1ccb255f693b15c334757fc50023e4db9537080b8c4/websockets-16.0.tar.gz", hash = "sha256:5f6261a5e56e8d5c42a4497b364ea24d94d9563e8fbd44e78ac40879c60179b5", size = 179346, upload-time = "2026-01-10T09:23:47.181Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/f2/db/de907251b4ff46ae804ad0409809504153b3f30984daf82a1d84a9875830/websockets-16.0-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:31a52addea25187bde0797a97d6fc3d2f92b6f72a9370792d65a6e84615ac8a8", size = 177340, upload-time = "2026-01-10T09:22:34.539Z" },+ { url = "https://files.pythonhosted.org/packages/f3/fa/abe89019d8d8815c8781e90d697dec52523fb8ebe308bf11664e8de1877e/websockets-16.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:417b28978cdccab24f46400586d128366313e8a96312e4b9362a4af504f3bbad", size = 175022, upload-time = "2026-01-10T09:22:36.332Z" },+ { url = "https://files.pythonhosted.org/packages/58/5d/88ea17ed1ded2079358b40d31d48abe90a73c9e5819dbcde1606e991e2ad/websockets-16.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:af80d74d4edfa3cb9ed973a0a5ba2b2a549371f8a741e0800cb07becdd20f23d", size = 175319, upload-time = "2026-01-10T09:22:37.602Z" },+ { url = "https://files.pythonhosted.org/packages/d2/ae/0ee92b33087a33632f37a635e11e1d99d429d3d323329675a6022312aac2/websockets-16.0-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:08d7af67b64d29823fed316505a89b86705f2b7981c07848fb5e3ea3020c1abe", size = 184631, upload-time = "2026-01-10T09:22:38.789Z" },+ { url = "https://files.pythonhosted.org/packages/c8/c5/27178df583b6c5b31b29f526ba2da5e2f864ecc79c99dae630a85d68c304/websockets-16.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:7be95cfb0a4dae143eaed2bcba8ac23f4892d8971311f1b06f3c6b78952ee70b", size = 185870, upload-time = "2026-01-10T09:22:39.893Z" },+ { url = "https://files.pythonhosted.org/packages/87/05/536652aa84ddc1c018dbb7e2c4cbcd0db884580bf8e95aece7593fde526f/websockets-16.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:d6297ce39ce5c2e6feb13c1a996a2ded3b6832155fcfc920265c76f24c7cceb5", size = 185361, upload-time = "2026-01-10T09:22:41.016Z" },+ { url = "https://files.pythonhosted.org/packages/6d/e2/d5332c90da12b1e01f06fb1b85c50cfc489783076547415bf9f0a659ec19/websockets-16.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:1c1b30e4f497b0b354057f3467f56244c603a79c0d1dafce1d16c283c25f6e64", size = 184615, upload-time = "2026-01-10T09:22:42.442Z" },+ { url = "https://files.pythonhosted.org/packages/77/fb/d3f9576691cae9253b51555f841bc6600bf0a983a461c79500ace5a5b364/websockets-16.0-cp311-cp311-win32.whl", hash = "sha256:5f451484aeb5cafee1ccf789b1b66f535409d038c56966d6101740c1614b86c6", size = 178246, upload-time = "2026-01-10T09:22:43.654Z" },+ { url = "https://files.pythonhosted.org/packages/54/67/eaff76b3dbaf18dcddabc3b8c1dba50b483761cccff67793897945b37408/websockets-16.0-cp311-cp311-win_amd64.whl", hash = "sha256:8d7f0659570eefb578dacde98e24fb60af35350193e4f56e11190787bee77dac", size = 178684, upload-time = "2026-01-10T09:22:44.941Z" },+ { url = "https://files.pythonhosted.org/packages/84/7b/bac442e6b96c9d25092695578dda82403c77936104b5682307bd4deb1ad4/websockets-16.0-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:71c989cbf3254fbd5e84d3bff31e4da39c43f884e64f2551d14bb3c186230f00", size = 177365, upload-time = "2026-01-10T09:22:46.787Z" },+ { url = "https://files.pythonhosted.org/packages/b0/fe/136ccece61bd690d9c1f715baaeefd953bb2360134de73519d5df19d29ca/websockets-16.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:8b6e209ffee39ff1b6d0fa7bfef6de950c60dfb91b8fcead17da4ee539121a79", size = 175038, upload-time = "2026-01-10T09:22:47.999Z" },+ { url = "https://files.pythonhosted.org/packages/40/1e/9771421ac2286eaab95b8575b0cb701ae3663abf8b5e1f64f1fd90d0a673/websockets-16.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:86890e837d61574c92a97496d590968b23c2ef0aeb8a9bc9421d174cd378ae39", size = 175328, upload-time = "2026-01-10T09:22:49.809Z" },+ { url = "https://files.pythonhosted.org/packages/18/29/71729b4671f21e1eaa5d6573031ab810ad2936c8175f03f97f3ff164c802/websockets-16.0-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:9b5aca38b67492ef518a8ab76851862488a478602229112c4b0d58d63a7a4d5c", size = 184915, upload-time = "2026-01-10T09:22:51.071Z" },+ { url = "https://files.pythonhosted.org/packages/97/bb/21c36b7dbbafc85d2d480cd65df02a1dc93bf76d97147605a8e27ff9409d/websockets-16.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:e0334872c0a37b606418ac52f6ab9cfd17317ac26365f7f65e203e2d0d0d359f", size = 186152, upload-time = "2026-01-10T09:22:52.224Z" },+ { url = "https://files.pythonhosted.org/packages/4a/34/9bf8df0c0cf88fa7bfe36678dc7b02970c9a7d5e065a3099292db87b1be2/websockets-16.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:a0b31e0b424cc6b5a04b8838bbaec1688834b2383256688cf47eb97412531da1", size = 185583, upload-time = "2026-01-10T09:22:53.443Z" },+ { url = "https://files.pythonhosted.org/packages/47/88/4dd516068e1a3d6ab3c7c183288404cd424a9a02d585efbac226cb61ff2d/websockets-16.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:485c49116d0af10ac698623c513c1cc01c9446c058a4e61e3bf6c19dff7335a2", size = 184880, upload-time = "2026-01-10T09:22:55.033Z" },+ { url = "https://files.pythonhosted.org/packages/91/d6/7d4553ad4bf1c0421e1ebd4b18de5d9098383b5caa1d937b63df8d04b565/websockets-16.0-cp312-cp312-win32.whl", hash = "sha256:eaded469f5e5b7294e2bdca0ab06becb6756ea86894a47806456089298813c89", size = 178261, upload-time = "2026-01-10T09:22:56.251Z" },+ { url = "https://files.pythonhosted.org/packages/c3/f0/f3a17365441ed1c27f850a80b2bc680a0fa9505d733fe152fdf5e98c1c0b/websockets-16.0-cp312-cp312-win_amd64.whl", hash = "sha256:5569417dc80977fc8c2d43a86f78e0a5a22fee17565d78621b6bb264a115d4ea", size = 178693, upload-time = "2026-01-10T09:22:57.478Z" },+ { url = "https://files.pythonhosted.org/packages/cc/9c/baa8456050d1c1b08dd0ec7346026668cbc6f145ab4e314d707bb845bf0d/websockets-16.0-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:878b336ac47938b474c8f982ac2f7266a540adc3fa4ad74ae96fea9823a02cc9", size = 177364, upload-time = "2026-01-10T09:22:59.333Z" },+ { url = "https://files.pythonhosted.org/packages/7e/0c/8811fc53e9bcff68fe7de2bcbe75116a8d959ac699a3200f4847a8925210/websockets-16.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:52a0fec0e6c8d9a784c2c78276a48a2bdf099e4ccc2a4cad53b27718dbfd0230", size = 175039, upload-time = "2026-01-10T09:23:01.171Z" },+ { url = "https://files.pythonhosted.org/packages/aa/82/39a5f910cb99ec0b59e482971238c845af9220d3ab9fa76dd9162cda9d62/websockets-16.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:e6578ed5b6981005df1860a56e3617f14a6c307e6a71b4fff8c48fdc50f3ed2c", size = 175323, upload-time = "2026-01-10T09:23:02.341Z" },+ { url = "https://files.pythonhosted.org/packages/bd/28/0a25ee5342eb5d5f297d992a77e56892ecb65e7854c7898fb7d35e9b33bd/websockets-16.0-cp313-cp313-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:95724e638f0f9c350bb1c2b0a7ad0e83d9cc0c9259f3ea94e40d7b02a2179ae5", size = 184975, upload-time = "2026-01-10T09:23:03.756Z" },+ { url = "https://files.pythonhosted.org/packages/f9/66/27ea52741752f5107c2e41fda05e8395a682a1e11c4e592a809a90c6a506/websockets-16.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:c0204dc62a89dc9d50d682412c10b3542d748260d743500a85c13cd1ee4bde82", size = 186203, upload-time = "2026-01-10T09:23:05.01Z" },+ { url = "https://files.pythonhosted.org/packages/37/e5/8e32857371406a757816a2b471939d51c463509be73fa538216ea52b792a/websockets-16.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:52ac480f44d32970d66763115edea932f1c5b1312de36df06d6b219f6741eed8", size = 185653, upload-time = "2026-01-10T09:23:06.301Z" },+ { url = "https://files.pythonhosted.org/packages/9b/67/f926bac29882894669368dc73f4da900fcdf47955d0a0185d60103df5737/websockets-16.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:6e5a82b677f8f6f59e8dfc34ec06ca6b5b48bc4fcda346acd093694cc2c24d8f", size = 184920, upload-time = "2026-01-10T09:23:07.492Z" },+ { url = "https://files.pythonhosted.org/packages/3c/a1/3d6ccdcd125b0a42a311bcd15a7f705d688f73b2a22d8cf1c0875d35d34a/websockets-16.0-cp313-cp313-win32.whl", hash = "sha256:abf050a199613f64c886ea10f38b47770a65154dc37181bfaff70c160f45315a", size = 178255, upload-time = "2026-01-10T09:23:09.245Z" },+ { url = "https://files.pythonhosted.org/packages/6b/ae/90366304d7c2ce80f9b826096a9e9048b4bb760e44d3b873bb272cba696b/websockets-16.0-cp313-cp313-win_amd64.whl", hash = "sha256:3425ac5cf448801335d6fdc7ae1eb22072055417a96cc6b31b3861f455fbc156", size = 178689, upload-time = "2026-01-10T09:23:10.483Z" },+ { url = "https://files.pythonhosted.org/packages/f3/1d/e88022630271f5bd349ed82417136281931e558d628dd52c4d8621b4a0b2/websockets-16.0-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:8cc451a50f2aee53042ac52d2d053d08bf89bcb31ae799cb4487587661c038a0", size = 177406, upload-time = "2026-01-10T09:23:12.178Z" },+ { url = "https://files.pythonhosted.org/packages/f2/78/e63be1bf0724eeb4616efb1ae1c9044f7c3953b7957799abb5915bffd38e/websockets-16.0-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:daa3b6ff70a9241cf6c7fc9e949d41232d9d7d26fd3522b1ad2b4d62487e9904", size = 175085, upload-time = "2026-01-10T09:23:13.511Z" },+ { url = "https://files.pythonhosted.org/packages/bb/f4/d3c9220d818ee955ae390cf319a7c7a467beceb24f05ee7aaaa2414345ba/websockets-16.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:fd3cb4adb94a2a6e2b7c0d8d05cb94e6f1c81a0cf9dc2694fb65c7e8d94c42e4", size = 175328, upload-time = "2026-01-10T09:23:14.727Z" },+ { url = "https://files.pythonhosted.org/packages/63/bc/d3e208028de777087e6fb2b122051a6ff7bbcca0d6df9d9c2bf1dd869ae9/websockets-16.0-cp314-cp314-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:781caf5e8eee67f663126490c2f96f40906594cb86b408a703630f95550a8c3e", size = 185044, upload-time = "2026-01-10T09:23:15.939Z" },+ { url = "https://files.pythonhosted.org/packages/ad/6e/9a0927ac24bd33a0a9af834d89e0abc7cfd8e13bed17a86407a66773cc0e/websockets-16.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:caab51a72c51973ca21fa8a18bd8165e1a0183f1ac7066a182ff27107b71e1a4", size = 186279, upload-time = "2026-01-10T09:23:17.148Z" },+ { url = "https://files.pythonhosted.org/packages/b9/ca/bf1c68440d7a868180e11be653c85959502efd3a709323230314fda6e0b3/websockets-16.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:19c4dc84098e523fd63711e563077d39e90ec6702aff4b5d9e344a60cb3c0cb1", size = 185711, upload-time = "2026-01-10T09:23:18.372Z" },+ { url = "https://files.pythonhosted.org/packages/c4/f8/fdc34643a989561f217bb477cbc47a3a07212cbda91c0e4389c43c296ebf/websockets-16.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:a5e18a238a2b2249c9a9235466b90e96ae4795672598a58772dd806edc7ac6d3", size = 184982, upload-time = "2026-01-10T09:23:19.652Z" },+ { url = "https://files.pythonhosted.org/packages/dd/d1/574fa27e233764dbac9c52730d63fcf2823b16f0856b3329fc6268d6ae4f/websockets-16.0-cp314-cp314-win32.whl", hash = "sha256:a069d734c4a043182729edd3e9f247c3b2a4035415a9172fd0f1b71658a320a8", size = 177915, upload-time = "2026-01-10T09:23:21.458Z" },+ { url = "https://files.pythonhosted.org/packages/8a/f1/ae6b937bf3126b5134ce1f482365fde31a357c784ac51852978768b5eff4/websockets-16.0-cp314-cp314-win_amd64.whl", hash = "sha256:c0ee0e63f23914732c6d7e0cce24915c48f3f1512ec1d079ed01fc629dab269d", size = 178381, upload-time = "2026-01-10T09:23:22.715Z" },+ { url = "https://files.pythonhosted.org/packages/06/9b/f791d1db48403e1f0a27577a6beb37afae94254a8c6f08be4a23e4930bc0/websockets-16.0-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:a35539cacc3febb22b8f4d4a99cc79b104226a756aa7400adc722e83b0d03244", size = 177737, upload-time = "2026-01-10T09:23:24.523Z" },+ { url = "https://files.pythonhosted.org/packages/bd/40/53ad02341fa33b3ce489023f635367a4ac98b73570102ad2cdd770dacc9a/websockets-16.0-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:b784ca5de850f4ce93ec85d3269d24d4c82f22b7212023c974c401d4980ebc5e", size = 175268, upload-time = "2026-01-10T09:23:25.781Z" },+ { url = "https://files.pythonhosted.org/packages/74/9b/6158d4e459b984f949dcbbb0c5d270154c7618e11c01029b9bbd1bb4c4f9/websockets-16.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:569d01a4e7fba956c5ae4fc988f0d4e187900f5497ce46339c996dbf24f17641", size = 175486, upload-time = "2026-01-10T09:23:27.033Z" },+ { url = "https://files.pythonhosted.org/packages/e5/2d/7583b30208b639c8090206f95073646c2c9ffd66f44df967981a64f849ad/websockets-16.0-cp314-cp314t-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:50f23cdd8343b984957e4077839841146f67a3d31ab0d00e6b824e74c5b2f6e8", size = 185331, upload-time = "2026-01-10T09:23:28.259Z" },+ { url = "https://files.pythonhosted.org/packages/45/b0/cce3784eb519b7b5ad680d14b9673a31ab8dcb7aad8b64d81709d2430aa8/websockets-16.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:152284a83a00c59b759697b7f9e9cddf4e3c7861dd0d964b472b70f78f89e80e", size = 186501, upload-time = "2026-01-10T09:23:29.449Z" },+ { url = "https://files.pythonhosted.org/packages/19/60/b8ebe4c7e89fb5f6cdf080623c9d92789a53636950f7abacfc33fe2b3135/websockets-16.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:bc59589ab64b0022385f429b94697348a6a234e8ce22544e3681b2e9331b5944", size = 186062, upload-time = "2026-01-10T09:23:31.368Z" },+ { url = "https://files.pythonhosted.org/packages/88/a8/a080593f89b0138b6cba1b28f8df5673b5506f72879322288b031337c0b8/websockets-16.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:32da954ffa2814258030e5a57bc73a3635463238e797c7375dc8091327434206", size = 185356, upload-time = "2026-01-10T09:23:32.627Z" },+ { url = "https://files.pythonhosted.org/packages/c2/b6/b9afed2afadddaf5ebb2afa801abf4b0868f42f8539bfe4b071b5266c9fe/websockets-16.0-cp314-cp314t-win32.whl", hash = "sha256:5a4b4cc550cb665dd8a47f868c8d04c8230f857363ad3c9caf7a0c3bf8c61ca6", size = 178085, upload-time = "2026-01-10T09:23:33.816Z" },+ { url = "https://files.pythonhosted.org/packages/9f/3e/28135a24e384493fa804216b79a6a6759a38cc4ff59118787b9fb693df93/websockets-16.0-cp314-cp314t-win_amd64.whl", hash = "sha256:b14dc141ed6d2dde437cddb216004bcac6a1df0935d79656387bd41632ba0bbd", size = 178531, upload-time = "2026-01-10T09:23:35.016Z" },+ { url = "https://files.pythonhosted.org/packages/72/07/c98a68571dcf256e74f1f816b8cc5eae6eb2d3d5cfa44d37f801619d9166/websockets-16.0-pp311-pypy311_pp73-macosx_10_15_x86_64.whl", hash = "sha256:349f83cd6c9a415428ee1005cadb5c2c56f4389bc06a9af16103c3bc3dcc8b7d", size = 174947, upload-time = "2026-01-10T09:23:36.166Z" },+ { url = "https://files.pythonhosted.org/packages/7e/52/93e166a81e0305b33fe416338be92ae863563fe7bce446b0f687b9df5aea/websockets-16.0-pp311-pypy311_pp73-macosx_11_0_arm64.whl", hash = "sha256:4a1aba3340a8dca8db6eb5a7986157f52eb9e436b74813764241981ca4888f03", size = 175260, upload-time = "2026-01-10T09:23:37.409Z" },+ { url = "https://files.pythonhosted.org/packages/56/0c/2dbf513bafd24889d33de2ff0368190a0e69f37bcfa19009ef819fe4d507/websockets-16.0-pp311-pypy311_pp73-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:f4a32d1bd841d4bcbffdcb3d2ce50c09c3909fbead375ab28d0181af89fd04da", size = 176071, upload-time = "2026-01-10T09:23:39.158Z" },+ { url = "https://files.pythonhosted.org/packages/a5/8f/aea9c71cc92bf9b6cc0f7f70df8f0b420636b6c96ef4feee1e16f80f75dd/websockets-16.0-pp311-pypy311_pp73-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:0298d07ee155e2e9fda5be8a9042200dd2e3bb0b8a38482156576f863a9d457c", size = 176968, upload-time = "2026-01-10T09:23:41.031Z" },+ { url = "https://files.pythonhosted.org/packages/9a/3f/f70e03f40ffc9a30d817eef7da1be72ee4956ba8d7255c399a01b135902a/websockets-16.0-pp311-pypy311_pp73-win_amd64.whl", hash = "sha256:a653aea902e0324b52f1613332ddf50b00c06fdaf7e92624fbf8c77c78fa5767", size = 178735, upload-time = "2026-01-10T09:23:42.259Z" },+ { url = "https://files.pythonhosted.org/packages/6f/28/258ebab549c2bf3e64d2b0217b973467394a9cea8c42f70418ca2c5d0d2e/websockets-16.0-py3-none-any.whl", hash = "sha256:1637db62fad1dc833276dded54215f2c7fa46912301a24bd94d45d46a011ceec", size = 171598, upload-time = "2026-01-10T09:23:45.395Z" },+]diff --git a/jiuwenclaw/agentserver/deep_agent/interface_deep.py b/jiuwenclaw/agentserver/deep_agent/interface_deep.pyindex fb417f8201..75a227f4f0 100644--- a/jiuwenclaw/agentserver/deep_agent/interface_deep.py+++ b/jiuwenclaw/agentserver/deep_agent/interface_deep.py@@ -26,7 +26,18 @@ from openjiuwen.core.session.checkpointer import CheckpointerFactoryfrom openjiuwen.core.session.checkpointer.checkpointer import CheckpointerConfigfrom openjiuwen.core.session.checkpointer.persistence import PersistenceCheckpointerProviderfrom openjiuwen.core.single_agent import AgentCard, ReActAgentConfig-from openjiuwen.core.sys_operation import SysOperation, SysOperationCard, OperationMode, LocalWorkConfig+from openjiuwen.core.sys_operation import (+ SysOperation,+ SysOperationCard,+ OperationMode,+ LocalWorkConfig,+ SandboxGatewayConfig,+)+from openjiuwen.core.sys_operation.config import (+ SandboxIsolationConfig,+ PreDeployLauncherConfig,+ ContainerScope+)from openjiuwen.harness import (AudioModelConfig,DeepAgent,@@ -140,6 +151,7 @@ from jiuwenclaw.utils import (load_dotenv(dotenv_path=get_env_file())_react_config = get_config().get("react", {})+_sandbox_config = get_config().get("sandbox", {})_CRON_TOOL_CHANNEL_ID: ContextVar[str] = ContextVar("cron_tool_channel_id",@@ -844,10 +856,28 @@ class JiuWenClawDeepAdapter:def _create_sys_operation() -> SysOperation | None:"""Create a sys operation."""try:- sysop_card = SysOperationCard(- mode=OperationMode.LOCAL,- work_config=LocalWorkConfig(shell_allowlist=None),- )+ sandbox_url = _sandbox_config.get("url", None)+ sandbox_type = _sandbox_config.get("type", None)+ if sandbox_url and sandbox_type:+ gateway_config = SandboxGatewayConfig(+ isolation=SandboxIsolationConfig(container_scope=ContainerScope.SYSTEM),+ launcher_config=PreDeployLauncherConfig(+ base_url=sandbox_url,+ sandbox_type=sandbox_type,+ idle_ttl_seconds=600,+ ),+ timeout_seconds=30,+ )+ sysop_card = SysOperationCard(+ mode=OperationMode.SANDBOX,+ work_config=LocalWorkConfig(shell_allowlist=None),+ gateway_config=gateway_config,+ )+ else:+ sysop_card = SysOperationCard(+ mode=OperationMode.LOCAL,+ work_config=LocalWorkConfig(shell_allowlist=None),+ )result = Runner.resource_mgr.add_sys_operation(sysop_card)if result.is_err():logger.warning("[JiuWenClawDeepAdapter] add sys_operation failed: %s", result.msg())