driftdetect-core 0.4.6 → 0.6.0
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/dist/boundaries/types.d.ts +1 -1
- package/dist/boundaries/types.d.ts.map +1 -1
- package/dist/call-graph/analysis/graph-builder.d.ts.map +1 -1
- package/dist/call-graph/analysis/graph-builder.js +1 -0
- package/dist/call-graph/analysis/graph-builder.js.map +1 -1
- package/dist/call-graph/extractors/csharp-data-access-extractor.d.ts +8 -0
- package/dist/call-graph/extractors/csharp-data-access-extractor.d.ts.map +1 -1
- package/dist/call-graph/extractors/csharp-data-access-extractor.js +8 -0
- package/dist/call-graph/extractors/csharp-data-access-extractor.js.map +1 -1
- package/dist/call-graph/extractors/csharp-extractor.d.ts +35 -0
- package/dist/call-graph/extractors/csharp-extractor.d.ts.map +1 -1
- package/dist/call-graph/extractors/csharp-extractor.js +362 -4
- package/dist/call-graph/extractors/csharp-extractor.js.map +1 -1
- package/dist/call-graph/extractors/csharp-hybrid-extractor.d.ts +37 -0
- package/dist/call-graph/extractors/csharp-hybrid-extractor.d.ts.map +1 -0
- package/dist/call-graph/extractors/csharp-hybrid-extractor.js +408 -0
- package/dist/call-graph/extractors/csharp-hybrid-extractor.js.map +1 -0
- package/dist/call-graph/extractors/go-data-access-extractor.d.ts +80 -0
- package/dist/call-graph/extractors/go-data-access-extractor.d.ts.map +1 -0
- package/dist/call-graph/extractors/go-data-access-extractor.js +457 -0
- package/dist/call-graph/extractors/go-data-access-extractor.js.map +1 -0
- package/dist/call-graph/extractors/go-extractor.d.ts +103 -0
- package/dist/call-graph/extractors/go-extractor.d.ts.map +1 -0
- package/dist/call-graph/extractors/go-extractor.js +509 -0
- package/dist/call-graph/extractors/go-extractor.js.map +1 -0
- package/dist/call-graph/extractors/go-hybrid-extractor.d.ts +97 -0
- package/dist/call-graph/extractors/go-hybrid-extractor.d.ts.map +1 -0
- package/dist/call-graph/extractors/go-hybrid-extractor.js +496 -0
- package/dist/call-graph/extractors/go-hybrid-extractor.js.map +1 -0
- package/dist/call-graph/extractors/hybrid-extractor-base.d.ts +102 -0
- package/dist/call-graph/extractors/hybrid-extractor-base.d.ts.map +1 -0
- package/dist/call-graph/extractors/hybrid-extractor-base.js +289 -0
- package/dist/call-graph/extractors/hybrid-extractor-base.js.map +1 -0
- package/dist/call-graph/extractors/index.d.ts +17 -13
- package/dist/call-graph/extractors/index.d.ts.map +1 -1
- package/dist/call-graph/extractors/index.js +24 -23
- package/dist/call-graph/extractors/index.js.map +1 -1
- package/dist/call-graph/extractors/java-data-access-extractor.d.ts +8 -0
- package/dist/call-graph/extractors/java-data-access-extractor.d.ts.map +1 -1
- package/dist/call-graph/extractors/java-data-access-extractor.js +8 -0
- package/dist/call-graph/extractors/java-data-access-extractor.js.map +1 -1
- package/dist/call-graph/extractors/java-extractor.d.ts +15 -0
- package/dist/call-graph/extractors/java-extractor.d.ts.map +1 -1
- package/dist/call-graph/extractors/java-extractor.js +120 -4
- package/dist/call-graph/extractors/java-extractor.js.map +1 -1
- package/dist/call-graph/extractors/java-hybrid-extractor.d.ts +36 -0
- package/dist/call-graph/extractors/java-hybrid-extractor.d.ts.map +1 -0
- package/dist/call-graph/extractors/java-hybrid-extractor.js +426 -0
- package/dist/call-graph/extractors/java-hybrid-extractor.js.map +1 -0
- package/dist/call-graph/extractors/php-data-access-extractor.d.ts +8 -0
- package/dist/call-graph/extractors/php-data-access-extractor.d.ts.map +1 -1
- package/dist/call-graph/extractors/php-data-access-extractor.js +8 -0
- package/dist/call-graph/extractors/php-data-access-extractor.js.map +1 -1
- package/dist/call-graph/extractors/php-extractor.d.ts +48 -1
- package/dist/call-graph/extractors/php-extractor.d.ts.map +1 -1
- package/dist/call-graph/extractors/php-extractor.js +460 -6
- package/dist/call-graph/extractors/php-extractor.js.map +1 -1
- package/dist/call-graph/extractors/php-hybrid-extractor.d.ts +35 -0
- package/dist/call-graph/extractors/php-hybrid-extractor.d.ts.map +1 -0
- package/dist/call-graph/extractors/php-hybrid-extractor.js +393 -0
- package/dist/call-graph/extractors/php-hybrid-extractor.js.map +1 -0
- package/dist/call-graph/extractors/python-data-access-extractor.d.ts +8 -0
- package/dist/call-graph/extractors/python-data-access-extractor.d.ts.map +1 -1
- package/dist/call-graph/extractors/python-data-access-extractor.js +8 -0
- package/dist/call-graph/extractors/python-data-access-extractor.js.map +1 -1
- package/dist/call-graph/extractors/python-hybrid-extractor.d.ts +85 -0
- package/dist/call-graph/extractors/python-hybrid-extractor.d.ts.map +1 -0
- package/dist/call-graph/extractors/python-hybrid-extractor.js +462 -0
- package/dist/call-graph/extractors/python-hybrid-extractor.js.map +1 -0
- package/dist/call-graph/extractors/regex/base-regex-extractor.d.ts +154 -0
- package/dist/call-graph/extractors/regex/base-regex-extractor.d.ts.map +1 -0
- package/dist/call-graph/extractors/regex/base-regex-extractor.js +346 -0
- package/dist/call-graph/extractors/regex/base-regex-extractor.js.map +1 -0
- package/dist/call-graph/extractors/regex/csharp-regex.d.ts +34 -0
- package/dist/call-graph/extractors/regex/csharp-regex.d.ts.map +1 -0
- package/dist/call-graph/extractors/regex/csharp-regex.js +393 -0
- package/dist/call-graph/extractors/regex/csharp-regex.js.map +1 -0
- package/dist/call-graph/extractors/regex/go-regex.d.ts +51 -0
- package/dist/call-graph/extractors/regex/go-regex.d.ts.map +1 -0
- package/dist/call-graph/extractors/regex/go-regex.js +435 -0
- package/dist/call-graph/extractors/regex/go-regex.js.map +1 -0
- package/dist/call-graph/extractors/regex/index.d.ts +26 -0
- package/dist/call-graph/extractors/regex/index.d.ts.map +1 -0
- package/dist/call-graph/extractors/regex/index.js +74 -0
- package/dist/call-graph/extractors/regex/index.js.map +1 -0
- package/dist/call-graph/extractors/regex/java-regex.d.ts +34 -0
- package/dist/call-graph/extractors/regex/java-regex.d.ts.map +1 -0
- package/dist/call-graph/extractors/regex/java-regex.js +327 -0
- package/dist/call-graph/extractors/regex/java-regex.js.map +1 -0
- package/dist/call-graph/extractors/regex/php-regex.d.ts +30 -0
- package/dist/call-graph/extractors/regex/php-regex.d.ts.map +1 -0
- package/dist/call-graph/extractors/regex/php-regex.js +333 -0
- package/dist/call-graph/extractors/regex/php-regex.js.map +1 -0
- package/dist/call-graph/extractors/regex/python-regex.d.ts +46 -0
- package/dist/call-graph/extractors/regex/python-regex.d.ts.map +1 -0
- package/dist/call-graph/extractors/regex/python-regex.js +380 -0
- package/dist/call-graph/extractors/regex/python-regex.js.map +1 -0
- package/dist/call-graph/extractors/regex/typescript-regex.d.ts +27 -0
- package/dist/call-graph/extractors/regex/typescript-regex.d.ts.map +1 -0
- package/dist/call-graph/extractors/regex/typescript-regex.js +349 -0
- package/dist/call-graph/extractors/regex/typescript-regex.js.map +1 -0
- package/dist/call-graph/extractors/semantic-data-access-scanner.d.ts +7 -0
- package/dist/call-graph/extractors/semantic-data-access-scanner.d.ts.map +1 -1
- package/dist/call-graph/extractors/semantic-data-access-scanner.js +7 -0
- package/dist/call-graph/extractors/semantic-data-access-scanner.js.map +1 -1
- package/dist/call-graph/extractors/types.d.ts +111 -0
- package/dist/call-graph/extractors/types.d.ts.map +1 -0
- package/dist/call-graph/extractors/types.js +68 -0
- package/dist/call-graph/extractors/types.js.map +1 -0
- package/dist/call-graph/extractors/typescript-data-access-extractor.d.ts +8 -0
- package/dist/call-graph/extractors/typescript-data-access-extractor.d.ts.map +1 -1
- package/dist/call-graph/extractors/typescript-data-access-extractor.js +8 -0
- package/dist/call-graph/extractors/typescript-data-access-extractor.js.map +1 -1
- package/dist/call-graph/extractors/typescript-hybrid-extractor.d.ts +116 -0
- package/dist/call-graph/extractors/typescript-hybrid-extractor.d.ts.map +1 -0
- package/dist/call-graph/extractors/typescript-hybrid-extractor.js +635 -0
- package/dist/call-graph/extractors/typescript-hybrid-extractor.js.map +1 -0
- package/dist/call-graph/index.d.ts +3 -0
- package/dist/call-graph/index.d.ts.map +1 -1
- package/dist/call-graph/index.js +5 -0
- package/dist/call-graph/index.js.map +1 -1
- package/dist/call-graph/types.d.ts +1 -1
- package/dist/call-graph/types.d.ts.map +1 -1
- package/dist/constraints/extraction/constraint-synthesizer.d.ts +72 -0
- package/dist/constraints/extraction/constraint-synthesizer.d.ts.map +1 -0
- package/dist/constraints/extraction/constraint-synthesizer.js +336 -0
- package/dist/constraints/extraction/constraint-synthesizer.js.map +1 -0
- package/dist/constraints/extraction/index.d.ts +10 -0
- package/dist/constraints/extraction/index.d.ts.map +1 -0
- package/dist/constraints/extraction/index.js +10 -0
- package/dist/constraints/extraction/index.js.map +1 -0
- package/dist/constraints/extraction/invariant-detector.d.ts +109 -0
- package/dist/constraints/extraction/invariant-detector.d.ts.map +1 -0
- package/dist/constraints/extraction/invariant-detector.js +979 -0
- package/dist/constraints/extraction/invariant-detector.js.map +1 -0
- package/dist/constraints/index.d.ts +15 -0
- package/dist/constraints/index.d.ts.map +1 -0
- package/dist/constraints/index.js +16 -0
- package/dist/constraints/index.js.map +1 -0
- package/dist/constraints/store/constraint-store.d.ts +110 -0
- package/dist/constraints/store/constraint-store.d.ts.map +1 -0
- package/dist/constraints/store/constraint-store.js +584 -0
- package/dist/constraints/store/constraint-store.js.map +1 -0
- package/dist/constraints/types.d.ts +605 -0
- package/dist/constraints/types.d.ts.map +1 -0
- package/dist/constraints/types.js +57 -0
- package/dist/constraints/types.js.map +1 -0
- package/dist/constraints/verification/constraint-verifier.d.ts +100 -0
- package/dist/constraints/verification/constraint-verifier.d.ts.map +1 -0
- package/dist/constraints/verification/constraint-verifier.js +638 -0
- package/dist/constraints/verification/constraint-verifier.js.map +1 -0
- package/dist/constraints/verification/index.d.ts +8 -0
- package/dist/constraints/verification/index.d.ts.map +1 -0
- package/dist/constraints/verification/index.js +8 -0
- package/dist/constraints/verification/index.js.map +1 -0
- package/dist/decisions/analyzer/decision-mining-analyzer.d.ts +121 -0
- package/dist/decisions/analyzer/decision-mining-analyzer.d.ts.map +1 -0
- package/dist/decisions/analyzer/decision-mining-analyzer.js +904 -0
- package/dist/decisions/analyzer/decision-mining-analyzer.js.map +1 -0
- package/dist/decisions/analyzer/index.d.ts +5 -0
- package/dist/decisions/analyzer/index.d.ts.map +1 -0
- package/dist/decisions/analyzer/index.js +5 -0
- package/dist/decisions/analyzer/index.js.map +1 -0
- package/dist/decisions/extractors/base-commit-extractor.d.ts +104 -0
- package/dist/decisions/extractors/base-commit-extractor.d.ts.map +1 -0
- package/dist/decisions/extractors/base-commit-extractor.js +305 -0
- package/dist/decisions/extractors/base-commit-extractor.js.map +1 -0
- package/dist/decisions/extractors/csharp-commit-extractor.d.ts +18 -0
- package/dist/decisions/extractors/csharp-commit-extractor.d.ts.map +1 -0
- package/dist/decisions/extractors/csharp-commit-extractor.js +281 -0
- package/dist/decisions/extractors/csharp-commit-extractor.js.map +1 -0
- package/dist/decisions/extractors/index.d.ts +31 -0
- package/dist/decisions/extractors/index.d.ts.map +1 -0
- package/dist/decisions/extractors/index.js +63 -0
- package/dist/decisions/extractors/index.js.map +1 -0
- package/dist/decisions/extractors/java-commit-extractor.d.ts +18 -0
- package/dist/decisions/extractors/java-commit-extractor.d.ts.map +1 -0
- package/dist/decisions/extractors/java-commit-extractor.js +248 -0
- package/dist/decisions/extractors/java-commit-extractor.js.map +1 -0
- package/dist/decisions/extractors/php-commit-extractor.d.ts +18 -0
- package/dist/decisions/extractors/php-commit-extractor.d.ts.map +1 -0
- package/dist/decisions/extractors/php-commit-extractor.js +280 -0
- package/dist/decisions/extractors/php-commit-extractor.js.map +1 -0
- package/dist/decisions/extractors/python-commit-extractor.d.ts +18 -0
- package/dist/decisions/extractors/python-commit-extractor.d.ts.map +1 -0
- package/dist/decisions/extractors/python-commit-extractor.js +248 -0
- package/dist/decisions/extractors/python-commit-extractor.js.map +1 -0
- package/dist/decisions/extractors/typescript-commit-extractor.d.ts +37 -0
- package/dist/decisions/extractors/typescript-commit-extractor.d.ts.map +1 -0
- package/dist/decisions/extractors/typescript-commit-extractor.js +229 -0
- package/dist/decisions/extractors/typescript-commit-extractor.js.map +1 -0
- package/dist/decisions/git/commit-parser.d.ts +58 -0
- package/dist/decisions/git/commit-parser.d.ts.map +1 -0
- package/dist/decisions/git/commit-parser.js +344 -0
- package/dist/decisions/git/commit-parser.js.map +1 -0
- package/dist/decisions/git/diff-analyzer.d.ts +30 -0
- package/dist/decisions/git/diff-analyzer.d.ts.map +1 -0
- package/dist/decisions/git/diff-analyzer.js +492 -0
- package/dist/decisions/git/diff-analyzer.js.map +1 -0
- package/dist/decisions/git/git-walker.d.ts +64 -0
- package/dist/decisions/git/git-walker.d.ts.map +1 -0
- package/dist/decisions/git/git-walker.js +441 -0
- package/dist/decisions/git/git-walker.js.map +1 -0
- package/dist/decisions/git/index.d.ts +11 -0
- package/dist/decisions/git/index.d.ts.map +1 -0
- package/dist/decisions/git/index.js +13 -0
- package/dist/decisions/git/index.js.map +1 -0
- package/dist/decisions/git/types.d.ts +223 -0
- package/dist/decisions/git/types.d.ts.map +1 -0
- package/dist/decisions/git/types.js +7 -0
- package/dist/decisions/git/types.js.map +1 -0
- package/dist/decisions/index.d.ts +27 -0
- package/dist/decisions/index.d.ts.map +1 -0
- package/dist/decisions/index.js +45 -0
- package/dist/decisions/index.js.map +1 -0
- package/dist/decisions/types.d.ts +530 -0
- package/dist/decisions/types.d.ts.map +1 -0
- package/dist/decisions/types.js +8 -0
- package/dist/decisions/types.js.map +1 -0
- package/dist/error-handling/error-handling-analyzer.d.ts +73 -0
- package/dist/error-handling/error-handling-analyzer.d.ts.map +1 -0
- package/dist/error-handling/error-handling-analyzer.js +706 -0
- package/dist/error-handling/error-handling-analyzer.js.map +1 -0
- package/dist/error-handling/index.d.ts +8 -0
- package/dist/error-handling/index.d.ts.map +1 -0
- package/dist/error-handling/index.js +8 -0
- package/dist/error-handling/index.js.map +1 -0
- package/dist/error-handling/types.d.ts +307 -0
- package/dist/error-handling/types.d.ts.map +1 -0
- package/dist/error-handling/types.js +7 -0
- package/dist/error-handling/types.js.map +1 -0
- package/dist/go/go-analyzer.d.ts +203 -0
- package/dist/go/go-analyzer.d.ts.map +1 -0
- package/dist/go/go-analyzer.js +509 -0
- package/dist/go/go-analyzer.js.map +1 -0
- package/dist/go/index.d.ts +7 -0
- package/dist/go/index.d.ts.map +1 -0
- package/dist/go/index.js +8 -0
- package/dist/go/index.js.map +1 -0
- package/dist/index.d.ts +25 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +85 -0
- package/dist/index.js.map +1 -1
- package/dist/lake/pattern-shard-store.d.ts +6 -0
- package/dist/lake/pattern-shard-store.d.ts.map +1 -1
- package/dist/lake/pattern-shard-store.js +6 -0
- package/dist/lake/pattern-shard-store.js.map +1 -1
- package/dist/module-coupling/coupling-analyzer.d.ts +73 -0
- package/dist/module-coupling/coupling-analyzer.d.ts.map +1 -0
- package/dist/module-coupling/coupling-analyzer.js +668 -0
- package/dist/module-coupling/coupling-analyzer.js.map +1 -0
- package/dist/module-coupling/index.d.ts +9 -0
- package/dist/module-coupling/index.d.ts.map +1 -0
- package/dist/module-coupling/index.js +9 -0
- package/dist/module-coupling/index.js.map +1 -0
- package/dist/module-coupling/types.d.ts +273 -0
- package/dist/module-coupling/types.d.ts.map +1 -0
- package/dist/module-coupling/types.js +8 -0
- package/dist/module-coupling/types.js.map +1 -0
- package/dist/parsers/tree-sitter/go-loader.d.ts +50 -0
- package/dist/parsers/tree-sitter/go-loader.d.ts.map +1 -0
- package/dist/parsers/tree-sitter/go-loader.js +161 -0
- package/dist/parsers/tree-sitter/go-loader.js.map +1 -0
- package/dist/parsers/tree-sitter/tree-sitter-go-parser.d.ts +250 -0
- package/dist/parsers/tree-sitter/tree-sitter-go-parser.d.ts.map +1 -0
- package/dist/parsers/tree-sitter/tree-sitter-go-parser.js +707 -0
- package/dist/parsers/tree-sitter/tree-sitter-go-parser.js.map +1 -0
- package/dist/parsers/types.d.ts +1 -1
- package/dist/parsers/types.d.ts.map +1 -1
- package/dist/patterns/adapters/index.d.ts +11 -0
- package/dist/patterns/adapters/index.d.ts.map +1 -0
- package/dist/patterns/adapters/index.js +11 -0
- package/dist/patterns/adapters/index.js.map +1 -0
- package/dist/patterns/adapters/pattern-store-adapter.d.ts +59 -0
- package/dist/patterns/adapters/pattern-store-adapter.d.ts.map +1 -0
- package/dist/patterns/adapters/pattern-store-adapter.js +468 -0
- package/dist/patterns/adapters/pattern-store-adapter.js.map +1 -0
- package/dist/patterns/adapters/service-factory.d.ts +40 -0
- package/dist/patterns/adapters/service-factory.d.ts.map +1 -0
- package/dist/patterns/adapters/service-factory.js +144 -0
- package/dist/patterns/adapters/service-factory.js.map +1 -0
- package/dist/patterns/errors.d.ts +32 -0
- package/dist/patterns/errors.d.ts.map +1 -0
- package/dist/patterns/errors.js +45 -0
- package/dist/patterns/errors.js.map +1 -0
- package/dist/patterns/impl/cached-repository.d.ts +79 -0
- package/dist/patterns/impl/cached-repository.d.ts.map +1 -0
- package/dist/patterns/impl/cached-repository.js +296 -0
- package/dist/patterns/impl/cached-repository.js.map +1 -0
- package/dist/patterns/impl/file-repository.d.ts +75 -0
- package/dist/patterns/impl/file-repository.d.ts.map +1 -0
- package/dist/patterns/impl/file-repository.js +507 -0
- package/dist/patterns/impl/file-repository.js.map +1 -0
- package/dist/patterns/impl/index.d.ts +16 -0
- package/dist/patterns/impl/index.d.ts.map +1 -0
- package/dist/patterns/impl/index.js +21 -0
- package/dist/patterns/impl/index.js.map +1 -0
- package/dist/patterns/impl/memory-repository.d.ts +56 -0
- package/dist/patterns/impl/memory-repository.d.ts.map +1 -0
- package/dist/patterns/impl/memory-repository.js +323 -0
- package/dist/patterns/impl/memory-repository.js.map +1 -0
- package/dist/patterns/impl/pattern-service.d.ts +52 -0
- package/dist/patterns/impl/pattern-service.d.ts.map +1 -0
- package/dist/patterns/impl/pattern-service.js +382 -0
- package/dist/patterns/impl/pattern-service.js.map +1 -0
- package/dist/patterns/impl/repository-factory.d.ts +44 -0
- package/dist/patterns/impl/repository-factory.d.ts.map +1 -0
- package/dist/patterns/impl/repository-factory.js +140 -0
- package/dist/patterns/impl/repository-factory.js.map +1 -0
- package/dist/patterns/impl/unified-file-repository.d.ts +111 -0
- package/dist/patterns/impl/unified-file-repository.d.ts.map +1 -0
- package/dist/patterns/impl/unified-file-repository.js +677 -0
- package/dist/patterns/impl/unified-file-repository.js.map +1 -0
- package/dist/patterns/index.d.ts +23 -0
- package/dist/patterns/index.d.ts.map +1 -0
- package/dist/patterns/index.js +41 -0
- package/dist/patterns/index.js.map +1 -0
- package/dist/patterns/repository.d.ts +241 -0
- package/dist/patterns/repository.d.ts.map +1 -0
- package/dist/patterns/repository.js +23 -0
- package/dist/patterns/repository.js.map +1 -0
- package/dist/patterns/service.d.ts +245 -0
- package/dist/patterns/service.d.ts.map +1 -0
- package/dist/patterns/service.js +25 -0
- package/dist/patterns/service.js.map +1 -0
- package/dist/patterns/types.d.ts +227 -0
- package/dist/patterns/types.d.ts.map +1 -0
- package/dist/patterns/types.js +117 -0
- package/dist/patterns/types.js.map +1 -0
- package/dist/simulation/approach-generator.d.ts +73 -0
- package/dist/simulation/approach-generator.d.ts.map +1 -0
- package/dist/simulation/approach-generator.js +371 -0
- package/dist/simulation/approach-generator.js.map +1 -0
- package/dist/simulation/index.d.ts +14 -0
- package/dist/simulation/index.d.ts.map +1 -0
- package/dist/simulation/index.js +19 -0
- package/dist/simulation/index.js.map +1 -0
- package/dist/simulation/language-strategies/csharp-strategies.d.ts +17 -0
- package/dist/simulation/language-strategies/csharp-strategies.d.ts.map +1 -0
- package/dist/simulation/language-strategies/csharp-strategies.js +118 -0
- package/dist/simulation/language-strategies/csharp-strategies.js.map +1 -0
- package/dist/simulation/language-strategies/index.d.ts +41 -0
- package/dist/simulation/language-strategies/index.d.ts.map +1 -0
- package/dist/simulation/language-strategies/index.js +92 -0
- package/dist/simulation/language-strategies/index.js.map +1 -0
- package/dist/simulation/language-strategies/java-strategies.d.ts +17 -0
- package/dist/simulation/language-strategies/java-strategies.d.ts.map +1 -0
- package/dist/simulation/language-strategies/java-strategies.js +119 -0
- package/dist/simulation/language-strategies/java-strategies.js.map +1 -0
- package/dist/simulation/language-strategies/php-strategies.d.ts +17 -0
- package/dist/simulation/language-strategies/php-strategies.d.ts.map +1 -0
- package/dist/simulation/language-strategies/php-strategies.js +129 -0
- package/dist/simulation/language-strategies/php-strategies.js.map +1 -0
- package/dist/simulation/language-strategies/python-strategies.d.ts +17 -0
- package/dist/simulation/language-strategies/python-strategies.d.ts.map +1 -0
- package/dist/simulation/language-strategies/python-strategies.js +208 -0
- package/dist/simulation/language-strategies/python-strategies.js.map +1 -0
- package/dist/simulation/language-strategies/types.d.ts +67 -0
- package/dist/simulation/language-strategies/types.d.ts.map +1 -0
- package/dist/simulation/language-strategies/types.js +23 -0
- package/dist/simulation/language-strategies/types.js.map +1 -0
- package/dist/simulation/language-strategies/typescript-strategies.d.ts +17 -0
- package/dist/simulation/language-strategies/typescript-strategies.d.ts.map +1 -0
- package/dist/simulation/language-strategies/typescript-strategies.js +251 -0
- package/dist/simulation/language-strategies/typescript-strategies.js.map +1 -0
- package/dist/simulation/scorers/friction-scorer.d.ts +45 -0
- package/dist/simulation/scorers/friction-scorer.d.ts.map +1 -0
- package/dist/simulation/scorers/friction-scorer.js +336 -0
- package/dist/simulation/scorers/friction-scorer.js.map +1 -0
- package/dist/simulation/scorers/impact-scorer.d.ts +56 -0
- package/dist/simulation/scorers/impact-scorer.d.ts.map +1 -0
- package/dist/simulation/scorers/impact-scorer.js +273 -0
- package/dist/simulation/scorers/impact-scorer.js.map +1 -0
- package/dist/simulation/scorers/index.d.ts +12 -0
- package/dist/simulation/scorers/index.d.ts.map +1 -0
- package/dist/simulation/scorers/index.js +12 -0
- package/dist/simulation/scorers/index.js.map +1 -0
- package/dist/simulation/scorers/pattern-alignment-scorer.d.ts +83 -0
- package/dist/simulation/scorers/pattern-alignment-scorer.d.ts.map +1 -0
- package/dist/simulation/scorers/pattern-alignment-scorer.js +367 -0
- package/dist/simulation/scorers/pattern-alignment-scorer.js.map +1 -0
- package/dist/simulation/scorers/security-scorer.d.ts +63 -0
- package/dist/simulation/scorers/security-scorer.d.ts.map +1 -0
- package/dist/simulation/scorers/security-scorer.js +346 -0
- package/dist/simulation/scorers/security-scorer.js.map +1 -0
- package/dist/simulation/simulation-engine.d.ts +89 -0
- package/dist/simulation/simulation-engine.d.ts.map +1 -0
- package/dist/simulation/simulation-engine.js +480 -0
- package/dist/simulation/simulation-engine.js.map +1 -0
- package/dist/simulation/types.d.ts +200 -0
- package/dist/simulation/types.d.ts.map +1 -0
- package/dist/simulation/types.js +23 -0
- package/dist/simulation/types.js.map +1 -0
- package/dist/speculative/approach-generator.d.ts +2 -0
- package/dist/speculative/approach-generator.d.ts.map +1 -0
- package/dist/speculative/approach-generator.js +2 -0
- package/dist/speculative/approach-generator.js.map +1 -0
- package/dist/speculative/templates/types.d.ts +133 -0
- package/dist/speculative/templates/types.d.ts.map +1 -0
- package/dist/speculative/templates/types.js +208 -0
- package/dist/speculative/templates/types.js.map +1 -0
- package/dist/speculative/types.d.ts +523 -0
- package/dist/speculative/types.d.ts.map +1 -0
- package/dist/speculative/types.js +71 -0
- package/dist/speculative/types.js.map +1 -0
- package/dist/store/pattern-store.d.ts +6 -0
- package/dist/store/pattern-store.d.ts.map +1 -1
- package/dist/store/pattern-store.js +6 -0
- package/dist/store/pattern-store.js.map +1 -1
- package/dist/test-topology/extractors/base-test-extractor.d.ts +89 -0
- package/dist/test-topology/extractors/base-test-extractor.d.ts.map +1 -0
- package/dist/test-topology/extractors/base-test-extractor.js +187 -0
- package/dist/test-topology/extractors/base-test-extractor.js.map +1 -0
- package/dist/test-topology/extractors/csharp-test-extractor.d.ts +23 -0
- package/dist/test-topology/extractors/csharp-test-extractor.d.ts.map +1 -0
- package/dist/test-topology/extractors/csharp-test-extractor.js +367 -0
- package/dist/test-topology/extractors/csharp-test-extractor.js.map +1 -0
- package/dist/test-topology/extractors/go-test-extractor.d.ts +33 -0
- package/dist/test-topology/extractors/go-test-extractor.d.ts.map +1 -0
- package/dist/test-topology/extractors/go-test-extractor.js +436 -0
- package/dist/test-topology/extractors/go-test-extractor.js.map +1 -0
- package/dist/test-topology/extractors/index.d.ts +13 -0
- package/dist/test-topology/extractors/index.d.ts.map +1 -0
- package/dist/test-topology/extractors/index.js +13 -0
- package/dist/test-topology/extractors/index.js.map +1 -0
- package/dist/test-topology/extractors/java-test-extractor.d.ts +20 -0
- package/dist/test-topology/extractors/java-test-extractor.d.ts.map +1 -0
- package/dist/test-topology/extractors/java-test-extractor.js +275 -0
- package/dist/test-topology/extractors/java-test-extractor.js.map +1 -0
- package/dist/test-topology/extractors/php-test-extractor.d.ts +24 -0
- package/dist/test-topology/extractors/php-test-extractor.d.ts.map +1 -0
- package/dist/test-topology/extractors/php-test-extractor.js +409 -0
- package/dist/test-topology/extractors/php-test-extractor.js.map +1 -0
- package/dist/test-topology/extractors/python-test-extractor.d.ts +23 -0
- package/dist/test-topology/extractors/python-test-extractor.d.ts.map +1 -0
- package/dist/test-topology/extractors/python-test-extractor.js +342 -0
- package/dist/test-topology/extractors/python-test-extractor.js.map +1 -0
- package/dist/test-topology/extractors/regex/csharp-test-regex.d.ts +51 -0
- package/dist/test-topology/extractors/regex/csharp-test-regex.d.ts.map +1 -0
- package/dist/test-topology/extractors/regex/csharp-test-regex.js +383 -0
- package/dist/test-topology/extractors/regex/csharp-test-regex.js.map +1 -0
- package/dist/test-topology/extractors/regex/go-test-regex.d.ts +62 -0
- package/dist/test-topology/extractors/regex/go-test-regex.d.ts.map +1 -0
- package/dist/test-topology/extractors/regex/go-test-regex.js +528 -0
- package/dist/test-topology/extractors/regex/go-test-regex.js.map +1 -0
- package/dist/test-topology/extractors/regex/index.d.ts +19 -0
- package/dist/test-topology/extractors/regex/index.d.ts.map +1 -0
- package/dist/test-topology/extractors/regex/index.js +47 -0
- package/dist/test-topology/extractors/regex/index.js.map +1 -0
- package/dist/test-topology/extractors/regex/java-test-regex.d.ts +50 -0
- package/dist/test-topology/extractors/regex/java-test-regex.d.ts.map +1 -0
- package/dist/test-topology/extractors/regex/java-test-regex.js +370 -0
- package/dist/test-topology/extractors/regex/java-test-regex.js.map +1 -0
- package/dist/test-topology/extractors/regex/php-test-regex.d.ts +56 -0
- package/dist/test-topology/extractors/regex/php-test-regex.d.ts.map +1 -0
- package/dist/test-topology/extractors/regex/php-test-regex.js +503 -0
- package/dist/test-topology/extractors/regex/php-test-regex.js.map +1 -0
- package/dist/test-topology/extractors/regex/python-test-regex.d.ts +57 -0
- package/dist/test-topology/extractors/regex/python-test-regex.d.ts.map +1 -0
- package/dist/test-topology/extractors/regex/python-test-regex.js +381 -0
- package/dist/test-topology/extractors/regex/python-test-regex.js.map +1 -0
- package/dist/test-topology/extractors/regex/typescript-test-regex.d.ts +60 -0
- package/dist/test-topology/extractors/regex/typescript-test-regex.d.ts.map +1 -0
- package/dist/test-topology/extractors/regex/typescript-test-regex.js +368 -0
- package/dist/test-topology/extractors/regex/typescript-test-regex.js.map +1 -0
- package/dist/test-topology/extractors/typescript-test-extractor.d.ts +24 -0
- package/dist/test-topology/extractors/typescript-test-extractor.d.ts.map +1 -0
- package/dist/test-topology/extractors/typescript-test-extractor.js +266 -0
- package/dist/test-topology/extractors/typescript-test-extractor.js.map +1 -0
- package/dist/test-topology/hybrid-test-topology-analyzer.d.ts +98 -0
- package/dist/test-topology/hybrid-test-topology-analyzer.d.ts.map +1 -0
- package/dist/test-topology/hybrid-test-topology-analyzer.js +556 -0
- package/dist/test-topology/hybrid-test-topology-analyzer.js.map +1 -0
- package/dist/test-topology/index.d.ts +16 -0
- package/dist/test-topology/index.d.ts.map +1 -0
- package/dist/test-topology/index.js +19 -0
- package/dist/test-topology/index.js.map +1 -0
- package/dist/test-topology/test-topology-analyzer.d.ts +85 -0
- package/dist/test-topology/test-topology-analyzer.d.ts.map +1 -0
- package/dist/test-topology/test-topology-analyzer.js +539 -0
- package/dist/test-topology/test-topology-analyzer.js.map +1 -0
- package/dist/test-topology/types.d.ts +300 -0
- package/dist/test-topology/types.d.ts.map +1 -0
- package/dist/test-topology/types.js +7 -0
- package/dist/test-topology/types.js.map +1 -0
- package/dist/unified-provider/matching/database-sql-matcher.d.ts +42 -0
- package/dist/unified-provider/matching/database-sql-matcher.d.ts.map +1 -0
- package/dist/unified-provider/matching/database-sql-matcher.js +282 -0
- package/dist/unified-provider/matching/database-sql-matcher.js.map +1 -0
- package/dist/unified-provider/matching/gorm-matcher.d.ts +41 -0
- package/dist/unified-provider/matching/gorm-matcher.d.ts.map +1 -0
- package/dist/unified-provider/matching/gorm-matcher.js +222 -0
- package/dist/unified-provider/matching/gorm-matcher.js.map +1 -0
- package/dist/unified-provider/matching/index.d.ts +3 -0
- package/dist/unified-provider/matching/index.d.ts.map +1 -1
- package/dist/unified-provider/matching/index.js +4 -0
- package/dist/unified-provider/matching/index.js.map +1 -1
- package/dist/unified-provider/matching/matcher-registry.d.ts.map +1 -1
- package/dist/unified-provider/matching/matcher-registry.js +7 -0
- package/dist/unified-provider/matching/matcher-registry.js.map +1 -1
- package/dist/unified-provider/matching/sqlx-matcher.d.ts +40 -0
- package/dist/unified-provider/matching/sqlx-matcher.d.ts.map +1 -0
- package/dist/unified-provider/matching/sqlx-matcher.js +214 -0
- package/dist/unified-provider/matching/sqlx-matcher.js.map +1 -0
- package/dist/unified-provider/normalization/go-normalizer.d.ts +62 -0
- package/dist/unified-provider/normalization/go-normalizer.d.ts.map +1 -0
- package/dist/unified-provider/normalization/go-normalizer.js +608 -0
- package/dist/unified-provider/normalization/go-normalizer.js.map +1 -0
- package/dist/unified-provider/normalization/index.d.ts +1 -0
- package/dist/unified-provider/normalization/index.d.ts.map +1 -1
- package/dist/unified-provider/normalization/index.js +6 -1
- package/dist/unified-provider/normalization/index.js.map +1 -1
- package/dist/unified-provider/types.d.ts +1 -1
- package/dist/unified-provider/types.d.ts.map +1 -1
- package/dist/wpf/extractors/binding-error-detector.d.ts +75 -0
- package/dist/wpf/extractors/binding-error-detector.d.ts.map +1 -0
- package/dist/wpf/extractors/binding-error-detector.js +290 -0
- package/dist/wpf/extractors/binding-error-detector.js.map +1 -0
- package/dist/wpf/extractors/code-behind-linker.d.ts +70 -0
- package/dist/wpf/extractors/code-behind-linker.d.ts.map +1 -0
- package/dist/wpf/extractors/code-behind-linker.js +172 -0
- package/dist/wpf/extractors/code-behind-linker.js.map +1 -0
- package/dist/wpf/extractors/dependency-property-extractor.d.ts +61 -0
- package/dist/wpf/extractors/dependency-property-extractor.d.ts.map +1 -0
- package/dist/wpf/extractors/dependency-property-extractor.js +201 -0
- package/dist/wpf/extractors/dependency-property-extractor.js.map +1 -0
- package/dist/wpf/extractors/regex/viewmodel-regex.d.ts +82 -0
- package/dist/wpf/extractors/regex/viewmodel-regex.d.ts.map +1 -0
- package/dist/wpf/extractors/regex/viewmodel-regex.js +412 -0
- package/dist/wpf/extractors/regex/viewmodel-regex.js.map +1 -0
- package/dist/wpf/extractors/regex/xaml-regex.d.ts +77 -0
- package/dist/wpf/extractors/regex/xaml-regex.d.ts.map +1 -0
- package/dist/wpf/extractors/regex/xaml-regex.js +353 -0
- package/dist/wpf/extractors/regex/xaml-regex.js.map +1 -0
- package/dist/wpf/extractors/resource-dictionary-parser.d.ts +103 -0
- package/dist/wpf/extractors/resource-dictionary-parser.d.ts.map +1 -0
- package/dist/wpf/extractors/resource-dictionary-parser.js +296 -0
- package/dist/wpf/extractors/resource-dictionary-parser.js.map +1 -0
- package/dist/wpf/extractors/value-converter-extractor.d.ts +128 -0
- package/dist/wpf/extractors/value-converter-extractor.d.ts.map +1 -0
- package/dist/wpf/extractors/value-converter-extractor.js +312 -0
- package/dist/wpf/extractors/value-converter-extractor.js.map +1 -0
- package/dist/wpf/extractors/viewmodel-hybrid-extractor.d.ts +104 -0
- package/dist/wpf/extractors/viewmodel-hybrid-extractor.d.ts.map +1 -0
- package/dist/wpf/extractors/viewmodel-hybrid-extractor.js +513 -0
- package/dist/wpf/extractors/viewmodel-hybrid-extractor.js.map +1 -0
- package/dist/wpf/extractors/xaml-hybrid-extractor.d.ts +98 -0
- package/dist/wpf/extractors/xaml-hybrid-extractor.d.ts.map +1 -0
- package/dist/wpf/extractors/xaml-hybrid-extractor.js +444 -0
- package/dist/wpf/extractors/xaml-hybrid-extractor.js.map +1 -0
- package/dist/wpf/index.d.ts +25 -0
- package/dist/wpf/index.d.ts.map +1 -0
- package/dist/wpf/index.js +31 -0
- package/dist/wpf/index.js.map +1 -0
- package/dist/wpf/integration/wpf-callgraph-adapter.d.ts +82 -0
- package/dist/wpf/integration/wpf-callgraph-adapter.d.ts.map +1 -0
- package/dist/wpf/integration/wpf-callgraph-adapter.js +311 -0
- package/dist/wpf/integration/wpf-callgraph-adapter.js.map +1 -0
- package/dist/wpf/integration/wpf-data-flow-tracer.d.ts +129 -0
- package/dist/wpf/integration/wpf-data-flow-tracer.d.ts.map +1 -0
- package/dist/wpf/integration/wpf-data-flow-tracer.js +367 -0
- package/dist/wpf/integration/wpf-data-flow-tracer.js.map +1 -0
- package/dist/wpf/linkers/datacontext-resolver.d.ts +66 -0
- package/dist/wpf/linkers/datacontext-resolver.d.ts.map +1 -0
- package/dist/wpf/linkers/datacontext-resolver.js +240 -0
- package/dist/wpf/linkers/datacontext-resolver.js.map +1 -0
- package/dist/wpf/linkers/viewmodel-linker.d.ts +71 -0
- package/dist/wpf/linkers/viewmodel-linker.d.ts.map +1 -0
- package/dist/wpf/linkers/viewmodel-linker.js +268 -0
- package/dist/wpf/linkers/viewmodel-linker.js.map +1 -0
- package/dist/wpf/types.d.ts +451 -0
- package/dist/wpf/types.d.ts.map +1 -0
- package/dist/wpf/types.js +8 -0
- package/dist/wpf/types.js.map +1 -0
- package/dist/wpf/wpf-analyzer.d.ts +114 -0
- package/dist/wpf/wpf-analyzer.d.ts.map +1 -0
- package/dist/wpf/wpf-analyzer.js +332 -0
- package/dist/wpf/wpf-analyzer.js.map +1 -0
- package/dist/wrappers/clustering/clusterer.d.ts +43 -0
- package/dist/wrappers/clustering/clusterer.d.ts.map +1 -0
- package/dist/wrappers/clustering/clusterer.js +374 -0
- package/dist/wrappers/clustering/clusterer.js.map +1 -0
- package/dist/wrappers/clustering/exclusions.d.ts +47 -0
- package/dist/wrappers/clustering/exclusions.d.ts.map +1 -0
- package/dist/wrappers/clustering/exclusions.js +318 -0
- package/dist/wrappers/clustering/exclusions.js.map +1 -0
- package/dist/wrappers/clustering/index.d.ts +6 -0
- package/dist/wrappers/clustering/index.d.ts.map +1 -0
- package/dist/wrappers/clustering/index.js +6 -0
- package/dist/wrappers/clustering/index.js.map +1 -0
- package/dist/wrappers/detection/detector.d.ts +69 -0
- package/dist/wrappers/detection/detector.d.ts.map +1 -0
- package/dist/wrappers/detection/detector.js +279 -0
- package/dist/wrappers/detection/detector.js.map +1 -0
- package/dist/wrappers/detection/index.d.ts +5 -0
- package/dist/wrappers/detection/index.d.ts.map +1 -0
- package/dist/wrappers/detection/index.js +5 -0
- package/dist/wrappers/detection/index.js.map +1 -0
- package/dist/wrappers/export/index.d.ts +5 -0
- package/dist/wrappers/export/index.d.ts.map +1 -0
- package/dist/wrappers/export/index.js +5 -0
- package/dist/wrappers/export/index.js.map +1 -0
- package/dist/wrappers/export/json.d.ts +127 -0
- package/dist/wrappers/export/json.d.ts.map +1 -0
- package/dist/wrappers/export/json.js +160 -0
- package/dist/wrappers/export/json.js.map +1 -0
- package/dist/wrappers/index.d.ts +56 -0
- package/dist/wrappers/index.d.ts.map +1 -0
- package/dist/wrappers/index.js +159 -0
- package/dist/wrappers/index.js.map +1 -0
- package/dist/wrappers/integration/adapter.d.ts +52 -0
- package/dist/wrappers/integration/adapter.d.ts.map +1 -0
- package/dist/wrappers/integration/adapter.js +210 -0
- package/dist/wrappers/integration/adapter.js.map +1 -0
- package/dist/wrappers/integration/index.d.ts +9 -0
- package/dist/wrappers/integration/index.d.ts.map +1 -0
- package/dist/wrappers/integration/index.js +12 -0
- package/dist/wrappers/integration/index.js.map +1 -0
- package/dist/wrappers/integration/pattern-adapter.d.ts +52 -0
- package/dist/wrappers/integration/pattern-adapter.d.ts.map +1 -0
- package/dist/wrappers/integration/pattern-adapter.js +192 -0
- package/dist/wrappers/integration/pattern-adapter.js.map +1 -0
- package/dist/wrappers/integration/scanner.d.ts +85 -0
- package/dist/wrappers/integration/scanner.d.ts.map +1 -0
- package/dist/wrappers/integration/scanner.js +367 -0
- package/dist/wrappers/integration/scanner.js.map +1 -0
- package/dist/wrappers/primitives/discovery.d.ts +57 -0
- package/dist/wrappers/primitives/discovery.d.ts.map +1 -0
- package/dist/wrappers/primitives/discovery.js +389 -0
- package/dist/wrappers/primitives/discovery.js.map +1 -0
- package/dist/wrappers/primitives/index.d.ts +6 -0
- package/dist/wrappers/primitives/index.d.ts.map +1 -0
- package/dist/wrappers/primitives/index.js +6 -0
- package/dist/wrappers/primitives/index.js.map +1 -0
- package/dist/wrappers/primitives/registry.d.ts +63 -0
- package/dist/wrappers/primitives/registry.d.ts.map +1 -0
- package/dist/wrappers/primitives/registry.js +447 -0
- package/dist/wrappers/primitives/registry.js.map +1 -0
- package/dist/wrappers/types.d.ts +137 -0
- package/dist/wrappers/types.d.ts.map +1 -0
- package/dist/wrappers/types.js +7 -0
- package/dist/wrappers/types.js.map +1 -0
- package/package.json +33 -18
- package/LICENSE +0 -21
|
@@ -0,0 +1,300 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Test Topology Types
|
|
3
|
+
*
|
|
4
|
+
* Types for analyzing test-to-code mapping, mock patterns, and test quality.
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Supported test frameworks
|
|
8
|
+
*/
|
|
9
|
+
export type TestFramework = 'jest' | 'vitest' | 'mocha' | 'ava' | 'tape' | 'pytest' | 'unittest' | 'nose' | 'junit4' | 'junit5' | 'testng' | 'xunit' | 'nunit' | 'mstest' | 'phpunit' | 'pest' | 'codeception' | 'go-testing' | 'testify' | 'ginkgo' | 'gomega' | 'unknown';
|
|
10
|
+
/**
|
|
11
|
+
* How a test reaches production code
|
|
12
|
+
*/
|
|
13
|
+
export type ReachType = 'direct' | 'transitive' | 'mocked';
|
|
14
|
+
/**
|
|
15
|
+
* A single test case extracted from a test file
|
|
16
|
+
*/
|
|
17
|
+
export interface TestCase {
|
|
18
|
+
/** Unique ID: file:name:line */
|
|
19
|
+
id: string;
|
|
20
|
+
/** Test name/description */
|
|
21
|
+
name: string;
|
|
22
|
+
/** Parent describe/context block */
|
|
23
|
+
parentBlock?: string | undefined;
|
|
24
|
+
/** Full qualified name (describe > it) */
|
|
25
|
+
qualifiedName: string;
|
|
26
|
+
/** File path */
|
|
27
|
+
file: string;
|
|
28
|
+
/** Line number */
|
|
29
|
+
line: number;
|
|
30
|
+
/** Functions directly called by this test */
|
|
31
|
+
directCalls: string[];
|
|
32
|
+
/** Functions transitively reachable */
|
|
33
|
+
transitiveCalls: string[];
|
|
34
|
+
/** Assertions in this test */
|
|
35
|
+
assertions: AssertionInfo[];
|
|
36
|
+
/** Test quality signals */
|
|
37
|
+
quality: TestQualitySignals;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Information about an assertion
|
|
41
|
+
*/
|
|
42
|
+
export interface AssertionInfo {
|
|
43
|
+
/** Assertion method (expect, assert, assertEquals, etc.) */
|
|
44
|
+
matcher: string;
|
|
45
|
+
/** Line number */
|
|
46
|
+
line: number;
|
|
47
|
+
/** Is this testing error cases? */
|
|
48
|
+
isErrorAssertion: boolean;
|
|
49
|
+
/** Is this testing edge cases? */
|
|
50
|
+
isEdgeCaseAssertion: boolean;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Test quality signals
|
|
54
|
+
*/
|
|
55
|
+
export interface TestQualitySignals {
|
|
56
|
+
/** Number of assertions */
|
|
57
|
+
assertionCount: number;
|
|
58
|
+
/** Does it test error cases? */
|
|
59
|
+
hasErrorCases: boolean;
|
|
60
|
+
/** Does it test edge cases (null, empty, boundary)? */
|
|
61
|
+
hasEdgeCases: boolean;
|
|
62
|
+
/** Mock-to-real ratio (high = potentially brittle) */
|
|
63
|
+
mockRatio: number;
|
|
64
|
+
/** Lines of setup vs actual test */
|
|
65
|
+
setupRatio: number;
|
|
66
|
+
/** Overall quality score 0-100 */
|
|
67
|
+
score: number;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* A mock/stub/spy statement
|
|
71
|
+
*/
|
|
72
|
+
export interface MockStatement {
|
|
73
|
+
/** What's being mocked (module path or function) */
|
|
74
|
+
target: string;
|
|
75
|
+
/** Mock type: jest.mock, sinon.stub, @patch, etc. */
|
|
76
|
+
mockType: string;
|
|
77
|
+
/** Line number */
|
|
78
|
+
line: number;
|
|
79
|
+
/** Is this mocking external deps (good) or internal code (suspicious)? */
|
|
80
|
+
isExternal: boolean;
|
|
81
|
+
/** The mock implementation if inline */
|
|
82
|
+
hasImplementation?: boolean;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Mock analysis for a test file or suite
|
|
86
|
+
*/
|
|
87
|
+
export interface MockAnalysis {
|
|
88
|
+
/** Total mocks across all tests */
|
|
89
|
+
totalMocks: number;
|
|
90
|
+
/** Mocks of external dependencies */
|
|
91
|
+
externalMocks: number;
|
|
92
|
+
/** Mocks of internal code */
|
|
93
|
+
internalMocks: number;
|
|
94
|
+
/** Percentage external */
|
|
95
|
+
externalPercent: number;
|
|
96
|
+
/** Percentage internal */
|
|
97
|
+
internalPercent: number;
|
|
98
|
+
/** Average mock ratio across tests */
|
|
99
|
+
avgMockRatio: number;
|
|
100
|
+
/** Tests with high mock ratio (>0.7) */
|
|
101
|
+
highMockRatioTests: Array<{
|
|
102
|
+
file: string;
|
|
103
|
+
testName: string;
|
|
104
|
+
mockRatio: number;
|
|
105
|
+
}>;
|
|
106
|
+
/** Most commonly mocked modules */
|
|
107
|
+
topMockedModules: Array<{
|
|
108
|
+
module: string;
|
|
109
|
+
count: number;
|
|
110
|
+
}>;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Test coverage for a source file
|
|
114
|
+
*/
|
|
115
|
+
export interface TestCoverage {
|
|
116
|
+
/** Source file being covered */
|
|
117
|
+
sourceFile: string;
|
|
118
|
+
/** Tests that cover this file */
|
|
119
|
+
tests: TestCoverageInfo[];
|
|
120
|
+
/** Functions in this file */
|
|
121
|
+
functions: FunctionCoverageInfo[];
|
|
122
|
+
/** Overall coverage percentage */
|
|
123
|
+
coveragePercent: number;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Info about a test covering a file
|
|
127
|
+
*/
|
|
128
|
+
export interface TestCoverageInfo {
|
|
129
|
+
/** Test file */
|
|
130
|
+
testFile: string;
|
|
131
|
+
/** Test name */
|
|
132
|
+
testName: string;
|
|
133
|
+
/** How the test reaches this code */
|
|
134
|
+
reachType: ReachType;
|
|
135
|
+
/** Call depth from test to this code */
|
|
136
|
+
depth: number;
|
|
137
|
+
/** Confidence this test actually exercises this code */
|
|
138
|
+
confidence: number;
|
|
139
|
+
/** Specific functions covered */
|
|
140
|
+
coveredFunctions: string[];
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Coverage info for a function
|
|
144
|
+
*/
|
|
145
|
+
export interface FunctionCoverageInfo {
|
|
146
|
+
/** Function ID */
|
|
147
|
+
functionId: string;
|
|
148
|
+
/** Function name */
|
|
149
|
+
name: string;
|
|
150
|
+
/** Line number */
|
|
151
|
+
line: number;
|
|
152
|
+
/** Is this function covered by any test? */
|
|
153
|
+
isCovered: boolean;
|
|
154
|
+
/** Tests that cover this function */
|
|
155
|
+
coveringTests: string[];
|
|
156
|
+
/** Is coverage via mock (not real execution)? */
|
|
157
|
+
isMockedOnly: boolean;
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* A function with no test coverage
|
|
161
|
+
*/
|
|
162
|
+
export interface UncoveredFunction {
|
|
163
|
+
/** Function ID */
|
|
164
|
+
functionId: string;
|
|
165
|
+
/** Function name */
|
|
166
|
+
name: string;
|
|
167
|
+
/** Qualified name */
|
|
168
|
+
qualifiedName: string;
|
|
169
|
+
/** File path */
|
|
170
|
+
file: string;
|
|
171
|
+
/** Line number */
|
|
172
|
+
line: number;
|
|
173
|
+
/** Why it might be intentionally uncovered */
|
|
174
|
+
possibleReasons: UncoveredReason[];
|
|
175
|
+
/** Risk if this breaks (0-100) */
|
|
176
|
+
riskScore: number;
|
|
177
|
+
/** Is this an entry point? */
|
|
178
|
+
isEntryPoint: boolean;
|
|
179
|
+
/** Does it access sensitive data? */
|
|
180
|
+
accessesSensitiveData: boolean;
|
|
181
|
+
}
|
|
182
|
+
export type UncoveredReason = 'dead-code' | 'framework-hook' | 'generated' | 'trivial' | 'test-only' | 'deprecated';
|
|
183
|
+
/**
|
|
184
|
+
* Result of extracting tests from a file
|
|
185
|
+
*/
|
|
186
|
+
export interface TestExtraction {
|
|
187
|
+
/** File path */
|
|
188
|
+
file: string;
|
|
189
|
+
/** Detected framework */
|
|
190
|
+
framework: TestFramework;
|
|
191
|
+
/** Language */
|
|
192
|
+
language: 'typescript' | 'javascript' | 'python' | 'java' | 'csharp' | 'php' | 'go';
|
|
193
|
+
/** Extracted test cases */
|
|
194
|
+
testCases: TestCase[];
|
|
195
|
+
/** Mock statements */
|
|
196
|
+
mocks: MockStatement[];
|
|
197
|
+
/** Setup blocks (beforeEach, setUp, etc.) */
|
|
198
|
+
setupBlocks: SetupBlock[];
|
|
199
|
+
/** Fixtures (pytest fixtures, etc.) */
|
|
200
|
+
fixtures?: FixtureInfo[] | undefined;
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* A setup/teardown block
|
|
204
|
+
*/
|
|
205
|
+
export interface SetupBlock {
|
|
206
|
+
/** Type: beforeEach, afterEach, beforeAll, etc. */
|
|
207
|
+
type: 'beforeEach' | 'afterEach' | 'beforeAll' | 'afterAll' | 'setUp' | 'tearDown';
|
|
208
|
+
/** Line number */
|
|
209
|
+
line: number;
|
|
210
|
+
/** Functions called in setup */
|
|
211
|
+
calls: string[];
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* Fixture info (pytest, etc.)
|
|
215
|
+
*/
|
|
216
|
+
export interface FixtureInfo {
|
|
217
|
+
/** Fixture name */
|
|
218
|
+
name: string;
|
|
219
|
+
/** Scope: function, class, module, session */
|
|
220
|
+
scope: string;
|
|
221
|
+
/** Line number */
|
|
222
|
+
line: number;
|
|
223
|
+
/** What it provides */
|
|
224
|
+
provides?: string;
|
|
225
|
+
}
|
|
226
|
+
/**
|
|
227
|
+
* Minimum test set for changed files
|
|
228
|
+
*/
|
|
229
|
+
export interface MinimumTestSet {
|
|
230
|
+
/** Tests to run */
|
|
231
|
+
tests: Array<{
|
|
232
|
+
file: string;
|
|
233
|
+
name: string;
|
|
234
|
+
reason: string;
|
|
235
|
+
}>;
|
|
236
|
+
/** Total tests in suite */
|
|
237
|
+
totalTests: number;
|
|
238
|
+
/** Tests selected */
|
|
239
|
+
selectedTests: number;
|
|
240
|
+
/** Estimated time saved */
|
|
241
|
+
timeSaved: string;
|
|
242
|
+
/** Coverage of changed code */
|
|
243
|
+
changedCodeCoverage: number;
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* Test topology summary
|
|
247
|
+
*/
|
|
248
|
+
export interface TestTopologySummary {
|
|
249
|
+
/** Number of test files */
|
|
250
|
+
testFiles: number;
|
|
251
|
+
/** Number of test cases */
|
|
252
|
+
testCases: number;
|
|
253
|
+
/** Source files with coverage */
|
|
254
|
+
coveredFiles: number;
|
|
255
|
+
/** Total source files */
|
|
256
|
+
totalFiles: number;
|
|
257
|
+
/** Coverage percentage */
|
|
258
|
+
coveragePercent: number;
|
|
259
|
+
/** Functions with coverage */
|
|
260
|
+
coveredFunctions: number;
|
|
261
|
+
/** Total functions */
|
|
262
|
+
totalFunctions: number;
|
|
263
|
+
/** Function coverage percentage */
|
|
264
|
+
functionCoveragePercent: number;
|
|
265
|
+
/** Average mock ratio */
|
|
266
|
+
avgMockRatio: number;
|
|
267
|
+
/** Average test quality score */
|
|
268
|
+
avgQualityScore: number;
|
|
269
|
+
/** By framework */
|
|
270
|
+
byFramework: Record<TestFramework, number>;
|
|
271
|
+
}
|
|
272
|
+
/**
|
|
273
|
+
* Options for test topology analysis
|
|
274
|
+
*/
|
|
275
|
+
export interface TestTopologyOptions {
|
|
276
|
+
/** Root directory */
|
|
277
|
+
rootDir: string;
|
|
278
|
+
/** Test file patterns (glob) */
|
|
279
|
+
testPatterns?: string[];
|
|
280
|
+
/** Source file patterns (glob) */
|
|
281
|
+
sourcePatterns?: string[];
|
|
282
|
+
/** Directories to ignore */
|
|
283
|
+
ignorePatterns?: string[];
|
|
284
|
+
/** Include transitive coverage */
|
|
285
|
+
includeTransitive?: boolean;
|
|
286
|
+
/** Maximum depth for transitive analysis */
|
|
287
|
+
maxDepth?: number;
|
|
288
|
+
}
|
|
289
|
+
/**
|
|
290
|
+
* Options for uncovered function query
|
|
291
|
+
*/
|
|
292
|
+
export interface UncoveredOptions {
|
|
293
|
+
/** Minimum risk level */
|
|
294
|
+
minRisk?: 'low' | 'medium' | 'high';
|
|
295
|
+
/** Maximum results */
|
|
296
|
+
limit?: number;
|
|
297
|
+
/** Include possible reasons */
|
|
298
|
+
includeReasons?: boolean;
|
|
299
|
+
}
|
|
300
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/test-topology/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH;;GAEG;AACH,MAAM,MAAM,aAAa,GAErB,MAAM,GACN,QAAQ,GACR,OAAO,GACP,KAAK,GACL,MAAM,GAEN,QAAQ,GACR,UAAU,GACV,MAAM,GAEN,QAAQ,GACR,QAAQ,GACR,QAAQ,GAER,OAAO,GACP,OAAO,GACP,QAAQ,GAER,SAAS,GACT,MAAM,GACN,aAAa,GAEb,YAAY,GACZ,SAAS,GACT,QAAQ,GACR,QAAQ,GACR,SAAS,CAAC;AAEd;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG,YAAY,GAAG,QAAQ,CAAC;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Ae,EAAE,MAAM,CAAC;IACxB,8BAA8B;IAC9B,gBAAgB,EAAE,MAAM,CAAC;IACzB,sBAAsB;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,mCAAmC;IACnC,uBAAuB,EAAE,MAAM,CAAC;IAChC,yBAAyB;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,iCAAiC;IACjC,eAAe,EAAE,MAAM,CAAC;IACxB,mBAAmB;IACnB,WAAW,EAAE,MAAM,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;CAC5C;AAMD;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,qBAAqB;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,gCAAgC;IAChC,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,kCAAkC;IAClC,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,4BAA4B;IAC5B,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,kCAAkC;IAClC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,4CAA4C;IAC5C,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,yBAAyB;IACzB,OAAO,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,CAAC;IACpC,sBAAsB;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,+BAA+B;IAC/B,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/test-topology/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* database/sql Pattern Matcher
|
|
3
|
+
*
|
|
4
|
+
* Matches Go standard library database/sql patterns:
|
|
5
|
+
* - db.Query("SELECT * FROM users")
|
|
6
|
+
* - db.QueryRow("SELECT * FROM users WHERE id = ?", id)
|
|
7
|
+
* - db.Exec("INSERT INTO users ...")
|
|
8
|
+
* - db.Prepare("SELECT * FROM users WHERE id = ?")
|
|
9
|
+
* - stmt.Query(args...)
|
|
10
|
+
* - rows.Scan(&user.Name, &user.Email)
|
|
11
|
+
*
|
|
12
|
+
* @requirements Go Language Support
|
|
13
|
+
*/
|
|
14
|
+
import type { UnifiedCallChain, PatternMatchResult, UnifiedLanguage } from '../types.js';
|
|
15
|
+
import { BaseMatcher } from './base-matcher.js';
|
|
16
|
+
/**
|
|
17
|
+
* database/sql pattern matcher
|
|
18
|
+
*/
|
|
19
|
+
export declare class DatabaseSqlMatcher extends BaseMatcher {
|
|
20
|
+
readonly id = "database-sql";
|
|
21
|
+
readonly name = "database/sql";
|
|
22
|
+
readonly languages: UnifiedLanguage[];
|
|
23
|
+
readonly priority = 80;
|
|
24
|
+
private readonly readMethods;
|
|
25
|
+
private readonly writeMethods;
|
|
26
|
+
private readonly prepareMethods;
|
|
27
|
+
match(chain: UnifiedCallChain): PatternMatchResult | null;
|
|
28
|
+
private matchDbPattern;
|
|
29
|
+
private matchTransactionPattern;
|
|
30
|
+
private matchStatementPattern;
|
|
31
|
+
private analyzeChain;
|
|
32
|
+
private getOperation;
|
|
33
|
+
private getOperationFromSql;
|
|
34
|
+
private extractFromSql;
|
|
35
|
+
private extractSqlString;
|
|
36
|
+
private looksLikeSql;
|
|
37
|
+
private extractTableFromSql;
|
|
38
|
+
private extractFieldsFromSql;
|
|
39
|
+
private cleanTableName;
|
|
40
|
+
private unquoteString;
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=database-sql-matcher.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"database-sql-matcher.d.ts","sourceRoot":"","sources":["../../../src/unified-provider/matching/database-sql-matcher.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAGH,OAAO,KAAK,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,eAAe,EAAiB,MAAM,aAAa,CAAC;AACxG,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD;;GAEG;AACH,qBAAa,kBAAmB,SAAQ,WAAW;IACjD,QAAQ,CAAC,EAAE,kBAAkB;IAC7B,QAAQ,CAAC,IAAI,kBAAkB;IAC/B,QAAQ,CAAC,SAAS,EAAE,eAAe,EAAE,CAAU;IAC/C,QAAQ,CAAC,QAAQ,MAAM;IAEvB,OAAO,CAAC,QAAQ,CAAC,WAAW,CAE1B;IAEF,OAAO,CAAC,QAAQ,CAAC,YAAY,CAE3B;IAEF,OAAO,CAAC,QAAQ,CAAC,cAAc,CAE7B;IAEF,KAAK,CAAC,KAAK,EAAE,gBAAgB,GAAG,kBAAkB,GAAG,IAAI;IAgBzD,OAAO,CAAC,cAAc;IAYtB,OAAO,CAAC,uBAAuB;IAY/B,OAAO,CAAC,qBAAqB;IAY7B,OAAO,CAAC,YAAY;IAsCpB,OAAO,CAAC,YAAY;IAMpB,OAAO,CAAC,mBAAmB;IAoB3B,OAAO,CAAC,cAAc;IAUtB,OAAO,CAAC,gBAAgB;IAuBxB,OAAO,CAAC,YAAY;IAapB,OAAO,CAAC,mBAAmB;IAgD3B,OAAO,CAAC,oBAAoB;IA2D5B,OAAO,CAAC,cAAc;IAItB,OAAO,CAAC,aAAa;CAGtB"}
|
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* database/sql Pattern Matcher
|
|
3
|
+
*
|
|
4
|
+
* Matches Go standard library database/sql patterns:
|
|
5
|
+
* - db.Query("SELECT * FROM users")
|
|
6
|
+
* - db.QueryRow("SELECT * FROM users WHERE id = ?", id)
|
|
7
|
+
* - db.Exec("INSERT INTO users ...")
|
|
8
|
+
* - db.Prepare("SELECT * FROM users WHERE id = ?")
|
|
9
|
+
* - stmt.Query(args...)
|
|
10
|
+
* - rows.Scan(&user.Name, &user.Email)
|
|
11
|
+
*
|
|
12
|
+
* @requirements Go Language Support
|
|
13
|
+
*/
|
|
14
|
+
import { BaseMatcher } from './base-matcher.js';
|
|
15
|
+
/**
|
|
16
|
+
* database/sql pattern matcher
|
|
17
|
+
*/
|
|
18
|
+
export class DatabaseSqlMatcher extends BaseMatcher {
|
|
19
|
+
id = 'database-sql';
|
|
20
|
+
name = 'database/sql';
|
|
21
|
+
languages = ['go'];
|
|
22
|
+
priority = 80; // Lower priority than GORM and sqlx
|
|
23
|
+
readMethods = [
|
|
24
|
+
'Query', 'QueryRow', 'QueryContext', 'QueryRowContext',
|
|
25
|
+
];
|
|
26
|
+
writeMethods = [
|
|
27
|
+
'Exec', 'ExecContext',
|
|
28
|
+
];
|
|
29
|
+
prepareMethods = [
|
|
30
|
+
'Prepare', 'PrepareContext',
|
|
31
|
+
];
|
|
32
|
+
match(chain) {
|
|
33
|
+
// Pattern 1: db.Method() where db is a sql.DB instance
|
|
34
|
+
const dbMatch = this.matchDbPattern(chain);
|
|
35
|
+
if (dbMatch)
|
|
36
|
+
return dbMatch;
|
|
37
|
+
// Pattern 2: tx.Method() for transaction patterns
|
|
38
|
+
const txMatch = this.matchTransactionPattern(chain);
|
|
39
|
+
if (txMatch)
|
|
40
|
+
return txMatch;
|
|
41
|
+
// Pattern 3: stmt.Method() for prepared statement patterns
|
|
42
|
+
const stmtMatch = this.matchStatementPattern(chain);
|
|
43
|
+
if (stmtMatch)
|
|
44
|
+
return stmtMatch;
|
|
45
|
+
return null;
|
|
46
|
+
}
|
|
47
|
+
matchDbPattern(chain) {
|
|
48
|
+
const receiver = chain.receiver.toLowerCase();
|
|
49
|
+
// Common database/sql receiver names
|
|
50
|
+
const dbReceivers = ['db', 'database', 'conn', 'connection', 'pool'];
|
|
51
|
+
if (!dbReceivers.some(r => receiver.includes(r))) {
|
|
52
|
+
return null;
|
|
53
|
+
}
|
|
54
|
+
return this.analyzeChain(chain);
|
|
55
|
+
}
|
|
56
|
+
matchTransactionPattern(chain) {
|
|
57
|
+
const receiver = chain.receiver.toLowerCase();
|
|
58
|
+
// Transaction receiver names
|
|
59
|
+
const txReceivers = ['tx', 'transaction', 'trx'];
|
|
60
|
+
if (!txReceivers.some(r => receiver === r || receiver.endsWith(r))) {
|
|
61
|
+
return null;
|
|
62
|
+
}
|
|
63
|
+
return this.analyzeChain(chain);
|
|
64
|
+
}
|
|
65
|
+
matchStatementPattern(chain) {
|
|
66
|
+
const receiver = chain.receiver.toLowerCase();
|
|
67
|
+
// Prepared statement receiver names
|
|
68
|
+
const stmtReceivers = ['stmt', 'statement', 'prepared'];
|
|
69
|
+
if (!stmtReceivers.some(r => receiver.includes(r))) {
|
|
70
|
+
return null;
|
|
71
|
+
}
|
|
72
|
+
return this.analyzeChain(chain);
|
|
73
|
+
}
|
|
74
|
+
analyzeChain(chain) {
|
|
75
|
+
if (chain.segments.length < 1)
|
|
76
|
+
return null;
|
|
77
|
+
const segment = chain.segments[0];
|
|
78
|
+
if (!segment?.isCall)
|
|
79
|
+
return null;
|
|
80
|
+
const methodName = segment.name;
|
|
81
|
+
let operation = this.getOperation(methodName);
|
|
82
|
+
// For Exec methods, determine operation from SQL
|
|
83
|
+
if (methodName === 'Exec' || methodName === 'ExecContext') {
|
|
84
|
+
const sqlOp = this.getOperationFromSql(segment.args);
|
|
85
|
+
if (sqlOp)
|
|
86
|
+
operation = sqlOp;
|
|
87
|
+
}
|
|
88
|
+
// For Prepare methods, try to determine operation from SQL
|
|
89
|
+
if (this.prepareMethods.includes(methodName)) {
|
|
90
|
+
const sqlOp = this.getOperationFromSql(segment.args);
|
|
91
|
+
operation = sqlOp ?? 'read'; // Default to read for prepared statements
|
|
92
|
+
}
|
|
93
|
+
if (!operation)
|
|
94
|
+
return null;
|
|
95
|
+
// Extract table and fields from SQL query
|
|
96
|
+
const { table, fields } = this.extractFromSql(segment.args);
|
|
97
|
+
return this.createMatch({
|
|
98
|
+
table: table ?? 'unknown',
|
|
99
|
+
fields,
|
|
100
|
+
operation,
|
|
101
|
+
confidence: table ? 0.8 : 0.6,
|
|
102
|
+
metadata: {
|
|
103
|
+
pattern: 'database-sql',
|
|
104
|
+
method: methodName,
|
|
105
|
+
},
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
getOperation(methodName) {
|
|
109
|
+
if (this.readMethods.includes(methodName))
|
|
110
|
+
return 'read';
|
|
111
|
+
if (this.writeMethods.includes(methodName))
|
|
112
|
+
return 'write';
|
|
113
|
+
return null;
|
|
114
|
+
}
|
|
115
|
+
getOperationFromSql(args) {
|
|
116
|
+
const sql = this.extractSqlString(args);
|
|
117
|
+
if (!sql)
|
|
118
|
+
return null;
|
|
119
|
+
const upperSql = sql.toUpperCase().trim();
|
|
120
|
+
if (upperSql.startsWith('SELECT'))
|
|
121
|
+
return 'read';
|
|
122
|
+
if (upperSql.startsWith('INSERT'))
|
|
123
|
+
return 'write';
|
|
124
|
+
if (upperSql.startsWith('UPDATE'))
|
|
125
|
+
return 'write';
|
|
126
|
+
if (upperSql.startsWith('DELETE'))
|
|
127
|
+
return 'delete';
|
|
128
|
+
if (upperSql.startsWith('UPSERT'))
|
|
129
|
+
return 'write';
|
|
130
|
+
if (upperSql.startsWith('MERGE'))
|
|
131
|
+
return 'write';
|
|
132
|
+
if (upperSql.startsWith('CREATE'))
|
|
133
|
+
return 'write';
|
|
134
|
+
if (upperSql.startsWith('ALTER'))
|
|
135
|
+
return 'write';
|
|
136
|
+
if (upperSql.startsWith('DROP'))
|
|
137
|
+
return 'delete';
|
|
138
|
+
if (upperSql.startsWith('TRUNCATE'))
|
|
139
|
+
return 'delete';
|
|
140
|
+
return null;
|
|
141
|
+
}
|
|
142
|
+
extractFromSql(args) {
|
|
143
|
+
const sql = this.extractSqlString(args);
|
|
144
|
+
if (!sql)
|
|
145
|
+
return { table: null, fields: [] };
|
|
146
|
+
const table = this.extractTableFromSql(sql);
|
|
147
|
+
const fields = this.extractFieldsFromSql(sql);
|
|
148
|
+
return { table, fields };
|
|
149
|
+
}
|
|
150
|
+
extractSqlString(args) {
|
|
151
|
+
// SQL is typically the first argument
|
|
152
|
+
if (args.length === 0)
|
|
153
|
+
return null;
|
|
154
|
+
const firstArg = args[0];
|
|
155
|
+
if (firstArg.stringValue) {
|
|
156
|
+
const value = this.unquoteString(firstArg.stringValue);
|
|
157
|
+
if (this.looksLikeSql(value)) {
|
|
158
|
+
return value;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
if (firstArg.type === 'string') {
|
|
162
|
+
const value = this.unquoteString(firstArg.value);
|
|
163
|
+
if (this.looksLikeSql(value)) {
|
|
164
|
+
return value;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
return null;
|
|
168
|
+
}
|
|
169
|
+
looksLikeSql(str) {
|
|
170
|
+
const upperStr = str.toUpperCase().trim();
|
|
171
|
+
return upperStr.startsWith('SELECT') ||
|
|
172
|
+
upperStr.startsWith('INSERT') ||
|
|
173
|
+
upperStr.startsWith('UPDATE') ||
|
|
174
|
+
upperStr.startsWith('DELETE') ||
|
|
175
|
+
upperStr.startsWith('WITH') ||
|
|
176
|
+
upperStr.startsWith('CREATE') ||
|
|
177
|
+
upperStr.startsWith('ALTER') ||
|
|
178
|
+
upperStr.startsWith('DROP') ||
|
|
179
|
+
upperStr.startsWith('TRUNCATE');
|
|
180
|
+
}
|
|
181
|
+
extractTableFromSql(sql) {
|
|
182
|
+
const upperSql = sql.toUpperCase();
|
|
183
|
+
// SELECT ... FROM table
|
|
184
|
+
const fromMatch = upperSql.match(/FROM\s+(["`]?[\w.]+["`]?)/i);
|
|
185
|
+
if (fromMatch) {
|
|
186
|
+
return this.cleanTableName(fromMatch[1]);
|
|
187
|
+
}
|
|
188
|
+
// INSERT INTO table
|
|
189
|
+
const insertMatch = upperSql.match(/INSERT\s+INTO\s+(["`]?[\w.]+["`]?)/i);
|
|
190
|
+
if (insertMatch) {
|
|
191
|
+
return this.cleanTableName(insertMatch[1]);
|
|
192
|
+
}
|
|
193
|
+
// UPDATE table
|
|
194
|
+
const updateMatch = upperSql.match(/UPDATE\s+(["`]?[\w.]+["`]?)/i);
|
|
195
|
+
if (updateMatch) {
|
|
196
|
+
return this.cleanTableName(updateMatch[1]);
|
|
197
|
+
}
|
|
198
|
+
// DELETE FROM table
|
|
199
|
+
const deleteMatch = upperSql.match(/DELETE\s+FROM\s+(["`]?[\w.]+["`]?)/i);
|
|
200
|
+
if (deleteMatch) {
|
|
201
|
+
return this.cleanTableName(deleteMatch[1]);
|
|
202
|
+
}
|
|
203
|
+
// CREATE TABLE table
|
|
204
|
+
const createMatch = upperSql.match(/CREATE\s+TABLE\s+(?:IF\s+NOT\s+EXISTS\s+)?(["`]?[\w.]+["`]?)/i);
|
|
205
|
+
if (createMatch) {
|
|
206
|
+
return this.cleanTableName(createMatch[1]);
|
|
207
|
+
}
|
|
208
|
+
// DROP TABLE table
|
|
209
|
+
const dropMatch = upperSql.match(/DROP\s+TABLE\s+(?:IF\s+EXISTS\s+)?(["`]?[\w.]+["`]?)/i);
|
|
210
|
+
if (dropMatch) {
|
|
211
|
+
return this.cleanTableName(dropMatch[1]);
|
|
212
|
+
}
|
|
213
|
+
// TRUNCATE TABLE table
|
|
214
|
+
const truncateMatch = upperSql.match(/TRUNCATE\s+(?:TABLE\s+)?(["`]?[\w.]+["`]?)/i);
|
|
215
|
+
if (truncateMatch) {
|
|
216
|
+
return this.cleanTableName(truncateMatch[1]);
|
|
217
|
+
}
|
|
218
|
+
return null;
|
|
219
|
+
}
|
|
220
|
+
extractFieldsFromSql(sql) {
|
|
221
|
+
const fields = [];
|
|
222
|
+
// Extract from SELECT clause
|
|
223
|
+
const selectMatch = sql.match(/SELECT\s+(.+?)\s+FROM/i);
|
|
224
|
+
if (selectMatch) {
|
|
225
|
+
const selectClause = selectMatch[1];
|
|
226
|
+
if (selectClause.trim() !== '*') {
|
|
227
|
+
const fieldParts = selectClause.split(',');
|
|
228
|
+
for (const part of fieldParts) {
|
|
229
|
+
const field = part.trim()
|
|
230
|
+
.replace(/\s+AS\s+\w+$/i, '') // Remove aliases
|
|
231
|
+
.replace(/^[\w.]+\./, ''); // Remove table prefix
|
|
232
|
+
if (field && field !== '*') {
|
|
233
|
+
fields.push(field);
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
// Extract from WHERE clause
|
|
239
|
+
const whereMatch = sql.match(/WHERE\s+(.+?)(?:ORDER|GROUP|LIMIT|$)/i);
|
|
240
|
+
if (whereMatch) {
|
|
241
|
+
const whereClause = whereMatch[1];
|
|
242
|
+
const fieldMatches = whereClause.match(/\b([a-z_][a-z0-9_]*)\s*(?:=|!=|<|>|<=|>=|LIKE|IN|IS)/gi);
|
|
243
|
+
if (fieldMatches) {
|
|
244
|
+
for (const match of fieldMatches) {
|
|
245
|
+
const field = match.replace(/\s*(?:=|!=|<|>|<=|>=|LIKE|IN|IS).*/i, '').trim();
|
|
246
|
+
if (field && !['AND', 'OR', 'NOT'].includes(field.toUpperCase())) {
|
|
247
|
+
fields.push(field);
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
// Extract from INSERT columns
|
|
253
|
+
const insertMatch = sql.match(/INSERT\s+INTO\s+[\w.]+\s*\(([^)]+)\)/i);
|
|
254
|
+
if (insertMatch) {
|
|
255
|
+
const columns = insertMatch[1].split(',');
|
|
256
|
+
for (const col of columns) {
|
|
257
|
+
const field = col.trim().replace(/["`]/g, '');
|
|
258
|
+
if (field)
|
|
259
|
+
fields.push(field);
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
// Extract from UPDATE SET clause
|
|
263
|
+
const updateMatch = sql.match(/SET\s+(.+?)(?:WHERE|$)/i);
|
|
264
|
+
if (updateMatch) {
|
|
265
|
+
const setClause = updateMatch[1];
|
|
266
|
+
const setParts = setClause.split(',');
|
|
267
|
+
for (const part of setParts) {
|
|
268
|
+
const field = part.split('=')[0]?.trim().replace(/["`]/g, '');
|
|
269
|
+
if (field)
|
|
270
|
+
fields.push(field);
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
return [...new Set(fields)];
|
|
274
|
+
}
|
|
275
|
+
cleanTableName(name) {
|
|
276
|
+
return name.replace(/["`]/g, '').split('.').pop() ?? name;
|
|
277
|
+
}
|
|
278
|
+
unquoteString(str) {
|
|
279
|
+
return str.replace(/^["'`]|["'`]$/g, '');
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
//# sourceMappingURL=database-sql-matcher.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"database-sql-matcher.js","sourceRoot":"","sources":["../../../src/unified-provider/matching/database-sql-matcher.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAIH,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD;;GAEG;AACH,MAAM,OAAO,kBAAmB,SAAQ,WAAW;IACxC,EAAE,GAAG,cAAc,CAAC;IACpB,IAAI,GAAG,cAAc,CAAC;IACtB,SAAS,GAAsB,CAAC,IAAI,CAAC,CAAC;IACtC,QAAQ,GAAG,EAAE,CAAC,CAAC,oCAAoC;IAE3C,WAAW,GAAG;QAC7B,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,iBAAiB;KACvD,CAAC;IAEe,YAAY,GAAG;QAC9B,MAAM,EAAE,aAAa;KACtB,CAAC;IAEe,cAAc,GAAG;QAChC,SAAS,EAAE,gBAAgB;KAC5B,CAAC;IAEF,KAAK,CAAC,KAAuB;QAC3B,uDAAuD;QACvD,MAAM,OAAO,GAAG,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;QAC3C,IAAI,OAAO;YAAE,OAAO,OAAO,CAAC;QAE5B,kDAAkD;QAClD,MAAM,OAAO,GAAG,IAAI,CAAC,uBAAuB,CAAC,KAAK,CAAC,CAAC;QACpD,IAAI,OAAO;YAAE,OAAO,OAAO,CAAC;QAE5B,2DAA2D;QAC3D,MAAM,SAAS,GAAG,IAAI,CAAC,qBAAqB,CAAC,KAAK,CAAC,CAAC;QACpD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