projscan 4.7.0 → 4.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +104 -56
- package/dist/cli/commands/bugHunt.js +37 -8
- package/dist/cli/commands/bugHunt.js.map +1 -1
- package/dist/cli/commands/preflight.js +18 -2
- package/dist/cli/commands/preflight.js.map +1 -1
- package/dist/cli/commands/privacyCheck.js +5 -2
- package/dist/cli/commands/privacyCheck.js.map +1 -1
- package/dist/cli/commands/releaseTrain.js +9 -1
- package/dist/cli/commands/releaseTrain.js.map +1 -1
- package/dist/cli/commands/start.js +5 -28
- package/dist/cli/commands/start.js.map +1 -1
- package/dist/cli/commands/startAction.d.ts +2 -1
- package/dist/cli/commands/startAction.js +4 -4
- package/dist/cli/commands/startAction.js.map +1 -1
- package/dist/cli/commands/startConsole.d.ts +1 -0
- package/dist/cli/commands/startConsole.js +83 -7
- package/dist/cli/commands/startConsole.js.map +1 -1
- package/dist/cli/commands/startOptionsRegistration.d.ts +2 -0
- package/dist/cli/commands/startOptionsRegistration.js +29 -0
- package/dist/cli/commands/startOptionsRegistration.js.map +1 -0
- package/dist/core/adoption.js +13 -0
- package/dist/core/adoption.js.map +1 -1
- package/dist/core/ast.d.ts +2 -17
- package/dist/core/ast.js +4 -33
- package/dist/core/ast.js.map +1 -1
- package/dist/core/astResult.d.ts +20 -0
- package/dist/core/astResult.js +39 -0
- package/dist/core/astResult.js.map +1 -0
- package/dist/core/bugHunt.js +62 -22
- package/dist/core/bugHunt.js.map +1 -1
- package/dist/core/bugHuntPreflightFindings.js +5 -2
- package/dist/core/bugHuntPreflightFindings.js.map +1 -1
- package/dist/core/codeGraph.d.ts +1 -16
- package/dist/core/codeGraph.js +4 -89
- package/dist/core/codeGraph.js.map +1 -1
- package/dist/core/codeGraphAdapterContexts.d.ts +8 -0
- package/dist/core/codeGraphAdapterContexts.js +14 -0
- package/dist/core/codeGraphAdapterContexts.js.map +1 -0
- package/dist/core/codeGraphIncremental.d.ts +17 -0
- package/dist/core/codeGraphIncremental.js +64 -0
- package/dist/core/codeGraphIncremental.js.map +1 -0
- package/dist/core/collisionDetector.d.ts +1 -0
- package/dist/core/collisionDetector.js +3 -0
- package/dist/core/collisionDetector.js.map +1 -1
- package/dist/core/coordination.js +23 -5
- package/dist/core/coordination.js.map +1 -1
- package/dist/core/coordinationEvidence.d.ts +1 -0
- package/dist/core/coordinationEvidence.js.map +1 -1
- package/dist/core/frameworkAstroSources.d.ts +2 -0
- package/dist/core/frameworkAstroSources.js +71 -0
- package/dist/core/frameworkAstroSources.js.map +1 -0
- package/dist/core/frameworkExpressSources.js +6 -31
- package/dist/core/frameworkExpressSources.js.map +1 -1
- package/dist/core/frameworkFastifySources.js +5 -22
- package/dist/core/frameworkFastifySources.js.map +1 -1
- package/dist/core/frameworkHonoSources.js +5 -24
- package/dist/core/frameworkHonoSources.js.map +1 -1
- package/dist/core/frameworkKoaSources.js +5 -24
- package/dist/core/frameworkKoaSources.js.map +1 -1
- package/dist/core/frameworkSourceContext.d.ts +15 -0
- package/dist/core/frameworkSourceContext.js +2 -0
- package/dist/core/frameworkSourceContext.js.map +1 -0
- package/dist/core/frameworkSourceMatching.d.ts +6 -0
- package/dist/core/frameworkSourceMatching.js +29 -0
- package/dist/core/frameworkSourceMatching.js.map +1 -0
- package/dist/core/frameworkSourceResolvers.d.ts +2 -0
- package/dist/core/frameworkSourceResolvers.js +51 -0
- package/dist/core/frameworkSourceResolvers.js.map +1 -0
- package/dist/core/frameworkSources.d.ts +2 -14
- package/dist/core/frameworkSources.js +11 -38
- package/dist/core/frameworkSources.js.map +1 -1
- package/dist/core/frameworkSvelteKitSources.d.ts +2 -0
- package/dist/core/frameworkSvelteKitSources.js +118 -0
- package/dist/core/frameworkSvelteKitSources.js.map +1 -0
- package/dist/core/intentRouter.d.ts +1 -1
- package/dist/core/intentRouter.js +2 -8
- package/dist/core/intentRouter.js.map +1 -1
- package/dist/core/intentRouterCatalog.js +40 -3
- package/dist/core/intentRouterCatalog.js.map +1 -1
- package/dist/core/intentRouterDependencySignals.d.ts +1 -0
- package/dist/core/intentRouterDependencySignals.js +14 -0
- package/dist/core/intentRouterDependencySignals.js.map +1 -1
- package/dist/core/intentRouterKeywordEarlyGuards.js +24 -1
- package/dist/core/intentRouterKeywordEarlyGuards.js.map +1 -1
- package/dist/core/intentRouterKeywordToolGuards.js +5 -0
- package/dist/core/intentRouterKeywordToolGuards.js.map +1 -1
- package/dist/core/intentRouterKeywordWeights.js +29 -0
- package/dist/core/intentRouterKeywordWeights.js.map +1 -1
- package/dist/core/intentRouterPreflightSignals.js +7 -2
- package/dist/core/intentRouterPreflightSignals.js.map +1 -1
- package/dist/core/intentRouterRegressionKeywordMatches.js +9 -2
- package/dist/core/intentRouterRegressionKeywordMatches.js.map +1 -1
- package/dist/core/intentRouterRegressionSignals.d.ts +1 -0
- package/dist/core/intentRouterRegressionSignals.js +11 -1
- package/dist/core/intentRouterRegressionSignals.js.map +1 -1
- package/dist/core/intentRouterReleaseSignals.js +5 -20
- package/dist/core/intentRouterReleaseSignals.js.map +1 -1
- package/dist/core/intentRouterResolution.d.ts +3 -0
- package/dist/core/intentRouterResolution.js +11 -0
- package/dist/core/intentRouterResolution.js.map +1 -0
- package/dist/core/intentRouterVerificationSignals.js +5 -0
- package/dist/core/intentRouterVerificationSignals.js.map +1 -1
- package/dist/core/intentRouterWorkSignals.js +4 -2
- package/dist/core/intentRouterWorkSignals.js.map +1 -1
- package/dist/core/languages/pythonManifests.js +6 -19
- package/dist/core/languages/pythonManifests.js.map +1 -1
- package/dist/core/languages/pythonPep508.js +1 -1
- package/dist/core/languages/pythonPep508.js.map +1 -1
- package/dist/core/languages/pythonProjectEvidence.js +4 -4
- package/dist/core/languages/pythonProjectEvidence.js.map +1 -1
- package/dist/core/languages/pythonPyproject.js +1 -1
- package/dist/core/languages/pythonPyproject.js.map +1 -1
- package/dist/core/languages/pythonPyprojectEvidence.d.ts +7 -0
- package/dist/core/languages/pythonPyprojectEvidence.js +23 -0
- package/dist/core/languages/pythonPyprojectEvidence.js.map +1 -0
- package/dist/core/languages/pythonRequirements.d.ts +2 -0
- package/dist/core/languages/pythonRequirements.js +74 -9
- package/dist/core/languages/pythonRequirements.js.map +1 -1
- package/dist/core/pluginAnalyzerLoading.d.ts +3 -0
- package/dist/core/pluginAnalyzerLoading.js +55 -0
- package/dist/core/pluginAnalyzerLoading.js.map +1 -0
- package/dist/core/pluginAnalyzerRunning.d.ts +10 -0
- package/dist/core/pluginAnalyzerRunning.js +32 -0
- package/dist/core/pluginAnalyzerRunning.js.map +1 -0
- package/dist/core/pluginIssueValidation.d.ts +2 -0
- package/dist/core/pluginIssueValidation.js +22 -0
- package/dist/core/pluginIssueValidation.js.map +1 -0
- package/dist/core/pluginManifestDiscovery.d.ts +25 -0
- package/dist/core/pluginManifestDiscovery.js +80 -0
- package/dist/core/pluginManifestDiscovery.js.map +1 -0
- package/dist/core/pluginModuleLoading.d.ts +8 -0
- package/dist/core/pluginModuleLoading.js +91 -0
- package/dist/core/pluginModuleLoading.js.map +1 -0
- package/dist/core/pluginReporterLoading.d.ts +41 -0
- package/dist/core/pluginReporterLoading.js +105 -0
- package/dist/core/pluginReporterLoading.js.map +1 -0
- package/dist/core/pluginRuntimeTypes.d.ts +20 -0
- package/dist/core/pluginRuntimeTypes.js +2 -0
- package/dist/core/pluginRuntimeTypes.js.map +1 -0
- package/dist/core/plugins.d.ts +9 -86
- package/dist/core/plugins.js +12 -350
- package/dist/core/plugins.js.map +1 -1
- package/dist/core/preflight.d.ts +1 -2
- package/dist/core/preflight.js +4 -91
- package/dist/core/preflight.js.map +1 -1
- package/dist/core/preflightEvidence.js +11 -0
- package/dist/core/preflightEvidence.js.map +1 -1
- package/dist/core/preflightInputs.d.ts +1 -0
- package/dist/core/preflightInputs.js.map +1 -1
- package/dist/core/preflightReasons.d.ts +21 -0
- package/dist/core/preflightReasons.js +54 -0
- package/dist/core/preflightReasons.js.map +1 -0
- package/dist/core/preflightReleaseScale.js +16 -5
- package/dist/core/preflightReleaseScale.js.map +1 -1
- package/dist/core/preflightReport.d.ts +9 -0
- package/dist/core/preflightReport.js +67 -0
- package/dist/core/preflightReport.js.map +1 -0
- package/dist/core/preflightSuggestedActions.js +3 -1
- package/dist/core/preflightSuggestedActions.js.map +1 -1
- package/dist/core/preflightVerdict.js +3 -0
- package/dist/core/preflightVerdict.js.map +1 -1
- package/dist/core/qualityScorecard.js +39 -21
- package/dist/core/qualityScorecard.js.map +1 -1
- package/dist/core/releaseEvidenceArtifacts.js +12 -4
- package/dist/core/releaseEvidenceArtifacts.js.map +1 -1
- package/dist/core/releaseTrain.d.ts +11 -1
- package/dist/core/releaseTrain.js +54 -2
- package/dist/core/releaseTrain.js.map +1 -1
- package/dist/core/repositoryScanner.js +5 -2
- package/dist/core/repositoryScanner.js.map +1 -1
- package/dist/core/review.js +2 -47
- package/dist/core/review.js.map +1 -1
- package/dist/core/reviewChangedReport.d.ts +13 -0
- package/dist/core/reviewChangedReport.js +38 -0
- package/dist/core/reviewChangedReport.js.map +1 -0
- package/dist/core/reviewComputation.d.ts +9 -0
- package/dist/core/reviewComputation.js +14 -0
- package/dist/core/reviewComputation.js.map +1 -0
- package/dist/core/reviewContractChanges.js +22 -8
- package/dist/core/reviewContractChanges.js.map +1 -1
- package/dist/core/reviewDataflow.js +18 -0
- package/dist/core/reviewDataflow.js.map +1 -1
- package/dist/core/reviewVerdict.js +37 -5
- package/dist/core/reviewVerdict.js.map +1 -1
- package/dist/core/roadmapCatalog.js +7 -203
- package/dist/core/roadmapCatalog.js.map +1 -1
- package/dist/core/roadmapCatalogPost44.d.ts +2 -0
- package/dist/core/roadmapCatalogPost44.js +205 -0
- package/dist/core/roadmapCatalogPost44.js.map +1 -0
- package/dist/core/roadmapCatalogTypes.d.ts +6 -0
- package/dist/core/roadmapCatalogTypes.js +2 -0
- package/dist/core/roadmapCatalogTypes.js.map +1 -0
- package/dist/core/startAdoptionGaps.js +1 -1
- package/dist/core/startAdoptionGaps.js.map +1 -1
- package/dist/core/startClaimRouteCriteria.d.ts +7 -0
- package/dist/core/startClaimRouteCriteria.js +16 -0
- package/dist/core/startClaimRouteCriteria.js.map +1 -0
- package/dist/core/startClaimTargets.d.ts +2 -0
- package/dist/core/startClaimTargets.js +14 -0
- package/dist/core/startClaimTargets.js.map +1 -0
- package/dist/core/startCouplingRouteCriteria.d.ts +2 -0
- package/dist/core/startCouplingRouteCriteria.js +13 -0
- package/dist/core/startCouplingRouteCriteria.js.map +1 -0
- package/dist/core/startDailyWorkflows.d.ts +2 -0
- package/dist/core/startDailyWorkflows.js +50 -0
- package/dist/core/startDailyWorkflows.js.map +1 -0
- package/dist/core/startDependencyRouteCriteria.d.ts +2 -0
- package/dist/core/startDependencyRouteCriteria.js +43 -0
- package/dist/core/startDependencyRouteCriteria.js.map +1 -0
- package/dist/core/startEnvTargets.d.ts +1 -0
- package/dist/core/startEnvTargets.js +9 -0
- package/dist/core/startEnvTargets.js.map +1 -0
- package/dist/core/startFileRouteCriteria.d.ts +2 -0
- package/dist/core/startFileRouteCriteria.js +56 -0
- package/dist/core/startFileRouteCriteria.js.map +1 -0
- package/dist/core/startFileTargets.d.ts +2 -0
- package/dist/core/startFileTargets.js +19 -0
- package/dist/core/startFileTargets.js.map +1 -0
- package/dist/core/startFixedRouteCriteria.d.ts +1 -0
- package/dist/core/startFixedRouteCriteria.js +90 -0
- package/dist/core/startFixedRouteCriteria.js.map +1 -0
- package/dist/core/startGeneratedConfigSearchTargets.d.ts +1 -0
- package/dist/core/startGeneratedConfigSearchTargets.js +22 -0
- package/dist/core/startGeneratedConfigSearchTargets.js.map +1 -0
- package/dist/core/startGraphTargets.d.ts +10 -0
- package/dist/core/startGraphTargets.js +82 -0
- package/dist/core/startGraphTargets.js.map +1 -0
- package/dist/core/startHighPrioritySearchTargets.d.ts +1 -0
- package/dist/core/startHighPrioritySearchTargets.js +24 -0
- package/dist/core/startHighPrioritySearchTargets.js.map +1 -0
- package/dist/core/startImpactRouteCriteria.d.ts +7 -0
- package/dist/core/startImpactRouteCriteria.js +14 -0
- package/dist/core/startImpactRouteCriteria.js.map +1 -0
- package/dist/core/startImpactTargets.d.ts +1 -0
- package/dist/core/startImpactTargets.js +18 -0
- package/dist/core/startImpactTargets.js.map +1 -0
- package/dist/core/startIntentApiContractQueries.d.ts +1 -0
- package/dist/core/startIntentApiContractQueries.js +50 -0
- package/dist/core/startIntentApiContractQueries.js.map +1 -0
- package/dist/core/startIntentAuthorizationQueries.d.ts +1 -0
- package/dist/core/startIntentAuthorizationQueries.js +29 -0
- package/dist/core/startIntentAuthorizationQueries.js.map +1 -0
- package/dist/core/startIntentBackgroundWorkQueries.d.ts +1 -0
- package/dist/core/startIntentBackgroundWorkQueries.js +23 -0
- package/dist/core/startIntentBackgroundWorkQueries.js.map +1 -0
- package/dist/core/startIntentCommunicationArtifactQueries.d.ts +1 -0
- package/dist/core/startIntentCommunicationArtifactQueries.js +25 -0
- package/dist/core/startIntentCommunicationArtifactQueries.js.map +1 -0
- package/dist/core/startIntentDataAccessQueries.d.ts +1 -0
- package/dist/core/startIntentDataAccessQueries.js +60 -0
- package/dist/core/startIntentDataAccessQueries.js.map +1 -0
- package/dist/core/startIntentDataContractQueries.d.ts +1 -0
- package/dist/core/startIntentDataContractQueries.js +75 -0
- package/dist/core/startIntentDataContractQueries.js.map +1 -0
- package/dist/core/startIntentDomainSearchQueries.d.ts +1 -0
- package/dist/core/startIntentDomainSearchQueries.js +47 -0
- package/dist/core/startIntentDomainSearchQueries.js.map +1 -0
- package/dist/core/startIntentDomainWorkflowQueries.d.ts +1 -0
- package/dist/core/startIntentDomainWorkflowQueries.js +28 -0
- package/dist/core/startIntentDomainWorkflowQueries.js.map +1 -0
- package/dist/core/startIntentFrontendPageRouteQueries.d.ts +1 -0
- package/dist/core/startIntentFrontendPageRouteQueries.js +26 -0
- package/dist/core/startIntentFrontendPageRouteQueries.js.map +1 -0
- package/dist/core/startIntentInfraArtifactQueries.d.ts +1 -0
- package/dist/core/startIntentInfraArtifactQueries.js +62 -0
- package/dist/core/startIntentInfraArtifactQueries.js.map +1 -0
- package/dist/core/startIntentIntegrationQueries.d.ts +1 -0
- package/dist/core/startIntentIntegrationQueries.js +96 -0
- package/dist/core/startIntentIntegrationQueries.js.map +1 -0
- package/dist/core/startIntentNavigationLayoutQueries.d.ts +1 -0
- package/dist/core/startIntentNavigationLayoutQueries.js +22 -0
- package/dist/core/startIntentNavigationLayoutQueries.js.map +1 -0
- package/dist/core/startIntentObservabilityQueries.d.ts +1 -0
- package/dist/core/startIntentObservabilityQueries.js +26 -0
- package/dist/core/startIntentObservabilityQueries.js.map +1 -0
- package/dist/core/startIntentReliabilityQueries.d.ts +1 -0
- package/dist/core/startIntentReliabilityQueries.js +85 -0
- package/dist/core/startIntentReliabilityQueries.js.map +1 -0
- package/dist/core/startIntentStateManagementQueries.d.ts +1 -0
- package/dist/core/startIntentStateManagementQueries.js +61 -0
- package/dist/core/startIntentStateManagementQueries.js.map +1 -0
- package/dist/core/startIntentStyleSystemQueries.d.ts +1 -0
- package/dist/core/startIntentStyleSystemQueries.js +26 -0
- package/dist/core/startIntentStyleSystemQueries.js.map +1 -0
- package/dist/core/startIntentTargetText.d.ts +2 -0
- package/dist/core/startIntentTargetText.js +9 -0
- package/dist/core/startIntentTargetText.js.map +1 -0
- package/dist/core/startIntentTargets.d.ts +10 -23
- package/dist/core/startIntentTargets.js +15 -1095
- package/dist/core/startIntentTargets.js.map +1 -1
- package/dist/core/startIntentTestDataQueries.d.ts +1 -0
- package/dist/core/startIntentTestDataQueries.js +28 -0
- package/dist/core/startIntentTestDataQueries.js.map +1 -0
- package/dist/core/startIntentToolingConfigQueries.d.ts +1 -0
- package/dist/core/startIntentToolingConfigQueries.js +31 -0
- package/dist/core/startIntentToolingConfigQueries.js.map +1 -0
- package/dist/core/startIntentUiInteractionQueries.d.ts +1 -0
- package/dist/core/startIntentUiInteractionQueries.js +71 -0
- package/dist/core/startIntentUiInteractionQueries.js.map +1 -0
- package/dist/core/startIssueTargets.d.ts +1 -0
- package/dist/core/startIssueTargets.js +19 -0
- package/dist/core/startIssueTargets.js.map +1 -0
- package/dist/core/startMissionControl.js +8 -2
- package/dist/core/startMissionControl.js.map +1 -1
- package/dist/core/startMissionPolicy.d.ts +2 -2
- package/dist/core/startMissionPolicy.js +65 -7
- package/dist/core/startMissionPolicy.js.map +1 -1
- package/dist/core/startMode.d.ts +4 -1
- package/dist/core/startMode.js +49 -9
- package/dist/core/startMode.js.map +1 -1
- package/dist/core/startOptions.d.ts +2 -2
- package/dist/core/startOptions.js +1 -1
- package/dist/core/startOptions.js.map +1 -1
- package/dist/core/startOwnershipSearchTargets.d.ts +2 -0
- package/dist/core/startOwnershipSearchTargets.js +23 -0
- package/dist/core/startOwnershipSearchTargets.js.map +1 -0
- package/dist/core/startPackageTargets.d.ts +4 -0
- package/dist/core/startPackageTargets.js +91 -0
- package/dist/core/startPackageTargets.js.map +1 -0
- package/dist/core/startPreflightRouteCriteria.d.ts +11 -0
- package/dist/core/startPreflightRouteCriteria.js +29 -0
- package/dist/core/startPreflightRouteCriteria.js.map +1 -0
- package/dist/core/startProductPlanningRouteCriteria.d.ts +8 -0
- package/dist/core/startProductPlanningRouteCriteria.js +29 -0
- package/dist/core/startProductPlanningRouteCriteria.js.map +1 -0
- package/dist/core/startQuotedTextTargets.d.ts +1 -0
- package/dist/core/startQuotedTextTargets.js +7 -0
- package/dist/core/startQuotedTextTargets.js.map +1 -0
- package/dist/core/startRegressionRouteCriteria.d.ts +3 -0
- package/dist/core/startRegressionRouteCriteria.js +62 -0
- package/dist/core/startRegressionRouteCriteria.js.map +1 -0
- package/dist/core/startReportBuilder.d.ts +1 -0
- package/dist/core/startReportBuilder.js +2 -1
- package/dist/core/startReportBuilder.js.map +1 -1
- package/dist/core/startReportContext.d.ts +1 -0
- package/dist/core/startReportContext.js +3 -0
- package/dist/core/startReportContext.js.map +1 -1
- package/dist/core/startReportScopeTargets.d.ts +1 -0
- package/dist/core/startReportScopeTargets.js +56 -0
- package/dist/core/startReportScopeTargets.js.map +1 -0
- package/dist/core/startRouteActions.js +39 -1
- package/dist/core/startRouteActions.js.map +1 -1
- package/dist/core/startShellArgs.d.ts +4 -0
- package/dist/core/startShellArgs.js +19 -0
- package/dist/core/startShellArgs.js.map +1 -0
- package/dist/core/startSuccessCriteria.d.ts +2 -3
- package/dist/core/startSuccessCriteria.js +15 -419
- package/dist/core/startSuccessCriteria.js.map +1 -1
- package/dist/core/startSymbolTargets.d.ts +2 -0
- package/dist/core/startSymbolTargets.js +28 -0
- package/dist/core/startSymbolTargets.js.map +1 -0
- package/dist/core/startTestRouteSearchTargets.d.ts +1 -0
- package/dist/core/startTestRouteSearchTargets.js +34 -0
- package/dist/core/startTestRouteSearchTargets.js.map +1 -0
- package/dist/core/startUnderstandRouteCriteria.d.ts +3 -0
- package/dist/core/startUnderstandRouteCriteria.js +97 -0
- package/dist/core/startUnderstandRouteCriteria.js.map +1 -0
- package/dist/core/telemetry.d.ts +9 -89
- package/dist/core/telemetry.js +33 -391
- package/dist/core/telemetry.js.map +1 -1
- package/dist/core/telemetryConfig.d.ts +58 -0
- package/dist/core/telemetryConfig.js +171 -0
- package/dist/core/telemetryConfig.js.map +1 -0
- package/dist/core/telemetryEvents.d.ts +57 -0
- package/dist/core/telemetryEvents.js +143 -0
- package/dist/core/telemetryEvents.js.map +1 -0
- package/dist/core/telemetryFlushing.d.ts +10 -0
- package/dist/core/telemetryFlushing.js +42 -0
- package/dist/core/telemetryFlushing.js.map +1 -0
- package/dist/core/telemetryRecording.d.ts +26 -0
- package/dist/core/telemetryRecording.js +38 -0
- package/dist/core/telemetryRecording.js.map +1 -0
- package/dist/core/telemetrySender.d.ts +9 -0
- package/dist/core/telemetrySender.js +22 -0
- package/dist/core/telemetrySender.js.map +1 -0
- package/dist/core/workplan.js +23 -11
- package/dist/core/workplan.js.map +1 -1
- package/dist/index.d.ts +4 -60
- package/dist/index.js +4 -60
- package/dist/index.js.map +1 -1
- package/dist/mcp/server.js +2 -13
- package/dist/mcp/server.js.map +1 -1
- package/dist/mcp/serverMessageHandling.d.ts +3 -0
- package/dist/mcp/serverMessageHandling.js +16 -0
- package/dist/mcp/serverMessageHandling.js.map +1 -0
- package/dist/mcp/toolDefinitions.d.ts +3 -0
- package/dist/mcp/toolDefinitions.js +15 -0
- package/dist/mcp/toolDefinitions.js.map +1 -0
- package/dist/mcp/tools.js +2 -12
- package/dist/mcp/tools.js.map +1 -1
- package/dist/projscan-sbom.cdx.json +6 -6
- package/dist/publicAgent.d.ts +22 -0
- package/dist/publicAgent.js +23 -0
- package/dist/publicAgent.js.map +1 -0
- package/dist/publicCore.d.ts +29 -0
- package/dist/publicCore.js +30 -0
- package/dist/publicCore.js.map +1 -0
- package/dist/publicLanguages.d.ts +1 -0
- package/dist/publicLanguages.js +2 -0
- package/dist/publicLanguages.js.map +1 -0
- package/dist/publicMcp.d.ts +8 -0
- package/dist/publicMcp.js +9 -0
- package/dist/publicMcp.js.map +1 -0
- package/dist/reporters/htmlAnalysisReporter.d.ts +3 -0
- package/dist/reporters/htmlAnalysisReporter.js +98 -0
- package/dist/reporters/htmlAnalysisReporter.js.map +1 -0
- package/dist/reporters/htmlCoverageReporter.d.ts +2 -0
- package/dist/reporters/htmlCoverageReporter.js +52 -0
- package/dist/reporters/htmlCoverageReporter.js.map +1 -0
- package/dist/reporters/htmlImpactReporter.d.ts +2 -0
- package/dist/reporters/htmlImpactReporter.js +41 -0
- package/dist/reporters/htmlImpactReporter.js.map +1 -0
- package/dist/reporters/htmlPrDiffReporter.d.ts +2 -0
- package/dist/reporters/htmlPrDiffReporter.js +84 -0
- package/dist/reporters/htmlPrDiffReporter.js.map +1 -0
- package/dist/reporters/htmlReporter.d.ts +20 -9
- package/dist/reporters/htmlReporter.js +7 -365
- package/dist/reporters/htmlReporter.js.map +1 -1
- package/dist/reporters/htmlReviewReporter.d.ts +2 -0
- package/dist/reporters/htmlReviewReporter.js +94 -0
- package/dist/reporters/htmlReviewReporter.js.map +1 -0
- package/dist/reporters/htmlShared.d.ts +7 -0
- package/dist/reporters/htmlShared.js +106 -0
- package/dist/reporters/htmlShared.js.map +1 -0
- package/dist/tool-manifest.json +2 -2
- package/dist/types/bugHunt.d.ts +1 -1
- package/dist/types/preflight.d.ts +19 -0
- package/dist/types/releaseTrain.d.ts +7 -0
- package/dist/types/start.d.ts +7 -451
- package/dist/types/startCommon.d.ts +87 -0
- package/dist/types/startCommon.js +2 -0
- package/dist/types/startCommon.js.map +1 -0
- package/dist/types/startExecution.d.ts +44 -0
- package/dist/types/startExecution.js +2 -0
- package/dist/types/startExecution.js.map +1 -0
- package/dist/types/startMissionControl.d.ts +92 -0
- package/dist/types/startMissionControl.js +2 -0
- package/dist/types/startMissionControl.js.map +1 -0
- package/dist/types/startMissionProof.d.ts +91 -0
- package/dist/types/startMissionProof.js +2 -0
- package/dist/types/startMissionProof.js.map +1 -0
- package/dist/types/startMissionResume.d.ts +100 -0
- package/dist/types/startMissionResume.js +2 -0
- package/dist/types/startMissionResume.js.map +1 -0
- package/dist/types/startMissionReview.d.ts +45 -0
- package/dist/types/startMissionReview.js +2 -0
- package/dist/types/startMissionReview.js.map +1 -0
- package/dist/types/startMissionTooling.d.ts +16 -0
- package/dist/types/startMissionTooling.js +2 -0
- package/dist/types/startMissionTooling.js.map +1 -0
- package/dist/utils/changedFiles.d.ts +1 -0
- package/dist/utils/changedFiles.js +7 -4
- package/dist/utils/changedFiles.js.map +1 -1
- package/dist/utils/fileWalker.d.ts +1 -0
- package/dist/utils/fileWalker.js +6 -1
- package/dist/utils/fileWalker.js.map +1 -1
- package/docs/GUIDE.md +55 -14
- package/docs/ROADMAP.md +42 -17
- package/docs/demos/projscan-4-1-demo.html +4 -4
- package/docs/examples/adoption-workflows.md +60 -1
- package/docs/examples/swarm-coordination.md +11 -2
- package/docs/projscan-mission-control.gif +0 -0
- package/docs/projscan-mission-control.png +0 -0
- package/docs/projscan-mission-proof.gif +0 -0
- package/docs/projscan-proof-router.png +0 -0
- package/package.json +12 -12
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { PluginDiagnostic, PluginReporterCommand, PluginReporterManifest } from './pluginManifestValidation.js';
|
|
2
|
+
export interface PluginReporterContext<TPayload = unknown> {
|
|
3
|
+
command: PluginReporterCommand;
|
|
4
|
+
rootPath: string;
|
|
5
|
+
manifest: PluginReporterManifest;
|
|
6
|
+
payload: TPayload;
|
|
7
|
+
}
|
|
8
|
+
export interface PluginReporterExports {
|
|
9
|
+
render: (context: PluginReporterContext) => Promise<string> | string;
|
|
10
|
+
}
|
|
11
|
+
export interface LoadedReporterPlugin {
|
|
12
|
+
manifest: PluginReporterManifest;
|
|
13
|
+
/** Absolute path to the manifest file on disk. */
|
|
14
|
+
manifestPath: string;
|
|
15
|
+
/** Absolute path to the resolved module entry point. */
|
|
16
|
+
modulePath: string;
|
|
17
|
+
exports: PluginReporterExports;
|
|
18
|
+
}
|
|
19
|
+
export type PluginReporterResolveResult = {
|
|
20
|
+
ok: true;
|
|
21
|
+
plugin: LoadedReporterPlugin;
|
|
22
|
+
} | {
|
|
23
|
+
ok: false;
|
|
24
|
+
reason: string;
|
|
25
|
+
diagnostic: PluginDiagnostic;
|
|
26
|
+
};
|
|
27
|
+
export type PluginReporterRenderResult = {
|
|
28
|
+
ok: true;
|
|
29
|
+
output: string;
|
|
30
|
+
} | {
|
|
31
|
+
ok: false;
|
|
32
|
+
reason: string;
|
|
33
|
+
diagnostic: PluginDiagnostic;
|
|
34
|
+
};
|
|
35
|
+
export interface PluginReporterResolveOptions {
|
|
36
|
+
pluginsEnabled: boolean;
|
|
37
|
+
previewFlag: string;
|
|
38
|
+
}
|
|
39
|
+
export declare function resolveReporterPlugin(rootPath: string, reporterName: string, command: PluginReporterCommand, options: PluginReporterResolveOptions): Promise<PluginReporterResolveResult>;
|
|
40
|
+
export declare function renderReporterPlugin(plugin: LoadedReporterPlugin, context: PluginReporterContext): Promise<PluginReporterRenderResult>;
|
|
41
|
+
export declare function loadReporterPlugin(manifest: PluginReporterManifest, manifestPath: string): Promise<PluginReporterResolveResult>;
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import path from 'node:path';
|
|
2
|
+
import { discoverPluginManifests } from './pluginManifestDiscovery.js';
|
|
3
|
+
import { assertPluginModuleReadable, describePluginModuleLoadError, importPluginModule, } from './pluginModuleLoading.js';
|
|
4
|
+
import { getPluginTrustStatus } from './pluginTrust.js';
|
|
5
|
+
export async function resolveReporterPlugin(rootPath, reporterName, command, options) {
|
|
6
|
+
if (!options.pluginsEnabled) {
|
|
7
|
+
return pluginRuntimeFail({
|
|
8
|
+
code: 'plugins-disabled',
|
|
9
|
+
message: `reporter plugins require ${options.previewFlag}=1`,
|
|
10
|
+
hint: `Set ${options.previewFlag}=1 in the environment to enable plugin reporters.`,
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
const entries = await discoverPluginManifests(rootPath);
|
|
14
|
+
const reporters = entries.filter((entry) => entry.manifest?.kind === 'reporter');
|
|
15
|
+
const entry = reporters.find((candidate) => candidate.manifest.name === reporterName);
|
|
16
|
+
if (!entry) {
|
|
17
|
+
return pluginRuntimeFail({
|
|
18
|
+
code: 'reporter-not-found',
|
|
19
|
+
message: `reporter plugin "${reporterName}" was not found`,
|
|
20
|
+
hint: 'Run `projscan plugin list` to see discovered reporter plugins.',
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
if (!entry.manifest.commands.includes(command)) {
|
|
24
|
+
return pluginRuntimeFail({
|
|
25
|
+
code: 'reporter-unsupported-command',
|
|
26
|
+
message: `reporter plugin "${reporterName}" does not support command "${command}"`,
|
|
27
|
+
hint: `Add "${command}" to the reporter manifest's commands array or choose a different reporter.`,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
return loadReporterPlugin(entry.manifest, entry.manifestPath);
|
|
31
|
+
}
|
|
32
|
+
export async function renderReporterPlugin(plugin, context) {
|
|
33
|
+
try {
|
|
34
|
+
const output = await plugin.exports.render(context);
|
|
35
|
+
if (typeof output !== 'string') {
|
|
36
|
+
return pluginRuntimeFail({
|
|
37
|
+
code: 'reporter-render-error',
|
|
38
|
+
message: `reporter plugin "${plugin.manifest.name}" returned ${typeof output}; expected string`,
|
|
39
|
+
hint: 'Reporter render(context) must return text for stdout.',
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
return { ok: true, output };
|
|
43
|
+
}
|
|
44
|
+
catch (err) {
|
|
45
|
+
return pluginRuntimeFail({
|
|
46
|
+
code: 'reporter-render-error',
|
|
47
|
+
message: `reporter plugin "${plugin.manifest.name}" failed during render: ${formatError(err)}`,
|
|
48
|
+
hint: 'Fix the reporter render(context) implementation and try again.',
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
export async function loadReporterPlugin(manifest, manifestPath) {
|
|
53
|
+
const modulePath = path.resolve(path.dirname(manifestPath), manifest.module);
|
|
54
|
+
try {
|
|
55
|
+
await assertPluginModuleReadable(manifest.module, modulePath);
|
|
56
|
+
// Importing a reporter executes local code, so trust must be checked first.
|
|
57
|
+
const trust = await getPluginTrustStatus(modulePath);
|
|
58
|
+
if (trust.status !== 'trusted') {
|
|
59
|
+
return pluginRuntimeFail(untrustedReporterDiagnostic(manifest.name, trust.status));
|
|
60
|
+
}
|
|
61
|
+
const mod = await importPluginModule(modulePath);
|
|
62
|
+
const exportsObj = (mod.default ?? mod);
|
|
63
|
+
if (typeof exportsObj.render !== 'function') {
|
|
64
|
+
return pluginRuntimeFail({
|
|
65
|
+
code: 'invalid-reporter-export',
|
|
66
|
+
message: `reporter plugin "${manifest.name}" missing required export "render"`,
|
|
67
|
+
hint: 'Use export default { render(context) { ... } } or export a named render function.',
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
ok: true,
|
|
72
|
+
plugin: {
|
|
73
|
+
manifest,
|
|
74
|
+
manifestPath,
|
|
75
|
+
modulePath,
|
|
76
|
+
exports: { render: exportsObj.render },
|
|
77
|
+
},
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
catch (err) {
|
|
81
|
+
const detail = describePluginModuleLoadError(err, manifest.module, modulePath, 'reporter manifest');
|
|
82
|
+
return pluginRuntimeFail({
|
|
83
|
+
code: 'reporter-load-error',
|
|
84
|
+
message: `reporter plugin "${manifest.name}" failed to load: ${detail.message}`,
|
|
85
|
+
hint: detail.hint ?? 'Check the reporter module path and module syntax.',
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
function untrustedReporterDiagnostic(name, status) {
|
|
90
|
+
const changed = status === 'changed';
|
|
91
|
+
return {
|
|
92
|
+
code: 'plugin-untrusted',
|
|
93
|
+
message: changed
|
|
94
|
+
? `reporter plugin "${name}" changed since it was trusted; not executed`
|
|
95
|
+
: `reporter plugin "${name}" is not trusted; not executed`,
|
|
96
|
+
hint: `${changed ? 'Re-run' : 'Run'} \`projscan plugin trust ${name}\` to approve this reporter.`,
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
function pluginRuntimeFail(diagnostic) {
|
|
100
|
+
return { ok: false, reason: diagnostic.message, diagnostic };
|
|
101
|
+
}
|
|
102
|
+
function formatError(err) {
|
|
103
|
+
return err instanceof Error ? err.message : String(err);
|
|
104
|
+
}
|
|
105
|
+
//# sourceMappingURL=pluginReporterLoading.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pluginReporterLoading.js","sourceRoot":"","sources":["../../src/core/pluginReporterLoading.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAOvE,OAAO,EACL,0BAA0B,EAC1B,6BAA6B,EAC7B,kBAAkB,GACnB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,oBAAoB,EAA0B,MAAM,kBAAkB,CAAC;AAmChF,MAAM,CAAC,KAAK,UAAU,qBA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AC;AAED,SAAS,iBAAiB,CACxB,UAA4B;IAE5B,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,OAAO,EAAE,UAAU,EAAE,CAAC;AAC/D,CAAC;AAED,SAAS,WAAW,CAAC,GAAY;IAC/B,OAAO,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;AAC1D,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { CodeGraph } from './codeGraph.js';
|
|
2
|
+
import type { DataflowReport, FileEntry, Issue, SemanticGraphReport } from '../types.js';
|
|
3
|
+
import type { PluginAnalyzerManifest } from './pluginManifestValidation.js';
|
|
4
|
+
export interface PluginAnalyzerContext {
|
|
5
|
+
schemaVersion: 1;
|
|
6
|
+
getCodeGraph: () => Promise<CodeGraph>;
|
|
7
|
+
getSemanticGraph: () => Promise<SemanticGraphReport>;
|
|
8
|
+
getDataflow: () => Promise<DataflowReport>;
|
|
9
|
+
}
|
|
10
|
+
export interface PluginAnalyzerExports {
|
|
11
|
+
check: (rootPath: string, files: FileEntry[], context?: PluginAnalyzerContext) => Promise<Issue[]> | Issue[];
|
|
12
|
+
}
|
|
13
|
+
export interface LoadedPlugin {
|
|
14
|
+
manifest: PluginAnalyzerManifest;
|
|
15
|
+
/** Absolute path to the manifest file on disk. */
|
|
16
|
+
manifestPath: string;
|
|
17
|
+
/** Absolute path to the resolved module entry point. */
|
|
18
|
+
modulePath: string;
|
|
19
|
+
exports: PluginAnalyzerExports;
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pluginRuntimeTypes.js","sourceRoot":"","sources":["../../src/core/pluginRuntimeTypes.ts"],"names":[],"mappings":""}
|
package/dist/core/plugins.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
1
|
+
import type { PluginReporterResolveResult } from './pluginReporterLoading.js';
|
|
2
|
+
import type { LoadedPlugin } from './pluginRuntimeTypes.js';
|
|
3
|
+
import type { PluginReporterCommand } from './pluginManifestValidation.js';
|
|
4
4
|
/**
|
|
5
5
|
* Stable local plugin API (2.0+).
|
|
6
6
|
*
|
|
@@ -16,83 +16,15 @@ import type { PluginAnalyzerManifest, PluginDiagnostic, PluginManifest, PluginRe
|
|
|
16
16
|
* discipline as the rest of projscan.
|
|
17
17
|
*/
|
|
18
18
|
export declare const PLUGIN_PREVIEW_FLAG = "PROJSCAN_PLUGINS_PREVIEW";
|
|
19
|
-
export
|
|
20
|
-
export
|
|
19
|
+
export { PLUGIN_DIR, PLUGIN_MANIFEST_EXT, discoverPluginManifests, readPluginManifestFile, } from './pluginManifestDiscovery.js';
|
|
20
|
+
export type { PluginDiscoveryEntry, PluginManifestFileResult } from './pluginManifestDiscovery.js';
|
|
21
|
+
export type { LoadedPlugin, PluginAnalyzerContext, PluginAnalyzerExports, } from './pluginRuntimeTypes.js';
|
|
22
|
+
export { runAnalyzerPlugins } from './pluginAnalyzerRunning.js';
|
|
21
23
|
export { PLUGIN_REPORTER_COMMANDS, PLUGIN_SCHEMA_VERSION, validateManifest, } from './pluginManifestValidation.js';
|
|
22
24
|
export type { PluginAnalyzerManifest, PluginDiagnostic, PluginKind, PluginManifest, PluginReporterCommand, PluginReporterManifest, } from './pluginManifestValidation.js';
|
|
23
|
-
export
|
|
24
|
-
|
|
25
|
-
getCodeGraph: () => Promise<CodeGraph>;
|
|
26
|
-
getSemanticGraph: () => Promise<SemanticGraphReport>;
|
|
27
|
-
getDataflow: () => Promise<DataflowReport>;
|
|
28
|
-
}
|
|
29
|
-
export interface PluginAnalyzerExports {
|
|
30
|
-
check: (rootPath: string, files: FileEntry[], context?: PluginAnalyzerContext) => Promise<Issue[]> | Issue[];
|
|
31
|
-
}
|
|
32
|
-
export interface PluginReporterContext<TPayload = unknown> {
|
|
33
|
-
command: PluginReporterCommand;
|
|
34
|
-
rootPath: string;
|
|
35
|
-
manifest: PluginReporterManifest;
|
|
36
|
-
payload: TPayload;
|
|
37
|
-
}
|
|
38
|
-
export interface PluginReporterExports {
|
|
39
|
-
render: (context: PluginReporterContext) => Promise<string> | string;
|
|
40
|
-
}
|
|
41
|
-
export interface LoadedPlugin {
|
|
42
|
-
manifest: PluginAnalyzerManifest;
|
|
43
|
-
/** Absolute path to the manifest file on disk. */
|
|
44
|
-
manifestPath: string;
|
|
45
|
-
/** Absolute path to the resolved module entry point. */
|
|
46
|
-
modulePath: string;
|
|
47
|
-
exports: PluginAnalyzerExports;
|
|
48
|
-
}
|
|
49
|
-
export interface LoadedReporterPlugin {
|
|
50
|
-
manifest: PluginReporterManifest;
|
|
51
|
-
/** Absolute path to the manifest file on disk. */
|
|
52
|
-
manifestPath: string;
|
|
53
|
-
/** Absolute path to the resolved module entry point. */
|
|
54
|
-
modulePath: string;
|
|
55
|
-
exports: PluginReporterExports;
|
|
56
|
-
}
|
|
57
|
-
export interface PluginDiscoveryEntry {
|
|
58
|
-
manifestPath: string;
|
|
59
|
-
manifest: PluginManifest | null;
|
|
60
|
-
/** Set when the manifest failed to parse or validate. */
|
|
61
|
-
error?: string;
|
|
62
|
-
diagnostic?: PluginDiagnostic;
|
|
63
|
-
}
|
|
64
|
-
export type PluginManifestFileResult = {
|
|
65
|
-
ok: true;
|
|
66
|
-
manifest: PluginManifest;
|
|
67
|
-
} | {
|
|
68
|
-
ok: false;
|
|
69
|
-
reason: string;
|
|
70
|
-
diagnostic: PluginDiagnostic;
|
|
71
|
-
};
|
|
72
|
-
export type PluginReporterResolveResult = {
|
|
73
|
-
ok: true;
|
|
74
|
-
plugin: LoadedReporterPlugin;
|
|
75
|
-
} | {
|
|
76
|
-
ok: false;
|
|
77
|
-
reason: string;
|
|
78
|
-
diagnostic: PluginDiagnostic;
|
|
79
|
-
};
|
|
80
|
-
export type PluginReporterRenderResult = {
|
|
81
|
-
ok: true;
|
|
82
|
-
output: string;
|
|
83
|
-
} | {
|
|
84
|
-
ok: false;
|
|
85
|
-
reason: string;
|
|
86
|
-
diagnostic: PluginDiagnostic;
|
|
87
|
-
};
|
|
25
|
+
export { renderReporterPlugin } from './pluginReporterLoading.js';
|
|
26
|
+
export type { LoadedReporterPlugin, PluginReporterContext, PluginReporterExports, PluginReporterRenderResult, PluginReporterResolveResult, } from './pluginReporterLoading.js';
|
|
88
27
|
export declare function pluginsEnabled(): boolean;
|
|
89
|
-
export declare function readPluginManifestFile(manifestPath: string): Promise<PluginManifestFileResult>;
|
|
90
|
-
/**
|
|
91
|
-
* Discover every plugin manifest under `<root>/.projscan-plugins/`. Manifests
|
|
92
|
-
* that fail to parse or validate are returned with `manifest: null` and an
|
|
93
|
-
* `error` so the CLI / MCP tool can surface them without throwing.
|
|
94
|
-
*/
|
|
95
|
-
export declare function discoverPluginManifests(rootPath: string): Promise<PluginDiscoveryEntry[]>;
|
|
96
28
|
/**
|
|
97
29
|
* Discover, validate, and dynamically import every plugin under the
|
|
98
30
|
* project. Returns [] when the preview flag is off.
|
|
@@ -103,12 +35,3 @@ export declare function discoverPluginManifests(rootPath: string): Promise<Plugi
|
|
|
103
35
|
*/
|
|
104
36
|
export declare function loadPlugins(rootPath: string): Promise<LoadedPlugin[]>;
|
|
105
37
|
export declare function resolveReporterPlugin(rootPath: string, reporterName: string, command: PluginReporterCommand): Promise<PluginReporterResolveResult>;
|
|
106
|
-
export declare function renderReporterPlugin(plugin: LoadedReporterPlugin, context: PluginReporterContext): Promise<PluginReporterRenderResult>;
|
|
107
|
-
/**
|
|
108
|
-
* Run every loaded analyzer plugin against `files`. Issues that don't pass
|
|
109
|
-
* a tight shape check are dropped so a malformed plugin can't poison the
|
|
110
|
-
* issue stream. Each plugin's output is also re-stamped with `id` prefixed
|
|
111
|
-
* by the plugin name (so two plugins emitting the same local rule id can't
|
|
112
|
-
* collide).
|
|
113
|
-
*/
|
|
114
|
-
export declare function runAnalyzerPlugins(plugins: LoadedPlugin[], rootPath: string, files: FileEntry[], context?: PluginAnalyzerContext): Promise<Issue[]>;
|