Skip to content

armgit / avibe

Public Imported from GitHub
0

Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.

chore(ui): migrate ESLint 10 with compatible hooks and audited lint debt (#2864)

Call Whiteb2c82da0b5ab
diff --git a/docs/maintenance/eslint-10-migration.md b/docs/maintenance/eslint-10-migration.md
new file mode 100644
index 000000000..9cd0caae6
--- /dev/null
+++ b/docs/maintenance/eslint-10-migration.md
@@ -0,0 +1,143 @@
+# ESLint 10 companion migration
+
+## Contract
+
+Upgrade the UI's lint tools together, without changing UI runtime code or weakening
+the lint gate. This replaces the incomplete ESLint-only update in #2844.
+
+- ESLint: 9.39.2 -> 10.12.0; `@eslint/js`: 9.39.2 -> 10.0.1.
+- React Hooks plugin: 7.0.1 -> 7.1.1, still exactly pinned.
+- Keep React Refresh at 0.4.26 (`eslint >=8.40` peer) and typescript-eslint at
+ 8.71.2 (explicit ESLint 10 peer). Refresh 0.5's rule/config rewrite is not
+ necessary for this migration; do not silently take it with the Hooks update.
+- UI development Node range: `^20.19.0 || ^22.13.0 || >=24`, matching ESLint 10.
+ Existing UI CI uses Node 22.14.0. This is not a change to the separately
+ packaged Show Runtime's Node requirement.
+- Keep all enforced rules, severities, source coverage, inline-configuration
+ guards, and the per-file/per-rule debt ratchet. No peer-dependency bypass,
+ additional suppression, or runtime refactor is part of this change.
+
+## Why #2701 pinned Hooks
+
+#2701 correctly rejected a blind preset update: Hooks 7.1 removed
+`component-hook-factories`, and 7.1.1 only restored its name as a deprecated
+no-op. Adding that name back to the config would not restore detection.
+
+Inspection of the **published 7.0.1 bundle**, rather than the rule name alone,
+shows its diagnostic was guarded by
+`validateNoDynamicallyCreatedComponentsOrHooks`, defaulting to `false`.
+Neither the plugin's lint `COMPILER_OPTIONS` nor Avibe's configuration overrides
+that flag. Upstream removed it as an unused experiment in
+[React #35825](https://github.com/facebook/react/pull/35825); the no-op is documented
+in [#36307](https://github.com/facebook/react/pull/36307).
+
+Two real-config probes confirmed that a module-level factory returning a nested
+component, and one returning a nested hook, produced no factory diagnostic with
+7.0.1 or 7.1.1. Thus removing the dead entry from the policy snapshot does **not**
+remove actual enforcement. It does not assert that arbitrary factories are safe.
+The distinct `static-components` rule still rejects a component created and
+rendered inside another component in both versions. No custom replacement or
+no-op rule is installed.
+
+## Reviewed effective-policy changes
+
+`eslint.config.js` itself is unchanged. The checked-in resolved-policy snapshot
+changes only where the new upstream presets/defaults change:
+
+| Change | Effect |
+| --- | --- |
+| `no-unassigned-vars`, `no-useless-assignment`, `preserve-caught-error` | Newly enabled ESLint 10 recommended errors |
+| `no-shadow-restricted-names.reportGlobalThis: true` | Stricter default, now rejects shadowing `globalThis` |
+| `no-constant-binary-expression.checkRelationalComparisons: false` | Explicit new option preserves previous relational-comparison behavior |
+| Core `no-unused-vars` explicit default options | Still disabled by typescript-eslint in favor of its enabled TS rule |
+| No `component-hook-factories` entry | Retired inactive experiment, as verified above |
+
+The TypeScript parser, browser globals, file domain, all other rule options and
+severity levels, and unused-disable reporting stay unchanged. See the
+[ESLint migration guide](https://github.com/eslint/eslint/blob/v10.12.0/docs/src/use/migrate-to-10.0.0.md)
+and [Hooks changelog](https://github.com/facebook/react/blob/d1727fbf987392749b374f3afe62227d2c70fc41/packages/eslint-plugin-react-hooks/CHANGELOG.md).
+
+## Remeasuring existing debt
+
+Both versions linted the **same source tree** at base `c3b9b0bc2`, with clean
+installs. No `ui/src` or `ui/e2e` file was edited. The old gate passed with 190
+errors. The new tools report 472 errors across 102 files (previously 38), and the
+44-entry suppression tally is identical, including every file/rule count.
+
+This is an explicitly reviewed baseline migration, not routine permission to
+increase counts. Hooks 7.1 improves effect/ref analysis and reports multiple
+compiler diagnostics instead of stopping after the first. The ledger records
+newly visible **existing** debt; it does not claim all diagnostics are new
+runtime bugs. The compiler is not enabled in the application build.
+
+| Error rule | Old | New | Reproducible example in unchanged source |
+| --- | ---: | ---: | --- |
+| `@typescript-eslint/no-explicit-any` | 168 | 168 | Existing API boundary debt; unchanged |
+| `react-hooks/set-state-in-effect` | 14 | 153 | `QuickReplies.tsx`: reset state in an effect |
+| `react-hooks/refs` | 0 | 98 | `WorkbenchProjectsProvider.tsx`: write current-state/runner refs during render |
+| `react-hooks/preserve-manual-memoization` | 7 | 26 | `ChatPage.tsx`: inferred callback dependencies differ from the explicit array |
+| `react-hooks/immutability` | 0 | 11 | `VersionBadge.tsx`: an effect closes over later declarations; `ChatPage.tsx`: ref mutation after passing it to a hook |
+| `react-hooks/purity` | 0 | 3 | `RemoteAccess.tsx`, `OAuthConnectDialog.tsx`, `useBackendOAuth.ts`: render-time `Date.now()` |
+| `react-hooks/static-components` | 0 | 1 | `ChannelList.tsx`: render-local `Wrapper` component |
+| `no-useless-assignment` | 0 | 10 | `ShowPageShareControl.tsx`: initial `nextAccess = null` overwritten before use |
+| `preserve-caught-error` | 0 | 1 | `useBackendRuntime.ts`: recovery readback throws inside an outer catch without retaining its error as cause |
+| `react-refresh/only-export-components` | 1 | 1 | Existing `ApiContext.tsx` export shape; unchanged |
+| **Total** | **190** | **472** | **+282 newly reported errors, no runtime edits** |
+
+The immutability forward-reference messages describe compiler constraints: a
+closure capturing a later declaration does not by itself demonstrate a runtime
+temporal-dead-zone exception. Similarly, the recovery readback error describes
+a separate failure, and retaining the outer error as cause requires a deliberate
+provenance decision. These are recorded diagnostics, not claims of observed
+runtime failure. Render-time latest-value refs and timers need their own
+consumer/lifecycle verification before refactoring. Rule-specific rationales
+remain in `ui/eslint-baseline.json`.
+
+The gate implementation is unchanged: an unrecorded pair fails, growth fails,
+and a reduced count fails until its allowance is reduced too. Suppressions are
+independently counted and cannot grow silently. Later debt fixes therefore
+continue to reclaim budget rather than making room for new violations.
+
+## Behavioral and installation evidence
+
+The existing real-config tests in `ui/scripts/eslintConventions.test.mjs` now
+probe conditional Hooks, render-local components, ref reads/writes, effect
+setters, mutation, purity, and the new ESLint rules. They include valid
+counterparts and require error severity, not merely a configured rule name.
+
+The key dual-version probes were:
+
+| Probe | ESLint 9 / Hooks 7.0.1 | ESLint 10 / Hooks 7.1.1 |
+| --- | --- | --- |
+| Component/hook factory without the experimental flag | No diagnostic | No diagnostic |
+| Render-local component used as JSX | `static-components` error | Same error |
+| Conditional `useState` | `rules-of-hooks` error | Same error |
+| Render ref read | `refs` error | Same error |
+| Synchronous effect setter derived from a prop | Missed | `set-state-in-effect` error |
+| Effect setter and ref read in one component | Only `refs` | Both errors |
+| Event-only state setter / module-level child | No relevant error | No relevant error |
+| Overwritten assignment / lost caught cause / shadowed globalThis | No relevant error | New recommended/default errors |
+
+The combined-diagnostic probe fails on the old tools for the intended reason;
+the existing policy/baseline tests continue to verify tampering detection and
+both upward and downward count drift. Fresh `npm ci` and `npm ls` verify the peer
+graph without `--force` or `--legacy-peer-deps`. Use a clean dependency directory
+when regenerating the lock: npm 11 can otherwise prune optional cross-platform
+entries from an existing platform-specific installation.
+
+Reproduce from `ui/`:
+
+```sh
+npm ci
+npm ls eslint @eslint/js eslint-plugin-react-hooks eslint-plugin-react-refresh typescript-eslint
+npm run lint
+npm test -- scripts/eslintConventions.test.mjs scripts/lintPolicy.test.mjs scripts/lintBaseline.test.mjs
+npm test
+npm run typecheck:tests
+npm run build
+```
+
+Local tests use isolated HOME/XDG/cache/config directories and a fixed `C` locale.
+Full repository and browser coverage remains part of current-head CI. No service
+restart, deployment, live account access, or regression-environment update is
+needed for this development-tool migration.
diff --git a/ui/README.md b/ui/README.md
index d2e77611f..a04117c7c 100644
--- a/ui/README.md
+++ b/ui/README.md
@@ -1,5 +1,17 @@
# React + TypeScript + Vite
+## Development toolchain
+
+Use Node.js `^20.19.0 || ^22.13.0 || >=24` (UI CI uses 22.14.0), then run
+`npm ci`. ESLint 10 does not support Node 22.12.x or Node 23.x.
+
+`npm run lint` checks the full TypeScript source domain against the reviewed
+per-file/per-rule debt ledger. Do not regenerate it merely to make new errors
+pass. The [ESLint 10 migration](../docs/maintenance/eslint-10-migration.md)
+records the paired tool upgrade and its one-time, unchanged-source baseline
+remeasurement. This development requirement does not change the separately
+packaged Show Runtime's Node contract.
+
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
diff --git a/ui/eslint-baseline.json b/ui/eslint-baseline.json
index 0cab9683a..2312eb4c0 100644
--- a/ui/eslint-baseline.json
+++ b/ui/eslint-baseline.json
@@ -1,14 +1,28 @@
{
- "$comment": "Explicit ledger of the lint violations that predate the UI lint cleanup and are not fixed by it. `npm run lint` fails on anything not recorded here, on a recorded entry that grows, and on a recorded entry that shrinks without being re-recorded. See scripts/lint-baseline.mjs. Regenerate with `npm run lint:baseline`; raising a count needs a reviewer to agree in the PR.",
+ "$comment": "Explicit ledger of existing lint debt, remeasured on unchanged source during the ESLint 10 migration (docs/maintenance/eslint-10-migration.md). `npm run lint` fails on anything not recorded here, on a recorded entry that grows, and on a recorded entry that shrinks without being re-recorded. See scripts/lint-baseline.mjs. Regenerate with `npm run lint:baseline`; raising a count needs a reviewer to agree in the PR.",
"rationale": {
"@typescript-eslint/no-explicit-any": "The untyped edge of the Python API. Each one is a response body, an SSE event payload or a third-party callback that reaches the UI as `any`. Typing them is a per-endpoint contract change against the backend, not a lint fix, and doing it as one sweep would produce a diff nobody can review. The ratchet's job here is to stop a NEW endpoint from landing untyped; the recorded ones come down endpoint by endpoint.",
"react-hooks/set-state-in-effect": "Legitimate-looking `reset derived state when the subject changes` and prop-mirroring effects in components with no test coverage. Each rewrite changes when a render happens, so each needs its own regression test first; batching them behind a lint deadline is how a subtle render-order bug ships.",
"react-hooks/preserve-manual-memoization": "Advice for adopting the React Compiler, not a defect. `babel-plugin-react-compiler` is not in this project's Vite plugin list, so no shipped behaviour depends on these; they become actionable in the change that turns the compiler on.",
"react-refresh/only-export-components": "`src/context/ApiContext.tsx` only. Every other context module in the UI now splits its handle from its provider, but this one is 3142 lines with ~78 consumers, and the split means relocating the ~1200-line provider in the single most contended file in the repository (36 unmerged branches currently modify it). The cost is a merge conflict for everyone else, and the benefit is hot-reload for one file — so it belongs in a change that owns ApiContext, not in a lint cleanup.",
"react-hooks/exhaustive-deps": "Inline `eslint-disable` comments predating this cleanup. Each one also opts its component out of the compiler-backed hook analysis, so the suppressed count is a direct measure of the UI the other react-hooks rules cannot see: removing all 43 raises the error count rather than lowering it. Frozen here so that area cannot grow while it is retired component by component.",
- "react-hooks/refs": "Inline suppressions of the render-phase ref rule, in the same unanalysable area as the exhaustive-deps ones above. Frozen so no new render-phase ref access can be hidden behind a comment."
+ "react-hooks/refs": "Render-phase ref access and existing inline suppressions. Hooks 7.1.1 reports violations that 7.0.1 skipped after an earlier compiler diagnostic. Replacing these latest-value bridges changes render/commit timing and needs consumer-specific tests. The ESLint 10 migration remeasures unchanged source, not additional suppressions; both counts remain frozen. See docs/maintenance/eslint-10-migration.md.",
+ "react-hooks/immutability": "Hooks 7.1.1 now reports existing forward references in effects/callbacks and a render-phase mutation through a ref passed to a hook. These are compiler-analysis restrictions, not proof that the callbacks execute before initialization. Source is unchanged in the migration; fixes belong with the affected component's lifecycle tests.",
+ "react-hooks/purity": "Three existing render-time Date.now reads used by expiry/countdown displays, newly visible with Hooks 7.1.1. Moving time into state requires an explicit ticking and cleanup contract; the migration freezes these sites rather than changing display timing.",
+ "react-hooks/static-components": "ChannelList's existing render-local Wrapper component is newly reported when the compiler continues past earlier diagnostics. Hoisting it and preserving state/props is a separate component change, not part of the lint-tool upgrade.",
+ "no-useless-assignment": "Ten existing overwritten initial values detected by the new ESLint 10 recommended rule. They are recorded on unchanged source for this tool-only migration, not permission for new dead assignments; each later cleanup must reduce its per-file count.",
+ "preserve-caught-error": "One backend-enablement recovery diagnostic throws a new error inside an outer catch without carrying that caught error as its cause. ESLint 10 newly recommends cause preservation. The diagnostic describes a separate failed readback, so changing its error provenance belongs with the recovery-path tests; this migration records the existing shape without changing runtime behavior."
},
"violations": {
+ "e2e/support/api.ts": {
+ "no-useless-assignment": 1
+ },
+ "e2e/support/gateway.ts": {
+ "no-useless-assignment": 1
+ },
+ "src/App.tsx": {
+ "react-hooks/set-state-in-effect": 1
+ },
"src/components/AppShell.tsx": {
"@typescript-eslint/no-explicit-any": 2,
"react-hooks/set-state-in-effect": 1
@@ -16,11 +30,36 @@
"src/components/InstallHint.tsx": {
"react-hooks/set-state-in-effect": 1
},
+ "src/components/RemoteAccess.tsx": {
+ "react-hooks/purity": 1,
+ "react-hooks/set-state-in-effect": 2
+ },
+ "src/components/VersionBadge.tsx": {
+ "react-hooks/immutability": 2
+ },
"src/components/Wizard.tsx": {
- "@typescript-eslint/no-explicit-any": 1
+ "@typescript-eslint/no-explicit-any": 1,
+ "react-hooks/set-state-in-effect": 1
+ },
+ "src/components/apps/AppWindow.tsx": {
+ "react-hooks/set-state-in-effect": 1
+ },
+ "src/components/apps/windowChords.ts": {
+ "no-useless-assignment": 1
+ },
+ "src/components/onboarding/BackendConnectionDialog.tsx": {
+ "react-hooks/set-state-in-effect": 1
+ },
+ "src/components/settings/BackendLifecycleChip.tsx": {
+ "react-hooks/refs": 2,
+ "react-hooks/set-state-in-effect": 2
+ },
+ "src/components/settings/OpencodeProviderTestPanel.tsx": {
+ "react-hooks/set-state-in-effect": 1
},
"src/components/settings/SettingsBackendsPage.tsx": {
- "@typescript-eslint/no-explicit-any": 1
+ "@typescript-eslint/no-explicit-any": 1,
+ "react-hooks/set-state-in-effect": 1
},
"src/components/settings/SettingsMessagingPage.tsx": {
"@typescript-eslint/no-explicit-any": 2,
@@ -32,11 +71,72 @@
"src/components/settings/SettingsServicePage.tsx": {
"@typescript-eslint/no-explicit-any": 4
},
- "src/components/settings/shared/useBackendRuntime.ts": {
- "@typescript-eslint/no-explicit-any": 1
+ "src/components/settings/models/BackendModelCatalogDialog.tsx": {
+ "react-hooks/refs": 1,
+ "react-hooks/set-state-in-effect": 2
+ },
+ "src/components/settings/models/BackendModelEditorDialog.tsx": {
+ "react-hooks/set-state-in-effect": 2
+ },
+ "src/components/settings/models/BackendModelPickerDialog.tsx": {
+ "react-hooks/set-state-in-effect": 1
+ },
+ "src/components/settings/models/BackendSupplyModeCard.tsx": {
+ "react-hooks/set-state-in-effect": 1
+ },
+ "src/components/settings/models/MigrationDialog.tsx": {
+ "react-hooks/set-state-in-effect": 2
+ },
+ "src/components/settings/models/OAuthConnectDialog.tsx": {
+ "react-hooks/purity": 1,
+ "react-hooks/refs": 3,
+ "react-hooks/set-state-in-effect": 2
+ },
+ "src/components/settings/models/RouteCandidatePopover.tsx": {
+ "react-hooks/set-state-in-effect": 1
},
- "src/components/settings/shared/useOAuthFlowLock.ts": {
- "react-hooks/preserve-manual-memoization": 1
+ "src/components/settings/models/RouteChainDialog.tsx": {
+ "react-hooks/refs": 35,
+ "react-hooks/set-state-in-effect": 2
+ },
+ "src/components/settings/models/SettingsModelsPage.tsx": {
+ "react-hooks/preserve-manual-memoization": 4,
+ "react-hooks/refs": 9,
+ "react-hooks/set-state-in-effect": 5
+ },
+ "src/components/settings/models/SourceDetailPanel.test.tsx": {
+ "react-hooks/refs": 1
+ },
+ "src/components/settings/models/SourceOrderDrawer.tsx": {
+ "react-hooks/set-state-in-effect": 1
+ },
+ "src/components/settings/models/SourceTestDialog.tsx": {
+ "react-hooks/set-state-in-effect": 1
+ },
+ "src/components/settings/models/UsageTab.tsx": {
+ "react-hooks/set-state-in-effect": 5
+ },
+ "src/components/settings/models/modelsApi.ts": {
+ "no-useless-assignment": 1
+ },
+ "src/components/settings/models/recordedTurn.ts": {
+ "react-hooks/set-state-in-effect": 1
+ },
+ "src/components/settings/oauth/useBackendOAuth.ts": {
+ "react-hooks/purity": 1,
+ "react-hooks/refs": 1
+ },
+ "src/components/settings/providers/BackendConnectionForm.tsx": {
+ "react-hooks/refs": 3,
+ "react-hooks/set-state-in-effect": 1
+ },
+ "src/components/settings/providers/OpencodeProviderConfig.tsx": {
+ "react-hooks/set-state-in-effect": 1
+ },
+ "src/components/settings/shared/useBackendRuntime.ts": {
+ "@typescript-eslint/no-explicit-any": 1,
+ "preserve-caught-error": 1,
+ "react-hooks/refs": 3
},
"src/components/shared/RoutingConfigPanel.tsx": {
"@typescript-eslint/no-explicit-any": 2,
@@ -46,76 +146,222 @@
"@typescript-eslint/no-explicit-any": 3
},
"src/components/steps/ChannelList.tsx": {
- "@typescript-eslint/no-explicit-any": 28
+ "@typescript-eslint/no-explicit-any": 28,
+ "react-hooks/immutability": 1,
+ "react-hooks/set-state-in-effect": 3,
+ "react-hooks/static-components": 1
},
"src/components/steps/DiscordConfig.tsx": {
- "@typescript-eslint/no-explicit-any": 6
+ "@typescript-eslint/no-explicit-any": 6,
+ "react-hooks/set-state-in-effect": 3
},
"src/components/steps/DoctorPanel.tsx": {
- "@typescript-eslint/no-explicit-any": 4
+ "@typescript-eslint/no-explicit-any": 4,
+ "react-hooks/set-state-in-effect": 1
},
"src/components/steps/LarkConfig.tsx": {
- "@typescript-eslint/no-explicit-any": 6
+ "@typescript-eslint/no-explicit-any": 6,
+ "react-hooks/set-state-in-effect": 3
+ },
+ "src/components/steps/LogsPanel.tsx": {
+ "react-hooks/set-state-in-effect": 1
},
"src/components/steps/ModeSelection.tsx": {
"@typescript-eslint/no-explicit-any": 2
},
"src/components/steps/PlatformSelection.tsx": {
- "@typescript-eslint/no-explicit-any": 10
+ "@typescript-eslint/no-explicit-any": 10,
+ "react-hooks/refs": 1,
+ "react-hooks/set-state-in-effect": 1
},
"src/components/steps/SlackConfig.tsx": {
- "@typescript-eslint/no-explicit-any": 4
+ "@typescript-eslint/no-explicit-any": 4,
+ "react-hooks/immutability": 1,
+ "react-hooks/set-state-in-effect": 2
},
"src/components/steps/Summary.tsx": {
"@typescript-eslint/no-explicit-any": 5
},
"src/components/steps/TelegramConfig.tsx": {
- "@typescript-eslint/no-explicit-any": 4
+ "@typescript-eslint/no-explicit-any": 4,
+ "react-hooks/set-state-in-effect": 2
},
"src/components/steps/UserList.tsx": {
- "@typescript-eslint/no-explicit-any": 2
+ "@typescript-eslint/no-explicit-any": 2,
+ "react-hooks/set-state-in-effect": 2
},
"src/components/steps/WeChatConfig.tsx": {
- "@typescript-eslint/no-explicit-any": 4
+ "@typescript-eslint/no-explicit-any": 4,
+ "react-hooks/immutability": 1,
+ "react-hooks/set-state-in-effect": 1
+ },
+ "src/components/steps/Welcome.tsx": {
+ "react-hooks/immutability": 1
+ },
+ "src/components/ui/confirm-dialog.tsx": {
+ "react-hooks/set-state-in-effect": 1
+ },
+ "src/components/ui/editor-dialog.tsx": {
+ "react-hooks/set-state-in-effect": 1
+ },
+ "src/components/ui/file-preview.tsx": {
+ "no-useless-assignment": 1,
+ "react-hooks/set-state-in-effect": 6
},
"src/components/ui/secret-request-card.tsx": {
"react-hooks/set-state-in-effect": 1
},
+ "src/components/ui/vault-approval-card.tsx": {
+ "react-hooks/set-state-in-effect": 1
+ },
"src/components/ui/vault-chat-requests.tsx": {
"react-hooks/set-state-in-effect": 1
},
+ "src/components/ui/vault-secret-form.tsx": {
+ "react-hooks/refs": 1,
+ "react-hooks/set-state-in-effect": 4
+ },
+ "src/components/ui/vault-settings-dialog.tsx": {
+ "react-hooks/set-state-in-effect": 1
+ },
+ "src/components/workbench/AgentGraphDetail.tsx": {
+ "react-hooks/refs": 2,
+ "react-hooks/set-state-in-effect": 1
+ },
+ "src/components/workbench/AgentGraphTab.tsx": {
+ "react-hooks/preserve-manual-memoization": 1,
+ "react-hooks/set-state-in-effect": 3
+ },
+ "src/components/workbench/AgentGraphTriggerDetail.tsx": {
+ "react-hooks/refs": 2,
+ "react-hooks/set-state-in-effect": 1
+ },
+ "src/components/workbench/AgentRoutePicker.tsx": {
+ "react-hooks/set-state-in-effect": 2
+ },
+ "src/components/workbench/AgentsPage.tsx": {
+ "no-useless-assignment": 1,
+ "react-hooks/immutability": 1,
+ "react-hooks/preserve-manual-memoization": 1,
+ "react-hooks/refs": 5,
+ "react-hooks/set-state-in-effect": 4
+ },
+ "src/components/workbench/AppsFileBrowserPage.tsx": {
+ "no-useless-assignment": 1,
+ "react-hooks/immutability": 1,
+ "react-hooks/preserve-manual-memoization": 9,
+ "react-hooks/set-state-in-effect": 4
+ },
+ "src/components/workbench/ArchiveSessionDialog.tsx": {
+ "react-hooks/set-state-in-effect": 1
+ },
"src/components/workbench/ChatPage.tsx": {
"@typescript-eslint/no-explicit-any": 1,
+ "react-hooks/immutability": 1,
+ "react-hooks/preserve-manual-memoization": 7,
+ "react-hooks/refs": 6,
+ "react-hooks/set-state-in-effect": 11
+ },
+ "src/components/workbench/Composer.tsx": {
"react-hooks/set-state-in-effect": 3
},
+ "src/components/workbench/EditorApp.tsx": {
+ "react-hooks/immutability": 1,
+ "react-hooks/preserve-manual-memoization": 1,
+ "react-hooks/set-state-in-effect": 2
+ },
+ "src/components/workbench/EditorSearchView.tsx": {
+ "react-hooks/set-state-in-effect": 2
+ },
+ "src/components/workbench/FailureDetails.tsx": {
+ "react-hooks/set-state-in-effect": 1
+ },
+ "src/components/workbench/FileEditorPane.tsx": {
+ "react-hooks/refs": 1,
+ "react-hooks/set-state-in-effect": 2
+ },
+ "src/components/workbench/FilePicker.tsx": {
+ "react-hooks/set-state-in-effect": 2
+ },
"src/components/workbench/FileTree.tsx": {
+ "react-hooks/refs": 1,
+ "react-hooks/set-state-in-effect": 3
+ },
+ "src/components/workbench/GlobalPromptsDialog.tsx": {
+ "react-hooks/set-state-in-effect": 1
+ },
+ "src/components/workbench/HarnessPage.tsx": {
+ "react-hooks/set-state-in-effect": 7
+ },
+ "src/components/workbench/NewAgentDialog.tsx": {
+ "react-hooks/set-state-in-effect": 3
+ },
+ "src/components/workbench/ProjectAgentsMdDialog.tsx": {
+ "react-hooks/set-state-in-effect": 1
+ },
+ "src/components/workbench/QueuedAttachments.tsx": {
+ "react-hooks/set-state-in-effect": 1
+ },
+ "src/components/workbench/QuickReplies.tsx": {
+ "react-hooks/set-state-in-effect": 1
+ },
+ "src/components/workbench/ShowPageShareControl.tsx": {
+ "no-useless-assignment": 1,
+ "react-hooks/set-state-in-effect": 1
+ },
+ "src/components/workbench/ShowPageSharingSettings.tsx": {
+ "react-hooks/refs": 1,
+ "react-hooks/set-state-in-effect": 1
+ },
+ "src/components/workbench/SkillsPage.tsx": {
"react-hooks/set-state-in-effect": 2
},
"src/components/workbench/TerminalView.tsx": {
"react-hooks/set-state-in-effect": 1
},
"src/components/workbench/VaultsPage.tsx": {
+ "react-hooks/immutability": 1,
+ "react-hooks/set-state-in-effect": 4
+ },
+ "src/components/workbench/WebPushControl.tsx": {
"react-hooks/set-state-in-effect": 1
},
"src/components/workbench/harnessLifecycle.test.ts": {
"@typescript-eslint/no-explicit-any": 1
},
+ "src/components/workbench/skills/BrowseRegistryDialog.tsx": {
+ "react-hooks/set-state-in-effect": 1
+ },
+ "src/components/workbench/useSessionActions.tsx": {
+ "react-hooks/refs": 5,
+ "react-hooks/set-state-in-effect": 1
+ },
"src/context/ApiContext.tsx": {
"@typescript-eslint/no-explicit-any": 48,
"react-refresh/only-export-components": 1
},
- "src/context/DockProvider.tsx": {
- "react-hooks/preserve-manual-memoization": 5
- },
"src/context/StatusContext.ts": {
"@typescript-eslint/no-explicit-any": 3
},
"src/context/StatusProvider.tsx": {
- "@typescript-eslint/no-explicit-any": 1
+ "@typescript-eslint/no-explicit-any": 1,
+ "no-useless-assignment": 1
+ },
+ "src/context/WorkbenchInboxProvider.tsx": {
+ "react-hooks/refs": 8
+ },
+ "src/context/WorkbenchProjectsProvider.tsx": {
+ "react-hooks/refs": 4
},
"src/context/apiErrorParse.ts": {
"@typescript-eslint/no-explicit-any": 1
},
+ "src/features/permissions/PermissionsPage.tsx": {
+ "react-hooks/refs": 2
+ },
+ "src/features/permissions/api.ts": {
+ "no-useless-assignment": 1
+ },
"src/lib/platforms.ts": {
"@typescript-eslint/no-explicit-any": 12
},
@@ -125,8 +371,13 @@
"src/lib/useMessageSearch.ts": {
"react-hooks/set-state-in-effect": 1
},
- "src/lib/usePendingVaultRequests.ts": {
- "react-hooks/preserve-manual-memoization": 1
+ "src/lib/useNewSession.ts": {
+ "react-hooks/refs": 1,
+ "react-hooks/set-state-in-effect": 1
+ },
+ "src/pet/PetPage.tsx": {
+ "react-hooks/preserve-manual-memoization": 3,
+ "react-hooks/set-state-in-effect": 6
}
},
"suppressions": {
diff --git a/ui/package-lock.json b/ui/package-lock.json
index f42c35696..590d19924 100644
--- a/ui/package-lock.json
+++ b/ui/package-lock.json
@@ -63,7 +63,7 @@
"xlsx": "https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz"
},
"devDependencies": {
- "@eslint/js": "^9.39.1",
+ "@eslint/js": "^10.0.1",
"@playwright/test": "^1.64.0",
"@tailwindcss/postcss": "^4.3.3",
"@testing-library/react": "^16.3.3",
@@ -74,8 +74,8 @@
"@types/react-dom": "^19.3.0",
"@vitejs/plugin-react": "^6.1.2",
"autoprefixer": "^10.6.1",
- "eslint": "^9.39.1",
- "eslint-plugin-react-hooks": "7.0.1",
+ "eslint": "^10.12.0",
+ "eslint-plugin-react-hooks": "7.1.1",
"eslint-plugin-react-refresh": "0.4.26",
"globals": "^16.5.0",
"js-yaml": "^4.3.2",
@@ -88,7 +88,7 @@
"vitest": "^4.1.11"
},
"engines": {
- "node": "^20.19.0 || >=22.12.0"
+ "node": "^20.19.0 || ^22.13.0 || >=24"
}
},
"node_modules/@alloc/quick-lru": {
@@ -417,6 +417,30 @@
"specificity": "bin/cli.js"
}
},
+ "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/@csstools/color-helpers": {
"version": "6.1.0",
"resolved": "https://registry.npmjs.org/@csstools/color-helpers/-/color-helpers-6.1.0.tgz",
@@ -668,118 +692,89 @@
}
},
"node_modules/@eslint/config-array": {
- "version": "0.21.1",
- "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.21.1.tgz",
- "integrity": "sha512-aw1gNayWpdI/jSYVgzN5pL0cfzU02GT3NBpeT/DXbx1/1x7ZKxFPd9bwrzygx/qiwIQiJ1sw/zD8qY/kRvlGHA==",
+ "version": "0.23.5",
+ "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.23.5.tgz",
+ "integrity": "sha512-Y3kKLvC1dvTOT+oGlqNQ1XLqK6D1HU2YXPc52NmAlJZbMMWDzGYXMiPRJ8TYD39muD/OTjlZmNJ4ib7dvSrMBA==",
"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.2"
+ "minimatch": "^10.2.4"
},
"engines": {
- "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ "node": "^20.19.0 || ^22.13.0 || >=24"
}
},
"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_modules/@eslint/eslintrc": {
- "version": "3.3.3",
- "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.3.tgz",
- "integrity": "sha512-Kr+LPIUVKz2qkx1HAMH8q1q6azbqBAsXJUxBl/ODDuVPX45Z9DfwB8tPjTi6nNZ8BuM3nbJxC5zCAg5elnBUTQ==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "ajv": "^6.12.4",
- "debug": "^4.3.2",
- "espree": "^10.0.1",
- "globals": "^14.0.0",
- "ignore": "^5.2.0",
- "import-fresh": "^3.2.1",
- "js-yaml": "^4.1.1",
- "minimatch": "^3.1.2",
- "strip-json-comments": "^3.1.1"
- },
- "engines": {
- "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
- },
- "funding": {
- "url": "https://opencollective.com/eslint"
- }
- },
- "node_modules/@eslint/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": "^20.19.0 || ^22.13.0 || >=24"
}
},
"node_modules/@eslint/js": {
- "version": "9.39.2",
- "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.39.2.tgz",
- "integrity": "sha512-q1mjIoW1VX4IvSocvM/vbTiveKC4k9eLrajNEuSsmjymSDEbpGddtpfOoN7YGAqBK3NG+uqo8ia4PDTt8buCYA==",
+ "version": "10.0.1",
+ "resolved": "https://registry.npmjs.org/@eslint/js/-/js-10.0.1.tgz",
+ "integrity": "sha512-zeR9k5pd4gxjZ0abRoIaxdc7I3nDktoXZk2qOv9gCNWx3mVwEn32VRhyLaRsDiJjTs0xq/T8mfPtyuXu7GWBcA==",
"dev": true,
"license": "MIT",
"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"
+ },
+ "peerDependencies": {
+ "eslint": "^10.0.0"
+ },
+ "peerDependenciesMeta": {
+ "eslint": {
+ "optional": true
+ }
}
},
"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/@exodus/bytes": {
@@ -1002,6 +997,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/@kurkle/color": {
"version": "0.3.4",
"resolved": "https://registry.npmjs.org/@kurkle/color/-/color-0.3.4.tgz",
@@ -2962,6 +2981,13 @@
"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",
@@ -3247,45 +3273,6 @@
"typescript": ">=4.8.4 <6.1.0"
}
},
- "node_modules/@typescript-eslint/typescript-estree/node_modules/balanced-match": {
- "version": "4.0.4",
- "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz",
- "integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": "18 || 20 || >=22"
- }
- },
- "node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": {
- "version": "5.0.12",
- "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.12.tgz",
- "integrity": "sha512-YovQ3rzhaLMIrDjNDMkNS01tea93qhEhG5xy8f6+R0l+dw3Ki+5sCoIoI942iuLZTHWogWktgwVDhU09iNEimQ==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "balanced-match": "^4.0.2"
- },
- "engines": {
- "node": "20 || >=22"
- }
- },
- "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": {
- "version": "10.2.6",
- "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.6.tgz",
- "integrity": "sha512-vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A==",
- "dev": true,
- "license": "BlueOak-1.0.0",
- "dependencies": {
- "brace-expansion": "^5.0.8"
- },
- "engines": {
- "node": "18 || 20 || >=22"
- },
- "funding": {
- "url": "https://github.com/sponsors/isaacs"
- }
- },
"node_modules/@typescript-eslint/typescript-estree/node_modules/semver": {
"version": "7.8.5",
"resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz",
@@ -3341,19 +3328,6 @@
"url": "https://opencollective.com/typescript-eslint"
}
},
- "node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys": {
- "version": "5.0.1",
- "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-5.0.1.tgz",
- "integrity": "sha512-tD40eHxA35h0PEIZNeIjkHoDR4YjjJp34biM0mDvplBe//mB+IHCqHDGV7pxF+7MklTvighcCPPZC7ynWyjdTA==",
- "dev": true,
- "license": "Apache-2.0",
- "engines": {
- "node": "^20.19.0 || ^22.13.0 || >=24"
- },
- "funding": {
- "url": "https://opencollective.com/eslint"
- }
- },
"node_modules/@uiw/react-json-view": {
"version": "2.0.0-alpha.43",
"resolved": "https://registry.npmjs.org/@uiw/react-json-view/-/react-json-view-2.0.0-alpha.43.tgz",
@@ -3587,9 +3561,9 @@
}
},
"node_modules/acorn": {
- "version": "8.15.0",
- "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz",
- "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==",
+ "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": {
@@ -3628,9 +3602,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": {
@@ -3655,22 +3629,6 @@
"node": ">=8"
}
},
- "node_modules/ansi-styles": {
- "version": "4.3.0",
- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "color-convert": "^2.0.1"
- },
- "engines": {
- "node": ">=8"
- },
- "funding": {
- "url": "https://github.com/chalk/ansi-styles?sponsor=1"
- }
- },
"node_modules/argparse": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",
@@ -3759,11 +3717,14 @@
}
},
"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==",
+ "version": "4.0.4",
+ "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz",
+ "integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==",
"dev": true,
- "license": "MIT"
+ "license": "MIT",
+ "engines": {
+ "node": "18 || 20 || >=22"
+ }
},
"node_modules/baseline-browser-mapping": {
"version": "2.11.24",
@@ -3789,14 +3750,16 @@
}
},
"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==",
+ "version": "5.0.12",
+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.12.tgz",
+ "integrity": "sha512-YovQ3rzhaLMIrDjNDMkNS01tea93qhEhG5xy8f6+R0l+dw3Ki+5sCoIoI942iuLZTHWogWktgwVDhU09iNEimQ==",
"dev": true,
"license": "MIT",
"dependencies": {
- "balanced-match": "^1.0.0",
- "concat-map": "0.0.1"
+ "balanced-match": "^4.0.2"
+ },
+ "engines": {
+ "node": "20 || >=22"
}
},
"node_modules/browserslist": {
@@ -3833,14 +3796,18 @@
"node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7"
}
},
- "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/caniuse-lite": {
@@ -3884,23 +3851,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/character-entities": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/character-entities/-/character-entities-2.0.2.tgz",
@@ -3996,26 +3946,6 @@
"react-dom": "^18 || ^19 || ^19.0.0-rc"
}
},
- "node_modules/color-convert": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "color-name": "~1.1.4"
- },
- "engines": {
- "node": ">=7.0.0"
- }
- },
- "node_modules/color-name": {
- "version": "1.1.4",
- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
- "dev": true,
- "license": "MIT"
- },
"node_modules/comma-separated-tokens": {
"version": "2.0.3",
"resolved": "https://registry.npmjs.org/comma-separated-tokens/-/comma-separated-tokens-2.0.3.tgz",
@@ -4026,13 +3956,6 @@
"url": "https://github.com/sponsors/wooorm"
}
},
- "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/convert-source-map": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz",
@@ -4386,44 +4309,43 @@
}
},
"node_modules/eslint": {
- "version": "9.39.2",
- "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.39.2.tgz",
- "integrity": "sha512-LEyamqS7W5HB3ujJyvi0HQK/dtVINZvd5mAAp9eT5S/ujByGjiZLCzPcHVzuXbpJDJF/cxwHlfceVUDZ2lnSTw==",
+ "version": "10.12.0",
+ "resolved": "https://registry.npmjs.org/eslint/-/eslint-10.12.0.tgz",
+ "integrity": "sha512-npHjrHb2o4ehH3mE+YuxABR+0gyb0aVWCIolgJDArwCiHEIsonBm3ZKjel5b0U5+a+MbEvIyRCGCzD3eKKK2NA==",
"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.1",
- "@eslint/config-helpers": "^0.4.2",
- "@eslint/core": "^0.17.0",
- "@eslint/eslintrc": "^3.3.1",
- "@eslint/js": "9.39.2",
- "@eslint/plugin-kit": "^0.4.1",
+ "@eslint-community/regexpp": "^4.12.2",
+ "@eslint/config-array": "^0.23.5",
+ "@eslint/config-helpers": "^0.7.0",
+ "@eslint/core": "^1.2.1",
+ "@eslint/plugin-kit": "^0.7.3",
"@humanfs/node": "^0.16.6",
"@humanwhocodes/module-importer": "^1.0.1",
"@humanwhocodes/retry": "^0.4.2",
"@types/estree": "^1.0.6",
- "ajv": "^6.12.4",
- "chalk": "^4.0.0",
+ "ajv": "^6.14.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.2",
+ "minimatch": "^10.2.5",
"natural-compare": "^1.4.0",
"optionator": "^0.9.3"
},
@@ -4431,7 +4353,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"
@@ -4446,9 +4368,9 @@
}
},
"node_modules/eslint-plugin-react-hooks": {
- "version": "7.0.1",
- "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-7.0.1.tgz",
- "integrity": "sha512-O0d0m04evaNzEPoSW+59Mezf8Qt0InfgGIBJnpC0h3NH/WjUAR7BIKUfysC6todmtiZ/A0oUVS8Gce0WhBrHsA==",
+ "version": "7.1.1",
+ "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-7.1.1.tgz",
+ "integrity": "sha512-f2I7Gw6JbvCexzIInuSbZpfdQ44D7iqdWX01FKLvrPgqxoE7oMj8clOfto8U6vYiz4yd5oKu39rRSVOe1zRu0g==",
"dev": true,
"license": "MIT",
"dependencies": {
@@ -4462,7 +4384,7 @@
"node": ">=18"
},
"peerDependencies": {
- "eslint": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 || ^9.0.0"
+ "eslint": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 || ^9.0.0 || ^10.0.0"
}
},
"node_modules/eslint-plugin-react-refresh": {
@@ -4476,48 +4398,50 @@
}
},
"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"
}
},
"node_modules/eslint-visitor-keys": {
- "version": "4.2.1",
- "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz",
- "integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==",
+ "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": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ "node": "^20.19.0 || ^22.13.0 || >=24"
},
"funding": {
"url": "https://opencollective.com/eslint"
}
},
"node_modules/espree": {
- "version": "10.4.0",
- "resolved": "https://registry.npmjs.org/espree/-/espree-10.4.0.tgz",
- "integrity": "sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==",
+ "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": {
- "acorn": "^8.15.0",
+ "acorn": "^8.16.0",
"acorn-jsx": "^5.3.2",
- "eslint-visitor-keys": "^4.2.1"
+ "eslint-visitor-keys": "^5.0.1"
},
"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"
@@ -4645,16 +4569,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": {
@@ -4675,23 +4596,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"
},
@@ -4815,14 +4734,17 @@
"dev": true,
"license": "ISC"
},
- "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/hast-util-to-html": {
@@ -4905,6 +4827,13 @@
"hermes-estree": "0.25.1"
}
},
+ "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-encoding-sniffer": {
"version": "6.0.0",
"resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-6.0.0.tgz",
@@ -5000,23 +4929,6 @@
"integrity": "sha512-XXOFtyqDjNDAQxVfYxuF7g9Il/IbWmmlQg2MYKOH8ExIT1qg6xc4zyS3HaEEATgs1btfzxq15ciUiY7gjSXRGQ==",
"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",
@@ -5145,7 +5057,7 @@
"license": "MIT",
"peer": true,
"funding": {
- "type": "GitHub Sponsors ❤",
+ "type": "GitHub Sponsors \u2764",
"url": "https://github.com/sponsors/dmonad"
}
},
@@ -5253,13 +5165,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",
@@ -5300,13 +5205,13 @@
}
},
"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/levn": {
@@ -5371,7 +5276,7 @@
"node": ">=16"
},
"funding": {
- "type": "GitHub Sponsors ❤",
+ "type": "GitHub Sponsors \u2764",
"url": "https://github.com/sponsors/dmonad"
}
},
@@ -5673,13 +5578,6 @@
"url": "https://github.com/sponsors/sindresorhus"
}
},
- "node_modules/lodash.merge": {
- "version": "4.6.2",
- "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz",
- "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==",
- "dev": true,
- "license": "MIT"
- },
"node_modules/longest-streak": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/longest-streak/-/longest-streak-3.1.0.tgz",
@@ -6685,16 +6583,19 @@
"license": "MIT"
},
"node_modules/minimatch": {
- "version": "3.1.5",
- "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.5.tgz",
- "integrity": "sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==",
+ "version": "10.2.6",
+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.6.tgz",
+ "integrity": "sha512-vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A==",
"dev": true,
- "license": "ISC",
+ "license": "BlueOak-1.0.0",
"dependencies": {
- "brace-expansion": "^1.1.7"
+ "brace-expansion": "^5.0.8"
},
"engines": {
- "node": "*"
+ "node": "18 || 20 || >=22"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
}
},
"node_modules/monaco-editor": {
@@ -6857,19 +6758,6 @@
"integrity": "sha512-qBGxg/7Q3Kl9Wfhrz2Z74UnvnHTXLNG6jmKJFeBvP2+y4lV7So+7SR62+Zd47JvdrCkX+nDcnr0ObPzek/+6RA==",
"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-entities": {
"version": "4.0.2",
"resolved": "https://registry.npmjs.org/parse-entities/-/parse-entities-4.0.2.tgz",
@@ -7107,6 +6995,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.react": {
"version": "4.2.0",
"resolved": "https://registry.npmjs.org/qrcode.react/-/qrcode.react-4.2.0.tgz",
@@ -7472,16 +7380,6 @@
"node": ">=0.10.0"
}
},
- "node_modules/resolve-from": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz",
- "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=4"
- }
- },
"node_modules/rolldown": {
"version": "1.2.13",
"resolved": "https://registry.npmjs.org/rolldown/-/rolldown-1.2.13.tgz",
@@ -7675,19 +7573,6 @@
"url": "https://github.com/sponsors/wooorm"
}
},
- "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/style-to-js": {
"version": "1.1.21",
"resolved": "https://registry.npmjs.org/style-to-js/-/style-to-js-1.1.21.tgz",
@@ -7706,19 +7591,6 @@
"inline-style-parser": "0.2.7"
}
},
- "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/symbol-tree": {
"version": "3.2.4",
"resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz",
@@ -8765,7 +8637,7 @@
"npm": ">=8.0.0"
},
"funding": {
- "type": "GitHub Sponsors ❤",
+ "type": "GitHub Sponsors \u2764",
"url": "https://github.com/sponsors/dmonad"
}
},
diff --git a/ui/package.json b/ui/package.json
index 770bae2d8..ce5419519 100644
--- a/ui/package.json
+++ b/ui/package.json
@@ -4,7 +4,7 @@
"version": "0.0.0",
"type": "module",
"engines": {
- "node": "^20.19.0 || >=22.12.0"
+ "node": "^20.19.0 || ^22.13.0 || >=24"
},
"scripts": {
"dev": "vite",
@@ -94,7 +94,7 @@
"xlsx": "https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz"
},
"devDependencies": {
- "@eslint/js": "^9.39.1",
+ "@eslint/js": "^10.0.1",
"@playwright/test": "^1.64.0",
"@tailwindcss/postcss": "^4.3.3",
"@testing-library/react": "^16.3.3",
@@ -105,8 +105,8 @@
"@types/react-dom": "^19.3.0",
"@vitejs/plugin-react": "^6.1.2",
"autoprefixer": "^10.6.1",
- "eslint": "^9.39.1",
- "eslint-plugin-react-hooks": "7.0.1",
+ "eslint": "^10.12.0",
+ "eslint-plugin-react-hooks": "7.1.1",
"eslint-plugin-react-refresh": "0.4.26",
"globals": "^16.5.0",
"js-yaml": "^4.3.2",
diff --git a/ui/scripts/eslintConventions.test.mjs b/ui/scripts/eslintConventions.test.mjs
index 20a316b56..508158a9d 100644
--- a/ui/scripts/eslintConventions.test.mjs
+++ b/ui/scripts/eslintConventions.test.mjs
@@ -128,6 +128,45 @@ describe('no-unused-vars still errors on genuinely dead bindings', () => {
});
});
+// The dependency migration must preserve real enforcement, not just configured
+// rule names. In particular Hooks 7.1 reports multiple compiler errors and sees
+// synchronous effect setters that 7.0.1 missed. A snapshot alone cannot prove
+// either behavior; these probes exercise the same config as the lint gate.
+describe('the upgraded lint presets enforce their behavioral contract', () => {
+ it.each([
+ ['react-hooks/rules-of-hooks', 'import {useState} from "react"; export function C({ready}: {ready: boolean}) { if (ready) { const [n] = useState(0); return <div>{n}</div>; } return null; }'],
+ ['react-hooks/static-components', 'export function Parent({value}: {value: string}) { function Child() { return <div>{value}</div>; } return <Child/>; }'],
+ ['react-hooks/immutability', 'export function C({value}: {value: {name: string}}) { value.name="changed"; return <div>{value.name}</div>; }'],
+ ['react-hooks/purity', 'export function C() { return <div>{Date.now()}</div>; }'],
+ ['no-unassigned-vars', 'export function f() { let value; return value; }'],
+ ['no-useless-assignment', 'export function f() { let n=1; n=2; return n; }'],
+ ['preserve-caught-error', 'export function f() { try { JSON.parse("x"); } catch (error) { throw new Error(String(error)); } }'],
+ ['no-shadow-restricted-names', 'export function f(globalThis: string) { return globalThis; }'],
+ ])('errors on %s violations', async (rule, source) => {
+ expect(await errorRuleIdsFor(source, TSX_PROBE)).toContain(rule);
+ });
+
+ it('reports both a synchronous effect setter and a render ref read, not just the first compiler error', async () => {
+ const code =
+ 'import {useEffect,useRef,useState} from "react";\n' +
+ 'export function C({value}: {value: string}) {\n' +
+ ' const ref=useRef(0); const [text,setText]=useState("");\n' +
+ ' useEffect(()=>{setText(value);},[value]);\n' +
+ ' return <div>{text}{ref.current}</div>;\n}\n';
+ expect(await errorRuleIdsFor(code, TSX_PROBE)).toEqual(
+ expect.arrayContaining(['react-hooks/set-state-in-effect', 'react-hooks/refs']),
+ );
+ });
+
+ it.each([
+ ['react-hooks/static-components', 'function Child({value}: {value: string}) { return <div>{value}</div>; } export function Parent({value}: {value: string}) { return <Child value={value}/>; }'],
+ ['react-hooks/set-state-in-effect', 'import {useState} from "react"; export function C() { const [text,setText]=useState(""); return <button onClick={()=>setText("clicked")}>{text}</button>; }'],
+ ['preserve-caught-error', 'export function f() { try { JSON.parse("x"); } catch (error) { throw new Error("Invalid JSON", {cause: error}); } }'],
+ ])('does not report %s for its valid counterpart', async (rule, source) => {
+ expect(await ruleIdsFor(source, TSX_PROBE)).not.toContain(rule);
+ });
+});
+
// `src/lib/useLatestRef.ts` carries the only `react-hooks/refs` exemption that is
// not a per-site judgement call. That is defensible only while the rule still
// applies everywhere else: switching it off in the shared config, or dropping it
diff --git a/ui/scripts/lintPolicy.mjs b/ui/scripts/lintPolicy.mjs
index 3a84abdf3..fad36d51c 100644
--- a/ui/scripts/lintPolicy.mjs
+++ b/ui/scripts/lintPolicy.mjs
@@ -88,7 +88,7 @@ export const EXPECTED_RULES = {
'no-compare-neg-zero': [2],
'no-cond-assign': [2, 'except-parens'],
'no-const-assign': [0],
- 'no-constant-binary-expression': [2],
+ 'no-constant-binary-expression': [2, { checkRelationalComparisons: false }],
'no-constant-condition': [2, { checkLoops: 'allExceptWhileTrue' }],
'no-control-regex': [2],
'no-debugger': [2],
@@ -122,9 +122,10 @@ export const EXPECTED_RULES = {
'no-regex-spaces': [2],
'no-self-assign': [2, { props: true }],
'no-setter-return': [0],
- 'no-shadow-restricted-names': [2, { reportGlobalThis: false }],
+ 'no-shadow-restricted-names': [2, { reportGlobalThis: true }],
'no-sparse-arrays': [2],
'no-this-before-super': [0],
+ 'no-unassigned-vars': [2],
'no-undef': [0, { typeof: false }],
'no-unexpected-multiline': [2],
'no-unreachable': [0],
@@ -134,7 +135,8 @@ export const EXPECTED_RULES = {
'no-unused-expressions': [0, { allowShortCircuit: false, allowTernary: false, allowTaggedTemplates: false, enforceForJSX: false, ignoreDirectives: false }],
'no-unused-labels': [2],
'no-unused-private-class-members': [2],
- 'no-unused-vars': [0],
+ 'no-unused-vars': [0, { vars: 'all', args: 'after-used', ignoreRestSiblings: false, caughtErrors: 'all', ignoreClassWithStaticInitBlock: false, ignoreUsingDeclarations: false, reportUsedIgnorePattern: false }],
+ 'no-useless-assignment': [2],
'no-useless-backreference': [2],
'no-useless-catch': [2],
'no-useless-escape': [2, { allowRegexCharacters: [] }],
@@ -143,7 +145,11 @@ export const EXPECTED_RULES = {
'prefer-const': [2, { destructuring: 'any', ignoreReadBeforeAssign: false }],
'prefer-rest-params': [2],
'prefer-spread': [2],
- 'react-hooks/component-hook-factories': [2],
+ 'preserve-caught-error': [2, { requireCatchParameter: false, errorClassNames: [] }],
+ // Hooks 7.1 removed component-hook-factories from recommended. Its 7.0.1
+ // compiler flag was already off in our configuration; 7.1.1's compatibility
+ // rule is a no-op, not a replacement guard. static-components stays enforced.
+ // See docs/maintenance/eslint-10-migration.md for the dual-version probes.
'react-hooks/config': [2],
'react-hooks/error-boundaries': [2],
'react-hooks/exhaustive-deps': [1], // deliberate: the remaining warnings are ledgered, not fixed