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,477 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Ax-LLM Client
|
|
3
|
+
*
|
|
4
|
+
* DSPy-style LLM client using @ax-llm/ax library.
|
|
5
|
+
* Provides typed signatures and structured outputs.
|
|
6
|
+
*/
|
|
7
|
+
import { AxAIOpenAI, AxSignature } from '@ax-llm/ax';
|
|
8
|
+
import type { LLMConfig } from './config.js';
|
|
9
|
+
import { type SupportedLLMLanguage } from './prompts/index.js';
|
|
10
|
+
/**
|
|
11
|
+
* Signature for source/sink enrichment
|
|
12
|
+
*/
|
|
13
|
+
export declare const enrichmentSignature: AxSignature<Record<string, any>, Record<string, any>>;
|
|
14
|
+
/**
|
|
15
|
+
* Signature for role classification
|
|
16
|
+
*/
|
|
17
|
+
export declare const roleClassificationSignature: AxSignature<Record<string, any>, Record<string, any>>;
|
|
18
|
+
/**
|
|
19
|
+
* Signature for source discovery
|
|
20
|
+
*/
|
|
21
|
+
export declare const sourceDiscoverySignature: AxSignature<Record<string, any>, Record<string, any>>;
|
|
22
|
+
/**
|
|
23
|
+
* Signature for sink discovery
|
|
24
|
+
*/
|
|
25
|
+
export declare const sinkDiscoverySignature: AxSignature<Record<string, any>, Record<string, any>>;
|
|
26
|
+
/**
|
|
27
|
+
* Signature for virtual call resolution
|
|
28
|
+
*/
|
|
29
|
+
export declare const virtualCallResolutionSignature: AxSignature<Record<string, any>, Record<string, any>>;
|
|
30
|
+
/**
|
|
31
|
+
* Signature for pattern verification
|
|
32
|
+
*/
|
|
33
|
+
export declare const patternVerificationSignature: AxSignature<Record<string, any>, Record<string, any>>;
|
|
34
|
+
/**
|
|
35
|
+
* Signature for vulnerability verification
|
|
36
|
+
*/
|
|
37
|
+
export declare const verificationSignature: AxSignature<Record<string, any>, Record<string, any>>;
|
|
38
|
+
/**
|
|
39
|
+
* Signature for list index tracking
|
|
40
|
+
* Uses JSON strings for compatibility with non-structured LLMs
|
|
41
|
+
*/
|
|
42
|
+
export declare const listIndexSignature: AxSignature<Record<string, any>, Record<string, any>>;
|
|
43
|
+
/**
|
|
44
|
+
* Signature for correlated predicate analysis
|
|
45
|
+
* Uses JSON strings for compatibility with non-structured LLMs
|
|
46
|
+
*/
|
|
47
|
+
export declare const correlatedPredicateSignature: AxSignature<Record<string, any>, Record<string, any>>;
|
|
48
|
+
/**
|
|
49
|
+
* Signature for cross-file taint tracking
|
|
50
|
+
* Uses JSON string for taintFlows to avoid structured output requirement
|
|
51
|
+
*/
|
|
52
|
+
export declare const crossFileTaintSignature: AxSignature<Record<string, any>, Record<string, any>>;
|
|
53
|
+
export type AxPhase = 'enrichment' | 'verification' | 'analysis';
|
|
54
|
+
/**
|
|
55
|
+
* Ax-LLM based client for Circle-IR
|
|
56
|
+
*/
|
|
57
|
+
export declare class AxLLMClient {
|
|
58
|
+
private config;
|
|
59
|
+
private ai;
|
|
60
|
+
private generators;
|
|
61
|
+
private consecutiveFailures;
|
|
62
|
+
private llmDisabled;
|
|
63
|
+
constructor(config?: Partial<LLMConfig>);
|
|
64
|
+
/**
|
|
65
|
+
* Check if LLM is currently available (not disabled due to failures)
|
|
66
|
+
*/
|
|
67
|
+
isAvailable(): boolean;
|
|
68
|
+
/**
|
|
69
|
+
* Reset the circuit breaker so LLM calls are re-enabled.
|
|
70
|
+
* Call this between files to prevent one file's failures from disabling
|
|
71
|
+
* LLM for the entire project analysis.
|
|
72
|
+
*/
|
|
73
|
+
resetCircuitBreaker(): void;
|
|
74
|
+
/**
|
|
75
|
+
* Reset failure counter (call when LLM succeeds)
|
|
76
|
+
*/
|
|
77
|
+
private resetFailures;
|
|
78
|
+
/**
|
|
79
|
+
* Track a failure and potentially disable LLM
|
|
80
|
+
*/
|
|
81
|
+
private trackFailure;
|
|
82
|
+
/**
|
|
83
|
+
* Get or create a generator for a signature
|
|
84
|
+
*/
|
|
85
|
+
private getGenerator;
|
|
86
|
+
/**
|
|
87
|
+
* Get category-specific guidance for verification prompts
|
|
88
|
+
*/
|
|
89
|
+
private getCategoryGuidance;
|
|
90
|
+
/**
|
|
91
|
+
* Make a raw JSON chat completion call
|
|
92
|
+
* Public to allow batch verification and other custom prompts
|
|
93
|
+
* @param phase - Which phase config to use ('enrichment', 'verification', or 'componentEnrichment')
|
|
94
|
+
* @param retryCount - Internal retry counter (don't set manually)
|
|
95
|
+
*/
|
|
96
|
+
chatJSON<T>(systemPrompt: string, userPrompt: string, phase?: 'enrichment' | 'verification' | 'componentEnrichment', retryCount?: number): Promise<T | null>;
|
|
97
|
+
/**
|
|
98
|
+
* Try to recover truncated JSON by completing missing brackets
|
|
99
|
+
* Handles cases where LLM output was cut off mid-response
|
|
100
|
+
*/
|
|
101
|
+
private tryRecoverTruncatedJSON;
|
|
102
|
+
/**
|
|
103
|
+
* Find the position of the last complete JSON value
|
|
104
|
+
*/
|
|
105
|
+
private findLastCompleteValue;
|
|
106
|
+
/**
|
|
107
|
+
* Try to recover a truncated verification response by extracting key fields
|
|
108
|
+
* Even if reasoning is cut off, we can still use the verdict and confidence
|
|
109
|
+
*/
|
|
110
|
+
private tryRecoverVerificationJSON;
|
|
111
|
+
/**
|
|
112
|
+
* Classify the role of a class
|
|
113
|
+
*/
|
|
114
|
+
classifyRole(input: {
|
|
115
|
+
className: string;
|
|
116
|
+
methodNames: string;
|
|
117
|
+
annotations: string;
|
|
118
|
+
imports: string;
|
|
119
|
+
}): Promise<{
|
|
120
|
+
role: 'controller' | 'service' | 'repository' | 'utility' | 'entity' | 'unknown';
|
|
121
|
+
confidence: number;
|
|
122
|
+
reasoning: string;
|
|
123
|
+
indicators: string[];
|
|
124
|
+
}>;
|
|
125
|
+
/**
|
|
126
|
+
* Discover additional taint sources in a method
|
|
127
|
+
*/
|
|
128
|
+
discoverSources(input: {
|
|
129
|
+
methodCode: string;
|
|
130
|
+
methodName: string;
|
|
131
|
+
classRole: string;
|
|
132
|
+
existingSources: string;
|
|
133
|
+
}): Promise<Array<{
|
|
134
|
+
line: number;
|
|
135
|
+
variable: string;
|
|
136
|
+
type: string;
|
|
137
|
+
confidence: number;
|
|
138
|
+
reasoning: string;
|
|
139
|
+
}>>;
|
|
140
|
+
/**
|
|
141
|
+
* Discover additional taint sinks in a method
|
|
142
|
+
*/
|
|
143
|
+
discoverSinks(input: {
|
|
144
|
+
methodCode: string;
|
|
145
|
+
methodName: string;
|
|
146
|
+
methodCalls: string;
|
|
147
|
+
existingSinks: string;
|
|
148
|
+
}): Promise<Array<{
|
|
149
|
+
line: number;
|
|
150
|
+
method: string;
|
|
151
|
+
type: string;
|
|
152
|
+
cwe: string;
|
|
153
|
+
argPositions: number[];
|
|
154
|
+
confidence: number;
|
|
155
|
+
reasoning: string;
|
|
156
|
+
}>>;
|
|
157
|
+
/**
|
|
158
|
+
* Classify role using a custom language-specific prompt
|
|
159
|
+
*/
|
|
160
|
+
classifyRoleWithPrompt(promptTemplate: string, input: {
|
|
161
|
+
className: string;
|
|
162
|
+
methodNames: string;
|
|
163
|
+
annotations: string;
|
|
164
|
+
imports: string;
|
|
165
|
+
}): Promise<{
|
|
166
|
+
role: 'controller' | 'service' | 'repository' | 'utility' | 'entity' | 'unknown';
|
|
167
|
+
confidence: number;
|
|
168
|
+
reasoning: string;
|
|
169
|
+
indicators: string[];
|
|
170
|
+
}>;
|
|
171
|
+
/**
|
|
172
|
+
* Discover sources using a custom language-specific prompt
|
|
173
|
+
*/
|
|
174
|
+
discoverSourcesWithPrompt(promptTemplate: string, input: {
|
|
175
|
+
methodCode: string;
|
|
176
|
+
methodName: string;
|
|
177
|
+
classRole: string;
|
|
178
|
+
existingSources: string;
|
|
179
|
+
}): Promise<Array<{
|
|
180
|
+
line: number;
|
|
181
|
+
variable: string;
|
|
182
|
+
type: string;
|
|
183
|
+
confidence: number;
|
|
184
|
+
reasoning: string;
|
|
185
|
+
}>>;
|
|
186
|
+
/**
|
|
187
|
+
* Discover sinks using a custom language-specific prompt
|
|
188
|
+
*/
|
|
189
|
+
discoverSinksWithPrompt(promptTemplate: string, input: {
|
|
190
|
+
methodCode: string;
|
|
191
|
+
methodName: string;
|
|
192
|
+
methodCalls: string;
|
|
193
|
+
existingSinks: string;
|
|
194
|
+
}): Promise<Array<{
|
|
195
|
+
line: number;
|
|
196
|
+
method: string;
|
|
197
|
+
type: string;
|
|
198
|
+
cwe: string;
|
|
199
|
+
argPositions: number[];
|
|
200
|
+
confidence: number;
|
|
201
|
+
reasoning: string;
|
|
202
|
+
}>>;
|
|
203
|
+
/**
|
|
204
|
+
* Resolve virtual/interface method calls to implementations
|
|
205
|
+
*/
|
|
206
|
+
resolveVirtualCall(input: {
|
|
207
|
+
callExpression: string;
|
|
208
|
+
interfaceType: string;
|
|
209
|
+
availableImplementations: string;
|
|
210
|
+
context: string;
|
|
211
|
+
}): Promise<{
|
|
212
|
+
resolvedImplementation: string;
|
|
213
|
+
confidence: number;
|
|
214
|
+
reasoning: string;
|
|
215
|
+
}>;
|
|
216
|
+
/**
|
|
217
|
+
* Verify a batch of discovered patterns
|
|
218
|
+
*/
|
|
219
|
+
verifyPatterns(input: {
|
|
220
|
+
patterns: string;
|
|
221
|
+
codeContext: string;
|
|
222
|
+
}): Promise<{
|
|
223
|
+
verifications: Array<{
|
|
224
|
+
method: string;
|
|
225
|
+
class: string;
|
|
226
|
+
isValid: boolean;
|
|
227
|
+
confidence: number;
|
|
228
|
+
reasoning: string;
|
|
229
|
+
suggestedType?: string;
|
|
230
|
+
suggestedCwe?: string;
|
|
231
|
+
}>;
|
|
232
|
+
}>;
|
|
233
|
+
/**
|
|
234
|
+
* Run enrichment to discover additional sources/sinks
|
|
235
|
+
*/
|
|
236
|
+
enrich(input: {
|
|
237
|
+
code: string;
|
|
238
|
+
className: string;
|
|
239
|
+
methodName: string;
|
|
240
|
+
existingSources: string[];
|
|
241
|
+
existingSinks: string[];
|
|
242
|
+
}): Promise<{
|
|
243
|
+
additionalSources: Array<{
|
|
244
|
+
line: number;
|
|
245
|
+
type: string;
|
|
246
|
+
variable?: string;
|
|
247
|
+
confidence: number;
|
|
248
|
+
}>;
|
|
249
|
+
additionalSinks: Array<{
|
|
250
|
+
line: number;
|
|
251
|
+
type: string;
|
|
252
|
+
method?: string;
|
|
253
|
+
cwe: string;
|
|
254
|
+
confidence: number;
|
|
255
|
+
}>;
|
|
256
|
+
role: string;
|
|
257
|
+
reasoning: string;
|
|
258
|
+
}>;
|
|
259
|
+
/**
|
|
260
|
+
* Pre-check for obvious sanitization patterns to improve accuracy.
|
|
261
|
+
* Returns null if no obvious pattern is detected (proceed with LLM).
|
|
262
|
+
*/
|
|
263
|
+
private preCheckSanitization;
|
|
264
|
+
/**
|
|
265
|
+
* Verify if a potential vulnerability is exploitable
|
|
266
|
+
*/
|
|
267
|
+
verify(input: {
|
|
268
|
+
sourceCode: string;
|
|
269
|
+
sourceLine: number;
|
|
270
|
+
sourceType: string;
|
|
271
|
+
sinkCode: string;
|
|
272
|
+
sinkLine: number;
|
|
273
|
+
sinkType: string;
|
|
274
|
+
cwe: string;
|
|
275
|
+
methodCode: string;
|
|
276
|
+
methodName: string;
|
|
277
|
+
className: string;
|
|
278
|
+
sanitizersInPath: string[];
|
|
279
|
+
}): Promise<{
|
|
280
|
+
verdict: 'TRUE_POSITIVE' | 'FALSE_POSITIVE' | 'UNCERTAIN';
|
|
281
|
+
confidence: number;
|
|
282
|
+
reasoning: string;
|
|
283
|
+
exploitability: 'high' | 'medium' | 'low' | 'none';
|
|
284
|
+
sanitizersFound: string[];
|
|
285
|
+
attackVector: string;
|
|
286
|
+
}>;
|
|
287
|
+
/**
|
|
288
|
+
* Analyze list operations to track taint through index changes
|
|
289
|
+
*/
|
|
290
|
+
analyzeListIndices(input: {
|
|
291
|
+
code: string;
|
|
292
|
+
listVariable: string;
|
|
293
|
+
operations: string[];
|
|
294
|
+
}): Promise<{
|
|
295
|
+
finalIndexMapping: Record<number, {
|
|
296
|
+
value: string;
|
|
297
|
+
tainted: boolean;
|
|
298
|
+
}>;
|
|
299
|
+
taintedIndices: number[];
|
|
300
|
+
reasoning: string;
|
|
301
|
+
}>;
|
|
302
|
+
/**
|
|
303
|
+
* Analyze correlated predicates to detect related conditions
|
|
304
|
+
*/
|
|
305
|
+
analyzeCorrelatedPredicates(input: {
|
|
306
|
+
code: string;
|
|
307
|
+
predicateLocations: Array<{
|
|
308
|
+
line: number;
|
|
309
|
+
condition: string;
|
|
310
|
+
}>;
|
|
311
|
+
}): Promise<{
|
|
312
|
+
correlatedGroups: Array<{
|
|
313
|
+
predicates: number[];
|
|
314
|
+
correlation: 'same_variable' | 'opposite' | 'implies' | 'independent';
|
|
315
|
+
confidence: number;
|
|
316
|
+
}>;
|
|
317
|
+
reasoning: string;
|
|
318
|
+
}>;
|
|
319
|
+
/**
|
|
320
|
+
* Track taint across file boundaries
|
|
321
|
+
* Uses direct chat completion for better compatibility with local LLMs
|
|
322
|
+
*/
|
|
323
|
+
analyzeCrossFileTaint(input: {
|
|
324
|
+
sourceFile: string;
|
|
325
|
+
sourceCode: string;
|
|
326
|
+
targetFile: string;
|
|
327
|
+
targetCode: string;
|
|
328
|
+
exportedTaint: Array<{
|
|
329
|
+
symbol: string;
|
|
330
|
+
type: string;
|
|
331
|
+
line: number;
|
|
332
|
+
}>;
|
|
333
|
+
importedSymbols: string[];
|
|
334
|
+
candidateContext?: string;
|
|
335
|
+
}): Promise<{
|
|
336
|
+
taintFlows: Array<{
|
|
337
|
+
sourceSymbol: string;
|
|
338
|
+
targetSymbol: string;
|
|
339
|
+
flowType: 'direct' | 'transitive' | 'conditional';
|
|
340
|
+
confidence: number;
|
|
341
|
+
}>;
|
|
342
|
+
reasoning: string;
|
|
343
|
+
}>;
|
|
344
|
+
/**
|
|
345
|
+
* Test connection to LLM
|
|
346
|
+
*/
|
|
347
|
+
testConnection(): Promise<boolean>;
|
|
348
|
+
/**
|
|
349
|
+
* Get current configuration
|
|
350
|
+
*/
|
|
351
|
+
getConfig(): LLMConfig;
|
|
352
|
+
/**
|
|
353
|
+
* Get the AI service instance
|
|
354
|
+
*/
|
|
355
|
+
getAI(): AxAIOpenAI;
|
|
356
|
+
/**
|
|
357
|
+
* Get enrichment-specific configuration
|
|
358
|
+
*/
|
|
359
|
+
getEnrichmentConfig(): LLMConfig['enrichment'];
|
|
360
|
+
/**
|
|
361
|
+
* Get verification-specific configuration
|
|
362
|
+
*/
|
|
363
|
+
getVerificationConfig(): LLMConfig['verification'];
|
|
364
|
+
/**
|
|
365
|
+
* Get phase-specific configuration
|
|
366
|
+
*/
|
|
367
|
+
getPhaseConfig(phase: 'enrichment' | 'verification'): LLMConfig['phases']['enrichment'];
|
|
368
|
+
/**
|
|
369
|
+
* Classify role using language-specific prompt
|
|
370
|
+
*/
|
|
371
|
+
classifyRoleForLanguage(language: SupportedLLMLanguage, input: {
|
|
372
|
+
moduleName: string;
|
|
373
|
+
functionNames: string;
|
|
374
|
+
attributes: string;
|
|
375
|
+
uses: string;
|
|
376
|
+
}): Promise<{
|
|
377
|
+
role: 'controller' | 'handler' | 'service' | 'repository' | 'utility' | 'cli' | 'entity' | 'unknown';
|
|
378
|
+
confidence: number;
|
|
379
|
+
reasoning: string;
|
|
380
|
+
indicators: string[];
|
|
381
|
+
}>;
|
|
382
|
+
/**
|
|
383
|
+
* Discover sources using language-specific prompt
|
|
384
|
+
*/
|
|
385
|
+
discoverSourcesForLanguage(language: SupportedLLMLanguage, input: {
|
|
386
|
+
code: string;
|
|
387
|
+
functionName: string;
|
|
388
|
+
moduleRole: string;
|
|
389
|
+
existingSources: string;
|
|
390
|
+
}): Promise<Array<{
|
|
391
|
+
line: number;
|
|
392
|
+
variable: string;
|
|
393
|
+
type: string;
|
|
394
|
+
confidence: number;
|
|
395
|
+
reasoning: string;
|
|
396
|
+
}>>;
|
|
397
|
+
/**
|
|
398
|
+
* Discover sinks using language-specific prompt
|
|
399
|
+
*/
|
|
400
|
+
discoverSinksForLanguage(language: SupportedLLMLanguage, input: {
|
|
401
|
+
code: string;
|
|
402
|
+
functionName: string;
|
|
403
|
+
methodCalls: string;
|
|
404
|
+
existingSinks: string;
|
|
405
|
+
}): Promise<Array<{
|
|
406
|
+
line: number;
|
|
407
|
+
method: string;
|
|
408
|
+
type: string;
|
|
409
|
+
cwe: string;
|
|
410
|
+
argPositions: number[];
|
|
411
|
+
confidence: number;
|
|
412
|
+
reasoning: string;
|
|
413
|
+
}>>;
|
|
414
|
+
/**
|
|
415
|
+
* Verify vulnerability using language-specific prompt
|
|
416
|
+
*/
|
|
417
|
+
verifyForLanguage(language: SupportedLLMLanguage, input: {
|
|
418
|
+
sourceCode: string;
|
|
419
|
+
sourceLine: number;
|
|
420
|
+
sinkCode: string;
|
|
421
|
+
sinkLine: number;
|
|
422
|
+
functionCode: string;
|
|
423
|
+
functionName: string;
|
|
424
|
+
moduleName: string;
|
|
425
|
+
cwe: string;
|
|
426
|
+
sanitizers: string[];
|
|
427
|
+
}): Promise<{
|
|
428
|
+
verdict: 'TRUE_POSITIVE' | 'FALSE_POSITIVE' | 'UNCERTAIN';
|
|
429
|
+
confidence: number;
|
|
430
|
+
reasoning: string;
|
|
431
|
+
exploitability: 'high' | 'medium' | 'low' | 'none';
|
|
432
|
+
sanitizersFound: string[];
|
|
433
|
+
attackVector: string;
|
|
434
|
+
}>;
|
|
435
|
+
/**
|
|
436
|
+
* Generate Specifica specification from code evidence
|
|
437
|
+
*/
|
|
438
|
+
generateSpecification(input: {
|
|
439
|
+
title: string;
|
|
440
|
+
filePath: string;
|
|
441
|
+
language: string;
|
|
442
|
+
framework?: string;
|
|
443
|
+
linesOfCode: number;
|
|
444
|
+
apiEndpoints: Array<{
|
|
445
|
+
method: string;
|
|
446
|
+
path: string;
|
|
447
|
+
handler: string;
|
|
448
|
+
}>;
|
|
449
|
+
methods: Array<{
|
|
450
|
+
name: string;
|
|
451
|
+
signature: string;
|
|
452
|
+
}>;
|
|
453
|
+
vulnerabilities: Array<{
|
|
454
|
+
cwe: string;
|
|
455
|
+
severity: string;
|
|
456
|
+
description: string;
|
|
457
|
+
}>;
|
|
458
|
+
}): Promise<{
|
|
459
|
+
title: string;
|
|
460
|
+
summary: string;
|
|
461
|
+
requirements: Array<{
|
|
462
|
+
id: string;
|
|
463
|
+
description: string;
|
|
464
|
+
category: 'functional' | 'security' | 'performance' | 'usability';
|
|
465
|
+
priority: 'must' | 'should' | 'could';
|
|
466
|
+
tested: boolean;
|
|
467
|
+
}>;
|
|
468
|
+
edgeCases: string[];
|
|
469
|
+
errorScenarios: string[];
|
|
470
|
+
} | null>;
|
|
471
|
+
}
|
|
472
|
+
/**
|
|
473
|
+
* Get a new Ax-LLM client instance
|
|
474
|
+
* Always creates a fresh instance for per-request isolation
|
|
475
|
+
*/
|
|
476
|
+
export declare function getAxLLMClient(config?: Partial<LLMConfig>): AxLLMClient;
|
|
477
|
+
//# sourceMappingURL=ax-client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ax-client.d.ts","sourceRoot":"","sources":["../../src/llm/ax-client.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,UAAU,EAEV,WAAW,EAEZ,MAAM,YAAY,CAAC;AAEpB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAc7C,OAAO,EAAa,KAAK,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAM1E;;GAEG;AACH,eAAO,MAAM,mBAAmB,uDAG9B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,2BAA2B,uDAGtC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,wBAAwB,uDAGnC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,sBAAsB,uDAGjC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,8BAA8B,uDAGzC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,4BAA4B,uDAGvC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,qBAAqB,uDAOhC,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,kBAAkB,uDAK7B,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,4BA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