Skip to content

chore(deps): remove unused example dependencies - #401

Merged
glebedel merged 1 commit into
mainfrom
s2d2/audit-unused-example-deps
Nov 13, 2026
Merged

glebedel merged 1 commit into
mainfrom
s2d2/audit-unused-example-deps

Conversation

@glebedel

@glebedel glebedel commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The examples workspace declared @clack/prompts, @tanstack/ai and @tanstack/ai-openai, but nothing imports them: they sat in knip's ignoreDependencies, so knip never flagged them. This removes them with their catalog and minimumReleaseAgeExclude entries, and drops test:node from knip's ignoreBinaries, which knip itself reports as unused on main ("Remove from ignoreBinaries"): no script or workflow in the repo calls it.

  • examples/package.json, pnpm-workspace.yaml, knip.config.ts: the entries above. @typescript/native-preview stays in ignoreDependencies on purpose, since perf(deps-dev): use native TypeScript for Vitest checks #388 changes that line.
  • pnpm-lock.yaml: removals only (@clack/*, @tanstack/*, partial-json, sisteransi). Diffing the name@version keys before and after shows no package changing version and no new resolution or tarball source. The other changed lines are (supports-color@7.2.0) peer suffixes, a resolution side effect of the removal; that version was already locked on main.
  • Supply-chain settings (strictDepBuilds, allowBuilds, blockExoticSubdeps, trustPolicy, minimumReleaseAge) are unchanged; the release-age exclude list only gets shorter.

Note: #399 bumps @tanstack/ai and @tanstack/ai-openai; whichever merges second needs those two bumps dropped.

Proof at dcfa680

  • pnpm install --frozen-lockfile: clean. examples/node_modules has no @tanstack or @clack link.
  • pnpm vitest run --project examples: 6 files, 10 passed, so every example still runs without the packages.
  • pnpm lint: pass. Knip's test:node "Remove from ignoreBinaries" hint, present on main, is gone; only the existing @typescript/native-preview hint remains.
  • pnpm build then pnpm vitest run: 47 files, 1323 passed, 4 skipped, no type errors.

Gates

Gate Result Head
Repo skills None in repo (Nix-managed, gitignored). Read .claude/rules/* incl. pnpm-usage supply-chain settings. release-please not applied dcfa680
/forge:forge Ran: no findings (config and lockfile deletions only) dcfa680
Security scan (security-reviewer + dependency-reviewer + Aikido) No findings. Lockfile: removals only. Aikido's open lockfile CVEs (undici, fast-uri, @modelcontextprotocol/sdk, qs, path-to-regexp, proxy-addr, body-parser) are at the same versions before and after, so this PR neither adds nor fixes them dcfa680
Codex security pass No findings dcfa680
/security-review Pass dcfa680
/code-review 1 finding (the test:node removal looked unrelated): declined, knip flags the entry as unused on main and lint passes here dcfa680
Dogfood No runtime change; install and examples run above dcfa680
CI Green dcfa680
Review threads 0 unresolved dcfa680

Post-merge validation

Dev-only change; nothing ships in @stackone/ai. The signal is the next CI run on main passing install, lint and the examples tests.

Requested by guillaume@stackone.com in Slack (repo audit thread).

🤖 Generated with Claude Code

- Drop @clack/prompts, @tanstack/ai and @tanstack/ai-openai from the
  examples workspace. No file in examples/, tests/ or mocks/ imports
  them; knip only stayed quiet because they were in ignoreDependencies.
- Drop their catalog entries and minimumReleaseAgeExclude entries.
- Drop the stale test:node entry from knip ignoreBinaries, which knip
  itself reports as an unneeded configuration hint.

The lockfile only loses packages; no remaining package changes version.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Guillaume Lebedel <10488548+glebedel@users.noreply.github.com>
@glebedel
glebedel requested a review from a team as a code owner November 10, 2026 20:28
@glebedel glebedel self-assigned this Nov 10, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 10, 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-10T20:29:21.925727Z dcfa680 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.

@pkg-pr-new

pkg-pr-new Bot commented Nov 10, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/StackOneHQ/stackone-ai-node/@stackone/ai@401

commit: dcfa680

@glebedel
glebedel requested a review from StuBehan November 11, 2026 14:08
@glebedel
glebedel merged commit bd6d52e into main Nov 13, 2026
32 checks passed
@glebedel
glebedel deleted the s2d2/audit-unused-example-deps branch November 13, 2026 02:19
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.

2 participants