Skip to content

fix(deps): update npm lockfiles for open Dependabot advisories - #9110

Merged
patmmccann merged 3 commits into
adcontextprotocol:mainfrom
patmmccann:agent/npm-audit-fix
Nov 19, 2026
Merged

patmmccann merged 3 commits into
adcontextprotocol:mainfrom
patmmccann:agent/npm-audit-fix

Conversation

@patmmccann

@patmmccann patmmccann commented Nov 19, 2026 •

Copy link
Copy Markdown
Collaborator

🤖 This PR was written by an AI agent (Claude Code) on behalf of @patmmccann.

Lockfile-only security update for the two npm manifests with open Dependabot alerts, plus a patch bump of vite in apps/web. No major version changes and no --force.

What changed

  • package-lock.json (root): npm audit fix --package-lock-only --ignore-scripts. mint moves 4.2.1205 -> 4.3.67, inside the existing ^4.2.1205 range. Its smaller tree drops adm-zip, smol-toml, re2js and katex, along with the nested fast-xml-parser 5.7.3 and qs 6.14.3 copies. launch-editor goes 2.14.1 -> 2.14.2.

  • apps/web/package.json: vite ^7.3.6 -> ^7.3.7.

  • apps/web/package-lock.json: refreshed with npm install --package-lock-only, then npm audit fix --package-lock-only. Changes: vite 7.3.6 -> 7.3.8, @ladle/react's vite 6.4.3 -> 6.4.6 (under the existing ^6.4.3 override), seroval 1.5.6 -> 1.8.2, zod 4.4.1 -> 4.6.7, @vitest/mocker 5.0.0 -> 5.1.1, decode-uri-component 0.5.0 -> 0.5.1, source-map-js 1.2.1 -> 1.2.4, esbuild 0.27.7 -> 0.28.2.

  • Server types: the old Mintlify tree brought in @types/cors and typings that declared Document/DocumentFragment, and tsc for server/ depended on them without saying so. This adds @types/cors as a devDependency. In the two linkedom-to-Readability call sites, the document type now comes from Readability's constructor, and the DocumentFragment casts on DOMPurify results are gone because their consumers already take any. I tried adding the DOM lib, but it conflicts with Node's global JsonWebKey in the training-agent signing code.

npm audit drops from 31 to 7 findings at the root and from 12 to 0 in apps/web. npm ls --all --package-lock-only reports no missing or invalid packages that weren't already there. The lockfiles were generated with npm 10.9.4, which matches packageManager.

No changeset, because this is dependency maintenance with no protocol change (see .agents/playbook.md).

Dependabot alerts cleared (36)

Still open, out of scope (4)

Rust alerts in apps/desktop/src-tauri/Cargo.lock and the Python uv.lock alerts aren't touched here. A separate PR covers uv.lock.

🤖 Generated with Claude Code

Root package-lock.json (npm audit fix --package-lock-only):
- adm-zip, smol-toml, re2js and katex drop out of the tree: mint
  4.2.1205 -> 4.3.67 (within ^4.2.1205) no longer pulls them in
- fast-xml-parser: the nested 5.7.3 copies under @mintlify go away,
  leaving 5.12.1
- qs: the nested 6.14.3 under @mintlify/previewing goes away
- launch-editor 2.14.1 -> 2.14.2

apps/web:
- vite ^7.3.6 -> ^7.3.7 (resolves 7.3.8); @ladle/react's vite 6.4.3 ->
  6.4.6
- seroval 1.5.6 -> 1.8.2, zod 4.4.1 -> 4.6.7, @vitest/mocker 5.0.0 ->
  5.1.1, decode-uri-component 0.5.0 -> 0.5.1, source-map-js 1.2.1 ->
  1.2.4, esbuild 0.27.7 -> 0.28.2

npm audit goes from 31 to 7 findings at the root and from 12 to 0 in
apps/web. The rest needs a breaking change: sharp is held at 0.33.5
by @mintlify/cli, and minimatch 10.x comes from the glob ^13 devDependency
and c8 11 (via test-exclude), which need glob 14 and c8 12 majors.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@mintlify

mintlify Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Preview approval required

This pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit 4345403.

Approve preview

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-19T18:08:15.004531Z 3bf9389 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

aao-secretariat[bot]
aao-secretariat Bot previously approved these changes Nov 19, 2026

@aao-secretariat aao-secretariat Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ladon verdict: Approve

Approve — lockfile-only Dependabot security update.

