fix(mcp): sync score-preview isCodeFile mirrors with isSourcePath (.kts)#3921
fix(mcp): sync score-preview isCodeFile mirrors with isSourcePath (.kts)#3921RealDiligent wants to merge 1 commit into
Conversation
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Add .kts to the MCP local-branch and score-preview classifiers so Gradle Kotlin-script source counts as code in local score previews, matching merged JSONbored#3889 server isSourcePath behavior. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Tip 🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩 ✅ Gittensory review result - approve/merge recommendedReview updated: 2026-07-07 06:45:39 UTC
✅ Suggested Action - Approve/Merge
Review summary Nits — 4 non-blocking
Review context
Contributor next steps
Signal definitions
🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3921 +/- ##
=======================================
Coverage 93.58% 93.58%
=======================================
Files 358 358
Lines 34342 34342
Branches 12570 12570
=======================================
Hits 32138 32138
Misses 1580 1580
Partials 624 624 🚀 New features to boost your workflow:
|
|
Gittensory is closing this pull request on the maintainer's behalf (Linked issue #2235 is assigned to the maintainer (@JSONbored) — that work is reserved for the maintainer, so this PR cannot be auto-accepted.). This is an automated maintenance action — to pursue this change, please open a new pull request with the issues resolved. Closed PRs may be analyzed later to improve review accuracy, but they are not automatically reopened or re-reviewed. |
Summary
Follow-up to merged #3889: the server now recognizes
.ktsGradle Kotlin-script source viaisSourcePath, but the standalone MCP mirrors still omitted.ktsfromisCodeFilewhileisTestPathalready knewSomethingTests.kts. That let local score previews misclassify Kotlin-script-only diffs as non-code.This PR adds
.ktsto:packages/gittensory-mcp/scripts/gittensor-score-preview.mjspackages/gittensory-mcp/scripts/gittensor-score-preview.py(metadata_fallback)packages/gittensory-mcp/lib/local-branch.jsAlso adds a structural guard that
isSourcePathandEXTENDED_SOURCE_EXTENSIONextension sets stay disjoint, plus regression tests in the MCP/score-preview suites.Closes #2235
Notes on scope
#2235 tracks the hosted
gittensory_check_test_evidenceMCP tool. This PR only lands the classifier parity prerequisite so local MCP previews agree with the server gate on.ktspaths before that tool is built. If merge auto-closes #2235 with deliverables still open, please reopen it for the remaining tool/schema work.Validation
npm test -- test/unit/path-matchers.test.ts test/unit/local-branch.test.ts test/unit/score-preview-script.test.ts(120 tests passed locally)validate-code+validategreen on this PRSafety