diff --git a/docs/skills/validation/SKILL.md b/docs/skills/validation/SKILL.md index a8dba1347..824876bf8 100644 --- a/docs/skills/validation/SKILL.md +++ b/docs/skills/validation/SKILL.md @@ -37,7 +37,16 @@ Do not run the full application suite for documentation-only changes. 8. For live-data cache updates, keep the cached file path list identical in order and content across `update-content.yml` (restore and save), `deploy.yml` (restore), and `preview.yml` (restore). 9. When modifying a Vue component under `src/components/`, check `src/tests/` for existing component unit tests and keep test assertions aligned with the runtime contract. 10. For CI concurrency changes, keep pull-request runs grouped by PR and non-PR runs unique; `scripts/tests/workflow-concurrency.test.ts` checks cancellation and group isolation. Assert the parsed YAML expressions directly instead of executing them as JavaScript. -11. Renovate's npm pin (`constraints.npm` in `renovate.json`) must match the npm CI runs, which is the one bundled with Node (`node-version: '26'` → npm 11). With npm 12, Renovate's lock-file updates failed (#1009, `EALLOWREMOTE`). Renovate doesn't offer updates to the pin, so a Node major PR that brings a newer npm fails `scripts/tests/npm-constraint.test.ts` with the exact value to set. Fix it by raising `constraints.npm` in that same PR, not by editing or skipping the test. +11. For an ESLint or `@antfu/eslint-config` upgrade, move both packages in one + change (each major of the config pins the ESLint major it accepts), and + check that `npm run lint:fix` changed only layout: compare each touched + file with all whitespace stripped against `HEAD`. Turn off a new rule + whose auto-fix rewrites code (for example `e18e/prefer-object-has-own`, + which needs a newer `lib` than `tsconfig.json` sets) instead of letting + the reformat carry it. Lore bodies render Markdown heading markers as + literal text, so a `markdown/heading-increment` fix changes what the + audience reads; keep it to the marker itself. +12. Renovate's npm pin (`constraints.npm` in `renovate.json`) must match the npm CI runs, which is the one bundled with Node (`node-version: '26'` → npm 11). With npm 12, Renovate's lock-file updates failed (#1009, `EALLOWREMOTE`). Renovate doesn't offer updates to the pin, so a Node major PR that brings a newer npm fails `scripts/tests/npm-constraint.test.ts` with the exact value to set. Fix it by raising `constraints.npm` in that same PR, not by editing or skipping the test. Documentation-only check: diff --git a/eslint.config.js b/eslint.config.js index 3f7793ae4..4650b967a 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -21,12 +21,29 @@ export default antfu({ yaml: false, markdown: true, rules: { - 'no-console': ['error', { - allow: ['info', 'warn', 'trace', 'error', 'group', 'groupEnd'], - }], + 'no-console': [ + 'error', + { + allow: [ + 'info', + 'warn', + 'trace', + 'error', + 'group', + 'groupEnd' + ], + } + ], 'style/comma-dangle': 'off', 'curly': ['error', 'all'], 'node/prefer-global/process': ['error', 'always'], + // @antfu/eslint-config v10 adds these e18e rules with auto-fixes that + // change code, not just layout. Object.hasOwn is outside the ES2020 `lib` + // in tsconfig.json, and `Array.from({ length }).fill(x)` widens the + // result to unknown[]. Keep them off so the v10 upgrade stays + // behaviour-neutral; enable them deliberately in a separate change. + 'e18e/prefer-array-fill': 'off', + 'e18e/prefer-object-has-own': 'off', }, formatters: { /** diff --git a/package-lock.json b/package-lock.json index 660ca897b..71a829327 100644 --- a/package-lock.json +++ b/package-lock.json @@ -28,7 +28,7 @@ "vue-i18n": "^11.0.1" }, "devDependencies": { - "@antfu/eslint-config": "6.7.3", + "@antfu/eslint-config": "10.0.0", "@tailwindcss/vite": "4.3.2", "@types/node": "26.6.6", "@types/qrcode": "1.5.6", @@ -37,7 +37,7 @@ "@vitest/coverage-v8": "5.1.0", "@vue/test-utils": "2.6.0", "@xmldom/xmldom": "0.9.12", - "eslint": "9.39.5", + "eslint": "10.15.0", "eslint-plugin-format": "2.0.1", "happy-dom": "21.0.4", "playwright": "1.65.1", @@ -50,48 +50,48 @@ } }, "node_modules/@antfu/eslint-config": { - "version": "6.7.3", - "resolved": "https://registry.npmjs.org/@antfu/eslint-config/-/eslint-config-6.7.3.tgz", - "integrity": "sha512-0tYYzY59uLnxWgbP9xpuxpvodTcWDacj439kTAJZB3sn7O0BnPfVxTnRvleGYaKCEALBZkzdC/wCho9FD7ICLw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@antfu/install-pkg": "^1.1.0", - "@clack/prompts": "^0.11.0", - "@eslint-community/eslint-plugin-eslint-comments": "^4.5.0", - "@eslint/markdown": "^7.5.1", - "@stylistic/eslint-plugin": "^5.6.1", - "@typescript-eslint/eslint-plugin": "^8.50.0", - "@typescript-eslint/parser": "^8.50.0", - "@vitest/eslint-plugin": "^1.5.4", - "ansis": "^4.2.0", - "cac": "^6.7.14", - "eslint-config-flat-gitignore": "^2.1.0", - "eslint-flat-config-utils": "^2.1.4", + "version": "10.0.0", + "resolved": "https://registry.npmjs.org/@antfu/eslint-config/-/eslint-config-10.0.0.tgz", + "integrity": "sha512-SwFOW3AHjzUAhWn56bycanHEeSV2LLkVvMLY14hoFNi5zYqfwf92mWj0wX/8p24iR8IwvRmsNwxMTXQZMcOsHQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@antfu/install-pkg": "^2.1.0", + "@clack/prompts": "^1.8.1", + "@e18e/eslint-plugin": "^0.8.1", + "@eslint-community/eslint-plugin-eslint-comments": "^4.8.1", + "@eslint/markdown": "^8.0.3", + "@stylistic/eslint-plugin": "^5.10.0", + "@typescript-eslint/eslint-plugin": "^8.72.0", + "@typescript-eslint/parser": "^8.72.0", + "@vitest/eslint-plugin": "^1.6.28", + "ansis": "^4.4.0", + "cac": "^7.1.0", + "eslint-config-flat-gitignore": "^2.4.0", + "eslint-flat-config-utils": "^3.2.0", "eslint-merge-processors": "^2.0.0", - "eslint-plugin-antfu": "^3.1.1", - "eslint-plugin-command": "^3.4.0", - "eslint-plugin-import-lite": "^0.4.0", - "eslint-plugin-jsdoc": "^61.5.0", - "eslint-plugin-jsonc": "^2.21.0", - "eslint-plugin-n": "^17.23.1", - "eslint-plugin-no-only-tests": "^3.3.0", - "eslint-plugin-perfectionist": "^4.15.1", - "eslint-plugin-pnpm": "^1.4.3", - "eslint-plugin-regexp": "^2.10.0", - "eslint-plugin-toml": "^0.12.0", - "eslint-plugin-unicorn": "^62.0.0", - "eslint-plugin-unused-imports": "^4.3.0", - "eslint-plugin-vue": "^10.6.2", - "eslint-plugin-yml": "^1.19.1", + "eslint-plugin-antfu": "^3.3.1", + "eslint-plugin-command": "^4.0.0", + "eslint-plugin-import-lite": "^0.6.0", + "eslint-plugin-jsdoc": "^65.4.1", + "eslint-plugin-jsonc": "^3.4.2", + "eslint-plugin-n": "^18.5.0", + "eslint-plugin-no-only-tests": "^3.4.0", + "eslint-plugin-perfectionist": "^5.13.0", + "eslint-plugin-pnpm": "^1.9.1", + "eslint-plugin-regexp": "^3.3.1", + "eslint-plugin-toml": "^1.5.0", + "eslint-plugin-unicorn": "^78.0.0", + "eslint-plugin-unused-imports": "^4.4.1", + "eslint-plugin-vue": "^10.11.1", + "eslint-plugin-yml": "^3.9.0", "eslint-processor-vue-blocks": "^2.0.0", - "globals": "^16.5.0", - "jsonc-eslint-parser": "^2.4.2", - "local-pkg": "^1.1.2", + "globals": "^17.13.0", + "local-pkg": "^1.2.1", "parse-gitignore": "^2.0.0", - "toml-eslint-parser": "^0.10.1", - "vue-eslint-parser": "^10.2.0", - "yaml-eslint-parser": "^1.3.2" + "toml-eslint-parser": "^1.0.3", + "vue-eslint-parser": "^10.4.1", + "yaml-eslint-parser": "^2.1.0" }, "bin": { "eslint-config": "bin/index.mjs" @@ -100,18 +100,23 @@ "url": "https://github.com/sponsors/antfu" }, "peerDependencies": { - "@eslint-react/eslint-plugin": "^2.0.1", + "@angular-eslint/eslint-plugin": "^21.1.0", + "@angular-eslint/eslint-plugin-template": "^21.1.0", + "@angular-eslint/template-parser": "^21.1.0", + "@eslint-react/eslint-plugin": "^5.6.0", "@next/eslint-plugin-next": ">=15.0.0", "@prettier/plugin-xml": "^3.4.1", "@unocss/eslint-plugin": ">=0.50.0", - "astro-eslint-parser": "^1.0.2", - "eslint": "^9.10.0", - "eslint-plugin-astro": "^1.2.0", + "astro-eslint-parser": ">=1.0.2", + "eslint": "^9.10.0 || ^10.0.0", + "eslint-plugin-astro": ">=1.2.0", + "eslint-plugin-erasable-syntax-only": "^0.7.1", "eslint-plugin-format": ">=0.1.0", "eslint-plugin-jsx-a11y": ">=6.10.2", - "eslint-plugin-react-hooks": "^7.0.0", - "eslint-plugin-react-refresh": "^0.4.19", - "eslint-plugin-solid": "^0.14.3", + "eslint-plugin-react-refresh": "^0.5.0", + "eslint-plugin-slop": ">=0.1.1", + "eslint-plugin-solid": "^0.17.0", + "eslint-plugin-sonarjs": ">=4.0.0", "eslint-plugin-svelte": ">=2.35.1", "eslint-plugin-vuejs-accessibility": "^2.4.1", "prettier-plugin-astro": "^0.14.0", @@ -119,6 +124,15 @@ "svelte-eslint-parser": ">=0.37.0" }, "peerDependenciesMeta": { + "@angular-eslint/eslint-plugin": { + "optional": true + }, + "@angular-eslint/eslint-plugin-template": { + "optional": true + }, + "@angular-eslint/template-parser": { + "optional": true + }, "@eslint-react/eslint-plugin": { "optional": true }, @@ -137,21 +151,27 @@ "eslint-plugin-astro": { "optional": true }, + "eslint-plugin-erasable-syntax-only": { + "optional": true + }, "eslint-plugin-format": { "optional": true }, "eslint-plugin-jsx-a11y": { "optional": true }, - "eslint-plugin-react-hooks": { + "eslint-plugin-react-refresh": { "optional": true }, - "eslint-plugin-react-refresh": { + "eslint-plugin-slop": { "optional": true }, "eslint-plugin-solid": { "optional": true }, + "eslint-plugin-sonarjs": { + "optional": true + }, "eslint-plugin-svelte": { "optional": true }, @@ -169,145 +189,28 @@ } } }, - "node_modules/@antfu/eslint-config/node_modules/@typescript-eslint/project-service": { - "version": "8.72.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.72.0.tgz", - "integrity": "sha512-bzHngBbmIgzj6TsTjVUCntGx6FFLgE7mPjpO0PzHycOaZHXqS43XnrkFIHRS16LLr/xO6FHSXG3GJFo/F4bSBQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/tsconfig-utils": "^8.72.0", - "@typescript-eslint/types": "^8.72.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/@antfu/eslint-config/node_modules/@typescript-eslint/scope-manager": { - "version": "8.72.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.72.0.tgz", - "integrity": "sha512-JewPyJOYcXBSAS7PIgufscHOwZqhTGyBRiQJhhuDln66tMchxvvt7nJ90JKKIoOelmdHA3kAQbm9cEUHc4JSEA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/types": "8.72.0", - "@typescript-eslint/visitor-keys": "8.72.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@antfu/eslint-config/node_modules/@typescript-eslint/tsconfig-utils": { - "version": "8.72.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.72.0.tgz", - "integrity": "sha512-0vbxCf7xLVPSjcOdm6eQbgViH8EDJ8xnl1laLT9yoqSz2YmcSfSg5Vdl0JUvZf6rcuJ0ZivJIuMD4edTg8obaA==", - "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/@antfu/eslint-config/node_modules/@typescript-eslint/types": { - "version": "8.72.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.72.0.tgz", - "integrity": "sha512-Adfoy59kxNEjT5E5fnyrp7GpHYuWs8ONbdohu4ez6IU46qDq8LltG90tLmkucZB2uhYL8mqBjtXqGd8yhfjXqQ==", - "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/@antfu/eslint-config/node_modules/@typescript-eslint/typescript-estree": { - "version": "8.72.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.72.0.tgz", - "integrity": "sha512-gwLfFgWcw15tN2KXDCJvxEOQjPn+P3j/n3eSqkZ5sX4VpW9Cosodr+tWwBZRvJT3TcKx6HnPRGZMCNAiP1Xhug==", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/project-service": "8.72.0", - "@typescript-eslint/tsconfig-utils": "8.72.0", - "@typescript-eslint/types": "8.72.0", - "@typescript-eslint/visitor-keys": "8.72.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/@antfu/eslint-config/node_modules/@typescript-eslint/utils": { - "version": "8.72.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.72.0.tgz", - "integrity": "sha512-0up3oArJZBYnzOaEXKo8DmI43QvMZyPoFEt9LWzRJcyl/RcJjfKKPebknN1VbTgXBf3M/KggUh5uUMdURLnseg==", + "node_modules/@antfu/eslint-config/node_modules/@e18e/eslint-plugin": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/@e18e/eslint-plugin/-/eslint-plugin-0.8.1.tgz", + "integrity": "sha512-OV3T7l0r52/IglskdAuoO+BJyzsCs7AcIHpwpBMlIMO0+3RHskM2h5MuHdLuesIhSRhwCURGMKtp/XwnfXrfxg==", "dev": true, "license": "MIT", "dependencies": { - "@eslint-community/eslint-utils": "^4.9.1", - "@typescript-eslint/scope-manager": "8.72.0", - "@typescript-eslint/types": "8.72.0", - "@typescript-eslint/typescript-estree": "8.72.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" + "empathic": "^2.0.1", + "module-replacements": "^3.3.0", + "verkit": "^0.4.0" }, "peerDependencies": { - "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", - "typescript": ">=4.8.4 <6.1.0" - } - }, - "node_modules/@antfu/eslint-config/node_modules/@typescript-eslint/visitor-keys": { - "version": "8.72.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.72.0.tgz", - "integrity": "sha512-E2mroviasaWecDzTGiGMtuEguuLVOeRggnrIn93CJuxYJzQBHbyymlT08aVQydbBal5538o+JkBKXh2sRuCyIA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/types": "8.72.0", - "eslint-visitor-keys": "^5.0.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + "eslint": "^9.0.0 || ^10.0.0", + "oxlint": "^1.72.0" }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" + "peerDependenciesMeta": { + "eslint": { + "optional": true + }, + "oxlint": { + "optional": true + } } }, "node_modules/@antfu/eslint-config/node_modules/@vitest/eslint-plugin": { @@ -341,43 +244,28 @@ } } }, - "node_modules/@antfu/eslint-config/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==", + "node_modules/@antfu/eslint-config/node_modules/verkit": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/verkit/-/verkit-0.4.1.tgz", + "integrity": "sha512-mMVzj0TXExtVdlDEq+Mzp0eyOuyznNpFobNM3uAqe3HVm/Ps2c+u17BligMkZjZCA6EiXpoon8iRTer3iu40SQ==", "dev": true, - "license": "Apache-2.0", + "license": "MIT", "engines": { - "node": "^20.19.0 || ^22.13.0 || >=24" + "node": ">=18.12.0" }, "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/@antfu/eslint-config/node_modules/typescript": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-6.0.3.tgz", - "integrity": "sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==", - "dev": true, - "license": "Apache-2.0", - "peer": true, - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=14.17" + "url": "https://github.com/sponsors/sxzz" } }, "node_modules/@antfu/install-pkg": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@antfu/install-pkg/-/install-pkg-1.1.0.tgz", - "integrity": "sha512-MGQsmw10ZyI+EJo45CdSER4zEb+p31LpDAFp2Z3gkSd1yqVZGi0Ebx++YTEMonJy4oChEMLsxZ64j8FH6sSqtQ==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@antfu/install-pkg/-/install-pkg-2.1.0.tgz", + "integrity": "sha512-sdg9NxU3zR4Mnawfbc/x6GB5Wf17WYud5qOuEuxXjaKpYpMkISSJEjItGebXJ2bQ4DIcly4NYH23mtkGJjvKUw==", "dev": true, "license": "MIT", "dependencies": { - "package-manager-detector": "^1.3.0", - "tinyexec": "^1.0.1" + "package-manager-detector": "^1.8.0", + "tinyexec": "^1.3.1" }, "funding": { "url": "https://github.com/sponsors/antfu" @@ -439,27 +327,59 @@ "node": ">=18" } }, + "node_modules/@cacheable/memory": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@cacheable/memory/-/memory-2.2.0.tgz", + "integrity": "sha512-CTLKqLItRCEixEAewD3/j9DB3/o96gpTPD4eJ1v+DGOlxZRZncRQkGYqqnAGCscYd6RNeXfGeiuCphsPtqyIfQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@cacheable/utils": "^2.5.0", + "@keyv/bigmap": "^1.3.1", + "hookified": "^1.15.1", + "keyv": "^5.6.0" + } + }, + "node_modules/@cacheable/utils": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/@cacheable/utils/-/utils-2.5.0.tgz", + "integrity": "sha512-buipgOVDkkPXNR5+xBpDw7Zk2n1EvU7qBJCNUcL7rhQ//kfpOXPAvQ511Os0vpLYJ1pZnvudNytkQt2hst3wqA==", + "dev": true, + "license": "MIT", + "dependencies": { + "hashery": "^1.5.1", + "keyv": "^5.6.0" + } + }, "node_modules/@clack/core": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/@clack/core/-/core-0.5.0.tgz", - "integrity": "sha512-p3y0FIOwaYRUPRcMO7+dlmLh8PSRcrjuTndsiA0WAFbWES0mLZlrjVoBRZ9DzkPFJZG6KGkJmoEAY0ZcVWTkow==", + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@clack/core/-/core-1.6.0.tgz", + "integrity": "sha512-4GZynIB2IIe431odxesswvWTCP6orvqd6e2b07b3VFWBQRqUqIHc/EPIZwFoKS692QBp+ooPuXKaJV8g4kXuYA==", "dev": true, "license": "MIT", "dependencies": { - "picocolors": "^1.0.0", - "sisteransi": "^1.0.5" + "fast-string-width": "^3.0.2", + "fast-wrap-ansi": "^0.2.0", + "sisteransi": "^2.0.0" + }, + "engines": { + "node": ">= 20.12.0" } }, "node_modules/@clack/prompts": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/@clack/prompts/-/prompts-0.11.0.tgz", - "integrity": "sha512-pMN5FcrEw9hUkZA4f+zLlzivQSeQf5dRGJjSUbvVYDLvpKCdQx5OaknvKzgbtXOizhP+SJJJjqEbOe55uKKfAw==", + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@clack/prompts/-/prompts-1.9.0.tgz", + "integrity": "sha512-tEj8X2No2A1c9NDnZECxiiJ8TP3vmFlN9tLlLeSaMqVW4tUmVG2R4qpv/eP4zymWxnymYLkLcIYVV0VcWj3RCQ==", "dev": true, "license": "MIT", "dependencies": { - "@clack/core": "0.5.0", - "picocolors": "^1.0.0", - "sisteransi": "^1.0.5" + "@clack/core": "1.6.0", + "fast-string-width": "^3.0.2", + "fast-wrap-ansi": "^0.2.0", + "sisteransi": "^2.0.0" + }, + "engines": { + "node": ">= 20.12.0" } }, "node_modules/@cloudflare/kv-asset-handler": { @@ -652,21 +572,109 @@ "tslib": "^2.4.0" } }, + "node_modules/@es-joy/escodegen": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/@es-joy/escodegen/-/escodegen-5.0.1.tgz", + "integrity": "sha512-0sOnDSVMt7Zg5qmXz4ab1yOXrUi0QmSPqpm5d547puNdJxT0J+Xdip2F/5j07nuE1pW131AX5jFUvOIfZPYNRg==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "@es-joy/estraverse": "^7.1.1", + "@es-joy/esutils": "^3.0.0", + "@es-joy/jsdoccomment": "^1.1.0", + "@types/estree": "^1.0.10", + "esprima": "^4.0.1", + "optionator": "^0.9.4" + }, + "bin": { + "escodegen": "bin/escodegen.js", + "esgenerate": "bin/esgenerate.js" + }, + "engines": { + "node": "^22.16.0 || >=24.0.0" + }, + "optionalDependencies": { + "source-map": "~0.8.0" + } + }, + "node_modules/@es-joy/escodegen/node_modules/@es-joy/jsdoccomment": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@es-joy/jsdoccomment/-/jsdoccomment-1.2.0.tgz", + "integrity": "sha512-EcF8gDd175MRIYEt7ktoe9AUijBba3SSSvnGJ96HQaK1BxjVK8l1QdksVEAY34Lp0byn51FnTszlVMYmD5TI/w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/estree": "^1.0.10", + "@typescript-eslint/types": "^8.72.2", + "comment-parser": "1.4.9", + "esquery": "^1.7.0", + "jsdoc-type-pratt-parser": "~9.5.0" + }, + "engines": { + "node": "^22.22.2 || >=24.15.0" + } + }, + "node_modules/@es-joy/escodegen/node_modules/comment-parser": { + "version": "1.4.9", + "resolved": "https://registry.npmjs.org/comment-parser/-/comment-parser-1.4.9.tgz", + "integrity": "sha512-+2AvZKjJaNq9GQljm3tr0utwrig5BL+jgJGvz5rDpGKNIp+ojcRXWUwBbh/sGIi1QCprR6PsKFakub+w1v+4hQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 12.0.0" + } + }, + "node_modules/@es-joy/escodegen/node_modules/jsdoc-type-pratt-parser": { + "version": "9.5.0", + "resolved": "https://registry.npmjs.org/jsdoc-type-pratt-parser/-/jsdoc-type-pratt-parser-9.5.0.tgz", + "integrity": "sha512-Qu/AuBJocEUhxq187P4Ud7xGBHB+NhtrclSrS7Utkr6uNeeh8BrZ5+Ax/AGe8VXQLGY+4oYgbUp04hY8iGsIWA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/estree": "^1.0.9" + }, + "engines": { + "node": "^22.22.2 || >=24.15.0" + } + }, + "node_modules/@es-joy/estraverse": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/@es-joy/estraverse/-/estraverse-7.1.1.tgz", + "integrity": "sha512-h2d737iS0LFAqypZOmXizu54qAbHofI/RpD30Zom03O6BCXKHuFevWKPcGarZbGq82h7qSBb5G6kLdhTMO+caw==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=4.0" + } + }, + "node_modules/@es-joy/esutils": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@es-joy/esutils/-/esutils-3.0.0.tgz", + "integrity": "sha512-K8M2b2ixqOiF5B+qYJIWIznFtvbD8biX2mj31pXmXAaTRUUd2x6anAFZk4GVGXz7sX9tOkx+z6TaQc/paeVCeg==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "@types/estree": "^1.0.9" + }, + "engines": { + "node": "^22.16.0 || >=24.0.0" + } + }, "node_modules/@es-joy/jsdoccomment": { - "version": "0.84.0", - "resolved": "https://registry.npmjs.org/@es-joy/jsdoccomment/-/jsdoccomment-0.84.0.tgz", - "integrity": "sha512-0xew1CxOam0gV5OMjh2KjFQZsKL2bByX1+q4j3E73MpYIdyUxcZb/xQct9ccUb+ve5KGUYbCUxyPnYB7RbuP+w==", + "version": "0.92.0", + "resolved": "https://registry.npmjs.org/@es-joy/jsdoccomment/-/jsdoccomment-0.92.0.tgz", + "integrity": "sha512-WivZqV5jPTYDQJgIMp0hTsyQESKYNY6yCJr4b0l84tYtQntkAMkc6zARh2vlRQyeg4aYHPUkCUDpvr2IWAiGpQ==", "dev": true, "license": "MIT", "dependencies": { - "@types/estree": "^1.0.8", - "@typescript-eslint/types": "^8.54.0", - "comment-parser": "1.4.5", + "@types/estree": "^1.0.9", + "@typescript-eslint/types": "^8.65.0", + "comment-parser": "1.4.7", "esquery": "^1.7.0", - "jsdoc-type-pratt-parser": "~7.1.1" + "jsdoc-type-pratt-parser": "~9.0.0" }, "engines": { - "node": "^20.19.0 || ^22.13.0 || >=24" + "node": "^22.22.2 || >=24.15.0" } }, "node_modules/@es-joy/resolve.exports": { @@ -1122,9 +1130,9 @@ } }, "node_modules/@eslint-community/eslint-plugin-eslint-comments": { - "version": "4.6.0", - "resolved": "https://registry.npmjs.org/@eslint-community/eslint-plugin-eslint-comments/-/eslint-plugin-eslint-comments-4.6.0.tgz", - "integrity": "sha512-2EX2bBQq1ez++xz2o9tEeEQkyvfieWgUFMH4rtJJri2q0Azvhja3hZGXsjPXs31R4fQkZDtWzNDDK2zQn5UE5g==", + "version": "4.8.1", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-plugin-eslint-comments/-/eslint-plugin-eslint-comments-4.8.1.tgz", + "integrity": "sha512-vafrdi15JHBFh1qWOAucyJwlEEuhdoMof28jOdKdgnwZ7bXwd6v4wzHYSmAVLwnx0yc7bqAtfJ0EZQV1WAzV/Q==", "dev": true, "license": "MIT", "dependencies": { @@ -1138,13 +1146,13 @@ "url": "https://opencollective.com/eslint" }, "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0" + "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0" } }, "node_modules/@eslint-community/eslint-utils": { - "version": "4.9.1", - "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.9.1.tgz", - "integrity": "sha512-phrYmNiYppR7znFEdqgfWHXR6NCkZEK7hwWDHZUjit/2/U0r6XvkDl0SYnoM51Hq7FhCGdLDT6zxCCOY1hexsQ==", + "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": { @@ -1184,13 +1192,13 @@ } }, "node_modules/@eslint/compat": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/@eslint/compat/-/compat-2.0.2.tgz", - "integrity": "sha512-pR1DoD0h3HfF675QZx0xsyrsU8q70Z/plx7880NOhS02NuWLgBCOMDL787nUeQ7EWLkxv3bPQJaarjcPQb2Dwg==", + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/@eslint/compat/-/compat-2.1.1.tgz", + "integrity": "sha512-rMcy8GSrwNzcISX/BlTDY/GLB4eCopEuy9woIls3To+15OLxykZrxxq+WUcylCPCQ6F4MujjBM1DX5V1aqI3Vw==", "dev": true, "license": "Apache-2.0", "dependencies": { - "@eslint/core": "^1.1.0" + "@eslint/core": "^1.2.1" }, "engines": { "node": "^20.19.0 || ^22.13.0 || >=24" @@ -1204,251 +1212,126 @@ } } }, - "node_modules/@eslint/compat/node_modules/@eslint/core": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@eslint/core/-/core-1.1.0.tgz", - "integrity": "sha512-/nr9K9wkr3P1EzFTdFdMoLuo1PmIxjmwvPozwoSodjNBdefGujXQUF93u1DDZpEaTuDvMsIQddsd35BwtrW9Xw==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@types/json-schema": "^7.0.15" - }, - "engines": { - "node": "^20.19.0 || ^22.13.0 || >=24" - } - }, "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==", + "version": "0.23.6", + "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.23.6.tgz", + "integrity": "sha512-WrTH7nioI9QPY4NZGnsywmecswJdgeq4BCM76qok9VgjTO29ZgUzUvcuJLVPYVQM4uDbaPBU0M33R9DIxI8X3w==", "dev": true, "license": "Apache-2.0", "dependencies": { - "@eslint/object-schema": "^2.1.7", + "@eslint/object-schema": "^3.0.5", "debug": "^4.3.1", - "minimatch": "^3.1.5" + "minimatch": "^11.0.5" }, "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@eslint/config-array/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/@eslint/config-array/node_modules/brace-expansion": { - "version": "1.1.21", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.21.tgz", - "integrity": "sha512-9zeA+KLZNNzglF2TPKRQEDyx6Yby7daAkuy8MiPzpXPsYDWi/DRM8jmwUDxokQjYqBpv5DgPiwD4h4ZZSy1Ujw==", - "dev": true, - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" + "node": "^20.19.0 || ^22.13.0 || >=24" } }, "node_modules/@eslint/config-array/node_modules/minimatch": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.5.tgz", - "integrity": "sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==", + "version": "11.0.9", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-11.0.9.tgz", + "integrity": "sha512-KCFkfyjqerNlSstjlhIGNXIKZGA/6O4V4RlhZ+Dsr621SPPw0mzlypE9D9ZOoPiVefHID+j7/XuMMlqfD/F60Q==", "dev": true, - "license": "ISC", + "license": "BlueOak-1.0.0", "dependencies": { - "brace-expansion": "^1.1.7" + "@isaacs/nonrecursive-glob-match": "^1.1.0", + "brace-expansion": "^5.0.12" }, "engines": { - "node": "*" + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, "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==", + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.7.0.tgz", + "integrity": "sha512-DObd/KKUsU+FaFv4PLxSRenpXfQWmPXXP3pPZ6/K1PCrMu2vQpMDMuQe/BqYeoLcz8ro0bVDF1RxOJgfVEdhUw==", "dev": true, "license": "Apache-2.0", "dependencies": { - "@eslint/core": "^0.17.0" + "@eslint/core": "^1.2.1" }, "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + "node": "^20.19.0 || ^22.13.0 || >=24" } }, "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==", + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@eslint/core/-/core-1.2.1.tgz", + "integrity": "sha512-MwcE1P+AZ4C6DWlpin/OmOA54mmIZ/+xZuJiQd4SyB29oAJjN30UW9wkKNptW2ctp4cEsvhlLY/CsQ1uoHDloQ==", "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": "^20.19.0 || ^22.13.0 || >=24" } }, - "node_modules/@eslint/eslintrc": { - "version": "3.3.7", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.7.tgz", - "integrity": "sha512-F42g89Qd5oAWtp0k0nnSrjziAKza7w8SVT4mStc18LZMaRb4J1HQAHLCalEtDCxrTuksx7NU9qsmeLwpOfPqWw==", + "node_modules/@eslint/css-tree": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/@eslint/css-tree/-/css-tree-4.1.3.tgz", + "integrity": "sha512-3WQJPt+KXGZ6H6ielW9EnKSJyIL0s2H2a6ILgdtj7w1vj0HOy7quWJ2ZAscVIVNT/Z49PqvqQ7qrWiDBpRUBeQ==", "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" + "mdn-data": "2.37.2", + "source-map-js": "^1.2.1" }, "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" + "node": "^20.19.0 || ^22.13.0 || >=24" } }, - "node_modules/@eslint/eslintrc/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/@eslint/eslintrc/node_modules/brace-expansion": { - "version": "1.1.21", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.21.tgz", - "integrity": "sha512-9zeA+KLZNNzglF2TPKRQEDyx6Yby7daAkuy8MiPzpXPsYDWi/DRM8jmwUDxokQjYqBpv5DgPiwD4h4ZZSy1Ujw==", + "node_modules/@eslint/markdown": { + "version": "8.0.3", + "resolved": "https://registry.npmjs.org/@eslint/markdown/-/markdown-8.0.3.tgz", + "integrity": "sha512-rBTSSShrq7e4O+PWfeE4azH4/CWPNrC+VGxBXiW00o3vYVJnznsZiDayj3KC9JztIMVRZxZHn2nrDIUau/4j7A==", "dev": true, "license": "MIT", + "workspaces": [ + "examples/*" + ], "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/@eslint/eslintrc/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/@eslint/eslintrc/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/@eslint/eslintrc/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/@eslint/eslintrc/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/@eslint/js": { - "version": "9.39.5", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.39.5.tgz", - "integrity": "sha512-QywQuszQh77pIXCsq998c8hbhSTI/azTty1Z6N53dmAudKHhy573j3yvRLsX2BSp8YpLtoCEG8E9DJe+8zUh4A==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://eslint.org/donate" - } - }, - "node_modules/@eslint/markdown": { - "version": "7.5.1", - "resolved": "https://registry.npmjs.org/@eslint/markdown/-/markdown-7.5.1.tgz", - "integrity": "sha512-R8uZemG9dKTbru/DQRPblbJyXpObwKzo8rv1KYGGuPUPtjM4LXBYM9q5CIZAComzZupws3tWbDwam5AFpPLyJQ==", - "dev": true, - "license": "MIT", - "workspaces": [ - "examples/*" - ], - "dependencies": { - "@eslint/core": "^0.17.0", - "@eslint/plugin-kit": "^0.4.1", + "@eslint/core": "^1.2.1", + "@eslint/plugin-kit": "^0.7.2", "github-slugger": "^2.0.0", "mdast-util-from-markdown": "^2.0.2", "mdast-util-frontmatter": "^2.0.1", "mdast-util-gfm": "^3.1.0", + "mdast-util-math": "^3.0.0", "micromark-extension-frontmatter": "^2.0.0", "micromark-extension-gfm": "^3.0.0", + "micromark-extension-math": "^3.1.0", "micromark-util-normalize-identifier": "^2.0.1" }, "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + "node": "^20.19.0 || ^22.13.0 || >=24" } }, "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==", + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-3.0.5.tgz", + "integrity": "sha512-vqTaUEgxzm+YDSdElad6PiRoX4t8VGDjCtt05zn4nU810UIx/uNEV7/lZJ6KwFThKZOzOxzXy48da+No7HZaMw==", "dev": true, "license": "Apache-2.0", "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + "node": "^20.19.0 || ^22.13.0 || >=24" } }, "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==", + "version": "0.7.3", + "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.7.3.tgz", + "integrity": "sha512-IkO+/KEUvwbVpiURZg+P7zF74z5Jxe0UgJxVni+RtoHQ6IZieXaO02kmadomap/q+l6bc/jdPGGqTjhuZnuz1Q==", "dev": true, "license": "Apache-2.0", "dependencies": { - "@eslint/core": "^0.17.0", + "@eslint/core": "^1.2.1", "levn": "^0.4.1" }, "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + "node": "^20.19.0 || ^22.13.0 || >=24" } }, "node_modules/@fontsource/michroma": { @@ -2191,14 +2074,14 @@ } }, "node_modules/@intlify/core-base": { - "version": "11.4.20", - "resolved": "https://registry.npmjs.org/@intlify/core-base/-/core-base-11.4.20.tgz", - "integrity": "sha512-i3/0mXXMAjK8SLX/t1l+sG3SIzghYSM2rLnHfMLHqUlKa/ysuwqSkGLU4UQem+SkeAge+5ol5mCMspKIhWfMrg==", + "version": "11.4.22", + "resolved": "https://registry.npmjs.org/@intlify/core-base/-/core-base-11.4.22.tgz", + "integrity": "sha512-qEdP+gpuppvC2oKjVr8yZso1E7CuIvArQViule5b6n27ZAQb1QJ7LdiWI7mosMBxNCIobJXw6KBgQWvX7CmHVg==", "license": "MIT", "dependencies": { - "@intlify/devtools-types": "11.4.20", - "@intlify/message-compiler": "11.4.20", - "@intlify/shared": "11.4.20" + "@intlify/devtools-types": "11.4.22", + "@intlify/message-compiler": "11.4.22", + "@intlify/shared": "11.4.22" }, "engines": { "node": ">= 22" @@ -2208,13 +2091,13 @@ } }, "node_modules/@intlify/devtools-types": { - "version": "11.4.20", - "resolved": "https://registry.npmjs.org/@intlify/devtools-types/-/devtools-types-11.4.20.tgz", - "integrity": "sha512-8U2tY0MaWqI47pzSTUuFCFxIvBa6uWguW++4ftjdE7lWaRIKEhAFRDGKKNd5lw8wurerJ0URuZpxifHCduLQ6A==", + "version": "11.4.22", + "resolved": "https://registry.npmjs.org/@intlify/devtools-types/-/devtools-types-11.4.22.tgz", + "integrity": "sha512-zRzElvuCD+j8Sv+LQBf1X8Ve7G61gQUw4WwHDbrxoY1+3FrnRZ1kMgWKGDNyG/qMntwa31h+bQZ3sRTkCqrgMQ==", "license": "MIT", "dependencies": { - "@intlify/core-base": "11.4.20", - "@intlify/shared": "11.4.20" + "@intlify/core-base": "11.4.22", + "@intlify/shared": "11.4.22" }, "engines": { "node": ">= 22" @@ -2224,12 +2107,12 @@ } }, "node_modules/@intlify/message-compiler": { - "version": "11.4.20", - "resolved": "https://registry.npmjs.org/@intlify/message-compiler/-/message-compiler-11.4.20.tgz", - "integrity": "sha512-0pwXAYOG+jGkAJ+H/TPsfeqnHiEqYU99fXN5vlSYdknuBPjo8NEqi0L5WFgmqOnwSPtmIOoi84BDYhrligDcoA==", + "version": "11.4.22", + "resolved": "https://registry.npmjs.org/@intlify/message-compiler/-/message-compiler-11.4.22.tgz", + "integrity": "sha512-X3ButMf+8TvO8kks3xA17tglGeiFLwA2S3TkxHxurRLpz8NpDlN2t9pjHdImKtmjruB6B9I+WgkDWz00zDYkTw==", "license": "MIT", "dependencies": { - "@intlify/shared": "11.4.20", + "@intlify/shared": "11.4.22", "source-map-js": "^1.0.2" }, "engines": { @@ -2240,9 +2123,9 @@ } }, "node_modules/@intlify/shared": { - "version": "11.4.20", - "resolved": "https://registry.npmjs.org/@intlify/shared/-/shared-11.4.20.tgz", - "integrity": "sha512-qg2pOSUU5Xr2fHZCmluah8h/g/4MG5RfzIZBVR8Id0/c2EKsCPtWvamSiVtwc+4VvYnEGQxZast7uQMTb6jP9A==", + "version": "11.4.22", + "resolved": "https://registry.npmjs.org/@intlify/shared/-/shared-11.4.22.tgz", + "integrity": "sha512-RHAe7pwIYDt+AkQs9xQBdMLrux7+O4R8p3FKC47ewpEGhKqNzzJ2vkQ4gApAF/LMzj80nRUwIwQDn0uF/sgnqQ==", "license": "MIT", "engines": { "node": ">= 22" @@ -2251,6 +2134,13 @@ "url": "https://github.com/sponsors/kazupon" } }, + "node_modules/@isaacs/nonrecursive-glob-match": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@isaacs/nonrecursive-glob-match/-/nonrecursive-glob-match-1.1.0.tgz", + "integrity": "sha512-GPm/Dbvk5RLmhRnxXIa7nTpK0xtl4E0wj0MslsuNiJ1FIROU+2+9lgUC/dgF7Ey4QCWhfEsgxilMRMCdHPfDfw==", + "dev": true, + "license": "BlueOak-1.0.0" + }, "node_modules/@jridgewell/gen-mapping": { "version": "0.3.13", "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", @@ -2300,6 +2190,30 @@ "@jridgewell/sourcemap-codec": "^1.4.14" } }, + "node_modules/@keyv/bigmap": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/@keyv/bigmap/-/bigmap-1.3.1.tgz", + "integrity": "sha512-WbzE9sdmQtKy8vrNPa9BRnwZh5UF4s1KTmSK0KUVLo3eff5BlQNNWDnFOouNpKfPKDnms9xynJjsMYjMaT/aFQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "hashery": "^1.4.0", + "hookified": "^1.15.0" + }, + "engines": { + "node": ">= 18" + }, + "peerDependencies": { + "keyv": "^5.6.0" + } + }, + "node_modules/@keyv/serialize": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@keyv/serialize/-/serialize-1.1.1.tgz", + "integrity": "sha512-dXn3FZhPv0US+7dtJsIi2R+c7qWYiReoEh5zUntWCf4oSpMNib8FDhSoed6m3QyZdx5hK7iLFkYk3rNxwt8vTA==", + "dev": true, + "license": "MIT" + }, "node_modules/@napi-rs/wasm-runtime": { "version": "1.2.6", "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.2.6.tgz", @@ -2329,6 +2243,19 @@ "dev": true, "license": "MIT" }, + "node_modules/@ota-meshi/ast-token-store": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/@ota-meshi/ast-token-store/-/ast-token-store-0.3.0.tgz", + "integrity": "sha512-XRO0zi2NIUKq2lUk3T1ecFSld1fMWRKE6naRFGkgkdeosx7IslyUKNv5Dcb5PJTja9tHJoFu0v/7yEpAkrkrTg==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + }, + "funding": { + "url": "https://github.com/sponsors/ota-meshi" + } + }, "node_modules/@oxc-project/types": { "version": "0.156.0", "resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.156.0.tgz", @@ -3343,9 +3270,9 @@ "license": "CC0-1.0" }, "node_modules/@stylistic/eslint-plugin": { - "version": "5.9.0", - "resolved": "https://registry.npmjs.org/@stylistic/eslint-plugin/-/eslint-plugin-5.9.0.tgz", - "integrity": "sha512-FqqSkvDMYJReydrMhlugc71M76yLLQWNfmGq+SIlLa7N3kHp8Qq8i2PyWrVNAfjOyOIY+xv9XaaYwvVW7vroMA==", + "version": "5.10.0", + "resolved": "https://registry.npmjs.org/@stylistic/eslint-plugin/-/eslint-plugin-5.10.0.tgz", + "integrity": "sha512-nPK52ZHvot8Ju/0A4ucSX1dcPV2/1clx0kLcH5wDmrE4naKso7TUC/voUyU1O9OTKTrR6MYip6LP0ogEMQ9jPQ==", "dev": true, "license": "MIT", "dependencies": { @@ -3724,9 +3651,9 @@ } }, "node_modules/@types/debug": { - "version": "4.1.12", - "resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.12.tgz", - "integrity": "sha512-vIChWdVG3LG1SMxEvI/AK+FWJthlrqlTu7fbrlywTkkaONwk/UAGaULXRlf8vkzFBLVm0zkMdCquhL5aOjhXPQ==", + "version": "4.1.13", + "resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.13.tgz", + "integrity": "sha512-KSVgmQmzMwPlmtljOomayoR89W4FynCAi3E8PPs7vmDVPe84hT+vGPKkJfThkmXs0x0jAaa9U8uW8bbfyS2fWw==", "dev": true, "license": "MIT", "dependencies": { @@ -3740,13 +3667,30 @@ "dev": true, "license": "MIT" }, + "node_modules/@types/esrecurse": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/@types/esrecurse/-/esrecurse-4.3.1.tgz", + "integrity": "sha512-xJBAbDifo5hpffDBuHl0Y8ywswbiAp/Wi7Y/GtAgSlZyIABppyurxVueOPE8LUQOxdlgi6Zqce7uoEpqNTeiUw==", + "dev": true, + "license": "MIT" + }, "node_modules/@types/estree": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz", - "integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==", + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.10.tgz", + "integrity": "sha512-lTyOMnOcmRBzdCv6/4zUZCrEhV0xrqQiUZBZtVcbmLHBXKLnN8q89v/wKRF/Q0HbwVsqbIG3o5HDoFl9sduM+g==", "dev": true, "license": "MIT" }, + "node_modules/@types/hast": { + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/@types/hast/-/hast-3.0.5.tgz", + "integrity": "sha512-rp/ezSWaD1m44dPKICGhiskI13nVr7qTloFwDa/IYkhhf5nzwP+zIQcIJh3WIFSBOy/H1PzB40jPjMDksN4F+g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/unist": "*" + } + }, "node_modules/@types/js-yaml": { "version": "4.0.9", "resolved": "https://registry.npmjs.org/@types/js-yaml/-/js-yaml-4.0.9.tgz", @@ -3760,6 +3704,13 @@ "dev": true, "license": "MIT" }, + "node_modules/@types/katex": { + "version": "0.16.8", + "resolved": "https://registry.npmjs.org/@types/katex/-/katex-0.16.8.tgz", + "integrity": "sha512-trgaNyfU+Xh2Tc+ABIb44a5AYUpicB3uwirOioeOkNPPbmgRNtcWyDeeFRzjPZENO9Vq8gvVqfhaaXWLlevVwg==", + "dev": true, + "license": "MIT" + }, "node_modules/@types/marked": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/@types/marked/-/marked-6.0.0.tgz", @@ -3848,20 +3799,20 @@ } }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "8.56.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.56.1.tgz", - "integrity": "sha512-Jz9ZztpB37dNC+HU2HI28Bs9QXpzCz+y/twHOwhyrIRdbuVDxSytJNDl6z/aAKlaRIwC7y8wJdkBv7FxYGgi0A==", + "version": "8.73.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.73.0.tgz", + "integrity": "sha512-UkygMFer53Yzn29MCYFTHf34hGXf5KJhiDWfIm1tXtXRrym1CS6l5H9Y3yCtPWChpC0/f93H88gdj8tN0dd4kw==", "dev": true, "license": "MIT", "dependencies": { "@eslint-community/regexpp": "^4.12.2", - "@typescript-eslint/scope-manager": "8.56.1", - "@typescript-eslint/type-utils": "8.56.1", - "@typescript-eslint/utils": "8.56.1", - "@typescript-eslint/visitor-keys": "8.56.1", + "@typescript-eslint/scope-manager": "8.73.0", + "@typescript-eslint/type-utils": "8.73.0", + "@typescript-eslint/utils": "8.73.0", + "@typescript-eslint/visitor-keys": "8.73.0", "ignore": "^7.0.5", "natural-compare": "^1.4.0", - "ts-api-utils": "^2.4.0" + "ts-api-utils": "^2.5.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -3871,22 +3822,22 @@ "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "@typescript-eslint/parser": "^8.56.1", + "@typescript-eslint/parser": "^8.73.0", "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", - "typescript": ">=4.8.4 <6.0.0" + "typescript": ">=4.8.4 <6.1.0" } }, "node_modules/@typescript-eslint/parser": { - "version": "8.56.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.56.1.tgz", - "integrity": "sha512-klQbnPAAiGYFyI02+znpBRLyjL4/BrBd0nyWkdC0s/6xFLkXYQ8OoRrSkqacS1ddVxf/LDyODIKbQ5TgKAf/Fg==", + "version": "8.73.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.73.0.tgz", + "integrity": "sha512-AuL45bVcmssHfZ3Di3cs9Q0l4gBm4ZFVrJOQEE7VpqW+PVgQaEwSwazz4TVIiFabXkk6U51EprYDwqw+HR8ePw==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/scope-manager": "8.56.1", - "@typescript-eslint/types": "8.56.1", - "@typescript-eslint/typescript-estree": "8.56.1", - "@typescript-eslint/visitor-keys": "8.56.1", + "@typescript-eslint/scope-manager": "8.73.0", + "@typescript-eslint/types": "8.73.0", + "@typescript-eslint/typescript-estree": "8.73.0", + "@typescript-eslint/visitor-keys": "8.73.0", "debug": "^4.4.3" }, "engines": { @@ -3898,18 +3849,18 @@ }, "peerDependencies": { "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", - "typescript": ">=4.8.4 <6.0.0" + "typescript": ">=4.8.4 <6.1.0" } }, "node_modules/@typescript-eslint/project-service": { - "version": "8.56.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.56.1.tgz", - "integrity": "sha512-TAdqQTzHNNvlVFfR+hu2PDJrURiwKsUvxFn1M0h95BB8ah5jejas08jUWG4dBA68jDMI988IvtfdAI53JzEHOQ==", + "version": "8.73.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.73.0.tgz", + "integrity": "sha512-/pEf8Rc4Mjk+qJnY0uO1+Gadeal8uv50xpuic+srG2vIVatA0XxvWMUeMtFvs6OCHqftiQ7/+qH4aehG5stzIA==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/tsconfig-utils": "^8.56.1", - "@typescript-eslint/types": "^8.56.1", + "@typescript-eslint/tsconfig-utils": "^8.73.0", + "@typescript-eslint/types": "^8.73.0", "debug": "^4.4.3" }, "engines": { @@ -3920,45 +3871,18 @@ "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "typescript": ">=4.8.4 <6.0.0" - } - }, - "node_modules/@typescript-eslint/rule-tester": { - "version": "8.56.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/rule-tester/-/rule-tester-8.56.1.tgz", - "integrity": "sha512-EWuV5Vq1EFYJEOVcILyWPO35PjnT0c6tv99PCpD12PgfZae5/Jo+F17hGjsEs2Moe+Dy1J7KIr8y037cK8+/rQ==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "@typescript-eslint/parser": "8.56.1", - "@typescript-eslint/typescript-estree": "8.56.1", - "@typescript-eslint/utils": "8.56.1", - "ajv": "^6.12.6", - "json-stable-stringify-without-jsonify": "^1.0.1", - "lodash.merge": "4.6.2", - "semver": "^7.7.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/scope-manager": { - "version": "8.56.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.56.1.tgz", - "integrity": "sha512-YAi4VDKcIZp0O4tz/haYKhmIDZFEUPOreKbfdAN3SzUDMcPhJ8QI99xQXqX+HoUVq8cs85eRKnD+rne2UAnj2w==", + "version": "8.73.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.73.0.tgz", + "integrity": "sha512-/TjD738Iq2rzj5z0ixVOi+TsvgjAzZPLPaH1yWdDBytR/HTR5gMpyYWZeCe5WTQZLwk3ho8AV7U3muoQCRtXBQ==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.56.1", - "@typescript-eslint/visitor-keys": "8.56.1" + "@typescript-eslint/types": "8.73.0", + "@typescript-eslint/visitor-keys": "8.73.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -3969,9 +3893,9 @@ } }, "node_modules/@typescript-eslint/tsconfig-utils": { - "version": "8.56.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.56.1.tgz", - "integrity": "sha512-qOtCYzKEeyr3aR9f28mPJqBty7+DBqsdd63eO0yyDwc6vgThj2UjWfJIcsFeSucYydqcuudMOprZ+x1SpF3ZuQ==", + "version": "8.73.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.73.0.tgz", + "integrity": "sha512-lmtCFOfYaJfpqZywGuXi4FpNtE+NQ+YLe3T0K9rtEDcW8ZuGWvfI++pj8r05sYMI8vWT2CYK4rWyedmD6Rp4og==", "dev": true, "license": "MIT", "engines": { @@ -3982,21 +3906,21 @@ "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "typescript": ">=4.8.4 <6.0.0" + "typescript": ">=4.8.4 <6.1.0" } }, "node_modules/@typescript-eslint/type-utils": { - "version": "8.56.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.56.1.tgz", - "integrity": "sha512-yB/7dxi7MgTtGhZdaHCemf7PuwrHMenHjmzgUW1aJpO+bBU43OycnM3Wn+DdvDO/8zzA9HlhaJ0AUGuvri4oGg==", + "version": "8.73.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.73.0.tgz", + "integrity": "sha512-MOC9i4xy1F7KcDde7Ip8jf1SrRiALb2Km4UWxGNjUE2YlhjIEo1ayE27GHIwIQyfWuHTmEonQT14uyurlyC6aA==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.56.1", - "@typescript-eslint/typescript-estree": "8.56.1", - "@typescript-eslint/utils": "8.56.1", + "@typescript-eslint/types": "8.73.0", + "@typescript-eslint/typescript-estree": "8.73.0", + "@typescript-eslint/utils": "8.73.0", "debug": "^4.4.3", - "ts-api-utils": "^2.4.0" + "ts-api-utils": "^2.5.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -4007,13 +3931,13 @@ }, "peerDependencies": { "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", - "typescript": ">=4.8.4 <6.0.0" + "typescript": ">=4.8.4 <6.1.0" } }, "node_modules/@typescript-eslint/types": { - "version": "8.56.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.56.1.tgz", - "integrity": "sha512-dbMkdIUkIkchgGDIv7KLUpa0Mda4IYjo4IAMJUZ+3xNoUXxMsk9YtKpTHSChRS85o+H9ftm51gsK1dZReY9CVw==", + "version": "8.73.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.73.0.tgz", + "integrity": "sha512-O/1ytYzflF16QDKXx4/qOXg1IuZp+n7hr9t+S0nv7N/2Tl8rJiNCshztV1gcSUvHbPtoX3+zmNbtSAyVbzxVfw==", "dev": true, "license": "MIT", "engines": { @@ -4025,21 +3949,21 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "8.56.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.56.1.tgz", - "integrity": "sha512-qzUL1qgalIvKWAf9C1HpvBjif+Vm6rcT5wZd4VoMb9+Km3iS3Cv9DY6dMRMDtPnwRAFyAi7YXJpTIEXLvdfPxg==", + "version": "8.73.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.73.0.tgz", + "integrity": "sha512-InjlBkSdWceIwIBWSwS3ENUp+i0O02PGX3Zv2wnihWJC1WDVGvG7mTHuf8b57uAaITj94d6tRPDH+sUEtXdRQQ==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/project-service": "8.56.1", - "@typescript-eslint/tsconfig-utils": "8.56.1", - "@typescript-eslint/types": "8.56.1", - "@typescript-eslint/visitor-keys": "8.56.1", + "@typescript-eslint/project-service": "8.73.0", + "@typescript-eslint/tsconfig-utils": "8.73.0", + "@typescript-eslint/types": "8.73.0", + "@typescript-eslint/visitor-keys": "8.73.0", "debug": "^4.4.3", - "minimatch": "^10.2.2", + "minimatch": "^11.0.1", "semver": "^7.7.3", "tinyglobby": "^0.2.15", - "ts-api-utils": "^2.4.0" + "ts-api-utils": "^2.5.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -4049,20 +3973,43 @@ "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "typescript": ">=4.8.4 <6.0.0" + "@typescript/native": "npm:typescript@>=7.1.0-dev.20261009.1 || >=7.1.0-beta <7.1.0-dev", + "typescript": ">=4.8.4 <6.1.0" + }, + "peerDependenciesMeta": { + "@typescript/native": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": { + "version": "11.0.9", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-11.0.9.tgz", + "integrity": "sha512-KCFkfyjqerNlSstjlhIGNXIKZGA/6O4V4RlhZ+Dsr621SPPw0mzlypE9D9ZOoPiVefHID+j7/XuMMlqfD/F60Q==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "@isaacs/nonrecursive-glob-match": "^1.1.0", + "brace-expansion": "^5.0.12" + }, + "engines": { + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, "node_modules/@typescript-eslint/utils": { - "version": "8.56.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.56.1.tgz", - "integrity": "sha512-HPAVNIME3tABJ61siYlHzSWCGtOoeP2RTIaHXFMPqjrQKCGB9OgUVdiNgH7TJS2JNIQ5qQ4RsAUDuGaGme/KOA==", + "version": "8.73.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.73.0.tgz", + "integrity": "sha512-j2SVJJvVkXdUL0WcEzo4vEH1mO1vIi8KlVukcYA2MgMZvYN2LlZR4PmsW+GTSxSW24j6Q/EP7+MOifLtg5hmsA==", "dev": true, "license": "MIT", "dependencies": { "@eslint-community/eslint-utils": "^4.9.1", - "@typescript-eslint/scope-manager": "8.56.1", - "@typescript-eslint/types": "8.56.1", - "@typescript-eslint/typescript-estree": "8.56.1" + "@typescript-eslint/scope-manager": "8.73.0", + "@typescript-eslint/types": "8.73.0", + "@typescript-eslint/typescript-estree": "8.73.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -4073,17 +4020,17 @@ }, "peerDependencies": { "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", - "typescript": ">=4.8.4 <6.0.0" + "typescript": ">=4.8.4 <6.1.0" } }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "8.56.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.56.1.tgz", - "integrity": "sha512-KiROIzYdEV85YygXw6BI/Dx4fnBlFQu6Mq4QE4MOH9fFnhohw6wX/OAvDY2/C+ut0I3RSPKenvZJIVYqJNkhEw==", + "version": "8.73.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.73.0.tgz", + "integrity": "sha512-k4lsFVpRZICbltkIEEH4hZRkwXkqDF1GHBpClKQOHQY+RkoZAAuyc1ci3I6p+CB6v3U4jaHIUshc4RzzQXZWLg==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.56.1", + "@typescript-eslint/types": "8.73.0", "eslint-visitor-keys": "^5.0.0" }, "engines": { @@ -4204,16 +4151,6 @@ } } }, - "node_modules/@vitest/mocker/node_modules/@vitest/spy": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-5.1.0.tgz", - "integrity": "sha512-2DPO5OMHWKrBngC+fCmTQqemNF0gidRhp3lxbBmRhW+M1XJrfgPpqNqWVevXtn2f2ufD5ZaR1B6B641aAlcX5A==", - "dev": true, - "license": "MIT", - "funding": { - "url": "https://opencollective.com/vitest" - } - }, "node_modules/@vitest/mocker/node_modules/estree-walker": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz", @@ -4234,6 +4171,16 @@ "@jridgewell/sourcemap-codec": "^1.6.0" } }, + "node_modules/@vitest/spy": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-5.1.0.tgz", + "integrity": "sha512-2DPO5OMHWKrBngC+fCmTQqemNF0gidRhp3lxbBmRhW+M1XJrfgPpqNqWVevXtn2f2ufD5ZaR1B6B641aAlcX5A==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://opencollective.com/vitest" + } + }, "node_modules/@volar/language-core": { "version": "2.4.30", "resolved": "https://registry.npmjs.org/@volar/language-core/-/language-core-2.4.30.tgz", @@ -4542,9 +4489,9 @@ } }, "node_modules/acorn": { - "version": "8.16.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.16.0.tgz", - "integrity": "sha512-UVJyE9MttOsBQIDKw1skb9nAwQuR5wuGD3+82K6JgJlm/Y+KI92oNsMNGZCYdDsVtRHSak0pcV5Dno5+4jh9sw==", + "version": "8.19.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.19.0.tgz", + "integrity": "sha512-oJlA3XiRm7Cyk6qFD2Jn8ak9B7jSy0qy00ADO3+8dpT0LSjFihQYv4C02LFCSYJV3Q37xYwwRy5m+IpIiUzqWw==", "dev": true, "license": "MIT", "bin": { @@ -4565,9 +4512,9 @@ } }, "node_modules/ajv": { - "version": "6.14.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.14.0.tgz", - "integrity": "sha512-IWrosm/yrn43eiKqkfkHis7QioDleaXQHdDVPKg0FSwwd/DuvyX79TZnFOnYpB7dcsFAMmtFztZuXPDvSePkFw==", + "version": "6.15.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.15.0.tgz", + "integrity": "sha512-fgFx7Hfoq60ytK2c7DhnF8jIvzYgOMxfugjLOSMHjLIPgenqa7S7oaagATUq99mV6IYvN2tRmC0wnTYX6iPbMw==", "dev": true, "license": "MIT", "dependencies": { @@ -4613,9 +4560,9 @@ } }, "node_modules/ansis": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/ansis/-/ansis-4.2.0.tgz", - "integrity": "sha512-HqZ5rWlFjGiV0tDm3UxxgNRqsOTniqoKZu0pIAfh7TZQMGuZK+hH0drySty0si0QXj1ieop4+SkSfPZBPPkHig==", + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/ansis/-/ansis-4.5.0.tgz", + "integrity": "sha512-KwIVkfFfJSSzBmZhDGuTmkhWqTdyB5oNVzzznBJbBZ5bZtHiqSrcugRF0RKJKT4Ss3d7ZrcjnlFVDlQNmtWfWw==", "dev": true, "license": "ISC", "engines": { @@ -4623,21 +4570,30 @@ } }, "node_modules/are-docs-informative": { - "version": "0.0.2", - "resolved": "https://registry.npmjs.org/are-docs-informative/-/are-docs-informative-0.0.2.tgz", - "integrity": "sha512-ixiS0nLNNG5jNQzgZJNoUpBKdo9yTYZMGJ+QgT2jmjR7G7+QHRCc4v6LQ3NgE7EBJq+o0ams3waJwkrlBom8Ig==", + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/are-docs-informative/-/are-docs-informative-0.1.1.tgz", + "integrity": "sha512-sqRsNQBwbKLRX0jV5Cu5uzmtflf892n4Vukz7T659ebL4pz3mpOqCMU7lxMoBTFwnp10E3YB5ZcyHM41W5bcDA==", "dev": true, "license": "MIT", "engines": { - "node": ">=14" + "node": ">=18" } }, "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" + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-3.0.4.tgz", + "integrity": "sha512-fwWK3Zq22l4XJJjx5mcBHGikIk+hJqO+32dPm0Jur7+rtG5x1scOjSfdT9ZKeWHPpsya/l0HHK4tDImBkTrtvA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/puzrin" + }, + { + "type": "github", + "url": "https://github.com/sponsors/nodeca" + } + ], + "license": "PSF-2.0" }, "node_modules/assertion-error": { "version": "2.0.1", @@ -4688,9 +4644,9 @@ } }, "node_modules/baseline-browser-mapping": { - "version": "2.11.25", - "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.11.25.tgz", - "integrity": "sha512-gMmEShwwq7FJqMwvfRwvCl00v4kN+KOfJqXn+f4nrufak5gNHJOksd/60Dvjuz7sI8Y5WiSFBa8FEYr+zoyqCw==", + "version": "2.11.38", + "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.11.38.tgz", + "integrity": "sha512-rMgy5YW7x28SMfXHLlVZDBqlWzYZ0x2rVR/6FWrNBF0chjigARK1H6nM0hKA1Um3kPOlkQFVtjJs00d2N1ezuw==", "dev": true, "license": "Apache-2.0", "bin": { @@ -4738,9 +4694,9 @@ } }, "node_modules/browserslist": { - "version": "4.29.0", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.29.0.tgz", - "integrity": "sha512-3GSvyjvDI4Dur1Meg2BekJquu5uF+9R9a1+5M1Mde192eZoXbeXjzgOsgqPS2V8D5wrrip0gR5Hf/GhWQ9ZzaA==", + "version": "4.29.6", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.29.6.tgz", + "integrity": "sha512-CmVVIQ3RVc5HxYEc9X84GvxK/C8C1wH8TlKAiO7uTxF8PDwt7r8t9Qk3J9NkMOVzX5O/HbLv3yzxZg9HPrnI9w==", "dev": true, "funding": [ { @@ -4758,11 +4714,11 @@ ], "license": "MIT", "dependencies": { - "baseline-browser-mapping": "^2.11.23", - "caniuse-lite": "^1.0.30001810", - "electron-to-chromium": "^1.5.427", - "node-releases": "^2.0.55", - "update-browserslist-db": "^1.3.3" + "baseline-browser-mapping": "^2.11.37", + "caniuse-lite": "^1.0.30001826", + "electron-to-chromium": "^1.5.486", + "node-releases": "^2.0.64", + "update-browserslist-db": "^1.4.0" }, "bin": { "browserslist": "cli.js" @@ -4785,9 +4741,9 @@ } }, "node_modules/builtin-modules": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-5.0.0.tgz", - "integrity": "sha512-bkXY9WsVpY7CvMhKSR6pZilZu9Ln5WDrKVBUXf2S443etkmEO4V58heTecXcUIsNsi4Rx8JUO4NfX1IcQl4deg==", + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-5.5.0.tgz", + "integrity": "sha512-2uhx+Lkzc2fnAcNEpzbJziSzwdv6cJjxxsi9oByBhSuy2wffAPzmazVDiWJk2xDKULFONl5gNOEOLOupQ8gsPg==", "dev": true, "license": "MIT", "engines": { @@ -4798,23 +4754,27 @@ } }, "node_modules/cac": { - "version": "6.7.14", - "resolved": "https://registry.npmjs.org/cac/-/cac-6.7.14.tgz", - "integrity": "sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==", + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/cac/-/cac-7.1.0.tgz", + "integrity": "sha512-LMDU/U2yA4IPIY8KT0NsNPWEYZvAMkbgyspxJ6btJaYV+WMDOHAZCmB0lsTObiHaRS1V/ztKAl7+TSkTqXyeoA==", "dev": true, "license": "MIT", "engines": { - "node": ">=8" + "node": ">=20.19.0" } }, - "node_modules/callsites": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "node_modules/cacheable": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/cacheable/-/cacheable-2.5.0.tgz", + "integrity": "sha512-60cyAOytib/OzBw1JNSoSV/boK1AtHryDIjvVBk7XbN4ugfkM3+Sry7fEjNgPMGgOjuaZPAp8ruZ0Cxafwyq9g==", "dev": true, "license": "MIT", - "engines": { - "node": ">=6" + "dependencies": { + "@cacheable/memory": "^2.2.0", + "@cacheable/utils": "^2.5.0", + "hookified": "^1.15.0", + "keyv": "^5.6.0", + "qified": "^0.10.1" } }, "node_modules/camelcase": { @@ -4827,9 +4787,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001810", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001810.tgz", - "integrity": "sha512-TITQPUkaz+aVk5GL6NhOdwk1aEaNTSDPsGFWrTuhKGtjTF70jL/Oht2W4c6rXUe5fu7Ie19VIahAXHIIiWWNeg==", + "version": "1.0.30001826", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001826.tgz", + "integrity": "sha512-wTB+9tIbLro/BCXwLuNV1meHE4L9dS6dArMDwgYfNBPMYScqClHyGunhkCSDtHhe/69Xl0sHlKgBVZ+fNsYtWA==", "dev": true, "funding": [ { @@ -4868,23 +4828,6 @@ "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/change-case": { "version": "5.4.4", "resolved": "https://registry.npmjs.org/change-case/-/change-case-5.4.4.tgz", @@ -4919,9 +4862,9 @@ } }, "node_modules/ci-info": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-4.4.0.tgz", - "integrity": "sha512-77PSwercCZU2Fc4sX94eF8k8Pxte6JAwL4/ICZLFjJLqegs7kCuAsqqj/70NQF6TvDpgFjkubQB2FW2ZZddvQg==", + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-4.5.0.tgz", + "integrity": "sha512-d1uM8k5UZEyPza1n/MG3ko8nKupKN0KJpFsipgPcgaCCvV+IqIfJ+NzTjetlLM+UcXZx3+cLrNr76+eAO7G1Mw==", "dev": true, "funding": [ { @@ -4934,29 +4877,6 @@ "node": ">=8" } }, - "node_modules/clean-regexp": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/clean-regexp/-/clean-regexp-1.0.0.tgz", - "integrity": "sha512-GfisEZEJvzKrmGWkvfhgzcz/BllN1USeqD2V6tg14OAOgaCD2Z/PUEuxnAZ/nPvmaHRG7a8y77p1T/IRQ4D1Hw==", - "dev": true, - "license": "MIT", - "dependencies": { - "escape-string-regexp": "^1.0.5" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/clean-regexp/node_modules/escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.8.0" - } - }, "node_modules/cliui": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", @@ -4997,26 +4917,19 @@ } }, "node_modules/comment-parser": { - "version": "1.4.5", - "resolved": "https://registry.npmjs.org/comment-parser/-/comment-parser-1.4.5.tgz", - "integrity": "sha512-aRDkn3uyIlCFfk5NUA+VdwMmMsh8JGhc4hapfV4yxymHGQ3BVskMQfoXGpCo5IoBuQ9tS5iiVKhCpTcB4pW4qw==", + "version": "1.4.7", + "resolved": "https://registry.npmjs.org/comment-parser/-/comment-parser-1.4.7.tgz", + "integrity": "sha512-0h+uSNtQGW3D98eQt3jJ8L06Fves8hncB4V/PKdw/Qb8Hnk19VaKuTr55UNRYiSoVa7WwrFls+rh3ux9agmkeQ==", "dev": true, "license": "MIT", "engines": { "node": ">= 12.0.0" } }, - "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/confbox": { - "version": "0.2.4", - "resolved": "https://registry.npmjs.org/confbox/-/confbox-0.2.4.tgz", - "integrity": "sha512-ysOGlgTFbN2/Y6Cg3Iye8YKulHw+R2fNXHrgSmXISQdMnomY6eNDprVdW9R5xBguEqI954+S6709UyiO7B+6OQ==", + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/confbox/-/confbox-0.3.2.tgz", + "integrity": "sha512-ZUAKhKlkCOrIGKc8cj7zek9s9z1mveHif/25nUshI2BzCRzF7KH7KHa+Lnh2ubq+e1tIlaFuP763mzW4qVoehg==", "dev": true, "license": "MIT" }, @@ -5046,13 +4959,16 @@ } }, "node_modules/core-js-compat": { - "version": "3.48.0", - "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.48.0.tgz", - "integrity": "sha512-OM4cAF3D6VtH/WkLtWvyNC56EZVXsZdU3iqaMG2B4WvYrlqU831pc4UtG5yp0sE9z8Y02wVN7PjW5Zf9Gt0f1Q==", + "version": "3.51.0", + "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.51.0.tgz", + "integrity": "sha512-52r6fkXgxv4GLMjmFcMWRx7X9bw071xTTdrDcdyPGRqU2oE+9pCG0bAOMifSBdLw0JRBZKEF0q3B55qPlLuE8g==", "dev": true, "license": "MIT", "dependencies": { - "browserslist": "^4.28.1" + "browserslist": "^4.29.3" + }, + "engines": { + "node": ">=6.4.0" }, "funding": { "type": "opencollective", @@ -5074,19 +4990,6 @@ "node": ">= 8" } }, - "node_modules/cssesc": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz", - "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==", - "dev": true, - "license": "MIT", - "bin": { - "cssesc": "bin/cssesc" - }, - "engines": { - "node": ">=4" - } - }, "node_modules/csstype": { "version": "3.2.3", "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz", @@ -5157,6 +5060,19 @@ "node": ">=6" } }, + "node_modules/detect-indent": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/detect-indent/-/detect-indent-7.0.2.tgz", + "integrity": "sha512-y+8xyqdGLL+6sh0tVeHcfP/QDd8gUgbasolJJpY7NgeQGSZ739bDtSiaiDgtoicy+mtYB81dKLxO9xRhCyIB3A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12.20" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/detect-libc": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz", @@ -5182,13 +5098,13 @@ } }, "node_modules/diff-sequences": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-27.5.1.tgz", - "integrity": "sha512-k1gCAXAsNgLwEL+Y8Wvl+M6oEFj5bgazfZULpS5CneoPPXRaCCW7dm+q21Ky2VEE5X+VeRDBVg1Pcvvsr4TtNQ==", + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.6.3.tgz", + "integrity": "sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==", "dev": true, "license": "MIT", "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/dijkstrajs": { @@ -5296,9 +5212,9 @@ } }, "node_modules/electron-to-chromium": { - "version": "1.5.432", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.432.tgz", - "integrity": "sha512-4qa5o+sI3qFR+p1C6wZvY99x6q/3tR34n+ezZvWiJ9s0HJaaKwN6h1HTupFfv4fiSdQYMZWtVFBuzHdAXo1BnA==", + "version": "1.5.488", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.488.tgz", + "integrity": "sha512-Uox8y5IeRGB/uXNMNSPfWaiI5/8d/2XG125oc+f2C5JniHcoMxsbCXcVFRZnIsdrgPwZQ6/k5SbSxhBirqQPuA==", "dev": true, "license": "ISC" }, @@ -5309,9 +5225,9 @@ "license": "MIT" }, "node_modules/empathic": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/empathic/-/empathic-2.0.0.tgz", - "integrity": "sha512-i6UzDscO/XfAcNYD75CfICkmfLedpyPDdozrLMmQc5ORaQcdMoc21OnlEylMIqI7U8eniKrPMxxtj8k0vhmJhA==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/empathic/-/empathic-2.1.0.tgz", + "integrity": "sha512-AnfC1ATldl49/cvZdLPDjBfrRNwbDO05aibiOtzQu3qtlbJtomNLhF30HEtn/7iBz50dlMECqATo3fG0LrdEgw==", "dev": true, "license": "MIT", "engines": { @@ -5426,45 +5342,43 @@ } }, "node_modules/eslint": { - "version": "9.39.5", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.39.5.tgz", - "integrity": "sha512-DgZS62aPLXKlnxILS/AYCoRvHaZeXceIzlXPkkGGzJWSow1aEk0lbTlxUSlyjC8jcaKxAdOnTDz+o1JFSBsyjw==", - "deprecated": "This version is no longer supported. Please see https://eslint.org/version-support for other options.", + "version": "10.15.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-10.15.0.tgz", + "integrity": "sha512-+5Wg4p+ze3sG1WErYgUO/3H1IQIfFBymVUA0Fo/XTeBOLS6UQIUekpSJ8sdRkn7O7wjh84b55w/roqavH2aScg==", "dev": true, "license": "MIT", + "workspaces": [ + "packages/*" + ], "dependencies": { "@eslint-community/eslint-utils": "^4.8.0", - "@eslint-community/regexpp": "^4.12.1", - "@eslint/config-array": "^0.21.2", - "@eslint/config-helpers": "^0.4.2", - "@eslint/core": "^0.17.0", - "@eslint/eslintrc": "^3.3.6", - "@eslint/js": "9.39.5", - "@eslint/plugin-kit": "^0.4.1", - "@humanfs/node": "^0.16.6", + "@eslint-community/regexpp": "^4.12.2", + "@eslint/config-array": "^0.23.6", + "@eslint/config-helpers": "^0.7.0", + "@eslint/core": "^1.2.1", + "@eslint/plugin-kit": "^0.7.3", + "@humanfs/node": "^0.16.8", "@humanwhocodes/module-importer": "^1.0.1", "@humanwhocodes/retry": "^0.4.2", "@types/estree": "^1.0.6", "ajv": "^6.14.0", - "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", + "eslint-scope": "^9.1.2", + "eslint-visitor-keys": "^5.0.1", + "espree": "^11.2.0", + "esquery": "^1.7.0", "esutils": "^2.0.2", "fast-deep-equal": "^3.1.3", - "file-entry-cache": "^8.0.0", + "file-entry-cache": "11.1.5 || >11.1.6 <12", "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.5", + "minimatch": "^11.0.5", "natural-compare": "^1.4.0", "optionator": "^0.9.3" }, @@ -5472,7 +5386,7 @@ "eslint": "bin/eslint.js" }, "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + "node": "^20.19.0 || ^22.13.0 || >=24" }, "funding": { "url": "https://eslint.org/donate" @@ -5487,9 +5401,9 @@ } }, "node_modules/eslint-compat-utils": { - "version": "0.6.5", - "resolved": "https://registry.npmjs.org/eslint-compat-utils/-/eslint-compat-utils-0.6.5.tgz", - "integrity": "sha512-vAUHYzue4YAa2hNACjB8HvUQj5yehAZgiClyFVVom9cP8z5NSFq3PwB/TtJslN2zAMgRX6FCFCjYBbQh71g5RQ==", + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/eslint-compat-utils/-/eslint-compat-utils-0.5.1.tgz", + "integrity": "sha512-3z3vFexKIEnjHE3zCMRo6fn/e44U7T1khUjg+Hp0ZQMCigh28rALD0nPFBcGZuiLC5rLZa2ubQHDRln09JfU2Q==", "dev": true, "license": "MIT", "dependencies": { @@ -5503,13 +5417,13 @@ } }, "node_modules/eslint-config-flat-gitignore": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/eslint-config-flat-gitignore/-/eslint-config-flat-gitignore-2.2.1.tgz", - "integrity": "sha512-wA5EqN0era7/7Gt5Botlsfin/UNY0etJSEeBgbUlFLFrBi47rAN//+39fI7fpYcl8RENutlFtvp/zRa/M/pZNg==", + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/eslint-config-flat-gitignore/-/eslint-config-flat-gitignore-2.4.0.tgz", + "integrity": "sha512-JhYC+V7qEDiCDsbJcVP8fxNc62fk4+i91YLP/YvmVHlkaQ8Xo99olYN8MO5COdxl7onGlsrfZVONe5NYsZP1UA==", "dev": true, "license": "MIT", "dependencies": { - "@eslint/compat": "^2.0.2" + "@eslint/compat": "^2.1.0" }, "funding": { "url": "https://github.com/sponsors/antfu" @@ -5519,18 +5433,32 @@ } }, "node_modules/eslint-flat-config-utils": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/eslint-flat-config-utils/-/eslint-flat-config-utils-2.1.4.tgz", - "integrity": "sha512-bEnmU5gqzS+4O+id9vrbP43vByjF+8KOs+QuuV4OlqAuXmnRW2zfI/Rza1fQvdihQ5h4DUo0NqFAiViD4mSrzQ==", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/eslint-flat-config-utils/-/eslint-flat-config-utils-3.2.0.tgz", + "integrity": "sha512-PHgo1X5uqIorJONLVD9BIaOSdoYFD3z/AeJljdqDPlWVRpeCYkDbK9k0AXoYVqqNJr6FEYIEr5Rm2TSktLQcHw==", "dev": true, "license": "MIT", "dependencies": { + "@eslint/config-helpers": "^0.5.5", "pathe": "^2.0.3" }, "funding": { "url": "https://github.com/sponsors/antfu" } }, + "node_modules/eslint-flat-config-utils/node_modules/@eslint/config-helpers": { + "version": "0.5.5", + "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.5.5.tgz", + "integrity": "sha512-eIJYKTCECbP/nsKaaruF6LW967mtbQbsw4JTtSVkUQc9MneSkbrgPJAbKl9nWr0ZeowV8BfsarBmPpBzGelA2w==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@eslint/core": "^1.2.1" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + } + }, "node_modules/eslint-formatting-reporter": { "version": "0.0.0", "resolved": "https://registry.npmjs.org/eslint-formatting-reporter/-/eslint-formatting-reporter-0.0.0.tgz", @@ -5548,9 +5476,9 @@ } }, "node_modules/eslint-json-compat-utils": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/eslint-json-compat-utils/-/eslint-json-compat-utils-0.2.2.tgz", - "integrity": "sha512-KcTUifi8VSSHkrOY0FzB7smuTZRU9T2nCrcCy6k2b+Q77+uylBQVIxN4baVCIWvWJEpud+IsrYgco4JJ6io05g==", + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/eslint-json-compat-utils/-/eslint-json-compat-utils-0.2.3.tgz", + "integrity": "sha512-RbBmDFyu7FqnjE8F0ZxPNzx5UaptdeS9Uu50r7A+D7s/+FCX+ybiyViYEgFUaFIFqSWJgZRTpL5d8Kanxxl2lQ==", "dev": true, "license": "MIT", "dependencies": { @@ -5590,9 +5518,9 @@ "license": "MIT" }, "node_modules/eslint-plugin-antfu": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/eslint-plugin-antfu/-/eslint-plugin-antfu-3.2.2.tgz", - "integrity": "sha512-Qzixht2Dmd/pMbb5EnKqw2V8TiWHbotPlsORO8a+IzCLFwE0RxK8a9k4DCTFPzBwyxJzH+0m2Mn8IUGeGQkyUw==", + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-antfu/-/eslint-plugin-antfu-3.3.1.tgz", + "integrity": "sha512-SP1Wmq8EPgXOMWE3SNGS6T7sCcKYOId5vLU8hUO0VFMJ7PwaMYEqFNdp0jlL6vnsT1h1LCKuRmoed1ktRjWHjA==", "dev": true, "license": "MIT", "funding": { @@ -5603,19 +5531,21 @@ } }, "node_modules/eslint-plugin-command": { - "version": "3.5.2", - "resolved": "https://registry.npmjs.org/eslint-plugin-command/-/eslint-plugin-command-3.5.2.tgz", - "integrity": "sha512-PA59QAkQDwvcCMEt5lYLJLI3zDGVKJeC4id/pcRY2XdRYhSGW7iyYT1VC1N3bmpuvu6Qb/9QptiS3GJMjeGTJg==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-command/-/eslint-plugin-command-4.0.0.tgz", + "integrity": "sha512-mM1UdKu39YF5nUBVbA+PaVvpB3R3Niwjes8CQ8rJTTbgIThgrfQILgDqmtpAAQL1xGaolCoES1SfiwzwPVGkXQ==", "dev": true, "license": "MIT", "dependencies": { - "@es-joy/jsdoccomment": "^0.84.0" + "@es-joy/jsdoccomment": "^0.92.0" + }, + "engines": { + "node": "^22.22.2 || >=24.15.0" }, "funding": { "url": "https://github.com/sponsors/antfu" }, "peerDependencies": { - "@typescript-eslint/rule-tester": "*", "@typescript-eslint/typescript-estree": "*", "@typescript-eslint/utils": "*", "eslint": "*" @@ -5643,22 +5573,6 @@ "eslint": ">=8" } }, - "node_modules/eslint-plugin-es-x/node_modules/eslint-compat-utils": { - "version": "0.5.1", - "resolved": "https://registry.npmjs.org/eslint-compat-utils/-/eslint-compat-utils-0.5.1.tgz", - "integrity": "sha512-3z3vFexKIEnjHE3zCMRo6fn/e44U7T1khUjg+Hp0ZQMCigh28rALD0nPFBcGZuiLC5rLZa2ubQHDRln09JfU2Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "semver": "^7.5.4" - }, - "engines": { - "node": ">=12" - }, - "peerDependencies": { - "eslint": ">=6.0.0" - } - }, "node_modules/eslint-plugin-format": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/eslint-plugin-format/-/eslint-plugin-format-2.0.1.tgz", @@ -5684,80 +5598,95 @@ } }, "node_modules/eslint-plugin-import-lite": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-import-lite/-/eslint-plugin-import-lite-0.4.0.tgz", - "integrity": "sha512-My0ReAg8WbHXYECIHVJkWB8UxrinZn3m72yonOYH6MFj40ZN1vHYQj16iq2Fd8Wrt/vRZJwDX2xm/BzDk1FzTg==", + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-import-lite/-/eslint-plugin-import-lite-0.6.0.tgz", + "integrity": "sha512-80vevx2A7i3H7n1/6pqDO8cc5wRz6OwLDvIyVl9UflBV1N1f46e9Ihzi65IOLYoSxM6YykK2fTw1xm0Ixx6aTQ==", "dev": true, "license": "MIT", "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "peerDependencies": { - "eslint": ">=9.0.0", - "typescript": ">=4.5" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } + "eslint": "^9.0.0 || ^10.0.0" } }, "node_modules/eslint-plugin-jsdoc": { - "version": "61.7.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-jsdoc/-/eslint-plugin-jsdoc-61.7.1.tgz", - "integrity": "sha512-36DpldF95MlTX//n3/naULFVt8d1cV4jmSkx7ZKrE9ikkKHAgMLesuWp1SmwpVwAs5ndIM6abKd6PeOYZUgdWg==", + "version": "65.4.11", + "resolved": "https://registry.npmjs.org/eslint-plugin-jsdoc/-/eslint-plugin-jsdoc-65.4.11.tgz", + "integrity": "sha512-AJKIO+PFh+xriGEeRWJcOubfZgu7R1lOTipQ8358cwYri5B/tvJFQdr8y6V7xAr4T+lPnz7LsQgv7QyA58UY0w==", "dev": true, "license": "BSD-3-Clause", "dependencies": { - "@es-joy/jsdoccomment": "~0.78.0", + "@es-joy/escodegen": "^5.0.1", + "@es-joy/jsdoccomment": "~1.2.0", "@es-joy/resolve.exports": "1.2.0", - "are-docs-informative": "^0.0.2", - "comment-parser": "1.4.1", + "@typescript-eslint/utils": "^8.72.2", + "are-docs-informative": "^0.1.1", + "comment-parser": "1.4.9", "debug": "^4.4.3", - "escape-string-regexp": "^4.0.0", - "espree": "^11.0.0", + "escape-string-regexp": "^5.0.0", + "espree": "^11.2.0", "esquery": "^1.7.0", "html-entities": "^2.6.0", - "object-deep-merge": "^2.0.0", + "object-deep-merge": "^2.0.1", "parse-imports-exports": "^0.2.4", - "semver": "^7.7.3", - "spdx-expression-parse": "^4.0.0", + "semver": "^7.8.6", + "spdx-expression-parse": "^5.0.0", "to-valid-identifier": "^1.0.0" }, "engines": { - "node": ">=20.11.0" + "node": "^22.22.2 || >=24.15.0" }, "peerDependencies": { - "eslint": "^7.0.0 || ^8.0.0 || ^9.0.0" + "eslint": "^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0", + "typescript": "*" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } } }, "node_modules/eslint-plugin-jsdoc/node_modules/@es-joy/jsdoccomment": { - "version": "0.78.0", - "resolved": "https://registry.npmjs.org/@es-joy/jsdoccomment/-/jsdoccomment-0.78.0.tgz", - "integrity": "sha512-rQkU5u8hNAq2NVRzHnIUUvR6arbO0b6AOlvpTNS48CkiKSn/xtNfOzBK23JE4SiW89DgvU7GtxLVgV4Vn2HBAw==", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@es-joy/jsdoccomment/-/jsdoccomment-1.2.0.tgz", + "integrity": "sha512-EcF8gDd175MRIYEt7ktoe9AUijBba3SSSvnGJ96HQaK1BxjVK8l1QdksVEAY34Lp0byn51FnTszlVMYmD5TI/w==", "dev": true, "license": "MIT", "dependencies": { - "@types/estree": "^1.0.8", - "@typescript-eslint/types": "^8.46.4", - "comment-parser": "1.4.1", - "esquery": "^1.6.0", - "jsdoc-type-pratt-parser": "~7.0.0" + "@types/estree": "^1.0.10", + "@typescript-eslint/types": "^8.72.2", + "comment-parser": "1.4.9", + "esquery": "^1.7.0", + "jsdoc-type-pratt-parser": "~9.5.0" }, "engines": { - "node": ">=20.11.0" + "node": "^22.22.2 || >=24.15.0" } }, "node_modules/eslint-plugin-jsdoc/node_modules/comment-parser": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/comment-parser/-/comment-parser-1.4.1.tgz", - "integrity": "sha512-buhp5kePrmda3vhc5B9t7pUQXAb2Tnd0qgpkIhPhkHXxJpiPJ11H0ZEU0oBpJ2QztSbzG/ZxMj/CHsYJqRHmyg==", + "version": "1.4.9", + "resolved": "https://registry.npmjs.org/comment-parser/-/comment-parser-1.4.9.tgz", + "integrity": "sha512-+2AvZKjJaNq9GQljm3tr0utwrig5BL+jgJGvz5rDpGKNIp+ojcRXWUwBbh/sGIi1QCprR6PsKFakub+w1v+4hQ==", "dev": true, "license": "MIT", "engines": { "node": ">= 12.0.0" } }, + "node_modules/eslint-plugin-jsdoc/node_modules/escape-string-regexp": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-5.0.0.tgz", + "integrity": "sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/eslint-plugin-jsdoc/node_modules/eslint-visitor-keys": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-5.0.1.tgz", @@ -5772,9 +5701,9 @@ } }, "node_modules/eslint-plugin-jsdoc/node_modules/espree": { - "version": "11.1.1", - "resolved": "https://registry.npmjs.org/espree/-/espree-11.1.1.tgz", - "integrity": "sha512-AVHPqQoZYc+RUM4/3Ly5udlZY/U4LS8pIG05jEjWM2lQMU/oaZ7qshzAl2YP1tfNmXfftH3ohurfwNAug+MnsQ==", + "version": "11.2.0", + "resolved": "https://registry.npmjs.org/espree/-/espree-11.2.0.tgz", + "integrity": "sha512-7p3DrVEIopW1B1avAGLuCSh1jubc01H2JHc8B4qqGblmg5gI9yumBgACjWo4JlIc04ufug4xJ3SQI8HkS/Rgzw==", "dev": true, "license": "BSD-2-Clause", "dependencies": { @@ -5790,46 +5719,49 @@ } }, "node_modules/eslint-plugin-jsdoc/node_modules/jsdoc-type-pratt-parser": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/jsdoc-type-pratt-parser/-/jsdoc-type-pratt-parser-7.0.0.tgz", - "integrity": "sha512-c7YbokssPOSHmqTbSAmTtnVgAVa/7lumWNYqomgd5KOMyPrRve2anx6lonfOsXEQacqF9FKVUj7bLg4vRSvdYA==", + "version": "9.5.0", + "resolved": "https://registry.npmjs.org/jsdoc-type-pratt-parser/-/jsdoc-type-pratt-parser-9.5.0.tgz", + "integrity": "sha512-Qu/AuBJocEUhxq187P4Ud7xGBHB+NhtrclSrS7Utkr6uNeeh8BrZ5+Ax/AGe8VXQLGY+4oYgbUp04hY8iGsIWA==", "dev": true, "license": "MIT", + "dependencies": { + "@types/estree": "^1.0.9" + }, "engines": { - "node": ">=20.0.0" + "node": "^22.22.2 || >=24.15.0" } }, "node_modules/eslint-plugin-jsonc": { - "version": "2.21.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-jsonc/-/eslint-plugin-jsonc-2.21.1.tgz", - "integrity": "sha512-dbNR5iEnQeORwsK2WZzr3QaMtFCY3kKJVMRHPzUpKzMhmVy2zIpVgFDpX8MNoIdoqz6KCpCfOJavhfiSbZbN+w==", + "version": "3.4.2", + "resolved": "https://registry.npmjs.org/eslint-plugin-jsonc/-/eslint-plugin-jsonc-3.4.2.tgz", + "integrity": "sha512-q5xzjCYFQuhFomTbctXzd3STfDJ8XduvaigjQmMEbP2gzSKrc58y3Fv6D775/cIK1/sRUn+4kpljiU2iW8k0zw==", "dev": true, "license": "MIT", "dependencies": { "@eslint-community/eslint-utils": "^4.5.1", - "diff-sequences": "^27.5.1", - "eslint-compat-utils": "^0.6.4", - "eslint-json-compat-utils": "^0.2.1", - "espree": "^9.6.1 || ^10.3.0", - "graphemer": "^1.4.0", - "jsonc-eslint-parser": "^2.4.0", + "@eslint/core": "^1.0.1", + "@eslint/plugin-kit": "^0.7.0", + "@ota-meshi/ast-token-store": "^0.3.0", + "diff-sequences": "^29.6.3", + "eslint-json-compat-utils": "^0.2.3", + "jsonc-eslint-parser": "^3.1.0", "natural-compare": "^1.4.0", - "synckit": "^0.6.2 || ^0.7.3 || ^0.11.5" + "synckit": "^0.11.12" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^20.19.0 || ^22.13.0 || >=24" }, "funding": { "url": "https://github.com/sponsors/ota-meshi" }, "peerDependencies": { - "eslint": ">=6.0.0" + "eslint": ">=9.38.0" } }, "node_modules/eslint-plugin-n": { - "version": "17.24.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-n/-/eslint-plugin-n-17.24.0.tgz", - "integrity": "sha512-/gC7/KAYmfNnPNOb3eu8vw+TdVnV0zhdQwexsw6FLXbhzroVj20vRn2qL8lDWDGnAQ2J8DhdfvXxX9EoxvERvw==", + "version": "18.5.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-n/-/eslint-plugin-n-18.5.0.tgz", + "integrity": "sha512-M7uF6MTN/An+AXqvyIbXq7npJIZOkd5eKo8iMMvWrcDVNyZVdA6TF2lw01aKQfCEidRfpnR78GhAjZorlXNHiw==", "dev": true, "license": "MIT", "dependencies": { @@ -5840,17 +5772,27 @@ "globals": "^15.11.0", "globrex": "^0.1.2", "ignore": "^5.3.2", - "semver": "^7.6.3", - "ts-declaration-location": "^1.0.6" + "js-yaml": "^5.4.1", + "semver": "^7.6.3" }, "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + "node": "^20.19.0 || ^22.13.0 || >=24" }, "funding": { "url": "https://opencollective.com/eslint" }, "peerDependencies": { - "eslint": ">=8.23.0" + "eslint": ">=8.57.1", + "ts-declaration-location": "^1.0.6", + "typescript": ">=5.0.0" + }, + "peerDependenciesMeta": { + "ts-declaration-location": { + "optional": true + }, + "typescript": { + "optional": true + } } }, "node_modules/eslint-plugin-n/node_modules/globals": { @@ -5877,9 +5819,9 @@ } }, "node_modules/eslint-plugin-no-only-tests": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-no-only-tests/-/eslint-plugin-no-only-tests-3.3.0.tgz", - "integrity": "sha512-brcKcxGnISN2CcVhXJ/kEQlNa0MEfGRtwKtWA16SkqXHKitaKIMrfemJKLKX1YqDU5C/5JY3PvZXd5jEW04e0Q==", + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-no-only-tests/-/eslint-plugin-no-only-tests-3.4.0.tgz", + "integrity": "sha512-4S3/9Nb7A2tiMcpzEQE9bQSlpeOz6WJkgryBuou/SA8W2x2c8Zf4j0NvTKBjv6qNhF9T79tmkecm/0CHqV0UGg==", "dev": true, "license": "MIT", "engines": { @@ -5887,27 +5829,32 @@ } }, "node_modules/eslint-plugin-perfectionist": { - "version": "4.15.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-perfectionist/-/eslint-plugin-perfectionist-4.15.1.tgz", - "integrity": "sha512-MHF0cBoOG0XyBf7G0EAFCuJJu4I18wy0zAoT1OHfx2o6EOx1EFTIzr2HGeuZa1kDcusoX0xJ9V7oZmaeFd773Q==", + "version": "5.14.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-perfectionist/-/eslint-plugin-perfectionist-5.14.0.tgz", + "integrity": "sha512-z8mINHD3a4lMwtCuBJ5d5oZjfKwFjWF1gVKXxnUr04beCFwFYQP4TWd+182Mnk038n5Wc+LtSuvQMpbnPvdVSg==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "^8.38.0", - "@typescript-eslint/utils": "^8.38.0", + "@typescript-eslint/types": "^8.72.2", + "@typescript-eslint/utils": "^8.72.2", "natural-orderby": "^5.0.0" }, "engines": { - "node": "^18.0.0 || >=20.0.0" + "node": "^20.0.0 || >=22.0.0" }, "peerDependencies": { - "eslint": ">=8.45.0" + "eslint": "^8.45.0 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "eslint": { + "optional": true + } } }, "node_modules/eslint-plugin-pnpm": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-pnpm/-/eslint-plugin-pnpm-1.6.0.tgz", - "integrity": "sha512-dxmt9r3zvPaft6IugS4i0k16xag3fTbOvm/road5uV9Y8qUCQT0xzheSh3gMlYAlC6vXRpfArBDsTZ7H7JKCbg==", + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-pnpm/-/eslint-plugin-pnpm-1.9.1.tgz", + "integrity": "sha512-8++1Egww2cqc9Wylmt7P+xXNMQVCosAZ4m4W4Gc0V5lGea8HFByHTRvUI+ZvvpO8fLXGg2O4MQc90EhuI3mMdQ==", "dev": true, "funding": [ { @@ -5921,154 +5868,121 @@ ], "license": "MIT", "dependencies": { - "empathic": "^2.0.0", - "jsonc-eslint-parser": "^3.1.0", + "empathic": "^2.0.1", + "eslint-json-compat-utils": "^0.2.3", + "jsonc-eslint-parser": "^3.3.0", "pathe": "^2.0.3", - "pnpm-workspace-yaml": "1.6.0", - "tinyglobby": "^0.2.15", - "yaml": "^2.8.2", - "yaml-eslint-parser": "^2.0.0" + "pnpm-workspace-yaml": "1.9.1", + "tinyglobby": "^0.2.17", + "yaml": "^2.9.0", + "yaml-eslint-parser": "^2.1.0" }, "peerDependencies": { "eslint": "^9.0.0 || ^10.0.0" } }, - "node_modules/eslint-plugin-pnpm/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/eslint-plugin-pnpm/node_modules/jsonc-eslint-parser": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/jsonc-eslint-parser/-/jsonc-eslint-parser-3.1.0.tgz", - "integrity": "sha512-75EA7EWZExL/j+MDKQrRbdzcRI2HOkRlmUw8fZJc1ioqFEOvBsq7Rt+A6yCxOt9w/TYNpkt52gC6nm/g5tFIng==", - "dev": true, - "license": "MIT", - "dependencies": { - "acorn": "^8.5.0", - "eslint-visitor-keys": "^5.0.0", - "semver": "^7.3.5" - }, - "engines": { - "node": "^20.19.0 || ^22.13.0 || >=24" - }, - "funding": { - "url": "https://github.com/sponsors/ota-meshi" - } - }, - "node_modules/eslint-plugin-pnpm/node_modules/yaml-eslint-parser": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/yaml-eslint-parser/-/yaml-eslint-parser-2.0.0.tgz", - "integrity": "sha512-h0uDm97wvT2bokfwwTmY6kJ1hp6YDFL0nRHwNKz8s/VD1FH/vvZjAKoMUE+un0eaYBSG7/c6h+lJTP+31tjgTw==", - "dev": true, - "license": "MIT", - "dependencies": { - "eslint-visitor-keys": "^5.0.0", - "yaml": "^2.0.0" - }, - "engines": { - "node": "^20.19.0 || ^22.13.0 || >=24" - }, - "funding": { - "url": "https://github.com/sponsors/ota-meshi" - } - }, "node_modules/eslint-plugin-regexp": { - "version": "2.10.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-regexp/-/eslint-plugin-regexp-2.10.0.tgz", - "integrity": "sha512-ovzQT8ESVn5oOe5a7gIDPD5v9bCSjIFJu57sVPDqgPRXicQzOnYfFN21WoQBQF18vrhT5o7UMKFwJQVVjyJ0ng==", + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/eslint-plugin-regexp/-/eslint-plugin-regexp-3.3.3.tgz", + "integrity": "sha512-bIpFf1uL9AB6MY5cDUXL2lrfuBA+/WLc1AwC+56OsHWo93zoKQ4EcAQ+wsOxq5ozLC9xfTYAb4Si+0w0Ll1hYA==", "dev": true, "license": "MIT", "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/regexpp": "^4.11.0", "comment-parser": "^1.4.0", - "jsdoc-type-pratt-parser": "^4.0.0", + "jsdoc-type-pratt-parser": "^9.0.0", "refa": "^0.12.1", "regexp-ast-analysis": "^0.7.1", "scslre": "^0.3.0" }, "engines": { - "node": "^18 || >=20" + "node": "^20.19.0 || ^22.13.0 || >=24" }, "peerDependencies": { - "eslint": ">=8.44.0" - } - }, - "node_modules/eslint-plugin-regexp/node_modules/jsdoc-type-pratt-parser": { - "version": "4.8.0", - "resolved": "https://registry.npmjs.org/jsdoc-type-pratt-parser/-/jsdoc-type-pratt-parser-4.8.0.tgz", - "integrity": "sha512-iZ8Bdb84lWRuGHamRXFyML07r21pcwBrLkHEuHgEY5UbCouBwv7ECknDRKzsQIXMiqpPymqtIf8TC/shYKB5rw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12.0.0" + "eslint": ">=9.38.0" } }, "node_modules/eslint-plugin-toml": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-toml/-/eslint-plugin-toml-0.12.0.tgz", - "integrity": "sha512-+/wVObA9DVhwZB1nG83D2OAQRrcQZXy+drqUnFJKymqnmbnbfg/UPmEMCKrJNcEboUGxUjYrJlgy+/Y930mURQ==", + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-toml/-/eslint-plugin-toml-1.5.0.tgz", + "integrity": "sha512-qBjRywEkKxO2uYOjus//6GVF1r+Hg5QDkRO8RTY6XcaXgWfBU0DhwpFmJa2Ljf0Sz49r7DdZlpKwwHmJ4nmH1Q==", "dev": true, "license": "MIT", "dependencies": { + "@eslint/core": "^1.0.1", + "@eslint/plugin-kit": "^0.7.0", + "@ota-meshi/ast-token-store": "^0.3.0", "debug": "^4.1.1", - "eslint-compat-utils": "^0.6.0", - "lodash": "^4.17.19", - "toml-eslint-parser": "^0.10.0" + "toml-eslint-parser": "^1.0.1" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^20.19.0 || ^22.13.0 || >=24" }, "funding": { "url": "https://github.com/sponsors/ota-meshi" }, "peerDependencies": { - "eslint": ">=6.0.0" + "eslint": ">=9.38.0" } }, "node_modules/eslint-plugin-unicorn": { - "version": "62.0.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-unicorn/-/eslint-plugin-unicorn-62.0.0.tgz", - "integrity": "sha512-HIlIkGLkvf29YEiS/ImuDZQbP12gWyx5i3C6XrRxMvVdqMroCI9qoVYCoIl17ChN+U89pn9sVwLxhIWj5nEc7g==", + "version": "78.0.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-unicorn/-/eslint-plugin-unicorn-78.0.0.tgz", + "integrity": "sha512-XTDqxcJeAmh2lhgU75TpuMDdFtPDnAU+DCW56nR5UzXTG+uOyvOGjV80O11my7kNb2bYSCPlWa8c4K8/rwlYog==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-validator-identifier": "^7.28.5", - "@eslint-community/eslint-utils": "^4.9.0", - "@eslint/plugin-kit": "^0.4.0", + "@eslint-community/eslint-utils": "^4.10.1", + "@eslint/css-tree": "^4.1.1", + "browserslist": "^4.29.1", "change-case": "^5.4.4", - "ci-info": "^4.3.1", - "clean-regexp": "^1.0.0", - "core-js-compat": "^3.46.0", - "esquery": "^1.6.0", + "ci-info": "^4.4.0", + "core-js-compat": "^3.50.0", + "detect-indent": "^7.0.2", + "entities": "^8.1.0", "find-up-simple": "^1.0.1", - "globals": "^16.4.0", + "globals": "^17.12.0", + "identifier-regex": "^1.1.0", "indent-string": "^5.0.0", "is-builtin-module": "^5.0.0", - "jsesc": "^3.1.0", + "micromark": "^4.0.3", + "parse5": "^8.0.1", "pluralize": "^8.0.0", - "regexp-tree": "^0.1.27", - "regjsparser": "^0.13.0", - "semver": "^7.7.3", - "strip-indent": "^4.1.1" + "quote-js-string": "^0.1.0", + "regjsparser": "^0.13.3", + "reserved-identifiers": "^1.2.0", + "semver": "^7.8.5", + "strip-indent": "^4.1.1", + "yaml": "^2.9.1" }, "engines": { - "node": "^20.10.0 || >=21.0.0" + "node": ">=22" }, "funding": { "url": "https://github.com/sindresorhus/eslint-plugin-unicorn?sponsor=1" }, "peerDependencies": { - "eslint": ">=9.38.0" + "eslint": ">=10.4", + "typescript": "*" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/eslint-plugin-unicorn/node_modules/entities": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-8.1.0.tgz", + "integrity": "sha512-kxL7msIffSuh9aaFAMD7rxAIuTRMAHMeBtgHW2yUdWw732ZNh4MehkF2gdjvtdmikkaIP9bFDDJOPlsvm7avrA==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=20.19.0" + }, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" } }, "node_modules/eslint-plugin-unused-imports": { @@ -6088,18 +6002,18 @@ } }, "node_modules/eslint-plugin-vue": { - "version": "10.8.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-vue/-/eslint-plugin-vue-10.8.0.tgz", - "integrity": "sha512-f1J/tcbnrpgC8suPN5AtdJ5MQjuXbSU9pGRSSYAuF3SHoiYCOdEX6O22pLaRyLHXvDcOe+O5ENgc1owQ587agA==", + "version": "10.12.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-vue/-/eslint-plugin-vue-10.12.1.tgz", + "integrity": "sha512-Z5hmchVWq4EEOCn131J2p/uS4hjkrC+goPV5c/YApTY68xTqV3K5IYqD0mYGupDvZ6iYoTSuhSZUoWN+gZIqZQ==", "dev": true, "license": "MIT", "dependencies": { - "@eslint-community/eslint-utils": "^4.4.0", + "@eslint-community/eslint-utils": "^4.9.1", "natural-compare": "^1.4.0", "nth-check": "^2.1.1", - "postcss-selector-parser": "^7.1.0", - "semver": "^7.6.3", - "xml-name-validator": "^4.0.0" + "postcss-selector-parser": "^7.1.7", + "semver": "^7.8.5", + "xml-name-validator": "^5.0.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -6108,7 +6022,7 @@ "@stylistic/eslint-plugin": "^2.0.0 || ^3.0.0 || ^4.0.0 || ^5.0.0", "@typescript-eslint/parser": "^7.0.0 || ^8.0.0", "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", - "vue-eslint-parser": "^10.0.0" + "vue-eslint-parser": "^10.3.0" }, "peerDependenciesMeta": { "@stylistic/eslint-plugin": { @@ -6120,27 +6034,41 @@ } }, "node_modules/eslint-plugin-yml": { - "version": "1.19.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-yml/-/eslint-plugin-yml-1.19.1.tgz", - "integrity": "sha512-bYkOxyEiXh9WxUhVYPELdSHxGG5pOjCSeJOVkfdIyj6tuiHDxrES2WAW1dBxn3iaZQey57XflwLtCYRcNPOiOg==", + "version": "3.10.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-yml/-/eslint-plugin-yml-3.10.0.tgz", + "integrity": "sha512-9Qfg0JMZ0YUPa/m6FwWhzKFDwXf/oGnM+EvTzRkM72UccHuzCFk/L77R6qtABZ/As/UJVvx1lYYcbwgO+gcioA==", "dev": true, "license": "MIT", "dependencies": { - "debug": "^4.3.2", - "diff-sequences": "^27.5.1", - "escape-string-regexp": "4.0.0", - "eslint-compat-utils": "^0.6.0", + "@eslint/core": "^1.0.1", + "@eslint/plugin-kit": "^0.7.0", + "@ota-meshi/ast-token-store": "^0.3.0", + "diff-sequences": "^29.0.0", + "escape-string-regexp": "5.0.0", "natural-compare": "^1.4.0", - "yaml-eslint-parser": "^1.2.1" + "yaml-eslint-parser": "^2.0.0" }, "engines": { - "node": "^14.17.0 || >=16.0.0" + "node": "^20.19.0 || ^22.13.0 || >=24.0.0" }, "funding": { "url": "https://github.com/sponsors/ota-meshi" }, "peerDependencies": { - "eslint": ">=6.0.0" + "eslint": ">=9.38.0" + } + }, + "node_modules/eslint-plugin-yml/node_modules/escape-string-regexp": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-5.0.0.tgz", + "integrity": "sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/eslint-processor-vue-blocks": { @@ -6158,17 +6086,19 @@ } }, "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==", + "version": "9.1.2", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-9.1.2.tgz", + "integrity": "sha512-xS90H51cKw0jltxmvmHy2Iai1LIqrfbw57b79w/J7MfvDfkIkFZ+kj6zC3BjtUwh150HsSSdxXZcsuv72miDFQ==", "dev": true, "license": "BSD-2-Clause", "dependencies": { + "@types/esrecurse": "^4.3.1", + "@types/estree": "^1.0.8", "esrecurse": "^4.3.0", "estraverse": "^5.2.0" }, "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + "node": "^20.19.0 || ^22.13.0 || >=24" }, "funding": { "url": "https://opencollective.com/eslint" @@ -6187,22 +6117,35 @@ "url": "https://opencollective.com/eslint" } }, - "node_modules/eslint/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==", + "node_modules/eslint/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": "MIT" + "license": "Apache-2.0", + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } }, - "node_modules/eslint/node_modules/brace-expansion": { - "version": "1.1.22", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.22.tgz", - "integrity": "sha512-CKLDTuSsN0+r1ThM0WkzzBI7dnPI6xEGfa/JnVYIK9JNBA1N1NyPwXVHor//NKD/y3sDxp764sZdLhFK7pH8XQ==", + "node_modules/eslint/node_modules/espree": { + "version": "11.2.0", + "resolved": "https://registry.npmjs.org/espree/-/espree-11.2.0.tgz", + "integrity": "sha512-7p3DrVEIopW1B1avAGLuCSh1jubc01H2JHc8B4qqGblmg5gI9yumBgACjWo4JlIc04ufug4xJ3SQI8HkS/Rgzw==", "dev": true, - "license": "MIT", + "license": "BSD-2-Clause", "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" + "acorn": "^8.16.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^5.0.1" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + }, + "funding": { + "url": "https://opencollective.com/eslint" } }, "node_modules/eslint/node_modules/ignore": { @@ -6216,16 +6159,20 @@ } }, "node_modules/eslint/node_modules/minimatch": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.5.tgz", - "integrity": "sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==", + "version": "11.0.9", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-11.0.9.tgz", + "integrity": "sha512-KCFkfyjqerNlSstjlhIGNXIKZGA/6O4V4RlhZ+Dsr621SPPw0mzlypE9D9ZOoPiVefHID+j7/XuMMlqfD/F60Q==", "dev": true, - "license": "ISC", + "license": "BlueOak-1.0.0", "dependencies": { - "brace-expansion": "^1.1.7" + "@isaacs/nonrecursive-glob-match": "^1.1.0", + "brace-expansion": "^5.0.12" }, "engines": { - "node": "*" + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, "node_modules/espree": { @@ -6246,6 +6193,20 @@ "url": "https://opencollective.com/eslint" } }, + "node_modules/esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true, + "license": "BSD-2-Clause", + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, + "engines": { + "node": ">=4" + } + }, "node_modules/esquery": { "version": "1.7.0", "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.7.0.tgz", @@ -6309,9 +6270,9 @@ } }, "node_modules/exsolve": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/exsolve/-/exsolve-1.0.8.tgz", - "integrity": "sha512-LmDxfWXwcTArk8fUEnOfSZpHOJ6zOMUJKOtFLFqJLoKJetuQG874Uc7/Kki7zFLzYybmZhp1M7+98pfMqeX8yA==", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/exsolve/-/exsolve-1.2.0.tgz", + "integrity": "sha512-h1pQPR9XoeSMdntRNCjyTznaume4UpfXrULBnlkZ2CUM/G5eSa+pBByGldO5uR8dxbPC+OuJXsPPNf+JZ81ADg==", "dev": true, "license": "MIT" }, @@ -6343,6 +6304,33 @@ "dev": true, "license": "MIT" }, + "node_modules/fast-string-truncated-width": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/fast-string-truncated-width/-/fast-string-truncated-width-3.0.3.tgz", + "integrity": "sha512-0jjjIEL6+0jag3l2XWWizO64/aZVtpiGE3t0Zgqxv0DPuxiMjvB3M24fCyhZUO4KomJQPj3LTSUnDP3GpdwC0g==", + "dev": true, + "license": "MIT" + }, + "node_modules/fast-string-width": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/fast-string-width/-/fast-string-width-3.0.2.tgz", + "integrity": "sha512-gX8LrtNEI5hq8DVUfRQMbr5lpaS4nMIWV+7XEbXk2b8kiQIizgnlr12B4dA3ZEx3308ze0O4Q1R+cHts8kyUJg==", + "dev": true, + "license": "MIT", + "dependencies": { + "fast-string-truncated-width": "^3.0.2" + } + }, + "node_modules/fast-wrap-ansi": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/fast-wrap-ansi/-/fast-wrap-ansi-0.2.2.tgz", + "integrity": "sha512-7F2Fl+TjRSenLqlU3UjSH0iyqopqoZIu7eZVpEirP2g1GtWa2G/ecEmBdgz31+Mxr+ELclgg6sokpSFIQiZ02Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "fast-string-width": "^3.0.2" + } + }, "node_modules/fault": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/fault/-/fault-2.0.1.tgz", @@ -6358,16 +6346,13 @@ } }, "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==", + "version": "11.1.5", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-11.1.5.tgz", + "integrity": "sha512-+PFTHITI08JIGhnNpGNI8T8inUpgZfk3GNEqfT9R2zZV2iFXg3CvqzSl/uEhs7TSGujYRELEANyDvS8Fj7+S7Q==", "dev": true, "license": "MIT", "dependencies": { - "flat-cache": "^4.0.0" - }, - "engines": { - "node": ">=16.0.0" + "flat-cache": "^6.1.23" } }, "node_modules/find-up": { @@ -6401,23 +6386,21 @@ } }, "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==", + "version": "6.1.23", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-6.1.23.tgz", + "integrity": "sha512-f++BY9pTk+983xK1FLzlLpmM0i0z+jHmx3QESGkURMXujQZz1k5wzwX6hjnQ8goaD0B+sYnDK1yZ6MTyZfUaqA==", "dev": true, "license": "MIT", "dependencies": { - "flatted": "^3.2.9", - "keyv": "^4.5.4" - }, - "engines": { - "node": ">=16" + "cacheable": "^2.5.0", + "flatted": "^3.4.2", + "hookified": "^1.15.0" } }, "node_modules/flatted": { - "version": "3.4.2", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.4.2.tgz", - "integrity": "sha512-PjDse7RzhcPkIJwy5t7KPWQSZ9cAbzQXcafsetQoD7sOJRQlGikNbx7yZp2OotDnJyrDcbyRq3Ttb18iYOqkxA==", + "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" }, @@ -6455,9 +6438,9 @@ } }, "node_modules/get-tsconfig": { - "version": "4.13.6", - "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.13.6.tgz", - "integrity": "sha512-shZT/QMiSHc/YBLxxOkMtgSid5HFoauqCE3/exfsEcwg1WkeqjG+V40yBbBrsD+jW2HDXcs28xOfcbm2jI8Ddw==", + "version": "4.14.3", + "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.14.3.tgz", + "integrity": "sha512-++QEw4DIY7WGoukz+/+A/8dGYPT9l9yIadnmSgZ8Rjr3YVSVDipQSO9CdnJo9ePqFqUUqh+wk9uIaoiAwsiPkA==", "dev": true, "license": "MIT", "dependencies": { @@ -6506,9 +6489,9 @@ } }, "node_modules/globals": { - "version": "16.5.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-16.5.0.tgz", - "integrity": "sha512-c/c15i26VrJ4IRt5Z89DnIzCGDn9EcebibhAOjw5ibqEHsE1wLUgkPn9RDmNcUKyU87GeaL633nyJ+pplFR2ZQ==", + "version": "17.14.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-17.14.0.tgz", + "integrity": "sha512-UtdkTVyAJePQv0J2M9Xe4L0ruNSDV314XiIJsADI2Zf40bcdAonE/D/OhAU8AT99oij9mhLByb+NvA3QWZYgCg==", "dev": true, "license": "MIT", "engines": { @@ -6532,13 +6515,6 @@ "dev": true, "license": "ISC" }, - "node_modules/graphemer": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", - "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", - "dev": true, - "license": "MIT" - }, "node_modules/happy-dom": { "version": "21.0.4", "resolved": "https://registry.npmjs.org/happy-dom/-/happy-dom-21.0.4.tgz", @@ -6558,14 +6534,17 @@ "node": ">=20.0.0" } }, - "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==", + "node_modules/hashery": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/hashery/-/hashery-1.5.1.tgz", + "integrity": "sha512-iZyKG96/JwPz1N55vj2Ie2vXbhu440zfUfJvSwEqEbeLluk7NnapfGqa7LH0mOsnDxTF85Mx8/dyR6HfqcbmbQ==", "dev": true, "license": "MIT", + "dependencies": { + "hookified": "^1.15.0" + }, "engines": { - "node": ">=8" + "node": ">=20" } }, "node_modules/hookable": { @@ -6575,6 +6554,13 @@ "license": "MIT", "peer": true }, + "node_modules/hookified": { + "version": "1.15.1", + "resolved": "https://registry.npmjs.org/hookified/-/hookified-1.15.1.tgz", + "integrity": "sha512-MvG/clsADq1GPM2KGo2nyfaWVyn9naPiXrqIe4jYjXNZQt238kWyOGrsyc/DmRAQ+Re6yeo6yX/yoNCG5KAEVg==", + "dev": true, + "license": "MIT" + }, "node_modules/html-entities": { "version": "2.6.0", "resolved": "https://registry.npmjs.org/html-entities/-/html-entities-2.6.0.tgz", @@ -6626,10 +6612,26 @@ "url": "https://github.com/fb55/entities?sponsor=1" } }, + "node_modules/identifier-regex": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/identifier-regex/-/identifier-regex-1.1.0.tgz", + "integrity": "sha512-SLX4H/vtcYlYnL7XqnuJKHU7Z8517TgsW9nmQiGOgMCjQ8V/deLYu6bEmbGoXe7WMMhc9+EUGyFFneHja8KabA==", + "dev": true, + "license": "MIT", + "dependencies": { + "reserved-identifiers": "^1.0.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/ignore": { - "version": "7.0.5", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.5.tgz", - "integrity": "sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg==", + "version": "7.0.16", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.16.tgz", + "integrity": "sha512-52N+Y4HRMOJmbLmr+DqO4iSRyyB7N52gm7PWCT6h0p978+oKbqHCB7gIJIwZvBUsjlSdWbrBFqUSmIFNZMpn0A==", "dev": true, "license": "MIT", "engines": { @@ -6642,23 +6644,6 @@ "integrity": "sha512-m8nVez3rwrgmWxtLMt1ZYXB2Lv7OKYn/disyxAlSDYAlKSlFoPPfIAmAM/M5xqL4m4C/wAPw7S2/CNaUii1Hxg==", "license": "MIT" }, - "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", @@ -6821,30 +6806,17 @@ "js-yaml": "bin/js-yaml.mjs" } }, - "node_modules/js-yaml/node_modules/argparse": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-3.0.4.tgz", - "integrity": "sha512-fwWK3Zq22l4XJJjx5mcBHGikIk+hJqO+32dPm0Jur7+rtG5x1scOjSfdT9ZKeWHPpsya/l0HHK4tDImBkTrtvA==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/puzrin" - }, - { - "type": "github", - "url": "https://github.com/sponsors/nodeca" - } - ], - "license": "PSF-2.0" - }, "node_modules/jsdoc-type-pratt-parser": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/jsdoc-type-pratt-parser/-/jsdoc-type-pratt-parser-7.1.1.tgz", - "integrity": "sha512-/2uqY7x6bsrpi3i9LVU6J89352C0rpMk0as8trXxCtvd4kPk1ke/Eyif6wqfSLvoNJqcDG9Vk4UsXgygzCt2xA==", + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/jsdoc-type-pratt-parser/-/jsdoc-type-pratt-parser-9.0.1.tgz", + "integrity": "sha512-1LJ/negRKJxH0+ulOsJYEpUgzIs1DAOz9QctuS4In2LW/Ro3l8C4ej5al+5FU2hBGEOAY3R3SCnP6x8226JMIw==", "dev": true, "license": "MIT", + "dependencies": { + "@types/estree": "^1.0.9" + }, "engines": { - "node": ">=20.0.0" + "node": "^22.22.2 || >=24.15.0" } }, "node_modules/jsesc": { @@ -6860,13 +6832,6 @@ "node": ">=6" } }, - "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", @@ -6882,63 +6847,71 @@ "license": "MIT" }, "node_modules/jsonc-eslint-parser": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/jsonc-eslint-parser/-/jsonc-eslint-parser-2.4.2.tgz", - "integrity": "sha512-1e4qoRgnn448pRuMvKGsFFymUCquZV0mpGgOyIKNgD3JVDTsVJyRBGH/Fm0tBb8WsWGgmB1mDe6/yJMQM37DUA==", + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/jsonc-eslint-parser/-/jsonc-eslint-parser-3.3.0.tgz", + "integrity": "sha512-hYTGkHGNRZnXOFZ1urhINADoqDrGfpy53cjw+dxk84QE0pUDujQzeUeamNs6Mz44/TKD49z2x6/GVSu4ZrtA+Q==", "dev": true, "license": "MIT", "dependencies": { "acorn": "^8.5.0", - "eslint-visitor-keys": "^3.0.0", - "espree": "^9.0.0", - "semver": "^7.3.5" + "eslint-visitor-keys": "^5.0.0", + "verkit": "^0.3.2" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^20.19.0 || ^22.13.0 || >=24" }, "funding": { "url": "https://github.com/sponsors/ota-meshi" } }, "node_modules/jsonc-eslint-parser/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==", + "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": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^20.19.0 || ^22.13.0 || >=24" }, "funding": { "url": "https://opencollective.com/eslint" } }, - "node_modules/jsonc-eslint-parser/node_modules/espree": { - "version": "9.6.1", - "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz", - "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==", + "node_modules/katex": { + "version": "0.16.47", + "resolved": "https://registry.npmjs.org/katex/-/katex-0.16.47.tgz", + "integrity": "sha512-Eeo8Ys1doU1z+x8AZsPpQu+p/QcZBI5PeOo7QGQdy2x2m0MU/hYagBbGOmXwr5KVbEfVuWv9LpnQWeehogurjg==", "dev": true, - "license": "BSD-2-Clause", + "funding": [ + "https://opencollective.com/katex", + "https://github.com/sponsors/katex" + ], + "license": "MIT", "dependencies": { - "acorn": "^8.9.0", - "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^3.4.1" + "commander": "^8.3.0" }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" + "bin": { + "katex": "cli.js" + } + }, + "node_modules/katex/node_modules/commander": { + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-8.3.0.tgz", + "integrity": "sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 12" } }, "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==", + "version": "5.6.0", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-5.6.0.tgz", + "integrity": "sha512-CYDD3SOtsHtyXeEORYRx2qBtpDJFjRTGXUtmNEMGyzYOKj1TE3tycdlho7kA1Ufx9OYWZzg52QFBGALTirzDSw==", "dev": true, "license": "MIT", "dependencies": { - "json-buffer": "3.0.1" + "@keyv/serialize": "^1.1.1" } }, "node_modules/kleur": { @@ -7236,9 +7209,9 @@ } }, "node_modules/local-pkg": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/local-pkg/-/local-pkg-1.1.2.tgz", - "integrity": "sha512-arhlxbFRmoQHl33a0Zkle/YWlmNwoyt6QNZEIJcqNbdrsix5Lvc4HyyI3EnwxTYlZYc32EbYrQ8SzEZ7dqgg9A==", + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/local-pkg/-/local-pkg-1.2.1.tgz", + "integrity": "sha512-++gUqRDEvcnN6Zhqrr+y/CkVEHhlrR96vZn3nZZPYzMcBUyBtTKzB9NadClFIsIVSsu+3i9tfk/erqy9kAmt7Q==", "dev": true, "license": "MIT", "dependencies": { @@ -7269,20 +7242,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/lodash": { - "version": "4.18.1", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.18.1.tgz", - "integrity": "sha512-dMInicTPVE8d1e5otfwmmjlxkZoUpiVLwyeTdUsi/Caj/gfzzblBcCE5sRHV/AsjuCmxWrte2TNGSYuCeCq+0Q==", - "dev": true, - "license": "MIT" - }, - "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/longest-streak": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/longest-streak/-/longest-streak-3.1.0.tgz", @@ -7326,9 +7285,9 @@ } }, "node_modules/markdown-table": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/markdown-table/-/markdown-table-3.0.4.tgz", - "integrity": "sha512-wiYz4+JrLyb/DqW2hkFJxP7Vd7JuTDm77fvbM8VfEQdmSMqcImWeeRbHwZjBjIFki/VaMK2BhFi7oUUZeM5bqw==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/markdown-table/-/markdown-table-3.1.0.tgz", + "integrity": "sha512-xpeSCdM+B+6P3ncfgaB7FoDbtJ30xAe6Z18TGT7AgXJsHqCElCICZovQqdRMm7kHgpTyYv36EupqewoFFSB8vw==", "dev": true, "license": "MIT", "funding": { @@ -7349,16 +7308,16 @@ } }, "node_modules/mdast-util-find-and-replace": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/mdast-util-find-and-replace/-/mdast-util-find-and-replace-3.0.2.tgz", - "integrity": "sha512-Tmd1Vg/m3Xz43afeNxDIhWRtFZgM2VLyaf4vSTYwudTyeuTneoL3qtWMA5jeLyz/O1vDJmmV4QuScFCA2tBPwg==", + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/mdast-util-find-and-replace/-/mdast-util-find-and-replace-3.0.4.tgz", + "integrity": "sha512-z4B5c6jrnJ1ltOQemhWYPBSAo6y42Z8Gt2yEgfgNTMcLSU59B8bfj8Z8AnAlJrBGLnqkdAUZ7jdDEqQw3KuipQ==", "dev": true, "license": "MIT", "dependencies": { "@types/mdast": "^4.0.0", "escape-string-regexp": "^5.0.0", "unist-util-is": "^6.0.0", - "unist-util-visit-parents": "^6.0.0" + "unist-util-visit-parents": "^6.1.0" }, "funding": { "type": "opencollective", @@ -7379,9 +7338,9 @@ } }, "node_modules/mdast-util-from-markdown": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/mdast-util-from-markdown/-/mdast-util-from-markdown-2.0.3.tgz", - "integrity": "sha512-W4mAWTvSlKvf8L6J+VN9yLSqQ9AOAAvHuoDAmPkz4dHf553m5gVj2ejadHJhoJmcmxEnOv6Pa8XJhpxE93kb8Q==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mdast-util-from-markdown/-/mdast-util-from-markdown-2.1.0.tgz", + "integrity": "sha512-KRLgmPaP2H1ul2bpoJkOS+9pAcDAAj9Nu1mqLnh8NLeJG5tlvj42TH80PIGBpROWlRXLk0lDrWNuZCFy/tsB4A==", "dev": true, "license": "MIT", "dependencies": { @@ -7456,9 +7415,9 @@ } }, "node_modules/mdast-util-gfm-autolink-literal": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/mdast-util-gfm-autolink-literal/-/mdast-util-gfm-autolink-literal-2.0.1.tgz", - "integrity": "sha512-5HVP2MKaP6L+G6YaxPNjuL0BPrq9orG3TsrZ9YXbA3vDw/ACI4MEsnoDpn6ZNm7GnZgtAcONJyPhOP8tNJQavQ==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mdast-util-gfm-autolink-literal/-/mdast-util-gfm-autolink-literal-2.1.0.tgz", + "integrity": "sha512-Jx6QSK8wDo558Bcf7q+1pe0v81g2PVs09Hlvu9xJHmCFRF3sAPW7vXFVIAwBncs3sde92WbsVqNxwdqViA2XnQ==", "dev": true, "license": "MIT", "dependencies": { @@ -7492,9 +7451,9 @@ } }, "node_modules/mdast-util-gfm-strikethrough": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/mdast-util-gfm-strikethrough/-/mdast-util-gfm-strikethrough-2.0.0.tgz", - "integrity": "sha512-mKKb915TF+OC5ptj5bJ7WFRPdYtuHv0yTRxK2tJvi+BDqbkiG7h7u/9SI89nRAYcmap2xHQL9D+QG/6wSrTtXg==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/mdast-util-gfm-strikethrough/-/mdast-util-gfm-strikethrough-2.0.1.tgz", + "integrity": "sha512-OuJHqvr455pwu2OaOrir7dbzqs4jlWKOtlu9L6GjcIjjQwNyw02VntQsr/Ek6/A13vgnXfUhBekWRUP1OkNivw==", "dev": true, "license": "MIT", "dependencies": { @@ -7508,9 +7467,9 @@ } }, "node_modules/mdast-util-gfm-table": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/mdast-util-gfm-table/-/mdast-util-gfm-table-2.0.0.tgz", - "integrity": "sha512-78UEvebzz/rJIxLvE7ZtDd/vIQ0RHv+3Mh5DR96p7cS7HsBhYIICDBCu8csTNWNO6tBWfqXPWekRuj2FNOGOZg==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/mdast-util-gfm-table/-/mdast-util-gfm-table-2.0.1.tgz", + "integrity": "sha512-fiIjPrAy4kz68/eFbPHhsiWDGHhqUSVoU1XsfLM5DsEPXw7MxgiVVyulUggFRckVWeT1KXQXkg5vm3kv4oMSOA==", "dev": true, "license": "MIT", "dependencies": { @@ -7518,7 +7477,9 @@ "devlop": "^1.0.0", "markdown-table": "^3.0.0", "mdast-util-from-markdown": "^2.0.0", - "mdast-util-to-markdown": "^2.0.0" + "mdast-util-to-markdown": "^2.0.0", + "mdast-util-to-string": "^4.0.0", + "unist-util-visit": "^5.0.0" }, "funding": { "type": "opencollective", @@ -7526,9 +7487,9 @@ } }, "node_modules/mdast-util-gfm-task-list-item": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/mdast-util-gfm-task-list-item/-/mdast-util-gfm-task-list-item-2.0.0.tgz", - "integrity": "sha512-IrtvNvjxC1o06taBAVJznEnkiHxLFTzgonUdy8hzFVeDun0uTjxxrRGVaNFqkU1wJR3RBPEfsxmU6jDWPofrTQ==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/mdast-util-gfm-task-list-item/-/mdast-util-gfm-task-list-item-2.0.1.tgz", + "integrity": "sha512-jXVO1hvB2hs82g1esi7I9nIJDqiijbQLIyH2jDUb5s7jIAZMr/79h0VHSq7XHKTqpLARRm+DDNjduB7S9+6XZA==", "dev": true, "license": "MIT", "dependencies": { @@ -7542,6 +7503,26 @@ "url": "https://opencollective.com/unified" } }, + "node_modules/mdast-util-math": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/mdast-util-math/-/mdast-util-math-3.0.0.tgz", + "integrity": "sha512-Tl9GBNeG/AhJnQM221bJR2HPvLOSnLE/T9cJI9tlc6zwQk2nPk/4f0cHkOdEixQPC/j8UtKDdITswvLAy1OZ1w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/hast": "^3.0.0", + "@types/mdast": "^4.0.0", + "devlop": "^1.0.0", + "longest-streak": "^3.0.0", + "mdast-util-from-markdown": "^2.0.0", + "mdast-util-to-markdown": "^2.1.0", + "unist-util-remove-position": "^5.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, "node_modules/mdast-util-phrasing": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/mdast-util-phrasing/-/mdast-util-phrasing-4.1.0.tgz", @@ -7558,9 +7539,9 @@ } }, "node_modules/mdast-util-to-markdown": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/mdast-util-to-markdown/-/mdast-util-to-markdown-2.1.2.tgz", - "integrity": "sha512-xj68wMTvGXVOKonmog6LwyJKrYXZPvlwabaryTjLh9LuvovB/KAH+kvi8Gjj+7rJjsFi23nkUxRQv1KqSroMqA==", + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/mdast-util-to-markdown/-/mdast-util-to-markdown-2.2.3.tgz", + "integrity": "sha512-dImdB6VZRMRac1SwAW6o1c0ESk/7pFFAMCMuKM+9v7LpTSthMM5nzXpqKw4Mjo66aXVKhNkyrP4bMB9MurPyWg==", "dev": true, "license": "MIT", "dependencies": { @@ -7569,8 +7550,10 @@ "longest-streak": "^3.0.0", "mdast-util-phrasing": "^4.0.0", "mdast-util-to-string": "^4.0.0", + "micromark-util-character": "^2.0.0", "micromark-util-classify-character": "^2.0.0", "micromark-util-decode-string": "^2.0.0", + "micromark-util-html-tag-name": "^2.0.0", "unist-util-visit": "^5.0.0", "zwitch": "^2.0.0" }, @@ -7593,10 +7576,17 @@ "url": "https://opencollective.com/unified" } }, + "node_modules/mdn-data": { + "version": "2.37.2", + "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.37.2.tgz", + "integrity": "sha512-rz9YOBGItdSbe7HcSArUbhiAv4SB/4DKRYg96CSFS2CcIYMbUvBtZlzA1NCbk2AdgbmYwMqwNblLpR441lLeiQ==", + "dev": true, + "license": "CC0-1.0" + }, "node_modules/micromark": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/micromark/-/micromark-4.0.2.tgz", - "integrity": "sha512-zpe98Q6kvavpCr1NPVSCMebCKfD7CA2NqZ+rykeNhONIJBpc1tFKt9hucLGwha3jNTNI8lHpctWJWoimVF4PfA==", + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/micromark/-/micromark-4.0.3.tgz", + "integrity": "sha512-oGYfQzHSG5dOMovQcJ3fyTmZlWAWpi0XA0sJwJs+i6OT88o1+Jtw/8z0CmdowSLxGhhFK89rQ/oXph/wN02PNw==", "dev": true, "funding": [ { @@ -7620,6 +7610,7 @@ "micromark-util-chunked": "^2.0.0", "micromark-util-combine-extensions": "^2.0.0", "micromark-util-decode-numeric-character-reference": "^2.0.0", + "micromark-util-edit-map": "^1.0.0", "micromark-util-encode": "^2.0.0", "micromark-util-normalize-identifier": "^2.0.0", "micromark-util-resolve-all": "^2.0.0", @@ -7630,9 +7621,9 @@ } }, "node_modules/micromark-core-commonmark": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/micromark-core-commonmark/-/micromark-core-commonmark-2.0.3.tgz", - "integrity": "sha512-RDBrHEMSxVFLg6xvnXmb1Ayr2WzLAWjeSATAoxwKYJV94TeNavgoIdA0a9ytzDSVzBy2YKFK+emCPOEibLeCrg==", + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/micromark-core-commonmark/-/micromark-core-commonmark-2.0.4.tgz", + "integrity": "sha512-wxEeE8v8XVvOrxn1TZj74qYhAtTQsSqufHVS3uNVyT1MupXxhyaHk8/9xDNPh9BmL77QNDgWTkZ3RsYHB2ry7w==", "dev": true, "funding": [ { @@ -7650,18 +7641,19 @@ "devlop": "^1.0.0", "micromark-factory-destination": "^2.0.0", "micromark-factory-label": "^2.0.0", - "micromark-factory-space": "^2.0.0", + "micromark-factory-space": "^2.1.0", "micromark-factory-title": "^2.0.0", "micromark-factory-whitespace": "^2.0.0", "micromark-util-character": "^2.0.0", "micromark-util-chunked": "^2.0.0", "micromark-util-classify-character": "^2.0.0", + "micromark-util-edit-map": "^1.0.0", "micromark-util-html-tag-name": "^2.0.0", "micromark-util-normalize-identifier": "^2.0.0", "micromark-util-resolve-all": "^2.0.0", "micromark-util-subtokenize": "^2.0.0", "micromark-util-symbol": "^2.0.0", - "micromark-util-types": "^2.0.0" + "micromark-util-types": "^2.0.3" } }, "node_modules/micromark-extension-frontmatter": { @@ -7760,9 +7752,9 @@ } }, "node_modules/micromark-extension-gfm-table": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/micromark-extension-gfm-table/-/micromark-extension-gfm-table-2.1.1.tgz", - "integrity": "sha512-t2OU/dXXioARrC6yWfJ4hqB7rct14e8f7m0cbI5hUmDyyIlwv5vEtooptH8INkbLzOatzKuVbQmAYcbWoyz6Dg==", + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/micromark-extension-gfm-table/-/micromark-extension-gfm-table-2.1.2.tgz", + "integrity": "sha512-pRzm4kDTu0MjlmBkxmS9yYhw60nncfcEwu9NNdPFSQEFXS95ZKyIIyTSHu/o3ReBUrLKYEq+7YaXCRn/bPB4MA==", "dev": true, "license": "MIT", "dependencies": { @@ -7809,6 +7801,26 @@ "url": "https://opencollective.com/unified" } }, + "node_modules/micromark-extension-math": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/micromark-extension-math/-/micromark-extension-math-3.1.0.tgz", + "integrity": "sha512-lvEqd+fHjATVs+2v/8kg9i5Q0AP2k85H0WUOwpIVvUML8BapsMvh1XAogmQjOCsLpoKRCVQqEkQBB3NhVBcsOg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/katex": "^0.16.0", + "devlop": "^1.0.0", + "katex": "^0.16.0", + "micromark-factory-space": "^2.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, "node_modules/micromark-factory-destination": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/micromark-factory-destination/-/micromark-factory-destination-2.0.1.tgz", @@ -7855,9 +7867,9 @@ } }, "node_modules/micromark-factory-space": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/micromark-factory-space/-/micromark-factory-space-2.0.1.tgz", - "integrity": "sha512-zRkxjtBxxLd2Sc0d+fbnEunsTj46SWXgXciZmHq0kDYGnck/ZSGj9/wULTV95uoeYiK5hRXP2mJ98Uo4cq/LQg==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/micromark-factory-space/-/micromark-factory-space-2.1.0.tgz", + "integrity": "sha512-fS8hnLIjnjvdQIj39Geug8wWsR0HrYZ43KShKxNfwT7t2LOHo/LbWZEzEaSOjwtjdCsjoE6syHhonEzW0zv0+Q==", "dev": true, "funding": [ { @@ -8048,6 +8060,26 @@ "micromark-util-symbol": "^2.0.0" } }, + "node_modules/micromark-util-edit-map": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/micromark-util-edit-map/-/micromark-util-edit-map-1.0.0.tgz", + "integrity": "sha512-Pa2ljlsEL6sVwFaYeyrOLSYbQt73JvGbPOYFq+9AElXiSnfI5Q4465RRZ1sHv7lDjDOnGRDDaqPXqClqWK/q1Q==", + "dev": true, + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-types": "^2.0.0" + } + }, "node_modules/micromark-util-encode": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/micromark-util-encode/-/micromark-util-encode-2.0.1.tgz", @@ -8185,9 +8217,9 @@ "license": "MIT" }, "node_modules/micromark-util-types": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/micromark-util-types/-/micromark-util-types-2.0.2.tgz", - "integrity": "sha512-Yw0ECSpJoViF1qTU4DC6NwtC4aWGt1EkzaQB8KPPyCRR8z9TWeV0HbEFGTO+ZY1wB22zmxnJqhPyTpOVCpeHTA==", + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/micromark-util-types/-/micromark-util-types-2.0.3.tgz", + "integrity": "sha512-oxB2Ik03hI0gv+VNn9tnh1t1YEe9MDPptViAEgfdf3YQHsn0pzGTgCdlSCJXcwhqm8phaEuM7zeEu3QQzVBrPg==", "dev": true, "funding": [ { @@ -8254,16 +8286,16 @@ } }, "node_modules/mlly": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/mlly/-/mlly-1.8.0.tgz", - "integrity": "sha512-l8D9ODSRWLe2KHJSifWGwBqpTZXIXTeo8mlKjY+E2HAakaTeNpqAyBZ8GSqLzHgw4XmHmC8whvpjJNMbFZN7/g==", + "version": "1.8.2", + "resolved": "https://registry.npmjs.org/mlly/-/mlly-1.8.2.tgz", + "integrity": "sha512-d+ObxMQFmbt10sretNDytwt85VrbkhhUA/JBGm1MPaWJ65Cl4wOgLaB1NYvJSZ0Ef03MMEU/0xpPMXUIQ29UfA==", "dev": true, "license": "MIT", "dependencies": { - "acorn": "^8.15.0", + "acorn": "^8.16.0", "pathe": "^2.0.3", "pkg-types": "^1.3.1", - "ufo": "^1.6.1" + "ufo": "^1.6.3" } }, "node_modules/mlly/node_modules/confbox": { @@ -8285,6 +8317,13 @@ "pathe": "^2.0.1" } }, + "node_modules/module-replacements": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/module-replacements/-/module-replacements-3.4.0.tgz", + "integrity": "sha512-NKBNFM/uAUvSs+LOYfSly4EwrC9bgMoFuEnqNNjcDb910W+5IgS2KMB2ERLm5YZZm7R187jx1dMA9pOPvqbSbw==", + "dev": true, + "license": "MIT" + }, "node_modules/ms": { "version": "2.1.3", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", @@ -8342,9 +8381,9 @@ "optional": true }, "node_modules/node-releases": { - "version": "2.0.56", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.56.tgz", - "integrity": "sha512-x0InOIyzgdk+eyaWaRJFH5snEtiImgBgblZ2CyPrLmqqcuMQkEvcDPHbzqbD8eDsSeJbVOjn+crzyzHaM4D+/A==", + "version": "2.0.65", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.65.tgz", + "integrity": "sha512-PfvofsGQ+MiOQIPkX9fU8ELUWmy5zL74CdQaph/ismKszfFkfwXaw0cGiwbwym2hT9k5+mdyl8O5WQ1MD8EHmA==", "dev": true, "license": "MIT", "engines": { @@ -8387,9 +8426,9 @@ } }, "node_modules/object-deep-merge": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/object-deep-merge/-/object-deep-merge-2.0.0.tgz", - "integrity": "sha512-3DC3UMpeffLTHiuXSy/UG4NOIYTLlY9u3V82+djSCLYClWobZiS4ivYzpIUWrRY/nfsJ8cWsKyG3QfyLePmhvg==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/object-deep-merge/-/object-deep-merge-2.0.1.tgz", + "integrity": "sha512-aKttDKcU3pyZqKcCkDhsMn70WmZFG2JGDQLP9EcLyTSIFQRCPWLAmBZRLJnrVUrhPG1jETEEbfdgbNtJf1LyMg==", "dev": true, "license": "MIT" }, @@ -8514,25 +8553,12 @@ } }, "node_modules/package-manager-detector": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/package-manager-detector/-/package-manager-detector-1.6.0.tgz", - "integrity": "sha512-61A5ThoTiDG/C8s8UMZwSorAGwMJ0ERVGj2OjoW5pAalsNOg15+iQiPzrLJ4jhZ1HJzmC2PIHT2oEiH3R5fzNA==", + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/package-manager-detector/-/package-manager-detector-1.9.0.tgz", + "integrity": "sha512-zAMfbta9nPA8AKkA4WdmNAT8R8s6Dk0/xwPsqNnRidMFcLo1YkLuPDTgs2f64XdzS8vbLNnoJ+uUIkgbz7oRHA==", "dev": true, "license": "MIT" }, - "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/parse-gitignore": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/parse-gitignore/-/parse-gitignore-2.0.0.tgz", @@ -8566,6 +8592,32 @@ "dev": true, "license": "MIT" }, + "node_modules/parse5": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-8.1.1.tgz", + "integrity": "sha512-EcR/6WDcU7b2N3vQSxKALCk9lXGtUMQxXio008OEMBE0kavu/7JLfBEeFPzi43nMqVDSbEn3QCK+BMCc9zO//w==", + "dev": true, + "license": "MIT", + "dependencies": { + "entities": "^9.0.0" + }, + "funding": { + "url": "https://github.com/inikulin/parse5?sponsor=1" + } + }, + "node_modules/parse5/node_modules/entities": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-9.0.0.tgz", + "integrity": "sha512-oJFNDJg3kTPwAD1cNn2+WmUq4wFoo09npc3Ydf1D7ED4smRiWrsKnaLxykrTWgyGEcusc87P5dxlAleol9kpkg==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=20.19.0" + }, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, "node_modules/path-browserify": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-1.0.1.tgz", @@ -8675,14 +8727,14 @@ } }, "node_modules/pkg-types": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/pkg-types/-/pkg-types-2.3.0.tgz", - "integrity": "sha512-SIqCzDRg0s9npO5XQ3tNZioRY1uK06lA41ynBC1YmFTmnY6FjUjVt6s4LoADmwoig1qqD0oK8h1p/8mlMx8Oig==", + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/pkg-types/-/pkg-types-2.4.0.tgz", + "integrity": "sha512-07Fys7iVx0X6TcviMOgogM1Lk33ZyqOezMnU79S+kffWqwolG/5W9V8EgQSeYCIfFTYVgssRbnH630Oa2+soBA==", "dev": true, "license": "MIT", "dependencies": { - "confbox": "^0.2.2", - "exsolve": "^1.0.7", + "confbox": "^0.3.1", + "exsolve": "^1.1.3", "pathe": "^2.0.3" } }, @@ -8735,9 +8787,9 @@ } }, "node_modules/pnpm-workspace-yaml": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/pnpm-workspace-yaml/-/pnpm-workspace-yaml-1.6.0.tgz", - "integrity": "sha512-uUy4dK3E11sp7nK+hnT7uAWfkBMe00KaUw8OG3NuNlYQoTk4sc9pcdIy1+XIP85v9Tvr02mK3JPaNNrP0QyRaw==", + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/pnpm-workspace-yaml/-/pnpm-workspace-yaml-1.9.1.tgz", + "integrity": "sha512-Xj/T2X6DNAWbtk/9UQ0/TJRswltiHZevmcMjqoL7WrpJi67lu3qaslU4+I+zJ8wtwqmuvAE0KkB8rbv2ZdogBg==", "dev": true, "funding": [ { @@ -8751,7 +8803,7 @@ ], "license": "MIT", "dependencies": { - "yaml": "^2.8.2" + "yaml": "^2.9.0" } }, "node_modules/postcss": { @@ -8783,13 +8835,12 @@ } }, "node_modules/postcss-selector-parser": { - "version": "7.1.6", - "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-7.1.6.tgz", - "integrity": "sha512-7qASPzhKF2l2KLboRZux8CCTRMdGiV08vWmyKzPz22qZ7ZjQBOeY7rNzNoCLSUiftJ7HUq0GERHmxw/t0dCdMw==", + "version": "7.2.1", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-7.2.1.tgz", + "integrity": "sha512-GwxlMgTTXwIom+ebC7an3k6RaJDwklRQQnfiXsLPGicu8FYV/k/+1/9YY2OU2+r938H2t4X0TDxoif+HP2rjzQ==", "dev": true, "license": "MIT", "dependencies": { - "cssesc": "^3.0.0", "util-deprecate": "^1.0.2" }, "engines": { @@ -8852,6 +8903,26 @@ "node": ">=6" } }, + "node_modules/qified": { + "version": "0.10.1", + "resolved": "https://registry.npmjs.org/qified/-/qified-0.10.1.tgz", + "integrity": "sha512-+Owyggi9IxT1ePKGafcI87ubSmxol6smwJ+RAHDQlx9+9cPwFWDiKFFCPuWhr9ignlGpZ9vDQLw67N4dcTVFEA==", + "dev": true, + "license": "MIT", + "dependencies": { + "hookified": "^2.1.1" + }, + "engines": { + "node": ">=20" + } + }, + "node_modules/qified/node_modules/hookified": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/hookified/-/hookified-2.2.0.tgz", + "integrity": "sha512-p/LgFzRN5FeoD3DLS6bkUapeye6E4SI6yJs6KetENd18S+FBthqYq2amJUWpt5z0EQwwHemidjY5OqJGEKm5uA==", + "dev": true, + "license": "MIT" + }, "node_modules/qrcode": { "version": "1.5.4", "resolved": "https://registry.npmjs.org/qrcode/-/qrcode-1.5.4.tgz", @@ -8886,6 +8957,19 @@ ], "license": "MIT" }, + "node_modules/quote-js-string": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/quote-js-string/-/quote-js-string-0.1.0.tgz", + "integrity": "sha512-Y3NoRtprEEZQD8RfxMCfS0ZTqc4e+i18OrXEXAvpM6TfC/3y+0L5rNbZiSnbBBEkDfFzbpd8o+cE8q3/anjMGA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=22" + }, + "funding": { + "url": "https://github.com/sindresorhus/quote-js-string?sponsor=1" + } + }, "node_modules/readdirp": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-5.1.1.tgz", @@ -8926,20 +9010,10 @@ "node": "^12.0.0 || ^14.0.0 || >=16.0.0" } }, - "node_modules/regexp-tree": { - "version": "0.1.27", - "resolved": "https://registry.npmjs.org/regexp-tree/-/regexp-tree-0.1.27.tgz", - "integrity": "sha512-iETxpjK6YoRWJG5o6hXLwvjYAoW+FEZn9os0PD/b6AP6xQwsa/Y7lCVgIixBbUPMfhu+i2LtdeAqVTgGlQarfA==", - "dev": true, - "license": "MIT", - "bin": { - "regexp-tree": "bin/regexp-tree" - } - }, "node_modules/regjsparser": { - "version": "0.13.0", - "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.13.0.tgz", - "integrity": "sha512-NZQZdC5wOE/H3UT28fVGL+ikOZcEzfMGk/c3iN9UGxzWHMa1op7274oyiUVrAG4B2EuFhus8SvkaYnhvW92p9Q==", + "version": "0.13.4", + "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.13.4.tgz", + "integrity": "sha512-EWV80YgFaVgFrjGCAsV7oybp4GOxbls5RzBg8OB0nKEVXsBJR1JlV8Di1JhCROg3MzTfe1RI8yitIm1eOs68iA==", "dev": true, "license": "BSD-2-Clause", "dependencies": { @@ -8977,16 +9051,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "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/resolve-pkg-maps": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz", @@ -9177,11 +9241,25 @@ } }, "node_modules/sisteransi": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", - "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-2.0.0.tgz", + "integrity": "sha512-2WCqLdt12eN6ehLI50S2/ZxoowXU3DD1KVPRyVP0WEsFahrGZZmCdq1K59qjJljMRIDTwx1D9YaRK+hDneBUMg==", "dev": true, - "license": "MIT" + "license": "MIT", + "engines": { + "node": ">=20" + } + }, + "node_modules/source-map": { + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.8.0.tgz", + "integrity": "sha512-d8EqvL+k/SOXCreS/SUzg2ciyHqBBLcN/yuRjFsbvVhHTE2pgei7oAhmPM7kWFbkX6OSMQfUq4KbkF3au9lhYQ==", + "dev": true, + "license": "BSD-3-Clause", + "optional": true, + "engines": { + "node": ">= 12" + } }, "node_modules/source-map-js": { "version": "1.2.2", @@ -9200,9 +9278,9 @@ "license": "CC-BY-3.0" }, "node_modules/spdx-expression-parse": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-4.0.0.tgz", - "integrity": "sha512-Clya5JIij/7C6bRR22+tnGXbc4VKlibKSVj2iHvVeX5iMW7s1SIQlqu699JkODJJIhh/pUu8L0/VLh8xflD+LQ==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-5.0.0.tgz", + "integrity": "sha512-vngmw3Rgn+o2arXNbnZaj5UtOEBuWBfvaI+Wc8GFfykIhA5/vdK9/Sp/XkLv63dykz2rxKDvKEHupF5P0FORcQ==", "dev": true, "license": "MIT", "dependencies": { @@ -9211,9 +9289,9 @@ } }, "node_modules/spdx-license-ids": { - "version": "3.0.23", - "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.23.tgz", - "integrity": "sha512-CWLcCCH7VLu13TgOH+r8p1O/Znwhqv/dbb6lqWy67G+pT1kHmeD/+V36AVb/vq8QMIQwVShJ6Ssl5FPh0fuSdw==", + "version": "3.0.24", + "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.24.tgz", + "integrity": "sha512-cLS9TtWkIQFyLkJ3/5aFQAOHOSKTlOs/7WDut/XPSdjom1fJhUdkepeJAKXa9Y05+FabHd0sti+Et559vDtkpQ==", "dev": true, "license": "CC0-1.0" }, @@ -9263,32 +9341,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "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/synckit": { "version": "0.11.12", "resolved": "https://registry.npmjs.org/synckit/-/synckit-0.11.12.tgz", @@ -9419,29 +9471,29 @@ } }, "node_modules/toml-eslint-parser": { - "version": "0.10.1", - "resolved": "https://registry.npmjs.org/toml-eslint-parser/-/toml-eslint-parser-0.10.1.tgz", - "integrity": "sha512-9mjy3frhioGIVGcwamlVlUyJ9x+WHw/TXiz9R4YOlmsIuBN43r9Dp8HZ35SF9EKjHrn3BUZj04CF+YqZ2oJ+7w==", + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/toml-eslint-parser/-/toml-eslint-parser-1.0.3.tgz", + "integrity": "sha512-A5F0cM6+mDleacLIEUkmfpkBbnHJFV1d2rprHU2MXNk7mlxHq2zGojA+SRvQD1RoMo9gqjZPWEaKG4v1BQ48lw==", "dev": true, "license": "MIT", "dependencies": { - "eslint-visitor-keys": "^3.0.0" + "eslint-visitor-keys": "^5.0.0" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^20.19.0 || ^22.13.0 || >=24" }, "funding": { "url": "https://github.com/sponsors/ota-meshi" } }, "node_modules/toml-eslint-parser/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==", + "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": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^20.19.0 || ^22.13.0 || >=24" }, "funding": { "url": "https://opencollective.com/eslint" @@ -9460,29 +9512,6 @@ "typescript": ">=4.8.4" } }, - "node_modules/ts-declaration-location": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/ts-declaration-location/-/ts-declaration-location-1.0.7.tgz", - "integrity": "sha512-EDyGAwH1gO0Ausm9gV6T2nUvBgXT5kGoCMJPllOaooZ+4VvJiKBdZE7wK18N1deEowhcUptS+5GXZK8U/fvpwA==", - "dev": true, - "funding": [ - { - "type": "ko-fi", - "url": "https://ko-fi.com/rebeccastevens" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/ts-declaration-location" - } - ], - "license": "BSD-3-Clause", - "dependencies": { - "picomatch": "^4.0.2" - }, - "peerDependencies": { - "typescript": ">=4.0.0" - } - }, "node_modules/tslib": { "version": "2.8.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", @@ -9519,9 +9548,9 @@ } }, "node_modules/ufo": { - "version": "1.6.3", - "resolved": "https://registry.npmjs.org/ufo/-/ufo-1.6.3.tgz", - "integrity": "sha512-yDJTmhydvl5lJzBmy/hyOAA0d+aqCBuwl818haVdYCRrWV84o7YyeVm4QlVHStqNrrJSTb6jKuFAVqAFsr+K3Q==", + "version": "1.6.4", + "resolved": "https://registry.npmjs.org/ufo/-/ufo-1.6.4.tgz", + "integrity": "sha512-JFNbkD1Svwe0KvGi8GOeLcP4kAWQ609twvCdcHxq1oSL8svv39ZuSvajcD8B+5D0eL4+s1Is2D/O6KN3qcTeRA==", "dev": true, "license": "MIT" }, @@ -9566,6 +9595,21 @@ "url": "https://opencollective.com/unified" } }, + "node_modules/unist-util-remove-position": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/unist-util-remove-position/-/unist-util-remove-position-5.0.0.tgz", + "integrity": "sha512-Hp5Kh3wLxv0PHj9m2yZhhLt58KzPtEYKQQ4yxfYFEO7EvHwzyDYnduhHnY1mDxoqr7VUwVuHXk9RXKIiYS1N8Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0", + "unist-util-visit": "^5.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, "node_modules/unist-util-stringify-position": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/unist-util-stringify-position/-/unist-util-stringify-position-4.0.0.tgz", @@ -9581,15 +9625,15 @@ } }, "node_modules/unist-util-visit": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-5.1.0.tgz", - "integrity": "sha512-m+vIdyeCOpdr/QeQCu2EzxX/ohgS8KbnPDgFni4dQsfSCtpz8UqDyY5GjRru8PDKuYn7Fq19j1CQ+nJSsGKOzg==", + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-5.2.0.tgz", + "integrity": "sha512-fpsYs/VVoZxfGY9/j3FQpZmN8wdLJaV1Pt38AaJNZu9uKIHcFU3halCdBveEq1HGKO1OEfJY65w1zvoFV1b3qQ==", "dev": true, "license": "MIT", "dependencies": { "@types/unist": "^3.0.0", "unist-util-is": "^6.0.0", - "unist-util-visit-parents": "^6.0.0" + "unist-util-visit-parents": "^6.1.0" }, "funding": { "type": "opencollective", @@ -9597,9 +9641,9 @@ } }, "node_modules/unist-util-visit-parents": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-6.0.2.tgz", - "integrity": "sha512-goh1s1TBrqSqukSc8wrjwWhL0hiJxgA8m4kFxGlQ+8FYQ3C/m11FcTs4YYem7V664AhHVvgoQLk890Ssdsr2IQ==", + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-6.1.0.tgz", + "integrity": "sha512-vKXxz6O38sKDj1mtx/k2cWvkkFBuYGx6uGrlzBkVeWCRF/F8sdI0j3Wbkz/5rVNRRuVc8UrgRdbCxNhmYXgP3w==", "dev": true, "license": "MIT", "dependencies": { @@ -9612,9 +9656,9 @@ } }, "node_modules/update-browserslist-db": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.3.3.tgz", - "integrity": "sha512-pJ2sYawQS0R/WI928Gj5GlPhTGzbMelq0+4INtSYNDV9ErKJcX6xjGWkoG/VnB3dpUm00zALaqkrUD77pO5TDQ==", + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.4.0.tgz", + "integrity": "sha512-WPJuOnjI9FWDct4fB+ej4Mz8opLaw5CDcZ2t44tFZ0vIQVYWzBhWR3mkixuUj/A7+vY4V9+ApOZ2YYLwdgq46w==", "dev": true, "funding": [ { @@ -9659,6 +9703,19 @@ "dev": true, "license": "MIT" }, + "node_modules/verkit": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/verkit/-/verkit-0.3.2.tgz", + "integrity": "sha512-zj/ob3UsvJGN0whEAKFp53REA5X66hvffVqoCtVQAakJKnKlH+/PcOfMoFwIG/o4rElqLv/ycAFlx8ZlXUorCg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18.12.0" + }, + "funding": { + "url": "https://github.com/sponsors/sxzz" + } + }, "node_modules/vite": { "version": "8.3.8", "resolved": "https://registry.npmjs.org/vite/-/vite-8.3.8.tgz", @@ -10174,9 +10231,9 @@ "license": "MIT" }, "node_modules/vue-eslint-parser": { - "version": "10.4.0", - "resolved": "https://registry.npmjs.org/vue-eslint-parser/-/vue-eslint-parser-10.4.0.tgz", - "integrity": "sha512-Vxi9pJdbN3ZnVGLODVtZ7y4Y2kzAAE2Cm0CZ3ZDRvydVYxZ6VrnBhLikBsRS+dpwj4Jv4UCv21PTEwF5rQ9WXg==", + "version": "10.4.2", + "resolved": "https://registry.npmjs.org/vue-eslint-parser/-/vue-eslint-parser-10.4.2.tgz", + "integrity": "sha512-WMpzulb50kb6snghzoGzS++62wcOszAk/piYcnvzdStM8Wni/BmogYltpoOFv2eK9hDbXxvwFQgnwZGpAoUfpA==", "dev": true, "license": "MIT", "dependencies": { @@ -10198,14 +10255,14 @@ } }, "node_modules/vue-i18n": { - "version": "11.4.20", - "resolved": "https://registry.npmjs.org/vue-i18n/-/vue-i18n-11.4.20.tgz", - "integrity": "sha512-gyUMq9f+5T3ZvmkjWy+0dzKesaTVN95JdRzjJPW0qKrzFKy/NOqA0wMw9MPraMjTAjHmBhhRA4AwQOnoKztPEw==", + "version": "11.4.22", + "resolved": "https://registry.npmjs.org/vue-i18n/-/vue-i18n-11.4.22.tgz", + "integrity": "sha512-ATfJU6iSSKnUYXubiwH4oScLYIgM2N3KcoqaUD5v5EM2OANePbON7l7CqWsUQhPNHZvszrk9rItqebr8Vo5A5Q==", "license": "MIT", "dependencies": { - "@intlify/core-base": "11.4.20", - "@intlify/devtools-types": "11.4.20", - "@intlify/shared": "11.4.20", + "@intlify/core-base": "11.4.22", + "@intlify/devtools-types": "11.4.22", + "@intlify/shared": "11.4.22", "@vue/devtools-api": "^6.5.0" }, "engines": { @@ -10391,13 +10448,13 @@ } }, "node_modules/xml-name-validator": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-4.0.0.tgz", - "integrity": "sha512-ICP2e+jsHvAj2E2lIHxa5tjXRlKDJo4IdvPvCXbXQGdzSfmSpNVyIKMvoZHjDY9DP0zV17iI85o90vRFXNccRw==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-5.0.0.tgz", + "integrity": "sha512-EvGK8EJ3DhaHfbRlETOWAS5pO9MZITeauHKJyb8wyajUfQUenkIg2MvLDTZ4T/TgIcm3HU0TFBgWWboAZ30UHg==", "dev": true, "license": "Apache-2.0", "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/y18n": { @@ -10407,9 +10464,9 @@ "license": "ISC" }, "node_modules/yaml": { - "version": "2.8.3", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.8.3.tgz", - "integrity": "sha512-AvbaCLOO2Otw/lW5bmh9d/WEdcDFdQp2Z2ZUH3pX9U2ihyUY0nvLv7J6TrWowklRGPYbB/IuIMfYgxaCPg5Bpg==", + "version": "2.9.1", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.9.1.tgz", + "integrity": "sha512-3NxN8+78OdzbT7C/WjGsyfPAtJaN3FNDsWxv7Y7mcDsT/oOmgW8BpyQQFFBnvZE3j9Y2Sdz1ULFLezL7Eb2yFw==", "dev": true, "license": "ISC", "bin": { @@ -10423,30 +10480,30 @@ } }, "node_modules/yaml-eslint-parser": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/yaml-eslint-parser/-/yaml-eslint-parser-1.3.2.tgz", - "integrity": "sha512-odxVsHAkZYYglR30aPYRY4nUGJnoJ2y1ww2HDvZALo0BDETv9kWbi16J52eHs+PWRNmF4ub6nZqfVOeesOvntg==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/yaml-eslint-parser/-/yaml-eslint-parser-2.1.0.tgz", + "integrity": "sha512-1zo9KRfp6vIAXBEhWAz09ex3hUwh3T+/6dGbGteHvNseA0Uk4FgQnPES55klZ6cDzSy9FpgKS0D/CoLUvCCj4w==", "dev": true, "license": "MIT", "dependencies": { - "eslint-visitor-keys": "^3.0.0", + "eslint-visitor-keys": "^5.0.0", "yaml": "^2.0.0" }, "engines": { - "node": "^14.17.0 || >=16.0.0" + "node": "^20.19.0 || ^22.13.0 || >=24" }, "funding": { "url": "https://github.com/sponsors/ota-meshi" } }, "node_modules/yaml-eslint-parser/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==", + "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": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^20.19.0 || ^22.13.0 || >=24" }, "funding": { "url": "https://opencollective.com/eslint" diff --git a/package.json b/package.json index 75c3f8bff..d66b725c3 100644 --- a/package.json +++ b/package.json @@ -48,7 +48,7 @@ "vue-i18n": "^11.0.1" }, "devDependencies": { - "@antfu/eslint-config": "6.7.3", + "@antfu/eslint-config": "10.0.0", "@tailwindcss/vite": "4.3.2", "@types/node": "26.6.6", "@types/qrcode": "1.5.6", @@ -57,7 +57,7 @@ "@vitest/coverage-v8": "5.1.0", "@vue/test-utils": "2.6.0", "@xmldom/xmldom": "0.9.12", - "eslint": "9.39.5", + "eslint": "10.15.0", "eslint-plugin-format": "2.0.1", "happy-dom": "21.0.4", "playwright": "1.65.1", diff --git a/record-wolves.cjs b/record-wolves.cjs index a3a36430d..40501937f 100644 --- a/record-wolves.cjs +++ b/record-wolves.cjs @@ -37,7 +37,9 @@ function parseArgs(argv) { continue } const [key, inlineValue] = raw.slice(2).split('=', 2) - const value = inlineValue === undefined ? argv[i + 1] : inlineValue + const value = inlineValue === undefined + ? argv[i + 1] + : inlineValue if (inlineValue === undefined) { i++ } @@ -402,7 +404,9 @@ async function main() { for (let i = 0; i < frameCount; i++) { const framePath = `frame-${String(i + 1).padStart(6, '0')}.jpg` const durSeconds - = i + 1 < frameCount ? (frameTimestamps[i + 1] - frameTimestamps[i]) / 1000 : 1 / effectiveFps + = i + 1 < frameCount + ? (frameTimestamps[i + 1] - frameTimestamps[i]) / 1000 + : 1 / effectiveFps concatLines.push(`file '${framePath}'`) concatLines.push(`duration ${Math.max(durSeconds, 0.001).toFixed(6)}`) } diff --git a/scripts/check-docs.mjs b/scripts/check-docs.mjs index 5c5648264..934141421 100644 --- a/scripts/check-docs.mjs +++ b/scripts/check-docs.mjs @@ -10,7 +10,9 @@ function walk(directory) { return [] } const path = join(directory, entry.name) - return entry.isDirectory() ? walk(path) : [path] + return entry.isDirectory() + ? walk(path) + : [path] }) } @@ -19,14 +21,27 @@ function addError(message) { } const markdown = walk(root).filter(path => extname(path).toLowerCase() === '.md') -const required = ['AGENTS.md', 'docs/SKILL.md', 'docs/skills/INDEX.md', 'docs/README.md'] +const required = [ + 'AGENTS.md', + 'docs/SKILL.md', + 'docs/skills/INDEX.md', + 'docs/README.md' +] for (const path of required) { if (!existsSync(join(root, path))) { addError(`missing required file: ${path}`) } } -const banned = ['IMPROVEMENTS.md', 'CHANGELOG.md', 'CHANGES.md', 'SESSION.md', 'NOTES.md', 'PLAN.md', 'TODO.md'] +const banned = [ + 'IMPROVEMENTS.md', + 'CHANGELOG.md', + 'CHANGES.md', + 'SESSION.md', + 'NOTES.md', + 'PLAN.md', + 'TODO.md' +] for (const path of banned) { if (existsSync(join(root, path))) { addError(`banned agent changelog or session file: ${path} (write learnings to docs/skills/ instead)`) @@ -100,7 +115,9 @@ for (const path of markdown) { addError(`${relativePath}: missing Verification section`) } - const links = [...source.matchAll(/\[[^\]]+\]\([^)]+\)/g)].map(([match]) => { + const links = [ + ...source.matchAll(/\[[^\]]+\]\([^)]+\)/g) + ].map(([match]) => { const start = match.lastIndexOf('](') + 2 return match.slice(start, -1) }) diff --git a/scripts/check-git-hygiene.mjs b/scripts/check-git-hygiene.mjs index b048bd63c..12af45755 100644 --- a/scripts/check-git-hygiene.mjs +++ b/scripts/check-git-hygiene.mjs @@ -51,7 +51,9 @@ function abort(message) { /** The remote half of `BASE_REF`, or null when the base ref is a local branch. */ function baseRemote(baseRef) { const [remote, ...rest] = baseRef.split('/') - return rest.length > 0 ? remote : null + return rest.length > 0 + ? remote + : null } export function classifyWorktree({ branch, dirty, ahead, prState, prNumber, prUrl, detached, isBase }) { @@ -93,7 +95,11 @@ function parseWorktrees(text) { const fields = new Map() for (const line of record.split('\n')) { const space = line.indexOf(' ') - fields.set(space === -1 ? line : line.slice(0, space), space === -1 ? true : line.slice(space + 1)) + fields.set(space === -1 + ? line + : line.slice(0, space), space === -1 + ? true + : line.slice(space + 1)) } return { path: fields.get('worktree'), @@ -159,14 +165,28 @@ function pullRequestsByBranch(slug, cwd) { } function selfTest() { - const base = { branch: 'feat/x', dirty: false, ahead: 1, prState: null, prNumber: null, prUrl: null, detached: false, isBase: false } + const base = { + branch: 'feat/x', + dirty: false, + ahead: 1, + prState: null, + prNumber: null, + prUrl: null, + detached: false, + isBase: false + } assert.equal(classifyWorktree({ ...base, prState: 'OPEN', prNumber: 1 }).ok, true) assert.equal(classifyWorktree({ ...base, dirty: true, ahead: 0 }).ok, true) assert.equal(classifyWorktree({ ...base, ahead: 0 }).ok, false) assert.equal(classifyWorktree(base).ok, false) assert.equal(classifyWorktree({ ...base, prState: 'MERGED', prNumber: 1 }).ok, false) assert.equal(classifyWorktree({ ...base, detached: true, ahead: 0 }).ok, false) - assert.equal(classifyWorktree({ ...base, branch: 'main', ahead: 0, isBase: true }).ok, true) + assert.equal(classifyWorktree({ + ...base, + branch: 'main', + ahead: 0, + isBase: true + }).ok, true) console.info('git-hygiene self-test: pass') } @@ -197,7 +217,12 @@ function main() { const failures = [] const active = [] - const prune = git(['worktree', 'prune', '--dry-run', '--verbose'], cwd) + const prune = git([ + 'worktree', + 'prune', + '--dry-run', + '--verbose' + ], cwd) if (prune) { failures.push(`stale worktree metadata:\n${prune}`) } diff --git a/scripts/generate-social-cards.js b/scripts/generate-social-cards.js index 954a9dddc..70b5f28b3 100644 --- a/scripts/generate-social-cards.js +++ b/scripts/generate-social-cards.js @@ -16,30 +16,198 @@ const WORDMARK_PATH = path.join(PUBLIC_DIR, 'brands/bluefin-wordmark.svg') * 12 months (01 through 12), Day and Night pairs. */ export const BLUEFIN_MONTHLY_WALLPAPERS = [ - { file: 'bluefin-01-day.webp', title: 'Bluefin 01 - January (Day)', month: 'January', monthIndex: 1, time: 'Day', category: 'monthly' }, - { file: 'bluefin-01-night.webp', title: 'Bluefin 01 - January (Night)', month: 'January', monthIndex: 1, time: 'Night', category: 'monthly' }, - { file: 'bluefin-02-day.webp', title: 'Bluefin 02 - February (Day)', month: 'February', monthIndex: 2, time: 'Day', category: 'monthly' }, - { file: 'bluefin-02-night.webp', title: 'Bluefin 02 - February (Night)', month: 'February', monthIndex: 2, time: 'Night', category: 'monthly' }, - { file: 'bluefin-03-day.webp', title: 'Bluefin 03 - March (Day)', month: 'March', monthIndex: 3, time: 'Day', category: 'monthly' }, - { file: 'bluefin-03-night.webp', title: 'Bluefin 03 - March (Night)', month: 'March', monthIndex: 3, time: 'Night', category: 'monthly' }, - { file: 'bluefin-04-day.webp', title: 'Bluefin 04 - April (Day)', month: 'April', monthIndex: 4, time: 'Day', category: 'monthly' }, - { file: 'bluefin-04-night.webp', title: 'Bluefin 04 - April (Night)', month: 'April', monthIndex: 4, time: 'Night', category: 'monthly' }, - { file: 'bluefin-05-day.webp', title: 'Bluefin 05 - May (Day)', month: 'May', monthIndex: 5, time: 'Day', category: 'monthly' }, - { file: 'bluefin-05-night.webp', title: 'Bluefin 05 - May (Night)', month: 'May', monthIndex: 5, time: 'Night', category: 'monthly' }, - { file: 'bluefin-06-day.webp', title: 'Bluefin 06 - June (Day)', month: 'June', monthIndex: 6, time: 'Day', category: 'monthly' }, - { file: 'bluefin-06-night.webp', title: 'Bluefin 06 - June (Night)', month: 'June', monthIndex: 6, time: 'Night', category: 'monthly' }, - { file: 'bluefin-07-day.webp', title: 'Bluefin 07 - July (Day)', month: 'July', monthIndex: 7, time: 'Day', category: 'monthly' }, - { file: 'bluefin-07-night.webp', title: 'Bluefin 07 - July (Night)', month: 'July', monthIndex: 7, time: 'Night', category: 'monthly' }, - { file: 'bluefin-08-day.webp', title: 'Bluefin 08 - August (Day)', month: 'August', monthIndex: 8, time: 'Day', category: 'monthly' }, - { file: 'bluefin-08-night.webp', title: 'Bluefin 08 - August (Night)', month: 'August', monthIndex: 8, time: 'Night', category: 'monthly' }, - { file: 'bluefin-09-day.webp', title: 'Bluefin 09 - September (Day)', month: 'September', monthIndex: 9, time: 'Day', category: 'monthly' }, - { file: 'bluefin-09-night.webp', title: 'Bluefin 09 - September (Night)', month: 'September', monthIndex: 9, time: 'Night', category: 'monthly' }, - { file: 'bluefin-10-day.webp', title: 'Bluefin 10 - October (Day)', month: 'October', monthIndex: 10, time: 'Day', category: 'monthly' }, - { file: 'bluefin-10-night.webp', title: 'Bluefin 10 - October (Night)', month: 'October', monthIndex: 10, time: 'Night', category: 'monthly' }, - { file: 'bluefin-11-day.webp', title: 'Bluefin 11 - November (Day)', month: 'November', monthIndex: 11, time: 'Day', category: 'monthly' }, - { file: 'bluefin-11-night.webp', title: 'Bluefin 11 - November (Night)', month: 'November', monthIndex: 11, time: 'Night', category: 'monthly' }, - { file: 'bluefin-12-day.webp', title: 'Bluefin 12 - December (Day)', month: 'December', monthIndex: 12, time: 'Day', category: 'monthly' }, - { file: 'bluefin-12-night.webp', title: 'Bluefin 12 - December (Night)', month: 'December', monthIndex: 12, time: 'Night', category: 'monthly' }, + { + file: 'bluefin-01-day.webp', + title: 'Bluefin 01 - January (Day)', + month: 'January', + monthIndex: 1, + time: 'Day', + category: 'monthly' + }, + { + file: 'bluefin-01-night.webp', + title: 'Bluefin 01 - January (Night)', + month: 'January', + monthIndex: 1, + time: 'Night', + category: 'monthly' + }, + { + file: 'bluefin-02-day.webp', + title: 'Bluefin 02 - February (Day)', + month: 'February', + monthIndex: 2, + time: 'Day', + category: 'monthly' + }, + { + file: 'bluefin-02-night.webp', + title: 'Bluefin 02 - February (Night)', + month: 'February', + monthIndex: 2, + time: 'Night', + category: 'monthly' + }, + { + file: 'bluefin-03-day.webp', + title: 'Bluefin 03 - March (Day)', + month: 'March', + monthIndex: 3, + time: 'Day', + category: 'monthly' + }, + { + file: 'bluefin-03-night.webp', + title: 'Bluefin 03 - March (Night)', + month: 'March', + monthIndex: 3, + time: 'Night', + category: 'monthly' + }, + { + file: 'bluefin-04-day.webp', + title: 'Bluefin 04 - April (Day)', + month: 'April', + monthIndex: 4, + time: 'Day', + category: 'monthly' + }, + { + file: 'bluefin-04-night.webp', + title: 'Bluefin 04 - April (Night)', + month: 'April', + monthIndex: 4, + time: 'Night', + category: 'monthly' + }, + { + file: 'bluefin-05-day.webp', + title: 'Bluefin 05 - May (Day)', + month: 'May', + monthIndex: 5, + time: 'Day', + category: 'monthly' + }, + { + file: 'bluefin-05-night.webp', + title: 'Bluefin 05 - May (Night)', + month: 'May', + monthIndex: 5, + time: 'Night', + category: 'monthly' + }, + { + file: 'bluefin-06-day.webp', + title: 'Bluefin 06 - June (Day)', + month: 'June', + monthIndex: 6, + time: 'Day', + category: 'monthly' + }, + { + file: 'bluefin-06-night.webp', + title: 'Bluefin 06 - June (Night)', + month: 'June', + monthIndex: 6, + time: 'Night', + category: 'monthly' + }, + { + file: 'bluefin-07-day.webp', + title: 'Bluefin 07 - July (Day)', + month: 'July', + monthIndex: 7, + time: 'Day', + category: 'monthly' + }, + { + file: 'bluefin-07-night.webp', + title: 'Bluefin 07 - July (Night)', + month: 'July', + monthIndex: 7, + time: 'Night', + category: 'monthly' + }, + { + file: 'bluefin-08-day.webp', + title: 'Bluefin 08 - August (Day)', + month: 'August', + monthIndex: 8, + time: 'Day', + category: 'monthly' + }, + { + file: 'bluefin-08-night.webp', + title: 'Bluefin 08 - August (Night)', + month: 'August', + monthIndex: 8, + time: 'Night', + category: 'monthly' + }, + { + file: 'bluefin-09-day.webp', + title: 'Bluefin 09 - September (Day)', + month: 'September', + monthIndex: 9, + time: 'Day', + category: 'monthly' + }, + { + file: 'bluefin-09-night.webp', + title: 'Bluefin 09 - September (Night)', + month: 'September', + monthIndex: 9, + time: 'Night', + category: 'monthly' + }, + { + file: 'bluefin-10-day.webp', + title: 'Bluefin 10 - October (Day)', + month: 'October', + monthIndex: 10, + time: 'Day', + category: 'monthly' + }, + { + file: 'bluefin-10-night.webp', + title: 'Bluefin 10 - October (Night)', + month: 'October', + monthIndex: 10, + time: 'Night', + category: 'monthly' + }, + { + file: 'bluefin-11-day.webp', + title: 'Bluefin 11 - November (Day)', + month: 'November', + monthIndex: 11, + time: 'Day', + category: 'monthly' + }, + { + file: 'bluefin-11-night.webp', + title: 'Bluefin 11 - November (Night)', + month: 'November', + monthIndex: 11, + time: 'Night', + category: 'monthly' + }, + { + file: 'bluefin-12-day.webp', + title: 'Bluefin 12 - December (Day)', + month: 'December', + monthIndex: 12, + time: 'Day', + category: 'monthly' + }, + { + file: 'bluefin-12-night.webp', + title: 'Bluefin 12 - December (Night)', + month: 'December', + monthIndex: 12, + time: 'Night', + category: 'monthly' + }, ] /** @@ -67,7 +235,10 @@ export const BLUEFIN_EXTRA_WALLPAPERS = [ * Returns the verified wallpaper pool, ensuring no Aurora or Xe assets exist. */ export function getAllowedWallpapers() { - const all = [...BLUEFIN_MONTHLY_WALLPAPERS, ...BLUEFIN_EXTRA_WALLPAPERS] + const all = [ + ...BLUEFIN_MONTHLY_WALLPAPERS, + ...BLUEFIN_EXTRA_WALLPAPERS + ] const excludedPattern = /aurora|xe_/i return all.filter(item => !excludedPattern.test(item.file)) } @@ -124,7 +295,13 @@ export function selectRandomWallpaper(pool = getAllowedWallpapers(), randomFn = */ export function convertPngToWebp(pngPath, webpPath, quality = 90) { try { - execFileSync('cwebp', ['-q', String(quality), pngPath, '-o', webpPath], { stdio: 'pipe' }) + execFileSync('cwebp', [ + '-q', + String(quality), + pngPath, + '-o', + webpPath + ], { stdio: 'pipe' }) return true } catch { @@ -239,7 +416,9 @@ if (process.argv[1] && path.resolve(process.argv[1]) === path.resolve(fileURLToP const wallpaperArgIdx = args.indexOf('--wallpaper') const monthArgIdx = args.indexOf('--month') const modeArgIdx = args.indexOf('--mode') - const mode = modeArgIdx !== -1 ? args[modeArgIdx + 1] : 'monthly' + const mode = modeArgIdx !== -1 + ? args[modeArgIdx + 1] + : 'monthly' let selectedWallpaper = null @@ -285,7 +464,11 @@ if (process.argv[1] && path.resolve(process.argv[1]) === path.resolve(fileURLToP console.info(` ✓ ${outName}`) } // Also write active rotating card to public/meta.webp - await generateSocialCard({ wallpaper: selectedWallpaper, outputPath: path.join(PUBLIC_DIR, 'meta.webp'), browser }) + await generateSocialCard({ + wallpaper: selectedWallpaper, + outputPath: path.join(PUBLIC_DIR, 'meta.webp'), + browser + }) console.info(`Selected ${selectedWallpaper.file} for public/meta.webp (${selectedWallpaper.title})`) } finally { diff --git a/scripts/generate-wallpapers.js b/scripts/generate-wallpapers.js index 3cc1e35c8..d2815b08b 100644 --- a/scripts/generate-wallpapers.js +++ b/scripts/generate-wallpapers.js @@ -339,7 +339,9 @@ async function generate() { name: stem, ...dayNightNames(stem, file, nightFile), title: formatTitle(stem), - ...(wideAspectStems.has(stem) ? { fit: 'cover' } : {}) + ...(wideAspectStems.has(stem) + ? { fit: 'cover' } + : {}) }) processedStory.add(file) processedStory.add(nightFile) @@ -355,7 +357,9 @@ async function generate() { name: stem, ...dayNightNames(stem, dayFile, file), title: formatTitle(stem), - ...(wideAspectStems.has(stem) ? { fit: 'cover' } : {}) + ...(wideAspectStems.has(stem) + ? { fit: 'cover' } + : {}) }) processedStory.add(dayFile) processedStory.add(file) @@ -369,8 +373,12 @@ async function generate() { type: 'single', name: `wolves/wolves/${file}`, title: formatTitle(base), - ...(description ? { description } : {}), - ...(wideAspectStems.has(base) ? { fit: 'cover' } : {}) + ...(description + ? { description } + : {}), + ...(wideAspectStems.has(base) + ? { fit: 'cover' } + : {}) }) processedStory.add(file) } @@ -393,8 +401,12 @@ async function generate() { type: 'single', name: `wolves/people/${file}`, title: formatTitle(base), - ...(description ? { description } : {}), - ...(titleOnlyTheaterCaptions.has(base) ? { theaterTitleOnly: true } : {}) + ...(description + ? { description } + : {}), + ...(titleOnlyTheaterCaptions.has(base) + ? { theaterTitleOnly: true } + : {}) }) } @@ -448,7 +460,9 @@ async function generate() { } const inner = entries .map(([key, v]) => { - const safeKey = IDENTIFIER_RE.test(key) ? key : `'${key.replace(/'/g, '\\\'')}'` + const safeKey = IDENTIFIER_RE.test(key) + ? key + : `'${key.replace(/'/g, '\\\'')}'` return `${indent} ${safeKey}: ${serializeValue(v, `${indent} `)}` }) .join(',\n') diff --git a/scripts/guardian-cards/capture-scenes.mjs b/scripts/guardian-cards/capture-scenes.mjs index aae0a73b1..b033704b6 100644 --- a/scripts/guardian-cards/capture-scenes.mjs +++ b/scripts/guardian-cards/capture-scenes.mjs @@ -18,7 +18,9 @@ import { chromium } from 'playwright' const here = path.dirname(fileURLToPath(import.meta.url)) const { characters } = JSON.parse(fs.readFileSync(path.join(here, 'characters.json'), 'utf8')) const only = process.argv.slice(2) -const selected = only.length ? characters.filter(character => only.includes(character.slug)) : characters +const selected = only.length + ? characters.filter(character => only.includes(character.slug)) + : characters fs.mkdirSync(path.join(here, 'scenes'), { recursive: true }) @@ -30,7 +32,9 @@ const server = http.createServer((req, res) => { await new Promise(resolve => server.listen(4175, resolve)) const browser = await chromium.launch() -const page = await browser.newPage({ viewport: { width: 1280, height: 720 } }) +const page = await browser.newPage({ + viewport: { width: 1280, height: 720 } +}) let currentVideo = '' for (const character of selected) { @@ -50,7 +54,12 @@ for (const character of selected) { // Crop to the letterboxed footage region inside the 16:9 player. await page.screenshot({ path: path.join(here, 'scenes', `${character.slug}.png`), - clip: { x: 0, y: 96, width: 1280, height: 530 }, + clip: { + x: 0, + y: 96, + width: 1280, + height: 530 + }, }) console.info(`captured scenes/${character.slug}.png at ~${character.sceneTime}s of ${character.videoId}`) } diff --git a/scripts/guardian-cards/generate.mjs b/scripts/guardian-cards/generate.mjs index af48a45c6..8a7c8bda0 100644 --- a/scripts/guardian-cards/generate.mjs +++ b/scripts/guardian-cards/generate.mjs @@ -19,12 +19,17 @@ const repo = path.resolve(here, '..', '..') const outDir = path.join(repo, 'public', 'wolves', 'characters') const { characters } = JSON.parse(fs.readFileSync(path.join(here, 'characters.json'), 'utf8')) const only = process.argv.slice(2) -const selected = only.length ? characters.filter(character => only.includes(character.slug)) : characters +const selected = only.length + ? characters.filter(character => only.includes(character.slug)) + : characters fs.mkdirSync(outDir, { recursive: true }) const browser = await chromium.launch() -const page = await browser.newPage({ viewport: { width: 1200, height: 630 }, deviceScaleFactor: 1 }) +const page = await browser.newPage({ + viewport: { width: 1200, height: 630 }, + deviceScaleFactor: 1 +}) for (const character of selected) { const scene = path.join(here, 'scenes', `${character.slug}.png`) @@ -56,7 +61,9 @@ for (const character of selected) { } await page.goto(`file://${here}/card.html?${params}`) await page.waitForLoadState('networkidle') - await page.screenshot({ path: path.join(outDir, `${character.slug}.png`) }) + await page.screenshot({ + path: path.join(outDir, `${character.slug}.png`) + }) const target = `https://youtu.be/${character.videoId}?t=${character.linkTime}` const heading = `${character.class} — ${character.name}` diff --git a/scripts/lib/bluefin-version-projection.js b/scripts/lib/bluefin-version-projection.js index 0e64f7f6f..27a0a8f15 100644 --- a/scripts/lib/bluefin-version-projection.js +++ b/scripts/lib/bluefin-version-projection.js @@ -93,7 +93,9 @@ export function projectBluefinStreams(auditResult, checkedAt) { function normalizeVals(vals) { const out = {} for (const [k, v] of Object.entries(vals)) { - out[k] = k === 'base' ? v : normalizeUserVersion(v) + out[k] = k === 'base' + ? v + : normalizeUserVersion(v) } return out } diff --git a/scripts/lib/image-sbom-registry.js b/scripts/lib/image-sbom-registry.js index 56f55a950..227b3c95c 100644 --- a/scripts/lib/image-sbom-registry.js +++ b/scripts/lib/image-sbom-registry.js @@ -26,7 +26,10 @@ function freezePackage(record) { function freezeRecord(record) { const packages = Object.fromEntries( - Object.entries(record.packages).map(([field, pkg]) => [field, freezePackage(Object.freeze({ ...pkg }))]), + Object.entries(record.packages).map(([field, pkg]) => [ + field, + freezePackage(Object.freeze({ ...pkg })) + ]), ) return Object.freeze({ @@ -120,16 +123,31 @@ export const IMAGE_SBOM_REGISTRY = Object.freeze([ // mesa-dri-drivers from rpm-db-cataloger is used as the representative // of the installed Mesa source build regardless of which ELF version // is higher. - mesa: { name: 'mesa-dri-drivers', type: 'rpm', foundBy: 'rpm-db-cataloger', required: false }, + mesa: { + name: 'mesa-dri-drivers', + type: 'rpm', + foundBy: 'rpm-db-cataloger', + required: false + }, // Same OSTree-retained-object ambiguity as mesa above: the ELF // cataloger reports systemd from both the live rootfs and older // objects retained in the OSTree repository, at distinct versions. // The RPM database is the authority on what is installed. - systemd: { name: 'systemd', type: 'rpm', foundBy: 'rpm-db-cataloger', required: false }, + systemd: { + name: 'systemd', + type: 'rpm', + foundBy: 'rpm-db-cataloger', + required: false + }, // The RPM database is the shipped-package authority; the ELF binary // cataloger reports the same build without its epoch, which reads as an // ambiguity. The projection strips the epoch for display. - podman: { name: 'podman', type: 'rpm', foundBy: 'rpm-db-cataloger', required: false }, + podman: { + name: 'podman', + type: 'rpm', + foundBy: 'rpm-db-cataloger', + required: false + }, pipewire: { name: 'pipewire', required: false }, flatpak: { name: 'flatpak', required: false }, }, diff --git a/scripts/lib/image-version-audit.js b/scripts/lib/image-version-audit.js index 1ea25d621..7d8dad065 100644 --- a/scripts/lib/image-version-audit.js +++ b/scripts/lib/image-version-audit.js @@ -8,7 +8,12 @@ import { EvidenceError } from './verified-image-sbom.js' * Fields that appear in a generated output block but are never derived from an * image SBOM, so their disappearance is not evidence loss. */ -const NON_SBOM_FIELDS = new Set(['status', 'checkedAt', 'sources', 'isos']) +const NON_SBOM_FIELDS = new Set([ + 'status', + 'checkedAt', + 'sources', + 'isos' +]) /** * Partition extraction results into required and optional ambiguity. @@ -133,7 +138,9 @@ export async function verifyRegistry(records, dependencies) { } if (extraction.missingRequired.length > 0 || ambiguousRequired.length > 0) { - const errorCode = extraction.missingRequired.length > 0 ? 'missing-required' : 'ambiguous-required' + const errorCode = extraction.missingRequired.length > 0 + ? 'missing-required' + : 'ambiguous-required' const detail = extraction.missingRequired.length > 0 ? `missing required fields: ${extraction.missingRequired.join(', ')}` : `ambiguous required fields: ${ambiguousRequired.join(', ')}` @@ -147,7 +154,9 @@ export async function verifyRegistry(records, dependencies) { } if (extraction.missingOptional.length > 0 || ambiguousOptional.length > 0) { - const errorCode = ambiguousOptional.length > 0 ? 'ambiguous-optional' : 'missing-optional' + const errorCode = ambiguousOptional.length > 0 + ? 'ambiguous-optional' + : 'missing-optional' const detail = ambiguousOptional.length > 0 ? `ambiguous optional fields: ${ambiguousOptional.join(', ')}` : `missing optional fields: ${extraction.missingOptional.join(', ')}` @@ -275,7 +284,10 @@ export function assertExplainedFieldLoss(options) { return } - const ignored = new Set([...NON_SBOM_FIELDS, ...ignore]) + const ignored = new Set([ + ...NON_SBOM_FIELDS, + ...ignore + ]) const removed = Object.keys(previous).filter(key => !ignored.has(key) && !(key in next)) if (removed.length === 0) { return @@ -390,7 +402,10 @@ export function writeOutputsAtomically(outputs, destinationRoot, options = {}) { fsImpl.mkdirSync(tmpFileDir, { recursive: true }) } fsImpl.writeFileSync(tmpPath, serialize(content), 'utf8') - staged.push({ tmpPath, finalPath: path.join(destinationRoot, filename) }) + staged.push({ + tmpPath, + finalPath: path.join(destinationRoot, filename) + }) } // Ensure final directories exist for (const { finalPath } of staged) { diff --git a/scripts/lib/oci-sbom.js b/scripts/lib/oci-sbom.js index ea4af1162..55911d9a2 100644 --- a/scripts/lib/oci-sbom.js +++ b/scripts/lib/oci-sbom.js @@ -105,6 +105,8 @@ export function compareVersions(a, b) { * @returns {string|undefined} */ export function spdxPackageVersion(sbom, name) { - const { values } = extractMappedVersions(sbom, { _field: { name } }) + const { values } = extractMappedVersions(sbom, { + _field: { name } + }) return values._field } diff --git a/scripts/lib/sbom-issue-report.js b/scripts/lib/sbom-issue-report.js index 7776ff03b..1c7ceff7b 100644 --- a/scripts/lib/sbom-issue-report.js +++ b/scripts/lib/sbom-issue-report.js @@ -151,7 +151,11 @@ export function buildSbomIssuePlan(audit, openIssues, options = {}) { plan.update.push({ number: existing.number, title, body }) } else { - plan.create.push({ title, body, labels: ['bug', 'automation'] }) + plan.create.push({ + title, + body, + labels: ['bug', 'automation'] + }) } } diff --git a/scripts/lib/sbom-issue-sync.js b/scripts/lib/sbom-issue-sync.js index dfe93af24..c18dfb303 100644 --- a/scripts/lib/sbom-issue-sync.js +++ b/scripts/lib/sbom-issue-sync.js @@ -62,7 +62,9 @@ export async function syncSbomIssues(deps) { const audit = JSON.parse(fsImpl.readFileSync(auditPath, 'utf8')) const openIssues = await listOpenAutomationIssues(github, context) - const plan = buildSbomIssuePlan(audit, openIssues, { workflowUrl: workflowRunUrl(context) }) + const plan = buildSbomIssuePlan(audit, openIssues, { + workflowUrl: workflowRunUrl(context) + }) for (const item of plan.create) { await github.rest.issues.create({ diff --git a/scripts/lib/spdx-version-extractor.js b/scripts/lib/spdx-version-extractor.js index 9dbf43077..43bb27fe1 100644 --- a/scripts/lib/spdx-version-extractor.js +++ b/scripts/lib/spdx-version-extractor.js @@ -99,7 +99,9 @@ export function extractMappedVersions(sbom, mappings) { } // De-duplicate (identical versions from different build elements are safe) - const distinct = [...new Set(accepted)] + const distinct = [ + ...new Set(accepted) + ] if (distinct.length === 0) { if (mapping.required) { @@ -117,5 +119,11 @@ export function extractMappedVersions(sbom, mappings) { } } - return { values, missingRequired, missingOptional, ambiguous, rejected } + return { + values, + missingRequired, + missingOptional, + ambiguous, + rejected + } } diff --git a/scripts/lib/verified-image-sbom.js b/scripts/lib/verified-image-sbom.js index 083b0a2a9..ee111ad6e 100644 --- a/scripts/lib/verified-image-sbom.js +++ b/scripts/lib/verified-image-sbom.js @@ -37,7 +37,9 @@ export class ToolingError extends Error { /** Every text surface a child-process failure can hide its cause in. */ function failureText(err) { return [err?.message, err?.stderr, err?.stdout] - .map(part => (typeof part === 'string' ? part : (part?.toString?.() ?? ''))) + .map(part => (typeof part === 'string' + ? part + : (part?.toString?.() ?? ''))) .join('\n') } @@ -69,7 +71,13 @@ export function classifyToolFailure(err, tool) { if (TRANSPORT_PATTERN.test(text)) { return new ToolingError('transport', tool, `${tool} could not reach the registry: ${text}`) } - if (typeof err?.code === 'string' && ['EACCES', 'EIO', 'ENOSPC', 'EMFILE', 'ENOENT'].includes(err.code)) { + if (typeof err?.code === 'string' && [ + 'EACCES', + 'EIO', + 'ENOSPC', + 'EMFILE', + 'ENOENT' + ].includes(err.code)) { return new ToolingError('tool-io', tool, `${tool} failed with a local I/O error (${err.code}): ${text}`) } return null @@ -93,7 +101,12 @@ function describesAbsence(err) { */ export function resolveImageDigest(image, run = execFileSync) { try { - const result = JSON.parse(run('oras', ['manifest', 'fetch', '--descriptor', image], { encoding: 'utf8' })) + const result = JSON.parse(run('oras', [ + 'manifest', + 'fetch', + '--descriptor', + image + ], { encoding: 'utf8' })) const repository = image.replace(/[:@].*$/, '') return `${repository}@${result.digest}` } @@ -118,7 +131,12 @@ export function resolveImageDigest(image, run = execFileSync) { export function discoverReferrers(imageAtDigest, run = execFileSync) { let raw try { - raw = run('oras', ['discover', '--format', 'json', imageAtDigest], { encoding: 'utf8' }) + raw = run('oras', [ + 'discover', + '--format', + 'json', + imageAtDigest + ], { encoding: 'utf8' }) } catch (err) { const tooling = classifyToolFailure(err, 'oras') @@ -226,7 +244,12 @@ export function verifySbomSignature(repository, digest, policy, run = execFileSy export function pullSpdxReferrer(repository, digest, run = execFileSync, fsImpl = fs) { const outputDir = fsImpl.mkdtempSync(path.join(os.tmpdir(), 'website-sbom-')) try { - run('oras', ['pull', `${repository}@${digest}`, '--output', outputDir], { encoding: 'utf8' }) + run('oras', [ + 'pull', + `${repository}@${digest}`, + '--output', + outputDir + ], { encoding: 'utf8' }) const files = fsImpl.readdirSync(outputDir) const jsonFile = files.find(name => name.endsWith('.json')) if (!jsonFile) { diff --git a/scripts/test-baseline.mjs b/scripts/test-baseline.mjs index c382e9a1b..6e014830f 100644 --- a/scripts/test-baseline.mjs +++ b/scripts/test-baseline.mjs @@ -33,8 +33,15 @@ const reportPath = join(mkdtempSync(join(tmpdir(), 'wolves-baseline-')), 'vitest try { execFileSync( 'npx', - ['vitest', 'run', '--reporter=json', `--outputFile=${reportPath}`], - { stdio: ['ignore', 'ignore', 'inherit'] }, + [ + 'vitest', + 'run', + '--reporter=json', + `--outputFile=${reportPath}` + ], + { + stdio: ['ignore', 'ignore', 'inherit'] + }, ) } catch { diff --git a/scripts/tests/bluefin-version-projection.test.ts b/scripts/tests/bluefin-version-projection.test.ts index 310131c04..ca27907ea 100644 --- a/scripts/tests/bluefin-version-projection.test.ts +++ b/scripts/tests/bluefin-version-projection.test.ts @@ -72,7 +72,10 @@ const LTS_NVIDIA = { describe('projectBluefinStreams', () => { it('stable values come from bluefin-stable with normalized versions', () => { const result = projectBluefinStreams( - { checkedAt: '2026-08-26T00:00:00Z', images: [STABLE_BASE] }, + { + checkedAt: '2026-08-26T00:00:00Z', + images: [STABLE_BASE] + }, ) expect(result.stable.status).toBe('verified') expect(result.stable.kernel).toBe('7.0.12-201') @@ -82,19 +85,28 @@ describe('projectBluefinStreams', () => { it('stable nvidia comes only from bluefin-stable-nvidia, epoch stripped', () => { const withNvidia = projectBluefinStreams( - { checkedAt: '2026-08-26T00:00:00Z', images: [STABLE_BASE, STABLE_NVIDIA] }, + { + checkedAt: '2026-08-26T00:00:00Z', + images: [STABLE_BASE, STABLE_NVIDIA] + }, ) expect(withNvidia.stable.nvidia).toBe('610.57.04-1') const withoutNvidia = projectBluefinStreams( - { checkedAt: '2026-08-26T00:00:00Z', images: [STABLE_BASE] }, + { + checkedAt: '2026-08-26T00:00:00Z', + images: [STABLE_BASE] + }, ) expect(withoutNvidia.stable.nvidia).toBeUndefined() }) it('missing optional nvidia/hwe images omit those fields', () => { const result = projectBluefinStreams( - { checkedAt: '2026-08-26T00:00:00Z', images: [STABLE_BASE] }, + { + checkedAt: '2026-08-26T00:00:00Z', + images: [STABLE_BASE] + }, ) expect(result.stable.nvidia).toBeUndefined() expect(result.stable.hwe).toBeUndefined() @@ -103,7 +115,10 @@ describe('projectBluefinStreams', () => { it('currently pending LTS SBOM returns status unavailable with no versions', () => { // When LTS images are not in the audit (pendingSbom skips them) const result = projectBluefinStreams( - { checkedAt: '2026-08-26T00:00:00Z', images: [STABLE_BASE] }, + { + checkedAt: '2026-08-26T00:00:00Z', + images: [STABLE_BASE] + }, ) expect(result.lts.status).toBe('unavailable') expect(result.lts.kernel).toBeUndefined() @@ -114,7 +129,10 @@ describe('projectBluefinStreams', () => { it('no literal "unknown" appears in serialized YAML', () => { // Full result with some missing images const result = projectBluefinStreams( - { checkedAt: '2026-08-26T00:00:00Z', images: [STABLE_BASE, STABLE_NVIDIA] }, + { + checkedAt: '2026-08-26T00:00:00Z', + images: [STABLE_BASE, STABLE_NVIDIA] + }, ) const yaml = dumpYaml(result) expect(yaml).not.toContain('unknown') @@ -122,7 +140,15 @@ describe('projectBluefinStreams', () => { it('lTS fields come from their respective images when verified', () => { const result = projectBluefinStreams( - { checkedAt: '2026-08-26T00:00:00Z', images: [STABLE_BASE, LTS_BASE, LTS_HWE, LTS_NVIDIA] }, + { + checkedAt: '2026-08-26T00:00:00Z', + images: [ + STABLE_BASE, + LTS_BASE, + LTS_HWE, + LTS_NVIDIA + ] + }, ) expect(result.lts.status).toBe('verified') expect(result.lts.kernel).toBe('6.12.0-233') @@ -140,9 +166,12 @@ describe('projectBluefinStreams', () => { it('unavailable stable when bluefin-stable fails verification', () => { const result = projectBluefinStreams( - { checkedAt: '2026-08-26T00:00:00Z', images: [ - { ...STABLE_BASE, status: 'unavailable', values: undefined }, - ] }, + { + checkedAt: '2026-08-26T00:00:00Z', + images: [ + { ...STABLE_BASE, status: 'unavailable', values: undefined }, + ] + }, ) expect(result.stable.status).toBe('unavailable') expect(result.stable.kernel).toBeUndefined() @@ -174,7 +203,10 @@ describe('yAML serialization', () => { it('full serialization with partial optional data contains no literal unknown', () => { // Stable verified with NVIDIA, LTS unavailable (partial data) const result = projectBluefinStreams( - { checkedAt: '2026-08-26T00:00:00Z', images: [STABLE_BASE, STABLE_NVIDIA] }, + { + checkedAt: '2026-08-26T00:00:00Z', + images: [STABLE_BASE, STABLE_NVIDIA] + }, ) const yaml = dumpYaml(result) expect(yaml).not.toContain('unknown') @@ -196,7 +228,10 @@ describe('projectBluefinStreams — degraded evidence', () => { } delete degradedStable.values.mesa - const result = projectBluefinStreams({ checkedAt: '2026-08-26T00:00:00Z', images: [degradedStable] }) + const result = projectBluefinStreams({ + checkedAt: '2026-08-26T00:00:00Z', + images: [degradedStable] + }) expect(result.stable.status).toBe('verified') expect(result.stable.kernel).toBe('7.0.12-201') @@ -261,7 +296,10 @@ describe('projectBluefinStreams — degraded evidence', () => { values: { ...STABLE_BASE.values, podman: '5:5.8.4-1.fc44' }, } - const result = projectBluefinStreams({ checkedAt: '2026-08-26T00:00:00Z', images: [withPodman] }) + const result = projectBluefinStreams({ + checkedAt: '2026-08-26T00:00:00Z', + images: [withPodman] + }) expect(result.stable.podman).toBe('5.8.4-1') }) diff --git a/scripts/tests/check-docs.test.ts b/scripts/tests/check-docs.test.ts index d65b8a550..ff8745778 100644 --- a/scripts/tests/check-docs.test.ts +++ b/scripts/tests/check-docs.test.ts @@ -79,7 +79,9 @@ function makeRepo(): string { function run(root: string): RunResult { try { - const stdout = execFileSync(process.execPath, [join(root, 'scripts', 'check-docs.mjs')], { + const stdout = execFileSync(process.execPath, [ + join(root, 'scripts', 'check-docs.mjs') + ], { encoding: 'utf8', stdio: ['ignore', 'pipe', 'pipe'], }) @@ -137,7 +139,15 @@ describe('check-docs gate: required and banned paths', () => { expect(result.stderr).toContain('missing required file: docs/README.md') }) - it.each(['IMPROVEMENTS.md', 'CHANGELOG.md', 'CHANGES.md', 'SESSION.md', 'NOTES.md', 'PLAN.md', 'TODO.md'])( + it.each([ + 'IMPROVEMENTS.md', + 'CHANGELOG.md', + 'CHANGES.md', + 'SESSION.md', + 'NOTES.md', + 'PLAN.md', + 'TODO.md' + ])( 'rejects the banned agent changelog %s', (banned) => { const root = makeRepo() @@ -273,7 +283,12 @@ describe('check-docs gate: link checking', () => { expect(result.status).toBe(0) }) - it.each(['https://example.com/x.md', 'http://example.com/x.md', 'mailto:hi@example.com', '#anchor'])( + it.each([ + 'https://example.com/x.md', + 'http://example.com/x.md', + 'mailto:hi@example.com', + '#anchor' + ])( 'skips the non-local link %s', (link) => { const root = makeRepo() diff --git a/scripts/tests/check-git-hygiene.test.ts b/scripts/tests/check-git-hygiene.test.ts index 661e5cf35..1be7d77b9 100644 --- a/scripts/tests/check-git-hygiene.test.ts +++ b/scripts/tests/check-git-hygiene.test.ts @@ -62,7 +62,9 @@ function stubGh(root: string, { stdout = '[]', status = 0, stderr = '' } = {}) { `cat <<'GH_STUB_EOF'`, stdout, 'GH_STUB_EOF', - stderr ? `printf '%s\\n' ${JSON.stringify(stderr)} >&2` : '', + stderr + ? `printf '%s\\n' ${JSON.stringify(stderr)} >&2` + : '', `exit ${status}`, '', ].join('\n')) @@ -79,7 +81,9 @@ function runChecker(repository: string, { bin, args = [] as string[] } = {} as { // `main` is both the base ref and the branch the checker treats as the // base branch, so the fixture needs no second remote-tracking ref. GIT_HYGIENE_BASE: 'main', - PATH: bin ? `${bin}:${process.env.PATH}` : process.env.PATH, + PATH: bin + ? `${bin}:${process.env.PATH}` + : process.env.PATH, }, }) return { ...result, output: `${result.stdout}${result.stderr}` } @@ -102,7 +106,9 @@ function pullRequest(overrides: Record = {}) { describe('check-git-hygiene --self-test', () => { it('passes without touching git or gh', () => { const { repository } = createRepository() - const result = runChecker(repository, { args: ['--self-test'] }) + const result = runChecker(repository, { + args: ['--self-test'] + }) expect(result.status).toBe(0) expect(result.output).toContain('git-hygiene self-test: pass') @@ -112,7 +118,9 @@ describe('check-git-hygiene --self-test', () => { describe('check-git-hygiene', () => { it('passes on a checkout holding only the base branch', () => { const { root, repository } = createRepository() - const result = runChecker(repository, { bin: stubGh(root) }) + const result = runChecker(repository, { + bin: stubGh(root) + }) expect(result.output).toContain('Git hygiene: pass') expect(result.status).toBe(0) @@ -121,7 +129,9 @@ describe('check-git-hygiene', () => { it('reports local edits on the base branch as active work, not a failure', () => { const { root, repository } = createRepository() writeFileSync(join(repository, 'dirty.txt'), 'uncommitted\n') - const result = runChecker(repository, { bin: stubGh(root) }) + const result = runChecker(repository, { + bin: stubGh(root) + }) expect(result.output).toContain('base branch has local edits') expect(result.status).toBe(0) @@ -132,7 +142,9 @@ describe('check-git-hygiene', () => { git(repository, 'checkout', '--quiet', '-b', 'feat/x') commit(repository, 'work') git(repository, 'checkout', '--quiet', 'main') - const result = runChecker(repository, { bin: stubGh(root) }) + const result = runChecker(repository, { + bin: stubGh(root) + }) expect(result.output).toContain('local branch [feat/x]') expect(result.output).toContain('is 1 commit(s) ahead of main but has no open PR') @@ -142,7 +154,9 @@ describe('check-git-hygiene', () => { it('fails an unmounted clean branch with no commits and no PR', () => { const { root, repository } = createRepository() git(repository, 'branch', 'feat/x') - const result = runChecker(repository, { bin: stubGh(root) }) + const result = runChecker(repository, { + bin: stubGh(root) + }) expect(result.output).toContain('has no commits beyond main and no open PR') expect(result.status).toBe(1) @@ -153,7 +167,11 @@ describe('check-git-hygiene', () => { git(repository, 'checkout', '--quiet', '-b', 'feat/x') commit(repository, 'work') git(repository, 'checkout', '--quiet', 'main') - const bin = stubGh(root, { stdout: JSON.stringify([pullRequest()]) }) + const bin = stubGh(root, { + stdout: JSON.stringify([ + pullRequest() + ]) + }) const result = runChecker(repository, { bin }) expect(result.output).toContain('active PR #7 (https://github.com/projectbluefin/website/pull/7)') @@ -165,7 +183,11 @@ describe('check-git-hygiene', () => { git(repository, 'checkout', '--quiet', '-b', 'feat/x') commit(repository, 'work') git(repository, 'checkout', '--quiet', 'main') - const bin = stubGh(root, { stdout: JSON.stringify([pullRequest({ state })]) }) + const bin = stubGh(root, { + stdout: JSON.stringify([ + pullRequest({ state }) + ]) + }) const result = runChecker(repository, { bin }) expect(result.output).toContain(`PR #7 is ${state.toLowerCase()}`) @@ -179,7 +201,11 @@ describe('check-git-hygiene', () => { commit(repository, 'work') git(repository, 'checkout', '--quiet', 'main') const bin = stubGh(root, { - stdout: JSON.stringify([pullRequest({ headRepositoryOwner: { login: 'a-fork-owner' } })]), + stdout: JSON.stringify([ + pullRequest({ + headRepositoryOwner: { login: 'a-fork-owner' } + }) + ]), }) const result = runChecker(repository, { bin }) @@ -213,7 +239,9 @@ describe('check-git-hygiene', () => { git(repository, 'worktree', 'add', '--quiet', '-b', 'feat/dirty', dirty) writeFileSync(join(dirty, 'wip.txt'), 'in progress\n') git(repository, 'worktree', 'add', '--quiet', '--detach', detached) - const result = runChecker(repository, { bin: stubGh(root) }) + const result = runChecker(repository, { + bin: stubGh(root) + }) expect(result.output).toContain('dirty work in progress on a fresh branch') expect(result.output).toContain('clean detached worktree with no open PR') @@ -225,7 +253,9 @@ describe('check-git-hygiene', () => { const abandoned = join(root, 'abandoned-worktree') git(repository, 'worktree', 'add', '--quiet', '-b', 'feat/abandoned', abandoned) rmSync(abandoned, { force: true, recursive: true }) - const result = runChecker(repository, { bin: stubGh(root) }) + const result = runChecker(repository, { + bin: stubGh(root) + }) expect(result.output).toContain(`${abandoned}: marked prunable by git`) // The prunable record still claims the branch, so the local-branch sweep @@ -264,7 +294,9 @@ describe('check-git-hygiene', () => { it('rejects an upstream remote that is not a GitHub repository', () => { const { root, repository } = createRepository('https://git.example.invalid/projectbluefin/website.git') - const result = runChecker(repository, { bin: stubGh(root) }) + const result = runChecker(repository, { + bin: stubGh(root) + }) expect(result.output).toContain('cannot derive GitHub repository from upstream URL') expect(result.status).not.toBe(0) @@ -275,7 +307,9 @@ describe('check-git-hygiene', () => { ['https://github.com/projectbluefin/website'], ])('derives the repository slug from upstream URL %s', (url) => { const { root, repository } = createRepository(url) - const result = runChecker(repository, { bin: stubGh(root) }) + const result = runChecker(repository, { + bin: stubGh(root) + }) expect(result.output).not.toContain('cannot derive GitHub repository') expect(result.status).toBe(0) @@ -302,7 +336,9 @@ describe('check-git-hygiene', () => { it('names the missing remote when the base ref remote is not configured', () => { const { root, repository } = createRepository() git(repository, 'remote', 'remove', 'upstream') - const result = runChecker(repository, { bin: stubGh(root) }) + const result = runChecker(repository, { + bin: stubGh(root) + }) expect(result.status).toBe(2) expect(result.output).toContain('no git remote named "upstream"') diff --git a/scripts/tests/dakota-version-projection.test.ts b/scripts/tests/dakota-version-projection.test.ts index d7b5411a7..236059410 100644 --- a/scripts/tests/dakota-version-projection.test.ts +++ b/scripts/tests/dakota-version-projection.test.ts @@ -11,7 +11,15 @@ const BASE_VERIFIED = { imageDigest: IMAGE_DIGEST, sbomDigest: SBOM_DIGEST, status: 'verified', - values: { kernel: '7.0.7', gnome: '50.2', mesa: '26.1.0', systemd: '260.2', pipewire: '1.6.1', flatpak: '1.16.6', bootc: '1.15.2' }, + values: { + kernel: '7.0.7', + gnome: '50.2', + mesa: '26.1.0', + systemd: '260.2', + pipewire: '1.6.1', + flatpak: '1.16.6', + bootc: '1.15.2' + }, } const NVIDIA_VERIFIED = { @@ -41,7 +49,10 @@ const METADATA = { describe('projectDakotaVersions', () => { it('base fields come only from dakota', () => { const result = projectDakotaVersions( - { checkedAt: '2026-08-26T00:00:00Z', images: [BASE_VERIFIED] }, + { + checkedAt: '2026-08-26T00:00:00Z', + images: [BASE_VERIFIED] + }, METADATA, ) expect(result.status).toBe('verified') @@ -51,13 +62,19 @@ describe('projectDakotaVersions', () => { it('nVIDIA comes only from dakota-nvidia', () => { const result = projectDakotaVersions( - { checkedAt: '2026-08-26T00:00:00Z', images: [BASE_VERIFIED, NVIDIA_VERIFIED] }, + { + checkedAt: '2026-08-26T00:00:00Z', + images: [BASE_VERIFIED, NVIDIA_VERIFIED] + }, METADATA, ) expect(result.packages.nvidia).toBe('595.71.05') // nvidia does NOT appear from base const baseOnly = projectDakotaVersions( - { checkedAt: '2026-08-26T00:00:00Z', images: [BASE_VERIFIED] }, + { + checkedAt: '2026-08-26T00:00:00Z', + images: [BASE_VERIFIED] + }, METADATA, ) expect(baseOnly.packages.nvidia).toBeUndefined() @@ -65,7 +82,10 @@ describe('projectDakotaVersions', () => { it('oGC appears only from verified dakota-gaming', () => { const result = projectDakotaVersions( - { checkedAt: '2026-08-26T00:00:00Z', images: [BASE_VERIFIED, GAMING_VERIFIED] }, + { + checkedAt: '2026-08-26T00:00:00Z', + images: [BASE_VERIFIED, GAMING_VERIFIED] + }, METADATA, ) expect(result.packages['ogc-kernel']).toBe('7.1.8-ogc1') @@ -73,7 +93,10 @@ describe('projectDakotaVersions', () => { it('missing gaming SBOM omits OGC without affecting base Dakota', () => { const result = projectDakotaVersions( - { checkedAt: '2026-08-26T00:00:00Z', images: [BASE_VERIFIED, NVIDIA_VERIFIED] }, + { + checkedAt: '2026-08-26T00:00:00Z', + images: [BASE_VERIFIED, NVIDIA_VERIFIED] + }, METADATA, ) expect(result.status).toBe('verified') @@ -85,7 +108,10 @@ describe('projectDakotaVersions', () => { it('required base failure returns status unavailable and packages {}', () => { const failedBase = { ...BASE_VERIFIED, status: 'unavailable', values: undefined } const result = projectDakotaVersions( - { checkedAt: '2026-08-26T00:00:00Z', images: [failedBase, NVIDIA_VERIFIED] }, + { + checkedAt: '2026-08-26T00:00:00Z', + images: [failedBase, NVIDIA_VERIFIED] + }, METADATA, ) expect(result.status).toBe('unavailable') @@ -94,8 +120,16 @@ describe('projectDakotaVersions', () => { it('baseline metadata survives projection and no isos are emitted', () => { const result = projectDakotaVersions( - { checkedAt: '2026-08-26T00:00:00Z', images: [BASE_VERIFIED] }, - { ...METADATA, isos: [{ label: 'Download ISO', filename: 'dakota-live-alpha5.iso' }] }, + { + checkedAt: '2026-08-26T00:00:00Z', + images: [BASE_VERIFIED] + }, + { + ...METADATA, + isos: [ + { label: 'Download ISO', filename: 'dakota-live-alpha5.iso' } + ] + }, ) expect(result).not.toHaveProperty('isos') expect(result.packages.baseline).toBe('x86-64-v3') @@ -104,7 +138,10 @@ describe('projectDakotaVersions', () => { it('stale freedesktop-sdk, Homebrew, and OGC values do not survive', () => { // These are NOT in any verified image values, so they must not appear const result = projectDakotaVersions( - { checkedAt: '2026-08-26T00:00:00Z', images: [BASE_VERIFIED, NVIDIA_VERIFIED] }, + { + checkedAt: '2026-08-26T00:00:00Z', + images: [BASE_VERIFIED, NVIDIA_VERIFIED] + }, METADATA, ) expect(result.packages['freedesktop-sdk']).toBeUndefined() @@ -114,7 +151,10 @@ describe('projectDakotaVersions', () => { it('collects sources from all verified dakota images', () => { const result = projectDakotaVersions( - { checkedAt: '2026-08-26T00:00:00Z', images: [BASE_VERIFIED, NVIDIA_VERIFIED] }, + { + checkedAt: '2026-08-26T00:00:00Z', + images: [BASE_VERIFIED, NVIDIA_VERIFIED] + }, METADATA, ) expect(result.sources).toHaveLength(2) @@ -124,7 +164,10 @@ describe('projectDakotaVersions', () => { it('uses provided checkedAt override', () => { const result = projectDakotaVersions( - { checkedAt: '2026-08-26T00:00:00Z', images: [BASE_VERIFIED] }, + { + checkedAt: '2026-08-26T00:00:00Z', + images: [BASE_VERIFIED] + }, METADATA, '2026-08-27T12:00:00Z', ) @@ -144,10 +187,18 @@ describe('projectDakotaVersions — degraded evidence', () => { status: 'degraded', errorCode: 'missing-optional', missingOptional: ['bootc'], - values: { kernel: '7.0.7', gnome: '50.2', mesa: '26.0.6', systemd: '260.2' }, + values: { + kernel: '7.0.7', + gnome: '50.2', + mesa: '26.0.6', + systemd: '260.2' + }, } - const result = projectDakotaVersions({ checkedAt: '2026-08-26T00:00:00Z', images: [degraded] }) + const result = projectDakotaVersions({ + checkedAt: '2026-08-26T00:00:00Z', + images: [degraded] + }) expect(result.status).toBe('verified') expect(result.packages.mesa).toBe('26.0.6') @@ -179,7 +230,10 @@ describe('projectDakotaVersions — degraded evidence', () => { values: { nvidia: '595.71.05' }, } - const result = projectDakotaVersions({ checkedAt: '2026-08-26T00:00:00Z', images: [base, unavailableNvidia] }) + const result = projectDakotaVersions({ + checkedAt: '2026-08-26T00:00:00Z', + images: [base, unavailableNvidia] + }) expect(result.packages).not.toHaveProperty('nvidia') expect(result.sources.map(s => s.id)).toEqual(['dakota']) diff --git a/scripts/tests/fixtures/github-script-runner.mjs b/scripts/tests/fixtures/github-script-runner.mjs index 8ab4e0fc3..d60c7a700 100644 --- a/scripts/tests/fixtures/github-script-runner.mjs +++ b/scripts/tests/fixtures/github-script-runner.mjs @@ -28,7 +28,9 @@ const github = { listForRepo: async () => ({ data: openIssues }), create: async (params) => { created.push(params) - return { data: { number: 1 } } + return { + data: { number: 1 } + } }, update: async (params) => { updated.push(params) @@ -41,10 +43,16 @@ const github = { const context = { repo: { owner: 'projectbluefin', repo: 'website' }, runId: 987654321, - payload: { repository: { html_url: 'https://github.com/projectbluefin/website' } }, + payload: { + repository: { html_url: 'https://github.com/projectbluefin/website' } + }, } -const core = { info: () => {}, warning: () => {}, setFailed: () => {} } +const core = { + info: () => {}, + warning: () => {}, + setFailed: () => {} +} const AsyncFunction = Object.getPrototypeOf(async () => {}).constructor const run = new AsyncFunction('github', 'context', 'core', 'require', process.env.GH_SCRIPT_BODY) diff --git a/scripts/tests/generate-social-card-render.test.ts b/scripts/tests/generate-social-card-render.test.ts index 1b86df1fd..38424001a 100644 --- a/scripts/tests/generate-social-card-render.test.ts +++ b/scripts/tests/generate-social-card-render.test.ts @@ -124,10 +124,18 @@ describe('generateSocialCard render path', () => { const wallpaper = BLUEFIN_MONTHLY_WALLPAPERS[0] const outputPath = path.join(workDir, 'nested/dir/card.webp') - const result = await generateSocialCard({ wallpaper, outputPath, deviceScaleFactor: 3, browser }) + const result = await generateSocialCard({ + wallpaper, + outputPath, + deviceScaleFactor: 3, + browser + }) expect(result).toBe(outputPath) - expect(browser.newPage).toHaveBeenCalledWith({ viewport: { width: 1200, height: 630 }, deviceScaleFactor: 3 }) + expect(browser.newPage).toHaveBeenCalledWith({ + viewport: { width: 1200, height: 630 }, + deviceScaleFactor: 3 + }) const [html, opts] = page.setContent.mock.calls[0] expect(opts).toEqual({ waitUntil: 'networkidle' }) diff --git a/scripts/tests/generate-wallpapers.test.ts b/scripts/tests/generate-wallpapers.test.ts index 72db8feb8..c711809e7 100644 --- a/scripts/tests/generate-wallpapers.test.ts +++ b/scripts/tests/generate-wallpapers.test.ts @@ -48,7 +48,9 @@ function scratchRoot(tree: Tree) { function run(tree: Tree) { const root = scratchRoot(tree) - const output = execFileSync(process.execPath, [join(root, 'scripts/generate-wallpapers.js')], { + const output = execFileSync(process.execPath, [ + join(root, 'scripts/generate-wallpapers.js') + ], { cwd: root, encoding: 'utf8', stdio: ['ignore', 'pipe', 'pipe'], @@ -146,7 +148,9 @@ describe('generate-wallpapers.js', () => { expect(wallpapers).toEqual([ expect.objectContaining({ type: 'daynight', name: 'bluefin-duality', fit: 'cover' }), - expect.not.objectContaining({ fit: expect.anything() }), + expect.not.objectContaining({ + fit: expect.anything() + }), expect.objectContaining({ type: 'single', name: 'wolves/wolves/bluefin-huntress.webp', fit: 'cover' }), ]) expect(wallpapers[1].name).toBe('wolves/wolves/bluefin-dusk.webp') @@ -287,7 +291,9 @@ describe('generate-wallpapers.js', () => { }) it('groups whichever of the three exist, and leaves a lone one where it sorted', () => { - const pair = run({ wolves: images('a.webp', 'bluefin-huntress.webp', 'bluefin-k.webp', 'bluefin-lazy-days.webp') }) + const pair = run({ + wolves: images('a.webp', 'bluefin-huntress.webp', 'bluefin-k.webp', 'bluefin-lazy-days.webp') + }) expect(pair.wallpapers.map(w => w.name)).toEqual([ 'wolves/wolves/a.webp', 'wolves/wolves/bluefin-huntress.webp', @@ -295,7 +301,9 @@ describe('generate-wallpapers.js', () => { 'wolves/wolves/bluefin-k.webp', ]) - const lone = run({ wolves: images('a.webp', 'bluefin-huntress.webp', 'm.webp', 'z-bluefin-lazy-days.webp') }) + const lone = run({ + wolves: images('a.webp', 'bluefin-huntress.webp', 'm.webp', 'z-bluefin-lazy-days.webp') + }) expect(lone.wallpapers.map(w => w.name)).toEqual([ 'wolves/wolves/a.webp', 'wolves/wolves/bluefin-huntress.webp', @@ -305,7 +313,9 @@ describe('generate-wallpapers.js', () => { }) it('escapes quotes and backslashes in titles so the module still parses', () => { - const { wallpapers, source } = run({ showcase: images(`o'brien\\desk.webp`) }) + const { wallpapers, source } = run({ + showcase: images(`o'brien\\desk.webp`) + }) expect(wallpapers).toEqual([ { type: 'single', name: `wolves/showcase/o'brien\\desk.webp`, title: `O'brien\\desk` }, @@ -324,13 +334,17 @@ describe('generate-wallpapers.js', () => { }) it('exits 1 when the output file cannot be written', () => { - const root = scratchRoot({ showcase: images('a.webp') }) + const root = scratchRoot({ + showcase: images('a.webp') + }) rmSync(join(root, 'src'), { recursive: true }) let status: number | null = 0 let stderr = '' try { - execFileSync(process.execPath, [join(root, 'scripts/generate-wallpapers.js')], { cwd: root, stdio: 'pipe' }) + execFileSync(process.execPath, [ + join(root, 'scripts/generate-wallpapers.js') + ], { cwd: root, stdio: 'pipe' }) } catch (error) { const failure = error as { status: number | null, stderr: string } diff --git a/scripts/tests/oci-sbom-pull.test.ts b/scripts/tests/oci-sbom-pull.test.ts index 781ea6103..1197d8786 100644 --- a/scripts/tests/oci-sbom-pull.test.ts +++ b/scripts/tests/oci-sbom-pull.test.ts @@ -33,12 +33,16 @@ describe('discoverSbomDigest', () => { }) it('returns the digest of the SPDX referrer', () => { - mockedExec.mockReturnValue(discovery([{ artifactType: SBOM_ARTIFACT_TYPE, digest: DIGEST }]) as never) + mockedExec.mockReturnValue(discovery([ + { artifactType: SBOM_ARTIFACT_TYPE, digest: DIGEST } + ]) as never) expect(discoverSbomDigest('ghcr.io/projectbluefin/bluefin:stable')).toBe(DIGEST) }) it('queries oras discover with the SPDX artifact type and JSON format', () => { - mockedExec.mockReturnValue(discovery([{ artifactType: SBOM_ARTIFACT_TYPE, digest: DIGEST }]) as never) + mockedExec.mockReturnValue(discovery([ + { artifactType: SBOM_ARTIFACT_TYPE, digest: DIGEST } + ]) as never) discoverSbomDigest('ghcr.io/projectbluefin/bluefin:stable') const [bin, args] = mockedExec.mock.calls[0] as unknown as [string, string[]] @@ -75,7 +79,9 @@ describe('discoverSbomDigest', () => { }) it('throws when the SPDX referrer carries no digest', () => { - mockedExec.mockReturnValue(discovery([{ artifactType: SBOM_ARTIFACT_TYPE }]) as never) + mockedExec.mockReturnValue(discovery([ + { artifactType: SBOM_ARTIFACT_TYPE } + ]) as never) expect(() => discoverSbomDigest('img')).toThrow(/no attached SPDX SBOM/) }) }) @@ -93,7 +99,9 @@ describe('pullImageSbom', () => { const seen: string[] = [] mockedExec.mockImplementation(((_bin: string, args: string[]) => { if (args[0] === 'discover') { - return discovery([{ artifactType: SBOM_ARTIFACT_TYPE, digest: DIGEST }]) + return discovery([ + { artifactType: SBOM_ARTIFACT_TYPE, digest: DIGEST } + ]) } const dir = outputDirOf(args) seen.push(dir) @@ -106,7 +114,9 @@ describe('pullImageSbom', () => { } it('returns the parsed SPDX document from the pulled referrer', () => { - stubOras({ 'sbom.spdx.json': JSON.stringify({ spdxVersion: 'SPDX-2.3', packages: [] }) }) + stubOras({ + 'sbom.spdx.json': JSON.stringify({ spdxVersion: 'SPDX-2.3', packages: [] }) + }) expect(pullImageSbom('ghcr.io/projectbluefin/bluefin:stable')) .toEqual({ spdxVersion: 'SPDX-2.3', packages: [] }) }) @@ -154,7 +164,9 @@ describe('pullImageSbom', () => { const seen: string[] = [] mockedExec.mockImplementation(((_bin: string, args: string[]) => { if (args[0] === 'discover') { - return discovery([{ artifactType: SBOM_ARTIFACT_TYPE, digest: DIGEST }]) + return discovery([ + { artifactType: SBOM_ARTIFACT_TYPE, digest: DIGEST } + ]) } seen.push(outputDirOf(args)) throw new Error('oras pull failed') diff --git a/scripts/tests/sbom-issue-report.test.ts b/scripts/tests/sbom-issue-report.test.ts index fadb00756..7c91d6633 100644 --- a/scripts/tests/sbom-issue-report.test.ts +++ b/scripts/tests/sbom-issue-report.test.ts @@ -124,7 +124,11 @@ describe('buildSbomIssuePlan', () => { it('updates an existing issue when the same failure recurs', () => { const audit = makeAudit([MISSING_SBOM_IMAGE]) const openIssues = [ - { number: 42, title: plan_title_for(MISSING_SBOM_IMAGE), state: 'open' }, + { + number: 42, + title: plan_title_for(MISSING_SBOM_IMAGE), + state: 'open' + }, ] const plan = buildSbomIssuePlan(audit, openIssues) @@ -138,7 +142,11 @@ describe('buildSbomIssuePlan', () => { it('closes an issue when the failure has recovered', () => { const audit = makeAudit([VERIFIED_IMAGE]) const openIssues = [ - { number: 42, title: plan_title_for(MISSING_SBOM_IMAGE), state: 'open' }, + { + number: 42, + title: plan_title_for(MISSING_SBOM_IMAGE), + state: 'open' + }, ] const plan = buildSbomIssuePlan(audit, openIssues) @@ -224,7 +232,11 @@ describe('buildSbomIssuePlan', () => { it('creates for new failures while closing recovered ones', () => { const audit = makeAudit([EVIDENCE_ERROR_IMAGE]) const openIssues = [ - { number: 42, title: plan_title_for(MISSING_SBOM_IMAGE), state: 'open' }, + { + number: 42, + title: plan_title_for(MISSING_SBOM_IMAGE), + state: 'open' + }, ] const plan = buildSbomIssuePlan(audit, openIssues) @@ -268,13 +280,16 @@ describe('buildSbomIssuePlan — exact error codes, degraded entries, and eviden }) it('separates two failure codes for the same product into two issues', () => { - const plan = buildSbomIssuePlan(makeAudit([MISSING_SBOM_IMAGE, { - ...MISSING_SBOM_IMAGE, - id: 'bluefin-lts', - errorCode: 'missing-sbom', - missingRequired: undefined, - error: 'no sbom', - }]), []) + const plan = buildSbomIssuePlan(makeAudit([ + MISSING_SBOM_IMAGE, + { + ...MISSING_SBOM_IMAGE, + id: 'bluefin-lts', + errorCode: 'missing-sbom', + missingRequired: undefined, + error: 'no sbom', + } + ]), []) expect(plan.create.map(i => i.title).sort()).toEqual([ '[SBOM verification] bluefin: missing-required', '[SBOM verification] bluefin: missing-sbom', @@ -290,14 +305,18 @@ describe('buildSbomIssuePlan — exact error codes, degraded entries, and eviden }) it('does not close a degraded image issue', () => { - const openIssues = [{ number: 7, title: '[SBOM verification] bluefin: ambiguous-optional', state: 'open' }] + const openIssues = [ + { number: 7, title: '[SBOM verification] bluefin: ambiguous-optional', state: 'open' } + ] const plan = buildSbomIssuePlan(makeAudit([DEGRADED_IMAGE]), openIssues) expect(plan.close).toHaveLength(0) expect(plan.update.map(u => u.number)).toEqual([7]) }) it('keeps a pending-mapping issue open rather than closing it', () => { - const openIssues = [{ number: 8, title: '[SBOM verification] dakota: pending-mapping', state: 'open' }] + const openIssues = [ + { number: 8, title: '[SBOM verification] dakota: pending-mapping', state: 'open' } + ] const plan = buildSbomIssuePlan(makeAudit([PENDING_IMAGE]), openIssues) expect(plan.close).toHaveLength(0) expect(plan.update.map(u => u.number)).toEqual([8]) @@ -342,7 +361,9 @@ describe('buildSbomIssuePlan — exact error codes, degraded entries, and eviden }) it('still alerts on a genuine missing-sbom for a mapped (non-pending) image', () => { - const plan = buildSbomIssuePlan(makeAudit([{ ...PENDING_MISSING_SBOM_BLUEFIN, pending: false }]), []) + const plan = buildSbomIssuePlan(makeAudit([ + { ...PENDING_MISSING_SBOM_BLUEFIN, pending: false } + ]), []) expect(plan.create).toHaveLength(1) expect(plan.create[0].title).toBe('[SBOM verification] bluefin: missing-sbom') }) diff --git a/scripts/tests/sbom-issue-sync.test.ts b/scripts/tests/sbom-issue-sync.test.ts index d426b9ba3..2b80ec579 100644 --- a/scripts/tests/sbom-issue-sync.test.ts +++ b/scripts/tests/sbom-issue-sync.test.ts @@ -10,7 +10,9 @@ import { const CONTEXT = { repo: { owner: 'projectbluefin', repo: 'website' }, runId: 1234567890, - payload: { repository: { html_url: 'https://github.com/projectbluefin/website' } }, + payload: { + repository: { html_url: 'https://github.com/projectbluefin/website' } + }, } const AUDIT = { @@ -63,14 +65,18 @@ function makeGithub(openIssues: Array<{ number: number, title: string, state: st rest: { issues: { listForRepo, - create: vi.fn(async () => ({ data: { number: 999 } })), + create: vi.fn(async () => ({ + data: { number: 999 } + })), update: vi.fn(async () => ({ data: {} })), }, }, } } -const fsStub = { readFileSync: () => JSON.stringify(AUDIT) } +const fsStub = { + readFileSync: () => JSON.stringify(AUDIT) +} describe('workflowRunUrl', () => { it('builds the run URL from the repository payload', () => { @@ -78,7 +84,11 @@ describe('workflowRunUrl', () => { }) it('falls back to owner/repo when the payload has no repository', () => { - expect(workflowRunUrl({ repo: { owner: 'a', repo: 'b' }, runId: 7, payload: {} })) + expect(workflowRunUrl({ + repo: { owner: 'a', repo: 'b' }, + runId: 7, + payload: {} + })) .toBe('https://github.com/a/b/actions/runs/7') }) }) @@ -155,7 +165,12 @@ describe('syncSbomIssues', () => { const github = makeGithub([]) const readFileSync = vi.fn(() => JSON.stringify({ checkedAt: 'x', images: [] })) - await syncSbomIssues({ github, context: CONTEXT, auditPath: '/somewhere/sbom-audit.json', fs: { readFileSync } }) + await syncSbomIssues({ + github, + context: CONTEXT, + auditPath: '/somewhere/sbom-audit.json', + fs: { readFileSync } + }) expect(readFileSync).toHaveBeenCalledWith('/somewhere/sbom-audit.json', 'utf8') }) @@ -175,7 +190,9 @@ describe('syncWorkflowFailureIssue', () => { }) it('updates the existing failure issue instead of opening a duplicate', async () => { - const github = makeGithub([{ number: 77, title: FAILURE_ISSUE_TITLE, state: 'open' }]) + const github = makeGithub([ + { number: 77, title: FAILURE_ISSUE_TITLE, state: 'open' } + ]) const result = await syncWorkflowFailureIssue({ github, context: CONTEXT }) expect(result).toMatchObject({ action: 'updated', number: 77 }) @@ -186,7 +203,10 @@ describe('syncWorkflowFailureIssue', () => { it('finds the existing failure issue past the first page', async () => { const filler = Array.from({ length: 100 }, (_, i) => ({ number: i + 1, title: `noise ${i + 1}`, state: 'open' })) - const github = makeGithub([...filler, { number: 300, title: FAILURE_ISSUE_TITLE, state: 'open' }]) + const github = makeGithub([ + ...filler, + { number: 300, title: FAILURE_ISSUE_TITLE, state: 'open' } + ]) const result = await syncWorkflowFailureIssue({ github, context: CONTEXT }) diff --git a/scripts/tests/spdx-version-extractor.test.ts b/scripts/tests/spdx-version-extractor.test.ts index 0f63aa49c..081464513 100644 --- a/scripts/tests/spdx-version-extractor.test.ts +++ b/scripts/tests/spdx-version-extractor.test.ts @@ -102,11 +102,25 @@ describe('extractMappedVersions', () => { it('skips duplicate evidence entries (same version, different elements)', () => { const sbom = { packages: [ - { name: 'foo', versionInfo: '1.2.3', externalRefs: [{ referenceType: 'bst-element', referenceLocator: 'a/foo.bst' }] }, - { name: 'foo', versionInfo: '1.2.3', externalRefs: [{ referenceType: 'bst-element', referenceLocator: 'b/foo.bst' }] }, + { + name: 'foo', + versionInfo: '1.2.3', + externalRefs: [ + { referenceType: 'bst-element', referenceLocator: 'a/foo.bst' } + ] + }, + { + name: 'foo', + versionInfo: '1.2.3', + externalRefs: [ + { referenceType: 'bst-element', referenceLocator: 'b/foo.bst' } + ] + }, ], } - const result = extractMappedVersions(sbom, { foo: { name: 'foo' } }) + const result = extractMappedVersions(sbom, { + foo: { name: 'foo' } + }) expect(result.values.foo).toBe('1.2.3') expect(result.ambiguous).toHaveLength(0) }) @@ -117,7 +131,9 @@ describe('extractMappedVersions', () => { { name: 'linux', versionInfo: 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855' }, ], } - const result = extractMappedVersions(sbom, { kernel: { name: 'linux', required: true } }) + const result = extractMappedVersions(sbom, { + kernel: { name: 'linux', required: true } + }) expect(result.missingRequired).toContain('kernel') expect(result.rejected.some(r => r.field === 'kernel')).toBe(true) }) @@ -128,7 +144,9 @@ describe('extractMappedVersions', () => { { name: 'kernel-core', versionInfo: '7.1.6-201.fc44', version: '7.1.6' }, ], } - const result = extractMappedVersions(sbom, { kernel: { name: 'kernel-core' } }) + const result = extractMappedVersions(sbom, { + kernel: { name: 'kernel-core' } + }) expect(result.values.kernel).toBe('7.1.6-201.fc44') }) @@ -138,7 +156,9 @@ describe('extractMappedVersions', () => { { name: 'kernel-core', version: '7.1.6-201.fc44' }, ], } - const result = extractMappedVersions(sbom, { kernel: { name: 'kernel-core' } }) + const result = extractMappedVersions(sbom, { + kernel: { name: 'kernel-core' } + }) expect(result.values.kernel).toBe('7.1.6-201.fc44') }) diff --git a/scripts/tests/test-baseline.test.ts b/scripts/tests/test-baseline.test.ts index 1b3bd4b6c..a49136dc0 100644 --- a/scripts/tests/test-baseline.test.ts +++ b/scripts/tests/test-baseline.test.ts @@ -79,7 +79,10 @@ function report(root: string, files: Array<{ name: string, assertions: Array<[st function run(root: string, options: { report?: string, args?: string[], vitestRc?: number } = {}): RunResult { const result = execFileSync( process.execPath, - [join(root, 'scripts', 'test-baseline.mjs'), ...(options.args ?? [])], + [ + join(root, 'scripts', 'test-baseline.mjs'), + ...(options.args ?? []) + ], { cwd: root, encoding: 'utf8', @@ -133,7 +136,14 @@ describe('scripts/test-baseline.mjs (npm run test:gate)', () => { const root = makeRepo() const { status, stderr } = runGate(root, { - report: report(root, [{ name: 'src/tests/a.test.ts', assertions: [['failed', 'a fails']] }]), + report: report(root, [ + { + name: 'src/tests/a.test.ts', + assertions: [ + ['failed', 'a fails'] + ] + } + ]), }) expect(status).toBe(2) @@ -146,8 +156,19 @@ describe('scripts/test-baseline.mjs (npm run test:gate)', () => { const { status, stdout } = runGate(root, { args: ['--update'], report: report(root, [ - { name: 'src/tests/z.test.ts', assertions: [['failed', 'z fails']] }, - { name: 'src/tests/a.test.ts', assertions: [['failed', 'a fails'], ['passed', 'a passes']] }, + { + name: 'src/tests/z.test.ts', + assertions: [ + ['failed', 'z fails'] + ] + }, + { + name: 'src/tests/a.test.ts', + assertions: [ + ['failed', 'a fails'], + ['passed', 'a passes'] + ] + }, ]), }) @@ -164,7 +185,14 @@ describe('scripts/test-baseline.mjs (npm run test:gate)', () => { const { status, stdout } = runGate(root, { args: ['--update'], vitestRc: 0, - report: report(root, [{ name: 'src/tests/a.test.ts', assertions: [['passed', 'a passes']] }]), + report: report(root, [ + { + name: 'src/tests/a.test.ts', + assertions: [ + ['passed', 'a passes'] + ] + } + ]), }) expect(status).toBe(0) @@ -178,7 +206,14 @@ describe('scripts/test-baseline.mjs (npm run test:gate)', () => { const { status } = runGate(root, { args: ['--update'], - report: report(root, [{ name: 'src/tests/a.test.ts', assertions: [['failed', 'a fails']] }]), + report: report(root, [ + { + name: 'src/tests/a.test.ts', + assertions: [ + ['failed', 'a fails'] + ] + } + ]), }) expect(status).toBe(0) @@ -190,7 +225,14 @@ describe('scripts/test-baseline.mjs (npm run test:gate)', () => { writeBaseline(root, 'src/tests/a.test.ts :: a fails\n') const { status, stdout } = runGate(root, { - report: report(root, [{ name: 'src/tests/a.test.ts', assertions: [['failed', 'a fails']] }]), + report: report(root, [ + { + name: 'src/tests/a.test.ts', + assertions: [ + ['failed', 'a fails'] + ] + } + ]), }) expect(status).toBe(0) @@ -203,8 +245,18 @@ describe('scripts/test-baseline.mjs (npm run test:gate)', () => { const { status, stderr } = runGate(root, { report: report(root, [ - { name: 'src/tests/a.test.ts', assertions: [['failed', 'a fails']] }, - { name: 'src/tests/b.test.ts', assertions: [['failed', 'b fails']] }, + { + name: 'src/tests/a.test.ts', + assertions: [ + ['failed', 'a fails'] + ] + }, + { + name: 'src/tests/b.test.ts', + assertions: [ + ['failed', 'b fails'] + ] + }, ]), }) @@ -220,7 +272,14 @@ describe('scripts/test-baseline.mjs (npm run test:gate)', () => { writeBaseline(root, 'src/tests/a.test.ts :: a fails\nsrc/tests/b.test.ts :: b fails\n') const { status, stdout } = runGate(root, { - report: report(root, [{ name: 'src/tests/a.test.ts', assertions: [['failed', 'a fails']] }]), + report: report(root, [ + { + name: 'src/tests/a.test.ts', + assertions: [ + ['failed', 'a fails'] + ] + } + ]), }) expect(status).toBe(0) @@ -233,7 +292,14 @@ describe('scripts/test-baseline.mjs (npm run test:gate)', () => { writeBaseline(root, 'src/tests/a.test.ts :: a fails\n') const { status, stdout, stderr } = runGate(root, { - report: report(root, [{ name: 'src/tests/b.test.ts', assertions: [['failed', 'b fails']] }]), + report: report(root, [ + { + name: 'src/tests/b.test.ts', + assertions: [ + ['failed', 'b fails'] + ] + } + ]), }) expect(status).toBe(1) @@ -247,10 +313,16 @@ describe('scripts/test-baseline.mjs (npm run test:gate)', () => { const { status, stdout } = runGate(root, { vitestRc: 0, - report: report(root, [{ - name: 'src/tests/a.test.ts', - assertions: [['passed', 'a passes'], ['skipped', 'a is skipped'], ['pending', 'a is pending']], - }]), + report: report(root, [ + { + name: 'src/tests/a.test.ts', + assertions: [ + ['passed', 'a passes'], + ['skipped', 'a is skipped'], + ['pending', 'a is pending'] + ], + } + ]), }) expect(status).toBe(0) @@ -264,7 +336,13 @@ describe('scripts/test-baseline.mjs (npm run test:gate)', () => { expect(runGate(root, { vitestRc: 0, report: '{}' }).status).toBe(0) expect(runGate(root, { vitestRc: 0, - report: JSON.stringify({ testResults: [{ name: join(root, 'src/tests/a.test.ts') }] }), + report: JSON.stringify({ + testResults: [ + { + name: join(root, 'src/tests/a.test.ts') + } + ] + }), }).status).toBe(0) }) @@ -273,7 +351,14 @@ describe('scripts/test-baseline.mjs (npm run test:gate)', () => { writeBaseline(root, '\n src/tests/a.test.ts :: a fails \n\n') const { status, stdout } = runGate(root, { - report: report(root, [{ name: 'src/tests/a.test.ts', assertions: [['failed', 'a fails']] }]), + report: report(root, [ + { + name: 'src/tests/a.test.ts', + assertions: [ + ['failed', 'a fails'] + ] + } + ]), }) expect(status).toBe(0) @@ -286,7 +371,14 @@ describe('scripts/test-baseline.mjs (npm run test:gate)', () => { const { status, stdout } = runGate(root, { vitestRc: 0, - report: report(root, [{ name: 'src/tests/a.test.ts', assertions: [['passed', 'a passes']] }]), + report: report(root, [ + { + name: 'src/tests/a.test.ts', + assertions: [ + ['passed', 'a passes'] + ] + } + ]), }) expect(status).toBe(0) @@ -299,8 +391,18 @@ describe('scripts/test-baseline.mjs (npm run test:gate)', () => { runGate(root, { args: ['--update'], report: report(root, [ - { name: 'src/tests/a.test.ts', assertions: [['failed', 'a fails']] }, - { name: 'src/tests/a.test.ts', assertions: [['failed', 'a fails']] }, + { + name: 'src/tests/a.test.ts', + assertions: [ + ['failed', 'a fails'] + ] + }, + { + name: 'src/tests/a.test.ts', + assertions: [ + ['failed', 'a fails'] + ] + }, ]), }) diff --git a/scripts/tests/update-back-catalogue.test.ts b/scripts/tests/update-back-catalogue.test.ts index 476250626..6db9c7c44 100644 --- a/scripts/tests/update-back-catalogue.test.ts +++ b/scripts/tests/update-back-catalogue.test.ts @@ -12,7 +12,12 @@ import { const album = { id: 'PLtest', title: 'Test Album', description: 'A test album' } function entry(overrides = {}) { - return { id: 'vid00000001', title: 'Artist - Song', duration: 200, ...overrides } + return { + id: 'vid00000001', + title: 'Artist - Song', + duration: 200, + ...overrides + } } describe('buildExperience', () => { @@ -27,12 +32,16 @@ describe('buildExperience', () => { describe('auditExperience', () => { it('accepts a well-formed experience', () => { - const entries = [entry()] + const entries = [ + entry() + ] expect(() => auditExperience(album, entries, buildExperience(album, entries))).not.toThrow() }) it('rejects an empty artist', () => { - const entries = [entry()] + const entries = [ + entry() + ] const experience = buildExperience(album, entries) experience.segments[0].artist = ' ' @@ -40,7 +49,9 @@ describe('auditExperience', () => { }) it('rejects an empty title', () => { - const entries = [entry()] + const entries = [ + entry() + ] const experience = buildExperience(album, entries) experience.segments[0].title = '' @@ -48,7 +59,9 @@ describe('auditExperience', () => { }) it('rejects an implausible duration', () => { - const entries = [entry()] + const entries = [ + entry() + ] const experience = buildExperience(album, entries) experience.segments[0].durationSeconds = 60 * 60 * 5 @@ -56,7 +69,9 @@ describe('auditExperience', () => { }) it('rejects a non-finite duration', () => { - const entries = [entry()] + const entries = [ + entry() + ] const experience = buildExperience(album, entries) experience.segments[0].durationSeconds = Number.POSITIVE_INFINITY @@ -64,7 +79,9 @@ describe('auditExperience', () => { }) it('still rejects a zero duration', () => { - const entries = [entry()] + const entries = [ + entry() + ] const experience = buildExperience(album, entries) experience.segments[0].durationSeconds = 0 @@ -83,7 +100,16 @@ describe('shouldIncludeAlbum', () => { }) it('rejects ids that could escape the experiences directory or carry URL syntax', () => { - for (const id of ['../../.github/x', 'a/b', 'a\\b', 'PL.test', 'PL test', 'PL?x=1', '', 42]) { + for (const id of [ + '../../.github/x', + 'a/b', + 'a\\b', + 'PL.test', + 'PL test', + 'PL?x=1', + '', + 42 + ]) { expect(shouldIncludeAlbum({ id, title: 'Album' }), String(id)).toBe(false) } }) @@ -96,7 +122,14 @@ describe('isPlaylistUrl', () => { }) it('rejects option-like, non-https and non-YouTube values', () => { - for (const value of ['--exec=id', '-a', 'http://www.youtube.com/playlist?list=PL', 'https://evil.example/playlist', 'not a url', undefined]) { + for (const value of [ + '--exec=id', + '-a', + 'http://www.youtube.com/playlist?list=PL', + 'https://evil.example/playlist', + 'not a url', + undefined + ]) { expect(isPlaylistUrl(value), String(value)).toBe(false) } }) @@ -112,13 +145,31 @@ describe('refreshMetadata', () => { it('recovers an album from git HEAD when the cached catalogue on disk is missing it', async () => { const onDiskCatalogue = { experiences: [ - { id: 'PL1', title: 'Album 1', subtitle: 'Old Sub', artwork: 'experiences/PL1.jpg', segments: [] }, + { + id: 'PL1', + title: 'Album 1', + subtitle: 'Old Sub', + artwork: 'experiences/PL1.jpg', + segments: [] + }, ], } const gitTrackedCatalogue = { experiences: [ - { id: 'PL1', title: 'Album 1', subtitle: 'Old Sub', artwork: 'experiences/PL1.jpg', segments: [] }, - { id: 'PL2', title: 'Album 2', subtitle: 'Sub 2', artwork: 'experiences/PL2.jpg', segments: [] }, + { + id: 'PL1', + title: 'Album 1', + subtitle: 'Old Sub', + artwork: 'experiences/PL1.jpg', + segments: [] + }, + { + id: 'PL2', + title: 'Album 2', + subtitle: 'Sub 2', + artwork: 'experiences/PL2.jpg', + segments: [] + }, ], } const upstreamMetadata = [ @@ -136,7 +187,9 @@ describe('refreshMetadata', () => { }), readFile: async () => JSON.stringify(onDiskCatalogue), writeFile: async (path: string, content: string | Buffer) => { - writtenFiles.set(path, typeof content === 'string' ? content : 'binary') + writtenFiles.set(path, typeof content === 'string' + ? content + : 'binary') }, gitShow: () => JSON.stringify(gitTrackedCatalogue), cataloguePath: '/fake/catalogue.json', @@ -154,12 +207,22 @@ describe('refreshMetadata', () => { it('prefers git HEAD entries over stale cached disk entries for existing albums in CI', async () => { const onDiskCatalogue = { experiences: [ - { id: 'PL1', title: 'Album 1 Stale', subtitle: 'Stale Sub', segments: ['old-seg'] }, + { + id: 'PL1', + title: 'Album 1 Stale', + subtitle: 'Stale Sub', + segments: ['old-seg'] + }, ], } const gitTrackedCatalogue = { experiences: [ - { id: 'PL1', title: 'Album 1 Committed', subtitle: 'Committed Sub', segments: ['fixed-seg-1', 'fixed-seg-2'] }, + { + id: 'PL1', + title: 'Album 1 Committed', + subtitle: 'Committed Sub', + segments: ['fixed-seg-1', 'fixed-seg-2'] + }, ], } const upstreamMetadata = [ @@ -175,7 +238,9 @@ describe('refreshMetadata', () => { }), readFile: async () => JSON.stringify(onDiskCatalogue), writeFile: async (path: string, content: string | Buffer) => { - writtenFiles.set(path, typeof content === 'string' ? content : 'binary') + writtenFiles.set(path, typeof content === 'string' + ? content + : 'binary') }, gitShow: () => JSON.stringify(gitTrackedCatalogue), cataloguePath: '/fake/catalogue.json', @@ -190,13 +255,28 @@ describe('refreshMetadata', () => { it('keeps uncommitted local edits outside CI while still recovering missing albums', async () => { const onDiskCatalogue = { experiences: [ - { id: 'PL1', title: 'Album 1', subtitle: 'Sub', segments: ['fresh-ingest-1', 'fresh-ingest-2'] }, + { + id: 'PL1', + title: 'Album 1', + subtitle: 'Sub', + segments: ['fresh-ingest-1', 'fresh-ingest-2'] + }, ], } const gitTrackedCatalogue = { experiences: [ - { id: 'PL1', title: 'Album 1', subtitle: 'Sub', segments: [] }, - { id: 'PL2', title: 'Album 2', subtitle: 'Sub 2', segments: ['committed-seg'] }, + { + id: 'PL1', + title: 'Album 1', + subtitle: 'Sub', + segments: [] + }, + { + id: 'PL2', + title: 'Album 2', + subtitle: 'Sub 2', + segments: ['committed-seg'] + }, ], } const upstreamMetadata = [ @@ -213,7 +293,9 @@ describe('refreshMetadata', () => { }), readFile: async () => JSON.stringify(onDiskCatalogue), writeFile: async (path: string, content: string | Buffer) => { - writtenFiles.set(path, typeof content === 'string' ? content : 'binary') + writtenFiles.set(path, typeof content === 'string' + ? content + : 'binary') }, gitShow: () => JSON.stringify(gitTrackedCatalogue), cataloguePath: '/fake/catalogue.json', @@ -244,7 +326,9 @@ describe('refreshMetadata', () => { }), readFile: async () => JSON.stringify(onDiskCatalogue), writeFile: async (path: string, content: string | Buffer) => { - writtenFiles.set(path, typeof content === 'string' ? content : 'binary') + writtenFiles.set(path, typeof content === 'string' + ? content + : 'binary') }, gitShow: () => JSON.stringify({ experiences: [] }), cataloguePath: '/fake/catalogue.json', diff --git a/scripts/tests/update-contributors.test.ts b/scripts/tests/update-contributors.test.ts index 44d755158..de61093ac 100644 --- a/scripts/tests/update-contributors.test.ts +++ b/scripts/tests/update-contributors.test.ts @@ -18,23 +18,77 @@ describe('update-contributors script', () => { const urlStr = String(url) if (urlStr.includes('/orgs/projectbluefin/repos')) { return new Response(JSON.stringify([ - { full_name: 'projectbluefin/repo-a', fork: false, private: false, archived: false }, - { full_name: 'projectbluefin/repo-fork', fork: true, private: false, archived: false }, - { full_name: 'projectbluefin/repo-archived', fork: false, private: false, archived: true }, - ]), { status: 200, headers: { 'Content-Type': 'application/json' } }) + { + full_name: 'projectbluefin/repo-a', + fork: false, + private: false, + archived: false + }, + { + full_name: 'projectbluefin/repo-fork', + fork: true, + private: false, + archived: false + }, + { + full_name: 'projectbluefin/repo-archived', + fork: false, + private: false, + archived: true + }, + ]), { + status: 200, + headers: { 'Content-Type': 'application/json' } + }) } if (urlStr.includes('/repos/projectbluefin/repo-a/contributors')) { return new Response(JSON.stringify([ - { id: 2, login: 'bob', type: 'User', html_url: 'https://github.com/bob', avatar_url: 'https://avatars.githubusercontent.com/u/2' }, - { id: 99, login: 'actions-user', type: 'User', html_url: 'https://github.com/actions-user', avatar_url: 'https://avatars.githubusercontent.com/u/99' }, - { id: 98, login: 'renovate[bot]', type: 'Bot', html_url: 'https://github.com/renovate[bot]', avatar_url: 'https://avatars.githubusercontent.com/u/98' }, - ]), { status: 200, headers: { 'Content-Type': 'application/json' } }) + { + id: 2, + login: 'bob', + type: 'User', + html_url: 'https://github.com/bob', + avatar_url: 'https://avatars.githubusercontent.com/u/2' + }, + { + id: 99, + login: 'actions-user', + type: 'User', + html_url: 'https://github.com/actions-user', + avatar_url: 'https://avatars.githubusercontent.com/u/99' + }, + { + id: 98, + login: 'renovate[bot]', + type: 'Bot', + html_url: 'https://github.com/renovate[bot]', + avatar_url: 'https://avatars.githubusercontent.com/u/98' + }, + ]), { + status: 200, + headers: { 'Content-Type': 'application/json' } + }) } if (urlStr.includes('/repos/projectbluefin/repo-archived/contributors')) { return new Response(JSON.stringify([ - { id: 1, login: 'Alice', type: 'User', html_url: 'https://github.com/Alice', avatar_url: 'https://avatars.githubusercontent.com/u/1' }, - { id: 2, login: 'bob', type: 'User', html_url: 'https://github.com/bob', avatar_url: 'https://avatars.githubusercontent.com/u/2' }, - ]), { status: 200, headers: { 'Content-Type': 'application/json' } }) + { + id: 1, + login: 'Alice', + type: 'User', + html_url: 'https://github.com/Alice', + avatar_url: 'https://avatars.githubusercontent.com/u/1' + }, + { + id: 2, + login: 'bob', + type: 'User', + html_url: 'https://github.com/bob', + avatar_url: 'https://avatars.githubusercontent.com/u/2' + }, + ]), { + status: 200, + headers: { 'Content-Type': 'application/json' } + }) } return new Response('[]', { status: 200 }) }) @@ -45,8 +99,18 @@ describe('update-contributors script', () => { await updateContributors(targetFile) const content = JSON.parse(readFileSync(targetFile, 'utf8')) expect(content).toEqual([ - { id: 1, login: 'Alice', html_url: 'https://github.com/Alice', avatar_url: 'https://avatars.githubusercontent.com/u/1' }, - { id: 2, login: 'bob', html_url: 'https://github.com/bob', avatar_url: 'https://avatars.githubusercontent.com/u/2' }, + { + id: 1, + login: 'Alice', + html_url: 'https://github.com/Alice', + avatar_url: 'https://avatars.githubusercontent.com/u/1' + }, + { + id: 2, + login: 'bob', + html_url: 'https://github.com/bob', + avatar_url: 'https://avatars.githubusercontent.com/u/2' + }, ]) } finally { @@ -62,17 +126,39 @@ describe('update-contributors script', () => { const urlStr = String(url) if (urlStr.includes('/orgs/projectbluefin/repos')) { return new Response(JSON.stringify([ - { full_name: 'projectbluefin/empty-repo', fork: false, private: false, archived: false }, - { full_name: 'projectbluefin/has-contributor', fork: false, private: false, archived: false }, - ]), { status: 200, headers: { 'Content-Type': 'application/json' } }) + { + full_name: 'projectbluefin/empty-repo', + fork: false, + private: false, + archived: false + }, + { + full_name: 'projectbluefin/has-contributor', + fork: false, + private: false, + archived: false + }, + ]), { + status: 200, + headers: { 'Content-Type': 'application/json' } + }) } if (urlStr.includes('/repos/projectbluefin/empty-repo/contributors')) { return new Response(null, { status: 204 }) } if (urlStr.includes('/repos/projectbluefin/has-contributor/contributors')) { return new Response(JSON.stringify([ - { id: 10, login: 'dev', type: 'User', html_url: 'https://github.com/dev', avatar_url: 'https://avatars.githubusercontent.com/u/10' }, - ]), { status: 200, headers: { 'Content-Type': 'application/json' } }) + { + id: 10, + login: 'dev', + type: 'User', + html_url: 'https://github.com/dev', + avatar_url: 'https://avatars.githubusercontent.com/u/10' + }, + ]), { + status: 200, + headers: { 'Content-Type': 'application/json' } + }) } return new Response('[]', { status: 200 }) }) @@ -83,7 +169,12 @@ describe('update-contributors script', () => { await updateContributors(targetFile) const content = JSON.parse(readFileSync(targetFile, 'utf8')) expect(content).toEqual([ - { id: 10, login: 'dev', html_url: 'https://github.com/dev', avatar_url: 'https://avatars.githubusercontent.com/u/10' }, + { + id: 10, + login: 'dev', + html_url: 'https://github.com/dev', + avatar_url: 'https://avatars.githubusercontent.com/u/10' + }, ]) } finally { @@ -97,8 +188,16 @@ describe('update-contributors script', () => { const fetchMock = vi.fn(async () => { return new Response(JSON.stringify([ - { full_name: 'projectbluefin/only-fork', fork: true, private: false, archived: false }, - ]), { status: 200, headers: { 'Content-Type': 'application/json' } }) + { + full_name: 'projectbluefin/only-fork', + fork: true, + private: false, + archived: false + }, + ]), { + status: 200, + headers: { 'Content-Type': 'application/json' } + }) }) vi.stubGlobal('fetch', fetchMock) diff --git a/scripts/tests/update-dakota-versions.test.ts b/scripts/tests/update-dakota-versions.test.ts index 96db22bb7..9d3ec585a 100644 --- a/scripts/tests/update-dakota-versions.test.ts +++ b/scripts/tests/update-dakota-versions.test.ts @@ -53,10 +53,12 @@ describe('oci-sbom helpers', () => { }) it('ignores commit hashes and null versions', () => { - const hashOnly = { packages: [ - { name: 'gnome-shell', versionInfo: 'c9372e733d75cf3c5197a0dd29f8a4a422e2dddb9020cab3c179a6f3df03d4be' }, - { name: 'gnome-shell', versionInfo: null }, - ] } + const hashOnly = { + packages: [ + { name: 'gnome-shell', versionInfo: 'c9372e733d75cf3c5197a0dd29f8a4a422e2dddb9020cab3c179a6f3df03d4be' }, + { name: 'gnome-shell', versionInfo: null }, + ] + } expect(spdxPackageVersion(hashOnly, 'gnome-shell')).toBeUndefined() }) diff --git a/scripts/tests/update-flickr-photos.test.ts b/scripts/tests/update-flickr-photos.test.ts index ed948de5e..6ed352f52 100644 --- a/scripts/tests/update-flickr-photos.test.ts +++ b/scripts/tests/update-flickr-photos.test.ts @@ -30,7 +30,12 @@ describe('update-flickr-photos helpers', () => { }) it('shuffles arrays without losing items', () => { - const input = [{ id: '1' }, { id: '2' }, { id: '3' }, { id: '4' }] + const input = [ + { id: '1' }, + { id: '2' }, + { id: '3' }, + { id: '4' } + ] const shuffled = shuffleArray(input) expect(shuffled).toHaveLength(input.length) expect(shuffled.every(item => input.includes(item))).toBe(true) @@ -44,7 +49,12 @@ describe('update-flickr-photos helpers', () => { }) it('normalizes Flickr photo objects', () => { - expect(normalizePhoto({ id: '123', server: '456', secret: 'abc', title: 'Photo' })).toEqual({ + expect(normalizePhoto({ + id: '123', + server: '456', + secret: 'abc', + title: 'Photo' + })).toEqual({ id: '123', server: '456', secret: 'abc', @@ -55,9 +65,24 @@ describe('update-flickr-photos helpers', () => { it('builds a fresh, deduplicated cache without retaining stale entries', () => { vi.spyOn(Math, 'random').mockReturnValue(0) const photos = selectFreshPhotos([ - { id: 'current-japan', server: '1', secret: 'a', title: 'Japan contributor summit' }, - { id: 'current-japan', server: '1', secret: 'a', title: 'Duplicate' }, - { id: 'current-europe', server: '2', secret: 'b', title: 'Europe maintainer summit' }, + { + id: 'current-japan', + server: '1', + secret: 'a', + title: 'Japan contributor summit' + }, + { + id: 'current-japan', + server: '1', + secret: 'a', + title: 'Duplicate' + }, + { + id: 'current-europe', + server: '2', + secret: 'b', + title: 'Europe maintainer summit' + }, ], 2) expect(photos.map(photo => photo.id).sort()).toEqual(['current-europe', 'current-japan']) @@ -68,7 +93,10 @@ describe('update-flickr-photos helpers', () => { vi.stubGlobal('fetch', fetchMock) fetchMock - .mockResolvedValueOnce(new Response('{}', { status: 429, headers: { 'retry-after': '1' } })) + .mockResolvedValueOnce(new Response('{}', { + status: 429, + headers: { 'retry-after': '1' } + })) .mockResolvedValueOnce(new Response('{"ok": true}', { status: 200 })) const res = await fetchWithRateLimit('https://example.com/test') @@ -112,7 +140,9 @@ describe('update-flickr-photos helpers', () => { writeFileSync(tmpPath, '[{"id":"cached-1"}]') try { const photos = await loadExistingPhotos(tmpPath) - expect(photos).toEqual([{ id: 'cached-1' }]) + expect(photos).toEqual([ + { id: 'cached-1' } + ]) } finally { try { @@ -166,11 +196,36 @@ describe('album HTML parsing', () => { const photos = extractPhotosFromAlbumHtml(html) expect(photos).toEqual([ - { id: '11111111111', server: '65535', secret: 'abc123def0', title: 'Maintainer Summit group photo' }, - { id: '22222222222', server: '65535', secret: 'bcd234efa1', title: 'Keynote speaker' }, - { id: '33333333333', server: '65535', secret: 'cde345fab2', title: 'Contributor signing the wall' }, - { id: '44444444444', server: '65535', secret: 'def456abc3', title: 'Hallway track crowd' }, - { id: '55555555555', server: '65535', secret: 'efg567bcd4', title: 'Sponsor booth signage' }, + { + id: '11111111111', + server: '65535', + secret: 'abc123def0', + title: 'Maintainer Summit group photo' + }, + { + id: '22222222222', + server: '65535', + secret: 'bcd234efa1', + title: 'Keynote speaker' + }, + { + id: '33333333333', + server: '65535', + secret: 'cde345fab2', + title: 'Contributor signing the wall' + }, + { + id: '44444444444', + server: '65535', + secret: 'def456abc3', + title: 'Hallway track crowd' + }, + { + id: '55555555555', + server: '65535', + secret: 'efg567bcd4', + title: 'Sponsor booth signage' + }, ]) }) @@ -215,7 +270,13 @@ describe('people-first filtering', () => { targetTotalPhotos: 10, albums: [], peopleFirst: { - allowPatterns: ['maintainer', 'contributor', 'people', 'group', 'crowd'], + allowPatterns: [ + 'maintainer', + 'contributor', + 'people', + 'group', + 'crowd' + ], blockPatterns: ['sponsor', 'banner', 'stage', 'booth'], }, } @@ -240,7 +301,10 @@ describe('people-first filtering', () => { }) it('returns false for empty allow patterns', () => { - const emptyConfig = { ...config, peopleFirst: { allowPatterns: [], blockPatterns: [] } } + const emptyConfig = { + ...config, + peopleFirst: { allowPatterns: [], blockPatterns: [] } + } expect(isPeopleFirstPhoto({ id: '8', title: 'Maintainer group photo' }, emptyConfig)).toBe(false) }) }) @@ -277,7 +341,10 @@ describe('title-family diversification', () => { }) it('returns the input unchanged when maxPerFamily is zero or negative', () => { - const photos = [{ id: '1', title: 'Photo' }, { id: '2', title: 'Photo' }] + const photos = [ + { id: '1', title: 'Photo' }, + { id: '2', title: 'Photo' } + ] expect(diversifyByTitleFamily(photos, 0)).toEqual(photos) expect(diversifyByTitleFamily(photos, -1)).toEqual(photos) }) @@ -360,8 +427,14 @@ describe('updateFlickrPhotos', () => { writeFileSync(configPath, JSON.stringify({ requestDelayMs: 0, maxPagesPerAlbum: 1, - albums: [{ id: '1', title: 'One' }, { id: '2', title: 'Two' }], - peopleFirst: { allowPatterns: ['summit'], blockPatterns: [] }, + albums: [ + { id: '1', title: 'One' }, + { id: '2', title: 'Two' } + ], + peopleFirst: { + allowPatterns: ['summit'], + blockPatterns: [] + }, })) if (existing) { writeFileSync(targetPath, `${JSON.stringify(existing)}\n`) @@ -369,7 +442,14 @@ describe('updateFlickrPhotos', () => { return { configPath, targetPath } } - const previous = [{ id: '9', server: '1', secret: 's', title: 'Old summit photo' }] + const previous = [ + { + id: '9', + server: '1', + secret: 's', + title: 'Old summit photo' + } + ] it('keeps the previous cache when every album fails', async () => { const { configPath, targetPath } = setup(previous) diff --git a/scripts/tests/update-image-versions-orchestrator.test.ts b/scripts/tests/update-image-versions-orchestrator.test.ts index 74fa1db1d..a2c28a2b6 100644 --- a/scripts/tests/update-image-versions-orchestrator.test.ts +++ b/scripts/tests/update-image-versions-orchestrator.test.ts @@ -63,7 +63,10 @@ function audit(overrides: Record> = {}) { return { checkedAt: CHECKED_AT, images: IMAGE_SBOM_REGISTRY.map((record) => { - const image = { ...verifiedImage(record), ...overrides[record.id] } + const image = { + ...verifiedImage(record), + ...overrides[record.id] + } if (image.status === 'unavailable') { delete image.values } @@ -144,7 +147,9 @@ describe('updateImageVersions — write mode', () => { }) it('carries the previous Dakota baseline forward but drops stale cached isos', async () => { - const isos = [{ label: 'Download ISO', filename: 'dakota-live.iso' }] + const isos = [ + { label: 'Download ISO', filename: 'dakota-live.iso' } + ] previousFiles[DAKOTA_PATH] = JSON.stringify({ status: 'verified', isos, @@ -171,7 +176,9 @@ describe('updateImageVersions — write mode', () => { it('stamps lastSuccessfulAt from the previous audit onto a newly failed image', async () => { previousFiles[AUDIT_PATH] = JSON.stringify({ checkedAt: '2026-10-04T00:00:00.000Z', - images: [{ id: 'dakota-gaming', status: 'verified' }], + images: [ + { id: 'dakota-gaming', status: 'verified' } + ], }) verifyRegistryMock.mockResolvedValue(audit({ 'dakota-gaming': { status: 'unavailable', errorCode: 'missing-sbom', error: 'no referrer' }, @@ -211,7 +218,9 @@ describe('updateImageVersions — write mode', () => { }) it('warns "unknown" when an unavailable image carries no error code', async () => { - verifyRegistryMock.mockResolvedValue(audit({ 'dakota-gaming': { status: 'unavailable' } })) + verifyRegistryMock.mockResolvedValue(audit({ + 'dakota-gaming': { status: 'unavailable' } + })) await updateImageVersions() @@ -230,7 +239,9 @@ describe('updateImageVersions — field-loss guard', () => { }) it('refuses to write when a published Dakota package vanishes without audit evidence', async () => { - previousFiles[DAKOTA_PATH] = JSON.stringify({ packages: { retired: '1.0' } }) + previousFiles[DAKOTA_PATH] = JSON.stringify({ + packages: { retired: '1.0' } + }) await expect(updateImageVersions()).rejects.toThrow( 'unexplained field loss in public/dakota-versions.json packages: retired', @@ -243,8 +254,15 @@ describe('updateImageVersions — field-loss guard', () => { it('accepts losing lts.hwe when the hwe image is unavailable (hwe aliases kernel)', async () => { previousFiles[STREAMS_PATH] = 'lts:\n status: verified\n hwe: "6.17.0"\n' verifyRegistryMock.mockResolvedValue(audit({ - 'bluefin-lts': { values: { kernel: '6.12.0-1.el10' } }, - 'bluefin-lts-hwe': { fields: ['kernel'], status: 'unavailable', errorCode: 'missing-sbom', error: 'gone' }, + 'bluefin-lts': { + values: { kernel: '6.12.0-1.el10' } + }, + 'bluefin-lts-hwe': { + fields: ['kernel'], + status: 'unavailable', + errorCode: 'missing-sbom', + error: 'gone' + }, })) await updateImageVersions() @@ -257,8 +275,13 @@ describe('updateImageVersions — field-loss guard', () => { it('refuses to drop lts.hwe when the hwe image verified without a kernel value', async () => { previousFiles[STREAMS_PATH] = 'lts:\n status: verified\n hwe: "6.17.0"\n' verifyRegistryMock.mockResolvedValue(audit({ - 'bluefin-lts': { values: { kernel: '6.12.0-1.el10' } }, - 'bluefin-lts-hwe': { fields: ['kernel'], values: {} }, + 'bluefin-lts': { + values: { kernel: '6.12.0-1.el10' } + }, + 'bluefin-lts-hwe': { + fields: ['kernel'], + values: {} + }, })) await expect(updateImageVersions()).rejects.toThrow('unexplained field loss in public/stream-versions.yml lts: hwe') @@ -266,8 +289,13 @@ describe('updateImageVersions — field-loss guard', () => { }) it('publishes an unavailable Dakota block when the base image fails', async () => { - const isos = [{ label: 'Download ISO', filename: 'dakota-live.iso' }] - previousFiles[DAKOTA_PATH] = JSON.stringify({ isos, packages: { kernel: '7.2.6' } }) + const isos = [ + { label: 'Download ISO', filename: 'dakota-live.iso' } + ] + previousFiles[DAKOTA_PATH] = JSON.stringify({ + isos, + packages: { kernel: '7.2.6' } + }) verifyRegistryMock.mockResolvedValue(audit({ dakota: { status: 'unavailable', errorCode: 'missing-sbom', error: 'gone' }, })) @@ -303,7 +331,10 @@ describe('updateImageVersions — --check-only', () => { it('exits 1 for the registry\'s own pending-mapping records, even though they are optional', async () => { const pending = Object.fromEntries(IMAGE_SBOM_REGISTRY .filter(record => record.pendingSbom === true) - .map(record => [record.id, { status: 'unavailable', errorCode: 'pending-mapping', error: 'pending' }])) + .map(record => [ + record.id, + { status: 'unavailable', errorCode: 'pending-mapping', error: 'pending' } + ])) expect(Object.keys(pending).length).toBeGreaterThan(0) verifyRegistryMock.mockResolvedValue(audit(pending)) @@ -351,7 +382,12 @@ describe('update-image-versions CLI', () => { // With oras absent the real collector raises ToolingError('tool-missing') // before touching the network, which exercises the CLI's exit-2 contract. - it.each([[[]], [['--check-only']]])('exits 2 and reports the block when oras is missing (args %j)', (args) => { + it.each([ + [[]], + [ + ['--check-only'] + ] + ])('exits 2 and reports the block when oras is missing (args %j)', (args) => { const before = [STREAMS_PATH, DAKOTA_PATH].map(file => fs.statSync(file).mtimeMs) const result = spawnSync(process.execPath, [scriptPath, ...args], { diff --git a/scripts/tests/update-image-versions.test.ts b/scripts/tests/update-image-versions.test.ts index 99c20bf8a..1430eaa4d 100644 --- a/scripts/tests/update-image-versions.test.ts +++ b/scripts/tests/update-image-versions.test.ts @@ -295,8 +295,18 @@ describe('productStatus', () => { const result = { checkedAt: '2026-08-26T00:00:00.000Z', images: [ - { id: 'dakota', product: 'dakota', required: true, status: 'verified' }, - { id: 'dakota-gaming', product: 'dakota', required: true, status: 'unavailable' }, + { + id: 'dakota', + product: 'dakota', + required: true, + status: 'verified' + }, + { + id: 'dakota-gaming', + product: 'dakota', + required: true, + status: 'unavailable' + }, ], } const status = productStatus(result) @@ -307,8 +317,18 @@ describe('productStatus', () => { const result = { checkedAt: '2026-08-26T00:00:00.000Z', images: [ - { id: 'dakota', product: 'dakota', required: true, status: 'verified' }, - { id: 'dakota-gaming', product: 'dakota', required: false, status: 'unavailable' }, + { + id: 'dakota', + product: 'dakota', + required: true, + status: 'verified' + }, + { + id: 'dakota-gaming', + product: 'dakota', + required: false, + status: 'unavailable' + }, ], } const status = productStatus(result) @@ -318,7 +338,9 @@ describe('productStatus', () => { it('throws an explicit error when an image entry has no product field', () => { const result = { checkedAt: '2026-08-26T00:00:00.000Z', - images: [{ id: 'orphan', status: 'verified' }], + images: [ + { id: 'orphan', status: 'verified' } + ], } expect(() => productStatus(result)).toThrow('audit image entry \'orphan\' is missing a product field') }) @@ -331,7 +353,9 @@ describe('productStatus', () => { image: 'ghcr.io/projectbluefin/bluefin:latest', certificateIdentityRegexp: '^https://.*$', certificateOidcIssuer: 'https://token.actions.githubusercontent.com', - packages: { kernel: { name: 'linux', required: true } }, + packages: { + kernel: { name: 'linux', required: true } + }, }) const collect = vi.fn().mockResolvedValue({ id: 'bluefin', @@ -339,12 +363,20 @@ describe('productStatus', () => { imageDigest: IMAGE_DIGEST, sbomDigest: SBOM_DIGEST, checkedAt: '2026-08-26T00:00:00.000Z', - sbom: { packages: [{ name: 'linux', versionInfo: '7.0.7' }, { name: 'gnome-shell', versionInfo: '50.2' }] }, + sbom: { + packages: [ + { name: 'linux', versionInfo: '7.0.7' }, + { name: 'gnome-shell', versionInfo: '50.2' } + ] + }, }) const auditResult = await verifyRegistry( [REQUIRED_RECORD, bluefinRecord], - { collectVerifiedImageSbom: collect, now: () => '2026-08-26T00:00:00.000Z' }, + { + collectVerifiedImageSbom: collect, + now: () => '2026-08-26T00:00:00.000Z' + }, ) // Must not mutate entries before calling productStatus @@ -539,7 +571,10 @@ describe('verifyRegistry — ambiguity is fail-closed', () => { it('carries the mapped field list onto every entry for the field-loss guard', async () => { const collect = collectorFor(AMBIGUOUS_RECORD, { - packages: [{ name: 'linux', versionInfo: '7.0.7' }, { name: 'mesa', versionInfo: '26.0.6' }], + packages: [ + { name: 'linux', versionInfo: '7.0.7' }, + { name: 'mesa', versionInfo: '26.0.6' } + ], }) const result = await verifyRegistry([AMBIGUOUS_RECORD], { collectVerifiedImageSbom: collect }) @@ -590,7 +625,9 @@ describe('verifyRegistry — pending mappings never verify', () => { it('stays unavailable with pending-mapping once an SPDX referrer appears', async () => { const collect = collectorFor(PENDING_RECORD, { - packages: [{ name: 'linux', versionInfo: '7.1.8-ogc1' }], + packages: [ + { name: 'linux', versionInfo: '7.1.8-ogc1' } + ], }) const result = await verifyRegistry([PENDING_RECORD], { collectVerifiedImageSbom: collect }) @@ -606,7 +643,11 @@ describe('verifyRegistry — pending mappings never verify', () => { it('treats an empty packages map as pending even without the pendingSbom flag', async () => { const record = Object.freeze({ ...PENDING_RECORD, pendingSbom: undefined, packages: {} }) - const collect = collectorFor(record, { packages: [{ name: 'linux', versionInfo: '7.1.8-ogc1' }] }) + const collect = collectorFor(record, { + packages: [ + { name: 'linux', versionInfo: '7.1.8-ogc1' } + ] + }) const result = await verifyRegistry([record], { collectVerifiedImageSbom: collect }) @@ -634,8 +675,18 @@ describe('productStatus — degraded entries', () => { const status = productStatus({ checkedAt: '2026-08-26T00:00:00.000Z', images: [ - { id: 'bluefin-stable', product: 'bluefin', required: true, status: 'degraded' }, - { id: 'bluefin-stable-nvidia', product: 'bluefin', required: false, status: 'verified' }, + { + id: 'bluefin-stable', + product: 'bluefin', + required: true, + status: 'degraded' + }, + { + id: 'bluefin-stable-nvidia', + product: 'bluefin', + required: false, + status: 'verified' + }, ], }) expect(status.bluefin.status).toBe('degraded') @@ -645,8 +696,18 @@ describe('productStatus — degraded entries', () => { const status = productStatus({ checkedAt: '2026-08-26T00:00:00.000Z', images: [ - { id: 'bluefin-stable', product: 'bluefin', required: true, status: 'degraded' }, - { id: 'bluefin-lts', product: 'bluefin', required: true, status: 'unavailable' }, + { + id: 'bluefin-stable', + product: 'bluefin', + required: true, + status: 'degraded' + }, + { + id: 'bluefin-lts', + product: 'bluefin', + required: true, + status: 'unavailable' + }, ], }) expect(status.bluefin.status).toBe('unavailable') @@ -670,7 +731,14 @@ describe('annotateLastSuccessful', () => { it('copies the previous run timestamp onto a newly failed image', () => { const current = { checkedAt: '2026-08-26T10:00:00.000Z', - images: [{ id: 'dakota', product: 'dakota', status: 'unavailable', errorCode: 'missing-sbom' }], + images: [ + { + id: 'dakota', + product: 'dakota', + status: 'unavailable', + errorCode: 'missing-sbom' + } + ], } const annotated = annotateLastSuccessful(current, previous) expect(annotated.images[0].lastSuccessfulAt).toBe('2026-08-25T10:00:00.000Z') @@ -679,7 +747,14 @@ describe('annotateLastSuccessful', () => { it('accepts a previously degraded image as a last successful verification', () => { const current = { checkedAt: '2026-08-26T10:00:00.000Z', - images: [{ id: 'bluefin-stable', product: 'bluefin', status: 'unavailable', errorCode: 'missing-sbom' }], + images: [ + { + id: 'bluefin-stable', + product: 'bluefin', + status: 'unavailable', + errorCode: 'missing-sbom' + } + ], } const annotated = annotateLastSuccessful(current, previous) expect(annotated.images[0].lastSuccessfulAt).toBe('2026-08-25T10:00:00.000Z') @@ -688,17 +763,26 @@ describe('annotateLastSuccessful', () => { it('preserves lastSuccessfulAt across consecutive failed runs', () => { const previousFailure = { checkedAt: '2026-08-26T10:00:00.000Z', - images: [{ - id: 'dakota', - product: 'dakota', - status: 'unavailable', - errorCode: 'missing-sbom', - lastSuccessfulAt: '2026-08-25T10:00:00.000Z', - }], + images: [ + { + id: 'dakota', + product: 'dakota', + status: 'unavailable', + errorCode: 'missing-sbom', + lastSuccessfulAt: '2026-08-25T10:00:00.000Z', + } + ], } const current = { checkedAt: '2026-08-27T10:00:00.000Z', - images: [{ id: 'dakota', product: 'dakota', status: 'unavailable', errorCode: 'missing-sbom' }], + images: [ + { + id: 'dakota', + product: 'dakota', + status: 'unavailable', + errorCode: 'missing-sbom' + } + ], } const annotated = annotateLastSuccessful(current, previousFailure) @@ -709,7 +793,14 @@ describe('annotateLastSuccessful', () => { it('records nothing when the previous run never verified that image', () => { const current = { checkedAt: '2026-08-26T10:00:00.000Z', - images: [{ id: 'bluefin-lts', product: 'bluefin', status: 'unavailable', errorCode: 'pending-mapping' }], + images: [ + { + id: 'bluefin-lts', + product: 'bluefin', + status: 'unavailable', + errorCode: 'pending-mapping' + } + ], } const annotated = annotateLastSuccessful(current, previous) expect(annotated.images[0]).not.toHaveProperty('lastSuccessfulAt') @@ -718,7 +809,14 @@ describe('annotateLastSuccessful', () => { it('annotates degraded entries too', () => { const current = { checkedAt: '2026-08-26T10:00:00.000Z', - images: [{ id: 'dakota', product: 'dakota', status: 'degraded', errorCode: 'ambiguous-optional' }], + images: [ + { + id: 'dakota', + product: 'dakota', + status: 'degraded', + errorCode: 'ambiguous-optional' + } + ], } const annotated = annotateLastSuccessful(current, previous) expect(annotated.images[0].lastSuccessfulAt).toBe('2026-08-25T10:00:00.000Z') @@ -727,7 +825,9 @@ describe('annotateLastSuccessful', () => { it('leaves verified entries untouched and does not mutate the input', () => { const current = { checkedAt: '2026-08-26T10:00:00.000Z', - images: [{ id: 'dakota', product: 'dakota', status: 'verified' }], + images: [ + { id: 'dakota', product: 'dakota', status: 'verified' } + ], } const annotated = annotateLastSuccessful(current, previous) expect(annotated.images[0]).not.toHaveProperty('lastSuccessfulAt') @@ -737,7 +837,9 @@ describe('annotateLastSuccessful', () => { it('is a no-op without a previous audit', () => { const current = { checkedAt: '2026-08-26T10:00:00.000Z', - images: [{ id: 'dakota', product: 'dakota', status: 'unavailable' }], + images: [ + { id: 'dakota', product: 'dakota', status: 'unavailable' } + ], } expect(annotateLastSuccessful(current, null).images[0]).not.toHaveProperty('lastSuccessfulAt') }) @@ -798,14 +900,16 @@ describe('assertExplainedFieldLoss', () => { it('accepts loss explained by an unavailable image that mapped the field', () => { const unavailableAudit = { checkedAt: '2026-08-26T10:00:00.000Z', - images: [{ - id: 'dakota-nvidia', - product: 'dakota', - required: false, - status: 'unavailable', - errorCode: 'image-not-found', - fields: ['nvidia'], - }], + images: [ + { + id: 'dakota-nvidia', + product: 'dakota', + required: false, + status: 'unavailable', + errorCode: 'image-not-found', + fields: ['nvidia'], + } + ], } expect(() => assertExplainedFieldLoss({ label: 'dakota-versions.json packages', @@ -830,7 +934,16 @@ describe('assertExplainedFieldLoss', () => { it('accepts an entire block going unavailable when the product has an unavailable image', () => { const unavailableAudit = { checkedAt: '2026-08-26T10:00:00.000Z', - images: [{ id: 'bluefin-lts', product: 'bluefin', required: true, status: 'unavailable', errorCode: 'pending-mapping', fields: [] }], + images: [ + { + id: 'bluefin-lts', + product: 'bluefin', + required: true, + status: 'unavailable', + errorCode: 'pending-mapping', + fields: [] + } + ], } expect(() => assertExplainedFieldLoss({ label: 'stream-versions.yml lts', @@ -880,7 +993,16 @@ describe('assertExplainedFieldLoss', () => { it('resolves the hwe alias to the kernel field of the HWE image', () => { const unavailableAudit = { checkedAt: '2026-08-26T10:00:00.000Z', - images: [{ id: 'bluefin-lts-hwe', product: 'bluefin', required: false, status: 'unavailable', errorCode: 'missing-sbom', fields: ['kernel'] }], + images: [ + { + id: 'bluefin-lts-hwe', + product: 'bluefin', + required: false, + status: 'unavailable', + errorCode: 'missing-sbom', + fields: ['kernel'] + } + ], } expect(() => assertExplainedFieldLoss({ label: 'stream-versions.yml lts', diff --git a/scripts/tests/verified-image-sbom.test.ts b/scripts/tests/verified-image-sbom.test.ts index 7d9943e73..406e61e3f 100644 --- a/scripts/tests/verified-image-sbom.test.ts +++ b/scripts/tests/verified-image-sbom.test.ts @@ -59,7 +59,12 @@ describe('resolveImageDigest', () => { expect(result).toBe(`ghcr.io/projectbluefin/dakota@${DAKOTA_DIGEST}`) expect(run).toHaveBeenCalledWith( 'oras', - ['manifest', 'fetch', '--descriptor', 'ghcr.io/projectbluefin/dakota:latest'], + [ + 'manifest', + 'fetch', + '--descriptor', + 'ghcr.io/projectbluefin/dakota:latest' + ], expect.objectContaining({ encoding: 'utf8' }), ) }) @@ -80,7 +85,12 @@ describe('discoverReferrers', () => { const result = discoverReferrers(imageAtDigest, run) expect(run).toHaveBeenCalledWith( 'oras', - ['discover', '--format', 'json', imageAtDigest], + [ + 'discover', + '--format', + 'json', + imageAtDigest + ], expect.objectContaining({ encoding: 'utf8' }), ) expect(result).toEqual(dakotaDiscovery.referrers) @@ -257,7 +267,12 @@ describe('collectVerifiedImageSbom', () => { }) it('collects verified image SBOM for dakota with both provenance and SPDX', async () => { - const spdxDoc = { spdxVersion: 'SPDX-2.3', packages: [{ name: 'linux', versionInfo: '6.12.0' }] } + const spdxDoc = { + spdxVersion: 'SPDX-2.3', + packages: [ + { name: 'linux', versionInfo: '6.12.0' } + ] + } const mockFs = { mkdtempSync: vi.fn().mockReturnValue('/mock-tmp/sbom-abc'), readdirSync: vi.fn().mockReturnValue(['sbom.spdx.json']), @@ -541,7 +556,12 @@ describe('collectVerifiedImageSbom — publisher identity', () => { }) it('collects with sbomSignature: missing when the referrer carries no publisher signature in discovery', async () => { - const spdxDoc = { spdxVersion: 'SPDX-2.3', packages: [{ name: 'linux', versionInfo: '6.12.0' }] } + const spdxDoc = { + spdxVersion: 'SPDX-2.3', + packages: [ + { name: 'linux', versionInfo: '6.12.0' } + ] + } const mockFs = { mkdtempSync: vi.fn().mockReturnValue('/mock-tmp/sbom-unsigned'), readdirSync: vi.fn().mockReturnValue(['sbom.spdx.json']), diff --git a/scripts/tests/wolves-cue-at.test.ts b/scripts/tests/wolves-cue-at.test.ts index 31d71daa6..c5ddbe966 100644 --- a/scripts/tests/wolves-cue-at.test.ts +++ b/scripts/tests/wolves-cue-at.test.ts @@ -51,7 +51,15 @@ function cueContaining(seconds: number): IntroOverlayTextCue { describe('wolves-videos registry', () => { it('resolves every alias, and no argument, to the canonical prologue key', () => { - for (const alias of [1, '1', 'first', 'gardener', 'winnower', 'prologue', undefined]) { + for (const alias of [ + 1, + '1', + 'first', + 'gardener', + 'winnower', + 'prologue', + undefined + ]) { const { key, video } = resolveVideo(alias as string | undefined) expect(key).toBe('prologue') expect(video).toBe(VIDEOS.prologue) @@ -149,12 +157,30 @@ describe('wolves-cue-at CLI', () => { }) it.each([ - ['m:ss', ['1:50']], - ['seconds', ['110']], - ['m and s', ['1m50s']], - ['ordinal before the timestamp', ['1', '1:50']], - ['ordinal after the timestamp', ['110', '1']], - ['alias', ['gardener', '1:50']], + [ + 'm:ss', + ['1:50'] + ], + [ + 'seconds', + ['110'] + ], + [ + 'm and s', + ['1m50s'] + ], + [ + 'ordinal before the timestamp', + ['1', '1:50'] + ], + [ + 'ordinal after the timestamp', + ['110', '1'] + ], + [ + 'alias', + ['gardener', '1:50'] + ], ])('answers the cue on screen at 110s given %s', (_label, args) => { const cue = cueContaining(110) const result = run(...args) diff --git a/scripts/tests/workflow-cache-parity.test.ts b/scripts/tests/workflow-cache-parity.test.ts index fdc580ab2..8f7218221 100644 --- a/scripts/tests/workflow-cache-parity.test.ts +++ b/scripts/tests/workflow-cache-parity.test.ts @@ -40,7 +40,9 @@ function collectLiveDataCacheSteps(): CacheStep[] { } steps.push({ file, - kind: uses.includes('/save@') ? 'save' : 'restore', + kind: uses.includes('/save@') + ? 'save' + : 'restore', paths: (step.with?.path ?? '').trim().split('\n').map(line => line.trim()).filter(Boolean), }) } diff --git a/scripts/tests/workflow-concurrency.test.ts b/scripts/tests/workflow-concurrency.test.ts index af7d39080..208fc092a 100644 --- a/scripts/tests/workflow-concurrency.test.ts +++ b/scripts/tests/workflow-concurrency.test.ts @@ -10,7 +10,9 @@ const workflow = load(readFileSync(resolve(process.cwd(), '.github/workflows/ci. function policy(eventName: string, runId: number, pullRequestNumber?: number) { expect(workflow.concurrency.group).toBe(`\${{ github.workflow }}-\${{ github.event_name }}-\${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.run_id }}`) expect(workflow.concurrency['cancel-in-progress']).toBe(`\${{ github.event_name == 'pull_request' }}`) - const identifier = eventName === 'pull_request' ? (pullRequestNumber || runId) : runId + const identifier = eventName === 'pull_request' + ? (pullRequestNumber || runId) + : runId return { group: `CI-${eventName}-${identifier}`, cancel: String(eventName === 'pull_request'), diff --git a/scripts/tests/workflow-sbom-policy.test.ts b/scripts/tests/workflow-sbom-policy.test.ts index 2a84d118d..56bde6efc 100644 --- a/scripts/tests/workflow-sbom-policy.test.ts +++ b/scripts/tests/workflow-sbom-policy.test.ts @@ -170,7 +170,12 @@ function runScriptBody(body: string, openIssues: unknown[], env: Record { it('runs the failure-issue script end to end and deduplicates by exact title', () => { const { created, updated } = runScriptBody( scriptBodyFor('Create issue on failure'), - [{ number: 314, title: 'Failed to update live data from SBOM sources', state: 'open' }], + [ + { number: 314, title: 'Failed to update live data from SBOM sources', state: 'open' } + ], ) expect(created).toHaveLength(0) diff --git a/scripts/update-back-catalogue.js b/scripts/update-back-catalogue.js index 0cade2bd1..2c8aa13ac 100644 --- a/scripts/update-back-catalogue.js +++ b/scripts/update-back-catalogue.js @@ -47,7 +47,9 @@ const PLAYLIST_HOSTS = new Set(['www.youtube.com', 'youtube.com', 'music.youtube const MODULE_PATH = import.meta.url.startsWith('file:') ? fileURLToPath(import.meta.url) : null -const ROOT_DIR = MODULE_PATH ? resolve(dirname(MODULE_PATH), '..') : process.cwd() +const ROOT_DIR = MODULE_PATH + ? resolve(dirname(MODULE_PATH), '..') + : process.cwd() const EXPERIENCES_DIR = join(ROOT_DIR, 'public', 'experiences') /** @@ -83,7 +85,9 @@ export function cleanTitle(raw) { do { previous = title title = title.replace(pattern, (match, inner) => - TITLE_JUNK.test(inner) && !/\b(?:feat|from|live|cover|instrumental|intro|part)\b/i.test(inner) ? '' : match) + TITLE_JUNK.test(inner) && !/\b(?:feat|from|live|cover|instrumental|intro|part)\b/i.test(inner) + ? '' + : match) } while (title !== previous) } for (const separator of [' - ', ' | ']) { @@ -132,7 +136,9 @@ export function stripArtistPrefix(title, artist) { } let rest = title.slice(artist.length).replace(/^\s*[-/:—·]\s*/, '').trim() rest = rest.replace(/^["“]([^"”]+)["”]/, '$1').replace(/\s{2,}/g, ' ').trim() - return rest.length > 0 ? rest : title + return rest.length > 0 + ? rest + : title } function normalizeIdentity(value) { @@ -164,9 +170,15 @@ export function buildSegments(entries, chapter) { const override = TRACK_METADATA_OVERRIDES[entry.id] ?? {} const artist = override.artist ?? (reversed ? uploader - : cleanArtist(hasArtistPrefix ? artistPrefix.trim() : uploader)) + : cleanArtist(hasArtistPrefix + ? artistPrefix.trim() + : uploader)) const title = override.title ?? stripArtistPrefix( - reversed ? artistPrefix.trim() : (hasArtistPrefix ? titleParts.join(' - ').trim() : cleanedRawTitle), + reversed + ? artistPrefix.trim() + : (hasArtistPrefix + ? titleParts.join(' - ').trim() + : cleanedRawTitle), artist, ) const songKey = `${normalizeIdentity(artist)}::${normalizeIdentity(title)}` @@ -203,8 +215,12 @@ export function shouldIncludeAlbum(album) { if (!album || typeof album !== 'object') { return false } - const id = typeof album.id === 'string' ? album.id : '' - const title = typeof album.title === 'string' ? album.title : '' + const id = typeof album.id === 'string' + ? album.id + : '' + const title = typeof album.title === 'string' + ? album.title + : '' return PLAYLIST_ID_PATTERN.test(id) && !FEATURED_ALBUM_IDS.has(id) && !FEATURED_ALBUM_TITLES.has(title) } @@ -230,7 +246,12 @@ export function readPlaylistEntries(playlistUrl) { if (!isPlaylistUrl(playlistUrl)) { throw new TypeError(`Refusing to pass non-YouTube playlist URL to yt-dlp: ${String(playlistUrl)}`) } - const output = execFileSync('yt-dlp', ['--flat-playlist', '--dump-single-json', '--', playlistUrl], { + const output = execFileSync('yt-dlp', [ + '--flat-playlist', + '--dump-single-json', + '--', + playlistUrl + ], { encoding: 'utf8', maxBuffer: 64 * 1024 * 1024, }) @@ -238,8 +259,12 @@ export function readPlaylistEntries(playlistUrl) { } export function auditExperience(album, entries, experience) { - const playableEntries = (Array.isArray(entries) ? entries : []).filter(isPlayableEntry) - const generatedSegments = Array.isArray(experience?.segments) ? experience.segments : [] + const playableEntries = (Array.isArray(entries) + ? entries + : []).filter(isPlayableEntry) + const generatedSegments = Array.isArray(experience?.segments) + ? experience.segments + : [] if (playableEntries.length === 0) { throw new Error(`Back catalogue audit failed for ${album.title}: no playable entries found`) @@ -441,9 +466,13 @@ export async function refreshMetadata(options = {}) { } if (MODULE_PATH && process.argv[1] && MODULE_PATH === resolve(process.argv[1])) { - const run = process.argv.includes('--metadata-only') ? refreshMetadata : main + const run = process.argv.includes('--metadata-only') + ? refreshMetadata + : main run().catch((error) => { - console.error(error instanceof Error ? error.message : String(error)) + console.error(error instanceof Error + ? error.message + : String(error)) process.exitCode = 1 }) } diff --git a/scripts/update-contributors.js b/scripts/update-contributors.js index fdd81d4ce..57d2d2df6 100755 --- a/scripts/update-contributors.js +++ b/scripts/update-contributors.js @@ -4,8 +4,12 @@ import { rename, rm, writeFile } from 'node:fs/promises' import { dirname, join } from 'node:path' import { fileURLToPath, pathToFileURL } from 'node:url' -const MODULE_PATH = import.meta.url.startsWith('file:') ? fileURLToPath(import.meta.url) : null -const ROOT_DIR = MODULE_PATH ? dirname(dirname(MODULE_PATH)) : process.cwd() +const MODULE_PATH = import.meta.url.startsWith('file:') + ? fileURLToPath(import.meta.url) + : null +const ROOT_DIR = MODULE_PATH + ? dirname(dirname(MODULE_PATH)) + : process.cwd() const TARGET_PATH = join(ROOT_DIR, 'public', 'contributors.json') const LOGIN_PATTERN = /^[a-z\d][a-z\d-]{0,38}$/i const AUTOMATION_LOGINS = new Set([ @@ -27,7 +31,10 @@ async function fetchPages(path, allowEmpty = false) { if (process.env.GH_TOKEN) { headers.Authorization = `Bearer ${process.env.GH_TOKEN}` } - const response = await fetch(url, { headers, signal: AbortSignal.timeout(30000) }) + const response = await fetch(url, { + headers, + signal: AbortSignal.timeout(30000) + }) if (response.status === 204 && allowEmpty) { return records } @@ -118,7 +125,9 @@ export async function updateContributors(targetPath = TARGET_PATH) { if (people.size === 0) { throw new Error('No human contributors found; refusing to replace existing data') } - const contributors = [...people.values()].sort((a, b) => + const contributors = [ + ...people.values() + ].sort((a, b) => a.login.toLowerCase().localeCompare(b.login.toLowerCase(), 'en') || a.id - b.id, ) const temporaryPath = `${targetPath}.${process.pid}.tmp` diff --git a/scripts/update-flickr-photos.js b/scripts/update-flickr-photos.js index a96c164ab..74b0f6b96 100644 --- a/scripts/update-flickr-photos.js +++ b/scripts/update-flickr-photos.js @@ -5,7 +5,9 @@ import { fileURLToPath } from 'node:url' const MODULE_PATH = import.meta.url.startsWith('file:') ? fileURLToPath(import.meta.url) : null -const ROOT_DIR = MODULE_PATH ? dirname(dirname(MODULE_PATH)) : process.cwd() +const ROOT_DIR = MODULE_PATH + ? dirname(dirname(MODULE_PATH)) + : process.cwd() const TARGET_PATH = join(ROOT_DIR, 'public', 'flickr-photos.json') const CONFIG_PATH = join(ROOT_DIR, 'scripts', 'flickr-curation.json') @@ -50,7 +52,9 @@ export async function fetchWithRateLimit(url, { retries = DEFAULT_CONFIG.maxRetr if (res.status === 429) { const retryAfter = res.headers.get('retry-after') - const waitSeconds = retryAfter ? Number(retryAfter) : Math.min(2 ** attempt * 2, 60) + const waitSeconds = retryAfter + ? Number(retryAfter) + : Math.min(2 ** attempt * 2, 60) if (attempt < retries) { console.warn(`Rate limited (429) for ${url}. Waiting ${waitSeconds}s before retry ${attempt + 1}/${retries}...`) await sleep(waitSeconds * 1000) @@ -157,7 +161,9 @@ export function selectFreshPhotos(candidates, targetTotalPhotos) { export function buildAlbumPageUrl(albumId, userId, page = 1) { const base = `https://www.flickr.com/photos/${userId}/albums/${albumId}` - return page > 1 ? `${base}/page${page}` : base + return page > 1 + ? `${base}/page${page}` + : base } export function extractPhotosFromAlbumHtml(html) { @@ -191,7 +197,9 @@ export function extractPhotosFromAlbumHtml(html) { const server = srcMatch[1] const id = srcMatch[2] const secret = srcMatch[3] - const title = titleMatch ? titleMatch[1].trim() : '' + const title = titleMatch + ? titleMatch[1].trim() + : '' if (!seen.has(id)) { seen.add(id) @@ -288,7 +296,9 @@ export async function scrapeAlbum(album, config, fetcher = fetchWithRateLimit) { const firstHtml = await firstRes.text() const totalPages = countAlbumPages(firstHtml) const targetPages = selectSpreadPages(totalPages, config.maxPagesPerAlbum) - const pageHtmlCache = new Map([[1, firstHtml]]) + const pageHtmlCache = new Map([ + [1, firstHtml] + ]) for (const page of targetPages) { let html = pageHtmlCache.get(page) diff --git a/scripts/update-image-versions.js b/scripts/update-image-versions.js index ef1af5465..ed6f54f9c 100644 --- a/scripts/update-image-versions.js +++ b/scripts/update-image-versions.js @@ -163,7 +163,9 @@ function isMainModule() { if (isMainModule()) { try { - await updateImageVersions({ checkOnly: process.argv.includes('--check-only') }) + await updateImageVersions({ + checkOnly: process.argv.includes('--check-only') + }) } catch (err) { if (err instanceof ToolingError) { diff --git a/scripts/update-wolves-playlist.js b/scripts/update-wolves-playlist.js index e1e019642..f3fc00633 100644 --- a/scripts/update-wolves-playlist.js +++ b/scripts/update-wolves-playlist.js @@ -10,7 +10,9 @@ const MUSIC_URL = `https://music.youtube.com/playlist?list=${PLAYLIST_ID}` const MODULE_PATH = import.meta.url.startsWith('file:') ? fileURLToPath(import.meta.url) : null -const ROOT_DIR = MODULE_PATH ? resolve(dirname(MODULE_PATH), '..') : process.cwd() +const ROOT_DIR = MODULE_PATH + ? resolve(dirname(MODULE_PATH), '..') + : process.cwd() const PUBLIC_DIR = join(ROOT_DIR, 'public') const TEMPO_CONFIGS = { @@ -105,8 +107,12 @@ export function normalizePlaylistEntries(entries) { return { id, - title: hasArtistPrefix ? titleParts.join(' - ').trim() : title, - artist: ARTIST_OVERRIDES[id] ?? (hasArtistPrefix ? artistPrefix.trim() : uploader), + title: hasArtistPrefix + ? titleParts.join(' - ').trim() + : title, + artist: ARTIST_OVERRIDES[id] ?? (hasArtistPrefix + ? artistPrefix.trim() + : uploader), youtubeVideoId: id, artwork: `wolves-artwork/${id}.jpg`, thumbnailUrl: thumbnail, @@ -127,7 +133,10 @@ function createManifest(tracks) { const { thumbnailUrl: _thumbnailUrl, ...manifestTrack } = track const tempo = TEMPO_CONFIGS[track.id] if (tempo) { - return { ...manifestTrack, ...tempo } + return { + ...manifestTrack, + ...tempo + } } return manifestTrack }), @@ -216,7 +225,9 @@ export async function main() { if (MODULE_PATH && process.argv[1] && MODULE_PATH === resolve(process.argv[1])) { main().catch((error) => { - console.error(error instanceof Error ? error.message : String(error)) + console.error(error instanceof Error + ? error.message + : String(error)) process.exitCode = 1 }) } diff --git a/scripts/wolves-cue-at.mjs b/scripts/wolves-cue-at.mjs index 8c24d9aaf..0495a1634 100644 --- a/scripts/wolves-cue-at.mjs +++ b/scripts/wolves-cue-at.mjs @@ -31,7 +31,9 @@ function parseTimestamp(value) { return Number(spelled[1]) * 60 + Number(spelled[2]) } const plain = Number(value) - return Number.isFinite(plain) ? plain : Number.NaN + return Number.isFinite(plain) + ? plain + : Number.NaN } function formatTimestamp(seconds) { @@ -42,9 +44,15 @@ function formatTimestamp(seconds) { } function describeCue(cue, at) { - const words = cue.text ? cue.text.trim().split(/\s+/).filter(Boolean).length : 0 - const lines = cue.text ? cue.text.split('\n').length : 0 - const holdEnd = cue.textHoldSeconds != null ? cue.start + cue.textHoldSeconds : cue.end + const words = cue.text + ? cue.text.trim().split(/\s+/).filter(Boolean).length + : 0 + const lines = cue.text + ? cue.text.split('\n').length + : 0 + const holdEnd = cue.textHoldSeconds != null + ? cue.start + cue.textHoldSeconds + : cue.end return { window: `${formatTimestamp(cue.start)} - ${formatTimestamp(cue.end)}`, text: cue.text || '(wordless shot)', @@ -56,8 +64,12 @@ function describeCue(cue, at) { emphasis: cue.emphasis ?? 'normal', position: cue.textPosition ?? 'default', image: cue.backgroundImage ?? (cue.backgroundCrossfade ? '(crossfade)' : '(none)'), - textUp: at == null || !cue.text ? null : at < holdEnd, - holdEnds: cue.textHoldSeconds != null ? formatTimestamp(holdEnd) : '(holds the shot)', + textUp: at == null || !cue.text + ? null + : at < holdEnd, + holdEnds: cue.textHoldSeconds != null + ? formatTimestamp(holdEnd) + : '(holds the shot)', } } @@ -80,7 +92,9 @@ async function main() { if (args.length === 0 || args.includes('--help')) { console.info('usage: node scripts/wolves-cue-at.mjs [video] ') console.info(`videos: ${knownVideoNames()} (default: prologue)`) - process.exit(args.length === 0 ? 1 : 0) + process.exit(args.length === 0 + ? 1 + : 0) } const positional = args.filter(arg => !arg.startsWith('-')) @@ -103,7 +117,12 @@ async function main() { process.exit(1) } - const server = await createServer({ root: ROOT, server: { middlewareMode: true }, appType: 'custom', logLevel: 'error' }) + const server = await createServer({ + root: ROOT, + server: { middlewareMode: true }, + appType: 'custom', + logLevel: 'error' + }) try { const segment = await video.load(specifier => server.ssrLoadModule(specifier)) const cues = segment.overlays diff --git a/scripts/wolves-frame-audit.mjs b/scripts/wolves-frame-audit.mjs index a360d7eba..14b5caa23 100644 --- a/scripts/wolves-frame-audit.mjs +++ b/scripts/wolves-frame-audit.mjs @@ -50,18 +50,27 @@ const SETTLE_ATTEMPTS = 3 function parseViewport(value) { const match = /^(\d+)x(\d+)$/.exec(value ?? '') - return match ? { width: Number(match[1]), height: Number(match[2]) } : null + return match + ? { + width: Number(match[1]), + height: Number(match[2]) + } + : null } function flagValue(args, name) { const index = args.indexOf(name) - return index === -1 ? null : args[index + 1] ?? null + return index === -1 + ? null + : args[index + 1] ?? null } /** The plate a cue puts on screen. A crossfade shot settles on its night plate. */ function plateFor(cue) { const image = cue.backgroundImage ?? cue.backgroundCrossfade?.[0]?.night ?? null - return image ? image.split('/').pop() : null + return image + ? image.split('/').pop() + : null } function normalise(text) { @@ -99,16 +108,42 @@ export function paintedBox({ elementBox, naturalWidth, naturalHeight, objectFit, const [x = '50%', y = '50%'] = position.split(/\s+/) const left = elementBox.left + objectPosition(x, elementBox.width - width) const top = elementBox.top + objectPosition(y, elementBox.height - height) - return { left, top, right: left + width, bottom: top + height, width, height } + return { + left, + top, + right: left + width, + bottom: top + height, + width, + height + } } function selfTest() { - const elementBox = { left: 0, top: 0, right: 1280, bottom: 720, width: 1280, height: 720 } - const contained = paintedBox({ elementBox, naturalWidth: 1024, naturalHeight: 768, objectFit: 'contain', objectPosition: '50% 50%' }) + const elementBox = { + left: 0, + top: 0, + right: 1280, + bottom: 720, + width: 1280, + height: 720 + } + const contained = paintedBox({ + elementBox, + naturalWidth: 1024, + naturalHeight: 768, + objectFit: 'contain', + objectPosition: '50% 50%' + }) if (contained.left !== 160 || contained.width !== 960 || contained.height !== 720) { throw new Error(`contain self-test failed: ${JSON.stringify(contained)}`) } - const covered = paintedBox({ elementBox, naturalWidth: 1024, naturalHeight: 768, objectFit: 'cover', objectPosition: '50% 50%' }) + const covered = paintedBox({ + elementBox, + naturalWidth: 1024, + naturalHeight: 768, + objectFit: 'cover', + objectPosition: '50% 50%' + }) if (covered.left !== 0 || covered.top !== -120 || covered.width !== 1280 || covered.height !== 960) { throw new Error(`cover self-test failed: ${JSON.stringify(covered)}`) } @@ -126,7 +161,9 @@ async function loadCues(videoKey) { const { video } = resolveVideo(videoKey) const loadModule = specifier => server.ssrLoadModule(specifier) const segment = await video.load(loadModule) - const geometry = video.loadGeometry ? await video.loadGeometry(loadModule) : [] + const geometry = video.loadGeometry + ? await video.loadGeometry(loadModule) + : [] return { segment, cues: segment.overlays, geometry } } finally { @@ -220,7 +257,9 @@ async function main() { if (!root) { return false } - const image = [...root.querySelectorAll('img.wolves-intro-overlay-background')] + const image = [ + ...root.querySelectorAll('img.wolves-intro-overlay-background') + ] .find(candidate => candidate.naturalWidth > 0 && Number(getComputedStyle(candidate).opacity) > 0.99) if (!image) { return false @@ -230,7 +269,9 @@ async function main() { } const caption = root.querySelector('.wolves-intro-overlay-text') const captionText = strip(caption?.innerText) - const captionOpacity = caption ? Number(getComputedStyle(caption).opacity) : 0 + const captionOpacity = caption + ? Number(getComputedStyle(caption).opacity) + : 0 if (text) { if (captionText !== text) { return false @@ -252,7 +293,14 @@ async function main() { // satisfied it — which is how a probe reports the shot it did not check. const box = (element) => { const rect = element.getBoundingClientRect() - return { left: rect.left, top: rect.top, right: rect.right, bottom: rect.bottom, width: rect.width, height: rect.height } + return { + left: rect.left, + top: rect.top, + right: rect.right, + bottom: rect.bottom, + width: rect.width, + height: rect.height + } } return { image: { @@ -268,7 +316,10 @@ async function main() { // The opacity tolerance belongs only to a wordless shot, where any text is // the previous shot's line on its way out. caption: caption && captionText && (text || captionOpacity > 0.5) - ? { text: caption.innerText.replace(/\s+/g, ' ').trim(), box: box(caption) } + ? { + text: caption.innerText.replace(/\s+/g, ' ').trim(), + box: box(caption) + } : null, frame: { width: window.innerWidth, height: window.innerHeight }, } @@ -284,13 +335,20 @@ async function main() { // Report what was actually on screen, so a failure names the frame it found. const found = await page.evaluate(() => { const root = document.querySelector('.wolves-intro-overlay') - const image = [...root?.querySelectorAll('img.wolves-intro-overlay-background') ?? []] - .map(candidate => ({ element: candidate, opacity: Number(getComputedStyle(candidate).opacity) })) + const image = [ + ...root?.querySelectorAll('img.wolves-intro-overlay-background') ?? [] + ] + .map(candidate => ({ + element: candidate, + opacity: Number(getComputedStyle(candidate).opacity) + })) .sort((a, b) => b.opacity - a.opacity)[0] ?.element ?? null const caption = root?.querySelector('.wolves-intro-overlay-text') return { - plate: image ? decodeURIComponent(image.currentSrc).split('/').pop() : 'none', + plate: image + ? decodeURIComponent(image.currentSrc).split('/').pop() + : 'none', text: caption?.innerText.replace(/\s+/g, ' ').trim() || '(wordless)', } }) @@ -350,14 +408,25 @@ async function main() { await browser.close() } - const unique = list => [...new Set(list)] + const unique = list => [ + ...new Set(list) + ] console.info(`\nduration ${segment.duration}s, ${cues.length} shots checked`) - for (const [heading, list] of [['console errors', consoleErrors], ['page errors', pageErrors], ['bad requests', badRequests], ['problems', problems]]) { + for (const [heading, list] of [ + ['console errors', consoleErrors], + ['page errors', pageErrors], + ['bad requests', badRequests], + ['problems', problems] + ]) { console.info(`\n${heading}:`) - console.info(unique(list).length ? unique(list).map(entry => ` ${entry}`).join('\n') : ' (none)') + console.info(unique(list).length + ? unique(list).map(entry => ` ${entry}`).join('\n') + : ' (none)') } - process.exit(problems.length || consoleErrors.length || pageErrors.length || badRequests.length ? 1 : 0) + process.exit(problems.length || consoleErrors.length || pageErrors.length || badRequests.length + ? 1 + : 0) } main().catch((error) => { diff --git a/scripts/wolves-videos.mjs b/scripts/wolves-videos.mjs index e5378b991..c4822057b 100644 --- a/scripts/wolves-videos.mjs +++ b/scripts/wolves-videos.mjs @@ -28,7 +28,12 @@ export const VIDEOS = { }, } -export const ALIASES = { 1: 'prologue', first: 'prologue', gardener: 'prologue', winnower: 'prologue' } +export const ALIASES = { + 1: 'prologue', + first: 'prologue', + gardener: 'prologue', + winnower: 'prologue' +} /** * Resolve a caller's name for a video to its registry entry. diff --git a/src/WolvesApp.vue b/src/WolvesApp.vue index 8dbeb7b17..357ad0311 100644 --- a/src/WolvesApp.vue +++ b/src/WolvesApp.vue @@ -94,7 +94,9 @@ async function launchExperience(manifest: ExperienceManifest) { const isDirectorsCut = ref(false) const introVideos = computed(() => - isDirectorsCut.value ? buildDirectorsCutVideoSequence() : buildIntroVideoSequence() + isDirectorsCut.value + ? buildDirectorsCutVideoSequence() + : buildIntroVideoSequence() ) const INTRO_HANDOFF_FADE_MS = 400 const intro = ref | null>(null) diff --git a/src/WolvesTeaserApp.vue b/src/WolvesTeaserApp.vue index 657175651..a819ed222 100644 --- a/src/WolvesTeaserApp.vue +++ b/src/WolvesTeaserApp.vue @@ -52,7 +52,9 @@ function plate(id: string): TrailerPlate | undefined { /** A plate's authored fade, so nothing hard-cuts that should not. */ function opacityOf(id: string): number { const found = plate(id) - return found ? trailerPlateOpacity(found, visualTime.value) : 0 + return found + ? trailerPlateOpacity(found, visualTime.value) + : 0 } // The page heading steps aside before the cut's own main title arrives, so the diff --git a/src/components/RssFeed.vue b/src/components/RssFeed.vue index 00314c849..924d8bed2 100644 --- a/src/components/RssFeed.vue +++ b/src/components/RssFeed.vue @@ -93,7 +93,9 @@ async function fetchFeed() { } } catch (err) { - error.value = err instanceof Error ? err.message : 'Failed to load feed' + error.value = err instanceof Error + ? err.message + : 'Failed to load feed' console.error('RSS Feed Error:', err) } finally { diff --git a/src/components/TopNavbar.vue b/src/components/TopNavbar.vue index 0a54f6b32..dea735b93 100644 --- a/src/components/TopNavbar.vue +++ b/src/components/TopNavbar.vue @@ -27,8 +27,14 @@ const rightNavLinks: NavLink[] = [ name: t('TopBar.Docs'), href: 'https://docs.projectbluefin.io/introduction' }, - { name: t('TopBar.Blog'), href: 'https://docs.projectbluefin.io/blog' }, - { name: t('TopBar.Reports'), href: 'https://docs.projectbluefin.io/reports' }, + { + name: t('TopBar.Blog'), + href: 'https://docs.projectbluefin.io/blog' + }, + { + name: t('TopBar.Reports'), + href: 'https://docs.projectbluefin.io/reports' + }, { name: t('TopBar.Discussions'), href: 'https://github.com/ublue-os/bluefin/discussions', diff --git a/src/components/dakota/DakotaVersionChips.vue b/src/components/dakota/DakotaVersionChips.vue index 91a89a85f..2e6f03014 100644 --- a/src/components/dakota/DakotaVersionChips.vue +++ b/src/components/dakota/DakotaVersionChips.vue @@ -43,7 +43,11 @@ const chips = computed(() => { return Object.entries(versions.value.packages) .filter(([key]) => !props.keys || props.keys.includes(key)) .filter(([, v]) => v) - .map(([key, value]) => ({ label: LABELS[key] ?? key, value, isFeature: FEATURE_KEYS.has(key) })) + .map(([key, value]) => ({ + label: LABELS[key] ?? key, + value, + isFeature: FEATURE_KEYS.has(key) + })) }) diff --git a/src/components/sections/SectionPicker.vue b/src/components/sections/SectionPicker.vue index e46f47ddf..821dd9f40 100644 --- a/src/components/sections/SectionPicker.vue +++ b/src/components/sections/SectionPicker.vue @@ -29,8 +29,23 @@ const PACKAGE_LABELS: Record = { // Kernel/init first, then graphics, then desktop. Every key here must be // resolvable from the image SBOM — see scripts/lib/image-sbom-registry.js. -const DAKOTA_KEYS = ['kernel', 'systemd', 'bootc', 'mesa', 'nvidia', 'gnome', 'pipewire'] -const CLASSIC_KEYS = ['base', 'kernel', 'systemd', 'mesa', 'gnome', 'pipewire'] +const DAKOTA_KEYS = [ + 'kernel', + 'systemd', + 'bootc', + 'mesa', + 'nvidia', + 'gnome', + 'pipewire' +] +const CLASSIC_KEYS = [ + 'base', + 'kernel', + 'systemd', + 'mesa', + 'gnome', + 'pipewire' +] async function loadVersions() { try { @@ -66,7 +81,12 @@ const classicRows = computed(() => { } return CLASSIC_KEYS .filter(key => stream[key]) - .map(key => ({ label: key === 'base' ? 'Base OS' : PACKAGE_LABELS[key] ?? key, value: stream[key] })) + .map(key => ({ + label: key === 'base' + ? 'Base OS' + : PACKAGE_LABELS[key] ?? key, + value: stream[key] + })) }) const classicDownloads = computed(() => [ diff --git a/src/components/server/ServerDemos.vue b/src/components/server/ServerDemos.vue index f91d2ef8f..855bcb37e 100644 --- a/src/components/server/ServerDemos.vue +++ b/src/components/server/ServerDemos.vue @@ -3,7 +3,13 @@ import { onMounted, onUnmounted, ref } from 'vue' import ServerFeatures from './ServerFeatures.vue' import ServerHighlights from './ServerHighlights.vue' -const phases: Phase[] = ['cluster', 'cpu', 'storage', 'highlights', 'features'] +const phases: Phase[] = [ + 'cluster', + 'cpu', + 'storage', + 'highlights', + 'features' +] const baseUrl = import.meta.env.BASE_URL diff --git a/src/components/server/ServerFeatures.vue b/src/components/server/ServerFeatures.vue index c5f79000c..9eea44422 100644 --- a/src/components/server/ServerFeatures.vue +++ b/src/components/server/ServerFeatures.vue @@ -29,20 +29,82 @@ interface SysextCard { const cards: SysextCard[] = [ // CNCF Graduated - { name: 'Falco', href: 'https://falco.org', icon: IconShieldCheck, desc: 'Runtime security & threat detection', cncf: 'graduated' }, + { + name: 'Falco', + href: 'https://falco.org', + icon: IconShieldCheck, + desc: 'Runtime security & threat detection', + cncf: 'graduated' + }, // CNCF Incubating - { name: 'KubeVirt', href: 'https://kubevirt.io', icon: IconMonitorMultiple, desc: 'Virtual Machine Management', cncf: 'incubating' }, - { name: 'KubeStellar', href: 'https://kubestellar.io', icon: IconKubernetes, desc: 'Multi-cluster management and dashboard', cncf: 'incubating' }, + { + name: 'KubeVirt', + href: 'https://kubevirt.io', + icon: IconMonitorMultiple, + desc: 'Virtual Machine Management', + cncf: 'incubating' + }, + { + name: 'KubeStellar', + href: 'https://kubestellar.io', + icon: IconKubernetes, + desc: 'Multi-cluster management and dashboard', + cncf: 'incubating' + }, // CNCF Sandbox - { name: 'k3s', href: 'https://k3s.io', icon: IconKubernetes, desc: 'Lightweight Kubernetes cluster', cncf: 'sandbox' }, - { name: 'Inspektor Gadget', href: 'https://www.inspektor-gadget.io', icon: IconMagnifyScan, desc: 'eBPF-based debugging & tracing', cncf: 'sandbox' }, - { name: 'kured', href: 'https://kured.dev', icon: IconPowerCycle, desc: 'Safe automatic node reboots for Kubernetes', cncf: 'sandbox' }, - { name: 'Podman', href: 'https://podman.io', icon: IconDocker, desc: 'Daemonless container engine', cncf: 'sandbox' }, + { + name: 'k3s', + href: 'https://k3s.io', + icon: IconKubernetes, + desc: 'Lightweight Kubernetes cluster', + cncf: 'sandbox' + }, + { + name: 'Inspektor Gadget', + href: 'https://www.inspektor-gadget.io', + icon: IconMagnifyScan, + desc: 'eBPF-based debugging & tracing', + cncf: 'sandbox' + }, + { + name: 'kured', + href: 'https://kured.dev', + icon: IconPowerCycle, + desc: 'Safe automatic node reboots for Kubernetes', + cncf: 'sandbox' + }, + { + name: 'Podman', + href: 'https://podman.io', + icon: IconDocker, + desc: 'Daemonless container engine', + cncf: 'sandbox' + }, // Community - { name: 'Docker', href: 'https://docker.com', icon: IconDocker, desc: 'You probably have a bunch of these' }, - { name: 'Tailscale', href: 'https://tailscale.com', icon: IconVpn, desc: 'Zero-config WireGuard mesh VPN' }, - { name: 'Incus', href: 'https://linuxcontainers.org/incus/', icon: IconServerNetwork, desc: 'Container & VM manager' }, - { name: 'ZFS', href: 'https://openzfs.org', icon: IconDatabase, desc: 'Advanced filesystem & volume manager' }, + { + name: 'Docker', + href: 'https://docker.com', + icon: IconDocker, + desc: 'You probably have a bunch of these' + }, + { + name: 'Tailscale', + href: 'https://tailscale.com', + icon: IconVpn, + desc: 'Zero-config WireGuard mesh VPN' + }, + { + name: 'Incus', + href: 'https://linuxcontainers.org/incus/', + icon: IconServerNetwork, + desc: 'Container & VM manager' + }, + { + name: 'ZFS', + href: 'https://openzfs.org', + icon: IconDatabase, + desc: 'Advanced filesystem & volume manager' + }, ] const tierLabel: Record = { diff --git a/src/components/wolves/WolvesBackCatalogue.vue b/src/components/wolves/WolvesBackCatalogue.vue index 0e872791e..14c44c0c5 100644 --- a/src/components/wolves/WolvesBackCatalogue.vue +++ b/src/components/wolves/WolvesBackCatalogue.vue @@ -14,7 +14,9 @@ const emit = defineEmits<{ launch: [manifest: ExperienceManifest] }>() const experiences = ref([]) function resolveArtwork(artwork: string): string { - return /^https?:/.test(artwork) ? artwork : `${import.meta.env.BASE_URL}${artwork}` + return /^https?:/.test(artwork) + ? artwork + : `${import.meta.env.BASE_URL}${artwork}` } onMounted(async () => { diff --git a/src/components/wolves/WolvesCharacterGallery.vue b/src/components/wolves/WolvesCharacterGallery.vue index 968cf04dc..3fd2f3f20 100644 --- a/src/components/wolves/WolvesCharacterGallery.vue +++ b/src/components/wolves/WolvesCharacterGallery.vue @@ -118,7 +118,9 @@ onMounted(async () => { return } const payload = await response.json() as { characters?: CharacterCard[] } - characters.value = Array.isArray(payload.characters) ? payload.characters : [] + characters.value = Array.isArray(payload.characters) + ? payload.characters + : [] } catch { // The gallery is additive; the lobby renders without it on failure. diff --git a/src/components/wolves/WolvesComicReader.vue b/src/components/wolves/WolvesComicReader.vue index cb355c825..aa92903c9 100644 --- a/src/components/wolves/WolvesComicReader.vue +++ b/src/components/wolves/WolvesComicReader.vue @@ -140,7 +140,9 @@ let duskTimer: ReturnType | null = null const trackZeroFlickrPhotoIds = new Set( wallpapers.flatMap((wallpaper) => { const photoId = wallpaper.name?.startsWith('wolves/people/') && wallpaper.name.match(/\d{8,}/)?.[0] - return photoId ? [photoId] : [] + return photoId + ? [photoId] + : [] }), ) // CNCF feed photos whose Track 0 copy lives under a curated caption filename @@ -176,7 +178,9 @@ let crossfadeTimer: ReturnType | null = null const trackChangeSerial = ref(0) const activePhoto = computed(() => { - return activeBuffer.value === 'A' ? photoA.value : photoB.value + return activeBuffer.value === 'A' + ? photoA.value + : photoB.value }) /** @@ -429,7 +433,11 @@ const timelineSlides = computed(() => { // The slice must cover every hero index or a locked portrait is silently // dropped and every following locked window starts early. const peoplePool1 = andyAdvisorPhoto - ? [...shuffledPeople.slice(0, 7), andyAdvisorPhoto, ...shuffledPeople.slice(7, 15)] + ? [ + ...shuffledPeople.slice(0, 7), + andyAdvisorPhoto, + ...shuffledPeople.slice(7, 15) + ] : shuffledPeople.slice(0, 16) const jonoPhoto = peoplePool1.find(item => item.id === jonoBaconSlideId) const marinaPhoto = peoplePool1.find(item => item.id === marinaMooreSlideId) @@ -445,17 +453,28 @@ const timelineSlides = computed(() => { && bluefinGroupPhotos.every(entry => entry.photo !== undefined) const lockedHeroSlideIds = new Set([ jonoBaconSlideId, - ...(marinaPhoto ? [marinaMooreSlideId] : []), - ...(hasBluefinGroupLock ? bluefinGroupSlides.map(slide => slide.id) : []), - ...(lauraPhoto ? [lauraSlideId] : []), - ...(topheePhoto ? [topheeSlideId] : []), + ...(marinaPhoto + ? [marinaMooreSlideId] + : []), + ...(hasBluefinGroupLock + ? bluefinGroupSlides.map(slide => slide.id) + : []), + ...(lauraPhoto + ? [lauraSlideId] + : []), + ...(topheePhoto + ? [topheeSlideId] + : []), ]) const remainingPeoplePool1 = peoplePool1.filter(item => !lockedHeroSlideIds.has(item.id), ) if (!jonoPhoto) { - const sec3Items = [...normalPool2, ...peoplePool1] + const sec3Items = [ + ...normalPool2, + ...peoplePool1 + ] const sec3Cuts = trackZeroBeatCuts(currentTime, TRACK_ZERO_PRESENTATION_SECTIONS.contributorChorus.endTime, sec3Items.length, TRACK_ZERO_PRESENTATION_SECTIONS.contributorChorus.beatGroups) sec3Items.forEach((item, index) => { const endTime = sec3Cuts[index] @@ -839,7 +858,10 @@ const backCatalogueCuratedPhotos = computed(() => { // the `wolves/` subtree, so they are registered explicitly in // `artwork-wallpapers.ts` — which is also what keeps the import an // allowlist. Aurora artwork is excluded there and pinned by a test. - const familyArtwork = [...ublueArtworkWallpapers, ...bazziteArtworkWallpapers].map(wallpaper => ({ + const familyArtwork = [ + ...ublueArtworkWallpapers, + ...bazziteArtworkWallpapers + ].map(wallpaper => ({ id: wallpaper.name, isLocal: true, path: wallpaper.name, @@ -851,7 +873,12 @@ const backCatalogueCuratedPhotos = computed(() => { kind: wallpaper.kind, })) - return [...showcaseAndArt, ...heroShots, ...extraCharacters, ...familyArtwork] + return [ + ...showcaseAndArt, + ...heroShots, + ...extraCharacters, + ...familyArtwork + ] }) const activeTimelineSlide = computed(() => { @@ -916,7 +943,9 @@ const currentSlideTransitionDuration = computed(() => { return 1000 } // Long ambient holds get long dissolves; beat-length slides get near-cuts. - const crossfadeCap = slide.duration >= 8 ? 1600 : 800 + const crossfadeCap = slide.duration >= 8 + ? 1600 + : 800 return Math.min(crossfadeCap, slide.duration * 300) }) @@ -943,7 +972,9 @@ function daynightNightOpacity(slide: any, slideIndex: number): number { } const elapsed = (props.playlistCurrentTime ?? 0) - startTime const ratio = elapsed / duration - return Number.isFinite(ratio) ? Math.min(1.0, Math.max(0.0, ratio)) : 0 + return Number.isFinite(ratio) + ? Math.min(1.0, Math.max(0.0, ratio)) + : 0 } const daynightNightOpacityA = computed(() => daynightNightOpacity(photoA.value, slideAIndex.value)) @@ -1082,7 +1113,9 @@ function preloadUrl(url: string, priority: 'high' | 'low'): Promise { const urls = photo?.type === 'daynight' ? [`${baseUrl}img/wallpapers/${photo.dayName}`, `${baseUrl}img/wallpapers/${photo.nightName}`] - : [getFlickrPhotoUrl(photo)] + : [ + getFlickrPhotoUrl(photo) + ] return Promise.all(urls.map(url => preloadUrl(url, priority))).then((aspects) => { // Day/night halves share an aspect; take whichever half measured. const aspect = aspects.find(candidate => candidate !== null) @@ -1139,7 +1172,9 @@ watch([activeDisplayIndex, mixedPhotosToUse, trackChangeSerial], ([newVal]) => { if (!activePhotoObj) { return } - const displayedIndex = activeBuffer.value === 'A' ? slideAIndex.value : slideBIndex.value + const displayedIndex = activeBuffer.value === 'A' + ? slideAIndex.value + : slideBIndex.value if (activePhoto.value === activePhotoObj && displayedIndex === newVal) { // Already on stage (a boundary bump that resolved to the same slide object). return @@ -1289,11 +1324,15 @@ function getFlickrPhotoUrl(photo: any) { // unusually panoramic assets (see wideAspectStems in generate-wallpapers.js) // letterbox badly under contain, so they opt into cover instead. function photoObjectFit(photo: any) { - return photo?.fit === 'cover' ? 'cover' : 'contain' + return photo?.fit === 'cover' + ? 'cover' + : 'contain' } function photoObjectPosition(photo: any) { - return isWolvesExperience.value && photo?.id === ghostsInTheMistOpeningSlide.photoId ? 'center top' : 'center' + return isWolvesExperience.value && photo?.id === ghostsInTheMistOpeningSlide.photoId + ? 'center top' + : 'center' } /** @@ -1341,7 +1380,9 @@ function snapshotLaterTrackPhotos() { isLocal: false, path: `https://live.staticflickr.com/${photo.server}/${photo.id}_${photo.secret}_${isFeaturedOpening ? ghostsInTheMistOpeningSlide.imageSizeSuffix : 'b'}.jpg`, title: isFeaturedOpening ? ghostsInTheMistOpeningSlide.title : photo.title, - description: isFeaturedOpening ? ghostsInTheMistOpeningSlide.descriptionParts.join('\n\n') : undefined, + description: isFeaturedOpening + ? ghostsInTheMistOpeningSlide.descriptionParts.join('\n\n') + : undefined, type: 'single' as const, dayName: undefined, nightName: undefined, @@ -1443,7 +1484,9 @@ function shuffleWallpapers(array: any[]): any[] { const r = Math.random() // if people, score is in [0.45, 1.05] (tends toward end) // if showcase or story illustration, score is in [0.0, 0.6] (tends toward start) - const score = isPeople ? 0.45 + r * 0.6 : r * 0.6 + const score = isPeople + ? 0.45 + r * 0.6 + : r * 0.6 return { item, score } }) @@ -1476,7 +1519,9 @@ onMounted(async () => { const response = await fetch(`${import.meta.env.BASE_URL}flickr-photos.json`) if (response.ok) { const rawPhotos = await response.json() - flickrPhotos.value = Array.isArray(rawPhotos) ? rawPhotos : [] + flickrPhotos.value = Array.isArray(rawPhotos) + ? rawPhotos + : [] } } catch (err) { diff --git a/src/components/wolves/WolvesIntroOverlay.vue b/src/components/wolves/WolvesIntroOverlay.vue index 523463226..b89a9e53b 100644 --- a/src/components/wolves/WolvesIntroOverlay.vue +++ b/src/components/wolves/WolvesIntroOverlay.vue @@ -73,7 +73,9 @@ const audioMountHost = ref(null) * segments' durations are known upfront; a video segment's entry stays 0 until its player * reports a real duration (or its `maxDuration` cutoff) in `onReady`. */ -const segmentDurations = ref(props.videos.map(video => (isTextSegment(video) ? video.duration : 0))) +const segmentDurations = ref(props.videos.map(video => (isTextSegment(video) + ? video.duration + : 0))) const currentSegment = computed(() => props.videos[sequenceState.value.index]) const canGoToPrevious = computed(() => sequenceState.value.index > 0) @@ -193,7 +195,9 @@ const activeMediaTitle = computed(() => activeBurnedInCaptions.value.find(cue => */ const activeCues = computed(() => activeOverlayCues(currentSegment.value?.overlays, currentTime.value)) const activeGuardianCues = computed(() => - activeComicTitleCardCue.value ? [] : activeCues.value.filter(cue => !cue.statusOnly), + activeComicTitleCardCue.value + ? [] + : activeCues.value.filter(cue => !cue.statusOnly), ) /** @@ -208,7 +212,11 @@ function parseGuardianCue(text: string): { guardianClass: string, name: string, return undefined } const [guardianClass, name, ...titleParts] = parts - return { guardianClass, name, title: titleParts.join(' — ') } + return { + guardianClass, + name, + title: titleParts.join(' — ') + } } /** @@ -218,18 +226,30 @@ function parseGuardianCue(text: string): { guardianClass: string, name: string, */ function titleSegments(title: string, blingTitle: string | undefined): { text: string, bling: boolean }[] { if (!blingTitle) { - return [{ text: title, bling: false }] + return [ + { text: title, bling: false } + ] } const index = title.indexOf(blingTitle) if (index === -1) { - return [{ text: title, bling: false }] + return [ + { text: title, bling: false } + ] } const before = title.slice(0, index) const after = title.slice(index + blingTitle.length) return [ - ...(before ? [{ text: before, bling: false }] : []), + ...(before + ? [ + { text: before, bling: false } + ] + : []), { text: blingTitle, bling: true }, - ...(after ? [{ text: after, bling: false }] : []), + ...(after + ? [ + { text: after, bling: false } + ] + : []), ] } @@ -500,8 +520,12 @@ const sceneCrossfadeDuration = computed(() => ( * verified in is not, and a value sampled once at mount is wrong for every resize * after it. */ -const viewportWidth = ref(typeof window === 'undefined' ? 1920 : window.innerWidth) -const viewportHeight = ref(typeof window === 'undefined' ? 1080 : window.innerHeight) +const viewportWidth = ref(typeof window === 'undefined' + ? 1920 + : window.innerWidth) +const viewportHeight = ref(typeof window === 'undefined' + ? 1080 + : window.innerHeight) function trackViewportSize(): void { viewportWidth.value = window.innerWidth @@ -563,15 +587,26 @@ const slimTitleSegments = computed(() => { const wordStart = line.indexOf(word) if (wordStart < 0) { - return [{ text: line, brand: false }] + return [ + { text: line, brand: false } + ] } const letterIndex = wordStart + word.indexOf('F') return [ - { text: line.slice(0, letterIndex), brand: false }, - { text: line.slice(letterIndex, letterIndex + 1), brand: true }, - { text: line.slice(letterIndex + 1), brand: false }, + { + text: line.slice(0, letterIndex), + brand: false + }, + { + text: line.slice(letterIndex, letterIndex + 1), + brand: true + }, + { + text: line.slice(letterIndex + 1), + brand: false + }, ].filter(part => part.text.length > 0) }) @@ -612,7 +647,12 @@ const activeCrossfadeStage = computed(() => { const elapsed = currentTime.value - cue.start const index = Math.min(stages.length - 1, Math.max(0, Math.floor(elapsed / stageDuration))) const stageStart = cue.start + index * stageDuration - return { crossfade: stages[index], index, start: stageStart, duration: stageDuration } + return { + crossfade: stages[index], + index, + start: stageStart, + duration: stageDuration + } }) /** @@ -657,7 +697,9 @@ function stripIntroPunctuation(text: string): string { } function formatIntroCueText(text: string, preservePunctuation?: boolean): string { - return preservePunctuation ? text : stripIntroPunctuation(text) + return preservePunctuation + ? text + : stripIntroPunctuation(text) } function activeVideoId(segment: Extract): string { @@ -674,14 +716,18 @@ function activeVideoCutoffDuration(segment: Extract, time: number): number { const cutoff = activeVideoCutoffDuration(segment) - return cutoff == null ? time : Math.min(time, cutoff) + return cutoff == null + ? time + : Math.min(time, cutoff) } const overlayTextParts = computed(() => { const cue = overlayCueForDisplay.value const text = formatIntroCueText(overlayText.value ?? '', cue?.preservePunctuation) const explicitHighlights = cue?.highlightSubstrings - ?? (cue?.highlightSubstring ? [cue.highlightSubstring] : undefined) + ?? (cue?.highlightSubstring + ? [cue.highlightSubstring] + : undefined) return buildOverlayTextParts( text, explicitHighlights?.map(highlight => formatIntroCueText(highlight, cue?.preservePunctuation)), @@ -969,7 +1015,11 @@ async function loadAudioTrack(youtubeVideoId: string | undefined, token: number, // video segments skip a rating card, using YouTube's own `start` param. playerVars: getChromeFreeYoutubePlayerVars({ autoplay: 1, - ...(startSeconds ? { start: Math.round(startSeconds) } : {}), + ...(startSeconds + ? { + start: Math.round(startSeconds) + } + : {}), }), events: { // The background embed's own end state is the scored card's completion backstop: a real @@ -1032,7 +1082,9 @@ function startTextSegment(segment: Extract) { // Watchdog only, never a cue source: how long the player's own clock has sat on the // identical reading. A playing player reports a new value every tick, so any repeat is // buffering, an ad, or the end of the track — `isTextSegmentComplete` decides which. - audioClockStalledMs = audioClock === lastAudioClockReading ? audioClockStalledMs + TEXT_CLOCK_TICK_MS : 0 + audioClockStalledMs = audioClock === lastAudioClockReading + ? audioClockStalledMs + TEXT_CLOCK_TICK_MS + : 0 lastAudioClockReading = audioClock currentTime.value = audioClock // Blocked autoplay, which is the one stall that is not an ad and never recovers on its @@ -1104,7 +1156,10 @@ function beginSegmentPlayback( if (!options.isDeepLink) { // Reload only for front-door entries: loadVideoById restarts playback from the // buffered beginning, which would discard a deep-linked Guardian opening time. - player?.loadVideoById?.({ videoId: activeVideoId(segment), startSeconds: openingTime }) + player?.loadVideoById?.({ + videoId: activeVideoId(segment), + startSeconds: openingTime + }) } player?.seekTo?.(openingTime, true) } @@ -1172,7 +1227,11 @@ function buildSegmentPlayer( autoplay: options.parked ? 0 : 1, // Keep YouTube's own captions off so the burned-in subtitles remain the only overlay. cc_load_policy: 0, - ...(options.startTime ? { start: Math.round(options.startTime) } : {}), + ...(options.startTime + ? { + start: Math.round(options.startTime) + } + : {}), }) let self: YoutubePlayer | null = null @@ -1249,7 +1308,10 @@ function buildSegmentPlayer( */ function parkPrewarmedPlayer(warmed: YoutubePlayer, segment: Extract, startTime: number) { warmed.mute?.() - warmed.cueVideoById?.({ videoId: activeVideoId(segment), startSeconds: startTime }) + warmed.cueVideoById?.({ + videoId: activeVideoId(segment), + startSeconds: startTime + }) warmed.seekTo?.(startTime, true) warmed.pauseVideo?.() // Adopt on readiness rather than on construction: readiness is what makes a warmed player @@ -1298,7 +1360,9 @@ async function prewarmNextSegment() { return } - const deepLinkTime = deepLinkStartConsumed ? null : (props.startAtNativeTime ?? null) + const deepLinkTime = deepLinkStartConsumed + ? null + : (props.startAtNativeTime ?? null) deepLinkStartConsumed = true prewarmedStartSeconds = Math.max(next.startOffset ?? 0, deepLinkTime ?? 0) prewarmedIsDeepLink = deepLinkTime != null @@ -1401,7 +1465,9 @@ async function loadVideoSegment(segment: Extract { mediaTitle: activeMediaTitle.value, showVoiceOverToggle: canToggleDestinyVoiceOver.value, voiceOverEnabled: canToggleDestinyVoiceOver.value ? destinyVoiceOverEnabled.value : false, - moods: isDirectorsCutPrologue.value ? PROLOGUE_MOODS.map(mood => ({ id: mood.id, label: mood.label })) : [], + moods: isDirectorsCutPrologue.value + ? PROLOGUE_MOODS.map(mood => ({ id: mood.id, label: mood.label })) + : [], activeMoodId: activeMoodId.value, showCaptionToggle: canToggleDestinyCaptions.value, captionsEnabled: canToggleDestinyCaptions.value ? destinyCaptionsEnabled.value : false, @@ -1628,7 +1696,9 @@ watchEffect(() => { getCurrentTime: () => currentTime.value, getDuration: () => activeSegmentDuration.value, getPlayerDuration: () => player?.getDuration?.() ?? 0, - getVideoId: () => (currentSegment.value && isVideoSegment(currentSegment.value) ? activeVideoId(currentSegment.value) : ''), + getVideoId: () => (currentSegment.value && isVideoSegment(currentSegment.value) + ? activeVideoId(currentSegment.value) + : ''), isPaused: () => isPaused.value, setVoiceOverEnabled, setCaptionsEnabled, diff --git a/src/components/wolves/cinematic/CinematicCaptions.vue b/src/components/wolves/cinematic/CinematicCaptions.vue index f8d7b4463..58e32e534 100644 --- a/src/components/wolves/cinematic/CinematicCaptions.vue +++ b/src/components/wolves/cinematic/CinematicCaptions.vue @@ -9,7 +9,9 @@ const store = useCinematicStore() // source video's native timeline, so cues stay aligned with authored trims. const cues = computed(() => { const text = store.segment.captionsText - return text ? parseCaptionCues(text) : [] + return text + ? parseCaptionCues(text) + : [] }) const currentCue = computed(() => activeCaptionCue(cues.value, store.nativeTime)) diff --git a/src/components/wolves/cinematic/CinematicStage.vue b/src/components/wolves/cinematic/CinematicStage.vue index 91f94285f..7e105f061 100644 --- a/src/components/wolves/cinematic/CinematicStage.vue +++ b/src/components/wolves/cinematic/CinematicStage.vue @@ -35,7 +35,9 @@ const layerFadeMs = computed(() => // segment the time-varying incoming signal is the large label and the track title // sits in the detail line; elsewhere it shows chapter + title. const plateLabel = computed(() => - isTrackZero.value ? getWolvesHudLabel(store.nativeTime) : store.segment.title, + isTrackZero.value + ? getWolvesHudLabel(store.nativeTime) + : store.segment.title, ) const plateDetail = computed(() => isTrackZero.value ? 'Seven Days to the Wolves' : store.segment.chapter, diff --git a/src/components/wolves/cinematic/CinematicTransition.vue b/src/components/wolves/cinematic/CinematicTransition.vue index bb5029cde..4614655c7 100644 --- a/src/components/wolves/cinematic/CinematicTransition.vue +++ b/src/components/wolves/cinematic/CinematicTransition.vue @@ -42,7 +42,9 @@ const renderedLines = computed ({ kind: 'terminal' as const, text }))) const transitionStyle = computed(() => ({ '--wc-transition-enter-ms': prefersReducedMotion.value ? '0ms' : '400ms', - '--wc-transition-leave-ms': prefersReducedMotion.value ? '0ms' : `${TRANSITION_LEAVE_MS}ms`, + '--wc-transition-leave-ms': prefersReducedMotion.value + ? '0ms' + : `${TRANSITION_LEAVE_MS}ms`, })) function syncReducedMotion() { diff --git a/src/components/wolves/cinematic/MediaWidget.vue b/src/components/wolves/cinematic/MediaWidget.vue index 81ae07657..5c4232542 100644 --- a/src/components/wolves/cinematic/MediaWidget.vue +++ b/src/components/wolves/cinematic/MediaWidget.vue @@ -55,14 +55,18 @@ const showCatalogueCredit = computed(() => ) const artworkSrc = computed(() => { const artwork = props.artwork ?? store.display.artwork - return artwork.startsWith('http') || artwork.startsWith('/') ? artwork : `${base}${artwork}` + return artwork.startsWith('http') || artwork.startsWith('/') + ? artwork + : `${base}${artwork}` }) function formatTime(totalSeconds: number): string { const seconds = Math.max(0, Math.floor(totalSeconds)) const minutes = Math.floor(seconds / 60) const rest = seconds % 60 - return `${minutes}:${rest < 10 ? '0' : ''}${rest}` + return `${minutes}:${rest < 10 + ? '0' + : ''}${rest}` } const segmentElapsed = computed(() => externalPlayback.value ? props.elapsed! : store.segmentElapsed) diff --git a/src/components/wolves/cinematic/TheaterExperience.vue b/src/components/wolves/cinematic/TheaterExperience.vue index 2d7dddd02..d2cce4eeb 100644 --- a/src/components/wolves/cinematic/TheaterExperience.vue +++ b/src/components/wolves/cinematic/TheaterExperience.vue @@ -43,7 +43,9 @@ const slotElapsed = computed(() => Math.min( )) const isTrackZero = computed(() => store.segment.trackZeroExperience === true) const isWolvesPresentation = computed(() => store.isWolvesPresentation) -const thesis = computed(() => (isTrackZero.value ? getWolvesThesisState(time.value) : getWolvesThesisState(0))) +const thesis = computed(() => (isTrackZero.value + ? getWolvesThesisState(time.value) + : getWolvesThesisState(0))) // Static ordered video-loop sidecar for Track 0's desktop right column, below // the scheduled lore panel. This is a plain native