Repository navigation
Commit 3a62b13
chore: Remove unused dependencies and bump vulnerable packages (#1898)
`pnpm audit` on `main`: **184 advisories** (4 critical, 71 high). After
this PR: **40** (2 critical, 17 high), all of which are pinned by `next`
14 or `contentlayer` 0.3.4.
## Changes
- **Remove `baseai` / `@baseai/core`**, the `baseai/` memory config,
`docs-chatbot.md`, and the `pnpm sync` script. The Langbase chatbot was
replaced by runLLM and nothing imports these. They alone pulled in
`hono` (34 advisories), `tar` (12, incl. 1 critical), `xlsx` (2 high, no
fix available), `form-data`, `yaml`, `uuid`, and most of the `minimatch`
/ `brace-expansion` hits.
- **Remove `js-yaml`** from direct dependencies: never imported by
`src/` or `dev/`.
- **`mermaid` 11.12 → 11.16**: carries the `dompurify` XSS fixes, the
only vulnerable code that actually ships to visitors' browsers.
- **`sharp` 0.32 → 0.35** (devDep, build only): libvips / libheif CVEs.
- Re-resolve vulnerable transitives within their existing semver ranges
(`minimatch`, `brace-expansion`, `picomatch`, `nanoid`, `protobufjs`,
`@grpc/grpc-js`, ...). Lockfile loses ~2,000 lines.
- `.gitignore`: add `/logs` for script output, drop the stale
`**/.baseai/` entry.
## Verification
- Clicked through Vercel preview, checked Mermaid diagrams, search, nav
menu, it all works
With `node 20.20` / `pnpm 10.25` (per `.tool-versions`):
- `npx tsc --noEmit` clean, `pnpm lint` clean
- `pnpm build`: 521 documents, 526 static pages, `dev/check-links` /
`check-filenames` / `check-images` / `generate-mermaid-icons` all pass;
route table unchanged
- Both pages with Mermaid diagrams (`admin/architecture`,
`self-hosted/sourcegraph-nginx-mermaid`) render correctly under `next
start` in headless Chrome
- `pnpm why baseai hono tar xlsx` → not found; `rg baseai` → only the
AGENTS.md history note
---------
Co-authored-by: Amp <amp@ampcode.com>1 parent aa22ff4 commit 3a62b13
7 files changed
Lines changed: 540 additions & 2066 deletions
File tree
- baseai
- memory/memory-sg-docs-live
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | | - | |
| 49 | + | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
| 44 | + | |
52 | 45 | | |
53 | 46 | | |
54 | 47 | | |
| |||
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | 14 | | |
17 | 15 | | |
18 | 16 | | |
19 | 17 | | |
20 | 18 | | |
21 | 19 | | |
22 | | - | |
23 | 20 | | |
24 | 21 | | |
25 | 22 | | |
| |||
43 | 40 | | |
44 | 41 | | |
45 | 42 | | |
46 | | - | |
47 | 43 | | |
48 | 44 | | |
49 | 45 | | |
50 | | - | |
| 46 | + | |
51 | 47 | | |
52 | 48 | | |
53 | 49 | | |
| |||
71 | 67 | | |
72 | 68 | | |
73 | 69 | | |
74 | | - | |
75 | 70 | | |
76 | 71 | | |
77 | 72 | | |
78 | 73 | | |
79 | 74 | | |
80 | 75 | | |
81 | | - | |
| 76 | + | |
82 | 77 | | |
83 | 78 | | |
0 commit comments