Skip to content

fix: delete duplicate tool file, fix status code check, move dev deps#38

Open
domdomdomdomdomdomdomdomdom wants to merge 1 commit intodataforseo:masterfrom
domdomdomdomdomdomdomdomdom:claude/fix-duplicate-statuscode-devdeps
Open

fix: delete duplicate tool file, fix status code check, move dev deps#38
domdomdomdomdomdomdomdomdom wants to merge 1 commit intodataforseo:masterfrom
domdomdomdomdomdomdomdomdom:claude/fix-duplicate-statuscode-devdeps

Conversation

@domdomdomdomdomdomdomdomdom
Copy link
Copy Markdown

Summary

  • Delete duplicate file: Removed backlinks-bulk-spam-score.ts which was a duplicate of backlinks-bulk-spam-score.tool.ts with an incorrect tool name (backlinks_bulk_spam_score_tool instead of backlinks_bulk_spam_score). The module already imports from .tool.ts.
  • Fix status code validation: Changed status_code / 100 !== 200 to Math.floor(status_code / 100) !== 200 in base.tool.ts. The original check works by accident for 20000 (20000/100=200) but would fail for codes like 20100 (20100/100=201). All three occurrences fixed.
  • Move dev deps: Moved wrangler and agents from dependencies to devDependencies since they are only needed for development/build (Cloudflare Worker dev/deploy), not at runtime.

Test plan

  • npm run build compiles successfully after all changes
  • Module import for backlinks verified (imports .tool.ts, not the deleted .ts)
  • Manual verification that backlinks bulk spam score tool still works via MCP

🤖 Generated with Claude Code

- Delete backlinks-bulk-spam-score.ts (duplicate of .tool.ts with wrong
  tool name suffix). The module already imports from .tool.ts.
- Fix status_code validation in base.tool.ts: use Math.floor() to handle
  non-round status codes like 20100 correctly (20100/100=201, not 200).
- Move wrangler and agents from dependencies to devDependencies since
  they are only needed for development/build, not at runtime.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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