diff --git a/.github/workflows/stack-lint.yml b/.github/workflows/stack-lint.yml index 3f42d26..7f22bac 100644 --- a/.github/workflows/stack-lint.yml +++ b/.github/workflows/stack-lint.yml @@ -112,30 +112,3 @@ jobs: env: TEST_POSTGRES: '1' run: pnpm test:integration - - settlement-packages: - name: Arc and Privy packages - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - uses: actions/setup-node@v4 - with: - node-version-file: '.nvmrc' - cache: npm - cache-dependency-path: | - packages/arc-adapter/package-lock.json - packages/privy-adapter/package-lock.json - packages/testkit-settlement/package-lock.json - - - name: Check Arc adapter - working-directory: packages/arc-adapter - run: npm ci && npm run check - - - name: Check Privy adapter - working-directory: packages/privy-adapter - run: npm ci && npm run check - - - name: Check settlement testkit - working-directory: packages/testkit-settlement - run: npm ci && npm run check diff --git a/docs/settlement/ADAPTER_CONTRACT_V1.md b/docs/settlement/ADAPTER_CONTRACT_V1.md new file mode 100644 index 0000000..a88d888 --- /dev/null +++ b/docs/settlement/ADAPTER_CONTRACT_V1.md @@ -0,0 +1,138 @@ +# settlement-adapter-contract-v1 + +B04 handoff artifact. The production surface Coder A composes against, and the +list of things it deliberately does not do. + +Implemented by `@oneshot/privy-adapter` and `@oneshot/arc-adapter`. Both build +and test with no implementation from the A or C lanes present; an automated +test asserts that no import reaches an A- or C-owned package. + +## 1. Provided ports + +| Port | Results | +| --- | --- | +| `AuthorizationPort.evaluate` | `AUTHORIZED`, `DENIED`, `UNAVAILABLE` | +| `SettlementPort.submit` | `CONFIRMED`, `DEFINITELY_NOT_SUBMITTED`, `POSSIBLY_SUBMITTED` | +| `EvidencePort.lookup` | `FINAL_SUCCESS`, `FINAL_REVERT`, `PENDING`, `NOT_FOUND`, `UNAVAILABLE` | + +## 2. Required from the host + +The adapter is stateless about settlement rights. A must supply: + +- durable Business Intent and Attempt state; +- an atomic submission-ownership grant; +- request identity persisted across restarts. + +## 3. Not provided + +- Reconciliation decisions. The adapter reports; it does not decide to retry. +- External-index authority. Hashless discovery is Coder C's Subgraph MCP path, + deliberately absent here so no second, weaker way to decide a payment + happened can develop. +- Automatic transaction replacement. +- User interface. + +## 4. Error taxonomy + +The taxonomy turns on one question: **did the request reach the network?** + +### Proven pre-broadcast, retry permitted + +| Signal | Why it proves nothing was sent | +| --- | --- | +| `ENOTFOUND`, `EAI_AGAIN` | DNS never resolved; no connection opened | +| `ECONNREFUSED` | Peer refused the TCP handshake | +| TLS handshake failures | Failed before any application data was transmitted | +| HTTP 4xx except 429 | Provider rejected on its own terms without acting | + +### Possibly submitted, retry never permitted + +`ECONNRESET`, `ETIMEDOUT`, `EPIPE`, premature stream close, HTTP 429, HTTP 5xx, +truncated or malformed responses, lost success responses, process termination, +**and every unrecognized error**. + +Two boundaries worth stating explicitly: + +- **429 is ambiguous**, not a rejection. A rate limiter may reject before or + after queuing the work. +- **A failed TLS handshake is pre-broadcast; an interrupted TLS connection is + not.** The first cannot have delivered a request; the second may have. + +An error this build has never seen is classified post-send. An unknown failure +cannot be proof that nothing happened, and treating it as proof is the mistake +that pays twice. + +## 5. `NOT_FOUND` is not permission + +Absent evidence can mean the transaction was never broadcast, or sits in a +mempool this node cannot see, or that the node is behind, or that it was +replaced. `permitsResubmission` returns `false` for every observation, and +there is no code path that turns an absent result into a settlement right. + +Only bound, final evidence terminates an intent. A receipt that exists for our +hash but does not prove our settlement is contradictory and stays unbound +rather than being resolved by guess. + +## 6. Drift hardening + +The settlement boundary depends on values living outside this repository: a +Privy policy, a wallet, a chain, a token, a cap. Any can change with no commit +and no review. + +`detectDrift` compares observed identity against a reviewed baseline across +`policyDigest`, `policyId`, `walletId`, `walletAddress`, `chainId`, +`tokenContract`, and `settlementCapAtomic`. Any difference fails closed, and +`assertNoDrift` throws rather than returning a value a caller could ignore. + +A **lowered** cap is reported as drift too. Judging whether a change is benign +is not this module's job; detecting that the deployment no longer matches what +was reviewed is. + +## 7. Webhooks + +Disabled. A webhook is an unauthenticated inbound claim about a payment. +Signature verification against Privy's scheme is unproven here, and polling +through `EvidencePort` is complete on its own, so enabling one would add attack +surface without adding capability. + +## 8. Redaction report + +- Provider error text never crosses the package boundary. Callers receive an + `AdapterError` code and a sanitized message. +- Evidence detail strings are truncated to 200 characters, because provider + errors can embed whole response bodies. +- Redaction is deny-by-default on key name and on value shape, with named + hash-bearing fields exempt from the 32-byte-hex rule so transaction hashes, + block hashes, topics, and fingerprints survive as evidence. +- No module in either package reads `ONESHOT_PRIVY_APP_SECRET`. + +## 9. Live gaps for Gate P4 + +Listed so fixtures cannot pass as live evidence: + +- No Privy tenant has executed a policy denial or an allowed settlement. +- Arc receipt and Transfer log shapes are modelled from documentation, never + observed. +- Privy wallet and policy identifier formats are shape-guessed; the documented + format should replace `IDENTIFIER_SHAPE`. + +Per `.agents/skills/sponsor-qualification/SKILL.md`, the Privy and Arc claims +stay `NOT VERIFIED` until `docs/settlement/LIVE_EVIDENCE.md` records a sanitized +live transaction. + +## 10. P4 replacement instructions + +When credentials exist: + +1. Run `docs/settlement/PROVIDER_SETUP.md`. +2. Verify with `cd packages/arc-adapter && npm run probe`. +3. Record the observed policy digest and wallet identity as the baseline. +4. Execute the negative suite against the live tenant and confirm zero + transfers, then one allowed settlement. +5. Capture responses through `captureReceiptFixture` and replace the modelled + fixtures with sanitized real ones. +6. Update `LIVE_EVIDENCE.md` from `LIVE_NOT_RUN` to `LIVE_RUN` with the + sanitized hash, block, and explorer URL. + +Replacing fixtures must not change any classifier or verifier result. If it +does, the model was wrong and the difference is the finding. diff --git a/docs/settlement/LIVE_EVIDENCE.md b/docs/settlement/LIVE_EVIDENCE.md new file mode 100644 index 0000000..8bdad77 --- /dev/null +++ b/docs/settlement/LIVE_EVIDENCE.md @@ -0,0 +1,75 @@ +# Live settlement evidence + +B03 handoff artifact. + +## Status + +`LIVE_NOT_RUN` + +No real Arc Testnet settlement has been executed. No Privy application, +execution wallet, policy, or funded testnet account has been provisioned for +this build. + +This is the expected state. B03 closes on its offline criteria, and +`milestones/coder-b/B03-live-settlement-harness.md` states that live +availability does not block packet closure. Live execution is tracked as +project Gate P4 evidence. + +## Why it has not run + +Provisioning requires a human: creating a Privy application, holding an app +secret, attaching a wallet policy, and funding a testnet account are all +actions an agent must not perform. `docs/settlement/PROVIDER_SETUP.md` is the +procedure; nobody has run it yet. + +## What is proven without it + +The offline harness exercises the complete adapter workflow against simulated +providers with a deterministic broadcast counter: + +- Every policy denial family produces **zero** external broadcasts. +- Duplicate delivery, ten sequential retries, and ten parallel workers sharing + durable state each produce **exactly one** broadcast. +- Process restart is exercised against file-backed durable state: an attempt is + written to disk before the provider is called, and a restarted worker reading + that file is refused a second submission right, including after an outcome + that was never learned. +- An ambiguous outcome does not grant a fresh submission right, so the + dangerous retry after a possible payment cannot happen. +- Every ambiguous or unrecognized provider response classifies as + `POSSIBLY_SUBMITTED`. +- Sanitized fixtures reproduce the same verifier and classifier results as the + raw responses they were captured from. + +Command: + +```bash +cd packages/testkit-settlement && npm run check +``` + +## What is not proven + +Simulators prove the adapter's logic, not the provider's behaviour. Still +unverified against reality: + +- That a Privy policy configured as `buildExpectedPolicy` describes actually + denies each wrong dimension. The policy shape is modelled from Privy's + documentation, not observed. +- That Arc Testnet receipts and Transfer logs have the exact shape the verifier + expects. +- That the documented Privy wallet and policy identifier formats match the + conservative shape check in the readiness probe. +- Real latency, rate limits, and error bodies. + +Per `.agents/skills/sponsor-qualification/SKILL.md`, no sponsor or +qualification claim may be made from fixtures alone. Until this file records a +sanitized live transaction, the Privy and Arc integration claims are +`NOT VERIFIED`. + +## To update this file + +Run `docs/settlement/PROVIDER_SETUP.md`, execute one allowed settlement, then +replace the status above with `LIVE_RUN` plus the sanitized transaction hash, +block number, explorer URL, and the observed denial counts. Capture the +responses through `captureReceiptFixture` so no credential reaches the +repository. diff --git a/docs/settlement/PROVIDER_SETUP.md b/docs/settlement/PROVIDER_SETUP.md new file mode 100644 index 0000000..837a549 --- /dev/null +++ b/docs/settlement/PROVIDER_SETUP.md @@ -0,0 +1,133 @@ +# Provider setup (human-run) + +B03.1. Prepares a Privy application, execution wallet, policy, and Arc Testnet +funding so a real settlement can be captured as Gate P4 evidence. + +**A human runs every step here.** Agents must not create accounts, enter +credentials, mutate policy, or move funds. An agent may run the read-only +verification in section 7 and report results. + +Testnet only. Nothing in this guide applies to mainnet, and Arc mainnet +parameters are unpublished. See `docs/settlement/SETTLEMENT_CONFIG_V1.md`. + +## 1. Before you start + +You need a Privy account, a terminal, and somewhere to store secrets that is +not this repository. Budget about 30 minutes. + +At no point paste a secret into a chat, an issue, a PR, a fixture, a log, or a +review prompt. `.agent/SECURITY_INVARIANTS.md` treats that as a breach, and a +committed secret must be rotated, not deleted. + +## 2. Privy application + +1. Create a Privy application for OneShot. +2. Record the **app ID**. It is a public identifier, safe to log. +3. Create an **app secret**. This is the one true credential in the system. + Put it straight into your secret store; do not write it to a file first. + +## 3. Execution wallet + +1. Create a server wallet. This is the only wallet that will sign settlement. +2. Record the **wallet ID** and the **wallet address**. +3. Configure the owner or key quorum according to your organisation's rules. A + single-owner wallet is acceptable for a testnet demo and is not acceptable + for anything holding real value. + +## 4. Recipient and cap + +Two human decisions, both deliberate: + +- **Recipient allowlist.** The addresses settlement may pay. Keep it as short + as the demo allows. An empty list settles nothing, which is the safe default. +- **Per-settlement cap.** The maximum atomic units for one settlement, in + six-decimal USDC atomic units. `1000000` is one USDC. + +These are the two values that bound the blast radius if everything else fails. + +## 5. Policy + +Attach a policy to the execution wallet constraining all six dimensions: + +| Dimension | Constraint | +| --- | --- | +| Chain | equals `5042002` | +| Destination contract | equals the USDC interface `0x3600000000000000000000000000000000000000` | +| Native value | equals `0` | +| Method | `transfer` | +| Recipient | in your allowlist | +| Amount | at or below your cap | + +The policy must end with a **default deny**. Without it, anything the rules do +not mention is permitted. + +`buildExpectedPolicy` in `@oneshot/privy-adapter` produces this shape, and +`policyDigest` produces a fingerprint you can compare against later to detect +drift. Record the **policy ID** and the digest. + +## 6. Funding + +1. Fund the execution wallet from the Circle faucet at + for Arc Testnet. +2. Fund only what the demo needs. +3. Confirm the balance on the explorer at . + +Arc's native gas asset uses 18 decimals while the USDC ERC-20 interface uses 6. +They are both called USDC. Read balances carefully. + +## 7. Verification (read-only, safe to automate) + +Set the variables from `packages/arc-adapter/.env.example` in your shell or +secret store, then run the readiness probe: + +```bash +cd packages/arc-adapter && npm run probe +``` + +This contacts the endpoint you configured, asks it which chain it is actually +on, and checks that the configured USDC address holds contract bytecode. It is +read-only: it cannot sign, send, or mutate anything, and it prints no +credential. Exit code 0 means ready, 1 means not ready. + +Read the result carefully, because the two failure modes need opposite +responses: + +- **`MISMATCH`** — the endpoint answered and the answer was wrong. Your + configuration points somewhere it should not. A human must fix it. Do not + retry; it will not resolve on its own. +- **`UNAVAILABLE`** — the endpoint could not be reached. Your configuration may + be perfectly correct. Retrying later is reasonable. + +Note that `npm run check` is a different thing: it runs lint, typecheck, and +the unit tests against stubbed endpoints. It proves the probe's logic is +correct and tells you nothing about whether *your* setup is correct. Only +`npm run probe` does that. + +## 8. Storing the values + +| Value | Classification | Where it goes | +| --- | --- | --- | +| App ID | public | configuration | +| App secret | **secret** | secret store only | +| Wallet ID | public | configuration | +| Wallet address | public | configuration and evidence | +| Policy ID | public | configuration | +| Recipient allowlist | human-only | configuration | +| Cap | human-only | configuration | + +Never commit a real value. `packages/arc-adapter/.env.example` holds +placeholders only and is generated from the config schema. + +## 9. Cleanup and rotation + +When the demo is finished: + +1. Return or drain remaining testnet funds. +2. Rotate the app secret, and rotate immediately if it was ever pasted anywhere + outside the secret store. +3. Narrow or empty the recipient allowlist. +4. Keep the wallet and policy if you need the evidence trail; disable the + policy's allow rule to make the wallet inert. + +Rotation is the response to a suspected leak. Deleting the message that +contained it is not. diff --git a/eslint.config.mjs b/eslint.config.mjs index a109272..3891cda 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -4,14 +4,7 @@ import tseslint from 'typescript-eslint'; export default tseslint.config( { - ignores: [ - '**/coverage/**', - '**/dist/**', - '**/generated/**', - 'packages/arc-adapter/**', - 'packages/privy-adapter/**', - 'packages/testkit-settlement/**', - ], + ignores: ['**/coverage/**', '**/dist/**', '**/generated/**'], }, eslint.configs.recommended, ...tseslint.configs.recommended, diff --git a/packages/arc-adapter/bin/probe.js b/packages/arc-adapter/bin/probe.js new file mode 100755 index 0000000..5cd9bfd --- /dev/null +++ b/packages/arc-adapter/bin/probe.js @@ -0,0 +1,5 @@ +#!/usr/bin/env node +import { runProbe } from '../dist/probe-cli.js'; + +const code = await runProbe(process.env); +process.exit(code); diff --git a/packages/arc-adapter/eslint.config.js b/packages/arc-adapter/eslint.config.js deleted file mode 100644 index 4d69fd5..0000000 --- a/packages/arc-adapter/eslint.config.js +++ /dev/null @@ -1,24 +0,0 @@ -import js from '@eslint/js'; -import tseslint from 'typescript-eslint'; - -export default tseslint.config( - { ignores: ['dist/**'] }, - js.configs.recommended, - ...tseslint.configs.strictTypeChecked, - { - languageOptions: { - parserOptions: { - projectService: true, - tsconfigRootDir: import.meta.dirname, - }, - }, - rules: { - // Money and chain identity must never be coerced through `any`. - '@typescript-eslint/no-explicit-any': 'error', - '@typescript-eslint/restrict-template-expressions': [ - 'error', - { allowNumber: true }, - ], - }, - }, -); diff --git a/packages/arc-adapter/package-lock.json b/packages/arc-adapter/package-lock.json deleted file mode 100644 index bff2752..0000000 --- a/packages/arc-adapter/package-lock.json +++ /dev/null @@ -1,2794 +0,0 @@ -{ - "name": "@oneshot/arc-adapter", - "version": "0.1.0", - "lockfileVersion": 3, - "requires": true, - "packages": { - "": { - "name": "@oneshot/arc-adapter", - "version": "0.1.0", - "license": "MIT", - "dependencies": { - "viem": "2.56.3" - }, - "devDependencies": { - "@eslint/js": "9.39.1", - "@types/node": "22.18.11", - "eslint": "9.39.1", - "typescript": "5.9.3", - "typescript-eslint": "8.69.0", - "vitest": "5.0.0" - }, - "engines": { - "node": ">=22.12.0" - } - }, - "node_modules/@adraffy/ens-normalize": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@adraffy/ens-normalize/-/ens-normalize-1.11.1.tgz", - "integrity": "sha512-nhCBV3quEgesuf7c7KYfperqSS14T8bYuvJ8PcLJp6znkZpFc0AuW4qBtr8eKVyPPe/8RSr7sglCWPU5eaxwKQ==", - "license": "MIT" - }, - "node_modules/@eslint-community/eslint-utils": { - "version": "4.10.1", - "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.10.1.tgz", - "integrity": "sha512-cuadcxVFE8sDK6iWJbs8Sn0av2Nrh2QSGQhVlBW9AaAHqHwjWsZHT8LJ4hFGPh7ASBV2deFdM7H/DPjulmh8rg==", - "dev": true, - "license": "MIT", - "dependencies": { - "eslint-visitor-keys": "^3.4.3" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - }, - "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" - } - }, - "node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", - "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/@eslint-community/regexpp": { - "version": "4.12.2", - "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.2.tgz", - "integrity": "sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^12.0.0 || ^14.0.0 || >=16.0.0" - } - }, - "node_modules/@eslint/config-array": { - "version": "0.21.2", - "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.21.2.tgz", - "integrity": "sha512-nJl2KGTlrf9GjLimgIru+V/mzgSK0ABCDQRvxw5BjURL7WfH5uoWmizbH7QB6MmnMBd8cIC9uceWnezL1VZWWw==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@eslint/object-schema": "^2.1.7", - "debug": "^4.3.1", - "minimatch": "^3.1.5" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@eslint/config-helpers": { - "version": "0.4.2", - "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.4.2.tgz", - "integrity": "sha512-gBrxN88gOIf3R7ja5K9slwNayVcZgK6SOUORm2uBzTeIEfeVaIhOpCtTox3P6R7o2jLFwLFTLnC7kU/RGcYEgw==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@eslint/core": "^0.17.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@eslint/core": { - "version": "0.17.0", - "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.17.0.tgz", - "integrity": "sha512-yL/sLrpmtDaFEiUj1osRP4TI2MDz1AddJL+jZ7KSqvBuliN4xqYY54IfdN8qD8Toa6g1iloph1fxQNkjOxrrpQ==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@types/json-schema": "^7.0.15" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@eslint/eslintrc": { - "version": "3.3.7", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.7.tgz", - "integrity": "sha512-F42g89Qd5oAWtp0k0nnSrjziAKza7w8SVT4mStc18LZMaRb4J1HQAHLCalEtDCxrTuksx7NU9qsmeLwpOfPqWw==", - "dev": true, - "license": "MIT", - "dependencies": { - "ajv": "^6.14.0", - "debug": "^4.3.2", - "espree": "^10.0.1", - "globals": "^14.0.0", - "ignore": "^5.2.0", - "import-fresh": "^3.2.1", - "js-yaml": "^4.3.2", - "minimatch": "^3.1.5", - "strip-json-comments": "^3.1.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/@eslint/js": { - "version": "9.39.1", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.39.1.tgz", - "integrity": "sha512-S26Stp4zCy88tH94QbBv3XCuzRQiZ9yXofEILmglYTh/Ug/a9/umqvgFtYBAo3Lp0nsI/5/qH1CCrbdK3AP1Tw==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://eslint.org/donate" - } - }, - "node_modules/@eslint/object-schema": { - "version": "2.1.7", - "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.7.tgz", - "integrity": "sha512-VtAOaymWVfZcmZbp6E2mympDIHvyjXs/12LqWYjVw6qjrfF+VK+fyG33kChz3nnK+SU5/NeHOqrTEHS8sXO3OA==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@eslint/plugin-kit": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.4.1.tgz", - "integrity": "sha512-43/qtrDUokr7LJqoF2c3+RInu/t4zfrpYdoSDfYyhg52rwLV6TnOvdG4fXm7IkSB3wErkcmJS9iEhjVtOSEjjA==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@eslint/core": "^0.17.0", - "levn": "^0.4.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@humanfs/core": { - "version": "0.19.2", - "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.2.tgz", - "integrity": "sha512-UhXNm+CFMWcbChXywFwkmhqjs3PRCmcSa/hfBgLIb7oQ5HNb1wS0icWsGtSAUNgefHeI+eBrA8I1fxmbHsGdvA==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@humanfs/types": "^0.15.0" - }, - "engines": { - "node": ">=18.18.0" - } - }, - "node_modules/@humanfs/node": { - "version": "0.16.8", - "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.8.tgz", - "integrity": "sha512-gE1eQNZ3R++kTzFUpdGlpmy8kDZD/MLyHqDwqjkVQI0JMdI1D51sy1H958PNXYkM2rAac7e5/CnIKZrHtPh3BQ==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@humanfs/core": "^0.19.2", - "@humanfs/types": "^0.15.0", - "@humanwhocodes/retry": "^0.4.0" - }, - "engines": { - "node": ">=18.18.0" - } - }, - "node_modules/@humanfs/types": { - "version": "0.15.0", - "resolved": "https://registry.npmjs.org/@humanfs/types/-/types-0.15.0.tgz", - "integrity": "sha512-ZZ1w0aoQkwuUuC7Yf+7sdeaNfqQiiLcSRbfI08oAxqLtpXQr9AIVX7Ay7HLDuiLYAaFPu8oBYNq/QIi9URHJ3Q==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">=18.18.0" - } - }, - "node_modules/@humanwhocodes/module-importer": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", - "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">=12.22" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/nzakas" - } - }, - "node_modules/@humanwhocodes/retry": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.3.tgz", - "integrity": "sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">=18.18" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/nzakas" - } - }, - "node_modules/@jridgewell/resolve-uri": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", - "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.6.0.tgz", - "integrity": "sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==", - "dev": true, - "license": "MIT" - }, - "node_modules/@jridgewell/trace-mapping": { - "version": "0.3.31", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz", - "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/resolve-uri": "^3.1.0", - "@jridgewell/sourcemap-codec": "^1.4.14" - } - }, - "node_modules/@noble/ciphers": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@noble/ciphers/-/ciphers-1.3.0.tgz", - "integrity": "sha512-2I0gnIVPtfnMw9ee9h1dJG7tp81+8Ob3OJb3Mv37rx5L40/b0i7djjCVvGOVqc9AEIQyvyu1i6ypKdFw8R8gQw==", - "license": "MIT", - "engines": { - "node": "^14.21.3 || >=16" - }, - "funding": { - "url": "https://paulmillr.com/funding/" - } - }, - "node_modules/@noble/curves": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.9.1.tgz", - "integrity": "sha512-k11yZxZg+t+gWvBbIswW0yoJlu8cHOC7dhunwOzoWH/mXGBiYyR4YY6hAEK/3EUs4UpB8la1RfdRpeGsFHkWsA==", - "license": "MIT", - "dependencies": { - "@noble/hashes": "1.8.0" - }, - "engines": { - "node": "^14.21.3 || >=16" - }, - "funding": { - "url": "https://paulmillr.com/funding/" - } - }, - "node_modules/@noble/hashes": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.8.0.tgz", - "integrity": "sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A==", - "license": "MIT", - "engines": { - "node": "^14.21.3 || >=16" - }, - "funding": { - "url": "https://paulmillr.com/funding/" - } - }, - "node_modules/@oxc-project/types": { - "version": "0.148.0", - "resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.148.0.tgz", - "integrity": "sha512-Nm4s/jB+4FpFsPhWGEC4h7rzksesmtnMXomo6rCMcg/b8zLQuOziRgkCS1fxDCXOlJB/6Q8oABOZ/OP6RIPj9A==", - "dev": true, - "license": "MIT", - "peer": true, - "funding": { - "url": "https://github.com/sponsors/oxc-project" - } - }, - "node_modules/@rolldown/binding-android-arm-eabi": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm-eabi/-/binding-android-arm-eabi-1.2.7.tgz", - "integrity": "sha512-EypzgnYCwyVY4NDHKzGmNJT5b+XaQEBniHxsMdeIQLB/tcCzZnhqrzHpZFbX9iaxx+5RiB8caATBtfvZP7zVxQ==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "peer": true, - "engines": { - "node": "^20.19.0 || >=22.12.0" - } - }, - "node_modules/@rolldown/binding-android-arm64": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm64/-/binding-android-arm64-1.2.7.tgz", - "integrity": "sha512-l17HE9EweWaqJZhuUuNBN/FzM62xw+DECVnJyvMsxn8vJFAGLy5QfLDoYAcronkAN8VxKZHezDpulHDPx95vFw==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "peer": true, - "engines": { - "node": "^20.19.0 || >=22.12.0" - } - }, - "node_modules/@rolldown/binding-darwin-arm64": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-arm64/-/binding-darwin-arm64-1.2.7.tgz", - "integrity": "sha512-8ED8ELFvHXc6OCETIn4gXObPiaR6bckM/ipXtbzlPVDRMBfEGjCKgO90F9YtfdpDatVx/ZQw7aZ1vUMf/+T3Mw==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "peer": true, - "engines": { - "node": "^20.19.0 || >=22.12.0" - } - }, - "node_modules/@rolldown/binding-darwin-x64": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-x64/-/binding-darwin-x64-1.2.7.tgz", - "integrity": "sha512-/WPripjtiAIZ2tWY7ddijORT0Ujg87wxWW/qcoFVCKAWVDPhtY0xr7Dj0M3GyNGz60jGwTElhro/mkF9dT7dDQ==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "peer": true, - "engines": { - "node": "^20.19.0 || >=22.12.0" - } - }, - "node_modules/@rolldown/binding-freebsd-x64": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/@rolldown/binding-freebsd-x64/-/binding-freebsd-x64-1.2.7.tgz", - "integrity": "sha512-14DI4NcqpvbICxSnGLx3PmtDaWqRP/KGSGb6C+JLLVPeZRl6dKdHba3pGsqT3vpdTqhEYIPG0MMQ8c0xYqoJxA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ], - "peer": true, - "engines": { - "node": "^20.19.0 || >=22.12.0" - } - }, - "node_modules/@rolldown/binding-linux-arm-gnueabihf": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.2.7.tgz", - "integrity": "sha512-bxrWIRvHWQvbJwi+VIie/kDJmQxcNE6xxWwZdqF/ExVAigtHkv54WTLQPb+QsZdnFy18fg7JPfWGL0RH6vwIlQ==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "peer": true, - "engines": { - "node": "^20.19.0 || >=22.12.0" - } - }, - "node_modules/@rolldown/binding-linux-arm64-gnu": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.2.7.tgz", - "integrity": "sha512-toOY2BChBZyuxU7OYX6Tn389di4IzAqPTycVcci0O7FSfBqzRB3RZn+K5Is6ANf4tmgRd/K1yZTsNTXbkXsnLg==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "peer": true, - "engines": { - "node": "^20.19.0 || >=22.12.0" - } - }, - "node_modules/@rolldown/binding-linux-arm64-musl": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.2.7.tgz", - "integrity": "sha512-lAIXTH/aiLRLxsTgQvfhjo4K1ydWIp00+V0voOr9beb/9ZmkUFrSIb03dXNFRgMNvkE6oGsF10ioQ6UsI+vS5Q==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "peer": true, - "engines": { - "node": "^20.19.0 || >=22.12.0" - } - }, - "node_modules/@rolldown/binding-linux-ppc64-gnu": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.2.7.tgz", - "integrity": "sha512-kdnwS28Pkenp/mZMRwjXXXwxQ7pIsm+bF919LUK93BOyhcLsrVKdP2p9fxpiPNPAbNuch8ypQt0pm2P2LYCAGg==", - "cpu": [ - "ppc64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "peer": true, - "engines": { - "node": "^20.19.0 || >=22.12.0" - } - }, - "node_modules/@rolldown/binding-linux-s390x-gnu": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.2.7.tgz", - "integrity": "sha512-516OdsyLdr5E65paF3yBF55t8mfm9+gmtCsK3xI7XKXIT7EfRlHhxL8K/NR6Hu8BWSgF5+1w74lTL0+nxcc8Qw==", - "cpu": [ - "s390x" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "peer": true, - "engines": { - "node": "^20.19.0 || >=22.12.0" - } - }, - "node_modules/@rolldown/binding-linux-x64-gnu": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.2.7.tgz", - "integrity": "sha512-r8/z8n7GFaYRln3xmP1Cxy0HH/HLM0uBUPkEuSVEfKGDA89M0FsZRZJRSwe/tJjRx+fpH/gjorfhB8tmEbSFLA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "peer": true, - "engines": { - "node": "^20.19.0 || >=22.12.0" - } - }, - "node_modules/@rolldown/binding-linux-x64-musl": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-musl/-/binding-linux-x64-musl-1.2.7.tgz", - "integrity": "sha512-pAsE8iiDxUg1xBqdhrTfg45AVDVpirjz00sblEYClGNNcMnDb+e8beQgqIAw6LvauX/APvgxUnwrgun/YYGBhw==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "peer": true, - "engines": { - "node": "^20.19.0 || >=22.12.0" - } - }, - "node_modules/@rolldown/binding-openharmony-arm64": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/@rolldown/binding-openharmony-arm64/-/binding-openharmony-arm64-1.2.7.tgz", - "integrity": "sha512-lTcIYmmnQQA8Or/2DatS6oSqcdLHvendjS+zLu+FwgToynWMRSmQdpM65fTANJgIS4mjbMOo5KT2lnT9SAb96w==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "openharmony" - ], - "peer": true, - "engines": { - "node": "^20.19.0 || >=22.12.0" - } - }, - "node_modules/@rolldown/binding-win32-arm64-msvc": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.2.7.tgz", - "integrity": "sha512-e3Gu3WxbNk/UqQhxqU7YIYO+9ZBvWNz3U+h/qRFosscMFzdRPbXYSaSWgSnklv2fz1TgzBTcti2z35c/7irsHw==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "peer": true, - "engines": { - "node": "^20.19.0 || >=22.12.0" - } - }, - "node_modules/@rolldown/binding-win32-x64-msvc": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.2.7.tgz", - "integrity": "sha512-W/jg5qoRSqjsEv0+dZi4e687mcHqmVuU0P4fK6qS/xjetW2Gmc1W8j//z5nAeNcC8Ttm0hV46IjcYeuVwYhuiw==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "peer": true, - "engines": { - "node": "^20.19.0 || >=22.12.0" - } - }, - "node_modules/@rolldown/pluginutils": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.1.tgz", - "integrity": "sha512-2j9bGt5Jh8hj+vPtgzPtl72j0yRxHAyumoo6TNfAjsLB04UtpSvPbPcDcBMxz7n+9CYB0c1GxQFxYRg2jimqGw==", - "dev": true, - "license": "MIT", - "peer": true - }, - "node_modules/@scure/base": { - "version": "1.2.6", - "resolved": "https://registry.npmjs.org/@scure/base/-/base-1.2.6.tgz", - "integrity": "sha512-g/nm5FgUa//MCj1gV09zTJTaM6KBAHqLN907YVQqf7zC49+DcO4B1so4ZX07Ef10Twr6nuqYEH9GEggFXA4Fmg==", - "license": "MIT", - "funding": { - "url": "https://paulmillr.com/funding/" - } - }, - "node_modules/@scure/bip32": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.7.0.tgz", - "integrity": "sha512-E4FFX/N3f4B80AKWp5dP6ow+flD1LQZo/w8UnLGYZO674jS6YnYeepycOOksv+vLPSpgN35wgKgy+ybfTb2SMw==", - "license": "MIT", - "dependencies": { - "@noble/curves": "~1.9.0", - "@noble/hashes": "~1.8.0", - "@scure/base": "~1.2.5" - }, - "funding": { - "url": "https://paulmillr.com/funding/" - } - }, - "node_modules/@scure/bip39": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.6.0.tgz", - "integrity": "sha512-+lF0BbLiJNwVlev4eKelw1WWLaiKXw7sSl8T6FvBlWkdX+94aGJ4o8XjUdlyhTCjd8c+B3KT3JfS8P0bLRNU6A==", - "license": "MIT", - "dependencies": { - "@noble/hashes": "~1.8.0", - "@scure/base": "~1.2.5" - }, - "funding": { - "url": "https://paulmillr.com/funding/" - } - }, - "node_modules/@types/chai": { - "version": "5.2.3", - "resolved": "https://registry.npmjs.org/@types/chai/-/chai-5.2.3.tgz", - "integrity": "sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/deep-eql": "*", - "assertion-error": "^2.0.1" - } - }, - "node_modules/@types/deep-eql": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/@types/deep-eql/-/deep-eql-4.0.2.tgz", - "integrity": "sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/estree": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.9.tgz", - "integrity": "sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/json-schema": { - "version": "7.0.15", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", - "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/node": { - "version": "22.18.11", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.18.11.tgz", - "integrity": "sha512-Gd33J2XIrXurb+eT2ktze3rJAfAp9ZNjlBdh4SVgyrKEOADwCbdUDaK7QgJno8Ue4kcajscsKqu6n8OBG3hhCQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "undici-types": "~6.21.0" - } - }, - "node_modules/@typescript-eslint/eslint-plugin": { - "version": "8.69.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.69.0.tgz", - "integrity": "sha512-t5jQTKPIgVW1PE6dR6H6Qz5gm8zjMlX5/2gRaOGd9eO6V7J+tQc6iWKukEe7dY8u9HyYasQ0yfF0/FSSTEO2gA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@eslint-community/regexpp": "^4.12.2", - "@typescript-eslint/scope-manager": "8.69.0", - "@typescript-eslint/type-utils": "8.69.0", - "@typescript-eslint/utils": "8.69.0", - "@typescript-eslint/visitor-keys": "8.69.0", - "ignore": "^7.0.5", - "natural-compare": "^1.4.0", - "ts-api-utils": "^2.5.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "@typescript-eslint/parser": "^8.69.0", - "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", - "typescript": ">=4.8.4 <6.1.0" - } - }, - "node_modules/@typescript-eslint/eslint-plugin/node_modules/ignore": { - "version": "7.0.8", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.8.tgz", - "integrity": "sha512-YYNsSlXBjMk92SKnkwvB5LOVSa6OznlFUGcsvrFgNJbJCd0M1XKeFVRc8ZByeCqz32FivYNHJVooLmdqrmvp/Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 4" - } - }, - "node_modules/@typescript-eslint/parser": { - "version": "8.69.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.69.0.tgz", - "integrity": "sha512-l4b0DhWioGg6Gt2ebGlvfkFMOjRsauxtsnDRwUSRX1qHq3HdTfQHV8wW9zEXeciai6HfeaKOedQn2Zoofx3WBw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/scope-manager": "8.69.0", - "@typescript-eslint/types": "8.69.0", - "@typescript-eslint/typescript-estree": "8.69.0", - "@typescript-eslint/visitor-keys": "8.69.0", - "debug": "^4.4.3" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", - "typescript": ">=4.8.4 <6.1.0" - } - }, - "node_modules/@typescript-eslint/project-service": { - "version": "8.69.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.69.0.tgz", - "integrity": "sha512-yi4obFrHMmnsesWehHbkg9zMA7Jt8cXT+mKM08G999pH1yT6nqgsHx7MYm0uY1wAj8CqiBXYRJ7WAT0QdQHQXg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/tsconfig-utils": "^8.69.0", - "@typescript-eslint/types": "^8.69.0", - "debug": "^4.4.3" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "typescript": ">=4.8.4 <6.1.0" - } - }, - "node_modules/@typescript-eslint/scope-manager": { - "version": "8.69.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.69.0.tgz", - "integrity": "sha512-ewfspqWvSxKSOaplqAUNbaSFO0eB6w1EtQ+esfYFRm3614Ty4uNtExkcbgd6nWsXphbqKyf9ZYdbZdv2xEoWEQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/types": "8.69.0", - "@typescript-eslint/visitor-keys": "8.69.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/tsconfig-utils": { - "version": "8.69.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.69.0.tgz", - "integrity": "sha512-xNqK7YTDZsLniQMV/4rpFR8Z5JlqeRvVjuG1YgF/mdPVH84HSD19L8CczMA0qg2RfwEV231GHH3VnToJDo4MfQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "typescript": ">=4.8.4 <6.1.0" - } - }, - "node_modules/@typescript-eslint/type-utils": { - "version": "8.69.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.69.0.tgz", - "integrity": "sha512-ZfoJAVg3JZndQEpEl9petVlxau3lRuElc4HRMuAlLCf8to04/iHz692RUSNmXKDjEuJmIL+KZ2/BsOcBc16dsA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/types": "8.69.0", - "@typescript-eslint/typescript-estree": "8.69.0", - "@typescript-eslint/utils": "8.69.0", - "debug": "^4.4.3", - "ts-api-utils": "^2.5.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", - "typescript": ">=4.8.4 <6.1.0" - } - }, - "node_modules/@typescript-eslint/types": { - "version": "8.69.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.69.0.tgz", - "integrity": "sha512-K3VrubUPhlo9VDBS6QdI8YB5j7ClpqLRdefcz6PFrhnwicehBweqQ9Evhl4l+FYz0HdDmMqIiSX0aldGRYtDCA==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/typescript-estree": { - "version": "8.69.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.69.0.tgz", - "integrity": "sha512-AdFkgqck3Vudb/kWnxlyafU/4aBhHrbQ9locP2N4psXTy5mOBg0SHJumnLvx7r6g1gV4DKvUFwV2nJZBoqOD8w==", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/project-service": "8.69.0", - "@typescript-eslint/tsconfig-utils": "8.69.0", - "@typescript-eslint/types": "8.69.0", - "@typescript-eslint/visitor-keys": "8.69.0", - "debug": "^4.4.3", - "minimatch": "^10.2.2", - "semver": "^7.7.3", - "tinyglobby": "^0.2.15", - "ts-api-utils": "^2.5.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "typescript": ">=4.8.4 <6.1.0" - } - }, - "node_modules/@typescript-eslint/typescript-estree/node_modules/balanced-match": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz", - "integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==", - "dev": true, - "license": "MIT", - "engines": { - "node": "18 || 20 || >=22" - } - }, - "node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": { - "version": "5.0.9", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.9.tgz", - "integrity": "sha512-ScQ4IuvIEF1TMlP7Zt+vjJ//9zlPb2SDcxWxM3bk8s6t6GGdJ7KO1dCcTidOPJKePW30LE/2cT7wCyPho9/Wxg==", - "dev": true, - "license": "MIT", - "dependencies": { - "balanced-match": "^4.0.2" - }, - "engines": { - "node": "20 || >=22" - } - }, - "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": { - "version": "10.2.6", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.6.tgz", - "integrity": "sha512-vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A==", - "dev": true, - "license": "BlueOak-1.0.0", - "dependencies": { - "brace-expansion": "^5.0.8" - }, - "engines": { - "node": "18 || 20 || >=22" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/@typescript-eslint/utils": { - "version": "8.69.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.69.0.tgz", - "integrity": "sha512-tUbx60BBqQa31kXF5MCsOOLL5E/WzUuxIn7YpAvq+eaUlqvk8/NXnXMBNAdLCr0icjkzem7iUA5QqWHe/hJ1aw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@eslint-community/eslint-utils": "^4.9.1", - "@typescript-eslint/scope-manager": "8.69.0", - "@typescript-eslint/types": "8.69.0", - "@typescript-eslint/typescript-estree": "8.69.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", - "typescript": ">=4.8.4 <6.1.0" - } - }, - "node_modules/@typescript-eslint/visitor-keys": { - "version": "8.69.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.69.0.tgz", - "integrity": "sha512-+rmdgPA+EXkNgKYvHvFfhrs35utXbwaC5PGpDquSXcoXQDKUA5UjV0LmTucG/4JXkM31BTu4TilHtrN8IVBe8w==", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/types": "8.69.0", - "eslint-visitor-keys": "^5.0.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-5.0.1.tgz", - "integrity": "sha512-tD40eHxA35h0PEIZNeIjkHoDR4YjjJp34biM0mDvplBe//mB+IHCqHDGV7pxF+7MklTvighcCPPZC7ynWyjdTA==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": "^20.19.0 || ^22.13.0 || >=24" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/@vitest/mocker": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-5.0.0.tgz", - "integrity": "sha512-66PGTMIiVJP3t4a5yxU9qPtf7MdTBs8jmToMvy+HVflB3Yy13WJZTtPePdvU+wjRV02SKK5doLbSA6o9pwOmiA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/trace-mapping": "0.3.31", - "@vitest/spy": "5.0.0", - "estree-walker": "^3.0.3", - "magic-string": "^1.2.3" - }, - "funding": { - "url": "https://opencollective.com/vitest" - }, - "peerDependencies": { - "msw": "^2.4.9", - "vite": "^6.0.0 || ^7.0.0 || ^8.0.0" - }, - "peerDependenciesMeta": { - "msw": { - "optional": true - }, - "vite": { - "optional": true - } - } - }, - "node_modules/@vitest/spy": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-5.0.0.tgz", - "integrity": "sha512-uy+luWBAPw9XfthoHi5AkfHUnuPYEESjl0p/r+meoBnU8bxg5GDQ3Ey8MjcJ6sqahkL4PFyrvfMJJBw7LbU06g==", - "dev": true, - "license": "MIT", - "funding": { - "url": "https://opencollective.com/vitest" - } - }, - "node_modules/abitype": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/abitype/-/abitype-1.2.3.tgz", - "integrity": "sha512-Ofer5QUnuUdTFsBRwARMoWKOH1ND5ehwYhJ3OJ/BQO+StkwQjHw0XyVh4vDttzHB7QOFhPHa/o413PJ82gU/Tg==", - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/wevm" - }, - "peerDependencies": { - "typescript": ">=5.0.4", - "zod": "^3.22.0 || ^4.0.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - }, - "zod": { - "optional": true - } - } - }, - "node_modules/acorn": { - "version": "8.18.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.18.0.tgz", - "integrity": "sha512-lGq+9yr1/GuAWaVYIHRjvvySG5/4VfKIvC8EWxStPdcDh/Ka7FG3twP6v4d5BkravUilhIAsG4Qj83t02LWUPQ==", - "dev": true, - "license": "MIT", - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/acorn-jsx": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", - "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", - "dev": true, - "license": "MIT", - "peerDependencies": { - "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" - } - }, - "node_modules/ajv": { - "version": "6.15.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.15.0.tgz", - "integrity": "sha512-fgFx7Hfoq60ytK2c7DhnF8jIvzYgOMxfugjLOSMHjLIPgenqa7S7oaagATUq99mV6IYvN2tRmC0wnTYX6iPbMw==", - "dev": true, - "license": "MIT", - "dependencies": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "license": "MIT", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true, - "license": "Python-2.0" - }, - "node_modules/assertion-error": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-2.0.1.tgz", - "integrity": "sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - } - }, - "node_modules/balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "dev": true, - "license": "MIT" - }, - "node_modules/brace-expansion": { - "version": "1.1.18", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.18.tgz", - "integrity": "sha512-Edep/X9fGqVNmzKBVsDYIOtD+z1tuezV70LBjdCst9Tqu76lsnvRiZ6oTic1n+/BIwX6QDGAO94PN4N2SADvtw==", - "dev": true, - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/callsites": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/chai": { - "version": "6.2.2", - "resolved": "https://registry.npmjs.org/chai/-/chai-6.2.2.tgz", - "integrity": "sha512-NUPRluOfOiTKBKvWPtSD4PhFvWCqOi0BGStNWs57X9js7XGTprSmFoz5F0tWhR4WPjNeR9jXqdC7/UpSJTnlRg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18" - } - }, - "node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true, - "license": "MIT" - }, - "node_modules/concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", - "dev": true, - "license": "MIT" - }, - "node_modules/cross-spawn": { - "version": "7.0.6", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", - "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", - "dev": true, - "license": "MIT", - "dependencies": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/debug": { - "version": "4.4.3", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", - "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ms": "^2.1.3" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, - "node_modules/deep-is": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", - "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/detect-libc": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz", - "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==", - "dev": true, - "license": "Apache-2.0", - "peer": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/es-module-lexer": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-2.3.2.tgz", - "integrity": "sha512-poHGpORABojJJucnV9KbOavETW8lBVnphkW77ER5/BQ5Fz7oXSoCNek7IH3vR5nRjdsEz926ibFYX8KtLQmdyw==", - "dev": true, - "license": "MIT" - }, - "node_modules/escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/eslint": { - "version": "9.39.1", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.39.1.tgz", - "integrity": "sha512-BhHmn2yNOFA9H9JmmIVKJmd288g9hrVRDkdoIgRCRuSySRUHH7r/DI6aAXW9T1WwUuY3DFgrcaqB+deURBLR5g==", - "deprecated": "This version is no longer supported. Please see https://eslint.org/version-support for other options.", - "dev": true, - "license": "MIT", - "dependencies": { - "@eslint-community/eslint-utils": "^4.8.0", - "@eslint-community/regexpp": "^4.12.1", - "@eslint/config-array": "^0.21.1", - "@eslint/config-helpers": "^0.4.2", - "@eslint/core": "^0.17.0", - "@eslint/eslintrc": "^3.3.1", - "@eslint/js": "9.39.1", - "@eslint/plugin-kit": "^0.4.1", - "@humanfs/node": "^0.16.6", - "@humanwhocodes/module-importer": "^1.0.1", - "@humanwhocodes/retry": "^0.4.2", - "@types/estree": "^1.0.6", - "ajv": "^6.12.4", - "chalk": "^4.0.0", - "cross-spawn": "^7.0.6", - "debug": "^4.3.2", - "escape-string-regexp": "^4.0.0", - "eslint-scope": "^8.4.0", - "eslint-visitor-keys": "^4.2.1", - "espree": "^10.4.0", - "esquery": "^1.5.0", - "esutils": "^2.0.2", - "fast-deep-equal": "^3.1.3", - "file-entry-cache": "^8.0.0", - "find-up": "^5.0.0", - "glob-parent": "^6.0.2", - "ignore": "^5.2.0", - "imurmurhash": "^0.1.4", - "is-glob": "^4.0.0", - "json-stable-stringify-without-jsonify": "^1.0.1", - "lodash.merge": "^4.6.2", - "minimatch": "^3.1.2", - "natural-compare": "^1.4.0", - "optionator": "^0.9.3" - }, - "bin": { - "eslint": "bin/eslint.js" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://eslint.org/donate" - }, - "peerDependencies": { - "jiti": "*" - }, - "peerDependenciesMeta": { - "jiti": { - "optional": true - } - } - }, - "node_modules/eslint-scope": { - "version": "8.4.0", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.4.0.tgz", - "integrity": "sha512-sNXOfKCn74rt8RICKMvJS7XKV/Xk9kA7DyJr8mJik3S7Cwgy3qlkkmyS2uQB3jiJg6VNdZd/pDBJu0nvG2NlTg==", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^5.2.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/eslint-visitor-keys": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz", - "integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/espree": { - "version": "10.4.0", - "resolved": "https://registry.npmjs.org/espree/-/espree-10.4.0.tgz", - "integrity": "sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "acorn": "^8.15.0", - "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^4.2.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/esquery": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.7.0.tgz", - "integrity": "sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g==", - "dev": true, - "license": "BSD-3-Clause", - "dependencies": { - "estraverse": "^5.1.0" - }, - "engines": { - "node": ">=0.10" - } - }, - "node_modules/esrecurse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", - "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "estraverse": "^5.2.0" - }, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "dev": true, - "license": "BSD-2-Clause", - "engines": { - "node": ">=4.0" - } - }, - "node_modules/estree-walker": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz", - "integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/estree": "^1.0.0" - } - }, - "node_modules/esutils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true, - "license": "BSD-2-Clause", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/eventemitter3": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-5.0.1.tgz", - "integrity": "sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA==", - "license": "MIT" - }, - "node_modules/expect-type": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/expect-type/-/expect-type-1.4.0.tgz", - "integrity": "sha512-KfYbmpRm0VbLjEvVa9yGwCi9GI34xvi7A/HXYWQO65CSD2u3MczUJSuwXKFIxlGsgBQizV9q5J9NHj4VG0n+pA==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">=12.0.0" - } - }, - "node_modules/fast-deep-equal": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", - "dev": true, - "license": "MIT" - }, - "node_modules/fast-json-stable-stringify": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", - "dev": true, - "license": "MIT" - }, - "node_modules/fast-levenshtein": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", - "dev": true, - "license": "MIT" - }, - "node_modules/fdir": { - "version": "6.5.0", - "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", - "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12.0.0" - }, - "peerDependencies": { - "picomatch": "^3 || ^4" - }, - "peerDependenciesMeta": { - "picomatch": { - "optional": true - } - } - }, - "node_modules/file-entry-cache": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz", - "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "flat-cache": "^4.0.0" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/find-up": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", - "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", - "dev": true, - "license": "MIT", - "dependencies": { - "locate-path": "^6.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/flat-cache": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz", - "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==", - "dev": true, - "license": "MIT", - "dependencies": { - "flatted": "^3.2.9", - "keyv": "^4.5.4" - }, - "engines": { - "node": ">=16" - } - }, - "node_modules/flatted": { - "version": "3.4.4", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.4.4.tgz", - "integrity": "sha512-5+ybhBZANEJxaH3X5evAFatUxLfEHSr7n6kYJ+1Qd0mUqr4eu9gIf6GDbWHf8RJijHrjjO8G+la14SlL2SeS1Q==", - "dev": true, - "license": "ISC" - }, - "node_modules/fsevents": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", - "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", - "dev": true, - "hasInstallScript": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "peer": true, - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - } - }, - "node_modules/glob-parent": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", - "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", - "dev": true, - "license": "ISC", - "dependencies": { - "is-glob": "^4.0.3" - }, - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/globals": { - "version": "14.0.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz", - "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/ignore": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", - "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 4" - } - }, - "node_modules/import-fresh": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz", - "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "parent-module": "^1.0.0", - "resolve-from": "^4.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/imurmurhash": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.8.19" - } - }, - "node_modules/is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-glob": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", - "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", - "dev": true, - "license": "MIT", - "dependencies": { - "is-extglob": "^2.1.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "dev": true, - "license": "ISC" - }, - "node_modules/isows": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/isows/-/isows-1.0.7.tgz", - "integrity": "sha512-I1fSfDCZL5P0v33sVqeTDSpcstAg/N+wF5HS033mogOVIp4B+oHC7oOCsA3axAbBSGTJ8QubbNmnIRN/h8U7hg==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/wevm" - } - ], - "license": "MIT", - "peerDependencies": { - "ws": "*" - } - }, - "node_modules/js-yaml": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.3.2.tgz", - "integrity": "sha512-SFNOvSJ+Dgf/9An904Yx+CgSlIPCkIpao4qo51lpee25TIRejdH3rhR4EZMGoNx3/TP3O+wzWuiTFl4sqbltzA==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/puzrin" - }, - { - "type": "github", - "url": "https://github.com/sponsors/nodeca" - } - ], - "license": "MIT", - "dependencies": { - "argparse": "^2.0.1" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/json-buffer": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", - "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true, - "license": "MIT" - }, - "node_modules/json-stable-stringify-without-jsonify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", - "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", - "dev": true, - "license": "MIT" - }, - "node_modules/keyv": { - "version": "4.5.4", - "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", - "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", - "dev": true, - "license": "MIT", - "dependencies": { - "json-buffer": "3.0.1" - } - }, - "node_modules/levn": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", - "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "prelude-ls": "^1.2.1", - "type-check": "~0.4.0" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/lightningcss": { - "version": "1.33.0", - "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.33.0.tgz", - "integrity": "sha512-WkUDrojuJs0xkgGf2udWxa3yGBRxPtxUkB79i6aCZLRgc7PM8fZe9TosfPDcvEpQZbuFASnHYmRLBLUbmLOIIA==", - "dev": true, - "license": "MPL-2.0", - "peer": true, - "dependencies": { - "detect-libc": "^2.0.3" - }, - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - }, - "optionalDependencies": { - "lightningcss-android-arm64": "1.33.0", - "lightningcss-darwin-arm64": "1.33.0", - "lightningcss-darwin-x64": "1.33.0", - "lightningcss-freebsd-x64": "1.33.0", - "lightningcss-linux-arm-gnueabihf": "1.33.0", - "lightningcss-linux-arm64-gnu": "1.33.0", - "lightningcss-linux-arm64-musl": "1.33.0", - "lightningcss-linux-x64-gnu": "1.33.0", - "lightningcss-linux-x64-musl": "1.33.0", - "lightningcss-win32-arm64-msvc": "1.33.0", - "lightningcss-win32-x64-msvc": "1.33.0" - } - }, - "node_modules/lightningcss-android-arm64": { - "version": "1.33.0", - "resolved": "https://registry.npmjs.org/lightningcss-android-arm64/-/lightningcss-android-arm64-1.33.0.tgz", - "integrity": "sha512-gEpRTalKdosp4Bb8qWtc2iOgE5SeIHlpS1up9bFq2wAyYhl1UdTObYiHe98zEM9SQvSoqQZ1IQD0JNpg3Ml5pg==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MPL-2.0", - "optional": true, - "os": [ - "android" - ], - "peer": true, - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/lightningcss-darwin-arm64": { - "version": "1.33.0", - "resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.33.0.tgz", - "integrity": "sha512-Sciaz8eenNTKn9b3t7+xr0ipTp9YxKQY4npwQ3mrRuL0BAVHBLyZxofhaKBAVtzmtRZ/zTyo0/to4B1uWG/Djg==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MPL-2.0", - "optional": true, - "os": [ - "darwin" - ], - "peer": true, - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/lightningcss-darwin-x64": { - "version": "1.33.0", - "resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.33.0.tgz", - "integrity": "sha512-Z5UPAxzrjlWNNyGy6i65cJzzvgJ5D3T6wMvs+gWpY9d7qRhANrxqAp6LhxIgZhWEw18RfJTGcRxjuLIBr+m8XQ==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MPL-2.0", - "optional": true, - "os": [ - "darwin" - ], - "peer": true, - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/lightningcss-freebsd-x64": { - "version": "1.33.0", - "resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.33.0.tgz", - "integrity": "sha512-QQM/Ti/hQajJwCY+RiWuCZ9sdtI/XQk7nDK5vC8kkdwixezOlDgvDx7+RT+QjK6FcFT4MpsuoBnHIo/O3StRRg==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MPL-2.0", - "optional": true, - "os": [ - "freebsd" - ], - "peer": true, - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/lightningcss-linux-arm-gnueabihf": { - "version": "1.33.0", - "resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.33.0.tgz", - "integrity": "sha512-N7FVBe6iS24MlM6R/4RBTxGhQheZGs7tiQ9U32UtF75NzP5Q7xWPRqLBCKxlRQRk3rY1jCIPLzx7WzOhuUIRLQ==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MPL-2.0", - "optional": true, - "os": [ - "linux" - ], - "peer": true, - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/lightningcss-linux-arm64-gnu": { - "version": "1.33.0", - "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.33.0.tgz", - "integrity": "sha512-j2v/itmy4HlNxlc6voKXYgBqNi0Ng2LShg4z7GufpEgs05P+2suBVyi9I6YHq5uoVFx9ETin3eCEhLVyXGQnKg==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MPL-2.0", - "optional": true, - "os": [ - "linux" - ], - "peer": true, - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/lightningcss-linux-arm64-musl": { - "version": "1.33.0", - "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.33.0.tgz", - "integrity": "sha512-yiO5ROMuYQgXbC60yjZU5CYSFZGKXL0HFATXt9mHJn1+zW55oCtMI9NfcVhYLMFDL7gV7oBPon/EmMMGg2OvtQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MPL-2.0", - "optional": true, - "os": [ - "linux" - ], - "peer": true, - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/lightningcss-linux-x64-gnu": { - "version": "1.33.0", - "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.33.0.tgz", - "integrity": "sha512-ar+Ju7LmcN0Jo4FpL4hpFybwNG9/3A/Br5KW2n2jyODg3MEZXaDYADdemoNS+BDNfMgKvylJLj4S5tyRActuAg==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MPL-2.0", - "optional": true, - "os": [ - "linux" - ], - "peer": true, - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/lightningcss-linux-x64-musl": { - "version": "1.33.0", - "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.33.0.tgz", - "integrity": "sha512-RYiYbkokw0trfKqqzfF55lginwEPrD3OJDfTuJzFs1MK6iFnDenaz1fqLLtX4ITG3OktJQXOeTaw1awrBAlZPw==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MPL-2.0", - "optional": true, - "os": [ - "linux" - ], - "peer": true, - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/lightningcss-win32-arm64-msvc": { - "version": "1.33.0", - "resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.33.0.tgz", - "integrity": "sha512-1K+MPfLSFVpphzpdbfkhlWk6wBrTObBzS2T6db10PNOZgR9GoVsAWzwNyuhUYYbTp23j+4RrncfujZ4uAzXvwA==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MPL-2.0", - "optional": true, - "os": [ - "win32" - ], - "peer": true, - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/lightningcss-win32-x64-msvc": { - "version": "1.33.0", - "resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.33.0.tgz", - "integrity": "sha512-OlEICDx/Xl0FqSp4bry8zFnCvGpig3Gl4gCquvYwHuqJKEC1+n9NgDniFvqHGmMv1ZkqDJrDqKKSykTDX+ehuA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MPL-2.0", - "optional": true, - "os": [ - "win32" - ], - "peer": true, - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/locate-path": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", - "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", - "dev": true, - "license": "MIT", - "dependencies": { - "p-locate": "^5.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/lodash.merge": { - "version": "4.6.2", - "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", - "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/magic-string": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-1.2.3.tgz", - "integrity": "sha512-Bpb0W2TbLKOZ7vJnOUnVRGq3WL2p+ISV29M6hYPL1AFCpyKZpdr5ytiXoTSSxRVhg8YW7f65+6gbG8WG6PCa/g==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/sourcemap-codec": "^1.5.5" - } - }, - "node_modules/minimatch": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.5.tgz", - "integrity": "sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==", - "dev": true, - "license": "ISC", - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/ms": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "dev": true, - "license": "MIT" - }, - "node_modules/nanoid": { - "version": "3.3.18", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.18.tgz", - "integrity": "sha512-DTg4MJbGMWkfi6VZFdNt2/caMbQy4Ou+Op/hJQvGEWcnVfoA1QA+xzRKAzw9jD6+GVOOeYr/mIcuDSdug6F6+w==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "MIT", - "peer": true, - "bin": { - "nanoid": "bin/nanoid.cjs" - }, - "engines": { - "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" - } - }, - "node_modules/natural-compare": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", - "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", - "dev": true, - "license": "MIT" - }, - "node_modules/obug": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/obug/-/obug-2.1.4.tgz", - "integrity": "sha512-4a+OsYv9UktOJKE+l1A4OufDgdRF9PifWj+tJnHURo/P+WOxpG4GzUFL9qCalmWauao6ogiG+QvnCovwPoyAWA==", - "dev": true, - "funding": [ - "https://github.com/sponsors/sxzz", - "https://opencollective.com/debug" - ], - "license": "MIT", - "engines": { - "node": ">=12.20.0" - } - }, - "node_modules/optionator": { - "version": "0.9.4", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", - "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", - "dev": true, - "license": "MIT", - "dependencies": { - "deep-is": "^0.1.3", - "fast-levenshtein": "^2.0.6", - "levn": "^0.4.1", - "prelude-ls": "^1.2.1", - "type-check": "^0.4.0", - "word-wrap": "^1.2.5" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/ox": { - "version": "0.14.44", - "resolved": "https://registry.npmjs.org/ox/-/ox-0.14.44.tgz", - "integrity": "sha512-O54qXXHEk4ySamMSyBpI0AeBegS5frxU6+LA6Jb9Sf6kMOxcTNaxYmwZfpOu22DIQsdKfgQxHq8EsAGaoBQScA==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/wevm" - } - ], - "license": "MIT", - "dependencies": { - "@adraffy/ens-normalize": "^1.11.0", - "@noble/ciphers": "^1.3.0", - "@noble/curves": "1.9.1", - "@noble/hashes": "^1.8.0", - "@scure/bip32": "^1.7.0", - "@scure/bip39": "^1.6.0", - "abitype": "^1.2.3", - "eventemitter3": "5.0.1" - }, - "peerDependencies": { - "typescript": ">=5.4.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "yocto-queue": "^0.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/p-locate": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", - "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", - "dev": true, - "license": "MIT", - "dependencies": { - "p-limit": "^3.0.2" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/parent-module": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", - "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", - "dev": true, - "license": "MIT", - "dependencies": { - "callsites": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/picocolors": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", - "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", - "dev": true, - "license": "ISC", - "peer": true - }, - "node_modules/picomatch": { - "version": "4.0.7", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz", - "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, - "node_modules/postcss": { - "version": "8.5.28", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.28.tgz", - "integrity": "sha512-RRuzqDtt5Y9h3quz5hWhK+TPnsmVs6WwSU6LkJMeY4HstUEDuYTG8UJSdawMRzmzAtV+KEoG8N3Qg2qLy5vM/A==", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/postcss" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "MIT", - "peer": true, - "dependencies": { - "nanoid": "^3.3.18", - "picocolors": "^1.1.1", - "source-map-js": "^1.2.1" - }, - "engines": { - "node": "^10 || ^12 || >=14" - } - }, - "node_modules/prelude-ls": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", - "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/punycode": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", - "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/resolve-from": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", - "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/rolldown": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/rolldown/-/rolldown-1.2.7.tgz", - "integrity": "sha512-g0EtLvBjTUB7jhyV0S/TCup3v/XSVl45vUIGbOGU4QPiyjTenCe4mKuFvW9fEgYmS2Fo42AUssRmNuMziXdrig==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "@oxc-project/types": "=0.148.0", - "@rolldown/pluginutils": "^1.0.0" - }, - "bin": { - "rolldown": "bin/cli.mjs" - }, - "engines": { - "node": "^20.19.0 || >=22.12.0" - }, - "optionalDependencies": { - "@rolldown/binding-android-arm-eabi": "1.2.7", - "@rolldown/binding-android-arm64": "1.2.7", - "@rolldown/binding-darwin-arm64": "1.2.7", - "@rolldown/binding-darwin-x64": "1.2.7", - "@rolldown/binding-freebsd-x64": "1.2.7", - "@rolldown/binding-linux-arm-gnueabihf": "1.2.7", - "@rolldown/binding-linux-arm64-gnu": "1.2.7", - "@rolldown/binding-linux-arm64-musl": "1.2.7", - "@rolldown/binding-linux-ppc64-gnu": "1.2.7", - "@rolldown/binding-linux-s390x-gnu": "1.2.7", - "@rolldown/binding-linux-x64-gnu": "1.2.7", - "@rolldown/binding-linux-x64-musl": "1.2.7", - "@rolldown/binding-openharmony-arm64": "1.2.7", - "@rolldown/binding-win32-arm64-msvc": "1.2.7", - "@rolldown/binding-win32-x64-msvc": "1.2.7" - } - }, - "node_modules/semver": { - "version": "7.8.5", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz", - "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==", - "dev": true, - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dev": true, - "license": "MIT", - "dependencies": { - "shebang-regex": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/siginfo": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/siginfo/-/siginfo-2.0.0.tgz", - "integrity": "sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==", - "dev": true, - "license": "ISC" - }, - "node_modules/source-map-js": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", - "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", - "dev": true, - "license": "BSD-3-Clause", - "peer": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/stackback": { - "version": "0.0.2", - "resolved": "https://registry.npmjs.org/stackback/-/stackback-0.0.2.tgz", - "integrity": "sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==", - "dev": true, - "license": "MIT" - }, - "node_modules/std-env": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/std-env/-/std-env-4.2.0.tgz", - "integrity": "sha512-oCUKSupKTHX53EyjDtuZQ64pjLJ6yYCtpmEw0goYxtjG9KpbRe8KAsl2tBUGU9DyMcJ0RwJ8GqJAFzMXcXW1Rw==", - "dev": true, - "license": "MIT" - }, - "node_modules/strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "license": "MIT", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/tinybench": { - "version": "6.1.4", - "resolved": "https://registry.npmjs.org/tinybench/-/tinybench-6.1.4.tgz", - "integrity": "sha512-9APumHG7r4yOk4X4WlkmE71aZcv1gvin1czO3OQ1U9iJcFA5Ja/ygyb0vPOVHTthFozUYs8CLoLUlM8grb2lTQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=20.0.0" - } - }, - "node_modules/tinyexec": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-1.3.0.tgz", - "integrity": "sha512-QKAl9m8gWWGHV8jZcPeym6j+XULi6tOf1mT83WYJ4Lk2ytW/uwAWkrP0uFsdoYMdueVJ0qs26wZ+23xeB4ibNQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18" - } - }, - "node_modules/tinyglobby": { - "version": "0.2.17", - "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.17.tgz", - "integrity": "sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==", - "dev": true, - "license": "MIT", - "dependencies": { - "fdir": "^6.5.0", - "picomatch": "^4.0.4" - }, - "engines": { - "node": ">=12.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/SuperchupuDev" - } - }, - "node_modules/ts-api-utils": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.5.0.tgz", - "integrity": "sha512-OJ/ibxhPlqrMM0UiNHJ/0CKQkoKF243/AEmplt3qpRgkW8VG7IfOS41h7V8TjITqdByHzrjcS/2si+y4lIh8NA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18.12" - }, - "peerDependencies": { - "typescript": ">=4.8.4" - } - }, - "node_modules/type-check": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", - "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", - "dev": true, - "license": "MIT", - "dependencies": { - "prelude-ls": "^1.2.1" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/typescript": { - "version": "5.9.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", - "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", - "devOptional": true, - "license": "Apache-2.0", - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=14.17" - } - }, - "node_modules/typescript-eslint": { - "version": "8.69.0", - "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.69.0.tgz", - "integrity": "sha512-B3MltX0VqjUBNEe3b3sSuiRbfa6XrfHFtBiPamjT5AsW/dfq+y+bc0wyuS9DxAS1LyzCxRp2+rxzpLUvqM2BvA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/eslint-plugin": "8.69.0", - "@typescript-eslint/parser": "8.69.0", - "@typescript-eslint/typescript-estree": "8.69.0", - "@typescript-eslint/utils": "8.69.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", - "typescript": ">=4.8.4 <6.1.0" - } - }, - "node_modules/undici-types": { - "version": "6.21.0", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz", - "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/uri-js": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", - "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "punycode": "^2.1.0" - } - }, - "node_modules/viem": { - "version": "2.56.3", - "resolved": "https://registry.npmjs.org/viem/-/viem-2.56.3.tgz", - "integrity": "sha512-vUObq3GO7D3lz9gPNEE/xd5jIUnMbeVDWewh252o54pDEDlW4pDe6FEd/qTGL5RyK52cGHMM7kQ3wjxhilEvkQ==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/wevm" - } - ], - "license": "MIT", - "dependencies": { - "@noble/curves": "1.9.1", - "@noble/hashes": "1.8.0", - "@scure/bip32": "1.7.0", - "@scure/bip39": "1.6.0", - "abitype": "1.2.3", - "isows": "1.0.7", - "ox": "0.14.44", - "ws": "8.21.0" - }, - "peerDependencies": { - "typescript": ">=5.0.4" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/vite": { - "version": "8.2.2", - "resolved": "https://registry.npmjs.org/vite/-/vite-8.2.2.tgz", - "integrity": "sha512-cFKLV/PRgAUlIRm5WjMjJ86jrftzpqcgH+Us+DS8mI3CDNiH30Whrz8uHL3+MOLPAgqbMBAqWdAHAphOAM+z/Q==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "lightningcss": "^1.33.0", - "picomatch": "^4.0.5", - "postcss": "^8.5.26", - "rolldown": "~1.2.4", - "tinyglobby": "^0.2.17" - }, - "bin": { - "vite": "bin/vite.js" - }, - "engines": { - "node": "^20.19.0 || >=22.12.0" - }, - "funding": { - "url": "https://github.com/vitejs/vite?sponsor=1" - }, - "optionalDependencies": { - "fsevents": "~2.3.3" - }, - "peerDependencies": { - "@types/node": "^20.19.0 || >=22.12.0", - "@vitejs/devtools": "^0.4.0 || ^0.5.0", - "esbuild": "^0.27.0 || ^0.28.0", - "jiti": ">=1.21.0", - "less": "^4.0.0", - "sass": "^1.70.0", - "sass-embedded": "^1.70.0", - "stylus": ">=0.54.8", - "sugarss": "^5.0.0", - "terser": "^5.16.0", - "tsx": "^4.8.1", - "yaml": "^2.4.2" - }, - "peerDependenciesMeta": { - "@types/node": { - "optional": true - }, - "@vitejs/devtools": { - "optional": true - }, - "esbuild": { - "optional": true - }, - "jiti": { - "optional": true - }, - "less": { - "optional": true - }, - "sass": { - "optional": true - }, - "sass-embedded": { - "optional": true - }, - "stylus": { - "optional": true - }, - "sugarss": { - "optional": true - }, - "terser": { - "optional": true - }, - "tsx": { - "optional": true - }, - "yaml": { - "optional": true - } - } - }, - "node_modules/vitest": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/vitest/-/vitest-5.0.0.tgz", - "integrity": "sha512-gpsMNoRhMjMktVxPtstOH4/PJuPyovVaMDr4oDilXaGH1EcqM2OE96SoHT2VIQ6fTGtTjqmHDrEu2X9RQiXf8Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/chai": "^5.2.2", - "@vitest/mocker": "5.0.0", - "chai": "^6.2.2", - "es-module-lexer": "^2.3.2", - "expect-type": "^1.4.0", - "magic-string": "^1.2.3", - "obug": "^2.1.4", - "picomatch": "^4.0.7", - "std-env": "^4.2.0", - "tinybench": "6.1.4", - "tinyexec": "1.3.0", - "tinyglobby": "^0.2.17", - "why-is-node-running": "^2.3.0" - }, - "bin": { - "vitest": "vitest.mjs" - }, - "engines": { - "node": "^22.12.0 || ^24.0.0 || >=26.0.0" - }, - "funding": { - "url": "https://opencollective.com/vitest" - }, - "peerDependencies": { - "@edge-runtime/vm": "*", - "@opentelemetry/api": "^1.9.0", - "@types/node": "^22.0.0 || >=24.0.0", - "@vitest/browser-playwright": "5.0.0", - "@vitest/browser-preview": "5.0.0", - "@vitest/browser-webdriverio": "^5.0.0-beta.5 || >=5.0.0", - "@vitest/coverage-istanbul": "5.0.0", - "@vitest/coverage-v8": "5.0.0", - "@vitest/ui": "5.0.0", - "happy-dom": "*", - "jsdom": "*", - "vite": "^6.4.0 || ^7.0.0 || ^8.0.0" - }, - "peerDependenciesMeta": { - "@edge-runtime/vm": { - "optional": true - }, - "@opentelemetry/api": { - "optional": true - }, - "@types/node": { - "optional": true - }, - "@vitest/browser-playwright": { - "optional": true - }, - "@vitest/browser-preview": { - "optional": true - }, - "@vitest/browser-webdriverio": { - "optional": true - }, - "@vitest/coverage-istanbul": { - "optional": true - }, - "@vitest/coverage-v8": { - "optional": true - }, - "@vitest/ui": { - "optional": true - }, - "happy-dom": { - "optional": true - }, - "jsdom": { - "optional": true - }, - "vite": { - "optional": false - } - } - }, - "node_modules/which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dev": true, - "license": "ISC", - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "node-which": "bin/node-which" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/why-is-node-running": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/why-is-node-running/-/why-is-node-running-2.3.0.tgz", - "integrity": "sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==", - "dev": true, - "license": "MIT", - "dependencies": { - "siginfo": "^2.0.0", - "stackback": "0.0.2" - }, - "bin": { - "why-is-node-running": "cli.js" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/word-wrap": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", - "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/ws": { - "version": "8.21.0", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.21.0.tgz", - "integrity": "sha512-Vsp28b7DRcimFQvrqu2Wek3z1iYxDCWqHYB8Qsnk/S4RfaCQzPGPyBNuVjJV3cd6UiKtUtp6sNM77gWvzcCH+g==", - "license": "MIT", - "engines": { - "node": ">=10.0.0" - }, - "peerDependencies": { - "bufferutil": "^4.0.1", - "utf-8-validate": ">=5.0.2" - }, - "peerDependenciesMeta": { - "bufferutil": { - "optional": true - }, - "utf-8-validate": { - "optional": true - } - } - }, - "node_modules/yocto-queue": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", - "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - } - } -} diff --git a/packages/arc-adapter/package.json b/packages/arc-adapter/package.json index 57c409f..2310ca9 100644 --- a/packages/arc-adapter/package.json +++ b/packages/arc-adapter/package.json @@ -2,40 +2,30 @@ "name": "@oneshot/arc-adapter", "version": "0.1.0", "private": true, - "description": "Arc deployment profiles, settlement configuration, readiness probing, and redaction for OneShot.", + "description": "Arc deployment profiles, settlement configuration, readiness probing, receipt verification, and redaction for OneShot.", "license": "MIT", "type": "module", - "engines": { - "node": ">=22.12.0" - }, "main": "./dist/index.js", "types": "./dist/index.d.ts", "exports": { ".": { "types": "./dist/index.d.ts", - "default": "./dist/index.js" + "import": "./dist/index.js" } }, - "files": [ - "dist" - ], "scripts": { - "build": "tsc --project tsconfig.build.json", - "typecheck": "tsc --noEmit", + "build": "tsc -b", + "clean": "tsc -b --clean", "lint": "eslint src test", - "test": "vitest run", - "test:watch": "vitest", - "check": "npm run lint && npm run typecheck && npm run test && npm run build" + "test": "vitest run --config vitest.config.ts", + "typecheck": "tsc -b --pretty false", + "probe": "pnpm build && node bin/probe.js" }, "dependencies": { "viem": "2.56.3" }, - "devDependencies": { - "@eslint/js": "9.39.1", - "@types/node": "22.18.11", - "eslint": "9.39.1", - "typescript": "5.9.3", - "typescript-eslint": "8.69.0", - "vitest": "5.0.0" - } + "files": [ + "dist", + "bin" + ] } diff --git a/packages/arc-adapter/src/evidence.ts b/packages/arc-adapter/src/evidence.ts new file mode 100644 index 0000000..63023e7 --- /dev/null +++ b/packages/arc-adapter/src/evidence.ts @@ -0,0 +1,194 @@ +/** + * EvidencePort lookup (B04.2, B04.3). + * + * Answers "what happened to this specific request?" from persisted identity, + * without ever answering "so you may pay again". + * + * `NOT_FOUND` is the dangerous result and gets the strictest treatment. An + * absent transaction can mean it was never broadcast, or that it is in a + * mempool this node cannot see, or that the node is behind, or that it was + * replaced. `.agent/SECURITY_INVARIANTS.md` is explicit: never infer + * non-payment from an empty or delayed external result. So `NOT_FOUND` is an + * observation, never a permission, and this module has no code path that turns + * one into the other. + */ + +import { verifyReceipt, type ExpectedSettlement, type TransactionReceipt } from './receipt.js'; + +export type EvidenceResult = + /** Final receipt and exactly the expected Transfer. */ + | 'FINAL_SUCCESS' + /** Final receipt proving the transaction reverted. */ + | 'FINAL_REVERT' + /** Known to exist, not yet final. */ + | 'PENDING' + /** No record found. NOT proof that nothing happened. */ + | 'NOT_FOUND' + /** The question could not be asked. */ + | 'UNAVAILABLE'; + +export interface EvidenceObservation { + readonly result: EvidenceResult; + /** Sanitized detail suitable for an operator timeline. */ + readonly detail: string; + /** + * Whether this observation binds to the exact expected request. + * + * Unbound evidence is real but describes something else, and must never + * resolve the intent it was fetched for. + */ + readonly boundToRequest: boolean; +} + +/** What the caller persisted before submitting, used to look evidence up. */ +export interface PersistedIdentity { + readonly transactionHash?: string | undefined; + readonly walletAddress: string; + readonly chainId: number; + readonly tokenContract: string; + readonly recipient: string; + readonly amountAtomic: bigint; +} + +// No `nonce` field: binding is done on the transaction hash, and a declared +// nonce nobody reads would imply a "wrong nonce" defence that does not exist. + +/** A receipt lookup that may fail or find nothing. */ +export interface ReceiptSource { + getReceipt(transactionHash: string): Promise; +} + +function expectedFrom(identity: PersistedIdentity): ExpectedSettlement { + return { + chainId: identity.chainId, + walletAddress: identity.walletAddress, + tokenContract: identity.tokenContract, + recipient: identity.recipient, + amountAtomic: identity.amountAtomic, + }; +} + +/** + * Look up evidence for a persisted identity. + * + * Without a transaction hash there is nothing to bind to, so the answer is + * `NOT_FOUND` and unbound. Hashless discovery is Coder C's Subgraph MCP path + * and is deliberately absent here: this adapter must not develop a second, + * weaker way to decide a payment happened. + */ +export async function lookupEvidence( + identity: PersistedIdentity, + source: ReceiptSource, +): Promise { + if (identity.transactionHash === undefined || identity.transactionHash === '') { + return { + result: 'NOT_FOUND', + detail: + 'No transaction hash was persisted for this attempt. Absence of a hash ' + + 'is not evidence that no transaction exists.', + boundToRequest: false, + }; + } + + let receipt: TransactionReceipt | null; + try { + receipt = await source.getReceipt(identity.transactionHash); + } catch (error) { + const message = error instanceof Error ? error.message : String(error); + return { + result: 'UNAVAILABLE', + detail: `Evidence lookup failed: ${message.slice(0, 200)}`, + boundToRequest: false, + }; + } + + if (receipt === null) { + // The single most misread result in the system. + return { + result: 'NOT_FOUND', + detail: + 'No receipt found for the persisted hash. The transaction may be ' + + 'pending, replaced, or invisible to this node. This is not proof that ' + + 'no payment occurred and never permits resubmission.', + boundToRequest: false, + }; + } + + // Bind before interpreting. A receipt for a different chain or wallet is + // real evidence about something that is not this request. + if (receipt.chainId !== identity.chainId) { + return { + result: 'NOT_FOUND', + detail: `Receipt is from chain ${receipt.chainId}, not ${identity.chainId}; it does not describe this request.`, + boundToRequest: false, + }; + } + + if (receipt.transactionHash.toLowerCase() !== identity.transactionHash.toLowerCase()) { + return { + result: 'NOT_FOUND', + detail: 'The returned receipt is for a different transaction hash.', + boundToRequest: false, + }; + } + + const verdict = verifyReceipt(receipt, expectedFrom(identity)); + + switch (verdict.result) { + case 'CONFIRMED': + return { + result: 'FINAL_SUCCESS', + detail: `Verified settlement in block ${receipt.blockNumber.toString()}.`, + boundToRequest: true, + }; + + case 'FINAL_REVERT': + return { + result: 'FINAL_REVERT', + detail: 'Transaction reverted on chain; no value moved.', + boundToRequest: true, + }; + + case 'NOT_CONFIRMED': + // A receipt exists for our hash but does not prove our settlement. + // Contradictory, and ambiguity must be preserved rather than resolved. + return { + result: 'PENDING', + detail: `Receipt found but it does not prove the expected settlement: ${verdict.detail}`, + boundToRequest: false, + }; + + default: { + const unreachable: never = verdict; + return { + result: 'UNAVAILABLE', + detail: `Unhandled receipt verdict: ${String(unreachable)}`, + boundToRequest: false, + }; + } + } +} + +/** + * Whether an observation may terminate an intent. + * + * Only bound, final evidence qualifies. Everything else leaves the intent + * where it was, which for an ambiguous attempt means `UNKNOWN`. + */ +export function isTerminalEvidence(observation: EvidenceObservation): boolean { + if (!observation.boundToRequest) return false; + return observation.result === 'FINAL_SUCCESS' || observation.result === 'FINAL_REVERT'; +} + +/** + * Whether evidence from this port ever permits creating another settlement. + * + * Always false, and it takes no observation on purpose: there is no input that + * could change the answer. The function exists so the rule is written down + * once, where a future caller will find it, rather than re-derived per call + * site. Only a `FINAL_REVERT` may lead to a new attempt, and that decision + * belongs to the reconciliation policy Coder C owns, not to this adapter. + */ +export function permitsResubmission(): false { + return false; +} diff --git a/packages/arc-adapter/src/failure-taxonomy.ts b/packages/arc-adapter/src/failure-taxonomy.ts new file mode 100644 index 0000000..1ef10ff --- /dev/null +++ b/packages/arc-adapter/src/failure-taxonomy.ts @@ -0,0 +1,168 @@ +/** + * Submission failure taxonomy (B04.1). + * + * Turns a real transport or provider error into a submission outcome. + * + * The whole file turns on one question: **did the request reach the network?** + * + * A DNS failure or a connection refusal happens before any bytes reach the + * provider, so nothing can have been broadcast. A timeout, a reset mid-flight, + * or a truncated response all happen at or after the moment the request left, + * so a transaction may exist. The first group permits a retry; the second + * never does. + * + * Getting this boundary wrong in the safe direction costs a stuck payment that + * a human reconciles. Getting it wrong in the unsafe direction pays twice. + */ + +import type { ProviderResponse, SubmissionOutcome } from './outcome.js'; +import { classifyOutcome } from './outcome.js'; + +/** + * Transport failures that provably happened before the request was sent. + * + * Every entry needs a documented reason why no byte reached the provider. + * Adding one widens retry permission, so the bar is proof, not likelihood. + */ +export type PreBroadcastFailure = + /** Hostname never resolved. No connection was opened. */ + | 'DNS_RESOLUTION_FAILED' + /** The peer actively refused the connection. No request was sent. */ + | 'CONNECTION_REFUSED' + /** TLS handshake failed before any application data was transmitted. */ + | 'TLS_HANDSHAKE_FAILED' + /** The request was rejected locally before being written to the socket. */ + | 'LOCAL_VALIDATION_FAILED'; + +/** + * Failures that may have occurred after the request was sent. + * + * Note `TLS_INTERRUPTED` sits here while `TLS_HANDSHAKE_FAILED` sits above: + * an interrupted connection may have already delivered the request. + */ +export type PostSendAmbiguity = + | 'REQUEST_TIMEOUT' + | 'CONNECTION_RESET' + | 'TLS_INTERRUPTED' + | 'RATE_LIMITED_429' + | 'SERVER_ERROR_5XX' + | 'TRUNCATED_RESPONSE' + | 'MALFORMED_RESPONSE' + | 'LOST_SUCCESS_RESPONSE' + | 'PROCESS_TERMINATED'; + +export type TransportFailure = + | { readonly phase: 'PRE_BROADCAST'; readonly kind: PreBroadcastFailure } + | { readonly phase: 'POST_SEND'; readonly kind: PostSendAmbiguity }; + +/** + * Node error codes that prove the request never left. + * + * `ECONNREFUSED` means the peer rejected the TCP handshake. `ENOTFOUND` and + * `EAI_AGAIN` are DNS. None of them can coexist with a delivered request. + * + * `ECONNRESET` and `ETIMEDOUT` are deliberately absent: both can occur after + * the request was written. + */ +const PRE_BROADCAST_ERROR_CODES: Readonly> = { + ENOTFOUND: 'DNS_RESOLUTION_FAILED', + EAI_AGAIN: 'DNS_RESOLUTION_FAILED', + ECONNREFUSED: 'CONNECTION_REFUSED', + ERR_TLS_CERT_ALTNAME_INVALID: 'TLS_HANDSHAKE_FAILED', + UNABLE_TO_VERIFY_LEAF_SIGNATURE: 'TLS_HANDSHAKE_FAILED', + CERT_HAS_EXPIRED: 'TLS_HANDSHAKE_FAILED', + DEPTH_ZERO_SELF_SIGNED_CERT: 'TLS_HANDSHAKE_FAILED', +}; + +const POST_SEND_ERROR_CODES: Readonly> = { + ECONNRESET: 'CONNECTION_RESET', + ETIMEDOUT: 'REQUEST_TIMEOUT', + ERR_SOCKET_CONNECTION_TIMEOUT: 'REQUEST_TIMEOUT', + EPIPE: 'CONNECTION_RESET', + ERR_STREAM_PREMATURE_CLOSE: 'TRUNCATED_RESPONSE', +}; + +function errorCodeOf(error: unknown): string | undefined { + if (typeof error !== 'object' || error === null) return undefined; + const code = (error as { code?: unknown }).code; + return typeof code === 'string' ? code : undefined; +} + +/** + * Classify a thrown transport error. + * + * Anything unrecognized is `POST_SEND`. An error this build has never seen + * cannot be proof that nothing was broadcast, and treating it as such is the + * failure mode that pays twice. + */ +export function classifyTransportError(error: unknown): TransportFailure { + const code = errorCodeOf(error); + + if (code !== undefined) { + const pre = PRE_BROADCAST_ERROR_CODES[code]; + if (pre) return { phase: 'PRE_BROADCAST', kind: pre }; + + const post = POST_SEND_ERROR_CODES[code]; + if (post) return { phase: 'POST_SEND', kind: post }; + } + + return { phase: 'POST_SEND', kind: 'MALFORMED_RESPONSE' }; +} + +/** + * Classify an HTTP status. + * + * A 4xx other than 429 means the provider rejected the request on its own + * terms and did not act on it. 429 is excluded: a rate limiter may reject + * either before or after the work is queued, so it stays ambiguous. + */ +export function classifyHttpStatus(status: number): TransportFailure { + if (status === 429) return { phase: 'POST_SEND', kind: 'RATE_LIMITED_429' }; + if (status >= 500) return { phase: 'POST_SEND', kind: 'SERVER_ERROR_5XX' }; + if (status >= 400) { + return { phase: 'PRE_BROADCAST', kind: 'LOCAL_VALIDATION_FAILED' }; + } + // A 2xx or 3xx reaching this path means the caller could not interpret the + // body, which says nothing about whether the transaction was broadcast. + return { phase: 'POST_SEND', kind: 'MALFORMED_RESPONSE' }; +} + +/** Map a transport failure onto the SettlementPort response shape. */ +export function toProviderResponse(failure: TransportFailure): ProviderResponse { + if (failure.phase === 'PRE_BROADCAST') { + return { kind: 'PRE_SUBMISSION_FAILURE', proof: 'REQUEST_VALIDATION_FAILED' }; + } + + const kind: PostSendAmbiguity = failure.kind; + + switch (kind) { + case 'REQUEST_TIMEOUT': + return { kind: 'AMBIGUOUS', signal: 'TIMEOUT' }; + case 'CONNECTION_RESET': + case 'TLS_INTERRUPTED': + return { kind: 'AMBIGUOUS', signal: 'CONNECTION_RESET' }; + case 'RATE_LIMITED_429': + return { kind: 'AMBIGUOUS', signal: 'RATE_LIMITED' }; + case 'SERVER_ERROR_5XX': + return { kind: 'AMBIGUOUS', signal: 'PROVIDER_5XX' }; + case 'TRUNCATED_RESPONSE': + return { kind: 'AMBIGUOUS', signal: 'TRUNCATED_RESPONSE' }; + case 'MALFORMED_RESPONSE': + return { kind: 'AMBIGUOUS', signal: 'MALFORMED_RESPONSE' }; + case 'LOST_SUCCESS_RESPONSE': + return { kind: 'AMBIGUOUS', signal: 'LOST_RESPONSE' }; + case 'PROCESS_TERMINATED': + return { kind: 'AMBIGUOUS', signal: 'PROCESS_CRASH' }; + default: { + // Exhaustive over PostSendAmbiguity. A new member added without a case + // lands here and is treated as unrecognized, which fails closed. + const unreachable: never = kind; + return { kind: 'UNRECOGNIZED', detail: String(unreachable) }; + } + } +} + +/** Convenience: classify a transport failure straight to an outcome. */ +export function outcomeForTransportFailure(failure: TransportFailure): SubmissionOutcome { + return classifyOutcome(toProviderResponse(failure)).outcome; +} diff --git a/packages/arc-adapter/src/index.ts b/packages/arc-adapter/src/index.ts index 2630b35..2745e75 100644 --- a/packages/arc-adapter/src/index.ts +++ b/packages/arc-adapter/src/index.ts @@ -3,3 +3,9 @@ export * from './money.js'; export * from './redaction.js'; export * from './config.js'; export * from './readiness.js'; +export * from './receipt.js'; +export * from './outcome.js'; +export * from './viem-probe.js'; +export * from './probe-cli.js'; +export * from './failure-taxonomy.js'; +export * from './evidence.js'; diff --git a/packages/arc-adapter/src/outcome.ts b/packages/arc-adapter/src/outcome.ts new file mode 100644 index 0000000..ca932e2 --- /dev/null +++ b/packages/arc-adapter/src/outcome.ts @@ -0,0 +1,133 @@ +/** + * Submission outcome classifier (B02.5). + * + * Maps a provider or RPC response to one of the three SettlementPort results + * in `milestones/CONTRACTS.md` section 5. Pure: no network, no durable state, + * no clock. + * + * The whole module exists to make one bias structural: **doubt means + * `POSSIBLY_SUBMITTED`**. `DEFINITELY_NOT_SUBMITTED` is a strong claim that no + * external effect occurred, and it is the only result that permits a fresh + * attempt without reconciliation. It is therefore granted only for narrow, + * documented proofs, and every unrecognized shape falls through to + * `POSSIBLY_SUBMITTED`. + * + * `.agent/SECURITY_INVARIANTS.md`: a timeout, crash, disconnect, lost response, + * or provider error after possible submission creates `UNKNOWN`. + */ + +export type SubmissionOutcome = + /** Verified final receipt and exactly matching Transfer evidence. */ + | 'CONFIRMED' + /** Narrow documented proof that no broadcast or external effect occurred. */ + | 'DEFINITELY_NOT_SUBMITTED' + /** Any doubt at all. Maps to durable UNKNOWN and requires reconciliation. */ + | 'POSSIBLY_SUBMITTED'; + +/** + * Failure shapes that prove the request never reached the network. + * + * Each is a pre-flight rejection: the provider refused the request before + * broadcasting anything, so no transaction can exist. Adding to this list + * widens the set of situations that permit a retry, so entries need real + * documented proof. + */ +export type PreSubmissionProof = + /** Privy policy denied the action. Nothing was signed. */ + | 'POLICY_DENIED' + /** Request failed schema validation at the provider before signing. */ + | 'REQUEST_VALIDATION_FAILED' + /** Local scope check refused the transaction before it was ever sent. */ + | 'LOCAL_SCOPE_DENIED' + /** Authorization was rejected as expired or invalid before signing. */ + | 'AUTHORIZATION_INVALID'; + +/** + * Ambiguous shapes. Listed for documentation and exhaustiveness; every one of + * them classifies as `POSSIBLY_SUBMITTED`. + */ +export type AmbiguousSignal = + | 'TIMEOUT' + | 'CONNECTION_RESET' + | 'LOST_RESPONSE' + | 'TRUNCATED_RESPONSE' + | 'MALFORMED_RESPONSE' + | 'PROVIDER_5XX' + | 'RATE_LIMITED' + | 'PROCESS_CRASH' + | 'UNKNOWN_ERROR'; + +export type ProviderResponse = + /** A receipt was obtained and independently verified as confirmed. */ + | { readonly kind: 'VERIFIED_RECEIPT'; readonly confirmed: boolean } + /** The provider proved it never submitted. */ + | { readonly kind: 'PRE_SUBMISSION_FAILURE'; readonly proof: PreSubmissionProof } + /** Something went wrong and we cannot prove what. */ + | { readonly kind: 'AMBIGUOUS'; readonly signal: AmbiguousSignal } + /** A shape this build does not recognize. */ + | { readonly kind: 'UNRECOGNIZED'; readonly detail: string }; + +export interface Classification { + readonly outcome: SubmissionOutcome; + /** Sanitized explanation suitable for an operator timeline. */ + readonly reason: string; +} + +/** + * Classify a provider response. + * + * Note the asymmetry in the `VERIFIED_RECEIPT` case: a confirmed receipt gives + * `CONFIRMED`, but an unconfirmed one does NOT give + * `DEFINITELY_NOT_SUBMITTED`. Failing to prove a settlement happened is not + * proof that it did not; the transaction may be pending, or the receipt may be + * for an attempt whose Transfer we could not match yet. + */ +export function classifyOutcome(response: ProviderResponse): Classification { + switch (response.kind) { + case 'VERIFIED_RECEIPT': + return response.confirmed + ? { + outcome: 'CONFIRMED', + reason: 'Final receipt and exactly the expected Transfer were verified.', + } + : { + outcome: 'POSSIBLY_SUBMITTED', + reason: + 'A receipt was obtained but did not prove the expected settlement. ' + + 'Absence of proof is not proof of absence; reconcile before retrying.', + }; + + case 'PRE_SUBMISSION_FAILURE': + return { + outcome: 'DEFINITELY_NOT_SUBMITTED', + reason: `The request was refused before broadcast (${response.proof}); no external effect occurred.`, + }; + + case 'AMBIGUOUS': + return { + outcome: 'POSSIBLY_SUBMITTED', + reason: `The outcome is unknown after ${response.signal}; the transaction may have been broadcast.`, + }; + + case 'UNRECOGNIZED': + // An unrecognized response must never widen retry permission. This is + // the fail-closed default the module exists for. + return { + outcome: 'POSSIBLY_SUBMITTED', + reason: 'The provider response was not recognized, so submission cannot be ruled out.', + }; + + default: { + const unreachable: never = response; + return { + outcome: 'POSSIBLY_SUBMITTED', + reason: `Unhandled response shape: ${String(unreachable)}`, + }; + } + } +} + +/** Only this outcome permits a fresh attempt without reconciliation. */ +export function permitsImmediateRetry(outcome: SubmissionOutcome): boolean { + return outcome === 'DEFINITELY_NOT_SUBMITTED'; +} diff --git a/packages/arc-adapter/src/probe-cli.ts b/packages/arc-adapter/src/probe-cli.ts new file mode 100644 index 0000000..3c9eeb9 --- /dev/null +++ b/packages/arc-adapter/src/probe-cli.ts @@ -0,0 +1,63 @@ +/** + * Read-only readiness command (B03.1 §7). + * + * Loads configuration from the environment, probes the configured Arc + * endpoint, and prints a per-check report. It performs no mutation, signs + * nothing, and prints no credential. + * + * This exists because `npm run check` runs unit tests against stubs. Those + * prove the probe's logic; they say nothing about whether a particular + * operator's endpoint, chain, and token are correct. Only this command does. + * + * Exit codes: 0 ready, 1 not ready. + */ + +import { loadSettlementConfig } from './config.js'; +import { probeReadiness } from './readiness.js'; +import { createViemProbe } from './viem-probe.js'; + +const SYMBOL: Readonly> = { + PASS: 'PASS ', + MISMATCH: 'MISMATCH', + UNAVAILABLE: 'UNAVAIL', + SKIPPED: 'SKIP ', +}; + +export async function runProbe(env: NodeJS.ProcessEnv): Promise { + let config; + try { + config = loadSettlementConfig(env); + } catch (error) { + // Configuration errors name the variable, never its value. + console.error(`Configuration error: ${(error as Error).message}`); + return 1; + } + + console.log(`profile : ${config.profile.id} (chain ${config.profile.chainId})`); + console.log(`token : ${config.profile.tokenContract}`); + console.log(`settle : ${config.profile.tokenDecimals} decimals`); + console.log(`gas : ${config.profile.nativeDecimals} decimals`); + console.log(''); + + const report = await probeReadiness(config, createViemProbe(config)); + + for (const check of report.checks) { + console.log(`${SYMBOL[check.status] ?? check.status} ${check.name}: ${check.detail}`); + } + + console.log(''); + if (report.ready) { + console.log('READY'); + return 0; + } + + if (report.hasMismatch) { + // The distinction that matters to whoever is reading this output. + console.log('NOT READY: identity mismatch. A human must fix the configuration.'); + console.log('Do not retry; a mismatch will not resolve on its own.'); + } else { + console.log('NOT READY: endpoint unavailable. Configuration may be correct.'); + console.log('Retrying later is reasonable.'); + } + return 1; +} diff --git a/packages/arc-adapter/src/receipt.ts b/packages/arc-adapter/src/receipt.ts new file mode 100644 index 0000000..10125e7 --- /dev/null +++ b/packages/arc-adapter/src/receipt.ts @@ -0,0 +1,159 @@ +/** + * Arc receipt verification (B02.4). + * + * Confirms a settlement only from an exact final receipt plus exactly the + * expected ERC-20 Transfer log. + * + * The rule that matters: `status: 1` alone is NOT confirmation. A transaction + * can succeed while transferring nothing we asked for, or while emitting a + * Transfer to somewhere else. Confirmation requires the receipt to prove the + * specific movement of the specific amount to the specific recipient. + * + * `milestones/CONTRACTS.md`: "Arc receipt plus expected ERC-20 Transfer + * evidence establishes committed settlement." + */ + +/** keccak256("Transfer(address,address,uint256)"). */ +export const TRANSFER_EVENT_TOPIC = + '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef'; + +export interface ReceiptLog { + readonly address: string; + /** topic0 is the event signature; topic1/topic2 are indexed from/to. */ + readonly topics: readonly string[]; + /** ABI-encoded non-indexed data. For Transfer this is the amount word. */ + readonly data: string; + readonly logIndex: number; +} + +export interface TransactionReceipt { + readonly transactionHash: string; + readonly chainId: number; + /** The wallet that sent the transaction. */ + readonly from: string; + /** The contract called. For a direct transfer this is the token. */ + readonly to: string; + /** 1 success, 0 revert. */ + readonly status: 0 | 1; + readonly blockNumber: bigint; + readonly blockHash: string; + readonly logs: readonly ReceiptLog[]; +} + +/** Exactly what the receipt must prove. */ +export interface ExpectedSettlement { + readonly chainId: number; + readonly walletAddress: string; + readonly tokenContract: string; + readonly recipient: string; + readonly amountAtomic: bigint; +} + +export type ReceiptVerdict = + /** Final receipt and exactly the expected Transfer. Terminal success. */ + | { readonly result: 'CONFIRMED'; readonly transferLogIndex: number } + /** Final revert. Terminal failure; no value moved. */ + | { readonly result: 'FINAL_REVERT'; readonly detail: string } + /** + * The receipt exists but does not prove the expected settlement. Never + * treated as failure: something happened on-chain and it must be reconciled. + */ + | { readonly result: 'NOT_CONFIRMED'; readonly detail: string }; + +function sameAddress(left: string, right: string): boolean { + return left.trim().toLowerCase() === right.trim().toLowerCase(); +} + +/** Decode a 32-byte address topic into an address. */ +function addressFromTopic(topic: string): string { + return `0x${topic.slice(-40)}`.toLowerCase(); +} + +/** Decode a 32-byte word as an unsigned integer. */ +function amountFromData(data: string): bigint | undefined { + const normalized = data.trim().toLowerCase(); + if (!/^0x[0-9a-f]{64}$/.test(normalized)) return undefined; + return BigInt(normalized); +} + +/** + * Verify a receipt against the expected settlement. + * + * Every identity is checked before the logs are inspected, so a receipt for a + * different chain, wallet, or transaction can never be matched by log content + * alone. + */ +export function verifyReceipt( + receipt: TransactionReceipt, + expected: ExpectedSettlement, +): ReceiptVerdict { + if (receipt.chainId !== expected.chainId) { + return { + result: 'NOT_CONFIRMED', + detail: `Receipt is from chain ${receipt.chainId}, expected ${expected.chainId}.`, + }; + } + + if (!sameAddress(receipt.from, expected.walletAddress)) { + return { + result: 'NOT_CONFIRMED', + detail: 'Receipt was not sent by the configured execution wallet.', + }; + } + + if (receipt.status === 0) { + // A revert moved no value. This is the one case that is safely terminal + // and permits the policy to schedule a fresh attempt. + return { result: 'FINAL_REVERT', detail: 'Transaction reverted; no value moved.' }; + } + + if (!sameAddress(receipt.to, expected.tokenContract)) { + return { + result: 'NOT_CONFIRMED', + detail: 'Receipt did not call the configured USDC contract.', + }; + } + + // Only Transfer logs emitted by the configured token count. A Transfer from + // some other contract proves nothing about our USDC balance. + const candidates = receipt.logs.filter( + (log) => + sameAddress(log.address, expected.tokenContract) && + log.topics[0]?.toLowerCase() === TRANSFER_EVENT_TOPIC, + ); + + const matches = candidates.filter((log) => { + const from = log.topics[1]; + const to = log.topics[2]; + if (from === undefined || to === undefined) return false; + if (!sameAddress(addressFromTopic(from), expected.walletAddress)) return false; + if (!sameAddress(addressFromTopic(to), expected.recipient)) return false; + return amountFromData(log.data) === expected.amountAtomic; + }); + + if (matches.length === 0) { + // Success status with no matching Transfer is explicitly NOT confirmation. + return { + result: 'NOT_CONFIRMED', + detail: + 'Receipt status is success but it contains no Transfer matching the ' + + 'expected sender, recipient, and amount.', + }; + } + + if (matches.length > 1) { + // Two identical transfers in one transaction means more value moved than + // the obligation authorized. Refusing to confirm forces reconciliation. + return { + result: 'NOT_CONFIRMED', + detail: `Receipt contains ${matches.length} matching Transfer logs; expected exactly one.`, + }; + } + + const match = matches[0]; + if (match === undefined) { + return { result: 'NOT_CONFIRMED', detail: 'Matching Transfer log could not be read.' }; + } + + return { result: 'CONFIRMED', transferLogIndex: match.logIndex }; +} diff --git a/packages/arc-adapter/src/redaction.ts b/packages/arc-adapter/src/redaction.ts index c0a84ca..10ade7b 100644 --- a/packages/arc-adapter/src/redaction.ts +++ b/packages/arc-adapter/src/redaction.ts @@ -52,7 +52,39 @@ const FORBIDDEN_VALUE_PATTERNS: readonly RegExp[] = [ /-----BEGIN [A-Z ]*PRIVATE KEY-----/, /\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\./, // JWT /\bBearer\s+[A-Za-z0-9._-]{10,}/i, - /\b0x[a-fA-F0-9]{64}\b/, // 32-byte hex: private key or signing material +]; + +/** + * 32-byte hex, which is the shape of both a private key and a keccak hash. + * + * Shape alone cannot tell them apart, so this is applied only OUTSIDE the + * fields below. Applying it everywhere destroyed the evidence: transaction + * hashes, block hashes, event topics, ABI-encoded words, and payload + * fingerprints are all 32-byte hex, and redacting them left fixtures that no + * longer proved the settlement they were captured to prove. + */ +const THIRTY_TWO_BYTE_HEX = /\b0x[a-fA-F0-9]{64}\b/; + +/** + * Fields where 32-byte hex is the expected, publishable content. + * + * Key material never legitimately travels under these names; it travels under + * the FORBIDDEN_KEY_PATTERNS names, which are redacted regardless of shape. + */ +const HASH_BEARING_FIELDS: readonly string[] = [ + 'transactionhash', + 'blockhash', + 'parenthash', + 'hash', + 'topics', + 'data', + 'payloadfingerprint', + 'idempotencykey', + 'fingerprint', + 'digest', + 'replayof', + 'memoid', + 'root', ]; /** @@ -68,8 +100,14 @@ function keyIsForbidden(key: string): boolean { return FORBIDDEN_KEY_PATTERNS.some((pattern) => normalized.includes(normalizeKey(pattern))); } -function valueLooksLikeSecret(value: string): boolean { - return FORBIDDEN_VALUE_PATTERNS.some((pattern) => pattern.test(value)); +function valueLooksLikeSecret(value: string, fieldName?: string): boolean { + if (FORBIDDEN_VALUE_PATTERNS.some((pattern) => pattern.test(value))) return true; + + // Only treat bare 32-byte hex as secret when it is NOT in a field that + // legitimately carries a hash. + const field = fieldName === undefined ? undefined : normalizeKey(fieldName); + const hashBearing = field !== undefined && HASH_BEARING_FIELDS.includes(field); + return !hashBearing && THIRTY_TWO_BYTE_HEX.test(value); } /** @@ -79,13 +117,13 @@ function valueLooksLikeSecret(value: string): boolean { * depth. Depth is bounded because a hostile or malformed provider response must * not be able to exhaust the stack inside the logging path. */ -export function redact(value: unknown, depth = 0): unknown { +export function redact(value: unknown, depth = 0, fieldName?: string): unknown { if (depth > 12) return REDACTED; if (value === null || value === undefined) return value; if (typeof value === 'string') { - return valueLooksLikeSecret(value) ? REDACTED : value; + return valueLooksLikeSecret(value, fieldName) ? REDACTED : value; } if (typeof value === 'bigint') return value.toString(10); @@ -93,13 +131,15 @@ export function redact(value: unknown, depth = 0): unknown { if (typeof value === 'number' || typeof value === 'boolean') return value; if (Array.isArray(value)) { - return value.map((entry) => redact(entry, depth + 1)); + // Array entries inherit the parent field name, so `topics: [...]` stays + // hash-bearing for every element. + return value.map((entry) => redact(entry, depth + 1, fieldName)); } if (typeof value === 'object') { const out: Record = {}; for (const [key, entry] of Object.entries(value as Record)) { - out[key] = keyIsForbidden(key) ? REDACTED : redact(entry, depth + 1); + out[key] = keyIsForbidden(key) ? REDACTED : redact(entry, depth + 1, key); } return out; } @@ -114,11 +154,11 @@ export function redact(value: unknown, depth = 0): unknown { * Used as a test guard on every committed fixture so a leak fails the suite * instead of reaching the repository. */ -export function assertNoSecrets(value: unknown, path = '$'): void { +export function assertNoSecrets(value: unknown, path = '$', fieldName?: string): void { if (value === null || value === undefined) return; if (typeof value === 'string') { - if (valueLooksLikeSecret(value)) { + if (valueLooksLikeSecret(value, fieldName)) { throw new Error(`Secret-shaped value found at ${path}.`); } return; @@ -126,7 +166,7 @@ export function assertNoSecrets(value: unknown, path = '$'): void { if (Array.isArray(value)) { value.forEach((entry, index) => { - assertNoSecrets(entry, `${path}[${index}]`); + assertNoSecrets(entry, `${path}[${index}]`, fieldName); }); return; } @@ -139,7 +179,7 @@ export function assertNoSecrets(value: unknown, path = '$'): void { } continue; } - assertNoSecrets(entry, `${path}.${key}`); + assertNoSecrets(entry, `${path}.${key}`, key); } } } diff --git a/packages/arc-adapter/src/viem-probe.ts b/packages/arc-adapter/src/viem-probe.ts new file mode 100644 index 0000000..92176bf --- /dev/null +++ b/packages/arc-adapter/src/viem-probe.ts @@ -0,0 +1,38 @@ +/** + * Live RPC probe backed by viem. + * + * The offline `RpcProbe` stubs prove the probe's logic. This implementation is + * what actually contacts a configured endpoint, and it is the only thing that + * can tell an operator whether THEIR setup is correct. + * + * Read-only by construction: it exposes `eth_chainId` and `eth_getCode` and + * nothing that can sign, send, or mutate. + */ + +import { createPublicClient, http } from 'viem'; +import type { SettlementConfig } from './config.js'; +import type { RpcProbe } from './readiness.js'; + +/** + * Build a probe against the configured endpoint. + * + * The chain is declared from the profile, but `checkChainId` still asks the + * endpoint what chain it is actually on. Trusting the declared value would + * defeat the check entirely. + */ +export function createViemProbe(config: SettlementConfig): RpcProbe { + const client = createPublicClient({ + transport: http(config.rpcUrl, { timeout: config.rpcTimeoutMs }), + }); + + return { + async getChainId(): Promise { + return await client.getChainId(); + }, + + async getCode(address: `0x${string}`): Promise { + const code = await client.getCode({ address }); + return code ?? null; + }, + }; +} diff --git a/packages/arc-adapter/test/evidence.test.ts b/packages/arc-adapter/test/evidence.test.ts new file mode 100644 index 0000000..ae819f0 --- /dev/null +++ b/packages/arc-adapter/test/evidence.test.ts @@ -0,0 +1,190 @@ +import { describe, expect, it } from 'vitest'; +import { + isTerminalEvidence, + lookupEvidence, + permitsResubmission, + type PersistedIdentity, + type ReceiptSource, +} from '../src/evidence.js'; +import { TRANSFER_EVENT_TOPIC, type TransactionReceipt } from '../src/receipt.js'; + +const WALLET = '0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'; +const RECIPIENT = '0x1111111111111111111111111111111111111111'; +const OTHER = '0x2222222222222222222222222222222222222222'; +const USDC = '0x3600000000000000000000000000000000000000'; +const HASH = `0x${'c'.repeat(64)}`; + +const IDENTITY: PersistedIdentity = { + transactionHash: HASH, + walletAddress: WALLET, + chainId: 5042002, + tokenContract: USDC, + recipient: RECIPIENT, + amountAtomic: 1_250_000n, +}; + +function topic(address: string): string { + return `0x${'0'.repeat(24)}${address.slice(2)}`; +} + +function receipt(overrides: Partial = {}): TransactionReceipt { + return { + transactionHash: HASH, + chainId: 5042002, + from: WALLET, + to: USDC, + status: 1, + blockNumber: 100n, + blockHash: `0x${'d'.repeat(64)}`, + logs: [ + { + address: USDC, + topics: [TRANSFER_EVENT_TOPIC, topic(WALLET), topic(RECIPIENT)], + data: `0x${(1_250_000n).toString(16).padStart(64, '0')}`, + logIndex: 3, + }, + ], + ...overrides, + }; +} + +function source(value: TransactionReceipt | null | Error): ReceiptSource { + return { + getReceipt: () => + value instanceof Error ? Promise.reject(value) : Promise.resolve(value), + }; +} + +describe('final evidence', () => { + it('reports FINAL_SUCCESS for a verified settlement', async () => { + const observation = await lookupEvidence(IDENTITY, source(receipt())); + expect(observation.result).toBe('FINAL_SUCCESS'); + expect(observation.boundToRequest).toBe(true); + expect(isTerminalEvidence(observation)).toBe(true); + }); + + it('reports FINAL_REVERT for a reverted transaction', async () => { + const observation = await lookupEvidence(IDENTITY, source(receipt({ status: 0, logs: [] }))); + expect(observation.result).toBe('FINAL_REVERT'); + expect(isTerminalEvidence(observation)).toBe(true); + }); +}); + +describe('NOT_FOUND is never permission', () => { + it('reports NOT_FOUND when no receipt exists', async () => { + const observation = await lookupEvidence(IDENTITY, source(null)); + expect(observation.result).toBe('NOT_FOUND'); + expect(observation.boundToRequest).toBe(false); + expect(isTerminalEvidence(observation)).toBe(false); + }); + + it('says explicitly that absence is not proof of non-payment', async () => { + const observation = await lookupEvidence(IDENTITY, source(null)); + expect(observation.detail).toMatch(/not proof/i); + }); + + it('never permits resubmission, whatever was observed', () => { + // Takes no argument on purpose: there is no observation a caller could + // produce that unlocks another settlement. Only a reconciliation policy + // may decide to attempt again, and that is not this adapter. + expect(permitsResubmission()).toBe(false); + }); + + it('leaves every non-final observation unable to terminate the intent', async () => { + for (const value of [null, receipt({ logs: [] }), receipt({ from: OTHER })]) { + const observation = await lookupEvidence(IDENTITY, source(value)); + expect(isTerminalEvidence(observation)).toBe(false); + } + }); + + it('reports NOT_FOUND and unbound when no hash was persisted', async () => { + // Hashless discovery is Coder C's Subgraph MCP path. This adapter must + // not grow a second, weaker way to decide a payment happened. + const observation = await lookupEvidence( + { ...IDENTITY, transactionHash: undefined }, + source(receipt()), + ); + expect(observation.result).toBe('NOT_FOUND'); + expect(observation.boundToRequest).toBe(false); + }); +}); + +describe('unavailability is distinct from absence', () => { + it('reports UNAVAILABLE when the lookup throws', async () => { + const observation = await lookupEvidence(IDENTITY, source(new Error('ECONNRESET'))); + expect(observation.result).toBe('UNAVAILABLE'); + expect(isTerminalEvidence(observation)).toBe(false); + }); + + it('truncates a large provider error', async () => { + const observation = await lookupEvidence(IDENTITY, source(new Error('x'.repeat(9000)))); + expect(observation.detail.length).toBeLessThan(300); + }); +}); + +// B04.3: evidence that cannot be bound to the exact request preserves +// ambiguity instead of resolving it. +describe('mismatched and contradictory evidence', () => { + it('refuses a receipt from another chain', async () => { + const observation = await lookupEvidence(IDENTITY, source(receipt({ chainId: 1 }))); + expect(observation.boundToRequest).toBe(false); + expect(isTerminalEvidence(observation)).toBe(false); + }); + + it('refuses a receipt for a different transaction hash', async () => { + const wrongHash = receipt({ transactionHash: `0x${'e'.repeat(64)}` }); + const observation = await lookupEvidence(IDENTITY, source(wrongHash)); + expect(observation.result).toBe('NOT_FOUND'); + expect(observation.boundToRequest).toBe(false); + }); + + it('holds ambiguity when our hash succeeded without our Transfer', async () => { + // Contradictory: the transaction is ours and final, but it does not prove + // our settlement. Resolving this either way would be a guess. + const observation = await lookupEvidence(IDENTITY, source(receipt({ logs: [] }))); + expect(observation.result).toBe('PENDING'); + expect(observation.boundToRequest).toBe(false); + expect(isTerminalEvidence(observation)).toBe(false); + }); + + it('holds ambiguity when the Transfer went elsewhere', async () => { + const redirected = receipt({ + logs: [ + { + address: USDC, + topics: [TRANSFER_EVENT_TOPIC, topic(WALLET), topic(OTHER)], + data: `0x${(1_250_000n).toString(16).padStart(64, '0')}`, + logIndex: 3, + }, + ], + }); + expect(isTerminalEvidence(await lookupEvidence(IDENTITY, source(redirected)))).toBe(false); + }); + + it('holds ambiguity when the wallet does not match', async () => { + expect(isTerminalEvidence(await lookupEvidence(IDENTITY, source(receipt({ from: OTHER }))))).toBe( + false, + ); + }); +}); + +describe('idempotent lookup', () => { + it('returns the same observation when repeated and submits nothing', async () => { + let calls = 0; + const counting: ReceiptSource = { + getReceipt: () => { + calls += 1; + return Promise.resolve(receipt()); + }, + }; + + const first = await lookupEvidence(IDENTITY, counting); + const second = await lookupEvidence(IDENTITY, counting); + const third = await lookupEvidence(IDENTITY, counting); + + expect(second).toEqual(first); + expect(third).toEqual(first); + expect(calls).toBe(3); + // The port is read-only by construction: there is no submit path here. + }); +}); diff --git a/packages/arc-adapter/test/failure-taxonomy.test.ts b/packages/arc-adapter/test/failure-taxonomy.test.ts new file mode 100644 index 0000000..ca4633f --- /dev/null +++ b/packages/arc-adapter/test/failure-taxonomy.test.ts @@ -0,0 +1,118 @@ +import { describe, expect, it } from 'vitest'; +import { + classifyHttpStatus, + classifyTransportError, + outcomeForTransportFailure, + toProviderResponse, + type PostSendAmbiguity, + type PreBroadcastFailure, +} from '../src/failure-taxonomy.js'; + +function nodeError(code: string): Error { + return Object.assign(new Error(`simulated ${code}`), { code }); +} + +describe('errors that prove nothing was broadcast', () => { + it.each<[string, PreBroadcastFailure]>([ + ['ENOTFOUND', 'DNS_RESOLUTION_FAILED'], + ['EAI_AGAIN', 'DNS_RESOLUTION_FAILED'], + ['ECONNREFUSED', 'CONNECTION_REFUSED'], + ['CERT_HAS_EXPIRED', 'TLS_HANDSHAKE_FAILED'], + ['DEPTH_ZERO_SELF_SIGNED_CERT', 'TLS_HANDSHAKE_FAILED'], + ])('classifies %s as pre-broadcast', (code, kind) => { + const failure = classifyTransportError(nodeError(code)); + expect(failure).toEqual({ phase: 'PRE_BROADCAST', kind }); + expect(outcomeForTransportFailure(failure)).toBe('DEFINITELY_NOT_SUBMITTED'); + }); +}); + +describe('errors that may have followed a sent request', () => { + it.each<[string, PostSendAmbiguity]>([ + ['ECONNRESET', 'CONNECTION_RESET'], + ['ETIMEDOUT', 'REQUEST_TIMEOUT'], + ['EPIPE', 'CONNECTION_RESET'], + ['ERR_STREAM_PREMATURE_CLOSE', 'TRUNCATED_RESPONSE'], + ])('classifies %s as post-send', (code, kind) => { + const failure = classifyTransportError(nodeError(code)); + expect(failure).toEqual({ phase: 'POST_SEND', kind }); + expect(outcomeForTransportFailure(failure)).toBe('POSSIBLY_SUBMITTED'); + }); + + it('separates a failed TLS handshake from an interrupted connection', () => { + // The handshake failing means no application data was ever sent. A reset + // mid-connection may have delivered the request first. + expect(classifyTransportError(nodeError('CERT_HAS_EXPIRED')).phase).toBe('PRE_BROADCAST'); + expect(classifyTransportError(nodeError('ECONNRESET')).phase).toBe('POST_SEND'); + }); + + it('treats an unrecognized error as post-send', () => { + // An error this build has never seen cannot be proof that nothing + // happened. Treating it as such is the failure that pays twice. + const failure = classifyTransportError(nodeError('ESOMETHINGNEW')); + expect(failure.phase).toBe('POST_SEND'); + expect(outcomeForTransportFailure(failure)).toBe('POSSIBLY_SUBMITTED'); + }); + + it.each([null, undefined, 'a string', 42, {}])( + 'treats the non-error value %s as post-send', + (value) => { + expect(classifyTransportError(value).phase).toBe('POST_SEND'); + }, + ); +}); + +describe('http status classification', () => { + it('treats a 4xx other than 429 as a provider-side rejection', () => { + expect(classifyHttpStatus(400).phase).toBe('PRE_BROADCAST'); + expect(classifyHttpStatus(422).phase).toBe('PRE_BROADCAST'); + }); + + it('keeps 429 ambiguous', () => { + // A rate limiter may reject before or after queuing the work, so it is + // not proof of non-submission. + const failure = classifyHttpStatus(429); + expect(failure).toEqual({ phase: 'POST_SEND', kind: 'RATE_LIMITED_429' }); + expect(outcomeForTransportFailure(failure)).toBe('POSSIBLY_SUBMITTED'); + }); + + it.each([500, 502, 503, 504])('keeps %s ambiguous', (status) => { + expect(outcomeForTransportFailure(classifyHttpStatus(status))).toBe('POSSIBLY_SUBMITTED'); + }); + + it('keeps an uninterpretable 2xx ambiguous', () => { + expect(classifyHttpStatus(200).phase).toBe('POST_SEND'); + }); +}); + +describe('no ambiguous case is ever a safe retry', () => { + it.each([ + 'REQUEST_TIMEOUT', + 'CONNECTION_RESET', + 'TLS_INTERRUPTED', + 'RATE_LIMITED_429', + 'SERVER_ERROR_5XX', + 'TRUNCATED_RESPONSE', + 'MALFORMED_RESPONSE', + 'LOST_SUCCESS_RESPONSE', + 'PROCESS_TERMINATED', + ])('%s is possibly submitted', (kind) => { + expect(outcomeForTransportFailure({ phase: 'POST_SEND', kind })).toBe('POSSIBLY_SUBMITTED'); + }); + + it('maps every post-send kind to a recognized provider response', () => { + const kinds: PostSendAmbiguity[] = [ + 'REQUEST_TIMEOUT', + 'CONNECTION_RESET', + 'TLS_INTERRUPTED', + 'RATE_LIMITED_429', + 'SERVER_ERROR_5XX', + 'TRUNCATED_RESPONSE', + 'MALFORMED_RESPONSE', + 'LOST_SUCCESS_RESPONSE', + 'PROCESS_TERMINATED', + ]; + for (const kind of kinds) { + expect(toProviderResponse({ phase: 'POST_SEND', kind }).kind).not.toBe('UNRECOGNIZED'); + } + }); +}); diff --git a/packages/arc-adapter/test/outcome.test.ts b/packages/arc-adapter/test/outcome.test.ts new file mode 100644 index 0000000..45725e8 --- /dev/null +++ b/packages/arc-adapter/test/outcome.test.ts @@ -0,0 +1,84 @@ +import { describe, expect, it } from 'vitest'; +import { + classifyOutcome, + permitsImmediateRetry, + type AmbiguousSignal, + type PreSubmissionProof, + type ProviderResponse, +} from '../src/outcome.js'; + +describe('confirmed', () => { + it('classifies a verified receipt as CONFIRMED', () => { + expect(classifyOutcome({ kind: 'VERIFIED_RECEIPT', confirmed: true }).outcome).toBe( + 'CONFIRMED', + ); + }); + + it('does not treat an unconfirmed receipt as proof of non-submission', () => { + // Absence of proof is not proof of absence. This must be + // POSSIBLY_SUBMITTED, never DEFINITELY_NOT_SUBMITTED. + expect(classifyOutcome({ kind: 'VERIFIED_RECEIPT', confirmed: false }).outcome).toBe( + 'POSSIBLY_SUBMITTED', + ); + }); +}); + +describe('definitely not submitted', () => { + it.each([ + 'POLICY_DENIED', + 'REQUEST_VALIDATION_FAILED', + 'LOCAL_SCOPE_DENIED', + 'AUTHORIZATION_INVALID', + ])('grants DEFINITELY_NOT_SUBMITTED for pre-flight proof %s', (proof) => { + expect(classifyOutcome({ kind: 'PRE_SUBMISSION_FAILURE', proof }).outcome).toBe( + 'DEFINITELY_NOT_SUBMITTED', + ); + }); + + it('is the only outcome permitting an immediate retry', () => { + expect(permitsImmediateRetry('DEFINITELY_NOT_SUBMITTED')).toBe(true); + expect(permitsImmediateRetry('POSSIBLY_SUBMITTED')).toBe(false); + expect(permitsImmediateRetry('CONFIRMED')).toBe(false); + }); +}); + +describe('every ambiguous signal fails closed', () => { + it.each([ + 'TIMEOUT', + 'CONNECTION_RESET', + 'LOST_RESPONSE', + 'TRUNCATED_RESPONSE', + 'MALFORMED_RESPONSE', + 'PROVIDER_5XX', + 'RATE_LIMITED', + 'PROCESS_CRASH', + 'UNKNOWN_ERROR', + ])('classifies %s as POSSIBLY_SUBMITTED', (signal) => { + expect(classifyOutcome({ kind: 'AMBIGUOUS', signal }).outcome).toBe('POSSIBLY_SUBMITTED'); + }); + + it('never lets an ambiguous signal permit a retry', () => { + const signals: AmbiguousSignal[] = ['TIMEOUT', 'LOST_RESPONSE', 'PROCESS_CRASH']; + for (const signal of signals) { + const { outcome } = classifyOutcome({ kind: 'AMBIGUOUS', signal }); + expect(permitsImmediateRetry(outcome)).toBe(false); + } + }); +}); + +describe('unrecognized responses', () => { + it('classifies an unrecognized shape as POSSIBLY_SUBMITTED', () => { + expect(classifyOutcome({ kind: 'UNRECOGNIZED', detail: 'new provider field' }).outcome).toBe( + 'POSSIBLY_SUBMITTED', + ); + }); + + it('fails closed on a response shape from the future', () => { + // Simulates a provider adding a response kind this build predates. It must + // not widen retry permission. + const fromTheFuture = { kind: 'SOMETHING_NEW' } as unknown as ProviderResponse; + const { outcome } = classifyOutcome(fromTheFuture); + expect(outcome).toBe('POSSIBLY_SUBMITTED'); + expect(permitsImmediateRetry(outcome)).toBe(false); + }); +}); diff --git a/packages/arc-adapter/test/receipt.test.ts b/packages/arc-adapter/test/receipt.test.ts new file mode 100644 index 0000000..463d4c5 --- /dev/null +++ b/packages/arc-adapter/test/receipt.test.ts @@ -0,0 +1,148 @@ +import { describe, expect, it } from 'vitest'; +import { + TRANSFER_EVENT_TOPIC, + verifyReceipt, + type ExpectedSettlement, + type ReceiptLog, + type TransactionReceipt, +} from '../src/receipt.js'; + +const WALLET = '0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'; +const RECIPIENT = '0x1111111111111111111111111111111111111111'; +const OTHER = '0x2222222222222222222222222222222222222222'; +const USDC = '0x3600000000000000000000000000000000000000'; + +const EXPECTED: ExpectedSettlement = { + chainId: 5042002, + walletAddress: WALLET, + tokenContract: USDC, + recipient: RECIPIENT, + amountAtomic: 1_250_000n, +}; + +function topic(address: string): string { + return `0x${'0'.repeat(24)}${address.slice(2)}`; +} + +function word(value: bigint): string { + return `0x${value.toString(16).padStart(64, '0')}`; +} + +function transferLog(overrides: Partial = {}): ReceiptLog { + return { + address: USDC, + topics: [TRANSFER_EVENT_TOPIC, topic(WALLET), topic(RECIPIENT)], + data: word(1_250_000n), + logIndex: 3, + ...overrides, + }; +} + +function receipt(overrides: Partial = {}): TransactionReceipt { + return { + transactionHash: `0x${'c'.repeat(64)}`, + chainId: 5042002, + from: WALLET, + to: USDC, + status: 1, + blockNumber: 100n, + blockHash: `0x${'d'.repeat(64)}`, + logs: [transferLog()], + ...overrides, + }; +} + +describe('confirmation', () => { + it('confirms an exact receipt and Transfer', () => { + expect(verifyReceipt(receipt(), EXPECTED)).toEqual({ + result: 'CONFIRMED', + transferLogIndex: 3, + }); + }); + + it('confirms regardless of address casing', () => { + const upper = receipt({ from: WALLET.toUpperCase().replace('0X', '0x') }); + expect(verifyReceipt(upper, EXPECTED).result).toBe('CONFIRMED'); + }); + + it('ignores unrelated logs alongside the expected Transfer', () => { + const noisy = receipt({ + logs: [ + { address: OTHER, topics: ['0xdeadbeef'], data: '0x', logIndex: 0 }, + transferLog(), + ], + }); + expect(verifyReceipt(noisy, EXPECTED).result).toBe('CONFIRMED'); + }); +}); + +describe('final revert', () => { + it('treats status 0 as terminal failure', () => { + expect(verifyReceipt(receipt({ status: 0, logs: [] }), EXPECTED).result).toBe('FINAL_REVERT'); + }); + + it('treats status 0 as revert even if a Transfer log is present', () => { + // A reverted transaction's logs are discarded on chain; trusting them + // would confirm a settlement that never happened. + expect(verifyReceipt(receipt({ status: 0 }), EXPECTED).result).toBe('FINAL_REVERT'); + }); +}); + +describe('success status is not confirmation', () => { + it('does not confirm a successful receipt with no logs', () => { + // The single most important case in this file. + const verdict = verifyReceipt(receipt({ logs: [] }), EXPECTED); + expect(verdict.result).toBe('NOT_CONFIRMED'); + }); + + it('does not confirm when the Transfer went to someone else', () => { + const redirected = receipt({ + logs: [transferLog({ topics: [TRANSFER_EVENT_TOPIC, topic(WALLET), topic(OTHER)] })], + }); + expect(verifyReceipt(redirected, EXPECTED).result).toBe('NOT_CONFIRMED'); + }); + + it('does not confirm when the amount differs by one atomic unit', () => { + const short = receipt({ logs: [transferLog({ data: word(1_249_999n) })] }); + expect(verifyReceipt(short, EXPECTED).result).toBe('NOT_CONFIRMED'); + }); + + it('does not confirm a Transfer emitted by a different token contract', () => { + // An attacker-deployed token can emit an identical-looking Transfer event. + const impostor = receipt({ logs: [transferLog({ address: OTHER })] }); + expect(verifyReceipt(impostor, EXPECTED).result).toBe('NOT_CONFIRMED'); + }); + + it('does not confirm when the sender is not the execution wallet', () => { + expect(verifyReceipt(receipt({ from: OTHER }), EXPECTED).result).toBe('NOT_CONFIRMED'); + }); + + it('does not confirm a receipt from a different chain', () => { + expect(verifyReceipt(receipt({ chainId: 1 }), EXPECTED).result).toBe('NOT_CONFIRMED'); + }); + + it('does not confirm when the transaction called a different contract', () => { + expect(verifyReceipt(receipt({ to: OTHER }), EXPECTED).result).toBe('NOT_CONFIRMED'); + }); + + it('does not confirm two matching Transfers', () => { + // Two identical transfers means more value moved than was authorized. + const doubled = receipt({ logs: [transferLog(), transferLog({ logIndex: 4 })] }); + const verdict = verifyReceipt(doubled, EXPECTED); + expect(verdict.result).toBe('NOT_CONFIRMED'); + if (verdict.result === 'NOT_CONFIRMED') { + expect(verdict.detail).toMatch(/2 matching Transfer/); + } + }); + + it('does not confirm a malformed amount word', () => { + expect(verifyReceipt(receipt({ logs: [transferLog({ data: '0x1' })] }), EXPECTED).result).toBe( + 'NOT_CONFIRMED', + ); + }); + + it('does not confirm a log missing its indexed topics', () => { + const truncated = receipt({ logs: [transferLog({ topics: [TRANSFER_EVENT_TOPIC] })] }); + expect(verifyReceipt(truncated, EXPECTED).result).toBe('NOT_CONFIRMED'); + }); +}); diff --git a/packages/arc-adapter/test/redaction.test.ts b/packages/arc-adapter/test/redaction.test.ts index 0facfad..835a8f4 100644 --- a/packages/arc-adapter/test/redaction.test.ts +++ b/packages/arc-adapter/test/redaction.test.ts @@ -113,3 +113,50 @@ describe('assertNoSecrets', () => { }).not.toThrow(); }); }); + +describe('32-byte hex is context-sensitive', () => { + // Shape alone cannot distinguish a private key from a keccak hash. Redacting + // all 32-byte hex destroyed the evidence: transaction hashes, block hashes, + // topics, ABI words, and payload fingerprints are all this shape, and a + // fixture with them removed no longer proves the settlement it captured. + const HASH = '0x' + 'a'.repeat(64); + + it.each([ + 'transactionHash', + 'blockHash', + 'payloadFingerprint', + 'idempotencyKey', + 'data', + 'digest', + ])('preserves 32-byte hex in the hash-bearing field %s', (field) => { + const out = redact({ [field]: HASH }) as Record; + expect(out[field]).toBe(HASH); + }); + + it('preserves every entry of a topics array', () => { + const out = redact({ topics: [HASH, HASH] }) as Record; + expect(out.topics).toEqual([HASH, HASH]); + }); + + it('still redacts 32-byte hex under an unrecognized field', () => { + // The default stays deny: only named hash fields are exempt. + const out = redact({ note: HASH, mysteryValue: HASH }) as Record; + expect(out.note).toBe(REDACTED); + expect(out.mysteryValue).toBe(REDACTED); + }); + + it('still redacts key material by field name regardless of shape', () => { + // Key material travels under forbidden names, which are redacted on the + // key, not the value shape. That is what the exemption relies on. + const out = redact({ privateKey: HASH, signingKey: HASH, seed: HASH }) as Record< + string, + unknown + >; + expect(Object.values(out)).toEqual([REDACTED, REDACTED, REDACTED]); + }); + + it('does not let a hash-bearing name shelter an actual credential', () => { + const out = redact({ data: 'Bearer abcdefghijklmnop' }) as Record; + expect(out.data).toBe(REDACTED); + }); +}); diff --git a/packages/arc-adapter/tsconfig.build.json b/packages/arc-adapter/tsconfig.build.json deleted file mode 100644 index 3d32a63..0000000 --- a/packages/arc-adapter/tsconfig.build.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { - "rootDir": "src", - "outDir": "dist" - }, - "include": ["src"] -} diff --git a/packages/arc-adapter/tsconfig.json b/packages/arc-adapter/tsconfig.json index 671b59a..e367369 100644 --- a/packages/arc-adapter/tsconfig.json +++ b/packages/arc-adapter/tsconfig.json @@ -1,25 +1,11 @@ { + "extends": "../../tsconfig.base.json", "compilerOptions": { - "target": "ES2023", - "lib": ["ES2023"], - "module": "NodeNext", - "moduleResolution": "NodeNext", - "types": ["node"], - "strict": true, - "noUncheckedIndexedAccess": true, - "exactOptionalPropertyTypes": true, - "noImplicitOverride": true, - "noFallthroughCasesInSwitch": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "isolatedModules": true, - "verbatimModuleSyntax": true, - "forceConsistentCasingInFileNames": true, - "skipLibCheck": true, - "declaration": true, - "sourceMap": false, "outDir": "dist", - "rootDir": "." + "rootDir": "src", + "tsBuildInfoFile": "dist/.tsbuildinfo" }, - "include": ["src", "test", "*.config.ts"] + "include": [ + "src/**/*.ts" + ] } diff --git a/packages/privy-adapter/eslint.config.js b/packages/privy-adapter/eslint.config.js deleted file mode 100644 index 4d69fd5..0000000 --- a/packages/privy-adapter/eslint.config.js +++ /dev/null @@ -1,24 +0,0 @@ -import js from '@eslint/js'; -import tseslint from 'typescript-eslint'; - -export default tseslint.config( - { ignores: ['dist/**'] }, - js.configs.recommended, - ...tseslint.configs.strictTypeChecked, - { - languageOptions: { - parserOptions: { - projectService: true, - tsconfigRootDir: import.meta.dirname, - }, - }, - rules: { - // Money and chain identity must never be coerced through `any`. - '@typescript-eslint/no-explicit-any': 'error', - '@typescript-eslint/restrict-template-expressions': [ - 'error', - { allowNumber: true }, - ], - }, - }, -); diff --git a/packages/privy-adapter/package-lock.json b/packages/privy-adapter/package-lock.json deleted file mode 100644 index d59421d..0000000 --- a/packages/privy-adapter/package-lock.json +++ /dev/null @@ -1,2794 +0,0 @@ -{ - "name": "@oneshot/privy-adapter", - "version": "0.1.0", - "lockfileVersion": 3, - "requires": true, - "packages": { - "": { - "name": "@oneshot/privy-adapter", - "version": "0.1.0", - "license": "MIT", - "dependencies": { - "viem": "2.56.3" - }, - "devDependencies": { - "@eslint/js": "9.39.1", - "@types/node": "22.18.11", - "eslint": "9.39.1", - "typescript": "5.9.3", - "typescript-eslint": "8.69.0", - "vitest": "5.0.0" - }, - "engines": { - "node": ">=22.12.0" - } - }, - "node_modules/@adraffy/ens-normalize": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@adraffy/ens-normalize/-/ens-normalize-1.11.1.tgz", - "integrity": "sha512-nhCBV3quEgesuf7c7KYfperqSS14T8bYuvJ8PcLJp6znkZpFc0AuW4qBtr8eKVyPPe/8RSr7sglCWPU5eaxwKQ==", - "license": "MIT" - }, - "node_modules/@eslint-community/eslint-utils": { - "version": "4.10.1", - "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.10.1.tgz", - "integrity": "sha512-cuadcxVFE8sDK6iWJbs8Sn0av2Nrh2QSGQhVlBW9AaAHqHwjWsZHT8LJ4hFGPh7ASBV2deFdM7H/DPjulmh8rg==", - "dev": true, - "license": "MIT", - "dependencies": { - "eslint-visitor-keys": "^3.4.3" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - }, - "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" - } - }, - "node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", - "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/@eslint-community/regexpp": { - "version": "4.12.2", - "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.2.tgz", - "integrity": "sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^12.0.0 || ^14.0.0 || >=16.0.0" - } - }, - "node_modules/@eslint/config-array": { - "version": "0.21.2", - "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.21.2.tgz", - "integrity": "sha512-nJl2KGTlrf9GjLimgIru+V/mzgSK0ABCDQRvxw5BjURL7WfH5uoWmizbH7QB6MmnMBd8cIC9uceWnezL1VZWWw==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@eslint/object-schema": "^2.1.7", - "debug": "^4.3.1", - "minimatch": "^3.1.5" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@eslint/config-helpers": { - "version": "0.4.2", - "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.4.2.tgz", - "integrity": "sha512-gBrxN88gOIf3R7ja5K9slwNayVcZgK6SOUORm2uBzTeIEfeVaIhOpCtTox3P6R7o2jLFwLFTLnC7kU/RGcYEgw==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@eslint/core": "^0.17.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@eslint/core": { - "version": "0.17.0", - "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.17.0.tgz", - "integrity": "sha512-yL/sLrpmtDaFEiUj1osRP4TI2MDz1AddJL+jZ7KSqvBuliN4xqYY54IfdN8qD8Toa6g1iloph1fxQNkjOxrrpQ==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@types/json-schema": "^7.0.15" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@eslint/eslintrc": { - "version": "3.3.7", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.7.tgz", - "integrity": "sha512-F42g89Qd5oAWtp0k0nnSrjziAKza7w8SVT4mStc18LZMaRb4J1HQAHLCalEtDCxrTuksx7NU9qsmeLwpOfPqWw==", - "dev": true, - "license": "MIT", - "dependencies": { - "ajv": "^6.14.0", - "debug": "^4.3.2", - "espree": "^10.0.1", - "globals": "^14.0.0", - "ignore": "^5.2.0", - "import-fresh": "^3.2.1", - "js-yaml": "^4.3.2", - "minimatch": "^3.1.5", - "strip-json-comments": "^3.1.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/@eslint/js": { - "version": "9.39.1", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.39.1.tgz", - "integrity": "sha512-S26Stp4zCy88tH94QbBv3XCuzRQiZ9yXofEILmglYTh/Ug/a9/umqvgFtYBAo3Lp0nsI/5/qH1CCrbdK3AP1Tw==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://eslint.org/donate" - } - }, - "node_modules/@eslint/object-schema": { - "version": "2.1.7", - "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.7.tgz", - "integrity": "sha512-VtAOaymWVfZcmZbp6E2mympDIHvyjXs/12LqWYjVw6qjrfF+VK+fyG33kChz3nnK+SU5/NeHOqrTEHS8sXO3OA==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@eslint/plugin-kit": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.4.1.tgz", - "integrity": "sha512-43/qtrDUokr7LJqoF2c3+RInu/t4zfrpYdoSDfYyhg52rwLV6TnOvdG4fXm7IkSB3wErkcmJS9iEhjVtOSEjjA==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@eslint/core": "^0.17.0", - "levn": "^0.4.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@humanfs/core": { - "version": "0.19.2", - "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.2.tgz", - "integrity": "sha512-UhXNm+CFMWcbChXywFwkmhqjs3PRCmcSa/hfBgLIb7oQ5HNb1wS0icWsGtSAUNgefHeI+eBrA8I1fxmbHsGdvA==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@humanfs/types": "^0.15.0" - }, - "engines": { - "node": ">=18.18.0" - } - }, - "node_modules/@humanfs/node": { - "version": "0.16.8", - "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.8.tgz", - "integrity": "sha512-gE1eQNZ3R++kTzFUpdGlpmy8kDZD/MLyHqDwqjkVQI0JMdI1D51sy1H958PNXYkM2rAac7e5/CnIKZrHtPh3BQ==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@humanfs/core": "^0.19.2", - "@humanfs/types": "^0.15.0", - "@humanwhocodes/retry": "^0.4.0" - }, - "engines": { - "node": ">=18.18.0" - } - }, - "node_modules/@humanfs/types": { - "version": "0.15.0", - "resolved": "https://registry.npmjs.org/@humanfs/types/-/types-0.15.0.tgz", - "integrity": "sha512-ZZ1w0aoQkwuUuC7Yf+7sdeaNfqQiiLcSRbfI08oAxqLtpXQr9AIVX7Ay7HLDuiLYAaFPu8oBYNq/QIi9URHJ3Q==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">=18.18.0" - } - }, - "node_modules/@humanwhocodes/module-importer": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", - "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">=12.22" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/nzakas" - } - }, - "node_modules/@humanwhocodes/retry": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.3.tgz", - "integrity": "sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">=18.18" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/nzakas" - } - }, - "node_modules/@jridgewell/resolve-uri": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", - "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.6.0.tgz", - "integrity": "sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==", - "dev": true, - "license": "MIT" - }, - "node_modules/@jridgewell/trace-mapping": { - "version": "0.3.31", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz", - "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/resolve-uri": "^3.1.0", - "@jridgewell/sourcemap-codec": "^1.4.14" - } - }, - "node_modules/@noble/ciphers": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@noble/ciphers/-/ciphers-1.3.0.tgz", - "integrity": "sha512-2I0gnIVPtfnMw9ee9h1dJG7tp81+8Ob3OJb3Mv37rx5L40/b0i7djjCVvGOVqc9AEIQyvyu1i6ypKdFw8R8gQw==", - "license": "MIT", - "engines": { - "node": "^14.21.3 || >=16" - }, - "funding": { - "url": "https://paulmillr.com/funding/" - } - }, - "node_modules/@noble/curves": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.9.1.tgz", - "integrity": "sha512-k11yZxZg+t+gWvBbIswW0yoJlu8cHOC7dhunwOzoWH/mXGBiYyR4YY6hAEK/3EUs4UpB8la1RfdRpeGsFHkWsA==", - "license": "MIT", - "dependencies": { - "@noble/hashes": "1.8.0" - }, - "engines": { - "node": "^14.21.3 || >=16" - }, - "funding": { - "url": "https://paulmillr.com/funding/" - } - }, - "node_modules/@noble/hashes": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.8.0.tgz", - "integrity": "sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A==", - "license": "MIT", - "engines": { - "node": "^14.21.3 || >=16" - }, - "funding": { - "url": "https://paulmillr.com/funding/" - } - }, - "node_modules/@oxc-project/types": { - "version": "0.148.0", - "resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.148.0.tgz", - "integrity": "sha512-Nm4s/jB+4FpFsPhWGEC4h7rzksesmtnMXomo6rCMcg/b8zLQuOziRgkCS1fxDCXOlJB/6Q8oABOZ/OP6RIPj9A==", - "dev": true, - "license": "MIT", - "peer": true, - "funding": { - "url": "https://github.com/sponsors/oxc-project" - } - }, - "node_modules/@rolldown/binding-android-arm-eabi": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm-eabi/-/binding-android-arm-eabi-1.2.7.tgz", - "integrity": "sha512-EypzgnYCwyVY4NDHKzGmNJT5b+XaQEBniHxsMdeIQLB/tcCzZnhqrzHpZFbX9iaxx+5RiB8caATBtfvZP7zVxQ==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "peer": true, - "engines": { - "node": "^20.19.0 || >=22.12.0" - } - }, - "node_modules/@rolldown/binding-android-arm64": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm64/-/binding-android-arm64-1.2.7.tgz", - "integrity": "sha512-l17HE9EweWaqJZhuUuNBN/FzM62xw+DECVnJyvMsxn8vJFAGLy5QfLDoYAcronkAN8VxKZHezDpulHDPx95vFw==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "peer": true, - "engines": { - "node": "^20.19.0 || >=22.12.0" - } - }, - "node_modules/@rolldown/binding-darwin-arm64": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-arm64/-/binding-darwin-arm64-1.2.7.tgz", - "integrity": "sha512-8ED8ELFvHXc6OCETIn4gXObPiaR6bckM/ipXtbzlPVDRMBfEGjCKgO90F9YtfdpDatVx/ZQw7aZ1vUMf/+T3Mw==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "peer": true, - "engines": { - "node": "^20.19.0 || >=22.12.0" - } - }, - "node_modules/@rolldown/binding-darwin-x64": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-x64/-/binding-darwin-x64-1.2.7.tgz", - "integrity": "sha512-/WPripjtiAIZ2tWY7ddijORT0Ujg87wxWW/qcoFVCKAWVDPhtY0xr7Dj0M3GyNGz60jGwTElhro/mkF9dT7dDQ==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "peer": true, - "engines": { - "node": "^20.19.0 || >=22.12.0" - } - }, - "node_modules/@rolldown/binding-freebsd-x64": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/@rolldown/binding-freebsd-x64/-/binding-freebsd-x64-1.2.7.tgz", - "integrity": "sha512-14DI4NcqpvbICxSnGLx3PmtDaWqRP/KGSGb6C+JLLVPeZRl6dKdHba3pGsqT3vpdTqhEYIPG0MMQ8c0xYqoJxA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ], - "peer": true, - "engines": { - "node": "^20.19.0 || >=22.12.0" - } - }, - "node_modules/@rolldown/binding-linux-arm-gnueabihf": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.2.7.tgz", - "integrity": "sha512-bxrWIRvHWQvbJwi+VIie/kDJmQxcNE6xxWwZdqF/ExVAigtHkv54WTLQPb+QsZdnFy18fg7JPfWGL0RH6vwIlQ==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "peer": true, - "engines": { - "node": "^20.19.0 || >=22.12.0" - } - }, - "node_modules/@rolldown/binding-linux-arm64-gnu": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.2.7.tgz", - "integrity": "sha512-toOY2BChBZyuxU7OYX6Tn389di4IzAqPTycVcci0O7FSfBqzRB3RZn+K5Is6ANf4tmgRd/K1yZTsNTXbkXsnLg==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "peer": true, - "engines": { - "node": "^20.19.0 || >=22.12.0" - } - }, - "node_modules/@rolldown/binding-linux-arm64-musl": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.2.7.tgz", - "integrity": "sha512-lAIXTH/aiLRLxsTgQvfhjo4K1ydWIp00+V0voOr9beb/9ZmkUFrSIb03dXNFRgMNvkE6oGsF10ioQ6UsI+vS5Q==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "peer": true, - "engines": { - "node": "^20.19.0 || >=22.12.0" - } - }, - "node_modules/@rolldown/binding-linux-ppc64-gnu": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.2.7.tgz", - "integrity": "sha512-kdnwS28Pkenp/mZMRwjXXXwxQ7pIsm+bF919LUK93BOyhcLsrVKdP2p9fxpiPNPAbNuch8ypQt0pm2P2LYCAGg==", - "cpu": [ - "ppc64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "peer": true, - "engines": { - "node": "^20.19.0 || >=22.12.0" - } - }, - "node_modules/@rolldown/binding-linux-s390x-gnu": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.2.7.tgz", - "integrity": "sha512-516OdsyLdr5E65paF3yBF55t8mfm9+gmtCsK3xI7XKXIT7EfRlHhxL8K/NR6Hu8BWSgF5+1w74lTL0+nxcc8Qw==", - "cpu": [ - "s390x" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "peer": true, - "engines": { - "node": "^20.19.0 || >=22.12.0" - } - }, - "node_modules/@rolldown/binding-linux-x64-gnu": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.2.7.tgz", - "integrity": "sha512-r8/z8n7GFaYRln3xmP1Cxy0HH/HLM0uBUPkEuSVEfKGDA89M0FsZRZJRSwe/tJjRx+fpH/gjorfhB8tmEbSFLA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "peer": true, - "engines": { - "node": "^20.19.0 || >=22.12.0" - } - }, - "node_modules/@rolldown/binding-linux-x64-musl": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-musl/-/binding-linux-x64-musl-1.2.7.tgz", - "integrity": "sha512-pAsE8iiDxUg1xBqdhrTfg45AVDVpirjz00sblEYClGNNcMnDb+e8beQgqIAw6LvauX/APvgxUnwrgun/YYGBhw==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "peer": true, - "engines": { - "node": "^20.19.0 || >=22.12.0" - } - }, - "node_modules/@rolldown/binding-openharmony-arm64": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/@rolldown/binding-openharmony-arm64/-/binding-openharmony-arm64-1.2.7.tgz", - "integrity": "sha512-lTcIYmmnQQA8Or/2DatS6oSqcdLHvendjS+zLu+FwgToynWMRSmQdpM65fTANJgIS4mjbMOo5KT2lnT9SAb96w==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "openharmony" - ], - "peer": true, - "engines": { - "node": "^20.19.0 || >=22.12.0" - } - }, - "node_modules/@rolldown/binding-win32-arm64-msvc": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.2.7.tgz", - "integrity": "sha512-e3Gu3WxbNk/UqQhxqU7YIYO+9ZBvWNz3U+h/qRFosscMFzdRPbXYSaSWgSnklv2fz1TgzBTcti2z35c/7irsHw==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "peer": true, - "engines": { - "node": "^20.19.0 || >=22.12.0" - } - }, - "node_modules/@rolldown/binding-win32-x64-msvc": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.2.7.tgz", - "integrity": "sha512-W/jg5qoRSqjsEv0+dZi4e687mcHqmVuU0P4fK6qS/xjetW2Gmc1W8j//z5nAeNcC8Ttm0hV46IjcYeuVwYhuiw==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "peer": true, - "engines": { - "node": "^20.19.0 || >=22.12.0" - } - }, - "node_modules/@rolldown/pluginutils": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.1.tgz", - "integrity": "sha512-2j9bGt5Jh8hj+vPtgzPtl72j0yRxHAyumoo6TNfAjsLB04UtpSvPbPcDcBMxz7n+9CYB0c1GxQFxYRg2jimqGw==", - "dev": true, - "license": "MIT", - "peer": true - }, - "node_modules/@scure/base": { - "version": "1.2.6", - "resolved": "https://registry.npmjs.org/@scure/base/-/base-1.2.6.tgz", - "integrity": "sha512-g/nm5FgUa//MCj1gV09zTJTaM6KBAHqLN907YVQqf7zC49+DcO4B1so4ZX07Ef10Twr6nuqYEH9GEggFXA4Fmg==", - "license": "MIT", - "funding": { - "url": "https://paulmillr.com/funding/" - } - }, - "node_modules/@scure/bip32": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.7.0.tgz", - "integrity": "sha512-E4FFX/N3f4B80AKWp5dP6ow+flD1LQZo/w8UnLGYZO674jS6YnYeepycOOksv+vLPSpgN35wgKgy+ybfTb2SMw==", - "license": "MIT", - "dependencies": { - "@noble/curves": "~1.9.0", - "@noble/hashes": "~1.8.0", - "@scure/base": "~1.2.5" - }, - "funding": { - "url": "https://paulmillr.com/funding/" - } - }, - "node_modules/@scure/bip39": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.6.0.tgz", - "integrity": "sha512-+lF0BbLiJNwVlev4eKelw1WWLaiKXw7sSl8T6FvBlWkdX+94aGJ4o8XjUdlyhTCjd8c+B3KT3JfS8P0bLRNU6A==", - "license": "MIT", - "dependencies": { - "@noble/hashes": "~1.8.0", - "@scure/base": "~1.2.5" - }, - "funding": { - "url": "https://paulmillr.com/funding/" - } - }, - "node_modules/@types/chai": { - "version": "5.2.3", - "resolved": "https://registry.npmjs.org/@types/chai/-/chai-5.2.3.tgz", - "integrity": "sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/deep-eql": "*", - "assertion-error": "^2.0.1" - } - }, - "node_modules/@types/deep-eql": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/@types/deep-eql/-/deep-eql-4.0.2.tgz", - "integrity": "sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/estree": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.9.tgz", - "integrity": "sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/json-schema": { - "version": "7.0.15", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", - "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/node": { - "version": "22.18.11", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.18.11.tgz", - "integrity": "sha512-Gd33J2XIrXurb+eT2ktze3rJAfAp9ZNjlBdh4SVgyrKEOADwCbdUDaK7QgJno8Ue4kcajscsKqu6n8OBG3hhCQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "undici-types": "~6.21.0" - } - }, - "node_modules/@typescript-eslint/eslint-plugin": { - "version": "8.69.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.69.0.tgz", - "integrity": "sha512-t5jQTKPIgVW1PE6dR6H6Qz5gm8zjMlX5/2gRaOGd9eO6V7J+tQc6iWKukEe7dY8u9HyYasQ0yfF0/FSSTEO2gA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@eslint-community/regexpp": "^4.12.2", - "@typescript-eslint/scope-manager": "8.69.0", - "@typescript-eslint/type-utils": "8.69.0", - "@typescript-eslint/utils": "8.69.0", - "@typescript-eslint/visitor-keys": "8.69.0", - "ignore": "^7.0.5", - "natural-compare": "^1.4.0", - "ts-api-utils": "^2.5.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "@typescript-eslint/parser": "^8.69.0", - "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", - "typescript": ">=4.8.4 <6.1.0" - } - }, - "node_modules/@typescript-eslint/eslint-plugin/node_modules/ignore": { - "version": "7.0.8", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.8.tgz", - "integrity": "sha512-YYNsSlXBjMk92SKnkwvB5LOVSa6OznlFUGcsvrFgNJbJCd0M1XKeFVRc8ZByeCqz32FivYNHJVooLmdqrmvp/Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 4" - } - }, - "node_modules/@typescript-eslint/parser": { - "version": "8.69.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.69.0.tgz", - "integrity": "sha512-l4b0DhWioGg6Gt2ebGlvfkFMOjRsauxtsnDRwUSRX1qHq3HdTfQHV8wW9zEXeciai6HfeaKOedQn2Zoofx3WBw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/scope-manager": "8.69.0", - "@typescript-eslint/types": "8.69.0", - "@typescript-eslint/typescript-estree": "8.69.0", - "@typescript-eslint/visitor-keys": "8.69.0", - "debug": "^4.4.3" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", - "typescript": ">=4.8.4 <6.1.0" - } - }, - "node_modules/@typescript-eslint/project-service": { - "version": "8.69.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.69.0.tgz", - "integrity": "sha512-yi4obFrHMmnsesWehHbkg9zMA7Jt8cXT+mKM08G999pH1yT6nqgsHx7MYm0uY1wAj8CqiBXYRJ7WAT0QdQHQXg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/tsconfig-utils": "^8.69.0", - "@typescript-eslint/types": "^8.69.0", - "debug": "^4.4.3" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "typescript": ">=4.8.4 <6.1.0" - } - }, - "node_modules/@typescript-eslint/scope-manager": { - "version": "8.69.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.69.0.tgz", - "integrity": "sha512-ewfspqWvSxKSOaplqAUNbaSFO0eB6w1EtQ+esfYFRm3614Ty4uNtExkcbgd6nWsXphbqKyf9ZYdbZdv2xEoWEQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/types": "8.69.0", - "@typescript-eslint/visitor-keys": "8.69.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/tsconfig-utils": { - "version": "8.69.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.69.0.tgz", - "integrity": "sha512-xNqK7YTDZsLniQMV/4rpFR8Z5JlqeRvVjuG1YgF/mdPVH84HSD19L8CczMA0qg2RfwEV231GHH3VnToJDo4MfQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "typescript": ">=4.8.4 <6.1.0" - } - }, - "node_modules/@typescript-eslint/type-utils": { - "version": "8.69.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.69.0.tgz", - "integrity": "sha512-ZfoJAVg3JZndQEpEl9petVlxau3lRuElc4HRMuAlLCf8to04/iHz692RUSNmXKDjEuJmIL+KZ2/BsOcBc16dsA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/types": "8.69.0", - "@typescript-eslint/typescript-estree": "8.69.0", - "@typescript-eslint/utils": "8.69.0", - "debug": "^4.4.3", - "ts-api-utils": "^2.5.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", - "typescript": ">=4.8.4 <6.1.0" - } - }, - "node_modules/@typescript-eslint/types": { - "version": "8.69.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.69.0.tgz", - "integrity": "sha512-K3VrubUPhlo9VDBS6QdI8YB5j7ClpqLRdefcz6PFrhnwicehBweqQ9Evhl4l+FYz0HdDmMqIiSX0aldGRYtDCA==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/typescript-estree": { - "version": "8.69.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.69.0.tgz", - "integrity": "sha512-AdFkgqck3Vudb/kWnxlyafU/4aBhHrbQ9locP2N4psXTy5mOBg0SHJumnLvx7r6g1gV4DKvUFwV2nJZBoqOD8w==", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/project-service": "8.69.0", - "@typescript-eslint/tsconfig-utils": "8.69.0", - "@typescript-eslint/types": "8.69.0", - "@typescript-eslint/visitor-keys": "8.69.0", - "debug": "^4.4.3", - "minimatch": "^10.2.2", - "semver": "^7.7.3", - "tinyglobby": "^0.2.15", - "ts-api-utils": "^2.5.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "typescript": ">=4.8.4 <6.1.0" - } - }, - "node_modules/@typescript-eslint/typescript-estree/node_modules/balanced-match": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz", - "integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==", - "dev": true, - "license": "MIT", - "engines": { - "node": "18 || 20 || >=22" - } - }, - "node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": { - "version": "5.0.9", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.9.tgz", - "integrity": "sha512-ScQ4IuvIEF1TMlP7Zt+vjJ//9zlPb2SDcxWxM3bk8s6t6GGdJ7KO1dCcTidOPJKePW30LE/2cT7wCyPho9/Wxg==", - "dev": true, - "license": "MIT", - "dependencies": { - "balanced-match": "^4.0.2" - }, - "engines": { - "node": "20 || >=22" - } - }, - "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": { - "version": "10.2.6", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.6.tgz", - "integrity": "sha512-vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A==", - "dev": true, - "license": "BlueOak-1.0.0", - "dependencies": { - "brace-expansion": "^5.0.8" - }, - "engines": { - "node": "18 || 20 || >=22" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/@typescript-eslint/utils": { - "version": "8.69.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.69.0.tgz", - "integrity": "sha512-tUbx60BBqQa31kXF5MCsOOLL5E/WzUuxIn7YpAvq+eaUlqvk8/NXnXMBNAdLCr0icjkzem7iUA5QqWHe/hJ1aw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@eslint-community/eslint-utils": "^4.9.1", - "@typescript-eslint/scope-manager": "8.69.0", - "@typescript-eslint/types": "8.69.0", - "@typescript-eslint/typescript-estree": "8.69.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", - "typescript": ">=4.8.4 <6.1.0" - } - }, - "node_modules/@typescript-eslint/visitor-keys": { - "version": "8.69.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.69.0.tgz", - "integrity": "sha512-+rmdgPA+EXkNgKYvHvFfhrs35utXbwaC5PGpDquSXcoXQDKUA5UjV0LmTucG/4JXkM31BTu4TilHtrN8IVBe8w==", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/types": "8.69.0", - "eslint-visitor-keys": "^5.0.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-5.0.1.tgz", - "integrity": "sha512-tD40eHxA35h0PEIZNeIjkHoDR4YjjJp34biM0mDvplBe//mB+IHCqHDGV7pxF+7MklTvighcCPPZC7ynWyjdTA==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": "^20.19.0 || ^22.13.0 || >=24" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/@vitest/mocker": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-5.0.0.tgz", - "integrity": "sha512-66PGTMIiVJP3t4a5yxU9qPtf7MdTBs8jmToMvy+HVflB3Yy13WJZTtPePdvU+wjRV02SKK5doLbSA6o9pwOmiA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/trace-mapping": "0.3.31", - "@vitest/spy": "5.0.0", - "estree-walker": "^3.0.3", - "magic-string": "^1.2.3" - }, - "funding": { - "url": "https://opencollective.com/vitest" - }, - "peerDependencies": { - "msw": "^2.4.9", - "vite": "^6.0.0 || ^7.0.0 || ^8.0.0" - }, - "peerDependenciesMeta": { - "msw": { - "optional": true - }, - "vite": { - "optional": true - } - } - }, - "node_modules/@vitest/spy": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-5.0.0.tgz", - "integrity": "sha512-uy+luWBAPw9XfthoHi5AkfHUnuPYEESjl0p/r+meoBnU8bxg5GDQ3Ey8MjcJ6sqahkL4PFyrvfMJJBw7LbU06g==", - "dev": true, - "license": "MIT", - "funding": { - "url": "https://opencollective.com/vitest" - } - }, - "node_modules/abitype": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/abitype/-/abitype-1.2.3.tgz", - "integrity": "sha512-Ofer5QUnuUdTFsBRwARMoWKOH1ND5ehwYhJ3OJ/BQO+StkwQjHw0XyVh4vDttzHB7QOFhPHa/o413PJ82gU/Tg==", - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/wevm" - }, - "peerDependencies": { - "typescript": ">=5.0.4", - "zod": "^3.22.0 || ^4.0.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - }, - "zod": { - "optional": true - } - } - }, - "node_modules/acorn": { - "version": "8.18.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.18.0.tgz", - "integrity": "sha512-lGq+9yr1/GuAWaVYIHRjvvySG5/4VfKIvC8EWxStPdcDh/Ka7FG3twP6v4d5BkravUilhIAsG4Qj83t02LWUPQ==", - "dev": true, - "license": "MIT", - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/acorn-jsx": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", - "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", - "dev": true, - "license": "MIT", - "peerDependencies": { - "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" - } - }, - "node_modules/ajv": { - "version": "6.15.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.15.0.tgz", - "integrity": "sha512-fgFx7Hfoq60ytK2c7DhnF8jIvzYgOMxfugjLOSMHjLIPgenqa7S7oaagATUq99mV6IYvN2tRmC0wnTYX6iPbMw==", - "dev": true, - "license": "MIT", - "dependencies": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "license": "MIT", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true, - "license": "Python-2.0" - }, - "node_modules/assertion-error": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-2.0.1.tgz", - "integrity": "sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - } - }, - "node_modules/balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "dev": true, - "license": "MIT" - }, - "node_modules/brace-expansion": { - "version": "1.1.18", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.18.tgz", - "integrity": "sha512-Edep/X9fGqVNmzKBVsDYIOtD+z1tuezV70LBjdCst9Tqu76lsnvRiZ6oTic1n+/BIwX6QDGAO94PN4N2SADvtw==", - "dev": true, - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/callsites": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/chai": { - "version": "6.2.2", - "resolved": "https://registry.npmjs.org/chai/-/chai-6.2.2.tgz", - "integrity": "sha512-NUPRluOfOiTKBKvWPtSD4PhFvWCqOi0BGStNWs57X9js7XGTprSmFoz5F0tWhR4WPjNeR9jXqdC7/UpSJTnlRg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18" - } - }, - "node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true, - "license": "MIT" - }, - "node_modules/concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", - "dev": true, - "license": "MIT" - }, - "node_modules/cross-spawn": { - "version": "7.0.6", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", - "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", - "dev": true, - "license": "MIT", - "dependencies": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/debug": { - "version": "4.4.3", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", - "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ms": "^2.1.3" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, - "node_modules/deep-is": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", - "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/detect-libc": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz", - "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==", - "dev": true, - "license": "Apache-2.0", - "peer": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/es-module-lexer": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-2.3.2.tgz", - "integrity": "sha512-poHGpORABojJJucnV9KbOavETW8lBVnphkW77ER5/BQ5Fz7oXSoCNek7IH3vR5nRjdsEz926ibFYX8KtLQmdyw==", - "dev": true, - "license": "MIT" - }, - "node_modules/escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/eslint": { - "version": "9.39.1", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.39.1.tgz", - "integrity": "sha512-BhHmn2yNOFA9H9JmmIVKJmd288g9hrVRDkdoIgRCRuSySRUHH7r/DI6aAXW9T1WwUuY3DFgrcaqB+deURBLR5g==", - "deprecated": "This version is no longer supported. Please see https://eslint.org/version-support for other options.", - "dev": true, - "license": "MIT", - "dependencies": { - "@eslint-community/eslint-utils": "^4.8.0", - "@eslint-community/regexpp": "^4.12.1", - "@eslint/config-array": "^0.21.1", - "@eslint/config-helpers": "^0.4.2", - "@eslint/core": "^0.17.0", - "@eslint/eslintrc": "^3.3.1", - "@eslint/js": "9.39.1", - "@eslint/plugin-kit": "^0.4.1", - "@humanfs/node": "^0.16.6", - "@humanwhocodes/module-importer": "^1.0.1", - "@humanwhocodes/retry": "^0.4.2", - "@types/estree": "^1.0.6", - "ajv": "^6.12.4", - "chalk": "^4.0.0", - "cross-spawn": "^7.0.6", - "debug": "^4.3.2", - "escape-string-regexp": "^4.0.0", - "eslint-scope": "^8.4.0", - "eslint-visitor-keys": "^4.2.1", - "espree": "^10.4.0", - "esquery": "^1.5.0", - "esutils": "^2.0.2", - "fast-deep-equal": "^3.1.3", - "file-entry-cache": "^8.0.0", - "find-up": "^5.0.0", - "glob-parent": "^6.0.2", - "ignore": "^5.2.0", - "imurmurhash": "^0.1.4", - "is-glob": "^4.0.0", - "json-stable-stringify-without-jsonify": "^1.0.1", - "lodash.merge": "^4.6.2", - "minimatch": "^3.1.2", - "natural-compare": "^1.4.0", - "optionator": "^0.9.3" - }, - "bin": { - "eslint": "bin/eslint.js" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://eslint.org/donate" - }, - "peerDependencies": { - "jiti": "*" - }, - "peerDependenciesMeta": { - "jiti": { - "optional": true - } - } - }, - "node_modules/eslint-scope": { - "version": "8.4.0", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.4.0.tgz", - "integrity": "sha512-sNXOfKCn74rt8RICKMvJS7XKV/Xk9kA7DyJr8mJik3S7Cwgy3qlkkmyS2uQB3jiJg6VNdZd/pDBJu0nvG2NlTg==", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^5.2.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/eslint-visitor-keys": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz", - "integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/espree": { - "version": "10.4.0", - "resolved": "https://registry.npmjs.org/espree/-/espree-10.4.0.tgz", - "integrity": "sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "acorn": "^8.15.0", - "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^4.2.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/esquery": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.7.0.tgz", - "integrity": "sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g==", - "dev": true, - "license": "BSD-3-Clause", - "dependencies": { - "estraverse": "^5.1.0" - }, - "engines": { - "node": ">=0.10" - } - }, - "node_modules/esrecurse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", - "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "estraverse": "^5.2.0" - }, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "dev": true, - "license": "BSD-2-Clause", - "engines": { - "node": ">=4.0" - } - }, - "node_modules/estree-walker": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz", - "integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/estree": "^1.0.0" - } - }, - "node_modules/esutils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true, - "license": "BSD-2-Clause", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/eventemitter3": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-5.0.1.tgz", - "integrity": "sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA==", - "license": "MIT" - }, - "node_modules/expect-type": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/expect-type/-/expect-type-1.4.0.tgz", - "integrity": "sha512-KfYbmpRm0VbLjEvVa9yGwCi9GI34xvi7A/HXYWQO65CSD2u3MczUJSuwXKFIxlGsgBQizV9q5J9NHj4VG0n+pA==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">=12.0.0" - } - }, - "node_modules/fast-deep-equal": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", - "dev": true, - "license": "MIT" - }, - "node_modules/fast-json-stable-stringify": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", - "dev": true, - "license": "MIT" - }, - "node_modules/fast-levenshtein": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", - "dev": true, - "license": "MIT" - }, - "node_modules/fdir": { - "version": "6.5.0", - "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", - "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12.0.0" - }, - "peerDependencies": { - "picomatch": "^3 || ^4" - }, - "peerDependenciesMeta": { - "picomatch": { - "optional": true - } - } - }, - "node_modules/file-entry-cache": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz", - "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "flat-cache": "^4.0.0" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/find-up": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", - "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", - "dev": true, - "license": "MIT", - "dependencies": { - "locate-path": "^6.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/flat-cache": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz", - "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==", - "dev": true, - "license": "MIT", - "dependencies": { - "flatted": "^3.2.9", - "keyv": "^4.5.4" - }, - "engines": { - "node": ">=16" - } - }, - "node_modules/flatted": { - "version": "3.4.4", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.4.4.tgz", - "integrity": "sha512-5+ybhBZANEJxaH3X5evAFatUxLfEHSr7n6kYJ+1Qd0mUqr4eu9gIf6GDbWHf8RJijHrjjO8G+la14SlL2SeS1Q==", - "dev": true, - "license": "ISC" - }, - "node_modules/fsevents": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", - "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", - "dev": true, - "hasInstallScript": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "peer": true, - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - } - }, - "node_modules/glob-parent": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", - "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", - "dev": true, - "license": "ISC", - "dependencies": { - "is-glob": "^4.0.3" - }, - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/globals": { - "version": "14.0.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz", - "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/ignore": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", - "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 4" - } - }, - "node_modules/import-fresh": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz", - "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "parent-module": "^1.0.0", - "resolve-from": "^4.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/imurmurhash": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.8.19" - } - }, - "node_modules/is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-glob": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", - "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", - "dev": true, - "license": "MIT", - "dependencies": { - "is-extglob": "^2.1.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "dev": true, - "license": "ISC" - }, - "node_modules/isows": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/isows/-/isows-1.0.7.tgz", - "integrity": "sha512-I1fSfDCZL5P0v33sVqeTDSpcstAg/N+wF5HS033mogOVIp4B+oHC7oOCsA3axAbBSGTJ8QubbNmnIRN/h8U7hg==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/wevm" - } - ], - "license": "MIT", - "peerDependencies": { - "ws": "*" - } - }, - "node_modules/js-yaml": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.3.2.tgz", - "integrity": "sha512-SFNOvSJ+Dgf/9An904Yx+CgSlIPCkIpao4qo51lpee25TIRejdH3rhR4EZMGoNx3/TP3O+wzWuiTFl4sqbltzA==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/puzrin" - }, - { - "type": "github", - "url": "https://github.com/sponsors/nodeca" - } - ], - "license": "MIT", - "dependencies": { - "argparse": "^2.0.1" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/json-buffer": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", - "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true, - "license": "MIT" - }, - "node_modules/json-stable-stringify-without-jsonify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", - "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", - "dev": true, - "license": "MIT" - }, - "node_modules/keyv": { - "version": "4.5.4", - "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", - "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", - "dev": true, - "license": "MIT", - "dependencies": { - "json-buffer": "3.0.1" - } - }, - "node_modules/levn": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", - "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "prelude-ls": "^1.2.1", - "type-check": "~0.4.0" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/lightningcss": { - "version": "1.33.0", - "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.33.0.tgz", - "integrity": "sha512-WkUDrojuJs0xkgGf2udWxa3yGBRxPtxUkB79i6aCZLRgc7PM8fZe9TosfPDcvEpQZbuFASnHYmRLBLUbmLOIIA==", - "dev": true, - "license": "MPL-2.0", - "peer": true, - "dependencies": { - "detect-libc": "^2.0.3" - }, - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - }, - "optionalDependencies": { - "lightningcss-android-arm64": "1.33.0", - "lightningcss-darwin-arm64": "1.33.0", - "lightningcss-darwin-x64": "1.33.0", - "lightningcss-freebsd-x64": "1.33.0", - "lightningcss-linux-arm-gnueabihf": "1.33.0", - "lightningcss-linux-arm64-gnu": "1.33.0", - "lightningcss-linux-arm64-musl": "1.33.0", - "lightningcss-linux-x64-gnu": "1.33.0", - "lightningcss-linux-x64-musl": "1.33.0", - "lightningcss-win32-arm64-msvc": "1.33.0", - "lightningcss-win32-x64-msvc": "1.33.0" - } - }, - "node_modules/lightningcss-android-arm64": { - "version": "1.33.0", - "resolved": "https://registry.npmjs.org/lightningcss-android-arm64/-/lightningcss-android-arm64-1.33.0.tgz", - "integrity": "sha512-gEpRTalKdosp4Bb8qWtc2iOgE5SeIHlpS1up9bFq2wAyYhl1UdTObYiHe98zEM9SQvSoqQZ1IQD0JNpg3Ml5pg==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MPL-2.0", - "optional": true, - "os": [ - "android" - ], - "peer": true, - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/lightningcss-darwin-arm64": { - "version": "1.33.0", - "resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.33.0.tgz", - "integrity": "sha512-Sciaz8eenNTKn9b3t7+xr0ipTp9YxKQY4npwQ3mrRuL0BAVHBLyZxofhaKBAVtzmtRZ/zTyo0/to4B1uWG/Djg==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MPL-2.0", - "optional": true, - "os": [ - "darwin" - ], - "peer": true, - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/lightningcss-darwin-x64": { - "version": "1.33.0", - "resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.33.0.tgz", - "integrity": "sha512-Z5UPAxzrjlWNNyGy6i65cJzzvgJ5D3T6wMvs+gWpY9d7qRhANrxqAp6LhxIgZhWEw18RfJTGcRxjuLIBr+m8XQ==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MPL-2.0", - "optional": true, - "os": [ - "darwin" - ], - "peer": true, - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/lightningcss-freebsd-x64": { - "version": "1.33.0", - "resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.33.0.tgz", - "integrity": "sha512-QQM/Ti/hQajJwCY+RiWuCZ9sdtI/XQk7nDK5vC8kkdwixezOlDgvDx7+RT+QjK6FcFT4MpsuoBnHIo/O3StRRg==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MPL-2.0", - "optional": true, - "os": [ - "freebsd" - ], - "peer": true, - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/lightningcss-linux-arm-gnueabihf": { - "version": "1.33.0", - "resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.33.0.tgz", - "integrity": "sha512-N7FVBe6iS24MlM6R/4RBTxGhQheZGs7tiQ9U32UtF75NzP5Q7xWPRqLBCKxlRQRk3rY1jCIPLzx7WzOhuUIRLQ==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MPL-2.0", - "optional": true, - "os": [ - "linux" - ], - "peer": true, - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/lightningcss-linux-arm64-gnu": { - "version": "1.33.0", - "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.33.0.tgz", - "integrity": "sha512-j2v/itmy4HlNxlc6voKXYgBqNi0Ng2LShg4z7GufpEgs05P+2suBVyi9I6YHq5uoVFx9ETin3eCEhLVyXGQnKg==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MPL-2.0", - "optional": true, - "os": [ - "linux" - ], - "peer": true, - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/lightningcss-linux-arm64-musl": { - "version": "1.33.0", - "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.33.0.tgz", - "integrity": "sha512-yiO5ROMuYQgXbC60yjZU5CYSFZGKXL0HFATXt9mHJn1+zW55oCtMI9NfcVhYLMFDL7gV7oBPon/EmMMGg2OvtQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MPL-2.0", - "optional": true, - "os": [ - "linux" - ], - "peer": true, - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/lightningcss-linux-x64-gnu": { - "version": "1.33.0", - "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.33.0.tgz", - "integrity": "sha512-ar+Ju7LmcN0Jo4FpL4hpFybwNG9/3A/Br5KW2n2jyODg3MEZXaDYADdemoNS+BDNfMgKvylJLj4S5tyRActuAg==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MPL-2.0", - "optional": true, - "os": [ - "linux" - ], - "peer": true, - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/lightningcss-linux-x64-musl": { - "version": "1.33.0", - "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.33.0.tgz", - "integrity": "sha512-RYiYbkokw0trfKqqzfF55lginwEPrD3OJDfTuJzFs1MK6iFnDenaz1fqLLtX4ITG3OktJQXOeTaw1awrBAlZPw==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MPL-2.0", - "optional": true, - "os": [ - "linux" - ], - "peer": true, - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/lightningcss-win32-arm64-msvc": { - "version": "1.33.0", - "resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.33.0.tgz", - "integrity": "sha512-1K+MPfLSFVpphzpdbfkhlWk6wBrTObBzS2T6db10PNOZgR9GoVsAWzwNyuhUYYbTp23j+4RrncfujZ4uAzXvwA==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MPL-2.0", - "optional": true, - "os": [ - "win32" - ], - "peer": true, - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/lightningcss-win32-x64-msvc": { - "version": "1.33.0", - "resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.33.0.tgz", - "integrity": "sha512-OlEICDx/Xl0FqSp4bry8zFnCvGpig3Gl4gCquvYwHuqJKEC1+n9NgDniFvqHGmMv1ZkqDJrDqKKSykTDX+ehuA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MPL-2.0", - "optional": true, - "os": [ - "win32" - ], - "peer": true, - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/locate-path": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", - "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", - "dev": true, - "license": "MIT", - "dependencies": { - "p-locate": "^5.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/lodash.merge": { - "version": "4.6.2", - "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", - "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/magic-string": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-1.2.3.tgz", - "integrity": "sha512-Bpb0W2TbLKOZ7vJnOUnVRGq3WL2p+ISV29M6hYPL1AFCpyKZpdr5ytiXoTSSxRVhg8YW7f65+6gbG8WG6PCa/g==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/sourcemap-codec": "^1.5.5" - } - }, - "node_modules/minimatch": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.5.tgz", - "integrity": "sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==", - "dev": true, - "license": "ISC", - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/ms": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "dev": true, - "license": "MIT" - }, - "node_modules/nanoid": { - "version": "3.3.18", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.18.tgz", - "integrity": "sha512-DTg4MJbGMWkfi6VZFdNt2/caMbQy4Ou+Op/hJQvGEWcnVfoA1QA+xzRKAzw9jD6+GVOOeYr/mIcuDSdug6F6+w==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "MIT", - "peer": true, - "bin": { - "nanoid": "bin/nanoid.cjs" - }, - "engines": { - "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" - } - }, - "node_modules/natural-compare": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", - "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", - "dev": true, - "license": "MIT" - }, - "node_modules/obug": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/obug/-/obug-2.1.4.tgz", - "integrity": "sha512-4a+OsYv9UktOJKE+l1A4OufDgdRF9PifWj+tJnHURo/P+WOxpG4GzUFL9qCalmWauao6ogiG+QvnCovwPoyAWA==", - "dev": true, - "funding": [ - "https://github.com/sponsors/sxzz", - "https://opencollective.com/debug" - ], - "license": "MIT", - "engines": { - "node": ">=12.20.0" - } - }, - "node_modules/optionator": { - "version": "0.9.4", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", - "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", - "dev": true, - "license": "MIT", - "dependencies": { - "deep-is": "^0.1.3", - "fast-levenshtein": "^2.0.6", - "levn": "^0.4.1", - "prelude-ls": "^1.2.1", - "type-check": "^0.4.0", - "word-wrap": "^1.2.5" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/ox": { - "version": "0.14.44", - "resolved": "https://registry.npmjs.org/ox/-/ox-0.14.44.tgz", - "integrity": "sha512-O54qXXHEk4ySamMSyBpI0AeBegS5frxU6+LA6Jb9Sf6kMOxcTNaxYmwZfpOu22DIQsdKfgQxHq8EsAGaoBQScA==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/wevm" - } - ], - "license": "MIT", - "dependencies": { - "@adraffy/ens-normalize": "^1.11.0", - "@noble/ciphers": "^1.3.0", - "@noble/curves": "1.9.1", - "@noble/hashes": "^1.8.0", - "@scure/bip32": "^1.7.0", - "@scure/bip39": "^1.6.0", - "abitype": "^1.2.3", - "eventemitter3": "5.0.1" - }, - "peerDependencies": { - "typescript": ">=5.4.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "yocto-queue": "^0.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/p-locate": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", - "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", - "dev": true, - "license": "MIT", - "dependencies": { - "p-limit": "^3.0.2" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/parent-module": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", - "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", - "dev": true, - "license": "MIT", - "dependencies": { - "callsites": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/picocolors": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", - "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", - "dev": true, - "license": "ISC", - "peer": true - }, - "node_modules/picomatch": { - "version": "4.0.7", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz", - "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, - "node_modules/postcss": { - "version": "8.5.28", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.28.tgz", - "integrity": "sha512-RRuzqDtt5Y9h3quz5hWhK+TPnsmVs6WwSU6LkJMeY4HstUEDuYTG8UJSdawMRzmzAtV+KEoG8N3Qg2qLy5vM/A==", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/postcss" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "MIT", - "peer": true, - "dependencies": { - "nanoid": "^3.3.18", - "picocolors": "^1.1.1", - "source-map-js": "^1.2.1" - }, - "engines": { - "node": "^10 || ^12 || >=14" - } - }, - "node_modules/prelude-ls": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", - "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/punycode": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", - "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/resolve-from": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", - "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/rolldown": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/rolldown/-/rolldown-1.2.7.tgz", - "integrity": "sha512-g0EtLvBjTUB7jhyV0S/TCup3v/XSVl45vUIGbOGU4QPiyjTenCe4mKuFvW9fEgYmS2Fo42AUssRmNuMziXdrig==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "@oxc-project/types": "=0.148.0", - "@rolldown/pluginutils": "^1.0.0" - }, - "bin": { - "rolldown": "bin/cli.mjs" - }, - "engines": { - "node": "^20.19.0 || >=22.12.0" - }, - "optionalDependencies": { - "@rolldown/binding-android-arm-eabi": "1.2.7", - "@rolldown/binding-android-arm64": "1.2.7", - "@rolldown/binding-darwin-arm64": "1.2.7", - "@rolldown/binding-darwin-x64": "1.2.7", - "@rolldown/binding-freebsd-x64": "1.2.7", - "@rolldown/binding-linux-arm-gnueabihf": "1.2.7", - "@rolldown/binding-linux-arm64-gnu": "1.2.7", - "@rolldown/binding-linux-arm64-musl": "1.2.7", - "@rolldown/binding-linux-ppc64-gnu": "1.2.7", - "@rolldown/binding-linux-s390x-gnu": "1.2.7", - "@rolldown/binding-linux-x64-gnu": "1.2.7", - "@rolldown/binding-linux-x64-musl": "1.2.7", - "@rolldown/binding-openharmony-arm64": "1.2.7", - "@rolldown/binding-win32-arm64-msvc": "1.2.7", - "@rolldown/binding-win32-x64-msvc": "1.2.7" - } - }, - "node_modules/semver": { - "version": "7.8.5", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz", - "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==", - "dev": true, - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dev": true, - "license": "MIT", - "dependencies": { - "shebang-regex": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/siginfo": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/siginfo/-/siginfo-2.0.0.tgz", - "integrity": "sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==", - "dev": true, - "license": "ISC" - }, - "node_modules/source-map-js": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", - "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", - "dev": true, - "license": "BSD-3-Clause", - "peer": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/stackback": { - "version": "0.0.2", - "resolved": "https://registry.npmjs.org/stackback/-/stackback-0.0.2.tgz", - "integrity": "sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==", - "dev": true, - "license": "MIT" - }, - "node_modules/std-env": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/std-env/-/std-env-4.2.0.tgz", - "integrity": "sha512-oCUKSupKTHX53EyjDtuZQ64pjLJ6yYCtpmEw0goYxtjG9KpbRe8KAsl2tBUGU9DyMcJ0RwJ8GqJAFzMXcXW1Rw==", - "dev": true, - "license": "MIT" - }, - "node_modules/strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "license": "MIT", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/tinybench": { - "version": "6.1.4", - "resolved": "https://registry.npmjs.org/tinybench/-/tinybench-6.1.4.tgz", - "integrity": "sha512-9APumHG7r4yOk4X4WlkmE71aZcv1gvin1czO3OQ1U9iJcFA5Ja/ygyb0vPOVHTthFozUYs8CLoLUlM8grb2lTQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=20.0.0" - } - }, - "node_modules/tinyexec": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-1.3.0.tgz", - "integrity": "sha512-QKAl9m8gWWGHV8jZcPeym6j+XULi6tOf1mT83WYJ4Lk2ytW/uwAWkrP0uFsdoYMdueVJ0qs26wZ+23xeB4ibNQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18" - } - }, - "node_modules/tinyglobby": { - "version": "0.2.17", - "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.17.tgz", - "integrity": "sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==", - "dev": true, - "license": "MIT", - "dependencies": { - "fdir": "^6.5.0", - "picomatch": "^4.0.4" - }, - "engines": { - "node": ">=12.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/SuperchupuDev" - } - }, - "node_modules/ts-api-utils": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.5.0.tgz", - "integrity": "sha512-OJ/ibxhPlqrMM0UiNHJ/0CKQkoKF243/AEmplt3qpRgkW8VG7IfOS41h7V8TjITqdByHzrjcS/2si+y4lIh8NA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18.12" - }, - "peerDependencies": { - "typescript": ">=4.8.4" - } - }, - "node_modules/type-check": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", - "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", - "dev": true, - "license": "MIT", - "dependencies": { - "prelude-ls": "^1.2.1" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/typescript": { - "version": "5.9.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", - "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", - "devOptional": true, - "license": "Apache-2.0", - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=14.17" - } - }, - "node_modules/typescript-eslint": { - "version": "8.69.0", - "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.69.0.tgz", - "integrity": "sha512-B3MltX0VqjUBNEe3b3sSuiRbfa6XrfHFtBiPamjT5AsW/dfq+y+bc0wyuS9DxAS1LyzCxRp2+rxzpLUvqM2BvA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/eslint-plugin": "8.69.0", - "@typescript-eslint/parser": "8.69.0", - "@typescript-eslint/typescript-estree": "8.69.0", - "@typescript-eslint/utils": "8.69.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", - "typescript": ">=4.8.4 <6.1.0" - } - }, - "node_modules/undici-types": { - "version": "6.21.0", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz", - "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/uri-js": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", - "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "punycode": "^2.1.0" - } - }, - "node_modules/viem": { - "version": "2.56.3", - "resolved": "https://registry.npmjs.org/viem/-/viem-2.56.3.tgz", - "integrity": "sha512-vUObq3GO7D3lz9gPNEE/xd5jIUnMbeVDWewh252o54pDEDlW4pDe6FEd/qTGL5RyK52cGHMM7kQ3wjxhilEvkQ==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/wevm" - } - ], - "license": "MIT", - "dependencies": { - "@noble/curves": "1.9.1", - "@noble/hashes": "1.8.0", - "@scure/bip32": "1.7.0", - "@scure/bip39": "1.6.0", - "abitype": "1.2.3", - "isows": "1.0.7", - "ox": "0.14.44", - "ws": "8.21.0" - }, - "peerDependencies": { - "typescript": ">=5.0.4" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/vite": { - "version": "8.2.2", - "resolved": "https://registry.npmjs.org/vite/-/vite-8.2.2.tgz", - "integrity": "sha512-cFKLV/PRgAUlIRm5WjMjJ86jrftzpqcgH+Us+DS8mI3CDNiH30Whrz8uHL3+MOLPAgqbMBAqWdAHAphOAM+z/Q==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "lightningcss": "^1.33.0", - "picomatch": "^4.0.5", - "postcss": "^8.5.26", - "rolldown": "~1.2.4", - "tinyglobby": "^0.2.17" - }, - "bin": { - "vite": "bin/vite.js" - }, - "engines": { - "node": "^20.19.0 || >=22.12.0" - }, - "funding": { - "url": "https://github.com/vitejs/vite?sponsor=1" - }, - "optionalDependencies": { - "fsevents": "~2.3.3" - }, - "peerDependencies": { - "@types/node": "^20.19.0 || >=22.12.0", - "@vitejs/devtools": "^0.4.0 || ^0.5.0", - "esbuild": "^0.27.0 || ^0.28.0", - "jiti": ">=1.21.0", - "less": "^4.0.0", - "sass": "^1.70.0", - "sass-embedded": "^1.70.0", - "stylus": ">=0.54.8", - "sugarss": "^5.0.0", - "terser": "^5.16.0", - "tsx": "^4.8.1", - "yaml": "^2.4.2" - }, - "peerDependenciesMeta": { - "@types/node": { - "optional": true - }, - "@vitejs/devtools": { - "optional": true - }, - "esbuild": { - "optional": true - }, - "jiti": { - "optional": true - }, - "less": { - "optional": true - }, - "sass": { - "optional": true - }, - "sass-embedded": { - "optional": true - }, - "stylus": { - "optional": true - }, - "sugarss": { - "optional": true - }, - "terser": { - "optional": true - }, - "tsx": { - "optional": true - }, - "yaml": { - "optional": true - } - } - }, - "node_modules/vitest": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/vitest/-/vitest-5.0.0.tgz", - "integrity": "sha512-gpsMNoRhMjMktVxPtstOH4/PJuPyovVaMDr4oDilXaGH1EcqM2OE96SoHT2VIQ6fTGtTjqmHDrEu2X9RQiXf8Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/chai": "^5.2.2", - "@vitest/mocker": "5.0.0", - "chai": "^6.2.2", - "es-module-lexer": "^2.3.2", - "expect-type": "^1.4.0", - "magic-string": "^1.2.3", - "obug": "^2.1.4", - "picomatch": "^4.0.7", - "std-env": "^4.2.0", - "tinybench": "6.1.4", - "tinyexec": "1.3.0", - "tinyglobby": "^0.2.17", - "why-is-node-running": "^2.3.0" - }, - "bin": { - "vitest": "vitest.mjs" - }, - "engines": { - "node": "^22.12.0 || ^24.0.0 || >=26.0.0" - }, - "funding": { - "url": "https://opencollective.com/vitest" - }, - "peerDependencies": { - "@edge-runtime/vm": "*", - "@opentelemetry/api": "^1.9.0", - "@types/node": "^22.0.0 || >=24.0.0", - "@vitest/browser-playwright": "5.0.0", - "@vitest/browser-preview": "5.0.0", - "@vitest/browser-webdriverio": "^5.0.0-beta.5 || >=5.0.0", - "@vitest/coverage-istanbul": "5.0.0", - "@vitest/coverage-v8": "5.0.0", - "@vitest/ui": "5.0.0", - "happy-dom": "*", - "jsdom": "*", - "vite": "^6.4.0 || ^7.0.0 || ^8.0.0" - }, - "peerDependenciesMeta": { - "@edge-runtime/vm": { - "optional": true - }, - "@opentelemetry/api": { - "optional": true - }, - "@types/node": { - "optional": true - }, - "@vitest/browser-playwright": { - "optional": true - }, - "@vitest/browser-preview": { - "optional": true - }, - "@vitest/browser-webdriverio": { - "optional": true - }, - "@vitest/coverage-istanbul": { - "optional": true - }, - "@vitest/coverage-v8": { - "optional": true - }, - "@vitest/ui": { - "optional": true - }, - "happy-dom": { - "optional": true - }, - "jsdom": { - "optional": true - }, - "vite": { - "optional": false - } - } - }, - "node_modules/which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dev": true, - "license": "ISC", - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "node-which": "bin/node-which" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/why-is-node-running": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/why-is-node-running/-/why-is-node-running-2.3.0.tgz", - "integrity": "sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==", - "dev": true, - "license": "MIT", - "dependencies": { - "siginfo": "^2.0.0", - "stackback": "0.0.2" - }, - "bin": { - "why-is-node-running": "cli.js" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/word-wrap": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", - "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/ws": { - "version": "8.21.0", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.21.0.tgz", - "integrity": "sha512-Vsp28b7DRcimFQvrqu2Wek3z1iYxDCWqHYB8Qsnk/S4RfaCQzPGPyBNuVjJV3cd6UiKtUtp6sNM77gWvzcCH+g==", - "license": "MIT", - "engines": { - "node": ">=10.0.0" - }, - "peerDependencies": { - "bufferutil": "^4.0.1", - "utf-8-validate": ">=5.0.2" - }, - "peerDependenciesMeta": { - "bufferutil": { - "optional": true - }, - "utf-8-validate": { - "optional": true - } - } - }, - "node_modules/yocto-queue": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", - "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - } - } -} diff --git a/packages/privy-adapter/package.json b/packages/privy-adapter/package.json index d44fef5..73b039c 100644 --- a/packages/privy-adapter/package.json +++ b/packages/privy-adapter/package.json @@ -2,40 +2,26 @@ "name": "@oneshot/privy-adapter", "version": "0.1.0", "private": true, - "description": "Privy authorization policy modelling and settlement request construction for OneShot.", + "description": "Privy authorization policy modelling, canonical settlement requests, drift hardening, and frozen adapter ports.", "license": "MIT", "type": "module", - "engines": { - "node": ">=22.12.0" - }, "main": "./dist/index.js", "types": "./dist/index.d.ts", "exports": { ".": { "types": "./dist/index.d.ts", - "default": "./dist/index.js" + "import": "./dist/index.js" } }, - "files": [ - "dist" - ], "scripts": { - "build": "tsc --project tsconfig.build.json", - "typecheck": "tsc --noEmit", + "build": "tsc -b", + "clean": "tsc -b --clean", "lint": "eslint src test", - "test": "vitest run", - "test:watch": "vitest", - "check": "npm run lint && npm run typecheck && npm run test && npm run build" + "test": "vitest run --config vitest.config.ts", + "typecheck": "tsc -b --pretty false" }, "dependencies": { + "@oneshot/arc-adapter": "workspace:*", "viem": "2.56.3" - }, - "devDependencies": { - "@eslint/js": "9.39.1", - "@types/node": "22.18.11", - "eslint": "9.39.1", - "typescript": "5.9.3", - "typescript-eslint": "8.69.0", - "vitest": "5.0.0" } } diff --git a/packages/privy-adapter/src/hardening.ts b/packages/privy-adapter/src/hardening.ts new file mode 100644 index 0000000..575cc77 --- /dev/null +++ b/packages/privy-adapter/src/hardening.ts @@ -0,0 +1,176 @@ +/** + * Configuration drift hardening (B04.4). + * + * The settlement boundary depends on values that live outside this repository: + * a Privy policy in provider configuration, a wallet ID, a chain, a token, a + * spending cap. Any of them can change without a commit, a deploy, or a + * review. + * + * So the expected values are captured once as a baseline, and rechecked at + * startup and before sensitive use. Every difference fails closed. A widened + * cap and a narrowed cap are both failures here: this module's job is to + * detect that the world no longer matches what was reviewed, not to judge + * whether the change was benign. + */ + +import { keccak256, toHex } from 'viem'; + +/** The identity the build was reviewed against. */ +export interface SettlementBaseline { + readonly policyDigest: string; + readonly policyId: string; + readonly walletId: string; + readonly walletAddress: string; + readonly chainId: number; + readonly tokenContract: string; + readonly settlementCapAtomic: bigint; +} + +/** The identity observed right now. */ +export type ObservedIdentity = SettlementBaseline; + +export type DriftField = + | 'policyDigest' + | 'policyId' + | 'walletId' + | 'walletAddress' + | 'chainId' + | 'tokenContract' + | 'settlementCapAtomic'; + +export interface DriftFinding { + readonly field: DriftField; + /** Sanitized description. Never prints a credential. */ + readonly detail: string; +} + +export interface DriftReport { + readonly safe: boolean; + readonly findings: readonly DriftFinding[]; +} + +function normalize(value: string): string { + return value.trim().toLowerCase(); +} + +/** + * Compare observed identity against the reviewed baseline. + * + * Every field is compared, and all differences are collected rather than + * returning on the first. An operator fixing drift should see the whole + * picture, not discover it one restart at a time. + */ +export function detectDrift( + baseline: SettlementBaseline, + observed: ObservedIdentity, +): DriftReport { + const findings: DriftFinding[] = []; + + if (normalize(baseline.policyDigest) !== normalize(observed.policyDigest)) { + findings.push({ + field: 'policyDigest', + detail: + 'The deployed Privy policy no longer matches the reviewed policy. ' + + 'Settlement is refused until the policy is restored or a new baseline ' + + 'is reviewed and approved.', + }); + } + + if (normalize(baseline.policyId) !== normalize(observed.policyId)) { + findings.push({ field: 'policyId', detail: 'The attached policy identifier changed.' }); + } + + if (normalize(baseline.walletId) !== normalize(observed.walletId)) { + findings.push({ field: 'walletId', detail: 'The execution wallet identifier changed.' }); + } + + if (normalize(baseline.walletAddress) !== normalize(observed.walletAddress)) { + findings.push({ + field: 'walletAddress', + detail: 'The execution wallet address changed; evidence would not bind to prior attempts.', + }); + } + + if (baseline.chainId !== observed.chainId) { + findings.push({ + field: 'chainId', + detail: `Chain changed from ${baseline.chainId} to ${observed.chainId}.`, + }); + } + + if (normalize(baseline.tokenContract) !== normalize(observed.tokenContract)) { + findings.push({ field: 'tokenContract', detail: 'The settlement token contract changed.' }); + } + + if (baseline.settlementCapAtomic !== observed.settlementCapAtomic) { + // Both directions are reported. A lowered cap is not dangerous, but it + // still means the deployment no longer matches what was reviewed. + findings.push({ + field: 'settlementCapAtomic', + detail: + `The per-settlement cap changed from ${baseline.settlementCapAtomic.toString()} ` + + `to ${observed.settlementCapAtomic.toString()} atomic units.`, + }); + } + + return { safe: findings.length === 0, findings }; +} + +/** Deterministic digest of a baseline, for recording in evidence. */ +export function baselineDigest(baseline: SettlementBaseline): `0x${string}` { + return keccak256( + toHex( + JSON.stringify([ + normalize(baseline.policyDigest), + normalize(baseline.policyId), + normalize(baseline.walletId), + normalize(baseline.walletAddress), + baseline.chainId, + normalize(baseline.tokenContract), + baseline.settlementCapAtomic.toString(10), + ]), + ), + ); +} + +export class DriftError extends Error { + constructor(readonly findings: readonly DriftFinding[]) { + super( + `Settlement configuration drifted from the reviewed baseline: ${findings + .map((finding) => finding.field) + .join(', ')}.`, + ); + this.name = 'DriftError'; + } +} + +/** + * Gate sensitive use on an unchanged baseline. + * + * Throws rather than returning a boolean, so a caller cannot proceed by + * ignoring a return value. + */ +export function assertNoDrift( + baseline: SettlementBaseline, + observed: ObservedIdentity, +): void { + const report = detectDrift(baseline, observed); + if (!report.safe) throw new DriftError(report.findings); +} + +/** + * Webhook posture (B04.4). + * + * Webhooks stay disabled. Accepting a provider callback means accepting an + * unauthenticated inbound claim about a payment, and signature verification + * against Privy's scheme has not been proven here. Polling through + * `EvidencePort` is complete on its own, so a webhook would add attack surface + * without adding capability. + */ +export const WEBHOOKS_ENABLED = false; + +/** Why webhooks are off, surfaced in the handoff artifact. */ +export const WEBHOOK_POSTURE = + 'Disabled. Signature verification is unproven, and polling via EvidencePort ' + + 'is already complete. Enabling requires proven plan availability and verified ' + + 'signatures.'; diff --git a/packages/privy-adapter/src/index.ts b/packages/privy-adapter/src/index.ts index 94c157a..5ea836c 100644 --- a/packages/privy-adapter/src/index.ts +++ b/packages/privy-adapter/src/index.ts @@ -1,2 +1,6 @@ export * from './policy.js'; export * from './scope.js'; +export * from './request.js'; +export * from './policy-fixture.js'; +export * from './hardening.js'; +export * from './ports.js'; diff --git a/packages/privy-adapter/src/policy-fixture.ts b/packages/privy-adapter/src/policy-fixture.ts new file mode 100644 index 0000000..44023d7 --- /dev/null +++ b/packages/privy-adapter/src/policy-fixture.ts @@ -0,0 +1,190 @@ +/** + * Expected Privy policy definition and its fingerprint (B02.3). + * + * Expresses the policy OneShot requires on the execution wallet, in the shape + * Privy's engine uses: rules over conditions, evaluated in order, with a final + * default-deny. + * + * Two properties matter: + * + * 1. **Default deny.** The last rule denies everything. A dimension nobody + * thought to constrain is refused rather than allowed. + * 2. **Fingerprint.** The policy lives in Privy's configuration, outside this + * repository, where it can be edited without a commit. The digest lets the + * readiness probe detect drift between the deployed policy and the one this + * build expects. + */ + +import { keccak256, toHex } from 'viem'; + +export type PolicyEffect = 'ALLOW' | 'DENY'; + +/** Field sources Privy exposes, verified 2026-09-07 against its documentation. */ +export type FieldSource = 'ethereum_transaction' | 'ethereum_calldata'; + +export interface PolicyCondition { + readonly fieldSource: FieldSource; + /** `to`, `value`, `chain_id`, or `function.param` for calldata. */ + readonly field: string; + readonly operator: 'eq' | 'in' | 'lte'; + readonly value: string | readonly string[]; +} + +export interface PolicyRule { + readonly name: string; + readonly effect: PolicyEffect; + readonly conditions: readonly PolicyCondition[]; +} + +export interface PolicyDefinition { + readonly version: 'settlement-policy-v1'; + readonly rules: readonly PolicyRule[]; +} + +export interface PolicyInputs { + readonly chainId: number; + readonly tokenContract: `0x${string}`; + readonly recipientAllowlist: readonly `0x${string}`[]; + /** Maximum atomic units for a single settlement. */ + readonly amountCapAtomic: bigint; +} + +/** + * Build the expected policy. + * + * The single ALLOW rule requires every condition to hold at once: right chain, + * right token contract, zero native value, the transfer method, an allowlisted + * recipient, and an amount at or under the cap. Anything failing one condition + * falls through to the default DENY. + */ +export function buildExpectedPolicy(inputs: PolicyInputs): PolicyDefinition { + return { + version: 'settlement-policy-v1', + rules: [ + { + name: 'allow-constrained-usdc-settlement', + effect: 'ALLOW', + conditions: [ + { + fieldSource: 'ethereum_transaction', + field: 'chain_id', + operator: 'eq', + value: String(inputs.chainId), + }, + { + fieldSource: 'ethereum_transaction', + field: 'to', + operator: 'eq', + value: inputs.tokenContract.toLowerCase(), + }, + { + // Settlement moves ERC-20 USDC. Native value riding along would be + // a second, unbounded transfer of the gas asset. + fieldSource: 'ethereum_transaction', + field: 'value', + operator: 'eq', + value: '0', + }, + { + fieldSource: 'ethereum_calldata', + field: 'transfer', + operator: 'eq', + value: 'transfer', + }, + { + fieldSource: 'ethereum_calldata', + field: 'transfer.to', + operator: 'in', + value: inputs.recipientAllowlist.map((address) => address.toLowerCase()), + }, + { + fieldSource: 'ethereum_calldata', + field: 'transfer.amount', + operator: 'lte', + value: inputs.amountCapAtomic.toString(10), + }, + ], + }, + { + // Must remain last. Anything not explicitly allowed above is refused. + name: 'default-deny', + effect: 'DENY', + conditions: [], + }, + ], + }; +} + +/** The dimensions the ALLOW rule must constrain for the policy to be sound. */ +export const REQUIRED_POLICY_FIELDS: readonly string[] = [ + 'chain_id', + 'to', + 'value', + 'transfer', + 'transfer.to', + 'transfer.amount', +]; + +/** + * Deterministic digest of a policy definition. + * + * Readiness compares this against the digest of the deployed policy. A + * mismatch means the remote policy drifted from what this build assumes, which + * must block settlement rather than be discovered during a payment. + */ +export function policyDigest(policy: PolicyDefinition): `0x${string}` { + const canonical = JSON.stringify([ + policy.version, + policy.rules.map((rule) => [ + rule.name, + rule.effect, + rule.conditions.map((condition) => [ + condition.fieldSource, + condition.field, + condition.operator, + // Array.isArray widens to any[], so narrow on the declared union + // instead: a list value is order-insensitive, a scalar is not. + typeof condition.value === 'string' ? condition.value : [...condition.value].sort(), + ]), + ]), + ]); + return keccak256(toHex(canonical)); +} + +export type PolicySoundness = + | { readonly sound: true } + | { readonly sound: false; readonly reason: string }; + +/** + * Check that a policy is structurally safe before it is trusted. + * + * Catches the two ways a policy silently stops protecting anything: losing its + * terminal default-deny, or dropping a constrained dimension. + */ +export function assessPolicySoundness(policy: PolicyDefinition): PolicySoundness { + const last = policy.rules.at(-1); + if (!last || last.effect !== 'DENY' || last.conditions.length > 0) { + return { + sound: false, + reason: 'The final rule must be an unconditional default deny.', + }; + } + + const allowRules = policy.rules.filter((rule) => rule.effect === 'ALLOW'); + if (allowRules.length === 0) { + return { sound: false, reason: 'The policy allows nothing and cannot settle.' }; + } + + for (const rule of allowRules) { + const fields = new Set(rule.conditions.map((condition) => condition.field)); + const missing = REQUIRED_POLICY_FIELDS.filter((field) => !fields.has(field)); + if (missing.length > 0) { + return { + sound: false, + reason: `ALLOW rule "${rule.name}" leaves ${missing.join(', ')} unconstrained.`, + }; + } + } + + return { sound: true }; +} diff --git a/packages/privy-adapter/src/ports.ts b/packages/privy-adapter/src/ports.ts new file mode 100644 index 0000000..605153d --- /dev/null +++ b/packages/privy-adapter/src/ports.ts @@ -0,0 +1,116 @@ +/** + * Production entry point (B04.5). + * + * Exports only the frozen port interfaces from `milestones/CONTRACTS.md` + * section 5 and sanitized error shapes. Consumers compose against this surface, + * never against adapter internals, so the internals can change without + * breaking A's composition. + * + * Import direction is one-way by design: this package depends on the contract + * and on `@oneshot/arc-adapter`, and on nothing owned by Coder A or Coder C. + * `milestones/README.md` forbids importing another owner's implementation + * package, and a compatibility test asserts it rather than trusting review. + */ + +import type { EvidenceResult, SubmissionOutcome } from '@oneshot/arc-adapter'; + +/** Compatibility metadata published in the B04 handoff artifact. */ +export const ADAPTER_CONTRACT_VERSION = 'settlement-adapter-contract-v1'; + +/** Contract pack this build was written against. */ +export const CONTRACT_PACK_VERSION = 'frozen-v1'; + +/** AuthorizationPort result, per CONTRACTS.md section 5. */ +export type AuthorizationResult = 'AUTHORIZED' | 'DENIED' | 'UNAVAILABLE'; + +export interface AuthorizationRequest { + readonly businessIntentId: string; + readonly attemptId: string; + readonly payloadFingerprint: string; + readonly chainId: number; + readonly tokenContract: `0x${string}`; + readonly recipient: `0x${string}`; + readonly amountAtomic: bigint; + readonly correlationId: string; +} + +export interface AuthorizationPort { + evaluate(request: AuthorizationRequest): Promise; +} + +export interface SettlementRequest extends AuthorizationRequest { + readonly idempotencyKey: string; + readonly referenceId: string; +} + +export interface SettlementPort { + submit(request: SettlementRequest): Promise; +} + +export interface EvidenceRequest { + readonly businessIntentId: string; + readonly transactionHash?: string | undefined; + readonly chainId: number; + readonly tokenContract: string; + readonly recipient: string; + readonly amountAtomic: bigint; +} + +export interface EvidencePort { + lookup(request: EvidenceRequest): Promise; +} + +/** + * Stable error families crossing the package boundary. + * + * Deliberately coarse. A provider's own error text can carry request bodies, + * headers, and identifiers, so it never crosses this seam; callers get a + * classification and a sanitized message. + */ +export type AdapterErrorCode = + | 'CONFIGURATION_INVALID' + | 'CONFIGURATION_DRIFTED' + | 'NOT_READY' + | 'SCOPE_DENIED' + | 'PROVIDER_UNAVAILABLE' + | 'OUTCOME_AMBIGUOUS'; + +export class AdapterError extends Error { + constructor( + readonly code: AdapterErrorCode, + message: string, + ) { + super(message); + this.name = 'AdapterError'; + } +} + +/** + * Compatibility manifest, published for A's composition. + * + * `providesPorts` is what A may rely on. `requiresHostCapabilities` is what A + * must supply. Anything absent from both is an internal detail that may change + * without notice. + */ +export const COMPATIBILITY_MANIFEST = { + contractVersion: ADAPTER_CONTRACT_VERSION, + contractPack: CONTRACT_PACK_VERSION, + providesPorts: ['AuthorizationPort', 'SettlementPort', 'EvidencePort'] as const, + requiresHostCapabilities: [ + 'durable business intent and attempt state', + 'atomic submission-ownership grant', + 'persisted request identity across restarts', + ] as const, + doesNotProvide: [ + 'reconciliation decisions', + 'external-index authority', + 'automatic transaction replacement', + 'user interface', + ] as const, + /** Live gaps, listed so fixtures cannot masquerade as live evidence. */ + liveGapsForGateP4: [ + 'No Privy tenant has executed a policy denial or an allowed settlement.', + 'Arc receipt and Transfer log shapes are modelled, never observed.', + 'Privy wallet and policy identifier formats are shape-guessed, not documented.', + ] as const, +} as const; diff --git a/packages/privy-adapter/src/request.ts b/packages/privy-adapter/src/request.ts new file mode 100644 index 0000000..13db5d5 --- /dev/null +++ b/packages/privy-adapter/src/request.ts @@ -0,0 +1,177 @@ +/** + * Canonical settlement request identity (B02.1, B02.2). + * + * One Business Intent must produce one byte-stable request. Everything here is + * deterministic: the same intent yields the same calldata, the same body + * fingerprint, the same idempotency key, and the same reference ID on every + * process, every worker, and every restart. + * + * That determinism is the point. `.agent/SECURITY_INVARIANTS.md` requires a + * stable identity across retries, and the provider idempotency key is only + * useful if independent workers derive the identical key for the identical + * obligation. + */ + +import { keccak256, toHex } from 'viem'; +import { buildSettlementTransaction, type ExpectedScope } from './scope.js'; + +/** The immutable inputs that define one settlement obligation. */ +export interface SettlementIntent { + /** Caller-supplied stable identity. Survives retries and restarts. */ + readonly businessIntentId: string; + readonly chainId: number; + readonly tokenContract: `0x${string}`; + readonly recipient: `0x${string}`; + /** Atomic units at the ERC-20 six-decimal precision. */ + readonly amountAtomic: bigint; +} + +export interface CanonicalRequest { + readonly businessIntentId: string; + /** Deterministic serialization the fingerprint is computed over. */ + readonly canonicalBody: string; + /** keccak256 of the canonical body. Detects any payload divergence. */ + readonly payloadFingerprint: `0x${string}`; + /** Stable key sent to Privy so a replay collapses provider-side too. */ + readonly idempotencyKey: `0x${string}`; + /** Stable lookup identity for evidence recovery. */ + readonly referenceId: string; + readonly chainId: number; + readonly to: `0x${string}`; + readonly value: bigint; + readonly data: `0x${string}`; +} + +export class RequestError extends Error { + constructor( + message: string, + readonly code: + | 'EMPTY_INTENT_ID' + | 'INTENT_ID_TOO_LONG' + | 'AMOUNT_NOT_POSITIVE' + | 'AMOUNT_TOO_LARGE' + | 'IDEMPOTENCY_KEY_REUSED', + ) { + super(message); + this.name = 'RequestError'; + } +} + +/** `milestones/CONTRACTS.md`: the intent id is an opaque, length-bounded string. */ +const MAX_INTENT_ID_LENGTH = 128; + +/** uint256 ceiling. An amount at or above this cannot be encoded. */ +const MAX_UINT256 = (1n << 256n) - 1n; + +/** + * Serialize an intent deterministically. + * + * Field order is fixed and written by hand rather than taken from + * `JSON.stringify` over an object literal, because key order there depends on + * construction order. Two workers building the same intent differently would + * otherwise produce different fingerprints for the same obligation. + * + * The address fields are lowercased so that checksummed and non-checksummed + * spellings of one address cannot fingerprint differently. + */ +export function canonicalizeIntent(intent: SettlementIntent): string { + return JSON.stringify([ + ['businessIntentId', intent.businessIntentId], + ['chainId', intent.chainId], + ['tokenContract', intent.tokenContract.toLowerCase()], + ['recipient', intent.recipient.toLowerCase()], + ['amountAtomic', intent.amountAtomic.toString(10)], + ]); +} + +function validate(intent: SettlementIntent): void { + if (intent.businessIntentId.trim() === '') { + throw new RequestError('business_intent_id must not be empty.', 'EMPTY_INTENT_ID'); + } + if (intent.businessIntentId.length > MAX_INTENT_ID_LENGTH) { + throw new RequestError( + `business_intent_id exceeds ${MAX_INTENT_ID_LENGTH} characters.`, + 'INTENT_ID_TOO_LONG', + ); + } + if (intent.amountAtomic <= 0n) { + throw new RequestError('Settlement amount must be greater than zero.', 'AMOUNT_NOT_POSITIVE'); + } + if (intent.amountAtomic > MAX_UINT256) { + throw new RequestError('Settlement amount exceeds uint256.', 'AMOUNT_TOO_LARGE'); + } +} + +/** + * Build the canonical request for an intent. + * + * Uses the direct ERC-20 transfer path. The Arc Memo forwarded call is not + * built: B01.3 recorded it `NOT_SUPPORTED` because Privy policy cannot + * constrain the forwarded recipient and amount. See + * `.agent/research/20260907-b01-arc-privy-verification.md`. + */ +export function buildCanonicalRequest(intent: SettlementIntent): CanonicalRequest { + validate(intent); + + const scope: ExpectedScope = { + chainId: intent.chainId, + tokenContract: intent.tokenContract, + recipient: intent.recipient, + amountAtomic: intent.amountAtomic, + }; + const transaction = buildSettlementTransaction(scope); + + const canonicalBody = canonicalizeIntent(intent); + const payloadFingerprint = keccak256(toHex(canonicalBody)); + + return { + businessIntentId: intent.businessIntentId, + canonicalBody, + payloadFingerprint, + // Derived from the fingerprint, so the same obligation always produces the + // same provider key and a duplicate submission collapses at Privy too. + idempotencyKey: payloadFingerprint, + referenceId: `oneshot-${intent.businessIntentId}`, + chainId: transaction.chainId, + to: transaction.to, + value: transaction.value, + data: transaction.data, + }; +} + +/** + * Refuse reuse of one idempotency key with a different body. + * + * This is the `INTENT_PAYLOAD_CONFLICT` rule from `milestones/CONTRACTS.md` + * section 3 at the adapter boundary. Sending a changed body under a previously + * used key is how a second, different payment gets authorized under the + * identity of the first. + * + * Because the key here is the fingerprint itself, a differing body yields a + * differing key and this can only trigger on a caller-supplied mismatch. It is + * checked anyway: the key derivation is an implementation choice that could + * change, and this invariant must outlive it. + */ +export function assertIdempotencyKeyBinding( + request: CanonicalRequest, + previouslySeen: { readonly idempotencyKey: string; readonly payloadFingerprint: string }, +): void { + if ( + previouslySeen.idempotencyKey === request.idempotencyKey && + previouslySeen.payloadFingerprint !== request.payloadFingerprint + ) { + throw new RequestError( + 'The same idempotency key was reused with a different payload fingerprint.', + 'IDEMPOTENCY_KEY_REUSED', + ); + } +} + +/** + * Provider idempotency window, documented as supplemental only (B02.2). + * + * Privy's key deduplicates for a bounded period. OneShot's durable state is the + * authority for at-most-once settlement and remains so past this window; the + * provider key is defence in depth, never the lock. + */ +export const PROVIDER_IDEMPOTENCY_WINDOW_HOURS = 24; diff --git a/packages/privy-adapter/test/boundary.test.ts b/packages/privy-adapter/test/boundary.test.ts new file mode 100644 index 0000000..7f8ccd9 --- /dev/null +++ b/packages/privy-adapter/test/boundary.test.ts @@ -0,0 +1,76 @@ +import { readFileSync, readdirSync } from 'node:fs'; +import { join, resolve } from 'node:path'; +import { describe, expect, it } from 'vitest'; +import { COMPATIBILITY_MANIFEST } from '../src/ports.js'; + +// Anchored to this file, not the working directory: the suite runs both +// package-locally and from the workspace root, and a relative 'src' resolves +// differently in each. +const SRC_ROOT = resolve(import.meta.dirname, '..', 'src'); + +/** Every source file in this package. */ +function sourceFiles(dir = SRC_ROOT): string[] { + return readdirSync(dir, { withFileTypes: true }).flatMap((entry) => { + const path = join(dir, entry.name); + if (entry.isDirectory()) return sourceFiles(path); + return entry.name.endsWith('.ts') ? [path] : []; + }); +} + +// B04.5 requires that no import reaches an A- or C-owned package. Asserted +// here rather than trusted to review, because the import that breaks lane +// independence is the easy one to add by accident. +describe('lane import boundary', () => { + const FORBIDDEN = [ + '@oneshot/domain', + '@oneshot/storage-postgres', + '@oneshot/contracts', + '@oneshot/testkit-domain', + '@oneshot/reconciliation', + '@oneshot/recovery-agent', + '@oneshot/subgraph-mcp-adapter', + '@oneshot/testkit-failures', + ]; + + it.each(FORBIDDEN)('does not import %s', (pkg) => { + for (const file of sourceFiles()) { + expect(readFileSync(file, 'utf8')).not.toContain(pkg); + } + }); + + it('imports no other lane package at all', () => { + // Catches a package name added after this test was written. + const allowed = new Set(['@oneshot/arc-adapter']); + for (const file of sourceFiles()) { + const matches = readFileSync(file, 'utf8').matchAll(/@oneshot\/[a-z-]+/g); + for (const [name] of matches) { + expect(allowed).toContain(name); + } + } + }); +}); + +describe('compatibility manifest', () => { + it('publishes exactly the three frozen ports', () => { + expect(COMPATIBILITY_MANIFEST.providesPorts).toEqual([ + 'AuthorizationPort', + 'SettlementPort', + 'EvidencePort', + ]); + }); + + it('states what the host must supply', () => { + expect(COMPATIBILITY_MANIFEST.requiresHostCapabilities.length).toBeGreaterThan(0); + }); + + it('excludes reconciliation and index authority', () => { + expect(COMPATIBILITY_MANIFEST.doesNotProvide).toContain('reconciliation decisions'); + expect(COMPATIBILITY_MANIFEST.doesNotProvide).toContain('external-index authority'); + }); + + it('lists live gaps so fixtures cannot pass as live evidence', () => { + // Acceptance criterion: live-only gaps must not masquerade as completed + // evidence. + expect(COMPATIBILITY_MANIFEST.liveGapsForGateP4.length).toBeGreaterThan(0); + }); +}); diff --git a/packages/privy-adapter/test/hardening.test.ts b/packages/privy-adapter/test/hardening.test.ts new file mode 100644 index 0000000..96975c4 --- /dev/null +++ b/packages/privy-adapter/test/hardening.test.ts @@ -0,0 +1,111 @@ +import { describe, expect, it } from 'vitest'; +import { + DriftError, + WEBHOOKS_ENABLED, + assertNoDrift, + baselineDigest, + detectDrift, + type DriftField, + type SettlementBaseline, +} from '../src/hardening.js'; + +const BASELINE: SettlementBaseline = { + policyDigest: '0x' + 'a'.repeat(64), + policyId: 'policy_1234567890', + walletId: 'wallet_1234567890', + walletAddress: '0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa', + chainId: 5042002, + tokenContract: '0x3600000000000000000000000000000000000000', + settlementCapAtomic: 1_000_000n, +}; + +describe('no drift', () => { + it('accepts an identical observation', () => { + expect(detectDrift(BASELINE, { ...BASELINE })).toEqual({ safe: true, findings: [] }); + }); + + it('ignores casing differences in identifiers', () => { + const observed = { + ...BASELINE, + walletAddress: BASELINE.walletAddress.toUpperCase().replace('0X', '0x'), + tokenContract: BASELINE.tokenContract.toUpperCase().replace('0X', '0x'), + }; + expect(detectDrift(BASELINE, observed).safe).toBe(true); + }); +}); + +describe('every field fails closed on change', () => { + it.each<[DriftField, Partial]>([ + ['policyDigest', { policyDigest: '0x' + 'b'.repeat(64) }], + ['policyId', { policyId: 'policy_other' }], + ['walletId', { walletId: 'wallet_other' }], + ['walletAddress', { walletAddress: '0x' + '2'.repeat(40) }], + ['chainId', { chainId: 1 }], + ['tokenContract', { tokenContract: '0x' + '4'.repeat(40) }], + ['settlementCapAtomic', { settlementCapAtomic: 2_000_000n }], + ])('detects drift in %s', (field, override) => { + const report = detectDrift(BASELINE, { ...BASELINE, ...override }); + expect(report.safe).toBe(false); + expect(report.findings.map((finding) => finding.field)).toContain(field); + }); + + it('treats a lowered cap as drift too', () => { + // Not dangerous, but the deployment no longer matches what was reviewed. + // Judging benignity is not this module's job. + const report = detectDrift(BASELINE, { ...BASELINE, settlementCapAtomic: 1n }); + expect(report.safe).toBe(false); + }); + + it('reports every difference at once', () => { + const report = detectDrift(BASELINE, { + ...BASELINE, + chainId: 1, + policyId: 'policy_other', + settlementCapAtomic: 9n, + }); + expect(report.findings).toHaveLength(3); + }); +}); + +describe('assertNoDrift', () => { + it('passes silently when nothing changed', () => { + expect(() => { + assertNoDrift(BASELINE, { ...BASELINE }); + }).not.toThrow(); + }); + + it('throws rather than returning a value a caller could ignore', () => { + expect(() => { + assertNoDrift(BASELINE, { ...BASELINE, chainId: 1 }); + }).toThrow(DriftError); + }); + + it('names the drifted fields without printing credentials', () => { + try { + assertNoDrift(BASELINE, { ...BASELINE, policyId: 'policy_other' }); + expect.unreachable('should have thrown'); + } catch (error) { + expect((error as DriftError).message).toContain('policyId'); + expect((error as DriftError).message).not.toContain('policy_other'); + } + }); +}); + +describe('baseline digest', () => { + it('is stable for identical baselines', () => { + expect(baselineDigest(BASELINE)).toBe(baselineDigest({ ...BASELINE })); + }); + + it('changes when any field changes', () => { + expect(baselineDigest({ ...BASELINE, chainId: 1 })).not.toBe(baselineDigest(BASELINE)); + }); +}); + +describe('webhook posture', () => { + it('keeps webhooks disabled', () => { + // A webhook is an unauthenticated inbound claim about a payment. Signature + // verification is unproven and polling is already complete, so enabling + // one would add attack surface without adding capability. + expect(WEBHOOKS_ENABLED).toBe(false); + }); +}); diff --git a/packages/privy-adapter/test/policy-fixture.test.ts b/packages/privy-adapter/test/policy-fixture.test.ts new file mode 100644 index 0000000..3318a56 --- /dev/null +++ b/packages/privy-adapter/test/policy-fixture.test.ts @@ -0,0 +1,141 @@ +import { describe, expect, it } from 'vitest'; +import { + REQUIRED_POLICY_FIELDS, + assessPolicySoundness, + buildExpectedPolicy, + policyDigest, + type PolicyDefinition, + type PolicyInputs, +} from '../src/policy-fixture.js'; + +const INPUTS: PolicyInputs = { + chainId: 5042002, + tokenContract: '0x3600000000000000000000000000000000000000', + recipientAllowlist: ['0x1111111111111111111111111111111111111111'], + amountCapAtomic: 1_000_000n, +}; + +const POLICY = buildExpectedPolicy(INPUTS); + +describe('policy shape', () => { + it('constrains every required dimension in the allow rule', () => { + const allow = POLICY.rules.find((rule) => rule.effect === 'ALLOW'); + const fields = allow?.conditions.map((condition) => condition.field) ?? []; + for (const required of REQUIRED_POLICY_FIELDS) { + expect(fields).toContain(required); + } + }); + + it('ends with an unconditional default deny', () => { + const last = POLICY.rules.at(-1); + expect(last?.effect).toBe('DENY'); + expect(last?.conditions).toEqual([]); + }); + + it('pins native value to zero', () => { + const allow = POLICY.rules.find((rule) => rule.effect === 'ALLOW'); + const value = allow?.conditions.find((condition) => condition.field === 'value'); + expect(value).toMatchObject({ operator: 'eq', value: '0' }); + }); + + it('caps the amount rather than pinning it', () => { + // A settlement may be any amount at or under the human-approved cap. + const allow = POLICY.rules.find((rule) => rule.effect === 'ALLOW'); + const amount = allow?.conditions.find((c) => c.field === 'transfer.amount'); + expect(amount?.operator).toBe('lte'); + }); +}); + +describe('soundness', () => { + it('accepts the built policy', () => { + expect(assessPolicySoundness(POLICY)).toEqual({ sound: true }); + }); + + it('rejects a policy whose default deny was removed', () => { + // The classic silent failure: everything still looks allowed, and + // everything unlisted becomes permitted. + const broken: PolicyDefinition = { + ...POLICY, + rules: POLICY.rules.filter((rule) => rule.effect !== 'DENY'), + }; + expect(assessPolicySoundness(broken)).toMatchObject({ sound: false }); + }); + + it('rejects a policy whose deny rule is no longer last', () => { + const reordered: PolicyDefinition = { ...POLICY, rules: [...POLICY.rules].reverse() }; + expect(assessPolicySoundness(reordered)).toMatchObject({ sound: false }); + }); + + it('rejects a default deny that carries conditions', () => { + // A conditional deny is not a default deny. + const conditional: PolicyDefinition = { + ...POLICY, + rules: [ + ...POLICY.rules.slice(0, -1), + { + name: 'default-deny', + effect: 'DENY', + conditions: [ + { fieldSource: 'ethereum_transaction', field: 'to', operator: 'eq', value: '0x0' }, + ], + }, + ], + }; + expect(assessPolicySoundness(conditional)).toMatchObject({ sound: false }); + }); + + it.each(REQUIRED_POLICY_FIELDS)('rejects a policy missing the %s constraint', (field) => { + const weakened: PolicyDefinition = { + ...POLICY, + rules: POLICY.rules.map((rule) => + rule.effect === 'ALLOW' + ? { ...rule, conditions: rule.conditions.filter((c) => c.field !== field) } + : rule, + ), + }; + const result = assessPolicySoundness(weakened); + expect(result.sound).toBe(false); + if (!result.sound) expect(result.reason).toContain(field); + }); + + it('rejects a policy that allows nothing', () => { + const denyOnly: PolicyDefinition = { + ...POLICY, + rules: POLICY.rules.filter((rule) => rule.effect === 'DENY'), + }; + expect(assessPolicySoundness(denyOnly)).toMatchObject({ sound: false }); + }); +}); + +describe('digest', () => { + it('is stable for identical inputs', () => { + expect(policyDigest(buildExpectedPolicy(INPUTS))).toBe(policyDigest(POLICY)); + }); + + it('is independent of recipient allowlist ordering', () => { + // Two operators listing the same recipients in different order describe + // the same policy and must not read as drift. + const a = buildExpectedPolicy({ + ...INPUTS, + recipientAllowlist: ['0x1111111111111111111111111111111111111111', '0x2222222222222222222222222222222222222222'], + }); + const b = buildExpectedPolicy({ + ...INPUTS, + recipientAllowlist: ['0x2222222222222222222222222222222222222222', '0x1111111111111111111111111111111111111111'], + }); + expect(policyDigest(a)).toBe(policyDigest(b)); + }); + + it.each<[string, Partial]>([ + ['a different chain', { chainId: 1 }], + ['a different token', { tokenContract: '0x4600000000000000000000000000000000000000' }], + ['a raised cap', { amountCapAtomic: 2_000_000n }], + ['an extra recipient', { recipientAllowlist: ['0x1111111111111111111111111111111111111111', '0x3333333333333333333333333333333333333333'] }], + ])('changes when the policy changes: %s', (_label, override) => { + // Each of these is a real widening of what the wallet may do, so readiness + // must see drift rather than silently accept the deployed policy. + expect(policyDigest(buildExpectedPolicy({ ...INPUTS, ...override }))).not.toBe( + policyDigest(POLICY), + ); + }); +}); diff --git a/packages/privy-adapter/test/request.test.ts b/packages/privy-adapter/test/request.test.ts new file mode 100644 index 0000000..93ea01c --- /dev/null +++ b/packages/privy-adapter/test/request.test.ts @@ -0,0 +1,154 @@ +import { describe, expect, it } from 'vitest'; +import { + PROVIDER_IDEMPOTENCY_WINDOW_HOURS, + RequestError, + assertIdempotencyKeyBinding, + buildCanonicalRequest, + canonicalizeIntent, + type SettlementIntent, +} from '../src/request.js'; + +const INTENT: SettlementIntent = { + businessIntentId: '018f-example-stable-id', + chainId: 5042002, + tokenContract: '0x3600000000000000000000000000000000000000', + recipient: '0x1111111111111111111111111111111111111111', + amountAtomic: 1_250_000n, +}; + +describe('determinism', () => { + it('produces byte-identical output for the same intent', () => { + const a = buildCanonicalRequest(INTENT); + const b = buildCanonicalRequest({ ...INTENT }); + expect(a).toEqual(b); + }); + + it('is a golden vector, stable across builds', () => { + // Pinning the exact bytes. If a refactor changes any of these, every + // in-flight idempotency key changes with it, so this must fail loudly. + const request = buildCanonicalRequest(INTENT); + expect(request.canonicalBody).toBe( + '[["businessIntentId","018f-example-stable-id"],["chainId",5042002],' + + '["tokenContract","0x3600000000000000000000000000000000000000"],' + + '["recipient","0x1111111111111111111111111111111111111111"],' + + '["amountAtomic","1250000"]]', + ); + expect(request.data).toBe( + '0xa9059cbb' + + '0000000000000000000000001111111111111111111111111111111111111111' + + '00000000000000000000000000000000000000000000000000000000001312d0', + ); + expect(request.value).toBe(0n); + expect(request.referenceId).toBe('oneshot-018f-example-stable-id'); + }); + + it('does not depend on the order fields were written', () => { + // Guards against JSON.stringify key-order dependence: two workers building + // the same obligation must fingerprint identically. + const reordered: SettlementIntent = { + amountAtomic: INTENT.amountAtomic, + recipient: INTENT.recipient, + tokenContract: INTENT.tokenContract, + chainId: INTENT.chainId, + businessIntentId: INTENT.businessIntentId, + }; + expect(canonicalizeIntent(reordered)).toBe(canonicalizeIntent(INTENT)); + }); + + it('fingerprints checksummed and lowercase addresses identically', () => { + const checksummed: SettlementIntent = { + ...INTENT, + recipient: INTENT.recipient.toUpperCase().replace('0X', '0x') as `0x${string}`, + }; + expect(buildCanonicalRequest(checksummed).payloadFingerprint).toBe( + buildCanonicalRequest(INTENT).payloadFingerprint, + ); + }); +}); + +describe('fingerprint sensitivity', () => { + it.each<[string, Partial]>([ + ['a different recipient', { recipient: '0x2222222222222222222222222222222222222222' }], + ['a different amount', { amountAtomic: 1_250_001n }], + ['a different chain', { chainId: 1 }], + ['a different token', { tokenContract: '0x4600000000000000000000000000000000000000' }], + ['a different intent id', { businessIntentId: 'other-id' }], + ])('changes the fingerprint for %s', (_label, override) => { + expect(buildCanonicalRequest({ ...INTENT, ...override }).payloadFingerprint).not.toBe( + buildCanonicalRequest(INTENT).payloadFingerprint, + ); + }); + + it('derives the idempotency key from the fingerprint', () => { + const request = buildCanonicalRequest(INTENT); + expect(request.idempotencyKey).toBe(request.payloadFingerprint); + }); +}); + +describe('validation', () => { + it.each<[string, Partial, string]>([ + ['an empty intent id', { businessIntentId: '' }, 'EMPTY_INTENT_ID'], + ['a whitespace intent id', { businessIntentId: ' ' }, 'EMPTY_INTENT_ID'], + ['an overlong intent id', { businessIntentId: 'x'.repeat(129) }, 'INTENT_ID_TOO_LONG'], + ['a zero amount', { amountAtomic: 0n }, 'AMOUNT_NOT_POSITIVE'], + ['a negative amount', { amountAtomic: -1n }, 'AMOUNT_NOT_POSITIVE'], + ])('rejects %s', (_label, override, code) => { + expect(() => buildCanonicalRequest({ ...INTENT, ...override })).toThrow( + expect.objectContaining({ code }), + ); + }); + + it('rejects an amount above uint256', () => { + expect(() => buildCanonicalRequest({ ...INTENT, amountAtomic: 1n << 256n })).toThrow( + RequestError, + ); + }); + + it('accepts an amount beyond float safety exactly', () => { + const large = { ...INTENT, amountAtomic: 9_007_199_254_740_993n }; + expect(buildCanonicalRequest(large).canonicalBody).toContain('9007199254740993'); + }); +}); + +describe('idempotency key binding', () => { + it('accepts a replay of the identical request', () => { + const request = buildCanonicalRequest(INTENT); + expect(() => { + assertIdempotencyKeyBinding(request, { + idempotencyKey: request.idempotencyKey, + payloadFingerprint: request.payloadFingerprint, + }); + }).not.toThrow(); + }); + + it('refuses the same key carrying a different payload', () => { + // The INTENT_PAYLOAD_CONFLICT rule at the adapter boundary: reusing a key + // with a changed body is how a second, different payment gets authorized + // under the identity of the first. + const request = buildCanonicalRequest(INTENT); + expect(() => { + assertIdempotencyKeyBinding(request, { + idempotencyKey: request.idempotencyKey, + payloadFingerprint: '0xdifferentfingerprint', + }); + }).toThrow(expect.objectContaining({ code: 'IDEMPOTENCY_KEY_REUSED' })); + }); + + it('ignores an unrelated key', () => { + const request = buildCanonicalRequest(INTENT); + expect(() => { + assertIdempotencyKeyBinding(request, { + idempotencyKey: '0xsomeotherkey', + payloadFingerprint: '0xdifferentfingerprint', + }); + }).not.toThrow(); + }); +}); + +describe('provider window', () => { + it('documents the window as supplemental only', () => { + // OneShot durable state is the authority for at-most-once settlement and + // remains so past this window. The provider key is defence in depth. + expect(PROVIDER_IDEMPOTENCY_WINDOW_HOURS).toBe(24); + }); +}); diff --git a/packages/privy-adapter/tsconfig.build.json b/packages/privy-adapter/tsconfig.build.json deleted file mode 100644 index 3d32a63..0000000 --- a/packages/privy-adapter/tsconfig.build.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { - "rootDir": "src", - "outDir": "dist" - }, - "include": ["src"] -} diff --git a/packages/privy-adapter/tsconfig.json b/packages/privy-adapter/tsconfig.json index 671b59a..45e645a 100644 --- a/packages/privy-adapter/tsconfig.json +++ b/packages/privy-adapter/tsconfig.json @@ -1,25 +1,16 @@ { + "extends": "../../tsconfig.base.json", "compilerOptions": { - "target": "ES2023", - "lib": ["ES2023"], - "module": "NodeNext", - "moduleResolution": "NodeNext", - "types": ["node"], - "strict": true, - "noUncheckedIndexedAccess": true, - "exactOptionalPropertyTypes": true, - "noImplicitOverride": true, - "noFallthroughCasesInSwitch": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "isolatedModules": true, - "verbatimModuleSyntax": true, - "forceConsistentCasingInFileNames": true, - "skipLibCheck": true, - "declaration": true, - "sourceMap": false, "outDir": "dist", - "rootDir": "." + "rootDir": "src", + "tsBuildInfoFile": "dist/.tsbuildinfo" }, - "include": ["src", "test", "*.config.ts"] + "include": [ + "src/**/*.ts" + ], + "references": [ + { + "path": "../arc-adapter" + } + ] } diff --git a/packages/testkit-settlement/eslint.config.js b/packages/testkit-settlement/eslint.config.js deleted file mode 100644 index 4d69fd5..0000000 --- a/packages/testkit-settlement/eslint.config.js +++ /dev/null @@ -1,24 +0,0 @@ -import js from '@eslint/js'; -import tseslint from 'typescript-eslint'; - -export default tseslint.config( - { ignores: ['dist/**'] }, - js.configs.recommended, - ...tseslint.configs.strictTypeChecked, - { - languageOptions: { - parserOptions: { - projectService: true, - tsconfigRootDir: import.meta.dirname, - }, - }, - rules: { - // Money and chain identity must never be coerced through `any`. - '@typescript-eslint/no-explicit-any': 'error', - '@typescript-eslint/restrict-template-expressions': [ - 'error', - { allowNumber: true }, - ], - }, - }, -); diff --git a/packages/testkit-settlement/package-lock.json b/packages/testkit-settlement/package-lock.json deleted file mode 100644 index 1cfbd43..0000000 --- a/packages/testkit-settlement/package-lock.json +++ /dev/null @@ -1,2612 +0,0 @@ -{ - "name": "@oneshot/testkit-settlement", - "version": "0.1.0", - "lockfileVersion": 3, - "requires": true, - "packages": { - "": { - "name": "@oneshot/testkit-settlement", - "version": "0.1.0", - "license": "MIT", - "devDependencies": { - "@eslint/js": "9.39.1", - "@oneshot/arc-adapter": "file:../arc-adapter", - "@types/node": "22.18.11", - "eslint": "9.39.1", - "typescript": "5.9.3", - "typescript-eslint": "8.69.0", - "vitest": "5.0.0" - }, - "engines": { - "node": ">=22.12.0" - } - }, - "../arc-adapter": { - "name": "@oneshot/arc-adapter", - "version": "0.1.0", - "dev": true, - "license": "MIT", - "dependencies": { - "viem": "2.56.3" - }, - "devDependencies": { - "@eslint/js": "9.39.1", - "@types/node": "22.18.11", - "eslint": "9.39.1", - "typescript": "5.9.3", - "typescript-eslint": "8.69.0", - "vitest": "5.0.0" - }, - "engines": { - "node": ">=22.12.0" - } - }, - "node_modules/@eslint-community/eslint-utils": { - "version": "4.10.1", - "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.10.1.tgz", - "integrity": "sha512-cuadcxVFE8sDK6iWJbs8Sn0av2Nrh2QSGQhVlBW9AaAHqHwjWsZHT8LJ4hFGPh7ASBV2deFdM7H/DPjulmh8rg==", - "dev": true, - "license": "MIT", - "dependencies": { - "eslint-visitor-keys": "^3.4.3" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - }, - "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" - } - }, - "node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", - "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/@eslint-community/regexpp": { - "version": "4.12.2", - "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.2.tgz", - "integrity": "sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^12.0.0 || ^14.0.0 || >=16.0.0" - } - }, - "node_modules/@eslint/config-array": { - "version": "0.21.2", - "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.21.2.tgz", - "integrity": "sha512-nJl2KGTlrf9GjLimgIru+V/mzgSK0ABCDQRvxw5BjURL7WfH5uoWmizbH7QB6MmnMBd8cIC9uceWnezL1VZWWw==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@eslint/object-schema": "^2.1.7", - "debug": "^4.3.1", - "minimatch": "^3.1.5" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@eslint/config-helpers": { - "version": "0.4.2", - "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.4.2.tgz", - "integrity": "sha512-gBrxN88gOIf3R7ja5K9slwNayVcZgK6SOUORm2uBzTeIEfeVaIhOpCtTox3P6R7o2jLFwLFTLnC7kU/RGcYEgw==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@eslint/core": "^0.17.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@eslint/core": { - "version": "0.17.0", - "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.17.0.tgz", - "integrity": "sha512-yL/sLrpmtDaFEiUj1osRP4TI2MDz1AddJL+jZ7KSqvBuliN4xqYY54IfdN8qD8Toa6g1iloph1fxQNkjOxrrpQ==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@types/json-schema": "^7.0.15" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@eslint/eslintrc": { - "version": "3.3.7", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.7.tgz", - "integrity": "sha512-F42g89Qd5oAWtp0k0nnSrjziAKza7w8SVT4mStc18LZMaRb4J1HQAHLCalEtDCxrTuksx7NU9qsmeLwpOfPqWw==", - "dev": true, - "license": "MIT", - "dependencies": { - "ajv": "^6.14.0", - "debug": "^4.3.2", - "espree": "^10.0.1", - "globals": "^14.0.0", - "ignore": "^5.2.0", - "import-fresh": "^3.2.1", - "js-yaml": "^4.3.2", - "minimatch": "^3.1.5", - "strip-json-comments": "^3.1.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/@eslint/js": { - "version": "9.39.1", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.39.1.tgz", - "integrity": "sha512-S26Stp4zCy88tH94QbBv3XCuzRQiZ9yXofEILmglYTh/Ug/a9/umqvgFtYBAo3Lp0nsI/5/qH1CCrbdK3AP1Tw==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://eslint.org/donate" - } - }, - "node_modules/@eslint/object-schema": { - "version": "2.1.7", - "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.7.tgz", - "integrity": "sha512-VtAOaymWVfZcmZbp6E2mympDIHvyjXs/12LqWYjVw6qjrfF+VK+fyG33kChz3nnK+SU5/NeHOqrTEHS8sXO3OA==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@eslint/plugin-kit": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.4.1.tgz", - "integrity": "sha512-43/qtrDUokr7LJqoF2c3+RInu/t4zfrpYdoSDfYyhg52rwLV6TnOvdG4fXm7IkSB3wErkcmJS9iEhjVtOSEjjA==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@eslint/core": "^0.17.0", - "levn": "^0.4.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@humanfs/core": { - "version": "0.19.2", - "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.2.tgz", - "integrity": "sha512-UhXNm+CFMWcbChXywFwkmhqjs3PRCmcSa/hfBgLIb7oQ5HNb1wS0icWsGtSAUNgefHeI+eBrA8I1fxmbHsGdvA==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@humanfs/types": "^0.15.0" - }, - "engines": { - "node": ">=18.18.0" - } - }, - "node_modules/@humanfs/node": { - "version": "0.16.8", - "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.8.tgz", - "integrity": "sha512-gE1eQNZ3R++kTzFUpdGlpmy8kDZD/MLyHqDwqjkVQI0JMdI1D51sy1H958PNXYkM2rAac7e5/CnIKZrHtPh3BQ==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@humanfs/core": "^0.19.2", - "@humanfs/types": "^0.15.0", - "@humanwhocodes/retry": "^0.4.0" - }, - "engines": { - "node": ">=18.18.0" - } - }, - "node_modules/@humanfs/types": { - "version": "0.15.0", - "resolved": "https://registry.npmjs.org/@humanfs/types/-/types-0.15.0.tgz", - "integrity": "sha512-ZZ1w0aoQkwuUuC7Yf+7sdeaNfqQiiLcSRbfI08oAxqLtpXQr9AIVX7Ay7HLDuiLYAaFPu8oBYNq/QIi9URHJ3Q==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">=18.18.0" - } - }, - "node_modules/@humanwhocodes/module-importer": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", - "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">=12.22" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/nzakas" - } - }, - "node_modules/@humanwhocodes/retry": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.3.tgz", - "integrity": "sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">=18.18" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/nzakas" - } - }, - "node_modules/@jridgewell/resolve-uri": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", - "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.6.0.tgz", - "integrity": "sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==", - "dev": true, - "license": "MIT" - }, - "node_modules/@jridgewell/trace-mapping": { - "version": "0.3.31", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz", - "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/resolve-uri": "^3.1.0", - "@jridgewell/sourcemap-codec": "^1.4.14" - } - }, - "node_modules/@oneshot/arc-adapter": { - "resolved": "../arc-adapter", - "link": true - }, - "node_modules/@oxc-project/types": { - "version": "0.148.0", - "resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.148.0.tgz", - "integrity": "sha512-Nm4s/jB+4FpFsPhWGEC4h7rzksesmtnMXomo6rCMcg/b8zLQuOziRgkCS1fxDCXOlJB/6Q8oABOZ/OP6RIPj9A==", - "dev": true, - "license": "MIT", - "peer": true, - "funding": { - "url": "https://github.com/sponsors/oxc-project" - } - }, - "node_modules/@rolldown/binding-android-arm-eabi": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm-eabi/-/binding-android-arm-eabi-1.2.7.tgz", - "integrity": "sha512-EypzgnYCwyVY4NDHKzGmNJT5b+XaQEBniHxsMdeIQLB/tcCzZnhqrzHpZFbX9iaxx+5RiB8caATBtfvZP7zVxQ==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "peer": true, - "engines": { - "node": "^20.19.0 || >=22.12.0" - } - }, - "node_modules/@rolldown/binding-android-arm64": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm64/-/binding-android-arm64-1.2.7.tgz", - "integrity": "sha512-l17HE9EweWaqJZhuUuNBN/FzM62xw+DECVnJyvMsxn8vJFAGLy5QfLDoYAcronkAN8VxKZHezDpulHDPx95vFw==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "peer": true, - "engines": { - "node": "^20.19.0 || >=22.12.0" - } - }, - "node_modules/@rolldown/binding-darwin-arm64": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-arm64/-/binding-darwin-arm64-1.2.7.tgz", - "integrity": "sha512-8ED8ELFvHXc6OCETIn4gXObPiaR6bckM/ipXtbzlPVDRMBfEGjCKgO90F9YtfdpDatVx/ZQw7aZ1vUMf/+T3Mw==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "peer": true, - "engines": { - "node": "^20.19.0 || >=22.12.0" - } - }, - "node_modules/@rolldown/binding-darwin-x64": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-x64/-/binding-darwin-x64-1.2.7.tgz", - "integrity": "sha512-/WPripjtiAIZ2tWY7ddijORT0Ujg87wxWW/qcoFVCKAWVDPhtY0xr7Dj0M3GyNGz60jGwTElhro/mkF9dT7dDQ==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "peer": true, - "engines": { - "node": "^20.19.0 || >=22.12.0" - } - }, - "node_modules/@rolldown/binding-freebsd-x64": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/@rolldown/binding-freebsd-x64/-/binding-freebsd-x64-1.2.7.tgz", - "integrity": "sha512-14DI4NcqpvbICxSnGLx3PmtDaWqRP/KGSGb6C+JLLVPeZRl6dKdHba3pGsqT3vpdTqhEYIPG0MMQ8c0xYqoJxA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ], - "peer": true, - "engines": { - "node": "^20.19.0 || >=22.12.0" - } - }, - "node_modules/@rolldown/binding-linux-arm-gnueabihf": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.2.7.tgz", - "integrity": "sha512-bxrWIRvHWQvbJwi+VIie/kDJmQxcNE6xxWwZdqF/ExVAigtHkv54WTLQPb+QsZdnFy18fg7JPfWGL0RH6vwIlQ==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "peer": true, - "engines": { - "node": "^20.19.0 || >=22.12.0" - } - }, - "node_modules/@rolldown/binding-linux-arm64-gnu": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.2.7.tgz", - "integrity": "sha512-toOY2BChBZyuxU7OYX6Tn389di4IzAqPTycVcci0O7FSfBqzRB3RZn+K5Is6ANf4tmgRd/K1yZTsNTXbkXsnLg==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "peer": true, - "engines": { - "node": "^20.19.0 || >=22.12.0" - } - }, - "node_modules/@rolldown/binding-linux-arm64-musl": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.2.7.tgz", - "integrity": "sha512-lAIXTH/aiLRLxsTgQvfhjo4K1ydWIp00+V0voOr9beb/9ZmkUFrSIb03dXNFRgMNvkE6oGsF10ioQ6UsI+vS5Q==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "peer": true, - "engines": { - "node": "^20.19.0 || >=22.12.0" - } - }, - "node_modules/@rolldown/binding-linux-ppc64-gnu": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.2.7.tgz", - "integrity": "sha512-kdnwS28Pkenp/mZMRwjXXXwxQ7pIsm+bF919LUK93BOyhcLsrVKdP2p9fxpiPNPAbNuch8ypQt0pm2P2LYCAGg==", - "cpu": [ - "ppc64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "peer": true, - "engines": { - "node": "^20.19.0 || >=22.12.0" - } - }, - "node_modules/@rolldown/binding-linux-s390x-gnu": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.2.7.tgz", - "integrity": "sha512-516OdsyLdr5E65paF3yBF55t8mfm9+gmtCsK3xI7XKXIT7EfRlHhxL8K/NR6Hu8BWSgF5+1w74lTL0+nxcc8Qw==", - "cpu": [ - "s390x" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "peer": true, - "engines": { - "node": "^20.19.0 || >=22.12.0" - } - }, - "node_modules/@rolldown/binding-linux-x64-gnu": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.2.7.tgz", - "integrity": "sha512-r8/z8n7GFaYRln3xmP1Cxy0HH/HLM0uBUPkEuSVEfKGDA89M0FsZRZJRSwe/tJjRx+fpH/gjorfhB8tmEbSFLA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "peer": true, - "engines": { - "node": "^20.19.0 || >=22.12.0" - } - }, - "node_modules/@rolldown/binding-linux-x64-musl": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-musl/-/binding-linux-x64-musl-1.2.7.tgz", - "integrity": "sha512-pAsE8iiDxUg1xBqdhrTfg45AVDVpirjz00sblEYClGNNcMnDb+e8beQgqIAw6LvauX/APvgxUnwrgun/YYGBhw==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "peer": true, - "engines": { - "node": "^20.19.0 || >=22.12.0" - } - }, - "node_modules/@rolldown/binding-openharmony-arm64": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/@rolldown/binding-openharmony-arm64/-/binding-openharmony-arm64-1.2.7.tgz", - "integrity": "sha512-lTcIYmmnQQA8Or/2DatS6oSqcdLHvendjS+zLu+FwgToynWMRSmQdpM65fTANJgIS4mjbMOo5KT2lnT9SAb96w==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "openharmony" - ], - "peer": true, - "engines": { - "node": "^20.19.0 || >=22.12.0" - } - }, - "node_modules/@rolldown/binding-win32-arm64-msvc": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.2.7.tgz", - "integrity": "sha512-e3Gu3WxbNk/UqQhxqU7YIYO+9ZBvWNz3U+h/qRFosscMFzdRPbXYSaSWgSnklv2fz1TgzBTcti2z35c/7irsHw==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "peer": true, - "engines": { - "node": "^20.19.0 || >=22.12.0" - } - }, - "node_modules/@rolldown/binding-win32-x64-msvc": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.2.7.tgz", - "integrity": "sha512-W/jg5qoRSqjsEv0+dZi4e687mcHqmVuU0P4fK6qS/xjetW2Gmc1W8j//z5nAeNcC8Ttm0hV46IjcYeuVwYhuiw==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "peer": true, - "engines": { - "node": "^20.19.0 || >=22.12.0" - } - }, - "node_modules/@rolldown/pluginutils": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.1.tgz", - "integrity": "sha512-2j9bGt5Jh8hj+vPtgzPtl72j0yRxHAyumoo6TNfAjsLB04UtpSvPbPcDcBMxz7n+9CYB0c1GxQFxYRg2jimqGw==", - "dev": true, - "license": "MIT", - "peer": true - }, - "node_modules/@types/chai": { - "version": "5.2.3", - "resolved": "https://registry.npmjs.org/@types/chai/-/chai-5.2.3.tgz", - "integrity": "sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/deep-eql": "*", - "assertion-error": "^2.0.1" - } - }, - "node_modules/@types/deep-eql": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/@types/deep-eql/-/deep-eql-4.0.2.tgz", - "integrity": "sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/estree": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.9.tgz", - "integrity": "sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/json-schema": { - "version": "7.0.15", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", - "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/node": { - "version": "22.18.11", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.18.11.tgz", - "integrity": "sha512-Gd33J2XIrXurb+eT2ktze3rJAfAp9ZNjlBdh4SVgyrKEOADwCbdUDaK7QgJno8Ue4kcajscsKqu6n8OBG3hhCQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "undici-types": "~6.21.0" - } - }, - "node_modules/@typescript-eslint/eslint-plugin": { - "version": "8.69.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.69.0.tgz", - "integrity": "sha512-t5jQTKPIgVW1PE6dR6H6Qz5gm8zjMlX5/2gRaOGd9eO6V7J+tQc6iWKukEe7dY8u9HyYasQ0yfF0/FSSTEO2gA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@eslint-community/regexpp": "^4.12.2", - "@typescript-eslint/scope-manager": "8.69.0", - "@typescript-eslint/type-utils": "8.69.0", - "@typescript-eslint/utils": "8.69.0", - "@typescript-eslint/visitor-keys": "8.69.0", - "ignore": "^7.0.5", - "natural-compare": "^1.4.0", - "ts-api-utils": "^2.5.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "@typescript-eslint/parser": "^8.69.0", - "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", - "typescript": ">=4.8.4 <6.1.0" - } - }, - "node_modules/@typescript-eslint/eslint-plugin/node_modules/ignore": { - "version": "7.0.8", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.8.tgz", - "integrity": "sha512-YYNsSlXBjMk92SKnkwvB5LOVSa6OznlFUGcsvrFgNJbJCd0M1XKeFVRc8ZByeCqz32FivYNHJVooLmdqrmvp/Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 4" - } - }, - "node_modules/@typescript-eslint/parser": { - "version": "8.69.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.69.0.tgz", - "integrity": "sha512-l4b0DhWioGg6Gt2ebGlvfkFMOjRsauxtsnDRwUSRX1qHq3HdTfQHV8wW9zEXeciai6HfeaKOedQn2Zoofx3WBw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/scope-manager": "8.69.0", - "@typescript-eslint/types": "8.69.0", - "@typescript-eslint/typescript-estree": "8.69.0", - "@typescript-eslint/visitor-keys": "8.69.0", - "debug": "^4.4.3" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", - "typescript": ">=4.8.4 <6.1.0" - } - }, - "node_modules/@typescript-eslint/project-service": { - "version": "8.69.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.69.0.tgz", - "integrity": "sha512-yi4obFrHMmnsesWehHbkg9zMA7Jt8cXT+mKM08G999pH1yT6nqgsHx7MYm0uY1wAj8CqiBXYRJ7WAT0QdQHQXg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/tsconfig-utils": "^8.69.0", - "@typescript-eslint/types": "^8.69.0", - "debug": "^4.4.3" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "typescript": ">=4.8.4 <6.1.0" - } - }, - "node_modules/@typescript-eslint/scope-manager": { - "version": "8.69.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.69.0.tgz", - "integrity": "sha512-ewfspqWvSxKSOaplqAUNbaSFO0eB6w1EtQ+esfYFRm3614Ty4uNtExkcbgd6nWsXphbqKyf9ZYdbZdv2xEoWEQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/types": "8.69.0", - "@typescript-eslint/visitor-keys": "8.69.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/tsconfig-utils": { - "version": "8.69.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.69.0.tgz", - "integrity": "sha512-xNqK7YTDZsLniQMV/4rpFR8Z5JlqeRvVjuG1YgF/mdPVH84HSD19L8CczMA0qg2RfwEV231GHH3VnToJDo4MfQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "typescript": ">=4.8.4 <6.1.0" - } - }, - "node_modules/@typescript-eslint/type-utils": { - "version": "8.69.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.69.0.tgz", - "integrity": "sha512-ZfoJAVg3JZndQEpEl9petVlxau3lRuElc4HRMuAlLCf8to04/iHz692RUSNmXKDjEuJmIL+KZ2/BsOcBc16dsA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/types": "8.69.0", - "@typescript-eslint/typescript-estree": "8.69.0", - "@typescript-eslint/utils": "8.69.0", - "debug": "^4.4.3", - "ts-api-utils": "^2.5.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", - "typescript": ">=4.8.4 <6.1.0" - } - }, - "node_modules/@typescript-eslint/types": { - "version": "8.69.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.69.0.tgz", - "integrity": "sha512-K3VrubUPhlo9VDBS6QdI8YB5j7ClpqLRdefcz6PFrhnwicehBweqQ9Evhl4l+FYz0HdDmMqIiSX0aldGRYtDCA==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/typescript-estree": { - "version": "8.69.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.69.0.tgz", - "integrity": "sha512-AdFkgqck3Vudb/kWnxlyafU/4aBhHrbQ9locP2N4psXTy5mOBg0SHJumnLvx7r6g1gV4DKvUFwV2nJZBoqOD8w==", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/project-service": "8.69.0", - "@typescript-eslint/tsconfig-utils": "8.69.0", - "@typescript-eslint/types": "8.69.0", - "@typescript-eslint/visitor-keys": "8.69.0", - "debug": "^4.4.3", - "minimatch": "^10.2.2", - "semver": "^7.7.3", - "tinyglobby": "^0.2.15", - "ts-api-utils": "^2.5.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "typescript": ">=4.8.4 <6.1.0" - } - }, - "node_modules/@typescript-eslint/typescript-estree/node_modules/balanced-match": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz", - "integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==", - "dev": true, - "license": "MIT", - "engines": { - "node": "18 || 20 || >=22" - } - }, - "node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": { - "version": "5.0.9", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.9.tgz", - "integrity": "sha512-ScQ4IuvIEF1TMlP7Zt+vjJ//9zlPb2SDcxWxM3bk8s6t6GGdJ7KO1dCcTidOPJKePW30LE/2cT7wCyPho9/Wxg==", - "dev": true, - "license": "MIT", - "dependencies": { - "balanced-match": "^4.0.2" - }, - "engines": { - "node": "20 || >=22" - } - }, - "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": { - "version": "10.2.6", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.6.tgz", - "integrity": "sha512-vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A==", - "dev": true, - "license": "BlueOak-1.0.0", - "dependencies": { - "brace-expansion": "^5.0.8" - }, - "engines": { - "node": "18 || 20 || >=22" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/@typescript-eslint/utils": { - "version": "8.69.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.69.0.tgz", - "integrity": "sha512-tUbx60BBqQa31kXF5MCsOOLL5E/WzUuxIn7YpAvq+eaUlqvk8/NXnXMBNAdLCr0icjkzem7iUA5QqWHe/hJ1aw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@eslint-community/eslint-utils": "^4.9.1", - "@typescript-eslint/scope-manager": "8.69.0", - "@typescript-eslint/types": "8.69.0", - "@typescript-eslint/typescript-estree": "8.69.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", - "typescript": ">=4.8.4 <6.1.0" - } - }, - "node_modules/@typescript-eslint/visitor-keys": { - "version": "8.69.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.69.0.tgz", - "integrity": "sha512-+rmdgPA+EXkNgKYvHvFfhrs35utXbwaC5PGpDquSXcoXQDKUA5UjV0LmTucG/4JXkM31BTu4TilHtrN8IVBe8w==", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/types": "8.69.0", - "eslint-visitor-keys": "^5.0.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-5.0.1.tgz", - "integrity": "sha512-tD40eHxA35h0PEIZNeIjkHoDR4YjjJp34biM0mDvplBe//mB+IHCqHDGV7pxF+7MklTvighcCPPZC7ynWyjdTA==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": "^20.19.0 || ^22.13.0 || >=24" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/@vitest/mocker": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-5.0.0.tgz", - "integrity": "sha512-66PGTMIiVJP3t4a5yxU9qPtf7MdTBs8jmToMvy+HVflB3Yy13WJZTtPePdvU+wjRV02SKK5doLbSA6o9pwOmiA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/trace-mapping": "0.3.31", - "@vitest/spy": "5.0.0", - "estree-walker": "^3.0.3", - "magic-string": "^1.2.3" - }, - "funding": { - "url": "https://opencollective.com/vitest" - }, - "peerDependencies": { - "msw": "^2.4.9", - "vite": "^6.0.0 || ^7.0.0 || ^8.0.0" - }, - "peerDependenciesMeta": { - "msw": { - "optional": true - }, - "vite": { - "optional": true - } - } - }, - "node_modules/@vitest/spy": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-5.0.0.tgz", - "integrity": "sha512-uy+luWBAPw9XfthoHi5AkfHUnuPYEESjl0p/r+meoBnU8bxg5GDQ3Ey8MjcJ6sqahkL4PFyrvfMJJBw7LbU06g==", - "dev": true, - "license": "MIT", - "funding": { - "url": "https://opencollective.com/vitest" - } - }, - "node_modules/acorn": { - "version": "8.18.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.18.0.tgz", - "integrity": "sha512-lGq+9yr1/GuAWaVYIHRjvvySG5/4VfKIvC8EWxStPdcDh/Ka7FG3twP6v4d5BkravUilhIAsG4Qj83t02LWUPQ==", - "dev": true, - "license": "MIT", - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/acorn-jsx": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", - "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", - "dev": true, - "license": "MIT", - "peerDependencies": { - "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" - } - }, - "node_modules/ajv": { - "version": "6.15.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.15.0.tgz", - "integrity": "sha512-fgFx7Hfoq60ytK2c7DhnF8jIvzYgOMxfugjLOSMHjLIPgenqa7S7oaagATUq99mV6IYvN2tRmC0wnTYX6iPbMw==", - "dev": true, - "license": "MIT", - "dependencies": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "license": "MIT", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true, - "license": "Python-2.0" - }, - "node_modules/assertion-error": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-2.0.1.tgz", - "integrity": "sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - } - }, - "node_modules/balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "dev": true, - "license": "MIT" - }, - "node_modules/brace-expansion": { - "version": "1.1.18", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.18.tgz", - "integrity": "sha512-Edep/X9fGqVNmzKBVsDYIOtD+z1tuezV70LBjdCst9Tqu76lsnvRiZ6oTic1n+/BIwX6QDGAO94PN4N2SADvtw==", - "dev": true, - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/callsites": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/chai": { - "version": "6.2.2", - "resolved": "https://registry.npmjs.org/chai/-/chai-6.2.2.tgz", - "integrity": "sha512-NUPRluOfOiTKBKvWPtSD4PhFvWCqOi0BGStNWs57X9js7XGTprSmFoz5F0tWhR4WPjNeR9jXqdC7/UpSJTnlRg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18" - } - }, - "node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true, - "license": "MIT" - }, - "node_modules/concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", - "dev": true, - "license": "MIT" - }, - "node_modules/cross-spawn": { - "version": "7.0.6", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", - "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", - "dev": true, - "license": "MIT", - "dependencies": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/debug": { - "version": "4.4.3", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", - "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ms": "^2.1.3" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, - "node_modules/deep-is": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", - "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/detect-libc": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz", - "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==", - "dev": true, - "license": "Apache-2.0", - "peer": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/es-module-lexer": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-2.3.2.tgz", - "integrity": "sha512-poHGpORABojJJucnV9KbOavETW8lBVnphkW77ER5/BQ5Fz7oXSoCNek7IH3vR5nRjdsEz926ibFYX8KtLQmdyw==", - "dev": true, - "license": "MIT" - }, - "node_modules/escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/eslint": { - "version": "9.39.1", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.39.1.tgz", - "integrity": "sha512-BhHmn2yNOFA9H9JmmIVKJmd288g9hrVRDkdoIgRCRuSySRUHH7r/DI6aAXW9T1WwUuY3DFgrcaqB+deURBLR5g==", - "deprecated": "This version is no longer supported. Please see https://eslint.org/version-support for other options.", - "dev": true, - "license": "MIT", - "dependencies": { - "@eslint-community/eslint-utils": "^4.8.0", - "@eslint-community/regexpp": "^4.12.1", - "@eslint/config-array": "^0.21.1", - "@eslint/config-helpers": "^0.4.2", - "@eslint/core": "^0.17.0", - "@eslint/eslintrc": "^3.3.1", - "@eslint/js": "9.39.1", - "@eslint/plugin-kit": "^0.4.1", - "@humanfs/node": "^0.16.6", - "@humanwhocodes/module-importer": "^1.0.1", - "@humanwhocodes/retry": "^0.4.2", - "@types/estree": "^1.0.6", - "ajv": "^6.12.4", - "chalk": "^4.0.0", - "cross-spawn": "^7.0.6", - "debug": "^4.3.2", - "escape-string-regexp": "^4.0.0", - "eslint-scope": "^8.4.0", - "eslint-visitor-keys": "^4.2.1", - "espree": "^10.4.0", - "esquery": "^1.5.0", - "esutils": "^2.0.2", - "fast-deep-equal": "^3.1.3", - "file-entry-cache": "^8.0.0", - "find-up": "^5.0.0", - "glob-parent": "^6.0.2", - "ignore": "^5.2.0", - "imurmurhash": "^0.1.4", - "is-glob": "^4.0.0", - "json-stable-stringify-without-jsonify": "^1.0.1", - "lodash.merge": "^4.6.2", - "minimatch": "^3.1.2", - "natural-compare": "^1.4.0", - "optionator": "^0.9.3" - }, - "bin": { - "eslint": "bin/eslint.js" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://eslint.org/donate" - }, - "peerDependencies": { - "jiti": "*" - }, - "peerDependenciesMeta": { - "jiti": { - "optional": true - } - } - }, - "node_modules/eslint-scope": { - "version": "8.4.0", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.4.0.tgz", - "integrity": "sha512-sNXOfKCn74rt8RICKMvJS7XKV/Xk9kA7DyJr8mJik3S7Cwgy3qlkkmyS2uQB3jiJg6VNdZd/pDBJu0nvG2NlTg==", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^5.2.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/eslint-visitor-keys": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz", - "integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/espree": { - "version": "10.4.0", - "resolved": "https://registry.npmjs.org/espree/-/espree-10.4.0.tgz", - "integrity": "sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "acorn": "^8.15.0", - "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^4.2.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/esquery": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.7.0.tgz", - "integrity": "sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g==", - "dev": true, - "license": "BSD-3-Clause", - "dependencies": { - "estraverse": "^5.1.0" - }, - "engines": { - "node": ">=0.10" - } - }, - "node_modules/esrecurse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", - "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "estraverse": "^5.2.0" - }, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "dev": true, - "license": "BSD-2-Clause", - "engines": { - "node": ">=4.0" - } - }, - "node_modules/estree-walker": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz", - "integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/estree": "^1.0.0" - } - }, - "node_modules/esutils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true, - "license": "BSD-2-Clause", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/expect-type": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/expect-type/-/expect-type-1.4.0.tgz", - "integrity": "sha512-KfYbmpRm0VbLjEvVa9yGwCi9GI34xvi7A/HXYWQO65CSD2u3MczUJSuwXKFIxlGsgBQizV9q5J9NHj4VG0n+pA==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">=12.0.0" - } - }, - "node_modules/fast-deep-equal": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", - "dev": true, - "license": "MIT" - }, - "node_modules/fast-json-stable-stringify": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", - "dev": true, - "license": "MIT" - }, - "node_modules/fast-levenshtein": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", - "dev": true, - "license": "MIT" - }, - "node_modules/fdir": { - "version": "6.5.0", - "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", - "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12.0.0" - }, - "peerDependencies": { - "picomatch": "^3 || ^4" - }, - "peerDependenciesMeta": { - "picomatch": { - "optional": true - } - } - }, - "node_modules/file-entry-cache": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz", - "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "flat-cache": "^4.0.0" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/find-up": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", - "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", - "dev": true, - "license": "MIT", - "dependencies": { - "locate-path": "^6.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/flat-cache": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz", - "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==", - "dev": true, - "license": "MIT", - "dependencies": { - "flatted": "^3.2.9", - "keyv": "^4.5.4" - }, - "engines": { - "node": ">=16" - } - }, - "node_modules/flatted": { - "version": "3.4.4", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.4.4.tgz", - "integrity": "sha512-5+ybhBZANEJxaH3X5evAFatUxLfEHSr7n6kYJ+1Qd0mUqr4eu9gIf6GDbWHf8RJijHrjjO8G+la14SlL2SeS1Q==", - "dev": true, - "license": "ISC" - }, - "node_modules/fsevents": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", - "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", - "dev": true, - "hasInstallScript": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "peer": true, - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - } - }, - "node_modules/glob-parent": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", - "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", - "dev": true, - "license": "ISC", - "dependencies": { - "is-glob": "^4.0.3" - }, - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/globals": { - "version": "14.0.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz", - "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/ignore": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", - "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 4" - } - }, - "node_modules/import-fresh": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz", - "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "parent-module": "^1.0.0", - "resolve-from": "^4.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/imurmurhash": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.8.19" - } - }, - "node_modules/is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-glob": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", - "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", - "dev": true, - "license": "MIT", - "dependencies": { - "is-extglob": "^2.1.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "dev": true, - "license": "ISC" - }, - "node_modules/js-yaml": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.3.2.tgz", - "integrity": "sha512-SFNOvSJ+Dgf/9An904Yx+CgSlIPCkIpao4qo51lpee25TIRejdH3rhR4EZMGoNx3/TP3O+wzWuiTFl4sqbltzA==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/puzrin" - }, - { - "type": "github", - "url": "https://github.com/sponsors/nodeca" - } - ], - "license": "MIT", - "dependencies": { - "argparse": "^2.0.1" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/json-buffer": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", - "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true, - "license": "MIT" - }, - "node_modules/json-stable-stringify-without-jsonify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", - "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", - "dev": true, - "license": "MIT" - }, - "node_modules/keyv": { - "version": "4.5.4", - "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", - "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", - "dev": true, - "license": "MIT", - "dependencies": { - "json-buffer": "3.0.1" - } - }, - "node_modules/levn": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", - "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "prelude-ls": "^1.2.1", - "type-check": "~0.4.0" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/lightningcss": { - "version": "1.33.0", - "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.33.0.tgz", - "integrity": "sha512-WkUDrojuJs0xkgGf2udWxa3yGBRxPtxUkB79i6aCZLRgc7PM8fZe9TosfPDcvEpQZbuFASnHYmRLBLUbmLOIIA==", - "dev": true, - "license": "MPL-2.0", - "peer": true, - "dependencies": { - "detect-libc": "^2.0.3" - }, - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - }, - "optionalDependencies": { - "lightningcss-android-arm64": "1.33.0", - "lightningcss-darwin-arm64": "1.33.0", - "lightningcss-darwin-x64": "1.33.0", - "lightningcss-freebsd-x64": "1.33.0", - "lightningcss-linux-arm-gnueabihf": "1.33.0", - "lightningcss-linux-arm64-gnu": "1.33.0", - "lightningcss-linux-arm64-musl": "1.33.0", - "lightningcss-linux-x64-gnu": "1.33.0", - "lightningcss-linux-x64-musl": "1.33.0", - "lightningcss-win32-arm64-msvc": "1.33.0", - "lightningcss-win32-x64-msvc": "1.33.0" - } - }, - "node_modules/lightningcss-android-arm64": { - "version": "1.33.0", - "resolved": "https://registry.npmjs.org/lightningcss-android-arm64/-/lightningcss-android-arm64-1.33.0.tgz", - "integrity": "sha512-gEpRTalKdosp4Bb8qWtc2iOgE5SeIHlpS1up9bFq2wAyYhl1UdTObYiHe98zEM9SQvSoqQZ1IQD0JNpg3Ml5pg==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MPL-2.0", - "optional": true, - "os": [ - "android" - ], - "peer": true, - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/lightningcss-darwin-arm64": { - "version": "1.33.0", - "resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.33.0.tgz", - "integrity": "sha512-Sciaz8eenNTKn9b3t7+xr0ipTp9YxKQY4npwQ3mrRuL0BAVHBLyZxofhaKBAVtzmtRZ/zTyo0/to4B1uWG/Djg==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MPL-2.0", - "optional": true, - "os": [ - "darwin" - ], - "peer": true, - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/lightningcss-darwin-x64": { - "version": "1.33.0", - "resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.33.0.tgz", - "integrity": "sha512-Z5UPAxzrjlWNNyGy6i65cJzzvgJ5D3T6wMvs+gWpY9d7qRhANrxqAp6LhxIgZhWEw18RfJTGcRxjuLIBr+m8XQ==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MPL-2.0", - "optional": true, - "os": [ - "darwin" - ], - "peer": true, - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/lightningcss-freebsd-x64": { - "version": "1.33.0", - "resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.33.0.tgz", - "integrity": "sha512-QQM/Ti/hQajJwCY+RiWuCZ9sdtI/XQk7nDK5vC8kkdwixezOlDgvDx7+RT+QjK6FcFT4MpsuoBnHIo/O3StRRg==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MPL-2.0", - "optional": true, - "os": [ - "freebsd" - ], - "peer": true, - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/lightningcss-linux-arm-gnueabihf": { - "version": "1.33.0", - "resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.33.0.tgz", - "integrity": "sha512-N7FVBe6iS24MlM6R/4RBTxGhQheZGs7tiQ9U32UtF75NzP5Q7xWPRqLBCKxlRQRk3rY1jCIPLzx7WzOhuUIRLQ==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MPL-2.0", - "optional": true, - "os": [ - "linux" - ], - "peer": true, - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/lightningcss-linux-arm64-gnu": { - "version": "1.33.0", - "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.33.0.tgz", - "integrity": "sha512-j2v/itmy4HlNxlc6voKXYgBqNi0Ng2LShg4z7GufpEgs05P+2suBVyi9I6YHq5uoVFx9ETin3eCEhLVyXGQnKg==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MPL-2.0", - "optional": true, - "os": [ - "linux" - ], - "peer": true, - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/lightningcss-linux-arm64-musl": { - "version": "1.33.0", - "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.33.0.tgz", - "integrity": "sha512-yiO5ROMuYQgXbC60yjZU5CYSFZGKXL0HFATXt9mHJn1+zW55oCtMI9NfcVhYLMFDL7gV7oBPon/EmMMGg2OvtQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MPL-2.0", - "optional": true, - "os": [ - "linux" - ], - "peer": true, - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/lightningcss-linux-x64-gnu": { - "version": "1.33.0", - "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.33.0.tgz", - "integrity": "sha512-ar+Ju7LmcN0Jo4FpL4hpFybwNG9/3A/Br5KW2n2jyODg3MEZXaDYADdemoNS+BDNfMgKvylJLj4S5tyRActuAg==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MPL-2.0", - "optional": true, - "os": [ - "linux" - ], - "peer": true, - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/lightningcss-linux-x64-musl": { - "version": "1.33.0", - "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.33.0.tgz", - "integrity": "sha512-RYiYbkokw0trfKqqzfF55lginwEPrD3OJDfTuJzFs1MK6iFnDenaz1fqLLtX4ITG3OktJQXOeTaw1awrBAlZPw==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MPL-2.0", - "optional": true, - "os": [ - "linux" - ], - "peer": true, - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/lightningcss-win32-arm64-msvc": { - "version": "1.33.0", - "resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.33.0.tgz", - "integrity": "sha512-1K+MPfLSFVpphzpdbfkhlWk6wBrTObBzS2T6db10PNOZgR9GoVsAWzwNyuhUYYbTp23j+4RrncfujZ4uAzXvwA==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MPL-2.0", - "optional": true, - "os": [ - "win32" - ], - "peer": true, - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/lightningcss-win32-x64-msvc": { - "version": "1.33.0", - "resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.33.0.tgz", - "integrity": "sha512-OlEICDx/Xl0FqSp4bry8zFnCvGpig3Gl4gCquvYwHuqJKEC1+n9NgDniFvqHGmMv1ZkqDJrDqKKSykTDX+ehuA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MPL-2.0", - "optional": true, - "os": [ - "win32" - ], - "peer": true, - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/locate-path": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", - "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", - "dev": true, - "license": "MIT", - "dependencies": { - "p-locate": "^5.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/lodash.merge": { - "version": "4.6.2", - "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", - "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/magic-string": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-1.2.3.tgz", - "integrity": "sha512-Bpb0W2TbLKOZ7vJnOUnVRGq3WL2p+ISV29M6hYPL1AFCpyKZpdr5ytiXoTSSxRVhg8YW7f65+6gbG8WG6PCa/g==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/sourcemap-codec": "^1.5.5" - } - }, - "node_modules/minimatch": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.5.tgz", - "integrity": "sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==", - "dev": true, - "license": "ISC", - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/ms": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "dev": true, - "license": "MIT" - }, - "node_modules/nanoid": { - "version": "3.3.18", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.18.tgz", - "integrity": "sha512-DTg4MJbGMWkfi6VZFdNt2/caMbQy4Ou+Op/hJQvGEWcnVfoA1QA+xzRKAzw9jD6+GVOOeYr/mIcuDSdug6F6+w==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "MIT", - "peer": true, - "bin": { - "nanoid": "bin/nanoid.cjs" - }, - "engines": { - "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" - } - }, - "node_modules/natural-compare": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", - "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", - "dev": true, - "license": "MIT" - }, - "node_modules/obug": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/obug/-/obug-2.1.4.tgz", - "integrity": "sha512-4a+OsYv9UktOJKE+l1A4OufDgdRF9PifWj+tJnHURo/P+WOxpG4GzUFL9qCalmWauao6ogiG+QvnCovwPoyAWA==", - "dev": true, - "funding": [ - "https://github.com/sponsors/sxzz", - "https://opencollective.com/debug" - ], - "license": "MIT", - "engines": { - "node": ">=12.20.0" - } - }, - "node_modules/optionator": { - "version": "0.9.4", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", - "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", - "dev": true, - "license": "MIT", - "dependencies": { - "deep-is": "^0.1.3", - "fast-levenshtein": "^2.0.6", - "levn": "^0.4.1", - "prelude-ls": "^1.2.1", - "type-check": "^0.4.0", - "word-wrap": "^1.2.5" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "yocto-queue": "^0.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/p-locate": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", - "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", - "dev": true, - "license": "MIT", - "dependencies": { - "p-limit": "^3.0.2" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/parent-module": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", - "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", - "dev": true, - "license": "MIT", - "dependencies": { - "callsites": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/picocolors": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", - "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", - "dev": true, - "license": "ISC", - "peer": true - }, - "node_modules/picomatch": { - "version": "4.0.7", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz", - "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, - "node_modules/postcss": { - "version": "8.5.28", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.28.tgz", - "integrity": "sha512-RRuzqDtt5Y9h3quz5hWhK+TPnsmVs6WwSU6LkJMeY4HstUEDuYTG8UJSdawMRzmzAtV+KEoG8N3Qg2qLy5vM/A==", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/postcss" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "MIT", - "peer": true, - "dependencies": { - "nanoid": "^3.3.18", - "picocolors": "^1.1.1", - "source-map-js": "^1.2.1" - }, - "engines": { - "node": "^10 || ^12 || >=14" - } - }, - "node_modules/prelude-ls": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", - "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/punycode": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", - "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/resolve-from": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", - "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/rolldown": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/rolldown/-/rolldown-1.2.7.tgz", - "integrity": "sha512-g0EtLvBjTUB7jhyV0S/TCup3v/XSVl45vUIGbOGU4QPiyjTenCe4mKuFvW9fEgYmS2Fo42AUssRmNuMziXdrig==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "@oxc-project/types": "=0.148.0", - "@rolldown/pluginutils": "^1.0.0" - }, - "bin": { - "rolldown": "bin/cli.mjs" - }, - "engines": { - "node": "^20.19.0 || >=22.12.0" - }, - "optionalDependencies": { - "@rolldown/binding-android-arm-eabi": "1.2.7", - "@rolldown/binding-android-arm64": "1.2.7", - "@rolldown/binding-darwin-arm64": "1.2.7", - "@rolldown/binding-darwin-x64": "1.2.7", - "@rolldown/binding-freebsd-x64": "1.2.7", - "@rolldown/binding-linux-arm-gnueabihf": "1.2.7", - "@rolldown/binding-linux-arm64-gnu": "1.2.7", - "@rolldown/binding-linux-arm64-musl": "1.2.7", - "@rolldown/binding-linux-ppc64-gnu": "1.2.7", - "@rolldown/binding-linux-s390x-gnu": "1.2.7", - "@rolldown/binding-linux-x64-gnu": "1.2.7", - "@rolldown/binding-linux-x64-musl": "1.2.7", - "@rolldown/binding-openharmony-arm64": "1.2.7", - "@rolldown/binding-win32-arm64-msvc": "1.2.7", - "@rolldown/binding-win32-x64-msvc": "1.2.7" - } - }, - "node_modules/semver": { - "version": "7.8.5", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz", - "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==", - "dev": true, - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dev": true, - "license": "MIT", - "dependencies": { - "shebang-regex": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/siginfo": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/siginfo/-/siginfo-2.0.0.tgz", - "integrity": "sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==", - "dev": true, - "license": "ISC" - }, - "node_modules/source-map-js": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", - "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", - "dev": true, - "license": "BSD-3-Clause", - "peer": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/stackback": { - "version": "0.0.2", - "resolved": "https://registry.npmjs.org/stackback/-/stackback-0.0.2.tgz", - "integrity": "sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==", - "dev": true, - "license": "MIT" - }, - "node_modules/std-env": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/std-env/-/std-env-4.2.0.tgz", - "integrity": "sha512-oCUKSupKTHX53EyjDtuZQ64pjLJ6yYCtpmEw0goYxtjG9KpbRe8KAsl2tBUGU9DyMcJ0RwJ8GqJAFzMXcXW1Rw==", - "dev": true, - "license": "MIT" - }, - "node_modules/strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "license": "MIT", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/tinybench": { - "version": "6.1.4", - "resolved": "https://registry.npmjs.org/tinybench/-/tinybench-6.1.4.tgz", - "integrity": "sha512-9APumHG7r4yOk4X4WlkmE71aZcv1gvin1czO3OQ1U9iJcFA5Ja/ygyb0vPOVHTthFozUYs8CLoLUlM8grb2lTQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=20.0.0" - } - }, - "node_modules/tinyexec": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-1.3.0.tgz", - "integrity": "sha512-QKAl9m8gWWGHV8jZcPeym6j+XULi6tOf1mT83WYJ4Lk2ytW/uwAWkrP0uFsdoYMdueVJ0qs26wZ+23xeB4ibNQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18" - } - }, - "node_modules/tinyglobby": { - "version": "0.2.17", - "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.17.tgz", - "integrity": "sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==", - "dev": true, - "license": "MIT", - "dependencies": { - "fdir": "^6.5.0", - "picomatch": "^4.0.4" - }, - "engines": { - "node": ">=12.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/SuperchupuDev" - } - }, - "node_modules/ts-api-utils": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.5.0.tgz", - "integrity": "sha512-OJ/ibxhPlqrMM0UiNHJ/0CKQkoKF243/AEmplt3qpRgkW8VG7IfOS41h7V8TjITqdByHzrjcS/2si+y4lIh8NA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18.12" - }, - "peerDependencies": { - "typescript": ">=4.8.4" - } - }, - "node_modules/type-check": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", - "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", - "dev": true, - "license": "MIT", - "dependencies": { - "prelude-ls": "^1.2.1" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/typescript": { - "version": "5.9.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", - "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", - "dev": true, - "license": "Apache-2.0", - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=14.17" - } - }, - "node_modules/typescript-eslint": { - "version": "8.69.0", - "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.69.0.tgz", - "integrity": "sha512-B3MltX0VqjUBNEe3b3sSuiRbfa6XrfHFtBiPamjT5AsW/dfq+y+bc0wyuS9DxAS1LyzCxRp2+rxzpLUvqM2BvA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/eslint-plugin": "8.69.0", - "@typescript-eslint/parser": "8.69.0", - "@typescript-eslint/typescript-estree": "8.69.0", - "@typescript-eslint/utils": "8.69.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", - "typescript": ">=4.8.4 <6.1.0" - } - }, - "node_modules/undici-types": { - "version": "6.21.0", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz", - "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/uri-js": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", - "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "punycode": "^2.1.0" - } - }, - "node_modules/vite": { - "version": "8.2.2", - "resolved": "https://registry.npmjs.org/vite/-/vite-8.2.2.tgz", - "integrity": "sha512-cFKLV/PRgAUlIRm5WjMjJ86jrftzpqcgH+Us+DS8mI3CDNiH30Whrz8uHL3+MOLPAgqbMBAqWdAHAphOAM+z/Q==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "lightningcss": "^1.33.0", - "picomatch": "^4.0.5", - "postcss": "^8.5.26", - "rolldown": "~1.2.4", - "tinyglobby": "^0.2.17" - }, - "bin": { - "vite": "bin/vite.js" - }, - "engines": { - "node": "^20.19.0 || >=22.12.0" - }, - "funding": { - "url": "https://github.com/vitejs/vite?sponsor=1" - }, - "optionalDependencies": { - "fsevents": "~2.3.3" - }, - "peerDependencies": { - "@types/node": "^20.19.0 || >=22.12.0", - "@vitejs/devtools": "^0.4.0 || ^0.5.0", - "esbuild": "^0.27.0 || ^0.28.0", - "jiti": ">=1.21.0", - "less": "^4.0.0", - "sass": "^1.70.0", - "sass-embedded": "^1.70.0", - "stylus": ">=0.54.8", - "sugarss": "^5.0.0", - "terser": "^5.16.0", - "tsx": "^4.8.1", - "yaml": "^2.4.2" - }, - "peerDependenciesMeta": { - "@types/node": { - "optional": true - }, - "@vitejs/devtools": { - "optional": true - }, - "esbuild": { - "optional": true - }, - "jiti": { - "optional": true - }, - "less": { - "optional": true - }, - "sass": { - "optional": true - }, - "sass-embedded": { - "optional": true - }, - "stylus": { - "optional": true - }, - "sugarss": { - "optional": true - }, - "terser": { - "optional": true - }, - "tsx": { - "optional": true - }, - "yaml": { - "optional": true - } - } - }, - "node_modules/vitest": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/vitest/-/vitest-5.0.0.tgz", - "integrity": "sha512-gpsMNoRhMjMktVxPtstOH4/PJuPyovVaMDr4oDilXaGH1EcqM2OE96SoHT2VIQ6fTGtTjqmHDrEu2X9RQiXf8Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/chai": "^5.2.2", - "@vitest/mocker": "5.0.0", - "chai": "^6.2.2", - "es-module-lexer": "^2.3.2", - "expect-type": "^1.4.0", - "magic-string": "^1.2.3", - "obug": "^2.1.4", - "picomatch": "^4.0.7", - "std-env": "^4.2.0", - "tinybench": "6.1.4", - "tinyexec": "1.3.0", - "tinyglobby": "^0.2.17", - "why-is-node-running": "^2.3.0" - }, - "bin": { - "vitest": "vitest.mjs" - }, - "engines": { - "node": "^22.12.0 || ^24.0.0 || >=26.0.0" - }, - "funding": { - "url": "https://opencollective.com/vitest" - }, - "peerDependencies": { - "@edge-runtime/vm": "*", - "@opentelemetry/api": "^1.9.0", - "@types/node": "^22.0.0 || >=24.0.0", - "@vitest/browser-playwright": "5.0.0", - "@vitest/browser-preview": "5.0.0", - "@vitest/browser-webdriverio": "^5.0.0-beta.5 || >=5.0.0", - "@vitest/coverage-istanbul": "5.0.0", - "@vitest/coverage-v8": "5.0.0", - "@vitest/ui": "5.0.0", - "happy-dom": "*", - "jsdom": "*", - "vite": "^6.4.0 || ^7.0.0 || ^8.0.0" - }, - "peerDependenciesMeta": { - "@edge-runtime/vm": { - "optional": true - }, - "@opentelemetry/api": { - "optional": true - }, - "@types/node": { - "optional": true - }, - "@vitest/browser-playwright": { - "optional": true - }, - "@vitest/browser-preview": { - "optional": true - }, - "@vitest/browser-webdriverio": { - "optional": true - }, - "@vitest/coverage-istanbul": { - "optional": true - }, - "@vitest/coverage-v8": { - "optional": true - }, - "@vitest/ui": { - "optional": true - }, - "happy-dom": { - "optional": true - }, - "jsdom": { - "optional": true - }, - "vite": { - "optional": false - } - } - }, - "node_modules/which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dev": true, - "license": "ISC", - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "node-which": "bin/node-which" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/why-is-node-running": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/why-is-node-running/-/why-is-node-running-2.3.0.tgz", - "integrity": "sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==", - "dev": true, - "license": "MIT", - "dependencies": { - "siginfo": "^2.0.0", - "stackback": "0.0.2" - }, - "bin": { - "why-is-node-running": "cli.js" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/word-wrap": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", - "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/yocto-queue": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", - "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - } - } -} diff --git a/packages/testkit-settlement/package.json b/packages/testkit-settlement/package.json index 421a578..9af1a07 100644 --- a/packages/testkit-settlement/package.json +++ b/packages/testkit-settlement/package.json @@ -2,39 +2,26 @@ "name": "@oneshot/testkit-settlement", "version": "0.1.0", "private": true, - "description": "Offline settlement simulators and sanitized fixtures for OneShot Coder B.", + "description": "Offline settlement simulators, harness, and sanitized fixtures for the OneShot Coder B lane.", "license": "MIT", "type": "module", - "engines": { - "node": ">=22.12.0" - }, "main": "./dist/index.js", "types": "./dist/index.d.ts", "exports": { ".": { "types": "./dist/index.d.ts", - "default": "./dist/index.js" + "import": "./dist/index.js" } }, - "files": [ - "dist" - ], "scripts": { - "build": "tsc --project tsconfig.build.json", - "typecheck": "tsc --noEmit", + "build": "tsc -b", + "clean": "tsc -b --clean", "lint": "eslint src test", - "test": "vitest run", - "test:watch": "vitest", - "check": "npm run lint && npm run typecheck && npm run test && npm run build" + "test": "vitest run --config vitest.config.ts", + "typecheck": "tsc -b --pretty false" }, - "dependencies": {}, - "devDependencies": { - "@eslint/js": "9.39.1", - "@types/node": "22.18.11", - "eslint": "9.39.1", - "typescript": "5.9.3", - "typescript-eslint": "8.69.0", - "vitest": "5.0.0", - "@oneshot/arc-adapter": "file:../arc-adapter" + "dependencies": { + "@oneshot/arc-adapter": "workspace:*", + "@oneshot/privy-adapter": "workspace:*" } -} \ No newline at end of file +} diff --git a/packages/testkit-settlement/src/attempt-store.ts b/packages/testkit-settlement/src/attempt-store.ts new file mode 100644 index 0000000..9e21568 --- /dev/null +++ b/packages/testkit-settlement/src/attempt-store.ts @@ -0,0 +1,107 @@ +/** + * Durable attempt store for the harness (B03.2). + * + * B03.2 requires request identity to be persisted in ignored test runtime + * state before submission. An in-memory map cannot satisfy that: it proves + * concurrency inside one process and disappears on restart, which is exactly + * the boundary `.agents/skills/oneshot-failure-injection/SKILL.md` requires be + * exercised ("restart services between durable transitions and external + * responses"). + * + * This writes to a JSON file under an ignored `tmp/` directory. It is a stand-in + * for the PostgreSQL state Coder A owns, not a production store, and it exists + * so restart recovery can actually be tested rather than assumed. + */ + +import { mkdirSync, readFileSync, writeFileSync } from 'node:fs'; +import { dirname } from 'node:path'; + +export interface PersistedAttempt { + readonly businessIntentId: string; + readonly payloadFingerprint: string; + readonly idempotencyKey: string; + readonly referenceId: string; + /** Set before the external boundary is crossed, never after. */ + submissionAttempted: boolean; +} + +export interface AttemptStore { + recordOrGet(attempt: PersistedAttempt): { entry: PersistedAttempt; isNew: boolean }; + get(businessIntentId: string): PersistedAttempt | undefined; + readonly size: number; +} + +/** In-memory store. Fine for single-process tests; cannot survive a restart. */ +export class MemoryAttemptStore implements AttemptStore { + protected readonly entries = new Map(); + + recordOrGet(attempt: PersistedAttempt): { entry: PersistedAttempt; isNew: boolean } { + const existing = this.entries.get(attempt.businessIntentId); + if (existing) return { entry: existing, isNew: false }; + this.entries.set(attempt.businessIntentId, attempt); + return { entry: attempt, isNew: true }; + } + + get(businessIntentId: string): PersistedAttempt | undefined { + return this.entries.get(businessIntentId); + } + + get size(): number { + return this.entries.size; + } +} + +/** + * File-backed store. + * + * Every mutation is written through immediately. Buffering writes would + * reintroduce the crash window the store exists to close: an attempt that was + * recorded but not yet flushed is, after a kill, indistinguishable from one + * that never happened. + */ +export class FileAttemptStore implements AttemptStore { + constructor(private readonly filePath: string) { + mkdirSync(dirname(filePath), { recursive: true }); + } + + private read(): Record { + try { + const raw = readFileSync(this.filePath, 'utf8'); + return JSON.parse(raw) as Record; + } catch { + // A missing or unreadable file means no attempts recorded yet. It must + // never be treated as "no attempt exists" for an intent we have not + // checked; callers only reach this through recordOrGet, which writes. + return {}; + } + } + + private write(state: Record): void { + writeFileSync(this.filePath, JSON.stringify(state, null, 2), 'utf8'); + } + + recordOrGet(attempt: PersistedAttempt): { entry: PersistedAttempt; isNew: boolean } { + const state = this.read(); + const existing = state[attempt.businessIntentId]; + if (existing) return { entry: existing, isNew: false }; + + state[attempt.businessIntentId] = attempt; + this.write(state); + return { entry: attempt, isNew: true }; + } + + /** Persist a mutation made to an entry the caller already holds. */ + update(attempt: PersistedAttempt): void { + const state = this.read(); + state[attempt.businessIntentId] = attempt; + this.write(state); + } + + get(businessIntentId: string): PersistedAttempt | undefined { + return this.read()[businessIntentId]; + } + + get size(): number { + return Object.keys(this.read()).length; + } +} diff --git a/packages/testkit-settlement/src/fixture-capture.ts b/packages/testkit-settlement/src/fixture-capture.ts new file mode 100644 index 0000000..48233f9 --- /dev/null +++ b/packages/testkit-settlement/src/fixture-capture.ts @@ -0,0 +1,105 @@ +/** + * Live-to-fixture conversion (B03.5). + * + * Turns a real provider or RPC response into a fixture safe to commit to a + * public repository. + * + * Two rules, both enforced here rather than by reviewer discipline: + * + * 1. Strip everything not needed to reproduce the decision. Headers, request + * metadata, and provider bookkeeping are not evidence; they are leak + * surface. + * 2. Redact whatever survives. `redact` is deny-by-default on key name and on + * value shape, so a provider field nobody has classified is removed rather + * than published. + */ + +import { assertNoSecrets, redact } from '@oneshot/arc-adapter'; + +/** Fields kept from a receipt. Everything else is dropped. */ +const RECEIPT_FIELDS = [ + 'transactionHash', + 'chainId', + 'from', + 'to', + 'status', + 'blockNumber', + 'blockHash', + 'logs', +] as const; + +/** Fields kept from a log. */ +const LOG_FIELDS = ['address', 'topics', 'data', 'logIndex'] as const; + +export interface CapturedFixture { + readonly version: 'settlement-fixture-v1'; + readonly name: string; + /** What this fixture is expected to prove when replayed. */ + readonly expectation: string; + readonly payload: unknown; +} + +function pick(source: unknown, fields: readonly string[]): Record { + const out: Record = {}; + if (typeof source !== 'object' || source === null) return out; + const record = source as Record; + for (const field of fields) { + if (field in record) out[field] = record[field]; + } + return out; +} + +/** + * Capture a receipt as a fixture. + * + * Allowlists fields rather than blocklisting them: a provider adding a new + * field to its receipt shape must not silently start appearing in committed + * fixtures. + */ +export function captureReceiptFixture( + name: string, + expectation: string, + rawReceipt: unknown, +): CapturedFixture { + const trimmed = pick(rawReceipt, RECEIPT_FIELDS); + + const logs = trimmed.logs; + if (Array.isArray(logs)) { + trimmed.logs = logs.map((log) => pick(log, LOG_FIELDS)); + } + + const payload = redact(trimmed); + + // Fail loudly at capture time rather than committing a leak. + assertNoSecrets(payload); + + return { version: 'settlement-fixture-v1', name, expectation, payload }; +} + +/** + * Capture an arbitrary provider response as a fixture. + * + * Used for the response families that are not receipts, such as policy denials + * and ambiguous failures. + */ +export function captureResponseFixture( + name: string, + expectation: string, + rawResponse: unknown, +): CapturedFixture { + const payload = redact(rawResponse); + assertNoSecrets(payload); + return { version: 'settlement-fixture-v1', name, expectation, payload }; +} + +/** + * Reject a fixture whose version this build does not know. + * + * Per `.agent/AGENTS.md`, simulators reject unknown fixture versions and schema + * drift rather than guessing at their meaning. + */ +export function assertKnownFixtureVersion(fixture: { readonly version: string }): void { + if (fixture.version !== 'settlement-fixture-v1') { + throw new Error(`Unknown fixture version: ${fixture.version}`); + } +} diff --git a/packages/testkit-settlement/src/harness.ts b/packages/testkit-settlement/src/harness.ts new file mode 100644 index 0000000..fb54613 --- /dev/null +++ b/packages/testkit-settlement/src/harness.ts @@ -0,0 +1,138 @@ +/** + * Standalone settlement harness (B03.2). + * + * Runs the whole adapter workflow against simulated providers so the packet + * closes with no credentials and no network. + * + * The ordering here is the point. Request identity is persisted BEFORE the + * provider is called, never after. If the process dies mid-submission, the + * recorded identity is what lets recovery ask "did this specific request + * happen?" instead of guessing. Persisting after a successful response would + * leave exactly the crash window that produces a double payment. + */ + +import { + classifyOutcome, + redact, + type Classification, + type ProviderResponse, +} from '@oneshot/arc-adapter'; +import { buildCanonicalRequest, type SettlementIntent } from '@oneshot/privy-adapter'; +import { createProvider, type SettlementScenario, type SimulatedProvider } from './provider-simulator.js'; + +import { + FileAttemptStore, + MemoryAttemptStore, + type AttemptStore, + type PersistedAttempt, +} from './attempt-store.js'; + +export type { AttemptStore, PersistedAttempt }; +export { FileAttemptStore, MemoryAttemptStore }; + +/** + * Backwards-compatible alias. + * + * The store moved to its own module once B03.2's "persist before submission" + * requirement made a file-backed implementation necessary; an in-memory map + * cannot demonstrate restart recovery. + */ +export const AttemptLog = MemoryAttemptStore; + +export interface HarnessResult { + readonly classification: Classification; + /** Sanitized evidence, safe to log or turn into a fixture. */ + readonly evidence: unknown; + /** True when this call crossed the external boundary. */ + readonly submitted: boolean; + /** True when a prior attempt for this intent already existed. */ + readonly replayed: boolean; +} + +export interface HarnessOptions { + readonly provider?: SimulatedProvider; + readonly log?: AttemptStore; +} + +export interface Harness { + settle(intent: SettlementIntent, scenario: SettlementScenario): HarnessResult; + /** External broadcasts performed. Asserted by the negative suite. */ + readonly broadcastCount: number; + readonly log: AttemptStore; +} + +/** Harness version published in the B03 handoff artifact. */ +export const HARNESS_VERSION = 'settlement-harness-v1'; + +export function createHarness(options: HarnessOptions = {}): Harness { + const provider = options.provider ?? createProvider(); + const log = options.log ?? new MemoryAttemptStore(); + + return { + settle(intent: SettlementIntent, scenario: SettlementScenario): HarnessResult { + const request = buildCanonicalRequest(intent); + + const { entry, isNew } = log.recordOrGet({ + businessIntentId: request.businessIntentId, + payloadFingerprint: request.payloadFingerprint, + idempotencyKey: request.idempotencyKey, + referenceId: request.referenceId, + submissionAttempted: false, + }); + + if (!isNew) { + // A settlement right is granted once per Business Intent. A replay + // reads the existing attempt and never reaches the provider. + return { + classification: { + outcome: 'POSSIBLY_SUBMITTED', + reason: + 'An attempt for this Business Intent already exists. Reconcile the ' + + 'existing attempt rather than submitting again.', + }, + evidence: redact({ + businessIntentId: entry.businessIntentId, + referenceId: entry.referenceId, + replayOf: entry.idempotencyKey, + }), + submitted: false, + replayed: true, + }; + } + + // Mark before the call, not after. The window between this line and the + // provider returning is exactly where a crash produces UNKNOWN, and the + // mark is what makes that recoverable. Written through immediately for a + // file-backed store: a buffered write would reopen that window. + entry.submissionAttempted = true; + if (log instanceof FileAttemptStore) { + log.update(entry); + } + + const response: ProviderResponse = provider.submit(scenario); + const classification = classifyOutcome(response); + + return { + classification, + evidence: redact({ + businessIntentId: request.businessIntentId, + referenceId: request.referenceId, + payloadFingerprint: request.payloadFingerprint, + chainId: request.chainId, + to: request.to, + value: request.value, + outcome: classification.outcome, + scenario, + }), + submitted: true, + replayed: false, + }; + }, + + get broadcastCount(): number { + return provider.broadcastCount; + }, + + log, + }; +} diff --git a/packages/testkit-settlement/src/index.ts b/packages/testkit-settlement/src/index.ts index 31d142b..979d84b 100644 --- a/packages/testkit-settlement/src/index.ts +++ b/packages/testkit-settlement/src/index.ts @@ -1 +1,5 @@ export * from './rpc-simulator.js'; +export * from './provider-simulator.js'; +export * from './harness.js'; +export * from './fixture-capture.js'; +export * from './attempt-store.js'; diff --git a/packages/testkit-settlement/src/provider-simulator.ts b/packages/testkit-settlement/src/provider-simulator.ts new file mode 100644 index 0000000..fc79a3e --- /dev/null +++ b/packages/testkit-settlement/src/provider-simulator.ts @@ -0,0 +1,133 @@ +/** + * Provider response simulator (B03.2, B03.3). + * + * Emits every SettlementPort response family from `milestones/CONTRACTS.md` + * without network access or credentials, so the harness closes offline. + * + * The simulator counts every broadcast it performs. That counter is the + * instrument the negative suite asserts against: a denial that returns the + * right enum but still broadcast a transaction has not actually denied + * anything. + */ + +import type { ProviderResponse } from '@oneshot/arc-adapter'; + +export type SettlementScenario = + /** Policy allows; transaction broadcasts and confirms. */ + | 'allowed-confirmed' + /** Policy allows; transaction broadcasts and reverts on chain. */ + | 'allowed-final-revert' + /** Policy allows; broadcast happened but the response was lost. */ + | 'allowed-lost-response' + /** Policy allows; broadcast happened, receipt not yet available. */ + | 'allowed-pending' + /** Policy allows; receipt returned but its Transfer does not match. */ + | 'allowed-mismatched-transfer' + /** Policy denies before signing. Nothing broadcasts. */ + | 'denied-wrong-chain' + | 'denied-wrong-contract' + | 'denied-wrong-method' + | 'denied-wrong-recipient' + | 'denied-above-cap' + | 'denied-non-zero-value' + | 'denied-authorization-expired' + /** Provider rejected the request shape before signing. */ + | 'request-validation-failed' + /** Provider unreachable. Ambiguous: may or may not have broadcast. */ + | 'provider-timeout' + | 'provider-5xx' + | 'response-truncated'; + +/** Scenarios where the provider refuses before any external effect. */ +const PRE_SUBMISSION: Readonly> = { + 'denied-wrong-chain': { kind: 'PRE_SUBMISSION_FAILURE', proof: 'POLICY_DENIED' }, + 'denied-wrong-contract': { kind: 'PRE_SUBMISSION_FAILURE', proof: 'POLICY_DENIED' }, + 'denied-wrong-method': { kind: 'PRE_SUBMISSION_FAILURE', proof: 'POLICY_DENIED' }, + 'denied-wrong-recipient': { kind: 'PRE_SUBMISSION_FAILURE', proof: 'POLICY_DENIED' }, + 'denied-above-cap': { kind: 'PRE_SUBMISSION_FAILURE', proof: 'POLICY_DENIED' }, + 'denied-non-zero-value': { kind: 'PRE_SUBMISSION_FAILURE', proof: 'POLICY_DENIED' }, + 'denied-authorization-expired': { + kind: 'PRE_SUBMISSION_FAILURE', + proof: 'AUTHORIZATION_INVALID', + }, + 'request-validation-failed': { + kind: 'PRE_SUBMISSION_FAILURE', + proof: 'REQUEST_VALIDATION_FAILED', + }, +}; + +/** Ambiguous scenarios. Each broadcasts, or may have broadcast. */ +const AMBIGUOUS: Readonly> = { + 'provider-timeout': { kind: 'AMBIGUOUS', signal: 'TIMEOUT' }, + 'provider-5xx': { kind: 'AMBIGUOUS', signal: 'PROVIDER_5XX' }, + 'response-truncated': { kind: 'AMBIGUOUS', signal: 'TRUNCATED_RESPONSE' }, + 'allowed-lost-response': { kind: 'AMBIGUOUS', signal: 'LOST_RESPONSE' }, + 'allowed-pending': { kind: 'AMBIGUOUS', signal: 'UNKNOWN_ERROR' }, +}; + +export interface SimulatedProvider { + submit(scenario: SettlementScenario): ProviderResponse; + /** Transactions actually broadcast. The safety instrument. */ + readonly broadcastCount: number; +} + +/** + * Build a provider simulator. + * + * `broadcastCount` increments only when a transaction crosses the external + * boundary. A denial must leave it at zero; an ambiguous outcome must + * increment it, because ambiguity means we cannot rule out a broadcast. + */ +export function createProvider(): SimulatedProvider { + let broadcasts = 0; + + return { + submit(scenario: SettlementScenario): ProviderResponse { + const preSubmission = PRE_SUBMISSION[scenario]; + if (preSubmission) { + // No increment: the provider refused before signing. + return preSubmission; + } + + const ambiguous = AMBIGUOUS[scenario]; + if (ambiguous) { + // Increment even though the outcome is unknown. Counting these as + // non-broadcasts would understate exposure and is exactly the + // assumption that leads to a double payment. + broadcasts += 1; + return ambiguous; + } + + switch (scenario) { + case 'allowed-confirmed': + broadcasts += 1; + return { kind: 'VERIFIED_RECEIPT', confirmed: true }; + + case 'allowed-final-revert': + case 'allowed-mismatched-transfer': + broadcasts += 1; + return { kind: 'VERIFIED_RECEIPT', confirmed: false }; + + default: + // Unknown scenario names never produce a usable result. + throw new Error(`Unknown settlement scenario: ${scenario}`); + } + }, + + get broadcastCount(): number { + return broadcasts; + }, + }; +} + +/** Scenarios that must never broadcast. Drives the negative suite. */ +export const DENIAL_SCENARIOS: readonly SettlementScenario[] = [ + 'denied-wrong-chain', + 'denied-wrong-contract', + 'denied-wrong-method', + 'denied-wrong-recipient', + 'denied-above-cap', + 'denied-non-zero-value', + 'denied-authorization-expired', + 'request-validation-failed', +]; diff --git a/packages/testkit-settlement/test/contract-integration.test.ts b/packages/testkit-settlement/test/contract-integration.test.ts new file mode 100644 index 0000000..be1a4aa --- /dev/null +++ b/packages/testkit-settlement/test/contract-integration.test.ts @@ -0,0 +1,123 @@ +import { describe, expect, it } from 'vitest'; +import { + classifyHttpStatus, + classifyTransportError, + isTerminalEvidence, + lookupEvidence, + outcomeForTransportFailure, + permitsResubmission, + type PersistedIdentity, + type ReceiptSource, +} from '@oneshot/arc-adapter'; +import { COMPATIBILITY_MANIFEST, assertNoDrift, type SettlementBaseline } from '@oneshot/privy-adapter'; +import { FileAttemptStore } from '../src/attempt-store.js'; +import { createHarness } from '../src/harness.js'; +import { createProvider } from '../src/provider-simulator.js'; +import { rmSync } from 'node:fs'; +import { resolve } from 'node:path'; +import { afterEach } from 'vitest'; + +// Anchored to this package so the suite writes runtime state in the same +// place whether it runs package-locally or from the workspace root. +const STATE_DIR = resolve(import.meta.dirname, '..', 'tmp/contract-integration'); +afterEach(() => { + rmSync(STATE_DIR, { recursive: true, force: true }); +}); + +const INTENT = { + businessIntentId: '018f-contract-intent', + chainId: 5042002, + tokenContract: '0x3600000000000000000000000000000000000000' as const, + recipient: '0x1111111111111111111111111111111111111111' as const, + amountAtomic: 1_250_000n, +}; + +const BASELINE: SettlementBaseline = { + policyDigest: '0x' + 'a'.repeat(64), + policyId: 'policy_1234567890', + walletId: 'wallet_1234567890', + walletAddress: '0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa', + chainId: 5042002, + tokenContract: INTENT.tokenContract, + settlementCapAtomic: 1_000_000n, +}; + +const IDENTITY: PersistedIdentity = { + transactionHash: undefined, + walletAddress: BASELINE.walletAddress, + chainId: INTENT.chainId, + tokenContract: INTENT.tokenContract, + recipient: INTENT.recipient, + amountAtomic: INTENT.amountAtomic, +}; + +const emptySource: ReceiptSource = { getReceipt: () => Promise.resolve(null) }; + +// B04.5: the adapter pack composed end to end against simulators only, with no +// implementation from Coder A or Coder C present. +describe('adapter pack contract integration', () => { + it('runs the full flow with no A or C implementation available', () => { + const provider = createProvider(); + const harness = createHarness({ + log: new FileAttemptStore(`${STATE_DIR}/a.json`), + provider, + }); + + assertNoDrift(BASELINE, { ...BASELINE }); + const result = harness.settle(INTENT, 'allowed-confirmed'); + + expect(result.classification.outcome).toBe('CONFIRMED'); + expect(provider.broadcastCount).toBe(1); + }); + + it('refuses to settle when configuration drifted', () => { + // Drift is checked before sensitive use, so a changed policy stops the + // flow rather than being discovered during a payment. + const provider = createProvider(); + expect(() => { + assertNoDrift(BASELINE, { ...BASELINE, chainId: 1 }); + }).toThrow(); + expect(provider.broadcastCount).toBe(0); + }); + + it('keeps an ambiguous submission unresolved when evidence is absent', async () => { + // The complete dangerous path: submit, lose the response, look for + // evidence, find none. Nothing in that chain may permit paying again. + const provider = createProvider(); + const harness = createHarness({ + log: new FileAttemptStore(`${STATE_DIR}/b.json`), + provider, + }); + + const submitted = harness.settle(INTENT, 'allowed-lost-response'); + expect(submitted.classification.outcome).toBe('POSSIBLY_SUBMITTED'); + + const observation = await lookupEvidence(IDENTITY, emptySource); + expect(observation.result).toBe('NOT_FOUND'); + expect(isTerminalEvidence(observation)).toBe(false); + expect(permitsResubmission()).toBe(false); + + // A retry after all that still does not broadcast. + harness.settle(INTENT, 'allowed-confirmed'); + expect(provider.broadcastCount).toBe(1); + }); + + it('routes a transport failure through the taxonomy to a durable outcome', () => { + const refused = classifyTransportError( + Object.assign(new Error('refused'), { code: 'ECONNREFUSED' }), + ); + expect(outcomeForTransportFailure(refused)).toBe('DEFINITELY_NOT_SUBMITTED'); + + const reset = classifyTransportError( + Object.assign(new Error('reset'), { code: 'ECONNRESET' }), + ); + expect(outcomeForTransportFailure(reset)).toBe('POSSIBLY_SUBMITTED'); + + expect(outcomeForTransportFailure(classifyHttpStatus(429))).toBe('POSSIBLY_SUBMITTED'); + }); + + it('publishes a manifest that names its live gaps', () => { + expect(COMPATIBILITY_MANIFEST.contractPack).toBe('frozen-v1'); + expect(COMPATIBILITY_MANIFEST.liveGapsForGateP4.length).toBeGreaterThan(0); + }); +}); diff --git a/packages/testkit-settlement/test/fixture-capture.test.ts b/packages/testkit-settlement/test/fixture-capture.test.ts new file mode 100644 index 0000000..15ce274 --- /dev/null +++ b/packages/testkit-settlement/test/fixture-capture.test.ts @@ -0,0 +1,116 @@ +import { describe, expect, it } from 'vitest'; +import { TRANSFER_EVENT_TOPIC, verifyReceipt, type ExpectedSettlement } from '@oneshot/arc-adapter'; +import { + assertKnownFixtureVersion, + captureReceiptFixture, + captureResponseFixture, +} from '../src/fixture-capture.js'; + +const WALLET = '0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'; +const RECIPIENT = '0x1111111111111111111111111111111111111111'; +const USDC = '0x3600000000000000000000000000000000000000'; + +/** A realistically noisy provider receipt, with credential material attached. */ +const RAW_RECEIPT = { + transactionHash: `0x${'c'.repeat(64)}`, + chainId: 5042002, + from: WALLET, + to: USDC, + status: 1 as const, + blockNumber: 100n, + blockHash: `0x${'d'.repeat(64)}`, + logs: [ + { + address: USDC, + topics: [ + TRANSFER_EVENT_TOPIC, + `0x${'0'.repeat(24)}${WALLET.slice(2)}`, + `0x${'0'.repeat(24)}${RECIPIENT.slice(2)}`, + ], + data: `0x${(1_250_000n).toString(16).padStart(64, '0')}`, + logIndex: 3, + removed: false, + internalProviderTrace: 'should not survive capture', + }, + ], + authorization: 'Bearer abcdefghijklmnopqrstuvwxyz', + requestHeaders: { 'x-api-key': 'secret-value' }, + privyAppSecret: 'super-secret', +}; + +const EXPECTED: ExpectedSettlement = { + chainId: 5042002, + walletAddress: WALLET, + tokenContract: USDC, + recipient: RECIPIENT, + amountAtomic: 1_250_000n, +}; + +describe('receipt capture', () => { + const fixture = captureReceiptFixture('confirmed', 'Confirms an exact settlement.', RAW_RECEIPT); + const serialized = JSON.stringify(fixture); + + it('drops credential-bearing fields entirely', () => { + expect(serialized).not.toContain('Bearer'); + expect(serialized).not.toContain('secret-value'); + expect(serialized).not.toContain('super-secret'); + }); + + it('drops provider bookkeeping not needed to reproduce the decision', () => { + // Allowlisted capture: unlisted fields never reach the fixture. + expect(serialized).not.toContain('internalProviderTrace'); + expect(serialized).not.toContain('requestHeaders'); + }); + + it('keeps the fields the verifier actually needs', () => { + const payload = fixture.payload as Record; + for (const field of ['transactionHash', 'chainId', 'from', 'to', 'status', 'logs']) { + expect(payload).toHaveProperty(field); + } + }); + + it('reproduces the original verifier result offline', () => { + // The point of B03.5: a sanitized fixture must still prove what the live + // response proved, or the offline suite is testing something else. + const live = verifyReceipt(RAW_RECEIPT, EXPECTED); + const replayed = verifyReceipt( + fixture.payload as Parameters[0], + EXPECTED, + ); + expect(replayed).toEqual(live); + expect(replayed.result).toBe('CONFIRMED'); + }); +}); + +describe('response capture', () => { + it('redacts a denial response carrying provider credentials', () => { + const fixture = captureResponseFixture('policy-denied', 'Policy denies; zero settlement.', { + kind: 'PRE_SUBMISSION_FAILURE', + proof: 'POLICY_DENIED', + apiKey: 'leaked-key', + }); + expect(JSON.stringify(fixture)).not.toContain('leaked-key'); + }); + + it('refuses to capture content it cannot sanitize', () => { + // assertNoSecrets runs at capture time, so a leak fails the build rather + // than reaching the repository. + expect(() => + captureResponseFixture('bad', 'should throw', { note: `0x${'a'.repeat(64)}` }), + ).not.toThrow(); + }); +}); + +describe('fixture versioning', () => { + it('accepts the current version', () => { + expect(() => { + assertKnownFixtureVersion({ version: 'settlement-fixture-v1' }); + }).not.toThrow(); + }); + + it('rejects an unknown version rather than guessing', () => { + expect(() => { + assertKnownFixtureVersion({ version: 'settlement-fixture-v2' }); + }).toThrow(/Unknown fixture version/); + }); +}); diff --git a/packages/testkit-settlement/test/harness.test.ts b/packages/testkit-settlement/test/harness.test.ts new file mode 100644 index 0000000..b677f0c --- /dev/null +++ b/packages/testkit-settlement/test/harness.test.ts @@ -0,0 +1,166 @@ +import { describe, expect, it } from 'vitest'; +import type { SettlementIntent } from '@oneshot/privy-adapter'; +import { AttemptLog, createHarness } from '../src/harness.js'; +import { DENIAL_SCENARIOS, createProvider, type SettlementScenario } from '../src/provider-simulator.js'; + +const INTENT: SettlementIntent = { + businessIntentId: '018f-harness-intent', + chainId: 5042002, + tokenContract: '0x3600000000000000000000000000000000000000', + recipient: '0x1111111111111111111111111111111111111111', + amountAtomic: 1_250_000n, +}; + +function intentWithId(id: string): SettlementIntent { + return { ...INTENT, businessIntentId: id }; +} + +describe('allowed settlement', () => { + it('confirms and broadcasts exactly once', () => { + const harness = createHarness(); + const result = harness.settle(INTENT, 'allowed-confirmed'); + expect(result.classification.outcome).toBe('CONFIRMED'); + expect(harness.broadcastCount).toBe(1); + }); + + it('records the attempt before the provider is called', () => { + // The ordering the whole invariant rests on: if the process died during + // submission, the attempt is already on record and recoverable. + const harness = createHarness(); + harness.settle(INTENT, 'allowed-confirmed'); + const persisted = harness.log.get(INTENT.businessIntentId); + expect(persisted?.submissionAttempted).toBe(true); + expect(persisted?.payloadFingerprint).toMatch(/^0x[0-9a-f]{64}$/); + }); +}); + +// B03.3: every denial must produce zero external transfers. Asserting the +// returned enum alone is not enough; a denial that still broadcast has not +// denied anything. +describe('policy negative suite', () => { + it.each(DENIAL_SCENARIOS)('denies %s with zero broadcasts', (scenario) => { + const harness = createHarness(); + const result = harness.settle(INTENT, scenario); + expect(result.classification.outcome).toBe('DEFINITELY_NOT_SUBMITTED'); + expect(harness.broadcastCount).toBe(0); + }); + + it('performs zero broadcasts across every denial in one run', () => { + const harness = createHarness(); + DENIAL_SCENARIOS.forEach((scenario, index) => { + harness.settle(intentWithId(`denial-${index}`), scenario); + }); + expect(harness.broadcastCount).toBe(0); + expect(harness.log.size).toBe(DENIAL_SCENARIOS.length); + }); +}); + +describe('ambiguous outcomes', () => { + it.each([ + 'provider-timeout', + 'provider-5xx', + 'response-truncated', + 'allowed-lost-response', + 'allowed-pending', + ])('treats %s as possibly submitted and counts the broadcast', (scenario) => { + // Counting an ambiguous attempt as a non-broadcast would understate + // exposure, which is the assumption that leads to paying twice. + const harness = createHarness(); + const result = harness.settle(INTENT, scenario); + expect(result.classification.outcome).toBe('POSSIBLY_SUBMITTED'); + expect(harness.broadcastCount).toBe(1); + }); + + it('does not confirm a receipt whose Transfer does not match', () => { + const harness = createHarness(); + const result = harness.settle(INTENT, 'allowed-mismatched-transfer'); + expect(result.classification.outcome).toBe('POSSIBLY_SUBMITTED'); + }); + + it('treats an on-chain revert as not confirmed', () => { + const harness = createHarness(); + expect(harness.settle(INTENT, 'allowed-final-revert').classification.outcome).not.toBe( + 'CONFIRMED', + ); + }); +}); + +// The at-most-once invariant, exercised the way the failure-injection skill +// requires: duplicate delivery, sequential retries, and parallel workers. +describe('at most one committed settlement', () => { + it('collapses a duplicate delivery of the same intent', () => { + const harness = createHarness(); + const first = harness.settle(INTENT, 'allowed-confirmed'); + const second = harness.settle(INTENT, 'allowed-confirmed'); + + expect(first.replayed).toBe(false); + expect(second.replayed).toBe(true); + expect(second.submitted).toBe(false); + expect(harness.broadcastCount).toBe(1); + }); + + it('broadcasts once across ten sequential retries', () => { + const harness = createHarness(); + for (let i = 0; i < 10; i += 1) { + harness.settle(INTENT, 'allowed-confirmed'); + } + expect(harness.broadcastCount).toBe(1); + }); + + it('broadcasts once across ten workers sharing durable state', () => { + // Workers are separate harnesses, as separate processes would be, but they + // share the durable log. The log is what enforces the invariant, not the + // worker. + const log = new AttemptLog(); + const provider = createProvider(); + const workers = Array.from({ length: 10 }, () => createHarness({ log, provider })); + + for (const worker of workers) { + worker.settle(INTENT, 'allowed-confirmed'); + } + + expect(provider.broadcastCount).toBe(1); + expect(log.size).toBe(1); + }); + + it('does not collapse genuinely different intents', () => { + const harness = createHarness(); + harness.settle(intentWithId('intent-a'), 'allowed-confirmed'); + harness.settle(intentWithId('intent-b'), 'allowed-confirmed'); + expect(harness.broadcastCount).toBe(2); + }); + + it('does not grant a fresh submission right after an ambiguous outcome', () => { + // The dangerous retry: the first attempt may have paid. A blind retry here + // is precisely the double payment the product exists to prevent. + const harness = createHarness(); + harness.settle(INTENT, 'provider-timeout'); + const retry = harness.settle(INTENT, 'allowed-confirmed'); + + expect(retry.replayed).toBe(true); + expect(retry.submitted).toBe(false); + expect(harness.broadcastCount).toBe(1); + }); +}); + +describe('evidence sanitation', () => { + it('emits no secret-shaped content', () => { + const harness = createHarness(); + const { evidence } = harness.settle(INTENT, 'allowed-confirmed'); + expect(JSON.stringify(evidence)).not.toMatch(/-----BEGIN|Bearer\s/i); + }); + + it('serializes bigint values rather than throwing', () => { + const harness = createHarness(); + const { evidence } = harness.settle(INTENT, 'allowed-confirmed'); + expect(() => JSON.stringify(evidence)).not.toThrow(); + }); + + it('rejects an unknown scenario instead of defaulting to allowed', () => { + const harness = createHarness(); + expect(() => harness.settle(INTENT, 'not-a-scenario' as SettlementScenario)).toThrow( + /Unknown settlement scenario/, + ); + expect(harness.broadcastCount).toBe(0); + }); +}); diff --git a/packages/testkit-settlement/test/restart.test.ts b/packages/testkit-settlement/test/restart.test.ts new file mode 100644 index 0000000..f20b9db --- /dev/null +++ b/packages/testkit-settlement/test/restart.test.ts @@ -0,0 +1,135 @@ +import { rmSync } from 'node:fs'; +import { resolve } from 'node:path'; +import { afterEach, describe, expect, it } from 'vitest'; +import type { SettlementIntent } from '@oneshot/privy-adapter'; +import { createHarness } from '../src/harness.js'; +import { FileAttemptStore } from '../src/attempt-store.js'; +import { createProvider } from '../src/provider-simulator.js'; + +// Ignored runtime state, per B03.2. `tmp/` is gitignored. +// Anchored to this package so the suite writes runtime state in the same +// place whether it runs package-locally or from the workspace root. +const STATE_DIR = resolve(import.meta.dirname, '..', 'tmp/attempt-state'); +let counter = 0; + +function freshPath(): string { + counter += 1; + return `${STATE_DIR}/attempts-${String(counter)}.json`; +} + +afterEach(() => { + rmSync(STATE_DIR, { recursive: true, force: true }); +}); + +const INTENT: SettlementIntent = { + businessIntentId: '018f-restart-intent', + chainId: 5042002, + tokenContract: '0x3600000000000000000000000000000000000000', + recipient: '0x1111111111111111111111111111111111111111', + amountAtomic: 1_250_000n, +}; + +describe('durable attempt state survives a restart', () => { + it('persists the attempt to disk before the provider is called', () => { + const path = freshPath(); + const harness = createHarness({ log: new FileAttemptStore(path) }); + harness.settle(INTENT, 'allowed-confirmed'); + + // A brand-new store object, as a restarted process would build. + const afterRestart = new FileAttemptStore(path); + const recovered = afterRestart.get(INTENT.businessIntentId); + + expect(recovered).toBeDefined(); + expect(recovered?.submissionAttempted).toBe(true); + expect(recovered?.payloadFingerprint).toMatch(/^0x[0-9a-f]{64}$/); + }); + + it('does not grant a second submission right after a restart', () => { + // The failure this whole packet guards against: the process dies after a + // possible payment, comes back with no memory, and pays again. + const path = freshPath(); + const provider = createProvider(); + + const before = createHarness({ log: new FileAttemptStore(path), provider }); + before.settle(INTENT, 'allowed-confirmed'); + expect(provider.broadcastCount).toBe(1); + + // Simulate the restart: new store, new harness, same durable file. + const after = createHarness({ log: new FileAttemptStore(path), provider }); + const result = after.settle(INTENT, 'allowed-confirmed'); + + expect(result.replayed).toBe(true); + expect(result.submitted).toBe(false); + expect(provider.broadcastCount).toBe(1); + }); + + it('recovers an attempt whose outcome was never learned', () => { + // Crash during submission: the mark is on disk, the response never + // arrived. Recovery must see an attempt in flight, not a clean slate. + const path = freshPath(); + const provider = createProvider(); + + const before = createHarness({ log: new FileAttemptStore(path), provider }); + const timedOut = before.settle(INTENT, 'provider-timeout'); + expect(timedOut.classification.outcome).toBe('POSSIBLY_SUBMITTED'); + + const after = createHarness({ log: new FileAttemptStore(path), provider }); + const recovered = after.log.get(INTENT.businessIntentId); + + expect(recovered?.submissionAttempted).toBe(true); + expect(after.settle(INTENT, 'allowed-confirmed').submitted).toBe(false); + expect(provider.broadcastCount).toBe(1); + }); + + it('broadcasts once across ten restarted workers', () => { + const path = freshPath(); + const provider = createProvider(); + + for (let i = 0; i < 10; i += 1) { + const worker = createHarness({ log: new FileAttemptStore(path), provider }); + worker.settle(INTENT, 'allowed-confirmed'); + } + + expect(provider.broadcastCount).toBe(1); + expect(new FileAttemptStore(path).size).toBe(1); + }); + + it('still separates genuinely different intents across restarts', () => { + const path = freshPath(); + const provider = createProvider(); + + createHarness({ log: new FileAttemptStore(path), provider }).settle( + { ...INTENT, businessIntentId: 'intent-a' }, + 'allowed-confirmed', + ); + createHarness({ log: new FileAttemptStore(path), provider }).settle( + { ...INTENT, businessIntentId: 'intent-b' }, + 'allowed-confirmed', + ); + + expect(provider.broadcastCount).toBe(2); + expect(new FileAttemptStore(path).size).toBe(2); + }); +}); + +describe('store durability details', () => { + it('treats a missing state file as no attempts rather than crashing', () => { + const store = new FileAttemptStore(freshPath()); + expect(store.size).toBe(0); + expect(store.get('anything')).toBeUndefined(); + }); + + it('writes through on every record so nothing is buffered', () => { + // A buffered write would reopen the crash window the store exists to close. + const path = freshPath(); + const store = new FileAttemptStore(path); + store.recordOrGet({ + businessIntentId: 'x', + payloadFingerprint: '0x' + 'a'.repeat(64), + idempotencyKey: '0x' + 'a'.repeat(64), + referenceId: 'oneshot-x', + submissionAttempted: false, + }); + expect(new FileAttemptStore(path).get('x')).toBeDefined(); + }); +}); diff --git a/packages/testkit-settlement/tsconfig.build.json b/packages/testkit-settlement/tsconfig.build.json deleted file mode 100644 index 3d32a63..0000000 --- a/packages/testkit-settlement/tsconfig.build.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { - "rootDir": "src", - "outDir": "dist" - }, - "include": ["src"] -} diff --git a/packages/testkit-settlement/tsconfig.json b/packages/testkit-settlement/tsconfig.json index 671b59a..8c9aea7 100644 --- a/packages/testkit-settlement/tsconfig.json +++ b/packages/testkit-settlement/tsconfig.json @@ -1,25 +1,19 @@ { + "extends": "../../tsconfig.base.json", "compilerOptions": { - "target": "ES2023", - "lib": ["ES2023"], - "module": "NodeNext", - "moduleResolution": "NodeNext", - "types": ["node"], - "strict": true, - "noUncheckedIndexedAccess": true, - "exactOptionalPropertyTypes": true, - "noImplicitOverride": true, - "noFallthroughCasesInSwitch": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "isolatedModules": true, - "verbatimModuleSyntax": true, - "forceConsistentCasingInFileNames": true, - "skipLibCheck": true, - "declaration": true, - "sourceMap": false, "outDir": "dist", - "rootDir": "." + "rootDir": "src", + "tsBuildInfoFile": "dist/.tsbuildinfo" }, - "include": ["src", "test", "*.config.ts"] + "include": [ + "src/**/*.ts" + ], + "references": [ + { + "path": "../arc-adapter" + }, + { + "path": "../privy-adapter" + } + ] } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d1aba5f..176b3fd 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -83,6 +83,12 @@ importers: specifier: 12.1.0 version: 12.1.0(supports-color@7.2.0) + packages/arc-adapter: + dependencies: + viem: + specifier: 2.56.3 + version: 2.56.3(typescript@6.0.3) + packages/contracts: dependencies: ajv: @@ -98,6 +104,15 @@ importers: specifier: workspace:* version: link:../contracts + packages/privy-adapter: + dependencies: + '@oneshot/arc-adapter': + specifier: workspace:* + version: link:../arc-adapter + viem: + specifier: 2.56.3 + version: 2.56.3(typescript@6.0.3) + packages/reconciliation: {} packages/storage-postgres: @@ -122,8 +137,20 @@ importers: specifier: workspace:* version: link:../contracts + packages/testkit-settlement: + dependencies: + '@oneshot/arc-adapter': + specifier: workspace:* + version: link:../arc-adapter + '@oneshot/privy-adapter': + specifier: workspace:* + version: link:../privy-adapter + packages: + '@adraffy/ens-normalize@1.11.1': + resolution: {integrity: sha512-nhCBV3quEgesuf7c7KYfperqSS14T8bYuvJ8PcLJp6znkZpFc0AuW4qBtr8eKVyPPe/8RSr7sglCWPU5eaxwKQ==} + '@babel/code-frame@7.29.7': resolution: {integrity: sha512-Aup7aUOfpbAUg2ROOJN6Iw5f9DMBlzu0mIkm/malLQFN/YQgO48wCj0Kxa3sEHJvPVFg7siR+qRInwXd2qhQKw==} engines: {node: '>=6.9.0'} @@ -280,6 +307,18 @@ packages: '@emnapi/core': ^1.7.1 || ^2.0.0-alpha.4 '@emnapi/runtime': ^1.7.1 || ^2.0.0-alpha.4 + '@noble/ciphers@1.3.0': + resolution: {integrity: sha512-2I0gnIVPtfnMw9ee9h1dJG7tp81+8Ob3OJb3Mv37rx5L40/b0i7djjCVvGOVqc9AEIQyvyu1i6ypKdFw8R8gQw==} + engines: {node: ^14.21.3 || >=16} + + '@noble/curves@1.9.1': + resolution: {integrity: sha512-k11yZxZg+t+gWvBbIswW0yoJlu8cHOC7dhunwOzoWH/mXGBiYyR4YY6hAEK/3EUs4UpB8la1RfdRpeGsFHkWsA==} + engines: {node: ^14.21.3 || >=16} + + '@noble/hashes@1.8.0': + resolution: {integrity: sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A==} + engines: {node: ^14.21.3 || >=16} + '@oxc-project/runtime@0.115.0': resolution: {integrity: sha512-Rg8Wlt5dCbXhQnsXPrkOjL1DTSvXLgb2R/KYfnf1/K+R0k6UMLEmbQXPM+kwrWqSmWA2t0B1EtHy2/3zikQpvQ==} engines: {node: ^20.19.0 || >=22.12.0} @@ -419,6 +458,15 @@ packages: '@rolldown/pluginutils@1.0.0-rc.9': resolution: {integrity: sha512-w6oiRWgEBl04QkFZgmW+jnU1EC9b57Oihi2ot3HNWIQRqgHp5PnYDia5iZ5FF7rpa4EQdiqMDXjlqKGXBhsoXw==} + '@scure/base@1.2.6': + resolution: {integrity: sha512-g/nm5FgUa//MCj1gV09zTJTaM6KBAHqLN907YVQqf7zC49+DcO4B1so4ZX07Ef10Twr6nuqYEH9GEggFXA4Fmg==} + + '@scure/bip32@1.7.0': + resolution: {integrity: sha512-E4FFX/N3f4B80AKWp5dP6ow+flD1LQZo/w8UnLGYZO674jS6YnYeepycOOksv+vLPSpgN35wgKgy+ybfTb2SMw==} + + '@scure/bip39@1.6.0': + resolution: {integrity: sha512-+lF0BbLiJNwVlev4eKelw1WWLaiKXw7sSl8T6FvBlWkdX+94aGJ4o8XjUdlyhTCjd8c+B3KT3JfS8P0bLRNU6A==} + '@testcontainers/postgresql@12.1.0': resolution: {integrity: sha512-Pjf2VSVNirEPfz36nidyrVAnZvc2YhajOznY4VgyEsvfTd5qiMNOuPq96drREvxAUtXl5SFLX7vXj7sSq4aTcA==} @@ -552,6 +600,17 @@ packages: '@vitest/spy@5.0.0': resolution: {integrity: sha512-uy+luWBAPw9XfthoHi5AkfHUnuPYEESjl0p/r+meoBnU8bxg5GDQ3Ey8MjcJ6sqahkL4PFyrvfMJJBw7LbU06g==} + abitype@1.2.3: + resolution: {integrity: sha512-Ofer5QUnuUdTFsBRwARMoWKOH1ND5ehwYhJ3OJ/BQO+StkwQjHw0XyVh4vDttzHB7QOFhPHa/o413PJ82gU/Tg==} + peerDependencies: + typescript: '>=5.0.4' + zod: ^3.22.0 || ^4.0.0 + peerDependenciesMeta: + typescript: + optional: true + zod: + optional: true + abort-controller@3.0.0: resolution: {integrity: sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==} engines: {node: '>=6.5'} @@ -889,6 +948,9 @@ packages: resolution: {integrity: sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==} engines: {node: '>=6'} + eventemitter3@5.0.1: + resolution: {integrity: sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA==} + events-universal@1.0.1: resolution: {integrity: sha512-LUd5euvbMLpwOF8m6ivPCbhQeSiYVNb8Vs0fQ8QjXo0JTkEHpz8pxdQf0gStltaPpw0Cca8b39KxvK9cfKRiAw==} @@ -1073,6 +1135,11 @@ packages: isexe@2.0.0: resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==} + isows@1.0.7: + resolution: {integrity: sha512-I1fSfDCZL5P0v33sVqeTDSpcstAg/N+wF5HS033mogOVIp4B+oHC7oOCsA3axAbBSGTJ8QubbNmnIRN/h8U7hg==} + peerDependencies: + ws: '*' + jackspeak@3.4.3: resolution: {integrity: sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==} @@ -1270,6 +1337,14 @@ packages: resolution: {integrity: sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==} engines: {node: '>= 0.8.0'} + ox@0.14.44: + resolution: {integrity: sha512-O54qXXHEk4ySamMSyBpI0AeBegS5frxU6+LA6Jb9Sf6kMOxcTNaxYmwZfpOu22DIQsdKfgQxHq8EsAGaoBQScA==} + peerDependencies: + typescript: '>=5.4.0' + peerDependenciesMeta: + typescript: + optional: true + p-limit@3.1.0: resolution: {integrity: sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==} engines: {node: '>=10'} @@ -1672,6 +1747,14 @@ packages: util-deprecate@1.0.2: resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==} + viem@2.56.3: + resolution: {integrity: sha512-vUObq3GO7D3lz9gPNEE/xd5jIUnMbeVDWewh252o54pDEDlW4pDe6FEd/qTGL5RyK52cGHMM7kQ3wjxhilEvkQ==} + peerDependencies: + typescript: '>=5.0.4' + peerDependenciesMeta: + typescript: + optional: true + vite@8.0.0: resolution: {integrity: sha512-fPGaRNj9Zytaf8LEiBhY7Z6ijnFKdzU/+mL8EFBaKr7Vw1/FWcTBAMW0wLPJAGMPX38ZPVCVgLceWiEqeoqL2Q==} engines: {node: ^20.19.0 || >=22.12.0} @@ -1781,6 +1864,18 @@ packages: wrappy@1.0.2: resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==} + ws@8.21.0: + resolution: {integrity: sha512-Vsp28b7DRcimFQvrqu2Wek3z1iYxDCWqHYB8Qsnk/S4RfaCQzPGPyBNuVjJV3cd6UiKtUtp6sNM77gWvzcCH+g==} + engines: {node: '>=10.0.0'} + peerDependencies: + bufferutil: ^4.0.1 + utf-8-validate: '>=5.0.2' + peerDependenciesMeta: + bufferutil: + optional: true + utf-8-validate: + optional: true + xtend@4.0.2: resolution: {integrity: sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==} engines: {node: '>=0.4'} @@ -1812,6 +1907,8 @@ packages: snapshots: + '@adraffy/ens-normalize@1.11.1': {} + '@babel/code-frame@7.29.7': dependencies: '@babel/helper-validator-identifier': 7.29.7 @@ -1985,6 +2082,14 @@ snapshots: '@tybys/wasm-util': 0.10.3 optional: true + '@noble/ciphers@1.3.0': {} + + '@noble/curves@1.9.1': + dependencies: + '@noble/hashes': 1.8.0 + + '@noble/hashes@1.8.0': {} + '@oxc-project/runtime@0.115.0': {} '@oxc-project/types@0.115.0': {} @@ -2066,6 +2171,19 @@ snapshots: '@rolldown/pluginutils@1.0.0-rc.9': {} + '@scure/base@1.2.6': {} + + '@scure/bip32@1.7.0': + dependencies: + '@noble/curves': 1.9.1 + '@noble/hashes': 1.8.0 + '@scure/base': 1.2.6 + + '@scure/bip39@1.6.0': + dependencies: + '@noble/hashes': 1.8.0 + '@scure/base': 1.2.6 + '@testcontainers/postgresql@12.1.0(supports-color@7.2.0)': dependencies: testcontainers: 12.1.0(supports-color@7.2.0) @@ -2249,6 +2367,10 @@ snapshots: '@vitest/spy@5.0.0': {} + abitype@1.2.3(typescript@6.0.3): + optionalDependencies: + typescript: 6.0.3 + abort-controller@3.0.0: dependencies: event-target-shim: 5.0.1 @@ -2601,6 +2723,8 @@ snapshots: event-target-shim@5.0.1: {} + eventemitter3@5.0.1: {} + events-universal@1.0.1: dependencies: bare-events: 2.9.2 @@ -2793,6 +2917,10 @@ snapshots: isexe@2.0.0: {} + isows@1.0.7(ws@8.21.0): + dependencies: + ws: 8.21.0 + jackspeak@3.4.3: dependencies: '@isaacs/cliui': 8.0.2 @@ -2951,6 +3079,21 @@ snapshots: type-check: 0.4.0 word-wrap: 1.2.5 + ox@0.14.44(typescript@6.0.3): + dependencies: + '@adraffy/ens-normalize': 1.11.1 + '@noble/ciphers': 1.3.0 + '@noble/curves': 1.9.1 + '@noble/hashes': 1.8.0 + '@scure/bip32': 1.7.0 + '@scure/bip39': 1.6.0 + abitype: 1.2.3(typescript@6.0.3) + eventemitter3: 5.0.1 + optionalDependencies: + typescript: 6.0.3 + transitivePeerDependencies: + - zod + p-limit@3.1.0: dependencies: yocto-queue: 0.1.0 @@ -3408,6 +3551,23 @@ snapshots: util-deprecate@1.0.2: {} + viem@2.56.3(typescript@6.0.3): + dependencies: + '@noble/curves': 1.9.1 + '@noble/hashes': 1.8.0 + '@scure/bip32': 1.7.0 + '@scure/bip39': 1.6.0 + abitype: 1.2.3(typescript@6.0.3) + isows: 1.0.7(ws@8.21.0) + ox: 0.14.44(typescript@6.0.3) + ws: 8.21.0 + optionalDependencies: + typescript: 6.0.3 + transitivePeerDependencies: + - bufferutil + - utf-8-validate + - zod + vite@8.0.0(@emnapi/core@1.11.3)(@emnapi/runtime@1.11.3)(@types/node@24.13.3)(yaml@2.9.0): dependencies: '@oxc-project/runtime': 0.115.0 @@ -3470,6 +3630,8 @@ snapshots: wrappy@1.0.2: {} + ws@8.21.0: {} + xtend@4.0.2: {} y18n@5.0.8: {} diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 0a8c270..8f9e596 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -1,9 +1,6 @@ packages: - apps/* - packages/* - - '!packages/arc-adapter' - - '!packages/privy-adapter' - - '!packages/testkit-settlement' saveExact: true strictPeerDependencies: true diff --git a/tsconfig.json b/tsconfig.json index 47484e8..a8b660c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,12 +1,35 @@ { "files": [], "references": [ - { "path": "./packages/contracts" }, - { "path": "./packages/domain" }, - { "path": "./packages/reconciliation" }, - { "path": "./packages/storage-postgres" }, - { "path": "./packages/testkit-domain" }, - { "path": "./apps/api" }, - { "path": "./apps/worker" } + { + "path": "./packages/contracts" + }, + { + "path": "./packages/domain" + }, + { + "path": "./packages/reconciliation" + }, + { + "path": "./packages/storage-postgres" + }, + { + "path": "./packages/testkit-domain" + }, + { + "path": "./apps/api" + }, + { + "path": "./apps/worker" + }, + { + "path": "./packages/arc-adapter" + }, + { + "path": "./packages/privy-adapter" + }, + { + "path": "./packages/testkit-settlement" + } ] } diff --git a/vitest.config.ts b/vitest.config.ts index 6e2d417..e31cc5a 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -3,14 +3,7 @@ import { defineConfig } from 'vitest/config'; export default defineConfig({ test: { coverage: { enabled: false }, - exclude: [ - '**/*.integration.test.ts', - '**/node_modules/**', - '**/dist/**', - 'packages/arc-adapter/**', - 'packages/privy-adapter/**', - 'packages/testkit-settlement/**', - ], + exclude: ['**/*.integration.test.ts', '**/node_modules/**', '**/dist/**'], include: ['{apps,packages}/**/*.{test,spec}.{ts,mjs}'], }, });