(janitor/dependencies) Remove unused @kilocode/worker-utils from services/mcp-gateway - #6463
Open
kilo-code-bot[bot] wants to merge 1 commit into
Open
kilo-code-bot[bot] wants to merge 1 commit into
kilo-code-bot[bot] wants to merge 1 commit into
Conversation
services/mcp-gateway no longer imports @kilocode/worker-utils anywhere in source, tests, or configuration. Its runtime imports are @kilocode/mcp-gateway, @kilocode/db, and @kilocode/encryption.
Contributor
Author
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Executive SummaryVerified that Files Reviewed (2 files)
Reviewed by deepseek-v4.1-flash · Input: 0 · Output: 0 · Cached: 0 Review guidance: REVIEW.md from base branch |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Removes one unused dependency from a single workspace package.
Dependencies removed
services/mcp-gateway(cloudflare-mcp-gateway)@kilocode/worker-utils(workspace:*)Evidence it was unused
@kilocode/worker-utilshas zero references inservices/mcp-gatewayoutside its ownpackage.json. A recursive search of the package (excludingnode_modules) matched only thepackage.jsondeclaration.@kilocode/*workspace packages:@kilocode/mcp-gateway(13 imports)@kilocode/db(6 imports, via@kilocode/db/client,@kilocode/db/schema,@kilocode/db/schema-types)@kilocode/encryption(2 imports)knipindependently flags@kilocode/worker-utilsas the only unused dependency inservices/mcp-gateway/package.json, agreeing with the manual search.Dynamic, configuration, and tooling references checked
src/**forworker-utils,worker_utils,workerUtils, and the@kilocode/worker-utilsmodule specifier).@kilocode/worker-utilsinworker-configuration.d.ts,src/sql.d.ts, or any.d.ts).package.jsonscripts (dev,start,deploy,keys:generate,types,typecheck,lint,test) do not reference it.scripts/generate-keys.mjsdoes not import it.wrangler.jsonc,tsconfig.json,vitest.config.tscontain no reference. Noservices,rules,build, orvarsbinding reference the package.tsgo --noEmittypecheck (which resolves the workspace source exports) passes after removal, confirming no type-level consumer.Package publication and peer-dependency considerations
services/mcp-gatewayis"private": true— not published, so no published package contract or peer/optional dependency surface is affected.@kilocode/worker-utilsis itself a workspace-internal package ("private": true), so it is not a registry contract.@kilocode/*deps (@kilocode/mcp-gateway,@kilocode/db,@kilocode/encryption) declare their own dependencies.Validation performed
pnpm install --no-frozen-lockfile --lockfile-only(full install OOM'd in the constrained sandbox; see uncertainty).@kilocode/worker-utilsimporter entry undercloudflare-mcp-gateway. No unrelated changes.pnpm --filter cloudflare-mcp-gateway run typecheck— passed (exit 0).pnpm --filter cloudflare-mcp-gateway run lint— 0 warnings, 0 errors.pnpm --filter cloudflare-mcp-gateway run test— 18 tests passed across 2 files.Uncertainty
pnpm installwas not able to complete in this environment (JavaScript heap OOM during lockfile resolution with the large monorepo graph). The lockfile was instead updated withpnpm install --no-frozen-lockfile --lockfile-only, which produced a clean, minimal lockfile diff. CI will perform the full install and package checks.