circle-ir-ai 1.1.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/CHANGELOG.md +105 -0
- package/LICENSE +15 -0
- package/README.md +336 -0
- package/dist/action-queue/aggregator.d.ts +40 -0
- package/dist/action-queue/aggregator.d.ts.map +1 -0
- package/dist/action-queue/aggregator.js +375 -0
- package/dist/action-queue/aggregator.js.map +1 -0
- package/dist/action-queue/index.d.ts +14 -0
- package/dist/action-queue/index.d.ts.map +1 -0
- package/dist/action-queue/index.js +17 -0
- package/dist/action-queue/index.js.map +1 -0
- package/dist/action-queue/queue.d.ts +74 -0
- package/dist/action-queue/queue.d.ts.map +1 -0
- package/dist/action-queue/queue.js +433 -0
- package/dist/action-queue/queue.js.map +1 -0
- package/dist/action-queue/types.d.ts +162 -0
- package/dist/action-queue/types.d.ts.map +1 -0
- package/dist/action-queue/types.js +44 -0
- package/dist/action-queue/types.js.map +1 -0
- package/dist/agents/enrichment-agent.d.ts +16 -0
- package/dist/agents/enrichment-agent.d.ts.map +1 -0
- package/dist/agents/enrichment-agent.js +102 -0
- package/dist/agents/enrichment-agent.js.map +1 -0
- package/dist/agents/index.d.ts +12 -0
- package/dist/agents/index.d.ts.map +1 -0
- package/dist/agents/index.js +15 -0
- package/dist/agents/index.js.map +1 -0
- package/dist/agents/mastra/agents.d.ts +373 -0
- package/dist/agents/mastra/agents.d.ts.map +1 -0
- package/dist/agents/mastra/agents.js +347 -0
- package/dist/agents/mastra/agents.js.map +1 -0
- package/dist/agents/mastra/index.d.ts +12 -0
- package/dist/agents/mastra/index.d.ts.map +1 -0
- package/dist/agents/mastra/index.js +17 -0
- package/dist/agents/mastra/index.js.map +1 -0
- package/dist/agents/mastra/instance.d.ts +383 -0
- package/dist/agents/mastra/instance.d.ts.map +1 -0
- package/dist/agents/mastra/instance.js +37 -0
- package/dist/agents/mastra/instance.js.map +1 -0
- package/dist/agents/mastra/steps.d.ts +300 -0
- package/dist/agents/mastra/steps.d.ts.map +1 -0
- package/dist/agents/mastra/steps.js +468 -0
- package/dist/agents/mastra/steps.js.map +1 -0
- package/dist/agents/mastra/swarm.d.ts +106 -0
- package/dist/agents/mastra/swarm.d.ts.map +1 -0
- package/dist/agents/mastra/swarm.js +501 -0
- package/dist/agents/mastra/swarm.js.map +1 -0
- package/dist/agents/mastra/workflow.d.ts +81 -0
- package/dist/agents/mastra/workflow.d.ts.map +1 -0
- package/dist/agents/mastra/workflow.js +460 -0
- package/dist/agents/mastra/workflow.js.map +1 -0
- package/dist/agents/multi/agents/security.d.ts +29 -0
- package/dist/agents/multi/agents/security.d.ts.map +1 -0
- package/dist/agents/multi/agents/security.js +830 -0
- package/dist/agents/multi/agents/security.js.map +1 -0
- package/dist/agents/multi/extractor.d.ts +21 -0
- package/dist/agents/multi/extractor.d.ts.map +1 -0
- package/dist/agents/multi/extractor.js +483 -0
- package/dist/agents/multi/extractor.js.map +1 -0
- package/dist/agents/multi/index.d.ts +32 -0
- package/dist/agents/multi/index.d.ts.map +1 -0
- package/dist/agents/multi/index.js +34 -0
- package/dist/agents/multi/index.js.map +1 -0
- package/dist/agents/multi/runner.d.ts +79 -0
- package/dist/agents/multi/runner.d.ts.map +1 -0
- package/dist/agents/multi/runner.js +323 -0
- package/dist/agents/multi/runner.js.map +1 -0
- package/dist/agents/security-agent.d.ts +16 -0
- package/dist/agents/security-agent.d.ts.map +1 -0
- package/dist/agents/security-agent.js +299 -0
- package/dist/agents/security-agent.js.map +1 -0
- package/dist/agents/types.d.ts +373 -0
- package/dist/agents/types.d.ts.map +1 -0
- package/dist/agents/types.js +14 -0
- package/dist/agents/types.js.map +1 -0
- package/dist/agents/verification-agent.d.ts +23 -0
- package/dist/agents/verification-agent.d.ts.map +1 -0
- package/dist/agents/verification-agent.js +217 -0
- package/dist/agents/verification-agent.js.map +1 -0
- package/dist/agents/workflow.d.ts +30 -0
- package/dist/agents/workflow.d.ts.map +1 -0
- package/dist/agents/workflow.js +79 -0
- package/dist/agents/workflow.js.map +1 -0
- package/dist/analysis/enriched.d.ts +16 -0
- package/dist/analysis/enriched.d.ts.map +1 -0
- package/dist/analysis/enriched.js +297 -0
- package/dist/analysis/enriched.js.map +1 -0
- package/dist/analysis/llm-correlated-predicates.d.ts +80 -0
- package/dist/analysis/llm-correlated-predicates.d.ts.map +1 -0
- package/dist/analysis/llm-correlated-predicates.js +255 -0
- package/dist/analysis/llm-correlated-predicates.js.map +1 -0
- package/dist/analysis/llm-cross-file-taint.d.ts +86 -0
- package/dist/analysis/llm-cross-file-taint.d.ts.map +1 -0
- package/dist/analysis/llm-cross-file-taint.js +264 -0
- package/dist/analysis/llm-cross-file-taint.js.map +1 -0
- package/dist/analysis/pattern-discovery.d.ts +79 -0
- package/dist/analysis/pattern-discovery.d.ts.map +1 -0
- package/dist/analysis/pattern-discovery.js +447 -0
- package/dist/analysis/pattern-discovery.js.map +1 -0
- package/dist/cache/file-cache.d.ts +89 -0
- package/dist/cache/file-cache.d.ts.map +1 -0
- package/dist/cache/file-cache.js +208 -0
- package/dist/cache/file-cache.js.map +1 -0
- package/dist/cache/index.d.ts +6 -0
- package/dist/cache/index.d.ts.map +1 -0
- package/dist/cache/index.js +5 -0
- package/dist/cache/index.js.map +1 -0
- package/dist/cli/args.d.ts +52 -0
- package/dist/cli/args.d.ts.map +1 -0
- package/dist/cli/args.js +422 -0
- package/dist/cli/args.js.map +1 -0
- package/dist/cli/colors.d.ts +31 -0
- package/dist/cli/colors.d.ts.map +1 -0
- package/dist/cli/colors.js +80 -0
- package/dist/cli/colors.js.map +1 -0
- package/dist/cli/commands/analyze-skill.d.ts +33 -0
- package/dist/cli/commands/analyze-skill.d.ts.map +1 -0
- package/dist/cli/commands/analyze-skill.js +217 -0
- package/dist/cli/commands/analyze-skill.js.map +1 -0
- package/dist/cli/commands/analyze.d.ts +18 -0
- package/dist/cli/commands/analyze.d.ts.map +1 -0
- package/dist/cli/commands/analyze.js +30 -0
- package/dist/cli/commands/analyze.js.map +1 -0
- package/dist/cli/commands/benchmark-runner.d.ts +42 -0
- package/dist/cli/commands/benchmark-runner.d.ts.map +1 -0
- package/dist/cli/commands/benchmark-runner.js +18 -0
- package/dist/cli/commands/benchmark-runner.js.map +1 -0
- package/dist/cli/commands/benchmark.d.ts +11 -0
- package/dist/cli/commands/benchmark.d.ts.map +1 -0
- package/dist/cli/commands/benchmark.js +90 -0
- package/dist/cli/commands/benchmark.js.map +1 -0
- package/dist/cli/commands/dead-code.d.ts +11 -0
- package/dist/cli/commands/dead-code.d.ts.map +1 -0
- package/dist/cli/commands/dead-code.js +65 -0
- package/dist/cli/commands/dead-code.js.map +1 -0
- package/dist/cli/commands/generate-spec.d.ts +11 -0
- package/dist/cli/commands/generate-spec.d.ts.map +1 -0
- package/dist/cli/commands/generate-spec.js +67 -0
- package/dist/cli/commands/generate-spec.js.map +1 -0
- package/dist/cli/commands/health.d.ts +11 -0
- package/dist/cli/commands/health.d.ts.map +1 -0
- package/dist/cli/commands/health.js +67 -0
- package/dist/cli/commands/health.js.map +1 -0
- package/dist/cli/commands/project.d.ts +21 -0
- package/dist/cli/commands/project.d.ts.map +1 -0
- package/dist/cli/commands/project.js +92 -0
- package/dist/cli/commands/project.js.map +1 -0
- package/dist/cli/commands/scan.d.ts +11 -0
- package/dist/cli/commands/scan.d.ts.map +1 -0
- package/dist/cli/commands/scan.js +68 -0
- package/dist/cli/commands/scan.js.map +1 -0
- package/dist/cli/commands/secrets.d.ts +11 -0
- package/dist/cli/commands/secrets.d.ts.map +1 -0
- package/dist/cli/commands/secrets.js +71 -0
- package/dist/cli/commands/secrets.js.map +1 -0
- package/dist/cli/commands/swarm.d.ts +20 -0
- package/dist/cli/commands/swarm.d.ts.map +1 -0
- package/dist/cli/commands/swarm.js +174 -0
- package/dist/cli/commands/swarm.js.map +1 -0
- package/dist/cli/config.d.ts +103 -0
- package/dist/cli/config.d.ts.map +1 -0
- package/dist/cli/config.js +307 -0
- package/dist/cli/config.js.map +1 -0
- package/dist/cli/discovery.d.ts +31 -0
- package/dist/cli/discovery.d.ts.map +1 -0
- package/dist/cli/discovery.js +212 -0
- package/dist/cli/discovery.js.map +1 -0
- package/dist/cli/formatters/index.d.ts +15 -0
- package/dist/cli/formatters/index.d.ts.map +1 -0
- package/dist/cli/formatters/index.js +51 -0
- package/dist/cli/formatters/index.js.map +1 -0
- package/dist/cli/formatters/json.d.ts +11 -0
- package/dist/cli/formatters/json.d.ts.map +1 -0
- package/dist/cli/formatters/json.js +12 -0
- package/dist/cli/formatters/json.js.map +1 -0
- package/dist/cli/formatters/project-json.d.ts +11 -0
- package/dist/cli/formatters/project-json.d.ts.map +1 -0
- package/dist/cli/formatters/project-json.js +12 -0
- package/dist/cli/formatters/project-json.js.map +1 -0
- package/dist/cli/formatters/project-sarif.d.ts +11 -0
- package/dist/cli/formatters/project-sarif.d.ts.map +1 -0
- package/dist/cli/formatters/project-sarif.js +127 -0
- package/dist/cli/formatters/project-sarif.js.map +1 -0
- package/dist/cli/formatters/project-summary.d.ts +11 -0
- package/dist/cli/formatters/project-summary.d.ts.map +1 -0
- package/dist/cli/formatters/project-summary.js +202 -0
- package/dist/cli/formatters/project-summary.js.map +1 -0
- package/dist/cli/formatters/sarif-shared.d.ts +101 -0
- package/dist/cli/formatters/sarif-shared.d.ts.map +1 -0
- package/dist/cli/formatters/sarif-shared.js +57 -0
- package/dist/cli/formatters/sarif-shared.js.map +1 -0
- package/dist/cli/formatters/sarif.d.ts +12 -0
- package/dist/cli/formatters/sarif.d.ts.map +1 -0
- package/dist/cli/formatters/sarif.js +92 -0
- package/dist/cli/formatters/sarif.js.map +1 -0
- package/dist/cli/formatters/summary.d.ts +11 -0
- package/dist/cli/formatters/summary.d.ts.map +1 -0
- package/dist/cli/formatters/summary.js +240 -0
- package/dist/cli/formatters/summary.js.map +1 -0
- package/dist/cli/formatters/two-phase-summary.d.ts +11 -0
- package/dist/cli/formatters/two-phase-summary.d.ts.map +1 -0
- package/dist/cli/formatters/two-phase-summary.js +188 -0
- package/dist/cli/formatters/two-phase-summary.js.map +1 -0
- package/dist/cli/index.d.ts +15 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +555 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/components/clustering.d.ts +60 -0
- package/dist/components/clustering.d.ts.map +1 -0
- package/dist/components/clustering.js +129 -0
- package/dist/components/clustering.js.map +1 -0
- package/dist/components/enrichment.d.ts +45 -0
- package/dist/components/enrichment.d.ts.map +1 -0
- package/dist/components/enrichment.js +193 -0
- package/dist/components/enrichment.js.map +1 -0
- package/dist/components/index.d.ts +29 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +56 -0
- package/dist/components/index.js.map +1 -0
- package/dist/dead-code/detector.d.ts +200 -0
- package/dist/dead-code/detector.d.ts.map +1 -0
- package/dist/dead-code/detector.js +1003 -0
- package/dist/dead-code/detector.js.map +1 -0
- package/dist/dead-code/index.d.ts +7 -0
- package/dist/dead-code/index.d.ts.map +1 -0
- package/dist/dead-code/index.js +7 -0
- package/dist/dead-code/index.js.map +1 -0
- package/dist/extractors/index.d.ts +15 -0
- package/dist/extractors/index.d.ts.map +1 -0
- package/dist/extractors/index.js +14 -0
- package/dist/extractors/index.js.map +1 -0
- package/dist/extractors/natural-language.d.ts +46 -0
- package/dist/extractors/natural-language.d.ts.map +1 -0
- package/dist/extractors/natural-language.js +228 -0
- package/dist/extractors/natural-language.js.map +1 -0
- package/dist/extractors/tree-sitter.d.ts +33 -0
- package/dist/extractors/tree-sitter.d.ts.map +1 -0
- package/dist/extractors/tree-sitter.js +69 -0
- package/dist/extractors/tree-sitter.js.map +1 -0
- package/dist/extractors/types.d.ts +62 -0
- package/dist/extractors/types.d.ts.map +1 -0
- package/dist/extractors/types.js +54 -0
- package/dist/extractors/types.js.map +1 -0
- package/dist/health-score/calculator.d.ts +123 -0
- package/dist/health-score/calculator.d.ts.map +1 -0
- package/dist/health-score/calculator.js +444 -0
- package/dist/health-score/calculator.js.map +1 -0
- package/dist/health-score/index.d.ts +12 -0
- package/dist/health-score/index.d.ts.map +1 -0
- package/dist/health-score/index.js +14 -0
- package/dist/health-score/index.js.map +1 -0
- package/dist/health-score/metrics.d.ts +142 -0
- package/dist/health-score/metrics.d.ts.map +1 -0
- package/dist/health-score/metrics.js +332 -0
- package/dist/health-score/metrics.js.map +1 -0
- package/dist/index.d.ts +26 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +43 -0
- package/dist/index.js.map +1 -0
- package/dist/llm/ax-client.d.ts +477 -0
- package/dist/llm/ax-client.d.ts.map +1 -0
- package/dist/llm/ax-client.js +1641 -0
- package/dist/llm/ax-client.js.map +1 -0
- package/dist/llm/config.d.ts +58 -0
- package/dist/llm/config.d.ts.map +1 -0
- package/dist/llm/config.js +97 -0
- package/dist/llm/config.js.map +1 -0
- package/dist/llm/discovery.d.ts +123 -0
- package/dist/llm/discovery.d.ts.map +1 -0
- package/dist/llm/discovery.js +505 -0
- package/dist/llm/discovery.js.map +1 -0
- package/dist/llm/enrichment.d.ts +108 -0
- package/dist/llm/enrichment.d.ts.map +1 -0
- package/dist/llm/enrichment.js +312 -0
- package/dist/llm/enrichment.js.map +1 -0
- package/dist/llm/index.d.ts +13 -0
- package/dist/llm/index.d.ts.map +1 -0
- package/dist/llm/index.js +22 -0
- package/dist/llm/index.js.map +1 -0
- package/dist/llm/language-context.d.ts +64 -0
- package/dist/llm/language-context.d.ts.map +1 -0
- package/dist/llm/language-context.js +492 -0
- package/dist/llm/language-context.js.map +1 -0
- package/dist/llm/pattern-verification.d.ts +39 -0
- package/dist/llm/pattern-verification.d.ts.map +1 -0
- package/dist/llm/pattern-verification.js +127 -0
- package/dist/llm/pattern-verification.js.map +1 -0
- package/dist/llm/prompt-security.d.ts +120 -0
- package/dist/llm/prompt-security.d.ts.map +1 -0
- package/dist/llm/prompt-security.js +301 -0
- package/dist/llm/prompt-security.js.map +1 -0
- package/dist/llm/prompts/index.d.ts +31 -0
- package/dist/llm/prompts/index.d.ts.map +1 -0
- package/dist/llm/prompts/index.js +92 -0
- package/dist/llm/prompts/index.js.map +1 -0
- package/dist/llm/prompts/rust.d.ts +30 -0
- package/dist/llm/prompts/rust.d.ts.map +1 -0
- package/dist/llm/prompts/rust.js +121 -0
- package/dist/llm/prompts/rust.js.map +1 -0
- package/dist/llm/schemas.d.ts +892 -0
- package/dist/llm/schemas.d.ts.map +1 -0
- package/dist/llm/schemas.js +258 -0
- package/dist/llm/schemas.js.map +1 -0
- package/dist/llm/verification.d.ts +127 -0
- package/dist/llm/verification.d.ts.map +1 -0
- package/dist/llm/verification.js +394 -0
- package/dist/llm/verification.js.map +1 -0
- package/dist/project/analyzer.d.ts +30 -0
- package/dist/project/analyzer.d.ts.map +1 -0
- package/dist/project/analyzer.js +358 -0
- package/dist/project/analyzer.js.map +1 -0
- package/dist/project/call-graph.d.ts +22 -0
- package/dist/project/call-graph.d.ts.map +1 -0
- package/dist/project/call-graph.js +246 -0
- package/dist/project/call-graph.js.map +1 -0
- package/dist/project/index.d.ts +18 -0
- package/dist/project/index.d.ts.map +1 -0
- package/dist/project/index.js +20 -0
- package/dist/project/index.js.map +1 -0
- package/dist/project/taint-paths.d.ts +22 -0
- package/dist/project/taint-paths.d.ts.map +1 -0
- package/dist/project/taint-paths.js +265 -0
- package/dist/project/taint-paths.js.map +1 -0
- package/dist/project/two-phase-analyzer.d.ts +143 -0
- package/dist/project/two-phase-analyzer.d.ts.map +1 -0
- package/dist/project/two-phase-analyzer.js +646 -0
- package/dist/project/two-phase-analyzer.js.map +1 -0
- package/dist/project/type-hierarchy.d.ts +28 -0
- package/dist/project/type-hierarchy.d.ts.map +1 -0
- package/dist/project/type-hierarchy.js +218 -0
- package/dist/project/type-hierarchy.js.map +1 -0
- package/dist/secret-scan/index.d.ts +12 -0
- package/dist/secret-scan/index.d.ts.map +1 -0
- package/dist/secret-scan/index.js +14 -0
- package/dist/secret-scan/index.js.map +1 -0
- package/dist/secret-scan/patterns.d.ts +38 -0
- package/dist/secret-scan/patterns.d.ts.map +1 -0
- package/dist/secret-scan/patterns.js +473 -0
- package/dist/secret-scan/patterns.js.map +1 -0
- package/dist/secret-scan/scanner.d.ts +162 -0
- package/dist/secret-scan/scanner.d.ts.map +1 -0
- package/dist/secret-scan/scanner.js +511 -0
- package/dist/secret-scan/scanner.js.map +1 -0
- package/dist/security-scan/index.d.ts +12 -0
- package/dist/security-scan/index.d.ts.map +1 -0
- package/dist/security-scan/index.js +15 -0
- package/dist/security-scan/index.js.map +1 -0
- package/dist/security-scan/owasp-mapping.d.ts +29 -0
- package/dist/security-scan/owasp-mapping.d.ts.map +1 -0
- package/dist/security-scan/owasp-mapping.js +246 -0
- package/dist/security-scan/owasp-mapping.js.map +1 -0
- package/dist/security-scan/scanner.d.ts +204 -0
- package/dist/security-scan/scanner.d.ts.map +1 -0
- package/dist/security-scan/scanner.js +693 -0
- package/dist/security-scan/scanner.js.map +1 -0
- package/dist/security-scan/trend-tracker.d.ts +150 -0
- package/dist/security-scan/trend-tracker.d.ts.map +1 -0
- package/dist/security-scan/trend-tracker.js +299 -0
- package/dist/security-scan/trend-tracker.js.map +1 -0
- package/dist/skills/bundle-loader.d.ts +26 -0
- package/dist/skills/bundle-loader.d.ts.map +1 -0
- package/dist/skills/bundle-loader.js +284 -0
- package/dist/skills/bundle-loader.js.map +1 -0
- package/dist/skills/capability-mismatch.d.ts +21 -0
- package/dist/skills/capability-mismatch.d.ts.map +1 -0
- package/dist/skills/capability-mismatch.js +188 -0
- package/dist/skills/capability-mismatch.js.map +1 -0
- package/dist/skills/index.d.ts +10 -0
- package/dist/skills/index.d.ts.map +1 -0
- package/dist/skills/index.js +9 -0
- package/dist/skills/index.js.map +1 -0
- package/dist/skills/skill-analyzer.d.ts +16 -0
- package/dist/skills/skill-analyzer.d.ts.map +1 -0
- package/dist/skills/skill-analyzer.js +361 -0
- package/dist/skills/skill-analyzer.js.map +1 -0
- package/dist/skills/types.d.ts +195 -0
- package/dist/skills/types.d.ts.map +1 -0
- package/dist/skills/types.js +7 -0
- package/dist/skills/types.js.map +1 -0
- package/dist/specifica/conflict-resolver.d.ts +23 -0
- package/dist/specifica/conflict-resolver.d.ts.map +1 -0
- package/dist/specifica/conflict-resolver.js +129 -0
- package/dist/specifica/conflict-resolver.js.map +1 -0
- package/dist/specifica/evidence-aggregator.d.ts +33 -0
- package/dist/specifica/evidence-aggregator.d.ts.map +1 -0
- package/dist/specifica/evidence-aggregator.js +236 -0
- package/dist/specifica/evidence-aggregator.js.map +1 -0
- package/dist/specifica/evidence-extractor.d.ts +13 -0
- package/dist/specifica/evidence-extractor.d.ts.map +1 -0
- package/dist/specifica/evidence-extractor.js +431 -0
- package/dist/specifica/evidence-extractor.js.map +1 -0
- package/dist/specifica/feature-clustering.d.ts +19 -0
- package/dist/specifica/feature-clustering.d.ts.map +1 -0
- package/dist/specifica/feature-clustering.js +231 -0
- package/dist/specifica/feature-clustering.js.map +1 -0
- package/dist/specifica/generator.d.ts +16 -0
- package/dist/specifica/generator.d.ts.map +1 -0
- package/dist/specifica/generator.js +277 -0
- package/dist/specifica/generator.js.map +1 -0
- package/dist/specifica/index.d.ts +15 -0
- package/dist/specifica/index.d.ts.map +1 -0
- package/dist/specifica/index.js +18 -0
- package/dist/specifica/index.js.map +1 -0
- package/dist/specifica/prompts.d.ts +21 -0
- package/dist/specifica/prompts.d.ts.map +1 -0
- package/dist/specifica/prompts.js +196 -0
- package/dist/specifica/prompts.js.map +1 -0
- package/dist/specifica/spec-generator.d.ts +22 -0
- package/dist/specifica/spec-generator.d.ts.map +1 -0
- package/dist/specifica/spec-generator.js +229 -0
- package/dist/specifica/spec-generator.js.map +1 -0
- package/dist/specifica/types.d.ts +213 -0
- package/dist/specifica/types.d.ts.map +1 -0
- package/dist/specifica/types.js +7 -0
- package/dist/specifica/types.js.map +1 -0
- package/dist/utils/logger.d.ts +17 -0
- package/dist/utils/logger.d.ts.map +1 -0
- package/dist/utils/logger.js +51 -0
- package/dist/utils/logger.js.map +1 -0
- package/package.json +99 -0
|
@@ -0,0 +1,300 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Mastra Workflow Steps
|
|
3
|
+
*
|
|
4
|
+
* Defines discrete steps for the security analysis pipeline using Mastra's
|
|
5
|
+
* createStep() API with Zod schemas for type safety.
|
|
6
|
+
*/
|
|
7
|
+
export declare const patternMatchStep: import("@mastra/core/workflows").Step<"pattern-match", any, {
|
|
8
|
+
sourceCode: string;
|
|
9
|
+
filePath: string;
|
|
10
|
+
language: string;
|
|
11
|
+
}, {
|
|
12
|
+
imports: string[];
|
|
13
|
+
patternSources: {
|
|
14
|
+
type: string;
|
|
15
|
+
line: number;
|
|
16
|
+
confidence?: number | undefined;
|
|
17
|
+
variable?: string | undefined;
|
|
18
|
+
method?: string | undefined;
|
|
19
|
+
severity?: "high" | "medium" | "low" | "critical" | undefined;
|
|
20
|
+
location?: string | undefined;
|
|
21
|
+
}[];
|
|
22
|
+
patternSinks: {
|
|
23
|
+
type: string;
|
|
24
|
+
line: number;
|
|
25
|
+
cwe: string;
|
|
26
|
+
confidence?: number | undefined;
|
|
27
|
+
method?: string | undefined;
|
|
28
|
+
argPositions?: number[] | undefined;
|
|
29
|
+
location?: string | undefined;
|
|
30
|
+
}[];
|
|
31
|
+
types: {
|
|
32
|
+
name: string;
|
|
33
|
+
kind: "class" | "interface" | "enum";
|
|
34
|
+
line?: number | undefined;
|
|
35
|
+
annotations?: string[] | undefined;
|
|
36
|
+
extends?: string | null | undefined;
|
|
37
|
+
implements?: string[] | undefined;
|
|
38
|
+
methods?: any[] | undefined;
|
|
39
|
+
fields?: any[] | undefined;
|
|
40
|
+
}[];
|
|
41
|
+
}, unknown, unknown, import("@mastra/core/workflows").DefaultEngineType, unknown>;
|
|
42
|
+
export declare const enrichStep: import("@mastra/core/workflows").Step<"enrich", any, {
|
|
43
|
+
imports: string[];
|
|
44
|
+
sourceCode: string;
|
|
45
|
+
filePath: string;
|
|
46
|
+
patternSources: {
|
|
47
|
+
type: string;
|
|
48
|
+
line: number;
|
|
49
|
+
confidence?: number | undefined;
|
|
50
|
+
variable?: string | undefined;
|
|
51
|
+
method?: string | undefined;
|
|
52
|
+
severity?: "high" | "medium" | "low" | "critical" | undefined;
|
|
53
|
+
location?: string | undefined;
|
|
54
|
+
}[];
|
|
55
|
+
patternSinks: {
|
|
56
|
+
type: string;
|
|
57
|
+
line: number;
|
|
58
|
+
cwe: string;
|
|
59
|
+
confidence?: number | undefined;
|
|
60
|
+
method?: string | undefined;
|
|
61
|
+
argPositions?: number[] | undefined;
|
|
62
|
+
location?: string | undefined;
|
|
63
|
+
}[];
|
|
64
|
+
types: {
|
|
65
|
+
name: string;
|
|
66
|
+
kind: "class" | "interface" | "enum";
|
|
67
|
+
line?: number | undefined;
|
|
68
|
+
annotations?: string[] | undefined;
|
|
69
|
+
extends?: string | null | undefined;
|
|
70
|
+
implements?: string[] | undefined;
|
|
71
|
+
methods?: any[] | undefined;
|
|
72
|
+
fields?: any[] | undefined;
|
|
73
|
+
}[];
|
|
74
|
+
enableEnrichment: boolean;
|
|
75
|
+
}, {
|
|
76
|
+
processingTimeMs: number;
|
|
77
|
+
enrichmentResult: {
|
|
78
|
+
additionalSources: {
|
|
79
|
+
confidence: number;
|
|
80
|
+
type: string;
|
|
81
|
+
line: number;
|
|
82
|
+
variable?: string | undefined;
|
|
83
|
+
method?: string | undefined;
|
|
84
|
+
}[];
|
|
85
|
+
additionalSinks: {
|
|
86
|
+
confidence: number;
|
|
87
|
+
type: string;
|
|
88
|
+
line: number;
|
|
89
|
+
cwe: string;
|
|
90
|
+
method?: string | undefined;
|
|
91
|
+
argPositions?: number[] | undefined;
|
|
92
|
+
}[];
|
|
93
|
+
role?: {
|
|
94
|
+
role: string;
|
|
95
|
+
confidence: number;
|
|
96
|
+
reasoning: string;
|
|
97
|
+
} | undefined;
|
|
98
|
+
} | null;
|
|
99
|
+
}, unknown, unknown, import("@mastra/core/workflows").DefaultEngineType, unknown>;
|
|
100
|
+
export declare const mergeStep: import("@mastra/core/workflows").Step<"merge", any, {
|
|
101
|
+
patternSources: {
|
|
102
|
+
type: string;
|
|
103
|
+
line: number;
|
|
104
|
+
confidence?: number | undefined;
|
|
105
|
+
variable?: string | undefined;
|
|
106
|
+
method?: string | undefined;
|
|
107
|
+
severity?: "high" | "medium" | "low" | "critical" | undefined;
|
|
108
|
+
location?: string | undefined;
|
|
109
|
+
}[];
|
|
110
|
+
patternSinks: {
|
|
111
|
+
type: string;
|
|
112
|
+
line: number;
|
|
113
|
+
cwe: string;
|
|
114
|
+
confidence?: number | undefined;
|
|
115
|
+
method?: string | undefined;
|
|
116
|
+
argPositions?: number[] | undefined;
|
|
117
|
+
location?: string | undefined;
|
|
118
|
+
}[];
|
|
119
|
+
enrichmentResult: {
|
|
120
|
+
additionalSources: {
|
|
121
|
+
confidence: number;
|
|
122
|
+
type: string;
|
|
123
|
+
line: number;
|
|
124
|
+
variable?: string | undefined;
|
|
125
|
+
method?: string | undefined;
|
|
126
|
+
}[];
|
|
127
|
+
additionalSinks: {
|
|
128
|
+
confidence: number;
|
|
129
|
+
type: string;
|
|
130
|
+
line: number;
|
|
131
|
+
cwe: string;
|
|
132
|
+
method?: string | undefined;
|
|
133
|
+
argPositions?: number[] | undefined;
|
|
134
|
+
}[];
|
|
135
|
+
role?: {
|
|
136
|
+
role: string;
|
|
137
|
+
confidence: number;
|
|
138
|
+
reasoning: string;
|
|
139
|
+
} | undefined;
|
|
140
|
+
} | null;
|
|
141
|
+
confidenceThreshold: number;
|
|
142
|
+
}, {
|
|
143
|
+
mergedSources: {
|
|
144
|
+
type: string;
|
|
145
|
+
line: number;
|
|
146
|
+
confidence?: number | undefined;
|
|
147
|
+
variable?: string | undefined;
|
|
148
|
+
method?: string | undefined;
|
|
149
|
+
severity?: "high" | "medium" | "low" | "critical" | undefined;
|
|
150
|
+
location?: string | undefined;
|
|
151
|
+
}[];
|
|
152
|
+
mergedSinks: {
|
|
153
|
+
type: string;
|
|
154
|
+
line: number;
|
|
155
|
+
cwe: string;
|
|
156
|
+
confidence?: number | undefined;
|
|
157
|
+
method?: string | undefined;
|
|
158
|
+
argPositions?: number[] | undefined;
|
|
159
|
+
location?: string | undefined;
|
|
160
|
+
}[];
|
|
161
|
+
}, unknown, unknown, import("@mastra/core/workflows").DefaultEngineType, unknown>;
|
|
162
|
+
export declare const verifyStep: import("@mastra/core/workflows").Step<"verify", any, {
|
|
163
|
+
sourceCode: string;
|
|
164
|
+
filePath: string;
|
|
165
|
+
types: {
|
|
166
|
+
name: string;
|
|
167
|
+
kind: "class" | "interface" | "enum";
|
|
168
|
+
line?: number | undefined;
|
|
169
|
+
annotations?: string[] | undefined;
|
|
170
|
+
extends?: string | null | undefined;
|
|
171
|
+
implements?: string[] | undefined;
|
|
172
|
+
methods?: any[] | undefined;
|
|
173
|
+
fields?: any[] | undefined;
|
|
174
|
+
}[];
|
|
175
|
+
mergedSources: {
|
|
176
|
+
type: string;
|
|
177
|
+
line: number;
|
|
178
|
+
confidence?: number | undefined;
|
|
179
|
+
variable?: string | undefined;
|
|
180
|
+
method?: string | undefined;
|
|
181
|
+
severity?: "high" | "medium" | "low" | "critical" | undefined;
|
|
182
|
+
location?: string | undefined;
|
|
183
|
+
}[];
|
|
184
|
+
mergedSinks: {
|
|
185
|
+
type: string;
|
|
186
|
+
line: number;
|
|
187
|
+
cwe: string;
|
|
188
|
+
confidence?: number | undefined;
|
|
189
|
+
method?: string | undefined;
|
|
190
|
+
argPositions?: number[] | undefined;
|
|
191
|
+
location?: string | undefined;
|
|
192
|
+
}[];
|
|
193
|
+
enableVerification: boolean;
|
|
194
|
+
maxTargets: number;
|
|
195
|
+
}, {
|
|
196
|
+
processingTimeMs: number;
|
|
197
|
+
verificationResults: {
|
|
198
|
+
sourceId: string;
|
|
199
|
+
sinkId: string;
|
|
200
|
+
result: {
|
|
201
|
+
confidence: number;
|
|
202
|
+
reasoning: string;
|
|
203
|
+
verdict: "TRUE_POSITIVE" | "FALSE_POSITIVE" | "UNCERTAIN";
|
|
204
|
+
exploitability: "high" | "medium" | "low" | "none";
|
|
205
|
+
modelUsed: string;
|
|
206
|
+
verifiedAt: string;
|
|
207
|
+
sanitizersFound?: string[] | undefined;
|
|
208
|
+
attackVector?: string | undefined;
|
|
209
|
+
prerequisites?: string[] | undefined;
|
|
210
|
+
};
|
|
211
|
+
}[];
|
|
212
|
+
truePositives: number;
|
|
213
|
+
falsePositives: number;
|
|
214
|
+
uncertain: number;
|
|
215
|
+
}, unknown, unknown, import("@mastra/core/workflows").DefaultEngineType, unknown>;
|
|
216
|
+
export declare const reportStep: import("@mastra/core/workflows").Step<"report", any, {
|
|
217
|
+
filePath: string;
|
|
218
|
+
mergedSources: {
|
|
219
|
+
type: string;
|
|
220
|
+
line: number;
|
|
221
|
+
confidence?: number | undefined;
|
|
222
|
+
variable?: string | undefined;
|
|
223
|
+
method?: string | undefined;
|
|
224
|
+
severity?: "high" | "medium" | "low" | "critical" | undefined;
|
|
225
|
+
location?: string | undefined;
|
|
226
|
+
}[];
|
|
227
|
+
mergedSinks: {
|
|
228
|
+
type: string;
|
|
229
|
+
line: number;
|
|
230
|
+
cwe: string;
|
|
231
|
+
confidence?: number | undefined;
|
|
232
|
+
method?: string | undefined;
|
|
233
|
+
argPositions?: number[] | undefined;
|
|
234
|
+
location?: string | undefined;
|
|
235
|
+
}[];
|
|
236
|
+
verificationResults: {
|
|
237
|
+
sourceId: string;
|
|
238
|
+
sinkId: string;
|
|
239
|
+
result: {
|
|
240
|
+
confidence: number;
|
|
241
|
+
reasoning: string;
|
|
242
|
+
verdict: "TRUE_POSITIVE" | "FALSE_POSITIVE" | "UNCERTAIN";
|
|
243
|
+
exploitability: "high" | "medium" | "low" | "none";
|
|
244
|
+
modelUsed: string;
|
|
245
|
+
verifiedAt: string;
|
|
246
|
+
sanitizersFound?: string[] | undefined;
|
|
247
|
+
attackVector?: string | undefined;
|
|
248
|
+
prerequisites?: string[] | undefined;
|
|
249
|
+
};
|
|
250
|
+
}[];
|
|
251
|
+
patternMatchTimeMs?: number | undefined;
|
|
252
|
+
enrichTimeMs?: number | undefined;
|
|
253
|
+
verifyTimeMs?: number | undefined;
|
|
254
|
+
}, {
|
|
255
|
+
vulnerabilities: {
|
|
256
|
+
cwe: string;
|
|
257
|
+
severity: "high" | "medium" | "low" | "critical";
|
|
258
|
+
description: string;
|
|
259
|
+
source: {
|
|
260
|
+
type: string;
|
|
261
|
+
line: number;
|
|
262
|
+
confidence?: number | undefined;
|
|
263
|
+
variable?: string | undefined;
|
|
264
|
+
method?: string | undefined;
|
|
265
|
+
severity?: "high" | "medium" | "low" | "critical" | undefined;
|
|
266
|
+
location?: string | undefined;
|
|
267
|
+
};
|
|
268
|
+
sink: {
|
|
269
|
+
type: string;
|
|
270
|
+
line: number;
|
|
271
|
+
cwe: string;
|
|
272
|
+
confidence?: number | undefined;
|
|
273
|
+
method?: string | undefined;
|
|
274
|
+
argPositions?: number[] | undefined;
|
|
275
|
+
location?: string | undefined;
|
|
276
|
+
};
|
|
277
|
+
id: string;
|
|
278
|
+
verification?: {
|
|
279
|
+
confidence: number;
|
|
280
|
+
reasoning: string;
|
|
281
|
+
verdict: "TRUE_POSITIVE" | "FALSE_POSITIVE" | "UNCERTAIN";
|
|
282
|
+
exploitability: "high" | "medium" | "low" | "none";
|
|
283
|
+
modelUsed: string;
|
|
284
|
+
verifiedAt: string;
|
|
285
|
+
sanitizersFound?: string[] | undefined;
|
|
286
|
+
attackVector?: string | undefined;
|
|
287
|
+
prerequisites?: string[] | undefined;
|
|
288
|
+
} | undefined;
|
|
289
|
+
}[];
|
|
290
|
+
stats: {
|
|
291
|
+
truePositives: number;
|
|
292
|
+
falsePositives: number;
|
|
293
|
+
uncertain: number;
|
|
294
|
+
totalSources: number;
|
|
295
|
+
totalSinks: number;
|
|
296
|
+
verifiedVulnerabilities: number;
|
|
297
|
+
totalTimeMs: number;
|
|
298
|
+
};
|
|
299
|
+
}, unknown, unknown, import("@mastra/core/workflows").DefaultEngineType, unknown>;
|
|
300
|
+
//# sourceMappingURL=steps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"steps.d.ts","sourceRoot":"","sources":["../../../src/agents/mastra/steps.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAgFH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iFAgC3B,CAAC;AAMH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iFAwErB,CAAC;AAMH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iFAkFpB,CAAC;AAMH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iFAuGrB,CAAC;AAMH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iFAsFrB,CAAC"}
|