What I checked:

  • Diff touches only package-lock.json (root), apps/web/package-lock.json, and a single vite ^7.3.6→^7.3.7 devDependency bump in apps/web/package.json.
  • No protocol surface touched: static/schemas/source/**, docs/reference/**, dist/**, task definitions, and release scripts are all untouched — so no changeset is required (correctly omitted per playbook).
  • All version movements (vite 7.3.8, esbuild 0.28.2, @ladle/react's vite 6.4.6, mint 4.3.67 within ^4.2.1205) are dev deps moving inside existing ranges; no hand-edited version fields, no downgrades.
  • high_risk: false, gated_paths: false, no no-auto-approve team match.

Decision path: No critical/high findings (row 1 n/a). gated_paths false (row 2 n/a). Not high-risk (rows 3/5 n/a). No medium findings of any category (rows 4/8 n/a). No prior escalation (row 6 n/a). No team gate (row 7 n/a). Falls through to row 9 → approve.

Note: review_decision is REVIEW_REQUIRED, but that only forces escalation when gated_paths is true (row 2), which it is not here.

…ansitively

The mint 4.3 tree no longer pulls in @types/cors or the packages whose
typings loaded the DOM lib, so tsc failed on `Document`,
`DocumentFragment` and the `cors` import. Add @types/cors as a
devDependency and a `/// <reference lib="dom" />` to the four files
that cast linkedom/DOMPurify results to DOM types, rather than widening
the server-wide lib.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@chatgpt-codex-connector

Copy link
Copy Markdown

💡 Codex Review

"sharp": "0.33.5"

P2 Badge Declare script dependencies before pruning the Mintlify tree

Checking both npm lockfiles shows that this refresh removes every root-tree copy of chokidar and open, while scripts/dev-docs.mjs:26 and scripts/google-oauth-setup.ts:14 still import them unconditionally. Neither package is declared in the root manifest, so after a clean root install, npm run dev:docs and the Google OAuth setup script terminate with ERR_MODULE_NOT_FOUND. The remaining copies under the independent apps/web tree cannot satisfy these imports. Add explicit root devDependencies for these script dependencies alongside the lockfile refresh.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

aao-secretariat[bot]
aao-secretariat Bot previously approved these changes Nov 19, 2026

@aao-secretariat aao-secretariat Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ladon verdict: Approve

Approve — dependency maintenance with no actionable findings.

This PR is pure dependency/lockfile maintenance: adds @types/cors devDependency, refreshes package.json/package-lock.json at both root and apps/web, and adds four identical /// <reference lib="dom" /> directives on server files that cast linkedom/DOMPurify output to Document/DocumentFragment. The reviewer verified document references originate from parseHTML(html) (linkedom), not browser globals, so the DOM lib supplies type names only with no runtime dependency.

No protocol surface (static/schemas/source/**) touched, so schema↔docs coherence, oneOf discriminator, changeset-scope, and 3.1.x patch-eligibility gates do not apply; the omitted changeset is correct for an app/infra-only change.

High-risk flag is true only because two server/src/addie/** files were (modified), but the reviewer found no medium-or-higher concerns on them, so row 5 does not fire. gated_paths is false; no no-auto-approve team match. Prior decision was approve with no findings, and this run also surfaces none. No decision-table rows 1–8 fire → row 9 approve.

Adding the DOM lib (previous commit) conflicted with Node's global
JsonWebKey in the training-agent signing code. Instead, take the
document type from Readability's constructor and drop the
DocumentFragment casts on DOMPurify results; their consumers already
take `any`.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@aao-secretariat aao-secretariat Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ladon verdict: Approve

Approve — type-only cleanup in server/** following a dependency update.

This PR removes /// <reference lib="dom" /> directives and replaces DOM-lib casts (as unknown as DocumentFragment, as unknown as Document → ConstructorParameters<typeof Readability>[0]) across 4 server TypeScript files, plus lockfile/package.json dependency updates. No runtime behavior change, no protocol surface touched (static/schemas/source/, docs/reference/, dist/** all untouched), and server-only changes carry no changeset obligation.

Decision table walkthrough:

  • No critical/high findings (row 1 no).
  • gated_paths is false (row 2 no).
  • high_risk is true, but all reasons are (modified) — none (deleted) (row 3 no).
  • No medium findings at all (rows 4, 5, 8 no).
  • Prior decision was approve, not escalate (row 6 no).
  • No no-auto-approve team match (row 7 no).
  • Falls through to row 9 → approve.

The high_risk flag fired on server/src/addie/** modifications, but per the risk-reading guidance a (modified) sensitive file with no medium-or-higher finding is presumed safe. Reviewer confirms this is a mechanical, type-only delta with no wire-shape or governance implications. Prior clean pass stands.

@patmmccann
patmmccann enabled auto-merge (squash) November 19, 2026 18:20
@patmmccann
patmmccann merged commit da25426 into adcontextprotocol:main Nov 19, 2026
59 checks passed
@patmmccann

Copy link
Copy Markdown
Collaborator Author

🤖 This comment was written by an AI agent (Claude Code) on behalf of @patmmccann.

Codex was right about chokidar and open. This PR merged before the finding was handled, so the fix is in #9113, which declares both as root devDependencies (chokidar ^3.5.3, open ^8.4.2). I also checked every other top-level package this PR removed against the bare imports and bins used in the repo, and those two were the only ones in use.

patmmccann added a commit that referenced this pull request Nov 19, 2026
…tly (#9113)

scripts/dev-docs.mjs imports chokidar and scripts/google-oauth-setup.ts
imports open, but neither was declared. Both came from the Mintlify
dependency tree, and #9110 pruned that tree, so `npm run dev:docs` and
the OAuth setup script now fail with ERR_MODULE_NOT_FOUND after a clean
install. Declare them as root devDependencies on the majors the scripts
already ran against (chokidar 3, open 8).

Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant