Repository navigation
ci(lint): guard configured tool path joins - #1611
huong8373tt-beep wants to merge 1 commit into
Conversation
|
No confident findings in the requested diff. The validation record is sufficient: it includes focused rule tests, repository lint, type checking, a build, and a real-CLI Review was read-only; I did not run, build, or install PR code. |
There was a problem hiding this comment.
This was generated by AI during triage.
No blocking findings. teamai/configured-tool-paths is on, lint is clean with it, and the two existing call sites (src/source.ts, src/uninstall.ts) carry an oxlint-disable-next-line with a reason. CI is green.
[P3 nit]
- The rule flags any
.skills,.rulesor.claudemdmember anywhere inside apath.join/path.resolveargument, whatever the object is, so a later unrelated object with one of those field names will need a disable line. Matching only atoolPathobject would missscopes[tool].rules, so keeping it broad is fine; a short note in the rule's doc comment would help the next reader. - The two new files have no newline at end of file.
@jeff-r2026 Your call: a new lint rule, ready from my side.
Thank you for this. #1630 has just merged and moved all of #1590 into |
Summary
Part of #1590. Adds the
teamai/configured-tool-pathsoxlint rule and enables it in the repository lint gate. The rule catches productionpath.join/path.resolvecalls that consume configuredskills,rules, orclaudemdfields outsidesrc/locate.ts, so moved homes, scope rules, and read gates stay centralized.It also records the two existing comparison-only call sites as explicit exceptions:
src/source.ts;src/uninstall.ts.The rule ignores test fixtures, literal directory names, unrelated configured fields, and
locate.tsitself.Validation
npx vitest run oxlint-plugin-teamai/rules/configured-tool-paths.test.ts— 6 passednpm run typecheck— passednpm run lint— 0 warnings, 0 errors across 1,454 filesnpm run build— passednode dist/index.js --version—0.22.0git diff --check— passedSlai Agent Runtime performed the investigation, implementation, and test execution. The account owner authorized this contribution and is responsible for its content.