A full-featured download manager.
feat(plugin): add durable hook runtime (#2038)
Dr_rOot4b7f0454a5b0
diff --git a/.dockerignore b/.dockerignoreindex b585e576..cf829e43 100644--- a/.dockerignore+++ b/.dockerignore@@ -11,6 +11,7 @@ e2e*.log**/*.test.ts**/*.test.tsx+!src/core/plugin/finalize/native-artifact-operations.integration.test.ts!tests/check-third-party-notices.test.ts!tests/generate-third-party-notices.test.tsAGENTS.mddiff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 61dc5cbd..3ed0c52b 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -284,22 +284,19 @@ jobs:components: rustfmt, clippy- name: Format- run: >-- cargo fmt- --manifest-path packages/native-host/Cargo.toml- --all -- --check+ run: |+ cargo fmt --manifest-path packages/native-host/Cargo.toml --all -- --check+ cargo fmt --manifest-path packages/finalize-fs/Cargo.toml --all -- --check- name: Clippy- run: >-- cargo clippy- --manifest-path packages/native-host/Cargo.toml- --all-targets --locked -- -D warnings+ run: |+ cargo clippy --manifest-path packages/native-host/Cargo.toml --all-targets --locked -- -D warnings+ cargo clippy --manifest-path packages/finalize-fs/Cargo.toml --all-targets --locked -- -D warnings- name: Tests- run: >-- cargo test- --manifest-path packages/native-host/Cargo.toml- --locked --all-targets+ run: |+ cargo test --manifest-path packages/native-host/Cargo.toml --locked --all-targets+ cargo test --manifest-path packages/finalize-fs/Cargo.toml --locked --all-targetspackage-targets:name: Package smoke / ${{ matrix.target }}@@ -389,6 +386,16 @@ jobs:--all-targets--target ${{ matrix.rust_target }}+ - name: Tests (finalize filesystem target)+ env:+ RUST_BACKTRACE: full+ run: >-+ cargo test+ --manifest-path packages/finalize-fs/Cargo.toml+ --locked+ --all-targets+ --target ${{ matrix.rust_target }}+- name: Install dependenciesrun: pnpm install --frozen-lockfileenv:@@ -409,8 +416,17 @@ jobs:run: |pnpm run build:builtinpnpm run build:native-host -- --platform ${{ matrix.platform }} --arch ${{ matrix.arch }}+ pnpm run build:finalize-fs -- --platform ${{ matrix.platform }} --arch ${{ matrix.arch }}pnpm run build:electron+ - name: Finalize filesystem runtime integration+ env:+ MOTRIX_FINALIZE_FS_TEST_BIN: packages/finalize-fs/dist/${{ matrix.platform }}-${{ matrix.arch }}/${{ matrix.platform == 'win32' && 'motrix-finalize-fs.exe' || 'motrix-finalize-fs' }}+ run: >-+ pnpm exec vitest run+ src/core/plugin/finalize/native-artifact-operations.integration.test.ts+ --reporter=verbose+- name: Stage Electron applicationrun: >-pnpm run stage:electron --@@ -477,6 +493,10 @@ jobs:: 'motrix-native-host'const engine =process.env.TARGET_PLATFORM === 'win32' ? 'aria2c.exe' : 'aria2c'+ const finalize =+ process.env.TARGET_PLATFORM === 'win32'+ ? 'motrix-finalize-fs.exe'+ : 'motrix-finalize-fs'const resources = process.env.PACKAGED_RESOURCESconst required = ['app.asar',@@ -487,6 +507,7 @@ jobs:path.join('legal', 'THIRD_PARTY_LICENSES.txt'),path.join('legal', 'sbom.spdx.json'),path.join('bin', host),+ path.join('bin', finalize),path.join('extra',process.env.TARGET_PLATFORM,diff --git a/.github/workflows/flatpak.yml b/.github/workflows/flatpak.ymlindex d4c8fb44..0caeb02b 100644--- a/.github/workflows/flatpak.yml+++ b/.github/workflows/flatpak.yml@@ -17,6 +17,7 @@ on:- 'extra/**'- 'flatpak/**'- 'packages/native-host/**'+ - 'packages/finalize-fs/**'- 'public/**'- 'scripts/**'- 'src/**'@@ -40,6 +41,7 @@ on:- 'extra/**'- 'flatpak/**'- 'packages/native-host/**'+ - 'packages/finalize-fs/**'- 'public/**'- 'scripts/**'- 'src/**'@@ -180,6 +182,8 @@ jobs:- name: Generate Flatpak Cargo sourcesrun: |+ # native-host's reviewed lock is the vendoring superset;+ # check:third-party-notices enforces finalize-fs remains a subset."$RUNNER_TEMP/flatpak-builder-tools/bin/python" \"$RUNNER_TEMP/flatpak-cargo-generator.py" \packages/native-host/Cargo.lock \@@ -256,7 +260,7 @@ jobs:arch: ${{ matrix.flatpak_arch }}bundle: app.motrix.native-${{ matrix.flatpak_arch }}.flatpakmanifest-path: flatpak/app.motrix.native.ci.yml- cache-key: flatpak-${{ matrix.flatpak_arch }}-${{ hashFiles('flatpak/app.motrix.native.yml', 'flatpak/generated-sources.json', 'flatpak/cargo-sources.json', 'pnpm-lock.yaml', 'packages/native-host/Cargo.lock') }}+ cache-key: flatpak-${{ matrix.flatpak_arch }}-${{ hashFiles('flatpak/app.motrix.native.yml', 'flatpak/generated-sources.json', 'flatpak/cargo-sources.json', 'pnpm-lock.yaml', 'packages/native-host/Cargo.lock', 'packages/finalize-fs/Cargo.lock') }}upload-artifact: true- name: Smoke-test installed payloaddiff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex e2bd1346..1f71c1a9 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -208,6 +208,13 @@ jobs:--locked--target ${{ matrix.rust_target }}+ - name: Test finalize filesystem target+ run: >-+ cargo test+ --manifest-path packages/finalize-fs/Cargo.toml+ --locked+ --target ${{ matrix.rust_target }}+- name: Install dependenciesrun: pnpm install --frozen-lockfileenv:@@ -234,9 +241,18 @@ jobs:run: |pnpm run build:builtinpnpm run build:native-host -- --platform ${{ matrix.platform }} --arch ${{ matrix.arch }}+ pnpm run build:finalize-fs -- --platform ${{ matrix.platform }} --arch ${{ matrix.arch }}pnpm run build:electronpnpm run stage:electron -- --platform ${{ matrix.platform }} --arch ${{ matrix.arch }}+ - name: Finalize filesystem runtime integration+ env:+ MOTRIX_FINALIZE_FS_TEST_BIN: packages/finalize-fs/dist/${{ matrix.platform }}-${{ matrix.arch }}/${{ matrix.platform == 'win32' && 'motrix-finalize-fs.exe' || 'motrix-finalize-fs' }}+ run: >-+ pnpm exec vitest run+ src/core/plugin/finalize/native-artifact-operations.integration.test.ts+ --reporter=verbose+# Tagged macOS and Windows outputs are deliberately unsigned here. A# fresh, no-checkout job finalizes only the verified data artifact below,# applying platform signing when it is required or configured.@@ -299,6 +315,10 @@ jobs:: 'motrix-native-host'const engine =process.env.TARGET_PLATFORM === 'win32' ? 'aria2c.exe' : 'aria2c'+ const finalize =+ process.env.TARGET_PLATFORM === 'win32'+ ? 'motrix-finalize-fs.exe'+ : 'motrix-finalize-fs'const resources = process.env.PACKAGED_RESOURCESconst required = ['app.asar',@@ -309,6 +329,7 @@ jobs:path.join('legal', 'THIRD_PARTY_LICENSES.txt'),path.join('legal', 'sbom.spdx.json'),path.join('bin', host),+ path.join('bin', finalize),path.join('extra',process.env.TARGET_PLATFORM,@@ -843,7 +864,7 @@ jobs:EXPECTED_COMMIT: ${{ github.sha }}EXPECTED_PLATFORM: ${{ matrix.platform }}# Updated only after reviewing the verifier source itself.- VERIFIER_SHA256: b985196378d8c6331ca8ab7f1950bbd70f45c2bf8aa5211d7008e6bed6af3805+ VERIFIER_SHA256: d1a330999b72971313cc477eb367eec70610304b33a358b8eca4fd2c94f35517run: |const crypto = require('node:crypto')const fs = require('node:fs')diff --git a/.github/workflows/snap.yml b/.github/workflows/snap.ymlindex 11b49eaa..2b5940ba 100644--- a/.github/workflows/snap.yml+++ b/.github/workflows/snap.yml@@ -26,6 +26,7 @@ on:- 'package.json'- 'pnpm-lock.yaml'- 'packages/native-host/**'+ - 'packages/finalize-fs/**'- 'resources/**'- 'scripts/**'- 'src/**'@@ -169,6 +170,13 @@ jobs:--locked--target ${{ matrix.rust_target }}+ - name: Test finalize filesystem target+ run: >-+ cargo test+ --manifest-path packages/finalize-fs/Cargo.toml+ --locked+ --target ${{ matrix.rust_target }}+- name: Install dependenciesrun: pnpm install --frozen-lockfileenv:@@ -194,6 +202,9 @@ jobs:pnpm run build:native-host -- \--platform linux \--arch ${{ matrix.electron_arch }}+ pnpm run build:finalize-fs -- \+ --platform linux \+ --arch ${{ matrix.electron_arch }}pnpm run build:electron- name: Stage Electron applicationdiff --git a/Dockerfile b/Dockerfileindex 268971d7..a3573186 100644--- a/Dockerfile+++ b/Dockerfile@@ -1,5 +1,13 @@# syntax=docker/dockerfile:1.7@sha256:a57df69d0ea827fb7266491f2813635de6f17269be881f696fbfdf2d83dda33eARG NODE_IMAGE=node:24-alpine@sha256:d32cdf619f63fe0471182d08996dd516c6275bb5fd31ae06e55a570bd9e1ad43+ARG RUST_IMAGE=rust:1.94.1-alpine@sha256:77237dd363a0b127bb5ef532c2d64c0deb380b738e43a9c4bdac73398d6d0a08++FROM ${RUST_IMAGE} AS finalize-fs-build+WORKDIR /src+COPY packages/finalize-fs/Cargo.toml packages/finalize-fs/Cargo.lock ./+COPY packages/finalize-fs/src ./src+RUN cargo build --release --locked+FROM ${NODE_IMAGE} AS depsRUN apk add --no-cache python3 make g++WORKDIR /app@@ -36,7 +44,9 @@ RUN --mount=type=cache,id=motrix-pnpm-store,target=/pnpm/store \FROM deps AS buildARG TARGETARCH+ENV MOTRIX_SERVER_FINALIZE_FS_PREBUILT=1WORKDIR /app+COPY --from=finalize-fs-build /src/target/release/motrix-finalize-fs /tmp/motrix-finalize-fsCOPY . .RUN node node_modules/electron/install.jsRUN --mount=type=cache,id=motrix-builtins,target=/app/node_modules/.cache/motrix-builtins \@@ -45,9 +55,12 @@ RUN --mount=type=cache,id=motrix-builtins,target=/app/node_modules/.cache/motrixarm64) engine_arch=arm64 ;; \*) echo "unsupported Docker target architecture: ${TARGETARCH}" >&2; exit 2 ;; \esac \+ && mkdir -p "packages/finalize-fs/dist/linux-${engine_arch}" \+ && install -m 0755 /tmp/motrix-finalize-fs "packages/finalize-fs/dist/linux-${engine_arch}/motrix-finalize-fs" \&& node scripts/fetch-engine.mjs --platform linux --arch "${engine_arch}" \&& pnpm run check:third-party-notices \&& pnpm run build:server \+ && MOTRIX_FINALIZE_FS_TEST_BIN="packages/finalize-fs/dist/linux-${engine_arch}/motrix-finalize-fs" pnpm exec vitest run src/core/plugin/finalize/native-artifact-operations.integration.test.ts --reporter=verbose \&& node scripts/stage-server-app.mjs --platform linux --arch "${TARGETARCH}" --libc musl --strict \&& node scripts/verify-server-package.mjs --app-dir dist/server-app --platform linux --arch "${TARGETARCH}" --libc musl@@ -71,6 +84,7 @@ COPY --from=build --chown=node:node /app/dist/server ./dist/serverCOPY --from=build --chown=node:node /app/dist/core/plugin/host ./dist/core/plugin/hostCOPY --from=build --chown=node:node /app/dist/renderer-web ./dist/renderer-webCOPY --from=build --chown=node:node /app/dist/server-app/bin/aria2c ./bin/aria2c+COPY --from=build --chown=node:node /app/dist/server-app/bin/motrix-finalize-fs ./bin/motrix-finalize-fsCOPY --from=full-root-production-deps --chown=node:node /app/node_modules ./node_modulesCOPY --from=build --chown=node:node /app/extra/aria2.conf ./extra/aria2.confCOPY --from=build --chown=node:node /app/dist/builtin-plugins ./builtin-plugins@@ -89,6 +103,7 @@ ENV YARN_VERSION= \MOTRIX_PLUGIN_DIR=/data/plugins \MOTRIX_EXTRA_DIR=/app/extra \MOTRIX_ARIA2_BIN=/app/bin/aria2c \+ MOTRIX_FINALIZE_FS_BIN=/app/bin/motrix-finalize-fs \MOTRIX_DEFAULT_SAVE_DIR=/downloads \MOTRIX_ALLOWED_SAVE_DIRS=/downloads \MOTRIX_RENDERER_DIR=/app/dist/renderer-web \@@ -135,6 +150,7 @@ ENV YARN_VERSION= \MOTRIX_PLUGIN_DIR=/data/plugins \MOTRIX_EXTRA_DIR=/app/extra \MOTRIX_ARIA2_BIN=/app/bin/aria2c \+ MOTRIX_FINALIZE_FS_BIN=/app/bin/motrix-finalize-fs \MOTRIX_DEFAULT_SAVE_DIR=/downloads \MOTRIX_ALLOWED_SAVE_DIRS=/downloads \MOTRIX_RENDERER_DIR=/app/dist/renderer-web \diff --git a/THIRD_PARTY_NOTICES.md b/THIRD_PARTY_NOTICES.mdindex 3adbe9c6..6e12062f 100644--- a/THIRD_PARTY_NOTICES.md+++ b/THIRD_PARTY_NOTICES.md@@ -170,12 +170,15 @@ files are platform-specific build output and are not committed.----## Rust native messaging executable dependencies+## Rust native executable dependenciesThe `motrix-native-host`, host-side `motrix-flatpak-native-host`, and-in-sandbox `motrix-native-host-broker` executables are built from the following-crates locked in `packages/native-host/Cargo.lock`. Windows-only crates are-listed because they are included in the Windows native-host build.+in-sandbox `motrix-native-host-broker` executables, together with the+`motrix-finalize-fs` filesystem sidecar, are built from the following reviewed+crate inventory. Versions are locked in `packages/native-host/Cargo.lock` and+`packages/finalize-fs/Cargo.lock`; the sidecar lock must remain a subset of+this inventory. Windows-only crates are listed because they are included in+the Windows native executable builds.| Crate | Version | SPDX license expression | Repository || --- | --- | --- | --- |diff --git a/THIRD_PARTY_NOTICES.zh-CN.md b/THIRD_PARTY_NOTICES.zh-CN.mdindex dd5252eb..62a52cd5 100644--- a/THIRD_PARTY_NOTICES.zh-CN.md+++ b/THIRD_PARTY_NOTICES.zh-CN.md@@ -146,12 +146,14 @@ npm 依赖清单根据根目录声明的运行时依赖,以及 `pnpm-lock.yaml----## Rust native messaging 可执行文件依赖+## Rust 原生可执行文件依赖`motrix-native-host`、宿主机侧 `motrix-flatpak-native-host` 与沙箱内-`motrix-native-host-broker` 可执行文件使用以下 crate 构建,具体版本由-`packages/native-host/Cargo.lock` 锁定。Windows-only crate 也列在表中,因为-Windows native-host 构建会包含它们。+`motrix-native-host-broker` 可执行文件,以及 `motrix-finalize-fs` 文件系统 sidecar,+均使用以下经过审阅的 crate 清单构建。具体版本由+`packages/native-host/Cargo.lock` 与 `packages/finalize-fs/Cargo.lock` 锁定;sidecar+锁文件必须始终是这份清单的子集。Windows-only crate 也列在表中,因为 Windows+原生可执行文件构建会包含它们。| Crate | 版本 | SPDX 许可证表达式 | 源码仓库 || --- | --- | --- | --- |diff --git a/biome.json b/biome.jsonindex d45ce6c4..2a3cbd9a 100644--- a/biome.json+++ b/biome.json@@ -57,6 +57,21 @@}},"overrides": [+ {+ "includes": [+ "tests/fixtures/plugins/test.hook-delivery-runtime/dist/plugin.js",+ "tests/fixtures/plugins/test.hook-sdk-2-0/dist/plugin.js"+ ],+ "formatter": {+ "enabled": false+ },+ "linter": {+ "enabled": false+ },+ "assist": {+ "enabled": false+ }+ },{"includes": ["src/shared/schemas/registry.fixture.json",diff --git a/docs/plugin-hook-runtime-plan.md b/docs/plugin-hook-runtime-plan.mdnew file mode 100644index 00000000..824d3ec9--- /dev/null+++ b/docs/plugin-hook-runtime-plan.md@@ -0,0 +1,352 @@+# Plugin Hook Runtime Implementation Plan++Status: executable plan for the reviewed+[`plugin-hook-runtime.md`](plugin-hook-runtime.md) specification. No implementation+step may weaken a normative invariant to make an existing test pass.++## 1. Outcome and release gate++The change is done only when Electron and Server construct one shared Hook+runtime; the four Hooks execute through the real `PluginHost` and QuickJS+worker; candidate activation, permissions, DTOs, lanes, finalize recovery, and+post delivery follow H1-H25; the three hash-locked builtins pass real Hook+invocation; and every command in section 10 passes from a clean checkout.++This plan does not copy or cherry-pick PR #2035. Existing code is evidence only.+The locked `.moext` archives remain supply-chain inputs and builtin source is+not modified.++## 2. Dependency graph++```text+P0 native/filesystem feasibility + dependency hydration+ -> P1 shared schemas/protocol+ -> P2 matcher, policy generation, lanes, demand activation+ -> P3 additive database v4 + atomic repositories+ -> P4a finalize planner/committer/recovery+ -> P4b durable post-delivery scheduler+ -> P5 shared runtime/startup coordinator + task integration+ -> P6 Electron/Server assembly+ -> P7 real builtin, compatibility, fault, parity, and full gates+```++P1 and P2 may proceed in parallel after P0. P4a and P4b may proceed in parallel+after their P1/P3 interfaces stabilize. Shell wiring starts only after the core+factory and recovery order are tested.++## 3. Work packages and files++### P0 — Feasibility and baseline++- Hydrate the exact `pnpm-lock.yaml` dependency graph with `pnpm install+ --frozen-lockfile`; never use `npx`.+- Run the current focused Hook/host/finalize/session tests and record pre-existing+ failures before editing.+- Add a platform filesystem helper under `packages/finalize-fs/` only if no+ existing dependency provides held no-follow handles, file/directory fsync,+ strong identity, and atomic no-replace install. Its Rust/native API must expose+ capability-style opaque handles, not arbitrary paths after admission.+- Prove file and directory no-replace behavior on Darwin, Linux, and Windows in+ adapter contract tests. Unsupported primitives return a typed fail-closed+ result; they never fall back to overwrite-capable `rename`.++Gate: a feasibility test demonstrates exclusive target creation, symlink-swap+rejection, directory install, and durability fault injection before persistence+or task code is changed.++### P1 — Shared DTOs, protocol, Worker, and SDK parity++Add/update:++- `src/shared/schemas/plugin-hooks.ts`+- `src/shared/schemas/index.ts`+- `src/shared/types/plugin-hooks.ts`+- `src/core/plugin/host/bridge-protocol.ts`+- `src/core/plugin/host/quick-js-worker.ts`+- `src/core/plugin/host/capability-bridge.ts`+- adjacent schema/protocol/Worker/bridge tests++Implement strict Zod schemas and inferred types for every enter/exit message,+`PluginTaskSnapshotV1`, `ErrorDescriptorV1`, `DeliveryEnvelopeV1`, effects,+metadata operations, limits, and canonical stable payloads. Every+invocation-scoped message carries `invocationId`, call-chain ID, and permission+generation. The Worker exposes pre-Hook six-method and post-Hook four-method+`ctx.metadata`, synchronous read-after-write staging, deterministic Hook exit,+the specified AbortSignal subset, and `ctx.delivery.id`.++Add compiled SDK 2.0 four-Hook and pinned SDK >=2.1 post-delivery fixtures. If+the compatible public SDK minor is unavailable, implementation may continue+behind tests but the release gate remains blocked; do not invent unpublishable+types and call the contract complete.++### P2 — Structured permissions, policy barrier, lanes, and activation++Add/update:++- `src/core/plugin/permissions/host-pattern.ts` and tests+- `src/core/plugin/hooks/eligibility.ts` and tests+- `src/core/plugin/capabilities/http.ts` and redirect/proxy tests+- `src/core/plugin/host/plugin-lane.ts` and tests+- `src/core/plugin/host/plugin-host.ts`+- `src/core/plugin/host/activation-dispatcher.ts`+- `src/core/plugin/plugin-registry.ts`+- `src/core/plugin/grants/grants-manager.ts`+- command graph/invoker tests where call-chain propagation enters++Replace both raw regex paths with one parsed manifest-v1 matcher and one shared+conformance corpus. Reject guest-selected HTTP proxies. Candidate discovery+reads enabled registry entries, not active workers; HTTP source matching applies+only to `beforeCreate`. Hook demand coalesces activation and reactivates recycled+workers.++Create one FIFO lane per plugin for Hooks, commands, lifecycle, and deactivation.+Reject self/cyclic call chains before enqueue. Add a monotonically increasing+live policy generation and exclusive mutation barrier that closes admission,+aborts capability leases, drains/terminates the lane, and then publishes the+new enabled/grant/executable state. Idle disposal requires a drained lane and+zero capability leases.++### P3 — Additive database v4 and atomic repositories++Add/update:++- `src/core/session/migrations/v4.ts`+- `src/core/session/migrations/v4.test.ts`+- `src/core/session/migrations/index.ts`+- `src/core/session/motrix-database.ts`+- `src/core/session/motrix-database.test.ts`+- repository interfaces under `src/core/plugin/runtime/`++Add only new tables/indexes; do not rewrite task tables:++- `plugin_finalize_journals` for plan, artifact identities, phases, quarantine,+ and cleanup state;+- `plugin_post_deliveries` for admitted stable payloads, leases, attempts,+ receipts, permission snapshots, and permanent reasons;+- `plugin_post_quota_ledger` for atomic row/byte reservation;+- `plugin_post_quota_buckets` for bounded daily/lifetime/global rollups;+- a lifecycle coordination journal if registry state cannot join the SQLite+ transaction directly.++Expose one transaction that commits task terminal state, task/instance path+updates, task-file rebasing, plugin metadata, journal `db_committed`, occurrence,+and delivery row or quota tombstone. Foreign keys must not cascade task deletion+into deliveries. Validate persisted JSON on read and quarantine malformed rows.+Migration tests assert the exact schema, fresh install, v3 upgrade, idempotence,+constraint failure rollback, quota reservation, and future-version refusal.++### P4a — Finalize plan, file commit, compensation, and recovery++Add/update:++- `src/core/plugin/finalize/artifact-identity.ts`+- `src/core/plugin/finalize/artifact-mutation-lease.ts`+- `src/core/plugin/finalize/filesystem-adapter.ts`+- `src/core/plugin/finalize/hook-plan.ts`+- `src/core/plugin/finalize/finalize-committer.ts`+- `src/core/plugin/finalize/finalize-recovery.ts`+- `src/core/plugin/hooks/hook-orchestrator.ts`+- `src/core/plugin/hooks/staged-effects.ts`+- `src/core/plugin/hooks/staging-dir.ts`+- `src/core/task/actions/finalize-task.ts`+- focused unit, integration, and fault-injection tests beside those files++The orchestrator only validates effects and returns an immutable HookPlan. The+committer acquires the task artifact mutation lease, must successfully stop the+engine/Host writers, records strong file/tree identities, writes `prepared`, and+performs target-local no-replace install. It revalidates identities around every+action and before commit/delete. Replacement output is installed instead of the+original. All mismatch branches preserve bytes and quarantine.++Recovery runs before task producers and handles every adjacent phase layout.+Cover direct files, single/multi-file BT, empty/large trees, source==target,+case-folding, symlinks/reparse/special files, EXDEV copies, target races,+metadata/DB failure, mutation after each phase, compensation failure, and a+crash before/after every file action/fsync/journal/transaction.++### P4b — Reliable post-Hook delivery++Add:++- `src/core/plugin/post/delivery-types.ts`+- `src/core/plugin/post/delivery-materializer.ts`+- `src/core/plugin/post/delivery-scheduler.ts`+- `src/core/plugin/post/delivery-retention.ts`+- `src/core/plugin/post/delivery-observability.ts`+- adjacent deterministic clock/jitter/quota/lifecycle tests++Snapshot candidates under a registry generation lease before the terminal+transaction. The database transaction admits a full row or bounded tombstone.+The scheduler claims fairly by plugin, uses the specified lease/backoff/breaker,+enters the same plugin lane, and records a receipt only for a matching exit.+Expiration returns a row to pending; task deletion cannot remove it.++At execution, permissions are creation snapshot intersect current live grants.+Grant revocation aborts active attempts; upgrade marks old digest rows+`superseded` and never runs old code. Terminal rows compact immediately and all+active/terminal/tombstone row+byte quotas and core reserve limits are enforced+inside the admission transaction.++### P5 — Shared runtime, startup coordinator, and task integration++Add/update:++- `src/core/plugin/runtime/plugin-hook-runtime.ts`+- `src/core/plugin/runtime/startup-coordinator.ts`+- `src/core/plugin/runtime/runtime-factory.ts`+- `src/core/task/create-task-handler.ts`+- `src/core/task/hook-dispatch.ts`+- `src/core/task/occurrences/occurrence-dispatcher.ts`+- `src/core/session/session-manager.ts`+- associated integration/order tests++One factory owns PluginHost, candidate resolver, lanes, orchestrator,+finalization, occurrence materialization, and post scheduler. `beforeCreate`+receives the complete validated request and applies role-ordered effects before+persistence. `beforeFinalize` runs after engine quiescence and before any rename.+Terminal success/error uses the single database transaction; post Hooks never+change terminal status.++The startup coordinator enforces: migrate -> discover/runtime -> register+consumer -> finalize recovery -> task/session restore without producers ->+delivery/occurrence drain -> open polling/completion producers. Shutdown closes+admission, drains within budget, persists leases, and stops workers.++### P6 — Electron and Server symmetry++Update:++- `src/main/index.ts`+- `src/main/ipc/commands.ts`+- `src/main/plugin/capability-host.ts`+- `src/server/index.ts`+- `src/server/ipc/commands.ts`+- `src/server/plugin/capability-host.ts`+- paired assembly and startup-order tests++Both shells call the same runtime factory and startup coordinator and inject the+same instance into create/finalize/error/recovery paths. Remove command-local+orchestrator construction. Production startup fails if required database,+recovery, delivery, or filesystem primitives are missing; only isolated unit+tests may inject a no-op.++### P7 — Real acceptance and regression gates++Update/add:++- `src/core/plugin/host/e2e-builtins.test.ts`+- `src/core/plugin/host/orchestrator.e2e.test.ts`+- `src/core/task/create-task-handler.plugin-hook-e2e.test.ts`+- `src/core/plugin/host/e2e-hook-compatibility.test.ts`+- `src/main/plugin/hook-runtime-assembly.test.ts`+- `src/server/plugin/hook-runtime-assembly.test.ts`+- reusable local HTTP/TLS test server and fault adapters under existing test+ helper conventions++Tests must fetch/read the exact archives from `scripts/builtins.lock.json`, then+assert size, SHA-256, and signature before install. They must invoke the built+bundle through PluginHost/QuickJS:++- scraper-hook performs real loopback HEAD+GET and resolves a nested relative+ archive URL;+- url-resolver performs the Commons page/API flow through a real loopback+ transport that preserves the authorized URL/Host and returns an independently+ accepted `upload.wikimedia.org` URL;+- filename-template synchronously reads `ctx.metadata.getAll()`, renders nested+ values, survives idle recycle, and commits a no-clobber file and BT-directory+ rename.++No fixture callback, registration event, preview command, or source copy counts+as builtin Hook acceptance.++## 4. Implementation boundaries and integration order++Keep the work packages separated by subsystem so their security contracts stay+reviewable:++- **Protocol and schema** covers P1 DTO, Worker, Host, and SDK parity files.+- **Host policy** covers P2 matching, permissions, lanes, and capability gates.+- **Finalize** covers `packages/finalize-fs/`, P4a files, and+ `finalize-task.ts`.+- **Post-delivery** covers P4b and depends only on the published repository+ interfaces.++Database migrations and shell integration land after those interfaces are+stable. A change that crosses a boundary must update the shared interface and+its integration tests in the same change. No package may weaken another+package's invariant to simplify integration.++## 5. Migration, recovery, and rollback++- Database v4 is additive. Startup creates a timestamped pre-v4 backup before+ migration and verifies it before deleting no data.+- On migration failure, the transaction rolls back and the app remains on v3;+ no Hook runtime or task producer starts.+- Finalize recovery is forward-only and runs before sessions/producers. Unknown+ or corrupt journal rows quarantine without deleting bytes.+- A code rollback to a v3-only binary must restore the verified pre-v4 backup;+ an older binary must refuse a future schema rather than guessing. Post-v4 task+ changes must be exported/reconciled explicitly before such a rollback.+- Feature rollback inside the v4 binary stops new Hook admission but continues+ recovery and delivery/quarantine draining; it never abandons a journal.+- Upgrade/uninstall/grant lifecycle operations use the durable barrier so a+ crash cannot leave old code executable with new grants.++## 6. Observability and operator proof++Add structured invocation, lane, permission-generation, finalize phase,+recovery, delivery lease/retry/dead-letter/quota, and shell startup events using+the names/fields in the specification. Redact headers, proxy credentials,+secrets, private source metadata, and public-doc absolute paths. Tests assert+event parity between Electron and Server and stable error categories.++## 7. Definition of done by stage++- P1: schema/Worker/Host/SDK field parity and synchronous metadata tests pass.+- P2: one matcher corpus, registry candidate discovery, reactivation, lane,+ policy-revocation, proxy, and cycle tests pass.+- P3: v4 migration and atomic terminal/delivery/finalize transaction tests pass.+- P4a: all file/directory fault and mutation injection tests pass with no byte+ loss or overwrite.+- P4b: restart, duplicate, fairness, breaker, quota, lifecycle, and idempotency+ tests pass.+- P5/P6: one runtime per shell and exact startup/shutdown order tests pass.+- P7: all three locked builtin real Hooks plus SDK 2.0/2.1 fixtures pass.+- Final independent reviewer finds no unresolved correctness, security, data+ integrity, SDK, or shell-drift defect.++## 8. Test commands during development++Run the smallest affected `./node_modules/.bin/vitest run <files...>` after each package,+then the package cluster after every merge. Native helper changes also run its+format/lint/unit tests. Never hide a red test by weakening assertions or using a+mock in place of the required real QuickJS/HTTP/filesystem boundary.++## 9. Rollout order++1. Land dormant schemas, matcher, lanes, repositories, and migration.+2. Land finalize recovery and post scheduler behind the shared factory.+3. Wire both shells in one change with parity tests; no one-shell rollout.+4. Enable real Hook admission only after startup recovery passes.+5. Run builtin/compatibility/fault suites, then all gates.+6. Obtain independent final review, fix findings, rerun affected and full gates.++## 10. Required final commands++```text+./node_modules/.bin/vitest run <all focused Hook/runtime/finalize/post/shell suites>+pnpm run build:builtin+pnpm run check:schema-parity+pnpm run check:file-names+pnpm run check:boundaries+pnpm run lint+./node_modules/.bin/tsc --noEmit+./node_modules/.bin/vitest run+pnpm run build:electron+pnpm run build:server+pnpm run docs:check+```++Also run the native filesystem package's own tests/build on every supported+host available in CI. Exact commands and pass/fail counts belong in the final+report; skipped platform evidence remains an explicit residual risk.diff --git a/docs/plugin-hook-runtime-plan.zh-CN.md b/docs/plugin-hook-runtime-plan.zh-CN.mdnew file mode 100644index 00000000..d90e2bf0--- /dev/null+++ b/docs/plugin-hook-runtime-plan.zh-CN.md@@ -0,0 +1,318 @@+# 插件 Hook 运行时实施计划++状态:已通过评审的+[`plugin-hook-runtime.zh-CN.md`](plugin-hook-runtime.zh-CN.md) 的可执行计划。+任何实施步骤都不得为了通过既有测试而削弱规范性不变量。++## 1. 结果与发布门禁++只有 Electron 与 Server 构造同一个 Hook runtime、四个 Hook 通过真实+`PluginHost` 与 QuickJS Worker 执行、候选激活/权限/DTO/lane/finalize 恢复/+post delivery 满足 H1-H25、三个哈希锁定 builtin 通过真实 Hook 调用,并且第+10 节全部命令从干净 checkout 通过,工作才算完成。++本计划不复制或 cherry-pick PR #2035;既有代码只作为证据。锁定 `.moext`+仍是供应链输入,不修改 builtin 源码。++## 2. 依赖图++```text+P0 原生文件系统可行性 + 依赖安装+ -> P1 shared schema/protocol+ -> P2 matcher、permission generation、lane、按需激活+ -> P3 additive database v4 + 原子 repository+ -> P4a finalize planner/committer/recovery+ -> P4b 持久 post-delivery scheduler+ -> P5 共享 runtime/startup coordinator + task 集成+ -> P6 Electron/Server 装配+ -> P7 真实 builtin、兼容、fault、parity 与完整门禁+```++P0 后 P1/P2 可并行;P1/P3 接口稳定后 P4a/P4b 可并行。Core factory 和恢复+顺序通过测试前,不开始 shell wiring。++## 3. 工作包与文件++### P0 — 可行性与基线++- 使用 `pnpm install --frozen-lockfile` 安装 `pnpm-lock.yaml` 的精确依赖;禁止+ `npx`。+- 修改前运行当前 Hook/host/finalize/session 聚焦测试,记录 pre-existing failure。+- 若既有依赖不能提供 held no-follow handle、文件/目录 fsync、强身份与原子+ no-replace install,则在 `packages/finalize-fs/` 添加平台文件系统 helper。+ Rust/native API 只暴露 capability-style opaque handle;准入后不接受任意路径。+- Adapter contract test 必须在 Darwin/Linux/Windows 证明文件与目录 no-replace。+ 不支持的 primitive 返回 typed fail-closed,绝不 fallback 到会覆盖的 rename。++门禁:修改 persistence/task 前,先用 feasibility test 证明 target 独占创建、+symlink-swap 拒绝、目录安装和 durability fault injection。++### P1 — Shared DTO、协议、Worker 与 SDK parity++新增/修改:++- `src/shared/schemas/plugin-hooks.ts`+- `src/shared/schemas/index.ts`+- `src/shared/types/plugin-hooks.ts`+- `src/core/plugin/host/bridge-protocol.ts`+- `src/core/plugin/host/quick-js-worker.ts`+- `src/core/plugin/host/capability-bridge.ts`+- 相邻 schema/protocol/Worker/bridge 测试++为 enter/exit message、`PluginTaskSnapshotV1`、`ErrorDescriptorV1`、+`DeliveryEnvelopeV1`、effect、metadata operation、上限和 canonical stable+payload 实现严格 Zod schema 与推导类型。所有 invocation-scoped message 携带+`invocationId`、call-chain ID 与 permission generation。Worker 实现 pre-Hook+六方法/post-Hook 四方法同步 `ctx.metadata`、read-after-write staging、确定性+Hook exit、指定 AbortSignal 子集和 `ctx.delivery.id`。++添加真实编译的 SDK 2.0 四 Hook 与 pinned SDK >=2.1 post-delivery fixture。若+compatible SDK minor 尚不可用,可以继续实现内部测试,但发布门禁保持阻断;+不得虚构不可发布类型后宣称契约完成。++### P2 — 结构化权限、policy barrier、lane 与激活++新增/修改:++- `src/core/plugin/permissions/host-pattern.ts` 与测试+- `src/core/plugin/hooks/eligibility.ts` 与测试+- `src/core/plugin/capabilities/http.ts` 与 redirect/proxy 测试+- `src/core/plugin/host/plugin-lane.ts` 与测试+- `src/core/plugin/host/plugin-host.ts`+- `src/core/plugin/host/activation-dispatcher.ts`+- `src/core/plugin/plugin-registry.ts`+- `src/core/plugin/grants/grants-manager.ts`+- call-chain 进入的 command graph/invoker 测试++用一个 manifest-v1 结构化 matcher 和共享 conformance corpus 替换两条 raw+regex 路径;拒绝 Guest 自选 HTTP proxy。候选从 enabled registry 而非 active+Worker 发现,只有 `beforeCreate` 使用 HTTP source matching。Hook demand 合并+activation,并能重新激活 idle-recycled Worker。++每插件建立一个供 Hook/command/lifecycle/deactivation 共用的 FIFO lane;入队前+拒绝 self/cyclic call chain。增加单调 live policy generation 与独占 mutation+barrier:关闭准入、中止 capability lease、drain/终止 lane,再发布新的 enable/+grant/executable state。Idle disposal 必须等待 lane 与 capability lease 清空。++### P3 — Additive database v4 与原子 repository++新增/修改:++- `src/core/session/migrations/v4.ts`+- `src/core/session/migrations/v4.test.ts`+- `src/core/session/migrations/index.ts`+- `src/core/session/motrix-database.ts`+- `src/core/session/motrix-database.test.ts`+- `src/core/plugin/runtime/` 下的 repository interface++只新增 table/index,不重写 task table:++- `plugin_finalize_journals`:plan、artifact identity、phase、quarantine、cleanup;+- `plugin_post_deliveries`:稳定 payload、lease、attempt、receipt、permission+ snapshot、permanent reason;+- `plugin_post_quota_ledger`:原子 row/byte reservation;+- `plugin_post_quota_buckets`:有界 daily/lifetime/global rollup;+- registry state 无法加入 SQLite transaction 时使用 lifecycle coordination journal。++提供一个事务同时提交 task 终态、task/instance path、task-file rebase、plugin+metadata、journal `db_committed`、occurrence 与 delivery row/quota tombstone。+Task 删除不得 cascade delivery。读取时校验持久 JSON,畸形行 quarantine。+Migration test 断言精确 schema、fresh install、v3 upgrade、idempotence、constraint+rollback、quota reservation 与 future-version refusal。++### P4a — Finalize plan、文件提交、补偿与恢复++新增/修改:++- `src/core/plugin/finalize/artifact-identity.ts`+- `src/core/plugin/finalize/artifact-mutation-lease.ts`+- `src/core/plugin/finalize/filesystem-adapter.ts`+- `src/core/plugin/finalize/hook-plan.ts`+- `src/core/plugin/finalize/finalize-committer.ts`+- `src/core/plugin/finalize/finalize-recovery.ts`+- `src/core/plugin/hooks/hook-orchestrator.ts`+- `src/core/plugin/hooks/staged-effects.ts`+- `src/core/plugin/hooks/staging-dir.ts`+- `src/core/task/actions/finalize-task.ts`+- 相邻 unit/integration/fault-injection 测试++Orchestrator 只校验 effect 并返回 immutable HookPlan。Committer 取得 task+artifact mutation lease,必须成功停止 engine/Host writer,记录文件/tree 强身份,+写 `prepared`,并执行 target-local no-replace install。每个动作前后与 commit/+delete 前重验身份;replacement 取代 original。任何 mismatch 都保留 byte 并+quarantine。++Recovery 在 task producer 前处理所有相邻 phase layout。测试覆盖 direct file、+单/多文件 BT、空/大 tree、source==target、case folding、symlink/reparse/special+file、EXDEV、target race、metadata/DB failure、每阶段后 mutation、补偿失败,以及+每个文件动作/fsync/journal/transaction 前后 crash。++### P4b — 可靠 post-Hook delivery++新增:++- `src/core/plugin/post/delivery-types.ts`+- `src/core/plugin/post/delivery-materializer.ts`+- `src/core/plugin/post/delivery-scheduler.ts`+- `src/core/plugin/post/delivery-retention.ts`+- `src/core/plugin/post/delivery-observability.ts`+- 相邻 deterministic clock/jitter/quota/lifecycle 测试++终态事务前在 registry generation lease 下快照候选;数据库事务准入完整 row+或有界 tombstone。Scheduler 按插件公平 claim,执行指定 lease/backoff/breaker,+进入同一 plugin lane,只为匹配 exit 写 receipt。Lease 过期回 pending;删除+task 不能删除 delivery。++执行权限是 creation snapshot 与当前 live grant 的交集。Grant revoke 中止 active+attempt;upgrade 把旧 digest row 标成 `superseded`,绝不运行旧代码。Terminal+row 立即 compact;所有 active/terminal/tombstone row+byte quota 与 core reserve+都在 admission transaction 内强制执行。++### P5 — 共享 runtime、startup coordinator 与 task 集成++新增/修改:++- `src/core/plugin/runtime/plugin-hook-runtime.ts`+- `src/core/plugin/runtime/startup-coordinator.ts`+- `src/core/plugin/runtime/runtime-factory.ts`+- `src/core/task/create-task-handler.ts`+- `src/core/task/hook-dispatch.ts`+- `src/core/task/occurrences/occurrence-dispatcher.ts`+- `src/core/session/session-manager.ts`+- 相邻 integration/order 测试++单一 factory 拥有 PluginHost、candidate resolver、lane、orchestrator、finalization、+occurrence materialization 与 post scheduler。`beforeCreate` 在持久化前接收完整+已验证请求并按 role 应用效果。`beforeFinalize` 在 engine quiesce 后、任何+rename 前执行。终态 success/error 使用单一 DB transaction;post Hook 不改变+终态。++Startup coordinator 强制:migrate -> discover/runtime -> register consumer ->+finalize recovery -> 不开放 producer 的 task/session restore -> delivery/+occurrence drain -> 开放 polling/completion producer。Shutdown 关闭准入,在预算+内 drain、持久 lease,最后停 Worker。++### P6 — Electron 与 Server 对称性++修改:++- `src/main/index.ts`+- `src/main/ipc/commands.ts`+- `src/main/plugin/capability-host.ts`+- `src/server/index.ts`+- `src/server/ipc/commands.ts`+- `src/server/plugin/capability-host.ts`+- 成对 assembly/startup-order 测试++两套 shell 调用同一 runtime factory/startup coordinator,并把同一实例注入+create/finalize/error/recovery;删除 command-local orchestrator。生产启动缺少+database/recovery/delivery/filesystem primitive 时失败;只有隔离 unit test 可注入+no-op。++### P7 — 真实验收与回归门禁++新增/修改:++- `src/core/plugin/host/e2e-builtins.test.ts`+- `src/core/plugin/host/orchestrator.e2e.test.ts`+- `src/core/task/create-task-handler.plugin-hook-e2e.test.ts`+- `src/core/plugin/host/e2e-hook-compatibility.test.ts`+- `src/main/plugin/hook-runtime-assembly.test.ts`+- `src/server/plugin/hook-runtime-assembly.test.ts`+- 按既有 test helper 约定添加本地 HTTP/TLS server 与 fault adapter++测试从 `scripts/builtins.lock.json` 读取精确 archive,并在安装前断言 size、+SHA-256、signature。构建 bundle 必须通过 PluginHost/QuickJS 真正调用:++- scraper-hook 走真实 loopback HEAD+GET,解析嵌套相对 archive URL;+- url-resolver 通过保留授权 URL/Host 的真实 loopback transport 完成 Commons+ page/API 流程,再返回独立接受的 `upload.wikimedia.org` URL;+- filename-template 同步读取 `ctx.metadata.getAll()`、渲染嵌套值、经历 idle+ recycle,并提交 no-clobber 文件与 BT 目录 rename。++Fixture callback、registration event、preview command 或源码副本都不算 builtin+Hook 验收。++## 4. 实现边界与集成顺序++各 work package 按 subsystem 保持分离,确保安全契约可以独立审查:++- **Protocol 与 schema** 覆盖 P1 DTO、Worker、Host 和 SDK parity 文件。+- **Host policy** 覆盖 P2 matching、permission、lane 与 capability gate。+- **Finalize** 覆盖 `packages/finalize-fs/`、P4a 文件和+ `finalize-task.ts`。+- **Post-delivery** 覆盖 P4b,且只依赖已发布的 repository interface。++Database migration 与 shell integration 在上述 interface 稳定后接入。跨边界修改+必须在同一 change 中更新 shared interface 及其 integration test。任何 package+都不能为了简化集成而削弱其他 package 的 invariant。++## 5. Migration、恢复与回滚++- Database v4 是 additive。Startup 在迁移前创建 timestamped pre-v4 backup,+ 且验证成功后也不删除数据。+- Migration 失败时 transaction rollback,应用保持 v3;Hook runtime 与 task+ producer 都不启动。+- Finalize recovery 是 forward-only,早于 session/producer;未知/损坏 journal+ 只 quarantine,不删除 byte。+- 回滚到只支持 v3 的 binary 必须恢复已验证的 pre-v4 backup;旧 binary 遇到+ future schema 必须拒绝,不能猜测。回滚前必须显式 export/reconcile v4 后的+ task 变化。+- v4 binary 内 feature rollback 停止新 Hook admission,但继续 recovery 与+ delivery/quarantine drain,不能遗弃 journal。+- Upgrade/uninstall/grant lifecycle 使用 durable barrier,崩溃后不能出现旧代码+ 搭配新 grant 可执行。++## 6. 可观测性与 operator proof++按规范增加 invocation、lane、permission generation、finalize phase、recovery、+delivery lease/retry/dead-letter/quota 与 shell startup 结构化事件。去除 header、+proxy credential、secret、private source metadata 和公开文档中的绝对路径。+测试断言 Electron/Server event parity 与稳定错误分类。++## 7. 分阶段 done 条件++- P1:schema/Worker/Host/SDK field parity 与同步 metadata 测试通过。+- P2:单 matcher corpus、registry candidate、reactivation、lane、policy revoke、+ proxy、cycle 测试通过。+- P3:v4 migration 和原子 terminal/delivery/finalize transaction 测试通过。+- P4a:全部文件/目录 fault 与 mutation injection 测试通过,无 byte loss/overwrite。+- P4b:restart、duplicate、fairness、breaker、quota、lifecycle、idempotency 通过。+- P5/P6:每 shell 一个 runtime,精确 startup/shutdown 顺序测试通过。+- P7:三个锁定 builtin 真实 Hook 与 SDK 2.0/2.1 fixture 通过。+- 最终独立 reviewer 不存在未解决 correctness/security/data integrity/SDK/+ shell-drift defect。++## 8. 开发期测试命令++每个工作包后运行最小 `./node_modules/.bin/vitest run <files...>`,每次 merge 后运行对应+cluster;native helper 还需运行自身 format/lint/unit test。不得通过削弱断言,+或用 mock 替代规范要求的真实 QuickJS/HTTP/filesystem boundary 来消红。++## 9. Rollout 顺序++1. 落地 dormant schema、matcher、lane、repository、migration。+2. 在共享 factory 后落地 finalize recovery 与 post scheduler。+3. 两套 shell 与 parity test 同时 wiring,禁止单 shell rollout。+4. Startup recovery 通过后才开放真实 Hook admission。+5. 运行 builtin/compatibility/fault suite,再跑完整门禁。+6. 进行独立最终审查,修复 finding,重跑受影响测试和完整门禁。++## 10. 最终必跑命令++```text+./node_modules/.bin/vitest run <all focused Hook/runtime/finalize/post/shell suites>+pnpm run build:builtin+pnpm run check:schema-parity+pnpm run check:file-names+pnpm run check:boundaries+pnpm run lint+./node_modules/.bin/tsc --noEmit+./node_modules/.bin/vitest run+pnpm run build:electron+pnpm run build:server+pnpm run docs:check+```++在 CI 可用的每个目标平台还要运行 native filesystem package 自身 test/build。+最终报告必须列出精确命令与结果;未覆盖的平台证据作为显式残余风险。diff --git a/docs/plugin-hook-runtime.md b/docs/plugin-hook-runtime.mdnew file mode 100644index 00000000..067bdb85--- /dev/null+++ b/docs/plugin-hook-runtime.md@@ -0,0 +1,1012 @@+# Plugin Hook Runtime Specification++Status: normative for Motrix 2.x plugin Hook execution. Independent design+review passed on 2026-08-31.++This document defines how Motrix discovers, activates, schedules, validates,+commits, recovers, and observes plugin Hooks. The same rules apply to the+Electron and Server hosts.++## 1. Problem statement++Motrix exposes four task lifecycle Hooks: `beforeCreate`, `beforeFinalize`,+`afterComplete`, and `onError`. A reliable implementation has to cross several+boundaries at once: an installed manifest, an inactive or recycled QuickJS+worker, the SDK object seen by guest code, host capabilities, the task and+SQLite lifecycles, and two independently assembled application shells.++Loading a bundle or observing a registration event does not prove that a Hook+works. A conforming runtime must execute the built plugin bundle through the+real `PluginHost` and QuickJS worker, transfer the complete validated context,+apply its effects at the correct commit point, and recover safely after either+the plugin or the host process stops.++This specification closes the following failure classes:++- permissions matched against raw URL text rather than URL structure;+- Hooks silently missed because their plugin was inactive at dispatch time;+- one plugin VM receiving overlapping task contexts;+- SDK methods existing in types but not in the worker object;+- partial or unvalidated Hook DTOs crossing the worker boundary;+- replacement output being overwritten by the original download;+- file, metadata, and task state diverging across a failed finalize;+- post-Hooks being lost, duplicated without an identity, or blocking peers;+- Electron and Server constructing different runtimes.++## 2. Non-goals++- This document does not add new manifest Hook names or role bands.+- It does not grant a capability that is absent from the plugin's effective+ permissions.+- It does not make arbitrary external side effects exactly-once. That is not+ possible across a guest, a remote service, and SQLite without a shared+ transaction. Motrix provides at-least-once delivery and a stable delivery ID;+ plugins must use that ID when an external operation needs deduplication.+- It does not allow a plugin to finalize outside the task save directory or to+ overwrite an unrelated existing path.+- It does not make community plugins trusted. Signature, install consent,+ optional grants, and reserved-role policy remain separate gates.+- It does not change the pinned builtin supply chain. Builtins continue to be+ consumed as signed, hash-locked `.moext` releases.++## 3. Terms++**Candidate**: an enabled installed plugin whose manifest declares the Hook and+whose activation and host-permission predicates match the event.++**Active plugin**: a candidate with a ready QuickJS worker and registered guest+entry points.++**Invocation**: one Hook call identified by a unique `invocationId` from host+admission until the worker exits the Hook.++**Plugin lane**: the FIFO serialization boundary for all host-initiated guest+entries in one plugin VM.++**Working context**: the validated DTO plus accepted effects from earlier+plugins in a serial Hook chain.++**Hook effects**: context patches and metadata operations returned by one+invocation. Effects are data; they are not committed by the worker.++**HookPlan**: the immutable result of a successful `beforeFinalize` chain. It+names the current source artifact, final target, optional replacement artifact,+metadata effects, and attribution.++**Finalize journal**: a durable row recording a HookPlan and the filesystem+phase reached while committing it.++**Occurrence**: the existing durable terminal task event written with the task+transition.++**Post delivery**: a durable `(occurrence, hook, plugin version)` delivery of an+`afterComplete` or `onError` invocation.++**Permission generation**: a monotonically increasing registry value for a+plugin's enabled state, grants, quarantine state, and executable identity. A+guest entry and every capability lease are bound to one generation.++## 4. Architecture boundaries++The host-neutral runtime lives under `src/core/`. It owns candidate discovery,+structured permission matching, per-plugin lanes, DTO validation, Hook+orchestration, finalize plans and recovery, and post-delivery scheduling. It+may depend on shared schemas and injected filesystem/database adapters, but not+on Electron, renderer, or Server modules.++`src/shared/` owns pure Zod schemas and inferred types for wire-visible Hook+DTOs and worker messages. It contains no I/O, timers, or host imports.++`src/main/` and `src/server/` construct the same core runtime factory. Each+shell supplies paths, logging, its capability host, task lookup/persistence,+filesystem operations, and shutdown coordination. A shell must not construct a+second orchestrator inside command handlers.++The QuickJS worker evaluates guest code and exposes the SDK surface. It does+not decide eligibility, permissions, commit order, or recovery. The capability+bridge validates every worker message and binds it to the current invocation.++## 5. State machines and ordering++### 5.1 Plugin lifecycle++```text+Inactive -> Activating -> Active -> Quiescing -> Inactive+ | |+ +-> Faulted +-> Faulted+```++- Candidate discovery is independent of the active set.+- Admitting a Hook candidate activates it immediately when necessary.+- Concurrent activation requests for one plugin coalesce.+- `Active` is published only after the worker is ready and every declared Hook+ used by the runtime is registered.+- Idle disposal is allowed only when the plugin lane has no running or queued+ guest entry and no owned capability operation is still in flight.+- A recycled plugin can be activated again for finalization or post delivery;+ inactivity never means ineligibility.+- A crash fails only the current plugin invocation, tears down that worker, and+ permits a clean worker to be created for a later retry.++### 5.2 Serial pre-Hook chain++```text+validate input -> discover candidates -> sort by role/id+ -> for each candidate: activate -> enter plugin lane -> invoke -> validate effects+ -> merge into working context -> build result/HookPlan+```++The order is role band, then lexical plugin ID. A later plugin sees the accepted+working context produced by earlier plugins. It never sees another task's+context or an uncommitted effect from a failed plugin.++`pre-resolve`, `resolve`, and `post-process` failures abort the chain.+`enrich` and `audit` failures are isolated and the chain continues. An `audit`+plugin cannot produce mutating effects.++### 5.3 Terminal task and post-Hook sequence++```text+snapshot candidates+ -> terminal task + occurrence + post-delivery rows commit+ -> per-plugin lanes deliver eligible rows+ -> success receipt or retry/dead-letter state+```++Candidate materialization is part of the terminal SQLite transaction; Hook+invocation is asynchronous. The occurrence consumer only schedules already+materialized rows and is never held open by a failing plugin.++## 6. Candidate discovery and immediate activation++Candidate discovery reads the current `PluginRegistry`, not `PluginHost`'s+active map. A plugin is a candidate only when all of these are true:++1. it is installed, compatible, enabled, and not quarantined;+2. `contributes.hooks` declares the requested Hook;+3. its effective activation set matches the task type or URL protocol, with+ declared command events handled separately;+4. its manifest Hook role is valid for its trust/category policy;+5. for an HTTP `beforeCreate` resolver, at least one structured+ `hostPermissions` pattern matches the source URL used to select it;+6. required capabilities remain in the plugin's effective permission set.++`beforeFinalize`, `afterComplete`, and `onError` are selected by Hook+declaration, task-type activation, role, and capability grants. Their task+source may be FTP, magnet, or another non-HTTP identifier and is never filtered+through HTTP host patterns. Any HTTP capability call they make is still checked+per request.++The Hook contribution is an implicit demand-activation source. A candidate+that was disposed after `beforeCreate` is activated again for+`beforeFinalize`. Post delivery also activates its recorded candidate before+invocation. Activation failure is classified as that plugin's Hook failure; it+does not make the candidate disappear.++Candidate executable identity is `(pluginId, version, executable digest)`.+Candidate and delivery snapshots separately record `createdGeneration` and the+complete effective permission set at creation; that generation is audit data,+not a future execution lease. Upgrade, enable/disable, quarantine, uninstall,+or grant change+enters an exclusive policy barrier: new guest and capability admission closes,+the generation advances, owned operations are aborted, the lane drains or the+worker is terminated after budget, and only then may the new state activate.+Every capability call either acquires a live generation lease or presents the+current generation; stale live leases fail closed. A post-delivery attempt runs+with `createdEffectivePermissions intersect currentEffectivePermissions`, so a+later grant can never expand a historical delivery's authority.++## 7. Structured host-permission matching++Host permissions are parsed once into structured matchers. Matching never runs+a regular expression against the whole raw URL.++A supported manifest pattern has these components:++```text+scheme://host/path-glob+```++- `scheme` is `http`, `https`, or `*`; `*` means HTTP and HTTPS only.+- `host` is `*`, an exact canonical DNS/IP host, or `*.example.test`.+ A subdomain wildcard matches the suffix host and its subdomains only.+- Manifest v1 patterns have no port component. A matching scheme/host pattern+ matches any valid explicit or default port, preserving released-plugin and+ browser match-pattern semantics. A future port restriction requires a new+ manifest schema version.+- A bracketed IPv6 literal is an exact host; wildcards are forbidden inside it.+- `path-glob` is matched against WHATWG-serialized `pathname + search` after+ uppercasing percent-escape hex digits. It is not percent-decoded, so encoded+ separators cannot become path separators. `*` is the only wildcard and+ cannot alter scheme or host matching.+- `<all_urls>` is equivalent to `*://*/*` and still means HTTP/HTTPS only.++URLs are parsed with the platform URL parser. The matcher lowercases and+IDNA-normalizes DNS names, removes a single trailing DNS dot, normalizes+default ports, rejects embedded credentials, and ignores fragments. Invalid+patterns or URLs fail closed. Exact host matching uses component equality;+`allowed.example.evil` and `evil.example/path/allowed.example` cannot match+`allowed.example`.++The same matcher and conformance corpus are used for `beforeCreate` resolver+eligibility, immediate activation, the initial guest HTTP request, and every+redirect hop. Tests cover host-vs-path confusion, suffix confusion,+credentials, arbitrary/default ports, IPv4/bracketed IPv6, IDNA, percent+encoding, query matching, and redirects.++Host permissions authorize network requests made by the plugin. They do not+authorize or reject a URL returned to the download engine, and they do not+filter non-HTTP lifecycle Hooks. A Hook-produced download URL passes the+independent output policy in section 9.4.++Guest HTTP uses only the Host-managed proxy route. A guest-supplied per-request+proxy is rejected even if it is syntactically valid; target host permission is+not proxy-endpoint permission. Adding guest-selected proxies requires a future+explicit capability, structured endpoint allowlist, credential policy, and+CONNECT/redirect threat review.++Host permissions constrain declared reach; they are not a DNS pinning system.+A broad wildcard is broad authority and must remain visible in consent UI.++## 8. Per-plugin scheduling and context isolation++Every plugin has one FIFO lane shared by Hook calls, command calls, lifecycle+callbacks, and deactivation. Capability responses complete inside the admitted+entry but do not open another guest entry.++Each entry propagates an immutable call-chain ID. Re-entry into a plugin already+present in that chain, including self-command calls and `A -> B -> A`, is+rejected before enqueue with `plugin.runtime.reentrant_call`; it is never left+to deadlock behind the current lane owner. Aborting an outer entry cancels its+queued descendants and invocation-owned capability operations. Forced worker+termination rejects every remaining entry in that chain.++Each worker message produced during a Hook includes `invocationId`. The bridge+accepts an invocation-scoped capability call only when that ID is the lane's+current invocation. Missing, stale, or mismatched IDs fail closed. Hook exit+also carries the ID, so a late exit from an aborted worker cannot settle the+next task.++The runtime stores invocation context by ID, not in a reusable unkeyed slot.+Context is cleared in `finally` after Hook exit, timeout, abort, worker crash,+or validation failure. Idle eviction and manual deactivation wait for the lane+to drain, except forced termination after an abort budget.++Different plugins may run in parallel. Two tasks targeting the same plugin are+serialized. This provides isolation without globally serializing downloads.++## 9. DTO and SDK contract++### 9.1 Validation boundary++Zod schemas in `src/shared/schemas/` are the source of truth for every Hook DTO,+worker enter/exit message, effect list, metadata value, and post-delivery+envelope. The host validates before posting to the worker and validates the+worker result before applying it. Unknown fields in protocol messages are+rejected; explicitly documented additive DTO fields remain allowed by their+schema version.++DTOs contain JSON values only. Strings, arrays, object depth, collection size,+and total encoded bytes are bounded. Numbers must be finite. Task snapshots are+copied; the guest never receives a live host object.++Schema version 1 uses these inclusive limits, measured after UTF-8 encoding:++| Item | Limit |+|---|---:|+| complete Hook enter or exit JSON message | 2 MiB |+| generic string / filesystem path | 64 KiB / 32 KiB |+| URLs per request / bytes per URL | 128 / 16 KiB |+| headers / header-name bytes / header-value bytes / total header bytes | 256 / 256 / 16 KiB / 256 KiB |+| JSON object depth / keys per object / items per array | 16 / 1,024 / 1,024 |+| metadata entries / key bytes / value bytes / snapshot bytes | 1,024 / 128 / 256 KiB / 1 MiB |+| error code / error message bytes | 128 / 16 KiB |++Values at the limit are valid; one byte or item beyond it is rejected. Shared+constants back both Zod schemas and conformance tests.++### 9.2 Common context++Every Hook receives all fields declared for its schema. The common fields are:++- `schemaVersion`, `invocationId`, and `taskId`;+- `sourceUrl`, `createdBy`, and `requestedAt` where applicable;+- `task`, a stable plugin task snapshot;+- `signal`, local to the invocation;+- `metadata`, scoped to `(taskId, pluginId)`.++The exact `PluginTaskSnapshotV1` public shape is:++```text+{+ schemaVersion: 1+ id, name+ type: "http" | "ftp" | "bt" | "magnet" | "metalink"+ kind: "direct" | "bt" | "hls" | "mux"+ status: "queued" | "fetching_metadata" | "metadata_ready" |+ "downloading" | "finalizing" | "seeding" | "paused" |+ "completed" | "error" | "removed"+ filePath, saveDir, filename+ progress, totalBytes, downloadedBytes, uploadedBytes, sizeWhenDone, fileCount+ createdAt, updatedAt, finishedAt: number | null+ category: string | null+ infoHash: string | null+ error: ErrorDescriptorV1 | null+}+```++All identifier/name/path fields use section 9.1 limits. Counts and byte values+are non-negative safe integers, times are non-negative integer Unix+milliseconds, and progress is finite in `[0, 100]`. `ErrorDescriptorV1` is+`{ code, message, detailKey: string | null, detailParams: Record<string,string>+| null }`; it never includes a stack or raw engine payload. The snapshot keeps+the SDK 2.0 compatibility fields `id`, `filePath`, and `saveDir`, and excludes+URIs, headers, proxy credentials, engine IDs, bridge sessions, mutable instance+payloads, and host objects.++### 9.3 Metadata parity++Pre-Hook `ctx.metadata` implements the complete six-method synchronous SDK+surface:++- `get(key)`, `has(key)`, `getAll()`, and `keys()` read the invocation snapshot;+- `set(key, value)` and `delete(key)` stage writes in pre-Hooks;+- post-Hooks receive the four-method readonly subset: `get`, `has`, `getAll`,+ and `keys`. They do not expose `set` or `delete`.++Staged writes update the worker snapshot immediately, so read-after-write is+deterministic. The worker returns the operations at Hook exit. The host then+validates keys, JSON values, quotas, role, phase, and permissions before adding+them to the chain. No fire-and-forget metadata or `ctx.update` request may race+Hook exit.++The asynchronous metadata operations used by the Worker/Host bridge are an+internal transport capability, not a top-level guest export. The only public+Hook metadata API is `ctx.metadata`, synchronous as required by+`@motrix/plugin-api` 2.0.++The guest `signal` is an invocation-local, readonly `AbortSignal` subset with+`aborted`, `reason`, `onabort`, and `addEventListener`/`removeEventListener` for+the `abort` event. Timeout, task cancellation, policy-generation change,+shutdown, or forced lane termination sets `aborted` once, assigns a bounded+stable reason, queues exactly one abort event before rejecting outstanding+capability promises, and causes later capability calls/effects to fail. Tests+use an injected scheduler to assert this ordering.++### 9.4 Hook-specific DTOs++`beforeCreate` receives the complete HTTP create request: URL list, save+directory, optional filename and connection count, ordered headers, optional+proxy, provenance, and timestamp. Valid effects are limited to those mutable+fields. The final URI list must be non-empty. Returned URLs do not need to match+the plugin's network `hostPermissions`; instead each passes the normal task+source admission policy used for a user-provided URL: supported scheme,+credential rejection, remote-operator/private-network policy, URL limits, and+role permission to mutate the request. Headers and task proxy effects pass the+same secret, proxy, and engine-option policy as a user request. This distinction+allows the locked Commons resolver to call only `commons.wikimedia.org` while+returning an independently validated `upload.wikimedia.org` download URL.++`beforeFinalize` receives:++- `sourceUrl`: a non-empty source identity. For HTTP-like tasks this is the+ admitted source URL. For BT/magnet tasks the Host always replaces any raw+ source with a non-secret canonical identifier: `urn:btih:<infoHash>` for a+ valid 40-hex or 32-base32 info hash, otherwise+ `urn:motrix:bt:<base64url(taskId)>`. Torrent file paths, raw magnet query+ strings, tracker URLs, and credentials never cross this boundary;+- `inputFilePath`: the completed artifact currently owned by Motrix;+- `filePath`: the proposed final target, retained for SDK 2.0 compatibility;+- `targetFilePath`: the same proposed target under its explicit name;+- the complete plugin task snapshot and common context.++Changing `filePath` changes only the target. It never changes the source and+does not itself assert that a replacement artifact exists.++The stable public delivery envelope is exactly:++```text+DeliveryEnvelopeV1 {+ schemaVersion: 1+ id: string+ occurrenceId: string+ occurredAt: number+}+```++`id` is the stable `deliveryId`; it and `occurrenceId` are opaque, non-empty,+at most 128 UTF-8 bytes, and `occurredAt` is a non-negative integer Unix+millisecond timestamp. Attempt number, lease, retry time, and breaker state are+host diagnostics and never enter this stable envelope.++`AfterCompleteContextV1` contains exactly `schemaVersion`, `invocationId`,+`taskId`, `task: PluginTaskSnapshotV1`, final `filePath`, `delivery:+DeliveryEnvelopeV1`, readonly `metadata`, and `signal`. `OnErrorContextV1` has+the same fields plus `error: ErrorDescriptorV1`. The persisted stable event+payload is `(task, filePath, delivery, error?)` and is byte-identical across+attempts/restart using canonical JSON with lexically sorted object keys;+`invocationId`, `metadata`, and `signal` are freshly bound+invocation wrappers. Protocol version 1 rejects unknown fields. Additive public+fields require a schema-version revision and a backwards-compatible SDK minor.++The `delivery` field is new relative to `@motrix/plugin-api` 2.0. The runtime+pins the published `@motrix/plugin-api` 2.1.0 contract for typed access to this+field. A compile-time fixture against that exact package and a real QuickJS+invocation both read `ctx.delivery.id`; a separate npm alias keeps the fixture+against the exact published 2.0 package. SDK 2.0 plugins remain runtime-compatible+because the field is additive and the locked builtins need no source changes.++### 9.5 Capability phase rules++The capability bridge applies effective permission, phase, invocation, and+path gates in that order. `ctx.update` and metadata writes are staged in+pre-Hooks and disallowed in post-Hooks. Task filesystem reads are unavailable+before creation and are bound to the invocation's task artifact thereafter.+Direct task rename is disallowed in `beforeFinalize`; the finalize commit+protocol owns all target mutations. FFmpeg output under the task save directory+is redirected to the invocation's private staging directory. Plugin storage+output stays within that plugin's storage sandbox. Other output paths fail.++## 10. `beforeFinalize` HookPlan and file commit protocol++### 10.1 HookPlan++A successful chain yields:++```text+HookPlan {+ taskId+ sourcePath+ targetPath+ sourceIdentity: ArtifactIdentity+ replacement?: { pluginId, stagedPath, identity: ArtifactIdentity }+ metadataOps[]+ contributors[]+}+```++`ArtifactIdentity` is a discriminated union:++```text+FileIdentity { kind: "file", size, sha256, platformFileId? }+DirectoryIdentity { kind: "directory", entryCount, totalBytes, treeSha256,+ platformFileId? }+```++A directory walk never follows symlinks or reparse points and rejects sockets,+devices, FIFOs, and other special entries. It records empty directories and+regular files. Entries are sorted by platform-tagged component encoding (POSIX+raw name bytes; Windows exact UTF-16LE code units) and hashed as length-prefixed+records: directory records contain type and relative path; file records+additionally contain unsigned 64-bit size and the file's SHA-256. The root+record, platform tag, and algorithm version are included. A target-filesystem+case/normalization collision fails. Open no-follow handles, before/after file+identity/stat checks, and a final tree rescan detect mutation during hashing or+copy; any change aborts or quarantines rather than accepting a mixed snapshot.+The default maximum is 1,000,000 entries;+exceeding it is `plugin.finalize.artifact_too_large`, not a partial plan.++`sourcePath` is captured before Hook execution and never guest-controlled.+`targetPath` must be a descendant of the task save directory and must not be+the save directory itself. The trusted filesystem adapter resolves path+equivalence using platform case rules and operates relative to held directory+handles with no-follow semantics (or a platform-equivalent anti-symlink-swap+primitive). A platform without an equivalent primitive fails closed. A lexical+or one-time `realpath` check alone is insufficient.++Before the first source identity read, finalization acquires an exclusive task+artifact-mutation lease, closes plugin filesystem admission for that task, and+successfully quiesces the engine and every Host-owned writer. A failed engine+stop or an unaccounted writer fails closed; logging and continuing is forbidden.+The lease and held no-follow artifact/directory handles remain owned through+`db_committed` and compensation, and through cleanup for every path cleanup may+delete. The lease coordinates all Motrix/engine writers; external changes are+detected by the identity checks below and are never deleted as known data.++A replacement exists only when one plugin produced a regular artifact through+its invocation-private staging adapter and the adapter recorded the logical+output-to-staged-path mapping. Directory scanning never guesses ownership.+File identities always contain size and SHA-256; directory identities always+contain entry count, total bytes, and tree SHA-256. A digest is never optional.+Zero mapped artifacts means the original source is selected.+More than one selected mapping, a symlink, directory/type mismatch, digest+change, or another plugin's artifact aborts the plan.++Immediately before and after every preserve, rename, copy, install, compensation,+or cleanup action, the adapter revalidates type and the complete recorded strong+identity through the held handles. After install it recomputes the complete+target `ArtifactIdentity` and matches it before writing `target_installed`, then+matches again immediately before the `db_committed` transaction. Any source,+target, rollback, or staging mismatch preserves all bytes, quarantines the+journal, and forbids recursive deletion.++Path branches are explicit:++- `source == target`, with no replacement, performs no file mutation;+- `source == target`, with a replacement, preserves the source before install;+- distinct source and target use no-replace install;+- file-vs-directory conflicts fail, and Windows case-equivalent paths use the+ `source == target` branch;+- cross-device (`EXDEV`) inputs use the target-local copy protocol below,+ never a best-effort rename.++The commit is no-clobber. The filesystem adapter must provide an atomic+no-replace install, such as a same-filesystem link/create-exclusive protocol or+a native rename-without-replace primitive. Node's overwrite-capable `rename`+is not sufficient. An unrelated target appearing at any time fails without+being modified.++The orchestrator builds the plan but performs no promotion or source rename.++### 10.2 Durable phases++The finalize journal uses these durable phases:++```text+prepared -> target_staged -> source_preserved? -> target_installed+ -> db_committed -> cleaned+```++Before filesystem mutation, Motrix durably writes `prepared` with normalized+paths, case-equivalence decisions, expected strong identities, plan identity,+the exact staging mapping, rollback path, and metadata operations. The database+commit/WAL durability point completes before any file action.++An original source on the target filesystem may be installed directly with a+native no-replace file or directory rename after `prepared`; this is the normal+large BitTorrent-directory path. Otherwise the selected artifact is+materialized under an invocation-private name inside the target filesystem.+Same-device regular files may hard-link; cross-device files copy. Directories+copy recursively without following links, use exclusive destination creation,+fsync every completed file, and fsync directories in postorder. Motrix then+recomputes the complete `ArtifactIdentity`, fsyncs the private item's parent,+and durably records `target_staged`. Partial file or directory copies are+private and can never be selected as a target.++When the target is the source path, or another destructive source move is+needed, the source is moved with no-replace semantics to the recorded+target-filesystem rollback path. Its file and affected directories are made+durable before `source_preserved` is recorded. The target-local temporary item+is then atomically installed with no-replace semantics; the target file and+parent directory are made durable before `target_installed` is recorded. For a+replacement, only the replacement temporary item is installed. The original+is never renamed over it. Every phase update occurs after the filesystem state+it names is durable; recovery tolerates a crash between the file action and+phase update by comparing the recorded identities.++For a same-filesystem direct source rename, `target_staged` is skipped and the+strongly identified source is installed no-replace as the target. Files fsync+themselves and the parent; directories fsync the renamed root and affected+parents before `target_installed`. On database failure or recovery compensation,+the adapter renames that exact identity back no-replace. A cross-device source+is retained unchanged until `db_committed` and uses the private-copy path.+When `source == target` and no replacement exists, Motrix revalidates and makes+that artifact durable, then advances directly from `prepared` to+`target_installed` without changing a path.++After target installation, one SQLite transaction commits all of the+following:++- final task path, terminal status, timestamps, and instance paths;+- task-file path rebasing;+- staged plugin metadata operations;+- the terminal occurrence;+- journal phase `db_committed`.++Only after that transaction succeeds may Motrix delete the rollback artifact,+the now-obsolete original source, target-local temporary files, and unused+staging. Each deletion first revalidates the current type and full identity+against the journal through the held handle; mismatch leaves the path untouched+and records cleanup quarantine. It fsyncs affected directories, records+`cleaned` only when all known cleanup is complete (or a mismatch is durably+quarantined), releases the mutation lease, and then removes or retains the+journal as the quarantine policy requires. Cleanup is idempotent.++### 10.3 Compensation and crash recovery++If target staging or installation fails, the source is restored from the+rollback path when necessary and the task remains recoverable. If the database+commit fails, Motrix removes only a target whose strong identity matches the+journal and restores the recorded source. A failed compensation leaves the+journal for startup recovery and never marks the task completed.++Startup recovery runs before polling, engine completion subscriptions, or post+delivery:++- `prepared`: verify source/replacement identities and retry or cancel safely;+- `target_staged`: verify the private temporary item and continue, or discard+ only that identity and recreate it;+- `source_preserved`: restore the source unless the verified install can+ continue;+- `target_installed`: finish the database transaction when target identity+ matches, otherwise compensate;+- `db_committed`: keep the committed target and finish cleanup;+- malformed, ambiguous, or identity-mismatched rows are quarantined and the+ task is marked with a recoverable finalize error without deleting bytes.++Recovery checks both the recorded phase and all possible adjacent-phase file+layouts so a crash before a phase update is unambiguous. Operations are+idempotent. No branch follows a symlink, overwrites an unknown path, or treats+equal size as identity. Fault-injection tests stop before and after every file+action, file/directory fsync, journal write, and SQLite commit on same-device,+cross-device, POSIX-case-sensitive, and Windows-case-folded adapters. The matrix+includes direct files, single-file torrents, multi-file torrent directories,+empty directories, the entry limit, symlink/reparse and special-file rejection,+and crashes during recursive copy and postorder directory fsync. It also injects+tree mutation before/after final rescan, `target_staged`, `target_installed`, the+database transaction, compensation, and every cleanup deletion; a mismatch must+retain bytes and quarantine.++## 11. Reliable `afterComplete` and `onError` delivery++Before the terminal transaction, the runtime snapshots candidates under a+registry generation read lease and validates a self-contained delivery DTO. It+revalidates that generation while entering the transaction, so a concurrent+policy change either precedes the snapshot or waits until commit. The same+SQLite transaction writes the task terminal state, stable occurrence, and,+subject to the bounded admission policy below, one post-delivery row per+snapshotted candidate, including plugin/executable+identity, required grants, the complete effective-permission snapshot,+`createdGeneration`, DTO, stable `deliveryId`, attempt count, next retry, and+status. A quota-rejected candidate updates the bounded tombstone instead.+Candidate+enumeration never happens later from the current registry. A malformed+candidate becomes an observable permanent row rather than disappearing.++The occurrence consumer only schedules rows that already exist and then marks+its own occurrence-consumer receipt. Replaying it is idempotent by the unique+`(occurrenceId, hook, pluginId, version, digest)` key. One failing plugin cannot+keep unrelated consumers or plugins undispatched.++An admitted delivery is at least once. Rows move through:++```text+pending -> delivering -> delivered+ \-> pending (retryable)+ \-> dead_letter (permanent/policy limit)+```++An expired `delivering` lease becomes `pending` on startup. Defaults are: a+two-minute lease, 64-row claim batch, eight global delivery workers, one active+delivery per plugin lane, 12 attempts, and a seven-day maximum active age.+Retry delay is `min(1 hour, 1 second * 2^(attempt-1))` multiplied by injected+jitter in `[0.75, 1.25]`. Attempts/age beyond the limit become `dead_letter`.+The scheduler rotates plugin IDs round-robin; one plugin cannot consume a whole+batch. Delivered and dead-letter rows are retained for 30 days, with aggregate+audit counters retained after pruning. These defaults are configurable within+schema-enforced safe bounds and tests use an injected clock and jitter source.++Version 1 configuration bounds are exact: lease 30 seconds-10 minutes; claim+batch 1-256; global workers 1-32; attempts 1-32; active age 1 hour-30 days;+base delay 100 ms-1 minute; delay cap 1 minute-24 hours and not below base;+terminal retention 1-90 days; breaker threshold 1-100, window 1 minute-1 hour,+and pause 1 minute-24 hours. Jitter remains the fixed `[0.75, 1.25]` range and+per-plugin concurrency remains one. Quotas may be lowered only: per-plugin+active rows 1-1,000 and bytes 2-64 MiB; global active rows 1,000-10,000 and+bytes 64-512 MiB; per-plugin terminal rows 1-4,000 and bytes 1-4 MiB; global+terminal rows 4,000-40,000 and bytes 4-40 MiB. Cross-field validation requires+each global bound to cover one per-plugin bound. The 1 GiB post hard budget and+128 MiB minimum core reserve cannot be raised/lowered respectively in v1.++Activation/worker crashes and timeouts are retryable; malformed persisted DTOs,+missing or changed executable identities, disabled/uninstalled/quarantined+plugins, and revoked required permissions are permanent and observable. A circuit+breaker opens after five retryable failures in ten minutes, pauses that plugin+for 15 minutes without consuming attempts, then permits one half-open probe;+success closes it and failure reopens it. A plugin failure is caught per row and+never prevents another plugin from running.++Admission reserves row and byte budget atomically in the terminal transaction.+Bytes are the uncompressed UTF-8 payload plus a fixed 512-byte row charge.+Defaults are 1,000 active rows and 64 MiB per plugin, and 10,000 active rows and+512 MiB globally. Terminal receipts are compacted to at most 1 KiB immediately+after delivery/dead-letter, with limits of 4,000 rows/4 MiB per plugin and+40,000 rows/40 MiB globally. The ledger releases exact active bytes on+compaction/prune and is reconciled from table contents at startup.++If either active quota is exhausted, Motrix does not write the full DTO or an+ordinary delivery row. The terminal transaction instead updates a fixed-size+quota tombstone bucket keyed by `(pluginId, hook, reason, UTC day)` with count,+first/last occurrence ID, and times; one bucket is at most 1 KiB. There are at+most 32 daily buckets per plugin/reason plus one lifetime rollup, 8,192 buckets+globally, and one global overflow rollup. Old buckets merge into the rollup, so+rejection reporting is bounded. This is an explicit observable admission+rejection, not a silently lost or falsely delivered Hook.++Terminal receipts normally retain for 30 days. When their row/byte quota is+needed, oldest receipts roll into the same bounded aggregates and are removed;+no active row is pruned. Post-delivery tables have a 1 GiB hard logical budget+and the database adapter reserves at least 128 MiB of configured capacity for+task, finalize-journal, occurrence, and quota-tombstone writes. A plugin payload+can never consume that reserve. At the global post hard cap, all new post+candidates take the bounded tombstone path while unrelated task terminal state+and occurrences still commit. Physical disk failure inside the core reserve is+a system-wide retryable storage error; it is never attributed to or hidden as a+plugin delivery result.++`deliveryId` is stable across attempts. Motrix records a receipt only after a+matching Hook exit. A process crash after the guest side effect but before the+receipt can cause redelivery; plugins that call external systems must use the+delivery ID with `storage.compareAndSet` or the external system's idempotency+facility.++Delivery DTOs do not depend on a live task row. Task deletion uses no cascade to+post deliveries. Upgrade never runs the superseded executable: its barrier+atomically moves that identity's nonterminal rows to permanent `superseded`,+then deletes the old bundle after the lifecycle transaction/journal commits.+Disable, uninstall, quarantine, or required-grant revocation similarly moves+affected rows to an explicit permanent reason. A grant addition may leave a row+pending, but its attempt receives only the intersection of its complete+creation-time permission snapshot and the current set. A same-executable grant+revocation aborts an active attempt and either retries with the reduced+intersection or becomes `permission_revoked` when a required grant is absent.+Row transition, bundle deletion, task deletion, and policy changes share the+registry/database transaction or a journaled two-phase coordinator, so their+order is explicit after restart. Tests cover grant add/revoke, upgrade,+disable, uninstall, and quarantine before claim, while delivering, and after a+guest side effect but before receipt.++## 12. Threat model and security requirements++Guest code, manifests, bundle messages, URLs, metadata, staged files, and+persisted recovery rows are untrusted inputs.++The runtime must defend against:++- host/path/port confusion and redirect escape in host permissions;+- guest-selected proxy endpoints bypassing network authority;+- path traversal, symlink swaps, alternate separators, case behavior, and+ sibling-prefix confusion in save/staging paths;+- stale or forged invocation messages using another task's context;+- a worker retaining references after timeout or idle disposal;+- oversized/deep DTOs, metadata quota evasion, and non-finite numbers;+- replacement/source aliasing and overwrite of existing user data;+- a crash between any filesystem and database phase;+- one plugin exhausting the post-delivery queue or circuit breaker;+- policy revocation racing an already active capability;+- shell-specific assembly accidentally bypassing a gate.++The host revalidates effective permissions for each activation and capability+lease against the live permission generation. Policy mutation uses the+exclusive barrier in section 6. A capability bridge never trusts SDK-side+`available` flags. Audit logs redact sensitive+headers, proxy credentials, secrets, and private source metadata. Absolute user+paths may be logged locally where required for recovery but never enter public+documentation or remote telemetry.++## 13. Error classification++Stable categories are used in logs, audit records, task error descriptors, and+post-delivery rows:++- `plugin.hook.input_invalid` and `plugin.hook.output_invalid`;+- `plugin.hook.not_registered`, `plugin.hook.timeout`, and+ `plugin.hook.worker_crashed`;+- `plugin.hook.permission_denied` and `plugin.http.host_not_permitted`;+- `plugin.hook.concurrent_protocol_violation` for a lane/ID violation;+- `plugin.runtime.reentrant_call` and `plugin.runtime.permission_generation_stale`;+- `plugin.finalize.plan_invalid`, `target_exists`, `staging_invalid`,+ `artifact_too_large`, `file_commit_failed`, `db_commit_failed`, and+ `recovery_quarantined`;+- `plugin.post.retryable`, `plugin.post.permanent`,+ `plugin.post.admission_rejected`, and+ `plugin.post.dead_letter`, including explicit `queue_capacity`,+ `identity_missing`, `superseded`, and `permission_revoked` reasons.++Series Hook errors retain their role-dependent fail-open/fail-closed policy.+Post-Hook errors never change a terminal task's status. Error messages exposed+to plugins are bounded and do not include another plugin's details.++## 14. Compatibility++The runtime supports `@motrix/plugin-api` 2.0 context shapes. Existing plugins+that return the context object continue to work; effects are taken from+`ctx.update` and metadata operations. New additive DTO fields do not change the+meaning of existing fields.++Manifest v1 keeps its released browser-pattern port behavior: a pattern without+a port matches explicit and default ports. Changing that behavior or adding a+port grammar requires a new manifest schema version. The public SDK continues+to expose metadata only through Hook context: six methods in pre-Hooks and four+readonly methods in post-Hooks.++Reliable post delivery is an additive runtime feature for SDK 2.0 plugins, but+typed access to `ctx.delivery` requires the pinned compatible SDK minor defined+in section 9.4. Runtime protocol schemas, Worker objects, generated declarations,+and the public package version must pass one field-parity test before release.++`ctx.filePath` in `beforeFinalize` remains the proposed final target, matching+the published filename-template plugin. `inputFilePath` and `targetFilePath`+make the previously implicit distinction explicit.++Plugins that do not declare Hooks keep their activation and command behavior.+Missing optional runtime components may remain a no-op only in isolated unit+tests. Production Electron and Server assembly must provide the runtime,+database, recovery, and delivery dependencies or fail startup.++## 15. Observability++Every invocation emits structured start/finish records with Hook, task ID,+plugin ID/version, invocation ID, role, queue delay, activation time, runtime,+duration, outcome, error category, and effect counts. Sensitive payload values+are not logged.++Finalize audit records include plan ID, source/target classification,+replacement owner, journal phase, promoted/discarded bytes, compensation, and+recovery result. Post-delivery metrics include pending/delivering/delivered/+dead-letter counts, attempt latency, retries, and oldest pending age.++Electron and Server use the same event names and field meanings. Tests assert+both assembly paths, not merely the core factory.++## 16. Electron and Server assembly++Each shell performs this order:++1. open and migrate the database;+2. discover plugins and create the capability host and `PluginHost`;+3. create exactly one shared plugin Hook runtime;+4. register the runtime's occurrence consumer;+5. recover finalize journals;+6. restore task/session state without opening producers;+7. inject the same runtime into create, finalize, media, recovery, and error+ paths;+8. drain materialized deliveries and occurrences, then open polling and engine+ completion producers;+9. on shutdown, stop admission, drain accepted work within budget, persist+ leases, then stop plugin workers.++The shells may differ in notification adapters and path-policy inputs, but not+in Hook eligibility, DTOs, scheduling, commit, recovery, or delivery policy.+Both call one shared startup coordinator; ordering tests assert its exact events.++## 17. Builtin acceptance matrix++Tests use the build output fetched from `scripts/builtins.lock.json`, never a+rewritten fixture or source copy.++| Plugin | Locked release | Required real Hook acceptance |+|---|---:|---|+| `motrix.scraper-hook` | 1.0.0 | `beforeCreate` performs HEAD and GET through the real HTTP capability and rewrites a nested relative archive URL. |+| `motrix.url-resolver` | 1.0.0 | `beforeCreate` keeps its API requests and redirects inside Commons host permission, then rewrites to the returned `upload.wikimedia.org` URL after independent output-policy validation. |+| `motrix.filename-template` | 1.1.1 | `beforeFinalize` reads `ctx.metadata.getAll()`, renders nested metadata, and commits an automatic no-clobber rename. |++The matrix also covers idle disposal followed by finalization, restart+recovery, two tasks completing concurrently through the same plugin, complete+`afterComplete`/`onError` DTOs, replacement output not overwritten by the+original, transaction failure/compensation, crash recovery, malicious+host-vs-path URLs, and Electron/Server assembly parity.++Because the locked builtins do not declare post-Hooks, a separately built SDK+2.0 compatibility plugin must execute all four Hooks through real QuickJS+without reading `delivery`; the SDK >=2.1 fixture executes both post-Hooks and+reads stable `ctx.delivery.id`. These are runtime bundles, not mocked callbacks.++## 18. Normative invariants++- **H1**: a Hook candidate is never derived only from the active plugin set.+- **H2**: at most one host-initiated guest entry runs in a plugin VM.+- **H3**: every invocation-scoped worker message carries the current+ `invocationId` and cannot act on another invocation.+- **H4**: every Hook DTO and result is runtime-validated at both trust+ boundaries.+- **H5**: one canonical structured matcher governs HTTP `beforeCreate`+ resolver selection and every guest HTTP request/redirect.+- **H6**: later plugins see only validated effects from successful earlier+ plugins.+- **H7**: pre-Hook `ctx.metadata` implements get/has/getAll/keys/set/delete with+ deterministic read-after-write behavior; post-Hooks expose only the four+ readonly methods.+- **H8**: before its first identity read the source is quiesced under an+ exclusive task artifact-mutation lease, held through commit/compensation and+ identity-checked cleanup; unknown changed bytes are never deleted.+- **H9**: the orchestrator never promotes staging or renames the source.+- **H10**: a finalize commit never overwrites an unrelated existing target.+- **H11**: a replacement is installed instead of, never underneath, the+ original source rename.+- **H12**: task terminal state, task-file paths, plugin metadata, occurrence,+ and journal commit phase change in one SQLite transaction.+- **H13**: every filesystem-crossing finalize has a durable pre-mutation+ journal and an idempotent recovery path.+- **H14**: an admitted post-Hook delivery has stable identity and survives+ restart until delivered or explicitly dead-lettered; a quota rejection is+ represented only by the bounded observable tombstone contract.+- **H15**: one plugin's post-Hook failure cannot block another plugin or an+ unrelated occurrence consumer.+- **H16**: Electron and Server construct and inject the same core runtime.+- **H17**: Hook-produced download URLs use normal task-source output policy,+ never the plugin HTTP host-permission predicate.+- **H18**: finalizer and post-Hook eligibility never depends on an HTTP source+ URL or the active plugin set.+- **H19**: every destructive file action is preceded by a durable strong+ identity and followed by file/directory durability before its journal phase.+- **H20**: terminal task state, occurrence, and every candidate's delivery row+ or bounded quota-admission decision are committed together.+- **H21**: permission generation changes close admission and abort stale+ capability leases before the new policy is published.+- **H22**: lane call cycles fail before enqueue and cannot deadlock.+- **H23**: regular files and directory trees have discriminated strong+ identities and equally journaled same-device/cross-device recovery.+- **H24**: active payloads, terminal receipts, and quota tombstones have atomic+ per-plugin/global row and byte bounds; post data cannot consume core reserve.+- **H25**: a historical delivery can use only creation-time permissions+ intersected with a live generation lease, and an upgrade never runs old code.++## 19. Acceptance criteria++Implementation is complete only when:++1. all invariants above have focused positive and negative tests;+2. the three locked builtin archives first pass locked size, SHA-256, and+ signature assertions, then pass the real Hook matrix through `PluginHost`,+ QuickJS, and the runtime;+3. real compiled SDK 2.0 four-Hook and pinned SDK >=2.1 delivery fixtures pass+ Worker/Host/schema field-parity and QuickJS invocation tests;+4. permission-confusion, idle/reactivation, concurrency, restart, file and BT+ directory replacement/rename, same/cross-device database failure,+ crash-phase, historical-grant/upgrade, post-delivery quota, and shell-parity+ tests pass;+5. schema parity, boundary, filename, lint, type-check, complete unit test,+ Electron build, and Server build gates pass;+6. an independent adversarial review finds no unresolved correctness,+ security, data-integrity, SDK-contract, or shell-drift issue.++## 20. Initial adversarial design review record++An independent read-only reviewer returned **FAIL** on 2026-08-31. All eleven+findings were accepted; none were rejected. This table records disposition and+rationale rather than hiding the failed first pass.++| ID | Severity | Disposition | Resolution and rationale |+|---|---|---|---|+| C1 | Critical | Resolved — accepted | Network `hostPermissions` now govern guest requests only; Hook output URLs use independent task-source policy, allowing the locked Commons resolver safely. |+| H2 | High | Resolved — accepted | HTTP source matching selects only `beforeCreate` resolvers; finalizer/post candidates use task activation and per-call capability checks, so FTP/BT are not lost. |+| H3 | High | Resolved — accepted | Strong mandatory identities, recorded staging mappings, no-follow handles, no-replace install, target-local cross-device copies, fsync points, path-equivalence branches, and adjacent-phase recovery are normative. |+| H4 | High | Resolved — accepted | Candidate snapshots and delivery rows now commit with terminal state; exact executable retention and lifecycle/deletion ordering are defined. |+| H5 | High | Resolved — accepted | Startup restores journals and task/session state before draining post deliveries; both shells use one ordered coordinator. |+| H6 | High | Resolved — accepted | Guest-selected HTTP proxies are rejected; only Host-managed proxy routing is allowed. |+| H7 | High | Resolved — accepted | Manifest v1 omits a port and matches any valid port; IPv6, query, percent encoding, and a shared matcher corpus are explicit. |+| H8 | High | Resolved — accepted | A permission-generation barrier closes admission, cancels leases, drains/terminates the lane, and rejects stale messages. |+| M9 | Medium | Resolved — accepted | Call-chain propagation rejects self/cyclic plugin re-entry before queueing and defines cancellation propagation. |+| M10 | Medium | Resolved — accepted | Pre/post metadata surfaces are distinguished, bridge metadata is internal, exact DTO limits and QuickJS AbortSignal ordering are specified. |+| M11 | Medium | Resolved — accepted | Lease, backoff, fairness, attempt/age limits, circuit breaker, queue cap, retention, task independence, and deterministic test controls are specified. |++The review also found the English and Chinese drafts substantively equivalent.++### First re-review++The same independent reviewer returned **FAIL** after the first revision. It+kept C1, H2, H5-H7, and M9 closed, but reopened H3/H4/H8/M10/M11 as four+concrete High findings. All four were accepted; none were rejected.++| ID | Severity | Disposition | Resolution and rationale |+|---|---|---|---|+| N1 | High | Resolved — accepted | `ArtifactIdentity` now covers files and deterministic directory trees; same/cross-device no-replace install, recursive durability/recovery, and real multi-file BT cases are explicit. |+| N2 | High | Resolved — accepted | Creation generation is audit-only; historical authority is the creation/current permission intersection, while upgrade atomically supersedes old rows and never runs old code. |+| N3 | High | Resolved — accepted | The stable delivery envelope, post contexts, task/error snapshots, strict schema/version behavior, minimum public SDK minor, compile fixture, and real QuickJS assertion are exact. |+| N4 | High | Resolved — accepted | Atomic per-plugin/global row and byte quotas cover active and terminal data; terminal payloads compact, cap hits use bounded tombstones, and plugin storage cannot consume the core reserve. |++A second re-review is required after these paired revisions; implementation+planning remains blocked until it returns PASS.++### Second re-review++The reviewer closed every original and N1-N4 finding but returned **FAIL** for+one new High. It was accepted; no finding was rejected.++| ID | Severity | Disposition | Resolution and rationale |+|---|---|---|---|+| N5 | High | Resolved — accepted | Finalization now requires successful engine/Host quiescence and an exclusive artifact-mutation lease before identity capture; complete identities are rechecked around every action and before commit/delete, while mismatches preserve bytes and quarantine. Mutation-injection, exact config-boundary, and SDK 2.0 post compatibility tests were also added. |++A third re-review is required; implementation planning remains blocked until it+returns PASS.++### Third re-review and gate result++The independent reviewer returned **PASS**. C1, H2-H8, M9-M11, and N1-N5 are+all closed with no new Critical or High finding. The reviewer confirmed paired+language equivalence and deterministic acceptance expectations. The residual+implementation risk is platform support for held no-follow handles, directory+durability, and atomic no-replace primitives; the specification requires an+unsupported platform to fail closed. The design-review gate is therefore+closed and implementation planning may begin.diff --git a/docs/plugin-hook-runtime.zh-CN.md b/docs/plugin-hook-runtime.zh-CN.mdnew file mode 100644index 00000000..7d3dd02a--- /dev/null+++ b/docs/plugin-hook-runtime.zh-CN.md@@ -0,0 +1,901 @@+# 插件 Hook 运行时规范++状态:Motrix 2.x 插件 Hook 执行的规范性文档。独立设计评审已于 2026-08-31+通过。++本文定义 Motrix 如何发现、激活、调度、校验、提交、恢复并观测插件+Hook。Electron 和 Server 主机必须遵循同一套规则。++## 1. 问题陈述++Motrix 提供四个任务生命周期 Hook:`beforeCreate`、`beforeFinalize`、+`afterComplete` 和 `onError`。可靠实现必须同时跨越已安装 manifest、可能+已经回收的 QuickJS Worker、Guest 侧 SDK 对象、Host capability、任务与+SQLite 生命周期,以及两套独立装配的应用外壳。++仅能加载 bundle 或看到注册事件,并不能证明 Hook 可用。符合本规范的+运行时必须让真实构建后的插件包通过真实 `PluginHost` 和 QuickJS Worker+执行,传输完整且经过校验的上下文,在正确的提交点应用效果,并能在插件+或主进程中止后安全恢复。++本规范解决以下故障类别:++- 针对原始 URL 文本而不是 URL 结构匹配权限;+- 插件在分派时未激活,导致 Hook 被静默漏掉;+- 同一个插件 VM 同时收到多个任务上下文;+- SDK 类型中存在但 Worker 对象没有实现的方法;+- 不完整或未经校验的 Hook DTO 穿越 Worker 边界;+- 插件替代产物被原下载产物覆盖;+- 最终化失败后文件、元数据和任务状态相互漂移;+- post-Hook 丢失、没有稳定身份的重复投递或阻塞其他插件;+- Electron 与 Server 构造出不同的运行时。++## 2. 非目标++- 本文不增加新的 manifest Hook 名称或 role band。+- 本文不授予插件有效权限集合以外的 capability。+- 本文不承诺任意外部副作用 exactly-once。在 Guest、远程服务和 SQLite+ 之间没有共享事务时,这一承诺无法实现。Motrix 提供 at-least-once+ 投递和稳定 delivery ID;需要去重的外部操作必须使用该 ID。+- 本文不允许插件在任务保存目录之外完成最终化,也不允许覆盖无关的既有+ 路径。+- 本文不把社区插件提升为可信插件。签名、安装同意、可选授权和保留 role+ 策略仍是相互独立的门禁。+- 本文不改变内置插件供应链。内置插件仍以签名且哈希锁定的 `.moext`+ 发布包被消费。++## 3. 术语++**候选插件(Candidate)**:已启用、manifest 声明了目标 Hook,且激活条件+与 host permission 都匹配事件的已安装插件。++**活动插件(Active plugin)**:已经拥有就绪 QuickJS Worker 并完成 Guest+入口注册的候选插件。++**调用(Invocation)**:从 Host 准入到 Worker 退出 Hook 的一次调用,由+唯一 `invocationId` 标识。++**插件通道(Plugin lane)**:同一个插件 VM 中所有 Host 发起的 Guest 入口+共享的 FIFO 串行边界。++**工作上下文(Working context)**:经过校验的 DTO,加上串行 Hook 链中更早+插件已经接受的效果。++**Hook 效果(Hook effects)**:单次调用产生的上下文 patch 和元数据操作。+效果只是数据,不由 Worker 直接提交。++**HookPlan**:成功执行 `beforeFinalize` 链后得到的不可变计划,包含当前源+产物、最终目标、可选替代产物、元数据效果和归属信息。++**最终化日志(Finalize journal)**:持久记录 HookPlan 以及文件提交已经到达+哪个阶段的数据库行。++**Occurrence**:与任务终态在同一事务中写入的既有持久事件。++**Post delivery**:持久化的 `(occurrence, hook, plugin version)` 组合,对应+一次 `afterComplete` 或 `onError` 投递。++**权限代次(Permission generation)**:针对插件启用状态、授权、隔离状态与+可执行身份单调递增的 registry 值。Guest 入口和每个 capability lease 都绑定+到一个代次。++## 4. 架构边界++Host 中立的运行时位于 `src/core/`。它负责候选发现、结构化权限匹配、每插件+通道、DTO 校验、Hook 编排、最终化计划与恢复,以及 post-delivery 调度。+它可以依赖 shared schema 和注入的文件系统/数据库适配器,但不得依赖+Electron、renderer 或 Server 模块。++`src/shared/` 保存纯 Zod schema,以及由 schema 推导的 Hook DTO 与 Worker+消息类型。这里不得包含 I/O、timer 或 Host import。++`src/main/` 与 `src/server/` 调用同一个 core 运行时工厂。每个外壳只提供+路径、日志、capability host、任务查询/持久化、文件操作和退出协调。命令+处理器内部不得再次构造 orchestrator。++QuickJS Worker 负责执行 Guest 代码并暴露 SDK 表面,但不决定候选资格、+权限、提交顺序或恢复。Capability bridge 校验每一条 Worker 消息,并把它+绑定到当前 invocation。++## 5. 状态机与顺序++### 5.1 插件生命周期++```text+Inactive -> Activating -> Active -> Quiescing -> Inactive+ | |+ +-> Faulted +-> Faulted+```++- 候选发现与 active 集合相互独立。+- Hook 候选在需要时立即激活。+- 同一插件的并发激活请求合并为一个请求。+- 只有 Worker 就绪且运行时需要的已声明 Hook 全部注册后,才发布 `Active`。+- 只有插件通道没有执行中或排队中的 Guest 入口,并且没有仍在执行的自有+ capability 操作时,才能执行空闲回收。+- 被回收的插件可以为最终化或 post delivery 重新激活;inactive 不等于+ ineligible。+- Worker 崩溃只使当前插件调用失败,随后销毁该 Worker,后续重试可创建+ 干净的新 Worker。++### 5.2 串行 pre-Hook 链++```text+校验输入 -> 发现候选 -> 按 role/id 排序+ -> 对每个候选:激活 -> 进入插件通道 -> 调用 -> 校验效果+ -> 合并到工作上下文 -> 生成结果/HookPlan+```++顺序先按 role band,再按插件 ID 字典序。后执行的插件能看到前面插件已经+接受的工作上下文,但看不到其他任务的上下文,也看不到失败插件未提交的+效果。++`pre-resolve`、`resolve` 和 `post-process` 失败会中止链;`enrich` 与+`audit` 失败会被隔离,链继续执行。`audit` 插件不能产生变更效果。++### 5.3 任务终态与 post-Hook 顺序++```text+快照候选插件+ -> 在同一事务提交任务终态 + occurrence + post-delivery 行+ -> 每插件通道投递符合条件的行+ -> 写入成功 receipt 或 retry/dead-letter 状态+```++候选物化属于任务终态 SQLite 事务;真正 Hook 调用可以异步。Occurrence+consumer 只调度已经物化的行,插件失败不能长期占用共享 dispatcher。++## 6. 候选发现与即时激活++候选发现读取当前 `PluginRegistry`,而不是 `PluginHost` 的 active map。只有+同时满足以下条件时,插件才是候选:++1. 已安装、兼容、启用且未隔离;+2. `contributes.hooks` 声明了目标 Hook;+3. 有效 activation set 匹配任务类型或 URL 协议,命令事件另行处理;+4. manifest 中的 Hook role 符合信任与分类策略;+5. 对 HTTP `beforeCreate` resolver,至少一个结构化 `hostPermissions` pattern+ 匹配用来选择它的 source URL;+6. 必需 capability 仍在插件有效权限集合内。++`beforeFinalize`、`afterComplete` 与 `onError` 只根据 Hook 声明、task-type+activation、role 和 capability grant 选择。它们的任务源可以是 FTP、magnet+或其他非 HTTP 标识,绝不能通过 HTTP host pattern 过滤;这些 Hook 发起的+每次真实 HTTP capability 调用仍需独立校验。++Hook contribution 本身构成隐式的按需激活来源。`beforeCreate` 后被回收的+候选,会在 `beforeFinalize` 时再次激活。Post delivery 也会在调用前激活+记录中的候选身份。激活失败按该插件的 Hook 失败分类,不会把候选静默删除。++Candidate executable identity 是 `(pluginId, version, executable digest)`。+Candidate/delivery snapshot 另行保存 `createdGeneration` 和创建时完整 effective+permission set;该 generation 仅用于审计,不是未来 execution lease。升级、+启用/停用、隔离、卸载或授权变化进入独占 policy barrier:关闭新 Guest+与 capability 准入,推进代次,中止自有操作,等待 lane drain,或在预算后+终止 Worker,之后才能激活新状态。每次 capability 调用必须取得 live+generation lease 或携带当前 generation;旧 live lease fail closed。历史+post-delivery attempt 只得到+`createdEffectivePermissions intersect currentEffectivePermissions`,后来新增的+grant 绝不能扩大历史 delivery 权限。++## 7. 结构化 host permission 匹配++Host permission 只解析一次,形成结构化 matcher。禁止针对整个原始 URL+执行正则匹配。++支持的 manifest pattern 由以下组件组成:++```text+scheme://host/path-glob+```++- `scheme` 是 `http`、`https` 或 `*`;`*` 仅表示 HTTP 与 HTTPS。+- `host` 是 `*`、规范化后的精确 DNS/IP host,或 `*.example.test`。+ 子域通配符只匹配该后缀 host 及其子域。+- Manifest v1 pattern 没有 port 组件。scheme/host 匹配时,任意合法显式或+ 默认端口都匹配,以保持已发布插件与浏览器 match-pattern 语义。未来若要+ 限制端口,必须升级 manifest schema 版本。+- 方括号包裹的 IPv6 literal 只能精确匹配,内部禁止 wildcard。+- `path-glob` 针对 WHATWG 序列化的 `pathname + search` 匹配,并把百分号+ 转义中的十六进制字母转为大写。禁止 percent-decode,编码后的分隔符不能+ 变成路径分隔符。`*` 是唯一 wildcard,不能改变 scheme 或 host 比较。+- `<all_urls>` 等价于 `*://*/*`,仍然只表示 HTTP/HTTPS。++URL 使用平台 URL parser 解析。Matcher 对 DNS 名称执行小写和 IDNA+规范化,去掉一个结尾点,规范化默认端口,拒绝内嵌凭据并忽略 fragment。+无效 pattern 或 URL 一律 fail closed。精确 host 使用组件相等判断;+`allowed.example.evil` 和 `evil.example/path/allowed.example` 都不能匹配+`allowed.example`。++`beforeCreate` resolver eligibility、即时激活、Guest 初始 HTTP 请求和每次+redirect hop 必须使用同一个 matcher 与 conformance corpus。测试覆盖+host/path 混淆、后缀混淆、凭据、任意/默认端口、IPv4/方括号 IPv6、IDNA、+percent encoding、query matching 和 redirect。++Host permission 授权的是插件发起的网络请求,不授权也不拒绝交给下载引擎的+返回 URL,也不筛选非 HTTP 生命周期 Hook。Hook 产生的下载 URL 执行 9.4 节+独立的 output policy。++Guest HTTP 只允许使用 Host 管理的 proxy route。即使语法合法,也要拒绝+Guest 指定的 per-request proxy;target host permission 不等于 proxy endpoint+permission。若未来允许 Guest 选择 proxy,必须新增显式 capability、结构化+endpoint allowlist、凭据策略以及 CONNECT/redirect 威胁评审。++Host permission 约束声明的可达范围,但不是 DNS pinning 系统。宽泛通配符+就是宽泛授权,必须继续在 consent UI 中明确展示。++## 8. 每插件调度与上下文隔离++每个插件只有一个 FIFO 通道,由 Hook、命令、lifecycle callback 和+deactivation 共享。Capability response 在已准入入口内部完成,但不会打开+另一个 Guest 入口。++每个入口传播不可变 call-chain ID。若目标插件已在该调用链中,包括 self+command 和 `A -> B -> A`,在入队前就以 `plugin.runtime.reentrant_call` 拒绝,+绝不能排在当前 lane owner 后形成死锁。中止外层入口会取消其排队中的后代+与 invocation 自有 capability;强制终止 Worker 会拒绝该链的所有剩余入口。++Hook 执行期间产生的每一条 Worker 消息都包含 `invocationId`。Bridge 只接受+ID 等于通道当前 invocation 的调用。缺失、过期或不一致的 ID 一律 fail+closed。Hook exit 也携带该 ID,因此已中止 Worker 的迟到 exit 不能完成下一+个任务。++运行时按 ID 保存 invocation context,不复用无键的全局 slot。Hook exit、+timeout、abort、Worker crash 或校验失败后,都在 `finally` 中清除 context。+除了 abort budget 到期后的强制终止,空闲回收和手动停用都等待通道排空。++不同插件可以并行。同一插件面对两个任务时必须串行。因此并发下载不会被+全局串行化,同时上下文也不会串用。++## 9. DTO 与 SDK 契约++### 9.1 校验边界++`src/shared/schemas/` 中的 Zod schema 是所有 Hook DTO、Worker enter/exit+消息、效果列表、metadata value 和 post-delivery envelope 的唯一真相来源。+Host 在发给 Worker 前校验 DTO,并在应用 Worker 结果前再次校验。协议消息+拒绝未知字段;由 schema 版本明确声明的新增 DTO 字段除外。++DTO 只包含 JSON value。字符串、数组、对象深度、集合大小和总编码字节数+都有限制;数字必须有限。任务快照使用副本,Guest 永远拿不到 Host 活对象。++Schema version 1 使用以下包含边界值的限制,均在 UTF-8 编码后计量:++| 项目 | 上限 |+|---|---:|+| 完整 Hook enter 或 exit JSON 消息 | 2 MiB |+| 通用字符串 / 文件系统路径 | 64 KiB / 32 KiB |+| 单请求 URL 数 / 单 URL 字节 | 128 / 16 KiB |+| header 数 / name 字节 / value 字节 / header 总字节 | 256 / 256 / 16 KiB / 256 KiB |+| JSON 对象深度 / 单对象 key 数 / 单数组 item 数 | 16 / 1,024 / 1,024 |+| metadata 条目 / key 字节 / value 字节 / snapshot 字节 | 1,024 / 128 / 256 KiB / 1 MiB |+| error code / error message 字节 | 128 / 16 KiB |++恰好达到上限有效,多一个字节或 item 即拒绝。Shared 常量同时驱动 Zod+schema 与 conformance test。++### 9.2 公共上下文++每个 Hook 都收到其 schema 声明的所有字段。公共字段包括:++- `schemaVersion`、`invocationId` 和 `taskId`;+- 适用时的 `sourceUrl`、`createdBy` 和 `requestedAt`;+- 稳定的插件任务快照 `task`;+- invocation 私有的 `signal`;+- 作用域为 `(taskId, pluginId)` 的 `metadata`。++公开的 `PluginTaskSnapshotV1` 精确 shape 是:++```text+{+ schemaVersion: 1+ id, name+ type: "http" | "ftp" | "bt" | "magnet" | "metalink"+ kind: "direct" | "bt" | "hls" | "mux"+ status: "queued" | "fetching_metadata" | "metadata_ready" |+ "downloading" | "finalizing" | "seeding" | "paused" |+ "completed" | "error" | "removed"+ filePath, saveDir, filename+ progress, totalBytes, downloadedBytes, uploadedBytes, sizeWhenDone, fileCount+ createdAt, updatedAt, finishedAt: number | null+ category: string | null+ infoHash: string | null+ error: ErrorDescriptorV1 | null+}+```++所有 identifier/name/path 使用 9.1 节上限。Count 与 byte value 是非负 safe+integer;时间是非负 integer Unix millisecond;progress 是 `[0, 100]` 内 finite+number。`ErrorDescriptorV1` 是 `{ code, message, detailKey: string | null,+detailParams: Record<string,string> | null }`,绝不包含 stack 或原始 engine+payload。快照保留 SDK 2.0 兼容字段 `id`、`filePath`、`saveDir`,但排除 URI、+header、proxy credential、engine ID、bridge session、可变 instance payload+与 Host 对象。++### 9.3 Metadata 一致性++Pre-Hook `ctx.metadata` 实现完整的六方法同步 SDK 表面:++- `get(key)`、`has(key)`、`getAll()` 和 `keys()` 读取 invocation snapshot;+- `set(key, value)` 与 `delete(key)` 在 pre-Hook 中暂存写入;+- post-Hook 只能拿到 `get`、`has`、`getAll`、`keys` 四方法只读子集,不暴露+ `set` 或 `delete`。++暂存写入必须立即更新 Worker snapshot,确保 read-after-write 确定性。Worker+在 Hook exit 时返回这些操作;Host 校验 key、JSON value、quota、role、phase+和 permission 后,才把它们加入链。任何 fire-and-forget metadata 或+`ctx.update` 调用都不能与 Hook exit 竞态。++Worker/Host bridge 使用的异步 metadata 操作属于内部 transport capability,+不是 Guest 顶层 export。唯一公开的 Hook metadata API 是 `ctx.metadata`,按+`@motrix/plugin-api` 2.0 要求保持同步。++Guest `signal` 是 invocation 私有的只读 `AbortSignal` 子集,包含 `aborted`、+`reason`、`onabort` 以及 `abort` 事件的 `addEventListener`/+`removeEventListener`。Timeout、任务取消、permission generation 变化、退出或+强制 lane 终止只设置一次 `aborted`,赋予有界稳定 reason,并在拒绝未完成的+capability promise 前排队一个 abort 事件;之后的 capability 调用与效果一律+失败。测试使用注入 scheduler 断言该顺序。++### 9.4 各 Hook DTO++`beforeCreate` 接收完整 HTTP 创建请求:URL 列表、保存目录、可选文件名与+连接数、有序 headers、可选 proxy、来源和时间。有效效果仅能修改这些可变+字段,最终 URI 列表不能为空。返回 URL 不必匹配插件的网络+`hostPermissions`,而是执行与用户输入 URL 相同的常规 task source admission+policy:支持的 scheme、拒绝凭据、远程 operator/private-network policy、URL+限制,以及用于修改请求的 role permission。Header 与任务 proxy 效果执行与+用户请求相同的 secret、proxy 和 engine-option policy。这样,锁定的 Commons+resolver 可以只请求 `commons.wikimedia.org`,同时返回经过独立验证的+`upload.wikimedia.org` 下载 URL。++`beforeFinalize` 接收:++- `sourceUrl`:非空的来源标识。HTTP 类任务使用已准入的 source URL;BT/magnet+ 任务由 Host 强制把任何原始来源替换为不含秘密的规范标识:有效的 40 位十六+ 进制或 32 位 base32 info hash 使用 `urn:btih:<infoHash>`,否则使用+ `urn:motrix:bt:<base64url(taskId)>`。torrent 文件路径、原始 magnet query、+ tracker URL 与凭据绝不能跨越此边界;+- `inputFilePath`:Motrix 当前拥有的已完成产物;+- `filePath`:建议的最终目标,保留用于 SDK 2.0 兼容;+- `targetFilePath`:同一个目标的显式字段名;+- 完整插件任务快照和公共上下文。++修改 `filePath` 只会改变目标,不会改变源,也不表示替代产物一定存在。++稳定公开 delivery envelope 精确定义为:++```text+DeliveryEnvelopeV1 {+ schemaVersion: 1+ id: string+ occurrenceId: string+ occurredAt: number+}+```++`id` 就是稳定 `deliveryId`;它与 `occurrenceId` 都是 opaque、非空且最多 128+UTF-8 bytes;`occurredAt` 是非负 integer Unix millisecond。Attempt number、+lease、retry time 与 breaker state 属于 Host diagnostics,绝不能进入稳定+envelope。++`AfterCompleteContextV1` 精确包含 `schemaVersion`、`invocationId`、`taskId`、+`task: PluginTaskSnapshotV1`、最终 `filePath`、`delivery:+DeliveryEnvelopeV1`、只读 `metadata` 与 `signal`。`OnErrorContextV1` 含相同+字段,另有 `error: ErrorDescriptorV1`。持久稳定 event payload 是+`(task, filePath, delivery, error?)`,通过 object key 字典序排列的 canonical+JSON 在所有 attempt/restart 保持 byte-identical;`invocationId`、`metadata` 与+`signal` 是每次新绑定的 invocation wrapper。+Protocol version 1 拒绝 unknown field;新增公开字段需要 schema-version revision+和向后兼容 SDK minor。++`delivery` 相对 `@motrix/plugin-api` 2.0 是新增字段。Runtime 现已 pin 正式发布的+`@motrix/plugin-api` 2.1.0,插件可通过类型安全接口读取该字段。针对这一精确版本的+compile-time fixture 与真实 QuickJS invocation 都会读取 `ctx.delivery.id`;另一个+npm alias 则让兼容性 fixture 继续针对精确发布的 2.0 包。SDK 2.0 插件在 runtime+上仍兼容,因为字段是 additive,锁定 builtins 无需改源码。++### 9.5 Capability phase 规则++Capability bridge 依次执行 effective permission、phase、invocation 和 path+门禁。`ctx.update` 与 metadata write 在 pre-Hook 中暂存,在 post-Hook 中+禁用。创建前不能读取任务文件;此后读取只绑定当前 invocation 的任务产物。+`beforeFinalize` 中禁止直接 rename,所有目标变更由最终化提交协议拥有。+指向任务 saveDir 的 FFmpeg 输出被重定向到 invocation 私有 staging;插件+storage 输出只能留在该插件 storage sandbox;其他输出路径一律失败。++## 10. `beforeFinalize` HookPlan 与文件提交协议++### 10.1 HookPlan++成功的 Hook 链生成:++```text+HookPlan {+ taskId+ sourcePath+ targetPath+ sourceIdentity: ArtifactIdentity+ replacement?: { pluginId, stagedPath, identity: ArtifactIdentity }+ metadataOps[]+ contributors[]+}+```++`ArtifactIdentity` 是判别联合:++```text+FileIdentity { kind: "file", size, sha256, platformFileId? }+DirectoryIdentity { kind: "directory", entryCount, totalBytes, treeSha256,+ platformFileId? }+```++目录遍历绝不跟随 symlink 或 reparse point,并拒绝 socket、device、FIFO 与其他+特殊 entry;空目录与普通文件都要记录。Entry 按带平台标记的 component+encoding 排序(POSIX 使用原始 name byte,Windows 使用精确 UTF-16LE code+unit),再使用带长度前缀的 record 计算摘要:目录 record 包含 type 和 relative+path,文件 record 还包含 unsigned 64-bit size 与文件 SHA-256。Root record、+platform tag 与算法版本也进入摘要。Target filesystem 上出现大小写/规范化+冲突即失败。Open no-follow handle、文件 identity/stat 前后检查与最终 tree+rescan 用来发现 hash/copy 期间的变更;任何变化都中止或 quarantine,不能接受+混合 snapshot。默认最多 1,000,000 个 entry;超过时返回+`plugin.finalize.artifact_too_large`,不能生成部分计划。++`sourcePath` 在 Hook 执行前由 Host 捕获,Guest 无权修改。`targetPath` 必须是+任务 saveDir 的后代,不能等于 saveDir 本身。可信 filesystem adapter 按平台+大小写规则解析路径等价性,并相对持有的 directory handle 使用 no-follow+语义(或平台等价的 anti-symlink-swap primitive)执行操作。平台若无等价原语+则 fail closed;仅做 lexical 或一次性 `realpath` 检查不够。++第一次读取 source identity 前,finalization 必须取得独占 task artifact-mutation+lease,关闭该 task 的 plugin filesystem admission,并成功 quiesce engine 与+所有 Host 自有 writer。Engine stop 失败或存在未计入 writer 时必须 fail closed;+禁止只记录日志后继续。Lease 与持有的 no-follow artifact/directory handle 保持+到 `db_committed` 和补偿结束;对 cleanup 可能删除的每条路径则保持到其清理+完成。Lease 协调所有 Motrix/engine writer;外部变化由下述 identity check+发现,绝不能当作已知数据删除。++只有当某插件通过 invocation 私有 staging adapter 生成普通文件,且 adapter+记录了 logical output 到 staged path 的映射时,才存在 replacement;禁止扫描+目录猜测 owner。文件身份始终包含 size 与 SHA-256;目录身份始终包含 entry+count、total bytes 与 tree SHA-256,digest 不得省略。没有选中映射时选择原+source;出现多个选中映射、symlink、目录/+类型不符、digest 变化或使用其他插件产物时,计划中止。++每次 preserve、rename、copy、install、compensation 或 cleanup 动作前后,+adapter 都必须通过持有的 handle 重新验证 type 与完整强身份。Install 后、写入+`target_installed` 前重新计算并匹配完整 target `ArtifactIdentity`,并在+`db_committed` transaction 紧前再次匹配。Source、target、rollback 或 staging+任一身份不匹配时保留全部 byte、quarantine journal,并禁止递归删除。++路径分支必须显式处理:++- `source == target` 且没有 replacement 时,不执行文件变更;+- `source == target` 且有 replacement 时,安装前保存 source;+- source 与 target 不同时使用 no-replace install;+- file/directory 冲突失败;Windows 大小写等价路径走 `source == target` 分支;+- 跨设备(`EXDEV`)输入走下述 target-local copy 协议,禁止 best-effort rename。++提交语义是 no-clobber。Filesystem adapter 必须提供原子 no-replace install,+例如同文件系统 link/create-exclusive 协议,或原生 rename-without-replace。+Node 会覆盖的 `rename` 不满足要求。任何时刻出现的无关 target 都只能导致+失败,不能被修改。++Orchestrator 只生成计划,不执行 promote 或 source rename。++### 10.2 持久阶段++最终化 journal 使用以下持久阶段:++```text+prepared -> target_staged -> source_preserved? -> target_installed+ -> db_committed -> cleaned+```++任何文件系统变更之前,Motrix 都会持久写入 `prepared`,其中包含规范化路径、+大小写等价判断、预期强身份、plan identity、精确 staging mapping、rollback+path 和 metadata 操作。Database commit/WAL durability point 必须先于任何文件+操作完成。++Target filesystem 上的原 source 可以在 `prepared` 后通过原生 no-replace+file/directory rename 直接安装;这是大型 BT 目录的正常路径。其他情况把选中+artifact 物化到 target filesystem 的 invocation 私有名称下。同设备普通文件+可以 hard-link,跨设备文件 copy;目录在不跟随 link 的前提下递归 copy,使用+独占 destination creation,fsync 每个完成文件,再按 postorder fsync 目录。+之后重新计算完整 `ArtifactIdentity`、fsync 私有项父目录并持久记录+`target_staged`。部分文件或目录 copy 始终私有,绝不能成为 target。++当 target 就是 source path,或需要其他破坏性 source move 时,source 通过+no-replace 语义移至记录的 target-filesystem rollback path。文件及受影响目录+持久后记录 `source_preserved`。随后用 no-replace 原子安装 target-local 临时+项;target 文件和父目录持久后记录 `target_installed`。有 replacement 时只+安装 replacement 临时项,原 source 永远不会覆盖它。每个 phase 在其代表的+文件系统状态已经持久后更新;如果崩溃发生在文件动作与 phase update 之间,+恢复逻辑使用记录的强身份消除歧义。++同文件系统直接 source rename 会跳过 `target_staged`,把强身份 source 以+no-replace 安装为 target。文件需要 fsync 自身与父目录;目录在+`target_installed` 前 fsync 已重命名 root 与受影响父目录。数据库失败或恢复+补偿时,adapter 把该精确身份 no-replace rename 回去。跨设备 source 在+`db_committed` 前保持不变,并走私有 copy 路径。+当 `source == target` 且没有 replacement 时,Motrix 重新验证 artifact 并确保+durable,然后不改变路径,直接从 `prepared` 前进到 `target_installed`。++目标安装完成后,一个 SQLite 事务同时提交:++- 任务最终路径、终态、时间戳和 instance path;+- task-file path rebase;+- 暂存的插件 metadata 操作;+- terminal occurrence;+- journal phase `db_committed`。++只有事务成功后,Motrix 才能删除 rollback artifact、已经过时的原 source、+target-local 临时文件与未使用 staging。每次删除前都要通过持有的 handle,把+当前 type 与完整身份和 journal 重验;不一致时保持路径不动并记录 cleanup+quarantine。随后 fsync 受影响目录;只有全部已知清理完成(或 mismatch 已持久+quarantine)才记录 `cleaned`,释放 mutation lease,并按 quarantine policy+删除或保留 journal。清理操作必须幂等。++### 10.3 补偿与崩溃恢复++Target staging 或安装失败时,Motrix 在必要时从 rollback path 恢复 source,+并让任务保持可恢复状态。数据库提交失败时,只删除强身份与 journal 匹配的+target,并恢复记录的 source。补偿也失败时保留 journal 供启动恢复,绝不能+把任务标为 Completed。++启动恢复必须早于 polling、引擎完成事件订阅和 post delivery:++- `prepared`:校验 source/replacement 身份后安全重试或取消;+- `target_staged`:校验私有临时项后继续;否则只丢弃该身份并重建;+- `source_preserved`:除非已校验的安装可以继续,否则恢复 source;+- `target_installed`:目标身份匹配时完成数据库事务,否则补偿;+- `db_committed`:保留已经提交的 target 并完成清理;+- 畸形、歧义或身份不符的行进入 quarantine,任务设置可恢复的最终化错误,+ 但不删除任何字节。++恢复同时检查记录 phase 与所有相邻 phase 的可能文件布局,因此崩溃先于 phase+update 时仍无歧义。操作必须幂等;任何分支都不得跟随 symlink、覆盖未知路径+或把相同 size 当成身份。Fault-injection 测试在每个文件动作、文件/目录 fsync、+journal write 与 SQLite commit 前后停止,并覆盖同设备、跨设备、POSIX 大小写+敏感与 Windows 大小写折叠 adapter。矩阵包含 direct file、单文件 torrent、+多文件 torrent 目录、空目录、entry 上限、symlink/reparse 与 special-file+拒绝,以及递归 copy 和 postorder 目录 fsync 中途崩溃。+还要在 final rescan、`target_staged`、`target_installed`、database transaction、+compensation 与每次 cleanup deletion 前后注入 tree mutation;mismatch 必须+保留 byte 并 quarantine。++## 11. 可靠投递 `afterComplete` 与 `onError`++终态事务开始前,runtime 在 registry generation read lease 下快照候选并校验+自包含 delivery DTO;进入事务时再次验证该 generation,使并发 policy change+要么发生在快照前,要么等待提交。同一个 SQLite 事务写入任务终态、稳定+occurrence,并在下述有界 admission policy 允许时为每个候选写一条+post-delivery 行;行中包含 plugin/executable 身份、required grant、创建时+完整 effective-permission snapshot、`createdGeneration`、DTO、稳定+`deliveryId`、attempt count、next retry 和 status。Quota 拒绝的候选改为更新+有界 tombstone。禁止之后再根据当前 registry+枚举候选;畸形候选形成可观测 permanent row,不能静默消失。++Occurrence consumer 只调度已存在的行,再写入自己的 occurrence-consumer+receipt。它通过唯一 `(occurrenceId, hook, pluginId, version, digest)` key 保持+重放幂等。一个插件失败不能让无关 consumer 或插件保持 undispatched。++已准入 delivery 的语义是 at least once,状态如下:++```text+pending -> delivering -> delivered+ \-> pending(可重试)+ \-> dead_letter(永久错误/策略上限)+```++启动时,过期的 `delivering` lease 变回 `pending`。默认值是:两分钟 lease、+64 行 claim batch、8 个全局 delivery worker、每插件 lane 同时 1 个 delivery、+12 次 attempt、最长 7 天 active age。重试延迟为+`min(1 hour, 1 second * 2^(attempt-1))`,再乘注入的 `[0.75, 1.25]` jitter;+超过 attempt/age 上限进入 `dead_letter`。Scheduler 按 plugin ID round-robin,+一个插件不能占满 batch。Delivered/dead-letter 行保留 30 天,删除后保留聚合+audit counter。这些默认值可在 schema 安全边界内配置;测试注入 clock 与+jitter source。++Version 1 配置边界是精确值:lease 30 秒-10 分钟;claim batch 1-256;全局+worker 1-32;attempt 1-32;active age 1 小时-30 天;base delay 100 ms-1 分钟;+delay cap 1 分钟-24 小时且不得低于 base;terminal retention 1-90 天;breaker+threshold 1-100、window 1 分钟-1 小时、pause 1 分钟-24 小时。Jitter 固定为+`[0.75, 1.25]`,per-plugin concurrency 固定为 1。Quota 只能调低:每插件+active row 1-1,000、byte 2-64 MiB;全局 active row 1,000-10,000、byte+64-512 MiB;每插件 terminal row 1-4,000、byte 1-4 MiB;全局 terminal row+4,000-40,000、byte 4-40 MiB。Cross-field validation 要求每个 global bound+至少容纳一个 per-plugin bound。Version 1 中 post 1 GiB hard budget 不可提高,+core reserve 128 MiB minimum 不可降低。++激活失败、Worker crash 和 timeout 可重试;持久 DTO 畸形、精确 executable+identity 缺失或变化、插件停用/卸载/隔离,以及 required permission 撤销属于永久且+可观测错误。Circuit breaker 在十分钟内 5 次可重试失败后打开,暂停该插件+15 分钟且不消耗 attempt,之后允许一次 half-open probe;成功关闭,失败重开。+每行独立捕获插件错误,不能阻止其他插件执行。++Admission 在终态事务中原子预留 row 与 byte budget。Byte 按未压缩 UTF-8+payload 加固定 512-byte row charge 计算。默认每插件 1,000 active row/64 MiB,+全局 10,000 active row/512 MiB。Delivery/dead-letter 后立即把 terminal receipt+压缩到最多 1 KiB;每插件上限 4,000 row/4 MiB,全局 40,000 row/40 MiB。+Ledger 在 compact/prune 时释放精确 active byte,并在启动时根据表内容 reconcile。++任一 active quota 耗尽时,不写完整 DTO 或普通 delivery row。终态事务改为+更新按 `(pluginId, hook, reason, UTC day)` 唯一的固定 quota tombstone bucket,+其中只有 count、首尾 occurrence ID 与时间;单 bucket 最大 1 KiB。每个+plugin/reason 最多 32 个 daily bucket 加一个 lifetime rollup,全局最多 8,192+bucket 加一个 global overflow rollup;旧 bucket 合并进 rollup,所以 rejection+记录有界。这是显式、可观测 admission rejection,不是静默漏投或假 delivered。++Terminal receipt 通常保留 30 天;需要 row/byte quota 时,最旧 receipt 汇总进+同一有界 aggregate 后删除,绝不 prune active row。Post-delivery table 具有+1 GiB hard logical budget,database adapter 至少保留 128 MiB 配置容量供 task、+finalize journal、occurrence 与 quota tombstone 写入,plugin payload 不能消耗+该 reserve。达到全局 post hard cap 后,所有新 post candidate 走有界 tombstone,+无关任务终态与 occurrence 仍可提交。若物理磁盘连 core reserve 都失败,则是+全系统可重试 storage error,不能归因或伪装为 plugin delivery 结果。++`deliveryId` 在所有 attempt 中保持稳定。只有收到匹配的 Hook exit 后,+Motrix 才记录 receipt。若主进程在 Guest 外部副作用完成后、receipt 写入前+崩溃,可能发生重新投递;调用外部系统的插件必须使用 delivery ID 配合+`storage.compareAndSet` 或外部系统的幂等机制。++Delivery DTO 不依赖存活的 task row;删除任务不得 cascade 删除 post delivery。+升级绝不运行 superseded executable:barrier 原子地把该身份的 nonterminal row+转成 permanent `superseded`,lifecycle transaction/journal 提交后再删除旧 bundle。+停用、卸载、隔离或撤销 required grant 同样把受影响行转成显式 permanent+reason。Grant add 可以让 row 保持 pending,但 attempt 只能获得创建时完整权限+快照与当前集合的交集。同 executable 的 grant revoke 会中止 active attempt,+随后用缩小的交集重试;required grant 已缺失时转为 `permission_revoked`。+Row transition、bundle deletion、task deletion 与 policy change 必须共享+registry/database transaction,或使用 journaled two-phase coordinator,使重启+后的顺序仍明确。测试覆盖 claim 前、delivering 中、Guest side effect 后但+receipt 前的 grant add/revoke、upgrade、disable、uninstall 与 quarantine。++## 12. 权限威胁模型与安全要求++Guest 代码、manifest、bundle 消息、URL、metadata、staged file 和持久恢复+行都属于不可信输入。++运行时必须防御:++- host/path/port 混淆和 redirect 越权;+- Guest 选择 proxy endpoint 绕过网络授权;+- save/staging path 中的路径穿越、symlink 交换、不同分隔符、大小写行为和+ sibling-prefix 混淆;+- 使用另一任务上下文的过期或伪造 invocation 消息;+- Worker 在 timeout 或空闲回收后继续持有引用;+- 超大/过深 DTO、metadata quota 绕过和非有限数字;+- replacement/source 别名和对既有用户数据的覆盖;+- 任意文件阶段与数据库阶段之间的崩溃;+- 单插件耗尽 post-delivery queue 或 circuit breaker;+- policy 撤销与已激活 capability 发生竞态;+- 外壳特有装配意外绕过门禁。++Host 每次激活和取得 capability lease 时都针对 live permission generation+重新校验 effective permission;policy 变化使用第 6 节的独占 barrier。+Capability bridge 不信任 SDK 侧 `available` 标志。Audit log 必须去除敏感+header、proxy credential、secret+和私有 source metadata。恢复所需的用户绝对路径可以写入本地日志,但不能+进入公开文档或远程遥测。++## 13. 错误分类++日志、audit record、任务错误描述和 post-delivery 行使用稳定分类:++- `plugin.hook.input_invalid` 与 `plugin.hook.output_invalid`;+- `plugin.hook.not_registered`、`plugin.hook.timeout` 和+ `plugin.hook.worker_crashed`;+- `plugin.hook.permission_denied` 与 `plugin.http.host_not_permitted`;+- `plugin.hook.concurrent_protocol_violation`,表示通道/ID 违规;+- `plugin.runtime.reentrant_call` 与+ `plugin.runtime.permission_generation_stale`;+- `plugin.finalize.plan_invalid`、`target_exists`、`staging_invalid`、+ `artifact_too_large`、`file_commit_failed`、`db_commit_failed`、+ `recovery_quarantined`;+- `plugin.post.retryable`、`plugin.post.permanent`、+ `plugin.post.admission_rejected`、+ `plugin.post.dead_letter`,并包含显式 `queue_capacity`、`identity_missing`、+ `superseded`、`permission_revoked` 原因。++串行 Hook 错误继续使用按 role 区分的 fail-open/fail-closed 策略。Post-Hook+错误不能改变任务终态。暴露给插件的错误消息必须有界,且不得包含其他插件+的细节。++## 14. 兼容性++运行时支持 `@motrix/plugin-api` 2.0 context shape。继续返回 context 对象的+既有插件保持可用;实际效果来自 `ctx.update` 与 metadata operation。新增+DTO 字段是 additive,不改变既有字段含义。++Manifest v1 保持已发布的浏览器 pattern 端口语义:不带 port 的 pattern 同时+匹配显式和默认端口。改变该语义或新增 port grammar 必须升级 manifest schema+版本。公开 SDK 继续只通过 Hook context 暴露 metadata:pre-Hook 六方法,+post-Hook 四个只读方法。++可靠 post delivery 对 SDK 2.0 插件是 additive runtime feature,但类型化读取+`ctx.delivery` 需要 9.4 节定义并 pin 的 compatible SDK minor。Runtime protocol+schema、Worker object、generated declaration 与公开 package version 必须在发布+前通过同一个 field-parity test。++`beforeFinalize` 中的 `ctx.filePath` 继续表示建议的最终 target,与已发布的+filename-template 插件保持一致。`inputFilePath` 和 `targetFilePath` 把此前隐含+的区别显式化。++未声明 Hook 的插件继续使用原有激活和命令行为。缺失可选运行时组件只能在+隔离单元测试中作为 no-op。生产 Electron/Server 装配必须提供 runtime、+database、recovery 和 delivery 依赖,否则启动失败。++## 15. 可观测性++每次 invocation 都产生结构化 start/finish 记录,包括 Hook、任务 ID、插件+ID/version、invocation ID、role、排队延迟、激活时间、runtime、执行时间、+结果、错误分类和效果数量,但不记录敏感 payload value。++最终化 audit 记录 plan ID、source/target 分类、replacement owner、journal+phase、promote/discard 字节、补偿和恢复结果。Post-delivery 指标包含+pending/delivering/delivered/dead-letter 数量、attempt latency、retry 次数和+最老 pending age。++Electron 与 Server 使用相同事件名和字段含义。测试必须断言两套装配,而不+只是测试 core factory。++## 16. Electron 与 Server 装配++每个外壳按以下顺序执行:++1. 打开并迁移数据库;+2. 发现插件,创建 capability host 与 `PluginHost`;+3. 创建且只创建一个共享插件 Hook runtime;+4. 注册 runtime 的 occurrence consumer;+5. 恢复 finalize journal;+6. 恢复 task/session 状态,但不开放 producer;+7. 把同一个 runtime 注入 create、finalize、media、recovery 和 error 路径;+8. drain 已物化 delivery 与 occurrence,然后开放 polling 和引擎 completion+ producer;+9. 退出时停止准入,在预算内 drain 已接受工作,持久化 lease,最后停止插件+ Worker。++两套外壳可以在通知适配器和 path-policy 输入上不同,但 Hook eligibility、+DTO、调度、提交、恢复和投递策略必须完全一致。+两者调用同一个启动协调器;顺序测试断言其精确事件。++## 17. 内置插件验收矩阵++测试必须使用 `scripts/builtins.lock.json` 获取的真实构建产物,不能使用重新+编写的 fixture 或源码副本。++| 插件 | 锁定发布版 | 必须通过的真实 Hook 验收 |+|---|---:|---|+| `motrix.scraper-hook` | 1.0.0 | `beforeCreate` 通过真实 HTTP capability 执行 HEAD 与 GET,并把嵌套的相对 archive URL 改写为目标 URL。 |+| `motrix.url-resolver` | 1.0.0 | `beforeCreate` 的 API 请求与 redirect 始终位于 Commons host permission 内,再把独立 output policy 验证后的 `upload.wikimedia.org` URL 写回。 |+| `motrix.filename-template` | 1.1.1 | `beforeFinalize` 读取 `ctx.metadata.getAll()`,渲染嵌套 metadata,并提交自动 no-clobber rename。 |++矩阵还必须覆盖:空闲回收后的最终化、重启恢复、两个任务通过同一插件并发+完成、完整 `afterComplete`/`onError` DTO、替代产物不被原产物覆盖、事务+失败/补偿、崩溃恢复、恶意 host-vs-path URL,以及 Electron/Server 装配+对称性。++由于锁定 builtin 都未声明 post-Hook,必须另行构建一个 SDK 2.0 compatibility+plugin,让它通过真实 QuickJS 执行四个 Hook 但不读取 `delivery`;SDK >=2.1+fixture 执行两个 post-Hook 并读取稳定 `ctx.delivery.id`。二者都是 runtime+bundle,不能用 mocked callback。++## 18. 规范性不变量++- **H1**:Hook 候选不能只从 active plugin set 推导。+- **H2**:一个插件 VM 最多只能运行一个 Host 发起的 Guest 入口。+- **H3**:所有 invocation-scoped Worker 消息都携带当前 `invocationId`,且+ 不能操作其他 invocation。+- **H4**:每个 Hook DTO 与结果都在两个信任边界执行运行时校验。+- **H5**:HTTP `beforeCreate` resolver selection 与每次 Guest HTTP+ request/redirect 只使用一个结构化 matcher。+- **H6**:后执行插件只能看到更早成功插件已经校验的效果。+- **H7**:pre-Hook `ctx.metadata` 实现 get/has/getAll/keys/set/delete,并具有+ 确定性 read-after-write 行为;post-Hook 只暴露四个只读方法。+- **H8**:source 在首次 identity read 前必须 quiesce 并取得独占 task artifact+ mutation lease;lease 持有到 commit/compensation 和 identity-checked cleanup,+ 未知变化的 byte 绝不能删除。+- **H9**:orchestrator 不 promote staging,也不 rename source。+- **H10**:最终化提交不能覆盖无关的既有 target。+- **H11**:replacement 取代 source rename,绝不能位于 source rename 之下+ 被其覆盖。+- **H12**:任务终态、task-file path、plugin metadata、occurrence 与 journal+ commit phase 在一个 SQLite 事务中变化。+- **H13**:所有跨文件系统边界的最终化,在变更前都有持久 journal 和幂等+ 恢复路径。+- **H14**:已准入的 post-Hook delivery 身份稳定,并在重启后继续存在,直到+ delivered 或明确 dead-letter;quota rejection 只由有界、可观测 tombstone+ contract 表示。+- **H15**:一个插件的 post-Hook 失败不能阻塞另一个插件或无关 occurrence+ consumer。+- **H16**:Electron 与 Server 构造并注入同一个 core runtime。+- **H17**:Hook 产生的下载 URL 走普通 task-source output policy,绝不使用+ 插件 HTTP host-permission predicate。+- **H18**:finalizer/post-Hook eligibility 不依赖 HTTP source URL 或 active+ plugin set。+- **H19**:每个破坏性文件动作前都有持久强身份,动作后在 journal phase+ 更新前完成文件/目录 durability。+- **H20**:任务终态、occurrence,以及每个候选的 delivery row 或有界+ quota-admission decision 在同一事务提交。+- **H21**:permission generation 变化必须先关闭准入并中止旧 capability+ lease,再发布新 policy。+- **H22**:lane call cycle 在入队前失败,不能形成死锁。+- **H23**:普通文件与目录树具有判别式强身份,并拥有同等 journaled+ same/cross-device recovery。+- **H24**:active payload、terminal receipt 与 quota tombstone 均有原子的+ per-plugin/global row 和 byte 上限;post data 不能消耗 core reserve。+- **H25**:历史 delivery 只能使用创建时权限与 live generation lease 的交集,+ 升级绝不运行旧代码。++## 19. 验收标准++只有同时满足以下条件,实现才算完成:++1. 上述所有不变量都有聚焦的正例与负例测试;+2. 三个锁定 builtin archive 先通过锁定 size、SHA-256 与签名断言,再通过+ `PluginHost`、QuickJS 与 runtime 的真实 Hook 矩阵;+3. 真实编译的 SDK 2.0 四 Hook fixture 与 pinned SDK >=2.1 delivery fixture+ 通过 Worker/Host/schema field parity 与 QuickJS invocation 测试;+4. 权限混淆、idle/reactivation、并发、重启、文件与 BT 目录+ replacement/rename、same/cross-device 数据库失败、crash phase、历史+ grant/upgrade、post-delivery quota 与 shell parity 测试全部通过;+5. schema parity、boundary、filename、lint、type-check、完整单元测试、+ Electron build 与 Server build 全部门禁通过;+6. 独立对抗性审查不存在尚未解决的正确性、安全、数据完整性、SDK 契约或+ 双外壳漂移问题。++## 20. 初次独立对抗设计评审记录++独立只读评审者在 2026-08-31 给出 **FAIL**。11 条 finding 全部接受,没有+拒绝项。本表记录裁决与理由,不隐藏初次评审失败。++| ID | 严重度 | 裁决 | 解决方式与理由 |+|---|---|---|---|+| C1 | Critical | 已解决——接受 | 网络 `hostPermissions` 现在只约束 Guest 请求;Hook 输出 URL 使用独立 task-source policy,使锁定 Commons resolver 可以安全工作。 |+| H2 | High | 已解决——接受 | HTTP source matching 只选择 `beforeCreate` resolver;finalizer/post 候选使用 task activation 与逐调用 capability 检查,FTP/BT 不再漏掉。 |+| H3 | High | 已解决——接受 | 强身份改为必选,并规范记录 staging mapping、no-follow handle、no-replace install、target-local 跨设备 copy、fsync 点、路径等价分支和相邻 phase 恢复。 |+| H4 | High | 已解决——接受 | Candidate snapshot 与 delivery row 和任务终态一起提交,并定义精确 executable retention 与 lifecycle/delete 顺序。 |+| H5 | High | 已解决——接受 | 启动时先恢复 journal 与 task/session,再 drain post delivery;两套外壳使用同一个有序 coordinator。 |+| H6 | High | 已解决——接受 | 拒绝 Guest 自选 HTTP proxy,只允许 Host 管理的 proxy route。 |+| H7 | High | 已解决——接受 | Manifest v1 省略 port 并匹配所有合法端口;明确 IPv6、query、percent encoding 和共享 matcher corpus。 |+| H8 | High | 已解决——接受 | Permission-generation barrier 关闭准入、取消 lease、drain/终止 lane,并拒绝旧代次消息。 |+| M9 | Medium | 已解决——接受 | 传播 call chain,在排队前拒绝 self/cyclic plugin re-entry,并定义取消传播。 |+| M10 | Medium | 已解决——接受 | 区分 pre/post metadata 表面,bridge metadata 为内部接口,并定义 DTO 精确上限与 QuickJS AbortSignal 顺序。 |+| M11 | Medium | 已解决——接受 | 明确 lease、backoff、公平性、attempt/age、breaker、queue cap、retention、task independence 与确定性测试控制。 |++评审也确认中英文初稿实质等价。++### 第一次复审++同一独立评审者在第一轮修订后仍返回 **FAIL**。C1、H2、H5-H7 与 M9 保持+关闭,但 H3/H4/H8/M10/M11 被重新归纳成 4 条 High finding。四条全部接受,+没有拒绝项。++| ID | 严重度 | 裁决 | 解决方式与理由 |+|---|---|---|---|+| N1 | High | 已解决——接受 | `ArtifactIdentity` 覆盖文件和确定性目录树,并明确 same/cross-device no-replace install、递归 durability/recovery 和真实多文件 BT case。 |+| N2 | High | 已解决——接受 | 创建 generation 仅用于审计;历史权限是创建/当前权限交集,升级原子 supersede 旧 row 且绝不运行旧代码。 |+| N3 | High | 已解决——接受 | 稳定 delivery envelope、post context、task/error snapshot、严格 schema/version 行为、最低公开 SDK minor、compile fixture 与真实 QuickJS 断言均已精确定义。 |+| N4 | High | 已解决——接受 | 原子 per-plugin/global row/byte quota 覆盖 active 与 terminal data;terminal payload compact,cap hit 使用有界 tombstone,plugin storage 不能消耗 core reserve。 |++这些成对修订后必须进行第二次复审;返回 PASS 前,实施计划仍被门禁阻断。++### 第二次复审++评审者关闭了所有原始 finding 与 N1-N4,但针对一个新 High 返回 **FAIL**。+该 finding 已接受,没有拒绝项。++| ID | 严重度 | 裁决 | 解决方式与理由 |+|---|---|---|---|+| N5 | High | 已解决——接受 | Finalization 现在要求 identity capture 前成功 quiesce engine/Host 并取得独占 artifact-mutation lease;每个动作前后、commit/delete 前重验完整身份,mismatch 保留 byte 并 quarantine。同时补入 mutation injection、精确配置边界和 SDK 2.0 post compatibility 测试。 |++必须进行第三次复审;返回 PASS 前,实施计划仍被门禁阻断。++### 第三次复审与门禁结论++独立评审者返回 **PASS**。C1、H2-H8、M9-M11 与 N1-N5 全部关闭,没有新的+Critical 或 High finding;评审确认两种语言实质等价,验收期望可以确定判定。+残余实施风险是平台是否真正支持 held no-follow handle、目录 durability 与原子+no-replace primitive;规范已要求不支持的平台 fail closed。因此设计评审门禁+关闭,可以开始实施计划。diff --git a/electron-builder.json b/electron-builder.jsonindex 4beb82c9..58e6d644 100644--- a/electron-builder.json+++ b/electron-builder.json@@ -118,6 +118,10 @@"from": "./packages/native-host/dist/darwin-${arch}/motrix-native-host","to": "bin/motrix-native-host"},+ {+ "from": "./packages/finalize-fs/dist/darwin-${arch}/motrix-finalize-fs",+ "to": "bin/motrix-finalize-fs"+ },{"from": "./extra/tray/","to": "./extra/tray/",@@ -151,6 +155,10 @@"from": "./packages/native-host/dist/win32-${arch}/motrix-native-host.exe","to": "bin/motrix-native-host.exe"},+ {+ "from": "./packages/finalize-fs/dist/win32-${arch}/motrix-finalize-fs.exe",+ "to": "bin/motrix-finalize-fs.exe"+ },{"from": "./extra/tray/","to": "./extra/tray/",@@ -211,6 +219,10 @@"from": "./packages/native-host/dist/linux-${arch}/motrix-native-host","to": "bin/motrix-native-host"},+ {+ "from": "./packages/finalize-fs/dist/linux-${arch}/motrix-finalize-fs",+ "to": "bin/motrix-finalize-fs"+ },{"from": "./extra/tray/","to": "./extra/tray/",diff --git a/electron-builder.signing.json b/electron-builder.signing.jsonindex 5bfe3bda..ea7f7766 100644--- a/electron-builder.signing.json+++ b/electron-builder.signing.json@@ -116,6 +116,10 @@"from": "./packages/native-host/dist/darwin-${arch}/motrix-native-host","to": "bin/motrix-native-host"},+ {+ "from": "./packages/finalize-fs/dist/darwin-${arch}/motrix-finalize-fs",+ "to": "bin/motrix-finalize-fs"+ },{"from": "./extra/tray/","to": "./extra/tray/",@@ -149,6 +153,10 @@"from": "./packages/native-host/dist/win32-${arch}/motrix-native-host.exe","to": "bin/motrix-native-host.exe"},+ {+ "from": "./packages/finalize-fs/dist/win32-${arch}/motrix-finalize-fs.exe",+ "to": "bin/motrix-finalize-fs.exe"+ },{"from": "./extra/tray/","to": "./extra/tray/",diff --git a/flatpak/app.motrix.native.yml b/flatpak/app.motrix.native.ymlindex 136a6fff..0fb7475b 100644--- a/flatpak/app.motrix.native.yml+++ b/flatpak/app.motrix.native.yml@@ -243,6 +243,16 @@ modules:- install -Dm755/run/build/motrix/native-target/$MOTRIX_RUST_TARGET/release/motrix-native-hostpackages/native-host/dist/linux-$npm_config_target_arch/motrix-native-host+ - cargo build+ --manifest-path packages/finalize-fs/Cargo.toml+ --release+ --locked+ --offline+ --target=$MOTRIX_RUST_TARGET+ --target-dir=/run/build/motrix/finalize-target+ - install -Dm755+ /run/build/motrix/finalize-target/$MOTRIX_RUST_TARGET/release/motrix-finalize-fs+ packages/finalize-fs/dist/linux-$npm_config_target_arch/motrix-finalize-fs- pnpm --config.verify-deps-before-run=false run build:builtin- pnpm --config.verify-deps-before-run=false run build:electron@@ -272,6 +282,7 @@ modules:--report "release/size-reports/linux-$npm_config_target_arch.json"test -x "$unpacked/resources/extra/linux/$npm_config_target_arch/aria2c"test -x "$unpacked/resources/bin/motrix-native-host"+ test -x "$unpacked/resources/bin/motrix-finalize-fs"rm "$unpacked/resources/bin/motrix-native-host"test ! -e "$unpacked/resources/bin/motrix-native-host"rm "$unpacked/chrome-sandbox"diff --git a/flatpak/generated-sources.json b/flatpak/generated-sources.jsonindex cf0ac84a..9fa28cbd 100644--- a/flatpak/generated-sources.json+++ b/flatpak/generated-sources.json@@ -953,9 +953,23 @@},{"type": "file",- "url": "https://registry.npmjs.org/@motrix/plugin-manifest-schema/-/plugin-manifest-schema-2.1.0.tgz",- "sha512": "4baa75ba1a10cd86dea5591857ce9d9a60feef12da82da3b7eddef59c2cae0583c2adbc48a45756fe64fc84e4e8e0a593b758415c31ef2eb9cfc8ca66a2d1f9b",- "dest-filename": "@motrix__plugin-manifest-schema-2.1.0.tgz",+ "url": "https://registry.npmjs.org/@motrix/plugin-api/-/plugin-api-2.0.0.tgz",+ "sha512": "4b862c32f028f5e84337c47a8f0400cdc4c706cb44147d643f0f0245e3cc54b48d4f4a5bfb98e56907415ddd4d7ecc58f4ee05157e1eeb7bae0185a5903f54af",+ "dest-filename": "@motrix__plugin-api-2.0.0.tgz",+ "dest": "flatpak-node/pnpm-tarballs"+ },+ {+ "type": "file",+ "url": "https://registry.npmjs.org/@motrix/plugin-api/-/plugin-api-2.1.0.tgz",+ "sha512": "5c99fcadeef99c650548e03d76c1008c5923f05a98ea940c939c27cfd13b626fa270ea7bab42428634bf20b113becbb5826be7b65cddcdace6822e14e367cf20",+ "dest-filename": "@motrix__plugin-api-2.1.0.tgz",+ "dest": "flatpak-node/pnpm-tarballs"+ },+ {+ "type": "file",+ "url": "https://registry.npmjs.org/@motrix/plugin-manifest-schema/-/plugin-manifest-schema-2.1.1.tgz",+ "sha512": "fda5477aceb8a64dcfd33dccc9f6b4f2d938669e4042587020bdbc725be3908337c7b4e459af16f855ec5dfd8567e6bf43f823b8240602cb473b18af43bf9eb8",+ "dest-filename": "@motrix__plugin-manifest-schema-2.1.1.tgz","dest": "flatpak-node/pnpm-tarballs"},{@@ -6861,9 +6875,9 @@},{"type": "file",- "url": "https://registry.npmjs.org/zod/-/zod-4.4.3.tgz",- "sha512": "cad10d163209165d94c1882575eda37215b61f09b818914b0e249759d4eb25004837d15cca9ee7e0387124489634024c575fc1a967d6fe4920ef55037072724d",- "dest-filename": "zod-4.4.3.tgz",+ "url": "https://registry.npmjs.org/zod/-/zod-4.5.4.tgz",+ "sha512": "b02f79b53e621c71fd82da63e80f35921f8d11a44050537eaa550f0d46d17ce32f35fe50081aac6f75a0be7a55b4ae58fb851f03a2aab9fa2db93bcc1a24e5b0",+ "dest-filename": "zod-4.5.4.tgz","dest": "flatpak-node/pnpm-tarballs"},{@@ -6894,7 +6908,7 @@},{"type": "inline",- "contents": "{\"packages\":{\"@adobe__css-tools-4.5.0.tgz\":{\"integrity\":\"6OzddxPio9UiWTCemp4N8cYLV2ZN1ncRnV1cVGtve7dhPOtRkleRyx32GQCYSwDYgaHU3USMm84tNsvKzRCa1Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e8ecdd7713e2a3d52259309e9a9e0df1c60b57664dd677119d5d5c546b6f7bb7613ceb51925791cb1df61900984b00d881a1d4dd448c9bce2d36cbcacd109ad5\",\"name\":\"@adobe/css-tools\",\"version\":\"4.5.0\"},\"@asamuzakjp__css-color-6.0.7.tgz\":{\"integrity\":\"vC/bk1Lz7Tn/EfU9/apOTBk80/8dyGyWMowPoV1tJ52muDGsDqt2HPT2klrFUiY60MQmQv9q8yIht15JnBgDGw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"bc2fdb9352f3ed39ff11f53dfdaa4e4c193cd3ff1dc86c96328c0fa15d6d279da6b831ac0eab761cf4f6925ac552263ad0c42642ff6af32221b75e499c18031b\",\"name\":\"@asamuzakjp/css-color\",\"version\":\"6.0.7\"},\"@asamuzakjp__dom-selector-8.3.2.tgz\":{\"integrity\":\"93Z1N+BQNXysodoicpOIyNh2drHfz/CTf9nnT0FEx72GJcIiwgydD7tGAr78j41LsYn3hlRn+LdGPuBLn1Bl8Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f7767537e050357caca1da22729388c8d87676b1dfcff0937fd9e74f4144c7bd8625c222c20c9d0fbb4602befc8f8d4bb189f7865467f8b7463ee04b9f5065f1\",\"name\":\"@asamuzakjp/dom-selector\",\"version\":\"8.3.2\"},\"@babel__code-frame-7.29.7.tgz\":{\"integrity\":\"Aup7aUOfpbAUg2ROOJN6Iw5f9DMBlzu0mIkm/malLQFN/YQgO48wCj0Kxa3sEHJvPVFg7siR+qRInwXd2qhQKw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"02ea7b69439fa5b01483644e38937a230e5ff43301973bb4988926fe66a52d014dfd84203b8f300a3d0ac5adec10726f3d5160eec891faa4489f05dddaa8502b\",\"name\":\"@babel/code-frame\",\"version\":\"7.29.7\"},\"@babel__compat-data-7.29.7.tgz\":{\"integrity\":\"locTkQyKvwIEgBzVrn8693ebc97F2U8ZHjbXwDXJ5Fn2TCpNwTlKcaKLkdHop5c/icOFE7qt7Q9JC5hnKNa6Gg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"968713910c8abf0204801cd5ae7f3af7779b73dec5d94f191e36d7c035c9e459f64c2a4dc1394a71a28b91d1e8a7973f89c38513baaded0f490b986728d6ba1a\",\"name\":\"@babel/compat-data\",\"version\":\"7.29.7\"},\"@babel__core-7.29.7.tgz\":{\"integrity\":\"RgHBCvtjbOK2gXSNBNIkNoEc9qoVEtau3hj8gEqKQuL3HZAibKarWFEI3Lfm6EYKkLalOh8eSrj9b+ch9H/VBA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4601c10afb636ce2b681748d04d22436811cf6aa1512d6aede18fc804a8a42e2f71d90226ca6ab585108dcb7e6e8460a90b6a53a1f1e4ab8fd6fe721f47fd504\",\"name\":\"@babel/core\",\"version\":\"7.29.7\"},\"@babel__generator-7.29.8.tgz\":{\"integrity\":\"gZbepsdh3WDtgZKWL+vTPh71LSBrm/Y4/QDZBVCcYfmeTEEuoOYwlSy+G1StfJg+/Zy550u/3TATbm7qDbbMtg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8196dea6c761dd60ed8192962febd33e1ef52d206b9bf638fd00d905509c61f99e4c412ea0e630952cbe1b54ad7c983efd9cb9e74bbfdd30136e6eea0db6ccb6\",\"name\":\"@babel/generator\",\"version\":\"7.29.8\"},\"@babel__helper-annotate-as-pure-7.29.7.tgz\":{\"integrity\":\"OoK6239jHPuSQOoS0kfTVKn0b/rVTk0seKq4Gd2UMLtmOVLjDC0ki3e+c90Trqv2gMfvJFqkiljrr568+qddiw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3a82badb7f631cfb9240ea12d247d354a9f46ffad54e4d2c78aab819dd9430bb663952e30c2d248b77be73dd13aeabf680c7ef245aa48a58ebaf9ebcfaa75d8b\",\"name\":\"@babel/helper-annotate-as-pure\",\"version\":\"7.29.7\"},\"@babel__helper-compilation-targets-7.29.7.tgz\":{\"integrity\":\"wem6WaBj4NaVYVdNhLPPVacES6ZJ+KBBfSkTMD3YZxbP3rm3Di85tJU5ljaUNhaOynt+Aj0xruhYuzQBt8n71g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c1e9ba59a063e0d69561574d84b3cf55a7044ba649f8a0417d2913303dd86716cfdeb9b70e2f39b4953996369436168eca7b7e023d31aee858bb3401b7c9fbd6\",\"name\":\"@babel/helper-compilation-targets\",\"version\":\"7.29.7\"},\"@babel__helper-create-class-features-plugin-7.29.7.tgz\":{\"integrity\":\"IY3ZD9Tmooqr3TUhc3DUWxiuo8xx1DWLhd5M7hQ+ZWJamqM2BbalrBJb2MisSLoYorOj75U03qULCxQTY9r3hg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"218dd90fd4e6a28aabdd35217370d45b18aea3cc71d4358b85de4cee143e65625a9aa33605b6a5ac125bd8c8ac48ba18a2b3a3ef9534dea50b0b141363daf786\",\"name\":\"@babel/helper-create-class-features-plugin\",\"version\":\"7.29.7\"},\"@babel__helper-globals-7.29.7.tgz\":{\"integrity\":\"3nQVUAtvkKH9zahfWgw96Jc/uFOmjACE1kQz82E2lqWmHBgjzbNlsC22nuQTfahmWeQtTq5nQ/4Nnd2A1wj4zA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"de7415500b6f90a1fdcda85f5a0c3de8973fb853a68c0084d64433f3613696a5a61c1823cdb365b02db69ee4137da86659e42d4eae6743fe0d9ddd80d708f8cc\",\"name\":\"@babel/helper-globals\",\"version\":\"7.29.7\"},\"@babel__helper-member-expression-to-functions-7.29.7.tgz\":{\"integrity\":\"j+7JYmk1JYDtACIGj0QJqqWZjoUpMoEikQGADMaHgCMCSDqd2+P32rfcibUNrGOMWrlzK1WJBdxrB3JJQZwWtg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8feec96269352580ed0022068f4409aaa5998e85293281229101800cc687802302483a9ddbe3f7dab7dc89b50dac638c5ab9732b558905dc6b077249419c16b6\",\"name\":\"@babel/helper-member-expression-to-functions\",\"version\":\"7.29.7\"},\"@babel__helper-module-imports-7.29.7.tgz\":{\"integrity\":\"ejHwrQQYcm9xnTivShn2IDOlIzInN34AXskvq9QicvCtEzq1Vzclu/tKF8Jq1Cg8JG2GL6/EmjgsCT7lXepE3g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7a31f0ad0418726f719d38af4a19f62033a5233227377e005ec92fabd42272f0ad133ab5573725bbfb4a17c26ad4283c246d862fafc49a382c093ee55dea44de\",\"name\":\"@babel/helper-module-imports\",\"version\":\"7.29.7\"},\"@babel__helper-module-transforms-7.29.7.tgz\":{\"integrity\":\"UPUVSyXbOh627KiCIGQSgwWzGeBKLkaJ9PJEdrngIwMSzxLR4jS4+f1f1jb7VzBbg8nFLaYotvVPFCTqdrmTAg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"50f5154b25db3a1eb6eca8822064128305b319e04a2e4689f4f24476b9e0230312cf12d1e234b8f9fd5fd636fb57305b83c9c52da628b6f54f1424ea76b99302\",\"name\":\"@babel/helper-module-transforms\",\"version\":\"7.29.7\"},\"@babel__helper-optimise-call-expression-7.29.7.tgz\":{\"integrity\":\"+kmGVjcT9RGYzoDwdwEqEvGgKe3BYq+O1iGzjFubaNgZHwYHP6lsF2Yghf4kEuv9BV7tYDZ913aBW9am6YKong==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"fa4986563713f51198ce80f077012a12f1a029edc162af8ed621b38c5b9b68d8191f06073fa96c17662085fe2412ebfd055eed60367dd776815bd6a6e982a89e\",\"name\":\"@babel/helper-optimise-call-expression\",\"version\":\"7.29.7\"},\"@babel__helper-plugin-utils-7.29.7.tgz\":{\"integrity\":\"G7sHYigPY17oO5SYWnfD/0MTBwVR781S/JI643e/JhUYgVgWE/61SoW3NH9KWUKyKq5LVh3npif99Wkt6j86Jw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1bbb0762280f635ee83b94985a77c3ff4313070551efcd52fc923ae377bf26151881581613feb54a85b7347f4a5942b22aae4b561de7a627fdf5692dea3f3a27\",\"name\":\"@babel/helper-plugin-utils\",\"version\":\"7.29.7\"},\"@babel__helper-replace-supers-7.29.7.tgz\":{\"integrity\":\"atfGXWSeCiF4DnKZIfmJfQRkSw9b9gNNXR1kqKjbhG4pGYCOnkp8OcTB8E3NXjBu8NpheSnOeNKz8KT7UNFTmQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6ad7c65d649e0a21780e729921f9897d04644b0f5bf6034d5d1d64a8a8db846e2919808e9e4a7c39c4c1f04dcd5e306ef0da617929ce78d2b3f0a4fb50d15399\",\"name\":\"@babel/helper-replace-supers\",\"version\":\"7.29.7\"},\"@babel__helper-skip-transparent-expression-wrappers-7.29.7.tgz\":{\"integrity\":\"brcMGQaVzIeUb+6/bs1Av0f8YuNNjKY2JyvfRCsFuFsdKccEQ5Ges2y74D74NZ1Rz8lKJ9ksJkfqwQFJ/iNEyQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6eb70c190695cc87946feebf6ecd40bf47fc62e34d8ca636272bdf442b05b85b1d29c70443919eb36cbbe03ef8359d51cfc94a27d92c2647eac10149fe2344c9\",\"name\":\"@babel/helper-skip-transparent-expression-wrappers\",\"version\":\"7.29.7\"},\"@babel__helper-string-parser-7.29.7.tgz\":{\"integrity\":\"Pb5ijPrZ89GDH8223L4UP8i6QApWxs04RbPQJTeWDV0/keR2E36MeKnyr6LYmUUvqRRI+Iv87SuF1W6ErINzYw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3dbe628cfad9f3d1831fcdb6dcbe143fc8ba400a56c6cd3845b3d02537960d5d3f91e476137e8c78a9f2afa2d899452fa91448f88bfced2b85d56e84ac837363\",\"name\":\"@babel/helper-string-parser\",\"version\":\"7.29.7\"},\"@babel__helper-validator-identifier-7.29.7.tgz\":{\"integrity\":\"qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a9e8711a4463e7987f7dff0431a27e71887268a947231a980e7ebcdb0403ed1369f54ba3390b07a20dae4b4af6bf3af8a56fac5dff7435e79aca370d697ddf16\",\"name\":\"@babel/helper-validator-identifier\",\"version\":\"7.29.7\"},\"@babel__helper-validator-option-7.29.7.tgz\":{\"integrity\":\"N9ZErrD+yW5geCDtBqnOoxmR8+tNKiGuxKlDpuJxfsqpa2dFcexaziGAE/qoHLiDDreVNMupxGmSoNlyvsA3gw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"37d644aeb0fec96e607820ed06a9cea31991f3eb4d2a21aec4a943a6e2717ecaa96b674571ec5ace218013faa81cb8830eb79534cba9c46992a0d972bec03783\",\"name\":\"@babel/helper-validator-option\",\"version\":\"7.29.7\"},\"@babel__helpers-7.29.7.tgz\":{\"integrity\":\"1k2lAGRMfHTcwuNYcCNUmaUffmQv8KWMfh2iJUUeRlwlwH4FdNG7mfPI10NPfLHJFThE4Tyr4mv7kTNZOiPuBg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d64da500644c7c74dcc2e35870235499a51f7e642ff0a58c7e1da225451e465c25c07e0574d1bb99f3c8d7434f7cb1c9153844e13cabe26bfb9133593a23ee06\",\"name\":\"@babel/helpers\",\"version\":\"7.29.7\"},\"@babel__parser-7.29.8.tgz\":{\"integrity\":\"E8lTAYNB1KW+FH+VGJuZM1ioAx2E6oVlvQFRrf5P8ZZmsiJXYAD9vTFV7yyEURNzgh1dFqMZuO6tUwcARbqFCA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"13c953018341d4a5be147f95189b993358a8031d84ea8565bd0151adfe4ff19666b222576000fdbd3155ef2c84511373821d5d16a319b8eead53070045ba8508\",\"name\":\"@babel/parser\",\"version\":\"7.29.8\"},\"@babel__plugin-syntax-jsx-7.29.7.tgz\":{\"integrity\":\"TSu8+mHCoEaaCDEZ0I3+6mvTBYR4PCxQwf2z9/r5Tbztv6NaLR3B9thGTTxX2WGuGHJqRiAbKPeGTJ5XWXVg6A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4d2bbcfa61c2a0469a083119d08dfeea6bd30584783c2c50c1fdb3f7faf94dbcedbfa35a2d1dc1f6d8464d3c57d961ae18726a46201b28f7864c9e57597560e8\",\"name\":\"@babel/plugin-syntax-jsx\",\"version\":\"7.29.7\"},\"@babel__plugin-syntax-typescript-7.29.7.tgz\":{\"integrity\":\"ngr+82Sh0xMz25TPCZi+nC2iTzjfCdWS2ONXTp/PtSCHCgaCNBpdMqgvJ2ccdLlClVZ7sisIgB914j/JFe+RZA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9e0afef364a1d31333db94cf0998be9c2da24f38df09d592d8e3574e9fcfb520870a0682341a5d32a82f27671c74b94295567bb22b08801f75e23fc915ef9164\",\"name\":\"@babel/plugin-syntax-typescript\",\"version\":\"7.29.7\"},\"@babel__plugin-transform-modules-commonjs-7.29.7.tgz\":{\"integrity\":\"j0vCldybPC5b5dwCQOJ21uKtHzt7hxLygJTg9eF1ScfaikEDNfzn94XoW5Fi+seBR0nCyL23xaBFFkq7dTM8XQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8f4bc295dc9b3c2e5be5dc0240e276d6e2ad1f3b7b8712f28094e0f5e17549c7da8a410335fce7f785e85b9162fac7814749c2c8bdb7c5a045164abb75333c5d\",\"name\":\"@babel/plugin-transform-modules-commonjs\",\"version\":\"7.29.7\"},\"@babel__plugin-transform-typescript-7.29.7.tgz\":{\"integrity\":\"jK52h8LaLc7JarhQV2ofeFMts4H7vnOXnqZNA6fYglBTZewRBE51KWt3BUltW1P+KoPsYkHoJeXePuz4zo2LMw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8cae7687c2da2dcec96ab850576a1f78532db381fbbe73979ea64d03a7d882505365ec11044e75296b7705496d5b53fe2a83ec6241e825e5de3eecf8ce8d8b33\",\"name\":\"@babel/plugin-transform-typescript\",\"version\":\"7.29.7\"},\"@babel__preset-typescript-7.29.7.tgz\":{\"integrity\":\"/Foi8vKY2EVbed/1eZx0gJEEwHAIxogrySI7rULcRIvhZzbvoE/b5qG5Ghc0WKAFKOHA9SD1x7RsFlOYdutIiQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"fc5a22f2f298d8455b79dff5799c74809104c07008c6882bc9223bad42dc448be16736efa04fdbe6a1b91a173458a00528e1c0f520f5c7b46c16539876eb4889\",\"name\":\"@babel/preset-typescript\",\"version\":\"7.29.7\"},\"@babel__runtime-7.29.7.tgz\":{\"integrity\":\"Nq8OhGWiZIZGV6hLHoyAKLLcJihP/xFeBMGJoUrxTX2psI8dCifzLhZISFb+VWS3wFMRDmCGw5R+dOySCqPLhw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"36af0e8465a264864657a84b1e8c8028b2dc26284fff115e04c189a14af14d7da9b08f1d0a27f32e16484856fe5564b7c053110e6086c3947e74ec920aa3cb87\",\"name\":\"@babel/runtime\",\"version\":\"7.29.7\"},\"@babel__template-7.29.7.tgz\":{\"integrity\":\"puq+Gf35oI24FeN11LkoUQFqv9uwNeWpxXZi/Ji3rRIoKAzKnxRaZ+Gkj0vKS9ZCiTESfng1N9LyOyXvo+m+Gg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a6eabe19fdf9a08db815e375d4b92851016abfdbb035e5a9c57662fc98b7ad1228280cca9f145a67e1a48f4bca4bd6428931127e783537d2f23b25efa3e9be1a\",\"name\":\"@babel/template\",\"version\":\"7.29.7\"},\"@babel__traverse-7.29.8.tgz\":{\"integrity\":\"I5z7H3bf/41ktsNVLtpN0wAa336HkqIHQ5BuPLEhTkt1jVSyZpeNKIzTgEWmlxjdg81R0IgUCcaE+Ok3NvrfZg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"239cfb1f76dfff8d64b6c3552eda4dd3001adf7e8792a20743906e3cb1214e4b758d54b266978d288cd38045a69718dd83cd51d0881409c684f8e93736fadf66\",\"name\":\"@babel/traverse\",\"version\":\"7.29.8\"},\"@babel__types-7.29.8.tgz\":{\"integrity\":\"Vj1jF3cPfxg7OAfoI7QnVKLoILlm2JF9pnVHrX8qx7AHMiYWT+NDAA7jChlNgRS4WTLc/fD1lXLmPixluj+3Gg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"563d6317770f7f183b3807e823b42754a2e820b966d8917da67547ad7f2ac7b0073226164fe343000ee30a194d8114b85932dcfdf0f59572e63e2c65ba3fb71a\",\"name\":\"@babel/types\",\"version\":\"7.29.8\"},\"@base-ui__react-1.7.0.tgz\":{\"integrity\":\"j+8QjX44C32jrXD/qyEAGpFr70FRpGL2CY61mQd9nBPWN737CK0xxD1ceJ055rW4RtdvFDT1e7otzdlfxvsYug==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8fef108d7e380b7da3ad70ffab21001a916bef4151a462f6098eb599077d9c13d637bdfb08ad31c43d5c789d39e6b5b846d76f1434f57bba2dcdd95fc6fb18ba\",\"name\":\"@base-ui/react\",\"version\":\"1.7.0\"},\"@base-ui__utils-0.3.2.tgz\":{\"integrity\":\"oWy1aq/I2GmYjpl4PhEAhzflF8VPGKgZeq0xAWTbfD5KBWyxcN0ZP2+WHSUm/5Z6lVMBDLReLcoXwSYoRc/zNQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a16cb56aafc8d869988e99783e11008737e517c54f18a8197aad310164db7c3e4a056cb170dd193f6f961d2526ff967a9553010cb45e2dca17c1262845cff335\",\"name\":\"@base-ui/utils\",\"version\":\"0.3.2\"},\"@bcoe__v8-coverage-1.0.2.tgz\":{\"integrity\":\"6zABk/ECA/QYSCQ1NGiVwwbQerUCZ+TQbp64Q3AgmfNvurHH0j8TtXa1qbShXA6qqkpAj4V5W8pP6mLe1mcMqA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"eb300193f10203f418482435346895c306d07ab50267e4d06e9eb843702099f36fbab1c7d23f13b576b5a9b4a15c0eaaaa4a408f85795bca4fea62ded6670ca8\",\"name\":\"@bcoe/v8-coverage\",\"version\":\"1.0.2\"},\"@biomejs__biome-2.5.9.tgz\":{\"integrity\":\"KkgCvdHB4IhtpHpF564plA9jo6fDOwWGQ/3jvreLzgOtRLEDoPqr7QO9qejNA8jKwDsSkAKr77hqBHnyUbIw4g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2a4802bdd1c1e0886da47a45e7ae29940f63a3a7c33b058643fde3beb78bce03ad44b103a0faabed03bda9e8cd03c8cac03b129002abefb86a0479f251b230e2\",\"name\":\"@biomejs/biome\",\"version\":\"2.5.9\"},\"@biomejs__cli-darwin-arm64-2.5.9.tgz\":{\"integrity\":\"am22pX2aBqznqq1eMyIj/bZ++riF3Lk6ct7cbv+gQK0csFhr+d8O0RkOi2FF2qSgFgANbqNkIZ0/PxlnW2pLFg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6a6db6a57d9a06ace7aaad5e332223fdb67efab885dcb93a72dedc6effa040ad1cb0586bf9df0ed1190e8b6145daa4a016000d6ea364219d3f3f19675b6a4b16\",\"name\":\"@biomejs/cli-darwin-arm64\",\"version\":\"2.5.9\"},\"@biomejs__cli-darwin-x64-2.5.9.tgz\":{\"integrity\":\"l44KWDHLDvEnD0N/XcrVs7VXb3A18xL7QS3WB0eL93wbmk529ffIG55vleGCqaunpRUjLrdnjK05Qki1dsjylg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"978e0a5831cb0ef1270f437f5dcad5b3b5576f7035f312fb412dd607478bf77c1b9a4e76f5f7c81b9e6f95e182a9aba7a515232eb7678cad394248b576c8f296\",\"name\":\"@biomejs/cli-darwin-x64\",\"version\":\"2.5.9\"},\"@biomejs__cli-linux-arm64-2.5.9.tgz\":{\"integrity\":\"ICaK+IYaVZvKbBxX2rwrPT0DdUDMnE9Vm3nQGe+mltQPmUg19pONzkPWGdY4FCsoreDETWDynvdt4ysCbF5gNQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"20268af8861a559bca6c1c57dabc2b3d3d037540cc9c4f559b79d019efa696d40f994835f6938dce43d619d638142b28ade0c44d60f29ef76de32b026c5e6035\",\"name\":\"@biomejs/cli-linux-arm64\",\"version\":\"2.5.9\"},\"@biomejs__cli-linux-arm64-musl-2.5.9.tgz\":{\"integrity\":\"7ImVPwBLCtkmpR5esd8RHhTqW94f0JLJQum6AneYcy94jRm18TaPPm7slaigGzFhfgt3QiD1Vj52LKmBAnKizA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ec89953f004b0ad926a51e5eb1df111e14ea5bde1fd092c942e9ba027798732f788d19b5f1368f3e6eec95a8a01b31617e0b774220f5563e762ca9810272a2cc\",\"name\":\"@biomejs/cli-linux-arm64-musl\",\"version\":\"2.5.9\"},\"@biomejs__cli-linux-x64-2.5.9.tgz\":{\"integrity\":\"z22Q/zFYSvbIJfW1CbfZPu4X8PddS6Qd2ORbc6h+aT6EcwAxUF3m6fA4HjNvA3TU4X0dTJRwNPB165ES3PJXzg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"cf6d90ff31584af6c825f5b509b7d93eee17f0f75d4ba41dd8e45b73a87e693e84730031505de6e9f0381e336f0374d4e17d1d4c947034f075eb9112dcf257ce\",\"name\":\"@biomejs/cli-linux-x64\",\"version\":\"2.5.9\"},\"@biomejs__cli-linux-x64-musl-2.5.9.tgz\":{\"integrity\":\"RXGaD0o1/pTTguYw1aeDJh9ad6Lfrui0fI7mBderTyGr7WuUJkBIttgLkR3XJyoxOkkgfBDspaUT8wXArTqLZw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"45719a0f4a35fe94d382e630d5a783261f5a77a2dfaee8b47c8ee605d7ab4f21abed6b94264048b6d80b911dd7272a313a49207c10eca5a513f305c0ad3a8b67\",\"name\":\"@biomejs/cli-linux-x64-musl\",\"version\":\"2.5.9\"},\"@biomejs__cli-win32-arm64-2.5.9.tgz\":{\"integrity\":\"nHK+/HHC+D0ogAHUxomgoSTdjImb6fmNNVTKmf0tyu4eDL1DqPKIHc+i+UL8+b0RnAu8224qo8F2tCVnaT0A3w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9c72befc71c2f83d288001d4c689a0a124dd8c899be9f98d3554ca99fd2dcaee1e0cbd43a8f2881dcfa2f942fcf9bd119c0bbcdb6e2aa3c176b42567693d00df\",\"name\":\"@biomejs/cli-win32-arm64\",\"version\":\"2.5.9\"},\"@biomejs__cli-win32-x64-2.5.9.tgz\":{\"integrity\":\"Yiq0H56LjXSSw/hd9YkXgSLQfzyDJzbzU2TezozxyNw+uKWAqOtqGVvBfzKRRDiaFF5avGAhHdWKx7LtDOShUw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"622ab41f9e8b8d7492c3f85df589178122d07f3c832736f35364dece8cf1c8dc3eb8a580a8eb6a195bc17f329144389a145e5abc60211dd58ac7b2ed0ce4a153\",\"name\":\"@biomejs/cli-win32-x64\",\"version\":\"2.5.9\"},\"@bramus__specificity-2.4.2.tgz\":{\"integrity\":\"ctxtJ/eA+t+6q2++vj5j7FYX3nRu311q1wfYH3xjlLOsczhlhxAg2FWNUXhpGvAw3BWo1xBcvOV6/YLc2r5FJw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"72dc6d27f780fadfbaab6fbebe3e63ec5617de746edf5d6ad707d81f7c6394b3ac733865871020d8558d5178691af030dc15a8d7105cbce57afd82dcdabe4527\",\"name\":\"@bramus/specificity\",\"version\":\"2.4.2\"},\"@csstools__color-helpers-6.1.1.tgz\":{\"integrity\":\"gLNsunvwf3mCi5u5o46/Z/JcJMnhbHSaZ69rkgPzNM3J4s8hWwpPUQB6/tt0EDFyCiWzxANlx+2LJwpYj4zS1w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"80b36cba7bf07f79828b9bb9a38ebf67f25c24c9e16c749a67af6b9203f334cdc9e2cf215b0a4f51007afedb741031720a25b3c40365c7ed8b270a588f8cd2d7\",\"name\":\"@csstools/color-helpers\",\"version\":\"6.1.1\"},\"@csstools__css-calc-3.3.0.tgz\":{\"integrity\":\"c5ihYsPkdG6JCkU2zTMm4+k6r7RXuGxtWYhu5DHMIiF1FHzrfmHL5so11AoFpUv/tu61xfcmT4AmKoFfMPoqdQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7398a162c3e4746e890a4536cd3326e3e93aafb457b86c6d59886ee431cc222175147ceb7e61cbe6ca35d40a05a54bffb6eeb5c5f7264f80262a815f30fa2a75\",\"name\":\"@csstools/css-calc\",\"version\":\"3.3.0\"},\"@csstools__css-color-parser-4.2.0.tgz\":{\"integrity\":\"5+5LEmFuY1AjXdYhmgjTJogtQnP1evJ1zrBZGUNZ0thkpwnnmKxcHdAMn/OtFjAb25zA+jKDVYVRl+5G7rjv1A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e7ee4b12616e6350235dd6219a08d326882d4273f57af275ceb059194359d2d864a709e798ac5c1dd00c9ff3ad16301bdb9cc0fa328355855197ee46eeb8efd4\",\"name\":\"@csstools/css-color-parser\",\"version\":\"4.2.0\"},\"@csstools__css-parser-algorithms-4.0.0.tgz\":{\"integrity\":\"+B87qS7fIG3L5h3qwJ/IFbjoVoOe/bpOdh9hAjXbvx0o8ImEmUsGXN0inFOnk2ChCFgqkkGFQ+TpM5rbhkKe4w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f81f3ba92edf206dcbe61deac09fc815b8e856839efdba4e761f610235dbbf1d28f08984994b065cdd229c53a79360a108582a92418543e4e9339adb86429ee3\",\"name\":\"@csstools/css-parser-algorithms\",\"version\":\"4.0.0\"},\"@csstools__css-syntax-patches-for-csstree-1.1.8.tgz\":{\"integrity\":\"CpMLjAvwQg3BL5S0IeqsZNMH7EQrEWi0kLKOC13ZBF0ZwERiLWlibNPJr8G1kdU3Ms/r2KiNrF81pUh2HwAHdg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0a930b8c0bf0420dc12f94b421eaac64d307ec442b1168b490b28e0b5dd9045d19c044622d69626cd3c9afc1b591d53732cfebd8a88dac5f35a548761f000776\",\"name\":\"@csstools/css-syntax-patches-for-csstree\",\"version\":\"1.1.8\"},\"@csstools__css-tokenizer-4.0.0.tgz\":{\"integrity\":\"QxULHAm7cNu72w97JUNCBFODFaXpbDg+dP8b/oWFAZ2MTRppA3U00Y2L1HqaS4J6yBqxwa/Y3nMBaxVKbB/NsA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"43150b1c09bb70dbbbdb0f7b25434204538315a5e96c383e74ff1bfe8585019d8c4d1a69037534d18d8bd47a9a4b827ac81ab1c1afd8de73016b154a6c1fcdb0\",\"name\":\"@csstools/css-tokenizer\",\"version\":\"4.0.0\"},\"@dotenvx__dotenvx-1.75.1.tgz\":{\"integrity\":\"/BITOC9dmS/edY2zQwZNicQ059O6RKabtQfyEafV0nGtfYRNHYy1DIPiYVcov40+tob9hfmBnbR963dS+EQ1DQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"fc1213382f5d992fde758db343064d89c434e7d3ba44a69bb507f211a7d5d271ad7d844d1d8cb50c83e2615728bf8d3eb686fd85f9819db47deb7752f844350d\",\"name\":\"@dotenvx/dotenvx\",\"version\":\"1.75.1\"},\"@dotenvx__primitives-0.8.0.tgz\":{\"integrity\":\"VYJy0uhFm9zTJ1TxBaW/pA8bjbOM/OttaNMwZ1RHG4JKyRG7DhSdiqD1ipQoAyoD22olUtxbP78W9xY3Wd11bg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"558272d2e8459bdcd32754f105a5bfa40f1b8db38cfceb6d68d3306754471b824ac911bb0e149d8aa0f58a9428032a03db6a2552dc5b3fbf16f7163759dd756e\",\"name\":\"@dotenvx/primitives\",\"version\":\"0.8.0\"},\"@electron-internal__extract-zip-1.0.5.tgz\":{\"integrity\":\"+bqFCP98pLI0Tt0XQo1TmlXtwjWchISndDOxCkEcIuUgXWpBnLyRI+2DU+mesvnMMX6L1XDqYNA0lXNDHd/yiA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f9ba8508ff7ca4b2344edd17428d539a55edc2359c8484a77433b10a411c22e5205d6a419cbc9123ed8353e99eb2f9cc317e8bd570ea60d0349573431ddff288\",\"name\":\"@electron-internal/extract-zip\",\"version\":\"1.0.5\"},\"@electron__asar-3.4.1.tgz\":{\"integrity\":\"i4/rNPRS84t0vSRa2HorerGRXWyF4vThfHesw0dmcWHp+cspK743UanA0suA5Q5y8kzY2y6YKrvbIUn69BCAiA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8b8feb34f452f38b74bd245ad87a2b7ab1915d6c85e2f4e17c77acc347667161e9f9cb292bbe3751a9c0d2cb80e50e72f24cd8db2e982abbdb2149faf4108088\",\"name\":\"@electron/asar\",\"version\":\"3.4.1\"},\"@electron__fuses-1.8.0.tgz\":{\"integrity\":\"zx0EIq78WlY/lBb1uXlziZmDZI4ubcCXIMJ4uGjXzZW0nS19TjSPeXPAjzzTmKQlJUZm0SbmZhPKP7tuQ1SsEw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"cf1d0422aefc5a563f9416f5b97973899983648e2e6dc09720c278b868d7cd95b49d2d7d4e348f7973c08f3cd398a425254666d126e66613ca3fbb6e4354ac13\",\"name\":\"@electron/fuses\",\"version\":\"1.8.0\"},\"@electron__get-3.1.0.tgz\":{\"integrity\":\"F+nKc0xW+kVbBRhFzaMgPy3KwmuNTYX1fx6+FxxoSnNgwYX6LD7AKBTWkU0MQ6IBoe7dz069CNkR673sPAgkCQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"17e9ca734c56fa455b051845cda3203f2dcac26b8d4d85f57f1ebe171c684a7360c185fa2c3ec02814d6914d0c43a201a1eeddcf4ebd08d911ebbdec3c082409\",\"name\":\"@electron/get\",\"version\":\"3.1.0\"},\"@electron__get-5.1.0.tgz\":{\"integrity\":\"3kSBtG8ObcTVfXanm5vVJ6UnBLEVmVsRk1M+vGqCuMBV+XLCbJYuWQful+yIy0GQDsSlK0kHEriEHn7SPk4EnA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"de4481b46f0e6dc4d57d76a79b9bd527a52704b115995b1193533ebc6a82b8c055f972c26c962e5907ee97ec88cb41900ec4a52b490712b8841e7ed23e4e049c\",\"name\":\"@electron/get\",\"version\":\"5.1.0\"},\"@electron__notarize-2.5.0.tgz\":{\"integrity\":\"jNT8nwH1f9X5GEITXaQ8IF/KdskvIkOFfB2CvwumsveVidzpSc+mvhhTMdAGSYF3O+Nq49lJ7y+ssODRXu06+A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8cd4fc9f01f57fd5f91842135da43c205fca76c92f2243857c1d82bf0ba6b2f79589dce949cfa6be185331d0064981773be36ae3d949ef2facb0e0d15eed3af8\",\"name\":\"@electron/notarize\",\"version\":\"2.5.0\"},\"@electron__notarize-3.1.1.tgz\":{\"integrity\":\"uQQSlOiJnqRkTL1wlEBAxe90nVN/Fc/hEmk0bqpKk8nKjV1if/tXLHKUPePtv9Xsx90PtZU8aidx5lAiOpjkQQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b9041294e8899ea4644cbd70944040c5ef749d537f15cfe11269346eaa4a93c9ca8d5d627ffb572c72943de3edbfd5ecc7dd0fb5953c6a2771e650223a98e441\",\"name\":\"@electron/notarize\",\"version\":\"3.1.1\"},\"@electron__osx-sign-1.3.3.tgz\":{\"integrity\":\"KZ8mhXvWv2rIEgMbWZ4y33bDHyUKMXnx4M0sTyPNK/vcB81ImdeY9Ggdqy0SWbMDgmbqyQ+phgejh6V3R2QuSg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"299f26857bd6bf6ac812031b599e32df76c31f250a3179f1e0cd2c4f23cd2bfbdc07cd4899d798f4681dab2d1259b3038266eac90fa98607a387a57747642e4a\",\"name\":\"@electron/osx-sign\",\"version\":\"1.3.3\"},\"@electron__rebuild-4.2.0.tgz\":{\"integrity\":\"RKL/O+jGoXJMxrx/5771y1n0xTKmFuOYGO3gMmwypBM6rsH0kou0mswwdXA2JrhIkE4xyC7v9vGk0n6NPzgOxQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"44a2ff3be8c6a1724cc6bc7fe7bef5cb59f4c532a616e39818ede0326c32a4133aaec1f4928bb49acc3075703626b848904e31c82eeff6f1a4d27e8d3f380ec5\",\"name\":\"@electron/rebuild\",\"version\":\"4.2.0\"},\"@electron__universal-2.0.3.tgz\":{\"integrity\":\"Wn9sPYIVFRFl5HmwMJkARCCf7rqK/EurkfQ/rJZ14mHP3iYTjZSIOSVonEAnhWeAXwtw7zOekGRlc6yTtZ0t+g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5a7f6c3d8215151165e479b030990044209feeba8afc4bab91f43fac9675e261cfde26138d94883925689c40278567805f0b70ef339e90646573ac93b59d2dfa\",\"name\":\"@electron/universal\",\"version\":\"2.0.3\"},\"@electron__windows-sign-1.2.2.tgz\":{\"integrity\":\"dfZeox66AvdPtb2lD8OsIIQh12Tp0GNCRUDfBHIKGpbmopZto2/A8nSpYYLoedPIHpqkeblZ/k8OV0Gy7PYuyQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"75f65ea31eba02f74fb5bda50fc3ac208421d764e9d063424540df04720a1a96e6a2966da36fc0f274a96182e879d3c81e9aa479b959fe4f0e5741b2ecf62ec9\",\"name\":\"@electron/windows-sign\",\"version\":\"1.2.2\"},\"@esbuild__aix-ppc64-0.28.2.tgz\":{\"integrity\":\"XExcO+dvLKvVtNTibSTBej1NCAbaGhWn9Ww1ZPx80qsahhPFe/8jgWP0IchNe0F3HwkU7n8ejhH8bjonqht8mQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5c4c5c3be76f2cabd5b4d4e26d24c17a3d4d0806da1a15a7f56c3564fc7cd2ab1a8613c57bff238163f421c84d7b41771f0914ee7f1e8e11fc6e3a27aa1b7c99\",\"name\":\"@esbuild/aix-ppc64\",\"version\":\"0.28.2\"},\"@esbuild__android-arm-0.28.2.tgz\":{\"integrity\":\"kXXoiPVVGQcnIYGOeaovwOURpniDBpSq4A03qkQ+BMQqtGG6HYap3xne9C1O1yo4TR3qxlCX5IqqmX6fFo2Lqg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9175e888f55519072721818e79aa2fc0e511a678830694aae00d37aa443e04c42ab461ba1d86a9df19def42d4ed72a384d1deac65097e48aaa997e9f168d8baa\",\"name\":\"@esbuild/android-arm\",\"version\":\"0.28.2\"},\"@esbuild__android-arm64-0.28.2.tgz\":{\"integrity\":\"5YfKeeI8qWfBZIX+u2xZC3Zlb3Os/gLS2sbEKM+I4ZOcsWmHS2WLysCcQZDAFRslDUU5Oiq44gf6PYN1vGwG5A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e587ca79e23ca967c16485febb6c590b76656f73acfe02d2dac6c428cf88e1939cb169874b658bcac09c4190c0151b250d45393a2ab8e207fa3d8375bc6c06e4\",\"name\":\"@esbuild/android-arm64\",\"version\":\"0.28.2\"},\"@esbuild__android-x64-0.28.2.tgz\":{\"integrity\":\"O387ite7SzUyCcy3JQX4P4bLtEA7bLLkx+esve5JHnyYfNTxcVpXZo9jhdB0lTKN44gztELTdU7nS8Nr16Fs1Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3b7f3b8ad7bb4b353209ccb72505f83f86cbb4403b6cb2e4c7e7acbdee491e7c987cd4f1715a57668f6385d07495328de38833b442d3754ee74bc36bd7a16cd5\",\"name\":\"@esbuild/android-x64\",\"version\":\"0.28.2\"},\"@esbuild__darwin-arm64-0.28.2.tgz\":{\"integrity\":\"n4KqkOQrraxHJcgjM1RvwbigfQKIKJVpM7xp+KsxiyUSrRdIXnt73VhrPAx0fV44hgfmIVKjxMN9J1t5jySVkw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9f82aa90e42badac4725c82333546fc1b8a07d028828956933bc69f8ab318b2512ad17485e7b7bdd586b3c0c747d5e388607e62152a3c4c37d275b798f249593\",\"name\":\"@esbuild/darwin-arm64\",\"version\":\"0.28.2\"},\"@esbuild__darwin-x64-0.28.2.tgz\":{\"integrity\":\"uq6suIWYP37qzGddBKPw5QEQPi6HiLGsO7UmkpfyaYNQ3D+rN6w6WfwH+nuqcGXWvawGwxOEroO4YGnFh95azw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"baaeacb885983f7eeacc675d04a3f0e501103e2e8788b1ac3bb5269297f2698350dc3fab37ac3a59fc07fa7baa7065d6bdac06c31384ae83b86069c587de5acf\",\"name\":\"@esbuild/darwin-x64\",\"version\":\"0.28.2\"},\"@esbuild__freebsd-arm64-0.28.2.tgz\":{\"integrity\":\"n+I0BTSRIoy+d6RPKnEVwql5UwBJolytvY4mAOIEJorKlqgPII8ix6slVVrfZ5Tnj7glIZvloylbB/EJPMWEXw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9fe234053491228cbe77a44f2a7115c2a979530049a25cadbd8e2600e204268aca96a80f208f22c7ab25555adf6794e78fb825219be5a3295b07f1093cc5845f\",\"name\":\"@esbuild/freebsd-arm64\",\"version\":\"0.28.2\"},\"@esbuild__freebsd-x64-0.28.2.tgz\":{\"integrity\":\"78XJTJkvPs0kz2w61301PJjXl4g7q3JqiYMZ/M/yVI73EHBrCRTgkhu9oqG7vPqq+a/yadEW8aD+agKlk5xrmg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"efc5c94c992f3ecd24cf6c3ad77d353c98d797883bab726a898319fccff2548ef710706b0914e0921bbda2a1bbbcfaaaf9aff269d116f1a0fe6a02a5939c6b9a\",\"name\":\"@esbuild/freebsd-x64\",\"version\":\"0.28.2\"},\"@esbuild__linux-arm-0.28.2.tgz\":{\"integrity\":\"XlDnu2q5yoqems+xay6wSAcg9DDD7K9RLKZEBOMZm3ckNpJBvOX20tSfby8KfrrhINDyv9V2YVZKY/SpoGJI8w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5e50e7bb6ab9ca8a9e9acfb16b2eb0480720f430c3ecaf512ca64404e3199b7724369241bce5f6d2d49f6f2f0a7ebae120d0f2bfd57661564a63f4a9a06248f3\",\"name\":\"@esbuild/linux-arm\",\"version\":\"0.28.2\"},\"@esbuild__linux-arm64-0.28.2.tgz\":{\"integrity\":\"pW4AC0P3it8c7do9MVM4p51FzHzdM/TZrerurgRcHJ2WTa1VQ1CIq18xncfpBJw4ojkiZZrKW2yIBWBP92j6Ug==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a56e000b43f78adf1cedda3d315338a79d45cc7cdd33f4d9adeaeeae045c1c9d964dad55435088ab5f319dc7e9049c38a23922659aca5b6c8805604ff768fa52\",\"name\":\"@esbuild/linux-arm64\",\"version\":\"0.28.2\"},\"@esbuild__linux-ia32-0.28.2.tgz\":{\"integrity\":\"CYbnj78HsIeA+DhgUKgFCfvNsTHFhMMrinUrMZpDXJXKN8T3XViTZ/+wtHeVxEWY8ewSzTFN+nRmSwO2tZaLUQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0986e78fbf07b08780f8386050a80509fbcdb131c584c32b8a752b319a435c95ca37c4f75d589367ffb0b47795c44598f1ec12cd314dfa74664b03b6b5968b51\",\"name\":\"@esbuild/linux-ia32\",\"version\":\"0.28.2\"},\"@esbuild__linux-loong64-0.28.2.tgz\":{\"integrity\":\"buwkd8nsph4R+ajRvw0qM5Hja/TXQow3ptzWO2EbG/cqcIkHloRrdlBtQlshyYGTNFvfkfJ5tpPLVkY4DtsPfQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6eec2477c9eca61e11f9a8d1bf0d2a3391e36bf4d7428c37a6dcd63b611b1bf72a70890796846b76506d425b21c98193345bdf91f279b693cb5646380edb0f7d\",\"name\":\"@esbuild/linux-loong64\",\"version\":\"0.28.2\"},\"@esbuild__linux-mips64el-0.28.2.tgz\":{\"integrity\":\"ZVykbDyk7519VwiNb9Lcj9m8XM6v5V9uKPvrEMkkEedVewf+0itkhahp4HDpgERXhwLRpWFypsGbG/J8s0QjJA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"655ca46c3ca4ef9d7d57088d6fd2dc8fd9bc5cceafe55f6e28fbeb10c92411e7557b07fed22b6485a869e070e98044578702d1a56172a6c19b1bf27cb3442324\",\"name\":\"@esbuild/linux-mips64el\",\"version\":\"0.28.2\"},\"@esbuild__linux-ppc64-0.28.2.tgz\":{\"integrity\":\"CAXl+Dtd9UUuJd8pKKdwh6MLm3MUMiqMPmhZ3tTSXPqfyQ3vDl6R5hZdZ/kYojK4ofXtdfSv1tFq8XzWx3heNQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0805e5f83b5df5452e25df2928a77087a30b9b7314322a8c3e6859ded4d25cfa9fc90def0e5e91e6165d67f918a232b8a1f5ed75f4afd6d16af17cd6c7785e35\",\"name\":\"@esbuild/linux-ppc64\",\"version\":\"0.28.2\"},\"@esbuild__linux-riscv64-0.28.2.tgz\":{\"integrity\":\"GeXCej4IQtU1B+QlDV8W/RRvbzI3O/Stss+/bCXv4lZls5WGRtu2a+3JkA3i4qIUlMXpcHebWpF8AkJhATowuA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"19e5c27a3e0842d53507e4250d5f16fd146f6f32373bf4adb2cfbf6c25efe25665b3958646dbb66bedc9900de2e2a21494c5e970779b5a917c024261013a30b8\",\"name\":\"@esbuild/linux-riscv64\",\"version\":\"0.28.2\"},\"@esbuild__linux-s390x-0.28.2.tgz\":{\"integrity\":\"3H1weTYZPxt/WOhByszQZybS9w5lKzUn1FDMsgEChbHWQwHYQQRfBxgCcZvPhjHfKyJjIievvMmEUawJrdY9Dg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"dc7d707936193f1b7f58e841caccd06726d2f70e652b3527d450ccb2010285b1d64301d841045f071802719bcf8631df2b22632227afbcc98451ac09add63d0e\",\"name\":\"@esbuild/linux-s390x\",\"version\":\"0.28.2\"},\"@esbuild__linux-x64-0.28.2.tgz\":{\"integrity\":\"4xTZr1FUmSoQW4XIWmit3tzQrUTZM+N3P0XV8xROKYF50XfI7xeO90+1bZvNwxIufQ9hDQVRJH5YhgPVF8A/HQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e314d9af5154992a105b85c85a68addedcd0ad44d933e3773f45d5f3144e298179d177c8ef178ef74fb56d9bcdc3122e7d0f610d0551247e588603d517c03f1d\",\"name\":\"@esbuild/linux-x64\",\"version\":\"0.28.2\"},\"@esbuild__netbsd-arm64-0.28.2.tgz\":{\"integrity\":\"sSATRjPeDBg3pdgHoQfoYBob11Kk1FGa9lui5RIHZCoCkJa9QKlvl3/vKz2usCmYYjs7ymJR/2Nnsqe+Hjt5nw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b120134633de0c1837a5d807a107e8601a1bd752a4d4519af65ba2e51207642a029096bd40a96f977fef2b3daeb02998623b3bca6251ff6367b2a7be1e3b799f\",\"name\":\"@esbuild/netbsd-arm64\",\"version\":\"0.28.2\"},\"@esbuild__netbsd-x64-0.28.2.tgz\":{\"integrity\":\"lqnzCV+mM0gIADaKihiCg6ifgfU2L3h5E33rNQBN1Y4MaVGnzryzmvvf7UHxprpQdE8hpqLolJ9Rl+SkIRDpyw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"96a9f3095fa633480800368a8a188283a89f81f5362f7879137deb35004dd58e0c6951a7cebcb39afbdfed41f1a6ba50744f21a6a2e8949f5197e4a42110e9cb\",\"name\":\"@esbuild/netbsd-x64\",\"version\":\"0.28.2\"},\"@esbuild__openbsd-arm64-0.28.2.tgz\":{\"integrity\":\"AL2qJILH7lNjrDmCQDvdxMfAUIv8KMNZOvrwAQ8i8//ntL9FflhOyMJ8OZSMBb8/AWXe3/5v5S20y3zCoZWKoQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"00bdaa2482c7ee5363ac3982403bddc4c7c0508bfc28c3593afaf0010f22f3ffe7b4bf457e584ec8c27c39948c05bf3f0165dedffe6fe52db4cb7cc2a1958aa1\",\"name\":\"@esbuild/openbsd-arm64\",\"version\":\"0.28.2\"},\"@esbuild__openbsd-x64-0.28.2.tgz\":{\"integrity\":\"QtiuPytchRyC4rwUKhexJdQKvDuZ6hWloi3igqPQNUJCS1/v9EiO3UTOXR6A3FoMo4fnAKbWJdqaIwhOzh8qEw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"42d8ae3f2b5c851c82e2bc142a17b125d40abc3b99ea15a5a22de282a3d03542424b5feff4488edd44ce5d1e80dc5a0ca387e700a6d625da9a23084ece1f2a13\",\"name\":\"@esbuild/openbsd-x64\",\"version\":\"0.28.2\"},\"@esbuild__openharmony-arm64-0.28.2.tgz\":{\"integrity\":\"WkhYDmpTjLvGlScA1rwjRUmhl4k8oXR3cIbtqWmELgU/dFeHHlEllxDvdWcNJV9rbzCexB5vz8gtNewWLgCT7Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5a48580e6a538cbbc6952700d6bc234549a197893ca174777086eda969842e053f7457871e51259710ef75670d255f6b6f309ec41e6fcfc82d35ec162e0093ed\",\"name\":\"@esbuild/openharmony-arm64\",\"version\":\"0.28.2\"},\"@esbuild__sunos-x64-0.28.2.tgz\":{\"integrity\":\"GPMSkTOtMnv2U2F8gxe4Io6qmVs+YKyp832Etqqxr0hFngmXQ3rzwytelm3GIn7T4VviRUlf3sOgBOiTdvaf7g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"18f3129133ad327bf653617c8317b8228eaa995b3e60aca9f37d84b6aab1af48459e0997437af3c32b5e966dc6227ed3e15be245495fdec3a004e89376f69fee\",\"name\":\"@esbuild/sunos-x64\",\"version\":\"0.28.2\"},\"@esbuild__win32-arm64-0.28.2.tgz\":{\"integrity\":\"PIhhEkE9uPBleRBrQEJpUn7MBnibZzbGzYWPmY3x+YoVg/95zbjB4CxPPOQ8l5tYYM4mMaCthF8/1DIfBQQyWQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3c886112413db8f06579106b404269527ecc06789b6736c6cd858f998df1f98a1583ff79cdb8c1e02c4f3ce43c979b5860ce2631a0ad845f3fd4321f05043259\",\"name\":\"@esbuild/win32-arm64\",\"version\":\"0.28.2\"},\"@esbuild__win32-ia32-0.28.2.tgz\":{\"integrity\":\"YmJbfTlvU7Sdn9BB+4PRES4oB6pxgS37MAONj+hBr/cpXS1aBPKXxNnDbu+QCWPj0o9dgyxeq79g6c5P8KeuYA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"62625b7d396f53b49d9fd041fb83d1112e2807aa71812dfb30038d8fe841aff7295d2d5a04f297c4d9c36eef900963e3d28f5d832c5eabbf60e9ce4ff0a7ae60\",\"name\":\"@esbuild/win32-ia32\",\"version\":\"0.28.2\"},\"@esbuild__win32-x64-0.28.2.tgz\":{\"integrity\":\"5ebpxr3nWMzrL/rnUI755Jkuee0bHL/Gq0WTF9lvcpv73wAp5eu8MfBUgWK9bhWvZjj7yX8etf/8tI8Ney695g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e5e6e9c6bde758cceb2ffae7508ef9e4992e79ed1b1cbfc6ab459317d96f729bfbdf0029e5ebbc31f0548162bd6e15af6638fbc97f1eb5fffcb48f0d7b2ebde6\",\"name\":\"@esbuild/win32-x64\",\"version\":\"0.28.2\"},\"@exodus__bytes-1.15.1.tgz\":{\"integrity\":\"S6mL0yNB/Abt9Ei4tq8gDhcczc4S3+vQ4ra7vxnAf+YHC02srtqxKKZghx2Dq6p0e66THKwR6r8N6P95wEty7Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4ba98bd32341fc06edf448b8b6af200e171ccdce12dfebd0e2b6bbbf19c07fe6070b4dacaedab128a660871d83abaa747bae931cac11eabf0de8ff79c04b72ed\",\"name\":\"@exodus/bytes\",\"version\":\"1.15.1\"},\"@fastify__accept-negotiator-2.1.0.tgz\":{\"integrity\":\"F3EVbzWt+xcnVaOHmWyIlpuFtbxOln7HDZQsh09MtMmMm/CipMayNt8hnIL8VQi54u2ZociDbf+iluGYkf7B1A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1771156f35adfb172755a387996c88969b85b5bc4e967ec70d942c874f4cb4c98c9bf0a2a4c6b236df219c82fc5508b9e2ed99a1c8836dffa296e19891fec1d4\",\"name\":\"@fastify/accept-negotiator\",\"version\":\"2.1.0\"},\"@fastify__ajv-compiler-4.0.6.tgz\":{\"integrity\":\"NtuzM0SfaMJbGlnjr9LWQUN5LzgSrbB8tf/wRZNas+4E1O/Nmzl53e7ruT61HDZyRCJGC6FxIogmNZO1c5ETBA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"36dbb333449f68c25b1a59e3afd2d64143792f3812adb07cb5fff045935ab3ee04d4efcd9b3979ddeeebb93eb51c36724422460ba1712288263593b573911304\",\"name\":\"@fastify/ajv-compiler\",\"version\":\"4.0.6\"},\"@fastify__error-4.2.0.tgz\":{\"integrity\":\"RSo3sVDXfHskiBZKBPRgnQTtIqpi/7zhJOEmAxCiBcM7d0uwdGdxLlsCaLzGs8v8NnxIRlfG0N51p5yFaOentQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"452a37b150d77c7b2488164a04f4609d04ed22aa62ffbce124e1260310a205c33b774bb07467712e5b0268bcc6b3cbfc367c484657c6d0de75a79c8568e7a7b5\",\"name\":\"@fastify/error\",\"version\":\"4.2.0\"},\"@fastify__fast-json-stringify-compiler-5.1.0.tgz\":{\"integrity\":\"PxcYtKLbQ8Z+yApiqjK8FwxIwvEj38k2OiLc17u8dkJSlmfi2wHHPaSnaoqBPQqtvF8YVsDgDpP2snDCfFrpfw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3f1718b4a2db43c67ec80a62aa32bc170c48c2f123dfc9363a22dcd7bbbc7642529667e2db01c73da4a76a8a813d0aadbc5f1856c0e00e93f6b270c27c5ae97f\",\"name\":\"@fastify/fast-json-stringify-compiler\",\"version\":\"5.1.0\"},\"@fastify__forwarded-3.0.2.tgz\":{\"integrity\":\"NE8HgKLgYejV9lDpqkEFaDKMLYelJBVfHekhB0UKvX0ghagXRJqg68feg8er1NPXxG4N9i6vPxzt8E+3wHfcmA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"344f0780a2e061e8d5f650e9aa410568328c2d87a524155f1de92107450abd7d2085a817449aa0ebc7de83c7abd4d3d7c46e0df62eaf3f1cedf04fb7c077dc98\",\"name\":\"@fastify/forwarded\",\"version\":\"3.0.2\"},\"@fastify__merge-json-schemas-0.2.1.tgz\":{\"integrity\":\"OA3KGBCy6KtIvLf8DINC5880o5iBlDX4SxzLQS8HorJAbqluzLRn80UXU0bxZn7UOFhFgpRJDasfwn9nG4FG4A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"380dca1810b2e8ab48bcb7fc0c8342e7cf34a398819435f84b1ccb412f07a2b2406ea96eccb467f345175346f1667ed43858458294490dab1fc27f671b8146e0\",\"name\":\"@fastify/merge-json-schemas\",\"version\":\"0.2.1\"},\"@fastify__proxy-addr-5.1.0.tgz\":{\"integrity\":\"INS+6gh91cLUjB+PVHfu1UqcB76Sqtpyp7bnL+FYojhjygvOPA9ctiD/JDKsyD9Xgu4hUhCSJBPig/w7duNajw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"20d4beea087dd5c2d48c1f8f5477eed54a9c07be92aada72a7b6e72fe158a23863ca0bce3c0f5cb620ff2432acc83f5782ee215210922413e283fc3b76e35a8f\",\"name\":\"@fastify/proxy-addr\",\"version\":\"5.1.0\"},\"@fastify__send-4.1.1.tgz\":{\"integrity\":\"BYo+EiaKwlxH+WetGk6hAs1d39iP0y1gqB8lGF/qwkJ9ZZ/cBY1vx5NvExb9Sc3yRMFjD5X4Eyh4e4+TzRkzdw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"058a3e12268ac25c47f967ad1a4ea102cd5ddfd88fd32d60a81f25185feac2427d659fdc058d6fc7936f1316fd49cdf244c1630f95f81328787b8f93cd193377\",\"name\":\"@fastify/send\",\"version\":\"4.1.1\"},\"@fastify__static-10.1.3.tgz\":{\"integrity\":\"W6jqajYS974XjPjB5hQWoxPM8NKM4+p8YmQT6G5IbCa4uhdWSVadZUv75siy1wEA/3ty8RYdpBydfWeu9AqAqQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5ba8ea6a3612f7be178cf8c1e61416a313ccf0d28ce3ea7c626413e86e486c26b8ba175649569d654bfbe6c8b2d70100ff7b72f1161da41c9d7d67aef40a80a9\",\"name\":\"@fastify/static\",\"version\":\"10.1.3\"},\"@fastify__websocket-11.3.0.tgz\":{\"integrity\":\"g89ag4BCcD9YP5wBZXixzoLnuf5j89p/sXFcfpCiv2pdEkYYukBEoK3heVzqsp0EAtszVDc2BBZG0KZqeAShIA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"83cf5a838042703f583f9c016578b1ce82e7b9fe63f3da7fb1715c7e90a2bf6a5d124618ba4044a0ade1795ceab29d0402db33543736041646d0a66a7804a120\",\"name\":\"@fastify/websocket\",\"version\":\"11.3.0\"},\"@floating-ui__core-1.8.0.tgz\":{\"integrity\":\"0CIZ5itps/8x7BG8dEIhs53BvCUH2PCoogtakwRTut+Arm58sJooJ0AuZhLw2HJYIR5cMLNPBSS728sPho2khQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d02219e62b69b3ff31ec11bc744221b39dc1bc2507d8f0a8a20b5a930453badf80ae6e7cb09a2827402e6612f0d87258211e5c30b34f0524bbdbcb0f868da485\",\"name\":\"@floating-ui/core\",\"version\":\"1.8.0\"},\"@floating-ui__dom-1.8.0.tgz\":{\"integrity\":\"yXSrzeHZBTZadLOlfyhCkJHNeLJnHRnRInwdZ40L7ZiaAtrBwoYlsDrX3v5zB1Utk7CLfzcOVnVVWoXEky7Ceg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c974abcde1d905365a74b3a57f28429091cd78b2671d19d1227c1d678d0bed989a02dac1c28625b03ad7defe7307552d93b08b7f370e5675555a85c4932ec27a\",\"name\":\"@floating-ui/dom\",\"version\":\"1.8.0\"},\"@floating-ui__react-dom-2.1.9.tgz\":{\"integrity\":\"JDjEFGCpImxDCA7JJKviA0M9+RtmJdj0m/NVU5IMgBK+AmZouAQQ7/+2GLH0GXXY0YMw9oXPB8hKdbPYg5QLYg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2438c41460a9226c43080ec924abe203433df91b6625d8f49bf35553920c8012be026668b80410efffb618b1f41975d8d18330f685cf07c84a75b3d883940b62\",\"name\":\"@floating-ui/react-dom\",\"version\":\"2.1.9\"},\"@floating-ui__utils-0.2.12.tgz\":{\"integrity\":\"HpCo8tmWzLVad5s2d19EhAz5zqrrQ6s69qd6moPMQvkOuSwDT1YgRfWSVuc4ennqrgv3OHppiOGMQ7oC13yIww==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1e90a8f2d996ccb55a779b36775f44840cf9ceaaeb43ab3af6a77a9a83cc42f90eb92c034f562045f59256e7387a79eaae0bf7387a6988e18c43ba02d77c88c3\",\"name\":\"@floating-ui/utils\",\"version\":\"0.2.12\"},\"@fontsource-variable__inter-5.3.0.tgz\":{\"integrity\":\"OupL48va4JNofb97w6NYeF9S7W/kHNKM0Er8Dem5nqi4jeOLrVJDoE8tZEpnMJmtkvNbB1EIPPwHcdkF6b1oUA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3aea4be3cbdae093687dbf7bc3a358785f52ed6fe41cd28cd04afc0de9b99ea8b88de38bad5243a04f2d644a673099ad92f35b0751083cfc0771d905e9bd6850\",\"name\":\"@fontsource-variable/inter\",\"version\":\"5.3.0\"},\"@hono__node-server-2.1.1.tgz\":{\"integrity\":\"ELuehkj5VCBdgEw9zs+ivkKwyzzUCSQuE96YmiPvn1ECBoZCczbFXJLeEGMTYjphP6gydh4pHMqEYPVMYUVgQg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"10bb9e8648f954205d804c3dcecfa2be42b0cb3cd409242e13de989a23ef9f51020686427336c55c92de106313623a613fa832761e291cca8460f54c61456042\",\"name\":\"@hono/node-server\",\"version\":\"2.1.1\"},\"@hookform__resolvers-5.9.1.tgz\":{\"integrity\":\"7b7vsbraJxKgjVSA1Nur9tLwj539WGJUBLA7QNvXnFoT2pM5Z7G+6rlukk4B2/QrTZy6huRtH6wKeESPKuIr6w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"edbeefb1bada2712a08d5480d4dbabf6d2f08f9dfd58625404b03b40dbd79c5a13da933967b1beeab96e924e01dbf42b4d9cba86e46d1fac0a78448f2ae22beb\",\"name\":\"@hookform/resolvers\",\"version\":\"5.9.1\"},\"@isaacs__fs-minipass-4.0.1.tgz\":{\"integrity\":\"wgm9Ehl2jpeqP3zw/7mo3kRHFp5MEDhqAdwy1fTGkHAwnkGOVsgpvQhL8B5n1qlb01jV3n/bI0ZfZp5lWA1k4w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c209bd1219768e97aa3f7cf0ffb9a8de4447169e4c10386a01dc32d5f4c69070309e418e56c829bd084bf01e67d6a95bd358d5de7fdb23465f669e65580d64e3\",\"name\":\"@isaacs/fs-minipass\",\"version\":\"4.0.1\"},\"@jitl__quickjs-ffi-types-0.32.0.tgz\":{\"integrity\":\"v9T+GQpmk43VDJ7d72sf0Nexhk+ArvtUihW27dy7lqAl0zBObFKtSBBIm5RBjwIhE8VwsPPm9PNuvPvNqLWUEg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"bfd4fe190a66938dd50c9eddef6b1fd0d7b1864f80aefb548a15b6eddcbb96a025d3304e6c52ad4810489b94418f022113c570b0f3e6f4f36ebcfbcda8b59412\",\"name\":\"@jitl/quickjs-ffi-types\",\"version\":\"0.32.0\"},\"@jitl__quickjs-wasmfile-debug-asyncify-0.32.0.tgz\":{\"integrity\":\"EX8zbXwGqCgAE764M+qvkHtyXDi/FUoMBea0JnES7vCM3P7a2+EOZOjGv85wtZ2sJhI1oJ+nekmqpOODFDY+hw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"117f336d7c06a8280013beb833eaaf907b725c38bf154a0c05e6b4267112eef08cdcfedadbe10e64e8c6bfce70b59dac261235a09fa77a49aaa4e38314363e87\",\"name\":\"@jitl/quickjs-wasmfile-debug-asyncify\",\"version\":\"0.32.0\"},\"@jitl__quickjs-wasmfile-debug-sync-0.32.0.tgz\":{\"integrity\":\"LeYWrPGC1uNCTBWvibo3ZLJj0CSVNYUXvJpXMCmuQ5Sap2cCACc3uvGvYV4homHHBAzfw5akoTqMMS4YFRtw+Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2de616acf182d6e3424c15af89ba3764b263d02495358517bc9a573029ae43949aa76702002737baf1af615e21a261c7040cdfc396a4a13a8c312e18151b70f9\",\"name\":\"@jitl/quickjs-wasmfile-debug-sync\",\"version\":\"0.32.0\"},\"@jitl__quickjs-wasmfile-release-asyncify-0.32.0.tgz\":{\"integrity\":\"3oSwPfja12ICz4aIblB58cuY8JlEq5Txt8Cut4VLo+LH47QN+mzCnSgnbB03hWzg1LBcc+VyyI9UOag7a1NF+Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"de84b03df8dad76202cf86886e5079f1cb98f09944ab94f1b7c0aeb7854ba3e2c7e3b40dfa6cc29d28276c1d37856ce0d4b05c73e572c88f5439a83b6b5345f9\",\"name\":\"@jitl/quickjs-wasmfile-release-asyncify\",\"version\":\"0.32.0\"},\"@jitl__quickjs-wasmfile-release-sync-0.32.0.tgz\":{\"integrity\":\"BKNDI/TPBfGlLNGYpLrhcDGXmIk4xHm4MRAisOBnOzpXVn9HZWsfmMAc9WMBrAHjvvds6HOikKeaOBKdPdpVrg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"04a34323f4cf05f1a52cd198a4bae1703197988938c479b8311022b0e0673b3a57567f47656b1f98c01cf56301ac01e3bef76ce873a290a79a38129d3dda55ae\",\"name\":\"@jitl/quickjs-wasmfile-release-sync\",\"version\":\"0.32.0\"},\"@jridgewell__gen-mapping-0.3.13.tgz\":{\"integrity\":\"2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"da492dffb9e227a32010fc45d1b61d43a7ad65a03e7d0bc370b29c921cb5c8840ecdaa0a8c10634a3eb7fda2d58d8137aa146de5dbccfae5327c283a50a0816c\",\"name\":\"@jridgewell/gen-mapping\",\"version\":\"0.3.13\"},\"@jridgewell__remapping-2.3.5.tgz\":{\"integrity\":\"LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2c8f6effe95a606e03b354c3292256d983eb22571560ec22d9f502eb1078de5b9e0a383157895f7ce0990ad605887e9334e5feb50297c7ded3e082876e1c8711\",\"name\":\"@jridgewell/remapping\",\"version\":\"2.3.5\"},\"@jridgewell__resolve-uri-3.1.2.tgz\":{\"integrity\":\"bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6d12128022233f6d3fb5b5923d63048b9e1054f45913192e0fd9492fe508c542adc15240f305b54eb6f58ccb354455e8d42053359ff98690bd42f98a59da292b\",\"name\":\"@jridgewell/resolve-uri\",\"version\":\"3.1.2\"},\"@jridgewell__sourcemap-codec-1.5.5.tgz\":{\"integrity\":\"cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"71843ddf5d20aeac6e7966e5f96b885086a251a0dc8fb58eab97d58449633558117ce52163d7f2db34ef7e8a96b2779b87c4a5ef45527056c80af2672ca0743a\",\"name\":\"@jridgewell/sourcemap-codec\",\"version\":\"1.5.5\"},\"@jridgewell__trace-mapping-0.3.31.tgz\":{\"integrity\":\"zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"cf3351f9275048327373c8e869e3fc410a0242bf0db98c76748232b65d507811191c9f6e5ba85e6ecad881bcfc849c1441aa374d608cb667d5f0dbb5b7038b03\",\"name\":\"@jridgewell/trace-mapping\",\"version\":\"0.3.31\"},\"@lukeed__ms-2.0.2.tgz\":{\"integrity\":\"9I2Zn6+NJLfaGoz9jN3lpwDgAYvfGeNYdbAIjJOqzs4Tpc+VU3Jqq4IofSUBKajiDS8k9fZIg18/z13mpk1bsA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f48d999faf8d24b7da1a8cfd8cdde5a700e0018bdf19e35875b0088c93aacece13a5cf9553726aab82287d250129a8e20d2f24f5f648835f3fcf5de6a64d5bb0\",\"name\":\"@lukeed/ms\",\"version\":\"2.0.2\"},\"@malept__cross-spawn-promise-2.0.0.tgz\":{\"integrity\":\"1DpKU0Z5ThltBwjNySMC14g0CkbyhCaz9FkhxqNsZI6uAPJXFS8cMXlBKo26FJ8ZuW6S9GCMcR9IO5k2X5/9Fg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d43a4a5346794e196d0708cdc92302d788340a46f28426b3f45921c6a36c648eae00f257152f1c3179412a8dba149f19b96e92f4608c711f483b99365f9ffd16\",\"name\":\"@malept/cross-spawn-promise\",\"version\":\"2.0.0\"},\"@malept__flatpak-bundler-0.4.0.tgz\":{\"integrity\":\"9QOtNffcOF/c1seMCDnjckb3R9WHcG34tky+FHpNKKCW0wc/scYLwMtO+ptyGUfMW0/b/n4qRiALlaFHc9Oj7Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f503ad35f7dc385fdcd6c78c0839e37246f747d587706df8b64cbe147a4d28a096d3073fb1c60bc0cb4efa9b721947cc5b4fdbfe7e2a46200b95a14773d3a3ed\",\"name\":\"@malept/flatpak-bundler\",\"version\":\"0.4.0\"},\"@modelcontextprotocol__sdk-1.30.0.tgz\":{\"integrity\":\"xKd8OIzlqNzcqcNumGAa6g+PW2kjD5vrpcKOnfldAUPP3j7lnqMPwlTXQm8gF+UwH72z0lqaRbjr9hqGz0eITA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c4a77c388ce5a8dcdca9c36e98601aea0f8f5b69230f9beba5c28e9df95d0143cfde3ee59ea30fc254d7426f2017e5301fbdb3d25a9a45b8ebf61a86cf47884c\",\"name\":\"@modelcontextprotocol/sdk\",\"version\":\"1.30.0\"},\"@motrix__cli-0.4.0.tgz\":{\"integrity\":\"DpwxzV/kUNBRzznmHI8qhbH1tCuno9RCh0QmUc1wMf+51slRnQiT14kTXw1hIh8Nwf11fTwFAvFKF5O97e5BmA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0e9c31cd5fe450d051cf39e61c8f2a85b1f5b42ba7a3d44287442651cd7031ffb9d6c9519d0893d789135f0d61221f0dc1fd757d3c0502f14a1793bdedee4198\",\"name\":\"@motrix/cli\",\"version\":\"0.4.0\"},\"@motrix__mdxp-0.6.0.tgz\":{\"integrity\":\"ySgMuME8chFax2lxtELbCYrM9ayGciEN8UikYG6MLGg3Z8I6RTY+XarC40RjhY2vVnMdLrf9ff7ZiH6hSjLkdg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c9280cb8c13c72115ac76971b442db098accf5ac8672210df148a4606e8c2c683767c23a45363e5daac2e34463858daf56731d2eb7fd7dfed9887ea14a32e476\",\"name\":\"@motrix/mdxp\",\"version\":\"0.6.0\"},\"@motrix__nat-0.1.1.tgz\":{\"integrity\":\"ORkFuNXMLa8yLhlxRmoLh6WSWtOjhJ4q28Dcx4Wt44JSkB60gjNzuBV8CVCy2VtWc2BhxiOlel4f3RhJ7OmaXw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"391905b8d5cc2daf322e1971466a0b87a5925ad3a3849e2adbc0dcc785ade38252901eb4823373b8157c0950b2d95b56736061c623a57a5e1fdd1849ece99a5f\",\"name\":\"@motrix/nat\",\"version\":\"0.1.1\"},\"@motrix__plugin-manifest-schema-2.1.0.tgz\":{\"integrity\":\"S6p1uhoQzYbepVkYV86dmmD+7xLagto7ft3vWcLK4Fg8KtvEikV1b+ZPyE5OjgpZO3WEFcMe8uuc/Iymai0fmw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4baa75ba1a10cd86dea5591857ce9d9a60feef12da82da3b7eddef59c2cae0583c2adbc48a45756fe64fc84e4e8e0a593b758415c31ef2eb9cfc8ca66a2d1f9b\",\"name\":\"@motrix/plugin-manifest-schema\",\"version\":\"2.1.0\"},\"@noble__curves-2.0.1.tgz\":{\"integrity\":\"vs1Az2OOTBiP4q0pwjW5aF0xp9n4MxVrmkFBxc6EKZc6ddYx5gaZiAsZoq0uRRXWbi3AT/sBqn05eRPtn1JCPw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"becd40cf638e4c188fe2ad29c235b9685d31a7d9f833156b9a4141c5ce8429973a75d631e60699880b19a2ad2e4515d66e2dc04ffb01aa7d397913ed9f52423f\",\"name\":\"@noble/curves\",\"version\":\"2.0.1\"},\"@noble__hashes-1.4.0.tgz\":{\"integrity\":\"V1JJ1WTRUqHHrOSh597hURcMqVKVGL/ea3kv0gSnEdsEZ0/+VyPghM1lMNGc00z7CIQorSvbKpuJkxvuHbvdbg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"575249d564d152a1c7ace4a1e7dee151170ca9529518bfde6b792fd204a711db04674ffe5723e084cd6530d19cd34cfb088428ad2bdb2a9b89931bee1dbbdd6e\",\"name\":\"@noble/hashes\",\"version\":\"1.4.0\"},\"@noble__hashes-2.0.1.tgz\":{\"integrity\":\"XlOlEbQcE9fmuXxrVTXCTlG2nlRXa9Rj3rr5Ue/+tX+nmkgbX720YHh0VR3hBF9xDvwnb8D2shVGOwNx+ulArw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5e53a511b41c13d7e6b97c6b5535c24e51b69e54576bd463debaf951effeb57fa79a481b5fbdb4607874551de1045f710efc276fc0f6b215463b0371fae940af\",\"name\":\"@noble/hashes\",\"version\":\"2.0.1\"},\"@noble__hashes-2.3.0.tgz\":{\"integrity\":\"oN+QwyX7VSHotibwubG3kpzbwKrfnyR6OOO+3Nk/53ADL7FmgHHz4TgrbaYKvvOw09u6QTx0oiH1cNCIOuN0CQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a0df90c325fb5521e8b626f0b9b1b7929cdbc0aadf9f247a38e3bedcd93fe770032fb1668071f3e1382b6da60abef3b0d3dbba413c74a221f570d0883ae37409\",\"name\":\"@noble/hashes\",\"version\":\"2.3.0\"},\"@nodelib__fs.scandir-2.1.5.tgz\":{\"integrity\":\"vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"beadb806adf29b91c4426d8d282af7c970f08dceef4ec1138510e7929d832bda75baa2d1f831eeae6fcd393a34286ec760753b7a9a4a663dcccaa62e3017fada\",\"name\":\"@nodelib/fs.scandir\",\"version\":\"2.1.5\"},\"@nodelib__fs.stat-2.0.5.tgz\":{\"integrity\":\"RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"46484f3e9db3aea0c0400ff68cd867ced70f025bfae17761229edaef8e78039a2f23b06e93182decc5fbb9dc00bb7ce0d437293d4d2bcf7555d5279aaaf638f8\",\"name\":\"@nodelib/fs.stat\",\"version\":\"2.0.5\"},\"@nodelib__fs.walk-1.2.8.tgz\":{\"integrity\":\"oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a0607e53196059c810920c28f067041b07a6a1316ddc520ef5a6da6c199a1b05c8a01299f864f2d293f5f396de1a0ecb96287f3521d25765c0b35967ce7a1c4a\",\"name\":\"@nodelib/fs.walk\",\"version\":\"1.2.8\"},\"@oxc-project__types-0.144.0.tgz\":{\"integrity\":\"nuhZIOLuI6TFQ32I/WnUx+SCPY7SdSKwgnFHydAuoS1+Z4BRcaP+RRJmGzl9lw+0OFF7UmaESf7KQRXaNLHypg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9ee85920e2ee23a4c5437d88fd69d4c7e4823d8ed27522b0827147c9d02ea12d7e67805171a3fe4512661b397d970fb438517b52668449feca4115da34b1f2a6\",\"name\":\"@oxc-project/types\",\"version\":\"0.144.0\"},\"@peculiar__asn1-schema-2.9.0.tgz\":{\"integrity\":\"AKvPMOM7LfK0uFe1m7o7+veOa8xQGPqsqOrKi3QKgCElzwjGp39mbhr2g7mt/v/mXQHiIvJmDj5cJS173x8Q9Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"00abcf30e33b2df2b4b857b59bba3bfaf78e6bcc5018faaca8eaca8b740a802125cf08c6a77f666e1af683b9adfeffe65d01e222f2660e3e5c252d7bdf1f10f5\",\"name\":\"@peculiar/asn1-schema\",\"version\":\"2.9.0\"},\"@peculiar__json-schema-1.1.12.tgz\":{\"integrity\":\"coUfuoMeIB7B8/NMekxaDzLhaYmp0HZNPEjYRm9goRou8UZIC3z21s0sL9AWoCw4EG876QyO3kYrc61WNF9B/w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"72851fba831e201ec1f3f34c7a4c5a0f32e16989a9d0764d3c48d8466f60a11a2ef146480b7cf6d6cd2c2fd016a02c38106f3be90c8ede462b73ad56345f41ff\",\"name\":\"@peculiar/json-schema\",\"version\":\"1.1.12\"},\"@peculiar__utils-2.0.3.tgz\":{\"integrity\":\"+oL3HPFRIZ1St2K50lWCXiioIgSoxzz7R1J3uF6neO2yl1sgmpgY6XXJH4BdpoDkMWznQTeYF6oWNDZLCdQ4eQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"fa82f71cf151219d52b762b9d255825e28a82204a8c73cfb475277b85ea778edb2975b209a9818e975c91f805da680e4316ce741379817aa1634364b09d43879\",\"name\":\"@peculiar/utils\",\"version\":\"2.0.3\"},\"@peculiar__webcrypto-1.7.1.tgz\":{\"integrity\":\"ODOov0sGMJMf3jPonOkgGqPknTsu+DdQ7kD++gz8aI+aFMOMHFbWAA2taqXXVTdP+OTOQR/znGvSpmkeI0WTYQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3833a8bf4b0630931fde33e89ce9201aa3e49d3b2ef83750ee40fefa0cfc688f9a14c38c1c56d6000dad6aa5d755374ff8e4ce411ff39c6bd2a6691e23459361\",\"name\":\"@peculiar/webcrypto\",\"version\":\"1.7.1\"},\"@pinojs__redact-0.4.0.tgz\":{\"integrity\":\"k2ENnmBugE/rzQfEcdWHcCY+/FM3VLzH9cYEsbdsoqrvzAKRhUZeRNhAZvB8OitQJ1TBed3yqWtdjzS6wJKBwg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"93610d9e606e804febcd07c471d58770263efc533754bcc7f5c604b1b76ca2aaefcc029185465e44d84066f07c3a2b502754c179ddf2a96b5d8f34bac09281c2\",\"name\":\"@pinojs/redact\",\"version\":\"0.4.0\"},\"@playwright__test-1.62.1.tgz\":{\"integrity\":\"DTcUc8qii+cpHvtOwggMtBRMjKZHXYWdw8syRYu2vtzuq4Wxphqq4NfCs5Zt44L6mA8rfDfj+PHnxFc/FeK6mQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0d371473caa28be7291efb4ec2080cb4144c8ca6475d859dc3cb32458bb6bedceeab85b1a61aaae0d7c2b3966de382fa980f2b7c37e3f8f1e7c4573f15e2ba99\",\"name\":\"@playwright/test\",\"version\":\"1.62.1\"},\"@radix-ui__primitive-1.1.7.tgz\":{\"integrity\":\"rqWnm76nYT8HoNNqEjpgJ7Pw/DrBj5iBTrmEPo6HTX5+VJyBNOqTdv4g89G63HuR5g0AaENoAcH7Is5fF2kZ8Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"aea5a79bbea7613f07a0d36a123a6027b3f0fc3ac18f98814eb9843e8e874d7e7e549c8134ea9376fe20f3d1badc7b91e60d0068436801c1fb22ce5f176919f1\",\"name\":\"@radix-ui/primitive\",\"version\":\"1.1.7\"},\"@radix-ui__react-compose-refs-1.1.5.tgz\":{\"integrity\":\"+48PbAAbq3didjJxa+OaWY2ZwgAKsNiRGyeHKszblZMQ+kcpd9pAaT11cMkGEie0vsOi3QdeTE6d5Fe3Gn61kA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"fb8f0f6c001bab77627632716be39a598d99c2000ab0d8911b27872accdb959310fa472977da40693d7570c9061227b4bec3a2dd075e4c4e9de457b71a7eb590\",\"name\":\"@radix-ui/react-compose-refs\",\"version\":\"1.1.5\"},\"@radix-ui__react-context-1.2.2.tgz\":{\"integrity\":\"RHCUGwKHDr0hDGg4X7ma4JG4/+12qxw8rkh5QKdDldlCvtja6nUx1Ef/8HVrJze81lEsgLQlqjzjGNHantgnQA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4470941b02870ebd210c68385fb99ae091b8ffed76ab1c3cae487940a74395d942bed8daea7531d447fff0756b2737bcd6512c80b425aa3ce318d1da9ed82740\",\"name\":\"@radix-ui/react-context\",\"version\":\"1.2.2\"},\"@radix-ui__react-dialog-1.1.23.tgz\":{\"integrity\":\"Ksw4WeROkO4rC9k/onilX/Ao2Cr1ku1unMNH+XSCcP4jSXYu7HDsg9n4ojMjVb22XpYjAQ9qfrFlVbru1vXDUA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2acc3859e44e90ee2b0bd93fa278a55ff028d82af592ed6e9cc347f9748270fe2349762eec70ec83d9f8a2332355bdb65e9623010f6a7eb16555baeed6f5c350\",\"name\":\"@radix-ui/react-dialog\",\"version\":\"1.1.23\"},\"@radix-ui__react-dismissable-layer-1.1.19.tgz\":{\"integrity\":\"8g4pfOL9HoKKLWGiypT+dphVqjFfmcXO5GBnhsG6zI+lxAx/8feQpr+1LSN8Re3hiZ+XkLNS4O9ztK11/LzQ6w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f20e297ce2fd1e828a2d61a2ca94fe769855aa315f99c5cee4606786c1bacc8fa5c40c7ff1f790a6bfb52d237c45ede1899f9790b352e0ef73b4ad75fcbcd0eb\",\"name\":\"@radix-ui/react-dismissable-layer\",\"version\":\"1.1.19\"},\"@radix-ui__react-focus-guards-1.1.6.tgz\":{\"integrity\":\"RNOJjfZMTyBM6xYmV3IVGXkPjIhcBAuv48POevAXwrGJhkWZ9p1rFoIS1JFooPuT193AZmRsCPhpoVJxx6OPoQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"44d3898df64c4f204ceb162657721519790f8c885c040bafe3c3ce7af017c2b189864599f69d6b168212d49168a0fb93d7ddc066646c08f869a15271c7a38fa1\",\"name\":\"@radix-ui/react-focus-guards\",\"version\":\"1.1.6\"},\"@radix-ui__react-focus-scope-1.1.16.tgz\":{\"integrity\":\"wmRZ2WWLvmt6KHy2rNPOdPUjwq5xOHY02+m+udwJTn0aNIox/rkskAvJTyTLGhPK6KgrUjlJUJpgmx/+wFiFIQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c26459d9658bbe6b7a287cb6acd3ce74f523c2ae71387634dbe9beb9dc094e7d1a348a31feb92c900bc94f24cb1a13cae8a82b523949509a609b1ffec0588521\",\"name\":\"@radix-ui/react-focus-scope\",\"version\":\"1.1.16\"},\"@radix-ui__react-id-1.1.4.tgz\":{\"integrity\":\"TMQp2llA+RYn7JcjnrMnz7wN4pcVttPZnRZo52PLQsoLVKzNlVwUeHmfePgTgRluXFvlD3GD5g5MOVVTJCO0qA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4cc429da5940f91627ec97239eb327cfbc0de29715b6d3d99d1668e763cb42ca0b54accd955c1478799f78f81381196e5c5be50f7183e60e4c3955532423b4a8\",\"name\":\"@radix-ui/react-id\",\"version\":\"1.1.4\"},\"@radix-ui__react-portal-1.1.17.tgz\":{\"integrity\":\"vKQLcWypUnwZVvfV7UkGahH2g6ySe8M8R+zYBwPrv5byZ9QAW6cQVvNKo7GgmD+p8aYb6D9JBuvy8/WhOno2wQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"bca40b716ca9527c1956f7d5ed49066a11f683ac927bc33c47ecd80703ebbf96f267d4005ba71056f34aa3b1a0983fa9f1a61be83f4906ebf2f3f5a13a7a36c1\",\"name\":\"@radix-ui/react-portal\",\"version\":\"1.1.17\"},\"@radix-ui__react-presence-1.1.10.tgz\":{\"integrity\":\"3wyzCQ6+ubRA+D4uv9m95JYLXxmOHp05qjrkjeA7uKHHtjpPggQzc6DAb0URl7j67oR0K2foO4ip27TiX037Bw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"df0cb3090ebeb9b440f83e2ebfd9bde4960b5f198e1e9d39aa3ae48de03bb8a1c7b63a4f82043373a0c06f451197b8faee84742b67e83b88a9dbb4e25f4dfb07\",\"name\":\"@radix-ui/react-presence\",\"version\":\"1.1.10\"},\"@radix-ui__react-primitive-2.1.10.tgz\":{\"integrity\":\"MucOnzh6hR5mid6VpkbglRAMYMjKLqRnGBbjXkzjK52fuQDd1qbkx78a5P40mkcnVXJdEVxm26E9OPAiUq7nBg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"32e70e9f387a851e6689de95a646e095100c60c8ca2ea4671816e35e4ce32b9d9fb900ddd6a6e4c7bf1ae4fe349a472755725d115c66dba13d38f02252aee706\",\"name\":\"@radix-ui/react-primitive\",\"version\":\"2.1.10\"},\"@radix-ui__react-slot-1.3.3.tgz\":{\"integrity\":\"qx7oqnYbxnK9kYI9m317qmFmEgo6ywqWvbTogdj7cL9p3/yx4M48p7Rnw5z3H890cL/ow/EeWJsuTykeZVXP5Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ab1ee8aa761bc672bd91823d9b7d7baa6166120a3acb0a96bdb4e881d8fb70bf69dffcb1e0ce3ca7b467c39cf71fcf7470bfe8c3f11e589b2e4f291e6555cfe5\",\"name\":\"@radix-ui/react-slot\",\"version\":\"1.3.3\"},\"@radix-ui__react-use-callback-ref-1.1.4.tgz\":{\"integrity\":\"R6OUY2e2fA6Yn6s+VSx5KBV6Nx8LQEhu+cz7LCej18rQ1HLyg9PSC9jP/ZNx0o6FAIK9c0F1kHylzSxKsdlkrQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"47a3946367b67c0e989fab3e552c7928157a371f0b40486ef9ccfb2c27a3d7cad0d472f283d3d20bd8cffd9371d28e850082bd734175907ca5cd2c4ab1d964ad\",\"name\":\"@radix-ui/react-use-callback-ref\",\"version\":\"1.1.4\"},\"@radix-ui__react-use-controllable-state-1.2.6.tgz\":{\"integrity\":\"uEQJGT97ZA/TgP/Hydw47lHu+/vQj6z/0jA+WeTbK1o9Rx45GImjpD0tc3W5ad3D6XTSR6e1yEO0FvGq6WQfVQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b84409193f7b640fd380ffc7c9dc38ee51eefbfbd08facffd2303e59e4db2b5a3d471e391889a3a43d2d7375b969ddc3e974d247a7b5c843b416f1aae9641f55\",\"name\":\"@radix-ui/react-use-controllable-state\",\"version\":\"1.2.6\"},\"@radix-ui__react-use-effect-event-0.0.5.tgz\":{\"integrity\":\"7cshFL8HGS/7HEiHH+9kL9HBwp2sa9yX18Knwek6KYWmXwM7pegMgta2AXMQKI+rq3JnfSj9x8wYqFMTdG1Jgg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"edcb2114bf07192ffb1c48871fef642fd1c1c29dac6bdc97d7c2a7c1e93a2985a65f033ba5e80c82d6b6017310288fabab72677d28fdc7cc18a85313746d4982\",\"name\":\"@radix-ui/react-use-effect-event\",\"version\":\"0.0.5\"},\"@radix-ui__react-use-layout-effect-1.1.4.tgz\":{\"integrity\":\"K20DkRkUwDnxEYMBPcg3Y6voLkEy5p5QQmszZgLngKKiC7dzBR/aEuK3w1qlx2JWDUNH6FluahYdgR3BP+QbYw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2b6d03911914c039f11183013dc83763abe82e4132e69e50426b336602e780a2a20bb773051fda12e2b7c35aa5c762560d4347e8596e6a161d811dc13fe41b63\",\"name\":\"@radix-ui/react-use-layout-effect\",\"version\":\"1.1.4\"},\"@reduxjs__toolkit-2.12.0.tgz\":{\"integrity\":\"KiT+RzZbp6mQET+Mg+h2c97+9j1sNflUxQkIHI7Yuzf6Peu+OYpmkn6nbHWmLLWj+1ZODUJFwGZ7gx3L9R9EOw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2a24fe47365ba7a990113f8c83e87673defef63d6c35f954c509081c8ed8bb37fa3debbe398a66927ea76c75a62cb5a3fb564e0d4245c0667b831dcbf51f443b\",\"name\":\"@reduxjs/toolkit\",\"version\":\"2.12.0\"},\"@resvg__resvg-wasm-2.6.2.tgz\":{\"integrity\":\"FqALmHI8D4o6lk/LRWDnhw95z5eO+eAa6ORjVg09YRR7BkcM6oPHU9uyC0gtQG5vpFLvgpeU4+zEAz2H8APHNw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"16a00b98723c0f8a3a964fcb4560e7870f79cf978ef9e01ae8e463560d3d61147b06470cea83c753dbb20b482d406e6fa452ef829794e3ecc4033d87f003c737\",\"name\":\"@resvg/resvg-wasm\",\"version\":\"2.6.2\"},\"@rolldown__binding-android-arm64-1.2.4.tgz\":{\"integrity\":\"jHC2cnyKz5xU2fhECtFl8OZ83cYNt13GZQD+0uMJ/X3o+ijmd56okHhTUwxVSHPx1IRVIJEZ1/1pPzeLCU6XKA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8c70b6727c8acf9c54d9f8440ad165f0e67cddc60db75dc66500fed2e309fd7de8fa28e6779ea8907853530c554873f1d48455209119d7fd693f378b094e9728\",\"name\":\"@rolldown/binding-android-arm64\",\"version\":\"1.2.4\"},\"@rolldown__binding-darwin-arm64-1.2.4.tgz\":{\"integrity\":\"Dc5mPD8F5F/FS8i01syd7FTF6yB2fVthH/TRkjwJkzUK6EpoxHtqvZQP5Zwq80/5z19TWYHIg1KOHboCgVx/aQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0dce663c3f05e45fc54bc8b4d6cc9dec54c5eb20767d5b611ff4d1923c0993350ae84a68c47b6abd940fe59c2af34ff9cf5f535981c883528e1dba02815c7f69\",\"name\":\"@rolldown/binding-darwin-arm64\",\"version\":\"1.2.4\"},\"@rolldown__binding-darwin-x64-1.2.4.tgz\":{\"integrity\":\"fpDm4oBo6SqLvWUYCmFhdde3U9KH2fRNNMeAnAPAIwxRL345xutL0EtEUcuoxsoazdJGv/MuDBQHlCDrtbvqOg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7e90e6e28068e92a8bbd65180a616175d7b753d287d9f44d34c7809c03c0230c512f7e39c6eb4bd04b4451cba8c6ca1acdd246bff32e0c14079420ebb5bbea3a\",\"name\":\"@rolldown/binding-darwin-x64\",\"version\":\"1.2.4\"},\"@rolldown__binding-freebsd-x64-1.2.4.tgz\":{\"integrity\":\"rSJoreDE/HoIzoaib6MTp5jQtCTdMHKIvItAKT/ImS6Y6Ww76oUaeMyp4Vc/fAgd/ehji068IxetHXAnqUwN9A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ad2268ade0c4fc7a08ce86a26fa313a798d0b424dd307288bc8b40293fc8992e98e96c3bea851a78cca9e1573f7c081dfde8638b4ebc2317ad1d7027a94c0df4\",\"name\":\"@rolldown/binding-freebsd-x64\",\"version\":\"1.2.4\"},\"@rolldown__binding-linux-arm-gnueabihf-1.2.4.tgz\":{\"integrity\":\"/jm8OGHgn7oGaJu3i/qZI9spUGcJ+y/lk43ttQ/iO1tOd9NissG6o97bighBCiL+BKRngmcDuR6ikfwYdJmVuQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"fe39bc3861e09fba06689bb78bfa9923db29506709fb2fe5938dedb50fe23b5b4e77d362b2c1baa3dedb8a08410a22fe04a467826703b91ea291fc18749995b9\",\"name\":\"@rolldown/binding-linux-arm-gnueabihf\",\"version\":\"1.2.4\"},\"@rolldown__binding-linux-arm64-gnu-1.2.4.tgz\":{\"integrity\":\"tIP06BeD9EqvECBrPZ+sqdPlYrT+aYaAiu1wYziVx5elRK/ftm33JxVDy2bXGbr6J0CrtirCkR87/X5a2euEng==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b483f4e81783f44aaf10206b3d9faca9d3e562b4fe6986808aed70633895c797a544afdfb66df7271543cb66d719bafa2740abb62ac2911f3bfd7e5ad9eb849e\",\"name\":\"@rolldown/binding-linux-arm64-gnu\",\"version\":\"1.2.4\"},\"@rolldown__binding-linux-arm64-musl-1.2.4.tgz\":{\"integrity\":\"Ql1Q0EQqVThvn9VAVlwNzsUvbSFtCMGjLpRRi4pk5i7NZZ4n5ISiLMjHYtus4VQ2PvkSw24zyaCVsiS+sXPj1w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"425d50d0442a55386f9fd540565c0dcec52f6d216d08c1a32e94518b8a64e62ecd659e27e484a22cc8c762dbace154363ef912c36e33c9a095b224beb173e3d7\",\"name\":\"@rolldown/binding-linux-arm64-musl\",\"version\":\"1.2.4\"},\"@rolldown__binding-linux-ppc64-gnu-1.2.4.tgz\":{\"integrity\":\"GjbjXD4XXfN19D0LZNbmiCBUoDiRACsYHr0yaIbbn8aFsXjHZifcYqu/W5Er5X2X990WjHXFrxarn5chzItorQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1a36e35c3e175df375f43d0b64d6e6882054a03891002b181ebd326886db9fc685b178c76627dc62abbf5b912be57d97f7dd168c75c5af16ab9f9721cc8b68ad\",\"name\":\"@rolldown/binding-linux-ppc64-gnu\",\"version\":\"1.2.4\"},\"@rolldown__binding-linux-s390x-gnu-1.2.4.tgz\":{\"integrity\":\"p5WR0NOwaRmJ/B1b6IjEFLLivwEsf3PrdBIhRbhTCQisbo2SvHHpG4ELB/+FgQNnB88LTOF86upmJmbvZdQ2lw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a79591d0d3b0691989fc1d5be888c414b2e2bf012c7f73eb74122145b8530908ac6e8d92bc71e91b810b07ff8581036707cf0b4ce17ceaea662666ef65d43697\",\"name\":\"@rolldown/binding-linux-s390x-gnu\",\"version\":\"1.2.4\"},\"@rolldown__binding-linux-x64-gnu-1.2.4.tgz\":{\"integrity\":\"4/GyVjmhR+Tc6HLJvwc1sOhPqAZtySiSMesOZyX6JQ5XBxoTDEMKQzvo07NIK6nTon/SivlZqvhzvuVBNQhObQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e3f1b25639a147e4dce872c9bf0735b0e84fa8066dc9289231eb0e6725fa250e57071a130c430a433be8d3b3482ba9d3a27fd28af959aaf873bee54135084e6d\",\"name\":\"@rolldown/binding-linux-x64-gnu\",\"version\":\"1.2.4\"},\"@rolldown__binding-linux-x64-musl-1.2.4.tgz\":{\"integrity\":\"l9eeLsCNvPpmSXUej0etw/J1eqV0Jj1D5G/xG6YTijmE6dkv6E2QezgWbTfQk63v952DPqrjOCoiqxq7Bw0YUQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"97d79e2ec08dbcfa6649751e8f47adc3f2757aa574263d43e46ff11ba6138a3984e9d92fe84d907b38166d37d093adeff79d833eaae3382a22ab1abb070d1851\",\"name\":\"@rolldown/binding-linux-x64-musl\",\"version\":\"1.2.4\"},\"@rolldown__binding-openharmony-arm64-1.2.4.tgz\":{\"integrity\":\"e0F355MSTMm3+UOqtV3L24gFUp2N5m1f8L/7d56deik6va+AXdrt9F8LbzGpeWGWRbZEDq4m8NVnJDeBtf9DZg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7b4177e793124cc9b7f943aab55dcbdb8805529d8de66d5ff0bffb779e9d7a293abdaf805ddaedf45f0b6f31a979619645b6440eae26f0d567243781b5ff4366\",\"name\":\"@rolldown/binding-openharmony-arm64\",\"version\":\"1.2.4\"},\"@rolldown__binding-win32-arm64-msvc-1.2.4.tgz\":{\"integrity\":\"AWLi0uBRYh6QlE7OKhiz+phZC0qwtij2QZmhmOdsLdFn64m7oMpooE9ICE3lhm9xMb4SpDo2WbHcxX1iFLFtqw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0162e2d2e051621e90944ece2a18b3fa98590b4ab0b628f64199a198e76c2dd167eb89bba0ca68a04f48084de5866f7131be12a43a3659b1dcc57d6214b16dab\",\"name\":\"@rolldown/binding-win32-arm64-msvc\",\"version\":\"1.2.4\"},\"@rolldown__binding-win32-x64-msvc-1.2.4.tgz\":{\"integrity\":\"UwSDJOg3dqCAejWdxclJjCsh3Qq4vLYMDxmyHqo1btz3stK2VqgwNd3mm5tuIwzSlGIQ/1H9Hr+Zn09mrezNqQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"53048324e83776a0807a359dc5c9498c2b21dd0ab8bcb60c0f19b21eaa356edcf7b2d2b656a83035dde69b9b6e230cd2946210ff51fd1ebf999f4f66adeccda9\",\"name\":\"@rolldown/binding-win32-x64-msvc\",\"version\":\"1.2.4\"},\"@rolldown__pluginutils-1.0.1.tgz\":{\"integrity\":\"2j9bGt5Jh8hj+vPtgzPtl72j0yRxHAyumoo6TNfAjsLB04UtpSvPbPcDcBMxz7n+9CYB0c1GxQFxYRg2jimqGw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"da3f5b1ade4987c863faf3ed8333ed97bda3d324711c0cae9a8a3a4cd7c08ec2c1d3852da52bcf6cf703701331cfb9fef42601d1cd46c501716118368e29aa1b\",\"name\":\"@rolldown/pluginutils\",\"version\":\"1.0.1\"},\"@sec-ant__readable-stream-0.4.1.tgz\":{\"integrity\":\"831qok9r2t8AlxLko40y2ebgSDhenenCatLVeW/uBtnHPyhHOvG0C7TvfgecV+wHzIm5KUICgzmVpWS+IMEAeg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f37d6aa24f6bdadf009712e4a38d32d9e6e048385e9de9c26ad2d5796fee06d9c73f28473af1b40bb4ef7e079c57ec07cc89b9294202833995a564be20c1007a\",\"name\":\"@sec-ant/readable-stream\",\"version\":\"0.4.1\"},\"@sindresorhus__is-4.6.0.tgz\":{\"integrity\":\"t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b74f6f48ddcc75fb32087a057134421ff894b46ece2740ac8f307c72302629cfef6bf90881e0c8fd3c6c8a0767704ff86deef7e26d1cbc863035a5788b65ea03\",\"name\":\"@sindresorhus/is\",\"version\":\"4.6.0\"},\"@sindresorhus__merge-streams-4.0.0.tgz\":{\"integrity\":\"tlqY9xq5ukxTUZBmoOp+m61cqwQD5pHJtFY3Mn8CA8ps6yghLH/Hw8UPdqg4OLmFW3IFlcXnQNmo/dh8HzXYIQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b65a98f71ab9ba4c53519066a0ea7e9bad5cab0403e691c9b45637327f0203ca6ceb28212c7fc7c3c50f76a83838b9855b720595c5e740d9a8fdd87c1f35d821\",\"name\":\"@sindresorhus/merge-streams\",\"version\":\"4.0.0\"},\"@standard-schema__spec-1.1.0.tgz\":{\"integrity\":\"l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"976685cb98c02e19e21b91e0aab0fa8d72e2feb516acabea37fa89c7aca826c80a85b95577e8aaa94e110976af9bf8cf8adc83a394c2bca327a632a73ab8b2d3\",\"name\":\"@standard-schema/spec\",\"version\":\"1.1.0\"},\"@standard-schema__utils-0.3.0.tgz\":{\"integrity\":\"e7Mew686owMaPJVNNLs55PUvgz371nKgwsc4vxE49zsODpJEnxgxRo2y/OKrqueavXgZNMDVj3DdHFlaSAeU8g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7bb31ec3af3aa3031a3c954d34bb39e4f52f833dfbd672a0c2c738bf1138f73b0e0e92449f1831468db2fce2abaae79abd781934c0d58f70dd1c595a480794f2\",\"name\":\"@standard-schema/utils\",\"version\":\"0.3.0\"},\"@szmarczak__http-timer-4.0.6.tgz\":{\"integrity\":\"4BAffykYOgO+5nzBWYwE3W90sBgLJoUPRWWcL8wlyiM8IB8ipJz3UMJ9KXQd1RKQXpKp8Tutn80HZtWsu2u76w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e0101f7f29183a03bee67cc1598c04dd6f74b0180b26850f45659c2fcc25ca233c201f22a49cf750c27d29741dd512905e92a9f13bad9fcd0766d5acbb6bbbeb\",\"name\":\"@szmarczak/http-timer\",\"version\":\"4.0.6\"},\"@tailwindcss__node-4.3.3.tgz\":{\"integrity\":\"/T8IKEsf9VTU6tLjgC7+sv2mOPtQxzE2jMw7u4Tt40Tx+QSZxpzh95/H6cMKoja9XuW7iMdLJYBB0o9G1CaAgg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"fd3f08284b1ff554d4ead2e3802efeb2fda638fb50c731368ccc3bbb84ede344f1f90499c69ce1f79fc7e9c30aa236bd5ee5bb88c74b258041d28f46d4268082\",\"name\":\"@tailwindcss/node\",\"version\":\"4.3.3\"},\"@tailwindcss__oxide-4.3.3.tgz\":{\"integrity\":\"krXjAikiaFSPaK/FkAQT5UTx3VormQaiZ5hBFlJZ9UFQGB/rwg1MZIhHAG9smMQRTdyJxP6Qt5MwMtdyU5FWrA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"92b5e302292268548f68afc5900413e544f1dd5a2b9906a2679841165259f54150181febc20d4c648847006f6c98c4114ddc89c4fe90b7933032d772539156ac\",\"name\":\"@tailwindcss/oxide\",\"version\":\"4.3.3\"},\"@tailwindcss__oxide-android-arm64-4.3.3.tgz\":{\"integrity\":\"Y85A2gmPSkl5Ve5qR86GL4HT509cFqQh1aes9p3sSkyTPwt0Pppf3GkwGe4JPACcRYjgJIEhQgM6dBClnr0NYw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"63ce40da098f4a497955ee6a47ce862f81d3e74f5c16a421d5a7acf69dec4a4c933f0b743e9a5fdc693019ee093c009c4588e024812142033a7410a59ebd0d63\",\"name\":\"@tailwindcss/oxide-android-arm64\",\"version\":\"4.3.3\"},\"@tailwindcss__oxide-darwin-arm64-4.3.3.tgz\":{\"integrity\":\"BiaWatpBcERQFDlOjRDpIVXuFK5PJez5SA4JMg6VYZdBYU+qKfV/vqjcIs+IYmtitf1xYQZTwXvU/8y4lfZUGw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0626966ada4170445014394e8d10e92155ee14ae4f25ecf9480e09320e95619741614faa29f57fbea8dc22cf88626b62b5fd71610653c17bd4ffccb895f6541b\",\"name\":\"@tailwindcss/oxide-darwin-arm64\",\"version\":\"4.3.3\"},\"@tailwindcss__oxide-darwin-x64-4.3.3.tgz\":{\"integrity\":\"fAeUqfV5ndhxRwai8cXGzdLvul9utWOmeTkv69unv4ZXixjn61Z+p9lCWdwOwA3TYboG3BwdVuN/RDjhBRl0mw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7c0794a9f5799dd8714706a2f1c5c6cdd2efba5f6eb563a679392febdba7bf86578b18e7eb567ea7d94259dc0ec00dd361ba06dc1c1d56e37f4438e10519749b\",\"name\":\"@tailwindcss/oxide-darwin-x64\",\"version\":\"4.3.3\"},\"@tailwindcss__oxide-freebsd-x64-4.3.3.tgz\":{\"integrity\":\"iyf5bV6+wnAlflVeEy7R25dupxTNECZN5QMI0qNT6eT+EgaGdZcKhGkr5SdoaWiLJ3spLqIY9VCeSGrwmtg4kw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8b27f96d5ebec270257e555e132ed1db976ea714cd10264de50308d2a353e9e4fe12068675970a84692be5276869688b277b292ea218f5509e486af09ad83893\",\"name\":\"@tailwindcss/oxide-freebsd-x64\",\"version\":\"4.3.3\"},\"@tailwindcss__oxide-linux-arm-gnueabihf-4.3.3.tgz\":{\"integrity\":\"aAYUprJAJQWWbRrPvtjdroZ56Md+JM8pMiopS6xGEwDfLhqj+2ver2p4nU4Mb3CRqcMmNBjo8KkUgcxhkzVQGQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"680614a6b2402505966d1acfbed8ddae8679e8c77e24cf29322a294bac461300df2e1aa3fb6bdeaf6a789d4e0c6f7091a9c3263418e8f0a91481cc6193355019\",\"name\":\"@tailwindcss/oxide-linux-arm-gnueabihf\",\"version\":\"4.3.3\"},\"@tailwindcss__oxide-linux-arm64-gnu-4.3.3.tgz\":{\"integrity\":\"nDxldcEENOxZRzC2uu9jrutZdAAQtb+8WWDCSnWL1zvBk1+FN+x6MtDViPB5AJMfttVCUhehGWus3XBPgatM/w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9c3c6575c10434ec594730b6baef63aeeb59740010b5bfbc5960c24a758bd73bc1935f8537ec7a32d0d588f07900931fb6d5425217a1196bacdd704f81ab4cff\",\"name\":\"@tailwindcss/oxide-linux-arm64-gnu\",\"version\":\"4.3.3\"},\"@tailwindcss__oxide-linux-arm64-musl-4.3.3.tgz\":{\"integrity\":\"Md44bD6veX/PC5iyF8cDVnw4HBIANZepRZZ7a8DQOvkfo5WUBwcp6iAuCUz23u+4SUkhJlD3eL7hNdW8ezd/kA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"31de386c3eaf797fcf0b98b217c703567c381c12003597a945967b6bc0d03af91fa39594070729ea202e094cf6deefb84949212650f778bee135d5bc7b377f90\",\"name\":\"@tailwindcss/oxide-linux-arm64-musl\",\"version\":\"4.3.3\"},\"@tailwindcss__oxide-linux-x64-gnu-4.3.3.tgz\":{\"integrity\":\"tx7us1muwOKAKWao2v/GaafFeQboE6aj88vC6ziN2NCGcRm8gWUhwjzg+YdVB1e4boAtdtma4L43onunI6NS4w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b71eeeb359aec0e2802966a8daffc669a7c57906e813a6a3f3cbc2eb388dd8d0867119bc816521c23ce0f987550757b86e802d76d99ae0be37a27ba723a352e3\",\"name\":\"@tailwindcss/oxide-linux-x64-gnu\",\"version\":\"4.3.3\"},\"@tailwindcss__oxide-linux-x64-musl-4.3.3.tgz\":{\"integrity\":\"SJxX60smvHgasZoBy11dX6YRjXJFovwWBoedhbQPOBzgFWBHGB+TVPWB9BxzR7TTxU8FQZAI2AyiNCMzFm8Img==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"489c57eb4b26bc781ab19a01cb5d5d5fa6118d7245a2fc1606879d85b40f381ce0156047181f9354f581f41c7347b4d3c54f05419008d80ca2342333166f089a\",\"name\":\"@tailwindcss/oxide-linux-x64-musl\",\"version\":\"4.3.3\"},\"@tailwindcss__oxide-wasm32-wasi-4.3.3.tgz\":{\"integrity\":\"jx1+rPhY/5Ympkktd656HBWEBLxP7dH06losBLjjf5vgCODXvi9KhtftWcMIwTFIDqBr7cRnQkdLnAG+IOlGvQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8f1d7eacf858ff9626a6492d77ae7a1c158404bc4fedd1f4ea5a2c04b8e37f9be008e0d7be2f4a86d7ed59c308c131480ea06bedc46742474b9c01be20e946bd\",\"name\":\"@tailwindcss/oxide-wasm32-wasi\",\"version\":\"4.3.3\"},\"@tailwindcss__oxide-win32-arm64-msvc-4.3.3.tgz\":{\"integrity\":\"3rc292Ca2ceK6Ulcc/bAVnTs/3nDtoPhyEKlgPv+yQJQi/JS/AMJlqzxvlDacL1nekbrcf6bTqp/jV4qgnPxNQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"deb736f7609ad9c78ae9495c73f6c05674ecff79c3b683e1c842a580fbfec902508bf252fc030996acf1be50da70bd677a46eb71fe9b4eaa7f8d5e2a8273f135\",\"name\":\"@tailwindcss/oxide-win32-arm64-msvc\",\"version\":\"4.3.3\"},\"@tailwindcss__oxide-win32-x64-msvc-4.3.3.tgz\":{\"integrity\":\"yJ0pwIVc/nYeGoV02WtsN8KYyLQv7kyI2wDnkezyJlGGjkd4QLwDGAwl47YpPJeuI0M0ObaXGSPjvWDPeTPggw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c89d29c0855cfe761e1a8574d96b6c37c298c8b42fee4c88db00e791ecf22651868e477840bc03180c25e3b6293c97ae23433439b6971923e3bd60cf7933e083\",\"name\":\"@tailwindcss/oxide-win32-x64-msvc\",\"version\":\"4.3.3\"},\"@tailwindcss__vite-4.3.3.tgz\":{\"integrity\":\"yYU8cogLeSh/ms2jh8Fj7jaba/EWa7Ja6GoUqYZaraEuCI5YS6ms6ObZgjjedm+jm6XZjdNRWBpPP6Z86oOxcw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c9853c72880b79287f9acda387c163ee369b6bf1166bb25ae86a14a9865aada12e088e584ba9ace8e6d98238de766fa39ba5d98dd351581a4f3fa67cea83b173\",\"name\":\"@tailwindcss/vite\",\"version\":\"4.3.3\"},\"@tanstack__react-virtual-3.14.9.tgz\":{\"integrity\":\"qZyr0FZDP8rDC4WBhsryIZmAd9bveJvFGUJJtskWaew6/0dTRS6wZxnR6VQ5bY2KwL3LjerrHqQLk3a0GKcPXQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a99cabd056433fcac30b858186caf221998077d6ef789bc5194249b6c91669ec3aff4753452eb06719d1e954396d8d8ac0bdcb8deaeb1ea40b9376b418a70f5d\",\"name\":\"@tanstack/react-virtual\",\"version\":\"3.14.9\"},\"@tanstack__virtual-core-3.17.7.tgz\":{\"integrity\":\"bp+v10y65sp2H7WpWfIMyxTNfl8ZVfxFTLRjPIFRryi6FV/J33z4IS53WO4pTk36KlvJ4iLiQz+oaydDC1xbcA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6e9fafd74cbae6ca761fb5a959f20ccb14cd7e5f1955fc454cb4633c8151af28ba155fc9df7cf8212e7758ee294e4dfa2a5bc9e222e2433fa86b27430b5c5b70\",\"name\":\"@tanstack/virtual-core\",\"version\":\"3.17.7\"},\"@testing-library__dom-10.4.1.tgz\":{\"integrity\":\"o4PXJQidqJl82ckFaXUeoAW+XysPLauYI43Abki5hABd853iMhitooc6znOnczgbTYmEP6U6/y1ZyKAIsvMKGg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a383d725089da8997cd9c90569751ea005be5f2b0f2dab98238dc06e48b984005df39de23218ada2873ace73a773381b4d89843fa53aff2d59c8a008b2f30a1a\",\"name\":\"@testing-library/dom\",\"version\":\"10.4.1\"},\"@testing-library__jest-dom-7.0.1.tgz\":{\"integrity\":\"oMDTC3oA+6CXSO2JZnvOI7CA6oVub6kij5ggk9ohwye5slmkwxYDXcPOVxgMw/RQlticjtO0C1RZkR97HgrWMw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a0c0d30b7a00fba09748ed89667bce23b080ea856e6fa9228f982093da21c327b9b259a4c316035dc3ce57180cc3f45096d89c8ed3b40b5459911f7b1e0ad633\",\"name\":\"@testing-library/jest-dom\",\"version\":\"7.0.1\"},\"@testing-library__react-16.3.2.tgz\":{\"integrity\":\"XU5/SytQM+ykqMnAnvB2umaJNIOsLF3PVv//1Ew4CTcpz0/BRyy/af40qqrt7SjKpDdT1saBMc42CUok5gaw+g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5d4e7f4b2b5033eca4a8c9c09ef076ba66893483ac2c5dcf56ffffd44c38093729cf4fc1472cbf69fe34aaaaeded28caa43753d6c68131ce36094a24e606b0fa\",\"name\":\"@testing-library/react\",\"version\":\"16.3.2\"},\"@testing-library__user-event-14.6.4.tgz\":{\"integrity\":\"QCGwP6QrjypBLwyj5cuyfVamkaIEy/XGY+1VDehbtbQqOggYmTFpFOdWR5mPz14vX8vXLMVjDHlRNBcClyO9ew==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4021b03fa42b8f2a412f0ca3e5cbb27d56a691a204cbf5c663ed550de85bb5b42a3a081899316914e75647998fcf5e2f5fcbd72cc5630c79513417029723bd7b\",\"name\":\"@testing-library/user-event\",\"version\":\"14.6.4\"},\"@thaunknown__thirty-two-1.0.6.tgz\":{\"integrity\":\"Uz2kFb0cNeHg7hds8BtI/umcwzaSMUdbkeQgZrIZQbp3gWRFjrvrvBHNEB6SQYChVxC3rWHovKx1Ya/vSRRMYA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"533da415bd1c35e1e0ee176cf01b48fee99cc3369231475b91e42066b21941ba778164458ebbebbc11cd101e924180a15710b7ad61e8bcac7561afef49144c60\",\"name\":\"@thaunknown/thirty-two\",\"version\":\"1.0.6\"},\"@ts-morph__common-0.27.0.tgz\":{\"integrity\":\"Wf29UqxWDpc+i61k3oIOzcUfQt79PIT9y/MWfAGlrkjg6lBC1hwDECLXPVJAhWjiGbfBCxZd65F/LIZF3+jeJQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"59fdbd52ac560e973e8bad64de820ecdc51f42defd3c84fdcbf3167c01a5ae48e0ea5042d61c031022d73d52408568e219b7c10b165deb917f2c8645dfe8de25\",\"name\":\"@ts-morph/common\",\"version\":\"0.27.0\"},\"@types__aria-query-5.0.4.tgz\":{\"integrity\":\"rfT93uj5s0PRL7EzccGMs3brplhcrghnDoV26NqKhCAS1hVo+WdNsPvE/yb6ilfr5hi2MEk6d5EWJTKdxg8jVw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"adf4fddee8f9b343d12fb13371c18cb376eba6585cae08670e8576e8da8a842012d61568f9674db0fbc4ff26fa8a57ebe618b630493a77911625329dc60f2357\",\"name\":\"@types/aria-query\",\"version\":\"5.0.4\"},\"@types__better-sqlite3-9.6.0.tgz\":{\"integrity\":\"ZEEwBSgMu7GYJOynoagg5X9JbxfL6dTJDsgViJIqh67jV44kyOr9RXfmFjLK5rzC4MWssP06t9hu/JwGDnUbCg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"64413005280cbbb19824eca7a1a820e57f496f17cbe9d4c90ec81588922a87aee3578e24c8eafd4577e61632cae6bcc2e0c5acb0fd3ab7d86efc9c060e751b0a\",\"name\":\"@types/better-sqlite3\",\"version\":\"9.6.0\"},\"@types__cacheable-request-6.0.3.tgz\":{\"integrity\":\"IQ3EbTzGxIigb1I3qPZc1rWJnH0BmSKv5QYTalEwweFvyBDLSAe24zP0le/hyi7ecGfZVlIVAg4BZqb8WBwKqw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"210dc46d3cc6c488a06f5237a8f65cd6b5899c7d019922afe506136a5130c1e16fc810cb4807b6e333f495efe1ca2ede7067d9565215020e0166a6fc581c0aab\",\"name\":\"@types/cacheable-request\",\"version\":\"6.0.3\"},\"@types__chai-5.2.3.tgz\":{\"integrity\":\"Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"330e79f28780f5f15bbfae7fcb8987b570ecf5b3e714c6402ff8f174f154a4e1c72175fdd667201076d2e4b6a1afea7064547c03b19095e456788e9c1850b650\",\"name\":\"@types/chai\",\"version\":\"5.2.3\"},\"@types__d3-array-3.2.2.tgz\":{\"integrity\":\"hOLWVbm7uRza0BYXpIIW5pxfrKe0W+D5lrFiAEYR+pb6w3N2SwSMaJbXdUfSEv+dT4MfHBLtn5js0LAWaO6otw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"84e2d655b9bbb91cdad01617a48216e69c5faca7b45be0f996b162004611fa96fac373764b048c6896d77547d212ff9d4f831f1c12ed9f98ecd0b01668eea8b7\",\"name\":\"@types/d3-array\",\"version\":\"3.2.2\"},\"@types__d3-color-3.1.3.tgz\":{\"integrity\":\"iO90scth9WAbmgv7ogoq57O9YpKmFBbmoEoCHDB2xMBY0+/KVrqAaCDyCE16dUspeOvIxFFRI+0sEtqDqy2b4A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"88ef74b1cb61f5601b9a0bfba20a2ae7b3bd6292a61416e6a04a021c3076c4c058d3efca56ba806820f2084d7a754b2978ebc8c4515123ed2c12da83ab2d9be0\",\"name\":\"@types/d3-color\",\"version\":\"3.1.3\"},\"@types__d3-drag-3.0.7.tgz\":{\"integrity\":\"HE3jVKlzU9AaMazNufooRJ5ZpWmLIoc90A37WU2JMmeq28w1FQqCZswHZ3xR+SuxYftzHq6WU6KJHvqxKzTxxQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1c4de354a97353d01a31accdb9fa28449e59a5698b22873dd00dfb594d893267aadbcc35150a8266cc07677c51f92bb161fb731eae9653a2891efab12b34f1c5\",\"name\":\"@types/d3-drag\",\"version\":\"3.0.7\"},\"@types__d3-ease-3.0.2.tgz\":{\"integrity\":\"NcV1JjO5oDzoK26oMzbILE6HW7uVXOHLQvHshBUW4UMdZGfiY6v5BeQwh9a9tCzv+CeefZQHJt5SRgK154RtiA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"35c5752633b9a03ce82b6ea83336c82c4e875bbb955ce1cb42f1ec841516e1431d6467e263abf905e43087d6bdb42ceff8279e7d940726de524602b5e7846d88\",\"name\":\"@types/d3-ease\",\"version\":\"3.0.2\"},\"@types__d3-interpolate-3.0.4.tgz\":{\"integrity\":\"mgLPETlrpVV1YRJIglr4Ez47g7Yxjl1lj7YKsiMCb27VJH9W8NVM6Bb9d8kkpG/uAQS5AmbA48q2IAolKKo1MA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9a02cf11396ba55575611248825af8133e3b83b6318e5d658fb60ab223026f6ed5247f56f0d54ce816fd77c924a46fee0104b90266c0e3cab6200a2528aa3530\",\"name\":\"@types/d3-interpolate\",\"version\":\"3.0.4\"},\"@types__d3-path-3.1.1.tgz\":{\"integrity\":\"VMZBYyQvbGmWyWVea0EHs/BwLgxc+MKi1zLDCONksozI4YJMcTt8ZEuIR4Sb1MMTE8MMW49v0IwI5+b7RmfWlg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"54c64163242f6c6996c9655e6b4107b3f0702e0c5cf8c2a2d732c308e364b28cc8e1824c713b7c644b8847849bd4c31313c30c5b8f6fd08c08e7e6fb4667d696\",\"name\":\"@types/d3-path\",\"version\":\"3.1.1\"},\"@types__d3-scale-4.0.9.tgz\":{\"integrity\":\"dLmtwB8zkAeO/juAMfnV+sItKjlsw2lKdZVVy6LRr0cBmegxSABiLEpGVmSJJ8O08i4+sGR6qQtb6WtuwJdvVw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"74b9adc01f3390078efe3b8031f9d5fac22d2a396cc3694a759555cba2d1af470199e8314800622c4a4656648927c3b4f22e3eb0647aa90b5be96b6ec0976f57\",\"name\":\"@types/d3-scale\",\"version\":\"4.0.9\"},\"@types__d3-selection-3.0.11.tgz\":{\"integrity\":\"bhAXu23DJWsrI45xafYpkQ4NtcKMwWnAC/vKrd2l+nxMFuvOT3XMYTIj2opv8vq8AO5Yh7Qac/nSeP/3zjTK0w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6e1017bb6dc3256b2b238e7169f629910e0db5c28cc169c00bfbcaaddda5fa7c4c16ebce4f75cc613223da8a6ff2fabc00ee5887b41a73f9d278fff7ce34cad3\",\"name\":\"@types/d3-selection\",\"version\":\"3.0.11\"},\"@types__d3-shape-3.1.8.tgz\":{\"integrity\":\"lae0iWfcDeR7qt7rA88BNiqdvPS5pFVPpo5OfjElwNaT2yyekbM0C9vK+yqBqEmHr6lDkRnYNoTBYlAgJa7a4w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"95a7b48967dc0de47baadeeb03cf01362a9dbcf4b9a4554fa68e4e7e3125c0d693db2c9e91b3340bdbcafb2a81a84987afa9439119d83684c162502025aedae3\",\"name\":\"@types/d3-shape\",\"version\":\"3.1.8\"},\"@types__d3-time-3.0.4.tgz\":{\"integrity\":\"yuzZug1nkAAaBlBBikKZTgzCeA+k1uy4ZFwWANOfKw5z5LRhV0gNA7gNkKm7HoK+HRN0wX3EkxGk0fpbWhmB7g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"caecd9ba0d6790001a0650418a42994e0cc2780fa4d6ecb8645c1600d39f2b0e73e4b46157480d03b80d90a9bb1e82be1d1374c17dc49311a4d1fa5b5a1981ee\",\"name\":\"@types/d3-time\",\"version\":\"3.0.4\"},\"@types__d3-timer-3.0.2.tgz\":{\"integrity\":\"Ps3T8E8dZDam6fUyNiMkekK3XUsaUEik+idO9/YjPtfj2qruF8tFBXS7XhtE4iIXBLxhmLjP3SXpLhVf21I9Lw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3ecdd3f04f1d6436a6e9f5323623247a42b75d4b1a5048a4fa274ef7f6233ed7e3daaaee17cb450574bb5e1b44e2221704bc6198b8cfdd25e92e155fdb523d2f\",\"name\":\"@types/d3-timer\",\"version\":\"3.0.2\"},\"@types__d3-transition-3.0.9.tgz\":{\"integrity\":\"uZS5shfxzO3rGlu0cC3bjmMFKsXv+SmZZcgp0KD22ts4uGXp5EVYGzu/0YdwZeKmddhcAccYtREJKkPfXkZuCg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b994b9b217f1ccedeb1a5bb4702ddb8e63052ac5eff9299965c829d0a0f6dadb38b865e9e445581b3bbfd1877065e2a675d85c01c718b511092a43df5e466e0a\",\"name\":\"@types/d3-transition\",\"version\":\"3.0.9\"},\"@types__d3-zoom-3.0.8.tgz\":{\"integrity\":\"iqMC4/YlFCSlO8+2Ii1GGGliCAY4XdeG748w5vQUbevlbDu0zSjH/+jojorQVBK/se0j6DUFNPBGSqD3YWYnDw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8aa302e3f6251424a53bcfb6222d461869620806385dd786ef8f30e6f4146debe56c3bb4cd28c7ffe8e88e8ad05412bfb1ed23e8350534f0464aa0f76166270f\",\"name\":\"@types/d3-zoom\",\"version\":\"3.0.8\"},\"@types__debug-4.1.13.tgz\":{\"integrity\":\"KSVgmQmzMwPlmtljOomayoR89W4FynCAi3E8PPs7vmDVPe84hT+vGPKkJfThkmXs0x0jAaa9U8uW8bbfyS2fWw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2925609909b33303e59ad9633a899aca847cf56e05ca70808b713c3cfb3bbe60d53def38853faf18f2a425f4e19265ecd31d2301a6bd53cb96f1b6dfc92d9f5b\",\"name\":\"@types/debug\",\"version\":\"4.1.13\"},\"@types__deep-eql-4.0.2.tgz\":{\"integrity\":\"c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"73d87d75554c8a030f7386f04ef0b9771aada8967040f78fb168cf96948e9e88dba2bea91aa764e78d657c0ec0a8542be6907505176ad23b98f5d6fcd41c3217\",\"name\":\"@types/deep-eql\",\"version\":\"4.0.2\"},\"@types__estree-1.0.9.tgz\":{\"integrity\":\"GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1a174f832d5e978fc898fd395f4e54c38730dbf33ddc10949a712f599352b650b310a304e05924f98a680393a21cd426a12ec269f6fc5dadcfc9af26d50af37a\",\"name\":\"@types/estree\",\"version\":\"1.0.9\"},\"@types__fs-extra-9.0.13.tgz\":{\"integrity\":\"nEnwB++1u5lVDM2UI4c1+5R+FYaKfaAzS4OococimjVm3nQw3TuzH5UNsocrcTBbhnerblyHj4A49qXbIiZdpA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9c49f007efb5bb99550ccd94238735fb947e15868a7da0334b83a87287229a3566de7430dd3bb31f950db2872b71305b8677ab6e5c878f8038f6a5db22265da4\",\"name\":\"@types/fs-extra\",\"version\":\"9.0.13\"},\"@types__http-cache-semantics-4.2.0.tgz\":{\"integrity\":\"L3LgimLHXtGkWikKnsPg0/VFx9OGZaC+eN1u4r+OB1XRqH3meBIAVC2zr1WdMH+RHmnRkqliQAOHNJ/E0j/e0Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2f72e08a62c75ed1a45a290a9ec3e0d3f545c7d38665a0be78dd6ee2bf8e0755d1a87de6781200542db3af559d307f911e69d192a962400387349fc4d23fded1\",\"name\":\"@types/http-cache-semantics\",\"version\":\"4.2.0\"},\"@types__keyv-3.1.4.tgz\":{\"integrity\":\"BQ5aZNSCpj7D6K2ksrRCTmKRLEpnPvWDiLPfoGyhZ++8YtiK9d/3DBKPJgry359X/P1PfruyYwvnvwFjuEiEIg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"050e5a64d482a63ec3e8ada4b2b4424e62912c4a673ef58388b3dfa06ca167efbc62d88af5dff70c128f260af2df9f57fcfd4f7ebbb2630be7bf0163b8488422\",\"name\":\"@types/keyv\",\"version\":\"3.1.4\"},\"@types__ms-2.1.0.tgz\":{\"integrity\":\"GsCCIZDE/p3i96vtEqx+7dBUGXrc7zeSK3wwPHIaRThS+9OhWIXRqzs4d6k1SVU8g91DrNRWxWUGhp5KXQb2VA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1ac0822190c4fe9de2f7abed12ac7eedd054197adcef37922b7c303c721a453852fbd3a15885d1ab3b3877a93549553c83dd43acd456c56506869e4a5d06f654\",\"name\":\"@types/ms\",\"version\":\"2.1.0\"},\"@types__node-24.13.3.tgz\":{\"integrity\":\"Dh8vAsV36ig5wa9OX4pXvMc9D3Veibfw2wix0CUwYODLD8nkj9UsLjASr49nPg+2eKzxhBV+v7L8pXvT4e639Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0e1f2f02c577ea2839c1af4e5f8a57bcc73d0f755e89b7f0db08b1d0253060e0cb0fc9e48fd52c2e3012af8f673e0fb678acf184157ebfb2fca57bd3e1eeb7f5\",\"name\":\"@types/node\",\"version\":\"24.13.3\"},\"@types__node-26.2.0.tgz\":{\"integrity\":\"5IviulTZeRNp2vAJ514cc/HUlY5nZ9fCbq9DMyC52BrhFZACo3nI0R7qBxhQmo/d27NFe96ur/b7Wwxklda+kg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e48be2ba54d9791369daf009e75e1c73f1d4958e6767d7c26eaf433320b9d81ae1159002a379c8d11eea0718509a8fdddbb3457bdeaeaff6fb5b0c6495d6be92\",\"name\":\"@types/node\",\"version\":\"26.2.0\"},\"@types__react-19.2.18.tgz\":{\"integrity\":\"AnzbBERsrLKtk2XSfTbYRLjQPdy116Sty4q+T+Bp3IC4l6jNBvreVPAHmpq9qhXQM7CXZPjLVmGMw9sy+hxQ3w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"027cdb04446cacb2ad9365d27d36d844b8d03ddcb5d7a4adcb8abe4fe069dc80b897a8cd06fade54f0079a9abdaa15d033b09764f8cb56618cc3db32fa1c50df\",\"name\":\"@types/react\",\"version\":\"19.2.18\"},\"@types__react-dom-19.2.4.tgz\":{\"integrity\":\"Bsc+QHgp+P/F02XDzNCY9jnZNCUuLki36KT7VKrTXXLdHf+vHMNZnW1rVu5DNW/rCK+fya3DATySbLM4yhtKUw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"06c73e407829f8ffc5d365c3ccd098f639d934252e2e48b7e8a4fb54aad35d72dd1dffaf1cc3599d6d6b56ee43356feb08af9fc9adc3013c926cb338ca1b4a53\",\"name\":\"@types/react-dom\",\"version\":\"19.2.4\"},\"@types__responselike-1.0.3.tgz\":{\"integrity\":\"H/+L+UkTV33uf49PH5pCAUBVPNj2nDBXTN+qS1dOwyyg24l3CcicicCA7ca+HMvJBZcFgl5r8e+RR6elsb4Lyw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1fff8bf94913577dee7f8f4f1f9a420140553cd8f69c30574cdfaa4b574ec32ca0db897709c89c89c080edc6be1ccbc9059705825e6bf1ef9147a7a5b1be0bcb\",\"name\":\"@types/responselike\",\"version\":\"1.0.3\"},\"@types__use-sync-external-store-0.0.6.tgz\":{\"integrity\":\"zFDAD+tlpf2r4asuHEj0XH6pY6i0g5NeAHPn+15wk3BV6JA69eERFXC1gyGThDkVa1zCyKr5jox1+2LbV/AMLg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"cc50c00feb65a5fdabe1ab2e1c48f45c7ea963a8b483935e0073e7fb5e70937055e8903af5e1111570b58321938439156b5cc2c8aaf98e8c75fb62db57f00c2e\",\"name\":\"@types/use-sync-external-store\",\"version\":\"0.0.6\"},\"@types__validate-npm-package-name-4.0.2.tgz\":{\"integrity\":\"lrpDziQipxCEeK5kWxvljWYhUvOiB2A9izZd9B2AFarYAkqZshb4lPbRs7zKEic6eGtH8V/2qJW+dPp9OtF6bw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"96ba43ce2422a7108478ae645b1be58d662152f3a207603d8b365df41d8015aad8024a99b216f894f6d1b3bcca12273a786b47f15ff6a895be74fa7d3ad17a6f\",\"name\":\"@types/validate-npm-package-name\",\"version\":\"4.0.2\"},\"@types__write-file-atomic-4.0.3.tgz\":{\"integrity\":\"qdo+vZRchyJIHNeuI1nrpsLw+hnkgqP/8mlaN6Wle/NKhydHmUN9l4p3ZE8yP90AJNJW4uB8HQhedb4f1vNayQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a9da3ebd945c8722481cd7ae2359eba6c2f0fa19e482a3fff2695a37a5a57bf34a87274799437d978a77644f323fdd0024d256e2e07c1d085e75be1fd6f35ac9\",\"name\":\"@types/write-file-atomic\",\"version\":\"4.0.3\"},\"@types__ws-8.18.1.tgz\":{\"integrity\":\"ThVF6DCVhA8kUGy+aazFQ4kXQ7E1Ty7A3ypFOe0IcJV8O/M511G99AW24irKrW56Wt44yG9+ij8FaqoBGkuBXg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4e1545e83095840f24506cbe69acc543891743b1354f2ec0df2a4539ed0870957c3bf339d751bdf405b6e22acaad6e7a5ade38c86f7e8a3f056aaa011a4b815e\",\"name\":\"@types/ws\",\"version\":\"8.18.1\"},\"@types__yauzl-3.4.0.tgz\":{\"integrity\":\"NRPn5w6h8dhcnmx3YIRQcqMywY/+nND/uOkJessedcrowO3C0AssHp3tMJpxKAwOhFOo0OV1y9VtsC5hbKKBAw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3513e7e70ea1f1d85c9e6c7760845072a332c18ffe9cd0ffb8e9097acb1e75cae8c0edc2d00b2c1e9ded309a71280c0e8453a8d0e575cbd56db02e616ca28103\",\"name\":\"@types/yauzl\",\"version\":\"3.4.0\"},\"@typescript__typescript-aix-ppc64-7.0.2.tgz\":{\"integrity\":\"MTKKkWB7p/0E9xi1d1tHtZ5PiLkGEMIq88pK2CubZjOsLtYTLqhgIgi6zepFa+9GHZ6h05NMCkQxGKiPXMxXtQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"31328a91607ba7fd04f718b5775b47b59e4f88b90610c22af3ca4ad82b9b6633ac2ed6132ea8602208bacdea456bef461d9ea1d3934c0a443118a88f5ccc57b5\",\"name\":\"@typescript/typescript-aix-ppc64\",\"version\":\"7.0.2\"},\"@typescript__typescript-darwin-arm64-7.0.2.tgz\":{\"integrity\":\"gowzar9MwS/aRWp6f3a4KUqzRjAZjOsmGNCM6LcTgXum+dBfgsBVMN+AgvOCCbguXyick6LJhpBszxMebJ8syA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"828c336abf4cc12fda456a7a7f76b8294ab34630198ceb2618d08ce8b713817ba6f9d05f82c05530df8082f38209b82e5f289c93a2c986906ccf131e6c9f2cc8\",\"name\":\"@typescript/typescript-darwin-arm64\",\"version\":\"7.0.2\"},\"@typescript__typescript-darwin-x64-7.0.2.tgz\":{\"integrity\":\"SZ9xZInqApNlNGc9s0W1VSsktYSOe9cFqNOIqmN1Gs8SmkjKZYFt017G4VwPxASInODuAdbTW7sXiFUf893RgA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"499f716489ea02936534673db345b5552b24b5848e7bd705a8d388aa63751acf129a48ca65816dd35ec6e15c0fc404889ce0ee01d6d35bbb1788551ff3ddd180\",\"name\":\"@typescript/typescript-darwin-x64\",\"version\":\"7.0.2\"},\"@typescript__typescript-freebsd-arm64-7.0.2.tgz\":{\"integrity\":\"W5NH4y/J0plIIS5b2xvTEkU7JFxyqdMAOgf+Ilhl0vHQXKO5dZoxd+C/jEtq56c4F3wk71RB4BMRQ2XdI+bwYQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5b9347e32fc9d29948212e5bdb1bd312453b245c72a9d3003a07fe225865d2f1d05ca3b9759a3177e0bf8c4b6ae7a738177c24ef5441e013114365dd23e6f061\",\"name\":\"@typescript/typescript-freebsd-arm64\",\"version\":\"7.0.2\"},\"@typescript__typescript-freebsd-x64-7.0.2.tgz\":{\"integrity\":\"UMGDx5sTpzNw3WiPebH7l90IWfJggEd+egHt/q6p7/Cm3zqoV7VxkGXt+3DxPIw8CcmvAB0j3sVVfbhX+M4Tpw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"50c183c79b13a73370dd688f79b1fb97dd0859f26080477e7a01edfeaea9eff0a6df3aa857b5719065edfb70f13c8c3c09c9af001d23dec5557db857f8ce13a7\",\"name\":\"@typescript/typescript-freebsd-x64\",\"version\":\"7.0.2\"},\"@typescript__typescript-linux-arm-7.0.2.tgz\":{\"integrity\":\"gffT3xPz9sR7j/YJExkyPntrI0P2EP9XbOyWzth2/Gs0RstK+90RBcO0ncXoXy/beYll1SXw846Nf2zdnEz0QQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"81f7d3df13f3f6c47b8ff6091319323e7b6b2343f610ff576cec96ced876fc6b3446cb4afbdd1105c3b49dc5e85f2fdb798965d525f0f38e8d7f6cdd9c4cf441\",\"name\":\"@typescript/typescript-linux-arm\",\"version\":\"7.0.2\"},\"@typescript__typescript-linux-arm64-7.0.2.tgz\":{\"integrity\":\"Qh4eU4/y3yDjnfjjyPYihMj5/ODIlmt+Bzu17OI+fiSRDW57QmU5SiN63exPRNJPKUzcc1INa1NXdrJ+MqHjUQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"421e1e538ff2df20e39df8e3c8f62284c8f9fce0c8966b7e073bb5ece23e7e24910d6e7b4265394a237addec4f44d24f294cdc73520d6b535776b27e32a1e351\",\"name\":\"@typescript/typescript-linux-arm64\",\"version\":\"7.0.2\"},\"@typescript__typescript-linux-loong64-7.0.2.tgz\":{\"integrity\":\"uEHck9i8hoAzXPiYRib1O7miOnz23SxIeVl6F4LXox+qov1K35jHcEW6VHKvZI+pyvl7fZEP4MCU5LYvIq1GuQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b841dc93d8bc8680335cf8984626f53bb9a23a7cf6dd2c4879597a1782d7a31faaa2fd4adf98c77045ba5472af648fa9caf97b7d910fe0c094e4b62f22ad46b9\",\"name\":\"@typescript/typescript-linux-loong64\",\"version\":\"7.0.2\"},\"@typescript__typescript-linux-mips64el-7.0.2.tgz\":{\"integrity\":\"R4KvAMnE43W5Qeqb0Ly56O3mWMWIAgsMyz36DCaycd5nbg/9kzm0liw3JocfRqyJY0KPmzFjbswozXyW0DnIYA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4782af00c9c4e375b941ea9bd0bcb9e8ede658c588020b0ccb3dfa0c26b271de676e0ffd9339b4962c3726871f46ac8963428f9b31636ecc28cd7c96d039c860\",\"name\":\"@typescript/typescript-linux-mips64el\",\"version\":\"7.0.2\"},\"@typescript__typescript-linux-ppc64-7.0.2.tgz\":{\"integrity\":\"DORx5b3sd/4S7eayxm4FQv+A7CrkUIGRaHiwI8oiHTAI1fAPWhF4J0vAlkC8biAlHSVVwxMQ3tjZ2/DVbnQiiA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0ce471e5bdec77fe12ede6b2c66e0542ff80ec2ae45081916878b023ca221d3008d5f00f5a1178274bc09640bc6e20251d2555c31310ded8d9dbf0d56e742288\",\"name\":\"@typescript/typescript-linux-ppc64\",\"version\":\"7.0.2\"},\"@typescript__typescript-linux-riscv64-7.0.2.tgz\":{\"integrity\":\"wf0jqEDOjrPRnKwYRyyJDRo11KMbvMFrU+q4zqKyChODBzvlkbhNQfKvLxQCcwTpdDaXSHZTVuh0JoCrKCUMHQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c1fd23a840ce8eb3d19cac18472c890d1a35d4a31bbcc16b53eab8cea2b20a1383073be591b84d41f2af2f14027304e974369748765356e8742680ab28250c1d\",\"name\":\"@typescript/typescript-linux-riscv64\",\"version\":\"7.0.2\"},\"@typescript__typescript-linux-s390x-7.0.2.tgz\":{\"integrity\":\"IkwJc3L7yhytWd/ewjyxNDfOmswCm9GWMJT/ue/dU4aZNbwZeYAetq42VyLmsmSjvoX7z74X6ZaYCtzAr0EuGw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"224c097372fbca1cad59dfdec23cb13437ce9acc029bd1963094ffb9efdd53869935bc1979801eb6ae365722e6b264a3be85fbcfbe17e996980adcc0af412e1b\",\"name\":\"@typescript/typescript-linux-s390x\",\"version\":\"7.0.2\"},\"@typescript__typescript-linux-x64-7.0.2.tgz\":{\"integrity\":\"EYdf2cNg7rgCWJnxCdJ+F3V39O8ihb37eHAu1LK8oAFizgTQbPOK7zHHXbPt8rX24COqODXeI3sIf0fCXG7H/A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"11875fd9c360eeb8025899f109d27e177577f4ef2285bdfb78702ed4b2bca00162ce04d06cf38aef31c75db3edf2b5f6e023aa3835de237b087f47c25c6ec7fc\",\"name\":\"@typescript/typescript-linux-x64\",\"version\":\"7.0.2\"},\"@typescript__typescript-netbsd-arm64-7.0.2.tgz\":{\"integrity\":\"+polYF4MF04aPpO5FTkHran9yUQDSXqy5GiSDKpsll5jy3l3+g9QLhpf39T+ePtefhXLOGrLl0QIjkQP6VnelA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"fa9a25605e0c174e1a3e93b9153907ada9fdc94403497ab2e468920caa6c965e63cb7977fa0f502e1a5fdfd4fe78fb5e7e15cb386acb9744088e440fe959de94\",\"name\":\"@typescript/typescript-netbsd-arm64\",\"version\":\"7.0.2\"},\"@typescript__typescript-netbsd-x64-7.0.2.tgz\":{\"integrity\":\"8YIT0EHM/3dq10ZOVF/A7pc/YSMtbcecct4rWtexrnSCHOPcpC2KTLXfTCR6vDpnSiY12heNb1GiN/wu+T/FyA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f18213d041ccff776ad7464e545fc0ee973f61232d6dc79c72de2b5ad7b1ae74821ce3dca42d8a4cb5df4c247abc3a674a2635da178d6f51a237fc2ef93fc5c8\",\"name\":\"@typescript/typescript-netbsd-x64\",\"version\":\"7.0.2\"},\"@typescript__typescript-openbsd-arm64-7.0.2.tgz\":{\"integrity\":\"APT8+ClYnuYm1u9+kgGXoMj2VzWzcymwh2gNSQVySHfkRDGOTVkoWLjCmOQSaO+PoqQ57B0flRp9SA+7GnnkzQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"00f4fcf829589ee626d6ef7e920197a0c8f65735b37329b087680d4905724877e444318e4d592858b8c298e41268ef8fa2a439ec1d1f951a7d480fbb1a79e4cd\",\"name\":\"@typescript/typescript-openbsd-arm64\",\"version\":\"7.0.2\"},\"@typescript__typescript-openbsd-x64-7.0.2.tgz\":{\"integrity\":\"yX7s+Q0Dln0Dt9tEzZsAjXXR/+ytBM7AlglaqyeMPxQszJ1JhlJdZ6jLA+IzldHtflX81em7lDao1xXu+aRRkg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c97eecf90d03967d03b7db44cd9b008d75d1ffecad04cec096095aab278c3f142ccc9d4986525d67a8cb03e23395d1ed7e55fcd5e9bb9436a8d715eef9a45192\",\"name\":\"@typescript/typescript-openbsd-x64\",\"version\":\"7.0.2\"},\"@typescript__typescript-sunos-x64-7.0.2.tgz\":{\"integrity\":\"dLJDGaLZ1D4HPQn62u1n8mBDkJREwMsAkCdkwd4Ieqw+x3TUyTsqY0YiBCtE6H6OzzgGk3iuZ3vFWRS+E8/d1g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"74b24319a2d9d43e073d09fadaed67f26043909444c0cb00902764c1de087aac3ec774d4c93b2a634622042b44e87e8ecf38069378ae677bc55914be13cfddd6\",\"name\":\"@typescript/typescript-sunos-x64\",\"version\":\"7.0.2\"},\"@typescript__typescript-win32-arm64-7.0.2.tgz\":{\"integrity\":\"Gyl1Vy6OsWesLzmq+EP0Fb7b4Nid5232AvcA2SFcdYreldpNtYFFofPjnt62y9hQy7VTaZp65ICJjuAQRaVcIQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1b2975572e8eb167ac2f39aaf843f415bedbe0d89de76df602f700d9215c758ade95da4db58145a1f3e39edeb6cbd850cbb553699a7ae480898ee01045a55c21\",\"name\":\"@typescript/typescript-win32-arm64\",\"version\":\"7.0.2\"},\"@typescript__typescript-win32-x64-7.0.2.tgz\":{\"integrity\":\"0BQ3HkAHHlKLSp1qRvf3SUhGpGsDuhB/jgFw75guyqbxJqEaS0Cw/VFO8i2nHglJUzQCRtMMR/IBAKE3ETMC4g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d014371e40071e528b4a9d6a46f7f7494846a46b03ba107f8e0170ef982ecaa6f126a11a4b40b0fd514ef22da71e094953340246d30c47f20100a137113302e2\",\"name\":\"@typescript/typescript-win32-x64\",\"version\":\"7.0.2\"},\"@vitest__coverage-v8-4.1.10.tgz\":{\"integrity\":\"IM49HmthevbgAO4anp1hwtoT9wYe59w0LR00gr+eagHE+ZJ5lK4sLPeO0ubgoJcwLk6dehU3R24N+FbEEKDc8g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"20ce3d1e6b617af6e000ee1a9e9d61c2da13f7061ee7dc342d1d3482bf9e6a01c4f9927994ae2c2cf78ed2e6e0a097302e4e9d7a1537476e0df856c410a0dcf2\",\"name\":\"@vitest/coverage-v8\",\"version\":\"4.1.10\"},\"@vitest__expect-4.1.10.tgz\":{\"integrity\":\"YsCn+qAk1GWjQOWFEsEcL2gNQ0zmVmQu3T03qP6UyjhtmdtwtbuI+DASn/7iQB3HGTXkdBwGddzxPlmiql5vlA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"62c0a7faa024d465a340e58512c11c2f680d434ce656642edd3d37a8fe94ca386d99db70b5bb88f830129ffee2401dc71935e4741c0675dcf13e59a2aa5e6f94\",\"name\":\"@vitest/expect\",\"version\":\"4.1.10\"},\"@vitest__mocker-4.1.10.tgz\":{\"integrity\":\"v0xaezt+DKEmKfaxg133ldzADrwLGd7Ze1MfQQTYfvs8OqZIwbxyxaYURivwV7sWy5fqn3rH5uOrSp07bp44Ow==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"bf4c5a7b3b7e0ca12629f6b1835df795dcc00ebc0b19ded97b531f4104d87efb3c3aa648c1bc72c5a614462bf057bb16cb97ea9f7ac7e6e3ab4a9d3b6e9e383b\",\"name\":\"@vitest/mocker\",\"version\":\"4.1.10\"},\"@vitest__pretty-format-4.1.10.tgz\":{\"integrity\":\"W1HsjSH4MXQ9YfmmhLAoIYf1HRfekQCGngeIgcei6MP5QQGWUe0gkopdZQaVCFO+JDJMrAJGwa5pRpNpvy4P8Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5b51ec8d21f831743d61f9a684b0282187f51d17de9100869e078881c7a2e8c3f941019651ed20928a5d6506950853be24324cac0246c1ae69469369bf2e0ff1\",\"name\":\"@vitest/pretty-format\",\"version\":\"4.1.10\"},\"@vitest__runner-4.1.10.tgz\":{\"integrity\":\"IKI6kpIH+LmpROplyLwBBaCfMgOZOMsygVa6BARD6ahA04VRuJSa6OaVG7kRvSEMD870Vd91rSSw0eegtWyLGg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"20a23a929207f8b9a944ea65c8bc0105a09f32039938cb328156ba040443e9a840d38551b8949ae8e6951bb911bd210c0fcef455df75ad24b0d1e7a0b56c8b1a\",\"name\":\"@vitest/runner\",\"version\":\"4.1.10\"},\"@vitest__snapshot-4.1.10.tgz\":{\"integrity\":\"xRkfOT1qpTAi/Ti4Y1LtfRc3kEuqxGw59eN2jN9pRWMtS/XDevekhcFSqvQqjUNGksfjMJu3Y+oJ+4Ypn2OaJw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c5191f393d6aa53022fd38b86352ed7d1737904baac46c39f5e3768cdf6945632d4bf5c37af7a485c152aaf42a8d434692c7e3309bb763ea09fb86299f639a27\",\"name\":\"@vitest/snapshot\",\"version\":\"4.1.10\"},\"@vitest__spy-4.1.10.tgz\":{\"integrity\":\"PLf/Ugvoq5wO/b4rwYCR1h2PSIdXz7wnkQFMiUpLdtM7l6pqVFcQIBEHyT1+l+cj7mNwAfZHzqXqDyjvOuwbDw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3cb7ff520be8ab9c0efdbe2bc18091d61d8f488757cfbc2791014c894a4b76d33b97aa6a545710201107c93d7e97e723ee637001f647cea5ea0f28ef3aec1b0f\",\"name\":\"@vitest/spy\",\"version\":\"4.1.10\"},\"@vitest__utils-4.1.10.tgz\":{\"integrity\":\"fy9am/HWxbaGt/Sawrp90vt6Y6jQwf1RX77cz3uwoJwJVMli/e1IEwRPnMNJ7vKfPTwo0diXifkpPvwH9v7nGA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7f2f5a9bf1d6c5b686b7f49ac2ba7dd2fb7a63a8d0c1fd515fbedccf7bb0a09c0954c962fded4813044f9cc349eef29f3d3c28d1d89789f9293efc07f6fee718\",\"name\":\"@vitest/utils\",\"version\":\"4.1.10\"},\"@xmldom__xmldom-0.8.14.tgz\":{\"integrity\":\"T4EDRUBVZYRldYApjEJiU0e1stYWaRAX7CuSnKzrpwdZKo53zGV8/pqfzV6FfwNl9YThD2OumQYvqtvjvgG7aQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4f81034540556584657580298c42625347b5b2d616691017ec2b929caceba707592a8e77cc657cfe9a9fcd5e857f0365f584e10f63ae99062faadbe3be01bb69\",\"name\":\"@xmldom/xmldom\",\"version\":\"0.8.14\"},\"@xyflow__react-12.11.3.tgz\":{\"integrity\":\"G3jogHz2GWUtIOkhavUGno2YzY9u6fILIJBttfsBendb0/HWB90JG+sOTAvlIMEwyvq9zgy9V9ZQSwyQjR5QzQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1b78e8807cf619652d20e9216af5069e8d98cd8f6ee9f20b20906db5fb017a775bd3f1d607dd091beb0e4c0be520c130cafabdce0cbd57d6504b0c908d1e50cd\",\"name\":\"@xyflow/react\",\"version\":\"12.11.3\"},\"@xyflow__system-0.0.80.tgz\":{\"integrity\":\"ywc3ZqG91brzWrH1WlwMdIX4goOfrpBy6AbLdVSaof/Xx9l138ijIKRExM6EkMro2F+OImGmSiA/WKcXvKVcfA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"cb073766a1bdd5baf35ab1f55a5c0c7485f882839fae9072e806cb75549aa1ffd7c7d975dfc8a320a444c4ce8490cae8d85f8e2261a64a203f58a717bca55c7c\",\"name\":\"@xyflow/system\",\"version\":\"0.0.80\"},\"abbrev-4.0.0.tgz\":{\"integrity\":\"a1wflyaL0tHtJSmLSOVybYhy22vRih4eduhhrkcjgrWGnRfrZtovJ2FRjxuTtkkj47O/baf0R86QU5OuYpz8fA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6b5c1f97268bd2d1ed25298b48e5726d8872db6bd18a1e1e76e861ae472382b5869d17eb66da2f2761518f1b93b64923e3b3bf6da7f447ce905393ae629cfc7c\",\"name\":\"abbrev\",\"version\":\"4.0.0\"},\"abort-controller-3.0.0.tgz\":{\"integrity\":\"h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"87c950f2d69c6589d1def3504e089b8feb4e0c7239ffe974e80bb63dcae2bff1a67add1e6a3e13c161f8d6c3bdc271c3890b048f5f6ad1daf375675e007b707a\",\"name\":\"abort-controller\",\"version\":\"3.0.0\"},\"abstract-logging-2.0.1.tgz\":{\"integrity\":\"2BjRTZxTPvheOvGbBslFSYOUkr+SjPtOnrLP33f+VIWLzezQpZcqVg7ja3L4dBXmzzgwT+a029jRx5PCi3JuiA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d818d14d9c533ef85e3af19b06c94549839492bf928cfb4e9eb2cfdf77fe54858bcdecd0a5972a560ee36b72f87415e6cf38304fe6b4dbd8d1c793c28b726e88\",\"name\":\"abstract-logging\",\"version\":\"2.0.1\"},\"accepts-2.0.0.tgz\":{\"integrity\":\"5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e5cbe0e82b4ac1f81d995a98d562225ca7374356e446a18b8bed96ffa6a8fba63b82efd10b046e021184ce1e41e0a96ccd2b932e0658baa16aa396c89a334a9e\",\"name\":\"accepts\",\"version\":\"2.0.0\"},\"agent-base-7.1.4.tgz\":{\"integrity\":\"MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"32703e613f1fc1f24f801c779bad0c36a6a49b7d173a4c88a07d72ea1b9342f0b43f0646ee48bc35a70b05cacf6cda28f2f119cbb269ba4efe8cc3be094a2f4d\",\"name\":\"agent-base\",\"version\":\"7.1.4\"},\"ajv-8.20.0.tgz\":{\"integrity\":\"Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4e16e58be3a53a3fa230f60505505f2773a60809da4b2367e0cd6fcfd4fa1a46b926df5b6bf1c8479ea3a32eb9b58ea4c7f142179557341f35f58eff194ac118\",\"name\":\"ajv\",\"version\":\"8.20.0\"},\"ajv-formats-2.1.1.tgz\":{\"integrity\":\"Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5b1d0ac79da1c44ec2d7c8643048206251227ea599b58691828b89a2bf9631d3e743210ad77be0116c9536ea7b4a879ea0b32caf891fe61e9d396d75235e4c50\",\"name\":\"ajv-formats\",\"version\":\"2.1.1\"},\"ajv-formats-3.0.1.tgz\":{\"integrity\":\"8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f2252a979d04511fae51c7514371c3a9ae84572a3776870bf20e5627714d7169aeeb621b90652e7bfa44c8b056f1518a2ae7133e0a9e92ce1f214d43038ca8c1\",\"name\":\"ajv-formats\",\"version\":\"3.0.1\"},\"ansi-colors-4.1.3.tgz\":{\"integrity\":\"/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ffac3f0b6d4f9b503b6998ad948e4d8bfd89e8515037c8b50afcf79070010006f0f77bff365bca7553aacfb0825b3ff78affc9a6545210467cdd720e375e68bf\",\"name\":\"ansi-colors\",\"version\":\"4.1.3\"},\"ansi-regex-5.0.1.tgz\":{\"integrity\":\"quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"aae2505e54d25062f62c7f52517a3c570b18e2ca1a9e1828e8b3529bce04d4b05c13cb373b4c29762473c91f73fd9649325316bf7eea38e6fda5d26531410a15\",\"name\":\"ansi-regex\",\"version\":\"5.0.1\"},\"ansi-regex-6.3.0.tgz\":{\"integrity\":\"WpDfL7NO6j7tH88IDBNVdUJxDh9nmCteAVW9dsep846XdwF4naCBK+/tGLX3KJgcpgMRXCFlTM2hKGoK9FsdrQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5a90df2fb34eea3eed1fcf080c13557542710e1f67982b5e0155bd76c7a9f38e977701789da0812befed18b5f728981ca603115c21654ccda1286a0af45b1dad\",\"name\":\"ansi-regex\",\"version\":\"6.3.0\"},\"ansi-styles-4.3.0.tgz\":{\"integrity\":\"zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"cdb07dac22404f5adb8e25436f686a2851cd60bc60b64f0d511c59dc86700f717a36dc5b5d94029e74a2d4b931f880e885d3e5169db6db05402c885e64941212\",\"name\":\"ansi-styles\",\"version\":\"4.3.0\"},\"ansi-styles-5.2.0.tgz\":{\"integrity\":\"Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0b1c29b7649f4f34ed5dc7ce97318479ef0ef9cf8c994806acd8817179ee5b1b852477ba6b91f3eeac21c1ee4e81a498234209be42ea597d40486f9c24e90488\",\"name\":\"ansi-styles\",\"version\":\"5.2.0\"},\"app-builder-lib-26.15.7.tgz\":{\"integrity\":\"C7APoYISPExUmrEntNhDpz9Tccb4uWuEDfLaC0WPPc7/pwzz0WZGznCz/ycPfkkzw6tKOalceD8g6TgHmVz1QA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0bb00fa182123c4c549ab127b4d843a73f5371c6f8b96b840df2da0b458f3dceffa70cf3d16646ce70b3ff270f7e4933c3ab4a39a95c783f20e93807995cf540\",\"name\":\"app-builder-lib\",\"version\":\"26.15.7\"},\"argparse-2.0.1.tgz\":{\"integrity\":\"8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f3ef56a9e6db173a57f4e47e59ae8edbd6ac22881e44ccdc1ad00835da4c1c7c80835d1fd3969215505b704a867ff3d7c35123019faadbf6c4060dc3beeacadd\",\"name\":\"argparse\",\"version\":\"2.0.1\"},\"aria-hidden-1.2.6.tgz\":{\"integrity\":\"ik3ZgC9dY/lYVVM++OISsaYDeg1tb0VtP5uL3ouh1koGOaUMDPpbFIei4JkFimWUFPn90sbMNMXQAIVOlnYKJA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8a4dd9802f5d63f95855533ef8e212b1a6037a0d6d6f456d3f9b8bde8ba1d64a0639a50c0cfa5b1487a2e099058a659414f9fdd2c6cc34c5d000854e96760a24\",\"name\":\"aria-hidden\",\"version\":\"1.2.6\"},\"aria-query-5.3.0.tgz\":{\"integrity\":\"b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6f43f4b193cab72bbc1e479101f0aad087d44592be4aec0c8d8d545c6054dbbc290224f0400225ab9e886c83becad93f2634b57cc475e1e7b958105f2a2e49e8\",\"name\":\"aria-query\",\"version\":\"5.3.0\"},\"aria-query-5.3.2.tgz\":{\"integrity\":\"COROpnaoap1E2F000S62r6A60uHZnmlvomhfyT2DlTcrY1OrBKn2UhH7qn5wTC9zMvD0AY7csdPSNwKP+7WiQw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"08e44ea676a86a9d44d85d34d12eb6afa03ad2e1d99e696fa2685fc93d8395372b6353ab04a9f65211fbaa7e704c2f7332f0f4018edcb1d3d237028ffbb5a243\",\"name\":\"aria-query\",\"version\":\"5.3.2\"},\"asn1js-3.0.10.tgz\":{\"integrity\":\"S2s3aOytiKdFRdulw2qPE51MzjzVOisppcVv7jVFR+Kw0kxwvFrDcYA0h7Ndqbmj0HkMIXYWaoj7fli8kgx1eg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4b6b3768ecad88a74545dba5c36a8f139d4cce3cd53a2b29a5c56fee354547e2b0d24c70bc5ac371803487b35da9b9a3d0790c2176166a88fb7e58bc920c757a\",\"name\":\"asn1js\",\"version\":\"3.0.10\"},\"assertion-error-2.0.1.tgz\":{\"integrity\":\"Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2338bc45071f7ea09e3558058a02a58b5b2c92521ba479c261ce809275c662807a82b26ac9e6f2ee3bf5d895108264c09c80e76dc935bb192c4f87733773d604\",\"name\":\"assertion-error\",\"version\":\"2.0.1\"},\"ast-types-0.16.1.tgz\":{\"integrity\":\"6t10qk83GOG8p0vKmaCr8eiilZwO171AvbROMtvvNiwrTly62t+7XkA8RdIIVbpMhCASAsxgAzdRSwh6nw/5Dg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"eadd74aa4f3718e1bca74bca99a0abf1e8a2959c0ed7bd40bdb44e32dbef362c2b4e5cbadadfbb5e403c45d20855ba4c84201202cc600337514b087a9f0ff90e\",\"name\":\"ast-types\",\"version\":\"0.16.1\"},\"ast-v8-to-istanbul-1.0.5.tgz\":{\"integrity\":\"UPAgKJFSEGMWSDr3LX4tqnAb4f7KGT8O40Tyx8wbYmmZ/yn58lNCm8h3svs3eXgiGd5AXxz8NDOvXWvicq+rJA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"50f020289152106316483af72d7e2daa701be1feca193f0ee344f2c7cc1b626999ff29f9f253429bc877b2fb3779782219de405f1cfc3433af5d6be272afab24\",\"name\":\"ast-v8-to-istanbul\",\"version\":\"1.0.5\"},\"async-3.2.6.tgz\":{\"integrity\":\"htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"86d0940e5c72c822cc81a337c578340b42d6db1a9fb90ea9d39a42108b17bb243e6b592860a4ee04ccd13709b26df2e0bc90cc774af52d39f8f84d138ba0b600\",\"name\":\"async\",\"version\":\"3.2.6\"},\"async-exit-hook-2.0.1.tgz\":{\"integrity\":\"NW2cX8m1Q7KPA7a5M2ULQeZ2wR5qI5PAbw5L0UOMxdioVk9PMZ0h1TmyZEkPYrCvYjDlFICusOu1dlEKAAeXBw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"356d9c5fc9b543b28f03b6b933650b41e676c11e6a2393c06f0e4bd1438cc5d8a8564f4f319d21d539b264490f62b0af6230e51480aeb0ebb576510a00079707\",\"name\":\"async-exit-hook\",\"version\":\"2.0.1\"},\"asynckit-0.4.0.tgz\":{\"integrity\":\"Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"39e8bd387e2d461d18a94dc6c615fbf5d33f9b0560bdb64969235a464f9bb21923d12e5c7c772061a92b7818eb1f06ad5ca6f3f88a087582f1aca8a6d8c8d6d1\",\"name\":\"asynckit\",\"version\":\"0.4.0\"},\"at-least-node-1.0.0.tgz\":{\"integrity\":\"+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"faafedec492fd440d8da5e8675ae8b2e25f5e2b53d4d5db459ade87de426c0f1596ce328f435eb2db3a315a69c9645ca5a27486a8a7000e6d00eac16b46523aa\",\"name\":\"at-least-node\",\"version\":\"1.0.0\"},\"atomic-sleep-1.0.0.tgz\":{\"integrity\":\"kNOjDqAh7px0XWNI+4QbzoiR/nTkHAWNud2uvnJquD1/x5a7EQZMJT0AczqK0Qn67oY/TTQ1LbUKajZpp3I9tQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"90d3a30ea021ee9c745d6348fb841bce8891fe74e41c058db9ddaebe726ab83d7fc796bb11064c253d00733a8ad109faee863f4d34352db50a6a3669a7723db5\",\"name\":\"atomic-sleep\",\"version\":\"1.0.0\"},\"atomically-1.7.0.tgz\":{\"integrity\":\"Xcz9l0z7y9yQ9rdDaxlmaI4uJHf/T8g9hOEzJcsEqX2SjCj4J20uK7+ldkDHMbpJDK76wF7xEIgxc/vSlsfw5w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5dccfd974cfbcbdc90f6b7436b1966688e2e2477ff4fc83d84e13325cb04a97d928c28f8276d2e2bbfa57640c731ba490caefac05ef110883173fbd296c7f0e7\",\"name\":\"atomically\",\"version\":\"1.7.0\"},\"avvio-9.3.0.tgz\":{\"integrity\":\"g2tQ7LE7oOSqDfwEm3M+ZCMTJc7KiZCdJ4UwyZJb5ckTKyYu50OYmvv0mCFXPuYXoM4zkSt8zM9XQ9KCvxA74A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"836b50ecb13ba0e4aa0dfc049b733e64231325ceca89909d278530c9925be5c9132b262ee743989afbf49821573ee617a0ce33912b7ccccf5743d282bf103be0\",\"name\":\"avvio\",\"version\":\"9.3.0\"},\"aws4-1.13.2.tgz\":{\"integrity\":\"lHe62zvbTB5eEABUVi/AwVh0ZKY9rMMDhmm+eeyuuUQbQ3+J+fONVQOZyj+DdrvD4BY33uYniyRJ4UJIaSKAfw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9477badb3bdb4c1e5e100054562fc0c1587464a63dacc3038669be79ecaeb9441b437f89f9f38d550399ca3f8376bbc3e01637dee6278b2449e142486922807f\",\"name\":\"aws4\",\"version\":\"1.13.2\"},\"balanced-match-1.0.2.tgz\":{\"integrity\":\"3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"de849e50ed13315ebb84dd4099b5ec2b8c9aa94eed8e21e56f144364ea47d0a5bdf82797e1b440697d009f1b74b71d8cae94695b041a3f02252121098585393f\",\"name\":\"balanced-match\",\"version\":\"1.0.2\"},\"balanced-match-4.0.4.tgz\":{\"integrity\":\"BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"04bae011c453c17da8ea01b118e08dc8cbc64a9df96287ee633c3d87520c4d198aaadb40659554ebb6dd6fd3ebdaf50703cfa3de2dad25f8cee82ebee26c864c\",\"name\":\"balanced-match\",\"version\":\"4.0.4\"},\"base64-js-1.5.1.tgz\":{\"integrity\":\"AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"00aa5a6251e7f2de1255b3870b2f9be7e28a82f478bebb03f2f6efadb890269b3b7ca0d3923903af2ea38b4ad42630b49336cd78f2f0cf1abc8b2a68e35a9e58\",\"name\":\"base64-js\",\"version\":\"1.5.1\"},\"baseline-browser-mapping-2.11.14.tgz\":{\"integrity\":\"JyJ954WzuIR8/FFzX0o5krdSTrBAkcCSRfWSleRsIHSWV+cZe2FI1PKggVkFke1hBldRs+LRxUczzE9iPmgZww==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"27227de785b3b8847cfc51735f4a3992b7524eb04091c09245f59295e46c20749657e7197b6148d4f2a081590591ed61065751b3e2d1c54733cc4f623e6819c3\",\"name\":\"baseline-browser-mapping\",\"version\":\"2.11.14\"},\"bencode-4.0.1.tgz\":{\"integrity\":\"/bCR3FvgfB8AZk4LlowShU+nfaTNRM2vruJ9aejDa5LpgkCoRjFyEauFiZFxbpxVxQbBFapYCN42Er2dkE/Qgw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"fdb091dc5be07c1f00664e0b968c12854fa77da4cd44cdafaee27d69e8c36b92e98240a846317211ab858991716e9c55c506c115aa5808de3612bd9d904fd083\",\"name\":\"bencode\",\"version\":\"4.0.1\"},\"bep53-range-2.0.1.tgz\":{\"integrity\":\"VWN7j7sqUssWD6ROZe2m709YL3u5A1IAx1qvAbH3DAhszHt4WPvCzJLRJ+mzmZn1qWIb4mpflwdn95qezz3n8g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"55637b8fbb2a52cb160fa44e65eda6ef4f582f7bb9035200c75aaf01b1f70c086ccc7b7858fbc2cc92d127e9b39999f5a9621be26a5f970767f79a9ecf3de7f2\",\"name\":\"bep53-range\",\"version\":\"2.0.1\"},\"better-sqlite3-13.0.3.tgz\":{\"integrity\":\"RbOBxmLBG8uvFUc15X9+9SFemKcQ0WBuISBVkpuiaUB2qblC8UWlHEjdWVoZ8AdhSwmoEgsiXKfopX0CQxaACQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"45b381c662c11bcbaf154735e57f7ef5215e98a710d1606e212055929ba2694076a9b942f145a51c48dd595a19f007614b09a8120b225ca7e8a57d0243168009\",\"name\":\"better-sqlite3\",\"version\":\"13.0.3\"},\"bidi-js-1.0.3.tgz\":{\"integrity\":\"RKshQI1R3YQ+n9YJz2QQ147P66ELpa1FQEg20Dk8oW9t2KgLbpDLLp9aGZ7y8WHSshDknG0bknqGw5/tyCs5tw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"44ab21408d51dd843e9fd609cf6410d78ecfeba10ba5ad45404836d0393ca16f6dd8a80b6e90cb2e9f5a199ef2f161d2b210e49c6d1b927a86c39fedc82b39b7\",\"name\":\"bidi-js\",\"version\":\"1.0.3\"},\"bindings-1.5.0.tgz\":{\"integrity\":\"p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a76abfb7f9a1bee3a3fd478b955eb9eba183fe0ba8c25af4847c42948d16f66ecc59890bd45d212e8fb401ec6cf4748f0ad4754974344c3dcc30aad765a8db89\",\"name\":\"bindings\",\"version\":\"1.5.0\"},\"bittorrent-peerid-2.0.2.tgz\":{\"integrity\":\"V2iUvbtv31uLA8XFxbhB3f/fKTxWGaa6FI/3wSm93YAS/DS8IkeRWCyYGQ13Xbc9ajR40nsxNjGtVt7OHB3VOQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"576894bdbb6fdf5b8b03c5c5c5b841ddffdf293c5619a6ba148ff7c129bddd8012fc34bc224791582c98190d775db73d6a3478d27b313631ad56dece1c1dd539\",\"name\":\"bittorrent-peerid\",\"version\":\"2.0.2\"},\"bluebird-3.7.2.tgz\":{\"integrity\":\"XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5e9363e860d0cdd7d6fabd969e7ef189201ded33378f39311970464ed58ab925efd71515f9acf1026f2375664dd3a413424fb63765c1f6344392f6e6426711b6\",\"name\":\"bluebird\",\"version\":\"3.7.2\"},\"body-parser-2.3.0.tgz\":{\"integrity\":\"2cGmJupaNgg+QUwVLAucDuWuoMZ6EX9iHDRswZ5lsNYEmwPaRknMPCLZz07yTzVq/83p4o/wzbDZbBrTvGGTIw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d9c1a626ea5a36083e414c152c0b9c0ee5aea0c67a117f621c346cc19e65b0d6049b03da4649cc3c22d9cf4ef24f356affcde9e28ff0cdb0d96c1ad3bc619323\",\"name\":\"body-parser\",\"version\":\"2.3.0\"},\"boolean-3.2.0.tgz\":{\"integrity\":\"d0II/GO9uf9lfUHH2BQsjxzRJZBdsjgsBiW4BvhWk/3qoKwQFjIDVN19PfX8F2D/r9PCMTtLWjYVCFrpeYUzsw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"774208fc63bdb9ff657d41c7d8142c8f1cd125905db2382c0625b806f85693fdeaa0ac1016320354dd7d3df5fc1760ffafd3c2313b4b5a3615085ae9798533b3\",\"name\":\"boolean\",\"version\":\"3.2.0\"},\"brace-expansion-1.1.18.tgz\":{\"integrity\":\"Edep/X9fGqVNmzKBVsDYIOtD+z1tuezV70LBjdCst9Tqu76lsnvRiZ6oTic1n+/BIwX6QDGAO94PN4N2SADvtw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"11d7a9fd7f5f1aa54d9b328156c0d820eb43fb3d6db9ecd5ef42c18dd0acb7d4eabbbea5b27bd1899ea84e27359fefc12305fa4031803bde0f3783764800efb7\",\"name\":\"brace-expansion\",\"version\":\"1.1.18\"},\"brace-expansion-2.1.4.tgz\":{\"integrity\":\"hGfVzPxthbf3+2yjg/RBs60cB0FhqBS/zvdV/4wn4/BmN0bNMMHPc4V/BbFieqf1TKAGGAHnY4eSjajCl0f2Xg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8467d5ccfc6d85b7f7fb6ca383f441b3ad1c074161a814bfcef755ff8c27e3f0663746cd30c1cf73857f05b1627aa7f54ca0061801e76387928da8c29747f65e\",\"name\":\"brace-expansion\",\"version\":\"2.1.4\"},\"brace-expansion-5.0.9.tgz\":{\"integrity\":\"ScQ4IuvIEF1TMlP7Zt+vjJ//9zlPb2SDcxWxM3bk8s6t6GGdJ7KO1dCcTidOPJKePW30LE/2cT7wCyPho9/Wxg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"49c43822ebc8105d533253fb66dfaf8c9ffff7394f6f64837315b13376e4f2ceade8619d27b28ed5d09c4e274e3c929e3d6df42c4ff6713ef00b23e1a3dfd6c6\",\"name\":\"brace-expansion\",\"version\":\"5.0.9\"},\"braces-3.0.3.tgz\":{\"integrity\":\"yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c906d780efce499543d88b222e5ae8fbb1dfe90d7c109aca484b1da0ccca78f29772dde0bc3f282dc390748cc6ba9af9163f840def203bf9717350737cca71bc\",\"name\":\"braces\",\"version\":\"3.0.3\"},\"browserslist-4.28.8.tgz\":{\"integrity\":\"V2NpofLblG64mfOtSgDhOJESZEGogzDMBv/q+W6oc4LXWP/q75eOXoOaaOu1EOadB9U4Bwx/e0yzbvwKH8zalA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"576369a1f2db946eb899f3ad4a00e13891126441a88330cc06ffeaf96ea87382d758ffeaef978e5e839a68ebb510e69d07d538070c7f7b4cb36efc0a1fccda94\",\"name\":\"browserslist\",\"version\":\"4.28.8\"},\"buffer-from-1.1.2.tgz\":{\"integrity\":\"E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"13e5d0091c126da6a20a1b6fea4e83c2073e6f1f81b3abee2891c7979928c7f05a29b8625f3a903b02b870edb6c84946a763829a3c15853dc79b18323c69c97d\",\"name\":\"buffer-from\",\"version\":\"1.1.2\"},\"builder-util-26.15.3.tgz\":{\"integrity\":\"q2hn7Mbo2nFNkVekPiHFx6Nfo3hURmES3tfBn+k5Pqxl2RkmP3QGqZUhH/q9Pch/4G05NRhPjDlVj1O8q4Txvw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ab6867ecc6e8da714d9157a43e21c5c7a35fa37854466112ded7c19fe9393eac65d919263f7406a995211ffabd3dc87fe06d3935184f8c39558f53bcab84f1bf\",\"name\":\"builder-util\",\"version\":\"26.15.3\"},\"builder-util-runtime-9.7.0.tgz\":{\"integrity\":\"g/kR520giAFYkSXTzcmF3kqQq7wi8F6N6SzeDgZrqTBN+VHdmgWOyTdD1yD7AATDId/yXLvuP34CxW46/BwCdw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"83f911e76d208801589125d3cdc985de4a90abbc22f05e8de92cde0e066ba9304df951dd9a058ec93743d720fb0004c321dff25cbbee3f7e02c56e3afc1c0277\",\"name\":\"builder-util-runtime\",\"version\":\"9.7.0\"},\"bundle-name-4.1.0.tgz\":{\"integrity\":\"tjwM5exMg6BGRI+kNmTntNsvdZS1X8BFYS6tnJ2hdH0kVxM6/eVZ2xy+FqStSWvYmtfFMDLIxurorHwDKfDz5Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b63c0ce5ec4c83a046448fa43664e7b4db2f7594b55fc045612ead9c9da1747d2457133afde559db1cbe16a4ad496bd89ad7c53032c8c6eae8ac7c0329f0f3e5\",\"name\":\"bundle-name\",\"version\":\"4.1.0\"},\"bytes-3.1.2.tgz\":{\"integrity\":\"/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"fcd7fb4f2cd3c7a4b7c9124e6ce015efde7aafc72bdbe3a3f000b976df3048fdc1400a1e5f9f0da07c8253c3fccc690d5d2b634d28ba7f33ba174a4175c61b12\",\"name\":\"bytes\",\"version\":\"3.1.2\"},\"bytestreamjs-2.0.1.tgz\":{\"integrity\":\"U1Z/ob71V/bXfVABvNr/Kumf5VyeQRBEm6Txb0PQ6S7V5GpBM3w4Cbqz/xPDicR5tN0uvDifng8C+5qECeGwyQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"53567fa1bef557f6d77d5001bcdaff2ae99fe55c9e4110449ba4f16f43d0e92ed5e46a41337c3809bab3ff13c389c479b4dd2ebc389f9e0f02fb9a8409e1b0c9\",\"name\":\"bytestreamjs\",\"version\":\"2.0.1\"},\"cacheable-lookup-5.0.4.tgz\":{\"integrity\":\"2/kNscPhpcxrOigMZzbiWF7dz8ilhb/nIHU3EyZiXWXpeq/au8qJ8VhdftMkty3n7Gj6HIGalQG8oiBNB3AJgA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"dbf90db1c3e1a5cc6b3a280c6736e2585eddcfc8a585bfe72075371326625d65e97aafdabbca89f1585d7ed324b72de7ec68fa1c819a9501bca2204d07700980\",\"name\":\"cacheable-lookup\",\"version\":\"5.0.4\"},\"cacheable-request-7.0.4.tgz\":{\"integrity\":\"v+p6ongsrp0yTGbJXjgxPow2+DL93DASP4kXCDKb8/bwRtt9OEF3whggkkDkGNzgcWy2XaF4a8nZglC7uElscg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"bfea7aa2782cae9d324c66c95e38313e8c36f832fddc30123f891708329bf3f6f046db7d384177c218209240e418dce0716cb65da1786bc9d98250bbb8496c72\",\"name\":\"cacheable-request\",\"version\":\"7.0.4\"},\"call-bind-apply-helpers-1.0.2.tgz\":{\"integrity\":\"Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4a9d5a6e52748af0e44b38dc68977112e9cde7f5ef92c149dac30115fabac74af285057fd9bfcac057b6d5c329987b4f3928a3f0af7dff049fa04b9339b9ae31\",\"name\":\"call-bind-apply-helpers\",\"version\":\"1.0.2\"},\"call-bound-1.0.4.tgz\":{\"integrity\":\"+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"fb2b3df7b53dea9a382b1fc0069042aa103d12ec49690583420ef6f791f8841a61bf72198346e804abb0629b78617a7a319e4099942753fb72313951a5a49e8e\",\"name\":\"call-bound\",\"version\":\"1.0.4\"},\"callsites-3.1.0.tgz\":{\"integrity\":\"P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3fc06302c5ef652f95203508d7584709012fef8613ebb6148b924914d588a8bdb7e6c0668d7e3eab1f4cbaf96ce62bf234435cb71e3ac502d0dda4ee13bb2c69\",\"name\":\"callsites\",\"version\":\"3.1.0\"},\"caniuse-lite-1.0.30001809.tgz\":{\"integrity\":\"xxWVywk6a6Arlk+hymeycyn/VgqEfLDxupvhH/xiY5SJ/18kmi9o6MiO320DCUzypORHLtvh0I4i04tUhCNHNQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c71595cb093a6ba02b964fa1ca67b27329ff560a847cb0f1ba9be11ffc62639489ff5f249a2f68e8c88edf6d03094cf2a4e4472edbe1d08e22d38b5484234735\",\"name\":\"caniuse-lite\",\"version\":\"1.0.30001809\"},\"chai-6.2.2.tgz\":{\"integrity\":\"NUPRluOfOiTKBKvWPtSD4PhFvWCqOi0BGStNWs57X9js7XGTprSmFoz5F0tWhR4WPjNeR9jXqdC7/UpSJTnlRg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3543d196e39f3a24ca04abd63ed483e0f845bd60aa3a2d01192b4d5ace7b5fd8eced7193a6b4a6168cf9174b56851e163e335e47d8d7a9d0bbfd4a522539e546\",\"name\":\"chai\",\"version\":\"6.2.2\"},\"chalk-4.1.2.tgz\":{\"integrity\":\"oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a0a9db845c91217a54b9ecfc881326c846b89db8f820e432ba173fc32f6463bfd654f73020ef5503aebc3eef1190eefed06efa48b44e7b2c3d0a9434eb58b898\",\"name\":\"chalk\",\"version\":\"4.1.2\"},\"chalk-5.6.2.tgz\":{\"integrity\":\"7NzBL0rN6fMUW+f7A6Io4h40qQlG+xGmtMxfbnH/K7TAtt8JQWVQK+6g0UXKMeVJoyV5EkkNsErQ8pVD3bLHbA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ecdcc12f4acde9f3145be7fb03a228e21e34a90946fb11a6b4cc5f6e71ff2bb4c0b6df094165502beea0d145ca31e549a3257912490db04ad0f29543ddb2c76c\",\"name\":\"chalk\",\"version\":\"5.6.2\"},\"chokidar-5.0.0.tgz\":{\"integrity\":\"TQMmc3w+5AxjpL8iIiwebF73dRDF4fBIieAqGn9RGCWaEVwQ6Fb2cGe31Yns0RRIzii5goJ1Y7xbMwo1TxMplw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4d0326737c3ee40c63a4bf22222c1e6c5ef77510c5e1f04889e02a1a7f5118259a115c10e856f67067b7d589ecd11448ce28b982827563bc5b330a354f132997\",\"name\":\"chokidar\",\"version\":\"5.0.0\"},\"chownr-3.0.0.tgz\":{\"integrity\":\"+IxzY9BZOQd/XuYPRmrvEVjF/nqj5kgT4kEq7VofrDoM1MxoRjEWkrCC3EtLi59TVawxTAn+orJwFQcrqEN1+g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f88c7363d05939077f5ee60f466aef1158c5fe7aa3e64813e2412aed5a1fac3a0cd4cc6846311692b082dc4b4b8b9f5355ac314c09fea2b27015072ba84375fa\",\"name\":\"chownr\",\"version\":\"3.0.0\"},\"chromium-pickle-js-0.2.0.tgz\":{\"integrity\":\"1R5Fho+jBq0DDydt+/vHWj5KJNJCKdARKOCwZUen84I5BreWoLqRLANH1U87eJy1tiASPtMnGqJJq0ZsLoRPOw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d51e45868fa306ad030f276dfbfbc75a3e4a24d24229d01128e0b06547a7f3823906b796a0ba912c0347d54f3b789cb5b620123ed3271aa249ab466c2e844f3b\",\"name\":\"chromium-pickle-js\",\"version\":\"0.2.0\"},\"ci-info-4.3.1.tgz\":{\"integrity\":\"Wdy2Igu8OcBpI2pZePZ5oWjPC38tmDVx5WKUXKwlLYkA0ozo85sLsLvkBbBn/sZaSCMFOGZJ14fvW9t5/d7kdA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"59dcb6220bbc39c069236a5978f679a168cf0b7f2d983571e562945cac252d8900d28ce8f39b0bb0bbe405b067fec65a482305386649d787ef5bdb79fddee474\",\"name\":\"ci-info\",\"version\":\"4.3.1\"},\"ci-info-4.4.0.tgz\":{\"integrity\":\"77PSwercCZU2Fc4sX94eF8k8Pxte6JAwL4/ICZLFjJLqegs7kCuAsqqj/70NQF6TvDpgFjkubQB2FW2ZZddvQg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"efb3d2c1eadc09953615ce2c5fde1e17c93c3f1b5ee890302f8fc80992c58c92ea7a0b3b902b80b2aaa3ffbd0d405e93bc3a6016392e6d0076156d9965d76f42\",\"name\":\"ci-info\",\"version\":\"4.4.0\"},\"class-variance-authority-0.7.1.tgz\":{\"integrity\":\"Ka+9Trutv7G8M6WT6SeiRWz792K5qEqIGEGzXKhAE6xOWAY6pPH8U+9IY3oCMv6kqTmLsv7Xh/2w2RigkePMsg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"29afbd4ebbadbfb1bc33a593e927a2456cfbf762b9a84a881841b35ca84013ac4e58063aa4f1fc53ef48637a0232fea4a9398bb2fed787fdb0d918a091e3ccb2\",\"name\":\"class-variance-authority\",\"version\":\"0.7.1\"},\"classcat-5.0.5.tgz\":{\"integrity\":\"JhZUT7JFcQy/EzW605k/ktHtncoo9vnyW/2GspNYwFlN1C/WmjuV/xtS04e9SOkL2sTdw0VAZ2UGCcQ9lR6p6w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2616544fb245710cbf1335bad3993f92d1ed9dca28f6f9f25bfd86b29358c0594dd42fd69a3b95ff1b52d387bd48e90bdac4ddc3454067650609c43d951ea9eb\",\"name\":\"classcat\",\"version\":\"5.0.5\"},\"cli-cursor-5.0.0.tgz\":{\"integrity\":\"aCj4O5wKyszjMmDT4tZj93kxyydN/K5zPWSCe6/0AV/AA1pqe5ZBIw0a2ZfPQV7lL5/yb5HsUreJ6UFAF1tEQw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6828f83b9c0acacce33260d3e2d663f77931cb274dfcae733d64827baff4015fc0035a6a7b9641230d1ad997cf415ee52f9ff26f91ec52b789e94140175b4443\",\"name\":\"cli-cursor\",\"version\":\"5.0.0\"},\"cli-spinners-2.9.2.tgz\":{\"integrity\":\"ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"cb0a95fb9326c8be04ef26d780acace03ba065b5f4142e8b9f0ae18eeca42239caf64f0e41a710edac462a78c35d63619ecd31a2dddb648e61e791fcca8f5c26\",\"name\":\"cli-spinners\",\"version\":\"2.9.2\"},\"cliui-8.0.1.tgz\":{\"integrity\":\"BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"05278d9f2bacef90b8fff350f6042dd7f72c4d7ca8ffc49bf9a7cb024cc0a6d16e32ca1df4716890636e759a62fe8415ef786754afac47ee4f55131df83afb61\",\"name\":\"cliui\",\"version\":\"8.0.1\"},\"clone-response-1.0.3.tgz\":{\"integrity\":\"ROoL94jJH2dUVML2Y/5PEDNaSHgeOdSDicUyS7izcF63G6sTc/FTjLub4b8Il9S8S0beOfYt0TaA5qvFK+w0wA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"44ea0bf788c91f675454c2f663fe4f10335a48781e39d48389c5324bb8b3705eb71bab1373f1538cbb9be1bf0897d4bc4b46de39f62dd13680e6abc52bec34c0\",\"name\":\"clone-response\",\"version\":\"1.0.3\"},\"clsx-2.1.1.tgz\":{\"integrity\":\"eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7989b441606d52b0566561b4777f3a386030d7a67df793e2395a3607b6e35926c779d1a5e5ed1959aabae6438681448d7ac1080e407d2126d383f24af5d84264\",\"name\":\"clsx\",\"version\":\"2.1.1\"},\"cmdk-1.1.1.tgz\":{\"integrity\":\"Vsv7kFaXm+ptHDMZ7izaRsP70GgrW9NBNGswt9OZaVBLlE0SNpDq8eu/VGXyF9r7M0azK3Wy7OlYXsuyYLFzHg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"56cbfb9056979bea6d1c3319ee2cda46c3fbd0682b5bd341346b30b7d39969504b944d123690eaf1ebbf5465f217dafb3346b32b75b2ece9585ecbb260b1731e\",\"name\":\"cmdk\",\"version\":\"1.1.1\"},\"code-block-writer-13.0.3.tgz\":{\"integrity\":\"Oofo0pq3IKnsFtuHqSF7TqBfr71aeyZDVJ0HpmqB7FBM2qEigL0iPONSCZSO9pE9dZTAxANe5XHG9Uy0YMv8cg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3a87e8d29ab720a9ec16db87a9217b4ea05fafbd5a7b2643549d07a66a81ec504cdaa12280bd223ce35209948ef6913d7594c0c4035ee571c6f54cb460cbfc72\",\"name\":\"code-block-writer\",\"version\":\"13.0.3\"},\"color-convert-2.0.1.tgz\":{\"integrity\":\"RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4511023ec8fb8aeff16f9a0a61cb051d2a6914d9ec8ffe763954d129be333f9a275f0545df3566993a0d70e7c60be0910e97cafd4e7ce1f320dfc64709a12529\",\"name\":\"color-convert\",\"version\":\"2.0.1\"},\"color-name-1.1.4.tgz\":{\"integrity\":\"dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"74ecbedc0b96ddadb035b64722e319a537208c6b8b53fb812ffb9b71917d3976c3a3c7dfe0ef32569e417f479f4bcb84a18a39ab8171edd63d3a04065e002c40\",\"name\":\"color-name\",\"version\":\"1.1.4\"},\"colorette-2.0.20.tgz\":{\"integrity\":\"IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"21f103c70a1622391e5cbd5e5dc0e2a30e146ca8e12ddabafc4b92551f4630deca547debf6043cddeef786ccf535dd53de28dde71bf5c1c59160ef83ea4088db\",\"name\":\"colorette\",\"version\":\"2.0.20\"},\"combined-stream-1.0.8.tgz\":{\"integrity\":\"FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1503783117ee25e1dfedc05b04c2455e12920eafb690002b06599106f72f144e410751d9297b5214048385d973f73398c3187c943767be630e7bffb971da0476\",\"name\":\"combined-stream\",\"version\":\"1.0.8\"},\"commander-11.1.0.tgz\":{\"integrity\":\"yPVavfyCcRhmorC7rWlkHn15b4wDVgVmBA7kV4QVBsF7kv/9TKJAbAXVTxvTnwP8HHKjRCJDClKbciiYS7p0DQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c8f55abdfc82711866a2b0bbad69641e7d796f8c03560566040ee457841506c17b92fffd4ca2406c05d54f1bd39f03fc1c72a34422430a529b7228984bba740d\",\"name\":\"commander\",\"version\":\"11.1.0\"},\"commander-12.1.0.tgz\":{\"integrity\":\"Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"570f2a1caddb64cf72fcfd74bb75626fca3f0dd92f0363ad3ed66f0fcef540a8f2ef85a3d5648a1482cc3d13d27544b1e5114ad5aae527312d0383e41609dbb8\",\"name\":\"commander\",\"version\":\"12.1.0\"},\"commander-14.0.3.tgz\":{\"integrity\":\"H+y0Jo/T1RZ9qPP4Eh1pkcQcLRglraJaSLoyOtHxu6AapkjWVCy2Sit1QQ4x3Dng8qDlSsZEet7g5Pq06MvTgw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1fecb4268fd3d5167da8f3f8121d6991c41c2d1825ada25a48ba323ad1f1bba01aa648d6542cb64a2b75410e31dc39e0f2a0e54ac6447adee0e4fab4e8cbd383\",\"name\":\"commander\",\"version\":\"14.0.3\"},\"commander-5.1.0.tgz\":{\"integrity\":\"P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3f40b2b0d0d0eebb55c3840842d9be311c55ebabca152be5b10bc6617656477a855348e530a1d9659830f1efbc0d26a1e140ca32a9e49d10d0cfec6e41743f66\",\"name\":\"commander\",\"version\":\"5.1.0\"},\"commander-9.5.0.tgz\":{\"integrity\":\"KRs7WVDKg86PWiuAqhDrAQnTXZKraVcCc6vFdL14qrZ/DcWwuRo7VoiYXalXO7S5GKpqYiVEwCbgFDfxNHKJBQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"291b3b5950ca83ce8f5a2b80aa10eb0109d35d92ab69570273abc574bd78aab67f0dc5b0b91a3b5688985da9573bb4b918aa6a622544c026e01437f134728905\",\"name\":\"commander\",\"version\":\"9.5.0\"},\"compare-version-0.1.2.tgz\":{\"integrity\":\"pJDh5/4wrEnXX/VWRZvruAGHkzKdr46z11OlTPN+VrATlWWhSKewNCJ1futCO5C7eJB3nPMFZA1LeYtcFboZ2A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a490e1e7fe30ac49d75ff556459bebb8018793329daf8eb3d753a54cf37e56b0139565a148a7b03422757eeb423b90bb7890779cf305640d4b798b5c15ba19d8\",\"name\":\"compare-version\",\"version\":\"0.1.2\"},\"concat-map-0.0.1.tgz\":{\"integrity\":\"/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"fd2aefe1db30c903417e8846a73f68e986f71b3dd2ad40ea047e6b4ee84647b6a1b656d82a7571c366c214c4658da03b1171da5d9f30b07768745bdb9212a6aa\",\"name\":\"concat-map\",\"version\":\"0.0.1\"},\"conf-10.2.0.tgz\":{\"integrity\":\"8fLl9F04EJqjSqH+QjITQfJF8BrOVaYr1jewVgSRAEWePfxT0sku4w2hrGQ60BC/TNLGQ2pgxNlTbWQmMPFvXg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f1f2e5f45d38109aa34aa1fe42321341f245f01ace55a62bd637b056049100459e3dfc53d2c92ee30da1ac643ad010bf4cd2c6436a60c4d9536d642630f16f5e\",\"name\":\"conf\",\"version\":\"10.2.0\"},\"content-disposition-1.1.0.tgz\":{\"integrity\":\"5jRCH9Z/+DRP7rkvY83B+yGIGX96OYdJmzngqnw2SBSxqCFPd0w2km3s5iawpGX8krnwSGmF0FW5Nhr0Hfai3g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e634421fd67ff8344feeb92f63cdc1fb2188197f7a3987499b39e0aa7c364814b1a8214f774c36926dece626b0a465fc92b9f0486985d055b9361af41df6a2de\",\"name\":\"content-disposition\",\"version\":\"1.1.0\"},\"content-disposition-2.0.1.tgz\":{\"integrity\":\"e+H0ZXHSWYrENhQzw1LPuP4oF5MzVKmDU6d3hxlvaPEYLLg62MxtQNPRx4SYSuYJSBUgnQIG4HIN2tEtNv7Dog==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7be1f46571d2598ac4361433c352cfb8fe2817933354a98353a77787196f68f1182cb83ad8cc6d40d3d1c784984ae6094815209d0206e0720ddad12d36fec3a2\",\"name\":\"content-disposition\",\"version\":\"2.0.1\"},\"content-type-1.0.5.tgz\":{\"integrity\":\"nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9d38ea7dc045122a4a7570afe180d05827e670b64a9bcd65745d29028a53bf2ac51956dc47a3ff54001de46ecdfb4b53afc42a894d2d15a743e852b836d27038\",\"name\":\"content-type\",\"version\":\"1.0.5\"},\"content-type-2.1.0.tgz\":{\"integrity\":\"mj7UPXE0jaqaOsukNZRUEfEi2AcL7C/vwmwcHV0O97eO1E1pxBZuyjlZrx5seTaNBg1U6+o35wpa35Qfcc+7ag==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9a3ed43d71348daa9a3acba435945411f122d8070bec2fefc26c1c1d5d0ef7b78ed44d69c4166eca3959af1e6c79368d060d54ebea37e70a5adf941f71cfbb6a\",\"name\":\"content-type\",\"version\":\"2.1.0\"},\"convert-source-map-2.0.0.tgz\":{\"integrity\":\"Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2afa78e7d1eb576144275080b22d4abbe318de46ac1f5f53172913cf6c5698c7aae9b936354dd75ef7c9f90eb59b4c64b56c2dfb51d261fdc966c4e6b3769126\",\"name\":\"convert-source-map\",\"version\":\"2.0.0\"},\"cookie-0.7.2.tgz\":{\"integrity\":\"yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ca48b95e72ae7fbe74979d2e193965b7a90a20b6389d0d5e34841ab685c40726797568272aa6e7aa64eb044e41e0dee5acc24a436cad58c8933b6a34bfa130ff\",\"name\":\"cookie\",\"version\":\"0.7.2\"},\"cookie-1.1.1.tgz\":{\"integrity\":\"ei8Aos7ja0weRpFzJnEA9UHJ/7XQmqglbRwnf2ATjcB9Wq874VKH9kfjjirM6UhU2/E5fFYadylyhFldcqSidQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7a2f00a2cee36b4c1e469173267100f541c9ffb5d09aa8256d1c277f60138dc07d5aaf3be15287f647e38e2acce94854dbf1397c561a77297284595d72a4a275\",\"name\":\"cookie\",\"version\":\"1.1.1\"},\"cookie-es-3.1.1.tgz\":{\"integrity\":\"UaXxwISYJPTr9hwQxMFYZ7kNhSXboMXP+Z3TRX6f1/NyaGPfuNUZOWP1pUEb75B2HjfklIYLVRfWiFZJyC6Npg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"51a5f1c0849824f4ebf61c10c4c15867b90d8525dba0c5cff99dd3457e9fd7f3726863dfb8d5193963f5a5411bef90761e37e494860b5517d6885649c82e8da6\",\"name\":\"cookie-es\",\"version\":\"3.1.1\"},\"cookie-signature-1.2.2.tgz\":{\"integrity\":\"D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0fbeae53bdee9525eb0f5517178284d93331555c21b270a07c0c9383d93c3fa2866639572ab38b7b874940a2370718b9c237ac6681572561253560633d931b86\",\"name\":\"cookie-signature\",\"version\":\"1.2.2\"},\"core-util-is-1.0.3.tgz\":{\"integrity\":\"ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"65006f8b50dca49e060ea6a78ee719d878f7c043b9a590d2f3d0566e472bbddc64b09a2bc140c365a997f65745929f5ac369660432e090e6c40380d6349f4561\",\"name\":\"core-util-is\",\"version\":\"1.0.3\"},\"cors-2.8.6.tgz\":{\"integrity\":\"tJtZBBHA6vjIAaF6EnIaq6laBBP9aq/Y3ouVJjEfoHbRBcHBAHYcMh/w8LDrk2PvIMMq8gmopa5D4V8RmbrxGw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b49b590411c0eaf8c801a17a12721aaba95a0413fd6aafd8de8b9526311fa076d105c1c100761c321ff0f0b0eb9363ef20c32af209a8a5ae43e15f1199baf11b\",\"name\":\"cors\",\"version\":\"2.8.6\"},\"cosmiconfig-9.0.2.tgz\":{\"integrity\":\"gtTZxTDau1wL7Y7zifc2dd8jHSK/k6BTx/2Xp/BpdlAdnlYWFVt7qhJqgwi7637yRwRQ3qL4ZidbB4I8tA5VOg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"82d4d9c530dabb5c0bed8ef389f73675df231d22bf93a053c7fd97a7f06976501d9e5616155b7baa126a8308bbeb7ef2470450dea2f866275b07823cb40e553a\",\"name\":\"cosmiconfig\",\"version\":\"9.0.2\"},\"cross-dirname-0.1.0.tgz\":{\"integrity\":\"+R08/oI0nl3vfPcqftZRpytksBXDzOUveBq/NBVx0sUp1axwzPQrKinNx5yd5sxPu8j1wIy8AfnVQ+5eFdha6Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f91d3cfe82349e5def7cf72a7ed651a72b64b015c3cce52f781abf341571d2c529d5ac70ccf42b2a29cdc79c9de6cc4fbbc8f5c08cbc01f9d543ee5e15d85ae9\",\"name\":\"cross-dirname\",\"version\":\"0.1.0\"},\"cross-fetch-ponyfill-1.0.3.tgz\":{\"integrity\":\"uOBkDhUAGAbx/FEzNKkOfx3w57H8xReBBXoZvUnOKTI0FW0Xvrj3GrYv2iZXUqlffC1LMGfQzhmBM/ke+6eTDA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b8e0640e15001806f1fc513334a90e7f1df0e7b1fcc51781057a19bd49ce293234156d17beb8f71ab62fda265752a95f7c2d4b3067d0ce198133f91efba7930c\",\"name\":\"cross-fetch-ponyfill\",\"version\":\"1.0.3\"},\"cross-spawn-7.0.6.tgz\":{\"integrity\":\"uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b95d903963f69d6ceccb668ca7c69189b862f5d9731791e0879487681f4e893184c834e2249cb1d2ecb9d505ddc966ed00736e6b85c9cd429c6b73b3294777bc\",\"name\":\"cross-spawn\",\"version\":\"7.0.6\"},\"css-tree-3.2.1.tgz\":{\"integrity\":\"X7sjQzceUhu1u7Y/ylrRZFU2FS6LRiFVp6rKLPg23y3x3c3DOKAwuXGDp+PAGjh6CSnCjYeAul8pcT8bAl+lSA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5fbb2343371e521bb5bbb63fca5ad1645536152e8b462155a7aaca2cf836df2df1ddcdc338a030b97183a7e3c01a387a0929c28d8780ba5f29713f1b025fa548\",\"name\":\"css-tree\",\"version\":\"3.2.1\"},\"css.escape-1.5.1.tgz\":{\"integrity\":\"YUifsXXuknHlUsmlgyY0PKzgPOr7/FjCePfHNt0jxm83wHZi44VDMQ7/fGNkjY3/jV1MC+1CmZbaHzugyeRtpg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"61489fb175ee9271e552c9a58326343cace03ceafbfc58c278f7c736dd23c66f37c07662e38543310eff7c63648d8dff8d5d4c0bed429996da1f3ba0c9e46da6\",\"name\":\"css.escape\",\"version\":\"1.5.1\"},\"cssesc-3.0.0.tgz\":{\"integrity\":\"/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"fd36ff25c8cad75d67352706a1be4c36db27b4d3356823540e2a41fd39306458720ebac4e3b48ec7fd7cc05d9b6e381cdd9cc248a5b54f99ede446c5a00cff56\",\"name\":\"cssesc\",\"version\":\"3.0.0\"},\"csstype-3.2.3.tgz\":{\"integrity\":\"z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"cf51c629c632db103c00641fc2b9f43c0cbe3c1ed7fc64a3dd45495bda8aca7e37c566be825e675e6538aaa2cc4735952c50bc2aeb145fc4ffd240a2398a4021\",\"name\":\"csstype\",\"version\":\"3.2.3\"},\"d3-array-3.2.4.tgz\":{\"integrity\":\"tdQAmyA18i4J7wprpYq8ClcxZy3SC31QMeByyCFyRt7BVHdREQZ5lpzoe5mFEYZUWe+oq8HBvk9JjpibyEV4Jg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b5d4009b2035f22e09ef0a6ba58abc0a5731672dd20b7d5031e072c8217246dec1547751110679969ce87b998511865459efa8abc1c1be4f498e989bc8457826\",\"name\":\"d3-array\",\"version\":\"3.2.4\"},\"d3-color-3.1.0.tgz\":{\"integrity\":\"zg/chbXyeBtMQ1LbD/WSoW2DpC3I0mpmPdW+ynRTj/x2DAWYrIY7qeZIHidozwV24m4iavr15lNwIwLxRmOxhA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ce0fdc85b5f2781b4c4352db0ff592a16d83a42dc8d26a663dd5beca74538ffc760c0598ac863ba9e6481e2768cf0576e26e226afaf5e653702302f14663b184\",\"name\":\"d3-color\",\"version\":\"3.1.0\"},\"d3-dispatch-3.0.1.tgz\":{\"integrity\":\"rzUyPU/S7rwUflMyLc1ETDeBj0NRuHKKAcvukozwhshr6g6c5d8zh4c2gQjY2bZ0dXeGLWc1PF174P2tVvKhfg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"af35323d4fd2eebc147e53322dcd444c37818f4351b8728a01cbee928cf086c86bea0e9ce5df338787368108d8d9b6747577862d67353c5d7be0fdad56f2a17e\",\"name\":\"d3-dispatch\",\"version\":\"3.0.1\"},\"d3-drag-3.0.0.tgz\":{\"integrity\":\"pWbUJLdETVA8lQNJecMxoXfH6x+mO2UQo8rSmZ+QqxcbyA3hfeprFgIT//HW2nlHChWeIIMwS2Fq+gEARkhTkg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a566d424b7444d503c95034979c331a177c7eb1fa63b6510a3cad2999f90ab171bc80de17dea6b160213fff1d6da79470a159e2083304b616afa010046485392\",\"name\":\"d3-drag\",\"version\":\"3.0.0\"},\"d3-ease-3.0.1.tgz\":{\"integrity\":\"wR/XK3D3XcLIZwpbvQwQ5fK+8Ykds1ip7A2Txe0yxncXSdq1L9skcG7blcedkOX+ZcgxGAmLX1FrRGbADwzi0w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c11fd72b70f75dc2c8670a5bbd0c10e5f2bef1891db358a9ec0d93c5ed32c6771749dab52fdb24706edb95c79d90e5fe65c83118098b5f516b4466c00f0ce2d3\",\"name\":\"d3-ease\",\"version\":\"3.0.1\"},\"d3-format-3.1.2.tgz\":{\"integrity\":\"AJDdYOdnyRDV5b6ArilzCPPwc1ejkHcoyFarqlPqT7zRYjhavcT3uSrqcMvsgh2CgoPbK3RCwyHaVyxYcP2Arg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0090dd60e767c910d5e5be80ae297308f3f07357a3907728c856abaa53ea4fbcd162385abdc4f7b92aea70cbec821d828283db2b7442c321da572c5870fd80ae\",\"name\":\"d3-format\",\"version\":\"3.1.2\"},\"d3-interpolate-3.0.1.tgz\":{\"integrity\":\"3bYs1rOD33uo8aqJfKP3JWPAibgw8Zm2+L9vBKEHJ2Rg+viTR7o5Mmv5mZcieN+FRYaAOWX5SJATX6k1PWz72g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ddb62cd6b383df7ba8f1aa897ca3f72563c089b830f199b6f8bf6f04a107276460faf89347ba39326bf999972278df854586803965f94890135fa9353d6cfbda\",\"name\":\"d3-interpolate\",\"version\":\"3.0.1\"},\"d3-path-3.1.0.tgz\":{\"integrity\":\"p3KP5HCf/bvjBSSKuXid6Zqijx7wIfNW+J/maPs+iwR35at5JCbLUT0LzF1cnjbCHWhqzQTIN2Jpe8pRebIEFQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a7728fe4709ffdbbe305248ab9789de99aa28f1ef021f356f89fe668fb3e8b0477e5ab792426cb513d0bcc5d5c9e36c21d686acd04c83762697bca5179b20415\",\"name\":\"d3-path\",\"version\":\"3.1.0\"},\"d3-scale-4.0.2.tgz\":{\"integrity\":\"GZW464g1SH7ag3Y7hXjf8RoUuAFIqklOAq3MRl4OaWabTFJY9PN/E1YklhXLh+OQ3fM9yS2nOkCoS+WLZ6kvxQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1995b8eb8835487eda83763b8578dff11a14b80148aa494e02adcc465e0e69669b4c5258f4f37f1356249615cb87e390ddf33dc92da73a40a84be58b67a92fc5\",\"name\":\"d3-scale\",\"version\":\"4.0.2\"},\"d3-selection-3.0.0.tgz\":{\"integrity\":\"fmTRWbNMmsmWq6xJV8D19U/gw/bwrHfNXxrIN+HfZgnzqTHp9jOmKMhsTUjXOJnZOdZY9Q28y4yebKzqDKlxlQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7e64d159b34c9ac996abac4957c0f5f54fe0c3f6f0ac77cd5f1ac837e1df6609f3a931e9f633a628c86c4d48d73899d939d658f50dbccb8c9e6cacea0ca97195\",\"name\":\"d3-selection\",\"version\":\"3.0.0\"},\"d3-shape-3.2.0.tgz\":{\"integrity\":\"SaLBuwGm3MOViRq2ABk3eLoxwZELpH6zhl3FbAoJ7Vm1gofKx6El1Ib5z23NUEhF9AsGl7y+dzLe5Cw2AArGTA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"49a2c1bb01a6dcc395891ab600193778ba31c1910ba47eb3865dc56c0a09ed59b58287cac7a125d486f9cf6dcd504845f40b0697bcbe7732dee42c36000ac64c\",\"name\":\"d3-shape\",\"version\":\"3.2.0\"},\"d3-time-3.1.0.tgz\":{\"integrity\":\"VqKjzBLejbSMT4IgbmVgDjpkYrNWUYJnbCGo874u7MMKIWsILRX+OpX/gTk8MqjpT1A/c6HY2dCA77ZN0lkQ2Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"56a2a3cc12de8db48c4f82206e65600e3a6462b3565182676c21a8f3be2eecc30a216b082d15fe3a95ff81393c32a8e94f503f73a1d8d9d080efb64dd25910d9\",\"name\":\"d3-time\",\"version\":\"3.1.0\"},\"d3-time-format-4.1.0.tgz\":{\"integrity\":\"dJxPBlzC7NugB2PDLwo9Q8JiTR3M3e4/XANkreKSUxF8vvXKqm1Yfq4Q5dl8budlunRVlUUaDUgFt7eA8D6NLg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"749c4f065cc2ecdba00763c32f0a3d43c2624d1dccddee3f5c0364ade29253117cbef5caaa6d587eae10e5d97c6ee765ba745595451a0d4805b7b780f03e8d2e\",\"name\":\"d3-time-format\",\"version\":\"4.1.0\"},\"d3-timer-3.0.1.tgz\":{\"integrity\":\"ndfJ/JxxMd3nw31uyKoY2naivF+r29V+Lc0svZxe1JvvIRmi8hUsrMvdOwgS1o6uBHmiz91geQ0ylPP0aj1VUA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9dd7c9fc9c7131dde7c37d6ec8aa18da76a2bc5fabdbd57e2dcd2cbd9c5ed49bef2119a2f2152caccbdd3b0812d68eae0479a2cfdd60790d3294f3f46a3d5550\",\"name\":\"d3-timer\",\"version\":\"3.0.1\"},\"d3-transition-3.0.1.tgz\":{\"integrity\":\"ApKvfjsSR6tg06xrL434C0WydLr7JewBB3V+/39RMHsaXTOG0zmt/OAXeng5M5LBm0ojmxJrpomQVZ1aPvBL4w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0292af7e3b1247ab60d3ac6b2f8df80b45b274bafb25ec0107757eff7f51307b1a5d3386d339adfce0177a78393392c19b4a239b126ba68990559d5a3ef04be3\",\"name\":\"d3-transition\",\"version\":\"3.0.1\"},\"d3-zoom-3.0.0.tgz\":{\"integrity\":\"b8AmV3kfQaqWAuacbPuNbL6vahnOJflOhexLzMMNLga62+/nh0JzvJ0aO/5a5MVgUFGS7Hu1P9P03o3fJkDCyw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6fc02657791f41aa9602e69c6cfb8d6cbeaf6a19ce25f94e85ec4bccc30d2e06badbefe7874273bc9d1a3bfe5ae4c560505192ec7bb53fd3f4de8ddf2640c2cb\",\"name\":\"d3-zoom\",\"version\":\"3.0.0\"},\"data-uri-to-buffer-4.0.1.tgz\":{\"integrity\":\"0R9ikRb668HB7QDxT1vkpuUBtqc53YyAwMwGeUFKRojY/NWKvdZ+9UYtRfGmhqNbRkTSVpMbmyhXipFFv2cb/A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d11f629116faebc1c1ed00f14f5be4a6e501b6a739dd8c80c0cc0679414a4688d8fcd58abdd67ef5462d45f1a686a35b4644d256931b9b28578a9145bf671bfc\",\"name\":\"data-uri-to-buffer\",\"version\":\"4.0.1\"},\"data-urls-7.0.0.tgz\":{\"integrity\":\"23XHcCF+coGYevirZceTVD7NdJOqVn+49IHyxgszm+JIiHLoB2TkmPtsYkNWT1pvRSGkc35L6NHs0yHkN2SumA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"db75c770217e7281987af8ab65c793543ecd7493aa567fb8f481f2c60b339be2488872e80764e498fb6c6243564f5a6f4521a4737e4be8d1ecd321e43764ae98\",\"name\":\"data-urls\",\"version\":\"7.0.0\"},\"dateformat-4.6.3.tgz\":{\"integrity\":\"2P0p0pFGzHS5EMnhdxQi7aJN+iMheud0UhG4dlE1DLAlvL8JHjJJTX/CSm4JXwV0Ka5nGk3zC5mcb5bUQUxxMA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d8fd29d29146cc74b910c9e1771422eda24dfa23217ae7745211b87651350cb025bcbf091e32494d7fc24a6e095f057429ae671a4df30b999c6f96d4414c7130\",\"name\":\"dateformat\",\"version\":\"4.6.3\"},\"debounce-fn-4.0.0.tgz\":{\"integrity\":\"8pYCQiL9Xdcg0UPSD3d+0KMlOjp+KGU5EPwYddgzQ7DATsg4fuUDjQtsYLmWjnk2obnNHgV3vE2Y4jejSOJVBQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f296024222fd5dd720d143d20f777ed0a3253a3a7e28653910fc1875d83343b0c04ec8387ee5038d0b6c60b9968e7936a1b9cd1e0577bc4d98e237a348e25505\",\"name\":\"debounce-fn\",\"version\":\"4.0.0\"},\"debug-4.4.3.tgz\":{\"integrity\":\"RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"446c305a7c10be455f6af295b76d8518bc3ec5849dcc04709b4aeee83853540dee994e6165cdbc57790ee2cb6062bcab4e52e9baf808f468a28e5b408cd6dca8\",\"name\":\"debug\",\"version\":\"4.4.3\"},\"decimal.js-10.6.0.tgz\":{\"integrity\":\"YpgQiITW3JXGntzdUmyUR1V812Hn8T1YVXhCu+wO3OpS4eU9l4YdD3qjyiKdV6mvV29zapkMeD390UVEf2lkUg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6298108884d6dc95c69edcdd526c9447557cd761e7f13d58557842bbec0edcea52e1e53d97861d0f7aa3ca229d57a9af576f736a990c783dfdd145447f696452\",\"name\":\"decimal.js\",\"version\":\"10.6.0\"},\"decimal.js-light-2.5.1.tgz\":{\"integrity\":\"qIMFpTMZmny+MMIitAB6D7iVPEorVw6YQRWkvarTkT4tBeSLLiHzcwj6q0MmYSFCiVpiqPJTJEYIrpcPzVEIvg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a88305a533199a7cbe30c222b4007a0fb8953c4a2b570e984115a4bdaad3913e2d05e48b2e21f37308faab4326612142895a62a8f253244608ae970fcd5108be\",\"name\":\"decimal.js-light\",\"version\":\"2.5.1\"},\"decompress-response-6.0.0.tgz\":{\"integrity\":\"aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"696df9c9933a05bff8a099599dc307d8b0a866d2574d1c444b5eef137868462a305369161da24a1644810e70d1f9c9bd27ef5085799113221fbf4a638bd7a309\",\"name\":\"decompress-response\",\"version\":\"6.0.0\"},\"dedent-1.7.2.tgz\":{\"integrity\":\"WzMx3mW98SN+zn3hgemf4OzdmyNhhhKz5Ay0pUfQiMQ3e1g+xmTJWp/pKdwKVXhdSkAEGIIzqeuWrL3mV/AXbA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5b3331de65bdf1237ece7de181e99fe0ecdd9b23618612b3e40cb4a547d088c4377b583ec664c95a9fe929dc0a55785d4a4004188233a9eb96acbde657f0176c\",\"name\":\"dedent\",\"version\":\"1.7.2\"},\"deepmerge-4.3.1.tgz\":{\"integrity\":\"3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"dec52a6cc11cefb5eaa5d34eec547246883e796de987e19809b8feacafae63244cbb0b15cb4acc895b4f9fe40994a16f58fff53d8a5aa6a627d0c7b6927167f8\",\"name\":\"deepmerge\",\"version\":\"4.3.1\"},\"default-browser-5.5.1.tgz\":{\"integrity\":\"m1pAzaJgZ/gssEqlOhJkPJp8Xly7QyW6xcrkUa2KKcDeDSEMP7X8xipU3snUcfisTQx0w1AGae+9UtJSfVnXGw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9b5a40cda26067f82cb04aa53a12643c9a7c5e5cbb4325bac5cae451ad8a29c0de0d210c3fb5fcc62a54dec9d471f8ac4d0c74c3500669efbd52d2527d59d71b\",\"name\":\"default-browser\",\"version\":\"5.5.1\"},\"default-browser-id-5.0.1.tgz\":{\"integrity\":\"x1VCxdX4t+8wVfd1so/9w+vQ4vx7lKd2Qp5tDRutErwmR85OgmfX7RlLRMWafRMY7hbEiXIbudNrjOAPa/hL8Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c75542c5d5f8b7ef3055f775b28ffdc3ebd0e2fc7b94a776429e6d0d1bad12bc2647ce4e8267d7ed194b44c59a7d1318ee16c489721bb9d36b8ce00f6bf84bf1\",\"name\":\"default-browser-id\",\"version\":\"5.0.1\"},\"defer-to-connect-2.0.1.tgz\":{\"integrity\":\"4tvttepXG1VaYGrRibk5EwJd1t4udunSOVMdLSAL6mId1ix438oPwPZMALY41FCijukO1L0twNcGsdzS7dHgDg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e2dbedb5ea571b555a606ad189b93913025dd6de2e76e9d239531d2d200bea621dd62c78dfca0fc0f64c00b638d450a28ee90ed4bd2dc0d706b1dcd2edd1e00e\",\"name\":\"defer-to-connect\",\"version\":\"2.0.1\"},\"define-data-property-1.1.4.tgz\":{\"integrity\":\"rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ac132f23396903cbfa13e489668a3ef87018aac2eb920ecc49f2229cc3c5866928af0ed7f9d39754942cf904faf731a4cccc9f0e720c3765a2775f8d6cbdd3f8\",\"name\":\"define-data-property\",\"version\":\"1.1.4\"},\"define-lazy-prop-2.0.0.tgz\":{\"integrity\":\"Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0ecd3da8d87ccb0de48528e22638942276865fdc65a990d8ec956bc86c5dc55ecd3debaa41fa653a943aeb224566eb778cb6b9ccec245f0d60f44236b8a8783a\",\"name\":\"define-lazy-prop\",\"version\":\"2.0.0\"},\"define-lazy-prop-3.0.0.tgz\":{\"integrity\":\"N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"37e31e5d8a2aaf7a4e827f317f244f44437b8076a42d88e1b07856193ddf58088be08900b74883c35e108a2126d9b137d1ce575f9ab416d000dc22b97fdfc152\",\"name\":\"define-lazy-prop\",\"version\":\"3.0.0\"},\"define-properties-1.2.1.tgz\":{\"integrity\":\"8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f109902aa10048b7799f1d14d41d6890b1256d4baeb6d27f0276264576db6c60d687ab92db4f048c3e17aaafc8f702bbbb4bfa3b4f178535a7b795ed11b47a0e\",\"name\":\"define-properties\",\"version\":\"1.2.1\"},\"delayed-stream-1.0.0.tgz\":{\"integrity\":\"ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"672483ecd7fdd5a2c1d11c4be0a1ab28705797b11db350c098475ca156b05e72c3ed20e1a4d82db88236680920edaed04b8d63c4f499d7ba7855d1a730793731\",\"name\":\"delayed-stream\",\"version\":\"1.0.0\"},\"depd-2.0.0.tgz\":{\"integrity\":\"g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"83b9c7e8fe9dc838a8268800006a6b1a90ad5489898693e4feba02cdd6f77c887ad7fb3f9cfb1f47aa27c8cc2408047f3a50b7c810b49444af52840402cb08af\",\"name\":\"depd\",\"version\":\"2.0.0\"},\"dequal-2.0.3.tgz\":{\"integrity\":\"0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d237bea8f28710ca21bdf453084a370ab3c6e9c033018826ccacb1462612483912e9e1897725499bb59a600e4409a003f702c1d93e0411eca603968555c61708\",\"name\":\"dequal\",\"version\":\"2.0.3\"},\"detect-libc-2.1.2.tgz\":{\"integrity\":\"Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"06d8f604e38ef37a375b21f9f5ef0c817b3111055c6ab9143a9118aee6c1d2eaf09cdd74c90dfae2bb22072535d67665a966199b4e62fe87fb8a8e26ce2841b5\",\"name\":\"detect-libc\",\"version\":\"2.1.2\"},\"detect-node-2.1.0.tgz\":{\"integrity\":\"T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4f4348b90a674ef14301336e1cde6ba0fc12046f37ac5b2e3be3175c7f7fdcdd5e15b9f8c1c3e3b6dbe330b10f589d11194620404edc1a04b7b4dc5ba8218cee\",\"name\":\"detect-node\",\"version\":\"2.1.0\"},\"detect-node-es-1.1.0.tgz\":{\"integrity\":\"ypdmJU/TbBby2Dxibuv7ZLW3Bs1QEmM7nHjEANfohJLvE0XVujisn1qPJcZxg+qDucsr+bP6fLD1rPS3AhJ7EQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ca9766254fd36c16f2d83c626eebfb64b5b706cd5012633b9c78c400d7e88492ef1345d5ba38ac9f5a8f25c67183ea83b9cb2bf9b3fa7cb0f5acf4b702127b11\",\"name\":\"detect-node-es\",\"version\":\"1.1.0\"},\"diff-8.0.4.tgz\":{\"integrity\":\"DPi0FmjiSU5EvQV0++GFDOJ9ASQUVFh5kD+OzOnYdi7n3Wpm9hWWGfB/O2blfHcMVTL5WkQXSnRiK9makhrcnw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0cf8b41668e2494e44bd0574fbe1850ce27d012414545879903f8ecce9d8762ee7dd6a66f6159619f07f3b66e57c770c5532f95a44174a74622bd99a921adc9f\",\"name\":\"diff\",\"version\":\"8.0.4\"},\"dir-compare-4.2.0.tgz\":{\"integrity\":\"2xMCmOoMrdQIPHdsTawECdNPwlVFB9zGcz3kuhmBO6U3oU+UQjsue0i8ayLKpgBcm+hcXPMVSGUN9d+pvJ6+VQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"db130298ea0cadd4083c776c4dac0409d34fc2554507dcc6733de4ba19813ba537a14f94423b2e7b48bc6b22caa6005c9be85c5cf31548650df5dfa9bc9ebe55\",\"name\":\"dir-compare\",\"version\":\"4.2.0\"},\"dmg-builder-26.15.7.tgz\":{\"integrity\":\"rfo1YyAWO0L3cZLKCqKQiLYbW6ZXebRUfK0kWp4oXxO7dDFLrf7alRkWImNuXvZVQhs6Idzy++cwOk8I+xPDhw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"adfa356320163b42f77192ca0aa29088b61b5ba65779b4547cad245a9e285f13bb74314badfeda95191622636e5ef655421b3a21dcf2fbe7303a4f08fb13c387\",\"name\":\"dmg-builder\",\"version\":\"26.15.7\"},\"dom-accessibility-api-0.5.16.tgz\":{\"integrity\":\"X7BJ2yElsnOJ30pZF4uIIDfBEVgF4XEBxL9Bxhy6dnrm5hkzqmsWHGTiHqRiITNhMyFLyAiWndIJP7Z1NTteDg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5fb049db2125b27389df4a59178b882037c1115805e17101c4bf41c61cba767ae6e61933aa6b161c64e21ea46221336133214bc808969dd2093fb675353b5e0e\",\"name\":\"dom-accessibility-api\",\"version\":\"0.5.16\"},\"dom-accessibility-api-0.6.3.tgz\":{\"integrity\":\"7ZgogeTnjuHbo+ct10G9Ffp0mif17idi0IyWNVA/wcwcm7NPOD/WEHVP3n7n3MhXqxoIYm8d6MuZohYWIZ4T3w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ed982881e4e78ee1dba3e72dd741bd15fa749a27f5ee2762d08c9635503fc1cc1c9bb34f383fd610754fde7ee7dcc857ab1a08626f1de8cb99a21616219e13df\",\"name\":\"dom-accessibility-api\",\"version\":\"0.6.3\"},\"dot-prop-6.0.1.tgz\":{\"integrity\":\"tE7ztYzXHIeyvc7N+hR3oi7FIbf/NIjVP9hmAt3yMXzrQ072/fpjGLx2GxNxGxUl5V73MEqYzioOMoVhGMJ5cA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b44ef3b58cd71c87b2bdcecdfa1477a22ec521b7ff3488d53fd86602ddf2317ceb434ef6fdfa6318bc761b13711b1525e55ef7304a98ce2a0e32856118c27970\",\"name\":\"dot-prop\",\"version\":\"6.0.1\"},\"dotenv-16.6.1.tgz\":{\"integrity\":\"uBq4egWHTcTt33a72vpSG0z3HnPuIl6NqYcTrKEg2azoEyl2hpW0zqlxysq2pK9HlDIHyHyakeYaYnSAwd8bow==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b81ab87a05874dc4eddf76bbdafa521b4cf71e73ee225e8da98713aca120d9ace81329768695b4cea971cacab6a4af47943207c87c9a91e61a627480c1df1ba3\",\"name\":\"dotenv\",\"version\":\"16.6.1\"},\"dotenv-17.4.2.tgz\":{\"integrity\":\"nI4U3TottKAcAD9LLud4Cb7b2QztQMUEfHbvhTH09bqXTxnSie8WnjPALV/WMCrJZ6UV/qHJ6L03OqO3LcdYZw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9c8e14dd3a2db4a01c003f4b2ee77809bedbd90ced40c5047c76ef8531f4f5ba974f19d289ef169e33c02d5fd6302ac967a515fea1c9e8bd373aa3b72dc75867\",\"name\":\"dotenv\",\"version\":\"17.4.2\"},\"dotenv-expand-11.0.7.tgz\":{\"integrity\":\"zIHwmZPRshsCdpMDyVsqGmgyP0yT8GAgXUnkdAoJisxvf33k7yO6OuoKmcTGuXPWSsm8Oh88nZicRLA9Y0rUeA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"cc81f09993d1b21b02769303c95b2a1a68323f4c93f060205d49e4740a098acc6f7f7de4ef23ba3aea0a99c4c6b973d64ac9bc3a1f3c9d989c44b03d634ad478\",\"name\":\"dotenv-expand\",\"version\":\"11.0.7\"},\"dunder-proto-1.0.1.tgz\":{\"integrity\":\"KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"28837f9c3241411717c3430b561644f62407986ebca80548060f42aa65188e64088608a3f54e4c16faea9142f915bb72cb366e39e3add3375e45ee1463b72df8\",\"name\":\"dunder-proto\",\"version\":\"1.0.1\"},\"duplexer2-0.1.4.tgz\":{\"integrity\":\"asLFVfWWtJ90ZyOUHMqk7/S2w2guQKxUI2itj3d92ADHhxUSbCMGi1f1cBcJ7xM1To+pE/Khbwo1yuNbMEPKeA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6ac2c555f596b49f746723941ccaa4eff4b6c3682e40ac542368ad8f777dd800c78715126c23068b57f5701709ef13354e8fa913f2a16f0a35cae35b3043ca78\",\"name\":\"duplexer2\",\"version\":\"0.1.4\"},\"duplexify-4.1.3.tgz\":{\"integrity\":\"M3BmBhwJRZsSx38lZyhE53Csddgzl5R7xGJNk7CVddZD6CcmwMCH8J+7AprIrQKH7TonKxaCjcv27Qmf+sQ+oA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"337066061c09459b12c77f25672844e770ac75d83397947bc4624d93b09575d643e82726c0c087f09fbb029ac8ad0287ed3a272b16828dcbf6ed099ffac43ea0\",\"name\":\"duplexify\",\"version\":\"4.1.3\"},\"ee-first-1.1.1.tgz\":{\"integrity\":\"WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"58cc26f4b851528f9651a44dfaf46e113a86f3d22066985548d91d16079beac4bf1383ab0c837bb78f0201ec121d773a0bc95e7c3f0a29faf9bd8eb56eb425a3\",\"name\":\"ee-first\",\"version\":\"1.1.1\"},\"ejs-3.1.10.tgz\":{\"integrity\":\"UeJmFfOrAQS8OJWPZ4qtgHyWExa088/MtK5UEyoJGFH67cDEXkZSviOiKRCZ4Xij0zxI3JECgYs3oKx+AizQBA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"51e26615f3ab0104bc38958f678aad807c961316b4f3cfccb4ae54132a091851faedc0c45e4652be23a2291099e178a3d33c48dc9102818b37a0ac7e022cd004\",\"name\":\"ejs\",\"version\":\"3.1.10\"},\"electron-43.4.0.tgz\":{\"integrity\":\"3qxGF0CeQbiox5oWV1JlbWGQ1VerbmDhTFqW4sJ8h7uqTHniFYPObXJcDna0DMh32et0fFyKzz0YY8lJv3t5jg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"deac4617409e41b8a8c79a165752656d6190d557ab6e60e14c5a96e2c27c87bbaa4c79e21583ce6d725c0e76b40cc877d9eb747c5c8acf3d1863c949bf7b798e\",\"name\":\"electron\",\"version\":\"43.4.0\"},\"electron-builder-26.15.7.tgz\":{\"integrity\":\"DBpaNzxsPs1BvEblzFoNriSbzsBqDCy/gseIngeEhYzQG1IxfB7Hvc2tBBVmpWE2BTQGP9J1RrAvDT+Vc/uAxg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0c1a5a373c6c3ecd41bc46e5cc5a0dae249bcec06a0c2cbf82c7889e0784858cd01b52317c1ec7bdcdad041566a561360534063fd27546b02f0d3f9573fb80c6\",\"name\":\"electron-builder\",\"version\":\"26.15.7\"},\"electron-builder-squirrel-windows-26.15.7.tgz\":{\"integrity\":\"B4uvn2NzFSuf084udWqugludFull6CRJiWe2dLzMnZLl6G5hdAGk0fsBMGlBSpKjvQCJn8IPc+S7OnJ+GXqwLA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"078baf9f6373152b9fd3ce2e756aae825b9d16e965e824498967b674bccc9d92e5e86e617401a4d1fb013069414a92a3bd00899fc20f73e4bb3a727e197ab02c\",\"name\":\"electron-builder-squirrel-windows\",\"version\":\"26.15.7\"},\"electron-liquid-glass-1.1.1.tgz\":{\"integrity\":\"AfPxcu6RJYxlsW2sjgjDEON0rVOjhh5QYM6ur5hsfILQmfY5ewHCWJZJZoDsQxhjeW1DAhbRbvB79IvgW4ansA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"01f3f172ee91258c65b16dac8e08c310e374ad53a3861e5060ceaeaf986c7c82d099f6397b01c25896496680ec431863796d430216d16ef07bf48be05b86a7b0\",\"name\":\"electron-liquid-glass\",\"version\":\"1.1.1\"},\"electron-publish-26.15.3.tgz\":{\"integrity\":\"g/2bn8YTavY4cuS5F+jOS7zmZbXXBV8KZ8yHKfJjFPoKtzBqrpCdNPxBd3tqdBwP7BVd0lGzf7Bk2s0KesWZ4Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"83fd9b9fc6136af63872e4b917e8ce4bbce665b5d7055f0a67cc8729f26314fa0ab7306aae909d34fc41777b6a741c0fec155dd251b37fb064dacd0a7ac599e1\",\"name\":\"electron-publish\",\"version\":\"26.15.3\"},\"electron-to-chromium-1.5.408.tgz\":{\"integrity\":\"SLoprcYpJ/OH2v2ps0+N5biv9H4/KBT3+YmmDew64TwK5y9j2wv7pMOFY7IorVkyMtEyLSCRlXKLsNlakeAlPw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"48ba29adc62927f387dafda9b34f8de5b8aff47e3f2814f7f989a60dec3ae13c0ae72f63db0bfba4c38563b228ad593232d1322d209195728bb0d95a91e0253f\",\"name\":\"electron-to-chromium\",\"version\":\"1.5.408\"},\"electron-updater-6.8.9.tgz\":{\"integrity\":\"ZhVxM9iGONUpZGI1FxdMRgJjUFXi7AYGVa5PwKlO1tV1/4zDxQmfKpXOHVztKrd6L9rLcFjERvi1Mf2vxyTkig==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"66157133d88638d52964623517174c4602635055e2ec060655ae4fc0a94ed6d575ff8cc3c5099f2a95ce1d5ced2ab77a2fdacb7058c446f8b531fdafc724e48a\",\"name\":\"electron-updater\",\"version\":\"6.8.9\"},\"electron-winstaller-5.4.0.tgz\":{\"integrity\":\"bO3y10YikuUwUuDUQRM4KfwNkKhnpVO7IPdbsrejwN9/AABJzzTQ4GeHwyzNSrVO+tEH3/Np255a3sVZpZDjvg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6cedf2d7462292e53052e0d441133829fc0d90a867a553bb20f75bb2b7a3c0df7f000049cf34d0e06787c32ccd4ab54efad107dff369db9e5adec559a590e3be\",\"name\":\"electron-winstaller\",\"version\":\"5.4.0\"},\"elkjs-0.12.0.tgz\":{\"integrity\":\"YZcKynxVxYoKIOEpywEPwCFdg+BTbxQRNf3pbwdDCvc8O3kQD8bmIwSxKU1eOTVc4Xo+VG9Te+575mlfvOrhEQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"61970aca7c55c58a0a20e129cb010fc0215d83e0536f141135fde96f07430af73c3b79100fc6e62304b1294d5e39355ce17a3e546f537bee7be6695fbceae111\",\"name\":\"elkjs\",\"version\":\"0.12.0\"},\"emoji-regex-10.6.0.tgz\":{\"integrity\":\"toUI84YS5YmxW219erniWD0CIVOo46xGKColeNQRgOzDorgBi1v4D71/OFzgD9GO2UGKIv1C3Sp8DAn0+j5w7A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b68508f38612e589b15b6d7d7ab9e2583d022153a8e3ac46282a2578d41180ecc3a2b8018b5bf80fbd7f385ce00fd18ed9418a22fd42dd2a7c0c09f4fa3e70ec\",\"name\":\"emoji-regex\",\"version\":\"10.6.0\"},\"emoji-regex-8.0.0.tgz\":{\"integrity\":\"MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3128d8cdc58d380d1ec001e9cf4331a5816fc20eb28f2d4d1b7c6d7a8ab3eb8e150a8fd13e09ebd7f186b7e89cde2253cd0f04bb74dd335e126b09d5526184e8\",\"name\":\"emoji-regex\",\"version\":\"8.0.0\"},\"encodeurl-2.0.0.tgz\":{\"integrity\":\"Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4349fd1d18b89ba26e188575785966bc907b644571bbddc8accca232c182d25acc24c5b3460c7a586aaec9f4206556f7d6f8468179df98f34d5e6c673a4441ae\",\"name\":\"encodeurl\",\"version\":\"2.0.0\"},\"end-of-stream-1.4.5.tgz\":{\"integrity\":\"ooEGc6HP26xXq/N+GCGOT0JKCLDGrq2bQUZrQ7gyrJiZANJ/8YDTxTpQBXGMn+WbIQXNVpyWymm7KYVICQnyOg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a2810673a1cfdbac57abf37e18218e4f424a08b0c6aead9b41466b43b832ac989900d27ff180d3c53a5005718c9fe59b2105cd569c96ca69bb2985480909f23a\",\"name\":\"end-of-stream\",\"version\":\"1.4.5\"},\"enhanced-resolve-5.24.5.tgz\":{\"integrity\":\"L1l8TNvomm6UVW5B253AGxQagSQr+vGwhMlrrfRS2qmhx46AMpMVJKQYLvWYbysTMY8VoicOvzHzoHMbyzB+4A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2f597c4cdbe89a6e94556e41db9dc01b141a81242bfaf1b084c96badf452daa9a1c78e8032931524a4182ef5986f2b13318f15a2270ebf31f3a0731bcb307ee0\",\"name\":\"enhanced-resolve\",\"version\":\"5.24.5\"},\"enquirer-2.4.1.tgz\":{\"integrity\":\"rRqJg/6gd538VHvR3PSrdRBb/1Vy2YfzHqzvbhGIQpDRKIa4FgV/54b5Q1xYSxOOwKvjXweS26E0Q+nAMwp2pQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ad1a8983fea0779dfc547bd1dcf4ab75105bff5572d987f31eacef6e11884290d12886b816057fe786f9435c584b138ec0abe35f0792dba13443e9c0330a76a5\",\"name\":\"enquirer\",\"version\":\"2.4.1\"},\"entities-8.0.0.tgz\":{\"integrity\":\"zwfzJecQ/Uej6tusMqwAqU/6KL2XaB2VZ2Jg54Je6ahNBGNH6Ek6g3jjNCF0fG9EWQKGZNddNjU5F1ZQn/sBnA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"cf07f325e710fd47a3eadbac32ac00a94ffa28bd97681d95676260e7825ee9a84d046347e8493a8378e33421747c6f4459028664d75d3635391756509ffb019c\",\"name\":\"entities\",\"version\":\"8.0.0\"},\"env-paths-2.2.1.tgz\":{\"integrity\":\"+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"fa1d6590b2a164c4d88e8835544a49346ecd64959cb9cd830e4feab2a49345108e5e22e3790d5dd7fb9dad41a1a8cc5480097028d67471fdaea9a9f918bb92d8\",\"name\":\"env-paths\",\"version\":\"2.2.1\"},\"env-paths-3.0.0.tgz\":{\"integrity\":\"dtJUTepzMW3Lm/NPxRf3wP4642UWhjL2sQxc+ym2YMj1m/H2zDNQOlezafzkHwn6sMstjHTwG6iQQsctDW/b1A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"76d2544dea73316dcb9bf34fc517f7c0fe3ae365168632f6b10c5cfb29b660c8f59bf1f6cc33503a57b369fce41f09fab0cb2d8c74f01ba89042c72d0d6fdbd4\",\"name\":\"env-paths\",\"version\":\"3.0.0\"},\"err-code-2.0.3.tgz\":{\"integrity\":\"2bmlRpNKBxT/CRmPOlyISQpNj+qSeYvcym/uT0Jx2bMOlKLtSy1ZmLuVxSEKKyor/N5yhvp/ZiG1oE3DEYMSFA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d9b9a546934a0714ff09198f3a5c88490a4d8fea92798bdcca6fee4f4271d9b30e94a2ed4b2d5998bb95c5210a2b2a2bfcde7286fa7f6621b5a04dc311831214\",\"name\":\"err-code\",\"version\":\"2.0.3\"},\"error-ex-1.3.4.tgz\":{\"integrity\":\"sqQamAnR14VgCr1A618A3sGrygcpK+HEbenA/HiEAkkUwcZIIB/tgWqHFxWgOyDh4nB4JCRimh79dR5Ywc9MDQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b2a41a9809d1d785600abd40eb5f00dec1abca07292be1c46de9c0fc7884024914c1c648201fed816a871715a03b20e1e270782424629a1efd751e58c1cf4c0d\",\"name\":\"error-ex\",\"version\":\"1.3.4\"},\"es-define-property-1.0.1.tgz\":{\"integrity\":\"e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7b79d17e07d4678acd18bdb7da05205f4e90372c9ecf4e0a76316b17e2d34683979ab3a014a0e0e0109db235bc1274faf5ea9d606991a49c223d560dac2696de\",\"name\":\"es-define-property\",\"version\":\"1.0.1\"},\"es-errors-1.3.0.tgz\":{\"integrity\":\"Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"65fe47d8ac6ddb18d3bdb26f3f66562c4202c40ea3fa1026333225ca9cb8c5c060d6f2959f1f3d5b2d066d2fa47f9730095145cdd0858765d20853542d2e9cb3\",\"name\":\"es-errors\",\"version\":\"1.3.0\"},\"es-module-lexer-2.3.2.tgz\":{\"integrity\":\"poHGpORABojJJucnV9KbOavETW8lBVnphkW77ER5/BQ5Fz7oXSoCNek7IH3vR5nRjdsEz926ibFYX8KtLQmdyw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a681c6a4e4400688c926e72757d29b39abc44d6f250559e98645bbec4479fc1439173ee85d2a0235e93b207def4799d18ddb04cfddba89b1585fc2ad2d099dcb\",\"name\":\"es-module-lexer\",\"version\":\"2.3.2\"},\"es-object-atoms-1.1.2.tgz\":{\"integrity\":\"HWcBoN6NileqtSydK2FqHbS/LoDd2pqrnQHLyJzBj4kOp/ky2MWMN694xOfkK8/SnUsW2DH7EfyVlydKCsm1Zw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1d6701a0de8d8a57aab52c9d2b616a1db4bf2e80ddda9aab9d01cbc89cc18f890ea7f932d8c58c37af78c4e7e42bcfd29d4b16d831fb11fc9597274a0ac9b567\",\"name\":\"es-object-atoms\",\"version\":\"1.1.2\"},\"es-set-tostringtag-2.1.0.tgz\":{\"integrity\":\"j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8fabd6cdfac655fc97c607be3b4c79b21e9cbf10288346bfe1175dd8adfacc2315e5e27effeb4e0278113bc70e0cc3566d545d5659866502f6612df247c6c850\",\"name\":\"es-set-tostringtag\",\"version\":\"2.1.0\"},\"es-toolkit-1.50.0.tgz\":{\"integrity\":\"OyZKhUVvEep9ITEiwHn8GKnMRQIVqoSIX7WnRbkWgJkllCujilqP2rD0u979tkl8wqyc8ICwlc1UBVv/Sl1G6w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3b264a85456f11ea7d213122c079fc18a9cc450215aa84885fb5a745b916809925942ba38a5a8fdab0f4bbdefdb6497cc2ac9cf080b095cd54055bff4a5d46eb\",\"name\":\"es-toolkit\",\"version\":\"1.50.0\"},\"es6-error-4.1.1.tgz\":{\"integrity\":\"Um/+FxMr9CISWh0bi5Zv0iOD+4cFh5qLeks1qhAopKVAJw3drgKbKySikp7wGhDL0HPeaja0P5ULZrxLkniUVg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"526ffe17132bf422125a1d1b8b966fd22383fb8705879a8b7a4b35aa1028a4a540270dddae029b2b24a2929ef01a10cbd073de6a36b43f950b66bc4b92789456\",\"name\":\"es6-error\",\"version\":\"4.1.1\"},\"esbuild-0.28.2.tgz\":{\"integrity\":\"HKVLS8dvII+xoKW9kmqxbRKrnWEXfJJr/FZhhJmiqIB0e053QNYFqOBouTMO/k5sID4MvCiUCvv8b9M4h32wIA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1ca54b4bc76f208fb1a0a5bd926ab16d12ab9d61177c926bfc56618499a2a880747b4e7740d605a8e068b9330efe4e6c203e0cbc28940afbfc6fd338877db020\",\"name\":\"esbuild\",\"version\":\"0.28.2\"},\"escalade-3.2.0.tgz\":{\"integrity\":\"WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5948f6aa5c5a42d3b883a3eae5cdbd193716183c9df22b4bf334e58a98040b3dc97ac02288e2a8b5df0953aa2d0773c00a01bac64254c9585ba0c4be6e37bf8c\",\"name\":\"escalade\",\"version\":\"3.2.0\"},\"escape-html-1.0.3.tgz\":{\"integrity\":\"NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3624aea59e0e7ae1b0afaf251887b29bf92c219309a1d506392099fc54a74f172b7a46efaab81d53194938ca628da299563009ad6ac6b3fe89cbc38cbb28fda3\",\"name\":\"escape-html\",\"version\":\"1.0.3\"},\"escape-string-regexp-4.0.0.tgz\":{\"integrity\":\"TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4eda5c349dd7033c771aaf2c591cc96956a346cd2e57103660091d6f58e6d9890fcf81ba7a05050320379f9bed10865e7cf93959ae145db2ae4b97ca90959d80\",\"name\":\"escape-string-regexp\",\"version\":\"4.0.0\"},\"esprima-4.0.1.tgz\":{\"integrity\":\"eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"786b85170ed4a5d6be838a7e407be75b44724d7fd255e2410ccfe00ad30044ed1c2ee4f61dc10a9d33ef86357a6867aaac207fb1b368a742acce6d23b1a594e0\",\"name\":\"esprima\",\"version\":\"4.0.1\"},\"estree-walker-3.0.3.tgz\":{\"integrity\":\"7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ed150a7d781230c933b7a66e5e6a9aa4ebab2c63cf7e08fa97db9167b9511a896f934cb6ca871cdf92dd731282e4f419767d8332a8a8010d8da1672b4ca9a6ea\",\"name\":\"estree-walker\",\"version\":\"3.0.3\"},\"etag-1.8.1.tgz\":{\"integrity\":\"aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6882f9171ee66b055adf4d1a976067104e2236fa35a844f12eb3c8fe8d392fbcfa828edf0b0d49e844266cae05989d804bb920545fca1195ae7c17dd0a531c3e\",\"name\":\"etag\",\"version\":\"1.8.1\"},\"event-target-shim-5.0.1.tgz\":{\"integrity\":\"i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8bfd976e74b3feec51094ebe35d54980a5834cce36efe32a61b910cc3df6d43b8240952a3ae24a200d08336f96db1b581dd28e999e1d47a7c4c6c7784972fe59\",\"name\":\"event-target-shim\",\"version\":\"5.0.1\"},\"eventemitter3-5.0.4.tgz\":{\"integrity\":\"mlsTRyGaPBjPedk6Bvw+aqbsXDtoAyAzm5MO7JgU+yVRyMQ5O8bD4Kcci7BS85f93veegeCPkL8R4GLClnjLFw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9a5b1347219a3c18cf79d93a06fc3e6aa6ec5c3b680320339b930eec9814fb2551c8c4393bc6c3e0a71c8bb052f397fddef79e81e08f90bf11e062c29678cb17\",\"name\":\"eventemitter3\",\"version\":\"5.0.4\"},\"eventsource-3.0.7.tgz\":{\"integrity\":\"CRT1WTyuQoD771GW56XEZFQ/ZoSfWid1alKGDYMmkt2yl8UXrVR4pspqWNEcqKvVIzg6PAltWjxcSSPrboA4iA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0914f5593cae4280fbef5196e7a5c464543f66849f5a27756a52860d832692ddb297c517ad5478a6ca6a58d11ca8abd523383a3c096d5a3c5c4923eb6e803888\",\"name\":\"eventsource\",\"version\":\"3.0.7\"},\"eventsource-parser-3.1.1.tgz\":{\"integrity\":\"EKN1vKAMcZ8MlYMpaNuxN6R9yakzH6uajHcHVTqWJzvu5pWw9DyhbP35HH8MVBQ+dZjAfDxk+A8NiR9KWaXiyQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"10a375bca00c719f0c95832968dbb137a47dc9a9331fab9a8c7707553a96273beee695b0f43ca16cfdf91c7f0c54143e7598c07c3c64f80f0d891f4a59a5e2c9\",\"name\":\"eventsource-parser\",\"version\":\"3.1.1\"},\"execa-5.1.1.tgz\":{\"integrity\":\"8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f2e4a9659a1c01944100f20420d263dcba3d1f21a2b6595ccdcdbb121e586288e3305327f321cc0cc6941c4d89a9fab4e43ff0b9cc08e091944725edd6f721ca\",\"name\":\"execa\",\"version\":\"5.1.1\"},\"execa-9.6.1.tgz\":{\"integrity\":\"9Be3ZoN4LmYR90tUoVu2te2BsbzHfhJyfEiAVfz7N5/zv+jduIfLrV2xdQXOHbaD6KgpGdO9PRPM1Y4Q9QkPkA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f417b76683782e6611f74b54a15bb6b5ed81b1bcc77e12727c488055fcfb379ff3bfe8ddb887cbad5db17505ce1db683e8a82919d3bd3d13ccd58e10f5090f90\",\"name\":\"execa\",\"version\":\"9.6.1\"},\"expect-type-1.4.0.tgz\":{\"integrity\":\"KfYbmpRm0VbLjEvVa9yGwCi9GI34xvi7A/HXYWQO65CSD2u3MczUJSuwXKFIxlGsgBQizV9q5J9NHj4VG0n+pA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"29f61b9a9466d156cb8c4bd56bdc86c028bd188df8c6f8bb03f1d761640eeb90920f6bb731ccd4252bb05ca148c651ac801422cd5f6ae49f4d1e3e151b49fea4\",\"name\":\"expect-type\",\"version\":\"1.4.0\"},\"exponential-backoff-3.1.3.tgz\":{\"integrity\":\"ZgEeZXj30q+I0EN+CbSSpIyPaJ5HVQD18Z1m+u1FXbAeT94mr1zw50q4q6jiiC447Nl/YTcIYSAftiGqetwXCA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"66011e6578f7d2af88d0437e09b492a48c8f689e475500f5f19d66faed455db01e4fde26af5cf0e74ab8aba8e2882e38ecd97f61370861201fb621aa7adc1708\",\"name\":\"exponential-backoff\",\"version\":\"3.1.3\"},\"express-5.2.1.tgz\":{\"integrity\":\"hIS4idWWai69NezIdRt2xFVofaF4j+6INOpJlVOLDO8zXGpUVEVzIYk12UUi2JzjEzWL3IOAxcTubgz9Po0yXw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8484b889d5966a2ebd35ecc8751b76c455687da1788fee8834ea4995538b0cef335c6a54544573218935d94522d89ce313358bdc8380c5c4ee6e0cfd3e8d325f\",\"name\":\"express\",\"version\":\"5.2.1\"},\"express-rate-limit-8.6.2.tgz\":{\"integrity\":\"YH4ru+eOJxQABscKFfRCy9R7x9QFGdezclVMwwgFFndzS2Xnm0uo6B0ABZsLhcpeptGv2qvuJVWlQr9gQZoC3A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"607e2bbbe78e27140006c70a15f442cbd47bc7d40519d7b372554cc308051677734b65e79b4ba8e81d00059b0b85ca5ea6d1afdaabee2555a542bf60419a02dc\",\"name\":\"express-rate-limit\",\"version\":\"8.6.2\"},\"fast-copy-4.0.4.tgz\":{\"integrity\":\"eVAiWVNPSEGIzDl5yPuLrx8fNMogScXvD9xp1Kzd41FjRIz2I3sSIcxsFeM5EzFfHAfobdvs8ZySffUopljvIA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"79502259534f484188cc3979c8fb8baf1f1f34ca2049c5ef0fdc69d4acdde35163448cf6237b1221cc6c15e33913315f1c07e86ddbecf19c927df528a658ef20\",\"name\":\"fast-copy\",\"version\":\"4.0.4\"},\"fast-decode-uri-component-1.0.1.tgz\":{\"integrity\":\"WKgKWg5eUxvRZGwW8FvfbaH7AXSh2cL+3j5fMGzUMCxWBJ3dV3a7Wz8y2f/uQ0e3B6WmodD3oS54jTQ9HVTIIg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"58a80a5a0e5e531bd1646c16f05bdf6da1fb0174a1d9c2fede3e5f306cd4302c56049ddd5776bb5b3f32d9ffee4347b707a5a6a1d0f7a12e788d343d1d54c822\",\"name\":\"fast-decode-uri-component\",\"version\":\"1.0.1\"},\"fast-deep-equal-3.1.3.tgz\":{\"integrity\":\"f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7f7a90f68432f63d808417bf1fd542f75c0b98a042094fe00ce9ca340606e61b303bb04b2a3d3d1dce4760dcfd70623efb19690c22200da8ad56cd3701347ce1\",\"name\":\"fast-deep-equal\",\"version\":\"3.1.3\"},\"fast-glob-3.3.3.tgz\":{\"integrity\":\"7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ecca6d2fc53472a705773233c0e4c7a22957f71e41acdab27bb67f2ee0bb9023118a8d44312caa44adc1100503eec5d1ab8893e00cd356e65d8604364c2bd82e\",\"name\":\"fast-glob\",\"version\":\"3.3.3\"},\"fast-json-stringify-7.0.1.tgz\":{\"integrity\":\"eRSayARSbbwlBjpP4vnTTIRD5QPcIrmihPxDeN1DtKnHPg66UuJLx+8hlK1kaFdjvzyQ/dzALoi4vwAQ+T+iZA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"79149ac804526dbc25063a4fe2f9d34c8443e503dc22b9a284fc4378dd43b4a9c73e0eba52e24bc7ef2194ad64685763bf3c90fddcc02e88b8bf0010f93fa264\",\"name\":\"fast-json-stringify\",\"version\":\"7.0.1\"},\"fast-querystring-1.1.2.tgz\":{\"integrity\":\"g6KuKWmFXc0fID8WWH0jit4g0AGBoJhCkJMb1RmbsSEUNvQ+ZC8D6CUZ+GtF8nMzSPXnhiePyyqqipzNNEnHjg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"83a2ae2969855dcd1f203f16587d238ade20d00181a0984290931bd5199bb1211436f43e642f03e82519f86b45f2733348f5e786278fcb2aaa8a9ccd3449c78e\",\"name\":\"fast-querystring\",\"version\":\"1.1.2\"},\"fast-safe-stringify-2.1.1.tgz\":{\"integrity\":\"W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5be28973676620b94fa650ff1f82bd97d2dc00701f3ed3fa058f38b952d743a12f733f4b720df7636cf52156e54fac5d639e0f5d854712ffb45a9abc228eb390\",\"name\":\"fast-safe-stringify\",\"version\":\"2.1.1\"},\"fast-uri-3.1.5.tgz\":{\"integrity\":\"gHwA1O9LDIcKunMKhObS/HimwtehO1nPUECKAu5TpKgaO19fcWEl4bliWe1jWxVFvIXztJjjQ4L8XQ1EU9f7Jw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"807c00d4ef4b0c870aba730a84e6d2fc78a6c2d7a13b59cf50408a02ee53a4a81a3b5f5f716125e1b96259ed635b1545bc85f3b498e34382fc5d0d4453d7fb27\",\"name\":\"fast-uri\",\"version\":\"3.1.5\"},\"fast-uri-4.1.2.tgz\":{\"integrity\":\"TyGmBcbDTZXcb2cj5MV89DrF42DKvb3y5DDUNh95iO+IMeAzMkVSxK1PZRrRIpc9yg8U2GhGdbofNa0LS/a4Bw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4f21a605c6c34d95dc6f6723e4c57cf43ac5e360cabdbdf2e430d4361f7988ef8831e033324552c4ad4f651ad122973dca0f14d8684675ba1f35ad0b4bf6b807\",\"name\":\"fast-uri\",\"version\":\"4.1.2\"},\"fastify-5.12.0.tgz\":{\"integrity\":\"A3RNEaDIHWaxFW8n8rNJaW1wQ+XAXuoU71llfUQJjuh5WaYLmKfRhhanaJBOx8m2EBPQkR6sDBovYdHNe9F6rA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"03744d11a0c81d66b1156f27f2b349696d7043e5c05eea14ef59657d44098ee87959a60b98a7d18616a768904ec7c9b61013d0911eac0c1a2f61d1cd7bd17aac\",\"name\":\"fastify\",\"version\":\"5.12.0\"},\"fastify-plugin-6.0.0.tgz\":{\"integrity\":\"fZOty7z3O7vOliF6d8bHE3wiEh1KcNnKEQensSgTk9C1DvN6nRLS++XVd86v33Hw/8u9Un8A1zDrQ8ujcQDHEg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7d93adcbbcf73bbbce96217a77c6c7137c22121d4a70d9ca1107a7b1281393d0b50ef37a9d12d2fbe5d577ceafdf71f0ffcbbd527f00d730eb43cba37100c712\",\"name\":\"fastify-plugin\",\"version\":\"6.0.0\"},\"fastq-1.20.1.tgz\":{\"integrity\":\"GGToxJ/w1x32s/D2EKND7kTil4n8OVk/9mycTc4VDza13lOvpUZTGX3mFSCtV9ksdGBVzvsyAVLM6mHFThxXxw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1864e8c49ff0d71df6b3f0f610a343ee44e29789fc39593ff66c9c4dce150f36b5de53afa54653197de61520ad57d92c746055cefb320152ccea61c54e1c57c7\",\"name\":\"fastq\",\"version\":\"1.20.1\"},\"fdir-6.5.0.tgz\":{\"integrity\":\"tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b486d8b596ee70eb340511aa3c992c84951874bf920c7edd54cf208f2f84469dd60148cb105244fb4da46a7c87b708d63a7c2b298062c0098cd29e242c90275e\",\"name\":\"fdir\",\"version\":\"6.5.0\"},\"fetch-blob-3.2.0.tgz\":{\"integrity\":\"7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ef2010a43d94309ccb8b50eabfba856273db68fc7b65f14ae8f888c50e0f7e418fc8dca5d94831f9afee994a2798aaa384ce039df6ccbdd5faa2d5eaf37b2841\",\"name\":\"fetch-blob\",\"version\":\"3.2.0\"},\"figures-6.1.0.tgz\":{\"integrity\":\"d+l3qxjSesT4V7v2fh+QnmFnUWv9lSpjarhShNTgBOfA0ttejbQUAlHLitbjkoRiDulW0OPoQPYIGhIC8ohejg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"77e977ab18d27ac4f857bbf67e1f909e6167516bfd952a636ab85284d4e004e7c0d2db5e8db4140251cb8ad6e39284620ee956d0e3e840f6081a1202f2885e8e\",\"name\":\"figures\",\"version\":\"6.1.0\"},\"file-uri-to-path-1.0.0.tgz\":{\"integrity\":\"0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d19b7eb372fb55fd5b8b0599dbd6804625582f1ee23069c4525f71df77db07f8f78d1f35bbf3b62dba8af819b508348d0ca56d27f623c18ed351de5291e2d02f\",\"name\":\"file-uri-to-path\",\"version\":\"1.0.0\"},\"filelist-1.0.6.tgz\":{\"integrity\":\"5giy2PkLYY1cP39p17Ech+2xlpTRL9HLspOfEgm0L6CwBXBTgsK5ou0JtzYuepxkaQ/tvhCFIJ5uXo0OrM2DxA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e608b2d8f90b618d5c3f7f69d7b11c87edb19694d12fd1cbb2939f1209b42fa0b005705382c2b9a2ed09b7362e7a9c64690fedbe1085209e6e5e8d0eaccd83c4\",\"name\":\"filelist\",\"version\":\"1.0.6\"},\"fill-range-7.1.1.tgz\":{\"integrity\":\"YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"62c1a97b75872caf19622e2d583836272dde6d1cf6ad7a300f19e57786e4401d3471cff5670f405a70b48bdced0c98ad8afb50bda23d29a2f22ab73e8415b4ca\",\"name\":\"fill-range\",\"version\":\"7.1.1\"},\"finalhandler-2.1.1.tgz\":{\"integrity\":\"S8KoZgRZN+a5rNwqTxlZZePjT/4cnm0ROV70LedRHZ0p8u9fRID0hJUZQpkKLzro8LfmC8sx23bY6tVNxv8pQA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4bc2a866045937e6b9acdc2a4f195965e3e34ffe1c9e6d11395ef42de7511d9d29f2ef5f4480f484951942990a2f3ae8f0b7e60bcb31db76d8ead54dc6ff2940\",\"name\":\"finalhandler\",\"version\":\"2.1.1\"},\"find-my-way-9.8.0.tgz\":{\"integrity\":\"JtyUgATO7qxRp2zKhrmWof74Mqxc1ikbwpwMY97p8ipuTj2QtreA4gK2JNAF6SOqqHnYYkwMUvsgQVi2AJxIyw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"26dc948004ceeeac51a76cca86b996a1fef832ac5cd6291bc29c0c63dee9f22a6e4e3d90b6b780e202b624d005e923aaa879d8624c0c52fb204158b6009c48cb\",\"name\":\"find-my-way\",\"version\":\"9.8.0\"},\"find-up-3.0.0.tgz\":{\"integrity\":\"1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d720fa4662c8d5705fc6e82f391c25724e9fef9b582fe891d23ab0b0eacec4c672198a94b83849d25e005dd3b5897fc54ecf5c040304935816484c759126f296\",\"name\":\"find-up\",\"version\":\"3.0.0\"},\"form-data-4.0.6.tgz\":{\"integrity\":\"vKatAh4SlVfgbv+YtmhiRjhEMJsYpsG1Y2rMQtR+SVSbytsSD1YGzDIcrAJmdFec88u/+VoGmxnl+80gL1tRCQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"bca6ad021e129557e06eff98b66862463844309b18a6c1b5636acc42d47e49549bcadb120f5606cc321cac026674579cf3cbbff95a069b19e5fbcd202f5b5109\",\"name\":\"form-data\",\"version\":\"4.0.6\"},\"formdata-polyfill-4.0.10.tgz\":{\"integrity\":\"buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6ee7b01f332f60bdbd8dd7904d520b79c49a64a9edfd12568e8642179396eb467aeff1a648b06438533baa1d4f237cc536d25b6992f9790bb5bcb7daccec23e2\",\"name\":\"formdata-polyfill\",\"version\":\"4.0.10\"},\"forwarded-0.2.0.tgz\":{\"integrity\":\"buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6ee446d1fa41b511d24c238049eea10f6e7cb44b9b16844b6f864d03a3713151cdc3680e7301e8f70c9a6e5ccccce039cfdc40f4bd4a36393f36de8c4fd698a3\",\"name\":\"forwarded\",\"version\":\"0.2.0\"},\"fresh-2.0.0.tgz\":{\"integrity\":\"Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"471fd6c9c67ad0739aa8b2808ba70744a288ef3c566c9df53219ed9adc0ca1a4de17b5c51fd861069f2f21368c89d7e58d143a7985822a46932beca45491cfd8\",\"name\":\"fresh\",\"version\":\"2.0.0\"},\"fs-extra-10.1.0.tgz\":{\"integrity\":\"oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a115c0a6ae78113463e1e3221731a71d61b2fb3a39adab9d8eec4dd1bf07eecfd1536a16d16becc7d3b400244dfe446af44f15bbf45eb24181e68de38be1731d\",\"name\":\"fs-extra\",\"version\":\"10.1.0\"},\"fs-extra-11.3.1.tgz\":{\"integrity\":\"eXvGGwZ5CL17ZSwHWd3bbgk7UUpF6IFHtP57NYYakPvHOs8GDgDe5KJI36jIJzDkJ6eJjuzRA8eBQb6SkKue0g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"797bc61b067908bd7b652c0759dddb6e093b514a45e88147b4fe7b35861a90fbc73acf060e00dee4a248dfa8c82730e427a7898eecd103c78141be9290ab9ed2\",\"name\":\"fs-extra\",\"version\":\"11.3.1\"},\"fs-extra-11.4.0.tgz\":{\"integrity\":\"EQsFzMUJkCKGr1ePqlYADkIUmHW1s3ZXr5Yqy6wbGrfUCphpl2maM/kyOIRA2HpP3AaFQTZXD4ldjek+nccddA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"110b05ccc509902286af578faa56000e42149875b5b37657af962acbac1b1ab7d40a986997699a33f932388440d87a4fdc06854136570f895d8de93e9dc71d74\",\"name\":\"fs-extra\",\"version\":\"11.4.0\"},\"fs-extra-7.0.1.tgz\":{\"integrity\":\"YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6090da0896449c199c6f0d777ef74033d03034e2703b3ac4e29a8ca81ab99c5884a9752a1f094ae01fb7a54c3a24dbdf48fb57d39c451ed632ff59e2d357860b\",\"name\":\"fs-extra\",\"version\":\"7.0.1\"},\"fs-extra-8.1.0.tgz\":{\"integrity\":\"yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ca1950800ea69ce25428eb11505b2025d402be42a1733f2d9591b91c141f45e619cb8e8ec0b718f9989ad26b5d1ec3a8f72fe13fe0b130dd1353d431a0eb46e2\",\"name\":\"fs-extra\",\"version\":\"8.1.0\"},\"fs-extra-9.1.0.tgz\":{\"integrity\":\"hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"85c8376667a94b7d3fec1485a91be8a370ce310bbb223ab13b99c20edfb333d5d68dbdf75a0ef388d4fe42fa9bb9cdfe816a733b4d89b9b5729361b866fa3539\",\"name\":\"fs-extra\",\"version\":\"9.1.0\"},\"fs.realpath-1.0.0.tgz\":{\"integrity\":\"OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"38ed291f694ae9ad2166701d6aee48b731cf23aa5496f23b8cc567c54411b70e28c05db093c94e49a6ed1830933f81a0ae0d8c6c69d63bd5fc2b5b78f9f18c0f\",\"name\":\"fs.realpath\",\"version\":\"1.0.0\"},\"fsevents-2.3.2.tgz\":{\"integrity\":\"xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c62a8c411e3101e1d3b81f6e5a6f9f1517083a02813223813fe7978b24fb8ec8150aad5b915ca0b74d28012a3007b11db6938769a3e02adf35d8ff5a6fe0c328\",\"name\":\"fsevents\",\"version\":\"2.3.2\"},\"fsevents-2.3.3.tgz\":{\"integrity\":\"5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e71a037d7f9f2fb7da0139da82658fa5b16dc21fd1efb5a630caaa1c64bae42defbc1d181eb805f81d58999df8e35b4c8f99fade4d36d765cda09c339617df43\",\"name\":\"fsevents\",\"version\":\"2.3.3\"},\"function-bind-1.1.2.tgz\":{\"integrity\":\"7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ed71cdc47eea5fdc46e66230c6486e993a31fcc21135c3a00ebc56b0cb76a40af6dd61e9e8cad194dec50521690a9afea153b417be38894811f369c931f1b648\",\"name\":\"function-bind\",\"version\":\"1.1.2\"},\"fuzzysort-3.1.0.tgz\":{\"integrity\":\"sR9BNCjBg6LNgwvxlBd0sBABvQitkLzoVY9MYYROQVX/FvfJ4Mai9LsGhDgd8qYdds0bY77VzYd5iuB+v5rwQQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b11f413428c183a2cd830bf1941774b01001bd08ad90bce8558f4c61844e4155ff16f7c9e0c6a2f4bb0684381df2a61d76cd1b63bed5cd87798ae07ebf9af041\",\"name\":\"fuzzysort\",\"version\":\"3.1.0\"},\"gensync-1.0.0-beta.2.tgz\":{\"integrity\":\"3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"de137b35ab2462f3032d0639e609d6dcd43e99eb0401ea53aa583e5446e3ef3cea10c055361cdc19861ea85a3f4e5633e9e42215ca751dcb0264efa71a04bcce\",\"name\":\"gensync\",\"version\":\"1.0.0-beta.2\"},\"get-caller-file-2.0.5.tgz\":{\"integrity\":\"DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0f214fdc133fdd81d340e0942ffc343991d1d25a4a786af1a2d70759ca8d11d9e5b6a1705d57e110143de1e228df801f429a34ac6922e1cc8889fb58d3a87616\",\"name\":\"get-caller-file\",\"version\":\"2.0.5\"},\"get-east-asian-width-1.6.0.tgz\":{\"integrity\":\"QRbvDIbx6YklUe6RxeTeleMR0yv3cYH6PsPZHcnVn7xv7zO1BHN8r0XETu8n6Ye3Q+ahtSarc3WgtNWmehIBfA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4116ef0c86f1e9892551ee91c5e4de95e311d32bf77181fa3ec3d91dc9d59fbc6fef33b504737caf45c44eef27e987b743e6a1b526ab7375a0b4d5a67a12017c\",\"name\":\"get-east-asian-width\",\"version\":\"1.6.0\"},\"get-intrinsic-1.3.0.tgz\":{\"integrity\":\"9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f5f4a349aa2cfdf448548a7ec5226513a95fc21112ecb36d29a08121a987b23af69dad418800493e8d263a38f3f062435116ab9823c6a9a89583999f8dbf7c09\",\"name\":\"get-intrinsic\",\"version\":\"1.3.0\"},\"get-nonce-1.0.1.tgz\":{\"integrity\":\"FJhYRoDaiatfEkUK8HKlicmu/3SGFD51q3itKDGoSTysQJBnfOcxU5GxnhE1E6soB76MbT0MBtnKJuXyAx+96Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1498584680da89ab5f12450af072a589c9aeff7486143e75ab78ad2831a8493cac4090677ce7315391b19e113513ab2807be8c6d3d0c06d9ca26e5f2031fbde9\",\"name\":\"get-nonce\",\"version\":\"1.0.1\"},\"get-own-enumerable-keys-1.0.0.tgz\":{\"integrity\":\"PKsK2FSrQCyxcGHsGrLDcK0lx+0Ke+6e8KFFozA9/fIQLhQzPaRvJFdcz7+Axg3jUH/Mq+NI4xa5u/UT2tQskA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3cab0ad854ab402cb17061ec1ab2c370ad25c7ed0a7bee9ef0a145a3303dfdf2102e14333da46f24575ccfbf80c60de3507fccabe348e316b9bbf513dad42c90\",\"name\":\"get-own-enumerable-keys\",\"version\":\"1.0.0\"},\"get-proto-1.0.1.tgz\":{\"integrity\":\"sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b1349f063a17069f3d26f20a21e7eac3b53608279bb1cef892263a6b0886a202ada1219b823604fc6ffe97db05dcc5853cd73d21ca0e0b83837ca1dfc459a9d2\",\"name\":\"get-proto\",\"version\":\"1.0.1\"},\"get-stdin-10.0.0.tgz\":{\"integrity\":\"eWSePJ4zXFdqz+/Lyfopob4rIcoF/U2XfE8nJc7iZV6lnebWc9k7DoQQpX+2a9jc0AOvBsXvbe5YkjXl/MHbpg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"79649e3c9e335c576acfefcbc9fa29a1be2b21ca05fd4d977c4f2725cee2655ea59de6d673d93b0e8410a57fb66bd8dcd003af06c5ef6dee589235e5fcc1dba6\",\"name\":\"get-stdin\",\"version\":\"10.0.0\"},\"get-stream-5.2.0.tgz\":{\"integrity\":\"nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9c117e175ac06550aefe9eeb8f3800f986f895f617ae997b6ba56626b53cc05f48d422af3ff4303cd6479ce9706d3918e9dbed148cc5312c905db2e84d03d1a4\",\"name\":\"get-stream\",\"version\":\"5.2.0\"},\"get-stream-6.0.1.tgz\":{\"integrity\":\"ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b6ce968beda3de3423aa2ef4c3902537c0c59e44b00be32a9b113374400b076a976585775ff6f50937e03cb18934c7805b174f7d4f053b59acdcd51f68708f62\",\"name\":\"get-stream\",\"version\":\"6.0.1\"},\"get-stream-9.0.1.tgz\":{\"integrity\":\"kVCxPF3vQM/N0B1PmoqVUqgHP+EeVjmZSQn+1oCRPxd2P21P2F19lIgbR3HBosbB1PUhOAoctJnfEn2GbN2eZA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9150b13c5def40cfcdd01d4f9a8a9552a8073fe11e5639994909fed680913f17763f6d4fd85d7d94881b4771c1a2c6c1d4f521380a1cb499df127d866cdd9e64\",\"name\":\"get-stream\",\"version\":\"9.0.1\"},\"glob-13.0.6.tgz\":{\"integrity\":\"Wjlyrolmm8uDpm/ogGyXZXb1Z+Ca2B8NbJwqBVg0axK9GbBeoS7yGV6vjXnYdGm6X53iehEuxxbyiKp8QmN4Vw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5a3972ae89669bcb83a66fe8806c976576f567e09ad81f0d6c9c2a0558346b12bd19b05ea12ef2195eaf8d79d87469ba5f9de27a112ec716f288aa7c42637857\",\"name\":\"glob\",\"version\":\"13.0.6\"},\"glob-7.2.3.tgz\":{\"integrity\":\"nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9c5474ccba54d9809a471c28089bcbe94bc21f6245c85548bf04cbb087f6d40b8794cb240358614dd93e2e5609b4e958b7dbfa76fb330f604646a04bfa240af5\",\"name\":\"glob\",\"version\":\"7.2.3\"},\"glob-parent-5.1.2.tgz\":{\"integrity\":\"AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"00e22049009ea62258c0fdc04671b1fb95674eed870587736c63f8e5e2f0d6faf7cc1def64b7b279dd6c0bd8676dc39cf7f4ab33233944f42b906cf8692f59a3\",\"name\":\"glob-parent\",\"version\":\"5.1.2\"},\"global-agent-3.0.0.tgz\":{\"integrity\":\"PT6XReJ+D07JvGoxQMkT6qji/jVNfX/h364XHZOWeRzy64sSFr+xJ5OX7LI3b4MPQzdL4H8Y8M0xzPpsVMwA8Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3d3e9745e27e0f4ec9bc6a3140c913eaa8e2fe354d7d7fe1dfae171d9396791cf2eb8b1216bfb1279397ecb2376f830f43374be07f18f0cd31ccfa6c54cc00f1\",\"name\":\"global-agent\",\"version\":\"3.0.0\"},\"globalthis-1.0.4.tgz\":{\"integrity\":\"DpLKbNU4WylpxJykQujfCcwYWiV/Jhm50Goo0wrVILAv5jOr9d+H+UR3PhSCD2rCCEIg0uc+G+muBTwD54JhDQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0e92ca6cd5385b2969c49ca442e8df09cc185a257f2619b9d06a28d30ad520b02fe633abf5df87f944773e14820f6ac2084220d2e73e1be9ae053c03e782610d\",\"name\":\"globalthis\",\"version\":\"1.0.4\"},\"gopd-1.2.0.tgz\":{\"integrity\":\"ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"65429187afe4505a0089302d4d83d9277870f70371c7e04804e8a39e51bd3e7ac9b027128ecd70cb20fabc9a5a62d827cc3aca6114aa7f738ee917daf77c6c46\",\"name\":\"gopd\",\"version\":\"1.2.0\"},\"got-11.8.6.tgz\":{\"integrity\":\"6tfZ91bOr7bOXnK7PRDCGBLa1H4U080YHNaAQ2KsMGlLEzRbk44nsZF2E1IeRc3vtJHPVbKCYgdFbaGO2ljd8g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ead7d9f756ceafb6ce5e72bb3d10c21812dad47e14d3cd181cd6804362ac30694b13345b938e27b1917613521e45cdefb491cf55b2826207456da18eda58ddf2\",\"name\":\"got\",\"version\":\"11.8.6\"},\"graceful-fs-4.2.11.tgz\":{\"integrity\":\"RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"45b279fe398570d342703579a3d7939c12c9fc7b33595d0fef76dcf857f89d2feb263f98692e881b288e2f45680585fe9755ab97793ade1fcaac7fa7849d17bd\",\"name\":\"graceful-fs\",\"version\":\"4.2.11\"},\"has-flag-4.0.0.tgz\":{\"integrity\":\"EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1329094ff4352a34d672da698080207d23b4b4a56e6548e180caf5ee4a93ba6325e807efdc421295e53ba99533a170c54c01d30c2e0d3a81bf67153712f94c3d\",\"name\":\"has-flag\",\"version\":\"4.0.0\"},\"has-property-descriptors-1.0.2.tgz\":{\"integrity\":\"55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e7924d2ae216fafab829ed418ce4e333661cb5022f093ec61731f099f64f1a8e709eb82489dd1842d9c095e152aae9999b86b3de7d814be7ab6f2e62a49760ae\",\"name\":\"has-property-descriptors\",\"version\":\"1.0.2\"},\"has-symbols-1.1.0.tgz\":{\"integrity\":\"1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d5c0cd77027625aa2199bdec8383a629a301c2e0b8f2c6278b91d4c360efb02f0b8c64cb2bd87e79bd57e91cae3877b8853d142c25baf22a26863528294aa53d\",\"name\":\"has-symbols\",\"version\":\"1.1.0\"},\"has-tostringtag-1.0.2.tgz\":{\"integrity\":\"NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"36a00307c5633c52ccd95d15bc751ec30c2cc3465605a21d828fa2787b4ade16ac2f3e2a78246361ca9f07a010ac182044aa69285f0be76fd5a9d56c3b8ec397\",\"name\":\"has-tostringtag\",\"version\":\"1.0.2\"},\"hasown-2.0.4.tgz\":{\"integrity\":\"T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4f651b7db044177db089ea5722c3254d6f7e743602eb0321fedfef600e2db8e30aa96cff9f7bebd4d152c508b23fece4da65eca0c03f8bfeea57a2cabadd6dd4\",\"name\":\"hasown\",\"version\":\"2.0.4\"},\"help-me-5.0.0.tgz\":{\"integrity\":\"7xgomUX6ADmcYzFik0HzAxh/73YlKR9bmFzf51CZwR+b6YtzU2m0u49hQCqV6SvlqIqsaxovfwdvbnsw3b/zpg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ef18289945fa00399c6331629341f303187fef7625291f5b985cdfe75099c11f9be98b735369b4bb8f61402a95e92be5a88aac6b1a2f7f076f6e7b30ddbff3a6\",\"name\":\"help-me\",\"version\":\"5.0.0\"},\"hono-4.13.2.tgz\":{\"integrity\":\"JydRilDRkYBQMt9qR9U92mXxmbGqsqSn/IKOrh4e7/gEbn+0zSr8igTu0obwJoNGN4sez28DIql7FBHWydoJpA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2727518a50d191805032df6a47d53dda65f199b1aab2a4a7fc828eae1e1eeff8046e7fb4cd2afc8a04eed286f0268346378b1ecf6f0322a97b1411d6c9da09a4\",\"name\":\"hono\",\"version\":\"4.13.2\"},\"hosted-git-info-4.1.0.tgz\":{\"integrity\":\"kyCuEOWjJqZuDbRHzL8V93NzQhwIB71oFWSyzVo+KPZI+pnQPPxucdkrOZvkLRnrf5URsQM+IJ09Dw29cRALIA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9320ae10e5a326a66e0db447ccbf15f77373421c0807bd681564b2cd5a3e28f648fa99d03cfc6e71d92b399be42d19eb7f9511b1033e209d3d0f0dbd71100b20\",\"name\":\"hosted-git-info\",\"version\":\"4.1.0\"},\"html-encoding-sniffer-6.0.0.tgz\":{\"integrity\":\"CV9TW3Y3f8/wT0BRFc1/KAVQ3TUHiXmaAb6VW9vtiMFf7SLoMd1PdAc4W3KFOFETBJUb90KatHqlsZMWV+R9Gg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"095f535b76377fcff04f405115cd7f280550dd350789799a01be955bdbed88c15fed22e831dd4f7407385b728538511304951bf7429ab47aa5b1931657e47d1a\",\"name\":\"html-encoding-sniffer\",\"version\":\"6.0.0\"},\"html-escaper-2.0.2.tgz\":{\"integrity\":\"H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1f688cb5dd08e0cb7979889aa517480e3a7e5f37a55d0d2d144e094bb605c057af5d73263a9f66c8dad4bc28340fac2cf22aa444f05f28781bc228354a694b7e\",\"name\":\"html-escaper\",\"version\":\"2.0.2\"},\"html-parse-stringify-4.0.1.tgz\":{\"integrity\":\"0zHsZJrK7S3K2aucXWL6ycoYJ/iNtIcFHC/nYQgFklPtrv5LpJctIiSCroWZWeuoXvuyFdzp6KzjJQ+OT5MfFw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d331ec649acaed2dcad9ab9c5d62fac9ca1827f88db487051c2fe76108059253edaefe4ba4972d222482ae859959eba85efbb215dce9e8ace3250f8e4f931f17\",\"name\":\"html-parse-stringify\",\"version\":\"4.0.1\"},\"http-cache-semantics-4.2.0.tgz\":{\"integrity\":\"dTxcvPXqPvXBQpq5dUr6mEMJX4oIEFv6bwom3FDwKRDsuIjjJGANqhBuoAn9c1RQJIdAKav33ED65E2ys+87QQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"753c5cbcf5ea3ef5c1429ab9754afa9843095f8a08105bfa6f0a26dc50f02910ecb888e324600daa106ea009fd73545024874029abf7dc40fae44db2b3ef3b41\",\"name\":\"http-cache-semantics\",\"version\":\"4.2.0\"},\"http-errors-2.0.1.tgz\":{\"integrity\":\"4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e056d17405fe6d2766a3801416e4b458d88fcfc36016dfabf138603569a5ae3423b7543b651f7ecd395c7b6f39f71e0a497af022c69e4ea0e82909ad3fca4b99\",\"name\":\"http-errors\",\"version\":\"2.0.1\"},\"http-proxy-agent-7.0.2.tgz\":{\"integrity\":\"T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4f58240226180d6631dd5e419b2bbb1dc7dcbcbee652b4d688ceb239f6b73c8a6156227f8053dbbe2750faf7aa48e1dc8bf3f105c0da6de50d0b3a4e3832598a\",\"name\":\"http-proxy-agent\",\"version\":\"7.0.2\"},\"http2-wrapper-1.0.3.tgz\":{\"integrity\":\"V+23sDMr12Wnz7iTcDeJr3O6AIxlnvT/bmaAAAP/Xda35C90p9599p0F1eHR/N1KILWSoWVAiOMFjBBXaXSMxg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"57edb7b0332bd765a7cfb893703789af73ba008c659ef4ff6e66800003ff5dd6b7e42f74a7de7df69d05d5e1d1fcdd4a20b592a1654088e3058c105769748cc6\",\"name\":\"http2-wrapper\",\"version\":\"1.0.3\"},\"https-proxy-agent-7.0.6.tgz\":{\"integrity\":\"vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"bcaf4fe7f8947dd97de4023e255c94b88715b5de287efb6b3abdc736d336cb10bd6e731b11da77c74d4e8503678dbf082588b7f159531379815f071fbf2c2e4b\",\"name\":\"https-proxy-agent\",\"version\":\"7.0.6\"},\"human-signals-2.1.0.tgz\":{\"integrity\":\"B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"07814567aabf4f68e1864b2091b116dc706f5887c35bce6c9e44206b0b74ed2ec9e505d393a064355fb4c80799acce50a4c01d625a1c1a89639f4b09fd642417\",\"name\":\"human-signals\",\"version\":\"2.1.0\"},\"human-signals-8.0.1.tgz\":{\"integrity\":\"eKCa6bwnJhvxj14kZk5NCPc6Hb6BdsU9DZcOnmQKSnO1VKrfV0zCvtttPZUsBvjmNDn8rpcJfpwSYnHBjc95MQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"78a09ae9bc27261bf18f5e24664e4d08f73a1dbe8176c53d0d970e9e640a4a73b554aadf574cc2bedb6d3d952c06f8e63439fcae97097e9c126271c18dcf7931\",\"name\":\"human-signals\",\"version\":\"8.0.1\"},\"i18next-26.3.6.tgz\":{\"integrity\":\"Bu5Z2nAXgfVyM8xvW3jk9EKRIuX37PudsrBViThNFx7CR7aaYTpP01cxNB/E4c4UUzTDiAZRstEhsRfPOL/8xA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"06ee59da701781f57233cc6f5b78e4f4429122e5f7ecfb9db2b05589384d171ec247b69a613a4fd35731341fc4e1ce145334c3880651b2d121b117cf38bffcc4\",\"name\":\"i18next\",\"version\":\"26.3.6\"},\"iconv-lite-0.7.3.tgz\":{\"integrity\":\"IKXpvIzjnC9XTAUbVBcMfGS0EPaIXtW6v+zr+RRp+hqULEpo0owZax6wyRwPOJbWbzjYspQwusTsfVr0ifh4uQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"20a5e9bc8ce39c2f574c051b54170c7c64b410f6885ed5babfecebf91469fa1a942c4a68d28c196b1eb0c91c0f3896d66f38d8b29430bac4ec7d5af489f878b9\",\"name\":\"iconv-lite\",\"version\":\"0.7.3\"},\"ignore-5.3.2.tgz\":{\"integrity\":\"hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"86c053354a904c3c245ad71d608da2d3a63f9d4044b0d10324a8d676280bbde832f240ee2404bcb91969924710a721172f467fa630f2e4706632344227682afa\",\"name\":\"ignore\",\"version\":\"5.3.2\"},\"immer-11.1.17.tgz\":{\"integrity\":\"8Vu44Y0MuMBlTQz/jQ8HEMYNq/bBqk87MnBwYR5mC8AthfhEXidZ5aT/oA/CUqboa8THKltnD9L3xyqhU/Sy1Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f15bb8e18d0cb8c0654d0cff8d0f0710c60dabf6c1aa4f3b327070611e660bc02d85f8445e2759e5a4ffa00fc252a6e86bc4c72a5b670fd2f7c72aa153f4b2d5\",\"name\":\"immer\",\"version\":\"11.1.17\"},\"import-fresh-3.3.1.tgz\":{\"integrity\":\"TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4d1dca7eb4d94d82cf07a8d48dfc7a305f56716ac72fdb2ee5339b2b866462005d58a3ce1684a8408744b93b91f36a66b711f6b29586f61e9eb707ebd692c1a9\",\"name\":\"import-fresh\",\"version\":\"3.3.1\"},\"indent-string-4.0.0.tgz\":{\"integrity\":\"EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"11d0c366ee00d8ec882bb2ebff6cc6fb0e6399bba4d435419c4c11110bc1ceca412640846d16bc1b153596085871a1890a745689b8c35e5abbefd5f5ff2e71c2\",\"name\":\"indent-string\",\"version\":\"4.0.0\"},\"inflight-1.0.6.tgz\":{\"integrity\":\"k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"93dd88fdbd3cab8c2f16c71708bbea7ec1c2ae3ac5ef2897b10b8856f544ecdf365b7f9aaa9cee51d05b7e159ccbf159477ff82207e532028b3acbcf0eb18224\",\"name\":\"inflight\",\"version\":\"1.0.6\"},\"inherits-2.0.4.tgz\":{\"integrity\":\"k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"93fbc6697e3f6256b75b3c8c0af4d039761e207bea38ab67a8176ecd31e9ce9419cc0b2428c859d8af849c189233dcc64a820578ca572b16b8758799210a9ec1\",\"name\":\"inherits\",\"version\":\"2.0.4\"},\"internmap-2.0.3.tgz\":{\"integrity\":\"5Hh7Y1wQbvY5ooGgPbDaL5iYLAPzMTUrjMulskHLH6wnv/A+1q5rgEaiuqEjB+oxGXIVZs1FF+R/KPN3ZSQYYg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e4787b635c106ef639a281a03db0da2f98982c03f331352b8ccba5b241cb1fac27bff03ed6ae6b8046a2baa12307ea3119721566cd4517e47f28f37765241862\",\"name\":\"internmap\",\"version\":\"2.0.3\"},\"ip-address-10.5.0.tgz\":{\"integrity\":\"R5SnVLJmgYYvf2F2ZgwSBnelz5G4q5AxIC277GDfUaNbrZKNANcBC7RHqYYePlszf4kBolVkJauG0ZjHHFh55g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4794a754b26681862f7f6176660c120677a5cf91b8ab9031202dbbec60df51a35bad928d00d7010bb447a9861e3e5b337f8901a2556425ab86d198c71c5879e6\",\"name\":\"ip-address\",\"version\":\"10.5.0\"},\"ipaddr.js-1.9.1.tgz\":{\"integrity\":\"0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d0a23feb4ef1a31493a07ec68cdd457d26cba14d3e6ed4e2723b1049642587f859ca437c2a998c7fbb98c0f5b747e6a467a47fc35f199574870585e26143cede\",\"name\":\"ipaddr.js\",\"version\":\"1.9.1\"},\"ipaddr.js-2.5.0.tgz\":{\"integrity\":\"aq+t5NAc+cS6rZQQVWC2x98CPqGtKKTMDd4Gaodv0wShnItdKg/51djkGJ1hqH+Oy0ivDftCbSLCQob8zso01w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6aafade4d01cf9c4baad94105560b6c7df023ea1ad28a4cc0dde066a876fd304a19c8b5d2a0ff9d5d8e4189d61a87f8ecb48af0dfb426d22c24286fcceca34d7\",\"name\":\"ipaddr.js\",\"version\":\"2.5.0\"},\"is-arrayish-0.2.1.tgz\":{\"integrity\":\"zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"cf3d3a4bcb74a33a035cc1beb9b7b6eb37824cd5dc2883c96498bc841ac5e227422e6b38086f50b4aeea065d5ba22e4e0f31698ecc1be493e61c26cca63698ce\",\"name\":\"is-arrayish\",\"version\":\"0.2.1\"},\"is-docker-2.2.1.tgz\":{\"integrity\":\"F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"17e8b604ab05ac7eba89a505734c280fcb0bcbc81eb64c13c2d3818efb39e82c780a024378a41ea9fcfcc0062249bf093a9ad68471f9a7becf6e6602bef52e5d\",\"name\":\"is-docker\",\"version\":\"2.2.1\"},\"is-docker-3.0.0.tgz\":{\"integrity\":\"eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7a58dc8040e5127b3fec05c5a2c0792bfda708ce0fec540f90673f0d62f2e6b985116bd96b21ab8a4d5df7f4086399c9e1ff58b15bc1900ea42691e7f6b21275\",\"name\":\"is-docker\",\"version\":\"3.0.0\"},\"is-extglob-2.1.1.tgz\":{\"integrity\":\"SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"49b29b00d90deb4dd58b88c466fe3d2de549327e321b0b1bcd9c28ac4a32122badb0dde725875b3b7eb37e1189e90103a4e6481640ed9eae494719af9778eca1\",\"name\":\"is-extglob\",\"version\":\"2.1.1\"},\"is-fullwidth-code-point-3.0.0.tgz\":{\"integrity\":\"zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"cf29a6e7ebbeb02b125b20fda8d69e8d5dc316f84229c94a762cd868952e1c0f3744b8dbee74ae1a775d0871afd2193e298ec130096c59e2b851e83a115e9742\",\"name\":\"is-fullwidth-code-point\",\"version\":\"3.0.0\"},\"is-glob-4.0.3.tgz\":{\"integrity\":\"xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c5e9526b21c7dfa66013b6568658bba56df884d6cd97c3a3bf92959a4243e2105d0f7b61f137e4f6f61ab0b33e99758e6611648197f184b4a7af046be1e9524a\",\"name\":\"is-glob\",\"version\":\"4.0.3\"},\"is-in-ssh-1.0.0.tgz\":{\"integrity\":\"jYa6Q9rH90kR1vKB6NM7qqd1mge3Fx4Dhw5TVlK1MUBqhEOuCagrEHMevNuCcbECmXZ0ThXkRm+Ymr51HwEPAw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8d86ba43dac7f74911d6f281e8d33baaa7759a07b7171e03870e535652b531406a8443ae09a82b10731ebcdb8271b1029976744e15e4466f989abe751f010f03\",\"name\":\"is-in-ssh\",\"version\":\"1.0.0\"},\"is-inside-container-1.0.0.tgz\":{\"integrity\":\"KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"28860b08226085f1d9c6a8d8044eeb132d0e06e4dde710874bbb47560bc22e4c7b4ad2286b1c0d5b784200b80452315f79193e306fd0c66a7fbed113105ded44\",\"name\":\"is-inside-container\",\"version\":\"1.0.0\"},\"is-interactive-2.0.0.tgz\":{\"integrity\":\"qP1vozQRI+BMOPcjFzrjXuQvdak2pHNUMZoeG2eRbiSqyvbEf/wQtEOTOX1guk6E3t36RkaqiSt8A/6YElNxLQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a8fd6fa3341123e04c38f723173ae35ee42f75a936a47354319a1e1b67916e24aacaf6c47ffc10b44393397d60ba4e84deddfa4646aa892b7c03fe981253712d\",\"name\":\"is-interactive\",\"version\":\"2.0.0\"},\"is-number-7.0.0.tgz\":{\"integrity\":\"41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e350a27e483a7bc4f2952a5db53a5e2d532abd20445734edb47bc4443ef8d7ea6767c00dbf4d34e0c44be3740a3c394af5c1af369e8d6566540656c65d8c719e\",\"name\":\"is-number\",\"version\":\"7.0.0\"},\"is-obj-2.0.0.tgz\":{\"integrity\":\"drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"76ba831b771b733c7110946839770e8ed769d49fe5ca9d66367d316b39d1b3cfa6b8186041cae76eca68c795f97cec341e73276df0f3be710c12da83109128f3\",\"name\":\"is-obj\",\"version\":\"2.0.0\"},\"is-obj-3.0.0.tgz\":{\"integrity\":\"IlsXEHOjtKhpN8r/tRFj2nDyTmHvcfNeu/nrRIcXE17ROeatXchkojffa1SpdqW4cr/Fj6QkEf/Gn4zf6KKvEQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"225b171073a3b4a86937caffb51163da70f24e61ef71f35ebbf9eb448717135ed139e6ad5dc864a237df6b54a976a5b872bfc58fa42411ffc69f8cdfe8a2af11\",\"name\":\"is-obj\",\"version\":\"3.0.0\"},\"is-plain-obj-4.1.0.tgz\":{\"integrity\":\"+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f8f822faf32e50d909c84c62301b792251683322a7af9ce127852ca73e7c58e841179428219905c8d1c86c102d1f0cd502093946d9dd54db0344deb5fe6983aa\",\"name\":\"is-plain-obj\",\"version\":\"4.1.0\"},\"is-potential-custom-element-name-1.0.1.tgz\":{\"integrity\":\"bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6c261e440dab5626ca65dfacdbadb98069c617fb7b0d2a83b3874fec2acb0359bb8ca5b3ea9a6cd0ba582c937c43ae07b663ca27586b3779f33cd28510a39489\",\"name\":\"is-potential-custom-element-name\",\"version\":\"1.0.1\"},\"is-promise-4.0.0.tgz\":{\"integrity\":\"hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"86fa6823a928ae124c9de8f6f3975283a9eed7e7babb1b3bcc6dc16009b96f2a83b2024d5b0c7333acfa8998808104784c9df42660533b0a99530dd69721f701\",\"name\":\"is-promise\",\"version\":\"4.0.0\"},\"is-regexp-3.1.0.tgz\":{\"integrity\":\"rbku49cWloU5bSMI+zaRaXdQHXnthP6DZ/vLnfdSKyL4zUzuWnomtOEiZZOd+ioQ+avFo/qau3KPTc7Fjy1uPA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"adb92ee3d7169685396d2308fb36916977501d79ed84fe8367fbcb9df7522b22f8cd4cee5a7a26b4e12265939dfa2a10f9abc5a3fa9abb728f4dcec58f2d6e3c\",\"name\":\"is-regexp\",\"version\":\"3.1.0\"},\"is-stream-2.0.1.tgz\":{\"integrity\":\"hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"845a222624e5eb79e7fa4b2d1c606d7b05922a740ba726f5e7928785e035977f6ebed3bd9d6228a75a77b9da8f71477fc5b17554b30ee27ece23aa7b45b9e00e\",\"name\":\"is-stream\",\"version\":\"2.0.1\"},\"is-stream-4.0.1.tgz\":{\"integrity\":\"Dnz92NInDqYckGEUJv689RbRiTSEHCQ7wOVeALbkOz999YpqT46yMRIGtSNl2iCL1waAZSx40+h59NV/EwzV/A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0e7cfdd8d2270ea61c90611426febcf516d18934841c243bc0e55e00b6e43b3f7df58a6a4f8eb2311206b52365da208bd70680652c78d3e879f4d57f130cd5fc\",\"name\":\"is-stream\",\"version\":\"4.0.1\"},\"is-unicode-supported-1.3.0.tgz\":{\"integrity\":\"43r2mRvz+8JRIKnWJ+3j8JtjRKZ6GmjzfaE/qiBJnikNnYv/6bagRJ1kUhNk8R5EX/GkobD+r+sfxCPJsiKBLQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e37af6991bf3fbc25120a9d627ede3f09b6344a67a1a68f37da13faa20499e290d9d8bffe9b6a0449d64521364f11e445ff1a4a1b0feafeb1fc423c9b222812d\",\"name\":\"is-unicode-supported\",\"version\":\"1.3.0\"},\"is-unicode-supported-2.1.0.tgz\":{\"integrity\":\"mE00Gnza5EEB3Ds0HfMyllZzbBrmLOX3vfWoj9A9PEnTfratQ/BcaJOuMhnkhjXvb2+FkY3VuHqtAGpTPmglFQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"984d341a7cdae44101dc3b341df3329656736c1ae62ce5f7bdf5a88fd03d3c49d37eb6ad43f05c6893ae3219e48635ef6f6f85918dd5b87aad006a533e682515\",\"name\":\"is-unicode-supported\",\"version\":\"2.1.0\"},\"is-wsl-2.2.0.tgz\":{\"integrity\":\"fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7cacc0adad2b18951407018180d90766e4e865c9fe4ed5c7a5e0a09a430930c631d6c40361a092ca32414826b69c7d431a6eecde7d68067a21a154c168decbc3\",\"name\":\"is-wsl\",\"version\":\"2.2.0\"},\"is-wsl-3.1.1.tgz\":{\"integrity\":\"e6rvdUCiQCAuumZslxRJWR/Doq4VpPR82kqclvcS0efgt430SlGIk05vdCN58+VrzgtIcfNODjozVielycD4Sw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7baaef7540a240202eba666c971449591fc3a2ae15a4f47cda4a9c96f712d1e7e0b78df44a5188934e6f742379f3e56bce0b4871f34e0e3a335627a5c9c0f84b\",\"name\":\"is-wsl\",\"version\":\"3.1.1\"},\"isarray-1.0.0.tgz\":{\"integrity\":\"VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"54b82121634ce842d0ce8ef3c26720d0d99357258a623bc878cf37ca3a74c110d39949eb33aefc7d06dc281a3a9f6089105d2cce81bfff2b60f932a56bcf402d\",\"name\":\"isarray\",\"version\":\"1.0.0\"},\"isbinaryfile-4.0.10.tgz\":{\"integrity\":\"iHrqe5shvBUcFbmZq9zOQHBoeOhZJu6RQGrDpBgenUm/Am+F3JM2MgQj+rK3Z601fzrL5gLZWtAPH2OBaSVcyw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"887aea7b9b21bc151c15b999abdcce40706878e85926ee91406ac3a4181e9d49bf026f85dc9336320423fab2b767ad357f3acbe602d95ad00f1f638169255ccb\",\"name\":\"isbinaryfile\",\"version\":\"4.0.10\"},\"isbinaryfile-5.0.7.tgz\":{\"integrity\":\"gnWD14Jh3FzS3CPhF0AxNOJ8CxqeblPTADzI38r0wt8ZyQl5edpy75myt08EG2oKvpyiqSqsx+Wkz9vtkbTqYQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"827583d78261dc5cd2dc23e117403134e27c0b1a9e6e53d3003cc8dfcaf4c2df19c9097979da72ef99b2b74f041b6a0abe9ca2a92aacc7e5a4cfdbed91b4ea61\",\"name\":\"isbinaryfile\",\"version\":\"5.0.7\"},\"isexe-2.0.0.tgz\":{\"integrity\":\"RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"447c4c2e9f659ca1c61d19e0f5016144231b600715a67ebdb2648672addfdfac638155564e18f8aaa2db4cb96aed2b23f01f9f210d44b8210623694ab3241e23\",\"name\":\"isexe\",\"version\":\"2.0.0\"},\"isexe-3.1.5.tgz\":{\"integrity\":\"6B3tLtFqtQS4ekarvLVMZ+X+VlvQekbe4taUkf/rhVO3d/h0M2rfARm/pXLcPEsjjMsFgrFgSrhQIxcSVrBz8w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e81ded2ed16ab504b87a46abbcb54c67e5fe565bd07a46dee2d69491ffeb8553b777f874336adf0119bfa572dc3c4b238ccb0582b1604ab85023171256b073f3\",\"name\":\"isexe\",\"version\":\"3.1.5\"},\"isexe-4.0.0.tgz\":{\"integrity\":\"FFUtZMpoZ8RqHS3XeXEmHWLA4thH+ZxCv2lOiPIn1Xc7CxrqhWzNSDzD+/chS/zbYezmiwWLdQC09JdQKmthOw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"14552d64ca6867c46a1d2dd77971261d62c0e2d847f99c42bf694e88f227d5773b0b1aea856ccd483cc3fbf7214bfcdb61ece68b058b7500b4f497502a6b613b\",\"name\":\"isexe\",\"version\":\"4.0.0\"},\"istanbul-lib-coverage-3.2.2.tgz\":{\"integrity\":\"O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3bc769b05fabd1657ff0c35129f9e6aed09686e2a3c6bab6c3e8e9cc12f95192938b62de5569d63a6591c4595eb0938d99cfb02c01af29064439a9e4a342c54e\",\"name\":\"istanbul-lib-coverage\",\"version\":\"3.2.2\"},\"istanbul-lib-report-3.0.1.tgz\":{\"integrity\":\"GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1827c4d66b6c1c63842c253c7bf67b616ce99b26ebc7ff9d4937cbaef63ca9199a63acd74ca5a7e964088da005c34ebd89c9ba19530d920bb437323888f65437\",\"name\":\"istanbul-lib-report\",\"version\":\"3.0.1\"},\"istanbul-reports-3.2.0.tgz\":{\"integrity\":\"HGYWWS/ehqTV3xN10i23tkPkpH46MLCIMFNCaaKNavAXTF1RkqxawEPtnjnGZ6XKSInBKkiOA5BKS+aZiY3AvA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1c6616592fde86a4d5df1375d22db7b643e4a47e3a30b08830534269a28d6af0174c5d5192ac5ac043ed9e39c667a5ca4889c12a488e03904a4be699898dc0bc\",\"name\":\"istanbul-reports\",\"version\":\"3.2.0\"},\"jake-10.9.4.tgz\":{\"integrity\":\"wpHYzhxiVQL+IV05BLE2Xn34zW1S223hvjtqk0+gsPrwd/8JNLXJgZZM/iPFsYc1xyphF+6M6EvdE5E9MBGkDA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c291d8ce1c625502fe215d3904b1365e7df8cd6d52db6de1be3b6a934fa0b0faf077ff0934b5c981964cfe23c5b18735c72a6117ee8ce84bdd13913d3011a40c\",\"name\":\"jake\",\"version\":\"10.9.4\"},\"jiti-2.7.0.tgz\":{\"integrity\":\"AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"002ffb2687c9bd91abae779635a12725e38b531f89946b7bb4d6b4c198913d3e0c635c267ca8eddbee8eda9daecf6fac92597c39966624c36a7a47bb90a6cd81\",\"name\":\"jiti\",\"version\":\"2.7.0\"},\"jose-6.2.9.tgz\":{\"integrity\":\"XrchZOFZUl/T3vTwRe8XK+cJrGtMF4th1ARnDfwbBXFKThGhlsxEE4Zu03AD/bjJSt/9jT/mxrOCkJWOg77aPA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5eb72164e159525fd3def4f045ef172be709ac6b4c178b61d404670dfc1b05714a4e11a196cc4413866ed37003fdb8c94adffd8d3fe6c6b38290958e83beda3c\",\"name\":\"jose\",\"version\":\"6.2.9\"},\"joycon-3.1.1.tgz\":{\"integrity\":\"34wB/Y7MW7bzjKRjUKTa46I2Z7eV62Rkhva+KkopW7Qvv/OSWBqvkSY7vusOPrNuZcUG3tApvdVgNB8POj3SPw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"df8c01fd8ecc5bb6f38ca46350a4dae3a23667b795eb646486f6be2a4a295bb42fbff392581aaf91263bbeeb0e3eb36e65c506ded029bdd560341f0f3a3dd23f\",\"name\":\"joycon\",\"version\":\"3.1.1\"},\"js-tokens-10.0.0.tgz\":{\"integrity\":\"lM/UBzQmfJRo9ABXbPWemivdCW8V2G8FHaHdypQaIy523snUjog0W71ayWXTjiR+ixeMyVHN2XcpnTd/liPg/Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"94cfd40734267c9468f400576cf59e9a2bdd096f15d86f051da1ddca941a232e76dec9d48e88345bbd5ac965d38e247e8b178cc951cdd977299d377f9623e0fd\",\"name\":\"js-tokens\",\"version\":\"10.0.0\"},\"js-tokens-4.0.0.tgz\":{\"integrity\":\"RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"45d2547e5704ddc5332a232a420b02bb4e853eef5474824ed1b7986cf84737893a6a9809b627dca02b53f5b7313a9601b690f690233a49bce0e026aeb16fcf29\",\"name\":\"js-tokens\",\"version\":\"4.0.0\"},\"js-yaml-4.3.1.tgz\":{\"integrity\":\"CY6crGq313MX8GkwvB7tzgp99vjQxY1++5y10/BKN/GUfHqWaOGQMNZkBvqSzsZKWk/ijwHlWzzkLulsGHhjWQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"098e9cac6ab7d77317f06930bc1eedce0a7df6f8d0c58d7efb9cb5d3f04a37f1947c7a9668e19030d66406fa92cec64a5a4fe28f01e55b3ce42ee96c18786359\",\"name\":\"js-yaml\",\"version\":\"4.3.1\"},\"js-yaml-5.3.0.tgz\":{\"integrity\":\"muutsYr+e2+d3rTgUGslq5rxbBlUy3cJ61IsHag2QNDQV+7zXWjkUpmALIajhrlLlrgRUiymj6U3zUr/TMK84Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9aebadb18afe7b6f9ddeb4e0506b25ab9af16c1954cb7709eb522c1da83640d0d057eef35d68e45299802c86a386b94b96b811522ca68fa537cd4aff4cc2bce1\",\"name\":\"js-yaml\",\"version\":\"5.3.0\"},\"jsdom-30.0.1.tgz\":{\"integrity\":\"52v7mUVUfNQVYYqE1lcdaymWL0njO7lTLUog6ZvW2U5KsbiLk/GnZlVJ+qx0xfNJZ6Gn+KSpPNE52vurbxZwrA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e76bfb9945547cd415618a84d6571d6b29962f49e33bb9532d4a20e99bd6d94e4ab1b88b93f1a7665549faac74c5f34967a1a7f8a4a93cd139dafbab6f1670ac\",\"name\":\"jsdom\",\"version\":\"30.0.1\"},\"jsesc-3.1.0.tgz\":{\"integrity\":\"/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"fec33774ed853b35e3290849ba8d10d7bdf07f628ea3cb7823cbc7cba945f69a14a7b6ca4f4fcd1c4f1f3d7db73f07e19f291faa70b6c51c4e9d5c395ee18868\",\"name\":\"jsesc\",\"version\":\"3.1.0\"},\"json-buffer-3.0.1.tgz\":{\"integrity\":\"4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e1b57905f4769aa7d04c99be579b4f3dd7fe669ba1888bd3b8007983c91cad7399a534ff430c15456072c17d68cebea512e3dd6c7c70689966f46ea6236b1f49\",\"name\":\"json-buffer\",\"version\":\"3.0.1\"},\"json-parse-even-better-errors-2.3.1.tgz\":{\"integrity\":\"xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c72170ca1ae8fc91287fa1a17b68b3d8d717a23dac96836c5abfd7b044432bfa223c27da36197938d7e9fa341d01945043420958dcc7f7321917b962f75921db\",\"name\":\"json-parse-even-better-errors\",\"version\":\"2.3.1\"},\"json-schema-ref-resolver-3.0.0.tgz\":{\"integrity\":\"hOrZIVL5jyYFjzk7+y7n5JDzGlU8rfWDuYyHwGa2WA8/pcmMHezp2xsVwxrebD/Q9t8Nc5DboieySDpCp4WG4A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"84ead92152f98f26058f393bfb2ee7e490f31a553cadf583b98c87c066b6580f3fa5c98c1dece9db1b15c31ade6c3fd0f6df0d7390dba227b2483a42a78586e0\",\"name\":\"json-schema-ref-resolver\",\"version\":\"3.0.0\"},\"json-schema-traverse-1.0.0.tgz\":{\"integrity\":\"NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"34cf3f3fd9f75e35e12199f594b86415a0024ce5114178d6855e0103f4673aff31be0aadaa9017f483b89914314b1d51968e2dab37aa6f4b0e96bb9a3b2dddba\",\"name\":\"json-schema-traverse\",\"version\":\"1.0.0\"},\"json-schema-typed-7.0.3.tgz\":{\"integrity\":\"7DE8mpG+/fVw+dTpjbxnx47TaMnDfOI1jwft9g1VybltZCduyRQPJPvc+zzKY9WPHxhPWczyFuYa6I8Mw4iU5A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ec313c9a91befdf570f9d4e98dbc67c78ed368c9c37ce2358f07edf60d55c9b96d64276ec9140f24fbdcfb3cca63d58f1f184f59ccf216e61ae88f0cc38894e4\",\"name\":\"json-schema-typed\",\"version\":\"7.0.3\"},\"json-schema-typed-8.0.2.tgz\":{\"integrity\":\"fQhoXdcvc3V28x7C7BMs4P5+kNlgUURe2jmUT1T//oBRMDrqy1QPelJimwZGo7Hg9VPV3EQV5Bnq4hbFy2vetA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7d08685dd72f737576f31ec2ec132ce0fe7e90d96051445eda39944f54fffe8051303aeacb540f7a52629b0646a3b1e0f553d5dc4415e419eae216c5cb6bdeb4\",\"name\":\"json-schema-typed\",\"version\":\"8.0.2\"},\"json-stringify-safe-5.0.1.tgz\":{\"integrity\":\"ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"642960e80698bda9af60413cd9ddc8c9ddef49222343ea1d823693cd1b8edeceeda0274529cce86f68b4cc287b244f245a7d7bcaf016854571bea1b051a96c44\",\"name\":\"json-stringify-safe\",\"version\":\"5.0.1\"},\"json5-2.2.3.tgz\":{\"integrity\":\"XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5e63967bb7b21d81f5e1c2dd54fa3283e18e1f7ad85fef8aa73af2949c125bdf2ddcd93e53c5ce97c15628e830b7375bf255c67facd8c035337873167f16acca\",\"name\":\"json5\",\"version\":\"2.2.3\"},\"jsonfile-4.0.0.tgz\":{\"integrity\":\"m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9ba175477cfc8e395fda29901d2d907b3e6c8ca590cdbbae86e27f14a605459bcf1373ee1dc48c559cdfb0b84654e91f776d286cbe5258405ec394a196ab8dc6\",\"name\":\"jsonfile\",\"version\":\"4.0.0\"},\"jsonfile-6.2.1.tgz\":{\"integrity\":\"zwOTdL3rFQ/lRdBnntKVOX6k5cKJwEc1HdilT71BWEu7J41gXIB2MRp+vxduPSwZJPWBxEzv4yH1wYLJGUHX4Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"cf039374bdeb150fe545d0679ed295397ea4e5c289c047351dd8a54fbd41584bbb278d605c8076311a7ebf176e3d2c1924f581c44cefe321f5c182c91941d7e1\",\"name\":\"jsonfile\",\"version\":\"6.2.1\"},\"keyv-4.5.4.tgz\":{\"integrity\":\"oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a3154790747f1097f608d5e75b144b5ba9a0ec9c82094706d03b441a62f672d528d4f3538a7d4f52297eafffb8af93295600bf7e7d648ecc7b9a34ae8caa88a7\",\"name\":\"keyv\",\"version\":\"4.5.4\"},\"kleur-3.0.3.tgz\":{\"integrity\":\"eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"793233955392511f89c5d0c57a911870132d67d42a75e7feae7cd675166e31b3b2c2ee6d3b6c3637baea8e800d67993dbf2c212fa06bd55463508813431e04f3\",\"name\":\"kleur\",\"version\":\"3.0.3\"},\"kleur-4.1.5.tgz\":{\"integrity\":\"o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a3e34efbc5ab462404138ffb9f044984dd475a9566266e75d690475313cbb69d015084b3941a653916129937250a726f42adad2aefec825df156991ced95ae41\",\"name\":\"kleur\",\"version\":\"4.1.5\"},\"lazy-val-1.0.5.tgz\":{\"integrity\":\"0/BnGCCfyUMkBpeDgWihanIAF9JmZhHBgUhEqzvf+adhNGLoP6TaiI5oF8oyb3I45P+PcnrqihSf01M0l0G5+Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d3f06718209fc943240697838168a16a720017d2666611c1814844ab3bdff9a7613462e83fa4da888e6817ca326f7238e4ff8f727aea8a149fd353349741b9f9\",\"name\":\"lazy-val\",\"version\":\"1.0.5\"},\"libsodium-0.8.4.tgz\":{\"integrity\":\"lMcYaRi0zcs7tarATsQUYC7rstliIXZuoq0c6zXSgNtSNtdvBgkSegjWhpMJAXzKX3SUSwIp7+zEsob+j3LuRw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"94c7186918b4cdcb3bb5aac04ec414602eebb2d96221766ea2ad1ceb35d280db5236d76f0609127a08d6869309017cca5f74944b0229efecc4b286fe8f72ee47\",\"name\":\"libsodium\",\"version\":\"0.8.4\"},\"libsodium-wrappers-0.8.4.tgz\":{\"integrity\":\"mu8aAWucZjTB5O/BtGXtW4e1agy7uHxNYG7zPthmmD1jU43LCDmSWZLN4JhflbdPXj3yDO4lxM1O9hLDgIOXDw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9aef1a016b9c6634c1e4efc1b465ed5b87b56a0cbbb87c4d606ef33ed866983d63538dcb0839925992cde0985f95b74f5e3df20cee25c4cd4ef612c38083970f\",\"name\":\"libsodium-wrappers\",\"version\":\"0.8.4\"},\"light-my-request-6.6.0.tgz\":{\"integrity\":\"CHYbu8RtboSIoVsHZ6Ye4cj4Aw/yg2oAFimlF7mNvfDV192LR7nDiKtSIfCuLT7KokPSTn/9kfVLm5OGN0A28A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"08761bbbc46d6e8488a15b0767a61ee1c8f8030ff2836a001629a517b98dbdf0d5d7dd8b47b9c388ab5221f0ae2d3ecaa243d24e7ffd91f54b9b9386374036f0\",\"name\":\"light-my-request\",\"version\":\"6.6.0\"},\"lightningcss-1.32.0.tgz\":{\"integrity\":\"NXYBzinNrblfraPGyrbPoD19C1h9lfI/1mzgWYvXUTe414Gz/X1FD2XBZSZM7rRTrMA8JL3OtAaGifrIKhQ5yQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"357601ce29cdadb95fada3c6cab6cfa03d7d0b587d95f23fd66ce0598bd75137b8d781b3fd7d450f65c165264ceeb453acc03c24bdceb4068689fac82a1439c9\",\"name\":\"lightningcss\",\"version\":\"1.32.0\"},\"lightningcss-1.33.0.tgz\":{\"integrity\":\"WkUDrojuJs0xkgGf2udWxa3yGBRxPtxUkB79i6aCZLRgc7PM8fZe9TosfPDcvEpQZbuFASnHYmRLBLUbmLOIIA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5a4503ae88ee26cd3192019fdae756c5adf21814713edc54901efd8ba68264b46073b3ccf1f65ef53a2c7cf0dcbc4a5065bb850129c762644b04b51b98b38820\",\"name\":\"lightningcss\",\"version\":\"1.33.0\"},\"lightningcss-android-arm64-1.32.0.tgz\":{\"integrity\":\"YK7/ClTt4kAK0vo6w3X+Pnm0D2cf2vPHbhOXdoNti1Ga0al1P4TBZhwjATvjNwLEBCnKvjJc2jQgHXH0NEwlAg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"60aeff0a54ede2400ad2fa3ac375fe3e79b40f671fdaf3c76e139776836d8b519ad1a9753f84c1661c23013be33702c40429cabe325cda34201d71f4344c2502\",\"name\":\"lightningcss-android-arm64\",\"version\":\"1.32.0\"},\"lightningcss-android-arm64-1.33.0.tgz\":{\"integrity\":\"gEpRTalKdosp4Bb8qWtc2iOgE5SeIHlpS1up9bFq2wAyYhl1UdTObYiHe98zEM9SQvSoqQZ1IQD0JNpg3Ml5pg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"804a514da94a768b29e016fca96b5cda23a013949e2079694b5ba9f5b16adb003262197551d4ce6d88877bdf3310cf5242f4a8a906752100f424da60dcc979a6\",\"name\":\"lightningcss-android-arm64\",\"version\":\"1.33.0\"},\"lightningcss-darwin-arm64-1.32.0.tgz\":{\"integrity\":\"RzeG9Ju5bag2Bv1/lwlVJvBE3q6TtXskdZLLCyfg5pt+HLz9BqlICO7LZM7VHNTTn/5PRhHFBSjk5lc4cmscPQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"473786f49bb96da83606fd7f97095526f044deae93b57b247592cb0b27e0e69b7e1cbcfd06a94808eecb64ced51cd4d39ffe4f4611c50528e4e65738726b1c3d\",\"name\":\"lightningcss-darwin-arm64\",\"version\":\"1.32.0\"},\"lightningcss-darwin-arm64-1.33.0.tgz\":{\"integrity\":\"Sciaz8eenNTKn9b3t7+xr0ipTp9YxKQY4npwQ3mrRuL0BAVHBLyZxofhaKBAVtzmtRZ/zTyo0/to4B1uWG/Djg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"49c89acfc79e9cd4ca9fd6f7b7bfb1af48a94e9f58c4a418e27a704379ab46e2f404054704bc99c687e168a04056dce6b5167fcd3ca8d3fb68e01d6e586fc38e\",\"name\":\"lightningcss-darwin-arm64\",\"version\":\"1.33.0\"},\"lightningcss-darwin-x64-1.32.0.tgz\":{\"integrity\":\"U+QsBp2m/s2wqpUYT/6wnlagdZbtZdndSmut/NJqlCcMLTWp5muCrID+K5UJ6jqD2BFshejCYXniPDbNh73V8w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"53e42c069da6fecdb0aa95184ffeb09e56a07596ed65d9dd4a6badfcd26a94270c2d35a9e66b82ac80fe2b9509ea3a83d8116c85e8c26179e23c36cd87bdd5f3\",\"name\":\"lightningcss-darwin-x64\",\"version\":\"1.32.0\"},\"lightningcss-darwin-x64-1.33.0.tgz\":{\"integrity\":\"Z5UPAxzrjlWNNyGy6i65cJzzvgJ5D3T6wMvs+gWpY9d7qRhANrxqAp6LhxIgZhWEw18RfJTGcRxjuLIBr+m8XQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"67950f031ceb8e558d3721b2ea2eb9709cf3be02790f74fac0cbecfa05a963d77ba9184036bc6a029e8b871220661584c35f117c94c6711c63b8b201afe9bc5d\",\"name\":\"lightningcss-darwin-x64\",\"version\":\"1.33.0\"},\"lightningcss-freebsd-x64-1.32.0.tgz\":{\"integrity\":\"JCTigedEksZk3tHTTthnMdVfGf61Fky8Ji2E4YjUTEQX14xiy/lTzXnu1vwiZe3bYe0q+SpsSH/CTeDXK6WHig==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2424e281e74492c664ded1d34ed86731d55f19feb5164cbc262d84e188d44c4417d78c62cbf953cd79eed6fc2265eddb61ed2af92a6c487fc24de0d72ba5878a\",\"name\":\"lightningcss-freebsd-x64\",\"version\":\"1.32.0\"},\"lightningcss-freebsd-x64-1.33.0.tgz\":{\"integrity\":\"QQM/Ti/hQajJwCY+RiWuCZ9sdtI/XQk7nDK5vC8kkdwixezOlDgvDx7+RT+QjK6FcFT4MpsuoBnHIo/O3StRRg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"41033f4e2fe141a8c9c0263e4625ae099f6c76d23f5d093b9c32b9bc2f2491dc22c5ecce94382f0f1efe453f908cae857054f8329b2ea019c7228fcedd2b5146\",\"name\":\"lightningcss-freebsd-x64\",\"version\":\"1.33.0\"},\"lightningcss-linux-arm-gnueabihf-1.32.0.tgz\":{\"integrity\":\"x6rnnpRa2GL0zQOkt6rts3YDPzduLpWvwAF6EMhXFVZXD4tPrBkEFqzGowzCsIWsPjqSK+tyNEODUBXeeVHSkw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c7aae79e945ad862f4cd03a4b7aaedb376033f376e2e95afc0017a10c8571556570f8b4fac190416acc6a30cc2b085ac3e3a922beb723443835015de7951d293\",\"name\":\"lightningcss-linux-arm-gnueabihf\",\"version\":\"1.32.0\"},\"lightningcss-linux-arm-gnueabihf-1.33.0.tgz\":{\"integrity\":\"N7FVBe6iS24MlM6R/4RBTxGhQheZGs7tiQ9U32UtF75NzP5Q7xWPRqLBCKxlRQRk3rY1jCIPLzx7WzOhuUIRLQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"37b15505eea24b6e0c94ce91ff84414f11a14217991aceed890f54df652d17be4dccfe50ef158f46a2c108ac65450464deb6358c220f2f3c7b5b33a1b942112d\",\"name\":\"lightningcss-linux-arm-gnueabihf\",\"version\":\"1.33.0\"},\"lightningcss-linux-arm64-gnu-1.32.0.tgz\":{\"integrity\":\"0nnMyoyOLRJXfbMOilaSRcLH3Jw5z9HDNGfT/gwCPgaDjnx0i8w7vBzFLFR1f6CMLKF8gVbebmkUN3fa/kQJpQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d279ccca8c8e2d12577db30e8a569245c2c7dc9c39cfd1c33467d3fe0c023e06838e7c748bcc3bbc1cc52c54757fa08c2ca17c8156de6e69143777dafe4409a5\",\"name\":\"lightningcss-linux-arm64-gnu\",\"version\":\"1.32.0\"},\"lightningcss-linux-arm64-gnu-1.33.0.tgz\":{\"integrity\":\"j2v/itmy4HlNxlc6voKXYgBqNi0Ng2LShg4z7GufpEgs05P+2suBVyi9I6YHq5uoVFx9ETin3eCEhLVyXGQnKg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8f6bff8ad9b2e0794dc6573abe829762006a362d0d8362d2860e33ec6b9fa4482cd393fedacb815728bd23a607ab9ba8545c7d1138a7dde08484b5725c64272a\",\"name\":\"lightningcss-linux-arm64-gnu\",\"version\":\"1.33.0\"},\"lightningcss-linux-arm64-musl-1.32.0.tgz\":{\"integrity\":\"UpQkoenr4UJEzgVIYpI80lDFvRmPVg6oqboNHfoH4CQIfNA+HOrZ7Mo7KZP02dC6LjghPQJeBsvXhJod/wnIBg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"529424a1e9ebe14244ce054862923cd250c5bd198f560ea8a9ba0d1dfa07e024087cd03e1cead9ecca3b2993f4d9d0ba2e38213d025e06cbd7849a1dff09c806\",\"name\":\"lightningcss-linux-arm64-musl\",\"version\":\"1.32.0\"},\"lightningcss-linux-arm64-musl-1.33.0.tgz\":{\"integrity\":\"yiO5ROMuYQgXbC60yjZU5CYSFZGKXL0HFATXt9mHJn1+zW55oCtMI9NfcVhYLMFDL7gV7oBPon/EmMMGg2OvtQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ca23b944e32e6108176c2eb4ca3654e4261215918a5cbd071404d7b7d987267d7ecd6e79a02b4c23d35f7158582cc1432fb815ee804fa27fc498c3068363afb5\",\"name\":\"lightningcss-linux-arm64-musl\",\"version\":\"1.33.0\"},\"lightningcss-linux-x64-gnu-1.32.0.tgz\":{\"integrity\":\"V7Qr52IhZmdKPVr+Vtw8o+WLsQJYCTd8loIfpDaMRWGUZfBOYEJeyJIkqGIDMZPwPx24pUMfwSxxI8phr/MbOA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"57b42be7622166674a3d5afe56dc3ca3e58bb1025809377c96821fa4368c45619465f04e60425ec89224a862033193f03f1db8a5431fc12c7123ca61aff31b38\",\"name\":\"lightningcss-linux-x64-gnu\",\"version\":\"1.32.0\"},\"lightningcss-linux-x64-gnu-1.33.0.tgz\":{\"integrity\":\"ar+Ju7LmcN0Jo4FpL4hpFybwNG9/3A/Br5KW2n2jyODg3MEZXaDYADdemoNS+BDNfMgKvylJLj4S5tyRActuAg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6abf89bbb2e670dd09a381692f88691726f0346f7fdc0fc1af9296da7da3c8e0e0dcc1195da0d800375e9a8352f810cd7cc80abf29492e3e12e6dc9101cb6e02\",\"name\":\"lightningcss-linux-x64-gnu\",\"version\":\"1.33.0\"},\"lightningcss-linux-x64-musl-1.32.0.tgz\":{\"integrity\":\"bYcLp+Vb0awsiXg/80uCRezCYHNg1/l3mt0gzHnWV9XP1W5sKa5/TCdGWaR/zBM2PeF/HbsQv/j2URNOiVuxWg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6d870ba7e55bd1ac2c89783ff34b8245ecc2607360d7f9779add20cc79d657d5cfd56e6c29ae7f4c274659a47fcc13363de17f1dbb10bff8f651134e895bb15a\",\"name\":\"lightningcss-linux-x64-musl\",\"version\":\"1.32.0\"},\"lightningcss-linux-x64-musl-1.33.0.tgz\":{\"integrity\":\"RYiYbkokw0trfKqqzfF55lginwEPrD3OJDfTuJzFs1MK6iFnDenaz1fqLLtX4ITG3OktJQXOeTaw1awrBAlZPw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4588986e4a24c34b6b7caaaacdf179e658229f010fac3dce2437d3b89cc5b3530aea21670de9dacf57ea2cbb57e084c6dce92d2505ce7936b0d5ac2b0409593f\",\"name\":\"lightningcss-linux-x64-musl\",\"version\":\"1.33.0\"},\"lightningcss-win32-arm64-msvc-1.32.0.tgz\":{\"integrity\":\"8SbC8BR40pS6baCM8sbtYDSwEVQd4JlFTOlaD3gWGHfThTcABnNDBda6eTZeqbofalIJhFx0qKzgHJmcPTnGdw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f126c2f01478d294ba6da08cf2c6ed6034b011541de099454ce95a0f78161877d385370006734305d6ba79365ea9ba1f6a5209845c74a8ace01c999c3d39c677\",\"name\":\"lightningcss-win32-arm64-msvc\",\"version\":\"1.32.0\"},\"lightningcss-win32-arm64-msvc-1.33.0.tgz\":{\"integrity\":\"1K+MPfLSFVpphzpdbfkhlWk6wBrTObBzS2T6db10PNOZgR9GoVsAWzwNyuhUYYbTp23j+4RrncfujZ4uAzXvwA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d4af8c3df2d2155a69873a5d6df92195693ac01ad339b0734b64fa75bd743cd399811f46a15b005b3c0dcae8546186d3a76de3fb846b9dc7ee8d9e2e0335efc0\",\"name\":\"lightningcss-win32-arm64-msvc\",\"version\":\"1.33.0\"},\"lightningcss-win32-x64-msvc-1.32.0.tgz\":{\"integrity\":\"Amq9B/SoZYdDi1kFrojnoqPLxYhQ4Wo5XiL8EVJrVsB8ARoC1PWW6VGtT0WKCemjy8aC+louJnjS7U18x3b06Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"026abd07f4a86587438b5905ae88e7a2a3cbc58850e16a395e22fc11526b56c07c011a02d4f596e951ad4f458a09e9a3cbc682fa5a2e2678d2ed4d7cc776f4e9\",\"name\":\"lightningcss-win32-x64-msvc\",\"version\":\"1.32.0\"},\"lightningcss-win32-x64-msvc-1.33.0.tgz\":{\"integrity\":\"OlEICDx/Xl0FqSp4bry8zFnCvGpig3Gl4gCquvYwHuqJKEC1+n9NgDniFvqHGmMv1ZkqDJrDqKKSykTDX+ehuA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3a5108083c7f5e5d05a92a786ebcbccc59c2bc6a628371a5e200aabaf6301eea892840b5fa7f4d8039e216fa871a632fd5992a0c9ac3a8a292ca44c35fe7a1b8\",\"name\":\"lightningcss-win32-x64-msvc\",\"version\":\"1.33.0\"},\"lines-and-columns-1.2.4.tgz\":{\"integrity\":\"7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ef297295eb1943f3d5dbd8e110397751f8e8e995fb802a89af917b3caaea73ddefedfcd2ca6b75069c0453c9c0517b3cab3cefaa16e384ae50660e8cb7f1e406\",\"name\":\"lines-and-columns\",\"version\":\"1.2.4\"},\"locate-path-3.0.0.tgz\":{\"integrity\":\"7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ec03bbe3cc169c884da80b9ab72d995879101d148d7cf548b0f21fc043963b6d8099aa15ad66af94e70c4799f34cb358be9dfa5f6db4fe669a46cade7351bae4\",\"name\":\"locate-path\",\"version\":\"3.0.0\"},\"lodash-4.18.1.tgz\":{\"integrity\":\"dMInicTPVE8d1e5otfwmmjlxkZoUpiVLwyeTdUsi/Caj/gfzzblBcCE5sRHV/AsjuCmxWrte2TNGSYuCeCq+0Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"74c22789c4cf544f1dd5ee68b5fc269a3971919a14a6254bc32793754b22fc26a3fe07f3cdb941702139b111d5fc0b23b829b15abb5ed93346498b82782abed1\",\"name\":\"lodash\",\"version\":\"4.18.1\"},\"lodash.escaperegexp-4.1.2.tgz\":{\"integrity\":\"TM9YBvyC84ZxE3rgfefxUWiQKLilstD6k7PTGt6wfbtXF8ixIJLOL3VYyV/z+ZiPLsVxAsKAFVwWlWeb2Y8Yyw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4ccf5806fc82f38671137ae07de7f151689028b8a5b2d0fa93b3d31adeb07dbb5717c8b12092ce2f7558c95ff3f9988f2ec57102c280155c1695679bd98f18cb\",\"name\":\"lodash.escaperegexp\",\"version\":\"4.1.2\"},\"lodash.isequal-4.5.0.tgz\":{\"integrity\":\"pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a43a3796ef0985f8ea96ce8690c8296a1b05f640b26b2860ca48f22cc3454ca5aba5574042d6320789ae00c5a8cc10788a0fddb56026b0cc4b108f30bb3f8361\",\"name\":\"lodash.isequal\",\"version\":\"4.5.0\"},\"log-symbols-6.0.0.tgz\":{\"integrity\":\"i24m8rpwhmPIS4zscNzK6MSEhk0DUWa/8iYQWxhffV8jkI4Phvs3F+quL5xvS0gdQR0FyTCMMH33Y78dDTzzIw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8b6e26f2ba708663c84b8cec70dccae8c484864d035166bff226105b185f7d5f23908e0f86fb3717eaae2f9c6f4b481d411d05c9308c307df763bf1d0d3cf323\",\"name\":\"log-symbols\",\"version\":\"6.0.0\"},\"lowercase-keys-2.0.0.tgz\":{\"integrity\":\"tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b6a357ad2efca0c384ef734cc4ae0430b42c428c167fc8caa281fd83bc4f6af453ef4e91e9b91027a0d8d937bb42e91a66cba5c5adf4c10edb934a66e1788798\",\"name\":\"lowercase-keys\",\"version\":\"2.0.0\"},\"lru-cache-11.5.2.tgz\":{\"integrity\":\"4pfM1Ff0x50o0tQwb5ucw/RzNyD0/YJME6IVcStalZuMWxdt3sR3huStTtxz4PUmvZfRguvDejasvQ2kifR11g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e297ccd457f4c79d28d2d4306f9b9cc3f4733720f4fd824c13a215712b5a959b8c5b176ddec47786e4ad4edc73e0f526bd97d182ebc37a36acbd0da489f475d6\",\"name\":\"lru-cache\",\"version\":\"11.5.2\"},\"lru-cache-5.1.1.tgz\":{\"integrity\":\"KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2a9340450037230bfe8d3034bad51555bae1f8996baf516fd1ee7a186cc014e5cdedd93f16f89a0d6f0b1e62b9d8395c1f858fda7ea023cbcdd5a7ac045828f7\",\"name\":\"lru-cache\",\"version\":\"5.1.1\"},\"lru-cache-6.0.0.tgz\":{\"integrity\":\"Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"268e9d274e029928eece7c09492de951e5a677f1f47df4e59175e0c198be7aad540a6a90c0287e78bb183980b063df758b615a878875044302c78a938466ec88\",\"name\":\"lru-cache\",\"version\":\"6.0.0\"},\"lucide-react-1.31.0.tgz\":{\"integrity\":\"G8u2eEtoHUnUa9f8lbvqDhCiORMnYLdUEo06EEG9MQvHQrInKcX3Pa2TH39MM5qyzRcWETxB0+aOwAPI1g1kEg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1bcbb6784b681d49d46bd7fc95bbea0e10a239132760b754128d3a1041bd310bc742b22729c5f73dad931f7f4c339ab2cd1716113c41d3e68ec003c8d60d6412\",\"name\":\"lucide-react\",\"version\":\"1.31.0\"},\"lz-string-1.5.0.tgz\":{\"integrity\":\"h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8796e0256a7124db306d4eea0ab574b4829009a4b76e53c3aea296c7e431ceeccbd73194ce28fd5c258bad22ec24fbb9b7e79603fc9c7adcd800ee4838c71601\",\"name\":\"lz-string\",\"version\":\"1.5.0\"},\"magic-string-0.30.21.tgz\":{\"integrity\":\"vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"bddd85e1853211728670b1e8abe4c4c828f1b9e49e1e7171cb28cda7cd328345d5e2f5219c37abfe5bef96a33f6ab0796d740de4adbfde88a7c82472c7c4f609\",\"name\":\"magic-string\",\"version\":\"0.30.21\"},\"magicast-0.5.4.tgz\":{\"integrity\":\"llBEhWm1SacoRwgHUoQJYtwp4PBLF4faQi5TCpIGyGs9n4y5+juI0tDgyKIfpqxckRHaHzouUEph3THklWh03w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9650448569b549a72847080752840962dc29e0f04b1787da422e530a9206c86b3d9f8cb9fa3b88d2d0e0c8a21fa6ac5c9111da1f3a2e504a61dd31e4956874df\",\"name\":\"magicast\",\"version\":\"0.5.4\"},\"magnet-uri-7.0.10.tgz\":{\"integrity\":\"PjS/xWnvq9RK6P/8+dWG7ka3mFGGt/R9xiq5A+P8a8MpE40Dw6yNyTdjCFuJHS3apn6p5bJUCzMSceW3VxezRA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3e34bfc569efabd44ae8fffcf9d586ee46b7985186b7f47dc62ab903e3fc6bc329138d03c3ac8dc93763085b891d2ddaa67ea9e5b2540b331271e5b75717b344\",\"name\":\"magnet-uri\",\"version\":\"7.0.10\"},\"make-dir-4.0.0.tgz\":{\"integrity\":\"hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8577544d960854eb75131fff8c0422fb04d9669529c018ffd10b0ecea7a06f7ac630c78989212ee712c79d87c1ad1578447dbe38248e3bde48b3fef1d562786f\",\"name\":\"make-dir\",\"version\":\"4.0.0\"},\"matcher-3.0.0.tgz\":{\"integrity\":\"OkeDaAZ/bQCxeFAozM55PKcKU0yJMPGifLwV4Qgjitu+5MoAfSQN4lsLJeXZ1b8w0x+/Emda6MZgXS1jvsapng==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3a478368067f6d00b1785028ccce793ca70a534c8930f1a27cbc15e108238adbbee4ca007d240de25b0b25e5d9d5bf30d31fbf12675ae8c6605d2d63bec6a99e\",\"name\":\"matcher\",\"version\":\"3.0.0\"},\"math-intrinsics-1.1.0.tgz\":{\"integrity\":\"/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"fc85ed6f0124e474cfc84c32297ea11a4617c4cf676e3eb807e8a55499c2fd1e81d291f91b85776f4a556cbec3063e2d921040a696d05257fa17a5e5f4b1eed6\",\"name\":\"math-intrinsics\",\"version\":\"1.1.0\"},\"mdn-data-2.27.1.tgz\":{\"integrity\":\"9Yubnt3e8A0OKwxYSXyhLymGW4sCufcLG6VdiDdUGVkPhpqLxlvP5vl1983gQjJl3tqbrM731mjaZaP68AgosQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f58b9b9edddef00d0e2b0c58497ca12f29865b8b02b9f70b1ba55d88375419590f869a8bc65bcfe6f975f7cde0423265deda9baccef7d668da65a3faf00828b1\",\"name\":\"mdn-data\",\"version\":\"2.27.1\"},\"media-typer-1.1.1.tgz\":{\"integrity\":\"yz3xRaG20c6/BOzvYoDaGtPmGscs7YivItZEEqe6GbwNfHuxu9YNmvnEkMzKldAGY4/80pRcQRZSEnhquk9XuQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"cb3df145a1b6d1cebf04ecef6280da1ad3e61ac72ced88af22d64412a7ba19bc0d7c7bb1bbd60d9af9c490ccca95d006638ffcd2945c41165212786aba4f57b9\",\"name\":\"media-typer\",\"version\":\"1.1.1\"},\"merge-descriptors-2.0.0.tgz\":{\"integrity\":\"Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4a7937d785796b214b869ddf914444b9be96b6305f3dd08f6352e7f3ff26ba7b8bba2621b000600555aca33006f8c58c6d512f71d7296e2f51ef0c36da5f50de\",\"name\":\"merge-descriptors\",\"version\":\"2.0.0\"},\"merge-stream-2.0.0.tgz\":{\"integrity\":\"abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"69bbffa8e72e3df9375113df0f39995352ca9aec3c913fb49c81ef2ab2a016bc227e897f76859c740e19aac590f0436b14a91debb31fa68fcba2f6c852c6eddf\",\"name\":\"merge-stream\",\"version\":\"2.0.0\"},\"merge2-1.4.1.tgz\":{\"integrity\":\"8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f2aed51203095b827cb5c7d53f2f20d3d35c43065d6f0144aa17bf5999282338e7ff74c60f0b4e098b571b10373bcb4fce97330820e0bfe3f63f9cb4d1924e3a\",\"name\":\"merge2\",\"version\":\"1.4.1\"},\"micromatch-4.0.8.tgz\":{\"integrity\":\"PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3d7c1f06162ed210423f0f039f413e58361beda7f77522d558a8b71c6bfce08745e13c85a02d32b3115dd06a31c3b9d2bf84ff3f3109431b18b0488508aa3604\",\"name\":\"micromatch\",\"version\":\"4.0.8\"},\"mime-2.6.0.tgz\":{\"integrity\":\"USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5123e431e113df5ace3226abb013481d928b1a0bca73f2eb8e87c09c194eb6d7f96a346faa2440f10b1e9db728a1cb4ae9de93b3a6aa657040f976e42ad86242\",\"name\":\"mime\",\"version\":\"2.6.0\"},\"mime-3.0.0.tgz\":{\"integrity\":\"jSCU7/VB1loIWBZe14aEYHU/+1UMEHoaO7qxCOVJOw9GgH72VAWppxNcjU+x9a2k3GSIBXNKxXQFqRvvZ7vr3A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8d2094eff541d65a0858165ed7868460753ffb550c107a1a3bbab108e5493b0f46807ef65405a9a7135c8d4fb1f5ada4dc648805734ac57405a91bef67bbebdc\",\"name\":\"mime\",\"version\":\"3.0.0\"},\"mime-db-1.52.0.tgz\":{\"integrity\":\"sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b0f538b95edd625bed589c70c311c3d0fba285536213b4f201b439496c43081f66518bce82ba103b061040e28f27c0886c4fb51135653a82b5502da7537818be\",\"name\":\"mime-db\",\"version\":\"1.52.0\"},\"mime-db-1.54.0.tgz\":{\"integrity\":\"aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"694e4426e20dd960de982700a76bc505fa7f9b810085626750d492c348b1b3bfe45db77a3e0eb8126c0990d745841f1a5add6c1f60935eb2f1a3f880195de83d\",\"name\":\"mime-db\",\"version\":\"1.54.0\"},\"mime-types-2.1.35.tgz\":{\"integrity\":\"ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"64363e6cf9b9cd34c5f98a42ac053d9cad148080983d3d10b53d4d65616fe2cfbe4cd91c815693d20ebee11dae238323423cf2b07075cf1b962f9d21cda7978b\",\"name\":\"mime-types\",\"version\":\"2.1.35\"},\"mime-types-3.0.2.tgz\":{\"integrity\":\"Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2db833764d21e23ba843d7c22975b86f2d1426a8fe9ce3ab23d309d6c4a3e2723c688d9ea35aa6bd01227b8543d6096c4b6e749f5e4bb16b18b42ba0892b52e4\",\"name\":\"mime-types\",\"version\":\"3.0.2\"},\"mimic-fn-2.1.0.tgz\":{\"integrity\":\"OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3aa6ce939a0441e019f165d6c9d96ef47263cfd59574422f6a63027179aea946234e49c7fecaac5af850def830285451d47a63bcd04a437ee76c9818cc6a8672\",\"name\":\"mimic-fn\",\"version\":\"2.1.0\"},\"mimic-fn-3.1.0.tgz\":{\"integrity\":\"Ysbi9uYW9hFyfrThdDEQuykN4Ey6BuwPD2kpI5ES/nFTDn/98yxYNLZJcgUAKPT/mcrLLKaGzJR9YVxJrIdASQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"62c6e2f6e616f611727eb4e1743110bb290de04cba06ec0f0f6929239112fe71530e7ffdf32c5834b64972050028f4ff99cacb2ca686cc947d615c49ac874049\",\"name\":\"mimic-fn\",\"version\":\"3.1.0\"},\"mimic-function-5.0.1.tgz\":{\"integrity\":\"VP79XUPxV2CigYP3jWwAUFSku2aKqBH7uTAapFWCBqutsbmDo96KY5o8uh6U+/YSIn5OxJnXp73beVkpqMIGhA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"54fefd5d43f15760a28183f78d6c005054a4bb668aa811fbb9301aa4558206abadb1b983a3de8a639a3cba1e94fbf612227e4ec499d7a7bddb795929a8c20684\",\"name\":\"mimic-function\",\"version\":\"5.0.1\"},\"mimic-response-1.0.1.tgz\":{\"integrity\":\"j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8f911cb67907eda99f57fab91e09a86a5d60d901c5251ada3ad9b1d09a48aa4c6106123f9494a5d67329438e6155aaf03444cea161229a7759e102b4447c6ec5\",\"name\":\"mimic-response\",\"version\":\"1.0.1\"},\"mimic-response-3.1.0.tgz\":{\"integrity\":\"z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"cf4c9623ee050ebaf0792f199ade048f91dd266932d79f8bd9ee96827dfe88ae5f5b36fa4f77e1345ab6f8c79345bd3ae1ce96af837fc2fd03cd04e33731cd19\",\"name\":\"mimic-response\",\"version\":\"3.1.0\"},\"min-indent-1.0.1.tgz\":{\"integrity\":\"I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"23d8f0327d3b4b2fc8c0e8f7cd59158a4d894ef8296b29036448a02fa471e8df4b6cccb0c1448cb71113fbb955a032cb7773b7217c09c2fbae9ecf1407f1de02\",\"name\":\"min-indent\",\"version\":\"1.0.1\"},\"minimatch-10.2.6.tgz\":{\"integrity\":\"vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"be92d012cf952c2af59d4d015d2d3b99a628170943007d209e042ebadb71230bad0c510c1ead9b957fbcbe98310dd2b72753f08c22627a9efb3a2b536782e5d4\",\"name\":\"minimatch\",\"version\":\"10.2.6\"},\"minimatch-3.1.5.tgz\":{\"integrity\":\"VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5608d652c9e74fa9fe35493a799abbef37857695b62d60f33facc51ab09b1d789836e9790f3aa4d871d0e6e147d83356e576e9f3e8d5cda78db7de2cb04125e3\",\"name\":\"minimatch\",\"version\":\"3.1.5\"},\"minimatch-5.1.9.tgz\":{\"integrity\":\"7o1wEA2RyMP7Iu7GNba9vc0RWWGACJOCZBJX2GJWip0ikV+wcOsgVuY9uE8CPiyQhkGFSlhuSkZPavN7u1c2Fw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ee8d70100d91c8c3fb22eec635b6bdbdcd11596180089382641257d862568a9d22915fb070eb2056e63db84f023e2c908641854a586e4a464f6af37bbb573617\",\"name\":\"minimatch\",\"version\":\"5.1.9\"},\"minimatch-9.0.9.tgz\":{\"integrity\":\"OBwBN9AL4dqmETlpS2zasx+vTeWclWzkblfZk7KTA5j3jeOONz/tRCnZomUyvNg83wL5Zv9Ss6HMJXAgL8R2Yg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"381c0137d00be1daa61139694b6cdab31faf4de59c956ce46e57d993b2930398f78de38e373fed4429d9a26532bcd83cdf02f966ff52b3a1cc2570202fc47662\",\"name\":\"minimatch\",\"version\":\"9.0.9\"},\"minimist-1.2.8.tgz\":{\"integrity\":\"2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"db2c8047ca8190ddd8ba17896a7529582e54ddb6f9a2c0f2c0d07c4730d5943c031dba1c009bdeaaa8f5bbcf92543ee39164f8cafb070a95aaa96a80c5bd3308\",\"name\":\"minimist\",\"version\":\"1.2.8\"},\"minipass-7.1.3.tgz\":{\"integrity\":\"tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b44047a839c8a0cff5ad7304d738246bd83a43695ca029311cbb9cece0c9e41c5b3f977873667970682d5c092ee7ddb4d02c7b762b874ce61f4810fc9fa9a6f0\",\"name\":\"minipass\",\"version\":\"7.1.3\"},\"minizlib-3.1.0.tgz\":{\"integrity\":\"KZxYo1BUkWD2TVFLr0MQoM8vUUigWD3LlD83a/75BqC+4qE0Hb1Vo5v1FgcfaNXvfXzr+5EhQ6ing/CaBijTlw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"299c58a350549160f64d514baf4310a0cf2f5148a0583dcb943f376bfef906a0bee2a1341dbd55a39bf516071f68d5ef7d7cebfb912143a8a783f09a0628d397\",\"name\":\"minizlib\",\"version\":\"3.1.0\"},\"mkdirp-0.5.6.tgz\":{\"integrity\":\"FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"14ffa9f1107c396a45dd86410ab3f982d0039ad5c0a41e4030b9febddc80f8fcb10a3ac2b34d268f2528cecb0edf77300de4f7c0d19d2f127933ffd8aad1c027\",\"name\":\"mkdirp\",\"version\":\"0.5.6\"},\"mmdb-lib-3.0.3.tgz\":{\"integrity\":\"xQPoBXcNjjHiOvOraFBKtA++uNWF6aCVHL9dRKFXEov8eI3QJwtgiw3qApsonFT5SpoqsEVISUTg3HIDs2DiXw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c503e805770d8e31e23af3ab68504ab40fbeb8d585e9a0951cbf5d44a157128bfc788dd0270b608b0dea029b289c54f94a9a2ab045484944e0dc7203b360e25f\",\"name\":\"mmdb-lib\",\"version\":\"3.0.3\"},\"ms-2.1.3.tgz\":{\"integrity\":\"6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e85973b9b4cb646dc9d9afcd542025784863ceae68c601f268253dc985ef70bb2fa1568726afece715c8ebf5d73fab73ed1f7100eb479d23bfb57b45dd645394\",\"name\":\"ms\",\"version\":\"2.1.3\"},\"nanoid-3.3.18.tgz\":{\"integrity\":\"DTg4MJbGMWkfi6VZFdNt2/caMbQy4Ou+Op/hJQvGEWcnVfoA1QA+xzRKAzw9jD6+GVOOeYr/mIcuDSdug6F6+w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0d38383096c631691f8ba55915d36ddbf71a31b432e0ebbe3a9fe1250bc611672755fa00d5003ec7344a033c3d8c3ebe19538e798aff98872e0d276e83a17afb\",\"name\":\"nanoid\",\"version\":\"3.3.18\"},\"negotiator-1.0.0.tgz\":{\"integrity\":\"8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f0e7ecfc051087c31a11cae5ab9c4e5f4090f72a53179765efc9a394c35f38ad3c7f3a604c741140f07170f944b48c34c91a70b3e668ff7afee5645bcbbbb71a\",\"name\":\"negotiator\",\"version\":\"1.0.0\"},\"next-themes-0.4.6.tgz\":{\"integrity\":\"pZvgD5L0IEvX5/9GWyHMf3m8BKiVQwsCMHfoFosXtXBMnaS0ZnIJ9ST4b4NqLVKDEm8QBxoNNGNaBv2JNF6XNA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a59be00f92f4204bd7e7ff465b21cc7f79bc04a895430b023077e8168b17b5704c9da4b4667209f524f86f836a2d5283126f10071a0d34635a06fd89345e9734\",\"name\":\"next-themes\",\"version\":\"0.4.6\"},\"node-abi-4.33.0.tgz\":{\"integrity\":\"vLBWCKb+7LWsX+TbfzWOkw0W81m377tyx3hOweBTjO43CXZnRGS1/JPWs20fr0PgZyDXk6ROYrylsEycK8raDA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"bcb05608a6feecb5ac5fe4db7f358e930d16f359b7efbb72c7784ec1e0538cee370976674464b5fc93d6b36d1faf43e06720d793a44e62bca5b04c9c2bcada0c\",\"name\":\"node-abi\",\"version\":\"4.33.0\"},\"node-addon-api-8.9.2.tgz\":{\"integrity\":\"VijLXbi3UACN69I0JVXJsX4tjACjNoQDgv2gTF6sx2wWEi8tkSg2eX8p5gSIFi8z2+DL3oHmY6OyKce38SDolg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5628cb5db8b750008debd2342555c9b17e2d8c00a336840382fda04c5eacc76c16122f2d912836797f29e60488162f33dbe0cbde81e663a3b229c7b7f120e896\",\"name\":\"node-addon-api\",\"version\":\"8.9.2\"},\"node-api-version-0.2.1.tgz\":{\"integrity\":\"2xP/IGGMmmSQpI1+O/k72jF/ykvZ89JeuKX3TLJAYPDVLUalrshrLHkeVcCCZqG/eEa635cr8IBYzgnDvM2O8Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"db13ff20618c9a6490a48d7e3bf93bda317fca4bd9f3d25eb8a5f74cb24060f0d52d46a5aec86b2c791e55c08266a1bf7846badf972bf08058ce09c3bccd8ef1\",\"name\":\"node-api-version\",\"version\":\"0.2.1\"},\"node-domexception-1.0.0.tgz\":{\"integrity\":\"/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"fe3299a0ca70d05f06470978fde2d138f03771f717b4b0293f44332e6513fc7b8f0995b207b218f59acc78ac363bf9c522a3d00773d533d6989b4177d760170d\",\"name\":\"node-domexception\",\"version\":\"1.0.0\"},\"node-fetch-3.3.2.tgz\":{\"integrity\":\"dRB78srN/l6gqWulah9SrxeYnxeddIG30+GOqK/9OlLVyLg3HPnr6SqOWTWOXKRwC2eGYCkZ59NNuSgvSrpgOA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"75107bf2cacdfe5ea0a96ba56a1f52af17989f179d7481b7d3e18ea8affd3a52d5c8b8371cf9ebe92a8e59358e5ca4700b6786602919e7d34db9282f4aba6038\",\"name\":\"node-fetch\",\"version\":\"3.3.2\"},\"node-gyp-12.4.0.tgz\":{\"integrity\":\"OMcPNvqTCFUnNaBlmdgq+lfNqY7gTiSmNRDjY3uAXRyudeKZEZxu3CLtjMQrx4zZxCX2b/mpNqTtwuCJgXhHkw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"38c70f36fa9308552735a06599d82afa57cda98ee04e24a63510e3637b805d1cae75e299119c6edc22ed8cc42bc78cd9c425f66ff9a936a4edc2e08981784793\",\"name\":\"node-gyp\",\"version\":\"12.4.0\"},\"node-gyp-build-4.8.4.tgz\":{\"integrity\":\"LA4ZjwlnUblHVgq0oBF3Jl/6h/Nvs5fzBLwdEF4nuxnFdsfajde4WfxtJr3CaiH+F6ewcIB/q4jQ4UzPyid+CQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2c0e198f096751b947560ab4a01177265ffa87f36fb397f304bc1d105e27bb19c576c7da8dd7b859fc6d26bdc26a21fe17a7b070807fab88d0e14ccfca277e09\",\"name\":\"node-gyp-build\",\"version\":\"4.8.4\"},\"node-int64-0.4.0.tgz\":{\"integrity\":\"O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3b9973f75c5239ea173fa0ee9721df965a6af84834d0c5a2b5921bb4f7e8484bea207765e607dc63a858cc35a78f4a83e6dcf9d8f234f2ef6a52f49579405e1f\",\"name\":\"node-int64\",\"version\":\"0.4.0\"},\"node-releases-2.0.53.tgz\":{\"integrity\":\"D9UOmYG3UH1V+ENW56t5QXBwJw1YEY18ruVeus89Rw+SyIgjPkCO84bRzO3uNIYosJbNwiabWVn48o3uJLjxFQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0fd50e9981b7507d55f84356e7ab79417070270d58118d7caee55ebacf3d470f92c888233e408ef386d1ccedee348628b096cdc2269b5959f8f28dee24b8f115\",\"name\":\"node-releases\",\"version\":\"2.0.53\"},\"nopt-9.0.0.tgz\":{\"integrity\":\"Zhq3a+yFKrYwSBluL4H9XP3m3y5uvQkB/09CwDruCiRmR/UJYnn9W4R48ry0uGC70aeTPKLynBtscP9efFFcPw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"661ab76bec852ab63048196e2f81fd5cfde6df2e6ebd0901ff4f42c03aee0a246647f5096279fd5b8478f2bcb4b860bbd1a7933ca2f29c1b6c70ff5e7c515c3f\",\"name\":\"nopt\",\"version\":\"9.0.0\"},\"normalize-url-6.1.0.tgz\":{\"integrity\":\"DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0e52fe5f03b2dcdc4043cc6e0b4a243e02b8ea2b953402b4d5837b46e79806aa85786b018d5f5798203301d82dfbaebb6c297990f87d12a28a0f09da3c6d48ec\",\"name\":\"normalize-url\",\"version\":\"6.1.0\"},\"npm-run-path-4.0.1.tgz\":{\"integrity\":\"S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4b8f16cd95bbefbce1348ae7ee0c4e94848d02a8bd642fee4059d175b7881e1661080e94aa990e4fc4f51bb06f7dd80fe04afc805e2c51b692d22ed0bc87c25b\",\"name\":\"npm-run-path\",\"version\":\"4.0.1\"},\"npm-run-path-6.0.0.tgz\":{\"integrity\":\"9qny7Z9DsQU8Ou39ERsPU4OZQlSTP47ShQzuKZ6PRXpYLtIFgl/DEBYEXKlvcEa+9tHVcK8CF81Y2V72qaZhWA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f6a9f2ed9f43b1053c3aedfd111b0f5383994254933f8ed2850cee299e8f457a582ed205825fc31016045ca96f7046bef6d1d570af0217cd58d95ef6a9a66158\",\"name\":\"npm-run-path\",\"version\":\"6.0.0\"},\"object-assign-4.1.1.tgz\":{\"integrity\":\"rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ac98134279149c7d6c170f324fa552537cc3dec5a6bbab19848b1e63c557f8646edcfe85ec5bbe24d0e85df9251256cb2529dcdc55101d57b8714e618fe05c52\",\"name\":\"object-assign\",\"version\":\"4.1.1\"},\"object-inspect-1.13.4.tgz\":{\"integrity\":\"W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5baee22e5e09d845c41936df78709f7eb8c37e2b6f2c0360d14957df01545124f1f762974457a0307515812a84fb0be101b8b85aa8c683d733cac4d5d84a5b7b\",\"name\":\"object-inspect\",\"version\":\"1.13.4\"},\"object-keys-1.1.1.tgz\":{\"integrity\":\"NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"36e00449439432b9485ce7c72b30fa6e93eeded62ddf1be335d44843e15e4f494d6f82bc591ef409a0f186e360b92d971be1a39323303b3b0de5992d2267e12c\",\"name\":\"object-keys\",\"version\":\"1.1.1\"},\"object-treeify-1.1.33.tgz\":{\"integrity\":\"EFVjAYfzWqWsBMRHPMAXLCDIJnpMhdWAqR7xG6M6a2cs6PMFpl/+Z20w9zDW4vkxOFfddegBKq9Rehd0bxWE7A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1055630187f35aa5ac04c4473cc0172c20c8267a4c85d580a91ef11ba33a6b672ce8f305a65ffe676d30f730d6e2f9313857dd75e8012aaf517a17746f1584ec\",\"name\":\"object-treeify\",\"version\":\"1.1.33\"},\"obug-2.1.4.tgz\":{\"integrity\":\"4a+OsYv9UktOJKE+l1A4OufDgdRF9PifWj+tJnHURo/P+WOxpG4GzUFL9qCalmWauao6ogiG+QvnCovwPoyAWA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e1af8eb18bfd524b4e24a13e9750383ae7c381d445f4f89f5a3fad2671d4468fcff963b1a46e06cd414bf6a09a96659ab9aa3aa20886f90be70a8bf03e8c8058\",\"name\":\"obug\",\"version\":\"2.1.4\"},\"on-exit-leak-free-2.1.2.tgz\":{\"integrity\":\"0eJJY6hXLGf1udHwfNftBqH+g73EU4B504nZeKpz1sYRKafAghwxEJunB2O7rDZkL4PGfsMVnTXZ2EjibbqcsA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d1e24963a8572c67f5b9d1f07cd7ed06a1fe83bdc4538079d389d978aa73d6c61129a7c0821c31109ba70763bbac36642f83c67ec3159d35d9d848e26dba9cb0\",\"name\":\"on-exit-leak-free\",\"version\":\"2.1.2\"},\"on-finished-2.4.1.tgz\":{\"integrity\":\"oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a15973920dc4340842936cddbfb209c1dfd0503e33d91c51c2991c198f29b0255c09864dab8c189d55802c733e6ebb6e26378f5a2605fc2966b83afc0a1e7e92\",\"name\":\"on-finished\",\"version\":\"2.4.1\"},\"once-1.4.0.tgz\":{\"integrity\":\"lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"94d689808fb643951140191c7042874d038f697754c67659125413658d0c15402e684a9ed44f8dcaf81dcff688c8d8ba67d3333b976fd47f27e7cfc610ba77fb\",\"name\":\"once\",\"version\":\"1.4.0\"},\"onetime-5.1.2.tgz\":{\"integrity\":\"kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"91ba5a4921894d674063928f55e30e2974ab3edafc0bc0bbc287496dcb1de758d19e60fe199bbc63456853a0e6e59e2f5abd0883fd4d2ae59129fee3e5a6984a\",\"name\":\"onetime\",\"version\":\"5.1.2\"},\"onetime-7.0.0.tgz\":{\"integrity\":\"VXJjc87FScF88uafS3JllDgvAm+c/Slfz06lorj2uAY34rlUu0Nt+v8wreiImcrgAjjIHp1rXpTDlLOGw29WwQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"55726373cec549c17cf2e69f4b726594382f026f9cfd295fcf4ea5a2b8f6b80637e2b954bb436dfaff30ade88899cae00238c81e9d6b5e94c394b386c36f56c1\",\"name\":\"onetime\",\"version\":\"7.0.0\"},\"open-11.0.1.tgz\":{\"integrity\":\"NzwMUB6C1D0+Kd+9iMS/H4k+Ck3cTX6Ckyfr/gAGlmvSE1LUQZnEZvWBi4PYmMwH/S5SMeTXnE+9uAz8uF+pWw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"373c0c501e82d43d3e29dfbd88c4bf1f893e0a4ddc4d7e829327ebfe0006966bd21352d44199c466f5818b83d898cc07fd2e5231e4d79c4fbdb80cfcb85fa95b\",\"name\":\"open\",\"version\":\"11.0.1\"},\"open-8.4.2.tgz\":{\"integrity\":\"7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ef1f353422fbd7da0d6ecabfde687e855ac05a616e11852aaeafc8c37914cc7f117b2a53f5043404ba094bbfc6f64e8df355e35b8a875ad8d6c1effd78bcb511\",\"name\":\"open\",\"version\":\"8.4.2\"},\"ora-8.2.0.tgz\":{\"integrity\":\"weP+BZ8MVNnlCm8c0Qdc1WSWq4Qn7I+9CJGm7Qali6g44e/PUzbjNqJX5NJ9ljlNMosfJvg1fKEGILklK9cwnw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c1e3fe059f0c54d9e50a6f1cd1075cd56496ab8427ec8fbd0891a6ed06a58ba838e1efcf5336e336a257e4d27d96394d328b1f26f8357ca10620b9252bd7309f\",\"name\":\"ora\",\"version\":\"8.2.0\"},\"p-cancelable-2.1.1.tgz\":{\"integrity\":\"BZOr3nRQHOntUjTrH8+Lh54smKHoHyur8We1V8DSMVrl5A2malOOwuJRnKRDjSnkoeBh4at6BwEnb5I7Jl31wg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0593abde74501ce9ed5234eb1fcf8b879e2c98a1e81f2babf167b557c0d2315ae5e40da66a538ec2e2519ca4438d29e4a1e061e1ab7a0701276f923b265df5c2\",\"name\":\"p-cancelable\",\"version\":\"2.1.1\"},\"p-limit-2.3.0.tgz\":{\"integrity\":\"//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ffff3c985592271f25c42cf07400014c92f6332581d76f9e218ecc0cbd92a8b98091e294f6ac51bd6b92c938e6dc5526a4110cb857dc90022a11a546503c5beb\",\"name\":\"p-limit\",\"version\":\"2.3.0\"},\"p-limit-3.1.0.tgz\":{\"integrity\":\"TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4d839a9ccdf01b0346b193767154d83c0af0e39e319d78f9aa6585d5b12801ce3e714fe897b19587ba1d7af8e9d4534776e1dcdca64c70576ec54e5773ab8945\",\"name\":\"p-limit\",\"version\":\"3.1.0\"},\"p-locate-3.0.0.tgz\":{\"integrity\":\"x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c7ed76c3f4e8fb81857e0261044a620dc2e8cd12467a063e122effcf4b522e4326c4664dc9b54c49f5a3f5a267f19e4573b74150d24e39580fbf61fb230ba549\",\"name\":\"p-locate\",\"version\":\"3.0.0\"},\"p-try-2.2.0.tgz\":{\"integrity\":\"R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4789cf0154c053407d0f7e7f1a4dee25fffb5d86d0732a2148a76f03121148d821165e1eef5855a069c1350cfd716697c4ed88d742930bede331dbefa0ac3a75\",\"name\":\"p-try\",\"version\":\"2.2.0\"},\"parent-module-1.0.1.tgz\":{\"integrity\":\"GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"190d84591a5057cfe8f80c3c62ab5f6593df3515996246e2744f64e6ba65fe10b7bed1c705f1a6d887e2eaa595f9ca031a4ad42990311372e8b7991cb11961fa\",\"name\":\"parent-module\",\"version\":\"1.0.1\"},\"parse-json-5.2.0.tgz\":{\"integrity\":\"ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6b208abe6fe98421b13a461148233cda20f072df3f1289d2120092c56c43eef7ba8c7820b059787d955004f44d810a0a8ae57fa1d845ac6cd05d9c1b89f0bc46\",\"name\":\"parse-json\",\"version\":\"5.2.0\"},\"parse-ms-4.0.0.tgz\":{\"integrity\":\"TXfryirbmq34y8QBwgqCVLi+8oA3oWx2eAnSn62ITyEhEYaWRlVZ2DvMM9eZbMs/RfxPu/PK/aBLyGj4IrqMHw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4d77ebca2adb9aadf8cbc401c20a8254b8bef28037a16c767809d29fad884f2121118696465559d83bcc33d7996ccb3f45fc4fbbf3cafda04bc868f822ba8c1f\",\"name\":\"parse-ms\",\"version\":\"4.0.0\"},\"parse-torrent-11.0.24.tgz\":{\"integrity\":\"6nNWYiJq6egD8pMqZYL1mfnAly9ZH32DHkAYgZuAfwWij52ce7e3BtrWGVw2q1Bpb5Us8YQVGN7ML/47z/bVIA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ea735662226ae9e803f2932a6582f599f9c0972f591f7d831e4018819b807f05a28f9d9c7bb7b706dad6195c36ab50696f952cf1841518decc2ffe3bcff6d520\",\"name\":\"parse-torrent\",\"version\":\"11.0.24\"},\"parse5-8.0.1.tgz\":{\"integrity\":\"z1e/HMG90obSGeidlli3hj7cbocou0/wa5HacvI3ASx34PecNjNQeaHNo5WIZpWofN9kgkqV1q5YvXe3F0FoPw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"cf57bf1cc1bdd286d219e89d9658b7863edc6e8728bb4ff06b91da72f237012c77e0f79c36335079a1cda395886695a87cdf64824a95d6ae58bd77b71741683f\",\"name\":\"parse5\",\"version\":\"8.0.1\"},\"parseurl-1.3.3.tgz\":{\"integrity\":\"CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0a2c9e3b1153fc96723799b4cfd3df5f0e1208127a4b2833d43a65d30aa39610c418604fd469ec51510bd29eb78681b57dc8f77c7ca75e2f4d60ee2758e2fea9\",\"name\":\"parseurl\",\"version\":\"1.3.3\"},\"path-browserify-1.0.1.tgz\":{\"integrity\":\"b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6fbba8d9409439865c9c5ff7203d25ba53898bf6da7f16b5c4f7bb64fb1a9a6052a634964248cdc65b7adf96064b632247d1a3bee5c2b73d9e9abde36eccfdf2\",\"name\":\"path-browserify\",\"version\":\"1.0.1\"},\"path-exists-3.0.0.tgz\":{\"integrity\":\"bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6e90bb198c220d8438c182def8503c96146385008c7101ae4a0186a83920fd07ab456c3d0a61914f4892395452649dbd34c2d9808cea6a58c9eb7a1a2f834825\",\"name\":\"path-exists\",\"version\":\"3.0.0\"},\"path-is-absolute-1.0.1.tgz\":{\"integrity\":\"AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0156f0dd42767bd6eaeb8bd2692f409b47e37b53daf296c6a934ec9977da2223299ebe4394385f24eb8b8fd49ff7964f5430147ab0df124f3c30f98f7bb50242\",\"name\":\"path-is-absolute\",\"version\":\"1.0.1\"},\"path-key-3.1.1.tgz\":{\"integrity\":\"ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a2399e374a9dfb2d23b3312da18e3caf43deab97703049089423aee90e5fe3595f92cc17b8ab58ae18284e92e7c887079b6e1486ac7ee53aa6d889d2c0b844e9\",\"name\":\"path-key\",\"version\":\"3.1.1\"},\"path-key-4.0.0.tgz\":{\"integrity\":\"haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"85a444ca9abbc6433b12b7e0232034cfe063e0018a94c49d9501368ef268ea1b960f511d90a615f86fd3e27ab4604176be04d3f24a8c14aa35b879fde74af849\",\"name\":\"path-key\",\"version\":\"4.0.0\"},\"path-scurry-2.0.2.tgz\":{\"integrity\":\"3O/iVVsJAPsOnpwWIeD+d6z/7PmqApyQePUtCndjatj/9I5LylHvt5qluFaBT3I5h3r1ejfR056c+FCv+NnNXg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"dcefe2555b0900fb0e9e9c1621e0fe77acffecf9aa029c9078f52d0a77636ad8fff48e4bca51efb79aa5b856814f7239877af57a37d1d39e9cf850aff8d9cd5e\",\"name\":\"path-scurry\",\"version\":\"2.0.2\"},\"path-to-regexp-8.4.2.tgz\":{\"integrity\":\"qRcuIdP69NPm4qbACK+aDogI5CBDMi1jKe0ry5rSQJz8JVLsC7jV8XpiJjGRLLol3N+R5ihGYcrPLTno6pAdBA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a9172e21d3faf4d3e6e2a6c008af9a0e8808e42043322d6329ed2bcb9ad2409cfc2552ec0bb8d5f17a622631912cba25dcdf91e6284661cacf2d39e8ea901d04\",\"name\":\"path-to-regexp\",\"version\":\"8.4.2\"},\"pathe-2.0.3.tgz\":{\"integrity\":\"WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5948c6700a8fd6041a72841ef8e049b0503b2dde03c97b9422367971cef970b1ef27b76d36c4ee8298712000f0b294be02b68051e3c22ab495b4f2c58ff17cf3\",\"name\":\"pathe\",\"version\":\"2.0.3\"},\"pe-library-0.4.1.tgz\":{\"integrity\":\"eRWB5LBz7PpDu4PUlwT0PhnQfTQJlDDdPa35urV4Osrm0t0AqQFGn+UIkU3klZvwJ8KPO3VbBFsXquA6p6kqZw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"791581e4b073ecfa43bb83d49704f43e19d07d34099430dd3dadf9bab5783acae6d2dd00a901469fe508914de4959bf027c28f3b755b045b17aae03aa7a92a67\",\"name\":\"pe-library\",\"version\":\"0.4.1\"},\"pend-1.2.0.tgz\":{\"integrity\":\"F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1776acbf8d94b97721773b7ec57a9f5b538695505efa6c5ada6a88d29839c801d93ef16663763a76b49ffc643503ce9681610df4ace1fd6ae029aea219c1d72e\",\"name\":\"pend\",\"version\":\"1.2.0\"},\"picocolors-1.1.1.tgz\":{\"integrity\":\"xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c5c787dac9e1b5be4cf658aa0ec984c39ea57b7efa993664117fe311bfd1c4d1727a036e97b78db250973fd1438ff2dcbb45fc284c8c71e3f69eda5a1eb0c454\",\"name\":\"picocolors\",\"version\":\"1.1.1\"},\"picomatch-2.3.2.tgz\":{\"integrity\":\"V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"57bfaf404274e99f9ce6d4b27bc4be9c751f239d71a172178c743df5c42d294910aaa3b590efca08951f657b81e3b87f60194385a8761f785d5065e7f227b4a0\",\"name\":\"picomatch\",\"version\":\"2.3.2\"},\"picomatch-4.0.5.tgz\":{\"integrity\":\"RvwwcruNjI1ncT5xRakeyS9Lf8lcItv34KD+aif+VH9kduAyfYBipGh12274xtenIPZ119/R9BdTBa8gAwSh0A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"46fc3072bb8d8c8d67713e7145a91ec92f4b7fc95c22dbf7e0a0fe6a27fe547f6476e0327d8062a46875db6ef8c6d7a720f675d7dfd1f4175305af200304a1d0\",\"name\":\"picomatch\",\"version\":\"4.0.5\"},\"pino-10.3.1.tgz\":{\"integrity\":\"r34yH/GlQpKZbU1BvFFqOjhISRo1MNx1tWYsYvmj6KIRHSPMT2+yHOEb1SG6NMvRoHRF0a07kCOox/9yakl1vg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"af7e321ff1a54292996d4d41bc516a3a3848491a3530dc75b5662c62f9a3e8a2111d23cc4f6fb21ce11bd521ba34cbd1a07445d1ad3b9023a8c7ff726a4975be\",\"name\":\"pino\",\"version\":\"10.3.1\"},\"pino-abstract-transport-3.0.0.tgz\":{\"integrity\":\"wlfUczU+n7Hy/Ha5j9a/gZNy7We5+cXp8YL+X+PG8S0KXxw7n/JXA3c46Y0zQznIJ83URJiwy7Lh56WLokNuxg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c257d473353e9fb1f2fc76b98fd6bf819372ed67b9f9c5e9f182fe5fe3c6f12d0a5f1c3b9ff257037738e98d334339c827cdd44498b0cbb2e1e7a58ba2436ec6\",\"name\":\"pino-abstract-transport\",\"version\":\"3.0.0\"},\"pino-pretty-13.1.3.tgz\":{\"integrity\":\"ttXRkkOz6WWC95KeY9+xxWL6AtImwbyMHrL1mSwqwW9u+vLp/WIElvHvCSDg0xO/Dzrggz1zv3rN5ovTRVowKg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b6d5d19243b3e96582f7929e63dfb1c562fa02d226c1bc8c1eb2f5992c2ac16f6efaf2e9fd620496f1ef0920e0d313bf0f3ae0833d73bf7acde68bd3455a302a\",\"name\":\"pino-pretty\",\"version\":\"13.1.3\"},\"pino-std-serializers-7.1.0.tgz\":{\"integrity\":\"BndPH67/JxGExRgiX1dX0w1FvZck5Wa4aal9198SrRhZjH3GxKQUKIBnYJTdj2HDN3UQAS06HlfcSbQj2OHmaw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"06774f1faeff271184c518225f5757d30d45bd9724e566b869a97dd7df12ad18598c7dc6c4a4142880676094dd8f61c3377510012d3a1e57dc49b423d8e1e66b\",\"name\":\"pino-std-serializers\",\"version\":\"7.1.0\"},\"pkce-challenge-5.0.1.tgz\":{\"integrity\":\"wQ0b/W4Fr01qtpHlqSqspcj3EhBvimsdh0KlHhH8HRZnMsEa0ea2fTULOXOS9ccQr3om+GcGRk4e+isrZWV8qQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c10d1bfd6e05af4d6ab691e5a92aaca5c8f712106f8a6b1d8742a51e11fc1d166732c11ad1e6b67d350b397392f5c710af7a26f86706464e1efa2b2b65657ca9\",\"name\":\"pkce-challenge\",\"version\":\"5.0.1\"},\"pkg-up-3.1.0.tgz\":{\"integrity\":\"nDywThFk1i4BQK4twPQ6TA4RT8bDY96yeuCVBWL3ePARCiEKDRSrNGbFIgUJpLp+XeIR65v8ra7WuJOFUBtkMA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9c3cb04e1164d62e0140ae2dc0f43a4c0e114fc6c363deb27ae0950562f778f0110a210a0d14ab3466c5220509a4ba7e5de211eb9bfcadaed6b89385501b6430\",\"name\":\"pkg-up\",\"version\":\"3.1.0\"},\"pkijs-3.4.0.tgz\":{\"integrity\":\"emEcLuomt2j03vxD54giVB4SxTjnsqkU692xZOZXHDVoYyypEm+b3jpiTcc+Cf+myooc+/Ly0z01jqeNHVgJGw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7a611c2eea26b768f4defc43e78822541e12c538e7b2a914ebddb164e6571c3568632ca9126f9bde3a624dc73e09ffa6ca8a1cfbf2f2d33d358ea78d1d58091b\",\"name\":\"pkijs\",\"version\":\"3.4.0\"},\"playwright-1.62.1.tgz\":{\"integrity\":\"0M+L3LAD8/nm554LOla9Ayx0j0tmFZ0FBcoQ7F1VuVHpM/XpiC8RcDzBQB8W5+hA8L22THxELzeF+2WcUzvcLg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d0cf8bdcb003f3f9e6e79e0b3a56bd032c748f4b66159d0505ca10ec5d55b951e933f5e9882f11703cc1401f16e7e840f0bdb64c7c442f3785fb659c533bdc2e\",\"name\":\"playwright\",\"version\":\"1.62.1\"},\"playwright-core-1.62.1.tgz\":{\"integrity\":\"wPYSwEBJY9GHraISXqyqtx0na0LpO3XEX7jNDhntbex7tzUS7kLnZsOlFruFJB4Hi/rhDMjXGqHewDZ68nYZVw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c0f612c0404963d187ada2125eacaab71d276b42e93b75c45fb8cd0e19ed6dec7bb73512ee42e766c3a516bb85241e078bfae10cc8d71aa1dec0367af2761957\",\"name\":\"playwright-core\",\"version\":\"1.62.1\"},\"plist-3.1.0.tgz\":{\"integrity\":\"uysumyrvkUX0rX/dEVqt8gC3sTBzd4zoWfLeS29nb53imdaXVvLINYXTI2GNqzaMuvacNx4uJQ8+b3zXR0pkgQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"bb2b2e9b2aef9145f4ad7fdd115aadf200b7b13073778ce859f2de4b6f676f9de299d69756f2c83585d323618dab368cbaf69c371e2e250f3e6f7cd7474a6481\",\"name\":\"plist\",\"version\":\"3.1.0\"},\"postcss-8.5.26.tgz\":{\"integrity\":\"u82N74LFzG8ca+dD8puPnplTXoGH4fTPpVGuIbt36G3qvNlkvfD0lEAZSxaly3KX8TS/L1A1gsCEmvKmBcVbkQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"bbcd8def82c5cc6f1c6be743f29b8f9e99535e8187e1f4cfa551ae21bb77e86deabcd964bdf0f49440194b16a5cb7297f134bf2f503582c0849af2a605c55b91\",\"name\":\"postcss\",\"version\":\"8.5.26\"},\"postcss-selector-parser-7.1.5.tgz\":{\"integrity\":\"KvvtD7SrlBP7dlgkBghEE3r84CABm5SmV2aNcG4oCA+qDnJ/tvKonFVvwWAyyWUEwxuNawdfEAZKP9zM3oZ2Uw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2afbed0fb4ab9413fb765824060844137afce020019b94a657668d706e28080faa0e727fb6f2a89c556fc16032c96504c31b8d6b075f10064a3fdcccde867653\",\"name\":\"postcss-selector-parser\",\"version\":\"7.1.5\"},\"postject-1.0.0-alpha.6.tgz\":{\"integrity\":\"b9Eb8h2eVqNE8edvKdwqkrY6O7kAwmI8kcnBv1NScolYJbo59XUF0noFq+lxbC1yN20bmC0WBEbDC5H/7ASb0A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6fd11bf21d9e56a344f1e76f29dc2a92b63a3bb900c2623c91c9c1bf535272895825ba39f57505d27a05abe9716c2d72376d1b982d160446c30b91ffec049bd0\",\"name\":\"postject\",\"version\":\"1.0.0-alpha.6\"},\"powershell-utils-0.1.0.tgz\":{\"integrity\":\"dM0jVuXJPsDN6DvRpea484tCUaMiXWjuCn++HGTqUWzGDjv5tZkEZldAJ/UMlqRYGFrD/etByo4/xOuC/snX2A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"74cd2356e5c93ec0cde83bd1a5e6b8f38b4251a3225d68ee0a7fbe1c64ea516cc60e3bf9b5990466574027f50c96a458185ac3fdeb41ca8e3fc4eb82fec9d7d8\",\"name\":\"powershell-utils\",\"version\":\"0.1.0\"},\"powershell-utils-0.2.0.tgz\":{\"integrity\":\"ZlsFlG7MtSFCoc5xreOvBAozCJ6Pf06opgJjh9ONEv418xpZSAzNjstD36C6+JwOnfSqOW/9uDkqKjezTdxZhw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"665b05946eccb52142a1ce71ade3af040a33089e8f7f4ea8a6026387d38d12fe35f31a59480ccd8ecb43dfa0baf89c0e9df4aa396ffdb8392a2a37b34ddc5987\",\"name\":\"powershell-utils\",\"version\":\"0.2.0\"},\"pretty-format-27.5.1.tgz\":{\"integrity\":\"Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"41bd60cb93ab3f9fb30dfd81be7cdd9778ec4dfd6a5d531acdbbc2a0a86d2aa56ce3f60ae28cd7e2029024957235ef9c6a334f9f42a80b4302dc552668758499\",\"name\":\"pretty-format\",\"version\":\"27.5.1\"},\"pretty-ms-9.3.0.tgz\":{\"integrity\":\"gjVS5hOP+M3wMm5nmNOucbIrqudzs9v/57bWRHQWLYklXqoXKrVfYW2W9+glfGsqtPgpiz5WwyEEB+ksXIx3gQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"823552e6138ff8cdf0326e6798d3ae71b22baae773b3dbffe7b6d64474162d89255eaa172ab55f616d96f7e8257c6b2ab4f8298b3e56c3210407e92c5c8c7781\",\"name\":\"pretty-ms\",\"version\":\"9.3.0\"},\"proc-log-6.1.0.tgz\":{\"integrity\":\"iG+GYldRf2BQ0UDUAd6JQ/RwzaQy6mXmsk/IzlYyal4A4SNFw54MeH4/tLkF4I5WoWG9SQwuqWzS99jaFQHBuQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"886f866257517f6050d140d401de8943f470cda432ea65e6b24fc8ce56326a5e00e12345c39e0c787e3fb4b905e08e56a161bd490c2ea96cd2f7d8da1501c1b9\",\"name\":\"proc-log\",\"version\":\"6.1.0\"},\"process-nextick-args-2.0.1.tgz\":{\"integrity\":\"3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"de8b943a9421b60adb39ad7b27bfaec4e4e92136166863fbfc0868477f80fbfd5ef6c92bcde9468bf757cc4632bdbc6e6c417a5a7db2a6c7132a22891459f56a\",\"name\":\"process-nextick-args\",\"version\":\"2.0.1\"},\"process-warning-4.0.1.tgz\":{\"integrity\":\"3c2LzQ3rY9d0hc1emcsHhfT9Jwz0cChib/QN89oME2R451w5fy3f0afAhERFZAwrbDU43wk12d0ORBpDVME50Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ddcd8bcd0deb63d77485cd5e99cb0785f4fd270cf47028626ff40df3da0c136478e75c397f2ddfd1a7c0844445640c2b6c3538df0935d9dd0e441a4354c139d1\",\"name\":\"process-warning\",\"version\":\"4.0.1\"},\"process-warning-5.1.0.tgz\":{\"integrity\":\"jQSaVHsPgtyw60e1rQ/A+/ArPEj/S8pS/vFnyGa/gYFXrKk/6RuDkoqVDQ5NI5MmS01698ltlAk0NoDBNLujRw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8d049a547b0f82dcb0eb47b5ad0fc0fbf02b3c48ff4bca52fef167c866bf818157aca93fe91b83928a950d0e4d2393264b4d7af7c96d9409343680c134bba347\",\"name\":\"process-warning\",\"version\":\"5.1.0\"},\"progress-2.0.3.tgz\":{\"integrity\":\"7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ecf887b4b965e4b767288330d74d08fbcc495d1e605b6430598913ea226f6b46d78ad64a6bf5ccad26dd9a0debd979da89dcfd42e99dd153da32b66517d57db0\",\"name\":\"progress\",\"version\":\"2.0.3\"},\"promise-retry-2.0.1.tgz\":{\"integrity\":\"y+WKFlBR8BGXnsNlIHFGPZmyDf3DFMoLhaflAnyZgV6rG6xu+JwesTo2Q9R6XwYmtmwAFCkAk3e35jEdoeh/3g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"cbe58a165051f011979ec3652071463d99b20dfdc314ca0b85a7e5027c99815eab1bac6ef89c1eb13a3643d47a5f0626b66c001429009377b7e6311da1e87fde\",\"name\":\"promise-retry\",\"version\":\"2.0.1\"},\"prompts-2.4.2.tgz\":{\"integrity\":\"NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"37136ffe42e0b8203ba778c4f282f668406cac95a001a901a609a02ba9693d657e5ae3a663aaf6ff36c05673fe4fc6d0940d27cc75d2252256d07abbca5683d9\",\"name\":\"prompts\",\"version\":\"2.4.2\"},\"proper-lockfile-4.1.2.tgz\":{\"integrity\":\"TjNPblN4BwAWMXU8s9AEz4JmQxnD1NNL7bNOY/AKUzyamc379FWASUhc/K1pL2noVb+XmZKLL68cjzLsiOAMaA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4e334f6e537807001631753cb3d004cf82664319c3d4d34bedb34e63f00a533c9a99cdfbf4558049485cfcad692f69e855bf9799928b2faf1c8f32ec88e00c68\",\"name\":\"proper-lockfile\",\"version\":\"4.1.2\"},\"proxy-addr-2.0.7.tgz\":{\"integrity\":\"llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"96542c30b4940d43d3e388ddad4fcedfbaa59e27e2b433fe670ae699972848ac8b2afb59c69c95d27dbf6c3fcde2d040019fe024475953b28cadaa0ad7e5d802\",\"name\":\"proxy-addr\",\"version\":\"2.0.7\"},\"proxy-chain-3.0.0.tgz\":{\"integrity\":\"p9DbNWMUCn8FJz9u+RTO82fwD3NFoYZgax5vtxd0FYPQ6IwpxX65WxeL64Fm/hZQVS2+bWB+XRy3+iDVaBsUeg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a7d0db3563140a7f05273f6ef914cef367f00f7345a186606b1e6fb717741583d0e88c29c57eb95b178beb8166fe1650552dbe6d607e5d1cb7fa20d5681b147a\",\"name\":\"proxy-chain\",\"version\":\"3.0.0\"},\"pump-3.0.4.tgz\":{\"integrity\":\"VS7sjc6KR7e1ukRFhQSY5LM2uBWAUPiOPa/A3mkKmiMwSmRFUITt0xuj+/lesgnCv+dPIEYlkzrcyXgquIHMcA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"552eec8dce8a47b7b5ba4445850498e4b336b8158050f88e3dafc0de690a9a23304a64455084edd31ba3fbf95eb209c2bfe74f204625933adcc9782ab881cc70\",\"name\":\"pump\",\"version\":\"3.0.4\"},\"punycode-2.3.1.tgz\":{\"integrity\":\"vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"bd8b7b503d54f5683ad77f2c84bb4b3af740bbef03b02fe2945b44547707fb0c9d712a4d136d007d239db9fe8c91115a84be4563b5f5a14ee7295645b5fabc16\",\"name\":\"punycode\",\"version\":\"2.3.1\"},\"pvtsutils-1.3.6.tgz\":{\"integrity\":\"PLgQXQ6H2FWCaeRak8vvk1GW462lMxB5s3Jm673N82zI4vqtVUPuZdffdZbPDFRoU8kAhItWFtPCWiPpp4/EDg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3cb8105d0e87d8558269e45a93cbef935196e3ada5331079b37266ebbdcdf36cc8e2faad5543ee65d7df7596cf0c546853c900848b5616d3c25a23e9a78fc40e\",\"name\":\"pvtsutils\",\"version\":\"1.3.6\"},\"pvutils-1.2.0.tgz\":{\"integrity\":\"BbubeCEyTuQjVMakvJQ/Sxbc93F2pwmbsxONT/ZRrwU7Ua38d8unYTwXpTVLAKJ4BDuH9IGztCjQcd/N/39Dvg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"05bb9b7821324ee42354c6a4bc943f4b16dcf77176a7099bb3138d4ff651af053b51adfc77cba7613c17a5354b00a278043b87f481b3b428d071dfcdff7f43be\",\"name\":\"pvutils\",\"version\":\"1.2.0\"},\"qs-6.15.3.tgz\":{\"integrity\":\"O9gl3zCl5h5blw1KGUzQKhA5oUXSl8rwUIM5o0S3nCXMliSvy5Dzx7/DJcI+SwgICv+IneSZwhBh1oSyEHA71A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3bd825df30a5e61e5b970d4a194cd02a1039a145d297caf0508339a344b79c25cc9624afcb90f3c7bfc325c23e4b08080aff889de499c21061d684b210703bd4\",\"name\":\"qs\",\"version\":\"6.15.3\"},\"queue-microtask-1.2.3.tgz\":{\"integrity\":\"NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"36e68d49ae9f94a4f925a498433268934e09cd32f5080e9a1a1bf9adf2d6dcf82a03e3360a1a59427002f21f22e19164052f17e51aa40c11c0eebe217a3dcaf4\",\"name\":\"queue-microtask\",\"version\":\"1.2.3\"},\"quick-format-unescaped-4.0.4.tgz\":{\"integrity\":\"tYC1Q1hgyRuHgloV/YXs2w15unPVh8qfu/qCTfhTYamaw7fyhumKa2yGpdSo87vY32rIclj+4fWYQXUMs9EHvg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b580b5435860c91b87825a15fd85ecdb0d79ba73d587ca9fbbfa824df85361a99ac3b7f286e98a6b6c86a5d4a8f3bbd8df6ac87258fee1f59841750cb3d107be\",\"name\":\"quick-format-unescaped\",\"version\":\"4.0.4\"},\"quick-lru-5.1.1.tgz\":{\"integrity\":\"WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5aec802d18d63c31adb7fc3326269d3b901763ef2167cd215697ba3328af82b691116ef9d57dd26e146f1b778b28e60dfbc544bea2dc7f7c1d9ede386784b848\",\"name\":\"quick-lru\",\"version\":\"5.1.1\"},\"quickjs-emscripten-0.32.0.tgz\":{\"integrity\":\"So0Sqw869y/S2oE3Nuc0uT3Dhqgvsj8FSrwBdsuTosVsG8ME5/OcudU1GxsrIFdFABgy17GHnTVO9TYV/bLQcA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4a8d12ab0f3af72fd2da813736e734b93dc386a82fb23f054abc0176cb93a2c56c1bc304e7f39cb9d5351b1b2b205745001832d7b1879d354ef53615fdb2d070\",\"name\":\"quickjs-emscripten\",\"version\":\"0.32.0\"},\"quickjs-emscripten-core-0.32.0.tgz\":{\"integrity\":\"QFnPfjFey8EqknSrSxe1hZrf1/8z7/6s1QzGOmKo6++02r7QRRX7ZoyNaZh7JuVjWsVW87KnQrbZqnHkOAzUyg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4059cf7e315ecbc12a9274ab4b17b5859adfd7ff33effeacd50cc63a62a8ebefb4dabed04515fb668c8d69987b26e5635ac556f3b2a742b6d9aa71e4380cd4ca\",\"name\":\"quickjs-emscripten-core\",\"version\":\"0.32.0\"},\"range-parser-1.3.0.tgz\":{\"integrity\":\"hek2mFQpPuI4E1BBKrSto+BU3e3x4xuarsbiwr3+lf7p44juvFMV0XFWQAP3xUyqXA4RrXLIoaSUGbSt056ZMw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"85e9369854293ee2381350412ab4ada3e054ddedf1e31b9aaec6e2c2bdfe95fee9e388eebc5315d171564003f7c54caa5c0e11ad72c8a1a49419b4add39e9933\",\"name\":\"range-parser\",\"version\":\"1.3.0\"},\"raw-body-3.0.2.tgz\":{\"integrity\":\"K5zQjDllxWkf7Z5xJdV0/B0WTNqx6vxG70zJE4N0kBs4LovmEYWJzQGxC9bS9RAKu3bgM40lrd5zoLJ12MQ5BA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2b9cd08c3965c5691fed9e7125d574fc1d164cdab1eafc46ef4cc9138374901b382e8be6118589cd01b10bd6d2f5100abb76e0338d25adde73a0b275d8c43904\",\"name\":\"raw-body\",\"version\":\"3.0.2\"},\"react-19.2.8.tgz\":{\"integrity\":\"PWaYA1L/q9u2u7xYQi+Y3L3Yfnie7XyLeaJICV1MGD6LprsBxcAqGjYyr0eY3p+QdsA+x/Irkt4Qif8D63+Sbw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3d66980352ffabdbb6bbbc58422f98dcbdd87e789eed7c8b79a248095d4c183e8ba6bb01c5c02a1a3632af4798de9f9076c03ec7f22b92de1089ff03eb7f926f\",\"name\":\"react\",\"version\":\"19.2.8\"},\"react-dom-19.2.8.tgz\":{\"integrity\":\"rVprimfGBG3DR+Tq0IQG2DT5PxKth1WIGDmj5yPmlzr4YBe7uyE+Du4oVqTDXZSHGGGXRtTJEGSSePyQCMBglQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ad5a6b8a67c6046dc347e4ead08406d834f93f12ad8755881839a3e723e6973af86017bbbb213e0eee2856a4c35d948718619746d4c910649278fc9008c06095\",\"name\":\"react-dom\",\"version\":\"19.2.8\"},\"react-hook-form-7.85.0.tgz\":{\"integrity\":\"U2MTriFXnclmV4rOE20p2DcRFv5WEg3FIcBFOKcOLFHDVvGIMPvLTkTWefUsonmlaVy23khVDxDWym6uJVGOzw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"536313ae21579dc966578ace136d29d8371116fe56120dc521c04538a70e2c51c356f18830fbcb4e44d679f52ca279a5695cb6de48550f10d6ca6eae25518ecf\",\"name\":\"react-hook-form\",\"version\":\"7.85.0\"},\"react-i18next-17.0.11.tgz\":{\"integrity\":\"cDtkXgxjuFTWUH6V+aQn1Ve5vDiUztCNPWW5GtSHDccsgRXO1nE6QFWCEmc1KAutrb3OUv87wFShJL5RhUwPXg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"703b645e0c63b854d6507e95f9a427d557b9bc3894ced08d3d65b91ad4870dc72c8115ced6713a405582126735280badadbdce52ff3bc054a124be51854c0f5e\",\"name\":\"react-i18next\",\"version\":\"17.0.11\"},\"react-is-17.0.2.tgz\":{\"integrity\":\"w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c361accae90beb62099e569f7ff9d17a03d047de02fd75da9af3169921d1278cbb4ecff8a1c1919931ef3acf0f484ea90777563ab0ff9ee7ae539b1db81b10e3\",\"name\":\"react-is\",\"version\":\"17.0.2\"},\"react-is-19.2.8.tgz\":{\"integrity\":\"s5un28nYxKJw5gvUHyW5PCC28CvBqLu9r3cWgzHT4Vo/5fqqkFcdRYsGcKf50WMPpjjFZS5d76fn3YCo2njKwQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b39ba7dbc9d8c4a270e60bd41f25b93c20b6f02bc1a8bbbdaf77168331d3e15a3fe5faaa90571d458b0670a7f9d1630fa638c5652e5defa7e7dd80a8da78cac1\",\"name\":\"react-is\",\"version\":\"19.2.8\"},\"react-redux-9.3.0.tgz\":{\"integrity\":\"KQopgqFo/p/fgmAs5qz6p5RWaNAzq40WAu7fJIXnQpYxFPbJYtsJPWvGeF2rOBaY/kEuV77AVsX8TsQzKm+A/g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"290a2982a168fe9fdf82602ce6acfaa7945668d033ab8d1602eedf2485e742963114f6c962db093d6bc6785dab381698fe412e57bec056c5fc4ec4332a6f80fe\",\"name\":\"react-redux\",\"version\":\"9.3.0\"},\"react-remove-scroll-2.7.2.tgz\":{\"integrity\":\"Iqb9NjCCTt6Hf+vOdNIZGdTiH1QSqr27H/Ek9sv/a97gfueI/5h1s3yRi1nngzMUaOOToin5dI1dXKdXiF+u0Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"22a6fd3630824ede877febce74d21919d4e21f5412aabdbb1ff124f6cbff6bdee07ee788ff9875b37c918b59e783331468e393a229f9748d5d5ca757885faed1\",\"name\":\"react-remove-scroll\",\"version\":\"2.7.2\"},\"react-remove-scroll-bar-2.3.8.tgz\":{\"integrity\":\"9r+yi9+mgU33AKcj6IbT9oRCO78WriSj6t/cF8DWBZJ9aOGPOTEDvdUDz1FwKim7QXWwmHqtdHnRJfhAxEG46Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f6bfb28bdfa6814df700a723e886d3f684423bbf16ae24a3eadfdc17c0d605927d68e18f393103bdd503cf51702a29bb4175b0987aad7479d125f840c441b8e9\",\"name\":\"react-remove-scroll-bar\",\"version\":\"2.3.8\"},\"react-router-8.3.0.tgz\":{\"integrity\":\"qyPMvW83jGIct3yiieisxdk9M745anqhpIMKN5m1t6yBMfgVPpt77aHOqs5fUlEJRMCGffg9BaQLH9oPVOL7xQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ab23ccbd6f378c621cb77ca289e8acc5d93d33be396a7aa1a4830a3799b5b7ac8131f8153e9b7beda1ceaace5f52510944c0867df83d05a40b1fda0f54e2fbc5\",\"name\":\"react-router\",\"version\":\"8.3.0\"},\"react-style-singleton-2.2.3.tgz\":{\"integrity\":\"b6jSvxvVnyptAiLjbkWLE/lOnR4lfTtDAl+eUC7RZy+QQWc6wRzIV2CE6xBuMmDxc2qIihtDCZD5NPOFl7fRBQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6fa8d2bf1bd59f2a6d0222e36e458b13f94e9d1e257d3b43025f9e502ed1672f9041673ac11cc8576084eb106e3260f1736a888a1b430990f934f38597b7d105\",\"name\":\"react-style-singleton\",\"version\":\"2.2.3\"},\"read-binary-file-arch-1.0.6.tgz\":{\"integrity\":\"BNg9EN3DD3GsDXX7Aa8O4p92sryjkmzYYgmgTAc6CA4uGLEDzFfxOxugu21akOxpcXHiEgsYkC6nPsQvLLLmEg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"04d83d10ddc30f71ac0d75fb01af0ee29f76b2bca3926cd86209a04c073a080e2e18b103cc57f13b1ba0bb6d5a90ec697171e2120b18902ea73ec42f2cb2e612\",\"name\":\"read-binary-file-arch\",\"version\":\"1.0.6\"},\"readable-stream-2.3.8.tgz\":{\"integrity\":\"8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f29d00524e173838087b04a2d25f04a63b3e1159d688aecda03204194d07844efe67263c0f520c63ba1dbb9951ac55c683bd4bd79286f10acf9ae9b8e514ed74\",\"name\":\"readable-stream\",\"version\":\"2.3.8\"},\"readable-stream-3.6.2.tgz\":{\"integrity\":\"9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f6efec9e20ab6370f959db04447cc71381b66025eaa06e454c7522082e1221bafa5dc2d9058d39c9af442a361e93d3b9c4e0308c6abed497460404bb43d49ca0\",\"name\":\"readable-stream\",\"version\":\"3.6.2\"},\"readdirp-5.1.1.tgz\":{\"integrity\":\"Kko+Y5XQ6fM+Ce3dq3m9YGxnacYZYl9cA1wZjaF3Vbry2L3i1qVg8+CAgNPsXRArPMUMCaOR7oa9Nqntc43JKA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2a4a3e6395d0e9f33e09edddab79bd606c6769c619625f5c035c198da17755baf2d8bde2d6a560f3e08080d3ec5d102b3cc50c09a391ee86bd36a9ed738dc928\",\"name\":\"readdirp\",\"version\":\"5.1.1\"},\"real-require-0.2.0.tgz\":{\"integrity\":\"57frrGM/OCTLqLOAh0mhVA9VBMHd+9U7Zb2THMGdBUoZVOtGbJzjxsYGDJ3A9AYYCP4hn6y1TVbaOfzWtm5GFg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e7b7ebac633f3824cba8b3808749a1540f5504c1ddfbd53b65bd931cc19d054a1954eb466c9ce3c6c6060c9dc0f4061808fe219facb54d56da39fcd6b66e4616\",\"name\":\"real-require\",\"version\":\"0.2.0\"},\"real-require-1.0.0.tgz\":{\"integrity\":\"P4nbQYQfePJxRSmY+v/KINxVucm4NF3p3s7pJveMTtom52FR4YGltUQLB8idDXwDDWW+eYrWDFbuzUnjoWHF7g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3f89db41841f78f271452998faffca20dc55b9c9b8345de9decee926f78c4eda26e76151e181a5b5440b07c89d0d7c030d65be798ad60c56eecd49e3a161c5ee\",\"name\":\"real-require\",\"version\":\"1.0.0\"},\"recast-0.23.21.tgz\":{\"integrity\":\"mFAyJq9vUbSTARLZUvAEf1z3YxlvAwswbmxMx2mPA/MSm4KmpwvwvhsH/NIrZhyOuwD60Lzyw2qh83uCbgTPYw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"98503226af6f51b4930112d952f0047f5cf763196f030b306e6c4cc7698f03f3129b82a6a70bf0be1b07fcd22b661c8ebb00fad0bcf2c36aa1f37b826e04cf63\",\"name\":\"recast\",\"version\":\"0.23.21\"},\"recharts-3.10.1.tgz\":{\"integrity\":\"QXFrvt6IVcw7eeZCoyXTwkIJAX3Dv1nyVhMicXJ47GsGDDpcN8z6o644DibE9XjpBTThtsomLKnTV6lc+cVFUA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"41716bbede8855cc3b79e642a325d3c24209017dc3bf59f2561322717278ec6b060c3a5c37ccfaa3ae380e26c4f578e90534e1b6ca262ca9d357a95cf9c54550\",\"name\":\"recharts\",\"version\":\"3.10.1\"},\"redent-3.0.0.tgz\":{\"integrity\":\"6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ead0c0f20f7c59ed337741af55e313f5aac43a74f0f6a334dcbf5c2576828eb8a9d4e3bbeb844304b05fac1e1cc333460e3e4e0398a8ca60bd1a48b381624352\",\"name\":\"redent\",\"version\":\"3.0.0\"},\"redux-5.0.1.tgz\":{\"integrity\":\"M9/ELqF6fy8FwmkpnF0S3YKOqMyoWJ4+CS5Efg2ct3oY9daQvd/Pc71FpGZsVsbl3Cpb+IIcjBDUnnyBdQbq4w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"33dfc42ea17a7f2f05c269299c5d12dd828ea8cca8589e3e092e447e0d9cb77a18f5d690bddfcf73bd45a4666c56c6e5dc2a5bf8821c8c10d49e7c817506eae3\",\"name\":\"redux\",\"version\":\"5.0.1\"},\"redux-thunk-3.1.0.tgz\":{\"integrity\":\"NW2r5T6ksUKXCabzhL9z+h206HQw/NJkcLm1GPImRQ8IzfXwRGqjVhKJGauHirT0DAuyy6hjdnMZaRoAcy0Klw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"356dabe53ea4b1429709a6f384bf73fa1db4e87430fcd26470b9b518f226450f08cdf5f0446aa356128919ab878ab4f40c0bb2cba863767319691a00732d0a97\",\"name\":\"redux-thunk\",\"version\":\"3.1.0\"},\"require-directory-2.1.1.tgz\":{\"integrity\":\"fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7c6c4423bfb0b06f71aef763b2b9662f6d8e3134e21d1c0032ba2211e320abc833a0b0bf3d0afb46c4434932d483f6d9019b45f9354890773aff84482abba2f9\",\"name\":\"require-directory\",\"version\":\"2.1.1\"},\"require-from-string-2.0.2.tgz\":{\"integrity\":\"Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5dfd2759ee91b1ece214cbbe029f5b8a251b9a996ae92f7fa7eef0ed85cffc904786b5030d48706bebc0372b9bbaa7d9593bde53ffc36151ac0c6ed128bfef13\",\"name\":\"require-from-string\",\"version\":\"2.0.2\"},\"resedit-1.7.2.tgz\":{\"integrity\":\"vHjcY2MlAITJhC0eRD/Vv8Vlgmu9Sd3LX9zZvtGzU5ZImdTN3+d6e/4mnTyV8vEbyf1sgNIrWxhWlrys52OkEA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"bc78dc6363250084c9842d1e443fd5bfc565826bbd49ddcb5fdcd9bed1b353964899d4cddfe77a7bfe269d3c95f2f11bc9fd6c80d22b5b185696bcace763a410\",\"name\":\"resedit\",\"version\":\"1.7.2\"},\"reselect-5.2.0.tgz\":{\"integrity\":\"AgZ3UOZm3YndfrJ4OYjgrT7bmCm/1iqkjvEfH/oYjzh6PD2qw4QuT3jjnXIrpdt4MTpMXclMT3lXbmRY+XRakw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"02067750e666dd89dd7eb2783988e0ad3edb9829bfd62aa48ef11f1ffa188f387a3c3daac3842e4f78e39d722ba5db78313a4c5dc94c4f79576e6458f9745a93\",\"name\":\"reselect\",\"version\":\"5.2.0\"},\"resolve-alpn-1.2.1.tgz\":{\"integrity\":\"0a1F4l73/ZFZOakJnQ3FvkJ2+gSTQWz/r2KE5OdDY0TxPm5h4GkqkWWfM47T7HsbnOtcJVEF4epCVy6u7Q3K+g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d1ad45e25ef7fd915939a9099d0dc5be4276fa0493416cffaf6284e4e7436344f13e6e61e0692a91659f338ed3ec7b1b9ceb5c255105e1ea42572eaeed0dcafa\",\"name\":\"resolve-alpn\",\"version\":\"1.2.1\"},\"resolve-from-4.0.0.tgz\":{\"integrity\":\"pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a5bfcc6265ecb40932b11171f2988d235b4614d408140def904dc6ab812e035745ea01e9ffebe066ab021896a9bf2f0ddd0fb8a3b170beab8f25c9d9ed1632e2\",\"name\":\"resolve-from\",\"version\":\"4.0.0\"},\"responselike-2.0.1.tgz\":{\"integrity\":\"4gl03wn3hj1HP3yzgdI7d3lCkF95F21Pz4BPGvKHinyQzALR5CapwC8yIi0Rh58DEMQ/SguC03wFj2k0M/mHhw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e20974df09f7863d473f7cb381d23b777942905f79176d4fcf804f1af2878a7c90cc02d1e426a9c02f32222d11879f0310c43f4a0b82d37c058f693433f98787\",\"name\":\"responselike\",\"version\":\"2.0.1\"},\"restore-cursor-5.1.0.tgz\":{\"integrity\":\"oMA2dcrw6u0YfxJQXm342bFKX/E4sG9rbTzO9ptUcR/e8A33cHuvStiYOwH7fszkZlZ1z/ta9AAoPk2F4qIOHA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a0c03675caf0eaed187f12505e6df8d9b14a5ff138b06f6b6d3ccef69b54711fdef00df7707baf4ad8983b01fb7ecce4665675cffb5af400283e4d85e2a20e1c\",\"name\":\"restore-cursor\",\"version\":\"5.1.0\"},\"ret-0.5.0.tgz\":{\"integrity\":\"I1XxrZSQ+oErkRR4jYbAyEEu2I0avBvvMM5JN+6EBprOGRCs63ENqZ3vjavq8fBw2+62G5LF5XelKwuJpcvcxw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2355f1ad9490fa812b9114788d86c0c8412ed88d1abc1bef30ce4937ee84069ace1910aceb710da99def8dabeaf1f070dbeeb61b92c5e577a52b0b89a5cbdcc7\",\"name\":\"ret\",\"version\":\"0.5.0\"},\"retry-0.12.0.tgz\":{\"integrity\":\"9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f4b9224f08d487aad3e79e43b44f6b4d7f81281c8f7eb333100b67944b5d130af73647dfc228a1a9ed9b5800e0f8e4118edf6097a20276607f6450c2180b52a3\",\"name\":\"retry\",\"version\":\"0.12.0\"},\"reusify-1.1.0.tgz\":{\"integrity\":\"g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"83a4147dfd38a19a47b34786e69f37ac52e11de574d2e83f61ff6764ce9f2de52b3e0b814e44d039da40596b29321e794d97d54033da37735025f6d5440c5d23\",\"name\":\"reusify\",\"version\":\"1.1.0\"},\"rfdc-1.4.1.tgz\":{\"integrity\":\"q1b3N5QkRUWUl7iyylaaj3kOpIT0N2i9MqIEQXP73GVsN9cw3fdx8X63cEmWhJGi2PPCF23Ijp7ktmd39rawIA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ab56f737942445459497b8b2ca569a8f790ea484f43768bd32a2044173fbdc656c37d730ddf771f17eb77049968491a2d8f3c2176dc88e9ee4b66777f6b6b020\",\"name\":\"rfdc\",\"version\":\"1.4.1\"},\"rimraf-2.6.3.tgz\":{\"integrity\":\"mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9b0a9e5b95ec036a807a31b8ea061d10d6b15e3c7da2744d09f9fb2f476eb8fe210ae4c88bf40eecf0cad3b2897e9d5dfa2cd63ebcc4243712a816b439942b88\",\"name\":\"rimraf\",\"version\":\"2.6.3\"},\"roarr-2.15.4.tgz\":{\"integrity\":\"CHhPh+UNHD2GTXNYhPWLnU8ONHdI+5DI+4EYIAOaiD63rHeYlZvyh8P+in5999TTSFgUYuKUAjzRI4mdh/p+2A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"08784f87e50d1c3d864d735884f58b9d4f0e347748fb90c8fb811820039a883eb7ac7798959bf287c3fe8a7e7df7d4d348581462e294023cd123899d87fa7ed8\",\"name\":\"roarr\",\"version\":\"2.15.4\"},\"rolldown-1.2.4.tgz\":{\"integrity\":\"rSr7irW0K7QRWzjdJXqZowkcRdDtjRduh43rBltnVKd0VFq839l1lJoDvGJb6gl7+4rTTCrPWu+YfujUL8Ug7w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ad2afb8ab5b42bb4115b38dd257a99a3091c45d0ed8d176e878deb065b6754a774545abcdfd975949a03bc625bea097bfb8ad34c2acf5aef987ee8d42fc520ef\",\"name\":\"rolldown\",\"version\":\"1.2.4\"},\"router-2.2.0.tgz\":{\"integrity\":\"nLTrUKm2UyiL7rlhapu/Zl45FwNgkZGaCpZbIHajDYgwlJCOzLSk+cIPAnsEqV955GjILJnKbdQC1nVPz+gAYQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9cb4eb50a9b653288beeb9616a9bbf665e3917036091919a0a965b2076a30d883094908eccb4a4f9c20f027b04a95f79e468c82c99ca6dd402d6754fcfe80061\",\"name\":\"router\",\"version\":\"2.2.0\"},\"run-applescript-7.1.0.tgz\":{\"integrity\":\"DPe5pVFaAsinSaV6QjQ6gdiedWDcRCbUuiQfQa2wmWV7+xC9bGulGI8+TdRmoFkAPaBXk8CrAbnlY2ISniJ47Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0cf7b9a5515a02c8a749a57a42343a81d89e7560dc4426d4ba241f41adb099657bfb10bd6c6ba5188f3e4dd466a059003da05793c0ab01b9e56362129e2278ed\",\"name\":\"run-applescript\",\"version\":\"7.1.0\"},\"run-parallel-1.2.0.tgz\":{\"integrity\":\"5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e65e15c9947ce8b67f943c594d1ea3a8bf00144d92d0814b30fdba01b8ec2d5003c4776107f734194b07fb2dfd51f0a2dddcf3f0e950b8f9a768938ca031d004\",\"name\":\"run-parallel\",\"version\":\"1.2.0\"},\"safe-buffer-5.1.2.tgz\":{\"integrity\":\"Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"19dd94641243917958ec66c9c5fb04f3f9ef2a45045351b7f1cd6c88de903fa6bd3d3f4c98707c1a7a6c71298c252a05f0b388aedf2e77fc0fb688f2b381bafa\",\"name\":\"safe-buffer\",\"version\":\"5.1.2\"},\"safe-buffer-5.2.1.tgz\":{\"integrity\":\"rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ae9dd2a34eca71d9a629b1af81a37141226bedb1954959394bd12ad45fa9a5b468ef4f9879a0f1930e4377c34f37e183e9b8e7626d95b8fb825e6a6e62f9825d\",\"name\":\"safe-buffer\",\"version\":\"5.2.1\"},\"safe-regex2-5.1.1.tgz\":{\"integrity\":\"mOSBvHGDZMuIEZMdOz/aCEYDCv0E7nfcNsIhUF+/P+xC7Hyf3FkvymqgPbg9D1EdSGu+uKbJgy09K/RKKc7kJA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"98e481bc718364cb8811931d3b3fda0846030afd04ee77dc36c221505fbf3fec42ec7c9fdc592fca6aa03db83d0f511d486bbeb8a6c9832d3d2bf44a29cee424\",\"name\":\"safe-regex2\",\"version\":\"5.1.1\"},\"safe-stable-stringify-2.5.0.tgz\":{\"integrity\":\"b3rppTKm9T+PsVCBEOUR46GWI7fdOs00VKZ1+9c1EWDaDMvjQc6tUwuFyIprgGgTcWoVHSKrU8H31ZHA2e0RHA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6f7ae9a532a6f53f8fb1508110e511e3a19623b7dd3acd3454a675fbd7351160da0ccbe341cead530b85c88a6b806813716a151d22ab53c1f7d591c0d9ed111c\",\"name\":\"safe-stable-stringify\",\"version\":\"2.5.0\"},\"safer-buffer-2.1.2.tgz\":{\"integrity\":\"YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"619a372bcd920fb462ca2d04d4440fa232f3ee4a5ea6749023d2323db1c78355d75debdbe5d248eeda72376003c467106c71bbbdcc911e4d1c6f0a9c42b894b6\",\"name\":\"safer-buffer\",\"version\":\"2.1.2\"},\"sanitize-filename-1.6.4.tgz\":{\"integrity\":\"9ZyI08PsvdQl2r/bBIGubpVdR3RR9sY6RDiWFPreA21C/EFlQhmgo20UZlNjZMMZNubusLhAQozkA0Od5J21Eg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f59c88d3c3ecbdd425dabfdb0481ae6e955d477451f6c63a44389614fade036d42fc41654219a0a36d1466536364c31936e6eeb0b840428ce403439de49db512\",\"name\":\"sanitize-filename\",\"version\":\"1.6.4\"},\"sax-1.6.1.tgz\":{\"integrity\":\"42tBVwLWnaQvW5zc4HbZrTuWccECCZfBi92FDuwtqxasH+JbPB3/FOKb1m222K42R4WxuxzzMsTswfzgtSu64Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e36b415702d69da42f5b9cdce076d9ad3b9671c1020997c18bdd850eec2dab16ac1fe25b3c1dff14e29bd66db6d8ae364785b1bb1cf332c4ecc1fce0b52bbae1\",\"name\":\"sax\",\"version\":\"1.6.1\"},\"saxes-6.0.0.tgz\":{\"integrity\":\"xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c4083b48e9c486b9b9cc8de9b8e38acb2d4e31c32520965834963bc4b0704b37b452384f2e759f8f6185d84a53d239b368928858a1cbb1a4926a37f7e5b7189c\",\"name\":\"saxes\",\"version\":\"6.0.0\"},\"scheduler-0.27.0.tgz\":{\"integrity\":\"eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"78dbfe5ab55b2aed5fdef6d8253ff1b62179b320391cf20cb5ff48818fe72a0d2c5aacc0504bea63fc66ece71973fa9a7cbc7f88ef4580e99e480a78bf9b62fd\",\"name\":\"scheduler\",\"version\":\"0.27.0\"},\"secure-json-parse-4.1.0.tgz\":{\"integrity\":\"l4KnYfEyqYJxDwlNVyRfO2E4NTHfMKAWdUuA8J0yve2Dz/E/PdBepY03RvyJpssIpRFwJoCD55wA+mEDs6ByWA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9782a761f132a982710f094d57245f3b61383531df30a016754b80f09d32bded83cff13f3dd05ea58d3746fc89a6cb08a51170268083e79c00fa6103b3a07258\",\"name\":\"secure-json-parse\",\"version\":\"4.1.0\"},\"semver-5.7.2.tgz\":{\"integrity\":\"cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"701ce79d0f4a8c9a94ebb079d91302eb908c6ab2b6eb4d161676e471a8b05aadf1cbfe61685265b21827a63a2f31527e1df7f8f5df06127d1bf3b0b9a43435d2\",\"name\":\"semver\",\"version\":\"5.7.2\"},\"semver-6.3.1.tgz\":{\"integrity\":\"BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"051ed5bc30951cefaadb10445ac9314ba0c9135a919dbec3c7352ba206fbd425a849f89c07162c88019df8a9749a6abf329ac6f7202b464cab4314cee978cccc\",\"name\":\"semver\",\"version\":\"6.3.1\"},\"semver-7.7.4.tgz\":{\"integrity\":\"vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"bc5282d8812d427561a53efc875629f30cf0adff0233e33328c1c62597c1b738593727111675ec1e4e84e53c4892432c80d4bb99d5f700607bc7640cd9d8b894\",\"name\":\"semver\",\"version\":\"7.7.4\"},\"semver-7.8.5.tgz\":{\"integrity\":\"Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"63bfca0ec6fc2e3a28669c1aa86cae94ee8342592c8029dc7211c693eb19218e1206f52870c044147e54af57c8e1d57e26f974c3a723bee71a222e34a6e462a0\",\"name\":\"semver\",\"version\":\"7.8.5\"},\"semver-compare-1.0.0.tgz\":{\"integrity\":\"YM3/ITh2MJ5MtzaM429anh+x2jiLVjqILF4m4oyQB18W7Ggea7BfqdH/wGMK7dDiMghv/6WG7znWMwUDzJiXow==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"60cdff213876309e4cb7368ce36f5a9e1fb1da388b563a882c5e26e28c90075f16ec681e6bb05fa9d1ffc0630aedd0e232086fffa586ef39d6330503cc9897a3\",\"name\":\"semver-compare\",\"version\":\"1.0.0\"},\"send-1.2.1.tgz\":{\"integrity\":\"1gnZf7DFcoIcajTjTwjwuDjzuz4PPcY2StKPlsGAQ1+YH20IRVrBaXSWmdjowTJ6u8Rc01PoYOGHXfP1mYcZNQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d609d97fb0c572821c6a34e34f08f0b838f3bb3e0f3dc6364ad28f96c180435f981f6d08455ac169749699d8e8c1327abbc45cd353e860e1875df3f599871935\",\"name\":\"send\",\"version\":\"1.2.1\"},\"serialize-error-7.0.1.tgz\":{\"integrity\":\"8I8TjW5KMOKsZQTvoxjuSIa7foAwPWGOts+6o7sgjz41/qMD9VQHEDxi6PBvK2l0MXUmqZyNpUK+T2tQaaElvw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f08f138d6e4a30e2ac6504efa318ee4886bb7e80303d618eb6cfbaa3bb208f3e35fea303f55407103c62e8f06f2b6974317526a99c8da542be4f6b5069a125bf\",\"name\":\"serialize-error\",\"version\":\"7.0.1\"},\"serve-static-2.2.1.tgz\":{\"integrity\":\"xRXBn0pPqQTVQiC8wyQrKs2MOlX24zQ0POGaj0kultvoOCstBQM5yvOhAVSUwOMjQtTvsPWoNCHfPGwaaQJhTw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c515c19f4a4fa904d54220bcc3242b2acd8c3a55f6e334343ce19a8f492e96dbe8382b2d050339caf3a1015494c0e32342d4efb0f5a83421df3c6c1a6902614f\",\"name\":\"serve-static\",\"version\":\"2.2.1\"},\"set-cookie-parser-2.7.2.tgz\":{\"integrity\":\"oeM1lpU/UvhTxw+g3cIfxXHyJRc/uidd3yK1P242gzHds0udQBYzs3y8j4gCCW+ZJ7ad0yctld8RYO+bdurlvw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a1e33596953f52f853c70fa0ddc21fc571f225173fba275ddf22b53f6e368331ddb34b9d401633b37cbc8f8802096f9927b69dd3272d95df1160ef9b76eae5bf\",\"name\":\"set-cookie-parser\",\"version\":\"2.7.2\"},\"setprototypeof-1.2.0.tgz\":{\"integrity\":\"E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1392c35fb5aba7ce4a8a5e5b859bf8ea3f2339e6e82aae4932660cde05467461fcc45a4f59750cb0dae53830ab928c4c11e362fd7648c2e46f6385cdc18309a7\",\"name\":\"setprototypeof\",\"version\":\"1.2.0\"},\"shadcn-4.18.0.tgz\":{\"integrity\":\"tUFZgkYmfVNQVm3xX7lhSzOvDsp+O14ac5dwgXIr5mIsr79ISueb/Mu+ZtWMz0DH6v77u4eYyvbQ9TTMpSn3aw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b541598246267d5350566df15fb9614b33af0eca7e3b5e1a73977081722be6622cafbf484ae79bfccbbe66d58ccf40c7eafefbbb8798caf6d0f534cca529f76b\",\"name\":\"shadcn\",\"version\":\"4.18.0\"},\"shebang-command-2.0.0.tgz\":{\"integrity\":\"kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"907c6bdb366962d766acdd6a0e3aeb5ff675ad1d641bc0f1fa09292b51b87979af5ecc26704d614d6056614ce5ada630d7fc99a7a62e0d8efb62dbdb3747660c\",\"name\":\"shebang-command\",\"version\":\"2.0.0\"},\"shebang-regex-3.0.0.tgz\":{\"integrity\":\"7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"efef9d161b5cc77df9dee05aabc0c347836ec417ad0730bb6503a19934089c711de9b4ab5dd884cb30af1b4ed9e3851874b4a1594c97b7933fca1cfc7a471bd4\",\"name\":\"shebang-regex\",\"version\":\"3.0.0\"},\"side-channel-1.1.1.tgz\":{\"integrity\":\"6x6dK6zJdpTzF4sQeNYxwtvBzf6Eg4GtlesS94HOvTudUeyK2WXAaIfmDgsyslYrRBeFIlsi54AYsFGUuhmvrQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"eb1e9d2bacc97694f3178b1078d631c2dbc1cdfe848381ad95eb12f781cebd3b9d51ec8ad965c06887e60e0b32b2562b441785225b22e78018b05194ba19afad\",\"name\":\"side-channel\",\"version\":\"1.1.1\"},\"side-channel-list-1.0.1.tgz\":{\"integrity\":\"mjn/0bi/oUURjc5Xl7IaWi/OJJJumuoJFQJfDDyO46+hBWsfaVM65TBHq2eoZBhzl9EchxOijpkbRC8SVBQU0w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9a39ffd1b8bfa145118dce5797b21a5a2fce24926e9aea0915025f0c3c8ee3afa1056b1f69533ae53047ab67a864187397d11c8713a28e991b442f12541414d3\",\"name\":\"side-channel-list\",\"version\":\"1.0.1\"},\"side-channel-map-1.0.1.tgz\":{\"integrity\":\"VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5428c235f80cb1bcb7b53768d369db8ed33f7b0adaea33c79a94e17a7913621f291bdb9c67fd4ff12a38bb814605e93f063a4e56c0c23282c0fe2b8128815744\",\"name\":\"side-channel-map\",\"version\":\"1.0.1\"},\"side-channel-weakmap-1.0.2.tgz\":{\"integrity\":\"WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"58f4bf1ef1d04d89c78ac2e8f4c72a0473899361641cefed969be5772ae77a6e1a790a7885a8b7832b61b3083aa74d684a84e5e7cadca621408c5d9baf6024d8\",\"name\":\"side-channel-weakmap\",\"version\":\"1.0.2\"},\"siginfo-2.0.0.tgz\":{\"integrity\":\"ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c9bc7458ed7ff1b4812c459766f11dee0316dd29f7245956dd3bd7d674446c32d135035a78d37c58ad26781c0f74068e23b4ed4514499ff12cd7386bac21eeee\",\"name\":\"siginfo\",\"version\":\"2.0.0\"},\"signal-exit-3.0.7.tgz\":{\"integrity\":\"wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c270f6644fa5f923c2feea12d2f5de13d2f5fb4c2e68ca8a95fcfd00c528dfc26cc8b48159215c1d1d51ae2eb62d9735daf2ebd606f78e5ee2c10860c2901b19\",\"name\":\"signal-exit\",\"version\":\"3.0.7\"},\"signal-exit-4.1.0.tgz\":{\"integrity\":\"bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6f3c99d5ef3cc3d3b588d25b2a73a5bd84eb58f0e5e3a3b56c6d03dd7227bfef6d90faf1acdf235144e21650e4926296827d4ce827c8035dd2b86a8e6bd2a8af\",\"name\":\"signal-exit\",\"version\":\"4.1.0\"},\"simple-update-notifier-2.0.0.tgz\":{\"integrity\":\"a2B9Y0KlNXl9u/vsW6sTIu9vGEpfKu2wRV6l1H3XEas/0gUIzGzBoP/IouTcUQbm9JWZLH3COxyn03TYlFax6w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6b607d6342a535797dbbfbec5bab1322ef6f184a5f2aedb0455ea5d47dd711ab3fd20508cc6cc1a0ffc8a2e4dc5106e6f495992c7dc23b1ca7d374d89456b1eb\",\"name\":\"simple-update-notifier\",\"version\":\"2.0.0\"},\"sisteransi-1.0.5.tgz\":{\"integrity\":\"bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6cb186951d50c417329e7d9de589835f83068e566fcb631104344d1cb27c548ea5ebef45522c9314d27422f78e48fd1b7178150cf45c7c6a80d298daa94a5f56\",\"name\":\"sisteransi\",\"version\":\"1.0.5\"},\"smart-buffer-4.2.0.tgz\":{\"integrity\":\"94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f7884ad0787cacfa90976c577371ec681a0e5ca576d0c4e83e4717bf06c84962c4b3eeb8b01ab9905827da42431dbd4faf2f72acfd1dc6b088f5145c8bb4572a\",\"name\":\"smart-buffer\",\"version\":\"4.2.0\"},\"socks-2.8.9.tgz\":{\"integrity\":\"LJhUYUvItdQ0LkJTmPeaEObWXAqFyfmP85x0tch/ez9cahmhlBBLbIqDFnvBnUJGagb0JbIQrkBs1wJ+yRYpEw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2c9854614bc8b5d4342e425398f79a10e6d65c0a85c9f98ff39c74b5c87f7b3f5c6a19a194104b6c8a83167bc19d42466a06f425b210ae406cd7027ec9162913\",\"name\":\"socks\",\"version\":\"2.8.9\"},\"socks-proxy-agent-8.0.5.tgz\":{\"integrity\":\"HehCEsotFqbPW9sJ8WVYB6UbmIMv7kUUORIF2Nncq4VQvBfNBLibW9YZR5dlYCSUhwcD628pRllm7n+E+YTzJw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1de84212ca2d16a6cf5bdb09f1655807a51b98832fee4514391205d8d9dcab8550bc17cd04b89b5bd619479765602494870703eb6f29465966ee7f84f984f327\",\"name\":\"socks-proxy-agent\",\"version\":\"8.0.5\"},\"sonic-boom-4.2.1.tgz\":{\"integrity\":\"w6AxtubXa2wTXAUsZMMWERrsIRAdrK0Sc+FUytWvYAhBJLyuI4llrMIC1DtlNSdI99EI86KZum2MMq3EAZlF9Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c3a031b6e6d76b6c135c052c64c316111aec21101dacad1273e154cad5af60084124bcae238965acc202d43b65352748f7d108f3a299ba6d8c32adc4019945f5\",\"name\":\"sonic-boom\",\"version\":\"4.2.1\"},\"source-map-0.6.1.tgz\":{\"integrity\":\"UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"52381aa6e99695b3219018334fb624739617513e3a17488abbc4865ead1b7303f9773fe1d0f963e9e9c9aa3cf565bab697959aa989eb55bc16396332177178ee\",\"name\":\"source-map\",\"version\":\"0.6.1\"},\"source-map-js-1.2.1.tgz\":{\"integrity\":\"UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"51758c2a12cec1529bef6f0852d40f5f17d853ebac7726ed52b2bff2e184f0240cbeb84ea70bf30c1c23d108522fb31073bbc8b084811bc550f3e203431a5f40\",\"name\":\"source-map-js\",\"version\":\"1.2.1\"},\"source-map-support-0.5.21.tgz\":{\"integrity\":\"uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b811d4dcbddccec232617297f3c7ddac6a2fc5d482a13183459e92617b524712d95331e0e4fffae87b7aba85251eef4466877e8a75e12a8dea420c17513ff2d7\",\"name\":\"source-map-support\",\"version\":\"0.5.21\"},\"split2-4.2.0.tgz\":{\"integrity\":\"UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"51c8dc24e5a49eb36417a3cb5fcdea70733a28781528d915eb663c6b9b980d5bfdc9d19057000730aa877498ded554d6a658c6d1662908386b09d00e607e135a\",\"name\":\"split2\",\"version\":\"4.2.0\"},\"sprintf-js-1.1.3.tgz\":{\"integrity\":\"Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3a8fb4444155e7dfebcf781f24d2908819707c7692112975a5c1b200142c9e721f58e16de89363e600a883653a30b67ffc81980fe9c0f2723e9934a144445e68\",\"name\":\"sprintf-js\",\"version\":\"1.1.3\"},\"stackback-0.0.2.tgz\":{\"integrity\":\"1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d573091397d0a358c61fa63fede6e7c0f3811242049d3e10177d9de51d7e557757bde334201309b7ccdf6b15f53f7421570ad87bee7bebe8e400db524b69816f\",\"name\":\"stackback\",\"version\":\"0.0.2\"},\"stat-mode-1.0.0.tgz\":{\"integrity\":\"jH9EhtKIjuXZ2cWxmXS8ZP80XyC3iasQxMDV8jzhNJpfDb7VbQLVW4Wvsxz9QZvzV+G4YoSfBUVKDOyxLzi/sg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8c7f4486d2888ee5d9d9c5b19974bc64ff345f20b789ab10c4c0d5f23ce1349a5f0dbed56d02d55b85afb31cfd419bf357e1b862849f05454a0cecb12f38bfb2\",\"name\":\"stat-mode\",\"version\":\"1.0.0\"},\"statuses-2.0.2.tgz\":{\"integrity\":\"DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0ef132e795770c1eee927468fb888e193e5f3f5b2547cc10a2155d9278a064f32932cb5a289416870898040089137525da94e70138a18416274616501c606247\",\"name\":\"statuses\",\"version\":\"2.0.2\"},\"std-env-4.2.0.tgz\":{\"integrity\":\"oCUKSupKTHX53EyjDtuZQ64pjLJ6yYCtpmEw0goYxtjG9KpbRe8KAsl2tBUGU9DyMcJ0RwJ8GqJAFzMXcXW1Rw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a0250a4aea4a4c75f9dc4ca30edb9943ae298cb27ac980ada66130d20a18c6d8c6f4aa5b45ef0a02c976b4150653d0f231c27447027c1aa2401733177175b547\",\"name\":\"std-env\",\"version\":\"4.2.0\"},\"stdin-discarder-0.2.2.tgz\":{\"integrity\":\"UhDfHmA92YAlNnCfhmq0VeNL5bDbiZGg7sZ2IvPsXubGkiNa9EC+tUTsjBRsYUAz87btI6/1wf4XoVvQ3uRnmQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5210df1e603dd9802536709f866ab455e34be5b0db8991a0eec67622f3ec5ee6c692235af440beb544ec8c146c614033f3b6ed23aff5c1fe17a15bd0dee46799\",\"name\":\"stdin-discarder\",\"version\":\"0.2.2\"},\"stream-shift-1.0.3.tgz\":{\"integrity\":\"76ORR0DO1o1hlKwTbi/DM3EXWGf3ZJYO8cXX5RJwnul2DEg2oyoZyjLNoQM8WsvZiFKCRfC1O0J7iCvie3RZmQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"efa3914740ced68d6194ac136e2fc33371175867f764960ef1c5d7e512709ee9760c4836a32a19ca32cda1033c5acbd988528245f0b53b427b882be27b745999\",\"name\":\"stream-shift\",\"version\":\"1.0.3\"},\"string-width-4.2.3.tgz\":{\"integrity\":\"wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c0ac90450a63274b08a7ad84ad265d1ac8cc256b1aa79a1136284786ee86ec954effd8c807a5327af2feb57b8eaab9e0f23fdcc4a4d6c96530bd24eb8a2673fe\",\"name\":\"string-width\",\"version\":\"4.2.3\"},\"string-width-7.2.0.tgz\":{\"integrity\":\"tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b6c693224296f5be0df80123f92540f96849cd5effccc85c4aeefc98b2964a4edc5cc3921ec04a15652cd1f5b0abc4322b73202414115fa19b8b89186ddbc691\",\"name\":\"string-width\",\"version\":\"7.2.0\"},\"string_decoder-1.1.1.tgz\":{\"integrity\":\"n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9ff4a19ef0e2e851db6d57ef8aba3e5a88e2173bfeb3c30f30705ccd578f7d4a4324bc282d3d21b759786300426e2f29240bde104767907c8fc933ff9b345fc2\",\"name\":\"string_decoder\",\"version\":\"1.1.1\"},\"string_decoder-1.3.0.tgz\":{\"integrity\":\"hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"864457f14d568c915df0bb03276c90ff0596c5aa2912c0015355df90cf00fa3d3ef392401a9a6dd7a72bd56860e8a21b6f8a2453a32a97a04e8febaea7fc0a78\",\"name\":\"string_decoder\",\"version\":\"1.3.0\"},\"stringify-object-5.0.0.tgz\":{\"integrity\":\"zaJYxz2FtcMb4f+g60KsRNFOpVMUyuJgA51Zi5Z1DOTC3S59+OQiVOzE9GZt0x72uBGWKsQIuBKeF9iusmKFsg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"cda258c73d85b5c31be1ffa0eb42ac44d14ea55314cae260039d598b96750ce4c2dd2e7df8e42254ecc4f4666dd31ef6b811962ac408b8129e17d8aeb26285b2\",\"name\":\"stringify-object\",\"version\":\"5.0.0\"},\"strip-ansi-6.0.1.tgz\":{\"integrity\":\"Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"637f153d21dcaa416b0a916743dbee4979aabaebf9a1738aa46793e9a1abaf7a3719cf409556ba2417d448e0a76f1186645fbfd28a08ecaacfb944b3b54754e4\",\"name\":\"strip-ansi\",\"version\":\"6.0.1\"},\"strip-ansi-7.2.0.tgz\":{\"integrity\":\"yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c833cc363a785b27d80641e78c844b7dc6b58ba28cc860adb1582829eff3d7eeafba481a10d76018166df9998a3dce206afbc46793a01df1ddadace180dc86ef\",\"name\":\"strip-ansi\",\"version\":\"7.2.0\"},\"strip-bom-3.0.0.tgz\":{\"integrity\":\"vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"bdabc03115ce80154d17a9f210498bdc304ad7d891a437282305beb3043e09b1a2bbb963bbab7e264940d4c1f07a85ad69d82de0849552c5cbc83ab7e1d75cc0\",\"name\":\"strip-bom\",\"version\":\"3.0.0\"},\"strip-final-newline-2.0.0.tgz\":{\"integrity\":\"BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"06ba6f7cd004ddd72fabb965df156e9b38ca8d9439b48d6c11420aaf752892cd17525e394addc595ab55a9e7fda6b9388d10f3856e96660fb76e4f77cbaa4b8c\",\"name\":\"strip-final-newline\",\"version\":\"2.0.0\"},\"strip-final-newline-4.0.0.tgz\":{\"integrity\":\"aulFJcD6YK8V1G7iRB5tigAP4TsHBZZrOV8pjV++zdUwmeV8uzbY7yn6h9MswN62adStNZFuCIx4haBnRuMDaw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6ae94525c0fa60af15d46ee2441e6d8a000fe13b0705966b395f298d5fbecdd53099e57cbb36d8ef29fa87d32cc0deb669d4ad35916e088c7885a06746e3036b\",\"name\":\"strip-final-newline\",\"version\":\"4.0.0\"},\"strip-indent-3.0.0.tgz\":{\"integrity\":\"laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"95a2536b725bf95429682e83b1e1e117b75756a1d37c93c24436846e277f76b3a1822b60624bbf95eb4c52a397168595d3320851b8e9747dadfad623e1b40c45\",\"name\":\"strip-indent\",\"version\":\"3.0.0\"},\"strip-json-comments-5.0.3.tgz\":{\"integrity\":\"1tB5mhVo7U+ETBKNf92xT4hrQa3pm0MZ0PQvuDnWgAAGHDsfp4lPSpiS6psrSiet87wyGPh9ft6wmhOMQ0hDiw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d6d0799a1568ed4f844c128d7fddb14f886b41ade99b4319d0f42fb839d68000061c3b1fa7894f4a9892ea9b2b4a27adf3bc3218f87d7edeb09a138c4348438b\",\"name\":\"strip-json-comments\",\"version\":\"5.0.3\"},\"sumchecker-3.0.1.tgz\":{\"integrity\":\"MvjXzkz/BOfyVDkG0oFOtBxHX2u3gKbMHIF/dXblZsgD3BWOFLmHovIpZY7BykJdAjcqRCBi1WYBNdEC9yI7vg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"32f8d7ce4cff04e7f2543906d2814eb41c475f6bb780a6cc1c817f7576e566c803dc158e14b987a2f229658ec1ca425d02372a442062d5660135d102f7223bbe\",\"name\":\"sumchecker\",\"version\":\"3.0.1\"},\"supports-color-7.2.0.tgz\":{\"integrity\":\"qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"aa9080bd197db2db8e1ef78ab27ec79dc251befe74d6a21a70acd094effe2f0c5cf7ed2adb02f2bf80dfbedf34fc33e7da9a8e06c25d0e2a205c647df8ebf047\",\"name\":\"supports-color\",\"version\":\"7.2.0\"},\"symbol-tree-3.2.4.tgz\":{\"integrity\":\"9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f50364e4ac0317e06fcfe3f239b9264988c8e64b15518b635bb014db6af634a71f2c9717a7dea1903594dfe5e774eb146fe010f5085fcdf093d8ef823564f94f\",\"name\":\"symbol-tree\",\"version\":\"3.2.4\"},\"systeminformation-5.33.1.tgz\":{\"integrity\":\"DEN6ICHk3Tk0Uf/hrAHh7xlt7iL5CJFBtPZinA0H62DrGG/KPKqq/Nzj6lCXPS4Ay/sf/14zNnk9LpqKzBIc+w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0c437a2021e4dd393451ffe1ac01e1ef196dee22f9089141b4f6629c0d07eb60eb186fca3caaaafcdce3ea50973d2e00cbfb1fff5e3336793d2e9a8acc121cfb\",\"name\":\"systeminformation\",\"version\":\"5.33.1\"},\"tailwind-merge-3.6.0.tgz\":{\"integrity\":\"uxL7qAVQriqRQPAyK3pj66VqskWqoZ37PW94jwOTwNfq/z9oyu1V+eqrZqtR2+fCiXdYOZe/Modt8GtvqNzu+w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"bb12fba80550ae2a9140f0322b7a63eba56ab245aaa19dfb3d6f788f0393c0d7eaff3f68caed55f9eaab66ab51dbe7c28977583997bf32876df06b6fa8dceefb\",\"name\":\"tailwind-merge\",\"version\":\"3.6.0\"},\"tailwindcss-4.3.3.tgz\":{\"integrity\":\"gOhV3P7ufE62QDGg1zVaTgCR+EtPv92k2nIhVcVKcLmxT1sUBsQGhnZj175j+MqRt4zLF7ic+sCYjfhxMxj7YQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"80e855dcfeee7c4eb64031a0d7355a4e0091f84b4fbfdda4da722155c54a70b9b14f5b1406c406867663d7be63f8ca91b78ccb17b89cfac0988df8713318fb61\",\"name\":\"tailwindcss\",\"version\":\"4.3.3\"},\"tapable-2.3.3.tgz\":{\"integrity\":\"uxc/zpqFg6x7C8vOE7lh6Lbda8eEL9zmVm/PLeTPBRhh1xCgdWaQ+J1CUieGpIfm2HdtsUpRv+HshiasBMcc6A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"bb173fce9a8583ac7b0bcbce13b961e8b6dd6bc7842fdce6566fcf2de4cf051861d710a0756690f89d42522786a487e6d8776db14a51bfe1ec8626ac04c71ce8\",\"name\":\"tapable\",\"version\":\"2.3.3\"},\"tar-7.5.22.tgz\":{\"integrity\":\"MFO/QzvtAOmJbkhOaCTvbGcFN9L9b+JunIsDwaKljSOdcLMea3NJ1k9Usz/rjdfSXTq4dfzfeS7W4p4YOAAHeA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3053bf433bed00e9896e484e6824ef6c670537d2fd6fe26e9c8b03c1a2a58d239d70b31e6b7349d64f54b33feb8dd7d25d3ab875fcdf792ed6e29e1838000778\",\"name\":\"tar\",\"version\":\"7.5.22\"},\"temp-0.9.4.tgz\":{\"integrity\":\"yYrrsWnrXMcdsnu/7YMYAofM1ktpL5By7vZhf15CrXijWWrEYZks5AXBudalfSWJLlnen/QUJUB5aoB0kqZUGA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c98aebb169eb5cc71db27bbfed83180287ccd64b692f9072eef6617f5e42ad78a3596ac461992ce405c1b9d6a57d25892e59de9ff4142540796a807492a65418\",\"name\":\"temp\",\"version\":\"0.9.4\"},\"temp-file-3.4.0.tgz\":{\"integrity\":\"C5tjlC/HCtVUOi3KWVokd4vHVViOmGjtLwIh4MuzPo/nMYTV/p1urt3RnMz2IWXDdKEGJH3k5+KPxtqRsUYGtg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0b9b63942fc70ad5543a2dca595a24778bc755588e9868ed2f0221e0cbb33e8fe73184d5fe9d6eaeddd19cccf62165c374a106247de4e7e28fc6da91b14606b6\",\"name\":\"temp-file\",\"version\":\"3.4.0\"},\"thread-stream-4.2.0.tgz\":{\"integrity\":\"e2zZ96wSChazBsbENf/Pcm/4swHt2cEKQ92rhUjkL9GCKiTDJIaTBenjE/m9DXi0QBmTMDkFDdOomUy20A1tDQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7b6cd9f7ac120a16b306c6c435ffcf726ff8b301edd9c10a43ddab8548e42fd1822a24c324869305e9e313f9bd0d78b44019933039050dd3a8994cb6d00d6d0d\",\"name\":\"thread-stream\",\"version\":\"4.2.0\"},\"tiny-async-pool-1.3.0.tgz\":{\"integrity\":\"01EAw5EDrcVrdgyCLgoSPvqznC0sVxDSVeiOz09FUpjh71G79VCqneOr+xvt7T1r76CF6ZZfPjHorN2+d+3mqA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d35100c39103adc56b760c822e0a123efab39c2d2c5710d255e88ecf4f455298e1ef51bbf550aa9de3abfb1beded3d6befa085e9965f3e31e8acddbe77ede6a8\",\"name\":\"tiny-async-pool\",\"version\":\"1.3.0\"},\"tiny-invariant-1.3.3.tgz\":{\"integrity\":\"+FbBPE1o9QAYvviau/qC5SE3caw21q3xkvWKBtja5vgqOWIHHJ3ioaq1VPfn/Szqctz2bU/oYeKd9/z5BL+PVg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f856c13c4d68f50018bef89abbfa82e5213771ac36d6adf192f58a06d8dae6f82a3962071c9de2a1aab554f7e7fd2cea72dcf66d4fe861e29df7fcf904bf8f56\",\"name\":\"tiny-invariant\",\"version\":\"1.3.3\"},\"tiny-typed-emitter-2.1.0.tgz\":{\"integrity\":\"qVtvMxeXbVej0cQWKqVSSAHmKZEHAvxdF8HEUBFWts8h+xEo5m/lEiPakuyZ3BnCBjOD8i24kzNOiOLLgsSxhA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a95b6f3317976d57a3d1c4162aa5524801e629910702fc5d17c1c4501156b6cf21fb1128e66fe51223da92ec99dc19c2063383f22db893334e88e2cb82c4b184\",\"name\":\"tiny-typed-emitter\",\"version\":\"2.1.0\"},\"tinybench-2.9.0.tgz\":{\"integrity\":\"0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d3e0d4bea58c55a94b9a16ba96be240fc88030ad47cd5d3f68a9c2b566fdbfdeb8d539cffcc15becf7366f1a314234d7004aebc9756050e7efd98a8d965a867a\",\"name\":\"tinybench\",\"version\":\"2.9.0\"},\"tinyexec-1.3.0.tgz\":{\"integrity\":\"QKAl9m8gWWGHV8jZcPeym6j+XULi6tOf1mT83WYJ4Lk2ytW/uwAWkrP0uFsdoYMdueVJ0qs26wZ+23xeB4ibNQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"40a025f66f2059618757c8d970f7b29ba8fe5d42e2ead39fd664fcdd6609e0b936cad5bfbb001692b3f4b85b1da1831db9e549d2ab36eb067edb7c5e07889b35\",\"name\":\"tinyexec\",\"version\":\"1.3.0\"},\"tinyglobby-0.2.17.tgz\":{\"integrity\":\"wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c1747f758a5ca8a99f5a911d66388a24ec023459dd0f40cc9eb5bf7188d51adb449017d581c2c51e836b963e3b9a339589cf72c8dbbae5a96c805e0d4324dada\",\"name\":\"tinyglobby\",\"version\":\"0.2.17\"},\"tinyrainbow-3.1.1.tgz\":{\"integrity\":\"yau8yJdTt989Mm0Bd/236QnzEiPf2xLLTqUZRUJOo/3CB078LSwzei343DgtJVmfJKJE3TMINY1u42SQsP6mXw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c9abbcc89753b7df3d326d0177fdb7e909f31223dfdb12cb4ea51945424ea3fdc2074efc2d2c337a2df8dc382d25599f24a244dd3308358d6ee36490b0fea65f\",\"name\":\"tinyrainbow\",\"version\":\"3.1.1\"},\"tldts-7.4.10.tgz\":{\"integrity\":\"GgouD1B+sWwvkaEq8vXC15DjQitxbvs12oIXELpconwm+Tg3zfcEv4jgzq3vtKverDXsg3VI8aRgNL2Nra0Iog==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1a0a2e0f507eb16c2f91a12af2f5c2d790e3422b716efb35da821710ba5ca27c26f93837cdf704bf88e0ceadefb4abdeac35ec837548f1a46034bd8dadad08a2\",\"name\":\"tldts\",\"version\":\"7.4.10\"},\"tldts-core-7.4.10.tgz\":{\"integrity\":\"KnQjp53ZekKgm/r3l+u8kJGGzYgrWdP8+Mql7a4vijh2WE0IrZWspQj/TpTxDho/YxO+AnOZnIjQcCD+q6iJsw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2a7423a79dd97a42a09bfaf797ebbc909186cd882b59d3fcf8caa5edae2f8a3876584d08ad95aca508ff4e94f10e1a3f6313be0273999c88d07020feaba889b3\",\"name\":\"tldts-core\",\"version\":\"7.4.10\"},\"tmp-0.2.7.tgz\":{\"integrity\":\"e0votIpp4Uo2AJYSzVHV6xCcawuiez3DzqDAbrTc3YxBkplN6e+dM13ZeIcZnDg/QpSuU2zfZ3rzwY8ukEnaXw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7b4be8b48a69e14a36009612cd51d5eb109c6b0ba27b3dc3cea0c06eb4dcdd8c4192994de9ef9d335dd97887199c383f4294ae536cdf677af3c18f2e9049da5f\",\"name\":\"tmp\",\"version\":\"0.2.7\"},\"tmp-promise-3.0.3.tgz\":{\"integrity\":\"RwM7MoPojPxsOBYnyd2hy0bxtIlVrihNs9pj5SUvY8Zz1sQcQG2tG1hSr8PDxfgEB8RNKDhqbIlroIarSNDNsQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"47033b3283e88cfc6c381627c9dda1cb46f1b48955ae284db3da63e5252f63c673d6c41c406dad1b5852afc3c3c5f80407c44d28386a6c896ba086ab48d0cdb1\",\"name\":\"tmp-promise\",\"version\":\"3.0.3\"},\"to-regex-range-5.0.1.tgz\":{\"integrity\":\"65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"eb93fb8b3e97e7212bd5cc1c82f4316db230ed493780ecb974876d678ac3bde2ea86b7493fe2e2fc7c7ab722b43446fed860b29de08c2621aaac00c248d93cb1\",\"name\":\"to-regex-range\",\"version\":\"5.0.1\"},\"toad-cache-3.7.4.tgz\":{\"integrity\":\"m1TdR/rvT7kgGJZhspNtXdsdYk0fddFpJJFlG5s+UkPFo6lkLoZ3YLOaovPYjq1R75NP5JfeTlSHaOsE09peCg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9b54dd47faef4fb920189661b2936d5ddb1d624d1f75d1692491651b9b3e5243c5a3a9642e867760b39aa2f3d88ead51ef934fe497de4e548768eb04d3da5e0a\",\"name\":\"toad-cache\",\"version\":\"3.7.4\"},\"toidentifier-1.0.1.tgz\":{\"integrity\":\"o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a39b123ca12483f0c840d987e37574fee7ab2eba7355e764521f2d18dbda797a5fa6ec2329e9e54a8c7fd8efc14e5654b447be246eece58844cfad3c3e500744\",\"name\":\"toidentifier\",\"version\":\"1.0.1\"},\"tough-cookie-6.0.2.tgz\":{\"integrity\":\"exgYmnmL/sJpR3upZfXG5PoatXQii55xAiXGXzY+sROLZ/Y+SLcp9PgJNI9Vz37HpQ74WvDcLT8eqm+kV3FzrA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7b18189a798bfec269477ba965f5c6e4fa1ab574228b9e710225c65f363eb1138b67f63e48b729f4f809348f55cf7ec7a50ef85af0dc2d3f1eaa6fa4577173ac\",\"name\":\"tough-cookie\",\"version\":\"6.0.2\"},\"tr46-6.0.0.tgz\":{\"integrity\":\"bLVMLPtstlZ4iMQHpFHTR7GAGj2jxi8Dg0s2h2MafAE4uSWF98FC/3MomU51iQAMf8/qDUbKWf5GxuvvVcXEhw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6cb54c2cfb6cb6567888c407a451d347b1801a3da3c62f03834b3687631a7c0138b92585f7c142ff7328994e7589000c7fcfea0d46ca59fe46c6ebef55c5c487\",\"name\":\"tr46\",\"version\":\"6.0.0\"},\"truncate-utf8-bytes-1.0.2.tgz\":{\"integrity\":\"95Pu1QXQvruGEhv62XCMO3Mm90GscOCClvrIUwCM0PYOXK3kaF3l3sIHxx71ThJfcbM2O5Au6SO3AWCSEfW4mQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f793eed505d0bebb86121bfad9708c3b7326f741ac70e08296fac853008cd0f60e5cade4685de5dec207c71ef54e125f71b3363b902ee923b701609211f5b899\",\"name\":\"truncate-utf8-bytes\",\"version\":\"1.0.2\"},\"ts-morph-26.0.0.tgz\":{\"integrity\":\"ztMO++owQnz8c/gIENcM9XfCEzgoGphTv+nKpYNM1bgsdOVC/jRZuEBf6N+mLLDNg68Kl+GgUZfOySaRiG1/Ug==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ced30efbea30427cfc73f80810d70cf577c21338281a9853bfe9caa5834cd5b82c74e542fe3459b8405fe8dfa62cb0cd83af0a97e1a05197cec92691886d7f52\",\"name\":\"ts-morph\",\"version\":\"26.0.0\"},\"tsconfig-paths-4.2.0.tgz\":{\"integrity\":\"NoZ4roiN7LnbKn9QqE1amc9DJfzvZXxF4xDavcOWt1BPkdx+m+0gJuPM+S0vCe7zTJMYUP0R8pO2XMr+Y8oLIg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"368678ae888decb9db2a7f50a84d5a99cf4325fcef657c45e310dabdc396b7504f91dc7e9bed2026e3ccf92d2f09eef34c931850fd11f293b65ccafe63ca0b22\",\"name\":\"tsconfig-paths\",\"version\":\"4.2.0\"},\"tslib-2.8.1.tgz\":{\"integrity\":\"oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a0916ef781d06fe29576e49440bef09e99aa9df98bb0e03f9c087a6fa107d30084a0ad3f98f79753a737c0a0d5f373243ae1cf447b525ca294f7d2016b34bfdb\",\"name\":\"tslib\",\"version\":\"2.8.1\"},\"tsx-4.23.12.tgz\":{\"integrity\":\"FDf4L4sYzKtzWYhU/Xm0AQFdTjdIxNo9ElTf2mxXM6k8YMHXzYUe4yODVaXP4V9uMFbVg8c0qyBccK2OOxb45Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1437f82f8b18ccab73598854fd79b401015d4e3748c4da3d1254dfda6c5733a93c60c1d7cd851ee3238355a5cfe15f6e3056d583c734ab205c70ad8e3b16f8e5\",\"name\":\"tsx\",\"version\":\"4.23.12\"},\"tw-animate-css-1.4.0.tgz\":{\"integrity\":\"7bziOlRqH0hJx80h/3mbicLW7o8qLsH5+RaLR2t+OHM3D0JlWGODQKQ4cxbK7WlvmUxpcj6Kgu6EKqjrGFe3QQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"edbce23a546a1f4849c7cd21ff799b89c2d6ee8f2a2ec1f9f9168b476b7e3873370f426558638340a4387316caed696f994c69723e8a82ee842aa8eb1857b741\",\"name\":\"tw-animate-css\",\"version\":\"1.4.0\"},\"type-fest-0.13.1.tgz\":{\"integrity\":\"34R7HTnG0XIJcBSn5XhDd7nNFPRcXYRZrBB2O2jdKqYODldSzBAqzsWoZYYvduky73toYS/ESqxPvkDf/F0XMg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"df847b1d39c6d172097014a7e5784377b9cd14f45c5d8459ac10763b68dd2aa60e0e5752cc102acec5a865862f76e932ef7b68612fc44aac4fbe40dffc5d1732\",\"name\":\"type-fest\",\"version\":\"0.13.1\"},\"type-is-2.1.0.tgz\":{\"integrity\":\"faYHw0anBbc/kWF3zFTEnxSFOAGUX9GFbOBthvDdLsIlEoWOFOtS0zgCiQYwIskL9iGXZL3kAXD8OoZ4GmMATA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7da607c346a705b73f916177cc54c49f14853801945fd1856ce06d86f0dd2ec22512858e14eb52d3380289063022c90bf6219764bde40170fc3a86781a63004c\",\"name\":\"type-is\",\"version\":\"2.1.0\"},\"typescript-7.0.2.tgz\":{\"integrity\":\"8FYau96o3NKOhbjKi/qNvG/W5jhzxkbdm5sj9AbZ/5T5sWqn3hJgLfGx27sRKZWTvyzCP8dLRBTf5tBTSRVUNA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f0561abbdea8dcd28e85b8ca8bfa8dbc6fd6e63873c646dd9b9b23f406d9ff94f9b16aa7de12602df1b1dbbb11299593bf2cc23fc74b4414dfe6d05349155434\",\"name\":\"typescript\",\"version\":\"7.0.2\"},\"uint8-util-2.3.2.tgz\":{\"integrity\":\"u1c0/eiT1IW+c5+ogbmE2Fu2hmtJQPkuzDmXD/4crMU4FPMjkTkFnjJ2NN/9AsZ9YWcc7yE869uc3WB8wIZEEA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"bb5734fde893d485be739fa881b984d85bb6866b4940f92ecc39970ffe1cacc53814f3239139059e327634dffd02c67d61671cef213cebdb9cdd607cc0864410\",\"name\":\"uint8-util\",\"version\":\"2.3.2\"},\"undici-6.28.0.tgz\":{\"integrity\":\"LIY910g9TI13YS95lrMFrs8Rm/u/irgHeTWoKCoteeJ04CUJ92eEfj0rVn+7VKMPBpUPiUoBKfhNyLI23EE/KA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2c863dd7483d4c8d77612f7996b305aecf119bfbbf8ab8077935a8282a2d79e274e02509f767847e3d2b567fbb54a30f06950f894a0129f84dc8b236dc413f28\",\"name\":\"undici\",\"version\":\"6.28.0\"},\"undici-7.29.0.tgz\":{\"integrity\":\"IDxfleLmmbSskfWSUATiN1nfn2rDuvnMOqb5CWR92iIfojA0Ud+ulOAAEQ57LPr9rWmsreUyf5lwyao+7GNNVw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"203c5f95e2e699b4ac91f5925004e23759df9f6ac3baf9cc3aa6f909647dda221fa2303451dfae94e000110e7b2cfafdad69acade5327f9970c9aa3eec634d57\",\"name\":\"undici\",\"version\":\"7.29.0\"},\"undici-8.10.0.tgz\":{\"integrity\":\"HvltHd7avK13QIw/oLe4qoOLyoVSoafqJ2jYOrtMRBkbYT31eiBQ8O0ehRKZiEZCMEyLFQNIADpgCWC5fALvYQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1ef96d1ddedabcad77408c3fa0b7b8aa838bca8552a1a7ea2768d83abb4c44191b613df57a2050f0ed1e851299884642304c8b150348003a600960b97c02ef61\",\"name\":\"undici\",\"version\":\"8.10.0\"},\"undici-types-7.18.2.tgz\":{\"integrity\":\"AsuCzffGHJybSaRrmr5eHr81mwJU3kjw6M+uprWvCXiNeN9SOGwQ3Jn8jb8m3Z6izVgknn1R0FTCEAP2QrLY/w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"02cb82cdf7c61c9c9b49a46b9abe5e1ebf359b0254de48f0e8cfaea6b5af09788d78df52386c10dc99fc8dbf26dd9ea2cd58249e7d51d054c21003f642b2d8ff\",\"name\":\"undici-types\",\"version\":\"7.18.2\"},\"undici-types-8.3.0.tgz\":{\"integrity\":\"j375ScV60dom+YkPFIfTLcOiPxkN/buHz5GobjLhixFuANaNs3C9l4GmrWqejgXWJ7BbJcFYpTEUkS1Ge8bpZQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8f7ef949c57ad1da26f9890f1487d32dc3a23f190dfdbb87cf91a86e32e18b116e00d68db370bd9781a6ad6a9e8e05d627b05b25c158a53114912d467bc6e965\",\"name\":\"undici-types\",\"version\":\"8.3.0\"},\"unicorn-magic-0.3.0.tgz\":{\"integrity\":\"+QBBXBCvifc56fsbuxZQ6Sic3wqqc3WWaqxs58gvJrcOuN83HGTCwz3oS5phzU9LthRNE9VrJCFCLUgHeeFnfA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f900415c10af89f739e9fb1bbb1650e9289cdf0aaa7375966aac6ce7c82f26b70eb8df371c64c2c33de84b9a61cd4f4bb6144d13d56b2421422d480779e1677c\",\"name\":\"unicorn-magic\",\"version\":\"0.3.0\"},\"universalify-0.1.2.tgz\":{\"integrity\":\"rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ac125e2390970259b2d6957eeb5ed607d27add4e9771acc71c5d9fd9d6c98b1e17ce9505d114b765b8f414620e080bdae4ffddfc604e61a002435c3ed1acd492\",\"name\":\"universalify\",\"version\":\"0.1.2\"},\"universalify-2.0.1.tgz\":{\"integrity\":\"gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"829b4735082120d9dcfef4c6224d12385185357c3b255ae5454b42a2725196f6b0e83b97d303b925e928f6c5ab301861f8fb18019ee85c088e9dffd42a88328b\",\"name\":\"universalify\",\"version\":\"2.0.1\"},\"unpipe-1.0.0.tgz\":{\"integrity\":\"pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a63cb66d8852b2e7f05a52b03dcfa5ddc37bfb0b8994aeaecf461d2443a54036e5ea3a3f6253e2e266fc6a0524542f0117b57c36ecdec8f36a464b00de1ced29\",\"name\":\"unpipe\",\"version\":\"1.0.0\"},\"unzipper-0.12.5.tgz\":{\"integrity\":\"tXYOi9R57Uj/2Z25SOs5RRSzq886MBQj2gY8dPL+xl/kv6s6SvByoKfAtvfVeEuhntWDgjd2o9p2lb4TVPAz0A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b5760e8bd479ed48ffd99db948eb394514b3abcf3a301423da063c74f2fec65fe4bfab3a4af072a0a7c0b6f7d5784ba19ed583823776a3da7695be1354f033d0\",\"name\":\"unzipper\",\"version\":\"0.12.5\"},\"update-browserslist-db-1.3.1.tgz\":{\"integrity\":\"ZZ61DsRsOnakl74HAmp3oSN4aXUmEWXf+i/yv0h7tIBfICc3VdrFErQKUUKPgu3AMsTUMbcongALEN4l6GSUrQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"659eb50ec46c3a76a497be07026a77a123786975261165dffa2ff2bf487bb4805f20273755dac512b40a51428f82edc032c4d431b7289e000b10de25e86494ad\",\"name\":\"update-browserslist-db\",\"version\":\"1.3.1\"},\"use-callback-ref-1.3.3.tgz\":{\"integrity\":\"jQL3lRnocaFtu3V00JToYz/4QkNWswxijDaCVNZRiRTO3HQDLsdu1ZtmIUvV4yPp+rvWm5j0y0TG/S61cuijTg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8d02f79519e871a16dbb7574d094e8633ff8424356b30c628c368254d6518914cedc74032ec76ed59b66214bd5e323e9fabbd69b98f4cb44c6fd2eb572e8a34e\",\"name\":\"use-callback-ref\",\"version\":\"1.3.3\"},\"use-sidecar-1.1.3.tgz\":{\"integrity\":\"Fedw0aZvkhynoPYlA5WXrMCAMm+nSWdZt6lzJQ7Ok8S6Q+VsHmHpRWndVRJ8Be0ZbkfPc5LRYH+5XrzXcEeLRQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"15e770d1a66f921ca7a0f625039597acc080326fa7496759b7a973250ece93c4ba43e56c1e61e94569dd55127c05ed196e47cf7392d1607fb95ebcd770478b45\",\"name\":\"use-sidecar\",\"version\":\"1.1.3\"},\"use-sync-external-store-1.6.0.tgz\":{\"integrity\":\"Pp6GSwGP/NrPIrxVFAIkOQeyw8lFenOHijQWkUTrDvrF4ALqylP2C/KCkeS9dpUM3KvYRQhna5vt7IL95+ZQ9w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3e9e864b018ffcdacf22bc551402243907b2c3c9457a73878a34169144eb0efac5e002eaca53f60bf28291e4bd76950cdcabd84508676b9bedec82fde7e650f7\",\"name\":\"use-sync-external-store\",\"version\":\"1.6.0\"},\"utf8-byte-length-1.0.5.tgz\":{\"integrity\":\"Xn0w3MtiQ6zoz2vFyUVruaCL53O/DwUvkEeOvj+uulMm0BkUGYWmBYVyElqZaSLhY6ZD0ulfU3aBra2aVT4xfA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5e7d30dccb6243ace8cf6bc5c9456bb9a08be773bf0f052f90478ebe3faeba5326d019141985a6058572125a996922e163a643d2e95f537681adad9a553e317c\",\"name\":\"utf8-byte-length\",\"version\":\"1.0.5\"},\"util-deprecate-1.0.2.tgz\":{\"integrity\":\"EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"10f0f9ab5b97c85c49a42acb9c27359c79eade039ae83641a1c008888d93692080ed5089d5424331a802cc891736c5187c3d5d68afff2d3110f318886eb1ed73\",\"name\":\"util-deprecate\",\"version\":\"1.0.2\"},\"uuid-14.0.1.tgz\":{\"integrity\":\"6ZxzVpzDXDa3bJWaHilVayA+BH/1zmxCJoVgvmqJnid/gPoKHxUrS/aC/T6LGQtNHT+XHG9fXPJB4d+IrU30Ew==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e99c73569cc35c36b76c959a1e29556b203e047ff5ce6c42268560be6a899e277f80fa0a1f152b4bf682fd3e8b190b4d1d3f971c6f5f5cf241e1df88ad4df413\",\"name\":\"uuid\",\"version\":\"14.0.1\"},\"validate-npm-package-name-7.0.2.tgz\":{\"integrity\":\"hVDIBwsRruT73PbK7uP5ebUt+ezEtCmzZz3F59BSr2F6OVFnJ/6h8liuvdLrQ88Xmnk6/+xGGuq+pG9WwTuy3A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8550c8070b11aee4fbdcf6caeee3f979b52df9ecc4b429b3673dc5e7d052af617a39516727fea1f258aebdd2eb43cf179a793affec461aeabea46f56c13bb2dc\",\"name\":\"validate-npm-package-name\",\"version\":\"7.0.2\"},\"vary-1.1.2.tgz\":{\"integrity\":\"BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"04d19b58b7ddd1e50f69b8645d4566d23f2ebaf444c93879a2f45afddca8c3f06a01b649c82fb97d4f88cd03b39802b362a6110084a8461750af778867f3d7aa\",\"name\":\"vary\",\"version\":\"1.1.2\"},\"vaul-1.1.2.tgz\":{\"integrity\":\"ZFkClGpWyI2WUQjdLJ/BaGuV6AVQiJ3uELGk3OYtP+B6yCO7Cmn9vPFXVJkRaGkOJu3m8bQMgtyzNHixULceQA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"645902946a56c88d965108dd2c9fc1686b95e80550889dee10b1a4dce62d3fe07ac823bb0a69fdbcf15754991168690e26ede6f1b40c82dcb33478b150b71e40\",\"name\":\"vaul\",\"version\":\"1.1.2\"},\"victory-vendor-37.3.6.tgz\":{\"integrity\":\"SbPDPdDBYp+5MJHhBCAyI7wKM3d5ivekigc2Dk2s7pgbZ9wIgIBYGVw4zGHBml/qTFbexrofXW6Gu4noGxrOwQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"49b3c33dd0c1629fb93091e104203223bc0a3377798af7a48a07360e4dacee981b67dc08808058195c38cc61c19a5fea4c56dec6ba1f5d6e86bb89e81b1acec1\",\"name\":\"victory-vendor\",\"version\":\"37.3.6\"},\"vite-8.2.1.tgz\":{\"integrity\":\"EU/eS7BH3XROHh2YnBefjM6DBKA6ZeMZEYQbj7NLWg5wHYlhB8B/Mayd5XsgWq+NFYccDOTemRpdETWR6Ka/lw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"114fde4bb047dd744e1e1d989c179f8cce8304a03a65e31911841b8fb34b5a0e701d896107c07f31ac9de57b205aaf8d15871c0ce4de991a5d113591e8a6bf97\",\"name\":\"vite\",\"version\":\"8.2.1\"},\"vitest-4.1.10.tgz\":{\"integrity\":\"R9jUTe5S4Qb0HCd4TNqpC7oGcrMssMRGXLW80ubjWsW9VH5GF8y1Y0SFLY9AbqSk6nt0PnOx4H4WNJYZ13GUPw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"47d8d44dee52e106f41c27784cdaa90bba0672b32cb0c4465cb5bcd2e6e35ac5bd547e4617ccb56344852d8f406ea4a4ea7b743e73b1e07e16349619d771943f\",\"name\":\"vitest\",\"version\":\"4.1.10\"},\"vscode-jsonrpc-9.0.1.tgz\":{\"integrity\":\"rfuA6T75H6m5EkbhtEPzre9pT0HPcDI2MMy4+nPFIBks5J8JBAUHD4tRYSgaBOijIEC7SRkC1kKyXTLqbmh9jw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"adfb80e93ef91fa9b91246e1b443f3adef694f41cf70323630ccb8fa73c520192ce49f090405070f8b5161281a04e8a32040bb491902d642b25d32ea6e687d8f\",\"name\":\"vscode-jsonrpc\",\"version\":\"9.0.1\"},\"w3c-xmlserializer-5.0.0.tgz\":{\"integrity\":\"o8qghlI8NZHU1lLPrpi2+Uq7abh4GGPpYANlalzWxyWteJOCsr/P+oPBA49TOLu5FTZO4d3F9MnWJfiMo4BkmA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a3caa086523c3591d4d652cfae98b6f94abb69b8781863e96003656a5cd6c725ad789382b2bfcffa83c1038f5338bbb915364ee1ddc5f4c9d625f88ca3806498\",\"name\":\"w3c-xmlserializer\",\"version\":\"5.0.0\"},\"web-streams-polyfill-3.3.3.tgz\":{\"integrity\":\"d2JWLCivmZYTSIoge9MsgFCZrt571BikcWGYkjC1khllbTeDlGqZ2D8vD8E/lJa8WGWbb7Plm8/XJYV7IJHZZw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7762562c28af999613488a207bd32c805099aede7bd418a47161989230b59219656d3783946a99d83f2f0fc13f9496bc58659b6fb3e59bcfd725857b2091d967\",\"name\":\"web-streams-polyfill\",\"version\":\"3.3.3\"},\"webcrypto-core-1.9.2.tgz\":{\"integrity\":\"gsXecm82UQNlTBURJGuqOWy1Ww08S3kZUcr3aOJS02Pk0xLtkfeUAVC0u0xhgdonFme80edSJUIJyuvL/7250Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"82c5de726f365103654c1511246baa396cb55b0d3c4b791951caf768e252d363e4d312ed91f7940150b4bb4c6181da271667bcd1e752254209caebcbffbdb9d1\",\"name\":\"webcrypto-core\",\"version\":\"1.9.2\"},\"webidl-conversions-8.0.1.tgz\":{\"integrity\":\"BMhLD/Sw+GbJC21C/UgyaZX41nPt8bUTg+jWyDeg7e7YN4xOM05YPSIXceACnXVtqyEw/LMClUQMtMZ+PGGpqQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"04c84b0ff4b0f866c90b6d42fd48326995f8d673edf1b51383e8d6c837a0edeed8378c4e334e583d221771e0029d756dab2130fcb30295440cb4c67e3c61a9a9\",\"name\":\"webidl-conversions\",\"version\":\"8.0.1\"},\"whatwg-mimetype-5.0.0.tgz\":{\"integrity\":\"sXcNcHOC51uPGF0P/D4NVtrkjSU2fNsm9iog4ZvZJsL3rjoDAzXZhkm2MWt1y+PUdggKAYVoMAIYcs78wJ51Cw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b1770d707382e75b8f185d0ffc3e0d56dae48d25367cdb26f62a20e19bd926c2f7ae3a030335d98649b6316b75cbe3d476080a01856830021872cefcc09e750b\",\"name\":\"whatwg-mimetype\",\"version\":\"5.0.0\"},\"whatwg-url-16.0.1.tgz\":{\"integrity\":\"1to4zXBxmXHV3IiSSEInrreIlu02vUOvrhxJJH5vcxYTBDAx51cqZiKdyTxlecdKNSjj8EcxGBxNf6Vg+945gw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d6da38cd70719971d5dc8892484227aeb78896ed36bd43afae1c49247e6f731613043031e7572a66229dc93c6579c74a3528e3f04731181c4d7fa560fbde3983\",\"name\":\"whatwg-url\",\"version\":\"16.0.1\"},\"whatwg-url-17.1.0.tgz\":{\"integrity\":\"3GeworPmc2ZfEEHP7lEbUfBX/L75wdEsi0rLNhXcXxnoN5jyq0SL5gCy06SGW2cyTIZdTvWIDQNQoza++vKeaw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"dc67b0a2b3e673665f1041cfee511b51f057fcbef9c1d12c8b4acb3615dc5f19e83798f2ab448be600b2d3a4865b67324c865d4ef5880d0350a336befaf29e6b\",\"name\":\"whatwg-url\",\"version\":\"17.1.0\"},\"which-2.0.2.tgz\":{\"integrity\":\"BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"04b2374e5d535b73ef97bd25df2ab763ae22f9ac29c17aac181616924a8cb676d782b303fb28fbae15b492e103c7325a6171a3116e6881aa4a34c10a34c8e26c\",\"name\":\"which\",\"version\":\"2.0.2\"},\"which-4.0.0.tgz\":{\"integrity\":\"GlaYyEb07DPxYCKhKzplCWBJtvxZcZMrL+4UkrTSJHHPyZU4mYYTv3qaOe77H7EODLSSopAUFAc6W8U4yqvscg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1a5698c846f4ec33f16022a12b3a65096049b6fc5971932b2fee1492b4d22471cfc99538998613bf7a9a39eefb1fb10e0cb492a2901414073a5bc538caabec72\",\"name\":\"which\",\"version\":\"4.0.0\"},\"which-5.0.0.tgz\":{\"integrity\":\"JEdGzHwwkrbWoGOlIHqQ5gtprKGOenpDHpxE9zVR1bWbOtYRyPPHMe9FaP6x61CmNaTThSkb0DAJte5jD+DmzQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"244746cc7c3092b6d6a063a5207a90e60b69aca18e7a7a431e9c44f73551d5b59b3ad611c8f3c731ef4568feb1eb50a635a4d385291bd03009b5ee630fe0e6cd\",\"name\":\"which\",\"version\":\"5.0.0\"},\"which-6.0.1.tgz\":{\"integrity\":\"oGLe46MIrCRqX7ytPUf66EAYvdeMIZYn3WaocqqKZAxrBpkqHfL/qvTyJ/bTk5+AqHCjXmrv3CEWgy368zhRUg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a062dee3a308ac246a5fbcad3d47fae84018bdd78c219627dd66a872aa8a640c6b06992a1df2ffaaf4f227f6d3939f80a870a35e6aefdc2116832dfaf3385152\",\"name\":\"which\",\"version\":\"6.0.1\"},\"why-is-node-running-2.3.0.tgz\":{\"integrity\":\"hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"854ae669605d543731bd8aa7ca1d3dcee9cacd13968db65388dcbc741123912ede8440d089b5c9ed7be59ad6f0b9372552223237e0b25d00f8566928f1f366f3\",\"name\":\"why-is-node-running\",\"version\":\"2.3.0\"},\"wrap-ansi-7.0.0.tgz\":{\"integrity\":\"YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6151888f691a98b493c70e8db198e80717d2c2c9f4c9c75eb26738a7e436d5ce733ee675a65f8d7f155dc4fb5d1ef98d54e43a5d2606e0052dcadfc58bb0f5e9\",\"name\":\"wrap-ansi\",\"version\":\"7.0.0\"},\"wrappy-1.0.2.tgz\":{\"integrity\":\"l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9784a9fc346c7a8afdc0be84bd5dbe4ee427eb774c90f8d9feca7d5e48214c46d5f4a94f4b5c54b19deeeff2103b8c31b5c141e1b82940f45c477402bdeccf71\",\"name\":\"wrappy\",\"version\":\"1.0.2\"},\"write-file-atomic-8.0.0.tgz\":{\"integrity\":\"dYwyZredl67GyLLIHJnRM3h2PcOmN5SkcgC7eM5DPDEOEl6dLFqVrMg3F1Ea32usj4VSVZtd2H4MtKTNOf6nPg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"758c3266b79d97aec6c8b2c81c99d13378763dc3a63794a47200bb78ce433c310e125e9d2c5a95acc83717511adf6bac8f8552559b5dd87e0cb4a4cd39fea73e\",\"name\":\"write-file-atomic\",\"version\":\"8.0.0\"},\"ws-8.21.3.tgz\":{\"integrity\":\"201TZ/kPWxoPr/OKWjquZR1SWKXcvxdH+e1xrx89b3YbmzLMFCLfnaG1HFIgWzJOEWZ7MvpK++odZufgYR50Rw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"db4d5367f90f5b1a0faff38a5a3aae651d5258a5dcbf1747f9ed71af1f3d6f761b9b32cc1422df9da1b51c52205b324e11667b32fa4afbea1d66e7e0611e7447\",\"name\":\"ws\",\"version\":\"8.21.3\"},\"wsl-utils-1.0.0.tgz\":{\"integrity\":\"Hl0ZOAs672vg+06kfujwRhoS6/jehvULrlFkuF2dRu6pHgA8U06h3xqNIqNNU1LTXPcedxByAR4GS6pwQK0mgA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1e5d19380b3aef6be0fb4ea47ee8f0461a12ebf8de86f50bae5164b85d9d46eea91e003c534ea1df1a8d22a34d5352d35cf71e771072011e064baa7040ad2680\",\"name\":\"wsl-utils\",\"version\":\"1.0.0\"},\"xml-name-validator-5.0.0.tgz\":{\"integrity\":\"EvGK8EJ3DhaHfbRlETOWAS5pO9MZITeauHKJyb8wyajUfQUenkIg2MvLDTZ4T/TgIcm3HU0TFBgWWboAZ30UHg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"12f18af042770e16877db465113396012e693bd31921379ab87289c9bf30c9a8d47d051e9e4220d8cbcb0d36784ff4e021c9b71d4d1314181659ba00677d141e\",\"name\":\"xml-name-validator\",\"version\":\"5.0.0\"},\"xmlbuilder-15.1.1.tgz\":{\"integrity\":\"yMqGBqtXyeN1e3TGYvgNgDVZ3j84W4cwkOXQswghol6APgZWaff9lnbvN7MHYJOiXsvGPXtjTYJEiC9J2wv9Eg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c8ca8606ab57c9e3757b74c662f80d803559de3f385b873090e5d0b30821a25e803e065669f7fd9676ef37b3076093a25ecbc63d7b634d8244882f49db0bfd12\",\"name\":\"xmlbuilder\",\"version\":\"15.1.1\"},\"xmlchars-2.2.0.tgz\":{\"integrity\":\"JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2599c328af01d11083c3ce0535d0c022964af89b89c3eb3b2f3f2792c23b488b94dd45c926c954b61b22fae5815183b03c5c16ed6ecf44b45f50aa718ed8c50b\",\"name\":\"xmlchars\",\"version\":\"2.2.0\"},\"y18n-5.0.8.tgz\":{\"integrity\":\"0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d297c5cde81e0d62472480264cb44fd83c078dd179b3b8e8f6dbb3b5d43102120d09dbd2fb79c620da8f774d00a61a8947fd0b8403544baffeed209bf7c60e7c\",\"name\":\"y18n\",\"version\":\"5.0.8\"},\"yallist-3.1.1.tgz\":{\"integrity\":\"a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6b850641a58f1f9f663975189c01b67b09dc412e22e05e374efdc9a0033eb365430264bd36c2bc1a90cc2eb0873e4b054fb8772ba4cea14367da96fb4685f1e2\",\"name\":\"yallist\",\"version\":\"3.1.1\"},\"yallist-4.0.0.tgz\":{\"integrity\":\"3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"df074689d672ab93c1d3ce172c44b94e9392440df08d7025216321ba6da445cbffe354a7d9e990d1dc9c416e2e6572de8f02af83a12cbdb76554bf8560472dec\",\"name\":\"yallist\",\"version\":\"4.0.0\"},\"yallist-5.0.0.tgz\":{\"integrity\":\"YgvUTfwqyc7UXVMrB+SImsVYSmTS8X/tSrtdNZMImM+n7+QTriRXyXim0mBrTXNeqzVF0KWGgHPeiyViFFrNDw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"620bd44dfc2ac9ced45d532b07e4889ac5584a64d2f17fed4abb5d35930898cfa7efe413ae2457c978a6d2606b4d735eab3545d0a5868073de8b2562145acd0f\",\"name\":\"yallist\",\"version\":\"5.0.0\"},\"yargs-17.7.3.tgz\":{\"integrity\":\"GZtjxm/J/4TSxuL3FNYjCmLktBTnIw/rVmKSIyKeYAZpmJB2ig9VauCC5xsa82GNKVKDAqpOn3KVzNt0zmrU0g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"199b63c66fc9ff84d2c6e2f714d6230a62e4b414e7230feb56629223229e6006699890768a0f556ae082e71b1af3618d29528302aa4e9f7295ccdb74ce6ad4d2\",\"name\":\"yargs\",\"version\":\"17.7.3\"},\"yargs-parser-21.1.1.tgz\":{\"integrity\":\"tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b55a6c256ec376379c0221696c80757b7ab1210b04e8da0f739fde4ddadb6c80b88742d5b16867a1ade0fa6d87725048ba31f3b31678549540f8652e736fcb07\",\"name\":\"yargs-parser\",\"version\":\"21.1.1\"},\"yauzl-3.4.0.tgz\":{\"integrity\":\"jIH9yLR9wqr0wOS0TpBvo/g/2UgZH5qePVbjgRliiF0BYvOZyaBknKsF+x9Iht0O6sqgnB93rCICdOZFecJuDw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8c81fdc8b47dc2aaf4c0e4b44e906fa3f83fd948191f9a9e3d56e3811962885d0162f399c9a0649cab05fb1f4886dd0eeacaa09c1f77ac220274e64579c26e0f\",\"name\":\"yauzl\",\"version\":\"3.4.0\"},\"yocto-queue-0.1.0.tgz\":{\"integrity\":\"rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ad592cbec9cd09d27fa2119ceb180fc3237c7a1782c6c88b33c9b1b84fedfe6395a897b03ee3b59a22e94c74224604ca08b7b12f831e00555a82db3b1e6359d9\",\"name\":\"yocto-queue\",\"version\":\"0.1.0\"},\"yocto-spinner-1.2.2.tgz\":{\"integrity\":\"DODGl1wJjA/s5pnJFKau9lIYHT81lnhob1i3e1TjxZRxEhWRKl74nTbWE6H5KlkViQQTo/Z29YFdxzTZAMY3ng==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0ce0c6975c098c0fece699c914a6aef652181d3f359678686f58b77b54e3c594711215912a5ef89d36d613a1f92a5915890413a3f676f5815dc734d900c6379e\",\"name\":\"yocto-spinner\",\"version\":\"1.2.2\"},\"yoctocolors-2.2.0.tgz\":{\"integrity\":\"xYqdZFUK/VYazNl/oCDYN+3WloWQwMfZxBoiNt6qNyk+xfOdi598muWE42rNZFp1kNOiqW936q5RhUdnpqElSg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c58a9d64550afd561accd97fa020d837edd6968590c0c7d9c41a2236deaa37293ec5f39d8b9f7c9ae584e36acd645a7590d3a2a96f77eaae51854767a6a1254a\",\"name\":\"yoctocolors\",\"version\":\"2.2.0\"},\"zod-3.25.76.tgz\":{\"integrity\":\"gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"83352dfeab7cd675ec14628815c0b76277c4031e4d92e9c27e70e5bee0524854b4d9b717bb82e679ad001485306cb5b158fc7777da7c4b94286ae8ca70d43171\",\"name\":\"zod\",\"version\":\"3.25.76\"},\"zod-4.4.3.tgz\":{\"integrity\":\"ytENFjIJFl2UwYglde2jchW2Hwm4GJFLDiSXWdTrJQBIN9Fcyp7n4DhxJEiWNAJMV1/BqWfW/kkg71UDcHJyTQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"cad10d163209165d94c1882575eda37215b61f09b818914b0e249759d4eb25004837d15cca9ee7e0387124489634024c575fc1a967d6fe4920ef55037072724d\",\"name\":\"zod\",\"version\":\"4.4.3\"},\"zod-to-json-schema-3.25.2.tgz\":{\"integrity\":\"O/PgfnpT1xKSDeQYSCfRI5Gy3hPf91mKVDuYLUHZJMiDFptvP41MSnWofm8dnCm0256ZNfZIM7DSzuSMAFnjHA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3bf3e07e7a53d712920de4184827d12391b2de13dff7598a543b982d41d924c883169b6f3f8d4c4a75a87e6f1d9c29b4db9e9935f64833b0d2cee48c0059e31c\",\"name\":\"zod-to-json-schema\",\"version\":\"3.25.2\"},\"zustand-4.5.7.tgz\":{\"integrity\":\"CHOUy7mu3lbD6o6LJLfllpjkzhHXSBlX8B9+qPddUsIfeF5S/UZ5q0kmCsnRqT1UHFQZchNFDDzMbQsuesHWlw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"087394cbb9aede56c3ea8e8b24b7e59698e4ce11d7481957f01f7ea8f75d52c21f785e52fd4679ab49260ac9d1a93d541c54197213450c3ccc6d0b2e7ac1d697\",\"name\":\"zustand\",\"version\":\"4.5.7\"},\"zustand-5.0.15.tgz\":{\"integrity\":\"MpSEjRiBkA9crSYeOUH32rJC7SVqAbm0Fqcqge/bUi2PPoLcBWKOsG+C8mevmpr8TwXHBVkChbbJiyvkE+i/3A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3294848d1881900f5cad261e3941f7dab242ed256a01b9b416a72a81efdb522d8f3e82dc05628eb06f82f267af9a9afc4f05c705590285b6c98b2be413e8bfdc\",\"name\":\"zustand\",\"version\":\"5.0.15\"}},\"store_version\":\"v11\"}",+ "contents": "{\"packages\":{\"@adobe__css-tools-4.5.0.tgz\":{\"integrity\":\"6OzddxPio9UiWTCemp4N8cYLV2ZN1ncRnV1cVGtve7dhPOtRkleRyx32GQCYSwDYgaHU3USMm84tNsvKzRCa1Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e8ecdd7713e2a3d52259309e9a9e0df1c60b57664dd677119d5d5c546b6f7bb7613ceb51925791cb1df61900984b00d881a1d4dd448c9bce2d36cbcacd109ad5\",\"name\":\"@adobe/css-tools\",\"version\":\"4.5.0\"},\"@asamuzakjp__css-color-6.0.7.tgz\":{\"integrity\":\"vC/bk1Lz7Tn/EfU9/apOTBk80/8dyGyWMowPoV1tJ52muDGsDqt2HPT2klrFUiY60MQmQv9q8yIht15JnBgDGw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"bc2fdb9352f3ed39ff11f53dfdaa4e4c193cd3ff1dc86c96328c0fa15d6d279da6b831ac0eab761cf4f6925ac552263ad0c42642ff6af32221b75e499c18031b\",\"name\":\"@asamuzakjp/css-color\",\"version\":\"6.0.7\"},\"@asamuzakjp__dom-selector-8.3.2.tgz\":{\"integrity\":\"93Z1N+BQNXysodoicpOIyNh2drHfz/CTf9nnT0FEx72GJcIiwgydD7tGAr78j41LsYn3hlRn+LdGPuBLn1Bl8Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f7767537e050357caca1da22729388c8d87676b1dfcff0937fd9e74f4144c7bd8625c222c20c9d0fbb4602befc8f8d4bb189f7865467f8b7463ee04b9f5065f1\",\"name\":\"@asamuzakjp/dom-selector\",\"version\":\"8.3.2\"},\"@babel__code-frame-7.29.7.tgz\":{\"integrity\":\"Aup7aUOfpbAUg2ROOJN6Iw5f9DMBlzu0mIkm/malLQFN/YQgO48wCj0Kxa3sEHJvPVFg7siR+qRInwXd2qhQKw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"02ea7b69439fa5b01483644e38937a230e5ff43301973bb4988926fe66a52d014dfd84203b8f300a3d0ac5adec10726f3d5160eec891faa4489f05dddaa8502b\",\"name\":\"@babel/code-frame\",\"version\":\"7.29.7\"},\"@babel__compat-data-7.29.7.tgz\":{\"integrity\":\"locTkQyKvwIEgBzVrn8693ebc97F2U8ZHjbXwDXJ5Fn2TCpNwTlKcaKLkdHop5c/icOFE7qt7Q9JC5hnKNa6Gg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"968713910c8abf0204801cd5ae7f3af7779b73dec5d94f191e36d7c035c9e459f64c2a4dc1394a71a28b91d1e8a7973f89c38513baaded0f490b986728d6ba1a\",\"name\":\"@babel/compat-data\",\"version\":\"7.29.7\"},\"@babel__core-7.29.7.tgz\":{\"integrity\":\"RgHBCvtjbOK2gXSNBNIkNoEc9qoVEtau3hj8gEqKQuL3HZAibKarWFEI3Lfm6EYKkLalOh8eSrj9b+ch9H/VBA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4601c10afb636ce2b681748d04d22436811cf6aa1512d6aede18fc804a8a42e2f71d90226ca6ab585108dcb7e6e8460a90b6a53a1f1e4ab8fd6fe721f47fd504\",\"name\":\"@babel/core\",\"version\":\"7.29.7\"},\"@babel__generator-7.29.8.tgz\":{\"integrity\":\"gZbepsdh3WDtgZKWL+vTPh71LSBrm/Y4/QDZBVCcYfmeTEEuoOYwlSy+G1StfJg+/Zy550u/3TATbm7qDbbMtg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8196dea6c761dd60ed8192962febd33e1ef52d206b9bf638fd00d905509c61f99e4c412ea0e630952cbe1b54ad7c983efd9cb9e74bbfdd30136e6eea0db6ccb6\",\"name\":\"@babel/generator\",\"version\":\"7.29.8\"},\"@babel__helper-annotate-as-pure-7.29.7.tgz\":{\"integrity\":\"OoK6239jHPuSQOoS0kfTVKn0b/rVTk0seKq4Gd2UMLtmOVLjDC0ki3e+c90Trqv2gMfvJFqkiljrr568+qddiw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3a82badb7f631cfb9240ea12d247d354a9f46ffad54e4d2c78aab819dd9430bb663952e30c2d248b77be73dd13aeabf680c7ef245aa48a58ebaf9ebcfaa75d8b\",\"name\":\"@babel/helper-annotate-as-pure\",\"version\":\"7.29.7\"},\"@babel__helper-compilation-targets-7.29.7.tgz\":{\"integrity\":\"wem6WaBj4NaVYVdNhLPPVacES6ZJ+KBBfSkTMD3YZxbP3rm3Di85tJU5ljaUNhaOynt+Aj0xruhYuzQBt8n71g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c1e9ba59a063e0d69561574d84b3cf55a7044ba649f8a0417d2913303dd86716cfdeb9b70e2f39b4953996369436168eca7b7e023d31aee858bb3401b7c9fbd6\",\"name\":\"@babel/helper-compilation-targets\",\"version\":\"7.29.7\"},\"@babel__helper-create-class-features-plugin-7.29.7.tgz\":{\"integrity\":\"IY3ZD9Tmooqr3TUhc3DUWxiuo8xx1DWLhd5M7hQ+ZWJamqM2BbalrBJb2MisSLoYorOj75U03qULCxQTY9r3hg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"218dd90fd4e6a28aabdd35217370d45b18aea3cc71d4358b85de4cee143e65625a9aa33605b6a5ac125bd8c8ac48ba18a2b3a3ef9534dea50b0b141363daf786\",\"name\":\"@babel/helper-create-class-features-plugin\",\"version\":\"7.29.7\"},\"@babel__helper-globals-7.29.7.tgz\":{\"integrity\":\"3nQVUAtvkKH9zahfWgw96Jc/uFOmjACE1kQz82E2lqWmHBgjzbNlsC22nuQTfahmWeQtTq5nQ/4Nnd2A1wj4zA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"de7415500b6f90a1fdcda85f5a0c3de8973fb853a68c0084d64433f3613696a5a61c1823cdb365b02db69ee4137da86659e42d4eae6743fe0d9ddd80d708f8cc\",\"name\":\"@babel/helper-globals\",\"version\":\"7.29.7\"},\"@babel__helper-member-expression-to-functions-7.29.7.tgz\":{\"integrity\":\"j+7JYmk1JYDtACIGj0QJqqWZjoUpMoEikQGADMaHgCMCSDqd2+P32rfcibUNrGOMWrlzK1WJBdxrB3JJQZwWtg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8feec96269352580ed0022068f4409aaa5998e85293281229101800cc687802302483a9ddbe3f7dab7dc89b50dac638c5ab9732b558905dc6b077249419c16b6\",\"name\":\"@babel/helper-member-expression-to-functions\",\"version\":\"7.29.7\"},\"@babel__helper-module-imports-7.29.7.tgz\":{\"integrity\":\"ejHwrQQYcm9xnTivShn2IDOlIzInN34AXskvq9QicvCtEzq1Vzclu/tKF8Jq1Cg8JG2GL6/EmjgsCT7lXepE3g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7a31f0ad0418726f719d38af4a19f62033a5233227377e005ec92fabd42272f0ad133ab5573725bbfb4a17c26ad4283c246d862fafc49a382c093ee55dea44de\",\"name\":\"@babel/helper-module-imports\",\"version\":\"7.29.7\"},\"@babel__helper-module-transforms-7.29.7.tgz\":{\"integrity\":\"UPUVSyXbOh627KiCIGQSgwWzGeBKLkaJ9PJEdrngIwMSzxLR4jS4+f1f1jb7VzBbg8nFLaYotvVPFCTqdrmTAg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"50f5154b25db3a1eb6eca8822064128305b319e04a2e4689f4f24476b9e0230312cf12d1e234b8f9fd5fd636fb57305b83c9c52da628b6f54f1424ea76b99302\",\"name\":\"@babel/helper-module-transforms\",\"version\":\"7.29.7\"},\"@babel__helper-optimise-call-expression-7.29.7.tgz\":{\"integrity\":\"+kmGVjcT9RGYzoDwdwEqEvGgKe3BYq+O1iGzjFubaNgZHwYHP6lsF2Yghf4kEuv9BV7tYDZ913aBW9am6YKong==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"fa4986563713f51198ce80f077012a12f1a029edc162af8ed621b38c5b9b68d8191f06073fa96c17662085fe2412ebfd055eed60367dd776815bd6a6e982a89e\",\"name\":\"@babel/helper-optimise-call-expression\",\"version\":\"7.29.7\"},\"@babel__helper-plugin-utils-7.29.7.tgz\":{\"integrity\":\"G7sHYigPY17oO5SYWnfD/0MTBwVR781S/JI643e/JhUYgVgWE/61SoW3NH9KWUKyKq5LVh3npif99Wkt6j86Jw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1bbb0762280f635ee83b94985a77c3ff4313070551efcd52fc923ae377bf26151881581613feb54a85b7347f4a5942b22aae4b561de7a627fdf5692dea3f3a27\",\"name\":\"@babel/helper-plugin-utils\",\"version\":\"7.29.7\"},\"@babel__helper-replace-supers-7.29.7.tgz\":{\"integrity\":\"atfGXWSeCiF4DnKZIfmJfQRkSw9b9gNNXR1kqKjbhG4pGYCOnkp8OcTB8E3NXjBu8NpheSnOeNKz8KT7UNFTmQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6ad7c65d649e0a21780e729921f9897d04644b0f5bf6034d5d1d64a8a8db846e2919808e9e4a7c39c4c1f04dcd5e306ef0da617929ce78d2b3f0a4fb50d15399\",\"name\":\"@babel/helper-replace-supers\",\"version\":\"7.29.7\"},\"@babel__helper-skip-transparent-expression-wrappers-7.29.7.tgz\":{\"integrity\":\"brcMGQaVzIeUb+6/bs1Av0f8YuNNjKY2JyvfRCsFuFsdKccEQ5Ges2y74D74NZ1Rz8lKJ9ksJkfqwQFJ/iNEyQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6eb70c190695cc87946feebf6ecd40bf47fc62e34d8ca636272bdf442b05b85b1d29c70443919eb36cbbe03ef8359d51cfc94a27d92c2647eac10149fe2344c9\",\"name\":\"@babel/helper-skip-transparent-expression-wrappers\",\"version\":\"7.29.7\"},\"@babel__helper-string-parser-7.29.7.tgz\":{\"integrity\":\"Pb5ijPrZ89GDH8223L4UP8i6QApWxs04RbPQJTeWDV0/keR2E36MeKnyr6LYmUUvqRRI+Iv87SuF1W6ErINzYw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3dbe628cfad9f3d1831fcdb6dcbe143fc8ba400a56c6cd3845b3d02537960d5d3f91e476137e8c78a9f2afa2d899452fa91448f88bfced2b85d56e84ac837363\",\"name\":\"@babel/helper-string-parser\",\"version\":\"7.29.7\"},\"@babel__helper-validator-identifier-7.29.7.tgz\":{\"integrity\":\"qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a9e8711a4463e7987f7dff0431a27e71887268a947231a980e7ebcdb0403ed1369f54ba3390b07a20dae4b4af6bf3af8a56fac5dff7435e79aca370d697ddf16\",\"name\":\"@babel/helper-validator-identifier\",\"version\":\"7.29.7\"},\"@babel__helper-validator-option-7.29.7.tgz\":{\"integrity\":\"N9ZErrD+yW5geCDtBqnOoxmR8+tNKiGuxKlDpuJxfsqpa2dFcexaziGAE/qoHLiDDreVNMupxGmSoNlyvsA3gw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"37d644aeb0fec96e607820ed06a9cea31991f3eb4d2a21aec4a943a6e2717ecaa96b674571ec5ace218013faa81cb8830eb79534cba9c46992a0d972bec03783\",\"name\":\"@babel/helper-validator-option\",\"version\":\"7.29.7\"},\"@babel__helpers-7.29.7.tgz\":{\"integrity\":\"1k2lAGRMfHTcwuNYcCNUmaUffmQv8KWMfh2iJUUeRlwlwH4FdNG7mfPI10NPfLHJFThE4Tyr4mv7kTNZOiPuBg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d64da500644c7c74dcc2e35870235499a51f7e642ff0a58c7e1da225451e465c25c07e0574d1bb99f3c8d7434f7cb1c9153844e13cabe26bfb9133593a23ee06\",\"name\":\"@babel/helpers\",\"version\":\"7.29.7\"},\"@babel__parser-7.29.8.tgz\":{\"integrity\":\"E8lTAYNB1KW+FH+VGJuZM1ioAx2E6oVlvQFRrf5P8ZZmsiJXYAD9vTFV7yyEURNzgh1dFqMZuO6tUwcARbqFCA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"13c953018341d4a5be147f95189b993358a8031d84ea8565bd0151adfe4ff19666b222576000fdbd3155ef2c84511373821d5d16a319b8eead53070045ba8508\",\"name\":\"@babel/parser\",\"version\":\"7.29.8\"},\"@babel__plugin-syntax-jsx-7.29.7.tgz\":{\"integrity\":\"TSu8+mHCoEaaCDEZ0I3+6mvTBYR4PCxQwf2z9/r5Tbztv6NaLR3B9thGTTxX2WGuGHJqRiAbKPeGTJ5XWXVg6A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4d2bbcfa61c2a0469a083119d08dfeea6bd30584783c2c50c1fdb3f7faf94dbcedbfa35a2d1dc1f6d8464d3c57d961ae18726a46201b28f7864c9e57597560e8\",\"name\":\"@babel/plugin-syntax-jsx\",\"version\":\"7.29.7\"},\"@babel__plugin-syntax-typescript-7.29.7.tgz\":{\"integrity\":\"ngr+82Sh0xMz25TPCZi+nC2iTzjfCdWS2ONXTp/PtSCHCgaCNBpdMqgvJ2ccdLlClVZ7sisIgB914j/JFe+RZA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9e0afef364a1d31333db94cf0998be9c2da24f38df09d592d8e3574e9fcfb520870a0682341a5d32a82f27671c74b94295567bb22b08801f75e23fc915ef9164\",\"name\":\"@babel/plugin-syntax-typescript\",\"version\":\"7.29.7\"},\"@babel__plugin-transform-modules-commonjs-7.29.7.tgz\":{\"integrity\":\"j0vCldybPC5b5dwCQOJ21uKtHzt7hxLygJTg9eF1ScfaikEDNfzn94XoW5Fi+seBR0nCyL23xaBFFkq7dTM8XQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8f4bc295dc9b3c2e5be5dc0240e276d6e2ad1f3b7b8712f28094e0f5e17549c7da8a410335fce7f785e85b9162fac7814749c2c8bdb7c5a045164abb75333c5d\",\"name\":\"@babel/plugin-transform-modules-commonjs\",\"version\":\"7.29.7\"},\"@babel__plugin-transform-typescript-7.29.7.tgz\":{\"integrity\":\"jK52h8LaLc7JarhQV2ofeFMts4H7vnOXnqZNA6fYglBTZewRBE51KWt3BUltW1P+KoPsYkHoJeXePuz4zo2LMw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8cae7687c2da2dcec96ab850576a1f78532db381fbbe73979ea64d03a7d882505365ec11044e75296b7705496d5b53fe2a83ec6241e825e5de3eecf8ce8d8b33\",\"name\":\"@babel/plugin-transform-typescript\",\"version\":\"7.29.7\"},\"@babel__preset-typescript-7.29.7.tgz\":{\"integrity\":\"/Foi8vKY2EVbed/1eZx0gJEEwHAIxogrySI7rULcRIvhZzbvoE/b5qG5Ghc0WKAFKOHA9SD1x7RsFlOYdutIiQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"fc5a22f2f298d8455b79dff5799c74809104c07008c6882bc9223bad42dc448be16736efa04fdbe6a1b91a173458a00528e1c0f520f5c7b46c16539876eb4889\",\"name\":\"@babel/preset-typescript\",\"version\":\"7.29.7\"},\"@babel__runtime-7.29.7.tgz\":{\"integrity\":\"Nq8OhGWiZIZGV6hLHoyAKLLcJihP/xFeBMGJoUrxTX2psI8dCifzLhZISFb+VWS3wFMRDmCGw5R+dOySCqPLhw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"36af0e8465a264864657a84b1e8c8028b2dc26284fff115e04c189a14af14d7da9b08f1d0a27f32e16484856fe5564b7c053110e6086c3947e74ec920aa3cb87\",\"name\":\"@babel/runtime\",\"version\":\"7.29.7\"},\"@babel__template-7.29.7.tgz\":{\"integrity\":\"puq+Gf35oI24FeN11LkoUQFqv9uwNeWpxXZi/Ji3rRIoKAzKnxRaZ+Gkj0vKS9ZCiTESfng1N9LyOyXvo+m+Gg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a6eabe19fdf9a08db815e375d4b92851016abfdbb035e5a9c57662fc98b7ad1228280cca9f145a67e1a48f4bca4bd6428931127e783537d2f23b25efa3e9be1a\",\"name\":\"@babel/template\",\"version\":\"7.29.7\"},\"@babel__traverse-7.29.8.tgz\":{\"integrity\":\"I5z7H3bf/41ktsNVLtpN0wAa336HkqIHQ5BuPLEhTkt1jVSyZpeNKIzTgEWmlxjdg81R0IgUCcaE+Ok3NvrfZg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"239cfb1f76dfff8d64b6c3552eda4dd3001adf7e8792a20743906e3cb1214e4b758d54b266978d288cd38045a69718dd83cd51d0881409c684f8e93736fadf66\",\"name\":\"@babel/traverse\",\"version\":\"7.29.8\"},\"@babel__types-7.29.8.tgz\":{\"integrity\":\"Vj1jF3cPfxg7OAfoI7QnVKLoILlm2JF9pnVHrX8qx7AHMiYWT+NDAA7jChlNgRS4WTLc/fD1lXLmPixluj+3Gg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"563d6317770f7f183b3807e823b42754a2e820b966d8917da67547ad7f2ac7b0073226164fe343000ee30a194d8114b85932dcfdf0f59572e63e2c65ba3fb71a\",\"name\":\"@babel/types\",\"version\":\"7.29.8\"},\"@base-ui__react-1.7.0.tgz\":{\"integrity\":\"j+8QjX44C32jrXD/qyEAGpFr70FRpGL2CY61mQd9nBPWN737CK0xxD1ceJ055rW4RtdvFDT1e7otzdlfxvsYug==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8fef108d7e380b7da3ad70ffab21001a916bef4151a462f6098eb599077d9c13d637bdfb08ad31c43d5c789d39e6b5b846d76f1434f57bba2dcdd95fc6fb18ba\",\"name\":\"@base-ui/react\",\"version\":\"1.7.0\"},\"@base-ui__utils-0.3.2.tgz\":{\"integrity\":\"oWy1aq/I2GmYjpl4PhEAhzflF8VPGKgZeq0xAWTbfD5KBWyxcN0ZP2+WHSUm/5Z6lVMBDLReLcoXwSYoRc/zNQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a16cb56aafc8d869988e99783e11008737e517c54f18a8197aad310164db7c3e4a056cb170dd193f6f961d2526ff967a9553010cb45e2dca17c1262845cff335\",\"name\":\"@base-ui/utils\",\"version\":\"0.3.2\"},\"@bcoe__v8-coverage-1.0.2.tgz\":{\"integrity\":\"6zABk/ECA/QYSCQ1NGiVwwbQerUCZ+TQbp64Q3AgmfNvurHH0j8TtXa1qbShXA6qqkpAj4V5W8pP6mLe1mcMqA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"eb300193f10203f418482435346895c306d07ab50267e4d06e9eb843702099f36fbab1c7d23f13b576b5a9b4a15c0eaaaa4a408f85795bca4fea62ded6670ca8\",\"name\":\"@bcoe/v8-coverage\",\"version\":\"1.0.2\"},\"@biomejs__biome-2.5.9.tgz\":{\"integrity\":\"KkgCvdHB4IhtpHpF564plA9jo6fDOwWGQ/3jvreLzgOtRLEDoPqr7QO9qejNA8jKwDsSkAKr77hqBHnyUbIw4g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2a4802bdd1c1e0886da47a45e7ae29940f63a3a7c33b058643fde3beb78bce03ad44b103a0faabed03bda9e8cd03c8cac03b129002abefb86a0479f251b230e2\",\"name\":\"@biomejs/biome\",\"version\":\"2.5.9\"},\"@biomejs__cli-darwin-arm64-2.5.9.tgz\":{\"integrity\":\"am22pX2aBqznqq1eMyIj/bZ++riF3Lk6ct7cbv+gQK0csFhr+d8O0RkOi2FF2qSgFgANbqNkIZ0/PxlnW2pLFg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6a6db6a57d9a06ace7aaad5e332223fdb67efab885dcb93a72dedc6effa040ad1cb0586bf9df0ed1190e8b6145daa4a016000d6ea364219d3f3f19675b6a4b16\",\"name\":\"@biomejs/cli-darwin-arm64\",\"version\":\"2.5.9\"},\"@biomejs__cli-darwin-x64-2.5.9.tgz\":{\"integrity\":\"l44KWDHLDvEnD0N/XcrVs7VXb3A18xL7QS3WB0eL93wbmk529ffIG55vleGCqaunpRUjLrdnjK05Qki1dsjylg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"978e0a5831cb0ef1270f437f5dcad5b3b5576f7035f312fb412dd607478bf77c1b9a4e76f5f7c81b9e6f95e182a9aba7a515232eb7678cad394248b576c8f296\",\"name\":\"@biomejs/cli-darwin-x64\",\"version\":\"2.5.9\"},\"@biomejs__cli-linux-arm64-2.5.9.tgz\":{\"integrity\":\"ICaK+IYaVZvKbBxX2rwrPT0DdUDMnE9Vm3nQGe+mltQPmUg19pONzkPWGdY4FCsoreDETWDynvdt4ysCbF5gNQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"20268af8861a559bca6c1c57dabc2b3d3d037540cc9c4f559b79d019efa696d40f994835f6938dce43d619d638142b28ade0c44d60f29ef76de32b026c5e6035\",\"name\":\"@biomejs/cli-linux-arm64\",\"version\":\"2.5.9\"},\"@biomejs__cli-linux-arm64-musl-2.5.9.tgz\":{\"integrity\":\"7ImVPwBLCtkmpR5esd8RHhTqW94f0JLJQum6AneYcy94jRm18TaPPm7slaigGzFhfgt3QiD1Vj52LKmBAnKizA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ec89953f004b0ad926a51e5eb1df111e14ea5bde1fd092c942e9ba027798732f788d19b5f1368f3e6eec95a8a01b31617e0b774220f5563e762ca9810272a2cc\",\"name\":\"@biomejs/cli-linux-arm64-musl\",\"version\":\"2.5.9\"},\"@biomejs__cli-linux-x64-2.5.9.tgz\":{\"integrity\":\"z22Q/zFYSvbIJfW1CbfZPu4X8PddS6Qd2ORbc6h+aT6EcwAxUF3m6fA4HjNvA3TU4X0dTJRwNPB165ES3PJXzg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"cf6d90ff31584af6c825f5b509b7d93eee17f0f75d4ba41dd8e45b73a87e693e84730031505de6e9f0381e336f0374d4e17d1d4c947034f075eb9112dcf257ce\",\"name\":\"@biomejs/cli-linux-x64\",\"version\":\"2.5.9\"},\"@biomejs__cli-linux-x64-musl-2.5.9.tgz\":{\"integrity\":\"RXGaD0o1/pTTguYw1aeDJh9ad6Lfrui0fI7mBderTyGr7WuUJkBIttgLkR3XJyoxOkkgfBDspaUT8wXArTqLZw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"45719a0f4a35fe94d382e630d5a783261f5a77a2dfaee8b47c8ee605d7ab4f21abed6b94264048b6d80b911dd7272a313a49207c10eca5a513f305c0ad3a8b67\",\"name\":\"@biomejs/cli-linux-x64-musl\",\"version\":\"2.5.9\"},\"@biomejs__cli-win32-arm64-2.5.9.tgz\":{\"integrity\":\"nHK+/HHC+D0ogAHUxomgoSTdjImb6fmNNVTKmf0tyu4eDL1DqPKIHc+i+UL8+b0RnAu8224qo8F2tCVnaT0A3w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9c72befc71c2f83d288001d4c689a0a124dd8c899be9f98d3554ca99fd2dcaee1e0cbd43a8f2881dcfa2f942fcf9bd119c0bbcdb6e2aa3c176b42567693d00df\",\"name\":\"@biomejs/cli-win32-arm64\",\"version\":\"2.5.9\"},\"@biomejs__cli-win32-x64-2.5.9.tgz\":{\"integrity\":\"Yiq0H56LjXSSw/hd9YkXgSLQfzyDJzbzU2TezozxyNw+uKWAqOtqGVvBfzKRRDiaFF5avGAhHdWKx7LtDOShUw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"622ab41f9e8b8d7492c3f85df589178122d07f3c832736f35364dece8cf1c8dc3eb8a580a8eb6a195bc17f329144389a145e5abc60211dd58ac7b2ed0ce4a153\",\"name\":\"@biomejs/cli-win32-x64\",\"version\":\"2.5.9\"},\"@bramus__specificity-2.4.2.tgz\":{\"integrity\":\"ctxtJ/eA+t+6q2++vj5j7FYX3nRu311q1wfYH3xjlLOsczhlhxAg2FWNUXhpGvAw3BWo1xBcvOV6/YLc2r5FJw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"72dc6d27f780fadfbaab6fbebe3e63ec5617de746edf5d6ad707d81f7c6394b3ac733865871020d8558d5178691af030dc15a8d7105cbce57afd82dcdabe4527\",\"name\":\"@bramus/specificity\",\"version\":\"2.4.2\"},\"@csstools__color-helpers-6.1.1.tgz\":{\"integrity\":\"gLNsunvwf3mCi5u5o46/Z/JcJMnhbHSaZ69rkgPzNM3J4s8hWwpPUQB6/tt0EDFyCiWzxANlx+2LJwpYj4zS1w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"80b36cba7bf07f79828b9bb9a38ebf67f25c24c9e16c749a67af6b9203f334cdc9e2cf215b0a4f51007afedb741031720a25b3c40365c7ed8b270a588f8cd2d7\",\"name\":\"@csstools/color-helpers\",\"version\":\"6.1.1\"},\"@csstools__css-calc-3.3.0.tgz\":{\"integrity\":\"c5ihYsPkdG6JCkU2zTMm4+k6r7RXuGxtWYhu5DHMIiF1FHzrfmHL5so11AoFpUv/tu61xfcmT4AmKoFfMPoqdQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7398a162c3e4746e890a4536cd3326e3e93aafb457b86c6d59886ee431cc222175147ceb7e61cbe6ca35d40a05a54bffb6eeb5c5f7264f80262a815f30fa2a75\",\"name\":\"@csstools/css-calc\",\"version\":\"3.3.0\"},\"@csstools__css-color-parser-4.2.0.tgz\":{\"integrity\":\"5+5LEmFuY1AjXdYhmgjTJogtQnP1evJ1zrBZGUNZ0thkpwnnmKxcHdAMn/OtFjAb25zA+jKDVYVRl+5G7rjv1A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e7ee4b12616e6350235dd6219a08d326882d4273f57af275ceb059194359d2d864a709e798ac5c1dd00c9ff3ad16301bdb9cc0fa328355855197ee46eeb8efd4\",\"name\":\"@csstools/css-color-parser\",\"version\":\"4.2.0\"},\"@csstools__css-parser-algorithms-4.0.0.tgz\":{\"integrity\":\"+B87qS7fIG3L5h3qwJ/IFbjoVoOe/bpOdh9hAjXbvx0o8ImEmUsGXN0inFOnk2ChCFgqkkGFQ+TpM5rbhkKe4w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f81f3ba92edf206dcbe61deac09fc815b8e856839efdba4e761f610235dbbf1d28f08984994b065cdd229c53a79360a108582a92418543e4e9339adb86429ee3\",\"name\":\"@csstools/css-parser-algorithms\",\"version\":\"4.0.0\"},\"@csstools__css-syntax-patches-for-csstree-1.1.8.tgz\":{\"integrity\":\"CpMLjAvwQg3BL5S0IeqsZNMH7EQrEWi0kLKOC13ZBF0ZwERiLWlibNPJr8G1kdU3Ms/r2KiNrF81pUh2HwAHdg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0a930b8c0bf0420dc12f94b421eaac64d307ec442b1168b490b28e0b5dd9045d19c044622d69626cd3c9afc1b591d53732cfebd8a88dac5f35a548761f000776\",\"name\":\"@csstools/css-syntax-patches-for-csstree\",\"version\":\"1.1.8\"},\"@csstools__css-tokenizer-4.0.0.tgz\":{\"integrity\":\"QxULHAm7cNu72w97JUNCBFODFaXpbDg+dP8b/oWFAZ2MTRppA3U00Y2L1HqaS4J6yBqxwa/Y3nMBaxVKbB/NsA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"43150b1c09bb70dbbbdb0f7b25434204538315a5e96c383e74ff1bfe8585019d8c4d1a69037534d18d8bd47a9a4b827ac81ab1c1afd8de73016b154a6c1fcdb0\",\"name\":\"@csstools/css-tokenizer\",\"version\":\"4.0.0\"},\"@dotenvx__dotenvx-1.75.1.tgz\":{\"integrity\":\"/BITOC9dmS/edY2zQwZNicQ059O6RKabtQfyEafV0nGtfYRNHYy1DIPiYVcov40+tob9hfmBnbR963dS+EQ1DQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"fc1213382f5d992fde758db343064d89c434e7d3ba44a69bb507f211a7d5d271ad7d844d1d8cb50c83e2615728bf8d3eb686fd85f9819db47deb7752f844350d\",\"name\":\"@dotenvx/dotenvx\",\"version\":\"1.75.1\"},\"@dotenvx__primitives-0.8.0.tgz\":{\"integrity\":\"VYJy0uhFm9zTJ1TxBaW/pA8bjbOM/OttaNMwZ1RHG4JKyRG7DhSdiqD1ipQoAyoD22olUtxbP78W9xY3Wd11bg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"558272d2e8459bdcd32754f105a5bfa40f1b8db38cfceb6d68d3306754471b824ac911bb0e149d8aa0f58a9428032a03db6a2552dc5b3fbf16f7163759dd756e\",\"name\":\"@dotenvx/primitives\",\"version\":\"0.8.0\"},\"@electron-internal__extract-zip-1.0.5.tgz\":{\"integrity\":\"+bqFCP98pLI0Tt0XQo1TmlXtwjWchISndDOxCkEcIuUgXWpBnLyRI+2DU+mesvnMMX6L1XDqYNA0lXNDHd/yiA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f9ba8508ff7ca4b2344edd17428d539a55edc2359c8484a77433b10a411c22e5205d6a419cbc9123ed8353e99eb2f9cc317e8bd570ea60d0349573431ddff288\",\"name\":\"@electron-internal/extract-zip\",\"version\":\"1.0.5\"},\"@electron__asar-3.4.1.tgz\":{\"integrity\":\"i4/rNPRS84t0vSRa2HorerGRXWyF4vThfHesw0dmcWHp+cspK743UanA0suA5Q5y8kzY2y6YKrvbIUn69BCAiA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8b8feb34f452f38b74bd245ad87a2b7ab1915d6c85e2f4e17c77acc347667161e9f9cb292bbe3751a9c0d2cb80e50e72f24cd8db2e982abbdb2149faf4108088\",\"name\":\"@electron/asar\",\"version\":\"3.4.1\"},\"@electron__fuses-1.8.0.tgz\":{\"integrity\":\"zx0EIq78WlY/lBb1uXlziZmDZI4ubcCXIMJ4uGjXzZW0nS19TjSPeXPAjzzTmKQlJUZm0SbmZhPKP7tuQ1SsEw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"cf1d0422aefc5a563f9416f5b97973899983648e2e6dc09720c278b868d7cd95b49d2d7d4e348f7973c08f3cd398a425254666d126e66613ca3fbb6e4354ac13\",\"name\":\"@electron/fuses\",\"version\":\"1.8.0\"},\"@electron__get-3.1.0.tgz\":{\"integrity\":\"F+nKc0xW+kVbBRhFzaMgPy3KwmuNTYX1fx6+FxxoSnNgwYX6LD7AKBTWkU0MQ6IBoe7dz069CNkR673sPAgkCQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"17e9ca734c56fa455b051845cda3203f2dcac26b8d4d85f57f1ebe171c684a7360c185fa2c3ec02814d6914d0c43a201a1eeddcf4ebd08d911ebbdec3c082409\",\"name\":\"@electron/get\",\"version\":\"3.1.0\"},\"@electron__get-5.1.0.tgz\":{\"integrity\":\"3kSBtG8ObcTVfXanm5vVJ6UnBLEVmVsRk1M+vGqCuMBV+XLCbJYuWQful+yIy0GQDsSlK0kHEriEHn7SPk4EnA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"de4481b46f0e6dc4d57d76a79b9bd527a52704b115995b1193533ebc6a82b8c055f972c26c962e5907ee97ec88cb41900ec4a52b490712b8841e7ed23e4e049c\",\"name\":\"@electron/get\",\"version\":\"5.1.0\"},\"@electron__notarize-2.5.0.tgz\":{\"integrity\":\"jNT8nwH1f9X5GEITXaQ8IF/KdskvIkOFfB2CvwumsveVidzpSc+mvhhTMdAGSYF3O+Nq49lJ7y+ssODRXu06+A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8cd4fc9f01f57fd5f91842135da43c205fca76c92f2243857c1d82bf0ba6b2f79589dce949cfa6be185331d0064981773be36ae3d949ef2facb0e0d15eed3af8\",\"name\":\"@electron/notarize\",\"version\":\"2.5.0\"},\"@electron__notarize-3.1.1.tgz\":{\"integrity\":\"uQQSlOiJnqRkTL1wlEBAxe90nVN/Fc/hEmk0bqpKk8nKjV1if/tXLHKUPePtv9Xsx90PtZU8aidx5lAiOpjkQQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b9041294e8899ea4644cbd70944040c5ef749d537f15cfe11269346eaa4a93c9ca8d5d627ffb572c72943de3edbfd5ecc7dd0fb5953c6a2771e650223a98e441\",\"name\":\"@electron/notarize\",\"version\":\"3.1.1\"},\"@electron__osx-sign-1.3.3.tgz\":{\"integrity\":\"KZ8mhXvWv2rIEgMbWZ4y33bDHyUKMXnx4M0sTyPNK/vcB81ImdeY9Ggdqy0SWbMDgmbqyQ+phgejh6V3R2QuSg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"299f26857bd6bf6ac812031b599e32df76c31f250a3179f1e0cd2c4f23cd2bfbdc07cd4899d798f4681dab2d1259b3038266eac90fa98607a387a57747642e4a\",\"name\":\"@electron/osx-sign\",\"version\":\"1.3.3\"},\"@electron__rebuild-4.2.0.tgz\":{\"integrity\":\"RKL/O+jGoXJMxrx/5771y1n0xTKmFuOYGO3gMmwypBM6rsH0kou0mswwdXA2JrhIkE4xyC7v9vGk0n6NPzgOxQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"44a2ff3be8c6a1724cc6bc7fe7bef5cb59f4c532a616e39818ede0326c32a4133aaec1f4928bb49acc3075703626b848904e31c82eeff6f1a4d27e8d3f380ec5\",\"name\":\"@electron/rebuild\",\"version\":\"4.2.0\"},\"@electron__universal-2.0.3.tgz\":{\"integrity\":\"Wn9sPYIVFRFl5HmwMJkARCCf7rqK/EurkfQ/rJZ14mHP3iYTjZSIOSVonEAnhWeAXwtw7zOekGRlc6yTtZ0t+g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5a7f6c3d8215151165e479b030990044209feeba8afc4bab91f43fac9675e261cfde26138d94883925689c40278567805f0b70ef339e90646573ac93b59d2dfa\",\"name\":\"@electron/universal\",\"version\":\"2.0.3\"},\"@electron__windows-sign-1.2.2.tgz\":{\"integrity\":\"dfZeox66AvdPtb2lD8OsIIQh12Tp0GNCRUDfBHIKGpbmopZto2/A8nSpYYLoedPIHpqkeblZ/k8OV0Gy7PYuyQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"75f65ea31eba02f74fb5bda50fc3ac208421d764e9d063424540df04720a1a96e6a2966da36fc0f274a96182e879d3c81e9aa479b959fe4f0e5741b2ecf62ec9\",\"name\":\"@electron/windows-sign\",\"version\":\"1.2.2\"},\"@esbuild__aix-ppc64-0.28.2.tgz\":{\"integrity\":\"XExcO+dvLKvVtNTibSTBej1NCAbaGhWn9Ww1ZPx80qsahhPFe/8jgWP0IchNe0F3HwkU7n8ejhH8bjonqht8mQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5c4c5c3be76f2cabd5b4d4e26d24c17a3d4d0806da1a15a7f56c3564fc7cd2ab1a8613c57bff238163f421c84d7b41771f0914ee7f1e8e11fc6e3a27aa1b7c99\",\"name\":\"@esbuild/aix-ppc64\",\"version\":\"0.28.2\"},\"@esbuild__android-arm-0.28.2.tgz\":{\"integrity\":\"kXXoiPVVGQcnIYGOeaovwOURpniDBpSq4A03qkQ+BMQqtGG6HYap3xne9C1O1yo4TR3qxlCX5IqqmX6fFo2Lqg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9175e888f55519072721818e79aa2fc0e511a678830694aae00d37aa443e04c42ab461ba1d86a9df19def42d4ed72a384d1deac65097e48aaa997e9f168d8baa\",\"name\":\"@esbuild/android-arm\",\"version\":\"0.28.2\"},\"@esbuild__android-arm64-0.28.2.tgz\":{\"integrity\":\"5YfKeeI8qWfBZIX+u2xZC3Zlb3Os/gLS2sbEKM+I4ZOcsWmHS2WLysCcQZDAFRslDUU5Oiq44gf6PYN1vGwG5A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e587ca79e23ca967c16485febb6c590b76656f73acfe02d2dac6c428cf88e1939cb169874b658bcac09c4190c0151b250d45393a2ab8e207fa3d8375bc6c06e4\",\"name\":\"@esbuild/android-arm64\",\"version\":\"0.28.2\"},\"@esbuild__android-x64-0.28.2.tgz\":{\"integrity\":\"O387ite7SzUyCcy3JQX4P4bLtEA7bLLkx+esve5JHnyYfNTxcVpXZo9jhdB0lTKN44gztELTdU7nS8Nr16Fs1Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3b7f3b8ad7bb4b353209ccb72505f83f86cbb4403b6cb2e4c7e7acbdee491e7c987cd4f1715a57668f6385d07495328de38833b442d3754ee74bc36bd7a16cd5\",\"name\":\"@esbuild/android-x64\",\"version\":\"0.28.2\"},\"@esbuild__darwin-arm64-0.28.2.tgz\":{\"integrity\":\"n4KqkOQrraxHJcgjM1RvwbigfQKIKJVpM7xp+KsxiyUSrRdIXnt73VhrPAx0fV44hgfmIVKjxMN9J1t5jySVkw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9f82aa90e42badac4725c82333546fc1b8a07d028828956933bc69f8ab318b2512ad17485e7b7bdd586b3c0c747d5e388607e62152a3c4c37d275b798f249593\",\"name\":\"@esbuild/darwin-arm64\",\"version\":\"0.28.2\"},\"@esbuild__darwin-x64-0.28.2.tgz\":{\"integrity\":\"uq6suIWYP37qzGddBKPw5QEQPi6HiLGsO7UmkpfyaYNQ3D+rN6w6WfwH+nuqcGXWvawGwxOEroO4YGnFh95azw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"baaeacb885983f7eeacc675d04a3f0e501103e2e8788b1ac3bb5269297f2698350dc3fab37ac3a59fc07fa7baa7065d6bdac06c31384ae83b86069c587de5acf\",\"name\":\"@esbuild/darwin-x64\",\"version\":\"0.28.2\"},\"@esbuild__freebsd-arm64-0.28.2.tgz\":{\"integrity\":\"n+I0BTSRIoy+d6RPKnEVwql5UwBJolytvY4mAOIEJorKlqgPII8ix6slVVrfZ5Tnj7glIZvloylbB/EJPMWEXw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9fe234053491228cbe77a44f2a7115c2a979530049a25cadbd8e2600e204268aca96a80f208f22c7ab25555adf6794e78fb825219be5a3295b07f1093cc5845f\",\"name\":\"@esbuild/freebsd-arm64\",\"version\":\"0.28.2\"},\"@esbuild__freebsd-x64-0.28.2.tgz\":{\"integrity\":\"78XJTJkvPs0kz2w61301PJjXl4g7q3JqiYMZ/M/yVI73EHBrCRTgkhu9oqG7vPqq+a/yadEW8aD+agKlk5xrmg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"efc5c94c992f3ecd24cf6c3ad77d353c98d797883bab726a898319fccff2548ef710706b0914e0921bbda2a1bbbcfaaaf9aff269d116f1a0fe6a02a5939c6b9a\",\"name\":\"@esbuild/freebsd-x64\",\"version\":\"0.28.2\"},\"@esbuild__linux-arm-0.28.2.tgz\":{\"integrity\":\"XlDnu2q5yoqems+xay6wSAcg9DDD7K9RLKZEBOMZm3ckNpJBvOX20tSfby8KfrrhINDyv9V2YVZKY/SpoGJI8w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5e50e7bb6ab9ca8a9e9acfb16b2eb0480720f430c3ecaf512ca64404e3199b7724369241bce5f6d2d49f6f2f0a7ebae120d0f2bfd57661564a63f4a9a06248f3\",\"name\":\"@esbuild/linux-arm\",\"version\":\"0.28.2\"},\"@esbuild__linux-arm64-0.28.2.tgz\":{\"integrity\":\"pW4AC0P3it8c7do9MVM4p51FzHzdM/TZrerurgRcHJ2WTa1VQ1CIq18xncfpBJw4ojkiZZrKW2yIBWBP92j6Ug==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a56e000b43f78adf1cedda3d315338a79d45cc7cdd33f4d9adeaeeae045c1c9d964dad55435088ab5f319dc7e9049c38a23922659aca5b6c8805604ff768fa52\",\"name\":\"@esbuild/linux-arm64\",\"version\":\"0.28.2\"},\"@esbuild__linux-ia32-0.28.2.tgz\":{\"integrity\":\"CYbnj78HsIeA+DhgUKgFCfvNsTHFhMMrinUrMZpDXJXKN8T3XViTZ/+wtHeVxEWY8ewSzTFN+nRmSwO2tZaLUQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0986e78fbf07b08780f8386050a80509fbcdb131c584c32b8a752b319a435c95ca37c4f75d589367ffb0b47795c44598f1ec12cd314dfa74664b03b6b5968b51\",\"name\":\"@esbuild/linux-ia32\",\"version\":\"0.28.2\"},\"@esbuild__linux-loong64-0.28.2.tgz\":{\"integrity\":\"buwkd8nsph4R+ajRvw0qM5Hja/TXQow3ptzWO2EbG/cqcIkHloRrdlBtQlshyYGTNFvfkfJ5tpPLVkY4DtsPfQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6eec2477c9eca61e11f9a8d1bf0d2a3391e36bf4d7428c37a6dcd63b611b1bf72a70890796846b76506d425b21c98193345bdf91f279b693cb5646380edb0f7d\",\"name\":\"@esbuild/linux-loong64\",\"version\":\"0.28.2\"},\"@esbuild__linux-mips64el-0.28.2.tgz\":{\"integrity\":\"ZVykbDyk7519VwiNb9Lcj9m8XM6v5V9uKPvrEMkkEedVewf+0itkhahp4HDpgERXhwLRpWFypsGbG/J8s0QjJA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"655ca46c3ca4ef9d7d57088d6fd2dc8fd9bc5cceafe55f6e28fbeb10c92411e7557b07fed22b6485a869e070e98044578702d1a56172a6c19b1bf27cb3442324\",\"name\":\"@esbuild/linux-mips64el\",\"version\":\"0.28.2\"},\"@esbuild__linux-ppc64-0.28.2.tgz\":{\"integrity\":\"CAXl+Dtd9UUuJd8pKKdwh6MLm3MUMiqMPmhZ3tTSXPqfyQ3vDl6R5hZdZ/kYojK4ofXtdfSv1tFq8XzWx3heNQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0805e5f83b5df5452e25df2928a77087a30b9b7314322a8c3e6859ded4d25cfa9fc90def0e5e91e6165d67f918a232b8a1f5ed75f4afd6d16af17cd6c7785e35\",\"name\":\"@esbuild/linux-ppc64\",\"version\":\"0.28.2\"},\"@esbuild__linux-riscv64-0.28.2.tgz\":{\"integrity\":\"GeXCej4IQtU1B+QlDV8W/RRvbzI3O/Stss+/bCXv4lZls5WGRtu2a+3JkA3i4qIUlMXpcHebWpF8AkJhATowuA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"19e5c27a3e0842d53507e4250d5f16fd146f6f32373bf4adb2cfbf6c25efe25665b3958646dbb66bedc9900de2e2a21494c5e970779b5a917c024261013a30b8\",\"name\":\"@esbuild/linux-riscv64\",\"version\":\"0.28.2\"},\"@esbuild__linux-s390x-0.28.2.tgz\":{\"integrity\":\"3H1weTYZPxt/WOhByszQZybS9w5lKzUn1FDMsgEChbHWQwHYQQRfBxgCcZvPhjHfKyJjIievvMmEUawJrdY9Dg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"dc7d707936193f1b7f58e841caccd06726d2f70e652b3527d450ccb2010285b1d64301d841045f071802719bcf8631df2b22632227afbcc98451ac09add63d0e\",\"name\":\"@esbuild/linux-s390x\",\"version\":\"0.28.2\"},\"@esbuild__linux-x64-0.28.2.tgz\":{\"integrity\":\"4xTZr1FUmSoQW4XIWmit3tzQrUTZM+N3P0XV8xROKYF50XfI7xeO90+1bZvNwxIufQ9hDQVRJH5YhgPVF8A/HQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e314d9af5154992a105b85c85a68addedcd0ad44d933e3773f45d5f3144e298179d177c8ef178ef74fb56d9bcdc3122e7d0f610d0551247e588603d517c03f1d\",\"name\":\"@esbuild/linux-x64\",\"version\":\"0.28.2\"},\"@esbuild__netbsd-arm64-0.28.2.tgz\":{\"integrity\":\"sSATRjPeDBg3pdgHoQfoYBob11Kk1FGa9lui5RIHZCoCkJa9QKlvl3/vKz2usCmYYjs7ymJR/2Nnsqe+Hjt5nw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b120134633de0c1837a5d807a107e8601a1bd752a4d4519af65ba2e51207642a029096bd40a96f977fef2b3daeb02998623b3bca6251ff6367b2a7be1e3b799f\",\"name\":\"@esbuild/netbsd-arm64\",\"version\":\"0.28.2\"},\"@esbuild__netbsd-x64-0.28.2.tgz\":{\"integrity\":\"lqnzCV+mM0gIADaKihiCg6ifgfU2L3h5E33rNQBN1Y4MaVGnzryzmvvf7UHxprpQdE8hpqLolJ9Rl+SkIRDpyw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"96a9f3095fa633480800368a8a188283a89f81f5362f7879137deb35004dd58e0c6951a7cebcb39afbdfed41f1a6ba50744f21a6a2e8949f5197e4a42110e9cb\",\"name\":\"@esbuild/netbsd-x64\",\"version\":\"0.28.2\"},\"@esbuild__openbsd-arm64-0.28.2.tgz\":{\"integrity\":\"AL2qJILH7lNjrDmCQDvdxMfAUIv8KMNZOvrwAQ8i8//ntL9FflhOyMJ8OZSMBb8/AWXe3/5v5S20y3zCoZWKoQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"00bdaa2482c7ee5363ac3982403bddc4c7c0508bfc28c3593afaf0010f22f3ffe7b4bf457e584ec8c27c39948c05bf3f0165dedffe6fe52db4cb7cc2a1958aa1\",\"name\":\"@esbuild/openbsd-arm64\",\"version\":\"0.28.2\"},\"@esbuild__openbsd-x64-0.28.2.tgz\":{\"integrity\":\"QtiuPytchRyC4rwUKhexJdQKvDuZ6hWloi3igqPQNUJCS1/v9EiO3UTOXR6A3FoMo4fnAKbWJdqaIwhOzh8qEw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"42d8ae3f2b5c851c82e2bc142a17b125d40abc3b99ea15a5a22de282a3d03542424b5feff4488edd44ce5d1e80dc5a0ca387e700a6d625da9a23084ece1f2a13\",\"name\":\"@esbuild/openbsd-x64\",\"version\":\"0.28.2\"},\"@esbuild__openharmony-arm64-0.28.2.tgz\":{\"integrity\":\"WkhYDmpTjLvGlScA1rwjRUmhl4k8oXR3cIbtqWmELgU/dFeHHlEllxDvdWcNJV9rbzCexB5vz8gtNewWLgCT7Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5a48580e6a538cbbc6952700d6bc234549a197893ca174777086eda969842e053f7457871e51259710ef75670d255f6b6f309ec41e6fcfc82d35ec162e0093ed\",\"name\":\"@esbuild/openharmony-arm64\",\"version\":\"0.28.2\"},\"@esbuild__sunos-x64-0.28.2.tgz\":{\"integrity\":\"GPMSkTOtMnv2U2F8gxe4Io6qmVs+YKyp832Etqqxr0hFngmXQ3rzwytelm3GIn7T4VviRUlf3sOgBOiTdvaf7g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"18f3129133ad327bf653617c8317b8228eaa995b3e60aca9f37d84b6aab1af48459e0997437af3c32b5e966dc6227ed3e15be245495fdec3a004e89376f69fee\",\"name\":\"@esbuild/sunos-x64\",\"version\":\"0.28.2\"},\"@esbuild__win32-arm64-0.28.2.tgz\":{\"integrity\":\"PIhhEkE9uPBleRBrQEJpUn7MBnibZzbGzYWPmY3x+YoVg/95zbjB4CxPPOQ8l5tYYM4mMaCthF8/1DIfBQQyWQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3c886112413db8f06579106b404269527ecc06789b6736c6cd858f998df1f98a1583ff79cdb8c1e02c4f3ce43c979b5860ce2631a0ad845f3fd4321f05043259\",\"name\":\"@esbuild/win32-arm64\",\"version\":\"0.28.2\"},\"@esbuild__win32-ia32-0.28.2.tgz\":{\"integrity\":\"YmJbfTlvU7Sdn9BB+4PRES4oB6pxgS37MAONj+hBr/cpXS1aBPKXxNnDbu+QCWPj0o9dgyxeq79g6c5P8KeuYA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"62625b7d396f53b49d9fd041fb83d1112e2807aa71812dfb30038d8fe841aff7295d2d5a04f297c4d9c36eef900963e3d28f5d832c5eabbf60e9ce4ff0a7ae60\",\"name\":\"@esbuild/win32-ia32\",\"version\":\"0.28.2\"},\"@esbuild__win32-x64-0.28.2.tgz\":{\"integrity\":\"5ebpxr3nWMzrL/rnUI755Jkuee0bHL/Gq0WTF9lvcpv73wAp5eu8MfBUgWK9bhWvZjj7yX8etf/8tI8Ney695g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e5e6e9c6bde758cceb2ffae7508ef9e4992e79ed1b1cbfc6ab459317d96f729bfbdf0029e5ebbc31f0548162bd6e15af6638fbc97f1eb5fffcb48f0d7b2ebde6\",\"name\":\"@esbuild/win32-x64\",\"version\":\"0.28.2\"},\"@exodus__bytes-1.15.1.tgz\":{\"integrity\":\"S6mL0yNB/Abt9Ei4tq8gDhcczc4S3+vQ4ra7vxnAf+YHC02srtqxKKZghx2Dq6p0e66THKwR6r8N6P95wEty7Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4ba98bd32341fc06edf448b8b6af200e171ccdce12dfebd0e2b6bbbf19c07fe6070b4dacaedab128a660871d83abaa747bae931cac11eabf0de8ff79c04b72ed\",\"name\":\"@exodus/bytes\",\"version\":\"1.15.1\"},\"@fastify__accept-negotiator-2.1.0.tgz\":{\"integrity\":\"F3EVbzWt+xcnVaOHmWyIlpuFtbxOln7HDZQsh09MtMmMm/CipMayNt8hnIL8VQi54u2ZociDbf+iluGYkf7B1A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1771156f35adfb172755a387996c88969b85b5bc4e967ec70d942c874f4cb4c98c9bf0a2a4c6b236df219c82fc5508b9e2ed99a1c8836dffa296e19891fec1d4\",\"name\":\"@fastify/accept-negotiator\",\"version\":\"2.1.0\"},\"@fastify__ajv-compiler-4.0.6.tgz\":{\"integrity\":\"NtuzM0SfaMJbGlnjr9LWQUN5LzgSrbB8tf/wRZNas+4E1O/Nmzl53e7ruT61HDZyRCJGC6FxIogmNZO1c5ETBA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"36dbb333449f68c25b1a59e3afd2d64143792f3812adb07cb5fff045935ab3ee04d4efcd9b3979ddeeebb93eb51c36724422460ba1712288263593b573911304\",\"name\":\"@fastify/ajv-compiler\",\"version\":\"4.0.6\"},\"@fastify__error-4.2.0.tgz\":{\"integrity\":\"RSo3sVDXfHskiBZKBPRgnQTtIqpi/7zhJOEmAxCiBcM7d0uwdGdxLlsCaLzGs8v8NnxIRlfG0N51p5yFaOentQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"452a37b150d77c7b2488164a04f4609d04ed22aa62ffbce124e1260310a205c33b774bb07467712e5b0268bcc6b3cbfc367c484657c6d0de75a79c8568e7a7b5\",\"name\":\"@fastify/error\",\"version\":\"4.2.0\"},\"@fastify__fast-json-stringify-compiler-5.1.0.tgz\":{\"integrity\":\"PxcYtKLbQ8Z+yApiqjK8FwxIwvEj38k2OiLc17u8dkJSlmfi2wHHPaSnaoqBPQqtvF8YVsDgDpP2snDCfFrpfw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3f1718b4a2db43c67ec80a62aa32bc170c48c2f123dfc9363a22dcd7bbbc7642529667e2db01c73da4a76a8a813d0aadbc5f1856c0e00e93f6b270c27c5ae97f\",\"name\":\"@fastify/fast-json-stringify-compiler\",\"version\":\"5.1.0\"},\"@fastify__forwarded-3.0.2.tgz\":{\"integrity\":\"NE8HgKLgYejV9lDpqkEFaDKMLYelJBVfHekhB0UKvX0ghagXRJqg68feg8er1NPXxG4N9i6vPxzt8E+3wHfcmA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"344f0780a2e061e8d5f650e9aa410568328c2d87a524155f1de92107450abd7d2085a817449aa0ebc7de83c7abd4d3d7c46e0df62eaf3f1cedf04fb7c077dc98\",\"name\":\"@fastify/forwarded\",\"version\":\"3.0.2\"},\"@fastify__merge-json-schemas-0.2.1.tgz\":{\"integrity\":\"OA3KGBCy6KtIvLf8DINC5880o5iBlDX4SxzLQS8HorJAbqluzLRn80UXU0bxZn7UOFhFgpRJDasfwn9nG4FG4A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"380dca1810b2e8ab48bcb7fc0c8342e7cf34a398819435f84b1ccb412f07a2b2406ea96eccb467f345175346f1667ed43858458294490dab1fc27f671b8146e0\",\"name\":\"@fastify/merge-json-schemas\",\"version\":\"0.2.1\"},\"@fastify__proxy-addr-5.1.0.tgz\":{\"integrity\":\"INS+6gh91cLUjB+PVHfu1UqcB76Sqtpyp7bnL+FYojhjygvOPA9ctiD/JDKsyD9Xgu4hUhCSJBPig/w7duNajw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"20d4beea087dd5c2d48c1f8f5477eed54a9c07be92aada72a7b6e72fe158a23863ca0bce3c0f5cb620ff2432acc83f5782ee215210922413e283fc3b76e35a8f\",\"name\":\"@fastify/proxy-addr\",\"version\":\"5.1.0\"},\"@fastify__send-4.1.1.tgz\":{\"integrity\":\"BYo+EiaKwlxH+WetGk6hAs1d39iP0y1gqB8lGF/qwkJ9ZZ/cBY1vx5NvExb9Sc3yRMFjD5X4Eyh4e4+TzRkzdw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"058a3e12268ac25c47f967ad1a4ea102cd5ddfd88fd32d60a81f25185feac2427d659fdc058d6fc7936f1316fd49cdf244c1630f95f81328787b8f93cd193377\",\"name\":\"@fastify/send\",\"version\":\"4.1.1\"},\"@fastify__static-10.1.3.tgz\":{\"integrity\":\"W6jqajYS974XjPjB5hQWoxPM8NKM4+p8YmQT6G5IbCa4uhdWSVadZUv75siy1wEA/3ty8RYdpBydfWeu9AqAqQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5ba8ea6a3612f7be178cf8c1e61416a313ccf0d28ce3ea7c626413e86e486c26b8ba175649569d654bfbe6c8b2d70100ff7b72f1161da41c9d7d67aef40a80a9\",\"name\":\"@fastify/static\",\"version\":\"10.1.3\"},\"@fastify__websocket-11.3.0.tgz\":{\"integrity\":\"g89ag4BCcD9YP5wBZXixzoLnuf5j89p/sXFcfpCiv2pdEkYYukBEoK3heVzqsp0EAtszVDc2BBZG0KZqeAShIA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"83cf5a838042703f583f9c016578b1ce82e7b9fe63f3da7fb1715c7e90a2bf6a5d124618ba4044a0ade1795ceab29d0402db33543736041646d0a66a7804a120\",\"name\":\"@fastify/websocket\",\"version\":\"11.3.0\"},\"@floating-ui__core-1.8.0.tgz\":{\"integrity\":\"0CIZ5itps/8x7BG8dEIhs53BvCUH2PCoogtakwRTut+Arm58sJooJ0AuZhLw2HJYIR5cMLNPBSS728sPho2khQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d02219e62b69b3ff31ec11bc744221b39dc1bc2507d8f0a8a20b5a930453badf80ae6e7cb09a2827402e6612f0d87258211e5c30b34f0524bbdbcb0f868da485\",\"name\":\"@floating-ui/core\",\"version\":\"1.8.0\"},\"@floating-ui__dom-1.8.0.tgz\":{\"integrity\":\"yXSrzeHZBTZadLOlfyhCkJHNeLJnHRnRInwdZ40L7ZiaAtrBwoYlsDrX3v5zB1Utk7CLfzcOVnVVWoXEky7Ceg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c974abcde1d905365a74b3a57f28429091cd78b2671d19d1227c1d678d0bed989a02dac1c28625b03ad7defe7307552d93b08b7f370e5675555a85c4932ec27a\",\"name\":\"@floating-ui/dom\",\"version\":\"1.8.0\"},\"@floating-ui__react-dom-2.1.9.tgz\":{\"integrity\":\"JDjEFGCpImxDCA7JJKviA0M9+RtmJdj0m/NVU5IMgBK+AmZouAQQ7/+2GLH0GXXY0YMw9oXPB8hKdbPYg5QLYg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2438c41460a9226c43080ec924abe203433df91b6625d8f49bf35553920c8012be026668b80410efffb618b1f41975d8d18330f685cf07c84a75b3d883940b62\",\"name\":\"@floating-ui/react-dom\",\"version\":\"2.1.9\"},\"@floating-ui__utils-0.2.12.tgz\":{\"integrity\":\"HpCo8tmWzLVad5s2d19EhAz5zqrrQ6s69qd6moPMQvkOuSwDT1YgRfWSVuc4ennqrgv3OHppiOGMQ7oC13yIww==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1e90a8f2d996ccb55a779b36775f44840cf9ceaaeb43ab3af6a77a9a83cc42f90eb92c034f562045f59256e7387a79eaae0bf7387a6988e18c43ba02d77c88c3\",\"name\":\"@floating-ui/utils\",\"version\":\"0.2.12\"},\"@fontsource-variable__inter-5.3.0.tgz\":{\"integrity\":\"OupL48va4JNofb97w6NYeF9S7W/kHNKM0Er8Dem5nqi4jeOLrVJDoE8tZEpnMJmtkvNbB1EIPPwHcdkF6b1oUA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3aea4be3cbdae093687dbf7bc3a358785f52ed6fe41cd28cd04afc0de9b99ea8b88de38bad5243a04f2d644a673099ad92f35b0751083cfc0771d905e9bd6850\",\"name\":\"@fontsource-variable/inter\",\"version\":\"5.3.0\"},\"@hono__node-server-2.1.1.tgz\":{\"integrity\":\"ELuehkj5VCBdgEw9zs+ivkKwyzzUCSQuE96YmiPvn1ECBoZCczbFXJLeEGMTYjphP6gydh4pHMqEYPVMYUVgQg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"10bb9e8648f954205d804c3dcecfa2be42b0cb3cd409242e13de989a23ef9f51020686427336c55c92de106313623a613fa832761e291cca8460f54c61456042\",\"name\":\"@hono/node-server\",\"version\":\"2.1.1\"},\"@hookform__resolvers-5.9.1.tgz\":{\"integrity\":\"7b7vsbraJxKgjVSA1Nur9tLwj539WGJUBLA7QNvXnFoT2pM5Z7G+6rlukk4B2/QrTZy6huRtH6wKeESPKuIr6w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"edbeefb1bada2712a08d5480d4dbabf6d2f08f9dfd58625404b03b40dbd79c5a13da933967b1beeab96e924e01dbf42b4d9cba86e46d1fac0a78448f2ae22beb\",\"name\":\"@hookform/resolvers\",\"version\":\"5.9.1\"},\"@isaacs__fs-minipass-4.0.1.tgz\":{\"integrity\":\"wgm9Ehl2jpeqP3zw/7mo3kRHFp5MEDhqAdwy1fTGkHAwnkGOVsgpvQhL8B5n1qlb01jV3n/bI0ZfZp5lWA1k4w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c209bd1219768e97aa3f7cf0ffb9a8de4447169e4c10386a01dc32d5f4c69070309e418e56c829bd084bf01e67d6a95bd358d5de7fdb23465f669e65580d64e3\",\"name\":\"@isaacs/fs-minipass\",\"version\":\"4.0.1\"},\"@jitl__quickjs-ffi-types-0.32.0.tgz\":{\"integrity\":\"v9T+GQpmk43VDJ7d72sf0Nexhk+ArvtUihW27dy7lqAl0zBObFKtSBBIm5RBjwIhE8VwsPPm9PNuvPvNqLWUEg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"bfd4fe190a66938dd50c9eddef6b1fd0d7b1864f80aefb548a15b6eddcbb96a025d3304e6c52ad4810489b94418f022113c570b0f3e6f4f36ebcfbcda8b59412\",\"name\":\"@jitl/quickjs-ffi-types\",\"version\":\"0.32.0\"},\"@jitl__quickjs-wasmfile-debug-asyncify-0.32.0.tgz\":{\"integrity\":\"EX8zbXwGqCgAE764M+qvkHtyXDi/FUoMBea0JnES7vCM3P7a2+EOZOjGv85wtZ2sJhI1oJ+nekmqpOODFDY+hw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"117f336d7c06a8280013beb833eaaf907b725c38bf154a0c05e6b4267112eef08cdcfedadbe10e64e8c6bfce70b59dac261235a09fa77a49aaa4e38314363e87\",\"name\":\"@jitl/quickjs-wasmfile-debug-asyncify\",\"version\":\"0.32.0\"},\"@jitl__quickjs-wasmfile-debug-sync-0.32.0.tgz\":{\"integrity\":\"LeYWrPGC1uNCTBWvibo3ZLJj0CSVNYUXvJpXMCmuQ5Sap2cCACc3uvGvYV4homHHBAzfw5akoTqMMS4YFRtw+Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2de616acf182d6e3424c15af89ba3764b263d02495358517bc9a573029ae43949aa76702002737baf1af615e21a261c7040cdfc396a4a13a8c312e18151b70f9\",\"name\":\"@jitl/quickjs-wasmfile-debug-sync\",\"version\":\"0.32.0\"},\"@jitl__quickjs-wasmfile-release-asyncify-0.32.0.tgz\":{\"integrity\":\"3oSwPfja12ICz4aIblB58cuY8JlEq5Txt8Cut4VLo+LH47QN+mzCnSgnbB03hWzg1LBcc+VyyI9UOag7a1NF+Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"de84b03df8dad76202cf86886e5079f1cb98f09944ab94f1b7c0aeb7854ba3e2c7e3b40dfa6cc29d28276c1d37856ce0d4b05c73e572c88f5439a83b6b5345f9\",\"name\":\"@jitl/quickjs-wasmfile-release-asyncify\",\"version\":\"0.32.0\"},\"@jitl__quickjs-wasmfile-release-sync-0.32.0.tgz\":{\"integrity\":\"BKNDI/TPBfGlLNGYpLrhcDGXmIk4xHm4MRAisOBnOzpXVn9HZWsfmMAc9WMBrAHjvvds6HOikKeaOBKdPdpVrg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"04a34323f4cf05f1a52cd198a4bae1703197988938c479b8311022b0e0673b3a57567f47656b1f98c01cf56301ac01e3bef76ce873a290a79a38129d3dda55ae\",\"name\":\"@jitl/quickjs-wasmfile-release-sync\",\"version\":\"0.32.0\"},\"@jridgewell__gen-mapping-0.3.13.tgz\":{\"integrity\":\"2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"da492dffb9e227a32010fc45d1b61d43a7ad65a03e7d0bc370b29c921cb5c8840ecdaa0a8c10634a3eb7fda2d58d8137aa146de5dbccfae5327c283a50a0816c\",\"name\":\"@jridgewell/gen-mapping\",\"version\":\"0.3.13\"},\"@jridgewell__remapping-2.3.5.tgz\":{\"integrity\":\"LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2c8f6effe95a606e03b354c3292256d983eb22571560ec22d9f502eb1078de5b9e0a383157895f7ce0990ad605887e9334e5feb50297c7ded3e082876e1c8711\",\"name\":\"@jridgewell/remapping\",\"version\":\"2.3.5\"},\"@jridgewell__resolve-uri-3.1.2.tgz\":{\"integrity\":\"bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6d12128022233f6d3fb5b5923d63048b9e1054f45913192e0fd9492fe508c542adc15240f305b54eb6f58ccb354455e8d42053359ff98690bd42f98a59da292b\",\"name\":\"@jridgewell/resolve-uri\",\"version\":\"3.1.2\"},\"@jridgewell__sourcemap-codec-1.5.5.tgz\":{\"integrity\":\"cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"71843ddf5d20aeac6e7966e5f96b885086a251a0dc8fb58eab97d58449633558117ce52163d7f2db34ef7e8a96b2779b87c4a5ef45527056c80af2672ca0743a\",\"name\":\"@jridgewell/sourcemap-codec\",\"version\":\"1.5.5\"},\"@jridgewell__trace-mapping-0.3.31.tgz\":{\"integrity\":\"zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"cf3351f9275048327373c8e869e3fc410a0242bf0db98c76748232b65d507811191c9f6e5ba85e6ecad881bcfc849c1441aa374d608cb667d5f0dbb5b7038b03\",\"name\":\"@jridgewell/trace-mapping\",\"version\":\"0.3.31\"},\"@lukeed__ms-2.0.2.tgz\":{\"integrity\":\"9I2Zn6+NJLfaGoz9jN3lpwDgAYvfGeNYdbAIjJOqzs4Tpc+VU3Jqq4IofSUBKajiDS8k9fZIg18/z13mpk1bsA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f48d999faf8d24b7da1a8cfd8cdde5a700e0018bdf19e35875b0088c93aacece13a5cf9553726aab82287d250129a8e20d2f24f5f648835f3fcf5de6a64d5bb0\",\"name\":\"@lukeed/ms\",\"version\":\"2.0.2\"},\"@malept__cross-spawn-promise-2.0.0.tgz\":{\"integrity\":\"1DpKU0Z5ThltBwjNySMC14g0CkbyhCaz9FkhxqNsZI6uAPJXFS8cMXlBKo26FJ8ZuW6S9GCMcR9IO5k2X5/9Fg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d43a4a5346794e196d0708cdc92302d788340a46f28426b3f45921c6a36c648eae00f257152f1c3179412a8dba149f19b96e92f4608c711f483b99365f9ffd16\",\"name\":\"@malept/cross-spawn-promise\",\"version\":\"2.0.0\"},\"@malept__flatpak-bundler-0.4.0.tgz\":{\"integrity\":\"9QOtNffcOF/c1seMCDnjckb3R9WHcG34tky+FHpNKKCW0wc/scYLwMtO+ptyGUfMW0/b/n4qRiALlaFHc9Oj7Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f503ad35f7dc385fdcd6c78c0839e37246f747d587706df8b64cbe147a4d28a096d3073fb1c60bc0cb4efa9b721947cc5b4fdbfe7e2a46200b95a14773d3a3ed\",\"name\":\"@malept/flatpak-bundler\",\"version\":\"0.4.0\"},\"@modelcontextprotocol__sdk-1.30.0.tgz\":{\"integrity\":\"xKd8OIzlqNzcqcNumGAa6g+PW2kjD5vrpcKOnfldAUPP3j7lnqMPwlTXQm8gF+UwH72z0lqaRbjr9hqGz0eITA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c4a77c388ce5a8dcdca9c36e98601aea0f8f5b69230f9beba5c28e9df95d0143cfde3ee59ea30fc254d7426f2017e5301fbdb3d25a9a45b8ebf61a86cf47884c\",\"name\":\"@modelcontextprotocol/sdk\",\"version\":\"1.30.0\"},\"@motrix__cli-0.4.0.tgz\":{\"integrity\":\"DpwxzV/kUNBRzznmHI8qhbH1tCuno9RCh0QmUc1wMf+51slRnQiT14kTXw1hIh8Nwf11fTwFAvFKF5O97e5BmA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0e9c31cd5fe450d051cf39e61c8f2a85b1f5b42ba7a3d44287442651cd7031ffb9d6c9519d0893d789135f0d61221f0dc1fd757d3c0502f14a1793bdedee4198\",\"name\":\"@motrix/cli\",\"version\":\"0.4.0\"},\"@motrix__mdxp-0.6.0.tgz\":{\"integrity\":\"ySgMuME8chFax2lxtELbCYrM9ayGciEN8UikYG6MLGg3Z8I6RTY+XarC40RjhY2vVnMdLrf9ff7ZiH6hSjLkdg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c9280cb8c13c72115ac76971b442db098accf5ac8672210df148a4606e8c2c683767c23a45363e5daac2e34463858daf56731d2eb7fd7dfed9887ea14a32e476\",\"name\":\"@motrix/mdxp\",\"version\":\"0.6.0\"},\"@motrix__nat-0.1.1.tgz\":{\"integrity\":\"ORkFuNXMLa8yLhlxRmoLh6WSWtOjhJ4q28Dcx4Wt44JSkB60gjNzuBV8CVCy2VtWc2BhxiOlel4f3RhJ7OmaXw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"391905b8d5cc2daf322e1971466a0b87a5925ad3a3849e2adbc0dcc785ade38252901eb4823373b8157c0950b2d95b56736061c623a57a5e1fdd1849ece99a5f\",\"name\":\"@motrix/nat\",\"version\":\"0.1.1\"},\"@motrix__plugin-api-2.0.0.tgz\":{\"integrity\":\"S4YsMvAo9ehDN8R6jwQAzcTHBstEFH1kPw8CRePMVLSNT0pb+5jlaQdBXd1NfsxY9O4FFX4e63uuAYWlkD9Urw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4b862c32f028f5e84337c47a8f0400cdc4c706cb44147d643f0f0245e3cc54b48d4f4a5bfb98e56907415ddd4d7ecc58f4ee05157e1eeb7bae0185a5903f54af\",\"name\":\"@motrix/plugin-api\",\"version\":\"2.0.0\"},\"@motrix__plugin-api-2.1.0.tgz\":{\"integrity\":\"XJn8re75nGUFSOA9dsEAjFkj8FqY6pQMk5wnz9E7Ym+icOp7q0JChjS/ILETvsu1gmvntlzdzazmgi4U42fPIA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5c99fcadeef99c650548e03d76c1008c5923f05a98ea940c939c27cfd13b626fa270ea7bab42428634bf20b113becbb5826be7b65cddcdace6822e14e367cf20\",\"name\":\"@motrix/plugin-api\",\"version\":\"2.1.0\"},\"@motrix__plugin-manifest-schema-2.1.1.tgz\":{\"integrity\":\"/aVHes64pk3P0z3Myfa08tk4Zp5AQlhwIL28clvjkIM3x7TkWa8W+FXsXf2FZ+a/Q/gjuCQGAstHOxivQ7+euA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"fda5477aceb8a64dcfd33dccc9f6b4f2d938669e4042587020bdbc725be3908337c7b4e459af16f855ec5dfd8567e6bf43f823b8240602cb473b18af43bf9eb8\",\"name\":\"@motrix/plugin-manifest-schema\",\"version\":\"2.1.1\"},\"@noble__curves-2.0.1.tgz\":{\"integrity\":\"vs1Az2OOTBiP4q0pwjW5aF0xp9n4MxVrmkFBxc6EKZc6ddYx5gaZiAsZoq0uRRXWbi3AT/sBqn05eRPtn1JCPw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"becd40cf638e4c188fe2ad29c235b9685d31a7d9f833156b9a4141c5ce8429973a75d631e60699880b19a2ad2e4515d66e2dc04ffb01aa7d397913ed9f52423f\",\"name\":\"@noble/curves\",\"version\":\"2.0.1\"},\"@noble__hashes-1.4.0.tgz\":{\"integrity\":\"V1JJ1WTRUqHHrOSh597hURcMqVKVGL/ea3kv0gSnEdsEZ0/+VyPghM1lMNGc00z7CIQorSvbKpuJkxvuHbvdbg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"575249d564d152a1c7ace4a1e7dee151170ca9529518bfde6b792fd204a711db04674ffe5723e084cd6530d19cd34cfb088428ad2bdb2a9b89931bee1dbbdd6e\",\"name\":\"@noble/hashes\",\"version\":\"1.4.0\"},\"@noble__hashes-2.0.1.tgz\":{\"integrity\":\"XlOlEbQcE9fmuXxrVTXCTlG2nlRXa9Rj3rr5Ue/+tX+nmkgbX720YHh0VR3hBF9xDvwnb8D2shVGOwNx+ulArw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5e53a511b41c13d7e6b97c6b5535c24e51b69e54576bd463debaf951effeb57fa79a481b5fbdb4607874551de1045f710efc276fc0f6b215463b0371fae940af\",\"name\":\"@noble/hashes\",\"version\":\"2.0.1\"},\"@noble__hashes-2.3.0.tgz\":{\"integrity\":\"oN+QwyX7VSHotibwubG3kpzbwKrfnyR6OOO+3Nk/53ADL7FmgHHz4TgrbaYKvvOw09u6QTx0oiH1cNCIOuN0CQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a0df90c325fb5521e8b626f0b9b1b7929cdbc0aadf9f247a38e3bedcd93fe770032fb1668071f3e1382b6da60abef3b0d3dbba413c74a221f570d0883ae37409\",\"name\":\"@noble/hashes\",\"version\":\"2.3.0\"},\"@nodelib__fs.scandir-2.1.5.tgz\":{\"integrity\":\"vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"beadb806adf29b91c4426d8d282af7c970f08dceef4ec1138510e7929d832bda75baa2d1f831eeae6fcd393a34286ec760753b7a9a4a663dcccaa62e3017fada\",\"name\":\"@nodelib/fs.scandir\",\"version\":\"2.1.5\"},\"@nodelib__fs.stat-2.0.5.tgz\":{\"integrity\":\"RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"46484f3e9db3aea0c0400ff68cd867ced70f025bfae17761229edaef8e78039a2f23b06e93182decc5fbb9dc00bb7ce0d437293d4d2bcf7555d5279aaaf638f8\",\"name\":\"@nodelib/fs.stat\",\"version\":\"2.0.5\"},\"@nodelib__fs.walk-1.2.8.tgz\":{\"integrity\":\"oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a0607e53196059c810920c28f067041b07a6a1316ddc520ef5a6da6c199a1b05c8a01299f864f2d293f5f396de1a0ecb96287f3521d25765c0b35967ce7a1c4a\",\"name\":\"@nodelib/fs.walk\",\"version\":\"1.2.8\"},\"@oxc-project__types-0.144.0.tgz\":{\"integrity\":\"nuhZIOLuI6TFQ32I/WnUx+SCPY7SdSKwgnFHydAuoS1+Z4BRcaP+RRJmGzl9lw+0OFF7UmaESf7KQRXaNLHypg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9ee85920e2ee23a4c5437d88fd69d4c7e4823d8ed27522b0827147c9d02ea12d7e67805171a3fe4512661b397d970fb438517b52668449feca4115da34b1f2a6\",\"name\":\"@oxc-project/types\",\"version\":\"0.144.0\"},\"@peculiar__asn1-schema-2.9.0.tgz\":{\"integrity\":\"AKvPMOM7LfK0uFe1m7o7+veOa8xQGPqsqOrKi3QKgCElzwjGp39mbhr2g7mt/v/mXQHiIvJmDj5cJS173x8Q9Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"00abcf30e33b2df2b4b857b59bba3bfaf78e6bcc5018faaca8eaca8b740a802125cf08c6a77f666e1af683b9adfeffe65d01e222f2660e3e5c252d7bdf1f10f5\",\"name\":\"@peculiar/asn1-schema\",\"version\":\"2.9.0\"},\"@peculiar__json-schema-1.1.12.tgz\":{\"integrity\":\"coUfuoMeIB7B8/NMekxaDzLhaYmp0HZNPEjYRm9goRou8UZIC3z21s0sL9AWoCw4EG876QyO3kYrc61WNF9B/w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"72851fba831e201ec1f3f34c7a4c5a0f32e16989a9d0764d3c48d8466f60a11a2ef146480b7cf6d6cd2c2fd016a02c38106f3be90c8ede462b73ad56345f41ff\",\"name\":\"@peculiar/json-schema\",\"version\":\"1.1.12\"},\"@peculiar__utils-2.0.3.tgz\":{\"integrity\":\"+oL3HPFRIZ1St2K50lWCXiioIgSoxzz7R1J3uF6neO2yl1sgmpgY6XXJH4BdpoDkMWznQTeYF6oWNDZLCdQ4eQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"fa82f71cf151219d52b762b9d255825e28a82204a8c73cfb475277b85ea778edb2975b209a9818e975c91f805da680e4316ce741379817aa1634364b09d43879\",\"name\":\"@peculiar/utils\",\"version\":\"2.0.3\"},\"@peculiar__webcrypto-1.7.1.tgz\":{\"integrity\":\"ODOov0sGMJMf3jPonOkgGqPknTsu+DdQ7kD++gz8aI+aFMOMHFbWAA2taqXXVTdP+OTOQR/znGvSpmkeI0WTYQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3833a8bf4b0630931fde33e89ce9201aa3e49d3b2ef83750ee40fefa0cfc688f9a14c38c1c56d6000dad6aa5d755374ff8e4ce411ff39c6bd2a6691e23459361\",\"name\":\"@peculiar/webcrypto\",\"version\":\"1.7.1\"},\"@pinojs__redact-0.4.0.tgz\":{\"integrity\":\"k2ENnmBugE/rzQfEcdWHcCY+/FM3VLzH9cYEsbdsoqrvzAKRhUZeRNhAZvB8OitQJ1TBed3yqWtdjzS6wJKBwg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"93610d9e606e804febcd07c471d58770263efc533754bcc7f5c604b1b76ca2aaefcc029185465e44d84066f07c3a2b502754c179ddf2a96b5d8f34bac09281c2\",\"name\":\"@pinojs/redact\",\"version\":\"0.4.0\"},\"@playwright__test-1.62.1.tgz\":{\"integrity\":\"DTcUc8qii+cpHvtOwggMtBRMjKZHXYWdw8syRYu2vtzuq4Wxphqq4NfCs5Zt44L6mA8rfDfj+PHnxFc/FeK6mQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0d371473caa28be7291efb4ec2080cb4144c8ca6475d859dc3cb32458bb6bedceeab85b1a61aaae0d7c2b3966de382fa980f2b7c37e3f8f1e7c4573f15e2ba99\",\"name\":\"@playwright/test\",\"version\":\"1.62.1\"},\"@radix-ui__primitive-1.1.7.tgz\":{\"integrity\":\"rqWnm76nYT8HoNNqEjpgJ7Pw/DrBj5iBTrmEPo6HTX5+VJyBNOqTdv4g89G63HuR5g0AaENoAcH7Is5fF2kZ8Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"aea5a79bbea7613f07a0d36a123a6027b3f0fc3ac18f98814eb9843e8e874d7e7e549c8134ea9376fe20f3d1badc7b91e60d0068436801c1fb22ce5f176919f1\",\"name\":\"@radix-ui/primitive\",\"version\":\"1.1.7\"},\"@radix-ui__react-compose-refs-1.1.5.tgz\":{\"integrity\":\"+48PbAAbq3didjJxa+OaWY2ZwgAKsNiRGyeHKszblZMQ+kcpd9pAaT11cMkGEie0vsOi3QdeTE6d5Fe3Gn61kA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"fb8f0f6c001bab77627632716be39a598d99c2000ab0d8911b27872accdb959310fa472977da40693d7570c9061227b4bec3a2dd075e4c4e9de457b71a7eb590\",\"name\":\"@radix-ui/react-compose-refs\",\"version\":\"1.1.5\"},\"@radix-ui__react-context-1.2.2.tgz\":{\"integrity\":\"RHCUGwKHDr0hDGg4X7ma4JG4/+12qxw8rkh5QKdDldlCvtja6nUx1Ef/8HVrJze81lEsgLQlqjzjGNHantgnQA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4470941b02870ebd210c68385fb99ae091b8ffed76ab1c3cae487940a74395d942bed8daea7531d447fff0756b2737bcd6512c80b425aa3ce318d1da9ed82740\",\"name\":\"@radix-ui/react-context\",\"version\":\"1.2.2\"},\"@radix-ui__react-dialog-1.1.23.tgz\":{\"integrity\":\"Ksw4WeROkO4rC9k/onilX/Ao2Cr1ku1unMNH+XSCcP4jSXYu7HDsg9n4ojMjVb22XpYjAQ9qfrFlVbru1vXDUA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2acc3859e44e90ee2b0bd93fa278a55ff028d82af592ed6e9cc347f9748270fe2349762eec70ec83d9f8a2332355bdb65e9623010f6a7eb16555baeed6f5c350\",\"name\":\"@radix-ui/react-dialog\",\"version\":\"1.1.23\"},\"@radix-ui__react-dismissable-layer-1.1.19.tgz\":{\"integrity\":\"8g4pfOL9HoKKLWGiypT+dphVqjFfmcXO5GBnhsG6zI+lxAx/8feQpr+1LSN8Re3hiZ+XkLNS4O9ztK11/LzQ6w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f20e297ce2fd1e828a2d61a2ca94fe769855aa315f99c5cee4606786c1bacc8fa5c40c7ff1f790a6bfb52d237c45ede1899f9790b352e0ef73b4ad75fcbcd0eb\",\"name\":\"@radix-ui/react-dismissable-layer\",\"version\":\"1.1.19\"},\"@radix-ui__react-focus-guards-1.1.6.tgz\":{\"integrity\":\"RNOJjfZMTyBM6xYmV3IVGXkPjIhcBAuv48POevAXwrGJhkWZ9p1rFoIS1JFooPuT193AZmRsCPhpoVJxx6OPoQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"44d3898df64c4f204ceb162657721519790f8c885c040bafe3c3ce7af017c2b189864599f69d6b168212d49168a0fb93d7ddc066646c08f869a15271c7a38fa1\",\"name\":\"@radix-ui/react-focus-guards\",\"version\":\"1.1.6\"},\"@radix-ui__react-focus-scope-1.1.16.tgz\":{\"integrity\":\"wmRZ2WWLvmt6KHy2rNPOdPUjwq5xOHY02+m+udwJTn0aNIox/rkskAvJTyTLGhPK6KgrUjlJUJpgmx/+wFiFIQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c26459d9658bbe6b7a287cb6acd3ce74f523c2ae71387634dbe9beb9dc094e7d1a348a31feb92c900bc94f24cb1a13cae8a82b523949509a609b1ffec0588521\",\"name\":\"@radix-ui/react-focus-scope\",\"version\":\"1.1.16\"},\"@radix-ui__react-id-1.1.4.tgz\":{\"integrity\":\"TMQp2llA+RYn7JcjnrMnz7wN4pcVttPZnRZo52PLQsoLVKzNlVwUeHmfePgTgRluXFvlD3GD5g5MOVVTJCO0qA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4cc429da5940f91627ec97239eb327cfbc0de29715b6d3d99d1668e763cb42ca0b54accd955c1478799f78f81381196e5c5be50f7183e60e4c3955532423b4a8\",\"name\":\"@radix-ui/react-id\",\"version\":\"1.1.4\"},\"@radix-ui__react-portal-1.1.17.tgz\":{\"integrity\":\"vKQLcWypUnwZVvfV7UkGahH2g6ySe8M8R+zYBwPrv5byZ9QAW6cQVvNKo7GgmD+p8aYb6D9JBuvy8/WhOno2wQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"bca40b716ca9527c1956f7d5ed49066a11f683ac927bc33c47ecd80703ebbf96f267d4005ba71056f34aa3b1a0983fa9f1a61be83f4906ebf2f3f5a13a7a36c1\",\"name\":\"@radix-ui/react-portal\",\"version\":\"1.1.17\"},\"@radix-ui__react-presence-1.1.10.tgz\":{\"integrity\":\"3wyzCQ6+ubRA+D4uv9m95JYLXxmOHp05qjrkjeA7uKHHtjpPggQzc6DAb0URl7j67oR0K2foO4ip27TiX037Bw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"df0cb3090ebeb9b440f83e2ebfd9bde4960b5f198e1e9d39aa3ae48de03bb8a1c7b63a4f82043373a0c06f451197b8faee84742b67e83b88a9dbb4e25f4dfb07\",\"name\":\"@radix-ui/react-presence\",\"version\":\"1.1.10\"},\"@radix-ui__react-primitive-2.1.10.tgz\":{\"integrity\":\"MucOnzh6hR5mid6VpkbglRAMYMjKLqRnGBbjXkzjK52fuQDd1qbkx78a5P40mkcnVXJdEVxm26E9OPAiUq7nBg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"32e70e9f387a851e6689de95a646e095100c60c8ca2ea4671816e35e4ce32b9d9fb900ddd6a6e4c7bf1ae4fe349a472755725d115c66dba13d38f02252aee706\",\"name\":\"@radix-ui/react-primitive\",\"version\":\"2.1.10\"},\"@radix-ui__react-slot-1.3.3.tgz\":{\"integrity\":\"qx7oqnYbxnK9kYI9m317qmFmEgo6ywqWvbTogdj7cL9p3/yx4M48p7Rnw5z3H890cL/ow/EeWJsuTykeZVXP5Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ab1ee8aa761bc672bd91823d9b7d7baa6166120a3acb0a96bdb4e881d8fb70bf69dffcb1e0ce3ca7b467c39cf71fcf7470bfe8c3f11e589b2e4f291e6555cfe5\",\"name\":\"@radix-ui/react-slot\",\"version\":\"1.3.3\"},\"@radix-ui__react-use-callback-ref-1.1.4.tgz\":{\"integrity\":\"R6OUY2e2fA6Yn6s+VSx5KBV6Nx8LQEhu+cz7LCej18rQ1HLyg9PSC9jP/ZNx0o6FAIK9c0F1kHylzSxKsdlkrQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"47a3946367b67c0e989fab3e552c7928157a371f0b40486ef9ccfb2c27a3d7cad0d472f283d3d20bd8cffd9371d28e850082bd734175907ca5cd2c4ab1d964ad\",\"name\":\"@radix-ui/react-use-callback-ref\",\"version\":\"1.1.4\"},\"@radix-ui__react-use-controllable-state-1.2.6.tgz\":{\"integrity\":\"uEQJGT97ZA/TgP/Hydw47lHu+/vQj6z/0jA+WeTbK1o9Rx45GImjpD0tc3W5ad3D6XTSR6e1yEO0FvGq6WQfVQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b84409193f7b640fd380ffc7c9dc38ee51eefbfbd08facffd2303e59e4db2b5a3d471e391889a3a43d2d7375b969ddc3e974d247a7b5c843b416f1aae9641f55\",\"name\":\"@radix-ui/react-use-controllable-state\",\"version\":\"1.2.6\"},\"@radix-ui__react-use-effect-event-0.0.5.tgz\":{\"integrity\":\"7cshFL8HGS/7HEiHH+9kL9HBwp2sa9yX18Knwek6KYWmXwM7pegMgta2AXMQKI+rq3JnfSj9x8wYqFMTdG1Jgg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"edcb2114bf07192ffb1c48871fef642fd1c1c29dac6bdc97d7c2a7c1e93a2985a65f033ba5e80c82d6b6017310288fabab72677d28fdc7cc18a85313746d4982\",\"name\":\"@radix-ui/react-use-effect-event\",\"version\":\"0.0.5\"},\"@radix-ui__react-use-layout-effect-1.1.4.tgz\":{\"integrity\":\"K20DkRkUwDnxEYMBPcg3Y6voLkEy5p5QQmszZgLngKKiC7dzBR/aEuK3w1qlx2JWDUNH6FluahYdgR3BP+QbYw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2b6d03911914c039f11183013dc83763abe82e4132e69e50426b336602e780a2a20bb773051fda12e2b7c35aa5c762560d4347e8596e6a161d811dc13fe41b63\",\"name\":\"@radix-ui/react-use-layout-effect\",\"version\":\"1.1.4\"},\"@reduxjs__toolkit-2.12.0.tgz\":{\"integrity\":\"KiT+RzZbp6mQET+Mg+h2c97+9j1sNflUxQkIHI7Yuzf6Peu+OYpmkn6nbHWmLLWj+1ZODUJFwGZ7gx3L9R9EOw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2a24fe47365ba7a990113f8c83e87673defef63d6c35f954c509081c8ed8bb37fa3debbe398a66927ea76c75a62cb5a3fb564e0d4245c0667b831dcbf51f443b\",\"name\":\"@reduxjs/toolkit\",\"version\":\"2.12.0\"},\"@resvg__resvg-wasm-2.6.2.tgz\":{\"integrity\":\"FqALmHI8D4o6lk/LRWDnhw95z5eO+eAa6ORjVg09YRR7BkcM6oPHU9uyC0gtQG5vpFLvgpeU4+zEAz2H8APHNw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"16a00b98723c0f8a3a964fcb4560e7870f79cf978ef9e01ae8e463560d3d61147b06470cea83c753dbb20b482d406e6fa452ef829794e3ecc4033d87f003c737\",\"name\":\"@resvg/resvg-wasm\",\"version\":\"2.6.2\"},\"@rolldown__binding-android-arm64-1.2.4.tgz\":{\"integrity\":\"jHC2cnyKz5xU2fhECtFl8OZ83cYNt13GZQD+0uMJ/X3o+ijmd56okHhTUwxVSHPx1IRVIJEZ1/1pPzeLCU6XKA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8c70b6727c8acf9c54d9f8440ad165f0e67cddc60db75dc66500fed2e309fd7de8fa28e6779ea8907853530c554873f1d48455209119d7fd693f378b094e9728\",\"name\":\"@rolldown/binding-android-arm64\",\"version\":\"1.2.4\"},\"@rolldown__binding-darwin-arm64-1.2.4.tgz\":{\"integrity\":\"Dc5mPD8F5F/FS8i01syd7FTF6yB2fVthH/TRkjwJkzUK6EpoxHtqvZQP5Zwq80/5z19TWYHIg1KOHboCgVx/aQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0dce663c3f05e45fc54bc8b4d6cc9dec54c5eb20767d5b611ff4d1923c0993350ae84a68c47b6abd940fe59c2af34ff9cf5f535981c883528e1dba02815c7f69\",\"name\":\"@rolldown/binding-darwin-arm64\",\"version\":\"1.2.4\"},\"@rolldown__binding-darwin-x64-1.2.4.tgz\":{\"integrity\":\"fpDm4oBo6SqLvWUYCmFhdde3U9KH2fRNNMeAnAPAIwxRL345xutL0EtEUcuoxsoazdJGv/MuDBQHlCDrtbvqOg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7e90e6e28068e92a8bbd65180a616175d7b753d287d9f44d34c7809c03c0230c512f7e39c6eb4bd04b4451cba8c6ca1acdd246bff32e0c14079420ebb5bbea3a\",\"name\":\"@rolldown/binding-darwin-x64\",\"version\":\"1.2.4\"},\"@rolldown__binding-freebsd-x64-1.2.4.tgz\":{\"integrity\":\"rSJoreDE/HoIzoaib6MTp5jQtCTdMHKIvItAKT/ImS6Y6Ww76oUaeMyp4Vc/fAgd/ehji068IxetHXAnqUwN9A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ad2268ade0c4fc7a08ce86a26fa313a798d0b424dd307288bc8b40293fc8992e98e96c3bea851a78cca9e1573f7c081dfde8638b4ebc2317ad1d7027a94c0df4\",\"name\":\"@rolldown/binding-freebsd-x64\",\"version\":\"1.2.4\"},\"@rolldown__binding-linux-arm-gnueabihf-1.2.4.tgz\":{\"integrity\":\"/jm8OGHgn7oGaJu3i/qZI9spUGcJ+y/lk43ttQ/iO1tOd9NissG6o97bighBCiL+BKRngmcDuR6ikfwYdJmVuQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"fe39bc3861e09fba06689bb78bfa9923db29506709fb2fe5938dedb50fe23b5b4e77d362b2c1baa3dedb8a08410a22fe04a467826703b91ea291fc18749995b9\",\"name\":\"@rolldown/binding-linux-arm-gnueabihf\",\"version\":\"1.2.4\"},\"@rolldown__binding-linux-arm64-gnu-1.2.4.tgz\":{\"integrity\":\"tIP06BeD9EqvECBrPZ+sqdPlYrT+aYaAiu1wYziVx5elRK/ftm33JxVDy2bXGbr6J0CrtirCkR87/X5a2euEng==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b483f4e81783f44aaf10206b3d9faca9d3e562b4fe6986808aed70633895c797a544afdfb66df7271543cb66d719bafa2740abb62ac2911f3bfd7e5ad9eb849e\",\"name\":\"@rolldown/binding-linux-arm64-gnu\",\"version\":\"1.2.4\"},\"@rolldown__binding-linux-arm64-musl-1.2.4.tgz\":{\"integrity\":\"Ql1Q0EQqVThvn9VAVlwNzsUvbSFtCMGjLpRRi4pk5i7NZZ4n5ISiLMjHYtus4VQ2PvkSw24zyaCVsiS+sXPj1w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"425d50d0442a55386f9fd540565c0dcec52f6d216d08c1a32e94518b8a64e62ecd659e27e484a22cc8c762dbace154363ef912c36e33c9a095b224beb173e3d7\",\"name\":\"@rolldown/binding-linux-arm64-musl\",\"version\":\"1.2.4\"},\"@rolldown__binding-linux-ppc64-gnu-1.2.4.tgz\":{\"integrity\":\"GjbjXD4XXfN19D0LZNbmiCBUoDiRACsYHr0yaIbbn8aFsXjHZifcYqu/W5Er5X2X990WjHXFrxarn5chzItorQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1a36e35c3e175df375f43d0b64d6e6882054a03891002b181ebd326886db9fc685b178c76627dc62abbf5b912be57d97f7dd168c75c5af16ab9f9721cc8b68ad\",\"name\":\"@rolldown/binding-linux-ppc64-gnu\",\"version\":\"1.2.4\"},\"@rolldown__binding-linux-s390x-gnu-1.2.4.tgz\":{\"integrity\":\"p5WR0NOwaRmJ/B1b6IjEFLLivwEsf3PrdBIhRbhTCQisbo2SvHHpG4ELB/+FgQNnB88LTOF86upmJmbvZdQ2lw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a79591d0d3b0691989fc1d5be888c414b2e2bf012c7f73eb74122145b8530908ac6e8d92bc71e91b810b07ff8581036707cf0b4ce17ceaea662666ef65d43697\",\"name\":\"@rolldown/binding-linux-s390x-gnu\",\"version\":\"1.2.4\"},\"@rolldown__binding-linux-x64-gnu-1.2.4.tgz\":{\"integrity\":\"4/GyVjmhR+Tc6HLJvwc1sOhPqAZtySiSMesOZyX6JQ5XBxoTDEMKQzvo07NIK6nTon/SivlZqvhzvuVBNQhObQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e3f1b25639a147e4dce872c9bf0735b0e84fa8066dc9289231eb0e6725fa250e57071a130c430a433be8d3b3482ba9d3a27fd28af959aaf873bee54135084e6d\",\"name\":\"@rolldown/binding-linux-x64-gnu\",\"version\":\"1.2.4\"},\"@rolldown__binding-linux-x64-musl-1.2.4.tgz\":{\"integrity\":\"l9eeLsCNvPpmSXUej0etw/J1eqV0Jj1D5G/xG6YTijmE6dkv6E2QezgWbTfQk63v952DPqrjOCoiqxq7Bw0YUQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"97d79e2ec08dbcfa6649751e8f47adc3f2757aa574263d43e46ff11ba6138a3984e9d92fe84d907b38166d37d093adeff79d833eaae3382a22ab1abb070d1851\",\"name\":\"@rolldown/binding-linux-x64-musl\",\"version\":\"1.2.4\"},\"@rolldown__binding-openharmony-arm64-1.2.4.tgz\":{\"integrity\":\"e0F355MSTMm3+UOqtV3L24gFUp2N5m1f8L/7d56deik6va+AXdrt9F8LbzGpeWGWRbZEDq4m8NVnJDeBtf9DZg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7b4177e793124cc9b7f943aab55dcbdb8805529d8de66d5ff0bffb779e9d7a293abdaf805ddaedf45f0b6f31a979619645b6440eae26f0d567243781b5ff4366\",\"name\":\"@rolldown/binding-openharmony-arm64\",\"version\":\"1.2.4\"},\"@rolldown__binding-win32-arm64-msvc-1.2.4.tgz\":{\"integrity\":\"AWLi0uBRYh6QlE7OKhiz+phZC0qwtij2QZmhmOdsLdFn64m7oMpooE9ICE3lhm9xMb4SpDo2WbHcxX1iFLFtqw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0162e2d2e051621e90944ece2a18b3fa98590b4ab0b628f64199a198e76c2dd167eb89bba0ca68a04f48084de5866f7131be12a43a3659b1dcc57d6214b16dab\",\"name\":\"@rolldown/binding-win32-arm64-msvc\",\"version\":\"1.2.4\"},\"@rolldown__binding-win32-x64-msvc-1.2.4.tgz\":{\"integrity\":\"UwSDJOg3dqCAejWdxclJjCsh3Qq4vLYMDxmyHqo1btz3stK2VqgwNd3mm5tuIwzSlGIQ/1H9Hr+Zn09mrezNqQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"53048324e83776a0807a359dc5c9498c2b21dd0ab8bcb60c0f19b21eaa356edcf7b2d2b656a83035dde69b9b6e230cd2946210ff51fd1ebf999f4f66adeccda9\",\"name\":\"@rolldown/binding-win32-x64-msvc\",\"version\":\"1.2.4\"},\"@rolldown__pluginutils-1.0.1.tgz\":{\"integrity\":\"2j9bGt5Jh8hj+vPtgzPtl72j0yRxHAyumoo6TNfAjsLB04UtpSvPbPcDcBMxz7n+9CYB0c1GxQFxYRg2jimqGw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"da3f5b1ade4987c863faf3ed8333ed97bda3d324711c0cae9a8a3a4cd7c08ec2c1d3852da52bcf6cf703701331cfb9fef42601d1cd46c501716118368e29aa1b\",\"name\":\"@rolldown/pluginutils\",\"version\":\"1.0.1\"},\"@sec-ant__readable-stream-0.4.1.tgz\":{\"integrity\":\"831qok9r2t8AlxLko40y2ebgSDhenenCatLVeW/uBtnHPyhHOvG0C7TvfgecV+wHzIm5KUICgzmVpWS+IMEAeg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f37d6aa24f6bdadf009712e4a38d32d9e6e048385e9de9c26ad2d5796fee06d9c73f28473af1b40bb4ef7e079c57ec07cc89b9294202833995a564be20c1007a\",\"name\":\"@sec-ant/readable-stream\",\"version\":\"0.4.1\"},\"@sindresorhus__is-4.6.0.tgz\":{\"integrity\":\"t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b74f6f48ddcc75fb32087a057134421ff894b46ece2740ac8f307c72302629cfef6bf90881e0c8fd3c6c8a0767704ff86deef7e26d1cbc863035a5788b65ea03\",\"name\":\"@sindresorhus/is\",\"version\":\"4.6.0\"},\"@sindresorhus__merge-streams-4.0.0.tgz\":{\"integrity\":\"tlqY9xq5ukxTUZBmoOp+m61cqwQD5pHJtFY3Mn8CA8ps6yghLH/Hw8UPdqg4OLmFW3IFlcXnQNmo/dh8HzXYIQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b65a98f71ab9ba4c53519066a0ea7e9bad5cab0403e691c9b45637327f0203ca6ceb28212c7fc7c3c50f76a83838b9855b720595c5e740d9a8fdd87c1f35d821\",\"name\":\"@sindresorhus/merge-streams\",\"version\":\"4.0.0\"},\"@standard-schema__spec-1.1.0.tgz\":{\"integrity\":\"l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"976685cb98c02e19e21b91e0aab0fa8d72e2feb516acabea37fa89c7aca826c80a85b95577e8aaa94e110976af9bf8cf8adc83a394c2bca327a632a73ab8b2d3\",\"name\":\"@standard-schema/spec\",\"version\":\"1.1.0\"},\"@standard-schema__utils-0.3.0.tgz\":{\"integrity\":\"e7Mew686owMaPJVNNLs55PUvgz371nKgwsc4vxE49zsODpJEnxgxRo2y/OKrqueavXgZNMDVj3DdHFlaSAeU8g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7bb31ec3af3aa3031a3c954d34bb39e4f52f833dfbd672a0c2c738bf1138f73b0e0e92449f1831468db2fce2abaae79abd781934c0d58f70dd1c595a480794f2\",\"name\":\"@standard-schema/utils\",\"version\":\"0.3.0\"},\"@szmarczak__http-timer-4.0.6.tgz\":{\"integrity\":\"4BAffykYOgO+5nzBWYwE3W90sBgLJoUPRWWcL8wlyiM8IB8ipJz3UMJ9KXQd1RKQXpKp8Tutn80HZtWsu2u76w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e0101f7f29183a03bee67cc1598c04dd6f74b0180b26850f45659c2fcc25ca233c201f22a49cf750c27d29741dd512905e92a9f13bad9fcd0766d5acbb6bbbeb\",\"name\":\"@szmarczak/http-timer\",\"version\":\"4.0.6\"},\"@tailwindcss__node-4.3.3.tgz\":{\"integrity\":\"/T8IKEsf9VTU6tLjgC7+sv2mOPtQxzE2jMw7u4Tt40Tx+QSZxpzh95/H6cMKoja9XuW7iMdLJYBB0o9G1CaAgg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"fd3f08284b1ff554d4ead2e3802efeb2fda638fb50c731368ccc3bbb84ede344f1f90499c69ce1f79fc7e9c30aa236bd5ee5bb88c74b258041d28f46d4268082\",\"name\":\"@tailwindcss/node\",\"version\":\"4.3.3\"},\"@tailwindcss__oxide-4.3.3.tgz\":{\"integrity\":\"krXjAikiaFSPaK/FkAQT5UTx3VormQaiZ5hBFlJZ9UFQGB/rwg1MZIhHAG9smMQRTdyJxP6Qt5MwMtdyU5FWrA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"92b5e302292268548f68afc5900413e544f1dd5a2b9906a2679841165259f54150181febc20d4c648847006f6c98c4114ddc89c4fe90b7933032d772539156ac\",\"name\":\"@tailwindcss/oxide\",\"version\":\"4.3.3\"},\"@tailwindcss__oxide-android-arm64-4.3.3.tgz\":{\"integrity\":\"Y85A2gmPSkl5Ve5qR86GL4HT509cFqQh1aes9p3sSkyTPwt0Pppf3GkwGe4JPACcRYjgJIEhQgM6dBClnr0NYw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"63ce40da098f4a497955ee6a47ce862f81d3e74f5c16a421d5a7acf69dec4a4c933f0b743e9a5fdc693019ee093c009c4588e024812142033a7410a59ebd0d63\",\"name\":\"@tailwindcss/oxide-android-arm64\",\"version\":\"4.3.3\"},\"@tailwindcss__oxide-darwin-arm64-4.3.3.tgz\":{\"integrity\":\"BiaWatpBcERQFDlOjRDpIVXuFK5PJez5SA4JMg6VYZdBYU+qKfV/vqjcIs+IYmtitf1xYQZTwXvU/8y4lfZUGw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0626966ada4170445014394e8d10e92155ee14ae4f25ecf9480e09320e95619741614faa29f57fbea8dc22cf88626b62b5fd71610653c17bd4ffccb895f6541b\",\"name\":\"@tailwindcss/oxide-darwin-arm64\",\"version\":\"4.3.3\"},\"@tailwindcss__oxide-darwin-x64-4.3.3.tgz\":{\"integrity\":\"fAeUqfV5ndhxRwai8cXGzdLvul9utWOmeTkv69unv4ZXixjn61Z+p9lCWdwOwA3TYboG3BwdVuN/RDjhBRl0mw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7c0794a9f5799dd8714706a2f1c5c6cdd2efba5f6eb563a679392febdba7bf86578b18e7eb567ea7d94259dc0ec00dd361ba06dc1c1d56e37f4438e10519749b\",\"name\":\"@tailwindcss/oxide-darwin-x64\",\"version\":\"4.3.3\"},\"@tailwindcss__oxide-freebsd-x64-4.3.3.tgz\":{\"integrity\":\"iyf5bV6+wnAlflVeEy7R25dupxTNECZN5QMI0qNT6eT+EgaGdZcKhGkr5SdoaWiLJ3spLqIY9VCeSGrwmtg4kw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8b27f96d5ebec270257e555e132ed1db976ea714cd10264de50308d2a353e9e4fe12068675970a84692be5276869688b277b292ea218f5509e486af09ad83893\",\"name\":\"@tailwindcss/oxide-freebsd-x64\",\"version\":\"4.3.3\"},\"@tailwindcss__oxide-linux-arm-gnueabihf-4.3.3.tgz\":{\"integrity\":\"aAYUprJAJQWWbRrPvtjdroZ56Md+JM8pMiopS6xGEwDfLhqj+2ver2p4nU4Mb3CRqcMmNBjo8KkUgcxhkzVQGQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"680614a6b2402505966d1acfbed8ddae8679e8c77e24cf29322a294bac461300df2e1aa3fb6bdeaf6a789d4e0c6f7091a9c3263418e8f0a91481cc6193355019\",\"name\":\"@tailwindcss/oxide-linux-arm-gnueabihf\",\"version\":\"4.3.3\"},\"@tailwindcss__oxide-linux-arm64-gnu-4.3.3.tgz\":{\"integrity\":\"nDxldcEENOxZRzC2uu9jrutZdAAQtb+8WWDCSnWL1zvBk1+FN+x6MtDViPB5AJMfttVCUhehGWus3XBPgatM/w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9c3c6575c10434ec594730b6baef63aeeb59740010b5bfbc5960c24a758bd73bc1935f8537ec7a32d0d588f07900931fb6d5425217a1196bacdd704f81ab4cff\",\"name\":\"@tailwindcss/oxide-linux-arm64-gnu\",\"version\":\"4.3.3\"},\"@tailwindcss__oxide-linux-arm64-musl-4.3.3.tgz\":{\"integrity\":\"Md44bD6veX/PC5iyF8cDVnw4HBIANZepRZZ7a8DQOvkfo5WUBwcp6iAuCUz23u+4SUkhJlD3eL7hNdW8ezd/kA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"31de386c3eaf797fcf0b98b217c703567c381c12003597a945967b6bc0d03af91fa39594070729ea202e094cf6deefb84949212650f778bee135d5bc7b377f90\",\"name\":\"@tailwindcss/oxide-linux-arm64-musl\",\"version\":\"4.3.3\"},\"@tailwindcss__oxide-linux-x64-gnu-4.3.3.tgz\":{\"integrity\":\"tx7us1muwOKAKWao2v/GaafFeQboE6aj88vC6ziN2NCGcRm8gWUhwjzg+YdVB1e4boAtdtma4L43onunI6NS4w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b71eeeb359aec0e2802966a8daffc669a7c57906e813a6a3f3cbc2eb388dd8d0867119bc816521c23ce0f987550757b86e802d76d99ae0be37a27ba723a352e3\",\"name\":\"@tailwindcss/oxide-linux-x64-gnu\",\"version\":\"4.3.3\"},\"@tailwindcss__oxide-linux-x64-musl-4.3.3.tgz\":{\"integrity\":\"SJxX60smvHgasZoBy11dX6YRjXJFovwWBoedhbQPOBzgFWBHGB+TVPWB9BxzR7TTxU8FQZAI2AyiNCMzFm8Img==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"489c57eb4b26bc781ab19a01cb5d5d5fa6118d7245a2fc1606879d85b40f381ce0156047181f9354f581f41c7347b4d3c54f05419008d80ca2342333166f089a\",\"name\":\"@tailwindcss/oxide-linux-x64-musl\",\"version\":\"4.3.3\"},\"@tailwindcss__oxide-wasm32-wasi-4.3.3.tgz\":{\"integrity\":\"jx1+rPhY/5Ympkktd656HBWEBLxP7dH06losBLjjf5vgCODXvi9KhtftWcMIwTFIDqBr7cRnQkdLnAG+IOlGvQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8f1d7eacf858ff9626a6492d77ae7a1c158404bc4fedd1f4ea5a2c04b8e37f9be008e0d7be2f4a86d7ed59c308c131480ea06bedc46742474b9c01be20e946bd\",\"name\":\"@tailwindcss/oxide-wasm32-wasi\",\"version\":\"4.3.3\"},\"@tailwindcss__oxide-win32-arm64-msvc-4.3.3.tgz\":{\"integrity\":\"3rc292Ca2ceK6Ulcc/bAVnTs/3nDtoPhyEKlgPv+yQJQi/JS/AMJlqzxvlDacL1nekbrcf6bTqp/jV4qgnPxNQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"deb736f7609ad9c78ae9495c73f6c05674ecff79c3b683e1c842a580fbfec902508bf252fc030996acf1be50da70bd677a46eb71fe9b4eaa7f8d5e2a8273f135\",\"name\":\"@tailwindcss/oxide-win32-arm64-msvc\",\"version\":\"4.3.3\"},\"@tailwindcss__oxide-win32-x64-msvc-4.3.3.tgz\":{\"integrity\":\"yJ0pwIVc/nYeGoV02WtsN8KYyLQv7kyI2wDnkezyJlGGjkd4QLwDGAwl47YpPJeuI0M0ObaXGSPjvWDPeTPggw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c89d29c0855cfe761e1a8574d96b6c37c298c8b42fee4c88db00e791ecf22651868e477840bc03180c25e3b6293c97ae23433439b6971923e3bd60cf7933e083\",\"name\":\"@tailwindcss/oxide-win32-x64-msvc\",\"version\":\"4.3.3\"},\"@tailwindcss__vite-4.3.3.tgz\":{\"integrity\":\"yYU8cogLeSh/ms2jh8Fj7jaba/EWa7Ja6GoUqYZaraEuCI5YS6ms6ObZgjjedm+jm6XZjdNRWBpPP6Z86oOxcw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c9853c72880b79287f9acda387c163ee369b6bf1166bb25ae86a14a9865aada12e088e584ba9ace8e6d98238de766fa39ba5d98dd351581a4f3fa67cea83b173\",\"name\":\"@tailwindcss/vite\",\"version\":\"4.3.3\"},\"@tanstack__react-virtual-3.14.9.tgz\":{\"integrity\":\"qZyr0FZDP8rDC4WBhsryIZmAd9bveJvFGUJJtskWaew6/0dTRS6wZxnR6VQ5bY2KwL3LjerrHqQLk3a0GKcPXQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a99cabd056433fcac30b858186caf221998077d6ef789bc5194249b6c91669ec3aff4753452eb06719d1e954396d8d8ac0bdcb8deaeb1ea40b9376b418a70f5d\",\"name\":\"@tanstack/react-virtual\",\"version\":\"3.14.9\"},\"@tanstack__virtual-core-3.17.7.tgz\":{\"integrity\":\"bp+v10y65sp2H7WpWfIMyxTNfl8ZVfxFTLRjPIFRryi6FV/J33z4IS53WO4pTk36KlvJ4iLiQz+oaydDC1xbcA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6e9fafd74cbae6ca761fb5a959f20ccb14cd7e5f1955fc454cb4633c8151af28ba155fc9df7cf8212e7758ee294e4dfa2a5bc9e222e2433fa86b27430b5c5b70\",\"name\":\"@tanstack/virtual-core\",\"version\":\"3.17.7\"},\"@testing-library__dom-10.4.1.tgz\":{\"integrity\":\"o4PXJQidqJl82ckFaXUeoAW+XysPLauYI43Abki5hABd853iMhitooc6znOnczgbTYmEP6U6/y1ZyKAIsvMKGg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a383d725089da8997cd9c90569751ea005be5f2b0f2dab98238dc06e48b984005df39de23218ada2873ace73a773381b4d89843fa53aff2d59c8a008b2f30a1a\",\"name\":\"@testing-library/dom\",\"version\":\"10.4.1\"},\"@testing-library__jest-dom-7.0.1.tgz\":{\"integrity\":\"oMDTC3oA+6CXSO2JZnvOI7CA6oVub6kij5ggk9ohwye5slmkwxYDXcPOVxgMw/RQlticjtO0C1RZkR97HgrWMw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a0c0d30b7a00fba09748ed89667bce23b080ea856e6fa9228f982093da21c327b9b259a4c316035dc3ce57180cc3f45096d89c8ed3b40b5459911f7b1e0ad633\",\"name\":\"@testing-library/jest-dom\",\"version\":\"7.0.1\"},\"@testing-library__react-16.3.2.tgz\":{\"integrity\":\"XU5/SytQM+ykqMnAnvB2umaJNIOsLF3PVv//1Ew4CTcpz0/BRyy/af40qqrt7SjKpDdT1saBMc42CUok5gaw+g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5d4e7f4b2b5033eca4a8c9c09ef076ba66893483ac2c5dcf56ffffd44c38093729cf4fc1472cbf69fe34aaaaeded28caa43753d6c68131ce36094a24e606b0fa\",\"name\":\"@testing-library/react\",\"version\":\"16.3.2\"},\"@testing-library__user-event-14.6.4.tgz\":{\"integrity\":\"QCGwP6QrjypBLwyj5cuyfVamkaIEy/XGY+1VDehbtbQqOggYmTFpFOdWR5mPz14vX8vXLMVjDHlRNBcClyO9ew==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4021b03fa42b8f2a412f0ca3e5cbb27d56a691a204cbf5c663ed550de85bb5b42a3a081899316914e75647998fcf5e2f5fcbd72cc5630c79513417029723bd7b\",\"name\":\"@testing-library/user-event\",\"version\":\"14.6.4\"},\"@thaunknown__thirty-two-1.0.6.tgz\":{\"integrity\":\"Uz2kFb0cNeHg7hds8BtI/umcwzaSMUdbkeQgZrIZQbp3gWRFjrvrvBHNEB6SQYChVxC3rWHovKx1Ya/vSRRMYA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"533da415bd1c35e1e0ee176cf01b48fee99cc3369231475b91e42066b21941ba778164458ebbebbc11cd101e924180a15710b7ad61e8bcac7561afef49144c60\",\"name\":\"@thaunknown/thirty-two\",\"version\":\"1.0.6\"},\"@ts-morph__common-0.27.0.tgz\":{\"integrity\":\"Wf29UqxWDpc+i61k3oIOzcUfQt79PIT9y/MWfAGlrkjg6lBC1hwDECLXPVJAhWjiGbfBCxZd65F/LIZF3+jeJQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"59fdbd52ac560e973e8bad64de820ecdc51f42defd3c84fdcbf3167c01a5ae48e0ea5042d61c031022d73d52408568e219b7c10b165deb917f2c8645dfe8de25\",\"name\":\"@ts-morph/common\",\"version\":\"0.27.0\"},\"@types__aria-query-5.0.4.tgz\":{\"integrity\":\"rfT93uj5s0PRL7EzccGMs3brplhcrghnDoV26NqKhCAS1hVo+WdNsPvE/yb6ilfr5hi2MEk6d5EWJTKdxg8jVw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"adf4fddee8f9b343d12fb13371c18cb376eba6585cae08670e8576e8da8a842012d61568f9674db0fbc4ff26fa8a57ebe618b630493a77911625329dc60f2357\",\"name\":\"@types/aria-query\",\"version\":\"5.0.4\"},\"@types__better-sqlite3-9.6.0.tgz\":{\"integrity\":\"ZEEwBSgMu7GYJOynoagg5X9JbxfL6dTJDsgViJIqh67jV44kyOr9RXfmFjLK5rzC4MWssP06t9hu/JwGDnUbCg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"64413005280cbbb19824eca7a1a820e57f496f17cbe9d4c90ec81588922a87aee3578e24c8eafd4577e61632cae6bcc2e0c5acb0fd3ab7d86efc9c060e751b0a\",\"name\":\"@types/better-sqlite3\",\"version\":\"9.6.0\"},\"@types__cacheable-request-6.0.3.tgz\":{\"integrity\":\"IQ3EbTzGxIigb1I3qPZc1rWJnH0BmSKv5QYTalEwweFvyBDLSAe24zP0le/hyi7ecGfZVlIVAg4BZqb8WBwKqw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"210dc46d3cc6c488a06f5237a8f65cd6b5899c7d019922afe506136a5130c1e16fc810cb4807b6e333f495efe1ca2ede7067d9565215020e0166a6fc581c0aab\",\"name\":\"@types/cacheable-request\",\"version\":\"6.0.3\"},\"@types__chai-5.2.3.tgz\":{\"integrity\":\"Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"330e79f28780f5f15bbfae7fcb8987b570ecf5b3e714c6402ff8f174f154a4e1c72175fdd667201076d2e4b6a1afea7064547c03b19095e456788e9c1850b650\",\"name\":\"@types/chai\",\"version\":\"5.2.3\"},\"@types__d3-array-3.2.2.tgz\":{\"integrity\":\"hOLWVbm7uRza0BYXpIIW5pxfrKe0W+D5lrFiAEYR+pb6w3N2SwSMaJbXdUfSEv+dT4MfHBLtn5js0LAWaO6otw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"84e2d655b9bbb91cdad01617a48216e69c5faca7b45be0f996b162004611fa96fac373764b048c6896d77547d212ff9d4f831f1c12ed9f98ecd0b01668eea8b7\",\"name\":\"@types/d3-array\",\"version\":\"3.2.2\"},\"@types__d3-color-3.1.3.tgz\":{\"integrity\":\"iO90scth9WAbmgv7ogoq57O9YpKmFBbmoEoCHDB2xMBY0+/KVrqAaCDyCE16dUspeOvIxFFRI+0sEtqDqy2b4A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"88ef74b1cb61f5601b9a0bfba20a2ae7b3bd6292a61416e6a04a021c3076c4c058d3efca56ba806820f2084d7a754b2978ebc8c4515123ed2c12da83ab2d9be0\",\"name\":\"@types/d3-color\",\"version\":\"3.1.3\"},\"@types__d3-drag-3.0.7.tgz\":{\"integrity\":\"HE3jVKlzU9AaMazNufooRJ5ZpWmLIoc90A37WU2JMmeq28w1FQqCZswHZ3xR+SuxYftzHq6WU6KJHvqxKzTxxQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1c4de354a97353d01a31accdb9fa28449e59a5698b22873dd00dfb594d893267aadbcc35150a8266cc07677c51f92bb161fb731eae9653a2891efab12b34f1c5\",\"name\":\"@types/d3-drag\",\"version\":\"3.0.7\"},\"@types__d3-ease-3.0.2.tgz\":{\"integrity\":\"NcV1JjO5oDzoK26oMzbILE6HW7uVXOHLQvHshBUW4UMdZGfiY6v5BeQwh9a9tCzv+CeefZQHJt5SRgK154RtiA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"35c5752633b9a03ce82b6ea83336c82c4e875bbb955ce1cb42f1ec841516e1431d6467e263abf905e43087d6bdb42ceff8279e7d940726de524602b5e7846d88\",\"name\":\"@types/d3-ease\",\"version\":\"3.0.2\"},\"@types__d3-interpolate-3.0.4.tgz\":{\"integrity\":\"mgLPETlrpVV1YRJIglr4Ez47g7Yxjl1lj7YKsiMCb27VJH9W8NVM6Bb9d8kkpG/uAQS5AmbA48q2IAolKKo1MA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9a02cf11396ba55575611248825af8133e3b83b6318e5d658fb60ab223026f6ed5247f56f0d54ce816fd77c924a46fee0104b90266c0e3cab6200a2528aa3530\",\"name\":\"@types/d3-interpolate\",\"version\":\"3.0.4\"},\"@types__d3-path-3.1.1.tgz\":{\"integrity\":\"VMZBYyQvbGmWyWVea0EHs/BwLgxc+MKi1zLDCONksozI4YJMcTt8ZEuIR4Sb1MMTE8MMW49v0IwI5+b7RmfWlg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"54c64163242f6c6996c9655e6b4107b3f0702e0c5cf8c2a2d732c308e364b28cc8e1824c713b7c644b8847849bd4c31313c30c5b8f6fd08c08e7e6fb4667d696\",\"name\":\"@types/d3-path\",\"version\":\"3.1.1\"},\"@types__d3-scale-4.0.9.tgz\":{\"integrity\":\"dLmtwB8zkAeO/juAMfnV+sItKjlsw2lKdZVVy6LRr0cBmegxSABiLEpGVmSJJ8O08i4+sGR6qQtb6WtuwJdvVw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"74b9adc01f3390078efe3b8031f9d5fac22d2a396cc3694a759555cba2d1af470199e8314800622c4a4656648927c3b4f22e3eb0647aa90b5be96b6ec0976f57\",\"name\":\"@types/d3-scale\",\"version\":\"4.0.9\"},\"@types__d3-selection-3.0.11.tgz\":{\"integrity\":\"bhAXu23DJWsrI45xafYpkQ4NtcKMwWnAC/vKrd2l+nxMFuvOT3XMYTIj2opv8vq8AO5Yh7Qac/nSeP/3zjTK0w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6e1017bb6dc3256b2b238e7169f629910e0db5c28cc169c00bfbcaaddda5fa7c4c16ebce4f75cc613223da8a6ff2fabc00ee5887b41a73f9d278fff7ce34cad3\",\"name\":\"@types/d3-selection\",\"version\":\"3.0.11\"},\"@types__d3-shape-3.1.8.tgz\":{\"integrity\":\"lae0iWfcDeR7qt7rA88BNiqdvPS5pFVPpo5OfjElwNaT2yyekbM0C9vK+yqBqEmHr6lDkRnYNoTBYlAgJa7a4w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"95a7b48967dc0de47baadeeb03cf01362a9dbcf4b9a4554fa68e4e7e3125c0d693db2c9e91b3340bdbcafb2a81a84987afa9439119d83684c162502025aedae3\",\"name\":\"@types/d3-shape\",\"version\":\"3.1.8\"},\"@types__d3-time-3.0.4.tgz\":{\"integrity\":\"yuzZug1nkAAaBlBBikKZTgzCeA+k1uy4ZFwWANOfKw5z5LRhV0gNA7gNkKm7HoK+HRN0wX3EkxGk0fpbWhmB7g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"caecd9ba0d6790001a0650418a42994e0cc2780fa4d6ecb8645c1600d39f2b0e73e4b46157480d03b80d90a9bb1e82be1d1374c17dc49311a4d1fa5b5a1981ee\",\"name\":\"@types/d3-time\",\"version\":\"3.0.4\"},\"@types__d3-timer-3.0.2.tgz\":{\"integrity\":\"Ps3T8E8dZDam6fUyNiMkekK3XUsaUEik+idO9/YjPtfj2qruF8tFBXS7XhtE4iIXBLxhmLjP3SXpLhVf21I9Lw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3ecdd3f04f1d6436a6e9f5323623247a42b75d4b1a5048a4fa274ef7f6233ed7e3daaaee17cb450574bb5e1b44e2221704bc6198b8cfdd25e92e155fdb523d2f\",\"name\":\"@types/d3-timer\",\"version\":\"3.0.2\"},\"@types__d3-transition-3.0.9.tgz\":{\"integrity\":\"uZS5shfxzO3rGlu0cC3bjmMFKsXv+SmZZcgp0KD22ts4uGXp5EVYGzu/0YdwZeKmddhcAccYtREJKkPfXkZuCg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b994b9b217f1ccedeb1a5bb4702ddb8e63052ac5eff9299965c829d0a0f6dadb38b865e9e445581b3bbfd1877065e2a675d85c01c718b511092a43df5e466e0a\",\"name\":\"@types/d3-transition\",\"version\":\"3.0.9\"},\"@types__d3-zoom-3.0.8.tgz\":{\"integrity\":\"iqMC4/YlFCSlO8+2Ii1GGGliCAY4XdeG748w5vQUbevlbDu0zSjH/+jojorQVBK/se0j6DUFNPBGSqD3YWYnDw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8aa302e3f6251424a53bcfb6222d461869620806385dd786ef8f30e6f4146debe56c3bb4cd28c7ffe8e88e8ad05412bfb1ed23e8350534f0464aa0f76166270f\",\"name\":\"@types/d3-zoom\",\"version\":\"3.0.8\"},\"@types__debug-4.1.13.tgz\":{\"integrity\":\"KSVgmQmzMwPlmtljOomayoR89W4FynCAi3E8PPs7vmDVPe84hT+vGPKkJfThkmXs0x0jAaa9U8uW8bbfyS2fWw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2925609909b33303e59ad9633a899aca847cf56e05ca70808b713c3cfb3bbe60d53def38853faf18f2a425f4e19265ecd31d2301a6bd53cb96f1b6dfc92d9f5b\",\"name\":\"@types/debug\",\"version\":\"4.1.13\"},\"@types__deep-eql-4.0.2.tgz\":{\"integrity\":\"c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"73d87d75554c8a030f7386f04ef0b9771aada8967040f78fb168cf96948e9e88dba2bea91aa764e78d657c0ec0a8542be6907505176ad23b98f5d6fcd41c3217\",\"name\":\"@types/deep-eql\",\"version\":\"4.0.2\"},\"@types__estree-1.0.9.tgz\":{\"integrity\":\"GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1a174f832d5e978fc898fd395f4e54c38730dbf33ddc10949a712f599352b650b310a304e05924f98a680393a21cd426a12ec269f6fc5dadcfc9af26d50af37a\",\"name\":\"@types/estree\",\"version\":\"1.0.9\"},\"@types__fs-extra-9.0.13.tgz\":{\"integrity\":\"nEnwB++1u5lVDM2UI4c1+5R+FYaKfaAzS4OococimjVm3nQw3TuzH5UNsocrcTBbhnerblyHj4A49qXbIiZdpA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9c49f007efb5bb99550ccd94238735fb947e15868a7da0334b83a87287229a3566de7430dd3bb31f950db2872b71305b8677ab6e5c878f8038f6a5db22265da4\",\"name\":\"@types/fs-extra\",\"version\":\"9.0.13\"},\"@types__http-cache-semantics-4.2.0.tgz\":{\"integrity\":\"L3LgimLHXtGkWikKnsPg0/VFx9OGZaC+eN1u4r+OB1XRqH3meBIAVC2zr1WdMH+RHmnRkqliQAOHNJ/E0j/e0Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2f72e08a62c75ed1a45a290a9ec3e0d3f545c7d38665a0be78dd6ee2bf8e0755d1a87de6781200542db3af559d307f911e69d192a962400387349fc4d23fded1\",\"name\":\"@types/http-cache-semantics\",\"version\":\"4.2.0\"},\"@types__keyv-3.1.4.tgz\":{\"integrity\":\"BQ5aZNSCpj7D6K2ksrRCTmKRLEpnPvWDiLPfoGyhZ++8YtiK9d/3DBKPJgry359X/P1PfruyYwvnvwFjuEiEIg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"050e5a64d482a63ec3e8ada4b2b4424e62912c4a673ef58388b3dfa06ca167efbc62d88af5dff70c128f260af2df9f57fcfd4f7ebbb2630be7bf0163b8488422\",\"name\":\"@types/keyv\",\"version\":\"3.1.4\"},\"@types__ms-2.1.0.tgz\":{\"integrity\":\"GsCCIZDE/p3i96vtEqx+7dBUGXrc7zeSK3wwPHIaRThS+9OhWIXRqzs4d6k1SVU8g91DrNRWxWUGhp5KXQb2VA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1ac0822190c4fe9de2f7abed12ac7eedd054197adcef37922b7c303c721a453852fbd3a15885d1ab3b3877a93549553c83dd43acd456c56506869e4a5d06f654\",\"name\":\"@types/ms\",\"version\":\"2.1.0\"},\"@types__node-24.13.3.tgz\":{\"integrity\":\"Dh8vAsV36ig5wa9OX4pXvMc9D3Veibfw2wix0CUwYODLD8nkj9UsLjASr49nPg+2eKzxhBV+v7L8pXvT4e639Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0e1f2f02c577ea2839c1af4e5f8a57bcc73d0f755e89b7f0db08b1d0253060e0cb0fc9e48fd52c2e3012af8f673e0fb678acf184157ebfb2fca57bd3e1eeb7f5\",\"name\":\"@types/node\",\"version\":\"24.13.3\"},\"@types__node-26.2.0.tgz\":{\"integrity\":\"5IviulTZeRNp2vAJ514cc/HUlY5nZ9fCbq9DMyC52BrhFZACo3nI0R7qBxhQmo/d27NFe96ur/b7Wwxklda+kg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e48be2ba54d9791369daf009e75e1c73f1d4958e6767d7c26eaf433320b9d81ae1159002a379c8d11eea0718509a8fdddbb3457bdeaeaff6fb5b0c6495d6be92\",\"name\":\"@types/node\",\"version\":\"26.2.0\"},\"@types__react-19.2.18.tgz\":{\"integrity\":\"AnzbBERsrLKtk2XSfTbYRLjQPdy116Sty4q+T+Bp3IC4l6jNBvreVPAHmpq9qhXQM7CXZPjLVmGMw9sy+hxQ3w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"027cdb04446cacb2ad9365d27d36d844b8d03ddcb5d7a4adcb8abe4fe069dc80b897a8cd06fade54f0079a9abdaa15d033b09764f8cb56618cc3db32fa1c50df\",\"name\":\"@types/react\",\"version\":\"19.2.18\"},\"@types__react-dom-19.2.4.tgz\":{\"integrity\":\"Bsc+QHgp+P/F02XDzNCY9jnZNCUuLki36KT7VKrTXXLdHf+vHMNZnW1rVu5DNW/rCK+fya3DATySbLM4yhtKUw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"06c73e407829f8ffc5d365c3ccd098f639d934252e2e48b7e8a4fb54aad35d72dd1dffaf1cc3599d6d6b56ee43356feb08af9fc9adc3013c926cb338ca1b4a53\",\"name\":\"@types/react-dom\",\"version\":\"19.2.4\"},\"@types__responselike-1.0.3.tgz\":{\"integrity\":\"H/+L+UkTV33uf49PH5pCAUBVPNj2nDBXTN+qS1dOwyyg24l3CcicicCA7ca+HMvJBZcFgl5r8e+RR6elsb4Lyw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1fff8bf94913577dee7f8f4f1f9a420140553cd8f69c30574cdfaa4b574ec32ca0db897709c89c89c080edc6be1ccbc9059705825e6bf1ef9147a7a5b1be0bcb\",\"name\":\"@types/responselike\",\"version\":\"1.0.3\"},\"@types__use-sync-external-store-0.0.6.tgz\":{\"integrity\":\"zFDAD+tlpf2r4asuHEj0XH6pY6i0g5NeAHPn+15wk3BV6JA69eERFXC1gyGThDkVa1zCyKr5jox1+2LbV/AMLg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"cc50c00feb65a5fdabe1ab2e1c48f45c7ea963a8b483935e0073e7fb5e70937055e8903af5e1111570b58321938439156b5cc2c8aaf98e8c75fb62db57f00c2e\",\"name\":\"@types/use-sync-external-store\",\"version\":\"0.0.6\"},\"@types__validate-npm-package-name-4.0.2.tgz\":{\"integrity\":\"lrpDziQipxCEeK5kWxvljWYhUvOiB2A9izZd9B2AFarYAkqZshb4lPbRs7zKEic6eGtH8V/2qJW+dPp9OtF6bw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"96ba43ce2422a7108478ae645b1be58d662152f3a207603d8b365df41d8015aad8024a99b216f894f6d1b3bcca12273a786b47f15ff6a895be74fa7d3ad17a6f\",\"name\":\"@types/validate-npm-package-name\",\"version\":\"4.0.2\"},\"@types__write-file-atomic-4.0.3.tgz\":{\"integrity\":\"qdo+vZRchyJIHNeuI1nrpsLw+hnkgqP/8mlaN6Wle/NKhydHmUN9l4p3ZE8yP90AJNJW4uB8HQhedb4f1vNayQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a9da3ebd945c8722481cd7ae2359eba6c2f0fa19e482a3fff2695a37a5a57bf34a87274799437d978a77644f323fdd0024d256e2e07c1d085e75be1fd6f35ac9\",\"name\":\"@types/write-file-atomic\",\"version\":\"4.0.3\"},\"@types__ws-8.18.1.tgz\":{\"integrity\":\"ThVF6DCVhA8kUGy+aazFQ4kXQ7E1Ty7A3ypFOe0IcJV8O/M511G99AW24irKrW56Wt44yG9+ij8FaqoBGkuBXg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4e1545e83095840f24506cbe69acc543891743b1354f2ec0df2a4539ed0870957c3bf339d751bdf405b6e22acaad6e7a5ade38c86f7e8a3f056aaa011a4b815e\",\"name\":\"@types/ws\",\"version\":\"8.18.1\"},\"@types__yauzl-3.4.0.tgz\":{\"integrity\":\"NRPn5w6h8dhcnmx3YIRQcqMywY/+nND/uOkJessedcrowO3C0AssHp3tMJpxKAwOhFOo0OV1y9VtsC5hbKKBAw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3513e7e70ea1f1d85c9e6c7760845072a332c18ffe9cd0ffb8e9097acb1e75cae8c0edc2d00b2c1e9ded309a71280c0e8453a8d0e575cbd56db02e616ca28103\",\"name\":\"@types/yauzl\",\"version\":\"3.4.0\"},\"@typescript__typescript-aix-ppc64-7.0.2.tgz\":{\"integrity\":\"MTKKkWB7p/0E9xi1d1tHtZ5PiLkGEMIq88pK2CubZjOsLtYTLqhgIgi6zepFa+9GHZ6h05NMCkQxGKiPXMxXtQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"31328a91607ba7fd04f718b5775b47b59e4f88b90610c22af3ca4ad82b9b6633ac2ed6132ea8602208bacdea456bef461d9ea1d3934c0a443118a88f5ccc57b5\",\"name\":\"@typescript/typescript-aix-ppc64\",\"version\":\"7.0.2\"},\"@typescript__typescript-darwin-arm64-7.0.2.tgz\":{\"integrity\":\"gowzar9MwS/aRWp6f3a4KUqzRjAZjOsmGNCM6LcTgXum+dBfgsBVMN+AgvOCCbguXyick6LJhpBszxMebJ8syA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"828c336abf4cc12fda456a7a7f76b8294ab34630198ceb2618d08ce8b713817ba6f9d05f82c05530df8082f38209b82e5f289c93a2c986906ccf131e6c9f2cc8\",\"name\":\"@typescript/typescript-darwin-arm64\",\"version\":\"7.0.2\"},\"@typescript__typescript-darwin-x64-7.0.2.tgz\":{\"integrity\":\"SZ9xZInqApNlNGc9s0W1VSsktYSOe9cFqNOIqmN1Gs8SmkjKZYFt017G4VwPxASInODuAdbTW7sXiFUf893RgA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"499f716489ea02936534673db345b5552b24b5848e7bd705a8d388aa63751acf129a48ca65816dd35ec6e15c0fc404889ce0ee01d6d35bbb1788551ff3ddd180\",\"name\":\"@typescript/typescript-darwin-x64\",\"version\":\"7.0.2\"},\"@typescript__typescript-freebsd-arm64-7.0.2.tgz\":{\"integrity\":\"W5NH4y/J0plIIS5b2xvTEkU7JFxyqdMAOgf+Ilhl0vHQXKO5dZoxd+C/jEtq56c4F3wk71RB4BMRQ2XdI+bwYQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5b9347e32fc9d29948212e5bdb1bd312453b245c72a9d3003a07fe225865d2f1d05ca3b9759a3177e0bf8c4b6ae7a738177c24ef5441e013114365dd23e6f061\",\"name\":\"@typescript/typescript-freebsd-arm64\",\"version\":\"7.0.2\"},\"@typescript__typescript-freebsd-x64-7.0.2.tgz\":{\"integrity\":\"UMGDx5sTpzNw3WiPebH7l90IWfJggEd+egHt/q6p7/Cm3zqoV7VxkGXt+3DxPIw8CcmvAB0j3sVVfbhX+M4Tpw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"50c183c79b13a73370dd688f79b1fb97dd0859f26080477e7a01edfeaea9eff0a6df3aa857b5719065edfb70f13c8c3c09c9af001d23dec5557db857f8ce13a7\",\"name\":\"@typescript/typescript-freebsd-x64\",\"version\":\"7.0.2\"},\"@typescript__typescript-linux-arm-7.0.2.tgz\":{\"integrity\":\"gffT3xPz9sR7j/YJExkyPntrI0P2EP9XbOyWzth2/Gs0RstK+90RBcO0ncXoXy/beYll1SXw846Nf2zdnEz0QQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"81f7d3df13f3f6c47b8ff6091319323e7b6b2343f610ff576cec96ced876fc6b3446cb4afbdd1105c3b49dc5e85f2fdb798965d525f0f38e8d7f6cdd9c4cf441\",\"name\":\"@typescript/typescript-linux-arm\",\"version\":\"7.0.2\"},\"@typescript__typescript-linux-arm64-7.0.2.tgz\":{\"integrity\":\"Qh4eU4/y3yDjnfjjyPYihMj5/ODIlmt+Bzu17OI+fiSRDW57QmU5SiN63exPRNJPKUzcc1INa1NXdrJ+MqHjUQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"421e1e538ff2df20e39df8e3c8f62284c8f9fce0c8966b7e073bb5ece23e7e24910d6e7b4265394a237addec4f44d24f294cdc73520d6b535776b27e32a1e351\",\"name\":\"@typescript/typescript-linux-arm64\",\"version\":\"7.0.2\"},\"@typescript__typescript-linux-loong64-7.0.2.tgz\":{\"integrity\":\"uEHck9i8hoAzXPiYRib1O7miOnz23SxIeVl6F4LXox+qov1K35jHcEW6VHKvZI+pyvl7fZEP4MCU5LYvIq1GuQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b841dc93d8bc8680335cf8984626f53bb9a23a7cf6dd2c4879597a1782d7a31faaa2fd4adf98c77045ba5472af648fa9caf97b7d910fe0c094e4b62f22ad46b9\",\"name\":\"@typescript/typescript-linux-loong64\",\"version\":\"7.0.2\"},\"@typescript__typescript-linux-mips64el-7.0.2.tgz\":{\"integrity\":\"R4KvAMnE43W5Qeqb0Ly56O3mWMWIAgsMyz36DCaycd5nbg/9kzm0liw3JocfRqyJY0KPmzFjbswozXyW0DnIYA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4782af00c9c4e375b941ea9bd0bcb9e8ede658c588020b0ccb3dfa0c26b271de676e0ffd9339b4962c3726871f46ac8963428f9b31636ecc28cd7c96d039c860\",\"name\":\"@typescript/typescript-linux-mips64el\",\"version\":\"7.0.2\"},\"@typescript__typescript-linux-ppc64-7.0.2.tgz\":{\"integrity\":\"DORx5b3sd/4S7eayxm4FQv+A7CrkUIGRaHiwI8oiHTAI1fAPWhF4J0vAlkC8biAlHSVVwxMQ3tjZ2/DVbnQiiA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0ce471e5bdec77fe12ede6b2c66e0542ff80ec2ae45081916878b023ca221d3008d5f00f5a1178274bc09640bc6e20251d2555c31310ded8d9dbf0d56e742288\",\"name\":\"@typescript/typescript-linux-ppc64\",\"version\":\"7.0.2\"},\"@typescript__typescript-linux-riscv64-7.0.2.tgz\":{\"integrity\":\"wf0jqEDOjrPRnKwYRyyJDRo11KMbvMFrU+q4zqKyChODBzvlkbhNQfKvLxQCcwTpdDaXSHZTVuh0JoCrKCUMHQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c1fd23a840ce8eb3d19cac18472c890d1a35d4a31bbcc16b53eab8cea2b20a1383073be591b84d41f2af2f14027304e974369748765356e8742680ab28250c1d\",\"name\":\"@typescript/typescript-linux-riscv64\",\"version\":\"7.0.2\"},\"@typescript__typescript-linux-s390x-7.0.2.tgz\":{\"integrity\":\"IkwJc3L7yhytWd/ewjyxNDfOmswCm9GWMJT/ue/dU4aZNbwZeYAetq42VyLmsmSjvoX7z74X6ZaYCtzAr0EuGw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"224c097372fbca1cad59dfdec23cb13437ce9acc029bd1963094ffb9efdd53869935bc1979801eb6ae365722e6b264a3be85fbcfbe17e996980adcc0af412e1b\",\"name\":\"@typescript/typescript-linux-s390x\",\"version\":\"7.0.2\"},\"@typescript__typescript-linux-x64-7.0.2.tgz\":{\"integrity\":\"EYdf2cNg7rgCWJnxCdJ+F3V39O8ihb37eHAu1LK8oAFizgTQbPOK7zHHXbPt8rX24COqODXeI3sIf0fCXG7H/A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"11875fd9c360eeb8025899f109d27e177577f4ef2285bdfb78702ed4b2bca00162ce04d06cf38aef31c75db3edf2b5f6e023aa3835de237b087f47c25c6ec7fc\",\"name\":\"@typescript/typescript-linux-x64\",\"version\":\"7.0.2\"},\"@typescript__typescript-netbsd-arm64-7.0.2.tgz\":{\"integrity\":\"+polYF4MF04aPpO5FTkHran9yUQDSXqy5GiSDKpsll5jy3l3+g9QLhpf39T+ePtefhXLOGrLl0QIjkQP6VnelA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"fa9a25605e0c174e1a3e93b9153907ada9fdc94403497ab2e468920caa6c965e63cb7977fa0f502e1a5fdfd4fe78fb5e7e15cb386acb9744088e440fe959de94\",\"name\":\"@typescript/typescript-netbsd-arm64\",\"version\":\"7.0.2\"},\"@typescript__typescript-netbsd-x64-7.0.2.tgz\":{\"integrity\":\"8YIT0EHM/3dq10ZOVF/A7pc/YSMtbcecct4rWtexrnSCHOPcpC2KTLXfTCR6vDpnSiY12heNb1GiN/wu+T/FyA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f18213d041ccff776ad7464e545fc0ee973f61232d6dc79c72de2b5ad7b1ae74821ce3dca42d8a4cb5df4c247abc3a674a2635da178d6f51a237fc2ef93fc5c8\",\"name\":\"@typescript/typescript-netbsd-x64\",\"version\":\"7.0.2\"},\"@typescript__typescript-openbsd-arm64-7.0.2.tgz\":{\"integrity\":\"APT8+ClYnuYm1u9+kgGXoMj2VzWzcymwh2gNSQVySHfkRDGOTVkoWLjCmOQSaO+PoqQ57B0flRp9SA+7GnnkzQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"00f4fcf829589ee626d6ef7e920197a0c8f65735b37329b087680d4905724877e444318e4d592858b8c298e41268ef8fa2a439ec1d1f951a7d480fbb1a79e4cd\",\"name\":\"@typescript/typescript-openbsd-arm64\",\"version\":\"7.0.2\"},\"@typescript__typescript-openbsd-x64-7.0.2.tgz\":{\"integrity\":\"yX7s+Q0Dln0Dt9tEzZsAjXXR/+ytBM7AlglaqyeMPxQszJ1JhlJdZ6jLA+IzldHtflX81em7lDao1xXu+aRRkg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c97eecf90d03967d03b7db44cd9b008d75d1ffecad04cec096095aab278c3f142ccc9d4986525d67a8cb03e23395d1ed7e55fcd5e9bb9436a8d715eef9a45192\",\"name\":\"@typescript/typescript-openbsd-x64\",\"version\":\"7.0.2\"},\"@typescript__typescript-sunos-x64-7.0.2.tgz\":{\"integrity\":\"dLJDGaLZ1D4HPQn62u1n8mBDkJREwMsAkCdkwd4Ieqw+x3TUyTsqY0YiBCtE6H6OzzgGk3iuZ3vFWRS+E8/d1g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"74b24319a2d9d43e073d09fadaed67f26043909444c0cb00902764c1de087aac3ec774d4c93b2a634622042b44e87e8ecf38069378ae677bc55914be13cfddd6\",\"name\":\"@typescript/typescript-sunos-x64\",\"version\":\"7.0.2\"},\"@typescript__typescript-win32-arm64-7.0.2.tgz\":{\"integrity\":\"Gyl1Vy6OsWesLzmq+EP0Fb7b4Nid5232AvcA2SFcdYreldpNtYFFofPjnt62y9hQy7VTaZp65ICJjuAQRaVcIQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1b2975572e8eb167ac2f39aaf843f415bedbe0d89de76df602f700d9215c758ade95da4db58145a1f3e39edeb6cbd850cbb553699a7ae480898ee01045a55c21\",\"name\":\"@typescript/typescript-win32-arm64\",\"version\":\"7.0.2\"},\"@typescript__typescript-win32-x64-7.0.2.tgz\":{\"integrity\":\"0BQ3HkAHHlKLSp1qRvf3SUhGpGsDuhB/jgFw75guyqbxJqEaS0Cw/VFO8i2nHglJUzQCRtMMR/IBAKE3ETMC4g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d014371e40071e528b4a9d6a46f7f7494846a46b03ba107f8e0170ef982ecaa6f126a11a4b40b0fd514ef22da71e094953340246d30c47f20100a137113302e2\",\"name\":\"@typescript/typescript-win32-x64\",\"version\":\"7.0.2\"},\"@vitest__coverage-v8-4.1.10.tgz\":{\"integrity\":\"IM49HmthevbgAO4anp1hwtoT9wYe59w0LR00gr+eagHE+ZJ5lK4sLPeO0ubgoJcwLk6dehU3R24N+FbEEKDc8g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"20ce3d1e6b617af6e000ee1a9e9d61c2da13f7061ee7dc342d1d3482bf9e6a01c4f9927994ae2c2cf78ed2e6e0a097302e4e9d7a1537476e0df856c410a0dcf2\",\"name\":\"@vitest/coverage-v8\",\"version\":\"4.1.10\"},\"@vitest__expect-4.1.10.tgz\":{\"integrity\":\"YsCn+qAk1GWjQOWFEsEcL2gNQ0zmVmQu3T03qP6UyjhtmdtwtbuI+DASn/7iQB3HGTXkdBwGddzxPlmiql5vlA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"62c0a7faa024d465a340e58512c11c2f680d434ce656642edd3d37a8fe94ca386d99db70b5bb88f830129ffee2401dc71935e4741c0675dcf13e59a2aa5e6f94\",\"name\":\"@vitest/expect\",\"version\":\"4.1.10\"},\"@vitest__mocker-4.1.10.tgz\":{\"integrity\":\"v0xaezt+DKEmKfaxg133ldzADrwLGd7Ze1MfQQTYfvs8OqZIwbxyxaYURivwV7sWy5fqn3rH5uOrSp07bp44Ow==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"bf4c5a7b3b7e0ca12629f6b1835df795dcc00ebc0b19ded97b531f4104d87efb3c3aa648c1bc72c5a614462bf057bb16cb97ea9f7ac7e6e3ab4a9d3b6e9e383b\",\"name\":\"@vitest/mocker\",\"version\":\"4.1.10\"},\"@vitest__pretty-format-4.1.10.tgz\":{\"integrity\":\"W1HsjSH4MXQ9YfmmhLAoIYf1HRfekQCGngeIgcei6MP5QQGWUe0gkopdZQaVCFO+JDJMrAJGwa5pRpNpvy4P8Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5b51ec8d21f831743d61f9a684b0282187f51d17de9100869e078881c7a2e8c3f941019651ed20928a5d6506950853be24324cac0246c1ae69469369bf2e0ff1\",\"name\":\"@vitest/pretty-format\",\"version\":\"4.1.10\"},\"@vitest__runner-4.1.10.tgz\":{\"integrity\":\"IKI6kpIH+LmpROplyLwBBaCfMgOZOMsygVa6BARD6ahA04VRuJSa6OaVG7kRvSEMD870Vd91rSSw0eegtWyLGg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"20a23a929207f8b9a944ea65c8bc0105a09f32039938cb328156ba040443e9a840d38551b8949ae8e6951bb911bd210c0fcef455df75ad24b0d1e7a0b56c8b1a\",\"name\":\"@vitest/runner\",\"version\":\"4.1.10\"},\"@vitest__snapshot-4.1.10.tgz\":{\"integrity\":\"xRkfOT1qpTAi/Ti4Y1LtfRc3kEuqxGw59eN2jN9pRWMtS/XDevekhcFSqvQqjUNGksfjMJu3Y+oJ+4Ypn2OaJw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c5191f393d6aa53022fd38b86352ed7d1737904baac46c39f5e3768cdf6945632d4bf5c37af7a485c152aaf42a8d434692c7e3309bb763ea09fb86299f639a27\",\"name\":\"@vitest/snapshot\",\"version\":\"4.1.10\"},\"@vitest__spy-4.1.10.tgz\":{\"integrity\":\"PLf/Ugvoq5wO/b4rwYCR1h2PSIdXz7wnkQFMiUpLdtM7l6pqVFcQIBEHyT1+l+cj7mNwAfZHzqXqDyjvOuwbDw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3cb7ff520be8ab9c0efdbe2bc18091d61d8f488757cfbc2791014c894a4b76d33b97aa6a545710201107c93d7e97e723ee637001f647cea5ea0f28ef3aec1b0f\",\"name\":\"@vitest/spy\",\"version\":\"4.1.10\"},\"@vitest__utils-4.1.10.tgz\":{\"integrity\":\"fy9am/HWxbaGt/Sawrp90vt6Y6jQwf1RX77cz3uwoJwJVMli/e1IEwRPnMNJ7vKfPTwo0diXifkpPvwH9v7nGA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7f2f5a9bf1d6c5b686b7f49ac2ba7dd2fb7a63a8d0c1fd515fbedccf7bb0a09c0954c962fded4813044f9cc349eef29f3d3c28d1d89789f9293efc07f6fee718\",\"name\":\"@vitest/utils\",\"version\":\"4.1.10\"},\"@xmldom__xmldom-0.8.14.tgz\":{\"integrity\":\"T4EDRUBVZYRldYApjEJiU0e1stYWaRAX7CuSnKzrpwdZKo53zGV8/pqfzV6FfwNl9YThD2OumQYvqtvjvgG7aQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4f81034540556584657580298c42625347b5b2d616691017ec2b929caceba707592a8e77cc657cfe9a9fcd5e857f0365f584e10f63ae99062faadbe3be01bb69\",\"name\":\"@xmldom/xmldom\",\"version\":\"0.8.14\"},\"@xyflow__react-12.11.3.tgz\":{\"integrity\":\"G3jogHz2GWUtIOkhavUGno2YzY9u6fILIJBttfsBendb0/HWB90JG+sOTAvlIMEwyvq9zgy9V9ZQSwyQjR5QzQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1b78e8807cf619652d20e9216af5069e8d98cd8f6ee9f20b20906db5fb017a775bd3f1d607dd091beb0e4c0be520c130cafabdce0cbd57d6504b0c908d1e50cd\",\"name\":\"@xyflow/react\",\"version\":\"12.11.3\"},\"@xyflow__system-0.0.80.tgz\":{\"integrity\":\"ywc3ZqG91brzWrH1WlwMdIX4goOfrpBy6AbLdVSaof/Xx9l138ijIKRExM6EkMro2F+OImGmSiA/WKcXvKVcfA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"cb073766a1bdd5baf35ab1f55a5c0c7485f882839fae9072e806cb75549aa1ffd7c7d975dfc8a320a444c4ce8490cae8d85f8e2261a64a203f58a717bca55c7c\",\"name\":\"@xyflow/system\",\"version\":\"0.0.80\"},\"abbrev-4.0.0.tgz\":{\"integrity\":\"a1wflyaL0tHtJSmLSOVybYhy22vRih4eduhhrkcjgrWGnRfrZtovJ2FRjxuTtkkj47O/baf0R86QU5OuYpz8fA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6b5c1f97268bd2d1ed25298b48e5726d8872db6bd18a1e1e76e861ae472382b5869d17eb66da2f2761518f1b93b64923e3b3bf6da7f447ce905393ae629cfc7c\",\"name\":\"abbrev\",\"version\":\"4.0.0\"},\"abort-controller-3.0.0.tgz\":{\"integrity\":\"h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"87c950f2d69c6589d1def3504e089b8feb4e0c7239ffe974e80bb63dcae2bff1a67add1e6a3e13c161f8d6c3bdc271c3890b048f5f6ad1daf375675e007b707a\",\"name\":\"abort-controller\",\"version\":\"3.0.0\"},\"abstract-logging-2.0.1.tgz\":{\"integrity\":\"2BjRTZxTPvheOvGbBslFSYOUkr+SjPtOnrLP33f+VIWLzezQpZcqVg7ja3L4dBXmzzgwT+a029jRx5PCi3JuiA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d818d14d9c533ef85e3af19b06c94549839492bf928cfb4e9eb2cfdf77fe54858bcdecd0a5972a560ee36b72f87415e6cf38304fe6b4dbd8d1c793c28b726e88\",\"name\":\"abstract-logging\",\"version\":\"2.0.1\"},\"accepts-2.0.0.tgz\":{\"integrity\":\"5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e5cbe0e82b4ac1f81d995a98d562225ca7374356e446a18b8bed96ffa6a8fba63b82efd10b046e021184ce1e41e0a96ccd2b932e0658baa16aa396c89a334a9e\",\"name\":\"accepts\",\"version\":\"2.0.0\"},\"agent-base-7.1.4.tgz\":{\"integrity\":\"MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"32703e613f1fc1f24f801c779bad0c36a6a49b7d173a4c88a07d72ea1b9342f0b43f0646ee48bc35a70b05cacf6cda28f2f119cbb269ba4efe8cc3be094a2f4d\",\"name\":\"agent-base\",\"version\":\"7.1.4\"},\"ajv-8.20.0.tgz\":{\"integrity\":\"Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4e16e58be3a53a3fa230f60505505f2773a60809da4b2367e0cd6fcfd4fa1a46b926df5b6bf1c8479ea3a32eb9b58ea4c7f142179557341f35f58eff194ac118\",\"name\":\"ajv\",\"version\":\"8.20.0\"},\"ajv-formats-2.1.1.tgz\":{\"integrity\":\"Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5b1d0ac79da1c44ec2d7c8643048206251227ea599b58691828b89a2bf9631d3e743210ad77be0116c9536ea7b4a879ea0b32caf891fe61e9d396d75235e4c50\",\"name\":\"ajv-formats\",\"version\":\"2.1.1\"},\"ajv-formats-3.0.1.tgz\":{\"integrity\":\"8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f2252a979d04511fae51c7514371c3a9ae84572a3776870bf20e5627714d7169aeeb621b90652e7bfa44c8b056f1518a2ae7133e0a9e92ce1f214d43038ca8c1\",\"name\":\"ajv-formats\",\"version\":\"3.0.1\"},\"ansi-colors-4.1.3.tgz\":{\"integrity\":\"/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ffac3f0b6d4f9b503b6998ad948e4d8bfd89e8515037c8b50afcf79070010006f0f77bff365bca7553aacfb0825b3ff78affc9a6545210467cdd720e375e68bf\",\"name\":\"ansi-colors\",\"version\":\"4.1.3\"},\"ansi-regex-5.0.1.tgz\":{\"integrity\":\"quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"aae2505e54d25062f62c7f52517a3c570b18e2ca1a9e1828e8b3529bce04d4b05c13cb373b4c29762473c91f73fd9649325316bf7eea38e6fda5d26531410a15\",\"name\":\"ansi-regex\",\"version\":\"5.0.1\"},\"ansi-regex-6.3.0.tgz\":{\"integrity\":\"WpDfL7NO6j7tH88IDBNVdUJxDh9nmCteAVW9dsep846XdwF4naCBK+/tGLX3KJgcpgMRXCFlTM2hKGoK9FsdrQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5a90df2fb34eea3eed1fcf080c13557542710e1f67982b5e0155bd76c7a9f38e977701789da0812befed18b5f728981ca603115c21654ccda1286a0af45b1dad\",\"name\":\"ansi-regex\",\"version\":\"6.3.0\"},\"ansi-styles-4.3.0.tgz\":{\"integrity\":\"zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"cdb07dac22404f5adb8e25436f686a2851cd60bc60b64f0d511c59dc86700f717a36dc5b5d94029e74a2d4b931f880e885d3e5169db6db05402c885e64941212\",\"name\":\"ansi-styles\",\"version\":\"4.3.0\"},\"ansi-styles-5.2.0.tgz\":{\"integrity\":\"Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0b1c29b7649f4f34ed5dc7ce97318479ef0ef9cf8c994806acd8817179ee5b1b852477ba6b91f3eeac21c1ee4e81a498234209be42ea597d40486f9c24e90488\",\"name\":\"ansi-styles\",\"version\":\"5.2.0\"},\"app-builder-lib-26.15.7.tgz\":{\"integrity\":\"C7APoYISPExUmrEntNhDpz9Tccb4uWuEDfLaC0WPPc7/pwzz0WZGznCz/ycPfkkzw6tKOalceD8g6TgHmVz1QA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0bb00fa182123c4c549ab127b4d843a73f5371c6f8b96b840df2da0b458f3dceffa70cf3d16646ce70b3ff270f7e4933c3ab4a39a95c783f20e93807995cf540\",\"name\":\"app-builder-lib\",\"version\":\"26.15.7\"},\"argparse-2.0.1.tgz\":{\"integrity\":\"8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f3ef56a9e6db173a57f4e47e59ae8edbd6ac22881e44ccdc1ad00835da4c1c7c80835d1fd3969215505b704a867ff3d7c35123019faadbf6c4060dc3beeacadd\",\"name\":\"argparse\",\"version\":\"2.0.1\"},\"aria-hidden-1.2.6.tgz\":{\"integrity\":\"ik3ZgC9dY/lYVVM++OISsaYDeg1tb0VtP5uL3ouh1koGOaUMDPpbFIei4JkFimWUFPn90sbMNMXQAIVOlnYKJA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8a4dd9802f5d63f95855533ef8e212b1a6037a0d6d6f456d3f9b8bde8ba1d64a0639a50c0cfa5b1487a2e099058a659414f9fdd2c6cc34c5d000854e96760a24\",\"name\":\"aria-hidden\",\"version\":\"1.2.6\"},\"aria-query-5.3.0.tgz\":{\"integrity\":\"b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6f43f4b193cab72bbc1e479101f0aad087d44592be4aec0c8d8d545c6054dbbc290224f0400225ab9e886c83becad93f2634b57cc475e1e7b958105f2a2e49e8\",\"name\":\"aria-query\",\"version\":\"5.3.0\"},\"aria-query-5.3.2.tgz\":{\"integrity\":\"COROpnaoap1E2F000S62r6A60uHZnmlvomhfyT2DlTcrY1OrBKn2UhH7qn5wTC9zMvD0AY7csdPSNwKP+7WiQw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"08e44ea676a86a9d44d85d34d12eb6afa03ad2e1d99e696fa2685fc93d8395372b6353ab04a9f65211fbaa7e704c2f7332f0f4018edcb1d3d237028ffbb5a243\",\"name\":\"aria-query\",\"version\":\"5.3.2\"},\"asn1js-3.0.10.tgz\":{\"integrity\":\"S2s3aOytiKdFRdulw2qPE51MzjzVOisppcVv7jVFR+Kw0kxwvFrDcYA0h7Ndqbmj0HkMIXYWaoj7fli8kgx1eg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4b6b3768ecad88a74545dba5c36a8f139d4cce3cd53a2b29a5c56fee354547e2b0d24c70bc5ac371803487b35da9b9a3d0790c2176166a88fb7e58bc920c757a\",\"name\":\"asn1js\",\"version\":\"3.0.10\"},\"assertion-error-2.0.1.tgz\":{\"integrity\":\"Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2338bc45071f7ea09e3558058a02a58b5b2c92521ba479c261ce809275c662807a82b26ac9e6f2ee3bf5d895108264c09c80e76dc935bb192c4f87733773d604\",\"name\":\"assertion-error\",\"version\":\"2.0.1\"},\"ast-types-0.16.1.tgz\":{\"integrity\":\"6t10qk83GOG8p0vKmaCr8eiilZwO171AvbROMtvvNiwrTly62t+7XkA8RdIIVbpMhCASAsxgAzdRSwh6nw/5Dg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"eadd74aa4f3718e1bca74bca99a0abf1e8a2959c0ed7bd40bdb44e32dbef362c2b4e5cbadadfbb5e403c45d20855ba4c84201202cc600337514b087a9f0ff90e\",\"name\":\"ast-types\",\"version\":\"0.16.1\"},\"ast-v8-to-istanbul-1.0.5.tgz\":{\"integrity\":\"UPAgKJFSEGMWSDr3LX4tqnAb4f7KGT8O40Tyx8wbYmmZ/yn58lNCm8h3svs3eXgiGd5AXxz8NDOvXWvicq+rJA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"50f020289152106316483af72d7e2daa701be1feca193f0ee344f2c7cc1b626999ff29f9f253429bc877b2fb3779782219de405f1cfc3433af5d6be272afab24\",\"name\":\"ast-v8-to-istanbul\",\"version\":\"1.0.5\"},\"async-3.2.6.tgz\":{\"integrity\":\"htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"86d0940e5c72c822cc81a337c578340b42d6db1a9fb90ea9d39a42108b17bb243e6b592860a4ee04ccd13709b26df2e0bc90cc774af52d39f8f84d138ba0b600\",\"name\":\"async\",\"version\":\"3.2.6\"},\"async-exit-hook-2.0.1.tgz\":{\"integrity\":\"NW2cX8m1Q7KPA7a5M2ULQeZ2wR5qI5PAbw5L0UOMxdioVk9PMZ0h1TmyZEkPYrCvYjDlFICusOu1dlEKAAeXBw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"356d9c5fc9b543b28f03b6b933650b41e676c11e6a2393c06f0e4bd1438cc5d8a8564f4f319d21d539b264490f62b0af6230e51480aeb0ebb576510a00079707\",\"name\":\"async-exit-hook\",\"version\":\"2.0.1\"},\"asynckit-0.4.0.tgz\":{\"integrity\":\"Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"39e8bd387e2d461d18a94dc6c615fbf5d33f9b0560bdb64969235a464f9bb21923d12e5c7c772061a92b7818eb1f06ad5ca6f3f88a087582f1aca8a6d8c8d6d1\",\"name\":\"asynckit\",\"version\":\"0.4.0\"},\"at-least-node-1.0.0.tgz\":{\"integrity\":\"+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"faafedec492fd440d8da5e8675ae8b2e25f5e2b53d4d5db459ade87de426c0f1596ce328f435eb2db3a315a69c9645ca5a27486a8a7000e6d00eac16b46523aa\",\"name\":\"at-least-node\",\"version\":\"1.0.0\"},\"atomic-sleep-1.0.0.tgz\":{\"integrity\":\"kNOjDqAh7px0XWNI+4QbzoiR/nTkHAWNud2uvnJquD1/x5a7EQZMJT0AczqK0Qn67oY/TTQ1LbUKajZpp3I9tQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"90d3a30ea021ee9c745d6348fb841bce8891fe74e41c058db9ddaebe726ab83d7fc796bb11064c253d00733a8ad109faee863f4d34352db50a6a3669a7723db5\",\"name\":\"atomic-sleep\",\"version\":\"1.0.0\"},\"atomically-1.7.0.tgz\":{\"integrity\":\"Xcz9l0z7y9yQ9rdDaxlmaI4uJHf/T8g9hOEzJcsEqX2SjCj4J20uK7+ldkDHMbpJDK76wF7xEIgxc/vSlsfw5w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5dccfd974cfbcbdc90f6b7436b1966688e2e2477ff4fc83d84e13325cb04a97d928c28f8276d2e2bbfa57640c731ba490caefac05ef110883173fbd296c7f0e7\",\"name\":\"atomically\",\"version\":\"1.7.0\"},\"avvio-9.3.0.tgz\":{\"integrity\":\"g2tQ7LE7oOSqDfwEm3M+ZCMTJc7KiZCdJ4UwyZJb5ckTKyYu50OYmvv0mCFXPuYXoM4zkSt8zM9XQ9KCvxA74A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"836b50ecb13ba0e4aa0dfc049b733e64231325ceca89909d278530c9925be5c9132b262ee743989afbf49821573ee617a0ce33912b7ccccf5743d282bf103be0\",\"name\":\"avvio\",\"version\":\"9.3.0\"},\"aws4-1.13.2.tgz\":{\"integrity\":\"lHe62zvbTB5eEABUVi/AwVh0ZKY9rMMDhmm+eeyuuUQbQ3+J+fONVQOZyj+DdrvD4BY33uYniyRJ4UJIaSKAfw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9477badb3bdb4c1e5e100054562fc0c1587464a63dacc3038669be79ecaeb9441b437f89f9f38d550399ca3f8376bbc3e01637dee6278b2449e142486922807f\",\"name\":\"aws4\",\"version\":\"1.13.2\"},\"balanced-match-1.0.2.tgz\":{\"integrity\":\"3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"de849e50ed13315ebb84dd4099b5ec2b8c9aa94eed8e21e56f144364ea47d0a5bdf82797e1b440697d009f1b74b71d8cae94695b041a3f02252121098585393f\",\"name\":\"balanced-match\",\"version\":\"1.0.2\"},\"balanced-match-4.0.4.tgz\":{\"integrity\":\"BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"04bae011c453c17da8ea01b118e08dc8cbc64a9df96287ee633c3d87520c4d198aaadb40659554ebb6dd6fd3ebdaf50703cfa3de2dad25f8cee82ebee26c864c\",\"name\":\"balanced-match\",\"version\":\"4.0.4\"},\"base64-js-1.5.1.tgz\":{\"integrity\":\"AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"00aa5a6251e7f2de1255b3870b2f9be7e28a82f478bebb03f2f6efadb890269b3b7ca0d3923903af2ea38b4ad42630b49336cd78f2f0cf1abc8b2a68e35a9e58\",\"name\":\"base64-js\",\"version\":\"1.5.1\"},\"baseline-browser-mapping-2.11.14.tgz\":{\"integrity\":\"JyJ954WzuIR8/FFzX0o5krdSTrBAkcCSRfWSleRsIHSWV+cZe2FI1PKggVkFke1hBldRs+LRxUczzE9iPmgZww==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"27227de785b3b8847cfc51735f4a3992b7524eb04091c09245f59295e46c20749657e7197b6148d4f2a081590591ed61065751b3e2d1c54733cc4f623e6819c3\",\"name\":\"baseline-browser-mapping\",\"version\":\"2.11.14\"},\"bencode-4.0.1.tgz\":{\"integrity\":\"/bCR3FvgfB8AZk4LlowShU+nfaTNRM2vruJ9aejDa5LpgkCoRjFyEauFiZFxbpxVxQbBFapYCN42Er2dkE/Qgw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"fdb091dc5be07c1f00664e0b968c12854fa77da4cd44cdafaee27d69e8c36b92e98240a846317211ab858991716e9c55c506c115aa5808de3612bd9d904fd083\",\"name\":\"bencode\",\"version\":\"4.0.1\"},\"bep53-range-2.0.1.tgz\":{\"integrity\":\"VWN7j7sqUssWD6ROZe2m709YL3u5A1IAx1qvAbH3DAhszHt4WPvCzJLRJ+mzmZn1qWIb4mpflwdn95qezz3n8g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"55637b8fbb2a52cb160fa44e65eda6ef4f582f7bb9035200c75aaf01b1f70c086ccc7b7858fbc2cc92d127e9b39999f5a9621be26a5f970767f79a9ecf3de7f2\",\"name\":\"bep53-range\",\"version\":\"2.0.1\"},\"better-sqlite3-13.0.3.tgz\":{\"integrity\":\"RbOBxmLBG8uvFUc15X9+9SFemKcQ0WBuISBVkpuiaUB2qblC8UWlHEjdWVoZ8AdhSwmoEgsiXKfopX0CQxaACQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"45b381c662c11bcbaf154735e57f7ef5215e98a710d1606e212055929ba2694076a9b942f145a51c48dd595a19f007614b09a8120b225ca7e8a57d0243168009\",\"name\":\"better-sqlite3\",\"version\":\"13.0.3\"},\"bidi-js-1.0.3.tgz\":{\"integrity\":\"RKshQI1R3YQ+n9YJz2QQ147P66ELpa1FQEg20Dk8oW9t2KgLbpDLLp9aGZ7y8WHSshDknG0bknqGw5/tyCs5tw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"44ab21408d51dd843e9fd609cf6410d78ecfeba10ba5ad45404836d0393ca16f6dd8a80b6e90cb2e9f5a199ef2f161d2b210e49c6d1b927a86c39fedc82b39b7\",\"name\":\"bidi-js\",\"version\":\"1.0.3\"},\"bindings-1.5.0.tgz\":{\"integrity\":\"p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a76abfb7f9a1bee3a3fd478b955eb9eba183fe0ba8c25af4847c42948d16f66ecc59890bd45d212e8fb401ec6cf4748f0ad4754974344c3dcc30aad765a8db89\",\"name\":\"bindings\",\"version\":\"1.5.0\"},\"bittorrent-peerid-2.0.2.tgz\":{\"integrity\":\"V2iUvbtv31uLA8XFxbhB3f/fKTxWGaa6FI/3wSm93YAS/DS8IkeRWCyYGQ13Xbc9ajR40nsxNjGtVt7OHB3VOQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"576894bdbb6fdf5b8b03c5c5c5b841ddffdf293c5619a6ba148ff7c129bddd8012fc34bc224791582c98190d775db73d6a3478d27b313631ad56dece1c1dd539\",\"name\":\"bittorrent-peerid\",\"version\":\"2.0.2\"},\"bluebird-3.7.2.tgz\":{\"integrity\":\"XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5e9363e860d0cdd7d6fabd969e7ef189201ded33378f39311970464ed58ab925efd71515f9acf1026f2375664dd3a413424fb63765c1f6344392f6e6426711b6\",\"name\":\"bluebird\",\"version\":\"3.7.2\"},\"body-parser-2.3.0.tgz\":{\"integrity\":\"2cGmJupaNgg+QUwVLAucDuWuoMZ6EX9iHDRswZ5lsNYEmwPaRknMPCLZz07yTzVq/83p4o/wzbDZbBrTvGGTIw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d9c1a626ea5a36083e414c152c0b9c0ee5aea0c67a117f621c346cc19e65b0d6049b03da4649cc3c22d9cf4ef24f356affcde9e28ff0cdb0d96c1ad3bc619323\",\"name\":\"body-parser\",\"version\":\"2.3.0\"},\"boolean-3.2.0.tgz\":{\"integrity\":\"d0II/GO9uf9lfUHH2BQsjxzRJZBdsjgsBiW4BvhWk/3qoKwQFjIDVN19PfX8F2D/r9PCMTtLWjYVCFrpeYUzsw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"774208fc63bdb9ff657d41c7d8142c8f1cd125905db2382c0625b806f85693fdeaa0ac1016320354dd7d3df5fc1760ffafd3c2313b4b5a3615085ae9798533b3\",\"name\":\"boolean\",\"version\":\"3.2.0\"},\"brace-expansion-1.1.18.tgz\":{\"integrity\":\"Edep/X9fGqVNmzKBVsDYIOtD+z1tuezV70LBjdCst9Tqu76lsnvRiZ6oTic1n+/BIwX6QDGAO94PN4N2SADvtw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"11d7a9fd7f5f1aa54d9b328156c0d820eb43fb3d6db9ecd5ef42c18dd0acb7d4eabbbea5b27bd1899ea84e27359fefc12305fa4031803bde0f3783764800efb7\",\"name\":\"brace-expansion\",\"version\":\"1.1.18\"},\"brace-expansion-2.1.4.tgz\":{\"integrity\":\"hGfVzPxthbf3+2yjg/RBs60cB0FhqBS/zvdV/4wn4/BmN0bNMMHPc4V/BbFieqf1TKAGGAHnY4eSjajCl0f2Xg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8467d5ccfc6d85b7f7fb6ca383f441b3ad1c074161a814bfcef755ff8c27e3f0663746cd30c1cf73857f05b1627aa7f54ca0061801e76387928da8c29747f65e\",\"name\":\"brace-expansion\",\"version\":\"2.1.4\"},\"brace-expansion-5.0.9.tgz\":{\"integrity\":\"ScQ4IuvIEF1TMlP7Zt+vjJ//9zlPb2SDcxWxM3bk8s6t6GGdJ7KO1dCcTidOPJKePW30LE/2cT7wCyPho9/Wxg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"49c43822ebc8105d533253fb66dfaf8c9ffff7394f6f64837315b13376e4f2ceade8619d27b28ed5d09c4e274e3c929e3d6df42c4ff6713ef00b23e1a3dfd6c6\",\"name\":\"brace-expansion\",\"version\":\"5.0.9\"},\"braces-3.0.3.tgz\":{\"integrity\":\"yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c906d780efce499543d88b222e5ae8fbb1dfe90d7c109aca484b1da0ccca78f29772dde0bc3f282dc390748cc6ba9af9163f840def203bf9717350737cca71bc\",\"name\":\"braces\",\"version\":\"3.0.3\"},\"browserslist-4.28.8.tgz\":{\"integrity\":\"V2NpofLblG64mfOtSgDhOJESZEGogzDMBv/q+W6oc4LXWP/q75eOXoOaaOu1EOadB9U4Bwx/e0yzbvwKH8zalA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"576369a1f2db946eb899f3ad4a00e13891126441a88330cc06ffeaf96ea87382d758ffeaef978e5e839a68ebb510e69d07d538070c7f7b4cb36efc0a1fccda94\",\"name\":\"browserslist\",\"version\":\"4.28.8\"},\"buffer-from-1.1.2.tgz\":{\"integrity\":\"E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"13e5d0091c126da6a20a1b6fea4e83c2073e6f1f81b3abee2891c7979928c7f05a29b8625f3a903b02b870edb6c84946a763829a3c15853dc79b18323c69c97d\",\"name\":\"buffer-from\",\"version\":\"1.1.2\"},\"builder-util-26.15.3.tgz\":{\"integrity\":\"q2hn7Mbo2nFNkVekPiHFx6Nfo3hURmES3tfBn+k5Pqxl2RkmP3QGqZUhH/q9Pch/4G05NRhPjDlVj1O8q4Txvw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ab6867ecc6e8da714d9157a43e21c5c7a35fa37854466112ded7c19fe9393eac65d919263f7406a995211ffabd3dc87fe06d3935184f8c39558f53bcab84f1bf\",\"name\":\"builder-util\",\"version\":\"26.15.3\"},\"builder-util-runtime-9.7.0.tgz\":{\"integrity\":\"g/kR520giAFYkSXTzcmF3kqQq7wi8F6N6SzeDgZrqTBN+VHdmgWOyTdD1yD7AATDId/yXLvuP34CxW46/BwCdw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"83f911e76d208801589125d3cdc985de4a90abbc22f05e8de92cde0e066ba9304df951dd9a058ec93743d720fb0004c321dff25cbbee3f7e02c56e3afc1c0277\",\"name\":\"builder-util-runtime\",\"version\":\"9.7.0\"},\"bundle-name-4.1.0.tgz\":{\"integrity\":\"tjwM5exMg6BGRI+kNmTntNsvdZS1X8BFYS6tnJ2hdH0kVxM6/eVZ2xy+FqStSWvYmtfFMDLIxurorHwDKfDz5Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b63c0ce5ec4c83a046448fa43664e7b4db2f7594b55fc045612ead9c9da1747d2457133afde559db1cbe16a4ad496bd89ad7c53032c8c6eae8ac7c0329f0f3e5\",\"name\":\"bundle-name\",\"version\":\"4.1.0\"},\"bytes-3.1.2.tgz\":{\"integrity\":\"/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"fcd7fb4f2cd3c7a4b7c9124e6ce015efde7aafc72bdbe3a3f000b976df3048fdc1400a1e5f9f0da07c8253c3fccc690d5d2b634d28ba7f33ba174a4175c61b12\",\"name\":\"bytes\",\"version\":\"3.1.2\"},\"bytestreamjs-2.0.1.tgz\":{\"integrity\":\"U1Z/ob71V/bXfVABvNr/Kumf5VyeQRBEm6Txb0PQ6S7V5GpBM3w4Cbqz/xPDicR5tN0uvDifng8C+5qECeGwyQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"53567fa1bef557f6d77d5001bcdaff2ae99fe55c9e4110449ba4f16f43d0e92ed5e46a41337c3809bab3ff13c389c479b4dd2ebc389f9e0f02fb9a8409e1b0c9\",\"name\":\"bytestreamjs\",\"version\":\"2.0.1\"},\"cacheable-lookup-5.0.4.tgz\":{\"integrity\":\"2/kNscPhpcxrOigMZzbiWF7dz8ilhb/nIHU3EyZiXWXpeq/au8qJ8VhdftMkty3n7Gj6HIGalQG8oiBNB3AJgA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"dbf90db1c3e1a5cc6b3a280c6736e2585eddcfc8a585bfe72075371326625d65e97aafdabbca89f1585d7ed324b72de7ec68fa1c819a9501bca2204d07700980\",\"name\":\"cacheable-lookup\",\"version\":\"5.0.4\"},\"cacheable-request-7.0.4.tgz\":{\"integrity\":\"v+p6ongsrp0yTGbJXjgxPow2+DL93DASP4kXCDKb8/bwRtt9OEF3whggkkDkGNzgcWy2XaF4a8nZglC7uElscg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"bfea7aa2782cae9d324c66c95e38313e8c36f832fddc30123f891708329bf3f6f046db7d384177c218209240e418dce0716cb65da1786bc9d98250bbb8496c72\",\"name\":\"cacheable-request\",\"version\":\"7.0.4\"},\"call-bind-apply-helpers-1.0.2.tgz\":{\"integrity\":\"Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4a9d5a6e52748af0e44b38dc68977112e9cde7f5ef92c149dac30115fabac74af285057fd9bfcac057b6d5c329987b4f3928a3f0af7dff049fa04b9339b9ae31\",\"name\":\"call-bind-apply-helpers\",\"version\":\"1.0.2\"},\"call-bound-1.0.4.tgz\":{\"integrity\":\"+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"fb2b3df7b53dea9a382b1fc0069042aa103d12ec49690583420ef6f791f8841a61bf72198346e804abb0629b78617a7a319e4099942753fb72313951a5a49e8e\",\"name\":\"call-bound\",\"version\":\"1.0.4\"},\"callsites-3.1.0.tgz\":{\"integrity\":\"P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3fc06302c5ef652f95203508d7584709012fef8613ebb6148b924914d588a8bdb7e6c0668d7e3eab1f4cbaf96ce62bf234435cb71e3ac502d0dda4ee13bb2c69\",\"name\":\"callsites\",\"version\":\"3.1.0\"},\"caniuse-lite-1.0.30001809.tgz\":{\"integrity\":\"xxWVywk6a6Arlk+hymeycyn/VgqEfLDxupvhH/xiY5SJ/18kmi9o6MiO320DCUzypORHLtvh0I4i04tUhCNHNQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c71595cb093a6ba02b964fa1ca67b27329ff560a847cb0f1ba9be11ffc62639489ff5f249a2f68e8c88edf6d03094cf2a4e4472edbe1d08e22d38b5484234735\",\"name\":\"caniuse-lite\",\"version\":\"1.0.30001809\"},\"chai-6.2.2.tgz\":{\"integrity\":\"NUPRluOfOiTKBKvWPtSD4PhFvWCqOi0BGStNWs57X9js7XGTprSmFoz5F0tWhR4WPjNeR9jXqdC7/UpSJTnlRg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3543d196e39f3a24ca04abd63ed483e0f845bd60aa3a2d01192b4d5ace7b5fd8eced7193a6b4a6168cf9174b56851e163e335e47d8d7a9d0bbfd4a522539e546\",\"name\":\"chai\",\"version\":\"6.2.2\"},\"chalk-4.1.2.tgz\":{\"integrity\":\"oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a0a9db845c91217a54b9ecfc881326c846b89db8f820e432ba173fc32f6463bfd654f73020ef5503aebc3eef1190eefed06efa48b44e7b2c3d0a9434eb58b898\",\"name\":\"chalk\",\"version\":\"4.1.2\"},\"chalk-5.6.2.tgz\":{\"integrity\":\"7NzBL0rN6fMUW+f7A6Io4h40qQlG+xGmtMxfbnH/K7TAtt8JQWVQK+6g0UXKMeVJoyV5EkkNsErQ8pVD3bLHbA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ecdcc12f4acde9f3145be7fb03a228e21e34a90946fb11a6b4cc5f6e71ff2bb4c0b6df094165502beea0d145ca31e549a3257912490db04ad0f29543ddb2c76c\",\"name\":\"chalk\",\"version\":\"5.6.2\"},\"chokidar-5.0.0.tgz\":{\"integrity\":\"TQMmc3w+5AxjpL8iIiwebF73dRDF4fBIieAqGn9RGCWaEVwQ6Fb2cGe31Yns0RRIzii5goJ1Y7xbMwo1TxMplw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4d0326737c3ee40c63a4bf22222c1e6c5ef77510c5e1f04889e02a1a7f5118259a115c10e856f67067b7d589ecd11448ce28b982827563bc5b330a354f132997\",\"name\":\"chokidar\",\"version\":\"5.0.0\"},\"chownr-3.0.0.tgz\":{\"integrity\":\"+IxzY9BZOQd/XuYPRmrvEVjF/nqj5kgT4kEq7VofrDoM1MxoRjEWkrCC3EtLi59TVawxTAn+orJwFQcrqEN1+g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f88c7363d05939077f5ee60f466aef1158c5fe7aa3e64813e2412aed5a1fac3a0cd4cc6846311692b082dc4b4b8b9f5355ac314c09fea2b27015072ba84375fa\",\"name\":\"chownr\",\"version\":\"3.0.0\"},\"chromium-pickle-js-0.2.0.tgz\":{\"integrity\":\"1R5Fho+jBq0DDydt+/vHWj5KJNJCKdARKOCwZUen84I5BreWoLqRLANH1U87eJy1tiASPtMnGqJJq0ZsLoRPOw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d51e45868fa306ad030f276dfbfbc75a3e4a24d24229d01128e0b06547a7f3823906b796a0ba912c0347d54f3b789cb5b620123ed3271aa249ab466c2e844f3b\",\"name\":\"chromium-pickle-js\",\"version\":\"0.2.0\"},\"ci-info-4.3.1.tgz\":{\"integrity\":\"Wdy2Igu8OcBpI2pZePZ5oWjPC38tmDVx5WKUXKwlLYkA0ozo85sLsLvkBbBn/sZaSCMFOGZJ14fvW9t5/d7kdA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"59dcb6220bbc39c069236a5978f679a168cf0b7f2d983571e562945cac252d8900d28ce8f39b0bb0bbe405b067fec65a482305386649d787ef5bdb79fddee474\",\"name\":\"ci-info\",\"version\":\"4.3.1\"},\"ci-info-4.4.0.tgz\":{\"integrity\":\"77PSwercCZU2Fc4sX94eF8k8Pxte6JAwL4/ICZLFjJLqegs7kCuAsqqj/70NQF6TvDpgFjkubQB2FW2ZZddvQg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"efb3d2c1eadc09953615ce2c5fde1e17c93c3f1b5ee890302f8fc80992c58c92ea7a0b3b902b80b2aaa3ffbd0d405e93bc3a6016392e6d0076156d9965d76f42\",\"name\":\"ci-info\",\"version\":\"4.4.0\"},\"class-variance-authority-0.7.1.tgz\":{\"integrity\":\"Ka+9Trutv7G8M6WT6SeiRWz792K5qEqIGEGzXKhAE6xOWAY6pPH8U+9IY3oCMv6kqTmLsv7Xh/2w2RigkePMsg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"29afbd4ebbadbfb1bc33a593e927a2456cfbf762b9a84a881841b35ca84013ac4e58063aa4f1fc53ef48637a0232fea4a9398bb2fed787fdb0d918a091e3ccb2\",\"name\":\"class-variance-authority\",\"version\":\"0.7.1\"},\"classcat-5.0.5.tgz\":{\"integrity\":\"JhZUT7JFcQy/EzW605k/ktHtncoo9vnyW/2GspNYwFlN1C/WmjuV/xtS04e9SOkL2sTdw0VAZ2UGCcQ9lR6p6w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2616544fb245710cbf1335bad3993f92d1ed9dca28f6f9f25bfd86b29358c0594dd42fd69a3b95ff1b52d387bd48e90bdac4ddc3454067650609c43d951ea9eb\",\"name\":\"classcat\",\"version\":\"5.0.5\"},\"cli-cursor-5.0.0.tgz\":{\"integrity\":\"aCj4O5wKyszjMmDT4tZj93kxyydN/K5zPWSCe6/0AV/AA1pqe5ZBIw0a2ZfPQV7lL5/yb5HsUreJ6UFAF1tEQw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6828f83b9c0acacce33260d3e2d663f77931cb274dfcae733d64827baff4015fc0035a6a7b9641230d1ad997cf415ee52f9ff26f91ec52b789e94140175b4443\",\"name\":\"cli-cursor\",\"version\":\"5.0.0\"},\"cli-spinners-2.9.2.tgz\":{\"integrity\":\"ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"cb0a95fb9326c8be04ef26d780acace03ba065b5f4142e8b9f0ae18eeca42239caf64f0e41a710edac462a78c35d63619ecd31a2dddb648e61e791fcca8f5c26\",\"name\":\"cli-spinners\",\"version\":\"2.9.2\"},\"cliui-8.0.1.tgz\":{\"integrity\":\"BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"05278d9f2bacef90b8fff350f6042dd7f72c4d7ca8ffc49bf9a7cb024cc0a6d16e32ca1df4716890636e759a62fe8415ef786754afac47ee4f55131df83afb61\",\"name\":\"cliui\",\"version\":\"8.0.1\"},\"clone-response-1.0.3.tgz\":{\"integrity\":\"ROoL94jJH2dUVML2Y/5PEDNaSHgeOdSDicUyS7izcF63G6sTc/FTjLub4b8Il9S8S0beOfYt0TaA5qvFK+w0wA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"44ea0bf788c91f675454c2f663fe4f10335a48781e39d48389c5324bb8b3705eb71bab1373f1538cbb9be1bf0897d4bc4b46de39f62dd13680e6abc52bec34c0\",\"name\":\"clone-response\",\"version\":\"1.0.3\"},\"clsx-2.1.1.tgz\":{\"integrity\":\"eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7989b441606d52b0566561b4777f3a386030d7a67df793e2395a3607b6e35926c779d1a5e5ed1959aabae6438681448d7ac1080e407d2126d383f24af5d84264\",\"name\":\"clsx\",\"version\":\"2.1.1\"},\"cmdk-1.1.1.tgz\":{\"integrity\":\"Vsv7kFaXm+ptHDMZ7izaRsP70GgrW9NBNGswt9OZaVBLlE0SNpDq8eu/VGXyF9r7M0azK3Wy7OlYXsuyYLFzHg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"56cbfb9056979bea6d1c3319ee2cda46c3fbd0682b5bd341346b30b7d39969504b944d123690eaf1ebbf5465f217dafb3346b32b75b2ece9585ecbb260b1731e\",\"name\":\"cmdk\",\"version\":\"1.1.1\"},\"code-block-writer-13.0.3.tgz\":{\"integrity\":\"Oofo0pq3IKnsFtuHqSF7TqBfr71aeyZDVJ0HpmqB7FBM2qEigL0iPONSCZSO9pE9dZTAxANe5XHG9Uy0YMv8cg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3a87e8d29ab720a9ec16db87a9217b4ea05fafbd5a7b2643549d07a66a81ec504cdaa12280bd223ce35209948ef6913d7594c0c4035ee571c6f54cb460cbfc72\",\"name\":\"code-block-writer\",\"version\":\"13.0.3\"},\"color-convert-2.0.1.tgz\":{\"integrity\":\"RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4511023ec8fb8aeff16f9a0a61cb051d2a6914d9ec8ffe763954d129be333f9a275f0545df3566993a0d70e7c60be0910e97cafd4e7ce1f320dfc64709a12529\",\"name\":\"color-convert\",\"version\":\"2.0.1\"},\"color-name-1.1.4.tgz\":{\"integrity\":\"dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"74ecbedc0b96ddadb035b64722e319a537208c6b8b53fb812ffb9b71917d3976c3a3c7dfe0ef32569e417f479f4bcb84a18a39ab8171edd63d3a04065e002c40\",\"name\":\"color-name\",\"version\":\"1.1.4\"},\"colorette-2.0.20.tgz\":{\"integrity\":\"IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"21f103c70a1622391e5cbd5e5dc0e2a30e146ca8e12ddabafc4b92551f4630deca547debf6043cddeef786ccf535dd53de28dde71bf5c1c59160ef83ea4088db\",\"name\":\"colorette\",\"version\":\"2.0.20\"},\"combined-stream-1.0.8.tgz\":{\"integrity\":\"FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1503783117ee25e1dfedc05b04c2455e12920eafb690002b06599106f72f144e410751d9297b5214048385d973f73398c3187c943767be630e7bffb971da0476\",\"name\":\"combined-stream\",\"version\":\"1.0.8\"},\"commander-11.1.0.tgz\":{\"integrity\":\"yPVavfyCcRhmorC7rWlkHn15b4wDVgVmBA7kV4QVBsF7kv/9TKJAbAXVTxvTnwP8HHKjRCJDClKbciiYS7p0DQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c8f55abdfc82711866a2b0bbad69641e7d796f8c03560566040ee457841506c17b92fffd4ca2406c05d54f1bd39f03fc1c72a34422430a529b7228984bba740d\",\"name\":\"commander\",\"version\":\"11.1.0\"},\"commander-12.1.0.tgz\":{\"integrity\":\"Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"570f2a1caddb64cf72fcfd74bb75626fca3f0dd92f0363ad3ed66f0fcef540a8f2ef85a3d5648a1482cc3d13d27544b1e5114ad5aae527312d0383e41609dbb8\",\"name\":\"commander\",\"version\":\"12.1.0\"},\"commander-14.0.3.tgz\":{\"integrity\":\"H+y0Jo/T1RZ9qPP4Eh1pkcQcLRglraJaSLoyOtHxu6AapkjWVCy2Sit1QQ4x3Dng8qDlSsZEet7g5Pq06MvTgw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1fecb4268fd3d5167da8f3f8121d6991c41c2d1825ada25a48ba323ad1f1bba01aa648d6542cb64a2b75410e31dc39e0f2a0e54ac6447adee0e4fab4e8cbd383\",\"name\":\"commander\",\"version\":\"14.0.3\"},\"commander-5.1.0.tgz\":{\"integrity\":\"P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3f40b2b0d0d0eebb55c3840842d9be311c55ebabca152be5b10bc6617656477a855348e530a1d9659830f1efbc0d26a1e140ca32a9e49d10d0cfec6e41743f66\",\"name\":\"commander\",\"version\":\"5.1.0\"},\"commander-9.5.0.tgz\":{\"integrity\":\"KRs7WVDKg86PWiuAqhDrAQnTXZKraVcCc6vFdL14qrZ/DcWwuRo7VoiYXalXO7S5GKpqYiVEwCbgFDfxNHKJBQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"291b3b5950ca83ce8f5a2b80aa10eb0109d35d92ab69570273abc574bd78aab67f0dc5b0b91a3b5688985da9573bb4b918aa6a622544c026e01437f134728905\",\"name\":\"commander\",\"version\":\"9.5.0\"},\"compare-version-0.1.2.tgz\":{\"integrity\":\"pJDh5/4wrEnXX/VWRZvruAGHkzKdr46z11OlTPN+VrATlWWhSKewNCJ1futCO5C7eJB3nPMFZA1LeYtcFboZ2A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a490e1e7fe30ac49d75ff556459bebb8018793329daf8eb3d753a54cf37e56b0139565a148a7b03422757eeb423b90bb7890779cf305640d4b798b5c15ba19d8\",\"name\":\"compare-version\",\"version\":\"0.1.2\"},\"concat-map-0.0.1.tgz\":{\"integrity\":\"/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"fd2aefe1db30c903417e8846a73f68e986f71b3dd2ad40ea047e6b4ee84647b6a1b656d82a7571c366c214c4658da03b1171da5d9f30b07768745bdb9212a6aa\",\"name\":\"concat-map\",\"version\":\"0.0.1\"},\"conf-10.2.0.tgz\":{\"integrity\":\"8fLl9F04EJqjSqH+QjITQfJF8BrOVaYr1jewVgSRAEWePfxT0sku4w2hrGQ60BC/TNLGQ2pgxNlTbWQmMPFvXg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f1f2e5f45d38109aa34aa1fe42321341f245f01ace55a62bd637b056049100459e3dfc53d2c92ee30da1ac643ad010bf4cd2c6436a60c4d9536d642630f16f5e\",\"name\":\"conf\",\"version\":\"10.2.0\"},\"content-disposition-1.1.0.tgz\":{\"integrity\":\"5jRCH9Z/+DRP7rkvY83B+yGIGX96OYdJmzngqnw2SBSxqCFPd0w2km3s5iawpGX8krnwSGmF0FW5Nhr0Hfai3g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e634421fd67ff8344feeb92f63cdc1fb2188197f7a3987499b39e0aa7c364814b1a8214f774c36926dece626b0a465fc92b9f0486985d055b9361af41df6a2de\",\"name\":\"content-disposition\",\"version\":\"1.1.0\"},\"content-disposition-2.0.1.tgz\":{\"integrity\":\"e+H0ZXHSWYrENhQzw1LPuP4oF5MzVKmDU6d3hxlvaPEYLLg62MxtQNPRx4SYSuYJSBUgnQIG4HIN2tEtNv7Dog==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7be1f46571d2598ac4361433c352cfb8fe2817933354a98353a77787196f68f1182cb83ad8cc6d40d3d1c784984ae6094815209d0206e0720ddad12d36fec3a2\",\"name\":\"content-disposition\",\"version\":\"2.0.1\"},\"content-type-1.0.5.tgz\":{\"integrity\":\"nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9d38ea7dc045122a4a7570afe180d05827e670b64a9bcd65745d29028a53bf2ac51956dc47a3ff54001de46ecdfb4b53afc42a894d2d15a743e852b836d27038\",\"name\":\"content-type\",\"version\":\"1.0.5\"},\"content-type-2.1.0.tgz\":{\"integrity\":\"mj7UPXE0jaqaOsukNZRUEfEi2AcL7C/vwmwcHV0O97eO1E1pxBZuyjlZrx5seTaNBg1U6+o35wpa35Qfcc+7ag==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9a3ed43d71348daa9a3acba435945411f122d8070bec2fefc26c1c1d5d0ef7b78ed44d69c4166eca3959af1e6c79368d060d54ebea37e70a5adf941f71cfbb6a\",\"name\":\"content-type\",\"version\":\"2.1.0\"},\"convert-source-map-2.0.0.tgz\":{\"integrity\":\"Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2afa78e7d1eb576144275080b22d4abbe318de46ac1f5f53172913cf6c5698c7aae9b936354dd75ef7c9f90eb59b4c64b56c2dfb51d261fdc966c4e6b3769126\",\"name\":\"convert-source-map\",\"version\":\"2.0.0\"},\"cookie-0.7.2.tgz\":{\"integrity\":\"yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ca48b95e72ae7fbe74979d2e193965b7a90a20b6389d0d5e34841ab685c40726797568272aa6e7aa64eb044e41e0dee5acc24a436cad58c8933b6a34bfa130ff\",\"name\":\"cookie\",\"version\":\"0.7.2\"},\"cookie-1.1.1.tgz\":{\"integrity\":\"ei8Aos7ja0weRpFzJnEA9UHJ/7XQmqglbRwnf2ATjcB9Wq874VKH9kfjjirM6UhU2/E5fFYadylyhFldcqSidQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7a2f00a2cee36b4c1e469173267100f541c9ffb5d09aa8256d1c277f60138dc07d5aaf3be15287f647e38e2acce94854dbf1397c561a77297284595d72a4a275\",\"name\":\"cookie\",\"version\":\"1.1.1\"},\"cookie-es-3.1.1.tgz\":{\"integrity\":\"UaXxwISYJPTr9hwQxMFYZ7kNhSXboMXP+Z3TRX6f1/NyaGPfuNUZOWP1pUEb75B2HjfklIYLVRfWiFZJyC6Npg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"51a5f1c0849824f4ebf61c10c4c15867b90d8525dba0c5cff99dd3457e9fd7f3726863dfb8d5193963f5a5411bef90761e37e494860b5517d6885649c82e8da6\",\"name\":\"cookie-es\",\"version\":\"3.1.1\"},\"cookie-signature-1.2.2.tgz\":{\"integrity\":\"D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0fbeae53bdee9525eb0f5517178284d93331555c21b270a07c0c9383d93c3fa2866639572ab38b7b874940a2370718b9c237ac6681572561253560633d931b86\",\"name\":\"cookie-signature\",\"version\":\"1.2.2\"},\"core-util-is-1.0.3.tgz\":{\"integrity\":\"ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"65006f8b50dca49e060ea6a78ee719d878f7c043b9a590d2f3d0566e472bbddc64b09a2bc140c365a997f65745929f5ac369660432e090e6c40380d6349f4561\",\"name\":\"core-util-is\",\"version\":\"1.0.3\"},\"cors-2.8.6.tgz\":{\"integrity\":\"tJtZBBHA6vjIAaF6EnIaq6laBBP9aq/Y3ouVJjEfoHbRBcHBAHYcMh/w8LDrk2PvIMMq8gmopa5D4V8RmbrxGw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b49b590411c0eaf8c801a17a12721aaba95a0413fd6aafd8de8b9526311fa076d105c1c100761c321ff0f0b0eb9363ef20c32af209a8a5ae43e15f1199baf11b\",\"name\":\"cors\",\"version\":\"2.8.6\"},\"cosmiconfig-9.0.2.tgz\":{\"integrity\":\"gtTZxTDau1wL7Y7zifc2dd8jHSK/k6BTx/2Xp/BpdlAdnlYWFVt7qhJqgwi7637yRwRQ3qL4ZidbB4I8tA5VOg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"82d4d9c530dabb5c0bed8ef389f73675df231d22bf93a053c7fd97a7f06976501d9e5616155b7baa126a8308bbeb7ef2470450dea2f866275b07823cb40e553a\",\"name\":\"cosmiconfig\",\"version\":\"9.0.2\"},\"cross-dirname-0.1.0.tgz\":{\"integrity\":\"+R08/oI0nl3vfPcqftZRpytksBXDzOUveBq/NBVx0sUp1axwzPQrKinNx5yd5sxPu8j1wIy8AfnVQ+5eFdha6Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f91d3cfe82349e5def7cf72a7ed651a72b64b015c3cce52f781abf341571d2c529d5ac70ccf42b2a29cdc79c9de6cc4fbbc8f5c08cbc01f9d543ee5e15d85ae9\",\"name\":\"cross-dirname\",\"version\":\"0.1.0\"},\"cross-fetch-ponyfill-1.0.3.tgz\":{\"integrity\":\"uOBkDhUAGAbx/FEzNKkOfx3w57H8xReBBXoZvUnOKTI0FW0Xvrj3GrYv2iZXUqlffC1LMGfQzhmBM/ke+6eTDA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b8e0640e15001806f1fc513334a90e7f1df0e7b1fcc51781057a19bd49ce293234156d17beb8f71ab62fda265752a95f7c2d4b3067d0ce198133f91efba7930c\",\"name\":\"cross-fetch-ponyfill\",\"version\":\"1.0.3\"},\"cross-spawn-7.0.6.tgz\":{\"integrity\":\"uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b95d903963f69d6ceccb668ca7c69189b862f5d9731791e0879487681f4e893184c834e2249cb1d2ecb9d505ddc966ed00736e6b85c9cd429c6b73b3294777bc\",\"name\":\"cross-spawn\",\"version\":\"7.0.6\"},\"css-tree-3.2.1.tgz\":{\"integrity\":\"X7sjQzceUhu1u7Y/ylrRZFU2FS6LRiFVp6rKLPg23y3x3c3DOKAwuXGDp+PAGjh6CSnCjYeAul8pcT8bAl+lSA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5fbb2343371e521bb5bbb63fca5ad1645536152e8b462155a7aaca2cf836df2df1ddcdc338a030b97183a7e3c01a387a0929c28d8780ba5f29713f1b025fa548\",\"name\":\"css-tree\",\"version\":\"3.2.1\"},\"css.escape-1.5.1.tgz\":{\"integrity\":\"YUifsXXuknHlUsmlgyY0PKzgPOr7/FjCePfHNt0jxm83wHZi44VDMQ7/fGNkjY3/jV1MC+1CmZbaHzugyeRtpg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"61489fb175ee9271e552c9a58326343cace03ceafbfc58c278f7c736dd23c66f37c07662e38543310eff7c63648d8dff8d5d4c0bed429996da1f3ba0c9e46da6\",\"name\":\"css.escape\",\"version\":\"1.5.1\"},\"cssesc-3.0.0.tgz\":{\"integrity\":\"/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"fd36ff25c8cad75d67352706a1be4c36db27b4d3356823540e2a41fd39306458720ebac4e3b48ec7fd7cc05d9b6e381cdd9cc248a5b54f99ede446c5a00cff56\",\"name\":\"cssesc\",\"version\":\"3.0.0\"},\"csstype-3.2.3.tgz\":{\"integrity\":\"z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"cf51c629c632db103c00641fc2b9f43c0cbe3c1ed7fc64a3dd45495bda8aca7e37c566be825e675e6538aaa2cc4735952c50bc2aeb145fc4ffd240a2398a4021\",\"name\":\"csstype\",\"version\":\"3.2.3\"},\"d3-array-3.2.4.tgz\":{\"integrity\":\"tdQAmyA18i4J7wprpYq8ClcxZy3SC31QMeByyCFyRt7BVHdREQZ5lpzoe5mFEYZUWe+oq8HBvk9JjpibyEV4Jg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b5d4009b2035f22e09ef0a6ba58abc0a5731672dd20b7d5031e072c8217246dec1547751110679969ce87b998511865459efa8abc1c1be4f498e989bc8457826\",\"name\":\"d3-array\",\"version\":\"3.2.4\"},\"d3-color-3.1.0.tgz\":{\"integrity\":\"zg/chbXyeBtMQ1LbD/WSoW2DpC3I0mpmPdW+ynRTj/x2DAWYrIY7qeZIHidozwV24m4iavr15lNwIwLxRmOxhA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ce0fdc85b5f2781b4c4352db0ff592a16d83a42dc8d26a663dd5beca74538ffc760c0598ac863ba9e6481e2768cf0576e26e226afaf5e653702302f14663b184\",\"name\":\"d3-color\",\"version\":\"3.1.0\"},\"d3-dispatch-3.0.1.tgz\":{\"integrity\":\"rzUyPU/S7rwUflMyLc1ETDeBj0NRuHKKAcvukozwhshr6g6c5d8zh4c2gQjY2bZ0dXeGLWc1PF174P2tVvKhfg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"af35323d4fd2eebc147e53322dcd444c37818f4351b8728a01cbee928cf086c86bea0e9ce5df338787368108d8d9b6747577862d67353c5d7be0fdad56f2a17e\",\"name\":\"d3-dispatch\",\"version\":\"3.0.1\"},\"d3-drag-3.0.0.tgz\":{\"integrity\":\"pWbUJLdETVA8lQNJecMxoXfH6x+mO2UQo8rSmZ+QqxcbyA3hfeprFgIT//HW2nlHChWeIIMwS2Fq+gEARkhTkg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a566d424b7444d503c95034979c331a177c7eb1fa63b6510a3cad2999f90ab171bc80de17dea6b160213fff1d6da79470a159e2083304b616afa010046485392\",\"name\":\"d3-drag\",\"version\":\"3.0.0\"},\"d3-ease-3.0.1.tgz\":{\"integrity\":\"wR/XK3D3XcLIZwpbvQwQ5fK+8Ykds1ip7A2Txe0yxncXSdq1L9skcG7blcedkOX+ZcgxGAmLX1FrRGbADwzi0w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c11fd72b70f75dc2c8670a5bbd0c10e5f2bef1891db358a9ec0d93c5ed32c6771749dab52fdb24706edb95c79d90e5fe65c83118098b5f516b4466c00f0ce2d3\",\"name\":\"d3-ease\",\"version\":\"3.0.1\"},\"d3-format-3.1.2.tgz\":{\"integrity\":\"AJDdYOdnyRDV5b6ArilzCPPwc1ejkHcoyFarqlPqT7zRYjhavcT3uSrqcMvsgh2CgoPbK3RCwyHaVyxYcP2Arg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0090dd60e767c910d5e5be80ae297308f3f07357a3907728c856abaa53ea4fbcd162385abdc4f7b92aea70cbec821d828283db2b7442c321da572c5870fd80ae\",\"name\":\"d3-format\",\"version\":\"3.1.2\"},\"d3-interpolate-3.0.1.tgz\":{\"integrity\":\"3bYs1rOD33uo8aqJfKP3JWPAibgw8Zm2+L9vBKEHJ2Rg+viTR7o5Mmv5mZcieN+FRYaAOWX5SJATX6k1PWz72g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ddb62cd6b383df7ba8f1aa897ca3f72563c089b830f199b6f8bf6f04a107276460faf89347ba39326bf999972278df854586803965f94890135fa9353d6cfbda\",\"name\":\"d3-interpolate\",\"version\":\"3.0.1\"},\"d3-path-3.1.0.tgz\":{\"integrity\":\"p3KP5HCf/bvjBSSKuXid6Zqijx7wIfNW+J/maPs+iwR35at5JCbLUT0LzF1cnjbCHWhqzQTIN2Jpe8pRebIEFQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a7728fe4709ffdbbe305248ab9789de99aa28f1ef021f356f89fe668fb3e8b0477e5ab792426cb513d0bcc5d5c9e36c21d686acd04c83762697bca5179b20415\",\"name\":\"d3-path\",\"version\":\"3.1.0\"},\"d3-scale-4.0.2.tgz\":{\"integrity\":\"GZW464g1SH7ag3Y7hXjf8RoUuAFIqklOAq3MRl4OaWabTFJY9PN/E1YklhXLh+OQ3fM9yS2nOkCoS+WLZ6kvxQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1995b8eb8835487eda83763b8578dff11a14b80148aa494e02adcc465e0e69669b4c5258f4f37f1356249615cb87e390ddf33dc92da73a40a84be58b67a92fc5\",\"name\":\"d3-scale\",\"version\":\"4.0.2\"},\"d3-selection-3.0.0.tgz\":{\"integrity\":\"fmTRWbNMmsmWq6xJV8D19U/gw/bwrHfNXxrIN+HfZgnzqTHp9jOmKMhsTUjXOJnZOdZY9Q28y4yebKzqDKlxlQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7e64d159b34c9ac996abac4957c0f5f54fe0c3f6f0ac77cd5f1ac837e1df6609f3a931e9f633a628c86c4d48d73899d939d658f50dbccb8c9e6cacea0ca97195\",\"name\":\"d3-selection\",\"version\":\"3.0.0\"},\"d3-shape-3.2.0.tgz\":{\"integrity\":\"SaLBuwGm3MOViRq2ABk3eLoxwZELpH6zhl3FbAoJ7Vm1gofKx6El1Ib5z23NUEhF9AsGl7y+dzLe5Cw2AArGTA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"49a2c1bb01a6dcc395891ab600193778ba31c1910ba47eb3865dc56c0a09ed59b58287cac7a125d486f9cf6dcd504845f40b0697bcbe7732dee42c36000ac64c\",\"name\":\"d3-shape\",\"version\":\"3.2.0\"},\"d3-time-3.1.0.tgz\":{\"integrity\":\"VqKjzBLejbSMT4IgbmVgDjpkYrNWUYJnbCGo874u7MMKIWsILRX+OpX/gTk8MqjpT1A/c6HY2dCA77ZN0lkQ2Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"56a2a3cc12de8db48c4f82206e65600e3a6462b3565182676c21a8f3be2eecc30a216b082d15fe3a95ff81393c32a8e94f503f73a1d8d9d080efb64dd25910d9\",\"name\":\"d3-time\",\"version\":\"3.1.0\"},\"d3-time-format-4.1.0.tgz\":{\"integrity\":\"dJxPBlzC7NugB2PDLwo9Q8JiTR3M3e4/XANkreKSUxF8vvXKqm1Yfq4Q5dl8budlunRVlUUaDUgFt7eA8D6NLg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"749c4f065cc2ecdba00763c32f0a3d43c2624d1dccddee3f5c0364ade29253117cbef5caaa6d587eae10e5d97c6ee765ba745595451a0d4805b7b780f03e8d2e\",\"name\":\"d3-time-format\",\"version\":\"4.1.0\"},\"d3-timer-3.0.1.tgz\":{\"integrity\":\"ndfJ/JxxMd3nw31uyKoY2naivF+r29V+Lc0svZxe1JvvIRmi8hUsrMvdOwgS1o6uBHmiz91geQ0ylPP0aj1VUA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9dd7c9fc9c7131dde7c37d6ec8aa18da76a2bc5fabdbd57e2dcd2cbd9c5ed49bef2119a2f2152caccbdd3b0812d68eae0479a2cfdd60790d3294f3f46a3d5550\",\"name\":\"d3-timer\",\"version\":\"3.0.1\"},\"d3-transition-3.0.1.tgz\":{\"integrity\":\"ApKvfjsSR6tg06xrL434C0WydLr7JewBB3V+/39RMHsaXTOG0zmt/OAXeng5M5LBm0ojmxJrpomQVZ1aPvBL4w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0292af7e3b1247ab60d3ac6b2f8df80b45b274bafb25ec0107757eff7f51307b1a5d3386d339adfce0177a78393392c19b4a239b126ba68990559d5a3ef04be3\",\"name\":\"d3-transition\",\"version\":\"3.0.1\"},\"d3-zoom-3.0.0.tgz\":{\"integrity\":\"b8AmV3kfQaqWAuacbPuNbL6vahnOJflOhexLzMMNLga62+/nh0JzvJ0aO/5a5MVgUFGS7Hu1P9P03o3fJkDCyw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6fc02657791f41aa9602e69c6cfb8d6cbeaf6a19ce25f94e85ec4bccc30d2e06badbefe7874273bc9d1a3bfe5ae4c560505192ec7bb53fd3f4de8ddf2640c2cb\",\"name\":\"d3-zoom\",\"version\":\"3.0.0\"},\"data-uri-to-buffer-4.0.1.tgz\":{\"integrity\":\"0R9ikRb668HB7QDxT1vkpuUBtqc53YyAwMwGeUFKRojY/NWKvdZ+9UYtRfGmhqNbRkTSVpMbmyhXipFFv2cb/A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d11f629116faebc1c1ed00f14f5be4a6e501b6a739dd8c80c0cc0679414a4688d8fcd58abdd67ef5462d45f1a686a35b4644d256931b9b28578a9145bf671bfc\",\"name\":\"data-uri-to-buffer\",\"version\":\"4.0.1\"},\"data-urls-7.0.0.tgz\":{\"integrity\":\"23XHcCF+coGYevirZceTVD7NdJOqVn+49IHyxgszm+JIiHLoB2TkmPtsYkNWT1pvRSGkc35L6NHs0yHkN2SumA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"db75c770217e7281987af8ab65c793543ecd7493aa567fb8f481f2c60b339be2488872e80764e498fb6c6243564f5a6f4521a4737e4be8d1ecd321e43764ae98\",\"name\":\"data-urls\",\"version\":\"7.0.0\"},\"dateformat-4.6.3.tgz\":{\"integrity\":\"2P0p0pFGzHS5EMnhdxQi7aJN+iMheud0UhG4dlE1DLAlvL8JHjJJTX/CSm4JXwV0Ka5nGk3zC5mcb5bUQUxxMA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d8fd29d29146cc74b910c9e1771422eda24dfa23217ae7745211b87651350cb025bcbf091e32494d7fc24a6e095f057429ae671a4df30b999c6f96d4414c7130\",\"name\":\"dateformat\",\"version\":\"4.6.3\"},\"debounce-fn-4.0.0.tgz\":{\"integrity\":\"8pYCQiL9Xdcg0UPSD3d+0KMlOjp+KGU5EPwYddgzQ7DATsg4fuUDjQtsYLmWjnk2obnNHgV3vE2Y4jejSOJVBQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f296024222fd5dd720d143d20f777ed0a3253a3a7e28653910fc1875d83343b0c04ec8387ee5038d0b6c60b9968e7936a1b9cd1e0577bc4d98e237a348e25505\",\"name\":\"debounce-fn\",\"version\":\"4.0.0\"},\"debug-4.4.3.tgz\":{\"integrity\":\"RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"446c305a7c10be455f6af295b76d8518bc3ec5849dcc04709b4aeee83853540dee994e6165cdbc57790ee2cb6062bcab4e52e9baf808f468a28e5b408cd6dca8\",\"name\":\"debug\",\"version\":\"4.4.3\"},\"decimal.js-10.6.0.tgz\":{\"integrity\":\"YpgQiITW3JXGntzdUmyUR1V812Hn8T1YVXhCu+wO3OpS4eU9l4YdD3qjyiKdV6mvV29zapkMeD390UVEf2lkUg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6298108884d6dc95c69edcdd526c9447557cd761e7f13d58557842bbec0edcea52e1e53d97861d0f7aa3ca229d57a9af576f736a990c783dfdd145447f696452\",\"name\":\"decimal.js\",\"version\":\"10.6.0\"},\"decimal.js-light-2.5.1.tgz\":{\"integrity\":\"qIMFpTMZmny+MMIitAB6D7iVPEorVw6YQRWkvarTkT4tBeSLLiHzcwj6q0MmYSFCiVpiqPJTJEYIrpcPzVEIvg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a88305a533199a7cbe30c222b4007a0fb8953c4a2b570e984115a4bdaad3913e2d05e48b2e21f37308faab4326612142895a62a8f253244608ae970fcd5108be\",\"name\":\"decimal.js-light\",\"version\":\"2.5.1\"},\"decompress-response-6.0.0.tgz\":{\"integrity\":\"aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"696df9c9933a05bff8a099599dc307d8b0a866d2574d1c444b5eef137868462a305369161da24a1644810e70d1f9c9bd27ef5085799113221fbf4a638bd7a309\",\"name\":\"decompress-response\",\"version\":\"6.0.0\"},\"dedent-1.7.2.tgz\":{\"integrity\":\"WzMx3mW98SN+zn3hgemf4OzdmyNhhhKz5Ay0pUfQiMQ3e1g+xmTJWp/pKdwKVXhdSkAEGIIzqeuWrL3mV/AXbA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5b3331de65bdf1237ece7de181e99fe0ecdd9b23618612b3e40cb4a547d088c4377b583ec664c95a9fe929dc0a55785d4a4004188233a9eb96acbde657f0176c\",\"name\":\"dedent\",\"version\":\"1.7.2\"},\"deepmerge-4.3.1.tgz\":{\"integrity\":\"3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"dec52a6cc11cefb5eaa5d34eec547246883e796de987e19809b8feacafae63244cbb0b15cb4acc895b4f9fe40994a16f58fff53d8a5aa6a627d0c7b6927167f8\",\"name\":\"deepmerge\",\"version\":\"4.3.1\"},\"default-browser-5.5.1.tgz\":{\"integrity\":\"m1pAzaJgZ/gssEqlOhJkPJp8Xly7QyW6xcrkUa2KKcDeDSEMP7X8xipU3snUcfisTQx0w1AGae+9UtJSfVnXGw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9b5a40cda26067f82cb04aa53a12643c9a7c5e5cbb4325bac5cae451ad8a29c0de0d210c3fb5fcc62a54dec9d471f8ac4d0c74c3500669efbd52d2527d59d71b\",\"name\":\"default-browser\",\"version\":\"5.5.1\"},\"default-browser-id-5.0.1.tgz\":{\"integrity\":\"x1VCxdX4t+8wVfd1so/9w+vQ4vx7lKd2Qp5tDRutErwmR85OgmfX7RlLRMWafRMY7hbEiXIbudNrjOAPa/hL8Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c75542c5d5f8b7ef3055f775b28ffdc3ebd0e2fc7b94a776429e6d0d1bad12bc2647ce4e8267d7ed194b44c59a7d1318ee16c489721bb9d36b8ce00f6bf84bf1\",\"name\":\"default-browser-id\",\"version\":\"5.0.1\"},\"defer-to-connect-2.0.1.tgz\":{\"integrity\":\"4tvttepXG1VaYGrRibk5EwJd1t4udunSOVMdLSAL6mId1ix438oPwPZMALY41FCijukO1L0twNcGsdzS7dHgDg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e2dbedb5ea571b555a606ad189b93913025dd6de2e76e9d239531d2d200bea621dd62c78dfca0fc0f64c00b638d450a28ee90ed4bd2dc0d706b1dcd2edd1e00e\",\"name\":\"defer-to-connect\",\"version\":\"2.0.1\"},\"define-data-property-1.1.4.tgz\":{\"integrity\":\"rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ac132f23396903cbfa13e489668a3ef87018aac2eb920ecc49f2229cc3c5866928af0ed7f9d39754942cf904faf731a4cccc9f0e720c3765a2775f8d6cbdd3f8\",\"name\":\"define-data-property\",\"version\":\"1.1.4\"},\"define-lazy-prop-2.0.0.tgz\":{\"integrity\":\"Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0ecd3da8d87ccb0de48528e22638942276865fdc65a990d8ec956bc86c5dc55ecd3debaa41fa653a943aeb224566eb778cb6b9ccec245f0d60f44236b8a8783a\",\"name\":\"define-lazy-prop\",\"version\":\"2.0.0\"},\"define-lazy-prop-3.0.0.tgz\":{\"integrity\":\"N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"37e31e5d8a2aaf7a4e827f317f244f44437b8076a42d88e1b07856193ddf58088be08900b74883c35e108a2126d9b137d1ce575f9ab416d000dc22b97fdfc152\",\"name\":\"define-lazy-prop\",\"version\":\"3.0.0\"},\"define-properties-1.2.1.tgz\":{\"integrity\":\"8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f109902aa10048b7799f1d14d41d6890b1256d4baeb6d27f0276264576db6c60d687ab92db4f048c3e17aaafc8f702bbbb4bfa3b4f178535a7b795ed11b47a0e\",\"name\":\"define-properties\",\"version\":\"1.2.1\"},\"delayed-stream-1.0.0.tgz\":{\"integrity\":\"ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"672483ecd7fdd5a2c1d11c4be0a1ab28705797b11db350c098475ca156b05e72c3ed20e1a4d82db88236680920edaed04b8d63c4f499d7ba7855d1a730793731\",\"name\":\"delayed-stream\",\"version\":\"1.0.0\"},\"depd-2.0.0.tgz\":{\"integrity\":\"g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"83b9c7e8fe9dc838a8268800006a6b1a90ad5489898693e4feba02cdd6f77c887ad7fb3f9cfb1f47aa27c8cc2408047f3a50b7c810b49444af52840402cb08af\",\"name\":\"depd\",\"version\":\"2.0.0\"},\"dequal-2.0.3.tgz\":{\"integrity\":\"0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d237bea8f28710ca21bdf453084a370ab3c6e9c033018826ccacb1462612483912e9e1897725499bb59a600e4409a003f702c1d93e0411eca603968555c61708\",\"name\":\"dequal\",\"version\":\"2.0.3\"},\"detect-libc-2.1.2.tgz\":{\"integrity\":\"Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"06d8f604e38ef37a375b21f9f5ef0c817b3111055c6ab9143a9118aee6c1d2eaf09cdd74c90dfae2bb22072535d67665a966199b4e62fe87fb8a8e26ce2841b5\",\"name\":\"detect-libc\",\"version\":\"2.1.2\"},\"detect-node-2.1.0.tgz\":{\"integrity\":\"T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4f4348b90a674ef14301336e1cde6ba0fc12046f37ac5b2e3be3175c7f7fdcdd5e15b9f8c1c3e3b6dbe330b10f589d11194620404edc1a04b7b4dc5ba8218cee\",\"name\":\"detect-node\",\"version\":\"2.1.0\"},\"detect-node-es-1.1.0.tgz\":{\"integrity\":\"ypdmJU/TbBby2Dxibuv7ZLW3Bs1QEmM7nHjEANfohJLvE0XVujisn1qPJcZxg+qDucsr+bP6fLD1rPS3AhJ7EQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ca9766254fd36c16f2d83c626eebfb64b5b706cd5012633b9c78c400d7e88492ef1345d5ba38ac9f5a8f25c67183ea83b9cb2bf9b3fa7cb0f5acf4b702127b11\",\"name\":\"detect-node-es\",\"version\":\"1.1.0\"},\"diff-8.0.4.tgz\":{\"integrity\":\"DPi0FmjiSU5EvQV0++GFDOJ9ASQUVFh5kD+OzOnYdi7n3Wpm9hWWGfB/O2blfHcMVTL5WkQXSnRiK9makhrcnw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0cf8b41668e2494e44bd0574fbe1850ce27d012414545879903f8ecce9d8762ee7dd6a66f6159619f07f3b66e57c770c5532f95a44174a74622bd99a921adc9f\",\"name\":\"diff\",\"version\":\"8.0.4\"},\"dir-compare-4.2.0.tgz\":{\"integrity\":\"2xMCmOoMrdQIPHdsTawECdNPwlVFB9zGcz3kuhmBO6U3oU+UQjsue0i8ayLKpgBcm+hcXPMVSGUN9d+pvJ6+VQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"db130298ea0cadd4083c776c4dac0409d34fc2554507dcc6733de4ba19813ba537a14f94423b2e7b48bc6b22caa6005c9be85c5cf31548650df5dfa9bc9ebe55\",\"name\":\"dir-compare\",\"version\":\"4.2.0\"},\"dmg-builder-26.15.7.tgz\":{\"integrity\":\"rfo1YyAWO0L3cZLKCqKQiLYbW6ZXebRUfK0kWp4oXxO7dDFLrf7alRkWImNuXvZVQhs6Idzy++cwOk8I+xPDhw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"adfa356320163b42f77192ca0aa29088b61b5ba65779b4547cad245a9e285f13bb74314badfeda95191622636e5ef655421b3a21dcf2fbe7303a4f08fb13c387\",\"name\":\"dmg-builder\",\"version\":\"26.15.7\"},\"dom-accessibility-api-0.5.16.tgz\":{\"integrity\":\"X7BJ2yElsnOJ30pZF4uIIDfBEVgF4XEBxL9Bxhy6dnrm5hkzqmsWHGTiHqRiITNhMyFLyAiWndIJP7Z1NTteDg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5fb049db2125b27389df4a59178b882037c1115805e17101c4bf41c61cba767ae6e61933aa6b161c64e21ea46221336133214bc808969dd2093fb675353b5e0e\",\"name\":\"dom-accessibility-api\",\"version\":\"0.5.16\"},\"dom-accessibility-api-0.6.3.tgz\":{\"integrity\":\"7ZgogeTnjuHbo+ct10G9Ffp0mif17idi0IyWNVA/wcwcm7NPOD/WEHVP3n7n3MhXqxoIYm8d6MuZohYWIZ4T3w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ed982881e4e78ee1dba3e72dd741bd15fa749a27f5ee2762d08c9635503fc1cc1c9bb34f383fd610754fde7ee7dcc857ab1a08626f1de8cb99a21616219e13df\",\"name\":\"dom-accessibility-api\",\"version\":\"0.6.3\"},\"dot-prop-6.0.1.tgz\":{\"integrity\":\"tE7ztYzXHIeyvc7N+hR3oi7FIbf/NIjVP9hmAt3yMXzrQ072/fpjGLx2GxNxGxUl5V73MEqYzioOMoVhGMJ5cA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b44ef3b58cd71c87b2bdcecdfa1477a22ec521b7ff3488d53fd86602ddf2317ceb434ef6fdfa6318bc761b13711b1525e55ef7304a98ce2a0e32856118c27970\",\"name\":\"dot-prop\",\"version\":\"6.0.1\"},\"dotenv-16.6.1.tgz\":{\"integrity\":\"uBq4egWHTcTt33a72vpSG0z3HnPuIl6NqYcTrKEg2azoEyl2hpW0zqlxysq2pK9HlDIHyHyakeYaYnSAwd8bow==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b81ab87a05874dc4eddf76bbdafa521b4cf71e73ee225e8da98713aca120d9ace81329768695b4cea971cacab6a4af47943207c87c9a91e61a627480c1df1ba3\",\"name\":\"dotenv\",\"version\":\"16.6.1\"},\"dotenv-17.4.2.tgz\":{\"integrity\":\"nI4U3TottKAcAD9LLud4Cb7b2QztQMUEfHbvhTH09bqXTxnSie8WnjPALV/WMCrJZ6UV/qHJ6L03OqO3LcdYZw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9c8e14dd3a2db4a01c003f4b2ee77809bedbd90ced40c5047c76ef8531f4f5ba974f19d289ef169e33c02d5fd6302ac967a515fea1c9e8bd373aa3b72dc75867\",\"name\":\"dotenv\",\"version\":\"17.4.2\"},\"dotenv-expand-11.0.7.tgz\":{\"integrity\":\"zIHwmZPRshsCdpMDyVsqGmgyP0yT8GAgXUnkdAoJisxvf33k7yO6OuoKmcTGuXPWSsm8Oh88nZicRLA9Y0rUeA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"cc81f09993d1b21b02769303c95b2a1a68323f4c93f060205d49e4740a098acc6f7f7de4ef23ba3aea0a99c4c6b973d64ac9bc3a1f3c9d989c44b03d634ad478\",\"name\":\"dotenv-expand\",\"version\":\"11.0.7\"},\"dunder-proto-1.0.1.tgz\":{\"integrity\":\"KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"28837f9c3241411717c3430b561644f62407986ebca80548060f42aa65188e64088608a3f54e4c16faea9142f915bb72cb366e39e3add3375e45ee1463b72df8\",\"name\":\"dunder-proto\",\"version\":\"1.0.1\"},\"duplexer2-0.1.4.tgz\":{\"integrity\":\"asLFVfWWtJ90ZyOUHMqk7/S2w2guQKxUI2itj3d92ADHhxUSbCMGi1f1cBcJ7xM1To+pE/Khbwo1yuNbMEPKeA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6ac2c555f596b49f746723941ccaa4eff4b6c3682e40ac542368ad8f777dd800c78715126c23068b57f5701709ef13354e8fa913f2a16f0a35cae35b3043ca78\",\"name\":\"duplexer2\",\"version\":\"0.1.4\"},\"duplexify-4.1.3.tgz\":{\"integrity\":\"M3BmBhwJRZsSx38lZyhE53Csddgzl5R7xGJNk7CVddZD6CcmwMCH8J+7AprIrQKH7TonKxaCjcv27Qmf+sQ+oA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"337066061c09459b12c77f25672844e770ac75d83397947bc4624d93b09575d643e82726c0c087f09fbb029ac8ad0287ed3a272b16828dcbf6ed099ffac43ea0\",\"name\":\"duplexify\",\"version\":\"4.1.3\"},\"ee-first-1.1.1.tgz\":{\"integrity\":\"WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"58cc26f4b851528f9651a44dfaf46e113a86f3d22066985548d91d16079beac4bf1383ab0c837bb78f0201ec121d773a0bc95e7c3f0a29faf9bd8eb56eb425a3\",\"name\":\"ee-first\",\"version\":\"1.1.1\"},\"ejs-3.1.10.tgz\":{\"integrity\":\"UeJmFfOrAQS8OJWPZ4qtgHyWExa088/MtK5UEyoJGFH67cDEXkZSviOiKRCZ4Xij0zxI3JECgYs3oKx+AizQBA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"51e26615f3ab0104bc38958f678aad807c961316b4f3cfccb4ae54132a091851faedc0c45e4652be23a2291099e178a3d33c48dc9102818b37a0ac7e022cd004\",\"name\":\"ejs\",\"version\":\"3.1.10\"},\"electron-43.4.0.tgz\":{\"integrity\":\"3qxGF0CeQbiox5oWV1JlbWGQ1VerbmDhTFqW4sJ8h7uqTHniFYPObXJcDna0DMh32et0fFyKzz0YY8lJv3t5jg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"deac4617409e41b8a8c79a165752656d6190d557ab6e60e14c5a96e2c27c87bbaa4c79e21583ce6d725c0e76b40cc877d9eb747c5c8acf3d1863c949bf7b798e\",\"name\":\"electron\",\"version\":\"43.4.0\"},\"electron-builder-26.15.7.tgz\":{\"integrity\":\"DBpaNzxsPs1BvEblzFoNriSbzsBqDCy/gseIngeEhYzQG1IxfB7Hvc2tBBVmpWE2BTQGP9J1RrAvDT+Vc/uAxg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0c1a5a373c6c3ecd41bc46e5cc5a0dae249bcec06a0c2cbf82c7889e0784858cd01b52317c1ec7bdcdad041566a561360534063fd27546b02f0d3f9573fb80c6\",\"name\":\"electron-builder\",\"version\":\"26.15.7\"},\"electron-builder-squirrel-windows-26.15.7.tgz\":{\"integrity\":\"B4uvn2NzFSuf084udWqugludFull6CRJiWe2dLzMnZLl6G5hdAGk0fsBMGlBSpKjvQCJn8IPc+S7OnJ+GXqwLA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"078baf9f6373152b9fd3ce2e756aae825b9d16e965e824498967b674bccc9d92e5e86e617401a4d1fb013069414a92a3bd00899fc20f73e4bb3a727e197ab02c\",\"name\":\"electron-builder-squirrel-windows\",\"version\":\"26.15.7\"},\"electron-liquid-glass-1.1.1.tgz\":{\"integrity\":\"AfPxcu6RJYxlsW2sjgjDEON0rVOjhh5QYM6ur5hsfILQmfY5ewHCWJZJZoDsQxhjeW1DAhbRbvB79IvgW4ansA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"01f3f172ee91258c65b16dac8e08c310e374ad53a3861e5060ceaeaf986c7c82d099f6397b01c25896496680ec431863796d430216d16ef07bf48be05b86a7b0\",\"name\":\"electron-liquid-glass\",\"version\":\"1.1.1\"},\"electron-publish-26.15.3.tgz\":{\"integrity\":\"g/2bn8YTavY4cuS5F+jOS7zmZbXXBV8KZ8yHKfJjFPoKtzBqrpCdNPxBd3tqdBwP7BVd0lGzf7Bk2s0KesWZ4Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"83fd9b9fc6136af63872e4b917e8ce4bbce665b5d7055f0a67cc8729f26314fa0ab7306aae909d34fc41777b6a741c0fec155dd251b37fb064dacd0a7ac599e1\",\"name\":\"electron-publish\",\"version\":\"26.15.3\"},\"electron-to-chromium-1.5.408.tgz\":{\"integrity\":\"SLoprcYpJ/OH2v2ps0+N5biv9H4/KBT3+YmmDew64TwK5y9j2wv7pMOFY7IorVkyMtEyLSCRlXKLsNlakeAlPw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"48ba29adc62927f387dafda9b34f8de5b8aff47e3f2814f7f989a60dec3ae13c0ae72f63db0bfba4c38563b228ad593232d1322d209195728bb0d95a91e0253f\",\"name\":\"electron-to-chromium\",\"version\":\"1.5.408\"},\"electron-updater-6.8.9.tgz\":{\"integrity\":\"ZhVxM9iGONUpZGI1FxdMRgJjUFXi7AYGVa5PwKlO1tV1/4zDxQmfKpXOHVztKrd6L9rLcFjERvi1Mf2vxyTkig==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"66157133d88638d52964623517174c4602635055e2ec060655ae4fc0a94ed6d575ff8cc3c5099f2a95ce1d5ced2ab77a2fdacb7058c446f8b531fdafc724e48a\",\"name\":\"electron-updater\",\"version\":\"6.8.9\"},\"electron-winstaller-5.4.0.tgz\":{\"integrity\":\"bO3y10YikuUwUuDUQRM4KfwNkKhnpVO7IPdbsrejwN9/AABJzzTQ4GeHwyzNSrVO+tEH3/Np255a3sVZpZDjvg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6cedf2d7462292e53052e0d441133829fc0d90a867a553bb20f75bb2b7a3c0df7f000049cf34d0e06787c32ccd4ab54efad107dff369db9e5adec559a590e3be\",\"name\":\"electron-winstaller\",\"version\":\"5.4.0\"},\"elkjs-0.12.0.tgz\":{\"integrity\":\"YZcKynxVxYoKIOEpywEPwCFdg+BTbxQRNf3pbwdDCvc8O3kQD8bmIwSxKU1eOTVc4Xo+VG9Te+575mlfvOrhEQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"61970aca7c55c58a0a20e129cb010fc0215d83e0536f141135fde96f07430af73c3b79100fc6e62304b1294d5e39355ce17a3e546f537bee7be6695fbceae111\",\"name\":\"elkjs\",\"version\":\"0.12.0\"},\"emoji-regex-10.6.0.tgz\":{\"integrity\":\"toUI84YS5YmxW219erniWD0CIVOo46xGKColeNQRgOzDorgBi1v4D71/OFzgD9GO2UGKIv1C3Sp8DAn0+j5w7A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b68508f38612e589b15b6d7d7ab9e2583d022153a8e3ac46282a2578d41180ecc3a2b8018b5bf80fbd7f385ce00fd18ed9418a22fd42dd2a7c0c09f4fa3e70ec\",\"name\":\"emoji-regex\",\"version\":\"10.6.0\"},\"emoji-regex-8.0.0.tgz\":{\"integrity\":\"MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3128d8cdc58d380d1ec001e9cf4331a5816fc20eb28f2d4d1b7c6d7a8ab3eb8e150a8fd13e09ebd7f186b7e89cde2253cd0f04bb74dd335e126b09d5526184e8\",\"name\":\"emoji-regex\",\"version\":\"8.0.0\"},\"encodeurl-2.0.0.tgz\":{\"integrity\":\"Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4349fd1d18b89ba26e188575785966bc907b644571bbddc8accca232c182d25acc24c5b3460c7a586aaec9f4206556f7d6f8468179df98f34d5e6c673a4441ae\",\"name\":\"encodeurl\",\"version\":\"2.0.0\"},\"end-of-stream-1.4.5.tgz\":{\"integrity\":\"ooEGc6HP26xXq/N+GCGOT0JKCLDGrq2bQUZrQ7gyrJiZANJ/8YDTxTpQBXGMn+WbIQXNVpyWymm7KYVICQnyOg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a2810673a1cfdbac57abf37e18218e4f424a08b0c6aead9b41466b43b832ac989900d27ff180d3c53a5005718c9fe59b2105cd569c96ca69bb2985480909f23a\",\"name\":\"end-of-stream\",\"version\":\"1.4.5\"},\"enhanced-resolve-5.24.5.tgz\":{\"integrity\":\"L1l8TNvomm6UVW5B253AGxQagSQr+vGwhMlrrfRS2qmhx46AMpMVJKQYLvWYbysTMY8VoicOvzHzoHMbyzB+4A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2f597c4cdbe89a6e94556e41db9dc01b141a81242bfaf1b084c96badf452daa9a1c78e8032931524a4182ef5986f2b13318f15a2270ebf31f3a0731bcb307ee0\",\"name\":\"enhanced-resolve\",\"version\":\"5.24.5\"},\"enquirer-2.4.1.tgz\":{\"integrity\":\"rRqJg/6gd538VHvR3PSrdRBb/1Vy2YfzHqzvbhGIQpDRKIa4FgV/54b5Q1xYSxOOwKvjXweS26E0Q+nAMwp2pQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ad1a8983fea0779dfc547bd1dcf4ab75105bff5572d987f31eacef6e11884290d12886b816057fe786f9435c584b138ec0abe35f0792dba13443e9c0330a76a5\",\"name\":\"enquirer\",\"version\":\"2.4.1\"},\"entities-8.0.0.tgz\":{\"integrity\":\"zwfzJecQ/Uej6tusMqwAqU/6KL2XaB2VZ2Jg54Je6ahNBGNH6Ek6g3jjNCF0fG9EWQKGZNddNjU5F1ZQn/sBnA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"cf07f325e710fd47a3eadbac32ac00a94ffa28bd97681d95676260e7825ee9a84d046347e8493a8378e33421747c6f4459028664d75d3635391756509ffb019c\",\"name\":\"entities\",\"version\":\"8.0.0\"},\"env-paths-2.2.1.tgz\":{\"integrity\":\"+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"fa1d6590b2a164c4d88e8835544a49346ecd64959cb9cd830e4feab2a49345108e5e22e3790d5dd7fb9dad41a1a8cc5480097028d67471fdaea9a9f918bb92d8\",\"name\":\"env-paths\",\"version\":\"2.2.1\"},\"env-paths-3.0.0.tgz\":{\"integrity\":\"dtJUTepzMW3Lm/NPxRf3wP4642UWhjL2sQxc+ym2YMj1m/H2zDNQOlezafzkHwn6sMstjHTwG6iQQsctDW/b1A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"76d2544dea73316dcb9bf34fc517f7c0fe3ae365168632f6b10c5cfb29b660c8f59bf1f6cc33503a57b369fce41f09fab0cb2d8c74f01ba89042c72d0d6fdbd4\",\"name\":\"env-paths\",\"version\":\"3.0.0\"},\"err-code-2.0.3.tgz\":{\"integrity\":\"2bmlRpNKBxT/CRmPOlyISQpNj+qSeYvcym/uT0Jx2bMOlKLtSy1ZmLuVxSEKKyor/N5yhvp/ZiG1oE3DEYMSFA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d9b9a546934a0714ff09198f3a5c88490a4d8fea92798bdcca6fee4f4271d9b30e94a2ed4b2d5998bb95c5210a2b2a2bfcde7286fa7f6621b5a04dc311831214\",\"name\":\"err-code\",\"version\":\"2.0.3\"},\"error-ex-1.3.4.tgz\":{\"integrity\":\"sqQamAnR14VgCr1A618A3sGrygcpK+HEbenA/HiEAkkUwcZIIB/tgWqHFxWgOyDh4nB4JCRimh79dR5Ywc9MDQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b2a41a9809d1d785600abd40eb5f00dec1abca07292be1c46de9c0fc7884024914c1c648201fed816a871715a03b20e1e270782424629a1efd751e58c1cf4c0d\",\"name\":\"error-ex\",\"version\":\"1.3.4\"},\"es-define-property-1.0.1.tgz\":{\"integrity\":\"e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7b79d17e07d4678acd18bdb7da05205f4e90372c9ecf4e0a76316b17e2d34683979ab3a014a0e0e0109db235bc1274faf5ea9d606991a49c223d560dac2696de\",\"name\":\"es-define-property\",\"version\":\"1.0.1\"},\"es-errors-1.3.0.tgz\":{\"integrity\":\"Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"65fe47d8ac6ddb18d3bdb26f3f66562c4202c40ea3fa1026333225ca9cb8c5c060d6f2959f1f3d5b2d066d2fa47f9730095145cdd0858765d20853542d2e9cb3\",\"name\":\"es-errors\",\"version\":\"1.3.0\"},\"es-module-lexer-2.3.2.tgz\":{\"integrity\":\"poHGpORABojJJucnV9KbOavETW8lBVnphkW77ER5/BQ5Fz7oXSoCNek7IH3vR5nRjdsEz926ibFYX8KtLQmdyw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a681c6a4e4400688c926e72757d29b39abc44d6f250559e98645bbec4479fc1439173ee85d2a0235e93b207def4799d18ddb04cfddba89b1585fc2ad2d099dcb\",\"name\":\"es-module-lexer\",\"version\":\"2.3.2\"},\"es-object-atoms-1.1.2.tgz\":{\"integrity\":\"HWcBoN6NileqtSydK2FqHbS/LoDd2pqrnQHLyJzBj4kOp/ky2MWMN694xOfkK8/SnUsW2DH7EfyVlydKCsm1Zw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1d6701a0de8d8a57aab52c9d2b616a1db4bf2e80ddda9aab9d01cbc89cc18f890ea7f932d8c58c37af78c4e7e42bcfd29d4b16d831fb11fc9597274a0ac9b567\",\"name\":\"es-object-atoms\",\"version\":\"1.1.2\"},\"es-set-tostringtag-2.1.0.tgz\":{\"integrity\":\"j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8fabd6cdfac655fc97c607be3b4c79b21e9cbf10288346bfe1175dd8adfacc2315e5e27effeb4e0278113bc70e0cc3566d545d5659866502f6612df247c6c850\",\"name\":\"es-set-tostringtag\",\"version\":\"2.1.0\"},\"es-toolkit-1.50.0.tgz\":{\"integrity\":\"OyZKhUVvEep9ITEiwHn8GKnMRQIVqoSIX7WnRbkWgJkllCujilqP2rD0u979tkl8wqyc8ICwlc1UBVv/Sl1G6w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3b264a85456f11ea7d213122c079fc18a9cc450215aa84885fb5a745b916809925942ba38a5a8fdab0f4bbdefdb6497cc2ac9cf080b095cd54055bff4a5d46eb\",\"name\":\"es-toolkit\",\"version\":\"1.50.0\"},\"es6-error-4.1.1.tgz\":{\"integrity\":\"Um/+FxMr9CISWh0bi5Zv0iOD+4cFh5qLeks1qhAopKVAJw3drgKbKySikp7wGhDL0HPeaja0P5ULZrxLkniUVg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"526ffe17132bf422125a1d1b8b966fd22383fb8705879a8b7a4b35aa1028a4a540270dddae029b2b24a2929ef01a10cbd073de6a36b43f950b66bc4b92789456\",\"name\":\"es6-error\",\"version\":\"4.1.1\"},\"esbuild-0.28.2.tgz\":{\"integrity\":\"HKVLS8dvII+xoKW9kmqxbRKrnWEXfJJr/FZhhJmiqIB0e053QNYFqOBouTMO/k5sID4MvCiUCvv8b9M4h32wIA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1ca54b4bc76f208fb1a0a5bd926ab16d12ab9d61177c926bfc56618499a2a880747b4e7740d605a8e068b9330efe4e6c203e0cbc28940afbfc6fd338877db020\",\"name\":\"esbuild\",\"version\":\"0.28.2\"},\"escalade-3.2.0.tgz\":{\"integrity\":\"WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5948f6aa5c5a42d3b883a3eae5cdbd193716183c9df22b4bf334e58a98040b3dc97ac02288e2a8b5df0953aa2d0773c00a01bac64254c9585ba0c4be6e37bf8c\",\"name\":\"escalade\",\"version\":\"3.2.0\"},\"escape-html-1.0.3.tgz\":{\"integrity\":\"NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3624aea59e0e7ae1b0afaf251887b29bf92c219309a1d506392099fc54a74f172b7a46efaab81d53194938ca628da299563009ad6ac6b3fe89cbc38cbb28fda3\",\"name\":\"escape-html\",\"version\":\"1.0.3\"},\"escape-string-regexp-4.0.0.tgz\":{\"integrity\":\"TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4eda5c349dd7033c771aaf2c591cc96956a346cd2e57103660091d6f58e6d9890fcf81ba7a05050320379f9bed10865e7cf93959ae145db2ae4b97ca90959d80\",\"name\":\"escape-string-regexp\",\"version\":\"4.0.0\"},\"esprima-4.0.1.tgz\":{\"integrity\":\"eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"786b85170ed4a5d6be838a7e407be75b44724d7fd255e2410ccfe00ad30044ed1c2ee4f61dc10a9d33ef86357a6867aaac207fb1b368a742acce6d23b1a594e0\",\"name\":\"esprima\",\"version\":\"4.0.1\"},\"estree-walker-3.0.3.tgz\":{\"integrity\":\"7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ed150a7d781230c933b7a66e5e6a9aa4ebab2c63cf7e08fa97db9167b9511a896f934cb6ca871cdf92dd731282e4f419767d8332a8a8010d8da1672b4ca9a6ea\",\"name\":\"estree-walker\",\"version\":\"3.0.3\"},\"etag-1.8.1.tgz\":{\"integrity\":\"aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6882f9171ee66b055adf4d1a976067104e2236fa35a844f12eb3c8fe8d392fbcfa828edf0b0d49e844266cae05989d804bb920545fca1195ae7c17dd0a531c3e\",\"name\":\"etag\",\"version\":\"1.8.1\"},\"event-target-shim-5.0.1.tgz\":{\"integrity\":\"i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8bfd976e74b3feec51094ebe35d54980a5834cce36efe32a61b910cc3df6d43b8240952a3ae24a200d08336f96db1b581dd28e999e1d47a7c4c6c7784972fe59\",\"name\":\"event-target-shim\",\"version\":\"5.0.1\"},\"eventemitter3-5.0.4.tgz\":{\"integrity\":\"mlsTRyGaPBjPedk6Bvw+aqbsXDtoAyAzm5MO7JgU+yVRyMQ5O8bD4Kcci7BS85f93veegeCPkL8R4GLClnjLFw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9a5b1347219a3c18cf79d93a06fc3e6aa6ec5c3b680320339b930eec9814fb2551c8c4393bc6c3e0a71c8bb052f397fddef79e81e08f90bf11e062c29678cb17\",\"name\":\"eventemitter3\",\"version\":\"5.0.4\"},\"eventsource-3.0.7.tgz\":{\"integrity\":\"CRT1WTyuQoD771GW56XEZFQ/ZoSfWid1alKGDYMmkt2yl8UXrVR4pspqWNEcqKvVIzg6PAltWjxcSSPrboA4iA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0914f5593cae4280fbef5196e7a5c464543f66849f5a27756a52860d832692ddb297c517ad5478a6ca6a58d11ca8abd523383a3c096d5a3c5c4923eb6e803888\",\"name\":\"eventsource\",\"version\":\"3.0.7\"},\"eventsource-parser-3.1.1.tgz\":{\"integrity\":\"EKN1vKAMcZ8MlYMpaNuxN6R9yakzH6uajHcHVTqWJzvu5pWw9DyhbP35HH8MVBQ+dZjAfDxk+A8NiR9KWaXiyQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"10a375bca00c719f0c95832968dbb137a47dc9a9331fab9a8c7707553a96273beee695b0f43ca16cfdf91c7f0c54143e7598c07c3c64f80f0d891f4a59a5e2c9\",\"name\":\"eventsource-parser\",\"version\":\"3.1.1\"},\"execa-5.1.1.tgz\":{\"integrity\":\"8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f2e4a9659a1c01944100f20420d263dcba3d1f21a2b6595ccdcdbb121e586288e3305327f321cc0cc6941c4d89a9fab4e43ff0b9cc08e091944725edd6f721ca\",\"name\":\"execa\",\"version\":\"5.1.1\"},\"execa-9.6.1.tgz\":{\"integrity\":\"9Be3ZoN4LmYR90tUoVu2te2BsbzHfhJyfEiAVfz7N5/zv+jduIfLrV2xdQXOHbaD6KgpGdO9PRPM1Y4Q9QkPkA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f417b76683782e6611f74b54a15bb6b5ed81b1bcc77e12727c488055fcfb379ff3bfe8ddb887cbad5db17505ce1db683e8a82919d3bd3d13ccd58e10f5090f90\",\"name\":\"execa\",\"version\":\"9.6.1\"},\"expect-type-1.4.0.tgz\":{\"integrity\":\"KfYbmpRm0VbLjEvVa9yGwCi9GI34xvi7A/HXYWQO65CSD2u3MczUJSuwXKFIxlGsgBQizV9q5J9NHj4VG0n+pA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"29f61b9a9466d156cb8c4bd56bdc86c028bd188df8c6f8bb03f1d761640eeb90920f6bb731ccd4252bb05ca148c651ac801422cd5f6ae49f4d1e3e151b49fea4\",\"name\":\"expect-type\",\"version\":\"1.4.0\"},\"exponential-backoff-3.1.3.tgz\":{\"integrity\":\"ZgEeZXj30q+I0EN+CbSSpIyPaJ5HVQD18Z1m+u1FXbAeT94mr1zw50q4q6jiiC447Nl/YTcIYSAftiGqetwXCA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"66011e6578f7d2af88d0437e09b492a48c8f689e475500f5f19d66faed455db01e4fde26af5cf0e74ab8aba8e2882e38ecd97f61370861201fb621aa7adc1708\",\"name\":\"exponential-backoff\",\"version\":\"3.1.3\"},\"express-5.2.1.tgz\":{\"integrity\":\"hIS4idWWai69NezIdRt2xFVofaF4j+6INOpJlVOLDO8zXGpUVEVzIYk12UUi2JzjEzWL3IOAxcTubgz9Po0yXw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8484b889d5966a2ebd35ecc8751b76c455687da1788fee8834ea4995538b0cef335c6a54544573218935d94522d89ce313358bdc8380c5c4ee6e0cfd3e8d325f\",\"name\":\"express\",\"version\":\"5.2.1\"},\"express-rate-limit-8.6.2.tgz\":{\"integrity\":\"YH4ru+eOJxQABscKFfRCy9R7x9QFGdezclVMwwgFFndzS2Xnm0uo6B0ABZsLhcpeptGv2qvuJVWlQr9gQZoC3A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"607e2bbbe78e27140006c70a15f442cbd47bc7d40519d7b372554cc308051677734b65e79b4ba8e81d00059b0b85ca5ea6d1afdaabee2555a542bf60419a02dc\",\"name\":\"express-rate-limit\",\"version\":\"8.6.2\"},\"fast-copy-4.0.4.tgz\":{\"integrity\":\"eVAiWVNPSEGIzDl5yPuLrx8fNMogScXvD9xp1Kzd41FjRIz2I3sSIcxsFeM5EzFfHAfobdvs8ZySffUopljvIA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"79502259534f484188cc3979c8fb8baf1f1f34ca2049c5ef0fdc69d4acdde35163448cf6237b1221cc6c15e33913315f1c07e86ddbecf19c927df528a658ef20\",\"name\":\"fast-copy\",\"version\":\"4.0.4\"},\"fast-decode-uri-component-1.0.1.tgz\":{\"integrity\":\"WKgKWg5eUxvRZGwW8FvfbaH7AXSh2cL+3j5fMGzUMCxWBJ3dV3a7Wz8y2f/uQ0e3B6WmodD3oS54jTQ9HVTIIg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"58a80a5a0e5e531bd1646c16f05bdf6da1fb0174a1d9c2fede3e5f306cd4302c56049ddd5776bb5b3f32d9ffee4347b707a5a6a1d0f7a12e788d343d1d54c822\",\"name\":\"fast-decode-uri-component\",\"version\":\"1.0.1\"},\"fast-deep-equal-3.1.3.tgz\":{\"integrity\":\"f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7f7a90f68432f63d808417bf1fd542f75c0b98a042094fe00ce9ca340606e61b303bb04b2a3d3d1dce4760dcfd70623efb19690c22200da8ad56cd3701347ce1\",\"name\":\"fast-deep-equal\",\"version\":\"3.1.3\"},\"fast-glob-3.3.3.tgz\":{\"integrity\":\"7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ecca6d2fc53472a705773233c0e4c7a22957f71e41acdab27bb67f2ee0bb9023118a8d44312caa44adc1100503eec5d1ab8893e00cd356e65d8604364c2bd82e\",\"name\":\"fast-glob\",\"version\":\"3.3.3\"},\"fast-json-stringify-7.0.1.tgz\":{\"integrity\":\"eRSayARSbbwlBjpP4vnTTIRD5QPcIrmihPxDeN1DtKnHPg66UuJLx+8hlK1kaFdjvzyQ/dzALoi4vwAQ+T+iZA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"79149ac804526dbc25063a4fe2f9d34c8443e503dc22b9a284fc4378dd43b4a9c73e0eba52e24bc7ef2194ad64685763bf3c90fddcc02e88b8bf0010f93fa264\",\"name\":\"fast-json-stringify\",\"version\":\"7.0.1\"},\"fast-querystring-1.1.2.tgz\":{\"integrity\":\"g6KuKWmFXc0fID8WWH0jit4g0AGBoJhCkJMb1RmbsSEUNvQ+ZC8D6CUZ+GtF8nMzSPXnhiePyyqqipzNNEnHjg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"83a2ae2969855dcd1f203f16587d238ade20d00181a0984290931bd5199bb1211436f43e642f03e82519f86b45f2733348f5e786278fcb2aaa8a9ccd3449c78e\",\"name\":\"fast-querystring\",\"version\":\"1.1.2\"},\"fast-safe-stringify-2.1.1.tgz\":{\"integrity\":\"W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5be28973676620b94fa650ff1f82bd97d2dc00701f3ed3fa058f38b952d743a12f733f4b720df7636cf52156e54fac5d639e0f5d854712ffb45a9abc228eb390\",\"name\":\"fast-safe-stringify\",\"version\":\"2.1.1\"},\"fast-uri-3.1.5.tgz\":{\"integrity\":\"gHwA1O9LDIcKunMKhObS/HimwtehO1nPUECKAu5TpKgaO19fcWEl4bliWe1jWxVFvIXztJjjQ4L8XQ1EU9f7Jw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"807c00d4ef4b0c870aba730a84e6d2fc78a6c2d7a13b59cf50408a02ee53a4a81a3b5f5f716125e1b96259ed635b1545bc85f3b498e34382fc5d0d4453d7fb27\",\"name\":\"fast-uri\",\"version\":\"3.1.5\"},\"fast-uri-4.1.2.tgz\":{\"integrity\":\"TyGmBcbDTZXcb2cj5MV89DrF42DKvb3y5DDUNh95iO+IMeAzMkVSxK1PZRrRIpc9yg8U2GhGdbofNa0LS/a4Bw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4f21a605c6c34d95dc6f6723e4c57cf43ac5e360cabdbdf2e430d4361f7988ef8831e033324552c4ad4f651ad122973dca0f14d8684675ba1f35ad0b4bf6b807\",\"name\":\"fast-uri\",\"version\":\"4.1.2\"},\"fastify-5.12.0.tgz\":{\"integrity\":\"A3RNEaDIHWaxFW8n8rNJaW1wQ+XAXuoU71llfUQJjuh5WaYLmKfRhhanaJBOx8m2EBPQkR6sDBovYdHNe9F6rA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"03744d11a0c81d66b1156f27f2b349696d7043e5c05eea14ef59657d44098ee87959a60b98a7d18616a768904ec7c9b61013d0911eac0c1a2f61d1cd7bd17aac\",\"name\":\"fastify\",\"version\":\"5.12.0\"},\"fastify-plugin-6.0.0.tgz\":{\"integrity\":\"fZOty7z3O7vOliF6d8bHE3wiEh1KcNnKEQensSgTk9C1DvN6nRLS++XVd86v33Hw/8u9Un8A1zDrQ8ujcQDHEg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7d93adcbbcf73bbbce96217a77c6c7137c22121d4a70d9ca1107a7b1281393d0b50ef37a9d12d2fbe5d577ceafdf71f0ffcbbd527f00d730eb43cba37100c712\",\"name\":\"fastify-plugin\",\"version\":\"6.0.0\"},\"fastq-1.20.1.tgz\":{\"integrity\":\"GGToxJ/w1x32s/D2EKND7kTil4n8OVk/9mycTc4VDza13lOvpUZTGX3mFSCtV9ksdGBVzvsyAVLM6mHFThxXxw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1864e8c49ff0d71df6b3f0f610a343ee44e29789fc39593ff66c9c4dce150f36b5de53afa54653197de61520ad57d92c746055cefb320152ccea61c54e1c57c7\",\"name\":\"fastq\",\"version\":\"1.20.1\"},\"fdir-6.5.0.tgz\":{\"integrity\":\"tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b486d8b596ee70eb340511aa3c992c84951874bf920c7edd54cf208f2f84469dd60148cb105244fb4da46a7c87b708d63a7c2b298062c0098cd29e242c90275e\",\"name\":\"fdir\",\"version\":\"6.5.0\"},\"fetch-blob-3.2.0.tgz\":{\"integrity\":\"7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ef2010a43d94309ccb8b50eabfba856273db68fc7b65f14ae8f888c50e0f7e418fc8dca5d94831f9afee994a2798aaa384ce039df6ccbdd5faa2d5eaf37b2841\",\"name\":\"fetch-blob\",\"version\":\"3.2.0\"},\"figures-6.1.0.tgz\":{\"integrity\":\"d+l3qxjSesT4V7v2fh+QnmFnUWv9lSpjarhShNTgBOfA0ttejbQUAlHLitbjkoRiDulW0OPoQPYIGhIC8ohejg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"77e977ab18d27ac4f857bbf67e1f909e6167516bfd952a636ab85284d4e004e7c0d2db5e8db4140251cb8ad6e39284620ee956d0e3e840f6081a1202f2885e8e\",\"name\":\"figures\",\"version\":\"6.1.0\"},\"file-uri-to-path-1.0.0.tgz\":{\"integrity\":\"0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d19b7eb372fb55fd5b8b0599dbd6804625582f1ee23069c4525f71df77db07f8f78d1f35bbf3b62dba8af819b508348d0ca56d27f623c18ed351de5291e2d02f\",\"name\":\"file-uri-to-path\",\"version\":\"1.0.0\"},\"filelist-1.0.6.tgz\":{\"integrity\":\"5giy2PkLYY1cP39p17Ech+2xlpTRL9HLspOfEgm0L6CwBXBTgsK5ou0JtzYuepxkaQ/tvhCFIJ5uXo0OrM2DxA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e608b2d8f90b618d5c3f7f69d7b11c87edb19694d12fd1cbb2939f1209b42fa0b005705382c2b9a2ed09b7362e7a9c64690fedbe1085209e6e5e8d0eaccd83c4\",\"name\":\"filelist\",\"version\":\"1.0.6\"},\"fill-range-7.1.1.tgz\":{\"integrity\":\"YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"62c1a97b75872caf19622e2d583836272dde6d1cf6ad7a300f19e57786e4401d3471cff5670f405a70b48bdced0c98ad8afb50bda23d29a2f22ab73e8415b4ca\",\"name\":\"fill-range\",\"version\":\"7.1.1\"},\"finalhandler-2.1.1.tgz\":{\"integrity\":\"S8KoZgRZN+a5rNwqTxlZZePjT/4cnm0ROV70LedRHZ0p8u9fRID0hJUZQpkKLzro8LfmC8sx23bY6tVNxv8pQA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4bc2a866045937e6b9acdc2a4f195965e3e34ffe1c9e6d11395ef42de7511d9d29f2ef5f4480f484951942990a2f3ae8f0b7e60bcb31db76d8ead54dc6ff2940\",\"name\":\"finalhandler\",\"version\":\"2.1.1\"},\"find-my-way-9.8.0.tgz\":{\"integrity\":\"JtyUgATO7qxRp2zKhrmWof74Mqxc1ikbwpwMY97p8ipuTj2QtreA4gK2JNAF6SOqqHnYYkwMUvsgQVi2AJxIyw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"26dc948004ceeeac51a76cca86b996a1fef832ac5cd6291bc29c0c63dee9f22a6e4e3d90b6b780e202b624d005e923aaa879d8624c0c52fb204158b6009c48cb\",\"name\":\"find-my-way\",\"version\":\"9.8.0\"},\"find-up-3.0.0.tgz\":{\"integrity\":\"1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d720fa4662c8d5705fc6e82f391c25724e9fef9b582fe891d23ab0b0eacec4c672198a94b83849d25e005dd3b5897fc54ecf5c040304935816484c759126f296\",\"name\":\"find-up\",\"version\":\"3.0.0\"},\"form-data-4.0.6.tgz\":{\"integrity\":\"vKatAh4SlVfgbv+YtmhiRjhEMJsYpsG1Y2rMQtR+SVSbytsSD1YGzDIcrAJmdFec88u/+VoGmxnl+80gL1tRCQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"bca6ad021e129557e06eff98b66862463844309b18a6c1b5636acc42d47e49549bcadb120f5606cc321cac026674579cf3cbbff95a069b19e5fbcd202f5b5109\",\"name\":\"form-data\",\"version\":\"4.0.6\"},\"formdata-polyfill-4.0.10.tgz\":{\"integrity\":\"buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6ee7b01f332f60bdbd8dd7904d520b79c49a64a9edfd12568e8642179396eb467aeff1a648b06438533baa1d4f237cc536d25b6992f9790bb5bcb7daccec23e2\",\"name\":\"formdata-polyfill\",\"version\":\"4.0.10\"},\"forwarded-0.2.0.tgz\":{\"integrity\":\"buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6ee446d1fa41b511d24c238049eea10f6e7cb44b9b16844b6f864d03a3713151cdc3680e7301e8f70c9a6e5ccccce039cfdc40f4bd4a36393f36de8c4fd698a3\",\"name\":\"forwarded\",\"version\":\"0.2.0\"},\"fresh-2.0.0.tgz\":{\"integrity\":\"Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"471fd6c9c67ad0739aa8b2808ba70744a288ef3c566c9df53219ed9adc0ca1a4de17b5c51fd861069f2f21368c89d7e58d143a7985822a46932beca45491cfd8\",\"name\":\"fresh\",\"version\":\"2.0.0\"},\"fs-extra-10.1.0.tgz\":{\"integrity\":\"oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a115c0a6ae78113463e1e3221731a71d61b2fb3a39adab9d8eec4dd1bf07eecfd1536a16d16becc7d3b400244dfe446af44f15bbf45eb24181e68de38be1731d\",\"name\":\"fs-extra\",\"version\":\"10.1.0\"},\"fs-extra-11.3.1.tgz\":{\"integrity\":\"eXvGGwZ5CL17ZSwHWd3bbgk7UUpF6IFHtP57NYYakPvHOs8GDgDe5KJI36jIJzDkJ6eJjuzRA8eBQb6SkKue0g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"797bc61b067908bd7b652c0759dddb6e093b514a45e88147b4fe7b35861a90fbc73acf060e00dee4a248dfa8c82730e427a7898eecd103c78141be9290ab9ed2\",\"name\":\"fs-extra\",\"version\":\"11.3.1\"},\"fs-extra-11.4.0.tgz\":{\"integrity\":\"EQsFzMUJkCKGr1ePqlYADkIUmHW1s3ZXr5Yqy6wbGrfUCphpl2maM/kyOIRA2HpP3AaFQTZXD4ldjek+nccddA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"110b05ccc509902286af578faa56000e42149875b5b37657af962acbac1b1ab7d40a986997699a33f932388440d87a4fdc06854136570f895d8de93e9dc71d74\",\"name\":\"fs-extra\",\"version\":\"11.4.0\"},\"fs-extra-7.0.1.tgz\":{\"integrity\":\"YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6090da0896449c199c6f0d777ef74033d03034e2703b3ac4e29a8ca81ab99c5884a9752a1f094ae01fb7a54c3a24dbdf48fb57d39c451ed632ff59e2d357860b\",\"name\":\"fs-extra\",\"version\":\"7.0.1\"},\"fs-extra-8.1.0.tgz\":{\"integrity\":\"yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ca1950800ea69ce25428eb11505b2025d402be42a1733f2d9591b91c141f45e619cb8e8ec0b718f9989ad26b5d1ec3a8f72fe13fe0b130dd1353d431a0eb46e2\",\"name\":\"fs-extra\",\"version\":\"8.1.0\"},\"fs-extra-9.1.0.tgz\":{\"integrity\":\"hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"85c8376667a94b7d3fec1485a91be8a370ce310bbb223ab13b99c20edfb333d5d68dbdf75a0ef388d4fe42fa9bb9cdfe816a733b4d89b9b5729361b866fa3539\",\"name\":\"fs-extra\",\"version\":\"9.1.0\"},\"fs.realpath-1.0.0.tgz\":{\"integrity\":\"OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"38ed291f694ae9ad2166701d6aee48b731cf23aa5496f23b8cc567c54411b70e28c05db093c94e49a6ed1830933f81a0ae0d8c6c69d63bd5fc2b5b78f9f18c0f\",\"name\":\"fs.realpath\",\"version\":\"1.0.0\"},\"fsevents-2.3.2.tgz\":{\"integrity\":\"xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c62a8c411e3101e1d3b81f6e5a6f9f1517083a02813223813fe7978b24fb8ec8150aad5b915ca0b74d28012a3007b11db6938769a3e02adf35d8ff5a6fe0c328\",\"name\":\"fsevents\",\"version\":\"2.3.2\"},\"fsevents-2.3.3.tgz\":{\"integrity\":\"5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e71a037d7f9f2fb7da0139da82658fa5b16dc21fd1efb5a630caaa1c64bae42defbc1d181eb805f81d58999df8e35b4c8f99fade4d36d765cda09c339617df43\",\"name\":\"fsevents\",\"version\":\"2.3.3\"},\"function-bind-1.1.2.tgz\":{\"integrity\":\"7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ed71cdc47eea5fdc46e66230c6486e993a31fcc21135c3a00ebc56b0cb76a40af6dd61e9e8cad194dec50521690a9afea153b417be38894811f369c931f1b648\",\"name\":\"function-bind\",\"version\":\"1.1.2\"},\"fuzzysort-3.1.0.tgz\":{\"integrity\":\"sR9BNCjBg6LNgwvxlBd0sBABvQitkLzoVY9MYYROQVX/FvfJ4Mai9LsGhDgd8qYdds0bY77VzYd5iuB+v5rwQQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b11f413428c183a2cd830bf1941774b01001bd08ad90bce8558f4c61844e4155ff16f7c9e0c6a2f4bb0684381df2a61d76cd1b63bed5cd87798ae07ebf9af041\",\"name\":\"fuzzysort\",\"version\":\"3.1.0\"},\"gensync-1.0.0-beta.2.tgz\":{\"integrity\":\"3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"de137b35ab2462f3032d0639e609d6dcd43e99eb0401ea53aa583e5446e3ef3cea10c055361cdc19861ea85a3f4e5633e9e42215ca751dcb0264efa71a04bcce\",\"name\":\"gensync\",\"version\":\"1.0.0-beta.2\"},\"get-caller-file-2.0.5.tgz\":{\"integrity\":\"DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0f214fdc133fdd81d340e0942ffc343991d1d25a4a786af1a2d70759ca8d11d9e5b6a1705d57e110143de1e228df801f429a34ac6922e1cc8889fb58d3a87616\",\"name\":\"get-caller-file\",\"version\":\"2.0.5\"},\"get-east-asian-width-1.6.0.tgz\":{\"integrity\":\"QRbvDIbx6YklUe6RxeTeleMR0yv3cYH6PsPZHcnVn7xv7zO1BHN8r0XETu8n6Ye3Q+ahtSarc3WgtNWmehIBfA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4116ef0c86f1e9892551ee91c5e4de95e311d32bf77181fa3ec3d91dc9d59fbc6fef33b504737caf45c44eef27e987b743e6a1b526ab7375a0b4d5a67a12017c\",\"name\":\"get-east-asian-width\",\"version\":\"1.6.0\"},\"get-intrinsic-1.3.0.tgz\":{\"integrity\":\"9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f5f4a349aa2cfdf448548a7ec5226513a95fc21112ecb36d29a08121a987b23af69dad418800493e8d263a38f3f062435116ab9823c6a9a89583999f8dbf7c09\",\"name\":\"get-intrinsic\",\"version\":\"1.3.0\"},\"get-nonce-1.0.1.tgz\":{\"integrity\":\"FJhYRoDaiatfEkUK8HKlicmu/3SGFD51q3itKDGoSTysQJBnfOcxU5GxnhE1E6soB76MbT0MBtnKJuXyAx+96Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1498584680da89ab5f12450af072a589c9aeff7486143e75ab78ad2831a8493cac4090677ce7315391b19e113513ab2807be8c6d3d0c06d9ca26e5f2031fbde9\",\"name\":\"get-nonce\",\"version\":\"1.0.1\"},\"get-own-enumerable-keys-1.0.0.tgz\":{\"integrity\":\"PKsK2FSrQCyxcGHsGrLDcK0lx+0Ke+6e8KFFozA9/fIQLhQzPaRvJFdcz7+Axg3jUH/Mq+NI4xa5u/UT2tQskA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3cab0ad854ab402cb17061ec1ab2c370ad25c7ed0a7bee9ef0a145a3303dfdf2102e14333da46f24575ccfbf80c60de3507fccabe348e316b9bbf513dad42c90\",\"name\":\"get-own-enumerable-keys\",\"version\":\"1.0.0\"},\"get-proto-1.0.1.tgz\":{\"integrity\":\"sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b1349f063a17069f3d26f20a21e7eac3b53608279bb1cef892263a6b0886a202ada1219b823604fc6ffe97db05dcc5853cd73d21ca0e0b83837ca1dfc459a9d2\",\"name\":\"get-proto\",\"version\":\"1.0.1\"},\"get-stdin-10.0.0.tgz\":{\"integrity\":\"eWSePJ4zXFdqz+/Lyfopob4rIcoF/U2XfE8nJc7iZV6lnebWc9k7DoQQpX+2a9jc0AOvBsXvbe5YkjXl/MHbpg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"79649e3c9e335c576acfefcbc9fa29a1be2b21ca05fd4d977c4f2725cee2655ea59de6d673d93b0e8410a57fb66bd8dcd003af06c5ef6dee589235e5fcc1dba6\",\"name\":\"get-stdin\",\"version\":\"10.0.0\"},\"get-stream-5.2.0.tgz\":{\"integrity\":\"nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9c117e175ac06550aefe9eeb8f3800f986f895f617ae997b6ba56626b53cc05f48d422af3ff4303cd6479ce9706d3918e9dbed148cc5312c905db2e84d03d1a4\",\"name\":\"get-stream\",\"version\":\"5.2.0\"},\"get-stream-6.0.1.tgz\":{\"integrity\":\"ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b6ce968beda3de3423aa2ef4c3902537c0c59e44b00be32a9b113374400b076a976585775ff6f50937e03cb18934c7805b174f7d4f053b59acdcd51f68708f62\",\"name\":\"get-stream\",\"version\":\"6.0.1\"},\"get-stream-9.0.1.tgz\":{\"integrity\":\"kVCxPF3vQM/N0B1PmoqVUqgHP+EeVjmZSQn+1oCRPxd2P21P2F19lIgbR3HBosbB1PUhOAoctJnfEn2GbN2eZA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9150b13c5def40cfcdd01d4f9a8a9552a8073fe11e5639994909fed680913f17763f6d4fd85d7d94881b4771c1a2c6c1d4f521380a1cb499df127d866cdd9e64\",\"name\":\"get-stream\",\"version\":\"9.0.1\"},\"glob-13.0.6.tgz\":{\"integrity\":\"Wjlyrolmm8uDpm/ogGyXZXb1Z+Ca2B8NbJwqBVg0axK9GbBeoS7yGV6vjXnYdGm6X53iehEuxxbyiKp8QmN4Vw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5a3972ae89669bcb83a66fe8806c976576f567e09ad81f0d6c9c2a0558346b12bd19b05ea12ef2195eaf8d79d87469ba5f9de27a112ec716f288aa7c42637857\",\"name\":\"glob\",\"version\":\"13.0.6\"},\"glob-7.2.3.tgz\":{\"integrity\":\"nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9c5474ccba54d9809a471c28089bcbe94bc21f6245c85548bf04cbb087f6d40b8794cb240358614dd93e2e5609b4e958b7dbfa76fb330f604646a04bfa240af5\",\"name\":\"glob\",\"version\":\"7.2.3\"},\"glob-parent-5.1.2.tgz\":{\"integrity\":\"AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"00e22049009ea62258c0fdc04671b1fb95674eed870587736c63f8e5e2f0d6faf7cc1def64b7b279dd6c0bd8676dc39cf7f4ab33233944f42b906cf8692f59a3\",\"name\":\"glob-parent\",\"version\":\"5.1.2\"},\"global-agent-3.0.0.tgz\":{\"integrity\":\"PT6XReJ+D07JvGoxQMkT6qji/jVNfX/h364XHZOWeRzy64sSFr+xJ5OX7LI3b4MPQzdL4H8Y8M0xzPpsVMwA8Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3d3e9745e27e0f4ec9bc6a3140c913eaa8e2fe354d7d7fe1dfae171d9396791cf2eb8b1216bfb1279397ecb2376f830f43374be07f18f0cd31ccfa6c54cc00f1\",\"name\":\"global-agent\",\"version\":\"3.0.0\"},\"globalthis-1.0.4.tgz\":{\"integrity\":\"DpLKbNU4WylpxJykQujfCcwYWiV/Jhm50Goo0wrVILAv5jOr9d+H+UR3PhSCD2rCCEIg0uc+G+muBTwD54JhDQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0e92ca6cd5385b2969c49ca442e8df09cc185a257f2619b9d06a28d30ad520b02fe633abf5df87f944773e14820f6ac2084220d2e73e1be9ae053c03e782610d\",\"name\":\"globalthis\",\"version\":\"1.0.4\"},\"gopd-1.2.0.tgz\":{\"integrity\":\"ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"65429187afe4505a0089302d4d83d9277870f70371c7e04804e8a39e51bd3e7ac9b027128ecd70cb20fabc9a5a62d827cc3aca6114aa7f738ee917daf77c6c46\",\"name\":\"gopd\",\"version\":\"1.2.0\"},\"got-11.8.6.tgz\":{\"integrity\":\"6tfZ91bOr7bOXnK7PRDCGBLa1H4U080YHNaAQ2KsMGlLEzRbk44nsZF2E1IeRc3vtJHPVbKCYgdFbaGO2ljd8g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ead7d9f756ceafb6ce5e72bb3d10c21812dad47e14d3cd181cd6804362ac30694b13345b938e27b1917613521e45cdefb491cf55b2826207456da18eda58ddf2\",\"name\":\"got\",\"version\":\"11.8.6\"},\"graceful-fs-4.2.11.tgz\":{\"integrity\":\"RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"45b279fe398570d342703579a3d7939c12c9fc7b33595d0fef76dcf857f89d2feb263f98692e881b288e2f45680585fe9755ab97793ade1fcaac7fa7849d17bd\",\"name\":\"graceful-fs\",\"version\":\"4.2.11\"},\"has-flag-4.0.0.tgz\":{\"integrity\":\"EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1329094ff4352a34d672da698080207d23b4b4a56e6548e180caf5ee4a93ba6325e807efdc421295e53ba99533a170c54c01d30c2e0d3a81bf67153712f94c3d\",\"name\":\"has-flag\",\"version\":\"4.0.0\"},\"has-property-descriptors-1.0.2.tgz\":{\"integrity\":\"55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e7924d2ae216fafab829ed418ce4e333661cb5022f093ec61731f099f64f1a8e709eb82489dd1842d9c095e152aae9999b86b3de7d814be7ab6f2e62a49760ae\",\"name\":\"has-property-descriptors\",\"version\":\"1.0.2\"},\"has-symbols-1.1.0.tgz\":{\"integrity\":\"1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d5c0cd77027625aa2199bdec8383a629a301c2e0b8f2c6278b91d4c360efb02f0b8c64cb2bd87e79bd57e91cae3877b8853d142c25baf22a26863528294aa53d\",\"name\":\"has-symbols\",\"version\":\"1.1.0\"},\"has-tostringtag-1.0.2.tgz\":{\"integrity\":\"NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"36a00307c5633c52ccd95d15bc751ec30c2cc3465605a21d828fa2787b4ade16ac2f3e2a78246361ca9f07a010ac182044aa69285f0be76fd5a9d56c3b8ec397\",\"name\":\"has-tostringtag\",\"version\":\"1.0.2\"},\"hasown-2.0.4.tgz\":{\"integrity\":\"T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4f651b7db044177db089ea5722c3254d6f7e743602eb0321fedfef600e2db8e30aa96cff9f7bebd4d152c508b23fece4da65eca0c03f8bfeea57a2cabadd6dd4\",\"name\":\"hasown\",\"version\":\"2.0.4\"},\"help-me-5.0.0.tgz\":{\"integrity\":\"7xgomUX6ADmcYzFik0HzAxh/73YlKR9bmFzf51CZwR+b6YtzU2m0u49hQCqV6SvlqIqsaxovfwdvbnsw3b/zpg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ef18289945fa00399c6331629341f303187fef7625291f5b985cdfe75099c11f9be98b735369b4bb8f61402a95e92be5a88aac6b1a2f7f076f6e7b30ddbff3a6\",\"name\":\"help-me\",\"version\":\"5.0.0\"},\"hono-4.13.2.tgz\":{\"integrity\":\"JydRilDRkYBQMt9qR9U92mXxmbGqsqSn/IKOrh4e7/gEbn+0zSr8igTu0obwJoNGN4sez28DIql7FBHWydoJpA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2727518a50d191805032df6a47d53dda65f199b1aab2a4a7fc828eae1e1eeff8046e7fb4cd2afc8a04eed286f0268346378b1ecf6f0322a97b1411d6c9da09a4\",\"name\":\"hono\",\"version\":\"4.13.2\"},\"hosted-git-info-4.1.0.tgz\":{\"integrity\":\"kyCuEOWjJqZuDbRHzL8V93NzQhwIB71oFWSyzVo+KPZI+pnQPPxucdkrOZvkLRnrf5URsQM+IJ09Dw29cRALIA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9320ae10e5a326a66e0db447ccbf15f77373421c0807bd681564b2cd5a3e28f648fa99d03cfc6e71d92b399be42d19eb7f9511b1033e209d3d0f0dbd71100b20\",\"name\":\"hosted-git-info\",\"version\":\"4.1.0\"},\"html-encoding-sniffer-6.0.0.tgz\":{\"integrity\":\"CV9TW3Y3f8/wT0BRFc1/KAVQ3TUHiXmaAb6VW9vtiMFf7SLoMd1PdAc4W3KFOFETBJUb90KatHqlsZMWV+R9Gg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"095f535b76377fcff04f405115cd7f280550dd350789799a01be955bdbed88c15fed22e831dd4f7407385b728538511304951bf7429ab47aa5b1931657e47d1a\",\"name\":\"html-encoding-sniffer\",\"version\":\"6.0.0\"},\"html-escaper-2.0.2.tgz\":{\"integrity\":\"H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1f688cb5dd08e0cb7979889aa517480e3a7e5f37a55d0d2d144e094bb605c057af5d73263a9f66c8dad4bc28340fac2cf22aa444f05f28781bc228354a694b7e\",\"name\":\"html-escaper\",\"version\":\"2.0.2\"},\"html-parse-stringify-4.0.1.tgz\":{\"integrity\":\"0zHsZJrK7S3K2aucXWL6ycoYJ/iNtIcFHC/nYQgFklPtrv5LpJctIiSCroWZWeuoXvuyFdzp6KzjJQ+OT5MfFw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d331ec649acaed2dcad9ab9c5d62fac9ca1827f88db487051c2fe76108059253edaefe4ba4972d222482ae859959eba85efbb215dce9e8ace3250f8e4f931f17\",\"name\":\"html-parse-stringify\",\"version\":\"4.0.1\"},\"http-cache-semantics-4.2.0.tgz\":{\"integrity\":\"dTxcvPXqPvXBQpq5dUr6mEMJX4oIEFv6bwom3FDwKRDsuIjjJGANqhBuoAn9c1RQJIdAKav33ED65E2ys+87QQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"753c5cbcf5ea3ef5c1429ab9754afa9843095f8a08105bfa6f0a26dc50f02910ecb888e324600daa106ea009fd73545024874029abf7dc40fae44db2b3ef3b41\",\"name\":\"http-cache-semantics\",\"version\":\"4.2.0\"},\"http-errors-2.0.1.tgz\":{\"integrity\":\"4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e056d17405fe6d2766a3801416e4b458d88fcfc36016dfabf138603569a5ae3423b7543b651f7ecd395c7b6f39f71e0a497af022c69e4ea0e82909ad3fca4b99\",\"name\":\"http-errors\",\"version\":\"2.0.1\"},\"http-proxy-agent-7.0.2.tgz\":{\"integrity\":\"T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4f58240226180d6631dd5e419b2bbb1dc7dcbcbee652b4d688ceb239f6b73c8a6156227f8053dbbe2750faf7aa48e1dc8bf3f105c0da6de50d0b3a4e3832598a\",\"name\":\"http-proxy-agent\",\"version\":\"7.0.2\"},\"http2-wrapper-1.0.3.tgz\":{\"integrity\":\"V+23sDMr12Wnz7iTcDeJr3O6AIxlnvT/bmaAAAP/Xda35C90p9599p0F1eHR/N1KILWSoWVAiOMFjBBXaXSMxg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"57edb7b0332bd765a7cfb893703789af73ba008c659ef4ff6e66800003ff5dd6b7e42f74a7de7df69d05d5e1d1fcdd4a20b592a1654088e3058c105769748cc6\",\"name\":\"http2-wrapper\",\"version\":\"1.0.3\"},\"https-proxy-agent-7.0.6.tgz\":{\"integrity\":\"vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"bcaf4fe7f8947dd97de4023e255c94b88715b5de287efb6b3abdc736d336cb10bd6e731b11da77c74d4e8503678dbf082588b7f159531379815f071fbf2c2e4b\",\"name\":\"https-proxy-agent\",\"version\":\"7.0.6\"},\"human-signals-2.1.0.tgz\":{\"integrity\":\"B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"07814567aabf4f68e1864b2091b116dc706f5887c35bce6c9e44206b0b74ed2ec9e505d393a064355fb4c80799acce50a4c01d625a1c1a89639f4b09fd642417\",\"name\":\"human-signals\",\"version\":\"2.1.0\"},\"human-signals-8.0.1.tgz\":{\"integrity\":\"eKCa6bwnJhvxj14kZk5NCPc6Hb6BdsU9DZcOnmQKSnO1VKrfV0zCvtttPZUsBvjmNDn8rpcJfpwSYnHBjc95MQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"78a09ae9bc27261bf18f5e24664e4d08f73a1dbe8176c53d0d970e9e640a4a73b554aadf574cc2bedb6d3d952c06f8e63439fcae97097e9c126271c18dcf7931\",\"name\":\"human-signals\",\"version\":\"8.0.1\"},\"i18next-26.3.6.tgz\":{\"integrity\":\"Bu5Z2nAXgfVyM8xvW3jk9EKRIuX37PudsrBViThNFx7CR7aaYTpP01cxNB/E4c4UUzTDiAZRstEhsRfPOL/8xA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"06ee59da701781f57233cc6f5b78e4f4429122e5f7ecfb9db2b05589384d171ec247b69a613a4fd35731341fc4e1ce145334c3880651b2d121b117cf38bffcc4\",\"name\":\"i18next\",\"version\":\"26.3.6\"},\"iconv-lite-0.7.3.tgz\":{\"integrity\":\"IKXpvIzjnC9XTAUbVBcMfGS0EPaIXtW6v+zr+RRp+hqULEpo0owZax6wyRwPOJbWbzjYspQwusTsfVr0ifh4uQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"20a5e9bc8ce39c2f574c051b54170c7c64b410f6885ed5babfecebf91469fa1a942c4a68d28c196b1eb0c91c0f3896d66f38d8b29430bac4ec7d5af489f878b9\",\"name\":\"iconv-lite\",\"version\":\"0.7.3\"},\"ignore-5.3.2.tgz\":{\"integrity\":\"hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"86c053354a904c3c245ad71d608da2d3a63f9d4044b0d10324a8d676280bbde832f240ee2404bcb91969924710a721172f467fa630f2e4706632344227682afa\",\"name\":\"ignore\",\"version\":\"5.3.2\"},\"immer-11.1.17.tgz\":{\"integrity\":\"8Vu44Y0MuMBlTQz/jQ8HEMYNq/bBqk87MnBwYR5mC8AthfhEXidZ5aT/oA/CUqboa8THKltnD9L3xyqhU/Sy1Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f15bb8e18d0cb8c0654d0cff8d0f0710c60dabf6c1aa4f3b327070611e660bc02d85f8445e2759e5a4ffa00fc252a6e86bc4c72a5b670fd2f7c72aa153f4b2d5\",\"name\":\"immer\",\"version\":\"11.1.17\"},\"import-fresh-3.3.1.tgz\":{\"integrity\":\"TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4d1dca7eb4d94d82cf07a8d48dfc7a305f56716ac72fdb2ee5339b2b866462005d58a3ce1684a8408744b93b91f36a66b711f6b29586f61e9eb707ebd692c1a9\",\"name\":\"import-fresh\",\"version\":\"3.3.1\"},\"indent-string-4.0.0.tgz\":{\"integrity\":\"EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"11d0c366ee00d8ec882bb2ebff6cc6fb0e6399bba4d435419c4c11110bc1ceca412640846d16bc1b153596085871a1890a745689b8c35e5abbefd5f5ff2e71c2\",\"name\":\"indent-string\",\"version\":\"4.0.0\"},\"inflight-1.0.6.tgz\":{\"integrity\":\"k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"93dd88fdbd3cab8c2f16c71708bbea7ec1c2ae3ac5ef2897b10b8856f544ecdf365b7f9aaa9cee51d05b7e159ccbf159477ff82207e532028b3acbcf0eb18224\",\"name\":\"inflight\",\"version\":\"1.0.6\"},\"inherits-2.0.4.tgz\":{\"integrity\":\"k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"93fbc6697e3f6256b75b3c8c0af4d039761e207bea38ab67a8176ecd31e9ce9419cc0b2428c859d8af849c189233dcc64a820578ca572b16b8758799210a9ec1\",\"name\":\"inherits\",\"version\":\"2.0.4\"},\"internmap-2.0.3.tgz\":{\"integrity\":\"5Hh7Y1wQbvY5ooGgPbDaL5iYLAPzMTUrjMulskHLH6wnv/A+1q5rgEaiuqEjB+oxGXIVZs1FF+R/KPN3ZSQYYg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e4787b635c106ef639a281a03db0da2f98982c03f331352b8ccba5b241cb1fac27bff03ed6ae6b8046a2baa12307ea3119721566cd4517e47f28f37765241862\",\"name\":\"internmap\",\"version\":\"2.0.3\"},\"ip-address-10.5.0.tgz\":{\"integrity\":\"R5SnVLJmgYYvf2F2ZgwSBnelz5G4q5AxIC277GDfUaNbrZKNANcBC7RHqYYePlszf4kBolVkJauG0ZjHHFh55g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4794a754b26681862f7f6176660c120677a5cf91b8ab9031202dbbec60df51a35bad928d00d7010bb447a9861e3e5b337f8901a2556425ab86d198c71c5879e6\",\"name\":\"ip-address\",\"version\":\"10.5.0\"},\"ipaddr.js-1.9.1.tgz\":{\"integrity\":\"0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d0a23feb4ef1a31493a07ec68cdd457d26cba14d3e6ed4e2723b1049642587f859ca437c2a998c7fbb98c0f5b747e6a467a47fc35f199574870585e26143cede\",\"name\":\"ipaddr.js\",\"version\":\"1.9.1\"},\"ipaddr.js-2.5.0.tgz\":{\"integrity\":\"aq+t5NAc+cS6rZQQVWC2x98CPqGtKKTMDd4Gaodv0wShnItdKg/51djkGJ1hqH+Oy0ivDftCbSLCQob8zso01w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6aafade4d01cf9c4baad94105560b6c7df023ea1ad28a4cc0dde066a876fd304a19c8b5d2a0ff9d5d8e4189d61a87f8ecb48af0dfb426d22c24286fcceca34d7\",\"name\":\"ipaddr.js\",\"version\":\"2.5.0\"},\"is-arrayish-0.2.1.tgz\":{\"integrity\":\"zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"cf3d3a4bcb74a33a035cc1beb9b7b6eb37824cd5dc2883c96498bc841ac5e227422e6b38086f50b4aeea065d5ba22e4e0f31698ecc1be493e61c26cca63698ce\",\"name\":\"is-arrayish\",\"version\":\"0.2.1\"},\"is-docker-2.2.1.tgz\":{\"integrity\":\"F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"17e8b604ab05ac7eba89a505734c280fcb0bcbc81eb64c13c2d3818efb39e82c780a024378a41ea9fcfcc0062249bf093a9ad68471f9a7becf6e6602bef52e5d\",\"name\":\"is-docker\",\"version\":\"2.2.1\"},\"is-docker-3.0.0.tgz\":{\"integrity\":\"eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7a58dc8040e5127b3fec05c5a2c0792bfda708ce0fec540f90673f0d62f2e6b985116bd96b21ab8a4d5df7f4086399c9e1ff58b15bc1900ea42691e7f6b21275\",\"name\":\"is-docker\",\"version\":\"3.0.0\"},\"is-extglob-2.1.1.tgz\":{\"integrity\":\"SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"49b29b00d90deb4dd58b88c466fe3d2de549327e321b0b1bcd9c28ac4a32122badb0dde725875b3b7eb37e1189e90103a4e6481640ed9eae494719af9778eca1\",\"name\":\"is-extglob\",\"version\":\"2.1.1\"},\"is-fullwidth-code-point-3.0.0.tgz\":{\"integrity\":\"zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"cf29a6e7ebbeb02b125b20fda8d69e8d5dc316f84229c94a762cd868952e1c0f3744b8dbee74ae1a775d0871afd2193e298ec130096c59e2b851e83a115e9742\",\"name\":\"is-fullwidth-code-point\",\"version\":\"3.0.0\"},\"is-glob-4.0.3.tgz\":{\"integrity\":\"xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c5e9526b21c7dfa66013b6568658bba56df884d6cd97c3a3bf92959a4243e2105d0f7b61f137e4f6f61ab0b33e99758e6611648197f184b4a7af046be1e9524a\",\"name\":\"is-glob\",\"version\":\"4.0.3\"},\"is-in-ssh-1.0.0.tgz\":{\"integrity\":\"jYa6Q9rH90kR1vKB6NM7qqd1mge3Fx4Dhw5TVlK1MUBqhEOuCagrEHMevNuCcbECmXZ0ThXkRm+Ymr51HwEPAw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8d86ba43dac7f74911d6f281e8d33baaa7759a07b7171e03870e535652b531406a8443ae09a82b10731ebcdb8271b1029976744e15e4466f989abe751f010f03\",\"name\":\"is-in-ssh\",\"version\":\"1.0.0\"},\"is-inside-container-1.0.0.tgz\":{\"integrity\":\"KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"28860b08226085f1d9c6a8d8044eeb132d0e06e4dde710874bbb47560bc22e4c7b4ad2286b1c0d5b784200b80452315f79193e306fd0c66a7fbed113105ded44\",\"name\":\"is-inside-container\",\"version\":\"1.0.0\"},\"is-interactive-2.0.0.tgz\":{\"integrity\":\"qP1vozQRI+BMOPcjFzrjXuQvdak2pHNUMZoeG2eRbiSqyvbEf/wQtEOTOX1guk6E3t36RkaqiSt8A/6YElNxLQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a8fd6fa3341123e04c38f723173ae35ee42f75a936a47354319a1e1b67916e24aacaf6c47ffc10b44393397d60ba4e84deddfa4646aa892b7c03fe981253712d\",\"name\":\"is-interactive\",\"version\":\"2.0.0\"},\"is-number-7.0.0.tgz\":{\"integrity\":\"41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e350a27e483a7bc4f2952a5db53a5e2d532abd20445734edb47bc4443ef8d7ea6767c00dbf4d34e0c44be3740a3c394af5c1af369e8d6566540656c65d8c719e\",\"name\":\"is-number\",\"version\":\"7.0.0\"},\"is-obj-2.0.0.tgz\":{\"integrity\":\"drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"76ba831b771b733c7110946839770e8ed769d49fe5ca9d66367d316b39d1b3cfa6b8186041cae76eca68c795f97cec341e73276df0f3be710c12da83109128f3\",\"name\":\"is-obj\",\"version\":\"2.0.0\"},\"is-obj-3.0.0.tgz\":{\"integrity\":\"IlsXEHOjtKhpN8r/tRFj2nDyTmHvcfNeu/nrRIcXE17ROeatXchkojffa1SpdqW4cr/Fj6QkEf/Gn4zf6KKvEQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"225b171073a3b4a86937caffb51163da70f24e61ef71f35ebbf9eb448717135ed139e6ad5dc864a237df6b54a976a5b872bfc58fa42411ffc69f8cdfe8a2af11\",\"name\":\"is-obj\",\"version\":\"3.0.0\"},\"is-plain-obj-4.1.0.tgz\":{\"integrity\":\"+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f8f822faf32e50d909c84c62301b792251683322a7af9ce127852ca73e7c58e841179428219905c8d1c86c102d1f0cd502093946d9dd54db0344deb5fe6983aa\",\"name\":\"is-plain-obj\",\"version\":\"4.1.0\"},\"is-potential-custom-element-name-1.0.1.tgz\":{\"integrity\":\"bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6c261e440dab5626ca65dfacdbadb98069c617fb7b0d2a83b3874fec2acb0359bb8ca5b3ea9a6cd0ba582c937c43ae07b663ca27586b3779f33cd28510a39489\",\"name\":\"is-potential-custom-element-name\",\"version\":\"1.0.1\"},\"is-promise-4.0.0.tgz\":{\"integrity\":\"hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"86fa6823a928ae124c9de8f6f3975283a9eed7e7babb1b3bcc6dc16009b96f2a83b2024d5b0c7333acfa8998808104784c9df42660533b0a99530dd69721f701\",\"name\":\"is-promise\",\"version\":\"4.0.0\"},\"is-regexp-3.1.0.tgz\":{\"integrity\":\"rbku49cWloU5bSMI+zaRaXdQHXnthP6DZ/vLnfdSKyL4zUzuWnomtOEiZZOd+ioQ+avFo/qau3KPTc7Fjy1uPA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"adb92ee3d7169685396d2308fb36916977501d79ed84fe8367fbcb9df7522b22f8cd4cee5a7a26b4e12265939dfa2a10f9abc5a3fa9abb728f4dcec58f2d6e3c\",\"name\":\"is-regexp\",\"version\":\"3.1.0\"},\"is-stream-2.0.1.tgz\":{\"integrity\":\"hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"845a222624e5eb79e7fa4b2d1c606d7b05922a740ba726f5e7928785e035977f6ebed3bd9d6228a75a77b9da8f71477fc5b17554b30ee27ece23aa7b45b9e00e\",\"name\":\"is-stream\",\"version\":\"2.0.1\"},\"is-stream-4.0.1.tgz\":{\"integrity\":\"Dnz92NInDqYckGEUJv689RbRiTSEHCQ7wOVeALbkOz999YpqT46yMRIGtSNl2iCL1waAZSx40+h59NV/EwzV/A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0e7cfdd8d2270ea61c90611426febcf516d18934841c243bc0e55e00b6e43b3f7df58a6a4f8eb2311206b52365da208bd70680652c78d3e879f4d57f130cd5fc\",\"name\":\"is-stream\",\"version\":\"4.0.1\"},\"is-unicode-supported-1.3.0.tgz\":{\"integrity\":\"43r2mRvz+8JRIKnWJ+3j8JtjRKZ6GmjzfaE/qiBJnikNnYv/6bagRJ1kUhNk8R5EX/GkobD+r+sfxCPJsiKBLQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e37af6991bf3fbc25120a9d627ede3f09b6344a67a1a68f37da13faa20499e290d9d8bffe9b6a0449d64521364f11e445ff1a4a1b0feafeb1fc423c9b222812d\",\"name\":\"is-unicode-supported\",\"version\":\"1.3.0\"},\"is-unicode-supported-2.1.0.tgz\":{\"integrity\":\"mE00Gnza5EEB3Ds0HfMyllZzbBrmLOX3vfWoj9A9PEnTfratQ/BcaJOuMhnkhjXvb2+FkY3VuHqtAGpTPmglFQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"984d341a7cdae44101dc3b341df3329656736c1ae62ce5f7bdf5a88fd03d3c49d37eb6ad43f05c6893ae3219e48635ef6f6f85918dd5b87aad006a533e682515\",\"name\":\"is-unicode-supported\",\"version\":\"2.1.0\"},\"is-wsl-2.2.0.tgz\":{\"integrity\":\"fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7cacc0adad2b18951407018180d90766e4e865c9fe4ed5c7a5e0a09a430930c631d6c40361a092ca32414826b69c7d431a6eecde7d68067a21a154c168decbc3\",\"name\":\"is-wsl\",\"version\":\"2.2.0\"},\"is-wsl-3.1.1.tgz\":{\"integrity\":\"e6rvdUCiQCAuumZslxRJWR/Doq4VpPR82kqclvcS0efgt430SlGIk05vdCN58+VrzgtIcfNODjozVielycD4Sw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7baaef7540a240202eba666c971449591fc3a2ae15a4f47cda4a9c96f712d1e7e0b78df44a5188934e6f742379f3e56bce0b4871f34e0e3a335627a5c9c0f84b\",\"name\":\"is-wsl\",\"version\":\"3.1.1\"},\"isarray-1.0.0.tgz\":{\"integrity\":\"VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"54b82121634ce842d0ce8ef3c26720d0d99357258a623bc878cf37ca3a74c110d39949eb33aefc7d06dc281a3a9f6089105d2cce81bfff2b60f932a56bcf402d\",\"name\":\"isarray\",\"version\":\"1.0.0\"},\"isbinaryfile-4.0.10.tgz\":{\"integrity\":\"iHrqe5shvBUcFbmZq9zOQHBoeOhZJu6RQGrDpBgenUm/Am+F3JM2MgQj+rK3Z601fzrL5gLZWtAPH2OBaSVcyw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"887aea7b9b21bc151c15b999abdcce40706878e85926ee91406ac3a4181e9d49bf026f85dc9336320423fab2b767ad357f3acbe602d95ad00f1f638169255ccb\",\"name\":\"isbinaryfile\",\"version\":\"4.0.10\"},\"isbinaryfile-5.0.7.tgz\":{\"integrity\":\"gnWD14Jh3FzS3CPhF0AxNOJ8CxqeblPTADzI38r0wt8ZyQl5edpy75myt08EG2oKvpyiqSqsx+Wkz9vtkbTqYQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"827583d78261dc5cd2dc23e117403134e27c0b1a9e6e53d3003cc8dfcaf4c2df19c9097979da72ef99b2b74f041b6a0abe9ca2a92aacc7e5a4cfdbed91b4ea61\",\"name\":\"isbinaryfile\",\"version\":\"5.0.7\"},\"isexe-2.0.0.tgz\":{\"integrity\":\"RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"447c4c2e9f659ca1c61d19e0f5016144231b600715a67ebdb2648672addfdfac638155564e18f8aaa2db4cb96aed2b23f01f9f210d44b8210623694ab3241e23\",\"name\":\"isexe\",\"version\":\"2.0.0\"},\"isexe-3.1.5.tgz\":{\"integrity\":\"6B3tLtFqtQS4ekarvLVMZ+X+VlvQekbe4taUkf/rhVO3d/h0M2rfARm/pXLcPEsjjMsFgrFgSrhQIxcSVrBz8w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e81ded2ed16ab504b87a46abbcb54c67e5fe565bd07a46dee2d69491ffeb8553b777f874336adf0119bfa572dc3c4b238ccb0582b1604ab85023171256b073f3\",\"name\":\"isexe\",\"version\":\"3.1.5\"},\"isexe-4.0.0.tgz\":{\"integrity\":\"FFUtZMpoZ8RqHS3XeXEmHWLA4thH+ZxCv2lOiPIn1Xc7CxrqhWzNSDzD+/chS/zbYezmiwWLdQC09JdQKmthOw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"14552d64ca6867c46a1d2dd77971261d62c0e2d847f99c42bf694e88f227d5773b0b1aea856ccd483cc3fbf7214bfcdb61ece68b058b7500b4f497502a6b613b\",\"name\":\"isexe\",\"version\":\"4.0.0\"},\"istanbul-lib-coverage-3.2.2.tgz\":{\"integrity\":\"O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3bc769b05fabd1657ff0c35129f9e6aed09686e2a3c6bab6c3e8e9cc12f95192938b62de5569d63a6591c4595eb0938d99cfb02c01af29064439a9e4a342c54e\",\"name\":\"istanbul-lib-coverage\",\"version\":\"3.2.2\"},\"istanbul-lib-report-3.0.1.tgz\":{\"integrity\":\"GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1827c4d66b6c1c63842c253c7bf67b616ce99b26ebc7ff9d4937cbaef63ca9199a63acd74ca5a7e964088da005c34ebd89c9ba19530d920bb437323888f65437\",\"name\":\"istanbul-lib-report\",\"version\":\"3.0.1\"},\"istanbul-reports-3.2.0.tgz\":{\"integrity\":\"HGYWWS/ehqTV3xN10i23tkPkpH46MLCIMFNCaaKNavAXTF1RkqxawEPtnjnGZ6XKSInBKkiOA5BKS+aZiY3AvA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1c6616592fde86a4d5df1375d22db7b643e4a47e3a30b08830534269a28d6af0174c5d5192ac5ac043ed9e39c667a5ca4889c12a488e03904a4be699898dc0bc\",\"name\":\"istanbul-reports\",\"version\":\"3.2.0\"},\"jake-10.9.4.tgz\":{\"integrity\":\"wpHYzhxiVQL+IV05BLE2Xn34zW1S223hvjtqk0+gsPrwd/8JNLXJgZZM/iPFsYc1xyphF+6M6EvdE5E9MBGkDA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c291d8ce1c625502fe215d3904b1365e7df8cd6d52db6de1be3b6a934fa0b0faf077ff0934b5c981964cfe23c5b18735c72a6117ee8ce84bdd13913d3011a40c\",\"name\":\"jake\",\"version\":\"10.9.4\"},\"jiti-2.7.0.tgz\":{\"integrity\":\"AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"002ffb2687c9bd91abae779635a12725e38b531f89946b7bb4d6b4c198913d3e0c635c267ca8eddbee8eda9daecf6fac92597c39966624c36a7a47bb90a6cd81\",\"name\":\"jiti\",\"version\":\"2.7.0\"},\"jose-6.2.9.tgz\":{\"integrity\":\"XrchZOFZUl/T3vTwRe8XK+cJrGtMF4th1ARnDfwbBXFKThGhlsxEE4Zu03AD/bjJSt/9jT/mxrOCkJWOg77aPA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5eb72164e159525fd3def4f045ef172be709ac6b4c178b61d404670dfc1b05714a4e11a196cc4413866ed37003fdb8c94adffd8d3fe6c6b38290958e83beda3c\",\"name\":\"jose\",\"version\":\"6.2.9\"},\"joycon-3.1.1.tgz\":{\"integrity\":\"34wB/Y7MW7bzjKRjUKTa46I2Z7eV62Rkhva+KkopW7Qvv/OSWBqvkSY7vusOPrNuZcUG3tApvdVgNB8POj3SPw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"df8c01fd8ecc5bb6f38ca46350a4dae3a23667b795eb646486f6be2a4a295bb42fbff392581aaf91263bbeeb0e3eb36e65c506ded029bdd560341f0f3a3dd23f\",\"name\":\"joycon\",\"version\":\"3.1.1\"},\"js-tokens-10.0.0.tgz\":{\"integrity\":\"lM/UBzQmfJRo9ABXbPWemivdCW8V2G8FHaHdypQaIy523snUjog0W71ayWXTjiR+ixeMyVHN2XcpnTd/liPg/Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"94cfd40734267c9468f400576cf59e9a2bdd096f15d86f051da1ddca941a232e76dec9d48e88345bbd5ac965d38e247e8b178cc951cdd977299d377f9623e0fd\",\"name\":\"js-tokens\",\"version\":\"10.0.0\"},\"js-tokens-4.0.0.tgz\":{\"integrity\":\"RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"45d2547e5704ddc5332a232a420b02bb4e853eef5474824ed1b7986cf84737893a6a9809b627dca02b53f5b7313a9601b690f690233a49bce0e026aeb16fcf29\",\"name\":\"js-tokens\",\"version\":\"4.0.0\"},\"js-yaml-4.3.1.tgz\":{\"integrity\":\"CY6crGq313MX8GkwvB7tzgp99vjQxY1++5y10/BKN/GUfHqWaOGQMNZkBvqSzsZKWk/ijwHlWzzkLulsGHhjWQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"098e9cac6ab7d77317f06930bc1eedce0a7df6f8d0c58d7efb9cb5d3f04a37f1947c7a9668e19030d66406fa92cec64a5a4fe28f01e55b3ce42ee96c18786359\",\"name\":\"js-yaml\",\"version\":\"4.3.1\"},\"js-yaml-5.3.0.tgz\":{\"integrity\":\"muutsYr+e2+d3rTgUGslq5rxbBlUy3cJ61IsHag2QNDQV+7zXWjkUpmALIajhrlLlrgRUiymj6U3zUr/TMK84Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9aebadb18afe7b6f9ddeb4e0506b25ab9af16c1954cb7709eb522c1da83640d0d057eef35d68e45299802c86a386b94b96b811522ca68fa537cd4aff4cc2bce1\",\"name\":\"js-yaml\",\"version\":\"5.3.0\"},\"jsdom-30.0.1.tgz\":{\"integrity\":\"52v7mUVUfNQVYYqE1lcdaymWL0njO7lTLUog6ZvW2U5KsbiLk/GnZlVJ+qx0xfNJZ6Gn+KSpPNE52vurbxZwrA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e76bfb9945547cd415618a84d6571d6b29962f49e33bb9532d4a20e99bd6d94e4ab1b88b93f1a7665549faac74c5f34967a1a7f8a4a93cd139dafbab6f1670ac\",\"name\":\"jsdom\",\"version\":\"30.0.1\"},\"jsesc-3.1.0.tgz\":{\"integrity\":\"/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"fec33774ed853b35e3290849ba8d10d7bdf07f628ea3cb7823cbc7cba945f69a14a7b6ca4f4fcd1c4f1f3d7db73f07e19f291faa70b6c51c4e9d5c395ee18868\",\"name\":\"jsesc\",\"version\":\"3.1.0\"},\"json-buffer-3.0.1.tgz\":{\"integrity\":\"4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e1b57905f4769aa7d04c99be579b4f3dd7fe669ba1888bd3b8007983c91cad7399a534ff430c15456072c17d68cebea512e3dd6c7c70689966f46ea6236b1f49\",\"name\":\"json-buffer\",\"version\":\"3.0.1\"},\"json-parse-even-better-errors-2.3.1.tgz\":{\"integrity\":\"xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c72170ca1ae8fc91287fa1a17b68b3d8d717a23dac96836c5abfd7b044432bfa223c27da36197938d7e9fa341d01945043420958dcc7f7321917b962f75921db\",\"name\":\"json-parse-even-better-errors\",\"version\":\"2.3.1\"},\"json-schema-ref-resolver-3.0.0.tgz\":{\"integrity\":\"hOrZIVL5jyYFjzk7+y7n5JDzGlU8rfWDuYyHwGa2WA8/pcmMHezp2xsVwxrebD/Q9t8Nc5DboieySDpCp4WG4A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"84ead92152f98f26058f393bfb2ee7e490f31a553cadf583b98c87c066b6580f3fa5c98c1dece9db1b15c31ade6c3fd0f6df0d7390dba227b2483a42a78586e0\",\"name\":\"json-schema-ref-resolver\",\"version\":\"3.0.0\"},\"json-schema-traverse-1.0.0.tgz\":{\"integrity\":\"NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"34cf3f3fd9f75e35e12199f594b86415a0024ce5114178d6855e0103f4673aff31be0aadaa9017f483b89914314b1d51968e2dab37aa6f4b0e96bb9a3b2dddba\",\"name\":\"json-schema-traverse\",\"version\":\"1.0.0\"},\"json-schema-typed-7.0.3.tgz\":{\"integrity\":\"7DE8mpG+/fVw+dTpjbxnx47TaMnDfOI1jwft9g1VybltZCduyRQPJPvc+zzKY9WPHxhPWczyFuYa6I8Mw4iU5A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ec313c9a91befdf570f9d4e98dbc67c78ed368c9c37ce2358f07edf60d55c9b96d64276ec9140f24fbdcfb3cca63d58f1f184f59ccf216e61ae88f0cc38894e4\",\"name\":\"json-schema-typed\",\"version\":\"7.0.3\"},\"json-schema-typed-8.0.2.tgz\":{\"integrity\":\"fQhoXdcvc3V28x7C7BMs4P5+kNlgUURe2jmUT1T//oBRMDrqy1QPelJimwZGo7Hg9VPV3EQV5Bnq4hbFy2vetA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7d08685dd72f737576f31ec2ec132ce0fe7e90d96051445eda39944f54fffe8051303aeacb540f7a52629b0646a3b1e0f553d5dc4415e419eae216c5cb6bdeb4\",\"name\":\"json-schema-typed\",\"version\":\"8.0.2\"},\"json-stringify-safe-5.0.1.tgz\":{\"integrity\":\"ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"642960e80698bda9af60413cd9ddc8c9ddef49222343ea1d823693cd1b8edeceeda0274529cce86f68b4cc287b244f245a7d7bcaf016854571bea1b051a96c44\",\"name\":\"json-stringify-safe\",\"version\":\"5.0.1\"},\"json5-2.2.3.tgz\":{\"integrity\":\"XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5e63967bb7b21d81f5e1c2dd54fa3283e18e1f7ad85fef8aa73af2949c125bdf2ddcd93e53c5ce97c15628e830b7375bf255c67facd8c035337873167f16acca\",\"name\":\"json5\",\"version\":\"2.2.3\"},\"jsonfile-4.0.0.tgz\":{\"integrity\":\"m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9ba175477cfc8e395fda29901d2d907b3e6c8ca590cdbbae86e27f14a605459bcf1373ee1dc48c559cdfb0b84654e91f776d286cbe5258405ec394a196ab8dc6\",\"name\":\"jsonfile\",\"version\":\"4.0.0\"},\"jsonfile-6.2.1.tgz\":{\"integrity\":\"zwOTdL3rFQ/lRdBnntKVOX6k5cKJwEc1HdilT71BWEu7J41gXIB2MRp+vxduPSwZJPWBxEzv4yH1wYLJGUHX4Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"cf039374bdeb150fe545d0679ed295397ea4e5c289c047351dd8a54fbd41584bbb278d605c8076311a7ebf176e3d2c1924f581c44cefe321f5c182c91941d7e1\",\"name\":\"jsonfile\",\"version\":\"6.2.1\"},\"keyv-4.5.4.tgz\":{\"integrity\":\"oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a3154790747f1097f608d5e75b144b5ba9a0ec9c82094706d03b441a62f672d528d4f3538a7d4f52297eafffb8af93295600bf7e7d648ecc7b9a34ae8caa88a7\",\"name\":\"keyv\",\"version\":\"4.5.4\"},\"kleur-3.0.3.tgz\":{\"integrity\":\"eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"793233955392511f89c5d0c57a911870132d67d42a75e7feae7cd675166e31b3b2c2ee6d3b6c3637baea8e800d67993dbf2c212fa06bd55463508813431e04f3\",\"name\":\"kleur\",\"version\":\"3.0.3\"},\"kleur-4.1.5.tgz\":{\"integrity\":\"o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a3e34efbc5ab462404138ffb9f044984dd475a9566266e75d690475313cbb69d015084b3941a653916129937250a726f42adad2aefec825df156991ced95ae41\",\"name\":\"kleur\",\"version\":\"4.1.5\"},\"lazy-val-1.0.5.tgz\":{\"integrity\":\"0/BnGCCfyUMkBpeDgWihanIAF9JmZhHBgUhEqzvf+adhNGLoP6TaiI5oF8oyb3I45P+PcnrqihSf01M0l0G5+Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d3f06718209fc943240697838168a16a720017d2666611c1814844ab3bdff9a7613462e83fa4da888e6817ca326f7238e4ff8f727aea8a149fd353349741b9f9\",\"name\":\"lazy-val\",\"version\":\"1.0.5\"},\"libsodium-0.8.4.tgz\":{\"integrity\":\"lMcYaRi0zcs7tarATsQUYC7rstliIXZuoq0c6zXSgNtSNtdvBgkSegjWhpMJAXzKX3SUSwIp7+zEsob+j3LuRw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"94c7186918b4cdcb3bb5aac04ec414602eebb2d96221766ea2ad1ceb35d280db5236d76f0609127a08d6869309017cca5f74944b0229efecc4b286fe8f72ee47\",\"name\":\"libsodium\",\"version\":\"0.8.4\"},\"libsodium-wrappers-0.8.4.tgz\":{\"integrity\":\"mu8aAWucZjTB5O/BtGXtW4e1agy7uHxNYG7zPthmmD1jU43LCDmSWZLN4JhflbdPXj3yDO4lxM1O9hLDgIOXDw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9aef1a016b9c6634c1e4efc1b465ed5b87b56a0cbbb87c4d606ef33ed866983d63538dcb0839925992cde0985f95b74f5e3df20cee25c4cd4ef612c38083970f\",\"name\":\"libsodium-wrappers\",\"version\":\"0.8.4\"},\"light-my-request-6.6.0.tgz\":{\"integrity\":\"CHYbu8RtboSIoVsHZ6Ye4cj4Aw/yg2oAFimlF7mNvfDV192LR7nDiKtSIfCuLT7KokPSTn/9kfVLm5OGN0A28A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"08761bbbc46d6e8488a15b0767a61ee1c8f8030ff2836a001629a517b98dbdf0d5d7dd8b47b9c388ab5221f0ae2d3ecaa243d24e7ffd91f54b9b9386374036f0\",\"name\":\"light-my-request\",\"version\":\"6.6.0\"},\"lightningcss-1.32.0.tgz\":{\"integrity\":\"NXYBzinNrblfraPGyrbPoD19C1h9lfI/1mzgWYvXUTe414Gz/X1FD2XBZSZM7rRTrMA8JL3OtAaGifrIKhQ5yQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"357601ce29cdadb95fada3c6cab6cfa03d7d0b587d95f23fd66ce0598bd75137b8d781b3fd7d450f65c165264ceeb453acc03c24bdceb4068689fac82a1439c9\",\"name\":\"lightningcss\",\"version\":\"1.32.0\"},\"lightningcss-1.33.0.tgz\":{\"integrity\":\"WkUDrojuJs0xkgGf2udWxa3yGBRxPtxUkB79i6aCZLRgc7PM8fZe9TosfPDcvEpQZbuFASnHYmRLBLUbmLOIIA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5a4503ae88ee26cd3192019fdae756c5adf21814713edc54901efd8ba68264b46073b3ccf1f65ef53a2c7cf0dcbc4a5065bb850129c762644b04b51b98b38820\",\"name\":\"lightningcss\",\"version\":\"1.33.0\"},\"lightningcss-android-arm64-1.32.0.tgz\":{\"integrity\":\"YK7/ClTt4kAK0vo6w3X+Pnm0D2cf2vPHbhOXdoNti1Ga0al1P4TBZhwjATvjNwLEBCnKvjJc2jQgHXH0NEwlAg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"60aeff0a54ede2400ad2fa3ac375fe3e79b40f671fdaf3c76e139776836d8b519ad1a9753f84c1661c23013be33702c40429cabe325cda34201d71f4344c2502\",\"name\":\"lightningcss-android-arm64\",\"version\":\"1.32.0\"},\"lightningcss-android-arm64-1.33.0.tgz\":{\"integrity\":\"gEpRTalKdosp4Bb8qWtc2iOgE5SeIHlpS1up9bFq2wAyYhl1UdTObYiHe98zEM9SQvSoqQZ1IQD0JNpg3Ml5pg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"804a514da94a768b29e016fca96b5cda23a013949e2079694b5ba9f5b16adb003262197551d4ce6d88877bdf3310cf5242f4a8a906752100f424da60dcc979a6\",\"name\":\"lightningcss-android-arm64\",\"version\":\"1.33.0\"},\"lightningcss-darwin-arm64-1.32.0.tgz\":{\"integrity\":\"RzeG9Ju5bag2Bv1/lwlVJvBE3q6TtXskdZLLCyfg5pt+HLz9BqlICO7LZM7VHNTTn/5PRhHFBSjk5lc4cmscPQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"473786f49bb96da83606fd7f97095526f044deae93b57b247592cb0b27e0e69b7e1cbcfd06a94808eecb64ced51cd4d39ffe4f4611c50528e4e65738726b1c3d\",\"name\":\"lightningcss-darwin-arm64\",\"version\":\"1.32.0\"},\"lightningcss-darwin-arm64-1.33.0.tgz\":{\"integrity\":\"Sciaz8eenNTKn9b3t7+xr0ipTp9YxKQY4npwQ3mrRuL0BAVHBLyZxofhaKBAVtzmtRZ/zTyo0/to4B1uWG/Djg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"49c89acfc79e9cd4ca9fd6f7b7bfb1af48a94e9f58c4a418e27a704379ab46e2f404054704bc99c687e168a04056dce6b5167fcd3ca8d3fb68e01d6e586fc38e\",\"name\":\"lightningcss-darwin-arm64\",\"version\":\"1.33.0\"},\"lightningcss-darwin-x64-1.32.0.tgz\":{\"integrity\":\"U+QsBp2m/s2wqpUYT/6wnlagdZbtZdndSmut/NJqlCcMLTWp5muCrID+K5UJ6jqD2BFshejCYXniPDbNh73V8w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"53e42c069da6fecdb0aa95184ffeb09e56a07596ed65d9dd4a6badfcd26a94270c2d35a9e66b82ac80fe2b9509ea3a83d8116c85e8c26179e23c36cd87bdd5f3\",\"name\":\"lightningcss-darwin-x64\",\"version\":\"1.32.0\"},\"lightningcss-darwin-x64-1.33.0.tgz\":{\"integrity\":\"Z5UPAxzrjlWNNyGy6i65cJzzvgJ5D3T6wMvs+gWpY9d7qRhANrxqAp6LhxIgZhWEw18RfJTGcRxjuLIBr+m8XQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"67950f031ceb8e558d3721b2ea2eb9709cf3be02790f74fac0cbecfa05a963d77ba9184036bc6a029e8b871220661584c35f117c94c6711c63b8b201afe9bc5d\",\"name\":\"lightningcss-darwin-x64\",\"version\":\"1.33.0\"},\"lightningcss-freebsd-x64-1.32.0.tgz\":{\"integrity\":\"JCTigedEksZk3tHTTthnMdVfGf61Fky8Ji2E4YjUTEQX14xiy/lTzXnu1vwiZe3bYe0q+SpsSH/CTeDXK6WHig==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2424e281e74492c664ded1d34ed86731d55f19feb5164cbc262d84e188d44c4417d78c62cbf953cd79eed6fc2265eddb61ed2af92a6c487fc24de0d72ba5878a\",\"name\":\"lightningcss-freebsd-x64\",\"version\":\"1.32.0\"},\"lightningcss-freebsd-x64-1.33.0.tgz\":{\"integrity\":\"QQM/Ti/hQajJwCY+RiWuCZ9sdtI/XQk7nDK5vC8kkdwixezOlDgvDx7+RT+QjK6FcFT4MpsuoBnHIo/O3StRRg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"41033f4e2fe141a8c9c0263e4625ae099f6c76d23f5d093b9c32b9bc2f2491dc22c5ecce94382f0f1efe453f908cae857054f8329b2ea019c7228fcedd2b5146\",\"name\":\"lightningcss-freebsd-x64\",\"version\":\"1.33.0\"},\"lightningcss-linux-arm-gnueabihf-1.32.0.tgz\":{\"integrity\":\"x6rnnpRa2GL0zQOkt6rts3YDPzduLpWvwAF6EMhXFVZXD4tPrBkEFqzGowzCsIWsPjqSK+tyNEODUBXeeVHSkw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c7aae79e945ad862f4cd03a4b7aaedb376033f376e2e95afc0017a10c8571556570f8b4fac190416acc6a30cc2b085ac3e3a922beb723443835015de7951d293\",\"name\":\"lightningcss-linux-arm-gnueabihf\",\"version\":\"1.32.0\"},\"lightningcss-linux-arm-gnueabihf-1.33.0.tgz\":{\"integrity\":\"N7FVBe6iS24MlM6R/4RBTxGhQheZGs7tiQ9U32UtF75NzP5Q7xWPRqLBCKxlRQRk3rY1jCIPLzx7WzOhuUIRLQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"37b15505eea24b6e0c94ce91ff84414f11a14217991aceed890f54df652d17be4dccfe50ef158f46a2c108ac65450464deb6358c220f2f3c7b5b33a1b942112d\",\"name\":\"lightningcss-linux-arm-gnueabihf\",\"version\":\"1.33.0\"},\"lightningcss-linux-arm64-gnu-1.32.0.tgz\":{\"integrity\":\"0nnMyoyOLRJXfbMOilaSRcLH3Jw5z9HDNGfT/gwCPgaDjnx0i8w7vBzFLFR1f6CMLKF8gVbebmkUN3fa/kQJpQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d279ccca8c8e2d12577db30e8a569245c2c7dc9c39cfd1c33467d3fe0c023e06838e7c748bcc3bbc1cc52c54757fa08c2ca17c8156de6e69143777dafe4409a5\",\"name\":\"lightningcss-linux-arm64-gnu\",\"version\":\"1.32.0\"},\"lightningcss-linux-arm64-gnu-1.33.0.tgz\":{\"integrity\":\"j2v/itmy4HlNxlc6voKXYgBqNi0Ng2LShg4z7GufpEgs05P+2suBVyi9I6YHq5uoVFx9ETin3eCEhLVyXGQnKg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8f6bff8ad9b2e0794dc6573abe829762006a362d0d8362d2860e33ec6b9fa4482cd393fedacb815728bd23a607ab9ba8545c7d1138a7dde08484b5725c64272a\",\"name\":\"lightningcss-linux-arm64-gnu\",\"version\":\"1.33.0\"},\"lightningcss-linux-arm64-musl-1.32.0.tgz\":{\"integrity\":\"UpQkoenr4UJEzgVIYpI80lDFvRmPVg6oqboNHfoH4CQIfNA+HOrZ7Mo7KZP02dC6LjghPQJeBsvXhJod/wnIBg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"529424a1e9ebe14244ce054862923cd250c5bd198f560ea8a9ba0d1dfa07e024087cd03e1cead9ecca3b2993f4d9d0ba2e38213d025e06cbd7849a1dff09c806\",\"name\":\"lightningcss-linux-arm64-musl\",\"version\":\"1.32.0\"},\"lightningcss-linux-arm64-musl-1.33.0.tgz\":{\"integrity\":\"yiO5ROMuYQgXbC60yjZU5CYSFZGKXL0HFATXt9mHJn1+zW55oCtMI9NfcVhYLMFDL7gV7oBPon/EmMMGg2OvtQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ca23b944e32e6108176c2eb4ca3654e4261215918a5cbd071404d7b7d987267d7ecd6e79a02b4c23d35f7158582cc1432fb815ee804fa27fc498c3068363afb5\",\"name\":\"lightningcss-linux-arm64-musl\",\"version\":\"1.33.0\"},\"lightningcss-linux-x64-gnu-1.32.0.tgz\":{\"integrity\":\"V7Qr52IhZmdKPVr+Vtw8o+WLsQJYCTd8loIfpDaMRWGUZfBOYEJeyJIkqGIDMZPwPx24pUMfwSxxI8phr/MbOA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"57b42be7622166674a3d5afe56dc3ca3e58bb1025809377c96821fa4368c45619465f04e60425ec89224a862033193f03f1db8a5431fc12c7123ca61aff31b38\",\"name\":\"lightningcss-linux-x64-gnu\",\"version\":\"1.32.0\"},\"lightningcss-linux-x64-gnu-1.33.0.tgz\":{\"integrity\":\"ar+Ju7LmcN0Jo4FpL4hpFybwNG9/3A/Br5KW2n2jyODg3MEZXaDYADdemoNS+BDNfMgKvylJLj4S5tyRActuAg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6abf89bbb2e670dd09a381692f88691726f0346f7fdc0fc1af9296da7da3c8e0e0dcc1195da0d800375e9a8352f810cd7cc80abf29492e3e12e6dc9101cb6e02\",\"name\":\"lightningcss-linux-x64-gnu\",\"version\":\"1.33.0\"},\"lightningcss-linux-x64-musl-1.32.0.tgz\":{\"integrity\":\"bYcLp+Vb0awsiXg/80uCRezCYHNg1/l3mt0gzHnWV9XP1W5sKa5/TCdGWaR/zBM2PeF/HbsQv/j2URNOiVuxWg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6d870ba7e55bd1ac2c89783ff34b8245ecc2607360d7f9779add20cc79d657d5cfd56e6c29ae7f4c274659a47fcc13363de17f1dbb10bff8f651134e895bb15a\",\"name\":\"lightningcss-linux-x64-musl\",\"version\":\"1.32.0\"},\"lightningcss-linux-x64-musl-1.33.0.tgz\":{\"integrity\":\"RYiYbkokw0trfKqqzfF55lginwEPrD3OJDfTuJzFs1MK6iFnDenaz1fqLLtX4ITG3OktJQXOeTaw1awrBAlZPw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4588986e4a24c34b6b7caaaacdf179e658229f010fac3dce2437d3b89cc5b3530aea21670de9dacf57ea2cbb57e084c6dce92d2505ce7936b0d5ac2b0409593f\",\"name\":\"lightningcss-linux-x64-musl\",\"version\":\"1.33.0\"},\"lightningcss-win32-arm64-msvc-1.32.0.tgz\":{\"integrity\":\"8SbC8BR40pS6baCM8sbtYDSwEVQd4JlFTOlaD3gWGHfThTcABnNDBda6eTZeqbofalIJhFx0qKzgHJmcPTnGdw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f126c2f01478d294ba6da08cf2c6ed6034b011541de099454ce95a0f78161877d385370006734305d6ba79365ea9ba1f6a5209845c74a8ace01c999c3d39c677\",\"name\":\"lightningcss-win32-arm64-msvc\",\"version\":\"1.32.0\"},\"lightningcss-win32-arm64-msvc-1.33.0.tgz\":{\"integrity\":\"1K+MPfLSFVpphzpdbfkhlWk6wBrTObBzS2T6db10PNOZgR9GoVsAWzwNyuhUYYbTp23j+4RrncfujZ4uAzXvwA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d4af8c3df2d2155a69873a5d6df92195693ac01ad339b0734b64fa75bd743cd399811f46a15b005b3c0dcae8546186d3a76de3fb846b9dc7ee8d9e2e0335efc0\",\"name\":\"lightningcss-win32-arm64-msvc\",\"version\":\"1.33.0\"},\"lightningcss-win32-x64-msvc-1.32.0.tgz\":{\"integrity\":\"Amq9B/SoZYdDi1kFrojnoqPLxYhQ4Wo5XiL8EVJrVsB8ARoC1PWW6VGtT0WKCemjy8aC+louJnjS7U18x3b06Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"026abd07f4a86587438b5905ae88e7a2a3cbc58850e16a395e22fc11526b56c07c011a02d4f596e951ad4f458a09e9a3cbc682fa5a2e2678d2ed4d7cc776f4e9\",\"name\":\"lightningcss-win32-x64-msvc\",\"version\":\"1.32.0\"},\"lightningcss-win32-x64-msvc-1.33.0.tgz\":{\"integrity\":\"OlEICDx/Xl0FqSp4bry8zFnCvGpig3Gl4gCquvYwHuqJKEC1+n9NgDniFvqHGmMv1ZkqDJrDqKKSykTDX+ehuA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3a5108083c7f5e5d05a92a786ebcbccc59c2bc6a628371a5e200aabaf6301eea892840b5fa7f4d8039e216fa871a632fd5992a0c9ac3a8a292ca44c35fe7a1b8\",\"name\":\"lightningcss-win32-x64-msvc\",\"version\":\"1.33.0\"},\"lines-and-columns-1.2.4.tgz\":{\"integrity\":\"7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ef297295eb1943f3d5dbd8e110397751f8e8e995fb802a89af917b3caaea73ddefedfcd2ca6b75069c0453c9c0517b3cab3cefaa16e384ae50660e8cb7f1e406\",\"name\":\"lines-and-columns\",\"version\":\"1.2.4\"},\"locate-path-3.0.0.tgz\":{\"integrity\":\"7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ec03bbe3cc169c884da80b9ab72d995879101d148d7cf548b0f21fc043963b6d8099aa15ad66af94e70c4799f34cb358be9dfa5f6db4fe669a46cade7351bae4\",\"name\":\"locate-path\",\"version\":\"3.0.0\"},\"lodash-4.18.1.tgz\":{\"integrity\":\"dMInicTPVE8d1e5otfwmmjlxkZoUpiVLwyeTdUsi/Caj/gfzzblBcCE5sRHV/AsjuCmxWrte2TNGSYuCeCq+0Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"74c22789c4cf544f1dd5ee68b5fc269a3971919a14a6254bc32793754b22fc26a3fe07f3cdb941702139b111d5fc0b23b829b15abb5ed93346498b82782abed1\",\"name\":\"lodash\",\"version\":\"4.18.1\"},\"lodash.escaperegexp-4.1.2.tgz\":{\"integrity\":\"TM9YBvyC84ZxE3rgfefxUWiQKLilstD6k7PTGt6wfbtXF8ixIJLOL3VYyV/z+ZiPLsVxAsKAFVwWlWeb2Y8Yyw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4ccf5806fc82f38671137ae07de7f151689028b8a5b2d0fa93b3d31adeb07dbb5717c8b12092ce2f7558c95ff3f9988f2ec57102c280155c1695679bd98f18cb\",\"name\":\"lodash.escaperegexp\",\"version\":\"4.1.2\"},\"lodash.isequal-4.5.0.tgz\":{\"integrity\":\"pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a43a3796ef0985f8ea96ce8690c8296a1b05f640b26b2860ca48f22cc3454ca5aba5574042d6320789ae00c5a8cc10788a0fddb56026b0cc4b108f30bb3f8361\",\"name\":\"lodash.isequal\",\"version\":\"4.5.0\"},\"log-symbols-6.0.0.tgz\":{\"integrity\":\"i24m8rpwhmPIS4zscNzK6MSEhk0DUWa/8iYQWxhffV8jkI4Phvs3F+quL5xvS0gdQR0FyTCMMH33Y78dDTzzIw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8b6e26f2ba708663c84b8cec70dccae8c484864d035166bff226105b185f7d5f23908e0f86fb3717eaae2f9c6f4b481d411d05c9308c307df763bf1d0d3cf323\",\"name\":\"log-symbols\",\"version\":\"6.0.0\"},\"lowercase-keys-2.0.0.tgz\":{\"integrity\":\"tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b6a357ad2efca0c384ef734cc4ae0430b42c428c167fc8caa281fd83bc4f6af453ef4e91e9b91027a0d8d937bb42e91a66cba5c5adf4c10edb934a66e1788798\",\"name\":\"lowercase-keys\",\"version\":\"2.0.0\"},\"lru-cache-11.5.2.tgz\":{\"integrity\":\"4pfM1Ff0x50o0tQwb5ucw/RzNyD0/YJME6IVcStalZuMWxdt3sR3huStTtxz4PUmvZfRguvDejasvQ2kifR11g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e297ccd457f4c79d28d2d4306f9b9cc3f4733720f4fd824c13a215712b5a959b8c5b176ddec47786e4ad4edc73e0f526bd97d182ebc37a36acbd0da489f475d6\",\"name\":\"lru-cache\",\"version\":\"11.5.2\"},\"lru-cache-5.1.1.tgz\":{\"integrity\":\"KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2a9340450037230bfe8d3034bad51555bae1f8996baf516fd1ee7a186cc014e5cdedd93f16f89a0d6f0b1e62b9d8395c1f858fda7ea023cbcdd5a7ac045828f7\",\"name\":\"lru-cache\",\"version\":\"5.1.1\"},\"lru-cache-6.0.0.tgz\":{\"integrity\":\"Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"268e9d274e029928eece7c09492de951e5a677f1f47df4e59175e0c198be7aad540a6a90c0287e78bb183980b063df758b615a878875044302c78a938466ec88\",\"name\":\"lru-cache\",\"version\":\"6.0.0\"},\"lucide-react-1.31.0.tgz\":{\"integrity\":\"G8u2eEtoHUnUa9f8lbvqDhCiORMnYLdUEo06EEG9MQvHQrInKcX3Pa2TH39MM5qyzRcWETxB0+aOwAPI1g1kEg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1bcbb6784b681d49d46bd7fc95bbea0e10a239132760b754128d3a1041bd310bc742b22729c5f73dad931f7f4c339ab2cd1716113c41d3e68ec003c8d60d6412\",\"name\":\"lucide-react\",\"version\":\"1.31.0\"},\"lz-string-1.5.0.tgz\":{\"integrity\":\"h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8796e0256a7124db306d4eea0ab574b4829009a4b76e53c3aea296c7e431ceeccbd73194ce28fd5c258bad22ec24fbb9b7e79603fc9c7adcd800ee4838c71601\",\"name\":\"lz-string\",\"version\":\"1.5.0\"},\"magic-string-0.30.21.tgz\":{\"integrity\":\"vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"bddd85e1853211728670b1e8abe4c4c828f1b9e49e1e7171cb28cda7cd328345d5e2f5219c37abfe5bef96a33f6ab0796d740de4adbfde88a7c82472c7c4f609\",\"name\":\"magic-string\",\"version\":\"0.30.21\"},\"magicast-0.5.4.tgz\":{\"integrity\":\"llBEhWm1SacoRwgHUoQJYtwp4PBLF4faQi5TCpIGyGs9n4y5+juI0tDgyKIfpqxckRHaHzouUEph3THklWh03w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9650448569b549a72847080752840962dc29e0f04b1787da422e530a9206c86b3d9f8cb9fa3b88d2d0e0c8a21fa6ac5c9111da1f3a2e504a61dd31e4956874df\",\"name\":\"magicast\",\"version\":\"0.5.4\"},\"magnet-uri-7.0.10.tgz\":{\"integrity\":\"PjS/xWnvq9RK6P/8+dWG7ka3mFGGt/R9xiq5A+P8a8MpE40Dw6yNyTdjCFuJHS3apn6p5bJUCzMSceW3VxezRA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3e34bfc569efabd44ae8fffcf9d586ee46b7985186b7f47dc62ab903e3fc6bc329138d03c3ac8dc93763085b891d2ddaa67ea9e5b2540b331271e5b75717b344\",\"name\":\"magnet-uri\",\"version\":\"7.0.10\"},\"make-dir-4.0.0.tgz\":{\"integrity\":\"hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8577544d960854eb75131fff8c0422fb04d9669529c018ffd10b0ecea7a06f7ac630c78989212ee712c79d87c1ad1578447dbe38248e3bde48b3fef1d562786f\",\"name\":\"make-dir\",\"version\":\"4.0.0\"},\"matcher-3.0.0.tgz\":{\"integrity\":\"OkeDaAZ/bQCxeFAozM55PKcKU0yJMPGifLwV4Qgjitu+5MoAfSQN4lsLJeXZ1b8w0x+/Emda6MZgXS1jvsapng==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3a478368067f6d00b1785028ccce793ca70a534c8930f1a27cbc15e108238adbbee4ca007d240de25b0b25e5d9d5bf30d31fbf12675ae8c6605d2d63bec6a99e\",\"name\":\"matcher\",\"version\":\"3.0.0\"},\"math-intrinsics-1.1.0.tgz\":{\"integrity\":\"/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"fc85ed6f0124e474cfc84c32297ea11a4617c4cf676e3eb807e8a55499c2fd1e81d291f91b85776f4a556cbec3063e2d921040a696d05257fa17a5e5f4b1eed6\",\"name\":\"math-intrinsics\",\"version\":\"1.1.0\"},\"mdn-data-2.27.1.tgz\":{\"integrity\":\"9Yubnt3e8A0OKwxYSXyhLymGW4sCufcLG6VdiDdUGVkPhpqLxlvP5vl1983gQjJl3tqbrM731mjaZaP68AgosQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f58b9b9edddef00d0e2b0c58497ca12f29865b8b02b9f70b1ba55d88375419590f869a8bc65bcfe6f975f7cde0423265deda9baccef7d668da65a3faf00828b1\",\"name\":\"mdn-data\",\"version\":\"2.27.1\"},\"media-typer-1.1.1.tgz\":{\"integrity\":\"yz3xRaG20c6/BOzvYoDaGtPmGscs7YivItZEEqe6GbwNfHuxu9YNmvnEkMzKldAGY4/80pRcQRZSEnhquk9XuQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"cb3df145a1b6d1cebf04ecef6280da1ad3e61ac72ced88af22d64412a7ba19bc0d7c7bb1bbd60d9af9c490ccca95d006638ffcd2945c41165212786aba4f57b9\",\"name\":\"media-typer\",\"version\":\"1.1.1\"},\"merge-descriptors-2.0.0.tgz\":{\"integrity\":\"Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4a7937d785796b214b869ddf914444b9be96b6305f3dd08f6352e7f3ff26ba7b8bba2621b000600555aca33006f8c58c6d512f71d7296e2f51ef0c36da5f50de\",\"name\":\"merge-descriptors\",\"version\":\"2.0.0\"},\"merge-stream-2.0.0.tgz\":{\"integrity\":\"abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"69bbffa8e72e3df9375113df0f39995352ca9aec3c913fb49c81ef2ab2a016bc227e897f76859c740e19aac590f0436b14a91debb31fa68fcba2f6c852c6eddf\",\"name\":\"merge-stream\",\"version\":\"2.0.0\"},\"merge2-1.4.1.tgz\":{\"integrity\":\"8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f2aed51203095b827cb5c7d53f2f20d3d35c43065d6f0144aa17bf5999282338e7ff74c60f0b4e098b571b10373bcb4fce97330820e0bfe3f63f9cb4d1924e3a\",\"name\":\"merge2\",\"version\":\"1.4.1\"},\"micromatch-4.0.8.tgz\":{\"integrity\":\"PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3d7c1f06162ed210423f0f039f413e58361beda7f77522d558a8b71c6bfce08745e13c85a02d32b3115dd06a31c3b9d2bf84ff3f3109431b18b0488508aa3604\",\"name\":\"micromatch\",\"version\":\"4.0.8\"},\"mime-2.6.0.tgz\":{\"integrity\":\"USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5123e431e113df5ace3226abb013481d928b1a0bca73f2eb8e87c09c194eb6d7f96a346faa2440f10b1e9db728a1cb4ae9de93b3a6aa657040f976e42ad86242\",\"name\":\"mime\",\"version\":\"2.6.0\"},\"mime-3.0.0.tgz\":{\"integrity\":\"jSCU7/VB1loIWBZe14aEYHU/+1UMEHoaO7qxCOVJOw9GgH72VAWppxNcjU+x9a2k3GSIBXNKxXQFqRvvZ7vr3A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8d2094eff541d65a0858165ed7868460753ffb550c107a1a3bbab108e5493b0f46807ef65405a9a7135c8d4fb1f5ada4dc648805734ac57405a91bef67bbebdc\",\"name\":\"mime\",\"version\":\"3.0.0\"},\"mime-db-1.52.0.tgz\":{\"integrity\":\"sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b0f538b95edd625bed589c70c311c3d0fba285536213b4f201b439496c43081f66518bce82ba103b061040e28f27c0886c4fb51135653a82b5502da7537818be\",\"name\":\"mime-db\",\"version\":\"1.52.0\"},\"mime-db-1.54.0.tgz\":{\"integrity\":\"aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"694e4426e20dd960de982700a76bc505fa7f9b810085626750d492c348b1b3bfe45db77a3e0eb8126c0990d745841f1a5add6c1f60935eb2f1a3f880195de83d\",\"name\":\"mime-db\",\"version\":\"1.54.0\"},\"mime-types-2.1.35.tgz\":{\"integrity\":\"ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"64363e6cf9b9cd34c5f98a42ac053d9cad148080983d3d10b53d4d65616fe2cfbe4cd91c815693d20ebee11dae238323423cf2b07075cf1b962f9d21cda7978b\",\"name\":\"mime-types\",\"version\":\"2.1.35\"},\"mime-types-3.0.2.tgz\":{\"integrity\":\"Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2db833764d21e23ba843d7c22975b86f2d1426a8fe9ce3ab23d309d6c4a3e2723c688d9ea35aa6bd01227b8543d6096c4b6e749f5e4bb16b18b42ba0892b52e4\",\"name\":\"mime-types\",\"version\":\"3.0.2\"},\"mimic-fn-2.1.0.tgz\":{\"integrity\":\"OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3aa6ce939a0441e019f165d6c9d96ef47263cfd59574422f6a63027179aea946234e49c7fecaac5af850def830285451d47a63bcd04a437ee76c9818cc6a8672\",\"name\":\"mimic-fn\",\"version\":\"2.1.0\"},\"mimic-fn-3.1.0.tgz\":{\"integrity\":\"Ysbi9uYW9hFyfrThdDEQuykN4Ey6BuwPD2kpI5ES/nFTDn/98yxYNLZJcgUAKPT/mcrLLKaGzJR9YVxJrIdASQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"62c6e2f6e616f611727eb4e1743110bb290de04cba06ec0f0f6929239112fe71530e7ffdf32c5834b64972050028f4ff99cacb2ca686cc947d615c49ac874049\",\"name\":\"mimic-fn\",\"version\":\"3.1.0\"},\"mimic-function-5.0.1.tgz\":{\"integrity\":\"VP79XUPxV2CigYP3jWwAUFSku2aKqBH7uTAapFWCBqutsbmDo96KY5o8uh6U+/YSIn5OxJnXp73beVkpqMIGhA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"54fefd5d43f15760a28183f78d6c005054a4bb668aa811fbb9301aa4558206abadb1b983a3de8a639a3cba1e94fbf612227e4ec499d7a7bddb795929a8c20684\",\"name\":\"mimic-function\",\"version\":\"5.0.1\"},\"mimic-response-1.0.1.tgz\":{\"integrity\":\"j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8f911cb67907eda99f57fab91e09a86a5d60d901c5251ada3ad9b1d09a48aa4c6106123f9494a5d67329438e6155aaf03444cea161229a7759e102b4447c6ec5\",\"name\":\"mimic-response\",\"version\":\"1.0.1\"},\"mimic-response-3.1.0.tgz\":{\"integrity\":\"z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"cf4c9623ee050ebaf0792f199ade048f91dd266932d79f8bd9ee96827dfe88ae5f5b36fa4f77e1345ab6f8c79345bd3ae1ce96af837fc2fd03cd04e33731cd19\",\"name\":\"mimic-response\",\"version\":\"3.1.0\"},\"min-indent-1.0.1.tgz\":{\"integrity\":\"I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"23d8f0327d3b4b2fc8c0e8f7cd59158a4d894ef8296b29036448a02fa471e8df4b6cccb0c1448cb71113fbb955a032cb7773b7217c09c2fbae9ecf1407f1de02\",\"name\":\"min-indent\",\"version\":\"1.0.1\"},\"minimatch-10.2.6.tgz\":{\"integrity\":\"vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"be92d012cf952c2af59d4d015d2d3b99a628170943007d209e042ebadb71230bad0c510c1ead9b957fbcbe98310dd2b72753f08c22627a9efb3a2b536782e5d4\",\"name\":\"minimatch\",\"version\":\"10.2.6\"},\"minimatch-3.1.5.tgz\":{\"integrity\":\"VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5608d652c9e74fa9fe35493a799abbef37857695b62d60f33facc51ab09b1d789836e9790f3aa4d871d0e6e147d83356e576e9f3e8d5cda78db7de2cb04125e3\",\"name\":\"minimatch\",\"version\":\"3.1.5\"},\"minimatch-5.1.9.tgz\":{\"integrity\":\"7o1wEA2RyMP7Iu7GNba9vc0RWWGACJOCZBJX2GJWip0ikV+wcOsgVuY9uE8CPiyQhkGFSlhuSkZPavN7u1c2Fw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ee8d70100d91c8c3fb22eec635b6bdbdcd11596180089382641257d862568a9d22915fb070eb2056e63db84f023e2c908641854a586e4a464f6af37bbb573617\",\"name\":\"minimatch\",\"version\":\"5.1.9\"},\"minimatch-9.0.9.tgz\":{\"integrity\":\"OBwBN9AL4dqmETlpS2zasx+vTeWclWzkblfZk7KTA5j3jeOONz/tRCnZomUyvNg83wL5Zv9Ss6HMJXAgL8R2Yg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"381c0137d00be1daa61139694b6cdab31faf4de59c956ce46e57d993b2930398f78de38e373fed4429d9a26532bcd83cdf02f966ff52b3a1cc2570202fc47662\",\"name\":\"minimatch\",\"version\":\"9.0.9\"},\"minimist-1.2.8.tgz\":{\"integrity\":\"2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"db2c8047ca8190ddd8ba17896a7529582e54ddb6f9a2c0f2c0d07c4730d5943c031dba1c009bdeaaa8f5bbcf92543ee39164f8cafb070a95aaa96a80c5bd3308\",\"name\":\"minimist\",\"version\":\"1.2.8\"},\"minipass-7.1.3.tgz\":{\"integrity\":\"tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b44047a839c8a0cff5ad7304d738246bd83a43695ca029311cbb9cece0c9e41c5b3f977873667970682d5c092ee7ddb4d02c7b762b874ce61f4810fc9fa9a6f0\",\"name\":\"minipass\",\"version\":\"7.1.3\"},\"minizlib-3.1.0.tgz\":{\"integrity\":\"KZxYo1BUkWD2TVFLr0MQoM8vUUigWD3LlD83a/75BqC+4qE0Hb1Vo5v1FgcfaNXvfXzr+5EhQ6ing/CaBijTlw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"299c58a350549160f64d514baf4310a0cf2f5148a0583dcb943f376bfef906a0bee2a1341dbd55a39bf516071f68d5ef7d7cebfb912143a8a783f09a0628d397\",\"name\":\"minizlib\",\"version\":\"3.1.0\"},\"mkdirp-0.5.6.tgz\":{\"integrity\":\"FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"14ffa9f1107c396a45dd86410ab3f982d0039ad5c0a41e4030b9febddc80f8fcb10a3ac2b34d268f2528cecb0edf77300de4f7c0d19d2f127933ffd8aad1c027\",\"name\":\"mkdirp\",\"version\":\"0.5.6\"},\"mmdb-lib-3.0.3.tgz\":{\"integrity\":\"xQPoBXcNjjHiOvOraFBKtA++uNWF6aCVHL9dRKFXEov8eI3QJwtgiw3qApsonFT5SpoqsEVISUTg3HIDs2DiXw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c503e805770d8e31e23af3ab68504ab40fbeb8d585e9a0951cbf5d44a157128bfc788dd0270b608b0dea029b289c54f94a9a2ab045484944e0dc7203b360e25f\",\"name\":\"mmdb-lib\",\"version\":\"3.0.3\"},\"ms-2.1.3.tgz\":{\"integrity\":\"6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e85973b9b4cb646dc9d9afcd542025784863ceae68c601f268253dc985ef70bb2fa1568726afece715c8ebf5d73fab73ed1f7100eb479d23bfb57b45dd645394\",\"name\":\"ms\",\"version\":\"2.1.3\"},\"nanoid-3.3.18.tgz\":{\"integrity\":\"DTg4MJbGMWkfi6VZFdNt2/caMbQy4Ou+Op/hJQvGEWcnVfoA1QA+xzRKAzw9jD6+GVOOeYr/mIcuDSdug6F6+w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0d38383096c631691f8ba55915d36ddbf71a31b432e0ebbe3a9fe1250bc611672755fa00d5003ec7344a033c3d8c3ebe19538e798aff98872e0d276e83a17afb\",\"name\":\"nanoid\",\"version\":\"3.3.18\"},\"negotiator-1.0.0.tgz\":{\"integrity\":\"8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f0e7ecfc051087c31a11cae5ab9c4e5f4090f72a53179765efc9a394c35f38ad3c7f3a604c741140f07170f944b48c34c91a70b3e668ff7afee5645bcbbbb71a\",\"name\":\"negotiator\",\"version\":\"1.0.0\"},\"next-themes-0.4.6.tgz\":{\"integrity\":\"pZvgD5L0IEvX5/9GWyHMf3m8BKiVQwsCMHfoFosXtXBMnaS0ZnIJ9ST4b4NqLVKDEm8QBxoNNGNaBv2JNF6XNA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a59be00f92f4204bd7e7ff465b21cc7f79bc04a895430b023077e8168b17b5704c9da4b4667209f524f86f836a2d5283126f10071a0d34635a06fd89345e9734\",\"name\":\"next-themes\",\"version\":\"0.4.6\"},\"node-abi-4.33.0.tgz\":{\"integrity\":\"vLBWCKb+7LWsX+TbfzWOkw0W81m377tyx3hOweBTjO43CXZnRGS1/JPWs20fr0PgZyDXk6ROYrylsEycK8raDA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"bcb05608a6feecb5ac5fe4db7f358e930d16f359b7efbb72c7784ec1e0538cee370976674464b5fc93d6b36d1faf43e06720d793a44e62bca5b04c9c2bcada0c\",\"name\":\"node-abi\",\"version\":\"4.33.0\"},\"node-addon-api-8.9.2.tgz\":{\"integrity\":\"VijLXbi3UACN69I0JVXJsX4tjACjNoQDgv2gTF6sx2wWEi8tkSg2eX8p5gSIFi8z2+DL3oHmY6OyKce38SDolg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5628cb5db8b750008debd2342555c9b17e2d8c00a336840382fda04c5eacc76c16122f2d912836797f29e60488162f33dbe0cbde81e663a3b229c7b7f120e896\",\"name\":\"node-addon-api\",\"version\":\"8.9.2\"},\"node-api-version-0.2.1.tgz\":{\"integrity\":\"2xP/IGGMmmSQpI1+O/k72jF/ykvZ89JeuKX3TLJAYPDVLUalrshrLHkeVcCCZqG/eEa635cr8IBYzgnDvM2O8Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"db13ff20618c9a6490a48d7e3bf93bda317fca4bd9f3d25eb8a5f74cb24060f0d52d46a5aec86b2c791e55c08266a1bf7846badf972bf08058ce09c3bccd8ef1\",\"name\":\"node-api-version\",\"version\":\"0.2.1\"},\"node-domexception-1.0.0.tgz\":{\"integrity\":\"/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"fe3299a0ca70d05f06470978fde2d138f03771f717b4b0293f44332e6513fc7b8f0995b207b218f59acc78ac363bf9c522a3d00773d533d6989b4177d760170d\",\"name\":\"node-domexception\",\"version\":\"1.0.0\"},\"node-fetch-3.3.2.tgz\":{\"integrity\":\"dRB78srN/l6gqWulah9SrxeYnxeddIG30+GOqK/9OlLVyLg3HPnr6SqOWTWOXKRwC2eGYCkZ59NNuSgvSrpgOA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"75107bf2cacdfe5ea0a96ba56a1f52af17989f179d7481b7d3e18ea8affd3a52d5c8b8371cf9ebe92a8e59358e5ca4700b6786602919e7d34db9282f4aba6038\",\"name\":\"node-fetch\",\"version\":\"3.3.2\"},\"node-gyp-12.4.0.tgz\":{\"integrity\":\"OMcPNvqTCFUnNaBlmdgq+lfNqY7gTiSmNRDjY3uAXRyudeKZEZxu3CLtjMQrx4zZxCX2b/mpNqTtwuCJgXhHkw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"38c70f36fa9308552735a06599d82afa57cda98ee04e24a63510e3637b805d1cae75e299119c6edc22ed8cc42bc78cd9c425f66ff9a936a4edc2e08981784793\",\"name\":\"node-gyp\",\"version\":\"12.4.0\"},\"node-gyp-build-4.8.4.tgz\":{\"integrity\":\"LA4ZjwlnUblHVgq0oBF3Jl/6h/Nvs5fzBLwdEF4nuxnFdsfajde4WfxtJr3CaiH+F6ewcIB/q4jQ4UzPyid+CQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2c0e198f096751b947560ab4a01177265ffa87f36fb397f304bc1d105e27bb19c576c7da8dd7b859fc6d26bdc26a21fe17a7b070807fab88d0e14ccfca277e09\",\"name\":\"node-gyp-build\",\"version\":\"4.8.4\"},\"node-int64-0.4.0.tgz\":{\"integrity\":\"O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3b9973f75c5239ea173fa0ee9721df965a6af84834d0c5a2b5921bb4f7e8484bea207765e607dc63a858cc35a78f4a83e6dcf9d8f234f2ef6a52f49579405e1f\",\"name\":\"node-int64\",\"version\":\"0.4.0\"},\"node-releases-2.0.53.tgz\":{\"integrity\":\"D9UOmYG3UH1V+ENW56t5QXBwJw1YEY18ruVeus89Rw+SyIgjPkCO84bRzO3uNIYosJbNwiabWVn48o3uJLjxFQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0fd50e9981b7507d55f84356e7ab79417070270d58118d7caee55ebacf3d470f92c888233e408ef386d1ccedee348628b096cdc2269b5959f8f28dee24b8f115\",\"name\":\"node-releases\",\"version\":\"2.0.53\"},\"nopt-9.0.0.tgz\":{\"integrity\":\"Zhq3a+yFKrYwSBluL4H9XP3m3y5uvQkB/09CwDruCiRmR/UJYnn9W4R48ry0uGC70aeTPKLynBtscP9efFFcPw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"661ab76bec852ab63048196e2f81fd5cfde6df2e6ebd0901ff4f42c03aee0a246647f5096279fd5b8478f2bcb4b860bbd1a7933ca2f29c1b6c70ff5e7c515c3f\",\"name\":\"nopt\",\"version\":\"9.0.0\"},\"normalize-url-6.1.0.tgz\":{\"integrity\":\"DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0e52fe5f03b2dcdc4043cc6e0b4a243e02b8ea2b953402b4d5837b46e79806aa85786b018d5f5798203301d82dfbaebb6c297990f87d12a28a0f09da3c6d48ec\",\"name\":\"normalize-url\",\"version\":\"6.1.0\"},\"npm-run-path-4.0.1.tgz\":{\"integrity\":\"S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4b8f16cd95bbefbce1348ae7ee0c4e94848d02a8bd642fee4059d175b7881e1661080e94aa990e4fc4f51bb06f7dd80fe04afc805e2c51b692d22ed0bc87c25b\",\"name\":\"npm-run-path\",\"version\":\"4.0.1\"},\"npm-run-path-6.0.0.tgz\":{\"integrity\":\"9qny7Z9DsQU8Ou39ERsPU4OZQlSTP47ShQzuKZ6PRXpYLtIFgl/DEBYEXKlvcEa+9tHVcK8CF81Y2V72qaZhWA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f6a9f2ed9f43b1053c3aedfd111b0f5383994254933f8ed2850cee299e8f457a582ed205825fc31016045ca96f7046bef6d1d570af0217cd58d95ef6a9a66158\",\"name\":\"npm-run-path\",\"version\":\"6.0.0\"},\"object-assign-4.1.1.tgz\":{\"integrity\":\"rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ac98134279149c7d6c170f324fa552537cc3dec5a6bbab19848b1e63c557f8646edcfe85ec5bbe24d0e85df9251256cb2529dcdc55101d57b8714e618fe05c52\",\"name\":\"object-assign\",\"version\":\"4.1.1\"},\"object-inspect-1.13.4.tgz\":{\"integrity\":\"W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5baee22e5e09d845c41936df78709f7eb8c37e2b6f2c0360d14957df01545124f1f762974457a0307515812a84fb0be101b8b85aa8c683d733cac4d5d84a5b7b\",\"name\":\"object-inspect\",\"version\":\"1.13.4\"},\"object-keys-1.1.1.tgz\":{\"integrity\":\"NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"36e00449439432b9485ce7c72b30fa6e93eeded62ddf1be335d44843e15e4f494d6f82bc591ef409a0f186e360b92d971be1a39323303b3b0de5992d2267e12c\",\"name\":\"object-keys\",\"version\":\"1.1.1\"},\"object-treeify-1.1.33.tgz\":{\"integrity\":\"EFVjAYfzWqWsBMRHPMAXLCDIJnpMhdWAqR7xG6M6a2cs6PMFpl/+Z20w9zDW4vkxOFfddegBKq9Rehd0bxWE7A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1055630187f35aa5ac04c4473cc0172c20c8267a4c85d580a91ef11ba33a6b672ce8f305a65ffe676d30f730d6e2f9313857dd75e8012aaf517a17746f1584ec\",\"name\":\"object-treeify\",\"version\":\"1.1.33\"},\"obug-2.1.4.tgz\":{\"integrity\":\"4a+OsYv9UktOJKE+l1A4OufDgdRF9PifWj+tJnHURo/P+WOxpG4GzUFL9qCalmWauao6ogiG+QvnCovwPoyAWA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e1af8eb18bfd524b4e24a13e9750383ae7c381d445f4f89f5a3fad2671d4468fcff963b1a46e06cd414bf6a09a96659ab9aa3aa20886f90be70a8bf03e8c8058\",\"name\":\"obug\",\"version\":\"2.1.4\"},\"on-exit-leak-free-2.1.2.tgz\":{\"integrity\":\"0eJJY6hXLGf1udHwfNftBqH+g73EU4B504nZeKpz1sYRKafAghwxEJunB2O7rDZkL4PGfsMVnTXZ2EjibbqcsA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d1e24963a8572c67f5b9d1f07cd7ed06a1fe83bdc4538079d389d978aa73d6c61129a7c0821c31109ba70763bbac36642f83c67ec3159d35d9d848e26dba9cb0\",\"name\":\"on-exit-leak-free\",\"version\":\"2.1.2\"},\"on-finished-2.4.1.tgz\":{\"integrity\":\"oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a15973920dc4340842936cddbfb209c1dfd0503e33d91c51c2991c198f29b0255c09864dab8c189d55802c733e6ebb6e26378f5a2605fc2966b83afc0a1e7e92\",\"name\":\"on-finished\",\"version\":\"2.4.1\"},\"once-1.4.0.tgz\":{\"integrity\":\"lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"94d689808fb643951140191c7042874d038f697754c67659125413658d0c15402e684a9ed44f8dcaf81dcff688c8d8ba67d3333b976fd47f27e7cfc610ba77fb\",\"name\":\"once\",\"version\":\"1.4.0\"},\"onetime-5.1.2.tgz\":{\"integrity\":\"kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"91ba5a4921894d674063928f55e30e2974ab3edafc0bc0bbc287496dcb1de758d19e60fe199bbc63456853a0e6e59e2f5abd0883fd4d2ae59129fee3e5a6984a\",\"name\":\"onetime\",\"version\":\"5.1.2\"},\"onetime-7.0.0.tgz\":{\"integrity\":\"VXJjc87FScF88uafS3JllDgvAm+c/Slfz06lorj2uAY34rlUu0Nt+v8wreiImcrgAjjIHp1rXpTDlLOGw29WwQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"55726373cec549c17cf2e69f4b726594382f026f9cfd295fcf4ea5a2b8f6b80637e2b954bb436dfaff30ade88899cae00238c81e9d6b5e94c394b386c36f56c1\",\"name\":\"onetime\",\"version\":\"7.0.0\"},\"open-11.0.1.tgz\":{\"integrity\":\"NzwMUB6C1D0+Kd+9iMS/H4k+Ck3cTX6Ckyfr/gAGlmvSE1LUQZnEZvWBi4PYmMwH/S5SMeTXnE+9uAz8uF+pWw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"373c0c501e82d43d3e29dfbd88c4bf1f893e0a4ddc4d7e829327ebfe0006966bd21352d44199c466f5818b83d898cc07fd2e5231e4d79c4fbdb80cfcb85fa95b\",\"name\":\"open\",\"version\":\"11.0.1\"},\"open-8.4.2.tgz\":{\"integrity\":\"7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ef1f353422fbd7da0d6ecabfde687e855ac05a616e11852aaeafc8c37914cc7f117b2a53f5043404ba094bbfc6f64e8df355e35b8a875ad8d6c1effd78bcb511\",\"name\":\"open\",\"version\":\"8.4.2\"},\"ora-8.2.0.tgz\":{\"integrity\":\"weP+BZ8MVNnlCm8c0Qdc1WSWq4Qn7I+9CJGm7Qali6g44e/PUzbjNqJX5NJ9ljlNMosfJvg1fKEGILklK9cwnw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c1e3fe059f0c54d9e50a6f1cd1075cd56496ab8427ec8fbd0891a6ed06a58ba838e1efcf5336e336a257e4d27d96394d328b1f26f8357ca10620b9252bd7309f\",\"name\":\"ora\",\"version\":\"8.2.0\"},\"p-cancelable-2.1.1.tgz\":{\"integrity\":\"BZOr3nRQHOntUjTrH8+Lh54smKHoHyur8We1V8DSMVrl5A2malOOwuJRnKRDjSnkoeBh4at6BwEnb5I7Jl31wg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0593abde74501ce9ed5234eb1fcf8b879e2c98a1e81f2babf167b557c0d2315ae5e40da66a538ec2e2519ca4438d29e4a1e061e1ab7a0701276f923b265df5c2\",\"name\":\"p-cancelable\",\"version\":\"2.1.1\"},\"p-limit-2.3.0.tgz\":{\"integrity\":\"//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ffff3c985592271f25c42cf07400014c92f6332581d76f9e218ecc0cbd92a8b98091e294f6ac51bd6b92c938e6dc5526a4110cb857dc90022a11a546503c5beb\",\"name\":\"p-limit\",\"version\":\"2.3.0\"},\"p-limit-3.1.0.tgz\":{\"integrity\":\"TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4d839a9ccdf01b0346b193767154d83c0af0e39e319d78f9aa6585d5b12801ce3e714fe897b19587ba1d7af8e9d4534776e1dcdca64c70576ec54e5773ab8945\",\"name\":\"p-limit\",\"version\":\"3.1.0\"},\"p-locate-3.0.0.tgz\":{\"integrity\":\"x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c7ed76c3f4e8fb81857e0261044a620dc2e8cd12467a063e122effcf4b522e4326c4664dc9b54c49f5a3f5a267f19e4573b74150d24e39580fbf61fb230ba549\",\"name\":\"p-locate\",\"version\":\"3.0.0\"},\"p-try-2.2.0.tgz\":{\"integrity\":\"R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4789cf0154c053407d0f7e7f1a4dee25fffb5d86d0732a2148a76f03121148d821165e1eef5855a069c1350cfd716697c4ed88d742930bede331dbefa0ac3a75\",\"name\":\"p-try\",\"version\":\"2.2.0\"},\"parent-module-1.0.1.tgz\":{\"integrity\":\"GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"190d84591a5057cfe8f80c3c62ab5f6593df3515996246e2744f64e6ba65fe10b7bed1c705f1a6d887e2eaa595f9ca031a4ad42990311372e8b7991cb11961fa\",\"name\":\"parent-module\",\"version\":\"1.0.1\"},\"parse-json-5.2.0.tgz\":{\"integrity\":\"ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6b208abe6fe98421b13a461148233cda20f072df3f1289d2120092c56c43eef7ba8c7820b059787d955004f44d810a0a8ae57fa1d845ac6cd05d9c1b89f0bc46\",\"name\":\"parse-json\",\"version\":\"5.2.0\"},\"parse-ms-4.0.0.tgz\":{\"integrity\":\"TXfryirbmq34y8QBwgqCVLi+8oA3oWx2eAnSn62ITyEhEYaWRlVZ2DvMM9eZbMs/RfxPu/PK/aBLyGj4IrqMHw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4d77ebca2adb9aadf8cbc401c20a8254b8bef28037a16c767809d29fad884f2121118696465559d83bcc33d7996ccb3f45fc4fbbf3cafda04bc868f822ba8c1f\",\"name\":\"parse-ms\",\"version\":\"4.0.0\"},\"parse-torrent-11.0.24.tgz\":{\"integrity\":\"6nNWYiJq6egD8pMqZYL1mfnAly9ZH32DHkAYgZuAfwWij52ce7e3BtrWGVw2q1Bpb5Us8YQVGN7ML/47z/bVIA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ea735662226ae9e803f2932a6582f599f9c0972f591f7d831e4018819b807f05a28f9d9c7bb7b706dad6195c36ab50696f952cf1841518decc2ffe3bcff6d520\",\"name\":\"parse-torrent\",\"version\":\"11.0.24\"},\"parse5-8.0.1.tgz\":{\"integrity\":\"z1e/HMG90obSGeidlli3hj7cbocou0/wa5HacvI3ASx34PecNjNQeaHNo5WIZpWofN9kgkqV1q5YvXe3F0FoPw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"cf57bf1cc1bdd286d219e89d9658b7863edc6e8728bb4ff06b91da72f237012c77e0f79c36335079a1cda395886695a87cdf64824a95d6ae58bd77b71741683f\",\"name\":\"parse5\",\"version\":\"8.0.1\"},\"parseurl-1.3.3.tgz\":{\"integrity\":\"CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0a2c9e3b1153fc96723799b4cfd3df5f0e1208127a4b2833d43a65d30aa39610c418604fd469ec51510bd29eb78681b57dc8f77c7ca75e2f4d60ee2758e2fea9\",\"name\":\"parseurl\",\"version\":\"1.3.3\"},\"path-browserify-1.0.1.tgz\":{\"integrity\":\"b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6fbba8d9409439865c9c5ff7203d25ba53898bf6da7f16b5c4f7bb64fb1a9a6052a634964248cdc65b7adf96064b632247d1a3bee5c2b73d9e9abde36eccfdf2\",\"name\":\"path-browserify\",\"version\":\"1.0.1\"},\"path-exists-3.0.0.tgz\":{\"integrity\":\"bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6e90bb198c220d8438c182def8503c96146385008c7101ae4a0186a83920fd07ab456c3d0a61914f4892395452649dbd34c2d9808cea6a58c9eb7a1a2f834825\",\"name\":\"path-exists\",\"version\":\"3.0.0\"},\"path-is-absolute-1.0.1.tgz\":{\"integrity\":\"AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0156f0dd42767bd6eaeb8bd2692f409b47e37b53daf296c6a934ec9977da2223299ebe4394385f24eb8b8fd49ff7964f5430147ab0df124f3c30f98f7bb50242\",\"name\":\"path-is-absolute\",\"version\":\"1.0.1\"},\"path-key-3.1.1.tgz\":{\"integrity\":\"ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a2399e374a9dfb2d23b3312da18e3caf43deab97703049089423aee90e5fe3595f92cc17b8ab58ae18284e92e7c887079b6e1486ac7ee53aa6d889d2c0b844e9\",\"name\":\"path-key\",\"version\":\"3.1.1\"},\"path-key-4.0.0.tgz\":{\"integrity\":\"haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"85a444ca9abbc6433b12b7e0232034cfe063e0018a94c49d9501368ef268ea1b960f511d90a615f86fd3e27ab4604176be04d3f24a8c14aa35b879fde74af849\",\"name\":\"path-key\",\"version\":\"4.0.0\"},\"path-scurry-2.0.2.tgz\":{\"integrity\":\"3O/iVVsJAPsOnpwWIeD+d6z/7PmqApyQePUtCndjatj/9I5LylHvt5qluFaBT3I5h3r1ejfR056c+FCv+NnNXg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"dcefe2555b0900fb0e9e9c1621e0fe77acffecf9aa029c9078f52d0a77636ad8fff48e4bca51efb79aa5b856814f7239877af57a37d1d39e9cf850aff8d9cd5e\",\"name\":\"path-scurry\",\"version\":\"2.0.2\"},\"path-to-regexp-8.4.2.tgz\":{\"integrity\":\"qRcuIdP69NPm4qbACK+aDogI5CBDMi1jKe0ry5rSQJz8JVLsC7jV8XpiJjGRLLol3N+R5ihGYcrPLTno6pAdBA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a9172e21d3faf4d3e6e2a6c008af9a0e8808e42043322d6329ed2bcb9ad2409cfc2552ec0bb8d5f17a622631912cba25dcdf91e6284661cacf2d39e8ea901d04\",\"name\":\"path-to-regexp\",\"version\":\"8.4.2\"},\"pathe-2.0.3.tgz\":{\"integrity\":\"WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5948c6700a8fd6041a72841ef8e049b0503b2dde03c97b9422367971cef970b1ef27b76d36c4ee8298712000f0b294be02b68051e3c22ab495b4f2c58ff17cf3\",\"name\":\"pathe\",\"version\":\"2.0.3\"},\"pe-library-0.4.1.tgz\":{\"integrity\":\"eRWB5LBz7PpDu4PUlwT0PhnQfTQJlDDdPa35urV4Osrm0t0AqQFGn+UIkU3klZvwJ8KPO3VbBFsXquA6p6kqZw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"791581e4b073ecfa43bb83d49704f43e19d07d34099430dd3dadf9bab5783acae6d2dd00a901469fe508914de4959bf027c28f3b755b045b17aae03aa7a92a67\",\"name\":\"pe-library\",\"version\":\"0.4.1\"},\"pend-1.2.0.tgz\":{\"integrity\":\"F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1776acbf8d94b97721773b7ec57a9f5b538695505efa6c5ada6a88d29839c801d93ef16663763a76b49ffc643503ce9681610df4ace1fd6ae029aea219c1d72e\",\"name\":\"pend\",\"version\":\"1.2.0\"},\"picocolors-1.1.1.tgz\":{\"integrity\":\"xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c5c787dac9e1b5be4cf658aa0ec984c39ea57b7efa993664117fe311bfd1c4d1727a036e97b78db250973fd1438ff2dcbb45fc284c8c71e3f69eda5a1eb0c454\",\"name\":\"picocolors\",\"version\":\"1.1.1\"},\"picomatch-2.3.2.tgz\":{\"integrity\":\"V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"57bfaf404274e99f9ce6d4b27bc4be9c751f239d71a172178c743df5c42d294910aaa3b590efca08951f657b81e3b87f60194385a8761f785d5065e7f227b4a0\",\"name\":\"picomatch\",\"version\":\"2.3.2\"},\"picomatch-4.0.5.tgz\":{\"integrity\":\"RvwwcruNjI1ncT5xRakeyS9Lf8lcItv34KD+aif+VH9kduAyfYBipGh12274xtenIPZ119/R9BdTBa8gAwSh0A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"46fc3072bb8d8c8d67713e7145a91ec92f4b7fc95c22dbf7e0a0fe6a27fe547f6476e0327d8062a46875db6ef8c6d7a720f675d7dfd1f4175305af200304a1d0\",\"name\":\"picomatch\",\"version\":\"4.0.5\"},\"pino-10.3.1.tgz\":{\"integrity\":\"r34yH/GlQpKZbU1BvFFqOjhISRo1MNx1tWYsYvmj6KIRHSPMT2+yHOEb1SG6NMvRoHRF0a07kCOox/9yakl1vg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"af7e321ff1a54292996d4d41bc516a3a3848491a3530dc75b5662c62f9a3e8a2111d23cc4f6fb21ce11bd521ba34cbd1a07445d1ad3b9023a8c7ff726a4975be\",\"name\":\"pino\",\"version\":\"10.3.1\"},\"pino-abstract-transport-3.0.0.tgz\":{\"integrity\":\"wlfUczU+n7Hy/Ha5j9a/gZNy7We5+cXp8YL+X+PG8S0KXxw7n/JXA3c46Y0zQznIJ83URJiwy7Lh56WLokNuxg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c257d473353e9fb1f2fc76b98fd6bf819372ed67b9f9c5e9f182fe5fe3c6f12d0a5f1c3b9ff257037738e98d334339c827cdd44498b0cbb2e1e7a58ba2436ec6\",\"name\":\"pino-abstract-transport\",\"version\":\"3.0.0\"},\"pino-pretty-13.1.3.tgz\":{\"integrity\":\"ttXRkkOz6WWC95KeY9+xxWL6AtImwbyMHrL1mSwqwW9u+vLp/WIElvHvCSDg0xO/Dzrggz1zv3rN5ovTRVowKg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b6d5d19243b3e96582f7929e63dfb1c562fa02d226c1bc8c1eb2f5992c2ac16f6efaf2e9fd620496f1ef0920e0d313bf0f3ae0833d73bf7acde68bd3455a302a\",\"name\":\"pino-pretty\",\"version\":\"13.1.3\"},\"pino-std-serializers-7.1.0.tgz\":{\"integrity\":\"BndPH67/JxGExRgiX1dX0w1FvZck5Wa4aal9198SrRhZjH3GxKQUKIBnYJTdj2HDN3UQAS06HlfcSbQj2OHmaw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"06774f1faeff271184c518225f5757d30d45bd9724e566b869a97dd7df12ad18598c7dc6c4a4142880676094dd8f61c3377510012d3a1e57dc49b423d8e1e66b\",\"name\":\"pino-std-serializers\",\"version\":\"7.1.0\"},\"pkce-challenge-5.0.1.tgz\":{\"integrity\":\"wQ0b/W4Fr01qtpHlqSqspcj3EhBvimsdh0KlHhH8HRZnMsEa0ea2fTULOXOS9ccQr3om+GcGRk4e+isrZWV8qQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c10d1bfd6e05af4d6ab691e5a92aaca5c8f712106f8a6b1d8742a51e11fc1d166732c11ad1e6b67d350b397392f5c710af7a26f86706464e1efa2b2b65657ca9\",\"name\":\"pkce-challenge\",\"version\":\"5.0.1\"},\"pkg-up-3.1.0.tgz\":{\"integrity\":\"nDywThFk1i4BQK4twPQ6TA4RT8bDY96yeuCVBWL3ePARCiEKDRSrNGbFIgUJpLp+XeIR65v8ra7WuJOFUBtkMA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9c3cb04e1164d62e0140ae2dc0f43a4c0e114fc6c363deb27ae0950562f778f0110a210a0d14ab3466c5220509a4ba7e5de211eb9bfcadaed6b89385501b6430\",\"name\":\"pkg-up\",\"version\":\"3.1.0\"},\"pkijs-3.4.0.tgz\":{\"integrity\":\"emEcLuomt2j03vxD54giVB4SxTjnsqkU692xZOZXHDVoYyypEm+b3jpiTcc+Cf+myooc+/Ly0z01jqeNHVgJGw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7a611c2eea26b768f4defc43e78822541e12c538e7b2a914ebddb164e6571c3568632ca9126f9bde3a624dc73e09ffa6ca8a1cfbf2f2d33d358ea78d1d58091b\",\"name\":\"pkijs\",\"version\":\"3.4.0\"},\"playwright-1.62.1.tgz\":{\"integrity\":\"0M+L3LAD8/nm554LOla9Ayx0j0tmFZ0FBcoQ7F1VuVHpM/XpiC8RcDzBQB8W5+hA8L22THxELzeF+2WcUzvcLg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d0cf8bdcb003f3f9e6e79e0b3a56bd032c748f4b66159d0505ca10ec5d55b951e933f5e9882f11703cc1401f16e7e840f0bdb64c7c442f3785fb659c533bdc2e\",\"name\":\"playwright\",\"version\":\"1.62.1\"},\"playwright-core-1.62.1.tgz\":{\"integrity\":\"wPYSwEBJY9GHraISXqyqtx0na0LpO3XEX7jNDhntbex7tzUS7kLnZsOlFruFJB4Hi/rhDMjXGqHewDZ68nYZVw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c0f612c0404963d187ada2125eacaab71d276b42e93b75c45fb8cd0e19ed6dec7bb73512ee42e766c3a516bb85241e078bfae10cc8d71aa1dec0367af2761957\",\"name\":\"playwright-core\",\"version\":\"1.62.1\"},\"plist-3.1.0.tgz\":{\"integrity\":\"uysumyrvkUX0rX/dEVqt8gC3sTBzd4zoWfLeS29nb53imdaXVvLINYXTI2GNqzaMuvacNx4uJQ8+b3zXR0pkgQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"bb2b2e9b2aef9145f4ad7fdd115aadf200b7b13073778ce859f2de4b6f676f9de299d69756f2c83585d323618dab368cbaf69c371e2e250f3e6f7cd7474a6481\",\"name\":\"plist\",\"version\":\"3.1.0\"},\"postcss-8.5.26.tgz\":{\"integrity\":\"u82N74LFzG8ca+dD8puPnplTXoGH4fTPpVGuIbt36G3qvNlkvfD0lEAZSxaly3KX8TS/L1A1gsCEmvKmBcVbkQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"bbcd8def82c5cc6f1c6be743f29b8f9e99535e8187e1f4cfa551ae21bb77e86deabcd964bdf0f49440194b16a5cb7297f134bf2f503582c0849af2a605c55b91\",\"name\":\"postcss\",\"version\":\"8.5.26\"},\"postcss-selector-parser-7.1.5.tgz\":{\"integrity\":\"KvvtD7SrlBP7dlgkBghEE3r84CABm5SmV2aNcG4oCA+qDnJ/tvKonFVvwWAyyWUEwxuNawdfEAZKP9zM3oZ2Uw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2afbed0fb4ab9413fb765824060844137afce020019b94a657668d706e28080faa0e727fb6f2a89c556fc16032c96504c31b8d6b075f10064a3fdcccde867653\",\"name\":\"postcss-selector-parser\",\"version\":\"7.1.5\"},\"postject-1.0.0-alpha.6.tgz\":{\"integrity\":\"b9Eb8h2eVqNE8edvKdwqkrY6O7kAwmI8kcnBv1NScolYJbo59XUF0noFq+lxbC1yN20bmC0WBEbDC5H/7ASb0A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6fd11bf21d9e56a344f1e76f29dc2a92b63a3bb900c2623c91c9c1bf535272895825ba39f57505d27a05abe9716c2d72376d1b982d160446c30b91ffec049bd0\",\"name\":\"postject\",\"version\":\"1.0.0-alpha.6\"},\"powershell-utils-0.1.0.tgz\":{\"integrity\":\"dM0jVuXJPsDN6DvRpea484tCUaMiXWjuCn++HGTqUWzGDjv5tZkEZldAJ/UMlqRYGFrD/etByo4/xOuC/snX2A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"74cd2356e5c93ec0cde83bd1a5e6b8f38b4251a3225d68ee0a7fbe1c64ea516cc60e3bf9b5990466574027f50c96a458185ac3fdeb41ca8e3fc4eb82fec9d7d8\",\"name\":\"powershell-utils\",\"version\":\"0.1.0\"},\"powershell-utils-0.2.0.tgz\":{\"integrity\":\"ZlsFlG7MtSFCoc5xreOvBAozCJ6Pf06opgJjh9ONEv418xpZSAzNjstD36C6+JwOnfSqOW/9uDkqKjezTdxZhw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"665b05946eccb52142a1ce71ade3af040a33089e8f7f4ea8a6026387d38d12fe35f31a59480ccd8ecb43dfa0baf89c0e9df4aa396ffdb8392a2a37b34ddc5987\",\"name\":\"powershell-utils\",\"version\":\"0.2.0\"},\"pretty-format-27.5.1.tgz\":{\"integrity\":\"Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"41bd60cb93ab3f9fb30dfd81be7cdd9778ec4dfd6a5d531acdbbc2a0a86d2aa56ce3f60ae28cd7e2029024957235ef9c6a334f9f42a80b4302dc552668758499\",\"name\":\"pretty-format\",\"version\":\"27.5.1\"},\"pretty-ms-9.3.0.tgz\":{\"integrity\":\"gjVS5hOP+M3wMm5nmNOucbIrqudzs9v/57bWRHQWLYklXqoXKrVfYW2W9+glfGsqtPgpiz5WwyEEB+ksXIx3gQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"823552e6138ff8cdf0326e6798d3ae71b22baae773b3dbffe7b6d64474162d89255eaa172ab55f616d96f7e8257c6b2ab4f8298b3e56c3210407e92c5c8c7781\",\"name\":\"pretty-ms\",\"version\":\"9.3.0\"},\"proc-log-6.1.0.tgz\":{\"integrity\":\"iG+GYldRf2BQ0UDUAd6JQ/RwzaQy6mXmsk/IzlYyal4A4SNFw54MeH4/tLkF4I5WoWG9SQwuqWzS99jaFQHBuQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"886f866257517f6050d140d401de8943f470cda432ea65e6b24fc8ce56326a5e00e12345c39e0c787e3fb4b905e08e56a161bd490c2ea96cd2f7d8da1501c1b9\",\"name\":\"proc-log\",\"version\":\"6.1.0\"},\"process-nextick-args-2.0.1.tgz\":{\"integrity\":\"3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"de8b943a9421b60adb39ad7b27bfaec4e4e92136166863fbfc0868477f80fbfd5ef6c92bcde9468bf757cc4632bdbc6e6c417a5a7db2a6c7132a22891459f56a\",\"name\":\"process-nextick-args\",\"version\":\"2.0.1\"},\"process-warning-4.0.1.tgz\":{\"integrity\":\"3c2LzQ3rY9d0hc1emcsHhfT9Jwz0cChib/QN89oME2R451w5fy3f0afAhERFZAwrbDU43wk12d0ORBpDVME50Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ddcd8bcd0deb63d77485cd5e99cb0785f4fd270cf47028626ff40df3da0c136478e75c397f2ddfd1a7c0844445640c2b6c3538df0935d9dd0e441a4354c139d1\",\"name\":\"process-warning\",\"version\":\"4.0.1\"},\"process-warning-5.1.0.tgz\":{\"integrity\":\"jQSaVHsPgtyw60e1rQ/A+/ArPEj/S8pS/vFnyGa/gYFXrKk/6RuDkoqVDQ5NI5MmS01698ltlAk0NoDBNLujRw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8d049a547b0f82dcb0eb47b5ad0fc0fbf02b3c48ff4bca52fef167c866bf818157aca93fe91b83928a950d0e4d2393264b4d7af7c96d9409343680c134bba347\",\"name\":\"process-warning\",\"version\":\"5.1.0\"},\"progress-2.0.3.tgz\":{\"integrity\":\"7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ecf887b4b965e4b767288330d74d08fbcc495d1e605b6430598913ea226f6b46d78ad64a6bf5ccad26dd9a0debd979da89dcfd42e99dd153da32b66517d57db0\",\"name\":\"progress\",\"version\":\"2.0.3\"},\"promise-retry-2.0.1.tgz\":{\"integrity\":\"y+WKFlBR8BGXnsNlIHFGPZmyDf3DFMoLhaflAnyZgV6rG6xu+JwesTo2Q9R6XwYmtmwAFCkAk3e35jEdoeh/3g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"cbe58a165051f011979ec3652071463d99b20dfdc314ca0b85a7e5027c99815eab1bac6ef89c1eb13a3643d47a5f0626b66c001429009377b7e6311da1e87fde\",\"name\":\"promise-retry\",\"version\":\"2.0.1\"},\"prompts-2.4.2.tgz\":{\"integrity\":\"NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"37136ffe42e0b8203ba778c4f282f668406cac95a001a901a609a02ba9693d657e5ae3a663aaf6ff36c05673fe4fc6d0940d27cc75d2252256d07abbca5683d9\",\"name\":\"prompts\",\"version\":\"2.4.2\"},\"proper-lockfile-4.1.2.tgz\":{\"integrity\":\"TjNPblN4BwAWMXU8s9AEz4JmQxnD1NNL7bNOY/AKUzyamc379FWASUhc/K1pL2noVb+XmZKLL68cjzLsiOAMaA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4e334f6e537807001631753cb3d004cf82664319c3d4d34bedb34e63f00a533c9a99cdfbf4558049485cfcad692f69e855bf9799928b2faf1c8f32ec88e00c68\",\"name\":\"proper-lockfile\",\"version\":\"4.1.2\"},\"proxy-addr-2.0.7.tgz\":{\"integrity\":\"llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"96542c30b4940d43d3e388ddad4fcedfbaa59e27e2b433fe670ae699972848ac8b2afb59c69c95d27dbf6c3fcde2d040019fe024475953b28cadaa0ad7e5d802\",\"name\":\"proxy-addr\",\"version\":\"2.0.7\"},\"proxy-chain-3.0.0.tgz\":{\"integrity\":\"p9DbNWMUCn8FJz9u+RTO82fwD3NFoYZgax5vtxd0FYPQ6IwpxX65WxeL64Fm/hZQVS2+bWB+XRy3+iDVaBsUeg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a7d0db3563140a7f05273f6ef914cef367f00f7345a186606b1e6fb717741583d0e88c29c57eb95b178beb8166fe1650552dbe6d607e5d1cb7fa20d5681b147a\",\"name\":\"proxy-chain\",\"version\":\"3.0.0\"},\"pump-3.0.4.tgz\":{\"integrity\":\"VS7sjc6KR7e1ukRFhQSY5LM2uBWAUPiOPa/A3mkKmiMwSmRFUITt0xuj+/lesgnCv+dPIEYlkzrcyXgquIHMcA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"552eec8dce8a47b7b5ba4445850498e4b336b8158050f88e3dafc0de690a9a23304a64455084edd31ba3fbf95eb209c2bfe74f204625933adcc9782ab881cc70\",\"name\":\"pump\",\"version\":\"3.0.4\"},\"punycode-2.3.1.tgz\":{\"integrity\":\"vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"bd8b7b503d54f5683ad77f2c84bb4b3af740bbef03b02fe2945b44547707fb0c9d712a4d136d007d239db9fe8c91115a84be4563b5f5a14ee7295645b5fabc16\",\"name\":\"punycode\",\"version\":\"2.3.1\"},\"pvtsutils-1.3.6.tgz\":{\"integrity\":\"PLgQXQ6H2FWCaeRak8vvk1GW462lMxB5s3Jm673N82zI4vqtVUPuZdffdZbPDFRoU8kAhItWFtPCWiPpp4/EDg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3cb8105d0e87d8558269e45a93cbef935196e3ada5331079b37266ebbdcdf36cc8e2faad5543ee65d7df7596cf0c546853c900848b5616d3c25a23e9a78fc40e\",\"name\":\"pvtsutils\",\"version\":\"1.3.6\"},\"pvutils-1.2.0.tgz\":{\"integrity\":\"BbubeCEyTuQjVMakvJQ/Sxbc93F2pwmbsxONT/ZRrwU7Ua38d8unYTwXpTVLAKJ4BDuH9IGztCjQcd/N/39Dvg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"05bb9b7821324ee42354c6a4bc943f4b16dcf77176a7099bb3138d4ff651af053b51adfc77cba7613c17a5354b00a278043b87f481b3b428d071dfcdff7f43be\",\"name\":\"pvutils\",\"version\":\"1.2.0\"},\"qs-6.15.3.tgz\":{\"integrity\":\"O9gl3zCl5h5blw1KGUzQKhA5oUXSl8rwUIM5o0S3nCXMliSvy5Dzx7/DJcI+SwgICv+IneSZwhBh1oSyEHA71A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3bd825df30a5e61e5b970d4a194cd02a1039a145d297caf0508339a344b79c25cc9624afcb90f3c7bfc325c23e4b08080aff889de499c21061d684b210703bd4\",\"name\":\"qs\",\"version\":\"6.15.3\"},\"queue-microtask-1.2.3.tgz\":{\"integrity\":\"NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"36e68d49ae9f94a4f925a498433268934e09cd32f5080e9a1a1bf9adf2d6dcf82a03e3360a1a59427002f21f22e19164052f17e51aa40c11c0eebe217a3dcaf4\",\"name\":\"queue-microtask\",\"version\":\"1.2.3\"},\"quick-format-unescaped-4.0.4.tgz\":{\"integrity\":\"tYC1Q1hgyRuHgloV/YXs2w15unPVh8qfu/qCTfhTYamaw7fyhumKa2yGpdSo87vY32rIclj+4fWYQXUMs9EHvg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b580b5435860c91b87825a15fd85ecdb0d79ba73d587ca9fbbfa824df85361a99ac3b7f286e98a6b6c86a5d4a8f3bbd8df6ac87258fee1f59841750cb3d107be\",\"name\":\"quick-format-unescaped\",\"version\":\"4.0.4\"},\"quick-lru-5.1.1.tgz\":{\"integrity\":\"WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5aec802d18d63c31adb7fc3326269d3b901763ef2167cd215697ba3328af82b691116ef9d57dd26e146f1b778b28e60dfbc544bea2dc7f7c1d9ede386784b848\",\"name\":\"quick-lru\",\"version\":\"5.1.1\"},\"quickjs-emscripten-0.32.0.tgz\":{\"integrity\":\"So0Sqw869y/S2oE3Nuc0uT3Dhqgvsj8FSrwBdsuTosVsG8ME5/OcudU1GxsrIFdFABgy17GHnTVO9TYV/bLQcA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4a8d12ab0f3af72fd2da813736e734b93dc386a82fb23f054abc0176cb93a2c56c1bc304e7f39cb9d5351b1b2b205745001832d7b1879d354ef53615fdb2d070\",\"name\":\"quickjs-emscripten\",\"version\":\"0.32.0\"},\"quickjs-emscripten-core-0.32.0.tgz\":{\"integrity\":\"QFnPfjFey8EqknSrSxe1hZrf1/8z7/6s1QzGOmKo6++02r7QRRX7ZoyNaZh7JuVjWsVW87KnQrbZqnHkOAzUyg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"4059cf7e315ecbc12a9274ab4b17b5859adfd7ff33effeacd50cc63a62a8ebefb4dabed04515fb668c8d69987b26e5635ac556f3b2a742b6d9aa71e4380cd4ca\",\"name\":\"quickjs-emscripten-core\",\"version\":\"0.32.0\"},\"range-parser-1.3.0.tgz\":{\"integrity\":\"hek2mFQpPuI4E1BBKrSto+BU3e3x4xuarsbiwr3+lf7p44juvFMV0XFWQAP3xUyqXA4RrXLIoaSUGbSt056ZMw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"85e9369854293ee2381350412ab4ada3e054ddedf1e31b9aaec6e2c2bdfe95fee9e388eebc5315d171564003f7c54caa5c0e11ad72c8a1a49419b4add39e9933\",\"name\":\"range-parser\",\"version\":\"1.3.0\"},\"raw-body-3.0.2.tgz\":{\"integrity\":\"K5zQjDllxWkf7Z5xJdV0/B0WTNqx6vxG70zJE4N0kBs4LovmEYWJzQGxC9bS9RAKu3bgM40lrd5zoLJ12MQ5BA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2b9cd08c3965c5691fed9e7125d574fc1d164cdab1eafc46ef4cc9138374901b382e8be6118589cd01b10bd6d2f5100abb76e0338d25adde73a0b275d8c43904\",\"name\":\"raw-body\",\"version\":\"3.0.2\"},\"react-19.2.8.tgz\":{\"integrity\":\"PWaYA1L/q9u2u7xYQi+Y3L3Yfnie7XyLeaJICV1MGD6LprsBxcAqGjYyr0eY3p+QdsA+x/Irkt4Qif8D63+Sbw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3d66980352ffabdbb6bbbc58422f98dcbdd87e789eed7c8b79a248095d4c183e8ba6bb01c5c02a1a3632af4798de9f9076c03ec7f22b92de1089ff03eb7f926f\",\"name\":\"react\",\"version\":\"19.2.8\"},\"react-dom-19.2.8.tgz\":{\"integrity\":\"rVprimfGBG3DR+Tq0IQG2DT5PxKth1WIGDmj5yPmlzr4YBe7uyE+Du4oVqTDXZSHGGGXRtTJEGSSePyQCMBglQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ad5a6b8a67c6046dc347e4ead08406d834f93f12ad8755881839a3e723e6973af86017bbbb213e0eee2856a4c35d948718619746d4c910649278fc9008c06095\",\"name\":\"react-dom\",\"version\":\"19.2.8\"},\"react-hook-form-7.85.0.tgz\":{\"integrity\":\"U2MTriFXnclmV4rOE20p2DcRFv5WEg3FIcBFOKcOLFHDVvGIMPvLTkTWefUsonmlaVy23khVDxDWym6uJVGOzw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"536313ae21579dc966578ace136d29d8371116fe56120dc521c04538a70e2c51c356f18830fbcb4e44d679f52ca279a5695cb6de48550f10d6ca6eae25518ecf\",\"name\":\"react-hook-form\",\"version\":\"7.85.0\"},\"react-i18next-17.0.11.tgz\":{\"integrity\":\"cDtkXgxjuFTWUH6V+aQn1Ve5vDiUztCNPWW5GtSHDccsgRXO1nE6QFWCEmc1KAutrb3OUv87wFShJL5RhUwPXg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"703b645e0c63b854d6507e95f9a427d557b9bc3894ced08d3d65b91ad4870dc72c8115ced6713a405582126735280badadbdce52ff3bc054a124be51854c0f5e\",\"name\":\"react-i18next\",\"version\":\"17.0.11\"},\"react-is-17.0.2.tgz\":{\"integrity\":\"w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c361accae90beb62099e569f7ff9d17a03d047de02fd75da9af3169921d1278cbb4ecff8a1c1919931ef3acf0f484ea90777563ab0ff9ee7ae539b1db81b10e3\",\"name\":\"react-is\",\"version\":\"17.0.2\"},\"react-is-19.2.8.tgz\":{\"integrity\":\"s5un28nYxKJw5gvUHyW5PCC28CvBqLu9r3cWgzHT4Vo/5fqqkFcdRYsGcKf50WMPpjjFZS5d76fn3YCo2njKwQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b39ba7dbc9d8c4a270e60bd41f25b93c20b6f02bc1a8bbbdaf77168331d3e15a3fe5faaa90571d458b0670a7f9d1630fa638c5652e5defa7e7dd80a8da78cac1\",\"name\":\"react-is\",\"version\":\"19.2.8\"},\"react-redux-9.3.0.tgz\":{\"integrity\":\"KQopgqFo/p/fgmAs5qz6p5RWaNAzq40WAu7fJIXnQpYxFPbJYtsJPWvGeF2rOBaY/kEuV77AVsX8TsQzKm+A/g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"290a2982a168fe9fdf82602ce6acfaa7945668d033ab8d1602eedf2485e742963114f6c962db093d6bc6785dab381698fe412e57bec056c5fc4ec4332a6f80fe\",\"name\":\"react-redux\",\"version\":\"9.3.0\"},\"react-remove-scroll-2.7.2.tgz\":{\"integrity\":\"Iqb9NjCCTt6Hf+vOdNIZGdTiH1QSqr27H/Ek9sv/a97gfueI/5h1s3yRi1nngzMUaOOToin5dI1dXKdXiF+u0Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"22a6fd3630824ede877febce74d21919d4e21f5412aabdbb1ff124f6cbff6bdee07ee788ff9875b37c918b59e783331468e393a229f9748d5d5ca757885faed1\",\"name\":\"react-remove-scroll\",\"version\":\"2.7.2\"},\"react-remove-scroll-bar-2.3.8.tgz\":{\"integrity\":\"9r+yi9+mgU33AKcj6IbT9oRCO78WriSj6t/cF8DWBZJ9aOGPOTEDvdUDz1FwKim7QXWwmHqtdHnRJfhAxEG46Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f6bfb28bdfa6814df700a723e886d3f684423bbf16ae24a3eadfdc17c0d605927d68e18f393103bdd503cf51702a29bb4175b0987aad7479d125f840c441b8e9\",\"name\":\"react-remove-scroll-bar\",\"version\":\"2.3.8\"},\"react-router-8.3.0.tgz\":{\"integrity\":\"qyPMvW83jGIct3yiieisxdk9M745anqhpIMKN5m1t6yBMfgVPpt77aHOqs5fUlEJRMCGffg9BaQLH9oPVOL7xQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ab23ccbd6f378c621cb77ca289e8acc5d93d33be396a7aa1a4830a3799b5b7ac8131f8153e9b7beda1ceaace5f52510944c0867df83d05a40b1fda0f54e2fbc5\",\"name\":\"react-router\",\"version\":\"8.3.0\"},\"react-style-singleton-2.2.3.tgz\":{\"integrity\":\"b6jSvxvVnyptAiLjbkWLE/lOnR4lfTtDAl+eUC7RZy+QQWc6wRzIV2CE6xBuMmDxc2qIihtDCZD5NPOFl7fRBQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6fa8d2bf1bd59f2a6d0222e36e458b13f94e9d1e257d3b43025f9e502ed1672f9041673ac11cc8576084eb106e3260f1736a888a1b430990f934f38597b7d105\",\"name\":\"react-style-singleton\",\"version\":\"2.2.3\"},\"read-binary-file-arch-1.0.6.tgz\":{\"integrity\":\"BNg9EN3DD3GsDXX7Aa8O4p92sryjkmzYYgmgTAc6CA4uGLEDzFfxOxugu21akOxpcXHiEgsYkC6nPsQvLLLmEg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"04d83d10ddc30f71ac0d75fb01af0ee29f76b2bca3926cd86209a04c073a080e2e18b103cc57f13b1ba0bb6d5a90ec697171e2120b18902ea73ec42f2cb2e612\",\"name\":\"read-binary-file-arch\",\"version\":\"1.0.6\"},\"readable-stream-2.3.8.tgz\":{\"integrity\":\"8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f29d00524e173838087b04a2d25f04a63b3e1159d688aecda03204194d07844efe67263c0f520c63ba1dbb9951ac55c683bd4bd79286f10acf9ae9b8e514ed74\",\"name\":\"readable-stream\",\"version\":\"2.3.8\"},\"readable-stream-3.6.2.tgz\":{\"integrity\":\"9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f6efec9e20ab6370f959db04447cc71381b66025eaa06e454c7522082e1221bafa5dc2d9058d39c9af442a361e93d3b9c4e0308c6abed497460404bb43d49ca0\",\"name\":\"readable-stream\",\"version\":\"3.6.2\"},\"readdirp-5.1.1.tgz\":{\"integrity\":\"Kko+Y5XQ6fM+Ce3dq3m9YGxnacYZYl9cA1wZjaF3Vbry2L3i1qVg8+CAgNPsXRArPMUMCaOR7oa9Nqntc43JKA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2a4a3e6395d0e9f33e09edddab79bd606c6769c619625f5c035c198da17755baf2d8bde2d6a560f3e08080d3ec5d102b3cc50c09a391ee86bd36a9ed738dc928\",\"name\":\"readdirp\",\"version\":\"5.1.1\"},\"real-require-0.2.0.tgz\":{\"integrity\":\"57frrGM/OCTLqLOAh0mhVA9VBMHd+9U7Zb2THMGdBUoZVOtGbJzjxsYGDJ3A9AYYCP4hn6y1TVbaOfzWtm5GFg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e7b7ebac633f3824cba8b3808749a1540f5504c1ddfbd53b65bd931cc19d054a1954eb466c9ce3c6c6060c9dc0f4061808fe219facb54d56da39fcd6b66e4616\",\"name\":\"real-require\",\"version\":\"0.2.0\"},\"real-require-1.0.0.tgz\":{\"integrity\":\"P4nbQYQfePJxRSmY+v/KINxVucm4NF3p3s7pJveMTtom52FR4YGltUQLB8idDXwDDWW+eYrWDFbuzUnjoWHF7g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3f89db41841f78f271452998faffca20dc55b9c9b8345de9decee926f78c4eda26e76151e181a5b5440b07c89d0d7c030d65be798ad60c56eecd49e3a161c5ee\",\"name\":\"real-require\",\"version\":\"1.0.0\"},\"recast-0.23.21.tgz\":{\"integrity\":\"mFAyJq9vUbSTARLZUvAEf1z3YxlvAwswbmxMx2mPA/MSm4KmpwvwvhsH/NIrZhyOuwD60Lzyw2qh83uCbgTPYw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"98503226af6f51b4930112d952f0047f5cf763196f030b306e6c4cc7698f03f3129b82a6a70bf0be1b07fcd22b661c8ebb00fad0bcf2c36aa1f37b826e04cf63\",\"name\":\"recast\",\"version\":\"0.23.21\"},\"recharts-3.10.1.tgz\":{\"integrity\":\"QXFrvt6IVcw7eeZCoyXTwkIJAX3Dv1nyVhMicXJ47GsGDDpcN8z6o644DibE9XjpBTThtsomLKnTV6lc+cVFUA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"41716bbede8855cc3b79e642a325d3c24209017dc3bf59f2561322717278ec6b060c3a5c37ccfaa3ae380e26c4f578e90534e1b6ca262ca9d357a95cf9c54550\",\"name\":\"recharts\",\"version\":\"3.10.1\"},\"redent-3.0.0.tgz\":{\"integrity\":\"6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ead0c0f20f7c59ed337741af55e313f5aac43a74f0f6a334dcbf5c2576828eb8a9d4e3bbeb844304b05fac1e1cc333460e3e4e0398a8ca60bd1a48b381624352\",\"name\":\"redent\",\"version\":\"3.0.0\"},\"redux-5.0.1.tgz\":{\"integrity\":\"M9/ELqF6fy8FwmkpnF0S3YKOqMyoWJ4+CS5Efg2ct3oY9daQvd/Pc71FpGZsVsbl3Cpb+IIcjBDUnnyBdQbq4w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"33dfc42ea17a7f2f05c269299c5d12dd828ea8cca8589e3e092e447e0d9cb77a18f5d690bddfcf73bd45a4666c56c6e5dc2a5bf8821c8c10d49e7c817506eae3\",\"name\":\"redux\",\"version\":\"5.0.1\"},\"redux-thunk-3.1.0.tgz\":{\"integrity\":\"NW2r5T6ksUKXCabzhL9z+h206HQw/NJkcLm1GPImRQ8IzfXwRGqjVhKJGauHirT0DAuyy6hjdnMZaRoAcy0Klw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"356dabe53ea4b1429709a6f384bf73fa1db4e87430fcd26470b9b518f226450f08cdf5f0446aa356128919ab878ab4f40c0bb2cba863767319691a00732d0a97\",\"name\":\"redux-thunk\",\"version\":\"3.1.0\"},\"require-directory-2.1.1.tgz\":{\"integrity\":\"fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7c6c4423bfb0b06f71aef763b2b9662f6d8e3134e21d1c0032ba2211e320abc833a0b0bf3d0afb46c4434932d483f6d9019b45f9354890773aff84482abba2f9\",\"name\":\"require-directory\",\"version\":\"2.1.1\"},\"require-from-string-2.0.2.tgz\":{\"integrity\":\"Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5dfd2759ee91b1ece214cbbe029f5b8a251b9a996ae92f7fa7eef0ed85cffc904786b5030d48706bebc0372b9bbaa7d9593bde53ffc36151ac0c6ed128bfef13\",\"name\":\"require-from-string\",\"version\":\"2.0.2\"},\"resedit-1.7.2.tgz\":{\"integrity\":\"vHjcY2MlAITJhC0eRD/Vv8Vlgmu9Sd3LX9zZvtGzU5ZImdTN3+d6e/4mnTyV8vEbyf1sgNIrWxhWlrys52OkEA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"bc78dc6363250084c9842d1e443fd5bfc565826bbd49ddcb5fdcd9bed1b353964899d4cddfe77a7bfe269d3c95f2f11bc9fd6c80d22b5b185696bcace763a410\",\"name\":\"resedit\",\"version\":\"1.7.2\"},\"reselect-5.2.0.tgz\":{\"integrity\":\"AgZ3UOZm3YndfrJ4OYjgrT7bmCm/1iqkjvEfH/oYjzh6PD2qw4QuT3jjnXIrpdt4MTpMXclMT3lXbmRY+XRakw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"02067750e666dd89dd7eb2783988e0ad3edb9829bfd62aa48ef11f1ffa188f387a3c3daac3842e4f78e39d722ba5db78313a4c5dc94c4f79576e6458f9745a93\",\"name\":\"reselect\",\"version\":\"5.2.0\"},\"resolve-alpn-1.2.1.tgz\":{\"integrity\":\"0a1F4l73/ZFZOakJnQ3FvkJ2+gSTQWz/r2KE5OdDY0TxPm5h4GkqkWWfM47T7HsbnOtcJVEF4epCVy6u7Q3K+g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d1ad45e25ef7fd915939a9099d0dc5be4276fa0493416cffaf6284e4e7436344f13e6e61e0692a91659f338ed3ec7b1b9ceb5c255105e1ea42572eaeed0dcafa\",\"name\":\"resolve-alpn\",\"version\":\"1.2.1\"},\"resolve-from-4.0.0.tgz\":{\"integrity\":\"pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a5bfcc6265ecb40932b11171f2988d235b4614d408140def904dc6ab812e035745ea01e9ffebe066ab021896a9bf2f0ddd0fb8a3b170beab8f25c9d9ed1632e2\",\"name\":\"resolve-from\",\"version\":\"4.0.0\"},\"responselike-2.0.1.tgz\":{\"integrity\":\"4gl03wn3hj1HP3yzgdI7d3lCkF95F21Pz4BPGvKHinyQzALR5CapwC8yIi0Rh58DEMQ/SguC03wFj2k0M/mHhw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e20974df09f7863d473f7cb381d23b777942905f79176d4fcf804f1af2878a7c90cc02d1e426a9c02f32222d11879f0310c43f4a0b82d37c058f693433f98787\",\"name\":\"responselike\",\"version\":\"2.0.1\"},\"restore-cursor-5.1.0.tgz\":{\"integrity\":\"oMA2dcrw6u0YfxJQXm342bFKX/E4sG9rbTzO9ptUcR/e8A33cHuvStiYOwH7fszkZlZ1z/ta9AAoPk2F4qIOHA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a0c03675caf0eaed187f12505e6df8d9b14a5ff138b06f6b6d3ccef69b54711fdef00df7707baf4ad8983b01fb7ecce4665675cffb5af400283e4d85e2a20e1c\",\"name\":\"restore-cursor\",\"version\":\"5.1.0\"},\"ret-0.5.0.tgz\":{\"integrity\":\"I1XxrZSQ+oErkRR4jYbAyEEu2I0avBvvMM5JN+6EBprOGRCs63ENqZ3vjavq8fBw2+62G5LF5XelKwuJpcvcxw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2355f1ad9490fa812b9114788d86c0c8412ed88d1abc1bef30ce4937ee84069ace1910aceb710da99def8dabeaf1f070dbeeb61b92c5e577a52b0b89a5cbdcc7\",\"name\":\"ret\",\"version\":\"0.5.0\"},\"retry-0.12.0.tgz\":{\"integrity\":\"9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f4b9224f08d487aad3e79e43b44f6b4d7f81281c8f7eb333100b67944b5d130af73647dfc228a1a9ed9b5800e0f8e4118edf6097a20276607f6450c2180b52a3\",\"name\":\"retry\",\"version\":\"0.12.0\"},\"reusify-1.1.0.tgz\":{\"integrity\":\"g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"83a4147dfd38a19a47b34786e69f37ac52e11de574d2e83f61ff6764ce9f2de52b3e0b814e44d039da40596b29321e794d97d54033da37735025f6d5440c5d23\",\"name\":\"reusify\",\"version\":\"1.1.0\"},\"rfdc-1.4.1.tgz\":{\"integrity\":\"q1b3N5QkRUWUl7iyylaaj3kOpIT0N2i9MqIEQXP73GVsN9cw3fdx8X63cEmWhJGi2PPCF23Ijp7ktmd39rawIA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ab56f737942445459497b8b2ca569a8f790ea484f43768bd32a2044173fbdc656c37d730ddf771f17eb77049968491a2d8f3c2176dc88e9ee4b66777f6b6b020\",\"name\":\"rfdc\",\"version\":\"1.4.1\"},\"rimraf-2.6.3.tgz\":{\"integrity\":\"mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9b0a9e5b95ec036a807a31b8ea061d10d6b15e3c7da2744d09f9fb2f476eb8fe210ae4c88bf40eecf0cad3b2897e9d5dfa2cd63ebcc4243712a816b439942b88\",\"name\":\"rimraf\",\"version\":\"2.6.3\"},\"roarr-2.15.4.tgz\":{\"integrity\":\"CHhPh+UNHD2GTXNYhPWLnU8ONHdI+5DI+4EYIAOaiD63rHeYlZvyh8P+in5999TTSFgUYuKUAjzRI4mdh/p+2A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"08784f87e50d1c3d864d735884f58b9d4f0e347748fb90c8fb811820039a883eb7ac7798959bf287c3fe8a7e7df7d4d348581462e294023cd123899d87fa7ed8\",\"name\":\"roarr\",\"version\":\"2.15.4\"},\"rolldown-1.2.4.tgz\":{\"integrity\":\"rSr7irW0K7QRWzjdJXqZowkcRdDtjRduh43rBltnVKd0VFq839l1lJoDvGJb6gl7+4rTTCrPWu+YfujUL8Ug7w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ad2afb8ab5b42bb4115b38dd257a99a3091c45d0ed8d176e878deb065b6754a774545abcdfd975949a03bc625bea097bfb8ad34c2acf5aef987ee8d42fc520ef\",\"name\":\"rolldown\",\"version\":\"1.2.4\"},\"router-2.2.0.tgz\":{\"integrity\":\"nLTrUKm2UyiL7rlhapu/Zl45FwNgkZGaCpZbIHajDYgwlJCOzLSk+cIPAnsEqV955GjILJnKbdQC1nVPz+gAYQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9cb4eb50a9b653288beeb9616a9bbf665e3917036091919a0a965b2076a30d883094908eccb4a4f9c20f027b04a95f79e468c82c99ca6dd402d6754fcfe80061\",\"name\":\"router\",\"version\":\"2.2.0\"},\"run-applescript-7.1.0.tgz\":{\"integrity\":\"DPe5pVFaAsinSaV6QjQ6gdiedWDcRCbUuiQfQa2wmWV7+xC9bGulGI8+TdRmoFkAPaBXk8CrAbnlY2ISniJ47Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0cf7b9a5515a02c8a749a57a42343a81d89e7560dc4426d4ba241f41adb099657bfb10bd6c6ba5188f3e4dd466a059003da05793c0ab01b9e56362129e2278ed\",\"name\":\"run-applescript\",\"version\":\"7.1.0\"},\"run-parallel-1.2.0.tgz\":{\"integrity\":\"5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e65e15c9947ce8b67f943c594d1ea3a8bf00144d92d0814b30fdba01b8ec2d5003c4776107f734194b07fb2dfd51f0a2dddcf3f0e950b8f9a768938ca031d004\",\"name\":\"run-parallel\",\"version\":\"1.2.0\"},\"safe-buffer-5.1.2.tgz\":{\"integrity\":\"Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"19dd94641243917958ec66c9c5fb04f3f9ef2a45045351b7f1cd6c88de903fa6bd3d3f4c98707c1a7a6c71298c252a05f0b388aedf2e77fc0fb688f2b381bafa\",\"name\":\"safe-buffer\",\"version\":\"5.1.2\"},\"safe-buffer-5.2.1.tgz\":{\"integrity\":\"rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ae9dd2a34eca71d9a629b1af81a37141226bedb1954959394bd12ad45fa9a5b468ef4f9879a0f1930e4377c34f37e183e9b8e7626d95b8fb825e6a6e62f9825d\",\"name\":\"safe-buffer\",\"version\":\"5.2.1\"},\"safe-regex2-5.1.1.tgz\":{\"integrity\":\"mOSBvHGDZMuIEZMdOz/aCEYDCv0E7nfcNsIhUF+/P+xC7Hyf3FkvymqgPbg9D1EdSGu+uKbJgy09K/RKKc7kJA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"98e481bc718364cb8811931d3b3fda0846030afd04ee77dc36c221505fbf3fec42ec7c9fdc592fca6aa03db83d0f511d486bbeb8a6c9832d3d2bf44a29cee424\",\"name\":\"safe-regex2\",\"version\":\"5.1.1\"},\"safe-stable-stringify-2.5.0.tgz\":{\"integrity\":\"b3rppTKm9T+PsVCBEOUR46GWI7fdOs00VKZ1+9c1EWDaDMvjQc6tUwuFyIprgGgTcWoVHSKrU8H31ZHA2e0RHA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6f7ae9a532a6f53f8fb1508110e511e3a19623b7dd3acd3454a675fbd7351160da0ccbe341cead530b85c88a6b806813716a151d22ab53c1f7d591c0d9ed111c\",\"name\":\"safe-stable-stringify\",\"version\":\"2.5.0\"},\"safer-buffer-2.1.2.tgz\":{\"integrity\":\"YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"619a372bcd920fb462ca2d04d4440fa232f3ee4a5ea6749023d2323db1c78355d75debdbe5d248eeda72376003c467106c71bbbdcc911e4d1c6f0a9c42b894b6\",\"name\":\"safer-buffer\",\"version\":\"2.1.2\"},\"sanitize-filename-1.6.4.tgz\":{\"integrity\":\"9ZyI08PsvdQl2r/bBIGubpVdR3RR9sY6RDiWFPreA21C/EFlQhmgo20UZlNjZMMZNubusLhAQozkA0Od5J21Eg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f59c88d3c3ecbdd425dabfdb0481ae6e955d477451f6c63a44389614fade036d42fc41654219a0a36d1466536364c31936e6eeb0b840428ce403439de49db512\",\"name\":\"sanitize-filename\",\"version\":\"1.6.4\"},\"sax-1.6.1.tgz\":{\"integrity\":\"42tBVwLWnaQvW5zc4HbZrTuWccECCZfBi92FDuwtqxasH+JbPB3/FOKb1m222K42R4WxuxzzMsTswfzgtSu64Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e36b415702d69da42f5b9cdce076d9ad3b9671c1020997c18bdd850eec2dab16ac1fe25b3c1dff14e29bd66db6d8ae364785b1bb1cf332c4ecc1fce0b52bbae1\",\"name\":\"sax\",\"version\":\"1.6.1\"},\"saxes-6.0.0.tgz\":{\"integrity\":\"xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c4083b48e9c486b9b9cc8de9b8e38acb2d4e31c32520965834963bc4b0704b37b452384f2e759f8f6185d84a53d239b368928858a1cbb1a4926a37f7e5b7189c\",\"name\":\"saxes\",\"version\":\"6.0.0\"},\"scheduler-0.27.0.tgz\":{\"integrity\":\"eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"78dbfe5ab55b2aed5fdef6d8253ff1b62179b320391cf20cb5ff48818fe72a0d2c5aacc0504bea63fc66ece71973fa9a7cbc7f88ef4580e99e480a78bf9b62fd\",\"name\":\"scheduler\",\"version\":\"0.27.0\"},\"secure-json-parse-4.1.0.tgz\":{\"integrity\":\"l4KnYfEyqYJxDwlNVyRfO2E4NTHfMKAWdUuA8J0yve2Dz/E/PdBepY03RvyJpssIpRFwJoCD55wA+mEDs6ByWA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9782a761f132a982710f094d57245f3b61383531df30a016754b80f09d32bded83cff13f3dd05ea58d3746fc89a6cb08a51170268083e79c00fa6103b3a07258\",\"name\":\"secure-json-parse\",\"version\":\"4.1.0\"},\"semver-5.7.2.tgz\":{\"integrity\":\"cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"701ce79d0f4a8c9a94ebb079d91302eb908c6ab2b6eb4d161676e471a8b05aadf1cbfe61685265b21827a63a2f31527e1df7f8f5df06127d1bf3b0b9a43435d2\",\"name\":\"semver\",\"version\":\"5.7.2\"},\"semver-6.3.1.tgz\":{\"integrity\":\"BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"051ed5bc30951cefaadb10445ac9314ba0c9135a919dbec3c7352ba206fbd425a849f89c07162c88019df8a9749a6abf329ac6f7202b464cab4314cee978cccc\",\"name\":\"semver\",\"version\":\"6.3.1\"},\"semver-7.7.4.tgz\":{\"integrity\":\"vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"bc5282d8812d427561a53efc875629f30cf0adff0233e33328c1c62597c1b738593727111675ec1e4e84e53c4892432c80d4bb99d5f700607bc7640cd9d8b894\",\"name\":\"semver\",\"version\":\"7.7.4\"},\"semver-7.8.5.tgz\":{\"integrity\":\"Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"63bfca0ec6fc2e3a28669c1aa86cae94ee8342592c8029dc7211c693eb19218e1206f52870c044147e54af57c8e1d57e26f974c3a723bee71a222e34a6e462a0\",\"name\":\"semver\",\"version\":\"7.8.5\"},\"semver-compare-1.0.0.tgz\":{\"integrity\":\"YM3/ITh2MJ5MtzaM429anh+x2jiLVjqILF4m4oyQB18W7Ggea7BfqdH/wGMK7dDiMghv/6WG7znWMwUDzJiXow==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"60cdff213876309e4cb7368ce36f5a9e1fb1da388b563a882c5e26e28c90075f16ec681e6bb05fa9d1ffc0630aedd0e232086fffa586ef39d6330503cc9897a3\",\"name\":\"semver-compare\",\"version\":\"1.0.0\"},\"send-1.2.1.tgz\":{\"integrity\":\"1gnZf7DFcoIcajTjTwjwuDjzuz4PPcY2StKPlsGAQ1+YH20IRVrBaXSWmdjowTJ6u8Rc01PoYOGHXfP1mYcZNQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d609d97fb0c572821c6a34e34f08f0b838f3bb3e0f3dc6364ad28f96c180435f981f6d08455ac169749699d8e8c1327abbc45cd353e860e1875df3f599871935\",\"name\":\"send\",\"version\":\"1.2.1\"},\"serialize-error-7.0.1.tgz\":{\"integrity\":\"8I8TjW5KMOKsZQTvoxjuSIa7foAwPWGOts+6o7sgjz41/qMD9VQHEDxi6PBvK2l0MXUmqZyNpUK+T2tQaaElvw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f08f138d6e4a30e2ac6504efa318ee4886bb7e80303d618eb6cfbaa3bb208f3e35fea303f55407103c62e8f06f2b6974317526a99c8da542be4f6b5069a125bf\",\"name\":\"serialize-error\",\"version\":\"7.0.1\"},\"serve-static-2.2.1.tgz\":{\"integrity\":\"xRXBn0pPqQTVQiC8wyQrKs2MOlX24zQ0POGaj0kultvoOCstBQM5yvOhAVSUwOMjQtTvsPWoNCHfPGwaaQJhTw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c515c19f4a4fa904d54220bcc3242b2acd8c3a55f6e334343ce19a8f492e96dbe8382b2d050339caf3a1015494c0e32342d4efb0f5a83421df3c6c1a6902614f\",\"name\":\"serve-static\",\"version\":\"2.2.1\"},\"set-cookie-parser-2.7.2.tgz\":{\"integrity\":\"oeM1lpU/UvhTxw+g3cIfxXHyJRc/uidd3yK1P242gzHds0udQBYzs3y8j4gCCW+ZJ7ad0yctld8RYO+bdurlvw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a1e33596953f52f853c70fa0ddc21fc571f225173fba275ddf22b53f6e368331ddb34b9d401633b37cbc8f8802096f9927b69dd3272d95df1160ef9b76eae5bf\",\"name\":\"set-cookie-parser\",\"version\":\"2.7.2\"},\"setprototypeof-1.2.0.tgz\":{\"integrity\":\"E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1392c35fb5aba7ce4a8a5e5b859bf8ea3f2339e6e82aae4932660cde05467461fcc45a4f59750cb0dae53830ab928c4c11e362fd7648c2e46f6385cdc18309a7\",\"name\":\"setprototypeof\",\"version\":\"1.2.0\"},\"shadcn-4.18.0.tgz\":{\"integrity\":\"tUFZgkYmfVNQVm3xX7lhSzOvDsp+O14ac5dwgXIr5mIsr79ISueb/Mu+ZtWMz0DH6v77u4eYyvbQ9TTMpSn3aw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b541598246267d5350566df15fb9614b33af0eca7e3b5e1a73977081722be6622cafbf484ae79bfccbbe66d58ccf40c7eafefbbb8798caf6d0f534cca529f76b\",\"name\":\"shadcn\",\"version\":\"4.18.0\"},\"shebang-command-2.0.0.tgz\":{\"integrity\":\"kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"907c6bdb366962d766acdd6a0e3aeb5ff675ad1d641bc0f1fa09292b51b87979af5ecc26704d614d6056614ce5ada630d7fc99a7a62e0d8efb62dbdb3747660c\",\"name\":\"shebang-command\",\"version\":\"2.0.0\"},\"shebang-regex-3.0.0.tgz\":{\"integrity\":\"7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"efef9d161b5cc77df9dee05aabc0c347836ec417ad0730bb6503a19934089c711de9b4ab5dd884cb30af1b4ed9e3851874b4a1594c97b7933fca1cfc7a471bd4\",\"name\":\"shebang-regex\",\"version\":\"3.0.0\"},\"side-channel-1.1.1.tgz\":{\"integrity\":\"6x6dK6zJdpTzF4sQeNYxwtvBzf6Eg4GtlesS94HOvTudUeyK2WXAaIfmDgsyslYrRBeFIlsi54AYsFGUuhmvrQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"eb1e9d2bacc97694f3178b1078d631c2dbc1cdfe848381ad95eb12f781cebd3b9d51ec8ad965c06887e60e0b32b2562b441785225b22e78018b05194ba19afad\",\"name\":\"side-channel\",\"version\":\"1.1.1\"},\"side-channel-list-1.0.1.tgz\":{\"integrity\":\"mjn/0bi/oUURjc5Xl7IaWi/OJJJumuoJFQJfDDyO46+hBWsfaVM65TBHq2eoZBhzl9EchxOijpkbRC8SVBQU0w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9a39ffd1b8bfa145118dce5797b21a5a2fce24926e9aea0915025f0c3c8ee3afa1056b1f69533ae53047ab67a864187397d11c8713a28e991b442f12541414d3\",\"name\":\"side-channel-list\",\"version\":\"1.0.1\"},\"side-channel-map-1.0.1.tgz\":{\"integrity\":\"VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5428c235f80cb1bcb7b53768d369db8ed33f7b0adaea33c79a94e17a7913621f291bdb9c67fd4ff12a38bb814605e93f063a4e56c0c23282c0fe2b8128815744\",\"name\":\"side-channel-map\",\"version\":\"1.0.1\"},\"side-channel-weakmap-1.0.2.tgz\":{\"integrity\":\"WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"58f4bf1ef1d04d89c78ac2e8f4c72a0473899361641cefed969be5772ae77a6e1a790a7885a8b7832b61b3083aa74d684a84e5e7cadca621408c5d9baf6024d8\",\"name\":\"side-channel-weakmap\",\"version\":\"1.0.2\"},\"siginfo-2.0.0.tgz\":{\"integrity\":\"ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c9bc7458ed7ff1b4812c459766f11dee0316dd29f7245956dd3bd7d674446c32d135035a78d37c58ad26781c0f74068e23b4ed4514499ff12cd7386bac21eeee\",\"name\":\"siginfo\",\"version\":\"2.0.0\"},\"signal-exit-3.0.7.tgz\":{\"integrity\":\"wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c270f6644fa5f923c2feea12d2f5de13d2f5fb4c2e68ca8a95fcfd00c528dfc26cc8b48159215c1d1d51ae2eb62d9735daf2ebd606f78e5ee2c10860c2901b19\",\"name\":\"signal-exit\",\"version\":\"3.0.7\"},\"signal-exit-4.1.0.tgz\":{\"integrity\":\"bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6f3c99d5ef3cc3d3b588d25b2a73a5bd84eb58f0e5e3a3b56c6d03dd7227bfef6d90faf1acdf235144e21650e4926296827d4ce827c8035dd2b86a8e6bd2a8af\",\"name\":\"signal-exit\",\"version\":\"4.1.0\"},\"simple-update-notifier-2.0.0.tgz\":{\"integrity\":\"a2B9Y0KlNXl9u/vsW6sTIu9vGEpfKu2wRV6l1H3XEas/0gUIzGzBoP/IouTcUQbm9JWZLH3COxyn03TYlFax6w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6b607d6342a535797dbbfbec5bab1322ef6f184a5f2aedb0455ea5d47dd711ab3fd20508cc6cc1a0ffc8a2e4dc5106e6f495992c7dc23b1ca7d374d89456b1eb\",\"name\":\"simple-update-notifier\",\"version\":\"2.0.0\"},\"sisteransi-1.0.5.tgz\":{\"integrity\":\"bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6cb186951d50c417329e7d9de589835f83068e566fcb631104344d1cb27c548ea5ebef45522c9314d27422f78e48fd1b7178150cf45c7c6a80d298daa94a5f56\",\"name\":\"sisteransi\",\"version\":\"1.0.5\"},\"smart-buffer-4.2.0.tgz\":{\"integrity\":\"94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f7884ad0787cacfa90976c577371ec681a0e5ca576d0c4e83e4717bf06c84962c4b3eeb8b01ab9905827da42431dbd4faf2f72acfd1dc6b088f5145c8bb4572a\",\"name\":\"smart-buffer\",\"version\":\"4.2.0\"},\"socks-2.8.9.tgz\":{\"integrity\":\"LJhUYUvItdQ0LkJTmPeaEObWXAqFyfmP85x0tch/ez9cahmhlBBLbIqDFnvBnUJGagb0JbIQrkBs1wJ+yRYpEw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2c9854614bc8b5d4342e425398f79a10e6d65c0a85c9f98ff39c74b5c87f7b3f5c6a19a194104b6c8a83167bc19d42466a06f425b210ae406cd7027ec9162913\",\"name\":\"socks\",\"version\":\"2.8.9\"},\"socks-proxy-agent-8.0.5.tgz\":{\"integrity\":\"HehCEsotFqbPW9sJ8WVYB6UbmIMv7kUUORIF2Nncq4VQvBfNBLibW9YZR5dlYCSUhwcD628pRllm7n+E+YTzJw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1de84212ca2d16a6cf5bdb09f1655807a51b98832fee4514391205d8d9dcab8550bc17cd04b89b5bd619479765602494870703eb6f29465966ee7f84f984f327\",\"name\":\"socks-proxy-agent\",\"version\":\"8.0.5\"},\"sonic-boom-4.2.1.tgz\":{\"integrity\":\"w6AxtubXa2wTXAUsZMMWERrsIRAdrK0Sc+FUytWvYAhBJLyuI4llrMIC1DtlNSdI99EI86KZum2MMq3EAZlF9Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c3a031b6e6d76b6c135c052c64c316111aec21101dacad1273e154cad5af60084124bcae238965acc202d43b65352748f7d108f3a299ba6d8c32adc4019945f5\",\"name\":\"sonic-boom\",\"version\":\"4.2.1\"},\"source-map-0.6.1.tgz\":{\"integrity\":\"UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"52381aa6e99695b3219018334fb624739617513e3a17488abbc4865ead1b7303f9773fe1d0f963e9e9c9aa3cf565bab697959aa989eb55bc16396332177178ee\",\"name\":\"source-map\",\"version\":\"0.6.1\"},\"source-map-js-1.2.1.tgz\":{\"integrity\":\"UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"51758c2a12cec1529bef6f0852d40f5f17d853ebac7726ed52b2bff2e184f0240cbeb84ea70bf30c1c23d108522fb31073bbc8b084811bc550f3e203431a5f40\",\"name\":\"source-map-js\",\"version\":\"1.2.1\"},\"source-map-support-0.5.21.tgz\":{\"integrity\":\"uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b811d4dcbddccec232617297f3c7ddac6a2fc5d482a13183459e92617b524712d95331e0e4fffae87b7aba85251eef4466877e8a75e12a8dea420c17513ff2d7\",\"name\":\"source-map-support\",\"version\":\"0.5.21\"},\"split2-4.2.0.tgz\":{\"integrity\":\"UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"51c8dc24e5a49eb36417a3cb5fcdea70733a28781528d915eb663c6b9b980d5bfdc9d19057000730aa877498ded554d6a658c6d1662908386b09d00e607e135a\",\"name\":\"split2\",\"version\":\"4.2.0\"},\"sprintf-js-1.1.3.tgz\":{\"integrity\":\"Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3a8fb4444155e7dfebcf781f24d2908819707c7692112975a5c1b200142c9e721f58e16de89363e600a883653a30b67ffc81980fe9c0f2723e9934a144445e68\",\"name\":\"sprintf-js\",\"version\":\"1.1.3\"},\"stackback-0.0.2.tgz\":{\"integrity\":\"1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d573091397d0a358c61fa63fede6e7c0f3811242049d3e10177d9de51d7e557757bde334201309b7ccdf6b15f53f7421570ad87bee7bebe8e400db524b69816f\",\"name\":\"stackback\",\"version\":\"0.0.2\"},\"stat-mode-1.0.0.tgz\":{\"integrity\":\"jH9EhtKIjuXZ2cWxmXS8ZP80XyC3iasQxMDV8jzhNJpfDb7VbQLVW4Wvsxz9QZvzV+G4YoSfBUVKDOyxLzi/sg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8c7f4486d2888ee5d9d9c5b19974bc64ff345f20b789ab10c4c0d5f23ce1349a5f0dbed56d02d55b85afb31cfd419bf357e1b862849f05454a0cecb12f38bfb2\",\"name\":\"stat-mode\",\"version\":\"1.0.0\"},\"statuses-2.0.2.tgz\":{\"integrity\":\"DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0ef132e795770c1eee927468fb888e193e5f3f5b2547cc10a2155d9278a064f32932cb5a289416870898040089137525da94e70138a18416274616501c606247\",\"name\":\"statuses\",\"version\":\"2.0.2\"},\"std-env-4.2.0.tgz\":{\"integrity\":\"oCUKSupKTHX53EyjDtuZQ64pjLJ6yYCtpmEw0goYxtjG9KpbRe8KAsl2tBUGU9DyMcJ0RwJ8GqJAFzMXcXW1Rw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a0250a4aea4a4c75f9dc4ca30edb9943ae298cb27ac980ada66130d20a18c6d8c6f4aa5b45ef0a02c976b4150653d0f231c27447027c1aa2401733177175b547\",\"name\":\"std-env\",\"version\":\"4.2.0\"},\"stdin-discarder-0.2.2.tgz\":{\"integrity\":\"UhDfHmA92YAlNnCfhmq0VeNL5bDbiZGg7sZ2IvPsXubGkiNa9EC+tUTsjBRsYUAz87btI6/1wf4XoVvQ3uRnmQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5210df1e603dd9802536709f866ab455e34be5b0db8991a0eec67622f3ec5ee6c692235af440beb544ec8c146c614033f3b6ed23aff5c1fe17a15bd0dee46799\",\"name\":\"stdin-discarder\",\"version\":\"0.2.2\"},\"stream-shift-1.0.3.tgz\":{\"integrity\":\"76ORR0DO1o1hlKwTbi/DM3EXWGf3ZJYO8cXX5RJwnul2DEg2oyoZyjLNoQM8WsvZiFKCRfC1O0J7iCvie3RZmQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"efa3914740ced68d6194ac136e2fc33371175867f764960ef1c5d7e512709ee9760c4836a32a19ca32cda1033c5acbd988528245f0b53b427b882be27b745999\",\"name\":\"stream-shift\",\"version\":\"1.0.3\"},\"string-width-4.2.3.tgz\":{\"integrity\":\"wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c0ac90450a63274b08a7ad84ad265d1ac8cc256b1aa79a1136284786ee86ec954effd8c807a5327af2feb57b8eaab9e0f23fdcc4a4d6c96530bd24eb8a2673fe\",\"name\":\"string-width\",\"version\":\"4.2.3\"},\"string-width-7.2.0.tgz\":{\"integrity\":\"tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b6c693224296f5be0df80123f92540f96849cd5effccc85c4aeefc98b2964a4edc5cc3921ec04a15652cd1f5b0abc4322b73202414115fa19b8b89186ddbc691\",\"name\":\"string-width\",\"version\":\"7.2.0\"},\"string_decoder-1.1.1.tgz\":{\"integrity\":\"n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9ff4a19ef0e2e851db6d57ef8aba3e5a88e2173bfeb3c30f30705ccd578f7d4a4324bc282d3d21b759786300426e2f29240bde104767907c8fc933ff9b345fc2\",\"name\":\"string_decoder\",\"version\":\"1.1.1\"},\"string_decoder-1.3.0.tgz\":{\"integrity\":\"hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"864457f14d568c915df0bb03276c90ff0596c5aa2912c0015355df90cf00fa3d3ef392401a9a6dd7a72bd56860e8a21b6f8a2453a32a97a04e8febaea7fc0a78\",\"name\":\"string_decoder\",\"version\":\"1.3.0\"},\"stringify-object-5.0.0.tgz\":{\"integrity\":\"zaJYxz2FtcMb4f+g60KsRNFOpVMUyuJgA51Zi5Z1DOTC3S59+OQiVOzE9GZt0x72uBGWKsQIuBKeF9iusmKFsg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"cda258c73d85b5c31be1ffa0eb42ac44d14ea55314cae260039d598b96750ce4c2dd2e7df8e42254ecc4f4666dd31ef6b811962ac408b8129e17d8aeb26285b2\",\"name\":\"stringify-object\",\"version\":\"5.0.0\"},\"strip-ansi-6.0.1.tgz\":{\"integrity\":\"Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"637f153d21dcaa416b0a916743dbee4979aabaebf9a1738aa46793e9a1abaf7a3719cf409556ba2417d448e0a76f1186645fbfd28a08ecaacfb944b3b54754e4\",\"name\":\"strip-ansi\",\"version\":\"6.0.1\"},\"strip-ansi-7.2.0.tgz\":{\"integrity\":\"yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c833cc363a785b27d80641e78c844b7dc6b58ba28cc860adb1582829eff3d7eeafba481a10d76018166df9998a3dce206afbc46793a01df1ddadace180dc86ef\",\"name\":\"strip-ansi\",\"version\":\"7.2.0\"},\"strip-bom-3.0.0.tgz\":{\"integrity\":\"vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"bdabc03115ce80154d17a9f210498bdc304ad7d891a437282305beb3043e09b1a2bbb963bbab7e264940d4c1f07a85ad69d82de0849552c5cbc83ab7e1d75cc0\",\"name\":\"strip-bom\",\"version\":\"3.0.0\"},\"strip-final-newline-2.0.0.tgz\":{\"integrity\":\"BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"06ba6f7cd004ddd72fabb965df156e9b38ca8d9439b48d6c11420aaf752892cd17525e394addc595ab55a9e7fda6b9388d10f3856e96660fb76e4f77cbaa4b8c\",\"name\":\"strip-final-newline\",\"version\":\"2.0.0\"},\"strip-final-newline-4.0.0.tgz\":{\"integrity\":\"aulFJcD6YK8V1G7iRB5tigAP4TsHBZZrOV8pjV++zdUwmeV8uzbY7yn6h9MswN62adStNZFuCIx4haBnRuMDaw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6ae94525c0fa60af15d46ee2441e6d8a000fe13b0705966b395f298d5fbecdd53099e57cbb36d8ef29fa87d32cc0deb669d4ad35916e088c7885a06746e3036b\",\"name\":\"strip-final-newline\",\"version\":\"4.0.0\"},\"strip-indent-3.0.0.tgz\":{\"integrity\":\"laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"95a2536b725bf95429682e83b1e1e117b75756a1d37c93c24436846e277f76b3a1822b60624bbf95eb4c52a397168595d3320851b8e9747dadfad623e1b40c45\",\"name\":\"strip-indent\",\"version\":\"3.0.0\"},\"strip-json-comments-5.0.3.tgz\":{\"integrity\":\"1tB5mhVo7U+ETBKNf92xT4hrQa3pm0MZ0PQvuDnWgAAGHDsfp4lPSpiS6psrSiet87wyGPh9ft6wmhOMQ0hDiw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d6d0799a1568ed4f844c128d7fddb14f886b41ade99b4319d0f42fb839d68000061c3b1fa7894f4a9892ea9b2b4a27adf3bc3218f87d7edeb09a138c4348438b\",\"name\":\"strip-json-comments\",\"version\":\"5.0.3\"},\"sumchecker-3.0.1.tgz\":{\"integrity\":\"MvjXzkz/BOfyVDkG0oFOtBxHX2u3gKbMHIF/dXblZsgD3BWOFLmHovIpZY7BykJdAjcqRCBi1WYBNdEC9yI7vg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"32f8d7ce4cff04e7f2543906d2814eb41c475f6bb780a6cc1c817f7576e566c803dc158e14b987a2f229658ec1ca425d02372a442062d5660135d102f7223bbe\",\"name\":\"sumchecker\",\"version\":\"3.0.1\"},\"supports-color-7.2.0.tgz\":{\"integrity\":\"qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"aa9080bd197db2db8e1ef78ab27ec79dc251befe74d6a21a70acd094effe2f0c5cf7ed2adb02f2bf80dfbedf34fc33e7da9a8e06c25d0e2a205c647df8ebf047\",\"name\":\"supports-color\",\"version\":\"7.2.0\"},\"symbol-tree-3.2.4.tgz\":{\"integrity\":\"9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f50364e4ac0317e06fcfe3f239b9264988c8e64b15518b635bb014db6af634a71f2c9717a7dea1903594dfe5e774eb146fe010f5085fcdf093d8ef823564f94f\",\"name\":\"symbol-tree\",\"version\":\"3.2.4\"},\"systeminformation-5.33.1.tgz\":{\"integrity\":\"DEN6ICHk3Tk0Uf/hrAHh7xlt7iL5CJFBtPZinA0H62DrGG/KPKqq/Nzj6lCXPS4Ay/sf/14zNnk9LpqKzBIc+w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0c437a2021e4dd393451ffe1ac01e1ef196dee22f9089141b4f6629c0d07eb60eb186fca3caaaafcdce3ea50973d2e00cbfb1fff5e3336793d2e9a8acc121cfb\",\"name\":\"systeminformation\",\"version\":\"5.33.1\"},\"tailwind-merge-3.6.0.tgz\":{\"integrity\":\"uxL7qAVQriqRQPAyK3pj66VqskWqoZ37PW94jwOTwNfq/z9oyu1V+eqrZqtR2+fCiXdYOZe/Modt8GtvqNzu+w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"bb12fba80550ae2a9140f0322b7a63eba56ab245aaa19dfb3d6f788f0393c0d7eaff3f68caed55f9eaab66ab51dbe7c28977583997bf32876df06b6fa8dceefb\",\"name\":\"tailwind-merge\",\"version\":\"3.6.0\"},\"tailwindcss-4.3.3.tgz\":{\"integrity\":\"gOhV3P7ufE62QDGg1zVaTgCR+EtPv92k2nIhVcVKcLmxT1sUBsQGhnZj175j+MqRt4zLF7ic+sCYjfhxMxj7YQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"80e855dcfeee7c4eb64031a0d7355a4e0091f84b4fbfdda4da722155c54a70b9b14f5b1406c406867663d7be63f8ca91b78ccb17b89cfac0988df8713318fb61\",\"name\":\"tailwindcss\",\"version\":\"4.3.3\"},\"tapable-2.3.3.tgz\":{\"integrity\":\"uxc/zpqFg6x7C8vOE7lh6Lbda8eEL9zmVm/PLeTPBRhh1xCgdWaQ+J1CUieGpIfm2HdtsUpRv+HshiasBMcc6A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"bb173fce9a8583ac7b0bcbce13b961e8b6dd6bc7842fdce6566fcf2de4cf051861d710a0756690f89d42522786a487e6d8776db14a51bfe1ec8626ac04c71ce8\",\"name\":\"tapable\",\"version\":\"2.3.3\"},\"tar-7.5.22.tgz\":{\"integrity\":\"MFO/QzvtAOmJbkhOaCTvbGcFN9L9b+JunIsDwaKljSOdcLMea3NJ1k9Usz/rjdfSXTq4dfzfeS7W4p4YOAAHeA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3053bf433bed00e9896e484e6824ef6c670537d2fd6fe26e9c8b03c1a2a58d239d70b31e6b7349d64f54b33feb8dd7d25d3ab875fcdf792ed6e29e1838000778\",\"name\":\"tar\",\"version\":\"7.5.22\"},\"temp-0.9.4.tgz\":{\"integrity\":\"yYrrsWnrXMcdsnu/7YMYAofM1ktpL5By7vZhf15CrXijWWrEYZks5AXBudalfSWJLlnen/QUJUB5aoB0kqZUGA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c98aebb169eb5cc71db27bbfed83180287ccd64b692f9072eef6617f5e42ad78a3596ac461992ce405c1b9d6a57d25892e59de9ff4142540796a807492a65418\",\"name\":\"temp\",\"version\":\"0.9.4\"},\"temp-file-3.4.0.tgz\":{\"integrity\":\"C5tjlC/HCtVUOi3KWVokd4vHVViOmGjtLwIh4MuzPo/nMYTV/p1urt3RnMz2IWXDdKEGJH3k5+KPxtqRsUYGtg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0b9b63942fc70ad5543a2dca595a24778bc755588e9868ed2f0221e0cbb33e8fe73184d5fe9d6eaeddd19cccf62165c374a106247de4e7e28fc6da91b14606b6\",\"name\":\"temp-file\",\"version\":\"3.4.0\"},\"thread-stream-4.2.0.tgz\":{\"integrity\":\"e2zZ96wSChazBsbENf/Pcm/4swHt2cEKQ92rhUjkL9GCKiTDJIaTBenjE/m9DXi0QBmTMDkFDdOomUy20A1tDQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7b6cd9f7ac120a16b306c6c435ffcf726ff8b301edd9c10a43ddab8548e42fd1822a24c324869305e9e313f9bd0d78b44019933039050dd3a8994cb6d00d6d0d\",\"name\":\"thread-stream\",\"version\":\"4.2.0\"},\"tiny-async-pool-1.3.0.tgz\":{\"integrity\":\"01EAw5EDrcVrdgyCLgoSPvqznC0sVxDSVeiOz09FUpjh71G79VCqneOr+xvt7T1r76CF6ZZfPjHorN2+d+3mqA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d35100c39103adc56b760c822e0a123efab39c2d2c5710d255e88ecf4f455298e1ef51bbf550aa9de3abfb1beded3d6befa085e9965f3e31e8acddbe77ede6a8\",\"name\":\"tiny-async-pool\",\"version\":\"1.3.0\"},\"tiny-invariant-1.3.3.tgz\":{\"integrity\":\"+FbBPE1o9QAYvviau/qC5SE3caw21q3xkvWKBtja5vgqOWIHHJ3ioaq1VPfn/Szqctz2bU/oYeKd9/z5BL+PVg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f856c13c4d68f50018bef89abbfa82e5213771ac36d6adf192f58a06d8dae6f82a3962071c9de2a1aab554f7e7fd2cea72dcf66d4fe861e29df7fcf904bf8f56\",\"name\":\"tiny-invariant\",\"version\":\"1.3.3\"},\"tiny-typed-emitter-2.1.0.tgz\":{\"integrity\":\"qVtvMxeXbVej0cQWKqVSSAHmKZEHAvxdF8HEUBFWts8h+xEo5m/lEiPakuyZ3BnCBjOD8i24kzNOiOLLgsSxhA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a95b6f3317976d57a3d1c4162aa5524801e629910702fc5d17c1c4501156b6cf21fb1128e66fe51223da92ec99dc19c2063383f22db893334e88e2cb82c4b184\",\"name\":\"tiny-typed-emitter\",\"version\":\"2.1.0\"},\"tinybench-2.9.0.tgz\":{\"integrity\":\"0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d3e0d4bea58c55a94b9a16ba96be240fc88030ad47cd5d3f68a9c2b566fdbfdeb8d539cffcc15becf7366f1a314234d7004aebc9756050e7efd98a8d965a867a\",\"name\":\"tinybench\",\"version\":\"2.9.0\"},\"tinyexec-1.3.0.tgz\":{\"integrity\":\"QKAl9m8gWWGHV8jZcPeym6j+XULi6tOf1mT83WYJ4Lk2ytW/uwAWkrP0uFsdoYMdueVJ0qs26wZ+23xeB4ibNQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"40a025f66f2059618757c8d970f7b29ba8fe5d42e2ead39fd664fcdd6609e0b936cad5bfbb001692b3f4b85b1da1831db9e549d2ab36eb067edb7c5e07889b35\",\"name\":\"tinyexec\",\"version\":\"1.3.0\"},\"tinyglobby-0.2.17.tgz\":{\"integrity\":\"wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c1747f758a5ca8a99f5a911d66388a24ec023459dd0f40cc9eb5bf7188d51adb449017d581c2c51e836b963e3b9a339589cf72c8dbbae5a96c805e0d4324dada\",\"name\":\"tinyglobby\",\"version\":\"0.2.17\"},\"tinyrainbow-3.1.1.tgz\":{\"integrity\":\"yau8yJdTt989Mm0Bd/236QnzEiPf2xLLTqUZRUJOo/3CB078LSwzei343DgtJVmfJKJE3TMINY1u42SQsP6mXw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c9abbcc89753b7df3d326d0177fdb7e909f31223dfdb12cb4ea51945424ea3fdc2074efc2d2c337a2df8dc382d25599f24a244dd3308358d6ee36490b0fea65f\",\"name\":\"tinyrainbow\",\"version\":\"3.1.1\"},\"tldts-7.4.10.tgz\":{\"integrity\":\"GgouD1B+sWwvkaEq8vXC15DjQitxbvs12oIXELpconwm+Tg3zfcEv4jgzq3vtKverDXsg3VI8aRgNL2Nra0Iog==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1a0a2e0f507eb16c2f91a12af2f5c2d790e3422b716efb35da821710ba5ca27c26f93837cdf704bf88e0ceadefb4abdeac35ec837548f1a46034bd8dadad08a2\",\"name\":\"tldts\",\"version\":\"7.4.10\"},\"tldts-core-7.4.10.tgz\":{\"integrity\":\"KnQjp53ZekKgm/r3l+u8kJGGzYgrWdP8+Mql7a4vijh2WE0IrZWspQj/TpTxDho/YxO+AnOZnIjQcCD+q6iJsw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2a7423a79dd97a42a09bfaf797ebbc909186cd882b59d3fcf8caa5edae2f8a3876584d08ad95aca508ff4e94f10e1a3f6313be0273999c88d07020feaba889b3\",\"name\":\"tldts-core\",\"version\":\"7.4.10\"},\"tmp-0.2.7.tgz\":{\"integrity\":\"e0votIpp4Uo2AJYSzVHV6xCcawuiez3DzqDAbrTc3YxBkplN6e+dM13ZeIcZnDg/QpSuU2zfZ3rzwY8ukEnaXw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7b4be8b48a69e14a36009612cd51d5eb109c6b0ba27b3dc3cea0c06eb4dcdd8c4192994de9ef9d335dd97887199c383f4294ae536cdf677af3c18f2e9049da5f\",\"name\":\"tmp\",\"version\":\"0.2.7\"},\"tmp-promise-3.0.3.tgz\":{\"integrity\":\"RwM7MoPojPxsOBYnyd2hy0bxtIlVrihNs9pj5SUvY8Zz1sQcQG2tG1hSr8PDxfgEB8RNKDhqbIlroIarSNDNsQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"47033b3283e88cfc6c381627c9dda1cb46f1b48955ae284db3da63e5252f63c673d6c41c406dad1b5852afc3c3c5f80407c44d28386a6c896ba086ab48d0cdb1\",\"name\":\"tmp-promise\",\"version\":\"3.0.3\"},\"to-regex-range-5.0.1.tgz\":{\"integrity\":\"65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"eb93fb8b3e97e7212bd5cc1c82f4316db230ed493780ecb974876d678ac3bde2ea86b7493fe2e2fc7c7ab722b43446fed860b29de08c2621aaac00c248d93cb1\",\"name\":\"to-regex-range\",\"version\":\"5.0.1\"},\"toad-cache-3.7.4.tgz\":{\"integrity\":\"m1TdR/rvT7kgGJZhspNtXdsdYk0fddFpJJFlG5s+UkPFo6lkLoZ3YLOaovPYjq1R75NP5JfeTlSHaOsE09peCg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9b54dd47faef4fb920189661b2936d5ddb1d624d1f75d1692491651b9b3e5243c5a3a9642e867760b39aa2f3d88ead51ef934fe497de4e548768eb04d3da5e0a\",\"name\":\"toad-cache\",\"version\":\"3.7.4\"},\"toidentifier-1.0.1.tgz\":{\"integrity\":\"o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a39b123ca12483f0c840d987e37574fee7ab2eba7355e764521f2d18dbda797a5fa6ec2329e9e54a8c7fd8efc14e5654b447be246eece58844cfad3c3e500744\",\"name\":\"toidentifier\",\"version\":\"1.0.1\"},\"tough-cookie-6.0.2.tgz\":{\"integrity\":\"exgYmnmL/sJpR3upZfXG5PoatXQii55xAiXGXzY+sROLZ/Y+SLcp9PgJNI9Vz37HpQ74WvDcLT8eqm+kV3FzrA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7b18189a798bfec269477ba965f5c6e4fa1ab574228b9e710225c65f363eb1138b67f63e48b729f4f809348f55cf7ec7a50ef85af0dc2d3f1eaa6fa4577173ac\",\"name\":\"tough-cookie\",\"version\":\"6.0.2\"},\"tr46-6.0.0.tgz\":{\"integrity\":\"bLVMLPtstlZ4iMQHpFHTR7GAGj2jxi8Dg0s2h2MafAE4uSWF98FC/3MomU51iQAMf8/qDUbKWf5GxuvvVcXEhw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6cb54c2cfb6cb6567888c407a451d347b1801a3da3c62f03834b3687631a7c0138b92585f7c142ff7328994e7589000c7fcfea0d46ca59fe46c6ebef55c5c487\",\"name\":\"tr46\",\"version\":\"6.0.0\"},\"truncate-utf8-bytes-1.0.2.tgz\":{\"integrity\":\"95Pu1QXQvruGEhv62XCMO3Mm90GscOCClvrIUwCM0PYOXK3kaF3l3sIHxx71ThJfcbM2O5Au6SO3AWCSEfW4mQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f793eed505d0bebb86121bfad9708c3b7326f741ac70e08296fac853008cd0f60e5cade4685de5dec207c71ef54e125f71b3363b902ee923b701609211f5b899\",\"name\":\"truncate-utf8-bytes\",\"version\":\"1.0.2\"},\"ts-morph-26.0.0.tgz\":{\"integrity\":\"ztMO++owQnz8c/gIENcM9XfCEzgoGphTv+nKpYNM1bgsdOVC/jRZuEBf6N+mLLDNg68Kl+GgUZfOySaRiG1/Ug==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ced30efbea30427cfc73f80810d70cf577c21338281a9853bfe9caa5834cd5b82c74e542fe3459b8405fe8dfa62cb0cd83af0a97e1a05197cec92691886d7f52\",\"name\":\"ts-morph\",\"version\":\"26.0.0\"},\"tsconfig-paths-4.2.0.tgz\":{\"integrity\":\"NoZ4roiN7LnbKn9QqE1amc9DJfzvZXxF4xDavcOWt1BPkdx+m+0gJuPM+S0vCe7zTJMYUP0R8pO2XMr+Y8oLIg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"368678ae888decb9db2a7f50a84d5a99cf4325fcef657c45e310dabdc396b7504f91dc7e9bed2026e3ccf92d2f09eef34c931850fd11f293b65ccafe63ca0b22\",\"name\":\"tsconfig-paths\",\"version\":\"4.2.0\"},\"tslib-2.8.1.tgz\":{\"integrity\":\"oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a0916ef781d06fe29576e49440bef09e99aa9df98bb0e03f9c087a6fa107d30084a0ad3f98f79753a737c0a0d5f373243ae1cf447b525ca294f7d2016b34bfdb\",\"name\":\"tslib\",\"version\":\"2.8.1\"},\"tsx-4.23.12.tgz\":{\"integrity\":\"FDf4L4sYzKtzWYhU/Xm0AQFdTjdIxNo9ElTf2mxXM6k8YMHXzYUe4yODVaXP4V9uMFbVg8c0qyBccK2OOxb45Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1437f82f8b18ccab73598854fd79b401015d4e3748c4da3d1254dfda6c5733a93c60c1d7cd851ee3238355a5cfe15f6e3056d583c734ab205c70ad8e3b16f8e5\",\"name\":\"tsx\",\"version\":\"4.23.12\"},\"tw-animate-css-1.4.0.tgz\":{\"integrity\":\"7bziOlRqH0hJx80h/3mbicLW7o8qLsH5+RaLR2t+OHM3D0JlWGODQKQ4cxbK7WlvmUxpcj6Kgu6EKqjrGFe3QQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"edbce23a546a1f4849c7cd21ff799b89c2d6ee8f2a2ec1f9f9168b476b7e3873370f426558638340a4387316caed696f994c69723e8a82ee842aa8eb1857b741\",\"name\":\"tw-animate-css\",\"version\":\"1.4.0\"},\"type-fest-0.13.1.tgz\":{\"integrity\":\"34R7HTnG0XIJcBSn5XhDd7nNFPRcXYRZrBB2O2jdKqYODldSzBAqzsWoZYYvduky73toYS/ESqxPvkDf/F0XMg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"df847b1d39c6d172097014a7e5784377b9cd14f45c5d8459ac10763b68dd2aa60e0e5752cc102acec5a865862f76e932ef7b68612fc44aac4fbe40dffc5d1732\",\"name\":\"type-fest\",\"version\":\"0.13.1\"},\"type-is-2.1.0.tgz\":{\"integrity\":\"faYHw0anBbc/kWF3zFTEnxSFOAGUX9GFbOBthvDdLsIlEoWOFOtS0zgCiQYwIskL9iGXZL3kAXD8OoZ4GmMATA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7da607c346a705b73f916177cc54c49f14853801945fd1856ce06d86f0dd2ec22512858e14eb52d3380289063022c90bf6219764bde40170fc3a86781a63004c\",\"name\":\"type-is\",\"version\":\"2.1.0\"},\"typescript-7.0.2.tgz\":{\"integrity\":\"8FYau96o3NKOhbjKi/qNvG/W5jhzxkbdm5sj9AbZ/5T5sWqn3hJgLfGx27sRKZWTvyzCP8dLRBTf5tBTSRVUNA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f0561abbdea8dcd28e85b8ca8bfa8dbc6fd6e63873c646dd9b9b23f406d9ff94f9b16aa7de12602df1b1dbbb11299593bf2cc23fc74b4414dfe6d05349155434\",\"name\":\"typescript\",\"version\":\"7.0.2\"},\"uint8-util-2.3.2.tgz\":{\"integrity\":\"u1c0/eiT1IW+c5+ogbmE2Fu2hmtJQPkuzDmXD/4crMU4FPMjkTkFnjJ2NN/9AsZ9YWcc7yE869uc3WB8wIZEEA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"bb5734fde893d485be739fa881b984d85bb6866b4940f92ecc39970ffe1cacc53814f3239139059e327634dffd02c67d61671cef213cebdb9cdd607cc0864410\",\"name\":\"uint8-util\",\"version\":\"2.3.2\"},\"undici-6.28.0.tgz\":{\"integrity\":\"LIY910g9TI13YS95lrMFrs8Rm/u/irgHeTWoKCoteeJ04CUJ92eEfj0rVn+7VKMPBpUPiUoBKfhNyLI23EE/KA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2c863dd7483d4c8d77612f7996b305aecf119bfbbf8ab8077935a8282a2d79e274e02509f767847e3d2b567fbb54a30f06950f894a0129f84dc8b236dc413f28\",\"name\":\"undici\",\"version\":\"6.28.0\"},\"undici-7.29.0.tgz\":{\"integrity\":\"IDxfleLmmbSskfWSUATiN1nfn2rDuvnMOqb5CWR92iIfojA0Ud+ulOAAEQ57LPr9rWmsreUyf5lwyao+7GNNVw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"203c5f95e2e699b4ac91f5925004e23759df9f6ac3baf9cc3aa6f909647dda221fa2303451dfae94e000110e7b2cfafdad69acade5327f9970c9aa3eec634d57\",\"name\":\"undici\",\"version\":\"7.29.0\"},\"undici-8.10.0.tgz\":{\"integrity\":\"HvltHd7avK13QIw/oLe4qoOLyoVSoafqJ2jYOrtMRBkbYT31eiBQ8O0ehRKZiEZCMEyLFQNIADpgCWC5fALvYQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1ef96d1ddedabcad77408c3fa0b7b8aa838bca8552a1a7ea2768d83abb4c44191b613df57a2050f0ed1e851299884642304c8b150348003a600960b97c02ef61\",\"name\":\"undici\",\"version\":\"8.10.0\"},\"undici-types-7.18.2.tgz\":{\"integrity\":\"AsuCzffGHJybSaRrmr5eHr81mwJU3kjw6M+uprWvCXiNeN9SOGwQ3Jn8jb8m3Z6izVgknn1R0FTCEAP2QrLY/w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"02cb82cdf7c61c9c9b49a46b9abe5e1ebf359b0254de48f0e8cfaea6b5af09788d78df52386c10dc99fc8dbf26dd9ea2cd58249e7d51d054c21003f642b2d8ff\",\"name\":\"undici-types\",\"version\":\"7.18.2\"},\"undici-types-8.3.0.tgz\":{\"integrity\":\"j375ScV60dom+YkPFIfTLcOiPxkN/buHz5GobjLhixFuANaNs3C9l4GmrWqejgXWJ7BbJcFYpTEUkS1Ge8bpZQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8f7ef949c57ad1da26f9890f1487d32dc3a23f190dfdbb87cf91a86e32e18b116e00d68db370bd9781a6ad6a9e8e05d627b05b25c158a53114912d467bc6e965\",\"name\":\"undici-types\",\"version\":\"8.3.0\"},\"unicorn-magic-0.3.0.tgz\":{\"integrity\":\"+QBBXBCvifc56fsbuxZQ6Sic3wqqc3WWaqxs58gvJrcOuN83HGTCwz3oS5phzU9LthRNE9VrJCFCLUgHeeFnfA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"f900415c10af89f739e9fb1bbb1650e9289cdf0aaa7375966aac6ce7c82f26b70eb8df371c64c2c33de84b9a61cd4f4bb6144d13d56b2421422d480779e1677c\",\"name\":\"unicorn-magic\",\"version\":\"0.3.0\"},\"universalify-0.1.2.tgz\":{\"integrity\":\"rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ac125e2390970259b2d6957eeb5ed607d27add4e9771acc71c5d9fd9d6c98b1e17ce9505d114b765b8f414620e080bdae4ffddfc604e61a002435c3ed1acd492\",\"name\":\"universalify\",\"version\":\"0.1.2\"},\"universalify-2.0.1.tgz\":{\"integrity\":\"gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"829b4735082120d9dcfef4c6224d12385185357c3b255ae5454b42a2725196f6b0e83b97d303b925e928f6c5ab301861f8fb18019ee85c088e9dffd42a88328b\",\"name\":\"universalify\",\"version\":\"2.0.1\"},\"unpipe-1.0.0.tgz\":{\"integrity\":\"pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a63cb66d8852b2e7f05a52b03dcfa5ddc37bfb0b8994aeaecf461d2443a54036e5ea3a3f6253e2e266fc6a0524542f0117b57c36ecdec8f36a464b00de1ced29\",\"name\":\"unpipe\",\"version\":\"1.0.0\"},\"unzipper-0.12.5.tgz\":{\"integrity\":\"tXYOi9R57Uj/2Z25SOs5RRSzq886MBQj2gY8dPL+xl/kv6s6SvByoKfAtvfVeEuhntWDgjd2o9p2lb4TVPAz0A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b5760e8bd479ed48ffd99db948eb394514b3abcf3a301423da063c74f2fec65fe4bfab3a4af072a0a7c0b6f7d5784ba19ed583823776a3da7695be1354f033d0\",\"name\":\"unzipper\",\"version\":\"0.12.5\"},\"update-browserslist-db-1.3.1.tgz\":{\"integrity\":\"ZZ61DsRsOnakl74HAmp3oSN4aXUmEWXf+i/yv0h7tIBfICc3VdrFErQKUUKPgu3AMsTUMbcongALEN4l6GSUrQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"659eb50ec46c3a76a497be07026a77a123786975261165dffa2ff2bf487bb4805f20273755dac512b40a51428f82edc032c4d431b7289e000b10de25e86494ad\",\"name\":\"update-browserslist-db\",\"version\":\"1.3.1\"},\"use-callback-ref-1.3.3.tgz\":{\"integrity\":\"jQL3lRnocaFtu3V00JToYz/4QkNWswxijDaCVNZRiRTO3HQDLsdu1ZtmIUvV4yPp+rvWm5j0y0TG/S61cuijTg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8d02f79519e871a16dbb7574d094e8633ff8424356b30c628c368254d6518914cedc74032ec76ed59b66214bd5e323e9fabbd69b98f4cb44c6fd2eb572e8a34e\",\"name\":\"use-callback-ref\",\"version\":\"1.3.3\"},\"use-sidecar-1.1.3.tgz\":{\"integrity\":\"Fedw0aZvkhynoPYlA5WXrMCAMm+nSWdZt6lzJQ7Ok8S6Q+VsHmHpRWndVRJ8Be0ZbkfPc5LRYH+5XrzXcEeLRQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"15e770d1a66f921ca7a0f625039597acc080326fa7496759b7a973250ece93c4ba43e56c1e61e94569dd55127c05ed196e47cf7392d1607fb95ebcd770478b45\",\"name\":\"use-sidecar\",\"version\":\"1.1.3\"},\"use-sync-external-store-1.6.0.tgz\":{\"integrity\":\"Pp6GSwGP/NrPIrxVFAIkOQeyw8lFenOHijQWkUTrDvrF4ALqylP2C/KCkeS9dpUM3KvYRQhna5vt7IL95+ZQ9w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3e9e864b018ffcdacf22bc551402243907b2c3c9457a73878a34169144eb0efac5e002eaca53f60bf28291e4bd76950cdcabd84508676b9bedec82fde7e650f7\",\"name\":\"use-sync-external-store\",\"version\":\"1.6.0\"},\"utf8-byte-length-1.0.5.tgz\":{\"integrity\":\"Xn0w3MtiQ6zoz2vFyUVruaCL53O/DwUvkEeOvj+uulMm0BkUGYWmBYVyElqZaSLhY6ZD0ulfU3aBra2aVT4xfA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"5e7d30dccb6243ace8cf6bc5c9456bb9a08be773bf0f052f90478ebe3faeba5326d019141985a6058572125a996922e163a643d2e95f537681adad9a553e317c\",\"name\":\"utf8-byte-length\",\"version\":\"1.0.5\"},\"util-deprecate-1.0.2.tgz\":{\"integrity\":\"EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"10f0f9ab5b97c85c49a42acb9c27359c79eade039ae83641a1c008888d93692080ed5089d5424331a802cc891736c5187c3d5d68afff2d3110f318886eb1ed73\",\"name\":\"util-deprecate\",\"version\":\"1.0.2\"},\"uuid-14.0.1.tgz\":{\"integrity\":\"6ZxzVpzDXDa3bJWaHilVayA+BH/1zmxCJoVgvmqJnid/gPoKHxUrS/aC/T6LGQtNHT+XHG9fXPJB4d+IrU30Ew==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"e99c73569cc35c36b76c959a1e29556b203e047ff5ce6c42268560be6a899e277f80fa0a1f152b4bf682fd3e8b190b4d1d3f971c6f5f5cf241e1df88ad4df413\",\"name\":\"uuid\",\"version\":\"14.0.1\"},\"validate-npm-package-name-7.0.2.tgz\":{\"integrity\":\"hVDIBwsRruT73PbK7uP5ebUt+ezEtCmzZz3F59BSr2F6OVFnJ/6h8liuvdLrQ88Xmnk6/+xGGuq+pG9WwTuy3A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8550c8070b11aee4fbdcf6caeee3f979b52df9ecc4b429b3673dc5e7d052af617a39516727fea1f258aebdd2eb43cf179a793affec461aeabea46f56c13bb2dc\",\"name\":\"validate-npm-package-name\",\"version\":\"7.0.2\"},\"vary-1.1.2.tgz\":{\"integrity\":\"BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"04d19b58b7ddd1e50f69b8645d4566d23f2ebaf444c93879a2f45afddca8c3f06a01b649c82fb97d4f88cd03b39802b362a6110084a8461750af778867f3d7aa\",\"name\":\"vary\",\"version\":\"1.1.2\"},\"vaul-1.1.2.tgz\":{\"integrity\":\"ZFkClGpWyI2WUQjdLJ/BaGuV6AVQiJ3uELGk3OYtP+B6yCO7Cmn9vPFXVJkRaGkOJu3m8bQMgtyzNHixULceQA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"645902946a56c88d965108dd2c9fc1686b95e80550889dee10b1a4dce62d3fe07ac823bb0a69fdbcf15754991168690e26ede6f1b40c82dcb33478b150b71e40\",\"name\":\"vaul\",\"version\":\"1.1.2\"},\"victory-vendor-37.3.6.tgz\":{\"integrity\":\"SbPDPdDBYp+5MJHhBCAyI7wKM3d5ivekigc2Dk2s7pgbZ9wIgIBYGVw4zGHBml/qTFbexrofXW6Gu4noGxrOwQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"49b3c33dd0c1629fb93091e104203223bc0a3377798af7a48a07360e4dacee981b67dc08808058195c38cc61c19a5fea4c56dec6ba1f5d6e86bb89e81b1acec1\",\"name\":\"victory-vendor\",\"version\":\"37.3.6\"},\"vite-8.2.1.tgz\":{\"integrity\":\"EU/eS7BH3XROHh2YnBefjM6DBKA6ZeMZEYQbj7NLWg5wHYlhB8B/Mayd5XsgWq+NFYccDOTemRpdETWR6Ka/lw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"114fde4bb047dd744e1e1d989c179f8cce8304a03a65e31911841b8fb34b5a0e701d896107c07f31ac9de57b205aaf8d15871c0ce4de991a5d113591e8a6bf97\",\"name\":\"vite\",\"version\":\"8.2.1\"},\"vitest-4.1.10.tgz\":{\"integrity\":\"R9jUTe5S4Qb0HCd4TNqpC7oGcrMssMRGXLW80ubjWsW9VH5GF8y1Y0SFLY9AbqSk6nt0PnOx4H4WNJYZ13GUPw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"47d8d44dee52e106f41c27784cdaa90bba0672b32cb0c4465cb5bcd2e6e35ac5bd547e4617ccb56344852d8f406ea4a4ea7b743e73b1e07e16349619d771943f\",\"name\":\"vitest\",\"version\":\"4.1.10\"},\"vscode-jsonrpc-9.0.1.tgz\":{\"integrity\":\"rfuA6T75H6m5EkbhtEPzre9pT0HPcDI2MMy4+nPFIBks5J8JBAUHD4tRYSgaBOijIEC7SRkC1kKyXTLqbmh9jw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"adfb80e93ef91fa9b91246e1b443f3adef694f41cf70323630ccb8fa73c520192ce49f090405070f8b5161281a04e8a32040bb491902d642b25d32ea6e687d8f\",\"name\":\"vscode-jsonrpc\",\"version\":\"9.0.1\"},\"w3c-xmlserializer-5.0.0.tgz\":{\"integrity\":\"o8qghlI8NZHU1lLPrpi2+Uq7abh4GGPpYANlalzWxyWteJOCsr/P+oPBA49TOLu5FTZO4d3F9MnWJfiMo4BkmA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a3caa086523c3591d4d652cfae98b6f94abb69b8781863e96003656a5cd6c725ad789382b2bfcffa83c1038f5338bbb915364ee1ddc5f4c9d625f88ca3806498\",\"name\":\"w3c-xmlserializer\",\"version\":\"5.0.0\"},\"web-streams-polyfill-3.3.3.tgz\":{\"integrity\":\"d2JWLCivmZYTSIoge9MsgFCZrt571BikcWGYkjC1khllbTeDlGqZ2D8vD8E/lJa8WGWbb7Plm8/XJYV7IJHZZw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"7762562c28af999613488a207bd32c805099aede7bd418a47161989230b59219656d3783946a99d83f2f0fc13f9496bc58659b6fb3e59bcfd725857b2091d967\",\"name\":\"web-streams-polyfill\",\"version\":\"3.3.3\"},\"webcrypto-core-1.9.2.tgz\":{\"integrity\":\"gsXecm82UQNlTBURJGuqOWy1Ww08S3kZUcr3aOJS02Pk0xLtkfeUAVC0u0xhgdonFme80edSJUIJyuvL/7250Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"82c5de726f365103654c1511246baa396cb55b0d3c4b791951caf768e252d363e4d312ed91f7940150b4bb4c6181da271667bcd1e752254209caebcbffbdb9d1\",\"name\":\"webcrypto-core\",\"version\":\"1.9.2\"},\"webidl-conversions-8.0.1.tgz\":{\"integrity\":\"BMhLD/Sw+GbJC21C/UgyaZX41nPt8bUTg+jWyDeg7e7YN4xOM05YPSIXceACnXVtqyEw/LMClUQMtMZ+PGGpqQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"04c84b0ff4b0f866c90b6d42fd48326995f8d673edf1b51383e8d6c837a0edeed8378c4e334e583d221771e0029d756dab2130fcb30295440cb4c67e3c61a9a9\",\"name\":\"webidl-conversions\",\"version\":\"8.0.1\"},\"whatwg-mimetype-5.0.0.tgz\":{\"integrity\":\"sXcNcHOC51uPGF0P/D4NVtrkjSU2fNsm9iog4ZvZJsL3rjoDAzXZhkm2MWt1y+PUdggKAYVoMAIYcs78wJ51Cw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b1770d707382e75b8f185d0ffc3e0d56dae48d25367cdb26f62a20e19bd926c2f7ae3a030335d98649b6316b75cbe3d476080a01856830021872cefcc09e750b\",\"name\":\"whatwg-mimetype\",\"version\":\"5.0.0\"},\"whatwg-url-16.0.1.tgz\":{\"integrity\":\"1to4zXBxmXHV3IiSSEInrreIlu02vUOvrhxJJH5vcxYTBDAx51cqZiKdyTxlecdKNSjj8EcxGBxNf6Vg+945gw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d6da38cd70719971d5dc8892484227aeb78896ed36bd43afae1c49247e6f731613043031e7572a66229dc93c6579c74a3528e3f04731181c4d7fa560fbde3983\",\"name\":\"whatwg-url\",\"version\":\"16.0.1\"},\"whatwg-url-17.1.0.tgz\":{\"integrity\":\"3GeworPmc2ZfEEHP7lEbUfBX/L75wdEsi0rLNhXcXxnoN5jyq0SL5gCy06SGW2cyTIZdTvWIDQNQoza++vKeaw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"dc67b0a2b3e673665f1041cfee511b51f057fcbef9c1d12c8b4acb3615dc5f19e83798f2ab448be600b2d3a4865b67324c865d4ef5880d0350a336befaf29e6b\",\"name\":\"whatwg-url\",\"version\":\"17.1.0\"},\"which-2.0.2.tgz\":{\"integrity\":\"BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"04b2374e5d535b73ef97bd25df2ab763ae22f9ac29c17aac181616924a8cb676d782b303fb28fbae15b492e103c7325a6171a3116e6881aa4a34c10a34c8e26c\",\"name\":\"which\",\"version\":\"2.0.2\"},\"which-4.0.0.tgz\":{\"integrity\":\"GlaYyEb07DPxYCKhKzplCWBJtvxZcZMrL+4UkrTSJHHPyZU4mYYTv3qaOe77H7EODLSSopAUFAc6W8U4yqvscg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1a5698c846f4ec33f16022a12b3a65096049b6fc5971932b2fee1492b4d22471cfc99538998613bf7a9a39eefb1fb10e0cb492a2901414073a5bc538caabec72\",\"name\":\"which\",\"version\":\"4.0.0\"},\"which-5.0.0.tgz\":{\"integrity\":\"JEdGzHwwkrbWoGOlIHqQ5gtprKGOenpDHpxE9zVR1bWbOtYRyPPHMe9FaP6x61CmNaTThSkb0DAJte5jD+DmzQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"244746cc7c3092b6d6a063a5207a90e60b69aca18e7a7a431e9c44f73551d5b59b3ad611c8f3c731ef4568feb1eb50a635a4d385291bd03009b5ee630fe0e6cd\",\"name\":\"which\",\"version\":\"5.0.0\"},\"which-6.0.1.tgz\":{\"integrity\":\"oGLe46MIrCRqX7ytPUf66EAYvdeMIZYn3WaocqqKZAxrBpkqHfL/qvTyJ/bTk5+AqHCjXmrv3CEWgy368zhRUg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"a062dee3a308ac246a5fbcad3d47fae84018bdd78c219627dd66a872aa8a640c6b06992a1df2ffaaf4f227f6d3939f80a870a35e6aefdc2116832dfaf3385152\",\"name\":\"which\",\"version\":\"6.0.1\"},\"why-is-node-running-2.3.0.tgz\":{\"integrity\":\"hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"854ae669605d543731bd8aa7ca1d3dcee9cacd13968db65388dcbc741123912ede8440d089b5c9ed7be59ad6f0b9372552223237e0b25d00f8566928f1f366f3\",\"name\":\"why-is-node-running\",\"version\":\"2.3.0\"},\"wrap-ansi-7.0.0.tgz\":{\"integrity\":\"YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6151888f691a98b493c70e8db198e80717d2c2c9f4c9c75eb26738a7e436d5ce733ee675a65f8d7f155dc4fb5d1ef98d54e43a5d2606e0052dcadfc58bb0f5e9\",\"name\":\"wrap-ansi\",\"version\":\"7.0.0\"},\"wrappy-1.0.2.tgz\":{\"integrity\":\"l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"9784a9fc346c7a8afdc0be84bd5dbe4ee427eb774c90f8d9feca7d5e48214c46d5f4a94f4b5c54b19deeeff2103b8c31b5c141e1b82940f45c477402bdeccf71\",\"name\":\"wrappy\",\"version\":\"1.0.2\"},\"write-file-atomic-8.0.0.tgz\":{\"integrity\":\"dYwyZredl67GyLLIHJnRM3h2PcOmN5SkcgC7eM5DPDEOEl6dLFqVrMg3F1Ea32usj4VSVZtd2H4MtKTNOf6nPg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"758c3266b79d97aec6c8b2c81c99d13378763dc3a63794a47200bb78ce433c310e125e9d2c5a95acc83717511adf6bac8f8552559b5dd87e0cb4a4cd39fea73e\",\"name\":\"write-file-atomic\",\"version\":\"8.0.0\"},\"ws-8.21.3.tgz\":{\"integrity\":\"201TZ/kPWxoPr/OKWjquZR1SWKXcvxdH+e1xrx89b3YbmzLMFCLfnaG1HFIgWzJOEWZ7MvpK++odZufgYR50Rw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"db4d5367f90f5b1a0faff38a5a3aae651d5258a5dcbf1747f9ed71af1f3d6f761b9b32cc1422df9da1b51c52205b324e11667b32fa4afbea1d66e7e0611e7447\",\"name\":\"ws\",\"version\":\"8.21.3\"},\"wsl-utils-1.0.0.tgz\":{\"integrity\":\"Hl0ZOAs672vg+06kfujwRhoS6/jehvULrlFkuF2dRu6pHgA8U06h3xqNIqNNU1LTXPcedxByAR4GS6pwQK0mgA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"1e5d19380b3aef6be0fb4ea47ee8f0461a12ebf8de86f50bae5164b85d9d46eea91e003c534ea1df1a8d22a34d5352d35cf71e771072011e064baa7040ad2680\",\"name\":\"wsl-utils\",\"version\":\"1.0.0\"},\"xml-name-validator-5.0.0.tgz\":{\"integrity\":\"EvGK8EJ3DhaHfbRlETOWAS5pO9MZITeauHKJyb8wyajUfQUenkIg2MvLDTZ4T/TgIcm3HU0TFBgWWboAZ30UHg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"12f18af042770e16877db465113396012e693bd31921379ab87289c9bf30c9a8d47d051e9e4220d8cbcb0d36784ff4e021c9b71d4d1314181659ba00677d141e\",\"name\":\"xml-name-validator\",\"version\":\"5.0.0\"},\"xmlbuilder-15.1.1.tgz\":{\"integrity\":\"yMqGBqtXyeN1e3TGYvgNgDVZ3j84W4cwkOXQswghol6APgZWaff9lnbvN7MHYJOiXsvGPXtjTYJEiC9J2wv9Eg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c8ca8606ab57c9e3757b74c662f80d803559de3f385b873090e5d0b30821a25e803e065669f7fd9676ef37b3076093a25ecbc63d7b634d8244882f49db0bfd12\",\"name\":\"xmlbuilder\",\"version\":\"15.1.1\"},\"xmlchars-2.2.0.tgz\":{\"integrity\":\"JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"2599c328af01d11083c3ce0535d0c022964af89b89c3eb3b2f3f2792c23b488b94dd45c926c954b61b22fae5815183b03c5c16ed6ecf44b45f50aa718ed8c50b\",\"name\":\"xmlchars\",\"version\":\"2.2.0\"},\"y18n-5.0.8.tgz\":{\"integrity\":\"0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"d297c5cde81e0d62472480264cb44fd83c078dd179b3b8e8f6dbb3b5d43102120d09dbd2fb79c620da8f774d00a61a8947fd0b8403544baffeed209bf7c60e7c\",\"name\":\"y18n\",\"version\":\"5.0.8\"},\"yallist-3.1.1.tgz\":{\"integrity\":\"a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"6b850641a58f1f9f663975189c01b67b09dc412e22e05e374efdc9a0033eb365430264bd36c2bc1a90cc2eb0873e4b054fb8772ba4cea14367da96fb4685f1e2\",\"name\":\"yallist\",\"version\":\"3.1.1\"},\"yallist-4.0.0.tgz\":{\"integrity\":\"3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"df074689d672ab93c1d3ce172c44b94e9392440df08d7025216321ba6da445cbffe354a7d9e990d1dc9c416e2e6572de8f02af83a12cbdb76554bf8560472dec\",\"name\":\"yallist\",\"version\":\"4.0.0\"},\"yallist-5.0.0.tgz\":{\"integrity\":\"YgvUTfwqyc7UXVMrB+SImsVYSmTS8X/tSrtdNZMImM+n7+QTriRXyXim0mBrTXNeqzVF0KWGgHPeiyViFFrNDw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"620bd44dfc2ac9ced45d532b07e4889ac5584a64d2f17fed4abb5d35930898cfa7efe413ae2457c978a6d2606b4d735eab3545d0a5868073de8b2562145acd0f\",\"name\":\"yallist\",\"version\":\"5.0.0\"},\"yargs-17.7.3.tgz\":{\"integrity\":\"GZtjxm/J/4TSxuL3FNYjCmLktBTnIw/rVmKSIyKeYAZpmJB2ig9VauCC5xsa82GNKVKDAqpOn3KVzNt0zmrU0g==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"199b63c66fc9ff84d2c6e2f714d6230a62e4b414e7230feb56629223229e6006699890768a0f556ae082e71b1af3618d29528302aa4e9f7295ccdb74ce6ad4d2\",\"name\":\"yargs\",\"version\":\"17.7.3\"},\"yargs-parser-21.1.1.tgz\":{\"integrity\":\"tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b55a6c256ec376379c0221696c80757b7ab1210b04e8da0f739fde4ddadb6c80b88742d5b16867a1ade0fa6d87725048ba31f3b31678549540f8652e736fcb07\",\"name\":\"yargs-parser\",\"version\":\"21.1.1\"},\"yauzl-3.4.0.tgz\":{\"integrity\":\"jIH9yLR9wqr0wOS0TpBvo/g/2UgZH5qePVbjgRliiF0BYvOZyaBknKsF+x9Iht0O6sqgnB93rCICdOZFecJuDw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"8c81fdc8b47dc2aaf4c0e4b44e906fa3f83fd948191f9a9e3d56e3811962885d0162f399c9a0649cab05fb1f4886dd0eeacaa09c1f77ac220274e64579c26e0f\",\"name\":\"yauzl\",\"version\":\"3.4.0\"},\"yocto-queue-0.1.0.tgz\":{\"integrity\":\"rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"ad592cbec9cd09d27fa2119ceb180fc3237c7a1782c6c88b33c9b1b84fedfe6395a897b03ee3b59a22e94c74224604ca08b7b12f831e00555a82db3b1e6359d9\",\"name\":\"yocto-queue\",\"version\":\"0.1.0\"},\"yocto-spinner-1.2.2.tgz\":{\"integrity\":\"DODGl1wJjA/s5pnJFKau9lIYHT81lnhob1i3e1TjxZRxEhWRKl74nTbWE6H5KlkViQQTo/Z29YFdxzTZAMY3ng==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"0ce0c6975c098c0fece699c914a6aef652181d3f359678686f58b77b54e3c594711215912a5ef89d36d613a1f92a5915890413a3f676f5815dc734d900c6379e\",\"name\":\"yocto-spinner\",\"version\":\"1.2.2\"},\"yoctocolors-2.2.0.tgz\":{\"integrity\":\"xYqdZFUK/VYazNl/oCDYN+3WloWQwMfZxBoiNt6qNyk+xfOdi598muWE42rNZFp1kNOiqW936q5RhUdnpqElSg==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"c58a9d64550afd561accd97fa020d837edd6968590c0c7d9c41a2236deaa37293ec5f39d8b9f7c9ae584e36acd645a7590d3a2a96f77eaae51854767a6a1254a\",\"name\":\"yoctocolors\",\"version\":\"2.2.0\"},\"zod-3.25.76.tgz\":{\"integrity\":\"gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"83352dfeab7cd675ec14628815c0b76277c4031e4d92e9c27e70e5bee0524854b4d9b717bb82e679ad001485306cb5b158fc7777da7c4b94286ae8ca70d43171\",\"name\":\"zod\",\"version\":\"3.25.76\"},\"zod-4.5.4.tgz\":{\"integrity\":\"sC95tT5iHHH9gtpj6A81kh+NEaRAUFN+qlUPDUbRfOMvNf5QCBqsb3WgvnpVtK5Y+4UfA6KqufotuTvMGiTlsA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"b02f79b53e621c71fd82da63e80f35921f8d11a44050537eaa550f0d46d17ce32f35fe50081aac6f75a0be7a55b4ae58fb851f03a2aab9fa2db93bcc1a24e5b0\",\"name\":\"zod\",\"version\":\"4.5.4\"},\"zod-to-json-schema-3.25.2.tgz\":{\"integrity\":\"O/PgfnpT1xKSDeQYSCfRI5Gy3hPf91mKVDuYLUHZJMiDFptvP41MSnWofm8dnCm0256ZNfZIM7DSzuSMAFnjHA==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3bf3e07e7a53d712920de4184827d12391b2de13dff7598a543b982d41d924c883169b6f3f8d4c4a75a87e6f1d9c29b4db9e9935f64833b0d2cee48c0059e31c\",\"name\":\"zod-to-json-schema\",\"version\":\"3.25.2\"},\"zustand-4.5.7.tgz\":{\"integrity\":\"CHOUy7mu3lbD6o6LJLfllpjkzhHXSBlX8B9+qPddUsIfeF5S/UZ5q0kmCsnRqT1UHFQZchNFDDzMbQsuesHWlw==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"087394cbb9aede56c3ea8e8b24b7e59698e4ce11d7481957f01f7ea8f75d52c21f785e52fd4679ab49260ac9d1a93d541c54197213450c3ccc6d0b2e7ac1d697\",\"name\":\"zustand\",\"version\":\"4.5.7\"},\"zustand-5.0.15.tgz\":{\"integrity\":\"MpSEjRiBkA9crSYeOUH32rJC7SVqAbm0Fqcqge/bUi2PPoLcBWKOsG+C8mevmpr8TwXHBVkChbbJiyvkE+i/3A==\",\"integrity_algo\":\"sha512\",\"integrity_digest\":\"3294848d1881900f5cad261e3941f7dab242ed256a01b9b416a72a81efdb522d8f3e82dc05628eb06f82f267af9a9afc4f05c705590285b6c98b2be413e8bfdc\",\"name\":\"zustand\",\"version\":\"5.0.15\"}},\"store_version\":\"v11\"}","dest-filename": "pnpm-manifest.json","dest": "flatpak-node"},diff --git a/package.json b/package.jsonindex d7bb92cb..c0620745 100644--- a/package.json+++ b/package.json@@ -16,14 +16,14 @@"private": true,"scripts": {"ensure:electron-runtime": "node scripts/ensure-electron-runtime.mjs",- "prestart": "pnpm run ensure:electron-runtime && node scripts/ensure-native-abi.mjs electron",+ "prestart": "pnpm run ensure:electron-runtime && node scripts/ensure-native-abi.mjs electron && pnpm run build:finalize-fs","start": "node scripts/dev.mjs",- "build": "pnpm run build:builtin && pnpm run build:native-host && pnpm build:electron",+ "build": "pnpm run build:builtin && pnpm run build:native-host && pnpm run build:finalize-fs && pnpm build:electron","build:electron": "pnpm run build:legal && node scripts/ensure-native-abi.mjs electron && vite build --config vite.main.config.ts && vite build --config vite.preload.config.ts && vite build --config vite.worker.config.ts && vite build --config vite.renderer.config.ts","stage:electron": "node scripts/stage-electron-app.mjs","verify:electron-package": "node scripts/verify-electron-package.mjs","smoke:electron-package": "pnpm run ensure:electron-runtime && node scripts/smoke-electron-package.mjs",- "build:server": "pnpm run build:builtin && pnpm run build:legal && vite build --config vite.server.config.ts && vite build --config vite.worker.config.ts && vite build --config vite.renderer.web.config.ts",+ "build:server": "pnpm run build:builtin && pnpm run build:legal && node scripts/ensure-server-finalize-fs.mjs && vite build --config vite.server.config.ts && vite build --config vite.worker.config.ts && vite build --config vite.renderer.web.config.ts","stage:server": "node scripts/stage-server-app.mjs","verify:server-package": "node scripts/verify-server-package.mjs","smoke:server-package": "node scripts/smoke-server-package.mjs",@@ -31,11 +31,12 @@"measure:server-images": "node scripts/measure-server-images.mjs","build:builtin": "node scripts/fetch-builtins.mjs","build:native-host": "node packages/native-host/build.mjs",+ "build:finalize-fs": "node packages/finalize-fs/build.mjs","build:legal": "pnpm run ensure:electron-runtime && node scripts/generate-third-party-notices.mjs","generate:bridge-vectors": "node scripts/generate-bridge-pairing-vectors.mjs docs/bridge-pairing-protocol-vectors.json","package:flatpak-native-host": "node packages/native-host/package-flatpak-companion.mjs","build:snap:prepare": "node scripts/prepare-snap-project.mjs",- "build:mac-arm64": "pnpm run build:builtin && pnpm run build:native-host -- --platform darwin --arch arm64 && pnpm run build:electron",+ "build:mac-arm64": "pnpm run build:builtin && pnpm run build:native-host -- --platform darwin --arch arm64 && pnpm run build:finalize-fs -- --platform darwin --arch arm64 && pnpm run build:electron","prestart:server": "node scripts/ensure-native-abi.mjs node","start:server": "MOTRIX_SKIP_ELECTRON_REBUILD=1 node dist/server/index.mjs","check:boundaries": "node scripts/check-boundaries.mjs",@@ -89,6 +90,8 @@"@electron/notarize": "^3.1.1","@electron/rebuild": "^4.2.0","@motrix/cli": "^0.4.0",+ "@motrix/plugin-api": "2.1.0",+ "@motrix/plugin-api-2-0": "npm:@motrix/[email protected]","@playwright/test": "^1.62.1","@testing-library/jest-dom": "^7.0.1","@testing-library/react": "^16.3.2",@@ -120,7 +123,7 @@"@hookform/resolvers": "^5.9.1","@motrix/mdxp": "^0.6.0","@motrix/nat": "^0.1.1",- "@motrix/plugin-manifest-schema": "^2.1.0",+ "@motrix/plugin-manifest-schema": "^2.1.1","@noble/curves": "2.0.1","@noble/hashes": "2.0.1","@resvg/resvg-wasm": "^2.6.2",@@ -165,7 +168,7 @@"write-file-atomic": "^8.0.0","ws": "^8.21.3","yauzl": "^3.4.0",- "zod": "^4.4.3",+ "zod": "^4.5.4","zustand": "^5.0.15"},"optionalDependencies": {diff --git a/packages/finalize-fs/.gitignore b/packages/finalize-fs/.gitignorenew file mode 100644index 00000000..a742227c--- /dev/null+++ b/packages/finalize-fs/.gitignore@@ -0,0 +1,2 @@+/target/+/dist/diff --git a/packages/finalize-fs/Cargo.lock b/packages/finalize-fs/Cargo.locknew file mode 100644index 00000000..2a076c3e--- /dev/null+++ b/packages/finalize-fs/Cargo.lock@@ -0,0 +1,208 @@+# This file is automatically @generated by Cargo.+# It is not intended for manual editing.+version = 4++[[package]]+name = "block-buffer"+version = "0.10.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71"+dependencies = [+ "generic-array",+]++[[package]]+name = "cfg-if"+version = "1.0.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"++[[package]]+name = "cpufeatures"+version = "0.2.17"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "59ed5838eebb26a2bb2e58f6d5b5316989ae9d08bab10e0e6d103e656d1b0280"+dependencies = [+ "libc",+]++[[package]]+name = "crypto-common"+version = "0.1.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "78c8292055d1c1df0cce5d180393dc8cce0abec0a7102adb6c7b1eef6016d60a"+dependencies = [+ "generic-array",+ "typenum",+]++[[package]]+name = "digest"+version = "0.10.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292"+dependencies = [+ "block-buffer",+ "crypto-common",+]++[[package]]+name = "generic-array"+version = "0.14.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a"+dependencies = [+ "typenum",+ "version_check",+]++[[package]]+name = "itoa"+version = "1.0.18"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"++[[package]]+name = "libc"+version = "0.2.189"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3eaf3ede3fee6db1a4c2ee091bf8a8b4dccdc6d17f656fb07896ee72867612f2"++[[package]]+name = "memchr"+version = "2.8.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"++[[package]]+name = "motrix-finalize-fs"+version = "0.1.0"+dependencies = [+ "libc",+ "serde",+ "serde_json",+ "sha2",+ "windows-sys",+]++[[package]]+name = "proc-macro2"+version = "1.0.107"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"+dependencies = [+ "unicode-ident",+]++[[package]]+name = "quote"+version = "1.0.47"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"+dependencies = [+ "proc-macro2",+]++[[package]]+name = "serde"+version = "1.0.229"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba"+dependencies = [+ "serde_core",+ "serde_derive",+]++[[package]]+name = "serde_core"+version = "1.0.229"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48"+dependencies = [+ "serde_derive",+]++[[package]]+name = "serde_derive"+version = "1.0.229"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348"+dependencies = [+ "proc-macro2",+ "quote",+ "syn",+]++[[package]]+name = "serde_json"+version = "1.0.151"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c841b55ecdae098c80dcae9cf767f6f8a0c2cdb3416bbef72181df4d0fe73f14"+dependencies = [+ "itoa",+ "memchr",+ "serde",+ "serde_core",+ "zmij",+]++[[package]]+name = "sha2"+version = "0.10.9"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283"+dependencies = [+ "cfg-if",+ "cpufeatures",+ "digest",+]++[[package]]+name = "syn"+version = "3.0.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "53e9bae58849f64dfa4f5d5ae372c8341f7305f82a3868709269343628b659a3"+dependencies = [+ "proc-macro2",+ "quote",+ "unicode-ident",+]++[[package]]+name = "typenum"+version = "1.20.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b6f5e870be6c3b371b77fe0ee0bafb859fa4964b4404c27de1d380043c4dda20"++[[package]]+name = "unicode-ident"+version = "1.0.24"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"++[[package]]+name = "version_check"+version = "0.9.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a"++[[package]]+name = "windows-link"+version = "0.2.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"++[[package]]+name = "windows-sys"+version = "0.61.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc"+dependencies = [+ "windows-link",+]++[[package]]+name = "zmij"+version = "1.0.23"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b"diff --git a/packages/finalize-fs/Cargo.toml b/packages/finalize-fs/Cargo.tomlnew file mode 100644index 00000000..50b98cb3--- /dev/null+++ b/packages/finalize-fs/Cargo.toml@@ -0,0 +1,28 @@+[package]+name = "motrix-finalize-fs"+version = "0.1.0"+edition = "2024"+license = "MIT"+publish = false++[dependencies]+libc = "0.2"+serde = { version = "1", features = ["derive"] }+serde_json = "1"++[target.'cfg(windows)'.dependencies]+sha2 = "0.10.9"+windows-sys = { version = "0.61.2", features = [+ "Wdk_Foundation",+ "Wdk_Storage_FileSystem",+ "Win32_Foundation",+ "Win32_Security",+ "Win32_Storage_FileSystem",+ "Win32_System_IO",+] }++[profile.release]+codegen-units = 1+lto = true+panic = "abort"+strip = truediff --git a/packages/finalize-fs/build.mjs b/packages/finalize-fs/build.mjsnew file mode 100644index 00000000..689543ae--- /dev/null+++ b/packages/finalize-fs/build.mjs@@ -0,0 +1,68 @@+#!/usr/bin/env node++import { spawnSync } from 'node:child_process'+import { chmod, copyFile, mkdir } from 'node:fs/promises'+import path from 'node:path'+import { fileURLToPath } from 'node:url'++const packageDir = path.dirname(fileURLToPath(import.meta.url))+const targets = new Map([+ ['darwin-arm64', 'aarch64-apple-darwin'],+ ['darwin-x64', 'x86_64-apple-darwin'],+ ['linux-arm64', 'aarch64-unknown-linux-musl'],+ ['linux-x64', 'x86_64-unknown-linux-musl'],+ ['win32-x64', 'x86_64-pc-windows-msvc'],+])++function parseArgs(argv) {+ const out = { platform: process.platform, arch: process.arch }+ for (let index = 0; index < argv.length; index += 1) {+ const token = argv[index]+ if (token === '--') continue+ if (token !== '--platform' && token !== '--arch') {+ throw new Error(`unknown flag: ${token}`)+ }+ const value = argv[index + 1]+ if (!value || value.startsWith('--')) {+ throw new Error(`${token} requires a value`)+ }+ out[token.slice(2)] = value+ index += 1+ }+ return out+}++const selected = parseArgs(process.argv.slice(2))+const key = `${selected.platform}-${selected.arch}`+const rustTarget = targets.get(key)+if (!rustTarget) throw new Error(`unsupported finalize-fs target: ${key}`)+const binary =+ selected.platform === 'win32'+ ? 'motrix-finalize-fs.exe'+ : 'motrix-finalize-fs'+const targetDir = path.join(packageDir, 'target')+const result = spawnSync(+ process.env.CARGO || 'cargo',+ [+ 'build',+ '--manifest-path',+ path.join(packageDir, 'Cargo.toml'),+ '--release',+ '--locked',+ '--target',+ rustTarget,+ '--target-dir',+ targetDir,+ ],+ { cwd: packageDir, env: process.env, stdio: 'inherit' }+)+if (result.error) throw result.error+if (result.status !== 0) {+ throw new Error(`cargo failed for ${key} with exit code ${result.status}`)+}+const outputDir = path.join(packageDir, 'dist', key)+const output = path.join(outputDir, binary)+await mkdir(outputDir, { recursive: true })+await copyFile(path.join(targetDir, rustTarget, 'release', binary), output)+if (selected.platform !== 'win32') await chmod(output, 0o755)+process.stdout.write(`built ${key}: ${output}\n`)diff --git a/packages/finalize-fs/src/error.rs b/packages/finalize-fs/src/error.rsnew file mode 100644index 00000000..6a993597--- /dev/null+++ b/packages/finalize-fs/src/error.rs@@ -0,0 +1,17 @@+use std::io;++pub(crate) fn classify_error(error: &io::Error) -> &'static str {+ match error.kind() {+ io::ErrorKind::AlreadyExists => "target_exists",+ io::ErrorKind::NotFound => "not_found",+ io::ErrorKind::InvalidInput => "invalid_path",+ io::ErrorKind::PermissionDenied => "permission_denied",+ io::ErrorKind::Unsupported => "unsupported",+ _ => match error.raw_os_error() {+ Some(libc::EXDEV) => "cross_device",+ Some(libc::ENOSYS) | Some(libc::ENOTSUP) => "unsupported",+ Some(libc::ELOOP) => "symlink_rejected",+ _ => "io_error",+ },+ }+}diff --git a/packages/finalize-fs/src/main.rs b/packages/finalize-fs/src/main.rsnew file mode 100644index 00000000..c33a2ce7--- /dev/null+++ b/packages/finalize-fs/src/main.rs@@ -0,0 +1,25 @@+//! Length-prefixed JSON sidecar entrypoint.++mod error;+mod path;+mod platform;+mod protocol;+mod state;++use protocol::{Request, Response, read_frame, write_frame};+use state::State;+use std::io;++fn main() -> io::Result<()> {+ let mut input = io::stdin().lock();+ let mut output = io::stdout().lock();+ let mut state = State::new();+ while let Some(frame) = read_frame(&mut input)? {+ let response = match serde_json::from_slice::<Request>(&frame) {+ Ok(request) => state.handle(request),+ Err(error) => Response::error(None, "invalid_request", error),+ };+ write_frame(&mut output, &response)?;+ }+ Ok(())+}diff --git a/packages/finalize-fs/src/path.rs b/packages/finalize-fs/src/path.rsnew file mode 100644index 00000000..c82afa3f--- /dev/null+++ b/packages/finalize-fs/src/path.rs@@ -0,0 +1,58 @@+use std::io;+use std::path::{Component, Path};++pub(crate) fn validate_relative(relative: &str) -> io::Result<Vec<&str>> {+ let path = Path::new(relative);+ if relative.is_empty() || path.is_absolute() {+ return Err(io::Error::new(+ io::ErrorKind::InvalidInput,+ "path must be non-empty and relative",+ ));+ }+ let mut parts = Vec::new();+ for component in path.components() {+ match component {+ Component::Normal(part) => {+ let Some(part) = part.to_str() else {+ return Err(io::Error::new(+ io::ErrorKind::InvalidInput,+ "path is not UTF-8",+ ));+ };+ if part.as_bytes().contains(&0) {+ return Err(io::Error::new(+ io::ErrorKind::InvalidInput,+ "path contains NUL",+ ));+ }+ parts.push(part);+ }+ _ => {+ return Err(io::Error::new(+ io::ErrorKind::InvalidInput,+ "path traversal is forbidden",+ ));+ }+ }+ }+ if parts.is_empty() {+ return Err(io::Error::new(+ io::ErrorKind::InvalidInput,+ "path must name an artifact",+ ));+ }+ Ok(parts)+}++#[cfg(test)]+mod tests {+ use super::validate_relative;++ #[test]+ fn relative_paths_reject_traversal() {+ assert!(validate_relative("artifact/file").is_ok());+ assert!(validate_relative("../escape").is_err());+ assert!(validate_relative("/absolute").is_err());+ assert!(validate_relative(".").is_err());+ }+}diff --git a/packages/finalize-fs/src/platform/mod.rs b/packages/finalize-fs/src/platform/mod.rsnew file mode 100644index 00000000..4a0396d8--- /dev/null+++ b/packages/finalize-fs/src/platform/mod.rs@@ -0,0 +1,24 @@+//! Compile-time platform facade for handle-bound filesystem operations.++#[cfg(unix)]+mod unix;+#[cfg(not(any(unix, windows)))]+mod unsupported;+#[cfg(windows)]+mod windows;++#[cfg(unix)]+pub(crate) use unix::{+ ArtifactHandle, RootHandle, copy_opened, open_artifact, open_root, remove_opened,+ rename_no_replace, rename_opened_no_replace, sync_root,+};+#[cfg(not(any(unix, windows)))]+pub(crate) use unsupported::{+ ArtifactHandle, RootHandle, copy_opened, open_artifact, open_root, remove_opened,+ rename_no_replace, rename_opened_no_replace, sync_root,+};+#[cfg(windows)]+pub(crate) use windows::{+ ArtifactHandle, RootHandle, copy_opened, open_artifact, open_root, remove_opened,+ rename_no_replace, rename_opened_no_replace, sync_root,+};diff --git a/packages/finalize-fs/src/platform/unix/copy.rs b/packages/finalize-fs/src/platform/unix/copy.rsnew file mode 100644index 00000000..26b67553--- /dev/null+++ b/packages/finalize-fs/src/platform/unix/copy.rs@@ -0,0 +1,193 @@+use super::metadata::{directory_entries, ensure_same_entry, stat_named};+use super::{ArtifactHandle, RootHandle, open_parent};+use crate::path::validate_relative;+use std::ffi::CString;+use std::io;+use std::os::fd::{AsRawFd, FromRawFd, OwnedFd, RawFd};++fn copy_file_contents(source: RawFd, target: RawFd) -> io::Result<()> {+ if unsafe { libc::lseek(source, 0, libc::SEEK_SET) } < 0 {+ return Err(io::Error::last_os_error());+ }+ let mut buffer = [0_u8; 128 * 1024];+ loop {+ let read = unsafe { libc::read(source, buffer.as_mut_ptr().cast(), buffer.len()) };+ if read < 0 {+ let error = io::Error::last_os_error();+ if error.kind() == io::ErrorKind::Interrupted {+ continue;+ }+ return Err(error);+ }+ if read == 0 {+ break;+ }+ let mut written = 0_usize;+ while written < read as usize {+ let count = unsafe {+ libc::write(+ target,+ buffer[written..read as usize].as_ptr().cast(),+ read as usize - written,+ )+ };+ if count < 0 {+ let error = io::Error::last_os_error();+ if error.kind() == io::ErrorKind::Interrupted {+ continue;+ }+ return Err(error);+ }+ if count == 0 {+ return Err(io::Error::new(+ io::ErrorKind::WriteZero,+ "copy target stopped accepting bytes",+ ));+ }+ written += count as usize;+ }+ }+ if unsafe { libc::fsync(target) } < 0 {+ return Err(io::Error::last_os_error());+ }+ Ok(())+}++fn copy_directory_contents(source: RawFd, target: RawFd) -> io::Result<()> {+ for name in directory_entries(source)? {+ let source_stat = stat_named(source, &name)?;+ let source_type = source_stat.st_mode & libc::S_IFMT;+ if source_type == libc::S_IFDIR {+ if unsafe { libc::mkdirat(target, name.as_ptr(), 0o700) } < 0 {+ return Err(io::Error::last_os_error());+ }+ let source_child = unsafe {+ libc::openat(+ source,+ name.as_ptr(),+ libc::O_RDONLY | libc::O_DIRECTORY | libc::O_NOFOLLOW | libc::O_CLOEXEC,+ )+ };+ if source_child < 0 {+ return Err(io::Error::last_os_error());+ }+ let source_child = unsafe { OwnedFd::from_raw_fd(source_child) };+ ensure_same_entry(source_child.as_raw_fd(), source, &name)?;+ let target_child = unsafe {+ libc::openat(+ target,+ name.as_ptr(),+ libc::O_RDONLY | libc::O_DIRECTORY | libc::O_NOFOLLOW | libc::O_CLOEXEC,+ )+ };+ if target_child < 0 {+ return Err(io::Error::last_os_error());+ }+ let target_child = unsafe { OwnedFd::from_raw_fd(target_child) };+ copy_directory_contents(source_child.as_raw_fd(), target_child.as_raw_fd())?;+ ensure_same_entry(source_child.as_raw_fd(), source, &name)?;+ } else if source_type == libc::S_IFREG {+ let source_child = unsafe {+ libc::openat(+ source,+ name.as_ptr(),+ libc::O_RDONLY | libc::O_NOFOLLOW | libc::O_CLOEXEC,+ )+ };+ if source_child < 0 {+ return Err(io::Error::last_os_error());+ }+ let source_child = unsafe { OwnedFd::from_raw_fd(source_child) };+ ensure_same_entry(source_child.as_raw_fd(), source, &name)?;+ let target_child = unsafe {+ libc::openat(+ target,+ name.as_ptr(),+ libc::O_WRONLY+ | libc::O_CREAT+ | libc::O_EXCL+ | libc::O_NOFOLLOW+ | libc::O_CLOEXEC,+ 0o600,+ )+ };+ if target_child < 0 {+ return Err(io::Error::last_os_error());+ }+ let target_child = unsafe { OwnedFd::from_raw_fd(target_child) };+ copy_file_contents(source_child.as_raw_fd(), target_child.as_raw_fd())?;+ ensure_same_entry(source_child.as_raw_fd(), source, &name)?;+ } else {+ return Err(io::Error::new(+ io::ErrorKind::InvalidData,+ "refusing to copy a symbolic link or special file",+ ));+ }+ }+ if unsafe { libc::fsync(target) } < 0 {+ return Err(io::Error::last_os_error());+ }+ Ok(())+}++pub(crate) fn copy_opened(+ artifact: &ArtifactHandle,+ target: &RootHandle,+ target_relative: &str,+) -> io::Result<()> {+ let target_parts = validate_relative(target_relative)?;+ let target_parent = open_parent(target.0.as_raw_fd(), &target_parts)?;+ let target_name =+ CString::new(*target_parts.last().expect("nonempty")).expect("validated component");+ let source_stat = ensure_same_entry(+ artifact.artifact.as_raw_fd(),+ artifact.parent.as_raw_fd(),+ &artifact.name,+ )?;+ let source_type = source_stat.st_mode & libc::S_IFMT;+ if source_type == libc::S_IFDIR {+ if unsafe { libc::mkdirat(target_parent.as_raw_fd(), target_name.as_ptr(), 0o700) } < 0 {+ return Err(io::Error::last_os_error());+ }+ let target_artifact = unsafe {+ libc::openat(+ target_parent.as_raw_fd(),+ target_name.as_ptr(),+ libc::O_RDONLY | libc::O_DIRECTORY | libc::O_NOFOLLOW | libc::O_CLOEXEC,+ )+ };+ if target_artifact < 0 {+ return Err(io::Error::last_os_error());+ }+ let target_artifact = unsafe { OwnedFd::from_raw_fd(target_artifact) };+ copy_directory_contents(artifact.artifact.as_raw_fd(), target_artifact.as_raw_fd())?;+ } else if source_type == libc::S_IFREG {+ let target_artifact = unsafe {+ libc::openat(+ target_parent.as_raw_fd(),+ target_name.as_ptr(),+ libc::O_WRONLY | libc::O_CREAT | libc::O_EXCL | libc::O_NOFOLLOW | libc::O_CLOEXEC,+ 0o600,+ )+ };+ if target_artifact < 0 {+ return Err(io::Error::last_os_error());+ }+ let target_artifact = unsafe { OwnedFd::from_raw_fd(target_artifact) };+ copy_file_contents(artifact.artifact.as_raw_fd(), target_artifact.as_raw_fd())?;+ } else {+ return Err(io::Error::new(+ io::ErrorKind::InvalidData,+ "refusing to copy a symbolic link or special artifact",+ ));+ }+ ensure_same_entry(+ artifact.artifact.as_raw_fd(),+ artifact.parent.as_raw_fd(),+ &artifact.name,+ )?;+ if unsafe { libc::fsync(target_parent.as_raw_fd()) } < 0 {+ return Err(io::Error::last_os_error());+ }+ Ok(())+}diff --git a/packages/finalize-fs/src/platform/unix/digest.rs b/packages/finalize-fs/src/platform/unix/digest.rsnew file mode 100644index 00000000..962fb3db--- /dev/null+++ b/packages/finalize-fs/src/platform/unix/digest.rs@@ -0,0 +1,146 @@+use std::io;+use std::os::fd::RawFd;++pub(super) struct Sha256State {+ words: [u32; 8],+ buffer: [u8; 64],+ buffer_len: usize,+ byte_len: u64,+}++impl Sha256State {+ pub(super) fn new() -> Self {+ Self {+ words: [+ 0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a, 0x510e527f, 0x9b05688c, 0x1f83d9ab,+ 0x5be0cd19,+ ],+ buffer: [0; 64],+ buffer_len: 0,+ byte_len: 0,+ }+ }++ pub(super) fn update(&mut self, mut input: &[u8]) {+ self.byte_len = self.byte_len.wrapping_add(input.len() as u64);+ if self.buffer_len > 0 {+ let count = (64 - self.buffer_len).min(input.len());+ self.buffer[self.buffer_len..self.buffer_len + count].copy_from_slice(&input[..count]);+ self.buffer_len += count;+ input = &input[count..];+ if self.buffer_len == 64 {+ let block = self.buffer;+ self.compress(&block);+ self.buffer_len = 0;+ }+ }+ while input.len() >= 64 {+ let block: &[u8; 64] = input[..64].try_into().expect("fixed SHA-256 block");+ self.compress(block);+ input = &input[64..];+ }+ self.buffer[..input.len()].copy_from_slice(input);+ self.buffer_len = input.len();+ }++ pub(super) fn finalize(mut self) -> [u8; 32] {+ let bit_len = self.byte_len.wrapping_mul(8);+ self.buffer[self.buffer_len] = 0x80;+ self.buffer_len += 1;+ if self.buffer_len > 56 {+ self.buffer[self.buffer_len..].fill(0);+ let block = self.buffer;+ self.compress(&block);+ self.buffer = [0; 64];+ } else {+ self.buffer[self.buffer_len..56].fill(0);+ }+ self.buffer[56..].copy_from_slice(&bit_len.to_be_bytes());+ let block = self.buffer;+ self.compress(&block);+ let mut output = [0_u8; 32];+ for (chunk, word) in output.as_chunks_mut::<4>().0.iter_mut().zip(self.words) {+ chunk.copy_from_slice(&word.to_be_bytes());+ }+ output+ }++ fn compress(&mut self, block: &[u8; 64]) {+ const K: [u32; 64] = [+ 0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5, 0x3956c25b, 0x59f111f1, 0x923f82a4,+ 0xab1c5ed5, 0xd807aa98, 0x12835b01, 0x243185be, 0x550c7dc3, 0x72be5d74, 0x80deb1fe,+ 0x9bdc06a7, 0xc19bf174, 0xe49b69c1, 0xefbe4786, 0x0fc19dc6, 0x240ca1cc, 0x2de92c6f,+ 0x4a7484aa, 0x5cb0a9dc, 0x76f988da, 0x983e5152, 0xa831c66d, 0xb00327c8, 0xbf597fc7,+ 0xc6e00bf3, 0xd5a79147, 0x06ca6351, 0x14292967, 0x27b70a85, 0x2e1b2138, 0x4d2c6dfc,+ 0x53380d13, 0x650a7354, 0x766a0abb, 0x81c2c92e, 0x92722c85, 0xa2bfe8a1, 0xa81a664b,+ 0xc24b8b70, 0xc76c51a3, 0xd192e819, 0xd6990624, 0xf40e3585, 0x106aa070, 0x19a4c116,+ 0x1e376c08, 0x2748774c, 0x34b0bcb5, 0x391c0cb3, 0x4ed8aa4a, 0x5b9cca4f, 0x682e6ff3,+ 0x748f82ee, 0x78a5636f, 0x84c87814, 0x8cc70208, 0x90befffa, 0xa4506ceb, 0xbef9a3f7,+ 0xc67178f2,+ ];+ let mut schedule = [0_u32; 64];+ for (index, chunk) in block.as_chunks::<4>().0.iter().enumerate() {+ schedule[index] = u32::from_be_bytes(*chunk);+ }+ for index in 16..64 {+ let s0 = schedule[index - 15].rotate_right(7)+ ^ schedule[index - 15].rotate_right(18)+ ^ (schedule[index - 15] >> 3);+ let s1 = schedule[index - 2].rotate_right(17)+ ^ schedule[index - 2].rotate_right(19)+ ^ (schedule[index - 2] >> 10);+ schedule[index] = schedule[index - 16]+ .wrapping_add(s0)+ .wrapping_add(schedule[index - 7])+ .wrapping_add(s1);+ }++ let [mut a, mut b, mut c, mut d, mut e, mut f, mut g, mut h] = self.words;+ for index in 0..64 {+ let big_s1 = e.rotate_right(6) ^ e.rotate_right(11) ^ e.rotate_right(25);+ let choice = (e & f) ^ ((!e) & g);+ let first = h+ .wrapping_add(big_s1)+ .wrapping_add(choice)+ .wrapping_add(K[index])+ .wrapping_add(schedule[index]);+ let big_s0 = a.rotate_right(2) ^ a.rotate_right(13) ^ a.rotate_right(22);+ let majority = (a & b) ^ (a & c) ^ (b & c);+ let second = big_s0.wrapping_add(majority);+ h = g;+ g = f;+ f = e;+ e = d.wrapping_add(first);+ d = c;+ c = b;+ b = a;+ a = first.wrapping_add(second);+ }+ for (word, value) in self.words.iter_mut().zip([a, b, c, d, e, f, g, h]) {+ *word = word.wrapping_add(value);+ }+ }+}++pub(super) fn hash_opened_file(opened: RawFd) -> io::Result<[u8; 32]> {+ if unsafe { libc::lseek(opened, 0, libc::SEEK_SET) } < 0 {+ return Err(io::Error::last_os_error());+ }+ let mut hash = Sha256State::new();+ let mut buffer = [0_u8; 128 * 1024];+ loop {+ let read = unsafe { libc::read(opened, buffer.as_mut_ptr().cast(), buffer.len()) };+ if read < 0 {+ let error = io::Error::last_os_error();+ if error.kind() == io::ErrorKind::Interrupted {+ continue;+ }+ return Err(error);+ }+ if read == 0 {+ break;+ }+ hash.update(&buffer[..read as usize]);+ }+ Ok(hash.finalize())+}diff --git a/packages/finalize-fs/src/platform/unix/metadata.rs b/packages/finalize-fs/src/platform/unix/metadata.rsnew file mode 100644index 00000000..9e897e44--- /dev/null+++ b/packages/finalize-fs/src/platform/unix/metadata.rs@@ -0,0 +1,138 @@+use super::ArtifactStamp;+use std::ffi::CString;+use std::io;+use std::os::fd::RawFd;++struct DirectoryStream(*mut libc::DIR);++impl Drop for DirectoryStream {+ fn drop(&mut self) {+ unsafe {+ libc::closedir(self.0);+ }+ }+}++pub(super) fn directory_entries(directory: RawFd) -> io::Result<Vec<CString>> {+ // F_DUPFD shares the directory stream offset with the held descriptor.+ // Reopen `.` so repeated snapshots each start from offset zero.+ let duplicate = unsafe {+ libc::openat(+ directory,+ c".".as_ptr(),+ libc::O_RDONLY | libc::O_DIRECTORY | libc::O_NOFOLLOW | libc::O_CLOEXEC,+ )+ };+ if duplicate < 0 {+ return Err(io::Error::last_os_error());+ }+ let stream = unsafe { libc::fdopendir(duplicate) };+ if stream.is_null() {+ let error = io::Error::last_os_error();+ unsafe {+ libc::close(duplicate);+ }+ return Err(error);+ }+ let stream = DirectoryStream(stream);+ let mut names = Vec::new();+ loop {+ #[cfg(target_os = "linux")]+ unsafe {+ *libc::__errno_location() = 0;+ }+ #[cfg(target_os = "macos")]+ unsafe {+ *libc::__error() = 0;+ }+ let entry = unsafe { libc::readdir(stream.0) };+ if entry.is_null() {+ let error = io::Error::last_os_error();+ if error.raw_os_error() != Some(0) {+ return Err(error);+ }+ break;+ }+ let name = unsafe { std::ffi::CStr::from_ptr((*entry).d_name.as_ptr()) };+ if name.to_bytes() == b"." || name.to_bytes() == b".." {+ continue;+ }+ names.push(name.to_owned());+ }+ names.sort_by(|left, right| left.as_bytes().cmp(right.as_bytes()));+ Ok(names)+}++pub(super) fn stat_named(parent: RawFd, name: &CString) -> io::Result<libc::stat> {+ let mut value = std::mem::MaybeUninit::<libc::stat>::uninit();+ if unsafe {+ libc::fstatat(+ parent,+ name.as_ptr(),+ value.as_mut_ptr(),+ libc::AT_SYMLINK_NOFOLLOW,+ )+ } < 0+ {+ return Err(io::Error::last_os_error());+ }+ Ok(unsafe { value.assume_init() })+}++pub(super) fn stat_opened(opened: RawFd) -> io::Result<libc::stat> {+ let mut value = std::mem::MaybeUninit::<libc::stat>::uninit();+ if unsafe { libc::fstat(opened, value.as_mut_ptr()) } < 0 {+ return Err(io::Error::last_os_error());+ }+ Ok(unsafe { value.assume_init() })+}++#[cfg(any(target_os = "linux", target_os = "macos"))]+pub(super) fn artifact_stamp(value: &libc::stat) -> ArtifactStamp {+ ArtifactStamp {+ device: value.st_dev,+ inode: value.st_ino,+ size: value.st_size,+ modified_seconds: value.st_mtime,+ modified_nanoseconds: value.st_mtime_nsec,+ changed_seconds: value.st_ctime,+ changed_nanoseconds: value.st_ctime_nsec,+ }+}++#[cfg(all(unix, not(any(target_os = "linux", target_os = "macos"))))]+pub(super) fn artifact_stamp(value: &libc::stat) -> ArtifactStamp {+ ArtifactStamp {+ device: value.st_dev,+ inode: value.st_ino,+ size: value.st_size,+ modified_seconds: value.st_mtime,+ modified_nanoseconds: 0,+ changed_seconds: value.st_ctime,+ changed_nanoseconds: 0,+ }+}++pub(super) fn stamp_stable_across_rename(actual: ArtifactStamp, opened: ArtifactStamp) -> bool {+ actual.device == opened.device+ && actual.inode == opened.inode+ && actual.size == opened.size+ && actual.modified_seconds == opened.modified_seconds+ && actual.modified_nanoseconds == opened.modified_nanoseconds+}++pub(super) fn ensure_same_entry(+ opened: RawFd,+ parent: RawFd,+ name: &CString,+) -> io::Result<libc::stat> {+ let opened_stat = stat_opened(opened)?;+ let named_stat = stat_named(parent, name)?;+ if opened_stat.st_dev != named_stat.st_dev || opened_stat.st_ino != named_stat.st_ino {+ return Err(io::Error::new(+ io::ErrorKind::InvalidData,+ "opened artifact identity mismatch",+ ));+ }+ Ok(opened_stat)+}diff --git a/packages/finalize-fs/src/platform/unix/mod.rs b/packages/finalize-fs/src/platform/unix/mod.rsnew file mode 100644index 00000000..1119b224--- /dev/null+++ b/packages/finalize-fs/src/platform/unix/mod.rs@@ -0,0 +1,213 @@+//! Unix handle ownership and descriptor-relative artifact admission.++mod copy;+mod digest;+mod metadata;+mod remove;+mod rename;++#[cfg(test)]+mod tests;++use crate::path::validate_relative;+use digest::hash_opened_file;+use metadata::artifact_stamp;+use remove::snapshot_directory;+use std::ffi::CString;+use std::io;+use std::os::fd::{AsRawFd, FromRawFd, OwnedFd, RawFd};+use std::path::{Component, Path};++pub(crate) use copy::copy_opened;+pub(crate) use remove::remove_opened;+pub(crate) use rename::{rename_no_replace, rename_opened_no_replace};++pub(crate) struct RootHandle(OwnedFd);++pub(crate) struct ArtifactHandle {+ artifact: OwnedFd,+ parent: OwnedFd,+ name: CString,+ device: libc::dev_t,+ inode: libc::ino_t,+ opened_stamp: ArtifactStamp,+ opened_tree: Option<Vec<TreeEntrySnapshot>>,+ opened_file_sha256: Option<[u8; 32]>,+}++#[derive(Clone, Copy, Debug, Eq, PartialEq)]+struct ArtifactStamp {+ device: libc::dev_t,+ inode: libc::ino_t,+ size: libc::off_t,+ modified_seconds: i64,+ modified_nanoseconds: i64,+ changed_seconds: i64,+ changed_nanoseconds: i64,+}++struct TreeEntrySnapshot {+ name: CString,+ stamp: ArtifactStamp,+ kind: TreeEntryKind,+}++enum TreeEntryKind {+ File,+ Directory(Vec<TreeEntrySnapshot>),+}++pub(crate) fn open_root(path: &str) -> io::Result<RootHandle> {+ use std::os::unix::ffi::OsStrExt;++ let requested = Path::new(path);+ if !requested.is_absolute() {+ return Err(io::Error::new(+ io::ErrorKind::InvalidInput,+ "root path must be absolute",+ ));+ }++ // O_NOFOLLOW on a complete path protects only its final component. Walk+ // from the filesystem root so every directory is resolved relative to an+ // already-held descriptor.+ let fd = unsafe {+ libc::open(+ c"/".as_ptr(),+ libc::O_RDONLY | libc::O_DIRECTORY | libc::O_NOFOLLOW | libc::O_CLOEXEC,+ )+ };+ if fd < 0 {+ return Err(io::Error::last_os_error());+ }+ let mut current = unsafe { OwnedFd::from_raw_fd(fd) };+ for component in requested.components() {+ match component {+ Component::RootDir => {}+ Component::Normal(part) => {+ let part = CString::new(part.as_bytes()).map_err(|_| {+ io::Error::new(io::ErrorKind::InvalidInput, "root contains NUL")+ })?;+ let next = unsafe {+ libc::openat(+ current.as_raw_fd(),+ part.as_ptr(),+ libc::O_RDONLY | libc::O_DIRECTORY | libc::O_NOFOLLOW | libc::O_CLOEXEC,+ )+ };+ if next < 0 {+ return Err(io::Error::last_os_error());+ }+ current = unsafe { OwnedFd::from_raw_fd(next) };+ }+ _ => {+ return Err(io::Error::new(+ io::ErrorKind::InvalidInput,+ "root path traversal is forbidden",+ ));+ }+ }+ }+ Ok(RootHandle(current))+}++fn open_parent(root: RawFd, parts: &[&str]) -> io::Result<OwnedFd> {+ let duplicate = unsafe { libc::fcntl(root, libc::F_DUPFD_CLOEXEC, 0) };+ if duplicate < 0 {+ return Err(io::Error::last_os_error());+ }+ let mut current = unsafe { OwnedFd::from_raw_fd(duplicate) };+ for part in &parts[..parts.len().saturating_sub(1)] {+ let part = CString::new(*part).expect("validated component");+ let next = unsafe {+ libc::openat(+ current.as_raw_fd(),+ part.as_ptr(),+ libc::O_RDONLY | libc::O_DIRECTORY | libc::O_NOFOLLOW | libc::O_CLOEXEC,+ )+ };+ if next < 0 {+ return Err(io::Error::last_os_error());+ }+ current = unsafe { OwnedFd::from_raw_fd(next) };+ }+ Ok(current)+}++pub(crate) fn open_artifact(root: &RootHandle, relative: &str) -> io::Result<ArtifactHandle> {+ let parts = validate_relative(relative)?;+ let parent = open_parent(root.0.as_raw_fd(), &parts)?;+ let name = CString::new(*parts.last().expect("nonempty")).expect("validated component");+ let fd = unsafe {+ libc::openat(+ parent.as_raw_fd(),+ name.as_ptr(),+ libc::O_RDONLY | libc::O_NOFOLLOW | libc::O_CLOEXEC,+ )+ };+ if fd < 0 {+ return Err(io::Error::last_os_error());+ }+ let artifact = unsafe { OwnedFd::from_raw_fd(fd) };+ let opened_stat = metadata::stat_opened(artifact.as_raw_fd())?;+ let named_stat = metadata::stat_named(parent.as_raw_fd(), &name)?;+ if opened_stat.st_dev != named_stat.st_dev || opened_stat.st_ino != named_stat.st_ino {+ return Err(io::Error::new(+ io::ErrorKind::InvalidData,+ "artifact changed while opening",+ ));+ }+ let opened_type = opened_stat.st_mode & libc::S_IFMT;+ let opened_tree = if opened_type == libc::S_IFDIR {+ Some(snapshot_directory(artifact.as_raw_fd())?)+ } else if opened_type == libc::S_IFREG {+ None+ } else {+ return Err(io::Error::new(+ io::ErrorKind::InvalidData,+ "refusing to open a symbolic link or special artifact",+ ));+ };+ let opened_file_sha256 = if opened_type == libc::S_IFREG {+ Some(hash_opened_file(artifact.as_raw_fd())?)+ } else {+ None+ };+ Ok(ArtifactHandle {+ artifact,+ parent,+ name,+ device: opened_stat.st_dev,+ inode: opened_stat.st_ino,+ opened_stamp: artifact_stamp(&opened_stat),+ opened_tree,+ opened_file_sha256,+ })+}++fn assert_opened_artifact(+ artifact: &ArtifactHandle,+ parent: RawFd,+ name: &CString,+) -> io::Result<()> {+ let opened_stat = metadata::stat_opened(artifact.artifact.as_raw_fd())?;+ let named_stat = metadata::stat_named(parent, name)?;+ if opened_stat.st_dev != artifact.device+ || opened_stat.st_ino != artifact.inode+ || named_stat.st_dev != artifact.device+ || named_stat.st_ino != artifact.inode+ {+ return Err(io::Error::new(+ io::ErrorKind::InvalidData,+ "opened artifact identity mismatch",+ ));+ }+ Ok(())+}++pub(crate) fn sync_root(root: &RootHandle) -> io::Result<()> {+ if unsafe { libc::fsync(root.0.as_raw_fd()) } < 0 {+ return Err(io::Error::last_os_error());+ }+ Ok(())+}diff --git a/packages/finalize-fs/src/platform/unix/remove.rs b/packages/finalize-fs/src/platform/unix/remove.rsnew file mode 100644index 00000000..e9d77098--- /dev/null+++ b/packages/finalize-fs/src/platform/unix/remove.rs@@ -0,0 +1,332 @@+use super::digest::hash_opened_file;+use super::metadata::{+ artifact_stamp, directory_entries, ensure_same_entry, stamp_stable_across_rename, stat_named,+ stat_opened,+};+use super::{ArtifactHandle, ArtifactStamp, TreeEntryKind, TreeEntrySnapshot};+use crate::path::validate_relative;+use std::ffi::CString;+use std::io;+use std::os::fd::{AsRawFd, FromRawFd, OwnedFd, RawFd};++fn assert_name_absent(parent: RawFd, name: &CString) -> io::Result<()> {+ match stat_named(parent, name) {+ Err(error) if error.kind() == io::ErrorKind::NotFound => Ok(()),+ Err(error) => Err(error),+ Ok(_) => Err(io::Error::new(+ io::ErrorKind::InvalidData,+ "artifact name was replaced during removal",+ )),+ }+}++#[cfg(any(target_os = "macos", target_os = "linux"))]+fn isolate_opened_for_removal(+ artifact: &ArtifactHandle,+ quarantine_relative: &str,+ resume_isolated: bool,+) -> io::Result<CString> {+ let parts = validate_relative(quarantine_relative)?;+ if parts.len() != 1 {+ return Err(io::Error::new(+ io::ErrorKind::InvalidInput,+ "removal quarantine must be an immediate sibling",+ ));+ }+ let quarantine_name = CString::new(parts[0]).expect("validated component");+ if resume_isolated {+ if artifact.name.as_bytes() != quarantine_name.as_bytes() {+ return Err(io::Error::new(+ io::ErrorKind::InvalidInput,+ "resumed removal handle does not name its quarantine",+ ));+ }+ } else {+ if artifact.name.as_bytes() == quarantine_name.as_bytes() {+ return Err(io::Error::new(+ io::ErrorKind::InvalidInput,+ "removal quarantine must differ from the artifact name",+ ));+ }++ #[cfg(target_os = "macos")]+ let result = unsafe {+ libc::renameatx_np(+ artifact.parent.as_raw_fd(),+ artifact.name.as_ptr(),+ artifact.parent.as_raw_fd(),+ quarantine_name.as_ptr(),+ libc::RENAME_EXCL,+ )+ };+ #[cfg(target_os = "linux")]+ let result = unsafe {+ libc::syscall(+ libc::SYS_renameat2,+ artifact.parent.as_raw_fd(),+ artifact.name.as_ptr(),+ artifact.parent.as_raw_fd(),+ quarantine_name.as_ptr(),+ libc::RENAME_NOREPLACE,+ ) as i32+ };+ if result < 0 {+ return Err(io::Error::last_os_error());+ }+ }++ let isolated = ensure_same_entry(+ artifact.artifact.as_raw_fd(),+ artifact.parent.as_raw_fd(),+ &quarantine_name,+ );+ if let Ok(isolated_stat) = isolated+ && (resume_isolated && artifact_stamp(&isolated_stat) == artifact.opened_stamp+ || !resume_isolated+ && stamp_stable_across_rename(+ artifact_stamp(&isolated_stat),+ artifact.opened_stamp,+ ))+ {+ if !resume_isolated {+ assert_name_absent(artifact.parent.as_raw_fd(), &artifact.name)?;+ }+ if unsafe { libc::fsync(artifact.parent.as_raw_fd()) } < 0 {+ return Err(io::Error::last_os_error());+ }+ return Ok(quarantine_name);+ }+ Err(io::Error::new(+ io::ErrorKind::InvalidData,+ format!(+ "artifact changed while isolating removal; preserved as {}",+ quarantine_name.to_string_lossy()+ ),+ ))+}++#[cfg(not(any(target_os = "macos", target_os = "linux")))]+fn isolate_opened_for_removal(+ _artifact: &ArtifactHandle,+ quarantine_relative: &str,+ _resume_isolated: bool,+) -> io::Result<CString> {+ validate_relative(quarantine_relative)?;+ Err(io::Error::new(+ io::ErrorKind::Unsupported,+ "atomic removal isolation is not implemented on this platform",+ ))+}++pub(super) fn snapshot_directory(directory: RawFd) -> io::Result<Vec<TreeEntrySnapshot>> {+ let mut snapshot = Vec::new();+ for name in directory_entries(directory)? {+ let named_stat = stat_named(directory, &name)?;+ let file_type = named_stat.st_mode & libc::S_IFMT;+ let flags = libc::O_RDONLY+ | libc::O_NOFOLLOW+ | libc::O_CLOEXEC+ | if file_type == libc::S_IFDIR {+ libc::O_DIRECTORY+ } else {+ 0+ };+ let child = unsafe { libc::openat(directory, name.as_ptr(), flags) };+ if child < 0 {+ return Err(io::Error::last_os_error());+ }+ let child = unsafe { OwnedFd::from_raw_fd(child) };+ let opened_stat = ensure_same_entry(child.as_raw_fd(), directory, &name)?;+ let opened_type = opened_stat.st_mode & libc::S_IFMT;+ let kind = if opened_type == libc::S_IFDIR {+ TreeEntryKind::Directory(snapshot_directory(child.as_raw_fd())?)+ } else if opened_type == libc::S_IFREG {+ TreeEntryKind::File+ } else {+ return Err(io::Error::new(+ io::ErrorKind::InvalidData,+ "refusing to remove a symbolic link or special file",+ ));+ };+ snapshot.push(TreeEntrySnapshot {+ name,+ stamp: artifact_stamp(&opened_stat),+ kind,+ });+ }+ Ok(snapshot)+}++fn remove_directory_snapshot(directory: RawFd, snapshot: &[TreeEntrySnapshot]) -> io::Result<()> {+ let current = directory_entries(directory)?;+ if current.len() != snapshot.len()+ || current+ .iter()+ .zip(snapshot)+ .any(|(name, expected)| name.as_bytes() != expected.name.as_bytes())+ {+ return Err(io::Error::new(+ io::ErrorKind::InvalidData,+ "directory contents changed before removal",+ ));+ }++ for expected in snapshot {+ let flags = libc::O_RDONLY+ | libc::O_NOFOLLOW+ | libc::O_CLOEXEC+ | if matches!(&expected.kind, TreeEntryKind::Directory(_)) {+ libc::O_DIRECTORY+ } else {+ 0+ };+ let child = unsafe { libc::openat(directory, expected.name.as_ptr(), flags) };+ if child < 0 {+ return Err(io::Error::last_os_error());+ }+ let child = unsafe { OwnedFd::from_raw_fd(child) };+ let opened_stat = ensure_same_entry(child.as_raw_fd(), directory, &expected.name)?;+ if artifact_stamp(&opened_stat) != expected.stamp {+ return Err(io::Error::new(+ io::ErrorKind::InvalidData,+ "directory entry changed before removal",+ ));+ }+ match &expected.kind {+ TreeEntryKind::Directory(children) => {+ remove_directory_snapshot(child.as_raw_fd(), children)?;+ ensure_same_entry(child.as_raw_fd(), directory, &expected.name)?;+ if unsafe { libc::unlinkat(directory, expected.name.as_ptr(), libc::AT_REMOVEDIR) }+ < 0+ {+ return Err(io::Error::last_os_error());+ }+ }+ TreeEntryKind::File => {+ let before_unlink =+ ensure_same_entry(child.as_raw_fd(), directory, &expected.name)?;+ if artifact_stamp(&before_unlink) != expected.stamp {+ return Err(io::Error::new(+ io::ErrorKind::InvalidData,+ "file changed before removal",+ ));+ }+ if unsafe { libc::unlinkat(directory, expected.name.as_ptr(), 0) } < 0 {+ return Err(io::Error::last_os_error());+ }+ }+ }+ assert_name_absent(directory, &expected.name)?;+ }+ if unsafe { libc::fsync(directory) } < 0 {+ return Err(io::Error::last_os_error());+ }+ Ok(())+}++fn remove_directory_contents(+ directory: RawFd,+ opened_stamp: ArtifactStamp,+ opened_tree: &[TreeEntrySnapshot],+) -> io::Result<()> {+ if !stamp_stable_across_rename(artifact_stamp(&stat_opened(directory)?), opened_stamp) {+ return Err(io::Error::new(+ io::ErrorKind::InvalidData,+ "directory changed after it was opened",+ ));+ }+ if !stamp_stable_across_rename(artifact_stamp(&stat_opened(directory)?), opened_stamp) {+ return Err(io::Error::new(+ io::ErrorKind::InvalidData,+ "directory changed while snapshotting removal",+ ));+ }+ remove_directory_snapshot(directory, opened_tree)+}++pub(crate) fn remove_opened(+ artifact: &ArtifactHandle,+ quarantine_relative: &str,+ resume_isolated: bool,+) -> io::Result<()> {+ let opened_stat = ensure_same_entry(+ artifact.artifact.as_raw_fd(),+ artifact.parent.as_raw_fd(),+ &artifact.name,+ )?;+ if artifact_stamp(&opened_stat) != artifact.opened_stamp {+ return Err(io::Error::new(+ io::ErrorKind::InvalidData,+ "artifact changed after it was opened",+ ));+ }+ // POSIX has no unlink-by-handle primitive. Atomically isolate the verified+ // name first, then bind the quarantine name back to the held descriptor.+ let isolated_name = isolate_opened_for_removal(artifact, quarantine_relative, resume_isolated)?;+ let file_type = opened_stat.st_mode & libc::S_IFMT;+ if file_type == libc::S_IFDIR {+ let opened_tree = artifact.opened_tree.as_deref().ok_or_else(|| {+ io::Error::new(+ io::ErrorKind::InvalidData,+ "opened directory is missing its held tree snapshot",+ )+ })?;+ remove_directory_contents(+ artifact.artifact.as_raw_fd(),+ artifact.opened_stamp,+ opened_tree,+ )?;+ ensure_same_entry(+ artifact.artifact.as_raw_fd(),+ artifact.parent.as_raw_fd(),+ &isolated_name,+ )?;+ if unsafe {+ libc::unlinkat(+ artifact.parent.as_raw_fd(),+ isolated_name.as_ptr(),+ libc::AT_REMOVEDIR,+ )+ } < 0+ {+ return Err(io::Error::last_os_error());+ }+ } else if file_type == libc::S_IFREG {+ let before_unlink = ensure_same_entry(+ artifact.artifact.as_raw_fd(),+ artifact.parent.as_raw_fd(),+ &isolated_name,+ )?;+ if !stamp_stable_across_rename(artifact_stamp(&before_unlink), artifact.opened_stamp) {+ return Err(io::Error::new(+ io::ErrorKind::InvalidData,+ "artifact changed before removal",+ ));+ }+ let opened_file_sha256 = artifact.opened_file_sha256.ok_or_else(|| {+ io::Error::new(+ io::ErrorKind::InvalidData,+ "opened file is missing its held content digest",+ )+ })?;+ if hash_opened_file(artifact.artifact.as_raw_fd())? != opened_file_sha256 {+ return Err(io::Error::new(+ io::ErrorKind::InvalidData,+ "file content changed before removal",+ ));+ }+ if unsafe { libc::unlinkat(artifact.parent.as_raw_fd(), isolated_name.as_ptr(), 0) } < 0 {+ return Err(io::Error::last_os_error());+ }+ } else {+ return Err(io::Error::new(+ io::ErrorKind::InvalidData,+ "refusing to remove a symbolic link or special artifact",+ ));+ }+ assert_name_absent(artifact.parent.as_raw_fd(), &isolated_name)?;+ if unsafe { libc::fsync(artifact.parent.as_raw_fd()) } < 0 {+ return Err(io::Error::last_os_error());+ }+ Ok(())+}diff --git a/packages/finalize-fs/src/platform/unix/rename.rs b/packages/finalize-fs/src/platform/unix/rename.rsnew file mode 100644index 00000000..347b178b--- /dev/null+++ b/packages/finalize-fs/src/platform/unix/rename.rs@@ -0,0 +1,121 @@+use super::{ArtifactHandle, RootHandle, assert_opened_artifact, open_parent};+use crate::path::validate_relative;+use std::ffi::CString;+use std::io;+use std::os::fd::AsRawFd;++#[cfg(any(target_os = "macos", target_os = "linux"))]+pub(crate) fn rename_opened_no_replace(+ artifact: &ArtifactHandle,+ target: &RootHandle,+ target_relative: &str,+) -> io::Result<()> {+ let target_parts = validate_relative(target_relative)?;+ let target_parent = open_parent(target.0.as_raw_fd(), &target_parts)?;+ let target_name =+ CString::new(*target_parts.last().expect("nonempty")).expect("validated component");+ assert_opened_artifact(artifact, artifact.parent.as_raw_fd(), &artifact.name)?;++ #[cfg(target_os = "macos")]+ let result = unsafe {+ libc::renameatx_np(+ artifact.parent.as_raw_fd(),+ artifact.name.as_ptr(),+ target_parent.as_raw_fd(),+ target_name.as_ptr(),+ libc::RENAME_EXCL,+ )+ };+ #[cfg(target_os = "linux")]+ let result = unsafe {+ libc::syscall(+ libc::SYS_renameat2,+ artifact.parent.as_raw_fd(),+ artifact.name.as_ptr(),+ target_parent.as_raw_fd(),+ target_name.as_ptr(),+ libc::RENAME_NOREPLACE,+ ) as i32+ };+ if result < 0 {+ return Err(io::Error::last_os_error());+ }+ assert_opened_artifact(artifact, target_parent.as_raw_fd(), &target_name)?;+ if unsafe { libc::fsync(target_parent.as_raw_fd()) } < 0+ || unsafe { libc::fsync(artifact.parent.as_raw_fd()) } < 0+ {+ return Err(io::Error::last_os_error());+ }+ Ok(())+}++#[cfg(not(any(target_os = "macos", target_os = "linux")))]+pub(crate) fn rename_opened_no_replace(+ _artifact: &ArtifactHandle,+ _target: &RootHandle,+ target_relative: &str,+) -> io::Result<()> {+ validate_relative(target_relative)?;+ Err(io::Error::new(+ io::ErrorKind::Unsupported,+ "opened no-replace rename is not implemented on this platform",+ ))+}++#[cfg(any(target_os = "macos", target_os = "linux"))]+pub(crate) fn rename_no_replace(+ source: &RootHandle,+ source_relative: &str,+ target: &RootHandle,+ target_relative: &str,+) -> io::Result<()> {+ let source_parts = validate_relative(source_relative)?;+ let target_parts = validate_relative(target_relative)?;+ let source_parent = open_parent(source.0.as_raw_fd(), &source_parts)?;+ let target_parent = open_parent(target.0.as_raw_fd(), &target_parts)?;+ let source_name =+ CString::new(*source_parts.last().expect("nonempty")).expect("validated component");+ let target_name =+ CString::new(*target_parts.last().expect("nonempty")).expect("validated component");++ #[cfg(target_os = "macos")]+ let result = unsafe {+ libc::renameatx_np(+ source_parent.as_raw_fd(),+ source_name.as_ptr(),+ target_parent.as_raw_fd(),+ target_name.as_ptr(),+ libc::RENAME_EXCL,+ )+ };+ #[cfg(target_os = "linux")]+ let result = unsafe {+ libc::syscall(+ libc::SYS_renameat2,+ source_parent.as_raw_fd(),+ source_name.as_ptr(),+ target_parent.as_raw_fd(),+ target_name.as_ptr(),+ libc::RENAME_NOREPLACE,+ ) as i32+ };+ if result < 0 {+ return Err(io::Error::last_os_error());+ }+ Ok(())+}++#[cfg(not(any(target_os = "macos", target_os = "linux")))]+pub(crate) fn rename_no_replace(+ _source: &RootHandle,+ source_relative: &str,+ _target: &RootHandle,+ target_relative: &str,+) -> io::Result<()> {+ validate_relative(source_relative)?;+ validate_relative(target_relative)?;+ Err(io::Error::new(+ io::ErrorKind::Unsupported,+ "atomic no-replace rename is not implemented on this platform",+ ))+}diff --git a/packages/finalize-fs/src/platform/unix/tests.rs b/packages/finalize-fs/src/platform/unix/tests.rsnew file mode 100644index 00000000..d698dc0d--- /dev/null+++ b/packages/finalize-fs/src/platform/unix/tests.rs@@ -0,0 +1,161 @@+use super::digest::Sha256State;+use super::{open_artifact, open_root, remove_opened};+#[cfg(target_os = "macos")]+use super::{rename_no_replace, rename_opened_no_replace};+#[cfg(target_os = "macos")]+use std::io;++#[test]+fn held_file_digest_uses_sha256() {+ let mut hash = Sha256State::new();+ hash.update(b"abc");+ assert_eq!(+ hash.finalize(),+ [+ 0xba, 0x78, 0x16, 0xbf, 0x8f, 0x01, 0xcf, 0xea, 0x41, 0x41, 0x40, 0xde, 0x5d, 0xae,+ 0x22, 0x23, 0xb0, 0x03, 0x61, 0xa3, 0x96, 0x17, 0x7a, 0x9c, 0xb4, 0x10, 0xff, 0x61,+ 0xf2, 0x00, 0x15, 0xad,+ ]+ );+}++#[test]+fn open_root_rejects_an_intermediate_symbolic_link() {+ use std::os::unix::fs::symlink;++ let base = std::env::temp_dir().join(format!("motrix-finalize-fs-root-{}", std::process::id()));+ let _ = std::fs::remove_dir_all(&base);+ std::fs::create_dir_all(base.join("real/child")).unwrap();+ let base = base.canonicalize().unwrap();+ symlink(base.join("real"), base.join("link")).unwrap();++ let error = match open_root(base.join("link/child").to_str().unwrap()) {+ Ok(_) => panic!("intermediate symbolic link was accepted"),+ Err(error) => error,+ };+ assert!(matches!(+ error.raw_os_error(),+ Some(libc::ELOOP) | Some(libc::ENOTDIR)+ ));+ let _ = std::fs::remove_dir_all(&base);+}++#[test]+fn held_remove_rejects_a_replaced_name_and_preserves_the_replacement() {+ let base = std::env::temp_dir().join(format!(+ "motrix-finalize-fs-remove-race-{}",+ std::process::id()+ ));+ let _ = std::fs::remove_dir_all(&base);+ std::fs::create_dir_all(&base).unwrap();+ let base = base.canonicalize().unwrap();+ std::fs::write(base.join("artifact"), b"original").unwrap();+ let root = open_root(base.to_str().unwrap()).unwrap();+ let artifact = open_artifact(&root, "artifact").unwrap();+ std::fs::rename(base.join("artifact"), base.join("original-moved")).unwrap();+ std::fs::write(base.join("artifact"), b"replacement").unwrap();++ assert!(remove_opened(&artifact, ".motrix-finalize-remove-race", false).is_err());+ assert_eq!(+ std::fs::read(base.join("artifact")).unwrap(),+ b"replacement"+ );+ assert_eq!(+ std::fs::read(base.join("original-moved")).unwrap(),+ b"original"+ );+ let _ = std::fs::remove_dir_all(&base);+}++#[test]+fn held_remove_deletes_a_verified_directory_tree() {+ let base = std::env::temp_dir().join(format!(+ "motrix-finalize-fs-remove-tree-{}",+ std::process::id()+ ));+ let _ = std::fs::remove_dir_all(&base);+ std::fs::create_dir_all(base.join("artifact/nested")).unwrap();+ let base = base.canonicalize().unwrap();+ std::fs::write(base.join("artifact/nested/payload"), b"payload").unwrap();+ let root = open_root(base.to_str().unwrap()).unwrap();+ let artifact = open_artifact(&root, "artifact").unwrap();++ remove_opened(&artifact, ".motrix-finalize-remove-tree", false).unwrap();+ assert!(!base.join("artifact").exists());+ let _ = std::fs::remove_dir_all(&base);+}++#[test]+fn held_remove_preserves_a_tree_changed_after_open() {+ let base = std::env::temp_dir().join(format!(+ "motrix-finalize-fs-remove-tree-race-{}",+ std::process::id()+ ));+ let _ = std::fs::remove_dir_all(&base);+ std::fs::create_dir_all(base.join("artifact/nested")).unwrap();+ let base = base.canonicalize().unwrap();+ std::fs::write(base.join("artifact/nested/original"), b"original").unwrap();+ let root = open_root(base.to_str().unwrap()).unwrap();+ let artifact = open_artifact(&root, "artifact").unwrap();+ std::fs::write(base.join("artifact/nested/inserted"), b"inserted").unwrap();++ let quarantine_name = ".motrix-finalize-remove-tree-race";+ assert!(remove_opened(&artifact, quarantine_name, false).is_err());+ assert!(!base.join("artifact").exists());+ let quarantined = base.join(quarantine_name);+ assert!(quarantined.exists());+ assert_eq!(+ std::fs::read(quarantined.join("nested/original")).unwrap(),+ b"original"+ );+ assert_eq!(+ std::fs::read(quarantined.join("nested/inserted")).unwrap(),+ b"inserted"+ );+ let _ = std::fs::remove_dir_all(&base);+}++#[test]+fn held_remove_resumes_an_exact_persisted_quarantine() {+ let base = std::env::temp_dir().join(format!(+ "motrix-finalize-fs-remove-resume-{}",+ std::process::id()+ ));+ let _ = std::fs::remove_dir_all(&base);+ std::fs::create_dir_all(&base).unwrap();+ let base = base.canonicalize().unwrap();+ let quarantine_name = ".motrix-finalize-remove-resume";+ std::fs::write(base.join(quarantine_name), b"preserved").unwrap();+ let root = open_root(base.to_str().unwrap()).unwrap();+ let artifact = open_artifact(&root, quarantine_name).unwrap();++ remove_opened(&artifact, quarantine_name, true).unwrap();++ assert!(!base.join(quarantine_name).exists());+ let _ = std::fs::remove_dir_all(&base);+}++#[cfg(target_os = "macos")]+#[test]+fn darwin_rename_is_no_replace_for_files_and_directories() {+ let base = std::env::temp_dir().join(format!("motrix-finalize-fs-{}", std::process::id()));+ let _ = std::fs::remove_dir_all(&base);+ std::fs::create_dir_all(base.join("source/tree")).unwrap();+ std::fs::create_dir_all(base.join("target")).unwrap();+ let base = base.canonicalize().unwrap();+ std::fs::write(base.join("source/file"), b"source").unwrap();+ std::fs::write(base.join("target/file"), b"target").unwrap();+ let source = open_root(base.join("source").to_str().unwrap()).unwrap();+ let target = open_root(base.join("target").to_str().unwrap()).unwrap();+ let error = rename_no_replace(&source, "file", &target, "file").unwrap_err();+ assert_eq!(error.kind(), io::ErrorKind::AlreadyExists);+ assert_eq!(std::fs::read(base.join("target/file")).unwrap(), b"target");+ rename_no_replace(&source, "tree", &target, "tree").unwrap();+ assert!(base.join("target/tree").is_dir());++ std::fs::write(base.join("source/opened"), b"held").unwrap();+ let opened = open_artifact(&source, "opened").unwrap();+ rename_opened_no_replace(&opened, &target, "opened").unwrap();+ assert_eq!(std::fs::read(base.join("target/opened")).unwrap(), b"held");+ let _ = std::fs::remove_dir_all(base);+}diff --git a/packages/finalize-fs/src/platform/unsupported.rs b/packages/finalize-fs/src/platform/unsupported.rsnew file mode 100644index 00000000..a5858f81--- /dev/null+++ b/packages/finalize-fs/src/platform/unsupported.rs@@ -0,0 +1,79 @@+//! Truthful unsupported backend for unimplemented target families.++use crate::path::validate_relative;+use std::io;++pub(crate) struct RootHandle;+pub(crate) struct ArtifactHandle;++pub(crate) fn open_root(_path: &str) -> io::Result<RootHandle> {+ Err(io::Error::new(+ io::ErrorKind::Unsupported,+ "held root handles are not implemented on this platform",+ ))+}++pub(crate) fn open_artifact(_root: &RootHandle, relative: &str) -> io::Result<ArtifactHandle> {+ validate_relative(relative)?;+ Err(io::Error::new(+ io::ErrorKind::Unsupported,+ "held artifact handles are not implemented on this platform",+ ))+}++pub(crate) fn rename_opened_no_replace(+ _artifact: &ArtifactHandle,+ _target: &RootHandle,+ target_relative: &str,+) -> io::Result<()> {+ validate_relative(target_relative)?;+ Err(io::Error::new(+ io::ErrorKind::Unsupported,+ "opened no-replace rename is not implemented on this platform",+ ))+}++pub(crate) fn rename_no_replace(+ _source: &RootHandle,+ source_relative: &str,+ _target: &RootHandle,+ target_relative: &str,+) -> io::Result<()> {+ validate_relative(source_relative)?;+ validate_relative(target_relative)?;+ Err(io::Error::new(+ io::ErrorKind::Unsupported,+ "atomic no-replace rename is not implemented on this platform",+ ))+}++pub(crate) fn copy_opened(+ _artifact: &ArtifactHandle,+ _target: &RootHandle,+ target_relative: &str,+) -> io::Result<()> {+ validate_relative(target_relative)?;+ Err(io::Error::new(+ io::ErrorKind::Unsupported,+ "handle-bound artifact copy is not implemented on this platform",+ ))+}++pub(crate) fn remove_opened(+ _artifact: &ArtifactHandle,+ quarantine_relative: &str,+ _resume_isolated: bool,+) -> io::Result<()> {+ validate_relative(quarantine_relative)?;+ Err(io::Error::new(+ io::ErrorKind::Unsupported,+ "handle-bound removal is not implemented on this platform",+ ))+}++pub(crate) fn sync_root(_root: &RootHandle) -> io::Result<()> {+ Err(io::Error::new(+ io::ErrorKind::Unsupported,+ "directory durability is not implemented on this platform",+ ))+}diff --git a/packages/finalize-fs/src/platform/windows/copy.rs b/packages/finalize-fs/src/platform/windows/copy.rsnew file mode 100644index 00000000..ad8f4324--- /dev/null+++ b/packages/finalize-fs/src/platform/windows/copy.rs@@ -0,0 +1,78 @@+use super::metadata::{ArtifactSnapshot, content_matches, ensure_named_entry, ensure_snapshot};+use super::{ArtifactHandle, RootHandle, open_parent};+use crate::path::validate_relative;+use std::fs::File;+use std::io::{self, Seek};+use std::os::windows::io::OwnedHandle;++pub(crate) fn copy_opened(+ artifact: &ArtifactHandle,+ target: &RootHandle,+ target_relative: &str,+) -> io::Result<()> {+ ensure_snapshot(&artifact.handle, &artifact.snapshot)?;+ ensure_named_entry(&artifact.handle, &artifact.parent, &artifact.name)?;++ let target_parts = validate_relative(target_relative)?;+ let (target_parent, target_name) = open_parent(&target.handle, &target_parts)?;+ materialize(+ &artifact.handle,+ &artifact.snapshot,+ &target_parent,+ &target_name,+ )?;+ ensure_snapshot(&artifact.handle, &artifact.snapshot)?;+ ensure_named_entry(&artifact.handle, &artifact.parent, &artifact.name)?;+ super::nt::flush(&target_parent)+}++fn materialize(+ source: &OwnedHandle,+ expected: &ArtifactSnapshot,+ target_parent: &OwnedHandle,+ target_name: &[u16],+) -> io::Result<()> {+ let target = if expected.is_directory() {+ super::nt::create_directory(target_parent, target_name)?+ } else {+ super::nt::create_file(target_parent, target_name)?+ };+ copy_into(source, expected, &target)?;+ let actual = super::metadata::snapshot_opened(&target)?;+ if !content_matches(expected, &actual) {+ return Err(io::Error::new(+ io::ErrorKind::InvalidData,+ "Windows copied artifact does not match its held source",+ ));+ }+ super::nt::flush(&target)+}++fn copy_into(+ source: &OwnedHandle,+ expected: &ArtifactSnapshot,+ target: &OwnedHandle,+) -> io::Result<()> {+ ensure_snapshot(source, expected)?;+ match expected {+ ArtifactSnapshot::File { .. } => copy_file_contents(source, target)?,+ ArtifactSnapshot::Directory { entries, .. } => {+ for entry in entries {+ let source_child = super::nt::open_existing(source, &entry.name)?;+ ensure_snapshot(&source_child, &entry.artifact)?;+ materialize(&source_child, &entry.artifact, target, &entry.name)?;+ ensure_snapshot(&source_child, &entry.artifact)?;+ }+ }+ }+ ensure_snapshot(source, expected)+}++fn copy_file_contents(source: &OwnedHandle, target: &OwnedHandle) -> io::Result<()> {+ let mut source_file = File::from(source.try_clone()?);+ let mut target_file = File::from(target.try_clone()?);+ source_file.rewind()?;+ target_file.rewind()?;+ io::copy(&mut source_file, &mut target_file)?;+ target_file.sync_all()+}diff --git a/packages/finalize-fs/src/platform/windows/digest.rs b/packages/finalize-fs/src/platform/windows/digest.rsnew file mode 100644index 00000000..d12a0d46--- /dev/null+++ b/packages/finalize-fs/src/platform/windows/digest.rs@@ -0,0 +1,19 @@+use sha2::{Digest, Sha256};+use std::fs::File;+use std::io::{self, Read, Seek};+use std::os::windows::io::OwnedHandle;++pub(super) fn hash_opened_file(handle: &OwnedHandle) -> io::Result<[u8; 32]> {+ let mut file = File::from(handle.try_clone()?);+ file.rewind()?;+ let mut digest = Sha256::new();+ let mut buffer = [0_u8; 128 * 1024];+ loop {+ let read = file.read(&mut buffer)?;+ if read == 0 {+ break;+ }+ digest.update(&buffer[..read]);+ }+ Ok(digest.finalize().into())+}diff --git a/packages/finalize-fs/src/platform/windows/metadata.rs b/packages/finalize-fs/src/platform/windows/metadata.rsnew file mode 100644index 00000000..833db08b--- /dev/null+++ b/packages/finalize-fs/src/platform/windows/metadata.rs@@ -0,0 +1,280 @@+//! Identity and immutable tree snapshots for held Windows handles.++use super::digest::hash_opened_file;+use super::nt;+use std::io;+use std::mem::{offset_of, size_of};+use std::os::windows::io::{AsRawHandle, OwnedHandle};+use windows_sys::Win32::Foundation::{+ ERROR_FILE_NOT_FOUND, ERROR_NO_MORE_FILES, ERROR_PATH_NOT_FOUND,+};+use windows_sys::Win32::Storage::FileSystem::{+ FILE_ATTRIBUTE_REPARSE_POINT, FILE_BASIC_INFO, FILE_ID_EXTD_DIR_INFO, FILE_ID_INFO,+ FILE_STANDARD_INFO, FileBasicInfo, FileIdExtdDirectoryInfo, FileIdExtdDirectoryRestartInfo,+ FileIdInfo, FileStandardInfo, GetFileInformationByHandleEx,+};++#[derive(Clone, Debug, Eq, PartialEq)]+pub(super) struct FileStamp {+ volume: u64,+ file_id: [u8; 16],+ size: i64,+ last_write: i64,+ attributes: u32,+ pub(super) directory: bool,+}++#[derive(Clone, Debug, Eq, PartialEq)]+pub(super) struct EntrySnapshot {+ pub(super) name: Vec<u16>,+ pub(super) artifact: ArtifactSnapshot,+}++#[derive(Clone, Debug, Eq, PartialEq)]+pub(super) enum ArtifactSnapshot {+ File {+ stamp: FileStamp,+ sha256: [u8; 32],+ },+ Directory {+ stamp: FileStamp,+ entries: Vec<EntrySnapshot>,+ },+}++impl ArtifactSnapshot {+ pub(super) fn is_directory(&self) -> bool {+ matches!(self, Self::Directory { .. })+ }+}++pub(super) fn query_stamp(handle: &OwnedHandle) -> io::Result<FileStamp> {+ let basic: FILE_BASIC_INFO = query(handle, FileBasicInfo)?;+ let id: FILE_ID_INFO = query(handle, FileIdInfo)?;+ let standard: FILE_STANDARD_INFO = query(handle, FileStandardInfo)?;+ if basic.FileAttributes & FILE_ATTRIBUTE_REPARSE_POINT != 0 {+ return Err(io::Error::new(+ io::ErrorKind::InvalidInput,+ "Windows reparse points are forbidden",+ ));+ }+ Ok(FileStamp {+ volume: id.VolumeSerialNumber,+ file_id: id.FileId.Identifier,+ size: standard.EndOfFile,+ last_write: basic.LastWriteTime,+ attributes: basic.FileAttributes,+ directory: standard.Directory,+ })+}++pub(super) fn snapshot_opened(handle: &OwnedHandle) -> io::Result<ArtifactSnapshot> {+ let stamp = query_stamp(handle)?;+ if stamp.directory {+ Ok(ArtifactSnapshot::Directory {+ stamp,+ entries: snapshot_directory(handle)?,+ })+ } else {+ Ok(ArtifactSnapshot::File {+ stamp,+ sha256: hash_opened_file(handle)?,+ })+ }+}++pub(super) fn ensure_snapshot(handle: &OwnedHandle, expected: &ArtifactSnapshot) -> io::Result<()> {+ if snapshot_opened(handle)? != *expected {+ return Err(io::Error::new(+ io::ErrorKind::InvalidData,+ "opened Windows artifact changed after admission",+ ));+ }+ Ok(())+}++pub(super) fn ensure_named_entry(+ opened: &OwnedHandle,+ parent: &OwnedHandle,+ name: &[u16],+) -> io::Result<()> {+ let named = nt::open_existing(parent, name)?;+ ensure_same_opened(opened, &named)+}++pub(super) fn ensure_same_opened(left: &OwnedHandle, right: &OwnedHandle) -> io::Result<()> {+ let left_stamp = query_stamp(left)?;+ let right_stamp = query_stamp(right)?;+ if left_stamp.volume != right_stamp.volume || left_stamp.file_id != right_stamp.file_id {+ return Err(io::Error::new(+ io::ErrorKind::InvalidData,+ "opened Windows handles no longer identify the same artifact",+ ));+ }+ Ok(())+}++pub(super) fn assert_name_absent(parent: &OwnedHandle, name: &[u16]) -> io::Result<()> {+ match nt::open_existing(parent, name) {+ Ok(_) => Err(io::Error::new(+ io::ErrorKind::InvalidData,+ "Windows artifact name still exists after mutation",+ )),+ Err(error)+ if matches!(+ error.raw_os_error(),+ Some(code)+ if code == ERROR_FILE_NOT_FOUND as i32+ || code == ERROR_PATH_NOT_FOUND as i32+ ) =>+ {+ Ok(())+ }+ Err(error) => Err(error),+ }+}++pub(super) fn content_matches(expected: &ArtifactSnapshot, actual: &ArtifactSnapshot) -> bool {+ match (expected, actual) {+ (+ ArtifactSnapshot::File { sha256: left, .. },+ ArtifactSnapshot::File { sha256: right, .. },+ ) => left == right,+ (+ ArtifactSnapshot::Directory { entries: left, .. },+ ArtifactSnapshot::Directory { entries: right, .. },+ ) => {+ left.len() == right.len()+ && left.iter().zip(right).all(|(left, right)| {+ left.name == right.name && content_matches(&left.artifact, &right.artifact)+ })+ }+ _ => false,+ }+}++fn snapshot_directory(directory: &OwnedHandle) -> io::Result<Vec<EntrySnapshot>> {+ let mut entries = Vec::new();+ for name in directory_names(directory)? {+ let child = nt::open_existing(directory, &name)?;+ entries.push(EntrySnapshot {+ name,+ artifact: snapshot_opened(&child)?,+ });+ }+ entries.sort_by(|left, right| left.name.cmp(&right.name));+ Ok(entries)+}++fn directory_names(directory: &OwnedHandle) -> io::Result<Vec<Vec<u16>>> {+ const BUFFER_BYTES: usize = 64 * 1024;+ let mut storage = vec![0_u64; BUFFER_BYTES.div_ceil(size_of::<u64>())];+ let mut names = Vec::new();+ let mut restart = true;+ loop {+ let class = if restart {+ FileIdExtdDirectoryRestartInfo+ } else {+ FileIdExtdDirectoryInfo+ };+ restart = false;+ let result = unsafe {+ GetFileInformationByHandleEx(+ directory.as_raw_handle(),+ class,+ storage.as_mut_ptr().cast(),+ u32::try_from(BUFFER_BYTES).expect("directory buffer size"),+ )+ };+ if result == 0 {+ let error = io::Error::last_os_error();+ if error.raw_os_error() == Some(ERROR_NO_MORE_FILES as i32) {+ break;+ }+ return Err(error);+ }++ let mut offset = 0_usize;+ loop {+ let header_end = offset+ .checked_add(offset_of!(FILE_ID_EXTD_DIR_INFO, FileName))+ .ok_or_else(|| {+ io::Error::new(io::ErrorKind::InvalidData, "directory entry overflow")+ })?;+ if header_end > BUFFER_BYTES {+ return Err(io::Error::new(+ io::ErrorKind::InvalidData,+ "Windows directory entry exceeds its buffer",+ ));+ }+ let entry = unsafe {+ &*storage+ .as_ptr()+ .cast::<u8>()+ .add(offset)+ .cast::<FILE_ID_EXTD_DIR_INFO>()+ };+ if entry.FileAttributes & FILE_ATTRIBUTE_REPARSE_POINT != 0 {+ return Err(io::Error::new(+ io::ErrorKind::InvalidInput,+ "Windows directory contains a reparse point",+ ));+ }+ let name_bytes = usize::try_from(entry.FileNameLength).map_err(|_| {+ io::Error::new(io::ErrorKind::InvalidData, "directory name is too long")+ })?;+ if name_bytes % size_of::<u16>() != 0+ || header_end+ .checked_add(name_bytes)+ .is_none_or(|end| end > BUFFER_BYTES)+ {+ return Err(io::Error::new(+ io::ErrorKind::InvalidData,+ "Windows directory name has an invalid length",+ ));+ }+ let name = unsafe {+ std::slice::from_raw_parts(+ std::ptr::addr_of!(entry.FileName).cast::<u16>(),+ name_bytes / size_of::<u16>(),+ )+ };+ if name != [b'.' as u16] && name != [b'.' as u16, b'.' as u16] {+ nt::validate_wide_name(name)?;+ names.push(name.to_vec());+ }+ if entry.NextEntryOffset == 0 {+ break;+ }+ offset = offset+ .checked_add(entry.NextEntryOffset as usize)+ .ok_or_else(|| {+ io::Error::new(io::ErrorKind::InvalidData, "directory offset overflow")+ })?;+ if offset >= BUFFER_BYTES {+ return Err(io::Error::new(+ io::ErrorKind::InvalidData,+ "Windows directory offset exceeds its buffer",+ ));+ }+ }+ }+ names.sort();+ Ok(names)+}++fn query<T: Default>(handle: &OwnedHandle, class: i32) -> io::Result<T> {+ let mut output = T::default();+ let result = unsafe {+ GetFileInformationByHandleEx(+ handle.as_raw_handle(),+ class,+ (&mut output as *mut T).cast(),+ u32::try_from(size_of::<T>()).expect("file information size"),+ )+ };+ if result == 0 {+ return Err(io::Error::last_os_error());+ }+ Ok(output)+}diff --git a/packages/finalize-fs/src/platform/windows/mod.rs b/packages/finalize-fs/src/platform/windows/mod.rsnew file mode 100644index 00000000..5c29b91c--- /dev/null+++ b/packages/finalize-fs/src/platform/windows/mod.rs@@ -0,0 +1,169 @@+//! Windows handle-relative filesystem operations with fail-closed reparse handling.++mod copy;+mod digest;+mod metadata;+mod nt;+mod remove;++#[cfg(test)]+mod tests;++use crate::path::validate_relative;+use metadata::{+ ArtifactSnapshot, assert_name_absent, ensure_named_entry, ensure_snapshot, query_stamp,+};+use std::io;+use std::os::windows::ffi::OsStrExt;+use std::os::windows::io::OwnedHandle;+use std::path::{Component, Path, PathBuf, Prefix};++pub(crate) use copy::copy_opened;+pub(crate) use remove::remove_opened;++pub(crate) struct RootHandle {+ handle: OwnedHandle,+}++pub(crate) struct ArtifactHandle {+ handle: OwnedHandle,+ parent: OwnedHandle,+ name: Vec<u16>,+ snapshot: ArtifactSnapshot,+}++pub(crate) fn open_root(path: &str) -> io::Result<RootHandle> {+ let requested = Path::new(path);+ let (anchor, components) = split_absolute_root(requested)?;+ let mut current = nt::open_anchor(&anchor, components.is_empty())?;+ let anchor_stamp = query_stamp(¤t)?;+ if !anchor_stamp.directory {+ return Err(io::Error::new(+ io::ErrorKind::InvalidInput,+ "Windows root anchor is not a directory",+ ));+ }+ let component_count = components.len();+ for (index, component) in components.into_iter().enumerate() {+ current = if index + 1 == component_count {+ nt::open_mutable_directory(¤t, &component)?+ } else {+ nt::open_existing_directory(¤t, &component)?+ };+ if !query_stamp(¤t)?.directory {+ return Err(io::Error::new(+ io::ErrorKind::InvalidInput,+ "Windows root component is not a directory",+ ));+ }+ }+ Ok(RootHandle { handle: current })+}++pub(crate) fn open_artifact(root: &RootHandle, relative: &str) -> io::Result<ArtifactHandle> {+ let parts = validate_relative(relative)?;+ let (parent, name) = open_parent(&root.handle, &parts)?;+ let handle = nt::open_existing(&parent, &name)?;+ let snapshot = metadata::snapshot_opened(&handle)?;+ ensure_named_entry(&handle, &parent, &name)?;+ Ok(ArtifactHandle {+ handle,+ parent,+ name,+ snapshot,+ })+}++pub(crate) fn rename_opened_no_replace(+ artifact: &ArtifactHandle,+ target: &RootHandle,+ target_relative: &str,+) -> io::Result<()> {+ ensure_snapshot(&artifact.handle, &artifact.snapshot)?;+ ensure_named_entry(&artifact.handle, &artifact.parent, &artifact.name)?;+ let parts = validate_relative(target_relative)?;+ let (target_parent, target_name) = open_parent(&target.handle, &parts)?;+ nt::rename_no_replace(&artifact.handle, &target_parent, &target_name)?;+ ensure_named_entry(&artifact.handle, &target_parent, &target_name)?;+ assert_name_absent(&artifact.parent, &artifact.name)?;+ Ok(())+}++pub(crate) fn rename_no_replace(+ source: &RootHandle,+ source_relative: &str,+ target: &RootHandle,+ target_relative: &str,+) -> io::Result<()> {+ let artifact = open_artifact(source, source_relative)?;+ rename_opened_no_replace(&artifact, target, target_relative)+}++pub(crate) fn sync_root(root: &RootHandle) -> io::Result<()> {+ nt::flush(&root.handle)+}++fn open_parent(root: &OwnedHandle, parts: &[&str]) -> io::Result<(OwnedHandle, Vec<u16>)> {+ let mut current = root.try_clone()?;+ for component in &parts[..parts.len().saturating_sub(1)] {+ current = nt::open_mutable_directory(¤t, &nt::wide_name(component)?)?;+ if !query_stamp(¤t)?.directory {+ return Err(io::Error::new(+ io::ErrorKind::InvalidInput,+ "Windows path component is not a directory",+ ));+ }+ }+ Ok((+ current,+ nt::wide_name(parts.last().expect("validated relative path"))?,+ ))+}++fn split_absolute_root(path: &Path) -> io::Result<(PathBuf, Vec<Vec<u16>>)> {+ let mut parts = path.components();+ let prefix = match parts.next() {+ Some(Component::Prefix(prefix)) => prefix,+ _ => {+ return Err(io::Error::new(+ io::ErrorKind::InvalidInput,+ "Windows root path must be absolute",+ ));+ }+ };+ match prefix.kind() {+ Prefix::Disk(_) | Prefix::UNC(_, _) => {}+ _ => {+ return Err(io::Error::new(+ io::ErrorKind::InvalidInput,+ "Windows device and verbatim root paths are forbidden",+ ));+ }+ }+ if !matches!(parts.next(), Some(Component::RootDir)) {+ return Err(io::Error::new(+ io::ErrorKind::InvalidInput,+ "Windows root path must include a volume root",+ ));+ }++ let mut anchor = PathBuf::from(prefix.as_os_str());+ anchor.push(Path::new(r"\"));+ let mut components = Vec::new();+ for component in parts {+ match component {+ Component::Normal(value) => {+ let value: Vec<u16> = value.encode_wide().collect();+ nt::validate_wide_name(&value)?;+ components.push(value);+ }+ _ => {+ return Err(io::Error::new(+ io::ErrorKind::InvalidInput,+ "Windows root path traversal is forbidden",+ ));+ }+ }+ }+ Ok((anchor, components))+}diff --git a/packages/finalize-fs/src/platform/windows/nt.rs b/packages/finalize-fs/src/platform/windows/nt.rsnew file mode 100644index 00000000..93e8adbf--- /dev/null+++ b/packages/finalize-fs/src/platform/windows/nt.rs@@ -0,0 +1,384 @@+//! Thin, checked wrappers around the Windows native handle APIs we need.++use std::ffi::{OsStr, c_void};+use std::io;+use std::mem::size_of;+use std::os::windows::ffi::OsStrExt;+use std::os::windows::io::{AsRawHandle, FromRawHandle, OwnedHandle};+use std::path::Path;+use windows_sys::Wdk::Foundation::OBJECT_ATTRIBUTES;+use windows_sys::Wdk::Storage::FileSystem::{+ FILE_CREATE, FILE_DIRECTORY_FILE, FILE_DISPOSITION_DELETE,+ FILE_DISPOSITION_IGNORE_READONLY_ATTRIBUTE, FILE_DISPOSITION_INFORMATION_EX,+ FILE_DISPOSITION_POSIX_SEMANTICS, FILE_INFORMATION_CLASS, FILE_NON_DIRECTORY_FILE, FILE_OPEN,+ FILE_OPEN_FOR_BACKUP_INTENT, FILE_OPEN_REPARSE_POINT, FILE_RENAME_INFORMATION,+ FILE_SYNCHRONOUS_IO_NONALERT, FileDispositionInformationEx, FileRenameInformation,+ NtCreateFile, NtFlushBuffersFile, NtSetInformationFile,+};+use windows_sys::Win32::Foundation::{+ ERROR_DIRECTORY, HANDLE, OBJ_CASE_INSENSITIVE, OBJ_DONT_REPARSE, RtlNtStatusToDosError,+ UNICODE_STRING,+};+use windows_sys::Win32::Storage::FileSystem::{+ CreateFileW, DELETE, FILE_ACCESS_RIGHTS, FILE_APPEND_DATA, FILE_ATTRIBUTE_NORMAL,+ FILE_CASE_SENSITIVE_INFO, FILE_FLAG_BACKUP_SEMANTICS, FILE_FLAG_OPEN_REPARSE_POINT,+ FILE_LIST_DIRECTORY, FILE_READ_ATTRIBUTES, FILE_READ_DATA, FILE_SHARE_DELETE, FILE_SHARE_READ,+ FILE_SHARE_WRITE, FILE_TRAVERSE, FILE_WRITE_ATTRIBUTES, FILE_WRITE_DATA, FileCaseSensitiveInfo,+ GetFileInformationByHandleEx, OPEN_EXISTING, SYNCHRONIZE,+};+use windows_sys::Win32::System::IO::IO_STATUS_BLOCK;++const SHARE_ALL: u32 = FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE;+const SHARE_HELD_ARTIFACT: u32 = FILE_SHARE_READ | FILE_SHARE_DELETE;+const OPEN_COMMON: u32 =+ FILE_OPEN_REPARSE_POINT | FILE_OPEN_FOR_BACKUP_INTENT | FILE_SYNCHRONOUS_IO_NONALERT;+const TRAVERSAL_ACCESS: FILE_ACCESS_RIGHTS =+ FILE_LIST_DIRECTORY | FILE_TRAVERSE | FILE_READ_ATTRIBUTES | SYNCHRONIZE;+// NtFlushBuffersFile requires write or append access. Held roots and mutable+// parents use both directory aliases so metadata changes can be flushed+// without granting DELETE on every ancestor traversed to reach the root.+const MUTABLE_DIRECTORY_ACCESS: FILE_ACCESS_RIGHTS = FILE_LIST_DIRECTORY+ | FILE_WRITE_DATA+ | FILE_APPEND_DATA+ | FILE_TRAVERSE+ | FILE_READ_ATTRIBUTES+ | FILE_WRITE_ATTRIBUTES+ | SYNCHRONIZE;+const SOURCE_FILE_ACCESS: FILE_ACCESS_RIGHTS =+ FILE_READ_DATA | FILE_READ_ATTRIBUTES | FILE_TRAVERSE | DELETE | SYNCHRONIZE;+// Held directories must be flushable during verified recursive removal. The+// write aliases grant directory metadata access without granting file-content+// writes, while DELETE remains required for handle-based rename and removal.+const SOURCE_DIRECTORY_ACCESS: FILE_ACCESS_RIGHTS = MUTABLE_DIRECTORY_ACCESS | DELETE;+const TARGET_FILE_ACCESS: FILE_ACCESS_RIGHTS = FILE_READ_DATA+ | FILE_WRITE_DATA+ | FILE_READ_ATTRIBUTES+ | FILE_WRITE_ATTRIBUTES+ | DELETE+ | SYNCHRONIZE;+const TARGET_DIRECTORY_ACCESS: FILE_ACCESS_RIGHTS = FILE_LIST_DIRECTORY+ | FILE_WRITE_DATA+ | FILE_APPEND_DATA+ | FILE_TRAVERSE+ | FILE_READ_ATTRIBUTES+ | FILE_WRITE_ATTRIBUTES+ | DELETE+ | SYNCHRONIZE;++pub(super) fn wide_name(value: &str) -> io::Result<Vec<u16>> {+ validate_component(value)?;+ Ok(OsStr::new(value).encode_wide().collect())+}++pub(super) fn validate_wide_name(value: &[u16]) -> io::Result<()> {+ let value = String::from_utf16(value).map_err(|_| {+ io::Error::new(+ io::ErrorKind::InvalidInput,+ "Windows artifact name is not valid Unicode",+ )+ })?;+ validate_component(&value)+}++fn validate_component(value: &str) -> io::Result<()> {+ if value.is_empty()+ || value.ends_with([' ', '.'])+ || value.chars().any(|character| {+ matches!(+ character,+ '\0'..='\u{1f}' | '<' | '>' | ':' | '"' | '/' | '\\' | '|' | '?' | '*'+ )+ })+ {+ return Err(io::Error::new(+ io::ErrorKind::InvalidInput,+ "Windows artifact name uses forbidden syntax",+ ));+ }+ let stem = value+ .split('.')+ .next()+ .unwrap_or(value)+ .to_ascii_uppercase();+ let reserved = matches!(+ stem.as_str(),+ "CON" | "PRN" | "AUX" | "NUL" | "CONIN$" | "CONOUT$"+ ) || stem+ .strip_prefix("COM")+ .or_else(|| stem.strip_prefix("LPT"))+ .is_some_and(|suffix| {+ matches!(+ suffix,+ "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "¹" | "²" | "³"+ )+ });+ if reserved {+ return Err(io::Error::new(+ io::ErrorKind::InvalidInput,+ "Windows reserved device names are forbidden",+ ));+ }+ Ok(())+}++pub(super) fn open_anchor(path: &Path, mutable: bool) -> io::Result<OwnedHandle> {+ let mut encoded: Vec<u16> = path.as_os_str().encode_wide().collect();+ encoded.push(0);+ let handle = unsafe {+ CreateFileW(+ encoded.as_ptr(),+ if mutable {+ MUTABLE_DIRECTORY_ACCESS+ } else {+ TRAVERSAL_ACCESS+ },+ SHARE_ALL,+ std::ptr::null(),+ OPEN_EXISTING,+ FILE_FLAG_BACKUP_SEMANTICS | FILE_FLAG_OPEN_REPARSE_POINT,+ std::ptr::null_mut(),+ )+ };+ if handle as isize == -1 {+ return Err(io::Error::last_os_error());+ }+ Ok(unsafe { OwnedHandle::from_raw_handle(handle) })+}++pub(super) fn open_existing(parent: &OwnedHandle, name: &[u16]) -> io::Result<OwnedHandle> {+ match nt_create(+ parent,+ name,+ SOURCE_DIRECTORY_ACCESS,+ // Directory change-notification and scanner handles commonly retain+ // write sharing. The recursive snapshot checks detect any actual tree+ // mutation, matching the fail-closed Unix behavior without making a+ // normal held directory impossible to open on Windows.+ SHARE_ALL,+ FILE_OPEN,+ OPEN_COMMON | FILE_DIRECTORY_FILE,+ ) {+ Ok(handle) => Ok(handle),+ Err(error) if error.raw_os_error() == Some(ERROR_DIRECTORY as i32) => nt_create(+ parent,+ name,+ SOURCE_FILE_ACCESS,+ SHARE_HELD_ARTIFACT,+ FILE_OPEN,+ OPEN_COMMON | FILE_NON_DIRECTORY_FILE,+ ),+ Err(error) => Err(error),+ }+}++pub(super) fn open_existing_directory(+ parent: &OwnedHandle,+ name: &[u16],+) -> io::Result<OwnedHandle> {+ nt_create(+ parent,+ name,+ TRAVERSAL_ACCESS,+ SHARE_ALL,+ FILE_OPEN,+ OPEN_COMMON | FILE_DIRECTORY_FILE,+ )+}++pub(super) fn open_mutable_directory(+ parent: &OwnedHandle,+ name: &[u16],+) -> io::Result<OwnedHandle> {+ nt_create(+ parent,+ name,+ MUTABLE_DIRECTORY_ACCESS,+ SHARE_ALL,+ FILE_OPEN,+ OPEN_COMMON | FILE_DIRECTORY_FILE,+ )+}++pub(super) fn create_file(parent: &OwnedHandle, name: &[u16]) -> io::Result<OwnedHandle> {+ nt_create(+ parent,+ name,+ TARGET_FILE_ACCESS,+ SHARE_HELD_ARTIFACT,+ FILE_CREATE,+ OPEN_COMMON | FILE_NON_DIRECTORY_FILE,+ )+}++pub(super) fn create_directory(parent: &OwnedHandle, name: &[u16]) -> io::Result<OwnedHandle> {+ nt_create(+ parent,+ name,+ TARGET_DIRECTORY_ACCESS,+ SHARE_HELD_ARTIFACT,+ FILE_CREATE,+ OPEN_COMMON | FILE_DIRECTORY_FILE,+ )+}++fn nt_create(+ parent: &OwnedHandle,+ name: &[u16],+ desired_access: FILE_ACCESS_RIGHTS,+ share_access: u32,+ disposition: u32,+ options: u32,+) -> io::Result<OwnedHandle> {+ if name.is_empty() || name.len() > (u16::MAX as usize / size_of::<u16>()) {+ return Err(io::Error::new(+ io::ErrorKind::InvalidInput,+ "Windows path component is empty or too long",+ ));+ }+ let byte_len = u16::try_from(size_of_val(name)).map_err(|_| {+ io::Error::new(+ io::ErrorKind::InvalidInput,+ "Windows path component is too long",+ )+ })?;+ let object_name = UNICODE_STRING {+ Length: byte_len,+ MaximumLength: byte_len,+ Buffer: name.as_ptr().cast_mut(),+ };+ let attributes = OBJECT_ATTRIBUTES {+ Length: u32::try_from(size_of::<OBJECT_ATTRIBUTES>()).expect("OBJECT_ATTRIBUTES size"),+ RootDirectory: parent.as_raw_handle(),+ ObjectName: &object_name,+ Attributes: object_attributes(parent),+ SecurityDescriptor: std::ptr::null(),+ SecurityQualityOfService: std::ptr::null(),+ };+ let mut handle: HANDLE = std::ptr::null_mut();+ let mut io_status = IO_STATUS_BLOCK::default();+ let status = unsafe {+ NtCreateFile(+ &mut handle,+ desired_access,+ &attributes,+ &mut io_status,+ std::ptr::null(),+ FILE_ATTRIBUTE_NORMAL,+ share_access,+ disposition,+ options,+ std::ptr::null(),+ 0,+ )+ };+ check_status(status)?;+ if handle.is_null() {+ return Err(io::Error::other("NtCreateFile returned a null handle"));+ }+ Ok(unsafe { OwnedHandle::from_raw_handle(handle) })+}++fn object_attributes(parent: &OwnedHandle) -> u32 {+ const FILE_CS_FLAG_CASE_SENSITIVE_DIR: u32 = 1;+ let mut info = FILE_CASE_SENSITIVE_INFO::default();+ let result = unsafe {+ GetFileInformationByHandleEx(+ parent.as_raw_handle(),+ FileCaseSensitiveInfo,+ (&mut info as *mut FILE_CASE_SENSITIVE_INFO).cast(),+ u32::try_from(size_of::<FILE_CASE_SENSITIVE_INFO>())+ .expect("FILE_CASE_SENSITIVE_INFO size"),+ )+ };+ if result != 0 && info.Flags & FILE_CS_FLAG_CASE_SENSITIVE_DIR != 0 {+ OBJ_DONT_REPARSE+ } else {+ OBJ_CASE_INSENSITIVE | OBJ_DONT_REPARSE+ }+}++pub(super) fn rename_no_replace(+ artifact: &OwnedHandle,+ target_parent: &OwnedHandle,+ target_name: &[u16],+) -> io::Result<()> {+ let name_bytes = target_name+ .len()+ .checked_mul(size_of::<u16>())+ .ok_or_else(|| io::Error::new(io::ErrorKind::InvalidInput, "target name is too long"))?;+ // NtSetInformationFile requires the complete fixed structure followed by+ // FileNameLength bytes, even though FileName already contains a one-element+ // flexible-array placeholder.+ let total_bytes = size_of::<FILE_RENAME_INFORMATION>()+ .checked_add(name_bytes)+ .ok_or_else(|| io::Error::new(io::ErrorKind::InvalidInput, "target name is too long"))?;+ let words = total_bytes.div_ceil(size_of::<usize>());+ let mut storage = vec![0_usize; words];+ let info = storage.as_mut_ptr().cast::<FILE_RENAME_INFORMATION>();+ unsafe {+ (*info).Anonymous.ReplaceIfExists = false;+ (*info).RootDirectory = target_parent.as_raw_handle();+ (*info).FileNameLength = u32::try_from(name_bytes)+ .map_err(|_| io::Error::new(io::ErrorKind::InvalidInput, "target name is too long"))?;+ std::ptr::copy_nonoverlapping(+ target_name.as_ptr(),+ std::ptr::addr_of_mut!((*info).FileName).cast::<u16>(),+ target_name.len(),+ );+ }+ set_information(+ artifact,+ info.cast::<c_void>(),+ total_bytes,+ FileRenameInformation,+ )+}++pub(super) fn mark_delete(artifact: &OwnedHandle) -> io::Result<()> {+ let disposition = FILE_DISPOSITION_INFORMATION_EX {+ Flags: FILE_DISPOSITION_DELETE+ | FILE_DISPOSITION_POSIX_SEMANTICS+ | FILE_DISPOSITION_IGNORE_READONLY_ATTRIBUTE,+ };+ set_information(+ artifact,+ (&raw const disposition).cast(),+ size_of::<FILE_DISPOSITION_INFORMATION_EX>(),+ FileDispositionInformationEx,+ )+}++pub(super) fn flush(handle: &OwnedHandle) -> io::Result<()> {+ let mut io_status = IO_STATUS_BLOCK::default();+ let status = unsafe { NtFlushBuffersFile(handle.as_raw_handle(), &mut io_status) };+ check_status(status)+}++fn set_information(+ handle: &OwnedHandle,+ information: *const c_void,+ information_bytes: usize,+ class: FILE_INFORMATION_CLASS,+) -> io::Result<()> {+ let information_bytes = u32::try_from(information_bytes)+ .map_err(|_| io::Error::new(io::ErrorKind::InvalidInput, "file information is too long"))?;+ let mut io_status = IO_STATUS_BLOCK::default();+ let status = unsafe {+ NtSetInformationFile(+ handle.as_raw_handle(),+ &mut io_status,+ information,+ information_bytes,+ class,+ )+ };+ check_status(status)+}++fn check_status(status: i32) -> io::Result<()> {+ if status >= 0 {+ return Ok(());+ }+ let error = unsafe { RtlNtStatusToDosError(status) };+ Err(io::Error::from_raw_os_error(error as i32))+}diff --git a/packages/finalize-fs/src/platform/windows/remove.rs b/packages/finalize-fs/src/platform/windows/remove.rsnew file mode 100644index 00000000..a6877108--- /dev/null+++ b/packages/finalize-fs/src/platform/windows/remove.rs@@ -0,0 +1,87 @@+use super::ArtifactHandle;+use super::metadata::{+ ArtifactSnapshot, assert_name_absent, ensure_named_entry, ensure_same_opened, ensure_snapshot,+ snapshot_opened,+};+use crate::path::validate_relative;+use std::io;+use std::os::windows::io::OwnedHandle;++pub(crate) fn remove_opened(+ artifact: &ArtifactHandle,+ quarantine_relative: &str,+ resume_isolated: bool,+) -> io::Result<()> {+ let parts = validate_relative(quarantine_relative)?;+ if parts.len() != 1 {+ return Err(io::Error::new(+ io::ErrorKind::InvalidInput,+ "removal quarantine must be an immediate Windows sibling",+ ));+ }+ let quarantine_name = super::nt::wide_name(parts[0])?;+ ensure_snapshot(&artifact.handle, &artifact.snapshot)?;+ ensure_named_entry(&artifact.handle, &artifact.parent, &artifact.name)?;++ if resume_isolated {+ if artifact.name != quarantine_name {+ return Err(io::Error::new(+ io::ErrorKind::InvalidInput,+ "resumed Windows removal handle does not name its quarantine",+ ));+ }+ } else {+ if artifact.name == quarantine_name {+ return Err(io::Error::new(+ io::ErrorKind::InvalidInput,+ "Windows removal quarantine must differ from the artifact name",+ ));+ }+ super::nt::rename_no_replace(&artifact.handle, &artifact.parent, &quarantine_name)?;+ ensure_named_entry(&artifact.handle, &artifact.parent, &quarantine_name)?;+ assert_name_absent(&artifact.parent, &artifact.name)?;+ super::nt::flush(&artifact.parent)?;+ }++ remove_snapshot_contents(&artifact.handle, &artifact.snapshot)?;+ // The admitted artifact handle intentionally outlives this operation. Mark+ // a separately opened, identity-checked handle for POSIX deletion so that+ // closing it unlinks the quarantine while the admitted handle remains a+ // valid reference to the now-nameless artifact.+ let deletion = super::nt::open_existing(&artifact.parent, &quarantine_name)?;+ ensure_same_opened(&artifact.handle, &deletion)?;+ ensure_named_entry(&deletion, &artifact.parent, &quarantine_name)?;+ super::nt::mark_delete(&deletion)?;+ drop(deletion);+ assert_name_absent(&artifact.parent, &quarantine_name)?;+ super::nt::flush(&artifact.parent)+}++fn remove_snapshot(handle: &OwnedHandle, expected: &ArtifactSnapshot) -> io::Result<()> {+ remove_snapshot_contents(handle, expected)?;+ super::nt::mark_delete(handle)+}++fn remove_snapshot_contents(handle: &OwnedHandle, expected: &ArtifactSnapshot) -> io::Result<()> {+ ensure_snapshot(handle, expected)?;+ if let ArtifactSnapshot::Directory { entries, .. } = expected {+ for entry in entries {+ let child = super::nt::open_existing(handle, &entry.name)?;+ ensure_named_entry(&child, handle, &entry.name)?;+ remove_snapshot(&child, &entry.artifact)?;+ drop(child);+ assert_name_absent(handle, &entry.name)?;+ }+ match snapshot_opened(handle)? {+ ArtifactSnapshot::Directory { entries, .. } if entries.is_empty() => {}+ _ => {+ return Err(io::Error::new(+ io::ErrorKind::InvalidData,+ "Windows directory changed while it was being removed",+ ));+ }+ }+ super::nt::flush(handle)?;+ }+ Ok(())+}diff --git a/packages/finalize-fs/src/platform/windows/tests.rs b/packages/finalize-fs/src/platform/windows/tests.rsnew file mode 100644index 00000000..6eac57de--- /dev/null+++ b/packages/finalize-fs/src/platform/windows/tests.rs@@ -0,0 +1,155 @@+use super::{+ copy_opened, open_artifact, open_root, remove_opened, rename_opened_no_replace, sync_root,+};+use std::fs;+use std::path::{Path, PathBuf};+use std::process::Command;+use std::time::{SystemTime, UNIX_EPOCH};++struct Scratch(PathBuf);++impl Scratch {+ fn new(label: &str) -> Self {+ let nonce = SystemTime::now()+ .duration_since(UNIX_EPOCH)+ .expect("system time")+ .as_nanos();+ let root = std::env::temp_dir().join(format!(+ "motrix-finalize-fs-{label}-{}-{nonce}",+ std::process::id()+ ));+ fs::create_dir_all(&root).expect("create scratch directory");+ Self(root)+ }++ fn path(&self) -> &Path {+ &self.0+ }+}++impl Drop for Scratch {+ fn drop(&mut self) {+ let _ = fs::remove_dir_all(&self.0);+ }+}++#[test]+fn rejects_ambiguous_windows_path_components() {+ for component in [+ "file.",+ "file ",+ "payload:stream",+ "CON",+ "lpt9.txt",+ "COM¹.log",+ "nested/name",+ ] {+ assert!(+ super::nt::wide_name(component).is_err(),+ "{component:?} must be rejected"+ );+ }+ assert!(super::nt::wide_name("资料.zip").is_ok());+}++#[test]+fn copies_and_removes_a_held_directory_without_following_paths() {+ let scratch = Scratch::new("copy-remove");+ let source = scratch.path().join("source");+ fs::create_dir_all(source.join("nested")).expect("create source tree");+ fs::write(source.join("nested").join("payload.bin"), b"payload").expect("write source payload");++ let root =+ open_root(scratch.path().to_str().expect("UTF-8 scratch path")).expect("open held root");+ let source_handle = open_artifact(&root, "source").expect("open source artifact");+ copy_opened(&source_handle, &root, "private-target").expect("copy held tree");+ assert_eq!(+ fs::read(scratch.path().join("private-target/nested/payload.bin"))+ .expect("read copied payload"),+ b"payload"+ );+ sync_root(&root).expect("flush held root");++ let copied = open_artifact(&root, "private-target").expect("open copied artifact");+ remove_opened(&copied, ".motrix-remove", false).expect("remove held copied tree");+ assert!(!scratch.path().join("private-target").exists());+ assert!(!scratch.path().join(".motrix-remove").exists());+ drop(copied);+}++#[test]+fn removes_a_held_file_without_closing_its_admitted_handle() {+ let scratch = Scratch::new("remove-file");+ fs::write(scratch.path().join("payload.bin"), b"payload").expect("write payload");++ let root =+ open_root(scratch.path().to_str().expect("UTF-8 scratch path")).expect("open held root");+ let payload = open_artifact(&root, "payload.bin").expect("open payload artifact");+ remove_opened(&payload, ".motrix-remove", false).expect("remove held payload");++ assert!(!scratch.path().join("payload.bin").exists());+ assert!(!scratch.path().join(".motrix-remove").exists());+ drop(payload);+}++#[test]+fn rename_is_atomic_and_never_replaces_an_existing_target() {+ let scratch = Scratch::new("rename");+ fs::write(scratch.path().join("source.bin"), b"source").expect("write source");+ fs::write(scratch.path().join("target.bin"), b"target").expect("write target");+ let root =+ open_root(scratch.path().to_str().expect("UTF-8 scratch path")).expect("open held root");+ let source = open_artifact(&root, "source.bin").expect("open source");++ assert!(rename_opened_no_replace(&source, &root, "target.bin").is_err());+ assert_eq!(+ fs::read(scratch.path().join("source.bin")).unwrap(),+ b"source"+ );+ assert_eq!(+ fs::read(scratch.path().join("target.bin")).unwrap(),+ b"target"+ );++ rename_opened_no_replace(&source, &root, "published.bin").expect("publish source");+ sync_root(&root).expect("flush rename");+ assert!(!scratch.path().join("source.bin").exists());+ assert_eq!(+ fs::read(scratch.path().join("published.bin")).unwrap(),+ b"source"+ );+}++#[test]+fn rejects_a_junction_in_the_root_path() {+ let scratch = Scratch::new("junction");+ let real = scratch.path().join("real");+ let junction = scratch.path().join("junction");+ fs::create_dir_all(real.join("child")).expect("create junction target");+ let status = Command::new("cmd")+ .arg("/c")+ .arg("mklink")+ .arg("/J")+ .arg(&junction)+ .arg(&real)+ .status()+ .expect("run mklink");+ assert!(+ status.success(),+ "mklink /J must succeed for the contract test"+ );++ let result = open_root(+ junction+ .join("child")+ .to_str()+ .expect("UTF-8 junction path"),+ );+ assert!(result.is_err(), "held root traversal must reject junctions");++ let _ = Command::new("cmd")+ .arg("/c")+ .arg("rmdir")+ .arg(&junction)+ .status();+}diff --git a/packages/finalize-fs/src/protocol.rs b/packages/finalize-fs/src/protocol.rsnew file mode 100644index 00000000..b9422d10--- /dev/null+++ b/packages/finalize-fs/src/protocol.rs@@ -0,0 +1,186 @@+//! Stable wire DTOs and length-prefixed frame codec.++use serde::{Deserialize, Serialize};+use std::io::{self, Read, Write};++const MAX_FRAME_BYTES: usize = 64 * 1024;++#[derive(Deserialize)]+#[serde(tag = "op", rename_all = "snake_case")]+pub(crate) enum Request {+ Capabilities,+ OpenRoot {+ request_id: u64,+ path: String,+ },+ OpenArtifact {+ request_id: u64,+ root: u64,+ relative: String,+ },+ RenameOpenedNoReplace {+ request_id: u64,+ artifact: u64,+ target_root: u64,+ target_relative: String,+ },+ CopyOpened {+ request_id: u64,+ artifact: u64,+ target_root: u64,+ target_relative: String,+ },+ RenameNoReplace {+ request_id: u64,+ source_root: u64,+ source_relative: String,+ target_root: u64,+ target_relative: String,+ },+ RemoveOpened {+ request_id: u64,+ artifact: u64,+ quarantine_relative: String,+ resume_isolated: bool,+ },+ SyncRoot {+ request_id: u64,+ root: u64,+ },+ Close {+ request_id: u64,+ handle: u64,+ },+}++#[derive(Serialize)]+pub(crate) struct Response<'a> {+ request_id: Option<u64>,+ status: &'a str,+ #[serde(skip_serializing_if = "Option::is_none")]+ pub(crate) handle: Option<u64>,+ #[serde(skip_serializing_if = "Option::is_none")]+ code: Option<&'a str>,+ #[serde(skip_serializing_if = "Option::is_none")]+ message: Option<String>,+ #[serde(skip_serializing_if = "Option::is_none")]+ pub(crate) platform: Option<&'a str>,+ #[serde(skip_serializing_if = "Option::is_none")]+ pub(crate) rename_no_replace: Option<bool>,+ #[serde(skip_serializing_if = "Option::is_none")]+ pub(crate) held_roots: Option<bool>,+ #[serde(skip_serializing_if = "Option::is_none")]+ pub(crate) directory_sync: Option<bool>,+ #[serde(skip_serializing_if = "Option::is_none")]+ pub(crate) held_artifacts: Option<bool>,+}++impl<'a> Response<'a> {+ pub(crate) fn ok(request_id: Option<u64>) -> Self {+ Self {+ request_id,+ status: "ok",+ handle: None,+ code: None,+ message: None,+ platform: None,+ rename_no_replace: None,+ held_roots: None,+ directory_sync: None,+ held_artifacts: None,+ }+ }++ pub(crate) fn error(request_id: Option<u64>, code: &'a str, error: impl ToString) -> Self {+ let mut response = Self::ok(request_id);+ response.status = "error";+ response.code = Some(code);+ response.message = Some(error.to_string());+ response+ }+}++pub(crate) fn read_frame(input: &mut impl Read) -> io::Result<Option<Vec<u8>>> {+ let mut length = [0_u8; 4];+ match input.read_exact(&mut length) {+ Ok(()) => {}+ Err(error) if error.kind() == io::ErrorKind::UnexpectedEof => return Ok(None),+ Err(error) => return Err(error),+ }+ let length = u32::from_le_bytes(length) as usize;+ if length > MAX_FRAME_BYTES {+ return Err(io::Error::new(+ io::ErrorKind::InvalidData,+ "frame exceeds limit",+ ));+ }+ let mut payload = vec![0_u8; length];+ input.read_exact(&mut payload)?;+ Ok(Some(payload))+}++pub(crate) fn write_frame(output: &mut impl Write, response: &Response<'_>) -> io::Result<()> {+ let payload = serde_json::to_vec(response).map_err(io::Error::other)?;+ let length = u32::try_from(payload.len())+ .map_err(|_| io::Error::new(io::ErrorKind::InvalidData, "response too large"))?;+ output.write_all(&length.to_le_bytes())?;+ output.write_all(&payload)?;+ output.flush()+}++#[cfg(test)]+mod tests {+ use super::{Request, Response, read_frame, write_frame};+ use serde_json::json;+ use std::io::Cursor;++ #[test]+ fn request_wire_remains_tagged_by_operation() {+ let request: Request = serde_json::from_value(json!({+ "op": "remove_opened",+ "request_id": 7,+ "artifact": 11,+ "quarantine_relative": ".motrix-remove-7",+ "resume_isolated": true+ }))+ .unwrap();++ assert!(matches!(+ request,+ Request::RemoveOpened {+ request_id: 7,+ artifact: 11,+ resume_isolated: true,+ ..+ }+ ));+ }++ #[test]+ fn response_wire_omits_unused_optional_fields() {+ let value =+ serde_json::to_value(Response::error(Some(5), "invalid_path", "bad path")).unwrap();++ assert_eq!(+ value,+ json!({+ "request_id": 5,+ "status": "error",+ "code": "invalid_path",+ "message": "bad path"+ })+ );+ }++ #[test]+ fn frame_codec_round_trips_the_response_payload() {+ let mut encoded = Vec::new();+ write_frame(&mut encoded, &Response::ok(Some(9))).unwrap();++ let payload = read_frame(&mut Cursor::new(encoded)).unwrap().unwrap();+ assert_eq!(+ serde_json::from_slice::<serde_json::Value>(&payload).unwrap(),+ json!({"request_id": 9, "status": "ok"})+ );+ }+}diff --git a/packages/finalize-fs/src/state.rs b/packages/finalize-fs/src/state.rsnew file mode 100644index 00000000..93e69e0b--- /dev/null+++ b/packages/finalize-fs/src/state.rs@@ -0,0 +1,208 @@+//! Handle registry and request dispatch, independent of platform syscalls.++use crate::error::classify_error;+use crate::platform::{+ ArtifactHandle, RootHandle, copy_opened, open_artifact, open_root, remove_opened,+ rename_no_replace, rename_opened_no_replace, sync_root,+};+use crate::protocol::{Request, Response};+use std::collections::HashMap;++pub(crate) struct State {+ next_handle: u64,+ roots: HashMap<u64, RootHandle>,+ artifacts: HashMap<u64, ArtifactHandle>,+}++impl State {+ pub(crate) fn new() -> Self {+ Self {+ next_handle: 1,+ roots: HashMap::new(),+ artifacts: HashMap::new(),+ }+ }++ pub(crate) fn handle(&mut self, request: Request) -> Response<'static> {+ match request {+ Request::Capabilities => self.capabilities(),+ Request::OpenRoot { request_id, path } => match open_root(&path) {+ Ok(root) => {+ let handle = self.insert_root(root);+ let mut response = Response::ok(Some(request_id));+ response.handle = Some(handle);+ response+ }+ Err(error) => Response::error(Some(request_id), classify_error(&error), error),+ },+ Request::OpenArtifact {+ request_id,+ root,+ relative,+ } => {+ let Some(root) = self.roots.get(&root) else {+ return Response::error(Some(request_id), "invalid_handle", "unknown root");+ };+ match open_artifact(root, &relative) {+ Ok(artifact) => {+ let handle = self.insert_artifact(artifact);+ let mut response = Response::ok(Some(request_id));+ response.handle = Some(handle);+ response+ }+ Err(error) => Response::error(Some(request_id), classify_error(&error), error),+ }+ }+ Request::RenameOpenedNoReplace {+ request_id,+ artifact,+ target_root,+ target_relative,+ } => {+ let Some(artifact) = self.artifacts.get(&artifact) else {+ return Response::error(Some(request_id), "invalid_handle", "unknown artifact");+ };+ let Some(target) = self.roots.get(&target_root) else {+ return Response::error(+ Some(request_id),+ "invalid_handle",+ "unknown target root",+ );+ };+ operation_response(+ request_id,+ rename_opened_no_replace(artifact, target, &target_relative),+ )+ }+ Request::CopyOpened {+ request_id,+ artifact,+ target_root,+ target_relative,+ } => {+ let Some(artifact) = self.artifacts.get(&artifact) else {+ return Response::error(Some(request_id), "invalid_handle", "unknown artifact");+ };+ let Some(target) = self.roots.get(&target_root) else {+ return Response::error(+ Some(request_id),+ "invalid_handle",+ "unknown target root",+ );+ };+ operation_response(request_id, copy_opened(artifact, target, &target_relative))+ }+ Request::RenameNoReplace {+ request_id,+ source_root,+ source_relative,+ target_root,+ target_relative,+ } => {+ let Some(source) = self.roots.get(&source_root) else {+ return Response::error(+ Some(request_id),+ "invalid_handle",+ "unknown source root",+ );+ };+ let Some(target) = self.roots.get(&target_root) else {+ return Response::error(+ Some(request_id),+ "invalid_handle",+ "unknown target root",+ );+ };+ operation_response(+ request_id,+ rename_no_replace(source, &source_relative, target, &target_relative),+ )+ }+ Request::RemoveOpened {+ request_id,+ artifact,+ quarantine_relative,+ resume_isolated,+ } => {+ let Some(artifact) = self.artifacts.get(&artifact) else {+ return Response::error(Some(request_id), "invalid_handle", "unknown artifact");+ };+ operation_response(+ request_id,+ remove_opened(artifact, &quarantine_relative, resume_isolated),+ )+ }+ Request::SyncRoot { request_id, root } => {+ let Some(root) = self.roots.get(&root) else {+ return Response::error(Some(request_id), "invalid_handle", "unknown root");+ };+ operation_response(request_id, sync_root(root))+ }+ Request::Close { request_id, handle } => {+ if self.roots.remove(&handle).is_some() || self.artifacts.remove(&handle).is_some()+ {+ Response::ok(Some(request_id))+ } else {+ Response::error(Some(request_id), "invalid_handle", "unknown handle")+ }+ }+ }+ }++ fn capabilities(&self) -> Response<'static> {+ let mut response = Response::ok(None);+ response.platform = Some(std::env::consts::OS);+ response.rename_no_replace =+ Some(cfg!(any(target_os = "macos", target_os = "linux", windows)));+ response.held_roots = Some(cfg!(any(unix, windows)));+ response.directory_sync = Some(cfg!(any(unix, windows)));+ response.held_artifacts = Some(cfg!(any(unix, windows)));+ response+ }++ fn next_handle(&mut self) -> u64 {+ let handle = self.next_handle;+ self.next_handle = self.next_handle.saturating_add(1);+ handle+ }++ fn insert_root(&mut self, root: RootHandle) -> u64 {+ let handle = self.next_handle();+ self.roots.insert(handle, root);+ handle+ }++ fn insert_artifact(&mut self, artifact: ArtifactHandle) -> u64 {+ let handle = self.next_handle();+ self.artifacts.insert(handle, artifact);+ handle+ }+}++fn operation_response(request_id: u64, result: std::io::Result<()>) -> Response<'static> {+ match result {+ Ok(()) => Response::ok(Some(request_id)),+ Err(error) => Response::error(Some(request_id), classify_error(&error), error),+ }+}++#[cfg(test)]+mod tests {+ use super::State;+ use crate::protocol::Request;++ #[test]+ fn capabilities_claim_only_the_implemented_native_boundaries() {+ let response = State::new().handle(Request::Capabilities);+ #[cfg(unix)]+ {+ assert_eq!(response.held_roots, Some(true));+ assert_eq!(response.directory_sync, Some(true));+ }+ #[cfg(windows)]+ {+ assert_eq!(response.held_roots, Some(true));+ assert_eq!(response.directory_sync, Some(true));+ }+ }+}diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 878aa847..5717dcd2 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -22,7 +22,7 @@ importers:version: 5.3.0'@hookform/resolvers':specifier: ^5.9.1- version: 5.9.1(@standard-schema/[email protected])([email protected]([email protected]))([email protected])([email protected]([email protected]))([email protected])+ version: 5.9.1(@standard-schema/[email protected])([email protected]([email protected]))([email protected])([email protected]([email protected]))([email protected])'@motrix/mdxp':specifier: ^0.6.0version: 0.6.0@@ -30,8 +30,8 @@ importers:specifier: ^0.1.1version: 0.1.1'@motrix/plugin-manifest-schema':- specifier: ^2.1.0- version: 2.1.0+ specifier: ^2.1.1+ version: 2.1.1'@noble/curves':specifier: 2.0.1version: 2.0.1@@ -165,8 +165,8 @@ importers:specifier: ^3.4.0version: 3.4.0zod:- specifier: ^4.4.3- version: 4.4.3+ specifier: ^4.5.4+ version: 4.5.4zustand:specifier: ^5.0.15version: 5.0.15(@types/[email protected])([email protected])([email protected])([email protected]([email protected]))@@ -183,6 +183,12 @@ importers:'@motrix/cli':specifier: ^0.4.0version: 0.4.0+ '@motrix/plugin-api':+ specifier: 2.1.0+ version: 2.1.0+ '@motrix/plugin-api-2-0':+ specifier: npm:@motrix/[email protected]+ version: '@motrix/[email protected]''@playwright/test':specifier: ^1.62.1version: 1.62.1@@ -951,8 +957,14 @@ packages:resolution: {integrity: sha512-ORkFuNXMLa8yLhlxRmoLh6WSWtOjhJ4q28Dcx4Wt44JSkB60gjNzuBV8CVCy2VtWc2BhxiOlel4f3RhJ7OmaXw==}engines: {node: '>=22'}- '@motrix/[email protected]':- resolution: {integrity: sha512-S6p1uhoQzYbepVkYV86dmmD+7xLagto7ft3vWcLK4Fg8KtvEikV1b+ZPyE5OjgpZO3WEFcMe8uuc/Iymai0fmw==}+ '@motrix/[email protected]':+ resolution: {integrity: sha512-S4YsMvAo9ehDN8R6jwQAzcTHBstEFH1kPw8CRePMVLSNT0pb+5jlaQdBXd1NfsxY9O4FFX4e63uuAYWlkD9Urw==}++ '@motrix/[email protected]':+ resolution: {integrity: sha512-XJn8re75nGUFSOA9dsEAjFkj8FqY6pQMk5wnz9E7Ym+icOp7q0JChjS/ILETvsu1gmvntlzdzazmgi4U42fPIA==}++ '@motrix/[email protected]':+ resolution: {integrity: sha512-/aVHes64pk3P0z3Myfa08tk4Zp5AQlhwIL28clvjkIM3x7TkWa8W+FXsXf2FZ+a/Q/gjuCQGAstHOxivQ7+euA==}'@noble/[email protected]':resolution: {integrity: sha512-vs1Az2OOTBiP4q0pwjW5aF0xp9n4MxVrmkFBxc6EKZc6ddYx5gaZiAsZoq0uRRXWbi3AT/sBqn05eRPtn1JCPw==}@@ -1708,6 +1720,7 @@ packages:'@xmldom/[email protected]':resolution: {integrity: sha512-T4EDRUBVZYRldYApjEJiU0e1stYWaRAX7CuSnKzrpwdZKo53zGV8/pqfzV6FfwNl9YThD2OumQYvqtvjvgG7aQ==}engines: {node: '>=10.0.0'}+ deprecated: this version has critical issues, please update to the latest version'@xyflow/[email protected]':resolution: {integrity: sha512-G3jogHz2GWUtIOkhavUGno2YzY9u6fILIJBttfsBendb0/HWB90JG+sOTAvlIMEwyvq9zgy9V9ZQSwyQjR5QzQ==}@@ -4632,8 +4645,8 @@ packages:resolution: {integrity: sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==}- resolution: {integrity: sha512-ytENFjIJFl2UwYglde2jchW2Hwm4GJFLDiSXWdTrJQBIN9Fcyp7n4DhxJEiWNAJMV1/BqWfW/kkg71UDcHJyTQ==}+ resolution: {integrity: sha512-sC95tT5iHHH9gtpj6A81kh+NEaRAUFN+qlUPDUbRfOMvNf5QCBqsb3WgvnpVtK5Y+4UfA6KqufotuTvMGiTlsA==}resolution: {integrity: sha512-CHOUy7mu3lbD6o6LJLfllpjkzhHXSBlX8B9+qPddUsIfeF5S/UZ5q0kmCsnRqT1UHFQZchNFDDzMbQsuesHWlw==}@@ -5242,7 +5255,7 @@ snapshots:dependencies:hono: 4.13.2- '@hookform/[email protected](@standard-schema/[email protected])([email protected]([email protected]))([email protected])([email protected]([email protected]))([email protected])':+ '@hookform/[email protected](@standard-schema/[email protected])([email protected]([email protected]))([email protected])([email protected]([email protected]))([email protected])':dependencies:'@standard-schema/utils': 0.3.0react-hook-form: 7.85.0([email protected])@@ -5250,7 +5263,7 @@ snapshots:'@standard-schema/spec': 1.1.0ajv: 8.20.0ajv-formats: 2.1.1([email protected])- zod: 4.4.3+ zod: 4.5.4'@isaacs/[email protected]':dependencies:@@ -5337,13 +5350,17 @@ snapshots:'@motrix/[email protected]':dependencies:vscode-jsonrpc: 9.0.1- zod: 4.4.3+ zod: 4.5.4'@motrix/[email protected]': {}- '@motrix/[email protected]':+ '@motrix/[email protected]': {}++ '@motrix/[email protected]': {}++ '@motrix/[email protected]':dependencies:- zod: 4.4.3+ zod: 4.5.4'@noble/[email protected]':dependencies:@@ -8886,7 +8903,7 @@ snapshots:- [email protected]: {}+ [email protected]: {}dependencies:diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yamlindex 8e3a0b49..3a54fa96 100644--- a/pnpm-workspace.yaml+++ b/pnpm-workspace.yaml@@ -33,7 +33,8 @@ minimumReleaseAgeExclude:- '@motrix/[email protected] || 0.3.0 || 0.4.0 || 0.5.0 || 0.6.0'- '@motrix/[email protected] || 0.1.1'- '@motrix/[email protected]'- - '@motrix/[email protected]'+ - '@motrix/[email protected]'+ - '@motrix/[email protected] || 2.1.1'- '@hookform/[email protected] || 5.9.1'diff --git a/scripts/before-pack-verify.mjs b/scripts/before-pack-verify.mjsindex 81ecbdab..e47d6966 100644--- a/scripts/before-pack-verify.mjs+++ b/scripts/before-pack-verify.mjs@@ -4,6 +4,8 @@// extra/<platform>/<arch>/aria2c[.exe] — the download engine// packages/native-host/dist/<platform>-<arch>/// motrix-native-host[.exe] — the browser-bridge host+// packages/finalize-fs/dist/<platform>-<arch>/+// motrix-finalize-fs[.exe] — safe finalize publisherimport { createHash } from 'node:crypto'import { constants } from 'node:fs'import { access, readFile, stat } from 'node:fs/promises'@@ -142,6 +144,8 @@ export default async function beforePack(context) {const engineBin = platform === 'win32' ? 'aria2c.exe' : 'aria2c'const hostBin =platform === 'win32' ? 'motrix-native-host.exe' : 'motrix-native-host'+ const finalizeBin =+ platform === 'win32' ? 'motrix-finalize-fs.exe' : 'motrix-finalize-fs'const arches = [archName]for (const arch of arches) {@@ -157,5 +161,20 @@ export default async function beforePack(context) {hostBin)await verifyExecutable(host, 'native-host binary', platform, arch)++ const finalize = path.join(+ projectDir,+ 'packages',+ 'finalize-fs',+ 'dist',+ `${platform}-${arch}`,+ finalizeBin+ )+ await verifyExecutable(+ finalize,+ 'finalize filesystem binary',+ platform,+ arch+ )}}diff --git a/scripts/ensure-server-finalize-fs.mjs b/scripts/ensure-server-finalize-fs.mjsnew file mode 100644index 00000000..74a45c1b--- /dev/null+++ b/scripts/ensure-server-finalize-fs.mjs@@ -0,0 +1,37 @@+import { spawnSync } from 'node:child_process'+import { access } from 'node:fs/promises'+import path from 'node:path'+import { fileURLToPath } from 'node:url'++const repositoryRoot = path.resolve(+ path.dirname(fileURLToPath(import.meta.url)),+ '..'+)+const platform = process.platform+const arch = process.arch+const binary =+ platform === 'win32' ? 'motrix-finalize-fs.exe' : 'motrix-finalize-fs'+const output = path.join(+ repositoryRoot,+ 'packages',+ 'finalize-fs',+ 'dist',+ `${platform}-${arch}`,+ binary+)++if (process.env.MOTRIX_SERVER_FINALIZE_FS_PREBUILT === '1') {+ await access(output)+ process.stdout.write(`[server-finalize-fs] using staged binary: ${output}\n`)+} else {+ const result = spawnSync(+ process.execPath,+ [path.join(repositoryRoot, 'packages/finalize-fs/build.mjs')],+ { cwd: repositoryRoot, env: process.env, stdio: 'inherit' }+ )+ if (result.error) throw result.error+ if (result.status !== 0) {+ throw new Error(`finalize-fs build failed with exit code ${result.status}`)+ }+ await access(output)+}diff --git a/scripts/release-signing-input.mjs b/scripts/release-signing-input.mjsindex d4936ae3..805c5b32 100644--- a/scripts/release-signing-input.mjs+++ b/scripts/release-signing-input.mjs@@ -35,7 +35,7 @@ export const SIGNING_ARCHIVE_LIMITS = Object.freeze({const TRUSTED_INPUT_SHA256 = Object.freeze({'electron-builder.signing.json':- '2950c8fb4ebe86a46d384efc373c3fb2b7d08389699fe1ab4ecb54e319dd5cd0',+ 'f67eaf34b5e933aa3806506e2d39af71dcbec8db1384cf485ef2634e41120e6d','signing-build-resources/256x256.png':'044d3b64a14aa512ca41469372d1ad630557daaeb2cb4e709d34f2d3c57d4c3b','signing-build-resources/background.tiff':@@ -65,7 +65,7 @@ const TRUSTED_INPUT_SHA256 = Object.freeze({'scripts/native-binary-target.mjs':'6f0a42eecf729eb6de2df28b5d7449993590e494deb4e309b99c367094045797','scripts/verify-electron-package.mjs':- 'fc8a3eb35684e2b21c46b6677a2568aeffbd4a7a6befae09fc57c9068b05c680',+ 'ec160ddfa929242155e38d3e0cfdd752ca748a16a84c71eefd39d5b0cbfb9e8a',})const SOURCE_MAPPINGS = [@@ -159,6 +159,7 @@ function isAllowedSigningDataPath(relativePath) {'dist/builtin-plugins/','dist/electron-app/','extra/',+ 'packages/finalize-fs/dist/','packages/native-host/dist/','signing-build-resources/','size-reports/',@@ -200,6 +201,7 @@ function isAllowedSigningDirectory(relativePath) {'dist/builtin-plugins','dist/electron-app','extra',+ 'packages/finalize-fs/dist','packages/native-host/dist',]const flatRoots = [@@ -334,10 +336,17 @@ function nativeHostResource(platform, arch) {return `packages/native-host/dist/${platform}-${arch}/${executable}`}+function finalizeFsResource(platform, arch) {+ const executable =+ platform === 'win32' ? 'motrix-finalize-fs.exe' : 'motrix-finalize-fs'+ return `packages/finalize-fs/dist/${platform}-${arch}/${executable}`+}+function normalizedMode(relativePath, info, options) {if (relativePath === targetResource(options.platform, options.arch) ||- relativePath === nativeHostResource(options.platform, options.arch)+ relativePath === nativeHostResource(options.platform, options.arch) ||+ relativePath === finalizeFsResource(options.platform, options.arch)) {return 0o755}@@ -558,6 +567,10 @@ export async function createSigningInput(options) {nativeHostResource(options.platform, options.arch),nativeHostResource(options.platform, options.arch),],+ [+ finalizeFsResource(options.platform, options.arch),+ finalizeFsResource(options.platform, options.arch),+ ],[`release/size-reports/${targetKey}.json`,`size-reports/${targetKey}.json`,diff --git a/scripts/server-package-size-budgets.json b/scripts/server-package-size-budgets.jsonindex a458e931..267887b9 100644--- a/scripts/server-package-size-budgets.json+++ b/scripts/server-package-size-budgets.json@@ -1,6 +1,6 @@{"schemaVersion": 1,- "artifactBytes": 89128960,+ "artifactBytes": 91226112,"dependencyBytes": 54525952,"packageInstances": 135,"unexpectedRuntimeRoots": 0,diff --git a/scripts/server-package-utils.mjs b/scripts/server-package-utils.mjsindex 847ebf7f..e01f8583 100644--- a/scripts/server-package-utils.mjs+++ b/scripts/server-package-utils.mjs@@ -276,6 +276,10 @@ export function resolveServerInput(input, target) {const replacements = {arch: target.arch,aria2Binary: target.platform === 'win32' ? 'aria2c.exe' : 'aria2c',+ finalizeBinary:+ target.platform === 'win32'+ ? 'motrix-finalize-fs.exe'+ : 'motrix-finalize-fs',platform: target.platform,}const resolveTemplate = (value, label) =>diff --git a/scripts/server-runtime-dependencies.json b/scripts/server-runtime-dependencies.jsonindex 0458cff5..dbf26977 100644--- a/scripts/server-runtime-dependencies.json+++ b/scripts/server-runtime-dependencies.json@@ -109,6 +109,11 @@"source": "extra/{platform}/{arch}/{aria2Binary}","destination": "bin/{aria2Binary}","type": "file"+ },+ {+ "source": "packages/finalize-fs/dist/{platform}-{arch}/{finalizeBinary}",+ "destination": "bin/{finalizeBinary}",+ "type": "file"}]}diff --git a/scripts/verify-electron-package.mjs b/scripts/verify-electron-package.mjsindex fdca7aab..2ea5153c 100644--- a/scripts/verify-electron-package.mjs+++ b/scripts/verify-electron-package.mjs@@ -304,6 +304,7 @@ export async function verifyElectronPackage(options) {aria2: [],builtins: [],legal: [],+ finalizeFs: [],nativeHost: [],resvg: [],updateMetadata: [],@@ -549,6 +550,10 @@ export async function verifyElectronPackage(options) {? 'motrix-native-host.exe': 'motrix-native-host'const engineName = target.platform === 'win32' ? 'aria2c.exe' : 'aria2c'+ const finalizeName =+ target.platform === 'win32'+ ? 'motrix-finalize-fs.exe'+ : 'motrix-finalize-fs'const required = [{category: 'aria2',@@ -556,6 +561,11 @@ export async function verifyElectronPackage(options) {executable: true,},{ category: 'nativeHost', path: `bin/${hostName}`, executable: true },+ {+ category: 'finalizeFs',+ path: `bin/${finalizeName}`,+ executable: true,+ },...LEGAL_RESOURCES.map((relativePath) => ({category: 'legal',path: relativePath,diff --git a/scripts/verify-flatpak-packaging.mjs b/scripts/verify-flatpak-packaging.mjsindex ae10720a..a0698719 100644--- a/scripts/verify-flatpak-packaging.mjs+++ b/scripts/verify-flatpak-packaging.mjs@@ -122,7 +122,8 @@ export async function verifyFlatpakPackaging(root = REPO_ROOT) {manifestSource,nodeSourceText,cargoSourceText,- cargoLock,+ nativeHostCargoLock,+ finalizeFsCargoLock,builtinLockText,workflow,packageManifestText,@@ -131,6 +132,7 @@ export async function verifyFlatpakPackaging(root = REPO_ROOT) {readFile(path.join(root, 'flatpak/generated-sources.json'), 'utf8'),readFile(path.join(root, 'flatpak/cargo-sources.json'), 'utf8'),readFile(path.join(root, 'packages/native-host/Cargo.lock'), 'utf8'),+ readFile(path.join(root, 'packages/finalize-fs/Cargo.lock'), 'utf8'),readFile(path.join(root, 'scripts/builtins.lock.json'), 'utf8'),readFile(path.join(root, '.github/workflows/flatpak.yml'), 'utf8'),readFile(path.join(root, 'package.json'), 'utf8'),@@ -303,6 +305,9 @@ export async function verifyFlatpakPackaging(root = REPO_ROOT) {const nativeHostCopy = motrixCommands.indexOf('packages/native-host/dist/linux-$npm_config_target_arch/motrix-native-host')+ const finalizeFsCopy = motrixCommands.indexOf(+ 'packages/finalize-fs/dist/linux-$npm_config_target_arch/motrix-finalize-fs'+ )const brokerBinary = motrixCommands.indexOf('/release/motrix-native-host-broker')@@ -320,6 +325,10 @@ export async function verifyFlatpakPackaging(root = REPO_ROOT) {nativeHostCopy >= 0 && nativeHostCopy < electronBuilder,'browser-facing native host must be staged transiently before electron-builder')+ invariant(+ finalizeFsCopy >= 0 && finalizeFsCopy < electronBuilder,+ 'finalize filesystem sidecar must be staged before electron-builder'+ )invariant(electronBuild >= 0 &&electronStage > electronBuild &&@@ -485,7 +494,11 @@ export async function verifyFlatpakPackaging(root = REPO_ROOT) {.map((source) => source?.dest).filter((dest) => typeof dest === 'string'))- for (const packageName of registryPackages(cargoLock)) {+ const lockedCargoPackages = new Set([+ ...registryPackages(nativeHostCargoLock),+ ...registryPackages(finalizeFsCargoLock),+ ])+ for (const packageName of [...lockedCargoPackages].sort()) {invariant(cargoDestinations.has(`cargo/vendor/${packageName}`),`Cargo source missing ${packageName}`diff --git a/src/core/inspector-activity/task-inspector-activity-runtime.test.ts b/src/core/inspector-activity/task-inspector-activity-runtime.test.tsindex 38de60a1..1bd2324d 100644--- a/src/core/inspector-activity/task-inspector-activity-runtime.test.ts+++ b/src/core/inspector-activity/task-inspector-activity-runtime.test.ts@@ -1149,4 +1149,39 @@ describe('TaskInspectorActivityRuntime', () => {).rejects.toThrow('database busy')expect(store.committedTransitions).toHaveLength(0)})++ it('holds the task mutation lane until a finalize lease is released', async () => {+ const runtime = new TaskInspectorActivityRuntime(+ createStore(),+ new EventBus()+ )+ const lease = await runtime.acquireTaskMutationLease('task-1')+ let competingMutationRan = false+ const competing = runtime.runTaskMutation(['task-1'], async () => {+ competingMutationRan = true+ })++ await Promise.resolve()+ expect(competingMutationRan).toBe(false)+ await lease.release()+ await competing+ expect(competingMutationRan).toBe(true)+ })++ it('borrows an enclosing task mutation lane without deadlocking', async () => {+ const runtime = new TaskInspectorActivityRuntime(+ createStore(),+ new EventBus()+ )+ const calls: string[] = []++ await runtime.runTaskMutation(['task-1'], async () => {+ calls.push('outer')+ const lease = await runtime.acquireTaskMutationLease('task-1')+ calls.push('lease')+ await lease.release()+ })++ expect(calls).toEqual(['outer', 'lease'])+ })})diff --git a/src/core/inspector-activity/task-inspector-activity-runtime.ts b/src/core/inspector-activity/task-inspector-activity-runtime.tsindex dd52d945..5d19618f 100644--- a/src/core/inspector-activity/task-inspector-activity-runtime.ts+++ b/src/core/inspector-activity/task-inspector-activity-runtime.ts@@ -113,6 +113,10 @@ export interface RecoveredAnchorOrigin {status: TaskStatus}+export interface TaskMutationLease {+ release(): Promise<void>+}+export type RecoveredAnchorOrigins = ReadonlyMap<string, RecoveredAnchorOrigin>export class TaskInspectorActivityRuntime {@@ -586,6 +590,51 @@ export class TaskInspectorActivityRuntime {return acquire(0)}+ /**+ * Holds the same per-task serialization lane used by every shell mutation.+ * A finalize call already inside runTaskMutation borrows that outer lease;+ * direct callers acquire the lane until release() resolves.+ */+ async acquireTaskMutationLease(taskId: string): Promise<TaskMutationLease> {+ if (this.stopped) {+ throw new Error('TaskInspectorActivityRuntime is disposed')+ }+ const active = this.mutationContext.getStore()+ if (active?.has(taskId)) {+ return { release: async () => undefined }+ }+ if (active) {+ throw new Error('Cannot extend a nested task mutation lock set')+ }++ let signalAcquired!: () => void+ let signalReleased!: () => void+ let rejectAcquired!: (error: unknown) => void+ const acquired = new Promise<void>((resolve, reject) => {+ signalAcquired = resolve+ rejectAcquired = reject+ })+ const released = new Promise<void>((resolve) => {+ signalReleased = resolve+ })+ const held = this.runTaskMutation([taskId], async () => {+ signalAcquired()+ await released+ })+ void held.catch(rejectAcquired)+ await acquired++ let didRelease = false+ return {+ release: async () => {+ if (didRelease) return+ didRelease = true+ signalReleased()+ await held+ },+ }+ }+snapshot(taskId: string): TaskInspectorActivitySnapshot | null {if (this.stopped) {throw new Error('TaskInspectorActivityRuntime is disposed')diff --git a/src/core/plugin/capabilities/commands.ts b/src/core/plugin/capabilities/commands.tsindex a28ac625..9810e2e5 100644--- a/src/core/plugin/capabilities/commands.ts+++ b/src/core/plugin/capabilities/commands.ts@@ -14,6 +14,8 @@// plugin.commands.not_found — no handler registered for commandId// plugin.commands.access_denied — cross-plugin call with no invoker bound+import type { PluginCallChain } from '../host/plugin-lane'+// ---------------------------------------------------------------------------// Error class// ---------------------------------------------------------------------------@@ -35,7 +37,12 @@ export class CommandsError extends Error {export type CommandHandler = (args: unknown) => unknown | Promise<unknown>export interface CrossPluginInvoker {- execute(callerId: string, commandId: string, args: unknown): Promise<unknown>+ execute(+ callerId: string,+ commandId: string,+ args: unknown,+ callChain?: PluginCallChain+ ): Promise<unknown>}export interface CommandsRegistration {@@ -154,7 +161,8 @@ export class CommandsCapabilityHost {async execute(callerId: string,commandId: string,- args: unknown+ args: unknown,+ callChain?: PluginCallChain): Promise<unknown> {if (commandId.startsWith(`${callerId}.`)) {const handler = this.handlers.get(commandId)@@ -193,7 +201,9 @@ export class CommandsCapabilityHost {`cross-plugin command "${commandId}" requires a bound invoker (Plan D)`)}- return this.invoker.execute(callerId, commandId, args)+ return callChain+ ? this.invoker.execute(callerId, commandId, args, callChain)+ : this.invoker.execute(callerId, commandId, args)}/**diff --git a/src/core/plugin/capabilities/http.proxy-lifecycle.test.ts b/src/core/plugin/capabilities/http.proxy-lifecycle.test.tsindex fda4cf54..e86bddfe 100644--- a/src/core/plugin/capabilities/http.proxy-lifecycle.test.ts+++ b/src/core/plugin/capabilities/http.proxy-lifecycle.test.ts@@ -40,10 +40,9 @@ describe('HttpCapabilityHost proxy lifecycle', () => {it('destroys an owned HTTP ProxyAgent after a successful response', async () => {mocks.request.mockResolvedValueOnce(response())- const result = await new HttpCapabilityHost().get(- 'https://downloads.example/file',- { proxy: 'http://127.0.0.1:8080' }- )+ const result = await new HttpCapabilityHost({+ managedProxy: 'http://127.0.0.1:8080',+ }).get('https://downloads.example/file')expect(result.body).toBe('ok')expect(mocks.proxyAgents).toHaveLength(1)@@ -58,9 +57,9 @@ describe('HttpCapabilityHost proxy lifecycle', () => {mocks.request.mockRejectedValueOnce(new Error('connect failed'))await expect(- new HttpCapabilityHost().get('https://downloads.example/file', {- proxy: 'https://127.0.0.1:8443',- })+ new HttpCapabilityHost({+ managedProxy: 'https://127.0.0.1:8443',+ }).get('https://downloads.example/file')).rejects.toMatchObject({ code: 'plugin.http.network' })expect(mocks.proxyAgents).toHaveLength(1)@@ -72,10 +71,9 @@ describe('HttpCapabilityHost proxy lifecycle', () => {controller.abort()await expect(- new HttpCapabilityHost().get('https://downloads.example/file', {- proxy: 'http://127.0.0.1:8080',- signal: controller.signal,- })+ new HttpCapabilityHost({+ managedProxy: 'http://127.0.0.1:8080',+ }).get('https://downloads.example/file', { signal: controller.signal })).rejects.toMatchObject({ code: 'plugin.http.aborted' })expect(mocks.proxyAgents).toHaveLength(0)@@ -84,9 +82,9 @@ describe('HttpCapabilityHost proxy lifecycle', () => {it('fails closed for SOCKS proxies before opening a connection', async () => {await expect(- new HttpCapabilityHost().get('https://downloads.example/file', {- proxy: 'socks5://127.0.0.1:1080',- })+ new HttpCapabilityHost({+ managedProxy: 'socks5://127.0.0.1:1080',+ }).get('https://downloads.example/file')).rejects.toMatchObject({code: 'plugin.http.proxy_scheme_not_supported',})@@ -116,10 +114,10 @@ describe('HttpCapabilityHost proxy lifecycle', () => {)await expect(- new HttpCapabilityHost({ defaultTimeoutMs: 10 }).get(- 'https://downloads.example/file',- { proxy: 'http://127.0.0.1:8080' }- )+ new HttpCapabilityHost({+ defaultTimeoutMs: 10,+ managedProxy: 'http://127.0.0.1:8080',+ }).get('https://downloads.example/file')).rejects.toMatchObject({ code: 'plugin.http.timeout' })expect(body?.destroyed).toBe(true)@@ -143,13 +141,23 @@ describe('HttpCapabilityHost proxy lifecycle', () => {})await expect(- new HttpCapabilityHost().get('https://downloads.example/file', {- proxy: 'http://127.0.0.1:8080',- redirect: 'error',- })+ new HttpCapabilityHost({+ managedProxy: 'http://127.0.0.1:8080',+ }).get('https://downloads.example/file', { redirect: 'error' })).rejects.toMatchObject({ code: 'plugin.http.redirect_not_allowed' })expect(order.slice(0, 2)).toEqual(['once:error', 'destroy'])expect(mocks.proxyAgents[0]?.destroy).toHaveBeenCalledOnce()})++ it('rejects a guest-selected proxy before allocating a dispatcher', async () => {+ await expect(+ new HttpCapabilityHost().get('https://downloads.example/file', {+ proxy: 'http://127.0.0.1:8080',+ })+ ).rejects.toMatchObject({ code: 'plugin.http.guest_proxy_not_allowed' })++ expect(mocks.proxyAgents).toHaveLength(0)+ expect(mocks.request).not.toHaveBeenCalled()+ })})diff --git a/src/core/plugin/capabilities/http.test.ts b/src/core/plugin/capabilities/http.test.tsindex a00fe00c..65f00325 100644--- a/src/core/plugin/capabilities/http.test.ts+++ b/src/core/plugin/capabilities/http.test.ts@@ -7,6 +7,8 @@ import * as http from 'node:http'import type { AddressInfo } from 'node:net'import Database from 'better-sqlite3'import { afterEach, beforeEach, describe, expect, it } from 'vitest'+import { urlMatchesHostPermissions } from '../hooks/eligibility'+import { HOST_PATTERN_CONFORMANCE_CASES } from '../permissions/host-pattern.corpus'import { HttpCapabilityHost } from './http'import { CookieJar, ensureCookieJarSchema } from './http-cookies'@@ -66,6 +68,22 @@ function createTestServer(): Promise<{return}+ if (url === '/redirect-empty-userinfo') {+ res.writeHead(302, {+ Location: `${baseUrl.replace('://', '://@')}/text`,+ })+ res.end()+ return+ }++ if (url === '/redirect-empty-userinfo-relative') {+ res.writeHead(302, {+ Location: `//@${new URL(baseUrl).host}/text`,+ })+ res.end()+ return+ }+if (url === '/large') {res.writeHead(200, { 'Content-Type': 'text/plain' })// Stream in chunks to simulate streaming response.@@ -140,6 +158,15 @@ function createTestServer(): Promise<{// Test suite// ---------------------------------------------------------------------------+describe('HttpCapabilityHost shared host-permission corpus', () => {+ it.each(HOST_PATTERN_CONFORMANCE_CASES)(+ '$name',+ ({ pattern, url, expected }) => {+ expect(urlMatchesHostPermissions([pattern], url)).toBe(expected)+ }+ )+})+describe('HttpCapabilityHost', () => {let server: http.Serverlet baseUrl: string@@ -340,7 +367,7 @@ describe('HttpCapabilityHost host permissions', () => {it('allows a URL matching the declared hostPermissions', async () => {const host = new HttpCapabilityHost({- hostPermissions: ['http://127.0.0.1:*/*'],+ hostPermissions: ['http://127.0.0.1/*'],})const resp = await host.get(`${baseUrl}/text`)expect(resp.body).toBe('hello')@@ -355,13 +382,47 @@ describe('HttpCapabilityHost host permissions', () => {it('re-checks hostPermissions on every redirect hop', async () => {const host = new HttpCapabilityHost({- hostPermissions: ['http://127.0.0.1:*/*'],+ hostPermissions: ['http://127.0.0.1/*'],})await expect(host.get(`${baseUrl}/redirect-external`)).rejects.toMatchObject({ code: 'plugin.http.host_not_permitted' })})+ it('rejects empty userinfo before the initial URL is canonicalized', async () => {+ const host = new HttpCapabilityHost({+ hostPermissions: ['http://127.0.0.1/*'],+ })+ await expect(+ host.get(baseUrl.replace('://', '://@'))+ ).rejects.toMatchObject({ code: 'plugin.http.host_not_permitted' })+ })++ it('rejects empty userinfo in an absolute redirect Location', async () => {+ const host = new HttpCapabilityHost({+ hostPermissions: ['http://127.0.0.1/*'],+ })+ await expect(+ host.get(`${baseUrl}/redirect-empty-userinfo`)+ ).rejects.toMatchObject({ code: 'plugin.http.host_not_permitted' })+ })++ it('rejects empty userinfo in a scheme-relative redirect Location', async () => {+ const host = new HttpCapabilityHost({+ hostPermissions: ['http://127.0.0.1/*'],+ })+ await expect(+ host.get(`${baseUrl}/redirect-empty-userinfo-relative`)+ ).rejects.toMatchObject({ code: 'plugin.http.host_not_permitted' })+ })++ it('rejects credential syntax even when hostPermissions is unrestricted', async () => {+ const host = new HttpCapabilityHost()+ await expect(+ host.get(baseUrl.replace('://', '://@'))+ ).rejects.toMatchObject({ code: 'plugin.http.host_not_permitted' })+ })+it('leaves hosts unrestricted when hostPermissions is not provided', async () => {const host = new HttpCapabilityHost()const resp = await host.get(`${baseUrl}/text`)diff --git a/src/core/plugin/capabilities/http.ts b/src/core/plugin/capabilities/http.tsindex eae592a2..a4d22407 100644--- a/src/core/plugin/capabilities/http.ts+++ b/src/core/plugin/capabilities/http.ts@@ -9,7 +9,8 @@// - Timeout: default 30 s; hard cap 300 s.// - Redirect: 'follow' (up to 10), 'manual', or 'error' (reject any 3xx).// - Range: `{start, end}` generates a `Range: bytes=start-end` header.-// - Proxy: `http://host:port` / `https://host:port`; per-request override.+// - Proxy: only a Host-managed `http://` / `https://` route. Guest-selected+// per-request proxy endpoints are rejected.// - Cookies: opt-in via cookies: 'jar' (reads jar before, captures after).// - AbortSignal chaining: plugin's signal + internal timeout both abort.// - JSON body shorthand: body.type === 'json' auto-serializes + Content-Type.@@ -21,6 +22,7 @@import type { Dispatcher } from 'undici'import { Agent, ProxyAgent, request as undiciRequest } from 'undici'import { urlMatchesHostPermissions } from '../hooks/eligibility'+import { hasAuthorityUserInfo } from '../permissions/host-pattern'import type { CookieJar } from './http-cookies'// ---------------------------------------------------------------------------@@ -113,6 +115,10 @@ export interface HttpCapabilityHostOptions {* tests; the capability bridge always passes the manifest's list.*/hostPermissions?: ReadonlyArray<string>+ /** Host policy route. It is never copied from guest request options. */+ managedProxy?: string+ /** Host-owned transport override (used by deterministic loopback tests). */+ dispatcher?: Dispatcher}// ---------------------------------------------------------------------------@@ -224,8 +230,13 @@ interface DispatcherLease {owned: boolean}-function pickDispatcher(proxy: string | undefined): DispatcherLease {- if (!proxy) return { dispatcher: sharedAgent, owned: false }+function pickDispatcher(+ proxy: string | undefined,+ dispatcher: Dispatcher | undefined+): DispatcherLease {+ if (!proxy) {+ return { dispatcher: dispatcher ?? sharedAgent, owned: false }+ }let parsed: URLtry {@@ -331,6 +342,8 @@ export class HttpCapabilityHost {private readonly defaultTimeoutMs: numberprivate readonly defaultMaxBodyBytes: numberprivate readonly hostPermissions: ReadonlyArray<string> | undefined+ private readonly managedProxy: string | undefined+ private readonly dispatcher: Dispatcher | undefinedconstructor(opts?: HttpCapabilityHostOptions) {this.cookieJar = opts?.cookieJar@@ -338,9 +351,37 @@ export class HttpCapabilityHost {this.defaultMaxBodyBytes =opts?.defaultMaxBodyBytes ?? DEFAULT_MAX_BODY_BYTESthis.hostPermissions = opts?.hostPermissions+ this.managedProxy = opts?.managedProxy+ this.dispatcher = opts?.dispatcher+ }++ /** Preserve the Host transport/policy while narrowing one plugin's reach. */+ scoped(input: {+ cookieJar?: CookieJar+ hostPermissions: ReadonlyArray<string>+ }): HttpCapabilityHost {+ return new HttpCapabilityHost({+ cookieJar: input.cookieJar,+ defaultTimeoutMs: this.defaultTimeoutMs,+ defaultMaxBodyBytes: this.defaultMaxBodyBytes,+ hostPermissions: input.hostPermissions,+ managedProxy: this.managedProxy,+ dispatcher: this.dispatcher,+ })}- private checkHostPermitted(url: string): void {+ private checkHostPermitted(url: string, parsed?: URL): void {+ const normalized = parsed ?? parseUrl(url)+ if (+ hasAuthorityUserInfo(url) ||+ normalized.username.length > 0 ||+ normalized.password.length > 0+ ) {+ throw new HttpError(+ 'plugin.http.host_not_permitted',+ 'Credential-bearing URLs are outside hostPermissions'+ )+ }if (this.hostPermissions === undefined) returnif (urlMatchesHostPermissions(this.hostPermissions, url)) returnthrow new HttpError(@@ -362,10 +403,16 @@ export class HttpCapabilityHost {'responseType is required (text | json | bytes)')}+ if (opts.proxy !== undefined) {+ throw new HttpError(+ 'plugin.http.guest_proxy_not_allowed',+ 'Plugin-selected proxy endpoints are not allowed'+ )+ }const parsed = parseUrl(opts.url)checkScheme(parsed)- this.checkHostPermitted(parsed.toString())+ this.checkHostPermitted(opts.url, parsed)const timeoutMs = clampTimeout(opts.timeoutMs, this.defaultTimeoutMs)const maxBodyBytes = clampMaxBody(@@ -426,7 +473,7 @@ export class HttpCapabilityHost {const timer = setTimeout(() => internalCtrl.abort('timeout'), timeoutMs)cleanup.push(() => clearTimeout(timer))- lease = pickDispatcher(opts.proxy)+ lease = pickDispatcher(this.managedProxy, this.dispatcher)while (true) {// Cookie jar inject (uses currentUrl so cookies follow the host).@@ -523,7 +570,13 @@ export class HttpCapabilityHost {// only ran on the initial URL, so a 3xx Location to file:// (or to// a host outside hostPermissions) would otherwise escape.checkScheme(nextUrl)- this.checkHostPermitted(nextUrl.toString())+ if (hasAuthorityUserInfo(loc)) {+ throw new HttpError(+ 'plugin.http.host_not_permitted',+ 'Credential-bearing redirect URLs are outside hostPermissions'+ )+ }+ this.checkHostPermitted(nextUrl.toString(), nextUrl)currentUrl = nextUrl.toString()redirected = truehops += 1diff --git a/src/core/plugin/capabilities/metadata.ts b/src/core/plugin/capabilities/metadata.tsindex facfa163..07be0934 100644--- a/src/core/plugin/capabilities/metadata.ts+++ b/src/core/plugin/capabilities/metadata.ts@@ -54,7 +54,7 @@ export class MetadataError extends Error {// Internal helpers// ----------------------------------------------------------------------------const DEFAULT_QUOTA = 64 << 10 // 64 KB+export const DEFAULT_METADATA_QUOTA_BYTES = 64 << 10 // 64 KiB/*** Serialize `value` to JSON.@@ -63,7 +63,7 @@ const DEFAULT_QUOTA = 64 << 10 // 64 KB* - JSON.stringify returns undefined (e.g. a plain function)* - JSON.stringify throws (e.g. BigInt, class with throwing toJSON)*/-function serialize(value: unknown): string {+export function serializeMetadataValue(value: unknown): string {if (value === undefined) {throw new MetadataError('plugin.metadata.value_not_serializable',@@ -101,7 +101,8 @@ export class MetadataCapabilityHost {perPluginPerTaskBytes?: number}) {this.db = opts.db- this.perPluginPerTaskBytes = opts.perPluginPerTaskBytes ?? DEFAULT_QUOTA+ this.perPluginPerTaskBytes =+ opts.perPluginPerTaskBytes ?? DEFAULT_METADATA_QUOTA_BYTES}// -------------------------------------------------------------------------@@ -217,7 +218,7 @@ export class MetadataCapabilityHost {key: string,value: unknown): Promise<void> {- const json = serialize(value)+ const json = serializeMetadataValue(value)const size = Buffer.byteLength(json, 'utf8')this.assertQuota(taskId, pluginId, key, size)diff --git a/src/core/plugin/commands/cross-plugin-invoker.ts b/src/core/plugin/commands/cross-plugin-invoker.tsindex 1a4a2f5d..de2ae078 100644--- a/src/core/plugin/commands/cross-plugin-invoker.ts+++ b/src/core/plugin/commands/cross-plugin-invoker.ts@@ -11,6 +11,10 @@import { AppError, ErrorCode } from '@shared/errors'import type { CrossPluginInvoker } from '../capabilities/commands'+import {+ currentPluginCallChain,+ type PluginCallChain,+} from '../host/plugin-lane'import type { PluginRegistry } from '../plugin-registry'import type { CallerThrottle } from './caller-throttle'import type { ChainDepth } from './chain-depth'@@ -25,7 +29,8 @@ export interface InvokerHost {invokeCommand(pluginId: string,commandId: string,- args: unknown+ args: unknown,+ options?: { callChain?: PluginCallChain }): Promise<unknown>}@@ -108,7 +113,8 @@ export class FullCrossPluginInvoker implements CrossPluginInvoker {async execute(callerId: string,commandId: string,- args: unknown+ args: unknown,+ explicitCallChain?: PluginCallChain): Promise<unknown> {const startTs = Date.now()const taskId = this.taskIdProvider() ?? `_no_task_${callerId}_${startTs}`@@ -136,6 +142,27 @@ export class FullCrossPluginInvoker implements CrossPluginInvoker {}const calleePluginId = parsed.pluginId+ const inheritedChain = explicitCallChain ?? currentPluginCallChain()+ const callChain: PluginCallChain = inheritedChain ?? {+ id: taskId,+ plugins: [callerId],+ }+ if (callChain.plugins.includes(calleePluginId)) {+ this.audit.log({+ caller: callerId,+ callee: calleePluginId,+ commandId,+ argsSize,+ durMs: Date.now() - startTs,+ depth: this.depth.current(taskId),+ ok: false,+ errorCode: 'plugin.runtime.reentrant_call',+ })+ throw new AppError(+ ErrorCode.PluginRuntimeFault,+ 'plugin.runtime.reentrant_call'+ )+ }const depthValue = this.depth.enter(taskId)const auditFail = (errorCode: string): never => {this.audit.log({@@ -227,8 +254,21 @@ export class FullCrossPluginInvoker implements CrossPluginInvoker {// 7. Invoke the handler. Never propagate the callee's message/stack.let result: unknowntry {- result = await this.host.invokeCommand(calleePluginId, commandId, args)- } catch {+ result = await this.host.invokeCommand(+ calleePluginId,+ commandId,+ args,+ {+ callChain,+ }+ )+ } catch (error) {+ if (+ error instanceof AppError &&+ error.message === 'plugin.runtime.reentrant_call'+ ) {+ throw error+ }this.audit.log({caller: callerId,callee: calleePluginId,diff --git a/src/core/plugin/commands/integration.test.ts b/src/core/plugin/commands/integration.test.tsindex 08b034fd..794f8d94 100644--- a/src/core/plugin/commands/integration.test.ts+++ b/src/core/plugin/commands/integration.test.ts@@ -15,6 +15,7 @@ import type {PluginStateRecord,} from '@shared/types/plugin'import { afterEach, beforeEach, describe, expect, it } from 'vitest'+import type { PluginCallChain } from '../host/plugin-lane'import type { IndexedPlugin, PluginRegistry } from '../plugin-registry'import { CallerThrottle } from './caller-throttle'import { ChainDepth } from './chain-depth'@@ -91,7 +92,8 @@ interface HostStubOpts {invokeCommand?: (pluginId: string,commandId: string,- args: unknown+ args: unknown,+ options?: { callChain?: PluginCallChain }) => Promise<unknown>activate?: (pluginId: string) => Promise<void>}@@ -234,6 +236,182 @@ describe('FullCrossPluginInvoker', () => {await rm(tmp, { recursive: true, force: true })})+ it('rejects an A -> B -> A call cycle before the second enqueue', async () => {+ const registry = makeRegistry([+ {+ id: 'test.a',+ invokesCommands: ['test.b.run'],+ publicCommands: [+ {+ id: 'test.a.run',+ argsSchema: ARGS_SCHEMA,+ resultSchema: RESULT_SCHEMA,+ },+ ],+ },+ {+ id: 'test.b',+ invokesCommands: ['test.a.run'],+ publicCommands: [+ {+ id: 'test.b.run',+ argsSchema: ARGS_SCHEMA,+ resultSchema: RESULT_SCHEMA,+ },+ ],+ },+ ])+ let invoker!: FullCrossPluginInvoker+ const host = makeHost({+ active: new Set(['test.a', 'test.b']),+ invokeCommand: async (pluginId, _commandId, args, options) => {+ if (pluginId === 'test.b') {+ const inherited = options?.callChain+ return invoker.execute('test.b', 'test.a.run', args, {+ id: inherited?.id ?? 'test-cycle',+ plugins: [...(inherited?.plugins ?? ['test.a']), 'test.b'],+ })+ }+ return { greeting: 'unreachable' }+ },+ })+ const commands = new Map([+ [+ 'test.a',+ [+ {+ id: 'test.a.run',+ argsSchema: ARGS_SCHEMA,+ resultSchema: RESULT_SCHEMA,+ public: true,+ },+ ],+ ],+ [+ 'test.b',+ [+ {+ id: 'test.b.run',+ argsSchema: ARGS_SCHEMA,+ resultSchema: RESULT_SCHEMA,+ public: true,+ },+ ],+ ],+ ])+ const harness = buildHarness({+ registry,+ host,+ auditFile,+ taskId: () => 'task-cycle',+ publicCmds: commands,+ })+ invoker = harness.invoker++ await expect(+ invoker.execute('test.a', 'test.b.run', { name: 'cycle' })+ ).rejects.toMatchObject({ message: 'plugin.runtime.reentrant_call' })+ expect(harness.depth.current('task-cycle')).toBe(0)+ })++ it('keeps concurrent call chains to one callee bound to their lane entries', async () => {+ const registry = makeRegistry([+ {+ id: 'test.a',+ invokesCommands: ['test.b.run'],+ publicCommands: [+ {+ id: 'test.a.run',+ argsSchema: ARGS_SCHEMA,+ resultSchema: RESULT_SCHEMA,+ },+ ],+ },+ {+ id: 'test.c',+ invokesCommands: ['test.b.run'],+ publicCommands: [+ {+ id: 'test.c.run',+ argsSchema: ARGS_SCHEMA,+ resultSchema: RESULT_SCHEMA,+ },+ ],+ },+ {+ id: 'test.b',+ invokesCommands: ['test.a.run', 'test.c.run'],+ publicCommands: [+ {+ id: 'test.b.run',+ argsSchema: ARGS_SCHEMA,+ resultSchema: RESULT_SCHEMA,+ },+ ],+ },+ ])+ let invoker!: FullCrossPluginInvoker+ let entered = 0+ let releaseBoth!: () => void+ const bothEntered = new Promise<void>((resolve) => {+ releaseBoth = resolve+ })+ const host = makeHost({+ active: new Set(['test.a', 'test.b', 'test.c']),+ invokeCommand: async (pluginId, _commandId, args, options) => {+ if (pluginId !== 'test.b') return { greeting: 'unreachable' }+ entered += 1+ if (entered === 2) releaseBoth()+ await bothEntered+ const caller = (args as { name: string }).name+ const inherited = options?.callChain+ const boundChain: PluginCallChain = {+ id: inherited?.id ?? `chain-${caller}`,+ plugins: [...(inherited?.plugins ?? [`test.${caller}`]), 'test.b'],+ }+ return invoker.execute('test.b', `test.${caller}.run`, args, boundChain)+ },+ })+ const publicCmds = new Map(+ ['a', 'b', 'c'].map((name) => [+ `test.${name}`,+ [+ {+ id: `test.${name}.run`,+ argsSchema: ARGS_SCHEMA,+ resultSchema: RESULT_SCHEMA,+ public: true,+ },+ ],+ ])+ )+ const harness = buildHarness({+ registry,+ host,+ auditFile,+ taskId: () => 'task-concurrent-cycle',+ publicCmds,+ })+ invoker = harness.invoker++ const results = await Promise.allSettled([+ invoker.execute('test.a', 'test.b.run', { name: 'a' }),+ invoker.execute('test.c', 'test.b.run', { name: 'c' }),+ ])++ expect(results).toHaveLength(2)+ for (const result of results) {+ expect(result.status).toBe('rejected')+ if (result.status === 'rejected') {+ expect(result.reason).toMatchObject({+ message: 'plugin.runtime.reentrant_call',+ })+ }+ }+ expect(harness.depth.current('task-concurrent-cycle')).toBe(0)+ await harness.audit.drain()+ })+it('returns the callee result on the happy path', async () => {const registry = makeRegistry([{diff --git a/src/core/plugin/finalize/artifact-identity.test.ts b/src/core/plugin/finalize/artifact-identity.test.tsnew file mode 100644index 00000000..0f044363--- /dev/null+++ b/src/core/plugin/finalize/artifact-identity.test.ts@@ -0,0 +1,65 @@+import { mkdir, mkdtemp, symlink, writeFile } from 'node:fs/promises'+import { tmpdir } from 'node:os'+import path from 'node:path'+import { describe, expect, it } from 'vitest'+import {+ artifactContentEquals,+ artifactIdentityEquals,+ readArtifactIdentity,+} from './artifact-identity'++describe('artifact identity', () => {+ it('hashes regular files with a held no-follow descriptor', async () => {+ const root = await mkdtemp(path.join(tmpdir(), 'motrix-identity-'))+ const artifact = path.join(root, 'artifact.bin')+ await writeFile(artifact, 'known bytes')+ const first = await readArtifactIdentity(artifact)+ const second = await readArtifactIdentity(artifact)+ expect(first.kind).toBe('file')+ expect(artifactIdentityEquals(first, second)).toBe(true)+ })++ it('hashes directory shape, empty directories, and file bytes', async () => {+ const root = await mkdtemp(path.join(tmpdir(), 'motrix-tree-'))+ await mkdir(path.join(root, 'empty'))+ await mkdir(path.join(root, 'nested'))+ await writeFile(path.join(root, 'nested', 'file'), 'payload')+ const identity = await readArtifactIdentity(root)+ expect(identity).toMatchObject({+ kind: 'directory',+ entryCount: 3,+ totalBytes: 7,+ })+ })++ it('rejects symbolic links instead of following them', async () => {+ const root = await mkdtemp(path.join(tmpdir(), 'motrix-link-'))+ await writeFile(path.join(root, 'outside'), 'secret')+ await mkdir(path.join(root, 'tree'))+ await symlink(path.join(root, 'outside'), path.join(root, 'tree', 'link'))+ await expect(+ readArtifactIdentity(path.join(root, 'tree'))+ ).rejects.toMatchObject({ code: 'artifact_unsafe_path' })+ })++ it('distinguishes exact inode identity from equal copied content', async () => {+ const root = await mkdtemp(path.join(tmpdir(), 'motrix-copy-'))+ const firstPath = path.join(root, 'first')+ const secondPath = path.join(root, 'second')+ await writeFile(firstPath, 'same')+ await writeFile(secondPath, 'same')+ const first = await readArtifactIdentity(firstPath)+ const second = await readArtifactIdentity(secondPath)+ expect(artifactContentEquals(first, second)).toBe(true)+ expect(artifactIdentityEquals(first, second)).toBe(false)+ })++ it('fails the entry bound rather than producing a partial tree identity', async () => {+ const root = await mkdtemp(path.join(tmpdir(), 'motrix-limit-'))+ await writeFile(path.join(root, 'one'), '1')+ await writeFile(path.join(root, 'two'), '2')+ await expect(+ readArtifactIdentity(root, { maxEntries: 1 })+ ).rejects.toMatchObject({ code: 'artifact_too_large' })+ })+})diff --git a/src/core/plugin/finalize/artifact-identity.ts b/src/core/plugin/finalize/artifact-identity.tsnew file mode 100644index 00000000..26a3b013--- /dev/null+++ b/src/core/plugin/finalize/artifact-identity.ts@@ -0,0 +1,310 @@+import { createHash } from 'node:crypto'+import { constants } from 'node:fs'+import { lstat, open, readdir } from 'node:fs/promises'+import path from 'node:path'++export interface FileArtifactIdentity {+ kind: 'file'+ size: number+ sha256: string+ platformFileId: string+}++export interface DirectoryArtifactIdentity {+ kind: 'directory'+ entryCount: number+ totalBytes: number+ treeSha256: string+ platformFileId: string+}++export type ArtifactIdentity = FileArtifactIdentity | DirectoryArtifactIdentity++export class ArtifactIdentityError extends Error {+ constructor(+ readonly code:+ | 'artifact_missing'+ | 'artifact_mutated'+ | 'artifact_special_file'+ | 'artifact_too_large'+ | 'artifact_unsafe_path',+ message: string,+ options?: ErrorOptions+ ) {+ super(message, options)+ this.name = 'ArtifactIdentityError'+ }+}++export interface ArtifactIdentityOptions {+ maxEntries?: number+}++const statKey = (value: {+ dev: bigint+ ino: bigint+ size: bigint+ mtimeNs: bigint+ ctimeNs: bigint+}): string =>+ `${value.dev}:${value.ino}:${value.size}:${value.mtimeNs}:${value.ctimeNs}`++const fileId = (value: { dev: bigint; ino: bigint }): string =>+ `${value.dev}:${value.ino}`++function appendRecord(+ hash: ReturnType<typeof createHash>,+ fields: Buffer[]+): void {+ for (const field of fields) {+ const length = Buffer.allocUnsafe(8)+ length.writeBigUInt64BE(BigInt(field.length))+ hash.update(length)+ hash.update(field)+ }+}++async function identityForFile(+ filePath: string+): Promise<FileArtifactIdentity> {+ let handle: Awaited<ReturnType<typeof open>>+ try {+ handle = await open(filePath, constants.O_RDONLY | constants.O_NOFOLLOW)+ } catch (error) {+ throw new ArtifactIdentityError(+ 'artifact_missing',+ `cannot open artifact without following links: ${filePath}`,+ { cause: error }+ )+ }+ try {+ const before = await handle.stat({ bigint: true })+ if (!before.isFile()) {+ throw new ArtifactIdentityError(+ 'artifact_special_file',+ `artifact is not a regular file: ${filePath}`+ )+ }+ const hash = createHash('sha256')+ const stream = handle.createReadStream({ autoClose: false })+ for await (const chunk of stream) hash.update(chunk as Buffer)+ const after = await handle.stat({ bigint: true })+ if (statKey(before) !== statKey(after)) {+ throw new ArtifactIdentityError(+ 'artifact_mutated',+ `artifact changed while hashing: ${filePath}`+ )+ }+ if (after.size > BigInt(Number.MAX_SAFE_INTEGER)) {+ throw new ArtifactIdentityError(+ 'artifact_too_large',+ `artifact size exceeds the safe identity range: ${filePath}`+ )+ }+ return {+ kind: 'file',+ size: Number(after.size),+ sha256: hash.digest('hex'),+ platformFileId: fileId(after),+ }+ } finally {+ await handle.close()+ }+}++interface TreeRecord {+ type: 'directory' | 'file'+ relativePath: string+ size?: number+ sha256?: string+}++async function walkDirectory(+ root: string,+ current: string,+ records: TreeRecord[],+ maxEntries: number+): Promise<void> {+ const entries = await readdir(current, { withFileTypes: true })+ entries.sort((left, right) =>+ Buffer.from(left.name).compare(Buffer.from(right.name))+ )+ for (const entry of entries) {+ if (records.length >= maxEntries) {+ throw new ArtifactIdentityError(+ 'artifact_too_large',+ `directory artifact exceeds ${maxEntries} entries`+ )+ }+ const absolute = path.join(current, entry.name)+ const relativePath = path.relative(root, absolute)+ const entryStat = await lstat(absolute, { bigint: true })+ if (entryStat.isSymbolicLink()) {+ throw new ArtifactIdentityError(+ 'artifact_unsafe_path',+ `directory artifact contains a symbolic link: ${relativePath}`+ )+ }+ if (entryStat.isDirectory()) {+ records.push({ type: 'directory', relativePath })+ await walkDirectory(root, absolute, records, maxEntries)+ const after = await lstat(absolute, { bigint: true })+ if (statKey(entryStat) !== statKey(after)) {+ throw new ArtifactIdentityError(+ 'artifact_mutated',+ `directory changed while hashing: ${relativePath}`+ )+ }+ continue+ }+ if (!entryStat.isFile()) {+ throw new ArtifactIdentityError(+ 'artifact_special_file',+ `directory artifact contains a special entry: ${relativePath}`+ )+ }+ const identity = await identityForFile(absolute)+ if (identity.platformFileId !== fileId(entryStat)) {+ throw new ArtifactIdentityError(+ 'artifact_mutated',+ `directory entry was replaced while hashing: ${relativePath}`+ )+ }+ records.push({+ type: 'file',+ relativePath,+ size: identity.size,+ sha256: identity.sha256,+ })+ }+}++export async function readArtifactIdentity(+ artifactPath: string,+ options: ArtifactIdentityOptions = {}+): Promise<ArtifactIdentity> {+ const root = await lstat(artifactPath, { bigint: true }).catch((error) => {+ throw new ArtifactIdentityError(+ 'artifact_missing',+ `artifact does not exist: ${artifactPath}`,+ { cause: error }+ )+ })+ if (root.isSymbolicLink()) {+ throw new ArtifactIdentityError(+ 'artifact_unsafe_path',+ `artifact root is a symbolic link: ${artifactPath}`+ )+ }+ if (root.isFile()) return identityForFile(artifactPath)+ if (!root.isDirectory()) {+ throw new ArtifactIdentityError(+ 'artifact_special_file',+ `artifact root is neither a file nor a directory: ${artifactPath}`+ )+ }++ const directoryHandle =+ process.platform === 'win32'+ ? null+ : await open(+ artifactPath,+ constants.O_RDONLY | constants.O_DIRECTORY | constants.O_NOFOLLOW+ )+ try {+ const before = directoryHandle+ ? await directoryHandle.stat({ bigint: true })+ : await lstat(artifactPath, { bigint: true })+ const records: TreeRecord[] = []+ await walkDirectory(+ artifactPath,+ artifactPath,+ records,+ options.maxEntries ?? 1_000_000+ )+ const after = directoryHandle+ ? await directoryHandle.stat({ bigint: true })+ : await lstat(artifactPath, { bigint: true })+ if (statKey(before) !== statKey(after)) {+ throw new ArtifactIdentityError(+ 'artifact_mutated',+ `directory root changed while hashing: ${artifactPath}`+ )+ }+ const hash = createHash('sha256')+ appendRecord(hash, [Buffer.from('motrix-directory-identity-v1')])+ appendRecord(hash, [Buffer.from(process.platform)])+ appendRecord(hash, [Buffer.from('directory'), Buffer.from('')])+ let totalBytes = 0+ for (const record of records) {+ const fields = [+ Buffer.from(record.type),+ Buffer.from(record.relativePath),+ ]+ if (record.type === 'file') {+ const size = Buffer.allocUnsafe(8)+ size.writeBigUInt64BE(BigInt(record.size ?? 0))+ fields.push(size, Buffer.from(record.sha256 ?? '', 'hex'))+ totalBytes += record.size ?? 0+ if (!Number.isSafeInteger(totalBytes)) {+ throw new ArtifactIdentityError(+ 'artifact_too_large',+ 'directory byte total exceeds the safe identity range'+ )+ }+ }+ appendRecord(hash, fields)+ }+ return {+ kind: 'directory',+ entryCount: records.length,+ totalBytes,+ treeSha256: hash.digest('hex'),+ platformFileId: fileId(after),+ }+ } finally {+ await directoryHandle?.close()+ }+}++export function artifactIdentityEquals(+ left: ArtifactIdentity,+ right: ArtifactIdentity+): boolean {+ if (left.kind !== right.kind) return false+ if (left.kind === 'file' && right.kind === 'file') {+ return (+ left.size === right.size &&+ left.sha256 === right.sha256 &&+ left.platformFileId === right.platformFileId+ )+ }+ if (left.kind === 'directory' && right.kind === 'directory') {+ return (+ left.entryCount === right.entryCount &&+ left.totalBytes === right.totalBytes &&+ left.treeSha256 === right.treeSha256 &&+ left.platformFileId === right.platformFileId+ )+ }+ return false+}++/** Compares immutable bytes/tree content across an intentional copy. */+export function artifactContentEquals(+ left: ArtifactIdentity,+ right: ArtifactIdentity+): boolean {+ if (left.kind !== right.kind) return false+ if (left.kind === 'file' && right.kind === 'file') {+ return left.size === right.size && left.sha256 === right.sha256+ }+ if (left.kind === 'directory' && right.kind === 'directory') {+ return (+ left.entryCount === right.entryCount &&+ left.totalBytes === right.totalBytes &&+ left.treeSha256 === right.treeSha256+ )+ }+ return false+}diff --git a/src/core/plugin/finalize/artifact-mutation-lease.test.ts b/src/core/plugin/finalize/artifact-mutation-lease.test.tsnew file mode 100644index 00000000..120a48bd--- /dev/null+++ b/src/core/plugin/finalize/artifact-mutation-lease.test.ts@@ -0,0 +1,35 @@+import { describe, expect, it, vi } from 'vitest'+import { ArtifactMutationLeaseCoordinator } from './artifact-mutation-lease'++describe('ArtifactMutationLeaseCoordinator', () => {+ it('quiesces every writer and resumes in reverse order', async () => {+ const events: string[] = []+ const coordinator = new ArtifactMutationLeaseCoordinator([+ { quiesce: async () => () => void events.push('resume-engine') },+ { quiesce: async () => () => void events.push('resume-host') },+ ])+ const lease = await coordinator.acquire('task-1')+ expect(coordinator.isHeld('task-1')).toBe(true)+ await lease.release()+ expect(events).toEqual(['resume-host', 'resume-engine'])+ expect(coordinator.isHeld('task-1')).toBe(false)+ })++ it('fails closed and rolls back already-quiesced writers', async () => {+ const resume = vi.fn()+ const coordinator = new ArtifactMutationLeaseCoordinator([+ { quiesce: async () => resume },+ { quiesce: async () => Promise.reject(new Error('engine busy')) },+ ])+ await expect(coordinator.acquire('task-1')).rejects.toThrow('engine busy')+ expect(resume).toHaveBeenCalledOnce()+ expect(coordinator.isHeld('task-1')).toBe(false)+ })++ it('rejects concurrent mutation of the same task', async () => {+ const coordinator = new ArtifactMutationLeaseCoordinator([])+ const lease = await coordinator.acquire('task-1')+ await expect(coordinator.acquire('task-1')).rejects.toThrow('already held')+ await lease.release()+ })+})diff --git a/src/core/plugin/finalize/artifact-mutation-lease.ts b/src/core/plugin/finalize/artifact-mutation-lease.tsnew file mode 100644index 00000000..f8c3594e--- /dev/null+++ b/src/core/plugin/finalize/artifact-mutation-lease.ts@@ -0,0 +1,53 @@+export interface ArtifactWriterQuiescer {+ quiesce(taskId: string): Promise<() => Promise<void> | void>+}++export interface ArtifactMutationLease {+ readonly taskId: string+ release(): Promise<void>+}++export class ArtifactMutationLeaseCoordinator {+ private readonly active = new Set<string>()++ constructor(private readonly writers: readonly ArtifactWriterQuiescer[]) {}++ async acquire(taskId: string): Promise<ArtifactMutationLease> {+ if (this.active.has(taskId)) {+ throw new Error(`artifact mutation lease is already held for ${taskId}`)+ }+ this.active.add(taskId)+ const resumptions: Array<() => Promise<void> | void> = []+ try {+ for (const writer of this.writers) {+ resumptions.push(await writer.quiesce(taskId))+ }+ } catch (error) {+ for (const resume of resumptions.reverse()) await resume()+ this.active.delete(taskId)+ throw error+ }+ let released = false+ return {+ taskId,+ release: async () => {+ if (released) return+ released = true+ let firstError: unknown+ for (const resume of resumptions.reverse()) {+ try {+ await resume()+ } catch (error) {+ firstError ??= error+ }+ }+ this.active.delete(taskId)+ if (firstError) throw firstError+ },+ }+ }++ isHeld(taskId: string): boolean {+ return this.active.has(taskId)+ }+}diff --git a/src/core/plugin/finalize/filesystem-adapter.test.ts b/src/core/plugin/finalize/filesystem-adapter.test.tsnew file mode 100644index 00000000..8cb7e6b1--- /dev/null+++ b/src/core/plugin/finalize/filesystem-adapter.test.ts@@ -0,0 +1,71 @@+import { chmod, mkdtemp, rm, writeFile } from 'node:fs/promises'+import os from 'node:os'+import path from 'node:path'+import { afterEach, describe, expect, it } from 'vitest'+import { NativeFinalizeFilesystemAdapter } from './filesystem-adapter'++describe.runIf(process.platform !== 'win32')(+ 'NativeFinalizeFilesystemAdapter process failures',+ () => {+ const roots: string[] = []++ afterEach(async () => {+ await Promise.all(+ roots+ .splice(0)+ .map((root) => rm(root, { recursive: true, force: true }))+ )+ })++ async function executable(source: string): Promise<string> {+ const root = await mkdtemp(path.join(os.tmpdir(), 'motrix-sidecar-test-'))+ roots.push(root)+ const script = path.join(root, 'sidecar')+ await writeFile(script, `#!/bin/sh\n${source}\n`)+ await chmod(script, 0o700)+ return script+ }++ async function rejectedError(operation: Promise<unknown>): Promise<Error> {+ let caught: unknown+ try {+ await operation+ } catch (error) {+ caught = error+ }+ if (!(caught instanceof Error))+ throw new Error('operation did not reject')+ return caught+ }++ it('stays fail-closed after the sidecar exits', async () => {+ const adapter = new NativeFinalizeFilesystemAdapter(+ await executable('exit 23'),+ { requestTimeoutMs: 1_000 }+ )++ const first = await rejectedError(adapter.capabilities())+ expect(first).toBeInstanceOf(Error)+ const second = await rejectedError(+ adapter.openRoot(path.parse(process.cwd()).root)+ )+ expect(second).toBe(first)+ await adapter.dispose()+ })++ it('times out a wedged request and rejects later requests immediately', async () => {+ const adapter = new NativeFinalizeFilesystemAdapter(+ await executable('while :; do sleep 1; done'),+ { requestTimeoutMs: 50 }+ )++ const first = await rejectedError(adapter.capabilities())+ expect(first.message).toContain('timed out after 50ms')+ const second = await rejectedError(+ adapter.openRoot(path.parse(process.cwd()).root)+ )+ expect(second).toBe(first)+ await adapter.dispose()+ })+ }+)diff --git a/src/core/plugin/finalize/filesystem-adapter.ts b/src/core/plugin/finalize/filesystem-adapter.tsnew file mode 100644index 00000000..84e2bba0--- /dev/null+++ b/src/core/plugin/finalize/filesystem-adapter.ts@@ -0,0 +1,340 @@+import { type ChildProcessWithoutNullStreams, spawn } from 'node:child_process'+import path from 'node:path'++export type FinalizeFsErrorCode =+ | 'unsupported'+ | 'target_exists'+ | 'not_found'+ | 'invalid_path'+ | 'invalid_handle'+ | 'permission_denied'+ | 'cross_device'+ | 'symlink_rejected'+ | 'io_error'++export class FinalizeFsError extends Error {+ constructor(+ readonly code: FinalizeFsErrorCode,+ message: string+ ) {+ super(message)+ this.name = 'FinalizeFsError'+ }+}++export interface FinalizeFsCapabilities {+ platform: string+ renameNoReplace: boolean+ heldRoots: boolean+ directorySync: boolean+ heldArtifacts: boolean+}++interface WireResponse {+ request_id?: number+ status: 'ok' | 'error'+ handle?: number+ code?: FinalizeFsErrorCode+ message?: string+ platform?: string+ rename_no_replace?: boolean+ held_roots?: boolean+ directory_sync?: boolean+ held_artifacts?: boolean+}++interface PendingRequest {+ resolve: (value: WireResponse) => void+ reject: (error: Error) => void+ timeout: NodeJS.Timeout+}++export interface NativeFinalizeFilesystemAdapterOptions {+ requestTimeoutMs?: number+}++export interface FinalizeRootHandle {+ readonly id: number+}++export interface FinalizeArtifactHandle {+ readonly id: number+}++export interface FinalizeFilesystemAdapter {+ capabilities(): Promise<FinalizeFsCapabilities>+ openRoot(rootPath: string): Promise<FinalizeRootHandle>+ openArtifact(+ root: FinalizeRootHandle,+ relativePath: string+ ): Promise<FinalizeArtifactHandle>+ renameOpenedNoReplace(+ artifact: FinalizeArtifactHandle,+ targetRoot: FinalizeRootHandle,+ targetRelative: string+ ): Promise<void>+ copyOpened(+ artifact: FinalizeArtifactHandle,+ targetRoot: FinalizeRootHandle,+ targetRelative: string+ ): Promise<void>+ renameNoReplace(+ sourceRoot: FinalizeRootHandle,+ sourceRelative: string,+ targetRoot: FinalizeRootHandle,+ targetRelative: string+ ): Promise<void>+ removeOpened(+ artifact: FinalizeArtifactHandle,+ quarantineRelative: string,+ resumeIsolated: boolean+ ): Promise<void>+ syncRoot(root: FinalizeRootHandle): Promise<void>+ close(root: FinalizeRootHandle | FinalizeArtifactHandle): Promise<void>+ dispose(): Promise<void>+}++export class NativeFinalizeFilesystemAdapter+ implements FinalizeFilesystemAdapter+{+ private readonly child: ChildProcessWithoutNullStreams+ private nextRequestId = 1+ private incoming = Buffer.alloc(0)+ private readonly pending = new Map<number, PendingRequest>()+ private readonly requestTimeoutMs: number+ private deadError: Error | null = null++ constructor(+ binaryPath: string,+ options: NativeFinalizeFilesystemAdapterOptions = {}+ ) {+ this.requestTimeoutMs = options.requestTimeoutMs ?? 30_000+ if (+ !Number.isSafeInteger(this.requestTimeoutMs) ||+ this.requestTimeoutMs <= 0+ )+ throw new Error('finalize sidecar request timeout must be positive')+ this.child = spawn(binaryPath, [], { stdio: ['pipe', 'pipe', 'pipe'] })+ this.child.stdout.on('data', (chunk: Buffer) => this.receive(chunk))+ this.child.stderr.resume()+ this.child.stdin.once('error', (error) => this.markDead(error))+ this.child.once('error', (error) => this.markDead(error))+ this.child.once('exit', (code) =>+ this.markDead(new Error(`finalize filesystem sidecar exited: ${code}`))+ )+ }++ async capabilities(): Promise<FinalizeFsCapabilities> {+ const response = await this.request({ op: 'capabilities' }, false)+ return {+ platform: response.platform ?? 'unknown',+ renameNoReplace: response.rename_no_replace === true,+ heldRoots: response.held_roots === true,+ directorySync: response.directory_sync === true,+ heldArtifacts: response.held_artifacts === true,+ }+ }++ async openArtifact(+ root: FinalizeRootHandle,+ relativePath: string+ ): Promise<FinalizeArtifactHandle> {+ const response = await this.request({+ op: 'open_artifact',+ root: root.id,+ relative: relativePath,+ })+ if (response.handle === undefined) {+ throw new Error('sidecar omitted artifact handle')+ }+ return Object.freeze({ id: response.handle })+ }++ async renameOpenedNoReplace(+ artifact: FinalizeArtifactHandle,+ targetRoot: FinalizeRootHandle,+ targetRelative: string+ ): Promise<void> {+ await this.request({+ op: 'rename_opened_no_replace',+ artifact: artifact.id,+ target_root: targetRoot.id,+ target_relative: targetRelative,+ })+ }++ async copyOpened(+ artifact: FinalizeArtifactHandle,+ targetRoot: FinalizeRootHandle,+ targetRelative: string+ ): Promise<void> {+ await this.request({+ op: 'copy_opened',+ artifact: artifact.id,+ target_root: targetRoot.id,+ target_relative: targetRelative,+ })+ }++ async openRoot(rootPath: string): Promise<FinalizeRootHandle> {+ if (!path.isAbsolute(rootPath)) {+ throw new FinalizeFsError('invalid_path', 'root path must be absolute')+ }+ const response = await this.request({ op: 'open_root', path: rootPath })+ if (response.handle === undefined)+ throw new Error('sidecar omitted root handle')+ return Object.freeze({ id: response.handle })+ }++ async renameNoReplace(+ sourceRoot: FinalizeRootHandle,+ sourceRelative: string,+ targetRoot: FinalizeRootHandle,+ targetRelative: string+ ): Promise<void> {+ await this.request({+ op: 'rename_no_replace',+ source_root: sourceRoot.id,+ source_relative: sourceRelative,+ target_root: targetRoot.id,+ target_relative: targetRelative,+ })+ }++ async removeOpened(+ artifact: FinalizeArtifactHandle,+ quarantineRelative: string,+ resumeIsolated: boolean+ ): Promise<void> {+ await this.request({+ op: 'remove_opened',+ artifact: artifact.id,+ quarantine_relative: quarantineRelative,+ resume_isolated: resumeIsolated,+ })+ }++ async syncRoot(root: FinalizeRootHandle): Promise<void> {+ await this.request({ op: 'sync_root', root: root.id })+ }++ async close(+ root: FinalizeRootHandle | FinalizeArtifactHandle+ ): Promise<void> {+ await this.request({ op: 'close', handle: root.id })+ }++ async dispose(): Promise<void> {+ if (this.deadError) {+ if (this.child.exitCode === null && this.child.signalCode === null)+ this.child.kill()+ return+ }+ if (this.child.exitCode !== null || this.child.signalCode !== null) return+ this.child.stdin.end()+ await new Promise<void>((resolve) => {+ const timeout = setTimeout(() => {+ this.child.kill()+ resolve()+ }, this.requestTimeoutMs)+ timeout.unref()+ this.child.once('exit', () => {+ clearTimeout(timeout)+ resolve()+ })+ })+ }++ private async request(+ body: Record<string, unknown>,+ includeRequestId = true+ ): Promise<WireResponse> {+ if (this.deadError) throw this.deadError+ const requestId = this.nextRequestId+++ const payload = Buffer.from(+ JSON.stringify(+ includeRequestId ? { ...body, request_id: requestId } : body+ )+ )+ if (payload.length > 64 * 1024)+ throw new Error('finalize sidecar request too large')+ const frame = Buffer.allocUnsafe(payload.length + 4)+ frame.writeUInt32LE(payload.length)+ payload.copy(frame, 4)+ const response = new Promise<WireResponse>((resolve, reject) => {+ const key = includeRequestId ? requestId : 0+ const timeout = setTimeout(() => {+ const error = new Error(+ `finalize filesystem sidecar request timed out after ${this.requestTimeoutMs}ms`+ )+ this.markDead(error)+ this.child.kill()+ }, this.requestTimeoutMs)+ timeout.unref()+ this.pending.set(key, { resolve, reject, timeout })+ })+ this.child.stdin.write(frame, (error) => {+ if (error) this.markDead(error)+ })+ const result = await response+ if (result.status === 'error') {+ throw new FinalizeFsError(+ result.code ?? 'io_error',+ result.message ?? 'finalize filesystem operation failed'+ )+ }+ return result+ }++ private receive(chunk: Buffer): void {+ this.incoming = Buffer.concat([this.incoming, chunk])+ while (this.incoming.length >= 4) {+ const length = this.incoming.readUInt32LE(0)+ if (length > 64 * 1024) {+ this.markDead(new Error('finalize sidecar response too large'))+ this.child.kill()+ return+ }+ if (this.incoming.length < length + 4) return+ const payload = this.incoming.subarray(4, length + 4)+ this.incoming = this.incoming.subarray(length + 4)+ let response: WireResponse+ try {+ response = JSON.parse(payload.toString('utf8')) as WireResponse+ } catch (error) {+ this.markDead(error as Error)+ this.child.kill()+ return+ }+ const key = response.request_id ?? 0+ const pending = this.pending.get(key)+ if (!pending) {+ if (response.request_id === undefined && this.pending.size > 0) {+ this.markDead(+ new FinalizeFsError(+ response.code ?? 'io_error',+ response.message ?? 'unattributed finalize sidecar response'+ )+ )+ this.child.kill()+ return+ }+ continue+ }+ this.pending.delete(key)+ clearTimeout(pending.timeout)+ pending.resolve(response)+ }+ }++ private markDead(error: Error): void {+ if (!this.deadError) this.deadError = error+ for (const pending of this.pending.values()) {+ clearTimeout(pending.timeout)+ pending.reject(this.deadError)+ }+ this.pending.clear()+ if (this.child.exitCode === null && this.child.signalCode === null)+ this.child.kill()+ }+}diff --git a/src/core/plugin/finalize/finalize-committer.test.ts b/src/core/plugin/finalize/finalize-committer.test.tsnew file mode 100644index 00000000..e9da4a06--- /dev/null+++ b/src/core/plugin/finalize/finalize-committer.test.ts@@ -0,0 +1,231 @@+import { describe, expect, it, vi } from 'vitest'+import {+ type ArtifactIdentity,+ artifactContentEquals,+ artifactIdentityEquals,+} from './artifact-identity'+import { ArtifactMutationLeaseCoordinator } from './artifact-mutation-lease'+import {+ type FinalizeArtifactOperations,+ FinalizeCommitter,+ type FinalizeJournalPhase,+ type FinalizeJournalRecord,+ type FinalizeJournalRepository,+} from './finalize-committer'+import type { HookPlan } from './hook-plan'++const sourceIdentity: ArtifactIdentity = {+ kind: 'file',+ size: 6,+ sha256: 'a'.repeat(64),+ platformFileId: '1:1',+}+const replacementIdentity: ArtifactIdentity = {+ kind: 'file',+ size: 11,+ sha256: 'b'.repeat(64),+ platformFileId: '1:2',+}++function makePlan(replacement = false): HookPlan {+ return {+ planId: 'plan-1',+ taskId: 'task-1',+ saveDir: '/save',+ sourcePath: '/save/source.motrix',+ targetPath: '/save/final.bin',+ sourceIdentity,+ replacement: replacement+ ? {+ pluginId: 'plugin.transcoder',+ stagedPath: '/plugins/plugin.transcoder/staging/task-1/final.bin',+ identity: replacementIdentity,+ }+ : undefined,+ metadataOps: [],+ contributors: replacement ? ['plugin.transcoder'] : [],+ }+}++class FakeFilesystem implements FinalizeArtifactOperations {+ readonly artifacts = new Map<string, ArtifactIdentity>()+ readonly actions: string[] = []++ async identity(artifactPath: string): Promise<ArtifactIdentity | null> {+ return this.artifacts.get(artifactPath) ?? null+ }+ async sameFilesystem(): Promise<boolean> {+ return true+ }+ async materializePrivate(+ sourcePath: string,+ expected: ArtifactIdentity,+ privateTargetPath: string+ ): Promise<ArtifactIdentity> {+ this.actions.push(`copy:${sourcePath}->${privateTargetPath}`)+ if (this.artifacts.has(privateTargetPath)) throw new Error('target exists')+ const copy = {+ ...expected,+ platformFileId: `copy:${expected.platformFileId}`,+ }+ this.artifacts.set(privateTargetPath, copy)+ return copy+ }+ async moveNoReplace(+ sourcePath: string,+ _expected: ArtifactIdentity,+ targetPath: string+ ): Promise<void> {+ this.actions.push(`move:${sourcePath}->${targetPath}`)+ if (this.artifacts.has(targetPath)) throw new Error('target exists')+ const value = this.artifacts.get(sourcePath)+ if (!value) throw new Error('source missing')+ this.artifacts.delete(sourcePath)+ this.artifacts.set(targetPath, value)+ }+ async makeDurable(artifactPath: string): Promise<void> {+ this.actions.push(`durable:${artifactPath}`)+ }+ async removeKnown(+ artifactPath: string,+ _expected: ArtifactIdentity+ ): Promise<void> {+ this.actions.push(`remove:${artifactPath}`)+ this.artifacts.delete(artifactPath)+ }+}++function makeRepository(commitError?: Error): {+ repository: FinalizeJournalRepository+ phases: FinalizeJournalPhase[]+ quarantines: string[]+} {+ const phases: FinalizeJournalPhase[] = []+ const quarantines: string[] = []+ return {+ phases,+ quarantines,+ repository: {+ prepare: async () => void phases.push('prepared'),+ checkpoint: async () => undefined,+ advance: async (_id, phase) => void phases.push(phase),+ commitTerminal: async () => {+ if (commitError) throw commitError+ phases.push('db_committed')+ },+ quarantine: async (_id, reason) => void quarantines.push(reason),+ listRecoverable: async (): Promise<FinalizeJournalRecord[]> => [],+ },+ }+}++function makeCommitter(+ fs: FakeFilesystem,+ repository: FinalizeJournalRepository+): FinalizeCommitter {+ return new FinalizeCommitter({+ fs,+ repository,+ leases: new ArtifactMutationLeaseCoordinator([]),+ privatePathFor: () => '/save/.motrix-private-plan-1',+ rollbackPathFor: () => '/save/.motrix-rollback-plan-1',+ exactIdentity: artifactIdentityEquals,+ sameContent: artifactContentEquals,+ })+}++describe('FinalizeCommitter', () => {+ it('installs a replacement and never renames the original over it', async () => {+ const fs = new FakeFilesystem()+ const plan = makePlan(true)+ fs.artifacts.set(plan.sourcePath, sourceIdentity)+ fs.artifacts.set(plan.replacement?.stagedPath ?? '', replacementIdentity)+ const { repository, phases } = makeRepository()+ await makeCommitter(fs, repository).commit(plan)+ expect(fs.artifacts.get(plan.targetPath)).toMatchObject({+ sha256: replacementIdentity.sha256,+ })+ expect(fs.artifacts.has(plan.sourcePath)).toBe(false)+ expect(fs.artifacts.has(plan.replacement?.stagedPath ?? '')).toBe(false)+ expect(fs.actions).not.toContain(+ `move:${plan.sourcePath}->${plan.targetPath}`+ )+ expect(phases).toEqual([+ 'prepared',+ 'target_staged',+ 'target_installed',+ 'db_committed',+ 'cleaned',+ ])+ })++ it('does not overwrite a target that appears before install', async () => {+ const fs = new FakeFilesystem()+ const plan = makePlan()+ fs.artifacts.set(plan.sourcePath, sourceIdentity)+ const unrelated: ArtifactIdentity = {+ ...sourceIdentity,+ sha256: 'f'.repeat(64),+ platformFileId: '1:99',+ }+ fs.artifacts.set(plan.targetPath, unrelated)+ const { repository } = makeRepository()+ await expect(makeCommitter(fs, repository).commit(plan)).rejects.toThrow(+ 'quarantined'+ )+ expect(fs.artifacts.get(plan.targetPath)).toBe(unrelated)+ expect(fs.artifacts.get(plan.sourcePath)).toBe(sourceIdentity)+ })++ it('compensates an installed target when the atomic database commit fails', async () => {+ const fs = new FakeFilesystem()+ const plan = makePlan()+ fs.artifacts.set(plan.sourcePath, sourceIdentity)+ const { repository } = makeRepository(new Error('db unavailable'))+ await expect(makeCommitter(fs, repository).commit(plan)).rejects.toThrow(+ 'db unavailable'+ )+ expect(fs.artifacts.has(plan.targetPath)).toBe(false)+ expect(fs.artifacts.get(plan.sourcePath)).toBe(sourceIdentity)+ })++ it('quarantines an identity mismatch without deleting unknown bytes', async () => {+ const fs = new FakeFilesystem()+ const plan = makePlan()+ fs.artifacts.set(plan.sourcePath, {+ ...sourceIdentity,+ sha256: 'c'.repeat(64),+ })+ const { repository, quarantines } = makeRepository()+ await expect(makeCommitter(fs, repository).commit(plan)).rejects.toThrow(+ 'quarantined'+ )+ expect(quarantines).toHaveLength(1)+ expect(fs.actions.some((action) => action.startsWith('remove:'))).toBe(+ false+ )+ })++ it('does not release the lease until cleanup finishes', async () => {+ const resume = vi.fn()+ const fs = new FakeFilesystem()+ const plan = makePlan()+ fs.artifacts.set(plan.sourcePath, sourceIdentity)+ const { repository } = makeRepository()+ const leases = new ArtifactMutationLeaseCoordinator([+ { quiesce: async () => resume },+ ])+ const committer = new FinalizeCommitter({+ fs,+ repository,+ leases,+ privatePathFor: () => '/save/.private',+ rollbackPathFor: () => '/save/.rollback',+ exactIdentity: artifactIdentityEquals,+ sameContent: artifactContentEquals,+ })+ await committer.commit(plan)+ expect(resume).toHaveBeenCalledOnce()+ expect(leases.isHeld(plan.taskId)).toBe(false)+ })+})diff --git a/src/core/plugin/finalize/finalize-committer.ts b/src/core/plugin/finalize/finalize-committer.tsnew file mode 100644index 00000000..d627634b--- /dev/null+++ b/src/core/plugin/finalize/finalize-committer.ts@@ -0,0 +1,445 @@+import { createHash } from 'node:crypto'+import path from 'node:path'+import type { ArtifactIdentity } from './artifact-identity'+import type {+ ArtifactMutationLease,+ ArtifactMutationLeaseCoordinator,+} from './artifact-mutation-lease'+import { assertValidHookPlan, type HookPlan } from './hook-plan'++export type FinalizeJournalPhase =+ | 'prepared'+ | 'target_staged'+ | 'source_preserved'+ | 'target_installed'+ | 'db_committed'+ | 'cleaned'++export interface FinalizeJournalRecord {+ journalId: string+ phase: FinalizeJournalPhase+ plan: HookPlan+ privateTargetPath?: string+ privateTargetIdentity?: ArtifactIdentity+ targetIdentity?: ArtifactIdentity+ rollbackPath?: string+ removalIntent?: FinalizeRemovalIntent+ quarantineReason?: string+}++export interface FinalizeRemovalIntent {+ artifactPath: string+ quarantinePath: string+ identity: ArtifactIdentity+}++export interface FinalizeJournalRepository {+ prepare(record: FinalizeJournalRecord): Promise<void>+ checkpoint(+ journalId: string,+ patch: Partial<+ Pick<+ FinalizeJournalRecord,+ | 'privateTargetPath'+ | 'privateTargetIdentity'+ | 'targetIdentity'+ | 'rollbackPath'+ | 'removalIntent'+ >+ >+ ): Promise<void>+ advance(+ journalId: string,+ phase: FinalizeJournalPhase,+ patch?: Partial<+ Pick<+ FinalizeJournalRecord,+ | 'privateTargetPath'+ | 'privateTargetIdentity'+ | 'targetIdentity'+ | 'rollbackPath'+ | 'quarantineReason'+ >+ >+ ): Promise<void>+ commitTerminal(record: FinalizeJournalRecord): Promise<void>+ quarantine(journalId: string, reason: string): Promise<void>+ listRecoverable(): Promise<FinalizeJournalRecord[]>+}++export interface FinalizeArtifactOperations {+ identity(artifactPath: string): Promise<ArtifactIdentity | null>+ sameFilesystem(leftPath: string, rightPath: string): Promise<boolean>+ materializePrivate(+ sourcePath: string,+ expected: ArtifactIdentity,+ privateTargetPath: string+ ): Promise<ArtifactIdentity>+ moveNoReplace(+ sourcePath: string,+ expected: ArtifactIdentity,+ targetPath: string+ ): Promise<void>+ makeDurable(artifactPath: string): Promise<void>+ removeKnown(+ artifactPath: string,+ expected: ArtifactIdentity,+ quarantinePath: string+ ): Promise<void>+}++export interface FinalizeCommitResult {+ journalId: string+ targetPath: string+ targetIdentity: ArtifactIdentity+ cleanupPending?: boolean+}++export class FinalizeQuarantinedError extends Error {+ constructor(+ readonly journalId: string,+ readonly reason: string,+ options?: ErrorOptions+ ) {+ super(`finalize journal ${journalId} quarantined: ${reason}`, options)+ this.name = 'FinalizeQuarantinedError'+ }+}++export interface FinalizeCommitterOptions {+ leases: ArtifactMutationLeaseCoordinator+ repository: FinalizeJournalRepository+ fs: FinalizeArtifactOperations+ privatePathFor(plan: HookPlan): string+ rollbackPathFor(plan: HookPlan): string+ exactIdentity(left: ArtifactIdentity, right: ArtifactIdentity): boolean+ sameContent(left: ArtifactIdentity, right: ArtifactIdentity): boolean+}++export class FinalizeCommitter {+ constructor(private readonly options: FinalizeCommitterOptions) {}++ async commit(+ plan: HookPlan,+ existingLease?: ArtifactMutationLease+ ): Promise<FinalizeCommitResult> {+ assertValidHookPlan(plan)+ const lease =+ existingLease ?? (await this.options.leases.acquire(plan.taskId))+ const ownsLease = existingLease === undefined+ const record: FinalizeJournalRecord = {+ journalId: plan.planId,+ phase: 'prepared',+ plan,+ }+ try {+ await this.requireExactIdentity(+ plan.sourcePath,+ plan.sourceIdentity,+ record+ )+ if (plan.replacement) {+ await this.requireExactIdentity(+ plan.replacement.stagedPath,+ plan.replacement.identity,+ record+ )+ }+ await this.options.repository.prepare(record)+ return await this.commitPrepared(record, lease)+ } catch (error) {+ if (error instanceof FinalizeQuarantinedError) throw error+ await this.compensate(record, lease, error)+ throw error+ } finally {+ if (ownsLease) await lease.release()+ }+ }++ private async commitPrepared(+ record: FinalizeJournalRecord,+ _lease: ArtifactMutationLease+ ): Promise<FinalizeCommitResult> {+ const { plan } = record+ const selectedPath = plan.replacement?.stagedPath ?? plan.sourcePath+ const selectedIdentity = plan.replacement?.identity ?? plan.sourceIdentity+ const samePath = finalizePathsEquivalent(plan.sourcePath, plan.targetPath)++ if (samePath && !plan.replacement) {+ await this.requireExactIdentity(+ plan.sourcePath,+ plan.sourceIdentity,+ record+ )+ await this.options.fs.makeDurable(plan.sourcePath)+ } else {+ if (samePath) {+ record.rollbackPath = this.options.rollbackPathFor(plan)+ await this.options.repository.checkpoint(record.journalId, {+ rollbackPath: record.rollbackPath,+ })+ await this.options.fs.moveNoReplace(+ plan.sourcePath,+ plan.sourceIdentity,+ record.rollbackPath+ )+ await this.options.fs.makeDurable(record.rollbackPath)+ await this.options.repository.advance(+ record.journalId,+ 'source_preserved',+ { rollbackPath: record.rollbackPath }+ )+ record.phase = 'source_preserved'+ }++ record.privateTargetPath = this.options.privatePathFor(plan)+ await this.options.repository.checkpoint(record.journalId, {+ privateTargetPath: record.privateTargetPath,+ rollbackPath: record.rollbackPath,+ })+ const privateIdentity = await this.options.fs.materializePrivate(+ selectedPath,+ selectedIdentity,+ record.privateTargetPath+ )+ if (!this.options.sameContent(privateIdentity, selectedIdentity)) {+ await this.quarantine(record, 'private target identity mismatch')+ }+ record.privateTargetIdentity = privateIdentity+ await this.options.fs.makeDurable(record.privateTargetPath)+ await this.options.repository.advance(record.journalId, 'target_staged', {+ privateTargetPath: record.privateTargetPath,+ privateTargetIdentity: privateIdentity,+ rollbackPath: record.rollbackPath,+ })+ record.phase = 'target_staged'++ await this.requireExactIdentity(+ record.privateTargetPath,+ privateIdentity,+ record+ )+ await this.options.fs.moveNoReplace(+ record.privateTargetPath,+ privateIdentity,+ plan.targetPath+ )+ await this.options.fs.makeDurable(plan.targetPath)+ }++ const targetIdentity = await this.requireExactIdentity(+ plan.targetPath,+ samePath && !plan.replacement+ ? plan.sourceIdentity+ : (record.privateTargetIdentity as ArtifactIdentity),+ record+ )+ record.targetIdentity = targetIdentity+ await this.options.repository.advance(+ record.journalId,+ 'target_installed',+ {+ targetIdentity,+ }+ )+ record.phase = 'target_installed'+ await this.requireExactIdentity(plan.targetPath, targetIdentity, record)++ await this.options.repository.commitTerminal(record)+ record.phase = 'db_committed'+ let cleanupPending = false+ try {+ if (!samePath) {+ await this.requireExactIdentity(+ plan.sourcePath,+ plan.sourceIdentity,+ record+ )+ await this.removeTracked(record, plan.sourcePath, plan.sourceIdentity)+ }+ if (record.rollbackPath) {+ await this.requireExactIdentity(+ record.rollbackPath,+ plan.sourceIdentity,+ record+ )+ await this.removeTracked(+ record,+ record.rollbackPath,+ plan.sourceIdentity+ )+ }+ if (plan.replacement) {+ await this.requireExactIdentity(+ plan.replacement.stagedPath,+ plan.replacement.identity,+ record+ )+ await this.removeTracked(+ record,+ plan.replacement.stagedPath,+ plan.replacement.identity+ )+ }+ await this.options.repository.advance(record.journalId, 'cleaned')+ record.phase = 'cleaned'+ } catch {+ // The user-visible target and database already committed. Leave the+ // journal at db_committed so startup recovery can retry only cleanup.+ cleanupPending = true+ }+ return {+ journalId: record.journalId,+ targetPath: plan.targetPath,+ targetIdentity,+ ...(cleanupPending ? { cleanupPending: true } : {}),+ }+ }++ private async compensate(+ record: FinalizeJournalRecord,+ _lease: ArtifactMutationLease,+ cause: unknown+ ): Promise<void> {+ if (record.phase === 'db_committed' || record.phase === 'cleaned') return+ try {+ const installedIdentity =+ record.targetIdentity ?? record.privateTargetIdentity+ const target = await this.options.fs.identity(record.plan.targetPath)+ if (+ target &&+ installedIdentity &&+ this.options.exactIdentity(target, installedIdentity)+ ) {+ await this.removeTracked(+ record,+ record.plan.targetPath,+ installedIdentity+ )+ } else if (target) {+ await this.quarantine(record, 'compensation target identity mismatch')+ }+ if (record.rollbackPath) {+ await this.requireExactIdentity(+ record.rollbackPath,+ record.plan.sourceIdentity,+ record+ )+ await this.options.fs.moveNoReplace(+ record.rollbackPath,+ record.plan.sourceIdentity,+ record.plan.sourcePath+ )+ await this.options.fs.makeDurable(record.plan.sourcePath)+ }+ if (record.privateTargetPath) {+ const privateTarget = await this.options.fs.identity(+ record.privateTargetPath+ )+ if (privateTarget) {+ const expectedPrivate = record.privateTargetIdentity+ const selected =+ record.plan.replacement?.identity ?? record.plan.sourceIdentity+ if (+ expectedPrivate+ ? !this.options.exactIdentity(privateTarget, expectedPrivate)+ : !this.options.sameContent(privateTarget, selected)+ ) {+ await this.quarantine(+ record,+ 'compensation private target identity mismatch'+ )+ }+ await this.removeTracked(+ record,+ record.privateTargetPath,+ expectedPrivate ?? privateTarget+ )+ }+ }+ } catch (compensationError) {+ await this.options.repository.quarantine(+ record.journalId,+ `compensation failed after ${String(cause)}: ${String(compensationError)}`+ )+ throw new FinalizeQuarantinedError(+ record.journalId,+ 'compensation failed',+ { cause: compensationError }+ )+ }+ }++ private async requireExactIdentity(+ artifactPath: string,+ expected: ArtifactIdentity,+ record: FinalizeJournalRecord+ ): Promise<ArtifactIdentity> {+ const actual = await this.options.fs.identity(artifactPath)+ if (!actual || !this.options.exactIdentity(actual, expected)) {+ await this.quarantine(record, `identity mismatch at ${artifactPath}`)+ }+ return actual as ArtifactIdentity+ }++ private async removeTracked(+ record: FinalizeJournalRecord,+ artifactPath: string,+ identity: ArtifactIdentity+ ): Promise<void> {+ const removalIntent: FinalizeRemovalIntent = {+ artifactPath,+ quarantinePath: removalQuarantinePath(record.journalId, artifactPath),+ identity,+ }+ record.removalIntent = removalIntent+ await this.options.repository.checkpoint(record.journalId, {+ removalIntent,+ })+ await this.options.fs.removeKnown(+ artifactPath,+ identity,+ removalIntent.quarantinePath+ )+ record.removalIntent = undefined+ await this.options.repository.checkpoint(record.journalId, {+ removalIntent: undefined,+ })+ }++ private async quarantine(+ record: FinalizeJournalRecord,+ reason: string+ ): Promise<never> {+ await this.options.repository.quarantine(record.journalId, reason)+ throw new FinalizeQuarantinedError(record.journalId, reason)+ }+}++export function removalQuarantinePath(+ journalId: string,+ artifactPath: string+): string {+ const digest = createHash('sha256')+ .update(journalId)+ .update('\0')+ .update(path.resolve(artifactPath))+ .digest('hex')+ .slice(0, 32)+ return path.join(+ path.dirname(artifactPath),+ `.motrix-finalize-remove-${digest}`+ )+}++export function finalizePathsEquivalent(+ left: string,+ right: string,+ platform: NodeJS.Platform = process.platform+): boolean {+ const normalizedLeft = path.resolve(left)+ const normalizedRight = path.resolve(right)+ return platform === 'win32'+ ? normalizedLeft.toLowerCase() === normalizedRight.toLowerCase()+ : normalizedLeft === normalizedRight+}diff --git a/src/core/plugin/finalize/finalize-recovery.test.ts b/src/core/plugin/finalize/finalize-recovery.test.tsnew file mode 100644index 00000000..dd007925--- /dev/null+++ b/src/core/plugin/finalize/finalize-recovery.test.ts@@ -0,0 +1,327 @@+import { describe, expect, it, vi } from 'vitest'+import {+ type ArtifactIdentity,+ artifactContentEquals,+ artifactIdentityEquals,+} from './artifact-identity'+import { ArtifactMutationLeaseCoordinator } from './artifact-mutation-lease'+import type {+ FinalizeArtifactOperations,+ FinalizeJournalRecord,+ FinalizeJournalRepository,+} from './finalize-committer'+import { finalizePathsEquivalent } from './finalize-committer'+import { FinalizeRecovery } from './finalize-recovery'++const sourceIdentity: ArtifactIdentity = {+ kind: 'file',+ size: 4,+ sha256: 'a'.repeat(64),+ platformFileId: '1:1',+}+const targetIdentity: ArtifactIdentity = {+ ...sourceIdentity,+ platformFileId: '1:2',+}++function record(phase: FinalizeJournalRecord['phase']): FinalizeJournalRecord {+ return {+ journalId: 'journal-1',+ phase,+ plan: {+ planId: 'journal-1',+ taskId: 'task-1',+ saveDir: '/save',+ sourcePath: '/save/source',+ targetPath: '/save/target',+ sourceIdentity,+ metadataOps: [],+ contributors: [],+ },+ targetIdentity,+ }+}++function fixture(+ initial: Record<string, ArtifactIdentity>,+ options: {+ recoverable?: FinalizeJournalRecord[]+ rollForwardTargetInstalled?: boolean+ } = {}+) {+ const artifacts = new Map(Object.entries(initial))+ const phases: string[] = []+ const quarantines: string[] = []+ const repository: FinalizeJournalRepository = {+ prepare: vi.fn(),+ checkpoint: vi.fn(),+ advance: async (_id, phase) => void phases.push(phase),+ commitTerminal: async () => void phases.push('db_committed'),+ quarantine: async (_id, reason) => void quarantines.push(reason),+ listRecoverable: async () => options.recoverable ?? [],+ }+ const fs: FinalizeArtifactOperations = {+ identity: async (artifactPath) => artifacts.get(artifactPath) ?? null,+ sameFilesystem: async () => true,+ materializePrivate: async () => {+ throw new Error('not used')+ },+ moveNoReplace: async (source, _expected, target) => {+ if (artifacts.has(target)) throw new Error('target exists')+ const value = artifacts.get(source)+ if (!value) throw new Error('source missing')+ artifacts.delete(source)+ artifacts.set(target, value)+ },+ makeDurable: async () => {},+ removeKnown: async (artifactPath, expected, quarantinePath) => {+ const original = artifacts.get(artifactPath)+ const quarantined = artifacts.get(quarantinePath)+ if (original && quarantined) throw new Error('both removal names exist')+ const selected = original ?? quarantined+ if (selected && !artifactIdentityEquals(selected, expected)) {+ throw new Error('removal identity mismatch')+ }+ if (original) artifacts.delete(artifactPath)+ if (quarantined) artifacts.delete(quarantinePath)+ },+ }+ const recovery = new FinalizeRecovery({+ repository,+ fs,+ leases: new ArtifactMutationLeaseCoordinator([]),+ exactIdentity: artifactIdentityEquals,+ sameContent: artifactContentEquals,+ rollForwardTargetInstalled: options.rollForwardTargetInstalled,+ })+ return { artifacts, phases, quarantines, recovery }+}++describe('FinalizeRecovery', () => {+ it('finishes the atomic DB transaction from a verified installed target', async () => {+ const state = fixture({+ '/save/source': sourceIdentity,+ '/save/target': targetIdentity,+ })+ await state.recovery.recover(record('target_installed'))+ expect(state.phases).toEqual(['db_committed', 'cleaned'])+ expect(state.artifacts.has('/save/source')).toBe(false)+ expect(state.artifacts.get('/save/target')).toBe(targetIdentity)+ })++ it('quarantines a committed target mismatch without deleting bytes', async () => {+ const unknown = { ...targetIdentity, sha256: 'f'.repeat(64) }+ const state = fixture({ '/save/target': unknown })+ await expect(+ state.recovery.recover(record('db_committed'))+ ).rejects.toThrow('quarantined')+ expect(state.quarantines).toEqual(['committed target identity mismatch'])+ expect(state.artifacts.get('/save/target')).toBe(unknown)+ })++ it('never removes a committed target when source and target are the same path', async () => {+ const committed = record('db_committed')+ committed.plan.sourcePath = '/save/target'+ committed.plan.targetPath = '/save/target'+ committed.targetIdentity = sourceIdentity+ const state = fixture({ '/save/target': sourceIdentity })++ await state.recovery.recover(committed)++ expect(state.artifacts.get('/save/target')).toBe(sourceIdentity)+ expect(state.phases).toEqual(['cleaned'])+ })++ it('restores a preserved same-path source from target_staged', async () => {+ const staged = record('target_staged')+ staged.plan.sourcePath = '/save/target'+ staged.plan.targetPath = '/save/target'+ staged.plan.replacement = {+ pluginId: 'plugin.transcoder',+ stagedPath: '/plugins/staged',+ identity: targetIdentity,+ }+ staged.rollbackPath = '/save/.rollback'+ staged.privateTargetPath = '/save/.private'+ staged.privateTargetIdentity = targetIdentity+ staged.targetIdentity = undefined+ const state = fixture({+ '/save/.rollback': sourceIdentity,+ '/save/.private': targetIdentity,+ })++ await state.recovery.recover(staged)++ expect(state.artifacts.get('/save/target')).toBe(sourceIdentity)+ expect(state.artifacts.has('/save/.rollback')).toBe(false)+ expect(state.artifacts.has('/save/.private')).toBe(false)+ expect(state.phases).toEqual(['cleaned'])+ })++ it('compares Windows paths case-insensitively for recovery cleanup', () => {+ expect(+ finalizePathsEquivalent(+ 'C:\\Downloads\\Artifact.bin',+ 'c:\\downloads\\artifact.bin',+ 'win32'+ )+ ).toBe(true)+ })++ it('restores a source moved before the prepared journal phase advanced', async () => {+ const prepared = record('prepared')+ prepared.rollbackPath = '/save/.rollback'+ prepared.targetIdentity = undefined+ const state = fixture({ '/save/.rollback': sourceIdentity })++ await state.recovery.recover(prepared)++ expect(state.artifacts.get('/save/source')).toBe(sourceIdentity)+ expect(state.artifacts.has('/save/.rollback')).toBe(false)+ expect(state.phases).toEqual(['cleaned'])+ })++ it('rolls back a target moved before target_installed was journaled', async () => {+ const staged = record('target_staged')+ staged.privateTargetPath = '/save/.private'+ staged.privateTargetIdentity = targetIdentity+ staged.targetIdentity = undefined+ const state = fixture({+ '/save/source': sourceIdentity,+ '/save/target': targetIdentity,+ })++ await state.recovery.recover(staged)++ expect(state.artifacts.get('/save/source')).toBe(sourceIdentity)+ expect(state.artifacts.has('/save/target')).toBe(false)+ expect(state.phases).toEqual(['cleaned'])+ })++ it('removes replacement staging during committed cleanup', async () => {+ const committed = record('db_committed')+ committed.plan.replacement = {+ pluginId: 'plugin.transcoder',+ stagedPath: '/plugins/staged',+ identity: targetIdentity,+ }+ const state = fixture({+ '/save/target': targetIdentity,+ '/plugins/staged': targetIdentity,+ })++ await state.recovery.recover(committed)++ expect(state.artifacts.has('/plugins/staged')).toBe(false)+ expect(state.artifacts.get('/save/target')).toBe(targetIdentity)+ expect(state.phases).toEqual(['cleaned'])+ })++ it('preserves a same-path original when uncommitted recovery rolls back', async () => {+ const installed = record('target_installed')+ installed.plan.sourcePath = '/save/target'+ installed.plan.targetPath = '/save/target'+ installed.targetIdentity = sourceIdentity+ const state = fixture(+ { '/save/target': sourceIdentity },+ { rollForwardTargetInstalled: false }+ )++ await state.recovery.recover(installed)++ expect(state.artifacts.get('/save/target')).toBe(sourceIdentity)+ expect(state.phases).toEqual(['cleaned'])+ })++ it('quarantines a changed same-path original during rollback', async () => {+ const installed = record('target_installed')+ installed.plan.sourcePath = '/save/target'+ installed.plan.targetPath = '/save/target'+ installed.targetIdentity = sourceIdentity+ const unknown = { ...sourceIdentity, sha256: 'f'.repeat(64) }+ const state = fixture(+ { '/save/target': unknown },+ { rollForwardTargetInstalled: false }+ )++ await expect(state.recovery.recover(installed)).rejects.toThrow(+ 'quarantined'+ )++ expect(state.artifacts.get('/save/target')).toBe(unknown)+ expect(state.quarantines).toEqual([+ 'same-path original changed during recovery',+ ])+ })++ it('isolates a quarantined journal and continues recovering later rows', async () => {+ const corrupted = record('db_committed')+ const later = record('prepared')+ later.journalId = 'journal-2'+ later.plan = {+ ...later.plan,+ planId: 'journal-2',+ taskId: 'task-2',+ sourcePath: '/save/source-2',+ targetPath: '/save/target-2',+ }+ later.targetIdentity = undefined+ const unknown = { ...targetIdentity, sha256: 'f'.repeat(64) }+ const state = fixture(+ {+ '/save/target': unknown,+ '/save/source-2': sourceIdentity,+ },+ { recoverable: [corrupted, later] }+ )++ await state.recovery.recoverAll()++ expect(state.quarantines).toEqual(['committed target identity mismatch'])+ expect(state.phases).toEqual(['cleaned'])+ })++ it('resumes an exact persisted removal quarantine after a crash', async () => {+ const committed = record('db_committed')+ committed.removalIntent = {+ artifactPath: '/save/source',+ quarantinePath: '/save/.motrix-finalize-remove-persisted',+ identity: sourceIdentity,+ }+ const state = fixture({+ '/save/target': targetIdentity,+ '/save/.motrix-finalize-remove-persisted': sourceIdentity,+ })++ await state.recovery.recover(committed)++ expect(state.artifacts.has('/save/.motrix-finalize-remove-persisted')).toBe(+ false+ )+ expect(committed.removalIntent).toBeUndefined()+ expect(state.phases).toEqual(['cleaned'])+ })++ it('preserves and quarantines an unknown persisted removal object', async () => {+ const committed = record('db_committed')+ committed.removalIntent = {+ artifactPath: '/save/source',+ quarantinePath: '/save/.motrix-finalize-remove-persisted',+ identity: sourceIdentity,+ }+ const unknown = { ...sourceIdentity, sha256: 'f'.repeat(64) }+ const state = fixture({+ '/save/target': targetIdentity,+ '/save/.motrix-finalize-remove-persisted': unknown,+ })++ await expect(state.recovery.recover(committed)).rejects.toThrow(+ 'quarantined'+ )++ expect(state.artifacts.get('/save/.motrix-finalize-remove-persisted')).toBe(+ unknown+ )+ expect(state.quarantines[0]).toContain('persisted removal intent failed')+ })+})diff --git a/src/core/plugin/finalize/finalize-recovery.ts b/src/core/plugin/finalize/finalize-recovery.tsnew file mode 100644index 00000000..c34713c6--- /dev/null+++ b/src/core/plugin/finalize/finalize-recovery.ts@@ -0,0 +1,423 @@+import type { ArtifactMutationLeaseCoordinator } from './artifact-mutation-lease'+import {+ type FinalizeArtifactOperations,+ type FinalizeJournalRecord,+ type FinalizeJournalRepository,+ FinalizeQuarantinedError,+ finalizePathsEquivalent,+ removalQuarantinePath,+} from './finalize-committer'++export interface FinalizeRecoveryOptions {+ repository: FinalizeJournalRepository+ leases: ArtifactMutationLeaseCoordinator+ fs: FinalizeArtifactOperations+ exactIdentity: FinalizeRecoveryIdentityComparator+ sameContent: FinalizeRecoveryIdentityComparator+ /** Production may safely roll back a target whose task DB commit is absent. */+ rollForwardTargetInstalled?: boolean+}++export type FinalizeRecoveryIdentityComparator = (+ left: FinalizeJournalRecord['plan']['sourceIdentity'],+ right: FinalizeJournalRecord['plan']['sourceIdentity']+) => boolean++export class FinalizeRecovery {+ constructor(private readonly options: FinalizeRecoveryOptions) {}++ async recoverAll(): Promise<void> {+ const failures: unknown[] = []+ for (const record of await this.options.repository.listRecoverable()) {+ try {+ await this.recover(record)+ } catch (error) {+ if (!(error instanceof FinalizeQuarantinedError)) failures.push(error)+ }+ }+ if (failures.length > 0) {+ throw new AggregateError(failures, 'one or more finalize journals failed')+ }+ }++ async recover(record: FinalizeJournalRecord): Promise<void> {+ const lease = await this.options.leases.acquire(record.plan.taskId)+ try {+ if (record.quarantineReason) return+ await this.resumeRemovalIntent(record)+ const selected =+ record.plan.replacement?.identity ?? record.plan.sourceIdentity+ const installed = record.targetIdentity ?? selected+ const source = await this.options.fs.identity(record.plan.sourcePath)+ const target = await this.options.fs.identity(record.plan.targetPath)+ const rollback = record.rollbackPath+ ? await this.options.fs.identity(record.rollbackPath)+ : null+ const privateTarget = record.privateTargetPath+ ? await this.options.fs.identity(record.privateTargetPath)+ : null+ const replacement = record.plan.replacement+ ? await this.options.fs.identity(record.plan.replacement.stagedPath)+ : null++ if (record.phase === 'db_committed') {+ if (!target || !this.options.exactIdentity(target, installed)) {+ await this.quarantine(record, 'committed target identity mismatch')+ }+ await this.cleanup(record, source, rollback, privateTarget, replacement)+ return+ }++ if (record.phase === 'target_installed') {+ if (target && this.options.exactIdentity(target, installed)) {+ if (this.options.rollForwardTargetInstalled !== false) {+ await this.options.repository.commitTerminal(record)+ record.phase = 'db_committed'+ await this.cleanup(+ record,+ source,+ rollback,+ privateTarget,+ replacement+ )+ } else {+ await this.restore(+ record,+ target,+ rollback,+ privateTarget,+ replacement+ )+ }+ return+ }+ await this.restore(record, target, rollback, privateTarget, replacement)+ return+ }++ if (record.phase === 'source_preserved') {+ if (+ rollback &&+ this.options.exactIdentity(rollback, record.plan.sourceIdentity)+ ) {+ await this.restore(+ record,+ target,+ rollback,+ privateTarget,+ replacement+ )+ return+ }+ await this.quarantine(record, 'preserved source is missing or changed')+ }++ if (record.phase === 'target_staged') {+ const expectedInstalled = record.privateTargetIdentity ?? selected+ if (target) {+ if (!this.options.exactIdentity(target, expectedInstalled)) {+ await this.quarantine(record, 'unknown target blocks recovery')+ }+ if (privateTarget) {+ await this.quarantine(+ record,+ 'target and private target both exist during recovery'+ )+ }+ } else if (+ !privateTarget ||+ (record.privateTargetIdentity+ ? !this.options.exactIdentity(+ privateTarget,+ record.privateTargetIdentity+ )+ : !this.options.sameContent(privateTarget, selected))+ ) {+ await this.quarantine(record, 'private target is missing or changed')+ }+ const samePathReplacement =+ record.plan.replacement !== undefined &&+ finalizePathsEquivalent(+ record.plan.sourcePath,+ record.plan.targetPath+ )+ if (samePathReplacement) {+ if (+ !rollback ||+ !this.options.exactIdentity(rollback, record.plan.sourceIdentity)+ ) {+ await this.quarantine(+ record,+ 'preserved source changed before install recovery'+ )+ }+ } else if (+ !source ||+ !this.options.exactIdentity(source, record.plan.sourceIdentity)+ ) {+ await this.quarantine(+ record,+ 'source changed before install recovery'+ )+ }+ await this.restore(record, target, rollback, privateTarget, replacement)+ return+ }++ if (record.phase === 'prepared') {+ await this.restorePrepared(+ record,+ source,+ target,+ rollback,+ privateTarget,+ replacement+ )+ return+ }+ } finally {+ await lease.release()+ }+ }++ private async restore(+ record: FinalizeJournalRecord,+ target: Awaited<ReturnType<FinalizeArtifactOperations['identity']>>,+ rollback: Awaited<ReturnType<FinalizeArtifactOperations['identity']>>,+ privateTarget: Awaited<ReturnType<FinalizeArtifactOperations['identity']>>,+ replacement: Awaited<ReturnType<FinalizeArtifactOperations['identity']>>+ ): Promise<void> {+ const selected =+ record.plan.replacement?.identity ?? record.plan.sourceIdentity+ const targetIsOriginal =+ record.plan.replacement === undefined &&+ finalizePathsEquivalent(record.plan.sourcePath, record.plan.targetPath)+ if (+ targetIsOriginal &&+ (!target ||+ !this.options.exactIdentity(target, record.plan.sourceIdentity))+ ) {+ await this.quarantine(+ record,+ 'same-path original changed during recovery'+ )+ }+ if (target && !targetIsOriginal) {+ const installed =+ record.targetIdentity ?? record.privateTargetIdentity ?? selected+ if (!this.options.exactIdentity(target, installed)) {+ await this.quarantine(record, 'unknown target blocks recovery')+ }+ await this.removeTracked(record, record.plan.targetPath, installed)+ }+ if (privateTarget && record.privateTargetPath) {+ const expectedPrivate = record.privateTargetIdentity+ if (+ expectedPrivate+ ? !this.options.exactIdentity(privateTarget, expectedPrivate)+ : !this.options.sameContent(privateTarget, selected)+ ) {+ await this.quarantine(record, 'unknown private target blocks recovery')+ }+ await this.removeTracked(+ record,+ record.privateTargetPath,+ expectedPrivate ?? privateTarget+ )+ }+ if (rollback && record.rollbackPath) {+ if (!this.options.exactIdentity(rollback, record.plan.sourceIdentity)) {+ await this.quarantine(record, 'unknown rollback blocks recovery')+ }+ await this.options.fs.moveNoReplace(+ record.rollbackPath,+ record.plan.sourceIdentity,+ record.plan.sourcePath+ )+ await this.options.fs.makeDurable(record.plan.sourcePath)+ }+ await this.removeReplacement(record, replacement)+ await this.options.repository.advance(record.journalId, 'cleaned')+ }++ private async cleanup(+ record: FinalizeJournalRecord,+ source: Awaited<ReturnType<FinalizeArtifactOperations['identity']>>,+ rollback: Awaited<ReturnType<FinalizeArtifactOperations['identity']>>,+ privateTarget: Awaited<ReturnType<FinalizeArtifactOperations['identity']>>,+ replacement: Awaited<ReturnType<FinalizeArtifactOperations['identity']>>+ ): Promise<void> {+ if (+ source &&+ !finalizePathsEquivalent(record.plan.sourcePath, record.plan.targetPath)+ ) {+ if (!this.options.exactIdentity(source, record.plan.sourceIdentity)) {+ await this.quarantine(record, 'cleanup source identity mismatch')+ }+ await this.removeTracked(+ record,+ record.plan.sourcePath,+ record.plan.sourceIdentity+ )+ }+ if (rollback && record.rollbackPath) {+ if (!this.options.exactIdentity(rollback, record.plan.sourceIdentity)) {+ await this.quarantine(record, 'cleanup rollback identity mismatch')+ }+ await this.removeTracked(+ record,+ record.rollbackPath,+ record.plan.sourceIdentity+ )+ }+ if (privateTarget && record.privateTargetPath) {+ const selected =+ record.plan.replacement?.identity ?? record.plan.sourceIdentity+ const expectedPrivate = record.privateTargetIdentity+ if (+ expectedPrivate+ ? !this.options.exactIdentity(privateTarget, expectedPrivate)+ : !this.options.sameContent(privateTarget, selected)+ ) {+ await this.quarantine(+ record,+ 'cleanup private target identity mismatch'+ )+ }+ await this.removeTracked(+ record,+ record.privateTargetPath,+ expectedPrivate ?? selected+ )+ }+ await this.removeReplacement(record, replacement)+ await this.options.repository.advance(record.journalId, 'cleaned')+ }++ private async restorePrepared(+ record: FinalizeJournalRecord,+ source: Awaited<ReturnType<FinalizeArtifactOperations['identity']>>,+ target: Awaited<ReturnType<FinalizeArtifactOperations['identity']>>,+ rollback: Awaited<ReturnType<FinalizeArtifactOperations['identity']>>,+ privateTarget: Awaited<ReturnType<FinalizeArtifactOperations['identity']>>,+ replacement: Awaited<ReturnType<FinalizeArtifactOperations['identity']>>+ ): Promise<void> {+ if (record.rollbackPath) {+ if (source && rollback) {+ await this.quarantine(record, 'prepared source and rollback both exist')+ }+ if (rollback) {+ if (!this.options.exactIdentity(rollback, record.plan.sourceIdentity)) {+ await this.quarantine(record, 'prepared rollback identity mismatch')+ }+ if (source) {+ await this.quarantine(record, 'prepared source blocks rollback')+ }+ await this.options.fs.moveNoReplace(+ record.rollbackPath,+ record.plan.sourceIdentity,+ record.plan.sourcePath+ )+ await this.options.fs.makeDurable(record.plan.sourcePath)+ } else if (+ !source ||+ !this.options.exactIdentity(source, record.plan.sourceIdentity)+ ) {+ await this.quarantine(record, 'prepared source is missing or changed')+ }+ } else if (+ !source ||+ !this.options.exactIdentity(source, record.plan.sourceIdentity)+ ) {+ await this.quarantine(record, 'prepared source is missing or changed')+ }++ if (+ target &&+ !finalizePathsEquivalent(record.plan.sourcePath, record.plan.targetPath)+ ) {+ await this.quarantine(record, 'unexpected target exists while prepared')+ }+ if (privateTarget && record.privateTargetPath) {+ const selected =+ record.plan.replacement?.identity ?? record.plan.sourceIdentity+ if (!this.options.sameContent(privateTarget, selected)) {+ await this.quarantine(+ record,+ 'prepared private target identity mismatch'+ )+ }+ await this.removeTracked(record, record.privateTargetPath, privateTarget)+ }+ await this.removeReplacement(record, replacement)+ await this.options.repository.advance(record.journalId, 'cleaned')+ }++ private async removeReplacement(+ record: FinalizeJournalRecord,+ replacement: Awaited<ReturnType<FinalizeArtifactOperations['identity']>>+ ): Promise<void> {+ const planned = record.plan.replacement+ if (!planned || !replacement) return+ if (!this.options.exactIdentity(replacement, planned.identity)) {+ await this.quarantine(record, 'replacement staging identity mismatch')+ }+ await this.removeTracked(record, planned.stagedPath, planned.identity)+ }++ private async resumeRemovalIntent(+ record: FinalizeJournalRecord+ ): Promise<void> {+ const intent = record.removalIntent+ if (!intent) return+ try {+ await this.options.fs.removeKnown(+ intent.artifactPath,+ intent.identity,+ intent.quarantinePath+ )+ record.removalIntent = undefined+ await this.options.repository.checkpoint(record.journalId, {+ removalIntent: undefined,+ })+ } catch (error) {+ await this.quarantine(+ record,+ `persisted removal intent failed: ${error instanceof Error ? error.message : String(error)}`+ )+ }+ }++ private async removeTracked(+ record: FinalizeJournalRecord,+ artifactPath: string,+ identity: FinalizeJournalRecord['plan']['sourceIdentity']+ ): Promise<void> {+ const removalIntent = {+ artifactPath,+ quarantinePath: removalQuarantinePath(record.journalId, artifactPath),+ identity,+ }+ record.removalIntent = removalIntent+ await this.options.repository.checkpoint(record.journalId, {+ removalIntent,+ })+ await this.options.fs.removeKnown(+ artifactPath,+ identity,+ removalIntent.quarantinePath+ )+ record.removalIntent = undefined+ await this.options.repository.checkpoint(record.journalId, {+ removalIntent: undefined,+ })+ }++ private async quarantine(+ record: FinalizeJournalRecord,+ reason: string+ ): Promise<never> {+ await this.options.repository.quarantine(record.journalId, reason)+ throw new FinalizeQuarantinedError(record.journalId, reason)+ }+}diff --git a/src/core/plugin/finalize/hook-plan.ts b/src/core/plugin/finalize/hook-plan.tsnew file mode 100644index 00000000..6834db32--- /dev/null+++ b/src/core/plugin/finalize/hook-plan.ts@@ -0,0 +1,61 @@+import path from 'node:path'+import type { ArtifactIdentity } from './artifact-identity'++export interface FinalizeReplacement {+ pluginId: string+ stagedPath: string+ identity: ArtifactIdentity+}++export interface FinalizeMetadataOperation {+ pluginId: string+ op: 'set' | 'delete'+ key: string+ value?: unknown+ size?: number+}++export interface HookPlan {+ planId: string+ taskId: string+ saveDir: string+ sourcePath: string+ targetPath: string+ sourceIdentity: ArtifactIdentity+ replacement?: FinalizeReplacement+ metadataOps: readonly FinalizeMetadataOperation[]+ contributors: readonly string[]+}++export function assertValidHookPlan(plan: HookPlan): void {+ if (!path.isAbsolute(plan.sourcePath) || !path.isAbsolute(plan.targetPath)) {+ throw new Error('finalize paths must be absolute')+ }+ const relative = path.relative(plan.saveDir, plan.targetPath)+ if (+ relative === '' ||+ relative === '..' ||+ relative.startsWith(`..${path.sep}`) ||+ path.isAbsolute(relative)+ ) {+ throw new Error('finalize target must be a descendant of saveDir')+ }+ if (+ plan.replacement?.identity.kind !== undefined &&+ !plan.replacement.pluginId+ ) {+ throw new Error('replacement must identify its producing plugin')+ }+}++export function freezeHookPlan(plan: HookPlan): Readonly<HookPlan> {+ assertValidHookPlan(plan)+ return Object.freeze({+ ...plan,+ metadataOps: Object.freeze([...plan.metadataOps]),+ contributors: Object.freeze([...plan.contributors]),+ replacement: plan.replacement+ ? Object.freeze({ ...plan.replacement })+ : undefined,+ })+}diff --git a/src/core/plugin/finalize/native-artifact-operations.integration.test.ts b/src/core/plugin/finalize/native-artifact-operations.integration.test.tsnew file mode 100644index 00000000..07083dc9--- /dev/null+++ b/src/core/plugin/finalize/native-artifact-operations.integration.test.ts@@ -0,0 +1,201 @@+import { existsSync } from 'node:fs'+import {+ mkdir,+ mkdtemp,+ readFile,+ realpath,+ rename,+ rm,+ symlink,+ writeFile,+} from 'node:fs/promises'+import os from 'node:os'+import path from 'node:path'+import { afterEach, describe, expect, it } from 'vitest'+import {+ artifactContentEquals,+ readArtifactIdentity,+} from './artifact-identity'+import { NativeFinalizeFilesystemAdapter } from './filesystem-adapter'+import { removalQuarantinePath } from './finalize-committer'+import { NativeFinalizeArtifactOperations } from './native-artifact-operations'++const binary = process.env.MOTRIX_FINALIZE_FS_TEST_BIN+ ? path.resolve(process.env.MOTRIX_FINALIZE_FS_TEST_BIN)+ : path.resolve(+ process.cwd(),+ 'packages/finalize-fs/target/debug',+ process.platform === 'win32'+ ? 'motrix-finalize-fs.exe'+ : 'motrix-finalize-fs'+ )++describe.runIf(existsSync(binary))(+ 'NativeFinalizeArtifactOperations integration',+ () => {+ const roots: string[] = []++ afterEach(async () => {+ await Promise.all(+ roots+ .splice(0)+ .map((root) => rm(root, { recursive: true, force: true }))+ )+ })++ async function setup() {+ const root = await realpath(+ await mkdtemp(path.join(os.tmpdir(), 'motrix-finalize-'))+ )+ roots.push(root)+ const adapter = new NativeFinalizeFilesystemAdapter(binary)+ const operations = new NativeFinalizeArtifactOperations(adapter)+ await operations.assertSupported()+ return { root, adapter, operations }+ }++ it('publishes a held file without replacing an existing target', async () => {+ const { root, adapter, operations } = await setup()+ const source = path.join(root, 'source.bin')+ const target = path.join(root, 'target.bin')+ await writeFile(source, 'source')+ const identity = await readArtifactIdentity(source)+ await operations.moveNoReplace(source, identity, target)+ expect(await readFile(target, 'utf8')).toBe('source')++ const conflict = path.join(root, 'conflict.bin')+ await writeFile(source, 'second')+ await writeFile(conflict, 'existing')+ const secondIdentity = await readArtifactIdentity(source)+ await expect(+ operations.moveNoReplace(source, secondIdentity, conflict)+ ).rejects.toMatchObject({ code: 'target_exists' })+ expect(await readFile(source, 'utf8')).toBe('second')+ expect(await readFile(conflict, 'utf8')).toBe('existing')+ await adapter.dispose()+ })++ it('publishes a GitHub ZIP into a plugin-selected Compressed directory', async () => {+ const { root, adapter, operations } = await setup()+ const source = path.join(root, 'Motrix-main.zip.motrix')+ const target = path.join(root, 'Compressed', 'Motrix-main.zip')+ await writeFile(source, 'github-zip-payload')++ await operations.moveNoReplace(+ source,+ await readArtifactIdentity(source),+ target+ )++ expect(existsSync(source)).toBe(false)+ expect(await readFile(target, 'utf8')).toBe('github-zip-payload')+ await adapter.dispose()+ })++ it('copies and publishes a directory with byte-identical identity', async () => {+ const { root, adapter, operations } = await setup()+ const source = path.join(root, 'source')+ const privateTarget = path.join(root, '.private', 'copy')+ const target = path.join(root, 'target')+ await mkdir(path.join(source, 'nested'), { recursive: true })+ await writeFile(path.join(source, 'nested', 'payload'), 'payload')+ const sourceIdentity = await readArtifactIdentity(source)+ const privateIdentity = await operations.materializePrivate(+ source,+ sourceIdentity,+ privateTarget+ )+ expect(artifactContentEquals(sourceIdentity, privateIdentity)).toBe(true)+ await operations.makeDurable(privateTarget)+ await operations.moveNoReplace(privateTarget, privateIdentity, target)+ expect(+ await readFile(path.join(target, 'nested', 'payload'), 'utf8')+ ).toBe('payload')+ await adapter.dispose()+ })++ it('rejects an intermediate target symlink before publishing outside the root', async () => {+ const { root, adapter, operations } = await setup()+ const source = path.join(root, 'source.bin')+ const outside = path.join(root, 'outside')+ const redirectedParent = path.join(root, 'save', 'redirect')+ await mkdir(path.join(root, 'save'), { recursive: true })+ await mkdir(outside)+ await symlink(+ outside,+ redirectedParent,+ process.platform === 'win32' ? 'junction' : 'dir'+ )+ await writeFile(source, 'source')+ const identity = await readArtifactIdentity(source)++ await expect(+ operations.moveNoReplace(+ source,+ identity,+ path.join(redirectedParent, 'target.bin')+ )+ ).rejects.toMatchObject({ code: 'artifact_unsafe_path' })+ expect(existsSync(path.join(outside, 'target.bin'))).toBe(false)+ expect(await readFile(source, 'utf8')).toBe('source')+ await adapter.dispose()+ })++ it('removes a verified file and directory through held sidecar handles', async () => {+ const { root, adapter, operations } = await setup()+ const file = path.join(root, 'file.bin')+ const tree = path.join(root, 'tree')+ await writeFile(file, 'file')+ await mkdir(path.join(tree, 'nested'), { recursive: true })+ await writeFile(path.join(tree, 'nested', 'payload'), 'payload')++ await operations.removeKnown(+ file,+ await readArtifactIdentity(file),+ removalQuarantinePath('integration-file', file)+ )+ await operations.removeKnown(+ tree,+ await readArtifactIdentity(tree),+ removalQuarantinePath('integration-tree', tree)+ )++ expect(existsSync(file)).toBe(false)+ expect(existsSync(tree)).toBe(false)+ await adapter.dispose()+ })++ it('resumes the exact journal quarantine left by a removal crash', async () => {+ const { root, adapter, operations } = await setup()+ const original = path.join(root, 'crash.bin')+ const quarantine = removalQuarantinePath('crash-journal', original)+ await writeFile(original, 'preserved')+ const identity = await readArtifactIdentity(original)+ // Exact crash point: journal intent is durable and the sidecar rename+ // completed, but the process died before unlink.+ await rename(original, quarantine)++ await operations.removeKnown(original, identity, quarantine)++ expect(existsSync(original)).toBe(false)+ expect(existsSync(quarantine)).toBe(false)+ await adapter.dispose()+ })++ it('preserves an unknown object at a persisted removal quarantine', async () => {+ const { root, adapter, operations } = await setup()+ const original = path.join(root, 'unknown.bin')+ const quarantine = removalQuarantinePath('unknown-journal', original)+ await writeFile(original, 'expected')+ const identity = await readArtifactIdentity(original)+ await rm(original)+ await writeFile(quarantine, 'unknown')++ await expect(+ operations.removeKnown(original, identity, quarantine)+ ).rejects.toMatchObject({ code: 'artifact_mutated' })+ expect(await readFile(quarantine, 'utf8')).toBe('unknown')+ await adapter.dispose()+ })+ }+)diff --git a/src/core/plugin/finalize/native-artifact-operations.ts b/src/core/plugin/finalize/native-artifact-operations.tsnew file mode 100644index 00000000..03338f85--- /dev/null+++ b/src/core/plugin/finalize/native-artifact-operations.ts@@ -0,0 +1,322 @@+import { constants } from 'node:fs'+import { lstat, mkdir, open, readdir, stat } from 'node:fs/promises'+import path from 'node:path'+import {+ type ArtifactIdentity,+ ArtifactIdentityError,+ artifactIdentityEquals,+ readArtifactIdentity,+} from './artifact-identity'+import type { FinalizeFilesystemAdapter } from './filesystem-adapter'+import type { FinalizeArtifactOperations } from './finalize-committer'++/**+ * Production artifact operations. No-replace publication is delegated to the+ * native sidecar, which holds the source artifact and both parent roots while+ * performing the rename. Copy staging is private, exclusive, identity-checked,+ * and made durable before publication.+ */+export class NativeFinalizeArtifactOperations+ implements FinalizeArtifactOperations+{+ constructor(private readonly adapter: FinalizeFilesystemAdapter) {}++ async assertSupported(): Promise<void> {+ const capabilities = await this.adapter.capabilities()+ if (+ !capabilities.renameNoReplace ||+ !capabilities.heldRoots ||+ !capabilities.heldArtifacts ||+ !capabilities.directorySync+ ) {+ throw new Error(+ `finalize filesystem safety is unsupported on ${capabilities.platform}`+ )+ }+ }++ async identity(artifactPath: string): Promise<ArtifactIdentity | null> {+ try {+ return await readArtifactIdentity(artifactPath)+ } catch (error) {+ if (+ error instanceof ArtifactIdentityError &&+ error.code === 'artifact_missing'+ ) {+ return null+ }+ throw error+ }+ }++ async sameFilesystem(leftPath: string, rightPath: string): Promise<boolean> {+ const left = await stat(leftPath, { bigint: true })+ const right = await statExistingAncestor(rightPath)+ return left.dev === right.dev+ }++ async materializePrivate(+ sourcePath: string,+ expected: ArtifactIdentity,+ privateTargetPath: string+ ): Promise<ArtifactIdentity> {+ await this.requireIdentity(sourcePath, expected)+ await this.ensureSafeDirectory(path.dirname(privateTargetPath))+ await this.assertSafeExistingParent(sourcePath)+ const source = await lstat(sourcePath)+ if (source.isSymbolicLink()) {+ throw new ArtifactIdentityError(+ 'artifact_unsafe_path',+ `artifact root is a symbolic link: ${sourcePath}`+ )+ }+ if (!source.isDirectory() && !source.isFile()) {+ throw new ArtifactIdentityError(+ 'artifact_special_file',+ `artifact is not a regular file or directory: ${sourcePath}`+ )+ }+ const sourceRoot = await this.adapter.openRoot(path.dirname(sourcePath))+ const targetRoot = await this.adapter.openRoot(+ path.dirname(privateTargetPath)+ )+ let artifact: Awaited<ReturnType<typeof this.adapter.openArtifact>> | null =+ null+ try {+ artifact = await this.adapter.openArtifact(+ sourceRoot,+ path.basename(sourcePath)+ )+ await this.requireIdentity(sourcePath, expected)+ await this.adapter.copyOpened(+ artifact,+ targetRoot,+ path.basename(privateTargetPath)+ )+ } finally {+ if (artifact) await this.adapter.close(artifact).catch(() => undefined)+ await this.adapter.close(sourceRoot).catch(() => undefined)+ await this.adapter.close(targetRoot).catch(() => undefined)+ }+ const copied = await readArtifactIdentity(privateTargetPath)+ await this.requireIdentity(sourcePath, expected)+ await this.assertSafeExistingParent(privateTargetPath)+ return copied+ }++ async moveNoReplace(+ sourcePath: string,+ expected: ArtifactIdentity,+ targetPath: string+ ): Promise<void> {+ await this.assertSupported()+ await this.requireIdentity(sourcePath, expected)+ await this.ensureSafeDirectory(path.dirname(targetPath))+ const sourceRoot = await this.adapter.openRoot(path.dirname(sourcePath))+ const targetRoot = await this.adapter.openRoot(path.dirname(targetPath))+ let artifact: Awaited<ReturnType<typeof this.adapter.openArtifact>> | null =+ null+ try {+ artifact = await this.adapter.openArtifact(+ sourceRoot,+ path.basename(sourcePath)+ )+ await this.requireIdentity(sourcePath, expected)+ await this.adapter.renameOpenedNoReplace(+ artifact,+ targetRoot,+ path.basename(targetPath)+ )+ await this.adapter.syncRoot(sourceRoot)+ await this.adapter.syncRoot(targetRoot)+ await this.requireIdentity(targetPath, expected)+ } finally {+ if (artifact) await this.adapter.close(artifact).catch(() => undefined)+ await this.adapter.close(sourceRoot).catch(() => undefined)+ await this.adapter.close(targetRoot).catch(() => undefined)+ }+ }++ async makeDurable(artifactPath: string): Promise<void> {+ await syncTree(artifactPath, this.adapter)+ const root = await this.adapter.openRoot(path.dirname(artifactPath))+ try {+ await this.adapter.syncRoot(root)+ } finally {+ await this.adapter.close(root).catch(() => undefined)+ }+ }++ async removeKnown(+ artifactPath: string,+ expected: ArtifactIdentity,+ quarantinePath: string+ ): Promise<void> {+ if (+ path.dirname(quarantinePath) !== path.dirname(artifactPath) ||+ path.basename(quarantinePath) === path.basename(artifactPath)+ ) {+ throw new ArtifactIdentityError(+ 'artifact_unsafe_path',+ 'removal quarantine must be a distinct sibling of the artifact'+ )+ }+ const original = await this.identity(artifactPath)+ const quarantined = await this.identity(quarantinePath)+ if (original && !artifactIdentityEquals(original, expected)) {+ throw new ArtifactIdentityError(+ 'artifact_mutated',+ `artifact identity changed: ${artifactPath}`+ )+ }+ if (quarantined && !artifactIdentityEquals(quarantined, expected)) {+ throw new ArtifactIdentityError(+ 'artifact_mutated',+ `removal quarantine identity changed: ${quarantinePath}`+ )+ }+ if (original && quarantined) {+ throw new ArtifactIdentityError(+ 'artifact_mutated',+ `artifact and removal quarantine both exist: ${artifactPath}`+ )+ }+ if (!original && !quarantined) return++ const resumeIsolated = original === null+ const openedPath = resumeIsolated ? quarantinePath : artifactPath+ const parent = await this.adapter.openRoot(path.dirname(openedPath))+ let artifact: Awaited<ReturnType<typeof this.adapter.openArtifact>> | null =+ null+ try {+ artifact = await this.adapter.openArtifact(+ parent,+ path.basename(openedPath)+ )+ await this.requireIdentity(openedPath, expected)+ await this.adapter.removeOpened(+ artifact,+ path.basename(quarantinePath),+ resumeIsolated+ )+ } finally {+ if (artifact) await this.adapter.close(artifact).catch(() => undefined)+ await this.adapter.close(parent).catch(() => undefined)+ }+ if ((await this.identity(quarantinePath)) !== null) {+ throw new ArtifactIdentityError(+ 'artifact_mutated',+ `removal quarantine survived deletion: ${quarantinePath}`+ )+ }+ const replacement = await this.identity(artifactPath)+ if (replacement) {+ throw new ArtifactIdentityError(+ 'artifact_mutated',+ `artifact name was replaced during removal: ${artifactPath}`+ )+ }+ }++ private async ensureSafeDirectory(directoryPath: string): Promise<void> {+ await assertExistingAncestorsAreDirectories(directoryPath)+ await mkdir(directoryPath, { recursive: true })+ const held = await this.adapter.openRoot(directoryPath)+ await this.adapter.close(held).catch(() => undefined)+ }++ private async assertSafeExistingParent(artifactPath: string): Promise<void> {+ const held = await this.adapter.openRoot(path.dirname(artifactPath))+ await this.adapter.close(held).catch(() => undefined)+ }++ private async requireIdentity(+ artifactPath: string,+ expected: ArtifactIdentity+ ): Promise<void> {+ const actual = await readArtifactIdentity(artifactPath)+ if (!artifactIdentityEquals(actual, expected)) {+ throw new ArtifactIdentityError(+ 'artifact_mutated',+ `artifact identity changed: ${artifactPath}`+ )+ }+ }+}++async function assertExistingAncestorsAreDirectories(+ candidate: string+): Promise<void> {+ const absolute = path.resolve(candidate)+ const parsed = path.parse(absolute)+ let current = parsed.root+ for (const component of absolute+ .slice(parsed.root.length)+ .split(path.sep)+ .filter(Boolean)) {+ current = path.join(current, component)+ try {+ const entry = await lstat(current)+ if (entry.isSymbolicLink() || !entry.isDirectory()) {+ throw new ArtifactIdentityError(+ 'artifact_unsafe_path',+ `artifact path contains an unsafe directory: ${current}`+ )+ }+ } catch (error) {+ if ((error as NodeJS.ErrnoException).code === 'ENOENT') return+ throw error+ }+ }+}++async function statExistingAncestor(candidate: string) {+ let current = candidate+ for (;;) {+ try {+ return await stat(current, { bigint: true })+ } catch (error) {+ const code = (error as NodeJS.ErrnoException).code+ if (code !== 'ENOENT') throw error+ const parent = path.dirname(current)+ if (parent === current) throw error+ current = parent+ }+ }+}++async function syncTree(+ artifactPath: string,+ adapter: FinalizeFilesystemAdapter+): Promise<void> {+ const entry = await lstat(artifactPath)+ if (entry.isSymbolicLink()) {+ throw new ArtifactIdentityError(+ 'artifact_unsafe_path',+ `cannot durably sync a symbolic link: ${artifactPath}`+ )+ }+ if (entry.isDirectory()) {+ const children = await readdir(artifactPath)+ for (const child of children) {+ await syncTree(path.join(artifactPath, child), adapter)+ }+ const root = await adapter.openRoot(artifactPath)+ try {+ await adapter.syncRoot(root)+ } finally {+ await adapter.close(root).catch(() => undefined)+ }+ return+ }+ const handle = await open(+ artifactPath,+ (process.platform === 'win32' ? constants.O_RDWR : constants.O_RDONLY) |+ constants.O_NOFOLLOW+ )+ try {+ await handle.sync()+ } finally {+ await handle.close()+ }+}diff --git a/src/core/plugin/finalize/sidecar-path.test.ts b/src/core/plugin/finalize/sidecar-path.test.tsnew file mode 100644index 00000000..f3bfda12--- /dev/null+++ b/src/core/plugin/finalize/sidecar-path.test.ts@@ -0,0 +1,85 @@+import path from 'node:path'+import { describe, expect, it } from 'vitest'+import { resolveFinalizeSidecarPath } from './sidecar-path'++describe('resolveFinalizeSidecarPath', () => {+ it('uses an explicit absolute override first', () => {+ expect(+ resolveFinalizeSidecarPath({+ extraResourceDir: '/app/extra',+ isDev: false,+ env: { MOTRIX_FINALIZE_FS_BIN: '/custom/motrix-finalize-fs' },+ })+ ).toBe('/custom/motrix-finalize-fs')+ })++ it('rejects a relative override', () => {+ expect(() =>+ resolveFinalizeSidecarPath({+ extraResourceDir: '/app/extra',+ isDev: false,+ env: { MOTRIX_FINALIZE_FS_BIN: 'relative/finalize-fs' },+ })+ ).toThrow('must be an absolute path')+ })++ it('resolves the Electron development target', () => {+ expect(+ resolveFinalizeSidecarPath({+ extraResourceDir: '/repo/extra',+ isDev: true,+ env: {},+ platform: 'darwin',+ arch: 'arm64',+ })+ ).toBe(+ path.resolve(+ '/repo/packages/finalize-fs/dist/darwin-arm64/motrix-finalize-fs'+ )+ )+ })++ it('uses the staged Server binary when it exists', () => {+ expect(+ resolveFinalizeSidecarPath({+ extraResourceDir: '/stage/extra',+ isDev: false,+ env: {},+ platform: 'linux',+ arch: 'x64',+ runtimeRoot: '/stage',+ fileExists: (candidate) =>+ candidate === '/stage/bin/motrix-finalize-fs',+ })+ ).toBe('/stage/bin/motrix-finalize-fs')+ })++ it('uses the locally built Server binary from a normal checkout', () => {+ const local = '/repo/packages/finalize-fs/dist/linux-x64/motrix-finalize-fs'+ expect(+ resolveFinalizeSidecarPath({+ extraResourceDir: '/usr/share/motrix/extra',+ isDev: false,+ env: {},+ platform: 'linux',+ arch: 'x64',+ runtimeRoot: '/repo',+ fileExists: (candidate) => candidate === local,+ })+ ).toBe(local)+ })++ it('keeps the packaged path when no verified local binary exists', () => {+ expect(+ resolveFinalizeSidecarPath({+ extraResourceDir: '/usr/share/motrix/extra',+ isDev: false,+ env: {},+ platform: 'linux',+ arch: 'x64',+ runtimeRoot: '/repo',+ fileExists: () => false,+ })+ ).toBe('/usr/share/motrix/bin/motrix-finalize-fs')+ })+})diff --git a/src/core/plugin/finalize/sidecar-path.ts b/src/core/plugin/finalize/sidecar-path.tsnew file mode 100644index 00000000..8389f1ca--- /dev/null+++ b/src/core/plugin/finalize/sidecar-path.ts@@ -0,0 +1,49 @@+import { existsSync } from 'node:fs'+import path from 'node:path'++export function resolveFinalizeSidecarPath(input: {+ extraResourceDir: string+ isDev: boolean+ env?: NodeJS.ProcessEnv+ platform?: NodeJS.Platform+ arch?: string+ runtimeRoot?: string+ fileExists?: (candidate: string) => boolean+}): string {+ const env = input.env ?? process.env+ const override = env.MOTRIX_FINALIZE_FS_BIN+ if (override) {+ if (!path.isAbsolute(override)) {+ throw new Error('MOTRIX_FINALIZE_FS_BIN must be an absolute path')+ }+ return override+ }+ const binary =+ (input.platform ?? process.platform) === 'win32'+ ? 'motrix-finalize-fs.exe'+ : 'motrix-finalize-fs'+ if (input.isDev) {+ return path.resolve(+ input.extraResourceDir,+ '..',+ 'packages',+ 'finalize-fs',+ 'dist',+ `${input.platform ?? process.platform}-${input.arch ?? process.arch}`,+ binary+ )+ }++ const packaged = path.resolve(input.extraResourceDir, '..', 'bin', binary)+ if (!input.runtimeRoot) return packaged+ const localBuild = path.resolve(+ input.runtimeRoot,+ 'packages',+ 'finalize-fs',+ 'dist',+ `${input.platform ?? process.platform}-${input.arch ?? process.arch}`,+ binary+ )+ const fileExists = input.fileExists ?? existsSync+ return !fileExists(packaged) && fileExists(localBuild) ? localBuild : packaged+}diff --git a/src/core/plugin/grants/grants-manager.test.ts b/src/core/plugin/grants/grants-manager.test.tsindex e8891c3e..e8a42c4e 100644--- a/src/core/plugin/grants/grants-manager.test.ts+++ b/src/core/plugin/grants/grants-manager.test.ts@@ -71,6 +71,9 @@ function makeRegistry(id === 'test.demo' ? indexed : undefined) as unknown as PluginRegistry['get'],entries: vi.fn(() => [indexed]) as unknown as PluginRegistry['entries'],+ bumpPolicyGeneration: vi.fn(+ () => 2+ ) as unknown as PluginRegistry['bumpPolicyGeneration'],} as unknown as PluginRegistry}@@ -131,6 +134,146 @@ describe('GrantsManager', () => {})})+ it('publishes grant changes inside the bound policy barrier', async () => {+ await writeFile(+ path.join(dir, '_install.json'),+ JSON.stringify(makeRecord({ notify: 'denied' }))+ )+ const order: string[] = []+ const registry = makeRegistry(dir)+ const gm = new GrantsManager({ registry })+ gm.bindPolicyBarrier(async (pluginId, publish) => {+ order.push(`barrier:${pluginId}:closed`)+ const result = await publish()+ order.push(`barrier:${pluginId}:published`)+ return result+ })++ await gm.updateGrants('test.demo', { notify: 'granted' })++ expect(order).toEqual([+ 'barrier:test.demo:closed',+ 'barrier:test.demo:published',+ ])+ expect(registry.bumpPolicyGeneration).not.toHaveBeenCalled()+ })++ it('re-reads an upgraded install record only after entering the policy barrier', async () => {+ await writeFile(+ path.join(dir, '_install.json'),+ JSON.stringify(makeRecord({ notify: 'denied' }))+ )+ const upgraded = makeRecord({ ffmpeg: 'granted' })+ upgraded.source = {+ ...upgraded.source,+ bundleSha256: 'b'.repeat(64),+ }+ const gm = new GrantsManager({ registry: makeRegistry(dir) })+ gm.bindPolicyBarrier(async (_pluginId, publish) => {+ await writeFile(path.join(dir, '_install.json'), JSON.stringify(upgraded))+ return publish()+ })++ await gm.updateGrants('test.demo', { notify: 'granted' })++ const written = JSON.parse(+ await readFile(path.join(dir, '_install.json'), 'utf8')+ ) as InstallRecord+ expect(written.source.bundleSha256).toBe('b'.repeat(64))+ expect(written.grants).toEqual({+ ffmpeg: 'granted',+ notify: 'granted',+ })+ })++ it('serializes concurrent patches against the latest record inside the barrier', async () => {+ await writeFile(+ path.join(dir, '_install.json'),+ JSON.stringify(makeRecord({ notify: 'denied', ffmpeg: 'denied' }))+ )+ const gm = new GrantsManager({ registry: makeRegistry(dir) })+ let arrivals = 0+ let open!: () => void+ const bothArrived = new Promise<void>((resolve) => {+ open = resolve+ })+ let tail = Promise.resolve()+ gm.bindPolicyBarrier(async (_pluginId, publish) => {+ arrivals += 1+ if (arrivals === 2) open()+ await bothArrived+ const previous = tail+ let release!: () => void+ const current = new Promise<void>((resolve) => {+ release = resolve+ })+ tail = previous.then(() => current)+ await previous+ try {+ return await publish()+ } finally {+ release()+ }+ })++ await Promise.all([+ gm.updateGrants('test.demo', { notify: 'granted' }),+ gm.updateGrants('test.demo', { ffmpeg: 'granted' }),+ ])++ const written = JSON.parse(+ await readFile(path.join(dir, '_install.json'), 'utf8')+ ) as InstallRecord+ expect(written.grants).toEqual({+ notify: 'granted',+ ffmpeg: 'granted',+ })+ })++ it('terminalizes only actual revocations after publishing reversible grants', async () => {+ await writeFile(+ path.join(dir, '_install.json'),+ JSON.stringify(makeRecord({ notify: 'granted' }))+ )+ const registry = makeRegistry(dir)+ const gm = new GrantsManager({ registry })+ const order: string[] = []+ gm.bindPolicyBarrier(async (_pluginId, publish) => {+ order.push('barrier')+ return publish()+ })+ gm.bindPermissionRevoked(async (pluginId, permissions) => {+ order.push('retention')+ expect(pluginId).toBe('test.demo')+ expect(permissions).toEqual(['notify'])+ expect(await gm.getGrants(pluginId)).toEqual({ notify: 'denied' })+ return 1+ })++ await gm.updateGrants('test.demo', { notify: 'denied' })++ order.push('published')+ expect(order).toEqual(['barrier', 'retention', 'published'])+ expect(await gm.getGrants('test.demo')).toEqual({ notify: 'denied' })+ })++ it('restores the prior grant record when revocation retention fails', async () => {+ await writeFile(+ path.join(dir, '_install.json'),+ JSON.stringify(makeRecord({ notify: 'granted' }))+ )+ const gm = new GrantsManager({ registry: makeRegistry(dir) })+ gm.bindPolicyBarrier(async (_pluginId, publish) => publish())+ const failure = new Error('retention unavailable')+ gm.bindPermissionRevoked(async () => Promise.reject(failure))++ await expect(+ gm.updateGrants('test.demo', { notify: 'denied' })+ ).rejects.toBe(failure)++ expect(await gm.getGrants('test.demo')).toEqual({ notify: 'granted' })+ })+it('updateGrants rejects unknown permission key', async () => {await writeFile(path.join(dir, '_install.json'),diff --git a/src/core/plugin/grants/grants-manager.ts b/src/core/plugin/grants/grants-manager.tsindex da725ac9..be57120d 100644--- a/src/core/plugin/grants/grants-manager.ts+++ b/src/core/plugin/grants/grants-manager.ts@@ -22,10 +22,38 @@ export interface GrantsManagerOptions {eventBus?: {emit(channel: 'event:pluginGrantsChanged', payload: unknown): void}+ policyBarrier?: <T>(+ pluginId: string,+ publish: () => Promise<T> | T+ ) => Promise<T>}+export type PermissionRevokedHandler = (+ pluginId: string,+ revokedPermissions: readonly string[],+ at: number+) => Promise<number>+export class GrantsManager {- constructor(private readonly opts: GrantsManagerOptions) {}+ private policyBarrier:+ | (<T>(pluginId: string, publish: () => Promise<T> | T) => Promise<T>)+ | undefined+ private permissionRevokedHandler: PermissionRevokedHandler | undefined+ private readonly mutationTails = new Map<string, Promise<void>>()++ constructor(private readonly opts: GrantsManagerOptions) {+ this.policyBarrier = opts.policyBarrier+ }++ bindPolicyBarrier(+ barrier: <T>(pluginId: string, publish: () => Promise<T> | T) => Promise<T>+ ): void {+ this.policyBarrier = barrier+ }++ bindPermissionRevoked(handler: PermissionRevokedHandler): void {+ this.permissionRevokedHandler = handler+ }/*** Read persisted grants. Returns `{}` for plugins without an install record@@ -53,45 +81,109 @@ export class GrantsManager {* picks up the new effective permissions.*/async updateGrants(pluginId: string, patch: GrantsMap): Promise<GrantsMap> {- const entry = this.opts.registry.get(pluginId)- if (!entry) {- throw new AppError(- ErrorCode.PluginManifestInvalid,- `plugin.grants.unknown_plugin: ${pluginId}`- )- }- if (entry.origin !== 'community' || entry.dev) {- throw new AppError(- ErrorCode.PluginPermissionUnsupported,- 'plugin.grants.not_supported'- )- }-- const optional = new Set(entry.manifest.optionalPermissions ?? [])- for (const key of Object.keys(patch)) {- if (!optional.has(key)) {+ const persist = async (): Promise<GrantsMap> => {+ // Re-read every mutable input only after the Host has closed admission+ // and this plugin's policy mutation reaches the head of its queue. An+ // upgrade or another grant patch may have completed while this request+ // was waiting.+ const entry = this.opts.registry.get(pluginId)+ if (!entry) {+ throw new AppError(+ ErrorCode.PluginManifestInvalid,+ `plugin.grants.unknown_plugin: ${pluginId}`+ )+ }+ if (entry.origin !== 'community' || entry.dev) {throw new AppError(ErrorCode.PluginPermissionUnsupported,- `plugin.grants.unknown_permission: ${key}`+ 'plugin.grants.not_supported')}- }- const record = await readInstallRecord(entry.rootDir)- if (!record) {- throw new AppError(- ErrorCode.PluginManifestInvalid,- 'plugin.grants.install_record_missing'- )+ const optional = new Set(entry.manifest.optionalPermissions ?? [])+ for (const key of Object.keys(patch)) {+ if (!optional.has(key)) {+ throw new AppError(+ ErrorCode.PluginPermissionUnsupported,+ `plugin.grants.unknown_permission: ${key}`+ )+ }+ }++ const record = await readInstallRecord(entry.rootDir)+ if (!record) {+ throw new AppError(+ ErrorCode.PluginManifestInvalid,+ 'plugin.grants.install_record_missing'+ )+ }+ const next: GrantsMap = { ...record.grants, ...patch }+ const revokedPermissions = [...optional]+ .filter(+ (permission) =>+ record.grants[permission] === 'granted' &&+ next[permission] !== 'granted'+ )+ .sort()+ // The Host barrier has already closed admission, aborted live capability+ // leases, and drained the old worker. Publish the reversible grant file,+ // then terminalize affected durable deliveries. Restore the old record+ // if terminalization fails before admission reopens.+ await writeInstallRecord(entry.rootDir, { ...record, grants: next })+ try {+ if (revokedPermissions.length > 0) {+ await this.permissionRevokedHandler?.(+ pluginId,+ revokedPermissions,+ Date.now()+ )+ }+ } catch (error) {+ await writeInstallRecord(entry.rootDir, record)+ throw error+ }+ return this.filterToOptional(pluginId, next)+ }+ let filtered: GrantsMap+ if (this.policyBarrier) {+ filtered = await this.policyBarrier(pluginId, persist)+ } else {+ filtered = await this.withPluginMutation(pluginId, async () => {+ const result = await persist()+ this.opts.registry.bumpPolicyGeneration(pluginId)+ return result+ })}- const next: GrantsMap = { ...record.grants, ...patch }- await writeInstallRecord(entry.rootDir, { ...record, grants: next })- const filtered = this.filterToOptional(pluginId, next)this.opts.eventBus?.emit('event:pluginGrantsChanged', { pluginId })return filtered}+ private async withPluginMutation<T>(+ pluginId: string,+ operation: () => Promise<T>+ ): Promise<T> {+ const previous = this.mutationTails.get(pluginId) ?? Promise.resolve()+ let release!: () => void+ const current = new Promise<void>((resolve) => {+ release = resolve+ })+ const tail = previous.then(+ () => current,+ () => current+ )+ this.mutationTails.set(pluginId, tail)+ await previous.catch(() => undefined)+ try {+ return await operation()+ } finally {+ release()+ if (this.mutationTails.get(pluginId) === tail) {+ this.mutationTails.delete(pluginId)+ }+ }+ }+/*** Bulk read of all discovered plugins' grants. Returns a map keyed by* pluginId. Used by the renderer to compute card-level audience withoutdiff --git a/src/core/plugin/hooks/audit-view.test.ts b/src/core/plugin/hooks/audit-view.test.tsindex c6aa551d..c0318152 100644--- a/src/core/plugin/hooks/audit-view.test.ts+++ b/src/core/plugin/hooks/audit-view.test.ts@@ -4,6 +4,9 @@ import { sanitizeForAudit } from './audit-view'describe('AuditViewMixin', () => {it('strips sourceUrl path + query', () => {const v = sanitizeForAudit({+ schemaVersion: 1,+ invocationId: 'invocation-1',+ taskId: 'task-1',type: 'http',sourceUrl: 'https://example.com/a?b=1',uris: ['https://cdn.example.com/file?token=secret'],@@ -24,6 +27,9 @@ describe('AuditViewMixin', () => {it('handles invalid uris with try/catch', () => {const v = sanitizeForAudit({+ schemaVersion: 1,+ invocationId: 'invocation-2',+ taskId: 'task-1',type: 'http',sourceUrl: 'https://example.com',uris: ['https://valid.com', 'not a url', 'ftp://another.org'],@@ -37,6 +43,9 @@ describe('AuditViewMixin', () => {it('produces multiple header digests in order', () => {const v = sanitizeForAudit({+ schemaVersion: 1,+ invocationId: 'invocation-3',+ taskId: 'task-1',type: 'http',sourceUrl: 'https://example.com',uris: [],@@ -57,6 +66,9 @@ describe('AuditViewMixin', () => {it('headerValueDigests are sha256 hex (64 lowercase chars)', () => {const v = sanitizeForAudit({+ schemaVersion: 1,+ invocationId: 'invocation-4',+ taskId: 'task-1',type: 'http',sourceUrl: 'https://example.com',uris: [],@@ -72,6 +84,9 @@ describe('AuditViewMixin', () => {it('proxy undefined when dto.proxy is undefined', () => {const v = sanitizeForAudit({+ schemaVersion: 1,+ invocationId: 'invocation-5',+ taskId: 'task-1',type: 'http',sourceUrl: 'https://example.com',uris: [],@@ -86,6 +101,9 @@ describe('AuditViewMixin', () => {it('output object does not have headers, proxy, sourceUrl keys', () => {const v = sanitizeForAudit({+ schemaVersion: 1,+ invocationId: 'invocation-6',+ taskId: 'task-1',type: 'http',sourceUrl: 'https://example.com/path',uris: [],diff --git a/src/core/plugin/hooks/eligibility.test.ts b/src/core/plugin/hooks/eligibility.test.tsindex a1b5c4c7..8dc9b54d 100644--- a/src/core/plugin/hooks/eligibility.test.ts+++ b/src/core/plugin/hooks/eligibility.test.ts@@ -1,5 +1,6 @@import type { PluginManifest } from '@shared/types/plugin'import { describe, expect, it } from 'vitest'+import { HOST_PATTERN_CONFORMANCE_CASES } from '../permissions/host-pattern.corpus'import {isEligible,matchPattern,@@ -82,6 +83,19 @@ describe('matchPattern', () => {})describe('isEligible', () => {+ it.each(HOST_PATTERN_CONFORMANCE_CASES)(+ 'matches shared host corpus: $name',+ ({ pattern, url, expected }) => {+ const manifest = makeManifest({+ hooks: { beforeCreate: {} },+ hostPermissions: [pattern],+ })+ expect(isEligible({ manifest, hook: 'beforeCreate', taskUrl: url })).toBe(+ expected+ )+ }+ )+// Case 1: plugin declares beforeCreate + hostPermissions matching task URLit('beforeCreate with matching hostPermissions is eligible', () => {const manifest = makeManifest({@@ -311,8 +325,8 @@ describe('isEligible', () => {).toBe(false)})- // beforeFinalize also URL-filtered- it('beforeFinalize with matching hostPermissions is eligible', () => {+ // Finalization is a task lifecycle hook, not a network-selection hook.+ it('beforeFinalize ignores hostPermissions even when a task URL exists', () => {const manifest = makeManifest({hooks: { beforeFinalize: {} },hostPermissions: ['*://api.example.com/*'],@@ -326,7 +340,7 @@ describe('isEligible', () => {).toBe(true)})- it('beforeFinalize without hostPermissions and taskUrl is not eligible (I29)', () => {+ it('beforeFinalize without hostPermissions remains eligible (H18)', () => {const manifest = makeManifest({hooks: { beforeFinalize: {} },hostPermissions: [],@@ -337,7 +351,7 @@ describe('isEligible', () => {hook: 'beforeFinalize',taskUrl: 'https://api.example.com/v1/list',})- ).toBe(false)+ ).toBe(true)})it('beforeFinalize without taskUrl is eligible (no URL filtering needed)', () => {@@ -383,15 +397,13 @@ describe('urlMatchesHostPermissions', () => {).toBe(false)})- it('glob edge: *://*.youtube.com/* does NOT match bare youtube.com (no subdomain)', () => {- // Documents the source-of-truth behavior: the glob requires a subdomain.- // If bare-domain matching is wanted, fix the manifest, not this helper.+ it('subdomain wildcard includes the suffix host', () => {expect(urlMatchesHostPermissions(['*://*.youtube.com/*'],'https://youtube.com/watch?v=x')- ).toBe(false)+ ).toBe(true)})it('*://*/* matches an arbitrary url — the helper itself is broad', () => {diff --git a/src/core/plugin/hooks/eligibility.ts b/src/core/plugin/hooks/eligibility.tsindex 789bdba3..975f5f7b 100644--- a/src/core/plugin/hooks/eligibility.ts+++ b/src/core/plugin/hooks/eligibility.ts@@ -1,19 +1,12 @@import type { PluginManifest } from '@shared/types/plugin'import type { HookName } from '../host/bridge-protocol'+import {+ matchesAnyHostPermission,+ matchesHostPermission,+} from '../permissions/host-pattern'export function matchPattern(pattern: string, url: string): boolean {- if (pattern === '<all_urls>') return /^https?:\/\//.test(url)- // Chrome MV3 subset: scheme://host/path with * wildcards.- // Transform order is critical to avoid mangling the scheme sentinel:- // 1. Escape regex metacharacters (except *) — . becomes \., etc.- // 2. Replace every remaining raw * with .* (wildcard expansion)- // 3. Replace the leading .*:// (which came from the *:// scheme wildcard)- // with (http|https):// so *:// matches both schemes.- const re = pattern- .replace(/[.+?^${}()|[\]\\]/g, '\\$&')- .replace(/\*/g, '.*')- .replace(/^\.\*:\/\//, '(http|https)://')- return new RegExp(`^${re}$`).test(url)+ return matchesHostPermission(pattern, url)}export interface EligibilityInput {@@ -29,7 +22,7 @@ export function isEligible({}: EligibilityInput): boolean {const hooks = manifest.contributes.hooks ?? {}if (!(hook in hooks)) return false- if (hook !== 'beforeCreate' && hook !== 'beforeFinalize') return true+ if (hook !== 'beforeCreate') return trueif (!taskUrl) return trueconst patterns = manifest.hostPermissions ?? []if (patterns.length === 0) return false // I29@@ -46,5 +39,5 @@ export function urlMatchesHostPermissions(hostPermissions: ReadonlyArray<string> | undefined,url: string): boolean {- return (hostPermissions ?? []).some((p) => matchPattern(p, url))+ return matchesAnyHostPermission(hostPermissions, url)}diff --git a/src/core/plugin/hooks/hook-context.test.ts b/src/core/plugin/hooks/hook-context.test.tsindex 80c05250..f8b245ae 100644--- a/src/core/plugin/hooks/hook-context.test.ts+++ b/src/core/plugin/hooks/hook-context.test.ts@@ -1,3 +1,4 @@+import type { PluginTaskSnapshotV1 } from '@shared/schemas/plugin-hooks'import type {AfterCompleteContextDTO,BeforeCreateBtContextDTO,@@ -54,6 +55,9 @@ function makeReadonlyMeta(): ReadonlyPluginMetadata {}const BASE_HTTP_DTO: BeforeCreateHttpContextDTO = {+ schemaVersion: 1,+ invocationId: 'invocation-http-1',+ taskId: 'task-1',type: 'http',sourceUrl: 'https://example.com/file.zip',createdBy: 'user',@@ -64,6 +68,9 @@ const BASE_HTTP_DTO: BeforeCreateHttpContextDTO = {}const BASE_BT_DTO: BeforeCreateBtContextDTO = {+ schemaVersion: 1,+ invocationId: 'invocation-bt-1',+ taskId: 'task-1',type: 'bt',sourceUrl: 'magnet:?xt=urn:btih:abc123',createdBy: 'user',@@ -117,22 +124,75 @@ const BASE_TASK: DownloadTask = {sourceMeta: null,}+const PLUGIN_TASK: PluginTaskSnapshotV1 = {+ schemaVersion: 1,+ id: BASE_TASK.id,+ name: BASE_TASK.name,+ type: BASE_TASK.type,+ kind: BASE_TASK.kind,+ status: BASE_TASK.status,+ filePath: BASE_TASK.finalPath,+ saveDir: BASE_TASK.saveDir,+ filename: BASE_TASK.filename,+ progress: 100,+ totalBytes: BASE_TASK.totalBytes,+ downloadedBytes: BASE_TASK.downloadedBytes,+ uploadedBytes: BASE_TASK.uploadedBytes,+ sizeWhenDone: BASE_TASK.sizeWhenDone,+ fileCount: BASE_TASK.fileCount,+ createdAt: BASE_TASK.createdAt,+ updatedAt: BASE_TASK.updatedAt,+ finishedAt: BASE_TASK.finishedAt,+ category: BASE_TASK.category,+ infoHash: BASE_TASK.infoHash,+ error: null,+}+const AFTER_COMPLETE_DTO: AfterCompleteContextDTO = {- task: BASE_TASK,+ schemaVersion: 1,+ invocationId: 'delivery-1:attempt-1',+ taskId: BASE_TASK.id,+ task: PLUGIN_TASK,filePath: '/tmp/downloads/file.zip',+ delivery: {+ schemaVersion: 1,+ id: 'delivery-1',+ occurrenceId: 'occurrence-1',+ occurredAt: 1_000_002,+ },}const BEFORE_FINALIZE_DTO: BeforeFinalizeContextDTO = {+ schemaVersion: 1,+ invocationId: 'before-finalize-1',+ taskId: BASE_TASK.id,sourceUrl: 'https://example.com/file.zip',createdBy: 'user',requestedAt: 1_000_000,- task: BASE_TASK,+ task: PLUGIN_TASK,+ inputFilePath: '/tmp/downloads/file.zip.aria2',filePath: '/tmp/downloads/file.zip',+ targetFilePath: '/tmp/downloads/file.zip',}const ON_ERROR_DTO: OnErrorContextDTO = {- task: BASE_TASK,- error: { code: 'ERR_TIMEOUT', message: 'Connection timed out' },+ schemaVersion: 1,+ invocationId: 'delivery-2:attempt-1',+ taskId: BASE_TASK.id,+ task: PLUGIN_TASK,+ filePath: '/tmp/downloads/file.zip',+ delivery: {+ schemaVersion: 1,+ id: 'delivery-2',+ occurrenceId: 'occurrence-2',+ occurredAt: 1_000_002,+ },+ error: {+ code: 'ERR_TIMEOUT',+ message: 'Connection timed out',+ detailKey: null,+ detailParams: null,+ },}// ── makeBeforeCreateHttp ──────────────────────────────────────────────────────diff --git a/src/core/plugin/hooks/hook-orchestrator.integration.test.ts b/src/core/plugin/hooks/hook-orchestrator.integration.test.tsindex 1f4b9af0..1799dc15 100644--- a/src/core/plugin/hooks/hook-orchestrator.integration.test.ts+++ b/src/core/plugin/hooks/hook-orchestrator.integration.test.ts@@ -2,10 +2,10 @@// End-to-end integration test for the PR-2 ffmpeg staging pipeline:// 1. beforeFinalize chain runs a plugin that "transcodes" into saveDir// (we simulate ffmpeg via fs.writeFile to the staging-redirected path).-// 2. The orchestrator's chain-commit promotes the matching staging to-// saveDir; the rest are discarded.-// 3. On chain abort (critical-role plugin throws), every in-flight-// staging is discarded — file ends up in neither saveDir nor staging.+// 2. The orchestrator returns the explicit logical-to-private mapping but+// performs no file mutation.+// 3. On chain abort, unjournaled bytes remain private for identity-aware+// quarantine/cleanup instead of being recursively deleted.import { mkdir, mkdtemp, readFile, rm, stat, writeFile } from 'node:fs/promises'import os from 'node:os'@@ -13,8 +13,19 @@ import path from 'node:path'import type { Worker } from 'node:worker_threads'import type { PluginManifest } from '@shared/types/plugin'import type { BeforeFinalizeContextDTO } from '@shared/types/plugin-hooks'-import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'-import type { CapabilityBridge } from '../host/capability-bridge'+import {+ afterEach,+ beforeEach,+ describe,+ expect,+ it,+ type Mock,+ vi,+} from 'vitest'+import type {+ CapabilityBridge,+ HookContextArgs,+} from '../host/capability-bridge'import type { ActivePluginInfo, PluginHost } from '../host/plugin-host'import { HookOrchestrator } from './hook-orchestrator'import type { FfmpegStaging } from './staging-dir'@@ -34,9 +45,9 @@ interface FixturePlugin {}interface MockBridge {- setHookContext: ReturnType<typeof vi.fn>- clearHookContext: ReturnType<typeof vi.fn>- notifyAbort: ReturnType<typeof vi.fn>+ setHookContext: Mock<(args: HookContextArgs) => void>+ clearHookContext: Mock<() => void>+ notifyAbort: Mock<() => void>}function makeManifest(p: FixturePlugin): PluginManifest {@@ -58,9 +69,9 @@ function makeManifest(p: FixturePlugin): PluginManifest {function makeMockBridge(): MockBridge {return {- setHookContext: vi.fn(),- clearHookContext: vi.fn(),- notifyAbort: vi.fn(),+ setHookContext: vi.fn<(args: HookContextArgs) => void>(),+ clearHookContext: vi.fn<() => void>(),+ notifyAbort: vi.fn<() => void>(),}}@@ -89,11 +100,16 @@ function makeMockHost(plugins: FixturePlugin[], saveDir: string): PluginHost {const host: Partial<PluginHost> = {allActive: () => active,- invokeHook: async (id) => {+ invokeHook: async (id, _hook, args) => {const plugin = plugins.find((p) => p.id === id)const bridge = bridges.get(id)if (!plugin || !bridge) return- await plugin.handler({ bridge, saveDir, pluginId: id })+ bridge.setHookContext(args.context)+ try {+ await plugin.handler({ bridge, saveDir, pluginId: id })+ } finally {+ bridge.clearHookContext()+ }},bridgeFor: (id: string) =>bridges.get(id) as unknown as CapabilityBridge | undefined,@@ -108,9 +124,9 @@ function makeBeforeFinalizeDto(filePath: string): BeforeFinalizeContextDTO {sourceUrl: 'https://example.com/video',createdBy: 'user',requestedAt: 1_700_000_000_000,- task: { id: 'task-1' } as never,+ task: { id: 'task-1', saveDir: path.dirname(filePath) } as never,filePath,- } as BeforeFinalizeContextDTO+ } as unknown as BeforeFinalizeContextDTO}// Simulate ffmpeg: writes input bytes to the staging-redirected output path@@ -121,6 +137,9 @@ async function simulateFfmpegToStaging(args: {outputPath: string}): Promise<void> {const ctx = args.bridge.setHookContext.mock.calls[0]?.[0]+ if (!ctx || !('staging' in ctx) || !ctx.staging || !('staged' in ctx)) {+ throw new Error('beforeFinalize Hook context is incomplete')+ }const staging = ctx.staging as FfmpegStagingawait staging.ensureDir()const redirected = staging.redirectOutput(args.outputPath)@@ -145,7 +164,7 @@ describe('HookOrchestrator <-> FfmpegStaging — ffmpeg -> saveDir end-to-end',await rm(tmp, { recursive: true, force: true })})- it('beforeFinalize: ffmpeg -> saveDir gets staged then promoted on commit', async () => {+ it('beforeFinalize returns a replacement mapping without promotion', async () => {const saveDir = path.join(tmp, 'sd')await mkdir(saveDir, { recursive: true })const inputPath = path.join(saveDir, 'input.webm')@@ -184,14 +203,18 @@ describe('HookOrchestrator <-> FfmpegStaging — ffmpeg -> saveDir end-to-end',expect(result.aborted).toBeFalsy()if (result.aborted) throw new Error('unreachable')expect(result.finalFilePath).toBe(finalPath)- // File exists at the final saveDir location with the original bytes.- expect(await readFile(finalPath, 'utf8')).toBe('fake-input-bytes')- // Staging dir is gone.const stagingDir = path.join(tmp, 'alice', 'staging', 'task-1')- expect(await stat(stagingDir).catch(() => null)).toBeNull()+ expect(result.replacement).toEqual({+ pluginId: 'alice',+ stagedPath: path.join(stagingDir, 'final.mp4'),+ })+ expect(await readFile(result.replacement?.stagedPath ?? '', 'utf8')).toBe(+ 'fake-input-bytes'+ )+ expect(await stat(finalPath).catch(() => null)).toBeNull()})- it('beforeFinalize: chain abort leaves file in neither saveDir nor staging', async () => {+ it('beforeFinalize abort preserves private bytes for safe recovery', async () => {const saveDir = path.join(tmp, 'sd')await mkdir(saveDir, { recursive: true })const inputPath = path.join(saveDir, 'input.webm')@@ -234,8 +257,9 @@ describe('HookOrchestrator <-> FfmpegStaging — ffmpeg -> saveDir end-to-end',expect(result.reason).toContain('alice')// No file at the final saveDir location.expect(await stat(finalPath).catch(() => null)).toBeNull()- // No bytes remain in staging either.const stagingDir = path.join(tmp, 'alice', 'staging', 'task-2')- expect(await stat(stagingDir).catch(() => null)).toBeNull()+ expect(await readFile(path.join(stagingDir, 'final.mp4'), 'utf8')).toBe(+ 'fake-input-bytes'+ )})})diff --git a/src/core/plugin/hooks/hook-orchestrator.test.ts b/src/core/plugin/hooks/hook-orchestrator.test.tsindex 919c93cd..374f1603 100644--- a/src/core/plugin/hooks/hook-orchestrator.test.ts+++ b/src/core/plugin/hooks/hook-orchestrator.test.ts@@ -12,7 +12,7 @@import { mkdir, mkdtemp, readFile, rm, stat, writeFile } from 'node:fs/promises'import os from 'node:os'-import { join as pathJoin } from 'node:path'+import { dirname as pathDirname, join as pathJoin } from 'node:path'import type { Worker } from 'node:worker_threads'import type { PluginManifest } from '@shared/types/plugin'import type {@@ -40,6 +40,7 @@ type HookHandler = (args: {hook: stringpluginId: stringbridge: MockBridge+ ctxPayload?: Record<string, unknown>}) => void | Promise<void>interface FixturePlugin {@@ -125,14 +126,24 @@ function makeMockHost(plugins: FixturePlugin[]): {const plugin = plugins.find((p) => p.id === id)const bridge = bridges.get(id)if (!plugin || !bridge) return- if (plugin.handler) {- await plugin.handler({- taskId: args.taskId,- signal: args.signal,- hook,- pluginId: id,- bridge,- })+ const setContext = bridge.setHookContext as unknown as (+ context: unknown+ ) => void+ const clearContext = bridge.clearHookContext as unknown as () => void+ setContext(args.context)+ try {+ if (plugin.handler) {+ await plugin.handler({+ taskId: args.taskId,+ signal: args.signal,+ hook,+ pluginId: id,+ bridge,+ ctxPayload: args.ctxPayload,+ })+ }+ } finally {+ clearContext()}},bridgeFor: (id: string) =>@@ -161,12 +172,18 @@ function makeBeforeCreateDto(function makeBeforeFinalizeDto(partial: Partial<BeforeFinalizeContextDTO> = {}): BeforeFinalizeContextDTO {+ const filePath = partial.filePath ?? '/downloads/file.zip'return {+ schemaVersion: 1,+ invocationId: 'before-finalize:task-1',+ taskId: 'task-1',sourceUrl: 'https://example.com/file.zip',createdBy: 'user',requestedAt: 1_700_000_000_000,- task: { id: 'task-1' } as never,- filePath: '/downloads/file.zip',+ task: { id: 'task-1', saveDir: pathDirname(filePath) } as never,+ inputFilePath: '/downloads/file.zip.motrix',+ filePath,+ targetFilePath: filePath,...partial,} as BeforeFinalizeContextDTO}@@ -183,6 +200,54 @@ const ORCH_OPTS_BASE = {// ---------------------------------------------------------------------------describe('HookOrchestrator', () => {+ it('discovers an inactive registry candidate and activates it on Hook demand', async () => {+ const plugin: FixturePlugin = {+ id: 'idle-plugin',+ role: 'resolve',+ hooks: ['beforeCreate'],+ }+ const bridge = makeMockBridge()+ const info: ActivePluginInfo = {+ id: plugin.id,+ manifest: makeManifest(plugin),+ bridge: bridge as unknown as CapabilityBridge,+ worker: makeMockWorker(),+ }+ let active: ActivePluginInfo[] = []+ const invokeHook = vi.fn()+ const host = {+ allActive: () => active,+ invokeHook,+ disable: vi.fn(),+ } as unknown as PluginHost+ const activateForHook = vi.fn(async () => {+ active = [info]+ })+ const activationDispatcher = {+ candidatesForHook: () => [+ {+ id: plugin.id,+ manifest: info.manifest,+ generation: 1,+ executableDigest: 'a'.repeat(64),+ role: 'resolve' as const,+ },+ ],+ activateForHook,+ }+ const orchestrator = new HookOrchestrator({+ host,+ activationDispatcher,+ hookTimeoutMs: TIMEOUTS,+ ...ORCH_OPTS_BASE,+ })++ await orchestrator.runBeforeCreateHttp(makeBeforeCreateDto(), 'task-1')++ expect(activateForHook).toHaveBeenCalledWith('idle-plugin', 'beforeCreate')+ expect(invokeHook).toHaveBeenCalledOnce()+ })+describe('runBeforeCreateHttp — happy path', () => {let host: PluginHostlet bridges: Map<string, MockBridge>@@ -249,6 +314,44 @@ describe('HookOrchestrator', () => {expect(result.contributors.headers).toContain('plugin-enrich')})+ it('passes each accepted patch into the next plugin working context', async () => {+ let laterPayload: Record<string, unknown> | undefined+ const { host } = makeMockHost([+ {+ id: 'a.resolve',+ role: 'resolve',+ hooks: ['beforeCreate'],+ handler: ({ bridge, pluginId }) => {+ const ctx = bridge.setHookContext.mock.calls[0]?.[0]+ ctx.staged.appendHttp(pluginId, 'resolve', {+ uris: ['https://cdn.example.test/asset'],+ headers: [{ name: 'X-Resolved', value: 'yes' }],+ })+ },+ },+ {+ id: 'b.enrich',+ role: 'enrich',+ hooks: ['beforeCreate'],+ handler: ({ ctxPayload }) => {+ laterPayload = ctxPayload+ },+ },+ ])+ const orch = new HookOrchestrator({+ host,+ hookTimeoutMs: TIMEOUTS,+ ...ORCH_OPTS_BASE,+ })++ await orch.runBeforeCreateHttp(makeBeforeCreateDto(), 'task-1')++ expect(laterPayload).toMatchObject({+ uris: ['https://cdn.example.test/asset'],+ headers: [{ name: 'X-Resolved', value: 'yes' }],+ })+ })+it('clears hook context on every plugin after invocation', async () => {const orch = new HookOrchestrator({host,@@ -527,6 +630,56 @@ describe('HookOrchestrator', () => {expect(result.final.filePath).toBe('/downloads/final.zip')})+ it('passes the accepted target and real task context to the next plugin', async () => {+ const fsTaskHost = { stat: vi.fn() }+ const metadata = { release: 'stable' }+ let laterPayload: Record<string, unknown> | undefined+ const { host } = makeMockHost([+ {+ id: 'a.resolve',+ role: 'resolve',+ hooks: ['beforeFinalize'],+ handler: ({ bridge }) => {+ const ctx = bridge.setHookContext.mock.calls[0]?.[0]+ ctx.staged.setFinalizePath('/downloads/renamed.zip')+ },+ },+ {+ id: 'b.post',+ role: 'post-process',+ hooks: ['beforeFinalize'],+ handler: ({ ctxPayload }) => {+ laterPayload = ctxPayload+ },+ },+ ])+ const capabilityHost = {+ fsTaskFor: vi.fn(() => fsTaskHost),+ metadata: { getAll: vi.fn(async () => metadata) },+ }+ const orch = new HookOrchestrator({+ host,+ capabilityHost: capabilityHost as never,+ hookTimeoutMs: TIMEOUTS,+ ...ORCH_OPTS_BASE,+ })++ await orch.runBeforeFinalize(makeBeforeFinalizeDto(), 'task-1')++ expect(laterPayload).toMatchObject({+ filePath: '/downloads/renamed.zip',+ targetFilePath: '/downloads/renamed.zip',+ })+ expect(capabilityHost.fsTaskFor).toHaveBeenCalledWith(+ '/downloads',+ expect.any(String)+ )+ expect(capabilityHost.metadata.getAll).toHaveBeenCalledWith(+ 'task-1',+ 'b.post'+ )+ })+it('fail-closed resolves trigger chain abort with the plugin id in reason', async () => {const { host } = makeMockHost([{@@ -553,9 +706,7 @@ describe('HookOrchestrator', () => {expect(result.reason).toContain('resolve crash')})- it('still returns aborted when staging discard fails during the abort', async () => {- // A discard failure must not escape the abort path and turn the- // { aborted } result into a thrown rejection the caller can't classify.+ it('does not recursively discard unjournaled bytes during abort', async () => {const discardSpy = vi.spyOn(FfmpegStaging.prototype, 'discard').mockRejectedValue(new Error('EPERM: discard failed'))@@ -584,7 +735,7 @@ describe('HookOrchestrator', () => {expect(result.aborted).toBe(true)if (!result.aborted) throw new Error('unreachable')expect(result.reason).toContain('plugin-resolve')- expect(discardSpy).toHaveBeenCalled()+ expect(discardSpy).not.toHaveBeenCalled()discardSpy.mockRestore()})@@ -604,7 +755,7 @@ describe('HookOrchestrator', () => {})await orch.runParallel('afterComplete',- { task: { id: 'task-1' } as never, filePath: '/x' },+ { task: { id: 'task-1' }, filePath: '/x' } as never,'task-1')const counts = new Map<string, number>()@@ -651,7 +802,7 @@ describe('HookOrchestrator', () => {})await orch.runParallel('afterComplete',- { task: { id: 'task-1' } as never, filePath: '/x' },+ { task: { id: 'task-1' }, filePath: '/x' } as never,'task-1')// p1 and p3 ran even though p2 threw@@ -668,7 +819,7 @@ describe('HookOrchestrator', () => {})const r = await orch.runParallel('afterComplete',- { task: { id: 'task-1' } as never, filePath: '/x' },+ { task: { id: 'task-1' }, filePath: '/x' } as never,'task-1')expect(r).toBeUndefined()@@ -874,7 +1025,7 @@ describe('HookOrchestrator', () => {})await orch.runParallel('afterComplete',- { task: { id: 'task-1' } as never, filePath: '/x' },+ { task: { id: 'task-1' }, filePath: '/x' } as never,'task-1')const ctx = bridges.get('alice')?.setHookContext.mock.calls[0]?.[0]@@ -914,7 +1065,7 @@ describe('HookOrchestrator', () => {})})- describe('runBeforeFinalize — chain commit promotion', () => {+ describe('runBeforeFinalize — replacement plan', () => {let tmp: stringbeforeEach(async () => {@@ -925,7 +1076,7 @@ describe('HookOrchestrator', () => {await rm(tmp, { recursive: true, force: true })})- it('promotes the one staging whose dir contains the final filePath', async () => {+ it('returns an explicit staging mapping without promoting bytes', async () => {const saveDir = pathJoin(tmp, 'sd')await mkdir(saveDir, { recursive: true })// Pre-write staged files for both plugins. The orchestrator will build@@ -947,6 +1098,7 @@ describe('HookOrchestrator', () => {hooks: ['beforeFinalize'],handler: ({ bridge }) => {const ctx = bridge.setHookContext.mock.calls[0]?.[0]+ ctx.staging.redirectOutput(pathJoin(saveDir, 'final.mp4'))ctx.staged.setFinalizePath(pathJoin(saveDir, 'final.mp4'))},},@@ -966,18 +1118,17 @@ describe('HookOrchestrator', () => {makeBeforeFinalizeDto({ filePath: pathJoin(saveDir, 'input.mp4') }),'t-1')- expect(result.aborted).toBeFalsy()- expect(await readFile(pathJoin(saveDir, 'final.mp4'), 'utf8')).toBe(- 'alice-bytes'- )- // Bob's staging dir was discarded (didn't own finalFilePath)- expect(await stat(bobDir).catch(() => null)).toBeNull()- // Alice's staging dir was also removed after promote (promote() does- // rm -rf)- expect(await stat(aliceDir).catch(() => null)).toBeNull()+ if (result.aborted) throw new Error('expected a plan')+ expect(result.replacement).toEqual({+ pluginId: 'alice',+ stagedPath: pathJoin(aliceDir, 'final.mp4'),+ })+ await expect(readFile(pathJoin(saveDir, 'final.mp4'))).rejects.toThrow()+ expect((await stat(bobDir)).isDirectory()).toBe(true)+ expect((await stat(aliceDir)).isDirectory()).toBe(true)})- it('discards every staging when no plugin set finalizePath', async () => {+ it('does not guess replacement ownership by scanning staging', async () => {const saveDir = pathJoin(tmp, 'sd2')await mkdir(saveDir, { recursive: true })const aliceDir = pathJoin(tmp, 'alice', 'staging', 't-2')@@ -997,12 +1148,12 @@ describe('HookOrchestrator', () => {makeBeforeFinalizeDto({ filePath: pathJoin(saveDir, 'input.mp4') }),'t-2')- expect(result.aborted).toBeFalsy()- // Alice's staging dir is gone- expect(await stat(aliceDir).catch(() => null)).toBeNull()+ if (result.aborted) throw new Error('expected a plan')+ expect(result.replacement).toBeUndefined()+ expect((await stat(aliceDir)).isDirectory()).toBe(true)})- it('promotes only the first by role-band when multiple stagings hold the final path', async () => {+ it('fails closed when multiple plugins map a replacement to one target', async () => {const saveDir = pathJoin(tmp, 'sd')await mkdir(saveDir, { recursive: true })// Both alice (resolve, earlier role band) and bob (post-process, later)@@ -1026,6 +1177,7 @@ describe('HookOrchestrator', () => {hooks: ['beforeFinalize'],handler: ({ bridge }) => {const ctx = bridge.setHookContext.mock.calls[0]?.[0]+ ctx.staging.redirectOutput(pathJoin(saveDir, 'final.mp4'))ctx.staged.setFinalizePath(pathJoin(saveDir, 'final.mp4'))},},@@ -1035,6 +1187,7 @@ describe('HookOrchestrator', () => {hooks: ['beforeFinalize'],handler: ({ bridge }) => {const ctx = bridge.setHookContext.mock.calls[0]?.[0]+ ctx.staging.redirectOutput(pathJoin(saveDir, 'final.mp4'))ctx.staged.setFinalizePath(pathJoin(saveDir, 'final.mp4'))},},@@ -1049,13 +1202,11 @@ describe('HookOrchestrator', () => {makeBeforeFinalizeDto({ filePath: pathJoin(saveDir, 'input.mp4') }),'t-1')- expect(result.aborted).toBeFalsy()- // alice wins (first by role-band)- expect(await readFile(pathJoin(saveDir, 'final.mp4'), 'utf8')).toBe(- 'alice-bytes'- )- // bob's staging dir was discarded- expect(await stat(bobDir).catch(() => null)).toBeNull()+ expect(result.aborted).toBe(true)+ if (!result.aborted) throw new Error('expected an abort')+ expect(result.reason).toContain('multiple plugins')+ await expect(readFile(pathJoin(saveDir, 'final.mp4'))).rejects.toThrow()+ expect((await stat(bobDir)).isDirectory()).toBe(true)})it('records staging fields in the chain.commit audit log', async () => {@@ -1073,6 +1224,7 @@ describe('HookOrchestrator', () => {hooks: ['beforeFinalize'],handler: ({ bridge }) => {const ctx = bridge.setHookContext.mock.calls[0]?.[0]+ ctx.staging.redirectOutput(pathJoin(saveDir, 'out.mp4'))ctx.staged.setFinalizePath(pathJoin(saveDir, 'out.mp4'))},},@@ -1103,14 +1255,14 @@ describe('HookOrchestrator', () => {stagingBytesDiscarded?: number}expect(commit).toBeDefined()- expect(commit.stagingPromoted).toBe(true)+ expect(commit.stagingPromoted).toBe(false)expect(commit.stagingPluginId).toBe('alice')- expect(commit.stagingBytesPromoted).toBe(11) // 'hello-world'.length+ expect(commit.stagingBytesPromoted).toBe(0)expect(commit.stagingBytesDiscarded).toBe(0)})})- describe('runBeforeFinalize — chain abort cleanup', () => {+ describe('runBeforeFinalize — chain abort quarantine boundary', () => {let tmp: stringbeforeEach(async () => {tmp = await mkdtemp(pathJoin(os.tmpdir(), 'orch-abort-'))@@ -1119,7 +1271,7 @@ describe('HookOrchestrator', () => {await rm(tmp, { recursive: true, force: true })})- it('chain abort discards every in-flight staging', async () => {+ it('chain abort preserves staging for identity-aware cleanup', async () => {const aliceDir = pathJoin(tmp, 'alice', 'staging', 't-3')const bobDir = pathJoin(tmp, 'bob', 'staging', 't-3')await mkdir(aliceDir, { recursive: true })@@ -1161,9 +1313,8 @@ describe('HookOrchestrator', () => {expect(result.reason).toContain('bob')expect(result.reason).toContain('bob crash')- // Both staging dirs are removed- expect(await stat(aliceDir).catch(() => null)).toBeNull()- expect(await stat(bobDir).catch(() => null)).toBeNull()+ expect((await stat(aliceDir)).isDirectory()).toBe(true)+ expect((await stat(bobDir)).isDirectory()).toBe(true)})})})diff --git a/src/core/plugin/hooks/hook-orchestrator.ts b/src/core/plugin/hooks/hook-orchestrator.tsindex 2eee185d..f85db9d7 100644--- a/src/core/plugin/hooks/hook-orchestrator.ts+++ b/src/core/plugin/hooks/hook-orchestrator.ts@@ -19,8 +19,6 @@// - Cooperates with PluginHost, CapabilityBridge, and the Plan C support// modules under @core/plugin/hooks/.-import { readdir, stat } from 'node:fs/promises'-import path from 'node:path'import { getLogger } from '@core/logger'import type {AfterCompleteContextDTO,@@ -29,6 +27,7 @@ import type {OnErrorContextDTO,} from '@shared/types/plugin-hooks'import type { CapabilityHost } from '../capabilities/interface'+import type { ActivationDispatcher } from '../host/activation-dispatcher'import type { ActivePluginInfo, PluginHost } from '../host/plugin-host'import { newHookAbort } from './abort'import type { HookAuditLog } from './audit-log'@@ -57,11 +56,18 @@ export interface CircuitBreaker {export interface OrchestratorOptions {host: PluginHost+ /** Registry-backed discovery and demand activation. Required in production. */+ activationDispatcher?: Pick<+ ActivationDispatcher,+ 'candidatesForHook' | 'activateForHook'+ >hookTimeoutMs: { series: number; parallel: number }/** Root directory under which `<pluginId>/staging/<taskId>/` lives. */pluginsDir: string/** Returns the plugin's storage root; orchestrator passes it to the bridge. */pluginStorageRootFor: (pluginId: string) => string+ /** Production task-filesystem and metadata context for every Hook. */+ capabilityHost?: Pick<CapabilityHost, 'fsTaskFor' | 'metadata'>/** ffmpeg per-(plugin, task) staging quota in bytes. */ffmpegStagingQuotaBytes?: number/** Optional NDJSON audit log; T15 wires the real instance. */@@ -86,6 +92,8 @@ export interface BeforeFinalizeResult {final: BeforeFinalizeContextDTO/** Path requested by the last resolve/post-process plugin to set finalizePath. */finalFilePath?: string+ /** Invocation-private replacement mapping; the finalizer verifies identity. */+ replacement?: { pluginId: string; stagedPath: string }staged: StagedEffectStore}@@ -139,7 +147,11 @@ export class HookOrchestrator {initial: BeforeCreateHttpContextDTO,taskId: string): Promise<BeforeCreateHttpResult | ChainAborted> {- const chain = this.eligiblePlugins('beforeCreate', initial.uris[0])+ const chain = await this.eligiblePlugins(+ 'beforeCreate',+ initial.uris[0],+ initial.type+ )log.info({taskId,@@ -159,6 +171,7 @@ export class HookOrchestrator {const staged = new StagedEffectStore()const timeout = this.opts.hookTimeoutMs.series+ let working = cloneBeforeCreate(initial)for (const entry of chain) {if (this.opts.breaker?.isOpen(entry.id, 'beforeCreate')) {@@ -177,50 +190,29 @@ export class HookOrchestrator {const abort = newHookAbort(entry.info.bridge, entry.info.worker, timeout)- // Set hook context BEFORE invocation: staged store, role, saveDir all- // need to be live for ctx.update / metadata.set to be routed correctly- // by the phase-matrix gate (T8).- entry.info.bridge.setHookContext({- // Plan C ships only the bare hook context for beforeCreate (no- // fsTaskHost — fs.task is disallowed in beforeCreate per the matrix).- // The bridge's setHookContext requires a non-null host for the Plan B- // shape; we satisfy the type with a stub that throws if invoked. The- // matrix gate fires before any dispatch reaches the host.- fsTaskHost: STUB_FS_TASK_HOST,- taskId,- phase: 'beforeCreate',- staged,- role: entry.role,- saveDir: initial.saveDir,- pluginStorageRoot: this.opts.pluginStorageRootFor(entry.id),- })-try {+ const metadataSnapshot = await this.metadataSnapshot(taskId, entry.id)await this.opts.host.invokeHook(entry.id, 'beforeCreate', {taskId,signal: abort.signal,timeoutMs: timeout,- ctxPayload: {- type: initial.type,- sourceUrl: initial.sourceUrl,- uris: [...initial.uris],- saveDir: initial.saveDir,- filename: initial.filename,- connections: initial.connections,- headers: initial.headers.map((h) => ({- name: h.name,- value: h.value,- })),- proxy: initial.proxy,- createdBy: initial.createdBy,- requestedAt: initial.requestedAt,+ ctxPayload: cloneBeforeCreate(working),+ metadataSnapshot,+ context: {+ fsTaskHost: STUB_FS_TASK_HOST,+ taskId,+ phase: 'beforeCreate',+ staged,+ role: entry.role,+ saveDir: working.saveDir,+ pluginStorageRoot: this.opts.pluginStorageRootFor(entry.id),},})+ working = mergeBeforeCreateWorking(initial, staged)this.opts.breaker?.success(entry.id, 'beforeCreate')} catch (e) {this.opts.breaker?.failure(entry.id, 'beforeCreate')await this.maybeDisable(entry.id, 'beforeCreate')- entry.info.bridge.clearHookContext()const message = (e as Error).messageawait this.opts.auditLog?.log({type: 'chain.plugin_error',@@ -245,9 +237,8 @@ export class HookOrchestrator {// fail-open with isolation: drop this plugin's partial effects so the// merge step does not pick them up.staged.removeFromPlugin(entry.id)- continue+ working = mergeBeforeCreateWorking(initial, staged)}- entry.info.bridge.clearHookContext()}// Merge chain — produces the final headers/uris/proxy/filename plus@@ -291,7 +282,11 @@ export class HookOrchestrator {initial: BeforeFinalizeContextDTO,taskId: string): Promise<BeforeFinalizeResult | ChainAborted> {- const chain = this.eligiblePlugins('beforeFinalize', initial.sourceUrl)+ const chain = await this.eligiblePlugins(+ 'beforeFinalize',+ undefined,+ initial.task.type+ )if (chain.length === 0) {return {final: initial,@@ -302,6 +297,7 @@ export class HookOrchestrator {const staged = new StagedEffectStore()const timeout = this.opts.hookTimeoutMs.series+ let working = cloneBeforeFinalize(initial)for (const entry of chain) {if (this.opts.breaker?.isOpen(entry.id, 'beforeFinalize')) {@@ -320,7 +316,7 @@ export class HookOrchestrator {// beforeFinalize uses the saveDir derived from initial.filePath's parent// for path-escape validation (T3 validateFinalizePatch). The bridge gate// also needs a non-null fsTaskHost for the matrix branch.- const saveDir = parentDirOf(initial.filePath)+ const saveDir = initial.task.saveDir// Per-plugin ffmpeg staging dir. PR-2 Task 4: orchestrator owns the// lifecycle because both taskId and pluginId are in scope here. The// bridge enforces the staging-only ffmpeg saveDir write contract; this@@ -335,28 +331,43 @@ export class HookOrchestrator {quotaBytes: this.opts.ffmpegStagingQuotaBytes ?? 4 * 1024 ** 3,})staged.appendStaging(entry.id, staging)- entry.info.bridge.setHookContext({- fsTaskHost: STUB_FS_TASK_HOST,- taskId,- phase: 'beforeFinalize',- staged,- role: entry.role,- saveDir,- pluginStorageRoot: this.opts.pluginStorageRootFor(entry.id),- staging,- })+ const previousFinalizePath = staged.pendingFinalizePathtry {+ const metadataSnapshot = await this.metadataSnapshot(taskId, entry.id)await this.opts.host.invokeHook(entry.id, 'beforeFinalize', {taskId,signal: abort.signal,timeoutMs: timeout,+ ctxPayload: cloneBeforeFinalize(working),+ metadataSnapshot,+ context: {+ fsTaskHost:+ this.opts.capabilityHost?.fsTaskFor(+ initial.task.saveDir,+ initial.inputFilePath+ ) ?? STUB_FS_TASK_HOST,+ taskId,+ phase: 'beforeFinalize',+ staged,+ role: entry.role,+ saveDir,+ pluginStorageRoot: this.opts.pluginStorageRootFor(entry.id),+ staging,+ },})+ const nextTarget = staged.pendingFinalizePath+ if (nextTarget !== undefined) {+ working = {+ ...working,+ filePath: nextTarget,+ targetFilePath: nextTarget,+ }+ }this.opts.breaker?.success(entry.id, 'beforeFinalize')} catch (e) {this.opts.breaker?.failure(entry.id, 'beforeFinalize')await this.maybeDisable(entry.id, 'beforeFinalize')- entry.info.bridge.clearHookContext()const message = (e as Error).messageawait this.opts.auditLog?.log({type: 'chain.plugin_error',@@ -376,102 +387,50 @@ export class HookOrchestrator {role: entry.role,reason: message,})- // Discard every in-flight staging before aborting. Per spec §3.3 the- // orchestrator owns this cleanup — callers must not see partial bytes- // in <pluginsDir>/<pluginId>/staging/<taskId> after a chain abort.- // A discard failure (EPERM/EROFS) must NOT escape this block: that- // would replace the { aborted } result with a thrown rejection the- // caller can't classify, and it could then finalize partial state.- for (const { staging } of staged.takeAllStagings()) {- try {- await staging.discard()- } catch (discardErr) {- log.warn(- { err: discardErr, taskId, pluginId: entry.id },- 'staging discard failed during chain abort; continuing'- )- }- }return { aborted: true, reason: `${entry.id}: ${message}` }}staged.removeFromPlugin(entry.id)- continue+ staged.restoreFinalizePath(previousFinalizePath)+ working = {+ ...working,+ filePath: previousFinalizePath ?? initial.filePath,+ targetFilePath: previousFinalizePath ?? initial.targetFilePath,+ }}- entry.info.bridge.clearHookContext()}const finalFilePath = staged.pendingFinalizePath- const final: BeforeFinalizeContextDTO = {- ...initial,- filePath: finalFilePath ?? initial.filePath,- }+ const final = cloneBeforeFinalize(working)- // Drain the per-plugin stagings and decide which one (if any) gets- // promoted to its final location in saveDir; discard the rest. Spec §3.3- // mandates at most one promotion per chain — the staging whose dir- // contains the final filePath wins; remaining stagings are discarded so- // their bytes don't leak into the user's saveDir.- const saveDirForCommit = parentDirOf(initial.filePath)+ // The orchestrator only returns a logical-to-private mapping. The finalize+ // committer owns identity, journal, no-replace install, and cleanup.const stagings = staged.takeAllStagings()- let promotedPluginId: string | undefined- let stagingBytesPromoted = 0- let stagingBytesDiscarded = 0+ const replacements: Array<{ pluginId: string; stagedPath: string }> = []for (const { pluginId, staging } of stagings) {- const owns =- finalFilePath !== undefined &&- promotedPluginId === undefined &&- (await this.finalPathLivesUnderStaging(- finalFilePath,- staging,- saveDirForCommit- ))- const bytes = await stagingTotalBytes(staging)- if (owns) {- await staging.promote(finalFilePath as string)- promotedPluginId = pluginId- stagingBytesPromoted = bytes- } else {- await staging.discard()- stagingBytesDiscarded += bytes+ if (!finalFilePath) continue+ const stagedPath = staging.mappedArtifact(finalFilePath)+ if (stagedPath) replacements.push({ pluginId, stagedPath })+ }+ if (replacements.length > 1) {+ return {+ aborted: true,+ reason: 'multiple plugins selected the same finalize replacement',}}+ const replacement = replacements[0]await this.opts.auditLog?.log({type: 'chain.commit',hook: 'beforeFinalize',taskId,finalFilePath: final.filePath,- stagingPromoted: promotedPluginId !== undefined,- stagingPluginId: promotedPluginId,- stagingBytesPromoted,- stagingBytesDiscarded,+ stagingPromoted: false,+ stagingPluginId: replacement?.pluginId,+ stagingBytesPromoted: 0,+ stagingBytesDiscarded: 0,})- return { final, finalFilePath, staged }- }-- /**- * Returns true when a file exists at `staging.dir + relative(saveDir,- * finalFilePath)`. Used by the chain-commit logic to pick the single- * staging whose contents include the path the chain selected as the final- * download artefact (spec §3.3). When `finalFilePath` is outside `saveDir`,- * the relative path is `..`-prefixed and no staging can own it.- */- private async finalPathLivesUnderStaging(- finalFilePath: string,- staging: FfmpegStaging,- saveDir: string- ): Promise<boolean> {- const trimmedSaveDir = saveDir.replace(/[/\\]+$/, '')- const rel = path.relative(trimmedSaveDir, finalFilePath)- if (rel.startsWith('..')) return false- const candidate = path.join(staging.dir, rel)- try {- await stat(candidate)- return true- } catch {- return false- }+ return { final, finalFilePath, replacement, staged }}// -------------------------------------------------------------------------@@ -483,7 +442,7 @@ export class HookOrchestrator {ctxDto: AfterCompleteContextDTO | OnErrorContextDTO,taskId: string): Promise<void> {- const chain = this.eligiblePlugins(hook)+ const chain = await this.eligiblePlugins(hook)if (chain.length === 0) returnconst timeout = this.opts.hookTimeoutMs.parallel@@ -501,21 +460,23 @@ export class HookOrchestrator {}const abort = newHookAbort(entry.info.bridge, entry.info.worker, timeout)- // Parallel hooks don't stage anything (ctx.update is disallowed by the- // matrix outside before*); the Plan B-shaped context with fsTaskHost is- // sufficient. fs.task is allowed for read-only inspection so we pass a- // stub here; T15/T17 will wire the real per-task host when the orchestrator- // is hooked into TaskManager.- entry.info.bridge.setHookContext({- fsTaskHost: STUB_FS_TASK_HOST,- taskId,- })try {+ const metadataSnapshot = await this.metadataSnapshot(taskId, entry.id)await this.opts.host.invokeHook(entry.id, hook, {taskId,signal: abort.signal,timeoutMs: timeout,+ ctxPayload: { ...ctxDto },+ metadataSnapshot,+ context: {+ fsTaskHost:+ this.opts.capabilityHost?.fsTaskFor(+ ctxDto.task.saveDir,+ ctxDto.filePath+ ) ?? STUB_FS_TASK_HOST,+ taskId,+ },})this.opts.breaker?.success(entry.id, hook)} catch (e) {@@ -529,16 +490,10 @@ export class HookOrchestrator {role: entry.role,error: (e as Error).message,})- } finally {- entry.info.bridge.clearHookContext()}})await Promise.allSettled(work)- // ctxDto is currently unused — the worker reconstructs ctx from its own- // registered handler signature. The parameter is retained so T15 can pipe- // the DTO through for richer audit logging without an API change.- void ctxDto}// -------------------------------------------------------------------------@@ -551,8 +506,49 @@ export class HookOrchestrator {* is sorted by role band ascending so the chain runs resolve before enrich* before audit.*/- private eligiblePlugins(hook: AnyHook, url?: string): ChainEntry[] {+ private async eligiblePlugins(+ hook: AnyHook,+ url?: string,+ taskType?: 'http' | 'bt' | 'magnet' | 'ftp' | 'metalink'+ ): Promise<ChainEntry[]> {const out: ChainEntry[] = []+ const descriptors = this.opts.activationDispatcher?.candidatesForHook(+ hook,+ {+ taskUrl: url,+ taskType,+ }+ )+ if (descriptors) {+ for (const descriptor of descriptors) {+ await this.opts.activationDispatcher?.activateForHook(+ descriptor.id,+ hook+ )+ const info = this.opts.host+ .allActive()+ .find((active) => active.id === descriptor.id)+ if (!info) {+ throw new Error(+ `hook demand activation completed without active plugin ${descriptor.id}`+ )+ }+ const role = roleFromManifest(info, hook)+ if (role) out.push({ id: info.id, role, info })+ }+ return sortByBand(+ out.map((entry) => ({+ pluginId: entry.id,+ role: entry.role,+ info: entry.info,+ }))+ ).map((entry) => ({+ id: entry.pluginId,+ role: entry.role,+ info: entry.info,+ }))+ }+const active = this.opts.host.allActive()log.debug({@@ -608,6 +604,16 @@ export class HookOrchestrator {}}+ private metadataSnapshot(+ taskId: string,+ pluginId: string+ ): Promise<Record<string, unknown>> {+ return (+ this.opts.capabilityHost?.metadata.getAll(taskId, pluginId) ??+ Promise.resolve({})+ )+ }+/*** Plan C surface for tests / T6 audit-view callers that need to construct* the sanitized DTO for an audit-role plugin's ctx. Re-exported from the@@ -620,17 +626,7 @@ export class HookOrchestrator {// Internal helpers// ----------------------------------------------------------------------------/**- * STUB_FS_TASK_HOST — placeholder fs.task host injected during orchestrator- * hook context setup. Plan C series hooks (beforeCreate) disallow every- * fs.task method via the phase matrix, so this stub is never reached for- * those phases. Plan C parallel hooks (afterComplete / onError) DO allow- * read-only fs.task inspection, but real wiring is deferred to T15 when the- * orchestrator gains access to the TaskManager's per-task host factory.- *- * Every method throws with a clear code so it is obvious in audit logs when- * a plugin accidentally calls into the stub before T15 lands.- */+/** Unit-test fallback. Production assembly always supplies capabilityHost. */type FsTaskHost = ReturnType<CapabilityHost['fsTaskFor']>const STUB_FS_TASK_HOST: FsTaskHost = {@@ -649,33 +645,55 @@ function notWired(method: string): never {throw e}-function parentDirOf(p: string): string {- const idx = Math.max(p.lastIndexOf('/'), p.lastIndexOf('\\'))- if (idx <= 0) return '/'- return p.slice(0, idx)+function cloneBeforeCreate(+ value: BeforeCreateHttpContextDTO+): BeforeCreateHttpContextDTO {+ return {+ ...value,+ uris: [...value.uris],+ headers: value.headers.map((header) => ({ ...header })),+ }}-/**- * Walks a FfmpegStaging directory tree and returns the total bytes of all- * regular files within it. Returns 0 if the dir does not exist — callers use- * this for audit-log accounting only, so a missing dir (already promoted /- * discarded) is not an error.- */-async function stagingTotalBytes(staging: FfmpegStaging): Promise<number> {- try {- const entries = await readdir(staging.dir, {- recursive: true,- withFileTypes: true,- })- let total = 0- for (const e of entries) {- if (e.isFile()) {- const filePath = path.join(e.parentPath ?? staging.dir, e.name)- total += (await stat(filePath)).size- }- }- return total- } catch {- return 0+function mergeBeforeCreateWorking(+ initial: BeforeCreateHttpContextDTO,+ staged: StagedEffectStore+): BeforeCreateHttpContextDTO {+ const merged = mergeChain(+ {+ uris: [...initial.uris],+ filename: initial.filename,+ connections: initial.connections,+ headers: initial.headers.map((header) => ({ ...header })),+ proxy: initial.proxy,+ },+ staged.allHttpPatches()+ )+ return {+ ...initial,+ uris: merged.uris,+ filename: merged.filename,+ connections: merged.connections,+ headers: merged.headers,+ proxy: merged.proxy,+ }+}++function cloneBeforeFinalize(+ value: BeforeFinalizeContextDTO+): BeforeFinalizeContextDTO {+ return {+ ...value,+ task: {+ ...value.task,+ error: value.task.error+ ? {+ ...value.task.error,+ detailParams: value.task.error.detailParams+ ? { ...value.task.error.detailParams }+ : null,+ }+ : null,+ },}}diff --git a/src/core/plugin/hooks/staged-effects.test.ts b/src/core/plugin/hooks/staged-effects.test.tsindex c2fd0d17..10b263f1 100644--- a/src/core/plugin/hooks/staged-effects.test.ts+++ b/src/core/plugin/hooks/staged-effects.test.ts@@ -1,4 +1,7 @@-import { ensureMetadataSchema } from '@core/plugin/capabilities/metadata'+import {+ DEFAULT_METADATA_QUOTA_BYTES,+ ensureMetadataSchema,+} from '@core/plugin/capabilities/metadata'import Database from 'better-sqlite3'import { beforeEach, describe, expect, it, vi } from 'vitest'import { StagedEffectStore, type StagedHttpPatch } from './staged-effects'@@ -94,6 +97,99 @@ describe('StagedEffectStore', () => {})})+ it('accepts an ordered staged metadata projection exactly at 64 KiB', () => {+ const db = makeDb()+ store.appendMeta({+ pluginId: 'plugin-a',+ op: 'set',+ key: 'exact',+ value: 'x'.repeat(DEFAULT_METADATA_QUOTA_BYTES - 2),+ })++ store.commitMetadata(db, 'task-1', () => {})++ expect(+ db+ .prepare(+ 'SELECT size FROM plugin_task_metadata WHERE task_id=? AND plugin_id=? AND key=?'+ )+ .get('task-1', 'plugin-a', 'exact')+ ).toEqual({ size: DEFAULT_METADATA_QUOTA_BYTES })+ })++ it('rejects cumulative staged metadata over 64 KiB and rolls back the caller transaction', () => {+ const db = makeDb()+ db.prepare(+ `INSERT INTO plugin_task_metadata (task_id, plugin_id, key, value, size, updated_at)+ VALUES (?, ?, ?, ?, ?, 0)`+ ).run('task-1', 'plugin-a', 'existing', '"12345678"', 10)+ store.appendMeta({+ pluginId: 'plugin-a',+ op: 'set',+ key: 'overflow',+ value: 'x'.repeat(DEFAULT_METADATA_QUOTA_BYTES - 11),+ // A caller-supplied size cannot under-report the serialized value.+ size: 1,+ })++ expect(() =>+ store.commitMetadata(db, 'task-1', () => {+ db.prepare(+ `INSERT INTO plugin_task_metadata (task_id, plugin_id, key, value, size, updated_at)+ VALUES ('task-1', 'tx-marker', 'marker', 'true', 4, 0)`+ ).run()+ })+ ).toThrow(+ expect.objectContaining({ code: 'plugin.metadata.quota_exceeded' })+ )++ expect(+ db+ .prepare(+ "SELECT COUNT(*) AS count FROM plugin_task_metadata WHERE plugin_id='tx-marker'"+ )+ .get()+ ).toEqual({ count: 0 })+ expect(allRows(db, 'task-1')).toEqual([+ { plugin_id: 'plugin-a', key: 'existing', value: '"12345678"' },+ ])+ })++ it('applies delete then set ordering when projecting the quota', () => {+ const db = makeDb()+ const oldValue = 'x'.repeat(DEFAULT_METADATA_QUOTA_BYTES - 2)+ db.prepare(+ `INSERT INTO plugin_task_metadata (task_id, plugin_id, key, value, size, updated_at)+ VALUES (?, ?, ?, ?, ?, 0)`+ ).run(+ 'task-1',+ 'plugin-a',+ 'old',+ JSON.stringify(oldValue),+ DEFAULT_METADATA_QUOTA_BYTES+ )+ store.appendMeta({+ pluginId: 'plugin-a',+ op: 'delete',+ key: 'old',+ })+ store.appendMeta({+ pluginId: 'plugin-a',+ op: 'set',+ key: 'replacement',+ value: oldValue,+ })++ expect(() => store.commitMetadata(db, 'task-1', () => {})).not.toThrow()+ expect(allRows(db, 'task-1')).toEqual([+ {+ plugin_id: 'plugin-a',+ key: 'replacement',+ value: JSON.stringify(oldValue),+ },+ ])+ })+// ── 4. appendMeta delete removes rows ────────────────────────────────────────it('appendMeta delete ops remove existing rows in the same transaction', () => {diff --git a/src/core/plugin/hooks/staged-effects.ts b/src/core/plugin/hooks/staged-effects.tsindex e71c2f47..bfac9ba7 100644--- a/src/core/plugin/hooks/staged-effects.ts+++ b/src/core/plugin/hooks/staged-effects.ts@@ -1,4 +1,9 @@import type Database from 'better-sqlite3'+import {+ DEFAULT_METADATA_QUOTA_BYTES,+ MetadataError,+ serializeMetadataValue,+} from '../capabilities/metadata'import type { RoleBand } from './role-band'import type { FfmpegStaging } from './staging-dir'@@ -56,6 +61,10 @@ export class StagedEffectStore {return out}+ allMetadataOps(): readonly StagedMetadataOp[] {+ return this.metaOps.map((operation) => ({ ...operation }))+ }+setFinalizePath(p: string): void {this.finalizePath = p}@@ -64,6 +73,11 @@ export class StagedEffectStore {return this.finalizePath}+ /** Restore the working target after a fail-open plugin is isolated. */+ restoreFinalizePath(path: string | undefined): void {+ this.finalizePath = path+ }+/** Merged view of uris/filename/connections: later entries win. */latestStagedFields(): Partial<StagedHttpPatch> {const out: Partial<StagedHttpPatch> = {}@@ -104,16 +118,23 @@ export class StagedEffectStore {db.transaction(() => {tx()+ const serialized = validateStagedMetadataQuota(db, taskId, this.metaOps)const now = Date.now()- for (const op of this.metaOps) {+ for (const [index, op] of this.metaOps.entries()) {if (op.op === 'set') {- const json = JSON.stringify(op.value)+ const value = serialized.get(index)+ if (!value) {+ throw new MetadataError(+ 'plugin.metadata.value_not_serializable',+ 'plugin.metadata.value_not_serializable: staged value is missing'+ )+ }insertSql.run(taskId,op.pluginId,op.key,- json,- op.size ?? Buffer.byteLength(json),+ value.json,+ value.size,now)} else {@@ -128,6 +149,7 @@ export class StagedEffectStore {this.httpPatches = []this.metaOps = []this.finalizePath = undefined+ this.stagings.clear()}/**@@ -145,3 +167,72 @@ export class StagedEffectStore {this.stagings.delete(pluginId)}}++interface MetadataUsage {+ total: number+ keys: Map<string, number>+}++/**+ * Apply staged operations to an in-memory projection of the transactional DB+ * state. This is the same replacement-aware 64 KiB rule enforced by+ * MetadataCapabilityHost, but evaluated across the whole ordered Hook batch+ * before the first staged row is persisted.+ */+function validateStagedMetadataQuota(+ db: Database.Database,+ taskId: string,+ operations: readonly StagedMetadataOp[]+): Map<number, { json: string; size: number }> {+ const selectUsage = db.prepare<+ [string, string],+ { key: string; size: number }+ >(+ `SELECT key, size+ FROM plugin_task_metadata+ WHERE task_id = ? AND plugin_id = ?`+ )+ const usageByPlugin = new Map<string, MetadataUsage>()+ const serialized = new Map<number, { json: string; size: number }>()++ const usageFor = (pluginId: string): MetadataUsage => {+ const existing = usageByPlugin.get(pluginId)+ if (existing) return existing+ const keys = new Map(+ selectUsage+ .all(taskId, pluginId)+ .map((row) => [row.key, row.size] as const)+ )+ const usage = {+ total: [...keys.values()].reduce((sum, size) => sum + size, 0),+ keys,+ }+ usageByPlugin.set(pluginId, usage)+ return usage+ }++ for (const [index, operation] of operations.entries()) {+ const usage = usageFor(operation.pluginId)+ const currentSize = usage.keys.get(operation.key) ?? 0+ if (operation.op === 'delete') {+ usage.total -= currentSize+ usage.keys.delete(operation.key)+ continue+ }++ const json = serializeMetadataValue(operation.value)+ const size = Buffer.byteLength(json, 'utf8')+ const projected = usage.total - currentSize + size+ if (projected > DEFAULT_METADATA_QUOTA_BYTES) {+ throw new MetadataError(+ 'plugin.metadata.quota_exceeded',+ `plugin.metadata.quota_exceeded: projected usage ${projected} exceeds quota ${DEFAULT_METADATA_QUOTA_BYTES}`+ )+ }+ usage.total = projected+ usage.keys.set(operation.key, size)+ serialized.set(index, { json, size })+ }++ return serialized+}diff --git a/src/core/plugin/hooks/staging-dir.test.ts b/src/core/plugin/hooks/staging-dir.test.tsindex 894b0045..d6364182 100644--- a/src/core/plugin/hooks/staging-dir.test.ts+++ b/src/core/plugin/hooks/staging-dir.test.ts@@ -111,58 +111,28 @@ describe('FfmpegStaging.ensureDir', () => {})// ----------------------------------------------------------------------------// promote+// mappedArtifact// ----------------------------------------------------------------------------describe('FfmpegStaging.promote', () => {- it('moves the staged file to saveDir and removes the staging dir', async () => {+describe('FfmpegStaging.mappedArtifact', () => {+ it('records the logical output mapping without promoting bytes', async () => {const pluginsDir = await makeTmpDir()const saveDir = await makeTmpDir()const staging = makeStaging(pluginsDir, saveDir)-- // Prepare the staged file- await staging.ensureDir()- const stagedContent = 'video-data'- const stagedFile = path.join(staging.dir, 'out.mp4')- await writeFile(stagedFile, stagedContent)-const finalPath = path.join(saveDir, 'out.mp4')- const promoted = await staging.promote(finalPath)-- expect(promoted).toBe(finalPath)-- // File is at the destination- const destStat = await stat(finalPath)- expect(destStat.isFile()).toBe(true)-- // Staging dir is gone- await expect(stat(staging.dir)).rejects.toThrow()- })-- it('throws ENOENT when the staged file does not exist', async () => {- const pluginsDir = await makeTmpDir()- const saveDir = await makeTmpDir()- const staging = makeStaging(pluginsDir, saveDir)-- await staging.ensureDir()- // Do NOT create the file-- const finalPath = path.join(saveDir, 'missing.mp4')- await expect(staging.promote(finalPath)).rejects.toThrow(/ENOENT/)+ const stagedPath = staging.redirectOutput(finalPath)+ expect(staging.mappedArtifact(finalPath)).toBe(stagedPath)+ await expect(stat(finalPath)).rejects.toThrow()})- it('removes staging dir even when there are no leftover files', async () => {+ it('does not infer ownership by scanning a staging directory', async () => {const pluginsDir = await makeTmpDir()const saveDir = await makeTmpDir()const staging = makeStaging(pluginsDir, saveDir)-await staging.ensureDir()- const stagedFile = path.join(staging.dir, 'single.mp4')- await writeFile(stagedFile, 'x')-- await staging.promote(path.join(saveDir, 'single.mp4'))- // Staging root for this task is cleaned up- await expect(stat(staging.dir)).rejects.toThrow()+ const finalPath = path.join(saveDir, 'unmapped.mp4')+ await writeFile(path.join(staging.dir, 'unmapped.mp4'), 'bytes')+ expect(staging.mappedArtifact(finalPath)).toBeUndefined()})})@@ -199,7 +169,7 @@ describe('FfmpegStaging.discard', () => {// ---------------------------------------------------------------------------describe('FfmpegStaging.cleanupOrphans', () => {- it('removes staging/ subdirs across multiple plugin ids', async () => {+ it('preserves staging that may be referenced by a finalize journal', async () => {const pluginsDir = await makeTmpDir()// Create two plugin staging dirs with files@@ -213,7 +183,7 @@ describe('FfmpegStaging.cleanupOrphans', () => {for (const pluginId of ['plugin.a', 'plugin.b']) {const stagingRoot = path.join(pluginsDir, pluginId, 'staging')- await expect(stat(stagingRoot)).rejects.toThrow()+ expect((await stat(stagingRoot)).isDirectory()).toBe(true)}// Plugin dirs themselves should still be presentdiff --git a/src/core/plugin/hooks/staging-dir.ts b/src/core/plugin/hooks/staging-dir.tsindex 6c8dc2ee..5621f77f 100644--- a/src/core/plugin/hooks/staging-dir.ts+++ b/src/core/plugin/hooks/staging-dir.ts@@ -5,7 +5,7 @@//// Architecture: stays inside src/core/ — no electron, no @main/, no @server/.-import { mkdir, readdir, rename, rm, stat } from 'node:fs/promises'+import { mkdir, readdir, rm, stat } from 'node:fs/promises'import path from 'node:path'import { AppError, ErrorCode } from '@shared/errors'@@ -18,6 +18,8 @@ export interface StagingOptions {}export class FfmpegStaging {+ private readonly mappings = new Map<string, string>()+constructor(private readonly opts: StagingOptions) {}get dir(): string {@@ -44,7 +46,9 @@ export class FfmpegStaging {return userOutput // not saveDir-bound; pass through unchanged}const rel = path.relative(saveDir, resolved)- return path.join(this.dir, rel)+ const stagedPath = path.join(this.dir, rel)+ this.mappings.set(resolved, stagedPath)+ return stagedPath}async ensureDir(): Promise<void> {@@ -70,23 +74,9 @@ export class FfmpegStaging {}}- /**- * Chain commit: promote the file matching `finalFilePath` to saveDir; delete- * all remaining staging contents afterward.- *- * `finalFilePath` may be absolute (resolving to saveDir) or relative to- * saveDir. Returns the absolute path of the promoted file.- */- async promote(finalFilePath: string): Promise<string> {+ mappedArtifact(finalFilePath: string): string | undefined {const saveDir = this.opts.saveDir.replace(/[/\\]+$/, '')- const finalAbs = path.resolve(saveDir, finalFilePath)- const stagedAbs = path.join(this.dir, path.relative(saveDir, finalAbs))- const tmp = `${finalAbs}.tmp-${Date.now()}`- await mkdir(path.dirname(finalAbs), { recursive: true })- await rename(stagedAbs, tmp)- await rename(tmp, finalAbs)- await rm(this.dir, { recursive: true, force: true })- return finalAbs+ return this.mappings.get(path.resolve(saveDir, finalFilePath))}async discard(): Promise<void> {@@ -94,19 +84,14 @@ export class FfmpegStaging {}/**- * Host startup: remove leftover staging/ subdirs across all plugins for- * crash recovery. Runs once before any hook is dispatched.- *- * Ignores errors when pluginsDir does not exist (first run).+ * Legacy startup cleanup is deliberately fail-closed. Finalize staging may+ * be referenced by a durable journal and must be recovered by the finalize+ * recovery service after identity verification.*/static async cleanupOrphans(pluginsDir: string): Promise<void> {- try {- for (const pluginId of await readdir(pluginsDir)) {- const stagingRoot = path.join(pluginsDir, pluginId, 'staging')- await rm(stagingRoot, { recursive: true, force: true })- }- } catch {- // pluginsDir may not exist on first run — ignore- }+ await readdir(pluginsDir).catch((error: NodeJS.ErrnoException) => {+ if (error.code !== 'ENOENT') throw error+ return []+ })}}diff --git a/src/core/plugin/host/activation-dispatcher.test.ts b/src/core/plugin/host/activation-dispatcher.test.tsindex 908fdcb8..a941df7b 100644--- a/src/core/plugin/host/activation-dispatcher.test.ts+++ b/src/core/plugin/host/activation-dispatcher.test.ts@@ -1,6 +1,7 @@import { AppError, ErrorCode } from '@shared/errors'import type { PluginListDTO, PluginManifest } from '@shared/types/plugin'import { describe, expect, it, vi } from 'vitest'+import { HOST_PATTERN_CONFORMANCE_CASES } from '../permissions/host-pattern.corpus'import type { IndexedPlugin } from '../plugin-registry'import {ActivationDispatcher,@@ -100,6 +101,14 @@ function makeMockRegistry(return {list: () => plugins.map(({ manifest }) => makeDto(manifest.id)),get: (id: string) => indexed.get(id),+ entries: () =>+ [...indexed.values()].map((entry) => ({+ manifest: entry.manifest,+ origin: entry.origin,+ enabled: entry.state.enabled,+ executableDigest: 'a'.repeat(64),+ })),+ policyGenerationFor: () => 1,}}@@ -110,6 +119,143 @@ function makeMockRegistry(const startupEvent: HostActivationEvent = { kind: 'startup' }describe('ActivationDispatcher', () => {+ describe('registry-backed Hook demand', () => {+ it.each(HOST_PATTERN_CONFORMANCE_CASES)(+ 'matches shared host corpus: $name',+ ({ pattern, url, expected }) => {+ const manifest = makeManifest('alice.corpus', {+ activationEvents: ['onTaskType:http'],+ hostPermissions: [pattern],+ contributes: { hooks: { beforeCreate: { role: 'resolve' } } },+ })+ const dispatcher = new ActivationDispatcher(+ makeMockRegistry([{ manifest }]) as never,+ makeMockHost({ activeIds: [], meta: [] }) as never+ )++ expect(+ dispatcher.candidatesForHook('beforeCreate', {+ taskType: 'http',+ taskUrl: url,+ }).length > 0+ ).toBe(expected)+ }+ )++ it('discovers inactive candidates in stable role/id order', () => {+ const manifests = [+ makeManifest('z.enrich', {+ activationEvents: ['onTaskType:http'],+ hostPermissions: ['https://example.test/*'],+ contributes: { hooks: { beforeCreate: { role: 'enrich' } } },+ }),+ makeManifest('z.resolve', {+ activationEvents: ['onTaskType:http'],+ hostPermissions: ['https://example.test/*'],+ contributes: { hooks: { beforeCreate: { role: 'pre-resolve' } } },+ }),+ makeManifest('a.resolve', {+ activationEvents: ['onTaskType:http'],+ hostPermissions: ['https://example.test/*'],+ contributes: { hooks: { beforeCreate: { role: 'pre-resolve' } } },+ }),+ ]+ const registry = makeMockRegistry(+ manifests.map((manifest) => ({ manifest }))+ )+ const host = makeMockHost({ activeIds: [], meta: [] })+ const dispatcher = new ActivationDispatcher(+ registry as never,+ host as never+ )++ expect(+ dispatcher+ .candidatesForHook('beforeCreate', {+ taskType: 'http',+ taskUrl: 'https://example.test/file',+ })+ .map((candidate) => candidate.id)+ ).toEqual(['a.resolve', 'z.resolve', 'z.enrich'])+ expect(host.activate).not.toHaveBeenCalled()+ })++ it('does not URL-filter finalization candidates and reactivates on demand', async () => {+ const manifest = makeManifest('alice.finalizer', {+ activationEvents: ['onTaskType:ftp'],+ hostPermissions: [],+ contributes: {+ hooks: { beforeFinalize: { role: 'post-process' } },+ },+ })+ const registry = makeMockRegistry([{ manifest }])+ const host = makeMockHost({ activeIds: [], meta: [] })+ const dispatcher = new ActivationDispatcher(+ registry as never,+ host as never+ )+ const candidates = dispatcher.candidatesForHook('beforeFinalize', {+ taskType: 'ftp',+ taskUrl: 'ftp://example.test/file',+ })++ expect(candidates.map((candidate) => candidate.id)).toEqual([+ 'alice.finalizer',+ ])+ await dispatcher.activateForHook('alice.finalizer', 'beforeFinalize')+ expect(host.activate).toHaveBeenCalledWith('alice.finalizer', {+ waitForDeactivation: true,+ })+ await host.deactivate('alice.finalizer')+ await dispatcher.activateForHook('alice.finalizer', 'beforeFinalize')+ expect(host.activate).toHaveBeenCalledTimes(2)+ })++ it('treats wildcard activation as matching Hook task demand', () => {+ const manifest = makeManifest('alice.always', {+ activationEvents: ['*'],+ hostPermissions: ['https://example.test/*'],+ contributes: { hooks: { beforeCreate: { role: 'resolve' } } },+ })+ const dispatcher = new ActivationDispatcher(+ makeMockRegistry([{ manifest }]) as never,+ makeMockHost({ activeIds: [], meta: [] }) as never+ )++ expect(+ dispatcher.candidatesForHook('beforeCreate', {+ taskType: 'http',+ taskUrl: 'https://example.test/file',+ })+ ).toHaveLength(1)+ })++ it('fails a beforeCreate candidate closed on credentials or host confusion', () => {+ const manifest = makeManifest('alice.resolver', {+ activationEvents: ['onTaskType:http'],+ hostPermissions: ['https://allowed.example/*'],+ contributes: { hooks: { beforeCreate: { role: 'resolve' } } },+ })+ const registry = makeMockRegistry([{ manifest }])+ const dispatcher = new ActivationDispatcher(+ registry as never,+ makeMockHost({ activeIds: [], meta: [] }) as never+ )+ for (const taskUrl of [+ 'https://allowed.example.evil/file',+ 'https://[email protected]/file',+ 'https://evil.example/path/allowed.example/file',+ ]) {+ expect(+ dispatcher.candidatesForHook('beforeCreate', {+ taskType: 'http',+ taskUrl,+ })+ ).toEqual([])+ }+ })+ })+describe('below cap -- all activate successfully', () => {it('activates all 5 matching plugins when maxActive=32', async () => {const manifests = Array.from({ length: 5 }, (_, i) =>@@ -130,6 +276,26 @@ describe('ActivationDispatcher', () => {expect(state.activeIds).toHaveLength(5)expect(host.activate).toHaveBeenCalledTimes(5)})++ it('treats wildcard activation as matching task events', async () => {+ const manifest = makeManifest('alice.always', {+ activationEvents: ['*'],+ })+ const state: MockHostState = { activeIds: [], meta: [] }+ const host = makeMockHost(state)+ const dispatcher = new ActivationDispatcher(+ makeMockRegistry([{ manifest }]) as never,+ host as never+ )++ await dispatcher.dispatch({+ kind: 'taskAdded',+ taskType: 'bt',+ url: 'magnet:?xt=urn:btih:test',+ })++ expect(host.activate).toHaveBeenCalledWith('alice.always')+ })})describe('at cap -- eviction triggers', () => {diff --git a/src/core/plugin/host/activation-dispatcher.ts b/src/core/plugin/host/activation-dispatcher.tsindex 56e19536..b9a1a3e6 100644--- a/src/core/plugin/host/activation-dispatcher.ts+++ b/src/core/plugin/host/activation-dispatcher.ts@@ -1,7 +1,10 @@import { getLogger } from '@core/logger'import { AppError, ErrorCode } from '@shared/errors'import type { PluginManifest } from '@shared/types/plugin'+import { isEligible } from '../hooks/eligibility'+import { matchesAnyHostPermission } from '../permissions/host-pattern'import type { PluginRegistry } from '../plugin-registry'+import type { HookName } from './bridge-protocol'import {type ActiveMeta,DEFAULT_MAX_ACTIVE_PLUGINS,@@ -18,6 +21,20 @@ export type HostActivationEvent =url: string}| { kind: 'command'; commandId: string }+ | { kind: 'hookDemand'; hook: HookName }++export interface HookCandidateInput {+ taskType?: 'http' | 'bt' | 'magnet' | 'ftp' | 'metalink'+ taskUrl?: string+}++export interface HookCandidateDescriptor {+ id: string+ manifest: PluginManifest+ generation: number+ executableDigest: string+ role: 'pre-resolve' | 'resolve' | 'enrich' | 'post-process' | 'audit'+}export interface PluginEvictedPayload {pluginId: string@@ -74,7 +91,7 @@ export class ActivationDispatcher {continue}const eff = effectiveActivationSet(reg.manifest)- const matches = tokens.some((t) => eff.has(t))+ const matches = eff.has('*') || tokens.some((t) => eff.has(t))if (!matches) {skipped.push({id: dto.id,@@ -84,7 +101,8 @@ export class ActivationDispatcher {}if (event.kind === 'taskAdded' &&- !hostPermissionsMatch(reg.manifest.hostPermissions ?? [], event.url)+ event.taskType === 'http' &&+ !matchesAnyHostPermission(reg.manifest.hostPermissions, event.url)) {skipped.push({id: dto.id,@@ -102,6 +120,62 @@ export class ActivationDispatcher {await this.admit(matchingInactive, event)}+ /** Registry-backed Hook discovery; inactive/recycled workers remain visible. */+ candidatesForHook(+ hook: HookName,+ input: HookCandidateInput = {}+ ): HookCandidateDescriptor[] {+ const tokens = hookActivationTokens(input)+ const candidates: HookCandidateDescriptor[] = []+ for (const entry of this.registry.entries()) {+ if (!entry.enabled) continue+ if (!entry.executableDigest) continue+ if (+ !isEligible({+ manifest: entry.manifest,+ hook,+ taskUrl: hook === 'beforeCreate' ? input.taskUrl : undefined,+ })+ ) {+ continue+ }+ const activation = effectiveActivationSet(entry.manifest)+ if (+ tokens.length > 0 &&+ !activation.has('*') &&+ !tokens.some((token) => activation.has(token))+ ) {+ continue+ }+ candidates.push({+ id: entry.manifest.id,+ manifest: entry.manifest,+ generation: this.registry.policyGenerationFor(entry.manifest.id),+ executableDigest: entry.executableDigest,+ role: normalizeHookRole(entry.manifest.contributes.hooks?.[hook]?.role),+ })+ }+ return candidates.sort(compareHookCandidates)+ }++ /** Immediate demand activation, including reactivation after idle recycle. */+ async activateForHook(pluginId: string, hook: HookName): Promise<void> {+ if (this.host.isActive(pluginId)) return+ await this.admit([pluginId], { kind: 'hookDemand', hook })+ }++ async admitHookCandidates(+ candidates: ReadonlyArray<HookCandidateDescriptor>,+ hook: HookName+ ): Promise<void> {+ const inactive = candidates+ .map((candidate) => candidate.id)+ .filter((id) => !this.host.isActive(id))+ if (inactive.length > 0) {+ await this.admit(inactive, { kind: 'hookDemand', hook })+ }+ }+/*** Activate a set of previously-filtered inactive plugins, evicting stale* plugins when the active count would exceed `maxActive`.@@ -115,7 +189,7 @@ export class ActivationDispatcher {const needed = this.host.activeIds().length + matchingInactive.lengthif (needed <= this.maxActive) {for (const id of matchingInactive) {- await this.host.activate(id)+ await this.activateForEvent(id, event)}return}@@ -132,21 +206,36 @@ export class ActivationDispatcher {)}for (const id of matchingInactive) {- await this.host.activate(id)+ await this.activateForEvent(id, event)}}+ private activateForEvent(+ pluginId: string,+ event: HostActivationEvent+ ): Promise<void> {+ if (event.kind === 'hookDemand') {+ return this.host.activate(pluginId, { waitForDeactivation: true })+ }+ return this.host.activate(pluginId)+ }+/*** Derive the set of plugin ids that must not be evicted for this event.*- * T14 placeholder: always returns an empty set. The tier-ordering in- * `runEviction` already protects critical roles by evicting 'audit' first.- * T15 will replace this with real in-flight tracking via- * `PluginHost.activeWithInFlightHook(taskId)` once TaskManager wires the- * HookOrchestrator.+ * Every running or already-admitted lane entry is critical. Evicting one+ * would turn the active-plugin cap into an unrelated task cancellation.*/protected deriveCriticalSet(_event: HostActivationEvent): Set<string> {- return new Set<string>()+ return new Set(+ this.host+ .activeMeta()+ .filter(+ (plugin) =>+ (plugin.runningEntries ?? 0) > 0 || (plugin.queuedEntries ?? 0) > 0+ )+ .map((plugin) => plugin.id)+ )}/**@@ -210,6 +299,7 @@ export class ActivationDispatcher {function tokensFor(event: HostActivationEvent): string[] {if (event.kind === 'startup') return ['*', 'onStartup']if (event.kind === 'command') return [`onCommand:${event.commandId}`]+ if (event.kind === 'hookDemand') return []// taskAddedlet scheme = ''try {@@ -220,53 +310,60 @@ function tokensFor(event: HostActivationEvent): string[] {return [`onTaskType:${event.taskType}`, `onProtocol:${scheme}`]}-function effectiveActivationSet(manifest: PluginManifest): Set<string> {- const set = new Set<string>(manifest.activationEvents)- // Implicit onCommand:<id> for every declared command (I23).- for (const c of manifest.contributes.commands ?? []) {- set.add(`onCommand:${c.id}`)+function hookActivationTokens(input: HookCandidateInput): string[] {+ const tokens: string[] = []+ if (input.taskType) tokens.push(`onTaskType:${input.taskType}`)+ if (input.taskUrl) {+ try {+ tokens.push(`onProtocol:${new URL(input.taskUrl).protocol.slice(0, -1)}`)+ } catch {+ // Invalid source URLs cannot add an activation token. beforeCreate's+ // structured host matcher separately fails the candidate closed.+ }}- return set+ return tokens}-function hostPermissionsMatch(- patterns: ReadonlyArray<string>,- url: string-): boolean {- if (patterns.length === 0) return false- let parsed: URL- try {- parsed = new URL(url)- } catch {- return false- }- const scheme = parsed.protocol.replace(':', '')- for (const p of patterns) {- if (p === '<all_urls>') return true- const m = /^(\*|https?):\/\/(\*|(?:\*\.)?[A-Za-z0-9.-]+)(\/.*)?$/.exec(p)- if (!m) continue- const [, patScheme, patHost, patPath] = m- if (patScheme !== '*' && patScheme !== scheme) continue- if (patHost !== '*' && !hostMatch(patHost, parsed.hostname)) continue- if (patPath && !pathMatch(patPath, parsed.pathname)) continue- return true+const HOOK_ROLE_ORDER = new Map([+ ['pre-resolve', 0],+ ['resolve', 1],+ ['enrich', 2],+ ['post-process', 3],+ ['audit', 4],+])++function normalizeHookRole(+ role: string | undefined+): HookCandidateDescriptor['role'] {+ switch (role) {+ case 'pre-resolve':+ case 'resolve':+ case 'enrich':+ case 'post-process':+ case 'audit':+ return role+ default:+ return 'enrich'}- return false}-function hostMatch(pattern: string, host: string): boolean {- if (pattern.startsWith('*.')) {- const suffix = pattern.slice(2)- return host === suffix || host.endsWith(`.${suffix}`)- }- return host === pattern+function compareHookCandidates(+ a: HookCandidateDescriptor,+ b: HookCandidateDescriptor+): number {+ const byRole =+ (HOOK_ROLE_ORDER.get(a.role) ?? 2) - (HOOK_ROLE_ORDER.get(b.role) ?? 2)+ if (byRole !== 0) return byRole+ return a.id < b.id ? -1 : a.id > b.id ? 1 : 0}-function pathMatch(pattern: string, p: string): boolean {- const re = new RegExp(- `^${pattern.replace(/[.+?^${}()|[\]\\]/g, '\\$&').replace(/\*/g, '[^/]*')}$`- )- return re.test(p)+function effectiveActivationSet(manifest: PluginManifest): Set<string> {+ const set = new Set<string>(manifest.activationEvents)+ // Implicit onCommand:<id> for every declared command (I23).+ for (const c of manifest.contributes.commands ?? []) {+ set.add(`onCommand:${c.id}`)+ }+ return set}// Re-export for test convenience.diff --git a/src/core/plugin/host/bridge-protocol.ts b/src/core/plugin/host/bridge-protocol.tsindex a94b136f..0ceb26ad 100644--- a/src/core/plugin/host/bridge-protocol.ts+++ b/src/core/plugin/host/bridge-protocol.ts@@ -1,21 +1,30 @@// src/core/plugin/host/bridge-protocol.ts// Bidirectional message protocol between QuickJSWorker (worker thread)-// and CapabilityBridge (main thread). Every message carries an `id`-// for request/response correlation; events use `id = 0`.-+// and CapabilityBridge (main thread). Calls and responses carry a numeric+// correlation id. Hook-scoped traffic also carries the immutable invocation,+// call-chain, and permission-generation tuple.++/* Keep command provenance on the same strict schema as call/response DTOs. */+import {+ type CapabilityCallMessageV1,+ type CapabilityResponseMessageV1,+ CommandInvocationScopeV1Schema,+ type HookAbortMessageV1,+ type HookEnterMessageV1,+ type HookExitMessageV1,+ type HookInvocationScopeV1,+ type HookNameV1,+} from '@shared/schemas/plugin-hooks'import type { PluginManifest } from '@shared/types/plugin'+import { z } from 'zod'import type { ManifestLocaleDict } from '../manifest/i18n-resolve'-export type BridgeMessageId = number // > 0 for calls; 0 for one-way events+export type BridgeMessageId = number// The four task-lifecycle hook names plugins can tap. Defined once here so the// host, worker, and bridge share a single source of truth instead of// re-spelling the union at each annotation site.-export type HookName =- | 'beforeCreate'- | 'beforeFinalize'- | 'afterComplete'- | 'onError'+export type HookName = HookNameV1// Runtime ordering of HookName — used by the worker to register hook handlers.export const HOOK_NAMES: readonly HookName[] = [@@ -51,23 +60,10 @@ export interface BridgeInitMessage {}// Worker → host.-export interface BridgeCallMessage {- type: 'call'- id: BridgeMessageId- capability: string // 'log' | 'app' | 'i18n' | ...- method: string- args: unknown[]-}+export type BridgeCallMessage = CapabilityCallMessageV1// Host → worker.-export type BridgeResponseMessage =- | { type: 'response'; id: BridgeMessageId; ok: true; result: unknown }- | {- type: 'response'- id: BridgeMessageId- ok: false- error: { code: string; message: string }- }+export type BridgeResponseMessage = CapabilityResponseMessageV1// Host → worker (one-way events).// BridgeHookEnter: sent by host to worker when entering a hook invocation.@@ -76,28 +72,25 @@ export type BridgeResponseMessage =// AfterCompleteContextDTO / OnErrorContextDTO depending on `hook`. The// worker copies these onto the `ctx` object handed to the registered// handler. `metadataSnapshot` is the read-side of ctx.metadata (key→value-// pairs already committed by previous hooks); writes go through the-// staged-effect store via callHost('metadata', ...).-export interface BridgeHookEnter {- type: 'event'- event: 'hookEnter'- hook: HookName- taskId: string- ctxPayload?: Record<string, unknown>- metadataSnapshot?: Record<string, unknown>-}+// pairs already committed by previous hooks). Pre-Hook writes are recorded+// synchronously in the Worker and returned as validated Hook-exit effects.+export type BridgeHookEnter = HookEnterMessageV1+export type BridgeHookScope = HookInvocationScopeV1+export type BridgeAbort = HookAbortMessageV1// Host → worker: invoke a registered command by id.// Used by test harness (test-helpers.ts callPlugin) and future Plan C invocations.// The worker dispatches to the locally registered handler and replies with// BridgeExecuteCommandResult.-export interface BridgeExecuteCommand {- type: 'event'- event: 'executeCommand'- id: BridgeMessageId // correlation id for the response- commandId: string- args: unknown-}+export const BridgeExecuteCommandSchema = z.strictObject({+ type: z.literal('event'),+ event: z.literal('executeCommand'),+ id: z.number().int().positive().safe(),+ commandId: z.string().min(1).max(256),+ args: z.unknown(),+ commandScope: CommandInvocationScopeV1Schema,+})+export type BridgeExecuteCommand = z.infer<typeof BridgeExecuteCommandSchema>// Host → worker: signal the worker to run its registered onDeactivate handlers.export interface BridgeDeactivate {@@ -123,38 +116,39 @@ export type BridgeEventMessage =dict: ManifestLocaleDict}| { type: 'event'; event: 'shutdown' }- | { type: 'event'; event: 'abort' }+ | BridgeAbort| BridgeHookEnter| BridgeExecuteCommand| BridgeDeactivate-// Worker → host: sent after worker finishes handling a hook.-// Plan B: host receives this and clears currentFsTaskHost slot.-// Plan C: carries error context for chain-abort decisions.-export interface BridgeHookExit {- type: 'event'- event: 'hookExit'- ok: boolean- errorCode?: string-}+// Worker → host: sent after the Worker finishes handling a Hook. The Host+// accepts it only for the currently admitted invocation and validates effects+// before adding them to the staged chain.+export type BridgeHookExit = HookExitMessageV1// Worker → host: result of a BridgeExecuteCommand invocation.-export type BridgeExecuteCommandResult =- | {- type: 'event'- event: 'executeCommandResult'- id: BridgeMessageId- ok: true- result: unknown- }- | {- type: 'event'- event: 'executeCommandResult'- id: BridgeMessageId- ok: false- errorCode: string- errorMessage: string- }+export const BridgeExecuteCommandResultSchema = z.discriminatedUnion('ok', [+ z.strictObject({+ type: z.literal('event'),+ event: z.literal('executeCommandResult'),+ id: z.number().int().positive().safe(),+ commandScope: BridgeExecuteCommandSchema.shape.commandScope,+ ok: z.literal(true),+ result: z.unknown(),+ }),+ z.strictObject({+ type: z.literal('event'),+ event: z.literal('executeCommandResult'),+ id: z.number().int().positive().safe(),+ commandScope: BridgeExecuteCommandSchema.shape.commandScope,+ ok: z.literal(false),+ errorCode: z.string().min(1).max(128),+ errorMessage: z.string().max(16 * 1024),+ }),+])+export type BridgeExecuteCommandResult = z.infer<+ typeof BridgeExecuteCommandResultSchema+>// Worker → host (one-way events).export type BridgeWorkerEvent =diff --git a/src/core/plugin/host/capability-bridge.dispatch.test.ts b/src/core/plugin/host/capability-bridge.dispatch.test.tsindex dcf1e06c..bd9ace71 100644--- a/src/core/plugin/host/capability-bridge.dispatch.test.ts+++ b/src/core/plugin/host/capability-bridge.dispatch.test.ts@@ -344,7 +344,10 @@ describe('CapabilityBridge dispatch table', () => {await bridge.dispatchCall(makeCall('http', 'get', ['https://example.com']))const resp = lastPosted(posted) as { ok: boolean; result: unknown }expect(resp.ok).toBe(true)- expect(getStub).toHaveBeenCalledWith('https://example.com', undefined)+ expect(getStub).toHaveBeenCalledWith(+ 'https://example.com',+ expect.objectContaining({ signal: expect.any(AbortSignal) })+ )})// 6b. http requests are confined to the manifest's hostPermissions@@ -422,6 +425,57 @@ describe('CapabilityBridge dispatch table', () => {expect(resp.result).toEqual({ echoed: { value: 42 } })})+ it('binds nested commands to the exact executeCommand lane entry', async () => {+ const execute = vi.fn(async () => ({ ok: true }))+ commands.bindCrossPluginInvoker({ execute })+ const pending = bridge.callPlugin(`${PLUGIN_ID}.entry`, {}, 100)+ const event = lastPosted(posted) as {+ event: string+ commandScope: {+ commandInvocationId: number+ callChain: { id: string; plugins: string[] }+ }+ }+ expect(event.event).toBe('executeCommand')+ expect(event.commandScope.callChain.plugins).toEqual([PLUGIN_ID])++ await bridge.dispatchCall({+ type: 'call',+ id: 77,+ capability: 'commands',+ method: 'execute',+ args: ['other.plugin.run', {}],+ commandScope: event.commandScope,+ })++ expect(execute).toHaveBeenCalledWith(+ PLUGIN_ID,+ 'other.plugin.run',+ {},+ event.commandScope.callChain+ )+ await expect(pending).rejects.toThrow('timed out')+ })++ it('rejects a command scope that does not match a pending lane entry', async () => {+ await bridge.dispatchCall({+ type: 'call',+ id: 78,+ capability: 'commands',+ method: 'execute',+ args: ['other.plugin.run', {}],+ commandScope: {+ commandInvocationId: 999,+ callChain: { id: 'forged-chain', plugins: [PLUGIN_ID] },+ },+ })++ expect(lastPosted(posted)).toMatchObject({+ ok: false,+ error: { code: 'plugin.command.protocol_violation' },+ })+ })+// 12. ffmpeg.transcode returns { opId }; op.result.await rejects (unavailable ffmpeg)it('ffmpeg.transcode returns { opId } immediately; op.result.await rejects on unavailable ffmpeg', async () => {await bridge.dispatchCall(diff --git a/src/core/plugin/host/capability-bridge.http-scope.test.ts b/src/core/plugin/host/capability-bridge.http-scope.test.tsnew file mode 100644index 00000000..683cda21--- /dev/null+++ b/src/core/plugin/host/capability-bridge.http-scope.test.ts@@ -0,0 +1,228 @@+import { mkdtempSync, writeFileSync } from 'node:fs'+import * as http from 'node:http'+import type { AddressInfo } from 'node:net'+import { tmpdir } from 'node:os'+import path from 'node:path'+import type { SupportedLocale } from '@shared/constants/locales'+import type { PluginManifest } from '@shared/types/plugin'+import { describe, expect, it, vi } from 'vitest'+import { AppCapabilityHost } from '../capabilities/app'+import { HttpCapabilityHost } from '../capabilities/http'+import type { CapabilityHost } from '../capabilities/interface'+import { LogCapabilityHost } from '../capabilities/log'+import { StagedEffectStore } from '../hooks/staged-effects'+import { CapabilityBridge } from './capability-bridge'++const PLUGIN_ID = 'test.http-scope'++async function createBlockingServer(): Promise<{+ server: http.Server+ url: string+ requestStarted: Promise<void>+ connectionClosed: Promise<void>+}> {+ let markStarted!: () => void+ let markClosed!: () => void+ const requestStarted = new Promise<void>((resolve) => {+ markStarted = resolve+ })+ const connectionClosed = new Promise<void>((resolve) => {+ markClosed = resolve+ })+ const server = http.createServer((request, response) => {+ markStarted()+ request.once('aborted', markClosed)+ response.once('close', markClosed)+ // Deliberately never respond. Only a real transport abort can settle this.+ })+ await new Promise<void>((resolve, reject) => {+ server.once('error', reject)+ server.listen(0, '127.0.0.1', resolve)+ })+ const address = server.address() as AddressInfo+ return {+ server,+ url: `http://127.0.0.1:${address.port}/blocked`,+ requestStarted,+ connectionClosed,+ }+}++function writeHttpHookWorker(url: string): string {+ const dir = mkdtempSync(path.join(tmpdir(), 'motrix-http-scope-worker-'))+ const file = path.join(dir, 'worker.cjs')+ writeFileSync(+ file,+ `+const { parentPort } = require('node:worker_threads')+let active+parentPort.on('message', (msg) => {+ if (msg.type === 'init') parentPort.postMessage({ type: 'ready' })+ if (msg.type === 'event' && msg.event === 'hookEnter') {+ active = msg+ parentPort.postMessage({+ type: 'call', id: 1, capability: 'http', method: 'get',+ args: [${JSON.stringify(url)}],+ invocationId: msg.invocationId,+ callChainId: msg.callChainId,+ permissionGeneration: msg.permissionGeneration,+ })+ }+ if (msg.type === 'response' && msg.id === 1 && !msg.ok) {+ parentPort.postMessage({+ type: 'event', event: 'hookExit', ok: false,+ invocationId: active.invocationId,+ callChainId: active.callChainId,+ permissionGeneration: active.permissionGeneration,+ error: msg.error,+ })+ }+})+`+ )+ return file+}++function createBridge(url: string): CapabilityBridge {+ const dir = mkdtempSync(path.join(tmpdir(), 'motrix-http-scope-'))+ const log = new LogCapabilityHost({+ pluginLogsDir: path.join(dir, 'plugin-logs'),+ })+ const app = new AppCapabilityHost({+ appVersion: '2.5.0',+ platform: 'linux',+ runtime: 'server',+ locale: 'en-US',+ arch: 'x64',+ })+ const capabilityHost = {+ createLog: (id: string) => log.create(id),+ getTail: (id: string, n: number) => log.getTail(id, n),+ appSnapshot: () => app.snapshot(),+ i18nSnapshot: () => ({+ language: 'en-US',+ dir: 'ltr' as const,+ currentDict: {},+ fallbackDict: {},+ }),+ setLocale: (_locale: SupportedLocale) => undefined,+ onLocaleChange: () => () => undefined,+ flush: () => log.flush(),+ http: new HttpCapabilityHost(),+ cookieJarFor: () => undefined,+ } as unknown as CapabilityHost+ const manifest: PluginManifest = {+ manifestVersion: 1,+ id: PLUGIN_ID,+ name: 'HTTP scope test',+ version: '1.0.0',+ description: '',+ categories: [],+ engines: { motrix: '*' },+ main: 'dist/plugin.js',+ permissions: ['http'],+ hostPermissions: [`${new URL(url).protocol}//127.0.0.1/*`],+ activationEvents: [],+ contributes: {},+ }+ return new CapabilityBridge({+ pluginId: PLUGIN_ID,+ manifest,+ bundleSource: '',+ capabilityHost,+ workerScriptPath: writeHttpHookWorker(url),+ heapMB: 32,+ appVersion: '2.5.0',+ runtime: 'server',+ hostLanguage: 'en-US',+ permissionGeneration: 7,+ effectivePermissions: new Set(['http']),+ })+}++function startHook(bridge: CapabilityBridge, signal: AbortSignal) {+ bridge.setHookContext({+ fsTaskHost: {} as ReturnType<CapabilityHost['fsTaskFor']>,+ taskId: 'task-http-scope',+ phase: 'beforeCreate',+ staged: new StagedEffectStore(),+ role: 'enrich',+ saveDir: '/downloads',+ pluginStorageRoot: '/plugins/test.http-scope',+ effectivePermissions: new Set(['http']),+ })+ return bridge.callHook(+ 'beforeCreate',+ 'task-http-scope',+ signal,+ 5_000,+ {+ type: 'http',+ sourceUrl: 'https://source.example/file',+ createdBy: 'user',+ requestedAt: 1,+ uris: ['https://source.example/file'],+ saveDir: '/downloads',+ headers: [],+ },+ {},+ {+ invocationId: 'invocation-http-scope',+ callChainId: 'chain-http-scope',+ permissionGeneration: 7,+ }+ )+}++async function closeServer(server: http.Server): Promise<void> {+ await new Promise<void>((resolve, reject) => {+ server.close((error) => (error ? reject(error) : resolve()))+ })+}++describe('CapabilityBridge invocation-scoped HTTP', () => {+ it('aborts the real blocking transport when the Hook scope is aborted', async () => {+ const transport = await createBlockingServer()+ const bridge = createBridge(transport.url)+ const controller = new AbortController()+ try {+ const hook = startHook(bridge, controller.signal)+ void hook.catch(() => undefined)+ await transport.requestStarted+ expect(bridge.operationState()).toMatchObject({ httpOperations: 1 })++ controller.abort()++ await expect(hook).rejects.toMatchObject({ code: 'plugin.hook.aborted' })+ await transport.connectionClosed+ await vi.waitFor(() => {+ expect(bridge.operationState()).toMatchObject({ httpOperations: 0 })+ })+ } finally {+ await bridge.dispose()+ await closeServer(transport.server)+ }+ })++ it('aborts and drains the real blocking transport during bridge teardown', async () => {+ const transport = await createBlockingServer()+ const bridge = createBridge(transport.url)+ const controller = new AbortController()+ try {+ const hook = startHook(bridge, controller.signal)+ void hook.catch(() => undefined)+ await transport.requestStarted++ await bridge.dispose()++ await expect(hook).rejects.toMatchObject({+ code: 'plugin.runtime.bridge_disposed',+ })+ await transport.connectionClosed+ expect(bridge.operationState()).toMatchObject({ httpOperations: 0 })+ } finally {+ await bridge.dispose()+ await closeServer(transport.server)+ }+ })+})diff --git a/src/core/plugin/host/capability-bridge.phase.test.ts b/src/core/plugin/host/capability-bridge.phase.test.tsindex 7e39ecc3..16b5c0df 100644--- a/src/core/plugin/host/capability-bridge.phase.test.ts+++ b/src/core/plugin/host/capability-bridge.phase.test.ts@@ -648,6 +648,8 @@ describe('CapabilityBridge phase matrix gate', () => {expect(callArg.outputPath).toBe(path.join(staging.dir, 'out.mp4'))// The redirected path starts with staging.dir, not saveDirexpect(callArg.outputPath).not.toContain(saveDir)+ expect(bridge.operationState().ffmpegOperations).toBe(1)+ expect(bridge.hasInFlightOperations()).toBe(true)bridge.clearHookContext()await bridge.dispose()diff --git a/src/core/plugin/host/capability-bridge.test.ts b/src/core/plugin/host/capability-bridge.test.tsindex cf4a12c9..084d07b7 100644--- a/src/core/plugin/host/capability-bridge.test.ts+++ b/src/core/plugin/host/capability-bridge.test.ts@@ -9,7 +9,7 @@ import { I18nCapabilityHost } from '../capabilities/i18n'import type { CapabilityHost } from '../capabilities/interface'import { LogCapabilityHost } from '../capabilities/log'import { StagedEffectStore } from '../hooks/staged-effects'-import { CapabilityBridge } from './capability-bridge'+import { type BridgeEvents, CapabilityBridge } from './capability-bridge'// Stub worker that posts `ready` and nothing else — lets us call setHookContext// synchronously without waiting for a call dispatch cycle.@@ -29,7 +29,11 @@ parentPort.on('message', (msg) => {return file}-function makeBridge(opts?: { workerPath?: string }): {+function makeBridge(opts?: {+ workerPath?: string+ events?: BridgeEvents+ permissionGeneration?: number+}): {bridge: CapabilityBridgedir: string} {@@ -60,17 +64,21 @@ function makeBridge(opts?: { workerPath?: string }): {flush: () => log.flush(),} as unknown as CapabilityHostconst manifest = { id: 'a.b' } as PluginManifest- const bridge = new CapabilityBridge({- pluginId: 'a.b',- manifest,- bundleSource: '',- capabilityHost: capHost,- workerScriptPath: workerPath,- heapMB: 32,- appVersion: '2.5.0',- runtime: 'server',- hostLanguage: 'en-US',- })+ const bridge = new CapabilityBridge(+ {+ pluginId: 'a.b',+ manifest,+ bundleSource: '',+ capabilityHost: capHost,+ workerScriptPath: workerPath,+ heapMB: 32,+ appVersion: '2.5.0',+ runtime: 'server',+ hostLanguage: 'en-US',+ permissionGeneration: opts?.permissionGeneration,+ },+ opts?.events+ )return { bridge, dir }}@@ -95,6 +103,91 @@ parentPort.on('message', (msg) => {return file}+function writeStaleExitStubWorker(dir: string): string {+ const file = path.join(dir, 'stale-exit-worker.cjs')+ writeFileSync(+ file,+ `+const { parentPort } = require('worker_threads')+parentPort.on('message', (msg) => {+ if (msg.type === 'init') parentPort.postMessage({ type: 'ready' })+ if (msg.type === 'event' && msg.event === 'hookEnter') {+ const effects = { schemaVersion: 1, contextPatches: [], metadataOperations: [] }+ parentPort.postMessage({+ type: 'event', event: 'hookExit', ok: true, effects,+ invocationId: 'stale', callChainId: msg.callChainId,+ permissionGeneration: msg.permissionGeneration,+ })+ parentPort.postMessage({+ type: 'event', event: 'hookExit', ok: true, effects,+ invocationId: msg.invocationId, callChainId: msg.callChainId,+ permissionGeneration: msg.permissionGeneration,+ })+ }+})+`+ )+ return file+}++function writeMismatchedCallStubWorker(dir: string): string {+ const file = path.join(dir, 'mismatched-call-worker.cjs')+ writeFileSync(+ file,+ `+const { parentPort } = require('worker_threads')+let active+parentPort.on('message', (msg) => {+ if (msg.type === 'init') parentPort.postMessage({ type: 'ready' })+ if (msg.type === 'event' && msg.event === 'hookEnter') {+ active = msg+ parentPort.postMessage({+ type: 'call', id: 1, capability: 'log', method: 'info', args: ['forged'],+ invocationId: 'wrong', callChainId: msg.callChainId,+ permissionGeneration: msg.permissionGeneration,+ })+ }+ if (msg.type === 'response' && msg.id === 1) {+ parentPort.postMessage({+ type: 'event', event: 'hookExit', ok: false,+ invocationId: active.invocationId, callChainId: active.callChainId,+ permissionGeneration: active.permissionGeneration,+ error: msg.error,+ })+ }+})+`+ )+ return file+}++function writeCrashingHookStubWorker(dir: string): string {+ const file = path.join(dir, 'crashing-hook-worker.cjs')+ writeFileSync(+ file,+ `+const { parentPort } = require('worker_threads')+parentPort.on('message', (msg) => {+ if (msg.type === 'init') parentPort.postMessage({ type: 'ready' })+ if (msg.type === 'event' && msg.event === 'hookEnter') process.exit(7)+})+`+ )+ return file+}++function validBeforeCreatePayload() {+ return {+ type: 'http',+ sourceUrl: 'https://example.test/file',+ createdBy: 'user',+ requestedAt: 1,+ uris: ['https://example.test/file'],+ saveDir: '/downloads',+ headers: [],+ }+}+describe('CapabilityBridge', () => {it('routes a worker log call to the LogCapabilityHost', async () => {const dir = mkdtempSync(path.join(tmpdir(), 'mbr-'))@@ -203,4 +296,141 @@ describe('CapabilityBridge', () => {)expect(out).toContain('{ log, hooks: h }')})++ it('ignores a stale Hook exit and settles only the matching invocation', async () => {+ const dir = mkdtempSync(path.join(tmpdir(), 'mbr-'))+ const onFatal = vi.fn()+ const { bridge } = makeBridge({+ workerPath: writeStaleExitStubWorker(dir),+ events: { onFatal },+ })+ bridge.setHookContext({+ fsTaskHost: STUB_FS_TASK_HOST,+ taskId: 'task-1',+ phase: 'beforeCreate',+ staged: new StagedEffectStore(),+ role: 'enrich',+ saveDir: '/downloads',+ pluginStorageRoot: '/plugins/a.b',+ })++ await expect(+ bridge.callHook(+ 'beforeCreate',+ 'task-1',+ new AbortController().signal,+ 1_000,+ validBeforeCreatePayload(),+ {},+ {+ invocationId: 'current',+ callChainId: 'chain-current',+ permissionGeneration: 1,+ }+ )+ ).resolves.toEqual({+ schemaVersion: 1,+ contextPatches: [],+ metadataOperations: [],+ })+ expect(onFatal).toHaveBeenCalledWith(+ 'plugin.hook.concurrent_protocol_violation',+ 'stale or mismatched Hook exit ignored'+ )+ await bridge.dispose()+ })++ it('rejects a capability call forged for another Hook invocation', async () => {+ const dir = mkdtempSync(path.join(tmpdir(), 'mbr-'))+ const { bridge } = makeBridge({+ workerPath: writeMismatchedCallStubWorker(dir),+ })+ bridge.setHookContext({+ fsTaskHost: STUB_FS_TASK_HOST,+ taskId: 'task-1',+ phase: 'beforeCreate',+ staged: new StagedEffectStore(),+ role: 'enrich',+ saveDir: '/downloads',+ pluginStorageRoot: '/plugins/a.b',+ })++ await expect(+ bridge.callHook(+ 'beforeCreate',+ 'task-1',+ new AbortController().signal,+ 1_000,+ validBeforeCreatePayload(),+ {},+ {+ invocationId: 'current',+ callChainId: 'chain-current',+ permissionGeneration: 1,+ }+ )+ ).rejects.toMatchObject({+ code: 'plugin.hook.concurrent_protocol_violation',+ })+ await bridge.dispose()+ })++ it('rejects a stale permission generation before posting a Hook', async () => {+ const { bridge } = makeBridge({ permissionGeneration: 2 })+ bridge.setHookContext({+ fsTaskHost: STUB_FS_TASK_HOST,+ taskId: 'task-1',+ phase: 'beforeCreate',+ staged: new StagedEffectStore(),+ role: 'enrich',+ saveDir: '/downloads',+ pluginStorageRoot: '/plugins/a.b',+ })++ await expect(+ bridge.callHook(+ 'beforeCreate',+ 'task-1',+ new AbortController().signal,+ 1_000,+ validBeforeCreatePayload(),+ {},+ {+ invocationId: 'current',+ callChainId: 'chain-current',+ permissionGeneration: 1,+ }+ )+ ).rejects.toMatchObject({+ code: 'plugin.runtime.permission_generation_stale',+ })+ await bridge.dispose()+ })++ it('rejects an active Hook promptly when its Worker crashes', async () => {+ const dir = mkdtempSync(path.join(tmpdir(), 'mbr-'))+ const { bridge } = makeBridge({+ workerPath: writeCrashingHookStubWorker(dir),+ })+ bridge.setHookContext({+ fsTaskHost: STUB_FS_TASK_HOST,+ taskId: 'task-1',+ phase: 'beforeCreate',+ staged: new StagedEffectStore(),+ role: 'enrich',+ saveDir: '/downloads',+ pluginStorageRoot: '/plugins/a.b',+ })++ await expect(+ bridge.callHook(+ 'beforeCreate',+ 'task-1',+ new AbortController().signal,+ 10_000,+ validBeforeCreatePayload()+ )+ ).rejects.toMatchObject({ code: 'plugin.hook.worker_crashed' })+ await bridge.dispose()+ })})diff --git a/src/core/plugin/host/capability-bridge.ts b/src/core/plugin/host/capability-bridge.tsindex 9e82b2c2..f29bd9f7 100644--- a/src/core/plugin/host/capability-bridge.ts+++ b/src/core/plugin/host/capability-bridge.ts@@ -13,12 +13,23 @@// - ffmpeg ops map: tracks running FfmpegOpHandle instances by opId so the// worker can poll progress, await result, or abort.+import { randomUUID } from 'node:crypto'import { Worker } from 'node:worker_threads'import type { SupportedLocale } from '@shared/constants/locales'+import {+ CapabilityCallMessageSchema,+ type CommandInvocationScopeV1,+ HOOK_SCHEMA_VERSION,+ type HookEffectsV1,+ HookEffectsV1Schema,+ HookEnterMessageSchema,+ HookExitMessageSchema,+ type HookInvocationScopeV1,+} from '@shared/schemas/plugin-hooks'import type { PluginManifest } from '@shared/types/plugin'import { z } from 'zod'import type { FfmpegOpHandle, FfmpegProgress } from '../capabilities/ffmpeg'-import { HttpCapabilityHost } from '../capabilities/http'+import type { HttpCapabilityHost } from '../capabilities/http'import type { CapabilityHost } from '../capabilities/interface'import { validateFinalizePatch, validateHttpPatch } from '../hooks/ctx-update'import { classifyFfmpegOutput } from '../hooks/ffmpeg-path-classify'@@ -30,11 +41,14 @@ import type { FfmpegStaging } from '../hooks/staging-dir'import type {BridgeCallMessage,BridgeDeactivate,+ BridgeExecuteCommandResult,BridgeInitMessage,HookName,HostToWorker,WorkerToHost,} from './bridge-protocol'+import { BridgeExecuteCommandResultSchema } from './bridge-protocol'+import { currentPluginCallChain, type PluginCallChain } from './plugin-lane'export interface CapabilityBridgeOptions {pluginId: string@@ -46,6 +60,8 @@ export interface CapabilityBridgeOptions {appVersion: stringruntime: 'electron' | 'server'hostLanguage: SupportedLocale+ /** Generation of the executable and effective policy bound to this worker. */+ permissionGeneration?: number/*** Spec §I30 — runtime permission gate. `required ∪ (optional ∩ granted)`.* Methods whose permission isn't in this set throw@@ -94,6 +110,7 @@ export type HookContextArgs =| {fsTaskHost: ReturnType<CapabilityHost['fsTaskFor']>taskId: string+ effectivePermissions?: ReadonlySet<string>}| {fsTaskHost: ReturnType<CapabilityHost['fsTaskFor']>@@ -104,6 +121,7 @@ export type HookContextArgs =saveDir: stringpluginStorageRoot: string // required in Plan C — ffmpeg gate uses it for path-escape validationstaging?: FfmpegStaging // optional — only beforeFinalize ffmpeg paths need it+ effectivePermissions?: ReadonlySet<string>}/**@@ -279,12 +297,30 @@ const commandsExecuteSchema = z.tuple([z.string(), z.unknown()])interface FfmpegOpEntry {handle: FfmpegOpHandle<{ outputPath: string }>+ taskId: string | nulllastProgress: FfmpegProgress | nulllastEmitTs: number// Drive the progress iterable so lastProgress stays current.// The pump loop runs asynchronously and self-terminates when the iterator ends.}+interface HttpCallEntry {+ controller: AbortController+ hookScope: HookInvocationScopeV1 | null+ commandScope: CommandInvocationScopeV1 | null+ settled: Promise<void>+ markSettled: () => void+}++export interface CapabilityBridgeOperationState {+ capabilityCalls: number+ httpOperations: number+ commandCalls: number+ hookCalls: number+ deactivationCalls: number+ ffmpegOperations: number+}+// ---------------------------------------------------------------------------// CapabilityBridge// ---------------------------------------------------------------------------@@ -305,6 +341,8 @@ export class CapabilityBridge {private currentFsTaskHost: ReturnType<CapabilityHost['fsTaskFor']> | null =nullprivate currentTaskId: string | null = null+ private currentEffectivePermissions: ReadonlySet<string> | null = null+ private currentInvocationScope: HookInvocationScopeV1 | null = null// Phase × Capability matrix fields (Task 8 / Plan C).private currentPhase: Phase | 'idle' = 'idle'private staged: StagedEffectStore | null = null@@ -323,11 +361,17 @@ export class CapabilityBridge {// ffmpeg running op registryprivate readonly ffmpegOps = new Map<string, FfmpegOpEntry>()+ private readonly httpCalls = new Map<number, HttpCallEntry>()+ private inFlightCapabilityCalls = 0// Pending callPlugin() promises: correlation id → {resolve, reject}private readonly pendingCommandCalls = new Map<number,- { resolve: (v: unknown) => void; reject: (e: Error) => void }+ {+ commandScope: CommandInvocationScopeV1+ resolve: (v: unknown) => void+ reject: (e: Error) => void+ }>()private nextCommandCallId = 1@@ -340,7 +384,8 @@ export class CapabilityBridge {// Pending callHook() resolve/reject — at most one in-flight at a time. Plan C// serializes hook calls per plugin, so a single slot is sufficient.private pendingHook: {- resolve: () => void+ scope: HookInvocationScopeV1+ resolve: (effects: HookEffectsV1) => voidreject: (e: Error) => voiddetach: () => void} | null = null@@ -358,6 +403,10 @@ export class CapabilityBridge {})this.worker.on('message', (msg: WorkerToHost) => this.onMessage(msg))this.worker.on('error', (e) => {+ this.failPendingHook(+ 'plugin.hook.worker_crashed',+ 'plugin worker crashed during Hook invocation'+ )this.events.onFatal?.('plugin.runtime.worker_crashed',(e as Error).message@@ -365,6 +414,10 @@ export class CapabilityBridge {})this.worker.on('exit', (code) => {if (!this.disposed && code !== 0) {+ this.failPendingHook(+ 'plugin.hook.worker_crashed',+ `plugin worker exited with code ${code}`+ )this.events.onFatal?.('plugin.runtime.worker_exited',`worker exited with code ${code}`@@ -401,37 +454,77 @@ export class CapabilityBridge {return}if (msg.type === 'event' && msg.event === 'hookExit') {- // Plan C: settle the pending callHook promise (if any) and clear the- // hook context slot. The pending promise is created by callHook() —- // Plan B callers that simply set hook context manually have no pending- // promise, in which case we just clear the slot.- this.clearHookContext()+ const parsed = HookExitMessageSchema.safeParse(msg)+ if (!parsed.success) {+ this.failPendingHook(+ 'plugin.hook.output_invalid',+ 'worker returned an invalid Hook exit message'+ )+ return+ }const pending = this.pendingHook+ if (!pending || !sameHookScope(parsed.data, pending.scope)) {+ this.events.onFatal?.(+ 'plugin.hook.concurrent_protocol_violation',+ 'stale or mismatched Hook exit ignored'+ )+ return+ }+this.pendingHook = null- if (pending) {- pending.detach()- if (msg.ok) {- pending.resolve()+ pending.detach()+ try {+ if (parsed.data.ok) {+ this.applyHookEffects(parsed.data.effects)+ pending.resolve(parsed.data.effects)} else {- const code = msg.errorCode ?? 'plugin.runtime.fault'- const e: Error & { code?: string } = new Error(- `plugin hook failed: ${code}`+ const e = new PluginCodedError(+ parsed.data.error.code,+ parsed.data.error.message)- e.code = codepending.reject(e)}+ } catch (error) {+ const code =+ (error as { code?: string }).code ?? 'plugin.hook.output_invalid'+ pending.reject(+ new PluginCodedError(code, (error as Error).message ?? String(error))+ )+ } finally {+ this.clearHookContext()}return}if (msg.type === 'event' && msg.event === 'executeCommandResult') {- const pending = this.pendingCommandCalls.get(msg.id)+ const parsed = BridgeExecuteCommandResultSchema.safeParse(msg)+ if (!parsed.success) {+ this.events.onFatal?.(+ 'plugin.command.protocol_violation',+ 'worker returned an invalid command result message'+ )+ return+ }+ const result: BridgeExecuteCommandResult = parsed.data+ const pending = this.pendingCommandCalls.get(result.id)if (pending) {- this.pendingCommandCalls.delete(msg.id)- if (msg.ok) {- pending.resolve(msg.result)+ if (!sameCommandScope(result.commandScope, pending.commandScope)) {+ this.events.onFatal?.(+ 'plugin.command.protocol_violation',+ 'worker returned a command result for another lane entry'+ )+ return+ }+ this.pendingCommandCalls.delete(result.id)+ this.abortHttpCalls(+ (entry) =>+ entry.commandScope !== null &&+ sameCommandScope(entry.commandScope, result.commandScope)+ )+ if (result.ok) {+ pending.resolve(result.result)} else {- const e: Error & { code?: string } = new Error(msg.errorMessage)- e.code = msg.errorCode+ const e: Error & { code?: string } = new Error(result.errorMessage)+ e.code = result.errorCodepending.reject(e)}}@@ -454,7 +547,12 @@ export class CapabilityBridge {return}if (msg.type === 'call') {- await this.dispatchCall(msg)+ this.inFlightCapabilityCalls += 1+ try {+ await this.dispatchCall(msg)+ } finally {+ this.inFlightCapabilityCalls -= 1+ }return}}@@ -464,12 +562,79 @@ export class CapabilityBridge {// -------------------------------------------------------------------------async dispatchCall(msg: BridgeCallMessage): Promise<void> {+ const parsedMessage = CapabilityCallMessageSchema.safeParse(msg)+ if (!parsedMessage.success) {+ if (Number.isSafeInteger(msg.id) && msg.id > 0) {+ this.sendError(+ msg.id,+ 'plugin.hook.input_invalid',+ 'invalid capability call message'+ )+ }+ return+ }+ msg = parsedMessage.data++ const messageScope = hookScopeFromMessage(msg)+ if (this.currentInvocationScope) {+ if (+ !messageScope ||+ !sameHookScope(messageScope, this.currentInvocationScope)+ ) {+ this.sendError(+ msg,+ 'plugin.hook.concurrent_protocol_violation',+ 'capability call does not belong to the active Hook invocation'+ )+ return+ }+ } else if (messageScope) {+ this.sendError(+ msg,+ 'plugin.hook.concurrent_protocol_violation',+ 'stale invocation-scoped capability call'+ )+ return+ }++ const commandScope = commandScopeFromMessage(msg)+ if (commandScope) {+ const pending = this.pendingCommandCalls.get(+ commandScope.commandInvocationId+ )+ if (+ !pending ||+ !sameCommandScope(commandScope, pending.commandScope) ||+ commandScope.callChain.plugins.at(-1) !== this.opts.pluginId+ ) {+ this.sendError(+ msg,+ 'plugin.command.protocol_violation',+ 'capability call does not belong to the active command lane entry'+ )+ return+ }+ }++ if (+ messageScope &&+ this.opts.permissionGeneration !== undefined &&+ messageScope.permissionGeneration !== this.opts.permissionGeneration+ ) {+ this.sendError(+ msg,+ 'plugin.runtime.permission_generation_stale',+ 'capability call uses a stale permission generation'+ )+ return+ }+// Spec §I30 — runtime permission gate. Rejects capability calls whose// permission isn't in `effectivePermissions`. Auto-injected capabilities// (log/app/i18n/crypto/lifecycle/commands/config/ctx) bypass.if (!this.permitted(msg.capability)) {this.sendError(- msg.id,+ msg,'plugin.capability.unavailable',`${msg.capability}.${msg.method} denied: optional permission not granted`)@@ -483,7 +648,7 @@ export class CapabilityBridge {const verdict = phaseMatrix(msg.capability, msg.method, this.currentPhase)if (verdict === 'disallowed') {this.sendError(- msg.id,+ msg,'plugin.capability.disallowed_in_phase',`${msg.capability}.${msg.method} not allowed in ${this.currentPhase}`)@@ -541,16 +706,16 @@ export class CapabilityBridge {breakdefault:return this.sendError(- msg.id,+ msg,'plugin.capability.unknown',`unknown capability: ${msg.capability}`)}- this.sendResponse(msg.id, result)+ this.sendResponse(msg, result)} catch (e: unknown) {const code = (e as { code?: string }).code ?? 'plugin.runtime.fault'const message = (e as Error).message ?? String(e)- this.sendError(msg.id, code, message)+ this.sendError(msg, code, message)}}@@ -558,18 +723,49 @@ export class CapabilityBridge {// Response helpers// -------------------------------------------------------------------------- private sendResponse(id: number, result: unknown): void {- const resp: HostToWorker = { type: 'response', id, ok: true, result }+ private sendResponse(+ source: number | BridgeCallMessage,+ result: unknown+ ): void {+ const id = typeof source === 'number' ? source : source.id+ const hookScope =+ typeof source === 'number' ? null : hookScopeFromMessage(source)+ const commandScope =+ typeof source === 'number' ? null : commandScopeFromMessage(source)+ const base = { type: 'response' as const, id, ok: true as const, result }+ const resp: HostToWorker = hookScope+ ? commandScope+ ? { ...base, ...hookScope, commandScope }+ : { ...base, ...hookScope }+ : commandScope+ ? { ...base, commandScope }+ : basethis.worker.postMessage(resp)}- private sendError(id: number, code: string, message: string): void {- const resp: HostToWorker = {- type: 'response',+ private sendError(+ source: number | BridgeCallMessage,+ code: string,+ message: string+ ): void {+ const id = typeof source === 'number' ? source : source.id+ const hookScope =+ typeof source === 'number' ? null : hookScopeFromMessage(source)+ const commandScope =+ typeof source === 'number' ? null : commandScopeFromMessage(source)+ const base = {+ type: 'response' as const,id,- ok: false,+ ok: false as const,error: { code, message },}+ const resp: HostToWorker = hookScope+ ? commandScope+ ? { ...base, ...hookScope, commandScope }+ : { ...base, ...hookScope }+ : commandScope+ ? { ...base, commandScope }+ : basethis.worker.postMessage(resp)}@@ -582,7 +778,8 @@ export class CapabilityBridge {private permitted(capability: string): boolean {const required = CAPABILITY_PERMISSIONS[capability]if (!required) return true- const eff = this.opts.effectivePermissions+ const eff =+ this.currentEffectivePermissions ?? this.opts.effectivePermissionsif (!eff) return truereturn required.some((p) => eff.has(p))}@@ -659,7 +856,7 @@ export class CapabilityBridge {private getPluginHttpHost(): HttpCapabilityHost {if (!this.pluginHttpHost) {const jar = this.opts.capabilityHost.cookieJarFor(this.opts.pluginId)- this.pluginHttpHost = new HttpCapabilityHost({+ this.pluginHttpHost = this.opts.capabilityHost.http.scoped({cookieJar: jar,// Confine outbound requests to the manifest's declared hosts — the// consent screen presents hostPermissions as the plugin's reach, so@@ -672,42 +869,76 @@ export class CapabilityBridge {private async dispatchHttp(msg: BridgeCallMessage): Promise<unknown> {const host = this.getPluginHttpHost()- if (msg.method === 'request') {- const [opts] = msg.args- const parsed = httpRequestSchema.parse(opts)- // Normalize legacy Record-shaped headers to the spec-aligned array form- // expected by HttpCapabilityHost.request().- const headers = parsed.headers- const normalizedHeaders = Array.isArray(headers)- ? headers- : headers !== undefined- ? Object.entries(headers).map(([name, value]) => ({ name, value }))- : undefined- const forHost = { ...parsed, headers: normalizedHeaders }- // Cast body.data to the expected union — Zod z.unknown() is wider than- // HttpRequestBody.data which is string | object | Uint8Array.- return host.request(forHost as Parameters<typeof host.request>[0])- }- if (msg.method === 'get') {- const [url, opts] = msg.args as [string, object?]- return host.get(url, opts as Parameters<HttpCapabilityHost['get']>[1])- }- if (msg.method === 'post') {- const [url, body, opts] = msg.args as [- string,- Parameters<HttpCapabilityHost['post']>[1],- object?,- ]- return host.post(- url,- body,- opts as Parameters<HttpCapabilityHost['post']>[2]+ const entry = this.beginHttpCall(msg)+ try {+ if (msg.method === 'request') {+ const [opts] = msg.args+ const parsed = httpRequestSchema.parse(opts)+ // Normalize legacy Record-shaped headers to the spec-aligned array form+ // expected by HttpCapabilityHost.request().+ const headers = parsed.headers+ const normalizedHeaders = Array.isArray(headers)+ ? headers+ : headers !== undefined+ ? Object.entries(headers).map(([name, value]) => ({ name, value }))+ : undefined+ const forHost = {+ ...parsed,+ headers: normalizedHeaders,+ signal: entry.controller.signal,+ }+ // Cast body.data to the expected union — Zod z.unknown() is wider than+ // HttpRequestBody.data which is string | object | Uint8Array.+ return await host.request(forHost as Parameters<typeof host.request>[0])+ }+ if (msg.method === 'get') {+ const [url, opts] = msg.args as [string, object?]+ return await host.get(url, {+ ...(opts ?? {}),+ signal: entry.controller.signal,+ } as Parameters<HttpCapabilityHost['get']>[1])+ }+ if (msg.method === 'post') {+ const [url, body, opts] = msg.args as [+ string,+ Parameters<HttpCapabilityHost['post']>[1],+ object?,+ ]+ return await host.post(url, body, {+ ...(opts ?? {}),+ signal: entry.controller.signal,+ } as Parameters<HttpCapabilityHost['post']>[2])+ }+ throw new PluginCodedError(+ 'plugin.capability.unavailable',+ `unknown http method: ${msg.method}`)+ } finally {+ this.httpCalls.delete(msg.id)+ entry.markSettled()}- throw new PluginCodedError(- 'plugin.capability.unavailable',- `unknown http method: ${msg.method}`- )+ }++ private beginHttpCall(msg: BridgeCallMessage): HttpCallEntry {+ if (this.httpCalls.has(msg.id)) {+ throw new PluginCodedError(+ 'plugin.command.protocol_violation',+ `duplicate capability call id: ${msg.id}`+ )+ }+ let markSettled: () => void = () => undefined+ const settled = new Promise<void>((resolve) => {+ markSettled = resolve+ })+ const entry: HttpCallEntry = {+ controller: new AbortController(),+ hookScope: hookScopeFromMessage(msg),+ commandScope: commandScopeFromMessage(msg),+ settled,+ markSettled,+ }+ this.httpCalls.set(msg.id, entry)+ return entry}// -------------------------------------------------------------------------@@ -983,7 +1214,8 @@ export class CapabilityBridge {return this.opts.capabilityHost.commands.execute(this.opts.pluginId,commandId,- args+ args,+ commandScopeFromMessage(msg)?.callChain)}// 'register' is handled worker-side (the worker sends a 'register' event).@@ -1033,6 +1265,7 @@ export class CapabilityBridge {const opId = handle.idconst entry: FfmpegOpEntry = {handle,+ taskId: this.currentTaskId,lastProgress: null,lastEmitTs: 0,}@@ -1250,6 +1483,7 @@ export class CapabilityBridge {setHookContext(args: HookContextArgs): void {this.currentFsTaskHost = args.fsTaskHostthis.currentTaskId = args.taskId+ this.currentEffectivePermissions = args.effectivePermissions ?? nullif ('phase' in args) {this.currentPhase = args.phasethis.staged = args.staged@@ -1293,16 +1527,35 @@ export class CapabilityBridge {* TODO(T16): also cancel any tracked ffmpeg/http handles held by this bridge.*/notifyAbort(): void {- if (this.disposed) return- this.worker.postMessage({ type: 'event', event: 'abort' })+ if (this.disposed || !this.currentInvocationScope) return+ const scope = this.currentInvocationScope+ this.worker.postMessage({+ type: 'event',+ event: 'abort',+ ...scope,+ reason: 'plugin hook aborted',+ })+ this.abortHttpCalls(+ (entry) =>+ entry.hookScope !== null && sameHookScope(entry.hookScope, scope)+ )}/*** Called by Plan C (or by the hookExit event handler) to clear hook context.*/clearHookContext(): void {+ const scope = this.currentInvocationScope+ if (scope) {+ this.abortHttpCalls(+ (entry) =>+ entry.hookScope !== null && sameHookScope(entry.hookScope, scope)+ )+ }this.currentFsTaskHost = nullthis.currentTaskId = null+ this.currentEffectivePermissions = null+ this.currentInvocationScope = nullthis.currentPhase = 'idle'this.staged = nullthis.hookRole = null@@ -1311,6 +1564,107 @@ export class CapabilityBridge {this.hookStaging = null}+ private failPendingHook(code: string, message: string): void {+ const pending = this.pendingHook+ this.pendingHook = null+ if (pending) {+ pending.detach()+ pending.reject(new PluginCodedError(code, message))+ }+ this.clearHookContext()+ }++ private createCompatibilityHookScope(): HookInvocationScopeV1 {+ const invocationId = randomUUID()+ return {+ invocationId,+ callChainId: invocationId,+ permissionGeneration: this.opts.permissionGeneration ?? 0,+ }+ }++ /**+ * Applies a validated Hook exit as one Host-side unit. The Worker never+ * sends ctx.update or Hook metadata writes as asynchronous capability calls;+ * therefore no effect can be overtaken by hookExit.+ */+ private applyHookEffects(raw: HookEffectsV1): void {+ const effects = HookEffectsV1Schema.parse(raw)+ const phase = this.currentPhase++ if (phase !== 'beforeCreate' && phase !== 'beforeFinalize') {+ if (+ effects.contextPatches.length > 0 ||+ effects.metadataOperations.length > 0+ ) {+ throw new PluginCodedError(+ 'plugin.hook.output_invalid',+ `mutating effects are not allowed in ${phase}`+ )+ }+ return+ }++ if (!this.staged || !this.hookRole || this.hookSaveDir === null) {+ throw new PluginCodedError(+ 'plugin.hook.output_invalid',+ 'pre-Hook effects require a complete staged Host context'+ )+ }+ if (+ this.hookRole === 'audit' &&+ (effects.contextPatches.length > 0 ||+ effects.metadataOperations.length > 0)+ ) {+ throw new PluginCodedError(+ 'plugin.hook.permission_denied',+ 'audit Hooks cannot mutate context or metadata'+ )+ }+ if (effects.metadataOperations.length > 0 && !this.permitted('metadata')) {+ throw new PluginCodedError(+ 'plugin.hook.permission_denied',+ 'Hook metadata writes require the metadata permission'+ )+ }++ const validationOptions = {+ permissions: new Set(+ this.opts.effectivePermissions ?? this.opts.manifest.permissions ?? []+ ) as ReadonlySet<string>,+ role: this.hookRole,+ hook: phase,+ saveDir: this.hookSaveDir,+ }+ const patches = effects.contextPatches.map((patch) =>+ phase === 'beforeCreate'+ ? validateHttpPatch(patch, validationOptions)+ : validateFinalizePatch(patch, validationOptions)+ )++ for (const patch of patches) {+ if (phase === 'beforeCreate') {+ this.staged.appendHttp(+ this.opts.pluginId,+ this.hookRole,+ patch as Parameters<typeof this.staged.appendHttp>[2]+ )+ } else {+ this.staged.setFinalizePath((patch as { filePath: string }).filePath)+ }+ }+ for (const operation of effects.metadataOperations) {+ this.staged.appendMeta({+ pluginId: this.opts.pluginId,+ ...operation,+ size:+ operation.op === 'set'+ ? Buffer.byteLength(JSON.stringify(operation.value))+ : undefined,+ })+ }+ }+/*** Routes a dispatch call to the staged-effect store when the phase matrix* returns `'staged'`. Validates the patch/op and appends to the store.@@ -1318,7 +1672,7 @@ export class CapabilityBridge {*/private async handleStaged(msg: BridgeCallMessage): Promise<void> {if (!this.staged || !this.hookRole || this.hookSaveDir === null) {- this.sendError(msg.id, 'plugin.runtime.fault', 'staged store missing')+ this.sendError(msg, 'plugin.runtime.fault', 'staged store missing')return}const perms = new Set(this.opts.manifest.permissions ?? [])@@ -1348,11 +1702,11 @@ export class CapabilityBridge {(validated as { filePath: string }).filePath)}- this.sendResponse(msg.id, undefined)+ this.sendResponse(msg, undefined)} catch (e: unknown) {const code = (e as { code?: string }).code ?? 'plugin.runtime.fault'const message = (e as Error).message ?? String(e)- this.sendError(msg.id, code, message)+ this.sendError(msg, code, message)}return}@@ -1364,7 +1718,7 @@ export class CapabilityBridge {key: msg.args[0] as string,value: msg.args[1],})- this.sendResponse(msg.id, undefined)+ this.sendResponse(msg, undefined)return}if (msg.method === 'delete') {@@ -1373,13 +1727,13 @@ export class CapabilityBridge {op: 'delete',key: msg.args[0] as string,})- this.sendResponse(msg.id, undefined)+ this.sendResponse(msg, undefined)return}}// Unrecognized staged dispatch — should not happen if matrix is correct.this.sendError(- msg.id,+ msg,'plugin.runtime.fault',`staged dispatch not implemented for ${msg.capability}.${msg.method}`)@@ -1397,13 +1751,26 @@ export class CapabilityBridge {callPlugin(commandId: string,args: unknown,- timeoutMs = 10_000+ timeoutMs = 10_000,+ callChain?: PluginCallChain): Promise<unknown> {const id = this.nextCommandCallId+++ const laneCallChain = callChain ?? currentPluginCallChain()+ const commandScope: CommandInvocationScopeV1 = {+ commandInvocationId: id,+ callChain: laneCallChain+ ? { id: laneCallChain.id, plugins: [...laneCallChain.plugins] }+ : { id: randomUUID(), plugins: [this.opts.pluginId] },+ }return new Promise<unknown>((resolve, reject) => {const timer = setTimeout(() => {if (this.pendingCommandCalls.has(id)) {this.pendingCommandCalls.delete(id)+ this.abortHttpCalls(+ (entry) =>+ entry.commandScope !== null &&+ sameCommandScope(entry.commandScope, commandScope)+ )reject(new Error(`callPlugin('${commandId}') timed out after ${timeoutMs}ms`@@ -1413,6 +1780,7 @@ export class CapabilityBridge {}, timeoutMs)this.pendingCommandCalls.set(id, {+ commandScope,resolve: (v) => {clearTimeout(timer)resolve(v)@@ -1429,6 +1797,7 @@ export class CapabilityBridge {id,commandId,args,+ commandScope,}this.worker.postMessage(msg)})@@ -1499,8 +1868,9 @@ export class CapabilityBridge {signal: AbortSignal,timeoutMs: number,ctxPayload?: Record<string, unknown>,- metadataSnapshot?: Record<string, unknown>- ): Promise<void> {+ metadataSnapshot?: Record<string, unknown>,+ requestedScope?: HookInvocationScopeV1+ ): Promise<HookEffectsV1> {if (this.disposed) {return Promise.reject(new PluginCodedError(@@ -1518,20 +1888,62 @@ export class CapabilityBridge {)}- return new Promise<void>((resolve, reject) => {+ const scope = requestedScope ?? this.createCompatibilityHookScope()+ if (+ this.opts.permissionGeneration !== undefined &&+ scope.permissionGeneration !== this.opts.permissionGeneration+ ) {+ this.clearHookContext()+ return Promise.reject(+ new PluginCodedError(+ 'plugin.runtime.permission_generation_stale',+ 'Hook invocation uses a stale permission generation'+ )+ )+ }+ const payload = normalizeBeforeFinalizeBtSource(hook, {+ ...(ctxPayload ?? {}),+ schemaVersion: HOOK_SCHEMA_VERSION,+ invocationId: scope.invocationId,+ taskId,+ })+ const enter = HookEnterMessageSchema.safeParse({+ type: 'event',+ event: 'hookEnter',+ hook,+ ...scope,+ taskId,+ ctxPayload: payload,+ metadataSnapshot: metadataSnapshot ?? {},+ })+ if (!enter.success) {+ this.clearHookContext()+ return Promise.reject(+ new PluginCodedError(+ 'plugin.hook.input_invalid',+ `invalid ${hook} context: ${enter.error.issues[0]?.message ?? 'schema mismatch'}`+ )+ )+ }++ return new Promise<HookEffectsV1>((resolve, reject) => {const onAbort = () => {- if (this.pendingHook) {+ if (this.pendingHook && sameHookScope(this.pendingHook.scope, scope)) {+ this.notifyAbort()this.pendingHook.detach()this.pendingHook = null+ this.clearHookContext()const e: Error & { code?: string } = new Error('plugin hook aborted')e.code = 'plugin.hook.aborted'reject(e)}}const timer = setTimeout(() => {- if (this.pendingHook) {+ if (this.pendingHook && sameHookScope(this.pendingHook.scope, scope)) {+ this.notifyAbort()this.pendingHook.detach()this.pendingHook = null+ this.clearHookContext()const e: Error & { code?: string } = new Error(`plugin hook timed out after ${timeoutMs}ms`)@@ -1542,6 +1954,7 @@ export class CapabilityBridge {if (signal.aborted) {clearTimeout(timer)+ this.clearHookContext()const e: Error & { code?: string } = new Error('plugin hook aborted')e.code = 'plugin.hook.aborted'reject(e)@@ -1550,7 +1963,10 @@ export class CapabilityBridge {signal.addEventListener('abort', onAbort, { once: true })+ this.currentInvocationScope = scope+ if (this.currentPhase === 'idle') this.currentPhase = hookthis.pendingHook = {+ scope,resolve,reject,detach: () => {@@ -1559,14 +1975,7 @@ export class CapabilityBridge {},}- this.worker.postMessage({- type: 'event',- event: 'hookEnter',- hook,- taskId,- ctxPayload,- metadataSnapshot,- })+ this.worker.postMessage(enter.data)})}@@ -1579,17 +1988,86 @@ export class CapabilityBridge {return this.worker}+ /** Snapshot used by idle recycling and diagnostics; no mutable state leaks. */+ operationState(): CapabilityBridgeOperationState {+ return {+ capabilityCalls: this.inFlightCapabilityCalls,+ httpOperations: this.httpCalls.size,+ commandCalls: this.pendingCommandCalls.size,+ hookCalls: this.pendingHook ? 1 : 0,+ deactivationCalls: this.pendingDeactivate ? 1 : 0,+ ffmpegOperations: this.ffmpegOps.size,+ }+ }++ /** True while the bridge owns any guest entry, capability lease, or op. */+ hasInFlightOperations(): boolean {+ const state = this.operationState()+ return Object.values(state).some((count) => count > 0)+ }++ /** Abort and drain every Host-owned writer bound to one task artifact. */+ async quiesceTaskWriters(taskId: string): Promise<void> {+ const matches = [...this.ffmpegOps.entries()].filter(+ ([, entry]) => entry.taskId === taskId+ )+ for (const [, entry] of matches) entry.handle.abort()+ await Promise.allSettled(matches.map(([, entry]) => entry.handle.result))+ for (const [opId] of matches) this.ffmpegOps.delete(opId)+ }+async dispose(): Promise<void> {if (this.disposed) returnthis.disposed = true+ this.failPendingHook('plugin.runtime.bridge_disposed', 'bridge disposed')+ const httpCalls = this.abortHttpCalls(() => true)// Abort any running ffmpeg opsfor (const entry of this.ffmpegOps.values()) {entry.handle.abort()}this.ffmpegOps.clear()+ await Promise.allSettled(httpCalls.map((entry) => entry.settled))this.worker.postMessage({ type: 'event', event: 'shutdown' })await this.worker.terminate()}++ private abortHttpCalls(+ predicate: (entry: HttpCallEntry) => boolean+ ): HttpCallEntry[] {+ const matches = [...this.httpCalls.values()].filter(predicate)+ for (const entry of matches) entry.controller.abort('host_scope_closed')+ return matches+ }+}++function normalizeBeforeFinalizeBtSource(+ hook: HookName,+ payload: Record<string, unknown>+): Record<string, unknown> {+ if (hook !== 'beforeFinalize') return payload+ const task = payload.task+ if (!task || typeof task !== 'object' || Array.isArray(task)) return payload+ const taskRecord = task as Record<string, unknown>+ if (taskRecord.type !== 'bt' && taskRecord.type !== 'magnet') return payload++ const infoHash =+ typeof taskRecord.infoHash === 'string' ? taskRecord.infoHash.trim() : ''+ const canonicalInfoHash = /^(?:[0-9a-f]{40}|[a-z2-7]{32})$/i.test(infoHash)+ ? infoHash.toLowerCase()+ : null+ const stableTaskId =+ typeof taskRecord.id === 'string' && taskRecord.id.length > 0+ ? taskRecord.id+ : typeof payload.taskId === 'string'+ ? payload.taskId+ : ''++ return {+ ...payload,+ sourceUrl: canonicalInfoHash+ ? `urn:btih:${canonicalInfoHash}`+ : `urn:motrix:bt:${Buffer.from(stableTaskId, 'utf8').toString('base64url')}`,+ }}export function prepareBundle(source: string): string {@@ -1621,3 +2099,45 @@ export function prepareBundle(source: string): string {})}++function hookScopeFromMessage(+ message: BridgeCallMessage+): HookInvocationScopeV1 | null {+ if (!('invocationId' in message)) return null+ return {+ invocationId: message.invocationId,+ callChainId: message.callChainId,+ permissionGeneration: message.permissionGeneration,+ }+}++function commandScopeFromMessage(+ message: BridgeCallMessage+): CommandInvocationScopeV1 | null {+ return 'commandScope' in message ? message.commandScope : null+}++function sameCommandScope(+ left: CommandInvocationScopeV1,+ right: CommandInvocationScopeV1+): boolean {+ return (+ left.commandInvocationId === right.commandInvocationId &&+ left.callChain.id === right.callChain.id &&+ left.callChain.plugins.length === right.callChain.plugins.length &&+ left.callChain.plugins.every(+ (pluginId, index) => pluginId === right.callChain.plugins[index]+ )+ )+}++function sameHookScope(+ left: HookInvocationScopeV1,+ right: HookInvocationScopeV1+): boolean {+ return (+ left.invocationId === right.invocationId &&+ left.callChainId === right.callChainId &&+ left.permissionGeneration === right.permissionGeneration+ )+}diff --git a/src/core/plugin/host/orchestrator.e2e.test.ts b/src/core/plugin/host/orchestrator.e2e.test.tsindex 883adfd2..346bb192 100644--- a/src/core/plugin/host/orchestrator.e2e.test.ts+++ b/src/core/plugin/host/orchestrator.e2e.test.ts@@ -1,251 +1,644 @@-// src/core/plugin/host/orchestrator.e2e.test.ts-// End-to-end integration test for the Plan C HookOrchestrator. Spawns real-// QuickJS workers loaded with role-band fixture plugins and exercises the full-// beforeCreate chain: resolve → enrich → audit, plus the fail-mode contract-// (resolve aborts, enrich/audit fail-open isolated).-//-// Each test boots a fresh registry + host so plugins don't leak between cases.-// The host is torn down at the end of every test to release worker_threads.--import { cpSync, mkdirSync, mkdtempSync } from 'node:fs'-import { tmpdir } from 'node:os'+import { randomUUID } from 'node:crypto'+import { existsSync } from 'node:fs'+import {+ mkdir,+ mkdtemp,+ readFile,+ realpath,+ rm,+ writeFile,+} from 'node:fs/promises'+import type { IncomingMessage, ServerResponse } from 'node:http'+import https from 'node:https'+import os from 'node:os'import path from 'node:path'+import tls from 'node:tls'+import { ConfigCapabilityHost } from '@core/plugin/capabilities/config'+import { FsTaskCapabilityHost } from '@core/plugin/capabilities/fs-task'+import { HttpCapabilityHost } from '@core/plugin/capabilities/http'+import {+ CookieJar,+ ensureCookieJarSchema,+} from '@core/plugin/capabilities/http-cookies'+import {+ ensureMetadataSchema,+ MetadataCapabilityHost,+} from '@core/plugin/capabilities/metadata'+import {+ artifactContentEquals,+ artifactIdentityEquals,+ readArtifactIdentity,+} from '@core/plugin/finalize/artifact-identity'+import { ArtifactMutationLeaseCoordinator } from '@core/plugin/finalize/artifact-mutation-lease'+import { NativeFinalizeFilesystemAdapter } from '@core/plugin/finalize/filesystem-adapter'+import {+ FinalizeCommitter,+ type FinalizeJournalRecord,+} from '@core/plugin/finalize/finalize-committer'+import { freezeHookPlan } from '@core/plugin/finalize/hook-plan'+import { NativeFinalizeArtifactOperations } from '@core/plugin/finalize/native-artifact-operations'+import { HookOrchestrator } from '@core/plugin/hooks/hook-orchestrator'+import { PluginRegistry } from '@core/plugin/plugin-registry'+import { PluginStateStore } from '@core/plugin/state/plugin-state-store'import { migrate } from '@core/session/migrations'-import type { SupportedLocale } from '@shared/constants/locales'-import type { BeforeCreateHttpContextDTO } from '@shared/types/plugin-hooks'+import type {+ BeforeCreateHttpContextDTO,+ BeforeFinalizeContextDTO,+ PluginHookTask,+} from '@shared/types/plugin-hooks'import Database from 'better-sqlite3'-import { afterEach, beforeEach, describe, expect, it } from 'vitest'-import { AppCapabilityHost } from '../capabilities/app'-import { I18nCapabilityHost } from '../capabilities/i18n'-import type { CapabilityHost } from '../capabilities/interface'-import { LogCapabilityHost } from '../capabilities/log'-import { HookOrchestrator } from '../hooks/hook-orchestrator'-import { PluginRegistry } from '../plugin-registry'-import { PluginStateStore } from '../state/plugin-state-store'+import { Agent, type Dispatcher } from 'undici'+import { afterEach, describe, expect, it } from 'vitest'+import { ActivationDispatcher } from './activation-dispatcher'import { PluginHost } from './plugin-host'--const FIXTURE_ROOT = path.join(__dirname, '../../../../tests/fixtures/plugins')-const WORKER_SCRIPT_PATH = path.join(- __dirname,- '../../../../dist-test/quick-js-worker.cjs'+import { makeStubCapabilityHost } from './test-helpers'++const ROOT = path.resolve(__dirname, '../../../..')+const BUILTIN_DIR = path.join(ROOT, 'dist/builtin-plugins')+const WORKER_SCRIPT_PATH = path.join(ROOT, 'dist-test/quick-js-worker.cjs')+const NATIVE_BINARY = path.join(+ ROOT,+ 'packages/finalize-fs/target/debug',+ process.platform === 'win32' ? 'motrix-finalize-fs.exe' : 'motrix-finalize-fs'+)+const TLS_KEY = path.join(+ ROOT,+ 'src/server/bridge/__fixtures__/motrix.test-key.pem'+)+const TLS_CERT = path.join(+ ROOT,+ 'src/server/bridge/__fixtures__/motrix.test-cert.pem')-// ----------------------------------------------------------------------------// Boot helpers-// -----------------------------------------------------------------------------interface BootedStack {+interface Harness {+ root: string+ database: Database.Database+ metadata: MetadataCapabilityHost+ registry: PluginRegistry+ stateStore: PluginStateStorehost: PluginHostorchestrator: HookOrchestrator- rootDir: string- shutdown(): Promise<void>+ logs: Array<{ level: string; message: string; fields?: unknown }>}-function buildCapHost(rootDir: string): CapabilityHost {- const log = new LogCapabilityHost({- pluginLogsDir: path.join(rootDir, 'logs'),- })- const app = new AppCapabilityHost({- appVersion: '2.5.0',- platform: 'linux',- runtime: 'server',- locale: 'en-US',- arch: 'x64',- })- const i18n = new I18nCapabilityHost({ hostLanguage: 'en-US' })- // Plan A surface only: the role-band fixtures call ctx.update which is- // routed by the bridge's staged-effects path (not a CapabilityHost method),- // so the remaining Plan B getters can stay as inert stubs.- return {- createLog: (id: string) => log.create(id),- getTail: (id: string, n: number) => log.getTail(id, n),- appSnapshot: () => app.snapshot(),- i18nSnapshot: () => ({- language: 'en-US',- dir: 'ltr' as const,- currentDict: {},- fallbackDict: {},- }),- setLocale: (locale: SupportedLocale) => i18n.setLanguage(locale),- onLocaleChange: (h: (lang: string) => void) => i18n.onChange(h),- flush: () => log.flush(),- } as unknown as CapabilityHost-}+const cleanups: Array<() => Promise<void> | void> = []-async function bootStack(- fixtureIds: ReadonlyArray<string>-): Promise<BootedStack> {- const rootDir = mkdtempSync(path.join(tmpdir(), 'mhe-orch-'))- mkdirSync(path.join(rootDir, 'plugins'))- for (const id of fixtureIds) {- cpSync(path.join(FIXTURE_ROOT, id), path.join(rootDir, 'plugins', id), {- recursive: true,- })- }+afterEach(async () => {+ for (const cleanup of cleanups.splice(0).reverse()) await cleanup()+})- const db = new Database(':memory:')- migrate(db)- const stateStore = new PluginStateStore(db)+async function makeHarness(+ input: {+ dispatcher?: Dispatcher+ config?: Record<string, Record<string, unknown>>+ } = {}+): Promise<Harness> {+ const root = await realpath(+ await mkdtemp(path.join(os.tmpdir(), 'motrix-builtin-hooks-'))+ )+ const pluginsDir = path.join(root, 'plugins')+ await mkdir(pluginsDir)+ cleanups.push(() => rm(root, { recursive: true, force: true }))++ const database = new Database(':memory:')+ migrate(database)+ ensureCookieJarSchema(database)+ ensureMetadataSchema(database)+ cleanups.push(() => {+ database.close()+ })+ const stateStore = new PluginStateStore(database)const registry = new PluginRegistry({- pluginsDir: path.join(rootDir, 'plugins'),- builtinDir: path.join(rootDir, 'builtin'),+ pluginsDir,+ builtinDir: BUILTIN_DIR,stateStore,hostVersion: '2.5.0',})await registry.discover()+ expect(registry.loadErrors()).toEqual([])++ const metadata = new MetadataCapabilityHost({ db: database })+ const capabilityHost = makeStubCapabilityHost()+ const logs: Harness['logs'] = []+ Object.assign(capabilityHost, {+ createLog: () => ({+ trace: (message: string, fields?: unknown) =>+ logs.push({ level: 'trace', message, fields }),+ debug: (message: string, fields?: unknown) =>+ logs.push({ level: 'debug', message, fields }),+ info: (message: string, fields?: unknown) =>+ logs.push({ level: 'info', message, fields }),+ warn: (message: string, fields?: unknown) =>+ logs.push({ level: 'warn', message, fields }),+ error: (message: string, fields?: unknown) =>+ logs.push({ level: 'error', message, fields }),+ fatal: (message: string, fields?: unknown) =>+ logs.push({ level: 'fatal', message, fields }),+ }),+ http: new HttpCapabilityHost({ dispatcher: input.dispatcher }),+ metadata,+ configFor: (pluginId: string) =>+ new ConfigCapabilityHost({+ pluginId,+ readValues: () => input.config?.[pluginId] ?? {},+ schemaDefaults: {},+ secretFields: new Set(),+ }),+ fsTaskFor: (saveDir: string, filePath: string) =>+ new FsTaskCapabilityHost({ saveDir, filePath }),+ cookieJarFor: (pluginId: string) => new CookieJar(database, pluginId),+ })const host = new PluginHost({registry,stateStore,- capabilityHost: buildCapHost(rootDir),+ capabilityHost,workerScriptPath: WORKER_SCRIPT_PATH,+ idleDisposeMs: 1,appVersion: '2.5.0',runtime: 'server',hostLanguage: 'en-US',})-- for (const id of fixtureIds) {- await host.activate(id)- }-+ cleanups.push(() => host.shutdown())+ const activation = new ActivationDispatcher(registry, host)const orchestrator = new HookOrchestrator({host,- hookTimeoutMs: { series: 10_000, parallel: 30_000 },- pluginsDir: rootDir,- pluginStorageRootFor: (id) => `${rootDir}/${id}/storage`,+ activationDispatcher: activation,+ capabilityHost,+ hookTimeoutMs: { series: 10_000, parallel: 10_000 },+ pluginsDir,+ pluginStorageRootFor: (pluginId) =>+ path.join(pluginsDir, pluginId, 'storage'),})-return {+ root,+ database,+ metadata,+ registry,+ stateStore,host,orchestrator,- rootDir,- async shutdown() {- await host.shutdown()- db.close()+ logs,+ }+}++async function createOriginPreservingLoopback(+ handler: (request: IncomingMessage, response: ServerResponse) => void+): Promise<{ dispatcher: Agent; close(): Promise<void> }> {+ const server = https.createServer(+ {+ key: await readFile(TLS_KEY),+ cert: await readFile(TLS_CERT),+ },+ handler+ )+ await new Promise<void>((resolve, reject) => {+ server.once('error', reject)+ server.listen(0, '127.0.0.1', () => {+ server.off('error', reject)+ resolve()+ })+ })+ const address = server.address()+ if (!address || typeof address === 'string') {+ throw new Error('loopback TLS server did not expose a TCP port')+ }+ const dispatcher = new Agent({+ connect: (_options, callback) => {+ let settled = false+ const socket = tls.connect({+ host: '127.0.0.1',+ port: address.port,+ servername: 'localhost',+ rejectUnauthorized: false,+ ALPNProtocols: ['http/1.1'],+ })+ socket.once('secureConnect', () => {+ if (settled) return+ settled = true+ callback(null, socket)+ })+ socket.once('error', (error) => {+ if (settled) return+ settled = true+ callback(error, null)+ })+ return socket+ },+ })+ return {+ dispatcher,+ async close() {+ await dispatcher.close()+ await new Promise<void>((resolve, reject) => {+ server.close((error) => (error ? reject(error) : resolve()))+ })},}}-function makeCtx(): BeforeCreateHttpContextDTO {- // Cast: BeforeCreateHttpContextDTO is readonly; tests need a fresh shape.- // The orchestrator treats it as readonly and the merger consumes it.+function enableOnly(harness: Harness, pluginId: string): void {+ for (const plugin of harness.registry.list()) {+ harness.stateStore.setEnabled(plugin.id, plugin.id === pluginId)+ harness.registry.refreshState(plugin.id)+ }+}++function beforeCreate(+ taskId: string,+ url: string,+ saveDir: string+): BeforeCreateHttpContextDTO {return {+ schemaVersion: 1,+ invocationId: `acceptance:${taskId}`,+ taskId,type: 'http',- sourceUrl: 'https://example.com/x',- uris: ['https://example.com/x'],- saveDir: '/tmp/save',- headers: [{ name: 'User-Agent', value: 'tester' }],+ sourceUrl: url,+ uris: [url],+ saveDir,+ headers: [],createdBy: 'user',- requestedAt: Date.now(),- } as BeforeCreateHttpContextDTO+ requestedAt: 1_700_000_000_000,+ }}-// ----------------------------------------------------------------------------// Tests-// -----------------------------------------------------------------------------describe('Plugin Hook Orchestrator (e2e)', () => {- let stack: BootedStack | null = null-- beforeEach(() => {- stack = null- })-- afterEach(async () => {- if (stack) {- await stack.shutdown()- stack = null- }- })+function taskSnapshot(input: {+ id: string+ type: PluginHookTask['type']+ kind: PluginHookTask['kind']+ saveDir: string+ filePath: string+}): PluginHookTask {+ return {+ schemaVersion: 1,+ id: input.id,+ name: path.basename(input.filePath),+ type: input.type,+ kind: input.kind,+ status: 'finalizing',+ filePath: input.filePath,+ saveDir: input.saveDir,+ filename: path.basename(input.filePath),+ progress: 100,+ totalBytes: 7,+ downloadedBytes: 7,+ uploadedBytes: 0,+ sizeWhenDone: 7,+ fileCount: 1,+ createdAt: 1_700_000_000_000,+ updatedAt: 1_700_000_000_100,+ finishedAt: null,+ category: null,+ infoHash: input.type === 'bt' ? 'a'.repeat(40) : null,+ error: null,+ }+}- it('full chain: resolve + enrich + audit merge with attribution', async () => {- stack = await bootStack([- 'test.resolve-band',- 'test.enrich-band',- 'test.audit-band',- ])+function beforeFinalize(input: {+ task: PluginHookTask+ sourceUrl: string+}): BeforeFinalizeContextDTO {+ return {+ schemaVersion: 1,+ invocationId: `acceptance:${input.task.id}`,+ taskId: input.task.id,+ sourceUrl: input.sourceUrl,+ createdBy: 'user',+ requestedAt: 1_700_000_000_000,+ task: input.task,+ inputFilePath: input.task.filePath,+ filePath: input.task.filePath,+ targetFilePath: input.task.filePath,+ }+}- const initial = makeCtx()- const result = await stack.orchestrator.runBeforeCreateHttp(- initial,- 'task-1'+describe('locked builtin bundles through PluginHost + QuickJS Hooks', () => {+ it('scraper-hook performs real HEAD+GET and resolves a nested relative archive', async () => {+ const requests: Array<{ method: string; host: string; path: string }> = []+ const loopback = await createOriginPreservingLoopback(+ (request, response) => {+ requests.push({+ method: request.method ?? '',+ host: request.headers.host ?? '',+ path: request.url ?? '',+ })+ if (+ request.headers.host !== 'example.test' ||+ request.url !== '/catalog/deep/page.html'+ ) {+ response.writeHead(421).end()+ return+ }+ response.setHeader('content-type', 'text/html; charset=utf-8')+ if (request.method === 'HEAD') {+ response.writeHead(200).end()+ return+ }+ if (request.method === 'GET') {+ response+ .writeHead(200)+ .end('<html><a href="../archives/release.zip">download</a></html>')+ return+ }+ response.writeHead(405).end()+ })+ cleanups.push(() => loopback.close())- if ('aborted' in result && result.aborted) {- throw new Error(`expected success, got abort: ${result.reason}`)- }-- // Resolve plugin rewrote the URI list.- expect(result.final.uris).toEqual(['https://cdn.example.com/resolved'])- expect(result.contributors.uris).toBe('test.resolve-band')-- // Enrich plugin appended the X-Enrich header (case-insensitive de-dup- // keeps the user-supplied UA in place).- const headerNames = result.final.headers.map((h) => h.name)- expect(headerNames).toContain('X-Enrich')- expect(headerNames).toContain('User-Agent')- expect(result.contributors.headers).toContain('test.enrich-band')-- // Audit plugin tried to mutate via ctx.update; the bridge rejected the- // call with AuditRoleCannotMutate, so it produces no contribution.- expect(result.contributors.headers).not.toContain('test.audit-band')- }, 30_000)-- it('resolve throws → chain aborted, no staged effects survive', async () => {- stack = await bootStack(['test.resolve-band-throws'])-- const result = await stack.orchestrator.runBeforeCreateHttp(- makeCtx(),- 'task-2'+ const harness = await makeHarness({+ dispatcher: loopback.dispatcher,+ config: {+ 'motrix.scraper-hook': { enabled: true, maxBodyBytes: 64 << 10 },+ },+ })+ enableOnly(harness, 'motrix.scraper-hook')+ const taskId = 'builtin-scraper-task'+ const result = await harness.orchestrator.runBeforeCreateHttp(+ beforeCreate(+ taskId,+ 'https://example.test/catalog/deep/page.html',+ harness.root+ ),+ taskId)- expect('aborted' in result && result.aborted).toBe(true)- if (!('aborted' in result) || !result.aborted) return // narrow for TS- expect(result.reason).toContain('test.resolve-band-throws')- // Plan C surface for an abort returns ChainAborted (no `staged` /- // `final` to inspect); TaskManager treats that as not-created.+ if (result.aborted) throw new Error(result.reason)+ expect(harness.logs.filter((entry) => entry.level === 'warn')).toEqual([])+ expect(requests).toEqual([+ {+ method: 'HEAD',+ host: 'example.test',+ path: '/catalog/deep/page.html',+ },+ {+ method: 'GET',+ host: 'example.test',+ path: '/catalog/deep/page.html',+ },+ ])+ expect(result.final.uris).toEqual([+ 'https://example.test/catalog/archives/release.zip',+ ])}, 30_000)- it('enrich throws → chain continues, throwing plugin contributes nothing', async () => {- stack = await bootStack(['test.enrich-band', 'test.enrich-band-throws'])-- const result = await stack.orchestrator.runBeforeCreateHttp(- makeCtx(),- 'task-3'+ it('url-resolver keeps the Commons API transport authorized and emits the API-selected upload URL', async () => {+ const requests: Array<{ method: string; host: string; path: string }> = []+ const loopback = await createOriginPreservingLoopback(+ (request, response) => {+ const requestPath = request.url ?? ''+ const parsed = new URL(requestPath, 'https://commons.wikimedia.org')+ requests.push({+ method: request.method ?? '',+ host: request.headers.host ?? '',+ path: requestPath,+ })+ if (+ request.method !== 'GET' ||+ request.headers.host !== 'commons.wikimedia.org' ||+ parsed.pathname !== '/w/api.php' ||+ parsed.searchParams.get('action') !== 'query' ||+ parsed.searchParams.get('format') !== 'json' ||+ parsed.searchParams.get('prop') !== 'imageinfo' ||+ parsed.searchParams.get('iiprop') !== 'url' ||+ parsed.searchParams.get('titles') !== 'File:Example.jpg'+ ) {+ response.writeHead(421).end()+ return+ }+ response.writeHead(200, { 'content-type': 'application/json' }).end(+ JSON.stringify({+ query: {+ pages: {+ 1: {+ imageinfo: [+ {+ url: 'https://upload.wikimedia.org/wikipedia/commons/example.jpg',+ },+ ],+ },+ },+ },+ })+ )+ }+ )+ cleanups.push(() => loopback.close())++ const harness = await makeHarness({ dispatcher: loopback.dispatcher })+ enableOnly(harness, 'motrix.url-resolver')+ const taskId = 'builtin-resolver-task'+ const result = await harness.orchestrator.runBeforeCreateHttp(+ beforeCreate(+ taskId,+ 'https://commons.wikimedia.org/wiki/File:Example.jpg',+ harness.root+ ),+ taskId)- expect('aborted' in result && result.aborted).toBeFalsy()- if ('aborted' in result && result.aborted) return-- const headerNames = result.final.headers.map((h) => h.name)- // The working enrich plugin's header is present.- expect(headerNames).toContain('X-Enrich')- // The throwing plugin's staged header was dropped via- // staged.removeFromPlugin() (fail-open isolation per spec §10).- expect(headerNames).not.toContain('X-Enrich-Throws')- expect(result.contributors.headers).toContain('test.enrich-band')- expect(result.contributors.headers).not.toContain('test.enrich-band-throws')+ if (result.aborted) throw new Error(result.reason)+ expect(harness.logs.filter((entry) => entry.level === 'warn')).toEqual([])+ expect(result.final.uris).toEqual([+ 'https://upload.wikimedia.org/wikipedia/commons/example.jpg',+ ])+ expect(requests).toHaveLength(1)+ expect(requests[0]).toMatchObject({+ method: 'GET',+ host: 'commons.wikimedia.org',+ })}, 30_000)- it('audit-role ctx.update is rejected at the bridge (worker-side throws)', async () => {- stack = await bootStack(['test.audit-band'])+ it('filename-template reads nested metadata and reactivates after idle disposal', async () => {+ const harness = await makeHarness({+ config: {+ 'motrix.filename-template': {+ template: '{{meta.release.channel}}-{{title}}',+ },+ },+ })+ enableOnly(harness, 'motrix.filename-template')+ const taskId = 'builtin-filename-task'+ const source = path.join(harness.root, 'original.zip')+ await writeFile(source, 'payload')+ await harness.metadata.set(taskId, 'motrix.filename-template', 'release', {+ channel: 'nightly',+ })+ const dto = beforeFinalize({+ task: taskSnapshot({+ id: taskId,+ type: 'http',+ kind: 'direct',+ saveDir: harness.root,+ filePath: source,+ }),+ sourceUrl: 'https://example.test/original.zip',+ })- const result = await stack.orchestrator.runBeforeCreateHttp(- makeCtx(),- 'task-4'+ const first = await harness.orchestrator.runBeforeFinalize(dto, taskId)+ if (first.aborted) throw new Error(first.reason)+ expect(first.finalFilePath).toBe(+ path.join(harness.root, 'nightly-original.zip'))+ expect(harness.host.isActive('motrix.filename-template')).toBe(true)++ await new Promise((resolve) => setTimeout(resolve, 5))+ harness.host.__sweepIdleForTest()+ for (+ let attempt = 0;+ attempt < 50 && !harness.host.isQuiescent('motrix.filename-template');+ attempt+++ ) {+ await new Promise((resolve) => setTimeout(resolve, 2))+ }+ expect(harness.host.isQuiescent('motrix.filename-template')).toBe(true)- // Audit plugin's throw inside ctx.update is caught by its own try/catch- // (in the fixture). The chain still succeeds since audit failures are- // fail-open isolated.- expect('aborted' in result && result.aborted).toBeFalsy()- if ('aborted' in result && result.aborted) return-- // Audit plugin contributed nothing — its mutation attempt was rejected- // by the bridge's audit-role validator before reaching staged storage.- expect(result.contributors.headers).not.toContain('test.audit-band')- // The final URI list is the unmodified user input.- expect(result.final.uris).toEqual(['https://example.com/x'])+ const second = await harness.orchestrator.runBeforeFinalize(dto, taskId)+ if (second.aborted) throw new Error(second.reason)+ expect(second.finalFilePath).toBe(first.finalFilePath)+ expect(harness.host.isActive('motrix.filename-template')).toBe(true)}, 30_000)})++describe.runIf(existsSync(NATIVE_BINARY) && process.platform !== 'win32')(+ 'filename-template Hook output at the native no-clobber commit boundary',+ () => {+ async function commitSelectedTarget(input: {+ sourcePath: string+ targetPath: string+ saveDir: string+ taskId: string+ }): Promise<void> {+ const adapter = new NativeFinalizeFilesystemAdapter(NATIVE_BINARY)+ cleanups.push(() => adapter.dispose())+ const fs = new NativeFinalizeArtifactOperations(adapter)+ await fs.assertSupported()+ const repository = {+ prepare: async (_record: FinalizeJournalRecord) => undefined,+ checkpoint: async () => undefined,+ advance: async () => undefined,+ commitTerminal: async () => undefined,+ quarantine: async () => undefined,+ listRecoverable: async () => [],+ }+ const committer = new FinalizeCommitter({+ leases: new ArtifactMutationLeaseCoordinator([]),+ repository,+ fs,+ privatePathFor: (plan) =>+ path.join(plan.saveDir, '.motrix-finalize', `${plan.planId}.target`),+ rollbackPathFor: (plan) =>+ path.join(+ plan.saveDir,+ '.motrix-finalize',+ `${plan.planId}.rollback`+ ),+ exactIdentity: artifactIdentityEquals,+ sameContent: artifactContentEquals,+ })+ await committer.commit(+ freezeHookPlan({+ planId: randomUUID(),+ taskId: input.taskId,+ saveDir: input.saveDir,+ sourcePath: input.sourcePath,+ targetPath: input.targetPath,+ sourceIdentity: await readArtifactIdentity(input.sourcePath),+ metadataOps: [],+ contributors: ['motrix.filename-template'],+ })+ )+ }++ for (const artifact of ['file', 'BT directory'] as const) {+ it(`commits the Hook-selected ${artifact} rename and never clobbers an existing target`, async () => {+ const harness = await makeHarness({+ config: {+ 'motrix.filename-template': {+ template: '{{meta.release.channel}}-{{title}}',+ },+ },+ })+ enableOnly(harness, 'motrix.filename-template')+ const isDirectory = artifact === 'BT directory'+ const taskId = isDirectory ? 'builtin-bt-commit' : 'builtin-file-commit'+ const source = path.join(+ harness.root,+ isDirectory ? 'original-tree' : 'original.zip'+ )+ if (isDirectory) {+ await mkdir(path.join(source, 'nested'), { recursive: true })+ await writeFile(path.join(source, 'nested', 'payload'), 'payload')+ } else {+ await writeFile(source, 'payload')+ }+ await harness.metadata.set(+ taskId,+ 'motrix.filename-template',+ 'release',+ { channel: 'nightly' }+ )+ const task = taskSnapshot({+ id: taskId,+ type: isDirectory ? 'bt' : 'http',+ kind: isDirectory ? 'bt' : 'direct',+ saveDir: harness.root,+ filePath: source,+ })+ const hook = await harness.orchestrator.runBeforeFinalize(+ beforeFinalize({+ task,+ sourceUrl: isDirectory+ ? `urn:btih:${'a'.repeat(40)}`+ : 'https://example.test/original.zip',+ }),+ taskId+ )+ if (hook.aborted) throw new Error(hook.reason)+ const target = hook.finalFilePath+ if (!target) throw new Error('builtin did not select a finalize path')++ await commitSelectedTarget({+ sourcePath: source,+ targetPath: target,+ saveDir: harness.root,+ taskId,+ })+ expect(+ await readFile(+ isDirectory ? path.join(target, 'nested/payload') : target,+ 'utf8'+ )+ ).toBe('payload')+ expect(existsSync(source)).toBe(false)++ const competing = path.join(+ harness.root,+ isDirectory ? 'competing-tree' : 'competing.zip'+ )+ if (isDirectory) {+ await mkdir(competing)+ await writeFile(path.join(competing, 'payload'), 'competing')+ } else {+ await writeFile(competing, 'competing')+ }+ await expect(+ commitSelectedTarget({+ sourcePath: competing,+ targetPath: target,+ saveDir: harness.root,+ taskId: `${taskId}-conflict`,+ })+ ).rejects.toThrow('quarantined')+ expect(+ await readFile(+ isDirectory ? path.join(target, 'nested/payload') : target,+ 'utf8'+ )+ ).toBe('payload')+ expect(existsSync(competing)).toBe(true)+ }, 30_000)+ }+ }+)diff --git a/src/core/plugin/host/plugin-host.test.ts b/src/core/plugin/host/plugin-host.test.tsindex 16dfc0ff..107497bd 100644--- a/src/core/plugin/host/plugin-host.test.ts+++ b/src/core/plugin/host/plugin-host.test.ts@@ -15,6 +15,7 @@ import type { CapabilityHost } from '../capabilities/interface'import { LogCapabilityHost } from '../capabilities/log'import { PluginRegistry } from '../plugin-registry'import { PluginStateStore } from '../state/plugin-state-store'+import { ActivationDispatcher } from './activation-dispatcher'import { PluginHost, parsePluginIdleDisposeMs } from './plugin-host'describe('parsePluginIdleDisposeMs', () => {@@ -48,6 +49,24 @@ parentPort.on('message', (msg) => {return file}+function writeStubWorkerDelayedReady(dir: string): string {+ const file = path.join(dir, 'StubWorkerDelayedReady.cjs')+ writeFileSync(+ file,+ `+const { parentPort } = require('worker_threads')+parentPort.on('message', (msg) => {+ if (msg.type === 'init') {+ setTimeout(() => parentPort.postMessage({ type: 'ready' }), 50)+ } else if (msg.type === 'event' && msg.event === 'deactivate') {+ parentPort.postMessage({ type: 'event', event: 'deactivateComplete', ok: true })+ }+})+`+ )+ return file+}+function writeStubWorkerDeactivateError(dir: string): string {const file = path.join(dir, 'StubWorkerDeactivateError.cjs')writeFileSync(@@ -102,6 +121,32 @@ parentPort.on('message', (msg) => {return file}+function writeStubWorkerTimerActivity(dir: string, crash = false): string {+ const file = path.join(+ dir,+ crash ? 'StubWorkerTimerCrash.cjs' : 'StubWorkerTimerActivity.cjs'+ )+ writeFileSync(+ file,+ `+const { parentPort } = require('worker_threads')+parentPort.on('message', (msg) => {+ if (msg.type === 'init') {+ parentPort.postMessage({ type: 'timer_activity', activeCount: 1 })+ parentPort.postMessage({ type: 'ready' })+ ${crash ? "setTimeout(() => { throw new Error('timer worker crash') }, 10)" : ''}+ } else if (msg.type === 'test_clear_timer') {+ parentPort.postMessage({ type: 'timer_activity', activeCount: 0 })+ } else if (msg.type === 'event' && msg.event === 'deactivate') {+ parentPort.postMessage({ type: 'timer_activity', activeCount: 0 })+ parentPort.postMessage({ type: 'event', event: 'deactivateComplete', ok: true })+ }+})+`+ )+ return file+}+function plantPlugin(parent: string,id: string,@@ -238,7 +283,7 @@ describe('PluginHost', () => {await host.shutdown()})- it('rejects activation when manifest.main escapes the plugin dir', async () => {+ it('rejects manifest.main escaping the plugin dir during discovery', async () => {plantPlugin(path.join(root, 'plugins'), 'evil.demo', {main: '../../escape.js',})@@ -252,7 +297,35 @@ describe('PluginHost', () => {runtime: 'server',hostLanguage: 'en-US',})- await expect(host.activate('evil.demo')).rejects.toThrow(/main_escapes_dir/)+ expect(registry.get('evil.demo')).toBeUndefined()+ expect(registry.loadErrors()).toEqual([+ expect.objectContaining({+ message: expect.stringMatching(/main_escapes_dir/),+ }),+ ])+ await expect(host.activate('evil.demo')).rejects.toThrow(/unknown plugin/)+ await host.shutdown()+ })++ it('fails closed when executable bytes change after discovery', async () => {+ const host = new PluginHost({+ registry,+ stateStore,+ capabilityHost: capHost,+ workerScriptPath: workerPath,+ appVersion: '2.5.0',+ runtime: 'server',+ hostLanguage: 'en-US',+ })+ writeFileSync(+ path.join(root, 'plugins', 'alice.demo', 'dist', 'plugin.js'),+ 'export default { tampered: true }'+ )++ await expect(host.activate('alice.demo')).rejects.toThrow(+ 'plugin.runtime.executable_identity_changed'+ )+ expect(host.isActive('alice.demo')).toBe(false)await host.shutdown()})@@ -289,6 +362,48 @@ describe('PluginHost', () => {await host.shutdown()})+ it('does not publish a plugin as active before worker ready', async () => {+ const host = new PluginHost({+ registry,+ stateStore,+ capabilityHost: capHost,+ workerScriptPath: writeStubWorkerDelayedReady(root),+ appVersion: '2.5.0',+ runtime: 'server',+ hostLanguage: 'en-US',+ })++ const activation = host.activate('alice.demo')+ await vi.waitFor(() => expect(host.isQuiescent('alice.demo')).toBe(false))+ expect(host.isActive('alice.demo')).toBe(false)+ await activation+ expect(host.isActive('alice.demo')).toBe(true)+ await host.shutdown()+ })++ it('fails activation when a declared Hook was not registered', async () => {+ plantPlugin(path.join(root, 'plugins'), 'alice.hooks', {+ contributes: { hooks: { beforeCreate: { role: 'enrich' } } },+ hostPermissions: ['https://example.test/*'],+ })+ await registry.discover()+ const host = new PluginHost({+ registry,+ stateStore,+ capabilityHost: capHost,+ workerScriptPath: workerPath,+ appVersion: '2.5.0',+ runtime: 'server',+ hostLanguage: 'en-US',+ })++ await expect(host.activate('alice.hooks')).rejects.toThrow(+ 'plugin.hook.not_registered'+ )+ expect(host.isActive('alice.hooks')).toBe(false)+ await host.shutdown()+ })+it('coalesces concurrent activations of the same plugin', async () => {const host = new PluginHost({registry,@@ -489,6 +604,31 @@ describe('PluginHost', () => {await host.shutdown()})+ it('lets Hook demand wait for overlapping idle teardown and reactivate', async () => {+ const host = new PluginHost({+ registry,+ stateStore,+ capabilityHost: capHost,+ workerScriptPath: workerPath,+ idleDisposeMs: 1,+ appVersion: '2.5.0',+ runtime: 'server',+ hostLanguage: 'en-US',+ })+ const dispatcher = new ActivationDispatcher(registry, host)+ await host.activate('alice.demo')+ await new Promise((resolve) => setTimeout(resolve, 5))++ host.__sweepIdleForTest()+ expect(host.isActive('alice.demo')).toBe(false)++ await expect(+ dispatcher.activateForHook('alice.demo', 'beforeCreate')+ ).resolves.toBeUndefined()+ expect(host.isActive('alice.demo')).toBe(true)+ await host.shutdown()+ })+it('does NOT dispose a recently active plugin', async () => {const host = new PluginHost({registry,@@ -505,6 +645,101 @@ describe('PluginHost', () => {expect(host.isActive('alice.demo')).toBe(true)await host.shutdown()})++ it('does not idle-dispose a plugin with an in-flight lane entry', async () => {+ const host = new PluginHost({+ registry,+ stateStore,+ capabilityHost: capHost,+ workerScriptPath: workerPath,+ idleDisposeMs: 1,+ deactivateBudgetMs: 50,+ appVersion: '2.5.0',+ runtime: 'server',+ hostLanguage: 'en-US',+ })+ await host.activate('alice.demo')+ void host+ .invokeCommand('alice.demo', 'alice.demo.run', {})+ .catch(() => {})+ await vi.waitFor(() =>+ expect(host.laneState('alice.demo').running).toBe(1)+ )+ await new Promise((resolve) => setTimeout(resolve, 5))+ host.__sweepIdleForTest()++ expect(host.isActive('alice.demo')).toBe(true)+ await host.shutdown()+ })++ it('does not idle-dispose a plugin with a background capability operation', async () => {+ const host = new PluginHost({+ registry,+ stateStore,+ capabilityHost: capHost,+ workerScriptPath: workerPath,+ idleDisposeMs: 1,+ appVersion: '2.5.0',+ runtime: 'server',+ hostLanguage: 'en-US',+ })+ await host.activate('alice.demo')+ const bridge = host.bridgeFor('alice.demo')+ expect(bridge).toBeDefined()+ vi.spyOn(+ bridge as NonNullable<typeof bridge>,+ 'hasInFlightOperations'+ ).mockReturnValue(true)++ await new Promise((resolve) => setTimeout(resolve, 5))+ host.__sweepIdleForTest()++ expect(host.isActive('alice.demo')).toBe(true)+ await host.shutdown()+ })++ it('does not idle-dispose while a worker timer is active, then disposes after clear', async () => {+ const host = new PluginHost({+ registry,+ stateStore,+ capabilityHost: capHost,+ workerScriptPath: writeStubWorkerTimerActivity(root),+ idleDisposeMs: 1,+ appVersion: '2.5.0',+ runtime: 'server',+ hostLanguage: 'en-US',+ })+ await host.activate('alice.demo')+ await new Promise((resolve) => setTimeout(resolve, 5))+ host.__sweepIdleForTest()+ expect(host.isActive('alice.demo')).toBe(true)++ host.bridgeFor('alice.demo')?.getWorker().postMessage({+ type: 'test_clear_timer',+ })+ await new Promise((resolve) => setTimeout(resolve, 5))+ host.__sweepIdleForTest()+ await vi.waitFor(() => expect(host.isActive('alice.demo')).toBe(false))+ await host.shutdown()+ })++ it('clears timer ownership when the worker crashes', async () => {+ const host = new PluginHost({+ registry,+ stateStore,+ capabilityHost: capHost,+ workerScriptPath: writeStubWorkerTimerActivity(root, true),+ idleDisposeMs: 1,+ appVersion: '2.5.0',+ runtime: 'server',+ hostLanguage: 'en-US',+ })+ await host.activate('alice.demo')++ await vi.waitFor(() => expect(host.isActive('alice.demo')).toBe(false))+ expect(host.activeMeta()).toEqual([])+ await host.shutdown()+ })})})@@ -764,6 +999,217 @@ describe('PluginHost.deactivate — lifecycle wiring', () => {expect(registry.get('alice.demo')?.state.enabled).toBe(false)expect(registry.get('alice.demo')?.state.status).toBe('disabled')})++ it('terminalizes post deliveries after reversible disable publishes', async () => {+ const workerPath = writeStubWorker(root)+ const host = new PluginHost({+ registry,+ stateStore,+ capabilityHost: capHost,+ workerScriptPath: workerPath,+ appVersion: '2.5.0',+ runtime: 'server',+ hostLanguage: 'en-US',+ })+ const unavailable = vi.fn(async () => {+ expect(registry.get('alice.demo')?.state.enabled).toBe(false)+ return 1+ })+ host.bindPluginUnavailable(unavailable)++ await host.disable('alice.demo', 'circuit tripped', 'quarantined')++ expect(unavailable).toHaveBeenCalledWith(+ 'alice.demo',+ 'quarantined',+ expect.any(Number)+ )+ expect(registry.get('alice.demo')?.state.enabled).toBe(false)+ })++ it('restores the prior policy when disable retention fails', async () => {+ const workerPath = writeStubWorker(root)+ const host = new PluginHost({+ registry,+ stateStore,+ capabilityHost: capHost,+ workerScriptPath: workerPath,+ appVersion: '2.5.0',+ runtime: 'server',+ hostLanguage: 'en-US',+ })+ const failure = new Error('retention unavailable')+ host.bindPluginUnavailable(async () => Promise.reject(failure))++ await expect(+ host.disable('alice.demo', 'circuit tripped', 'quarantined')+ ).rejects.toBe(failure)++ expect(stateStore.get('alice.demo')?.enabled).toBe(true)+ expect(registry.get('alice.demo')?.state.enabled).toBe(true)+ })++ it('closes admission until a policy mutation publishes a new generation', async () => {+ const workerPath = writeStubWorker(root)+ const host = new PluginHost({+ registry,+ stateStore,+ capabilityHost: capHost,+ workerScriptPath: workerPath,+ appVersion: '2.5.0',+ runtime: 'server',+ hostLanguage: 'en-US',+ })+ await host.activate('alice.demo')+ const generation = registry.policyGenerationFor('alice.demo')+ let release!: () => void+ const gate = new Promise<void>((resolve) => {+ release = resolve+ })+ const mutation = host.applyPolicyMutation('alice.demo', async () => {+ await gate+ })+ await vi.waitFor(() => expect(host.isActive('alice.demo')).toBe(false))++ await expect(host.activate('alice.demo')).rejects.toThrow(+ 'plugin.runtime.admission_closed'+ )+ release()+ await mutation+ expect(registry.policyGenerationFor('alice.demo')).toBe(generation + 1)+ await host.activate('alice.demo')+ expect(host.isActive('alice.demo')).toBe(true)+ await host.shutdown()+ })++ it('aborts every live policy lease as soon as mutation admission closes', async () => {+ const workerPath = writeStubWorker(root)+ const host = new PluginHost({+ registry,+ stateStore,+ capabilityHost: capHost,+ workerScriptPath: workerPath,+ appVersion: '2.5.0',+ runtime: 'server',+ hostLanguage: 'en-US',+ })+ const lease = host.acquirePolicyLease(+ 'alice.demo',+ registry.policyGenerationFor('alice.demo')+ )+ let releaseMutation!: () => void+ const gate = new Promise<void>((resolve) => {+ releaseMutation = resolve+ })++ const mutation = host.applyPolicyMutation('alice.demo', () => gate)++ expect(lease.signal.aborted).toBe(true)+ lease.release()+ releaseMutation()+ await mutation+ await host.shutdown()+ })+})++describe('PluginHost Hook lane context', () => {+ it('installs, invokes, and clears each context within one FIFO lane entry', async () => {+ const root = mkdtempSync(path.join(tmpdir(), 'mph-hook-context-'))+ const db = new Database(':memory:')+ migrate(db)+ const stateStore = new PluginStateStore(db)+ plantPlugin(path.join(root, 'plugins'), 'alice.demo')+ const registry = new PluginRegistry({+ pluginsDir: path.join(root, 'plugins'),+ builtinDir: path.join(root, 'builtin'),+ stateStore,+ hostVersion: '2.5.0',+ })+ await registry.discover()+ const capHost = {+ createLog: () => ({ warn: vi.fn() }),+ appSnapshot: () => ({}),+ i18nSnapshot: () => ({+ language: 'en-US',+ dir: 'ltr',+ currentDict: {},+ fallbackDict: {},+ }),+ onLocaleChange: () => () => undefined,+ lifecycle: { runDeactivate: vi.fn() },+ flush: vi.fn(),+ } as unknown as CapabilityHost+ const host = new PluginHost({+ registry,+ stateStore,+ capabilityHost: capHost,+ workerScriptPath: writeStubWorker(root),+ appVersion: '2.5.0',+ runtime: 'server',+ hostLanguage: 'en-US',+ })+ try {+ await host.activate('alice.demo')+ const bridge = host.bridgeFor('alice.demo')+ if (!bridge) throw new Error('bridge missing')+ const events: string[] = []+ let releaseFirst!: () => void+ const firstGate = new Promise<void>((resolve) => {+ releaseFirst = resolve+ })+ vi.spyOn(bridge, 'setHookContext').mockImplementation((context) => {+ events.push(`set:${context.taskId}`)+ })+ vi.spyOn(bridge, 'clearHookContext').mockImplementation(() => {+ events.push('clear')+ })+ vi.spyOn(bridge, 'callHook').mockImplementation(async (_hook, taskId) => {+ events.push(`call:${taskId}`)+ if (taskId === 'task-1') await firstGate+ return {+ schemaVersion: 1,+ contextPatches: [],+ metadataOperations: [],+ }+ })+ const argsFor = (taskId: string) => ({+ taskId,+ signal: new AbortController().signal,+ timeoutMs: 1_000,+ context: { fsTaskHost: {} as never, taskId },+ })++ const first = host.invokeHook(+ 'alice.demo',+ 'beforeCreate',+ argsFor('task-1')+ )+ await vi.waitFor(() =>+ expect(events).toEqual(['set:task-1', 'call:task-1'])+ )+ const second = host.invokeHook(+ 'alice.demo',+ 'beforeCreate',+ argsFor('task-2')+ )+ await Promise.resolve()+ expect(events).toEqual(['set:task-1', 'call:task-1'])++ releaseFirst()+ await Promise.all([first, second])+ expect(events).toEqual([+ 'set:task-1',+ 'call:task-1',+ 'clear',+ 'set:task-2',+ 'call:task-2',+ 'clear',+ ])+ } finally {+ await host.shutdown()+ rmSync(root, { recursive: true, force: true })+ }+ })})describe('PluginHost locale change propagation', () => {@@ -985,6 +1431,33 @@ describe('PluginHost.activate — ffmpeg snapshot', () => {rmSync(root, { recursive: true, force: true })})+ it('does not invent a missing ffmpeg result when no detector is configured', async () => {+ plantPlugin(path.join(root, 'plugins'), 'req.legacy', {+ permissions: ['ffmpeg'],+ engines: { motrix: '>=2.0.0', ffmpeg: '>=99.0' },+ })+ registry = new PluginRegistry({+ pluginsDir: path.join(root, 'plugins'),+ builtinDir: path.join(root, 'builtin'),+ stateStore,+ hostVersion: '2.5.0',+ })+ await registry.discover()+ const host = new PluginHost({+ registry,+ stateStore,+ capabilityHost: capHost,+ workerScriptPath: workerPath,+ appVersion: '2.5.0',+ runtime: 'server',+ hostLanguage: 'en-US',+ })++ await expect(host.activate('req.legacy')).resolves.toBeUndefined()+ expect(host.getFfmpegAdvertised('req.legacy')).toBe(true)+ await host.shutdown()+ })+it('required + missing → throws ffmpeg_too_old; plugin stays inactive', async () => {plantPlugin(path.join(root, 'plugins'), 'req.miss', {permissions: ['ffmpeg'],diff --git a/src/core/plugin/host/plugin-host.ts b/src/core/plugin/host/plugin-host.tsindex e159aa6a..87504b57 100644--- a/src/core/plugin/host/plugin-host.ts+++ b/src/core/plugin/host/plugin-host.ts@@ -1,3 +1,4 @@+import { createHash, randomUUID } from 'node:crypto'import { readFile } from 'node:fs/promises'import path from 'node:path'import type { Worker } from 'node:worker_threads'@@ -14,7 +15,12 @@ import type { PluginRegistry } from '../plugin-registry'import type { PluginStateStore } from '../state/plugin-state-store'import { verifyBuiltinSignature } from '../update/signature'import type { HookName } from './bridge-protocol'-import { CapabilityBridge } from './capability-bridge'+import { CapabilityBridge, type HookContextArgs } from './capability-bridge'+import {+ type PluginCallChain,+ PluginLane,+ type PluginLaneState,+} from './plugin-lane'/*** Per-plugin activity metadata returned by `PluginHost.activeMeta()`.@@ -32,6 +38,8 @@ export interface ActiveMeta {* A plugin with no hooks (commands-only) falls into 'audit'.*/evictionTier: 'audit' | 'enrich' | 'post-process' | 'resolve' | 'pre-resolve'+ queuedEntries?: number+ runningEntries?: number}/**@@ -46,6 +54,20 @@ export interface ActivePluginInfo {worker: Worker}+export interface PluginPolicyLease {+ generation: number+ signal: AbortSignal+ release(): void+}++export type PluginUnavailableReason = 'disabled' | 'uninstalled' | 'quarantined'++export type PluginUnavailableHandler = (+ pluginId: string,+ reason: PluginUnavailableReason,+ at: number+) => Promise<number>+export interface PluginHostOptions {registry: PluginRegistrystateStore: PluginStateStore@@ -87,7 +109,11 @@ export interface PluginHostOptions {interface Active {bridge: CapabilityBridgemanifest: PluginManifest+ ready: boolean+ /** Rejects host-side waiters when the policy barrier must force teardown. */+ admissionAbort: AbortControllerlastActivityAt: number+ activeTimerCount: numberregistrations: Array<{ kind: 'hook' | 'command'; key: string }>/** Shared teardown promise so fatal/deactivate races cannot dispose twice. */teardown?: Promise<void>@@ -101,6 +127,7 @@ interface Active {* range (required+miss always throws before this field is stored).*/ffmpegAdvertised: boolean+ policyGeneration: number}interface ActivationAttempt {@@ -119,6 +146,10 @@ export const DEFAULT_MAX_ACTIVE_PLUGINS = 32export class PluginHost {private readonly active = new Map<string, Active>()+ private readonly lanes = new Map<string, PluginLane>()+ private readonly policyBarriers = new Set<string>()+ private readonly policyBarrierTails = new Map<string, Promise<unknown>>()+ private readonly policyLeases = new Map<string, Set<AbortController>>()// Per-plugin activation/deactivation state. The epoch invalidates every// await continuation from an older activation, while `quiescing` is a// synchronous tombstone that prevents a replacement worker from starting@@ -127,6 +158,8 @@ export class PluginHost {private readonly deactivating = new Map<string, Promise<void>>()private readonly activationEpochs = new Map<string, number>()private readonly quiescing = new Set<string>()+ private readonly artifactQuiescingTasks = new Set<string>()+ private pluginUnavailableHandler: PluginUnavailableHandler | undefinedprivate readonly maxActivePlugins: numberprivate readonly idleDisposeMs: numberprivate readonly activationTimeoutMs: number@@ -176,7 +209,7 @@ export class PluginHost {}isActive(pluginId: string): boolean {- return this.active.has(pluginId) && !this.quiescing.has(pluginId)+ return this.activeForUse(pluginId) !== undefined}/**@@ -189,7 +222,8 @@ export class PluginHost {!this.active.has(pluginId) &&!this.activating.has(pluginId) &&!this.deactivating.has(pluginId) &&- !this.quiescing.has(pluginId)+ !this.quiescing.has(pluginId) &&+ this.laneFor(pluginId).isDrained())}@@ -203,7 +237,9 @@ export class PluginHost {}activeIds(): string[] {- return [...this.active.keys()].filter((id) => !this.quiescing.has(id))+ return [...this.active.keys()].filter(+ (id) => this.activeForUse(id) !== undefined+ )}/**@@ -218,38 +254,67 @@ export class PluginHost {invokeCommand(pluginId: string,commandId: string,- args: unknown+ args: unknown,+ options: { callChain?: PluginCallChain } = {}): Promise<unknown> {- const a = this.activeForUse(pluginId)- if (!a) {- return Promise.reject(- new AppError(- ErrorCode.PluginRuntimeFault,- 'plugin.command.not_available'+ return this.laneFor(pluginId).run(+ () => {+ const a = this.activeForUse(pluginId)+ if (!a) {+ throw new AppError(+ ErrorCode.PluginRuntimeFault,+ 'plugin.command.not_available'+ )+ }+ a.lastActivityAt = Date.now()+ return raceWithAdmissionAbort(+ a.bridge.callPlugin(commandId, args),+ a.admissionAbort.signal,+ pluginId)- )- }- a.lastActivityAt = Date.now()- return a.bridge.callPlugin(commandId, args)+ },+ { callChain: options.callChain }+ )}- async activate(pluginId: string): Promise<void> {+ async activate(+ pluginId: string,+ options: { waitForDeactivation?: boolean } = {}+ ): Promise<void> {if (this.shuttingDown) {throw new AppError(ErrorCode.PluginRuntimeFault,'plugin.activation.host_shutting_down')}+ // A policy barrier is authoritative: demand activation must never turn a+ // grant change, disable, upgrade, or uninstall into an implicit reopen.+ if (this.policyBarriers.has(pluginId)) {+ throw new AppError(+ ErrorCode.PluginRuntimeFault,+ `plugin.runtime.admission_closed: ${pluginId}`+ )+ }+ const deactivation = this.deactivating.get(pluginId)+ if (deactivation && options.waitForDeactivation) {+ await deactivation+ return this.activate(pluginId, options)+ }// Check the tombstone before `active`: the old worker remains owned by// `active` until dispose() completes, but must not be considered a valid// idempotent activation while teardown is underway.if (this.quiescing.has(pluginId)) {throw this.activationSupersededError(pluginId)}+ this.laneFor(pluginId).reopen()const inFlight = this.activating.get(pluginId)if (inFlight) return inFlight.promiseconst existing = this.active.get(pluginId)if (existing) {+ if (existing.policyGeneration !== this.policyGenerationFor(pluginId)) {+ await this.deactivate(pluginId)+ return this.activate(pluginId)+ }existing.lastActivityAt = Date.now()return}@@ -311,6 +376,7 @@ export class PluginHost {`plugin ${pluginId} is disabled`)}+ const policyGeneration = this.policyGenerationFor(pluginId)if (this.active.size >= this.maxActivePlugins) {throw new AppError(ErrorCode.PluginActivationCapExceeded,@@ -332,11 +398,12 @@ export class PluginHost {}const ffmpegSatisfied =- ffmpegDetection.available &&- ffmpegSatisfies(- ffmpegDetection.version ?? '',- indexed.manifest.engines.ffmpeg ?? null- )+ !this.opts.ffmpegDetect ||+ (ffmpegDetection.available &&+ ffmpegSatisfies(+ ffmpegDetection.version ?? '',+ indexed.manifest.engines.ffmpeg ?? null+ ))if (indexed.manifest.permissions.includes('ffmpeg') && !ffmpegSatisfied) {this.opts.stateStore.recordError(@@ -415,6 +482,11 @@ export class PluginHost {'plugin.update.builtin_bundle_entry_missing')}+ this.assertExecutableDigest(+ pluginId,+ indexed.executableDigest,+ entryBytes+ )bundleSource = entryBytes.toString('utf8')} else {const readBundleSource =@@ -424,6 +496,11 @@ export class PluginHost {attempt,readBundleSource(bundlePath))+ this.assertExecutableDigest(+ pluginId,+ indexed.executableDigest,+ Buffer.from(bundleSource, 'utf8')+ )}let resolveReady: () => void@@ -442,6 +519,12 @@ export class PluginHost {: undefinedthis.assertActivationCurrent(pluginId, attempt)+ if (this.policyGenerationFor(pluginId) !== policyGeneration) {+ throw new AppError(+ ErrorCode.PluginRuntimeFault,+ `plugin.activation.policy_changed: ${pluginId}`+ )+ }let bridge: CapabilityBridge | undefinedbridge = new CapabilityBridge({@@ -454,17 +537,38 @@ export class PluginHost {appVersion: this.opts.appVersion,runtime: this.opts.runtime,hostLanguage: this.opts.hostLanguage,+ permissionGeneration: policyGeneration,effectivePermissions,},{onReady: () => {+ const current = this.active.get(pluginId)if (!bridge ||!this.isActivationCurrent(pluginId, attempt) ||- this.active.get(pluginId)?.bridge !== bridge+ current?.bridge !== bridge) {return}+ const registeredHooks = new Set(+ current.registrations+ .filter((entry) => entry.kind === 'hook')+ .map((entry) => entry.key)+ )+ const missingHooks = Object.keys(+ indexed.manifest.contributes.hooks ?? {}+ ).filter((hook) => !registeredHooks.has(hook))+ if (missingHooks.length > 0) {+ const error = new AppError(+ ErrorCode.PluginRuntimeFault,+ `plugin.hook.not_registered: ${missingHooks.join(',')}`+ )+ this.opts.stateStore.recordError(pluginId, error.message)+ this.opts.registry.refreshState(pluginId)+ rejectReady(error)+ return+ }+ current.ready = truethis.opts.stateStore.markActivated(pluginId, Date.now())this.opts.registry.refreshState(pluginId)resolveReady()@@ -498,9 +602,27 @@ export class PluginHost {this.active.set(pluginId, {bridge,manifest: indexed.manifest,+ ready: false,+ admissionAbort: new AbortController(),lastActivityAt: Date.now(),+ activeTimerCount: 0,registrations: [],ffmpegAdvertised,+ policyGeneration,+ })+ const worker = bridge.getWorker()+ worker.on('message', (message: unknown) => {+ if (!isTimerActivityMessage(message)) return+ const current = this.active.get(pluginId)+ if (current?.bridge !== bridge) return+ current.activeTimerCount = message.activeCount+ current.lastActivityAt = Date.now()+ })+ worker.once('exit', () => {+ const current = this.active.get(pluginId)+ if (current?.bridge !== bridge) return+ current.activeTimerCount = 0+ current.lastActivityAt = Date.now()})const timeoutMs = this.activationTimeoutMs@@ -540,6 +662,8 @@ export class PluginHost {const existing = this.deactivating.get(pluginId)if (existing) return existing+ // Close guest admission before any asynchronous drain/teardown work.+ this.laneFor(pluginId).close()// Establish the tombstone and supersede the activation synchronously,// before yielding to any continuation that could publish a bridge.this.quiescing.add(pluginId)@@ -557,6 +681,9 @@ export class PluginHost {this.deactivating.delete(pluginId)this.quiescing.delete(pluginId)}+ if (!this.shuttingDown && !this.policyBarriers.has(pluginId)) {+ this.laneFor(pluginId).reopen()+ }})this.deactivating.set(pluginId, promise)return promise@@ -571,13 +698,25 @@ export class PluginHost {// checking the stable active entry below.await attempt?.promise.catch(() => undefined)const active = this.active.get(pluginId)- if (active) await this.teardownActive(pluginId, active)+ if (!active) return+ const lane = this.laneFor(pluginId)+ const drained = await lane.drainWithin(this.deactivateBudgetMs)+ if (!drained) {+ active.admissionAbort.abort()+ lane.cancelQueued()+ await lane.drain()+ }+ await this.teardownActive(pluginId, active, !drained)}- private teardownActive(pluginId: string, active: Active): Promise<void> {+ private teardownActive(+ pluginId: string,+ active: Active,+ forced = false+ ): Promise<void> {if (active.teardown) return active.teardownlet teardown!: Promise<void>- teardown = this.performTeardown(pluginId, active).catch((error) => {+ teardown = this.performTeardown(pluginId, active, forced).catch((error) => {// A rejected teardown must not be cached forever. Keep the active entry// owned by the host and let a later deactivate/upgrade retry termination.if (active.teardown === teardown) active.teardown = undefined@@ -589,18 +728,21 @@ export class PluginHost {private async performTeardown(pluginId: string,- active: Active+ active: Active,+ forced: boolean): Promise<void> {// 1. Run worker-side deactivate handlers (budget enforced by bridge).- try {- await active.bridge.runDeactivate(this.deactivateBudgetMs)- } catch (e) {- this.opts.capabilityHost- .createLog(pluginId)- .warn('worker deactivate failed', {- error: (e as Error).message,- code: (e as Error & { code?: string }).code,- })+ if (!forced) {+ try {+ await active.bridge.runDeactivate(this.deactivateBudgetMs)+ } catch (e) {+ this.opts.capabilityHost+ .createLog(pluginId)+ .warn('worker deactivate failed', {+ error: (e as Error).message,+ code: (e as Error & { code?: string }).code,+ })+ }}// 2. Run host-side deactivate handlers (LifecycleCapabilityHost registry).@@ -703,6 +845,25 @@ export class PluginHost {)}+ private assertExecutableDigest(+ pluginId: string,+ expected: string | undefined,+ bytes: Uint8Array+ ): void {+ const actual = createHash('sha256').update(bytes).digest('hex')+ if (!expected || actual !== expected) {+ this.opts.stateStore.recordError(+ pluginId,+ 'plugin.runtime.executable_identity_changed'+ )+ this.opts.registry.refreshState(pluginId)+ throw new AppError(+ ErrorCode.PluginRuntimeFault,+ 'plugin.runtime.executable_identity_changed'+ )+ }+ }+/*** Plan C — list every currently active plugin with the descriptors the* HookOrchestrator needs (manifest for eligibility/role, bridge for hook@@ -711,7 +872,7 @@ export class PluginHost {allActive(): ActivePluginInfo[] {const out: ActivePluginInfo[] = []for (const [id, a] of this.active.entries()) {- if (this.quiescing.has(id)) continue+ if (this.activeForUse(id) !== a) continueout.push({id,manifest: a.manifest,@@ -730,12 +891,14 @@ export class PluginHost {activeMeta(): ActiveMeta[] {const now = Date.now()return [...this.active.entries()]- .filter(([id]) => !this.quiescing.has(id))+ .filter(([id, active]) => this.activeForUse(id) === active).map(([id, a]) => ({id,lastActivityAt: a.lastActivityAt,idleMs: now - a.lastActivityAt,evictionTier: deriveEvictionTier(a.manifest),+ queuedEntries: this.laneFor(id).state().queued,+ runningEntries: this.laneFor(id).state().running,}))}@@ -746,7 +909,7 @@ export class PluginHost {/** Plan C — worker accessor used by `newHookAbort` for the terminate path. */workerFor(pluginId: string): Worker | undefined {- return this.activeForUse(pluginId)?.bridge.getWorker()+ return this.active.get(pluginId)?.bridge.getWorker()}/**@@ -767,23 +930,181 @@ export class PluginHost {timeoutMs: numberctxPayload?: Record<string, unknown>metadataSnapshot?: Record<string, unknown>+ invocationId?: string+ permissionGeneration?: number+ context: HookContextArgs}): Promise<void> {- const a = this.activeForUse(pluginId)- if (!a) {+ if (this.artifactQuiescingTasks.has(args.taskId)) {throw new AppError(ErrorCode.PluginRuntimeFault,- `plugin ${pluginId} is not active`+ `task artifact ${args.taskId} is quiesced`+ )+ }+ await this.laneFor(pluginId).run(+ async (chain) => {+ if (this.artifactQuiescingTasks.has(args.taskId)) {+ throw new AppError(+ ErrorCode.PluginRuntimeFault,+ `task artifact ${args.taskId} is quiesced`+ )+ }+ const a = this.activeForUse(pluginId)+ if (!a) {+ throw new AppError(+ ErrorCode.PluginRuntimeFault,+ `plugin ${pluginId} is not active`+ )+ }+ a.lastActivityAt = Date.now()+ if (args.context.taskId !== args.taskId) {+ throw new AppError(+ ErrorCode.PluginRuntimeFault,+ 'plugin.hook.context_task_mismatch'+ )+ }+ const invocationSignal = linkAbortSignals([+ args.signal,+ a.admissionAbort.signal,+ ])+ a.bridge.setHookContext(args.context)+ try {+ return await a.bridge.callHook(+ hook,+ args.taskId,+ invocationSignal.signal,+ args.timeoutMs,+ args.ctxPayload,+ args.metadataSnapshot,+ {+ invocationId: args.invocationId ?? randomUUID(),+ callChainId: chain.id,+ permissionGeneration:+ args.permissionGeneration ?? a.policyGeneration,+ }+ )+ } finally {+ invocationSignal.dispose()+ a.bridge.clearHookContext()+ }+ },+ { signal: args.signal }+ )+ }++ laneState(pluginId: string): PluginLaneState {+ return this.laneFor(pluginId).state()+ }++ drainPlugin(pluginId: string): Promise<void> {+ return this.laneFor(pluginId).drain()+ }++ /** Close task-scoped Hook admission and drain every active bridge writer. */+ async quiesceArtifactWriters(taskId: string): Promise<() => Promise<void>> {+ if (this.artifactQuiescingTasks.has(taskId)) {+ throw new Error(`task artifact ${taskId} is already quiesced`)+ }+ this.artifactQuiescingTasks.add(taskId)+ try {+ await Promise.all(+ [...this.active.values()].map((entry) =>+ entry.bridge.quiesceTaskWriters(taskId)+ ))+ } catch (error) {+ this.artifactQuiescingTasks.delete(taskId)+ throw error}- a.lastActivityAt = Date.now()- await a.bridge.callHook(- hook,- args.taskId,- args.signal,- args.timeoutMs,- args.ctxPayload,- args.metadataSnapshot+ return async () => {+ this.artifactQuiescingTasks.delete(taskId)+ }+ }++ isPolicyMutationPending(pluginId: string): boolean {+ return this.policyBarriers.has(pluginId)+ }++ /**+ * Registers an invocation-scoped policy lease. Policy mutation aborts every+ * registered lease before waiting for the plugin lane or worker teardown.+ */+ acquirePolicyLease(+ pluginId: string,+ expectedGeneration: number+ ): PluginPolicyLease {+ if (+ this.policyBarriers.has(pluginId) ||+ this.policyGenerationFor(pluginId) !== expectedGeneration+ ) {+ throw laneAdmissionClosed(pluginId)+ }+ const controller = new AbortController()+ const leases = this.policyLeases.get(pluginId) ?? new Set<AbortController>()+ leases.add(controller)+ this.policyLeases.set(pluginId, leases)+ let released = false+ return {+ generation: expectedGeneration,+ signal: controller.signal,+ release: () => {+ if (released) return+ released = true+ leases.delete(controller)+ if (leases.size === 0) this.policyLeases.delete(pluginId)+ },+ }+ }++ /**+ * Exclusive live-policy mutation barrier. Admission closes synchronously,+ * the old worker and its operations drain (or are terminated at budget),+ * then the new policy is published and receives a fresh generation.+ */+ applyPolicyMutation<T>(+ pluginId: string,+ publish: () => Promise<T> | T+ ): Promise<T> {+ this.laneFor(pluginId).close()+ this.policyBarriers.add(pluginId)+ this.abortPolicyAdmission(pluginId)+ const previous = this.policyBarrierTails.get(pluginId) ?? Promise.resolve()+ const operation = previous+ .catch(() => undefined)+ .then(async () => {+ const generationBefore = this.policyGenerationFor(pluginId)+ await this.deactivate(pluginId)+ const result = await publish()+ if (this.policyGenerationFor(pluginId) === generationBefore) {+ this.opts.registry.bumpPolicyGeneration(pluginId)+ }+ return result+ })+ this.policyBarrierTails.set(pluginId, operation)+ void operation.then(+ () => this.clearPolicyBarrierTail(pluginId, operation),+ () => this.clearPolicyBarrierTail(pluginId, operation)+ )+ return operation+ }++ /**+ * Bind durable post-delivery retention after the runtime repository exists.+ * Installer mutations may call `pluginUnavailable()` from inside their+ * existing policy barrier; `disable()` does so automatically.+ */+ bindPluginUnavailable(handler: PluginUnavailableHandler): void {+ this.pluginUnavailableHandler = handler+ }++ pluginUnavailable(+ pluginId: string,+ reason: PluginUnavailableReason,+ at = Date.now()+ ): Promise<number> {+ return (+ this.pluginUnavailableHandler?.(pluginId, reason, at) ??+ Promise.resolve(0))}@@ -793,12 +1114,41 @@ export class PluginHost {* tears down the active VM if one is running. Idempotent: calling on an* already-disabled plugin is a no-op besides updating `lastError`.*/- async disable(pluginId: string, reason: string): Promise<void> {- this.opts.stateStore.setEnabled(pluginId, false)- this.opts.stateStore.recordError(pluginId, reason)- if (!this.isQuiescent(pluginId)) {- await this.deactivate(pluginId)- }+ async disable(+ pluginId: string,+ reason: string,+ unavailableReason: Extract<+ PluginUnavailableReason,+ 'disabled' | 'quarantined'+ > = 'disabled',+ options: { recordError?: boolean } = {}+ ): Promise<void> {+ await this.applyPolicyMutation(pluginId, async () => {+ // Admission is closed, live capability leases are aborted, and the old+ // worker is drained. Publish reversible state before terminalizing+ // durable deliveries, and roll it back if terminalization fails.+ const previousState = this.opts.stateStore.get(pluginId)+ this.opts.stateStore.setEnabled(pluginId, false)+ if (options.recordError !== false) {+ this.opts.stateStore.recordError(pluginId, reason)+ }+ this.opts.registry.refreshState(pluginId)+ try {+ await this.pluginUnavailable(pluginId, unavailableReason)+ } catch (error) {+ if (previousState) {+ this.opts.stateStore.upsert({+ ...previousState,+ status:+ previousState.status === 'active'+ ? 'inactive'+ : previousState.status,+ })+ }+ this.opts.registry.refreshState(pluginId)+ throw error+ }+ })this.opts.stateStore.setStatus(pluginId, 'disabled')this.opts.registry.refreshState(pluginId)}@@ -819,7 +1169,13 @@ export class PluginHost {const now = Date.now()for (const [id, a] of this.active.entries()) {if (this.quiescing.has(id)) continue- if (now - a.lastActivityAt >= this.idleDisposeMs) {+ if (+ now - a.lastActivityAt >= this.idleDisposeMs &&+ this.laneFor(id).isDrained() &&+ !a.bridge.hasInFlightOperations() &&+ a.activeTimerCount === 0 &&+ (this.policyLeases.get(id)?.size ?? 0) === 0+ ) {void this.deactivate(id)}}@@ -839,9 +1195,129 @@ export class PluginHost {}private activeForUse(pluginId: string): Active | undefined {- if (this.quiescing.has(pluginId)) return undefined- return this.active.get(pluginId)+ if (this.quiescing.has(pluginId) || this.policyBarriers.has(pluginId)) {+ return undefined+ }+ const active = this.active.get(pluginId)+ if (!active?.ready) return undefined+ if (active.policyGeneration !== this.policyGenerationFor(pluginId)) {+ return undefined+ }+ return active+ }++ private laneFor(pluginId: string): PluginLane {+ let lane = this.lanes.get(pluginId)+ if (!lane) {+ lane = new PluginLane(pluginId)+ this.lanes.set(pluginId, lane)+ }+ return lane+ }++ private policyGenerationFor(pluginId: string): number {+ return this.opts.registry.policyGenerationFor(pluginId)+ }++ private abortPolicyAdmission(pluginId: string): void {+ this.active.get(pluginId)?.admissionAbort.abort()+ for (const controller of this.policyLeases.get(pluginId) ?? []) {+ controller.abort()+ }+ this.laneFor(pluginId).cancelQueued()+ }++ private clearPolicyBarrierTail(+ pluginId: string,+ operation: Promise<unknown>+ ): void {+ if (this.policyBarrierTails.get(pluginId) === operation) {+ this.policyBarrierTails.delete(pluginId)+ this.policyBarriers.delete(pluginId)+ if (!this.shuttingDown) this.laneFor(pluginId).reopen()+ }+ }+}++function isTimerActivityMessage(+ message: unknown+): message is { type: 'timer_activity'; activeCount: number } {+ if (!message || typeof message !== 'object') return false+ const candidate = message as { type?: unknown; activeCount?: unknown }+ return (+ candidate.type === 'timer_activity' &&+ typeof candidate.activeCount === 'number' &&+ Number.isSafeInteger(candidate.activeCount) &&+ candidate.activeCount >= 0 &&+ candidate.activeCount <= 100+ )+}++function raceWithAdmissionAbort<T>(+ operation: Promise<T>,+ signal: AbortSignal,+ pluginId: string+): Promise<T> {+ if (signal.aborted) return Promise.reject(laneAdmissionClosed(pluginId))+ return new Promise<T>((resolve, reject) => {+ let settled = false+ const detach = () => signal.removeEventListener('abort', onAbort)+ const onAbort = () => {+ if (settled) return+ settled = true+ detach()+ reject(laneAdmissionClosed(pluginId))+ }+ signal.addEventListener('abort', onAbort, { once: true })+ operation.then(+ (value) => {+ if (settled) return+ settled = true+ detach()+ resolve(value)+ },+ (error) => {+ if (settled) return+ settled = true+ detach()+ reject(error)+ }+ )+ })+}++function laneAdmissionClosed(pluginId: string): AppError {+ return new AppError(+ ErrorCode.PluginRuntimeFault,+ `plugin.runtime.admission_closed: ${pluginId}`+ )+}++function linkAbortSignals(signals: readonly AbortSignal[]): {+ signal: AbortSignal+ dispose(): void+} {+ const controller = new AbortController()+ const listeners: Array<{+ signal: AbortSignal+ listener: () => void+ }> = []+ const dispose = () => {+ for (const entry of listeners) {+ entry.signal.removeEventListener('abort', entry.listener)+ }+ listeners.length = 0+ }+ for (const signal of signals) {+ if (signal.aborted) {+ controller.abort(signal.reason)+ break+ }+ const listener = () => controller.abort(signal.reason)+ listeners.push({ signal, listener })+ signal.addEventListener('abort', listener, { once: true })}+ return { signal: controller.signal, dispose }}export function parsePluginIdleDisposeMs(diff --git a/src/core/plugin/host/plugin-lane.test.ts b/src/core/plugin/host/plugin-lane.test.tsnew file mode 100644index 00000000..470af4a5--- /dev/null+++ b/src/core/plugin/host/plugin-lane.test.ts@@ -0,0 +1,88 @@+import { describe, expect, it, vi } from 'vitest'+import { currentPluginCallChain, PluginLane } from './plugin-lane'++function deferred<T>() {+ let resolve!: (value: T) => void+ const promise = new Promise<T>((done) => {+ resolve = done+ })+ return { promise, resolve }+}++describe('PluginLane', () => {+ it('serializes entries FIFO for one plugin', async () => {+ const lane = new PluginLane('alice.demo')+ const gate = deferred<void>()+ const order: string[] = []+ const first = lane.run(async () => {+ order.push('first:start')+ await gate.promise+ order.push('first:end')+ })+ const second = lane.run(() => {+ order.push('second')+ })++ await vi.waitFor(() => expect(order).toEqual(['first:start']))+ expect(lane.state()).toMatchObject({ running: 1, queued: 1 })+ gate.resolve()+ await Promise.all([first, second])+ expect(order).toEqual(['first:start', 'first:end', 'second'])+ })++ it('allows different plugin lanes to run concurrently', async () => {+ const gate = deferred<void>()+ const a = new PluginLane('alice.a')+ const b = new PluginLane('alice.b')+ const entered: string[] = []++ const first = a.run(async () => {+ entered.push('a')+ await gate.promise+ })+ const second = b.run(async () => {+ entered.push('b')+ await gate.promise+ })+ await vi.waitFor(() => expect(entered.sort()).toEqual(['a', 'b']))+ gate.resolve()+ await Promise.all([first, second])+ })++ it('rejects self and A -> B -> A cycles before enqueue', async () => {+ const a = new PluginLane('alice.a')+ const b = new PluginLane('alice.b')++ await expect(a.run(() => a.run(() => Promise.resolve()))).rejects.toThrow(+ 'plugin.runtime.reentrant_call'+ )++ await expect(+ a.run(() =>+ b.run(() => {+ const chain = currentPluginCallChain()+ expect(chain?.plugins).toEqual(['alice.a', 'alice.b'])+ return a.run(() => Promise.resolve())+ })+ )+ ).rejects.toThrow('plugin.runtime.reentrant_call')+ expect(a.isDrained()).toBe(true)+ expect(b.isDrained()).toBe(true)+ })++ it('closes new admission and drains admitted work', async () => {+ const lane = new PluginLane('alice.demo')+ const gate = deferred<void>()+ const work = lane.run(() => gate.promise)+ await vi.waitFor(() => expect(lane.state().running).toBe(1))+ lane.close()+ await expect(lane.run(() => Promise.resolve())).rejects.toThrow(+ 'plugin.runtime.admission_closed'+ )++ const drained = lane.drain()+ gate.resolve()+ await Promise.all([work, drained])+ expect(lane.isDrained()).toBe(true)+ })+})diff --git a/src/core/plugin/host/plugin-lane.ts b/src/core/plugin/host/plugin-lane.tsnew file mode 100644index 00000000..0ad089cc--- /dev/null+++ b/src/core/plugin/host/plugin-lane.ts@@ -0,0 +1,146 @@+import { AsyncLocalStorage } from 'node:async_hooks'+import { randomUUID } from 'node:crypto'+import { AppError, ErrorCode } from '@shared/errors'++export interface PluginCallChain {+ id: string+ plugins: ReadonlyArray<string>+}++export interface PluginLaneEntryOptions {+ callChain?: PluginCallChain+ signal?: AbortSignal+}++export interface PluginLaneState {+ accepting: boolean+ queued: number+ running: number+}++const callChainStorage = new AsyncLocalStorage<PluginCallChain>()++export function currentPluginCallChain(): PluginCallChain | undefined {+ return callChainStorage.getStore()+}++/** One FIFO admission lane for every host-initiated entry into one plugin VM. */+export class PluginLane {+ private tail: Promise<void> = Promise.resolve()+ private queued = 0+ private running = 0+ private accepting = true+ private epoch = 0+ private readonly drainWaiters = new Set<() => void>()++ constructor(readonly pluginId: string) {}++ run<T>(+ operation: (chain: PluginCallChain) => Promise<T> | T,+ options: PluginLaneEntryOptions = {}+ ): Promise<T> {+ if (!this.accepting) return Promise.reject(laneClosedError(this.pluginId))++ const inherited = options.callChain ?? currentPluginCallChain()+ if (inherited?.plugins.includes(this.pluginId)) {+ return Promise.reject(+ new AppError(+ ErrorCode.PluginRuntimeFault,+ 'plugin.runtime.reentrant_call'+ )+ )+ }+ const chain: PluginCallChain = {+ id: inherited?.id ?? randomUUID(),+ plugins: [...(inherited?.plugins ?? []), this.pluginId],+ }+ const admittedEpoch = this.epoch+ this.queued += 1++ const result = this.tail.then(async () => {+ this.queued -= 1+ if (admittedEpoch !== this.epoch) {+ this.notifyDrained()+ throw laneClosedError(this.pluginId)+ }+ if (options.signal?.aborted) {+ this.notifyDrained()+ throw new AppError(+ ErrorCode.PluginRuntimeFault,+ 'plugin.runtime.entry_aborted'+ )+ }++ this.running += 1+ try {+ return await callChainStorage.run(chain, () => operation(chain))+ } finally {+ this.running -= 1+ this.notifyDrained()+ }+ })+ this.tail = result.then(+ () => undefined,+ () => undefined+ )+ return result+ }++ close(): void {+ this.accepting = false+ }++ reopen(): void {+ this.accepting = true+ }++ cancelQueued(): void {+ this.epoch += 1+ }++ state(): PluginLaneState {+ return {+ accepting: this.accepting,+ queued: this.queued,+ running: this.running,+ }+ }++ isDrained(): boolean {+ return this.queued === 0 && this.running === 0+ }++ drain(): Promise<void> {+ if (this.isDrained()) return Promise.resolve()+ return new Promise<void>((resolve) => this.drainWaiters.add(resolve))+ }++ async drainWithin(timeoutMs: number): Promise<boolean> {+ if (this.isDrained()) return true+ let timer: NodeJS.Timeout | undefined+ try {+ return await Promise.race([+ this.drain().then(() => true),+ new Promise<false>((resolve) => {+ timer = setTimeout(() => resolve(false), timeoutMs)+ timer.unref?.()+ }),+ ])+ } finally {+ if (timer) clearTimeout(timer)+ }+ }++ private notifyDrained(): void {+ if (!this.isDrained()) return+ for (const resolve of this.drainWaiters) resolve()+ this.drainWaiters.clear()+ }+}++function laneClosedError(pluginId: string): AppError {+ return new AppError(+ ErrorCode.PluginRuntimeFault,+ `plugin.runtime.admission_closed: ${pluginId}`+ )+}diff --git a/src/core/plugin/host/plugin-sdk-compat.test.ts b/src/core/plugin/host/plugin-sdk-compat.test.tsnew file mode 100644index 00000000..ea855d77--- /dev/null+++ b/src/core/plugin/host/plugin-sdk-compat.test.ts@@ -0,0 +1,118 @@+import { execFileSync } from 'node:child_process'+import { readFileSync } from 'node:fs'+import path from 'node:path'+import { describe, expect, it } from 'vitest'++const SDK_2_0_FIXTURE_ROOT = path.resolve(+ __dirname,+ '../../../../tests/fixtures/plugins/test.hook-sdk-2-0'+)+const SDK_2_1_FIXTURE_ROOT = path.resolve(+ __dirname,+ '../../../../tests/fixtures/plugins/test.hook-delivery-runtime'+)+const SDK_2_0_PACKAGE_JSON = path.resolve(+ __dirname,+ '../../../../node_modules/@motrix/plugin-api-2-0/package.json'+)+const SDK_2_1_PACKAGE_JSON = path.resolve(+ __dirname,+ '../../../../node_modules/@motrix/plugin-api/package.json'+)+const TSC_CLI = path.resolve(+ __dirname,+ '../../../../node_modules/typescript/bin/tsc'+)+const LOCKFILE = path.resolve(__dirname, '../../../../pnpm-lock.yaml')+const SDK_2_0_INTEGRITY =+ 'sha512-S4YsMvAo9ehDN8R6jwQAzcTHBstEFH1kPw8CRePMVLSNT0pb+5jlaQdBXd1NfsxY9O4FFX4e63uuAYWlkD9Urw=='+const SDK_2_1_INTEGRITY =+ 'sha512-XJn8re75nGUFSOA9dsEAjFkj8FqY6pQMk5wnz9E7Ym+icOp7q0JChjS/ILETvsu1gmvntlzdzazmgi4U42fPIA=='++function expectFixtureToTypeCheck(fixtureRoot: string): void {+ expect(() =>+ execFileSync(+ process.execPath,+ [+ TSC_CLI,+ '-p',+ path.join(fixtureRoot, 'tsconfig.json'),+ '--pretty',+ 'false',+ ],+ { encoding: 'utf8', stdio: 'pipe' }+ )+ ).not.toThrow()+}++function buildFixtureSource(fixtureRoot: string): string {+ const buildScript = `+ import { build } from 'esbuild'+ const result = await build({+ entryPoints: [process.argv[1]],+ format: 'esm',+ logLevel: 'silent',+ platform: 'neutral',+ target: 'es2022',+ write: false,+ })+ process.stdout.write(result.outputFiles[0].text)+ `+ return execFileSync(+ process.execPath,+ [+ '--input-type=module',+ '--eval',+ buildScript,+ path.join(fixtureRoot, 'src/plugin.ts'),+ ],+ { encoding: 'utf8' }+ )+}++describe('@motrix/plugin-api compatibility fixtures', () => {+ it('type-checks the legacy fixture against the exact published 2.0 package', () => {+ const installed = JSON.parse(+ readFileSync(SDK_2_0_PACKAGE_JSON, 'utf8')+ ) as {+ name: string+ version: string+ }+ expect(installed).toMatchObject({+ name: '@motrix/plugin-api',+ version: '2.0.0',+ })+ expect(readFileSync(LOCKFILE, 'utf8')).toContain(+ `'@motrix/[email protected]':\n resolution: {integrity: ${SDK_2_0_INTEGRITY}}`+ )++ expectFixtureToTypeCheck(SDK_2_0_FIXTURE_ROOT)+ })++ it('type-checks the delivery fixture against the exact published 2.1 package', () => {+ const installed = JSON.parse(+ readFileSync(SDK_2_1_PACKAGE_JSON, 'utf8')+ ) as {+ name: string+ version: string+ }+ expect(installed).toMatchObject({+ name: '@motrix/plugin-api',+ version: '2.1.0',+ })+ expect(readFileSync(LOCKFILE, 'utf8')).toContain(+ `'@motrix/[email protected]':\n resolution: {integrity: ${SDK_2_1_INTEGRITY}}`+ )++ expectFixtureToTypeCheck(SDK_2_1_FIXTURE_ROOT)+ })++ it('keeps the committed QuickJS artifact byte-identical to the fixture source build', () => {+ expect(buildFixtureSource(SDK_2_0_FIXTURE_ROOT)).toBe(+ readFileSync(path.join(SDK_2_0_FIXTURE_ROOT, 'dist/plugin.js'), 'utf8')+ )+ expect(buildFixtureSource(SDK_2_1_FIXTURE_ROOT)).toBe(+ readFileSync(path.join(SDK_2_1_FIXTURE_ROOT, 'dist/plugin.js'), 'utf8')+ )+ })+})diff --git a/src/core/plugin/host/quick-js-worker.hooks.test.ts b/src/core/plugin/host/quick-js-worker.hooks.test.tsnew file mode 100644index 00000000..ac2823b5--- /dev/null+++ b/src/core/plugin/host/quick-js-worker.hooks.test.ts@@ -0,0 +1,511 @@+import path from 'node:path'+import type { HookInvocationScopeV1 } from '@shared/schemas/plugin-hooks'+import { afterEach, describe, expect, it, vi } from 'vitest'+import type { CapabilityHost } from '../capabilities/interface'+import { StagedEffectStore } from '../hooks/staged-effects'+import type { CapabilityBridge } from './capability-bridge'+import { makeStubCapabilityHost, spawnTestBridge } from './test-helpers'++const FIXTURE_ROOT = path.resolve(+ __dirname,+ '../../../../tests/fixtures/plugins'+)+const FS_TASK_HOST = {} as ReturnType<CapabilityHost['fsTaskFor']>++const TASK = {+ schemaVersion: 1,+ id: 'task-1',+ name: 'archive.zip',+ type: 'http',+ kind: 'direct',+ status: 'completed',+ filePath: '/downloads/archive.zip',+ saveDir: '/downloads',+ filename: 'archive.zip',+ progress: 100,+ totalBytes: 10,+ downloadedBytes: 10,+ uploadedBytes: 0,+ sizeWhenDone: 10,+ fileCount: 1,+ createdAt: 1,+ updatedAt: 2,+ finishedAt: 3,+ category: null,+ infoHash: null,+ error: null,+} as const++const BT_TASK = {+ ...TASK,+ id: 'task-bt',+ name: 'archive.torrent',+ type: 'bt',+ kind: 'bt',+ filename: 'archive.torrent',+ infoHash: 'ABCDEF0123456789ABCDEF0123456789ABCDEF01',+} as const++const liveBridges: CapabilityBridge[] = []++afterEach(async () => {+ await Promise.all(liveBridges.splice(0).map((bridge) => bridge.dispose()))+})++function scope(id: string): HookInvocationScopeV1 {+ return {+ invocationId: id,+ callChainId: `chain-${id}`,+ permissionGeneration: 1,+ }+}++function beforeCreatePayload(filename = 'archive.zip') {+ return {+ sourceUrl: 'https://example.test/archive.zip',+ createdBy: 'user',+ requestedAt: 1,+ type: 'http',+ uris: ['https://example.test/archive.zip'],+ saveDir: '/downloads',+ filename,+ headers: [],+ }+}++async function spawn(fixture: string, capabilityHost?: CapabilityHost) {+ const spawned = await spawnTestBridge(path.join(FIXTURE_ROOT, fixture), {+ timeoutMs: 15_000,+ capabilityHost,+ })+ liveBridges.push(spawned.bridge)+ return spawned+}++describe('QuickJS Worker Hook contract', () => {+ it('reports timeout fire and interval clear timer activity transitions', async () => {+ const activity: number[] = []+ const spawned = await spawnTestBridge(+ path.join(FIXTURE_ROOT, 'test.timer-activity'),+ {+ beforeReady: (bridge) => {+ bridge.getWorker().on('message', (message: unknown) => {+ const candidate = message as {+ type?: unknown+ activeCount?: unknown+ }+ if (+ candidate.type === 'timer_activity' &&+ typeof candidate.activeCount === 'number'+ ) {+ activity.push(candidate.activeCount)+ }+ })+ },+ }+ )+ liveBridges.push(spawned.bridge)++ await spawned.callPlugin('test.timer-activity.timeout', { delay: 20 })+ await vi.waitFor(() => expect(activity).toEqual([1, 0]))++ activity.length = 0+ await spawned.callPlugin('test.timer-activity.interval', { delay: 10 })+ await vi.waitFor(() => expect(activity).toEqual([1]))+ await spawned.callPlugin('test.timer-activity.clear', {})+ await vi.waitFor(() => expect(activity).toEqual([1, 0]))+ })++ it('executes the SDK 2.0 four-Hook surface with synchronous metadata', async () => {+ const spawned = await spawn('test.hook-sdk-2-0')+ const stagedCreate = new StagedEffectStore()+ spawned.bridge.setHookContext({+ fsTaskHost: FS_TASK_HOST,+ taskId: TASK.id,+ phase: 'beforeCreate',+ staged: stagedCreate,+ role: 'enrich',+ saveDir: TASK.saveDir,+ pluginStorageRoot: '/plugins/test.hook-sdk-2-0',+ })+ const createEffects = await spawned.bridge.callHook(+ 'beforeCreate',+ TASK.id,+ new AbortController().signal,+ 5_000,+ beforeCreatePayload(),+ { seed: 'original' },+ scope('create')+ )++ expect(createEffects).toEqual({+ schemaVersion: 1,+ contextPatches: [{ filename: 'original-1' }],+ metadataOperations: [+ { op: 'set', key: 'sdk20', value: { count: 1 } },+ { op: 'delete', key: 'seed' },+ ],+ })+ expect(stagedCreate.latestStagedFields()).toEqual({+ filename: 'original-1',+ })++ const stagedFinalize = new StagedEffectStore()+ spawned.bridge.setHookContext({+ fsTaskHost: FS_TASK_HOST,+ taskId: TASK.id,+ phase: 'beforeFinalize',+ staged: stagedFinalize,+ role: 'post-process',+ saveDir: TASK.saveDir,+ pluginStorageRoot: '/plugins/test.hook-sdk-2-0',+ })+ await spawned.bridge.callHook(+ 'beforeFinalize',+ TASK.id,+ new AbortController().signal,+ 5_000,+ {+ sourceUrl: 'https://example.test/archive.zip',+ createdBy: 'user',+ requestedAt: 1,+ task: TASK,+ inputFilePath: TASK.filePath,+ filePath: TASK.filePath,+ targetFilePath: TASK.filePath,+ },+ { release: 'stable' },+ scope('finalize')+ )+ expect(stagedFinalize.pendingFinalizePath).toBe(+ '/downloads/archive.zip.sdk20'+ )++ const delivery = {+ schemaVersion: 1,+ id: 'delivery-1',+ occurrenceId: 'occurrence-1',+ occurredAt: 3,+ }+ spawned.bridge.setHookContext({ fsTaskHost: FS_TASK_HOST, taskId: TASK.id })+ await spawned.bridge.callHook(+ 'afterComplete',+ TASK.id,+ new AbortController().signal,+ 5_000,+ { task: TASK, filePath: TASK.filePath, delivery },+ { release: 'stable' },+ scope('complete')+ )++ spawned.bridge.setHookContext({ fsTaskHost: FS_TASK_HOST, taskId: TASK.id })+ await spawned.bridge.callHook(+ 'onError',+ TASK.id,+ new AbortController().signal,+ 5_000,+ {+ task: { ...TASK, status: 'error' },+ filePath: TASK.filePath,+ delivery: { ...delivery, id: 'delivery-2' },+ error: {+ code: 'download.failed',+ message: 'failed',+ detailKey: null,+ detailParams: null,+ },+ },+ { release: 'stable' },+ scope('error')+ )++ expect(+ await spawned.callPlugin('test.hook-sdk-2-0.read', undefined)+ ).toEqual([+ {+ hook: 'beforeCreate',+ hasAfterSet: true,+ keys: ['sdk20'],+ aborted: false,+ },+ {+ hook: 'beforeFinalize',+ sourceUrl: 'https://example.test/archive.zip',+ taskId: TASK.id,+ saveDir: TASK.saveDir,+ metadata: { release: 'stable' },+ },+ {+ hook: 'afterComplete',+ taskId: TASK.id,+ filePath: TASK.filePath,+ keys: ['release'],+ },+ {+ hook: 'onError',+ taskId: TASK.id,+ errorCode: 'download.failed',+ metadata: { release: 'stable' },+ },+ ])+ }, 20_000)++ it('normalizes BT beforeFinalize sourceUrl to a non-secret canonical identifier', async () => {+ const spawned = await spawn('test.hook-sdk-2-0')+ const staged = new StagedEffectStore()+ spawned.bridge.setHookContext({+ fsTaskHost: FS_TASK_HOST,+ taskId: BT_TASK.id,+ phase: 'beforeFinalize',+ staged,+ role: 'post-process',+ saveDir: BT_TASK.saveDir,+ pluginStorageRoot: '/plugins/test.hook-sdk-2-0',+ })++ await spawned.bridge.callHook(+ 'beforeFinalize',+ BT_TASK.id,+ new AbortController().signal,+ 5_000,+ {+ // A torrent path or empty legacy value must never reach the guest.+ sourceUrl: '',+ createdBy: 'user',+ requestedAt: 1,+ task: BT_TASK,+ inputFilePath: BT_TASK.filePath,+ filePath: BT_TASK.filePath,+ targetFilePath: BT_TASK.filePath,+ },+ {},+ scope('bt-finalize')+ )++ expect(+ await spawned.callPlugin('test.hook-sdk-2-0.read', undefined)+ ).toEqual([+ {+ hook: 'beforeFinalize',+ sourceUrl: `urn:btih:${BT_TASK.infoHash.toLowerCase()}`,+ taskId: BT_TASK.id,+ saveDir: BT_TASK.saveDir,+ metadata: {},+ },+ ])+ }, 20_000)++ it('exposes readonly post metadata and the stable delivery envelope', async () => {+ const spawned = await spawn('test.hook-delivery-runtime')+ const delivery = {+ schemaVersion: 1,+ id: 'delivery-runtime-1',+ occurrenceId: 'occurrence-runtime-1',+ occurredAt: 42,+ }+ spawned.bridge.setHookContext({ fsTaskHost: FS_TASK_HOST, taskId: TASK.id })+ const effects = await spawned.bridge.callHook(+ 'afterComplete',+ TASK.id,+ new AbortController().signal,+ 5_000,+ { task: TASK, filePath: TASK.filePath, delivery },+ {},+ scope('delivery')+ )+ expect(effects).toEqual({+ schemaVersion: 1,+ contextPatches: [],+ metadataOperations: [],+ })+ expect(+ await spawned.callPlugin('test.hook-delivery-runtime.read', undefined)+ ).toEqual([+ {+ hook: 'afterComplete',+ deliveryId: delivery.id,+ occurrenceId: delivery.occurrenceId,+ occurredAt: delivery.occurredAt,+ metadataReadonly: true,+ },+ ])+ }, 20_000)++ it('delivers one AbortSignal event before rejecting the Hook', async () => {+ const spawned = await spawn('test.hook-sdk-2-0')+ const staged = new StagedEffectStore()+ const controller = new AbortController()+ spawned.bridge.setHookContext({+ fsTaskHost: FS_TASK_HOST,+ taskId: TASK.id,+ phase: 'beforeCreate',+ staged,+ role: 'enrich',+ saveDir: TASK.saveDir,+ pluginStorageRoot: '/plugins/test.hook-sdk-2-0',+ })+ const result = spawned.bridge.callHook(+ 'beforeCreate',+ TASK.id,+ controller.signal,+ 5_000,+ beforeCreatePayload('abort'),+ {},+ scope('abort')+ )+ await new Promise<void>((resolve) => setTimeout(resolve, 10))+ controller.abort('test abort')+ await expect(result).rejects.toMatchObject({ code: 'plugin.hook.aborted' })+ await new Promise<void>((resolve) => setTimeout(resolve, 20))++ expect(+ await spawned.callPlugin('test.hook-sdk-2-0.read', undefined)+ ).toEqual([+ { hook: 'onabort', aborted: true, reason: 'plugin hook aborted' },+ { hook: 'abort-listener' },+ ])+ }, 20_000)++ it('keeps a retained timer bound to its completed invocation', async () => {+ const spawned = await spawn('test.hook-sdk-2-0')+ spawned.bridge.setHookContext({+ fsTaskHost: FS_TASK_HOST,+ taskId: TASK.id,+ phase: 'beforeCreate',+ staged: new StagedEffectStore(),+ role: 'enrich',+ saveDir: TASK.saveDir,+ pluginStorageRoot: '/plugins/test.hook-sdk-2-0',+ })+ await spawned.bridge.callHook(+ 'beforeCreate',+ TASK.id,+ new AbortController().signal,+ 5_000,+ beforeCreatePayload('late'),+ {},+ scope('late')+ )+ await new Promise<void>((resolve) => setTimeout(resolve, 30))++ expect(+ await spawned.callPlugin('test.hook-sdk-2-0.read', undefined)+ ).toEqual([+ {+ hook: 'late-capability',+ code: 'plugin.hook.concurrent_protocol_violation',+ },+ ])+ }, 20_000)++ it('keeps a pending Host promise bound to Hook A while Hook B is active', async () => {+ let releaseGet!: () => void+ const capabilityHost = makeStubCapabilityHost()+ const set = vi.fn(async () => ({ version: 1 }))+ Object.assign(capabilityHost, {+ storage: {+ get: vi.fn(+ async () =>+ new Promise<{ value: undefined; version: number }>((resolve) => {+ releaseGet = () => resolve({ value: undefined, version: 0 })+ })+ ),+ set,+ } as unknown as CapabilityHost['storage'],+ })+ const spawned = await spawn('test.hook-sdk-2-0', capabilityHost)++ spawned.bridge.setHookContext({+ fsTaskHost: FS_TASK_HOST,+ taskId: TASK.id,+ phase: 'beforeCreate',+ staged: new StagedEffectStore(),+ role: 'enrich',+ saveDir: TASK.saveDir,+ pluginStorageRoot: '/plugins/test.hook-sdk-2-0',+ })+ await spawned.bridge.callHook(+ 'beforeCreate',+ TASK.id,+ new AbortController().signal,+ 5_000,+ beforeCreatePayload('late-promise'),+ {},+ scope('promise-a')+ )+ expect(spawned.bridge.operationState()).toMatchObject({+ capabilityCalls: 1,+ ffmpegOperations: 0,+ })++ const controller = new AbortController()+ spawned.bridge.setHookContext({+ fsTaskHost: FS_TASK_HOST,+ taskId: TASK.id,+ phase: 'beforeCreate',+ staged: new StagedEffectStore(),+ role: 'enrich',+ saveDir: TASK.saveDir,+ pluginStorageRoot: '/plugins/test.hook-sdk-2-0',+ })+ const hookB = spawned.bridge.callHook(+ 'beforeCreate',+ TASK.id,+ controller.signal,+ 5_000,+ beforeCreatePayload('abort'),+ {},+ scope('promise-b')+ )+ await new Promise<void>((resolve) => setTimeout(resolve, 10))+ releaseGet()+ await new Promise<void>((resolve) => setTimeout(resolve, 30))+ expect(set).not.toHaveBeenCalled()++ controller.abort()+ await expect(hookB).rejects.toMatchObject({ code: 'plugin.hook.aborted' })+ await new Promise<void>((resolve) => setTimeout(resolve, 10))+ expect(+ await spawned.callPlugin('test.hook-sdk-2-0.read', undefined)+ ).toEqual([+ {+ hook: 'late-promise',+ code: 'plugin.hook.concurrent_protocol_violation',+ },+ { hook: 'onabort', aborted: true, reason: 'plugin hook aborted' },+ { hook: 'abort-listener' },+ ])+ }, 20_000)++ it('rejects a plugin self-command before local dispatch or Host enqueue', async () => {+ const spawned = await spawn('test.hook-sdk-2-0')+ await expect(+ spawned.callPlugin('test.hook-sdk-2-0.self-call', undefined)+ ).resolves.toEqual({ code: 'plugin.runtime.reentrant_call' })+ }, 20_000)++ it('provides safe WHATWG URL and URLSearchParams globals', async () => {+ const spawned = await spawn('test.hook-sdk-2-0')+ await expect(+ spawned.callPlugin('test.hook-sdk-2-0.url', undefined)+ ).resolves.toEqual({+ href: 'https://user:[email protected]:8443/a/archive.zip?part=1&part=2#download',+ protocol: 'https:',+ origin: 'https://example.test:8443',+ host: 'example.test:8443',+ hostname: 'example.test',+ port: '8443',+ pathname: '/a/archive.zip',+ search: '?part=1&part=2',+ hash: '#download',+ username: 'user',+ password: 'pass',+ string:+ 'https://user:[email protected]:8443/a/archive.zip?part=1&part=2#download',+ json: 'https://user:[email protected]:8443/a/archive.zip?part=1&part=2#download',+ part: ['1', '2'],+ params: 'a=1&a=2&b=hello+world',+ paramsAll: ['1', '2'],+ })+ }, 20_000)+})diff --git a/src/core/plugin/host/quick-js-worker.ts b/src/core/plugin/host/quick-js-worker.tsindex f78b5101..3c024a94 100644--- a/src/core/plugin/host/quick-js-worker.ts+++ b/src/core/plugin/host/quick-js-worker.ts@@ -15,16 +15,25 @@// the regex rewrite; see Task 11).// On success: send `{type:'ready'}`. On failure: send `{type:'fatal', ...}`.//-// Task 20: injectPluginApi rebuilt to expose proxies for ALL Phase 1A-// capabilities. Each effectful proxy calls assertEffectfulAllowed before-// bridging; hook/command registration stores handles locally; hookEnter-// events dispatch into registered handlers.-//-// Tests for this module live in Task 21's e2e fixture (test.allcaps).-// Direct worker unit tests are omitted — WASM + worker_threads complexity-// makes them fragile compared to the e2e path.+// Capability proxies call assertEffectfulAllowed before bridging, while Hook+// context mutation and metadata staging stay synchronous inside the Worker.+// A versioned, validated Hook exit transfers those effects to the Host as one+// deterministic unit.import { parentPort } from 'node:worker_threads'+import {+ CapabilityResponseMessageSchema,+ type CommandInvocationScopeV1,+ HOOK_SCHEMA_VERSION,+ HookAbortMessageSchema,+ HookContextPatchSchema,+ type HookEffectsV1,+ HookEffectsV1Schema,+ HookEnterMessageSchema,+ type HookEnterMessageV1,+ type HookInvocationScopeV1,+ HookMetadataOperationSchema,+} from '@shared/schemas/plugin-hooks'import {getQuickJS,type QuickJSContext,@@ -32,6 +41,7 @@ import {} from 'quickjs-emscripten'import { classify } from '../capabilities/classification'import {+ BridgeExecuteCommandSchema,type BridgeInitMessage,HOOK_NAMES,type HookName,@@ -44,7 +54,14 @@ if (!parentPort) {}const port = parentPort-const pendingCalls = new Map<number, (msg: HostToWorker) => void>()+const pendingCalls = new Map<+ number,+ {+ scope: GuestCallbackScope+ resolve: (value: unknown) => void+ reject: (error: Error & { code?: string }) => void+ }+>()let nextCallId = 1// Locale dictionaries are mutated by 'localeChange' events after boot.// They are declared module-scoped so the i18n.t closure inside the VM@@ -75,6 +92,24 @@ const registeredCommands = new Map<string, QuickJSHandle>()// all memory without an explicit dispose pass.const registeredDeactivateHandlers: QuickJSHandle[] = []+interface ActiveHookInvocation {+ readonly scope: HookInvocationScopeV1+ readonly hook: HookName+ readonly signalHandle: QuickJSHandle+ readonly abortListeners: QuickJSHandle[]+ readonly effects: HookEffectsV1+ aborted: boolean+ abortReason: string+}++let activeHookInvocation: ActiveHookInvocation | null = null+interface GuestCallbackScope {+ hook: HookInvocationScopeV1 | null+ command: CommandInvocationScopeV1 | null+}++let guestCallbackScope: GuestCallbackScope | null = null+function send(msg: WorkerToHost): void {port.postMessage(msg)}@@ -94,25 +129,73 @@ function assertEffectfulAllowed(capability: string, method: string): void {throw new Error(violationFatal.message)}-async function callHost(+/**+ * Native Host promises settle on Node's microtask queue, outside QuickJS.+ * Bind the first continuation that re-enters QuickJS to the immutable Hook+ * scope captured when the capability call was created. QuickJS drains every+ * guest continuation synchronously from that callback, so a promise retained+ * by Hook A can never resume unscoped or borrow Hook B's active context.+ */+class InvocationScopedPromise<T> extends Promise<T> {+ static get [Symbol.species](): PromiseConstructor {+ return Promise+ }++ constructor(+ executor: ConstructorParameters<typeof Promise<T>>[0],+ private readonly invocationScope: GuestCallbackScope+ ) {+ super(executor)+ }++ // biome-ignore lint/suspicious/noThenProperty: this Promise subclass intentionally scopes its continuation.+ override then<TResult1 = T, TResult2 = never>(+ onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null,+ onrejected?: ((reason: unknown) => TResult2 | PromiseLike<TResult2>) | null+ ): Promise<TResult1 | TResult2> {+ return super.then(+ onfulfilled+ ? (value) =>+ withGuestCallbackScope(this.invocationScope, () =>+ onfulfilled(value)+ )+ : undefined,+ onrejected+ ? (reason) =>+ withGuestCallbackScope(this.invocationScope, () =>+ onrejected(reason)+ )+ : undefined+ )+ }+}++function callHost(capability: string,method: string,args: unknown[]): Promise<unknown> {+ if (activeHookInvocation?.aborted) {+ throw codedError('plugin.hook.aborted', activeHookInvocation.abortReason)+ }const id = nextCallId++- return new Promise((resolve, reject) => {- pendingCalls.set(id, (resp) => {- if (resp.type !== 'response') return- if (resp.ok) {- resolve(resp.result)- } else {- const e: Error & { code?: string } = new Error(resp.error.message)- e.code = resp.error.code- reject(e)- }- })- send({ type: 'call', id, capability, method, args })- })+ const scope = guestCallbackScope ?? {+ hook: activeHookInvocation?.scope ?? null,+ command: null,+ }+ return new InvocationScopedPromise((resolve, reject) => {+ pendingCalls.set(id, { scope, resolve, reject })+ const base = { type: 'call' as const, id, capability, method, args }+ if (scope.hook && scope.command) {+ send({ ...base, ...scope.hook, commandScope: scope.command })+ } else if (scope.hook) {+ send({ ...base, ...scope.hook })+ } else if (scope.command) {+ send({ ...base, commandScope: scope.command })+ } else {+ send(base)+ }+ }, scope)}// --- Top-level message dispatcher ---------------------------------------@@ -163,10 +246,44 @@ port.on('message', (msg: HostToWorker) => {}returncase 'response': {- const handler = pendingCalls.get(msg.id)- if (handler) {+ const parsed = CapabilityResponseMessageSchema.safeParse(msg)+ const pending = pendingCalls.get(msg.id)+ if (!parsed.success) {+ if (pending) {+ pendingCalls.delete(msg.id)+ pending.reject(+ codedError(+ 'plugin.hook.concurrent_protocol_violation',+ 'invalid capability response message'+ )+ )+ }+ return+ }+ if (pending) {pendingCalls.delete(msg.id)- handler(msg)+ const responseHookScope = hookScopeFromResponse(parsed.data)+ const responseCommandScope = commandScopeFromMessage(parsed.data)+ if (+ !optionalHookScopeMatches(responseHookScope, pending.scope.hook) ||+ !optionalCommandScopeMatches(+ responseCommandScope,+ pending.scope.command+ )+ ) {+ pending.reject(+ codedError(+ 'plugin.hook.concurrent_protocol_violation',+ 'capability response belongs to another invocation'+ )+ )+ } else if (parsed.data.ok) {+ pending.resolve(parsed.data.result)+ } else {+ pending.reject(+ codedError(parsed.data.error.code, parsed.data.error.message)+ )+ }}return}@@ -179,14 +296,22 @@ port.on('message', (msg: HostToWorker) => {currentDict = { ...msg.dict }syncVmLocaleProperties()} else if (msg.event === 'hookEnter') {- handleHookEnter(- msg.hook,- msg.taskId,- msg.ctxPayload,- msg.metadataSnapshot- )+ const parsed = HookEnterMessageSchema.safeParse(msg)+ if (!parsed.success) {+ send({+ type: 'fatal',+ code: 'plugin.hook.input_invalid',+ message: 'Host sent an invalid Hook enter message',+ })+ return+ }+ handleHookEnter(parsed.data)+ } else if (msg.event === 'abort') {+ const parsed = HookAbortMessageSchema.safeParse(msg)+ if (parsed.success) handleHookAbort(parsed.data)} else if (msg.event === 'executeCommand') {- handleExecuteCommand(msg.id, msg.commandId, msg.args)+ const parsed = BridgeExecuteCommandSchema.safeParse(msg)+ if (parsed.success) handleExecuteCommand(parsed.data)} else if (msg.event === 'deactivate') {handleDeactivate()}@@ -196,128 +321,149 @@ port.on('message', (msg: HostToWorker) => {// --- hookEnter handler ---------------------------------------------------function handleHookEnter(- hook: HookName,- taskId: string,- ctxPayload?: Record<string, unknown>,- metadataSnapshot?: Record<string, unknown>-): void {+function handleHookEnter(message: HookEnterMessageV1): void {const vm = vmRefif (!vm) {- send({- type: 'event',- event: 'hookExit',- ok: false,- errorCode: 'plugin.runtime.not_ready',- })+ sendHookFailure(+ message,+ 'plugin.runtime.not_ready',+ 'plugin runtime is not ready'+ )+ return+ }+ if (activeHookInvocation) {+ sendHookFailure(+ message,+ 'plugin.hook.concurrent_protocol_violation',+ 'another Hook invocation is already active'+ )return}- const fnHandle = registeredHooks.get(hook)+ const fnHandle = registeredHooks.get(message.hook)if (!fnHandle) {- // No handler registered for this hook — no-op exit.- send({ type: 'event', event: 'hookExit', ok: true })+ sendHookSuccess(message, {+ schemaVersion: HOOK_SCHEMA_VERSION,+ contextPatches: [],+ metadataOperations: [],+ })return}currentPhase = 'hook'+ const signalHandle = vm.newObject()+ const invocation: ActiveHookInvocation = {+ scope: hookScopeFromEnter(message),+ hook: message.hook,+ signalHandle,+ abortListeners: [],+ effects: {+ schemaVersion: HOOK_SCHEMA_VERSION,+ contextPatches: [],+ metadataOperations: [],+ },+ aborted: false,+ abortReason: '',+ }+ activeHookInvocation = invocation- // Construct ctx envelope inside the VM.- // - taskId always present (bridge supplies it)- // - ctxPayload hook-shape fields (type, uris, headers, ...) — required- // by every plugin's branching logic at handler entry- // - ctx.metadata {get(key), set(key,v), delete(key)} — set/delete are- // staged via the bridge, get reads from the snapshot- // supplied by the orchestrator (committed by previous- // hooks in the chain)- // - ctx.update patches uris/headers/proxy/filename for series hooks- // The bridge.handleStaged decides whether each call is allowed under the- // current role + phase (matrix gate) — the worker just proxies.const ctxHandle = vm.newObject()- const taskIdHandle = vm.newString(taskId)- vm.setProp(ctxHandle, 'taskId', taskIdHandle)- taskIdHandle.dispose()-- // Copy each ctxPayload field as a top-level ctx property.- if (ctxPayload) {- for (const [k, v] of Object.entries(ctxPayload)) {- if (v === undefined) continue- const valH = jsValueToVmHandle(vm, v)- vm.setProp(ctxHandle, k, valH)- valH.dispose()- }+ for (const [key, value] of Object.entries(message.ctxPayload)) {+ const valueHandle = jsValueToVmHandle(vm, value)+ vm.setProp(ctxHandle, key, valueHandle)+ valueHandle.dispose()}- // ctx.metadata — readable via snapshot, writable via staged effects.- const snapshot = metadataSnapshot ?? {}+ const snapshot = structuredClone(message.metadataSnapshot)const metadataHandle = vm.newObject()const metaGet = vm.newFunction('get', (keyH) => {const key = vm.dump(keyH) as string- const val = (snapshot as Record<string, unknown>)[key]- return jsValueToVmHandle(vm, val)+ return jsValueToVmHandle(vm, snapshot[key])})vm.setProp(metadataHandle, 'get', metaGet)metaGet.dispose()- const metaSet = vm.newFunction('set', (keyH, valueH) => {- const key = vm.dump(keyH) as string- const value = valueH !== undefined ? vm.dump(valueH) : undefined- // Fire-and-forget; staged store accepts on host side.- void callHost('metadata', 'set', [key, value])- return vm.undefined- })- vm.setProp(metadataHandle, 'set', metaSet)- metaSet.dispose()- const metaDelete = vm.newFunction('delete', (keyH) => {++ const metaHas = vm.newFunction('has', (keyH) => {const key = vm.dump(keyH) as string- void callHost('metadata', 'delete', [key])- return vm.undefined+ return Object.hasOwn(snapshot, key) ? vm.true : vm.false})- vm.setProp(metadataHandle, 'delete', metaDelete)- metaDelete.dispose()+ vm.setProp(metadataHandle, 'has', metaHas)+ metaHas.dispose()++ const metaGetAll = vm.newFunction('getAll', () =>+ jsValueToVmHandle(vm, snapshot)+ )+ vm.setProp(metadataHandle, 'getAll', metaGetAll)+ metaGetAll.dispose()++ const metaKeys = vm.newFunction('keys', () =>+ jsValueToVmHandle(vm, Object.keys(snapshot))+ )+ vm.setProp(metadataHandle, 'keys', metaKeys)+ metaKeys.dispose()++ if (message.hook === 'beforeCreate' || message.hook === 'beforeFinalize') {+ const metaSet = vm.newFunction('set', (keyH, valueH) => {+ assertInvocationWritable(invocation)+ const operation = HookMetadataOperationSchema.parse({+ op: 'set',+ key: vm.dump(keyH),+ value: valueH === undefined ? undefined : vm.dump(valueH),+ })+ if (operation.op !== 'set') {+ throw codedError(+ 'plugin.hook.output_invalid',+ 'metadata.set produced an invalid operation'+ )+ }+ snapshot[operation.key] = structuredClone(operation.value)+ invocation.effects.metadataOperations.push(operation)+ return vm.undefined+ })+ vm.setProp(metadataHandle, 'set', metaSet)+ metaSet.dispose()++ const metaDelete = vm.newFunction('delete', (keyH) => {+ assertInvocationWritable(invocation)+ const operation = HookMetadataOperationSchema.parse({+ op: 'delete',+ key: vm.dump(keyH),+ })+ delete snapshot[operation.key]+ invocation.effects.metadataOperations.push(operation)+ return vm.undefined+ })+ vm.setProp(metadataHandle, 'delete', metaDelete)+ metaDelete.dispose()++ const updateFn = vm.newFunction('update', (patchH) => {+ assertInvocationWritable(invocation)+ const patch = HookContextPatchSchema.parse(+ patchH === undefined ? undefined : vm.dump(patchH)+ )+ invocation.effects.contextPatches.push(structuredClone(patch))+ return vm.undefined+ })+ vm.setProp(ctxHandle, 'update', updateFn)+ updateFn.dispose()+ }+vm.setProp(ctxHandle, 'metadata', metadataHandle)metadataHandle.dispose()- const updateFn = vm.newFunction('update', (patchH) => {- const patch = patchH !== undefined ? vm.dump(patchH) : undefined- const deferred = vm.newPromise()- callHost('ctx', 'update', [patch]).then(- (result) => {- const h = jsValueToVmHandle(vm, result)- deferred.resolve(h)- h.dispose()- vm.runtime.executePendingJobs()- },- (err: Error & { code?: string }) => {- const errH = vm.newError(err.message)- if (err.code) {- const codeH = vm.newString(err.code)- vm.setProp(errH, 'code', codeH)- codeH.dispose()- }- deferred.reject(errH)- errH.dispose()- vm.runtime.executePendingJobs()- }- )- deferred.settled.then(() => vm.runtime.executePendingJobs())- return deferred.handle- })- vm.setProp(ctxHandle, 'update', updateFn)- updateFn.dispose()+ installAbortSignal(vm, invocation)+ vm.setProp(ctxHandle, 'signal', invocation.signalHandle)const callResult = vm.callFunction(fnHandle, vm.undefined, ctxHandle)ctxHandle.dispose()if (callResult.error) {- const err = vm.dump(callResult.error)+ const error = vm.dump(callResult.error)callResult.error.dispose()- currentPhase = 'idle'- const errorCode = vmErrorCode(err)- send({ type: 'event', event: 'hookExit', ok: false, errorCode })+ finishHookFailure(invocation, vmErrorCode(error), vmErrorMessage(error))return}- // The hook may return a Promise. Use vm.resolvePromise to await it.const maybePromise = callResult.valueconst resolved = vm.resolvePromise(maybePromise)maybePromise.dispose()@@ -325,20 +471,197 @@ function handleHookEnter(resolved.then((settled) => {vm.runtime.executePendingJobs()if (settled.error) {- const err = vm.dump(settled.error)+ const error = vm.dump(settled.error)settled.error.dispose()- currentPhase = 'idle'- const errorCode = vmErrorCode(err)- send({ type: 'event', event: 'hookExit', ok: false, errorCode })+ finishHookFailure(invocation, vmErrorCode(error), vmErrorMessage(error))} else {settled.value.dispose()- currentPhase = 'idle'- send({ type: 'event', event: 'hookExit', ok: true })+ if (invocation.aborted) {+ finishHookFailure(+ invocation,+ 'plugin.hook.aborted',+ invocation.abortReason+ )+ } else {+ finishHookSuccess(invocation)+ }}})vm.runtime.executePendingJobs()}+function installAbortSignal(+ vm: QuickJSContext,+ invocation: ActiveHookInvocation+): void {+ vm.setProp(invocation.signalHandle, 'aborted', vm.false)+ vm.setProp(invocation.signalHandle, 'reason', vm.undefined)+ vm.setProp(invocation.signalHandle, 'onabort', vm.null)++ const addEventListener = vm.newFunction(+ 'addEventListener',+ (typeHandle, listenerHandle) => {+ if (activeHookInvocation !== invocation) return vm.undefined+ if (+ vm.dump(typeHandle) !== 'abort' ||+ vm.typeof(listenerHandle) !== 'function'+ ) {+ return vm.undefined+ }+ if (+ !invocation.abortListeners.some((listener) =>+ vmSameValue(vm, listener, listenerHandle)+ )+ ) {+ invocation.abortListeners.push(listenerHandle.dup())+ }+ return vm.undefined+ }+ )+ vm.setProp(invocation.signalHandle, 'addEventListener', addEventListener)+ addEventListener.dispose()++ const removeEventListener = vm.newFunction(+ 'removeEventListener',+ (typeHandle, listenerHandle) => {+ if (vm.dump(typeHandle) !== 'abort') return vm.undefined+ const index = invocation.abortListeners.findIndex((listener) =>+ vmSameValue(vm, listener, listenerHandle)+ )+ if (index >= 0) {+ invocation.abortListeners[index]?.dispose()+ invocation.abortListeners.splice(index, 1)+ }+ return vm.undefined+ }+ )+ vm.setProp(+ invocation.signalHandle,+ 'removeEventListener',+ removeEventListener+ )+ removeEventListener.dispose()+}++function handleHookAbort(+ message: HookInvocationScopeV1 & { reason: string }+): void {+ const vm = vmRef+ const invocation = activeHookInvocation+ if (!vm || !invocation || !sameHookScope(message, invocation.scope)) return+ if (invocation.aborted) return++ invocation.aborted = true+ invocation.abortReason = message.reason || 'plugin hook aborted'+ vm.setProp(invocation.signalHandle, 'aborted', vm.true)+ const reasonHandle = vm.newString(invocation.abortReason)+ vm.setProp(invocation.signalHandle, 'reason', reasonHandle)+ reasonHandle.dispose()++ const eventHandle = vm.newObject()+ const eventType = vm.newString('abort')+ vm.setProp(eventHandle, 'type', eventType)+ eventType.dispose()++ const onabort = vm.getProp(invocation.signalHandle, 'onabort')+ if (vm.typeof(onabort) === 'function') {+ disposeVmCallResult(+ vm.callFunction(onabort, invocation.signalHandle, eventHandle)+ )+ }+ onabort.dispose()+ for (const listener of invocation.abortListeners) {+ disposeVmCallResult(+ vm.callFunction(listener, invocation.signalHandle, eventHandle)+ )+ }+ eventHandle.dispose()+ vm.runtime.executePendingJobs()++ for (const [id, pending] of pendingCalls) {+ if (+ pending.scope.hook &&+ sameHookScope(pending.scope.hook, invocation.scope)+ ) {+ pendingCalls.delete(id)+ pending.reject(codedError('plugin.hook.aborted', invocation.abortReason))+ }+ }+ vm.runtime.executePendingJobs()+}++function finishHookSuccess(invocation: ActiveHookInvocation): void {+ if (activeHookInvocation !== invocation) return+ const parsed = HookEffectsV1Schema.safeParse(invocation.effects)+ if (!parsed.success) {+ finishHookFailure(+ invocation,+ 'plugin.hook.output_invalid',+ parsed.error.issues[0]?.message ?? 'invalid Hook effects'+ )+ return+ }+ sendHookSuccess(invocation.scope, parsed.data)+ releaseHookInvocation(invocation)+}++function finishHookFailure(+ invocation: ActiveHookInvocation,+ code: string,+ message: string+): void {+ if (activeHookInvocation !== invocation) return+ sendHookFailure(invocation.scope, code, message)+ releaseHookInvocation(invocation)+}++function releaseHookInvocation(invocation: ActiveHookInvocation): void {+ for (const listener of invocation.abortListeners) listener.dispose()+ invocation.abortListeners.length = 0+ invocation.signalHandle.dispose()+ if (activeHookInvocation === invocation) activeHookInvocation = null+ currentPhase = 'idle'+}++function sendHookSuccess(+ scope: HookInvocationScopeV1,+ effects: HookEffectsV1+): void {+ send({+ type: 'event',+ event: 'hookExit',+ ...scope,+ ok: true,+ effects,+ })+}++function sendHookFailure(+ scope: HookInvocationScopeV1,+ code: string,+ message: string+): void {+ send({+ type: 'event',+ event: 'hookExit',+ ...scope,+ ok: false,+ error: {+ code: code.slice(0, 64) || 'plugin.runtime.fault',+ message: message.slice(0, 4_096),+ },+ })+}++function assertInvocationWritable(invocation: ActiveHookInvocation): void {+ if (activeHookInvocation !== invocation || invocation.aborted) {+ throw codedError(+ 'plugin.hook.aborted',+ invocation.abortReason || 'plugin hook is no longer active'+ )+ }+}+// --- executeCommand handler -----------------------------------------------//// Invoked when the host sends a BridgeExecuteCommand event. Dispatches to the@@ -346,17 +669,20 @@ function handleHookEnter(// and sends back a BridgeExecuteCommandResult event.// Used by test-helpers.ts callPlugin and future Plan C command invocations.-function handleExecuteCommand(- id: number,- commandId: string,+function handleExecuteCommand(message: {+ id: number+ commandId: stringargs: unknown-): void {+ commandScope: CommandInvocationScopeV1+}): void {+ const { id, commandId, args, commandScope } = messageconst vm = vmRefif (!vm) {send({type: 'event',event: 'executeCommandResult',id,+ commandScope,ok: false,errorCode: 'plugin.runtime.not_ready',errorMessage: 'VM not initialised',@@ -370,6 +696,7 @@ function handleExecuteCommand(type: 'event',event: 'executeCommandResult',id,+ commandScope,ok: false,errorCode: 'plugin.commands.not_found',errorMessage: `command not found: ${commandId}`,@@ -382,7 +709,13 @@ function handleExecuteCommand(currentPhase = 'hook'const argsHandle = jsValueToVmHandle(vm, args)- const callResult = vm.callFunction(handler, vm.undefined, argsHandle)+ const callbackScope: GuestCallbackScope = {+ hook: null,+ command: commandScope,+ }+ const callResult = withGuestCallbackScope(callbackScope, () =>+ vm.callFunction(handler, vm.undefined, argsHandle)+ )argsHandle.dispose()if (callResult.error) {@@ -395,6 +728,7 @@ function handleExecuteCommand(type: 'event',event: 'executeCommandResult',id,+ commandScope,ok: false,errorCode,errorMessage,@@ -407,34 +741,38 @@ function handleExecuteCommand(maybePromise.dispose()resolved.then((settled) => {- vm.runtime.executePendingJobs()- currentPhase = prevPhase- if (settled.error) {- const err = vm.dump(settled.error)- settled.error.dispose()- const errorCode = vmErrorCode(err)- const errorMessage = vmErrorMessage(err)- send({- type: 'event',- event: 'executeCommandResult',- id,- ok: false,- errorCode,- errorMessage,- })- } else {- const result = vm.dump(settled.value)- settled.value.dispose()- send({- type: 'event',- event: 'executeCommandResult',- id,- ok: true,- result,- })- }+ withGuestCallbackScope(callbackScope, () => {+ vm.runtime.executePendingJobs()+ currentPhase = prevPhase+ if (settled.error) {+ const err = vm.dump(settled.error)+ settled.error.dispose()+ const errorCode = vmErrorCode(err)+ const errorMessage = vmErrorMessage(err)+ send({+ type: 'event',+ event: 'executeCommandResult',+ id,+ commandScope,+ ok: false,+ errorCode,+ errorMessage,+ })+ } else {+ const result = vm.dump(settled.value)+ settled.value.dispose()+ send({+ type: 'event',+ event: 'executeCommandResult',+ id,+ commandScope,+ ok: true,+ result,+ })+ }+ })})- vm.runtime.executePendingJobs()+ withGuestCallbackScope(callbackScope, () => vm.runtime.executePendingJobs())}// --- handleDeactivate ---------------------------------------------------@@ -553,6 +891,8 @@ async function boot(): Promise<void> {// --- Globals (timers) ---------------------------------------------------function setupGlobals(vm: QuickJSContext): () => void {+ installUrlGlobals(vm)+// setTimeout / setInterval enforce caps:// - MAX_ACTIVE: hard cap on simultaneously-scheduled timers per plugin// - MAX_DELAY: clamps absurdly large delays to 30s@@ -560,9 +900,20 @@ function setupGlobals(vm: QuickJSContext): () => void {// newFunction callback — quickjs-emscripten converts that to a VM-level// exception so the plugin sees a thrown error rather than a silent no-op.const timers = new Map<number, NodeJS.Timeout>()+ const intervalCallbacks = new Map<number, ReturnType<typeof setInterval>>()+ const intervalHandleRefs = new Map<number, () => void>()let nextId = 1const MAX_DELAY = 30_000const MAX_ACTIVE = 100+ const reportTimerActivity = () => {+ // Kept outside WorkerToHost on purpose: this Host lifecycle signal is+ // consumed directly by PluginHost and never enters CapabilityBridge's+ // request/response protocol.+ port.postMessage({+ type: 'timer_activity',+ activeCount: timers.size + intervalCallbacks.size,+ })+ }const setTimeoutFn = vm.newFunction('setTimeout', (cbHandle, delayHandle) => {if (timers.size >= MAX_ACTIVE) {@@ -570,6 +921,10 @@ function setupGlobals(vm: QuickJSContext): () => void {}const delay = Math.min(vm.getNumber(delayHandle), MAX_DELAY)const id = nextId+++ const callbackScope = guestCallbackScope ?? {+ hook: activeHookInvocation?.scope ?? null,+ command: null,+ }// Persistent handle survives the synchronous callback return; we// dispose it when the timer fires (one-shot) or is cleared.const persistent = cbHandle.dup()@@ -577,15 +932,16 @@ function setupGlobals(vm: QuickJSContext): () => void {id,setTimeout(() => {timers.delete(id)- const res = vm.callFunction(persistent, vm.undefined)- persistent.dispose()- if (res.error) {- res.error.dispose()- } else {- res.value.dispose()- }+ reportTimerActivity()+ withGuestCallbackScope(callbackScope, () => {+ const res = vm.callFunction(persistent, vm.undefined)+ persistent.dispose()+ disposeVmCallResult(res)+ vm.runtime.executePendingJobs()+ })}, delay))+ reportTimerActivity()return vm.newNumber(id)})vm.setProp(vm.global, 'setTimeout', setTimeoutFn)@@ -597,15 +953,13 @@ function setupGlobals(vm: QuickJSContext): () => void {if (t) {clearTimeout(t)timers.delete(id)+ reportTimerActivity()}return vm.undefined})vm.setProp(vm.global, 'clearTimeout', clearTimeoutFn)clearTimeoutFn.dispose()- const intervalCallbacks = new Map<number, ReturnType<typeof setInterval>>()- const intervalHandleRefs = new Map<number, () => void>()-const setIntervalFn = vm.newFunction('setInterval',(cbHandle, delayHandle) => {@@ -614,17 +968,21 @@ function setupGlobals(vm: QuickJSContext): () => void {}const delay = Math.min(vm.getNumber(delayHandle), MAX_DELAY)const id = nextId+++ const callbackScope = guestCallbackScope ?? {+ hook: activeHookInvocation?.scope ?? null,+ command: null,+ }const persistent = cbHandle.dup()const interval = setInterval(() => {- const res = vm.callFunction(persistent, vm.undefined)- if (res.error) {- res.error.dispose()- } else {- res.value.dispose()- }+ withGuestCallbackScope(callbackScope, () => {+ const res = vm.callFunction(persistent, vm.undefined)+ disposeVmCallResult(res)+ vm.runtime.executePendingJobs()+ })}, delay)intervalCallbacks.set(id, interval)intervalHandleRefs.set(id, () => persistent.dispose())+ reportTimerActivity()return vm.newNumber(id)})@@ -642,6 +1000,7 @@ function setupGlobals(vm: QuickJSContext): () => void {release()intervalHandleRefs.delete(id)}+ reportTimerActivity()}return vm.undefined})@@ -665,12 +1024,223 @@ function setupGlobals(vm: QuickJSContext): () => void {clearTimeout(t)}timers.clear()+ reportTimerActivity()} catch {// Swallow — cleanup must not throw from error paths}}}+const URL_STRING_FIELDS = [+ 'href',+ 'protocol',+ 'origin',+ 'host',+ 'hostname',+ 'port',+ 'pathname',+ 'search',+ 'hash',+ 'username',+ 'password',+] as const++/**+ * QuickJS does not ship WHATWG URL globals. Parse with Node's standards-based+ * implementation and copy only string fields/functions into guest-owned VM+ * objects; no Node object, dispatcher, or Host capability crosses the realm.+ */+function installUrlGlobals(vm: QuickJSContext): void {+ const urlConstructor = vm.newFunction('URL', (inputHandle, baseHandle) => {+ const input = String(vm.dump(inputHandle))+ const base =+ baseHandle === undefined ? undefined : String(vm.dump(baseHandle))+ const parsed = new URL(input, base)+ const object = vm.newObject()+ const syncFields = () => {+ for (const field of URL_STRING_FIELDS) {+ const value = vm.newString(parsed[field])+ vm.setProp(object, field, value)+ value.dispose()+ }+ }+ syncFields()++ const searchParams = makeUrlSearchParamsHandle(+ vm,+ new URLSearchParams(parsed.searchParams),+ (serialized) => {+ parsed.search = serialized+ }+ )+ vm.setProp(object, 'searchParams', searchParams)+ searchParams.dispose()++ for (const method of ['toString', 'toJSON'] as const) {+ const fn = vm.newFunction(method, () => vm.newString(parsed.href))+ vm.setProp(object, method, fn)+ fn.dispose()+ }+ return object+ })+ const canParse = vm.newFunction('canParse', (inputHandle, baseHandle) => {+ const input = String(vm.dump(inputHandle))+ const base =+ baseHandle === undefined ? undefined : String(vm.dump(baseHandle))+ return URL.canParse(input, base) ? vm.true : vm.false+ })+ vm.setProp(vm.global, '__motrixCreateURL', urlConstructor)+ urlConstructor.dispose()+ vm.setProp(vm.global, '__motrixCanParseURL', canParse)+ canParse.dispose()++ const searchParamsConstructor = vm.newFunction(+ 'URLSearchParams',+ (initHandle) =>+ makeUrlSearchParamsHandle(vm, urlSearchParamsFromVm(vm, initHandle))+ )+ vm.setProp(+ vm.global,+ '__motrixCreateURLSearchParams',+ searchParamsConstructor+ )+ searchParamsConstructor.dispose()++ const constructors = vm.evalCode(`+ (() => {+ const createURL = globalThis.__motrixCreateURL+ const canParseURL = globalThis.__motrixCanParseURL+ const createURLSearchParams = globalThis.__motrixCreateURLSearchParams+ delete globalThis.__motrixCreateURL+ delete globalThis.__motrixCanParseURL+ delete globalThis.__motrixCreateURLSearchParams+ globalThis.URL = class URL {+ constructor(input, base) {+ return createURL(String(input), base === undefined ? undefined : String(base))+ }+ static canParse(input, base) {+ return canParseURL(String(input), base === undefined ? undefined : String(base))+ }+ }+ globalThis.URLSearchParams = class URLSearchParams {+ constructor(init) {+ return createURLSearchParams(init)+ }+ }+ })()+ `)+ if (constructors.error) {+ const error = vm.dump(constructors.error)+ constructors.error.dispose()+ throw new Error(`failed to install URL globals: ${vmErrorMessage(error)}`)+ }+ constructors.value.dispose()+}++function urlSearchParamsFromVm(+ vm: QuickJSContext,+ initHandle: QuickJSHandle | undefined+): URLSearchParams {+ if (initHandle === undefined) return new URLSearchParams()+ const init = vm.dump(initHandle)+ if (typeof init === 'string') return new URLSearchParams(init)+ if (Array.isArray(init)) {+ const pairs = init.map((entry) => {+ if (!Array.isArray(entry) || entry.length !== 2) {+ throw new TypeError('URLSearchParams tuple entries must have length 2')+ }+ return [String(entry[0]), String(entry[1])] as [string, string]+ })+ return new URLSearchParams(pairs)+ }+ if (init && typeof init === 'object') {+ return new URLSearchParams(+ Object.fromEntries(+ Object.entries(init as Record<string, unknown>).map(([key, value]) => [+ key,+ String(value),+ ])+ )+ )+ }+ return new URLSearchParams(String(init))+}++function makeUrlSearchParamsHandle(+ vm: QuickJSContext,+ params: URLSearchParams,+ onChange: (serialized: string) => void = () => {}+): QuickJSHandle {+ const object = vm.newObject()+ const mutated = () => onChange(params.toString())++ const append = vm.newFunction('append', (nameHandle, valueHandle) => {+ params.append(String(vm.dump(nameHandle)), String(vm.dump(valueHandle)))+ mutated()+ return vm.undefined+ })+ vm.setProp(object, 'append', append)+ append.dispose()++ const deleteFn = vm.newFunction('delete', (nameHandle, valueHandle) => {+ const name = String(vm.dump(nameHandle))+ if (valueHandle === undefined) params.delete(name)+ else params.delete(name, String(vm.dump(valueHandle)))+ mutated()+ return vm.undefined+ })+ vm.setProp(object, 'delete', deleteFn)+ deleteFn.dispose()++ const get = vm.newFunction('get', (nameHandle) => {+ const value = params.get(String(vm.dump(nameHandle)))+ return value === null ? vm.null : vm.newString(value)+ })+ vm.setProp(object, 'get', get)+ get.dispose()++ const getAll = vm.newFunction('getAll', (nameHandle) =>+ jsValueToVmHandle(vm, params.getAll(String(vm.dump(nameHandle))))+ )+ vm.setProp(object, 'getAll', getAll)+ getAll.dispose()++ const has = vm.newFunction('has', (nameHandle, valueHandle) => {+ const name = String(vm.dump(nameHandle))+ const present =+ valueHandle === undefined+ ? params.has(name)+ : params.has(name, String(vm.dump(valueHandle)))+ return present ? vm.true : vm.false+ })+ vm.setProp(object, 'has', has)+ has.dispose()++ const set = vm.newFunction('set', (nameHandle, valueHandle) => {+ params.set(String(vm.dump(nameHandle)), String(vm.dump(valueHandle)))+ mutated()+ return vm.undefined+ })+ vm.setProp(object, 'set', set)+ set.dispose()++ const sort = vm.newFunction('sort', () => {+ params.sort()+ mutated()+ return vm.undefined+ })+ vm.setProp(object, 'sort', sort)+ sort.dispose()++ const toStringFn = vm.newFunction('toString', () =>+ vm.newString(params.toString())+ )+ vm.setProp(object, 'toString', toStringFn)+ toStringFn.dispose()++ return object+}+// --- Value marshaling ---------------------------------------------------//// jsValueToVmHandle: converts a JS value from host into a QuickJS VM handle.@@ -679,7 +1249,8 @@ function setupGlobals(vm: QuickJSContext): () => void {// This is a Task 20 limitation; Plan G will ship proper typed-array marshaling.function jsValueToVmHandle(vm: QuickJSContext, v: unknown): QuickJSHandle {- if (v === null || v === undefined) return vm.null+ if (v === undefined) return vm.undefined+ if (v === null) return vm.nullif (typeof v === 'boolean') return v ? vm.true : vm.falseif (typeof v === 'number') return vm.newNumber(v)if (typeof v === 'string') return vm.newString(v)@@ -734,6 +1305,128 @@ function vmErrorMessage(err: unknown): string {: String(err)}+function codedError(code: string, message: string): Error & { code?: string } {+ return Object.assign(new Error(message), { code })+}++function hookScopeFromEnter(+ message: HookEnterMessageV1+): HookInvocationScopeV1 {+ return {+ invocationId: message.invocationId,+ callChainId: message.callChainId,+ permissionGeneration: message.permissionGeneration,+ }+}++function hookScopeFromResponse(message: unknown): HookInvocationScopeV1 | null {+ if (typeof message !== 'object' || message === null) return null+ const candidate = message as Record<string, unknown>+ if (+ typeof candidate.invocationId !== 'string' ||+ typeof candidate.callChainId !== 'string' ||+ typeof candidate.permissionGeneration !== 'number'+ ) {+ return null+ }+ return {+ invocationId: candidate.invocationId,+ callChainId: candidate.callChainId,+ permissionGeneration: candidate.permissionGeneration,+ }+}++function optionalHookScopeMatches(+ left: HookInvocationScopeV1 | null,+ right: HookInvocationScopeV1 | null+): boolean {+ if (!left || !right) return left === right+ return sameHookScope(left, right)+}++function commandScopeFromMessage(+ message: unknown+): CommandInvocationScopeV1 | null {+ if (typeof message !== 'object' || message === null) return null+ const candidate = (message as { commandScope?: unknown }).commandScope+ if (typeof candidate !== 'object' || candidate === null) return null+ const parsed = candidate as CommandInvocationScopeV1+ if (+ !Number.isSafeInteger(parsed.commandInvocationId) ||+ parsed.commandInvocationId <= 0 ||+ typeof parsed.callChain?.id !== 'string' ||+ !Array.isArray(parsed.callChain.plugins)+ ) {+ return null+ }+ return parsed+}++function optionalCommandScopeMatches(+ left: CommandInvocationScopeV1 | null,+ right: CommandInvocationScopeV1 | null+): boolean {+ if (!left || !right) return left === right+ return (+ left.commandInvocationId === right.commandInvocationId &&+ left.callChain.id === right.callChain.id &&+ left.callChain.plugins.length === right.callChain.plugins.length &&+ left.callChain.plugins.every(+ (pluginId, index) => pluginId === right.callChain.plugins[index]+ )+ )+}++function sameHookScope(+ left: HookInvocationScopeV1,+ right: HookInvocationScopeV1+): boolean {+ return (+ left.invocationId === right.invocationId &&+ left.callChainId === right.callChainId &&+ left.permissionGeneration === right.permissionGeneration+ )+}++function withGuestCallbackScope<T>(+ scope: GuestCallbackScope,+ callback: () => T+): T {+ const previous = guestCallbackScope+ guestCallbackScope = scope+ try {+ return callback()+ } finally {+ guestCallbackScope = previous+ }+}++function disposeVmCallResult(+ result: ReturnType<QuickJSContext['callFunction']>+): void {+ if (result.error) result.error.dispose()+ else result.value.dispose()+}++function vmSameValue(+ vm: QuickJSContext,+ left: QuickJSHandle,+ right: QuickJSHandle+): boolean {+ const objectHandle = vm.getProp(vm.global, 'Object')+ const isHandle = vm.getProp(objectHandle, 'is')+ const result = vm.callFunction(isHandle, objectHandle, left, right)+ isHandle.dispose()+ objectHandle.dispose()+ if (result.error) {+ result.error.dispose()+ return false+ }+ const equal = vm.dump(result.value) === true+ result.value.dispose()+ return equal+}+// makeEffectfulNs: builds a QuickJS namespace object for a given capability// where every listed method is effectful (calls assertEffectfulAllowed then// callHost, returning a Promise-handle to the plugin).@@ -879,10 +1572,9 @@ function injectPluginApi(vm: QuickJSContext, init: BridgeInitMessage): void {// ── commands ───────────────────────────────────────────────────────────// commands.register(id, fn): registration-only — stores fn locally.- // commands.execute(id, args): effectful.- // Own-namespace (id starts with `${pluginId}.`): dispatch locally to- // the stored handler without a bridge round-trip.- // Cross-plugin: bridge call.+ // commands.execute(id, args): effectful. Self-command calls are rejected+ // before any local handler or Host queue can run; cross-plugin calls bridge+ // through the Host-owned command graph and its immutable call chain.const commands = vm.newObject()const regF = vm.newFunction('register', (idH, fnH) => {@@ -905,49 +1597,17 @@ function injectPluginApi(vm: QuickJSContext, init: BridgeInitMessage): void {const id = vm.dump(idH) as stringconst args = argsH !== undefined ? vm.dump(argsH) : undefined- // Own-namespace: call the local handler directly.+ // Self re-entry would deadlock behind this plugin's current lane owner if+ // routed through the Host, and direct local dispatch would bypass the+ // shared lane/call-chain policy. Reject it before either can happen.if (id.startsWith(`${pluginId}.`)) {- const handler = registeredCommands.get(id)- if (!handler) {- const deferred = vm.newPromise()- const errH = vm.newError(`command not found: ${id}`)- const codeH = vm.newString('plugin.commands.not_found')- vm.setProp(errH, 'code', codeH)- codeH.dispose()- deferred.reject(errH)- errH.dispose()- deferred.settled.then(() => vm.runtime.executePendingJobs())- return deferred.handle- }const deferred = vm.newPromise()- const argsHandle = jsValueToVmHandle(vm, args)- const callResult = vm.callFunction(handler, vm.undefined, argsHandle)- argsHandle.dispose()- if (callResult.error) {- const err = vm.dump(callResult.error)- callResult.error.dispose()- const msg = vmErrorMessage(err)- const errH = vm.newError(msg)- deferred.reject(errH)- errH.dispose()- deferred.settled.then(() => vm.runtime.executePendingJobs())- return deferred.handle- }- // Handler may return a Promise or a plain value.- const retResolved = vm.resolvePromise(callResult.value)- callResult.value.dispose()- retResolved.then((settled) => {- vm.runtime.executePendingJobs()- if (settled.error) {- const errH = settled.error- deferred.reject(errH)- errH.dispose()- } else {- deferred.resolve(settled.value)- settled.value.dispose()- }- vm.runtime.executePendingJobs()- })+ const errH = vm.newError('plugin.runtime.reentrant_call')+ const codeH = vm.newString('plugin.runtime.reentrant_call')+ vm.setProp(errH, 'code', codeH)+ codeH.dispose()+ deferred.reject(errH)+ errH.dispose()deferred.settled.then(() => vm.runtime.executePendingJobs())return deferred.handle}@@ -1025,18 +1685,6 @@ function injectPluginApi(vm: QuickJSContext, init: BridgeInitMessage): void {vm.setProp(api, 'storage', storage)storage.dispose()- // ── metadata ───────────────────────────────────────────────────────────- const metadata = makeEffectfulNs(vm, 'metadata', [- 'get',- 'has',- 'getAll',- 'keys',- 'set',- 'delete',- ])- vm.setProp(api, 'metadata', metadata)- metadata.dispose()-// ── crypto ─────────────────────────────────────────────────────────────const crypto = makeEffectfulNs(vm, 'crypto', ['hash',diff --git a/src/core/plugin/install/builtin-moext-smoke.test.ts b/src/core/plugin/install/builtin-moext-smoke.test.tsindex 99474345..9b9c6229 100644--- a/src/core/plugin/install/builtin-moext-smoke.test.ts+++ b/src/core/plugin/install/builtin-moext-smoke.test.ts@@ -1,7 +1,9 @@-import { mkdtempSync, readFileSync, rmSync } from 'node:fs'+import { createHash } from 'node:crypto'+import { existsSync, mkdtempSync, readFileSync, rmSync } from 'node:fs'import os from 'node:os'import path from 'node:path'import { describe, expect, it } from 'vitest'+import { verifyBuiltinSignature } from '../update/signature'import { extractMoext } from './moext-reader'const ROOT = path.resolve(__dirname, '../../../..')@@ -10,10 +12,45 @@ const MOEXT_DIR = path.join(ROOT, 'dist/builtin-moext')const lock = JSON.parse(readFileSync(path.join(ROOT, 'scripts/builtins.lock.json'), 'utf8')-) as { plugins: Record<string, { version: string; file: string }> }+) as {+ plugins: Record<+ string,+ { version: string; file: string; sha256: string; size: number }+ >+}++function exactArtifactPath(file: string): string {+ const sourceDir = process.env.MOTRIX_BUILTIN_ARTIFACT_DIR+ return path.join(sourceDir ?? MOEXT_DIR, file)+}++function exactSignaturePath(entry: { file: string; sha256: string }): string {+ const sourceDir = process.env.MOTRIX_BUILTIN_ARTIFACT_DIR+ if (sourceDir) return path.join(sourceDir, `${entry.file}.sig`)+ return path.join(+ ROOT,+ 'node_modules/.cache/motrix-builtins',+ `${entry.sha256}.moext.sig`+ )+}describe('builtin .moext files extract via PluginInstaller path', () => {for (const [id, entry] of Object.entries(lock.plugins)) {+ it(`${entry.file} is the exact lock-pinned, Ed25519-signed release artifact`, () => {+ const artifactPath = exactArtifactPath(entry.file)+ const signaturePath = exactSignaturePath(entry)+ expect(existsSync(artifactPath), artifactPath).toBe(true)+ expect(existsSync(signaturePath), signaturePath).toBe(true)++ const bytes = readFileSync(artifactPath)+ const signature = readFileSync(signaturePath, 'utf8').trim()+ expect(bytes.byteLength).toBe(entry.size)+ expect(createHash('sha256').update(bytes).digest('hex')).toBe(+ entry.sha256+ )+ expect(verifyBuiltinSignature(bytes, signature)).toBe(true)+ })+it(`${entry.file} unpacks with manifest + dist/plugin.js`, async () => {const dest = mkdtempSync(path.join(os.tmpdir(), 'moext-smoke-'))try {diff --git a/src/core/plugin/install/e2e-install.test.ts b/src/core/plugin/install/e2e-install.test.tsindex f6f8cd85..5c04d192 100644--- a/src/core/plugin/install/e2e-install.test.ts+++ b/src/core/plugin/install/e2e-install.test.ts@@ -322,6 +322,91 @@ describe('PluginInstaller e2e', () => {expect(onDisk).toBe('console.log(2);')})+ it('supersedes the prior executable after the reversible upgrade swap', async () => {+ const v1 = await writeMoext(path.join(inputDir, 'v1.moext'), manifestJSON())+ const { stagingId: id1 } = await installer.stage(v1, {+ type: 'github',+ spec: 'example/test',+ })+ await installer.commit(id1, {})++ const supersede = vi.fn(async () => {+ expect(+ await readFile(+ path.join(pluginsDir, 'example.test', 'dist/plugin.js'),+ 'utf8'+ )+ ).toBe('console.log(2);')+ return 1+ })+ installer.bindRetentionSink({+ supersede,+ pluginUnavailable: vi.fn(async () => 0),+ })+ const v2 = await writeMoext(+ path.join(inputDir, 'v2.moext'),+ manifestJSON({ permissions: ['http'], version: '1.1.0' }),+ Buffer.from('console.log(2);', 'utf8')+ )+ const staged = await installer.stage(v2, {+ type: 'github',+ spec: 'example/test',+ })++ await installer.commit(staged.stagingId, {})++ expect(supersede).toHaveBeenCalledExactlyOnceWith(+ {+ pluginId: 'example.test',+ version: '1.0.0',+ digest: createHash('sha256').update('console.log(1);').digest('hex'),+ },+ expect.any(Number)+ )+ expect(+ await readFile(+ path.join(pluginsDir, 'example.test', 'dist/plugin.js'),+ 'utf8'+ )+ ).toBe('console.log(2);')+ })++ it('keeps the old executable installed when retention supersede fails', async () => {+ const v1 = await writeMoext(path.join(inputDir, 'v1.moext'), manifestJSON())+ const { stagingId: id1 } = await installer.stage(v1, {+ type: 'github',+ spec: 'example/test',+ })+ await installer.commit(id1, {})+ const retentionError = new Error('retention unavailable')+ installer.bindRetentionSink({+ supersede: vi.fn(async () => Promise.reject(retentionError)),+ pluginUnavailable: vi.fn(async () => 0),+ })+ const v2 = await writeMoext(+ path.join(inputDir, 'v2.moext'),+ manifestJSON({ permissions: ['http'], version: '1.1.0' }),+ Buffer.from('console.log(2);', 'utf8')+ )+ const staged = await installer.stage(v2, {+ type: 'github',+ spec: 'example/test',+ })++ await expect(installer.commit(staged.stagingId, {})).rejects.toBe(+ retentionError+ )+ expect(+ await readFile(+ path.join(pluginsDir, 'example.test', 'dist/plugin.js'),+ 'utf8'+ )+ ).toBe('console.log(1);')+ expect(registry.policySnapshot('example.test')).toMatchObject({+ version: '1.0.0',+ })+ })+it('upgrade with new permission: consent payload contains permissionsAdded', async () => {const v1 = await writeMoext(path.join(inputDir, 'v1.moext'),@@ -562,6 +647,39 @@ describe('PluginInstaller e2e', () => {expect(existsSync(path.join(pluginsDir, 'example.test'))).toBe(false)})+ it('keeps plugin data and directory when uninstall retention fails', async () => {+ const moext = await writeMoext(+ path.join(inputDir, 'v1.moext'),+ manifestJSON()+ )+ const { stagingId } = await installer.stage(moext, {+ type: 'github',+ spec: 'example/test',+ })+ await installer.commit(stagingId, {})+ const retentionError = new Error('retention unavailable')+ const pluginUnavailable = vi.fn(async () => Promise.reject(retentionError))+ installer.bindRetentionSink({+ supersede: vi.fn(async () => 0),+ pluginUnavailable,+ })++ await expect(installer.uninstall('example.test')).rejects.toBe(+ retentionError+ )++ expect(pluginUnavailable).toHaveBeenCalledExactlyOnceWith(+ 'example.test',+ 'uninstalled',+ expect.any(Number)+ )+ expect(stateStore.get('example.test')).toBeDefined()+ expect(calls.storageDeleteAll).toEqual([])+ expect(calls.metadataDeleteAllForPlugin).toEqual([])+ expect(calls.cookieJarsCleared).toEqual([])+ expect(existsSync(path.join(pluginsDir, 'example.test'))).toBe(true)+ })+it('uninstall rejects traversal before touching state or files', async () => {const sentinel = path.join(tmp, 'keep.txt')await writeFile(sentinel, 'keep')diff --git a/src/core/plugin/install/plugin-installer.ts b/src/core/plugin/install/plugin-installer.tsindex 09fdfca1..bc1923ee 100644--- a/src/core/plugin/install/plugin-installer.ts+++ b/src/core/plugin/install/plugin-installer.ts@@ -14,7 +14,7 @@// row → purge plugin_storage + plugin_task_metadata + plugin_cookie_jar →// remove the install directory → refresh registry.-import { randomUUID } from 'node:crypto'+import { createHash, randomUUID } from 'node:crypto'import { mkdir, readFile, rename, rm, writeFile } from 'node:fs/promises'import path from 'node:path'import { FALLBACK_LOCALE } from '@shared/constants/locales'@@ -37,6 +37,7 @@ import {import { parseManifest } from '../manifest/parse'import { resolveInsidePluginDir } from '../manifest/path-safety'import type { PluginRegistry } from '../plugin-registry'+import type { PluginExecutableIdentity } from '../post/delivery-types'import type { PluginStateStore } from '../state/plugin-state-store'import { buildConsentPayload } from './consent-payload'import { ffmpegSatisfies } from './ffmpeg-semver'@@ -80,6 +81,23 @@ export interface CommandSchemaCacheLike {export interface PluginRuntimeHostLike {isQuiescent(pluginId: string): booleandeactivate(pluginId: string): Promise<void>+ applyPolicyMutation?<T>(+ pluginId: string,+ publish: () => Promise<T> | T+ ): Promise<T>+}++/**+ * Durable post-delivery lifecycle participant. Production binds the shared+ * PluginHookRuntime after both the installer and Hook runtime exist.+ */+export interface PluginInstallerRetentionSink {+ supersede(executable: PluginExecutableIdentity, at: number): Promise<number>+ pluginUnavailable(+ pluginId: string,+ reason: 'uninstalled',+ at: number+ ): Promise<number>}export interface PluginInstallerOptions {@@ -209,9 +227,17 @@ function sameInstallRecord(export class PluginInstaller {private readonly pending = new Map<string, StagedInstall>()private readonly mutationTails = new Map<string, Promise<void>>()+ private retentionSink?: PluginInstallerRetentionSinkconstructor(private readonly opts: PluginInstallerOptions) {}+ bindRetentionSink(sink: PluginInstallerRetentionSink): void {+ if (this.retentionSink && this.retentionSink !== sink) {+ throw new Error('plugin installer retention sink is already bound')+ }+ this.retentionSink = sink+ }+async stage(moextPath: string,sourceInput: SourceInput,@@ -430,126 +456,141 @@ export class PluginInstaller {)}- return this.withPluginMutation(staged.pluginId, async () => {- // A second commit may have consumed this staging entry while this call- // waited for the per-plugin mutation lock.- if (this.pending.get(stagingId) !== staged) {- throw new AppError(- ErrorCode.PluginManifestInvalid,- 'plugin.install.staging_not_found'- )- }-- const finalDir = resolvePluginInstallDir(- this.opts.pluginsDir,- staged.pluginId- )- const prev = await readInstallRecord(finalDir)- if (!sameInstallRecord(prev, staged.previousRecord)) {- throw new AppError(- ErrorCode.PluginManifestInvalid,- 'plugin.install.changed_since_staging'- )- }-- const record: InstallRecord = {- version: 1,- pluginId: staged.pluginId,- source: staged.source,- grants,- consentSnapshot: {- permissions: staged.newManifest.permissions,- optionalPermissions: staged.newManifest.optionalPermissions ?? [],- invokesCommands: staged.newManifest.invokesCommands ?? [],- publicCommands: computePublicCommandHashes(staged.newManifest),- requestedHeapMB: staged.newManifest.requestedHeapMB ?? 32,- enginesMotrix: staged.newManifest.engines.motrix,- hostPermissions: staged.newManifest.hostPermissions ?? [],- },- }- const commitDir = path.join(- this.opts.pluginsDir,- '_staging',- `c_${randomUUID()}`- )- let backupDir: string | null = null- let swapped = false-- try {- // Never commit the long-lived staging tree: it was visible while the- // consent dialog was open. Re-read through one file descriptor, verify- // the staged archive digest, then extract those exact bytes into the- // one-shot swap directory.- const loadedMoext = await loadMoext(staged.archivePath)- if (loadedMoext.archiveSha256 !== staged.archiveSha256) {+ const liveHost = runtimeHost ?? staged.runtimeHost+ return this.withPluginMutation(staged.pluginId, () =>+ this.withRuntimePolicyMutation(staged.pluginId, liveHost, async () => {+ // A second commit may have consumed this staging entry while this call+ // waited for the per-plugin mutation lock.+ if (this.pending.get(stagingId) !== staged) {throw new AppError(ErrorCode.PluginManifestInvalid,- 'plugin.install.sha256_mismatch'+ 'plugin.install.staging_not_found')}- await extractLoadedMoext(loadedMoext, commitDir)- await writeInstallRecord(commitDir, record)- await mkdir(this.opts.pluginsDir, { recursive: true })-- if (prev) {- // PluginHost.deactivate waits for the worker-side handler, tears- // down the bridge, and terminates the worker before disk changes.- await this.stopRuntime(- staged.pluginId,- runtimeHost ?? staged.runtimeHost++ const finalDir = resolvePluginInstallDir(+ this.opts.pluginsDir,+ staged.pluginId+ )+ const prev = await readInstallRecord(finalDir)+ if (!sameInstallRecord(prev, staged.previousRecord)) {+ throw new AppError(+ ErrorCode.PluginManifestInvalid,+ 'plugin.install.changed_since_staging')- backupDir = `${finalDir}.bak-${randomUUID()}`- await rename(finalDir, backupDir)}- await rename(commitDir, finalDir)- swapped = true- this.installCommandSchemas(staged.pluginId, staged.newManifest)- await this.opts.registry.discover()-- this.pending.delete(stagingId)- await rm(staged.stagingDir, { recursive: true, force: true }).catch(- () => undefined+ const record: InstallRecord = {+ version: 1,+ pluginId: staged.pluginId,+ source: staged.source,+ grants,+ consentSnapshot: {+ permissions: staged.newManifest.permissions,+ optionalPermissions: staged.newManifest.optionalPermissions ?? [],+ invokesCommands: staged.newManifest.invokesCommands ?? [],+ publicCommands: computePublicCommandHashes(staged.newManifest),+ requestedHeapMB: staged.newManifest.requestedHeapMB ?? 32,+ enginesMotrix: staged.newManifest.engines.motrix,+ hostPermissions: staged.newManifest.hostPermissions ?? [],+ },+ }+ const commitDir = path.join(+ this.opts.pluginsDir,+ '_staging',+ `c_${randomUUID()}`)- if (backupDir) {- await rm(backupDir, { recursive: true, force: true }).catch(+ let backupDir: string | null = null+ let swapped = false+ let supersededExecutable: PluginExecutableIdentity | undefined++ try {+ // Never commit the long-lived staging tree: it was visible while the+ // consent dialog was open. Re-read through one file descriptor, verify+ // the staged archive digest, then extract those exact bytes into the+ // one-shot swap directory.+ const loadedMoext = await loadMoext(staged.archivePath)+ if (loadedMoext.archiveSha256 !== staged.archiveSha256) {+ throw new AppError(+ ErrorCode.PluginManifestInvalid,+ 'plugin.install.sha256_mismatch'+ )+ }+ await extractLoadedMoext(loadedMoext, commitDir)+ await writeInstallRecord(commitDir, record)+ await mkdir(this.opts.pluginsDir, { recursive: true })++ if (prev) {+ // PluginHost.deactivate waits for the worker-side handler, tears+ // down the bridge, and terminates the worker before disk changes.+ await this.stopRuntime(staged.pluginId, liveHost)+ supersededExecutable = await this.executableSupersededBy(+ staged,+ commitDir+ )+ backupDir = `${finalDir}.bak-${randomUUID()}`+ await rename(finalDir, backupDir)+ }+ await rename(commitDir, finalDir)+ swapped = true++ this.installCommandSchemas(staged.pluginId, staged.newManifest)+ await this.opts.registry.discover()+ if (supersededExecutable) {+ // Admission remains closed until this succeeds. If durable+ // terminalization fails, the catch below restores the old bundle+ // and registry identity, so no delivery is lost for an upgrade+ // that did not commit.+ await this.retentionSink?.supersede(+ supersededExecutable,+ Date.now()+ )+ }++ this.pending.delete(stagingId)+ await rm(staged.stagingDir, { recursive: true, force: true }).catch(() => undefined)- }- return { pluginId: staged.pluginId }- } catch (error) {- if (backupDir) {- if (swapped) {+ if (backupDir) {+ await rm(backupDir, { recursive: true, force: true }).catch(+ () => undefined+ )+ }+ return { pluginId: staged.pluginId }+ } catch (error) {+ if (backupDir) {+ if (swapped) {+ await rm(finalDir, { recursive: true, force: true }).catch(+ () => undefined+ )+ }+ await rename(backupDir, finalDir).catch(() => undefined)+ } else if (swapped) {await rm(finalDir, { recursive: true, force: true }).catch(() => undefined)}- await rename(backupDir, finalDir).catch(() => undefined)- } else if (swapped) {- await rm(finalDir, { recursive: true, force: true }).catch(+ if (backupDir || swapped) {+ await this.opts.registry+ .discover()+ .then(() => {+ const restored = this.opts.registry.get(staged.pluginId)+ if (restored) {+ this.installCommandSchemas(staged.pluginId, restored.manifest)+ } else if (this.opts.schemaCache) {+ this.opts.schemaCache.uninstall(staged.pluginId)+ }+ })+ .catch(() => undefined)+ }+ throw error+ } finally {+ await rm(commitDir, { recursive: true, force: true }).catch(() => undefined)}- if (backupDir || swapped) {- await this.opts.registry- .discover()- .then(() => {- const restored = this.opts.registry.get(staged.pluginId)- if (restored) {- this.installCommandSchemas(staged.pluginId, restored.manifest)- } else if (this.opts.schemaCache) {- this.opts.schemaCache.uninstall(staged.pluginId)- }- })- .catch(() => undefined)- }- throw error- } finally {- await rm(commitDir, { recursive: true, force: true }).catch(- () => undefined- )- }- })+ })+ )}async cancel(stagingId: string): Promise<void> {@@ -567,27 +608,57 @@ export class PluginInstaller {runtimeHost?: PluginRuntimeHostLike): Promise<void> {const finalDir = resolvePluginInstallDir(this.opts.pluginsDir, pluginId)- await this.withPluginMutation(pluginId, async () => {- // A worker retaining old code must not survive removal of its durable- // files. Unlike handler failures (which PluginHost handles internally),- // a bridge-disposal failure aborts the uninstall.- if (runtimeHost) {- await this.stopRuntime(pluginId, runtimeHost)- } else {- // Preserve the legacy direct-installer behavior for embedders that do- // not yet supply a PluginHost. Production IPC always passes it.- await this.opts.capabilityHost.lifecycle- .runDeactivate(pluginId)- .catch(() => undefined)- }- this.opts.stateStore.remove(pluginId)- await this.opts.capabilityHost.storage.deleteAll(pluginId)- await this.opts.capabilityHost.metadata.deleteAllForPlugin(pluginId)- this.opts.capabilityHost.cookieJarFor(pluginId).clear()- await rm(finalDir, { recursive: true, force: true })- if (this.opts.schemaCache) this.opts.schemaCache.uninstall(pluginId)- await this.opts.registry.discover()- })+ await this.withPluginMutation(pluginId, () =>+ this.withRuntimePolicyMutation(pluginId, runtimeHost, async () => {+ // A worker retaining old code must not survive removal of its durable+ // files. Unlike handler failures (which PluginHost handles internally),+ // a bridge-disposal failure aborts the uninstall.+ if (runtimeHost) {+ await this.stopRuntime(pluginId, runtimeHost)+ } else {+ // Preserve the legacy direct-installer behavior for embedders that do+ // not yet supply a PluginHost. Production IPC always passes it.+ await this.opts.capabilityHost.lifecycle+ .runDeactivate(pluginId)+ .catch(() => undefined)+ }+ const removedDir = path.join(+ this.opts.pluginsDir,+ '_staging',+ `u_${randomUUID()}`+ )+ await mkdir(path.dirname(removedDir), { recursive: true })+ let bundleMoved = false+ try {+ await rename(finalDir, removedDir)+ bundleMoved = true+ } catch (error) {+ if ((error as NodeJS.ErrnoException).code !== 'ENOENT') throw error+ }+ try {+ await this.opts.registry.discover()+ await this.retentionSink?.pluginUnavailable(+ pluginId,+ 'uninstalled',+ Date.now()+ )+ } catch (error) {+ if (bundleMoved) {+ await rename(removedDir, finalDir)+ await this.opts.registry.discover()+ }+ throw error+ }+ this.opts.stateStore.remove(pluginId)+ await this.opts.capabilityHost.storage.deleteAll(pluginId)+ await this.opts.capabilityHost.metadata.deleteAllForPlugin(pluginId)+ this.opts.capabilityHost.cookieJarFor(pluginId).clear()+ if (bundleMoved) {+ await rm(removedDir, { recursive: true, force: true })+ }+ if (this.opts.schemaCache) this.opts.schemaCache.uninstall(pluginId)+ })+ )}private installCommandSchemas(@@ -606,6 +677,42 @@ export class PluginInstaller {)}+ private async executableSupersededBy(+ staged: StagedInstall,+ commitDir: string+ ): Promise<PluginExecutableIdentity | undefined> {+ const sink = this.retentionSink+ if (!sink) return undefined+ const previous = this.opts.registry.policySnapshot(staged.pluginId)+ if (!previous?.executableDigest) {+ throw new AppError(+ ErrorCode.PluginRuntimeFault,+ 'plugin.install.previous_executable_identity_missing'+ )+ }+ const nextEntry = resolveInsidePluginDir(commitDir, staged.newManifest.main)+ if (!nextEntry) {+ throw new AppError(+ ErrorCode.PluginManifestInvalid,+ 'plugin.install.main_outside_plugin_root'+ )+ }+ const nextDigest = createHash('sha256')+ .update(await readFile(nextEntry))+ .digest('hex')+ if (+ previous.version === staged.newManifest.version &&+ previous.executableDigest === nextDigest+ ) {+ return undefined+ }+ return {+ pluginId: staged.pluginId,+ version: previous.version,+ digest: previous.executableDigest,+ }+ }+private async stopRuntime(pluginId: string,runtimeHost?: PluginRuntimeHostLike@@ -623,6 +730,16 @@ export class PluginInstaller {}}+ private withRuntimePolicyMutation<T>(+ pluginId: string,+ runtimeHost: PluginRuntimeHostLike | undefined,+ operation: () => Promise<T>+ ): Promise<T> {+ return runtimeHost?.applyPolicyMutation+ ? runtimeHost.applyPolicyMutation(pluginId, operation)+ : operation()+ }+private async withPluginMutation<T>(pluginId: string,operation: () => Promise<T>diff --git a/src/core/plugin/permissions/host-pattern.corpus.ts b/src/core/plugin/permissions/host-pattern.corpus.tsnew file mode 100644index 00000000..7d880304--- /dev/null+++ b/src/core/plugin/permissions/host-pattern.corpus.ts@@ -0,0 +1,101 @@+export interface HostPatternConformanceCase {+ name: string+ pattern: string+ url: string+ expected: boolean+}++/** Shared matcher corpus consumed by every policy seam. */+export const HOST_PATTERN_CONFORMANCE_CASES: readonly HostPatternConformanceCase[] =+ [+ {+ name: 'all urls includes HTTP',+ pattern: '<all_urls>',+ url: 'http://example.test/a',+ expected: true,+ },+ {+ name: 'all urls excludes FTP',+ pattern: '<all_urls>',+ url: 'ftp://example.test/a',+ expected: false,+ },+ {+ name: 'exact host rejects suffix confusion',+ pattern: 'https://allowed.example/*',+ url: 'https://allowed.example.evil/a',+ expected: false,+ },+ {+ name: 'path text is not an authority match',+ pattern: 'https://allowed.example/*',+ url: 'https://evil.example/allowed.example/a',+ expected: false,+ },+ {+ name: 'subdomain wildcard includes the suffix host',+ pattern: '*://*.example.test/*',+ url: 'https://example.test/a',+ expected: true,+ },+ {+ name: 'subdomain wildcard includes a real subdomain and arbitrary port',+ pattern: '*://*.example.test/*',+ url: 'http://api.example.test:49152/a',+ expected: true,+ },+ {+ name: 'exact manifest host matches an arbitrary explicit port',+ pattern: 'https://example.test/*',+ url: 'https://example.test:8443/a',+ expected: true,+ },+ {+ name: 'non-empty credentials fail closed',+ pattern: 'https://example.test/*',+ url: 'https://user:[email protected]/a',+ expected: false,+ },+ {+ name: 'empty userinfo fails closed before URL canonicalization',+ pattern: 'https://example.test/*',+ url: 'https://@example.test/a',+ expected: false,+ },+ {+ name: 'empty username and password fail closed',+ pattern: 'https://example.test/*',+ url: 'https://:@example.test/a',+ expected: false,+ },+ {+ name: 'IDNA and a trailing root dot canonicalize',+ pattern: 'https://bücher.example/*',+ url: 'https://xn--bcher-kva.example./a',+ expected: true,+ },+ {+ name: 'bracketed IPv6 matches exactly with an arbitrary port',+ pattern: 'http://[::1]/*',+ url: 'http://[::1]:39100/a',+ expected: true,+ },+ {+ name: 'query participates in path matching while fragment does not',+ pattern: 'https://example.test/download?token=*',+ url: 'https://example.test/download?token=abc#ignored',+ expected: true,+ },+ {+ name: 'percent-escape hex case normalizes without decoding',+ pattern: 'https://example.test/a%2Fb',+ url: 'https://example.test/a%2fb',+ expected: true,+ },+ {+ name: 'an encoded slash does not become a path separator',+ pattern: 'https://example.test/a/b',+ url: 'https://example.test/a%2fb',+ expected: false,+ },+ ]diff --git a/src/core/plugin/permissions/host-pattern.test.ts b/src/core/plugin/permissions/host-pattern.test.tsnew file mode 100644index 00000000..c5c0f381--- /dev/null+++ b/src/core/plugin/permissions/host-pattern.test.ts@@ -0,0 +1,36 @@+import { describe, expect, it } from 'vitest'+import {+ matchesAnyHostPermission,+ matchesHostPermission,+ parseHostPermissionPattern,+} from './host-pattern'+import { HOST_PATTERN_CONFORMANCE_CASES } from './host-pattern.corpus'++describe('manifest-v1 host permissions', () => {+ for (const testCase of HOST_PATTERN_CONFORMANCE_CASES) {+ it(testCase.name, () => {+ expect(matchesHostPermission(testCase.pattern, testCase.url)).toBe(+ testCase.expected+ )+ })+ }++ it.each([+ 'file://example.test/*',+ 'https://example.test:443/*',+ 'https://[email protected]/*',+ 'https://example.test?confused/*',+ 'https://example.test#confused/*',+ 'https://%65xample.test/*',+ 'https://*.*.example.test/*',+ 'https://[::*]/*',+ 'https://example.test',+ 'not a pattern',+ ])('rejects invalid pattern %s', (pattern) => {+ expect(parseHostPermissionPattern(pattern)).toBeUndefined()+ })++ it('an empty pattern set denies', () => {+ expect(matchesAnyHostPermission([], 'https://example.test/a')).toBe(false)+ })+})diff --git a/src/core/plugin/permissions/host-pattern.ts b/src/core/plugin/permissions/host-pattern.tsnew file mode 100644index 00000000..987d3d28--- /dev/null+++ b/src/core/plugin/permissions/host-pattern.ts@@ -0,0 +1,196 @@+const HTTP_PROTOCOLS = new Set(['http:', 'https:'])++type PatternScheme = 'http:' | 'https:' | '*'++type PatternHost =+ | { kind: 'any' }+ | { kind: 'exact'; value: string }+ | { kind: 'subdomain'; value: string }++export interface HostPermissionPattern {+ scheme: PatternScheme+ host: PatternHost+ pathExpression: RegExp+}++const parsedPatternCache = new Map<string, HostPermissionPattern | null>()++/**+ * Parse the manifest-v1 browser match-pattern subset used by Motrix.+ * Invalid patterns fail closed instead of being treated as regular+ * expressions over an untrusted URL string.+ */+export function parseHostPermissionPattern(+ pattern: string+): HostPermissionPattern | undefined {+ const cached = parsedPatternCache.get(pattern)+ if (cached !== undefined) return cached ?? undefined+ const parsed = parseHostPermissionPatternUncached(pattern)+ parsedPatternCache.set(pattern, parsed ?? null)+ return parsed+}++function parseHostPermissionPatternUncached(+ pattern: string+): HostPermissionPattern | undefined {+ if (pattern === '<all_urls>') {+ return {+ scheme: '*',+ host: { kind: 'any' },+ pathExpression: /^\/.*$/,+ }+ }++ const separator = pattern.indexOf('://')+ if (separator <= 0) return undefined+ const rawScheme = pattern.slice(0, separator)+ const scheme: PatternScheme | undefined =+ rawScheme === '*'+ ? '*'+ : rawScheme === 'http' || rawScheme === 'https'+ ? `${rawScheme}:`+ : undefined+ if (!scheme) return undefined++ const authorityAndPath = pattern.slice(separator + 3)+ const pathStart = authorityAndPath.indexOf('/')+ if (pathStart < 0) return undefined+ const rawHost = authorityAndPath.slice(0, pathStart)+ const rawPath = authorityAndPath.slice(pathStart)+ if (+ rawHost.length === 0 ||+ rawPath.length === 0 ||+ rawPath.includes('#') ||+ /[\s\\@?#%]/.test(rawHost)+ ) {+ return undefined+ }++ const host = parsePatternHost(rawHost)+ if (!host) return undefined++ const normalizedPath = uppercasePercentEscapes(rawPath)+ const escaped = normalizedPath.replace(/[.+?^${}()|[\]\\]/g, '\\$&')+ return {+ scheme,+ host,+ pathExpression: new RegExp(`^${escaped.replace(/\*/g, '.*')}$`),+ }+}++export function matchesHostPermission(+ pattern: string,+ rawUrl: string+): boolean {+ const parsedPattern = parseHostPermissionPattern(pattern)+ if (!parsedPattern) return false+ // WHATWG URL drops syntactically present empty userinfo (`https://@h/`).+ // Inspect the raw authority first so every credential form fails closed.+ if (hasAuthorityUserInfo(rawUrl)) return false++ let url: URL+ try {+ url = new URL(rawUrl)+ } catch {+ return false+ }+ if (+ !HTTP_PROTOCOLS.has(url.protocol) ||+ url.username.length > 0 ||+ url.password.length > 0+ ) {+ return false+ }+ if (parsedPattern.scheme !== '*' && parsedPattern.scheme !== url.protocol) {+ return false+ }++ const host = canonicalUrlHost(url.hostname)+ if (!host || !matchesPatternHost(parsedPattern.host, host)) return false++ const pathAndQuery = uppercasePercentEscapes(`${url.pathname}${url.search}`)+ return parsedPattern.pathExpression.test(pathAndQuery)+}++/**+ * Detect syntactically-present userinfo before WHATWG URL normalization can+ * erase an empty username/password. Accepts both absolute URLs and+ * scheme-relative references such as redirect `Location: //@host/path`.+ */+export function hasAuthorityUserInfo(rawUrl: string): boolean {+ const trimmed = rawUrl.trimStart()+ const schemeAuthority = /^[a-z][a-z\d+.-]*:\/\//i.exec(trimmed)+ const authorityStart = schemeAuthority+ ? schemeAuthority[0].length+ : trimmed.startsWith('//')+ ? 2+ : -1+ if (authorityStart < 0) return false+ let authorityEnd = trimmed.length+ for (const separator of ['/', '?', '#', '\\']) {+ const index = trimmed.indexOf(separator, authorityStart)+ if (index >= 0 && index < authorityEnd) authorityEnd = index+ }+ return trimmed.slice(authorityStart, authorityEnd).includes('@')+}++export function matchesAnyHostPermission(+ patterns: ReadonlyArray<string> | undefined,+ rawUrl: string+): boolean {+ return (patterns ?? []).some((pattern) =>+ matchesHostPermission(pattern, rawUrl)+ )+}++function parsePatternHost(rawHost: string): PatternHost | undefined {+ if (rawHost === '*') return { kind: 'any' }++ if (rawHost.startsWith('*.')) {+ const suffix = rawHost.slice(2)+ if (suffix.includes('*')) return undefined+ const value = canonicalManifestHost(suffix)+ if (!value || value.startsWith('[')) return undefined+ return { kind: 'subdomain', value }+ }++ if (rawHost.includes('*')) return undefined+ const value = canonicalManifestHost(rawHost)+ return value ? { kind: 'exact', value } : undefined+}++function canonicalManifestHost(rawHost: string): string | undefined {+ // Manifest v1 intentionally has no port grammar. A colon is valid only+ // inside a bracketed IPv6 literal.+ if (+ rawHost.includes(':') &&+ !(rawHost.startsWith('[') && rawHost.endsWith(']'))+ ) {+ return undefined+ }+ try {+ const parsed = new URL(`http://${rawHost}/`)+ if (parsed.username || parsed.password || parsed.port) return undefined+ return canonicalUrlHost(parsed.hostname)+ } catch {+ return undefined+ }+}++function canonicalUrlHost(hostname: string): string | undefined {+ if (hostname.length === 0) return undefined+ const lower = hostname.toLowerCase()+ if (lower.startsWith('[')) return lower.endsWith(']') ? lower : undefined+ const withoutTrailingDot = lower.endsWith('.') ? lower.slice(0, -1) : lower+ return withoutTrailingDot.length > 0 ? withoutTrailingDot : undefined+}++function matchesPatternHost(pattern: PatternHost, host: string): boolean {+ if (pattern.kind === 'any') return true+ if (pattern.kind === 'exact') return pattern.value === host+ return host === pattern.value || host.endsWith(`.${pattern.value}`)+}++function uppercasePercentEscapes(value: string): string {+ return value.replace(/%[0-9a-f]{2}/gi, (sequence) => sequence.toUpperCase())+}diff --git a/src/core/plugin/plugin-registry.test.ts b/src/core/plugin/plugin-registry.test.tsindex 1f8609e5..03c81468 100644--- a/src/core/plugin/plugin-registry.test.ts+++ b/src/core/plugin/plugin-registry.test.ts@@ -99,19 +99,18 @@ describe('PluginRegistry', () => {)})- it('discover() removes orphan ffmpeg staging dirs before scanning plugins', async () => {- // Seed an orphan staging dir from a previous (crashed) run.+ it('discover() preserves staging that durable finalize recovery may own', async () => {+ // Seed staging from a previous interrupted run. Registry discovery cannot+ // know whether a finalize journal still references these bytes.const orphanRoot = path.join(dir, 'community', 'alice', 'staging', 't-old')mkdirSync(orphanRoot, { recursive: true })writeFileSync(path.join(orphanRoot, 'leftover.mp4'), 'crashed bytes')- // Verify the orphan exists before discoverexpect(existsSync(orphanRoot)).toBe(true)await reg.discover()- // After discover, the staging tree under <pluginId>/staging is gone- expect(existsSync(orphanRoot)).toBe(false)+ expect(existsSync(orphanRoot)).toBe(true)})it('discovers built-in and community in the same index', async () => {@@ -168,6 +167,42 @@ describe('PluginRegistry', () => {expect(reg.get('alice.one')?.state.enabled).toBe(false)})+ it('advances policy generation only for policy changes, not runtime status', async () => {+ plant(path.join(dir, 'community'), 'alice.one')+ await reg.discover()+ const initial = reg.policyGenerationFor('alice.one')+ expect(initial).toBeGreaterThan(0)++ store.setStatus('alice.one', 'active')+ reg.refreshState('alice.one')+ expect(reg.policyGenerationFor('alice.one')).toBe(initial)++ store.setEnabled('alice.one', false)+ reg.refreshState('alice.one')+ expect(reg.policyGenerationFor('alice.one')).toBe(initial + 1)+ expect(reg.policySnapshot('alice.one')).toMatchObject({+ pluginId: 'alice.one',+ enabled: false,+ generation: initial + 1,+ })+ })++ it('advances policy generation when the exact executable bytes change', async () => {+ plant(path.join(dir, 'community'), 'alice.one')+ await reg.discover()+ const initial = reg.policySnapshot('alice.one')++ writeFileSync(+ path.join(dir, 'community', 'alice.one', 'dist', 'plugin.js'),+ 'export default { changed: true }'+ )+ await reg.discover()++ const changed = reg.policySnapshot('alice.one')+ expect(changed?.generation).toBe((initial?.generation ?? 0) + 1)+ expect(changed?.executableDigest).not.toBe(initial?.executableDigest)+ })+it('refreshState is a no-op for unknown plugin ids', async () => {plant(path.join(dir, 'community'), 'alice.one')await reg.discover()@@ -376,6 +411,10 @@ describe('PluginRegistry', () => {l10n: 'l10n',}))+ writeFileSync(+ path.join(dirPath, 'dist', 'plugin.js'),+ 'export default {}'+ )writeFileSync(path.join(dirPath, 'l10n', 'en-US.json'),JSON.stringify({ name: `${id} EN`, desc: 'english desc' })diff --git a/src/core/plugin/plugin-registry.ts b/src/core/plugin/plugin-registry.tsindex fd54fa00..cda88f79 100644--- a/src/core/plugin/plugin-registry.ts+++ b/src/core/plugin/plugin-registry.ts@@ -1,3 +1,4 @@+import { createHash } from 'node:crypto'import { readdir, readFile, rm } from 'node:fs/promises'import path from 'node:path'import { getLogger } from '@core/logger'@@ -57,6 +58,8 @@ export interface IndexedPlugin {manifest: PluginManifestorigin: 'community' | 'builtin'rootDir: string+ /** SHA-256 of the exact guest entry bytes selected for execution. */+ executableDigest?: stringstate: PluginStateRecord/*** True when this entry was loaded from MOTRIX_PLUGIN_DEV_PATH. Dev plugins@@ -78,6 +81,15 @@ export interface IndexedPlugin {overlay?: { packageUrl: string; recordedAt: number; signature: string }}+export interface PluginPolicySnapshot {+ pluginId: string+ generation: number+ enabled: boolean+ version: string+ rootDir: string+ executableDigest?: string+}+export interface LoadError {pluginDir: stringcode: string@@ -125,6 +137,7 @@ export class PluginRegistry {>()private discoveryTail: Promise<void> = Promise.resolve()private registryRevision = 0+ private readonly policyGenerations = new Map<string, number>()private currentLang: SupportedLocaleconstructor(private readonly opts: PluginRegistryOptions) {@@ -221,6 +234,12 @@ export class PluginRegistry {private async performDiscover(): Promise<void> {this.registryRevision += 1+ const previousPolicy = new Map(+ [...this.byId.entries()].map(([id, entry]) => [+ id,+ executablePolicyFingerprint(entry),+ ])+ )try {try {await FfmpegStaging.cleanupOrphans(this.opts.pluginsDir)@@ -246,11 +265,15 @@ export class PluginRegistry {})const resolved = await this.i18nResolve(manifest, devPath)const state = this.getOrCreateState(resolved.id)+ const executableDigest = await digestFile(+ resolveInsidePluginDir(devPath, resolved.main)+ )this.byId.set(resolved.id, {manifestRaw: manifest,manifest: resolved,origin: 'community',rootDir: devPath,+ executableDigest,state,dev: true,})@@ -261,6 +284,18 @@ export class PluginRegistry {)}}+ const discoveredIds = new Set(this.byId.keys())+ for (const [id, entry] of this.byId) {+ const previous = previousPolicy.get(id)+ if (previous !== executablePolicyFingerprint(entry)) {+ this.bumpPolicyGeneration(id)+ } else if (!this.policyGenerations.has(id)) {+ this.policyGenerations.set(id, 1)+ }+ }+ for (const id of previousPolicy.keys()) {+ if (!discoveredIds.has(id)) this.bumpPolicyGeneration(id)+ }} finally {this.registryRevision += 1}@@ -498,11 +533,15 @@ export class PluginRegistry {}const resolved = await this.i18nResolve(manifest, dir)const state = this.getOrCreateState(resolved.id)+ const executableDigest = await digestFile(+ resolveInsidePluginDir(dir, resolved.main)+ )this.byId.set(resolved.id, {manifestRaw: manifest,manifest: resolved,origin,rootDir: dir,+ executableDigest,state,})} catch (e: unknown) {@@ -657,11 +696,18 @@ export class PluginRegistry {const resolved = await this.i18nResolve(manifest, dir)const state = this.getOrCreateState(resolved.id)+ const executable = await readMoextEntry(bundle, resolved.main)+ if (!executable) {+ log.warn({ dir }, 'overlay bundle missing guest entry; dropped')+ await drop()+ continue+ }this.byId.set(resolved.id, {manifestRaw: manifest,manifest: resolved,origin: 'builtin',rootDir: dir,+ executableDigest: digestBytes(executable),state,overlay: {packageUrl: meta.packageUrl,@@ -709,7 +755,39 @@ export class PluginRegistry {const entry = this.byId.get(pluginId)if (!entry) returnconst fresh = this.opts.stateStore.get(pluginId)- if (fresh) entry.state = fresh+ if (fresh) {+ const enabledChanged = fresh.enabled !== entry.state.enabled+ entry.state = fresh+ if (enabledChanged) this.bumpPolicyGeneration(pluginId)+ }+ }++ /** Current live-policy generation bound to guest admission and deliveries. */+ policyGenerationFor(pluginId: string): number {+ return this.policyGenerations.get(pluginId) ?? 0+ }++ /**+ * Advance a plugin's live-policy generation. Grant and executable mutation+ * barriers call this only after old admission has closed and drained.+ */+ bumpPolicyGeneration(pluginId: string): number {+ const next = (this.policyGenerations.get(pluginId) ?? 0) + 1+ this.policyGenerations.set(pluginId, next)+ return next+ }++ policySnapshot(pluginId: string): PluginPolicySnapshot | undefined {+ const entry = this.byId.get(pluginId)+ if (!entry) return undefined+ return {+ pluginId,+ generation: this.policyGenerationFor(pluginId),+ enabled: entry.state.enabled,+ version: entry.manifest.version,+ rootDir: entry.rootDir,+ executableDigest: entry.executableDigest,+ }}/**@@ -721,17 +799,20 @@ export class PluginRegistry {manifest: PluginManifestorigin: 'community' | 'builtin'enabled: boolean+ executableDigest?: string}> {const out: Array<{manifest: PluginManifestorigin: 'community' | 'builtin'enabled: boolean+ executableDigest?: string}> = []for (const p of this.byId.values()) {out.push({manifest: p.manifest,origin: p.origin,enabled: p.state.enabled,+ executableDigest: p.executableDigest,})}return out@@ -780,6 +861,31 @@ function isValidOverlayMeta()}+function executablePolicyFingerprint(entry: IndexedPlugin): string {+ return JSON.stringify({+ executableDigest: entry.executableDigest ?? null,+ enabled: entry.state.enabled,+ manifest: entry.manifestRaw,+ origin: entry.origin,+ overlaySignature: entry.overlay?.signature ?? null,+ rootDir: entry.rootDir,+ })+}++async function digestFile(filePath: string | null): Promise<string> {+ if (!filePath) {+ throw new AppError(+ ErrorCode.PluginManifestInvalid,+ 'plugin.manifest.main_escapes_dir'+ )+ }+ return digestBytes(await readFile(filePath))+}++function digestBytes(bytes: Uint8Array): string {+ return createHash('sha256').update(bytes).digest('hex')+}+function deriveListSource(p: IndexedPlugin): PluginSource | undefined {if (p.origin === 'builtin') {return p.overlaydiff --git a/src/core/plugin/post/delivery-materializer.test.ts b/src/core/plugin/post/delivery-materializer.test.tsnew file mode 100644index 00000000..d0569033--- /dev/null+++ b/src/core/plugin/post/delivery-materializer.test.ts@@ -0,0 +1,225 @@+import { describe, expect, it } from 'vitest'+import {+ canonicalJson,+ materializePostDeliveries,+} from './delivery-materializer'+import type {+ JsonValue,+ PostDeliveryCandidateSnapshot,+ PostDeliveryEventSnapshot,+} from './delivery-types'++const CANDIDATE: PostDeliveryCandidateSnapshot = {+ hook: 'afterComplete',+ executable: {+ pluginId: 'example.plugin',+ version: '1.2.3',+ digest: 'a'.repeat(64),+ },+ createdGeneration: 7,+ requiredPermissions: ['metadata'],+ createdEffectivePermissions: ['notify', 'metadata', 'metadata'],+}++function event(payload: JsonValue): PostDeliveryEventSnapshot {+ return {+ schemaVersion: 1,+ occurrenceId: 'occ-1',+ taskId: 'task-1',+ occurredAt: 1_000,+ payload,+ }+}++function validPayload(reverseTaskKeys = false): JsonValue {+ const task = reverseTaskKeys+ ? {+ error: null,+ infoHash: null,+ category: null,+ finishedAt: 999,+ updatedAt: 999,+ createdAt: 1,+ fileCount: 1,+ sizeWhenDone: 10,+ uploadedBytes: 0,+ downloadedBytes: 10,+ totalBytes: 10,+ progress: 100,+ filename: 'a.bin',+ saveDir: '/downloads',+ filePath: '/downloads/a.bin',+ status: 'completed',+ kind: 'direct',+ type: 'http',+ name: 'a',+ id: 'task-1',+ schemaVersion: 1,+ }+ : {+ schemaVersion: 1,+ id: 'task-1',+ name: 'a',+ type: 'http',+ kind: 'direct',+ status: 'completed',+ filePath: '/downloads/a.bin',+ saveDir: '/downloads',+ filename: 'a.bin',+ progress: 100,+ totalBytes: 10,+ downloadedBytes: 10,+ uploadedBytes: 0,+ sizeWhenDone: 10,+ fileCount: 1,+ createdAt: 1,+ updatedAt: 999,+ finishedAt: 999,+ category: null,+ infoHash: null,+ error: null,+ }+ return reverseTaskKeys+ ? { filePath: '/downloads/a.bin', task }+ : { task, filePath: '/downloads/a.bin' }+}++describe('canonicalJson', () => {+ it('sorts every object level while preserving array order', () => {+ expect(+ canonicalJson({ z: 1, a: { y: 2, x: 1 }, list: [{ b: 2, a: 1 }] })+ ).toBe('{"a":{"x":1,"y":2},"list":[{"a":1,"b":2}],"z":1}')+ })++ it('rejects non-JSON numbers and cycles', () => {+ expect(() => canonicalJson(Number.NaN as unknown as JsonValue)).toThrow(+ 'non-finite'+ )+ const cyclic: Record<string, JsonValue> = {}+ cyclic.self = cyclic+ expect(() => canonicalJson(cyclic)).toThrow('cyclic')+ })+})++describe('materializePostDeliveries', () => {+ it('creates a stable identity and byte-identical self-contained payload', () => {+ const first = materializePostDeliveries({+ event: event(validPayload()),+ candidates: [CANDIDATE],+ createdAt: 1_001,+ })[0]+ const reordered = materializePostDeliveries({+ event: event(validPayload(true)),+ candidates: [+ {+ ...CANDIDATE,+ requiredPermissions: ['metadata'],+ createdEffectivePermissions: ['metadata', 'notify'],+ },+ ],+ createdAt: 1_001,+ })[0]++ expect(first.deliveryId).toBe(reordered.deliveryId)+ expect(first.canonicalPayload).toBe(reordered.canonicalPayload)+ expect(first.canonicalPayload).toContain(`"id":"${first.deliveryId}"`)+ expect(first.createdEffectivePermissions).toEqual(['metadata', 'notify'])+ expect(first.reservedBytes).toBe(+ first.payloadBytes + first.permissionSnapshotBytes + 512+ )+ expect(first.canonicalPayload).not.toContain('task-store')+ })++ it('uses executable identity and Hook in the stable deduplication key', () => {+ const rows = materializePostDeliveries({+ event: event(validPayload()),+ candidates: [+ CANDIDATE,+ {+ ...CANDIDATE,+ hook: 'onError',+ },+ {+ ...CANDIDATE,+ executable: { ...CANDIDATE.executable, version: '2.0.0' },+ },+ ],+ createdAt: 1_001,+ })+ expect(new Set(rows.map((row) => row.deliveryId))).toHaveLength(3)+ })++ it('materializes invalid permission snapshots as observable dead letters', () => {+ const row = materializePostDeliveries({+ event: event(validPayload()),+ candidates: [+ {+ ...CANDIDATE,+ requiredPermissions: ['metadata', 'notify'],+ createdEffectivePermissions: ['metadata'],+ },+ ],+ createdAt: 1_001,+ })[0]+ expect(row).toMatchObject({+ initialStatus: 'dead_letter',+ initialReason: 'input_invalid',+ initialErrorCode: 'plugin.hook.input_invalid',+ })+ })++ it('runtime-validates the self-contained post context before admission', () => {+ const payload = validPayload() as {+ task: { id: string }+ filePath: string+ }+ payload.task.id = 'another-task'+ const row = materializePostDeliveries({+ event: event(payload as JsonValue),+ candidates: [CANDIDATE],+ createdAt: 1_001,+ })[0]+ expect(row).toMatchObject({+ initialStatus: 'dead_letter',+ initialReason: 'input_invalid',+ })+ })++ it('rejects and strips invocation-owned fields from the stable payload', () => {+ const payload = validPayload() as Record<string, JsonValue>+ payload.invocationId = 'stale-invocation'+ payload.delivery = {+ schemaVersion: 1,+ id: 'guest-controlled',+ occurrenceId: 'guest-controlled',+ occurredAt: 0,+ }+ const row = materializePostDeliveries({+ event: event(payload),+ candidates: [CANDIDATE],+ createdAt: 1_001,+ })[0]+ expect(row.initialStatus).toBe('dead_letter')+ expect(row.canonicalPayload).not.toContain('stale-invocation')+ expect(row.canonicalPayload).not.toContain('guest-controlled')+ expect(row.canonicalPayload).toContain(row.deliveryId)+ })++ it('stores a bounded permanent row for a malformed candidate identity', () => {+ const row = materializePostDeliveries({+ event: event(validPayload()),+ candidates: [+ {+ ...CANDIDATE,+ executable: { ...CANDIDATE.executable, pluginId: '' },+ },+ ],+ createdAt: 1_001,+ })[0]+ expect(row).toMatchObject({+ initialStatus: 'dead_letter',+ initialReason: 'input_invalid',+ })+ expect(row.executable.pluginId).toMatch(/^invalid-candidate\.[0-9a-f]{32}$/)+ })+})diff --git a/src/core/plugin/post/delivery-materializer.ts b/src/core/plugin/post/delivery-materializer.tsnew file mode 100644index 00000000..710fb7a4--- /dev/null+++ b/src/core/plugin/post/delivery-materializer.ts@@ -0,0 +1,336 @@+import { createHash } from 'node:crypto'+import {+ AfterCompleteContextV1Schema,+ HOOK_DTO_LIMITS,+ HookJsonValueSchema,+ OnErrorContextV1Schema,+} from '@shared/schemas/plugin-hooks'+import {+ type JsonValue,+ type PluginExecutableIdentity,+ POST_DELIVERY_ROW_CHARGE_BYTES,+ type PostDeliveryAdmission,+ type PostDeliveryCandidateSnapshot,+ type PostDeliveryEventSnapshot,+} from './delivery-types'++const MAX_OPAQUE_ID_BYTES = 128+const MAX_PLUGIN_ID_BYTES = 256+const MAX_VERSION_BYTES = 128+const MAX_PERMISSION_BYTES = 256+const MAX_PERMISSIONS = 256++export interface PostDeliveryMaterializationInput {+ event: PostDeliveryEventSnapshot+ candidates: readonly PostDeliveryCandidateSnapshot[]+ createdAt: number+}++export class PostDeliveryMaterializationError extends Error {+ constructor(+ readonly code: 'event_invalid',+ message: string+ ) {+ super(message)+ this.name = 'PostDeliveryMaterializationError'+ }+}++function byteLength(value: string): number {+ return Buffer.byteLength(value, 'utf8')+}++function isPlainObject(value: object): value is Record<string, unknown> {+ const prototype = Object.getPrototypeOf(value)+ return prototype === Object.prototype || prototype === null+}++export function canonicalJson(value: JsonValue): string {+ const ancestors = new Set<object>()++ const serialize = (candidate: unknown): string => {+ if (candidate === null || typeof candidate === 'boolean') {+ return JSON.stringify(candidate)+ }+ if (typeof candidate === 'string') return JSON.stringify(candidate)+ if (typeof candidate === 'number') {+ if (!Number.isFinite(candidate)) {+ throw new TypeError('canonical JSON rejects non-finite numbers')+ }+ return JSON.stringify(candidate)+ }+ if (typeof candidate !== 'object') {+ throw new TypeError('canonical JSON accepts JSON values only')+ }+ if (ancestors.has(candidate)) {+ throw new TypeError('canonical JSON rejects cyclic values')+ }++ ancestors.add(candidate)+ try {+ if (Array.isArray(candidate)) {+ return `[${candidate.map((item) => serialize(item)).join(',')}]`+ }+ if (!isPlainObject(candidate)) {+ throw new TypeError('canonical JSON rejects non-plain objects')+ }+ const fields = Object.keys(candidate)+ .sort()+ .map((key) => `${JSON.stringify(key)}:${serialize(candidate[key])}`)+ return `{${fields.join(',')}}`+ } finally {+ ancestors.delete(candidate)+ }+ }++ return serialize(value)+}++function requireBoundedText(+ value: string,+ field: string,+ maxBytes: number+): string {+ if (value.length === 0 || byteLength(value) > maxBytes) {+ throw new PostDeliveryMaterializationError(+ 'event_invalid',+ `${field} must be non-empty and at most ${maxBytes} UTF-8 bytes`+ )+ }+ return value+}++function normalizeIdentity(identity: PluginExecutableIdentity): {+ executable: PluginExecutableIdentity+ valid: boolean+} {+ const pluginValid =+ typeof identity.pluginId === 'string' &&+ identity.pluginId.length > 0 &&+ byteLength(identity.pluginId) <= MAX_PLUGIN_ID_BYTES+ const versionValid =+ typeof identity.version === 'string' &&+ identity.version.length > 0 &&+ byteLength(identity.version) <= MAX_VERSION_BYTES+ const digestValid =+ typeof identity.digest === 'string' &&+ /^[0-9a-f]{64}$/.test(identity.digest)+ if (pluginValid && versionValid && digestValid) {+ return { executable: identity, valid: true }+ }+ const rawIdentity = JSON.stringify({+ digest:+ typeof identity.digest === 'string' ? identity.digest : '<non-string>',+ pluginId:+ typeof identity.pluginId === 'string'+ ? identity.pluginId+ : '<non-string>',+ version:+ typeof identity.version === 'string' ? identity.version : '<non-string>',+ })+ const fallbackDigest = createHash('sha256')+ .update(rawIdentity, 'utf8')+ .digest('hex')+ return {+ executable: {+ pluginId: pluginValid+ ? identity.pluginId+ : `invalid-candidate.${fallbackDigest.slice(0, 32)}`,+ version: versionValid ? identity.version : '0.0.0-invalid',+ digest: digestValid ? identity.digest : fallbackDigest,+ },+ valid: false,+ }+}++function normalizePermissions(+ permissions: readonly string[]+): readonly string[] | undefined {+ if (permissions.length > MAX_PERMISSIONS) return undefined+ const normalized = new Set<string>()+ for (const permission of permissions) {+ if (+ typeof permission !== 'string' ||+ permission.length === 0 ||+ byteLength(permission) > MAX_PERMISSION_BYTES+ ) {+ return undefined+ }+ normalized.add(permission)+ }+ return [...normalized].sort()+}++function assertTimestamp(value: number, field: string): void {+ if (!Number.isSafeInteger(value) || value < 0) {+ throw new PostDeliveryMaterializationError(+ 'event_invalid',+ `${field} must be a non-negative safe integer`+ )+ }+}++function makeStableIdentity(+ event: PostDeliveryEventSnapshot,+ candidate: PostDeliveryCandidateSnapshot+): { deliveryId: string; deduplicationKey: string } {+ const identityJson = canonicalJson({+ digest: candidate.executable.digest,+ hook: candidate.hook,+ occurrenceId: event.occurrenceId,+ pluginId: candidate.executable.pluginId,+ version: candidate.executable.version,+ })+ const digest = createHash('sha256').update(identityJson, 'utf8').digest('hex')+ return {+ deliveryId: `post:v1:${digest}`,+ deduplicationKey: digest,+ }+}++function materializeCandidate(+ event: PostDeliveryEventSnapshot,+ candidate: PostDeliveryCandidateSnapshot,+ createdAt: number+): PostDeliveryAdmission {+ const normalizedIdentity = normalizeIdentity(candidate.executable)+ const executable = normalizedIdentity.executable+ const hook = candidate.hook === 'onError' ? 'onError' : 'afterComplete'+ const hookValid =+ candidate.hook === 'afterComplete' || candidate.hook === 'onError'+ const { deliveryId, deduplicationKey } = makeStableIdentity(event, {+ ...candidate,+ hook,+ executable,+ })+ const requiredPermissions = normalizePermissions(+ candidate.requiredPermissions+ )+ const createdEffectivePermissions = normalizePermissions(+ candidate.createdEffectivePermissions+ )+ const generationValid =+ Number.isSafeInteger(candidate.createdGeneration) &&+ candidate.createdGeneration >= 0+ const permissionsValid =+ requiredPermissions !== undefined &&+ createdEffectivePermissions !== undefined &&+ requiredPermissions.every((permission) =>+ createdEffectivePermissions.includes(permission)+ )+ const valid =+ normalizedIdentity.valid && hookValid && generationValid && permissionsValid++ if (+ event.payload === null ||+ Array.isArray(event.payload) ||+ typeof event.payload !== 'object'+ ) {+ throw new PostDeliveryMaterializationError(+ 'event_invalid',+ 'post-delivery payload must be an object'+ )+ }++ const payloadFields = event.payload as Record<string, JsonValue>+ const expectedFields =+ hook === 'afterComplete'+ ? new Set(['task', 'filePath'])+ : new Set(['task', 'filePath', 'error'])+ const payloadShapeValid =+ Object.keys(payloadFields).every((key) => expectedFields.has(key)) &&+ [...expectedFields].every((key) => key in payloadFields)+ const stablePayload = {+ schemaVersion: 1 as const,+ taskId: event.taskId,+ task: payloadFields.task ?? null,+ filePath: payloadFields.filePath ?? null,+ ...(hook === 'onError' ? { error: payloadFields.error ?? null } : {}),+ delivery: {+ id: deliveryId,+ occurrenceId: event.occurrenceId,+ occurredAt: event.occurredAt,+ schemaVersion: 1 as const,+ },+ }+ const boundedJson = HookJsonValueSchema.safeParse(stablePayload).success+ const dtoValid =+ payloadShapeValid &&+ boundedJson &&+ (hook === 'afterComplete'+ ? AfterCompleteContextV1Schema+ : OnErrorContextV1Schema+ ).safeParse({+ ...stablePayload,+ invocationId: 'materialization-validation',+ }).success+ const canonicalPayload = canonicalJson(+ boundedJson+ ? stablePayload+ : {+ delivery: stablePayload.delivery,+ invalidPayload: true,+ schemaVersion: 1,+ taskId: event.taskId,+ }+ )+ const payloadBytes = byteLength(canonicalPayload)+ const permissionSnapshotBytes =+ byteLength(canonicalJson(requiredPermissions ?? [])) ++ byteLength(canonicalJson(createdEffectivePermissions ?? []))+ const payloadSizeValid = payloadBytes <= HOOK_DTO_LIMITS.messageBytes++ return {+ deliveryId,+ deduplicationKey,+ hook,+ executable,+ createdGeneration: generationValid ? candidate.createdGeneration : 0,+ requiredPermissions: requiredPermissions ?? [],+ createdEffectivePermissions: createdEffectivePermissions ?? [],+ occurrenceId: event.occurrenceId,+ taskId: event.taskId,+ occurredAt: event.occurredAt,+ canonicalPayload,+ payloadBytes,+ permissionSnapshotBytes,+ reservedBytes:+ payloadBytes + permissionSnapshotBytes + POST_DELIVERY_ROW_CHARGE_BYTES,+ createdAt,+ initialStatus:+ valid && dtoValid && payloadSizeValid ? 'pending' : 'dead_letter',+ initialReason:+ valid && dtoValid && payloadSizeValid ? undefined : 'input_invalid',+ initialErrorCode:+ valid && dtoValid && payloadSizeValid+ ? undefined+ : 'plugin.hook.input_invalid',+ }+}++/**+ * Produces stable, insertion-ready rows for the caller's terminal transaction.+ * The repository owns quota admission and the unique-key idempotency check.+ */+export function materializePostDeliveries(+ input: PostDeliveryMaterializationInput+): readonly PostDeliveryAdmission[] {+ requireBoundedText(+ input.event.occurrenceId,+ 'occurrenceId',+ MAX_OPAQUE_ID_BYTES+ )+ requireBoundedText(input.event.taskId, 'taskId', MAX_OPAQUE_ID_BYTES)+ assertTimestamp(input.event.occurredAt, 'occurredAt')+ assertTimestamp(input.createdAt, 'createdAt')+ if (input.event.schemaVersion !== 1) {+ throw new PostDeliveryMaterializationError(+ 'event_invalid',+ 'unsupported post-delivery event schemaVersion'+ )+ }++ return input.candidates.map((candidate) =>+ materializeCandidate(input.event, candidate, input.createdAt)+ )+}diff --git a/src/core/plugin/post/delivery-observability.ts b/src/core/plugin/post/delivery-observability.tsnew file mode 100644index 00000000..63ec8182--- /dev/null+++ b/src/core/plugin/post/delivery-observability.ts@@ -0,0 +1,103 @@+import type { Logger } from '@core/logger'+import type {+ PostDeliveryAdmissionReason,+ PostDeliveryPermanentReason,+ PostHookName,+} from './delivery-types'++interface DeliveryEventBase {+ at: number+ pluginId?: string+ hook?: PostHookName+ deliveryId?: string+}++export type PostDeliveryEvent =+ | (DeliveryEventBase & {+ type: 'plugin.post.recovery_finished'+ reclaimedDeliveries: number+ reclaimedBreakerProbes: number+ })+ | (DeliveryEventBase & {+ type: 'plugin.post.claimed'+ pluginId: string+ hook: PostHookName+ deliveryId: string+ attemptCount: number+ queueLatencyMs: number+ })+ | (DeliveryEventBase & {+ type: 'plugin.post.invocation_finished'+ pluginId: string+ hook: PostHookName+ deliveryId: string+ invocationId: string+ durationMs: number+ outcome: 'delivered' | 'retry' | 'dead_letter'+ errorCode?: string+ })+ | (DeliveryEventBase & {+ type: 'plugin.post.breaker_changed'+ pluginId: string+ state: 'closed' | 'open' | 'half_open'+ openUntil?: number+ })+ | (DeliveryEventBase & {+ type: 'plugin.post.admission_rejected'+ pluginId: string+ hook: PostHookName+ reason: PostDeliveryAdmissionReason+ occurrenceId: string+ })+ | (DeliveryEventBase & {+ type: 'plugin.post.lifecycle_terminal'+ pluginId: string+ affectedRows: number+ reason: PostDeliveryPermanentReason+ })+ | (DeliveryEventBase & {+ type: 'plugin.post.storage_error'+ operation: string+ errorCode: 'plugin.post.storage_error'+ })++export interface PostDeliveryObservability {+ emit(event: PostDeliveryEvent): void | Promise<void>+}++export const NOOP_POST_DELIVERY_OBSERVABILITY: PostDeliveryObservability = {+ emit: () => {},+}++/** Production adapter shared by both shells. Event payloads are deliberately+ * limited to durable identities, counters, and stable error codes. */+export function createLoggingPostDeliveryObservability(+ logger: Pick<Logger, 'info' | 'warn'>+): PostDeliveryObservability {+ return {+ emit: (event) => {+ const details = { postDelivery: event }+ if (+ event.type === 'plugin.post.storage_error' ||+ event.type === 'plugin.post.admission_rejected'+ ) {+ logger.warn(details, event.type)+ return+ }+ logger.info(details, event.type)+ },+ }+}++export function safeObserve(+ observability: PostDeliveryObservability,+ event: PostDeliveryEvent+): void {+ try {+ const result = observability.emit(event)+ if (result && typeof result.catch === 'function')+ void result.catch(() => {})+ } catch {+ // Telemetry cannot affect durable delivery state.+ }+}diff --git a/src/core/plugin/post/delivery-retention.test.ts b/src/core/plugin/post/delivery-retention.test.tsnew file mode 100644index 00000000..42335ff1--- /dev/null+++ b/src/core/plugin/post/delivery-retention.test.ts@@ -0,0 +1,202 @@+import { describe, expect, it, vi } from 'vitest'+import type { PostDeliveryRetentionRepository } from './delivery-retention'+import {+ admitPostDeliveries,+ compactTerminalReceipt,+ evaluatePostDeliveryAdmission,+ PostDeliveryRetention,+ quotaTombstoneUtcDay,+} from './delivery-retention'+import type { PostDeliveryAdmission } from './delivery-types'++function admission(deliveryId: string): PostDeliveryAdmission {+ return {+ deliveryId,+ deduplicationKey: 'a'.repeat(64),+ hook: 'afterComplete',+ executable: {+ pluginId: 'plugin-a',+ version: '1.0.0',+ digest: 'b'.repeat(64),+ },+ createdGeneration: 1,+ requiredPermissions: [],+ createdEffectivePermissions: [],+ occurrenceId: `occ-${deliveryId}`,+ taskId: 'task-a',+ occurredAt: 1,+ canonicalPayload: '{}',+ payloadBytes: 2,+ permissionSnapshotBytes: 4,+ reservedBytes: 518,+ createdAt: 1,+ initialStatus: 'pending',+ }+}++describe('evaluatePostDeliveryAdmission', () => {+ const baseUsage = {+ pluginActiveRows: 0,+ pluginActiveBytes: 0,+ globalActiveRows: 0,+ globalActiveBytes: 0,+ postLogicalBytes: 0,+ databaseCapacityBytes: 2 * 1024 * 1024 * 1024,+ coreLogicalBytes: 0,+ }++ it('admits only when plugin, global, hard, and reserve budgets all fit', () => {+ expect(+ evaluatePostDeliveryAdmission({ reservedBytes: 1_024 }, baseUsage)+ ).toEqual({ admitted: true })+ expect(+ evaluatePostDeliveryAdmission(+ { reservedBytes: 1_024 },+ { ...baseUsage, pluginActiveRows: 1_000 }+ )+ ).toEqual({ admitted: false, reason: 'plugin_active_rows' })+ expect(+ evaluatePostDeliveryAdmission(+ { reservedBytes: 1_024 },+ {+ ...baseUsage,+ databaseCapacityBytes: 128 * 1024 * 1024 + 1_023,+ }+ )+ ).toEqual({ admitted: false, reason: 'post_hard_budget' })+ })++ it('calculates UTC tombstone buckets deterministically', () => {+ expect(quotaTombstoneUtcDay(Date.UTC(2026, 7, 31, 23, 59))).toBe(+ '2026-08-31'+ )+ })++ it('keeps admission and bounded tombstone writes inside the caller transaction', () => {+ const calls: string[] = []+ const summary = admitPostDeliveries(+ {+ admitOrTombstone: (row) => {+ calls.push(row.deliveryId)+ return row.deliveryId === 'accepted'+ ? { kind: 'admitted', deliveryId: row.deliveryId }+ : {+ kind: 'rejected',+ deliveryId: row.deliveryId,+ reason: 'plugin_active_rows',+ tombstoneKey: 'plugin:afterComplete:rows:2026-08-31',+ }+ },+ },+ [admission('accepted'), admission('rejected')]+ )+ expect(calls).toEqual(['accepted', 'rejected'])+ expect(summary).toMatchObject({ admitted: 1, duplicates: 0, rejected: 1 })+ })+})++describe('compactTerminalReceipt', () => {+ it('keeps only bounded terminal outcome fields', () => {+ const compact = compactTerminalReceipt({+ deliveryId: 'delivery-1',+ pluginId: 'plugin-a',+ hook: 'afterComplete',+ status: 'dead_letter',+ completedAt: 10,+ attemptCount: 12,+ reason: 'attempt_limit',+ })+ expect(Buffer.byteLength(compact, 'utf8')).toBeLessThanOrEqual(1_024)+ expect(JSON.parse(compact)).toEqual({+ attemptCount: 12,+ completedAt: 10,+ deliveryId: 'delivery-1',+ hook: 'afterComplete',+ pluginId: 'plugin-a',+ reason: 'attempt_limit',+ status: 'dead_letter',+ })+ })+})++describe('PostDeliveryRetention', () => {+ it('uses exact lifecycle outcomes and emits aggregate observability', async () => {+ const repository: PostDeliveryRetentionRepository = {+ reconcileLedger: vi.fn().mockResolvedValue({+ activeRows: 0,+ activeBytes: 0,+ terminalRows: 0,+ terminalBytes: 0,+ tombstoneRows: 0,+ tombstoneBytes: 0,+ }),+ compactTerminalOverQuota: vi.fn().mockResolvedValue(2),+ pruneTerminalReceipts: vi.fn().mockResolvedValue(3),+ terminalizeExecutable: vi.fn().mockResolvedValue(4),+ terminalizePlugin: vi.fn().mockResolvedValue(5),+ terminalizePermissionRevoked: vi.fn().mockResolvedValue(6),+ }+ const emit = vi.fn()+ const retention = new PostDeliveryRetention({+ repository,+ observability: { emit },+ })++ await expect(+ retention.supersede(+ { pluginId: 'a', version: '1.0.0', digest: 'a'.repeat(64) },+ 100+ )+ ).resolves.toBe(4)+ await expect(+ retention.pluginUnavailable('b', 'quarantined', 101)+ ).resolves.toBe(5)+ await expect(+ retention.permissionRevoked('c', ['notify', 'http', 'notify'], 102)+ ).resolves.toBe(6)+ await expect(+ retention.maintain(31 * 24 * 60 * 60_000, 30 * 24 * 60 * 60_000)+ ).resolves.toEqual({+ compacted: 2,+ pruned: 3,+ })++ expect(repository.terminalizePermissionRevoked).toHaveBeenCalledWith({+ pluginId: 'c',+ revokedPermissions: ['http', 'notify'],+ at: 102,+ })+ expect(emit).toHaveBeenCalledWith(+ expect.objectContaining({+ type: 'plugin.post.lifecycle_terminal',+ pluginId: 'a',+ reason: 'superseded',+ affectedRows: 4,+ })+ )+ })++ it('reports repository faults as system storage errors without relabeling them', async () => {+ const storageError = new Error('disk full')+ const emit = vi.fn()+ const retention = new PostDeliveryRetention({+ repository: {+ reconcileLedger: vi.fn().mockRejectedValue(storageError),+ compactTerminalOverQuota: vi.fn(),+ pruneTerminalReceipts: vi.fn(),+ terminalizeExecutable: vi.fn(),+ terminalizePlugin: vi.fn(),+ terminalizePermissionRevoked: vi.fn(),+ },+ clock: { now: () => 77 },+ observability: { emit },+ })+ await expect(retention.reconcile()).rejects.toBe(storageError)+ expect(emit).toHaveBeenCalledWith({+ type: 'plugin.post.storage_error',+ at: 77,+ operation: 'reconcileLedger',+ errorCode: 'plugin.post.storage_error',+ })+ })+})diff --git a/src/core/plugin/post/delivery-retention.ts b/src/core/plugin/post/delivery-retention.tsnew file mode 100644index 00000000..95fd5a56--- /dev/null+++ b/src/core/plugin/post/delivery-retention.ts@@ -0,0 +1,333 @@+import { canonicalJson } from './delivery-materializer'+import {+ NOOP_POST_DELIVERY_OBSERVABILITY,+ type PostDeliveryObservability,+ safeObserve,+} from './delivery-observability'+import {+ DEFAULT_POST_DELIVERY_QUOTA_CONFIG,+ type PluginExecutableIdentity,+ POST_DELIVERY_CORE_RESERVE_BYTES,+ POST_DELIVERY_HARD_BUDGET_BYTES,+ POST_DELIVERY_RECEIPT_MAX_BYTES,+ type PostDeliveryAdmission,+ type PostDeliveryAdmissionReason,+ type PostDeliveryClock,+ type PostDeliveryPermanentReason,+ type PostDeliveryQuotaConfig,+ PostDeliveryQuotaConfigSchema,+ type PostDeliveryTerminalReceipt,+ type PostHookName,+} from './delivery-types'++export const POST_DELIVERY_TOMBSTONE_MAX_BYTES = 1024+export const POST_DELIVERY_DAILY_BUCKETS_PER_REASON = 32+export const POST_DELIVERY_GLOBAL_TOMBSTONE_BUCKETS = 8192++export interface PostDeliveryQuotaUsage {+ pluginActiveRows: number+ pluginActiveBytes: number+ globalActiveRows: number+ globalActiveBytes: number+ postLogicalBytes: number+ databaseCapacityBytes: number+ coreLogicalBytes: number+}++export type PostDeliveryAdmissionDecision =+ | { admitted: true }+ | { admitted: false; reason: PostDeliveryAdmissionReason }++export type AtomicPostDeliveryAdmissionResult =+ | { kind: 'admitted'; deliveryId: string }+ | { kind: 'duplicate'; deliveryId: string }+ | {+ kind: 'rejected'+ deliveryId: string+ reason: PostDeliveryAdmissionReason+ tombstoneKey: string+ }++/**+ * Synchronous participant supplied to the task terminal-state transaction.+ * Implementations assert that the caller already holds the SQLite write+ * transaction. The row/tombstone, per-plugin and global ledgers, hard budget,+ * and core reserve decision are one atomic statement sequence.+ */+export interface PostDeliveryAdmissionTransaction {+ admitOrTombstone(+ row: PostDeliveryAdmission,+ config: PostDeliveryQuotaConfig+ ): AtomicPostDeliveryAdmissionResult+}++export interface PostDeliveryAdmissionSummary {+ admitted: number+ duplicates: number+ rejected: number+ results: readonly AtomicPostDeliveryAdmissionResult[]+}++/** Runs inside the caller-owned terminal transaction; any throw aborts it. */+export function admitPostDeliveries(+ transaction: PostDeliveryAdmissionTransaction,+ rows: readonly PostDeliveryAdmission[],+ config: PostDeliveryQuotaConfig = DEFAULT_POST_DELIVERY_QUOTA_CONFIG+): PostDeliveryAdmissionSummary {+ const parsed = PostDeliveryQuotaConfigSchema.parse(config)+ const results = rows.map((row) => transaction.admitOrTombstone(row, parsed))+ return {+ admitted: results.filter((result) => result.kind === 'admitted').length,+ duplicates: results.filter((result) => result.kind === 'duplicate').length,+ rejected: results.filter((result) => result.kind === 'rejected').length,+ results,+ }+}++/**+ * Pure mirror of the checks the database adapter performs atomically. It is+ * useful for diagnostics and conformance tests, but must not be used as a+ * preflight followed by an unlocked insert.+ */+export function evaluatePostDeliveryAdmission(+ row: Pick<PostDeliveryAdmission, 'reservedBytes'>,+ usage: PostDeliveryQuotaUsage,+ config: PostDeliveryQuotaConfig = DEFAULT_POST_DELIVERY_QUOTA_CONFIG+): PostDeliveryAdmissionDecision {+ const parsed = PostDeliveryQuotaConfigSchema.parse(config)+ const nextPluginRows = usage.pluginActiveRows + 1+ const nextPluginBytes = usage.pluginActiveBytes + row.reservedBytes+ const nextGlobalRows = usage.globalActiveRows + 1+ const nextGlobalBytes = usage.globalActiveBytes + row.reservedBytes+ if (nextPluginRows > parsed.pluginActiveRows) {+ return { admitted: false, reason: 'plugin_active_rows' }+ }+ if (nextPluginBytes > parsed.pluginActiveBytes) {+ return { admitted: false, reason: 'plugin_active_bytes' }+ }+ if (nextGlobalRows > parsed.globalActiveRows) {+ return { admitted: false, reason: 'global_active_rows' }+ }+ if (nextGlobalBytes > parsed.globalActiveBytes) {+ return { admitted: false, reason: 'global_active_bytes' }+ }+ if (+ usage.postLogicalBytes + row.reservedBytes >+ POST_DELIVERY_HARD_BUDGET_BYTES+ ) {+ return { admitted: false, reason: 'post_hard_budget' }+ }+ const bytesAvailableToPost = Math.max(+ 0,+ usage.databaseCapacityBytes -+ usage.coreLogicalBytes -+ POST_DELIVERY_CORE_RESERVE_BYTES+ )+ if (usage.postLogicalBytes + row.reservedBytes > bytesAvailableToPost) {+ return { admitted: false, reason: 'post_hard_budget' }+ }+ return { admitted: true }+}++export function quotaTombstoneUtcDay(timestamp: number): string {+ if (!Number.isSafeInteger(timestamp) || timestamp < 0) {+ throw new RangeError('timestamp must be a non-negative safe integer')+ }+ return new Date(timestamp).toISOString().slice(0, 10)+}++export function compactTerminalReceipt(+ receipt: PostDeliveryTerminalReceipt+): string {+ const compacted = canonicalJson({+ attemptCount: receipt.attemptCount,+ completedAt: receipt.completedAt,+ deliveryId: receipt.deliveryId,+ hook: receipt.hook,+ pluginId: receipt.pluginId,+ ...(receipt.reason ? { reason: receipt.reason } : {}),+ status: receipt.status,+ })+ if (Buffer.byteLength(compacted, 'utf8') > POST_DELIVERY_RECEIPT_MAX_BYTES) {+ throw new RangeError('post-delivery terminal receipt exceeds 1 KiB')+ }+ return compacted+}++export interface PostDeliveryLedgerSnapshot {+ activeRows: number+ activeBytes: number+ terminalRows: number+ terminalBytes: number+ tombstoneRows: number+ tombstoneBytes: number+}++export interface PostDeliveryRetentionRepository {+ /** Recomputes exact counters from table contents in one write transaction. */+ reconcileLedger(): Promise<PostDeliveryLedgerSnapshot>+ /** Rolls oldest terminal receipts into aggregates until every quota fits. */+ compactTerminalOverQuota(config: PostDeliveryQuotaConfig): Promise<number>+ /** Rolls expired receipts into aggregates before removing their rows. */+ pruneTerminalReceipts(before: number): Promise<number>+ /**+ * Atomically terminalizes matching active rows and compacts their payloads.+ * Implementations retain the exact permanent reason in each receipt.+ */+ terminalizeExecutable(input: {+ executable: PluginExecutableIdentity+ reason: 'superseded' | 'uninstalled'+ at: number+ }): Promise<number>+ terminalizePlugin(input: {+ pluginId: string+ reason: 'disabled' | 'uninstalled' | 'quarantined'+ at: number+ }): Promise<number>+ terminalizePermissionRevoked(input: {+ pluginId: string+ revokedPermissions: readonly string[]+ at: number+ }): Promise<number>+}++export interface PostDeliveryRetentionOptions {+ repository: PostDeliveryRetentionRepository+ config?: Partial<PostDeliveryQuotaConfig>+ observability?: PostDeliveryObservability+ clock?: Pick<PostDeliveryClock, 'now'>+}++export class PostDeliveryRetention {+ private readonly config: PostDeliveryQuotaConfig+ private readonly observability: PostDeliveryObservability+ private readonly clock: Pick<PostDeliveryClock, 'now'>++ constructor(private readonly options: PostDeliveryRetentionOptions) {+ this.config = PostDeliveryQuotaConfigSchema.parse(options.config ?? {})+ this.observability =+ options.observability ?? NOOP_POST_DELIVERY_OBSERVABILITY+ this.clock = options.clock ?? { now: () => Date.now() }+ }++ async reconcile(): Promise<PostDeliveryLedgerSnapshot> {+ return this.repositoryCall('reconcileLedger', () =>+ this.options.repository.reconcileLedger()+ )+ }++ async maintain(+ now: number,+ terminalRetentionMs: number+ ): Promise<{+ compacted: number+ pruned: number+ }> {+ if (!Number.isSafeInteger(now) || now < 0) {+ throw new RangeError('now must be a non-negative safe integer')+ }+ if (+ !Number.isSafeInteger(terminalRetentionMs) ||+ terminalRetentionMs < 24 * 60 * 60_000 ||+ terminalRetentionMs > 90 * 24 * 60 * 60_000+ ) {+ throw new RangeError('terminal retention must be between 1 and 90 days')+ }+ const compacted = await this.repositoryCall(+ 'compactTerminalOverQuota',+ () => this.options.repository.compactTerminalOverQuota(this.config)+ )+ const pruned = await this.repositoryCall('pruneTerminalReceipts', () =>+ this.options.repository.pruneTerminalReceipts(now - terminalRetentionMs)+ )+ return { compacted, pruned }+ }++ async supersede(+ executable: PluginExecutableIdentity,+ at: number+ ): Promise<number> {+ return this.terminalize(+ executable.pluginId,+ 'superseded',+ 'terminalizeExecutable',+ () =>+ this.options.repository.terminalizeExecutable({+ executable,+ reason: 'superseded',+ at,+ }),+ at+ )+ }++ async pluginUnavailable(+ pluginId: string,+ reason: 'disabled' | 'uninstalled' | 'quarantined',+ at: number+ ): Promise<number> {+ return this.terminalize(+ pluginId,+ reason,+ 'terminalizePlugin',+ () => this.options.repository.terminalizePlugin({ pluginId, reason, at }),+ at+ )+ }++ async permissionRevoked(+ pluginId: string,+ revokedPermissions: readonly string[],+ at: number+ ): Promise<number> {+ return this.terminalize(+ pluginId,+ 'permission_revoked',+ 'terminalizePermissionRevoked',+ () =>+ this.options.repository.terminalizePermissionRevoked({+ pluginId,+ revokedPermissions: [...new Set(revokedPermissions)].sort(),+ at,+ }),+ at+ )+ }++ private async terminalize(+ pluginId: string,+ reason: PostDeliveryPermanentReason,+ operation: string,+ transition: () => Promise<number>,+ at: number,+ hook?: PostHookName+ ): Promise<number> {+ const affectedRows = await this.repositoryCall(operation, transition)+ safeObserve(this.observability, {+ type: 'plugin.post.lifecycle_terminal',+ at,+ pluginId,+ hook,+ affectedRows,+ reason,+ })+ return affectedRows+ }++ private async repositoryCall<T>(+ operation: string,+ run: () => Promise<T>+ ): Promise<T> {+ try {+ return await run()+ } catch (error) {+ safeObserve(this.observability, {+ type: 'plugin.post.storage_error',+ at: this.clock.now(),+ operation,+ errorCode: 'plugin.post.storage_error',+ })+ throw error+ }+ }+}diff --git a/src/core/plugin/post/delivery-scheduler.test.ts b/src/core/plugin/post/delivery-scheduler.test.tsnew file mode 100644index 00000000..5d5dd332--- /dev/null+++ b/src/core/plugin/post/delivery-scheduler.test.ts@@ -0,0 +1,649 @@+import { describe, expect, it, vi } from 'vitest'+import {+ PostDeliveryScheduler,+ type PostDeliverySchedulerOptions,+} from './delivery-scheduler'+import type {+ BreakerFailureInput,+ CompletePostDeliveryInput,+ DeadLetterPostDeliveryInput,+ PostDeliveryBreakerPermit,+ PostDeliveryBreakerState,+ PostDeliveryClaim,+ PostDeliveryClock,+ PostDeliveryPluginInvoker,+ PostDeliveryPolicyProvider,+ PostDeliveryRecord,+ PostDeliveryRepository,+ RetryPostDeliveryInput,+} from './delivery-types'++interface BreakerData {+ failures: number[]+ openUntil?: number+ activePermit?: PostDeliveryBreakerPermit & { expiresAt: number }+}++class MemoryRepository implements PostDeliveryRepository {+ readonly rows: PostDeliveryRecord[]+ readonly claims: string[] = []+ readonly breakers = new Map<string, BreakerData>()+ reclaimed = { deliveries: 0, breakerProbes: 0 }++ constructor(rows: PostDeliveryRecord[]) {+ this.rows = rows+ }++ async recoverExpiredLeases(now: number) {+ let deliveries = 0+ let breakerProbes = 0+ for (const row of this.rows) {+ if (+ row.status === 'delivering' &&+ row.leaseExpiresAt !== undefined &&+ row.leaseExpiresAt <= now+ ) {+ row.status = 'pending'+ row.leaseToken = undefined+ row.leaseExpiresAt = undefined+ deliveries += 1+ }+ }+ for (const breaker of this.breakers.values()) {+ if (+ breaker.activePermit?.mode === 'half_open' &&+ breaker.activePermit.expiresAt <= now+ ) {+ breaker.activePermit = undefined+ breakerProbes += 1+ }+ }+ this.reclaimed = { deliveries, breakerProbes }+ return this.reclaimed+ }++ async listClaimablePluginIds(now: number) {+ return this.rows+ .filter((row) => row.status === 'pending' && row.nextAttemptAt <= now)+ .map((row) => row.executable.pluginId)+ }++ async claimNextForPlugin(input: {+ pluginId: string+ now: number+ leaseToken: string+ leaseExpiresAt: number+ maxAttempts: number+ maxActiveAgeMs: number+ }) {+ const row = this.rows.find(+ (candidate) =>+ candidate.status === 'pending' &&+ candidate.nextAttemptAt <= input.now &&+ candidate.executable.pluginId === input.pluginId+ )+ if (!row) return undefined+ if (row.attemptCount >= input.maxAttempts) {+ row.status = 'dead_letter'+ row.terminalReason = 'attempt_limit'+ return undefined+ }+ if (input.now - row.createdAt >= input.maxActiveAgeMs) {+ row.status = 'dead_letter'+ row.terminalReason = 'age_limit'+ return undefined+ }+ row.status = 'delivering'+ row.attemptCount += 1+ row.leaseToken = input.leaseToken+ row.leaseExpiresAt = input.leaseExpiresAt+ this.claims.push(input.pluginId)+ return row as PostDeliveryClaim+ }++ async acquireBreakerPermit(+ pluginId: string,+ now: number,+ token: string,+ leaseExpiresAt: number+ ) {+ const breaker = this.breakers.get(pluginId) ?? { failures: [] }+ this.breakers.set(pluginId, breaker)+ if (breaker.activePermit && breaker.activePermit.expiresAt > now) {+ return undefined+ }+ if (breaker.openUntil !== undefined && breaker.openUntil > now) {+ return undefined+ }+ const permit: PostDeliveryBreakerPermit & { expiresAt: number } = {+ mode: breaker.openUntil === undefined ? 'closed' : 'half_open',+ token,+ expiresAt: leaseExpiresAt,+ }+ breaker.activePermit = permit+ return { mode: permit.mode, token: permit.token }+ }++ async releaseBreakerPermit(+ pluginId: string,+ permit: PostDeliveryBreakerPermit+ ) {+ const breaker = this.breakers.get(pluginId)+ if (breaker?.activePermit?.token === permit.token) {+ breaker.activePermit = undefined+ }+ }++ async complete(+ input: CompletePostDeliveryInput,+ breakerInput: {+ pluginId: string+ permit: PostDeliveryBreakerPermit+ now: number+ }+ ) {+ const row = this.ownedRow(input.deliveryId, input.leaseToken)+ if (!row) return false+ row.status = 'delivered'+ row.leaseToken = undefined+ row.leaseExpiresAt = undefined+ const breaker = this.breakers.get(breakerInput.pluginId)+ if (breaker) {+ breaker.failures = []+ breaker.openUntil = undefined+ breaker.activePermit = undefined+ }+ return true+ }++ async retry(+ input: RetryPostDeliveryInput,+ breakerInput: BreakerFailureInput+ ) {+ const row = this.ownedRow(input.deliveryId, input.leaseToken)+ if (!row) {+ return {+ updated: false,+ breaker: this.breakerState(breakerInput.pluginId),+ }+ }+ row.status = 'pending'+ row.nextAttemptAt = input.nextAttemptAt+ row.leaseToken = undefined+ row.leaseExpiresAt = undefined+ const breaker = this.breakers.get(breakerInput.pluginId) ?? { failures: [] }+ this.breakers.set(breakerInput.pluginId, breaker)+ breaker.activePermit = undefined+ breaker.failures = breaker.failures.filter(+ (failure) => failure >= breakerInput.now - breakerInput.windowMs+ )+ breaker.failures.push(breakerInput.now)+ if (+ breakerInput.permit.mode === 'half_open' ||+ breaker.failures.length >= breakerInput.threshold+ ) {+ breaker.openUntil = breakerInput.now + breakerInput.pauseMs+ }+ return {+ updated: true,+ breaker: this.breakerState(breakerInput.pluginId),+ }+ }++ async deadLetter(+ input: DeadLetterPostDeliveryInput,+ breakerInput: { pluginId: string; permit: PostDeliveryBreakerPermit }+ ) {+ const row = this.ownedRow(input.deliveryId, input.leaseToken)+ if (!row) return false+ row.status = input.terminalStatus+ row.terminalReason = input.reason+ row.leaseToken = undefined+ row.leaseExpiresAt = undefined+ await this.releaseBreakerPermit(breakerInput.pluginId, breakerInput.permit)+ return true+ }++ private ownedRow(deliveryId: string, leaseToken: string) {+ return this.rows.find(+ (row) =>+ row.deliveryId === deliveryId &&+ row.status === 'delivering' &&+ row.leaseToken === leaseToken+ )+ }++ private breakerState(pluginId: string): PostDeliveryBreakerState {+ const breaker = this.breakers.get(pluginId) ?? { failures: [] }+ const state =+ breaker.openUntil === undefined+ ? 'closed'+ : breaker.activePermit?.mode === 'half_open'+ ? 'half_open'+ : 'open'+ return {+ pluginId,+ state,+ failureCount: breaker.failures.length,+ openUntil: breaker.openUntil,+ }+ }+}++function row(pluginId: string, index: number): PostDeliveryRecord {+ const deliveryId = `${pluginId}-${index}`+ return {+ deliveryId,+ deduplicationKey: deliveryId,+ hook: 'afterComplete',+ executable: { pluginId, version: '1.0.0', digest: 'a'.repeat(64) },+ createdGeneration: 1,+ requiredPermissions: ['metadata'],+ createdEffectivePermissions: ['http', 'metadata'],+ occurrenceId: `occ-${deliveryId}`,+ taskId: `task-${deliveryId}`,+ occurredAt: 0,+ canonicalPayload: '{}',+ payloadBytes: 2,+ permissionSnapshotBytes: 31,+ reservedBytes: 545,+ createdAt: 0,+ status: 'pending',+ attemptCount: 0,+ nextAttemptAt: 0,+ }+}++function testClock(+ initial = 0+): PostDeliveryClock & { set(now: number): void } {+ let now = initial+ return {+ now: () => now,+ set: (value) => {+ now = value+ },+ sleep: async (ms, signal) => {+ if (signal.aborted) throw new Error('aborted')+ now += ms+ },+ }+}++function policy(+ currentEffectivePermissions: readonly string[] = ['metadata']+): PostDeliveryPolicyProvider {+ return {+ acquire: async () => ({+ kind: 'authorized',+ lease: {+ currentGeneration: 2,+ currentEffectivePermissions,+ signal: new AbortController().signal,+ release: () => {},+ },+ }),+ }+}++function idFactory(): () => string {+ let id = 0+ return () => `id-${++id}`+}++function scheduler(+ repository: MemoryRepository,+ invoker: PostDeliveryPluginInvoker,+ overrides: {+ clock?: PostDeliveryClock+ policy?: PostDeliveryPolicyProvider+ claimBatch?: number+ globalWorkers?: number+ breakerThreshold?: number+ maxAttempts?: number+ maxActiveAgeMs?: number+ maintenance?: PostDeliverySchedulerOptions['maintenance']+ } = {}+) {+ return new PostDeliveryScheduler({+ repository,+ policy: overrides.policy ?? policy(),+ invoker,+ clock: overrides.clock ?? testClock(),+ jitter: { factor: () => 1 },+ idFactory: idFactory(),+ maintenance: overrides.maintenance,+ config: {+ leaseMs: 30_000,+ claimBatch: overrides.claimBatch ?? 64,+ globalWorkers: overrides.globalWorkers ?? 8,+ breakerThreshold: overrides.breakerThreshold ?? 5,+ maxAttempts: overrides.maxAttempts ?? 12,+ maxActiveAgeMs: overrides.maxActiveAgeMs ?? 7 * 24 * 60 * 60_000,+ breakerWindowMs: 60_000,+ breakerPauseMs: 60_000,+ baseDelayMs: 100,+ delayCapMs: 60_000,+ },+ })+}++const successfulInvoker = (calls: string[]): PostDeliveryPluginInvoker => ({+ invoke: async ({ record, invocationId }) => {+ calls.push(record.deliveryId)+ return {+ kind: 'success',+ receipt: { deliveryId: record.deliveryId, invocationId },+ }+ },+})++describe('PostDeliveryScheduler', () => {+ it('reclaims an expired delivery lease on restart before invoking', async () => {+ const expired = row('a', 1)+ expired.status = 'delivering'+ expired.leaseToken = 'crashed-owner'+ expired.leaseExpiresAt = 50+ const repository = new MemoryRepository([expired])+ const clock = testClock(100)+ const calls: string[] = []++ const result = await scheduler(repository, successfulInvoker(calls), {+ clock,+ claimBatch: 1,+ }).drainOnce()++ expect(repository.reclaimed.deliveries).toBe(1)+ expect(result).toMatchObject({ claimed: 1, delivered: 1 })+ expect(calls).toEqual(['a-1'])+ })++ it('reclaims an expired half-open probe lease on restart', async () => {+ const repository = new MemoryRepository([])+ repository.breakers.set('a', {+ failures: [1],+ activePermit: {+ mode: 'half_open',+ token: 'crashed-probe',+ expiresAt: 50,+ },+ })+ const instance = scheduler(repository, successfulInvoker([]), {+ clock: testClock(50),+ })+ await instance.recover()+ expect(repository.reclaimed.breakerProbes).toBe(1)+ })++ it('coalesces concurrent restart recovery', async () => {+ const repository = new MemoryRepository([])+ const recover = vi.spyOn(repository, 'recoverExpiredLeases')+ const instance = scheduler(repository, successfulInvoker([]))+ await Promise.all([+ instance.recover(),+ instance.recover(),+ instance.recover(),+ ])+ expect(recover).toHaveBeenCalledOnce()+ })++ it('reconciles quota state and runs the 30-day retention pass during recovery', async () => {+ const repository = new MemoryRepository([])+ const reconcile = vi.fn(async () => ({}))+ const maintain = vi.fn(async () => ({ compacted: 0, pruned: 0 }))+ const now = 40 * 24 * 60 * 60_000++ await scheduler(repository, successfulInvoker([]), {+ clock: testClock(now),+ maintenance: { reconcile, maintain },+ }).recover()++ expect(reconcile).toHaveBeenCalledOnce()+ expect(maintain).toHaveBeenCalledExactlyOnceWith(now, 30 * 24 * 60 * 60_000)+ })++ it('rotates plugins round-robin instead of draining one plugin first', async () => {+ const repository = new MemoryRepository([+ row('a', 1),+ row('a', 2),+ row('a', 3),+ row('b', 1),+ ])+ const calls: string[] = []+ await scheduler(repository, successfulInvoker(calls), {+ claimBatch: 4,+ globalWorkers: 1,+ }).drainOnce()+ expect(repository.claims).toEqual(['a', 'b', 'a', 'a'])+ expect(calls).toEqual(['a-1', 'b-1', 'a-2', 'a-3'])+ })++ it('allows global parallelism while keeping each plugin at concurrency one', async () => {+ const repository = new MemoryRepository([+ row('a', 1),+ row('a', 2),+ row('b', 1),+ row('b', 2),+ ])+ const active = new Map<string, number>()+ const maximum = new Map<string, number>()+ const invoker: PostDeliveryPluginInvoker = {+ invoke: async ({ record, invocationId }) => {+ const pluginId = record.executable.pluginId+ const count = (active.get(pluginId) ?? 0) + 1+ active.set(pluginId, count)+ maximum.set(pluginId, Math.max(maximum.get(pluginId) ?? 0, count))+ await new Promise((resolve) => setTimeout(resolve, 1))+ active.set(pluginId, count - 1)+ return {+ kind: 'success',+ receipt: {+ deliveryId: record.deliveryId,+ invocationId,+ },+ }+ },+ }+ await scheduler(repository, invoker, {+ claimBatch: 4,+ globalWorkers: 2,+ }).drainOnce()+ expect(maximum).toEqual(+ new Map([+ ['a', 1],+ ['b', 1],+ ])+ )+ })++ it('passes only creation-time permissions intersected with live grants', async () => {+ const repository = new MemoryRepository([row('a', 1)])+ let received: readonly string[] = []+ let generation = -1+ const invoker: PostDeliveryPluginInvoker = {+ invoke: async ({+ record,+ invocationId,+ effectivePermissions,+ permissionGeneration,+ }) => {+ received = effectivePermissions+ generation = permissionGeneration+ return {+ kind: 'success',+ receipt: {+ deliveryId: record.deliveryId,+ invocationId,+ },+ }+ },+ }+ await scheduler(repository, invoker, {+ claimBatch: 1,+ policy: policy(['metadata', 'notify']),+ }).drainOnce()+ expect(received).toEqual(['metadata'])+ expect(generation).toBe(2)+ })++ it('dead-letters before invocation when a required grant was revoked', async () => {+ const repository = new MemoryRepository([row('a', 1)])+ const calls: string[] = []+ const result = await scheduler(repository, successfulInvoker(calls), {+ claimBatch: 1,+ policy: policy(['notify']),+ }).drainOnce()+ expect(result.deadLettered).toBe(1)+ expect(repository.rows[0].terminalReason).toBe('permission_revoked')+ expect(calls).toEqual([])+ })++ it('dead-letters at the exact active-age boundary without invoking', async () => {+ const repository = new MemoryRepository([row('a', 1)])+ const calls: string[] = []+ const result = await scheduler(repository, successfulInvoker(calls), {+ clock: testClock(60 * 60_000),+ claimBatch: 1,+ maxActiveAgeMs: 60 * 60_000,+ }).drainOnce()+ expect(result.claimed).toBe(0)+ expect(repository.rows[0].terminalReason).toBe('age_limit')+ expect(calls).toEqual([])+ })++ it('terminalizes a reclaimed row already at the attempt limit before incrementing', async () => {+ const exhausted = row('a', 1)+ exhausted.attemptCount = 3+ const repository = new MemoryRepository([exhausted])+ const calls: string[] = []+ const result = await scheduler(repository, successfulInvoker(calls), {+ claimBatch: 1,+ maxAttempts: 3,+ }).drainOnce()+ expect(result.claimed).toBe(0)+ expect(exhausted.status).toBe('dead_letter')+ expect(exhausted.terminalReason).toBe('attempt_limit')+ expect(calls).toEqual([])+ })++ it('treats a superseded executable as a permanent lifecycle outcome', async () => {+ const repository = new MemoryRepository([row('a', 1)])+ const calls: string[] = []+ const result = await scheduler(repository, successfulInvoker(calls), {+ claimBatch: 1,+ policy: {+ acquire: async () => ({ kind: 'permanent', reason: 'superseded' }),+ },+ }).drainOnce()+ expect(result.deadLettered).toBe(1)+ expect(repository.rows[0].terminalReason).toBe('superseded')+ expect(repository.rows[0].status).toBe('superseded')+ expect(calls).toEqual([])+ })++ it('requires a receipt matching both stable delivery and fresh invocation IDs', async () => {+ const repository = new MemoryRepository([row('a', 1)])+ const result = await scheduler(+ repository,+ {+ invoke: async () => ({+ kind: 'success',+ receipt: {+ deliveryId: 'another-delivery',+ invocationId: 'another-invocation',+ },+ }),+ },+ { claimBatch: 1 }+ ).drainOnce()+ expect(result.retried).toBe(1)+ expect(repository.rows[0].status).toBe('pending')+ expect(repository.rows[0].nextAttemptAt).toBe(100)+ })++ it('opens, pauses, and half-opens the persistent per-plugin breaker', async () => {+ const repository = new MemoryRepository([row('a', 1)])+ const clock = testClock()+ let attempts = 0+ const invoker: PostDeliveryPluginInvoker = {+ invoke: async ({ record, invocationId }) => {+ attempts += 1+ if (attempts < 3) {+ return {+ kind: 'failure',+ classification: 'retryable',+ code: 'plugin.hook.worker_crashed',+ }+ }+ return {+ kind: 'success',+ receipt: {+ deliveryId: record.deliveryId,+ invocationId,+ },+ }+ },+ }+ const instance = scheduler(repository, invoker, {+ clock,+ claimBatch: 1,+ breakerThreshold: 2,+ })++ await instance.drainOnce()+ clock.set(100)+ await instance.drainOnce()+ clock.set(300)+ await expect(instance.drainOnce()).resolves.toMatchObject({ claimed: 0 })+ clock.set(60_100)+ await expect(instance.drainOnce()).resolves.toMatchObject({ delivered: 1 })+ expect(attempts).toBe(3)+ expect(repository.rows[0].status).toBe('delivered')+ })++ it('keeps polling after a transient repository failure', async () => {+ const repository = new MemoryRepository([row('a', 1)])+ const list = vi.spyOn(repository, 'listClaimablePluginIds')+ list.mockRejectedValueOnce(new Error('sqlite busy'))+ const controller = new AbortController()+ let sleeps = 0+ const clock: PostDeliveryClock = {+ now: () => 0,+ sleep: async () => {+ sleeps += 1+ if (sleeps >= 2) controller.abort()+ },+ }++ await scheduler(repository, successfulInvoker([]), {+ clock,+ claimBatch: 1,+ }).start(controller.signal)++ expect(list).toHaveBeenCalledTimes(3)+ expect(repository.rows[0].status).toBe('delivered')+ })++ it('does not claim after shutdown aborts an in-flight breaker permit', async () => {+ const repository = new MemoryRepository([row('a', 1)])+ let releasePermit!: (permit: PostDeliveryBreakerPermit) => void+ vi.spyOn(repository, 'acquireBreakerPermit').mockImplementation(+ async (_pluginId, _now, token) =>+ new Promise<PostDeliveryBreakerPermit>((resolve) => {+ releasePermit = resolve+ void token+ })+ )+ const controller = new AbortController()+ const running = scheduler(repository, successfulInvoker([]), {+ claimBatch: 1,+ }).start(controller.signal)+ await vi.waitFor(() => expect(releasePermit).toBeTypeOf('function'))++ controller.abort()+ releasePermit({ mode: 'closed', token: 'permit-after-abort' })+ await running++ expect(repository.claims).toEqual([])+ })+})diff --git a/src/core/plugin/post/delivery-scheduler.ts b/src/core/plugin/post/delivery-scheduler.tsnew file mode 100644index 00000000..d6ecc44b--- /dev/null+++ b/src/core/plugin/post/delivery-scheduler.ts@@ -0,0 +1,604 @@+import { randomUUID } from 'node:crypto'+import { setTimeout as delay } from 'node:timers/promises'+import {+ NOOP_POST_DELIVERY_OBSERVABILITY,+ type PostDeliveryObservability,+ safeObserve,+} from './delivery-observability'+import {+ computeRetryDelayMs,+ DEFAULT_POST_DELIVERY_SCHEDULER_CONFIG,+ intersectPermissions,+ missingRequiredPermissions,+ type PostDeliveryBreakerPermit,+ type PostDeliveryClaim,+ type PostDeliveryClock,+ type PostDeliveryInvocationResult,+ type PostDeliveryJitter,+ type PostDeliveryPermanentReason,+ type PostDeliveryPluginInvoker,+ type PostDeliveryPolicyDecision,+ type PostDeliveryPolicyProvider,+ type PostDeliveryRepository,+ type PostDeliverySchedulerConfig,+ PostDeliverySchedulerConfigSchema,+} from './delivery-types'++const SYSTEM_CLOCK: PostDeliveryClock = {+ now: () => Date.now(),+ sleep: async (ms, signal) => {+ await delay(ms, undefined, { signal })+ },+}++const SYSTEM_JITTER: PostDeliveryJitter = {+ factor: () => 0.75 + Math.random() * 0.5,+}++export interface PostDeliverySchedulerOptions {+ repository: PostDeliveryRepository+ policy: PostDeliveryPolicyProvider+ invoker: PostDeliveryPluginInvoker+ config?: Partial<PostDeliverySchedulerConfig>+ clock?: PostDeliveryClock+ jitter?: PostDeliveryJitter+ observability?: PostDeliveryObservability+ idFactory?: () => string+ maintenance?: {+ reconcile(): Promise<unknown>+ maintain(+ now: number,+ terminalRetentionMs: number+ ): Promise<{ compacted: number; pruned: number }>+ }+}++export interface PostDeliveryBatchResult {+ claimed: number+ delivered: number+ retried: number+ deadLettered: number+ leaseLost: number+}++type RowOutcome = keyof Omit<PostDeliveryBatchResult, 'claimed'>++const MAINTENANCE_INTERVAL_MS = 60 * 60_000++function isAbortRequested(signal?: AbortSignal): boolean {+ return signal?.aborted === true+}++export class PostDeliveryScheduler {+ private readonly config: PostDeliverySchedulerConfig+ private readonly clock: PostDeliveryClock+ private readonly jitter: PostDeliveryJitter+ private readonly observability: PostDeliveryObservability+ private readonly idFactory: () => string+ private cursor?: string+ private drainInFlight?: Promise<PostDeliveryBatchResult>+ private recoveryInFlight?: Promise<void>+ private recovered = false+ private nextMaintenanceAt = 0++ constructor(private readonly options: PostDeliverySchedulerOptions) {+ this.config = PostDeliverySchedulerConfigSchema.parse(options.config ?? {})+ this.clock = options.clock ?? SYSTEM_CLOCK+ this.jitter = options.jitter ?? SYSTEM_JITTER+ this.observability =+ options.observability ?? NOOP_POST_DELIVERY_OBSERVABILITY+ this.idFactory = options.idFactory ?? randomUUID+ }++ async recover(): Promise<void> {+ if (this.recovered) return+ if (this.recoveryInFlight) return this.recoveryInFlight+ const operation = this.runRecovery().finally(() => {+ if (this.recoveryInFlight === operation) this.recoveryInFlight = undefined+ })+ this.recoveryInFlight = operation+ return operation+ }++ private async runRecovery(): Promise<void> {+ const now = this.clock.now()+ await this.options.maintenance?.reconcile()+ const result = await this.storage('recoverExpiredLeases', () =>+ this.options.repository.recoverExpiredLeases(now)+ )+ await this.options.maintenance?.maintain(+ now,+ this.config.terminalRetentionMs+ )+ this.nextMaintenanceAt = now + MAINTENANCE_INTERVAL_MS+ this.recovered = true+ safeObserve(this.observability, {+ type: 'plugin.post.recovery_finished',+ at: now,+ reclaimedDeliveries: result.deliveries,+ reclaimedBreakerProbes: result.breakerProbes,+ })+ }++ async start(signal: AbortSignal): Promise<void> {+ while (!signal.aborted) {+ try {+ await this.recover()+ if (signal.aborted) break+ await this.maintainIfDue()+ if (signal.aborted) break+ const result = await this.drainOnce(signal)+ if (result.claimed === 0 && !signal.aborted) {+ await this.sleepUntilNextPoll(signal)+ }+ } catch {+ if (signal.aborted) break+ await this.sleepUntilNextPoll(signal)+ }+ }+ }++ drainOnce(signal?: AbortSignal): Promise<PostDeliveryBatchResult> {+ if (this.drainInFlight) return this.drainInFlight+ const operation = this.runBatch(signal).finally(() => {+ if (this.drainInFlight === operation) this.drainInFlight = undefined+ })+ this.drainInFlight = operation+ return operation+ }++ private async runBatch(+ signal?: AbortSignal+ ): Promise<PostDeliveryBatchResult> {+ if (!this.recovered) await this.recover()+ const result: PostDeliveryBatchResult = {+ claimed: 0,+ delivered: 0,+ retried: 0,+ deadLettered: 0,+ leaseLost: 0,+ }+ const runningPlugins = new Set<string>()+ const running = new Map<Promise<RowOutcome>, string>()++ while (+ result.claimed < this.config.claimBatch &&+ !isAbortRequested(signal)+ ) {+ let launched = false+ if (running.size < this.config.globalWorkers) {+ const pluginIds = this.rotate(+ await this.storage('listClaimablePluginIds', () =>+ this.options.repository.listClaimablePluginIds(this.clock.now())+ )+ )+ for (const pluginId of pluginIds) {+ if (+ isAbortRequested(signal) ||+ result.claimed >= this.config.claimBatch ||+ running.size >= this.config.globalWorkers+ ) {+ break+ }+ if (runningPlugins.has(pluginId)) continue+ const claimed = await this.claim(pluginId, signal)+ this.cursor = pluginId+ if (!claimed) continue+ const task = this.execute(claimed.record, claimed.permit).catch(+ (error) => {+ this.observeStorageError('deliveryTransition', error)+ return 'leaseLost' as const+ }+ )+ launched = true+ result.claimed += 1+ runningPlugins.add(pluginId)+ running.set(task, pluginId)+ void task.finally(() => {+ running.delete(task)+ runningPlugins.delete(pluginId)+ })+ }+ }++ if (running.size === 0) break+ if (!launched || running.size >= this.config.globalWorkers) {+ const outcome = await Promise.race(running.keys())+ result[outcome] += 1+ }+ }++ while (running.size > 0) {+ const outcome = await Promise.race(running.keys())+ result[outcome] += 1+ }+ return result+ }++ private rotate(pluginIds: readonly string[]): readonly string[] {+ const sorted = [...new Set(pluginIds)].sort()+ const cursor = this.cursor+ if (!cursor) return sorted+ const firstAfterCursor = sorted.findIndex((pluginId) => pluginId > cursor)+ if (firstAfterCursor < 0) return sorted+ return [+ ...sorted.slice(firstAfterCursor),+ ...sorted.slice(0, firstAfterCursor),+ ]+ }++ private async claim(+ pluginId: string,+ signal?: AbortSignal+ ): Promise<+ | {+ record: PostDeliveryClaim+ permit: PostDeliveryBreakerPermit+ }+ | undefined+ > {+ const now = this.clock.now()+ const breakerToken = this.idFactory()+ const leaseExpiresAt = now + this.config.leaseMs+ const permit = await this.storage('acquireBreakerPermit', () =>+ this.options.repository.acquireBreakerPermit(+ pluginId,+ now,+ breakerToken,+ leaseExpiresAt+ )+ )+ if (!permit) return undefined+ if (signal?.aborted) {+ await this.releasePermit(pluginId, permit)+ return undefined+ }++ const leaseToken = this.idFactory()+ let claim: PostDeliveryClaim | undefined+ try {+ claim = await this.storage('claimNextForPlugin', () =>+ this.options.repository.claimNextForPlugin({+ pluginId,+ now,+ leaseToken,+ leaseExpiresAt,+ maxAttempts: this.config.maxAttempts,+ maxActiveAgeMs: this.config.maxActiveAgeMs,+ })+ )+ } catch (error) {+ await this.releasePermit(pluginId, permit)+ throw error+ }+ if (!claim) {+ await this.releasePermit(pluginId, permit)+ return undefined+ }+ return { record: claim, permit }+ }++ private async execute(+ record: PostDeliveryClaim,+ permit: PostDeliveryBreakerPermit+ ): Promise<RowOutcome> {+ const invocationStartedAt = this.clock.now()+ const invocationId = this.idFactory()+ safeObserve(this.observability, {+ type: 'plugin.post.claimed',+ at: invocationStartedAt,+ pluginId: record.executable.pluginId,+ hook: record.hook,+ deliveryId: record.deliveryId,+ attemptCount: record.attemptCount,+ queueLatencyMs: Math.max(0, invocationStartedAt - record.createdAt),+ })++ if (invocationStartedAt - record.createdAt >= this.config.maxActiveAgeMs) {+ return this.makePermanent(+ record,+ permit,+ invocationId,+ 'age_limit',+ 'plugin.post.dead_letter',+ invocationStartedAt+ )+ }+ if (record.attemptCount > this.config.maxAttempts) {+ return this.makePermanent(+ record,+ permit,+ invocationId,+ 'attempt_limit',+ 'plugin.post.dead_letter',+ invocationStartedAt+ )+ }++ let decision: PostDeliveryPolicyDecision+ try {+ decision = await this.options.policy.acquire(record)+ } catch (error) {+ return this.makeRetryable(+ record,+ permit,+ invocationId,+ 'plugin.post.retryable',+ error instanceof Error ? error.message : String(error),+ invocationStartedAt+ )+ }++ if (decision.kind === 'permanent') {+ return this.makePermanent(+ record,+ permit,+ invocationId,+ decision.reason,+ `plugin.post.${decision.reason}`,+ invocationStartedAt,+ decision.message+ )+ }++ const { lease } = decision+ try {+ const effectivePermissions = intersectPermissions(+ record.createdEffectivePermissions,+ lease.currentEffectivePermissions+ )+ const missing = missingRequiredPermissions(+ record.requiredPermissions,+ effectivePermissions+ )+ if (missing.length > 0) {+ return await this.makePermanent(+ record,+ permit,+ invocationId,+ 'permission_revoked',+ 'plugin.post.permission_revoked',+ invocationStartedAt+ )+ }++ let invocation: PostDeliveryInvocationResult+ try {+ invocation = await this.options.invoker.invoke({+ record,+ invocationId,+ permissionGeneration: lease.currentGeneration,+ effectivePermissions,+ signal: lease.signal,+ })+ } catch (error) {+ return await this.makeRetryable(+ record,+ permit,+ invocationId,+ 'plugin.post.retryable',+ error instanceof Error ? error.message : String(error),+ invocationStartedAt+ )+ }++ if (invocation.kind === 'failure') {+ if (invocation.classification === 'permanent') {+ return await this.makePermanent(+ record,+ permit,+ invocationId,+ invocation.permanentReason ?? 'output_invalid',+ invocation.code,+ invocationStartedAt,+ invocation.message+ )+ }+ return await this.makeRetryable(+ record,+ permit,+ invocationId,+ invocation.code,+ invocation.message,+ invocationStartedAt+ )+ }++ if (+ invocation.receipt.deliveryId !== record.deliveryId ||+ invocation.receipt.invocationId !== invocationId+ ) {+ return await this.makeRetryable(+ record,+ permit,+ invocationId,+ 'plugin.hook.concurrent_protocol_violation',+ 'post-Hook exit did not match the active delivery and invocation',+ invocationStartedAt+ )+ }++ const completedAt = this.clock.now()+ const updated = await this.options.repository.complete(+ {+ deliveryId: record.deliveryId,+ leaseToken: record.leaseToken,+ receipt: { ...invocation.receipt, completedAt },+ },+ { pluginId: record.executable.pluginId, permit, now: completedAt }+ )+ const outcome: RowOutcome = updated ? 'delivered' : 'leaseLost'+ this.observeFinish(+ record,+ invocationId,+ invocationStartedAt,+ updated ? 'delivered' : 'retry',+ updated ? undefined : 'plugin.post.lease_lost'+ )+ return outcome+ } finally {+ await lease.release()+ }+ }++ private async makeRetryable(+ record: PostDeliveryClaim,+ permit: PostDeliveryBreakerPermit,+ invocationId: string,+ errorCode: string,+ errorMessage: string | undefined,+ startedAt: number+ ): Promise<RowOutcome> {+ const failedAt = this.clock.now()+ if (+ record.attemptCount >= this.config.maxAttempts ||+ failedAt - record.createdAt >= this.config.maxActiveAgeMs+ ) {+ return this.makePermanent(+ record,+ permit,+ invocationId,+ record.attemptCount >= this.config.maxAttempts+ ? 'attempt_limit'+ : 'age_limit',+ errorCode,+ startedAt,+ errorMessage+ )+ }++ const nextAttemptAt =+ failedAt ++ computeRetryDelayMs(record.attemptCount, this.config, this.jitter)+ const result = await this.options.repository.retry(+ {+ deliveryId: record.deliveryId,+ leaseToken: record.leaseToken,+ nextAttemptAt,+ errorCode,+ errorMessage,+ failedAt,+ },+ {+ pluginId: record.executable.pluginId,+ permit,+ now: failedAt,+ threshold: this.config.breakerThreshold,+ windowMs: this.config.breakerWindowMs,+ pauseMs: this.config.breakerPauseMs,+ }+ )+ if (result.breaker.state !== 'closed') {+ safeObserve(this.observability, {+ type: 'plugin.post.breaker_changed',+ at: failedAt,+ pluginId: record.executable.pluginId,+ state: result.breaker.state,+ openUntil: result.breaker.openUntil,+ })+ }+ this.observeFinish(record, invocationId, startedAt, 'retry', errorCode)+ return result.updated ? 'retried' : 'leaseLost'+ }++ private async makePermanent(+ record: PostDeliveryClaim,+ permit: PostDeliveryBreakerPermit,+ invocationId: string,+ reason: PostDeliveryPermanentReason,+ errorCode: string,+ startedAt: number,+ errorMessage?: string+ ): Promise<RowOutcome> {+ const completedAt = this.clock.now()+ const updated = await this.options.repository.deadLetter(+ {+ deliveryId: record.deliveryId,+ leaseToken: record.leaseToken,+ terminalStatus: reason === 'superseded' ? 'superseded' : 'dead_letter',+ reason,+ errorCode,+ errorMessage,+ completedAt,+ },+ { pluginId: record.executable.pluginId, permit }+ )+ this.observeFinish(+ record,+ invocationId,+ startedAt,+ 'dead_letter',+ errorCode+ )+ return updated ? 'deadLettered' : 'leaseLost'+ }++ private observeFinish(+ record: PostDeliveryClaim,+ invocationId: string,+ startedAt: number,+ outcome: 'delivered' | 'retry' | 'dead_letter',+ errorCode?: string+ ): void {+ const at = this.clock.now()+ safeObserve(this.observability, {+ type: 'plugin.post.invocation_finished',+ at,+ pluginId: record.executable.pluginId,+ hook: record.hook,+ deliveryId: record.deliveryId,+ invocationId,+ durationMs: Math.max(0, at - startedAt),+ outcome,+ errorCode,+ })+ }++ private async releasePermit(+ pluginId: string,+ permit: PostDeliveryBreakerPermit+ ): Promise<void> {+ await this.storage('releaseBreakerPermit', () =>+ this.options.repository.releaseBreakerPermit(pluginId, permit)+ )+ }++ private async maintainIfDue(): Promise<void> {+ const maintenance = this.options.maintenance+ const now = this.clock.now()+ if (!maintenance || now < this.nextMaintenanceAt) return+ await maintenance.maintain(now, this.config.terminalRetentionMs)+ this.nextMaintenanceAt = now + MAINTENANCE_INTERVAL_MS+ }++ private async sleepUntilNextPoll(signal: AbortSignal): Promise<void> {+ try {+ await this.clock.sleep(this.config.pollIntervalMs, signal)+ } catch (error) {+ if (!signal.aborted) throw error+ }+ }++ private async storage<T>(+ operation: string,+ run: () => Promise<T>+ ): Promise<T> {+ try {+ return await run()+ } catch (error) {+ this.observeStorageError(operation, error)+ throw error+ }+ }++ private observeStorageError(operation: string, _error: unknown): void {+ safeObserve(this.observability, {+ type: 'plugin.post.storage_error',+ at: this.clock.now(),+ operation,+ errorCode: 'plugin.post.storage_error',+ })+ }+}++export { DEFAULT_POST_DELIVERY_SCHEDULER_CONFIG }diff --git a/src/core/plugin/post/delivery-types.test.ts b/src/core/plugin/post/delivery-types.test.tsnew file mode 100644index 00000000..e18403d5--- /dev/null+++ b/src/core/plugin/post/delivery-types.test.ts@@ -0,0 +1,73 @@+import { describe, expect, it } from 'vitest'+import {+ computeRetryDelayMs,+ intersectPermissions,+ missingRequiredPermissions,+ PostDeliveryQuotaConfigSchema,+ PostDeliverySchedulerConfigSchema,+} from './delivery-types'++describe('post-delivery configuration', () => {+ it('applies the specified operational defaults', () => {+ expect(PostDeliverySchedulerConfigSchema.parse({})).toMatchObject({+ leaseMs: 120_000,+ claimBatch: 64,+ globalWorkers: 8,+ maxAttempts: 12,+ maxActiveAgeMs: 7 * 24 * 60 * 60_000,+ breakerThreshold: 5,+ breakerWindowMs: 10 * 60_000,+ breakerPauseMs: 15 * 60_000,+ })+ })++ it('rejects a delay cap below the base and global quotas below plugin quotas', () => {+ expect(() =>+ PostDeliverySchedulerConfigSchema.parse({+ baseDelayMs: 60_000,+ delayCapMs: 59_999,+ })+ ).toThrow()+ expect(() =>+ PostDeliveryQuotaConfigSchema.parse({+ pluginActiveBytes: 64 * 1024 * 1024,+ globalActiveBytes: 63 * 1024 * 1024,+ })+ ).toThrow()+ })+})++describe('post-delivery retry and permission helpers', () => {+ it('uses capped exponential delay followed by bounded injected jitter', () => {+ expect(+ computeRetryDelayMs(+ 1,+ { baseDelayMs: 1_000, delayCapMs: 60_000 },+ { factor: () => 0.75 }+ )+ ).toBe(750)+ expect(+ computeRetryDelayMs(+ 20,+ { baseDelayMs: 1_000, delayCapMs: 60_000 },+ { factor: () => 1.25 }+ )+ ).toBe(75_000)+ expect(() =>+ computeRetryDelayMs(+ 1,+ { baseDelayMs: 1_000, delayCapMs: 60_000 },+ { factor: () => 1.251 }+ )+ ).toThrow()+ })++ it('never expands historical permissions with a later grant', () => {+ const effective = intersectPermissions(+ ['http', 'metadata'],+ ['metadata', 'notify']+ )+ expect(effective).toEqual(['metadata'])+ expect(missingRequiredPermissions(['http'], effective)).toEqual(['http'])+ })+})diff --git a/src/core/plugin/post/delivery-types.ts b/src/core/plugin/post/delivery-types.tsnew file mode 100644index 00000000..eb669288--- /dev/null+++ b/src/core/plugin/post/delivery-types.ts@@ -0,0 +1,457 @@+import { z } from 'zod'++export const POST_DELIVERY_ROW_CHARGE_BYTES = 512+export const POST_DELIVERY_RECEIPT_MAX_BYTES = 1024+export const POST_DELIVERY_HARD_BUDGET_BYTES = 1024 * 1024 * 1024+export const POST_DELIVERY_CORE_RESERVE_BYTES = 128 * 1024 * 1024++export const postHookNames = ['afterComplete', 'onError'] as const+export type PostHookName = (typeof postHookNames)[number]++export const postDeliveryStatuses = [+ 'pending',+ 'delivering',+ 'delivered',+ 'dead_letter',+ 'superseded',+] as const+export type PostDeliveryStatus = (typeof postDeliveryStatuses)[number]++export const postDeliveryPermanentReasons = [+ 'input_invalid',+ 'identity_missing',+ 'superseded',+ 'disabled',+ 'uninstalled',+ 'quarantined',+ 'permission_revoked',+ 'output_invalid',+ 'attempt_limit',+ 'age_limit',+] as const+export type PostDeliveryPermanentReason =+ (typeof postDeliveryPermanentReasons)[number]++export type PostDeliveryAdmissionReason =+ | 'plugin_active_rows'+ | 'plugin_active_bytes'+ | 'global_active_rows'+ | 'global_active_bytes'+ | 'post_hard_budget'++export type JsonPrimitive = string | number | boolean | null+export type JsonValue =+ | JsonPrimitive+ | { readonly [key: string]: JsonValue }+ | readonly JsonValue[]++export interface PluginExecutableIdentity {+ pluginId: string+ version: string+ digest: string+}++export interface PostDeliveryCandidateSnapshot {+ hook: PostHookName+ executable: PluginExecutableIdentity+ createdGeneration: number+ requiredPermissions: readonly string[]+ createdEffectivePermissions: readonly string[]+}++/**+ * A complete, already runtime-validated event. It deliberately contains no+ * task-store reference: delivery remains possible after the task is deleted.+ */+export interface PostDeliveryEventSnapshot {+ schemaVersion: 1+ occurrenceId: string+ taskId: string+ occurredAt: number+ /** Validated post-Hook fields except for the host-created delivery envelope. */+ payload: JsonValue+}++export interface PostDeliveryAdmission {+ deliveryId: string+ deduplicationKey: string+ hook: PostHookName+ executable: PluginExecutableIdentity+ createdGeneration: number+ requiredPermissions: readonly string[]+ createdEffectivePermissions: readonly string[]+ occurrenceId: string+ taskId: string+ occurredAt: number+ canonicalPayload: string+ payloadBytes: number+ permissionSnapshotBytes: number+ reservedBytes: number+ createdAt: number+ initialStatus: 'pending' | 'dead_letter'+ initialReason?: 'input_invalid'+ initialErrorCode?: string+}++export type PostDeliveryRecord = Omit<+ PostDeliveryAdmission,+ 'initialStatus' | 'initialReason' | 'initialErrorCode'+> & {+ status: PostDeliveryStatus+ attemptCount: number+ nextAttemptAt: number+ leaseToken?: string+ leaseExpiresAt?: number+ terminalReason?: PostDeliveryPermanentReason+}++export type PostDeliveryClaim = PostDeliveryRecord & {+ status: 'delivering'+ leaseToken: string+ leaseExpiresAt: number+}++export interface PostDeliveryReceipt {+ deliveryId: string+ invocationId: string+ completedAt: number+}++export type PostDeliveryInvocationReceipt = Pick<+ PostDeliveryReceipt,+ 'deliveryId' | 'invocationId'+>++export interface PostDeliveryTerminalReceipt {+ deliveryId: string+ pluginId: string+ hook: PostHookName+ status: 'delivered' | 'dead_letter' | 'superseded'+ completedAt: number+ attemptCount: number+ reason?: PostDeliveryPermanentReason+}++export interface PostDeliveryQuotaTombstone {+ pluginId: string+ hook: PostHookName+ reason: PostDeliveryAdmissionReason+ utcDay: string+ count: number+ firstOccurrenceId: string+ lastOccurrenceId: string+ firstRejectedAt: number+ lastRejectedAt: number+}++export interface PostDeliveryBreakerPermit {+ mode: 'closed' | 'half_open'+ token: string+}++export interface PostDeliveryBreakerState {+ pluginId: string+ state: 'closed' | 'open' | 'half_open'+ failureCount: number+ windowStartedAt?: number+ openUntil?: number+ probeLeaseExpiresAt?: number+}++export const PostDeliverySchedulerConfigSchema = z+ .object({+ leaseMs: z+ .number()+ .int()+ .min(30_000)+ .max(10 * 60_000)+ .default(120_000),+ claimBatch: z.number().int().min(1).max(256).default(64),+ globalWorkers: z.number().int().min(1).max(32).default(8),+ maxAttempts: z.number().int().min(1).max(32).default(12),+ maxActiveAgeMs: z+ .number()+ .int()+ .min(60 * 60_000)+ .max(30 * 24 * 60 * 60_000)+ .default(7 * 24 * 60 * 60_000),+ baseDelayMs: z.number().int().min(100).max(60_000).default(1_000),+ delayCapMs: z+ .number()+ .int()+ .min(60_000)+ .max(24 * 60 * 60_000)+ .default(60 * 60_000),+ terminalRetentionMs: z+ .number()+ .int()+ .min(24 * 60 * 60_000)+ .max(90 * 24 * 60 * 60_000)+ .default(30 * 24 * 60 * 60_000),+ breakerThreshold: z.number().int().min(1).max(100).default(5),+ breakerWindowMs: z+ .number()+ .int()+ .min(60_000)+ .max(60 * 60_000)+ .default(10 * 60_000),+ breakerPauseMs: z+ .number()+ .int()+ .min(60_000)+ .max(24 * 60 * 60_000)+ .default(15 * 60_000),+ pollIntervalMs: z.number().int().min(10).max(60_000).default(1_000),+ })+ .superRefine((value, ctx) => {+ if (value.delayCapMs < value.baseDelayMs) {+ ctx.addIssue({+ code: 'custom',+ path: ['delayCapMs'],+ message: 'delayCapMs must not be below baseDelayMs',+ })+ }+ })++export type PostDeliverySchedulerConfig = z.infer<+ typeof PostDeliverySchedulerConfigSchema+>++export const DEFAULT_POST_DELIVERY_SCHEDULER_CONFIG =+ PostDeliverySchedulerConfigSchema.parse({})++export const PostDeliveryQuotaConfigSchema = z+ .object({+ pluginActiveRows: z.number().int().min(1).max(1_000).default(1_000),+ pluginActiveBytes: z+ .number()+ .int()+ .min(2 * 1024 * 1024)+ .max(64 * 1024 * 1024)+ .default(64 * 1024 * 1024),+ globalActiveRows: z.number().int().min(1_000).max(10_000).default(10_000),+ globalActiveBytes: z+ .number()+ .int()+ .min(64 * 1024 * 1024)+ .max(512 * 1024 * 1024)+ .default(512 * 1024 * 1024),+ pluginTerminalRows: z.number().int().min(1).max(4_000).default(4_000),+ pluginTerminalBytes: z+ .number()+ .int()+ .min(1024 * 1024)+ .max(4 * 1024 * 1024)+ .default(4 * 1024 * 1024),+ globalTerminalRows: z.number().int().min(4_000).max(40_000).default(40_000),+ globalTerminalBytes: z+ .number()+ .int()+ .min(4 * 1024 * 1024)+ .max(40 * 1024 * 1024)+ .default(40 * 1024 * 1024),+ })+ .superRefine((value, ctx) => {+ const pairs: ReadonlyArray<+ readonly [keyof typeof value, keyof typeof value]+ > = [+ ['globalActiveRows', 'pluginActiveRows'],+ ['globalActiveBytes', 'pluginActiveBytes'],+ ['globalTerminalRows', 'pluginTerminalRows'],+ ['globalTerminalBytes', 'pluginTerminalBytes'],+ ]+ for (const [globalKey, pluginKey] of pairs) {+ if (value[globalKey] < value[pluginKey]) {+ ctx.addIssue({+ code: 'custom',+ path: [globalKey],+ message: `${globalKey} must cover ${pluginKey}`,+ })+ }+ }+ })++export type PostDeliveryQuotaConfig = z.infer<+ typeof PostDeliveryQuotaConfigSchema+>++export const DEFAULT_POST_DELIVERY_QUOTA_CONFIG =+ PostDeliveryQuotaConfigSchema.parse({})++export interface PostDeliveryClock {+ now(): number+ sleep(ms: number, signal: AbortSignal): Promise<void>+}++export interface PostDeliveryJitter {+ /** Returns a factor in the closed interval [0.75, 1.25]. */+ factor(): number+}++export interface PostDeliveryPolicyLease {+ currentGeneration: number+ currentEffectivePermissions: readonly string[]+ signal: AbortSignal+ release(): void | Promise<void>+}++export type PostDeliveryPolicyDecision =+ | { kind: 'authorized'; lease: PostDeliveryPolicyLease }+ | {+ kind: 'permanent'+ reason:+ | 'identity_missing'+ | 'superseded'+ | 'disabled'+ | 'uninstalled'+ | 'quarantined'+ message?: string+ }++export interface PostDeliveryPolicyProvider {+ /** Acquires the live generation lease; policy changes abort its signal. */+ acquire(record: PostDeliveryClaim): Promise<PostDeliveryPolicyDecision>+}++export interface PostDeliveryInvocationInput {+ record: PostDeliveryClaim+ invocationId: string+ permissionGeneration: number+ effectivePermissions: readonly string[]+ signal: AbortSignal+}++export type PostDeliveryInvocationResult =+ | { kind: 'success'; receipt: PostDeliveryInvocationReceipt }+ | {+ kind: 'failure'+ classification: 'retryable' | 'permanent'+ code: string+ message?: string+ permanentReason?: 'input_invalid' | 'output_invalid'+ }++export interface PostDeliveryPluginInvoker {+ /** Activates the recorded identity and enters the shared per-plugin lane. */+ invoke(+ input: PostDeliveryInvocationInput+ ): Promise<PostDeliveryInvocationResult>+}++export interface ClaimPostDeliveryInput {+ pluginId: string+ now: number+ leaseToken: string+ leaseExpiresAt: number+ maxAttempts: number+ maxActiveAgeMs: number+}++export interface RetryPostDeliveryInput {+ deliveryId: string+ leaseToken: string+ nextAttemptAt: number+ errorCode: string+ errorMessage?: string+ failedAt: number+}++export interface DeadLetterPostDeliveryInput {+ deliveryId: string+ leaseToken: string+ terminalStatus: 'dead_letter' | 'superseded'+ reason: PostDeliveryPermanentReason+ errorCode: string+ errorMessage?: string+ completedAt: number+}++export interface CompletePostDeliveryInput {+ deliveryId: string+ leaseToken: string+ receipt: PostDeliveryReceipt+}++export interface BreakerFailureInput {+ pluginId: string+ permit: PostDeliveryBreakerPermit+ now: number+ threshold: number+ windowMs: number+ pauseMs: number+}++export interface PostDeliveryRepository {+ /** Reclaims expired delivery and half-open probe leases after restart. */+ recoverExpiredLeases(now: number): Promise<{+ deliveries: number+ breakerProbes: number+ }>+ listClaimablePluginIds(now: number): Promise<readonly string[]>+ claimNextForPlugin(+ input: ClaimPostDeliveryInput+ ): Promise<PostDeliveryClaim | undefined>+ acquireBreakerPermit(+ pluginId: string,+ now: number,+ token: string,+ leaseExpiresAt: number+ ): Promise<PostDeliveryBreakerPermit | undefined>+ releaseBreakerPermit(+ pluginId: string,+ permit: PostDeliveryBreakerPermit+ ): Promise<void>+ complete(+ input: CompletePostDeliveryInput,+ breaker: {+ pluginId: string+ permit: PostDeliveryBreakerPermit+ now: number+ }+ ): Promise<boolean>+ retry(+ input: RetryPostDeliveryInput,+ breaker: BreakerFailureInput+ ): Promise<{ updated: boolean; breaker: PostDeliveryBreakerState }>+ deadLetter(+ input: DeadLetterPostDeliveryInput,+ breaker: { pluginId: string; permit: PostDeliveryBreakerPermit }+ ): Promise<boolean>+}++export function intersectPermissions(+ created: readonly string[],+ current: readonly string[]+): readonly string[] {+ const live = new Set(current)+ return [...new Set(created)]+ .filter((permission) => live.has(permission))+ .sort()+}++export function missingRequiredPermissions(+ required: readonly string[],+ effective: readonly string[]+): readonly string[] {+ const available = new Set(effective)+ return [...new Set(required)]+ .filter((permission) => !available.has(permission))+ .sort()+}++export function computeRetryDelayMs(+ attemptCount: number,+ config: Pick<PostDeliverySchedulerConfig, 'baseDelayMs' | 'delayCapMs'>,+ jitter: PostDeliveryJitter+): number {+ const factor = jitter.factor()+ if (!Number.isFinite(factor) || factor < 0.75 || factor > 1.25) {+ throw new RangeError('post-delivery jitter must be in [0.75, 1.25]')+ }+ const exponent = Math.max(0, attemptCount - 1)+ const exponential = config.baseDelayMs * 2 ** Math.min(exponent, 52)+ return Math.max(+ 1,+ Math.round(Math.min(config.delayCapMs, exponential) * factor)+ )+}diff --git a/src/core/plugin/runtime/plugin-hook-runtime.integration.test.ts b/src/core/plugin/runtime/plugin-hook-runtime.integration.test.tsnew file mode 100644index 00000000..cda272eb--- /dev/null+++ b/src/core/plugin/runtime/plugin-hook-runtime.integration.test.ts@@ -0,0 +1,251 @@+import { cpSync, mkdirSync, mkdtempSync, rmSync } from 'node:fs'+import { tmpdir } from 'node:os'+import path from 'node:path'+import { ActivationDispatcher } from '@core/plugin/host/activation-dispatcher'+import { makeStubCapabilityHost } from '@core/plugin/host/test-helpers'+import { PluginRegistry } from '@core/plugin/plugin-registry'+import { PluginStateStore } from '@core/plugin/state/plugin-state-store'+import { migrate } from '@core/session/migrations'+import { SqlitePostDeliveryRepository } from '@core/session/post-delivery-repository'+import { DownloadErrorCode } from '@shared/errors'+import {+ makeDownloadTask,+ TaskKind,+ TaskStatus,+ TaskType,+} from '@shared/types/task'+import type { TaskTerminalOccurrence } from '@shared/types/task-occurrence'+import Database from 'better-sqlite3'+import { afterEach, describe, expect, it } from 'vitest'+import type { CapabilityHost } from '../capabilities/interface'+import { PluginHost } from '../host/plugin-host'+import { PluginHookRuntime } from './plugin-hook-runtime'++const FIXTURE_ROOT = path.resolve(+ __dirname,+ '../../../../tests/fixtures/plugins/test.hook-delivery-runtime'+)+const WORKER_SCRIPT_PATH = path.resolve(+ __dirname,+ '../../../../dist-test/quick-js-worker.cjs'+)++describe('PluginHookRuntime integration', () => {+ const cleanups: Array<() => Promise<void> | void> = []++ afterEach(async () => {+ for (const cleanup of cleanups.splice(0).reverse()) await cleanup()+ })++ it('delivers a persisted terminal payload through the real PluginHost after the task object is gone', async () => {+ const root = mkdtempSync(path.join(tmpdir(), 'motrix-hook-runtime-'))+ cleanups.push(() => rmSync(root, { recursive: true, force: true }))+ const pluginsDir = path.join(root, 'plugins')+ mkdirSync(pluginsDir)+ cpSync(FIXTURE_ROOT, path.join(pluginsDir, 'test.hook-delivery-runtime'), {+ recursive: true,+ })++ const database = new Database(':memory:')+ cleanups.push(() => {+ database.close()+ })+ migrate(database)+ const stateStore = new PluginStateStore(database)+ const registry = new PluginRegistry({+ pluginsDir,+ builtinDir: path.join(root, 'builtin'),+ stateStore,+ hostVersion: '2.5.0',+ })+ await registry.discover()+ expect(registry.loadErrors()).toEqual([])+ expect(registry.list()).toEqual([+ expect.objectContaining({+ id: 'test.hook-delivery-runtime',+ enabled: true,+ }),+ ])++ const capabilityHost = makeStubCapabilityHost()+ Object.assign(capabilityHost, {+ fsTaskFor: () => ({}) as ReturnType<CapabilityHost['fsTaskFor']>,+ metadata: {+ getAll: async () => ({ persisted: true }),+ } as unknown as CapabilityHost['metadata'],+ })+ const host = new PluginHost({+ registry,+ stateStore,+ capabilityHost,+ workerScriptPath: WORKER_SCRIPT_PATH,+ appVersion: '2.5.0',+ runtime: 'server',+ hostLanguage: 'en-US',+ })+ cleanups.push(() => host.shutdown())+ const activation = new ActivationDispatcher(registry, host)+ const repository = new SqlitePostDeliveryRepository(database)+ const runtime = new PluginHookRuntime({+ activation,+ registry,+ grants: { effectivePermissionsFor: async () => new Set<string>() },+ host,+ capabilityHost,+ repository,+ persistTerminal: async (_task, _occurrence, input) => {+ input.beforeCommit()+ repository.admitMany(input.postDeliveries)+ },+ })++ const now = Date.now()+ let task = makeDownloadTask({+ id: 'task-persisted-post',+ name: 'archive.zip',+ type: TaskType.Http,+ kind: TaskKind.Direct,+ status: TaskStatus.Completed,+ progress: 1,+ totalBytes: 10,+ downloadedBytes: 10,+ sizeWhenDone: 10,+ fileCount: 1,+ saveDir: root,+ filename: 'archive.zip',+ finalName: 'archive.zip',+ finalPath: path.join(root, 'archive.zip'),+ diskPath: path.join(root, 'archive.zip'),+ createdAt: now - 100,+ updatedAt: now,+ finishedAt: now,+ source: 'user',+ sourceMeta: null,+ instances: [],+ })+ const occurrence: TaskTerminalOccurrence = {+ occurrenceId: 'occurrence-persisted-post',+ type: 'terminal',+ taskId: task.id,+ fromStatus: TaskStatus.Downloading,+ toStatus: TaskStatus.Completed,+ cause: 'engine',+ errorGroup: null,+ createdAt: now,+ }++ expect(+ activation.candidatesForHook('afterComplete', { taskType: TaskType.Http })+ ).toHaveLength(1)+ await runtime.persistTerminal(task, occurrence)+ expect(+ database+ .prepare(+ 'SELECT status FROM plugin_post_deliveries WHERE occurrence_id=?'+ )+ .get(occurrence.occurrenceId)+ ).toEqual({ status: 'pending' })+ task = null as unknown as typeof task+ await runtime.scheduler.drainOnce()++ const observations = await host.invokeCommand(+ 'test.hook-delivery-runtime',+ 'test.hook-delivery-runtime.read',+ undefined+ )+ expect(observations).toEqual([+ {+ hook: 'afterComplete',+ deliveryId: expect.stringMatching(/^post:v1:/),+ occurrenceId: occurrence.occurrenceId,+ occurredAt: occurrence.createdAt,+ metadataReadonly: true,+ },+ ])+ expect(+ database+ .prepare(+ 'SELECT status FROM plugin_post_deliveries WHERE occurrence_id=?'+ )+ .get(occurrence.occurrenceId)+ ).toEqual({ status: 'delivered' })++ const errorTask = makeDownloadTask({+ id: 'task-persisted-error',+ name: 'broken.zip',+ type: TaskType.Http,+ kind: TaskKind.Direct,+ status: TaskStatus.Error,+ progress: 0.5,+ totalBytes: 10,+ downloadedBytes: 5,+ sizeWhenDone: 10,+ fileCount: 1,+ saveDir: root,+ filename: 'broken.zip',+ finalName: 'broken.zip',+ finalPath: path.join(root, 'broken.zip'),+ diskPath: path.join(root, 'broken.zip'),+ createdAt: now - 50,+ updatedAt: now + 1,+ finishedAt: now + 1,+ errorCode: DownloadErrorCode.NetworkError,+ errorMessage: 'Download failed',+ source: 'user',+ sourceMeta: null,+ instances: [],+ })+ const errorOccurrence: TaskTerminalOccurrence = {+ occurrenceId: 'occurrence-persisted-error',+ type: 'terminal',+ taskId: errorTask.id,+ fromStatus: TaskStatus.Downloading,+ toStatus: TaskStatus.Error,+ cause: 'engine',+ errorGroup: {+ errorCode: DownloadErrorCode.NetworkError,+ errorMessage: 'Download failed',+ errorDetailKey: null,+ errorDetailParams: null,+ },+ createdAt: now + 1,+ }++ expect(+ activation.candidatesForHook('onError', { taskType: TaskType.Http })+ ).toHaveLength(1)+ await runtime.persistTerminal(errorTask, errorOccurrence)+ await runtime.scheduler.drainOnce()++ expect(+ await host.invokeCommand(+ 'test.hook-delivery-runtime',+ 'test.hook-delivery-runtime.read',+ undefined+ )+ ).toEqual([+ {+ hook: 'afterComplete',+ deliveryId: expect.stringMatching(/^post:v1:/),+ occurrenceId: occurrence.occurrenceId,+ occurredAt: occurrence.createdAt,+ metadataReadonly: true,+ },+ {+ hook: 'onError',+ deliveryId: expect.stringMatching(/^post:v1:/),+ occurrenceId: errorOccurrence.occurrenceId,+ occurredAt: errorOccurrence.createdAt,+ metadataReadonly: true,+ errorCode: DownloadErrorCode.NetworkError,+ },+ ])+ expect(+ database+ .prepare(+ 'SELECT status FROM plugin_post_deliveries WHERE occurrence_id=?'+ )+ .get(errorOccurrence.occurrenceId)+ ).toEqual({ status: 'delivered' })+ }, 30_000)+})diff --git a/src/core/plugin/runtime/plugin-hook-runtime.ts b/src/core/plugin/runtime/plugin-hook-runtime.tsnew file mode 100644index 00000000..ed51ede7--- /dev/null+++ b/src/core/plugin/runtime/plugin-hook-runtime.ts@@ -0,0 +1,402 @@+import type { CapabilityHost } from '@core/plugin/capabilities/interface'+import type { GrantsManager } from '@core/plugin/grants/grants-manager'+import type {+ ActivationDispatcher,+ HookCandidateDescriptor,+} from '@core/plugin/host/activation-dispatcher'+import type { PluginHost } from '@core/plugin/host/plugin-host'+import type { PluginRegistry } from '@core/plugin/plugin-registry'+import { materializePostDeliveries } from '@core/plugin/post/delivery-materializer'+import type { PostDeliveryObservability } from '@core/plugin/post/delivery-observability'+import {+ PostDeliveryRetention,+ type PostDeliveryRetentionRepository,+} from '@core/plugin/post/delivery-retention'+import { PostDeliveryScheduler } from '@core/plugin/post/delivery-scheduler'+import type {+ JsonValue,+ PluginExecutableIdentity,+ PostDeliveryCandidateSnapshot,+ PostDeliveryClaim,+ PostDeliveryInvocationInput,+ PostDeliveryInvocationResult,+ PostDeliveryPluginInvoker,+ PostDeliveryPolicyDecision,+ PostDeliveryPolicyProvider,+ PostDeliveryRepository,+ PostDeliverySchedulerConfig,+ PostHookName,+} from '@core/plugin/post/delivery-types'+import type { PluginTaskSnapshotV1 } from '@shared/schemas/plugin-hooks'+import type { DownloadTask } from '@shared/types/task'+import type {+ TaskOccurrence,+ TaskTerminalOccurrence,+} from '@shared/types/task-occurrence'++export interface PluginTerminalPersistenceInput {+ postDeliveries: ReturnType<typeof materializePostDeliveries>+ beforeCommit: () => void+}++export interface PluginHookRuntimeOptions {+ activation: Pick<+ ActivationDispatcher,+ 'candidatesForHook' | 'activateForHook'+ >+ registry: PluginRegistry+ grants: Pick<GrantsManager, 'effectivePermissionsFor'>+ host: PluginHost+ capabilityHost: CapabilityHost+ repository: PostDeliveryRepository & PostDeliveryRetentionRepository+ persistTerminal(+ task: DownloadTask,+ occurrence: TaskOccurrence,+ input: PluginTerminalPersistenceInput+ ): Promise<void>+ parallelTimeoutMs?: number+ schedulerConfig?: Partial<PostDeliverySchedulerConfig>+ observability?: PostDeliveryObservability+}++export class PolicySnapshotStaleError extends Error {+ constructor() {+ super('plugin policy changed while materializing terminal deliveries')+ this.name = 'PolicySnapshotStaleError'+ }+}++/** Shared shell-independent owner for durable post-Hook admission/execution. */+export class PluginHookRuntime {+ readonly scheduler: PostDeliveryScheduler+ readonly retention: PostDeliveryRetention+ private readonly timeoutMs: number++ constructor(private readonly options: PluginHookRuntimeOptions) {+ this.timeoutMs = options.parallelTimeoutMs ?? 30_000+ this.retention = new PostDeliveryRetention({+ repository: options.repository,+ observability: options.observability,+ })+ this.scheduler = new PostDeliveryScheduler({+ repository: options.repository,+ policy: this.policyProvider(),+ invoker: this.pluginInvoker(),+ config: options.schedulerConfig,+ observability: options.observability,+ maintenance: this.retention,+ })+ }++ async persistTerminal(+ task: DownloadTask,+ occurrence: TaskOccurrence+ ): Promise<void> {+ if (occurrence.type !== 'terminal') {+ await this.options.persistTerminal(task, occurrence, {+ postDeliveries: [],+ beforeCommit: () => undefined,+ })+ return+ }++ for (let attempt = 0; ; attempt += 1) {+ const materialized = await this.materialize(task, occurrence)+ try {+ await this.options.persistTerminal(task, occurrence, materialized)+ return+ } catch (error) {+ if (!(error instanceof PolicySnapshotStaleError) || attempt >= 7) {+ throw error+ }+ }+ }+ }++ /** Freeze terminal candidates for a caller that owns a larger FS+DB commit. */+ prepareTerminal(+ task: DownloadTask,+ occurrence: TaskTerminalOccurrence+ ): Promise<PluginTerminalPersistenceInput> {+ return this.materialize(task, occurrence)+ }++ async recoverAndDrain(): Promise<void> {+ await this.scheduler.recover()+ await this.scheduler.drainOnce()+ }++ supersede(executable: PluginExecutableIdentity, at: number): Promise<number> {+ return this.retention.supersede(executable, at)+ }++ pluginUnavailable(+ pluginId: string,+ reason: 'disabled' | 'uninstalled' | 'quarantined',+ at: number+ ): Promise<number> {+ return this.retention.pluginUnavailable(pluginId, reason, at)+ }++ permissionRevoked(+ pluginId: string,+ revokedPermissions: readonly string[],+ at: number+ ): Promise<number> {+ return this.retention.permissionRevoked(pluginId, revokedPermissions, at)+ }++ private async materialize(+ task: DownloadTask,+ occurrence: TaskTerminalOccurrence+ ): Promise<PluginTerminalPersistenceInput> {+ const hook: PostHookName =+ occurrence.toStatus === 'completed' ? 'afterComplete' : 'onError'+ const descriptors = this.options.activation.candidatesForHook(hook, {+ taskType: task.type,+ })+ const candidates: readonly PostDeliveryCandidateSnapshot[] =+ await Promise.all(+ descriptors.map(async (descriptor) => ({+ hook,+ executable: {+ pluginId: descriptor.id,+ version: descriptor.manifest.version,+ digest: descriptor.executableDigest,+ },+ createdGeneration: descriptor.generation,+ requiredPermissions: descriptor.manifest.permissions ?? [],+ createdEffectivePermissions: [+ ...(await this.options.grants.effectivePermissionsFor(+ descriptor.id+ )),+ ].sort(),+ }))+ )+ this.assertCandidatesCurrent(descriptors)+ const taskSnapshot = toPluginTaskSnapshot(task)+ const payload: JsonValue =+ hook === 'afterComplete'+ ? { task: taskSnapshot, filePath: task.finalPath || task.diskPath }+ : {+ task: taskSnapshot,+ filePath: task.finalPath || task.diskPath,+ error: terminalError(occurrence),+ }+ const postDeliveries = materializePostDeliveries({+ event: {+ schemaVersion: 1,+ occurrenceId: occurrence.occurrenceId,+ taskId: occurrence.taskId,+ occurredAt: occurrence.createdAt,+ payload,+ },+ candidates,+ createdAt: occurrence.createdAt,+ })+ return {+ postDeliveries,+ beforeCommit: () => this.assertCandidatesCurrent(descriptors),+ }+ }++ private assertCandidatesCurrent(+ descriptors: readonly HookCandidateDescriptor[]+ ): void {+ for (const descriptor of descriptors) {+ const current = this.options.registry.policySnapshot(descriptor.id)+ if (+ !current?.enabled ||+ current.generation !== descriptor.generation ||+ current.version !== descriptor.manifest.version ||+ current.executableDigest !== descriptor.executableDigest ||+ this.options.host.isPolicyMutationPending(descriptor.id)+ ) {+ throw new PolicySnapshotStaleError()+ }+ }+ }++ private policyProvider(): PostDeliveryPolicyProvider {+ return {+ acquire: async (+ record: PostDeliveryClaim+ ): Promise<PostDeliveryPolicyDecision> => {+ const current = this.options.registry.policySnapshot(+ record.executable.pluginId+ )+ if (!current) {+ return { kind: 'permanent', reason: 'uninstalled' }+ }+ if (!current.enabled) {+ return { kind: 'permanent', reason: 'disabled' }+ }+ if (+ current.version !== record.executable.version ||+ current.executableDigest !== record.executable.digest+ ) {+ return { kind: 'permanent', reason: 'superseded' }+ }+ if (+ this.options.host.isPolicyMutationPending(record.executable.pluginId)+ ) {+ throw new PolicySnapshotStaleError()+ }+ const effective = [+ ...(await this.options.grants.effectivePermissionsFor(+ record.executable.pluginId+ )),+ ].sort()+ const after = this.options.registry.policySnapshot(+ record.executable.pluginId+ )+ if (!after || after.generation !== current.generation) {+ throw new PolicySnapshotStaleError()+ }+ let hostLease: ReturnType<PluginHost['acquirePolicyLease']>+ try {+ hostLease = this.options.host.acquirePolicyLease(+ record.executable.pluginId,+ after.generation+ )+ } catch {+ throw new PolicySnapshotStaleError()+ }+ return {+ kind: 'authorized',+ lease: {+ currentGeneration: hostLease.generation,+ currentEffectivePermissions: effective,+ signal: hostLease.signal,+ release: hostLease.release,+ },+ }+ },+ }+ }++ private pluginInvoker(): PostDeliveryPluginInvoker {+ return {+ invoke: (input) => this.invokePostHook(input),+ }+ }++ private async invokePostHook(+ input: PostDeliveryInvocationInput+ ): Promise<PostDeliveryInvocationResult> {+ const { record } = input+ await this.options.activation.activateForHook(+ record.executable.pluginId,+ record.hook+ )+ const current = this.options.registry.policySnapshot(+ record.executable.pluginId+ )+ if (+ !current ||+ current.generation !== input.permissionGeneration ||+ current.version !== record.executable.version ||+ current.executableDigest !== record.executable.digest+ ) {+ throw new PolicySnapshotStaleError()+ }+ if (!this.options.host.isActive(record.executable.pluginId)) {+ throw new Error('post-Hook activation did not produce a worker')+ }+ const payload = parsePayload(record.canonicalPayload)+ const task = payload.task as { saveDir?: unknown; filePath?: unknown }+ if (+ typeof task?.saveDir !== 'string' ||+ typeof task.filePath !== 'string'+ ) {+ return {+ kind: 'failure' as const,+ classification: 'permanent' as const,+ code: 'plugin.hook.input_invalid',+ permanentReason: 'input_invalid' as const,+ }+ }+ const metadataSnapshot = await this.options.capabilityHost.metadata.getAll(+ record.taskId,+ record.executable.pluginId+ )+ await this.options.host.invokeHook(+ record.executable.pluginId,+ record.hook,+ {+ taskId: record.taskId,+ signal: input.signal,+ timeoutMs: this.timeoutMs,+ ctxPayload: payload,+ metadataSnapshot,+ invocationId: input.invocationId,+ permissionGeneration: input.permissionGeneration,+ context: {+ fsTaskHost: this.options.capabilityHost.fsTaskFor(+ task.saveDir,+ task.filePath+ ),+ taskId: record.taskId,+ effectivePermissions: new Set(input.effectivePermissions),+ },+ }+ )+ return {+ kind: 'success' as const,+ receipt: {+ deliveryId: record.deliveryId,+ invocationId: input.invocationId,+ },+ }+ }+}++export function toPluginTaskSnapshot(task: DownloadTask): PluginTaskSnapshotV1 {+ return {+ schemaVersion: 1,+ id: task.id,+ name: task.name,+ type: task.type,+ kind: task.kind,+ status: task.status,+ filePath: task.finalPath || task.diskPath,+ saveDir: task.saveDir,+ filename: task.filename,+ progress: Math.max(0, Math.min(100, task.progress * 100)),+ totalBytes: task.totalBytes,+ downloadedBytes: task.downloadedBytes,+ uploadedBytes: task.uploadedBytes,+ sizeWhenDone: task.sizeWhenDone,+ fileCount: task.fileCount,+ createdAt: task.createdAt,+ updatedAt: task.updatedAt,+ finishedAt: task.finishedAt,+ category: task.category,+ infoHash: task.infoHash,+ error: task.errorMessage+ ? {+ code: task.errorCode ?? 'TASK_ERROR',+ message: task.errorMessage,+ detailKey: task.errorDetailKey,+ detailParams: task.errorDetailParams,+ }+ : null,+ }+}++function terminalError(occurrence: TaskTerminalOccurrence) {+ return {+ code: occurrence.errorGroup?.errorCode ?? 'TASK_ERROR',+ message: occurrence.errorGroup?.errorMessage ?? 'Task failed',+ detailKey: occurrence.errorGroup?.errorDetailKey ?? null,+ detailParams: occurrence.errorGroup?.errorDetailParams ?? null,+ }+}++function parsePayload(json: string): Record<string, unknown> {+ const value: unknown = JSON.parse(json)+ if (!value || typeof value !== 'object' || Array.isArray(value)) {+ throw new TypeError('persisted post-Hook payload is not an object')+ }+ return value as Record<string, unknown>+}diff --git a/src/core/plugin/runtime/runtime-factory.ts b/src/core/plugin/runtime/runtime-factory.tsnew file mode 100644index 00000000..28ff22cd--- /dev/null+++ b/src/core/plugin/runtime/runtime-factory.ts@@ -0,0 +1,167 @@+import path from 'node:path'+import { getLogger } from '@core/logger'+import type { CapabilityHost } from '@core/plugin/capabilities/interface'+import { ArtifactMutationLeaseCoordinator } from '@core/plugin/finalize/artifact-mutation-lease'+import { NativeFinalizeFilesystemAdapter } from '@core/plugin/finalize/filesystem-adapter'+import { NativeFinalizeArtifactOperations } from '@core/plugin/finalize/native-artifact-operations'+import type { GrantsManager } from '@core/plugin/grants/grants-manager'+import { HookAuditLog } from '@core/plugin/hooks/audit-log'+import { HookOrchestrator } from '@core/plugin/hooks/hook-orchestrator'+import type { StagedMetadataOp } from '@core/plugin/hooks/staged-effects'+import type { ActivationDispatcher } from '@core/plugin/host/activation-dispatcher'+import type { PluginHost } from '@core/plugin/host/plugin-host'+import type { PluginInstaller } from '@core/plugin/install/plugin-installer'+import type { PluginRegistry } from '@core/plugin/plugin-registry'+import {+ createLoggingPostDeliveryObservability,+ type PostDeliveryObservability,+} from '@core/plugin/post/delivery-observability'+import type { PostDeliveryRetentionRepository } from '@core/plugin/post/delivery-retention'+import type { PostDeliveryRepository } from '@core/plugin/post/delivery-types'+import { DurableFinalizeRuntime } from '@core/session/durable-finalize-runtime'+import type { SessionManager } from '@core/session/session-manager'+import type { DownloadTask } from '@shared/types/task'+import type { TaskOccurrence } from '@shared/types/task-occurrence'+import type Database from 'better-sqlite3'+import {+ PluginHookRuntime,+ type PluginTerminalPersistenceInput,+} from './plugin-hook-runtime'++export interface PluginRuntimeFactoryOptions {+ activation: ActivationDispatcher+ registry: PluginRegistry+ grants: GrantsManager+ host: PluginHost+ installer: Pick<PluginInstaller, 'bindRetentionSink'>+ capabilityHost: CapabilityHost+ repository: PostDeliveryRepository & PostDeliveryRetentionRepository+ database: Database.Database+ session: Pick<+ SessionManager,+ | 'persistFinalizedArtifact'+ | 'persistTaskWithPluginMetadata'+ | 'bindPostDeliveryObservability'+ | 'bindTerminalOccurrencePersistence'+ >+ persistTerminal(+ task: DownloadTask,+ occurrence: TaskOccurrence,+ input: PluginTerminalPersistenceInput+ ): Promise<void>+ pluginsDir: string+ auditLogPath: string+ finalizeSidecarPath: string+ acquireTaskMutationLease?(taskId: string): Promise<{+ release(): Promise<void>+ }>+ assertEngineQuiesced(taskId: string): Promise<void>+ observability?: PostDeliveryObservability+}++export interface PluginRuntimeAssembly {+ auditLog: HookAuditLog+ orchestrator: HookOrchestrator+ hooks: PluginHookRuntime+ finalize: DurableFinalizeRuntime+ finalizeFilesystem: NativeFinalizeFilesystemAdapter+ persistTaskWithPluginMetadata(+ task: DownloadTask,+ operations: readonly StagedMetadataOp[]+ ): Promise<void>+}++/**+ * The sole production assembly point for the Hook runtime shared by Electron+ * and Server. It fails closed before returning when the native finalize+ * boundary cannot provide every required filesystem primitive.+ */+export async function createPluginRuntime(+ options: PluginRuntimeFactoryOptions+): Promise<PluginRuntimeAssembly> {+ const auditLog = new HookAuditLog(options.auditLogPath)+ const observability =+ options.observability ??+ createLoggingPostDeliveryObservability(getLogger('plugin:post-delivery'))+ const orchestrator = new HookOrchestrator({+ host: options.host,+ activationDispatcher: options.activation,+ hookTimeoutMs: { series: 10_000, parallel: 30_000 },+ pluginsDir: options.pluginsDir,+ pluginStorageRootFor: (pluginId) =>+ path.join(options.pluginsDir, pluginId, 'storage'),+ capabilityHost: options.capabilityHost,+ auditLog,+ })+ const hooks = new PluginHookRuntime({+ activation: options.activation,+ registry: options.registry,+ grants: options.grants,+ host: options.host,+ capabilityHost: options.capabilityHost,+ repository: options.repository,+ persistTerminal: options.persistTerminal,+ observability,+ })+ const finalizeFilesystem = new NativeFinalizeFilesystemAdapter(+ options.finalizeSidecarPath+ )+ const finalizeOperations = new NativeFinalizeArtifactOperations(+ finalizeFilesystem+ )+ try {+ await finalizeOperations.assertSupported()+ } catch (error) {+ await finalizeFilesystem.dispose()+ throw error+ }+ const finalize = new DurableFinalizeRuntime({+ db: options.database,+ session: options.session,+ fs: finalizeOperations,+ leases: new ArtifactMutationLeaseCoordinator([+ ...(options.acquireTaskMutationLease+ ? [+ {+ quiesce: async (taskId: string) => {+ const lease = await options.acquireTaskMutationLease?.(taskId)+ if (!lease) {+ throw new Error('task mutation lease provider disappeared')+ }+ return () => lease.release()+ },+ },+ ]+ : []),+ {+ quiesce: async (taskId) => {+ await options.assertEngineQuiesced(taskId)+ return () => undefined+ },+ },+ {+ quiesce: (taskId) => options.host.quiesceArtifactWriters(taskId),+ },+ ]),+ })+ options.host.bindPluginUnavailable((pluginId, reason, at) =>+ hooks.pluginUnavailable(pluginId, reason, at)+ )+ options.grants.bindPermissionRevoked((pluginId, permissions, at) =>+ hooks.permissionRevoked(pluginId, permissions, at)+ )+ options.installer.bindRetentionSink(hooks)+ options.session.bindPostDeliveryObservability(observability)+ options.session.bindTerminalOccurrencePersistence((task, occurrence) =>+ hooks.persistTerminal(task, occurrence)+ )+ return {+ auditLog,+ orchestrator,+ hooks,+ finalize,+ finalizeFilesystem,+ persistTaskWithPluginMetadata: (task, operations) =>+ options.session.persistTaskWithPluginMetadata(task, operations),+ }+}diff --git a/src/core/plugin/runtime/startup-coordinator.test.ts b/src/core/plugin/runtime/startup-coordinator.test.tsnew file mode 100644index 00000000..45582bf7--- /dev/null+++ b/src/core/plugin/runtime/startup-coordinator.test.ts@@ -0,0 +1,62 @@+import { describe, expect, it, vi } from 'vitest'+import { PluginRuntimeStartupCoordinator } from './startup-coordinator'++describe('PluginRuntimeStartupCoordinator', () => {+ it('enforces finalize recovery, task recovery, drains, then producers', async () => {+ const calls: string[] = []+ const coordinator = new PluginRuntimeStartupCoordinator()++ await coordinator.recoverFinalize(async () => {+ calls.push('finalize')+ })+ coordinator.markTasksRecovered()+ await coordinator.drainBeforeProducers({+ drainOccurrences: async () => {+ calls.push('occurrences')+ },+ recoverAndDrainPostDeliveries: async () => {+ calls.push('post')+ },+ })+ coordinator.openProducers(() => calls.push('producers'))++ expect(calls).toEqual(['finalize', 'occurrences', 'post', 'producers'])+ expect(coordinator.currentPhase()).toBe('producers-open')+ })++ it('rejects delivery drain or producer admission before task recovery', async () => {+ const coordinator = new PluginRuntimeStartupCoordinator()+ await coordinator.recoverFinalize(async () => undefined)++ await expect(+ coordinator.drainBeforeProducers({+ drainOccurrences: vi.fn(),+ recoverAndDrainPostDeliveries: vi.fn(),+ })+ ).rejects.toThrow('expected tasks-recovered')+ expect(() => coordinator.openProducers(vi.fn())).toThrow('expected drained')+ })++ it('does not advance a phase when a recovery callback fails', async () => {+ const coordinator = new PluginRuntimeStartupCoordinator()+ await expect(+ coordinator.recoverFinalize(async () => {+ throw new Error('journal corrupt')+ })+ ).rejects.toThrow('journal corrupt')+ expect(coordinator.currentPhase()).toBe('runtime-ready')+ })++ it('does not allow the engine to start before finalize recovery', async () => {+ const calls: string[] = []+ const coordinator = new PluginRuntimeStartupCoordinator()++ await expect(+ coordinator.startEngine(async () => void calls.push('engine'))+ ).rejects.toThrow('expected finalize-recovered')+ await coordinator.recoverFinalize(async () => void calls.push('finalize'))+ await coordinator.startEngine(async () => void calls.push('engine'))++ expect(calls).toEqual(['finalize', 'engine'])+ })+})diff --git a/src/core/plugin/runtime/startup-coordinator.ts b/src/core/plugin/runtime/startup-coordinator.tsnew file mode 100644index 00000000..f71a3604--- /dev/null+++ b/src/core/plugin/runtime/startup-coordinator.ts@@ -0,0 +1,58 @@+export type PluginRuntimeStartupPhase =+ | 'runtime-ready'+ | 'finalize-recovered'+ | 'tasks-recovered'+ | 'drained'+ | 'producers-open'++/**+ * Enforces the cross-shell recovery barrier. The callbacks stay shell-owned,+ * but neither shell can drain post deliveries or open producers out of order.+ */+export class PluginRuntimeStartupCoordinator {+ private phase: PluginRuntimeStartupPhase = 'runtime-ready'++ currentPhase(): PluginRuntimeStartupPhase {+ return this.phase+ }++ async recoverFinalize(recover: () => Promise<void>): Promise<void> {+ this.assertPhase('runtime-ready')+ await recover()+ this.phase = 'finalize-recovered'+ }++ async startEngine(start: () => Promise<void>): Promise<void> {+ this.assertPhase('finalize-recovered')+ await start()+ }++ markTasksRecovered(): void {+ this.assertPhase('finalize-recovered')+ this.phase = 'tasks-recovered'+ }++ async drainBeforeProducers(input: {+ drainOccurrences: () => Promise<void>+ recoverAndDrainPostDeliveries: () => Promise<void>+ }): Promise<void> {+ this.assertPhase('tasks-recovered')+ await input.drainOccurrences()+ await input.recoverAndDrainPostDeliveries()+ this.phase = 'drained'+ }++ openProducers(open: () => void): void {+ this.assertPhase('drained')+ open()+ this.phase = 'producers-open'+ }++ private assertPhase(expected: PluginRuntimeStartupPhase): void {+ if (this.phase !== expected) {+ throw new Error(+ `plugin runtime startup phase violation: expected ${expected}, got ${this.phase}`+ )+ }+ }+}diff --git a/src/core/plugin/update/builtin-updater.test.ts b/src/core/plugin/update/builtin-updater.test.tsindex c9fabe0d..93abedee 100644--- a/src/core/plugin/update/builtin-updater.test.ts+++ b/src/core/plugin/update/builtin-updater.test.ts@@ -214,6 +214,146 @@ describe('BuiltinUpdater', () => {expect(names.some((n) => n.includes('.bak-'))).toBe(false)})+ it('publishes a builtin update under the lifecycle barrier before superseding the old identity', async () => {+ const k = keypair()+ const v1Bytes = moextOf('1.1.0')+ const updater1 = makeUpdater(k, fetchImplOf(v1Bytes))+ const staged1 = await updater1.stage(+ entryOf(v1Bytes, k, '1.1.0'),+ EFFECTIVE_V1+ )+ await updater1.commit(staged1.stagingId)++ const v2Bytes = moextOf('1.2.0')+ const updater2 = makeUpdater(k, fetchImplOf(v2Bytes))+ const staged2 = await updater2.stage(entryOf(v2Bytes, k, '1.2.0'), {+ ...EFFECTIVE_V1,+ version: '1.1.0',+ })+ const order: string[] = []+ updater2.bindLifecycleSink({+ applyPolicyMutation: async (_pluginId, publish) => {+ order.push('closed')+ const result = await publish()+ order.push('published')+ return result+ },+ currentExecutable: () => ({+ pluginId: 'motrix.url-resolver',+ version: '1.1.0',+ digest: 'a'.repeat(64),+ }),+ refreshRegistry: async () => {+ order.push('refreshed')+ },+ supersede: async (identity) => {+ order.push('superseded')+ expect(identity.version).toBe('1.1.0')+ const current = await readFile(+ path.join(overlayDir, identity.pluginId, 'bundle.moext')+ )+ expect(current.equals(v2Bytes)).toBe(true)+ return 1+ },+ })++ await updater2.commit(staged2.stagingId)++ expect(order).toEqual(['closed', 'refreshed', 'superseded', 'published'])+ })++ it('restores the prior overlay and preserves staging when supersession fails', async () => {+ const k = keypair()+ const v1Bytes = moextOf('1.1.0')+ const updater1 = makeUpdater(k, fetchImplOf(v1Bytes))+ const staged1 = await updater1.stage(+ entryOf(v1Bytes, k, '1.1.0'),+ EFFECTIVE_V1+ )+ await updater1.commit(staged1.stagingId)++ const v2Bytes = moextOf('1.2.0')+ const updater2 = makeUpdater(k, fetchImplOf(v2Bytes))+ const staged2 = await updater2.stage(entryOf(v2Bytes, k, '1.2.0'), {+ ...EFFECTIVE_V1,+ version: '1.1.0',+ })+ const retentionError = new Error('retention unavailable')+ let fail = true+ updater2.bindLifecycleSink({+ applyPolicyMutation: async (_pluginId, publish) => publish(),+ currentExecutable: () => ({+ pluginId: 'motrix.url-resolver',+ version: '1.1.0',+ digest: 'a'.repeat(64),+ }),+ refreshRegistry: async () => undefined,+ supersede: async () => {+ if (fail) throw retentionError+ return 1+ },+ })++ await expect(updater2.commit(staged2.stagingId)).rejects.toBe(+ retentionError+ )+ expect(updater2.pluginIdForStaging(staged2.stagingId)).toBe(+ 'motrix.url-resolver'+ )+ expect(+ (+ await readFile(+ path.join(overlayDir, 'motrix.url-resolver', 'bundle.moext')+ )+ ).equals(v1Bytes)+ ).toBe(true)++ fail = false+ await updater2.commit(staged2.stagingId)+ expect(+ (+ await readFile(+ path.join(overlayDir, 'motrix.url-resolver', 'bundle.moext')+ )+ ).equals(v2Bytes)+ ).toBe(true)+ })++ it('restores an overlay when revert supersession fails', async () => {+ const k = keypair()+ const bytes = moextOf('1.1.0')+ const updater = makeUpdater(k, fetchImplOf(bytes))+ const staged = await updater.stage(entryOf(bytes, k, '1.1.0'), EFFECTIVE_V1)+ await updater.commit(staged.stagingId)+ const retentionError = new Error('retention unavailable')+ let fail = true+ updater.bindLifecycleSink({+ applyPolicyMutation: async (_pluginId, publish) => publish(),+ currentExecutable: () => ({+ pluginId: 'motrix.url-resolver',+ version: '1.1.0',+ digest: 'a'.repeat(64),+ }),+ refreshRegistry: async () => undefined,+ supersede: async () => {+ if (fail) throw retentionError+ return 1+ },+ })++ await expect(updater.revert('motrix.url-resolver')).rejects.toBe(+ retentionError+ )+ expect(existsSync(path.join(overlayDir, 'motrix.url-resolver'))).toBe(true)++ fail = false+ await expect(updater.revert('motrix.url-resolver')).resolves.toEqual({+ pluginId: 'motrix.url-resolver',+ changed: true,+ })+ expect(existsSync(path.join(overlayDir, 'motrix.url-resolver'))).toBe(false)+ })+it('cleanupOrphans removes .tmp-* dirs and leaves real entries alone', async () => {const k = keypair()const bytes = moextOf('1.1.0')diff --git a/src/core/plugin/update/builtin-updater.ts b/src/core/plugin/update/builtin-updater.tsindex 5e42d3bd..4e73753d 100644--- a/src/core/plugin/update/builtin-updater.ts+++ b/src/core/plugin/update/builtin-updater.ts@@ -11,6 +11,7 @@ import { semverGt } from '@shared/semver'import type { PluginManifest } from '@shared/types/plugin'import { extractMoext } from '../install/moext-reader'import { parseManifest } from '../manifest/parse'+import type { PluginExecutableIdentity } from '../post/delivery-types'import { fetchVerifiedPackageBytes } from '../registry/registry-fetcher'import { verifyBuiltinSignature } from './signature'import { builtinTrustSurfaceChanged } from './trust-diff'@@ -30,6 +31,22 @@ export interface BuiltinStageResult {newVersion: string}+/**+ * Host-owned lifecycle boundary for executable mutations. The updater only+ * swaps bytes while admission is closed and the previous worker/leases have+ * drained; durable deliveries are terminalized only after the new executable+ * has become the effective registry policy.+ */+export interface BuiltinUpdaterLifecycleSink {+ applyPolicyMutation<T>(+ pluginId: string,+ publish: () => Promise<T> | T+ ): Promise<T>+ currentExecutable(pluginId: string): PluginExecutableIdentity | undefined+ refreshRegistry(): Promise<void>+ supersede(executable: PluginExecutableIdentity, at: number): Promise<number>+}+interface StagedUpdate {pluginId: stringstagingDir: string@@ -39,9 +56,21 @@ const OVERLAY_META = '_overlay.json'export class BuiltinUpdater {private readonly pending = new Map<string, StagedUpdate>()+ private lifecycleSink: BuiltinUpdaterLifecycleSink | undefinedconstructor(private readonly opts: BuiltinUpdaterOptions) {}+ bindLifecycleSink(sink: BuiltinUpdaterLifecycleSink): void {+ if (this.lifecycleSink && this.lifecycleSink !== sink) {+ throw new Error('builtin updater lifecycle sink already bound')+ }+ this.lifecycleSink = sink+ }++ pluginIdForStaging(stagingId: string): string | undefined {+ return this.pending.get(stagingId)?.pluginId+ }+async stage(entry: RegistryPluginDTO,effective: PluginManifest@@ -144,29 +173,29 @@ export class BuiltinUpdater {'plugin.update.builtin_staging_not_found')}- const finalDir = path.join(this.opts.overlayDir, staged.pluginId)- const now = this.opts.now ?? Date.now- const backup = path.join(- this.opts.overlayDir,- `.bak-${staged.pluginId}-${now()}`- )- let hadPrevious = true- try {- await rename(finalDir, backup)- } catch {- hadPrevious = false- }- try {- await rename(staged.stagingDir, finalDir)- } catch (e) {- if (hadPrevious) await rename(backup, finalDir).catch(() => {})- throw e+ if (this.lifecycleSink) {+ await this.lifecycleSink.applyPolicyMutation(staged.pluginId, () =>+ this.commitWithLifecycle(staged)+ )+ } else {+ await this.commitWithoutLifecycle(staged)}- if (hadPrevious) await rm(backup, { recursive: true, force: true })this.pending.delete(stagingId)return { pluginId: staged.pluginId }}+ /** Revert a hot-update overlay to the bundled executable. */+ async revert(+ pluginId: string+ ): Promise<{ pluginId: string; changed: boolean }> {+ const changed = this.lifecycleSink+ ? await this.lifecycleSink.applyPolicyMutation(pluginId, () =>+ this.revertWithLifecycle(pluginId)+ )+ : await this.revertWithoutLifecycle(pluginId)+ return { pluginId, changed }+ }+async cancel(stagingId: string): Promise<void> {const staged = this.pending.get(stagingId)if (!staged) return@@ -193,4 +222,130 @@ export class BuiltinUpdater {))}++ private async commitWithLifecycle(staged: StagedUpdate): Promise<void> {+ const lifecycle = this.lifecycleSink+ if (!lifecycle) throw new Error('builtin updater lifecycle sink missing')+ const previous = lifecycle.currentExecutable(staged.pluginId)+ if (!previous) {+ throw new AppError(+ ErrorCode.PluginManifestInvalid,+ 'plugin.update.builtin_entry_missing'+ )+ }+ const finalDir = path.join(this.opts.overlayDir, staged.pluginId)+ const backup = this.backupPath(staged.pluginId, 'update')+ const hadPrevious = await moveIfPresent(finalDir, backup)+ let published = false+ try {+ await rename(staged.stagingDir, finalDir)+ published = true+ await lifecycle.refreshRegistry()+ await lifecycle.supersede(previous, this.now())+ } catch (error) {+ await this.rollbackPublishedOverlay({+ finalDir,+ recoveryDir: staged.stagingDir,+ backup,+ hadPrevious,+ published,+ refreshRegistry: () => lifecycle.refreshRegistry(),+ })+ throw error+ }+ if (hadPrevious) {+ await rm(backup, { recursive: true, force: true }).catch(() => undefined)+ }+ }++ private async commitWithoutLifecycle(staged: StagedUpdate): Promise<void> {+ const finalDir = path.join(this.opts.overlayDir, staged.pluginId)+ const backup = this.backupPath(staged.pluginId, 'update')+ const hadPrevious = await moveIfPresent(finalDir, backup)+ try {+ await rename(staged.stagingDir, finalDir)+ } catch (error) {+ if (hadPrevious) await rename(backup, finalDir).catch(() => undefined)+ throw error+ }+ if (hadPrevious) await rm(backup, { recursive: true, force: true })+ }++ private async revertWithLifecycle(pluginId: string): Promise<boolean> {+ const lifecycle = this.lifecycleSink+ if (!lifecycle) throw new Error('builtin updater lifecycle sink missing')+ const previous = lifecycle.currentExecutable(pluginId)+ if (!previous) {+ throw new AppError(+ ErrorCode.PluginManifestInvalid,+ 'plugin.update.builtin_entry_missing'+ )+ }+ const finalDir = path.join(this.opts.overlayDir, pluginId)+ const backup = this.backupPath(pluginId, 'revert')+ const changed = await moveIfPresent(finalDir, backup)+ if (!changed) return false+ try {+ await lifecycle.refreshRegistry()+ await lifecycle.supersede(previous, this.now())+ } catch (error) {+ await rename(backup, finalDir).catch(() => undefined)+ await lifecycle.refreshRegistry().catch(() => undefined)+ throw error+ }+ await rm(backup, { recursive: true, force: true }).catch(() => undefined)+ return true+ }++ private async revertWithoutLifecycle(pluginId: string): Promise<boolean> {+ const finalDir = path.join(this.opts.overlayDir, pluginId)+ const backup = this.backupPath(pluginId, 'revert')+ const changed = await moveIfPresent(finalDir, backup)+ if (!changed) return false+ await rm(backup, { recursive: true, force: true })+ return true+ }++ private async rollbackPublishedOverlay(input: {+ finalDir: string+ recoveryDir: string+ backup: string+ hadPrevious: boolean+ published: boolean+ refreshRegistry: () => Promise<void>+ }): Promise<void> {+ if (input.published) {+ await rename(input.finalDir, input.recoveryDir).catch(async () => {+ await rm(input.finalDir, { recursive: true, force: true })+ })+ }+ if (input.hadPrevious) {+ await rename(input.backup, input.finalDir)+ }+ await input.refreshRegistry().catch(() => undefined)+ }++ private backupPath(pluginId: string, operation: 'update' | 'revert'): string {+ return path.join(+ this.opts.overlayDir,+ `.bak-${operation}-${pluginId}-${this.now()}`+ )+ }++ private now(): number {+ return (this.opts.now ?? Date.now)()+ }+}++async function moveIfPresent(+ source: string,+ destination: string+): Promise<boolean> {+ try {+ await rename(source, destination)+ return true+ } catch (error) {+ if ((error as NodeJS.ErrnoException).code === 'ENOENT') return false+ throw error+ }}diff --git a/src/core/session/durable-finalize-runtime.test.ts b/src/core/session/durable-finalize-runtime.test.tsnew file mode 100644index 00000000..5103b7bb--- /dev/null+++ b/src/core/session/durable-finalize-runtime.test.ts@@ -0,0 +1,110 @@+import { createHash } from 'node:crypto'+import { mkdtemp, rm, writeFile } from 'node:fs/promises'+import os from 'node:os'+import path from 'node:path'+import {+ type ArtifactIdentity,+ readArtifactIdentity,+} from '@core/plugin/finalize/artifact-identity'+import { ArtifactMutationLeaseCoordinator } from '@core/plugin/finalize/artifact-mutation-lease'+import type { FinalizeArtifactOperations } from '@core/plugin/finalize/finalize-committer'+import { migrate } from '@core/session/migrations'+import { makeDownloadTask, TaskKind, TaskType } from '@shared/types/task'+import Database from 'better-sqlite3'+import { afterEach, describe, expect, it } from 'vitest'+import { DurableFinalizeRuntime } from './durable-finalize-runtime'++describe('DurableFinalizeRuntime', () => {+ const roots: string[] = []++ afterEach(async () => {+ await Promise.all(+ roots.splice(0).map((root) => rm(root, { recursive: true, force: true }))+ )+ })++ it('quiesces writers before the first source identity is captured', async () => {+ const root = await mkdtemp(path.join(os.tmpdir(), 'motrix-lease-order-'))+ roots.push(root)+ const sourcePath = path.join(root, 'source.part')+ const targetPath = path.join(root, 'target.bin')+ await writeFile(sourcePath, 'before-quiesce')+ const expectedSha = createHash('sha256')+ .update('after-quiesce')+ .digest('hex')+ const events: string[] = []+ let selectedIdentity: ArtifactIdentity | undefined+ const db = new Database(':memory:')+ migrate(db)++ const fs = {+ identity: async (artifactPath: string) =>+ artifactPath === sourcePath ? readArtifactIdentity(artifactPath) : null,+ sameFilesystem: async () => true,+ materializePrivate: async (+ _source: string,+ identity: ArtifactIdentity+ ) => {+ events.push('materialize')+ selectedIdentity = identity+ throw new Error('stop after identity proof')+ },+ makeDurable: async () => undefined,+ moveNoReplace: async () => undefined,+ removeKnown: async () => undefined,+ } satisfies FinalizeArtifactOperations+ const runtime = new DurableFinalizeRuntime({+ db,+ session: {+ persistFinalizedArtifact: async (_task, _occurrence, _input, commit) =>+ commit(() => undefined),+ },+ fs,+ leases: new ArtifactMutationLeaseCoordinator([+ {+ quiesce: async () => {+ events.push('quiesce')+ await writeFile(sourcePath, 'after-quiesce')+ return () => {+ events.push('release')+ }+ },+ },+ ]),+ })++ await expect(+ runtime.commit({+ task: makeDownloadTask({+ id: 'task-lease-order',+ name: 'target.bin',+ type: TaskType.Http,+ kind: TaskKind.Direct,+ saveDir: root,+ filename: 'target.bin',+ finalName: 'target.bin',+ diskPath: sourcePath,+ finalPath: targetPath,+ source: 'user',+ sourceMeta: null,+ instances: [],+ createdAt: 1,+ updatedAt: 1,+ }),+ occurrence: null,+ sourcePath,+ targetPath,+ metadataOps: [],+ contributors: [],+ postDeliveries: [],+ })+ ).rejects.toThrow('stop after identity proof')++ expect(selectedIdentity).toMatchObject({+ kind: 'file',+ sha256: expectedSha,+ })+ expect(events).toEqual(['quiesce', 'materialize', 'release'])+ db.close()+ })+})diff --git a/src/core/session/durable-finalize-runtime.ts b/src/core/session/durable-finalize-runtime.tsnew file mode 100644index 00000000..b7759141--- /dev/null+++ b/src/core/session/durable-finalize-runtime.ts@@ -0,0 +1,153 @@+import { randomUUID } from 'node:crypto'+import path from 'node:path'+import {+ artifactContentEquals,+ artifactIdentityEquals,+ readArtifactIdentity,+} from '@core/plugin/finalize/artifact-identity'+import { ArtifactMutationLeaseCoordinator } from '@core/plugin/finalize/artifact-mutation-lease'+import type { FinalizeArtifactOperations } from '@core/plugin/finalize/finalize-committer'+import {+ type FinalizeCommitResult,+ FinalizeCommitter,+} from '@core/plugin/finalize/finalize-committer'+import { FinalizeRecovery } from '@core/plugin/finalize/finalize-recovery'+import { freezeHookPlan } from '@core/plugin/finalize/hook-plan'+import type { StagedMetadataOp } from '@core/plugin/hooks/staged-effects'+import type { PostDeliveryAdmission } from '@core/plugin/post/delivery-types'+import type { DownloadTask } from '@shared/types/task'+import type { TaskOccurrence } from '@shared/types/task-occurrence'+import type Database from 'better-sqlite3'+import { SqliteFinalizeJournalRepository } from './finalize-journal-repository'+import type { SessionManager } from './session-manager'++export interface DurableFinalizeArtifactInput {+ task: DownloadTask+ occurrence: TaskOccurrence | null+ sourcePath: string+ targetPath: string+ replacement?: { pluginId: string; stagedPath: string }+ metadataOps: readonly StagedMetadataOp[]+ contributors: readonly string[]+ postDeliveries: readonly PostDeliveryAdmission[]+ beforeCommit?: () => void+ fileRebase?: { sourceRoot: string; targetRoot: string }+}++export interface DurableFinalizeRuntimeOptions {+ db: Database.Database+ session: Pick<SessionManager, 'persistFinalizedArtifact'>+ fs: FinalizeArtifactOperations+ leases?: ArtifactMutationLeaseCoordinator+ now?: () => number+}++/** Owns the filesystem journal and the one FS→SQLite commit boundary. */+export class DurableFinalizeRuntime {+ private readonly leases: ArtifactMutationLeaseCoordinator+ private readonly now: () => number++ constructor(private readonly options: DurableFinalizeRuntimeOptions) {+ this.leases = options.leases ?? new ArtifactMutationLeaseCoordinator([])+ this.now = options.now ?? Date.now+ }++ async commit(+ input: DurableFinalizeArtifactInput+ ): Promise<FinalizeCommitResult> {+ const lease = await this.leases.acquire(input.task.id)+ try {+ // H8: identity capture is inside the mutation lease, after every+ // engine/Host writer has successfully quiesced.+ const sourceIdentity = await readArtifactIdentity(input.sourcePath)+ const replacement = input.replacement+ ? {+ ...input.replacement,+ identity: await readArtifactIdentity(input.replacement.stagedPath),+ }+ : undefined+ const plan = freezeHookPlan({+ planId: randomUUID(),+ taskId: input.task.id,+ saveDir: input.task.saveDir,+ sourcePath: input.sourcePath,+ targetPath: input.targetPath,+ sourceIdentity,+ replacement,+ metadataOps: input.metadataOps,+ contributors: input.contributors,+ })++ return await this.options.session.persistFinalizedArtifact(+ input.task,+ input.occurrence,+ {+ metadataOps: input.metadataOps,+ postDeliveries: input.postDeliveries,+ beforeCommit: input.beforeCommit,+ fileRebase: input.fileRebase,+ },+ async (commitDatabase) => {+ const repository = new SqliteFinalizeJournalRepository(+ this.options.db,+ {+ now: this.now,+ commitTerminalBoundary: (record) => {+ if (!record.targetIdentity) {+ throw new Error('finalize target identity is missing')+ }+ commitDatabase({+ journalId: record.journalId,+ taskId: input.task.id,+ targetIdentity: record.targetIdentity,+ updatedAt: this.now(),+ })+ },+ }+ )+ const committer = new FinalizeCommitter({+ leases: this.leases,+ repository,+ fs: this.options.fs,+ privatePathFor: (candidate) =>+ path.join(+ path.dirname(candidate.targetPath),+ `.motrix-finalize-${candidate.planId}.target`+ ),+ rollbackPathFor: (candidate) =>+ path.join(+ path.dirname(candidate.sourcePath),+ `.motrix-finalize-${candidate.planId}.rollback`+ ),+ exactIdentity: artifactIdentityEquals,+ sameContent: artifactContentEquals,+ })+ return committer.commit(plan, lease)+ }+ )+ } finally {+ await lease.release()+ }+ }++ /** Recover before task restore: committed rows clean up; uncommitted targets roll back. */+ async recoverAll(): Promise<void> {+ const repository = new SqliteFinalizeJournalRepository(this.options.db, {+ now: this.now,+ commitTerminalBoundary: () => {+ throw new Error(+ 'startup recovery is configured to roll back uncommitted targets'+ )+ },+ })+ const recovery = new FinalizeRecovery({+ repository,+ leases: this.leases,+ fs: this.options.fs,+ exactIdentity: artifactIdentityEquals,+ sameContent: artifactContentEquals,+ rollForwardTargetInstalled: false,+ })+ await recovery.recoverAll()+ }+}diff --git a/src/core/session/finalize-journal-repository.test.ts b/src/core/session/finalize-journal-repository.test.tsnew file mode 100644index 00000000..9a74c239--- /dev/null+++ b/src/core/session/finalize-journal-repository.test.ts@@ -0,0 +1,245 @@+import type { FinalizeJournalRecord } from '@core/plugin/finalize/finalize-committer'+import Database from 'better-sqlite3'+import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'+import { SqliteFinalizeJournalRepository } from './finalize-journal-repository'+import { migrate } from './migrations'++describe('SqliteFinalizeJournalRepository', () => {+ let db: Database.Database++ beforeEach(() => {+ db = new Database(':memory:')+ migrate(db)+ })++ afterEach(() => db.close())++ it('persists the monotonic finalize state and all recovery identities', async () => {+ const commitTerminalBoundary = vi.fn((record: FinalizeJournalRecord) => {+ db.prepare(+ `UPDATE plugin_finalize_journals SET phase='db_committed',+ plan_json=?, updated_at=5 WHERE plan_id=? AND phase='target_installed'`+ ).run(+ JSON.stringify({ ...record, phase: 'db_committed' }),+ record.journalId+ )+ })+ const repository = new SqliteFinalizeJournalRepository(db, {+ now: () => 5,+ commitTerminalBoundary,+ })+ const record = makeRecord()++ await repository.prepare(record)+ await repository.advance(record.journalId, 'target_staged', {+ privateTargetPath: '/downloads/.private',+ privateTargetIdentity: fileIdentity('private'),+ })+ await repository.advance(record.journalId, 'target_installed', {+ targetIdentity: fileIdentity('target'),+ })+ const installed = (await repository.listRecoverable())[0]+ await repository.commitTerminal(installed)+ await repository.advance(record.journalId, 'cleaned')++ expect(commitTerminalBoundary).toHaveBeenCalledOnce()+ expect(await repository.listRecoverable()).toEqual([])+ expect(+ db+ .prepare(+ `SELECT phase, target_identity_json+ FROM plugin_finalize_journals WHERE plan_id=?`+ )+ .get(record.journalId)+ ).toEqual({+ phase: 'cleaned',+ target_identity_json: JSON.stringify(fileIdentity('target')),+ })+ })++ it('rolls the journal and terminal callback writes back on failure', async () => {+ db.exec('CREATE TABLE terminal_probe (value TEXT NOT NULL)')+ const repository = new SqliteFinalizeJournalRepository(db, {+ now: () => 5,+ commitTerminalBoundary: () => {+ db.prepare(+ `INSERT INTO terminal_probe (value) VALUES ('written')`+ ).run()+ throw new Error('terminal transaction failed')+ },+ })+ const record = makeRecord('plan-rollback')+ await repository.prepare(record)+ await repository.advance(record.journalId, 'target_staged', {+ privateTargetPath: '/downloads/.private',+ privateTargetIdentity: fileIdentity('private'),+ })+ await repository.advance(record.journalId, 'target_installed', {+ targetIdentity: fileIdentity('target'),+ })++ await expect(repository.commitTerminal(record)).rejects.toThrow(+ 'terminal transaction failed'+ )+ expect(+ db.prepare(`SELECT phase FROM plugin_finalize_journals`).get()+ ).toEqual({ phase: 'target_installed' })+ expect(db.prepare(`SELECT * FROM terminal_probe`).all()).toEqual([])+ })++ it('quarantines a structurally malformed recovery row', async () => {+ const repository = new SqliteFinalizeJournalRepository(db, {+ now: () => 5,+ commitTerminalBoundary: vi.fn(),+ })+ const record = makeRecord('plan-corrupt')+ await repository.prepare(record)+ db.prepare(+ `UPDATE plugin_finalize_journals SET plan_json='{}' WHERE plan_id=?`+ ).run(record.journalId)++ expect(await repository.listRecoverable()).toEqual([])+ expect(+ db+ .prepare(+ `SELECT phase, quarantine_reason FROM plugin_finalize_journals+ WHERE plan_id=?`+ )+ .get(record.journalId)+ ).toMatchObject({+ phase: 'quarantined',+ quarantine_reason: expect.stringContaining('invalid persisted'),+ })+ })++ it('persists action intent without advancing the recovery phase', async () => {+ const repository = new SqliteFinalizeJournalRepository(db, {+ now: () => 5,+ commitTerminalBoundary: vi.fn(),+ })+ const record = makeRecord('plan-checkpoint')++ await repository.prepare(record)+ await repository.checkpoint(record.journalId, {+ rollbackPath: '/downloads/.rollback',+ privateTargetPath: '/downloads/.private',+ })++ expect(await repository.listRecoverable()).toEqual([+ {+ ...record,+ rollbackPath: '/downloads/.rollback',+ privateTargetPath: '/downloads/.private',+ },+ ])+ expect(+ db+ .prepare(`SELECT phase FROM plugin_finalize_journals WHERE plan_id=?`)+ .get(record.journalId)+ ).toEqual({ phase: 'prepared' })+ })++ it('replaces a cleaned journal when the same task retries finalize', async () => {+ const repository = new SqliteFinalizeJournalRepository(db, {+ now: () => 5,+ commitTerminalBoundary: vi.fn(),+ })+ const first = makeRecord('plan-first')+ await repository.prepare(first)+ await repository.advance(first.journalId, 'cleaned')++ const retry = makeRecord('plan-retry')+ await repository.prepare(retry)++ expect(await repository.listRecoverable()).toEqual([retry])+ expect(+ db.prepare(`SELECT plan_id FROM plugin_finalize_journals`).all()+ ).toEqual([{ plan_id: 'plan-retry' }])+ })++ it('can quarantine a committed cleanup mismatch for manual recovery', async () => {+ const repository = new SqliteFinalizeJournalRepository(db, {+ now: () => 5,+ commitTerminalBoundary: vi.fn(),+ })+ const record = makeRecord('plan-committed-mismatch')+ await repository.prepare(record)+ db.prepare(+ `UPDATE plugin_finalize_journals+ SET phase='db_committed', plan_json=? WHERE plan_id=?`+ ).run(+ JSON.stringify({ ...record, phase: 'db_committed' }),+ record.journalId+ )++ await repository.quarantine(record.journalId, 'cleanup mismatch')++ expect(+ db+ .prepare(+ `SELECT phase, quarantine_reason FROM plugin_finalize_journals+ WHERE plan_id=?`+ )+ .get(record.journalId)+ ).toEqual({+ phase: 'quarantined',+ quarantine_reason: 'cleanup mismatch',+ })+ })++ it('persists and clears a committed removal intent across restart', async () => {+ const repository = new SqliteFinalizeJournalRepository(db, {+ now: () => 5,+ commitTerminalBoundary: vi.fn(),+ })+ const record = makeRecord('plan-removal-intent')+ const committed = { ...record, phase: 'db_committed' as const }+ await repository.prepare(record)+ db.prepare(+ `UPDATE plugin_finalize_journals+ SET phase='db_committed', plan_json=? WHERE plan_id=?`+ ).run(JSON.stringify(committed), record.journalId)+ const removalIntent = {+ artifactPath: '/downloads/input.part',+ quarantinePath: '/downloads/.motrix-finalize-remove-exact',+ identity: fileIdentity('source'),+ }++ await repository.checkpoint(record.journalId, { removalIntent })+ expect((await repository.listRecoverable())[0].removalIntent).toEqual(+ removalIntent+ )+ await repository.checkpoint(record.journalId, {+ removalIntent: undefined,+ })+ expect(+ (await repository.listRecoverable())[0].removalIntent+ ).toBeUndefined()+ })+})++function makeRecord(journalId = 'plan-1'): FinalizeJournalRecord {+ return {+ journalId,+ phase: 'prepared',+ plan: {+ planId: journalId,+ taskId: 'task-1',+ saveDir: '/downloads',+ sourcePath: '/downloads/input.part',+ targetPath: '/downloads/output.bin',+ sourceIdentity: fileIdentity('source'),+ metadataOps: [],+ contributors: [],+ },+ }+}++function fileIdentity(seed: string) {+ return {+ kind: 'file' as const,+ size: seed.length,+ sha256: seed.padEnd(64, '0'),+ platformFileId: `device:${seed}`,+ }+}diff --git a/src/core/session/finalize-journal-repository.ts b/src/core/session/finalize-journal-repository.tsnew file mode 100644index 00000000..817aa2bf--- /dev/null+++ b/src/core/session/finalize-journal-repository.ts@@ -0,0 +1,292 @@+import type {+ FinalizeJournalPhase,+ FinalizeJournalRecord,+ FinalizeJournalRepository,+} from '@core/plugin/finalize/finalize-committer'+import { assertValidHookPlan } from '@core/plugin/finalize/hook-plan'+import type Database from 'better-sqlite3'++interface RawFinalizeJournal {+ plan_id: string+ task_id: string+ phase: FinalizeJournalPhase | 'quarantined'+ plan_json: string+ source_identity_json: string+ target_identity_json: string | null+ quarantine_reason: string | null+ created_at: number+ updated_at: number+}++export interface SqliteFinalizeJournalRepositoryOptions {+ now?: () => number+ /**+ * Must execute the complete task terminal transaction and move this journal+ * from target_installed to db_committed within that same transaction.+ */+ commitTerminalBoundary(record: FinalizeJournalRecord): void+}++/** Durable finalize state machine. Malformed recovery rows are quarantined. */+export class SqliteFinalizeJournalRepository+ implements FinalizeJournalRepository+{+ private readonly now: () => number++ constructor(+ private readonly db: Database.Database,+ private readonly options: SqliteFinalizeJournalRepositoryOptions+ ) {+ this.now = options.now ?? Date.now+ }++ async prepare(record: FinalizeJournalRecord): Promise<void> {+ if (record.phase !== 'prepared') {+ throw new Error('new finalize journal must start prepared')+ }+ assertValidHookPlan(record.plan)+ if (record.journalId !== record.plan.planId) {+ throw new Error('finalize journal id must match plan id')+ }+ const now = Math.max(1, this.now())+ this.db.transaction(() => {+ const prior = this.db+ .prepare(+ `SELECT plan_id, phase FROM plugin_finalize_journals WHERE task_id=?`+ )+ .get(record.plan.taskId) as+ | { plan_id: string; phase: RawFinalizeJournal['phase'] }+ | undefined+ if (prior) {+ if (prior.phase !== 'cleaned') {+ throw new Error(+ `task already has an unfinished finalize journal: ${prior.plan_id}`+ )+ }+ this.db+ .prepare(+ `DELETE FROM plugin_finalize_journals+ WHERE task_id=? AND phase='cleaned'`+ )+ .run(record.plan.taskId)+ }+ this.db+ .prepare(+ `INSERT INTO plugin_finalize_journals (+ plan_id, task_id, phase, plan_json, source_identity_json,+ target_identity_json, quarantine_reason, created_at, updated_at+ ) VALUES (?, ?, 'prepared', ?, ?, NULL, NULL, ?, ?)`+ )+ .run(+ record.journalId,+ record.plan.taskId,+ serializeRecord(record),+ JSON.stringify(record.plan.sourceIdentity),+ now,+ now+ )+ })()+ }++ async checkpoint(+ journalId: string,+ patch: Partial<+ Pick<+ FinalizeJournalRecord,+ | 'privateTargetPath'+ | 'privateTargetIdentity'+ | 'targetIdentity'+ | 'rollbackPath'+ | 'removalIntent'+ >+ >+ ): Promise<void> {+ this.db.transaction(() => {+ const current = this.requireRecord(journalId)+ if (current.phase === 'cleaned') {+ throw new Error(`cannot checkpoint terminal finalize journal`)+ }+ const next: FinalizeJournalRecord = { ...current, ...patch }+ const changed = this.db+ .prepare(+ `UPDATE plugin_finalize_journals+ SET plan_json=?, target_identity_json=?, updated_at=?+ WHERE plan_id=? AND phase=?`+ )+ .run(+ serializeRecord(next),+ next.targetIdentity ? JSON.stringify(next.targetIdentity) : null,+ Math.max(1, this.now()),+ journalId,+ current.phase+ ).changes+ if (changed !== 1) throw new Error('finalize journal checkpoint lost CAS')+ })()+ }++ async advance(+ journalId: string,+ phase: FinalizeJournalPhase,+ patch: Partial<+ Pick<+ FinalizeJournalRecord,+ | 'privateTargetPath'+ | 'privateTargetIdentity'+ | 'targetIdentity'+ | 'rollbackPath'+ | 'quarantineReason'+ >+ > = {}+ ): Promise<void> {+ this.db.transaction(() => {+ const current = this.requireRecord(journalId)+ if (current.phase === phase) return+ if (!transitionAllowed(current.phase, phase)) {+ throw new Error(+ `invalid finalize transition ${current.phase} -> ${phase}`+ )+ }+ const next: FinalizeJournalRecord = { ...current, ...patch, phase }+ const changed = this.db+ .prepare(+ `UPDATE plugin_finalize_journals+ SET phase=?, plan_json=?, target_identity_json=?, updated_at=?+ WHERE plan_id=? AND phase=?`+ )+ .run(+ phase,+ serializeRecord(next),+ next.targetIdentity ? JSON.stringify(next.targetIdentity) : null,+ Math.max(1, this.now()),+ journalId,+ current.phase+ ).changes+ if (changed !== 1) throw new Error('finalize journal transition lost CAS')+ })()+ }++ async commitTerminal(record: FinalizeJournalRecord): Promise<void> {+ this.db.transaction(() => {+ const durable = this.requireRecord(record.journalId)+ if (durable.phase === 'db_committed') return+ if (durable.phase !== 'target_installed') {+ throw new Error('finalize journal target is not installed')+ }+ this.options.commitTerminalBoundary(durable)+ const committed = this.readRaw(record.journalId)+ if (committed?.phase !== 'db_committed') {+ throw new Error(+ 'terminal boundary returned without atomically committing journal'+ )+ }+ })()+ }++ async quarantine(journalId: string, reason: string): Promise<void> {+ const boundedReason = reason.slice(0, 256) || 'unknown finalize fault'+ const changed = this.db+ .prepare(+ `UPDATE plugin_finalize_journals+ SET phase='quarantined', quarantine_reason=?, updated_at=?+ WHERE plan_id=? AND phase <> 'cleaned'`+ )+ .run(boundedReason, Math.max(1, this.now()), journalId).changes+ if (changed === 0) {+ const row = this.readRaw(journalId)+ if (!row) throw new Error('finalize journal does not exist')+ if (row.phase !== 'quarantined') {+ throw new Error('cannot quarantine cleaned finalize journal')+ }+ }+ }++ async listRecoverable(): Promise<FinalizeJournalRecord[]> {+ const rows = this.db+ .prepare(+ `SELECT * FROM plugin_finalize_journals+ WHERE phase NOT IN ('cleaned','quarantined')+ ORDER BY created_at, plan_id`+ )+ .all() as RawFinalizeJournal[]+ const records: FinalizeJournalRecord[] = []+ for (const row of rows) {+ try {+ records.push(parseRecord(row))+ } catch (error) {+ await this.quarantine(+ row.plan_id,+ `invalid persisted finalize journal: ${errorMessage(error)}`+ )+ }+ }+ return records+ }++ private requireRecord(journalId: string): FinalizeJournalRecord {+ const raw = this.readRaw(journalId)+ if (!raw) throw new Error('finalize journal does not exist')+ if (raw.phase === 'quarantined') {+ throw new Error('finalize journal is quarantined')+ }+ return parseRecord(raw)+ }++ private readRaw(journalId: string): RawFinalizeJournal | undefined {+ return this.db+ .prepare('SELECT * FROM plugin_finalize_journals WHERE plan_id=?')+ .get(journalId) as RawFinalizeJournal | undefined+ }+}++function serializeRecord(record: FinalizeJournalRecord): string {+ return JSON.stringify(record)+}++function parseRecord(raw: RawFinalizeJournal): FinalizeJournalRecord {+ const value: unknown = JSON.parse(raw.plan_json)+ if (!value || typeof value !== 'object' || Array.isArray(value)) {+ throw new TypeError('journal record is not an object')+ }+ const record = value as FinalizeJournalRecord+ if (record.journalId !== raw.plan_id || record.plan?.taskId !== raw.task_id) {+ throw new TypeError('journal identity columns do not match record')+ }+ if (record.phase !== raw.phase) {+ throw new TypeError('journal phase column does not match record')+ }+ assertValidHookPlan(record.plan)+ const sourceIdentity = JSON.stringify(record.plan.sourceIdentity)+ if (sourceIdentity !== JSON.stringify(JSON.parse(raw.source_identity_json))) {+ throw new TypeError('journal source identity column does not match plan')+ }+ if (+ raw.target_identity_json !== null &&+ JSON.stringify(record.targetIdentity) !==+ JSON.stringify(JSON.parse(raw.target_identity_json))+ ) {+ throw new TypeError('journal target identity column does not match record')+ }+ return record+}++function transitionAllowed(+ from: FinalizeJournalPhase,+ to: FinalizeJournalPhase+): boolean {+ return (+ (from === 'prepared' &&+ (to === 'source_preserved' || to === 'target_staged')) ||+ (from === 'source_preserved' && to === 'target_staged') ||+ (from === 'target_staged' && to === 'target_installed') ||+ ((from === 'prepared' ||+ from === 'source_preserved' ||+ from === 'target_staged' ||+ from === 'target_installed') &&+ to === 'cleaned') ||+ (from === 'db_committed' && to === 'cleaned')+ )+}++function errorMessage(error: unknown): string {+ return error instanceof Error ? error.message : String(error)+}diff --git a/src/core/session/migrations/index.ts b/src/core/session/migrations/index.tsindex 9e518d44..f0379378 100644--- a/src/core/session/migrations/index.ts+++ b/src/core/session/migrations/index.ts@@ -7,6 +7,7 @@ import {} from './v1'import { V2_TASK_SCHEMA_OBJECTS, v2 } from './v2'import { V3_SCHEMA_OBJECTS, v3 } from './v3'+import { V4_SCHEMA_OBJECTS, v4 } from './v4'interface Migration {version: number@@ -18,8 +19,9 @@ interface Migration {// as a Plan B follow-up (magnet metadata resolved + awaiting user// file selection — distinct from "still fetching metadata" so the// Downloads pill can say "Ready" instead of the misleading-// "Fetching"). v3 adds task-owned Inspector Activity persistence.-const MIGRATIONS: Migration[] = [v1, v2, v3]+// "Fetching"). v3 adds task-owned Inspector Activity persistence. v4 adds+// durable plugin finalize journals plus post-delivery and quota state.+const MIGRATIONS: Migration[] = [v1, v2, v3, v4]const HIGHEST_KNOWN_VERSION = MIGRATIONS.reduce((max, m) => (m.version > max ? m.version : max),@@ -58,6 +60,7 @@ export class StaleSchemaError extends Error {| 'canonical_task_columns_missing'| 'activity_schema_missing'| 'inspector_activity_schema_missing'+ | 'plugin_hook_schema_missing'| 'foreign_key_violation',public readonly dbPath: string) {@@ -83,7 +86,9 @@ export class StaleSchemaError extends Error {? 'expected canonical schema objects (task inspector ' +'activity and notification tables, constraints, or ' +'indexes) are invalid'- : 'the canonical schema contains foreign-key violations'+ : reason === 'plugin_hook_schema_missing'+ ? 'expected plugin finalize, post-delivery, or quota tables, constraints, and indexes are invalid'+ : 'the canonical schema contains foreign-key violations'super(`The versioned database schema is incompatible with this build: ` +`${detail}. ` +@@ -270,6 +275,16 @@ function validateCanonicalV3(db: Database.Database): void {}}+function validateCanonicalV4(db: Database.Database): void {+ validateCanonicalV3(db)+ if (!hasExactSchemaObjects(db, V4_SCHEMA_OBJECTS)) {+ throw new StaleSchemaError(+ 'plugin_hook_schema_missing',+ (db as unknown as { name: string }).name+ )+ }+}+export function migrate(db: Database.Database): void {db.exec(`CREATE TABLE IF NOT EXISTS schema_version (@@ -474,5 +489,5 @@ export function migrate(db: Database.Database): void {}}- validateCanonicalV3(db)+ validateCanonicalV4(db)}diff --git a/src/core/session/migrations/v1.test.ts b/src/core/session/migrations/v1.test.tsindex 28c8765d..b6f97bb8 100644--- a/src/core/session/migrations/v1.test.ts+++ b/src/core/session/migrations/v1.test.ts@@ -518,13 +518,13 @@ describe('migrate() schema guard (Codex finding #7)', () => {.all(),}).toEqual(activityBefore)- // After the first call: v1 + v2 + v3 applied (chain length grows as+ // After the first call: v1 + v2 + v3 + v4 applied (chain length grows as// new migrations are added). Second call observes// schema_version == HIGHEST_KNOWN_VERSION and does nothing.const rows = db.prepare('SELECT version FROM schema_version ORDER BY version').all() as Array<{ version: number }>- expect(rows.map((r) => r.version)).toEqual([1, 2, 3])+ expect(rows.map((r) => r.version)).toEqual([1, 2, 3, 4])db.close()})@@ -539,9 +539,10 @@ describe('migrate() schema guard (Codex finding #7)', () => {const rows = db.prepare('SELECT version FROM schema_version ORDER BY version').all() as Array<{ version: number }>- // v1 is the Plan A baseline, v2 widens task statuses, and v3 adds- // task-owned Inspector Activity persistence. All apply on a fresh DB.- expect(rows.map((r) => r.version)).toEqual([1, 2, 3])+ // v1 is the Plan A baseline, v2 widens task statuses, v3 adds task-owned+ // Inspector Activity persistence, and v4 adds durable Hook delivery and+ // finalize journals. All apply on a fresh DB.+ expect(rows.map((r) => r.version)).toEqual([1, 2, 3, 4])const tables = db.prepare("SELECT name FROM sqlite_master WHERE type='table'")diff --git a/src/core/session/migrations/v3.test.ts b/src/core/session/migrations/v3.test.tsindex d9a99417..5d16e105 100644--- a/src/core/session/migrations/v3.test.ts+++ b/src/core/session/migrations/v3.test.ts@@ -105,12 +105,12 @@ function rebuildTable(}}-describe('migration v3', () => {- it('migrates a fresh database to version 3 with the exact v3 objects', () => {+describe('migration v3 compatibility', () => {+ it('migrates a fresh database through v3 with the exact v3 objects', () => {const db = openMemory()migrate(db)- expect(readVersion(db)).toBe(3)+ expect(readVersion(db)).toBe(4)const names = db.prepare(`SELECT name FROM sqlite_master@@ -166,7 +166,7 @@ describe('migration v3', () => {const reopened = new Database(dbPath)reopened.pragma('foreign_keys = ON')- expect(readVersion(reopened)).toBe(3)+ expect(readVersion(reopened)).toBe(4)expect(reopened.prepare("SELECT motrix_id FROM tasks WHERE motrix_id = 'survivor'")@@ -207,7 +207,7 @@ describe('migration v3', () => {})()expect(() => migrate(db)).not.toThrow()- expect(readVersion(db)).toBe(3)+ expect(readVersion(db)).toBe(4)db.close()})diff --git a/src/core/session/migrations/v4.test.ts b/src/core/session/migrations/v4.test.tsnew file mode 100644index 00000000..f74a4a9b--- /dev/null+++ b/src/core/session/migrations/v4.test.ts@@ -0,0 +1,214 @@+import Database from 'better-sqlite3'+import { describe, expect, it } from 'vitest'+import { migrate, StaleSchemaError } from '.'+import { v1 } from './v1'+import { v2 } from './v2'+import { v3 } from './v3'+import { V4_SCHEMA_OBJECTS } from './v4'++function openMemory(): Database.Database {+ const db = new Database(':memory:')+ db.pragma('foreign_keys = ON')+ return db+}++function readVersion(db: Database.Database): number {+ return (+ db.prepare('SELECT MAX(version) AS version FROM schema_version').get() as {+ version: number+ }+ ).version+}++function createDeclaredV3(db: Database.Database): void {+ db.exec(`CREATE TABLE schema_version (+ version INTEGER PRIMARY KEY,+ applied_at INTEGER NOT NULL+ )`)+ db.transaction(() => {+ v1.up(db)+ v2.up(db)+ v3.up(db)+ db.prepare(+ 'INSERT INTO schema_version (version, applied_at) VALUES (1, 1), (2, 2), (3, 3)'+ ).run()+ })()+}++describe('migration v4', () => {+ it('creates every exact plugin Hook runtime object on a fresh database', () => {+ const db = openMemory()+ migrate(db)++ expect(readVersion(db)).toBe(4)+ const rows = db+ .prepare(+ `SELECT name FROM sqlite_master+ WHERE type IN ('table', 'index')+ ORDER BY name`+ )+ .all() as Array<{ name: string }>+ const names = new Set(rows.map((row) => row.name))+ for (const object of V4_SCHEMA_OBJECTS) {+ expect(names.has(object.name), object.name).toBe(true)+ }+ expect(names.has('plugin_lifecycle_journals')).toBe(false)+ expect(db.pragma('foreign_key_check')).toEqual([])+ db.close()+ })++ it('upgrades a declared v3 database without changing its task rows', () => {+ const db = openMemory()+ createDeclaredV3(db)+ db.prepare(+ `INSERT INTO tasks (+ motrix_id, name, task_type, created_at, updated_at+ ) VALUES ('survivor', 'fixture', 'bt', 1, 1)`+ ).run()++ migrate(db)++ expect(readVersion(db)).toBe(4)+ expect(+ db.prepare("SELECT name FROM tasks WHERE motrix_id = 'survivor'").get()+ ).toEqual({ name: 'fixture' })+ expect(db.pragma('foreign_key_check')).toEqual([])+ db.close()+ })++ it('rolls back every partial v4 object when a late create fails', () => {+ const db = openMemory()+ createDeclaredV3(db)+ db.exec('CREATE TABLE plugin_post_quota_ledger (unexpected TEXT)')++ expect(() => migrate(db)).toThrow()+ expect(readVersion(db)).toBe(3)+ expect(+ db+ .prepare(+ "SELECT 1 FROM sqlite_master WHERE type='table' AND name='plugin_finalize_journals'"+ )+ .get()+ ).toBeUndefined()+ db.close()+ })++ it('enforces finalize phase/quarantine consistency', () => {+ const db = openMemory()+ migrate(db)+ const insert = db.prepare(`+ INSERT INTO plugin_finalize_journals (+ plan_id, task_id, phase, plan_json, source_identity_json,+ target_identity_json, quarantine_reason, created_at, updated_at+ ) VALUES (?, ?, ?, '{}', '{}', NULL, ?, 1, 1)+ `)++ expect(() =>+ insert.run('plan-bad', 'task-bad', 'quarantined', null)+ ).toThrow()+ expect(() =>+ insert.run('plan-ok', 'task-ok', 'quarantined', 'identity_changed')+ ).not.toThrow()+ db.close()+ })++ it('enforces delivery lease, terminal reason, and digest constraints', () => {+ const db = openMemory()+ migrate(db)+ const insert = db.prepare(`+ INSERT INTO plugin_post_deliveries (+ delivery_id, deduplication_key, occurrence_id, hook, task_id, occurred_at, plugin_id, plugin_version,+ executable_digest, created_generation, effective_permissions_json,+ required_permissions_json, payload_json, payload_bytes, reserved_bytes, status,+ attempt_count, next_attempt_at, lease_owner, lease_expires_at,+ permanent_reason, created_at, updated_at, delivered_at+ ) VALUES (+ @deliveryId, @deduplicationKey, 'occ-1', 'afterComplete', 'task-1', 1, 'plugin.example', '1.0.0',+ @digest, 1, '[]', '[]', '{}', 2, 518, @status,+ 0, 1, @leaseOwner, @leaseExpiresAt, @permanentReason, 1, 1, @deliveredAt+ )+ `)+ const digest = 'a'.repeat(64)++ expect(() =>+ insert.run({+ deliveryId: 'delivery-pending',+ deduplicationKey: 'b'.repeat(64),+ digest,+ status: 'pending',+ leaseOwner: null,+ leaseExpiresAt: null,+ permanentReason: null,+ deliveredAt: null,+ })+ ).not.toThrow()+ expect(() =>+ insert.run({+ deliveryId: 'delivery-bad-lease',+ deduplicationKey: 'c'.repeat(64),+ digest,+ status: 'delivering',+ leaseOwner: null,+ leaseExpiresAt: null,+ permanentReason: null,+ deliveredAt: null,+ })+ ).toThrow()+ expect(() =>+ insert.run({+ deliveryId: 'delivery-bad-digest',+ deduplicationKey: 'd'.repeat(64),+ digest: 'not-a-digest',+ status: 'pending',+ leaseOwner: null,+ leaseExpiresAt: null,+ permanentReason: null,+ deliveredAt: null,+ })+ ).toThrow()+ db.close()+ })++ it('persists only structurally valid durable circuit-breaker states', () => {+ const db = openMemory()+ migrate(db)+ const insert = db.prepare(`+ INSERT INTO plugin_post_breakers (+ plugin_id, state, failure_count, window_started_at, open_until,+ probe_token, probe_lease_expires_at, updated_at+ ) VALUES (?, ?, 0, NULL, ?, ?, ?, 1)+ `)++ expect(() =>+ insert.run('plugin.closed', 'closed', null, null, null)+ ).not.toThrow()+ expect(() =>+ insert.run('plugin.open', 'open', 5_000, null, null)+ ).not.toThrow()+ expect(() =>+ insert.run('plugin.bad', 'half_open', null, null, null)+ ).toThrow()+ expect(() =>+ insert.run('plugin.probe', 'half_open', null, 'probe-1', 5_000)+ ).not.toThrow()+ db.close()+ })++ it('rejects a declared v4 database with a weakened Hook table', () => {+ const db = openMemory()+ migrate(db)+ db.exec('ALTER TABLE plugin_post_deliveries ADD COLUMN unexpected TEXT')++ let thrown: unknown+ try {+ migrate(db)+ } catch (error) {+ thrown = error+ }+ expect(thrown).toBeInstanceOf(StaleSchemaError)+ expect((thrown as StaleSchemaError).reason).toBe(+ 'plugin_hook_schema_missing'+ )+ db.close()+ })+})diff --git a/src/core/session/migrations/v4.ts b/src/core/session/migrations/v4.tsnew file mode 100644index 00000000..bcaa436d--- /dev/null+++ b/src/core/session/migrations/v4.ts@@ -0,0 +1,262 @@+import type Database from 'better-sqlite3'+import type { SchemaObjectDefinition } from './v1'++export const V4_SCHEMA_OBJECTS: readonly SchemaObjectDefinition[] = [+ {+ name: 'plugin_finalize_journals',+ sql: `CREATE TABLE plugin_finalize_journals (+ plan_id TEXT PRIMARY KEY+ CHECK (typeof(plan_id) = 'text' AND length(plan_id) BETWEEN 1 AND 128),+ task_id TEXT NOT NULL UNIQUE+ CHECK (typeof(task_id) = 'text' AND length(task_id) BETWEEN 1 AND 256),+ phase TEXT NOT NULL CHECK (phase IN (+ 'prepared','target_staged','source_preserved','target_installed',+ 'db_committed','cleaned','quarantined'+ )),+ plan_json TEXT NOT NULL+ CHECK (typeof(plan_json) = 'text' AND json_valid(plan_json)),+ source_identity_json TEXT NOT NULL+ CHECK (typeof(source_identity_json) = 'text' AND json_valid(source_identity_json)),+ target_identity_json TEXT+ CHECK (+ target_identity_json IS NULL+ OR (typeof(target_identity_json) = 'text' AND json_valid(target_identity_json))+ ),+ quarantine_reason TEXT+ CHECK (+ quarantine_reason IS NULL+ OR (typeof(quarantine_reason) = 'text' AND length(quarantine_reason) BETWEEN 1 AND 256)+ ),+ created_at INTEGER NOT NULL+ CHECK (typeof(created_at) = 'integer' AND created_at BETWEEN 1 AND 9007199254740991),+ updated_at INTEGER NOT NULL+ CHECK (typeof(updated_at) = 'integer' AND updated_at BETWEEN 1 AND 9007199254740991),+ CHECK (+ (phase = 'quarantined' AND quarantine_reason IS NOT NULL)+ OR (phase <> 'quarantined' AND quarantine_reason IS NULL)+ )+ ) WITHOUT ROWID`,+ },+ {+ name: 'idx_plugin_finalize_journals_phase',+ sql: `CREATE INDEX idx_plugin_finalize_journals_phase+ ON plugin_finalize_journals(phase, updated_at)`,+ },+ {+ name: 'plugin_post_deliveries',+ sql: `CREATE TABLE plugin_post_deliveries (+ delivery_id TEXT PRIMARY KEY+ CHECK (typeof(delivery_id) = 'text' AND length(delivery_id) BETWEEN 1 AND 128),+ deduplication_key TEXT NOT NULL UNIQUE+ CHECK (+ typeof(deduplication_key) = 'text'+ AND length(deduplication_key) = 64+ AND deduplication_key NOT GLOB '*[^0-9a-f]*'+ ),+ occurrence_id TEXT NOT NULL+ CHECK (typeof(occurrence_id) = 'text' AND length(occurrence_id) BETWEEN 1 AND 128),+ hook TEXT NOT NULL CHECK (hook IN ('afterComplete','onError')),+ task_id TEXT NOT NULL+ CHECK (typeof(task_id) = 'text' AND length(task_id) BETWEEN 1 AND 256),+ occurred_at INTEGER NOT NULL+ CHECK (typeof(occurred_at) = 'integer' AND occurred_at BETWEEN 0 AND 9007199254740991),+ plugin_id TEXT NOT NULL+ CHECK (typeof(plugin_id) = 'text' AND length(plugin_id) BETWEEN 1 AND 256),+ plugin_version TEXT NOT NULL+ CHECK (typeof(plugin_version) = 'text' AND length(plugin_version) BETWEEN 1 AND 128),+ executable_digest TEXT NOT NULL+ CHECK (+ typeof(executable_digest) = 'text'+ AND length(executable_digest) = 64+ AND executable_digest NOT GLOB '*[^0-9a-f]*'+ ),+ created_generation INTEGER NOT NULL+ CHECK (typeof(created_generation) = 'integer' AND created_generation BETWEEN 0 AND 9007199254740991),+ effective_permissions_json TEXT NOT NULL+ CHECK (+ typeof(effective_permissions_json) = 'text'+ AND json_valid(effective_permissions_json)+ AND json_type(effective_permissions_json) = 'array'+ ),+ required_permissions_json TEXT NOT NULL+ CHECK (+ typeof(required_permissions_json) = 'text'+ AND json_valid(required_permissions_json)+ AND json_type(required_permissions_json) = 'array'+ ),+ payload_json TEXT NOT NULL+ CHECK (typeof(payload_json) = 'text' AND json_valid(payload_json)),+ payload_bytes INTEGER NOT NULL+ CHECK (typeof(payload_bytes) = 'integer' AND payload_bytes BETWEEN 0 AND 2097152),+ reserved_bytes INTEGER NOT NULL+ CHECK (typeof(reserved_bytes) = 'integer' AND reserved_bytes BETWEEN 516 AND 4194304),+ compact INTEGER NOT NULL DEFAULT 0 CHECK (compact IN (0, 1)),+ status TEXT NOT NULL CHECK (status IN (+ 'pending','delivering','delivered','dead_letter','superseded'+ )),+ attempt_count INTEGER NOT NULL DEFAULT 0+ CHECK (typeof(attempt_count) = 'integer' AND attempt_count BETWEEN 0 AND 32),+ next_attempt_at INTEGER NOT NULL+ CHECK (typeof(next_attempt_at) = 'integer' AND next_attempt_at BETWEEN 1 AND 9007199254740991),+ lease_owner TEXT+ CHECK (+ lease_owner IS NULL+ OR (typeof(lease_owner) = 'text' AND length(lease_owner) BETWEEN 1 AND 128)+ ),+ lease_expires_at INTEGER+ CHECK (+ lease_expires_at IS NULL+ OR (typeof(lease_expires_at) = 'integer' AND lease_expires_at BETWEEN 1 AND 9007199254740991)+ ),+ permanent_reason TEXT+ CHECK (+ permanent_reason IS NULL+ OR (typeof(permanent_reason) = 'text' AND length(permanent_reason) BETWEEN 1 AND 128)+ ),+ created_at INTEGER NOT NULL+ CHECK (typeof(created_at) = 'integer' AND created_at BETWEEN 1 AND 9007199254740991),+ updated_at INTEGER NOT NULL+ CHECK (typeof(updated_at) = 'integer' AND updated_at BETWEEN 1 AND 9007199254740991),+ delivered_at INTEGER+ CHECK (+ delivered_at IS NULL+ OR (typeof(delivered_at) = 'integer' AND delivered_at BETWEEN 1 AND 9007199254740991)+ ),+ receipt_invocation_id TEXT+ CHECK (+ receipt_invocation_id IS NULL+ OR (typeof(receipt_invocation_id) = 'text' AND length(receipt_invocation_id) BETWEEN 1 AND 128)+ ),+ last_error_code TEXT+ CHECK (+ last_error_code IS NULL+ OR (typeof(last_error_code) = 'text' AND length(last_error_code) BETWEEN 1 AND 128)+ ),+ last_error_message TEXT+ CHECK (+ last_error_message IS NULL+ OR (typeof(last_error_message) = 'text' AND length(last_error_message) BETWEEN 1 AND 1024)+ ),+ UNIQUE (occurrence_id, hook, plugin_id, plugin_version, executable_digest),+ CHECK (+ (status = 'delivering' AND lease_owner IS NOT NULL AND lease_expires_at IS NOT NULL)+ OR (status <> 'delivering' AND lease_owner IS NULL AND lease_expires_at IS NULL)+ ),+ CHECK (+ (status IN ('dead_letter','superseded') AND permanent_reason IS NOT NULL)+ OR (status NOT IN ('dead_letter','superseded') AND permanent_reason IS NULL)+ ),+ CHECK (+ (status = 'delivered' AND delivered_at IS NOT NULL)+ OR (status <> 'delivered' AND delivered_at IS NULL)+ ),+ CHECK (+ (status = 'delivered' AND receipt_invocation_id IS NOT NULL)+ OR (status <> 'delivered' AND receipt_invocation_id IS NULL)+ )+ ) WITHOUT ROWID`,+ },+ {+ name: 'idx_plugin_post_deliveries_claim',+ sql: `CREATE INDEX idx_plugin_post_deliveries_claim+ ON plugin_post_deliveries(status, next_attempt_at, plugin_id, created_at)`,+ },+ {+ name: 'idx_plugin_post_deliveries_task',+ sql: `CREATE INDEX idx_plugin_post_deliveries_task+ ON plugin_post_deliveries(task_id, created_at)`,+ },+ {+ name: 'plugin_post_breakers',+ sql: `CREATE TABLE plugin_post_breakers (+ plugin_id TEXT PRIMARY KEY+ CHECK (typeof(plugin_id) = 'text' AND length(plugin_id) BETWEEN 1 AND 256),+ state TEXT NOT NULL CHECK (state IN ('closed','open','half_open')),+ failure_count INTEGER NOT NULL+ CHECK (typeof(failure_count) = 'integer' AND failure_count BETWEEN 0 AND 100),+ window_started_at INTEGER+ CHECK (+ window_started_at IS NULL+ OR (typeof(window_started_at) = 'integer' AND window_started_at BETWEEN 1 AND 9007199254740991)+ ),+ open_until INTEGER+ CHECK (+ open_until IS NULL+ OR (typeof(open_until) = 'integer' AND open_until BETWEEN 1 AND 9007199254740991)+ ),+ probe_token TEXT+ CHECK (+ probe_token IS NULL+ OR (typeof(probe_token) = 'text' AND length(probe_token) BETWEEN 1 AND 128)+ ),+ probe_lease_expires_at INTEGER+ CHECK (+ probe_lease_expires_at IS NULL+ OR (typeof(probe_lease_expires_at) = 'integer' AND probe_lease_expires_at BETWEEN 1 AND 9007199254740991)+ ),+ updated_at INTEGER NOT NULL+ CHECK (typeof(updated_at) = 'integer' AND updated_at BETWEEN 1 AND 9007199254740991),+ CHECK (+ (state = 'closed' AND open_until IS NULL AND probe_token IS NULL AND probe_lease_expires_at IS NULL)+ OR (state = 'open' AND open_until IS NOT NULL AND probe_token IS NULL AND probe_lease_expires_at IS NULL)+ OR (state = 'half_open' AND open_until IS NULL AND probe_token IS NOT NULL AND probe_lease_expires_at IS NOT NULL)+ )+ ) WITHOUT ROWID`,+ },+ {+ name: 'plugin_post_quota_ledger',+ sql: `CREATE TABLE plugin_post_quota_ledger (+ scope_key TEXT PRIMARY KEY+ CHECK (typeof(scope_key) = 'text' AND length(scope_key) BETWEEN 1 AND 320),+ active_rows INTEGER NOT NULL DEFAULT 0+ CHECK (typeof(active_rows) = 'integer' AND active_rows BETWEEN 0 AND 10000),+ active_bytes INTEGER NOT NULL DEFAULT 0+ CHECK (typeof(active_bytes) = 'integer' AND active_bytes BETWEEN 0 AND 536870912),+ terminal_rows INTEGER NOT NULL DEFAULT 0+ CHECK (typeof(terminal_rows) = 'integer' AND terminal_rows BETWEEN 0 AND 40000),+ terminal_bytes INTEGER NOT NULL DEFAULT 0+ CHECK (typeof(terminal_bytes) = 'integer' AND terminal_bytes BETWEEN 0 AND 41943040),+ updated_at INTEGER NOT NULL+ CHECK (typeof(updated_at) = 'integer' AND updated_at BETWEEN 1 AND 9007199254740991)+ ) WITHOUT ROWID`,+ },+ {+ name: 'plugin_post_quota_buckets',+ sql: `CREATE TABLE plugin_post_quota_buckets (+ bucket_key TEXT PRIMARY KEY+ CHECK (typeof(bucket_key) = 'text' AND length(bucket_key) BETWEEN 1 AND 512),+ plugin_id TEXT NOT NULL+ CHECK (typeof(plugin_id) = 'text' AND length(plugin_id) BETWEEN 1 AND 256),+ hook TEXT NOT NULL CHECK (hook IN ('afterComplete','onError','all')),+ reason TEXT NOT NULL+ CHECK (typeof(reason) = 'text' AND length(reason) BETWEEN 1 AND 128),+ bucket_day INTEGER NOT NULL+ CHECK (typeof(bucket_day) = 'integer' AND bucket_day BETWEEN -1 AND 9007199254740991),+ rejected_count INTEGER NOT NULL+ CHECK (typeof(rejected_count) = 'integer' AND rejected_count BETWEEN 1 AND 9007199254740991),+ first_occurrence_id TEXT NOT NULL+ CHECK (typeof(first_occurrence_id) = 'text' AND length(first_occurrence_id) BETWEEN 1 AND 128),+ last_occurrence_id TEXT NOT NULL+ CHECK (typeof(last_occurrence_id) = 'text' AND length(last_occurrence_id) BETWEEN 1 AND 128),+ first_at INTEGER NOT NULL+ CHECK (typeof(first_at) = 'integer' AND first_at BETWEEN 1 AND 9007199254740991),+ last_at INTEGER NOT NULL+ CHECK (typeof(last_at) = 'integer' AND last_at BETWEEN 1 AND 9007199254740991),+ CHECK (first_at <= last_at)+ ) WITHOUT ROWID`,+ },+ {+ name: 'idx_plugin_post_quota_buckets_rollup',+ sql: `CREATE INDEX idx_plugin_post_quota_buckets_rollup+ ON plugin_post_quota_buckets(plugin_id, reason, bucket_day)`,+ },+] as const++export const v4 = {+ version: 4,+ up(db: Database.Database): void {+ for (const object of V4_SCHEMA_OBJECTS) {+ db.exec(object.sql)+ }+ },+}diff --git a/src/core/session/motrix-database.test.ts b/src/core/session/motrix-database.test.tsindex 44215e8a..8c9ad2e0 100644--- a/src/core/session/motrix-database.test.ts+++ b/src/core/session/motrix-database.test.ts@@ -1,3 +1,5 @@+import { materializePostDeliveries } from '@core/plugin/post/delivery-materializer'+import { PostDeliveryQuotaConfigSchema } from '@core/plugin/post/delivery-types'import { DownloadErrorCode } from '@shared/errors'import type { AppNotification } from '@shared/types/notification'import { NotificationKinds } from '@shared/types/notification'@@ -60,6 +62,59 @@ describe('saveTaskWithInstances + getAllTasks (Plan A v1 schema)', () => {db.close()})+ it('commits an initial task and beforeCreate metadata atomically', () => {+ const db = new MotrixDatabase(':memory:')+ db.init()+ const task = makeTaskRow('m-create-metadata', TaskKind.Direct)++ db.persistTaskWithPluginMetadata({ task, instances: [] }, [+ {+ pluginId: 'plugin.example',+ op: 'set',+ key: 'source',+ value: { resolver: 'example' },+ },+ ])++ expect(db.getTask(task.motrixId)?.task).toMatchObject({+ motrixId: task.motrixId,+ })+ expect(+ db.database+ .prepare(+ `SELECT value FROM plugin_task_metadata+ WHERE task_id=? AND plugin_id=? AND key=?`+ )+ .get(task.motrixId, 'plugin.example', 'source')+ ).toEqual({ value: '{"resolver":"example"}' })+ db.close()+ })++ it('rolls the initial task back when beforeCreate metadata is rejected', () => {+ const db = new MotrixDatabase(':memory:')+ db.init()+ const task = makeTaskRow('m-create-metadata-rollback', TaskKind.Direct)++ expect(() =>+ db.persistTaskWithPluginMetadata({ task, instances: [] }, [+ {+ pluginId: 'plugin.example',+ op: 'set',+ key: 'oversized',+ value: 'x'.repeat(64 * 1024 + 1),+ },+ ])+ ).toThrow('staged plugin metadata exceeds per-task quota')++ expect(db.getTask(task.motrixId)).toBeNull()+ expect(+ db.database+ .prepare(`SELECT 1 FROM plugin_task_metadata WHERE task_id=?`)+ .get(task.motrixId)+ ).toBeUndefined()+ db.close()+ })+it('round-trips a multi-instance task', () => {const db = new MotrixDatabase(':memory:')db.init()@@ -1187,6 +1242,222 @@ describe('notification store', () => {})})+describe('terminal plugin Hook commit boundary', () => {+ it('commits task graph, files, metadata, finalize journal, occurrence, and delivery together', () => {+ const db = new MotrixDatabase(':memory:')+ db.init()+ const task = {+ ...makeTaskRow('m-hook-terminal', TaskKind.Direct),+ aggStatus: TaskStatus.Completed,+ finalPath: '/downloads/result.bin',+ finalName: 'result.bin',+ finishedAt: 2_000,+ updatedAt: 2_000,+ }+ insertTargetInstalledJournal(db, 'plan-terminal', task.motrixId)+ const occurrence = makeTerminalOccurrence({+ occurrenceId: 'occ-hook-terminal',+ taskId: task.motrixId,+ toStatus: TaskStatus.Completed,+ createdAt: 2_000,+ })+ const delivery = makePostAdmission(+ occurrence.occurrenceId,+ task.motrixId,+ 2_000+ )++ const summary = db.commitTerminalHookBoundary({+ payload: { task, instances: [] },+ files: [+ {+ fileIndex: 0,+ path: task.finalPath,+ size: 7,+ selected: true,+ },+ ],+ occurrence,+ metadataOps: [+ {+ pluginId: 'plugin.example',+ op: 'set',+ key: 'checksum',+ value: 'abc123',+ },+ ],+ finalizeJournal: {+ journalId: 'plan-terminal',+ taskId: task.motrixId,+ targetIdentity: { kind: 'file', digest: 'abc123' },+ updatedAt: 2_000,+ },+ postDeliveries: [delivery],+ })++ expect(summary).toMatchObject({ admitted: 1, duplicates: 0, rejected: 0 })+ expect(db.getTask(task.motrixId)?.task).toMatchObject({+ aggStatus: TaskStatus.Completed,+ finalPath: task.finalPath,+ })+ expect(db.getTaskFiles(task.motrixId)).toEqual([+ { fileIndex: 0, path: task.finalPath, size: 7, selected: true },+ ])+ expect(+ db.database+ .prepare(+ `SELECT value FROM plugin_task_metadata+ WHERE task_id=? AND plugin_id='plugin.example' AND key='checksum'`+ )+ .get(task.motrixId)+ ).toEqual({ value: '"abc123"' })+ expect(db.listUndispatchedOccurrences()).toEqual([occurrence])+ expect(+ db.database+ .prepare(+ `SELECT phase, plan_json FROM plugin_finalize_journals+ WHERE plan_id='plan-terminal'`+ )+ .get()+ ).toEqual({+ phase: 'db_committed',+ plan_json: expect.stringContaining('"phase":"db_committed"'),+ })+ expect(+ db.database+ .prepare(+ `SELECT status, task_id FROM plugin_post_deliveries+ WHERE delivery_id=?`+ )+ .get(delivery.deliveryId)+ ).toEqual({ status: 'pending', task_id: task.motrixId })+ db.close()+ })++ it('does not count quota rejection twice when a terminal occurrence is replayed', () => {+ const db = new MotrixDatabase(':memory:')+ db.init()+ const task = {+ ...makeTaskRow('m-hook-replay', TaskKind.Direct),+ aggStatus: TaskStatus.Completed,+ finishedAt: 2_000,+ updatedAt: 2_000,+ }+ const occurrence = makeTerminalOccurrence({+ occurrenceId: 'occ-hook-replay',+ taskId: task.motrixId,+ toStatus: TaskStatus.Completed,+ createdAt: 2_000,+ })+ const first = makePostAdmission(+ occurrence.occurrenceId,+ task.motrixId,+ 2_000+ )+ const rejected = {+ ...first,+ deliveryId: `${first.deliveryId}:second`,+ deduplicationKey: `${first.deduplicationKey}:second`,+ }+ const input = {+ payload: { task, instances: [] },+ occurrence,+ postDeliveries: [first, rejected],+ postQuota: PostDeliveryQuotaConfigSchema.parse({+ pluginActiveRows: 1,+ }),+ }++ expect(db.commitTerminalHookBoundary(input)).toMatchObject({+ admitted: 1,+ duplicates: 0,+ rejected: 1,+ })+ expect(db.commitTerminalHookBoundary(input)).toMatchObject({+ admitted: 0,+ duplicates: 2,+ rejected: 0,+ })+ expect(+ db.database+ .prepare(+ `SELECT rejected_count FROM plugin_post_quota_buckets+ WHERE plugin_id='plugin.example'`+ )+ .get()+ ).toEqual({ rejected_count: 1 })+ db.close()+ })++ it('rolls every terminal participant back when delivery persistence fails', () => {+ const db = new MotrixDatabase(':memory:')+ db.init()+ const task = {+ ...makeTaskRow('m-hook-rollback', TaskKind.Direct),+ aggStatus: TaskStatus.Completed,+ finalPath: '/downloads/rollback.bin',+ finalName: 'rollback.bin',+ finishedAt: 3_000,+ updatedAt: 3_000,+ }+ insertTargetInstalledJournal(db, 'plan-rollback', task.motrixId)+ const occurrence = makeTerminalOccurrence({+ occurrenceId: 'occ-hook-rollback',+ taskId: task.motrixId,+ toStatus: TaskStatus.Completed,+ createdAt: 3_000,+ })+ const delivery = makePostAdmission(+ occurrence.occurrenceId,+ task.motrixId,+ 3_000+ )+ db.database.exec(`+ CREATE TRIGGER fail_post_delivery+ BEFORE INSERT ON plugin_post_deliveries+ BEGIN SELECT RAISE(ABORT, 'forced delivery failure'); END+ `)++ expect(() =>+ db.commitTerminalHookBoundary({+ payload: { task, instances: [] },+ occurrence,+ metadataOps: [+ {+ pluginId: 'plugin.example',+ op: 'set',+ key: 'must-rollback',+ value: true,+ },+ ],+ finalizeJournal: {+ journalId: 'plan-rollback',+ taskId: task.motrixId,+ targetIdentity: { kind: 'file', digest: 'rollback' },+ updatedAt: 3_000,+ },+ postDeliveries: [delivery],+ })+ ).toThrow('forced delivery failure')++ expect(db.getTask(task.motrixId)).toBeNull()+ expect(+ db.database+ .prepare(`SELECT 1 FROM plugin_task_metadata WHERE task_id=?`)+ .get(task.motrixId)+ ).toBeUndefined()+ expect(db.listUndispatchedOccurrences()).toEqual([])+ expect(+ db.database+ .prepare(+ `SELECT phase FROM plugin_finalize_journals WHERE plan_id='plan-rollback'`+ )+ .get()+ ).toEqual({ phase: 'target_installed' })+ db.close()+ })+})+function makeNotificationInput(overrides: Partial<NewNotificationInput> = {}): NewNotificationInput {@@ -1220,6 +1491,80 @@ function makeTerminalOccurrence(}}+function insertTargetInstalledJournal(+ db: MotrixDatabase,+ planId: string,+ taskId: string+): void {+ db.database+ .prepare(+ `INSERT INTO plugin_finalize_journals (+ plan_id, task_id, phase, plan_json, source_identity_json,+ target_identity_json, quarantine_reason, created_at, updated_at+ ) VALUES (?, ?, 'target_installed', ?, '{}', '{}', NULL, 1, 1)`+ )+ .run(+ planId,+ taskId,+ JSON.stringify({+ journalId: planId,+ phase: 'target_installed',+ plan: { planId, taskId },+ })+ )+}++function makePostAdmission(occurrenceId: string, taskId: string, at: number) {+ return materializePostDeliveries({+ event: {+ schemaVersion: 1,+ occurrenceId,+ taskId,+ occurredAt: at,+ payload: {+ filePath: '/downloads/result.bin',+ task: {+ schemaVersion: 1,+ id: taskId,+ name: 'result.bin',+ type: 'http',+ kind: 'direct',+ status: 'completed',+ filePath: '/downloads/result.bin',+ saveDir: '/downloads',+ filename: 'result.bin',+ progress: 100,+ totalBytes: 7,+ downloadedBytes: 7,+ uploadedBytes: 0,+ sizeWhenDone: 7,+ fileCount: 1,+ createdAt: at,+ updatedAt: at,+ finishedAt: at,+ category: null,+ infoHash: null,+ error: null,+ },+ },+ },+ candidates: [+ {+ hook: 'afterComplete',+ executable: {+ pluginId: 'plugin.example',+ version: '1.0.0',+ digest: 'a'.repeat(64),+ },+ createdGeneration: 1,+ requiredPermissions: [],+ createdEffectivePermissions: [],+ },+ ],+ createdAt: at,+ })[0]+}+function makeDiagnosisOccurrence(overrides: Partial<TaskDiagnosisOccurrence> = {}): TaskDiagnosisOccurrence {diff --git a/src/core/session/motrix-database.ts b/src/core/session/motrix-database.tsindex b762ef81..8b9999f5 100644--- a/src/core/session/motrix-database.ts+++ b/src/core/session/motrix-database.ts@@ -1,5 +1,17 @@import { createHash, randomUUID } from 'node:crypto'+import path from 'node:path'import { getLogger } from '@core/logger'+import { ensureMetadataSchema } from '@core/plugin/capabilities/metadata'+import type { StagedMetadataOp } from '@core/plugin/hooks/staged-effects'+import {+ admitPostDeliveries,+ type PostDeliveryAdmissionSummary,+} from '@core/plugin/post/delivery-retention'+import {+ DEFAULT_POST_DELIVERY_QUOTA_CONFIG,+ type PostDeliveryAdmission,+ type PostDeliveryQuotaConfig,+} from '@core/plugin/post/delivery-types'import { DownloadErrorCode } from '@shared/errors'import {type TaskErrorFields,@@ -26,6 +38,7 @@ import type BetterSqlite3 from 'better-sqlite3'import Database from 'better-sqlite3'import { z } from 'zod'import { migrate } from './migrations'+import { SqlitePostDeliveryRepository } from './post-delivery-repository'const log = getLogger('MotrixDatabase')@@ -188,6 +201,30 @@ export interface TaskWithInstancesAndFiles extends TaskWithInstances {* `MotrixDatabase.applyDiagnosisUpgradeRow`. */export type DiagnosisUpgradeRowOutcome = 'updated' | 'unchanged' | 'conflict'+export interface TerminalHookFinalizeJournalUpdate {+ journalId: string+ taskId: string+ targetIdentity: unknown+ updatedAt: number+}++/**+ * Complete durable graph for one terminal Hook boundary. Candidate rows are+ * already snapshotted and DTO-validated under the registry generation lease.+ */+export interface TerminalHookCommitInput {+ payload: TaskWithInstances+ files?: readonly TaskFileRow[]+ occurrence: TaskOccurrence | null+ fileRebase?: { sourceRoot: string; targetRoot: string }+ metadataOps?: readonly StagedMetadataOp[]+ finalizeJournal?: TerminalHookFinalizeJournalUpdate+ postDeliveries?: readonly PostDeliveryAdmission[]+ postQuota?: PostDeliveryQuotaConfig+ /** Synchronous registry-generation revalidation at the write boundary. */+ beforeCommit?: () => void+}+export class MotrixDatabase {private db: BetterSqlite3.Database// Content signature (task + instances) of the last row this process wrote@@ -198,6 +235,7 @@ export class MotrixDatabase {// every out-of-band writer (deleteTask / replaceInstances / deleteInstance)// keeps it fail-safe: a stale-or-missing entry forces a write, never a skip.private readonly lastPersistedSig = new Map<string, string>()+ private postDeliveryRepository?: SqlitePostDeliveryRepository// ── task-level statements ─────────────────────────────private stmtUpsertTask!: BetterSqlite3.Statementprivate stmtGetAllTasks!: BetterSqlite3.Statement@@ -251,7 +289,18 @@ export class MotrixDatabase {init(): void {migrate(this.db)+ ensureMetadataSchema(this.db)this.prepareStatements()+ this.postDeliveryRepository = new SqlitePostDeliveryRepository(this.db)+ }++ get durablePostDeliveries(): SqlitePostDeliveryRepository {+ if (!this.postDeliveryRepository) {+ throw new Error(+ 'MotrixDatabase.init() must run before plugin delivery access'+ )+ }+ return this.postDeliveryRepository}private prepareStatements(): void {@@ -514,6 +563,28 @@ export class MotrixDatabase {})()}+ /**+ * Persist a newly-created task graph and every metadata mutation staged by+ * beforeCreate as one SQLite commit. The task row must be written first so+ * plugin_task_metadata's task foreign key is satisfied, while any metadata+ * validation/quota failure rolls the complete create intent back.+ */+ persistTaskWithPluginMetadata(+ payload: TaskWithInstances,+ operations: readonly StagedMetadataOp[]+ ): void {+ const signature = this.rowSignature(payload)+ this.db.transaction(() => {+ this.writeRow(payload)+ this.applyStagedMetadata(+ payload.task.motrixId,+ operations,+ payload.task.updatedAt+ )+ })()+ this.lastPersistedSig.set(payload.task.motrixId, signature)+ }+/*** Replace a task's complete durable graph in one SQLite transaction.*@@ -714,6 +785,202 @@ export class MotrixDatabase {})()}+ /**+ * H12/H20 terminal commit boundary. The final task graph, rebased task+ * files, staged per-plugin metadata, finalize journal phase, terminal+ * occurrence, and every post-Hook admission/tombstone are one SQLite+ * transaction. Nothing from a failed commit is externally durable.+ */+ commitTerminalHookBoundary(+ input: TerminalHookCommitInput+ ): PostDeliveryAdmissionSummary {+ const deliveries = input.postDeliveries ?? []+ const quota = input.postQuota ?? DEFAULT_POST_DELIVERY_QUOTA_CONFIG+ const signature = this.rowSignature(input.payload)+ const summary = this.db.transaction(() => {+ if (deliveries.length > 0 && !input.occurrence) {+ throw new Error('post deliveries require a durable occurrence identity')+ }+ input.beforeCommit?.()+ this.writeRow(input.payload)+ if (input.files) {+ this.writeTaskFiles(input.payload.task.motrixId, [...input.files])+ }+ this.applyStagedMetadata(+ input.payload.task.motrixId,+ input.metadataOps ?? [],+ input.payload.task.updatedAt+ )+ if (input.fileRebase) {+ this.rebaseTaskFilesInCurrentTransaction(+ input.payload.task.motrixId,+ input.fileRebase.sourceRoot,+ input.fileRebase.targetRoot+ )+ }+ const occurrenceWasDuplicate = input.occurrence+ ? this.stmtInsertOccurrenceOrIgnore.run(+ this.serializeOccurrence(input.occurrence)+ ).changes === 0+ : false+ if (input.finalizeJournal) {+ const journal = input.finalizeJournal+ if (journal.taskId !== input.payload.task.motrixId) {+ throw new Error('finalize journal task does not match terminal task')+ }+ const persisted = this.db+ .prepare(+ `SELECT plan_json FROM plugin_finalize_journals+ WHERE plan_id=? AND task_id=? AND phase='target_installed'`+ )+ .get(journal.journalId, journal.taskId) as+ | { plan_json: string }+ | undefined+ if (!persisted) {+ throw new Error('finalize journal is not ready for terminal commit')+ }+ const parsed: unknown = JSON.parse(persisted.plan_json)+ if (!parsed || typeof parsed !== 'object' || Array.isArray(parsed)) {+ throw new Error('finalize journal payload is invalid')+ }+ const record = parsed as Record<string, unknown>+ if (+ record.journalId !== journal.journalId ||+ (record.plan as { taskId?: unknown } | undefined)?.taskId !==+ journal.taskId+ ) {+ throw new Error('finalize journal payload identity mismatch')+ }+ const committedRecord = JSON.stringify({+ ...record,+ phase: 'db_committed',+ targetIdentity: journal.targetIdentity,+ })+ const changed = this.db+ .prepare(+ `UPDATE plugin_finalize_journals+ SET phase='db_committed', plan_json=?,+ target_identity_json=?, updated_at=?+ WHERE plan_id=? AND task_id=? AND phase='target_installed'`+ )+ .run(+ committedRecord,+ JSON.stringify(journal.targetIdentity),+ journal.updatedAt,+ journal.journalId,+ journal.taskId+ ).changes+ if (changed !== 1) {+ throw new Error('finalize journal is not ready for terminal commit')+ }+ }+ // The occurrence id is the durable admission idempotency boundary. A+ // replay of a committed terminal occurrence must not count a second+ // quota tombstone even when the rejected delivery has no row of its own.+ if (occurrenceWasDuplicate) {+ return {+ admitted: 0,+ duplicates: deliveries.length,+ rejected: 0,+ results: deliveries.map((delivery) => ({+ kind: 'duplicate' as const,+ deliveryId: delivery.deliveryId,+ })),+ }+ }+ return admitPostDeliveries(this.durablePostDeliveries, deliveries, quota)+ })()+ this.lastPersistedSig.set(input.payload.task.motrixId, signature)+ return summary+ }++ private applyStagedMetadata(+ taskId: string,+ operations: readonly StagedMetadataOp[],+ updatedAt: number+ ): void {+ if (operations.length === 0) return+ const insert = this.db.prepare(+ `INSERT INTO plugin_task_metadata+ (task_id, plugin_id, key, value, size, updated_at)+ VALUES (?, ?, ?, ?, ?, ?)+ ON CONFLICT(task_id, plugin_id, key) DO UPDATE SET+ value=excluded.value, size=excluded.size,+ updated_at=excluded.updated_at`+ )+ const remove = this.db.prepare(+ `DELETE FROM plugin_task_metadata+ WHERE task_id=? AND plugin_id=? AND key=?`+ )+ const usage = this.db.prepare(+ `SELECT COALESCE(SUM(size), 0) AS bytes+ FROM plugin_task_metadata WHERE task_id=? AND plugin_id=?`+ )+ const prior = this.db.prepare(+ `SELECT size FROM plugin_task_metadata+ WHERE task_id=? AND plugin_id=? AND key=?`+ )+ const projectedByPlugin = new Map<string, number>()++ for (const operation of operations) {+ const current =+ projectedByPlugin.get(operation.pluginId) ??+ (usage.get(taskId, operation.pluginId) as { bytes: number }).bytes+ const previous = prior.get(taskId, operation.pluginId, operation.key) as+ | { size: number }+ | undefined+ if (operation.op === 'delete') {+ remove.run(taskId, operation.pluginId, operation.key)+ projectedByPlugin.set(+ operation.pluginId,+ Math.max(0, current - (previous?.size ?? 0))+ )+ continue+ }+ const json = JSON.stringify(operation.value)+ if (json === undefined) {+ throw new TypeError('staged plugin metadata is not JSON serializable')+ }+ const size = Buffer.byteLength(json, 'utf8')+ if (operation.size !== undefined && operation.size !== size) {+ throw new TypeError('staged plugin metadata size does not match value')+ }+ const projected = current - (previous?.size ?? 0) + size+ if (projected > 64 * 1024) {+ throw new RangeError('staged plugin metadata exceeds per-task quota')+ }+ insert.run(+ taskId,+ operation.pluginId,+ operation.key,+ json,+ size,+ Math.max(1, updatedAt)+ )+ projectedByPlugin.set(operation.pluginId, projected)+ }+ }++ private rebaseTaskFilesInCurrentTransaction(+ taskId: string,+ sourceRoot: string,+ targetRoot: string+ ): void {+ const rows = this.stmtGetFiles.all(taskId) as TaskFileRow[]+ let changed = false+ const rebased = rows.map((row) => {+ if (!row.path) return row+ const relative = path.relative(sourceRoot, row.path)+ if (relative.startsWith('..') || path.isAbsolute(relative)) return row+ changed = true+ return {+ ...row,+ path: relative === '' ? targetRoot : path.join(targetRoot, relative),+ }+ })+ if (changed) this.writeTaskFiles(taskId, rebased)+ }+/*** CAS-guarded diagnosis upgrade. Reads the row's current revision and* error group, then decides, all inside one transaction:diff --git a/src/core/session/post-delivery-repository.test.ts b/src/core/session/post-delivery-repository.test.tsnew file mode 100644index 00000000..01ffa328--- /dev/null+++ b/src/core/session/post-delivery-repository.test.ts@@ -0,0 +1,476 @@+import { materializePostDeliveries } from '@core/plugin/post/delivery-materializer'+import {+ POST_DELIVERY_CORE_RESERVE_BYTES,+ PostDeliveryQuotaConfigSchema,+} from '@core/plugin/post/delivery-types'+import Database from 'better-sqlite3'+import { afterEach, beforeEach, describe, expect, it } from 'vitest'+import { migrate } from './migrations'+import { SqlitePostDeliveryRepository } from './post-delivery-repository'++describe('SqlitePostDeliveryRepository', () => {+ let db: Database.Database+ let repository: SqlitePostDeliveryRepository++ beforeEach(() => {+ db = new Database(':memory:')+ db.pragma('foreign_keys = ON')+ migrate(db)+ repository = new SqlitePostDeliveryRepository(db)+ })++ afterEach(() => db.close())++ it('atomically admits, deduplicates, reserves quota, and records a bounded rejection', () => {+ repository.setQuotaConfig(+ PostDeliveryQuotaConfigSchema.parse({ pluginActiveRows: 1 })+ )+ const first = admission('occ-1', 1_000)+ const second = admission('occ-2', 2_000)++ expect(repository.admitMany([first])).toEqual({+ admitted: 1,+ deduplicated: 0,+ rejected: 0,+ })+ expect(repository.admitMany([first])).toEqual({+ admitted: 0,+ deduplicated: 1,+ rejected: 0,+ })+ expect(repository.admitMany([second])).toEqual({+ admitted: 0,+ deduplicated: 0,+ rejected: 1,+ })++ expect(tableCount(db, 'plugin_post_deliveries')).toBe(1)+ expect(tableCount(db, 'plugin_post_quota_buckets')).toBe(1)+ expect(+ db+ .prepare(+ `SELECT active_rows FROM plugin_post_quota_ledger+ WHERE scope_key='global'`+ )+ .get()+ ).toEqual({ active_rows: 1 })+ })++ it('joins a caller-owned terminal transaction and rolls admission back with it', () => {+ expect(() =>+ db.transaction(() => {+ repository.admitManyInCurrentTransaction([+ admission('occ-rollback', 1_000),+ ])+ throw new Error('terminal write failed')+ })()+ ).toThrow('terminal write failed')++ expect(tableCount(db, 'plugin_post_deliveries')).toBe(0)+ expect(tableCount(db, 'plugin_post_quota_ledger')).toBe(0)+ })++ it('claims with CAS and recovers only expired delivery leases', async () => {+ const row = admission('occ-claim', 1_000)+ repository.admitMany([row])+ const permit = await repository.acquireBreakerPermit(+ row.executable.pluginId,+ 1_000,+ 'breaker-token',+ 10_000+ )+ expect(permit).toEqual({ mode: 'closed', token: 'breaker-token' })++ const claim = await repository.claimNextForPlugin({+ pluginId: row.executable.pluginId,+ now: 1_000,+ leaseToken: 'lease-token',+ leaseExpiresAt: 2_000,+ maxAttempts: 12,+ maxActiveAgeMs: 86_400_000,+ })+ expect(claim).toMatchObject({+ deliveryId: row.deliveryId,+ status: 'delivering',+ attemptCount: 1,+ leaseToken: 'lease-token',+ })+ expect(await repository.recoverExpiredLeases(1_999)).toEqual({+ deliveries: 0,+ breakerProbes: 0,+ })+ expect(await repository.recoverExpiredLeases(2_000)).toEqual({+ deliveries: 1,+ breakerProbes: 0,+ })+ })++ it('completes row, compact receipt, quota release, and breaker close in one transaction', async () => {+ const row = admission('occ-complete', 1_000)+ repository.admitMany([row])+ const permit = (await repository.acquireBreakerPermit(+ row.executable.pluginId,+ 1_000,+ 'permit',+ 9_000+ ))!+ const claim = (await repository.claimNextForPlugin({+ pluginId: row.executable.pluginId,+ now: 1_000,+ leaseToken: 'lease',+ leaseExpiresAt: 9_000,+ maxAttempts: 12,+ maxActiveAgeMs: 86_400_000,+ }))!++ await expect(+ repository.complete(+ {+ deliveryId: claim.deliveryId,+ leaseToken: claim.leaseToken,+ receipt: {+ deliveryId: claim.deliveryId,+ invocationId: 'invoke-1',+ completedAt: 1_500,+ },+ },+ { pluginId: row.executable.pluginId, permit, now: 1_500 }+ )+ ).resolves.toBe(true)++ const stored = db+ .prepare(+ `SELECT status, compact, payload_bytes, receipt_invocation_id+ FROM plugin_post_deliveries WHERE delivery_id=?`+ )+ .get(row.deliveryId) as {+ status: string+ compact: number+ payload_bytes: number+ receipt_invocation_id: string+ }+ expect(stored).toMatchObject({+ status: 'delivered',+ compact: 1,+ receipt_invocation_id: 'invoke-1',+ })+ expect(stored.payload_bytes).toBeLessThanOrEqual(1_024)+ expect(+ db+ .prepare(+ `SELECT active_rows, terminal_rows FROM plugin_post_quota_ledger+ WHERE scope_key='global'`+ )+ .get()+ ).toEqual({ active_rows: 0, terminal_rows: 1 })+ })++ it('opens and durably probes the circuit breaker after retryable failure', async () => {+ const row = admission('occ-breaker', 1_000)+ repository.admitMany([row])+ const permit = (await repository.acquireBreakerPermit(+ row.executable.pluginId,+ 1_000,+ 'permit',+ 9_000+ ))!+ const claim = (await repository.claimNextForPlugin({+ pluginId: row.executable.pluginId,+ now: 1_000,+ leaseToken: 'lease',+ leaseExpiresAt: 9_000,+ maxAttempts: 12,+ maxActiveAgeMs: 86_400_000,+ }))!++ const retried = await repository.retry(+ {+ deliveryId: claim.deliveryId,+ leaseToken: claim.leaseToken,+ nextAttemptAt: 2_000,+ errorCode: 'plugin.post.retryable',+ failedAt: 1_500,+ },+ {+ pluginId: row.executable.pluginId,+ permit,+ now: 1_500,+ threshold: 1,+ windowMs: 60_000,+ pauseMs: 60_000,+ }+ )+ expect(retried.updated).toBe(true)+ expect(retried.breaker).toMatchObject({ state: 'open', openUntil: 61_500 })+ await expect(+ repository.acquireBreakerPermit(+ row.executable.pluginId,+ 61_499,+ 'probe-early',+ 70_000+ )+ ).resolves.toBeUndefined()+ await expect(+ repository.acquireBreakerPermit(+ row.executable.pluginId,+ 61_500,+ 'probe',+ 70_000+ )+ ).resolves.toEqual({ mode: 'half_open', token: 'probe' })+ })++ it('terminalizes rows whose required permission is revoked without a live task', async () => {+ const row = admission('occ-revoke', 1_000, ['network'])+ repository.admitMany([row])++ await expect(+ repository.terminalizePermissionRevoked({+ pluginId: row.executable.pluginId,+ revokedPermissions: ['network'],+ at: 2_000,+ })+ ).resolves.toBe(1)+ expect(+ db+ .prepare(+ `SELECT status, permanent_reason, compact+ FROM plugin_post_deliveries WHERE delivery_id=?`+ )+ .get(row.deliveryId)+ ).toEqual({+ status: 'dead_letter',+ permanent_reason: 'permission_revoked',+ compact: 1,+ })+ })++ it('quarantines structurally malformed persisted permission arrays instead of wedging claims', async () => {+ const row = admission('occ-corrupt', 1_000)+ repository.admitMany([row])+ db.prepare(+ `UPDATE plugin_post_deliveries+ SET required_permissions_json='[1]'+ WHERE delivery_id=?`+ ).run(row.deliveryId)++ await expect(+ repository.claimNextForPlugin({+ pluginId: row.executable.pluginId,+ now: 1_000,+ leaseToken: 'lease',+ leaseExpiresAt: 2_000,+ maxAttempts: 12,+ maxActiveAgeMs: 86_400_000,+ })+ ).resolves.toBeUndefined()+ expect(+ db+ .prepare(+ `SELECT status, permanent_reason, last_error_code+ FROM plugin_post_deliveries WHERE delivery_id=?`+ )+ .get(row.deliveryId)+ ).toEqual({+ status: 'dead_letter',+ permanent_reason: 'input_invalid',+ last_error_code: 'plugin.post.persisted_input_invalid',+ })+ })++ it('reserves configured database capacity for non-post core writes', () => {+ const constrained = new SqlitePostDeliveryRepository(+ db,+ PostDeliveryQuotaConfigSchema.parse({}),+ () => 1_000,+ () => ({+ databaseCapacityBytes: POST_DELIVERY_CORE_RESERVE_BYTES + 512,+ coreLogicalBytes: 0,+ })+ )++ expect(constrained.admitMany([admission('occ-reserve', 1_000)])).toEqual({+ admitted: 0,+ deduplicated: 0,+ rejected: 1,+ })+ expect(+ db.prepare('SELECT reason FROM plugin_post_quota_buckets').get()+ ).toEqual({ reason: 'post_hard_budget' })+ })++ it('does not let an initially-invalid compact receipt consume the core reserve', () => {+ const constrained = new SqlitePostDeliveryRepository(+ db,+ PostDeliveryQuotaConfigSchema.parse({}),+ () => 1_000,+ () => ({+ databaseCapacityBytes: POST_DELIVERY_CORE_RESERVE_BYTES + 512,+ coreLogicalBytes: 0,+ })+ )+ const invalid = {+ ...admission('occ-invalid-reserve', 1_000),+ initialStatus: 'dead_letter' as const,+ initialReason: 'input_invalid' as const,+ initialErrorCode: 'plugin.hook.input_invalid',+ }++ expect(constrained.admitMany([invalid])).toEqual({+ admitted: 0,+ deduplicated: 0,+ rejected: 1,+ })+ expect(tableCount(db, 'plugin_post_deliveries')).toBe(0)+ expect(+ db.prepare('SELECT reason FROM plugin_post_quota_buckets').get()+ ).toEqual({ reason: 'post_hard_budget' })+ })++ it('prunes the oldest terminal receipt before the ledger reaches its row cap', async () => {+ repository.setQuotaConfig(+ PostDeliveryQuotaConfigSchema.parse({ pluginTerminalRows: 1 })+ )+ const first = admission('occ-terminal-first', 1_000)+ const second = admission('occ-terminal-second', 2_000)+ repository.admitMany([first, second])++ await completeDelivery(repository, first, 1_000, 1_500)+ await completeDelivery(repository, second, 2_000, 2_500)++ expect(tableCount(db, 'plugin_post_deliveries')).toBe(1)+ expect(+ db.prepare('SELECT delivery_id, status FROM plugin_post_deliveries').get()+ ).toEqual({ delivery_id: second.deliveryId, status: 'delivered' })+ expect(+ db+ .prepare(+ `SELECT terminal_rows FROM plugin_post_quota_ledger+ WHERE scope_key='global'`+ )+ .get()+ ).toEqual({ terminal_rows: 1 })+ })++ it('merges out-of-order quota rejections without moving last_at backwards', () => {+ repository.setQuotaConfig(+ PostDeliveryQuotaConfigSchema.parse({ pluginActiveRows: 1 })+ )+ repository.admitMany([admission('occ-capacity', 1_000)])+ repository.admitMany([admission('occ-newer', 3_000)])+ repository.admitMany([admission('occ-older', 2_000)])++ expect(+ db+ .prepare(+ `SELECT rejected_count, first_occurrence_id, last_occurrence_id,+ first_at, last_at+ FROM plugin_post_quota_buckets`+ )+ .get()+ ).toEqual({+ rejected_count: 2,+ first_occurrence_id: 'occ-older',+ last_occurrence_id: 'occ-newer',+ first_at: 2_000,+ last_at: 3_000,+ })+ })+})++async function completeDelivery(+ repository: SqlitePostDeliveryRepository,+ row: ReturnType<typeof admission>,+ claimedAt: number,+ completedAt: number+): Promise<void> {+ const permit = (await repository.acquireBreakerPermit(+ row.executable.pluginId,+ claimedAt,+ `permit-${row.occurrenceId}`,+ completedAt + 10_000+ ))!+ const claim = (await repository.claimNextForPlugin({+ pluginId: row.executable.pluginId,+ now: claimedAt,+ leaseToken: `lease-${row.occurrenceId}`,+ leaseExpiresAt: completedAt + 10_000,+ maxAttempts: 12,+ maxActiveAgeMs: 86_400_000,+ }))!+ await repository.complete(+ {+ deliveryId: claim.deliveryId,+ leaseToken: claim.leaseToken,+ receipt: {+ deliveryId: claim.deliveryId,+ invocationId: `invoke-${row.occurrenceId}`,+ completedAt,+ },+ },+ { pluginId: row.executable.pluginId, permit, now: completedAt }+ )+}++function admission(+ occurrenceId: string,+ at: number,+ permissions: readonly string[] = []+) {+ return materializePostDeliveries({+ event: {+ schemaVersion: 1,+ occurrenceId,+ taskId: `task-${occurrenceId}`,+ occurredAt: at,+ payload: {+ filePath: `/downloads/${occurrenceId}.bin`,+ task: {+ schemaVersion: 1,+ id: `task-${occurrenceId}`,+ name: `${occurrenceId}.bin`,+ type: 'http',+ kind: 'direct',+ status: 'completed',+ filePath: `/downloads/${occurrenceId}.bin`,+ saveDir: '/downloads',+ filename: `${occurrenceId}.bin`,+ progress: 100,+ totalBytes: 1,+ downloadedBytes: 1,+ uploadedBytes: 0,+ sizeWhenDone: 1,+ fileCount: 1,+ createdAt: at,+ updatedAt: at,+ finishedAt: at,+ category: null,+ infoHash: null,+ error: null,+ },+ },+ },+ candidates: [+ {+ hook: 'afterComplete',+ executable: {+ pluginId: 'plugin.example',+ version: '1.0.0',+ digest: 'a'.repeat(64),+ },+ createdGeneration: 1,+ requiredPermissions: permissions,+ createdEffectivePermissions: permissions,+ },+ ],+ createdAt: at,+ })[0]+}++function tableCount(db: Database.Database, table: string): number {+ return (+ db.prepare(`SELECT COUNT(*) AS count FROM ${table}`).get() as {+ count: number+ }+ ).count+}diff --git a/src/core/session/post-delivery-repository.ts b/src/core/session/post-delivery-repository.tsnew file mode 100644index 00000000..2effeb4d--- /dev/null+++ b/src/core/session/post-delivery-repository.ts@@ -0,0 +1,1446 @@+import { createHash } from 'node:crypto'+import {+ type AtomicPostDeliveryAdmissionResult,+ compactTerminalReceipt,+ POST_DELIVERY_DAILY_BUCKETS_PER_REASON,+ POST_DELIVERY_GLOBAL_TOMBSTONE_BUCKETS,+ type PostDeliveryAdmissionTransaction,+ type PostDeliveryLedgerSnapshot,+ type PostDeliveryRetentionRepository,+} from '@core/plugin/post/delivery-retention'+import {+ type BreakerFailureInput,+ type ClaimPostDeliveryInput,+ type CompletePostDeliveryInput,+ DEFAULT_POST_DELIVERY_QUOTA_CONFIG,+ type DeadLetterPostDeliveryInput,+ type PluginExecutableIdentity,+ POST_DELIVERY_CORE_RESERVE_BYTES,+ POST_DELIVERY_HARD_BUDGET_BYTES,+ POST_DELIVERY_ROW_CHARGE_BYTES,+ type PostDeliveryAdmission,+ type PostDeliveryAdmissionReason,+ type PostDeliveryBreakerPermit,+ type PostDeliveryBreakerState,+ type PostDeliveryClaim,+ type PostDeliveryPermanentReason,+ type PostDeliveryQuotaConfig,+ PostDeliveryQuotaConfigSchema,+ type PostDeliveryRecord,+ type PostDeliveryRepository,+ type RetryPostDeliveryInput,+} from '@core/plugin/post/delivery-types'+import type Database from 'better-sqlite3'++const GLOBAL_SCOPE = 'global'+const ACTIVE_STATUSES = "'pending','delivering'"+const TERMINAL_STATUSES = "'delivered','dead_letter','superseded'"+const DEFAULT_DATABASE_CAPACITY_BYTES =+ POST_DELIVERY_HARD_BUDGET_BYTES + POST_DELIVERY_CORE_RESERVE_BYTES+const POST_STORAGE_NAMES = [+ 'plugin_post_deliveries',+ 'idx_plugin_post_deliveries_claim',+ 'idx_plugin_post_deliveries_task',+ 'plugin_post_breakers',+ 'plugin_post_quota_ledger',+ 'plugin_post_quota_buckets',+ 'idx_plugin_post_quota_buckets_rollup',+] as const++export interface PostDeliveryDatabaseCapacity {+ databaseCapacityBytes: number+ coreLogicalBytes: number+}++interface LedgerRow {+ active_rows: number+ active_bytes: number+ terminal_rows: number+ terminal_bytes: number+}++interface RawDeliveryRow {+ delivery_id: string+ deduplication_key: string+ occurrence_id: string+ hook: 'afterComplete' | 'onError'+ task_id: string+ occurred_at: number+ plugin_id: string+ plugin_version: string+ executable_digest: string+ created_generation: number+ effective_permissions_json: string+ required_permissions_json: string+ payload_json: string+ payload_bytes: number+ reserved_bytes: number+ compact: 0 | 1+ status: 'pending' | 'delivering' | 'delivered' | 'dead_letter' | 'superseded'+ attempt_count: number+ next_attempt_at: number+ lease_owner: string | null+ lease_expires_at: number | null+ permanent_reason: PostDeliveryPermanentReason | null+ created_at: number+ updated_at: number+ delivered_at: number | null+ receipt_invocation_id: string | null+ last_error_code: string | null+ last_error_message: string | null+}++interface RawBreakerRow {+ plugin_id: string+ state: 'closed' | 'open' | 'half_open'+ failure_count: number+ window_started_at: number | null+ open_until: number | null+ probe_token: string | null+ probe_lease_expires_at: number | null+}++export interface PostDeliveryAdmissionResult {+ admitted: number+ deduplicated: number+ rejected: number+}++/**+ * SQLite implementation of both durable post-Hook repository contracts.+ * Every state transition and its quota/breaker accounting share one+ * better-sqlite3 transaction. The `admitManyInCurrentTransaction` entry point+ * intentionally does not start a transaction: callers use it from the task+ * terminal transaction so the task, occurrence, and candidate decisions are+ * one commit boundary.+ */+export class SqlitePostDeliveryRepository+ implements+ PostDeliveryRepository,+ PostDeliveryRetentionRepository,+ PostDeliveryAdmissionTransaction+{+ private quota: PostDeliveryQuotaConfig+ private readonly capacity: () => PostDeliveryDatabaseCapacity++ constructor(+ private readonly db: Database.Database,+ quota: PostDeliveryQuotaConfig = DEFAULT_POST_DELIVERY_QUOTA_CONFIG,+ private readonly now: () => number = Date.now,+ capacity?: () => PostDeliveryDatabaseCapacity+ ) {+ this.quota = PostDeliveryQuotaConfigSchema.parse(quota)+ this.capacity = capacity ?? (() => this.readDatabaseCapacity())+ }++ setQuotaConfig(quota: PostDeliveryQuotaConfig): void {+ this.quota = PostDeliveryQuotaConfigSchema.parse(quota)+ }++ admitMany(+ admissions: readonly PostDeliveryAdmission[]+ ): PostDeliveryAdmissionResult {+ return this.db.transaction(() =>+ this.admitManyInCurrentTransaction(admissions)+ )()+ }++ admitManyInCurrentTransaction(+ admissions: readonly PostDeliveryAdmission[]+ ): PostDeliveryAdmissionResult {+ const result: PostDeliveryAdmissionResult = {+ admitted: 0,+ deduplicated: 0,+ rejected: 0,+ }+ for (const admission of admissions) {+ const decision = this.admitOrTombstone(admission, this.quota)+ if (decision.kind === 'admitted') result.admitted += 1+ else if (decision.kind === 'duplicate') result.deduplicated += 1+ else result.rejected += 1+ }+ return result+ }++ admitOrTombstone(+ admission: PostDeliveryAdmission,+ config: PostDeliveryQuotaConfig+ ): AtomicPostDeliveryAdmissionResult {+ const quota = PostDeliveryQuotaConfigSchema.parse(config)+ if (this.deliveryExists(admission.deliveryId, admission.deduplicationKey)) {+ return { kind: 'duplicate', deliveryId: admission.deliveryId }+ }+ const reason = this.admissionRejection(admission, quota)+ if (reason) {+ const tombstoneKey = this.recordTombstone(admission, reason)+ return {+ kind: 'rejected',+ deliveryId: admission.deliveryId,+ reason,+ tombstoneKey,+ }+ }+ this.insertAdmission(admission)+ return { kind: 'admitted', deliveryId: admission.deliveryId }+ }++ async recoverExpiredLeases(now: number): Promise<{+ deliveries: number+ breakerProbes: number+ }> {+ return this.db.transaction(() => {+ const deliveries = this.db+ .prepare(+ `UPDATE plugin_post_deliveries+ SET status='pending', lease_owner=NULL, lease_expires_at=NULL,+ next_attempt_at=?, updated_at=?+ WHERE status='delivering' AND lease_expires_at <= ?`+ )+ .run(now, now, now).changes+ const breakerProbes = this.db+ .prepare(+ `UPDATE plugin_post_breakers+ SET state='open', open_until=?, probe_token=NULL,+ probe_lease_expires_at=NULL, updated_at=?+ WHERE state='half_open' AND probe_lease_expires_at <= ?`+ )+ .run(now, now, now).changes+ return { deliveries, breakerProbes }+ })()+ }++ async listClaimablePluginIds(now: number): Promise<readonly string[]> {+ return (+ this.db+ .prepare(+ `SELECT DISTINCT plugin_id+ FROM plugin_post_deliveries+ WHERE status='pending' AND next_attempt_at <= ?+ ORDER BY plugin_id`+ )+ .all(now) as Array<{ plugin_id: string }>+ ).map((row) => row.plugin_id)+ }++ async claimNextForPlugin(+ input: ClaimPostDeliveryInput+ ): Promise<PostDeliveryClaim | undefined> {+ return this.db.transaction(() => {+ let raw: RawDeliveryRow | undefined+ for (;;) {+ raw = this.db+ .prepare(+ `SELECT * FROM plugin_post_deliveries+ WHERE plugin_id=? AND status='pending' AND next_attempt_at <= ?+ ORDER BY created_at, delivery_id LIMIT 1`+ )+ .get(input.pluginId, input.now) as RawDeliveryRow | undefined+ if (!raw) return undefined+ const terminalReason =+ raw.attempt_count >= input.maxAttempts+ ? 'attempt_limit'+ : input.now - raw.created_at >= input.maxActiveAgeMs+ ? 'age_limit'+ : undefined+ if (!terminalReason) break+ this.terminalizeRow(raw, terminalReason, input.now, {+ errorCode: `plugin.post.${terminalReason}`,+ })+ this.enforceTerminalQuotas(this.quota, input.now, raw.plugin_id)+ }+ const changed = this.db+ .prepare(+ `UPDATE plugin_post_deliveries+ SET status='delivering', attempt_count=attempt_count+1,+ lease_owner=?, lease_expires_at=?, updated_at=?+ WHERE delivery_id=? AND status='pending'`+ )+ .run(+ input.leaseToken,+ input.leaseExpiresAt,+ input.now,+ raw.delivery_id+ ).changes+ if (changed !== 1) return undefined+ try {+ const claimed = this.readDelivery(raw.delivery_id)+ return claimed?.status === 'delivering'+ ? (claimed as PostDeliveryClaim)+ : undefined+ } catch {+ const corrupt = this.readRawDelivery(raw.delivery_id)+ if (corrupt) {+ this.terminalizeRow(corrupt, 'input_invalid', input.now, {+ errorCode: 'plugin.post.persisted_input_invalid',+ })+ this.enforceTerminalQuotas(this.quota, input.now, corrupt.plugin_id)+ }+ return undefined+ }+ })()+ }++ async acquireBreakerPermit(+ pluginId: string,+ now: number,+ token: string,+ leaseExpiresAt: number+ ): Promise<PostDeliveryBreakerPermit | undefined> {+ return this.db.transaction(() => {+ const row = this.readBreaker(pluginId)+ if (!row || row.state === 'closed') {+ return { mode: 'closed' as const, token }+ }+ if (row.state === 'half_open') {+ if ((row.probe_lease_expires_at ?? Number.MAX_SAFE_INTEGER) > now) {+ return undefined+ }+ this.db+ .prepare(+ `UPDATE plugin_post_breakers+ SET state='open', open_until=?, probe_token=NULL,+ probe_lease_expires_at=NULL, updated_at=?+ WHERE plugin_id=?`+ )+ .run(now, now, pluginId)+ } else if ((row.open_until ?? Number.MAX_SAFE_INTEGER) > now) {+ return undefined+ }+ const changed = this.db+ .prepare(+ `UPDATE plugin_post_breakers+ SET state='half_open', open_until=NULL, probe_token=?,+ probe_lease_expires_at=?, updated_at=?+ WHERE plugin_id=? AND state='open' AND open_until <= ?`+ )+ .run(token, leaseExpiresAt, now, pluginId, now).changes+ return changed === 1 ? { mode: 'half_open' as const, token } : undefined+ })()+ }++ async releaseBreakerPermit(+ pluginId: string,+ permit: PostDeliveryBreakerPermit+ ): Promise<void> {+ if (permit.mode !== 'half_open') return+ this.db+ .prepare(+ `UPDATE plugin_post_breakers+ SET state='open', open_until=updated_at, probe_token=NULL,+ probe_lease_expires_at=NULL+ WHERE plugin_id=? AND state='half_open' AND probe_token=?`+ )+ .run(pluginId, permit.token)+ }++ async complete(+ input: CompletePostDeliveryInput,+ breaker: {+ pluginId: string+ permit: PostDeliveryBreakerPermit+ now: number+ }+ ): Promise<boolean> {+ return this.db.transaction(() => {+ if (!this.breakerPermitIsCurrent(breaker.pluginId, breaker.permit)) {+ return false+ }+ const row = this.readRawDelivery(input.deliveryId)+ if (!this.ownsLease(row, input.leaseToken)) return false+ const receipt = compactTerminalReceipt({+ deliveryId: row.delivery_id,+ pluginId: row.plugin_id,+ hook: row.hook,+ status: 'delivered',+ completedAt: input.receipt.completedAt,+ attemptCount: row.attempt_count,+ })+ const bytes =+ Buffer.byteLength(receipt, 'utf8') ++ Buffer.byteLength('[][]', 'utf8') ++ POST_DELIVERY_ROW_CHARGE_BYTES+ this.ensureTerminalCapacity(row.plugin_id, bytes, this.quota, breaker.now)+ const changed = this.db+ .prepare(+ `UPDATE plugin_post_deliveries+ SET status='delivered', payload_json=?, payload_bytes=?, reserved_bytes=?, compact=1,+ effective_permissions_json='[]', required_permissions_json='[]',+ lease_owner=NULL, lease_expires_at=NULL, permanent_reason=NULL,+ delivered_at=?, receipt_invocation_id=?, last_error_code=NULL,+ last_error_message=NULL, updated_at=?+ WHERE delivery_id=? AND status='delivering' AND lease_owner=?`+ )+ .run(+ receipt,+ Buffer.byteLength(receipt, 'utf8'),+ bytes,+ input.receipt.completedAt,+ input.receipt.invocationId,+ breaker.now,+ input.deliveryId,+ input.leaseToken+ ).changes+ if (changed !== 1) return false+ this.moveActiveToTerminal(+ row.plugin_id,+ this.reservedBytes(row),+ bytes,+ breaker.now+ )+ this.closeBreaker(breaker.pluginId, breaker.permit, breaker.now)+ this.enforceTerminalQuotas(this.quota, breaker.now, row.plugin_id)+ return true+ })()+ }++ async retry(+ input: RetryPostDeliveryInput,+ breaker: BreakerFailureInput+ ): Promise<{ updated: boolean; breaker: PostDeliveryBreakerState }> {+ return this.db.transaction(() => {+ if (!this.breakerPermitIsCurrent(breaker.pluginId, breaker.permit)) {+ return { updated: false, breaker: this.breakerState(breaker.pluginId) }+ }+ const changed = this.db+ .prepare(+ `UPDATE plugin_post_deliveries+ SET status='pending', lease_owner=NULL, lease_expires_at=NULL,+ next_attempt_at=?, last_error_code=?, last_error_message=?,+ updated_at=?+ WHERE delivery_id=? AND status='delivering' AND lease_owner=?`+ )+ .run(+ input.nextAttemptAt,+ input.errorCode,+ truncate(input.errorMessage, 1024),+ input.failedAt,+ input.deliveryId,+ input.leaseToken+ ).changes+ if (changed !== 1) {+ return { updated: false, breaker: this.breakerState(breaker.pluginId) }+ }+ const state = this.recordBreakerFailure(breaker)+ return { updated: true, breaker: state }+ })()+ }++ async deadLetter(+ input: DeadLetterPostDeliveryInput,+ breaker: { pluginId: string; permit: PostDeliveryBreakerPermit }+ ): Promise<boolean> {+ return this.db.transaction(() => {+ if (!this.breakerPermitIsCurrent(breaker.pluginId, breaker.permit)) {+ return false+ }+ const row = this.readRawDelivery(input.deliveryId)+ if (!this.ownsLease(row, input.leaseToken)) return false+ this.terminalizeRow(+ row,+ input.reason,+ input.completedAt,+ {+ errorCode: input.errorCode,+ errorMessage: input.errorMessage,+ },+ input.terminalStatus+ )+ this.closeBreaker(breaker.pluginId, breaker.permit, input.completedAt)+ this.enforceTerminalQuotas(this.quota, input.completedAt, row.plugin_id)+ return true+ })()+ }++ async reconcileLedger(): Promise<PostDeliveryLedgerSnapshot> {+ return this.db.transaction(() => {+ this.db.prepare('DELETE FROM plugin_post_quota_ledger').run()+ const now = this.now()+ const rows = this.db+ .prepare(+ `SELECT plugin_id, status, reserved_bytes+ FROM plugin_post_deliveries`+ )+ .all() as Array<{+ plugin_id: string+ status: RawDeliveryRow['status']+ reserved_bytes: number+ }>+ for (const row of rows) {+ const bytes = row.reserved_bytes+ const terminal = isTerminalStatus(row.status)+ this.bumpLedger(+ row.plugin_id,+ terminal ? 0 : 1,+ terminal ? 0 : bytes,+ terminal ? 1 : 0,+ terminal ? bytes : 0,+ now+ )+ }+ const global = this.ledger(GLOBAL_SCOPE)+ const tombstones = this.tombstoneUsage()+ return {+ activeRows: global.active_rows,+ activeBytes: global.active_bytes,+ terminalRows: global.terminal_rows,+ terminalBytes: global.terminal_bytes,+ tombstoneRows: tombstones.rows,+ tombstoneBytes: tombstones.bytes,+ }+ })()+ }++ async compactTerminalOverQuota(+ config: PostDeliveryQuotaConfig+ ): Promise<number> {+ const parsed = PostDeliveryQuotaConfigSchema.parse(config)+ return this.db.transaction(() => {+ const before = this.terminalRowCount()+ const pluginIds = (+ this.db+ .prepare(+ `SELECT DISTINCT plugin_id FROM plugin_post_deliveries+ WHERE status IN (${TERMINAL_STATUSES})`+ )+ .all() as Array<{ plugin_id: string }>+ ).map((row) => row.plugin_id)+ const now = this.now()+ for (const pluginId of pluginIds) {+ this.enforceTerminalQuotas(parsed, now, pluginId)+ }+ return before - this.terminalRowCount()+ })()+ }++ async pruneTerminalReceipts(before: number): Promise<number> {+ return this.db.transaction(() => {+ const rows = this.db+ .prepare(+ `SELECT * FROM plugin_post_deliveries+ WHERE status IN (${TERMINAL_STATUSES}) AND updated_at < ?+ ORDER BY updated_at, delivery_id`+ )+ .all(before) as RawDeliveryRow[]+ for (const row of rows)+ this.pruneTerminalRow(row, 'terminal_expired', before)+ return rows.length+ })()+ }++ async terminalizeExecutable(input: {+ executable: PluginExecutableIdentity+ reason: 'superseded' | 'uninstalled'+ at: number+ }): Promise<number> {+ return this.terminalizeWhere(+ `plugin_id=? AND plugin_version=? AND executable_digest=?`,+ [+ input.executable.pluginId,+ input.executable.version,+ input.executable.digest,+ ],+ input.reason,+ input.at+ )+ }++ async terminalizePlugin(input: {+ pluginId: string+ reason: 'disabled' | 'uninstalled' | 'quarantined'+ at: number+ }): Promise<number> {+ return this.terminalizeWhere(+ 'plugin_id=?',+ [input.pluginId],+ input.reason,+ input.at+ )+ }++ async terminalizePermissionRevoked(input: {+ pluginId: string+ revokedPermissions: readonly string[]+ at: number+ }): Promise<number> {+ const revoked = new Set(input.revokedPermissions)+ return this.db.transaction(() => {+ const rows = this.activeRows('plugin_id=?', [input.pluginId])+ let count = 0+ for (const row of rows) {+ const required = parseStringArray(row.required_permissions_json)+ if (!required.some((permission) => revoked.has(permission))) continue+ this.terminalizeRow(row, 'permission_revoked', input.at)+ count += 1+ }+ this.enforceTerminalQuotas(this.quota, input.at, input.pluginId)+ return count+ })()+ }++ private terminalizeWhere(+ predicate: string,+ params: readonly unknown[],+ reason: PostDeliveryPermanentReason,+ at: number+ ): Promise<number> {+ return Promise.resolve(+ this.db.transaction(() => {+ const rows = this.activeRows(predicate, params)+ for (const row of rows) this.terminalizeRow(row, reason, at)+ for (const pluginId of new Set(rows.map((row) => row.plugin_id))) {+ this.enforceTerminalQuotas(this.quota, at, pluginId)+ }+ return rows.length+ })()+ )+ }++ private activeRows(+ predicate: string,+ params: readonly unknown[]+ ): RawDeliveryRow[] {+ return this.db+ .prepare(+ `SELECT * FROM plugin_post_deliveries+ WHERE status IN (${ACTIVE_STATUSES}) AND ${predicate}+ ORDER BY created_at, delivery_id`+ )+ .all(...params) as RawDeliveryRow[]+ }++ private terminalizeRow(+ row: RawDeliveryRow,+ reason: PostDeliveryPermanentReason,+ at: number,+ error?: { errorCode?: string; errorMessage?: string },+ terminalStatus: 'dead_letter' | 'superseded' = reason === 'superseded'+ ? 'superseded'+ : 'dead_letter'+ ): void {+ const receipt = compactTerminalReceipt({+ deliveryId: row.delivery_id,+ pluginId: row.plugin_id,+ hook: row.hook,+ status: terminalStatus,+ completedAt: at,+ attemptCount: row.attempt_count,+ reason,+ })+ const payloadBytes = Buffer.byteLength(receipt, 'utf8')+ const terminalBytes =+ payloadBytes ++ Buffer.byteLength('[][]', 'utf8') ++ POST_DELIVERY_ROW_CHARGE_BYTES+ this.ensureTerminalCapacity(row.plugin_id, terminalBytes, this.quota, at)+ const changed = this.db+ .prepare(+ `UPDATE plugin_post_deliveries+ SET status=?, payload_json=?, payload_bytes=?, reserved_bytes=?, compact=1,+ effective_permissions_json='[]', required_permissions_json='[]',+ lease_owner=NULL, lease_expires_at=NULL, permanent_reason=?,+ delivered_at=NULL, receipt_invocation_id=NULL,+ last_error_code=?, last_error_message=?, updated_at=?+ WHERE delivery_id=? AND status IN (${ACTIVE_STATUSES})`+ )+ .run(+ terminalStatus,+ receipt,+ payloadBytes,+ terminalBytes,+ reason,+ error?.errorCode ?? null,+ truncate(error?.errorMessage, 1024),+ at,+ row.delivery_id+ ).changes+ if (changed === 1) {+ this.moveActiveToTerminal(+ row.plugin_id,+ this.reservedBytes(row),+ terminalBytes,+ at+ )+ }+ }++ private admissionRejection(+ admission: PostDeliveryAdmission,+ quota: PostDeliveryQuotaConfig+ ): PostDeliveryAdmissionReason | undefined {+ const incomingBytes =+ admission.initialStatus === 'dead_letter'+ ? this.initialTerminalReceipt(admission).reservedBytes+ : admission.reservedBytes+ const plugin = this.ledger(this.pluginScope(admission.executable.pluginId))+ const global = this.ledger(GLOBAL_SCOPE)+ if (+ admission.initialStatus === 'pending' &&+ plugin.active_rows + 1 > quota.pluginActiveRows+ ) {+ return 'plugin_active_rows'+ }+ if (+ admission.initialStatus === 'pending' &&+ plugin.active_bytes + incomingBytes > quota.pluginActiveBytes+ ) {+ return 'plugin_active_bytes'+ }+ if (+ admission.initialStatus === 'pending' &&+ global.active_rows + 1 > quota.globalActiveRows+ ) {+ return 'global_active_rows'+ }+ if (+ admission.initialStatus === 'pending' &&+ global.active_bytes + incomingBytes > quota.globalActiveBytes+ ) {+ return 'global_active_bytes'+ }+ if (+ global.active_bytes + global.terminal_bytes + incomingBytes >+ POST_DELIVERY_HARD_BUDGET_BYTES+ ) {+ return 'post_hard_budget'+ }+ const tombstones = this.tombstoneUsage()+ const postLogicalBytes =+ global.active_bytes + global.terminal_bytes + tombstones.bytes+ const capacity = this.capacity()+ if (+ !Number.isSafeInteger(capacity.databaseCapacityBytes) ||+ !Number.isSafeInteger(capacity.coreLogicalBytes) ||+ capacity.databaseCapacityBytes < 0 ||+ capacity.coreLogicalBytes < 0+ ) {+ throw new TypeError('post-delivery database capacity is invalid')+ }+ const bytesAvailableToPost = Math.max(+ 0,+ capacity.databaseCapacityBytes -+ capacity.coreLogicalBytes -+ POST_DELIVERY_CORE_RESERVE_BYTES+ )+ if (+ postLogicalBytes + incomingBytes > bytesAvailableToPost ||+ postLogicalBytes + incomingBytes > POST_DELIVERY_HARD_BUDGET_BYTES+ ) {+ return 'post_hard_budget'+ }+ return undefined+ }++ private insertAdmission(admission: PostDeliveryAdmission): void {+ let payload = admission.canonicalPayload+ let payloadBytes = admission.payloadBytes+ let effectivePermissionsJson = JSON.stringify(+ admission.createdEffectivePermissions+ )+ let requiredPermissionsJson = JSON.stringify(admission.requiredPermissions)+ const permissionSnapshotBytes = Buffer.byteLength(+ effectivePermissionsJson + requiredPermissionsJson,+ 'utf8'+ )+ if (+ permissionSnapshotBytes !== admission.permissionSnapshotBytes ||+ admission.payloadBytes ++ permissionSnapshotBytes ++ POST_DELIVERY_ROW_CHARGE_BYTES !==+ admission.reservedBytes+ ) {+ throw new TypeError(+ 'post-delivery reservation does not match canonical bytes'+ )+ }+ const status = admission.initialStatus+ const permanentReason = admission.initialReason ?? null+ if (status === 'dead_letter') {+ const terminal = this.initialTerminalReceipt(admission)+ payload = terminal.payload+ payloadBytes = terminal.payloadBytes+ effectivePermissionsJson = '[]'+ requiredPermissionsJson = '[]'+ }+ const bytes =+ payloadBytes ++ Buffer.byteLength(+ effectivePermissionsJson + requiredPermissionsJson,+ 'utf8'+ ) ++ POST_DELIVERY_ROW_CHARGE_BYTES+ if (status === 'dead_letter') {+ this.ensureTerminalCapacity(+ admission.executable.pluginId,+ bytes,+ this.quota,+ admission.createdAt+ )+ }+ this.db+ .prepare(+ `INSERT INTO plugin_post_deliveries (+ delivery_id, deduplication_key, occurrence_id, hook, task_id,+ occurred_at, plugin_id, plugin_version, executable_digest,+ created_generation, effective_permissions_json,+ required_permissions_json, payload_json, payload_bytes,+ reserved_bytes, compact,+ status, attempt_count, next_attempt_at, lease_owner,+ lease_expires_at, permanent_reason, created_at, updated_at,+ delivered_at, receipt_invocation_id, last_error_code,+ last_error_message+ ) VALUES (+ ?,?,?,?,?, ?,?,?,?,?, ?,?,?,?,?, ?,?,?,?,?, ?,?,?,?,?, ?,?,?+ )`+ )+ .run(+ admission.deliveryId,+ admission.deduplicationKey,+ admission.occurrenceId,+ admission.hook,+ admission.taskId,+ admission.occurredAt,+ admission.executable.pluginId,+ admission.executable.version,+ admission.executable.digest,+ admission.createdGeneration,+ effectivePermissionsJson,+ requiredPermissionsJson,+ payload,+ payloadBytes,+ bytes,+ status === 'dead_letter' ? 1 : 0,+ status,+ 0,+ admission.createdAt,+ null,+ null,+ permanentReason,+ admission.createdAt,+ admission.createdAt,+ null,+ null,+ admission.initialErrorCode ?? null,+ null+ )+ this.bumpLedger(+ admission.executable.pluginId,+ status === 'pending' ? 1 : 0,+ status === 'pending' ? bytes : 0,+ status === 'dead_letter' ? 1 : 0,+ status === 'dead_letter' ? bytes : 0,+ admission.createdAt+ )+ if (status === 'dead_letter') {+ this.enforceTerminalQuotas(+ this.quota,+ admission.createdAt,+ admission.executable.pluginId+ )+ }+ }++ private initialTerminalReceipt(admission: PostDeliveryAdmission): {+ payload: string+ payloadBytes: number+ reservedBytes: number+ } {+ const payload = compactTerminalReceipt({+ deliveryId: admission.deliveryId,+ pluginId: admission.executable.pluginId,+ hook: admission.hook,+ status: 'dead_letter',+ completedAt: admission.createdAt,+ attemptCount: 0,+ reason: admission.initialReason ?? 'input_invalid',+ })+ const payloadBytes = Buffer.byteLength(payload, 'utf8')+ return {+ payload,+ payloadBytes,+ reservedBytes:+ payloadBytes ++ Buffer.byteLength('[][]', 'utf8') ++ POST_DELIVERY_ROW_CHARGE_BYTES,+ }+ }++ private deliveryExists(+ deliveryId: string,+ deduplicationKey: string+ ): boolean {+ return Boolean(+ this.db+ .prepare(+ `SELECT 1 FROM plugin_post_deliveries+ WHERE delivery_id=? OR deduplication_key=?`+ )+ .get(deliveryId, deduplicationKey)+ )+ }++ private recordTombstone(+ admission: PostDeliveryAdmission,+ reason: PostDeliveryAdmissionReason | string+ ): string {+ const day = Math.floor(admission.createdAt / 86_400_000)+ const ordinaryKey = tombstoneKey(+ admission.executable.pluginId,+ admission.hook,+ reason,+ day+ )+ const alreadyExists = this.db+ .prepare('SELECT 1 FROM plugin_post_quota_buckets WHERE bucket_key=?')+ .get(ordinaryKey)+ if (!alreadyExists) {+ this.foldDailyTombstones(+ admission.executable.pluginId,+ reason,+ day,+ admission.createdAt+ )+ }+ const overflow =+ !alreadyExists && this.ensureTombstoneCapacity(admission.createdAt)+ const key = overflow+ ? tombstoneKey('__global__', 'all', 'bucket_overflow', -1)+ : ordinaryKey+ const targetPluginId = overflow+ ? '__global__'+ : admission.executable.pluginId+ const targetHook = overflow ? 'all' : admission.hook+ const targetReason = overflow ? 'bucket_overflow' : reason+ const targetDay = overflow ? -1 : day+ this.db+ .prepare(+ `INSERT INTO plugin_post_quota_buckets (+ bucket_key, plugin_id, hook, reason, bucket_day, rejected_count,+ first_occurrence_id, last_occurrence_id, first_at, last_at+ ) VALUES (?, ?, ?, ?, ?, 1, ?, ?, ?, ?)+ ON CONFLICT(bucket_key) DO UPDATE SET+ rejected_count=rejected_count+1,+ first_occurrence_id=CASE+ WHEN excluded.first_at < first_at+ THEN excluded.first_occurrence_id ELSE first_occurrence_id END,+ last_occurrence_id=CASE+ WHEN excluded.last_at >= last_at+ THEN excluded.last_occurrence_id ELSE last_occurrence_id END,+ first_at=MIN(first_at, excluded.first_at),+ last_at=MAX(last_at, excluded.last_at)`+ )+ .run(+ key,+ targetPluginId,+ targetHook,+ targetReason,+ targetDay,+ admission.occurrenceId,+ admission.occurrenceId,+ admission.createdAt,+ admission.createdAt+ )+ return key+ }++ private foldDailyTombstones(+ pluginId: string,+ reason: string,+ _day: number,+ at: number+ ): void {+ const daily = this.db+ .prepare(+ `SELECT * FROM plugin_post_quota_buckets+ WHERE plugin_id=? AND reason=? AND bucket_day>=0+ ORDER BY bucket_day`+ )+ .all(pluginId, reason) as Array<{+ bucket_key: string+ hook: 'afterComplete' | 'onError' | 'all'+ rejected_count: number+ first_occurrence_id: string+ last_occurrence_id: string+ first_at: number+ last_at: number+ }>+ while (daily.length >= POST_DELIVERY_DAILY_BUCKETS_PER_REASON) {+ const oldest = daily.shift()+ if (!oldest) break+ this.mergeRollup(pluginId, reason, oldest, at)+ this.db+ .prepare('DELETE FROM plugin_post_quota_buckets WHERE bucket_key=?')+ .run(oldest.bucket_key)+ }+ }++ /** Returns true when the new rejection must fold into the global rollup. */+ private ensureTombstoneCapacity(at: number): boolean {+ const overflowKey = tombstoneKey('__global__', 'all', 'bucket_overflow', -1)+ for (;;) {+ const count = (+ this.db+ .prepare('SELECT COUNT(*) AS count FROM plugin_post_quota_buckets')+ .get() as { count: number }+ ).count+ if (count < POST_DELIVERY_GLOBAL_TOMBSTONE_BUCKETS) return false+ const oldest = this.db+ .prepare(+ `SELECT * FROM plugin_post_quota_buckets+ WHERE bucket_key<>? ORDER BY last_at, bucket_key LIMIT 1`+ )+ .get(overflowKey) as+ | {+ bucket_key: string+ rejected_count: number+ first_occurrence_id: string+ last_occurrence_id: string+ first_at: number+ last_at: number+ }+ | undefined+ if (!oldest) return true+ this.mergeRollup('__global__', 'bucket_overflow', oldest, at)+ this.db+ .prepare('DELETE FROM plugin_post_quota_buckets WHERE bucket_key=?')+ .run(oldest.bucket_key)+ }+ }++ private mergeRollup(+ pluginId: string,+ reason: string,+ row: {+ rejected_count: number+ first_occurrence_id: string+ last_occurrence_id: string+ first_at: number+ last_at: number+ },+ _at: number+ ): void {+ const key = tombstoneKey(pluginId, 'all', reason, -1)+ this.db+ .prepare(+ `INSERT INTO plugin_post_quota_buckets (+ bucket_key, plugin_id, hook, reason, bucket_day, rejected_count,+ first_occurrence_id, last_occurrence_id, first_at, last_at+ ) VALUES (?, ?, 'all', ?, -1, ?, ?, ?, ?, ?)+ ON CONFLICT(bucket_key) DO UPDATE SET+ rejected_count=rejected_count+excluded.rejected_count,+ first_occurrence_id=CASE+ WHEN excluded.first_at < first_at+ THEN excluded.first_occurrence_id ELSE first_occurrence_id END,+ last_occurrence_id=CASE+ WHEN excluded.last_at >= last_at+ THEN excluded.last_occurrence_id ELSE last_occurrence_id END,+ first_at=MIN(first_at, excluded.first_at),+ last_at=MAX(last_at, excluded.last_at)`+ )+ .run(+ key,+ pluginId,+ reason,+ row.rejected_count,+ row.first_occurrence_id,+ row.last_occurrence_id,+ row.first_at,+ row.last_at+ )+ }++ private enforceTerminalQuotas(+ quota: PostDeliveryQuotaConfig,+ at: number,+ pluginId: string+ ): void {+ for (;;) {+ const plugin = this.ledger(this.pluginScope(pluginId))+ const global = this.ledger(GLOBAL_SCOPE)+ if (+ plugin.terminal_rows <= quota.pluginTerminalRows &&+ plugin.terminal_bytes <= quota.pluginTerminalBytes &&+ global.terminal_rows <= quota.globalTerminalRows &&+ global.terminal_bytes <= quota.globalTerminalBytes+ ) {+ return+ }+ const row = this.db+ .prepare(+ `SELECT * FROM plugin_post_deliveries+ WHERE status IN (${TERMINAL_STATUSES})+ AND (? OR plugin_id=?)+ ORDER BY updated_at, delivery_id LIMIT 1`+ )+ .get(+ global.terminal_rows > quota.globalTerminalRows ||+ global.terminal_bytes > quota.globalTerminalBytes+ ? 1+ : 0,+ pluginId+ ) as RawDeliveryRow | undefined+ if (!row) return+ this.pruneTerminalRow(row, 'terminal_quota_compacted', at)+ }+ }++ private ensureTerminalCapacity(+ pluginId: string,+ incomingBytes: number,+ quota: PostDeliveryQuotaConfig,+ at: number+ ): void {+ for (;;) {+ const plugin = this.ledger(this.pluginScope(pluginId))+ const global = this.ledger(GLOBAL_SCOPE)+ const globalExceeded =+ global.terminal_rows + 1 > quota.globalTerminalRows ||+ global.terminal_bytes + incomingBytes > quota.globalTerminalBytes+ const pluginExceeded =+ plugin.terminal_rows + 1 > quota.pluginTerminalRows ||+ plugin.terminal_bytes + incomingBytes > quota.pluginTerminalBytes+ if (!globalExceeded && !pluginExceeded) return+ const row = this.db+ .prepare(+ `SELECT * FROM plugin_post_deliveries+ WHERE status IN (${TERMINAL_STATUSES})+ AND (? OR plugin_id=?)+ ORDER BY updated_at, delivery_id LIMIT 1`+ )+ .get(globalExceeded ? 1 : 0, pluginId) as RawDeliveryRow | undefined+ if (!row) {+ throw new RangeError('terminal receipt cannot fit configured quota')+ }+ this.pruneTerminalRow(row, 'terminal_quota_compacted', at)+ }+ }++ private pruneTerminalRow(+ row: RawDeliveryRow,+ reason: string,+ at: number+ ): void {+ this.recordTombstone(+ {+ deliveryId: row.delivery_id,+ deduplicationKey: row.deduplication_key,+ hook: row.hook,+ executable: {+ pluginId: row.plugin_id,+ version: row.plugin_version,+ digest: row.executable_digest,+ },+ createdGeneration: row.created_generation,+ requiredPermissions: [],+ createdEffectivePermissions: [],+ occurrenceId: row.occurrence_id,+ taskId: row.task_id,+ occurredAt: row.occurred_at,+ canonicalPayload: '{}',+ payloadBytes: 2,+ permissionSnapshotBytes: 4,+ reservedBytes: 2 + 4 + POST_DELIVERY_ROW_CHARGE_BYTES,+ createdAt: at,+ initialStatus: 'dead_letter',+ initialReason: 'input_invalid',+ },+ reason+ )+ this.db+ .prepare('DELETE FROM plugin_post_deliveries WHERE delivery_id=?')+ .run(row.delivery_id)+ this.bumpLedger(row.plugin_id, 0, 0, -1, -this.reservedBytes(row), at)+ }++ private moveActiveToTerminal(+ pluginId: string,+ activeBytes: number,+ terminalBytes: number,+ at: number+ ): void {+ this.bumpLedger(pluginId, -1, -activeBytes, 1, terminalBytes, at)+ }++ private bumpLedger(+ pluginId: string,+ activeRows: number,+ activeBytes: number,+ terminalRows: number,+ terminalBytes: number,+ at: number+ ): void {+ for (const scope of [GLOBAL_SCOPE, this.pluginScope(pluginId)]) {+ this.ensureLedger(scope, at)+ this.db+ .prepare(+ `UPDATE plugin_post_quota_ledger SET+ active_rows=active_rows+?, active_bytes=active_bytes+?,+ terminal_rows=terminal_rows+?, terminal_bytes=terminal_bytes+?,+ updated_at=?+ WHERE scope_key=?`+ )+ .run(activeRows, activeBytes, terminalRows, terminalBytes, at, scope)+ }+ }++ private ensureLedger(scope: string, at: number): void {+ this.db+ .prepare(+ `INSERT OR IGNORE INTO plugin_post_quota_ledger (+ scope_key, active_rows, active_bytes, terminal_rows, terminal_bytes,+ updated_at+ ) VALUES (?, 0, 0, 0, 0, ?)`+ )+ .run(scope, Math.max(1, at))+ }++ private tombstoneUsage(): { rows: number; bytes: number } {+ return this.db+ .prepare(+ `SELECT COUNT(*) AS rows,+ COALESCE(SUM(+ length(CAST(bucket_key AS BLOB)) ++ length(CAST(plugin_id AS BLOB)) ++ length(CAST(hook AS BLOB)) ++ length(CAST(reason AS BLOB)) ++ length(CAST(first_occurrence_id AS BLOB)) ++ length(CAST(last_occurrence_id AS BLOB)) + 128+ ), 0) AS bytes+ FROM plugin_post_quota_buckets`+ )+ .get() as { rows: number; bytes: number }+ }++ private readDatabaseCapacity(): PostDeliveryDatabaseCapacity {+ const placeholders = POST_STORAGE_NAMES.map(() => '?').join(', ')+ const core = this.db+ .prepare(+ `SELECT COALESCE(SUM(pgsize), 0) AS bytes+ FROM dbstat+ WHERE name NOT IN (${placeholders})`+ )+ .get(...POST_STORAGE_NAMES) as { bytes: number }+ return {+ databaseCapacityBytes: DEFAULT_DATABASE_CAPACITY_BYTES,+ coreLogicalBytes: core.bytes,+ }+ }++ private ledger(scope: string): LedgerRow {+ return (+ (this.db+ .prepare(+ `SELECT active_rows, active_bytes, terminal_rows, terminal_bytes+ FROM plugin_post_quota_ledger WHERE scope_key=?`+ )+ .get(scope) as LedgerRow | undefined) ?? {+ active_rows: 0,+ active_bytes: 0,+ terminal_rows: 0,+ terminal_bytes: 0,+ }+ )+ }++ private pluginScope(pluginId: string): string {+ return `plugin:${pluginId}`+ }++ private readDelivery(deliveryId: string): PostDeliveryRecord | undefined {+ const row = this.readRawDelivery(deliveryId)+ if (!row) return undefined+ if (!row.compact && !isJsonObject(row.payload_json)) {+ throw new TypeError('persisted post-delivery payload is invalid')+ }+ return {+ deliveryId: row.delivery_id,+ deduplicationKey: row.deduplication_key,+ hook: row.hook,+ executable: {+ pluginId: row.plugin_id,+ version: row.plugin_version,+ digest: row.executable_digest,+ },+ createdGeneration: row.created_generation,+ requiredPermissions: parseStringArray(row.required_permissions_json),+ createdEffectivePermissions: parseStringArray(+ row.effective_permissions_json+ ),+ occurrenceId: row.occurrence_id,+ taskId: row.task_id,+ occurredAt: row.occurred_at,+ canonicalPayload: row.payload_json,+ payloadBytes: row.payload_bytes,+ permissionSnapshotBytes: Buffer.byteLength(+ row.effective_permissions_json + row.required_permissions_json,+ 'utf8'+ ),+ reservedBytes: this.reservedBytes(row),+ createdAt: row.created_at,+ status: row.status,+ attemptCount: row.attempt_count,+ nextAttemptAt: row.next_attempt_at,+ leaseToken: row.lease_owner ?? undefined,+ leaseExpiresAt: row.lease_expires_at ?? undefined,+ terminalReason: row.permanent_reason ?? undefined,+ }+ }++ private readRawDelivery(deliveryId: string): RawDeliveryRow | undefined {+ return this.db+ .prepare('SELECT * FROM plugin_post_deliveries WHERE delivery_id=?')+ .get(deliveryId) as RawDeliveryRow | undefined+ }++ private reservedBytes(row: Pick<RawDeliveryRow, 'reserved_bytes'>): number {+ return row.reserved_bytes+ }++ private ownsLease(+ row: RawDeliveryRow | undefined,+ leaseToken: string+ ): row is RawDeliveryRow {+ return Boolean(+ row && row.status === 'delivering' && row.lease_owner === leaseToken+ )+ }++ private readBreaker(pluginId: string): RawBreakerRow | undefined {+ return this.db+ .prepare('SELECT * FROM plugin_post_breakers WHERE plugin_id=?')+ .get(pluginId) as RawBreakerRow | undefined+ }++ private breakerPermitIsCurrent(+ pluginId: string,+ permit: PostDeliveryBreakerPermit+ ): boolean {+ const row = this.readBreaker(pluginId)+ if (permit.mode === 'closed') return !row || row.state === 'closed'+ return row?.state === 'half_open' && row.probe_token === permit.token+ }++ private closeBreaker(+ pluginId: string,+ permit: PostDeliveryBreakerPermit,+ now: number+ ): void {+ if (!this.breakerPermitIsCurrent(pluginId, permit)) return+ this.db+ .prepare(+ `INSERT INTO plugin_post_breakers (+ plugin_id, state, failure_count, window_started_at, open_until,+ probe_token, probe_lease_expires_at, updated_at+ ) VALUES (?, 'closed', 0, NULL, NULL, NULL, NULL, ?)+ ON CONFLICT(plugin_id) DO UPDATE SET+ state='closed', failure_count=0, window_started_at=NULL,+ open_until=NULL, probe_token=NULL, probe_lease_expires_at=NULL,+ updated_at=excluded.updated_at`+ )+ .run(pluginId, now)+ }++ private recordBreakerFailure(+ input: BreakerFailureInput+ ): PostDeliveryBreakerState {+ const current = this.readBreaker(input.pluginId)+ const halfOpenFailure = input.permit.mode === 'half_open'+ const withinWindow =+ current?.window_started_at !== null &&+ current?.window_started_at !== undefined &&+ input.now - current.window_started_at <= input.windowMs+ const failureCount = halfOpenFailure+ ? input.threshold+ : withinWindow+ ? (current?.failure_count ?? 0) + 1+ : 1+ const windowStartedAt = withinWindow+ ? (current?.window_started_at ?? input.now)+ : input.now+ const open = halfOpenFailure || failureCount >= input.threshold+ this.db+ .prepare(+ `INSERT INTO plugin_post_breakers (+ plugin_id, state, failure_count, window_started_at, open_until,+ probe_token, probe_lease_expires_at, updated_at+ ) VALUES (?, ?, ?, ?, ?, NULL, NULL, ?)+ ON CONFLICT(plugin_id) DO UPDATE SET+ state=excluded.state, failure_count=excluded.failure_count,+ window_started_at=excluded.window_started_at,+ open_until=excluded.open_until, probe_token=NULL,+ probe_lease_expires_at=NULL, updated_at=excluded.updated_at`+ )+ .run(+ input.pluginId,+ open ? 'open' : 'closed',+ failureCount,+ windowStartedAt,+ open ? input.now + input.pauseMs : null,+ input.now+ )+ return this.breakerState(input.pluginId)+ }++ private breakerState(pluginId: string): PostDeliveryBreakerState {+ const row = this.readBreaker(pluginId)+ if (!row) return { pluginId, state: 'closed', failureCount: 0 }+ return {+ pluginId,+ state: row.state,+ failureCount: row.failure_count,+ windowStartedAt: row.window_started_at ?? undefined,+ openUntil: row.open_until ?? undefined,+ probeLeaseExpiresAt: row.probe_lease_expires_at ?? undefined,+ }+ }++ private terminalRowCount(): number {+ return (+ this.db+ .prepare(+ `SELECT COUNT(*) AS count FROM plugin_post_deliveries+ WHERE status IN (${TERMINAL_STATUSES})`+ )+ .get() as { count: number }+ ).count+ }+}++function parseStringArray(json: string): string[] {+ const value: unknown = JSON.parse(json)+ if (!Array.isArray(value) || value.some((item) => typeof item !== 'string')) {+ throw new TypeError(+ 'persisted post-delivery permission snapshot is invalid'+ )+ }+ return [...new Set(value)].sort()+}++function isJsonObject(json: string): boolean {+ const value: unknown = JSON.parse(json)+ return Boolean(value && typeof value === 'object' && !Array.isArray(value))+}++function isTerminalStatus(status: RawDeliveryRow['status']): boolean {+ return (+ status === 'delivered' ||+ status === 'dead_letter' ||+ status === 'superseded'+ )+}++function truncate(value: string | undefined, max: number): string | null {+ if (!value) return null+ return value.slice(0, max)+}++function tombstoneKey(+ pluginId: string,+ hook: 'afterComplete' | 'onError' | 'all',+ reason: string,+ day: number+): string {+ const raw = `${pluginId}:${hook}:${reason}:${day}`+ if (Buffer.byteLength(raw, 'utf8') <= 512) return raw+ const digest = createHash('sha256').update(raw, 'utf8').digest('hex')+ return `hashed:${digest}`+}diff --git a/src/core/session/session-manager.test.ts b/src/core/session/session-manager.test.tsindex d7fd4b0c..6498249d 100644--- a/src/core/session/session-manager.test.ts+++ b/src/core/session/session-manager.test.ts@@ -1,6 +1,7 @@import fs from 'node:fs'import os from 'node:os'import path from 'node:path'+import type { PostDeliveryAdmission } from '@core/plugin/post/delivery-types'import { AppliedDownloadProxyPolicy } from '@core/proxy/applied-download-proxy-policy'import { DownloadErrorCode } from '@shared/errors'import type { DownloadTask } from '@shared/types/task'@@ -11,6 +12,7 @@ import {TaskType,TransitionPhase,} from '@shared/types/task'+import type { TaskTerminalOccurrence } from '@shared/types/task-occurrence'import { makeDownloadTask } from '@test-utils/task'import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'import type { Aria2RpcClient } from '../engine/aria2/aria2-rpc-client'@@ -77,6 +79,12 @@ function createMockDb(): MotrixDatabase {tasks.set(payload.task.motrixId, payload.task)instances.set(payload.task.motrixId, payload.instances)}),+ persistTaskWithPluginMetadata: vi.fn(+ (payload: TaskWithInstances, _operations: readonly unknown[]) => {+ tasks.set(payload.task.motrixId, payload.task)+ instances.set(payload.task.motrixId, payload.instances)+ }+ ),saveTasksBatch: vi.fn((rows: TaskWithInstances[]) => {for (const row of rows) {tasks.set(row.task.motrixId, row.task)@@ -89,6 +97,12 @@ function createMockDb(): MotrixDatabase {instances.set(payload.task.motrixId, payload.instances)}),+ commitTerminalHookBoundary: vi.fn(() => ({+ admitted: 0,+ duplicates: 0,+ rejected: 0,+ results: [],+ })),getAllTasks: vi.fn(() =>[...tasks.values()].map((task) => ({task,@@ -561,6 +575,98 @@ describe('SessionManager', () => {expect(db.getTask(current.id)?.task.aggStatus).toBe(TaskStatus.Paused)})+ it('persists an unpublished candidate and staged plugin metadata through one database boundary', async () => {+ const candidate = createTask({ id: 'plugin-create-candidate' })+ const operations = [+ {+ pluginId: 'plugin.example',+ op: 'set' as const,+ key: 'source',+ value: 'resolver',+ },+ ]++ await session.persistTaskWithPluginMetadata(candidate, operations)++ expect(taskManager.getById(candidate.id)).toBeUndefined()+ expect(db.persistTaskWithPluginMetadata).toHaveBeenCalledExactlyOnceWith(+ expect.objectContaining({+ task: expect.objectContaining({ motrixId: candidate.id }),+ }),+ operations+ )+ })++ it('emits a stable admission-rejected event after the terminal transaction commits', async () => {+ const task = createTask({+ id: 'm-post-rejected',+ status: TaskStatus.Completed,+ finishedAt: 2_000,+ })+ const occurrence: TaskTerminalOccurrence = {+ occurrenceId: 'occ-post-rejected',+ type: 'terminal',+ taskId: task.id,+ fromStatus: TaskStatus.Downloading,+ toStatus: TaskStatus.Completed,+ cause: 'engine',+ errorGroup: null,+ createdAt: 2_000,+ }+ const delivery: PostDeliveryAdmission = {+ deliveryId: 'delivery-post-rejected',+ deduplicationKey: 'dedupe-post-rejected',+ hook: 'afterComplete',+ executable: {+ pluginId: 'plugin.example',+ version: '1.0.0',+ digest: 'a'.repeat(64),+ },+ createdGeneration: 1,+ requiredPermissions: [],+ createdEffectivePermissions: [],+ occurrenceId: occurrence.occurrenceId,+ taskId: task.id,+ occurredAt: 2_000,+ canonicalPayload: '{}',+ payloadBytes: 2,+ permissionSnapshotBytes: 4,+ reservedBytes: 518,+ createdAt: 2_000,+ initialStatus: 'pending',+ }+ vi.mocked(db.commitTerminalHookBoundary).mockReturnValueOnce({+ admitted: 0,+ duplicates: 0,+ rejected: 1,+ results: [+ {+ kind: 'rejected',+ deliveryId: delivery.deliveryId,+ reason: 'plugin_active_rows',+ tombstoneKey: 'bucket-1',+ },+ ],+ })+ const emit = vi.fn()+ session.bindPostDeliveryObservability({ emit })++ await session.persistTerminalHookBoundary(task, occurrence, {+ postDeliveries: [delivery],+ beforeCommit: () => undefined,+ })++ expect(emit).toHaveBeenCalledExactlyOnceWith({+ type: 'plugin.post.admission_rejected',+ at: 2_000,+ pluginId: 'plugin.example',+ hook: 'afterComplete',+ deliveryId: 'delivery-post-rejected',+ reason: 'plugin_active_rows',+ occurrenceId: 'occ-post-rejected',+ })+ })+it('stop seeding persists Completed before success and survives restart', async () => {const seeding = createTask({id: 'm-seeding',@@ -3313,6 +3419,24 @@ describe('SessionManager', () => {)})+ it('routes a restore-created terminal edge through the bound plugin boundary', async () => {+ const { localDb, sm } = seedMergePair(TaskStatus.Downloading)+ const persistTerminal = vi.fn(async () => undefined)+ sm.bindTerminalOccurrencePersistence(persistTerminal)++ await sm.restore()++ expect(persistTerminal).toHaveBeenCalledExactlyOnceWith(+ expect.objectContaining({ id: 'm-merge-terminal' }),+ expect.objectContaining({+ type: 'terminal',+ taskId: 'm-merge-terminal',+ toStatus: TaskStatus.Completed,+ })+ )+ expect(localDb.persistTaskWithOccurrence).not.toHaveBeenCalled()+ })+it('writes no occurrence when the persisted task was already Completed', async () => {const { tm, localDb, sm } = seedMergePair(TaskStatus.Completed)diff --git a/src/core/session/session-manager.ts b/src/core/session/session-manager.tsindex 4f575844..e9ab6d54 100644--- a/src/core/session/session-manager.ts+++ b/src/core/session/session-manager.ts@@ -1,6 +1,13 @@import fs from 'node:fs'import { newEngineTaskId, newTaskId } from '@core/lib/ids'import { getLogger } from '@core/logger'+import type { StagedMetadataOp } from '@core/plugin/hooks/staged-effects'+import {+ NOOP_POST_DELIVERY_OBSERVABILITY,+ type PostDeliveryObservability,+ safeObserve,+} from '@core/plugin/post/delivery-observability'+import type { PostDeliveryAdmissionSummary } from '@core/plugin/post/delivery-retention'import { parseDirectReplayRecipe } from '@shared/schemas/direct-replay-recipe'import type { DownloadTask } from '@shared/types/task'import {@@ -57,6 +64,7 @@ import type {TaskInstanceRow,TaskRow,TaskWithInstances,+ TerminalHookCommitInput,} from './motrix-database'const log = getLogger('SessionManager')@@ -224,6 +232,12 @@ export class SessionManager {private resolveRequestedSave: (() => void) | null = nullprivate stopping = falseprivate stopPromise: Promise<void> | null = null+ private terminalOccurrencePersistence?: (+ task: DownloadTask,+ occurrence: TaskOccurrence+ ) => Promise<void>+ private postDeliveryObservability: PostDeliveryObservability =+ NOOP_POST_DELIVERY_OBSERVABILITYconstructor(private taskManager: TaskManager,@@ -250,6 +264,35 @@ export class SessionManager {null) {}+ /**+ * Binds the shared plugin terminal boundary after the Hook runtime is built.+ * Session restore owns a few terminal transitions internally; routing those+ * through this callback prevents them from bypassing candidate admission.+ */+ bindTerminalOccurrencePersistence(+ persist: (task: DownloadTask, occurrence: TaskOccurrence) => Promise<void>+ ): void {+ if (+ this.terminalOccurrencePersistence &&+ this.terminalOccurrencePersistence !== persist+ ) {+ throw new Error('terminal occurrence persistence is already bound')+ }+ this.terminalOccurrencePersistence = persist+ }++ bindPostDeliveryObservability(+ observability: PostDeliveryObservability+ ): void {+ if (+ this.postDeliveryObservability !== NOOP_POST_DELIVERY_OBSERVABILITY &&+ this.postDeliveryObservability !== observability+ ) {+ throw new Error('post delivery observability is already bound')+ }+ this.postDeliveryObservability = observability+ }+runExclusivePersistence<T>(operation: () => T | Promise<T>): Promise<T> {if (this.stopping) {return Promise.reject(new Error('SessionManager is stopping'))@@ -309,6 +352,27 @@ export class SessionManager {})}+ /**+ * Rejecting create barrier for a candidate that is not published yet. The+ * parent graph and all beforeCreate metadata mutations cross one SQLite+ * transaction, so a rejected metadata mutation cannot leave a bare task.+ */+ persistTaskWithPluginMetadata(+ task: DownloadTask,+ operations: readonly StagedMetadataOp[]+ ): Promise<void> {+ if (this.stopping) {+ return Promise.reject(new Error('SessionManager is stopping'))+ }+ return this.runExclusivePersistence(async () => {+ if (task.status === TaskStatus.Removed) return+ this.db.persistTaskWithPluginMetadata(+ await this.buildTaskPayload(task, Date.now()),+ operations+ )+ })+ }+/*** Same durable barrier as `persistTask`, but additionally appends the* task's terminal occurrence (when non-null) to the outbox in the SAME@@ -333,6 +397,92 @@ export class SessionManager {})}+ /**+ * Serialized async-to-sync adapter for the complete terminal Hook boundary.+ * Payload construction may inspect torrent metadata, so it happens before+ * entering MotrixDatabase's synchronous SQLite transaction.+ */+ persistTerminalHookBoundary(+ task: DownloadTask,+ occurrence: TaskOccurrence,+ input: Omit<TerminalHookCommitInput, 'payload' | 'occurrence'>+ ): Promise<void> {+ if (this.stopping) {+ return Promise.reject(new Error('SessionManager is stopping'))+ }+ return this.runExclusivePersistence(async () => {+ if (task.status === TaskStatus.Removed) return+ const summary = this.db.commitTerminalHookBoundary({+ ...input,+ payload: await this.buildTaskPayload(task, Date.now()),+ occurrence,+ })+ this.observeAdmissionResults(input.postDeliveries ?? [], summary)+ })+ }++ /**+ * Holds the Session persistence lane across filesystem publication and lets+ * the finalize journal call the synchronous database boundary exactly once+ * after the target is durable.+ */+ persistFinalizedArtifact<T>(+ task: DownloadTask,+ occurrence: TaskOccurrence | null,+ input: Omit<+ TerminalHookCommitInput,+ 'payload' | 'occurrence' | 'finalizeJournal'+ >,+ install: (+ commitDatabase: (+ journal: NonNullable<TerminalHookCommitInput['finalizeJournal']>+ ) => void+ ) => Promise<T>+ ): Promise<T> {+ if (this.stopping) {+ return Promise.reject(new Error('SessionManager is stopping'))+ }+ return this.runExclusivePersistence(async () => {+ if (task.status === TaskStatus.Removed) {+ throw new Error('cannot finalize a removed task')+ }+ const payload = await this.buildTaskPayload(task, Date.now())+ return install((finalizeJournal) => {+ const summary = this.db.commitTerminalHookBoundary({+ ...input,+ payload,+ occurrence,+ finalizeJournal,+ })+ this.observeAdmissionResults(input.postDeliveries ?? [], summary)+ })+ })+ }++ private observeAdmissionResults(+ deliveries: NonNullable<TerminalHookCommitInput['postDeliveries']>,+ summary: PostDeliveryAdmissionSummary+ ): void {+ if (summary.rejected === 0) return+ const byId = new Map(+ deliveries.map((delivery) => [delivery.deliveryId, delivery] as const)+ )+ for (const result of summary.results) {+ if (result.kind !== 'rejected') continue+ const delivery = byId.get(result.deliveryId)+ if (!delivery) continue+ safeObserve(this.postDeliveryObservability, {+ type: 'plugin.post.admission_rejected',+ at: delivery.createdAt,+ pluginId: delivery.executable.pluginId,+ hook: delivery.hook,+ deliveryId: delivery.deliveryId,+ reason: result.reason,+ occurrenceId: delivery.occurrenceId,+ })+ }+ }+private async saveNow(): Promise<void> {// Capture the task snapshot only after this operation reaches the front of// the persistence queue. Clear Stopped can therefore delete memory + DB@@ -597,7 +747,7 @@ export class SessionManager {'engine')if (occurrence) {- await this.persistTaskWithOccurrence(task, occurrence)+ await this.persistRecoveredTerminalOccurrence(task, occurrence)}this.taskManager.set(task.id, task)consumedMotrixIds.add(parent.task.motrixId)@@ -743,9 +893,9 @@ export class SessionManager {// Recovery-created terminal state is already durable at this point: every// path that lands a task in Error during this pass goes through- // `markRecoverErrorFromPair`, which persists via the occurrence-aware- // `persistTaskWithOccurrence` before returning (directly for the media- // and Pass-2 default cases, or nested inside `recoverMagnetMetadata` /+ // `markRecoverErrorFromPair`, which persists via the shared recovered+ // terminal boundary before returning (directly for the media and Pass-2+ // default cases, or nested inside `recoverMagnetMetadata` /// `reAddOrMarkErrorFromPair` for their failure branches). No separate// end-of-restore batch save is needed to make that state crash-safe.@@ -774,7 +924,7 @@ export class SessionManager {assertProxyCurrent)// reAddOrMarkErrorFromPair's Error outcome already persisted itself via- // markRecoverErrorFromPair's persistTaskWithOccurrence; only its+ // markRecoverErrorFromPair's shared terminal boundary; only its// successful-re-add outcome (adoptByPair alone, which never returns// Error) still needs this write.if (fresh.status !== TaskStatus.Error) {@@ -1433,11 +1583,21 @@ export class SessionManager {previousStatus,'recovery')- await this.persistTaskWithOccurrence(errored, occurrence)+ await this.persistRecoveredTerminalOccurrence(errored, occurrence)return errored}+ private persistRecoveredTerminalOccurrence(+ task: DownloadTask,+ occurrence: TaskOccurrence | null+ ): Promise<void> {+ if (occurrence && this.terminalOccurrencePersistence) {+ return this.terminalOccurrencePersistence(task, occurrence)+ }+ return this.persistTaskWithOccurrence(task, occurrence)+ }+private statusAfterSuccessfulReAdd(pair: TaskWithInstances): TaskStatus {if (pair.task.aggStatus === TaskStatus.Paused) return TaskStatus.Pausedif (diff --git a/src/core/task/actions/finalize-task.test.ts b/src/core/task/actions/finalize-task.test.tsindex 8b85321e..317fa9f0 100644--- a/src/core/task/actions/finalize-task.test.ts+++ b/src/core/task/actions/finalize-task.test.ts@@ -1792,7 +1792,7 @@ describe('finalizeTask plugin-hook chain (Plan C / T15)', () => {} as unknown as FinalizeTaskDeps['auditLog']}- it('HTTP: chain commit + afterComplete fires on success', async () => {+ it('HTTP: chain commit leaves afterComplete to durable delivery', async () => {const orchestrator = makeOrchestrator(makeBeforeFinalizeCommit())const auditLog = makeAuditLog()const deps: FinalizeTaskDeps = {@@ -1816,14 +1816,78 @@ describe('finalizeTask plugin-hook chain (Plan C / T15)', () => {}))expect(task.status).toBe(TaskStatus.Completed)- expect(orchestrator?.runParallel).toHaveBeenCalledWith(- 'afterComplete',- expect.objectContaining({ filePath: '/d/foo.mp4' }),- 't1'+ expect(orchestrator?.runParallel).not.toHaveBeenCalled()+ })++ it('HTTP: production finalize seam owns FS publication and terminal occurrence', async () => {+ const commitFinalizedArtifact = vi.fn(async () => {})+ const occurrenceDispatcher = { dispatch: vi.fn(async () => {}) }+ const deps: FinalizeTaskDeps = {+ ...makeDeps(),+ orchestrator: makeOrchestrator(makeBeforeFinalizeCommit()),+ auditLog: makeAuditLog(),+ commitFinalizedArtifact,+ occurrenceDispatcher,+ }+ const task = makeTask()+ ;(deps.taskManager.getById as ReturnType<typeof vi.fn>).mockReturnValue(+ task+ )++ await finalizeTask('t1', deps)++ expect(deps.fs.renameAtomic).not.toHaveBeenCalled()+ expect(commitFinalizedArtifact).toHaveBeenCalledWith(+ expect.objectContaining({+ sourcePath: '/d/foo.mp4.motrix',+ targetPath: '/d/foo.mp4',+ occurrence: expect.objectContaining({+ type: 'terminal',+ toStatus: TaskStatus.Completed,+ }),+ })+ )+ expect(occurrenceDispatcher.dispatch).toHaveBeenCalledOnce()+ expect(task.status).toBe(TaskStatus.Completed)+ })++ it('HTTP: beforeFinalize can route a GitHub ZIP into Compressed through the durable seam', async () => {+ const commitFinalizedArtifact = vi.fn(async () => {})+ const deps: FinalizeTaskDeps = {+ ...makeDeps(),+ orchestrator: makeOrchestrator(+ makeBeforeFinalizeCommit({+ finalFilePath: '/d/Compressed/Motrix-main.zip',+ })+ ),+ auditLog: makeAuditLog(),+ commitFinalizedArtifact,+ }+ const task = makeTask({+ diskPath: '/d/Motrix-main.zip.motrix',+ finalPath: '/d/Motrix-main.zip',+ finalName: 'Motrix-main.zip',+ filename: 'Motrix-main.zip',+ name: 'Motrix-main.zip',+ uris: ['https://github.com/agalwood/Motrix/archive/refs/heads/main.zip'],+ })+ ;(deps.taskManager.getById as ReturnType<typeof vi.fn>).mockReturnValue(+ task)++ await finalizeTask('t1', deps)++ expect(commitFinalizedArtifact).toHaveBeenCalledWith(+ expect.objectContaining({+ sourcePath: '/d/Motrix-main.zip.motrix',+ targetPath: '/d/Compressed/Motrix-main.zip',+ })+ )+ expect(task.finalPath).toBe('/d/Compressed/Motrix-main.zip')+ expect(task.status).toBe(TaskStatus.Completed)})- it('HTTP: chain abort leaves task Error + fires onError; rename skipped', async () => {+ it('HTTP: chain abort leaves task Error for durable onError delivery', async () => {const orchestrator = makeOrchestrator({aborted: true,reason: 'plugin sad',@@ -1855,13 +1919,7 @@ describe('finalizeTask plugin-hook chain (Plan C / T15)', () => {reason: 'plugin sad',}))- expect(orchestrator?.runParallel).toHaveBeenCalledWith(- 'onError',- expect.objectContaining({- error: expect.objectContaining({ code: 'PLUGIN_RUNTIME_FAULT' }),- }),- 't1'- )+ expect(orchestrator?.runParallel).not.toHaveBeenCalled()// Polling never observes stopped rows, so the renderer learns about// this Error only through the finalize-side TaskUpdated broadcast.expect(deps.eventBus.emit).toHaveBeenCalledWith(@@ -1979,7 +2037,7 @@ describe('finalizeTask plugin-hook chain (Plan C / T15)', () => {)})- it('BT skip-reseed: afterComplete fires on Completed transition', async () => {+ it('BT skip-reseed leaves afterComplete to durable delivery', async () => {const orchestrator = makeOrchestrator(makeBeforeFinalizeCommit())const deps: FinalizeTaskDeps = {...makeDeps(),@@ -1997,14 +2055,10 @@ describe('finalizeTask plugin-hook chain (Plan C / T15)', () => {await finalizeTask('t1', deps)expect(task.status).toBe(TaskStatus.Completed)- expect(orchestrator?.runParallel).toHaveBeenCalledWith(- 'afterComplete',- expect.objectContaining({ task: expect.any(Object) }),- 't1'- )+ expect(orchestrator?.runParallel).not.toHaveBeenCalled()})- it('BT seeding-fail path: afterComplete still fires (task ends Completed)', async () => {+ it('BT seeding-fail path leaves afterComplete to durable delivery', async () => {const orchestrator = makeOrchestrator(makeBeforeFinalizeCommit())const deps: FinalizeTaskDeps = {...makeDeps({@@ -2029,11 +2083,7 @@ describe('finalizeTask plugin-hook chain (Plan C / T15)', () => {await finalizeTask('t1', deps)expect(task.status).toBe(TaskStatus.Completed)- expect(orchestrator?.runParallel).toHaveBeenCalledWith(- 'afterComplete',- expect.any(Object),- 't1'- )+ expect(orchestrator?.runParallel).not.toHaveBeenCalled()})it('BT normal Seeding hand-off does NOT fire afterComplete', async () => {diff --git a/src/core/task/actions/finalize-task.ts b/src/core/task/actions/finalize-task.tsindex 89ccc3a6..acbabaa5 100644--- a/src/core/task/actions/finalize-task.ts+++ b/src/core/task/actions/finalize-task.ts@@ -2,8 +2,13 @@ import path from 'node:path'import { newEngineTaskId } from '@core/lib/ids'import type { HookAuditLog } from '@core/plugin/hooks/audit-log'import type { HookOrchestrator } from '@core/plugin/hooks/hook-orchestrator'+import type { StagedMetadataOp } from '@core/plugin/hooks/staged-effects'import { AppError, ErrorCode } from '@shared/errors'-import type { BeforeFinalizeContextDTO } from '@shared/types/plugin-hooks'+import { Events } from '@shared/protocol/events'+import type {+ BeforeFinalizeContextDTO,+ PluginHookTask,+} from '@shared/types/plugin-hooks'import type { DownloadTask, TaskFile } from '@shared/types/task'import { TaskStatus, TransitionPhase } from '@shared/types/task'import { isTorrentLike } from '@shared/types/task-actions'@@ -31,10 +36,12 @@ import {syncPrimaryInstanceIdentity,} from '../task-instance'import {+ buildTerminalOccurrence,commitTerminalTaskTransition,getTaskOrWarn,recordTaskTransitionOrWarn,type TaskTransitionRecordInput,+ terminalSnapshotFromTask,} from './shared'const finalizationsInFlight = new Set<string>()@@ -135,6 +142,21 @@ export interface FinalizeTaskDeps {) => Promise<T>monotonicNow?: () => numbercreateEngineTaskId?: () => string+ /** Production FS+journal+task transaction. Tests may omit for legacy IO. */+ commitFinalizedArtifact?: (+ input: FinalizeArtifactCommitRequest+ ) => Promise<void>+}++export interface FinalizeArtifactCommitRequest {+ task: DownloadTask+ occurrence: TaskOccurrence | null+ sourcePath: string+ targetPath: string+ replacement?: { pluginId: string; stagedPath: string }+ metadataOps: readonly StagedMetadataOp[]+ contributors: readonly string[]+ fileRebase?: { sourceRoot: string; targetRoot: string }}export async function finalizeTask(@@ -213,7 +235,9 @@ async function finalizeHttp(}const desiredFinalPath = finalizeOutcome.finalFilePath ?? task.finalPathconst renameSource = task.diskPath- await persistDesiredFinalPath(task, desiredFinalPath, deps)+ if (!deps.commitFinalizedArtifact) {+ await persistDesiredFinalPath(task, desiredFinalPath, deps)+ }// Refresh byte counters and piece length from aria2 BEFORE// removeDownloadResult retires the gid. The polling loop only sees@@ -230,6 +254,29 @@ async function finalizeHttp(// handle — on Windows an open handle causes a sharing violation.await deps.adapter.removeDownloadResult(task.engineTaskId)+ if (deps.commitFinalizedArtifact) {+ try {+ await commitHttpArtifactDurably(+ task,+ renameSource,+ desiredFinalPath,+ finalizeOutcome,+ deps+ )+ return+ } catch (e) {+ const cause = (e as Error).message+ const errorMessage = `Failed to commit finalized file: ${cause}`+ await failFinalize(task, deps, {+ errorMessage,+ errorDetailKey: 'task.error.detail.renameFileFailed',+ errorDetailParams: { cause },+ hookCode: 'TASK_FINALIZE_RENAME_FAILED',+ })+ throw new AppError(ErrorCode.TaskFinalizeRenameFailed, errorMessage, e)+ }+ }+try {await deps.fs.renameAtomic(renameSource, desiredFinalPath)} catch (e) {@@ -287,6 +334,58 @@ async function finalizeHttp(fireAfterComplete(deps, task, 'finalize')}+async function commitHttpArtifactDurably(+ task: DownloadTask,+ renameSource: string,+ desiredFinalPath: string,+ finalizeOutcome: BeforeFinalizeOutcomeCommit,+ deps: FinalizeTaskDeps+): Promise<void> {+ const completedAt = Date.now()+ const previousStatus = task.status+ task.finalPath = desiredFinalPath+ completeTaskAfterRename(+ task,+ desiredFinalPath,+ completedAt,+ deps.activityRecorder+ )+ syncCompletionMetrics(task)+ normalizeTerminalRuntimeMetrics(task)+ const occurrence = buildTerminalOccurrence(+ terminalSnapshotFromTask(task),+ previousStatus,+ 'finalize',+ completedAt+ )+ if (!occurrence)+ throw new Error('HTTP finalize did not produce an occurrence')+ await deps.commitFinalizedArtifact?.({+ task,+ occurrence,+ sourcePath: renameSource,+ targetPath: desiredFinalPath,+ replacement: finalizeOutcome.replacement,+ metadataOps: finalizeOutcome.metadataOps,+ contributors: finalizeOutcome.contributors,+ fileRebase: {+ sourceRoot: renameSource,+ targetRoot: desiredFinalPath,+ },+ })+ deps.taskManager.set(task.id, structuredClone(task))+ await recordTaskTransitionOrWarn(task, previousStatus, deps, {+ occurredAt: completedAt,+ accuracy: TaskActivityAccuracy.Exact,+ occurrenceId: occurrence.occurrenceId,+ failureMessage: FINALIZE_RECORD_FAILURE_MESSAGE,+ })+ await deps.occurrenceDispatcher?.dispatch(occurrence)+ deps.eventBus.emit(Events.TaskFilesUpdated, { taskId: task.id })+ deps.publishTaskUpdateNow()+ deps.log.info({ taskId: task.id }, 'finalize_http_completed')+}+/*** Sync byte counters to 100% completion at terminal-state transitions.*@@ -397,7 +496,9 @@ async function finalizeBt(return}const desiredFinalPath = finalizeOutcome.finalFilePath ?? task.finalPath- await persistDesiredFinalPath(task, desiredFinalPath, deps)+ if (!deps.commitFinalizedArtifact) {+ await persistDesiredFinalPath(task, desiredFinalPath, deps)+ }const storageLayout = getBtStorageLayout(task)const stagingPayloadPath = getBtPayloadPath(task)const renameSource = stagingPayloadPath ?? task.diskPath@@ -450,22 +551,61 @@ async function finalizeBt(}await deps.adapter.removeDownloadResult(task.engineTaskId)- try {- await deps.fs.renameAtomic(renameSource, desiredFinalPath)- } catch (e) {- const cause = (e as Error).message- const errorMessage = `Failed to rename directory: ${cause}`- await failFinalize(task, deps, {- errorMessage,- errorDetailKey: 'task.error.detail.renameDirFailed',- errorDetailParams: { cause },- hookCode: 'TASK_FINALIZE_RENAME_FAILED',- })- throw new AppError(ErrorCode.TaskFinalizeRenameFailed, errorMessage, e)- }const completedAt = Date.now()+ task.finalPath = desiredFinalPath+ task.diskPath = desiredFinalPath+ // Same instance-row sync as finalizeHttp: the on-disk rename just+ // happened, so the instance rows must stop pointing at the `.motrix`+ // container or restore() resurrects it after a restart. Status is+ // left alone here — the task still heads into reseed and its+ // terminal state (Seeding/Completed) is decided below.+ for (const inst of task.instances) {+ inst.diskPath = desiredFinalPath+ }+ setTaskTransitionPhase(task, TransitionPhase.Reseeding)- if (storageLayout) {+ if (deps.commitFinalizedArtifact) {+ try {+ await deps.commitFinalizedArtifact({+ task,+ occurrence: null,+ sourcePath: renameSource,+ targetPath: desiredFinalPath,+ replacement: finalizeOutcome.replacement,+ metadataOps: finalizeOutcome.metadataOps,+ contributors: finalizeOutcome.contributors,+ fileRebase: {+ sourceRoot: renameSource,+ targetRoot: desiredFinalPath,+ },+ })+ deps.taskManager.set(task.id, structuredClone(task))+ deps.eventBus.emit(Events.TaskFilesUpdated, { taskId: task.id })+ } catch (e) {+ const cause = (e as Error).message+ const errorMessage = `Failed to commit finalized directory: ${cause}`+ await failFinalize(task, deps, {+ errorMessage,+ errorDetailKey: 'task.error.detail.renameDirFailed',+ errorDetailParams: { cause },+ hookCode: 'TASK_FINALIZE_RENAME_FAILED',+ })+ throw new AppError(ErrorCode.TaskFinalizeRenameFailed, errorMessage, e)+ }+ } else {+ try {+ await deps.fs.renameAtomic(renameSource, desiredFinalPath)+ } catch (e) {+ const cause = (e as Error).message+ const errorMessage = `Failed to rename directory: ${cause}`+ await failFinalize(task, deps, {+ errorMessage,+ errorDetailKey: 'task.error.detail.renameDirFailed',+ errorDetailParams: { cause },+ hookCode: 'TASK_FINALIZE_RENAME_FAILED',+ })+ throw new AppError(ErrorCode.TaskFinalizeRenameFailed, errorMessage, e)+ }try {deps.rebaseTaskFilePaths?.(task.id, renameSource, desiredFinalPath)} catch (err) {@@ -474,47 +614,34 @@ async function finalizeBt('finalize_bt_task_file_path_rebase_failed')}- if (!isSameOrDescendant(desiredFinalPath, storageLayout.workspacePath)) {- try {- await deps.fs.removePathRecursive(storageLayout.workspacePath)- } catch (err) {- deps.log.warn(- { err, taskId: task.id, workspacePath: storageLayout.workspacePath },- 'finalize_bt_workspace_cleanup_failed'- )- }+ try {+ finalizeOutcome.commit(() => {})+ } catch (err) {+ deps.log.warn(+ { taskId: task.id, err: (err as Error).message },+ 'finalize_bt_metadata_commit_failed'+ )}+ await persistTaskState(task, deps)}- // Commit staged metadata now that the rename succeeded. The commit is a- // sync SQLite tx; the callback is empty because the rename above already- // happened on disk (we are intentionally outside the tx body for IO).- try {- finalizeOutcome.commit(() => {})- } catch (err) {- deps.log.warn(- { taskId: task.id, err: (err as Error).message },- 'finalize_bt_metadata_commit_failed'- )- }-- task.finalPath = desiredFinalPath- task.diskPath = desiredFinalPath- // Same instance-row sync as finalizeHttp: the on-disk rename just- // happened, so the instance rows must stop pointing at the `.motrix`- // container or restore() resurrects it after a restart. Status is- // left alone here — the task still heads into reseed and its- // terminal state (Seeding/Completed) is decided below.- for (const inst of task.instances) {- inst.diskPath = desiredFinalPath+ if (+ storageLayout &&+ !isSameOrDescendant(desiredFinalPath, storageLayout.workspacePath)+ ) {+ try {+ await deps.fs.removePathRecursive(storageLayout.workspacePath)+ } catch (err) {+ deps.log.warn(+ { err, taskId: task.id, workspacePath: storageLayout.workspacePath },+ 'finalize_bt_workspace_cleanup_failed'+ )+ }}- setTaskTransitionPhase(task, TransitionPhase.Reseeding)deps.activityRecorder.recordDownloadCompleted({taskId: task.id,occurredAt: completedAt,})- await persistTaskState(task, deps)-await finalizeBtAfterRename(task, deps, completedAt, unselectedRelPaths)}@@ -982,6 +1109,9 @@ interface BeforeFinalizeOutcomeAborted {interface BeforeFinalizeOutcomeCommit {aborted: falsefinalFilePath?: string+ replacement?: { pluginId: string; stagedPath: string }+ metadataOps: readonly StagedMetadataOp[]+ contributors: readonly string[]/*** Runs the staged metadata commit (if a db handle is wired) wrapping the* supplied sync callback inside the same SQLite transaction. When no db@@ -997,6 +1127,8 @@ type BeforeFinalizeOutcome =const NOOP_COMMIT_OUTCOME: BeforeFinalizeOutcomeCommit = {aborted: false,+ metadataOps: [],+ contributors: [],commit: (cb) => cb(),}@@ -1012,11 +1144,16 @@ async function runBeforeFinalize(): Promise<BeforeFinalizeOutcome> {if (!deps.orchestrator) return NOOP_COMMIT_OUTCOMEconst ctxDto: BeforeFinalizeContextDTO = {+ schemaVersion: 1,+ invocationId: `finalize:${task.id}`,+ taskId: task.id,sourceUrl: task.uris?.[0] ?? '',createdBy: 'user',requestedAt: task.createdAt ?? Date.now(),- task,+ task: toPluginTaskSnapshot(task),+ inputFilePath: task.diskPath,filePath: task.finalPath,+ targetFilePath: task.finalPath,}const result = await deps.orchestrator.runBeforeFinalize(ctxDto, task.id)if (result.aborted) {@@ -1039,6 +1176,21 @@ async function runBeforeFinalize(return {aborted: false,finalFilePath: result.finalFilePath,+ replacement: result.replacement,+ metadataOps:+ typeof result.staged.allMetadataOps === 'function'+ ? result.staged.allMetadataOps()+ : [],+ contributors: [+ ...new Set([+ ...(result.replacement ? [result.replacement.pluginId] : []),+ ...(typeof result.staged.allMetadataOps === 'function'+ ? result.staged+ .allMetadataOps()+ .map((operation) => operation.pluginId)+ : []),+ ]),+ ].sort(),commit: (cb: () => void) => {if (db) {staged.commitMetadata(db, task.id, cb)@@ -1048,3 +1200,36 @@ async function runBeforeFinalize(},}}++function toPluginTaskSnapshot(task: DownloadTask): PluginHookTask {+ return {+ schemaVersion: 1,+ id: task.id,+ name: task.name,+ type: task.type,+ kind: task.kind,+ status: task.status,+ filePath: task.diskPath,+ saveDir: task.saveDir,+ filename: task.filename,+ progress: Math.max(0, Math.min(100, task.progress * 100)),+ totalBytes: task.totalBytes,+ downloadedBytes: task.downloadedBytes,+ uploadedBytes: task.uploadedBytes,+ sizeWhenDone: task.sizeWhenDone,+ fileCount: task.fileCount,+ createdAt: task.createdAt,+ updatedAt: task.updatedAt,+ finishedAt: task.finishedAt,+ category: task.category,+ infoHash: task.infoHash,+ error: task.errorMessage+ ? {+ code: task.errorCode ?? 'TASK_ERROR',+ message: task.errorMessage,+ detailKey: task.errorDetailKey,+ detailParams: task.errorDetailParams,+ }+ : null,+ }+}diff --git a/src/core/task/create-task-handler.test.ts b/src/core/task/create-task-handler.test.tsindex cfc52e82..cb231a14 100644--- a/src/core/task/create-task-handler.test.ts+++ b/src/core/task/create-task-handler.test.ts@@ -1899,11 +1899,16 @@ describe('handleCreateTask plugin-hook chain (Plan C / T15)', () => {// Mocks the HookOrchestrator and HookAuditLog dependencies the production// code expects when the host has wired up the Plan C hook surface. The// staged-effect store can stay a real instance — it is plain data.- function makeStaged() {+ function makeStaged(+ metadataOps: readonly {+ pluginId: string+ op: 'set' | 'delete'+ key: string+ value?: unknown+ }[] = []+ ) {return {- commitMetadata: vi.fn((_db: unknown, _id: string, cb: () => void) => {- cb()- }),+ allMetadataOps: vi.fn(() => metadataOps),}}@@ -2144,16 +2149,29 @@ describe('handleCreateTask plugin-hook chain (Plan C / T15)', () => {})it('commits staged metadata inside the same transaction as task add', async () => {- const staged = makeStaged()+ const metadataOps = [+ {+ pluginId: 'plugin-a',+ op: 'set' as const,+ key: 'release',+ value: 'stable',+ },+ ]+ const staged = makeStaged(metadataOps)const orchestrator = makeOrchestrator(makeChainCommit({ staged, headerContributors: ['p'] }))const auditLog = makeAuditLog()- // Sentinel db object; we only verify commitMetadata is called with it- // and that the task add happens inside the supplied callback.- const db = { _sentinel: true } as unknown as Deps['db']+ const persistTaskWithPluginMetadata = vi.fn(+ async (_task: DownloadTask, _operations: readonly unknown[]) => undefined+ )const deps = makeDeps()- const fullDeps = { ...deps, orchestrator, auditLog, db }+ const fullDeps = {+ ...deps,+ orchestrator,+ auditLog,+ persistTaskWithPluginMetadata,+ }await handleCreateTask({@@ -2165,16 +2183,71 @@ describe('handleCreateTask plugin-hook chain (Plan C / T15)', () => {fullDeps)- expect(staged.commitMetadata).toHaveBeenCalledOnce()- const [dbArg, idArg, cb] = staged.commitMetadata.mock.calls[0]- expect(dbArg).toBe(db)- expect(typeof idArg).toBe('string')- expect(typeof cb).toBe('function')- // The taskManager.add must have run inside the callback (already- // invoked by our makeStaged stub).+ expect(persistTaskWithPluginMetadata).toHaveBeenCalledOnce()+ expect(persistTaskWithPluginMetadata.mock.calls[0]?.[1]).toEqual(+ metadataOps+ )+ expect(deps.persist).not.toHaveBeenCalled()expect(deps.add).toHaveBeenCalledOnce()})+ it('fails closed when metadata is staged without an atomic boundary', async () => {+ const staged = makeStaged([+ {+ pluginId: 'plugin-a',+ op: 'set',+ key: 'release',+ value: 'stable',+ },+ ])+ const deps = makeDeps()++ await expect(+ handleCreateTask(httpRequest(), {+ ...deps,+ orchestrator: makeOrchestrator(makeChainCommit({ staged })),+ })+ ).rejects.toThrow(+ 'beforeCreate metadata requires an atomic task persistence boundary'+ )+ expect(deps.addUri).not.toHaveBeenCalled()+ })++ it.each([+ ['unsupported scheme', 'file:///etc/passwd'],+ ['non-empty credentials', 'https://user:[email protected]/file'],+ ['empty userinfo', 'https://@example.test/file'],+ ['malformed URL', 'not a URL'],+ ])('rejects Hook-produced URI with %s', async (_name, uri) => {+ const deps = makeDeps()++ await expect(+ handleCreateTask(httpRequest(), {+ ...deps,+ orchestrator: makeOrchestrator(+ makeChainCommit({ uris: [uri], uriContributor: 'plugin-a' })+ ),+ })+ ).rejects.toMatchObject({ code: ErrorCode.TaskCreateFailed })+ expect(deps.addUri).not.toHaveBeenCalled()+ expect(deps.reserveEngineTaskId).not.toHaveBeenCalled()+ })++ it('accepts an admitted public HTTPS URI produced by a resolver', async () => {+ const deps = makeDeps()+ const uri =+ 'https://upload.wikimedia.org/wikipedia/commons/example-release.zip'++ await handleCreateTask(httpRequest(), {+ ...deps,+ orchestrator: makeOrchestrator(+ makeChainCommit({ uris: [uri], uriContributor: 'plugin-a' })+ ),+ })++ expect(deps.addUri).toHaveBeenCalledWith([uri], expect.any(Object))+ })+it('throws PluginRuntimeFault and emits chain.abort when chain aborts', async () => {const orchestrator = makeOrchestrator({ aborted: true, reason: 'boom' })const auditLog = makeAuditLog()diff --git a/src/core/task/create-task-handler.ts b/src/core/task/create-task-handler.tsindex 0ebaaabf..4215117b 100644--- a/src/core/task/create-task-handler.ts+++ b/src/core/task/create-task-handler.ts@@ -17,6 +17,7 @@ import { newEngineTaskId, newTaskId } from '@core/lib/ids'import { getLogger } from '@core/logger'import type { HookAuditLog } from '@core/plugin/hooks/audit-log'import type { HookOrchestrator } from '@core/plugin/hooks/hook-orchestrator'+import type { StagedMetadataOp } from '@core/plugin/hooks/staged-effects'import type {AppliedDownloadProxyPolicyReader,AppliedDownloadProxySnapshot,@@ -120,6 +121,15 @@ export interface CreateTaskDeps {// for the chain to fire; absence is a clean no-op for backward compat.orchestrator?: HookOrchestratorauditLog?: HookAuditLog+ /**+ * Persists the new task graph and pre-Hook metadata in one SQLite+ * transaction. Required whenever beforeCreate stages metadata operations.+ */+ persistTaskWithPluginMetadata?: (+ task: DownloadTask,+ operations: readonly StagedMetadataOp[]+ ) => Promise<void>+ /** @deprecated Retained for legacy composition; never used for Hook commit. */db?: Database.Database/** Optional engine-readiness gate. Awaited immediately before each engine* adapter call so a cold-start request waits for aria2 instead of hitting@@ -292,6 +302,8 @@ async function handleCreateTaskUnderAdmission(const appSettings = deps.settingsManager.getApp()const engineSettings = deps.settingsManager.getEngine()+ if (req.type === 'http') assertHttpTaskSourceAdmission(req.uris)+const requestedSaveDir = req.saveDir || appSettings.defaultSaveDirconst effectiveSaveDir = deps.prepareSaveDir? await deps.prepareSaveDir(requestedSaveDir)@@ -463,7 +475,7 @@ async function handleCreateTaskUnderAdmission(// incomplete suffix. For BT/magnet, dir=diskPath and `out` is absent;// parsed torrents additionally carry per-file output mappings. The adapter// is responsible for the aria2 wire shape.- let pluginStaged: { commit: (cb: () => void) => void } | undefined+ let pluginMetadataOps: readonly StagedMetadataOp[] = []let dispatchEngine: (reservedGid: string) => Promise<string>let directReplay: DirectReplayRecipe | null = nulllet canonicalUris = deriveUris(req)@@ -615,6 +627,9 @@ async function handleCreateTaskUnderAdmission()if (deps.orchestrator) {const ctxDto: BeforeCreateHttpContextDTO = {+ schemaVersion: 1,+ invocationId: `before-create:${taskId}`,+ taskId,type: 'http',sourceUrl: params.uris[0] ?? '',uris: [...params.uris],@@ -655,6 +670,10 @@ async function handleCreateTaskUnderAdmission(// - headers: only when the chain produced headers (else keep req)// - proxy: TRUTHY check (an empty-string proxy must NOT overwrite)params.uris = [...result.final.uris]+ // Hook outputs are task sources, not plugin HTTP requests. Re-run the+ // same source policy as user input; hostPermissions never authorize an+ // otherwise invalid or credential-bearing download target.+ assertHttpTaskSourceAdmission(params.uris)if (result.final.headers.length > 0) {params.headers = Object.fromEntries(result.final.headers.map((h) => [h.name, h.value])@@ -675,12 +694,15 @@ async function handleCreateTaskUnderAdmission(uriContributor: result.contributors.uris,finalHeaderCount: result.final.headers.length,})- if (deps.db) {- const db = deps.db- pluginStaged = {- commit: (cb: () => void) =>- result.staged.commitMetadata(db, taskId, cb),- }+ pluginMetadataOps =+ typeof result.staged.allMetadataOps === 'function'+ ? result.staged.allMetadataOps()+ : []+ if (pluginMetadataOps.length > 0 && !deps.persistTaskWithPluginMetadata) {+ throw new AppError(+ ErrorCode.PluginRuntimeFault,+ 'beforeCreate metadata requires an atomic task persistence boundary'+ )}}@@ -927,10 +949,16 @@ async function handleCreateTaskUnderAdmission(deps.taskManager.reserveEngineTaskId(gid)const persistParent = async (): Promise<void> => {+ if (pluginMetadataOps.length > 0) {+ await deps.persistTaskWithPluginMetadata?.(task, pluginMetadataOps)+ return+ }await deps.persistTask?.(task)}const hasDurableIntent = Boolean(- deps.persistTask || deps.parentTaskCreated || pluginStaged+ deps.persistTask ||+ deps.parentTaskCreated ||+ (pluginMetadataOps.length > 0 && deps.persistTaskWithPluginMetadata))const rollbackDurableIntent = async (): Promise<boolean> => {if (!hasDurableIntent) return true@@ -960,10 +988,6 @@ async function handleCreateTaskUnderAdmission(} else {await persistParent()}- // Plugin metadata must be durable before engine dispatch too. The parent- // row already crossed its rejecting barrier above; this synchronous- // transaction flushes only the staged hook metadata.- pluginStaged?.commit(() => {})} catch (cause) {const rolledBack = await rollbackDurableIntent()if (rolledBack) {@@ -1198,6 +1222,51 @@ function assertSupportedHttpTaskProxy(proxy: string | undefined): void {)}+function assertHttpTaskSourceAdmission(uris: readonly string[]): void {+ if (uris.length === 0) {+ throw new AppError(ErrorCode.TaskCreateFailed, 'Task source is required')+ }+ for (const rawUri of uris) {+ let uri: URL+ try {+ uri = new URL(rawUri)+ } catch {+ throw new AppError(+ ErrorCode.TaskCreateFailed,+ 'Task source URL is invalid'+ )+ }+ if (uri.protocol !== 'http:' && uri.protocol !== 'https:') {+ throw new AppError(+ ErrorCode.TaskCreateFailed,+ 'Task source URL must use HTTP or HTTPS'+ )+ }+ if (+ uri.username.length > 0 ||+ uri.password.length > 0 ||+ rawAuthorityContainsUserInfo(rawUri)+ ) {+ throw new AppError(+ ErrorCode.TaskCreateFailed,+ 'Task source URL must not contain credentials'+ )+ }+ }+}++function rawAuthorityContainsUserInfo(rawUri: string): boolean {+ const schemeEnd = rawUri.indexOf('://')+ if (schemeEnd < 0) return false+ const authorityStart = schemeEnd + 3+ let authorityEnd = rawUri.length+ for (const separator of ['/', '?', '#', '\\']) {+ const index = rawUri.indexOf(separator, authorityStart)+ if (index >= 0 && index < authorityEnd) authorityEnd = index+ }+ return rawUri.slice(authorityStart, authorityEnd).includes('@')+}+function uriBasename(uri: string | undefined): string | null {if (!uri) return nulltry {diff --git a/src/core/task/hook-dispatch.ts b/src/core/task/hook-dispatch.tsindex 381e3f78..b7021fe4 100644--- a/src/core/task/hook-dispatch.ts+++ b/src/core/task/hook-dispatch.ts@@ -1,20 +1,15 @@-import type { HookOrchestrator } from '@core/plugin/hooks/hook-orchestrator'-import type {- AfterCompleteContextDTO,- OnErrorContextDTO,-} from '@shared/types/plugin-hooks'import type { DownloadTask } from '@shared/types/task'/**- * Shared fire-and-forget dispatch for the parallel afterComplete / onError- * hook chains. Plan C spec §10: parallel hooks run in isolation — one- * plugin's failure must not affect the others, and dispatch never blocks the- * calling path. Both finalizeTask (per-task completion) and TaskRecoveryService- * (startup recovery) reach the same terminal transitions, so the dispatch lives- * here once instead of being copy-pasted into each.+ * Legacy terminal-Hook wake-up seam.+ *+ * Terminal Hook payloads are admitted durably in the same SQLite transaction+ * as the task transition. This helper may only wake the durable scheduler; it+ * must never invoke a plugin directly or rebuild a payload from mutable task+ * state after the commit.*/export interface HookDispatchDeps {- orchestrator?: HookOrchestrator+ wakePostDeliveries?: () => void | Promise<void>log: { warn(ctx: Record<string, unknown>, msg: string): void }}@@ -30,16 +25,7 @@ export function fireAfterComplete(task: DownloadTask,origin: HookDispatchOrigin): void {- if (!deps.orchestrator) return- const dto: AfterCompleteContextDTO = { task, filePath: task.finalPath }- void deps.orchestrator- .runParallel('afterComplete', dto, task.id)- .catch((err) => {- deps.log.warn(- { taskId: task.id, origin, err: (err as Error).message },- 'after_complete_hook_failed'- )- })+ wakeDurablePostDeliveries(deps, task.id, origin)}export function fireOnError(@@ -48,12 +34,20 @@ export function fireOnError(error: { code: string; message: string },origin: HookDispatchOrigin): void {- if (!deps.orchestrator) return- const dto: OnErrorContextDTO = { task, error }- void deps.orchestrator.runParallel('onError', dto, task.id).catch((err) => {+ void error+ wakeDurablePostDeliveries(deps, task.id, origin)+}++function wakeDurablePostDeliveries(+ deps: HookDispatchDeps,+ taskId: string,+ origin: HookDispatchOrigin+): void {+ if (!deps.wakePostDeliveries) return+ void Promise.resolve(deps.wakePostDeliveries()).catch((err) => {deps.log.warn(- { taskId: task.id, origin, err: (err as Error).message },- 'on_error_hook_failed'+ { taskId, origin, err: (err as Error).message },+ 'post_delivery_scheduler_wake_failed')})}diff --git a/src/core/task/task-recovery-service.test.ts b/src/core/task/task-recovery-service.test.tsindex 03dfbce1..7e71e69d 100644--- a/src/core/task/task-recovery-service.test.ts+++ b/src/core/task/task-recovery-service.test.ts@@ -433,7 +433,7 @@ describe('TaskRecoveryServiceImpl.recoverOnStartup', () => {expect(dispatch).toHaveBeenCalledTimes(2)})- it('fires the filesystem-mismatch error hook for a preserved output conflict', async () => {+ it('does not invoke a post-Hook directly for a preserved output conflict', async () => {const orchestrator = {runParallel: vi.fn(async () => {}),runBeforeCreateHttp: vi.fn(),@@ -455,15 +455,7 @@ describe('TaskRecoveryServiceImpl.recoverOnStartup', () => {await new TaskRecoveryServiceImpl(deps).recoverOnStartup()await new Promise((resolve) => setTimeout(resolve, 0))- expect(orchestrator?.runParallel).toHaveBeenCalledWith(- 'onError',- expect.objectContaining({- error: expect.objectContaining({- code: ErrorCode.TaskRecoveryFsMismatch,- }),- }),- 'both-paths-hook'- )+ expect(orchestrator?.runParallel).not.toHaveBeenCalled()})it('recovers a pending media rename without routing through aria2 finalization', async () => {@@ -850,7 +842,7 @@ describe('TaskRecoveryService plugin-hook chain (Plan C / T15)', () => {} as unknown as RecoveryDeps['orchestrator']}- it('MarkCompleted (HTTP final_only + Renaming) fires afterComplete', async () => {+ it('MarkCompleted leaves afterComplete to the durable delivery runtime', async () => {const orchestrator = makeOrchestrator()const task = makeTask({id: 'http-done',@@ -875,14 +867,10 @@ describe('TaskRecoveryService plugin-hook chain (Plan C / T15)', () => {expect(task.status).toBe(TaskStatus.Completed)expect(task.finishedAt).not.toBeNull()- expect(orchestrator?.runParallel).toHaveBeenCalledWith(- 'afterComplete',- expect.objectContaining({ filePath: '/d/foo.mp4' }),- 'http-done'- )+ expect(orchestrator?.runParallel).not.toHaveBeenCalled()})- it('MarkError fires onError with files-missing error code', async () => {+ it('MarkError leaves onError to the durable delivery runtime', async () => {const orchestrator = makeOrchestrator()const task = makeTask({id: 'gone-1',@@ -905,13 +893,7 @@ describe('TaskRecoveryService plugin-hook chain (Plan C / T15)', () => {expect(task.status).toBe(TaskStatus.Error)expect(task.finishedAt).not.toBeNull()- expect(orchestrator?.runParallel).toHaveBeenCalledWith(- 'onError',- expect.objectContaining({- error: expect.objectContaining({ code: 'RECOVERY_FILES_MISSING' }),- }),- 'gone-1'- )+ expect(orchestrator?.runParallel).not.toHaveBeenCalled()})it('parallel hook failure is isolated (does not break the recovery loop)', async () => {diff --git a/src/main/index.ts b/src/main/index.tsindex 2675ca4d..a1697724 100644--- a/src/main/index.ts+++ b/src/main/index.ts@@ -40,8 +40,13 @@ import { registerEngineCompatibilitySubscriber } from '@core/notifications/enginimport { registerEngineFailureSubscriber } from '@core/notifications/engine-failure-subscriber'import { NotificationCenter } from '@core/notifications/notification-center'import { createNotificationOccurrenceConsumer } from '@core/notifications/occurrence-consumer'+import { projectActiveToLegacy } from '@core/plugin/capabilities/ffmpeg-detect'import { wireCommandSystem } from '@core/plugin/commands/wire'+import type { NativeFinalizeFilesystemAdapter } from '@core/plugin/finalize/filesystem-adapter'+import { resolveFinalizeSidecarPath } from '@core/plugin/finalize/sidecar-path'import { GrantsManager } from '@core/plugin/grants/grants-manager'+import type { HookAuditLog } from '@core/plugin/hooks/audit-log'+import type { HookOrchestrator } from '@core/plugin/hooks/hook-orchestrator'import { ActivationDispatcher } from '@core/plugin/host/activation-dispatcher'import {PluginHost,@@ -50,10 +55,14 @@ import {import { PluginInstaller } from '@core/plugin/install/plugin-installer'import { PluginRegistry } from '@core/plugin/plugin-registry'import { RegistryClient } from '@core/plugin/registry/registry-client'+import type { PluginHookRuntime } from '@core/plugin/runtime/plugin-hook-runtime'+import { createPluginRuntime } from '@core/plugin/runtime/runtime-factory'+import { PluginRuntimeStartupCoordinator } from '@core/plugin/runtime/startup-coordinator'import { PluginStateStore } from '@core/plugin/state/plugin-state-store'import { BuiltinUpdater } from '@core/plugin/update/builtin-updater'import { AppliedDownloadProxyPolicy } from '@core/proxy/applied-download-proxy-policy'import { ProxyBridgeManager } from '@core/proxy/proxy-bridge-manager'+import type { DurableFinalizeRuntime } from '@core/session/durable-finalize-runtime'import { MotrixDatabase } from '@core/session/motrix-database'import { SessionManager } from '@core/session/session-manager'import { SettingsManager } from '@core/settings/settings-manager'@@ -69,7 +78,10 @@ import {reAddTask as reAddTaskAction,resumeTask as resumeTaskAction,} from '@core/task/actions'-import { finalizeTask } from '@core/task/actions/finalize-task'+import {+ type FinalizeArtifactCommitRequest,+ finalizeTask,+} from '@core/task/actions/finalize-task'import { removeTask } from '@core/task/actions/remove-task'import { commitPolledTerminalTransition } from '@core/task/actions/shared'import { countActiveDownloads } from '@core/task/active-downloads'@@ -173,7 +185,10 @@ import { createElectronPlatformServices } from './platform/services'import { setupTray } from './platform/tray'import { createElectronCapabilityHost } from './plugin/capability-host'import { startDevWatcher } from './plugin/dev-watcher'-import { resolveElectronFfmpegEnvPath } from './plugin/ffmpeg-detect-electron'+import {+ makeElectronFfmpegDetect,+ resolveElectronFfmpegEnvPath,+} from './plugin/ffmpeg-detect-electron'import { resolvePluginHostLanguage } from './plugin/host-language'import { resolvePluginsDir } from './plugin/plugins-dir'import { createMainProxyApplier } from './proxy/wiring'@@ -416,6 +431,13 @@ let menuManager: MenuManager | null = nulllet osNotificationBridge: { dispose(): void } | null = nulllet geoipManager: GeoIPManager | null = nulllet pluginHost: PluginHost | null = null+let pluginHookRuntime: PluginHookRuntime | null = null+let hookAuditLog: HookAuditLog | null = null+let hookOrchestrator: HookOrchestrator | null = null+let durableFinalizeRuntime: DurableFinalizeRuntime | null = null+let finalizeFilesystemAdapter: NativeFinalizeFilesystemAdapter | null = null+let postDeliveryAbortController: AbortController | null = null+let postDeliveryLoop: Promise<void> | null = nulllet devWatcherHandle: { close(): Promise<void> } | null = nulllet bridgeManager: BridgeManager | null = nulllet magnetTracker: MagnetTracker | null = null@@ -474,6 +496,7 @@ function performCleanup(): Promise<void> {// the drain: startup can be blocked on the engine/plugin/session that only// those teardown operations can release.const acceptedWorkDrain = mainProcessWork.stopAndDrain()+ postDeliveryAbortController?.abort()await ingressCloseconst cancellationDrain = Promise.all([safely('polling', () => pollingScheduler?.stopAndDrain()),@@ -492,9 +515,19 @@ function performCleanup(): Promise<void> {await handle?.close()}),safely('plugin-host', async () => {+ await postDeliveryLoop+ postDeliveryLoop = null+ postDeliveryAbortController = null+ pluginHookRuntime = nullconst host = pluginHost- pluginHost = null- await host?.shutdown()+ try {+ await hookAuditLog?.drain()+ } finally {+ hookAuditLog = null+ hookOrchestrator = null+ pluginHost = null+ await host?.shutdown()+ }}),safely('magnet', () => magnetTracker?.stopAndDrain()),safely('speed-limit', () => speedLimitController?.stop()),@@ -510,6 +543,12 @@ function performCleanup(): Promise<void> {safely('session', () => sessionManager?.stopAndDrain()),safely('engine', () => supervisor?.stop()),])+ await safely('finalize-filesystem', async () => {+ const adapter = finalizeFilesystemAdapter+ finalizeFilesystemAdapter = null+ durableFinalizeRuntime = null+ await adapter?.dispose()+ })await safely('proxy-bridge', () => proxyBridge?.close())await safely('main-process-work', () => acceptedWorkDrain)await safely('task-inspector-activity', () =>@@ -975,6 +1014,9 @@ function persistTaskWithOccurrence(task: DownloadTask,occurrence: TaskOccurrence | null): Promise<void> {+ if (occurrence && pluginHookRuntime) {+ return pluginHookRuntime.persistTerminal(task, occurrence)+ }return sessionManager.persistTaskWithOccurrence(task, occurrence)}@@ -998,6 +1040,9 @@ function getFinalizeSettings(): {function buildFinalizeDeps(adapter: Aria2Adapter) {const activityRecorder = requireTaskActivityService()+ if (!hookAuditLog || !hookOrchestrator) {+ throw new Error('plugin hook orchestrator is unavailable')+ }return {taskManager: {getById: (id: string) => taskManager.getById(id),@@ -1027,6 +1072,8 @@ function buildFinalizeDeps(adapter: Aria2Adapter) {settings: { get: getFinalizeSettings },eventBus,activityRecorder,+ orchestrator: hookOrchestrator,+ auditLog: hookAuditLog,recordTransition: (input: RuntimeTransitionInput) =>taskInspectorActivityRuntime?.recordTransition(input),runTaskMutation: <T>(@@ -1037,6 +1084,23 @@ function buildFinalizeDeps(adapter: Aria2Adapter) {? taskInspectorActivityRuntime.runTaskMutation(taskIds, operation): operation(),log,+ commitFinalizedArtifact: async (input: FinalizeArtifactCommitRequest) => {+ if (!durableFinalizeRuntime) {+ throw new Error('durable finalize runtime is unavailable')+ }+ const post =+ input.occurrence?.type === 'terminal' && pluginHookRuntime+ ? await pluginHookRuntime.prepareTerminal(+ input.task,+ input.occurrence+ )+ : { postDeliveries: [], beforeCommit: () => undefined }+ await durableFinalizeRuntime.commit({+ ...input,+ postDeliveries: post.postDeliveries,+ beforeCommit: post.beforeCommit,+ })+ },}}@@ -1114,6 +1178,14 @@ async function startEngineAndRestore(dnsFallbackConsumer.consume)+ const pluginStartup = new PluginRuntimeStartupCoordinator()+ await pluginStartup.recoverFinalize(async () => {+ if (!durableFinalizeRuntime) {+ throw new Error('durable finalize runtime is unavailable')+ }+ await durableFinalizeRuntime.recoverAll()+ })+try {await supervisor.start(platform.aria2BinaryPath)} catch (err) {@@ -1229,107 +1301,129 @@ async function startEngineAndRestore(// publishNow: startup's first paint must not wait out the window.publishTaskUpdateNow()+ const activePluginHookRuntime = pluginHookRuntime+ if (!activePluginHookRuntime) {+ throw new Error('plugin hook runtime is unavailable')+ }+ pluginStartup.markTasksRecovered()+ await pluginStartup.drainBeforeProducers({+ drainOccurrences: () => occurrenceDispatcher.drainAtStartup(),+ recoverAndDrainPostDeliveries: () =>+ activePluginHookRuntime.recoverAndDrain(),+ })+ if (!postDeliveryLoop) {+ const controller = new AbortController()+ postDeliveryAbortController = controller+ postDeliveryLoop = activePluginHookRuntime.scheduler+ .start(controller.signal)+ .catch((err) => {+ if (!controller.signal.aborted) {+ log.error({ err }, 'plugin post-delivery scheduler stopped')+ }+ })+ }+// Subscribe to engine completion events so newly-finished tasks// are finalized (rename `.motrix` → final name; BT re-adds with// `bt-seed-unverified=true`). These trigger AFTER recovery so// in-flight finalizes from a previous run are settled first and// we don't race a second finalize on the same task.- adapter.onBtDownloadComplete((engineTaskId) => {- runShellAsyncWork('BT finalize', async () => {- const task = taskManager.getByEngineTaskId(engineTaskId)- if (!task) return- // Re-entry guard. After finalizeBt re-adds the seeding gid with- // `bt-seed-unverified=true`, aria2 marks every piece complete at- // add time and immediately re-fires onBtDownloadComplete for the- // brand-new gid. Without this guard, the handler runs finalizeBt- // again on the SAME motrix task — forceRemove(newGid),- // addTorrent → newer gid, which itself re-fires the event,- // ad infinitum. The chain only breaks when something throws- // (rename-to-self, FK violation in task_progress, etc.), and the- // last gid that survives the storm is the one that ends up- // seeding from upload_length=0 — explaining the user-reported- // "Completed → Seeding → Completed restart loop": each restart- // resumes the freshly-added survivor whose progress row has- // never accumulated any uploaded bytes.- //- // Sentinel "this task is past finalize":- // • Renamed already (diskPath stripped of .motrix), AND- // • Not currently in the middle of a finalize cycle- // (status !== Finalizing && transitionPhase === Idle).- if (shouldSkipEngineCompletionFinalize(task)) {- log.debug(- {- taskId: task.id,- engineTaskId,- status: task.status,- transitionPhase: task.transitionPhase,- },- 'skip finalize for already-finalized or in-flight BT task'- )- return- }- try {- await finalizeTask(task.id, finalizeDepsFactory())- } catch (err) {- log.error({ err, taskId: task.id }, 'finalizeTask failed (BT)')- }+ pluginStartup.openProducers(() => {+ adapter.onBtDownloadComplete((engineTaskId) => {+ runShellAsyncWork('BT finalize', async () => {+ const task = taskManager.getByEngineTaskId(engineTaskId)+ if (!task) return+ // Re-entry guard. After finalizeBt re-adds the seeding gid with+ // `bt-seed-unverified=true`, aria2 marks every piece complete at+ // add time and immediately re-fires onBtDownloadComplete for the+ // brand-new gid. Without this guard, the handler runs finalizeBt+ // again on the SAME motrix task — forceRemove(newGid),+ // addTorrent → newer gid, which itself re-fires the event,+ // ad infinitum. The chain only breaks when something throws+ // (rename-to-self, FK violation in task_progress, etc.), and the+ // last gid that survives the storm is the one that ends up+ // seeding from upload_length=0 — explaining the user-reported+ // "Completed → Seeding → Completed restart loop": each restart+ // resumes the freshly-added survivor whose progress row has+ // never accumulated any uploaded bytes.+ //+ // Sentinel "this task is past finalize":+ // • Renamed already (diskPath stripped of .motrix), AND+ // • Not currently in the middle of a finalize cycle+ // (status !== Finalizing && transitionPhase === Idle).+ if (shouldSkipEngineCompletionFinalize(task)) {+ log.debug(+ {+ taskId: task.id,+ engineTaskId,+ status: task.status,+ transitionPhase: task.transitionPhase,+ },+ 'skip finalize for already-finalized or in-flight BT task'+ )+ return+ }+ try {+ await finalizeTask(task.id, finalizeDepsFactory())+ } catch (err) {+ log.error({ err, taskId: task.id }, 'finalizeTask failed (BT)')+ }+ })})- })- adapter.onDownloadComplete((engineTaskId) => {- runShellAsyncWork('HTTP finalize', async () => {- const task = taskManager.getByEngineTaskId(engineTaskId)- if (!task) return- // BT tasks emit `onDownloadComplete` again after seeding finishes;- // route only HTTP/FTP here. BT finalize runs via onBtDownloadComplete.- if (task.type !== TaskType.Http && task.type !== TaskType.Ftp) {- return- }- if (shouldSkipEngineCompletionFinalize(task)) return- try {- await finalizeTask(task.id, finalizeDepsFactory())- } catch (err) {- log.error({ err, taskId: task.id }, 'finalizeTask failed (HTTP)')- }+ adapter.onDownloadComplete((engineTaskId) => {+ runShellAsyncWork('HTTP finalize', async () => {+ const task = taskManager.getByEngineTaskId(engineTaskId)+ if (!task) return+ // BT tasks emit `onDownloadComplete` again after seeding finishes;+ // route only HTTP/FTP here. BT finalize runs via onBtDownloadComplete.+ if (task.type !== TaskType.Http && task.type !== TaskType.Ftp) {+ return+ }+ if (shouldSkipEngineCompletionFinalize(task)) return+ try {+ await finalizeTask(task.id, finalizeDepsFactory())+ } catch (err) {+ log.error({ err, taskId: task.id }, 'finalizeTask failed (HTTP)')+ }+ })})- })- sessionManager.startAutoSave(sessionSaveInterval * 1000)- // Gate the periodic save on engine activity. The scheduler derives- // active/idle from aria2 getGlobalStat.numActive and broadcasts it here;- // the save only flushes in-progress byte counts (which change only while- // active), so idle ⇒ stop rewriting the whole task history every interval.- eventBus.on(Events.EngineActiveChanged, (active) => {- sessionManager.setEngineActive(Boolean(active))- })-- pollingNotificationUnsubscribers.push(- rpcClient.onDownloadStart((event) => {- pollingScheduler.handleNotification('aria2.onDownloadStart', event)- }),- rpcClient.onDownloadPause((event) => {- pollingScheduler.handleNotification('aria2.onDownloadPause', event)- }),- rpcClient.onDownloadComplete((event) => {- pollingScheduler.handleNotification('aria2.onDownloadComplete', event)- }),- rpcClient.onDownloadStop((event) => {- pollingScheduler.handleNotification('aria2.onDownloadStop', event)- }),- rpcClient.onDownloadError((event) => {- pollingScheduler.handleNotification('aria2.onDownloadError', event)- }),- rpcClient.onBtDownloadComplete((event) => {- pollingScheduler.handleNotification('aria2.onBtDownloadComplete', event)+ sessionManager.startAutoSave(sessionSaveInterval * 1000)+ // Gate the periodic save on engine activity. The scheduler derives+ // active/idle from aria2 getGlobalStat.numActive and broadcasts it here;+ // the save only flushes in-progress byte counts (which change only while+ // active), so idle ⇒ stop rewriting the whole task history every interval.+ eventBus.on(Events.EngineActiveChanged, (active) => {+ sessionManager.setEngineActive(Boolean(active))})- )- // Deliver anything the outbox still holds: rows a prior run persisted- // but never dispatched, plus everything restore()/recovery just wrote- // through SessionManager (which has no dispatcher of its own).- await occurrenceDispatcher.drainAtStartup()+ pollingNotificationUnsubscribers.push(+ rpcClient.onDownloadStart((event) => {+ pollingScheduler.handleNotification('aria2.onDownloadStart', event)+ }),+ rpcClient.onDownloadPause((event) => {+ pollingScheduler.handleNotification('aria2.onDownloadPause', event)+ }),+ rpcClient.onDownloadComplete((event) => {+ pollingScheduler.handleNotification('aria2.onDownloadComplete', event)+ }),+ rpcClient.onDownloadStop((event) => {+ pollingScheduler.handleNotification('aria2.onDownloadStop', event)+ }),+ rpcClient.onDownloadError((event) => {+ pollingScheduler.handleNotification('aria2.onDownloadError', event)+ }),+ rpcClient.onBtDownloadComplete((event) => {+ pollingScheduler.handleNotification(+ 'aria2.onBtDownloadComplete',+ event+ )+ })+ )- pollingScheduler.start()+ pollingScheduler.start()+ })} catch (err) {log.error({ err }, 'post-engine setup failed')}@@ -1696,6 +1790,12 @@ async function initializeMainProcess(): Promise<void> {registry: pluginRegistry,eventBus,})+ const detectElectronFfmpeg = makeElectronFfmpegDetect({+ settingsManager,+ userDataDir: app.getPath('userData'),+ })+ const detectPluginFfmpeg = async () =>+ projectActiveToLegacy(await detectElectronFfmpeg())const activePluginHost = new PluginHost({registry: pluginRegistry,stateStore: pluginStateStore,@@ -1708,27 +1808,20 @@ async function initializeMainProcess(): Promise<void> {runtime: 'electron',hostLanguage: resolvedApplicationLocale,pluginGrants,+ ffmpegDetect: detectPluginFfmpeg,idleDisposeMs: parsePluginIdleDisposeMs(process.env.MOTRIX_PLUGIN_IDLE_DISPOSE_MS),})pluginHost = activePluginHost- // Spec §I30 — real-time grant revocation. On a grants change, deactivate- // the plugin so the next activation rebuilds its bridge with the new- // effective permissions. Existing in-flight calls finish; new ones see- // `plugin.capability.unavailable`.- eventBus.on(Events.PluginGrantsChanged, (...args: unknown[]) => {- const p = args[0] as { pluginId: string } | undefined- if (!p?.pluginId) return- if (pluginHost?.isActive(p.pluginId)) {- void pluginHost.deactivate(p.pluginId)- }- })+ pluginGrants.bindPolicyBarrier(+ activePluginHost.applyPolicyMutation.bind(activePluginHost)+ )// Wire Plan D: cross-plugin command safeguards (schema cache + rate limit// + caller throttle + chain depth + audit) and bind the invoker to the// capability host. Must run AFTER registry.discover() so manifest schemas// can be compiled at install time.- wireCommandSystem({+ const commandSystem = wireCommandSystem({registry: pluginRegistry,host: activePluginHost,capabilityHost: pluginCapHost,@@ -1775,6 +1868,8 @@ async function initializeMainProcess(): Promise<void> {stateStore: pluginStateStore,capabilityHost: pluginCapHost,hostVersion: app.getVersion(),+ schemaCache: commandSystem.schemas,+ ffmpegDetect: detectPluginFfmpeg,})// Media (hls/dash/mux) segment downloads write under this root. Compute it@@ -1798,6 +1893,42 @@ async function initializeMainProcess(): Promise<void> {: null})+ const pluginRuntime = await createPluginRuntime({+ activation: pluginActivation,+ registry: pluginRegistry,+ grants: pluginGrants,+ host: activePluginHost,+ installer: pluginInstaller,+ capabilityHost: pluginCapHost,+ repository: motrixDb.durablePostDeliveries,+ persistTerminal: (task, occurrence, input) =>+ sessionManager.persistTerminalHookBoundary(task, occurrence, input),+ database: motrixDb.database,+ session: sessionManager,+ pluginsDir,+ auditLogPath: path.join(+ platform.userDataDir,+ 'plugin-audit',+ 'hooks.ndjson'+ ),+ finalizeSidecarPath: resolveFinalizeSidecarPath({+ extraResourceDir: platform.extraResourceDir,+ isDev: platform.isDev,+ }),+ assertEngineQuiesced: async (taskId) => {+ const task = taskManager.getById(taskId)+ if (!task) return+ const active = await adapter.listActiveAndWaiting()+ if (active.some((entry) => entry.gid === task.engineTaskId)) {+ throw new Error(`engine writer is still active for task ${taskId}`)+ }+ },+ })+ hookAuditLog = pluginRuntime.auditLog+ hookOrchestrator = pluginRuntime.orchestrator+ pluginHookRuntime = pluginRuntime.hooks+ finalizeFilesystemAdapter = pluginRuntime.finalizeFilesystem+ durableFinalizeRuntime = pluginRuntime.finalizepollingScheduler = new PollingScheduler(rpcClient,eventBus,@@ -2099,6 +2230,8 @@ async function initializeMainProcess(): Promise<void> {publishTaskUpdate,activityRecorder: activeTaskActivityService,persistTask,+ persistTaskWithPluginMetadata:+ pluginRuntime.persistTaskWithPluginMetadata,parentTaskCreated: (task: DownloadTask,persistParent: () => void | Promise<void>@@ -2303,6 +2436,22 @@ async function initializeMainProcess(): Promise<void> {overlayDir,hostVersion: app.getVersion(),})+ builtinUpdater.bindLifecycleSink({+ applyPolicyMutation: (pluginId, publish) =>+ activePluginHost.applyPolicyMutation(pluginId, publish),+ currentExecutable: (pluginId) => {+ const current = pluginRegistry.policySnapshot(pluginId)+ if (!current?.executableDigest) return undefined+ return {+ pluginId,+ version: current.version,+ digest: current.executableDigest,+ }+ },+ refreshRegistry: () => pluginRegistry.discover(),+ supersede: (executable, at) =>+ pluginRuntime.hooks.supersede(executable, at),+ })runShellAsyncWork('builtin updater orphan cleanup', () =>builtinUpdater.cleanupOrphans())@@ -2390,13 +2539,15 @@ async function initializeMainProcess(): Promise<void> {pluginGrants,capabilityHost: pluginCapHost,userDataDir: platform.userDataDir,- pluginsDir,pluginActivation,+ hookAuditLog,+ hookOrchestrator,// biome-ignore lint/style/noNonNullAssertion: assigned just above in this blockbridgeManager: bridgeManager!,magnetTracker: activeMagnetTracker,activityRecorder: activeTaskActivityService,persistTask,+ persistTaskWithPluginMetadata: pluginRuntime.persistTaskWithPluginMetadata,persistTaskWithOccurrence,occurrenceDispatcher,recordTransition: (input) =>diff --git a/src/main/ipc/commands.test.ts b/src/main/ipc/commands.test.tsindex 349d6270..a5ab5fb2 100644--- a/src/main/ipc/commands.test.ts+++ b/src/main/ipc/commands.test.ts@@ -2136,17 +2136,23 @@ describe('Commands.UpdatePluginConfig', () => {describe('plugin enable/disable commands', () => {function makePluginLifecycleCtx() {+ const setEnabled = vi.fn()+ const refreshState = vi.fn()return {...fakeCtx(),pluginStateStore: {- setEnabled: vi.fn(),+ setEnabled,get: vi.fn().mockReturnValue(undefined),},pluginRegistry: {- refreshState: vi.fn(),+ refreshState,},pluginHost: {deactivate: vi.fn().mockResolvedValue(undefined),+ disable: vi.fn(async (id: string) => {+ setEnabled(id, false)+ refreshState(id)+ }),},eventBus: {emit: vi.fn(),@@ -2191,7 +2197,12 @@ describe('plugin enable/disable commands', () => {await handlers[Commands.DisablePlugin]?.('test-plugin')- expect(ctx.pluginHost.deactivate).toHaveBeenCalledWith('test-plugin')+ expect(ctx.pluginHost.disable).toHaveBeenCalledWith(+ 'test-plugin',+ 'plugin.user_disabled',+ 'disabled',+ { recordError: false }+ )expect(ctx.eventBus.emit).toHaveBeenCalledWith(Events.PluginStatusChanged,expect.objectContaining({ id: 'test-plugin', enabled: false })@@ -2246,6 +2257,7 @@ describe('Commands.RevertBuiltinToBundled', () => {discover: vi.fn().mockResolvedValue(undefined),}const pluginHost = {+ isActive: vi.fn(() => status === 'active'),deactivate: vi.fn().mockImplementation(async () => {status = 'inactive'}),@@ -2253,6 +2265,17 @@ describe('Commands.RevertBuiltinToBundled', () => {status = 'active'}),}+ const builtinUpdater = {+ revert: vi.fn().mockImplementation(async () => {+ status = 'inactive'+ await rm(path.join(overlayDir, pluginId), {+ recursive: true,+ force: true,+ })+ await pluginRegistry.discover()+ return { pluginId, changed: true }+ }),+ }const eventBus = {emit: vi.fn(),on: vi.fn(),@@ -2263,10 +2286,18 @@ describe('Commands.RevertBuiltinToBundled', () => {...fakeCtx(),pluginRegistry,pluginHost,+ builtinUpdater,+ eventBus,+ overlayDir,+ }+ return {+ ctx,+ pluginRegistry,+ pluginHost,+ builtinUpdater,eventBus,overlayDir,}- return { ctx, pluginRegistry, pluginHost, eventBus, overlayDir }}it('reactivates a builtin that was active before the revert', async () => {@@ -2286,12 +2317,12 @@ describe('Commands.RevertBuiltinToBundled', () => {expect(pluginHost.activate).toHaveBeenCalledWith(pluginId)expect(result).toMatchObject({ ok: true, restartRequired: false })- // Ordering must still hold: deactivate (so the worker releases overlay- // files) strictly before the rescan/reactivate.- const deactivateOrder = pluginHost.deactivate.mock.invocationCallOrder[0]+ // BuiltinUpdater owns the admission/deactivate/rescan boundary; the+ // command must await that complete lifecycle before reactivation.+ const revertOrder = ctx.builtinUpdater.revert.mock.invocationCallOrder[0]const discoverOrder = pluginRegistry.discover.mock.invocationCallOrder[0]const activateOrder = pluginHost.activate.mock.invocationCallOrder[0]- expect(deactivateOrder).toBeLessThan(discoverOrder)+ expect(revertOrder).toBeLessThan(discoverOrder)expect(discoverOrder).toBeLessThan(activateOrder)// The overlay directory itself is gone.@@ -2318,6 +2349,7 @@ describe('Commands.RevertBuiltinToBundled', () => {const pluginId = 'motrix.filename-template'const { ctx, pluginRegistry, pluginHost } = await makeRevertCtx(pluginId)pluginRegistry.list.mockReturnValue([{ id: pluginId, status: 'inactive' }])+ pluginHost.isActive.mockReturnValue(false)const handlers = buildCommandHandlers(ctx as unknown as CommandContext)const result = await handlers[Commands.RevertBuiltinToBundled]?.({diff --git a/src/main/ipc/commands.ts b/src/main/ipc/commands.tsindex 5a2b0d46..6e4a0c67 100644--- a/src/main/ipc/commands.ts+++ b/src/main/ipc/commands.ts@@ -1,4 +1,3 @@-import { rm } from 'node:fs/promises'import path from 'node:path'import type { AdaptedMux } from '@core/bridge-receiver/submit-download-adapter'import type { DnsFallbackConsumer } from '@core/engine/aria2/dns-fallback'@@ -14,8 +13,8 @@ import { publishEngineRestartRequired } from '@core/notifications/engine-restartimport type { NotificationCenter } from '@core/notifications/notification-center'import type { CapabilityHost } from '@core/plugin/capabilities/interface'import type { GrantsManager } from '@core/plugin/grants/grants-manager'-import { HookAuditLog } from '@core/plugin/hooks/audit-log'-import { HookOrchestrator } from '@core/plugin/hooks/hook-orchestrator'+import type { HookAuditLog } from '@core/plugin/hooks/audit-log'+import type { HookOrchestrator } from '@core/plugin/hooks/hook-orchestrator'import type { ActivationDispatcher } from '@core/plugin/host/activation-dispatcher'import type { PluginHost } from '@core/plugin/host/plugin-host'import {@@ -190,12 +189,16 @@ export interface CommandContext {pluginGrants: GrantsManagercapabilityHost: CapabilityHostuserDataDir: string- pluginsDir: stringpluginActivation: ActivationDispatcher+ hookAuditLog?: HookAuditLog+ hookOrchestrator?: HookOrchestratorbridgeManager: BridgeManagermagnetTracker: MagnetTrackeractivityRecorder: TaskActivityRecorderpersistTask: NonNullable<TaskActionDeps['persistTask']>+ persistTaskWithPluginMetadata?: NonNullable<+ CreateTaskDeps['persistTaskWithPluginMetadata']+ >/*** Persist a task and (when non-null) its terminal occurrence in a single* durable transaction — used INSTEAD OF `persistTask` whenever a status@@ -273,15 +276,16 @@ export function buildCommandHandlers(ctx: CommandContext): CommandHandlerMap {registryClient,hostVersion,builtinUpdater,- overlayDir,pluginGrants,capabilityHost,userDataDir,- pluginsDir,pluginActivation,+ hookAuditLog,+ hookOrchestrator,bridgeManager,activityRecorder,persistTask,+ persistTaskWithPluginMetadata,persistTaskWithOccurrence,occurrenceDispatcher,recordTransition,@@ -292,22 +296,6 @@ export function buildCommandHandlers(ctx: CommandContext): CommandHandlerMap {publishTaskUpdateNow,} = ctx- // Plan C plugin-hook plumbing: instantiate the orchestrator + audit log- // once and feed them into createDeps so handleCreateTask's beforeCreate- // chain fires. Without this, every plugin's beforeCreate hook is silently- // skipped and the user-supplied URL is dispatched to aria2 unchanged.- const hookAuditLog = new HookAuditLog(- path.join(userDataDir, 'plugin-audit', 'hooks.ndjson')- )- const hookOrchestrator = new HookOrchestrator({- host: pluginHost,- hookTimeoutMs: { series: 10_000, parallel: 30_000 },- pluginsDir,- pluginStorageRootFor: (pluginId) =>- path.join(pluginsDir, pluginId, 'storage'),- auditLog: hookAuditLog,- })-const createDeps: CreateTaskDeps = {adapter,directResourceValidator: new DirectResourceValidatorService(),@@ -324,6 +312,7 @@ export function buildCommandHandlers(ctx: CommandContext): CommandHandlerMap {auditLog: hookAuditLog,db: motrixDatabase.database,persistTask,+ persistTaskWithPluginMetadata,parentTaskCreated,rollbackTaskCreation: (taskId: string) =>sessionManager.runExclusivePersistence(() =>@@ -491,25 +480,13 @@ export function buildCommandHandlers(ctx: CommandContext): CommandHandlerMap {stagingId: z.string().min(1),})- // deactivate → rescan → reactivate; a failed reactivation is NOT an- // install failure — the overlay is on disk and effective next launch.- //- // knownWasActive lets a caller that must deactivate BEFORE calling this- // function (RevertBuiltinToBundled — deactivate has to happen before the- // overlay `rm` so the running worker isn't holding overlay files open)- // pass in the pre-deactivate activity state. Sampling pluginRegistry.list()- // in here would otherwise always see the caller's own deactivate and treat- // the plugin as never having been active. `??` is deliberate: a real- // `false` override is honored as-is, only `undefined` falls through to- // sampling the registry.- async function hotSwapBuiltin(+ // BuiltinUpdater owns deactivate + policy refresh + durable supersession+ // under PluginHost's admission barrier. Only best-effort reactivation is+ // left here; a committed overlay remains effective after restart.+ async function reactivateBuiltin(pluginId: string,- knownWasActive?: boolean+ wasActive: boolean): Promise<boolean> {- const wasActive =- knownWasActive ?? pluginRegistry.get(pluginId)?.state.status === 'active'- await pluginHost.deactivate(pluginId).catch(() => {})- await pluginRegistry.discover()if (!wasActive) return falsetry {await pluginHost.activate(pluginId)@@ -1382,9 +1359,9 @@ export function buildCommandHandlers(ctx: CommandContext): CommandHandlerMap {},[Commands.DisablePlugin]: async (id: string) => {- await pluginHost.deactivate(id)- pluginStateStore.setEnabled(id, false)- pluginRegistry.refreshState(id)+ await pluginHost.disable(id, 'plugin.user_disabled', 'disabled', {+ recordError: false,+ })const state = pluginStateStore.get(id)eventBus.emit(Events.PluginStatusChanged, {id,@@ -1539,8 +1516,12 @@ export function buildCommandHandlers(ctx: CommandContext): CommandHandlerMap {if (staged.trustChanged) {return { needsConsent: true, ...staged }}+ const wasActive = pluginHost.isActive(parsed.pluginId)await builtinUpdater.commit(staged.stagingId)- const restartRequired = await hotSwapBuiltin(parsed.pluginId)+ const restartRequired = await reactivateBuiltin(+ parsed.pluginId,+ wasActive+ )// Same event ConfirmPluginInstall emits after a community install// commits: usePlugins.onLifecycle refetches ListPlugins so the// plugin's version/status/source.type (builtin -> builtin-update)@@ -1552,8 +1533,16 @@ export function buildCommandHandlers(ctx: CommandContext): CommandHandlerMap {[Commands.ConfirmBuiltinUpdate]: async (payload: unknown) => {const parsed = builtinStagingPayloadSchema.parse(payload)+ const stagedPluginId = builtinUpdater.pluginIdForStaging(parsed.stagingId)+ if (!stagedPluginId) {+ throw new AppError(+ ErrorCode.PluginManifestInvalid,+ 'plugin.update.builtin_staging_not_found'+ )+ }+ const wasActive = pluginHost.isActive(stagedPluginId)const { pluginId } = await builtinUpdater.commit(parsed.stagingId)- const restartRequired = await hotSwapBuiltin(pluginId)+ const restartRequired = await reactivateBuiltin(pluginId, wasActive)eventBus.emit(Events.PluginInstalled, { pluginId })return { ok: true, restartRequired }},@@ -1566,18 +1555,12 @@ export function buildCommandHandlers(ctx: CommandContext): CommandHandlerMap {[Commands.RevertBuiltinToBundled]: async (payload: unknown) => {const parsed = builtinUpdatePayloadSchema.parse(payload)- // Sample activity BEFORE deactivating — hotSwapBuiltin's own sampling- // would otherwise always see this handler's deactivate and think the- // plugin was never active, so revert never reactivates it.- const wasActive =- pluginRegistry.list().find((p) => p.id === parsed.pluginId)?.status ===- 'active'- await pluginHost.deactivate(parsed.pluginId).catch(() => {})- await rm(path.join(overlayDir, parsed.pluginId), {- recursive: true,- force: true,- })- const restartRequired = await hotSwapBuiltin(parsed.pluginId, wasActive)+ const wasActive = pluginHost.isActive(parsed.pluginId)+ await builtinUpdater.revert(parsed.pluginId)+ const restartRequired = await reactivateBuiltin(+ parsed.pluginId,+ wasActive+ )eventBus.emit(Events.PluginInstalled, { pluginId: parsed.pluginId })return { ok: true, restartRequired }},diff --git a/src/main/main-process-work-coordinator.test.ts b/src/main/main-process-work-coordinator.test.tsindex f2d64509..14b773cc 100644--- a/src/main/main-process-work-coordinator.test.ts+++ b/src/main/main-process-work-coordinator.test.ts@@ -337,4 +337,40 @@ describe('MainProcessWorkCoordinator', () => {expect(sessionDrain).toBeGreaterThan(trackerDrain)expect(engineStop).toBeGreaterThan(trackerDrain)})++ it('shares live ffmpeg detection and command schemas across the Electron plugin runtime', () => {+ const source = readFileSync(+ path.resolve(process.cwd(), 'src/main/index.ts'),+ 'utf8'+ )+ const detector = source.indexOf('const detectPluginFfmpeg = async () =>')+ const host = source.indexOf('const activePluginHost = new PluginHost({')+ const hostDetector = source.indexOf(+ 'ffmpegDetect: detectPluginFfmpeg',+ host+ )+ const commandSystem = source.indexOf(+ 'const commandSystem = wireCommandSystem({',+ host+ )+ const installer = source.indexOf(+ 'const pluginInstaller = new PluginInstaller({',+ commandSystem+ )+ const schemaCache = source.indexOf(+ 'schemaCache: commandSystem.schemas',+ installer+ )+ const installerDetector = source.indexOf(+ 'ffmpegDetect: detectPluginFfmpeg',+ installer+ )++ expect(detector).toBeGreaterThan(-1)+ expect(hostDetector).toBeGreaterThan(host)+ expect(commandSystem).toBeGreaterThan(hostDetector)+ expect(installer).toBeGreaterThan(commandSystem)+ expect(schemaCache).toBeGreaterThan(installer)+ expect(installerDetector).toBeGreaterThan(schemaCache)+ })})diff --git a/src/main/plugin/hook-runtime-assembly.test.ts b/src/main/plugin/hook-runtime-assembly.test.tsnew file mode 100644index 00000000..bbc80b99--- /dev/null+++ b/src/main/plugin/hook-runtime-assembly.test.ts@@ -0,0 +1,55 @@+import { readFileSync } from 'node:fs'+import path from 'node:path'+import { describe, expect, it } from 'vitest'++function mainSource(): string {+ return readFileSync(path.resolve(process.cwd(), 'src/main/index.ts'), 'utf8')+}++describe('Electron plugin Hook runtime assembly', () => {+ it('injects every Hook service from one shared runtime instance', () => {+ const source = mainSource()+ expect(source).toContain(+ 'const pluginRuntime = await createPluginRuntime({'+ )+ expect(source).toContain('hookAuditLog = pluginRuntime.auditLog')+ expect(source).toContain('hookOrchestrator = pluginRuntime.orchestrator')+ expect(source).toContain('pluginHookRuntime = pluginRuntime.hooks')+ expect(source).toContain(+ 'finalizeFilesystemAdapter = pluginRuntime.finalizeFilesystem'+ )+ expect(source).toContain('durableFinalizeRuntime = pluginRuntime.finalize')+ })++ it('recovers and drains before opening producers', () => {+ const source = mainSource()+ const recover = source.indexOf('await pluginStartup.recoverFinalize(')+ const tasks = source.indexOf('pluginStartup.markTasksRecovered()')+ const drain = source.indexOf('await pluginStartup.drainBeforeProducers({')+ const scheduler = source.indexOf(+ 'postDeliveryLoop = activePluginHookRuntime.scheduler'+ )+ const producers = source.indexOf('pluginStartup.openProducers(() => {')++ expect(recover).toBeGreaterThan(-1)+ expect(recover).toBeLessThan(tasks)+ expect(tasks).toBeLessThan(drain)+ expect(drain).toBeLessThan(scheduler)+ expect(scheduler).toBeLessThan(producers)+ })++ it('aborts and drains post delivery before shutting down the Host', () => {+ const source = mainSource()+ const cleanup = source.slice(+ source.indexOf('cleanupPromise = (async () => {'),+ source.indexOf("await safely('magnet'")+ )+ const abort = cleanup.indexOf('postDeliveryAbortController?.abort()')+ const drain = cleanup.indexOf('await postDeliveryLoop')+ const shutdown = cleanup.indexOf('await host?.shutdown()')++ expect(abort).toBeGreaterThan(-1)+ expect(abort).toBeLessThan(drain)+ expect(drain).toBeLessThan(shutdown)+ })+})diff --git a/src/server/index.ts b/src/server/index.tsindex 1ef8ec15..7d100701 100644--- a/src/server/index.ts+++ b/src/server/index.ts@@ -52,6 +52,7 @@ import { createNotificationOccurrenceConsumer } from '@core/notifications/occurrimport { projectActiveToLegacy } from '@core/plugin/capabilities/ffmpeg-detect'import { wireCommandSystem } from '@core/plugin/commands/wire'import { pluginSecretFields } from '@core/plugin/configuration-schema'+import { resolveFinalizeSidecarPath } from '@core/plugin/finalize/sidecar-path'import { GrantsManager } from '@core/plugin/grants/grants-manager'import { ActivationDispatcher } from '@core/plugin/host/activation-dispatcher'import {@@ -61,6 +62,9 @@ import {import { PluginInstaller } from '@core/plugin/install/plugin-installer'import { PluginRegistry } from '@core/plugin/plugin-registry'import { RegistryClient } from '@core/plugin/registry/registry-client'+import type { PluginHookRuntime } from '@core/plugin/runtime/plugin-hook-runtime'+import { createPluginRuntime } from '@core/plugin/runtime/runtime-factory'+import { PluginRuntimeStartupCoordinator } from '@core/plugin/runtime/startup-coordinator'import { PluginStateStore } from '@core/plugin/state/plugin-state-store'import { AppliedDownloadProxyPolicy } from '@core/proxy/applied-download-proxy-policy'import { ProxyBridgeManager } from '@core/proxy/proxy-bridge-manager'@@ -79,7 +83,10 @@ import {reAddTask as reAddTaskAction,resumeTask as resumeTaskAction,} from '@core/task/actions'-import { finalizeTask } from '@core/task/actions/finalize-task'+import {+ type FinalizeArtifactCommitRequest,+ finalizeTask,+} from '@core/task/actions/finalize-task'import { removeTask } from '@core/task/actions/remove-task'import { commitPolledTerminalTransition } from '@core/task/actions/shared'import { handleCreateTask } from '@core/task/create-task-handler'@@ -113,6 +120,7 @@ import {import { resolveSupportedLocale } from '@shared/constants/locales'import { Events } from '@shared/protocol/events'import { REGISTRY_CACHE_FILENAME } from '@shared/schemas/registry'+import { EngineState } from '@shared/types/engine'import type { AppSettings } from '@shared/types/settings'import type { DownloadTask } from '@shared/types/task'import { TaskType } from '@shared/types/task'@@ -163,10 +171,7 @@ import {runServerStartup,type ServerShutdownActions,} from './shutdown'-import {- createServerPersistTask,- createServerPersistTaskWithOccurrence,-} from './task-persistence'+import { createServerPersistTask } from './task-persistence'let requestActiveServerExit: ((code: number) => Promise<void>) | null = null@@ -523,6 +528,12 @@ async function main() {await localeCoordinator.reconcile()if (!shellAsyncWork.isAccepting()) returnconst serverDir = path.dirname(fileURLToPath(import.meta.url))+ const detectServerFfmpeg = makeServerFfmpegDetect({+ settingsManager,+ userDataDir: platform.userDataDir,+ })+ const detectPluginFfmpeg = async () =>+ projectActiveToLegacy(await detectServerFfmpeg())const pluginHost = new PluginHost({registry: pluginRegistry,stateStore: pluginStateStore,@@ -535,17 +546,15 @@ async function main() {runtime: 'server',hostLanguage,pluginGrants,+ ffmpegDetect: detectPluginFfmpeg,idleDisposeMs: parsePluginIdleDisposeMs(process.env.MOTRIX_PLUGIN_IDLE_DISPOSE_MS),})shutdownActions.drainPluginHost = () => pluginHost.shutdown()- eventBus.on(Events.PluginGrantsChanged, (...args: unknown[]) => {- const payload = args[0] as { pluginId?: string } | undefined- if (payload?.pluginId && pluginHost.isActive(payload.pluginId)) {- void pluginHost.deactivate(payload.pluginId)- }- })+ pluginGrants.bindPolicyBarrier(+ pluginHost.applyPolicyMutation.bind(pluginHost)+ )// Wire Plan D: cross-plugin command safeguards (schema cache + rate limit// + caller throttle + chain depth + audit) and bind the invoker to the// capability host. Must run AFTER registry.discover() so manifest schemas@@ -568,13 +577,7 @@ async function main() {capabilityHost: pluginCapHost,hostVersion,schemaCache: commandSystem.schemas,- ffmpegDetect: async () =>- projectActiveToLegacy(- await makeServerFfmpegDetect({- settingsManager,- userDataDir: platform.userDataDir,- })()- ),+ ffmpegDetect: detectPluginFfmpeg,})const pluginUploadStore = new PluginUploadStore(path.join(pluginsDir, '_uploads')@@ -677,8 +680,68 @@ async function main() {)shutdownActions.drainSession = () => sessionManager.stopAndDrain()const persistTask = createServerPersistTask(taskManager, sessionManager)- const persistTaskWithOccurrence =- createServerPersistTaskWithOccurrence(sessionManager)+ let pluginHookRuntime: PluginHookRuntime | undefined+ const persistTaskWithOccurrence = (+ task: DownloadTask,+ occurrence: Parameters<SessionManager['persistTaskWithOccurrence']>[1]+ ) =>+ occurrence && pluginHookRuntime+ ? pluginHookRuntime.persistTerminal(task, occurrence)+ : sessionManager.persistTaskWithOccurrence(task, occurrence)+ const pluginRuntime = await createPluginRuntime({+ activation: pluginActivation,+ registry: pluginRegistry,+ grants: pluginGrants,+ host: pluginHost,+ installer: pluginInstaller,+ capabilityHost: pluginCapHost,+ repository: db.durablePostDeliveries,+ persistTerminal: (task, occurrence, input) =>+ sessionManager.persistTerminalHookBoundary(task, occurrence, input),+ database: db.database,+ session: sessionManager,+ pluginsDir,+ auditLogPath: path.join(+ platform.userDataDir,+ 'plugin-audit',+ 'hooks.ndjson'+ ),+ finalizeSidecarPath: resolveFinalizeSidecarPath({+ extraResourceDir: platform.extraResourceDir,+ isDev: platform.isDev,+ platform: process.platform,+ arch: process.arch,+ runtimeRoot: path.resolve(serverDir, '..', '..'),+ }),+ acquireTaskMutationLease: (taskId) =>+ taskInspectorActivityRuntime.acquireTaskMutationLease(taskId),+ assertEngineQuiesced: async (taskId) => {+ if (supervisor.getState() !== EngineState.Ready) return+ const task = taskManager.getById(taskId)+ if (!task) return+ const active = await adapter.listActiveAndWaiting()+ if (active.some((entry) => entry.gid === task.engineTaskId)) {+ throw new Error(`engine writer is still active for task ${taskId}`)+ }+ },+ })+ pluginHookRuntime = pluginRuntime.hooks+ const hookAuditLog = pluginRuntime.auditLog+ const hookOrchestrator = pluginRuntime.orchestrator+ const postDeliveryAbortController = new AbortController()+ let postDeliveryLoop: Promise<void> | undefined+ const finalizeFilesystemAdapter = pluginRuntime.finalizeFilesystem+ const durableFinalizeRuntime = pluginRuntime.finalize+ shutdownActions.drainPluginHost = async () => {+ postDeliveryAbortController.abort()+ await postDeliveryLoop+ try {+ await hookAuditLog.drain()+ } finally {+ await pluginHost.shutdown()+ }+ }+ shutdownActions.disposeFinalizeFs = () => finalizeFilesystemAdapter.dispose()// ─── Speed Limit Controller ───────────────────────────────────// Constructed immediately after supervisor so setEffectiveLimitsProvider@@ -1002,12 +1065,13 @@ async function main() {pluginInstallService,pluginGrants,capabilityHost: pluginCapHost,- userDataDir: platform.userDataDir,- pluginsDir,pluginActivation,+ hookAuditLog,+ hookOrchestrator,magnetTracker,activityRecorder: taskActivityService,persistTask,+ persistTaskWithPluginMetadata: pluginRuntime.persistTaskWithPluginMetadata,persistTaskWithOccurrence,occurrenceDispatcher,recordTransition: (input) =>@@ -1249,13 +1313,6 @@ async function main() {log,})- try {- await supervisor.start(platform.aria2BinaryPath)- } catch (err) {- log.error({ err }, 'engine start failed')- }- if (!shellAsyncWork.isAccepting()) return-// Discrete lifecycle transitions (including terminal media states) must be// durable before their coordinator resolves. save() is a serialized,// rejecting hard barrier, matching the Electron shell contract.@@ -1305,6 +1362,8 @@ async function main() {},eventBus,activityRecorder: taskActivityService,+ orchestrator: hookOrchestrator,+ auditLog: hookAuditLog,recordTransition: (input: RuntimeTransitionInput) =>taskInspectorActivityRuntime.recordTransition(input),runTaskMutation: <T>(@@ -1312,8 +1371,23 @@ async function main() {operation: () => Promise<T>) => taskInspectorActivityRuntime.runTaskMutation(taskIds, operation),log,+ commitFinalizedArtifact: async (input: FinalizeArtifactCommitRequest) => {+ const post =+ input.occurrence?.type === 'terminal'+ ? await pluginHookRuntime.prepareTerminal(+ input.task,+ input.occurrence+ )+ : { postDeliveries: [], beforeCommit: () => undefined }+ await durableFinalizeRuntime.commit({+ ...input,+ postDeliveries: post.postDeliveries,+ beforeCommit: post.beforeCommit,+ })+ },})+ const pluginStartup = new PluginRuntimeStartupCoordinator()try {// ─── occurrence consumer registration ─────────────────// Runs BEFORE restore()/recoverOnStartup(): both of those commit@@ -1342,6 +1416,19 @@ async function main() {dnsFallbackConsumer.consume)+ await pluginStartup.recoverFinalize(() =>+ durableFinalizeRuntime.recoverAll()+ )++ try {+ await pluginStartup.startEngine(() =>+ supervisor.start(platform.aria2BinaryPath)+ )+ } catch (err) {+ log.error({ err }, 'engine start failed')+ }+ if (!shellAsyncWork.isAccepting()) return+await appliedDownloadProxyPolicy.runWithSnapshot(async (_snapshot, lease) => {await sessionManager.restore(lease.assertCurrent)@@ -1407,67 +1494,81 @@ async function main() {})}- adapter.onBtDownloadComplete((engineTaskId) => {- runShellAsyncWork('BT finalize', async () => {- const task = taskManager.getByEngineTaskId(engineTaskId)- if (!task) return- if (shouldSkipEngineCompletionFinalize(task)) return- try {- await finalizeTask(task.id, buildFinalizeDeps())- } catch (err) {- log.error({ err, taskId: task.id }, 'finalizeTask failed (BT)')- }- })+ pluginStartup.markTasksRecovered()+ await pluginStartup.drainBeforeProducers({+ drainOccurrences: () => occurrenceDispatcher.drainAtStartup(),+ recoverAndDrainPostDeliveries: () =>+ pluginHookRuntime.recoverAndDrain(),})-- adapter.onDownloadComplete((engineTaskId) => {- runShellAsyncWork('HTTP finalize', async () => {- const task = taskManager.getByEngineTaskId(engineTaskId)- if (!task) return- if (task.type !== TaskType.Http && task.type !== TaskType.Ftp) {- return- }- if (shouldSkipEngineCompletionFinalize(task)) return- try {- await finalizeTask(task.id, buildFinalizeDeps())- } catch (err) {- log.error({ err, taskId: task.id }, 'finalizeTask failed (HTTP)')+ postDeliveryLoop = pluginHookRuntime.scheduler+ .start(postDeliveryAbortController.signal)+ .catch((err) => {+ if (!postDeliveryAbortController.signal.aborted) {+ log.error({ err }, 'plugin post-delivery scheduler stopped')}})- })- sessionManager.startAutoSave(engineSettings.sessionSaveInterval * 1000)+ pluginStartup.openProducers(() => {+ adapter.onBtDownloadComplete((engineTaskId) => {+ runShellAsyncWork('BT finalize', async () => {+ const task = taskManager.getByEngineTaskId(engineTaskId)+ if (!task) return+ if (shouldSkipEngineCompletionFinalize(task)) return+ try {+ await finalizeTask(task.id, buildFinalizeDeps())+ } catch (err) {+ log.error({ err, taskId: task.id }, 'finalizeTask failed (BT)')+ }+ })+ })- pollingNotificationUnsubscribers.push(- rpcClient.onDownloadStart((event) => {- pollingScheduler.handleNotification('aria2.onDownloadStart', event)- }),- rpcClient.onDownloadPause((event) => {- pollingScheduler.handleNotification('aria2.onDownloadPause', event)- }),- rpcClient.onDownloadComplete((event) => {- pollingScheduler.handleNotification('aria2.onDownloadComplete', event)- }),- rpcClient.onDownloadStop((event) => {- pollingScheduler.handleNotification('aria2.onDownloadStop', event)- }),- rpcClient.onDownloadError((event) => {- pollingScheduler.handleNotification('aria2.onDownloadError', event)- }),- rpcClient.onBtDownloadComplete((event) => {- pollingScheduler.handleNotification(- 'aria2.onBtDownloadComplete',- event- )+ adapter.onDownloadComplete((engineTaskId) => {+ runShellAsyncWork('HTTP finalize', async () => {+ const task = taskManager.getByEngineTaskId(engineTaskId)+ if (!task) return+ if (task.type !== TaskType.Http && task.type !== TaskType.Ftp) {+ return+ }+ if (shouldSkipEngineCompletionFinalize(task)) return+ try {+ await finalizeTask(task.id, buildFinalizeDeps())+ } catch (err) {+ log.error({ err, taskId: task.id }, 'finalizeTask failed (HTTP)')+ }+ })})- )- // Deliver anything the outbox still holds: rows a prior run persisted- // but never dispatched, plus everything restore()/recovery just wrote- // through SessionManager (which has no dispatcher of its own).- await occurrenceDispatcher.drainAtStartup()+ sessionManager.startAutoSave(engineSettings.sessionSaveInterval * 1000)- pollingScheduler.start()+ pollingNotificationUnsubscribers.push(+ rpcClient.onDownloadStart((event) => {+ pollingScheduler.handleNotification('aria2.onDownloadStart', event)+ }),+ rpcClient.onDownloadPause((event) => {+ pollingScheduler.handleNotification('aria2.onDownloadPause', event)+ }),+ rpcClient.onDownloadComplete((event) => {+ pollingScheduler.handleNotification(+ 'aria2.onDownloadComplete',+ event+ )+ }),+ rpcClient.onDownloadStop((event) => {+ pollingScheduler.handleNotification('aria2.onDownloadStop', event)+ }),+ rpcClient.onDownloadError((event) => {+ pollingScheduler.handleNotification('aria2.onDownloadError', event)+ }),+ rpcClient.onBtDownloadComplete((event) => {+ pollingScheduler.handleNotification(+ 'aria2.onBtDownloadComplete',+ event+ )+ })+ )++ pollingScheduler.start()+ })} catch (err) {if (!shellAsyncWork.isAccepting()) returnlog.error({ err }, 'post-engine setup failed')@@ -1584,6 +1685,8 @@ async function main() {publishTaskUpdate,activityRecorder: taskActivityService,persistTask,+ persistTaskWithPluginMetadata:+ pluginRuntime.persistTaskWithPluginMetadata,parentTaskCreated: (task: DownloadTask,persistParent: () => void | Promise<void>diff --git a/src/server/ipc/commands.test.ts b/src/server/ipc/commands.test.tsindex db9ee305..ec64975b 100644--- a/src/server/ipc/commands.test.ts+++ b/src/server/ipc/commands.test.ts@@ -47,6 +47,8 @@ const PROXY_OFF = {const PROXY_ON = { ...PROXY_OFF, enabled: true, host: 'p.example', port: 80 }function makeFakeCtx() {+ const setEnabled = vi.fn()+ const refreshState = vi.fn()return {supervisor: {stop: vi.fn().mockResolvedValue(undefined),@@ -111,7 +113,7 @@ function makeFakeCtx() {),},pluginRegistry: {- refreshState: vi.fn(),+ refreshState,list: vi.fn(() => []),} as unknown as PluginRegistry,registryClient: {@@ -120,11 +122,15 @@ function makeFakeCtx() {} as unknown as RegistryClient,hostVersion: '2.0',pluginStateStore: {- setEnabled: vi.fn(),+ setEnabled,get: vi.fn().mockReturnValue(undefined),} as unknown as PluginStateStore,pluginHost: {deactivate: vi.fn().mockResolvedValue(undefined),+ disable: vi.fn(async (id: string) => {+ setEnabled(id, false)+ refreshState(id)+ }),} as unknown as PluginHost,pluginInstaller: {commit: vi.fn(),@@ -1146,7 +1152,12 @@ describe('server plugin enable/disable commands', () => {await handlers[Commands.DisablePlugin]?.('test-plugin')- expect(ctx.pluginHost.deactivate).toHaveBeenCalledWith('test-plugin')+ expect(ctx.pluginHost.disable).toHaveBeenCalledWith(+ 'test-plugin',+ 'plugin.user_disabled',+ 'disabled',+ { recordError: false }+ )expect(ctx.eventBus.emit).toHaveBeenCalledWith(Events.PluginStatusChanged,expect.objectContaining({ id: 'test-plugin', enabled: false })diff --git a/src/server/ipc/commands.ts b/src/server/ipc/commands.tsindex cf8a3252..276a40d2 100644--- a/src/server/ipc/commands.ts+++ b/src/server/ipc/commands.ts@@ -1,4 +1,3 @@-import path from 'node:path'import type { Aria2RpcClient } from '@core/engine/aria2/aria2-rpc-client'import type { DnsFallbackConsumer } from '@core/engine/aria2/dns-fallback'import { dnsModeToAsyncDns } from '@core/engine/aria2/dns-fallback'@@ -14,8 +13,8 @@ import type { NotificationCenter } from '@core/notifications/notification-centerimport type { CapabilityHost } from '@core/plugin/capabilities/interface'import { pluginSecretFields } from '@core/plugin/configuration-schema'import type { GrantsManager } from '@core/plugin/grants/grants-manager'-import { HookAuditLog } from '@core/plugin/hooks/audit-log'-import { HookOrchestrator } from '@core/plugin/hooks/hook-orchestrator'+import type { HookAuditLog } from '@core/plugin/hooks/audit-log'+import type { HookOrchestrator } from '@core/plugin/hooks/hook-orchestrator'import type { ActivationDispatcher } from '@core/plugin/host/activation-dispatcher'import type { PluginHost } from '@core/plugin/host/plugin-host'import type { PluginInstaller } from '@core/plugin/install/plugin-installer'@@ -126,12 +125,15 @@ export interface ServerCommandContext {pluginInstallService: ServerPluginInstallServicepluginGrants: GrantsManagercapabilityHost: CapabilityHost- userDataDir: string- pluginsDir: stringpluginActivation: ActivationDispatcher+ hookAuditLog?: HookAuditLog+ hookOrchestrator?: HookOrchestratormagnetTracker: MagnetTrackeractivityRecorder: TaskActivityRecorderpersistTask?: NonNullable<TaskActionDeps['persistTask']>+ persistTaskWithPluginMetadata?: NonNullable<+ CreateTaskDeps['persistTaskWithPluginMetadata']+ >/*** Persist a task and (when non-null) its terminal occurrence in a single* durable transaction — used INSTEAD OF `persistTask` whenever a status@@ -188,12 +190,13 @@ export function buildServerCommandHandlers(pluginInstallService,pluginGrants,capabilityHost,- userDataDir,- pluginsDir,pluginActivation,+ hookAuditLog,+ hookOrchestrator,magnetTracker,activityRecorder,persistTask: injectedPersistTask,+ persistTaskWithPluginMetadata,persistTaskWithOccurrence,occurrenceDispatcher,recordTransition,@@ -221,22 +224,6 @@ export function buildServerCommandHandlers(await persistParent()})- // Plan C plugin-hook plumbing: instantiate the orchestrator + audit log- // once and feed them into createDeps so handleCreateTask's beforeCreate- // chain fires. Without this, every plugin's beforeCreate hook is silently- // skipped and the user-supplied URL is dispatched to aria2 unchanged.- const hookAuditLog = new HookAuditLog(- path.join(userDataDir, 'plugin-audit', 'hooks.ndjson')- )- const hookOrchestrator = new HookOrchestrator({- host: pluginHost,- hookTimeoutMs: { series: 10_000, parallel: 30_000 },- pluginsDir,- pluginStorageRootFor: (pluginId) =>- path.join(pluginsDir, pluginId, 'storage'),- auditLog: hookAuditLog,- })-const createDeps: CreateTaskDeps = {adapter,directResourceValidator: new DirectResourceValidatorService(),@@ -253,6 +240,7 @@ export function buildServerCommandHandlers(auditLog: hookAuditLog,db: motrixDatabase.database,persistTask,+ persistTaskWithPluginMetadata,parentTaskCreated,rollbackTaskCreation: (taskId: string) =>taskPersistence.runExclusivePersistence(() =>@@ -806,9 +794,9 @@ export function buildServerCommandHandlers(},[Commands.DisablePlugin]: async (id: string) => {- await pluginHost.deactivate(id)- pluginStateStore.setEnabled(id, false)- pluginRegistry.refreshState(id)+ await pluginHost.disable(id, 'plugin.user_disabled', 'disabled', {+ recordError: false,+ })const state = pluginStateStore.get(id)eventBus.emit(Events.PluginStatusChanged, {id,diff --git a/src/server/plugin/hook-runtime-assembly.test.ts b/src/server/plugin/hook-runtime-assembly.test.tsnew file mode 100644index 00000000..7cf261ac--- /dev/null+++ b/src/server/plugin/hook-runtime-assembly.test.ts@@ -0,0 +1,64 @@+import { readFileSync } from 'node:fs'+import path from 'node:path'+import { describe, expect, it } from 'vitest'++function serverSource(): string {+ return readFileSync(+ path.resolve(process.cwd(), 'src/server/index.ts'),+ 'utf8'+ )+}++describe('Server plugin Hook runtime assembly', () => {+ it('injects every Hook service from one shared runtime instance', () => {+ const source = serverSource()+ expect(source).toContain(+ 'const pluginRuntime = await createPluginRuntime({'+ )+ expect(source).toContain('pluginHookRuntime = pluginRuntime.hooks')+ expect(source).toContain('const hookAuditLog = pluginRuntime.auditLog')+ expect(source).toContain(+ 'const hookOrchestrator = pluginRuntime.orchestrator'+ )+ expect(source).toContain(+ 'const finalizeFilesystemAdapter = pluginRuntime.finalizeFilesystem'+ )+ expect(source).toContain(+ 'const durableFinalizeRuntime = pluginRuntime.finalize'+ )+ })++ it('recovers and drains before opening producers', () => {+ const source = serverSource()+ const recover = source.indexOf('await pluginStartup.recoverFinalize(')+ const tasks = source.indexOf('pluginStartup.markTasksRecovered()')+ const drain = source.indexOf('await pluginStartup.drainBeforeProducers({')+ const scheduler = source.indexOf(+ 'postDeliveryLoop = pluginHookRuntime.scheduler'+ )+ const producers = source.indexOf('pluginStartup.openProducers(() => {')++ expect(recover).toBeGreaterThan(-1)+ expect(recover).toBeLessThan(tasks)+ expect(tasks).toBeLessThan(drain)+ expect(drain).toBeLessThan(scheduler)+ expect(scheduler).toBeLessThan(producers)+ })++ it('aborts and drains post delivery before shutting down the Host', () => {+ const source = serverSource()+ const shutdown = source.slice(+ source.indexOf('shutdownActions.drainPluginHost = async () => {'),+ source.indexOf(+ 'shutdownActions.disposeFinalizeFs = () => finalizeFilesystemAdapter.dispose()'+ )+ )+ const abort = shutdown.indexOf('postDeliveryAbortController.abort()')+ const drain = shutdown.indexOf('await postDeliveryLoop')+ const host = shutdown.indexOf('await pluginHost.shutdown()')++ expect(abort).toBeGreaterThan(-1)+ expect(abort).toBeLessThan(drain)+ expect(drain).toBeLessThan(host)+ })+})diff --git a/src/server/shutdown.test.ts b/src/server/shutdown.test.tsindex 0684cf87..e5ac087c 100644--- a/src/server/shutdown.test.ts+++ b/src/server/shutdown.test.ts@@ -354,6 +354,33 @@ describe('server lifecycle production wiring', () => {expect(samples).toBeGreaterThan(publish)})+ it('shares one live ffmpeg detector across the Server plugin Host and Installer', () => {+ const source = readFileSync(+ path.resolve(process.cwd(), 'src/server/index.ts'),+ 'utf8'+ )+ const detector = source.indexOf('const detectPluginFfmpeg = async () =>')+ const host = source.indexOf('const pluginHost = new PluginHost({', detector)+ const hostDetector = source.indexOf(+ 'ffmpegDetect: detectPluginFfmpeg',+ host+ )+ const installer = source.indexOf(+ 'const pluginInstaller = new PluginInstaller({',+ hostDetector+ )+ const installerDetector = source.indexOf(+ 'ffmpegDetect: detectPluginFfmpeg',+ installer+ )++ expect(detector).toBeGreaterThan(-1)+ expect(host).toBeGreaterThan(detector)+ expect(hostDetector).toBeGreaterThan(host)+ expect(installer).toBeGreaterThan(hostDetector)+ expect(installerDetector).toBeGreaterThan(installer)+ })+it('constructs shutdown before early acquisitions, producers, or HTTP ingress', () => {const source = readFileSync(path.resolve(process.cwd(), 'src/server/index.ts'),diff --git a/src/server/shutdown.ts b/src/server/shutdown.tsindex a705f9af..b80975fc 100644--- a/src/server/shutdown.ts+++ b/src/server/shutdown.ts@@ -17,6 +17,7 @@ export interface ServerShutdownActions {drainMagnet: ShutdownActionstopGeoIP: ShutdownActiondrainSession: ShutdownAction+ disposeFinalizeFs?: ShutdownActiondisposeActivity: ShutdownActiondisposeTransferStats: ShutdownActiondisposeTracker: ShutdownAction@@ -86,6 +87,9 @@ export function createServerShutdown(safely('session', actions.drainSession),safely('engine', actions.stopEngine),])+ if (actions.disposeFinalizeFs) {+ await safely('finalize-filesystem', actions.disposeFinalizeFs)+ }await safely('shell-async-work', () => shellDrain)await safely('task-inspector-activity', actions.disposeActivity)await safely('transfer-stats', actions.disposeTransferStats)diff --git a/src/shared/schemas/index.ts b/src/shared/schemas/index.tsindex f3cdd15e..c3321968 100644--- a/src/shared/schemas/index.ts+++ b/src/shared/schemas/index.ts@@ -6,6 +6,7 @@ export * from './geoip-settings'export * from './locale'export * from './media-settings'export * from './nat-settings'+export * from './plugin-hooks'export * from './proxy-settings'export * from './registry'export * from './task-inspector-activity'diff --git a/src/shared/schemas/plugin-hooks.test.ts b/src/shared/schemas/plugin-hooks.test.tsnew file mode 100644index 00000000..390cc3e8--- /dev/null+++ b/src/shared/schemas/plugin-hooks.test.ts@@ -0,0 +1,313 @@+import { describe, expect, it } from 'vitest'+import {+ AfterCompleteContextV1Schema,+ BeforeCreateHttpContextV1Schema,+ BeforeFinalizeContextV1Schema,+ CapabilityCallMessageSchema,+ CapabilityResponseMessageSchema,+ DeliveryEnvelopeV1Schema,+ HOOK_DTO_LIMITS,+ HookEffectsV1Schema,+ HookEnterMessageSchema,+ HookJsonValueSchema,+ HookMetadataOperationSchema,+ HookMetadataSnapshotSchema,+ PluginTaskSnapshotV1Schema,+} from './plugin-hooks'++const INVOCATION = {+ invocationId: 'invocation-1',+ callChainId: 'chain-1',+ permissionGeneration: 7,+} as const++const TASK = {+ schemaVersion: 1,+ id: 'task-1',+ name: 'archive.zip',+ type: 'http',+ kind: 'direct',+ status: 'completed',+ filePath: '/downloads/archive.zip',+ saveDir: '/downloads',+ filename: 'archive.zip',+ progress: 100,+ totalBytes: 10,+ downloadedBytes: 10,+ uploadedBytes: 0,+ sizeWhenDone: 10,+ fileCount: 1,+ createdAt: 1,+ updatedAt: 2,+ finishedAt: 3,+ category: null,+ infoHash: null,+ error: null,+} as const++const BEFORE_CREATE = {+ schemaVersion: 1,+ invocationId: INVOCATION.invocationId,+ taskId: TASK.id,+ sourceUrl: 'https://example.test/archive.zip',+ createdBy: 'user',+ requestedAt: 1,+ type: 'http',+ uris: ['https://example.test/archive.zip'],+ saveDir: '/downloads',+ headers: [{ name: 'Accept', value: '*/*' }],+} as const++describe('plugin Hook schemas', () => {+ it('accepts complete versioned task and delivery DTOs', () => {+ expect(PluginTaskSnapshotV1Schema.parse(TASK)).toEqual(TASK)+ expect(+ DeliveryEnvelopeV1Schema.parse({+ schemaVersion: 1,+ id: 'delivery-1',+ occurrenceId: 'occurrence-1',+ occurredAt: 3,+ })+ ).toBeTruthy()+ })++ it('rejects internal task fields and incomplete public error descriptors', () => {+ expect(+ PluginTaskSnapshotV1Schema.safeParse({+ ...TASK,+ engineTaskId: 'must-not-cross-the-boundary',+ }).success+ ).toBe(false)+ expect(+ PluginTaskSnapshotV1Schema.safeParse({+ ...TASK,+ error: { code: 'download.failed', message: 'failed' },+ }).success+ ).toBe(false)+ })++ it('uses exact post-Hook DTOs with a stable delivery id', () => {+ const dto = {+ schemaVersion: 1,+ invocationId: INVOCATION.invocationId,+ taskId: TASK.id,+ task: TASK,+ filePath: TASK.filePath,+ delivery: {+ schemaVersion: 1,+ id: 'delivery-1',+ occurrenceId: 'occurrence-1',+ occurredAt: 3,+ },+ }+ expect(AfterCompleteContextV1Schema.parse(dto)).toEqual(dto)+ expect(+ AfterCompleteContextV1Schema.safeParse({ ...dto, attempt: 2 }).success+ ).toBe(false)+ })++ it('accepts byte limits inclusively and rejects the next byte', () => {+ const keyAtLimit = 'k'.repeat(HOOK_DTO_LIMITS.metadataKeyBytes)+ expect(+ HookMetadataOperationSchema.safeParse({+ op: 'set',+ key: keyAtLimit,+ value: true,+ }).success+ ).toBe(true)+ expect(+ HookMetadataOperationSchema.safeParse({+ op: 'set',+ key: `${keyAtLimit}x`,+ value: true,+ }).success+ ).toBe(false)+ })++ it('rejects non-finite, cyclic, oversized, and over-deep JSON', () => {+ expect(HookJsonValueSchema.safeParse(Number.NaN).success).toBe(false)++ const cyclic: Record<string, unknown> = {}+ cyclic.self = cyclic+ expect(HookJsonValueSchema.safeParse(cyclic).success).toBe(false)++ let deep: unknown = 'leaf'+ for (let index = 0; index <= HOOK_DTO_LIMITS.jsonDepth; index += 1) {+ deep = { child: deep }+ }+ expect(HookJsonValueSchema.safeParse(deep).success).toBe(false)++ expect(+ HookMetadataOperationSchema.safeParse({+ op: 'set',+ key: 'large',+ value: 'x'.repeat(HOOK_DTO_LIMITS.metadataValueBytes),+ }).success+ ).toBe(false)+ })++ it('bounds metadata snapshots by entries and encoded bytes', () => {+ const tooMany = Object.fromEntries(+ Array.from(+ { length: HOOK_DTO_LIMITS.metadataEntries + 1 },+ (_, index) => [`k${index}`, index]+ )+ )+ expect(HookMetadataSnapshotSchema.safeParse(tooMany).success).toBe(false)++ const tooLarge = Object.fromEntries(+ Array.from({ length: 20 }, (_, index) => [+ `k${index}`,+ 'x'.repeat(60 * 1024),+ ])+ )+ expect(HookMetadataSnapshotSchema.safeParse(tooLarge).success).toBe(false)+ })++ it('validates the complete Hook envelope and rejects ID mismatch or extras', () => {+ const enter = {+ type: 'event',+ event: 'hookEnter',+ hook: 'beforeCreate',+ ...INVOCATION,+ taskId: TASK.id,+ ctxPayload: BEFORE_CREATE,+ metadataSnapshot: {},+ }+ expect(HookEnterMessageSchema.safeParse(enter).success).toBe(true)+ expect(+ HookEnterMessageSchema.safeParse({+ ...enter,+ ctxPayload: { ...BEFORE_CREATE, invocationId: 'wrong' },+ }).success+ ).toBe(false)+ expect(+ HookEnterMessageSchema.safeParse({ ...enter, untrusted: true }).success+ ).toBe(false)+ })++ it('requires an invocation scope to be complete when a call is scoped', () => {+ const call = {+ type: 'call',+ id: 1,+ capability: 'http',+ method: 'get',+ args: ['https://example.test'],+ }+ expect(CapabilityCallMessageSchema.safeParse(call).success).toBe(true)+ expect(+ CapabilityCallMessageSchema.safeParse({ ...call, ...INVOCATION }).success+ ).toBe(true)+ expect(+ CapabilityCallMessageSchema.safeParse({+ ...call,+ invocationId: INVOCATION.invocationId,+ }).success+ ).toBe(false)+ })++ it('strictly validates command invocation scope and response parity', () => {+ const commandScope = {+ commandInvocationId: 9,+ callChain: { id: 'chain-command', plugins: ['pub.a', 'pub.b'] },+ }+ const call = {+ type: 'call',+ id: 2,+ capability: 'commands',+ method: 'execute',+ args: ['pub.c.run', {}],+ commandScope,+ }+ expect(CapabilityCallMessageSchema.safeParse(call).success).toBe(true)+ expect(+ CapabilityCallMessageSchema.safeParse({+ ...call,+ commandScope: {+ ...commandScope,+ callChain: {+ ...commandScope.callChain,+ plugins: ['pub.a', 'pub.a'],+ },+ },+ }).success+ ).toBe(false)+ expect(+ CapabilityResponseMessageSchema.safeParse({+ type: 'response',+ id: call.id,+ commandScope,+ ok: true,+ result: {},+ }).success+ ).toBe(true)+ expect(+ CapabilityResponseMessageSchema.safeParse({+ type: 'response',+ id: call.id,+ commandScope: { commandInvocationId: commandScope.commandInvocationId },+ ok: true,+ result: {},+ }).success+ ).toBe(false)+ })++ it('rejects an effects envelope beyond the complete message budget', () => {+ const effects = {+ schemaVersion: 1,+ contextPatches: Array.from({ length: 40 }, (_, index) => ({+ [`field${index}`]: 'x'.repeat(60 * 1024),+ })),+ metadataOperations: [],+ }+ expect(HookEffectsV1Schema.safeParse(effects).success).toBe(false)+ })++ it('rejects unknown beforeCreate fields at the DTO trust boundary', () => {+ expect(+ BeforeCreateHttpContextV1Schema.safeParse(BEFORE_CREATE).success+ ).toBe(true)+ expect(+ BeforeCreateHttpContextV1Schema.safeParse({+ ...BEFORE_CREATE,+ engineOptions: { secret: true },+ }).success+ ).toBe(false)+ })++ it('requires a canonical non-secret BT source identifier before finalization', () => {+ const btTask = {+ ...TASK,+ type: 'bt',+ kind: 'bt',+ infoHash: 'abcdef0123456789abcdef0123456789abcdef01',+ } as const+ const context = {+ schemaVersion: 1,+ invocationId: INVOCATION.invocationId,+ taskId: btTask.id,+ sourceUrl: `urn:btih:${btTask.infoHash}`,+ createdBy: 'user',+ requestedAt: 1,+ task: btTask,+ inputFilePath: btTask.filePath,+ filePath: btTask.filePath,+ targetFilePath: btTask.filePath,+ }++ expect(BeforeFinalizeContextV1Schema.safeParse(context).success).toBe(true)+ expect(+ BeforeFinalizeContextV1Schema.safeParse({+ ...context,+ sourceUrl: '/Users/alice/private-tracker.torrent',+ }).success+ ).toBe(false)+ expect(+ BeforeFinalizeContextV1Schema.safeParse({+ ...context,+ sourceUrl:+ 'magnet:?xt=urn:btih:abcdef0123456789abcdef0123456789abcdef01&tr=https://secret.example/passkey',+ }).success+ ).toBe(false)+ })+})diff --git a/src/shared/schemas/plugin-hooks.ts b/src/shared/schemas/plugin-hooks.tsnew file mode 100644index 00000000..80934f86--- /dev/null+++ b/src/shared/schemas/plugin-hooks.ts@@ -0,0 +1,738 @@+import { z } from 'zod'++export const HOOK_SCHEMA_VERSION = 1 as const++export const HOOK_DTO_LIMITS = {+ messageBytes: 2 * 1024 * 1024,+ stringBytes: 64 * 1024,+ pathBytes: 32 * 1024,+ urlCount: 128,+ urlBytes: 16 * 1024,+ headerCount: 256,+ headerNameBytes: 256,+ headerValueBytes: 16 * 1024,+ headerBytes: 256 * 1024,+ jsonDepth: 16,+ objectKeys: 1_024,+ arrayItems: 1_024,+ metadataEntries: 1_024,+ metadataKeyBytes: 128,+ metadataValueBytes: 256 * 1024,+ metadataSnapshotBytes: 1024 * 1024,+ errorCodeBytes: 128,+ errorMessageBytes: 16 * 1024,+ opaqueIdBytes: 128,+ effectCount: 1_024,+} as const++const utf8Encoder = new TextEncoder()++function utf8Bytes(value: string): number {+ return utf8Encoder.encode(value).byteLength+}++function boundedString(maxBytes: number, label: string) {+ return z.string().refine((value) => utf8Bytes(value) <= maxBytes, {+ message: `${label} exceeds ${maxBytes} UTF-8 bytes`,+ })+}++function boundedNonEmptyString(maxBytes: number, label: string) {+ return boundedString(maxBytes, label).refine((value) => value.length > 0, {+ message: `${label} must not be empty`,+ })+}++function encodedJsonBytes(value: unknown): number | null {+ try {+ const encoded = JSON.stringify(value)+ return encoded === undefined ? null : utf8Bytes(encoded)+ } catch {+ return null+ }+}++function addEncodedSizeIssue(+ value: unknown,+ maxBytes: number,+ label: string,+ ctx: z.RefinementCtx+): void {+ const bytes = encodedJsonBytes(value)+ if (bytes === null || bytes > maxBytes) {+ ctx.addIssue({+ code: 'custom',+ message: `${label} must be JSON and at most ${maxBytes} UTF-8 bytes`,+ })+ }+}++type JsonValueShape =+ | string+ | number+ | boolean+ | null+ | JsonValueShape[]+ | { [key: string]: JsonValueShape }++function isBoundedJsonValue(value: unknown): value is JsonValueShape {+ const stack: Array<{ value: unknown; depth: number }> = [{ value, depth: 0 }]+ const seen = new WeakSet<object>()++ while (stack.length > 0) {+ const current = stack.pop()+ if (!current) break+ const { value: node, depth } = current++ if (+ node === null ||+ typeof node === 'boolean' ||+ typeof node === 'string'+ ) {+ if (+ typeof node === 'string' &&+ utf8Bytes(node) > HOOK_DTO_LIMITS.stringBytes+ ) {+ return false+ }+ continue+ }+ if (typeof node === 'number') {+ if (!Number.isFinite(node)) return false+ continue+ }+ if (typeof node !== 'object' || depth >= HOOK_DTO_LIMITS.jsonDepth) {+ return false+ }+ if (seen.has(node)) return false+ seen.add(node)++ if (Array.isArray(node)) {+ if (node.length > HOOK_DTO_LIMITS.arrayItems) return false+ for (const item of node) stack.push({ value: item, depth: depth + 1 })+ continue+ }++ const prototype = Object.getPrototypeOf(node)+ if (prototype !== Object.prototype && prototype !== null) return false+ const entries = Object.entries(node)+ if (entries.length > HOOK_DTO_LIMITS.objectKeys) return false+ for (const [key, item] of entries) {+ if (utf8Bytes(key) > HOOK_DTO_LIMITS.stringBytes) return false+ stack.push({ value: item, depth: depth + 1 })+ }+ }++ return true+}++export const HookJsonValueSchema = z.custom<JsonValueShape>(+ isBoundedJsonValue,+ 'value must be bounded JSON'+)+export type HookJsonValue = z.infer<typeof HookJsonValueSchema>++const GenericStringSchema = boundedString(HOOK_DTO_LIMITS.stringBytes, 'string')+const PathSchema = boundedNonEmptyString(HOOK_DTO_LIMITS.pathBytes, 'path')+const UrlSchema = boundedNonEmptyString(HOOK_DTO_LIMITS.urlBytes, 'URL')+const OpaqueIdSchema = boundedNonEmptyString(+ HOOK_DTO_LIMITS.opaqueIdBytes,+ 'identifier'+)+const TimestampSchema = z.number().int().nonnegative().safe()+const NonNegativeCountSchema = z.number().int().nonnegative().safe()++export const HookNameSchema = z.enum([+ 'beforeCreate',+ 'beforeFinalize',+ 'afterComplete',+ 'onError',+])+export type HookNameV1 = z.infer<typeof HookNameSchema>++export const HookInvocationScopeSchema = z.strictObject({+ invocationId: OpaqueIdSchema,+ callChainId: OpaqueIdSchema,+ permissionGeneration: z.number().int().nonnegative().safe(),+})+export type HookInvocationScopeV1 = z.infer<typeof HookInvocationScopeSchema>++/**+ * Host-owned command provenance carried across the Worker boundary. Unlike a+ * Hook scope, this is tied to one concrete executeCommand lane entry; nested+ * capability calls must echo it so a concurrent command cannot borrow another+ * invocation's call chain.+ */+export const PluginCallChainV1Schema = z.strictObject({+ id: OpaqueIdSchema,+ plugins: z+ .array(OpaqueIdSchema)+ .min(1)+ .max(64)+ .refine((plugins) => new Set(plugins).size === plugins.length, {+ message: 'command call chain must not contain duplicate plugins',+ }),+})+export type PluginCallChainV1 = z.infer<typeof PluginCallChainV1Schema>++export const CommandInvocationScopeV1Schema = z.strictObject({+ commandInvocationId: z.number().int().positive().safe(),+ callChain: PluginCallChainV1Schema,+})+export type CommandInvocationScopeV1 = z.infer<+ typeof CommandInvocationScopeV1Schema+>++export const ErrorDescriptorV1Schema = z.strictObject({+ code: boundedNonEmptyString(HOOK_DTO_LIMITS.errorCodeBytes, 'error code'),+ message: boundedString(HOOK_DTO_LIMITS.errorMessageBytes, 'error message'),+ detailKey: boundedString(+ HOOK_DTO_LIMITS.errorCodeBytes,+ 'error detail key'+ ).nullable(),+ detailParams: z+ .record(+ boundedNonEmptyString(HOOK_DTO_LIMITS.metadataKeyBytes, 'detail key'),+ GenericStringSchema+ )+ .superRefine((value, ctx) => {+ if (Object.keys(value).length > HOOK_DTO_LIMITS.objectKeys) {+ ctx.addIssue({+ code: 'custom',+ message: 'too many error detail values',+ })+ }+ })+ .nullable(),+})+export type ErrorDescriptorV1 = z.infer<typeof ErrorDescriptorV1Schema>++export const PluginTaskSnapshotV1Schema = z.strictObject({+ schemaVersion: z.literal(HOOK_SCHEMA_VERSION),+ id: OpaqueIdSchema,+ name: GenericStringSchema,+ type: z.enum(['http', 'ftp', 'bt', 'magnet', 'metalink']),+ kind: z.enum(['direct', 'bt', 'hls', 'mux']),+ status: z.enum([+ 'queued',+ 'fetching_metadata',+ 'metadata_ready',+ 'downloading',+ 'finalizing',+ 'seeding',+ 'paused',+ 'completed',+ 'error',+ 'removed',+ ]),+ filePath: PathSchema,+ saveDir: PathSchema,+ filename: GenericStringSchema,+ progress: z.number().finite().min(0).max(100),+ totalBytes: NonNegativeCountSchema,+ downloadedBytes: NonNegativeCountSchema,+ uploadedBytes: NonNegativeCountSchema,+ sizeWhenDone: NonNegativeCountSchema,+ fileCount: NonNegativeCountSchema,+ createdAt: TimestampSchema,+ updatedAt: TimestampSchema,+ finishedAt: TimestampSchema.nullable(),+ category: GenericStringSchema.nullable(),+ infoHash: GenericStringSchema.nullable(),+ error: ErrorDescriptorV1Schema.nullable(),+})+export type PluginTaskSnapshotV1 = z.infer<typeof PluginTaskSnapshotV1Schema>++const HeaderSchema = z.strictObject({+ name: boundedNonEmptyString(HOOK_DTO_LIMITS.headerNameBytes, 'header name'),+ value: boundedString(HOOK_DTO_LIMITS.headerValueBytes, 'header value'),+})++const HeadersSchema = z+ .array(HeaderSchema)+ .max(HOOK_DTO_LIMITS.headerCount)+ .superRefine((headers, ctx) => {+ const bytes = headers.reduce(+ (total, header) =>+ total + utf8Bytes(header.name) + utf8Bytes(header.value),+ 0+ )+ if (bytes > HOOK_DTO_LIMITS.headerBytes) {+ ctx.addIssue({ code: 'custom', message: 'headers exceed byte limit' })+ }+ })++const CommonCreateShape = {+ schemaVersion: z.literal(HOOK_SCHEMA_VERSION),+ invocationId: OpaqueIdSchema,+ taskId: OpaqueIdSchema,+ sourceUrl: UrlSchema,+ createdBy: z.enum(['user', 'protocol', 'api']),+ requestedAt: TimestampSchema,+}++/**+ * A non-secret, stable source identity for BT finalization. Raw magnet URLs,+ * torrent file paths, and tracker URLs are intentionally excluded because+ * they can contain local paths or private tracker credentials.+ */+export const BeforeFinalizeBtSourceIdentifierSchema = z+ .string()+ .refine(+ (value) =>+ /^urn:btih:(?:[0-9a-f]{40}|[a-z2-7]{32})$/i.test(value) ||+ /^urn:motrix:bt:[A-Za-z0-9_-]+$/.test(value),+ 'BT beforeFinalize sourceUrl must be a canonical non-secret identifier'+ )++export const BeforeCreateHttpContextV1Schema = z.strictObject({+ ...CommonCreateShape,+ type: z.literal('http'),+ uris: z.array(UrlSchema).min(1).max(HOOK_DTO_LIMITS.urlCount),+ saveDir: PathSchema,+ filename: GenericStringSchema.optional(),+ connections: z.number().int().positive().safe().optional(),+ headers: HeadersSchema,+ proxy: GenericStringSchema.optional(),+})+export type BeforeCreateHttpContextV1 = z.infer<+ typeof BeforeCreateHttpContextV1Schema+>++export const BeforeCreateBtContextV1Schema = z.strictObject({+ ...CommonCreateShape,+ type: z.enum(['bt', 'magnet']),+ infoHash: GenericStringSchema.optional(),+ trackers: z.array(UrlSchema).max(HOOK_DTO_LIMITS.urlCount),+ displayName: GenericStringSchema.optional(),+})+export type BeforeCreateBtContextV1 = z.infer<+ typeof BeforeCreateBtContextV1Schema+>++export const BeforeFinalizeContextV1Schema = z+ .strictObject({+ ...CommonCreateShape,+ task: PluginTaskSnapshotV1Schema,+ inputFilePath: PathSchema,+ filePath: PathSchema,+ targetFilePath: PathSchema,+ })+ .superRefine((value, ctx) => {+ if (value.taskId !== value.task.id) {+ ctx.addIssue({+ code: 'custom',+ path: ['taskId'],+ message: 'taskId must match task.id',+ })+ }+ if (value.filePath !== value.targetFilePath) {+ ctx.addIssue({+ code: 'custom',+ path: ['targetFilePath'],+ message: 'targetFilePath must match the initial filePath',+ })+ }+ if (+ (value.task.type === 'bt' || value.task.type === 'magnet') &&+ !BeforeFinalizeBtSourceIdentifierSchema.safeParse(value.sourceUrl).success+ ) {+ ctx.addIssue({+ code: 'custom',+ path: ['sourceUrl'],+ message:+ 'BT beforeFinalize sourceUrl must be a canonical non-secret identifier',+ })+ }+ })+export type BeforeFinalizeContextV1 = z.infer<+ typeof BeforeFinalizeContextV1Schema+>++export const DeliveryEnvelopeV1Schema = z.strictObject({+ schemaVersion: z.literal(HOOK_SCHEMA_VERSION),+ id: OpaqueIdSchema,+ occurrenceId: OpaqueIdSchema,+ occurredAt: TimestampSchema,+})+export type DeliveryEnvelopeV1 = z.infer<typeof DeliveryEnvelopeV1Schema>++const CommonPostShape = {+ schemaVersion: z.literal(HOOK_SCHEMA_VERSION),+ invocationId: OpaqueIdSchema,+ taskId: OpaqueIdSchema,+ task: PluginTaskSnapshotV1Schema,+ filePath: PathSchema,+ delivery: DeliveryEnvelopeV1Schema,+}++export const AfterCompleteContextV1Schema = z+ .strictObject(CommonPostShape)+ .superRefine((value, ctx) => {+ if (value.taskId !== value.task.id) {+ ctx.addIssue({+ code: 'custom',+ path: ['taskId'],+ message: 'taskId must match task.id',+ })+ }+ })+export type AfterCompleteContextV1 = z.infer<+ typeof AfterCompleteContextV1Schema+>++export const OnErrorContextV1Schema = z+ .strictObject({ ...CommonPostShape, error: ErrorDescriptorV1Schema })+ .superRefine((value, ctx) => {+ if (value.taskId !== value.task.id) {+ ctx.addIssue({+ code: 'custom',+ path: ['taskId'],+ message: 'taskId must match task.id',+ })+ }+ })+export type OnErrorContextV1 = z.infer<typeof OnErrorContextV1Schema>++export const HookMetadataSnapshotSchema = z+ .record(+ boundedNonEmptyString(HOOK_DTO_LIMITS.metadataKeyBytes, 'metadata key'),+ HookJsonValueSchema.superRefine((value, ctx) => {+ addEncodedSizeIssue(+ value,+ HOOK_DTO_LIMITS.metadataValueBytes,+ 'metadata value',+ ctx+ )+ })+ )+ .superRefine((value, ctx) => {+ if (Object.keys(value).length > HOOK_DTO_LIMITS.metadataEntries) {+ ctx.addIssue({ code: 'custom', message: 'too many metadata entries' })+ }+ addEncodedSizeIssue(+ value,+ HOOK_DTO_LIMITS.metadataSnapshotBytes,+ 'metadata snapshot',+ ctx+ )+ })+export type HookMetadataSnapshot = z.infer<typeof HookMetadataSnapshotSchema>++export const HookMetadataOperationSchema = z.discriminatedUnion('op', [+ z.strictObject({+ op: z.literal('set'),+ key: boundedNonEmptyString(+ HOOK_DTO_LIMITS.metadataKeyBytes,+ 'metadata key'+ ),+ value: HookJsonValueSchema.superRefine((value, ctx) => {+ addEncodedSizeIssue(+ value,+ HOOK_DTO_LIMITS.metadataValueBytes,+ 'metadata value',+ ctx+ )+ }),+ }),+ z.strictObject({+ op: z.literal('delete'),+ key: boundedNonEmptyString(+ HOOK_DTO_LIMITS.metadataKeyBytes,+ 'metadata key'+ ),+ }),+])+export type HookMetadataOperation = z.infer<typeof HookMetadataOperationSchema>++export const HookContextPatchSchema = z+ .record(GenericStringSchema, HookJsonValueSchema)+ .superRefine((value, ctx) => {+ if (Object.keys(value).length > HOOK_DTO_LIMITS.objectKeys) {+ ctx.addIssue({+ code: 'custom',+ message: 'context patch has too many keys',+ })+ }+ })+export type HookContextPatch = z.infer<typeof HookContextPatchSchema>++export const HookEffectsV1Schema = z+ .strictObject({+ schemaVersion: z.literal(HOOK_SCHEMA_VERSION),+ contextPatches: z+ .array(HookContextPatchSchema)+ .max(HOOK_DTO_LIMITS.effectCount),+ metadataOperations: z+ .array(HookMetadataOperationSchema)+ .max(HOOK_DTO_LIMITS.metadataEntries),+ })+ .superRefine((value, ctx) => {+ addEncodedSizeIssue(+ value,+ HOOK_DTO_LIMITS.messageBytes,+ 'Hook effects',+ ctx+ )+ })+export type HookEffectsV1 = z.infer<typeof HookEffectsV1Schema>++const HookEnterBaseShape = {+ type: z.literal('event'),+ event: z.literal('hookEnter'),+ ...HookInvocationScopeSchema.shape,+ taskId: OpaqueIdSchema,+ metadataSnapshot: HookMetadataSnapshotSchema,+}++function checkedHookEnter<T extends z.ZodType>(schema: T) {+ return schema.superRefine((value, ctx) => {+ const message = value as unknown as {+ invocationId: string+ taskId: string+ ctxPayload: { invocationId: string; taskId: string }+ }+ if (message.invocationId !== message.ctxPayload.invocationId) {+ ctx.addIssue({+ code: 'custom',+ path: ['ctxPayload', 'invocationId'],+ message: 'payload invocationId must match envelope invocationId',+ })+ }+ if (message.taskId !== message.ctxPayload.taskId) {+ ctx.addIssue({+ code: 'custom',+ path: ['ctxPayload', 'taskId'],+ message: 'payload taskId must match envelope taskId',+ })+ }+ addEncodedSizeIssue(+ value,+ HOOK_DTO_LIMITS.messageBytes,+ 'Hook enter message',+ ctx+ )+ })+}++export const BeforeCreateHttpHookEnterSchema = checkedHookEnter(+ z.strictObject({+ ...HookEnterBaseShape,+ hook: z.literal('beforeCreate'),+ ctxPayload: BeforeCreateHttpContextV1Schema,+ })+)+export const BeforeCreateBtHookEnterSchema = checkedHookEnter(+ z.strictObject({+ ...HookEnterBaseShape,+ hook: z.literal('beforeCreate'),+ ctxPayload: BeforeCreateBtContextV1Schema,+ })+)+export const BeforeFinalizeHookEnterSchema = checkedHookEnter(+ z.strictObject({+ ...HookEnterBaseShape,+ hook: z.literal('beforeFinalize'),+ ctxPayload: BeforeFinalizeContextV1Schema,+ })+)+export const AfterCompleteHookEnterSchema = checkedHookEnter(+ z.strictObject({+ ...HookEnterBaseShape,+ hook: z.literal('afterComplete'),+ ctxPayload: AfterCompleteContextV1Schema,+ })+)+export const OnErrorHookEnterSchema = checkedHookEnter(+ z.strictObject({+ ...HookEnterBaseShape,+ hook: z.literal('onError'),+ ctxPayload: OnErrorContextV1Schema,+ })+)++export const HookEnterMessageSchema = z.union([+ BeforeCreateHttpHookEnterSchema,+ BeforeCreateBtHookEnterSchema,+ BeforeFinalizeHookEnterSchema,+ AfterCompleteHookEnterSchema,+ OnErrorHookEnterSchema,+])+export type HookEnterMessageV1 = z.infer<typeof HookEnterMessageSchema>++export const HookAbortMessageSchema = z.strictObject({+ type: z.literal('event'),+ event: z.literal('abort'),+ ...HookInvocationScopeSchema.shape,+ reason: boundedString(HOOK_DTO_LIMITS.errorMessageBytes, 'abort reason'),+})+export type HookAbortMessageV1 = z.infer<typeof HookAbortMessageSchema>++export const HookExitMessageSchema = z+ .discriminatedUnion('ok', [+ z.strictObject({+ type: z.literal('event'),+ event: z.literal('hookExit'),+ ...HookInvocationScopeSchema.shape,+ ok: z.literal(true),+ effects: HookEffectsV1Schema,+ }),+ z.strictObject({+ type: z.literal('event'),+ event: z.literal('hookExit'),+ ...HookInvocationScopeSchema.shape,+ ok: z.literal(false),+ error: z.strictObject({+ code: boundedNonEmptyString(+ HOOK_DTO_LIMITS.errorCodeBytes,+ 'error code'+ ),+ message: boundedString(+ HOOK_DTO_LIMITS.errorMessageBytes,+ 'error message'+ ),+ }),+ }),+ ])+ .superRefine((value, ctx) => {+ addEncodedSizeIssue(+ value,+ HOOK_DTO_LIMITS.messageBytes,+ 'Hook exit message',+ ctx+ )+ })+export type HookExitMessageV1 = z.infer<typeof HookExitMessageSchema>++const CapabilityCallShape = {+ type: z.literal('call'),+ id: z.number().int().positive().safe(),+ capability: boundedNonEmptyString(256, 'capability'),+ method: boundedNonEmptyString(256, 'method'),+ args: z.array(z.unknown()).max(HOOK_DTO_LIMITS.arrayItems),+}++export const CapabilityCallMessageSchema = z.union([+ z.strictObject(CapabilityCallShape),+ z.strictObject({+ ...CapabilityCallShape,+ ...HookInvocationScopeSchema.shape,+ }),+ z.strictObject({+ ...CapabilityCallShape,+ commandScope: CommandInvocationScopeV1Schema,+ }),+ z.strictObject({+ ...CapabilityCallShape,+ ...HookInvocationScopeSchema.shape,+ commandScope: CommandInvocationScopeV1Schema,+ }),+])+export type CapabilityCallMessageV1 = z.infer<+ typeof CapabilityCallMessageSchema+>++const CapabilityResponseBaseShape = {+ type: z.literal('response'),+ id: z.number().int().positive().safe(),+}++const CapabilityResponseBodySchema = z.discriminatedUnion('ok', [+ z.strictObject({+ ...CapabilityResponseBaseShape,+ ok: z.literal(true),+ result: z.unknown(),+ }),+ z.strictObject({+ ...CapabilityResponseBaseShape,+ ok: z.literal(false),+ error: z.strictObject({+ code: boundedNonEmptyString(HOOK_DTO_LIMITS.errorCodeBytes, 'error code'),+ message: boundedString(+ HOOK_DTO_LIMITS.errorMessageBytes,+ 'error message'+ ),+ }),+ }),+])++const ScopedCapabilityResponseBodySchema = z.discriminatedUnion('ok', [+ z.strictObject({+ ...CapabilityResponseBaseShape,+ ...HookInvocationScopeSchema.shape,+ ok: z.literal(true),+ result: z.unknown(),+ }),+ z.strictObject({+ ...CapabilityResponseBaseShape,+ ...HookInvocationScopeSchema.shape,+ ok: z.literal(false),+ error: z.strictObject({+ code: boundedNonEmptyString(HOOK_DTO_LIMITS.errorCodeBytes, 'error code'),+ message: boundedString(+ HOOK_DTO_LIMITS.errorMessageBytes,+ 'error message'+ ),+ }),+ }),+])++const CommandScopedCapabilityResponseBodySchema = z.discriminatedUnion('ok', [+ z.strictObject({+ ...CapabilityResponseBaseShape,+ commandScope: CommandInvocationScopeV1Schema,+ ok: z.literal(true),+ result: z.unknown(),+ }),+ z.strictObject({+ ...CapabilityResponseBaseShape,+ commandScope: CommandInvocationScopeV1Schema,+ ok: z.literal(false),+ error: z.strictObject({+ code: boundedNonEmptyString(HOOK_DTO_LIMITS.errorCodeBytes, 'error code'),+ message: boundedString(+ HOOK_DTO_LIMITS.errorMessageBytes,+ 'error message'+ ),+ }),+ }),+])++const HookAndCommandScopedCapabilityResponseBodySchema = z.discriminatedUnion(+ 'ok',+ [+ z.strictObject({+ ...CapabilityResponseBaseShape,+ ...HookInvocationScopeSchema.shape,+ commandScope: CommandInvocationScopeV1Schema,+ ok: z.literal(true),+ result: z.unknown(),+ }),+ z.strictObject({+ ...CapabilityResponseBaseShape,+ ...HookInvocationScopeSchema.shape,+ commandScope: CommandInvocationScopeV1Schema,+ ok: z.literal(false),+ error: z.strictObject({+ code: boundedNonEmptyString(+ HOOK_DTO_LIMITS.errorCodeBytes,+ 'error code'+ ),+ message: boundedString(+ HOOK_DTO_LIMITS.errorMessageBytes,+ 'error message'+ ),+ }),+ }),+ ]+)++export const CapabilityResponseMessageSchema = z.union([+ CapabilityResponseBodySchema,+ ScopedCapabilityResponseBodySchema,+ CommandScopedCapabilityResponseBodySchema,+ HookAndCommandScopedCapabilityResponseBodySchema,+])+export type CapabilityResponseMessageV1 = z.infer<+ typeof CapabilityResponseMessageSchema+>diff --git a/src/shared/types/plugin-hooks.ts b/src/shared/types/plugin-hooks.tsindex 205fef4c..4e900219 100644--- a/src/shared/types/plugin-hooks.ts+++ b/src/shared/types/plugin-hooks.ts@@ -1,47 +1,30 @@-import type { DownloadTask } from './task'+import type {+ AfterCompleteContextV1,+ BeforeCreateBtContextV1,+ BeforeCreateHttpContextV1,+ BeforeFinalizeContextV1,+ DeliveryEnvelopeV1,+ ErrorDescriptorV1,+ HookEffectsV1,+ HookInvocationScopeV1,+ HookJsonValue,+ HookMetadataOperation,+ HookMetadataSnapshot,+ OnErrorContextV1,+ PluginTaskSnapshotV1,+} from '../schemas/plugin-hooks'-export type CtxJsonValue =- | string- | number- | boolean- | null- | CtxJsonValue[]- | { [k: string]: CtxJsonValue }+export type CtxJsonValue = HookJsonValue+export type PluginHookTask = PluginTaskSnapshotV1+export type PluginHookError = ErrorDescriptorV1+export type PluginHookDelivery = DeliveryEnvelopeV1+export type PluginHookInvocationScope = HookInvocationScopeV1+export type PluginHookEffects = HookEffectsV1+export type PluginHookMetadataOperation = HookMetadataOperation+export type PluginHookMetadataSnapshot = HookMetadataSnapshot-export interface BeforeCreateContextBase {- readonly sourceUrl: string- readonly createdBy: 'user' | 'protocol' | 'api'- readonly requestedAt: number-}--export interface BeforeCreateHttpContextDTO extends BeforeCreateContextBase {- readonly type: 'http'- readonly uris: ReadonlyArray<string>- readonly saveDir: string- readonly filename?: string- readonly connections?: number- readonly headers: ReadonlyArray<{ name: string; value: string }>- readonly proxy?: string-}--export interface BeforeCreateBtContextDTO extends BeforeCreateContextBase {- readonly type: 'bt' | 'magnet'- readonly infoHash?: string- readonly trackers: ReadonlyArray<string>- readonly displayName?: string-}--export interface BeforeFinalizeContextDTO extends BeforeCreateContextBase {- readonly task: DownloadTask- readonly filePath: string-}--export interface AfterCompleteContextDTO {- readonly task: DownloadTask- readonly filePath: string-}--export interface OnErrorContextDTO {- readonly task: DownloadTask- readonly error: { code: string; message: string }-}+export type BeforeCreateHttpContextDTO = BeforeCreateHttpContextV1+export type BeforeCreateBtContextDTO = BeforeCreateBtContextV1+export type BeforeFinalizeContextDTO = BeforeFinalizeContextV1+export type AfterCompleteContextDTO = AfterCompleteContextV1+export type OnErrorContextDTO = OnErrorContextV1diff --git a/tests/check-third-party-notices.test.ts b/tests/check-third-party-notices.test.tsindex 5b33df55..7e7ea6df 100644--- a/tests/check-third-party-notices.test.ts+++ b/tests/check-third-party-notices.test.ts@@ -9,6 +9,10 @@ const NATIVE_HOST_CARGO_LOCK = path.join(ROOT,'packages/native-host/Cargo.lock')+const FINALIZE_FS_CARGO_LOCK = path.join(+ ROOT,+ 'packages/finalize-fs/Cargo.lock'+)const NOTICE_GATE_COMMAND = 'pnpm run check:third-party-notices'const FLATPAK_NOTICE_GATE_COMMAND ='pnpm --config.verify-deps-before-run=false run check:third-party-notices'@@ -428,6 +432,19 @@ describe('third-party graph dependency notices', () => {expect(registryPackagesFromCargoLock(cargoLock)).toEqual(expected)})+ it('keeps every finalize filesystem crate inside the reviewed Rust inventory', async () => {+ const cargoLock = await readFile(FINALIZE_FS_CARGO_LOCK, 'utf8')+ const reviewed = new Set(+ RUST_NATIVE_HOST_CRATES.map(({ name, version }) => `${name}@${version}`)+ )++ expect(+ registryPackagesFromCargoLock(cargoLock).filter(+ ({ name, version }) => !reviewed.has(`${name}@${version}`)+ )+ ).toEqual([])+ })+it.each(['THIRD_PARTY_NOTICES.md', 'THIRD_PARTY_NOTICES.zh-CN.md'])('%s records every locked native-host crate and SPDX expression',async (noticeFile) => {diff --git a/tests/fixtures/plugins/test.hook-delivery-runtime/dist/plugin.js b/tests/fixtures/plugins/test.hook-delivery-runtime/dist/plugin.jsnew file mode 100644index 00000000..0b0b81b9--- /dev/null+++ b/tests/fixtures/plugins/test.hook-delivery-runtime/dist/plugin.js@@ -0,0 +1,15 @@+import { commands, hooks } from "motrix:plugin-api";+const observations = [];+function observe(ctx, hook) {+ observations.push({+ hook,+ deliveryId: ctx.delivery.id,+ occurrenceId: ctx.delivery.occurrenceId,+ occurredAt: ctx.delivery.occurredAt,+ metadataReadonly: typeof Reflect.get(ctx.metadata, "set") === "undefined" && typeof Reflect.get(ctx.metadata, "delete") === "undefined",+ ...hook === "onError" && "error" in ctx ? { errorCode: ctx.error.code } : {}+ });+}+hooks.afterComplete(async (ctx) => observe(ctx, "afterComplete"));+hooks.onError(async (ctx) => observe(ctx, "onError"));+commands.register("test.hook-delivery-runtime.read", () => observations);diff --git a/tests/fixtures/plugins/test.hook-delivery-runtime/motrix-plugin.json b/tests/fixtures/plugins/test.hook-delivery-runtime/motrix-plugin.jsonnew file mode 100644index 00000000..29c6c158--- /dev/null+++ b/tests/fixtures/plugins/test.hook-delivery-runtime/motrix-plugin.json@@ -0,0 +1,19 @@+{+ "manifestVersion": 1,+ "id": "test.hook-delivery-runtime",+ "name": "Hook delivery runtime fixture",+ "version": "1.0.0",+ "description": "Guest runtime fixture for the additive post-Hook delivery envelope",+ "categories": ["integration"],+ "engines": { "motrix": ">=2.0.0" },+ "main": "dist/plugin.js",+ "permissions": [],+ "hostPermissions": ["*://*/*"],+ "activationEvents": ["onTaskType:http"],+ "contributes": {+ "hooks": {+ "afterComplete": { "role": "audit" },+ "onError": { "role": "audit" }+ }+ }+}diff --git a/tests/fixtures/plugins/test.hook-delivery-runtime/src/plugin.ts b/tests/fixtures/plugins/test.hook-delivery-runtime/src/plugin.tsnew file mode 100644index 00000000..f705ff6c--- /dev/null+++ b/tests/fixtures/plugins/test.hook-delivery-runtime/src/plugin.ts@@ -0,0 +1,33 @@+/// <reference types="@motrix/plugin-api" />++import type {+ AfterCompleteContext,+ JsonValue,+ OnErrorContext,+} from 'motrix:plugin-api'+import { commands, hooks } from 'motrix:plugin-api'++const observations: JsonValue[] = []++function observe(+ ctx: AfterCompleteContext | OnErrorContext,+ hook: 'afterComplete' | 'onError'+): void {+ observations.push({+ hook,+ deliveryId: ctx.delivery.id,+ occurrenceId: ctx.delivery.occurrenceId,+ occurredAt: ctx.delivery.occurredAt,+ metadataReadonly:+ typeof Reflect.get(ctx.metadata, 'set') === 'undefined' &&+ typeof Reflect.get(ctx.metadata, 'delete') === 'undefined',+ ...(hook === 'onError' && 'error' in ctx+ ? { errorCode: ctx.error.code }+ : {}),+ })+}++hooks.afterComplete(async (ctx) => observe(ctx, 'afterComplete'))+hooks.onError(async (ctx) => observe(ctx, 'onError'))++commands.register('test.hook-delivery-runtime.read', () => observations)diff --git a/tests/fixtures/plugins/test.hook-delivery-runtime/tsconfig.json b/tests/fixtures/plugins/test.hook-delivery-runtime/tsconfig.jsonnew file mode 100644index 00000000..83718615--- /dev/null+++ b/tests/fixtures/plugins/test.hook-delivery-runtime/tsconfig.json@@ -0,0 +1,11 @@+{+ "compilerOptions": {+ "target": "ES2022",+ "module": "ESNext",+ "moduleResolution": "Bundler",+ "strict": true,+ "noEmit": true,+ "types": ["@motrix/plugin-api"]+ },+ "include": ["src/**/*.ts"]+}diff --git a/tests/fixtures/plugins/test.hook-sdk-2-0/dist/plugin.js b/tests/fixtures/plugins/test.hook-sdk-2-0/dist/plugin.jsnew file mode 100644index 00000000..68073ebc--- /dev/null+++ b/tests/fixtures/plugins/test.hook-sdk-2-0/dist/plugin.js@@ -0,0 +1,126 @@+import { commands, hooks, storage } from "motrix:plugin-api";+const observations = [];+function errorCode(error) {+ return typeof error === "object" && error !== null && "code" in error ? String(error.code) : "unknown";+}+hooks.beforeCreate(async (ctx) => {+ if (ctx.filename === "late") {+ setTimeout(async () => {+ try {+ await storage.get("late");+ observations.push({ hook: "late-capability", code: "unexpected-ok" });+ } catch (error) {+ observations.push({ hook: "late-capability", code: errorCode(error) });+ }+ }, 5);+ return ctx;+ }+ if (ctx.filename === "late-promise") {+ void storage.get("late").then(async () => {+ try {+ await storage.set("late-write", true);+ observations.push({ hook: "late-promise", code: "unexpected-ok" });+ } catch (error) {+ observations.push({ hook: "late-promise", code: errorCode(error) });+ }+ });+ return ctx;+ }+ if (ctx.filename === "abort") {+ await new Promise((resolve) => {+ const removed = () => observations.push({ hook: "removed-listener" });+ ctx.signal.addEventListener("abort", removed);+ ctx.signal.removeEventListener("abort", removed);+ ctx.signal.onabort = () => observations.push({+ hook: "onabort",+ aborted: ctx.signal.aborted,+ reason: String(ctx.signal.reason)+ });+ ctx.signal.addEventListener("abort", () => {+ observations.push({ hook: "abort-listener" });+ resolve();+ });+ });+ return ctx;+ }+ const metadata = ctx.metadata;+ const allBefore = metadata.getAll();+ metadata.set("sdk20", { count: 1 });+ const hasAfterSet = metadata.has("sdk20");+ const allAfter = metadata.getAll();+ metadata.delete("seed");+ ctx.update({+ filename: `${String(allBefore.seed)}-${String(+ allAfter.sdk20.count+ )}`+ });+ observations.push({+ hook: "beforeCreate",+ hasAfterSet,+ keys: [...metadata.keys()],+ aborted: ctx.signal.aborted+ });+ return ctx;+});+hooks.beforeFinalize(async (ctx) => {+ observations.push({+ hook: "beforeFinalize",+ sourceUrl: ctx.sourceUrl,+ taskId: ctx.task.id,+ saveDir: ctx.task.saveDir,+ metadata: ctx.metadata.getAll()+ });+ ctx.update({ filePath: `${ctx.filePath}.sdk20` });+ return ctx;+});+hooks.afterComplete(async (ctx) => {+ observations.push({+ hook: "afterComplete",+ taskId: ctx.task.id,+ filePath: ctx.filePath,+ keys: [...ctx.metadata.keys()]+ });+});+hooks.onError(async (ctx) => {+ observations.push({+ hook: "onError",+ taskId: ctx.task.id,+ errorCode: ctx.error.code,+ metadata: ctx.metadata.getAll()+ });+});+commands.register("test.hook-sdk-2-0.read", () => observations);+commands.register("test.hook-sdk-2-0.self-call", async () => {+ try {+ await commands.execute("test.hook-sdk-2-0.read");+ return { code: "unexpected-ok" };+ } catch (error) {+ return { code: errorCode(error) };+ }+});+commands.register("test.hook-sdk-2-0.url", () => {+ const url = new URL(+ "../archive.zip?part=1&part=2#download",+ "https://user:[email protected]:8443/a/b/page.html"+ );+ const params = new URLSearchParams("a=1&a=2");+ params.append("b", "hello world");+ return {+ href: url.href,+ protocol: url.protocol,+ origin: url.origin,+ host: url.host,+ hostname: url.hostname,+ port: url.port,+ pathname: url.pathname,+ search: url.search,+ hash: url.hash,+ username: url.username,+ password: url.password,+ string: url.toString(),+ json: url.toJSON(),+ part: url.searchParams.getAll("part"),+ params: params.toString(),+ paramsAll: params.getAll("a")+ };+});diff --git a/tests/fixtures/plugins/test.hook-sdk-2-0/motrix-plugin.json b/tests/fixtures/plugins/test.hook-sdk-2-0/motrix-plugin.jsonnew file mode 100644index 00000000..1886b5b7--- /dev/null+++ b/tests/fixtures/plugins/test.hook-sdk-2-0/motrix-plugin.json@@ -0,0 +1,21 @@+{+ "manifestVersion": 1,+ "id": "test.hook-sdk-2-0",+ "name": "Hook SDK 2.0 compatibility fixture",+ "version": "1.0.0",+ "description": "Runtime guest fixture constrained to the published SDK 2.0 Hook surface",+ "categories": ["integration"],+ "engines": { "motrix": ">=2.0.0" },+ "main": "dist/plugin.js",+ "permissions": ["metadata", "fs.task.write", "storage"],+ "hostPermissions": ["*://*/*"],+ "activationEvents": ["onTaskType:http"],+ "contributes": {+ "hooks": {+ "beforeCreate": { "role": "enrich" },+ "beforeFinalize": { "role": "post-process" },+ "afterComplete": { "role": "audit" },+ "onError": { "role": "audit" }+ }+ }+}diff --git a/tests/fixtures/plugins/test.hook-sdk-2-0/src/plugin.ts b/tests/fixtures/plugins/test.hook-sdk-2-0/src/plugin.tsnew file mode 100644index 00000000..2c103759--- /dev/null+++ b/tests/fixtures/plugins/test.hook-sdk-2-0/src/plugin.ts@@ -0,0 +1,144 @@+/// <reference types="@motrix/plugin-api-2-0" />++import type { JsonValue, PluginMetadata } from 'motrix:plugin-api'+import { commands, hooks, storage } from 'motrix:plugin-api'++const observations: JsonValue[] = []++function errorCode(error: unknown): string {+ return typeof error === 'object' && error !== null && 'code' in error+ ? String(error.code)+ : 'unknown'+}++hooks.beforeCreate(async (ctx) => {+ if (ctx.filename === 'late') {+ setTimeout(async () => {+ try {+ await storage.get('late')+ observations.push({ hook: 'late-capability', code: 'unexpected-ok' })+ } catch (error) {+ observations.push({ hook: 'late-capability', code: errorCode(error) })+ }+ }, 5)+ return ctx+ }++ if (ctx.filename === 'late-promise') {+ void storage.get('late').then(async () => {+ try {+ await storage.set('late-write', true)+ observations.push({ hook: 'late-promise', code: 'unexpected-ok' })+ } catch (error) {+ observations.push({ hook: 'late-promise', code: errorCode(error) })+ }+ })+ return ctx+ }++ if (ctx.filename === 'abort') {+ await new Promise<void>((resolve) => {+ const removed = () => observations.push({ hook: 'removed-listener' })+ ctx.signal.addEventListener('abort', removed)+ ctx.signal.removeEventListener('abort', removed)+ ctx.signal.onabort = () =>+ observations.push({+ hook: 'onabort',+ aborted: ctx.signal.aborted,+ reason: String(ctx.signal.reason),+ })+ ctx.signal.addEventListener('abort', () => {+ observations.push({ hook: 'abort-listener' })+ resolve()+ })+ })+ return ctx+ }++ // SDK 2.0 types HookCtxBase.metadata as a read/write-or-readonly union even+ // for pre-Hooks. Runtime pre-Hooks are the documented writable branch.+ const metadata = ctx.metadata as PluginMetadata+ const allBefore = metadata.getAll()+ metadata.set('sdk20', { count: 1 })+ const hasAfterSet = metadata.has('sdk20')+ const allAfter = metadata.getAll()+ metadata.delete('seed')+ ctx.update({+ filename: `${String(allBefore.seed)}-${String(+ (allAfter.sdk20 as { count: number }).count+ )}`,+ })+ observations.push({+ hook: 'beforeCreate',+ hasAfterSet,+ keys: [...metadata.keys()],+ aborted: ctx.signal.aborted,+ })+ return ctx+})++hooks.beforeFinalize(async (ctx) => {+ observations.push({+ hook: 'beforeFinalize',+ sourceUrl: ctx.sourceUrl,+ taskId: ctx.task.id,+ saveDir: ctx.task.saveDir,+ metadata: ctx.metadata.getAll(),+ })+ ctx.update({ filePath: `${ctx.filePath}.sdk20` })+ return ctx+})++hooks.afterComplete(async (ctx) => {+ observations.push({+ hook: 'afterComplete',+ taskId: ctx.task.id,+ filePath: ctx.filePath,+ keys: [...ctx.metadata.keys()],+ })+})++hooks.onError(async (ctx) => {+ observations.push({+ hook: 'onError',+ taskId: ctx.task.id,+ errorCode: ctx.error.code,+ metadata: ctx.metadata.getAll(),+ })+})++commands.register('test.hook-sdk-2-0.read', () => observations)+commands.register('test.hook-sdk-2-0.self-call', async () => {+ try {+ await commands.execute('test.hook-sdk-2-0.read')+ return { code: 'unexpected-ok' }+ } catch (error) {+ return { code: errorCode(error) }+ }+})+commands.register('test.hook-sdk-2-0.url', () => {+ const url = new URL(+ '../archive.zip?part=1&part=2#download',+ 'https://user:[email protected]:8443/a/b/page.html'+ )+ const params = new URLSearchParams('a=1&a=2')+ params.append('b', 'hello world')+ return {+ href: url.href,+ protocol: url.protocol,+ origin: url.origin,+ host: url.host,+ hostname: url.hostname,+ port: url.port,+ pathname: url.pathname,+ search: url.search,+ hash: url.hash,+ username: url.username,+ password: url.password,+ string: url.toString(),+ json: url.toJSON(),+ part: url.searchParams.getAll('part'),+ params: params.toString(),+ paramsAll: params.getAll('a'),+ }+})diff --git a/tests/fixtures/plugins/test.hook-sdk-2-0/tsconfig.json b/tests/fixtures/plugins/test.hook-sdk-2-0/tsconfig.jsonnew file mode 100644index 00000000..b3b03cc2--- /dev/null+++ b/tests/fixtures/plugins/test.hook-sdk-2-0/tsconfig.json@@ -0,0 +1,11 @@+{+ "compilerOptions": {+ "target": "ES2022",+ "module": "ESNext",+ "moduleResolution": "Bundler",+ "strict": true,+ "noEmit": true,+ "types": ["@motrix/plugin-api-2-0"]+ },+ "include": ["src/**/*.ts"]+}diff --git a/tests/fixtures/plugins/test.timer-activity/dist/plugin.js b/tests/fixtures/plugins/test.timer-activity/dist/plugin.jsnew file mode 100644index 00000000..19c0f752--- /dev/null+++ b/tests/fixtures/plugins/test.timer-activity/dist/plugin.js@@ -0,0 +1,19 @@+import { commands } from 'motrix:plugin-api'++let intervalId++commands.register('test.timer-activity.timeout', ({ delay }) => {+ setTimeout(() => {}, delay)+ return true+})++commands.register('test.timer-activity.interval', ({ delay }) => {+ intervalId = setInterval(() => {}, delay)+ return true+})++commands.register('test.timer-activity.clear', () => {+ if (intervalId !== undefined) clearInterval(intervalId)+ intervalId = undefined+ return true+})diff --git a/tests/fixtures/plugins/test.timer-activity/motrix-plugin.json b/tests/fixtures/plugins/test.timer-activity/motrix-plugin.jsonnew file mode 100644index 00000000..0c5cd24a--- /dev/null+++ b/tests/fixtures/plugins/test.timer-activity/motrix-plugin.json@@ -0,0 +1,19 @@+{+ "manifestVersion": 1,+ "id": "test.timer-activity",+ "name": "Timer Activity Test",+ "version": "1.0.0",+ "description": "Exercises worker timer lifecycle reporting",+ "categories": ["integration"],+ "engines": { "motrix": ">=2.0.0" },+ "main": "dist/plugin.js",+ "permissions": [],+ "activationEvents": ["onStartup"],+ "contributes": {+ "commands": [+ { "id": "test.timer-activity.timeout" },+ { "id": "test.timer-activity.interval" },+ { "id": "test.timer-activity.clear" }+ ]+ }+}diff --git a/tests/scripts/audit-server-runtime.test.ts b/tests/scripts/audit-server-runtime.test.tsindex 6db76c66..442bc73b 100644--- a/tests/scripts/audit-server-runtime.test.ts+++ b/tests/scripts/audit-server-runtime.test.ts@@ -297,6 +297,7 @@ describe('Server package contracts', () => {'dist/builtin-plugins','extra/aria2.conf','extra/{platform}/{arch}/{aria2Binary}',+ 'packages/finalize-fs/dist/{platform}-{arch}/{finalizeBinary}',])expect(contract.runtimeRoots).toEqual(['@fastify/static',diff --git a/tests/scripts/before-pack-verify.test.ts b/tests/scripts/before-pack-verify.test.tsindex e3d40231..beb4ff3e 100644--- a/tests/scripts/before-pack-verify.test.ts+++ b/tests/scripts/before-pack-verify.test.ts@@ -45,6 +45,19 @@ describe('before-pack-verify', () => {)}+ function finalizePath(platform = 'darwin', arch = 'x64') {+ const binaryName =+ platform === 'win32' ? 'motrix-finalize-fs.exe' : 'motrix-finalize-fs'+ return join(+ projectDir,+ 'packages',+ 'finalize-fs',+ 'dist',+ `${platform}-${arch}`,+ binaryName+ )+ }+async function writeStage(platform = 'darwin',arch = 'x64',@@ -206,6 +219,7 @@ describe('before-pack-verify', () => {it('accepts concrete executable Unix binaries', async () => {await writeBinary(enginePath())await writeBinary(hostPath())+ await writeBinary(finalizePath())await expect(beforePack(context())).resolves.toBeUndefined()})@@ -214,6 +228,7 @@ describe('before-pack-verify', () => {await writeStage('win32')await writeBinary(enginePath('win32'), 0o644, 'win32')await writeBinary(hostPath('win32'), 0o644, 'win32')+ await writeBinary(finalizePath('win32'), 0o644, 'win32')await expect(beforePack(context('win32'))).resolves.toBeUndefined()})@@ -222,6 +237,7 @@ describe('before-pack-verify', () => {await writeStage('win32', 'arm64')await writeBinary(enginePath('win32', 'arm64'), 0o644, 'win32', 'arm64')await writeBinary(hostPath('win32', 'arm64'), 0o644, 'win32', 'arm64')+ await writeBinary(finalizePath('win32', 'arm64'), 0o644, 'win32', 'arm64')await expect(beforePack(context('win32', 3))).resolves.toBeUndefined()})@@ -241,6 +257,7 @@ describe('before-pack-verify', () => {await writeStage('linux')await writeBinary(enginePath('linux'), 0o755, 'linux')await writeBinary(hostPath('linux'), 0o755, 'linux')+ await writeBinary(finalizePath('linux'), 0o755, 'linux')await expect(beforePack(context('linux'))).resolves.toBeUndefined()})@@ -249,6 +266,7 @@ describe('before-pack-verify', () => {await writeStage('linux', 'arm64')await writeBinary(enginePath('linux', 'arm64'), 0o755, 'linux', 'arm64')await writeBinary(hostPath('linux', 'arm64'), 0o755, 'linux', 'arm64')+ await writeBinary(finalizePath('linux', 'arm64'), 0o755, 'linux', 'arm64')await expect(beforePack(context('linux', 3))).resolves.toBeUndefined()})@@ -260,6 +278,7 @@ describe('before-pack-verify', () => {'x64','arm64',])+ await writeBinary(finalizePath('darwin', 'arm64'), 0o755, 'darwin', 'arm64')await expect(beforePack(context('darwin', 3))).resolves.toBeUndefined()})diff --git a/tests/scripts/docker-server-runtime.test.ts b/tests/scripts/docker-server-runtime.test.tsindex 53322f03..3e15845d 100644--- a/tests/scripts/docker-server-runtime.test.ts+++ b/tests/scripts/docker-server-runtime.test.ts@@ -10,6 +10,7 @@ import {const ROOT = process.cwd()const NODE_IMAGE_REFERENCE = '$' + '{NODE_IMAGE}'+const RUST_IMAGE_REFERENCE = '$' + '{RUST_IMAGE}'const PATH_REFERENCE = '$' + '{PATH}'const ENGINE_ARCH_REFERENCE = '$' + '{engine_arch}'@@ -58,6 +59,16 @@ describe('Docker Server runtime staging contract', () => {expect(dockerfile).toMatch(/^ARG NODE_IMAGE=node:24-alpine@sha256:[0-9a-f]{64}$/m)+ expect(dockerfile).toMatch(+ /^ARG RUST_IMAGE=rust:1\.94\.1-alpine@sha256:[0-9a-f]{64}$/m+ )+ expect(dockerfile).toContain(+ `FROM ${RUST_IMAGE_REFERENCE} AS finalize-fs-build`+ )+ expect(dockerfile).toContain('cargo build --release --locked')+ expect(dockerfile).toContain(+ 'native-artifact-operations.integration.test.ts'+ )expect(runtime).toContain('COPY --from=build --chown=node:node /app/dist/server-app/ ./')@@ -70,6 +81,7 @@ describe('Docker Server runtime staging contract', () => {expect(runtime).not.toContain('apk add --no-cache aria2')expect(runtime).toContain(`PATH=/app/bin:${PATH_REFERENCE}`)expect(runtime).toContain('MOTRIX_ARIA2_BIN=/app/bin/aria2c')+ expect(runtime).toContain('motrix-finalize-fs')expect(runtime).toContain('SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt')diff --git a/tests/scripts/release-signing-input.test.ts b/tests/scripts/release-signing-input.test.tsindex 754fafcb..27f0a40e 100644--- a/tests/scripts/release-signing-input.test.ts+++ b/tests/scripts/release-signing-input.test.ts@@ -458,6 +458,10 @@ async function createGeneratedSigningInput('packages/native-host/dist/win32-x64/motrix-native-host.exe','native host',],+ [+ 'packages/finalize-fs/dist/win32-x64/motrix-finalize-fs.exe',+ 'finalize filesystem sidecar',+ ],['release/size-reports/win32-x64.json', '{}'],...files,] as Array<[string, string]>) {diff --git a/tests/scripts/verify-electron-package.test.ts b/tests/scripts/verify-electron-package.test.tsindex 9969c65d..8ea191d6 100644--- a/tests/scripts/verify-electron-package.test.ts+++ b/tests/scripts/verify-electron-package.test.ts@@ -231,13 +231,19 @@ async function createFixture(? 'motrix-native-host.exe': 'motrix-native-host'const engineName = target.platform === 'win32' ? 'aria2c.exe' : 'aria2c'+ const finalizeName =+ target.platform === 'win32'+ ? 'motrix-finalize-fs.exe'+ : 'motrix-finalize-fs'const host = await write(resources, `bin/${hostName}`, executable)+ const finalize = await write(resources, `bin/${finalizeName}`, executable)const engine = await write(resources,`extra/${target.platform}/${target.arch}/${engineName}`,executable)await chmod(host, 0o755)+ await chmod(finalize, 0o755)await chmod(engine, 0o755)for (const relativePath of LEGAL)await write(resources, relativePath, relativePath)@@ -505,6 +511,7 @@ describe('post-package Electron verification', () => {it.each(['extra/darwin/arm64/aria2c','bin/motrix-native-host',+ 'bin/motrix-finalize-fs','builtin-plugins/motrix.fixture/motrix-plugin.json','THIRD_PARTY_NOTICES.md',])('rejects a missing external resource %s', async (relativePath) => {