diff --git a/AGENTS.md b/AGENTS.md index dec6130..5346a11 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -8,7 +8,7 @@ InKCre is a system of heterogeneous peers sharing one info-base. Extensions add The Extension Registry is the public control plane for extension Releases and native Distributions. Registry, Toolkit, Host SDKs, and first-party Extensions are independent release units. The Toolkit must not create reverse dependencies into the Registry service. -Registry Release, deployment `installed`, Peer `enabled`, and process/browser `running` are four distinct authorities. Conflating them produces broken lifecycle behavior. +The Registry owns releases. The info-base records deployment Extension identity, each Peer's exact distribution selection, and enablement intent. The Host reports what actually runs. ## Knowledge Owners @@ -24,11 +24,11 @@ Registry Release, deployment `installed`, Peer `enabled`, and process/browser `r ## Repository Map -- `src/inkcre_extension_registry/`: Registry contracts and Worker service (Python) -- `src/worker.py`: Cloudflare Worker entrypoint +- `src/inkcre_extension_registry/`: Registry contracts, CPython service, and command entry point +- `src/inkcre_extension_registry/migrations/`: active PostgreSQL migrations - `toolkit/`: independently released developer and delivery tooling (Python, `inkcre_extension_toolkit`) - `contracts/`: generated schemas and OpenAPI; never edit by hand -- `migrations/`: checked-in D1 schema history (append-only after deployment) +- `migrations/`: legacy D1 schema retained for import and recovery - `scripts/`: contract generation, verification, and release tooling - `runtimes/`: runtime topology for local and preview - `docs/30-unit-tdd/`: internal design @@ -39,9 +39,9 @@ Registry Release, deployment `installed`, Peer `enabled`, and process/browser `r - Default to Python. Use TypeScript only at a browser or `impl-ts` seam. - Keep manifest and protocol truth language-neutral. -- Install with `uv sync --frozen && pnpm install --frozen-lockfile`. Exact commands live in `package.json` and `pyproject.toml`. +- Follow the [pinned PDM and pnpm setup](CONTRIBUTING.md). The [local development guide](docs/40-deployment/local-development.md) owns test database and service startup. - Never hand-edit `contracts/*`; change the source model or route and run `pnpm contracts:generate`. -- Treat checked-in D1 migrations as append-only after deployment. Production resource mutation requires a separate, explicit authorization. +- Use append-only changes for deployed PostgreSQL migrations. Production resource mutation requires separate, explicit authorization. ## Governance And Workflow diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 19ad78b..4f66315 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -29,9 +29,9 @@ Do not edit `docs/_shared/**` from this repository. The repo-root `.agents/skills/edit-svc-shared-docs` wrapper points coding Agents to the canonical Hub-first edit and isolated ref-bump workflow. -`pnpm check` verifies generated contracts, formatting, lint, types, -the Registry packages, and the real Pyodide Worker build. To update an executable -contract intentionally: +`pnpm check` verifies generated contracts, formatting, lint, types, independently installable +packages, and Registry behavior with disposable PostgreSQL. Follow the [local development guide](docs/40-deployment/local-development.md) +to configure the test database. Regenerate an intentional contract change with these commands. ```bash pnpm contracts:generate @@ -42,7 +42,7 @@ Pull requests target protected `main`, preserve linear history, and include the scope, verification evidence, risk, and rollback. CI and previews may publish ephemeral evidence, but canonical packages and production deployment only come from an exact successful current-`main` revision. Do not commit credentials, -local Wrangler state, generated dependency directories, or unrelated changes. +generated dependency directories, or unrelated changes. Package release intent uses the ecosystem-native release tool: @@ -74,8 +74,7 @@ Package publication runs static and generated-contract checks, then builds its own release assets. The Registry database journey remains in repository CI; it is not a dependency of Toolkit or Runtime publication. -Registry, Toolkit publication, Runtime publication and Cloudflare production changes are separate -privileged operations. Extension publishers install the independent +Registry production deployment, Toolkit publication, and Runtime publication are separate privileged operations. Extension publishers install the independent `inkcre-extension-toolkit[cli]` distribution, prepare typed associations with `inkcre-ext prepare-release`, use PDM/Twine for wheels or `inkcre-ext upload-module-federation` for a native Remote snapshot, and publish diff --git a/README.md b/README.md index 1bfd384..f508407 100644 --- a/README.md +++ b/README.md @@ -4,9 +4,9 @@ The public control plane and native Distribution host for InKCre Extensions — `ext-reg` 是 InKCre 扩展的公共注册中心——负责扩展身份、Release 生命周期、发布者权威,以及 Python 包 / Module Federation Remote 的原生关联。 -The public Registry origin is [`https://registry.inkcre.dev`](https://registry.inkcre.dev); its root page is a read-only Extension catalog. Python consumers use the Simple Repository API; browser consumers use the producer's native `mf-manifest.json`. Deployment installation, per-Peer enablement, and running state remain outside this repository. +The public Registry at [registry.inkcre.dev](https://registry.inkcre.dev) exposes an Extension catalog and publisher tooling. Python consumers use the Simple Repository API. Browser consumers use the producer's native `mf-manifest.json`. The info-base owns deployment Extension identity and each Peer owns its exact distribution selection and enablement intent. -The service runs as a Python Cloudflare Worker with D1 metadata and private R2 bytes. +Production runs the CPython Registry service on Heroku, with Neon PostgreSQL for metadata and private R2 storage for uploaded objects. See the [production runbook](docs/40-deployment/production-registry.md). ## Quickstart @@ -15,19 +15,15 @@ The service runs as a Python Cloudflare Worker with D1 metadata and private R2 b The independent `inkcre-extension-toolkit` developer/CD distribution exposes `inkcre-ext` for inspecting native artifacts, publishing Releases, and building deterministic static preview facades: ```bash -pip install 'inkcre-extension-toolkit[cli]' +python -m pip install 'inkcre-extension-toolkit[cli] @ https://github.com/InKCre/ext-reg/releases/download/toolkit-v0.5.0/inkcre_extension_toolkit-0.5.0-py3-none-any.whl' inkcre-ext --help ``` -### Develop locally +See the [GitHub Releases](https://github.com/InKCre/ext-reg/releases) for Toolkit wheel versions. -```bash -uv sync --frozen -pnpm install --frozen-lockfile -pnpm check -``` +### Develop locally -`pnpm check` is the required local/CI gate. See [CONTRIBUTING.md](CONTRIBUTING.md) for the full workflow. +Use the [pinned PDM and pnpm setup](CONTRIBUTING.md) before running `pnpm check`. The [local development guide](docs/40-deployment/local-development.md) covers disposable PostgreSQL, migrations, and starting the service. ## Documentation diff --git a/docs/40-deployment/production-registry.md b/docs/40-deployment/production-registry.md index 99c5718..3ee3b61 100644 --- a/docs/40-deployment/production-registry.md +++ b/docs/40-deployment/production-registry.md @@ -43,7 +43,7 @@ Heroku ACM 已为 `registry.inkcre.dev` 与 `*.inkcre.dev` 分别签发公开受 1. 明确来源 D1、目标 PostgreSQL、R2 桶、Heroku app、公开路由和获准变更窗口。先验证空库迁移、快照导入及整个发布流程;保存旧 Worker 版本与现有路由配置。 2. 暂停旧入口的发布写入并等待在途请求结束。本次使用 hostname 级临时 WAF 规则,拒绝 `registry.inkcre.dev` 的非 GET / HEAD / OPTIONS 请求,并实测规则生效;旧 Worker 的 workers.dev 和版本预览入口均关闭。停止 Web、Toolkit、CI publisher 等所有写入来源;只读分发可以继续。不要在旧入口仍接收写入时进行最终导入,也不要引入临时双写。 -3. 使用 Wrangler 的 `d1 export --remote --output ` 保存最终快照。来源 ID 显式传入,不从已删除的 Worker 配置猜测。限制快照文件权限;它包含凭据哈希和私有元数据。用 SQLite 将这份受信任导出转换成临时 SQLite 文件,执行完整性与外键检查。原始 token 从不进入快照。 +3. 使用 `pnpm dlx wrangler@4.120.0 d1 export --remote --output ` 保存最终快照。来源 ID 显式传入,不从已删除的 Worker 配置猜测。限制快照文件权限;它包含凭据哈希和私有元数据。用 SQLite 将这份受信任导出转换成临时 SQLite 文件,执行完整性与外键检查。原始 token 从不进入快照。 4. 对空目标运行 `pnpm db:migrate`,然后运行 `pdm run python -m inkcre_extension_registry.import_d1 `。导入器拒绝非空目标,在同一事务中转换内部 ID 并核验每张表全部逻辑字段的规范化内容摘要;任何失败回滚全部导入。旧时间戳、空值、JSON、凭据哈希、release 状态及 R2 key 都参与比较。 5. 再运行同一命令并加 `--verify-only`。保存仅含行数和摘要的报告;抽查既有 wheel、Core Metadata、MF manifest / assets 的实际 R2 内容与公开身份。导入不移动、重写或公开 R2 对象。旧 `migrations/` 是来源 schema 历史,包内 Tortoise 迁移是新库 schema 历史。 6. 启动已验证镜像,先通过 app origin 验证只读目录、详情、私有认证和原生协议。预先完成 Heroku 域名及回源证书配置并校验证书与主机名,再移除 Worker Custom Domain、创建上述代理 CNAME。按 hostname 清除旧缓存,等待路由收敛,并验证缓存、ETag、GET / HEAD、Simple 内容协商及下载。再次导出旧 D1,确认隔离后摘要仍与导入来源相等,随后移除临时 WAF 写入暂停规则,恢复新服务的发布能力。 diff --git a/package.json b/package.json index be7aef1..d2e4b2d 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,6 @@ "@inkcre/ui-web": "github:InKCre/ui#4eceec4c60345a52a08545555ebce9ab95053beb&path:/packages/web", "prettier": "3.6.2", "sass": "1.94.2", - "typescript": "5.9.3", - "wrangler": "4.120.0" + "typescript": "5.9.3" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2cb51ea..9e9e7b2 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -32,9 +32,6 @@ importers: typescript: specifier: 5.9.3 version: 5.9.3 - wrangler: - specifier: 4.120.0 - version: 4.120.0 runtimes/web: dependencies: @@ -158,212 +155,6 @@ packages: resolution: {integrity: sha512-y7/yvZ2TPAnR9+jnc00klvNNLkJiXFFrQA/hlLCcxA9a2A4zQIOimyFQ9XfwYKiGD1fb5GY8vbKIIgO8d5Tb2A==} engines: {node: '>= 20.12.0'} - '@cloudflare/kv-asset-handler@0.5.0': - resolution: {integrity: sha512-jxQYkj8dSIzc0cD6cMMNdOc1UVjqSqu8BZdor5s8cGjW2I8BjODt/kWPVdY+u9zj3ms75Q5qaZgnxUad83+eAg==} - engines: {node: '>=22.0.0'} - - '@cloudflare/unenv-preset@2.16.1': - resolution: {integrity: sha512-ECxObrMfyTl5bhQf/lZCXwo5G6xX9IAUo+nDMKK4SZ8m4Jvvxp52vilxyySSWh2YTZz8+HQ07qGH/2rEom1vDw==} - peerDependencies: - unenv: 2.0.0-rc.24 - workerd: '>1.20260305.0 <2.0.0-0' - peerDependenciesMeta: - workerd: - optional: true - - '@cloudflare/workerd-darwin-64@1.20260801.1': - resolution: {integrity: sha512-wuJWbXpKvncJi1P0GKS+iYpN5tHdb7JPJJ/+6ZQe8zzovHHVMkLJPNBsgWpqeUhpM3g9qTwEKd2rglNKejuh5A==} - engines: {node: '>=16'} - cpu: [x64] - os: [darwin] - - '@cloudflare/workerd-darwin-arm64@1.20260801.1': - resolution: {integrity: sha512-kwoZiTpnhNrF3+APx84Q/oAqvJ3sU9yefGagwm/ASaH/2W19x0vghkW/r4qCoHCK0WW7EPugZ+aXjgPMRtlq1Q==} - engines: {node: '>=16'} - cpu: [arm64] - os: [darwin] - - '@cloudflare/workerd-linux-64@1.20260801.1': - resolution: {integrity: sha512-r0vAxCZH+Jih9Unm1yoyiByPNWNgawcKciOHDm5Q37ZVGOkKLsT9AtLe3yLSaul76WrKqtf+JP2n0WW32VBLJg==} - engines: {node: '>=16'} - cpu: [x64] - os: [linux] - - '@cloudflare/workerd-linux-arm64@1.20260801.1': - resolution: {integrity: sha512-zWgpdZtSozvIgzQNmQiDSF8yEOQJUkRAWNsDXXzAAoy+fCn8YUoSibj3mpFSbZRvbUldeBEaW6SCdC2VEMkhNQ==} - engines: {node: '>=16'} - cpu: [arm64] - os: [linux] - - '@cloudflare/workerd-windows-64@1.20260801.1': - resolution: {integrity: sha512-2oQz+Ksu4ji6e/+ZoYX+tWQEcxAii2p7l+iR8kx48W1llMalaufAsmVxTlk+3/vrM7D3/2c0iK448e0UQTcIMg==} - engines: {node: '>=16'} - cpu: [x64] - os: [win32] - - '@cspotcode/source-map-support@0.8.1': - resolution: {integrity: sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==} - engines: {node: '>=12'} - - '@emnapi/runtime@1.11.3': - resolution: {integrity: sha512-Xz4Tpyki7XyrpbUK1jR1AhdAdaXyhhY4lZ3neLodmhpuWfy2PAQN5B46sAiU4liOXGLkHypn/qU+jvfWSCYYLA==} - - '@esbuild/aix-ppc64@0.28.1': - resolution: {integrity: sha512-Svl7tq8k/08+p6CXPpRjQ1fKX+1odH/BQbb48fV6fj3CWHhsoIOoY87w1oHXm0qEpkIK3ZfVgp0hed3XBXzXMQ==} - engines: {node: '>=18'} - cpu: [ppc64] - os: [aix] - - '@esbuild/android-arm64@0.28.1': - resolution: {integrity: sha512-34EGEbCIAgosYz6goLcopX6Mo7NyGv9tfwEM2/7Ce2VcVRk568iSvniGWcUXIy7wEDR1wzolcxcriFVrWYcwBg==} - engines: {node: '>=18'} - cpu: [arm64] - os: [android] - - '@esbuild/android-arm@0.28.1': - resolution: {integrity: sha512-0k2F129Xdio1TdJfzJ8sy1Q47vUD2NnwdhiAf7drUN1EBTfPf4hsFCtmMgu/6m8JSzsBrlmVjudMBQqOfG8usQ==} - engines: {node: '>=18'} - cpu: [arm] - os: [android] - - '@esbuild/android-x64@0.28.1': - resolution: {integrity: sha512-dbwY7ltSMDWsRatcRpCnES4F+im88OCUgGZjy52shC7GqHRE/cYlxNbB4Z4UpJswpcc4Qxd2oE/ufM0p61IKng==} - engines: {node: '>=18'} - cpu: [x64] - os: [android] - - '@esbuild/darwin-arm64@0.28.1': - resolution: {integrity: sha512-TZbWkQY7kvTAXbXUT7uVACR5cMHsDiSz9z7ZKAX/RTq/WJEk3QyRr0wZpNhBDX+/0CtdqUIJlOiodQcta6tY3Q==} - engines: {node: '>=18'} - cpu: [arm64] - os: [darwin] - - '@esbuild/darwin-x64@0.28.1': - resolution: {integrity: sha512-zfdzgK9ACBNZLI/CyHTOx81SyNbM6YXn7rxSgX97VjyiPl9W1i4Ka4fgKECEoFCKGpvBj5qArWIGgQjOwkgskQ==} - engines: {node: '>=18'} - cpu: [x64] - os: [darwin] - - '@esbuild/freebsd-arm64@0.28.1': - resolution: {integrity: sha512-wG2EA8ENdEI0qhkSZMjfqrdY+ziCYCPMmtZjjIwOmXFjmyzEHn+UUxk5of+SYsjtfs3VpnlC7QLzSI5hY/rOAw==} - engines: {node: '>=18'} - cpu: [arm64] - os: [freebsd] - - '@esbuild/freebsd-x64@0.28.1': - resolution: {integrity: sha512-i7dZ9vQgnvSCzi/rYCXNgtF/U+eKZNJBzu3eTQbRgHnM7tNSizLOkRFAl3qzVc/Op/u5YkHHa4pf/3DOYHthLQ==} - engines: {node: '>=18'} - cpu: [x64] - os: [freebsd] - - '@esbuild/linux-arm64@0.28.1': - resolution: {integrity: sha512-yHs+0uc8+nvEAfAfxrWQKK5peSNzBc4PegcMO0EJ2hT71uA7vB8Ihg2e77R2P7SG5uYjPbHlLLmve4LLLRCf0g==} - engines: {node: '>=18'} - cpu: [arm64] - os: [linux] - - '@esbuild/linux-arm@0.28.1': - resolution: {integrity: sha512-qVXBOHQS+d5Y722GwJzJUtOLlX7km3CraOaGormF1pDtPd2C/l1SHRPgjLunLGe51Sh5YYWKMFDyV4SxgMQYTQ==} - engines: {node: '>=18'} - cpu: [arm] - os: [linux] - - '@esbuild/linux-ia32@0.28.1': - resolution: {integrity: sha512-d1z4ZuP0ajrfz/FhGT4vv278rX8KnPPJx8i5+AtK7TYbx9Le9F1hyzurZpkEyjkGa9dUGhQow4C1NmeGvqxN2w==} - engines: {node: '>=18'} - cpu: [ia32] - os: [linux] - - '@esbuild/linux-loong64@0.28.1': - resolution: {integrity: sha512-M5sRjUVZrkm1OAPR3dlOYzNmN+loZKGVi1VUQGrwuqLcbR6qeAz+famMhjASeH3YVKvZz+zT1jlh/keC3Rj/lg==} - engines: {node: '>=18'} - cpu: [loong64] - os: [linux] - - '@esbuild/linux-mips64el@0.28.1': - resolution: {integrity: sha512-mRObBZeHh2OxcBFPWE/FjylkRgZdYuiTR3vaTozquCGOH14iP9oN4x4Ge81CoIDYQrXmIxpFumJBu5MtZpnQJQ==} - engines: {node: '>=18'} - cpu: [mips64el] - os: [linux] - - '@esbuild/linux-ppc64@0.28.1': - resolution: {integrity: sha512-slScBsMAb3GFDcdrCgLwZtPYRoH2H/youv10QiZyRjmsP48fznoveWytSgCI/R0ZcUgpc0ZhIUEx6LHts8yrfQ==} - engines: {node: '>=18'} - cpu: [ppc64] - os: [linux] - - '@esbuild/linux-riscv64@0.28.1': - resolution: {integrity: sha512-kw0owk1o0GFETUJyW0jc0G4Yzs0BHZn0JDZ8JRT088vjJYX777BAs1fDGxAC+q831qOs2DTC96mNsG2opdfyyQ==} - engines: {node: '>=18'} - cpu: [riscv64] - os: [linux] - - '@esbuild/linux-s390x@0.28.1': - resolution: {integrity: sha512-/lAIjX8aYFRByhh6L5rYtPEDRqa9de/4V/juOXcta5frjvzXO4/sqEtyytse0g3zZFuWu5cDN0MkLz2qRDD2Ag==} - engines: {node: '>=18'} - cpu: [s390x] - os: [linux] - - '@esbuild/linux-x64@0.28.1': - resolution: {integrity: sha512-u/anNYF2mmVOEDwLtnQ1wOr3EZ9sTNGLWrsYGYwHWzGA3Si84IOkHXlbWTD1NB+9/1lcnweYKO54uhxZydNzfA==} - engines: {node: '>=18'} - cpu: [x64] - os: [linux] - - '@esbuild/netbsd-arm64@0.28.1': - resolution: {integrity: sha512-oks0DYbLwWMmaakTsCb+zL4E+aHRVLom9IJZOAthMQEPiQmydXHkziYEsGYRx0uNV/IjEKGAV941JzH02pflqw==} - engines: {node: '>=18'} - cpu: [arm64] - os: [netbsd] - - '@esbuild/netbsd-x64@0.28.1': - resolution: {integrity: sha512-aeL6lAnN89Hz43Mlh1G8ARasbuoYvSITDEx0tHh5b7jJnHcssqgjy9Yx430GDpmCa6OyrKoS0aNRjKundRizGg==} - engines: {node: '>=18'} - cpu: [x64] - os: [netbsd] - - '@esbuild/openbsd-arm64@0.28.1': - resolution: {integrity: sha512-MEFJe5C3R8pwXdZ5Y21oo6m7ePiS0d9pWucn99O/wvyJZChoIQKrQDxKrGeW8F5+T0okTHesAmDeiHDTIq0V/Q==} - engines: {node: '>=18'} - cpu: [arm64] - os: [openbsd] - - '@esbuild/openbsd-x64@0.28.1': - resolution: {integrity: sha512-i/ZLIOafE0Z8cI/XANJAixoJL/uRAoS2xOA3rb0xN+KK0K177cMAsQYkzHtBrtMXAKuAc7HGgcWiZ/sRC1Nxgw==} - engines: {node: '>=18'} - cpu: [x64] - os: [openbsd] - - '@esbuild/openharmony-arm64@0.28.1': - resolution: {integrity: sha512-ge+Z7EXFNt2BO1oAMsVpiQ8EwndV9i1xXerAeTIK7AtPs3bKFXQM7nlRxDSIUIMeueR1CNXxqztLzdNeReKBJg==} - engines: {node: '>=18'} - cpu: [arm64] - os: [openharmony] - - '@esbuild/sunos-x64@0.28.1': - resolution: {integrity: sha512-BEjgtECkL3vY+SaSQ6nzVfiALUeFxpawyp8Jmf5PtYhf1Ug40N1h/hxlhts+f1FvSvarEigdxS3BlSMI2PJLcQ==} - engines: {node: '>=18'} - cpu: [x64] - os: [sunos] - - '@esbuild/win32-arm64@0.28.1': - resolution: {integrity: sha512-lCv9eK/H6ZJWbE7bh2nw54CZ9M2nupBxJcTsdk/QQnWkdSjKGuxmmH8/GWrlT1eMmZfn4dGcCjRte397WqfQXA==} - engines: {node: '>=18'} - cpu: [arm64] - os: [win32] - - '@esbuild/win32-ia32@0.28.1': - resolution: {integrity: sha512-zvb/mB2bSCoJOpoCBgYKKpX6YM6mJBlBUVUtVj41DlZJVEB6/0CKlRYxP5wWl1C1ILiCoAU5wZZ4q1P3qeS6Eg==} - engines: {node: '>=18'} - cpu: [ia32] - os: [win32] - - '@esbuild/win32-x64@0.28.1': - resolution: {integrity: sha512-bm4Mowrv+GXMlpWX++EcXw/iLyd1o3+bJkC2DkWXYVvgZCqD/bSj9ctZeAMC3cIxgjRVR2Dufaiu4YPxr5gW1A==} - engines: {node: '>=18'} - cpu: [x64] - os: [win32] - '@hey-api/codegen-core@0.9.1': resolution: {integrity: sha512-s97jL1dgTMuiMHv2BZ1X4Tgd99Mf9GOvGdNqNcGwIMmnR+PgYNoraj4Zvp134MKsNCap/m7k0r0vKKnl56pj4w==} engines: {node: '>=22.18.0'} @@ -389,168 +180,6 @@ packages: '@hey-api/types@0.1.4': resolution: {integrity: sha512-thWfawrDIP7wSI9ioT13I5soaaqB5vAPIiZmgD8PbeEVKNrkonc0N/Sjj97ezl7oQgusZmaNphGdMKipPO6IBg==} - '@img/colour@1.1.0': - resolution: {integrity: sha512-Td76q7j57o/tLVdgS746cYARfSyxk8iEfRxewL9h4OMzYhbW4TAcppl0mT4eyqXddh6L/jwoM75mo7ixa/pCeQ==} - engines: {node: '>=18'} - - '@img/sharp-darwin-arm64@0.35.2': - resolution: {integrity: sha512-eEieHsMksAW4IiO5NzauESRl2D2qz3J/kwUxUrSfV06A93eEaRfMpHXyUb1mAqrR7i8U9A0GRqE9pjn6u1Jjpg==} - engines: {node: '>=20.9.0'} - cpu: [arm64] - os: [darwin] - - '@img/sharp-darwin-x64@0.35.2': - resolution: {integrity: sha512-BaktuGPCeHJMARpodR8jK4uKiZrPAy9WrfQW0sdI37clracq8Bp01AYS3SZgi5FS/y5twa9t4+LIuuxQjqRrWw==} - engines: {node: '>=20.9.0'} - cpu: [x64] - os: [darwin] - - '@img/sharp-freebsd-wasm32@0.35.2': - resolution: {integrity: sha512-YoAxdnd8hPUkvLHd3bWY+YA8nw3xM/RyRopYucNsWHVSan8NLVM3X2volsfoRDcXdUJPg6tXahSd7HXPK7lRnw==} - engines: {node: '>=20.9.0'} - os: [freebsd] - - '@img/sharp-libvips-darwin-arm64@1.3.1': - resolution: {integrity: sha512-4V/M3roRMTYjiwZY9IOVQOE8OyeCxFAkYmyZDrZl51uOKjibm3oeEJ4WAmLxutAfzFbC9jqUiPs2gbnGflH+7g==} - cpu: [arm64] - os: [darwin] - - '@img/sharp-libvips-darwin-x64@1.3.1': - resolution: {integrity: sha512-c0/DxItpJv2+dGhgycJBBgotdqruGYDvA79drdh0MD1dFpy7JzJ/PlXwi1H4rFf0eTy8tgbI91aHDnZIceY3jQ==} - cpu: [x64] - os: [darwin] - - '@img/sharp-libvips-linux-arm64@1.3.1': - resolution: {integrity: sha512-JznefmcK9j1JKPz8AkQDh89kjojubyfOasWBPKfzMIhPwsgDy9evpE/naJTXXXmghS1iFwR8u/kTwh/I2/+GCw==} - cpu: [arm64] - os: [linux] - libc: [glibc] - - '@img/sharp-libvips-linux-arm@1.3.1': - resolution: {integrity: sha512-aGGy9aWzXgHBG7HNyQPWorZthlp7+x6fDRoPAQbGO3ThcttuTyKIx3NuSHb6zb4gBNq6/yNn9f1cy9nFKS/Vmg==} - cpu: [arm] - os: [linux] - libc: [glibc] - - '@img/sharp-libvips-linux-ppc64@1.3.1': - resolution: {integrity: sha512-1EkwGNCZk6iWNCMWqrvdJ+r1j0PT1zIz60CNPhYnJlK/zyeWqlsPZIe+ocBVqPF8k/Ssee/NCk+tE9Ryrko6ng==} - cpu: [ppc64] - os: [linux] - libc: [glibc] - - '@img/sharp-libvips-linux-riscv64@1.3.1': - resolution: {integrity: sha512-Ilays+w2bXdnxzxtQdmXR62u8o8GYa3eL4+Gr+1KiE4xperMZUslRaVPJwwPkzlHEjGfXAfRVAa/7CYCtSqsBw==} - cpu: [riscv64] - os: [linux] - libc: [glibc] - - '@img/sharp-libvips-linux-s390x@1.3.1': - resolution: {integrity: sha512-VfBwVHQTbRoj4XlpA/KLZ7ltgMpz+4WSejFzQ+GnoImjo1PtEJ59QB2qR1xQEeRPYIkNrPIm2L4cICMvz4C2ew==} - cpu: [s390x] - os: [linux] - libc: [glibc] - - '@img/sharp-libvips-linux-x64@1.3.1': - resolution: {integrity: sha512-+c8ukgwU62DS54nCAjw7keOfHUkmr0B5QHEdcOqRnodF/MNXJbVI8Eopoj4B/0H8Asr65I+A4Amrn7a85/md6A==} - cpu: [x64] - os: [linux] - libc: [glibc] - - '@img/sharp-libvips-linuxmusl-arm64@1.3.1': - resolution: {integrity: sha512-qlKb/pwbkAi1WMsJrYHk7CuDrd12s27U2QnRhFYUoJNrRCmkosMTttuRFat/DDB3IlDm5qE1TJgZ4JDnHX8Ldw==} - cpu: [arm64] - os: [linux] - libc: [musl] - - '@img/sharp-libvips-linuxmusl-x64@1.3.1': - resolution: {integrity: sha512-yO21HwoUVLN8Qa+/SBjQLMYwBWAVJjeGPNe+hc0OUeMeifEtJqu5a1c4HayE1nNpDih9y3/KkoltfkDodmKAlg==} - cpu: [x64] - os: [linux] - libc: [musl] - - '@img/sharp-linux-arm64@0.35.2': - resolution: {integrity: sha512-af12Pnd0ZGu2HfP8NayB0kk6eC/lrfbQE6HlR4jD+34wdJ1Vw9TF6TMn6ZvffT+WgqVsl0hRbmNvz2u/23VmwA==} - engines: {node: '>=20.9.0'} - cpu: [arm64] - os: [linux] - libc: [glibc] - - '@img/sharp-linux-arm@0.35.2': - resolution: {integrity: sha512-SE4kzF2mepn6z+6E7L6lsV8FzuLL6IPQdyX8ZiwROAG/G8td+hP/m7FsFPwidtrF19gvajuC9l6TxAVcsA4S7A==} - engines: {node: '>=20.9.0'} - cpu: [arm] - os: [linux] - libc: [glibc] - - '@img/sharp-linux-ppc64@0.35.2': - resolution: {integrity: sha512-hYSBm7zcNtDCozCxQHYZJiu63b/bXsgRZuOxCIBZsStMM9Vap47iFHdbX4kCvQsblPB/k+clhELpdQJHQLSHvg==} - engines: {node: '>=20.9.0'} - cpu: [ppc64] - os: [linux] - libc: [glibc] - - '@img/sharp-linux-riscv64@0.35.2': - resolution: {integrity: sha512-qQt0Kc13+Hoan/Awq/qMSQw3L+RI1NCRPgD5cUJ/1WSSmIoysLOc72jlRM3E0OHN9Yr313jgeQ2T+zW+F03QFA==} - engines: {node: '>=20.9.0'} - cpu: [riscv64] - os: [linux] - libc: [glibc] - - '@img/sharp-linux-s390x@0.35.2': - resolution: {integrity: sha512-E4fLLfRPzDLlEeDaTzI98OFLcv++WL5ChLLMwPoVd0CIoZQqupBSNbOisPL5am9XsbQ9T84+iiMpUvbFtkunbA==} - engines: {node: '>=20.9.0'} - cpu: [s390x] - os: [linux] - libc: [glibc] - - '@img/sharp-linux-x64@0.35.2': - resolution: {integrity: sha512-gi0zFJJRLswfCZmHtJdikXPOc5u7qamSOS3NHedLqLd4W8Q0NqjdBr6TTRIgsfFjqfTsHFgdfvJ9LwqSgcHiAA==} - engines: {node: '>=20.9.0'} - cpu: [x64] - os: [linux] - libc: [glibc] - - '@img/sharp-linuxmusl-arm64@0.35.2': - resolution: {integrity: sha512-siWbOW1u6HFnFLrp0waKyW7VEf7jYvcDWdrXEFa8AkdAQgEvuu5Fz8/Y70w9EeqAdwDtfU012BhEHHaDqvQNzg==} - engines: {node: '>=20.9.0'} - cpu: [arm64] - os: [linux] - libc: [musl] - - '@img/sharp-linuxmusl-x64@0.35.2': - resolution: {integrity: sha512-YBqMMcjDi4QGYiSn4vNOYBhmlC4z5AXqkOUUqI2e0AFA4urNv4ESgOgwNl3K+4etQhha0twXlzeF20bbULm9Yg==} - engines: {node: '>=20.9.0'} - cpu: [x64] - os: [linux] - libc: [musl] - - '@img/sharp-wasm32@0.35.2': - resolution: {integrity: sha512-Mrv4JQNYVQ94xH+jzZ9r+gowleN8mv2FTgKT+PI6bx5C0G8TdNYndu161pg2i7uoBwxy2ImPMHrJOM2LZef7Bw==} - engines: {node: '>=20.9.0'} - - '@img/sharp-webcontainers-wasm32@0.35.2': - resolution: {integrity: sha512-QNV27pxs9wpApEiCfvHM1RDoP1w1+2KrUWWDPEhEwg+latvOrfuhWrHWZKwdSFwU6jh3myjw/yOCRsUIuOft3g==} - engines: {node: '>=20.9.0'} - cpu: [wasm32] - - '@img/sharp-win32-arm64@0.35.2': - resolution: {integrity: sha512-BiVRYc/t6/Vl3e1hBx0hugG4oN9Pydf4fgMSpxTQJmwGUg/YoXTWHiFeRymHfCZzifxu4F4rpk/I67D0LQ20wQ==} - engines: {node: '>=20.9.0'} - cpu: [arm64] - os: [win32] - - '@img/sharp-win32-ia32@0.35.2': - resolution: {integrity: sha512-YYEhx9PImCC7T0tI8JDMi4DB9LwLCXCU5OWNYEXAxh5Q1ShKkyC6byxzoBJ3gEFDnH2lQckWuDe70G7mB2XJog==} - engines: {node: ^20.9.0} - cpu: [ia32] - os: [win32] - - '@img/sharp-win32-x64@0.35.2': - resolution: {integrity: sha512-imoOyBcoM/iiUr4J6VPpCNjPnjvP/Gks95898yB8YqoGGYmHYbOyCuNv9FMhFgtaiHFGbHW8bxKqRV6VjtXThQ==} - engines: {node: '>=20.9.0'} - cpu: [x64] - os: [win32] - '@inkcre/core@https://github.com/InKCre/impl-ts/releases/download/core-v0.4.2/inkcre-core-0.4.2.tgz': resolution: {integrity: sha512-O+HKRHSX6LaYV85mVt/bjvWJxfDtd1nFn2P20t1rOH/+DyyJqnZrr7m1Tng6HbYJa5BO64TX8k5WO26ldT9y4g==, tarball: https://github.com/InKCre/impl-ts/releases/download/core-v0.4.2/inkcre-core-0.4.2.tgz} version: 0.4.2 @@ -582,16 +211,9 @@ packages: vue-router: optional: true - '@jridgewell/resolve-uri@3.1.2': - resolution: {integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==} - engines: {node: '>=6.0.0'} - '@jridgewell/sourcemap-codec@1.5.5': resolution: {integrity: sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==} - '@jridgewell/trace-mapping@0.3.9': - resolution: {integrity: sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==} - '@jsdevtools/ono@7.1.3': resolution: {integrity: sha512-4JQNk+3mVzK3xh2rqd6RB4J46qUR19azEHBneZyTZM+c456qOrbbM/5xcR8huNCCcbVt7+UmizG6GuUvPvKUYg==} @@ -828,15 +450,6 @@ packages: resolution: {integrity: sha512-pOr5+q1fLYKwFN3LAJuGZEnfXDcQ73zqgDHMtGy+K+uIoUqyY+6MeDCWFwfu+4EFuq76I5EPFofoNAI+Bmmq4A==} engines: {node: '>=22.13'} - '@poppinss/colors@4.1.6': - resolution: {integrity: sha512-H9xkIdFswbS8n1d6vmRd8+c10t2Qe+rZITbbDHHkQixH5+2x1FDGmi/0K+WgWiqQFKPSlIYB7jlH6Kpfn6Fleg==} - - '@poppinss/dumper@0.6.5': - resolution: {integrity: sha512-NBdYIb90J7LfOI32dOewKI1r7wnkiH6m920puQ3qHUeZkxNkQiFnXVWoE6YtFSv6QOiPPf7ys6i+HWWecDz7sw==} - - '@poppinss/exception@1.2.3': - resolution: {integrity: sha512-dCED+QRChTVatE9ibtoaxc+WkdzOSjYTKi/+uacHWIsfodVfpsueo3+DKpgU5Px8qXjgmXkSvhXvSCz3fnP9lw==} - '@quansync/fs@1.0.0': resolution: {integrity: sha512-4TJ3DFtlf1L5LDMaM6CanJ/0lckGNtJcMjQ1NAV6zDmA0tEHKZtxNKin8EgPaVX1YzljbxckyT2tJrpQKAtngQ==} @@ -939,13 +552,6 @@ packages: '@rolldown/pluginutils@1.0.1': resolution: {integrity: sha512-2j9bGt5Jh8hj+vPtgzPtl72j0yRxHAyumoo6TNfAjsLB04UtpSvPbPcDcBMxz7n+9CYB0c1GxQFxYRg2jimqGw==} - '@sindresorhus/is@7.2.0': - resolution: {integrity: sha512-P1Cz1dWaFfR4IR+U13mqqiGsLFf1KbayybWwdd2vfctdV6hDpUkgCY0nKOLLTMSoRd/jJNjtbqzf13K8DCCXQw==} - engines: {node: '>=18'} - - '@speed-highlight/core@1.2.23': - resolution: {integrity: sha512-iRoq6i6JDJP6Mt2A5JaPvzw0pgYHH6k92ij+yXiTrB7T2y9N789aWE3EHWj/5ztlJBokcCBja3iYLVdu5wgnkg==} - '@supabase/postgrest-js@2.116.0': resolution: {integrity: sha512-kGpVZTDHxFTJS3tu+rU0iTAZ+4U0bcLVjxwCk8f3gRhjw3qdCZjTBlgYvc4kGH2XccmAzbkKwXL/mrNHMGSc+A==} engines: {node: '>=22.0.0'} @@ -1186,9 +792,6 @@ packages: birpc@2.9.0: resolution: {integrity: sha512-KrayHS5pBi69Xi9JmvoqrIgYGDkD6mcSe/i6YKi3w5kekCLzrX4+nawcXqrj2tIp50Kw/mT/s3p+GVK0A0sKxw==} - blake3-wasm@2.1.5: - resolution: {integrity: sha512-F1+K8EbfOZE49dtoPtmxUQrpXaBIl3ICvasLh+nJta0xkz+9kF/7uet9fLnwKqhDrmj6g+6K3Tw9yQPUg2ka5g==} - bundle-name@4.1.0: resolution: {integrity: sha512-tjwM5exMg6BGRI+kNmTntNsvdZS1X8BFYS6tnJ2hdH0kVxM6/eVZ2xy+FqStSWvYmtfFMDLIxurorHwDKfDz5Q==} engines: {node: '>=18'} @@ -1224,10 +827,6 @@ packages: confbox@0.2.4: resolution: {integrity: sha512-ysOGlgTFbN2/Y6Cg3Iye8YKulHw+R2fNXHrgSmXISQdMnomY6eNDprVdW9R5xBguEqI954+S6709UyiO7B+6OQ==} - cookie@1.1.1: - resolution: {integrity: sha512-ei8Aos7ja0weRpFzJnEA9UHJ/7XQmqglbRwnf2ATjcB9Wq874VKH9kfjjirM6UhU2/E5fFYadylyhFldcqSidQ==} - engines: {node: '>=18'} - copy-anything@4.1.1: resolution: {integrity: sha512-AoT6Imdr98feSpFfmFwTFN73ccdr7uFPf27cBCgYvyyRyn1BzLRxMvrHNmwXO5LJMddRy4Rdhw2b1h7vSMKsEw==} engines: {node: '>=18'} @@ -1285,14 +884,6 @@ packages: resolution: {integrity: sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==} engines: {node: '>=0.12'} - error-stack-parser-es@1.0.5: - resolution: {integrity: sha512-5qucVt2XcuGMcEGgWI7i+yZpmpByQ8J1lHhcL7PwqCwu9FPP3VUXzT4ltHe5i2z9dePwEHcDVOAfSnHsOlCXRA==} - - esbuild@0.28.1: - resolution: {integrity: sha512-HrJrvZv5ayxBzPfwphOoNzkzOIIlifzk0KJrGK2c8R4+LKpMtpYLQeUdjnwjWv/LZlkH2laZk+4w78pi99D4Vw==} - engines: {node: '>=18'} - hasBin: true - estree-walker@2.0.2: resolution: {integrity: sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==} @@ -1317,11 +908,6 @@ packages: picomatch: optional: true - fsevents@2.3.3: - resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} - engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} - os: [darwin] - get-tsconfig@4.14.0: resolution: {integrity: sha512-yTb+8DXzDREzgvYmh6s9vHsSVCHeC0G3PI5bEXNBHtmshPnO+S5O7qgLEOn0I5QvMy6kpZN8K1NKGyilLb93wA==} @@ -1399,20 +985,12 @@ packages: jsonc-parser@3.3.1: resolution: {integrity: sha512-HUgH65KyejrUFPvHFPbqOY0rsFip3Bo5wb4ngvdi1EpCYWUQDC5V+Y7mZws+DLkr4M//zQJoanu1SP+87Dv1oQ==} - kleur@4.1.5: - resolution: {integrity: sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==} - engines: {node: '>=6'} - launch-editor@2.14.1: resolution: {integrity: sha512-QWBrQsMpH7gPr965dsKD/3cKWiNoTjpATQf++Xq63N6sKRGMwlVXz41O1IZTMfZQgBctD/K5Zt06+/I6pP6+HA==} magic-string@0.30.21: resolution: {integrity: sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==} - miniflare@5.20260801.1-alpha: - resolution: {integrity: sha512-BHPVzIDA6mbx7LefxpvkXW7DHx9FKB9GorZatbnrrFTt3CVMU8zuUpbgyCuebwDKcTTOZos43ta8GQ0eMVEpxA==} - engines: {node: '>=22.0.0'} - mitt@3.0.1: resolution: {integrity: sha512-vKivATfr97l2/QBCYAkXYDbrIWPM2IIKEl7YPhjCvKlG3kE2gm+uBo6nEXK3M5/Ffh/FLpKExzOQ3JJoJGFKBw==} @@ -1442,9 +1020,6 @@ packages: resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==} engines: {node: '>=8'} - path-to-regexp@6.3.0: - resolution: {integrity: sha512-Yhpw4T9C6hPpgPeA28us07OJeqZ5EzQTkbfwuhsUg0c237RomFoETJgmp2sa3F/41gfLE6G5cqcYwznmeEeOlQ==} - pathe@2.0.3: resolution: {integrity: sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==} @@ -1549,10 +1124,6 @@ packages: engines: {node: '>=10'} hasBin: true - sharp@0.35.2: - resolution: {integrity: sha512-FVtFjtBCMiJS6yb5CX7Sop45WFMpeGw6oRKuJnXYgf/f1ms/D7LE/ZUSNxnW7rZ/dbslQWYkoqFHGPaDBtaK4w==} - engines: {node: '>=20.9.0'} - shebang-command@2.0.0: resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==} engines: {node: '>=8'} @@ -1580,10 +1151,6 @@ packages: resolution: {integrity: sha512-H+ue8Zo4vJmV2nRjpx86P35lzwDT3nItnIsocgumgr0hHMQ+ZGq5vrERg9kJBo5AWGmxZDhzDo+WVIJqkB0cGA==} engines: {node: '>=16'} - supports-color@10.2.2: - resolution: {integrity: sha512-SS+jx45GF1QjgEXQx4NJZV9ImqmO2NPz5FNsIHrsDjh2YsHnawpan7SNQ1o8NuhrbHZy9AZhIoCUiCeaW/C80g==} - engines: {node: '>=18'} - tinyexec@1.3.0: resolution: {integrity: sha512-QKAl9m8gWWGHV8jZcPeym6j+XULi6tOf1mT83WYJ4Lk2ytW/uwAWkrP0uFsdoYMdueVJ0qs26wZ+23xeB4ibNQ==} engines: {node: '>=18'} @@ -1645,13 +1212,6 @@ packages: unconfig-core@7.5.0: resolution: {integrity: sha512-Su3FauozOGP44ZmKdHy2oE6LPjk51M/TRRjHv2HNCWiDvfvCoxC2lno6jevMA91MYAdCdwP05QnWdWpSbncX/w==} - undici@7.29.0: - resolution: {integrity: sha512-IDxfleLmmbSskfWSUATiN1nfn2rDuvnMOqb5CWR92iIfojA0Ud+ulOAAEQ57LPr9rWmsreUyf5lwyao+7GNNVw==} - engines: {node: '>=20.18.1'} - - unenv@2.0.0-rc.24: - resolution: {integrity: sha512-i7qRCmY42zmCwnYlh9H2SvLEypEFGye5iRmEMKjcGi7zk9UquigRjFtTLz0TYqr0ZGLZhaMHl/foy1bZR+Cwlw==} - verkit@0.1.2: resolution: {integrity: sha512-WqkT8n3hqizuCu71W3bUzf5fjBmkbXcudsehe/NbxA8PgqoKnSOY5K0Ba2ckg1qaRaSpSz7as/n9K1R9JXjQKg==} engines: {node: '>=18.12.0'} @@ -1669,33 +1229,6 @@ packages: engines: {node: '>= 8'} hasBin: true - workerd@1.20260801.1: - resolution: {integrity: sha512-/g9JGTyqnHtoIscpBHqKD8swE2V4StBs2i69PmLiOhH45OP95jCFICl4F1hKlgN57rqfni5LiCitttoX5OOkVA==} - engines: {node: '>=16'} - hasBin: true - - wrangler@4.120.0: - resolution: {integrity: sha512-cBmu/MeaB/fPacC0JpATs4duTOCagBxrZo+vBzuTX06tLzwSyAHE1drlHUZ8rP0VqVz1fy3ReGYTiHdKkoHltg==} - engines: {node: '>=22.0.0'} - hasBin: true - peerDependencies: - '@cloudflare/workers-types': ^5.20260801.1 - peerDependenciesMeta: - '@cloudflare/workers-types': - optional: true - - ws@8.21.0: - resolution: {integrity: sha512-Vsp28b7DRcimFQvrqu2Wek3z1iYxDCWqHYB8Qsnk/S4RfaCQzPGPyBNuVjJV3cd6UiKtUtp6sNM77gWvzcCH+g==} - engines: {node: '>=10.0.0'} - peerDependencies: - bufferutil: ^4.0.1 - utf-8-validate: '>=5.0.2' - peerDependenciesMeta: - bufferutil: - optional: true - utf-8-validate: - optional: true - wsl-utils@0.3.1: resolution: {integrity: sha512-g/eziiSUNBSsdDJtCLB8bdYEUMj4jR7AGeUo96p/3dTafgjHhpF4RiCFPiRILwjQoDXx5MqkBr4fwWtR3Ky4Wg==} engines: {node: '>=20'} @@ -1705,12 +1238,6 @@ packages: engines: {node: '>= 14.6'} hasBin: true - youch-core@0.3.3: - resolution: {integrity: sha512-ho7XuGjLaJ2hWHoK8yFnsUGy2Y5uDpqSTq1FkHLK4/oqKtyUU1AFbOOxY4IpC9f0fTLjwYbslUz0Po5BpD1wrA==} - - youch@4.1.0-beta.10: - resolution: {integrity: sha512-rLfVLB4FgQneDr0dv1oddCVZmKjcJ6yX6mS4pU82Mq/Dt9a3cLZQ62pDBL4AUO+uVrCvtWz3ZFUL2HFAFJ/BXQ==} - yuku-ast@0.8.7: resolution: {integrity: sha512-h6+4bDfyootiMB9vckk5uKo5r5j0GHrkr17FQTDNfEsFT3DWlN9uu1HJwQwc64pgmLCI945fWM3lbTIqxjT3GQ==} @@ -1878,116 +1405,6 @@ snapshots: fast-wrap-ansi: 0.2.2 sisteransi: 1.0.5 - '@cloudflare/kv-asset-handler@0.5.0': {} - - '@cloudflare/unenv-preset@2.16.1(unenv@2.0.0-rc.24)(workerd@1.20260801.1)': - dependencies: - unenv: 2.0.0-rc.24 - optionalDependencies: - workerd: 1.20260801.1 - - '@cloudflare/workerd-darwin-64@1.20260801.1': - optional: true - - '@cloudflare/workerd-darwin-arm64@1.20260801.1': - optional: true - - '@cloudflare/workerd-linux-64@1.20260801.1': - optional: true - - '@cloudflare/workerd-linux-arm64@1.20260801.1': - optional: true - - '@cloudflare/workerd-windows-64@1.20260801.1': - optional: true - - '@cspotcode/source-map-support@0.8.1': - dependencies: - '@jridgewell/trace-mapping': 0.3.9 - - '@emnapi/runtime@1.11.3': - dependencies: - tslib: 2.8.1 - optional: true - - '@esbuild/aix-ppc64@0.28.1': - optional: true - - '@esbuild/android-arm64@0.28.1': - optional: true - - '@esbuild/android-arm@0.28.1': - optional: true - - '@esbuild/android-x64@0.28.1': - optional: true - - '@esbuild/darwin-arm64@0.28.1': - optional: true - - '@esbuild/darwin-x64@0.28.1': - optional: true - - '@esbuild/freebsd-arm64@0.28.1': - optional: true - - '@esbuild/freebsd-x64@0.28.1': - optional: true - - '@esbuild/linux-arm64@0.28.1': - optional: true - - '@esbuild/linux-arm@0.28.1': - optional: true - - '@esbuild/linux-ia32@0.28.1': - optional: true - - '@esbuild/linux-loong64@0.28.1': - optional: true - - '@esbuild/linux-mips64el@0.28.1': - optional: true - - '@esbuild/linux-ppc64@0.28.1': - optional: true - - '@esbuild/linux-riscv64@0.28.1': - optional: true - - '@esbuild/linux-s390x@0.28.1': - optional: true - - '@esbuild/linux-x64@0.28.1': - optional: true - - '@esbuild/netbsd-arm64@0.28.1': - optional: true - - '@esbuild/netbsd-x64@0.28.1': - optional: true - - '@esbuild/openbsd-arm64@0.28.1': - optional: true - - '@esbuild/openbsd-x64@0.28.1': - optional: true - - '@esbuild/openharmony-arm64@0.28.1': - optional: true - - '@esbuild/sunos-x64@0.28.1': - optional: true - - '@esbuild/win32-arm64@0.28.1': - optional: true - - '@esbuild/win32-ia32@0.28.1': - optional: true - - '@esbuild/win32-x64@0.28.1': - optional: true - '@hey-api/codegen-core@0.9.1': dependencies: '@hey-api/types': 0.1.4 @@ -2038,112 +1455,6 @@ snapshots: '@hey-api/types@0.1.4': {} - '@img/colour@1.1.0': {} - - '@img/sharp-darwin-arm64@0.35.2': - optionalDependencies: - '@img/sharp-libvips-darwin-arm64': 1.3.1 - optional: true - - '@img/sharp-darwin-x64@0.35.2': - optionalDependencies: - '@img/sharp-libvips-darwin-x64': 1.3.1 - optional: true - - '@img/sharp-freebsd-wasm32@0.35.2': - dependencies: - '@img/sharp-wasm32': 0.35.2 - optional: true - - '@img/sharp-libvips-darwin-arm64@1.3.1': - optional: true - - '@img/sharp-libvips-darwin-x64@1.3.1': - optional: true - - '@img/sharp-libvips-linux-arm64@1.3.1': - optional: true - - '@img/sharp-libvips-linux-arm@1.3.1': - optional: true - - '@img/sharp-libvips-linux-ppc64@1.3.1': - optional: true - - '@img/sharp-libvips-linux-riscv64@1.3.1': - optional: true - - '@img/sharp-libvips-linux-s390x@1.3.1': - optional: true - - '@img/sharp-libvips-linux-x64@1.3.1': - optional: true - - '@img/sharp-libvips-linuxmusl-arm64@1.3.1': - optional: true - - '@img/sharp-libvips-linuxmusl-x64@1.3.1': - optional: true - - '@img/sharp-linux-arm64@0.35.2': - optionalDependencies: - '@img/sharp-libvips-linux-arm64': 1.3.1 - optional: true - - '@img/sharp-linux-arm@0.35.2': - optionalDependencies: - '@img/sharp-libvips-linux-arm': 1.3.1 - optional: true - - '@img/sharp-linux-ppc64@0.35.2': - optionalDependencies: - '@img/sharp-libvips-linux-ppc64': 1.3.1 - optional: true - - '@img/sharp-linux-riscv64@0.35.2': - optionalDependencies: - '@img/sharp-libvips-linux-riscv64': 1.3.1 - optional: true - - '@img/sharp-linux-s390x@0.35.2': - optionalDependencies: - '@img/sharp-libvips-linux-s390x': 1.3.1 - optional: true - - '@img/sharp-linux-x64@0.35.2': - optionalDependencies: - '@img/sharp-libvips-linux-x64': 1.3.1 - optional: true - - '@img/sharp-linuxmusl-arm64@0.35.2': - optionalDependencies: - '@img/sharp-libvips-linuxmusl-arm64': 1.3.1 - optional: true - - '@img/sharp-linuxmusl-x64@0.35.2': - optionalDependencies: - '@img/sharp-libvips-linuxmusl-x64': 1.3.1 - optional: true - - '@img/sharp-wasm32@0.35.2': - dependencies: - '@emnapi/runtime': 1.11.3 - optional: true - - '@img/sharp-webcontainers-wasm32@0.35.2': - dependencies: - '@img/sharp-wasm32': 0.35.2 - optional: true - - '@img/sharp-win32-arm64@0.35.2': - optional: true - - '@img/sharp-win32-ia32@0.35.2': - optional: true - - '@img/sharp-win32-x64@0.35.2': - optional: true - '@inkcre/core@https://github.com/InKCre/impl-ts/releases/download/core-v0.4.2/inkcre-core-0.4.2.tgz(@vueuse/core@14.1.0(vue@3.5.18(typescript@5.9.3)))(dotenv@17.4.2)(pinia@3.0.3(typescript@5.9.3)(vue@3.5.18(typescript@5.9.3)))(vue@3.5.18(typescript@5.9.3))(yaml@2.9.0)': dependencies: '@opentelemetry/api': 1.9.1 @@ -2178,15 +1489,8 @@ snapshots: dayjs: 1.11.23 vue: 3.5.18(typescript@5.9.3) - '@jridgewell/resolve-uri@3.1.2': {} - '@jridgewell/sourcemap-codec@1.5.5': {} - '@jridgewell/trace-mapping@0.3.9': - dependencies: - '@jridgewell/resolve-uri': 3.1.2 - '@jridgewell/sourcemap-codec': 1.5.5 - '@jsdevtools/ono@7.1.3': {} '@lukeed/ms@2.0.2': {} @@ -2406,18 +1710,6 @@ snapshots: '@pnpm/deps.graph-sequencer@1100.0.1': {} - '@poppinss/colors@4.1.6': - dependencies: - kleur: 4.1.5 - - '@poppinss/dumper@0.6.5': - dependencies: - '@poppinss/colors': 4.1.6 - '@sindresorhus/is': 7.2.0 - supports-color: 10.2.2 - - '@poppinss/exception@1.2.3': {} - '@quansync/fs@1.0.0': dependencies: quansync: 1.0.0 @@ -2469,10 +1761,6 @@ snapshots: '@rolldown/pluginutils@1.0.1': {} - '@sindresorhus/is@7.2.0': {} - - '@speed-highlight/core@1.2.23': {} - '@supabase/postgrest-js@2.116.0': dependencies: tslib: 2.8.1 @@ -2652,8 +1940,6 @@ snapshots: birpc@2.9.0: {} - blake3-wasm@2.1.5: {} - bundle-name@4.1.0: dependencies: run-applescript: 7.1.0 @@ -2689,8 +1975,6 @@ snapshots: confbox@0.2.4: {} - cookie@1.1.1: {} - copy-anything@4.1.1: {} cross-spawn@7.0.6: @@ -2716,7 +2000,8 @@ snapshots: destr@2.0.5: {} - detect-libc@2.1.2: {} + detect-libc@2.1.2: + optional: true dotenv@17.4.2: {} @@ -2726,37 +2011,6 @@ snapshots: entities@4.5.0: {} - error-stack-parser-es@1.0.5: {} - - esbuild@0.28.1: - optionalDependencies: - '@esbuild/aix-ppc64': 0.28.1 - '@esbuild/android-arm': 0.28.1 - '@esbuild/android-arm64': 0.28.1 - '@esbuild/android-x64': 0.28.1 - '@esbuild/darwin-arm64': 0.28.1 - '@esbuild/darwin-x64': 0.28.1 - '@esbuild/freebsd-arm64': 0.28.1 - '@esbuild/freebsd-x64': 0.28.1 - '@esbuild/linux-arm': 0.28.1 - '@esbuild/linux-arm64': 0.28.1 - '@esbuild/linux-ia32': 0.28.1 - '@esbuild/linux-loong64': 0.28.1 - '@esbuild/linux-mips64el': 0.28.1 - '@esbuild/linux-ppc64': 0.28.1 - '@esbuild/linux-riscv64': 0.28.1 - '@esbuild/linux-s390x': 0.28.1 - '@esbuild/linux-x64': 0.28.1 - '@esbuild/netbsd-arm64': 0.28.1 - '@esbuild/netbsd-x64': 0.28.1 - '@esbuild/openbsd-arm64': 0.28.1 - '@esbuild/openbsd-x64': 0.28.1 - '@esbuild/openharmony-arm64': 0.28.1 - '@esbuild/sunos-x64': 0.28.1 - '@esbuild/win32-arm64': 0.28.1 - '@esbuild/win32-ia32': 0.28.1 - '@esbuild/win32-x64': 0.28.1 - estree-walker@2.0.2: {} exsolve@1.1.1: {} @@ -2775,9 +2029,6 @@ snapshots: optionalDependencies: picomatch: 4.0.5 - fsevents@2.3.3: - optional: true - get-tsconfig@4.14.0: dependencies: resolve-pkg-maps: 1.0.0 @@ -2834,8 +2085,6 @@ snapshots: jsonc-parser@3.3.1: {} - kleur@4.1.5: {} - launch-editor@2.14.1: dependencies: picocolors: 1.1.1 @@ -2845,18 +2094,6 @@ snapshots: dependencies: '@jridgewell/sourcemap-codec': 1.5.5 - miniflare@5.20260801.1-alpha: - dependencies: - '@cspotcode/source-map-support': 0.8.1 - sharp: 0.35.2 - undici: 7.29.0 - workerd: 1.20260801.1 - ws: 8.21.0 - youch: 4.1.0-beta.10 - transitivePeerDependencies: - - bufferutil - - utf-8-validate - mitt@3.0.1: {} nanoid@3.3.19: {} @@ -2881,8 +2118,6 @@ snapshots: path-key@3.1.1: {} - path-to-regexp@6.3.0: {} - pathe@2.0.3: {} perfect-debounce@1.0.0: {} @@ -2980,38 +2215,6 @@ snapshots: semver@7.8.5: {} - sharp@0.35.2: - dependencies: - '@img/colour': 1.1.0 - detect-libc: 2.1.2 - semver: 7.8.5 - optionalDependencies: - '@img/sharp-darwin-arm64': 0.35.2 - '@img/sharp-darwin-x64': 0.35.2 - '@img/sharp-freebsd-wasm32': 0.35.2 - '@img/sharp-libvips-darwin-arm64': 1.3.1 - '@img/sharp-libvips-darwin-x64': 1.3.1 - '@img/sharp-libvips-linux-arm': 1.3.1 - '@img/sharp-libvips-linux-arm64': 1.3.1 - '@img/sharp-libvips-linux-ppc64': 1.3.1 - '@img/sharp-libvips-linux-riscv64': 1.3.1 - '@img/sharp-libvips-linux-s390x': 1.3.1 - '@img/sharp-libvips-linux-x64': 1.3.1 - '@img/sharp-libvips-linuxmusl-arm64': 1.3.1 - '@img/sharp-libvips-linuxmusl-x64': 1.3.1 - '@img/sharp-linux-arm': 0.35.2 - '@img/sharp-linux-arm64': 0.35.2 - '@img/sharp-linux-ppc64': 0.35.2 - '@img/sharp-linux-riscv64': 0.35.2 - '@img/sharp-linux-s390x': 0.35.2 - '@img/sharp-linux-x64': 0.35.2 - '@img/sharp-linuxmusl-arm64': 0.35.2 - '@img/sharp-linuxmusl-x64': 0.35.2 - '@img/sharp-webcontainers-wasm32': 0.35.2 - '@img/sharp-win32-arm64': 0.35.2 - '@img/sharp-win32-ia32': 0.35.2 - '@img/sharp-win32-x64': 0.35.2 - shebang-command@2.0.0: dependencies: shebang-regex: 3.0.0 @@ -3030,8 +2233,6 @@ snapshots: dependencies: copy-anything: 4.1.1 - supports-color@10.2.2: {} - tinyexec@1.3.0: {} tinyglobby@0.2.17: @@ -3077,12 +2278,6 @@ snapshots: '@quansync/fs': 1.0.0 quansync: 1.0.0 - undici@7.29.0: {} - - unenv@2.0.0-rc.24: - dependencies: - pathe: 2.0.3 - verkit@0.1.2: {} vue@3.5.18(typescript@5.9.3): @@ -3099,32 +2294,6 @@ snapshots: dependencies: isexe: 2.0.0 - workerd@1.20260801.1: - optionalDependencies: - '@cloudflare/workerd-darwin-64': 1.20260801.1 - '@cloudflare/workerd-darwin-arm64': 1.20260801.1 - '@cloudflare/workerd-linux-64': 1.20260801.1 - '@cloudflare/workerd-linux-arm64': 1.20260801.1 - '@cloudflare/workerd-windows-64': 1.20260801.1 - - wrangler@4.120.0: - dependencies: - '@cloudflare/kv-asset-handler': 0.5.0 - '@cloudflare/unenv-preset': 2.16.1(unenv@2.0.0-rc.24)(workerd@1.20260801.1) - blake3-wasm: 2.1.5 - esbuild: 0.28.1 - miniflare: 5.20260801.1-alpha - path-to-regexp: 6.3.0 - unenv: 2.0.0-rc.24 - workerd: 1.20260801.1 - optionalDependencies: - fsevents: 2.3.3 - transitivePeerDependencies: - - bufferutil - - utf-8-validate - - ws@8.21.0: {} - wsl-utils@0.3.1: dependencies: is-wsl: 3.1.1 @@ -3132,19 +2301,6 @@ snapshots: yaml@2.9.0: {} - youch-core@0.3.3: - dependencies: - '@poppinss/exception': 1.2.3 - error-stack-parser-es: 1.0.5 - - youch@4.1.0-beta.10: - dependencies: - '@poppinss/colors': 4.1.6 - '@poppinss/dumper': 0.6.5 - '@speed-highlight/core': 1.2.23 - cookie: 1.1.1 - youch-core: 0.3.3 - yuku-ast@0.8.7: dependencies: '@yuku-toolchain/types': 0.8.7 diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index a278f82..7b7c045 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -6,7 +6,6 @@ autoInstallPeers: false allowBuilds: '@parcel/watcher': false esbuild: true - workerd: true overrides: js-yaml@4.2.0: 4.3.1 diff --git a/tasks/async-runtime-persistence/packet.md b/tasks/async-runtime-persistence/packet.md deleted file mode 100644 index 84fc2fd..0000000 --- a/tasks/async-runtime-persistence/packet.md +++ /dev/null @@ -1,73 +0,0 @@ -# Core 数据库迁移所需的 Runtime SDK 异步能力 - -## 父任务与授权 - -本 packet 仅拥有 ext-reg 的上游 SDK 实现 slice。唯一线性计划由 core-py 的 -`tasks/async-database-boundaries/plan.md` 拥有;不得在此建立另一条全量迁移计划。 -Sir 已授权修改 ext-reg、提交、推送与创建 PR,明确禁止 Agent 合并。 - -上游交付 PR:https://github.com/InKCre/ext-reg/pull/38(实现提交 `5fc4ad7`)。 -父任务 draft PR:https://github.com/InKCre/core-py/pull/105。当前等待本 PR 的检查、外部合并和正式 artifact, -不把本地 wheel 构建成功当作依赖已经交付。 - -从 origin/main `006759a` 建立独立分支 `feat/runtime-async-persistence`,worktree 为 -`/Volumes/WorkSSD/Development/InKCre/.worktrees/ext-reg-async-persistence`。既有 ext-reg checkout 未改动。 - -## 实现与交付边界 - -Runtime 0.1.4 为 ExtensionBase 增加配置、状态及启动的 async API,绑定 Host 的 awaitable -持久化能力;旧 API 及现有 SDK ExtensionManager 保留同步合同。一个 publication scope -同时服务两种启动入口,在失败或取消时撤销本次活动资源,阻止未完成时重复启动。 - -调查确认 Source catalog activation 也调用数据库。异步启动调用新 -SourceManager.sync_source_types_async;Core 采用 SDK 时先提供这个 capability,再切换 Host。 -SDK 不创建数据库连接、不持有 session、不引入 fallback 或 worker 包装。Host 负责事务和锁。 - -版本及 changelog 通过 Changie 生成,PDM lock 只将本地 workspace SDK 版本由原有陈旧的 -0.1.2 更新为 0.1.4。Registry 服务、shared contracts、web runtime 和 Toolkit 源码未变。 - -`.github/workflows/packages-release.yml` 仅在 main 发布正式 artifact。Agent 不得合并,故此 -slice 完成到可审阅 PR 后,Core 等待外部合并和 0.1.4 artifact;不会用本地 wheel URL 代替正式依赖。 -父任务及本 packet 此时保持打开。 - -## 验证与限度 - -- Runtime 及仓库 Python lint、format、pyright 通过;pnpm contracts:check、format:check、type-check 通过。 -- `pdm build --project runtimes/core-py --dest dist/runtime-core-py` 成功构建 wheel/sdist。 -- `pdm run python tasks/async-runtime-persistence/probe.py` 通过;另将构建的 wheel 正常安装到独立 - Python 3.12 环境,使用 Core 当前 FastAPI 0.139.2 执行同一 probe,也通过。源码环境为 Python 3.13。 -- probe 是本任务的 public SDK boundary 实验,不是新常驻 CI suite。它使用真实 FastAPI/HTTP transport, - 用内存 Host adapter 隔离持久化 owner,验证 typed mutation、两个启动 await 点的取消、失败撤销、 - 重新启动和旧同步启动兼容。它不证明 PostgreSQL 事务;该证据仍由 Core 的真实数据库验收拥有。 -- 本机 Node 为 26,pnpm 对项目要求的 Node 22 给出警告;上述 JS 检查通过。正式 CI 使用 Node 22。 -- 本机没有执行 Registry 的 PostgreSQL 全量 gate,SDK 变更未触及该数据库;仓库 CI 使用一次性 PostgreSQL - 执行完整 pnpm check。不能把本地 package checks 写成全仓集成通过。 - -## 已复现的既有问题 - -当前 FastAPI include_router 会在 app.routes 中保存 _IncludedRouter,而旧 SDK 的 PublicHTTPRouteClaim -只检查顶层 route.path。单独使用已安装 SDK 0.1.3 + FastAPI 0.139.2 的旧 on_start 已复现 -`Public Extension routes were not published: [('GET', '/probe/callback')]`。因此 probe 的成功启动不声明 -public callback;本次覆盖 routes/inbounds 的取消撤销,没有伪造 public-claim 成功证据。该问题不由 -数据库异步化引入,未扩展本次源码范围;采用方的 callback 验收仍受其影响。 - - -## 采用验收发现的阻塞与修复(2026-09-18) - -#38 已获 Sir 单独批准并 squash 合并为 09b6c84,SDK 0.1.4 正式发布。 -Core #105 采用时进入实际 lifecycle 验收,既有 public callback 缺陷阻挡 Twitter 启用。 -本分支 feat/runtime-public-route-contexts 从该 main 建立,只修复此采用阻塞, -仍由父任务步骤 05 拥有执行顺序。 - -PublicHTTPRouteClaim 从检查顶层 route.path 改为调用 FastAPI 的 iter_route_contexts。 -SDK 原有 >=0.139.2 版本下界已支持此公共接口,无需私有结构或降级分支。 -参考 FastAPI 维护者说明:https://github.com/fastapi/fastapi/discussions/15782。 -此处的 actor 是匿名 HTTP caller,能力为公开声明的精确 method/path;未声明路径仍受原 -admission 约束。缺陷是合法 callback 被拒绝的可用性问题,未发现越权攻击路径。 -不放宽路径匹配,不用 dynamic route 的运行匹配替代 exact declaration 校验。 - -probe 先在旧实现复现失败,再在修复后通过。增加真实 nested router/隐藏 OpenAPI callback, -精确 GET 放行、POST/其他路径拒绝、动态路由不能充当精确声明,以及取消/失败后的 claim 撤销。 -使用同一 probe 验证旧同步启动与新异步启动,不新增验证框架。 -SDK 0.1.5 由 Changie 准备;需通过 PR 和 main 正式发布后 Core 才能采用。 -此次 PR 没有获得合并授权(既有合并授权仅限 #38)。 diff --git a/tasks/async-runtime-persistence/probe.py b/tasks/async-runtime-persistence/probe.py deleted file mode 100644 index 970a2ae..0000000 --- a/tasks/async-runtime-persistence/probe.py +++ /dev/null @@ -1,252 +0,0 @@ -"""Task-scoped SDK public-boundary experiment, independent of a Core database.""" - -import asyncio -import sys -import types -from typing import ClassVar -from unittest.mock import patch - -import fastapi -import httpx -import pydantic - - -class PeerRegistry: - entries: ClassVar[dict] = {} - - @classmethod - def register_inbound(cls, inbound): - if inbound.capability in cls.entries: - raise RuntimeError("duplicate inbound") - cls.entries[inbound.capability] = inbound - return True - - @classmethod - def unregister_inbound(cls, capability): - cls.entries.pop(capability, None) - - -class SourceCatalog: - entered = None - resume = None - - @classmethod - def sync_source_types(cls): - pass - - @classmethod - async def sync_source_types_async(cls): - if cls.entered is not None: - cls.entered.set() - await cls.resume.wait() - - -class Config(pydantic.BaseModel): - label: str = "original" - - -class State(pydantic.BaseModel): - count: int = 0 - - -class HostRecord: - name = "inkcre/probe" - - def __init__(self): - self.config = {"label": "original"} - self.state = {"count": 0} - self.lock = asyncio.Lock() - self.entered = None - self.resume = None - self.fail_schema = False - - def update_config_schema(self, schema): - self.schema = schema - return self - - async def update_config_schema_async(self, schema): - if self.entered is not None: - self.entered.set() - await self.resume.wait() - if self.fail_schema: - raise ValueError("schema write failed") - return self.update_config_schema(schema) - - async def update_config_async(self, value): - async with self.lock: - self.config = value - return self - - async def read_state_async(self): - async with self.lock: - return dict(self.state) - - async def mutate_state_async(self, transform): - async with self.lock: - self.state = transform(self.state) - - async def mutate_config_and_state_async(self, transform): - async with self.lock: - self.config, self.state = transform(self.config, self.state) - - -def host_modules(): - modules = {} - for name in ("app", "app.business", "app.business.source", "app.schemas"): - modules[name] = types.ModuleType(name) - modules[name].__path__ = [] - for name, attributes in { - "app.business.peer": {"PeerManager": PeerRegistry}, - "app.business.source.main": {"SourceManager": SourceCatalog}, - "app.schemas.peer": {"CapabilityID": str}, - }.items(): - module = types.ModuleType(name) - module.__dict__.update(attributes) - modules[name] = module - return modules - - -async def exercise(): - from inkcre_extension_runtime_core_py import ExtensionBase, ExtensionLifecycleError - from inkcre_extension_runtime_core_py.publication import PublicHTTPRoute, PublicHTTPRouteClaim - - class Probe(ExtensionBase, ext_id="probe", config_cls=Config, state_cls=State): - @classmethod - def api_dependencies(cls): - return [] - - @classmethod - def _register_apis(cls, router): - nested = fastapi.APIRouter() - - @nested.get("/callback", include_in_schema=False) - def callback(): - return {"ok": True} - - router.include_router(nested) - - @classmethod - def public_http_routes(cls): - return (PublicHTTPRoute(method="GET", path="/callback"),) - - @classmethod - def peer_inbounds(cls): - return (types.SimpleNamespace(capability="probe.read"),) - - # A matching dynamic route or another method must not authorize an exact claim. - dynamic = fastapi.APIRouter(prefix="/probe") - - @dynamic.get("/{name}") - def dynamic_handler(name: str): - return name - - container = fastapi.FastAPI() - container.include_router(dynamic) - for declaration in ( - PublicHTTPRoute(method="GET", path="/callback"), - PublicHTTPRoute(method="POST", path="/callback"), - ): - try: - PublicHTTPRouteClaim.acquire("probe", (declaration,), tuple(container.routes)) - except ValueError: - pass - else: - raise AssertionError("an unpublished exact public route was accepted") - - record = HostRecord() - Probe.bind(record) - app = fastapi.FastAPI() - - @app.get("/unrelated") - def unrelated(): - return {"retained": True} - - async with httpx.AsyncClient( - transport=httpx.ASGITransport(app=app), base_url="http://test" - ) as client: - - async def verify_withdrawn(): - assert not Probe.runtime_active() - assert not PublicHTTPRouteClaim.permits("GET", "/probe/callback") - assert (await client.get("/probe/callback")).status_code == 404 - assert (await client.get("/unrelated")).status_code == 200 - assert "probe.read" not in PeerRegistry.entries - - updated = await Probe.update_config_async({"label": "changed"}) - assert updated.label == record.config["label"] == "changed" - assert (await Probe.get_state_async()).count == 0 - state = State(count=3) - assert await Probe.mutate_state_async(lambda current: state) is state - assert (await Probe.get_state_async()).count == 3 - config = Config(label="atomic") - result = await Probe.mutate_config_and_state_async(lambda before, current: (config, state)) - assert result[0] is config and result[1] is state - assert record.config == {"label": "atomic"} and record.state == {"count": 3} - - # Exercise cancellation at both externally awaited startup boundaries. - for owner in (SourceCatalog, record): - owner.entered, owner.resume = asyncio.Event(), asyncio.Event() - starting = asyncio.create_task(Probe.on_start_async(app)) - entered = asyncio.create_task(owner.entered.wait()) - try: - async with asyncio.timeout(5): - done, _ = await asyncio.wait( - (starting, entered), return_when=asyncio.FIRST_COMPLETED - ) - if starting in done: - await starting - raise AssertionError("startup did not await the blocked Host capability") - finally: - entered.cancel() - assert not Probe.runtime_active() - try: - await Probe.on_start_async(app) - except ExtensionLifecycleError: - pass - else: - raise AssertionError("overlapping startup was accepted") - starting.cancel() - try: - await starting - except asyncio.CancelledError: - pass - else: - raise AssertionError("startup swallowed cancellation") - owner.entered = owner.resume = None - await verify_withdrawn() - - record.fail_schema = True - try: - await Probe.on_start_async(app) - except ValueError as error: - assert str(error) == "schema write failed" - else: - raise AssertionError("startup swallowed a persistence failure") - await verify_withdrawn() - record.fail_schema = False - - await Probe.on_start_async(app) - assert Probe.runtime_active() - assert PublicHTTPRouteClaim.permits("GET", "/probe/callback") - assert not PublicHTTPRouteClaim.permits("POST", "/probe/callback") - assert not PublicHTTPRouteClaim.permits("GET", "/probe/other") - assert (await client.get("/probe/callback")).json() == {"ok": True} - Probe.unpublish() - Probe.release_runtime() - await verify_withdrawn() - # Existing synchronous Hosts still use the same publication/withdrawal mechanism. - Probe.on_start(app) - assert Probe.runtime_active() - assert PublicHTTPRouteClaim.permits("GET", "/probe/callback") - assert not PublicHTTPRouteClaim.permits("POST", "/probe/callback") - assert not PublicHTTPRouteClaim.permits("GET", "/probe/other") - Probe.unpublish() - Probe.release_runtime() - await verify_withdrawn() - Probe.unbind() - print("SDK async persistence, cancellation/rollback, restart and sync compatibility: passed") - - -if __name__ == "__main__": - with patch.dict(sys.modules, host_modules()): - asyncio.run(exercise()) diff --git a/tasks/registry-install-handoff/packet.md b/tasks/registry-install-handoff/packet.md deleted file mode 100644 index 6b5f66d..0000000 --- a/tasks/registry-install-handoff/packet.md +++ /dev/null @@ -1,11 +0,0 @@ -# Registry Web 安装回跳 - -- **目标**:用户在 Registry Web 搜索、查看版本后,点“安装”返回 client-web 的 `/extensions`,由 client-web 按插件与精确版本确认并执行安装。 -- **边界**:Registry 不接触部署凭据、不执行安装,也不引入 callback API 或新状态表。回跳 query 只承载插件名和版本;client-web 从自己的当前 Registry 配置重新读取 Release。浏览 client-web 的来源 origin 仅决定返回哪个 Web 站点,绝不作为安装身份。 -- **完成证据**:无 JavaScript 的目录搜索→详情版本→回跳可用;来源 origin 与筛选、版本链接一起保留;无效来源不会生成任意跳转;Registry 检查及与 client-web 预览的实际往返通过。 -- **当前事实**:Registry Web 已增加安装回跳和来源 origin 的逐页传递;回跳 query 只有 `install` 与 `version`,默认返回 `app.inkcre.dev`,无效来源返回 400。Draft PR [#56](https://github.com/InKCre/ext-reg/pull/56) 已推送;发布片段、HTML 属性转义均经 CI 修正,隔离 PostgreSQL 的完整 `ext-reg checks` 与 Dependency review 通过。client-web#118 的确认页在公开 preview + Human Heroku/Neon 部署完成 RSS 0.2.1 安装、刷新和卸载验收。 -- **预览事实**:Registry #56 的隔离 CPython Web 预览已部署到 `https://inkcre-ext-reg-pr-56-bcb9e238282c.herokuapp.com/`,`/livez` 报告的 revision 是 PR head `d58bdcb34f73840b413c3db0c147587d10bf955f`。独立 Neon 分支为空,目录没有 Release,因此尚未完成从 Registry 版本页点击到 client-web 的跨站验收。保持 PR 为 Draft,不把 client-web 手工构造的回跳链接当成完整跨站证据。 -- **预览关联修正**:此前 `workflow_run` 的 `environment: preview` 把自动 GitHub Deployment 记在默认分支 `main`,导致 #56 的 PR Checks 没有预览入口。现在交付及清理 job 保留 preview 环境密钥和分支规则,但禁用自动 Deployment;交付在重新核对 PR head 后显式创建该 SHA 的 Deployment 与 `ext-reg preview` commit status,报告实际 URL/失败;清理在资源删除成功后将此 PR 的 Deployment 标为 inactive。工作流在合入 `main` 前仍由旧版可信控制器运行,实际 GitHub 关联须在合入后用新 PR 运行验证。 -- **跨仓库审计**:`client-web` 与 `core-py` 的近期 preview Deployment 已关联 PR head;`docs` 的 `main` 仍在 `workflow_run` 自动生成 main Deployment,#31 有显式 PR-head Deployment,本轮在 #31 补回 `preview` environment 并禁用其自动 Deployment;`ui` 的 `workflow_run` preview 亦存在 main Deployment(例如 `6607896895` 指向 PR #53 预览),尚未改其交付流程。`.github/GOVERNANCE.md` 的“预览 job 声明 preview 环境”原则正确,但 ext-reg 静态 Pages 预览描述过时,且未区分 controller SHA 与候选 SHA;没有证据说明该文档造成这些错误。 -- **真实预览数据**:Human 指出空目录无法完成版本页到 Web 的验收。原预览确从空 `preview-base` 建库,部署只登记 `reviewer` 凭据,#56 `/v1/extensions` 返回 `[]`。不叠加静态 façade;在每个 PR 的隔离 Registry 里通过正式 Publisher API 播种生产已发布、可安装的 `inkcre/rss` 0.2.1 Python Release。公开 wheel 固定 SHA-256 为 `190ff7d15b11a341c2367b87b2348832e7fe7d8042da512f2996926645a6d275`;生产只读查询确认源码 revision `8f7a17343c13f6c4af19e5ea9b58ceb6b13654c2`、build ID `35591185410`。临时播种凭据仅限预览 `inkcre` namespace,发布后撤销;已存在时验证而不覆盖人工数据。验收需目录、精确 Release、wheel 字节和 Registry Web → client-web 回跳,并核对 client-web 实际连接本预览 Registry。新控制器要进入 `main` 才会自动播种,当前 #56 另用同一播种逻辑补齐。 -- **本次现场验收**:#56 已通过同一播种逻辑发布 RSS 0.2.1;临时 Heroku Publisher 凭据已撤销。独立 GET 目录、Release、HEAD wheel ETag 均正确;浏览器由预览目录进入 Release 页面并回跳到 client-web PR #118 安装确认页,携带 `inkcre/rss` 和 `0.2.1`。重复运行播种成功且没有覆盖 Release。当前 Web 预览未连接部署,且 Browse Registry 默认指向生产域名,因此这仅验证 Registry 页面与回跳,不声称已通过预览 Registry 完成 Core 实装。`pnpm check` 到 `registry:check` 才因本机缺少一次性 `REGISTRY_TEST_DATABASE_URL` 停下;此前格式、lint、类型、构建及包检查通过。