Commit 4003642
@W-20397755@ [Scale products] Prompt cleanup + minor documentation changes (#396)
* added scale mcp init code
* added coverage to be above 95%
* added separate resource for adding fix instructions. added readme for devs
* removed redundant comment
* added SME aligned few shot prompts for antipatterns
* added parser based detection with tests
* added scale mcp init code
* feat: Add SOQL No WHERE/LIMIT clause antipattern detector
- Implemented AST-based detector for SOQL queries lacking WHERE or LIMIT clauses
- Added SOQLAstUtils for robust query extraction and analysis
- Created comprehensive fix instructions with severity levels and code examples
- Registered new detector in scan-apex-antipatterns-tool
* test: Add comprehensive test coverage for SOQL No WHERE/LIMIT antipattern
- Add unit tests for SOQLAstUtils (soql-ast-utils.test.ts)
- Add unit tests for SOQLNoWhereLimitDetector (soql-no-where-limit-detector.test.ts)
- Add unit tests for SOQLNoWhereLimitRecommender (soql-no-where-limit-recommender.test.ts)
- Cover edge cases: multi-line queries, nested subqueries, SOQL in loops, comments, complex WHERE clauses
* feat: add SOQL unused fields detector with AST-based analysis
* Added test cases
* consolidate SOQL utilities into soql-ast-utils.ts
* Minor change
* refactor: remove unused ast-analyzer.ts
- ast-analyzer.ts was not used anywhere in the codebase
- All AST operations are handled directly by @apexdevtools/apex-parser
- Reduces unnecessary code complexity
* style: minor cleanup changes
* added tool descriptions in README.md
* skipped flapping test for windows
* added runtime data enrichment
* added telemetry and removed redundant comments
* fixed tests
* fixed test failures
* added directory path and username params to lock active org to the right context.
* added dynamic api versioning
* removed implicit org assignment
* resolve windows errors
* added test coverage
* minor label changes according to CX feedback
* updates tests
* Adding validation for file extension to only allow apex files
* Minor prompt tweak for a feature enhancement
* Prompt enhancement for better CX
* updated README.md for scale toolset
* change state to GA
* tweaked readme to reflect all scale products
* documentation changes
* nit: documentation update
* Use backticks instead of string interpolation for a cleaner prompt.
* 1. Removed redundant severity legend
2. Removed a stray '\'
* Update Best Practices wording in README
---------
Co-authored-by: shuchita-singh <shuchita.singh@salesforce.com>
Co-authored-by: Willhoit <iowillhoit@users.noreply.github.com>1 parent ed455c3 commit 4003642
File tree
2 files changed
+72
-70
lines changed- packages/mcp-provider-scale-products
- src/tools
2 files changed
+72
-70
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
82 | | - | |
83 | | - | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
87 | 97 | | |
88 | 98 | | |
89 | 99 | | |
| |||
Lines changed: 59 additions & 67 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
145 | 131 | | |
146 | 132 | | |
147 | 133 | | |
| |||
449 | 435 | | |
450 | 436 | | |
451 | 437 | | |
452 | | - | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | | - | |
459 | | - | |
460 | | - | |
461 | | - | |
462 | | - | |
463 | | - | |
464 | | - | |
465 | | - | |
466 | | - | |
467 | | - | |
468 | | - | |
469 | | - | |
470 | | - | |
471 | | - | |
472 | | - | |
473 | | - | |
474 | | - | |
475 | | - | |
476 | | - | |
477 | | - | |
478 | | - | |
479 | | - | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
480 | 442 | | |
481 | 443 | | |
482 | | - | |
483 | | - | |
484 | | - | |
485 | | - | |
486 | | - | |
487 | | - | |
488 | | - | |
489 | | - | |
490 | | - | |
491 | | - | |
492 | | - | |
493 | | - | |
494 | | - | |
495 | | - | |
496 | | - | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
497 | 489 | | |
498 | 490 | | |
499 | 491 | | |
| |||
0 commit comments