|
Download docs/DEPENDENCIES.md from EnergyVenom/patch-testing-coworker: direct link, hf CLI and curl.
- Browser
- Download file 5.47 kB
-
https://huggingface.co/spaces/EnergyVenom/patch-testing-coworker/resolve/main/docs/DEPENDENCIES.md
- Command line
-
hf download hf://spaces/EnergyVenom/patch-testing-coworker/docs/DEPENDENCIES.md
-
curl -L -o DEPENDENCIES.md https://huggingface.co/spaces/EnergyVenom/patch-testing-coworker/resolve/main/docs/DEPENDENCIES.md
5.47 kB
| # Web app dependencies | |
| **Audience:** anyone adding, upgrading or removing a package in `web/`. | |
| ## Policy | |
| Every new or upgraded package must meet all of these: | |
| - It is maintained. | |
| - Its licence is MIT, Apache-2.0 or similarly permissive (fonts: OFL). | |
| - `npm audit` shows no known vulnerabilities for it. | |
| - It is compatible with React 19, Vite 6 and TypeScript 5.9. | |
| Process: | |
| - Pin the exact version when a package is added. | |
| - Make one commit per dependency group. | |
| - Report the bundle-size change in that commit. | |
| - Ask the owner before any major (breaking) upgrade. | |
| ## Changes in the frontend-polish branch | |
| | Date | Change | Why | Bundle | | |
| |---|---|---|---| | |
| | 2026-11-03 | Removed `lucide-react` 0.548 | One icon set: the 5 files using lucide moved to `@tabler/icons-react`, already used in 32 files | Sign-in chunk smaller; main chunk unchanged | | |
| | 2026-11-04 | Added `@fontsource-variable/geist-mono` 5.3.0 (pinned, OFL-1.1) | Display-mono face for UI chrome (nav, labels, table headers, buttons, status tags, page titles) to match the approved reference style; self-hosted like Inter. `npm audit --omit=dev`: unchanged (2 moderate, react-router only) | Font files load on demand (Latin woff2 23 kB, other subsets only when used); main CSS 403.6 → 410.2 kB (+1.1 kB gzip) | | |
| | 2026-11-04 | Added `@axe-core/playwright` 4.14.0 (dev, pinned; wrapper MIT, `axe-core` engine **MPL-2.0**, on the owner's approved list) | Accessibility gate `e2e/a11y.e2e.ts` | Dev only, not shipped | | |
| | 2026-11-04 | Added `husky` 9.1.7 and `lint-staged` 17.6.0 (dev, pinned, MIT) | Pre-commit: ESLint on staged files and a type-check | Dev only, not shipped | | |
| | 2026-11-04 | **Not added:** `lighthouse` 13.6.0 (Apache-2.0) | Its dependency tree (`@sentry/node`) adds 4 moderate npm audit advisories; `scripts/lighthouse.mjs` runs the pinned version through `npx lighthouse@13.6.0` instead, so it never enters the lockfile | None | | |
| After Step 5, `npm audit` (all packages) is unchanged at 20 (18 moderate, 2 critical, the vitest/eslint chain listed below); runtime packages unchanged at 2 moderate (react-router). | |
| No package was added in Steps 1 to 3; Geist Mono was added in Step 4. The design tokens and components are plain CSS and React. | |
| ## Python: MCP connector (2026-11-08) | |
| **Not added:** the `mcp` Python SDK (2.3.0, MIT). The connector implements the small part of the protocol it needs | |
| (`initialize`, `ping`, `tools/list` and `tools/call` over stateless Streamable HTTP, JSON answers) in `coworker/api/mcp.py` | |
| (about 450 lines including the tools). The SDK would bring its own session manager, which needs an ASGI lifespan, along with SSE | |
| streaming and Starlette auth layers, none of which this stateless endpoint uses. Owning the transport also keeps token | |
| checks, rate limits and error masking in one place. Revisit if phase 2 (OAuth) or server-sent notifications are wanted. | |
| No web package was added. | |
| ## Current packages (2026-11-03) | |
| ### Runtime | |
| | Package | Version | Licence | Use | | |
| |---|---|---|---| | |
| | react, react-dom | 19.2.0 | MIT | UI | | |
| | @mantine/core, hooks, notifications | 7.17.8 | MIT | Main component library | | |
| | @tanstack/react-query | 5.104.1 | MIT | Server state | | |
| | react-router-dom | 6.30.6 | MIT | Routing | | |
| | openapi-fetch | 0.17.0 | MIT | Typed API client | | |
| | @tabler/icons-react | 3.49.0 | MIT | The one icon set | | |
| | motion | 12.43.0 | MIT | beUI animations (reduced motion respected) | | |
| | clsx, tailwind-merge | 2.1.1, 3.7.0 | MIT | `cn()` for beUI class names | | |
| | three | 0.180.0 | MIT | Sign-in scene and scenario globe (lazy chunks) | | |
| | @fontsource-variable/inter | 5.3.0 | OFL-1.1 | Self-hosted font | | |
| | @fontsource-variable/geist-mono | 5.3.0 | OFL-1.1 | Display mono for UI chrome | | |
| ### Build and test | |
| | Package | Version | Licence | | |
| |---|---|---| | |
| | vite | 6.4.4 | MIT | | |
| | @vitejs/plugin-react | 4.7.0 | MIT | | |
| | typescript | 5.9.3 | Apache-2.0 | | |
| | tailwindcss, @tailwindcss/vite | 4.1.14 | MIT | | |
| | vitest | 3.2.7 | MIT | | |
| | jsdom | 26.1.0 | MIT | | |
| | @testing-library/* | | MIT | | |
| | @playwright/test | 1.64.0 | Apache-2.0 | | |
| | @axe-core/playwright | 4.14.0 | MIT (axe-core engine: MPL-2.0) | | |
| | husky | 9.1.7 | MIT | | |
| | lint-staged | 17.6.0 | MIT | | |
| | eslint, typescript-eslint and plugins | | MIT | | |
| | openapi-typescript | 7.13.0 | MIT | | |
| All runtime licences are MIT, except the Inter font (OFL-1.1). | |
| ## `npm audit` (2026-11-03) | |
| ### Runtime: 2 moderate | |
| Both come from `react-router-dom` 6.30.6 and its `react-router`. | |
| - The fix is react-router 7, a major upgrade (routes and data APIs change). | |
| - **Owner decision needed:** upgrade in its own branch, or accept until then. | |
| ### Development only: 18 more (2 critical, 16 moderate) | |
| None of these ship to users. | |
| | Advisory | Severity | Fix | | |
| |---|---|---| | |
| | `vitest` → `tinypool` (and `@vitest/mocker`) | critical | vitest 5, a major upgrade | | |
| | `eslint` 9 dependency chain (`minimatch`, `@eslint/*`, `typescript-eslint` parts) | moderate | Needs eslint/typescript-eslint majors | | |
| | `openapi-typescript` → `@redocly/openapi-core` | moderate | Major upgrade | | |
| | `vite` 6.4.4 | moderate | A patch-level fix is available (`npm audit fix`) | | |
| **Recommendation:** the vite patch is safe to apply. The vitest 5 and eslint majors should go in one tooling-upgrade commit after the owner approves. Nothing here was changed automatically: `npm audit fix --force` would make breaking upgrades. | |