Remove unused files#1591
Conversation
🦋 Changeset detectedLatest commit: d3df486 The changes in this PR will be included in the next version bump. This PR includes changesets to release 10 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Claude finished @dimaMachina's task —— View job Code Review: Remove unused files
Todo List
Review SummaryThis PR removes several unused files and adds tooling to detect unused code in the future. The changes are generally well-considered, but there are several important concerns that need attention. 🚨 Critical Issues1. Breaking Change to agents-cli vitest configuration
import vitestCIConfig from './vitest.config.ci';Impact: This will cause the agents-cli package to fail to run tests, breaking CI/CD pipelines. Recommendation: Update the vitest config to handle the missing CI config or provide an alternative solution. 2. Changeset Version Strategy MismatchThe changeset in "@inkeep/agents-sdk": minor
"@inkeep/agents-api": minor
"@inkeep/agents-cli": minorIssue: According to the repo's CLAUDE.md semver guidelines:
Recommendation: File cleanup should be
|
| File | Purpose | Removal Justification | Risk |
|---|---|---|---|
.opencode/plugin/notification.js |
OpenCode IDE notifications | ✅ IDE-specific, not core functionality | Low |
agents-api/src/__tests__/manage/utils/cleanup.ts |
Test utilities | ✅ Likely unused test helper | Low |
agents-api/workflow-bootstrap.ts |
Workflow setup | Medium | |
agents-cli/src/commands/pull-v3/__tests__/test-introspect-cli.ts |
Manual CLI test | ✅ Manual test script, not automated test | Low |
vitest.config.ci.ts |
CI-specific test config | 🚨 Still referenced in agents-cli | High |
agents-docs/src/lib/analytics/posthog-*.ts |
PostHog analytics | ✅ No references found in codebase | Low |
packages/agents-sdk/example-project.ts |
SDK examples | ✅ Example code, likely moved to cookbook | Low |
scripts/generate-badge.mjs |
Badge generation | Medium |
Recommended Actions
- IMMEDIATE: Fix the breaking vitest import in
agents-cli/vitest.config.ts - IMMEDIATE: Update or remove the
coverage:badgesscript reference - CONSIDER: Downgrade changeset from
minortopatchfor most packages (unless APIs are affected) - OPTIONAL: Validate the knip configuration catches genuinely unused files without being overly broad
Test Strategy Validation
The PR should be tested by:
- Running
pnpm buildacross all packages to catch import issues - Running
pnpm testto ensure test configurations work - Running
pnpm coverage:badgesto verify script references - Running the new knip configuration to ensure it works as expected
|
@claude verify pr from scratch |
|
Claude finished @dimaMachina's task in 4m 10s —— View job PR Verification CompleteTodo List
Verification Results🚨 Critical Issues Found1. Broken Import in agents-cli/vitest.config.ts
2. Missing Script File Referenced in package.json
|
|
Claude finished @dimaMachina's task in 4m 49s —— View job PR Review Summary1 Key Finding | Risk: Low
🟠🔶
|
| Location | Issue | Reason Excluded |
|---|---|---|
knip.config.ts |
Large ignore list (30+ entries) may hide legitimate issues | Appropriate for a monorepo with templates, configs, and tooling that knip can't understand |
agents-cli/README.md |
Removed dependency mentions (dotenv, ora, inquirer) but README still has other dependencies listed | README accurately reflects current dependencies after removal |
Discarded as invalid or not applicable
| Location | Issue | Reason Excluded |
|---|---|---|
agents-cli/vitest.config.ts:2 |
Previous reviews flagged "broken import" | Invalid - Import resolves to local agents-cli/vitest.config.ci.ts which exists |
package.json |
Previous reviews flagged missing script reference | Invalid - generate-badges.mjs (plural) exists; generate-badge.mjs (singular) was correctly deleted |
agents-cli/src/__tests__/utils/profile-config.test.ts |
Test file might be affected by deleted profile-config.ts |
Invalid - Test imports from ProfileManager in utils/profiles, not the deleted file |
|
@claude add a changeset based on changes in this PR |
|
Claude finished @dimaMachina's task in 1m 31s —— View job ✅ Changeset added for PRTodo List
SummaryI've added a new changeset file ( Key improvements over the existing changeset:
The changeset has been committed and pushed to the PR branch. |
Co-authored-by: Dimitri POSTOLOV <[email protected]>
No description provided.