Decide whether to pin knip as a devDependency and wire it into CI
Background
PR #555 added knip.jsonc for ad-hoc dead-code analysis (run via npx knip), but intentionally did not wire knip into CI. The reason: this repo SHA-pins all GitHub Actions workflow steps, and adding an unpinned npx knip invocation would be a supply-chain regression.
Tracking comment: https://github.com/ndycode/codex-multi-auth/pull/555#discussion_r3390170469
Decision needed
A maintainer decision is required on whether to add knip as a pinned devDependency (with a full lockfile entry and defined upgrade cadence).
Planned follow-up (once the decision lands)
- Add knip as a devDependency — pin to the current validated version (6.16.1) and update
package-lock.json. - Add an npm script in
package.json:"knip": "knip" - Add a non-concurrent CI step in the relevant workflow(s) — must run before any step that mutates
dist/(i.e., before thebuildstep) to avoid races with dist writes. Usenpm run knip(windows-safe, no bare glob expansion). - Extend
test/ci-workflows.test.ts(seetest/ci-workflows.test.ts:39-50andtest/ci-workflows.test.ts:63-81) to assert theknipscript is invoked in both the linuxvalidatejob and the windowsscripts-windowsexpectations.
References
- PR #555 — adds
knip.jsoncconfig test/ci-workflows.test.ts— existing CI regression guard.github/workflows/— workflow files to update
ndycode/codex-multi-auth#36 - chore(dx): unify local and CI verify pipeline [merged]
ndycode/codex-multi-auth#66 - ci(actions): add dedicated pull request workflow [merged]
ndycode/codex-multi-auth#342 - mirror release harness checks on push CI [merged]
ndycode/codex-multi-auth#458 - Fix npm bin collision with official Codex [merged]
ndycode/codex-multi-auth#528 - chore(deps): pin 🔗 Related PRs
@types/node to the supported runtime floor major [merged]
📝 Issue Planner
Check the box below or use the @coderabbitai plan command to generate an implementation plan and prompts that you can use with your favorite coding assistant.
- [ ] Create Plan
🧪 Issue enrichment is currently in open beta.
To disable automatic issue enrichment, add the following to your .coderabbit.yaml:
issue_enrichment:
auto_enrich:
enabled: false
💬 Have feedback or questions? Drop into our discord!