@grafema/core 0.2.4-beta → 0.2.6-beta
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 +61 -23
- package/dist/DiscoveryManager.d.ts +59 -0
- package/dist/DiscoveryManager.d.ts.map +1 -0
- package/dist/DiscoveryManager.js +249 -0
- package/dist/DiscoveryManager.js.map +1 -0
- package/dist/GraphInitializer.d.ts +44 -0
- package/dist/GraphInitializer.d.ts.map +1 -0
- package/dist/GraphInitializer.js +121 -0
- package/dist/GraphInitializer.js.map +1 -0
- package/dist/GuaranteeChecker.d.ts +35 -0
- package/dist/GuaranteeChecker.d.ts.map +1 -0
- package/dist/GuaranteeChecker.js +81 -0
- package/dist/GuaranteeChecker.js.map +1 -0
- package/dist/Orchestrator.d.ts +42 -122
- package/dist/Orchestrator.d.ts.map +1 -1
- package/dist/Orchestrator.js +228 -513
- package/dist/Orchestrator.js.map +1 -0
- package/dist/OrchestratorTypes.d.ts +115 -0
- package/dist/OrchestratorTypes.d.ts.map +1 -0
- package/dist/OrchestratorTypes.js +6 -0
- package/dist/OrchestratorTypes.js.map +1 -0
- package/dist/ParallelAnalysisRunner.d.ts +43 -0
- package/dist/ParallelAnalysisRunner.d.ts.map +1 -0
- package/dist/ParallelAnalysisRunner.js +161 -0
- package/dist/ParallelAnalysisRunner.js.map +1 -0
- package/dist/PhaseRunner.d.ts +92 -0
- package/dist/PhaseRunner.d.ts.map +1 -0
- package/dist/PhaseRunner.js +332 -0
- package/dist/PhaseRunner.js.map +1 -0
- package/dist/api/GraphAPI.d.ts +1 -1
- package/dist/api/GraphAPI.d.ts.map +1 -1
- package/dist/api/GraphAPI.js +3 -1
- package/dist/api/GraphAPI.js.map +1 -0
- package/dist/api/GuaranteeAPI.d.ts.map +1 -1
- package/dist/api/GuaranteeAPI.js +4 -2
- package/dist/api/GuaranteeAPI.js.map +1 -0
- package/dist/config/ConfigLoader.d.ts +117 -1
- package/dist/config/ConfigLoader.d.ts.map +1 -1
- package/dist/config/ConfigLoader.js +198 -4
- package/dist/config/ConfigLoader.js.map +1 -0
- package/dist/config/index.d.ts +1 -1
- package/dist/config/index.d.ts.map +1 -1
- package/dist/config/index.js +2 -1
- package/dist/config/index.js.map +1 -0
- package/dist/core/ASTWorker.d.ts +2 -0
- package/dist/core/ASTWorker.d.ts.map +1 -1
- package/dist/core/ASTWorker.js +12 -6
- package/dist/core/ASTWorker.js.map +1 -0
- package/dist/core/ASTWorkerPool.js +2 -1
- package/dist/core/ASTWorkerPool.js.map +1 -0
- package/dist/core/AnalysisQueue.js +1 -0
- package/dist/core/AnalysisQueue.js.map +1 -0
- package/dist/core/CoverageAnalyzer.d.ts.map +1 -1
- package/dist/core/CoverageAnalyzer.js +1 -0
- package/dist/core/CoverageAnalyzer.js.map +1 -0
- package/dist/core/FileExplainer.js +1 -0
- package/dist/core/FileExplainer.js.map +1 -0
- package/dist/core/FileNodeManager.d.ts.map +1 -1
- package/dist/core/FileNodeManager.js +4 -2
- package/dist/core/FileNodeManager.js.map +1 -0
- package/dist/core/FileOverview.d.ts +124 -0
- package/dist/core/FileOverview.d.ts.map +1 -0
- package/dist/core/FileOverview.js +257 -0
- package/dist/core/FileOverview.js.map +1 -0
- package/dist/core/GraphBackend.js +1 -0
- package/dist/core/GraphBackend.js.map +1 -0
- package/dist/core/GraphFreshnessChecker.d.ts +1 -1
- package/dist/core/GraphFreshnessChecker.d.ts.map +1 -1
- package/dist/core/GraphFreshnessChecker.js +8 -5
- package/dist/core/GraphFreshnessChecker.js.map +1 -0
- package/dist/core/GuaranteeManager.d.ts +13 -0
- package/dist/core/GuaranteeManager.d.ts.map +1 -1
- package/dist/core/GuaranteeManager.js +65 -3
- package/dist/core/GuaranteeManager.js.map +1 -0
- package/dist/core/HashUtils.js +1 -0
- package/dist/core/HashUtils.js.map +1 -0
- package/dist/core/IncrementalReanalyzer.d.ts.map +1 -1
- package/dist/core/IncrementalReanalyzer.js +13 -6
- package/dist/core/IncrementalReanalyzer.js.map +1 -0
- package/dist/core/ManifestStore.js +1 -0
- package/dist/core/ManifestStore.js.map +1 -0
- package/dist/core/NodeFactory.d.ts +82 -396
- package/dist/core/NodeFactory.d.ts.map +1 -1
- package/dist/core/NodeFactory.js +144 -322
- package/dist/core/NodeFactory.js.map +1 -0
- package/dist/core/NodeId.js +1 -0
- package/dist/core/NodeId.js.map +1 -0
- package/dist/core/PriorityQueue.js +1 -0
- package/dist/core/PriorityQueue.js.map +1 -0
- package/dist/core/Profiler.js +1 -0
- package/dist/core/Profiler.js.map +1 -0
- package/dist/core/ResourceRegistry.d.ts +17 -0
- package/dist/core/ResourceRegistry.d.ts.map +1 -0
- package/dist/core/ResourceRegistry.js +32 -0
- package/dist/core/ResourceRegistry.js.map +1 -0
- package/dist/core/ScopeTracker.d.ts +12 -0
- package/dist/core/ScopeTracker.d.ts.map +1 -1
- package/dist/core/ScopeTracker.js +25 -0
- package/dist/core/ScopeTracker.js.map +1 -0
- package/dist/core/SemanticId.d.ts +69 -0
- package/dist/core/SemanticId.d.ts.map +1 -1
- package/dist/core/SemanticId.js +135 -0
- package/dist/core/SemanticId.js.map +1 -0
- package/dist/core/Task.js +1 -0
- package/dist/core/Task.js.map +1 -0
- package/dist/core/TaskTypes.js +1 -0
- package/dist/core/TaskTypes.js.map +1 -0
- package/dist/core/VersionManager.js +1 -0
- package/dist/core/VersionManager.js.map +1 -0
- package/dist/core/WorkerPool.d.ts.map +1 -1
- package/dist/core/WorkerPool.js +3 -1
- package/dist/core/WorkerPool.js.map +1 -0
- package/dist/core/brandNodeInternal.d.ts +14 -0
- package/dist/core/brandNodeInternal.d.ts.map +1 -0
- package/dist/core/brandNodeInternal.js +4 -0
- package/dist/core/brandNodeInternal.js.map +1 -0
- package/dist/core/buildDependencyGraph.d.ts +36 -0
- package/dist/core/buildDependencyGraph.d.ts.map +1 -0
- package/dist/core/buildDependencyGraph.js +78 -0
- package/dist/core/buildDependencyGraph.js.map +1 -0
- package/dist/core/factories/CoreFactory.d.ts +223 -0
- package/dist/core/factories/CoreFactory.d.ts.map +1 -0
- package/dist/core/factories/CoreFactory.js +127 -0
- package/dist/core/factories/CoreFactory.js.map +1 -0
- package/dist/core/factories/DatabaseFactory.d.ts +29 -0
- package/dist/core/factories/DatabaseFactory.d.ts.map +1 -0
- package/dist/core/factories/DatabaseFactory.js +25 -0
- package/dist/core/factories/DatabaseFactory.js.map +1 -0
- package/dist/core/factories/ExternalFactory.d.ts +11 -0
- package/dist/core/factories/ExternalFactory.d.ts.map +1 -0
- package/dist/core/factories/ExternalFactory.js +16 -0
- package/dist/core/factories/ExternalFactory.js.map +1 -0
- package/dist/core/factories/HttpFactory.d.ts +22 -0
- package/dist/core/factories/HttpFactory.d.ts.map +1 -0
- package/dist/core/factories/HttpFactory.js +32 -0
- package/dist/core/factories/HttpFactory.js.map +1 -0
- package/dist/core/factories/ReactFactory.d.ts +14 -0
- package/dist/core/factories/ReactFactory.d.ts.map +1 -0
- package/dist/core/factories/ReactFactory.js +13 -0
- package/dist/core/factories/ReactFactory.js.map +1 -0
- package/dist/core/factories/RustFactory.d.ts +62 -0
- package/dist/core/factories/RustFactory.d.ts.map +1 -0
- package/dist/core/factories/RustFactory.js +32 -0
- package/dist/core/factories/RustFactory.js.map +1 -0
- package/dist/core/factories/ServiceFactory.d.ts +12 -0
- package/dist/core/factories/ServiceFactory.d.ts.map +1 -0
- package/dist/core/factories/ServiceFactory.js +22 -0
- package/dist/core/factories/ServiceFactory.js.map +1 -0
- package/dist/core/factories/SocketFactory.d.ts +31 -0
- package/dist/core/factories/SocketFactory.d.ts.map +1 -0
- package/dist/core/factories/SocketFactory.js +35 -0
- package/dist/core/factories/SocketFactory.js.map +1 -0
- package/dist/core/nodes/ArgumentExpressionNode.js +1 -0
- package/dist/core/nodes/ArgumentExpressionNode.js.map +1 -0
- package/dist/core/nodes/ArrayLiteralNode.js +1 -0
- package/dist/core/nodes/ArrayLiteralNode.js.map +1 -0
- package/dist/core/nodes/BranchNode.js +1 -0
- package/dist/core/nodes/BranchNode.js.map +1 -0
- package/dist/core/nodes/CallSiteNode.js +1 -0
- package/dist/core/nodes/CallSiteNode.js.map +1 -0
- package/dist/core/nodes/CaseNode.js +1 -0
- package/dist/core/nodes/CaseNode.js.map +1 -0
- package/dist/core/nodes/ClassNode.js +1 -0
- package/dist/core/nodes/ClassNode.js.map +1 -0
- package/dist/core/nodes/ConstantNode.js +1 -0
- package/dist/core/nodes/ConstantNode.js.map +1 -0
- package/dist/core/nodes/ConstructorCallNode.js +1 -0
- package/dist/core/nodes/ConstructorCallNode.js.map +1 -0
- package/dist/core/nodes/DatabaseNode.d.ts +85 -0
- package/dist/core/nodes/DatabaseNode.d.ts.map +1 -0
- package/dist/core/nodes/DatabaseNode.js +118 -0
- package/dist/core/nodes/DatabaseNode.js.map +1 -0
- package/dist/core/nodes/DatabaseQueryNode.js +1 -0
- package/dist/core/nodes/DatabaseQueryNode.js.map +1 -0
- package/dist/core/nodes/DecoratorNode.js +1 -0
- package/dist/core/nodes/DecoratorNode.js.map +1 -0
- package/dist/core/nodes/EntrypointNode.js +1 -0
- package/dist/core/nodes/EntrypointNode.js.map +1 -0
- package/dist/core/nodes/EnumNode.js +1 -0
- package/dist/core/nodes/EnumNode.js.map +1 -0
- package/dist/core/nodes/EventListenerNode.js +1 -0
- package/dist/core/nodes/EventListenerNode.js.map +1 -0
- package/dist/core/nodes/ExportNode.js +1 -0
- package/dist/core/nodes/ExportNode.js.map +1 -0
- package/dist/core/nodes/ExpressMiddlewareNode.d.ts +47 -0
- package/dist/core/nodes/ExpressMiddlewareNode.d.ts.map +1 -0
- package/dist/core/nodes/ExpressMiddlewareNode.js +63 -0
- package/dist/core/nodes/ExpressMiddlewareNode.js.map +1 -0
- package/dist/core/nodes/ExpressMountNode.d.ts +44 -0
- package/dist/core/nodes/ExpressMountNode.d.ts.map +1 -0
- package/dist/core/nodes/ExpressMountNode.js +61 -0
- package/dist/core/nodes/ExpressMountNode.js.map +1 -0
- package/dist/core/nodes/ExpressionNode.js +1 -0
- package/dist/core/nodes/ExpressionNode.js.map +1 -0
- package/dist/core/nodes/ExternalApiNode.d.ts +29 -0
- package/dist/core/nodes/ExternalApiNode.d.ts.map +1 -0
- package/dist/core/nodes/ExternalApiNode.js +41 -0
- package/dist/core/nodes/ExternalApiNode.js.map +1 -0
- package/dist/core/nodes/ExternalFunctionNode.d.ts +40 -0
- package/dist/core/nodes/ExternalFunctionNode.d.ts.map +1 -0
- package/dist/core/nodes/ExternalFunctionNode.js +54 -0
- package/dist/core/nodes/ExternalFunctionNode.js.map +1 -0
- package/dist/core/nodes/ExternalModuleNode.js +1 -0
- package/dist/core/nodes/ExternalModuleNode.js.map +1 -0
- package/dist/core/nodes/ExternalStdioNode.js +1 -0
- package/dist/core/nodes/ExternalStdioNode.js.map +1 -0
- package/dist/core/nodes/FetchRequestNode.d.ts +54 -0
- package/dist/core/nodes/FetchRequestNode.d.ts.map +1 -0
- package/dist/core/nodes/FetchRequestNode.js +67 -0
- package/dist/core/nodes/FetchRequestNode.js.map +1 -0
- package/dist/core/nodes/FunctionNode.js +1 -0
- package/dist/core/nodes/FunctionNode.js.map +1 -0
- package/dist/core/nodes/GuaranteeNode.js +1 -0
- package/dist/core/nodes/GuaranteeNode.js.map +1 -0
- package/dist/core/nodes/HttpRequestNode.js +1 -0
- package/dist/core/nodes/HttpRequestNode.js.map +1 -0
- package/dist/core/nodes/HttpRouteNode.d.ts +58 -0
- package/dist/core/nodes/HttpRouteNode.d.ts.map +1 -0
- package/dist/core/nodes/HttpRouteNode.js +72 -0
- package/dist/core/nodes/HttpRouteNode.js.map +1 -0
- package/dist/core/nodes/ImportNode.js +1 -0
- package/dist/core/nodes/ImportNode.js.map +1 -0
- package/dist/core/nodes/InterfaceNode.js +1 -0
- package/dist/core/nodes/InterfaceNode.js.map +1 -0
- package/dist/core/nodes/IssueNode.js +1 -0
- package/dist/core/nodes/IssueNode.js.map +1 -0
- package/dist/core/nodes/LiteralNode.js +1 -0
- package/dist/core/nodes/LiteralNode.js.map +1 -0
- package/dist/core/nodes/MethodCallNode.js +1 -0
- package/dist/core/nodes/MethodCallNode.js.map +1 -0
- package/dist/core/nodes/MethodNode.js +1 -0
- package/dist/core/nodes/MethodNode.js.map +1 -0
- package/dist/core/nodes/ModuleNode.js +1 -0
- package/dist/core/nodes/ModuleNode.js.map +1 -0
- package/dist/core/nodes/NetworkRequestNode.js +1 -0
- package/dist/core/nodes/NetworkRequestNode.js.map +1 -0
- package/dist/core/nodes/NodeKind.d.ts +6 -0
- package/dist/core/nodes/NodeKind.d.ts.map +1 -1
- package/dist/core/nodes/NodeKind.js +12 -0
- package/dist/core/nodes/NodeKind.js.map +1 -0
- package/dist/core/nodes/ObjectLiteralNode.js +1 -0
- package/dist/core/nodes/ObjectLiteralNode.js.map +1 -0
- package/dist/core/nodes/ParameterNode.js +1 -0
- package/dist/core/nodes/ParameterNode.js.map +1 -0
- package/dist/core/nodes/PluginNode.d.ts +69 -0
- package/dist/core/nodes/PluginNode.d.ts.map +1 -0
- package/dist/core/nodes/PluginNode.js +106 -0
- package/dist/core/nodes/PluginNode.js.map +1 -0
- package/dist/core/nodes/ReactNode.d.ts +53 -0
- package/dist/core/nodes/ReactNode.d.ts.map +1 -0
- package/dist/core/nodes/ReactNode.js +70 -0
- package/dist/core/nodes/ReactNode.js.map +1 -0
- package/dist/core/nodes/RustCallNode.d.ts +46 -0
- package/dist/core/nodes/RustCallNode.d.ts.map +1 -0
- package/dist/core/nodes/RustCallNode.js +62 -0
- package/dist/core/nodes/RustCallNode.js.map +1 -0
- package/dist/core/nodes/RustFunctionNode.d.ts +58 -0
- package/dist/core/nodes/RustFunctionNode.d.ts.map +1 -0
- package/dist/core/nodes/RustFunctionNode.js +67 -0
- package/dist/core/nodes/RustFunctionNode.js.map +1 -0
- package/dist/core/nodes/RustImplNode.d.ts +35 -0
- package/dist/core/nodes/RustImplNode.d.ts.map +1 -0
- package/dist/core/nodes/RustImplNode.js +55 -0
- package/dist/core/nodes/RustImplNode.js.map +1 -0
- package/dist/core/nodes/RustMethodNode.d.ts +64 -0
- package/dist/core/nodes/RustMethodNode.d.ts.map +1 -0
- package/dist/core/nodes/RustMethodNode.js +76 -0
- package/dist/core/nodes/RustMethodNode.js.map +1 -0
- package/dist/core/nodes/RustModuleNode.d.ts +40 -0
- package/dist/core/nodes/RustModuleNode.d.ts.map +1 -0
- package/dist/core/nodes/RustModuleNode.js +57 -0
- package/dist/core/nodes/RustModuleNode.js.map +1 -0
- package/dist/core/nodes/RustStructNode.d.ts +38 -0
- package/dist/core/nodes/RustStructNode.d.ts.map +1 -0
- package/dist/core/nodes/RustStructNode.js +54 -0
- package/dist/core/nodes/RustStructNode.js.map +1 -0
- package/dist/core/nodes/RustTraitNode.d.ts +40 -0
- package/dist/core/nodes/RustTraitNode.d.ts.map +1 -0
- package/dist/core/nodes/RustTraitNode.js +52 -0
- package/dist/core/nodes/RustTraitNode.js.map +1 -0
- package/dist/core/nodes/ScopeNode.js +1 -0
- package/dist/core/nodes/ScopeNode.js.map +1 -0
- package/dist/core/nodes/ServiceLayerNode.d.ts +85 -0
- package/dist/core/nodes/ServiceLayerNode.d.ts.map +1 -0
- package/dist/core/nodes/ServiceLayerNode.js +122 -0
- package/dist/core/nodes/ServiceLayerNode.js.map +1 -0
- package/dist/core/nodes/ServiceNode.js +1 -0
- package/dist/core/nodes/ServiceNode.js.map +1 -0
- package/dist/core/nodes/SocketIONode.d.ts +71 -0
- package/dist/core/nodes/SocketIONode.d.ts.map +1 -0
- package/dist/core/nodes/SocketIONode.js +111 -0
- package/dist/core/nodes/SocketIONode.js.map +1 -0
- package/dist/core/nodes/SocketNode.d.ts +87 -0
- package/dist/core/nodes/SocketNode.d.ts.map +1 -0
- package/dist/core/nodes/SocketNode.js +124 -0
- package/dist/core/nodes/SocketNode.js.map +1 -0
- package/dist/core/nodes/TypeNode.d.ts +26 -1
- package/dist/core/nodes/TypeNode.d.ts.map +1 -1
- package/dist/core/nodes/TypeNode.js +23 -4
- package/dist/core/nodes/TypeNode.js.map +1 -0
- package/dist/core/nodes/TypeParameterNode.d.ts +44 -0
- package/dist/core/nodes/TypeParameterNode.d.ts.map +1 -0
- package/dist/core/nodes/TypeParameterNode.js +64 -0
- package/dist/core/nodes/TypeParameterNode.js.map +1 -0
- package/dist/core/nodes/VariableDeclarationNode.js +1 -0
- package/dist/core/nodes/VariableDeclarationNode.js.map +1 -0
- package/dist/core/nodes/index.d.ts +21 -1
- package/dist/core/nodes/index.d.ts.map +1 -1
- package/dist/core/nodes/index.js +30 -1
- package/dist/core/nodes/index.js.map +1 -0
- package/dist/core/toposort.d.ts +38 -0
- package/dist/core/toposort.d.ts.map +1 -0
- package/dist/core/toposort.js +129 -0
- package/dist/core/toposort.js.map +1 -0
- package/dist/data/builtins/BuiltinRegistry.js +1 -0
- package/dist/data/builtins/BuiltinRegistry.js.map +1 -0
- package/dist/data/builtins/definitions.js +1 -0
- package/dist/data/builtins/definitions.js.map +1 -0
- package/dist/data/builtins/index.js +1 -0
- package/dist/data/builtins/index.js.map +1 -0
- package/dist/data/builtins/jsGlobals.js +1 -0
- package/dist/data/builtins/jsGlobals.js.map +1 -0
- package/dist/data/builtins/types.js +1 -0
- package/dist/data/builtins/types.js.map +1 -0
- package/dist/data/globals/definitions.js +1 -0
- package/dist/data/globals/definitions.js.map +1 -0
- package/dist/data/globals/index.js +1 -0
- package/dist/data/globals/index.js.map +1 -0
- package/dist/diagnostics/DiagnosticCollector.d.ts +5 -0
- package/dist/diagnostics/DiagnosticCollector.d.ts.map +1 -1
- package/dist/diagnostics/DiagnosticCollector.js +4 -0
- package/dist/diagnostics/DiagnosticCollector.js.map +1 -0
- package/dist/diagnostics/DiagnosticReporter.d.ts +23 -1
- package/dist/diagnostics/DiagnosticReporter.d.ts.map +1 -1
- package/dist/diagnostics/DiagnosticReporter.js +68 -15
- package/dist/diagnostics/DiagnosticReporter.js.map +1 -0
- package/dist/diagnostics/DiagnosticWriter.js +1 -0
- package/dist/diagnostics/DiagnosticWriter.js.map +1 -0
- package/dist/diagnostics/categories.d.ts +57 -0
- package/dist/diagnostics/categories.d.ts.map +1 -0
- package/dist/diagnostics/categories.js +71 -0
- package/dist/diagnostics/categories.js.map +1 -0
- package/dist/diagnostics/index.d.ts +3 -0
- package/dist/diagnostics/index.d.ts.map +1 -1
- package/dist/diagnostics/index.js +4 -0
- package/dist/diagnostics/index.js.map +1 -0
- package/dist/errors/GrafemaError.d.ts +39 -0
- package/dist/errors/GrafemaError.d.ts.map +1 -1
- package/dist/errors/GrafemaError.js +28 -0
- package/dist/errors/GrafemaError.js.map +1 -0
- package/dist/index.d.ts +53 -15
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +48 -9
- package/dist/index.js.map +1 -0
- package/dist/instructions/index.d.ts +8 -0
- package/dist/instructions/index.d.ts.map +1 -0
- package/dist/instructions/index.js +20 -0
- package/dist/instructions/index.js.map +1 -0
- package/dist/instructions/onboarding.md +121 -0
- package/dist/logging/Logger.d.ts +53 -3
- package/dist/logging/Logger.d.ts.map +1 -1
- package/dist/logging/Logger.js +144 -4
- package/dist/logging/Logger.js.map +1 -0
- package/dist/plugins/InfraAnalyzer.d.ts +110 -0
- package/dist/plugins/InfraAnalyzer.d.ts.map +1 -0
- package/dist/plugins/InfraAnalyzer.js +170 -0
- package/dist/plugins/InfraAnalyzer.js.map +1 -0
- package/dist/plugins/Plugin.js +1 -0
- package/dist/plugins/Plugin.js.map +1 -0
- package/dist/plugins/analysis/DatabaseAnalyzer.d.ts.map +1 -1
- package/dist/plugins/analysis/DatabaseAnalyzer.js +35 -26
- package/dist/plugins/analysis/DatabaseAnalyzer.js.map +1 -0
- package/dist/plugins/analysis/ExpressAnalyzer.d.ts.map +1 -1
- package/dist/plugins/analysis/ExpressAnalyzer.js +44 -36
- package/dist/plugins/analysis/ExpressAnalyzer.js.map +1 -0
- package/dist/plugins/analysis/ExpressResponseAnalyzer.d.ts +2 -1
- package/dist/plugins/analysis/ExpressResponseAnalyzer.d.ts.map +1 -1
- package/dist/plugins/analysis/ExpressResponseAnalyzer.js +56 -77
- package/dist/plugins/analysis/ExpressResponseAnalyzer.js.map +1 -0
- package/dist/plugins/analysis/ExpressRouteAnalyzer.d.ts.map +1 -1
- package/dist/plugins/analysis/ExpressRouteAnalyzer.js +69 -62
- package/dist/plugins/analysis/ExpressRouteAnalyzer.js.map +1 -0
- package/dist/plugins/analysis/FetchAnalyzer.d.ts +8 -14
- package/dist/plugins/analysis/FetchAnalyzer.d.ts.map +1 -1
- package/dist/plugins/analysis/FetchAnalyzer.js +162 -131
- package/dist/plugins/analysis/FetchAnalyzer.js.map +1 -0
- package/dist/plugins/analysis/IncrementalAnalysisPlugin.d.ts.map +1 -1
- package/dist/plugins/analysis/IncrementalAnalysisPlugin.js +6 -7
- package/dist/plugins/analysis/IncrementalAnalysisPlugin.js.map +1 -0
- package/dist/plugins/analysis/JSASTAnalyzer.d.ts +77 -82
- package/dist/plugins/analysis/JSASTAnalyzer.d.ts.map +1 -1
- package/dist/plugins/analysis/JSASTAnalyzer.js +811 -1843
- package/dist/plugins/analysis/JSASTAnalyzer.js.map +1 -0
- package/dist/plugins/analysis/NestJSRouteAnalyzer.d.ts +28 -0
- package/dist/plugins/analysis/NestJSRouteAnalyzer.d.ts.map +1 -0
- package/dist/plugins/analysis/NestJSRouteAnalyzer.js +196 -0
- package/dist/plugins/analysis/NestJSRouteAnalyzer.js.map +1 -0
- package/dist/plugins/analysis/ReactAnalyzer.d.ts +1 -61
- package/dist/plugins/analysis/ReactAnalyzer.d.ts.map +1 -1
- package/dist/plugins/analysis/ReactAnalyzer.js +41 -927
- package/dist/plugins/analysis/ReactAnalyzer.js.map +1 -0
- package/dist/plugins/analysis/RustAnalyzer.d.ts.map +1 -1
- package/dist/plugins/analysis/RustAnalyzer.js +62 -84
- package/dist/plugins/analysis/RustAnalyzer.js.map +1 -0
- package/dist/plugins/analysis/SQLiteAnalyzer.d.ts.map +1 -1
- package/dist/plugins/analysis/SQLiteAnalyzer.js +26 -12
- package/dist/plugins/analysis/SQLiteAnalyzer.js.map +1 -0
- package/dist/plugins/analysis/ServiceLayerAnalyzer.d.ts.map +1 -1
- package/dist/plugins/analysis/ServiceLayerAnalyzer.js +39 -31
- package/dist/plugins/analysis/ServiceLayerAnalyzer.js.map +1 -0
- package/dist/plugins/analysis/SocketAnalyzer.d.ts +81 -0
- package/dist/plugins/analysis/SocketAnalyzer.d.ts.map +1 -0
- package/dist/plugins/analysis/SocketAnalyzer.js +475 -0
- package/dist/plugins/analysis/SocketAnalyzer.js.map +1 -0
- package/dist/plugins/analysis/SocketIOAnalyzer.d.ts.map +1 -1
- package/dist/plugins/analysis/SocketIOAnalyzer.js +33 -28
- package/dist/plugins/analysis/SocketIOAnalyzer.js.map +1 -0
- package/dist/plugins/analysis/SystemDbAnalyzer.d.ts.map +1 -1
- package/dist/plugins/analysis/SystemDbAnalyzer.js +25 -14
- package/dist/plugins/analysis/SystemDbAnalyzer.js.map +1 -0
- package/dist/plugins/analysis/ast/CollisionResolver.d.ts +65 -0
- package/dist/plugins/analysis/ast/CollisionResolver.d.ts.map +1 -0
- package/dist/plugins/analysis/ast/CollisionResolver.js +106 -0
- package/dist/plugins/analysis/ast/CollisionResolver.js.map +1 -0
- package/dist/plugins/analysis/ast/ConditionParser.js +1 -0
- package/dist/plugins/analysis/ast/ConditionParser.js.map +1 -0
- package/dist/plugins/analysis/ast/ExpressionEvaluator.d.ts.map +1 -1
- package/dist/plugins/analysis/ast/ExpressionEvaluator.js +1 -0
- package/dist/plugins/analysis/ast/ExpressionEvaluator.js.map +1 -0
- package/dist/plugins/analysis/ast/FunctionBodyContext.d.ts +124 -0
- package/dist/plugins/analysis/ast/FunctionBodyContext.d.ts.map +1 -0
- package/dist/plugins/analysis/ast/FunctionBodyContext.js +151 -0
- package/dist/plugins/analysis/ast/FunctionBodyContext.js.map +1 -0
- package/dist/plugins/analysis/ast/GraphBuilder.d.ts +26 -209
- package/dist/plugins/analysis/ast/GraphBuilder.d.ts.map +1 -1
- package/dist/plugins/analysis/ast/GraphBuilder.js +164 -2023
- package/dist/plugins/analysis/ast/GraphBuilder.js.map +1 -0
- package/dist/plugins/analysis/ast/IdGenerator.d.ts +42 -0
- package/dist/plugins/analysis/ast/IdGenerator.d.ts.map +1 -1
- package/dist/plugins/analysis/ast/IdGenerator.js +62 -1
- package/dist/plugins/analysis/ast/IdGenerator.js.map +1 -0
- package/dist/plugins/analysis/ast/OxcAdapter.js +1 -0
- package/dist/plugins/analysis/ast/OxcAdapter.js.map +1 -0
- package/dist/plugins/analysis/ast/builders/AssignmentBuilder.d.ts +15 -0
- package/dist/plugins/analysis/ast/builders/AssignmentBuilder.d.ts.map +1 -0
- package/dist/plugins/analysis/ast/builders/AssignmentBuilder.js +274 -0
- package/dist/plugins/analysis/ast/builders/AssignmentBuilder.js.map +1 -0
- package/dist/plugins/analysis/ast/builders/CallFlowBuilder.d.ts +22 -0
- package/dist/plugins/analysis/ast/builders/CallFlowBuilder.d.ts.map +1 -0
- package/dist/plugins/analysis/ast/builders/CallFlowBuilder.js +178 -0
- package/dist/plugins/analysis/ast/builders/CallFlowBuilder.js.map +1 -0
- package/dist/plugins/analysis/ast/builders/ControlFlowBuilder.d.ts +76 -0
- package/dist/plugins/analysis/ast/builders/ControlFlowBuilder.d.ts.map +1 -0
- package/dist/plugins/analysis/ast/builders/ControlFlowBuilder.js +387 -0
- package/dist/plugins/analysis/ast/builders/ControlFlowBuilder.js.map +1 -0
- package/dist/plugins/analysis/ast/builders/CoreBuilder.d.ts +38 -0
- package/dist/plugins/analysis/ast/builders/CoreBuilder.d.ts.map +1 -0
- package/dist/plugins/analysis/ast/builders/CoreBuilder.js +240 -0
- package/dist/plugins/analysis/ast/builders/CoreBuilder.js.map +1 -0
- package/dist/plugins/analysis/ast/builders/ModuleRuntimeBuilder.d.ts +53 -0
- package/dist/plugins/analysis/ast/builders/ModuleRuntimeBuilder.d.ts.map +1 -0
- package/dist/plugins/analysis/ast/builders/ModuleRuntimeBuilder.js +355 -0
- package/dist/plugins/analysis/ast/builders/ModuleRuntimeBuilder.js.map +1 -0
- package/dist/plugins/analysis/ast/builders/MutationBuilder.d.ts +46 -0
- package/dist/plugins/analysis/ast/builders/MutationBuilder.d.ts.map +1 -0
- package/dist/plugins/analysis/ast/builders/MutationBuilder.js +264 -0
- package/dist/plugins/analysis/ast/builders/MutationBuilder.js.map +1 -0
- package/dist/plugins/analysis/ast/builders/ReturnBuilder.d.ts +23 -0
- package/dist/plugins/analysis/ast/builders/ReturnBuilder.d.ts.map +1 -0
- package/dist/plugins/analysis/ast/builders/ReturnBuilder.js +206 -0
- package/dist/plugins/analysis/ast/builders/ReturnBuilder.js.map +1 -0
- package/dist/plugins/analysis/ast/builders/TypeSystemBuilder.d.ts +64 -0
- package/dist/plugins/analysis/ast/builders/TypeSystemBuilder.d.ts.map +1 -0
- package/dist/plugins/analysis/ast/builders/TypeSystemBuilder.js +370 -0
- package/dist/plugins/analysis/ast/builders/TypeSystemBuilder.js.map +1 -0
- package/dist/plugins/analysis/ast/builders/UpdateExpressionBuilder.d.ts +46 -0
- package/dist/plugins/analysis/ast/builders/UpdateExpressionBuilder.d.ts.map +1 -0
- package/dist/plugins/analysis/ast/builders/UpdateExpressionBuilder.js +191 -0
- package/dist/plugins/analysis/ast/builders/UpdateExpressionBuilder.js.map +1 -0
- package/dist/plugins/analysis/ast/builders/YieldBuilder.d.ts +30 -0
- package/dist/plugins/analysis/ast/builders/YieldBuilder.d.ts.map +1 -0
- package/dist/plugins/analysis/ast/builders/YieldBuilder.js +214 -0
- package/dist/plugins/analysis/ast/builders/YieldBuilder.js.map +1 -0
- package/dist/plugins/analysis/ast/builders/index.d.ts +12 -0
- package/dist/plugins/analysis/ast/builders/index.d.ts.map +1 -0
- package/dist/plugins/analysis/ast/builders/index.js +11 -0
- package/dist/plugins/analysis/ast/builders/index.js.map +1 -0
- package/dist/plugins/analysis/ast/builders/types.d.ts +30 -0
- package/dist/plugins/analysis/ast/builders/types.d.ts.map +1 -0
- package/dist/plugins/analysis/ast/builders/types.js +8 -0
- package/dist/plugins/analysis/ast/builders/types.js.map +1 -0
- package/dist/plugins/analysis/ast/handlers/AnalyzerDelegate.d.ts +50 -0
- package/dist/plugins/analysis/ast/handlers/AnalyzerDelegate.d.ts.map +1 -0
- package/dist/plugins/analysis/ast/handlers/AnalyzerDelegate.js +2 -0
- package/dist/plugins/analysis/ast/handlers/AnalyzerDelegate.js.map +1 -0
- package/dist/plugins/analysis/ast/handlers/BranchHandler.d.ts +18 -0
- package/dist/plugins/analysis/ast/handlers/BranchHandler.d.ts.map +1 -0
- package/dist/plugins/analysis/ast/handlers/BranchHandler.js +244 -0
- package/dist/plugins/analysis/ast/handlers/BranchHandler.js.map +1 -0
- package/dist/plugins/analysis/ast/handlers/CallExpressionHandler.d.ts +7 -0
- package/dist/plugins/analysis/ast/handlers/CallExpressionHandler.d.ts.map +1 -0
- package/dist/plugins/analysis/ast/handlers/CallExpressionHandler.js +295 -0
- package/dist/plugins/analysis/ast/handlers/CallExpressionHandler.js.map +1 -0
- package/dist/plugins/analysis/ast/handlers/FunctionBodyHandler.d.ts +22 -0
- package/dist/plugins/analysis/ast/handlers/FunctionBodyHandler.d.ts.map +1 -0
- package/dist/plugins/analysis/ast/handlers/FunctionBodyHandler.js +9 -0
- package/dist/plugins/analysis/ast/handlers/FunctionBodyHandler.js.map +1 -0
- package/dist/plugins/analysis/ast/handlers/LoopHandler.d.ts +13 -0
- package/dist/plugins/analysis/ast/handlers/LoopHandler.d.ts.map +1 -0
- package/dist/plugins/analysis/ast/handlers/LoopHandler.js +207 -0
- package/dist/plugins/analysis/ast/handlers/LoopHandler.js.map +1 -0
- package/dist/plugins/analysis/ast/handlers/NestedFunctionHandler.d.ts +13 -0
- package/dist/plugins/analysis/ast/handlers/NestedFunctionHandler.d.ts.map +1 -0
- package/dist/plugins/analysis/ast/handlers/NestedFunctionHandler.js +174 -0
- package/dist/plugins/analysis/ast/handlers/NestedFunctionHandler.js.map +1 -0
- package/dist/plugins/analysis/ast/handlers/NewExpressionHandler.d.ts +12 -0
- package/dist/plugins/analysis/ast/handlers/NewExpressionHandler.d.ts.map +1 -0
- package/dist/plugins/analysis/ast/handlers/NewExpressionHandler.js +135 -0
- package/dist/plugins/analysis/ast/handlers/NewExpressionHandler.js.map +1 -0
- package/dist/plugins/analysis/ast/handlers/PropertyAccessHandler.d.ts +13 -0
- package/dist/plugins/analysis/ast/handlers/PropertyAccessHandler.d.ts.map +1 -0
- package/dist/plugins/analysis/ast/handlers/PropertyAccessHandler.js +71 -0
- package/dist/plugins/analysis/ast/handlers/PropertyAccessHandler.js.map +1 -0
- package/dist/plugins/analysis/ast/handlers/ReturnYieldHandler.d.ts +12 -0
- package/dist/plugins/analysis/ast/handlers/ReturnYieldHandler.d.ts.map +1 -0
- package/dist/plugins/analysis/ast/handlers/ReturnYieldHandler.js +135 -0
- package/dist/plugins/analysis/ast/handlers/ReturnYieldHandler.js.map +1 -0
- package/dist/plugins/analysis/ast/handlers/ThrowHandler.d.ts +12 -0
- package/dist/plugins/analysis/ast/handlers/ThrowHandler.d.ts.map +1 -0
- package/dist/plugins/analysis/ast/handlers/ThrowHandler.js +82 -0
- package/dist/plugins/analysis/ast/handlers/ThrowHandler.js.map +1 -0
- package/dist/plugins/analysis/ast/handlers/TryCatchHandler.d.ts +14 -0
- package/dist/plugins/analysis/ast/handlers/TryCatchHandler.d.ts.map +1 -0
- package/dist/plugins/analysis/ast/handlers/TryCatchHandler.js +220 -0
- package/dist/plugins/analysis/ast/handlers/TryCatchHandler.js.map +1 -0
- package/dist/plugins/analysis/ast/handlers/VariableHandler.d.ts +12 -0
- package/dist/plugins/analysis/ast/handlers/VariableHandler.d.ts.map +1 -0
- package/dist/plugins/analysis/ast/handlers/VariableHandler.js +57 -0
- package/dist/plugins/analysis/ast/handlers/VariableHandler.js.map +1 -0
- package/dist/plugins/analysis/ast/handlers/index.d.ts +13 -0
- package/dist/plugins/analysis/ast/handlers/index.d.ts.map +1 -0
- package/dist/plugins/analysis/ast/handlers/index.js +12 -0
- package/dist/plugins/analysis/ast/handlers/index.js.map +1 -0
- package/dist/plugins/analysis/ast/types.d.ts +203 -1
- package/dist/plugins/analysis/ast/types.d.ts.map +1 -1
- package/dist/plugins/analysis/ast/types.js +1 -0
- package/dist/plugins/analysis/ast/types.js.map +1 -0
- package/dist/plugins/analysis/ast/utils/babelTraverse.d.ts +27 -0
- package/dist/plugins/analysis/ast/utils/babelTraverse.d.ts.map +1 -0
- package/dist/plugins/analysis/ast/utils/babelTraverse.js +45 -0
- package/dist/plugins/analysis/ast/utils/babelTraverse.js.map +1 -0
- package/dist/plugins/analysis/ast/utils/createParameterNodes.d.ts +6 -5
- package/dist/plugins/analysis/ast/utils/createParameterNodes.d.ts.map +1 -1
- package/dist/plugins/analysis/ast/utils/createParameterNodes.js +95 -13
- package/dist/plugins/analysis/ast/utils/createParameterNodes.js.map +1 -0
- package/dist/plugins/analysis/ast/utils/extractNamesFromPattern.d.ts +81 -0
- package/dist/plugins/analysis/ast/utils/extractNamesFromPattern.d.ts.map +1 -0
- package/dist/plugins/analysis/ast/utils/extractNamesFromPattern.js +140 -0
- package/dist/plugins/analysis/ast/utils/extractNamesFromPattern.js.map +1 -0
- package/dist/plugins/analysis/ast/utils/getExpressionValue.d.ts +22 -0
- package/dist/plugins/analysis/ast/utils/getExpressionValue.d.ts.map +1 -0
- package/dist/plugins/analysis/ast/utils/getExpressionValue.js +35 -0
- package/dist/plugins/analysis/ast/utils/getExpressionValue.js.map +1 -0
- package/dist/plugins/analysis/ast/utils/getMemberExpressionName.d.ts +25 -0
- package/dist/plugins/analysis/ast/utils/getMemberExpressionName.d.ts.map +1 -0
- package/dist/plugins/analysis/ast/utils/getMemberExpressionName.js +21 -0
- package/dist/plugins/analysis/ast/utils/getMemberExpressionName.js.map +1 -0
- package/dist/plugins/analysis/ast/utils/index.d.ts +2 -0
- package/dist/plugins/analysis/ast/utils/index.d.ts.map +1 -1
- package/dist/plugins/analysis/ast/utils/index.js +3 -0
- package/dist/plugins/analysis/ast/utils/index.js.map +1 -0
- package/dist/plugins/analysis/ast/utils/location.js +1 -0
- package/dist/plugins/analysis/ast/utils/location.js.map +1 -0
- package/dist/plugins/analysis/ast/visitors/ASTVisitor.d.ts +3 -1
- package/dist/plugins/analysis/ast/visitors/ASTVisitor.d.ts.map +1 -1
- package/dist/plugins/analysis/ast/visitors/ASTVisitor.js +1 -0
- package/dist/plugins/analysis/ast/visitors/ASTVisitor.js.map +1 -0
- package/dist/plugins/analysis/ast/visitors/ArgumentExtractor.d.ts +23 -0
- package/dist/plugins/analysis/ast/visitors/ArgumentExtractor.d.ts.map +1 -0
- package/dist/plugins/analysis/ast/visitors/ArgumentExtractor.js +241 -0
- package/dist/plugins/analysis/ast/visitors/ArgumentExtractor.js.map +1 -0
- package/dist/plugins/analysis/ast/visitors/ArrayElementExtractor.d.ts +20 -0
- package/dist/plugins/analysis/ast/visitors/ArrayElementExtractor.d.ts.map +1 -0
- package/dist/plugins/analysis/ast/visitors/ArrayElementExtractor.js +110 -0
- package/dist/plugins/analysis/ast/visitors/ArrayElementExtractor.js.map +1 -0
- package/dist/plugins/analysis/ast/visitors/CallExpressionVisitor.d.ts +20 -140
- package/dist/plugins/analysis/ast/visitors/CallExpressionVisitor.d.ts.map +1 -1
- package/dist/plugins/analysis/ast/visitors/CallExpressionVisitor.js +335 -837
- package/dist/plugins/analysis/ast/visitors/CallExpressionVisitor.js.map +1 -0
- package/dist/plugins/analysis/ast/visitors/ClassVisitor.d.ts +1 -1
- package/dist/plugins/analysis/ast/visitors/ClassVisitor.d.ts.map +1 -1
- package/dist/plugins/analysis/ast/visitors/ClassVisitor.js +218 -5
- package/dist/plugins/analysis/ast/visitors/ClassVisitor.js.map +1 -0
- package/dist/plugins/analysis/ast/visitors/FunctionVisitor.d.ts +4 -3
- package/dist/plugins/analysis/ast/visitors/FunctionVisitor.d.ts.map +1 -1
- package/dist/plugins/analysis/ast/visitors/FunctionVisitor.js +26 -8
- package/dist/plugins/analysis/ast/visitors/FunctionVisitor.js.map +1 -0
- package/dist/plugins/analysis/ast/visitors/ImportExportVisitor.js +1 -0
- package/dist/plugins/analysis/ast/visitors/ImportExportVisitor.js.map +1 -0
- package/dist/plugins/analysis/ast/visitors/MutationDetector.d.ts +25 -0
- package/dist/plugins/analysis/ast/visitors/MutationDetector.d.ts.map +1 -0
- package/dist/plugins/analysis/ast/visitors/MutationDetector.js +181 -0
- package/dist/plugins/analysis/ast/visitors/MutationDetector.js.map +1 -0
- package/dist/plugins/analysis/ast/visitors/ObjectPropertyExtractor.d.ts +20 -0
- package/dist/plugins/analysis/ast/visitors/ObjectPropertyExtractor.d.ts.map +1 -0
- package/dist/plugins/analysis/ast/visitors/ObjectPropertyExtractor.js +155 -0
- package/dist/plugins/analysis/ast/visitors/ObjectPropertyExtractor.js.map +1 -0
- package/dist/plugins/analysis/ast/visitors/PropertyAccessVisitor.d.ts +91 -0
- package/dist/plugins/analysis/ast/visitors/PropertyAccessVisitor.d.ts.map +1 -0
- package/dist/plugins/analysis/ast/visitors/PropertyAccessVisitor.js +306 -0
- package/dist/plugins/analysis/ast/visitors/PropertyAccessVisitor.js.map +1 -0
- package/dist/plugins/analysis/ast/visitors/TypeScriptVisitor.d.ts +21 -1
- package/dist/plugins/analysis/ast/visitors/TypeScriptVisitor.d.ts.map +1 -1
- package/dist/plugins/analysis/ast/visitors/TypeScriptVisitor.js +189 -12
- package/dist/plugins/analysis/ast/visitors/TypeScriptVisitor.js.map +1 -0
- package/dist/plugins/analysis/ast/visitors/VariableVisitor.d.ts +1 -1
- package/dist/plugins/analysis/ast/visitors/VariableVisitor.d.ts.map +1 -1
- package/dist/plugins/analysis/ast/visitors/VariableVisitor.js +7 -4
- package/dist/plugins/analysis/ast/visitors/VariableVisitor.js.map +1 -0
- package/dist/plugins/analysis/ast/visitors/call-expression-helpers.d.ts +19 -0
- package/dist/plugins/analysis/ast/visitors/call-expression-helpers.d.ts.map +1 -0
- package/dist/plugins/analysis/ast/visitors/call-expression-helpers.js +57 -0
- package/dist/plugins/analysis/ast/visitors/call-expression-helpers.js.map +1 -0
- package/dist/plugins/analysis/ast/visitors/call-expression-types.d.ts +168 -0
- package/dist/plugins/analysis/ast/visitors/call-expression-types.d.ts.map +1 -0
- package/dist/plugins/analysis/ast/visitors/call-expression-types.js +7 -0
- package/dist/plugins/analysis/ast/visitors/call-expression-types.js.map +1 -0
- package/dist/plugins/analysis/ast/visitors/index.d.ts +1 -0
- package/dist/plugins/analysis/ast/visitors/index.d.ts.map +1 -1
- package/dist/plugins/analysis/ast/visitors/index.js +2 -0
- package/dist/plugins/analysis/ast/visitors/index.js.map +1 -0
- package/dist/plugins/analysis/react-internal/browser-api.d.ts +20 -0
- package/dist/plugins/analysis/react-internal/browser-api.d.ts.map +1 -0
- package/dist/plugins/analysis/react-internal/browser-api.js +140 -0
- package/dist/plugins/analysis/react-internal/browser-api.js.map +1 -0
- package/dist/plugins/analysis/react-internal/hooks.d.ts +31 -0
- package/dist/plugins/analysis/react-internal/hooks.d.ts.map +1 -0
- package/dist/plugins/analysis/react-internal/hooks.js +465 -0
- package/dist/plugins/analysis/react-internal/hooks.js.map +1 -0
- package/dist/plugins/analysis/react-internal/jsx.d.ts +43 -0
- package/dist/plugins/analysis/react-internal/jsx.d.ts.map +1 -0
- package/dist/plugins/analysis/react-internal/jsx.js +231 -0
- package/dist/plugins/analysis/react-internal/jsx.js.map +1 -0
- package/dist/plugins/analysis/react-internal/types.d.ts +116 -0
- package/dist/plugins/analysis/react-internal/types.d.ts.map +1 -0
- package/dist/plugins/analysis/react-internal/types.js +83 -0
- package/dist/plugins/analysis/react-internal/types.js.map +1 -0
- package/dist/plugins/discovery/DiscoveryPlugin.d.ts +42 -10
- package/dist/plugins/discovery/DiscoveryPlugin.d.ts.map +1 -1
- package/dist/plugins/discovery/DiscoveryPlugin.js +17 -1
- package/dist/plugins/discovery/DiscoveryPlugin.js.map +1 -0
- package/dist/plugins/discovery/MonorepoServiceDiscovery.d.ts.map +1 -1
- package/dist/plugins/discovery/MonorepoServiceDiscovery.js +9 -15
- package/dist/plugins/discovery/MonorepoServiceDiscovery.js.map +1 -0
- package/dist/plugins/discovery/SimpleProjectDiscovery.d.ts.map +1 -1
- package/dist/plugins/discovery/SimpleProjectDiscovery.js +3 -2
- package/dist/plugins/discovery/SimpleProjectDiscovery.js.map +1 -0
- package/dist/plugins/discovery/WorkspaceDiscovery.d.ts.map +1 -1
- package/dist/plugins/discovery/WorkspaceDiscovery.js +3 -2
- package/dist/plugins/discovery/WorkspaceDiscovery.js.map +1 -0
- package/dist/plugins/discovery/resolveSourceEntrypoint.js +1 -0
- package/dist/plugins/discovery/resolveSourceEntrypoint.js.map +1 -0
- package/dist/plugins/discovery/workspaces/detector.js +1 -0
- package/dist/plugins/discovery/workspaces/detector.js.map +1 -0
- package/dist/plugins/discovery/workspaces/globResolver.js +1 -0
- package/dist/plugins/discovery/workspaces/globResolver.js.map +1 -0
- package/dist/plugins/discovery/workspaces/index.js +1 -0
- package/dist/plugins/discovery/workspaces/index.js.map +1 -0
- package/dist/plugins/discovery/workspaces/parsers.js +1 -0
- package/dist/plugins/discovery/workspaces/parsers.js.map +1 -0
- package/dist/plugins/enrichment/AliasTracker.d.ts.map +1 -1
- package/dist/plugins/enrichment/AliasTracker.js +5 -2
- package/dist/plugins/enrichment/AliasTracker.js.map +1 -0
- package/dist/plugins/enrichment/ArgumentParameterLinker.d.ts.map +1 -1
- package/dist/plugins/enrichment/ArgumentParameterLinker.js +4 -2
- package/dist/plugins/enrichment/ArgumentParameterLinker.js.map +1 -0
- package/dist/plugins/enrichment/CallbackCallResolver.d.ts +42 -0
- package/dist/plugins/enrichment/CallbackCallResolver.d.ts.map +1 -0
- package/dist/plugins/enrichment/CallbackCallResolver.js +311 -0
- package/dist/plugins/enrichment/CallbackCallResolver.js.map +1 -0
- package/dist/plugins/enrichment/ClosureCaptureEnricher.d.ts.map +1 -1
- package/dist/plugins/enrichment/ClosureCaptureEnricher.js +4 -2
- package/dist/plugins/enrichment/ClosureCaptureEnricher.js.map +1 -0
- package/dist/plugins/enrichment/ConfigRoutingMapBuilder.d.ts +17 -0
- package/dist/plugins/enrichment/ConfigRoutingMapBuilder.d.ts.map +1 -0
- package/dist/plugins/enrichment/ConfigRoutingMapBuilder.js +55 -0
- package/dist/plugins/enrichment/ConfigRoutingMapBuilder.js.map +1 -0
- package/dist/plugins/enrichment/ExpressHandlerLinker.d.ts +21 -0
- package/dist/plugins/enrichment/ExpressHandlerLinker.d.ts.map +1 -0
- package/dist/plugins/enrichment/ExpressHandlerLinker.js +139 -0
- package/dist/plugins/enrichment/ExpressHandlerLinker.js.map +1 -0
- package/dist/plugins/enrichment/ExternalCallResolver.d.ts.map +1 -1
- package/dist/plugins/enrichment/ExternalCallResolver.js +6 -9
- package/dist/plugins/enrichment/ExternalCallResolver.js.map +1 -0
- package/dist/plugins/enrichment/FunctionCallResolver.d.ts +5 -0
- package/dist/plugins/enrichment/FunctionCallResolver.d.ts.map +1 -1
- package/dist/plugins/enrichment/FunctionCallResolver.js +17 -18
- package/dist/plugins/enrichment/FunctionCallResolver.js.map +1 -0
- package/dist/plugins/enrichment/HTTPConnectionEnricher.d.ts +2 -0
- package/dist/plugins/enrichment/HTTPConnectionEnricher.d.ts.map +1 -1
- package/dist/plugins/enrichment/HTTPConnectionEnricher.js +54 -14
- package/dist/plugins/enrichment/HTTPConnectionEnricher.js.map +1 -0
- package/dist/plugins/enrichment/ImportExportLinker.d.ts.map +1 -1
- package/dist/plugins/enrichment/ImportExportLinker.js +6 -4
- package/dist/plugins/enrichment/ImportExportLinker.js.map +1 -0
- package/dist/plugins/enrichment/InstanceOfResolver.d.ts.map +1 -1
- package/dist/plugins/enrichment/InstanceOfResolver.js +5 -2
- package/dist/plugins/enrichment/InstanceOfResolver.js.map +1 -0
- package/dist/plugins/enrichment/MethodCallResolver.d.ts +17 -30
- package/dist/plugins/enrichment/MethodCallResolver.d.ts.map +1 -1
- package/dist/plugins/enrichment/MethodCallResolver.js +117 -181
- package/dist/plugins/enrichment/MethodCallResolver.js.map +1 -0
- package/dist/plugins/enrichment/MountPointResolver.d.ts +1 -1
- package/dist/plugins/enrichment/MountPointResolver.d.ts.map +1 -1
- package/dist/plugins/enrichment/MountPointResolver.js +16 -25
- package/dist/plugins/enrichment/MountPointResolver.js.map +1 -0
- package/dist/plugins/enrichment/NodejsBuiltinsResolver.d.ts.map +1 -1
- package/dist/plugins/enrichment/NodejsBuiltinsResolver.js +9 -18
- package/dist/plugins/enrichment/NodejsBuiltinsResolver.js.map +1 -0
- package/dist/plugins/enrichment/PrefixEvaluator.d.ts.map +1 -1
- package/dist/plugins/enrichment/PrefixEvaluator.js +11 -6
- package/dist/plugins/enrichment/PrefixEvaluator.js.map +1 -0
- package/dist/plugins/enrichment/RejectionPropagationEnricher.d.ts +30 -0
- package/dist/plugins/enrichment/RejectionPropagationEnricher.d.ts.map +1 -0
- package/dist/plugins/enrichment/RejectionPropagationEnricher.js +192 -0
- package/dist/plugins/enrichment/RejectionPropagationEnricher.js.map +1 -0
- package/dist/plugins/enrichment/RustFFIEnricher.d.ts.map +1 -1
- package/dist/plugins/enrichment/RustFFIEnricher.js +4 -2
- package/dist/plugins/enrichment/RustFFIEnricher.js.map +1 -0
- package/dist/plugins/enrichment/ServiceConnectionEnricher.d.ts +76 -0
- package/dist/plugins/enrichment/ServiceConnectionEnricher.d.ts.map +1 -0
- package/dist/plugins/enrichment/ServiceConnectionEnricher.js +355 -0
- package/dist/plugins/enrichment/ServiceConnectionEnricher.js.map +1 -0
- package/dist/plugins/enrichment/SocketConnectionEnricher.d.ts +42 -0
- package/dist/plugins/enrichment/SocketConnectionEnricher.d.ts.map +1 -0
- package/dist/plugins/enrichment/SocketConnectionEnricher.js +166 -0
- package/dist/plugins/enrichment/SocketConnectionEnricher.js.map +1 -0
- package/dist/plugins/enrichment/ValueDomainAnalyzer.d.ts +1 -1
- package/dist/plugins/enrichment/ValueDomainAnalyzer.d.ts.map +1 -1
- package/dist/plugins/enrichment/ValueDomainAnalyzer.js +6 -3
- package/dist/plugins/enrichment/ValueDomainAnalyzer.js.map +1 -0
- package/dist/plugins/enrichment/method-call/MethodCallData.d.ts +68 -0
- package/dist/plugins/enrichment/method-call/MethodCallData.d.ts.map +1 -0
- package/dist/plugins/enrichment/method-call/MethodCallData.js +227 -0
- package/dist/plugins/enrichment/method-call/MethodCallData.js.map +1 -0
- package/dist/plugins/enrichment/method-call/MethodCallDetectors.d.ts +21 -0
- package/dist/plugins/enrichment/method-call/MethodCallDetectors.d.ts.map +1 -0
- package/dist/plugins/enrichment/method-call/MethodCallDetectors.js +52 -0
- package/dist/plugins/enrichment/method-call/MethodCallDetectors.js.map +1 -0
- package/dist/plugins/enrichment/method-call/MethodCallErrorAnalysis.d.ts +22 -0
- package/dist/plugins/enrichment/method-call/MethodCallErrorAnalysis.d.ts.map +1 -0
- package/dist/plugins/enrichment/method-call/MethodCallErrorAnalysis.js +105 -0
- package/dist/plugins/enrichment/method-call/MethodCallErrorAnalysis.js.map +1 -0
- package/dist/plugins/enrichment/method-call/MethodCallIndexers.d.ts +19 -0
- package/dist/plugins/enrichment/method-call/MethodCallIndexers.d.ts.map +1 -0
- package/dist/plugins/enrichment/method-call/MethodCallIndexers.js +63 -0
- package/dist/plugins/enrichment/method-call/MethodCallIndexers.js.map +1 -0
- package/dist/plugins/enrichment/method-call/MethodCallResolution.d.ts +30 -0
- package/dist/plugins/enrichment/method-call/MethodCallResolution.d.ts.map +1 -0
- package/dist/plugins/enrichment/method-call/MethodCallResolution.js +138 -0
- package/dist/plugins/enrichment/method-call/MethodCallResolution.js.map +1 -0
- package/dist/plugins/indexing/IncrementalModuleIndexer.d.ts +3 -1
- package/dist/plugins/indexing/IncrementalModuleIndexer.d.ts.map +1 -1
- package/dist/plugins/indexing/IncrementalModuleIndexer.js +24 -37
- package/dist/plugins/indexing/IncrementalModuleIndexer.js.map +1 -0
- package/dist/plugins/indexing/JSModuleIndexer.d.ts +3 -1
- package/dist/plugins/indexing/JSModuleIndexer.d.ts.map +1 -1
- package/dist/plugins/indexing/JSModuleIndexer.js +31 -44
- package/dist/plugins/indexing/JSModuleIndexer.js.map +1 -0
- package/dist/plugins/indexing/RustModuleIndexer.d.ts.map +1 -1
- package/dist/plugins/indexing/RustModuleIndexer.js +14 -12
- package/dist/plugins/indexing/RustModuleIndexer.js.map +1 -0
- package/dist/plugins/validation/AwaitInLoopValidator.d.ts +24 -0
- package/dist/plugins/validation/AwaitInLoopValidator.d.ts.map +1 -0
- package/dist/plugins/validation/AwaitInLoopValidator.js +69 -0
- package/dist/plugins/validation/AwaitInLoopValidator.js.map +1 -0
- package/dist/plugins/validation/BrokenImportValidator.d.ts.map +1 -1
- package/dist/plugins/validation/BrokenImportValidator.js +3 -3
- package/dist/plugins/validation/BrokenImportValidator.js.map +1 -0
- package/dist/plugins/validation/CallResolverValidator.d.ts.map +1 -1
- package/dist/plugins/validation/CallResolverValidator.js +3 -3
- package/dist/plugins/validation/CallResolverValidator.js.map +1 -0
- package/dist/plugins/validation/DataFlowValidator.js +2 -1
- package/dist/plugins/validation/DataFlowValidator.js.map +1 -0
- package/dist/plugins/validation/EvalBanValidator.js +2 -1
- package/dist/plugins/validation/EvalBanValidator.js.map +1 -0
- package/dist/plugins/validation/GraphConnectivityValidator.d.ts.map +1 -1
- package/dist/plugins/validation/GraphConnectivityValidator.js +2 -1
- package/dist/plugins/validation/GraphConnectivityValidator.js.map +1 -0
- package/dist/plugins/validation/PackageCoverageValidator.d.ts +33 -0
- package/dist/plugins/validation/PackageCoverageValidator.d.ts.map +1 -0
- package/dist/plugins/validation/PackageCoverageValidator.js +149 -0
- package/dist/plugins/validation/PackageCoverageValidator.js.map +1 -0
- package/dist/plugins/validation/SQLInjectionValidator.d.ts.map +1 -1
- package/dist/plugins/validation/SQLInjectionValidator.js +4 -2
- package/dist/plugins/validation/SQLInjectionValidator.js.map +1 -0
- package/dist/plugins/validation/ShadowingDetector.js +2 -1
- package/dist/plugins/validation/ShadowingDetector.js.map +1 -0
- package/dist/plugins/validation/TypeScriptDeadCodeValidator.d.ts.map +1 -1
- package/dist/plugins/validation/TypeScriptDeadCodeValidator.js +3 -3
- package/dist/plugins/validation/TypeScriptDeadCodeValidator.js.map +1 -0
- package/dist/plugins/validation/UnconnectedRouteValidator.d.ts +18 -0
- package/dist/plugins/validation/UnconnectedRouteValidator.d.ts.map +1 -0
- package/dist/plugins/validation/UnconnectedRouteValidator.js +68 -0
- package/dist/plugins/validation/UnconnectedRouteValidator.js.map +1 -0
- package/dist/plugins/vcs/GitPlugin.d.ts.map +1 -1
- package/dist/plugins/vcs/GitPlugin.js +13 -6
- package/dist/plugins/vcs/GitPlugin.js.map +1 -0
- package/dist/plugins/vcs/VCSPlugin.js +1 -0
- package/dist/plugins/vcs/VCSPlugin.js.map +1 -0
- package/dist/plugins/vcs/index.js +1 -0
- package/dist/plugins/vcs/index.js.map +1 -0
- package/dist/queries/NodeContext.d.ts +81 -0
- package/dist/queries/NodeContext.d.ts.map +1 -0
- package/dist/queries/NodeContext.js +193 -0
- package/dist/queries/NodeContext.js.map +1 -0
- package/dist/queries/findCallsInFunction.d.ts +1 -1
- package/dist/queries/findCallsInFunction.d.ts.map +1 -1
- package/dist/queries/findCallsInFunction.js +13 -4
- package/dist/queries/findCallsInFunction.js.map +1 -0
- package/dist/queries/findContainingFunction.d.ts +4 -3
- package/dist/queries/findContainingFunction.d.ts.map +1 -1
- package/dist/queries/findContainingFunction.js +14 -3
- package/dist/queries/findContainingFunction.js.map +1 -0
- package/dist/queries/index.d.ts +2 -0
- package/dist/queries/index.d.ts.map +1 -1
- package/dist/queries/index.js +2 -0
- package/dist/queries/index.js.map +1 -0
- package/dist/queries/traceValues.d.ts.map +1 -1
- package/dist/queries/traceValues.js +1 -0
- package/dist/queries/traceValues.js.map +1 -0
- package/dist/queries/types.js +1 -0
- package/dist/queries/types.js.map +1 -0
- package/dist/resources/InfraResourceMapImpl.d.ts +31 -0
- package/dist/resources/InfraResourceMapImpl.d.ts.map +1 -0
- package/dist/resources/InfraResourceMapImpl.js +110 -0
- package/dist/resources/InfraResourceMapImpl.js.map +1 -0
- package/dist/resources/RoutingMapImpl.d.ts +33 -0
- package/dist/resources/RoutingMapImpl.d.ts.map +1 -0
- package/dist/resources/RoutingMapImpl.js +115 -0
- package/dist/resources/RoutingMapImpl.js.map +1 -0
- package/dist/schema/GraphSchemaExtractor.js +1 -0
- package/dist/schema/GraphSchemaExtractor.js.map +1 -0
- package/dist/schema/InterfaceSchemaExtractor.js +1 -0
- package/dist/schema/InterfaceSchemaExtractor.js.map +1 -0
- package/dist/schema/index.js +1 -0
- package/dist/schema/index.js.map +1 -0
- package/dist/storage/backends/RFDBServerBackend.d.ts +54 -1
- package/dist/storage/backends/RFDBServerBackend.d.ts.map +1 -1
- package/dist/storage/backends/RFDBServerBackend.js +143 -33
- package/dist/storage/backends/RFDBServerBackend.js.map +1 -0
- package/dist/storage/backends/typeValidation.d.ts.map +1 -1
- package/dist/storage/backends/typeValidation.js +3 -0
- package/dist/storage/backends/typeValidation.js.map +1 -0
- package/dist/utils/findRfdbBinary.d.ts +3 -2
- package/dist/utils/findRfdbBinary.d.ts.map +1 -1
- package/dist/utils/findRfdbBinary.js +23 -7
- package/dist/utils/findRfdbBinary.js.map +1 -0
- package/dist/utils/moduleResolution.d.ts +134 -0
- package/dist/utils/moduleResolution.d.ts.map +1 -0
- package/dist/utils/moduleResolution.js +189 -0
- package/dist/utils/moduleResolution.js.map +1 -0
- package/dist/utils/resolveNodeFile.d.ts +13 -0
- package/dist/utils/resolveNodeFile.d.ts.map +1 -0
- package/dist/utils/resolveNodeFile.js +18 -0
- package/dist/utils/resolveNodeFile.js.map +1 -0
- package/dist/validation/PathValidator.d.ts.map +1 -1
- package/dist/validation/PathValidator.js +1 -0
- package/dist/validation/PathValidator.js.map +1 -0
- package/dist/version.d.ts +11 -0
- package/dist/version.d.ts.map +1 -0
- package/dist/version.js +26 -0
- package/dist/version.js.map +1 -0
- package/package.json +4 -3
- package/src/DiscoveryManager.ts +279 -0
- package/src/GraphInitializer.ts +131 -0
- package/src/GuaranteeChecker.ts +90 -0
- package/src/Orchestrator.ts +299 -714
- package/src/OrchestratorTypes.ts +122 -0
- package/src/ParallelAnalysisRunner.ts +188 -0
- package/src/PhaseRunner.ts +448 -0
- package/src/api/GraphAPI.ts +4 -2
- package/src/api/GuaranteeAPI.ts +3 -2
- package/src/config/ConfigLoader.ts +297 -5
- package/src/config/index.ts +9 -1
- package/src/core/ASTWorker.ts +17 -22
- package/src/core/ASTWorkerPool.ts +1 -1
- package/src/core/CoverageAnalyzer.ts +2 -2
- package/src/core/FileNodeManager.ts +3 -2
- package/src/core/FileOverview.ts +374 -0
- package/src/core/GraphFreshnessChecker.ts +7 -5
- package/src/core/GuaranteeManager.ts +71 -3
- package/src/core/IncrementalReanalyzer.ts +12 -6
- package/src/core/NodeFactory.ts +180 -626
- package/src/core/ResourceRegistry.ts +39 -0
- package/src/core/ScopeTracker.ts +23 -0
- package/src/core/SemanticId.ts +183 -0
- package/src/core/WorkerPool.ts +2 -1
- package/src/core/brandNodeInternal.ts +16 -0
- package/src/core/buildDependencyGraph.ts +98 -0
- package/src/core/factories/CoreFactory.ts +489 -0
- package/src/core/factories/DatabaseFactory.ts +63 -0
- package/src/core/factories/ExternalFactory.ts +23 -0
- package/src/core/factories/HttpFactory.ts +57 -0
- package/src/core/factories/ReactFactory.ts +15 -0
- package/src/core/factories/RustFactory.ts +128 -0
- package/src/core/factories/ServiceFactory.ts +27 -0
- package/src/core/factories/SocketFactory.ts +94 -0
- package/src/core/nodes/DatabaseNode.ts +175 -0
- package/src/core/nodes/ExpressMiddlewareNode.ts +98 -0
- package/src/core/nodes/ExpressMountNode.ts +94 -0
- package/src/core/nodes/ExternalApiNode.ts +53 -0
- package/src/core/nodes/ExternalFunctionNode.ts +77 -0
- package/src/core/nodes/FetchRequestNode.ts +105 -0
- package/src/core/nodes/HttpRouteNode.ts +113 -0
- package/src/core/nodes/NodeKind.ts +12 -0
- package/src/core/nodes/PluginNode.ts +144 -0
- package/src/core/nodes/ReactNode.ts +78 -0
- package/src/core/nodes/RustCallNode.ts +96 -0
- package/src/core/nodes/RustFunctionNode.ts +112 -0
- package/src/core/nodes/RustImplNode.ts +78 -0
- package/src/core/nodes/RustMethodNode.ts +125 -0
- package/src/core/nodes/RustModuleNode.ts +84 -0
- package/src/core/nodes/RustStructNode.ts +80 -0
- package/src/core/nodes/RustTraitNode.ts +82 -0
- package/src/core/nodes/ServiceLayerNode.ts +183 -0
- package/src/core/nodes/SocketIONode.ts +177 -0
- package/src/core/nodes/SocketNode.ts +206 -0
- package/src/core/nodes/TypeNode.ts +47 -4
- package/src/core/nodes/TypeParameterNode.ts +91 -0
- package/src/core/nodes/index.ts +61 -0
- package/src/core/toposort.ts +160 -0
- package/src/diagnostics/DiagnosticCollector.ts +8 -1
- package/src/diagnostics/DiagnosticReporter.ts +87 -16
- package/src/diagnostics/categories.ts +104 -0
- package/src/diagnostics/index.ts +14 -0
- package/src/errors/GrafemaError.ts +58 -0
- package/src/index.ts +113 -13
- package/src/instructions/index.ts +21 -0
- package/src/instructions/onboarding.md +121 -0
- package/src/logging/Logger.ts +155 -4
- package/src/plugins/InfraAnalyzer.ts +208 -0
- package/src/plugins/analysis/DatabaseAnalyzer.ts +45 -28
- package/src/plugins/analysis/ExpressAnalyzer.ts +74 -49
- package/src/plugins/analysis/ExpressResponseAnalyzer.ts +77 -90
- package/src/plugins/analysis/ExpressRouteAnalyzer.ts +94 -79
- package/src/plugins/analysis/FetchAnalyzer.ts +200 -158
- package/src/plugins/analysis/IncrementalAnalysisPlugin.ts +9 -9
- package/src/plugins/analysis/JSASTAnalyzer.ts +969 -2247
- package/src/plugins/analysis/NestJSRouteAnalyzer.ts +241 -0
- package/src/plugins/analysis/ReactAnalyzer.ts +52 -1097
- package/src/plugins/analysis/RustAnalyzer.ts +144 -134
- package/src/plugins/analysis/SQLiteAnalyzer.ts +39 -15
- package/src/plugins/analysis/ServiceLayerAnalyzer.ts +64 -38
- package/src/plugins/analysis/SocketAnalyzer.ts +601 -0
- package/src/plugins/analysis/SocketIOAnalyzer.ts +49 -43
- package/src/plugins/analysis/SystemDbAnalyzer.ts +35 -21
- package/src/plugins/analysis/ast/CollisionResolver.ts +137 -0
- package/src/plugins/analysis/ast/ExpressionEvaluator.ts +1 -3
- package/src/plugins/analysis/ast/FunctionBodyContext.ts +291 -0
- package/src/plugins/analysis/ast/GraphBuilder.ts +275 -2715
- package/src/plugins/analysis/ast/IdGenerator.ts +81 -1
- package/src/plugins/analysis/ast/builders/AssignmentBuilder.ts +407 -0
- package/src/plugins/analysis/ast/builders/CallFlowBuilder.ts +255 -0
- package/src/plugins/analysis/ast/builders/ControlFlowBuilder.ts +470 -0
- package/src/plugins/analysis/ast/builders/CoreBuilder.ts +306 -0
- package/src/plugins/analysis/ast/builders/ModuleRuntimeBuilder.ts +452 -0
- package/src/plugins/analysis/ast/builders/MutationBuilder.ts +372 -0
- package/src/plugins/analysis/ast/builders/ReturnBuilder.ts +279 -0
- package/src/plugins/analysis/ast/builders/TypeSystemBuilder.ts +475 -0
- package/src/plugins/analysis/ast/builders/UpdateExpressionBuilder.ts +262 -0
- package/src/plugins/analysis/ast/builders/YieldBuilder.ts +287 -0
- package/src/plugins/analysis/ast/builders/index.ts +11 -0
- package/src/plugins/analysis/ast/builders/types.ts +65 -0
- package/src/plugins/analysis/ast/handlers/AnalyzerDelegate.ts +183 -0
- package/src/plugins/analysis/ast/handlers/BranchHandler.ts +313 -0
- package/src/plugins/analysis/ast/handlers/CallExpressionHandler.ts +347 -0
- package/src/plugins/analysis/ast/handlers/FunctionBodyHandler.ts +24 -0
- package/src/plugins/analysis/ast/handlers/LoopHandler.ts +240 -0
- package/src/plugins/analysis/ast/handlers/NestedFunctionHandler.ts +201 -0
- package/src/plugins/analysis/ast/handlers/NewExpressionHandler.ts +159 -0
- package/src/plugins/analysis/ast/handlers/PropertyAccessHandler.ts +112 -0
- package/src/plugins/analysis/ast/handlers/ReturnYieldHandler.ts +166 -0
- package/src/plugins/analysis/ast/handlers/ThrowHandler.ts +101 -0
- package/src/plugins/analysis/ast/handlers/TryCatchHandler.ts +262 -0
- package/src/plugins/analysis/ast/handlers/VariableHandler.ts +93 -0
- package/src/plugins/analysis/ast/handlers/index.ts +12 -0
- package/src/plugins/analysis/ast/types.ts +259 -2
- package/src/plugins/analysis/ast/utils/babelTraverse.ts +74 -0
- package/src/plugins/analysis/ast/utils/createParameterNodes.ts +119 -14
- package/src/plugins/analysis/ast/utils/extractNamesFromPattern.ts +166 -0
- package/src/plugins/analysis/ast/utils/getExpressionValue.ts +34 -0
- package/src/plugins/analysis/ast/utils/getMemberExpressionName.ts +33 -0
- package/src/plugins/analysis/ast/utils/index.ts +2 -0
- package/src/plugins/analysis/ast/visitors/ASTVisitor.ts +7 -2
- package/src/plugins/analysis/ast/visitors/ArgumentExtractor.ts +307 -0
- package/src/plugins/analysis/ast/visitors/ArrayElementExtractor.ts +172 -0
- package/src/plugins/analysis/ast/visitors/CallExpressionVisitor.ts +449 -1250
- package/src/plugins/analysis/ast/visitors/ClassVisitor.ts +285 -8
- package/src/plugins/analysis/ast/visitors/FunctionVisitor.ts +48 -12
- package/src/plugins/analysis/ast/visitors/MutationDetector.ts +211 -0
- package/src/plugins/analysis/ast/visitors/ObjectPropertyExtractor.ts +217 -0
- package/src/plugins/analysis/ast/visitors/PropertyAccessVisitor.ts +407 -0
- package/src/plugins/analysis/ast/visitors/TypeScriptVisitor.ts +234 -16
- package/src/plugins/analysis/ast/visitors/VariableVisitor.ts +9 -38
- package/src/plugins/analysis/ast/visitors/call-expression-helpers.ts +65 -0
- package/src/plugins/analysis/ast/visitors/call-expression-types.ts +179 -0
- package/src/plugins/analysis/ast/visitors/index.ts +2 -0
- package/src/plugins/analysis/react-internal/browser-api.ts +168 -0
- package/src/plugins/analysis/react-internal/hooks.ts +517 -0
- package/src/plugins/analysis/react-internal/jsx.ts +279 -0
- package/src/plugins/analysis/react-internal/types.ts +183 -0
- package/src/plugins/discovery/DiscoveryPlugin.ts +42 -11
- package/src/plugins/discovery/MonorepoServiceDiscovery.ts +8 -16
- package/src/plugins/discovery/SimpleProjectDiscovery.ts +2 -2
- package/src/plugins/discovery/WorkspaceDiscovery.ts +2 -2
- package/src/plugins/discovery/workspaces/globResolver.ts +1 -1
- package/src/plugins/enrichment/AliasTracker.ts +4 -2
- package/src/plugins/enrichment/ArgumentParameterLinker.ts +3 -2
- package/src/plugins/enrichment/CallbackCallResolver.ts +398 -0
- package/src/plugins/enrichment/ClosureCaptureEnricher.ts +3 -2
- package/src/plugins/enrichment/ConfigRoutingMapBuilder.ts +67 -0
- package/src/plugins/enrichment/ExpressHandlerLinker.ts +180 -0
- package/src/plugins/enrichment/ExternalCallResolver.ts +5 -9
- package/src/plugins/enrichment/FunctionCallResolver.ts +16 -24
- package/src/plugins/enrichment/HTTPConnectionEnricher.ts +68 -15
- package/src/plugins/enrichment/ImportExportLinker.ts +5 -4
- package/src/plugins/enrichment/InstanceOfResolver.ts +4 -2
- package/src/plugins/enrichment/MethodCallResolver.ts +138 -235
- package/src/plugins/enrichment/MountPointResolver.ts +15 -26
- package/src/plugins/enrichment/NodejsBuiltinsResolver.ts +14 -20
- package/src/plugins/enrichment/PrefixEvaluator.ts +10 -6
- package/src/plugins/enrichment/RejectionPropagationEnricher.ts +255 -0
- package/src/plugins/enrichment/RustFFIEnricher.ts +3 -2
- package/src/plugins/enrichment/ServiceConnectionEnricher.ts +472 -0
- package/src/plugins/enrichment/SocketConnectionEnricher.ts +228 -0
- package/src/plugins/enrichment/ValueDomainAnalyzer.ts +5 -3
- package/src/plugins/enrichment/method-call/MethodCallData.ts +299 -0
- package/src/plugins/enrichment/method-call/MethodCallDetectors.ts +70 -0
- package/src/plugins/enrichment/method-call/MethodCallErrorAnalysis.ts +131 -0
- package/src/plugins/enrichment/method-call/MethodCallIndexers.ts +83 -0
- package/src/plugins/enrichment/method-call/MethodCallResolution.ts +181 -0
- package/src/plugins/indexing/IncrementalModuleIndexer.ts +29 -40
- package/src/plugins/indexing/JSModuleIndexer.ts +34 -36
- package/src/plugins/indexing/RustModuleIndexer.ts +24 -18
- package/src/plugins/validation/AwaitInLoopValidator.ts +91 -0
- package/src/plugins/validation/BrokenImportValidator.ts +2 -3
- package/src/plugins/validation/CallResolverValidator.ts +2 -3
- package/src/plugins/validation/DataFlowValidator.ts +1 -1
- package/src/plugins/validation/EvalBanValidator.ts +1 -1
- package/src/plugins/validation/GraphConnectivityValidator.ts +1 -9
- package/src/plugins/validation/PackageCoverageValidator.ts +181 -0
- package/src/plugins/validation/SQLInjectionValidator.ts +3 -2
- package/src/plugins/validation/ShadowingDetector.ts +1 -1
- package/src/plugins/validation/TypeScriptDeadCodeValidator.ts +2 -3
- package/src/plugins/validation/UnconnectedRouteValidator.ts +93 -0
- package/src/plugins/vcs/GitPlugin.ts +12 -6
- package/src/queries/NodeContext.ts +277 -0
- package/src/queries/findCallsInFunction.ts +15 -6
- package/src/queries/findContainingFunction.ts +15 -4
- package/src/queries/index.ts +13 -0
- package/src/queries/traceValues.ts +0 -1
- package/src/resources/InfraResourceMapImpl.ts +119 -0
- package/src/resources/RoutingMapImpl.ts +133 -0
- package/src/storage/backends/RFDBServerBackend.ts +157 -38
- package/src/storage/backends/typeValidation.ts +2 -0
- package/src/utils/findRfdbBinary.ts +22 -7
- package/src/utils/moduleResolution.ts +271 -0
- package/src/utils/resolveNodeFile.ts +18 -0
- package/src/validation/PathValidator.ts +0 -8
- package/src/version.ts +28 -0
- package/src/plugins/validation/NodeCreationValidator.ts +0 -554
package/src/core/NodeFactory.ts
CHANGED
|
@@ -1,17 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* NodeFactory - centralized graph node creation
|
|
2
|
+
* NodeFactory - centralized graph node creation (facade)
|
|
3
3
|
*
|
|
4
|
-
* Single point for creating all node types
|
|
5
|
-
*
|
|
6
|
-
* - Standard field set for each type
|
|
7
|
-
* - Automatic ID generation
|
|
4
|
+
* Single point for creating all node types. Delegates to domain-specific
|
|
5
|
+
* factories in ./factories/ while maintaining a unified public API.
|
|
8
6
|
*
|
|
9
|
-
*
|
|
7
|
+
* All callers use NodeFactory.createX() - the domain split is an internal detail.
|
|
10
8
|
*/
|
|
11
9
|
|
|
12
|
-
import { createHash } from 'crypto';
|
|
13
|
-
import { basename, relative } from 'path';
|
|
14
|
-
|
|
15
10
|
import {
|
|
16
11
|
ServiceNode,
|
|
17
12
|
EntrypointNode,
|
|
@@ -37,198 +32,39 @@ import {
|
|
|
37
32
|
ClassNode,
|
|
38
33
|
ExportNode,
|
|
39
34
|
ExternalModuleNode,
|
|
35
|
+
ExternalFunctionNode,
|
|
40
36
|
InterfaceNode,
|
|
41
37
|
TypeNode,
|
|
38
|
+
TypeParameterNode,
|
|
42
39
|
EnumNode,
|
|
43
40
|
DecoratorNode,
|
|
44
41
|
ExpressionNode,
|
|
45
|
-
ArgumentExpressionNode,
|
|
46
42
|
IssueNode,
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
43
|
+
PluginNode,
|
|
44
|
+
RustModuleNode,
|
|
45
|
+
RustFunctionNode,
|
|
46
|
+
RustStructNode,
|
|
47
|
+
RustImplNode,
|
|
48
|
+
RustMethodNode,
|
|
49
|
+
RustTraitNode,
|
|
50
|
+
RustCallNode,
|
|
51
|
+
ReactNode,
|
|
52
|
+
SocketIONode,
|
|
53
|
+
SocketConnectionNode,
|
|
54
|
+
DatabaseNode,
|
|
55
|
+
ServiceLayerNode,
|
|
53
56
|
} from './nodes/index.js';
|
|
54
57
|
|
|
55
|
-
import type { BaseNodeRecord
|
|
56
|
-
import { brandNode } from '@grafema/types';
|
|
57
|
-
import type { ScopeContext } from './SemanticId.js';
|
|
58
|
-
|
|
59
|
-
interface ServiceOptions {
|
|
60
|
-
version?: string;
|
|
61
|
-
entrypoint?: string;
|
|
62
|
-
discoveryMethod?: string;
|
|
63
|
-
description?: string;
|
|
64
|
-
dependencies?: string[];
|
|
65
|
-
serviceType?: string;
|
|
66
|
-
testFiles?: string[];
|
|
67
|
-
metadata?: {
|
|
68
|
-
type?: string;
|
|
69
|
-
testFiles?: string[];
|
|
70
|
-
};
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
interface EntrypointOptions {
|
|
74
|
-
id?: string;
|
|
75
|
-
name?: string;
|
|
76
|
-
trigger?: EntrypointTrigger;
|
|
77
|
-
source?: string;
|
|
78
|
-
serviceId?: string;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
interface ModuleOptions {
|
|
82
|
-
contentHash?: string;
|
|
83
|
-
isTest?: boolean;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
interface ModuleContextOptions {
|
|
87
|
-
contentHash?: string;
|
|
88
|
-
isTest?: boolean;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
interface FunctionOptions {
|
|
92
|
-
async?: boolean;
|
|
93
|
-
generator?: boolean;
|
|
94
|
-
exported?: boolean;
|
|
95
|
-
arrowFunction?: boolean;
|
|
96
|
-
parentScopeId?: string;
|
|
97
|
-
isClassMethod?: boolean;
|
|
98
|
-
className?: string;
|
|
99
|
-
params?: string[];
|
|
100
|
-
counter?: number;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
interface ScopeOptions {
|
|
104
|
-
name?: string;
|
|
105
|
-
conditional?: boolean;
|
|
106
|
-
parentScopeId?: string;
|
|
107
|
-
parentFunctionId?: string;
|
|
108
|
-
capturesFrom?: string[];
|
|
109
|
-
counter?: number;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
interface CallSiteOptions {
|
|
113
|
-
parentScopeId?: string;
|
|
114
|
-
counter?: number;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
interface MethodCallOptions {
|
|
118
|
-
parentScopeId?: string;
|
|
119
|
-
args?: unknown[];
|
|
120
|
-
counter?: number;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
interface ConstructorCallOptions {
|
|
124
|
-
counter?: number;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
interface VariableOptions {
|
|
128
|
-
parentScopeId?: string;
|
|
129
|
-
counter?: number;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
interface ConstantOptions {
|
|
133
|
-
value?: unknown;
|
|
134
|
-
parentScopeId?: string;
|
|
135
|
-
counter?: number;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
interface LiteralOptions {
|
|
139
|
-
parentCallId?: string;
|
|
140
|
-
argIndex?: number;
|
|
141
|
-
counter?: number;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
interface ObjectLiteralOptions {
|
|
145
|
-
parentCallId?: string;
|
|
146
|
-
argIndex?: number;
|
|
147
|
-
counter?: number;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
interface ArrayLiteralOptions {
|
|
151
|
-
parentCallId?: string;
|
|
152
|
-
argIndex?: number;
|
|
153
|
-
counter?: number;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
interface EventListenerOptions {
|
|
157
|
-
parentScopeId?: string;
|
|
158
|
-
callbackArg?: string;
|
|
159
|
-
counter?: number;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
interface HttpRequestOptions {
|
|
163
|
-
parentScopeId?: string;
|
|
164
|
-
counter?: number;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
interface DatabaseQueryOptions {
|
|
168
|
-
parentScopeId?: string;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
interface ImportOptions {
|
|
172
|
-
importType?: 'default' | 'named' | 'namespace';
|
|
173
|
-
importBinding?: 'value' | 'type' | 'typeof';
|
|
174
|
-
imported?: string;
|
|
175
|
-
local?: string;
|
|
176
|
-
}
|
|
58
|
+
import type { BaseNodeRecord } from '@grafema/types';
|
|
177
59
|
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
exportKind?: 'value' | 'type';
|
|
187
|
-
local?: string;
|
|
188
|
-
default?: boolean;
|
|
189
|
-
source?: string;
|
|
190
|
-
exportType?: 'default' | 'named' | 'all';
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
interface InterfaceOptions {
|
|
194
|
-
extends?: string[];
|
|
195
|
-
properties?: InterfacePropertyRecord[];
|
|
196
|
-
isExternal?: boolean;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
interface TypeOptions {
|
|
200
|
-
aliasOf?: string;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
interface EnumOptions {
|
|
204
|
-
isConst?: boolean;
|
|
205
|
-
members?: EnumMemberRecord[];
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
interface DecoratorOptions {
|
|
209
|
-
arguments?: unknown[];
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
interface ExpressionOptions {
|
|
213
|
-
// MemberExpression
|
|
214
|
-
object?: string;
|
|
215
|
-
property?: string;
|
|
216
|
-
computed?: boolean;
|
|
217
|
-
computedPropertyVar?: string;
|
|
218
|
-
// Binary/Logical
|
|
219
|
-
operator?: string;
|
|
220
|
-
// Tracking
|
|
221
|
-
path?: string;
|
|
222
|
-
baseName?: string;
|
|
223
|
-
propertyPath?: string[];
|
|
224
|
-
arrayIndex?: number;
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
interface ArgumentExpressionOptions extends ExpressionOptions {
|
|
228
|
-
parentCallId: string;
|
|
229
|
-
argIndex: number;
|
|
230
|
-
counter?: number;
|
|
231
|
-
}
|
|
60
|
+
import { CoreFactory } from './factories/CoreFactory.js';
|
|
61
|
+
import { HttpFactory } from './factories/HttpFactory.js';
|
|
62
|
+
import { RustFactory } from './factories/RustFactory.js';
|
|
63
|
+
import { ReactFactory } from './factories/ReactFactory.js';
|
|
64
|
+
import { SocketFactory } from './factories/SocketFactory.js';
|
|
65
|
+
import { DatabaseFactory } from './factories/DatabaseFactory.js';
|
|
66
|
+
import { ServiceFactory } from './factories/ServiceFactory.js';
|
|
67
|
+
import { ExternalFactory } from './factories/ExternalFactory.js';
|
|
232
68
|
|
|
233
69
|
// Validator type for node classes
|
|
234
70
|
interface NodeValidator {
|
|
@@ -236,432 +72,118 @@ interface NodeValidator {
|
|
|
236
72
|
}
|
|
237
73
|
|
|
238
74
|
export class NodeFactory {
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
static
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
static
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
static
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
static
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
static
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
static
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
static
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
*/
|
|
352
|
-
static generateConstructorCallId(className: string, file: string, line: number, column: number, options: ConstructorCallOptions = {}): string {
|
|
353
|
-
return ConstructorCallNode.generateId(className, file, line, column, options);
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
/**
|
|
357
|
-
* Check if a class name is a built-in JavaScript constructor
|
|
358
|
-
*/
|
|
359
|
-
static isBuiltinConstructor(className: string): boolean {
|
|
360
|
-
return ConstructorCallNode.isBuiltinConstructor(className);
|
|
361
|
-
}
|
|
362
|
-
|
|
363
|
-
/**
|
|
364
|
-
* Create VARIABLE_DECLARATION node
|
|
365
|
-
*/
|
|
366
|
-
static createVariableDeclaration(name: string, file: string, line: number, column: number, options: VariableOptions = {}) {
|
|
367
|
-
return brandNode(VariableDeclarationNode.create(name, file, line, column, options));
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
/**
|
|
371
|
-
* Create CONSTANT node
|
|
372
|
-
*/
|
|
373
|
-
static createConstant(name: string, file: string, line: number, column: number, options: ConstantOptions = {}) {
|
|
374
|
-
return brandNode(ConstantNode.create(name, file, line, column, options));
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
/**
|
|
378
|
-
* Create LITERAL node
|
|
379
|
-
*/
|
|
380
|
-
static createLiteral(value: unknown, file: string, line: number, column: number, options: LiteralOptions = {}) {
|
|
381
|
-
return brandNode(LiteralNode.create(value, file, line, column, options));
|
|
382
|
-
}
|
|
383
|
-
|
|
384
|
-
/**
|
|
385
|
-
* Create OBJECT_LITERAL node
|
|
386
|
-
*/
|
|
387
|
-
static createObjectLiteral(file: string, line: number, column: number, options: ObjectLiteralOptions = {}) {
|
|
388
|
-
return brandNode(ObjectLiteralNode.create(file, line, column, options));
|
|
389
|
-
}
|
|
390
|
-
|
|
391
|
-
/**
|
|
392
|
-
* Create ARRAY_LITERAL node
|
|
393
|
-
*/
|
|
394
|
-
static createArrayLiteral(file: string, line: number, column: number, options: ArrayLiteralOptions = {}) {
|
|
395
|
-
return brandNode(ArrayLiteralNode.create(file, line, column, options));
|
|
396
|
-
}
|
|
397
|
-
|
|
398
|
-
/**
|
|
399
|
-
* Create EXTERNAL_STDIO node (singleton)
|
|
400
|
-
*/
|
|
401
|
-
static createExternalStdio() {
|
|
402
|
-
return brandNode(ExternalStdioNode.create());
|
|
403
|
-
}
|
|
404
|
-
|
|
405
|
-
/**
|
|
406
|
-
* Create net:request singleton node
|
|
407
|
-
*
|
|
408
|
-
* This node represents the external network as a system resource.
|
|
409
|
-
* Should be created once per graph.
|
|
410
|
-
*
|
|
411
|
-
* All HTTP_REQUEST nodes connect to this singleton via CALLS edges.
|
|
412
|
-
*
|
|
413
|
-
* @returns NetworkRequestNodeRecord - singleton node
|
|
414
|
-
*/
|
|
415
|
-
static createNetworkRequest() {
|
|
416
|
-
return brandNode(NetworkRequestNode.create());
|
|
417
|
-
}
|
|
418
|
-
|
|
419
|
-
/**
|
|
420
|
-
* Create EVENT_LISTENER node
|
|
421
|
-
*/
|
|
422
|
-
static createEventListener(eventName: string, objectName: string | undefined, file: string, line: number, column: number, options: EventListenerOptions = {}) {
|
|
423
|
-
return brandNode(EventListenerNode.create(eventName, objectName, file, line, column, options));
|
|
424
|
-
}
|
|
425
|
-
|
|
426
|
-
/**
|
|
427
|
-
* Create HTTP_REQUEST node
|
|
428
|
-
*/
|
|
429
|
-
static createHttpRequest(url: string | undefined, method: string | undefined, file: string, line: number, column: number, options: HttpRequestOptions = {}) {
|
|
430
|
-
return brandNode(HttpRequestNode.create(url, method, file, line, column, options));
|
|
431
|
-
}
|
|
432
|
-
|
|
433
|
-
/**
|
|
434
|
-
* Create DATABASE_QUERY node
|
|
435
|
-
*/
|
|
436
|
-
static createDatabaseQuery(query: string | undefined, operation: string | undefined, file: string, line: number, column: number, options: DatabaseQueryOptions = {}) {
|
|
437
|
-
return brandNode(DatabaseQueryNode.create(query, operation, file, line, column, options));
|
|
438
|
-
}
|
|
439
|
-
|
|
440
|
-
/**
|
|
441
|
-
* Create IMPORT node
|
|
442
|
-
*
|
|
443
|
-
* ImportNode automatically detects importType from imported field:
|
|
444
|
-
* - imported === 'default' → importType: 'default'
|
|
445
|
-
* - imported === '*' → importType: 'namespace'
|
|
446
|
-
* - anything else → importType: 'named'
|
|
447
|
-
*
|
|
448
|
-
* @param name - Local binding name (how it's used in this file)
|
|
449
|
-
* @param file - Absolute file path
|
|
450
|
-
* @param line - Line number (for debugging, not part of ID)
|
|
451
|
-
* @param column - Column position (0 if unavailable)
|
|
452
|
-
* @param source - Source module (e.g., 'react', './utils')
|
|
453
|
-
* @param options - Optional fields
|
|
454
|
-
* @returns ImportNodeRecord
|
|
455
|
-
*/
|
|
456
|
-
static createImport(
|
|
457
|
-
name: string,
|
|
458
|
-
file: string,
|
|
459
|
-
line: number,
|
|
460
|
-
column: number,
|
|
461
|
-
source: string,
|
|
462
|
-
options: ImportOptions = {}
|
|
463
|
-
) {
|
|
464
|
-
return brandNode(ImportNode.create(name, file, line, column, source, options));
|
|
465
|
-
}
|
|
466
|
-
|
|
467
|
-
/**
|
|
468
|
-
* Create CLASS node
|
|
469
|
-
*/
|
|
470
|
-
static createClass(
|
|
471
|
-
name: string,
|
|
472
|
-
file: string,
|
|
473
|
-
line: number,
|
|
474
|
-
column: number,
|
|
475
|
-
options: ClassOptions = {}
|
|
476
|
-
) {
|
|
477
|
-
return brandNode(ClassNode.create(name, file, line, column, options));
|
|
478
|
-
}
|
|
479
|
-
|
|
480
|
-
/**
|
|
481
|
-
* Create EXPORT node
|
|
482
|
-
*/
|
|
483
|
-
static createExport(
|
|
484
|
-
name: string,
|
|
485
|
-
file: string,
|
|
486
|
-
line: number,
|
|
487
|
-
column: number,
|
|
488
|
-
options: ExportOptions = {}
|
|
489
|
-
) {
|
|
490
|
-
return brandNode(ExportNode.create(name, file, line, column, options));
|
|
491
|
-
}
|
|
492
|
-
|
|
493
|
-
/**
|
|
494
|
-
* Create EXTERNAL_MODULE node
|
|
495
|
-
*
|
|
496
|
-
* Represents external npm packages or Node.js built-in modules.
|
|
497
|
-
* Uses singleton pattern - same source always produces same ID.
|
|
498
|
-
*
|
|
499
|
-
* @param source - Module name (e.g., 'lodash', '@tanstack/react-query', 'node:fs')
|
|
500
|
-
*/
|
|
501
|
-
static createExternalModule(source: string) {
|
|
502
|
-
return brandNode(ExternalModuleNode.create(source));
|
|
503
|
-
}
|
|
504
|
-
|
|
505
|
-
/**
|
|
506
|
-
* Create INTERFACE node
|
|
507
|
-
*/
|
|
508
|
-
static createInterface(
|
|
509
|
-
name: string,
|
|
510
|
-
file: string,
|
|
511
|
-
line: number,
|
|
512
|
-
column: number,
|
|
513
|
-
options: InterfaceOptions = {}
|
|
514
|
-
) {
|
|
515
|
-
return brandNode(InterfaceNode.create(name, file, line, column, options));
|
|
516
|
-
}
|
|
517
|
-
|
|
518
|
-
/**
|
|
519
|
-
* Create TYPE node
|
|
520
|
-
*/
|
|
521
|
-
static createType(
|
|
522
|
-
name: string,
|
|
523
|
-
file: string,
|
|
524
|
-
line: number,
|
|
525
|
-
column: number,
|
|
526
|
-
options: TypeOptions = {}
|
|
527
|
-
) {
|
|
528
|
-
return brandNode(TypeNode.create(name, file, line, column, options));
|
|
529
|
-
}
|
|
530
|
-
|
|
531
|
-
/**
|
|
532
|
-
* Create ENUM node
|
|
533
|
-
*/
|
|
534
|
-
static createEnum(
|
|
535
|
-
name: string,
|
|
536
|
-
file: string,
|
|
537
|
-
line: number,
|
|
538
|
-
column: number,
|
|
539
|
-
options: EnumOptions = {}
|
|
540
|
-
) {
|
|
541
|
-
return brandNode(EnumNode.create(name, file, line, column, options));
|
|
542
|
-
}
|
|
543
|
-
|
|
544
|
-
/**
|
|
545
|
-
* Create DECORATOR node
|
|
546
|
-
*/
|
|
547
|
-
static createDecorator(
|
|
548
|
-
name: string,
|
|
549
|
-
file: string,
|
|
550
|
-
line: number,
|
|
551
|
-
column: number,
|
|
552
|
-
targetId: string,
|
|
553
|
-
targetType: DecoratorTargetType,
|
|
554
|
-
options: DecoratorOptions = {}
|
|
555
|
-
) {
|
|
556
|
-
return brandNode(DecoratorNode.create(name, file, line, column, targetId, targetType, options));
|
|
557
|
-
}
|
|
558
|
-
|
|
559
|
-
/**
|
|
560
|
-
* Create EXPRESSION node
|
|
561
|
-
*/
|
|
562
|
-
static createExpression(
|
|
563
|
-
expressionType: string,
|
|
564
|
-
file: string,
|
|
565
|
-
line: number,
|
|
566
|
-
column: number,
|
|
567
|
-
options: ExpressionOptions = {}
|
|
568
|
-
) {
|
|
569
|
-
return brandNode(ExpressionNode.create(expressionType, file, line, column, options));
|
|
570
|
-
}
|
|
571
|
-
|
|
572
|
-
/**
|
|
573
|
-
* Generate EXPRESSION node ID without creating the full node
|
|
574
|
-
*
|
|
575
|
-
* Used by JSASTAnalyzer when creating assignment metadata.
|
|
576
|
-
* The full node is created later by GraphBuilder.
|
|
577
|
-
*
|
|
578
|
-
* @param expressionType - Type of expression (MemberExpression, BinaryExpression, etc.)
|
|
579
|
-
* @param file - File path
|
|
580
|
-
* @param line - Line number
|
|
581
|
-
* @param column - Column position
|
|
582
|
-
* @returns Generated ID string in colon format
|
|
583
|
-
*/
|
|
584
|
-
static generateExpressionId(
|
|
585
|
-
expressionType: string,
|
|
586
|
-
file: string,
|
|
587
|
-
line: number,
|
|
588
|
-
column: number
|
|
589
|
-
): string {
|
|
590
|
-
return ExpressionNode.generateId(expressionType, file, line, column);
|
|
591
|
-
}
|
|
592
|
-
|
|
593
|
-
/**
|
|
594
|
-
* Create EXPRESSION node from assignment metadata
|
|
595
|
-
*
|
|
596
|
-
* Used by GraphBuilder when processing variableAssignments.
|
|
597
|
-
* The ID is provided from upstream (generated by JSASTAnalyzer).
|
|
598
|
-
*
|
|
599
|
-
* @param expressionType - Type of expression
|
|
600
|
-
* @param file - File path
|
|
601
|
-
* @param line - Line number
|
|
602
|
-
* @param column - Column position
|
|
603
|
-
* @param options - Must include id; optional: expression properties
|
|
604
|
-
*/
|
|
605
|
-
static createExpressionFromMetadata(
|
|
606
|
-
expressionType: string,
|
|
607
|
-
file: string,
|
|
608
|
-
line: number,
|
|
609
|
-
column: number,
|
|
610
|
-
options: ExpressionOptions & { id: string }
|
|
611
|
-
) {
|
|
612
|
-
return brandNode(ExpressionNode.createFromMetadata(expressionType, file, line, column, options));
|
|
613
|
-
}
|
|
614
|
-
|
|
615
|
-
/**
|
|
616
|
-
* Create EXPRESSION node with argument context
|
|
617
|
-
*
|
|
618
|
-
* Used when EXPRESSION appears as a call argument and we need to track
|
|
619
|
-
* which call and argument position for data flow analysis.
|
|
620
|
-
*
|
|
621
|
-
* @param expressionType - Type of expression (BinaryExpression, LogicalExpression, etc.)
|
|
622
|
-
* @param file - File path
|
|
623
|
-
* @param line - Line number
|
|
624
|
-
* @param column - Column position
|
|
625
|
-
* @param options - Required: parentCallId, argIndex; Optional: expression properties, counter
|
|
626
|
-
* @returns ArgumentExpressionNodeRecord
|
|
627
|
-
*/
|
|
628
|
-
static createArgumentExpression(
|
|
629
|
-
expressionType: string,
|
|
630
|
-
file: string,
|
|
631
|
-
line: number,
|
|
632
|
-
column: number,
|
|
633
|
-
options: ArgumentExpressionOptions
|
|
634
|
-
) {
|
|
635
|
-
return brandNode(ArgumentExpressionNode.create(expressionType, file, line, column, options));
|
|
636
|
-
}
|
|
637
|
-
|
|
638
|
-
/**
|
|
639
|
-
* Create ISSUE node
|
|
640
|
-
*
|
|
641
|
-
* Issues represent detected problems in the codebase.
|
|
642
|
-
* Used by validation plugins to persist findings in the graph.
|
|
643
|
-
*
|
|
644
|
-
* @param category - Issue category (security, performance, style, smell)
|
|
645
|
-
* @param severity - error | warning | info
|
|
646
|
-
* @param message - Human-readable description
|
|
647
|
-
* @param plugin - Name of the plugin that detected this issue
|
|
648
|
-
* @param file - File path where issue was detected
|
|
649
|
-
* @param line - Line number
|
|
650
|
-
* @param column - Column number (optional)
|
|
651
|
-
* @param options - Optional context data
|
|
652
|
-
*/
|
|
653
|
-
static createIssue(
|
|
654
|
-
category: string,
|
|
655
|
-
severity: IssueSeverity,
|
|
656
|
-
message: string,
|
|
657
|
-
plugin: string,
|
|
658
|
-
file: string,
|
|
659
|
-
line: number,
|
|
660
|
-
column: number = 0,
|
|
661
|
-
options: { context?: Record<string, unknown> } = {}
|
|
662
|
-
) {
|
|
663
|
-
return brandNode(IssueNode.create(category, severity, message, plugin, file, line, column, options));
|
|
664
|
-
}
|
|
75
|
+
// ==========================================
|
|
76
|
+
// Core node types (delegate to CoreFactory)
|
|
77
|
+
// ==========================================
|
|
78
|
+
|
|
79
|
+
static createService = CoreFactory.createService.bind(CoreFactory);
|
|
80
|
+
static createEntrypoint = CoreFactory.createEntrypoint.bind(CoreFactory);
|
|
81
|
+
static createModule = CoreFactory.createModule.bind(CoreFactory);
|
|
82
|
+
static createModuleWithContext = CoreFactory.createModuleWithContext.bind(CoreFactory);
|
|
83
|
+
static createFunction = CoreFactory.createFunction.bind(CoreFactory);
|
|
84
|
+
static createScope = CoreFactory.createScope.bind(CoreFactory);
|
|
85
|
+
static createBranch = CoreFactory.createBranch.bind(CoreFactory);
|
|
86
|
+
static createCase = CoreFactory.createCase.bind(CoreFactory);
|
|
87
|
+
static createCallSite = CoreFactory.createCallSite.bind(CoreFactory);
|
|
88
|
+
static createMethodCall = CoreFactory.createMethodCall.bind(CoreFactory);
|
|
89
|
+
static createConstructorCall = CoreFactory.createConstructorCall.bind(CoreFactory);
|
|
90
|
+
static generateConstructorCallId = CoreFactory.generateConstructorCallId.bind(CoreFactory);
|
|
91
|
+
static isBuiltinConstructor = CoreFactory.isBuiltinConstructor.bind(CoreFactory);
|
|
92
|
+
static createVariableDeclaration = CoreFactory.createVariableDeclaration.bind(CoreFactory);
|
|
93
|
+
static createConstant = CoreFactory.createConstant.bind(CoreFactory);
|
|
94
|
+
static createLiteral = CoreFactory.createLiteral.bind(CoreFactory);
|
|
95
|
+
static createObjectLiteral = CoreFactory.createObjectLiteral.bind(CoreFactory);
|
|
96
|
+
static createArrayLiteral = CoreFactory.createArrayLiteral.bind(CoreFactory);
|
|
97
|
+
static createExternalStdio = CoreFactory.createExternalStdio.bind(CoreFactory);
|
|
98
|
+
static createEventListener = CoreFactory.createEventListener.bind(CoreFactory);
|
|
99
|
+
static createImport = CoreFactory.createImport.bind(CoreFactory);
|
|
100
|
+
static createClass = CoreFactory.createClass.bind(CoreFactory);
|
|
101
|
+
static createExport = CoreFactory.createExport.bind(CoreFactory);
|
|
102
|
+
static createInterface = CoreFactory.createInterface.bind(CoreFactory);
|
|
103
|
+
static createType = CoreFactory.createType.bind(CoreFactory);
|
|
104
|
+
static createTypeParameter = CoreFactory.createTypeParameter.bind(CoreFactory);
|
|
105
|
+
static createEnum = CoreFactory.createEnum.bind(CoreFactory);
|
|
106
|
+
static createDecorator = CoreFactory.createDecorator.bind(CoreFactory);
|
|
107
|
+
static createExpression = CoreFactory.createExpression.bind(CoreFactory);
|
|
108
|
+
static generateExpressionId = CoreFactory.generateExpressionId.bind(CoreFactory);
|
|
109
|
+
static createExpressionFromMetadata = CoreFactory.createExpressionFromMetadata.bind(CoreFactory);
|
|
110
|
+
static createArgumentExpression = CoreFactory.createArgumentExpression.bind(CoreFactory);
|
|
111
|
+
static createIssue = CoreFactory.createIssue.bind(CoreFactory);
|
|
112
|
+
static createPlugin = CoreFactory.createPlugin.bind(CoreFactory);
|
|
113
|
+
static _hashFile = CoreFactory._hashFile.bind(CoreFactory);
|
|
114
|
+
|
|
115
|
+
// ==========================================
|
|
116
|
+
// HTTP domain (delegate to HttpFactory)
|
|
117
|
+
// ==========================================
|
|
118
|
+
|
|
119
|
+
static createNetworkRequest = HttpFactory.createNetworkRequest.bind(HttpFactory);
|
|
120
|
+
static createHttpRoute = HttpFactory.createHttpRoute.bind(HttpFactory);
|
|
121
|
+
static createFetchRequest = HttpFactory.createFetchRequest.bind(HttpFactory);
|
|
122
|
+
static createExpressMount = HttpFactory.createExpressMount.bind(HttpFactory);
|
|
123
|
+
static createExpressMiddleware = HttpFactory.createExpressMiddleware.bind(HttpFactory);
|
|
124
|
+
static createExternalApi = HttpFactory.createExternalApi.bind(HttpFactory);
|
|
125
|
+
static createHttpRequest = HttpFactory.createHttpRequest.bind(HttpFactory);
|
|
126
|
+
|
|
127
|
+
// ==========================================
|
|
128
|
+
// Rust domain (delegate to RustFactory)
|
|
129
|
+
// ==========================================
|
|
130
|
+
|
|
131
|
+
static createRustModule = RustFactory.createRustModule.bind(RustFactory);
|
|
132
|
+
static createRustFunction = RustFactory.createRustFunction.bind(RustFactory);
|
|
133
|
+
static createRustStruct = RustFactory.createRustStruct.bind(RustFactory);
|
|
134
|
+
static createRustImpl = RustFactory.createRustImpl.bind(RustFactory);
|
|
135
|
+
static createRustMethod = RustFactory.createRustMethod.bind(RustFactory);
|
|
136
|
+
static createRustTrait = RustFactory.createRustTrait.bind(RustFactory);
|
|
137
|
+
static createRustCall = RustFactory.createRustCall.bind(RustFactory);
|
|
138
|
+
|
|
139
|
+
// ==========================================
|
|
140
|
+
// React domain (delegate to ReactFactory)
|
|
141
|
+
// ==========================================
|
|
142
|
+
|
|
143
|
+
static createReactNode = ReactFactory.createReactNode.bind(ReactFactory);
|
|
144
|
+
|
|
145
|
+
// ==========================================
|
|
146
|
+
// Socket domain (delegate to SocketFactory)
|
|
147
|
+
// ==========================================
|
|
148
|
+
|
|
149
|
+
static createSocketIOEmit = SocketFactory.createSocketIOEmit.bind(SocketFactory);
|
|
150
|
+
static createSocketIOListener = SocketFactory.createSocketIOListener.bind(SocketFactory);
|
|
151
|
+
static createSocketIORoom = SocketFactory.createSocketIORoom.bind(SocketFactory);
|
|
152
|
+
static createSocketIOEvent = SocketFactory.createSocketIOEvent.bind(SocketFactory);
|
|
153
|
+
static createUnixSocket = SocketFactory.createUnixSocket.bind(SocketFactory);
|
|
154
|
+
static createTcpConnection = SocketFactory.createTcpConnection.bind(SocketFactory);
|
|
155
|
+
static createUnixServer = SocketFactory.createUnixServer.bind(SocketFactory);
|
|
156
|
+
static createTcpServer = SocketFactory.createTcpServer.bind(SocketFactory);
|
|
157
|
+
|
|
158
|
+
// ==========================================
|
|
159
|
+
// Database domain (delegate to DatabaseFactory)
|
|
160
|
+
// ==========================================
|
|
161
|
+
|
|
162
|
+
static createDatabaseQuery = DatabaseFactory.createDatabaseQuery.bind(DatabaseFactory);
|
|
163
|
+
static createDbConnection = DatabaseFactory.createDbConnection.bind(DatabaseFactory);
|
|
164
|
+
static createDbQuery = DatabaseFactory.createDbQuery.bind(DatabaseFactory);
|
|
165
|
+
static createSQLiteQuery = DatabaseFactory.createSQLiteQuery.bind(DatabaseFactory);
|
|
166
|
+
static createDbTable = DatabaseFactory.createDbTable.bind(DatabaseFactory);
|
|
167
|
+
|
|
168
|
+
// ==========================================
|
|
169
|
+
// Service Layer (delegate to ServiceFactory)
|
|
170
|
+
// ==========================================
|
|
171
|
+
|
|
172
|
+
static createServiceClass = ServiceFactory.createServiceClass.bind(ServiceFactory);
|
|
173
|
+
static createServiceInstance = ServiceFactory.createServiceInstance.bind(ServiceFactory);
|
|
174
|
+
static createServiceRegistration = ServiceFactory.createServiceRegistration.bind(ServiceFactory);
|
|
175
|
+
static createServiceUsage = ServiceFactory.createServiceUsage.bind(ServiceFactory);
|
|
176
|
+
|
|
177
|
+
// ==========================================
|
|
178
|
+
// External modules (delegate to ExternalFactory)
|
|
179
|
+
// ==========================================
|
|
180
|
+
|
|
181
|
+
static createExternalModule = ExternalFactory.createExternalModule.bind(ExternalFactory);
|
|
182
|
+
static createExternalFunction = ExternalFactory.createExternalFunction.bind(ExternalFactory);
|
|
183
|
+
|
|
184
|
+
// ==========================================
|
|
185
|
+
// Validation (stays in facade - needs all node types)
|
|
186
|
+
// ==========================================
|
|
665
187
|
|
|
666
188
|
/**
|
|
667
189
|
* Validate node by its type
|
|
@@ -692,11 +214,20 @@ export class NodeFactory {
|
|
|
692
214
|
'CLASS': ClassNode,
|
|
693
215
|
'EXPORT': ExportNode,
|
|
694
216
|
'EXTERNAL_MODULE': ExternalModuleNode,
|
|
217
|
+
'EXTERNAL_FUNCTION': ExternalFunctionNode,
|
|
695
218
|
'INTERFACE': InterfaceNode,
|
|
696
219
|
'TYPE': TypeNode,
|
|
220
|
+
'TYPE_PARAMETER': TypeParameterNode,
|
|
697
221
|
'ENUM': EnumNode,
|
|
698
222
|
'DECORATOR': DecoratorNode,
|
|
699
|
-
'EXPRESSION': ExpressionNode
|
|
223
|
+
'EXPRESSION': ExpressionNode,
|
|
224
|
+
'RUST_MODULE': RustModuleNode,
|
|
225
|
+
'RUST_FUNCTION': RustFunctionNode,
|
|
226
|
+
'RUST_STRUCT': RustStructNode,
|
|
227
|
+
'RUST_IMPL': RustImplNode,
|
|
228
|
+
'RUST_METHOD': RustMethodNode,
|
|
229
|
+
'RUST_TRAIT': RustTraitNode,
|
|
230
|
+
'RUST_CALL': RustCallNode,
|
|
700
231
|
};
|
|
701
232
|
|
|
702
233
|
// Handle issue:* types dynamically
|
|
@@ -704,6 +235,36 @@ export class NodeFactory {
|
|
|
704
235
|
return IssueNode.validate(node as Parameters<typeof IssueNode.validate>[0]);
|
|
705
236
|
}
|
|
706
237
|
|
|
238
|
+
// Handle grafema:plugin type
|
|
239
|
+
if (PluginNode.isPluginType(node.type)) {
|
|
240
|
+
return PluginNode.validate(node);
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
// Handle React domain types (react:*, dom:*, browser:*, canvas:*)
|
|
244
|
+
if (ReactNode.isReactDomainType(node.type)) {
|
|
245
|
+
return ReactNode.validate(node);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
// Handle Socket.IO types (socketio:*)
|
|
249
|
+
if (SocketIONode.isSocketIOType(node.type)) {
|
|
250
|
+
return SocketIONode.validate(node);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
// Handle socket types (os:unix-*, net:tcp-*)
|
|
254
|
+
if (SocketConnectionNode.isSocketType(node.type)) {
|
|
255
|
+
return SocketConnectionNode.validate(node);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
// Handle database domain types (db:*)
|
|
259
|
+
if (DatabaseNode.isDatabaseType(node.type)) {
|
|
260
|
+
return DatabaseNode.validate(node);
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
// Handle service layer types (SERVICE_*)
|
|
264
|
+
if (ServiceLayerNode.isServiceLayerType(node.type)) {
|
|
265
|
+
return ServiceLayerNode.validate(node);
|
|
266
|
+
}
|
|
267
|
+
|
|
707
268
|
const validator = validators[node.type];
|
|
708
269
|
if (!validator) {
|
|
709
270
|
return [`Unknown node type: ${node.type}`];
|
|
@@ -711,11 +272,4 @@ export class NodeFactory {
|
|
|
711
272
|
|
|
712
273
|
return validator.validate(node);
|
|
713
274
|
}
|
|
714
|
-
|
|
715
|
-
/**
|
|
716
|
-
* Helper: hash file path for stable ID
|
|
717
|
-
*/
|
|
718
|
-
static _hashFile(filePath: string): string {
|
|
719
|
-
return createHash('md5').update(filePath).digest('hex').substring(0, 12);
|
|
720
|
-
}
|
|
721
275
|
}
|