code-auditor-mcp 2.6.2 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +23 -196
- package/dist/analyzers/analyzerUtils.d.ts +13 -11
- package/dist/analyzers/analyzerUtils.d.ts.map +1 -1
- package/dist/analyzers/analyzerUtils.js +22 -56
- package/dist/analyzers/analyzerUtils.js.map +1 -1
- package/dist/analyzers/cross-language/APIContractAnalyzer.d.ts.map +1 -1
- package/dist/analyzers/cross-language/CrossLanguageSOLIDAnalyzer.d.ts.map +1 -1
- package/dist/analyzers/cross-language/CrossLanguageSOLIDAnalyzer.js.map +1 -1
- package/dist/analyzers/cross-language/DependencyGraphBuilder.d.ts.map +1 -1
- package/dist/analyzers/cross-language/DependencyGraphBuilder.js.map +1 -1
- package/dist/analyzers/cross-language/SchemaValidator.d.ts.map +1 -1
- package/dist/analyzers/cross-language/SchemaValidator.js.map +1 -1
- package/dist/analyzers/dataAccessAnalyzer.d.ts.map +1 -1
- package/dist/analyzers/dataAccessAnalyzer.js +50 -24
- package/dist/analyzers/dataAccessAnalyzer.js.map +1 -1
- package/dist/analyzers/documentationAnalyzer.d.ts +4 -1
- package/dist/analyzers/documentationAnalyzer.d.ts.map +1 -1
- package/dist/analyzers/documentationAnalyzer.js +210 -111
- package/dist/analyzers/documentationAnalyzer.js.map +1 -1
- package/dist/analyzers/dryAnalyzer.d.ts.map +1 -1
- package/dist/analyzers/dryAnalyzer.js +190 -58
- package/dist/analyzers/dryAnalyzer.js.map +1 -1
- package/dist/analyzers/invariantsAnalyzer.d.ts +20 -0
- package/dist/analyzers/invariantsAnalyzer.d.ts.map +1 -0
- package/dist/analyzers/invariantsAnalyzer.js +148 -0
- package/dist/analyzers/invariantsAnalyzer.js.map +1 -0
- package/dist/analyzers/reactAnalyzer.d.ts.map +1 -1
- package/dist/analyzers/reactAnalyzer.js +2 -2
- package/dist/analyzers/reactAnalyzer.js.map +1 -1
- package/dist/analyzers/schemaAnalyzer.d.ts +2 -0
- package/dist/analyzers/schemaAnalyzer.d.ts.map +1 -1
- package/dist/analyzers/schemaAnalyzer.js +306 -147
- package/dist/analyzers/schemaAnalyzer.js.map +1 -1
- package/dist/analyzers/solidAnalyzer.d.ts.map +1 -1
- package/dist/analyzers/solidAnalyzer.js +145 -119
- package/dist/analyzers/solidAnalyzer.js.map +1 -1
- package/dist/analyzers/universal/UniversalDRYAnalyzer.d.ts +3 -1
- package/dist/analyzers/universal/UniversalDRYAnalyzer.d.ts.map +1 -1
- package/dist/analyzers/universal/UniversalDRYAnalyzer.js +41 -1
- package/dist/analyzers/universal/UniversalDRYAnalyzer.js.map +1 -1
- package/dist/analyzers/universal/UniversalDataAccessAnalyzer.d.ts.map +1 -1
- package/dist/analyzers/universal/UniversalDataAccessAnalyzer.js +8 -8
- package/dist/analyzers/universal/UniversalDataAccessAnalyzer.js.map +1 -1
- package/dist/analyzers/universal/UniversalDocumentationAnalyzer.d.ts.map +1 -1
- package/dist/analyzers/universal/UniversalDocumentationAnalyzer.js +6 -6
- package/dist/analyzers/universal/UniversalDocumentationAnalyzer.js.map +1 -1
- package/dist/analyzers/universal/UniversalSOLIDAnalyzer.d.ts.map +1 -1
- package/dist/analyzers/universal/UniversalSchemaAnalyzer.d.ts.map +1 -1
- package/dist/analyzers/universal/UniversalSchemaAnalyzer.js +1 -1
- package/dist/analyzers/universal/UniversalSchemaAnalyzer.js.map +1 -1
- package/dist/api/index.js +1 -0
- package/dist/api/index.js.map +1 -1
- package/dist/auditRunner.d.ts.map +1 -1
- package/dist/auditRunner.js +367 -24
- package/dist/auditRunner.js.map +1 -1
- package/dist/cli.d.ts +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +740 -18
- package/dist/cli.js.map +1 -1
- package/dist/codeIndexDB-enhanced.d.ts +35 -13
- package/dist/codeIndexDB-enhanced.d.ts.map +1 -1
- package/dist/codeIndexDB-enhanced.js +311 -214
- package/dist/codeIndexDB-enhanced.js.map +1 -1
- package/dist/{codeIndexDb.d.ts → codeIndexDB.d.ts} +51 -224
- package/dist/codeIndexDB.d.ts.map +1 -0
- package/dist/codeIndexDB.js +2042 -0
- package/dist/codeIndexDB.js.map +1 -0
- package/dist/codeIndexService.d.ts.map +1 -1
- package/dist/codeIndexService.js.map +1 -1
- package/dist/componentScanner.d.ts +14 -8
- package/dist/componentScanner.d.ts.map +1 -1
- package/dist/componentScanner.js +136 -113
- package/dist/componentScanner.js.map +1 -1
- package/dist/config/configLoader.d.ts.map +1 -1
- package/dist/config/configLoader.js +10 -7
- package/dist/config/configLoader.js.map +1 -1
- package/dist/config/defaults.d.ts.map +1 -1
- package/dist/constants.js.map +1 -1
- package/dist/fingerprint.d.ts +15 -0
- package/dist/fingerprint.d.ts.map +1 -0
- package/dist/fingerprint.js +32 -0
- package/dist/fingerprint.js.map +1 -0
- package/dist/functionScanner.d.ts +5 -0
- package/dist/functionScanner.d.ts.map +1 -1
- package/dist/functionScanner.js +417 -341
- package/dist/functionScanner.js.map +1 -1
- package/dist/generators/AWSQConfigGenerator.d.ts.map +1 -1
- package/dist/generators/AiderConfigGenerator.d.ts.map +1 -1
- package/dist/generators/BaseConfigGenerator.d.ts.map +1 -1
- package/dist/generators/BaseConfigGenerator.js.map +1 -1
- package/dist/generators/ClaudeConfigGenerator.d.ts.map +1 -1
- package/dist/generators/ClineConfigGenerator.d.ts.map +1 -1
- package/dist/generators/CodeiumConfigGenerator.d.ts.map +1 -1
- package/dist/generators/ConfigGeneratorFactory.d.ts.map +1 -1
- package/dist/generators/ConfigGeneratorFactory.js.map +1 -1
- package/dist/generators/ContinueConfigGenerator.d.ts.map +1 -1
- package/dist/generators/CopilotConfigGenerator.d.ts.map +1 -1
- package/dist/generators/CursorConfigGenerator.d.ts.map +1 -1
- package/dist/generators/JetBrainsConfigGenerator.d.ts.map +1 -1
- package/dist/generators/VSCodeConfigGenerator.d.ts.map +1 -1
- package/dist/grammars/tree-sitter-go.wasm +0 -0
- package/dist/grammars/tree-sitter-javascript.wasm +0 -0
- package/dist/grammars/tree-sitter-tsx.wasm +0 -0
- package/dist/grammars/tree-sitter-typescript.wasm +0 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/invariants/index.d.ts +9 -0
- package/dist/invariants/index.d.ts.map +1 -0
- package/dist/invariants/index.js +4 -0
- package/dist/invariants/index.js.map +1 -0
- package/dist/invariants/invariant-rules.schema.json +137 -0
- package/dist/invariants/ruleEngine.d.ts +32 -0
- package/dist/invariants/ruleEngine.d.ts.map +1 -0
- package/dist/invariants/ruleEngine.js +536 -0
- package/dist/invariants/ruleEngine.js.map +1 -0
- package/dist/invariants/ruleValidator.d.ts +17 -0
- package/dist/invariants/ruleValidator.d.ts.map +1 -0
- package/dist/invariants/ruleValidator.js +264 -0
- package/dist/invariants/ruleValidator.js.map +1 -0
- package/dist/invariants/types.d.ts +78 -0
- package/dist/invariants/types.d.ts.map +1 -0
- package/dist/invariants/types.js +5 -0
- package/dist/invariants/types.js.map +1 -0
- package/dist/languages/LanguageOrchestrator.d.ts.map +1 -1
- package/dist/languages/LanguageOrchestrator.js.map +1 -1
- package/dist/languages/LanguageRegistry.d.ts.map +1 -1
- package/dist/languages/RuntimeManager.d.ts.map +1 -1
- package/dist/languages/RuntimeManager.js +1 -1
- package/dist/languages/RuntimeManager.js.map +1 -1
- package/dist/languages/UniversalAnalyzer.d.ts.map +1 -1
- package/dist/languages/UniversalAnalyzer.js.map +1 -1
- package/dist/languages/adapterBridge.d.ts +102 -0
- package/dist/languages/adapterBridge.d.ts.map +1 -0
- package/dist/languages/adapterBridge.js +382 -0
- package/dist/languages/adapterBridge.js.map +1 -0
- package/dist/languages/go/GoAdapter.d.ts +37 -26
- package/dist/languages/go/GoAdapter.d.ts.map +1 -1
- package/dist/languages/go/GoAdapter.js +560 -281
- package/dist/languages/go/GoAdapter.js.map +1 -1
- package/dist/languages/index.d.ts +5 -2
- package/dist/languages/index.d.ts.map +1 -1
- package/dist/languages/index.js +11 -9
- package/dist/languages/index.js.map +1 -1
- package/dist/languages/tree-sitter/converter.d.ts +43 -0
- package/dist/languages/tree-sitter/converter.d.ts.map +1 -0
- package/dist/languages/tree-sitter/converter.js +150 -0
- package/dist/languages/tree-sitter/converter.js.map +1 -0
- package/dist/languages/tree-sitter/parser.d.ts +36 -0
- package/dist/languages/tree-sitter/parser.d.ts.map +1 -0
- package/dist/languages/tree-sitter/parser.js +114 -0
- package/dist/languages/tree-sitter/parser.js.map +1 -0
- package/dist/languages/types.d.ts +11 -0
- package/dist/languages/types.d.ts.map +1 -1
- package/dist/languages/typescript/TreeSitterTypeScriptAdapter.d.ts +92 -0
- package/dist/languages/typescript/TreeSitterTypeScriptAdapter.d.ts.map +1 -0
- package/dist/languages/typescript/TreeSitterTypeScriptAdapter.js +951 -0
- package/dist/languages/typescript/TreeSitterTypeScriptAdapter.js.map +1 -0
- package/dist/mcp-tools/projectTasks.d.ts +58 -22
- package/dist/mcp-tools/projectTasks.d.ts.map +1 -1
- package/dist/mcp-tools/projectTasks.js +172 -10
- package/dist/mcp-tools/projectTasks.js.map +1 -1
- package/dist/mcp-tools/whitelistTools.d.ts +21 -21
- package/dist/mcp-tools/whitelistTools.d.ts.map +1 -1
- package/dist/mcp-tools/workflowGuide.d.ts.map +1 -1
- package/dist/mcp-tools/workflowGuide.js +130 -126
- package/dist/mcp-tools/workflowGuide.js.map +1 -1
- package/dist/mcp-tools-shared.d.ts.map +1 -1
- package/dist/mcp-tools-shared.js.map +1 -1
- package/dist/mcp-ui-simple.js +1 -1
- package/dist/mcp-ui-simple.js.map +1 -1
- package/dist/mcp.d.ts +1 -1
- package/dist/mcp.d.ts.map +1 -1
- package/dist/mcp.js +1376 -1181
- package/dist/mcp.js.map +1 -1
- package/dist/mcpAuditJobs.d.ts +4 -0
- package/dist/mcpAuditJobs.d.ts.map +1 -1
- package/dist/mcpAuditJobs.js +49 -2
- package/dist/mcpAuditJobs.js.map +1 -1
- package/dist/mcpToolErrors.d.ts.map +1 -1
- package/dist/mcpToolErrors.js.map +1 -1
- package/dist/native/ast-grep-napi.darwin-arm64.node +0 -0
- package/dist/native/ast-grep-napi.darwin-x64.node +0 -0
- package/dist/native/ast-grep-napi.linux-arm64-gnu.node +0 -0
- package/dist/native/ast-grep-napi.linux-arm64-musl.node +0 -0
- package/dist/native/ast-grep-napi.linux-x64-gnu.node +0 -0
- package/dist/native/ast-grep-napi.linux-x64-musl.node +0 -0
- package/dist/native/ast-grep-napi.win32-x64-msvc.node +0 -0
- package/dist/native-bootstrap.d.ts +15 -0
- package/dist/native-bootstrap.d.ts.map +1 -0
- package/dist/native-bootstrap.js +75 -0
- package/dist/native-bootstrap.js.map +1 -0
- package/dist/reporting/csvReportGenerator.d.ts.map +1 -1
- package/dist/reporting/htmlReportGenerator.d.ts.map +1 -1
- package/dist/reporting/jsonReportGenerator.d.ts.map +1 -1
- package/dist/reporting/reportGenerator.d.ts.map +1 -1
- package/dist/reporting/reportGenerator.js +4 -0
- package/dist/reporting/reportGenerator.js.map +1 -1
- package/dist/reporting/sarifReportGenerator.d.ts +39 -0
- package/dist/reporting/sarifReportGenerator.d.ts.map +1 -0
- package/dist/reporting/sarifReportGenerator.js +229 -0
- package/dist/reporting/sarifReportGenerator.js.map +1 -0
- package/dist/search/QueryParser.d.ts +41 -0
- package/dist/search/QueryParser.d.ts.map +1 -1
- package/dist/search/QueryParser.js +200 -19
- package/dist/search/QueryParser.js.map +1 -1
- package/dist/services/CodeMapGenerator.d.ts.map +1 -1
- package/dist/services/CodeMapGenerator.js +4 -4
- package/dist/services/CodeMapGenerator.js.map +1 -1
- package/dist/services/ProjectTaskRepository.d.ts +15 -2
- package/dist/services/ProjectTaskRepository.d.ts.map +1 -1
- package/dist/services/ProjectTaskRepository.js +16 -1
- package/dist/services/ProjectTaskRepository.js.map +1 -1
- package/dist/services/SchemaParser.d.ts.map +1 -1
- package/dist/services/SchemaParser.js +5 -8
- package/dist/services/SchemaParser.js.map +1 -1
- package/dist/services/auditJobService.d.ts +1 -1
- package/dist/services/projectTaskHelpers.js.map +1 -1
- package/dist/services/whitelistService.d.ts.map +1 -1
- package/dist/services/whitelistService.js +1 -1
- package/dist/services/whitelistService.js.map +1 -1
- package/dist/tool-registry.d.ts +79 -0
- package/dist/tool-registry.d.ts.map +1 -0
- package/dist/tool-registry.js +139 -0
- package/dist/tool-registry.js.map +1 -0
- package/dist/types/projectTask.d.ts +4 -0
- package/dist/types/projectTask.d.ts.map +1 -1
- package/dist/types.d.ts +26 -2
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/dist/ui/InteractivePrompts.d.ts.map +1 -1
- package/dist/ui/InteractivePrompts.js.map +1 -1
- package/dist/utils/astParser.d.ts +31 -38
- package/dist/utils/astParser.d.ts.map +1 -1
- package/dist/utils/astParser.js +138 -196
- package/dist/utils/astParser.js.map +1 -1
- package/dist/utils/astUtils.d.ts +87 -58
- package/dist/utils/astUtils.d.ts.map +1 -1
- package/dist/utils/astUtils.js +852 -581
- package/dist/utils/astUtils.js.map +1 -1
- package/dist/utils/componentPatterns.js.map +1 -1
- package/dist/utils/componentResponsibility.d.ts +13 -9
- package/dist/utils/componentResponsibility.d.ts.map +1 -1
- package/dist/utils/componentResponsibility.js +236 -206
- package/dist/utils/componentResponsibility.js.map +1 -1
- package/dist/utils/dependencyExtractor.d.ts +11 -6
- package/dist/utils/dependencyExtractor.d.ts.map +1 -1
- package/dist/utils/dependencyExtractor.js +200 -119
- package/dist/utils/dependencyExtractor.js.map +1 -1
- package/dist/utils/fileDiscovery.d.ts +1 -1
- package/dist/utils/fileDiscovery.d.ts.map +1 -1
- package/dist/utils/fileDiscovery.js +15 -6
- package/dist/utils/fileDiscovery.js.map +1 -1
- package/dist/utils/jsDocParser.d.ts +27 -30
- package/dist/utils/jsDocParser.d.ts.map +1 -1
- package/dist/utils/jsDocParser.js +271 -207
- package/dist/utils/jsDocParser.js.map +1 -1
- package/dist/utils/reactDetection.d.ts +27 -12
- package/dist/utils/reactDetection.d.ts.map +1 -1
- package/dist/utils/reactDetection.js +331 -219
- package/dist/utils/reactDetection.js.map +1 -1
- package/dist/workers/auditWorker.js +17 -3
- package/dist/workers/auditWorker.js.map +1 -1
- package/package.json +54 -51
- package/dist/adapters/GoAdapter.d.ts +0 -53
- package/dist/adapters/GoAdapter.d.ts.map +0 -1
- package/dist/adapters/GoAdapter.js +0 -611
- package/dist/adapters/GoAdapter.js.map +0 -1
- package/dist/adapters/GoConfig.d.ts +0 -35
- package/dist/adapters/GoConfig.d.ts.map +0 -1
- package/dist/adapters/GoConfig.js +0 -155
- package/dist/adapters/GoConfig.js.map +0 -1
- package/dist/adapters/LanguageAdapter.d.ts +0 -135
- package/dist/adapters/LanguageAdapter.d.ts.map +0 -1
- package/dist/adapters/LanguageAdapter.js +0 -47
- package/dist/adapters/LanguageAdapter.js.map +0 -1
- package/dist/adapters/TypeScriptAdapter.d.ts +0 -43
- package/dist/adapters/TypeScriptAdapter.d.ts.map +0 -1
- package/dist/adapters/TypeScriptAdapter.js +0 -386
- package/dist/adapters/TypeScriptAdapter.js.map +0 -1
- package/dist/adapters/UniversalAnalyzer.d.ts +0 -42
- package/dist/adapters/UniversalAnalyzer.d.ts.map +0 -1
- package/dist/adapters/UniversalAnalyzer.js +0 -103
- package/dist/adapters/UniversalAnalyzer.js.map +0 -1
- package/dist/adapters/UniversalSOLIDAnalyzer.d.ts +0 -48
- package/dist/adapters/UniversalSOLIDAnalyzer.d.ts.map +0 -1
- package/dist/adapters/UniversalSOLIDAnalyzer.js +0 -178
- package/dist/adapters/UniversalSOLIDAnalyzer.js.map +0 -1
- package/dist/adapters/solidAnalyzerCompat.d.ts +0 -21
- package/dist/adapters/solidAnalyzerCompat.d.ts.map +0 -1
- package/dist/adapters/solidAnalyzerCompat.js +0 -78
- package/dist/adapters/solidAnalyzerCompat.js.map +0 -1
- package/dist/analyzers/dataAccessAnalyzerCompat.d.ts +0 -20
- package/dist/analyzers/dataAccessAnalyzerCompat.d.ts.map +0 -1
- package/dist/analyzers/dataAccessAnalyzerCompat.js +0 -59
- package/dist/analyzers/dataAccessAnalyzerCompat.js.map +0 -1
- package/dist/analyzers/documentationAnalyzerCompat.d.ts +0 -20
- package/dist/analyzers/documentationAnalyzerCompat.d.ts.map +0 -1
- package/dist/analyzers/documentationAnalyzerCompat.js +0 -52
- package/dist/analyzers/documentationAnalyzerCompat.js.map +0 -1
- package/dist/analyzers/dryAnalyzerCompat.d.ts +0 -20
- package/dist/analyzers/dryAnalyzerCompat.d.ts.map +0 -1
- package/dist/analyzers/dryAnalyzerCompat.js +0 -44
- package/dist/analyzers/dryAnalyzerCompat.js.map +0 -1
- package/dist/analyzers/schemaAnalyzerCompat.d.ts +0 -20
- package/dist/analyzers/schemaAnalyzerCompat.d.ts.map +0 -1
- package/dist/analyzers/schemaAnalyzerCompat.js +0 -69
- package/dist/analyzers/schemaAnalyzerCompat.js.map +0 -1
- package/dist/analyzers/solidAnalyzerCompat.d.ts +0 -20
- package/dist/analyzers/solidAnalyzerCompat.d.ts.map +0 -1
- package/dist/analyzers/solidAnalyzerCompat.js +0 -78
- package/dist/analyzers/solidAnalyzerCompat.js.map +0 -1
- package/dist/codeIndexDb.d.ts.map +0 -1
- package/dist/codeIndexDb.js +0 -2102
- package/dist/codeIndexDb.js.map +0 -1
- package/dist/languages/typescript/TypeScriptAdapter.d.ts +0 -108
- package/dist/languages/typescript/TypeScriptAdapter.d.ts.map +0 -1
- package/dist/languages/typescript/TypeScriptAdapter.js +0 -567
- package/dist/languages/typescript/TypeScriptAdapter.js.map +0 -1
- package/dist/languages/typescript/test-extraction.d.ts +0 -2
- package/dist/languages/typescript/test-extraction.d.ts.map +0 -1
- package/dist/languages/typescript/test-extraction.js +0 -36
- package/dist/languages/typescript/test-extraction.js.map +0 -1
- package/dist/mcp-hybrid.d.ts +0 -10
- package/dist/mcp-hybrid.d.ts.map +0 -1
- package/dist/mcp-hybrid.js +0 -41
- package/dist/mcp-hybrid.js.map +0 -1
- package/dist/mcp-index.d.ts +0 -13
- package/dist/mcp-index.d.ts.map +0 -1
- package/dist/mcp-index.js +0 -136
- package/dist/mcp-index.js.map +0 -1
- package/dist/mcp-standalone.d.ts +0 -3
- package/dist/mcp-standalone.d.ts.map +0 -1
- package/dist/mcp-standalone.js +0 -1324
- package/dist/mcp-standalone.js.map +0 -1
- package/dist/mcp-ui-server.d.ts +0 -27
- package/dist/mcp-ui-server.d.ts.map +0 -1
- package/dist/mcp-ui-server.js +0 -484
- package/dist/mcp-ui-server.js.map +0 -1
- package/dist/test-multi-strategy-search.d.ts +0 -3
- package/dist/test-multi-strategy-search.d.ts.map +0 -1
- package/dist/test-multi-strategy-search.js +0 -170
- package/dist/test-multi-strategy-search.js.map +0 -1
|
@@ -9,34 +9,34 @@ export const WORKFLOW_SCENARIOS = {
|
|
|
9
9
|
steps: [
|
|
10
10
|
{
|
|
11
11
|
order: 1,
|
|
12
|
-
tool: '
|
|
13
|
-
parameters: { path: '.', analyzers: ['solid', 'dry', 'documentation'], indexFunctions: true, generateCodeMap: true },
|
|
12
|
+
tool: 'audit',
|
|
13
|
+
parameters: { action: 'start', path: '.', analyzers: ['solid', 'dry', 'documentation'], indexFunctions: true, generateCodeMap: true },
|
|
14
14
|
description: 'Start comprehensive background audit and capture jobId'
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
17
|
order: 2,
|
|
18
|
-
tool: '
|
|
19
|
-
parameters: { jobId: 'job_xxx_xxx' },
|
|
18
|
+
tool: 'audit',
|
|
19
|
+
parameters: { action: 'status', jobId: 'job_xxx_xxx' },
|
|
20
20
|
description: 'Poll until completed and capture resultId'
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
23
|
order: 3,
|
|
24
|
-
tool: '
|
|
25
|
-
parameters: { tools: ['cursor', 'claude'] },
|
|
24
|
+
tool: 'config',
|
|
25
|
+
parameters: { action: 'generate', tools: ['cursor', 'claude'] },
|
|
26
26
|
description: 'Set up AI tool configurations for the project',
|
|
27
27
|
condition: 'If you plan to use AI assistants with this project'
|
|
28
28
|
},
|
|
29
29
|
{
|
|
30
30
|
order: 4,
|
|
31
|
-
tool: '
|
|
32
|
-
parameters: { query: 'TODO FIXME' },
|
|
31
|
+
tool: 'search',
|
|
32
|
+
parameters: { action: 'query', query: 'TODO FIXME' },
|
|
33
33
|
description: 'Find any outstanding tasks or issues marked in code'
|
|
34
34
|
}
|
|
35
35
|
],
|
|
36
36
|
tips: [
|
|
37
37
|
'Code maps are generated by default with paginated sections to avoid large responses',
|
|
38
38
|
'The code map shows directory structure, function counts, and documentation quality',
|
|
39
|
-
'Use
|
|
39
|
+
'Use code_map.get with the returned mapId to view specific sections (overview, files, dependencies, documentation)',
|
|
40
40
|
'Documentation analysis is included by default to check JSDoc coverage',
|
|
41
41
|
'Functions are automatically indexed for future searches',
|
|
42
42
|
'Search operators become available after indexing'
|
|
@@ -48,32 +48,32 @@ export const WORKFLOW_SCENARIOS = {
|
|
|
48
48
|
steps: [
|
|
49
49
|
{
|
|
50
50
|
order: 1,
|
|
51
|
-
tool: '
|
|
52
|
-
parameters: { path: './src/components', analyzers: ['react', 'documentation'], indexFunctions: true },
|
|
51
|
+
tool: 'audit',
|
|
52
|
+
parameters: { action: 'start', path: './src/components', analyzers: ['react', 'documentation'], indexFunctions: true },
|
|
53
53
|
description: 'Start background audit for components directory'
|
|
54
54
|
},
|
|
55
55
|
{
|
|
56
56
|
order: 2,
|
|
57
|
-
tool: '
|
|
58
|
-
parameters: { jobId: 'job_xxx_xxx' },
|
|
57
|
+
tool: 'audit',
|
|
58
|
+
parameters: { action: 'status', jobId: 'job_xxx_xxx' },
|
|
59
59
|
description: 'Poll to completion before reading result pages'
|
|
60
60
|
},
|
|
61
61
|
{
|
|
62
62
|
order: 3,
|
|
63
|
-
tool: '
|
|
64
|
-
parameters: { query: 'entity:component' },
|
|
63
|
+
tool: 'search',
|
|
64
|
+
parameters: { action: 'query', query: 'entity:component' },
|
|
65
65
|
description: 'List all React components in the codebase'
|
|
66
66
|
},
|
|
67
67
|
{
|
|
68
68
|
order: 4,
|
|
69
|
-
tool: '
|
|
70
|
-
parameters: { query: 'component:functional hook:useState' },
|
|
69
|
+
tool: 'search',
|
|
70
|
+
parameters: { action: 'query', query: 'component:functional hook:useState' },
|
|
71
71
|
description: 'Find functional components using state'
|
|
72
72
|
},
|
|
73
73
|
{
|
|
74
74
|
order: 5,
|
|
75
|
-
tool: '
|
|
76
|
-
parameters: { query: 'prop:onClick' },
|
|
75
|
+
tool: 'search',
|
|
76
|
+
parameters: { action: 'query', query: 'prop:onClick' },
|
|
77
77
|
description: 'Find components accepting onClick handlers'
|
|
78
78
|
}
|
|
79
79
|
],
|
|
@@ -89,40 +89,40 @@ export const WORKFLOW_SCENARIOS = {
|
|
|
89
89
|
steps: [
|
|
90
90
|
{
|
|
91
91
|
order: 1,
|
|
92
|
-
tool: '
|
|
93
|
-
parameters: { path: './src', threshold: 80, generateCodeMap: true },
|
|
92
|
+
tool: 'audit',
|
|
93
|
+
parameters: { action: 'health', path: './src', threshold: 80, generateCodeMap: true },
|
|
94
94
|
description: 'Quick health check with code map to understand structure and identify issues'
|
|
95
95
|
},
|
|
96
96
|
{
|
|
97
97
|
order: 2,
|
|
98
|
-
tool: '
|
|
99
|
-
parameters: { path: './src', analyzers: ['solid', 'dry', 'documentation'], minSeverity: 'warning' },
|
|
98
|
+
tool: 'audit',
|
|
99
|
+
parameters: { action: 'start', path: './src', analyzers: ['solid', 'dry', 'documentation'], minSeverity: 'warning' },
|
|
100
100
|
description: 'Start detailed background audit if health check shows issues',
|
|
101
101
|
condition: 'If health score is below threshold'
|
|
102
102
|
},
|
|
103
103
|
{
|
|
104
104
|
order: 3,
|
|
105
|
-
tool: '
|
|
106
|
-
parameters: { jobId: 'job_xxx_xxx' },
|
|
105
|
+
tool: 'audit',
|
|
106
|
+
parameters: { action: 'status', jobId: 'job_xxx_xxx' },
|
|
107
107
|
description: 'Poll until completed and capture resultId',
|
|
108
108
|
condition: 'After starting detailed audit'
|
|
109
109
|
},
|
|
110
110
|
{
|
|
111
111
|
order: 4,
|
|
112
|
-
tool: '
|
|
113
|
-
parameters: { query: 'complexity:8-10' },
|
|
112
|
+
tool: 'search',
|
|
113
|
+
parameters: { action: 'query', query: 'complexity:8-10' },
|
|
114
114
|
description: 'Find high complexity functions that may need refactoring'
|
|
115
115
|
},
|
|
116
116
|
{
|
|
117
117
|
order: 5,
|
|
118
|
-
tool: '
|
|
119
|
-
parameters: { name: 'functionName' },
|
|
118
|
+
tool: 'search',
|
|
119
|
+
parameters: { action: 'definition', name: 'functionName' },
|
|
120
120
|
description: 'Look up specific function definitions during review'
|
|
121
121
|
}
|
|
122
122
|
],
|
|
123
123
|
tips: [
|
|
124
124
|
'Code maps provide a visual overview of the codebase structure with paginated sections',
|
|
125
|
-
'Use
|
|
125
|
+
'Use code_map.get to view specific parts (overview, files, dependencies, documentation)',
|
|
126
126
|
'High complexity functions and poor documentation are flagged in the map',
|
|
127
127
|
'Documentation violations are now included by default in all audits',
|
|
128
128
|
'Functions are indexed during audit for fast lookup'
|
|
@@ -134,28 +134,28 @@ export const WORKFLOW_SCENARIOS = {
|
|
|
134
134
|
steps: [
|
|
135
135
|
{
|
|
136
136
|
order: 1,
|
|
137
|
-
tool: '
|
|
138
|
-
parameters: {
|
|
137
|
+
tool: 'index',
|
|
138
|
+
parameters: { action: 'sync' },
|
|
139
139
|
description: 'Ensure index is up to date',
|
|
140
140
|
condition: 'If you have made recent changes'
|
|
141
141
|
},
|
|
142
142
|
{
|
|
143
143
|
order: 2,
|
|
144
|
-
tool: '
|
|
145
|
-
parameters: { query: 'natural language query' },
|
|
144
|
+
tool: 'search',
|
|
145
|
+
parameters: { action: 'query', query: 'natural language query' },
|
|
146
146
|
description: 'Search using natural language (e.g., "validate user input")'
|
|
147
147
|
},
|
|
148
148
|
{
|
|
149
149
|
order: 3,
|
|
150
|
-
tool: '
|
|
151
|
-
parameters: { query: 'lang:typescript file:utils' },
|
|
150
|
+
tool: 'search',
|
|
151
|
+
parameters: { action: 'query', query: 'lang:typescript file:utils' },
|
|
152
152
|
description: 'Use operators to filter results'
|
|
153
153
|
}
|
|
154
154
|
],
|
|
155
155
|
tips: [
|
|
156
156
|
'Natural language search uses synonym expansion',
|
|
157
157
|
'Combine text search with operators for precision',
|
|
158
|
-
'Use
|
|
158
|
+
'Use search.definition for exact function lookup'
|
|
159
159
|
]
|
|
160
160
|
},
|
|
161
161
|
'maintenance': {
|
|
@@ -164,32 +164,32 @@ export const WORKFLOW_SCENARIOS = {
|
|
|
164
164
|
steps: [
|
|
165
165
|
{
|
|
166
166
|
order: 1,
|
|
167
|
-
tool: '
|
|
168
|
-
parameters: { path: '.', analyzers: ['solid', 'dry', 'documentation', 'security'] },
|
|
167
|
+
tool: 'audit',
|
|
168
|
+
parameters: { action: 'start', path: '.', analyzers: ['solid', 'dry', 'documentation', 'security'] },
|
|
169
169
|
description: 'Start full background audit to identify issues'
|
|
170
170
|
},
|
|
171
171
|
{
|
|
172
172
|
order: 2,
|
|
173
|
-
tool: '
|
|
174
|
-
parameters: { jobId: 'job_xxx_xxx' },
|
|
173
|
+
tool: 'audit',
|
|
174
|
+
parameters: { action: 'status', jobId: 'job_xxx_xxx' },
|
|
175
175
|
description: 'Poll until completed and use resultId for paged reads'
|
|
176
176
|
},
|
|
177
177
|
{
|
|
178
178
|
order: 3,
|
|
179
|
-
tool: '
|
|
180
|
-
parameters: { query: 'console.log debug' },
|
|
179
|
+
tool: 'search',
|
|
180
|
+
parameters: { action: 'query', query: 'console.log debug' },
|
|
181
181
|
description: 'Find debug statements to remove'
|
|
182
182
|
},
|
|
183
183
|
{
|
|
184
184
|
order: 4,
|
|
185
|
-
tool: '
|
|
186
|
-
parameters: {
|
|
185
|
+
tool: 'index',
|
|
186
|
+
parameters: { action: 'cleanup' },
|
|
187
187
|
description: 'Clean up stale entries from deleted files'
|
|
188
188
|
}
|
|
189
189
|
],
|
|
190
190
|
tips: [
|
|
191
191
|
'Regular audits help maintain code quality',
|
|
192
|
-
'
|
|
192
|
+
'index.cleanup removes entries for deleted files',
|
|
193
193
|
'Search for common antipatterns like console.log'
|
|
194
194
|
]
|
|
195
195
|
},
|
|
@@ -199,32 +199,32 @@ export const WORKFLOW_SCENARIOS = {
|
|
|
199
199
|
steps: [
|
|
200
200
|
{
|
|
201
201
|
order: 1,
|
|
202
|
-
tool: '
|
|
203
|
-
parameters: { path: '.', generateCodeMap: true },
|
|
202
|
+
tool: 'audit',
|
|
203
|
+
parameters: { action: 'health', path: '.', generateCodeMap: true },
|
|
204
204
|
description: 'Generate a code map to understand overall structure and architecture'
|
|
205
205
|
},
|
|
206
206
|
{
|
|
207
207
|
order: 2,
|
|
208
|
-
tool: '
|
|
209
|
-
parameters: { query: 'entity:component' },
|
|
208
|
+
tool: 'search',
|
|
209
|
+
parameters: { action: 'query', query: 'entity:component' },
|
|
210
210
|
description: 'List all React components to understand UI architecture'
|
|
211
211
|
},
|
|
212
212
|
{
|
|
213
213
|
order: 3,
|
|
214
|
-
tool: '
|
|
215
|
-
parameters: { query: 'depends-on:database deps:prisma' },
|
|
214
|
+
tool: 'search',
|
|
215
|
+
parameters: { action: 'query', query: 'depends-on:database deps:prisma' },
|
|
216
216
|
description: 'Find data access patterns and database usage'
|
|
217
217
|
},
|
|
218
218
|
{
|
|
219
219
|
order: 4,
|
|
220
|
-
tool: '
|
|
221
|
-
parameters: { query: 'file:route file:api' },
|
|
220
|
+
tool: 'search',
|
|
221
|
+
parameters: { action: 'query', query: 'file:route file:api' },
|
|
222
222
|
description: 'Locate API endpoints and routing logic'
|
|
223
223
|
}
|
|
224
224
|
],
|
|
225
225
|
tips: [
|
|
226
226
|
'Code maps show directory structure, complexity, and documentation quality at a glance',
|
|
227
|
-
'Maps are now paginated - use
|
|
227
|
+
'Maps are now paginated - use code_map.get to view specific sections',
|
|
228
228
|
'Start with the overview section to understand architectural patterns',
|
|
229
229
|
'Use dependency searches to trace data flow',
|
|
230
230
|
'File path searches help locate specific functionality'
|
|
@@ -236,36 +236,36 @@ export const WORKFLOW_SCENARIOS = {
|
|
|
236
236
|
steps: [
|
|
237
237
|
{
|
|
238
238
|
order: 1,
|
|
239
|
-
tool: '
|
|
240
|
-
parameters: { path: '.', analyzers: ['solid'], minSeverity: 'warning', analyzerConcurrency: 2 },
|
|
239
|
+
tool: 'audit',
|
|
240
|
+
parameters: { action: 'start', path: '.', analyzers: ['solid'], minSeverity: 'warning', analyzerConcurrency: 2 },
|
|
241
241
|
description: 'Start a background audit and get a jobId immediately'
|
|
242
242
|
},
|
|
243
243
|
{
|
|
244
244
|
order: 2,
|
|
245
|
-
tool: '
|
|
246
|
-
parameters: { jobId: 'job_xxx_xxx' },
|
|
245
|
+
tool: 'audit',
|
|
246
|
+
parameters: { action: 'status', jobId: 'job_xxx_xxx' },
|
|
247
247
|
description: 'Poll until status is completed and capture resultId',
|
|
248
248
|
condition: 'Repeat while status is queued or running'
|
|
249
249
|
},
|
|
250
250
|
{
|
|
251
251
|
order: 3,
|
|
252
|
-
tool: '
|
|
253
|
-
parameters: { resultId: 'audit_xxx_xxx', offset: 0, limit: 25 },
|
|
252
|
+
tool: 'audit',
|
|
253
|
+
parameters: { action: 'results', resultId: 'audit_xxx_xxx', offset: 0, limit: 25 },
|
|
254
254
|
description: 'Fetch first page of violations with resultId'
|
|
255
255
|
},
|
|
256
256
|
{
|
|
257
257
|
order: 4,
|
|
258
|
-
tool: '
|
|
259
|
-
parameters: { resultId: 'audit_xxx_xxx', offset: 25, limit: 25 },
|
|
258
|
+
tool: 'audit',
|
|
259
|
+
parameters: { action: 'results', resultId: 'audit_xxx_xxx', offset: 25, limit: 25 },
|
|
260
260
|
description: 'Fetch next pages using offset/limit only',
|
|
261
261
|
condition: 'When pagination.hasMore is true'
|
|
262
262
|
}
|
|
263
263
|
],
|
|
264
264
|
tips: [
|
|
265
265
|
'Use minSeverity:"warning" to filter out info-level suggestions',
|
|
266
|
-
'
|
|
267
|
-
'
|
|
268
|
-
'
|
|
266
|
+
'audit.start is non-blocking; heavy work runs in the background',
|
|
267
|
+
'audit.status returns resultId only when the run is completed',
|
|
268
|
+
'audit.results is read-only and never starts a new audit',
|
|
269
269
|
'Use analyzerConcurrency:2 or 3 for faster runs on large projects',
|
|
270
270
|
'Tune workerCount and maxRetries for large shard-heavy audits'
|
|
271
271
|
]
|
|
@@ -276,32 +276,32 @@ export const WORKFLOW_SCENARIOS = {
|
|
|
276
276
|
steps: [
|
|
277
277
|
{
|
|
278
278
|
order: 1,
|
|
279
|
-
tool: '
|
|
280
|
-
parameters: { path: '.', generateCodeMap: true },
|
|
279
|
+
tool: 'audit',
|
|
280
|
+
parameters: { action: 'health', path: '.', generateCodeMap: true },
|
|
281
281
|
description: 'Generate a paginated code map during health check'
|
|
282
282
|
},
|
|
283
283
|
{
|
|
284
284
|
order: 2,
|
|
285
|
-
tool: '
|
|
286
|
-
parameters: { mapId: 'map_xxx_xxx' },
|
|
285
|
+
tool: 'code_map',
|
|
286
|
+
parameters: { action: 'list', mapId: 'map_xxx_xxx' },
|
|
287
287
|
description: 'List all available sections in the generated code map'
|
|
288
288
|
},
|
|
289
289
|
{
|
|
290
290
|
order: 3,
|
|
291
|
-
tool: '
|
|
292
|
-
parameters: { mapId: 'map_xxx_xxx', sectionType: 'overview' },
|
|
291
|
+
tool: 'code_map',
|
|
292
|
+
parameters: { action: 'get', mapId: 'map_xxx_xxx', sectionType: 'overview' },
|
|
293
293
|
description: 'View the overview section for high-level structure and metrics'
|
|
294
294
|
},
|
|
295
295
|
{
|
|
296
296
|
order: 4,
|
|
297
|
-
tool: '
|
|
298
|
-
parameters: { mapId: 'map_xxx_xxx', sectionType: 'files' },
|
|
297
|
+
tool: 'code_map',
|
|
298
|
+
parameters: { action: 'get', mapId: 'map_xxx_xxx', sectionType: 'files' },
|
|
299
299
|
description: 'View detailed file analysis with complexity and documentation scores'
|
|
300
300
|
},
|
|
301
301
|
{
|
|
302
302
|
order: 5,
|
|
303
|
-
tool: '
|
|
304
|
-
parameters: { mapId: 'map_xxx_xxx', sectionType: 'documentation' },
|
|
303
|
+
tool: 'code_map',
|
|
304
|
+
parameters: { action: 'get', mapId: 'map_xxx_xxx', sectionType: 'documentation' },
|
|
305
305
|
description: 'View documentation analysis with specific violations and suggestions'
|
|
306
306
|
}
|
|
307
307
|
],
|
|
@@ -309,7 +309,7 @@ export const WORKFLOW_SCENARIOS = {
|
|
|
309
309
|
'Code maps are automatically paginated to avoid overwhelming responses',
|
|
310
310
|
'The mapId is returned in the initial audit response for section retrieval',
|
|
311
311
|
'Each section provides focused information: overview (stats), files (detailed analysis), dependencies (imports/exports), documentation (JSDoc violations)',
|
|
312
|
-
'Use
|
|
312
|
+
'Use code_map.list to see all available sections and their sizes',
|
|
313
313
|
'Code maps are stored in-memory and cleared when the server restarts'
|
|
314
314
|
]
|
|
315
315
|
},
|
|
@@ -319,14 +319,15 @@ export const WORKFLOW_SCENARIOS = {
|
|
|
319
319
|
steps: [
|
|
320
320
|
{
|
|
321
321
|
order: 1,
|
|
322
|
-
tool: '
|
|
323
|
-
parameters: {},
|
|
322
|
+
tool: 'config',
|
|
323
|
+
parameters: { action: 'get' },
|
|
324
324
|
description: 'Check current analyzer configurations'
|
|
325
325
|
},
|
|
326
326
|
{
|
|
327
327
|
order: 2,
|
|
328
|
-
tool: '
|
|
328
|
+
tool: 'config',
|
|
329
329
|
parameters: {
|
|
330
|
+
action: 'set',
|
|
330
331
|
analyzerName: 'solid',
|
|
331
332
|
config: {
|
|
332
333
|
maxUnrelatedResponsibilities: 3,
|
|
@@ -339,8 +340,9 @@ export const WORKFLOW_SCENARIOS = {
|
|
|
339
340
|
},
|
|
340
341
|
{
|
|
341
342
|
order: 3,
|
|
342
|
-
tool: '
|
|
343
|
+
tool: 'config',
|
|
343
344
|
parameters: {
|
|
345
|
+
action: 'set',
|
|
344
346
|
analyzerName: 'dry',
|
|
345
347
|
config: {
|
|
346
348
|
minLineThreshold: 15,
|
|
@@ -352,30 +354,30 @@ export const WORKFLOW_SCENARIOS = {
|
|
|
352
354
|
},
|
|
353
355
|
{
|
|
354
356
|
order: 4,
|
|
355
|
-
tool: '
|
|
356
|
-
parameters: { path: '.', autoPopulate: false },
|
|
357
|
+
tool: 'config',
|
|
358
|
+
parameters: { action: 'whitelist_detect', path: '.', autoPopulate: false },
|
|
357
359
|
description: 'Detect framework patterns for whitelisting'
|
|
358
360
|
},
|
|
359
361
|
{
|
|
360
362
|
order: 5,
|
|
361
|
-
tool: '
|
|
362
|
-
parameters: { name: 'MyContextProvider', type: 'framework-class' },
|
|
363
|
+
tool: 'config',
|
|
364
|
+
parameters: { action: 'whitelist_add', name: 'MyContextProvider', type: 'framework-class' },
|
|
363
365
|
description: 'Add specific exceptions for framework patterns'
|
|
364
366
|
},
|
|
365
367
|
{
|
|
366
368
|
order: 6,
|
|
367
|
-
tool: '
|
|
368
|
-
parameters: { path: '.', analyzers: ['solid', 'dry'] },
|
|
369
|
-
description: '
|
|
369
|
+
tool: 'audit',
|
|
370
|
+
parameters: { action: 'start', path: '.', analyzers: ['solid', 'dry'] },
|
|
371
|
+
description: 'Re-run audit with new configurations'
|
|
370
372
|
}
|
|
371
373
|
],
|
|
372
374
|
tips: [
|
|
373
375
|
'Analyzer configs persist across all audit runs',
|
|
374
|
-
'Use
|
|
376
|
+
'Use config.set once, benefit everywhere',
|
|
375
377
|
'Project-specific configs override global configs',
|
|
376
378
|
'Context-aware thresholds auto-adjust for component patterns',
|
|
377
379
|
'Combine whitelist and config for fine-grained control',
|
|
378
|
-
'Use
|
|
380
|
+
'Use config.reset to revert to defaults'
|
|
379
381
|
]
|
|
380
382
|
},
|
|
381
383
|
'tolerance-configuration': {
|
|
@@ -384,20 +386,21 @@ export const WORKFLOW_SCENARIOS = {
|
|
|
384
386
|
steps: [
|
|
385
387
|
{
|
|
386
388
|
order: 1,
|
|
387
|
-
tool: '
|
|
388
|
-
parameters: { path: '.', analyzers: ['solid'] },
|
|
389
|
+
tool: 'audit',
|
|
390
|
+
parameters: { action: 'start', path: '.', analyzers: ['solid'] },
|
|
389
391
|
description: 'Start initial background audit to see default violations'
|
|
390
392
|
},
|
|
391
393
|
{
|
|
392
394
|
order: 2,
|
|
393
|
-
tool: '
|
|
394
|
-
parameters: { analyzerName: 'solid' },
|
|
395
|
+
tool: 'config',
|
|
396
|
+
parameters: { action: 'get', analyzerName: 'solid' },
|
|
395
397
|
description: 'Check current SOLID configuration'
|
|
396
398
|
},
|
|
397
399
|
{
|
|
398
400
|
order: 3,
|
|
399
|
-
tool: '
|
|
401
|
+
tool: 'config',
|
|
400
402
|
parameters: {
|
|
403
|
+
action: 'set',
|
|
401
404
|
analyzerName: 'solid',
|
|
402
405
|
config: {
|
|
403
406
|
maxUnrelatedResponsibilities: 4,
|
|
@@ -417,8 +420,9 @@ export const WORKFLOW_SCENARIOS = {
|
|
|
417
420
|
},
|
|
418
421
|
{
|
|
419
422
|
order: 4,
|
|
420
|
-
tool: '
|
|
423
|
+
tool: 'config',
|
|
421
424
|
parameters: {
|
|
425
|
+
action: 'set',
|
|
422
426
|
analyzerName: 'solid',
|
|
423
427
|
projectPath: '/path/to/project',
|
|
424
428
|
config: { maxUnrelatedResponsibilities: 5 }
|
|
@@ -428,9 +432,9 @@ export const WORKFLOW_SCENARIOS = {
|
|
|
428
432
|
},
|
|
429
433
|
{
|
|
430
434
|
order: 5,
|
|
431
|
-
tool: '
|
|
432
|
-
parameters: { path: '.', analyzers: ['solid'] },
|
|
433
|
-
description: '
|
|
435
|
+
tool: 'audit',
|
|
436
|
+
parameters: { action: 'start', path: '.', analyzers: ['solid'] },
|
|
437
|
+
description: 'Re-run audit to validate reduced violations'
|
|
434
438
|
}
|
|
435
439
|
],
|
|
436
440
|
tips: [
|
|
@@ -439,7 +443,7 @@ export const WORKFLOW_SCENARIOS = {
|
|
|
439
443
|
'Set checkUnrelatedResponsibilities: false to disable unrelated groups check',
|
|
440
444
|
'Dashboard components get 2x multiplier by default (unless overridden)',
|
|
441
445
|
'Project configs override global configs',
|
|
442
|
-
'Use
|
|
446
|
+
'Use config.get without params to see all configs'
|
|
443
447
|
]
|
|
444
448
|
},
|
|
445
449
|
'dependency-analysis': {
|
|
@@ -448,34 +452,34 @@ export const WORKFLOW_SCENARIOS = {
|
|
|
448
452
|
steps: [
|
|
449
453
|
{
|
|
450
454
|
order: 1,
|
|
451
|
-
tool: '
|
|
452
|
-
parameters: { path: '.', indexFunctions: true },
|
|
455
|
+
tool: 'audit',
|
|
456
|
+
parameters: { action: 'start', path: '.', indexFunctions: true },
|
|
453
457
|
description: 'Start background audit to ensure functions are indexed with dependency tracking'
|
|
454
458
|
},
|
|
455
459
|
{
|
|
456
460
|
order: 2,
|
|
457
|
-
tool: '
|
|
458
|
-
parameters: { query: 'dep:lodash' },
|
|
461
|
+
tool: 'search',
|
|
462
|
+
parameters: { action: 'query', query: 'dep:lodash' },
|
|
459
463
|
description: 'Find all functions using a specific dependency',
|
|
460
464
|
condition: 'To see impact of updating/removing a package'
|
|
461
465
|
},
|
|
462
466
|
{
|
|
463
467
|
order: 3,
|
|
464
|
-
tool: '
|
|
465
|
-
parameters: { query: 'calls:calculateTotal' },
|
|
468
|
+
tool: 'search',
|
|
469
|
+
parameters: { action: 'query', query: 'calls:calculateTotal' },
|
|
466
470
|
description: 'Find all functions that call a specific function',
|
|
467
471
|
condition: 'To understand impact before refactoring'
|
|
468
472
|
},
|
|
469
473
|
{
|
|
470
474
|
order: 4,
|
|
471
|
-
tool: '
|
|
472
|
-
parameters: { query: 'dependents-of:authenticate' },
|
|
475
|
+
tool: 'search',
|
|
476
|
+
parameters: { action: 'query', query: 'dependents-of:authenticate' },
|
|
473
477
|
description: 'Find what depends on a function you want to change'
|
|
474
478
|
},
|
|
475
479
|
{
|
|
476
480
|
order: 5,
|
|
477
|
-
tool: '
|
|
478
|
-
parameters: { query: 'unused-imports' },
|
|
481
|
+
tool: 'search',
|
|
482
|
+
parameters: { action: 'query', query: 'unused-imports' },
|
|
479
483
|
description: 'Find and clean up unused imports with improved accuracy'
|
|
480
484
|
}
|
|
481
485
|
],
|
|
@@ -502,17 +506,17 @@ export function getWorkflowGuide(scenario) {
|
|
|
502
506
|
export function getWorkflowTips() {
|
|
503
507
|
return {
|
|
504
508
|
'general': [
|
|
505
|
-
'Start audits explicitly with
|
|
506
|
-
'Use
|
|
509
|
+
'Start audits explicitly with audit.start (no implicit long-running scans)',
|
|
510
|
+
'Use audit.health for quick checks before detailed analysis',
|
|
507
511
|
'Documentation analysis is now included by default in all audits',
|
|
508
512
|
'Code maps are generated by default with paginated sections',
|
|
509
513
|
'Combine natural language with operators in search queries',
|
|
510
514
|
'React components are automatically detected in .tsx/.jsx files',
|
|
511
515
|
'Improved TypeScript support with better type-only import detection',
|
|
512
|
-
'Poll
|
|
513
|
-
'Audit results are paginated - use
|
|
516
|
+
'Poll audit.status and use resultId once status is completed',
|
|
517
|
+
'Audit results are paginated - use audit.results with limit and offset',
|
|
514
518
|
'Analyzer configs persist - set once, use everywhere',
|
|
515
|
-
'Use
|
|
519
|
+
'Use config.set to adjust tolerances for your architecture'
|
|
516
520
|
],
|
|
517
521
|
'search-operators': [
|
|
518
522
|
'entity:component - Find all React components',
|
|
@@ -525,35 +529,35 @@ export function getWorkflowTips() {
|
|
|
525
529
|
'performance': [
|
|
526
530
|
'Index is built during audit, no separate indexing needed',
|
|
527
531
|
'Use specific paths in audit to analyze only changed code',
|
|
528
|
-
'
|
|
529
|
-
'
|
|
532
|
+
'search.query is fast even on large codebases',
|
|
533
|
+
'search.definition is optimized for exact name lookup',
|
|
530
534
|
'For partitioned runs, workerCount scales shard execution across CPU cores',
|
|
531
535
|
'Use shardTimeoutMs and maxRetries to balance resilience vs. latency'
|
|
532
536
|
],
|
|
533
537
|
'pagination': [
|
|
534
538
|
'Default limit is 50 violations per request (max 100)',
|
|
535
539
|
'Use offset parameter to get subsequent pages',
|
|
536
|
-
'Run
|
|
537
|
-
'When completed, use
|
|
538
|
-
'Example:
|
|
540
|
+
'Run audit.start, then poll audit.status for completion',
|
|
541
|
+
'When completed, use audit.status.resultId with audit.results',
|
|
542
|
+
'Example: audit.results(resultId: "...", offset: 25, limit: 25)',
|
|
539
543
|
'Cached results expire after 24 hours'
|
|
540
544
|
],
|
|
541
545
|
'analyzer-config': [
|
|
542
|
-
'
|
|
546
|
+
'config.set persists settings across all audits',
|
|
543
547
|
'Global configs apply to all projects by default',
|
|
544
548
|
'Project-specific configs override global ones',
|
|
545
549
|
'maxUnrelatedResponsibilities controls component complexity',
|
|
546
550
|
'contextAwareThresholds auto-adjusts for patterns (Dashboard, Form, etc)',
|
|
547
|
-
'Use
|
|
548
|
-
'
|
|
551
|
+
'Use config.get to check current settings',
|
|
552
|
+
'config.reset reverts to defaults'
|
|
549
553
|
],
|
|
550
554
|
'code-maps': [
|
|
551
555
|
'Code maps are paginated automatically to manage response sizes',
|
|
552
|
-
'Use
|
|
556
|
+
'Use code_map.get with mapId to view specific sections',
|
|
553
557
|
'Available sections: overview, files, dependencies, documentation',
|
|
554
|
-
'
|
|
558
|
+
'code_map.list shows all available sections and their sizes',
|
|
555
559
|
'Maps are stored in-memory and cleared on server restart',
|
|
556
|
-
'generateCodeMap defaults to true in audit and
|
|
560
|
+
'generateCodeMap defaults to true in audit and audit.health tools'
|
|
557
561
|
]
|
|
558
562
|
};
|
|
559
563
|
}
|